@appwrite.io/console 7.0.0 → 8.1.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.
Files changed (150) hide show
  1. package/.github/workflows/publish.yml +1 -1
  2. package/CHANGELOG.md +30 -6
  3. package/README.md +2 -2
  4. package/dist/cjs/sdk.js +222 -303
  5. package/docs/examples/databases/create-index.md +2 -2
  6. package/docs/examples/domains/create-purchase.md +2 -1
  7. package/docs/examples/domains/create-transfer-in.md +2 -1
  8. package/docs/examples/domains/update-auto-renewal.md +16 -0
  9. package/docs/examples/project/create-variable.md +1 -0
  10. package/docs/examples/project/list-variables.md +4 -1
  11. package/docs/examples/project/update-variable.md +1 -1
  12. package/docs/examples/tablesdb/create-index.md +2 -2
  13. package/docs/examples/users/update-impersonator.md +16 -0
  14. package/package.json +7 -7
  15. package/rollup.config.js +2 -1
  16. package/src/client.ts +61 -1
  17. package/src/enums/appwrite-migration-resource.ts +2 -0
  18. package/src/enums/backup-services.ts +3 -0
  19. package/src/enums/build-runtime.ts +0 -86
  20. package/src/enums/database-type.ts +2 -0
  21. package/src/enums/databases-index-type.ts +6 -0
  22. package/src/enums/runtime.ts +0 -86
  23. package/src/enums/runtimes.ts +0 -86
  24. package/src/enums/scopes.ts +13 -2
  25. package/src/enums/{index-type.ts → tables-db-index-type.ts} +1 -1
  26. package/src/enums/template-reference-type.ts +1 -1
  27. package/src/enums/use-cases.ts +7 -2
  28. package/src/index.ts +2 -1
  29. package/src/models.ts +172 -4
  30. package/src/services/databases.ts +10 -10
  31. package/src/services/domains.ts +103 -26
  32. package/src/services/project.ts +76 -33
  33. package/src/services/tables-db.ts +10 -10
  34. package/src/services/users.ts +67 -2
  35. package/src/services/vcs.ts +10 -10
  36. package/dist/cjs/sdk.js.map +0 -1
  37. package/dist/esm/sdk.js +0 -29782
  38. package/dist/esm/sdk.js.map +0 -1
  39. package/dist/iife/sdk.js +0 -33583
  40. package/types/channel.d.ts +0 -74
  41. package/types/client.d.ts +0 -260
  42. package/types/enums/adapter.d.ts +0 -4
  43. package/types/enums/api-service.d.ts +0 -15
  44. package/types/enums/api.d.ts +0 -5
  45. package/types/enums/appwrite-migration-resource.d.ts +0 -25
  46. package/types/enums/attribute-status.d.ts +0 -7
  47. package/types/enums/auth-method.d.ts +0 -9
  48. package/types/enums/authentication-factor.d.ts +0 -6
  49. package/types/enums/authenticator-type.d.ts +0 -3
  50. package/types/enums/backup-services.d.ts +0 -5
  51. package/types/enums/billing-plan-group.d.ts +0 -5
  52. package/types/enums/browser-permission.d.ts +0 -22
  53. package/types/enums/browser.d.ts +0 -16
  54. package/types/enums/build-runtime.d.ts +0 -174
  55. package/types/enums/column-status.d.ts +0 -7
  56. package/types/enums/compression.d.ts +0 -5
  57. package/types/enums/console-resource-type.d.ts +0 -3
  58. package/types/enums/credit-card.d.ts +0 -19
  59. package/types/enums/database-type.d.ts +0 -4
  60. package/types/enums/deployment-download-type.d.ts +0 -4
  61. package/types/enums/deployment-status.d.ts +0 -8
  62. package/types/enums/domain-purchase-status.d.ts +0 -6
  63. package/types/enums/domain-transfer-status-enum.d.ts +0 -10
  64. package/types/enums/email-template-locale.d.ts +0 -133
  65. package/types/enums/email-template-type.d.ts +0 -9
  66. package/types/enums/execution-method.d.ts +0 -9
  67. package/types/enums/execution-status.d.ts +0 -7
  68. package/types/enums/execution-trigger.d.ts +0 -5
  69. package/types/enums/filter-type.d.ts +0 -4
  70. package/types/enums/firebase-migration-resource.d.ts +0 -12
  71. package/types/enums/flag.d.ts +0 -197
  72. package/types/enums/framework.d.ts +0 -17
  73. package/types/enums/frameworks.d.ts +0 -17
  74. package/types/enums/health-antivirus-status.d.ts +0 -5
  75. package/types/enums/health-check-status.d.ts +0 -4
  76. package/types/enums/image-format.d.ts +0 -9
  77. package/types/enums/image-gravity.d.ts +0 -11
  78. package/types/enums/index-status.d.ts +0 -7
  79. package/types/enums/index-type.d.ts +0 -6
  80. package/types/enums/message-priority.d.ts +0 -4
  81. package/types/enums/message-status.d.ts +0 -7
  82. package/types/enums/messaging-provider-type.d.ts +0 -5
  83. package/types/enums/n-host-migration-resource.d.ts +0 -13
  84. package/types/enums/name.d.ts +0 -15
  85. package/types/enums/o-auth-provider.d.ts +0 -41
  86. package/types/enums/order-by.d.ts +0 -4
  87. package/types/enums/password-hash.d.ts +0 -13
  88. package/types/enums/platform-type.d.ts +0 -17
  89. package/types/enums/platform.d.ts +0 -4
  90. package/types/enums/project-usage-range.d.ts +0 -4
  91. package/types/enums/proxy-resource-type.d.ts +0 -4
  92. package/types/enums/proxy-rule-deployment-resource-type.d.ts +0 -4
  93. package/types/enums/proxy-rule-status.d.ts +0 -6
  94. package/types/enums/region.d.ts +0 -8
  95. package/types/enums/registration-type.d.ts +0 -6
  96. package/types/enums/relation-mutate.d.ts +0 -5
  97. package/types/enums/relationship-type.d.ts +0 -6
  98. package/types/enums/resource-type.d.ts +0 -6
  99. package/types/enums/runtime.d.ts +0 -174
  100. package/types/enums/runtimes.d.ts +0 -174
  101. package/types/enums/scopes.d.ts +0 -70
  102. package/types/enums/sms-template-locale.d.ts +0 -133
  103. package/types/enums/sms-template-type.d.ts +0 -6
  104. package/types/enums/smtp-encryption.d.ts +0 -5
  105. package/types/enums/smtp-secure.d.ts +0 -4
  106. package/types/enums/status-code.d.ts +0 -6
  107. package/types/enums/status.d.ts +0 -3
  108. package/types/enums/supabase-migration-resource.d.ts +0 -13
  109. package/types/enums/template-reference-type.d.ts +0 -5
  110. package/types/enums/theme.d.ts +0 -4
  111. package/types/enums/timezone.d.ts +0 -421
  112. package/types/enums/usage-range.d.ts +0 -5
  113. package/types/enums/use-cases.d.ts +0 -11
  114. package/types/enums/vcs-detection-type.d.ts +0 -4
  115. package/types/enums/vcs-reference-type.d.ts +0 -5
  116. package/types/id.d.ts +0 -20
  117. package/types/index.d.ts +0 -117
  118. package/types/models.d.ts +0 -9071
  119. package/types/operator.d.ts +0 -180
  120. package/types/permission.d.ts +0 -43
  121. package/types/query.d.ts +0 -442
  122. package/types/role.d.ts +0 -70
  123. package/types/service.d.ts +0 -11
  124. package/types/services/account.d.ts +0 -1536
  125. package/types/services/activities.d.ts +0 -46
  126. package/types/services/assistant.d.ts +0 -24
  127. package/types/services/avatars.d.ts +0 -320
  128. package/types/services/backups.d.ts +0 -277
  129. package/types/services/console.d.ts +0 -248
  130. package/types/services/databases.d.ts +0 -2435
  131. package/types/services/domains.d.ts +0 -1499
  132. package/types/services/functions.d.ts +0 -842
  133. package/types/services/graphql.d.ts +0 -43
  134. package/types/services/health.d.ts +0 -475
  135. package/types/services/locale.d.ts +0 -64
  136. package/types/services/messaging.d.ts +0 -1989
  137. package/types/services/migrations.d.ts +0 -417
  138. package/types/services/organizations.d.ts +0 -1009
  139. package/types/services/project.d.ts +0 -130
  140. package/types/services/projects.d.ts +0 -1626
  141. package/types/services/proxy.d.ts +0 -190
  142. package/types/services/realtime.d.ts +0 -134
  143. package/types/services/sites.d.ts +0 -800
  144. package/types/services/storage.d.ts +0 -467
  145. package/types/services/tables-db.d.ts +0 -2352
  146. package/types/services/teams.d.ts +0 -366
  147. package/types/services/tokens.d.ts +0 -119
  148. package/types/services/users.d.ts +0 -1184
  149. package/types/services/vcs.d.ts +0 -252
  150. package/types/services/webhooks.d.ts +0 -165
@@ -1,417 +0,0 @@
1
- import { Client } from '../client';
2
- import type { Models } from '../models';
3
- import { AppwriteMigrationResource } from '../enums/appwrite-migration-resource';
4
- import { FirebaseMigrationResource } from '../enums/firebase-migration-resource';
5
- import { NHostMigrationResource } from '../enums/n-host-migration-resource';
6
- import { SupabaseMigrationResource } from '../enums/supabase-migration-resource';
7
- export declare class Migrations {
8
- client: Client;
9
- constructor(client: Client);
10
- /**
11
- * List all migrations in the current project. This endpoint returns a list of all migrations including their status, progress, and any errors that occurred during the migration process.
12
- *
13
- * @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/databases#querying-documents). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: status, stage, source, destination, resources, resourceId, resourceType, statusCounters, resourceData, errors
14
- * @param {string} params.search - Search term to filter your list results. Max length: 256 chars.
15
- * @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated.
16
- * @throws {AppwriteException}
17
- * @returns {Promise<Models.MigrationList>}
18
- */
19
- list(params?: {
20
- queries?: string[];
21
- search?: string;
22
- total?: boolean;
23
- }): Promise<Models.MigrationList>;
24
- /**
25
- * List all migrations in the current project. This endpoint returns a list of all migrations including their status, progress, and any errors that occurred during the migration process.
26
- *
27
- * @param {string[]} queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/databases#querying-documents). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: status, stage, source, destination, resources, resourceId, resourceType, statusCounters, resourceData, errors
28
- * @param {string} search - Search term to filter your list results. Max length: 256 chars.
29
- * @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated.
30
- * @throws {AppwriteException}
31
- * @returns {Promise<Models.MigrationList>}
32
- * @deprecated Use the object parameter style method for a better developer experience.
33
- */
34
- list(queries?: string[], search?: string, total?: boolean): Promise<Models.MigrationList>;
35
- /**
36
- * Migrate data from another Appwrite project to your current project. This endpoint allows you to migrate resources like databases, collections, documents, users, and files from an existing Appwrite project.
37
- *
38
- * @param {AppwriteMigrationResource[]} params.resources - List of resources to migrate
39
- * @param {string} params.endpoint - Source Appwrite endpoint
40
- * @param {string} params.projectId - Source Project ID
41
- * @param {string} params.apiKey - Source API Key
42
- * @throws {AppwriteException}
43
- * @returns {Promise<Models.Migration>}
44
- */
45
- createAppwriteMigration(params: {
46
- resources: AppwriteMigrationResource[];
47
- endpoint: string;
48
- projectId: string;
49
- apiKey: string;
50
- }): Promise<Models.Migration>;
51
- /**
52
- * Migrate data from another Appwrite project to your current project. This endpoint allows you to migrate resources like databases, collections, documents, users, and files from an existing Appwrite project.
53
- *
54
- * @param {AppwriteMigrationResource[]} resources - List of resources to migrate
55
- * @param {string} endpoint - Source Appwrite endpoint
56
- * @param {string} projectId - Source Project ID
57
- * @param {string} apiKey - Source API Key
58
- * @throws {AppwriteException}
59
- * @returns {Promise<Models.Migration>}
60
- * @deprecated Use the object parameter style method for a better developer experience.
61
- */
62
- createAppwriteMigration(resources: AppwriteMigrationResource[], endpoint: string, projectId: string, apiKey: string): Promise<Models.Migration>;
63
- /**
64
- * Generate a report of the data in an Appwrite project before migrating. This endpoint analyzes the source project and returns information about the resources that can be migrated.
65
- *
66
- * @param {AppwriteMigrationResource[]} params.resources - List of resources to migrate
67
- * @param {string} params.endpoint - Source's Appwrite Endpoint
68
- * @param {string} params.projectID - Source's Project ID
69
- * @param {string} params.key - Source's API Key
70
- * @throws {AppwriteException}
71
- * @returns {Promise<Models.MigrationReport>}
72
- */
73
- getAppwriteReport(params: {
74
- resources: AppwriteMigrationResource[];
75
- endpoint: string;
76
- projectID: string;
77
- key: string;
78
- }): Promise<Models.MigrationReport>;
79
- /**
80
- * Generate a report of the data in an Appwrite project before migrating. This endpoint analyzes the source project and returns information about the resources that can be migrated.
81
- *
82
- * @param {AppwriteMigrationResource[]} resources - List of resources to migrate
83
- * @param {string} endpoint - Source's Appwrite Endpoint
84
- * @param {string} projectID - Source's Project ID
85
- * @param {string} key - Source's API Key
86
- * @throws {AppwriteException}
87
- * @returns {Promise<Models.MigrationReport>}
88
- * @deprecated Use the object parameter style method for a better developer experience.
89
- */
90
- getAppwriteReport(resources: AppwriteMigrationResource[], endpoint: string, projectID: string, key: string): Promise<Models.MigrationReport>;
91
- /**
92
- * Export documents to a CSV file from your Appwrite database. This endpoint allows you to export documents to a CSV file stored in a secure internal bucket. You'll receive an email with a download link when the export is complete.
93
- *
94
- * @param {string} params.resourceId - Composite ID in the format {databaseId:collectionId}, identifying a collection within a database to export.
95
- * @param {string} params.filename - The name of the file to be created for the export, excluding the .csv extension.
96
- * @param {string[]} params.columns - List of attributes to export. If empty, all attributes will be exported. You can use the `*` wildcard to export all attributes from the collection.
97
- * @param {string[]} params.queries - Array of query strings generated using the Query class provided by the SDK to filter documents to export. [Learn more about queries](https://appwrite.io/docs/databases#querying-documents). Maximum of 100 queries are allowed, each 4096 characters long.
98
- * @param {string} params.delimiter - The character that separates each column value. Default is comma.
99
- * @param {string} params.enclosure - The character that encloses each column value. Default is double quotes.
100
- * @param {string} params.escape - The escape character for the enclosure character. Default is double quotes.
101
- * @param {boolean} params.header - Whether to include the header row with column names. Default is true.
102
- * @param {boolean} params.notify - Set to true to receive an email when the export is complete. Default is true.
103
- * @throws {AppwriteException}
104
- * @returns {Promise<Models.Migration>}
105
- */
106
- createCSVExport(params: {
107
- resourceId: string;
108
- filename: string;
109
- columns?: string[];
110
- queries?: string[];
111
- delimiter?: string;
112
- enclosure?: string;
113
- escape?: string;
114
- header?: boolean;
115
- notify?: boolean;
116
- }): Promise<Models.Migration>;
117
- /**
118
- * Export documents to a CSV file from your Appwrite database. This endpoint allows you to export documents to a CSV file stored in a secure internal bucket. You'll receive an email with a download link when the export is complete.
119
- *
120
- * @param {string} resourceId - Composite ID in the format {databaseId:collectionId}, identifying a collection within a database to export.
121
- * @param {string} filename - The name of the file to be created for the export, excluding the .csv extension.
122
- * @param {string[]} columns - List of attributes to export. If empty, all attributes will be exported. You can use the `*` wildcard to export all attributes from the collection.
123
- * @param {string[]} queries - Array of query strings generated using the Query class provided by the SDK to filter documents to export. [Learn more about queries](https://appwrite.io/docs/databases#querying-documents). Maximum of 100 queries are allowed, each 4096 characters long.
124
- * @param {string} delimiter - The character that separates each column value. Default is comma.
125
- * @param {string} enclosure - The character that encloses each column value. Default is double quotes.
126
- * @param {string} escape - The escape character for the enclosure character. Default is double quotes.
127
- * @param {boolean} header - Whether to include the header row with column names. Default is true.
128
- * @param {boolean} notify - Set to true to receive an email when the export is complete. Default is true.
129
- * @throws {AppwriteException}
130
- * @returns {Promise<Models.Migration>}
131
- * @deprecated Use the object parameter style method for a better developer experience.
132
- */
133
- createCSVExport(resourceId: string, filename: string, columns?: string[], queries?: string[], delimiter?: string, enclosure?: string, escape?: string, header?: boolean, notify?: boolean): Promise<Models.Migration>;
134
- /**
135
- * Import documents from a CSV file into your Appwrite database. This endpoint allows you to import documents from a CSV file uploaded to Appwrite Storage bucket.
136
- *
137
- * @param {string} params.bucketId - Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](https://appwrite.io/docs/server/storage#createBucket).
138
- * @param {string} params.fileId - File ID.
139
- * @param {string} params.resourceId - Composite ID in the format {databaseId:collectionId}, identifying a collection within a database.
140
- * @param {boolean} params.internalFile - Is the file stored in an internal bucket?
141
- * @throws {AppwriteException}
142
- * @returns {Promise<Models.Migration>}
143
- */
144
- createCSVImport(params: {
145
- bucketId: string;
146
- fileId: string;
147
- resourceId: string;
148
- internalFile?: boolean;
149
- }): Promise<Models.Migration>;
150
- /**
151
- * Import documents from a CSV file into your Appwrite database. This endpoint allows you to import documents from a CSV file uploaded to Appwrite Storage bucket.
152
- *
153
- * @param {string} bucketId - Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](https://appwrite.io/docs/server/storage#createBucket).
154
- * @param {string} fileId - File ID.
155
- * @param {string} resourceId - Composite ID in the format {databaseId:collectionId}, identifying a collection within a database.
156
- * @param {boolean} internalFile - Is the file stored in an internal bucket?
157
- * @throws {AppwriteException}
158
- * @returns {Promise<Models.Migration>}
159
- * @deprecated Use the object parameter style method for a better developer experience.
160
- */
161
- createCSVImport(bucketId: string, fileId: string, resourceId: string, internalFile?: boolean): Promise<Models.Migration>;
162
- /**
163
- * Migrate data from a Firebase project to your Appwrite project. This endpoint allows you to migrate resources like authentication and other supported services from a Firebase project.
164
- *
165
- * @param {FirebaseMigrationResource[]} params.resources - List of resources to migrate
166
- * @param {string} params.serviceAccount - JSON of the Firebase service account credentials
167
- * @throws {AppwriteException}
168
- * @returns {Promise<Models.Migration>}
169
- */
170
- createFirebaseMigration(params: {
171
- resources: FirebaseMigrationResource[];
172
- serviceAccount: string;
173
- }): Promise<Models.Migration>;
174
- /**
175
- * Migrate data from a Firebase project to your Appwrite project. This endpoint allows you to migrate resources like authentication and other supported services from a Firebase project.
176
- *
177
- * @param {FirebaseMigrationResource[]} resources - List of resources to migrate
178
- * @param {string} serviceAccount - JSON of the Firebase service account credentials
179
- * @throws {AppwriteException}
180
- * @returns {Promise<Models.Migration>}
181
- * @deprecated Use the object parameter style method for a better developer experience.
182
- */
183
- createFirebaseMigration(resources: FirebaseMigrationResource[], serviceAccount: string): Promise<Models.Migration>;
184
- /**
185
- * Generate a report of the data in a Firebase project before migrating. This endpoint analyzes the source project and returns information about the resources that can be migrated.
186
- *
187
- * @param {FirebaseMigrationResource[]} params.resources - List of resources to migrate
188
- * @param {string} params.serviceAccount - JSON of the Firebase service account credentials
189
- * @throws {AppwriteException}
190
- * @returns {Promise<Models.MigrationReport>}
191
- */
192
- getFirebaseReport(params: {
193
- resources: FirebaseMigrationResource[];
194
- serviceAccount: string;
195
- }): Promise<Models.MigrationReport>;
196
- /**
197
- * Generate a report of the data in a Firebase project before migrating. This endpoint analyzes the source project and returns information about the resources that can be migrated.
198
- *
199
- * @param {FirebaseMigrationResource[]} resources - List of resources to migrate
200
- * @param {string} serviceAccount - JSON of the Firebase service account credentials
201
- * @throws {AppwriteException}
202
- * @returns {Promise<Models.MigrationReport>}
203
- * @deprecated Use the object parameter style method for a better developer experience.
204
- */
205
- getFirebaseReport(resources: FirebaseMigrationResource[], serviceAccount: string): Promise<Models.MigrationReport>;
206
- /**
207
- * Migrate data from an NHost project to your Appwrite project. This endpoint allows you to migrate resources like authentication, databases, and other supported services from an NHost project.
208
- *
209
- * @param {NHostMigrationResource[]} params.resources - List of resources to migrate
210
- * @param {string} params.subdomain - Source's Subdomain
211
- * @param {string} params.region - Source's Region
212
- * @param {string} params.adminSecret - Source's Admin Secret
213
- * @param {string} params.database - Source's Database Name
214
- * @param {string} params.username - Source's Database Username
215
- * @param {string} params.password - Source's Database Password
216
- * @param {number} params.port - Source's Database Port
217
- * @throws {AppwriteException}
218
- * @returns {Promise<Models.Migration>}
219
- */
220
- createNHostMigration(params: {
221
- resources: NHostMigrationResource[];
222
- subdomain: string;
223
- region: string;
224
- adminSecret: string;
225
- database: string;
226
- username: string;
227
- password: string;
228
- port?: number;
229
- }): Promise<Models.Migration>;
230
- /**
231
- * Migrate data from an NHost project to your Appwrite project. This endpoint allows you to migrate resources like authentication, databases, and other supported services from an NHost project.
232
- *
233
- * @param {NHostMigrationResource[]} resources - List of resources to migrate
234
- * @param {string} subdomain - Source's Subdomain
235
- * @param {string} region - Source's Region
236
- * @param {string} adminSecret - Source's Admin Secret
237
- * @param {string} database - Source's Database Name
238
- * @param {string} username - Source's Database Username
239
- * @param {string} password - Source's Database Password
240
- * @param {number} port - Source's Database Port
241
- * @throws {AppwriteException}
242
- * @returns {Promise<Models.Migration>}
243
- * @deprecated Use the object parameter style method for a better developer experience.
244
- */
245
- createNHostMigration(resources: NHostMigrationResource[], subdomain: string, region: string, adminSecret: string, database: string, username: string, password: string, port?: number): Promise<Models.Migration>;
246
- /**
247
- * Generate a detailed report of the data in an NHost project before migrating. This endpoint analyzes the source project and returns information about the resources that can be migrated.
248
- *
249
- * @param {NHostMigrationResource[]} params.resources - List of resources to migrate.
250
- * @param {string} params.subdomain - Source's Subdomain.
251
- * @param {string} params.region - Source's Region.
252
- * @param {string} params.adminSecret - Source's Admin Secret.
253
- * @param {string} params.database - Source's Database Name.
254
- * @param {string} params.username - Source's Database Username.
255
- * @param {string} params.password - Source's Database Password.
256
- * @param {number} params.port - Source's Database Port.
257
- * @throws {AppwriteException}
258
- * @returns {Promise<Models.MigrationReport>}
259
- */
260
- getNHostReport(params: {
261
- resources: NHostMigrationResource[];
262
- subdomain: string;
263
- region: string;
264
- adminSecret: string;
265
- database: string;
266
- username: string;
267
- password: string;
268
- port?: number;
269
- }): Promise<Models.MigrationReport>;
270
- /**
271
- * Generate a detailed report of the data in an NHost project before migrating. This endpoint analyzes the source project and returns information about the resources that can be migrated.
272
- *
273
- * @param {NHostMigrationResource[]} resources - List of resources to migrate.
274
- * @param {string} subdomain - Source's Subdomain.
275
- * @param {string} region - Source's Region.
276
- * @param {string} adminSecret - Source's Admin Secret.
277
- * @param {string} database - Source's Database Name.
278
- * @param {string} username - Source's Database Username.
279
- * @param {string} password - Source's Database Password.
280
- * @param {number} port - Source's Database Port.
281
- * @throws {AppwriteException}
282
- * @returns {Promise<Models.MigrationReport>}
283
- * @deprecated Use the object parameter style method for a better developer experience.
284
- */
285
- getNHostReport(resources: NHostMigrationResource[], subdomain: string, region: string, adminSecret: string, database: string, username: string, password: string, port?: number): Promise<Models.MigrationReport>;
286
- /**
287
- * Migrate data from a Supabase project to your Appwrite project. This endpoint allows you to migrate resources like authentication, databases, and other supported services from a Supabase project.
288
- *
289
- * @param {SupabaseMigrationResource[]} params.resources - List of resources to migrate
290
- * @param {string} params.endpoint - Source's Supabase Endpoint
291
- * @param {string} params.apiKey - Source's API Key
292
- * @param {string} params.databaseHost - Source's Database Host
293
- * @param {string} params.username - Source's Database Username
294
- * @param {string} params.password - Source's Database Password
295
- * @param {number} params.port - Source's Database Port
296
- * @throws {AppwriteException}
297
- * @returns {Promise<Models.Migration>}
298
- */
299
- createSupabaseMigration(params: {
300
- resources: SupabaseMigrationResource[];
301
- endpoint: string;
302
- apiKey: string;
303
- databaseHost: string;
304
- username: string;
305
- password: string;
306
- port?: number;
307
- }): Promise<Models.Migration>;
308
- /**
309
- * Migrate data from a Supabase project to your Appwrite project. This endpoint allows you to migrate resources like authentication, databases, and other supported services from a Supabase project.
310
- *
311
- * @param {SupabaseMigrationResource[]} resources - List of resources to migrate
312
- * @param {string} endpoint - Source's Supabase Endpoint
313
- * @param {string} apiKey - Source's API Key
314
- * @param {string} databaseHost - Source's Database Host
315
- * @param {string} username - Source's Database Username
316
- * @param {string} password - Source's Database Password
317
- * @param {number} port - Source's Database Port
318
- * @throws {AppwriteException}
319
- * @returns {Promise<Models.Migration>}
320
- * @deprecated Use the object parameter style method for a better developer experience.
321
- */
322
- createSupabaseMigration(resources: SupabaseMigrationResource[], endpoint: string, apiKey: string, databaseHost: string, username: string, password: string, port?: number): Promise<Models.Migration>;
323
- /**
324
- * Generate a report of the data in a Supabase project before migrating. This endpoint analyzes the source project and returns information about the resources that can be migrated.
325
- *
326
- * @param {SupabaseMigrationResource[]} params.resources - List of resources to migrate
327
- * @param {string} params.endpoint - Source's Supabase Endpoint.
328
- * @param {string} params.apiKey - Source's API Key.
329
- * @param {string} params.databaseHost - Source's Database Host.
330
- * @param {string} params.username - Source's Database Username.
331
- * @param {string} params.password - Source's Database Password.
332
- * @param {number} params.port - Source's Database Port.
333
- * @throws {AppwriteException}
334
- * @returns {Promise<Models.MigrationReport>}
335
- */
336
- getSupabaseReport(params: {
337
- resources: SupabaseMigrationResource[];
338
- endpoint: string;
339
- apiKey: string;
340
- databaseHost: string;
341
- username: string;
342
- password: string;
343
- port?: number;
344
- }): Promise<Models.MigrationReport>;
345
- /**
346
- * Generate a report of the data in a Supabase project before migrating. This endpoint analyzes the source project and returns information about the resources that can be migrated.
347
- *
348
- * @param {SupabaseMigrationResource[]} resources - List of resources to migrate
349
- * @param {string} endpoint - Source's Supabase Endpoint.
350
- * @param {string} apiKey - Source's API Key.
351
- * @param {string} databaseHost - Source's Database Host.
352
- * @param {string} username - Source's Database Username.
353
- * @param {string} password - Source's Database Password.
354
- * @param {number} port - Source's Database Port.
355
- * @throws {AppwriteException}
356
- * @returns {Promise<Models.MigrationReport>}
357
- * @deprecated Use the object parameter style method for a better developer experience.
358
- */
359
- getSupabaseReport(resources: SupabaseMigrationResource[], endpoint: string, apiKey: string, databaseHost: string, username: string, password: string, port?: number): Promise<Models.MigrationReport>;
360
- /**
361
- * Get a migration by its unique ID. This endpoint returns detailed information about a specific migration including its current status, progress, and any errors that occurred during the migration process.
362
- *
363
- * @param {string} params.migrationId - Migration unique ID.
364
- * @throws {AppwriteException}
365
- * @returns {Promise<Models.Migration>}
366
- */
367
- get(params: {
368
- migrationId: string;
369
- }): Promise<Models.Migration>;
370
- /**
371
- * Get a migration by its unique ID. This endpoint returns detailed information about a specific migration including its current status, progress, and any errors that occurred during the migration process.
372
- *
373
- * @param {string} migrationId - Migration unique ID.
374
- * @throws {AppwriteException}
375
- * @returns {Promise<Models.Migration>}
376
- * @deprecated Use the object parameter style method for a better developer experience.
377
- */
378
- get(migrationId: string): Promise<Models.Migration>;
379
- /**
380
- * Retry a failed migration. This endpoint allows you to retry a migration that has previously failed.
381
- *
382
- * @param {string} params.migrationId - Migration unique ID.
383
- * @throws {AppwriteException}
384
- * @returns {Promise<Models.Migration>}
385
- */
386
- retry(params: {
387
- migrationId: string;
388
- }): Promise<Models.Migration>;
389
- /**
390
- * Retry a failed migration. This endpoint allows you to retry a migration that has previously failed.
391
- *
392
- * @param {string} migrationId - Migration unique ID.
393
- * @throws {AppwriteException}
394
- * @returns {Promise<Models.Migration>}
395
- * @deprecated Use the object parameter style method for a better developer experience.
396
- */
397
- retry(migrationId: string): Promise<Models.Migration>;
398
- /**
399
- * Delete a migration by its unique ID. This endpoint allows you to remove a migration from your project's migration history.
400
- *
401
- * @param {string} params.migrationId - Migration ID.
402
- * @throws {AppwriteException}
403
- * @returns {Promise<{}>}
404
- */
405
- delete(params: {
406
- migrationId: string;
407
- }): Promise<{}>;
408
- /**
409
- * Delete a migration by its unique ID. This endpoint allows you to remove a migration from your project's migration history.
410
- *
411
- * @param {string} migrationId - Migration ID.
412
- * @throws {AppwriteException}
413
- * @returns {Promise<{}>}
414
- * @deprecated Use the object parameter style method for a better developer experience.
415
- */
416
- delete(migrationId: string): Promise<{}>;
417
- }