@appwrite.io/console 2.1.2 → 2.2.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/CHANGELOG.md +12 -0
- package/README.md +1 -1
- package/dist/cjs/sdk.js +2099 -520
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +2098 -521
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +2003 -444
- package/docs/examples/account/create-key.md +15 -0
- package/docs/examples/account/delete-key.md +13 -0
- package/docs/examples/account/get-key.md +13 -0
- package/docs/examples/account/list-keys.md +13 -0
- package/docs/examples/account/update-key.md +16 -0
- package/docs/examples/avatars/get-screenshot.md +5 -5
- package/docs/examples/backups/create-archive.md +2 -2
- package/docs/examples/backups/create-policy.md +2 -2
- package/docs/examples/backups/create-restoration.md +2 -2
- package/docs/examples/console/{get-regions.md → list-regions.md} +1 -3
- package/docs/examples/databases/create-index.md +2 -2
- package/docs/examples/databases/create-longtext-attribute.md +18 -0
- package/docs/examples/databases/create-mediumtext-attribute.md +18 -0
- package/docs/examples/databases/create-text-attribute.md +18 -0
- package/docs/examples/databases/create-varchar-attribute.md +19 -0
- package/docs/examples/databases/update-collection.md +1 -1
- package/docs/examples/databases/update-longtext-attribute.md +18 -0
- package/docs/examples/databases/update-mediumtext-attribute.md +18 -0
- package/docs/examples/databases/update-text-attribute.md +18 -0
- package/docs/examples/databases/update-varchar-attribute.md +19 -0
- package/docs/examples/databases/update.md +1 -1
- package/docs/examples/functions/create.md +2 -2
- package/docs/examples/functions/list-templates.md +3 -3
- package/docs/examples/functions/update.md +2 -2
- package/docs/examples/migrations/create-appwrite-migration.md +2 -2
- package/docs/examples/migrations/create-firebase-migration.md +2 -2
- package/docs/examples/migrations/create-n-host-migration.md +2 -2
- package/docs/examples/migrations/create-supabase-migration.md +2 -2
- package/docs/examples/migrations/get-appwrite-report.md +2 -2
- package/docs/examples/migrations/get-firebase-report.md +2 -2
- package/docs/examples/migrations/get-n-host-report.md +2 -2
- package/docs/examples/migrations/get-supabase-report.md +2 -2
- package/docs/examples/organizations/create-key.md +16 -0
- package/docs/examples/organizations/create.md +2 -2
- package/docs/examples/organizations/delete-key.md +14 -0
- package/docs/examples/organizations/estimation-create-organization.md +2 -2
- package/docs/examples/organizations/estimation-update-plan.md +2 -2
- package/docs/examples/organizations/get-key.md +14 -0
- package/docs/examples/organizations/list-keys.md +14 -0
- package/docs/examples/organizations/list-regions.md +13 -0
- package/docs/examples/organizations/update-key.md +17 -0
- package/docs/examples/organizations/update-plan.md +2 -2
- package/docs/examples/projects/create-jwt.md +2 -2
- package/docs/examples/projects/create-key.md +2 -2
- package/docs/examples/projects/update-key.md +2 -2
- package/docs/examples/sites/list-templates.md +3 -3
- package/docs/examples/tablesdb/create-index.md +2 -2
- package/docs/examples/tablesdb/create-longtext-column.md +18 -0
- package/docs/examples/tablesdb/create-mediumtext-column.md +18 -0
- package/docs/examples/tablesdb/create-text-column.md +18 -0
- package/docs/examples/tablesdb/create-varchar-column.md +19 -0
- package/docs/examples/tablesdb/update-longtext-column.md +18 -0
- package/docs/examples/tablesdb/update-mediumtext-column.md +18 -0
- package/docs/examples/tablesdb/update-table.md +1 -1
- package/docs/examples/tablesdb/update-text-column.md +18 -0
- package/docs/examples/tablesdb/update-varchar-column.md +19 -0
- package/docs/examples/tablesdb/update.md +1 -1
- package/docs/examples/teams/create-membership.md +2 -2
- package/docs/examples/teams/update-membership.md +2 -2
- package/package.json +3 -2
- package/src/channel.ts +138 -0
- package/src/client.ts +54 -9
- package/src/enums/browser-permission.ts +22 -0
- package/src/enums/deployment-status.ts +1 -0
- package/src/enums/frameworks.ts +17 -0
- package/src/enums/order-by.ts +4 -0
- package/src/enums/resources.ts +13 -0
- package/src/enums/roles.ts +7 -0
- package/src/enums/runtimes.ts +66 -0
- package/src/enums/scopes.ts +65 -0
- package/src/enums/services.ts +5 -0
- package/src/enums/use-cases.ts +11 -0
- package/src/index.ts +10 -1
- package/src/models.ts +349 -1
- package/src/query.ts +42 -0
- package/src/services/account.ts +364 -56
- package/src/services/assistant.ts +1 -1
- package/src/services/avatars.ts +17 -16
- package/src/services/backups.ts +37 -36
- package/src/services/console.ts +11 -42
- package/src/services/databases.ts +1060 -280
- package/src/services/domains.ts +44 -44
- package/src/services/functions.ts +60 -57
- package/src/services/graphql.ts +2 -2
- package/src/services/health.ts +22 -20
- package/src/services/messaging.ts +56 -56
- package/src/services/migrations.ts +79 -78
- package/src/services/organizations.ts +466 -70
- package/src/services/project.ts +5 -5
- package/src/services/projects.ts +86 -85
- package/src/services/proxy.ts +8 -8
- package/src/services/realtime.ts +35 -12
- package/src/services/sites.ts +42 -40
- package/src/services/storage.ts +16 -16
- package/src/services/tables-db.ts +1050 -268
- package/src/services/teams.ts +31 -30
- package/src/services/tokens.ts +5 -5
- package/src/services/users.ts +49 -49
- package/src/services/vcs.ts +10 -10
- package/types/channel.d.ts +72 -0
- package/types/client.d.ts +11 -3
- package/types/enums/browser-permission.d.ts +22 -0
- package/types/enums/deployment-status.d.ts +1 -0
- package/types/enums/frameworks.d.ts +17 -0
- package/types/enums/order-by.d.ts +4 -0
- package/types/enums/resources.d.ts +13 -0
- package/types/enums/roles.d.ts +7 -0
- package/types/enums/runtimes.d.ts +66 -0
- package/types/enums/scopes.d.ts +65 -0
- package/types/enums/services.d.ts +5 -0
- package/types/enums/use-cases.d.ts +11 -0
- package/types/index.d.ts +10 -1
- package/types/models.d.ts +341 -1
- package/types/query.d.ts +30 -0
- package/types/services/account.d.ts +111 -0
- package/types/services/avatars.d.ts +5 -4
- package/types/services/backups.d.ts +13 -12
- package/types/services/console.d.ts +1 -13
- package/types/services/databases.d.ts +303 -8
- package/types/services/functions.d.ts +18 -15
- package/types/services/health.d.ts +2 -0
- package/types/services/migrations.d.ts +33 -32
- package/types/services/organizations.d.ts +161 -17
- package/types/services/projects.d.ts +13 -12
- package/types/services/realtime.d.ts +17 -8
- package/types/services/sites.d.ts +9 -7
- package/types/services/tables-db.d.ts +305 -8
- package/types/services/teams.d.ts +9 -8
- package/src/enums/billing-plan.ts +0 -17
- package/types/enums/billing-plan.d.ts +0 -17
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Client } from '../client';
|
|
2
2
|
import type { Models } from '../models';
|
|
3
|
+
import { Scopes } from '../enums/scopes';
|
|
3
4
|
import { AuthenticatorType } from '../enums/authenticator-type';
|
|
4
5
|
import { AuthenticationFactor } from '../enums/authentication-factor';
|
|
5
6
|
import { OAuthProvider } from '../enums/o-auth-provider';
|
|
@@ -300,6 +301,116 @@ export declare class Account {
|
|
|
300
301
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
301
302
|
*/
|
|
302
303
|
createJWT(duration?: number): Promise<Models.Jwt>;
|
|
304
|
+
/**
|
|
305
|
+
* Get a list of all API keys from the current account.
|
|
306
|
+
*
|
|
307
|
+
* @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated.
|
|
308
|
+
* @throws {AppwriteException}
|
|
309
|
+
* @returns {Promise<Models.KeyList>}
|
|
310
|
+
*/
|
|
311
|
+
listKeys(params?: {
|
|
312
|
+
total?: boolean;
|
|
313
|
+
}): Promise<Models.KeyList>;
|
|
314
|
+
/**
|
|
315
|
+
* Get a list of all API keys from the current account.
|
|
316
|
+
*
|
|
317
|
+
* @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated.
|
|
318
|
+
* @throws {AppwriteException}
|
|
319
|
+
* @returns {Promise<Models.KeyList>}
|
|
320
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
321
|
+
*/
|
|
322
|
+
listKeys(total?: boolean): Promise<Models.KeyList>;
|
|
323
|
+
/**
|
|
324
|
+
* Create a new account API key.
|
|
325
|
+
*
|
|
326
|
+
* @param {string} params.name - Key name. Max length: 128 chars.
|
|
327
|
+
* @param {Scopes[]} params.scopes - Key scopes list. Maximum of 100 scopes are allowed.
|
|
328
|
+
* @param {string} params.expire - Expiration time in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Use null for unlimited expiration.
|
|
329
|
+
* @throws {AppwriteException}
|
|
330
|
+
* @returns {Promise<Models.Key>}
|
|
331
|
+
*/
|
|
332
|
+
createKey(params: {
|
|
333
|
+
name: string;
|
|
334
|
+
scopes: Scopes[];
|
|
335
|
+
expire?: string;
|
|
336
|
+
}): Promise<Models.Key>;
|
|
337
|
+
/**
|
|
338
|
+
* Create a new account API key.
|
|
339
|
+
*
|
|
340
|
+
* @param {string} name - Key name. Max length: 128 chars.
|
|
341
|
+
* @param {Scopes[]} scopes - Key scopes list. Maximum of 100 scopes are allowed.
|
|
342
|
+
* @param {string} expire - Expiration time in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Use null for unlimited expiration.
|
|
343
|
+
* @throws {AppwriteException}
|
|
344
|
+
* @returns {Promise<Models.Key>}
|
|
345
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
346
|
+
*/
|
|
347
|
+
createKey(name: string, scopes: Scopes[], expire?: string): Promise<Models.Key>;
|
|
348
|
+
/**
|
|
349
|
+
* Get a key by its unique ID. This endpoint returns details about a specific API key in your account including it's scopes.
|
|
350
|
+
*
|
|
351
|
+
* @param {string} params.keyId - Key unique ID.
|
|
352
|
+
* @throws {AppwriteException}
|
|
353
|
+
* @returns {Promise<Models.Key>}
|
|
354
|
+
*/
|
|
355
|
+
getKey(params: {
|
|
356
|
+
keyId: string;
|
|
357
|
+
}): Promise<Models.Key>;
|
|
358
|
+
/**
|
|
359
|
+
* Get a key by its unique ID. This endpoint returns details about a specific API key in your account including it's scopes.
|
|
360
|
+
*
|
|
361
|
+
* @param {string} keyId - Key unique ID.
|
|
362
|
+
* @throws {AppwriteException}
|
|
363
|
+
* @returns {Promise<Models.Key>}
|
|
364
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
365
|
+
*/
|
|
366
|
+
getKey(keyId: string): Promise<Models.Key>;
|
|
367
|
+
/**
|
|
368
|
+
* Update a key by its unique ID. Use this endpoint to update the name, scopes, or expiration time of an API key.
|
|
369
|
+
*
|
|
370
|
+
* @param {string} params.keyId - Key unique ID.
|
|
371
|
+
* @param {string} params.name - Key name. Max length: 128 chars.
|
|
372
|
+
* @param {Scopes[]} params.scopes - Key scopes list. Maximum of 100 scopes are allowed.
|
|
373
|
+
* @param {string} params.expire - Expiration time in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Use null for unlimited expiration.
|
|
374
|
+
* @throws {AppwriteException}
|
|
375
|
+
* @returns {Promise<Models.Key>}
|
|
376
|
+
*/
|
|
377
|
+
updateKey(params: {
|
|
378
|
+
keyId: string;
|
|
379
|
+
name: string;
|
|
380
|
+
scopes: Scopes[];
|
|
381
|
+
expire?: string;
|
|
382
|
+
}): Promise<Models.Key>;
|
|
383
|
+
/**
|
|
384
|
+
* Update a key by its unique ID. Use this endpoint to update the name, scopes, or expiration time of an API key.
|
|
385
|
+
*
|
|
386
|
+
* @param {string} keyId - Key unique ID.
|
|
387
|
+
* @param {string} name - Key name. Max length: 128 chars.
|
|
388
|
+
* @param {Scopes[]} scopes - Key scopes list. Maximum of 100 scopes are allowed.
|
|
389
|
+
* @param {string} expire - Expiration time in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Use null for unlimited expiration.
|
|
390
|
+
* @throws {AppwriteException}
|
|
391
|
+
* @returns {Promise<Models.Key>}
|
|
392
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
393
|
+
*/
|
|
394
|
+
updateKey(keyId: string, name: string, scopes: Scopes[], expire?: string): Promise<Models.Key>;
|
|
395
|
+
/**
|
|
396
|
+
* Delete a key by its unique ID. Once deleted, the key can no longer be used to authenticate API calls.
|
|
397
|
+
*
|
|
398
|
+
* @param {string} params.keyId - Key unique ID.
|
|
399
|
+
* @throws {AppwriteException}
|
|
400
|
+
* @returns {Promise<{}>}
|
|
401
|
+
*/
|
|
402
|
+
deleteKey(params: {
|
|
403
|
+
keyId: string;
|
|
404
|
+
}): Promise<{}>;
|
|
405
|
+
/**
|
|
406
|
+
* Delete a key by its unique ID. Once deleted, the key can no longer be used to authenticate API calls.
|
|
407
|
+
*
|
|
408
|
+
* @param {string} keyId - Key unique ID.
|
|
409
|
+
* @throws {AppwriteException}
|
|
410
|
+
* @returns {Promise<{}>}
|
|
411
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
412
|
+
*/
|
|
413
|
+
deleteKey(keyId: string): Promise<{}>;
|
|
303
414
|
/**
|
|
304
415
|
* Get the list of latest security activity logs for the currently logged in user. Each log returns user IP address, location and date and time of log.
|
|
305
416
|
*
|
|
@@ -4,6 +4,7 @@ import { CreditCard } from '../enums/credit-card';
|
|
|
4
4
|
import { Flag } from '../enums/flag';
|
|
5
5
|
import { Theme } from '../enums/theme';
|
|
6
6
|
import { Timezone } from '../enums/timezone';
|
|
7
|
+
import { BrowserPermission } from '../enums/browser-permission';
|
|
7
8
|
import { ImageFormat } from '../enums/image-format';
|
|
8
9
|
export declare class Avatars {
|
|
9
10
|
client: Client;
|
|
@@ -253,7 +254,7 @@ export declare class Avatars {
|
|
|
253
254
|
* @param {number} params.longitude - Geolocation longitude. Pass a number between -180 to 180. Defaults to 0.
|
|
254
255
|
* @param {number} params.accuracy - Geolocation accuracy in meters. Pass a number between 0 to 100000. Defaults to 0.
|
|
255
256
|
* @param {boolean} params.touch - Enable touch support. Pass 0 for no touch, or 1 for touch enabled. Defaults to 0.
|
|
256
|
-
* @param {
|
|
257
|
+
* @param {BrowserPermission[]} params.permissions - Browser permissions to grant. Pass an array of permission names like ["geolocation", "camera", "microphone"]. Defaults to empty.
|
|
257
258
|
* @param {number} params.sleep - Wait time in seconds before taking the screenshot. Pass an integer between 0 to 10. Defaults to 0.
|
|
258
259
|
* @param {number} params.width - Output image width. Pass 0 to use original width, or an integer between 1 to 2000. Defaults to 0 (original width).
|
|
259
260
|
* @param {number} params.height - Output image height. Pass 0 to use original height, or an integer between 1 to 2000. Defaults to 0 (original height).
|
|
@@ -277,7 +278,7 @@ export declare class Avatars {
|
|
|
277
278
|
longitude?: number;
|
|
278
279
|
accuracy?: number;
|
|
279
280
|
touch?: boolean;
|
|
280
|
-
permissions?:
|
|
281
|
+
permissions?: BrowserPermission[];
|
|
281
282
|
sleep?: number;
|
|
282
283
|
width?: number;
|
|
283
284
|
height?: number;
|
|
@@ -305,7 +306,7 @@ export declare class Avatars {
|
|
|
305
306
|
* @param {number} longitude - Geolocation longitude. Pass a number between -180 to 180. Defaults to 0.
|
|
306
307
|
* @param {number} accuracy - Geolocation accuracy in meters. Pass a number between 0 to 100000. Defaults to 0.
|
|
307
308
|
* @param {boolean} touch - Enable touch support. Pass 0 for no touch, or 1 for touch enabled. Defaults to 0.
|
|
308
|
-
* @param {
|
|
309
|
+
* @param {BrowserPermission[]} permissions - Browser permissions to grant. Pass an array of permission names like ["geolocation", "camera", "microphone"]. Defaults to empty.
|
|
309
310
|
* @param {number} sleep - Wait time in seconds before taking the screenshot. Pass an integer between 0 to 10. Defaults to 0.
|
|
310
311
|
* @param {number} width - Output image width. Pass 0 to use original width, or an integer between 1 to 2000. Defaults to 0 (original width).
|
|
311
312
|
* @param {number} height - Output image height. Pass 0 to use original height, or an integer between 1 to 2000. Defaults to 0 (original height).
|
|
@@ -315,5 +316,5 @@ export declare class Avatars {
|
|
|
315
316
|
* @returns {string}
|
|
316
317
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
317
318
|
*/
|
|
318
|
-
getScreenshot(url: string, headers?: object, viewportWidth?: number, viewportHeight?: number, scale?: number, theme?: Theme, userAgent?: string, fullpage?: boolean, locale?: string, timezone?: Timezone, latitude?: number, longitude?: number, accuracy?: number, touch?: boolean, permissions?:
|
|
319
|
+
getScreenshot(url: string, headers?: object, viewportWidth?: number, viewportHeight?: number, scale?: number, theme?: Theme, userAgent?: string, fullpage?: boolean, locale?: string, timezone?: Timezone, latitude?: number, longitude?: number, accuracy?: number, touch?: boolean, permissions?: BrowserPermission[], sleep?: number, width?: number, height?: number, quality?: number, output?: ImageFormat): string;
|
|
319
320
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Client } from '../client';
|
|
2
2
|
import type { Models } from '../models';
|
|
3
|
+
import { Services } from '../enums/services';
|
|
3
4
|
export declare class Backups {
|
|
4
5
|
client: Client;
|
|
5
6
|
constructor(client: Client);
|
|
@@ -25,25 +26,25 @@ export declare class Backups {
|
|
|
25
26
|
/**
|
|
26
27
|
* Create a new archive asynchronously for a project.
|
|
27
28
|
*
|
|
28
|
-
* @param {
|
|
29
|
+
* @param {Services[]} params.services - Array of services to backup
|
|
29
30
|
* @param {string} params.resourceId - Resource ID. When set, only this single resource will be backed up.
|
|
30
31
|
* @throws {AppwriteException}
|
|
31
32
|
* @returns {Promise<Models.BackupArchive>}
|
|
32
33
|
*/
|
|
33
34
|
createArchive(params: {
|
|
34
|
-
services:
|
|
35
|
+
services: Services[];
|
|
35
36
|
resourceId?: string;
|
|
36
37
|
}): Promise<Models.BackupArchive>;
|
|
37
38
|
/**
|
|
38
39
|
* Create a new archive asynchronously for a project.
|
|
39
40
|
*
|
|
40
|
-
* @param {
|
|
41
|
+
* @param {Services[]} services - Array of services to backup
|
|
41
42
|
* @param {string} resourceId - Resource ID. When set, only this single resource will be backed up.
|
|
42
43
|
* @throws {AppwriteException}
|
|
43
44
|
* @returns {Promise<Models.BackupArchive>}
|
|
44
45
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
45
46
|
*/
|
|
46
|
-
createArchive(services:
|
|
47
|
+
createArchive(services: Services[], resourceId?: string): Promise<Models.BackupArchive>;
|
|
47
48
|
/**
|
|
48
49
|
* Get a backup archive using it's ID.
|
|
49
50
|
*
|
|
@@ -105,7 +106,7 @@ export declare class Backups {
|
|
|
105
106
|
* Create a new backup policy.
|
|
106
107
|
*
|
|
107
108
|
* @param {string} params.policyId - Policy ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
|
|
108
|
-
* @param {
|
|
109
|
+
* @param {Services[]} params.services - Array of services to backup
|
|
109
110
|
* @param {number} params.retention - Days to keep backups before deletion
|
|
110
111
|
* @param {string} params.schedule - Schedule CRON syntax.
|
|
111
112
|
* @param {string} params.name - Policy name. Max length: 128 chars.
|
|
@@ -116,7 +117,7 @@ export declare class Backups {
|
|
|
116
117
|
*/
|
|
117
118
|
createPolicy(params: {
|
|
118
119
|
policyId: string;
|
|
119
|
-
services:
|
|
120
|
+
services: Services[];
|
|
120
121
|
retention: number;
|
|
121
122
|
schedule: string;
|
|
122
123
|
name?: string;
|
|
@@ -127,7 +128,7 @@ export declare class Backups {
|
|
|
127
128
|
* Create a new backup policy.
|
|
128
129
|
*
|
|
129
130
|
* @param {string} policyId - Policy ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
|
|
130
|
-
* @param {
|
|
131
|
+
* @param {Services[]} services - Array of services to backup
|
|
131
132
|
* @param {number} retention - Days to keep backups before deletion
|
|
132
133
|
* @param {string} schedule - Schedule CRON syntax.
|
|
133
134
|
* @param {string} name - Policy name. Max length: 128 chars.
|
|
@@ -137,7 +138,7 @@ export declare class Backups {
|
|
|
137
138
|
* @returns {Promise<Models.BackupPolicy>}
|
|
138
139
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
139
140
|
*/
|
|
140
|
-
createPolicy(policyId: string, services:
|
|
141
|
+
createPolicy(policyId: string, services: Services[], retention: number, schedule: string, name?: string, resourceId?: string, enabled?: boolean): Promise<Models.BackupPolicy>;
|
|
141
142
|
/**
|
|
142
143
|
* Get a backup policy using it's ID.
|
|
143
144
|
*
|
|
@@ -211,7 +212,7 @@ export declare class Backups {
|
|
|
211
212
|
* Create and trigger a new restoration for a backup on a project.
|
|
212
213
|
*
|
|
213
214
|
* @param {string} params.archiveId - Backup archive ID to restore
|
|
214
|
-
* @param {
|
|
215
|
+
* @param {Services[]} params.services - Array of services to restore
|
|
215
216
|
* @param {string} params.newResourceId - Unique Id. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
|
|
216
217
|
* @param {string} params.newResourceName - Database name. Max length: 128 chars.
|
|
217
218
|
* @throws {AppwriteException}
|
|
@@ -219,7 +220,7 @@ export declare class Backups {
|
|
|
219
220
|
*/
|
|
220
221
|
createRestoration(params: {
|
|
221
222
|
archiveId: string;
|
|
222
|
-
services:
|
|
223
|
+
services: Services[];
|
|
223
224
|
newResourceId?: string;
|
|
224
225
|
newResourceName?: string;
|
|
225
226
|
}): Promise<Models.BackupRestoration>;
|
|
@@ -227,14 +228,14 @@ export declare class Backups {
|
|
|
227
228
|
* Create and trigger a new restoration for a backup on a project.
|
|
228
229
|
*
|
|
229
230
|
* @param {string} archiveId - Backup archive ID to restore
|
|
230
|
-
* @param {
|
|
231
|
+
* @param {Services[]} services - Array of services to restore
|
|
231
232
|
* @param {string} newResourceId - Unique Id. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
|
|
232
233
|
* @param {string} newResourceName - Database name. Max length: 128 chars.
|
|
233
234
|
* @throws {AppwriteException}
|
|
234
235
|
* @returns {Promise<Models.BackupRestoration>}
|
|
235
236
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
236
237
|
*/
|
|
237
|
-
createRestoration(archiveId: string, services:
|
|
238
|
+
createRestoration(archiveId: string, services: Services[], newResourceId?: string, newResourceName?: string): Promise<Models.BackupRestoration>;
|
|
238
239
|
/**
|
|
239
240
|
* List all backup restorations for a project.
|
|
240
241
|
*
|
|
@@ -122,22 +122,10 @@ export declare class Console {
|
|
|
122
122
|
/**
|
|
123
123
|
* Get all available regions for the console.
|
|
124
124
|
*
|
|
125
|
-
* @param {string} params.organizationId - Team ID.
|
|
126
125
|
* @throws {AppwriteException}
|
|
127
126
|
* @returns {Promise<Models.ConsoleRegionList>}
|
|
128
127
|
*/
|
|
129
|
-
|
|
130
|
-
organizationId: string;
|
|
131
|
-
}): Promise<Models.ConsoleRegionList>;
|
|
132
|
-
/**
|
|
133
|
-
* Get all available regions for the console.
|
|
134
|
-
*
|
|
135
|
-
* @param {string} organizationId - Team ID.
|
|
136
|
-
* @throws {AppwriteException}
|
|
137
|
-
* @returns {Promise<Models.ConsoleRegionList>}
|
|
138
|
-
* @deprecated Use the object parameter style method for a better developer experience.
|
|
139
|
-
*/
|
|
140
|
-
getRegions(organizationId: string): Promise<Models.ConsoleRegionList>;
|
|
128
|
+
listRegions(): Promise<Models.ConsoleRegionList>;
|
|
141
129
|
/**
|
|
142
130
|
* Check if a resource ID is available.
|
|
143
131
|
*
|