Skip to content

Commit

Permalink
Fix methods
Browse files Browse the repository at this point in the history
  • Loading branch information
abnegate committed Oct 11, 2024
1 parent cbce76b commit 944d4c7
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import { Client, Account } from "@appwrite.io/console";
To install with a CDN (content delivery network) add the following scripts to the bottom of your <body> tag, but before you use any Appwrite services:

```html
<script src="https://cdn.jsdelivr.net/npm/@appwrite.io/[email protected].0"></script>
<script src="https://cdn.jsdelivr.net/npm/@appwrite.io/[email protected].1"></script>
```


Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@appwrite.io/console",
"homepage": "https://appwrite.io/support",
"description": "Appwrite is an open-source self-hosted backend server that abstract and simplify complex and repetitive development tasks behind a very simple REST API",
"version": "1.4.0",
"version": "1.4.1",
"license": "BSD-3-Clause",
"main": "dist/cjs/sdk.js",
"exports": {
Expand Down
2 changes: 1 addition & 1 deletion src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ class Client {
'x-sdk-name': 'Console',
'x-sdk-platform': 'console',
'x-sdk-language': 'web',
'x-sdk-version': '1.4.0',
'x-sdk-version': '1.4.1',
'X-Appwrite-Response-Format': '1.6.0',
};

Expand Down
8 changes: 4 additions & 4 deletions src/services/account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,9 @@ export class Account {
* @param {string} postalCode
* @param {string} addressLine2
* @throws {AppwriteException}
* @returns {Promise<{}>}
* @returns {Promise<Models.BillingAddress>}
*/
async createBillingAddress(country: string, streetAddress: string, city: string, state: string, postalCode?: string, addressLine2?: string): Promise<{}> {
async createBillingAddress(country: string, streetAddress: string, city: string, state: string, postalCode?: string, addressLine2?: string): Promise<Models.BillingAddress> {
if (typeof country === 'undefined') {
throw new AppwriteException('Missing required parameter: "country"');
}
Expand Down Expand Up @@ -240,9 +240,9 @@ export class Account {
* @param {string} postalCode
* @param {string} addressLine2
* @throws {AppwriteException}
* @returns {Promise<{}>}
* @returns {Promise<Models.BillingAddress>}
*/
async updateBillingAddress(billingAddressId: string, country: string, streetAddress: string, city: string, state: string, postalCode?: string, addressLine2?: string): Promise<{}> {
async updateBillingAddress(billingAddressId: string, country: string, streetAddress: string, city: string, state: string, postalCode?: string, addressLine2?: string): Promise<Models.BillingAddress> {
if (typeof billingAddressId === 'undefined') {
throw new AppwriteException('Missing required parameter: "billingAddressId"');
}
Expand Down

0 comments on commit 944d4c7

Please sign in to comment.