@appwrite.io/console 0.2.0 → 0.3.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/dist/cjs/sdk.js +2332 -633
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +2329 -634
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +2332 -633
- 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-with-invite-code.md +1 -1
- package/docs/examples/account/create.md +1 -1
- package/docs/examples/account/delete-identity.md +18 -0
- 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 +1 -1
- 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 +2 -2
- 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-certificates.md +1 -1
- 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-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 +1 -1
- 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/{list-domains.md → get-usage.md} +2 -2
- 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/{get-domain.md → update-personal-data-check.md} +2 -2
- package/docs/examples/projects/update-platform.md +1 -1
- package/docs/examples/projects/{delete-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/update-smtp-configuration.md +18 -0
- package/docs/examples/projects/{create-domain.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 +1 -1
- 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 +1 -1
- package/src/client.ts +2 -2
- package/src/index.ts +4 -0
- package/src/models.ts +905 -114
- package/src/services/account.ts +1102 -1055
- package/src/services/assistant.ts +38 -0
- package/src/services/avatars.ts +337 -337
- package/src/services/console.ts +16 -16
- package/src/services/databases.ts +2170 -2140
- package/src/services/functions.ts +808 -652
- package/src/services/graphql.ts +47 -47
- package/src/services/health.ts +226 -226
- package/src/services/locale.ts +156 -137
- package/src/services/migrations.ts +707 -0
- package/src/services/project.ts +160 -20
- package/src/services/projects.ts +1538 -1256
- package/src/services/proxy.ts +150 -0
- package/src/services/storage.ts +576 -571
- package/src/services/teams.ts +502 -501
- package/src/services/users.ts +1094 -1001
- package/src/services/vcs.ts +272 -0
- package/types/index.d.ts +4 -0
- package/types/models.d.ts +905 -114
- package/types/services/account.d.ts +62 -41
- package/types/services/assistant.d.ts +14 -0
- package/types/services/avatars.d.ts +7 -7
- package/types/services/console.d.ts +1 -1
- package/types/services/databases.d.ts +60 -54
- package/types/services/functions.d.ts +66 -31
- package/types/services/graphql.d.ts +2 -2
- package/types/services/health.d.ts +12 -12
- package/types/services/locale.d.ts +17 -7
- package/types/services/migrations.d.ts +185 -0
- package/types/services/project.d.ts +56 -1
- package/types/services/projects.d.ts +159 -79
- package/types/services/proxy.d.ts +59 -0
- package/types/services/storage.d.ts +18 -17
- package/types/services/teams.d.ts +17 -16
- package/types/services/users.d.ts +65 -27
- package/types/services/vcs.d.ts +97 -0
- package/docs/examples/projects/update-domain-verification.md +0 -18
|
@@ -14,7 +14,7 @@ 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
20
|
* Create Function
|
|
@@ -31,10 +31,22 @@ export declare class Functions extends Service {
|
|
|
31
31
|
* @param {string} schedule
|
|
32
32
|
* @param {number} timeout
|
|
33
33
|
* @param {boolean} enabled
|
|
34
|
+
* @param {boolean} logging
|
|
35
|
+
* @param {string} entrypoint
|
|
36
|
+
* @param {string} commands
|
|
37
|
+
* @param {string} installationId
|
|
38
|
+
* @param {string} providerRepositoryId
|
|
39
|
+
* @param {string} providerBranch
|
|
40
|
+
* @param {boolean} providerSilentMode
|
|
41
|
+
* @param {string} providerRootDirectory
|
|
42
|
+
* @param {string} templateRepository
|
|
43
|
+
* @param {string} templateOwner
|
|
44
|
+
* @param {string} templateRootDirectory
|
|
45
|
+
* @param {string} templateBranch
|
|
34
46
|
* @throws {AppwriteException}
|
|
35
47
|
* @returns {Promise}
|
|
36
|
-
|
|
37
|
-
create(functionId: string, name: string, runtime: string, execute?: string[], events?: string[], schedule?: string, timeout?: number, enabled?: boolean): Promise<Models.Function>;
|
|
48
|
+
*/
|
|
49
|
+
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
50
|
/**
|
|
39
51
|
* List runtimes
|
|
40
52
|
*
|
|
@@ -42,7 +54,7 @@ export declare class Functions extends Service {
|
|
|
42
54
|
*
|
|
43
55
|
* @throws {AppwriteException}
|
|
44
56
|
* @returns {Promise}
|
|
45
|
-
|
|
57
|
+
*/
|
|
46
58
|
listRuntimes(): Promise<Models.RuntimeList>;
|
|
47
59
|
/**
|
|
48
60
|
* Get Functions Usage
|
|
@@ -51,7 +63,7 @@ export declare class Functions extends Service {
|
|
|
51
63
|
* @param {string} range
|
|
52
64
|
* @throws {AppwriteException}
|
|
53
65
|
* @returns {Promise}
|
|
54
|
-
|
|
66
|
+
*/
|
|
55
67
|
getUsage(range?: string): Promise<Models.UsageFunctions>;
|
|
56
68
|
/**
|
|
57
69
|
* Get Function
|
|
@@ -61,7 +73,7 @@ export declare class Functions extends Service {
|
|
|
61
73
|
* @param {string} functionId
|
|
62
74
|
* @throws {AppwriteException}
|
|
63
75
|
* @returns {Promise}
|
|
64
|
-
|
|
76
|
+
*/
|
|
65
77
|
get(functionId: string): Promise<Models.Function>;
|
|
66
78
|
/**
|
|
67
79
|
* Update Function
|
|
@@ -70,15 +82,24 @@ export declare class Functions extends Service {
|
|
|
70
82
|
*
|
|
71
83
|
* @param {string} functionId
|
|
72
84
|
* @param {string} name
|
|
85
|
+
* @param {string} runtime
|
|
73
86
|
* @param {string[]} execute
|
|
74
87
|
* @param {string[]} events
|
|
75
88
|
* @param {string} schedule
|
|
76
89
|
* @param {number} timeout
|
|
77
90
|
* @param {boolean} enabled
|
|
91
|
+
* @param {boolean} logging
|
|
92
|
+
* @param {string} entrypoint
|
|
93
|
+
* @param {string} commands
|
|
94
|
+
* @param {string} installationId
|
|
95
|
+
* @param {string} providerRepositoryId
|
|
96
|
+
* @param {string} providerBranch
|
|
97
|
+
* @param {boolean} providerSilentMode
|
|
98
|
+
* @param {string} providerRootDirectory
|
|
78
99
|
* @throws {AppwriteException}
|
|
79
100
|
* @returns {Promise}
|
|
80
|
-
|
|
81
|
-
update(functionId: string, name: string, execute?: string[], events?: string[], schedule?: string, timeout?: number, enabled?: boolean): Promise<Models.Function>;
|
|
101
|
+
*/
|
|
102
|
+
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
103
|
/**
|
|
83
104
|
* Delete Function
|
|
84
105
|
*
|
|
@@ -87,7 +108,7 @@ export declare class Functions extends Service {
|
|
|
87
108
|
* @param {string} functionId
|
|
88
109
|
* @throws {AppwriteException}
|
|
89
110
|
* @returns {Promise}
|
|
90
|
-
|
|
111
|
+
*/
|
|
91
112
|
delete(functionId: string): Promise<{}>;
|
|
92
113
|
/**
|
|
93
114
|
* List Deployments
|
|
@@ -100,7 +121,7 @@ export declare class Functions extends Service {
|
|
|
100
121
|
* @param {string} search
|
|
101
122
|
* @throws {AppwriteException}
|
|
102
123
|
* @returns {Promise}
|
|
103
|
-
|
|
124
|
+
*/
|
|
104
125
|
listDeployments(functionId: string, queries?: string[], search?: string): Promise<Models.DeploymentList>;
|
|
105
126
|
/**
|
|
106
127
|
* Create Deployment
|
|
@@ -114,16 +135,17 @@ export declare class Functions extends Service {
|
|
|
114
135
|
* learn more about code packaging in the [Appwrite Cloud Functions
|
|
115
136
|
* tutorial](/docs/functions).
|
|
116
137
|
*
|
|
117
|
-
* Use the "command" param to set the
|
|
138
|
+
* Use the "command" param to set the entrypoint used to execute your code.
|
|
118
139
|
*
|
|
119
140
|
* @param {string} functionId
|
|
120
|
-
* @param {string} entrypoint
|
|
121
141
|
* @param {File} code
|
|
122
142
|
* @param {boolean} activate
|
|
143
|
+
* @param {string} entrypoint
|
|
144
|
+
* @param {string} commands
|
|
123
145
|
* @throws {AppwriteException}
|
|
124
146
|
* @returns {Promise}
|
|
125
|
-
|
|
126
|
-
createDeployment(functionId: string,
|
|
147
|
+
*/
|
|
148
|
+
createDeployment(functionId: string, code: File, activate: boolean, entrypoint?: string, commands?: string, onProgress?: (progress: UploadProgress) => void): Promise<Models.Deployment>;
|
|
127
149
|
/**
|
|
128
150
|
* Get Deployment
|
|
129
151
|
*
|
|
@@ -133,7 +155,7 @@ export declare class Functions extends Service {
|
|
|
133
155
|
* @param {string} deploymentId
|
|
134
156
|
* @throws {AppwriteException}
|
|
135
157
|
* @returns {Promise}
|
|
136
|
-
|
|
158
|
+
*/
|
|
137
159
|
getDeployment(functionId: string, deploymentId: string): Promise<Models.Deployment>;
|
|
138
160
|
/**
|
|
139
161
|
* Update Function Deployment
|
|
@@ -146,7 +168,7 @@ export declare class Functions extends Service {
|
|
|
146
168
|
* @param {string} deploymentId
|
|
147
169
|
* @throws {AppwriteException}
|
|
148
170
|
* @returns {Promise}
|
|
149
|
-
|
|
171
|
+
*/
|
|
150
172
|
updateDeployment(functionId: string, deploymentId: string): Promise<Models.Function>;
|
|
151
173
|
/**
|
|
152
174
|
* Delete Deployment
|
|
@@ -157,7 +179,7 @@ export declare class Functions extends Service {
|
|
|
157
179
|
* @param {string} deploymentId
|
|
158
180
|
* @throws {AppwriteException}
|
|
159
181
|
* @returns {Promise}
|
|
160
|
-
|
|
182
|
+
*/
|
|
161
183
|
deleteDeployment(functionId: string, deploymentId: string): Promise<{}>;
|
|
162
184
|
/**
|
|
163
185
|
* Create Build
|
|
@@ -168,8 +190,18 @@ export declare class Functions extends Service {
|
|
|
168
190
|
* @param {string} buildId
|
|
169
191
|
* @throws {AppwriteException}
|
|
170
192
|
* @returns {Promise}
|
|
171
|
-
|
|
193
|
+
*/
|
|
172
194
|
createBuild(functionId: string, deploymentId: string, buildId: string): Promise<{}>;
|
|
195
|
+
/**
|
|
196
|
+
* Download Deployment
|
|
197
|
+
*
|
|
198
|
+
*
|
|
199
|
+
* @param {string} functionId
|
|
200
|
+
* @param {string} deploymentId
|
|
201
|
+
* @throws {AppwriteException}
|
|
202
|
+
* @returns {URL}
|
|
203
|
+
*/
|
|
204
|
+
downloadDeployment(functionId: string, deploymentId: string): URL;
|
|
173
205
|
/**
|
|
174
206
|
* List Executions
|
|
175
207
|
*
|
|
@@ -181,7 +213,7 @@ export declare class Functions extends Service {
|
|
|
181
213
|
* @param {string} search
|
|
182
214
|
* @throws {AppwriteException}
|
|
183
215
|
* @returns {Promise}
|
|
184
|
-
|
|
216
|
+
*/
|
|
185
217
|
listExecutions(functionId: string, queries?: string[], search?: string): Promise<Models.ExecutionList>;
|
|
186
218
|
/**
|
|
187
219
|
* Create Execution
|
|
@@ -192,12 +224,15 @@ export declare class Functions extends Service {
|
|
|
192
224
|
* function execution process will start asynchronously.
|
|
193
225
|
*
|
|
194
226
|
* @param {string} functionId
|
|
195
|
-
* @param {string}
|
|
227
|
+
* @param {string} body
|
|
196
228
|
* @param {boolean} async
|
|
229
|
+
* @param {string} path
|
|
230
|
+
* @param {string} method
|
|
231
|
+
* @param {object} headers
|
|
197
232
|
* @throws {AppwriteException}
|
|
198
233
|
* @returns {Promise}
|
|
199
|
-
|
|
200
|
-
createExecution(functionId: string,
|
|
234
|
+
*/
|
|
235
|
+
createExecution(functionId: string, body?: string, async?: boolean, path?: string, method?: string, headers?: object): Promise<Models.Execution>;
|
|
201
236
|
/**
|
|
202
237
|
* Get Execution
|
|
203
238
|
*
|
|
@@ -207,7 +242,7 @@ export declare class Functions extends Service {
|
|
|
207
242
|
* @param {string} executionId
|
|
208
243
|
* @throws {AppwriteException}
|
|
209
244
|
* @returns {Promise}
|
|
210
|
-
|
|
245
|
+
*/
|
|
211
246
|
getExecution(functionId: string, executionId: string): Promise<Models.Execution>;
|
|
212
247
|
/**
|
|
213
248
|
* Get Function Usage
|
|
@@ -217,7 +252,7 @@ export declare class Functions extends Service {
|
|
|
217
252
|
* @param {string} range
|
|
218
253
|
* @throws {AppwriteException}
|
|
219
254
|
* @returns {Promise}
|
|
220
|
-
|
|
255
|
+
*/
|
|
221
256
|
getFunctionUsage(functionId: string, range?: string): Promise<Models.UsageFunctions>;
|
|
222
257
|
/**
|
|
223
258
|
* List Variables
|
|
@@ -227,20 +262,20 @@ export declare class Functions extends Service {
|
|
|
227
262
|
* @param {string} functionId
|
|
228
263
|
* @throws {AppwriteException}
|
|
229
264
|
* @returns {Promise}
|
|
230
|
-
|
|
265
|
+
*/
|
|
231
266
|
listVariables(functionId: string): Promise<Models.VariableList>;
|
|
232
267
|
/**
|
|
233
268
|
* Create Variable
|
|
234
269
|
*
|
|
235
|
-
* Create a new function variable. These variables can be accessed
|
|
236
|
-
*
|
|
270
|
+
* Create a new function environment variable. These variables can be accessed
|
|
271
|
+
* in the function at runtime as environment variables.
|
|
237
272
|
*
|
|
238
273
|
* @param {string} functionId
|
|
239
274
|
* @param {string} key
|
|
240
275
|
* @param {string} value
|
|
241
276
|
* @throws {AppwriteException}
|
|
242
277
|
* @returns {Promise}
|
|
243
|
-
|
|
278
|
+
*/
|
|
244
279
|
createVariable(functionId: string, key: string, value: string): Promise<Models.Variable>;
|
|
245
280
|
/**
|
|
246
281
|
* Get Variable
|
|
@@ -251,7 +286,7 @@ export declare class Functions extends Service {
|
|
|
251
286
|
* @param {string} variableId
|
|
252
287
|
* @throws {AppwriteException}
|
|
253
288
|
* @returns {Promise}
|
|
254
|
-
|
|
289
|
+
*/
|
|
255
290
|
getVariable(functionId: string, variableId: string): Promise<Models.Variable>;
|
|
256
291
|
/**
|
|
257
292
|
* Update Variable
|
|
@@ -264,7 +299,7 @@ export declare class Functions extends Service {
|
|
|
264
299
|
* @param {string} value
|
|
265
300
|
* @throws {AppwriteException}
|
|
266
301
|
* @returns {Promise}
|
|
267
|
-
|
|
302
|
+
*/
|
|
268
303
|
updateVariable(functionId: string, variableId: string, key: string, value?: string): Promise<Models.Variable>;
|
|
269
304
|
/**
|
|
270
305
|
* Delete Variable
|
|
@@ -275,6 +310,6 @@ export declare class Functions extends Service {
|
|
|
275
310
|
* @param {string} variableId
|
|
276
311
|
* @throws {AppwriteException}
|
|
277
312
|
* @returns {Promise}
|
|
278
|
-
|
|
313
|
+
*/
|
|
279
314
|
deleteVariable(functionId: string, variableId: string): Promise<{}>;
|
|
280
315
|
}
|
|
@@ -10,7 +10,7 @@ export declare class Graphql extends Service {
|
|
|
10
10
|
* @param {object} query
|
|
11
11
|
* @throws {AppwriteException}
|
|
12
12
|
* @returns {Promise}
|
|
13
|
-
|
|
13
|
+
*/
|
|
14
14
|
query(query: object): Promise<{}>;
|
|
15
15
|
/**
|
|
16
16
|
* GraphQL Endpoint
|
|
@@ -20,6 +20,6 @@ export declare class Graphql extends Service {
|
|
|
20
20
|
* @param {object} query
|
|
21
21
|
* @throws {AppwriteException}
|
|
22
22
|
* @returns {Promise}
|
|
23
|
-
|
|
23
|
+
*/
|
|
24
24
|
mutation(query: object): Promise<{}>;
|
|
25
25
|
}
|
|
@@ -10,7 +10,7 @@ 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
16
|
* Get Antivirus
|
|
@@ -19,7 +19,7 @@ export declare class Health extends Service {
|
|
|
19
19
|
*
|
|
20
20
|
* @throws {AppwriteException}
|
|
21
21
|
* @returns {Promise}
|
|
22
|
-
|
|
22
|
+
*/
|
|
23
23
|
getAntivirus(): Promise<Models.HealthAntivirus>;
|
|
24
24
|
/**
|
|
25
25
|
* Get Cache
|
|
@@ -29,7 +29,7 @@ export declare class Health extends Service {
|
|
|
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,7 +38,7 @@ 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
44
|
* Get PubSub
|
|
@@ -47,7 +47,7 @@ export declare class Health extends Service {
|
|
|
47
47
|
*
|
|
48
48
|
* @throws {AppwriteException}
|
|
49
49
|
* @returns {Promise}
|
|
50
|
-
|
|
50
|
+
*/
|
|
51
51
|
getPubSub(): Promise<Models.HealthStatus>;
|
|
52
52
|
/**
|
|
53
53
|
* Get Queue
|
|
@@ -57,7 +57,7 @@ export declare class Health extends Service {
|
|
|
57
57
|
*
|
|
58
58
|
* @throws {AppwriteException}
|
|
59
59
|
* @returns {Promise}
|
|
60
|
-
|
|
60
|
+
*/
|
|
61
61
|
getQueue(): Promise<Models.HealthStatus>;
|
|
62
62
|
/**
|
|
63
63
|
* Get Certificates Queue
|
|
@@ -68,7 +68,7 @@ export declare class Health extends Service {
|
|
|
68
68
|
*
|
|
69
69
|
* @throws {AppwriteException}
|
|
70
70
|
* @returns {Promise}
|
|
71
|
-
|
|
71
|
+
*/
|
|
72
72
|
getQueueCertificates(): Promise<Models.HealthQueue>;
|
|
73
73
|
/**
|
|
74
74
|
* Get Functions Queue
|
|
@@ -76,7 +76,7 @@ export declare class Health extends Service {
|
|
|
76
76
|
*
|
|
77
77
|
* @throws {AppwriteException}
|
|
78
78
|
* @returns {Promise}
|
|
79
|
-
|
|
79
|
+
*/
|
|
80
80
|
getQueueFunctions(): Promise<Models.HealthQueue>;
|
|
81
81
|
/**
|
|
82
82
|
* Get Logs Queue
|
|
@@ -86,7 +86,7 @@ export declare class Health extends Service {
|
|
|
86
86
|
*
|
|
87
87
|
* @throws {AppwriteException}
|
|
88
88
|
* @returns {Promise}
|
|
89
|
-
|
|
89
|
+
*/
|
|
90
90
|
getQueueLogs(): Promise<Models.HealthQueue>;
|
|
91
91
|
/**
|
|
92
92
|
* Get Webhooks Queue
|
|
@@ -96,7 +96,7 @@ export declare class Health extends Service {
|
|
|
96
96
|
*
|
|
97
97
|
* @throws {AppwriteException}
|
|
98
98
|
* @returns {Promise}
|
|
99
|
-
|
|
99
|
+
*/
|
|
100
100
|
getQueueWebhooks(): Promise<Models.HealthQueue>;
|
|
101
101
|
/**
|
|
102
102
|
* Get Local Storage
|
|
@@ -105,7 +105,7 @@ export declare class Health extends Service {
|
|
|
105
105
|
*
|
|
106
106
|
* @throws {AppwriteException}
|
|
107
107
|
* @returns {Promise}
|
|
108
|
-
|
|
108
|
+
*/
|
|
109
109
|
getStorageLocal(): Promise<Models.HealthStatus>;
|
|
110
110
|
/**
|
|
111
111
|
* Get Time
|
|
@@ -120,6 +120,6 @@ export declare class Health extends Service {
|
|
|
120
120
|
*
|
|
121
121
|
* @throws {AppwriteException}
|
|
122
122
|
* @returns {Promise}
|
|
123
|
-
|
|
123
|
+
*/
|
|
124
124
|
getTime(): Promise<Models.HealthTime>;
|
|
125
125
|
}
|
|
@@ -15,8 +15,18 @@ 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
|
+
/**
|
|
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>;
|
|
20
30
|
/**
|
|
21
31
|
* List Continents
|
|
22
32
|
*
|
|
@@ -25,7 +35,7 @@ export declare class Locale extends Service {
|
|
|
25
35
|
*
|
|
26
36
|
* @throws {AppwriteException}
|
|
27
37
|
* @returns {Promise}
|
|
28
|
-
|
|
38
|
+
*/
|
|
29
39
|
listContinents(): Promise<Models.ContinentList>;
|
|
30
40
|
/**
|
|
31
41
|
* List Countries
|
|
@@ -35,7 +45,7 @@ export declare class Locale extends Service {
|
|
|
35
45
|
*
|
|
36
46
|
* @throws {AppwriteException}
|
|
37
47
|
* @returns {Promise}
|
|
38
|
-
|
|
48
|
+
*/
|
|
39
49
|
listCountries(): Promise<Models.CountryList>;
|
|
40
50
|
/**
|
|
41
51
|
* List EU Countries
|
|
@@ -45,7 +55,7 @@ export declare class Locale extends Service {
|
|
|
45
55
|
*
|
|
46
56
|
* @throws {AppwriteException}
|
|
47
57
|
* @returns {Promise}
|
|
48
|
-
|
|
58
|
+
*/
|
|
49
59
|
listCountriesEU(): Promise<Models.CountryList>;
|
|
50
60
|
/**
|
|
51
61
|
* List Countries Phone Codes
|
|
@@ -55,7 +65,7 @@ export declare class Locale extends Service {
|
|
|
55
65
|
*
|
|
56
66
|
* @throws {AppwriteException}
|
|
57
67
|
* @returns {Promise}
|
|
58
|
-
|
|
68
|
+
*/
|
|
59
69
|
listCountriesPhones(): Promise<Models.PhoneList>;
|
|
60
70
|
/**
|
|
61
71
|
* List Currencies
|
|
@@ -66,7 +76,7 @@ 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
82
|
* List Languages
|
|
@@ -76,6 +86,6 @@ export declare class Locale extends Service {
|
|
|
76
86
|
*
|
|
77
87
|
* @throws {AppwriteException}
|
|
78
88
|
* @returns {Promise}
|
|
79
|
-
|
|
89
|
+
*/
|
|
80
90
|
listLanguages(): Promise<Models.LanguageList>;
|
|
81
91
|
}
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
import { Service } from '../service';
|
|
2
|
+
import { Client } from '../client';
|
|
3
|
+
import type { Models } from '../models';
|
|
4
|
+
export declare class Migrations extends Service {
|
|
5
|
+
constructor(client: Client);
|
|
6
|
+
/**
|
|
7
|
+
* List Migrations
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* @param {string} queries
|
|
11
|
+
* @param {string} search
|
|
12
|
+
* @throws {AppwriteException}
|
|
13
|
+
* @returns {Promise}
|
|
14
|
+
*/
|
|
15
|
+
list(queries?: string, search?: string): Promise<Models.MigrationList>;
|
|
16
|
+
/**
|
|
17
|
+
* Migrate Appwrite Data
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
* @param {string[]} resources
|
|
21
|
+
* @param {string} endpoint
|
|
22
|
+
* @param {string} projectId
|
|
23
|
+
* @param {string} apiKey
|
|
24
|
+
* @throws {AppwriteException}
|
|
25
|
+
* @returns {Promise}
|
|
26
|
+
*/
|
|
27
|
+
createAppwriteMigration(resources: string[], endpoint: string, projectId: string, apiKey: string): Promise<Models.Migration>;
|
|
28
|
+
/**
|
|
29
|
+
* Generate a report on Appwrite Data
|
|
30
|
+
*
|
|
31
|
+
*
|
|
32
|
+
* @param {string[]} resources
|
|
33
|
+
* @param {string} endpoint
|
|
34
|
+
* @param {string} projectID
|
|
35
|
+
* @param {string} key
|
|
36
|
+
* @throws {AppwriteException}
|
|
37
|
+
* @returns {Promise}
|
|
38
|
+
*/
|
|
39
|
+
getAppwriteReport(resources: string[], endpoint: string, projectID: string, key: string): Promise<Models.MigrationReport>;
|
|
40
|
+
/**
|
|
41
|
+
* Migrate Firebase Data (Service Account)
|
|
42
|
+
*
|
|
43
|
+
*
|
|
44
|
+
* @param {string[]} resources
|
|
45
|
+
* @param {string} serviceAccount
|
|
46
|
+
* @throws {AppwriteException}
|
|
47
|
+
* @returns {Promise}
|
|
48
|
+
*/
|
|
49
|
+
createFirebaseMigration(resources: string[], serviceAccount: string): Promise<Models.Migration>;
|
|
50
|
+
/**
|
|
51
|
+
* Revoke Appwrite's authorization to access Firebase Projects
|
|
52
|
+
*
|
|
53
|
+
*
|
|
54
|
+
* @throws {AppwriteException}
|
|
55
|
+
* @returns {Promise}
|
|
56
|
+
*/
|
|
57
|
+
deleteFirebaseAuth(): Promise<{}>;
|
|
58
|
+
/**
|
|
59
|
+
* Migrate Firebase Data (OAuth)
|
|
60
|
+
*
|
|
61
|
+
*
|
|
62
|
+
* @param {string[]} resources
|
|
63
|
+
* @param {string} projectId
|
|
64
|
+
* @throws {AppwriteException}
|
|
65
|
+
* @returns {Promise}
|
|
66
|
+
*/
|
|
67
|
+
createFirebaseOAuthMigration(resources: string[], projectId: string): Promise<Models.Migration>;
|
|
68
|
+
/**
|
|
69
|
+
* List Firebase Projects
|
|
70
|
+
*
|
|
71
|
+
*
|
|
72
|
+
* @throws {AppwriteException}
|
|
73
|
+
* @returns {Promise}
|
|
74
|
+
*/
|
|
75
|
+
listFirebaseProjects(): Promise<Models.FirebaseProjectList>;
|
|
76
|
+
/**
|
|
77
|
+
* Generate a report on Firebase Data
|
|
78
|
+
*
|
|
79
|
+
*
|
|
80
|
+
* @param {string[]} resources
|
|
81
|
+
* @param {string} serviceAccount
|
|
82
|
+
* @throws {AppwriteException}
|
|
83
|
+
* @returns {Promise}
|
|
84
|
+
*/
|
|
85
|
+
getFirebaseReport(resources: string[], serviceAccount: string): Promise<Models.MigrationReport>;
|
|
86
|
+
/**
|
|
87
|
+
* Generate a report on Firebase Data using OAuth
|
|
88
|
+
*
|
|
89
|
+
*
|
|
90
|
+
* @param {string[]} resources
|
|
91
|
+
* @param {string} projectId
|
|
92
|
+
* @throws {AppwriteException}
|
|
93
|
+
* @returns {Promise}
|
|
94
|
+
*/
|
|
95
|
+
getFirebaseReportOAuth(resources: string[], projectId: string): Promise<Models.MigrationReport>;
|
|
96
|
+
/**
|
|
97
|
+
* Migrate NHost Data
|
|
98
|
+
*
|
|
99
|
+
*
|
|
100
|
+
* @param {string[]} resources
|
|
101
|
+
* @param {string} subdomain
|
|
102
|
+
* @param {string} region
|
|
103
|
+
* @param {string} adminSecret
|
|
104
|
+
* @param {string} database
|
|
105
|
+
* @param {string} username
|
|
106
|
+
* @param {string} password
|
|
107
|
+
* @param {number} port
|
|
108
|
+
* @throws {AppwriteException}
|
|
109
|
+
* @returns {Promise}
|
|
110
|
+
*/
|
|
111
|
+
createNHostMigration(resources: string[], subdomain: string, region: string, adminSecret: string, database: string, username: string, password: string, port?: number): Promise<Models.Migration>;
|
|
112
|
+
/**
|
|
113
|
+
* Generate a report on NHost Data
|
|
114
|
+
*
|
|
115
|
+
*
|
|
116
|
+
* @param {string[]} resources
|
|
117
|
+
* @param {string} subdomain
|
|
118
|
+
* @param {string} region
|
|
119
|
+
* @param {string} adminSecret
|
|
120
|
+
* @param {string} database
|
|
121
|
+
* @param {string} username
|
|
122
|
+
* @param {string} password
|
|
123
|
+
* @param {number} port
|
|
124
|
+
* @throws {AppwriteException}
|
|
125
|
+
* @returns {Promise}
|
|
126
|
+
*/
|
|
127
|
+
getNHostReport(resources: string[], subdomain: string, region: string, adminSecret: string, database: string, username: string, password: string, port?: number): Promise<Models.MigrationReport>;
|
|
128
|
+
/**
|
|
129
|
+
* Migrate Supabase Data
|
|
130
|
+
*
|
|
131
|
+
*
|
|
132
|
+
* @param {string[]} resources
|
|
133
|
+
* @param {string} endpoint
|
|
134
|
+
* @param {string} apiKey
|
|
135
|
+
* @param {string} databaseHost
|
|
136
|
+
* @param {string} username
|
|
137
|
+
* @param {string} password
|
|
138
|
+
* @param {number} port
|
|
139
|
+
* @throws {AppwriteException}
|
|
140
|
+
* @returns {Promise}
|
|
141
|
+
*/
|
|
142
|
+
createSupabaseMigration(resources: string[], endpoint: string, apiKey: string, databaseHost: string, username: string, password: string, port?: number): Promise<Models.Migration>;
|
|
143
|
+
/**
|
|
144
|
+
* Generate a report on Supabase Data
|
|
145
|
+
*
|
|
146
|
+
*
|
|
147
|
+
* @param {string[]} resources
|
|
148
|
+
* @param {string} endpoint
|
|
149
|
+
* @param {string} apiKey
|
|
150
|
+
* @param {string} databaseHost
|
|
151
|
+
* @param {string} username
|
|
152
|
+
* @param {string} password
|
|
153
|
+
* @param {number} port
|
|
154
|
+
* @throws {AppwriteException}
|
|
155
|
+
* @returns {Promise}
|
|
156
|
+
*/
|
|
157
|
+
getSupabaseReport(resources: string[], endpoint: string, apiKey: string, databaseHost: string, username: string, password: string, port?: number): Promise<Models.MigrationReport>;
|
|
158
|
+
/**
|
|
159
|
+
* Get Migration
|
|
160
|
+
*
|
|
161
|
+
*
|
|
162
|
+
* @param {string} migrationId
|
|
163
|
+
* @throws {AppwriteException}
|
|
164
|
+
* @returns {Promise}
|
|
165
|
+
*/
|
|
166
|
+
get(migrationId: string): Promise<Models.Migration>;
|
|
167
|
+
/**
|
|
168
|
+
* Retry Migration
|
|
169
|
+
*
|
|
170
|
+
*
|
|
171
|
+
* @param {string} migrationId
|
|
172
|
+
* @throws {AppwriteException}
|
|
173
|
+
* @returns {Promise}
|
|
174
|
+
*/
|
|
175
|
+
retry(migrationId: string): Promise<Models.Migration>;
|
|
176
|
+
/**
|
|
177
|
+
* Delete Migration
|
|
178
|
+
*
|
|
179
|
+
*
|
|
180
|
+
* @param {string} migrationId
|
|
181
|
+
* @throws {AppwriteException}
|
|
182
|
+
* @returns {Promise}
|
|
183
|
+
*/
|
|
184
|
+
delete(migrationId: string): Promise<{}>;
|
|
185
|
+
}
|