@appwrite.io/console 4.0.0 → 5.0.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 +18 -0
- package/README.md +1 -1
- package/dist/cjs/sdk.js +172 -34
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +173 -35
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +172 -34
- package/docs/examples/domains/confirm-purchase.md +16 -0
- package/docs/examples/domains/confirm-transfer-in.md +16 -0
- package/docs/examples/functions/create.md +3 -1
- package/docs/examples/functions/update.md +3 -1
- package/docs/examples/sites/create.md +4 -1
- package/docs/examples/sites/update.md +4 -1
- package/package.json +1 -1
- package/src/client.ts +5 -1
- package/src/enums/appwrite-migration-resource.ts +4 -0
- package/src/enums/build-runtime.ts +3 -0
- package/src/enums/domain-purchase-payment-status.ts +10 -0
- package/src/enums/runtime.ts +3 -0
- package/src/enums/runtimes.ts +3 -0
- package/src/index.ts +1 -0
- package/src/models.ts +90 -5
- package/src/services/account.ts +2 -2
- package/src/services/domains.ts +126 -0
- package/src/services/functions.ts +52 -24
- package/src/services/organizations.ts +2 -2
- package/src/services/sites.ts +83 -41
- package/types/enums/appwrite-migration-resource.d.ts +4 -0
- package/types/enums/build-runtime.d.ts +3 -0
- package/types/enums/domain-purchase-payment-status.d.ts +10 -0
- package/types/enums/runtime.d.ts +3 -0
- package/types/enums/runtimes.d.ts +3 -0
- package/types/index.d.ts +1 -0
- package/types/models.d.ts +90 -5
- package/types/services/account.d.ts +2 -2
- package/types/services/domains.d.ts +44 -0
- package/types/services/functions.d.ts +20 -8
- package/types/services/organizations.d.ts +2 -2
- package/types/services/sites.d.ts +26 -8
|
@@ -57,7 +57,9 @@ export declare class Functions {
|
|
|
57
57
|
* @param {string} params.providerBranch - Production branch for the repo linked to the function.
|
|
58
58
|
* @param {boolean} params.providerSilentMode - Is the VCS (Version Control System) connection in silent mode for the repo linked to the function? In silent mode, comments will not be made on commits and pull requests.
|
|
59
59
|
* @param {string} params.providerRootDirectory - Path to function code in the linked repo.
|
|
60
|
-
* @param {string} params.
|
|
60
|
+
* @param {string} params.buildSpecification - Build specification for the function deployments.
|
|
61
|
+
* @param {string} params.runtimeSpecification - Runtime specification for the function executions.
|
|
62
|
+
* @param {number} params.deploymentRetention - Days to keep non-active deployments before deletion. Value 0 means all deployments will be kept.
|
|
61
63
|
* @throws {AppwriteException}
|
|
62
64
|
* @returns {Promise<Models.Function>}
|
|
63
65
|
*/
|
|
@@ -79,7 +81,9 @@ export declare class Functions {
|
|
|
79
81
|
providerBranch?: string;
|
|
80
82
|
providerSilentMode?: boolean;
|
|
81
83
|
providerRootDirectory?: string;
|
|
82
|
-
|
|
84
|
+
buildSpecification?: string;
|
|
85
|
+
runtimeSpecification?: string;
|
|
86
|
+
deploymentRetention?: number;
|
|
83
87
|
}): Promise<Models.Function>;
|
|
84
88
|
/**
|
|
85
89
|
* Create a new function. You can pass a list of [permissions](https://appwrite.io/docs/permissions) to allow different project users or team with access to execute the function using the client API.
|
|
@@ -101,12 +105,14 @@ export declare class Functions {
|
|
|
101
105
|
* @param {string} providerBranch - Production branch for the repo linked to the function.
|
|
102
106
|
* @param {boolean} providerSilentMode - Is the VCS (Version Control System) connection in silent mode for the repo linked to the function? In silent mode, comments will not be made on commits and pull requests.
|
|
103
107
|
* @param {string} providerRootDirectory - Path to function code in the linked repo.
|
|
104
|
-
* @param {string}
|
|
108
|
+
* @param {string} buildSpecification - Build specification for the function deployments.
|
|
109
|
+
* @param {string} runtimeSpecification - Runtime specification for the function executions.
|
|
110
|
+
* @param {number} deploymentRetention - Days to keep non-active deployments before deletion. Value 0 means all deployments will be kept.
|
|
105
111
|
* @throws {AppwriteException}
|
|
106
112
|
* @returns {Promise<Models.Function>}
|
|
107
113
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
108
114
|
*/
|
|
109
|
-
create(functionId: string, name: string, runtime: Runtime, execute?: string[], events?: string[], schedule?: string, timeout?: number, enabled?: boolean, logging?: boolean, entrypoint?: string, commands?: string, scopes?: Scopes[], installationId?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string,
|
|
115
|
+
create(functionId: string, name: string, runtime: Runtime, execute?: string[], events?: string[], schedule?: string, timeout?: number, enabled?: boolean, logging?: boolean, entrypoint?: string, commands?: string, scopes?: Scopes[], installationId?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, buildSpecification?: string, runtimeSpecification?: string, deploymentRetention?: number): Promise<Models.Function>;
|
|
110
116
|
/**
|
|
111
117
|
* Get a list of all runtimes that are currently active on your instance.
|
|
112
118
|
*
|
|
@@ -229,7 +235,9 @@ export declare class Functions {
|
|
|
229
235
|
* @param {string} params.providerBranch - Production branch for the repo linked to the function
|
|
230
236
|
* @param {boolean} params.providerSilentMode - Is the VCS (Version Control System) connection in silent mode for the repo linked to the function? In silent mode, comments will not be made on commits and pull requests.
|
|
231
237
|
* @param {string} params.providerRootDirectory - Path to function code in the linked repo.
|
|
232
|
-
* @param {string} params.
|
|
238
|
+
* @param {string} params.buildSpecification - Build specification for the function deployments.
|
|
239
|
+
* @param {string} params.runtimeSpecification - Runtime specification for the function executions.
|
|
240
|
+
* @param {number} params.deploymentRetention - Days to keep non-active deployments before deletion. Value 0 means all deployments will be kept.
|
|
233
241
|
* @throws {AppwriteException}
|
|
234
242
|
* @returns {Promise<Models.Function>}
|
|
235
243
|
*/
|
|
@@ -251,7 +259,9 @@ export declare class Functions {
|
|
|
251
259
|
providerBranch?: string;
|
|
252
260
|
providerSilentMode?: boolean;
|
|
253
261
|
providerRootDirectory?: string;
|
|
254
|
-
|
|
262
|
+
buildSpecification?: string;
|
|
263
|
+
runtimeSpecification?: string;
|
|
264
|
+
deploymentRetention?: number;
|
|
255
265
|
}): Promise<Models.Function>;
|
|
256
266
|
/**
|
|
257
267
|
* Update function by its unique ID.
|
|
@@ -273,12 +283,14 @@ export declare class Functions {
|
|
|
273
283
|
* @param {string} providerBranch - Production branch for the repo linked to the function
|
|
274
284
|
* @param {boolean} providerSilentMode - Is the VCS (Version Control System) connection in silent mode for the repo linked to the function? In silent mode, comments will not be made on commits and pull requests.
|
|
275
285
|
* @param {string} providerRootDirectory - Path to function code in the linked repo.
|
|
276
|
-
* @param {string}
|
|
286
|
+
* @param {string} buildSpecification - Build specification for the function deployments.
|
|
287
|
+
* @param {string} runtimeSpecification - Runtime specification for the function executions.
|
|
288
|
+
* @param {number} deploymentRetention - Days to keep non-active deployments before deletion. Value 0 means all deployments will be kept.
|
|
277
289
|
* @throws {AppwriteException}
|
|
278
290
|
* @returns {Promise<Models.Function>}
|
|
279
291
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
280
292
|
*/
|
|
281
|
-
update(functionId: string, name: string, runtime?: Runtime, execute?: string[], events?: string[], schedule?: string, timeout?: number, enabled?: boolean, logging?: boolean, entrypoint?: string, commands?: string, scopes?: Scopes[], installationId?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string,
|
|
293
|
+
update(functionId: string, name: string, runtime?: Runtime, execute?: string[], events?: string[], schedule?: string, timeout?: number, enabled?: boolean, logging?: boolean, entrypoint?: string, commands?: string, scopes?: Scopes[], installationId?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, buildSpecification?: string, runtimeSpecification?: string, deploymentRetention?: number): Promise<Models.Function>;
|
|
282
294
|
/**
|
|
283
295
|
* Delete a function by its unique ID.
|
|
284
296
|
*
|
|
@@ -456,7 +456,7 @@ export declare class Organizations {
|
|
|
456
456
|
* List all invoices for an organization.
|
|
457
457
|
*
|
|
458
458
|
* @param {string} params.organizationId - Organization ID
|
|
459
|
-
* @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: teamId, aggregationId, amount, currency, from, to, dueAt, attempts, status, grossAmount
|
|
459
|
+
* @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: teamId, aggregationId, type, amount, currency, from, to, dueAt, attempts, status, grossAmount
|
|
460
460
|
* @throws {AppwriteException}
|
|
461
461
|
* @returns {Promise<Models.InvoiceList>}
|
|
462
462
|
*/
|
|
@@ -468,7 +468,7 @@ export declare class Organizations {
|
|
|
468
468
|
* List all invoices for an organization.
|
|
469
469
|
*
|
|
470
470
|
* @param {string} organizationId - Organization ID
|
|
471
|
-
* @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: teamId, aggregationId, amount, currency, from, to, dueAt, attempts, status, grossAmount
|
|
471
|
+
* @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: teamId, aggregationId, type, amount, currency, from, to, dueAt, attempts, status, grossAmount
|
|
472
472
|
* @throws {AppwriteException}
|
|
473
473
|
* @returns {Promise<Models.InvoiceList>}
|
|
474
474
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
@@ -49,6 +49,7 @@ export declare class Sites {
|
|
|
49
49
|
* @param {number} params.timeout - Maximum request time in seconds.
|
|
50
50
|
* @param {string} params.installCommand - Install Command.
|
|
51
51
|
* @param {string} params.buildCommand - Build Command.
|
|
52
|
+
* @param {string} params.startCommand - Custom start command. Leave empty to use default.
|
|
52
53
|
* @param {string} params.outputDirectory - Output Directory for site.
|
|
53
54
|
* @param {Adapter} params.adapter - Framework adapter defining rendering strategy. Allowed values are: static, ssr
|
|
54
55
|
* @param {string} params.installationId - Appwrite Installation ID for VCS (Version Control System) deployment.
|
|
@@ -57,7 +58,9 @@ export declare class Sites {
|
|
|
57
58
|
* @param {string} params.providerBranch - Production branch for the repo linked to the site.
|
|
58
59
|
* @param {boolean} params.providerSilentMode - Is the VCS (Version Control System) connection in silent mode for the repo linked to the site? In silent mode, comments will not be made on commits and pull requests.
|
|
59
60
|
* @param {string} params.providerRootDirectory - Path to site code in the linked repo.
|
|
60
|
-
* @param {string} params.
|
|
61
|
+
* @param {string} params.buildSpecification - Build specification for the site deployments.
|
|
62
|
+
* @param {string} params.runtimeSpecification - Runtime specification for the SSR executions.
|
|
63
|
+
* @param {number} params.deploymentRetention - Days to keep non-active deployments before deletion. Value 0 means all deployments will be kept.
|
|
61
64
|
* @throws {AppwriteException}
|
|
62
65
|
* @returns {Promise<Models.Site>}
|
|
63
66
|
*/
|
|
@@ -71,6 +74,7 @@ export declare class Sites {
|
|
|
71
74
|
timeout?: number;
|
|
72
75
|
installCommand?: string;
|
|
73
76
|
buildCommand?: string;
|
|
77
|
+
startCommand?: string;
|
|
74
78
|
outputDirectory?: string;
|
|
75
79
|
adapter?: Adapter;
|
|
76
80
|
installationId?: string;
|
|
@@ -79,7 +83,9 @@ export declare class Sites {
|
|
|
79
83
|
providerBranch?: string;
|
|
80
84
|
providerSilentMode?: boolean;
|
|
81
85
|
providerRootDirectory?: string;
|
|
82
|
-
|
|
86
|
+
buildSpecification?: string;
|
|
87
|
+
runtimeSpecification?: string;
|
|
88
|
+
deploymentRetention?: number;
|
|
83
89
|
}): Promise<Models.Site>;
|
|
84
90
|
/**
|
|
85
91
|
* Create a new site.
|
|
@@ -93,6 +99,7 @@ export declare class Sites {
|
|
|
93
99
|
* @param {number} timeout - Maximum request time in seconds.
|
|
94
100
|
* @param {string} installCommand - Install Command.
|
|
95
101
|
* @param {string} buildCommand - Build Command.
|
|
102
|
+
* @param {string} startCommand - Custom start command. Leave empty to use default.
|
|
96
103
|
* @param {string} outputDirectory - Output Directory for site.
|
|
97
104
|
* @param {Adapter} adapter - Framework adapter defining rendering strategy. Allowed values are: static, ssr
|
|
98
105
|
* @param {string} installationId - Appwrite Installation ID for VCS (Version Control System) deployment.
|
|
@@ -101,12 +108,14 @@ export declare class Sites {
|
|
|
101
108
|
* @param {string} providerBranch - Production branch for the repo linked to the site.
|
|
102
109
|
* @param {boolean} providerSilentMode - Is the VCS (Version Control System) connection in silent mode for the repo linked to the site? In silent mode, comments will not be made on commits and pull requests.
|
|
103
110
|
* @param {string} providerRootDirectory - Path to site code in the linked repo.
|
|
104
|
-
* @param {string}
|
|
111
|
+
* @param {string} buildSpecification - Build specification for the site deployments.
|
|
112
|
+
* @param {string} runtimeSpecification - Runtime specification for the SSR executions.
|
|
113
|
+
* @param {number} deploymentRetention - Days to keep non-active deployments before deletion. Value 0 means all deployments will be kept.
|
|
105
114
|
* @throws {AppwriteException}
|
|
106
115
|
* @returns {Promise<Models.Site>}
|
|
107
116
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
108
117
|
*/
|
|
109
|
-
create(siteId: string, name: string, framework: Framework, buildRuntime: BuildRuntime, enabled?: boolean, logging?: boolean, timeout?: number, installCommand?: string, buildCommand?: string, outputDirectory?: string, adapter?: Adapter, installationId?: string, fallbackFile?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string,
|
|
118
|
+
create(siteId: string, name: string, framework: Framework, buildRuntime: BuildRuntime, enabled?: boolean, logging?: boolean, timeout?: number, installCommand?: string, buildCommand?: string, startCommand?: string, outputDirectory?: string, adapter?: Adapter, installationId?: string, fallbackFile?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, buildSpecification?: string, runtimeSpecification?: string, deploymentRetention?: number): Promise<Models.Site>;
|
|
110
119
|
/**
|
|
111
120
|
* Get a list of all frameworks that are currently available on the server instance.
|
|
112
121
|
*
|
|
@@ -217,6 +226,7 @@ export declare class Sites {
|
|
|
217
226
|
* @param {number} params.timeout - Maximum request time in seconds.
|
|
218
227
|
* @param {string} params.installCommand - Install Command.
|
|
219
228
|
* @param {string} params.buildCommand - Build Command.
|
|
229
|
+
* @param {string} params.startCommand - Custom start command. Leave empty to use default.
|
|
220
230
|
* @param {string} params.outputDirectory - Output Directory for site.
|
|
221
231
|
* @param {BuildRuntime} params.buildRuntime - Runtime to use during build step.
|
|
222
232
|
* @param {Adapter} params.adapter - Framework adapter defining rendering strategy. Allowed values are: static, ssr
|
|
@@ -226,7 +236,9 @@ export declare class Sites {
|
|
|
226
236
|
* @param {string} params.providerBranch - Production branch for the repo linked to the site.
|
|
227
237
|
* @param {boolean} params.providerSilentMode - Is the VCS (Version Control System) connection in silent mode for the repo linked to the site? In silent mode, comments will not be made on commits and pull requests.
|
|
228
238
|
* @param {string} params.providerRootDirectory - Path to site code in the linked repo.
|
|
229
|
-
* @param {string} params.
|
|
239
|
+
* @param {string} params.buildSpecification - Build specification for the site deployments.
|
|
240
|
+
* @param {string} params.runtimeSpecification - Runtime specification for the SSR executions.
|
|
241
|
+
* @param {number} params.deploymentRetention - Days to keep non-active deployments before deletion. Value 0 means all deployments will be kept.
|
|
230
242
|
* @throws {AppwriteException}
|
|
231
243
|
* @returns {Promise<Models.Site>}
|
|
232
244
|
*/
|
|
@@ -239,6 +251,7 @@ export declare class Sites {
|
|
|
239
251
|
timeout?: number;
|
|
240
252
|
installCommand?: string;
|
|
241
253
|
buildCommand?: string;
|
|
254
|
+
startCommand?: string;
|
|
242
255
|
outputDirectory?: string;
|
|
243
256
|
buildRuntime?: BuildRuntime;
|
|
244
257
|
adapter?: Adapter;
|
|
@@ -248,7 +261,9 @@ export declare class Sites {
|
|
|
248
261
|
providerBranch?: string;
|
|
249
262
|
providerSilentMode?: boolean;
|
|
250
263
|
providerRootDirectory?: string;
|
|
251
|
-
|
|
264
|
+
buildSpecification?: string;
|
|
265
|
+
runtimeSpecification?: string;
|
|
266
|
+
deploymentRetention?: number;
|
|
252
267
|
}): Promise<Models.Site>;
|
|
253
268
|
/**
|
|
254
269
|
* Update site by its unique ID.
|
|
@@ -261,6 +276,7 @@ export declare class Sites {
|
|
|
261
276
|
* @param {number} timeout - Maximum request time in seconds.
|
|
262
277
|
* @param {string} installCommand - Install Command.
|
|
263
278
|
* @param {string} buildCommand - Build Command.
|
|
279
|
+
* @param {string} startCommand - Custom start command. Leave empty to use default.
|
|
264
280
|
* @param {string} outputDirectory - Output Directory for site.
|
|
265
281
|
* @param {BuildRuntime} buildRuntime - Runtime to use during build step.
|
|
266
282
|
* @param {Adapter} adapter - Framework adapter defining rendering strategy. Allowed values are: static, ssr
|
|
@@ -270,12 +286,14 @@ export declare class Sites {
|
|
|
270
286
|
* @param {string} providerBranch - Production branch for the repo linked to the site.
|
|
271
287
|
* @param {boolean} providerSilentMode - Is the VCS (Version Control System) connection in silent mode for the repo linked to the site? In silent mode, comments will not be made on commits and pull requests.
|
|
272
288
|
* @param {string} providerRootDirectory - Path to site code in the linked repo.
|
|
273
|
-
* @param {string}
|
|
289
|
+
* @param {string} buildSpecification - Build specification for the site deployments.
|
|
290
|
+
* @param {string} runtimeSpecification - Runtime specification for the SSR executions.
|
|
291
|
+
* @param {number} deploymentRetention - Days to keep non-active deployments before deletion. Value 0 means all deployments will be kept.
|
|
274
292
|
* @throws {AppwriteException}
|
|
275
293
|
* @returns {Promise<Models.Site>}
|
|
276
294
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
277
295
|
*/
|
|
278
|
-
update(siteId: string, name: string, framework: Framework, enabled?: boolean, logging?: boolean, timeout?: number, installCommand?: string, buildCommand?: string, outputDirectory?: string, buildRuntime?: BuildRuntime, adapter?: Adapter, fallbackFile?: string, installationId?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string,
|
|
296
|
+
update(siteId: string, name: string, framework: Framework, enabled?: boolean, logging?: boolean, timeout?: number, installCommand?: string, buildCommand?: string, startCommand?: string, outputDirectory?: string, buildRuntime?: BuildRuntime, adapter?: Adapter, fallbackFile?: string, installationId?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, buildSpecification?: string, runtimeSpecification?: string, deploymentRetention?: number): Promise<Models.Site>;
|
|
279
297
|
/**
|
|
280
298
|
* Delete a site by its unique ID.
|
|
281
299
|
*
|