appbuild-oceanbase-console 1.12.2 → 1.13.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/package.json +3 -0
- package/dist/cjs/sdk.js +3837 -1017
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/package.json +3 -0
- package/dist/esm/sdk.js +3831 -1018
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +10131 -3554
- package/package.json +7 -2
- package/types/channel.d.ts +74 -0
- package/types/client.d.ts +84 -16
- package/types/enums/appwrite-migration-resource.d.ts +25 -0
- package/types/enums/backup-services.d.ts +5 -0
- package/types/enums/billing-plan-group.d.ts +5 -0
- package/types/enums/browser-permission.d.ts +22 -0
- package/types/enums/domain-purchase-status.d.ts +6 -0
- package/types/enums/domain-transfer-status-enum.d.ts +10 -0
- package/types/enums/filter-type.d.ts +4 -0
- package/types/enums/firebase-migration-resource.d.ts +12 -0
- package/types/enums/frameworks.d.ts +17 -0
- package/types/enums/n-host-migration-resource.d.ts +13 -0
- package/types/enums/order-by.d.ts +4 -0
- package/types/enums/registration-type.d.ts +6 -0
- package/types/enums/resource-type.d.ts +6 -0
- package/types/enums/runtimes.d.ts +180 -0
- package/types/enums/scopes.d.ts +70 -0
- package/types/enums/supabase-migration-resource.d.ts +13 -0
- package/types/enums/template-reference-type.d.ts +5 -0
- package/types/enums/use-cases.d.ts +11 -0
- package/types/enums/vcs-reference-type.d.ts +5 -0
- package/types/index.d.ts +119 -96
- package/types/migrations.d.ts +10 -9
- package/types/models.d.ts +1270 -136
- package/types/query.d.ts +60 -8
- package/types/services/account.d.ts +162 -39
- package/types/services/activities.d.ts +46 -0
- package/types/services/avatars.d.ts +9 -8
- package/types/services/backups.d.ts +13 -12
- package/types/services/console.d.ts +41 -3
- package/types/services/databases.d.ts +384 -68
- package/types/services/domains.d.ts +223 -0
- package/types/services/functions.d.ts +46 -31
- package/types/services/health.d.ts +49 -6
- package/types/services/messaging.d.ts +2 -2
- package/types/services/organizations.d.ts +203 -36
- package/types/services/projects.d.ts +151 -210
- package/types/services/realtime.d.ts +26 -10
- package/types/services/sites.d.ts +49 -29
- package/types/services/storage.d.ts +12 -12
- package/types/services/tables-db.d.ts +352 -34
- package/types/services/teams.d.ts +4 -4
- package/types/services/users.d.ts +26 -2
- package/types/services/vcs.d.ts +4 -1
- package/types/services/webhooks.d.ts +165 -0
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Client } from '../client';
|
|
2
2
|
import type { Models } from '../models';
|
|
3
|
+
import { BackupServices } from '../enums/backup-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 {BackupServices[]} 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: BackupServices[];
|
|
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 {BackupServices[]} 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: BackupServices[], 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 {BackupServices[]} 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: BackupServices[];
|
|
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 {BackupServices[]} 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: BackupServices[], 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 {BackupServices[]} 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: BackupServices[];
|
|
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 {BackupServices[]} 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: BackupServices[], newResourceId?: string, newResourceName?: string): Promise<Models.BackupRestoration>;
|
|
238
239
|
/**
|
|
239
240
|
* List all backup restorations for a project.
|
|
240
241
|
*
|
|
@@ -50,7 +50,7 @@ export declare class Console {
|
|
|
50
50
|
* @throws {AppwriteException}
|
|
51
51
|
* @returns {Promise<Models.BillingPlanList>}
|
|
52
52
|
*/
|
|
53
|
-
|
|
53
|
+
getPlans(params?: {
|
|
54
54
|
platform?: Platform;
|
|
55
55
|
}): Promise<Models.BillingPlanList>;
|
|
56
56
|
/**
|
|
@@ -61,7 +61,45 @@ export declare class Console {
|
|
|
61
61
|
* @returns {Promise<Models.BillingPlanList>}
|
|
62
62
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
63
63
|
*/
|
|
64
|
-
|
|
64
|
+
getPlans(platform?: Platform): Promise<Models.BillingPlanList>;
|
|
65
|
+
/**
|
|
66
|
+
* Get the details of a plan using its plan ID.
|
|
67
|
+
*
|
|
68
|
+
* @param {string} params.planId - Plan id
|
|
69
|
+
* @throws {AppwriteException}
|
|
70
|
+
* @returns {Promise<Models.BillingPlan>}
|
|
71
|
+
*/
|
|
72
|
+
getPlan(params: {
|
|
73
|
+
planId: string;
|
|
74
|
+
}): Promise<Models.BillingPlan>;
|
|
75
|
+
/**
|
|
76
|
+
* Get the details of a plan using its plan ID.
|
|
77
|
+
*
|
|
78
|
+
* @param {string} planId - Plan id
|
|
79
|
+
* @throws {AppwriteException}
|
|
80
|
+
* @returns {Promise<Models.BillingPlan>}
|
|
81
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
82
|
+
*/
|
|
83
|
+
getPlan(planId: string): Promise<Models.BillingPlan>;
|
|
84
|
+
/**
|
|
85
|
+
* Receive the details of a program using its ID.
|
|
86
|
+
*
|
|
87
|
+
* @param {string} params.programId - ID of the program
|
|
88
|
+
* @throws {AppwriteException}
|
|
89
|
+
* @returns {Promise<Models.Program>}
|
|
90
|
+
*/
|
|
91
|
+
getProgram(params: {
|
|
92
|
+
programId: string;
|
|
93
|
+
}): Promise<Models.Program>;
|
|
94
|
+
/**
|
|
95
|
+
* Receive the details of a program using its ID.
|
|
96
|
+
*
|
|
97
|
+
* @param {string} programId - ID of the program
|
|
98
|
+
* @throws {AppwriteException}
|
|
99
|
+
* @returns {Promise<Models.Program>}
|
|
100
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
101
|
+
*/
|
|
102
|
+
getProgram(programId: string): Promise<Models.Program>;
|
|
65
103
|
/**
|
|
66
104
|
* Create a new membership for an account to a program.
|
|
67
105
|
*
|
|
@@ -87,7 +125,7 @@ export declare class Console {
|
|
|
87
125
|
* @throws {AppwriteException}
|
|
88
126
|
* @returns {Promise<Models.ConsoleRegionList>}
|
|
89
127
|
*/
|
|
90
|
-
|
|
128
|
+
listRegions(): Promise<Models.ConsoleRegionList>;
|
|
91
129
|
/**
|
|
92
130
|
* Check if a resource ID is available.
|
|
93
131
|
*
|