@appwrite.io/console 1.4.0 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/cjs/sdk.js +3 -3
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +3 -3
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +3 -3
- package/package.json +1 -1
- package/src/client.ts +1 -1
- package/src/services/account.ts +4 -4
- package/types/services/account.d.ts +4 -4
package/dist/iife/sdk.js
CHANGED
|
@@ -281,7 +281,7 @@
|
|
|
281
281
|
'x-sdk-name': 'Console',
|
|
282
282
|
'x-sdk-platform': 'console',
|
|
283
283
|
'x-sdk-language': 'web',
|
|
284
|
-
'x-sdk-version': '1.4.
|
|
284
|
+
'x-sdk-version': '1.4.1',
|
|
285
285
|
'X-Appwrite-Response-Format': '1.6.0',
|
|
286
286
|
};
|
|
287
287
|
this.realtime = {
|
|
@@ -821,7 +821,7 @@
|
|
|
821
821
|
* @param {string} postalCode
|
|
822
822
|
* @param {string} addressLine2
|
|
823
823
|
* @throws {AppwriteException}
|
|
824
|
-
* @returns {Promise<
|
|
824
|
+
* @returns {Promise<Models.BillingAddress>}
|
|
825
825
|
*/
|
|
826
826
|
createBillingAddress(country, streetAddress, city, state, postalCode, addressLine2) {
|
|
827
827
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -898,7 +898,7 @@
|
|
|
898
898
|
* @param {string} postalCode
|
|
899
899
|
* @param {string} addressLine2
|
|
900
900
|
* @throws {AppwriteException}
|
|
901
|
-
* @returns {Promise<
|
|
901
|
+
* @returns {Promise<Models.BillingAddress>}
|
|
902
902
|
*/
|
|
903
903
|
updateBillingAddress(billingAddressId, country, streetAddress, city, state, postalCode, addressLine2) {
|
|
904
904
|
return __awaiter(this, void 0, void 0, function* () {
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@appwrite.io/console",
|
|
3
3
|
"homepage": "https://appwrite.io/support",
|
|
4
4
|
"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.
|
|
5
|
+
"version": "1.4.1",
|
|
6
6
|
"license": "BSD-3-Clause",
|
|
7
7
|
"main": "dist/cjs/sdk.js",
|
|
8
8
|
"exports": {
|
package/src/client.ts
CHANGED
package/src/services/account.ts
CHANGED
|
@@ -151,9 +151,9 @@ export class Account {
|
|
|
151
151
|
* @param {string} postalCode
|
|
152
152
|
* @param {string} addressLine2
|
|
153
153
|
* @throws {AppwriteException}
|
|
154
|
-
* @returns {Promise<
|
|
154
|
+
* @returns {Promise<Models.BillingAddress>}
|
|
155
155
|
*/
|
|
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> {
|
|
157
157
|
if (typeof country === 'undefined') {
|
|
158
158
|
throw new AppwriteException('Missing required parameter: "country"');
|
|
159
159
|
}
|
|
@@ -240,9 +240,9 @@ export class Account {
|
|
|
240
240
|
* @param {string} postalCode
|
|
241
241
|
* @param {string} addressLine2
|
|
242
242
|
* @throws {AppwriteException}
|
|
243
|
-
* @returns {Promise<
|
|
243
|
+
* @returns {Promise<Models.BillingAddress>}
|
|
244
244
|
*/
|
|
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> {
|
|
246
246
|
if (typeof billingAddressId === 'undefined') {
|
|
247
247
|
throw new AppwriteException('Missing required parameter: "billingAddressId"');
|
|
248
248
|
}
|
|
@@ -57,9 +57,9 @@ export declare class Account {
|
|
|
57
57
|
* @param {string} postalCode
|
|
58
58
|
* @param {string} addressLine2
|
|
59
59
|
* @throws {AppwriteException}
|
|
60
|
-
* @returns {Promise<
|
|
60
|
+
* @returns {Promise<Models.BillingAddress>}
|
|
61
61
|
*/
|
|
62
|
-
createBillingAddress(country: string, streetAddress: string, city: string, state: string, postalCode?: string, addressLine2?: string): Promise<
|
|
62
|
+
createBillingAddress(country: string, streetAddress: string, city: string, state: string, postalCode?: string, addressLine2?: string): Promise<Models.BillingAddress>;
|
|
63
63
|
/**
|
|
64
64
|
* Get billing address
|
|
65
65
|
*
|
|
@@ -81,9 +81,9 @@ export declare class Account {
|
|
|
81
81
|
* @param {string} postalCode
|
|
82
82
|
* @param {string} addressLine2
|
|
83
83
|
* @throws {AppwriteException}
|
|
84
|
-
* @returns {Promise<
|
|
84
|
+
* @returns {Promise<Models.BillingAddress>}
|
|
85
85
|
*/
|
|
86
|
-
updateBillingAddress(billingAddressId: string, country: string, streetAddress: string, city: string, state: string, postalCode?: string, addressLine2?: string): Promise<
|
|
86
|
+
updateBillingAddress(billingAddressId: string, country: string, streetAddress: string, city: string, state: string, postalCode?: string, addressLine2?: string): Promise<Models.BillingAddress>;
|
|
87
87
|
/**
|
|
88
88
|
* Delete billing address
|
|
89
89
|
*
|