Skip to content

Commit 5b5a0ae

Browse files
authoredOct 11, 2024
Merge pull request #27 from appwrite/backups
Fix methods
2 parents e90ab72 + 944d4c7 commit 5b5a0ae

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed
 

‎README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ import { Client, Account } from "@appwrite.io/console";
3333
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:
3434

3535
```html
36-
<script src="https://cdn.jsdelivr.net/npm/@appwrite.io/console@1.4.0"></script>
36+
<script src="https://cdn.jsdelivr.net/npm/@appwrite.io/console@1.4.1"></script>
3737
```
3838

3939

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@appwrite.io/console",
33
"homepage": "https://appwrite.io/support",
44
"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",
5-
"version": "1.4.0",
5+
"version": "1.4.1",
66
"license": "BSD-3-Clause",
77
"main": "dist/cjs/sdk.js",
88
"exports": {

‎src/client.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ class Client {
304304
'x-sdk-name': 'Console',
305305
'x-sdk-platform': 'console',
306306
'x-sdk-language': 'web',
307-
'x-sdk-version': '1.4.0',
307+
'x-sdk-version': '1.4.1',
308308
'X-Appwrite-Response-Format': '1.6.0',
309309
};
310310

‎src/services/account.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -151,9 +151,9 @@ export class Account {
151151
* @param {string} postalCode
152152
* @param {string} addressLine2
153153
* @throws {AppwriteException}
154-
* @returns {Promise<{}>}
154+
* @returns {Promise<Models.BillingAddress>}
155155
*/
156-
async createBillingAddress(country: string, streetAddress: string, city: string, state: string, postalCode?: string, addressLine2?: string): Promise<{}> {
156+
async createBillingAddress(country: string, streetAddress: string, city: string, state: string, postalCode?: string, addressLine2?: string): Promise<Models.BillingAddress> {
157157
if (typeof country === 'undefined') {
158158
throw new AppwriteException('Missing required parameter: "country"');
159159
}
@@ -240,9 +240,9 @@ export class Account {
240240
* @param {string} postalCode
241241
* @param {string} addressLine2
242242
* @throws {AppwriteException}
243-
* @returns {Promise<{}>}
243+
* @returns {Promise<Models.BillingAddress>}
244244
*/
245-
async updateBillingAddress(billingAddressId: string, country: string, streetAddress: string, city: string, state: string, postalCode?: string, addressLine2?: string): Promise<{}> {
245+
async updateBillingAddress(billingAddressId: string, country: string, streetAddress: string, city: string, state: string, postalCode?: string, addressLine2?: string): Promise<Models.BillingAddress> {
246246
if (typeof billingAddressId === 'undefined') {
247247
throw new AppwriteException('Missing required parameter: "billingAddressId"');
248248
}

0 commit comments

Comments
 (0)
Please sign in to comment.