@appwrite.io/console 18.1.0 → 18.3.0-rc.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 +1876 -259
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +1872 -257
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +6294 -4654
- package/package.json +2 -2
- package/types/client.d.ts +4 -1
- package/types/enums/analytics-dimension.d.ts +24 -0
- package/types/enums/analytics-interval.d.ts +6 -0
- package/types/enums/build-runtime.d.ts +3 -0
- package/types/enums/o-auth-provider.d.ts +1 -0
- package/types/enums/project-key-scopes.d.ts +4 -1
- package/types/enums/project-o-auth-provider-id.d.ts +1 -0
- package/types/enums/proxy-rule-deployment-resource-type.d.ts +2 -1
- package/types/enums/query-suggestion-resource.d.ts +1 -0
- package/types/enums/runtime.d.ts +3 -0
- package/types/enums/usage-event-dimension.d.ts +9 -0
- package/types/enums/usage-event-metric.d.ts +4 -0
- package/types/enums/usage-gauge-metric.d.ts +1 -0
- package/types/index.d.ts +5 -0
- package/types/models.d.ts +285 -15
- package/types/services/account.d.ts +37 -10
- package/types/services/analytics-tracking.d.ts +211 -0
- package/types/services/analytics.d.ts +254 -0
- package/types/services/avatars.d.ts +33 -5
- package/types/services/console.d.ts +39 -3
- package/types/services/databases.d.ts +4 -1
- package/types/services/documents-db.d.ts +4 -1
- package/types/services/functions.d.ts +17 -2
- package/types/services/locale.d.ts +91 -7
- package/types/services/messaging.d.ts +40 -34
- package/types/services/notifications.d.ts +4 -1
- package/types/services/project.d.ts +29 -4
- package/types/services/proxy.d.ts +4 -0
- package/types/services/push.d.ts +26 -4
- package/types/services/sites.d.ts +21 -3
- package/types/services/tables-db.d.ts +4 -1
- package/types/services/teams.d.ts +2 -2
- package/types/services/usage.d.ts +4 -4
- package/types/services/vcs.d.ts +12 -3
- package/types/services/vectors-db.d.ts +4 -1
- package/types/services/webhooks.d.ts +2 -2
- package/types/service.d.ts +0 -11
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { Client } from '../client';
|
|
1
|
+
import { Client, UploadProgress } from '../client';
|
|
2
|
+
import type { Models } from '../models';
|
|
2
3
|
import { Browser } from '../enums/browser';
|
|
3
4
|
import { CreditCard } from '../enums/credit-card';
|
|
4
5
|
import { Flag } from '../enums/flag';
|
|
@@ -204,7 +205,7 @@ export declare class Avatars {
|
|
|
204
205
|
*/
|
|
205
206
|
getInitials(name?: string, width?: number, height?: number, background?: string): string;
|
|
206
207
|
/**
|
|
207
|
-
* Returns the best available profile photo for a user. The endpoint tries each source in priority order and returns the first successful result: OAuth2 identity photo, Gravatar, Libravatar, Appwrite Initials, built-in static fallback.
|
|
208
|
+
* Returns the best available profile photo for a user. The endpoint tries each source in priority order and returns the first successful result: a custom uploaded photo (see avatars.updatePhoto), OAuth2 identity photo, Gravatar, Libravatar, Appwrite Initials, built-in static fallback.
|
|
208
209
|
*
|
|
209
210
|
* Passing `userId` — `current()` for the authenticated user — resolves the photo from everything known about that user: identity photos, email, and name. An explicit `emailHash` or `name` then overrides just that value, and the user's remaining sources stay in the chain. Without `userId`, passing `emailHash` and/or `name` resolves the avatar from those values alone: the hash is looked up on Gravatar and Libravatar, the name is rendered as initials, and the session user stays out of the chain so their own photo never shadows the avatar being asked for. When nothing is passed, the photo resolves for the currently authenticated user. Emails are only ever accepted pre-hashed, so no address ends up in a URL.
|
|
210
211
|
*
|
|
@@ -230,7 +231,7 @@ export declare class Avatars {
|
|
|
230
231
|
name?: string;
|
|
231
232
|
}): string;
|
|
232
233
|
/**
|
|
233
|
-
* Returns the best available profile photo for a user. The endpoint tries each source in priority order and returns the first successful result: OAuth2 identity photo, Gravatar, Libravatar, Appwrite Initials, built-in static fallback.
|
|
234
|
+
* Returns the best available profile photo for a user. The endpoint tries each source in priority order and returns the first successful result: a custom uploaded photo (see avatars.updatePhoto), OAuth2 identity photo, Gravatar, Libravatar, Appwrite Initials, built-in static fallback.
|
|
234
235
|
*
|
|
235
236
|
* Passing `userId` — `current()` for the authenticated user — resolves the photo from everything known about that user: identity photos, email, and name. An explicit `emailHash` or `name` then overrides just that value, and the user's remaining sources stay in the chain. Without `userId`, passing `emailHash` and/or `name` resolves the avatar from those values alone: the hash is looked up on Gravatar and Libravatar, the name is rendered as initials, and the session user stays out of the chain so their own photo never shadows the avatar being asked for. When nothing is passed, the photo resolves for the currently authenticated user. Emails are only ever accepted pre-hashed, so no address ends up in a URL.
|
|
236
237
|
*
|
|
@@ -247,6 +248,33 @@ export declare class Avatars {
|
|
|
247
248
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
248
249
|
*/
|
|
249
250
|
getPhoto(width?: number, height?: number, quality?: number, output?: string, rating?: string, userId?: string, emailHash?: string, name?: string): string;
|
|
251
|
+
/**
|
|
252
|
+
* Update the profile photo of the currently authenticated user. The uploaded image takes priority over every other photo source, including OAuth2 identity photos, Gravatar, and Libravatar. Updating an already customized photo replaces it. The image must be at most 5MB and is sent in a single request.
|
|
253
|
+
*
|
|
254
|
+
* @param {File} params.file - Binary image file of at most 5MB. Allowed file types are png, jpg, jpeg, and webp.
|
|
255
|
+
* @throws {AppwriteException}
|
|
256
|
+
* @returns {Promise<Models.Account<Preferences>>}
|
|
257
|
+
*/
|
|
258
|
+
updatePhoto<Preferences extends Models.Preferences = Models.DefaultPreferences>(params: {
|
|
259
|
+
file: File;
|
|
260
|
+
onProgress?: (progress: UploadProgress) => void;
|
|
261
|
+
}): Promise<Models.Account<Preferences>>;
|
|
262
|
+
/**
|
|
263
|
+
* Update the profile photo of the currently authenticated user. The uploaded image takes priority over every other photo source, including OAuth2 identity photos, Gravatar, and Libravatar. Updating an already customized photo replaces it. The image must be at most 5MB and is sent in a single request.
|
|
264
|
+
*
|
|
265
|
+
* @param {File} file - Binary image file of at most 5MB. Allowed file types are png, jpg, jpeg, and webp.
|
|
266
|
+
* @throws {AppwriteException}
|
|
267
|
+
* @returns {Promise<Models.Account<Preferences>>}
|
|
268
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
269
|
+
*/
|
|
270
|
+
updatePhoto<Preferences extends Models.Preferences = Models.DefaultPreferences>(file: File, onProgress?: (progress: UploadProgress) => void): Promise<Models.Account<Preferences>>;
|
|
271
|
+
/**
|
|
272
|
+
* Delete the profile photo of the currently authenticated user and store the built-in static placeholder in its place. The placeholder is the user's photo from then on, so it takes priority over every other photo source — OAuth2 identity photos, Gravatar, Libravatar, and initials — until a new photo is uploaded with avatars.updatePhoto.
|
|
273
|
+
*
|
|
274
|
+
* @throws {AppwriteException}
|
|
275
|
+
* @returns {Promise<{}>}
|
|
276
|
+
*/
|
|
277
|
+
deletePhoto(): Promise<{}>;
|
|
250
278
|
/**
|
|
251
279
|
* Converts a given plain text to a QR code image. You can use the query parameters to change the size and style of the resulting image.
|
|
252
280
|
*
|
|
@@ -285,7 +313,7 @@ export declare class Avatars {
|
|
|
285
313
|
* When width and height are specified, the image is resized accordingly. If both dimensions are 0, the API provides an image at original size. If dimensions are not specified, the default viewport size is 1280x720px.
|
|
286
314
|
*
|
|
287
315
|
* @param {string} params.url - Website URL which you want to capture.
|
|
288
|
-
* @param {object} params.headers - HTTP headers to send with the browser request. Defaults to empty.
|
|
316
|
+
* @param {object} params.headers - HTTP headers to send with the browser request. Only Accept and Accept-Language are allowed. Defaults to empty.
|
|
289
317
|
* @param {number} params.viewportWidth - Browser viewport width. Pass an integer between 1 to 1920. Defaults to 1280.
|
|
290
318
|
* @param {number} params.viewportHeight - Browser viewport height. Pass an integer between 1 to 1080. Defaults to 720.
|
|
291
319
|
* @param {number} params.scale - Browser scale factor. Pass a number between 0.1 to 3. Defaults to 1.
|
|
@@ -337,7 +365,7 @@ export declare class Avatars {
|
|
|
337
365
|
* When width and height are specified, the image is resized accordingly. If both dimensions are 0, the API provides an image at original size. If dimensions are not specified, the default viewport size is 1280x720px.
|
|
338
366
|
*
|
|
339
367
|
* @param {string} url - Website URL which you want to capture.
|
|
340
|
-
* @param {object} headers - HTTP headers to send with the browser request. Defaults to empty.
|
|
368
|
+
* @param {object} headers - HTTP headers to send with the browser request. Only Accept and Accept-Language are allowed. Defaults to empty.
|
|
341
369
|
* @param {number} viewportWidth - Browser viewport width. Pass an integer between 1 to 1920. Defaults to 1280.
|
|
342
370
|
* @param {number} viewportHeight - Browser viewport height. Pass an integer between 1 to 1080. Defaults to 720.
|
|
343
371
|
* @param {number} scale - Browser scale factor. Pass a number between 0.1 to 3. Defaults to 1.
|
|
@@ -76,10 +76,22 @@ export declare class Console {
|
|
|
76
76
|
/**
|
|
77
77
|
* List all OAuth2 providers supported by the Appwrite server, along with the parameters required to configure each provider. The response excludes mock providers but includes sandbox providers.
|
|
78
78
|
*
|
|
79
|
+
* @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated.
|
|
79
80
|
* @throws {AppwriteException}
|
|
80
81
|
* @returns {Promise<Models.ConsoleOAuth2ProviderList>}
|
|
81
82
|
*/
|
|
82
|
-
listOAuth2Providers(
|
|
83
|
+
listOAuth2Providers(params?: {
|
|
84
|
+
total?: boolean;
|
|
85
|
+
}): Promise<Models.ConsoleOAuth2ProviderList>;
|
|
86
|
+
/**
|
|
87
|
+
* List all OAuth2 providers supported by the Appwrite server, along with the parameters required to configure each provider. The response excludes mock providers but includes sandbox providers.
|
|
88
|
+
*
|
|
89
|
+
* @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated.
|
|
90
|
+
* @throws {AppwriteException}
|
|
91
|
+
* @returns {Promise<Models.ConsoleOAuth2ProviderList>}
|
|
92
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
93
|
+
*/
|
|
94
|
+
listOAuth2Providers(total?: boolean): Promise<Models.ConsoleOAuth2ProviderList>;
|
|
83
95
|
/**
|
|
84
96
|
* Return a list of all available plans.
|
|
85
97
|
*
|
|
@@ -196,17 +208,41 @@ export declare class Console {
|
|
|
196
208
|
/**
|
|
197
209
|
* List all scopes available for organization API keys, along with a description for each scope.
|
|
198
210
|
*
|
|
211
|
+
* @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated.
|
|
212
|
+
* @throws {AppwriteException}
|
|
213
|
+
* @returns {Promise<Models.ConsoleKeyScopeList>}
|
|
214
|
+
*/
|
|
215
|
+
listOrganizationScopes(params?: {
|
|
216
|
+
total?: boolean;
|
|
217
|
+
}): Promise<Models.ConsoleKeyScopeList>;
|
|
218
|
+
/**
|
|
219
|
+
* List all scopes available for organization API keys, along with a description for each scope.
|
|
220
|
+
*
|
|
221
|
+
* @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated.
|
|
199
222
|
* @throws {AppwriteException}
|
|
200
223
|
* @returns {Promise<Models.ConsoleKeyScopeList>}
|
|
224
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
201
225
|
*/
|
|
202
|
-
listOrganizationScopes(): Promise<Models.ConsoleKeyScopeList>;
|
|
226
|
+
listOrganizationScopes(total?: boolean): Promise<Models.ConsoleKeyScopeList>;
|
|
203
227
|
/**
|
|
204
228
|
* List all scopes available for project API keys, along with a description for each scope.
|
|
205
229
|
*
|
|
230
|
+
* @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated.
|
|
206
231
|
* @throws {AppwriteException}
|
|
207
232
|
* @returns {Promise<Models.ConsoleKeyScopeList>}
|
|
208
233
|
*/
|
|
209
|
-
listProjectScopes(
|
|
234
|
+
listProjectScopes(params?: {
|
|
235
|
+
total?: boolean;
|
|
236
|
+
}): Promise<Models.ConsoleKeyScopeList>;
|
|
237
|
+
/**
|
|
238
|
+
* List all scopes available for project API keys, along with a description for each scope.
|
|
239
|
+
*
|
|
240
|
+
* @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated.
|
|
241
|
+
* @throws {AppwriteException}
|
|
242
|
+
* @returns {Promise<Models.ConsoleKeyScopeList>}
|
|
243
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
244
|
+
*/
|
|
245
|
+
listProjectScopes(total?: boolean): Promise<Models.ConsoleKeyScopeList>;
|
|
210
246
|
/**
|
|
211
247
|
* Create a new source.
|
|
212
248
|
*
|
|
@@ -65,22 +65,25 @@ export declare class Databases {
|
|
|
65
65
|
* List transactions across all databases.
|
|
66
66
|
*
|
|
67
67
|
* @param {string[]} params.queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries).
|
|
68
|
+
* @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated.
|
|
68
69
|
* @throws {AppwriteException}
|
|
69
70
|
* @returns {Promise<Models.TransactionList>}
|
|
70
71
|
* @deprecated This API has been deprecated since 1.8.0. Please use `TablesDB.listTransactions` instead.
|
|
71
72
|
*/
|
|
72
73
|
listTransactions(params?: {
|
|
73
74
|
queries?: string[];
|
|
75
|
+
total?: boolean;
|
|
74
76
|
}): Promise<Models.TransactionList>;
|
|
75
77
|
/**
|
|
76
78
|
* List transactions across all databases.
|
|
77
79
|
*
|
|
78
80
|
* @param {string[]} queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries).
|
|
81
|
+
* @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated.
|
|
79
82
|
* @throws {AppwriteException}
|
|
80
83
|
* @returns {Promise<Models.TransactionList>}
|
|
81
84
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
82
85
|
*/
|
|
83
|
-
listTransactions(queries?: string[]): Promise<Models.TransactionList>;
|
|
86
|
+
listTransactions(queries?: string[], total?: boolean): Promise<Models.TransactionList>;
|
|
84
87
|
/**
|
|
85
88
|
* Create a new transaction.
|
|
86
89
|
*
|
|
@@ -74,21 +74,24 @@ export declare class DocumentsDB {
|
|
|
74
74
|
* List transactions across all databases.
|
|
75
75
|
*
|
|
76
76
|
* @param {string[]} params.queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries).
|
|
77
|
+
* @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated.
|
|
77
78
|
* @throws {AppwriteException}
|
|
78
79
|
* @returns {Promise<Models.TransactionList>}
|
|
79
80
|
*/
|
|
80
81
|
listTransactions(params?: {
|
|
81
82
|
queries?: string[];
|
|
83
|
+
total?: boolean;
|
|
82
84
|
}): Promise<Models.TransactionList>;
|
|
83
85
|
/**
|
|
84
86
|
* List transactions across all databases.
|
|
85
87
|
*
|
|
86
88
|
* @param {string[]} queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries).
|
|
89
|
+
* @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated.
|
|
87
90
|
* @throws {AppwriteException}
|
|
88
91
|
* @returns {Promise<Models.TransactionList>}
|
|
89
92
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
90
93
|
*/
|
|
91
|
-
listTransactions(queries?: string[]): Promise<Models.TransactionList>;
|
|
94
|
+
listTransactions(queries?: string[], total?: boolean): Promise<Models.TransactionList>;
|
|
92
95
|
/**
|
|
93
96
|
* Create a new transaction.
|
|
94
97
|
*
|
|
@@ -120,29 +120,44 @@ export declare class Functions {
|
|
|
120
120
|
/**
|
|
121
121
|
* Get a list of all runtimes that are currently active on your instance.
|
|
122
122
|
*
|
|
123
|
+
* @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated.
|
|
123
124
|
* @throws {AppwriteException}
|
|
124
125
|
* @returns {Promise<Models.RuntimeList>}
|
|
125
126
|
*/
|
|
126
|
-
listRuntimes(
|
|
127
|
+
listRuntimes(params?: {
|
|
128
|
+
total?: boolean;
|
|
129
|
+
}): Promise<Models.RuntimeList>;
|
|
130
|
+
/**
|
|
131
|
+
* Get a list of all runtimes that are currently active on your instance.
|
|
132
|
+
*
|
|
133
|
+
* @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated.
|
|
134
|
+
* @throws {AppwriteException}
|
|
135
|
+
* @returns {Promise<Models.RuntimeList>}
|
|
136
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
137
|
+
*/
|
|
138
|
+
listRuntimes(total?: boolean): Promise<Models.RuntimeList>;
|
|
127
139
|
/**
|
|
128
140
|
* List allowed function specifications for this instance.
|
|
129
141
|
*
|
|
130
142
|
* @param {string} params.type - Specification type to list. Can be one of: runtimes, builds. Defaults to runtimes.
|
|
143
|
+
* @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated.
|
|
131
144
|
* @throws {AppwriteException}
|
|
132
145
|
* @returns {Promise<Models.SpecificationList>}
|
|
133
146
|
*/
|
|
134
147
|
listSpecifications(params?: {
|
|
135
148
|
type?: string;
|
|
149
|
+
total?: boolean;
|
|
136
150
|
}): Promise<Models.SpecificationList>;
|
|
137
151
|
/**
|
|
138
152
|
* List allowed function specifications for this instance.
|
|
139
153
|
*
|
|
140
154
|
* @param {string} type - Specification type to list. Can be one of: runtimes, builds. Defaults to runtimes.
|
|
155
|
+
* @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated.
|
|
141
156
|
* @throws {AppwriteException}
|
|
142
157
|
* @returns {Promise<Models.SpecificationList>}
|
|
143
158
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
144
159
|
*/
|
|
145
|
-
listSpecifications(type?: string): Promise<Models.SpecificationList>;
|
|
160
|
+
listSpecifications(type?: string, total?: boolean): Promise<Models.SpecificationList>;
|
|
146
161
|
/**
|
|
147
162
|
* List available function templates. You can use template details in [createFunction](/docs/references/cloud/server-nodejs/functions#create) method.
|
|
148
163
|
*
|
|
@@ -15,50 +15,134 @@ export declare class Locale {
|
|
|
15
15
|
/**
|
|
16
16
|
* List of all locale codes in [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes).
|
|
17
17
|
*
|
|
18
|
+
* @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated.
|
|
18
19
|
* @throws {AppwriteException}
|
|
19
20
|
* @returns {Promise<Models.LocaleCodeList>}
|
|
20
21
|
*/
|
|
21
|
-
listCodes(
|
|
22
|
+
listCodes(params?: {
|
|
23
|
+
total?: boolean;
|
|
24
|
+
}): Promise<Models.LocaleCodeList>;
|
|
25
|
+
/**
|
|
26
|
+
* List of all locale codes in [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes).
|
|
27
|
+
*
|
|
28
|
+
* @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated.
|
|
29
|
+
* @throws {AppwriteException}
|
|
30
|
+
* @returns {Promise<Models.LocaleCodeList>}
|
|
31
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
32
|
+
*/
|
|
33
|
+
listCodes(total?: boolean): Promise<Models.LocaleCodeList>;
|
|
22
34
|
/**
|
|
23
35
|
* List of all continents. You can use the locale header to get the data in a supported language.
|
|
24
36
|
*
|
|
37
|
+
* @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated.
|
|
25
38
|
* @throws {AppwriteException}
|
|
26
39
|
* @returns {Promise<Models.ContinentList>}
|
|
27
40
|
*/
|
|
28
|
-
listContinents(
|
|
41
|
+
listContinents(params?: {
|
|
42
|
+
total?: boolean;
|
|
43
|
+
}): Promise<Models.ContinentList>;
|
|
44
|
+
/**
|
|
45
|
+
* List of all continents. You can use the locale header to get the data in a supported language.
|
|
46
|
+
*
|
|
47
|
+
* @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated.
|
|
48
|
+
* @throws {AppwriteException}
|
|
49
|
+
* @returns {Promise<Models.ContinentList>}
|
|
50
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
51
|
+
*/
|
|
52
|
+
listContinents(total?: boolean): Promise<Models.ContinentList>;
|
|
53
|
+
/**
|
|
54
|
+
* List of all countries. You can use the locale header to get the data in a supported language.
|
|
55
|
+
*
|
|
56
|
+
* @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated.
|
|
57
|
+
* @throws {AppwriteException}
|
|
58
|
+
* @returns {Promise<Models.CountryList>}
|
|
59
|
+
*/
|
|
60
|
+
listCountries(params?: {
|
|
61
|
+
total?: boolean;
|
|
62
|
+
}): Promise<Models.CountryList>;
|
|
29
63
|
/**
|
|
30
64
|
* List of all countries. You can use the locale header to get the data in a supported language.
|
|
31
65
|
*
|
|
66
|
+
* @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated.
|
|
67
|
+
* @throws {AppwriteException}
|
|
68
|
+
* @returns {Promise<Models.CountryList>}
|
|
69
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
70
|
+
*/
|
|
71
|
+
listCountries(total?: boolean): Promise<Models.CountryList>;
|
|
72
|
+
/**
|
|
73
|
+
* List of all countries that are currently members of the EU. You can use the locale header to get the data in a supported language.
|
|
74
|
+
*
|
|
75
|
+
* @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated.
|
|
32
76
|
* @throws {AppwriteException}
|
|
33
77
|
* @returns {Promise<Models.CountryList>}
|
|
34
78
|
*/
|
|
35
|
-
|
|
79
|
+
listCountriesEU(params?: {
|
|
80
|
+
total?: boolean;
|
|
81
|
+
}): Promise<Models.CountryList>;
|
|
36
82
|
/**
|
|
37
83
|
* List of all countries that are currently members of the EU. You can use the locale header to get the data in a supported language.
|
|
38
84
|
*
|
|
85
|
+
* @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated.
|
|
39
86
|
* @throws {AppwriteException}
|
|
40
87
|
* @returns {Promise<Models.CountryList>}
|
|
88
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
41
89
|
*/
|
|
42
|
-
listCountriesEU(): Promise<Models.CountryList>;
|
|
90
|
+
listCountriesEU(total?: boolean): Promise<Models.CountryList>;
|
|
43
91
|
/**
|
|
44
92
|
* List of all countries phone codes. You can use the locale header to get the data in a supported language.
|
|
45
93
|
*
|
|
94
|
+
* @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated.
|
|
46
95
|
* @throws {AppwriteException}
|
|
47
96
|
* @returns {Promise<Models.PhoneList>}
|
|
48
97
|
*/
|
|
49
|
-
listCountriesPhones(
|
|
98
|
+
listCountriesPhones(params?: {
|
|
99
|
+
total?: boolean;
|
|
100
|
+
}): Promise<Models.PhoneList>;
|
|
101
|
+
/**
|
|
102
|
+
* List of all countries phone codes. You can use the locale header to get the data in a supported language.
|
|
103
|
+
*
|
|
104
|
+
* @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated.
|
|
105
|
+
* @throws {AppwriteException}
|
|
106
|
+
* @returns {Promise<Models.PhoneList>}
|
|
107
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
108
|
+
*/
|
|
109
|
+
listCountriesPhones(total?: boolean): Promise<Models.PhoneList>;
|
|
50
110
|
/**
|
|
51
111
|
* List of all currencies, including currency symbol, name, plural, and decimal digits for all major and minor currencies. You can use the locale header to get the data in a supported language.
|
|
52
112
|
*
|
|
113
|
+
* @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated.
|
|
53
114
|
* @throws {AppwriteException}
|
|
54
115
|
* @returns {Promise<Models.CurrencyList>}
|
|
55
116
|
*/
|
|
56
|
-
listCurrencies(
|
|
117
|
+
listCurrencies(params?: {
|
|
118
|
+
total?: boolean;
|
|
119
|
+
}): Promise<Models.CurrencyList>;
|
|
120
|
+
/**
|
|
121
|
+
* List of all currencies, including currency symbol, name, plural, and decimal digits for all major and minor currencies. You can use the locale header to get the data in a supported language.
|
|
122
|
+
*
|
|
123
|
+
* @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated.
|
|
124
|
+
* @throws {AppwriteException}
|
|
125
|
+
* @returns {Promise<Models.CurrencyList>}
|
|
126
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
127
|
+
*/
|
|
128
|
+
listCurrencies(total?: boolean): Promise<Models.CurrencyList>;
|
|
129
|
+
/**
|
|
130
|
+
* List of all languages classified by ISO 639-1 including 2-letter code, name in English, and name in the respective language.
|
|
131
|
+
*
|
|
132
|
+
* @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated.
|
|
133
|
+
* @throws {AppwriteException}
|
|
134
|
+
* @returns {Promise<Models.LanguageList>}
|
|
135
|
+
*/
|
|
136
|
+
listLanguages(params?: {
|
|
137
|
+
total?: boolean;
|
|
138
|
+
}): Promise<Models.LanguageList>;
|
|
57
139
|
/**
|
|
58
140
|
* List of all languages classified by ISO 639-1 including 2-letter code, name in English, and name in the respective language.
|
|
59
141
|
*
|
|
142
|
+
* @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated.
|
|
60
143
|
* @throws {AppwriteException}
|
|
61
144
|
* @returns {Promise<Models.LanguageList>}
|
|
145
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
62
146
|
*/
|
|
63
|
-
listLanguages(): Promise<Models.LanguageList>;
|
|
147
|
+
listLanguages(total?: boolean): Promise<Models.LanguageList>;
|
|
64
148
|
}
|