@appwrite.io/console 3.1.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 +516 -119
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +517 -120
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +516 -119
- package/docs/examples/databases/list-documents.md +2 -1
- package/docs/examples/domains/confirm-purchase.md +16 -0
- package/docs/examples/domains/confirm-transfer-in.md +16 -0
- package/docs/examples/domains/create-purchase.md +1 -1
- package/docs/examples/domains/create-transfer-in.md +18 -0
- package/docs/examples/domains/create-transfer-out.md +16 -0
- package/docs/examples/domains/get-transfer-status.md +15 -0
- package/docs/examples/functions/create.md +3 -1
- package/docs/examples/functions/update.md +3 -1
- package/docs/examples/health/get-console-pausing.md +16 -0
- 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/projects/update-console-access.md +15 -0
- package/docs/examples/projects/update-status.md +16 -0
- package/docs/examples/sites/create-deployment.md +2 -2
- package/docs/examples/sites/create.md +4 -1
- package/docs/examples/sites/update.md +4 -1
- package/docs/examples/tablesdb/list-rows.md +2 -1
- package/package.json +1 -1
- package/src/channel.ts +19 -15
- package/src/client.ts +5 -1
- package/src/enums/appwrite-migration-resource.ts +25 -0
- package/src/enums/build-runtime.ts +3 -0
- package/src/enums/domain-purchase-payment-status.ts +10 -0
- package/src/enums/domain-transfer-status-status.ts +10 -0
- package/src/enums/firebase-migration-resource.ts +12 -0
- package/src/enums/{resources.ts → n-host-migration-resource.ts} +1 -1
- package/src/enums/runtime.ts +3 -0
- package/src/enums/runtimes.ts +3 -0
- package/src/enums/status.ts +3 -0
- package/src/enums/supabase-migration-resource.ts +13 -0
- package/src/index.ts +7 -1
- package/src/models.ts +209 -7
- package/src/services/account.ts +4 -4
- package/src/services/databases.ts +100 -93
- package/src/services/domains.ts +342 -13
- package/src/services/functions.ts +52 -24
- package/src/services/health.ts +61 -0
- package/src/services/messaging.ts +2 -2
- package/src/services/migrations.ts +68 -65
- package/src/services/organizations.ts +2 -2
- package/src/services/projects.ts +120 -0
- package/src/services/sites.ts +96 -57
- package/src/services/tables-db.ts +14 -7
- package/src/services/teams.ts +4 -4
- package/types/channel.d.ts +9 -9
- package/types/enums/appwrite-migration-resource.d.ts +25 -0
- package/types/enums/build-runtime.d.ts +3 -0
- package/types/enums/domain-purchase-payment-status.d.ts +10 -0
- package/types/enums/domain-transfer-status-status.d.ts +10 -0
- package/types/enums/firebase-migration-resource.d.ts +12 -0
- package/types/enums/{resources.d.ts → n-host-migration-resource.d.ts} +1 -1
- package/types/enums/runtime.d.ts +3 -0
- package/types/enums/runtimes.d.ts +3 -0
- package/types/enums/status.d.ts +3 -0
- package/types/enums/supabase-migration-resource.d.ts +13 -0
- package/types/index.d.ts +7 -1
- package/types/models.d.ts +207 -7
- package/types/services/account.d.ts +2 -2
- package/types/services/databases.d.ts +40 -37
- package/types/services/domains.d.ts +117 -4
- package/types/services/functions.d.ts +20 -8
- package/types/services/health.d.ts +24 -0
- package/types/services/messaging.d.ts +2 -2
- package/types/services/migrations.d.ts +36 -33
- package/types/services/organizations.d.ts +2 -2
- package/types/services/projects.d.ts +46 -0
- package/types/services/sites.d.ts +30 -12
- package/types/services/tables-db.d.ts +4 -1
- package/types/services/teams.d.ts +4 -4
package/src/services/sites.ts
CHANGED
|
@@ -97,6 +97,7 @@ export class Sites {
|
|
|
97
97
|
* @param {number} params.timeout - Maximum request time in seconds.
|
|
98
98
|
* @param {string} params.installCommand - Install Command.
|
|
99
99
|
* @param {string} params.buildCommand - Build Command.
|
|
100
|
+
* @param {string} params.startCommand - Custom start command. Leave empty to use default.
|
|
100
101
|
* @param {string} params.outputDirectory - Output Directory for site.
|
|
101
102
|
* @param {Adapter} params.adapter - Framework adapter defining rendering strategy. Allowed values are: static, ssr
|
|
102
103
|
* @param {string} params.installationId - Appwrite Installation ID for VCS (Version Control System) deployment.
|
|
@@ -105,11 +106,13 @@ export class Sites {
|
|
|
105
106
|
* @param {string} params.providerBranch - Production branch for the repo linked to the site.
|
|
106
107
|
* @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.
|
|
107
108
|
* @param {string} params.providerRootDirectory - Path to site code in the linked repo.
|
|
108
|
-
* @param {string} params.
|
|
109
|
+
* @param {string} params.buildSpecification - Build specification for the site deployments.
|
|
110
|
+
* @param {string} params.runtimeSpecification - Runtime specification for the SSR executions.
|
|
111
|
+
* @param {number} params.deploymentRetention - Days to keep non-active deployments before deletion. Value 0 means all deployments will be kept.
|
|
109
112
|
* @throws {AppwriteException}
|
|
110
113
|
* @returns {Promise<Models.Site>}
|
|
111
114
|
*/
|
|
112
|
-
create(params: { 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,
|
|
115
|
+
create(params: { 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>;
|
|
113
116
|
/**
|
|
114
117
|
* Create a new site.
|
|
115
118
|
*
|
|
@@ -122,6 +125,7 @@ export class Sites {
|
|
|
122
125
|
* @param {number} timeout - Maximum request time in seconds.
|
|
123
126
|
* @param {string} installCommand - Install Command.
|
|
124
127
|
* @param {string} buildCommand - Build Command.
|
|
128
|
+
* @param {string} startCommand - Custom start command. Leave empty to use default.
|
|
125
129
|
* @param {string} outputDirectory - Output Directory for site.
|
|
126
130
|
* @param {Adapter} adapter - Framework adapter defining rendering strategy. Allowed values are: static, ssr
|
|
127
131
|
* @param {string} installationId - Appwrite Installation ID for VCS (Version Control System) deployment.
|
|
@@ -130,20 +134,22 @@ export class Sites {
|
|
|
130
134
|
* @param {string} providerBranch - Production branch for the repo linked to the site.
|
|
131
135
|
* @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.
|
|
132
136
|
* @param {string} providerRootDirectory - Path to site code in the linked repo.
|
|
133
|
-
* @param {string}
|
|
137
|
+
* @param {string} buildSpecification - Build specification for the site deployments.
|
|
138
|
+
* @param {string} runtimeSpecification - Runtime specification for the SSR executions.
|
|
139
|
+
* @param {number} deploymentRetention - Days to keep non-active deployments before deletion. Value 0 means all deployments will be kept.
|
|
134
140
|
* @throws {AppwriteException}
|
|
135
141
|
* @returns {Promise<Models.Site>}
|
|
136
142
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
137
143
|
*/
|
|
138
|
-
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,
|
|
144
|
+
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>;
|
|
139
145
|
create(
|
|
140
|
-
paramsOrFirst: { 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,
|
|
141
|
-
...rest: [(string)?, (Framework)?, (BuildRuntime)?, (boolean)?, (boolean)?, (number)?, (string)?, (string)?, (string)?, (Adapter)?, (string)?, (string)?, (string)?, (string)?, (boolean)?, (string)?, (string)?]
|
|
146
|
+
paramsOrFirst: { 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 } | string,
|
|
147
|
+
...rest: [(string)?, (Framework)?, (BuildRuntime)?, (boolean)?, (boolean)?, (number)?, (string)?, (string)?, (string)?, (string)?, (Adapter)?, (string)?, (string)?, (string)?, (string)?, (boolean)?, (string)?, (string)?, (string)?, (number)?]
|
|
142
148
|
): Promise<Models.Site> {
|
|
143
|
-
let params: { 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,
|
|
149
|
+
let params: { 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 };
|
|
144
150
|
|
|
145
151
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
146
|
-
params = (paramsOrFirst || {}) as { 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,
|
|
152
|
+
params = (paramsOrFirst || {}) as { 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 };
|
|
147
153
|
} else {
|
|
148
154
|
params = {
|
|
149
155
|
siteId: paramsOrFirst as string,
|
|
@@ -155,15 +161,18 @@ export class Sites {
|
|
|
155
161
|
timeout: rest[5] as number,
|
|
156
162
|
installCommand: rest[6] as string,
|
|
157
163
|
buildCommand: rest[7] as string,
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
164
|
+
startCommand: rest[8] as string,
|
|
165
|
+
outputDirectory: rest[9] as string,
|
|
166
|
+
adapter: rest[10] as Adapter,
|
|
167
|
+
installationId: rest[11] as string,
|
|
168
|
+
fallbackFile: rest[12] as string,
|
|
169
|
+
providerRepositoryId: rest[13] as string,
|
|
170
|
+
providerBranch: rest[14] as string,
|
|
171
|
+
providerSilentMode: rest[15] as boolean,
|
|
172
|
+
providerRootDirectory: rest[16] as string,
|
|
173
|
+
buildSpecification: rest[17] as string,
|
|
174
|
+
runtimeSpecification: rest[18] as string,
|
|
175
|
+
deploymentRetention: rest[19] as number
|
|
167
176
|
};
|
|
168
177
|
}
|
|
169
178
|
|
|
@@ -176,6 +185,7 @@ export class Sites {
|
|
|
176
185
|
const timeout = params.timeout;
|
|
177
186
|
const installCommand = params.installCommand;
|
|
178
187
|
const buildCommand = params.buildCommand;
|
|
188
|
+
const startCommand = params.startCommand;
|
|
179
189
|
const outputDirectory = params.outputDirectory;
|
|
180
190
|
const adapter = params.adapter;
|
|
181
191
|
const installationId = params.installationId;
|
|
@@ -184,7 +194,9 @@ export class Sites {
|
|
|
184
194
|
const providerBranch = params.providerBranch;
|
|
185
195
|
const providerSilentMode = params.providerSilentMode;
|
|
186
196
|
const providerRootDirectory = params.providerRootDirectory;
|
|
187
|
-
const
|
|
197
|
+
const buildSpecification = params.buildSpecification;
|
|
198
|
+
const runtimeSpecification = params.runtimeSpecification;
|
|
199
|
+
const deploymentRetention = params.deploymentRetention;
|
|
188
200
|
|
|
189
201
|
if (typeof siteId === 'undefined') {
|
|
190
202
|
throw new AppwriteException('Missing required parameter: "siteId"');
|
|
@@ -225,6 +237,9 @@ export class Sites {
|
|
|
225
237
|
if (typeof buildCommand !== 'undefined') {
|
|
226
238
|
payload['buildCommand'] = buildCommand;
|
|
227
239
|
}
|
|
240
|
+
if (typeof startCommand !== 'undefined') {
|
|
241
|
+
payload['startCommand'] = startCommand;
|
|
242
|
+
}
|
|
228
243
|
if (typeof outputDirectory !== 'undefined') {
|
|
229
244
|
payload['outputDirectory'] = outputDirectory;
|
|
230
245
|
}
|
|
@@ -252,8 +267,14 @@ export class Sites {
|
|
|
252
267
|
if (typeof providerRootDirectory !== 'undefined') {
|
|
253
268
|
payload['providerRootDirectory'] = providerRootDirectory;
|
|
254
269
|
}
|
|
255
|
-
if (typeof
|
|
256
|
-
payload['
|
|
270
|
+
if (typeof buildSpecification !== 'undefined') {
|
|
271
|
+
payload['buildSpecification'] = buildSpecification;
|
|
272
|
+
}
|
|
273
|
+
if (typeof runtimeSpecification !== 'undefined') {
|
|
274
|
+
payload['runtimeSpecification'] = runtimeSpecification;
|
|
275
|
+
}
|
|
276
|
+
if (typeof deploymentRetention !== 'undefined') {
|
|
277
|
+
payload['deploymentRetention'] = deploymentRetention;
|
|
257
278
|
}
|
|
258
279
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
259
280
|
|
|
@@ -552,6 +573,7 @@ export class Sites {
|
|
|
552
573
|
* @param {number} params.timeout - Maximum request time in seconds.
|
|
553
574
|
* @param {string} params.installCommand - Install Command.
|
|
554
575
|
* @param {string} params.buildCommand - Build Command.
|
|
576
|
+
* @param {string} params.startCommand - Custom start command. Leave empty to use default.
|
|
555
577
|
* @param {string} params.outputDirectory - Output Directory for site.
|
|
556
578
|
* @param {BuildRuntime} params.buildRuntime - Runtime to use during build step.
|
|
557
579
|
* @param {Adapter} params.adapter - Framework adapter defining rendering strategy. Allowed values are: static, ssr
|
|
@@ -561,11 +583,13 @@ export class Sites {
|
|
|
561
583
|
* @param {string} params.providerBranch - Production branch for the repo linked to the site.
|
|
562
584
|
* @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.
|
|
563
585
|
* @param {string} params.providerRootDirectory - Path to site code in the linked repo.
|
|
564
|
-
* @param {string} params.
|
|
586
|
+
* @param {string} params.buildSpecification - Build specification for the site deployments.
|
|
587
|
+
* @param {string} params.runtimeSpecification - Runtime specification for the SSR executions.
|
|
588
|
+
* @param {number} params.deploymentRetention - Days to keep non-active deployments before deletion. Value 0 means all deployments will be kept.
|
|
565
589
|
* @throws {AppwriteException}
|
|
566
590
|
* @returns {Promise<Models.Site>}
|
|
567
591
|
*/
|
|
568
|
-
update(params: { 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,
|
|
592
|
+
update(params: { 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>;
|
|
569
593
|
/**
|
|
570
594
|
* Update site by its unique ID.
|
|
571
595
|
*
|
|
@@ -577,6 +601,7 @@ export class Sites {
|
|
|
577
601
|
* @param {number} timeout - Maximum request time in seconds.
|
|
578
602
|
* @param {string} installCommand - Install Command.
|
|
579
603
|
* @param {string} buildCommand - Build Command.
|
|
604
|
+
* @param {string} startCommand - Custom start command. Leave empty to use default.
|
|
580
605
|
* @param {string} outputDirectory - Output Directory for site.
|
|
581
606
|
* @param {BuildRuntime} buildRuntime - Runtime to use during build step.
|
|
582
607
|
* @param {Adapter} adapter - Framework adapter defining rendering strategy. Allowed values are: static, ssr
|
|
@@ -586,20 +611,22 @@ export class Sites {
|
|
|
586
611
|
* @param {string} providerBranch - Production branch for the repo linked to the site.
|
|
587
612
|
* @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.
|
|
588
613
|
* @param {string} providerRootDirectory - Path to site code in the linked repo.
|
|
589
|
-
* @param {string}
|
|
614
|
+
* @param {string} buildSpecification - Build specification for the site deployments.
|
|
615
|
+
* @param {string} runtimeSpecification - Runtime specification for the SSR executions.
|
|
616
|
+
* @param {number} deploymentRetention - Days to keep non-active deployments before deletion. Value 0 means all deployments will be kept.
|
|
590
617
|
* @throws {AppwriteException}
|
|
591
618
|
* @returns {Promise<Models.Site>}
|
|
592
619
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
593
620
|
*/
|
|
594
|
-
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,
|
|
621
|
+
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>;
|
|
595
622
|
update(
|
|
596
|
-
paramsOrFirst: { 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,
|
|
597
|
-
...rest: [(string)?, (Framework)?, (boolean)?, (boolean)?, (number)?, (string)?, (string)?, (string)?, (BuildRuntime)?, (Adapter)?, (string)?, (string)?, (string)?, (string)?, (boolean)?, (string)?, (string)?]
|
|
623
|
+
paramsOrFirst: { 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 } | string,
|
|
624
|
+
...rest: [(string)?, (Framework)?, (boolean)?, (boolean)?, (number)?, (string)?, (string)?, (string)?, (string)?, (BuildRuntime)?, (Adapter)?, (string)?, (string)?, (string)?, (string)?, (boolean)?, (string)?, (string)?, (string)?, (number)?]
|
|
598
625
|
): Promise<Models.Site> {
|
|
599
|
-
let params: { 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,
|
|
626
|
+
let params: { 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 };
|
|
600
627
|
|
|
601
628
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
602
|
-
params = (paramsOrFirst || {}) as { 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,
|
|
629
|
+
params = (paramsOrFirst || {}) as { 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 };
|
|
603
630
|
} else {
|
|
604
631
|
params = {
|
|
605
632
|
siteId: paramsOrFirst as string,
|
|
@@ -610,16 +637,19 @@ export class Sites {
|
|
|
610
637
|
timeout: rest[4] as number,
|
|
611
638
|
installCommand: rest[5] as string,
|
|
612
639
|
buildCommand: rest[6] as string,
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
640
|
+
startCommand: rest[7] as string,
|
|
641
|
+
outputDirectory: rest[8] as string,
|
|
642
|
+
buildRuntime: rest[9] as BuildRuntime,
|
|
643
|
+
adapter: rest[10] as Adapter,
|
|
644
|
+
fallbackFile: rest[11] as string,
|
|
645
|
+
installationId: rest[12] as string,
|
|
646
|
+
providerRepositoryId: rest[13] as string,
|
|
647
|
+
providerBranch: rest[14] as string,
|
|
648
|
+
providerSilentMode: rest[15] as boolean,
|
|
649
|
+
providerRootDirectory: rest[16] as string,
|
|
650
|
+
buildSpecification: rest[17] as string,
|
|
651
|
+
runtimeSpecification: rest[18] as string,
|
|
652
|
+
deploymentRetention: rest[19] as number
|
|
623
653
|
};
|
|
624
654
|
}
|
|
625
655
|
|
|
@@ -631,6 +661,7 @@ export class Sites {
|
|
|
631
661
|
const timeout = params.timeout;
|
|
632
662
|
const installCommand = params.installCommand;
|
|
633
663
|
const buildCommand = params.buildCommand;
|
|
664
|
+
const startCommand = params.startCommand;
|
|
634
665
|
const outputDirectory = params.outputDirectory;
|
|
635
666
|
const buildRuntime = params.buildRuntime;
|
|
636
667
|
const adapter = params.adapter;
|
|
@@ -640,7 +671,9 @@ export class Sites {
|
|
|
640
671
|
const providerBranch = params.providerBranch;
|
|
641
672
|
const providerSilentMode = params.providerSilentMode;
|
|
642
673
|
const providerRootDirectory = params.providerRootDirectory;
|
|
643
|
-
const
|
|
674
|
+
const buildSpecification = params.buildSpecification;
|
|
675
|
+
const runtimeSpecification = params.runtimeSpecification;
|
|
676
|
+
const deploymentRetention = params.deploymentRetention;
|
|
644
677
|
|
|
645
678
|
if (typeof siteId === 'undefined') {
|
|
646
679
|
throw new AppwriteException('Missing required parameter: "siteId"');
|
|
@@ -675,6 +708,9 @@ export class Sites {
|
|
|
675
708
|
if (typeof buildCommand !== 'undefined') {
|
|
676
709
|
payload['buildCommand'] = buildCommand;
|
|
677
710
|
}
|
|
711
|
+
if (typeof startCommand !== 'undefined') {
|
|
712
|
+
payload['startCommand'] = startCommand;
|
|
713
|
+
}
|
|
678
714
|
if (typeof outputDirectory !== 'undefined') {
|
|
679
715
|
payload['outputDirectory'] = outputDirectory;
|
|
680
716
|
}
|
|
@@ -702,8 +738,14 @@ export class Sites {
|
|
|
702
738
|
if (typeof providerRootDirectory !== 'undefined') {
|
|
703
739
|
payload['providerRootDirectory'] = providerRootDirectory;
|
|
704
740
|
}
|
|
705
|
-
if (typeof
|
|
706
|
-
payload['
|
|
741
|
+
if (typeof buildSpecification !== 'undefined') {
|
|
742
|
+
payload['buildSpecification'] = buildSpecification;
|
|
743
|
+
}
|
|
744
|
+
if (typeof runtimeSpecification !== 'undefined') {
|
|
745
|
+
payload['runtimeSpecification'] = runtimeSpecification;
|
|
746
|
+
}
|
|
747
|
+
if (typeof deploymentRetention !== 'undefined') {
|
|
748
|
+
payload['deploymentRetention'] = deploymentRetention;
|
|
707
749
|
}
|
|
708
750
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
709
751
|
|
|
@@ -912,56 +954,56 @@ export class Sites {
|
|
|
912
954
|
*
|
|
913
955
|
* @param {string} params.siteId - Site ID.
|
|
914
956
|
* @param {File} params.code - Gzip file with your code package. When used with the Appwrite CLI, pass the path to your code directory, and the CLI will automatically package your code. Use a path that is within the current directory.
|
|
915
|
-
* @param {boolean} params.activate - Automatically activate the deployment when it is finished building.
|
|
916
957
|
* @param {string} params.installCommand - Install Commands.
|
|
917
958
|
* @param {string} params.buildCommand - Build Commands.
|
|
918
959
|
* @param {string} params.outputDirectory - Output Directory.
|
|
960
|
+
* @param {boolean} params.activate - Automatically activate the deployment when it is finished building.
|
|
919
961
|
* @throws {AppwriteException}
|
|
920
962
|
* @returns {Promise<Models.Deployment>}
|
|
921
963
|
*/
|
|
922
|
-
createDeployment(params: { siteId: string, code: File,
|
|
964
|
+
createDeployment(params: { siteId: string, code: File, installCommand?: string, buildCommand?: string, outputDirectory?: string, activate?: boolean, onProgress?: (progress: UploadProgress) => void }): Promise<Models.Deployment>;
|
|
923
965
|
/**
|
|
924
966
|
* Create a new site code deployment. Use this endpoint to upload a new version of your site code. To activate your newly uploaded code, you'll need to update the site's deployment to use your new deployment ID.
|
|
925
967
|
*
|
|
926
968
|
* @param {string} siteId - Site ID.
|
|
927
969
|
* @param {File} code - Gzip file with your code package. When used with the Appwrite CLI, pass the path to your code directory, and the CLI will automatically package your code. Use a path that is within the current directory.
|
|
928
|
-
* @param {boolean} activate - Automatically activate the deployment when it is finished building.
|
|
929
970
|
* @param {string} installCommand - Install Commands.
|
|
930
971
|
* @param {string} buildCommand - Build Commands.
|
|
931
972
|
* @param {string} outputDirectory - Output Directory.
|
|
973
|
+
* @param {boolean} activate - Automatically activate the deployment when it is finished building.
|
|
932
974
|
* @throws {AppwriteException}
|
|
933
975
|
* @returns {Promise<Models.Deployment>}
|
|
934
976
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
935
977
|
*/
|
|
936
|
-
createDeployment(siteId: string, code: File,
|
|
978
|
+
createDeployment(siteId: string, code: File, installCommand?: string, buildCommand?: string, outputDirectory?: string, activate?: boolean, onProgress?: (progress: UploadProgress) => void): Promise<Models.Deployment>;
|
|
937
979
|
createDeployment(
|
|
938
|
-
paramsOrFirst: { siteId: string, code: File,
|
|
939
|
-
...rest: [(File)?, (
|
|
980
|
+
paramsOrFirst: { siteId: string, code: File, installCommand?: string, buildCommand?: string, outputDirectory?: string, activate?: boolean, onProgress?: (progress: UploadProgress) => void } | string,
|
|
981
|
+
...rest: [(File)?, (string)?, (string)?, (string)?, (boolean)?,((progress: UploadProgress) => void)?]
|
|
940
982
|
): Promise<Models.Deployment> {
|
|
941
|
-
let params: { siteId: string, code: File,
|
|
983
|
+
let params: { siteId: string, code: File, installCommand?: string, buildCommand?: string, outputDirectory?: string, activate?: boolean };
|
|
942
984
|
let onProgress: ((progress: UploadProgress) => void);
|
|
943
985
|
|
|
944
986
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
945
|
-
params = (paramsOrFirst || {}) as { siteId: string, code: File,
|
|
987
|
+
params = (paramsOrFirst || {}) as { siteId: string, code: File, installCommand?: string, buildCommand?: string, outputDirectory?: string, activate?: boolean };
|
|
946
988
|
onProgress = paramsOrFirst?.onProgress as ((progress: UploadProgress) => void);
|
|
947
989
|
} else {
|
|
948
990
|
params = {
|
|
949
991
|
siteId: paramsOrFirst as string,
|
|
950
992
|
code: rest[0] as File,
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
993
|
+
installCommand: rest[1] as string,
|
|
994
|
+
buildCommand: rest[2] as string,
|
|
995
|
+
outputDirectory: rest[3] as string,
|
|
996
|
+
activate: rest[4] as boolean
|
|
955
997
|
};
|
|
956
998
|
onProgress = rest[5] as ((progress: UploadProgress) => void);
|
|
957
999
|
}
|
|
958
1000
|
|
|
959
1001
|
const siteId = params.siteId;
|
|
960
1002
|
const code = params.code;
|
|
961
|
-
const activate = params.activate;
|
|
962
1003
|
const installCommand = params.installCommand;
|
|
963
1004
|
const buildCommand = params.buildCommand;
|
|
964
1005
|
const outputDirectory = params.outputDirectory;
|
|
1006
|
+
const activate = params.activate;
|
|
965
1007
|
|
|
966
1008
|
if (typeof siteId === 'undefined') {
|
|
967
1009
|
throw new AppwriteException('Missing required parameter: "siteId"');
|
|
@@ -969,9 +1011,6 @@ export class Sites {
|
|
|
969
1011
|
if (typeof code === 'undefined') {
|
|
970
1012
|
throw new AppwriteException('Missing required parameter: "code"');
|
|
971
1013
|
}
|
|
972
|
-
if (typeof activate === 'undefined') {
|
|
973
|
-
throw new AppwriteException('Missing required parameter: "activate"');
|
|
974
|
-
}
|
|
975
1014
|
|
|
976
1015
|
const apiPath = '/sites/{siteId}/deployments'.replace('{siteId}', siteId);
|
|
977
1016
|
const payload: Payload = {};
|
|
@@ -5052,10 +5052,11 @@ export class TablesDB {
|
|
|
5052
5052
|
* @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/queries). Maximum of 100 queries are allowed, each 4096 characters long.
|
|
5053
5053
|
* @param {string} params.transactionId - Transaction ID to read uncommitted changes within the transaction.
|
|
5054
5054
|
* @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated.
|
|
5055
|
+
* @param {number} params.ttl - TTL (seconds) for cached responses when caching is enabled for select queries. Must be between 0 and 86400 (24 hours).
|
|
5055
5056
|
* @throws {AppwriteException}
|
|
5056
5057
|
* @returns {Promise<Models.RowList<Row>>}
|
|
5057
5058
|
*/
|
|
5058
|
-
listRows<Row extends Models.Row = Models.DefaultRow>(params: { databaseId: string, tableId: string, queries?: string[], transactionId?: string, total?: boolean }): Promise<Models.RowList<Row>>;
|
|
5059
|
+
listRows<Row extends Models.Row = Models.DefaultRow>(params: { databaseId: string, tableId: string, queries?: string[], transactionId?: string, total?: boolean, ttl?: number }): Promise<Models.RowList<Row>>;
|
|
5059
5060
|
/**
|
|
5060
5061
|
* Get a list of all the user's rows in a given table. You can use the query params to filter your results.
|
|
5061
5062
|
*
|
|
@@ -5064,26 +5065,28 @@ export class TablesDB {
|
|
|
5064
5065
|
* @param {string[]} queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long.
|
|
5065
5066
|
* @param {string} transactionId - Transaction ID to read uncommitted changes within the transaction.
|
|
5066
5067
|
* @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated.
|
|
5068
|
+
* @param {number} ttl - TTL (seconds) for cached responses when caching is enabled for select queries. Must be between 0 and 86400 (24 hours).
|
|
5067
5069
|
* @throws {AppwriteException}
|
|
5068
5070
|
* @returns {Promise<Models.RowList<Row>>}
|
|
5069
5071
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
5070
5072
|
*/
|
|
5071
|
-
listRows<Row extends Models.Row = Models.DefaultRow>(databaseId: string, tableId: string, queries?: string[], transactionId?: string, total?: boolean): Promise<Models.RowList<Row>>;
|
|
5073
|
+
listRows<Row extends Models.Row = Models.DefaultRow>(databaseId: string, tableId: string, queries?: string[], transactionId?: string, total?: boolean, ttl?: number): Promise<Models.RowList<Row>>;
|
|
5072
5074
|
listRows<Row extends Models.Row = Models.DefaultRow>(
|
|
5073
|
-
paramsOrFirst: { databaseId: string, tableId: string, queries?: string[], transactionId?: string, total?: boolean } | string,
|
|
5074
|
-
...rest: [(string)?, (string[])?, (string)?, (boolean)?]
|
|
5075
|
+
paramsOrFirst: { databaseId: string, tableId: string, queries?: string[], transactionId?: string, total?: boolean, ttl?: number } | string,
|
|
5076
|
+
...rest: [(string)?, (string[])?, (string)?, (boolean)?, (number)?]
|
|
5075
5077
|
): Promise<Models.RowList<Row>> {
|
|
5076
|
-
let params: { databaseId: string, tableId: string, queries?: string[], transactionId?: string, total?: boolean };
|
|
5078
|
+
let params: { databaseId: string, tableId: string, queries?: string[], transactionId?: string, total?: boolean, ttl?: number };
|
|
5077
5079
|
|
|
5078
5080
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
5079
|
-
params = (paramsOrFirst || {}) as { databaseId: string, tableId: string, queries?: string[], transactionId?: string, total?: boolean };
|
|
5081
|
+
params = (paramsOrFirst || {}) as { databaseId: string, tableId: string, queries?: string[], transactionId?: string, total?: boolean, ttl?: number };
|
|
5080
5082
|
} else {
|
|
5081
5083
|
params = {
|
|
5082
5084
|
databaseId: paramsOrFirst as string,
|
|
5083
5085
|
tableId: rest[0] as string,
|
|
5084
5086
|
queries: rest[1] as string[],
|
|
5085
5087
|
transactionId: rest[2] as string,
|
|
5086
|
-
total: rest[3] as boolean
|
|
5088
|
+
total: rest[3] as boolean,
|
|
5089
|
+
ttl: rest[4] as number
|
|
5087
5090
|
};
|
|
5088
5091
|
}
|
|
5089
5092
|
|
|
@@ -5092,6 +5095,7 @@ export class TablesDB {
|
|
|
5092
5095
|
const queries = params.queries;
|
|
5093
5096
|
const transactionId = params.transactionId;
|
|
5094
5097
|
const total = params.total;
|
|
5098
|
+
const ttl = params.ttl;
|
|
5095
5099
|
|
|
5096
5100
|
if (typeof databaseId === 'undefined') {
|
|
5097
5101
|
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
@@ -5111,6 +5115,9 @@ export class TablesDB {
|
|
|
5111
5115
|
if (typeof total !== 'undefined') {
|
|
5112
5116
|
payload['total'] = total;
|
|
5113
5117
|
}
|
|
5118
|
+
if (typeof ttl !== 'undefined') {
|
|
5119
|
+
payload['ttl'] = ttl;
|
|
5120
|
+
}
|
|
5114
5121
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
5115
5122
|
|
|
5116
5123
|
const apiHeaders: { [header: string]: string } = {
|
package/src/services/teams.ts
CHANGED
|
@@ -465,7 +465,7 @@ export class Teams {
|
|
|
465
465
|
*
|
|
466
466
|
*
|
|
467
467
|
* @param {string} params.teamId - Team ID.
|
|
468
|
-
* @param {string[]} params.roles - Array of strings. Use this param to set the user roles in the team. A role can be any string. Learn more about [roles and permissions](https://appwrite.io/docs/permissions). Maximum of 100 roles are allowed, each
|
|
468
|
+
* @param {string[]} params.roles - Array of strings. Use this param to set the user roles in the team. A role can be any string. Learn more about [roles and permissions](https://appwrite.io/docs/permissions). Maximum of 100 roles are allowed, each 81 characters long.
|
|
469
469
|
* @param {string} params.email - Email of the new team member.
|
|
470
470
|
* @param {string} params.userId - ID of the user to be added to a team.
|
|
471
471
|
* @param {string} params.phone - Phone number. Format this number with a leading '+' and a country code, e.g., +16175551212.
|
|
@@ -486,7 +486,7 @@ export class Teams {
|
|
|
486
486
|
*
|
|
487
487
|
*
|
|
488
488
|
* @param {string} teamId - Team ID.
|
|
489
|
-
* @param {string[]} roles - Array of strings. Use this param to set the user roles in the team. A role can be any string. Learn more about [roles and permissions](https://appwrite.io/docs/permissions). Maximum of 100 roles are allowed, each
|
|
489
|
+
* @param {string[]} roles - Array of strings. Use this param to set the user roles in the team. A role can be any string. Learn more about [roles and permissions](https://appwrite.io/docs/permissions). Maximum of 100 roles are allowed, each 81 characters long.
|
|
490
490
|
* @param {string} email - Email of the new team member.
|
|
491
491
|
* @param {string} userId - ID of the user to be added to a team.
|
|
492
492
|
* @param {string} phone - Phone number. Format this number with a leading '+' and a country code, e.g., +16175551212.
|
|
@@ -631,7 +631,7 @@ export class Teams {
|
|
|
631
631
|
*
|
|
632
632
|
* @param {string} params.teamId - Team ID.
|
|
633
633
|
* @param {string} params.membershipId - Membership ID.
|
|
634
|
-
* @param {string[]} params.roles - An array of strings. Use this param to set the user's roles in the team. A role can be any string. Learn more about [roles and permissions](https://appwrite.io/docs/permissions). Maximum of 100 roles are allowed, each
|
|
634
|
+
* @param {string[]} params.roles - An array of strings. Use this param to set the user's roles in the team. A role can be any string. Learn more about [roles and permissions](https://appwrite.io/docs/permissions). Maximum of 100 roles are allowed, each 81 characters long.
|
|
635
635
|
* @throws {AppwriteException}
|
|
636
636
|
* @returns {Promise<Models.Membership>}
|
|
637
637
|
*/
|
|
@@ -642,7 +642,7 @@ export class Teams {
|
|
|
642
642
|
*
|
|
643
643
|
* @param {string} teamId - Team ID.
|
|
644
644
|
* @param {string} membershipId - Membership ID.
|
|
645
|
-
* @param {string[]} roles - An array of strings. Use this param to set the user's roles in the team. A role can be any string. Learn more about [roles and permissions](https://appwrite.io/docs/permissions). Maximum of 100 roles are allowed, each
|
|
645
|
+
* @param {string[]} roles - An array of strings. Use this param to set the user's roles in the team. A role can be any string. Learn more about [roles and permissions](https://appwrite.io/docs/permissions). Maximum of 100 roles are allowed, each 81 characters long.
|
|
646
646
|
* @throws {AppwriteException}
|
|
647
647
|
* @returns {Promise<Models.Membership>}
|
|
648
648
|
* @deprecated Use the object parameter style method for a better developer experience.
|
package/types/channel.d.ts
CHANGED
|
@@ -45,22 +45,22 @@ export declare class Channel<T> {
|
|
|
45
45
|
private next;
|
|
46
46
|
private resolve;
|
|
47
47
|
toString(): string;
|
|
48
|
-
collection(this: Channel<Database>, id
|
|
48
|
+
collection(this: Channel<Database>, id: string): Channel<Collection>;
|
|
49
49
|
document(this: Channel<Collection>, id?: string): Channel<Document>;
|
|
50
|
-
table(this: Channel<TablesDB>, id
|
|
50
|
+
table(this: Channel<TablesDB>, id: string): Channel<Table>;
|
|
51
51
|
row(this: Channel<Table>, id?: string): Channel<Row>;
|
|
52
52
|
file(this: Channel<Bucket>, id?: string): Channel<File>;
|
|
53
53
|
create(this: Channel<Actionable>): Channel<Resolved>;
|
|
54
54
|
upsert(this: Channel<Document | Row>): Channel<Resolved>;
|
|
55
55
|
update(this: Channel<Actionable>): Channel<Resolved>;
|
|
56
56
|
delete(this: Channel<Actionable>): Channel<Resolved>;
|
|
57
|
-
static database(id
|
|
58
|
-
static execution(id
|
|
59
|
-
static tablesdb(id
|
|
60
|
-
static bucket(id
|
|
61
|
-
static function(id
|
|
62
|
-
static team(id
|
|
63
|
-
static membership(id
|
|
57
|
+
static database(id: string): Channel<Database>;
|
|
58
|
+
static execution(id: string): Channel<Execution>;
|
|
59
|
+
static tablesdb(id: string): Channel<TablesDB>;
|
|
60
|
+
static bucket(id: string): Channel<Bucket>;
|
|
61
|
+
static function(id: string): Channel<Func>;
|
|
62
|
+
static team(id: string): Channel<Team>;
|
|
63
|
+
static membership(id: string): Channel<Membership>;
|
|
64
64
|
static account(): string;
|
|
65
65
|
static documents(): string;
|
|
66
66
|
static rows(): string;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export declare enum AppwriteMigrationResource {
|
|
2
|
+
User = "user",
|
|
3
|
+
Team = "team",
|
|
4
|
+
Membership = "membership",
|
|
5
|
+
Database = "database",
|
|
6
|
+
Table = "table",
|
|
7
|
+
Column = "column",
|
|
8
|
+
Index = "index",
|
|
9
|
+
Row = "row",
|
|
10
|
+
Document = "document",
|
|
11
|
+
Attribute = "attribute",
|
|
12
|
+
Collection = "collection",
|
|
13
|
+
Bucket = "bucket",
|
|
14
|
+
File = "file",
|
|
15
|
+
Function = "function",
|
|
16
|
+
Deployment = "deployment",
|
|
17
|
+
Environmentvariable = "environment-variable",
|
|
18
|
+
Provider = "provider",
|
|
19
|
+
Topic = "topic",
|
|
20
|
+
Subscriber = "subscriber",
|
|
21
|
+
Message = "message",
|
|
22
|
+
Site = "site",
|
|
23
|
+
Sitedeployment = "site-deployment",
|
|
24
|
+
Sitevariable = "site-variable"
|
|
25
|
+
}
|
|
@@ -30,6 +30,9 @@ export declare enum BuildRuntime {
|
|
|
30
30
|
Pythonml311 = "python-ml-3.11",
|
|
31
31
|
Pythonml312 = "python-ml-3.12",
|
|
32
32
|
Pythonml313 = "python-ml-3.13",
|
|
33
|
+
Deno121 = "deno-1.21",
|
|
34
|
+
Deno124 = "deno-1.24",
|
|
35
|
+
Deno135 = "deno-1.35",
|
|
33
36
|
Deno140 = "deno-1.40",
|
|
34
37
|
Deno146 = "deno-1.46",
|
|
35
38
|
Deno20 = "deno-2.0",
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare enum DomainPurchasePaymentStatus {
|
|
2
|
+
Pending = "pending",
|
|
3
|
+
PendingConfirmation = "pending_confirmation",
|
|
4
|
+
PendingPaymentProcessing = "pending_payment_processing",
|
|
5
|
+
Authorized = "authorized",
|
|
6
|
+
Captured = "captured",
|
|
7
|
+
Failed = "failed",
|
|
8
|
+
CaptureFailed = "capture_failed",
|
|
9
|
+
RenewalCaptureFailed = "renewal_capture_failed"
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare enum DomainTransferStatusStatus {
|
|
2
|
+
Transferrable = "transferrable",
|
|
3
|
+
NotTransferrable = "not_transferrable",
|
|
4
|
+
PendingOwner = "pending_owner",
|
|
5
|
+
PendingAdmin = "pending_admin",
|
|
6
|
+
PendingRegistry = "pending_registry",
|
|
7
|
+
Completed = "completed",
|
|
8
|
+
Cancelled = "cancelled",
|
|
9
|
+
ServiceUnavailable = "service_unavailable"
|
|
10
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare enum FirebaseMigrationResource {
|
|
2
|
+
User = "user",
|
|
3
|
+
Database = "database",
|
|
4
|
+
Table = "table",
|
|
5
|
+
Column = "column",
|
|
6
|
+
Row = "row",
|
|
7
|
+
Document = "document",
|
|
8
|
+
Attribute = "attribute",
|
|
9
|
+
Collection = "collection",
|
|
10
|
+
Bucket = "bucket",
|
|
11
|
+
File = "file"
|
|
12
|
+
}
|
package/types/enums/runtime.d.ts
CHANGED
|
@@ -30,6 +30,9 @@ export declare enum Runtime {
|
|
|
30
30
|
Pythonml311 = "python-ml-3.11",
|
|
31
31
|
Pythonml312 = "python-ml-3.12",
|
|
32
32
|
Pythonml313 = "python-ml-3.13",
|
|
33
|
+
Deno121 = "deno-1.21",
|
|
34
|
+
Deno124 = "deno-1.24",
|
|
35
|
+
Deno135 = "deno-1.35",
|
|
33
36
|
Deno140 = "deno-1.40",
|
|
34
37
|
Deno146 = "deno-1.46",
|
|
35
38
|
Deno20 = "deno-2.0",
|
|
@@ -30,6 +30,9 @@ export declare enum Runtimes {
|
|
|
30
30
|
Pythonml311 = "python-ml-3.11",
|
|
31
31
|
Pythonml312 = "python-ml-3.12",
|
|
32
32
|
Pythonml313 = "python-ml-3.13",
|
|
33
|
+
Deno121 = "deno-1.21",
|
|
34
|
+
Deno124 = "deno-1.24",
|
|
35
|
+
Deno135 = "deno-1.35",
|
|
33
36
|
Deno140 = "deno-1.40",
|
|
34
37
|
Deno146 = "deno-1.46",
|
|
35
38
|
Deno20 = "deno-2.0",
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare enum SupabaseMigrationResource {
|
|
2
|
+
User = "user",
|
|
3
|
+
Database = "database",
|
|
4
|
+
Table = "table",
|
|
5
|
+
Column = "column",
|
|
6
|
+
Index = "index",
|
|
7
|
+
Row = "row",
|
|
8
|
+
Document = "document",
|
|
9
|
+
Attribute = "attribute",
|
|
10
|
+
Collection = "collection",
|
|
11
|
+
Bucket = "bucket",
|
|
12
|
+
File = "file"
|
|
13
|
+
}
|