appbuild-oceanbase-console 1.10.2

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