@appwrite.io/console 0.2.0 → 0.4.0
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 +3 -3
- package/dist/cjs/sdk.js +3353 -1497
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +3350 -1498
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +3353 -1497
- package/docs/examples/account/create-anonymous-session.md +1 -1
- package/docs/examples/account/create-email-session.md +1 -1
- package/docs/examples/account/create-j-w-t.md +1 -1
- package/docs/examples/account/create-magic-u-r-l-session.md +1 -1
- package/docs/examples/account/create-o-auth2session.md +1 -1
- package/docs/examples/account/create-phone-session.md +1 -1
- package/docs/examples/account/create-phone-verification.md +1 -1
- package/docs/examples/account/create-recovery.md +1 -1
- package/docs/examples/account/create-verification.md +1 -1
- package/docs/examples/account/create.md +1 -1
- package/docs/examples/account/{create-with-invite-code.md → delete-identity.md} +2 -2
- package/docs/examples/account/delete-session.md +1 -1
- package/docs/examples/account/delete-sessions.md +1 -1
- package/docs/examples/account/get-prefs.md +1 -1
- package/docs/examples/account/get-session.md +1 -1
- package/docs/examples/account/get.md +1 -1
- package/docs/examples/account/list-identities.md +18 -0
- package/docs/examples/account/list-logs.md +1 -1
- package/docs/examples/account/list-sessions.md +1 -1
- package/docs/examples/account/update-email.md +1 -1
- package/docs/examples/account/update-magic-u-r-l-session.md +1 -1
- package/docs/examples/account/update-name.md +1 -1
- package/docs/examples/account/update-password.md +1 -1
- package/docs/examples/account/update-phone-session.md +1 -1
- package/docs/examples/account/update-phone-verification.md +1 -1
- package/docs/examples/account/update-phone.md +1 -1
- package/docs/examples/account/update-prefs.md +1 -1
- package/docs/examples/account/update-recovery.md +1 -1
- package/docs/examples/account/update-session.md +1 -1
- package/docs/examples/account/update-status.md +1 -1
- package/docs/examples/account/update-verification.md +1 -1
- package/docs/examples/assistant/chat.md +18 -0
- package/docs/examples/avatars/get-browser.md +1 -1
- package/docs/examples/avatars/get-credit-card.md +1 -1
- package/docs/examples/avatars/get-favicon.md +1 -1
- package/docs/examples/avatars/get-flag.md +1 -1
- package/docs/examples/avatars/get-image.md +1 -1
- package/docs/examples/avatars/get-initials.md +1 -1
- package/docs/examples/avatars/get-q-r.md +1 -1
- package/docs/examples/console/variables.md +1 -1
- package/docs/examples/databases/create-boolean-attribute.md +1 -1
- package/docs/examples/databases/create-collection.md +1 -1
- package/docs/examples/databases/create-datetime-attribute.md +1 -1
- package/docs/examples/databases/create-document.md +1 -1
- package/docs/examples/databases/create-email-attribute.md +1 -1
- package/docs/examples/databases/create-enum-attribute.md +1 -1
- package/docs/examples/databases/create-float-attribute.md +1 -1
- package/docs/examples/databases/create-index.md +1 -1
- package/docs/examples/databases/create-integer-attribute.md +1 -1
- package/docs/examples/databases/create-ip-attribute.md +1 -1
- package/docs/examples/databases/create-relationship-attribute.md +1 -1
- package/docs/examples/databases/create-string-attribute.md +1 -1
- package/docs/examples/databases/create-url-attribute.md +1 -1
- package/docs/examples/databases/create.md +1 -1
- package/docs/examples/databases/delete-attribute.md +1 -1
- package/docs/examples/databases/delete-collection.md +1 -1
- package/docs/examples/databases/delete-document.md +1 -1
- package/docs/examples/databases/delete-index.md +1 -1
- package/docs/examples/databases/delete.md +1 -1
- package/docs/examples/databases/get-attribute.md +1 -1
- package/docs/examples/databases/get-collection-usage.md +1 -1
- package/docs/examples/databases/get-collection.md +1 -1
- package/docs/examples/databases/get-database-usage.md +1 -1
- package/docs/examples/databases/get-document.md +1 -1
- package/docs/examples/databases/get-index.md +1 -1
- package/docs/examples/databases/get-usage.md +1 -1
- package/docs/examples/databases/get.md +1 -1
- package/docs/examples/databases/list-attributes.md +1 -1
- package/docs/examples/databases/list-collection-logs.md +1 -1
- package/docs/examples/databases/list-collections.md +1 -1
- package/docs/examples/databases/list-document-logs.md +1 -1
- package/docs/examples/databases/list-documents.md +1 -1
- package/docs/examples/databases/list-indexes.md +1 -1
- package/docs/examples/databases/list-logs.md +1 -1
- package/docs/examples/databases/list.md +1 -1
- package/docs/examples/databases/update-boolean-attribute.md +1 -1
- package/docs/examples/databases/update-collection.md +1 -1
- package/docs/examples/databases/update-datetime-attribute.md +1 -1
- package/docs/examples/databases/update-document.md +1 -1
- package/docs/examples/databases/update-email-attribute.md +1 -1
- package/docs/examples/databases/update-enum-attribute.md +1 -1
- package/docs/examples/databases/update-float-attribute.md +1 -1
- package/docs/examples/databases/update-integer-attribute.md +1 -1
- package/docs/examples/databases/update-ip-attribute.md +1 -1
- package/docs/examples/databases/update-relationship-attribute.md +1 -1
- package/docs/examples/databases/update-string-attribute.md +1 -1
- package/docs/examples/databases/update-url-attribute.md +1 -1
- package/docs/examples/databases/update.md +1 -1
- package/docs/examples/functions/create-build.md +1 -1
- package/docs/examples/functions/create-deployment.md +2 -2
- package/docs/examples/functions/create-execution.md +1 -1
- package/docs/examples/functions/create-variable.md +1 -1
- package/docs/examples/functions/create.md +2 -2
- package/docs/examples/functions/delete-deployment.md +1 -1
- package/docs/examples/functions/delete-variable.md +1 -1
- package/docs/examples/functions/delete.md +1 -1
- package/docs/examples/functions/download-deployment.md +14 -0
- package/docs/examples/functions/get-deployment.md +1 -1
- package/docs/examples/functions/get-execution.md +1 -1
- package/docs/examples/functions/get-function-usage.md +1 -1
- package/docs/examples/functions/get-usage.md +1 -1
- package/docs/examples/functions/get-variable.md +1 -1
- package/docs/examples/functions/get.md +1 -1
- package/docs/examples/functions/list-deployments.md +1 -1
- package/docs/examples/functions/list-executions.md +1 -1
- package/docs/examples/functions/list-runtimes.md +1 -1
- package/docs/examples/functions/list-variables.md +1 -1
- package/docs/examples/functions/list.md +1 -1
- package/docs/examples/functions/update-deployment.md +1 -1
- package/docs/examples/functions/update-variable.md +1 -1
- package/docs/examples/functions/update.md +1 -1
- package/docs/examples/graphql/mutation.md +1 -1
- package/docs/examples/graphql/query.md +1 -1
- package/docs/examples/health/get-antivirus.md +1 -1
- package/docs/examples/health/get-cache.md +1 -1
- package/docs/examples/health/get-d-b.md +1 -1
- package/docs/examples/health/get-pub-sub.md +1 -1
- package/docs/examples/health/get-queue-builds.md +18 -0
- package/docs/examples/health/get-queue-certificates.md +1 -1
- package/docs/examples/health/get-queue-databases.md +18 -0
- package/docs/examples/health/get-queue-deletes.md +18 -0
- package/docs/examples/health/get-queue-functions.md +1 -1
- package/docs/examples/health/get-queue-logs.md +1 -1
- package/docs/examples/health/get-queue-mails.md +18 -0
- package/docs/examples/health/get-queue-messaging.md +18 -0
- package/docs/examples/health/get-queue-migrations.md +18 -0
- package/docs/examples/health/get-queue-webhooks.md +1 -1
- package/docs/examples/health/get-queue.md +1 -1
- package/docs/examples/health/get-storage-local.md +1 -1
- package/docs/examples/health/get-time.md +1 -1
- package/docs/examples/health/get.md +1 -1
- package/docs/examples/locale/get.md +1 -1
- package/docs/examples/locale/list-codes.md +18 -0
- package/docs/examples/locale/list-continents.md +1 -1
- package/docs/examples/locale/list-countries-e-u.md +1 -1
- package/docs/examples/locale/list-countries-phones.md +1 -1
- package/docs/examples/locale/list-countries.md +1 -1
- package/docs/examples/locale/list-currencies.md +1 -1
- package/docs/examples/locale/list-languages.md +1 -1
- package/docs/examples/migrations/create-appwrite-migration.md +18 -0
- package/docs/examples/migrations/create-firebase-migration.md +18 -0
- package/docs/examples/migrations/create-firebase-o-auth-migration.md +18 -0
- package/docs/examples/migrations/create-n-host-migration.md +18 -0
- package/docs/examples/migrations/create-supabase-migration.md +18 -0
- package/docs/examples/migrations/delete-firebase-auth.md +18 -0
- package/docs/examples/migrations/delete.md +18 -0
- package/docs/examples/migrations/get-appwrite-report.md +18 -0
- package/docs/examples/migrations/get-firebase-report-o-auth.md +18 -0
- package/docs/examples/migrations/get-firebase-report.md +18 -0
- package/docs/examples/migrations/get-n-host-report.md +18 -0
- package/docs/examples/migrations/get-supabase-report.md +18 -0
- package/docs/examples/migrations/get.md +18 -0
- package/docs/examples/migrations/list-firebase-projects.md +18 -0
- package/docs/examples/migrations/list.md +18 -0
- package/docs/examples/migrations/retry.md +18 -0
- package/docs/examples/project/create-variable.md +18 -0
- package/docs/examples/project/delete-variable.md +18 -0
- package/docs/examples/project/get-usage.md +2 -2
- package/docs/examples/project/get-variable.md +18 -0
- package/docs/examples/project/list-variables.md +18 -0
- package/docs/examples/project/update-variable.md +18 -0
- package/docs/examples/projects/create-key.md +1 -1
- package/docs/examples/projects/create-platform.md +1 -1
- package/docs/examples/projects/create-webhook.md +1 -1
- package/docs/examples/projects/create.md +2 -2
- package/docs/examples/projects/delete-email-template.md +18 -0
- package/docs/examples/projects/delete-key.md +1 -1
- package/docs/examples/projects/delete-platform.md +1 -1
- package/docs/examples/projects/delete-sms-template.md +18 -0
- package/docs/examples/projects/delete-webhook.md +1 -1
- package/docs/examples/projects/delete.md +2 -2
- package/docs/examples/projects/get-email-template.md +18 -0
- package/docs/examples/projects/get-key.md +1 -1
- package/docs/examples/projects/get-platform.md +1 -1
- package/docs/examples/projects/get-sms-template.md +18 -0
- package/docs/examples/projects/get-webhook.md +1 -1
- package/docs/examples/projects/get.md +1 -1
- package/docs/examples/projects/list-keys.md +1 -1
- package/docs/examples/projects/list-platforms.md +1 -1
- package/docs/examples/projects/list-webhooks.md +1 -1
- package/docs/examples/projects/list.md +1 -1
- package/docs/examples/projects/update-auth-duration.md +1 -1
- package/docs/examples/projects/update-auth-limit.md +1 -1
- package/docs/examples/projects/update-auth-password-dictionary.md +1 -1
- package/docs/examples/projects/update-auth-password-history.md +1 -1
- package/docs/examples/projects/update-auth-sessions-limit.md +1 -1
- package/docs/examples/projects/update-auth-status.md +1 -1
- package/docs/examples/projects/update-email-template.md +18 -0
- package/docs/examples/projects/update-key.md +1 -1
- package/docs/examples/projects/update-o-auth2.md +1 -1
- package/docs/examples/projects/{delete-domain.md → update-personal-data-check.md} +2 -2
- package/docs/examples/projects/update-platform.md +1 -1
- package/docs/examples/projects/{create-domain.md → update-service-status-all.md} +2 -2
- package/docs/examples/projects/update-service-status.md +1 -1
- package/docs/examples/projects/update-sms-template.md +18 -0
- package/docs/examples/projects/{get-domain.md → update-smtp-configuration.md} +2 -2
- package/docs/examples/projects/{list-domains.md → update-team.md} +2 -2
- package/docs/examples/projects/update-webhook-signature.md +1 -1
- package/docs/examples/projects/update-webhook.md +1 -1
- package/docs/examples/projects/update.md +1 -1
- package/docs/examples/proxy/create-rule.md +18 -0
- package/docs/examples/proxy/delete-rule.md +18 -0
- package/docs/examples/proxy/get-rule.md +18 -0
- package/docs/examples/proxy/list-rules.md +18 -0
- package/docs/examples/proxy/update-rule-verification.md +18 -0
- package/docs/examples/storage/create-bucket.md +1 -1
- package/docs/examples/storage/create-file.md +1 -1
- package/docs/examples/storage/delete-bucket.md +1 -1
- package/docs/examples/storage/delete-file.md +1 -1
- package/docs/examples/storage/get-bucket-usage.md +1 -1
- package/docs/examples/storage/get-bucket.md +1 -1
- package/docs/examples/storage/get-file-download.md +1 -1
- package/docs/examples/storage/get-file-preview.md +1 -1
- package/docs/examples/storage/get-file-view.md +1 -1
- package/docs/examples/storage/get-file.md +1 -1
- package/docs/examples/storage/get-usage.md +1 -1
- package/docs/examples/storage/list-buckets.md +1 -1
- package/docs/examples/storage/list-files.md +1 -1
- package/docs/examples/storage/update-bucket.md +1 -1
- package/docs/examples/storage/update-file.md +1 -1
- package/docs/examples/teams/create-membership.md +2 -2
- package/docs/examples/teams/create.md +1 -1
- package/docs/examples/teams/delete-membership.md +1 -1
- package/docs/examples/teams/delete.md +1 -1
- package/docs/examples/teams/get-membership.md +1 -1
- package/docs/examples/teams/get-prefs.md +1 -1
- package/docs/examples/teams/get.md +1 -1
- package/docs/examples/teams/list-logs.md +1 -1
- package/docs/examples/teams/list-memberships.md +1 -1
- package/docs/examples/teams/list.md +1 -1
- package/docs/examples/teams/update-membership-status.md +1 -1
- package/docs/examples/teams/{update-membership-roles.md → update-membership.md} +2 -2
- package/docs/examples/teams/update-name.md +1 -1
- package/docs/examples/teams/update-prefs.md +1 -1
- package/docs/examples/users/create-argon2user.md +1 -1
- package/docs/examples/users/create-bcrypt-user.md +1 -1
- package/docs/examples/users/create-m-d5user.md +1 -1
- package/docs/examples/users/create-p-h-pass-user.md +1 -1
- package/docs/examples/users/create-s-h-a-user.md +1 -1
- package/docs/examples/users/create-scrypt-modified-user.md +1 -1
- package/docs/examples/users/create-scrypt-user.md +1 -1
- package/docs/examples/users/create.md +1 -1
- package/docs/examples/users/delete-identity.md +18 -0
- package/docs/examples/users/delete-session.md +1 -1
- package/docs/examples/users/delete-sessions.md +1 -1
- package/docs/examples/users/delete.md +1 -1
- package/docs/examples/users/get-prefs.md +1 -1
- package/docs/examples/users/get-usage.md +1 -1
- package/docs/examples/users/get.md +1 -1
- package/docs/examples/users/list-identities.md +18 -0
- package/docs/examples/users/list-logs.md +1 -1
- package/docs/examples/users/list-memberships.md +1 -1
- package/docs/examples/users/list-sessions.md +1 -1
- package/docs/examples/users/list.md +1 -1
- package/docs/examples/users/update-email-verification.md +1 -1
- package/docs/examples/users/update-email.md +1 -1
- package/docs/examples/users/update-labels.md +18 -0
- package/docs/examples/users/update-name.md +1 -1
- package/docs/examples/users/update-password.md +1 -1
- package/docs/examples/users/update-phone-verification.md +1 -1
- package/docs/examples/users/update-phone.md +1 -1
- package/docs/examples/users/update-prefs.md +1 -1
- package/docs/examples/users/update-status.md +1 -1
- package/docs/examples/vcs/create-repository-detection.md +18 -0
- package/docs/examples/vcs/create-repository.md +18 -0
- package/docs/examples/vcs/delete-installation.md +18 -0
- package/docs/examples/vcs/get-installation.md +18 -0
- package/docs/examples/vcs/get-repository.md +18 -0
- package/docs/examples/vcs/list-installations.md +18 -0
- package/docs/examples/vcs/list-repositories.md +18 -0
- package/docs/examples/vcs/list-repository-branches.md +18 -0
- package/docs/examples/vcs/update-external-deployments.md +18 -0
- package/package.json +3 -2
- package/src/client.ts +2 -2
- package/src/index.ts +4 -0
- package/src/models.ts +863 -233
- package/src/query.ts +1 -1
- package/src/role.ts +72 -6
- package/src/services/account.ts +1052 -1055
- package/src/services/assistant.ts +38 -0
- package/src/services/avatars.ts +338 -337
- package/src/services/console.ts +16 -16
- package/src/services/databases.ts +2170 -2140
- package/src/services/functions.ts +804 -657
- package/src/services/graphql.ts +47 -47
- package/src/services/health.ts +373 -204
- package/src/services/locale.ts +156 -137
- package/src/services/migrations.ts +707 -0
- package/src/services/project.ts +178 -20
- package/src/services/projects.ts +1511 -1256
- package/src/services/proxy.ts +150 -0
- package/src/services/storage.ts +572 -577
- package/src/services/teams.ts +498 -501
- package/src/services/users.ts +1091 -1001
- package/src/services/vcs.ts +272 -0
- package/types/index.d.ts +4 -0
- package/types/models.d.ts +863 -233
- package/types/role.d.ts +62 -0
- package/types/services/account.d.ts +116 -104
- package/types/services/assistant.d.ts +14 -0
- package/types/services/avatars.d.ts +18 -17
- package/types/services/console.d.ts +2 -2
- package/types/services/databases.d.ts +111 -105
- package/types/services/functions.d.ts +95 -55
- package/types/services/graphql.d.ts +4 -4
- package/types/services/health.d.ts +97 -26
- package/types/services/locale.d.ts +24 -14
- package/types/services/migrations.d.ts +185 -0
- package/types/services/project.d.ts +60 -3
- package/types/services/projects.d.ts +174 -104
- package/types/services/proxy.d.ts +59 -0
- package/types/services/storage.d.ts +29 -28
- package/types/services/teams.d.ts +36 -35
- package/types/services/users.d.ts +105 -66
- package/types/services/vcs.d.ts +97 -0
- package/docs/examples/projects/update-domain-verification.md +0 -18
|
@@ -5,7 +5,7 @@ import type { UploadProgress } from '../client';
|
|
|
5
5
|
export declare class Functions extends Service {
|
|
6
6
|
constructor(client: Client);
|
|
7
7
|
/**
|
|
8
|
-
* List
|
|
8
|
+
* List functions
|
|
9
9
|
*
|
|
10
10
|
* Get a list of all the project's functions. You can use the query params to
|
|
11
11
|
* filter your results.
|
|
@@ -14,14 +14,15 @@ export declare class Functions extends Service {
|
|
|
14
14
|
* @param {string} search
|
|
15
15
|
* @throws {AppwriteException}
|
|
16
16
|
* @returns {Promise}
|
|
17
|
-
|
|
17
|
+
*/
|
|
18
18
|
list(queries?: string[], search?: string): Promise<Models.FunctionList>;
|
|
19
19
|
/**
|
|
20
|
-
* Create
|
|
20
|
+
* Create function
|
|
21
21
|
*
|
|
22
22
|
* Create a new function. You can pass a list of
|
|
23
|
-
* [permissions](/docs/permissions) to allow different
|
|
24
|
-
* with access to execute the function using the client
|
|
23
|
+
* [permissions](https://appwrite.io/docs/permissions) to allow different
|
|
24
|
+
* project users or team with access to execute the function using the client
|
|
25
|
+
* API.
|
|
25
26
|
*
|
|
26
27
|
* @param {string} functionId
|
|
27
28
|
* @param {string} name
|
|
@@ -31,10 +32,22 @@ export declare class Functions extends Service {
|
|
|
31
32
|
* @param {string} schedule
|
|
32
33
|
* @param {number} timeout
|
|
33
34
|
* @param {boolean} enabled
|
|
35
|
+
* @param {boolean} logging
|
|
36
|
+
* @param {string} entrypoint
|
|
37
|
+
* @param {string} commands
|
|
38
|
+
* @param {string} installationId
|
|
39
|
+
* @param {string} providerRepositoryId
|
|
40
|
+
* @param {string} providerBranch
|
|
41
|
+
* @param {boolean} providerSilentMode
|
|
42
|
+
* @param {string} providerRootDirectory
|
|
43
|
+
* @param {string} templateRepository
|
|
44
|
+
* @param {string} templateOwner
|
|
45
|
+
* @param {string} templateRootDirectory
|
|
46
|
+
* @param {string} templateBranch
|
|
34
47
|
* @throws {AppwriteException}
|
|
35
48
|
* @returns {Promise}
|
|
36
|
-
|
|
37
|
-
create(functionId: string, name: string, runtime: string, execute?: string[], events?: string[], schedule?: string, timeout?: number, enabled?: boolean): Promise<Models.Function>;
|
|
49
|
+
*/
|
|
50
|
+
create(functionId: string, name: string, runtime: string, execute?: string[], events?: string[], schedule?: string, timeout?: number, enabled?: boolean, logging?: boolean, entrypoint?: string, commands?: string, installationId?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, templateRepository?: string, templateOwner?: string, templateRootDirectory?: string, templateBranch?: string): Promise<Models.Function>;
|
|
38
51
|
/**
|
|
39
52
|
* List runtimes
|
|
40
53
|
*
|
|
@@ -42,55 +55,64 @@ export declare class Functions extends Service {
|
|
|
42
55
|
*
|
|
43
56
|
* @throws {AppwriteException}
|
|
44
57
|
* @returns {Promise}
|
|
45
|
-
|
|
58
|
+
*/
|
|
46
59
|
listRuntimes(): Promise<Models.RuntimeList>;
|
|
47
60
|
/**
|
|
48
|
-
* Get
|
|
61
|
+
* Get functions usage
|
|
49
62
|
*
|
|
50
63
|
*
|
|
51
64
|
* @param {string} range
|
|
52
65
|
* @throws {AppwriteException}
|
|
53
66
|
* @returns {Promise}
|
|
54
|
-
|
|
67
|
+
*/
|
|
55
68
|
getUsage(range?: string): Promise<Models.UsageFunctions>;
|
|
56
69
|
/**
|
|
57
|
-
* Get
|
|
70
|
+
* Get function
|
|
58
71
|
*
|
|
59
72
|
* Get a function by its unique ID.
|
|
60
73
|
*
|
|
61
74
|
* @param {string} functionId
|
|
62
75
|
* @throws {AppwriteException}
|
|
63
76
|
* @returns {Promise}
|
|
64
|
-
|
|
77
|
+
*/
|
|
65
78
|
get(functionId: string): Promise<Models.Function>;
|
|
66
79
|
/**
|
|
67
|
-
* Update
|
|
80
|
+
* Update function
|
|
68
81
|
*
|
|
69
82
|
* Update function by its unique ID.
|
|
70
83
|
*
|
|
71
84
|
* @param {string} functionId
|
|
72
85
|
* @param {string} name
|
|
86
|
+
* @param {string} runtime
|
|
73
87
|
* @param {string[]} execute
|
|
74
88
|
* @param {string[]} events
|
|
75
89
|
* @param {string} schedule
|
|
76
90
|
* @param {number} timeout
|
|
77
91
|
* @param {boolean} enabled
|
|
92
|
+
* @param {boolean} logging
|
|
93
|
+
* @param {string} entrypoint
|
|
94
|
+
* @param {string} commands
|
|
95
|
+
* @param {string} installationId
|
|
96
|
+
* @param {string} providerRepositoryId
|
|
97
|
+
* @param {string} providerBranch
|
|
98
|
+
* @param {boolean} providerSilentMode
|
|
99
|
+
* @param {string} providerRootDirectory
|
|
78
100
|
* @throws {AppwriteException}
|
|
79
101
|
* @returns {Promise}
|
|
80
|
-
|
|
81
|
-
update(functionId: string, name: string, execute?: string[], events?: string[], schedule?: string, timeout?: number, enabled?: boolean): Promise<Models.Function>;
|
|
102
|
+
*/
|
|
103
|
+
update(functionId: string, name: string, runtime?: string, execute?: string[], events?: string[], schedule?: string, timeout?: number, enabled?: boolean, logging?: boolean, entrypoint?: string, commands?: string, installationId?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string): Promise<Models.Function>;
|
|
82
104
|
/**
|
|
83
|
-
* Delete
|
|
105
|
+
* Delete function
|
|
84
106
|
*
|
|
85
107
|
* Delete a function by its unique ID.
|
|
86
108
|
*
|
|
87
109
|
* @param {string} functionId
|
|
88
110
|
* @throws {AppwriteException}
|
|
89
111
|
* @returns {Promise}
|
|
90
|
-
|
|
112
|
+
*/
|
|
91
113
|
delete(functionId: string): Promise<{}>;
|
|
92
114
|
/**
|
|
93
|
-
* List
|
|
115
|
+
* List deployments
|
|
94
116
|
*
|
|
95
117
|
* Get a list of all the project's code deployments. You can use the query
|
|
96
118
|
* params to filter your results.
|
|
@@ -100,10 +122,10 @@ export declare class Functions extends Service {
|
|
|
100
122
|
* @param {string} search
|
|
101
123
|
* @throws {AppwriteException}
|
|
102
124
|
* @returns {Promise}
|
|
103
|
-
|
|
125
|
+
*/
|
|
104
126
|
listDeployments(functionId: string, queries?: string[], search?: string): Promise<Models.DeploymentList>;
|
|
105
127
|
/**
|
|
106
|
-
* Create
|
|
128
|
+
* Create deployment
|
|
107
129
|
*
|
|
108
130
|
* Create a new function code deployment. Use this endpoint to upload a new
|
|
109
131
|
* version of your code function. To execute your newly uploaded code, you'll
|
|
@@ -112,20 +134,21 @@ export declare class Functions extends Service {
|
|
|
112
134
|
* This endpoint accepts a tar.gz file compressed with your code. Make sure to
|
|
113
135
|
* include any dependencies your code has within the compressed file. You can
|
|
114
136
|
* learn more about code packaging in the [Appwrite Cloud Functions
|
|
115
|
-
* tutorial](/docs/functions).
|
|
137
|
+
* tutorial](https://appwrite.io/docs/functions).
|
|
116
138
|
*
|
|
117
|
-
* Use the "command" param to set the
|
|
139
|
+
* Use the "command" param to set the entrypoint used to execute your code.
|
|
118
140
|
*
|
|
119
141
|
* @param {string} functionId
|
|
120
|
-
* @param {string} entrypoint
|
|
121
142
|
* @param {File} code
|
|
122
143
|
* @param {boolean} activate
|
|
144
|
+
* @param {string} entrypoint
|
|
145
|
+
* @param {string} commands
|
|
123
146
|
* @throws {AppwriteException}
|
|
124
147
|
* @returns {Promise}
|
|
125
|
-
|
|
126
|
-
createDeployment(functionId: string,
|
|
148
|
+
*/
|
|
149
|
+
createDeployment(functionId: string, code: File, activate: boolean, entrypoint?: string, commands?: string, onProgress?: (progress: UploadProgress) => void): Promise<Models.Deployment>;
|
|
127
150
|
/**
|
|
128
|
-
* Get
|
|
151
|
+
* Get deployment
|
|
129
152
|
*
|
|
130
153
|
* Get a code deployment by its unique ID.
|
|
131
154
|
*
|
|
@@ -133,10 +156,10 @@ export declare class Functions extends Service {
|
|
|
133
156
|
* @param {string} deploymentId
|
|
134
157
|
* @throws {AppwriteException}
|
|
135
158
|
* @returns {Promise}
|
|
136
|
-
|
|
159
|
+
*/
|
|
137
160
|
getDeployment(functionId: string, deploymentId: string): Promise<Models.Deployment>;
|
|
138
161
|
/**
|
|
139
|
-
* Update
|
|
162
|
+
* Update function deployment
|
|
140
163
|
*
|
|
141
164
|
* Update the function code deployment ID using the unique function ID. Use
|
|
142
165
|
* this endpoint to switch the code deployment that should be executed by the
|
|
@@ -146,10 +169,10 @@ export declare class Functions extends Service {
|
|
|
146
169
|
* @param {string} deploymentId
|
|
147
170
|
* @throws {AppwriteException}
|
|
148
171
|
* @returns {Promise}
|
|
149
|
-
|
|
172
|
+
*/
|
|
150
173
|
updateDeployment(functionId: string, deploymentId: string): Promise<Models.Function>;
|
|
151
174
|
/**
|
|
152
|
-
* Delete
|
|
175
|
+
* Delete deployment
|
|
153
176
|
*
|
|
154
177
|
* Delete a code deployment by its unique ID.
|
|
155
178
|
*
|
|
@@ -157,21 +180,35 @@ export declare class Functions extends Service {
|
|
|
157
180
|
* @param {string} deploymentId
|
|
158
181
|
* @throws {AppwriteException}
|
|
159
182
|
* @returns {Promise}
|
|
160
|
-
|
|
183
|
+
*/
|
|
161
184
|
deleteDeployment(functionId: string, deploymentId: string): Promise<{}>;
|
|
162
185
|
/**
|
|
163
|
-
* Create
|
|
186
|
+
* Create build
|
|
164
187
|
*
|
|
188
|
+
* Create a new build for an Appwrite Function deployment. This endpoint can
|
|
189
|
+
* be used to retry a failed build.
|
|
165
190
|
*
|
|
166
191
|
* @param {string} functionId
|
|
167
192
|
* @param {string} deploymentId
|
|
168
193
|
* @param {string} buildId
|
|
169
194
|
* @throws {AppwriteException}
|
|
170
195
|
* @returns {Promise}
|
|
171
|
-
|
|
196
|
+
*/
|
|
172
197
|
createBuild(functionId: string, deploymentId: string, buildId: string): Promise<{}>;
|
|
173
198
|
/**
|
|
174
|
-
*
|
|
199
|
+
* Download Deployment
|
|
200
|
+
*
|
|
201
|
+
* Get a Deployment's contents by its unique ID. This endpoint supports range
|
|
202
|
+
* requests for partial or streaming file download.
|
|
203
|
+
*
|
|
204
|
+
* @param {string} functionId
|
|
205
|
+
* @param {string} deploymentId
|
|
206
|
+
* @throws {AppwriteException}
|
|
207
|
+
* @returns {URL}
|
|
208
|
+
*/
|
|
209
|
+
downloadDeployment(functionId: string, deploymentId: string): URL;
|
|
210
|
+
/**
|
|
211
|
+
* List executions
|
|
175
212
|
*
|
|
176
213
|
* Get a list of all the current user function execution logs. You can use the
|
|
177
214
|
* query params to filter your results.
|
|
@@ -181,10 +218,10 @@ export declare class Functions extends Service {
|
|
|
181
218
|
* @param {string} search
|
|
182
219
|
* @throws {AppwriteException}
|
|
183
220
|
* @returns {Promise}
|
|
184
|
-
|
|
221
|
+
*/
|
|
185
222
|
listExecutions(functionId: string, queries?: string[], search?: string): Promise<Models.ExecutionList>;
|
|
186
223
|
/**
|
|
187
|
-
* Create
|
|
224
|
+
* Create execution
|
|
188
225
|
*
|
|
189
226
|
* Trigger a function execution. The returned object will return you the
|
|
190
227
|
* current execution status. You can ping the `Get Execution` endpoint to get
|
|
@@ -192,14 +229,17 @@ export declare class Functions extends Service {
|
|
|
192
229
|
* function execution process will start asynchronously.
|
|
193
230
|
*
|
|
194
231
|
* @param {string} functionId
|
|
195
|
-
* @param {string}
|
|
232
|
+
* @param {string} body
|
|
196
233
|
* @param {boolean} async
|
|
234
|
+
* @param {string} xpath
|
|
235
|
+
* @param {string} method
|
|
236
|
+
* @param {object} headers
|
|
197
237
|
* @throws {AppwriteException}
|
|
198
238
|
* @returns {Promise}
|
|
199
|
-
|
|
200
|
-
createExecution(functionId: string,
|
|
239
|
+
*/
|
|
240
|
+
createExecution(functionId: string, body?: string, async?: boolean, xpath?: string, method?: string, headers?: object): Promise<Models.Execution>;
|
|
201
241
|
/**
|
|
202
|
-
* Get
|
|
242
|
+
* Get execution
|
|
203
243
|
*
|
|
204
244
|
* Get a function execution log by its unique ID.
|
|
205
245
|
*
|
|
@@ -207,43 +247,43 @@ export declare class Functions extends Service {
|
|
|
207
247
|
* @param {string} executionId
|
|
208
248
|
* @throws {AppwriteException}
|
|
209
249
|
* @returns {Promise}
|
|
210
|
-
|
|
250
|
+
*/
|
|
211
251
|
getExecution(functionId: string, executionId: string): Promise<Models.Execution>;
|
|
212
252
|
/**
|
|
213
|
-
* Get
|
|
253
|
+
* Get function usage
|
|
214
254
|
*
|
|
215
255
|
*
|
|
216
256
|
* @param {string} functionId
|
|
217
257
|
* @param {string} range
|
|
218
258
|
* @throws {AppwriteException}
|
|
219
259
|
* @returns {Promise}
|
|
220
|
-
|
|
260
|
+
*/
|
|
221
261
|
getFunctionUsage(functionId: string, range?: string): Promise<Models.UsageFunctions>;
|
|
222
262
|
/**
|
|
223
|
-
* List
|
|
263
|
+
* List variables
|
|
224
264
|
*
|
|
225
265
|
* Get a list of all variables of a specific function.
|
|
226
266
|
*
|
|
227
267
|
* @param {string} functionId
|
|
228
268
|
* @throws {AppwriteException}
|
|
229
269
|
* @returns {Promise}
|
|
230
|
-
|
|
270
|
+
*/
|
|
231
271
|
listVariables(functionId: string): Promise<Models.VariableList>;
|
|
232
272
|
/**
|
|
233
|
-
* Create
|
|
273
|
+
* Create variable
|
|
234
274
|
*
|
|
235
|
-
* Create a new function variable. These variables can be accessed
|
|
236
|
-
*
|
|
275
|
+
* Create a new function environment variable. These variables can be accessed
|
|
276
|
+
* in the function at runtime as environment variables.
|
|
237
277
|
*
|
|
238
278
|
* @param {string} functionId
|
|
239
279
|
* @param {string} key
|
|
240
280
|
* @param {string} value
|
|
241
281
|
* @throws {AppwriteException}
|
|
242
282
|
* @returns {Promise}
|
|
243
|
-
|
|
283
|
+
*/
|
|
244
284
|
createVariable(functionId: string, key: string, value: string): Promise<Models.Variable>;
|
|
245
285
|
/**
|
|
246
|
-
* Get
|
|
286
|
+
* Get variable
|
|
247
287
|
*
|
|
248
288
|
* Get a variable by its unique ID.
|
|
249
289
|
*
|
|
@@ -251,10 +291,10 @@ export declare class Functions extends Service {
|
|
|
251
291
|
* @param {string} variableId
|
|
252
292
|
* @throws {AppwriteException}
|
|
253
293
|
* @returns {Promise}
|
|
254
|
-
|
|
294
|
+
*/
|
|
255
295
|
getVariable(functionId: string, variableId: string): Promise<Models.Variable>;
|
|
256
296
|
/**
|
|
257
|
-
* Update
|
|
297
|
+
* Update variable
|
|
258
298
|
*
|
|
259
299
|
* Update variable by its unique ID.
|
|
260
300
|
*
|
|
@@ -264,10 +304,10 @@ export declare class Functions extends Service {
|
|
|
264
304
|
* @param {string} value
|
|
265
305
|
* @throws {AppwriteException}
|
|
266
306
|
* @returns {Promise}
|
|
267
|
-
|
|
307
|
+
*/
|
|
268
308
|
updateVariable(functionId: string, variableId: string, key: string, value?: string): Promise<Models.Variable>;
|
|
269
309
|
/**
|
|
270
|
-
* Delete
|
|
310
|
+
* Delete variable
|
|
271
311
|
*
|
|
272
312
|
* Delete a variable by its unique ID.
|
|
273
313
|
*
|
|
@@ -275,6 +315,6 @@ export declare class Functions extends Service {
|
|
|
275
315
|
* @param {string} variableId
|
|
276
316
|
* @throws {AppwriteException}
|
|
277
317
|
* @returns {Promise}
|
|
278
|
-
|
|
318
|
+
*/
|
|
279
319
|
deleteVariable(functionId: string, variableId: string): Promise<{}>;
|
|
280
320
|
}
|
|
@@ -3,23 +3,23 @@ import { Client } from '../client';
|
|
|
3
3
|
export declare class Graphql extends Service {
|
|
4
4
|
constructor(client: Client);
|
|
5
5
|
/**
|
|
6
|
-
* GraphQL
|
|
6
|
+
* GraphQL endpoint
|
|
7
7
|
*
|
|
8
8
|
* Execute a GraphQL mutation.
|
|
9
9
|
*
|
|
10
10
|
* @param {object} query
|
|
11
11
|
* @throws {AppwriteException}
|
|
12
12
|
* @returns {Promise}
|
|
13
|
-
|
|
13
|
+
*/
|
|
14
14
|
query(query: object): Promise<{}>;
|
|
15
15
|
/**
|
|
16
|
-
* GraphQL
|
|
16
|
+
* GraphQL endpoint
|
|
17
17
|
*
|
|
18
18
|
* Execute a GraphQL mutation.
|
|
19
19
|
*
|
|
20
20
|
* @param {object} query
|
|
21
21
|
* @throws {AppwriteException}
|
|
22
22
|
* @returns {Promise}
|
|
23
|
-
|
|
23
|
+
*/
|
|
24
24
|
mutation(query: object): Promise<{}>;
|
|
25
25
|
}
|
|
@@ -10,26 +10,26 @@ export declare class Health extends Service {
|
|
|
10
10
|
*
|
|
11
11
|
* @throws {AppwriteException}
|
|
12
12
|
* @returns {Promise}
|
|
13
|
-
|
|
13
|
+
*/
|
|
14
14
|
get(): Promise<Models.HealthStatus>;
|
|
15
15
|
/**
|
|
16
|
-
* Get
|
|
16
|
+
* Get antivirus
|
|
17
17
|
*
|
|
18
18
|
* Check the Appwrite Antivirus server is up and connection is successful.
|
|
19
19
|
*
|
|
20
20
|
* @throws {AppwriteException}
|
|
21
21
|
* @returns {Promise}
|
|
22
|
-
|
|
22
|
+
*/
|
|
23
23
|
getAntivirus(): Promise<Models.HealthAntivirus>;
|
|
24
24
|
/**
|
|
25
|
-
* Get
|
|
25
|
+
* Get cache
|
|
26
26
|
*
|
|
27
27
|
* Check the Appwrite in-memory cache servers are up and connection is
|
|
28
28
|
* successful.
|
|
29
29
|
*
|
|
30
30
|
* @throws {AppwriteException}
|
|
31
31
|
* @returns {Promise}
|
|
32
|
-
|
|
32
|
+
*/
|
|
33
33
|
getCache(): Promise<Models.HealthStatus>;
|
|
34
34
|
/**
|
|
35
35
|
* Get DB
|
|
@@ -38,77 +38,148 @@ export declare class Health extends Service {
|
|
|
38
38
|
*
|
|
39
39
|
* @throws {AppwriteException}
|
|
40
40
|
* @returns {Promise}
|
|
41
|
-
|
|
41
|
+
*/
|
|
42
42
|
getDB(): Promise<Models.HealthStatus>;
|
|
43
43
|
/**
|
|
44
|
-
* Get
|
|
44
|
+
* Get pubsub
|
|
45
45
|
*
|
|
46
46
|
* Check the Appwrite pub-sub servers are up and connection is successful.
|
|
47
47
|
*
|
|
48
48
|
* @throws {AppwriteException}
|
|
49
49
|
* @returns {Promise}
|
|
50
|
-
|
|
50
|
+
*/
|
|
51
51
|
getPubSub(): Promise<Models.HealthStatus>;
|
|
52
52
|
/**
|
|
53
|
-
* Get
|
|
53
|
+
* Get queue
|
|
54
54
|
*
|
|
55
55
|
* Check the Appwrite queue messaging servers are up and connection is
|
|
56
56
|
* successful.
|
|
57
57
|
*
|
|
58
58
|
* @throws {AppwriteException}
|
|
59
59
|
* @returns {Promise}
|
|
60
|
-
|
|
60
|
+
*/
|
|
61
61
|
getQueue(): Promise<Models.HealthStatus>;
|
|
62
62
|
/**
|
|
63
|
-
* Get
|
|
63
|
+
* Get builds queue
|
|
64
|
+
*
|
|
65
|
+
* Get the number of builds that are waiting to be processed in the Appwrite
|
|
66
|
+
* internal queue server.
|
|
67
|
+
*
|
|
68
|
+
* @param {number} threshold
|
|
69
|
+
* @throws {AppwriteException}
|
|
70
|
+
* @returns {Promise}
|
|
71
|
+
*/
|
|
72
|
+
getQueueBuilds(threshold?: number): Promise<Models.HealthQueue>;
|
|
73
|
+
/**
|
|
74
|
+
* Get certificates queue
|
|
64
75
|
*
|
|
65
76
|
* Get the number of certificates that are waiting to be issued against
|
|
66
77
|
* [Letsencrypt](https://letsencrypt.org/) in the Appwrite internal queue
|
|
67
78
|
* server.
|
|
68
79
|
*
|
|
80
|
+
* @param {number} threshold
|
|
69
81
|
* @throws {AppwriteException}
|
|
70
82
|
* @returns {Promise}
|
|
71
|
-
|
|
72
|
-
getQueueCertificates(): Promise<Models.HealthQueue>;
|
|
83
|
+
*/
|
|
84
|
+
getQueueCertificates(threshold?: number): Promise<Models.HealthQueue>;
|
|
73
85
|
/**
|
|
74
|
-
* Get
|
|
86
|
+
* Get databases queue
|
|
75
87
|
*
|
|
88
|
+
* Get the number of database changes that are waiting to be processed in the
|
|
89
|
+
* Appwrite internal queue server.
|
|
76
90
|
*
|
|
91
|
+
* @param {string} name
|
|
92
|
+
* @param {number} threshold
|
|
77
93
|
* @throws {AppwriteException}
|
|
78
94
|
* @returns {Promise}
|
|
79
|
-
|
|
80
|
-
|
|
95
|
+
*/
|
|
96
|
+
getQueueDatabases(name?: string, threshold?: number): Promise<Models.HealthQueue>;
|
|
81
97
|
/**
|
|
82
|
-
* Get
|
|
98
|
+
* Get deletes queue
|
|
99
|
+
*
|
|
100
|
+
* Get the number of background destructive changes that are waiting to be
|
|
101
|
+
* processed in the Appwrite internal queue server.
|
|
102
|
+
*
|
|
103
|
+
* @param {number} threshold
|
|
104
|
+
* @throws {AppwriteException}
|
|
105
|
+
* @returns {Promise}
|
|
106
|
+
*/
|
|
107
|
+
getQueueDeletes(threshold?: number): Promise<Models.HealthQueue>;
|
|
108
|
+
/**
|
|
109
|
+
* Get functions queue
|
|
110
|
+
*
|
|
111
|
+
*
|
|
112
|
+
* @param {number} threshold
|
|
113
|
+
* @throws {AppwriteException}
|
|
114
|
+
* @returns {Promise}
|
|
115
|
+
*/
|
|
116
|
+
getQueueFunctions(threshold?: number): Promise<Models.HealthQueue>;
|
|
117
|
+
/**
|
|
118
|
+
* Get logs queue
|
|
83
119
|
*
|
|
84
120
|
* Get the number of logs that are waiting to be processed in the Appwrite
|
|
85
121
|
* internal queue server.
|
|
86
122
|
*
|
|
123
|
+
* @param {number} threshold
|
|
124
|
+
* @throws {AppwriteException}
|
|
125
|
+
* @returns {Promise}
|
|
126
|
+
*/
|
|
127
|
+
getQueueLogs(threshold?: number): Promise<Models.HealthQueue>;
|
|
128
|
+
/**
|
|
129
|
+
* Get mails queue
|
|
130
|
+
*
|
|
131
|
+
* Get the number of mails that are waiting to be processed in the Appwrite
|
|
132
|
+
* internal queue server.
|
|
133
|
+
*
|
|
134
|
+
* @param {number} threshold
|
|
135
|
+
* @throws {AppwriteException}
|
|
136
|
+
* @returns {Promise}
|
|
137
|
+
*/
|
|
138
|
+
getQueueMails(threshold?: number): Promise<Models.HealthQueue>;
|
|
139
|
+
/**
|
|
140
|
+
* Get messaging queue
|
|
141
|
+
*
|
|
142
|
+
* Get the number of messages that are waiting to be processed in the Appwrite
|
|
143
|
+
* internal queue server.
|
|
144
|
+
*
|
|
145
|
+
* @param {number} threshold
|
|
146
|
+
* @throws {AppwriteException}
|
|
147
|
+
* @returns {Promise}
|
|
148
|
+
*/
|
|
149
|
+
getQueueMessaging(threshold?: number): Promise<Models.HealthQueue>;
|
|
150
|
+
/**
|
|
151
|
+
* Get migrations queue
|
|
152
|
+
*
|
|
153
|
+
* Get the number of migrations that are waiting to be processed in the
|
|
154
|
+
* Appwrite internal queue server.
|
|
155
|
+
*
|
|
156
|
+
* @param {number} threshold
|
|
87
157
|
* @throws {AppwriteException}
|
|
88
158
|
* @returns {Promise}
|
|
89
|
-
|
|
90
|
-
|
|
159
|
+
*/
|
|
160
|
+
getQueueMigrations(threshold?: number): Promise<Models.HealthQueue>;
|
|
91
161
|
/**
|
|
92
|
-
* Get
|
|
162
|
+
* Get webhooks queue
|
|
93
163
|
*
|
|
94
164
|
* Get the number of webhooks that are waiting to be processed in the Appwrite
|
|
95
165
|
* internal queue server.
|
|
96
166
|
*
|
|
167
|
+
* @param {number} threshold
|
|
97
168
|
* @throws {AppwriteException}
|
|
98
169
|
* @returns {Promise}
|
|
99
|
-
|
|
100
|
-
getQueueWebhooks(): Promise<Models.HealthQueue>;
|
|
170
|
+
*/
|
|
171
|
+
getQueueWebhooks(threshold?: number): Promise<Models.HealthQueue>;
|
|
101
172
|
/**
|
|
102
|
-
* Get
|
|
173
|
+
* Get local storage
|
|
103
174
|
*
|
|
104
175
|
* Check the Appwrite local storage device is up and connection is successful.
|
|
105
176
|
*
|
|
106
177
|
* @throws {AppwriteException}
|
|
107
178
|
* @returns {Promise}
|
|
108
|
-
|
|
179
|
+
*/
|
|
109
180
|
getStorageLocal(): Promise<Models.HealthStatus>;
|
|
110
181
|
/**
|
|
111
|
-
* Get
|
|
182
|
+
* Get time
|
|
112
183
|
*
|
|
113
184
|
* Check the Appwrite server time is synced with Google remote NTP server. We
|
|
114
185
|
* use this technology to smoothly handle leap seconds with no disruptive
|
|
@@ -120,6 +191,6 @@ export declare class Health extends Service {
|
|
|
120
191
|
*
|
|
121
192
|
* @throws {AppwriteException}
|
|
122
193
|
* @returns {Promise}
|
|
123
|
-
|
|
194
|
+
*/
|
|
124
195
|
getTime(): Promise<Models.HealthTime>;
|
|
125
196
|
}
|
|
@@ -4,7 +4,7 @@ import type { Models } from '../models';
|
|
|
4
4
|
export declare class Locale extends Service {
|
|
5
5
|
constructor(client: Client);
|
|
6
6
|
/**
|
|
7
|
-
* Get
|
|
7
|
+
* Get user locale
|
|
8
8
|
*
|
|
9
9
|
* Get the current user location based on IP. Returns an object with user
|
|
10
10
|
* country code, country name, continent name, continent code, ip address and
|
|
@@ -15,50 +15,60 @@ export declare class Locale extends Service {
|
|
|
15
15
|
*
|
|
16
16
|
* @throws {AppwriteException}
|
|
17
17
|
* @returns {Promise}
|
|
18
|
-
|
|
18
|
+
*/
|
|
19
19
|
get(): Promise<Models.Locale>;
|
|
20
20
|
/**
|
|
21
|
-
* List
|
|
21
|
+
* List Locale Codes
|
|
22
|
+
*
|
|
23
|
+
* List of all locale codes in [ISO
|
|
24
|
+
* 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes).
|
|
25
|
+
*
|
|
26
|
+
* @throws {AppwriteException}
|
|
27
|
+
* @returns {Promise}
|
|
28
|
+
*/
|
|
29
|
+
listCodes(): Promise<Models.LocaleCodeList>;
|
|
30
|
+
/**
|
|
31
|
+
* List continents
|
|
22
32
|
*
|
|
23
33
|
* List of all continents. You can use the locale header to get the data in a
|
|
24
34
|
* supported language.
|
|
25
35
|
*
|
|
26
36
|
* @throws {AppwriteException}
|
|
27
37
|
* @returns {Promise}
|
|
28
|
-
|
|
38
|
+
*/
|
|
29
39
|
listContinents(): Promise<Models.ContinentList>;
|
|
30
40
|
/**
|
|
31
|
-
* List
|
|
41
|
+
* List countries
|
|
32
42
|
*
|
|
33
43
|
* List of all countries. You can use the locale header to get the data in a
|
|
34
44
|
* supported language.
|
|
35
45
|
*
|
|
36
46
|
* @throws {AppwriteException}
|
|
37
47
|
* @returns {Promise}
|
|
38
|
-
|
|
48
|
+
*/
|
|
39
49
|
listCountries(): Promise<Models.CountryList>;
|
|
40
50
|
/**
|
|
41
|
-
* List EU
|
|
51
|
+
* List EU countries
|
|
42
52
|
*
|
|
43
53
|
* List of all countries that are currently members of the EU. You can use the
|
|
44
54
|
* locale header to get the data in a supported language.
|
|
45
55
|
*
|
|
46
56
|
* @throws {AppwriteException}
|
|
47
57
|
* @returns {Promise}
|
|
48
|
-
|
|
58
|
+
*/
|
|
49
59
|
listCountriesEU(): Promise<Models.CountryList>;
|
|
50
60
|
/**
|
|
51
|
-
* List
|
|
61
|
+
* List countries phone codes
|
|
52
62
|
*
|
|
53
63
|
* List of all countries phone codes. You can use the locale header to get the
|
|
54
64
|
* data in a supported language.
|
|
55
65
|
*
|
|
56
66
|
* @throws {AppwriteException}
|
|
57
67
|
* @returns {Promise}
|
|
58
|
-
|
|
68
|
+
*/
|
|
59
69
|
listCountriesPhones(): Promise<Models.PhoneList>;
|
|
60
70
|
/**
|
|
61
|
-
* List
|
|
71
|
+
* List currencies
|
|
62
72
|
*
|
|
63
73
|
* List of all currencies, including currency symbol, name, plural, and
|
|
64
74
|
* decimal digits for all major and minor currencies. You can use the locale
|
|
@@ -66,16 +76,16 @@ export declare class Locale extends Service {
|
|
|
66
76
|
*
|
|
67
77
|
* @throws {AppwriteException}
|
|
68
78
|
* @returns {Promise}
|
|
69
|
-
|
|
79
|
+
*/
|
|
70
80
|
listCurrencies(): Promise<Models.CurrencyList>;
|
|
71
81
|
/**
|
|
72
|
-
* List
|
|
82
|
+
* List languages
|
|
73
83
|
*
|
|
74
84
|
* List of all languages classified by ISO 639-1 including 2-letter code, name
|
|
75
85
|
* in English, and name in the respective language.
|
|
76
86
|
*
|
|
77
87
|
* @throws {AppwriteException}
|
|
78
88
|
* @returns {Promise}
|
|
79
|
-
|
|
89
|
+
*/
|
|
80
90
|
listLanguages(): Promise<Models.LanguageList>;
|
|
81
91
|
}
|