@appwrite.io/console 2.1.3 → 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 +8 -0
- package/README.md +1 -1
- package/dist/cjs/sdk.js +1564 -187
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +1565 -188
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +1564 -187
- 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 +1 -1
- package/src/channel.ts +8 -4
- package/src/client.ts +3 -28
- 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 +9 -1
- package/src/models.ts +349 -1
- 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/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 +5 -4
- 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 +9 -1
- package/types/models.d.ts +341 -1
- 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/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
package/dist/iife/sdk.js
CHANGED
|
@@ -4210,20 +4210,9 @@
|
|
|
4210
4210
|
|
|
4211
4211
|
const JSONbigParser = jsonBigint.exports({ storeAsString: false });
|
|
4212
4212
|
const JSONbigSerializer = jsonBigint.exports({ useNativeBigInt: true });
|
|
4213
|
-
/**
|
|
4214
|
-
* Converts BigNumber objects from json-bigint to native types.
|
|
4215
|
-
* - Integer BigNumbers → BigInt (if unsafe) or number (if safe)
|
|
4216
|
-
* - Float BigNumbers → number
|
|
4217
|
-
* - Strings remain strings (never converted to BigNumber by json-bigint)
|
|
4218
|
-
*/
|
|
4219
4213
|
const MAX_SAFE = BigInt(Number.MAX_SAFE_INTEGER);
|
|
4220
4214
|
const MIN_SAFE = BigInt(Number.MIN_SAFE_INTEGER);
|
|
4221
|
-
function
|
|
4222
|
-
if (value === null || value === undefined)
|
|
4223
|
-
return value;
|
|
4224
|
-
if (Array.isArray(value)) {
|
|
4225
|
-
return value.map(convertBigNumbers);
|
|
4226
|
-
}
|
|
4215
|
+
function reviver(_key, value) {
|
|
4227
4216
|
if (BigNumber$1.isBigNumber(value)) {
|
|
4228
4217
|
if (value.isInteger()) {
|
|
4229
4218
|
const str = value.toFixed();
|
|
@@ -4233,20 +4222,12 @@
|
|
|
4233
4222
|
}
|
|
4234
4223
|
return bi;
|
|
4235
4224
|
}
|
|
4236
|
-
// float
|
|
4237
4225
|
return value.toNumber();
|
|
4238
4226
|
}
|
|
4239
|
-
if (typeof value === 'object') {
|
|
4240
|
-
const result = {};
|
|
4241
|
-
for (const [k, v] of Object.entries(value)) {
|
|
4242
|
-
result[k] = convertBigNumbers(v);
|
|
4243
|
-
}
|
|
4244
|
-
return result;
|
|
4245
|
-
}
|
|
4246
4227
|
return value;
|
|
4247
4228
|
}
|
|
4248
4229
|
const JSONbig = {
|
|
4249
|
-
parse: (text) =>
|
|
4230
|
+
parse: (text) => JSONbigParser.parse(text, reviver),
|
|
4250
4231
|
stringify: JSONbigSerializer.stringify
|
|
4251
4232
|
};
|
|
4252
4233
|
/**
|
|
@@ -4298,7 +4279,7 @@
|
|
|
4298
4279
|
'x-sdk-name': 'Console',
|
|
4299
4280
|
'x-sdk-platform': 'console',
|
|
4300
4281
|
'x-sdk-language': 'web',
|
|
4301
|
-
'x-sdk-version': '2.
|
|
4282
|
+
'x-sdk-version': '2.2.0',
|
|
4302
4283
|
'X-Appwrite-Response-Format': '1.8.0',
|
|
4303
4284
|
};
|
|
4304
4285
|
this.realtime = {
|
|
@@ -5229,6 +5210,149 @@
|
|
|
5229
5210
|
};
|
|
5230
5211
|
return this.client.call('post', uri, apiHeaders, payload);
|
|
5231
5212
|
}
|
|
5213
|
+
listKeys(paramsOrFirst) {
|
|
5214
|
+
let params;
|
|
5215
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
5216
|
+
params = (paramsOrFirst || {});
|
|
5217
|
+
}
|
|
5218
|
+
else {
|
|
5219
|
+
params = {
|
|
5220
|
+
total: paramsOrFirst
|
|
5221
|
+
};
|
|
5222
|
+
}
|
|
5223
|
+
const total = params.total;
|
|
5224
|
+
const apiPath = '/account/keys';
|
|
5225
|
+
const payload = {};
|
|
5226
|
+
if (typeof total !== 'undefined') {
|
|
5227
|
+
payload['total'] = total;
|
|
5228
|
+
}
|
|
5229
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
5230
|
+
const apiHeaders = {};
|
|
5231
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
5232
|
+
}
|
|
5233
|
+
createKey(paramsOrFirst, ...rest) {
|
|
5234
|
+
let params;
|
|
5235
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
5236
|
+
params = (paramsOrFirst || {});
|
|
5237
|
+
}
|
|
5238
|
+
else {
|
|
5239
|
+
params = {
|
|
5240
|
+
name: paramsOrFirst,
|
|
5241
|
+
scopes: rest[0],
|
|
5242
|
+
expire: rest[1]
|
|
5243
|
+
};
|
|
5244
|
+
}
|
|
5245
|
+
const name = params.name;
|
|
5246
|
+
const scopes = params.scopes;
|
|
5247
|
+
const expire = params.expire;
|
|
5248
|
+
if (typeof name === 'undefined') {
|
|
5249
|
+
throw new AppwriteException('Missing required parameter: "name"');
|
|
5250
|
+
}
|
|
5251
|
+
if (typeof scopes === 'undefined') {
|
|
5252
|
+
throw new AppwriteException('Missing required parameter: "scopes"');
|
|
5253
|
+
}
|
|
5254
|
+
const apiPath = '/account/keys';
|
|
5255
|
+
const payload = {};
|
|
5256
|
+
if (typeof name !== 'undefined') {
|
|
5257
|
+
payload['name'] = name;
|
|
5258
|
+
}
|
|
5259
|
+
if (typeof scopes !== 'undefined') {
|
|
5260
|
+
payload['scopes'] = scopes;
|
|
5261
|
+
}
|
|
5262
|
+
if (typeof expire !== 'undefined') {
|
|
5263
|
+
payload['expire'] = expire;
|
|
5264
|
+
}
|
|
5265
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
5266
|
+
const apiHeaders = {
|
|
5267
|
+
'content-type': 'application/json',
|
|
5268
|
+
};
|
|
5269
|
+
return this.client.call('post', uri, apiHeaders, payload);
|
|
5270
|
+
}
|
|
5271
|
+
getKey(paramsOrFirst) {
|
|
5272
|
+
let params;
|
|
5273
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
5274
|
+
params = (paramsOrFirst || {});
|
|
5275
|
+
}
|
|
5276
|
+
else {
|
|
5277
|
+
params = {
|
|
5278
|
+
keyId: paramsOrFirst
|
|
5279
|
+
};
|
|
5280
|
+
}
|
|
5281
|
+
const keyId = params.keyId;
|
|
5282
|
+
if (typeof keyId === 'undefined') {
|
|
5283
|
+
throw new AppwriteException('Missing required parameter: "keyId"');
|
|
5284
|
+
}
|
|
5285
|
+
const apiPath = '/account/keys/{keyId}'.replace('{keyId}', keyId);
|
|
5286
|
+
const payload = {};
|
|
5287
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
5288
|
+
const apiHeaders = {};
|
|
5289
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
5290
|
+
}
|
|
5291
|
+
updateKey(paramsOrFirst, ...rest) {
|
|
5292
|
+
let params;
|
|
5293
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
5294
|
+
params = (paramsOrFirst || {});
|
|
5295
|
+
}
|
|
5296
|
+
else {
|
|
5297
|
+
params = {
|
|
5298
|
+
keyId: paramsOrFirst,
|
|
5299
|
+
name: rest[0],
|
|
5300
|
+
scopes: rest[1],
|
|
5301
|
+
expire: rest[2]
|
|
5302
|
+
};
|
|
5303
|
+
}
|
|
5304
|
+
const keyId = params.keyId;
|
|
5305
|
+
const name = params.name;
|
|
5306
|
+
const scopes = params.scopes;
|
|
5307
|
+
const expire = params.expire;
|
|
5308
|
+
if (typeof keyId === 'undefined') {
|
|
5309
|
+
throw new AppwriteException('Missing required parameter: "keyId"');
|
|
5310
|
+
}
|
|
5311
|
+
if (typeof name === 'undefined') {
|
|
5312
|
+
throw new AppwriteException('Missing required parameter: "name"');
|
|
5313
|
+
}
|
|
5314
|
+
if (typeof scopes === 'undefined') {
|
|
5315
|
+
throw new AppwriteException('Missing required parameter: "scopes"');
|
|
5316
|
+
}
|
|
5317
|
+
const apiPath = '/account/keys/{keyId}'.replace('{keyId}', keyId);
|
|
5318
|
+
const payload = {};
|
|
5319
|
+
if (typeof name !== 'undefined') {
|
|
5320
|
+
payload['name'] = name;
|
|
5321
|
+
}
|
|
5322
|
+
if (typeof scopes !== 'undefined') {
|
|
5323
|
+
payload['scopes'] = scopes;
|
|
5324
|
+
}
|
|
5325
|
+
if (typeof expire !== 'undefined') {
|
|
5326
|
+
payload['expire'] = expire;
|
|
5327
|
+
}
|
|
5328
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
5329
|
+
const apiHeaders = {
|
|
5330
|
+
'content-type': 'application/json',
|
|
5331
|
+
};
|
|
5332
|
+
return this.client.call('put', uri, apiHeaders, payload);
|
|
5333
|
+
}
|
|
5334
|
+
deleteKey(paramsOrFirst) {
|
|
5335
|
+
let params;
|
|
5336
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
5337
|
+
params = (paramsOrFirst || {});
|
|
5338
|
+
}
|
|
5339
|
+
else {
|
|
5340
|
+
params = {
|
|
5341
|
+
keyId: paramsOrFirst
|
|
5342
|
+
};
|
|
5343
|
+
}
|
|
5344
|
+
const keyId = params.keyId;
|
|
5345
|
+
if (typeof keyId === 'undefined') {
|
|
5346
|
+
throw new AppwriteException('Missing required parameter: "keyId"');
|
|
5347
|
+
}
|
|
5348
|
+
const apiPath = '/account/keys/{keyId}'.replace('{keyId}', keyId);
|
|
5349
|
+
const payload = {};
|
|
5350
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
5351
|
+
const apiHeaders = {
|
|
5352
|
+
'content-type': 'application/json',
|
|
5353
|
+
};
|
|
5354
|
+
return this.client.call('delete', uri, apiHeaders, payload);
|
|
5355
|
+
}
|
|
5232
5356
|
listLogs(paramsOrFirst, ...rest) {
|
|
5233
5357
|
let params;
|
|
5234
5358
|
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
@@ -7164,7 +7288,7 @@
|
|
|
7164
7288
|
}
|
|
7165
7289
|
createArchive(paramsOrFirst, ...rest) {
|
|
7166
7290
|
let params;
|
|
7167
|
-
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
7291
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && 'services' in paramsOrFirst)) {
|
|
7168
7292
|
params = (paramsOrFirst || {});
|
|
7169
7293
|
}
|
|
7170
7294
|
else {
|
|
@@ -7644,25 +7768,15 @@
|
|
|
7644
7768
|
};
|
|
7645
7769
|
return this.client.call('post', uri, apiHeaders, payload);
|
|
7646
7770
|
}
|
|
7647
|
-
|
|
7648
|
-
|
|
7649
|
-
|
|
7650
|
-
|
|
7651
|
-
|
|
7652
|
-
|
|
7653
|
-
|
|
7654
|
-
organizationId: paramsOrFirst
|
|
7655
|
-
};
|
|
7656
|
-
}
|
|
7657
|
-
const organizationId = params.organizationId;
|
|
7658
|
-
if (typeof organizationId === 'undefined') {
|
|
7659
|
-
throw new AppwriteException('Missing required parameter: "organizationId"');
|
|
7660
|
-
}
|
|
7771
|
+
/**
|
|
7772
|
+
* Get all available regions for the console.
|
|
7773
|
+
*
|
|
7774
|
+
* @throws {AppwriteException}
|
|
7775
|
+
* @returns {Promise<Models.ConsoleRegionList>}
|
|
7776
|
+
*/
|
|
7777
|
+
listRegions() {
|
|
7661
7778
|
const apiPath = '/console/regions';
|
|
7662
7779
|
const payload = {};
|
|
7663
|
-
if (typeof organizationId !== 'undefined') {
|
|
7664
|
-
payload['organizationId'] = organizationId;
|
|
7665
|
-
}
|
|
7666
7780
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
7667
7781
|
const apiHeaders = {};
|
|
7668
7782
|
return this.client.call('get', uri, apiHeaders, payload);
|
|
@@ -8115,9 +8229,6 @@
|
|
|
8115
8229
|
if (typeof databaseId === 'undefined') {
|
|
8116
8230
|
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
8117
8231
|
}
|
|
8118
|
-
if (typeof name === 'undefined') {
|
|
8119
|
-
throw new AppwriteException('Missing required parameter: "name"');
|
|
8120
|
-
}
|
|
8121
8232
|
const apiPath = '/databases/{databaseId}'.replace('{databaseId}', databaseId);
|
|
8122
8233
|
const payload = {};
|
|
8123
8234
|
if (typeof name !== 'undefined') {
|
|
@@ -8304,9 +8415,6 @@
|
|
|
8304
8415
|
if (typeof collectionId === 'undefined') {
|
|
8305
8416
|
throw new AppwriteException('Missing required parameter: "collectionId"');
|
|
8306
8417
|
}
|
|
8307
|
-
if (typeof name === 'undefined') {
|
|
8308
|
-
throw new AppwriteException('Missing required parameter: "name"');
|
|
8309
|
-
}
|
|
8310
8418
|
const apiPath = '/databases/{databaseId}/collections/{collectionId}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);
|
|
8311
8419
|
const payload = {};
|
|
8312
8420
|
if (typeof name !== 'undefined') {
|
|
@@ -9285,7 +9393,7 @@
|
|
|
9285
9393
|
};
|
|
9286
9394
|
return this.client.call('patch', uri, apiHeaders, payload);
|
|
9287
9395
|
}
|
|
9288
|
-
|
|
9396
|
+
createLongtextAttribute(paramsOrFirst, ...rest) {
|
|
9289
9397
|
let params;
|
|
9290
9398
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
9291
9399
|
params = (paramsOrFirst || {});
|
|
@@ -9296,7 +9404,8 @@
|
|
|
9296
9404
|
collectionId: rest[0],
|
|
9297
9405
|
key: rest[1],
|
|
9298
9406
|
required: rest[2],
|
|
9299
|
-
xdefault: rest[3]
|
|
9407
|
+
xdefault: rest[3],
|
|
9408
|
+
array: rest[4]
|
|
9300
9409
|
};
|
|
9301
9410
|
}
|
|
9302
9411
|
const databaseId = params.databaseId;
|
|
@@ -9304,6 +9413,7 @@
|
|
|
9304
9413
|
const key = params.key;
|
|
9305
9414
|
const required = params.required;
|
|
9306
9415
|
const xdefault = params.xdefault;
|
|
9416
|
+
const array = params.array;
|
|
9307
9417
|
if (typeof databaseId === 'undefined') {
|
|
9308
9418
|
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
9309
9419
|
}
|
|
@@ -9316,7 +9426,7 @@
|
|
|
9316
9426
|
if (typeof required === 'undefined') {
|
|
9317
9427
|
throw new AppwriteException('Missing required parameter: "required"');
|
|
9318
9428
|
}
|
|
9319
|
-
const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/
|
|
9429
|
+
const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/longtext'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);
|
|
9320
9430
|
const payload = {};
|
|
9321
9431
|
if (typeof key !== 'undefined') {
|
|
9322
9432
|
payload['key'] = key;
|
|
@@ -9327,13 +9437,16 @@
|
|
|
9327
9437
|
if (typeof xdefault !== 'undefined') {
|
|
9328
9438
|
payload['default'] = xdefault;
|
|
9329
9439
|
}
|
|
9440
|
+
if (typeof array !== 'undefined') {
|
|
9441
|
+
payload['array'] = array;
|
|
9442
|
+
}
|
|
9330
9443
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
9331
9444
|
const apiHeaders = {
|
|
9332
9445
|
'content-type': 'application/json',
|
|
9333
9446
|
};
|
|
9334
9447
|
return this.client.call('post', uri, apiHeaders, payload);
|
|
9335
9448
|
}
|
|
9336
|
-
|
|
9449
|
+
updateLongtextAttribute(paramsOrFirst, ...rest) {
|
|
9337
9450
|
let params;
|
|
9338
9451
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
9339
9452
|
params = (paramsOrFirst || {});
|
|
@@ -9366,7 +9479,10 @@
|
|
|
9366
9479
|
if (typeof required === 'undefined') {
|
|
9367
9480
|
throw new AppwriteException('Missing required parameter: "required"');
|
|
9368
9481
|
}
|
|
9369
|
-
|
|
9482
|
+
if (typeof xdefault === 'undefined') {
|
|
9483
|
+
throw new AppwriteException('Missing required parameter: "xdefault"');
|
|
9484
|
+
}
|
|
9485
|
+
const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/longtext/{key}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{key}', key);
|
|
9370
9486
|
const payload = {};
|
|
9371
9487
|
if (typeof required !== 'undefined') {
|
|
9372
9488
|
payload['required'] = required;
|
|
@@ -9383,7 +9499,7 @@
|
|
|
9383
9499
|
};
|
|
9384
9500
|
return this.client.call('patch', uri, apiHeaders, payload);
|
|
9385
9501
|
}
|
|
9386
|
-
|
|
9502
|
+
createMediumtextAttribute(paramsOrFirst, ...rest) {
|
|
9387
9503
|
let params;
|
|
9388
9504
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
9389
9505
|
params = (paramsOrFirst || {});
|
|
@@ -9394,7 +9510,8 @@
|
|
|
9394
9510
|
collectionId: rest[0],
|
|
9395
9511
|
key: rest[1],
|
|
9396
9512
|
required: rest[2],
|
|
9397
|
-
xdefault: rest[3]
|
|
9513
|
+
xdefault: rest[3],
|
|
9514
|
+
array: rest[4]
|
|
9398
9515
|
};
|
|
9399
9516
|
}
|
|
9400
9517
|
const databaseId = params.databaseId;
|
|
@@ -9402,6 +9519,7 @@
|
|
|
9402
9519
|
const key = params.key;
|
|
9403
9520
|
const required = params.required;
|
|
9404
9521
|
const xdefault = params.xdefault;
|
|
9522
|
+
const array = params.array;
|
|
9405
9523
|
if (typeof databaseId === 'undefined') {
|
|
9406
9524
|
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
9407
9525
|
}
|
|
@@ -9414,7 +9532,7 @@
|
|
|
9414
9532
|
if (typeof required === 'undefined') {
|
|
9415
9533
|
throw new AppwriteException('Missing required parameter: "required"');
|
|
9416
9534
|
}
|
|
9417
|
-
const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/
|
|
9535
|
+
const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/mediumtext'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);
|
|
9418
9536
|
const payload = {};
|
|
9419
9537
|
if (typeof key !== 'undefined') {
|
|
9420
9538
|
payload['key'] = key;
|
|
@@ -9425,13 +9543,16 @@
|
|
|
9425
9543
|
if (typeof xdefault !== 'undefined') {
|
|
9426
9544
|
payload['default'] = xdefault;
|
|
9427
9545
|
}
|
|
9546
|
+
if (typeof array !== 'undefined') {
|
|
9547
|
+
payload['array'] = array;
|
|
9548
|
+
}
|
|
9428
9549
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
9429
9550
|
const apiHeaders = {
|
|
9430
9551
|
'content-type': 'application/json',
|
|
9431
9552
|
};
|
|
9432
9553
|
return this.client.call('post', uri, apiHeaders, payload);
|
|
9433
9554
|
}
|
|
9434
|
-
|
|
9555
|
+
updateMediumtextAttribute(paramsOrFirst, ...rest) {
|
|
9435
9556
|
let params;
|
|
9436
9557
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
9437
9558
|
params = (paramsOrFirst || {});
|
|
@@ -9464,7 +9585,10 @@
|
|
|
9464
9585
|
if (typeof required === 'undefined') {
|
|
9465
9586
|
throw new AppwriteException('Missing required parameter: "required"');
|
|
9466
9587
|
}
|
|
9467
|
-
|
|
9588
|
+
if (typeof xdefault === 'undefined') {
|
|
9589
|
+
throw new AppwriteException('Missing required parameter: "xdefault"');
|
|
9590
|
+
}
|
|
9591
|
+
const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/mediumtext/{key}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{key}', key);
|
|
9468
9592
|
const payload = {};
|
|
9469
9593
|
if (typeof required !== 'undefined') {
|
|
9470
9594
|
payload['required'] = required;
|
|
@@ -9481,7 +9605,7 @@
|
|
|
9481
9605
|
};
|
|
9482
9606
|
return this.client.call('patch', uri, apiHeaders, payload);
|
|
9483
9607
|
}
|
|
9484
|
-
|
|
9608
|
+
createPointAttribute(paramsOrFirst, ...rest) {
|
|
9485
9609
|
let params;
|
|
9486
9610
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
9487
9611
|
params = (paramsOrFirst || {});
|
|
@@ -9490,61 +9614,487 @@
|
|
|
9490
9614
|
params = {
|
|
9491
9615
|
databaseId: paramsOrFirst,
|
|
9492
9616
|
collectionId: rest[0],
|
|
9493
|
-
|
|
9494
|
-
|
|
9495
|
-
|
|
9496
|
-
key: rest[4],
|
|
9497
|
-
twoWayKey: rest[5],
|
|
9498
|
-
onDelete: rest[6]
|
|
9617
|
+
key: rest[1],
|
|
9618
|
+
required: rest[2],
|
|
9619
|
+
xdefault: rest[3]
|
|
9499
9620
|
};
|
|
9500
9621
|
}
|
|
9501
9622
|
const databaseId = params.databaseId;
|
|
9502
9623
|
const collectionId = params.collectionId;
|
|
9503
|
-
const relatedCollectionId = params.relatedCollectionId;
|
|
9504
|
-
const type = params.type;
|
|
9505
|
-
const twoWay = params.twoWay;
|
|
9506
9624
|
const key = params.key;
|
|
9507
|
-
const
|
|
9508
|
-
const
|
|
9625
|
+
const required = params.required;
|
|
9626
|
+
const xdefault = params.xdefault;
|
|
9509
9627
|
if (typeof databaseId === 'undefined') {
|
|
9510
9628
|
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
9511
9629
|
}
|
|
9512
9630
|
if (typeof collectionId === 'undefined') {
|
|
9513
9631
|
throw new AppwriteException('Missing required parameter: "collectionId"');
|
|
9514
9632
|
}
|
|
9515
|
-
if (typeof
|
|
9516
|
-
throw new AppwriteException('Missing required parameter: "
|
|
9633
|
+
if (typeof key === 'undefined') {
|
|
9634
|
+
throw new AppwriteException('Missing required parameter: "key"');
|
|
9517
9635
|
}
|
|
9518
|
-
if (typeof
|
|
9519
|
-
throw new AppwriteException('Missing required parameter: "
|
|
9636
|
+
if (typeof required === 'undefined') {
|
|
9637
|
+
throw new AppwriteException('Missing required parameter: "required"');
|
|
9520
9638
|
}
|
|
9521
|
-
const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/
|
|
9639
|
+
const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/point'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);
|
|
9522
9640
|
const payload = {};
|
|
9523
|
-
if (typeof
|
|
9524
|
-
payload['
|
|
9641
|
+
if (typeof key !== 'undefined') {
|
|
9642
|
+
payload['key'] = key;
|
|
9643
|
+
}
|
|
9644
|
+
if (typeof required !== 'undefined') {
|
|
9645
|
+
payload['required'] = required;
|
|
9646
|
+
}
|
|
9647
|
+
if (typeof xdefault !== 'undefined') {
|
|
9648
|
+
payload['default'] = xdefault;
|
|
9649
|
+
}
|
|
9650
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
9651
|
+
const apiHeaders = {
|
|
9652
|
+
'content-type': 'application/json',
|
|
9653
|
+
};
|
|
9654
|
+
return this.client.call('post', uri, apiHeaders, payload);
|
|
9655
|
+
}
|
|
9656
|
+
updatePointAttribute(paramsOrFirst, ...rest) {
|
|
9657
|
+
let params;
|
|
9658
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
9659
|
+
params = (paramsOrFirst || {});
|
|
9660
|
+
}
|
|
9661
|
+
else {
|
|
9662
|
+
params = {
|
|
9663
|
+
databaseId: paramsOrFirst,
|
|
9664
|
+
collectionId: rest[0],
|
|
9665
|
+
key: rest[1],
|
|
9666
|
+
required: rest[2],
|
|
9667
|
+
xdefault: rest[3],
|
|
9668
|
+
newKey: rest[4]
|
|
9669
|
+
};
|
|
9670
|
+
}
|
|
9671
|
+
const databaseId = params.databaseId;
|
|
9672
|
+
const collectionId = params.collectionId;
|
|
9673
|
+
const key = params.key;
|
|
9674
|
+
const required = params.required;
|
|
9675
|
+
const xdefault = params.xdefault;
|
|
9676
|
+
const newKey = params.newKey;
|
|
9677
|
+
if (typeof databaseId === 'undefined') {
|
|
9678
|
+
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
9679
|
+
}
|
|
9680
|
+
if (typeof collectionId === 'undefined') {
|
|
9681
|
+
throw new AppwriteException('Missing required parameter: "collectionId"');
|
|
9682
|
+
}
|
|
9683
|
+
if (typeof key === 'undefined') {
|
|
9684
|
+
throw new AppwriteException('Missing required parameter: "key"');
|
|
9685
|
+
}
|
|
9686
|
+
if (typeof required === 'undefined') {
|
|
9687
|
+
throw new AppwriteException('Missing required parameter: "required"');
|
|
9688
|
+
}
|
|
9689
|
+
const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/point/{key}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{key}', key);
|
|
9690
|
+
const payload = {};
|
|
9691
|
+
if (typeof required !== 'undefined') {
|
|
9692
|
+
payload['required'] = required;
|
|
9693
|
+
}
|
|
9694
|
+
if (typeof xdefault !== 'undefined') {
|
|
9695
|
+
payload['default'] = xdefault;
|
|
9696
|
+
}
|
|
9697
|
+
if (typeof newKey !== 'undefined') {
|
|
9698
|
+
payload['newKey'] = newKey;
|
|
9699
|
+
}
|
|
9700
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
9701
|
+
const apiHeaders = {
|
|
9702
|
+
'content-type': 'application/json',
|
|
9703
|
+
};
|
|
9704
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
9705
|
+
}
|
|
9706
|
+
createPolygonAttribute(paramsOrFirst, ...rest) {
|
|
9707
|
+
let params;
|
|
9708
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
9709
|
+
params = (paramsOrFirst || {});
|
|
9710
|
+
}
|
|
9711
|
+
else {
|
|
9712
|
+
params = {
|
|
9713
|
+
databaseId: paramsOrFirst,
|
|
9714
|
+
collectionId: rest[0],
|
|
9715
|
+
key: rest[1],
|
|
9716
|
+
required: rest[2],
|
|
9717
|
+
xdefault: rest[3]
|
|
9718
|
+
};
|
|
9719
|
+
}
|
|
9720
|
+
const databaseId = params.databaseId;
|
|
9721
|
+
const collectionId = params.collectionId;
|
|
9722
|
+
const key = params.key;
|
|
9723
|
+
const required = params.required;
|
|
9724
|
+
const xdefault = params.xdefault;
|
|
9725
|
+
if (typeof databaseId === 'undefined') {
|
|
9726
|
+
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
9727
|
+
}
|
|
9728
|
+
if (typeof collectionId === 'undefined') {
|
|
9729
|
+
throw new AppwriteException('Missing required parameter: "collectionId"');
|
|
9730
|
+
}
|
|
9731
|
+
if (typeof key === 'undefined') {
|
|
9732
|
+
throw new AppwriteException('Missing required parameter: "key"');
|
|
9733
|
+
}
|
|
9734
|
+
if (typeof required === 'undefined') {
|
|
9735
|
+
throw new AppwriteException('Missing required parameter: "required"');
|
|
9736
|
+
}
|
|
9737
|
+
const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/polygon'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);
|
|
9738
|
+
const payload = {};
|
|
9739
|
+
if (typeof key !== 'undefined') {
|
|
9740
|
+
payload['key'] = key;
|
|
9741
|
+
}
|
|
9742
|
+
if (typeof required !== 'undefined') {
|
|
9743
|
+
payload['required'] = required;
|
|
9744
|
+
}
|
|
9745
|
+
if (typeof xdefault !== 'undefined') {
|
|
9746
|
+
payload['default'] = xdefault;
|
|
9747
|
+
}
|
|
9748
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
9749
|
+
const apiHeaders = {
|
|
9750
|
+
'content-type': 'application/json',
|
|
9751
|
+
};
|
|
9752
|
+
return this.client.call('post', uri, apiHeaders, payload);
|
|
9753
|
+
}
|
|
9754
|
+
updatePolygonAttribute(paramsOrFirst, ...rest) {
|
|
9755
|
+
let params;
|
|
9756
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
9757
|
+
params = (paramsOrFirst || {});
|
|
9758
|
+
}
|
|
9759
|
+
else {
|
|
9760
|
+
params = {
|
|
9761
|
+
databaseId: paramsOrFirst,
|
|
9762
|
+
collectionId: rest[0],
|
|
9763
|
+
key: rest[1],
|
|
9764
|
+
required: rest[2],
|
|
9765
|
+
xdefault: rest[3],
|
|
9766
|
+
newKey: rest[4]
|
|
9767
|
+
};
|
|
9768
|
+
}
|
|
9769
|
+
const databaseId = params.databaseId;
|
|
9770
|
+
const collectionId = params.collectionId;
|
|
9771
|
+
const key = params.key;
|
|
9772
|
+
const required = params.required;
|
|
9773
|
+
const xdefault = params.xdefault;
|
|
9774
|
+
const newKey = params.newKey;
|
|
9775
|
+
if (typeof databaseId === 'undefined') {
|
|
9776
|
+
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
9777
|
+
}
|
|
9778
|
+
if (typeof collectionId === 'undefined') {
|
|
9779
|
+
throw new AppwriteException('Missing required parameter: "collectionId"');
|
|
9780
|
+
}
|
|
9781
|
+
if (typeof key === 'undefined') {
|
|
9782
|
+
throw new AppwriteException('Missing required parameter: "key"');
|
|
9783
|
+
}
|
|
9784
|
+
if (typeof required === 'undefined') {
|
|
9785
|
+
throw new AppwriteException('Missing required parameter: "required"');
|
|
9786
|
+
}
|
|
9787
|
+
const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/polygon/{key}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{key}', key);
|
|
9788
|
+
const payload = {};
|
|
9789
|
+
if (typeof required !== 'undefined') {
|
|
9790
|
+
payload['required'] = required;
|
|
9791
|
+
}
|
|
9792
|
+
if (typeof xdefault !== 'undefined') {
|
|
9793
|
+
payload['default'] = xdefault;
|
|
9794
|
+
}
|
|
9795
|
+
if (typeof newKey !== 'undefined') {
|
|
9796
|
+
payload['newKey'] = newKey;
|
|
9797
|
+
}
|
|
9798
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
9799
|
+
const apiHeaders = {
|
|
9800
|
+
'content-type': 'application/json',
|
|
9801
|
+
};
|
|
9802
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
9803
|
+
}
|
|
9804
|
+
createRelationshipAttribute(paramsOrFirst, ...rest) {
|
|
9805
|
+
let params;
|
|
9806
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
9807
|
+
params = (paramsOrFirst || {});
|
|
9808
|
+
}
|
|
9809
|
+
else {
|
|
9810
|
+
params = {
|
|
9811
|
+
databaseId: paramsOrFirst,
|
|
9812
|
+
collectionId: rest[0],
|
|
9813
|
+
relatedCollectionId: rest[1],
|
|
9814
|
+
type: rest[2],
|
|
9815
|
+
twoWay: rest[3],
|
|
9816
|
+
key: rest[4],
|
|
9817
|
+
twoWayKey: rest[5],
|
|
9818
|
+
onDelete: rest[6]
|
|
9819
|
+
};
|
|
9820
|
+
}
|
|
9821
|
+
const databaseId = params.databaseId;
|
|
9822
|
+
const collectionId = params.collectionId;
|
|
9823
|
+
const relatedCollectionId = params.relatedCollectionId;
|
|
9824
|
+
const type = params.type;
|
|
9825
|
+
const twoWay = params.twoWay;
|
|
9826
|
+
const key = params.key;
|
|
9827
|
+
const twoWayKey = params.twoWayKey;
|
|
9828
|
+
const onDelete = params.onDelete;
|
|
9829
|
+
if (typeof databaseId === 'undefined') {
|
|
9830
|
+
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
9831
|
+
}
|
|
9832
|
+
if (typeof collectionId === 'undefined') {
|
|
9833
|
+
throw new AppwriteException('Missing required parameter: "collectionId"');
|
|
9834
|
+
}
|
|
9835
|
+
if (typeof relatedCollectionId === 'undefined') {
|
|
9836
|
+
throw new AppwriteException('Missing required parameter: "relatedCollectionId"');
|
|
9837
|
+
}
|
|
9838
|
+
if (typeof type === 'undefined') {
|
|
9839
|
+
throw new AppwriteException('Missing required parameter: "type"');
|
|
9840
|
+
}
|
|
9841
|
+
const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/relationship'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);
|
|
9842
|
+
const payload = {};
|
|
9843
|
+
if (typeof relatedCollectionId !== 'undefined') {
|
|
9844
|
+
payload['relatedCollectionId'] = relatedCollectionId;
|
|
9845
|
+
}
|
|
9846
|
+
if (typeof type !== 'undefined') {
|
|
9847
|
+
payload['type'] = type;
|
|
9848
|
+
}
|
|
9849
|
+
if (typeof twoWay !== 'undefined') {
|
|
9850
|
+
payload['twoWay'] = twoWay;
|
|
9851
|
+
}
|
|
9852
|
+
if (typeof key !== 'undefined') {
|
|
9853
|
+
payload['key'] = key;
|
|
9854
|
+
}
|
|
9855
|
+
if (typeof twoWayKey !== 'undefined') {
|
|
9856
|
+
payload['twoWayKey'] = twoWayKey;
|
|
9857
|
+
}
|
|
9858
|
+
if (typeof onDelete !== 'undefined') {
|
|
9859
|
+
payload['onDelete'] = onDelete;
|
|
9860
|
+
}
|
|
9861
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
9862
|
+
const apiHeaders = {
|
|
9863
|
+
'content-type': 'application/json',
|
|
9864
|
+
};
|
|
9865
|
+
return this.client.call('post', uri, apiHeaders, payload);
|
|
9866
|
+
}
|
|
9867
|
+
createStringAttribute(paramsOrFirst, ...rest) {
|
|
9868
|
+
let params;
|
|
9869
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
9870
|
+
params = (paramsOrFirst || {});
|
|
9871
|
+
}
|
|
9872
|
+
else {
|
|
9873
|
+
params = {
|
|
9874
|
+
databaseId: paramsOrFirst,
|
|
9875
|
+
collectionId: rest[0],
|
|
9876
|
+
key: rest[1],
|
|
9877
|
+
size: rest[2],
|
|
9878
|
+
required: rest[3],
|
|
9879
|
+
xdefault: rest[4],
|
|
9880
|
+
array: rest[5],
|
|
9881
|
+
encrypt: rest[6]
|
|
9882
|
+
};
|
|
9883
|
+
}
|
|
9884
|
+
const databaseId = params.databaseId;
|
|
9885
|
+
const collectionId = params.collectionId;
|
|
9886
|
+
const key = params.key;
|
|
9887
|
+
const size = params.size;
|
|
9888
|
+
const required = params.required;
|
|
9889
|
+
const xdefault = params.xdefault;
|
|
9890
|
+
const array = params.array;
|
|
9891
|
+
const encrypt = params.encrypt;
|
|
9892
|
+
if (typeof databaseId === 'undefined') {
|
|
9893
|
+
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
9894
|
+
}
|
|
9895
|
+
if (typeof collectionId === 'undefined') {
|
|
9896
|
+
throw new AppwriteException('Missing required parameter: "collectionId"');
|
|
9897
|
+
}
|
|
9898
|
+
if (typeof key === 'undefined') {
|
|
9899
|
+
throw new AppwriteException('Missing required parameter: "key"');
|
|
9900
|
+
}
|
|
9901
|
+
if (typeof size === 'undefined') {
|
|
9902
|
+
throw new AppwriteException('Missing required parameter: "size"');
|
|
9903
|
+
}
|
|
9904
|
+
if (typeof required === 'undefined') {
|
|
9905
|
+
throw new AppwriteException('Missing required parameter: "required"');
|
|
9906
|
+
}
|
|
9907
|
+
const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/string'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);
|
|
9908
|
+
const payload = {};
|
|
9909
|
+
if (typeof key !== 'undefined') {
|
|
9910
|
+
payload['key'] = key;
|
|
9911
|
+
}
|
|
9912
|
+
if (typeof size !== 'undefined') {
|
|
9913
|
+
payload['size'] = size;
|
|
9914
|
+
}
|
|
9915
|
+
if (typeof required !== 'undefined') {
|
|
9916
|
+
payload['required'] = required;
|
|
9917
|
+
}
|
|
9918
|
+
if (typeof xdefault !== 'undefined') {
|
|
9919
|
+
payload['default'] = xdefault;
|
|
9920
|
+
}
|
|
9921
|
+
if (typeof array !== 'undefined') {
|
|
9922
|
+
payload['array'] = array;
|
|
9923
|
+
}
|
|
9924
|
+
if (typeof encrypt !== 'undefined') {
|
|
9925
|
+
payload['encrypt'] = encrypt;
|
|
9926
|
+
}
|
|
9927
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
9928
|
+
const apiHeaders = {
|
|
9929
|
+
'content-type': 'application/json',
|
|
9930
|
+
};
|
|
9931
|
+
return this.client.call('post', uri, apiHeaders, payload);
|
|
9932
|
+
}
|
|
9933
|
+
updateStringAttribute(paramsOrFirst, ...rest) {
|
|
9934
|
+
let params;
|
|
9935
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
9936
|
+
params = (paramsOrFirst || {});
|
|
9937
|
+
}
|
|
9938
|
+
else {
|
|
9939
|
+
params = {
|
|
9940
|
+
databaseId: paramsOrFirst,
|
|
9941
|
+
collectionId: rest[0],
|
|
9942
|
+
key: rest[1],
|
|
9943
|
+
required: rest[2],
|
|
9944
|
+
xdefault: rest[3],
|
|
9945
|
+
size: rest[4],
|
|
9946
|
+
newKey: rest[5]
|
|
9947
|
+
};
|
|
9948
|
+
}
|
|
9949
|
+
const databaseId = params.databaseId;
|
|
9950
|
+
const collectionId = params.collectionId;
|
|
9951
|
+
const key = params.key;
|
|
9952
|
+
const required = params.required;
|
|
9953
|
+
const xdefault = params.xdefault;
|
|
9954
|
+
const size = params.size;
|
|
9955
|
+
const newKey = params.newKey;
|
|
9956
|
+
if (typeof databaseId === 'undefined') {
|
|
9957
|
+
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
9958
|
+
}
|
|
9959
|
+
if (typeof collectionId === 'undefined') {
|
|
9960
|
+
throw new AppwriteException('Missing required parameter: "collectionId"');
|
|
9961
|
+
}
|
|
9962
|
+
if (typeof key === 'undefined') {
|
|
9963
|
+
throw new AppwriteException('Missing required parameter: "key"');
|
|
9964
|
+
}
|
|
9965
|
+
if (typeof required === 'undefined') {
|
|
9966
|
+
throw new AppwriteException('Missing required parameter: "required"');
|
|
9967
|
+
}
|
|
9968
|
+
if (typeof xdefault === 'undefined') {
|
|
9969
|
+
throw new AppwriteException('Missing required parameter: "xdefault"');
|
|
9970
|
+
}
|
|
9971
|
+
const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/string/{key}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{key}', key);
|
|
9972
|
+
const payload = {};
|
|
9973
|
+
if (typeof required !== 'undefined') {
|
|
9974
|
+
payload['required'] = required;
|
|
9975
|
+
}
|
|
9976
|
+
if (typeof xdefault !== 'undefined') {
|
|
9977
|
+
payload['default'] = xdefault;
|
|
9978
|
+
}
|
|
9979
|
+
if (typeof size !== 'undefined') {
|
|
9980
|
+
payload['size'] = size;
|
|
9981
|
+
}
|
|
9982
|
+
if (typeof newKey !== 'undefined') {
|
|
9983
|
+
payload['newKey'] = newKey;
|
|
9984
|
+
}
|
|
9985
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
9986
|
+
const apiHeaders = {
|
|
9987
|
+
'content-type': 'application/json',
|
|
9988
|
+
};
|
|
9989
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
9990
|
+
}
|
|
9991
|
+
createTextAttribute(paramsOrFirst, ...rest) {
|
|
9992
|
+
let params;
|
|
9993
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
9994
|
+
params = (paramsOrFirst || {});
|
|
9995
|
+
}
|
|
9996
|
+
else {
|
|
9997
|
+
params = {
|
|
9998
|
+
databaseId: paramsOrFirst,
|
|
9999
|
+
collectionId: rest[0],
|
|
10000
|
+
key: rest[1],
|
|
10001
|
+
required: rest[2],
|
|
10002
|
+
xdefault: rest[3],
|
|
10003
|
+
array: rest[4]
|
|
10004
|
+
};
|
|
10005
|
+
}
|
|
10006
|
+
const databaseId = params.databaseId;
|
|
10007
|
+
const collectionId = params.collectionId;
|
|
10008
|
+
const key = params.key;
|
|
10009
|
+
const required = params.required;
|
|
10010
|
+
const xdefault = params.xdefault;
|
|
10011
|
+
const array = params.array;
|
|
10012
|
+
if (typeof databaseId === 'undefined') {
|
|
10013
|
+
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
10014
|
+
}
|
|
10015
|
+
if (typeof collectionId === 'undefined') {
|
|
10016
|
+
throw new AppwriteException('Missing required parameter: "collectionId"');
|
|
10017
|
+
}
|
|
10018
|
+
if (typeof key === 'undefined') {
|
|
10019
|
+
throw new AppwriteException('Missing required parameter: "key"');
|
|
10020
|
+
}
|
|
10021
|
+
if (typeof required === 'undefined') {
|
|
10022
|
+
throw new AppwriteException('Missing required parameter: "required"');
|
|
10023
|
+
}
|
|
10024
|
+
const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/text'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);
|
|
10025
|
+
const payload = {};
|
|
10026
|
+
if (typeof key !== 'undefined') {
|
|
10027
|
+
payload['key'] = key;
|
|
10028
|
+
}
|
|
10029
|
+
if (typeof required !== 'undefined') {
|
|
10030
|
+
payload['required'] = required;
|
|
10031
|
+
}
|
|
10032
|
+
if (typeof xdefault !== 'undefined') {
|
|
10033
|
+
payload['default'] = xdefault;
|
|
10034
|
+
}
|
|
10035
|
+
if (typeof array !== 'undefined') {
|
|
10036
|
+
payload['array'] = array;
|
|
10037
|
+
}
|
|
10038
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
10039
|
+
const apiHeaders = {
|
|
10040
|
+
'content-type': 'application/json',
|
|
10041
|
+
};
|
|
10042
|
+
return this.client.call('post', uri, apiHeaders, payload);
|
|
10043
|
+
}
|
|
10044
|
+
updateTextAttribute(paramsOrFirst, ...rest) {
|
|
10045
|
+
let params;
|
|
10046
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
10047
|
+
params = (paramsOrFirst || {});
|
|
10048
|
+
}
|
|
10049
|
+
else {
|
|
10050
|
+
params = {
|
|
10051
|
+
databaseId: paramsOrFirst,
|
|
10052
|
+
collectionId: rest[0],
|
|
10053
|
+
key: rest[1],
|
|
10054
|
+
required: rest[2],
|
|
10055
|
+
xdefault: rest[3],
|
|
10056
|
+
newKey: rest[4]
|
|
10057
|
+
};
|
|
10058
|
+
}
|
|
10059
|
+
const databaseId = params.databaseId;
|
|
10060
|
+
const collectionId = params.collectionId;
|
|
10061
|
+
const key = params.key;
|
|
10062
|
+
const required = params.required;
|
|
10063
|
+
const xdefault = params.xdefault;
|
|
10064
|
+
const newKey = params.newKey;
|
|
10065
|
+
if (typeof databaseId === 'undefined') {
|
|
10066
|
+
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
10067
|
+
}
|
|
10068
|
+
if (typeof collectionId === 'undefined') {
|
|
10069
|
+
throw new AppwriteException('Missing required parameter: "collectionId"');
|
|
10070
|
+
}
|
|
10071
|
+
if (typeof key === 'undefined') {
|
|
10072
|
+
throw new AppwriteException('Missing required parameter: "key"');
|
|
9525
10073
|
}
|
|
9526
|
-
if (typeof
|
|
9527
|
-
|
|
10074
|
+
if (typeof required === 'undefined') {
|
|
10075
|
+
throw new AppwriteException('Missing required parameter: "required"');
|
|
9528
10076
|
}
|
|
9529
|
-
if (typeof
|
|
9530
|
-
|
|
10077
|
+
if (typeof xdefault === 'undefined') {
|
|
10078
|
+
throw new AppwriteException('Missing required parameter: "xdefault"');
|
|
9531
10079
|
}
|
|
9532
|
-
|
|
9533
|
-
|
|
10080
|
+
const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/text/{key}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{key}', key);
|
|
10081
|
+
const payload = {};
|
|
10082
|
+
if (typeof required !== 'undefined') {
|
|
10083
|
+
payload['required'] = required;
|
|
9534
10084
|
}
|
|
9535
|
-
if (typeof
|
|
9536
|
-
payload['
|
|
10085
|
+
if (typeof xdefault !== 'undefined') {
|
|
10086
|
+
payload['default'] = xdefault;
|
|
9537
10087
|
}
|
|
9538
|
-
if (typeof
|
|
9539
|
-
payload['
|
|
10088
|
+
if (typeof newKey !== 'undefined') {
|
|
10089
|
+
payload['newKey'] = newKey;
|
|
9540
10090
|
}
|
|
9541
10091
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
9542
10092
|
const apiHeaders = {
|
|
9543
10093
|
'content-type': 'application/json',
|
|
9544
10094
|
};
|
|
9545
|
-
return this.client.call('
|
|
10095
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
9546
10096
|
}
|
|
9547
|
-
|
|
10097
|
+
createUrlAttribute(paramsOrFirst, ...rest) {
|
|
9548
10098
|
let params;
|
|
9549
10099
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
9550
10100
|
params = (paramsOrFirst || {});
|
|
@@ -9554,21 +10104,17 @@
|
|
|
9554
10104
|
databaseId: paramsOrFirst,
|
|
9555
10105
|
collectionId: rest[0],
|
|
9556
10106
|
key: rest[1],
|
|
9557
|
-
|
|
9558
|
-
|
|
9559
|
-
|
|
9560
|
-
array: rest[5],
|
|
9561
|
-
encrypt: rest[6]
|
|
10107
|
+
required: rest[2],
|
|
10108
|
+
xdefault: rest[3],
|
|
10109
|
+
array: rest[4]
|
|
9562
10110
|
};
|
|
9563
10111
|
}
|
|
9564
10112
|
const databaseId = params.databaseId;
|
|
9565
10113
|
const collectionId = params.collectionId;
|
|
9566
10114
|
const key = params.key;
|
|
9567
|
-
const size = params.size;
|
|
9568
10115
|
const required = params.required;
|
|
9569
10116
|
const xdefault = params.xdefault;
|
|
9570
10117
|
const array = params.array;
|
|
9571
|
-
const encrypt = params.encrypt;
|
|
9572
10118
|
if (typeof databaseId === 'undefined') {
|
|
9573
10119
|
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
9574
10120
|
}
|
|
@@ -9578,20 +10124,14 @@
|
|
|
9578
10124
|
if (typeof key === 'undefined') {
|
|
9579
10125
|
throw new AppwriteException('Missing required parameter: "key"');
|
|
9580
10126
|
}
|
|
9581
|
-
if (typeof size === 'undefined') {
|
|
9582
|
-
throw new AppwriteException('Missing required parameter: "size"');
|
|
9583
|
-
}
|
|
9584
10127
|
if (typeof required === 'undefined') {
|
|
9585
10128
|
throw new AppwriteException('Missing required parameter: "required"');
|
|
9586
10129
|
}
|
|
9587
|
-
const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/
|
|
10130
|
+
const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/url'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);
|
|
9588
10131
|
const payload = {};
|
|
9589
10132
|
if (typeof key !== 'undefined') {
|
|
9590
10133
|
payload['key'] = key;
|
|
9591
10134
|
}
|
|
9592
|
-
if (typeof size !== 'undefined') {
|
|
9593
|
-
payload['size'] = size;
|
|
9594
|
-
}
|
|
9595
10135
|
if (typeof required !== 'undefined') {
|
|
9596
10136
|
payload['required'] = required;
|
|
9597
10137
|
}
|
|
@@ -9601,16 +10141,13 @@
|
|
|
9601
10141
|
if (typeof array !== 'undefined') {
|
|
9602
10142
|
payload['array'] = array;
|
|
9603
10143
|
}
|
|
9604
|
-
if (typeof encrypt !== 'undefined') {
|
|
9605
|
-
payload['encrypt'] = encrypt;
|
|
9606
|
-
}
|
|
9607
10144
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
9608
10145
|
const apiHeaders = {
|
|
9609
10146
|
'content-type': 'application/json',
|
|
9610
10147
|
};
|
|
9611
10148
|
return this.client.call('post', uri, apiHeaders, payload);
|
|
9612
10149
|
}
|
|
9613
|
-
|
|
10150
|
+
updateUrlAttribute(paramsOrFirst, ...rest) {
|
|
9614
10151
|
let params;
|
|
9615
10152
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
9616
10153
|
params = (paramsOrFirst || {});
|
|
@@ -9622,8 +10159,7 @@
|
|
|
9622
10159
|
key: rest[1],
|
|
9623
10160
|
required: rest[2],
|
|
9624
10161
|
xdefault: rest[3],
|
|
9625
|
-
|
|
9626
|
-
newKey: rest[5]
|
|
10162
|
+
newKey: rest[4]
|
|
9627
10163
|
};
|
|
9628
10164
|
}
|
|
9629
10165
|
const databaseId = params.databaseId;
|
|
@@ -9631,7 +10167,6 @@
|
|
|
9631
10167
|
const key = params.key;
|
|
9632
10168
|
const required = params.required;
|
|
9633
10169
|
const xdefault = params.xdefault;
|
|
9634
|
-
const size = params.size;
|
|
9635
10170
|
const newKey = params.newKey;
|
|
9636
10171
|
if (typeof databaseId === 'undefined') {
|
|
9637
10172
|
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
@@ -9648,7 +10183,7 @@
|
|
|
9648
10183
|
if (typeof xdefault === 'undefined') {
|
|
9649
10184
|
throw new AppwriteException('Missing required parameter: "xdefault"');
|
|
9650
10185
|
}
|
|
9651
|
-
const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/
|
|
10186
|
+
const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/url/{key}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{key}', key);
|
|
9652
10187
|
const payload = {};
|
|
9653
10188
|
if (typeof required !== 'undefined') {
|
|
9654
10189
|
payload['required'] = required;
|
|
@@ -9656,9 +10191,6 @@
|
|
|
9656
10191
|
if (typeof xdefault !== 'undefined') {
|
|
9657
10192
|
payload['default'] = xdefault;
|
|
9658
10193
|
}
|
|
9659
|
-
if (typeof size !== 'undefined') {
|
|
9660
|
-
payload['size'] = size;
|
|
9661
|
-
}
|
|
9662
10194
|
if (typeof newKey !== 'undefined') {
|
|
9663
10195
|
payload['newKey'] = newKey;
|
|
9664
10196
|
}
|
|
@@ -9668,7 +10200,7 @@
|
|
|
9668
10200
|
};
|
|
9669
10201
|
return this.client.call('patch', uri, apiHeaders, payload);
|
|
9670
10202
|
}
|
|
9671
|
-
|
|
10203
|
+
createVarcharAttribute(paramsOrFirst, ...rest) {
|
|
9672
10204
|
let params;
|
|
9673
10205
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
9674
10206
|
params = (paramsOrFirst || {});
|
|
@@ -9678,14 +10210,16 @@
|
|
|
9678
10210
|
databaseId: paramsOrFirst,
|
|
9679
10211
|
collectionId: rest[0],
|
|
9680
10212
|
key: rest[1],
|
|
9681
|
-
|
|
9682
|
-
|
|
9683
|
-
|
|
10213
|
+
size: rest[2],
|
|
10214
|
+
required: rest[3],
|
|
10215
|
+
xdefault: rest[4],
|
|
10216
|
+
array: rest[5]
|
|
9684
10217
|
};
|
|
9685
10218
|
}
|
|
9686
10219
|
const databaseId = params.databaseId;
|
|
9687
10220
|
const collectionId = params.collectionId;
|
|
9688
10221
|
const key = params.key;
|
|
10222
|
+
const size = params.size;
|
|
9689
10223
|
const required = params.required;
|
|
9690
10224
|
const xdefault = params.xdefault;
|
|
9691
10225
|
const array = params.array;
|
|
@@ -9698,14 +10232,20 @@
|
|
|
9698
10232
|
if (typeof key === 'undefined') {
|
|
9699
10233
|
throw new AppwriteException('Missing required parameter: "key"');
|
|
9700
10234
|
}
|
|
10235
|
+
if (typeof size === 'undefined') {
|
|
10236
|
+
throw new AppwriteException('Missing required parameter: "size"');
|
|
10237
|
+
}
|
|
9701
10238
|
if (typeof required === 'undefined') {
|
|
9702
10239
|
throw new AppwriteException('Missing required parameter: "required"');
|
|
9703
10240
|
}
|
|
9704
|
-
const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/
|
|
10241
|
+
const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/varchar'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);
|
|
9705
10242
|
const payload = {};
|
|
9706
10243
|
if (typeof key !== 'undefined') {
|
|
9707
10244
|
payload['key'] = key;
|
|
9708
10245
|
}
|
|
10246
|
+
if (typeof size !== 'undefined') {
|
|
10247
|
+
payload['size'] = size;
|
|
10248
|
+
}
|
|
9709
10249
|
if (typeof required !== 'undefined') {
|
|
9710
10250
|
payload['required'] = required;
|
|
9711
10251
|
}
|
|
@@ -9721,7 +10261,7 @@
|
|
|
9721
10261
|
};
|
|
9722
10262
|
return this.client.call('post', uri, apiHeaders, payload);
|
|
9723
10263
|
}
|
|
9724
|
-
|
|
10264
|
+
updateVarcharAttribute(paramsOrFirst, ...rest) {
|
|
9725
10265
|
let params;
|
|
9726
10266
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
9727
10267
|
params = (paramsOrFirst || {});
|
|
@@ -9733,7 +10273,8 @@
|
|
|
9733
10273
|
key: rest[1],
|
|
9734
10274
|
required: rest[2],
|
|
9735
10275
|
xdefault: rest[3],
|
|
9736
|
-
|
|
10276
|
+
size: rest[4],
|
|
10277
|
+
newKey: rest[5]
|
|
9737
10278
|
};
|
|
9738
10279
|
}
|
|
9739
10280
|
const databaseId = params.databaseId;
|
|
@@ -9741,6 +10282,7 @@
|
|
|
9741
10282
|
const key = params.key;
|
|
9742
10283
|
const required = params.required;
|
|
9743
10284
|
const xdefault = params.xdefault;
|
|
10285
|
+
const size = params.size;
|
|
9744
10286
|
const newKey = params.newKey;
|
|
9745
10287
|
if (typeof databaseId === 'undefined') {
|
|
9746
10288
|
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
@@ -9757,7 +10299,7 @@
|
|
|
9757
10299
|
if (typeof xdefault === 'undefined') {
|
|
9758
10300
|
throw new AppwriteException('Missing required parameter: "xdefault"');
|
|
9759
10301
|
}
|
|
9760
|
-
const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/
|
|
10302
|
+
const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/varchar/{key}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{key}', key);
|
|
9761
10303
|
const payload = {};
|
|
9762
10304
|
if (typeof required !== 'undefined') {
|
|
9763
10305
|
payload['required'] = required;
|
|
@@ -9765,6 +10307,9 @@
|
|
|
9765
10307
|
if (typeof xdefault !== 'undefined') {
|
|
9766
10308
|
payload['default'] = xdefault;
|
|
9767
10309
|
}
|
|
10310
|
+
if (typeof size !== 'undefined') {
|
|
10311
|
+
payload['size'] = size;
|
|
10312
|
+
}
|
|
9768
10313
|
if (typeof newKey !== 'undefined') {
|
|
9769
10314
|
payload['newKey'] = newKey;
|
|
9770
10315
|
}
|
|
@@ -12604,7 +13149,7 @@
|
|
|
12604
13149
|
}
|
|
12605
13150
|
listTemplates(paramsOrFirst, ...rest) {
|
|
12606
13151
|
let params;
|
|
12607
|
-
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
13152
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && 'runtimes' in paramsOrFirst)) {
|
|
12608
13153
|
params = (paramsOrFirst || {});
|
|
12609
13154
|
}
|
|
12610
13155
|
else {
|
|
@@ -17077,7 +17622,7 @@
|
|
|
17077
17622
|
}
|
|
17078
17623
|
createAppwriteMigration(paramsOrFirst, ...rest) {
|
|
17079
17624
|
let params;
|
|
17080
|
-
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
17625
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && 'resources' in paramsOrFirst)) {
|
|
17081
17626
|
params = (paramsOrFirst || {});
|
|
17082
17627
|
}
|
|
17083
17628
|
else {
|
|
@@ -17126,7 +17671,7 @@
|
|
|
17126
17671
|
}
|
|
17127
17672
|
getAppwriteReport(paramsOrFirst, ...rest) {
|
|
17128
17673
|
let params;
|
|
17129
|
-
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
17674
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && 'resources' in paramsOrFirst)) {
|
|
17130
17675
|
params = (paramsOrFirst || {});
|
|
17131
17676
|
}
|
|
17132
17677
|
else {
|
|
@@ -17287,7 +17832,7 @@
|
|
|
17287
17832
|
}
|
|
17288
17833
|
createFirebaseMigration(paramsOrFirst, ...rest) {
|
|
17289
17834
|
let params;
|
|
17290
|
-
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
17835
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && 'resources' in paramsOrFirst)) {
|
|
17291
17836
|
params = (paramsOrFirst || {});
|
|
17292
17837
|
}
|
|
17293
17838
|
else {
|
|
@@ -17320,7 +17865,7 @@
|
|
|
17320
17865
|
}
|
|
17321
17866
|
getFirebaseReport(paramsOrFirst, ...rest) {
|
|
17322
17867
|
let params;
|
|
17323
|
-
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
17868
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && 'resources' in paramsOrFirst)) {
|
|
17324
17869
|
params = (paramsOrFirst || {});
|
|
17325
17870
|
}
|
|
17326
17871
|
else {
|
|
@@ -17351,7 +17896,7 @@
|
|
|
17351
17896
|
}
|
|
17352
17897
|
createNHostMigration(paramsOrFirst, ...rest) {
|
|
17353
17898
|
let params;
|
|
17354
|
-
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
17899
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && 'resources' in paramsOrFirst)) {
|
|
17355
17900
|
params = (paramsOrFirst || {});
|
|
17356
17901
|
}
|
|
17357
17902
|
else {
|
|
@@ -17429,7 +17974,7 @@
|
|
|
17429
17974
|
}
|
|
17430
17975
|
getNHostReport(paramsOrFirst, ...rest) {
|
|
17431
17976
|
let params;
|
|
17432
|
-
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
17977
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && 'resources' in paramsOrFirst)) {
|
|
17433
17978
|
params = (paramsOrFirst || {});
|
|
17434
17979
|
}
|
|
17435
17980
|
else {
|
|
@@ -17505,7 +18050,7 @@
|
|
|
17505
18050
|
}
|
|
17506
18051
|
createSupabaseMigration(paramsOrFirst, ...rest) {
|
|
17507
18052
|
let params;
|
|
17508
|
-
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
18053
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && 'resources' in paramsOrFirst)) {
|
|
17509
18054
|
params = (paramsOrFirst || {});
|
|
17510
18055
|
}
|
|
17511
18056
|
else {
|
|
@@ -17575,7 +18120,7 @@
|
|
|
17575
18120
|
}
|
|
17576
18121
|
getSupabaseReport(paramsOrFirst, ...rest) {
|
|
17577
18122
|
let params;
|
|
17578
|
-
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
18123
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && 'resources' in paramsOrFirst)) {
|
|
17579
18124
|
params = (paramsOrFirst || {});
|
|
17580
18125
|
}
|
|
17581
18126
|
else {
|
|
@@ -17814,7 +18359,7 @@
|
|
|
17814
18359
|
}
|
|
17815
18360
|
estimationCreateOrganization(paramsOrFirst, ...rest) {
|
|
17816
18361
|
let params;
|
|
17817
|
-
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)
|
|
18362
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
17818
18363
|
params = (paramsOrFirst || {});
|
|
17819
18364
|
}
|
|
17820
18365
|
else {
|
|
@@ -18432,9 +18977,175 @@
|
|
|
18432
18977
|
const apiHeaders = {
|
|
18433
18978
|
'content-type': 'application/json',
|
|
18434
18979
|
};
|
|
18435
|
-
return this.client.call('patch', uri, apiHeaders, payload);
|
|
18980
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
18981
|
+
}
|
|
18982
|
+
getInvoiceView(paramsOrFirst, ...rest) {
|
|
18983
|
+
let params;
|
|
18984
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
18985
|
+
params = (paramsOrFirst || {});
|
|
18986
|
+
}
|
|
18987
|
+
else {
|
|
18988
|
+
params = {
|
|
18989
|
+
organizationId: paramsOrFirst,
|
|
18990
|
+
invoiceId: rest[0]
|
|
18991
|
+
};
|
|
18992
|
+
}
|
|
18993
|
+
const organizationId = params.organizationId;
|
|
18994
|
+
const invoiceId = params.invoiceId;
|
|
18995
|
+
if (typeof organizationId === 'undefined') {
|
|
18996
|
+
throw new AppwriteException('Missing required parameter: "organizationId"');
|
|
18997
|
+
}
|
|
18998
|
+
if (typeof invoiceId === 'undefined') {
|
|
18999
|
+
throw new AppwriteException('Missing required parameter: "invoiceId"');
|
|
19000
|
+
}
|
|
19001
|
+
const apiPath = '/organizations/{organizationId}/invoices/{invoiceId}/view'.replace('{organizationId}', organizationId).replace('{invoiceId}', invoiceId);
|
|
19002
|
+
const payload = {};
|
|
19003
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
19004
|
+
const apiHeaders = {};
|
|
19005
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
19006
|
+
}
|
|
19007
|
+
listKeys(paramsOrFirst, ...rest) {
|
|
19008
|
+
let params;
|
|
19009
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
19010
|
+
params = (paramsOrFirst || {});
|
|
19011
|
+
}
|
|
19012
|
+
else {
|
|
19013
|
+
params = {
|
|
19014
|
+
organizationId: paramsOrFirst,
|
|
19015
|
+
total: rest[0]
|
|
19016
|
+
};
|
|
19017
|
+
}
|
|
19018
|
+
const organizationId = params.organizationId;
|
|
19019
|
+
const total = params.total;
|
|
19020
|
+
if (typeof organizationId === 'undefined') {
|
|
19021
|
+
throw new AppwriteException('Missing required parameter: "organizationId"');
|
|
19022
|
+
}
|
|
19023
|
+
const apiPath = '/organizations/{organizationId}/keys'.replace('{organizationId}', organizationId);
|
|
19024
|
+
const payload = {};
|
|
19025
|
+
if (typeof total !== 'undefined') {
|
|
19026
|
+
payload['total'] = total;
|
|
19027
|
+
}
|
|
19028
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
19029
|
+
const apiHeaders = {};
|
|
19030
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
19031
|
+
}
|
|
19032
|
+
createKey(paramsOrFirst, ...rest) {
|
|
19033
|
+
let params;
|
|
19034
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
19035
|
+
params = (paramsOrFirst || {});
|
|
19036
|
+
}
|
|
19037
|
+
else {
|
|
19038
|
+
params = {
|
|
19039
|
+
organizationId: paramsOrFirst,
|
|
19040
|
+
name: rest[0],
|
|
19041
|
+
scopes: rest[1],
|
|
19042
|
+
expire: rest[2]
|
|
19043
|
+
};
|
|
19044
|
+
}
|
|
19045
|
+
const organizationId = params.organizationId;
|
|
19046
|
+
const name = params.name;
|
|
19047
|
+
const scopes = params.scopes;
|
|
19048
|
+
const expire = params.expire;
|
|
19049
|
+
if (typeof organizationId === 'undefined') {
|
|
19050
|
+
throw new AppwriteException('Missing required parameter: "organizationId"');
|
|
19051
|
+
}
|
|
19052
|
+
if (typeof name === 'undefined') {
|
|
19053
|
+
throw new AppwriteException('Missing required parameter: "name"');
|
|
19054
|
+
}
|
|
19055
|
+
if (typeof scopes === 'undefined') {
|
|
19056
|
+
throw new AppwriteException('Missing required parameter: "scopes"');
|
|
19057
|
+
}
|
|
19058
|
+
const apiPath = '/organizations/{organizationId}/keys'.replace('{organizationId}', organizationId);
|
|
19059
|
+
const payload = {};
|
|
19060
|
+
if (typeof name !== 'undefined') {
|
|
19061
|
+
payload['name'] = name;
|
|
19062
|
+
}
|
|
19063
|
+
if (typeof scopes !== 'undefined') {
|
|
19064
|
+
payload['scopes'] = scopes;
|
|
19065
|
+
}
|
|
19066
|
+
if (typeof expire !== 'undefined') {
|
|
19067
|
+
payload['expire'] = expire;
|
|
19068
|
+
}
|
|
19069
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
19070
|
+
const apiHeaders = {
|
|
19071
|
+
'content-type': 'application/json',
|
|
19072
|
+
};
|
|
19073
|
+
return this.client.call('post', uri, apiHeaders, payload);
|
|
19074
|
+
}
|
|
19075
|
+
getKey(paramsOrFirst, ...rest) {
|
|
19076
|
+
let params;
|
|
19077
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
19078
|
+
params = (paramsOrFirst || {});
|
|
19079
|
+
}
|
|
19080
|
+
else {
|
|
19081
|
+
params = {
|
|
19082
|
+
organizationId: paramsOrFirst,
|
|
19083
|
+
keyId: rest[0]
|
|
19084
|
+
};
|
|
19085
|
+
}
|
|
19086
|
+
const organizationId = params.organizationId;
|
|
19087
|
+
const keyId = params.keyId;
|
|
19088
|
+
if (typeof organizationId === 'undefined') {
|
|
19089
|
+
throw new AppwriteException('Missing required parameter: "organizationId"');
|
|
19090
|
+
}
|
|
19091
|
+
if (typeof keyId === 'undefined') {
|
|
19092
|
+
throw new AppwriteException('Missing required parameter: "keyId"');
|
|
19093
|
+
}
|
|
19094
|
+
const apiPath = '/organizations/{organizationId}/keys/{keyId}'.replace('{organizationId}', organizationId).replace('{keyId}', keyId);
|
|
19095
|
+
const payload = {};
|
|
19096
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
19097
|
+
const apiHeaders = {};
|
|
19098
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
19099
|
+
}
|
|
19100
|
+
updateKey(paramsOrFirst, ...rest) {
|
|
19101
|
+
let params;
|
|
19102
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
19103
|
+
params = (paramsOrFirst || {});
|
|
19104
|
+
}
|
|
19105
|
+
else {
|
|
19106
|
+
params = {
|
|
19107
|
+
organizationId: paramsOrFirst,
|
|
19108
|
+
keyId: rest[0],
|
|
19109
|
+
name: rest[1],
|
|
19110
|
+
scopes: rest[2],
|
|
19111
|
+
expire: rest[3]
|
|
19112
|
+
};
|
|
19113
|
+
}
|
|
19114
|
+
const organizationId = params.organizationId;
|
|
19115
|
+
const keyId = params.keyId;
|
|
19116
|
+
const name = params.name;
|
|
19117
|
+
const scopes = params.scopes;
|
|
19118
|
+
const expire = params.expire;
|
|
19119
|
+
if (typeof organizationId === 'undefined') {
|
|
19120
|
+
throw new AppwriteException('Missing required parameter: "organizationId"');
|
|
19121
|
+
}
|
|
19122
|
+
if (typeof keyId === 'undefined') {
|
|
19123
|
+
throw new AppwriteException('Missing required parameter: "keyId"');
|
|
19124
|
+
}
|
|
19125
|
+
if (typeof name === 'undefined') {
|
|
19126
|
+
throw new AppwriteException('Missing required parameter: "name"');
|
|
19127
|
+
}
|
|
19128
|
+
if (typeof scopes === 'undefined') {
|
|
19129
|
+
throw new AppwriteException('Missing required parameter: "scopes"');
|
|
19130
|
+
}
|
|
19131
|
+
const apiPath = '/organizations/{organizationId}/keys/{keyId}'.replace('{organizationId}', organizationId).replace('{keyId}', keyId);
|
|
19132
|
+
const payload = {};
|
|
19133
|
+
if (typeof name !== 'undefined') {
|
|
19134
|
+
payload['name'] = name;
|
|
19135
|
+
}
|
|
19136
|
+
if (typeof scopes !== 'undefined') {
|
|
19137
|
+
payload['scopes'] = scopes;
|
|
19138
|
+
}
|
|
19139
|
+
if (typeof expire !== 'undefined') {
|
|
19140
|
+
payload['expire'] = expire;
|
|
19141
|
+
}
|
|
19142
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
19143
|
+
const apiHeaders = {
|
|
19144
|
+
'content-type': 'application/json',
|
|
19145
|
+
};
|
|
19146
|
+
return this.client.call('put', uri, apiHeaders, payload);
|
|
18436
19147
|
}
|
|
18437
|
-
|
|
19148
|
+
deleteKey(paramsOrFirst, ...rest) {
|
|
18438
19149
|
let params;
|
|
18439
19150
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
18440
19151
|
params = (paramsOrFirst || {});
|
|
@@ -18442,22 +19153,24 @@
|
|
|
18442
19153
|
else {
|
|
18443
19154
|
params = {
|
|
18444
19155
|
organizationId: paramsOrFirst,
|
|
18445
|
-
|
|
19156
|
+
keyId: rest[0]
|
|
18446
19157
|
};
|
|
18447
19158
|
}
|
|
18448
19159
|
const organizationId = params.organizationId;
|
|
18449
|
-
const
|
|
19160
|
+
const keyId = params.keyId;
|
|
18450
19161
|
if (typeof organizationId === 'undefined') {
|
|
18451
19162
|
throw new AppwriteException('Missing required parameter: "organizationId"');
|
|
18452
19163
|
}
|
|
18453
|
-
if (typeof
|
|
18454
|
-
throw new AppwriteException('Missing required parameter: "
|
|
19164
|
+
if (typeof keyId === 'undefined') {
|
|
19165
|
+
throw new AppwriteException('Missing required parameter: "keyId"');
|
|
18455
19166
|
}
|
|
18456
|
-
const apiPath = '/organizations/{organizationId}/
|
|
19167
|
+
const apiPath = '/organizations/{organizationId}/keys/{keyId}'.replace('{organizationId}', organizationId).replace('{keyId}', keyId);
|
|
18457
19168
|
const payload = {};
|
|
18458
19169
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
18459
|
-
const apiHeaders = {
|
|
18460
|
-
|
|
19170
|
+
const apiHeaders = {
|
|
19171
|
+
'content-type': 'application/json',
|
|
19172
|
+
};
|
|
19173
|
+
return this.client.call('delete', uri, apiHeaders, payload);
|
|
18461
19174
|
}
|
|
18462
19175
|
setDefaultPaymentMethod(paramsOrFirst, ...rest) {
|
|
18463
19176
|
let params;
|
|
@@ -18717,6 +19430,26 @@
|
|
|
18717
19430
|
};
|
|
18718
19431
|
return this.client.call('patch', uri, apiHeaders, payload);
|
|
18719
19432
|
}
|
|
19433
|
+
listRegions(paramsOrFirst) {
|
|
19434
|
+
let params;
|
|
19435
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
19436
|
+
params = (paramsOrFirst || {});
|
|
19437
|
+
}
|
|
19438
|
+
else {
|
|
19439
|
+
params = {
|
|
19440
|
+
organizationId: paramsOrFirst
|
|
19441
|
+
};
|
|
19442
|
+
}
|
|
19443
|
+
const organizationId = params.organizationId;
|
|
19444
|
+
if (typeof organizationId === 'undefined') {
|
|
19445
|
+
throw new AppwriteException('Missing required parameter: "organizationId"');
|
|
19446
|
+
}
|
|
19447
|
+
const apiPath = '/organizations/{organizationId}/regions'.replace('{organizationId}', organizationId);
|
|
19448
|
+
const payload = {};
|
|
19449
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
19450
|
+
const apiHeaders = {};
|
|
19451
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
19452
|
+
}
|
|
18720
19453
|
getScopes(paramsOrFirst) {
|
|
18721
19454
|
let params;
|
|
18722
19455
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
@@ -21789,7 +22522,7 @@
|
|
|
21789
22522
|
}
|
|
21790
22523
|
listTemplates(paramsOrFirst, ...rest) {
|
|
21791
22524
|
let params;
|
|
21792
|
-
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
22525
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && 'frameworks' in paramsOrFirst)) {
|
|
21793
22526
|
params = (paramsOrFirst || {});
|
|
21794
22527
|
}
|
|
21795
22528
|
else {
|
|
@@ -23532,9 +24265,6 @@
|
|
|
23532
24265
|
if (typeof databaseId === 'undefined') {
|
|
23533
24266
|
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
23534
24267
|
}
|
|
23535
|
-
if (typeof name === 'undefined') {
|
|
23536
|
-
throw new AppwriteException('Missing required parameter: "name"');
|
|
23537
|
-
}
|
|
23538
24268
|
const apiPath = '/tablesdb/{databaseId}'.replace('{databaseId}', databaseId);
|
|
23539
24269
|
const payload = {};
|
|
23540
24270
|
if (typeof name !== 'undefined') {
|
|
@@ -23721,9 +24451,6 @@
|
|
|
23721
24451
|
if (typeof tableId === 'undefined') {
|
|
23722
24452
|
throw new AppwriteException('Missing required parameter: "tableId"');
|
|
23723
24453
|
}
|
|
23724
|
-
if (typeof name === 'undefined') {
|
|
23725
|
-
throw new AppwriteException('Missing required parameter: "name"');
|
|
23726
|
-
}
|
|
23727
24454
|
const apiPath = '/tablesdb/{databaseId}/tables/{tableId}'.replace('{databaseId}', databaseId).replace('{tableId}', tableId);
|
|
23728
24455
|
const payload = {};
|
|
23729
24456
|
if (typeof name !== 'undefined') {
|
|
@@ -24472,20 +25199,224 @@
|
|
|
24472
25199
|
if (typeof required === 'undefined') {
|
|
24473
25200
|
throw new AppwriteException('Missing required parameter: "required"');
|
|
24474
25201
|
}
|
|
24475
|
-
if (typeof xdefault === 'undefined') {
|
|
24476
|
-
throw new AppwriteException('Missing required parameter: "xdefault"');
|
|
24477
|
-
}
|
|
24478
|
-
const apiPath = '/tablesdb/{databaseId}/tables/{tableId}/columns/integer/{key}'.replace('{databaseId}', databaseId).replace('{tableId}', tableId).replace('{key}', key);
|
|
25202
|
+
if (typeof xdefault === 'undefined') {
|
|
25203
|
+
throw new AppwriteException('Missing required parameter: "xdefault"');
|
|
25204
|
+
}
|
|
25205
|
+
const apiPath = '/tablesdb/{databaseId}/tables/{tableId}/columns/integer/{key}'.replace('{databaseId}', databaseId).replace('{tableId}', tableId).replace('{key}', key);
|
|
25206
|
+
const payload = {};
|
|
25207
|
+
if (typeof required !== 'undefined') {
|
|
25208
|
+
payload['required'] = required;
|
|
25209
|
+
}
|
|
25210
|
+
if (typeof min !== 'undefined') {
|
|
25211
|
+
payload['min'] = min;
|
|
25212
|
+
}
|
|
25213
|
+
if (typeof max !== 'undefined') {
|
|
25214
|
+
payload['max'] = max;
|
|
25215
|
+
}
|
|
25216
|
+
if (typeof xdefault !== 'undefined') {
|
|
25217
|
+
payload['default'] = xdefault;
|
|
25218
|
+
}
|
|
25219
|
+
if (typeof newKey !== 'undefined') {
|
|
25220
|
+
payload['newKey'] = newKey;
|
|
25221
|
+
}
|
|
25222
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
25223
|
+
const apiHeaders = {
|
|
25224
|
+
'content-type': 'application/json',
|
|
25225
|
+
};
|
|
25226
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
25227
|
+
}
|
|
25228
|
+
createIpColumn(paramsOrFirst, ...rest) {
|
|
25229
|
+
let params;
|
|
25230
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
25231
|
+
params = (paramsOrFirst || {});
|
|
25232
|
+
}
|
|
25233
|
+
else {
|
|
25234
|
+
params = {
|
|
25235
|
+
databaseId: paramsOrFirst,
|
|
25236
|
+
tableId: rest[0],
|
|
25237
|
+
key: rest[1],
|
|
25238
|
+
required: rest[2],
|
|
25239
|
+
xdefault: rest[3],
|
|
25240
|
+
array: rest[4]
|
|
25241
|
+
};
|
|
25242
|
+
}
|
|
25243
|
+
const databaseId = params.databaseId;
|
|
25244
|
+
const tableId = params.tableId;
|
|
25245
|
+
const key = params.key;
|
|
25246
|
+
const required = params.required;
|
|
25247
|
+
const xdefault = params.xdefault;
|
|
25248
|
+
const array = params.array;
|
|
25249
|
+
if (typeof databaseId === 'undefined') {
|
|
25250
|
+
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
25251
|
+
}
|
|
25252
|
+
if (typeof tableId === 'undefined') {
|
|
25253
|
+
throw new AppwriteException('Missing required parameter: "tableId"');
|
|
25254
|
+
}
|
|
25255
|
+
if (typeof key === 'undefined') {
|
|
25256
|
+
throw new AppwriteException('Missing required parameter: "key"');
|
|
25257
|
+
}
|
|
25258
|
+
if (typeof required === 'undefined') {
|
|
25259
|
+
throw new AppwriteException('Missing required parameter: "required"');
|
|
25260
|
+
}
|
|
25261
|
+
const apiPath = '/tablesdb/{databaseId}/tables/{tableId}/columns/ip'.replace('{databaseId}', databaseId).replace('{tableId}', tableId);
|
|
25262
|
+
const payload = {};
|
|
25263
|
+
if (typeof key !== 'undefined') {
|
|
25264
|
+
payload['key'] = key;
|
|
25265
|
+
}
|
|
25266
|
+
if (typeof required !== 'undefined') {
|
|
25267
|
+
payload['required'] = required;
|
|
25268
|
+
}
|
|
25269
|
+
if (typeof xdefault !== 'undefined') {
|
|
25270
|
+
payload['default'] = xdefault;
|
|
25271
|
+
}
|
|
25272
|
+
if (typeof array !== 'undefined') {
|
|
25273
|
+
payload['array'] = array;
|
|
25274
|
+
}
|
|
25275
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
25276
|
+
const apiHeaders = {
|
|
25277
|
+
'content-type': 'application/json',
|
|
25278
|
+
};
|
|
25279
|
+
return this.client.call('post', uri, apiHeaders, payload);
|
|
25280
|
+
}
|
|
25281
|
+
updateIpColumn(paramsOrFirst, ...rest) {
|
|
25282
|
+
let params;
|
|
25283
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
25284
|
+
params = (paramsOrFirst || {});
|
|
25285
|
+
}
|
|
25286
|
+
else {
|
|
25287
|
+
params = {
|
|
25288
|
+
databaseId: paramsOrFirst,
|
|
25289
|
+
tableId: rest[0],
|
|
25290
|
+
key: rest[1],
|
|
25291
|
+
required: rest[2],
|
|
25292
|
+
xdefault: rest[3],
|
|
25293
|
+
newKey: rest[4]
|
|
25294
|
+
};
|
|
25295
|
+
}
|
|
25296
|
+
const databaseId = params.databaseId;
|
|
25297
|
+
const tableId = params.tableId;
|
|
25298
|
+
const key = params.key;
|
|
25299
|
+
const required = params.required;
|
|
25300
|
+
const xdefault = params.xdefault;
|
|
25301
|
+
const newKey = params.newKey;
|
|
25302
|
+
if (typeof databaseId === 'undefined') {
|
|
25303
|
+
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
25304
|
+
}
|
|
25305
|
+
if (typeof tableId === 'undefined') {
|
|
25306
|
+
throw new AppwriteException('Missing required parameter: "tableId"');
|
|
25307
|
+
}
|
|
25308
|
+
if (typeof key === 'undefined') {
|
|
25309
|
+
throw new AppwriteException('Missing required parameter: "key"');
|
|
25310
|
+
}
|
|
25311
|
+
if (typeof required === 'undefined') {
|
|
25312
|
+
throw new AppwriteException('Missing required parameter: "required"');
|
|
25313
|
+
}
|
|
25314
|
+
if (typeof xdefault === 'undefined') {
|
|
25315
|
+
throw new AppwriteException('Missing required parameter: "xdefault"');
|
|
25316
|
+
}
|
|
25317
|
+
const apiPath = '/tablesdb/{databaseId}/tables/{tableId}/columns/ip/{key}'.replace('{databaseId}', databaseId).replace('{tableId}', tableId).replace('{key}', key);
|
|
25318
|
+
const payload = {};
|
|
25319
|
+
if (typeof required !== 'undefined') {
|
|
25320
|
+
payload['required'] = required;
|
|
25321
|
+
}
|
|
25322
|
+
if (typeof xdefault !== 'undefined') {
|
|
25323
|
+
payload['default'] = xdefault;
|
|
25324
|
+
}
|
|
25325
|
+
if (typeof newKey !== 'undefined') {
|
|
25326
|
+
payload['newKey'] = newKey;
|
|
25327
|
+
}
|
|
25328
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
25329
|
+
const apiHeaders = {
|
|
25330
|
+
'content-type': 'application/json',
|
|
25331
|
+
};
|
|
25332
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
25333
|
+
}
|
|
25334
|
+
createLineColumn(paramsOrFirst, ...rest) {
|
|
25335
|
+
let params;
|
|
25336
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
25337
|
+
params = (paramsOrFirst || {});
|
|
25338
|
+
}
|
|
25339
|
+
else {
|
|
25340
|
+
params = {
|
|
25341
|
+
databaseId: paramsOrFirst,
|
|
25342
|
+
tableId: rest[0],
|
|
25343
|
+
key: rest[1],
|
|
25344
|
+
required: rest[2],
|
|
25345
|
+
xdefault: rest[3]
|
|
25346
|
+
};
|
|
25347
|
+
}
|
|
25348
|
+
const databaseId = params.databaseId;
|
|
25349
|
+
const tableId = params.tableId;
|
|
25350
|
+
const key = params.key;
|
|
25351
|
+
const required = params.required;
|
|
25352
|
+
const xdefault = params.xdefault;
|
|
25353
|
+
if (typeof databaseId === 'undefined') {
|
|
25354
|
+
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
25355
|
+
}
|
|
25356
|
+
if (typeof tableId === 'undefined') {
|
|
25357
|
+
throw new AppwriteException('Missing required parameter: "tableId"');
|
|
25358
|
+
}
|
|
25359
|
+
if (typeof key === 'undefined') {
|
|
25360
|
+
throw new AppwriteException('Missing required parameter: "key"');
|
|
25361
|
+
}
|
|
25362
|
+
if (typeof required === 'undefined') {
|
|
25363
|
+
throw new AppwriteException('Missing required parameter: "required"');
|
|
25364
|
+
}
|
|
25365
|
+
const apiPath = '/tablesdb/{databaseId}/tables/{tableId}/columns/line'.replace('{databaseId}', databaseId).replace('{tableId}', tableId);
|
|
25366
|
+
const payload = {};
|
|
25367
|
+
if (typeof key !== 'undefined') {
|
|
25368
|
+
payload['key'] = key;
|
|
25369
|
+
}
|
|
25370
|
+
if (typeof required !== 'undefined') {
|
|
25371
|
+
payload['required'] = required;
|
|
25372
|
+
}
|
|
25373
|
+
if (typeof xdefault !== 'undefined') {
|
|
25374
|
+
payload['default'] = xdefault;
|
|
25375
|
+
}
|
|
25376
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
25377
|
+
const apiHeaders = {
|
|
25378
|
+
'content-type': 'application/json',
|
|
25379
|
+
};
|
|
25380
|
+
return this.client.call('post', uri, apiHeaders, payload);
|
|
25381
|
+
}
|
|
25382
|
+
updateLineColumn(paramsOrFirst, ...rest) {
|
|
25383
|
+
let params;
|
|
25384
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
25385
|
+
params = (paramsOrFirst || {});
|
|
25386
|
+
}
|
|
25387
|
+
else {
|
|
25388
|
+
params = {
|
|
25389
|
+
databaseId: paramsOrFirst,
|
|
25390
|
+
tableId: rest[0],
|
|
25391
|
+
key: rest[1],
|
|
25392
|
+
required: rest[2],
|
|
25393
|
+
xdefault: rest[3],
|
|
25394
|
+
newKey: rest[4]
|
|
25395
|
+
};
|
|
25396
|
+
}
|
|
25397
|
+
const databaseId = params.databaseId;
|
|
25398
|
+
const tableId = params.tableId;
|
|
25399
|
+
const key = params.key;
|
|
25400
|
+
const required = params.required;
|
|
25401
|
+
const xdefault = params.xdefault;
|
|
25402
|
+
const newKey = params.newKey;
|
|
25403
|
+
if (typeof databaseId === 'undefined') {
|
|
25404
|
+
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
25405
|
+
}
|
|
25406
|
+
if (typeof tableId === 'undefined') {
|
|
25407
|
+
throw new AppwriteException('Missing required parameter: "tableId"');
|
|
25408
|
+
}
|
|
25409
|
+
if (typeof key === 'undefined') {
|
|
25410
|
+
throw new AppwriteException('Missing required parameter: "key"');
|
|
25411
|
+
}
|
|
25412
|
+
if (typeof required === 'undefined') {
|
|
25413
|
+
throw new AppwriteException('Missing required parameter: "required"');
|
|
25414
|
+
}
|
|
25415
|
+
const apiPath = '/tablesdb/{databaseId}/tables/{tableId}/columns/line/{key}'.replace('{databaseId}', databaseId).replace('{tableId}', tableId).replace('{key}', key);
|
|
24479
25416
|
const payload = {};
|
|
24480
25417
|
if (typeof required !== 'undefined') {
|
|
24481
25418
|
payload['required'] = required;
|
|
24482
25419
|
}
|
|
24483
|
-
if (typeof min !== 'undefined') {
|
|
24484
|
-
payload['min'] = min;
|
|
24485
|
-
}
|
|
24486
|
-
if (typeof max !== 'undefined') {
|
|
24487
|
-
payload['max'] = max;
|
|
24488
|
-
}
|
|
24489
25420
|
if (typeof xdefault !== 'undefined') {
|
|
24490
25421
|
payload['default'] = xdefault;
|
|
24491
25422
|
}
|
|
@@ -24498,7 +25429,7 @@
|
|
|
24498
25429
|
};
|
|
24499
25430
|
return this.client.call('patch', uri, apiHeaders, payload);
|
|
24500
25431
|
}
|
|
24501
|
-
|
|
25432
|
+
createLongtextColumn(paramsOrFirst, ...rest) {
|
|
24502
25433
|
let params;
|
|
24503
25434
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
24504
25435
|
params = (paramsOrFirst || {});
|
|
@@ -24531,7 +25462,7 @@
|
|
|
24531
25462
|
if (typeof required === 'undefined') {
|
|
24532
25463
|
throw new AppwriteException('Missing required parameter: "required"');
|
|
24533
25464
|
}
|
|
24534
|
-
const apiPath = '/tablesdb/{databaseId}/tables/{tableId}/columns/
|
|
25465
|
+
const apiPath = '/tablesdb/{databaseId}/tables/{tableId}/columns/longtext'.replace('{databaseId}', databaseId).replace('{tableId}', tableId);
|
|
24535
25466
|
const payload = {};
|
|
24536
25467
|
if (typeof key !== 'undefined') {
|
|
24537
25468
|
payload['key'] = key;
|
|
@@ -24551,7 +25482,7 @@
|
|
|
24551
25482
|
};
|
|
24552
25483
|
return this.client.call('post', uri, apiHeaders, payload);
|
|
24553
25484
|
}
|
|
24554
|
-
|
|
25485
|
+
updateLongtextColumn(paramsOrFirst, ...rest) {
|
|
24555
25486
|
let params;
|
|
24556
25487
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
24557
25488
|
params = (paramsOrFirst || {});
|
|
@@ -24587,7 +25518,7 @@
|
|
|
24587
25518
|
if (typeof xdefault === 'undefined') {
|
|
24588
25519
|
throw new AppwriteException('Missing required parameter: "xdefault"');
|
|
24589
25520
|
}
|
|
24590
|
-
const apiPath = '/tablesdb/{databaseId}/tables/{tableId}/columns/
|
|
25521
|
+
const apiPath = '/tablesdb/{databaseId}/tables/{tableId}/columns/longtext/{key}'.replace('{databaseId}', databaseId).replace('{tableId}', tableId).replace('{key}', key);
|
|
24591
25522
|
const payload = {};
|
|
24592
25523
|
if (typeof required !== 'undefined') {
|
|
24593
25524
|
payload['required'] = required;
|
|
@@ -24604,7 +25535,7 @@
|
|
|
24604
25535
|
};
|
|
24605
25536
|
return this.client.call('patch', uri, apiHeaders, payload);
|
|
24606
25537
|
}
|
|
24607
|
-
|
|
25538
|
+
createMediumtextColumn(paramsOrFirst, ...rest) {
|
|
24608
25539
|
let params;
|
|
24609
25540
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
24610
25541
|
params = (paramsOrFirst || {});
|
|
@@ -24615,7 +25546,8 @@
|
|
|
24615
25546
|
tableId: rest[0],
|
|
24616
25547
|
key: rest[1],
|
|
24617
25548
|
required: rest[2],
|
|
24618
|
-
xdefault: rest[3]
|
|
25549
|
+
xdefault: rest[3],
|
|
25550
|
+
array: rest[4]
|
|
24619
25551
|
};
|
|
24620
25552
|
}
|
|
24621
25553
|
const databaseId = params.databaseId;
|
|
@@ -24623,6 +25555,7 @@
|
|
|
24623
25555
|
const key = params.key;
|
|
24624
25556
|
const required = params.required;
|
|
24625
25557
|
const xdefault = params.xdefault;
|
|
25558
|
+
const array = params.array;
|
|
24626
25559
|
if (typeof databaseId === 'undefined') {
|
|
24627
25560
|
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
24628
25561
|
}
|
|
@@ -24635,7 +25568,7 @@
|
|
|
24635
25568
|
if (typeof required === 'undefined') {
|
|
24636
25569
|
throw new AppwriteException('Missing required parameter: "required"');
|
|
24637
25570
|
}
|
|
24638
|
-
const apiPath = '/tablesdb/{databaseId}/tables/{tableId}/columns/
|
|
25571
|
+
const apiPath = '/tablesdb/{databaseId}/tables/{tableId}/columns/mediumtext'.replace('{databaseId}', databaseId).replace('{tableId}', tableId);
|
|
24639
25572
|
const payload = {};
|
|
24640
25573
|
if (typeof key !== 'undefined') {
|
|
24641
25574
|
payload['key'] = key;
|
|
@@ -24646,13 +25579,16 @@
|
|
|
24646
25579
|
if (typeof xdefault !== 'undefined') {
|
|
24647
25580
|
payload['default'] = xdefault;
|
|
24648
25581
|
}
|
|
25582
|
+
if (typeof array !== 'undefined') {
|
|
25583
|
+
payload['array'] = array;
|
|
25584
|
+
}
|
|
24649
25585
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
24650
25586
|
const apiHeaders = {
|
|
24651
25587
|
'content-type': 'application/json',
|
|
24652
25588
|
};
|
|
24653
25589
|
return this.client.call('post', uri, apiHeaders, payload);
|
|
24654
25590
|
}
|
|
24655
|
-
|
|
25591
|
+
updateMediumtextColumn(paramsOrFirst, ...rest) {
|
|
24656
25592
|
let params;
|
|
24657
25593
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
24658
25594
|
params = (paramsOrFirst || {});
|
|
@@ -24685,7 +25621,10 @@
|
|
|
24685
25621
|
if (typeof required === 'undefined') {
|
|
24686
25622
|
throw new AppwriteException('Missing required parameter: "required"');
|
|
24687
25623
|
}
|
|
24688
|
-
|
|
25624
|
+
if (typeof xdefault === 'undefined') {
|
|
25625
|
+
throw new AppwriteException('Missing required parameter: "xdefault"');
|
|
25626
|
+
}
|
|
25627
|
+
const apiPath = '/tablesdb/{databaseId}/tables/{tableId}/columns/mediumtext/{key}'.replace('{databaseId}', databaseId).replace('{tableId}', tableId).replace('{key}', key);
|
|
24689
25628
|
const payload = {};
|
|
24690
25629
|
if (typeof required !== 'undefined') {
|
|
24691
25630
|
payload['required'] = required;
|
|
@@ -25085,6 +26024,112 @@
|
|
|
25085
26024
|
};
|
|
25086
26025
|
return this.client.call('patch', uri, apiHeaders, payload);
|
|
25087
26026
|
}
|
|
26027
|
+
createTextColumn(paramsOrFirst, ...rest) {
|
|
26028
|
+
let params;
|
|
26029
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
26030
|
+
params = (paramsOrFirst || {});
|
|
26031
|
+
}
|
|
26032
|
+
else {
|
|
26033
|
+
params = {
|
|
26034
|
+
databaseId: paramsOrFirst,
|
|
26035
|
+
tableId: rest[0],
|
|
26036
|
+
key: rest[1],
|
|
26037
|
+
required: rest[2],
|
|
26038
|
+
xdefault: rest[3],
|
|
26039
|
+
array: rest[4]
|
|
26040
|
+
};
|
|
26041
|
+
}
|
|
26042
|
+
const databaseId = params.databaseId;
|
|
26043
|
+
const tableId = params.tableId;
|
|
26044
|
+
const key = params.key;
|
|
26045
|
+
const required = params.required;
|
|
26046
|
+
const xdefault = params.xdefault;
|
|
26047
|
+
const array = params.array;
|
|
26048
|
+
if (typeof databaseId === 'undefined') {
|
|
26049
|
+
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
26050
|
+
}
|
|
26051
|
+
if (typeof tableId === 'undefined') {
|
|
26052
|
+
throw new AppwriteException('Missing required parameter: "tableId"');
|
|
26053
|
+
}
|
|
26054
|
+
if (typeof key === 'undefined') {
|
|
26055
|
+
throw new AppwriteException('Missing required parameter: "key"');
|
|
26056
|
+
}
|
|
26057
|
+
if (typeof required === 'undefined') {
|
|
26058
|
+
throw new AppwriteException('Missing required parameter: "required"');
|
|
26059
|
+
}
|
|
26060
|
+
const apiPath = '/tablesdb/{databaseId}/tables/{tableId}/columns/text'.replace('{databaseId}', databaseId).replace('{tableId}', tableId);
|
|
26061
|
+
const payload = {};
|
|
26062
|
+
if (typeof key !== 'undefined') {
|
|
26063
|
+
payload['key'] = key;
|
|
26064
|
+
}
|
|
26065
|
+
if (typeof required !== 'undefined') {
|
|
26066
|
+
payload['required'] = required;
|
|
26067
|
+
}
|
|
26068
|
+
if (typeof xdefault !== 'undefined') {
|
|
26069
|
+
payload['default'] = xdefault;
|
|
26070
|
+
}
|
|
26071
|
+
if (typeof array !== 'undefined') {
|
|
26072
|
+
payload['array'] = array;
|
|
26073
|
+
}
|
|
26074
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
26075
|
+
const apiHeaders = {
|
|
26076
|
+
'content-type': 'application/json',
|
|
26077
|
+
};
|
|
26078
|
+
return this.client.call('post', uri, apiHeaders, payload);
|
|
26079
|
+
}
|
|
26080
|
+
updateTextColumn(paramsOrFirst, ...rest) {
|
|
26081
|
+
let params;
|
|
26082
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
26083
|
+
params = (paramsOrFirst || {});
|
|
26084
|
+
}
|
|
26085
|
+
else {
|
|
26086
|
+
params = {
|
|
26087
|
+
databaseId: paramsOrFirst,
|
|
26088
|
+
tableId: rest[0],
|
|
26089
|
+
key: rest[1],
|
|
26090
|
+
required: rest[2],
|
|
26091
|
+
xdefault: rest[3],
|
|
26092
|
+
newKey: rest[4]
|
|
26093
|
+
};
|
|
26094
|
+
}
|
|
26095
|
+
const databaseId = params.databaseId;
|
|
26096
|
+
const tableId = params.tableId;
|
|
26097
|
+
const key = params.key;
|
|
26098
|
+
const required = params.required;
|
|
26099
|
+
const xdefault = params.xdefault;
|
|
26100
|
+
const newKey = params.newKey;
|
|
26101
|
+
if (typeof databaseId === 'undefined') {
|
|
26102
|
+
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
26103
|
+
}
|
|
26104
|
+
if (typeof tableId === 'undefined') {
|
|
26105
|
+
throw new AppwriteException('Missing required parameter: "tableId"');
|
|
26106
|
+
}
|
|
26107
|
+
if (typeof key === 'undefined') {
|
|
26108
|
+
throw new AppwriteException('Missing required parameter: "key"');
|
|
26109
|
+
}
|
|
26110
|
+
if (typeof required === 'undefined') {
|
|
26111
|
+
throw new AppwriteException('Missing required parameter: "required"');
|
|
26112
|
+
}
|
|
26113
|
+
if (typeof xdefault === 'undefined') {
|
|
26114
|
+
throw new AppwriteException('Missing required parameter: "xdefault"');
|
|
26115
|
+
}
|
|
26116
|
+
const apiPath = '/tablesdb/{databaseId}/tables/{tableId}/columns/text/{key}'.replace('{databaseId}', databaseId).replace('{tableId}', tableId).replace('{key}', key);
|
|
26117
|
+
const payload = {};
|
|
26118
|
+
if (typeof required !== 'undefined') {
|
|
26119
|
+
payload['required'] = required;
|
|
26120
|
+
}
|
|
26121
|
+
if (typeof xdefault !== 'undefined') {
|
|
26122
|
+
payload['default'] = xdefault;
|
|
26123
|
+
}
|
|
26124
|
+
if (typeof newKey !== 'undefined') {
|
|
26125
|
+
payload['newKey'] = newKey;
|
|
26126
|
+
}
|
|
26127
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
26128
|
+
const apiHeaders = {
|
|
26129
|
+
'content-type': 'application/json',
|
|
26130
|
+
};
|
|
26131
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
26132
|
+
}
|
|
25088
26133
|
createUrlColumn(paramsOrFirst, ...rest) {
|
|
25089
26134
|
let params;
|
|
25090
26135
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
@@ -25191,6 +26236,125 @@
|
|
|
25191
26236
|
};
|
|
25192
26237
|
return this.client.call('patch', uri, apiHeaders, payload);
|
|
25193
26238
|
}
|
|
26239
|
+
createVarcharColumn(paramsOrFirst, ...rest) {
|
|
26240
|
+
let params;
|
|
26241
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
26242
|
+
params = (paramsOrFirst || {});
|
|
26243
|
+
}
|
|
26244
|
+
else {
|
|
26245
|
+
params = {
|
|
26246
|
+
databaseId: paramsOrFirst,
|
|
26247
|
+
tableId: rest[0],
|
|
26248
|
+
key: rest[1],
|
|
26249
|
+
size: rest[2],
|
|
26250
|
+
required: rest[3],
|
|
26251
|
+
xdefault: rest[4],
|
|
26252
|
+
array: rest[5]
|
|
26253
|
+
};
|
|
26254
|
+
}
|
|
26255
|
+
const databaseId = params.databaseId;
|
|
26256
|
+
const tableId = params.tableId;
|
|
26257
|
+
const key = params.key;
|
|
26258
|
+
const size = params.size;
|
|
26259
|
+
const required = params.required;
|
|
26260
|
+
const xdefault = params.xdefault;
|
|
26261
|
+
const array = params.array;
|
|
26262
|
+
if (typeof databaseId === 'undefined') {
|
|
26263
|
+
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
26264
|
+
}
|
|
26265
|
+
if (typeof tableId === 'undefined') {
|
|
26266
|
+
throw new AppwriteException('Missing required parameter: "tableId"');
|
|
26267
|
+
}
|
|
26268
|
+
if (typeof key === 'undefined') {
|
|
26269
|
+
throw new AppwriteException('Missing required parameter: "key"');
|
|
26270
|
+
}
|
|
26271
|
+
if (typeof size === 'undefined') {
|
|
26272
|
+
throw new AppwriteException('Missing required parameter: "size"');
|
|
26273
|
+
}
|
|
26274
|
+
if (typeof required === 'undefined') {
|
|
26275
|
+
throw new AppwriteException('Missing required parameter: "required"');
|
|
26276
|
+
}
|
|
26277
|
+
const apiPath = '/tablesdb/{databaseId}/tables/{tableId}/columns/varchar'.replace('{databaseId}', databaseId).replace('{tableId}', tableId);
|
|
26278
|
+
const payload = {};
|
|
26279
|
+
if (typeof key !== 'undefined') {
|
|
26280
|
+
payload['key'] = key;
|
|
26281
|
+
}
|
|
26282
|
+
if (typeof size !== 'undefined') {
|
|
26283
|
+
payload['size'] = size;
|
|
26284
|
+
}
|
|
26285
|
+
if (typeof required !== 'undefined') {
|
|
26286
|
+
payload['required'] = required;
|
|
26287
|
+
}
|
|
26288
|
+
if (typeof xdefault !== 'undefined') {
|
|
26289
|
+
payload['default'] = xdefault;
|
|
26290
|
+
}
|
|
26291
|
+
if (typeof array !== 'undefined') {
|
|
26292
|
+
payload['array'] = array;
|
|
26293
|
+
}
|
|
26294
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
26295
|
+
const apiHeaders = {
|
|
26296
|
+
'content-type': 'application/json',
|
|
26297
|
+
};
|
|
26298
|
+
return this.client.call('post', uri, apiHeaders, payload);
|
|
26299
|
+
}
|
|
26300
|
+
updateVarcharColumn(paramsOrFirst, ...rest) {
|
|
26301
|
+
let params;
|
|
26302
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
26303
|
+
params = (paramsOrFirst || {});
|
|
26304
|
+
}
|
|
26305
|
+
else {
|
|
26306
|
+
params = {
|
|
26307
|
+
databaseId: paramsOrFirst,
|
|
26308
|
+
tableId: rest[0],
|
|
26309
|
+
key: rest[1],
|
|
26310
|
+
required: rest[2],
|
|
26311
|
+
xdefault: rest[3],
|
|
26312
|
+
size: rest[4],
|
|
26313
|
+
newKey: rest[5]
|
|
26314
|
+
};
|
|
26315
|
+
}
|
|
26316
|
+
const databaseId = params.databaseId;
|
|
26317
|
+
const tableId = params.tableId;
|
|
26318
|
+
const key = params.key;
|
|
26319
|
+
const required = params.required;
|
|
26320
|
+
const xdefault = params.xdefault;
|
|
26321
|
+
const size = params.size;
|
|
26322
|
+
const newKey = params.newKey;
|
|
26323
|
+
if (typeof databaseId === 'undefined') {
|
|
26324
|
+
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
26325
|
+
}
|
|
26326
|
+
if (typeof tableId === 'undefined') {
|
|
26327
|
+
throw new AppwriteException('Missing required parameter: "tableId"');
|
|
26328
|
+
}
|
|
26329
|
+
if (typeof key === 'undefined') {
|
|
26330
|
+
throw new AppwriteException('Missing required parameter: "key"');
|
|
26331
|
+
}
|
|
26332
|
+
if (typeof required === 'undefined') {
|
|
26333
|
+
throw new AppwriteException('Missing required parameter: "required"');
|
|
26334
|
+
}
|
|
26335
|
+
if (typeof xdefault === 'undefined') {
|
|
26336
|
+
throw new AppwriteException('Missing required parameter: "xdefault"');
|
|
26337
|
+
}
|
|
26338
|
+
const apiPath = '/tablesdb/{databaseId}/tables/{tableId}/columns/varchar/{key}'.replace('{databaseId}', databaseId).replace('{tableId}', tableId).replace('{key}', key);
|
|
26339
|
+
const payload = {};
|
|
26340
|
+
if (typeof required !== 'undefined') {
|
|
26341
|
+
payload['required'] = required;
|
|
26342
|
+
}
|
|
26343
|
+
if (typeof xdefault !== 'undefined') {
|
|
26344
|
+
payload['default'] = xdefault;
|
|
26345
|
+
}
|
|
26346
|
+
if (typeof size !== 'undefined') {
|
|
26347
|
+
payload['size'] = size;
|
|
26348
|
+
}
|
|
26349
|
+
if (typeof newKey !== 'undefined') {
|
|
26350
|
+
payload['newKey'] = newKey;
|
|
26351
|
+
}
|
|
26352
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
26353
|
+
const apiHeaders = {
|
|
26354
|
+
'content-type': 'application/json',
|
|
26355
|
+
};
|
|
26356
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
26357
|
+
}
|
|
25194
26358
|
getColumn(paramsOrFirst, ...rest) {
|
|
25195
26359
|
let params;
|
|
25196
26360
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
@@ -29156,18 +30320,21 @@
|
|
|
29156
30320
|
return id === "*" ? "account" : `account.${id}`;
|
|
29157
30321
|
}
|
|
29158
30322
|
// Global events
|
|
29159
|
-
static
|
|
30323
|
+
static documents() {
|
|
29160
30324
|
return "documents";
|
|
29161
30325
|
}
|
|
29162
|
-
static
|
|
30326
|
+
static rows() {
|
|
29163
30327
|
return "rows";
|
|
29164
30328
|
}
|
|
29165
|
-
static
|
|
30329
|
+
static files() {
|
|
29166
30330
|
return "files";
|
|
29167
30331
|
}
|
|
29168
|
-
static
|
|
30332
|
+
static executions() {
|
|
29169
30333
|
return "executions";
|
|
29170
30334
|
}
|
|
30335
|
+
static teams() {
|
|
30336
|
+
return "teams";
|
|
30337
|
+
}
|
|
29171
30338
|
}
|
|
29172
30339
|
|
|
29173
30340
|
exports.Condition = void 0;
|
|
@@ -29435,6 +30602,73 @@
|
|
|
29435
30602
|
*/
|
|
29436
30603
|
Operator.dateSetNow = () => new Operator("dateSetNow", []).toString();
|
|
29437
30604
|
|
|
30605
|
+
exports.Scopes = void 0;
|
|
30606
|
+
(function (Scopes) {
|
|
30607
|
+
Scopes["SessionsWrite"] = "sessions.write";
|
|
30608
|
+
Scopes["UsersRead"] = "users.read";
|
|
30609
|
+
Scopes["UsersWrite"] = "users.write";
|
|
30610
|
+
Scopes["TeamsRead"] = "teams.read";
|
|
30611
|
+
Scopes["TeamsWrite"] = "teams.write";
|
|
30612
|
+
Scopes["DatabasesRead"] = "databases.read";
|
|
30613
|
+
Scopes["DatabasesWrite"] = "databases.write";
|
|
30614
|
+
Scopes["CollectionsRead"] = "collections.read";
|
|
30615
|
+
Scopes["CollectionsWrite"] = "collections.write";
|
|
30616
|
+
Scopes["TablesRead"] = "tables.read";
|
|
30617
|
+
Scopes["TablesWrite"] = "tables.write";
|
|
30618
|
+
Scopes["AttributesRead"] = "attributes.read";
|
|
30619
|
+
Scopes["AttributesWrite"] = "attributes.write";
|
|
30620
|
+
Scopes["ColumnsRead"] = "columns.read";
|
|
30621
|
+
Scopes["ColumnsWrite"] = "columns.write";
|
|
30622
|
+
Scopes["IndexesRead"] = "indexes.read";
|
|
30623
|
+
Scopes["IndexesWrite"] = "indexes.write";
|
|
30624
|
+
Scopes["DocumentsRead"] = "documents.read";
|
|
30625
|
+
Scopes["DocumentsWrite"] = "documents.write";
|
|
30626
|
+
Scopes["RowsRead"] = "rows.read";
|
|
30627
|
+
Scopes["RowsWrite"] = "rows.write";
|
|
30628
|
+
Scopes["FilesRead"] = "files.read";
|
|
30629
|
+
Scopes["FilesWrite"] = "files.write";
|
|
30630
|
+
Scopes["BucketsRead"] = "buckets.read";
|
|
30631
|
+
Scopes["BucketsWrite"] = "buckets.write";
|
|
30632
|
+
Scopes["FunctionsRead"] = "functions.read";
|
|
30633
|
+
Scopes["FunctionsWrite"] = "functions.write";
|
|
30634
|
+
Scopes["SitesRead"] = "sites.read";
|
|
30635
|
+
Scopes["SitesWrite"] = "sites.write";
|
|
30636
|
+
Scopes["LogRead"] = "log.read";
|
|
30637
|
+
Scopes["LogWrite"] = "log.write";
|
|
30638
|
+
Scopes["ExecutionRead"] = "execution.read";
|
|
30639
|
+
Scopes["ExecutionWrite"] = "execution.write";
|
|
30640
|
+
Scopes["LocaleRead"] = "locale.read";
|
|
30641
|
+
Scopes["AvatarsRead"] = "avatars.read";
|
|
30642
|
+
Scopes["HealthRead"] = "health.read";
|
|
30643
|
+
Scopes["ProvidersRead"] = "providers.read";
|
|
30644
|
+
Scopes["ProvidersWrite"] = "providers.write";
|
|
30645
|
+
Scopes["MessagesRead"] = "messages.read";
|
|
30646
|
+
Scopes["MessagesWrite"] = "messages.write";
|
|
30647
|
+
Scopes["TopicsRead"] = "topics.read";
|
|
30648
|
+
Scopes["TopicsWrite"] = "topics.write";
|
|
30649
|
+
Scopes["SubscribersRead"] = "subscribers.read";
|
|
30650
|
+
Scopes["SubscribersWrite"] = "subscribers.write";
|
|
30651
|
+
Scopes["TargetsRead"] = "targets.read";
|
|
30652
|
+
Scopes["TargetsWrite"] = "targets.write";
|
|
30653
|
+
Scopes["RulesRead"] = "rules.read";
|
|
30654
|
+
Scopes["RulesWrite"] = "rules.write";
|
|
30655
|
+
Scopes["MigrationsRead"] = "migrations.read";
|
|
30656
|
+
Scopes["MigrationsWrite"] = "migrations.write";
|
|
30657
|
+
Scopes["VcsRead"] = "vcs.read";
|
|
30658
|
+
Scopes["VcsWrite"] = "vcs.write";
|
|
30659
|
+
Scopes["AssistantRead"] = "assistant.read";
|
|
30660
|
+
Scopes["TokensRead"] = "tokens.read";
|
|
30661
|
+
Scopes["TokensWrite"] = "tokens.write";
|
|
30662
|
+
Scopes["PoliciesWrite"] = "policies.write";
|
|
30663
|
+
Scopes["PoliciesRead"] = "policies.read";
|
|
30664
|
+
Scopes["ArchivesRead"] = "archives.read";
|
|
30665
|
+
Scopes["ArchivesWrite"] = "archives.write";
|
|
30666
|
+
Scopes["RestorationsRead"] = "restorations.read";
|
|
30667
|
+
Scopes["RestorationsWrite"] = "restorations.write";
|
|
30668
|
+
Scopes["DomainsRead"] = "domains.read";
|
|
30669
|
+
Scopes["DomainsWrite"] = "domains.write";
|
|
30670
|
+
})(exports.Scopes || (exports.Scopes = {}));
|
|
30671
|
+
|
|
29438
30672
|
exports.AuthenticatorType = void 0;
|
|
29439
30673
|
(function (AuthenticatorType) {
|
|
29440
30674
|
AuthenticatorType["Totp"] = "totp";
|
|
@@ -30160,6 +31394,30 @@
|
|
|
30160
31394
|
Timezone["Utc"] = "utc";
|
|
30161
31395
|
})(exports.Timezone || (exports.Timezone = {}));
|
|
30162
31396
|
|
|
31397
|
+
exports.BrowserPermission = void 0;
|
|
31398
|
+
(function (BrowserPermission) {
|
|
31399
|
+
BrowserPermission["Geolocation"] = "geolocation";
|
|
31400
|
+
BrowserPermission["Camera"] = "camera";
|
|
31401
|
+
BrowserPermission["Microphone"] = "microphone";
|
|
31402
|
+
BrowserPermission["Notifications"] = "notifications";
|
|
31403
|
+
BrowserPermission["Midi"] = "midi";
|
|
31404
|
+
BrowserPermission["Push"] = "push";
|
|
31405
|
+
BrowserPermission["Clipboardread"] = "clipboard-read";
|
|
31406
|
+
BrowserPermission["Clipboardwrite"] = "clipboard-write";
|
|
31407
|
+
BrowserPermission["Paymenthandler"] = "payment-handler";
|
|
31408
|
+
BrowserPermission["Usb"] = "usb";
|
|
31409
|
+
BrowserPermission["Bluetooth"] = "bluetooth";
|
|
31410
|
+
BrowserPermission["Accelerometer"] = "accelerometer";
|
|
31411
|
+
BrowserPermission["Gyroscope"] = "gyroscope";
|
|
31412
|
+
BrowserPermission["Magnetometer"] = "magnetometer";
|
|
31413
|
+
BrowserPermission["Ambientlightsensor"] = "ambient-light-sensor";
|
|
31414
|
+
BrowserPermission["Backgroundsync"] = "background-sync";
|
|
31415
|
+
BrowserPermission["Persistentstorage"] = "persistent-storage";
|
|
31416
|
+
BrowserPermission["Screenwakelock"] = "screen-wake-lock";
|
|
31417
|
+
BrowserPermission["Webshare"] = "web-share";
|
|
31418
|
+
BrowserPermission["Xrspatialtracking"] = "xr-spatial-tracking";
|
|
31419
|
+
})(exports.BrowserPermission || (exports.BrowserPermission = {}));
|
|
31420
|
+
|
|
30163
31421
|
exports.ImageFormat = void 0;
|
|
30164
31422
|
(function (ImageFormat) {
|
|
30165
31423
|
ImageFormat["Jpg"] = "jpg";
|
|
@@ -30171,6 +31429,13 @@
|
|
|
30171
31429
|
ImageFormat["Gif"] = "gif";
|
|
30172
31430
|
})(exports.ImageFormat || (exports.ImageFormat = {}));
|
|
30173
31431
|
|
|
31432
|
+
exports.Services = void 0;
|
|
31433
|
+
(function (Services) {
|
|
31434
|
+
Services["Databases"] = "databases";
|
|
31435
|
+
Services["Functions"] = "functions";
|
|
31436
|
+
Services["Storage"] = "storage";
|
|
31437
|
+
})(exports.Services || (exports.Services = {}));
|
|
31438
|
+
|
|
30174
31439
|
exports.Platform = void 0;
|
|
30175
31440
|
(function (Platform) {
|
|
30176
31441
|
Platform["Appwrite"] = "appwrite";
|
|
@@ -30212,6 +31477,12 @@
|
|
|
30212
31477
|
IndexType["Spatial"] = "spatial";
|
|
30213
31478
|
})(exports.IndexType || (exports.IndexType = {}));
|
|
30214
31479
|
|
|
31480
|
+
exports.OrderBy = void 0;
|
|
31481
|
+
(function (OrderBy) {
|
|
31482
|
+
OrderBy["Asc"] = "asc";
|
|
31483
|
+
OrderBy["Desc"] = "desc";
|
|
31484
|
+
})(exports.OrderBy || (exports.OrderBy = {}));
|
|
31485
|
+
|
|
30215
31486
|
exports.FilterType = void 0;
|
|
30216
31487
|
(function (FilterType) {
|
|
30217
31488
|
FilterType["Premium"] = "premium";
|
|
@@ -30286,6 +31557,87 @@
|
|
|
30286
31557
|
Runtime["Flutter335"] = "flutter-3.35";
|
|
30287
31558
|
})(exports.Runtime || (exports.Runtime = {}));
|
|
30288
31559
|
|
|
31560
|
+
exports.Runtimes = void 0;
|
|
31561
|
+
(function (Runtimes) {
|
|
31562
|
+
Runtimes["Node145"] = "node-14.5";
|
|
31563
|
+
Runtimes["Node160"] = "node-16.0";
|
|
31564
|
+
Runtimes["Node180"] = "node-18.0";
|
|
31565
|
+
Runtimes["Node190"] = "node-19.0";
|
|
31566
|
+
Runtimes["Node200"] = "node-20.0";
|
|
31567
|
+
Runtimes["Node210"] = "node-21.0";
|
|
31568
|
+
Runtimes["Node22"] = "node-22";
|
|
31569
|
+
Runtimes["Php80"] = "php-8.0";
|
|
31570
|
+
Runtimes["Php81"] = "php-8.1";
|
|
31571
|
+
Runtimes["Php82"] = "php-8.2";
|
|
31572
|
+
Runtimes["Php83"] = "php-8.3";
|
|
31573
|
+
Runtimes["Ruby30"] = "ruby-3.0";
|
|
31574
|
+
Runtimes["Ruby31"] = "ruby-3.1";
|
|
31575
|
+
Runtimes["Ruby32"] = "ruby-3.2";
|
|
31576
|
+
Runtimes["Ruby33"] = "ruby-3.3";
|
|
31577
|
+
Runtimes["Python38"] = "python-3.8";
|
|
31578
|
+
Runtimes["Python39"] = "python-3.9";
|
|
31579
|
+
Runtimes["Python310"] = "python-3.10";
|
|
31580
|
+
Runtimes["Python311"] = "python-3.11";
|
|
31581
|
+
Runtimes["Python312"] = "python-3.12";
|
|
31582
|
+
Runtimes["Pythonml311"] = "python-ml-3.11";
|
|
31583
|
+
Runtimes["Pythonml312"] = "python-ml-3.12";
|
|
31584
|
+
Runtimes["Deno140"] = "deno-1.40";
|
|
31585
|
+
Runtimes["Deno146"] = "deno-1.46";
|
|
31586
|
+
Runtimes["Deno20"] = "deno-2.0";
|
|
31587
|
+
Runtimes["Dart215"] = "dart-2.15";
|
|
31588
|
+
Runtimes["Dart216"] = "dart-2.16";
|
|
31589
|
+
Runtimes["Dart217"] = "dart-2.17";
|
|
31590
|
+
Runtimes["Dart218"] = "dart-2.18";
|
|
31591
|
+
Runtimes["Dart219"] = "dart-2.19";
|
|
31592
|
+
Runtimes["Dart30"] = "dart-3.0";
|
|
31593
|
+
Runtimes["Dart31"] = "dart-3.1";
|
|
31594
|
+
Runtimes["Dart33"] = "dart-3.3";
|
|
31595
|
+
Runtimes["Dart35"] = "dart-3.5";
|
|
31596
|
+
Runtimes["Dart38"] = "dart-3.8";
|
|
31597
|
+
Runtimes["Dart39"] = "dart-3.9";
|
|
31598
|
+
Runtimes["Dotnet60"] = "dotnet-6.0";
|
|
31599
|
+
Runtimes["Dotnet70"] = "dotnet-7.0";
|
|
31600
|
+
Runtimes["Dotnet80"] = "dotnet-8.0";
|
|
31601
|
+
Runtimes["Java80"] = "java-8.0";
|
|
31602
|
+
Runtimes["Java110"] = "java-11.0";
|
|
31603
|
+
Runtimes["Java170"] = "java-17.0";
|
|
31604
|
+
Runtimes["Java180"] = "java-18.0";
|
|
31605
|
+
Runtimes["Java210"] = "java-21.0";
|
|
31606
|
+
Runtimes["Java22"] = "java-22";
|
|
31607
|
+
Runtimes["Swift55"] = "swift-5.5";
|
|
31608
|
+
Runtimes["Swift58"] = "swift-5.8";
|
|
31609
|
+
Runtimes["Swift59"] = "swift-5.9";
|
|
31610
|
+
Runtimes["Swift510"] = "swift-5.10";
|
|
31611
|
+
Runtimes["Kotlin16"] = "kotlin-1.6";
|
|
31612
|
+
Runtimes["Kotlin18"] = "kotlin-1.8";
|
|
31613
|
+
Runtimes["Kotlin19"] = "kotlin-1.9";
|
|
31614
|
+
Runtimes["Kotlin20"] = "kotlin-2.0";
|
|
31615
|
+
Runtimes["Cpp17"] = "cpp-17";
|
|
31616
|
+
Runtimes["Cpp20"] = "cpp-20";
|
|
31617
|
+
Runtimes["Bun10"] = "bun-1.0";
|
|
31618
|
+
Runtimes["Bun11"] = "bun-1.1";
|
|
31619
|
+
Runtimes["Go123"] = "go-1.23";
|
|
31620
|
+
Runtimes["Static1"] = "static-1";
|
|
31621
|
+
Runtimes["Flutter324"] = "flutter-3.24";
|
|
31622
|
+
Runtimes["Flutter327"] = "flutter-3.27";
|
|
31623
|
+
Runtimes["Flutter329"] = "flutter-3.29";
|
|
31624
|
+
Runtimes["Flutter332"] = "flutter-3.32";
|
|
31625
|
+
Runtimes["Flutter335"] = "flutter-3.35";
|
|
31626
|
+
})(exports.Runtimes || (exports.Runtimes = {}));
|
|
31627
|
+
|
|
31628
|
+
exports.UseCases = void 0;
|
|
31629
|
+
(function (UseCases) {
|
|
31630
|
+
UseCases["Portfolio"] = "portfolio";
|
|
31631
|
+
UseCases["Starter"] = "starter";
|
|
31632
|
+
UseCases["Events"] = "events";
|
|
31633
|
+
UseCases["Ecommerce"] = "ecommerce";
|
|
31634
|
+
UseCases["Documentation"] = "documentation";
|
|
31635
|
+
UseCases["Blog"] = "blog";
|
|
31636
|
+
UseCases["Ai"] = "ai";
|
|
31637
|
+
UseCases["Forms"] = "forms";
|
|
31638
|
+
UseCases["Dashboard"] = "dashboard";
|
|
31639
|
+
})(exports.UseCases || (exports.UseCases = {}));
|
|
31640
|
+
|
|
30289
31641
|
exports.TemplateReferenceType = void 0;
|
|
30290
31642
|
(function (TemplateReferenceType) {
|
|
30291
31643
|
TemplateReferenceType["Branch"] = "branch";
|
|
@@ -30347,24 +31699,20 @@
|
|
|
30347
31699
|
SmtpEncryption["Tls"] = "tls";
|
|
30348
31700
|
})(exports.SmtpEncryption || (exports.SmtpEncryption = {}));
|
|
30349
31701
|
|
|
30350
|
-
exports.
|
|
30351
|
-
(function (
|
|
30352
|
-
|
|
30353
|
-
|
|
30354
|
-
|
|
30355
|
-
|
|
30356
|
-
|
|
30357
|
-
|
|
30358
|
-
|
|
30359
|
-
|
|
30360
|
-
|
|
30361
|
-
|
|
30362
|
-
|
|
30363
|
-
|
|
30364
|
-
BillingPlan["Imaginetier11100"] = "imagine-tier-1-1100";
|
|
30365
|
-
BillingPlan["Imaginetier11650"] = "imagine-tier-1-1650";
|
|
30366
|
-
BillingPlan["Imaginetier12200"] = "imagine-tier-1-2200";
|
|
30367
|
-
})(exports.BillingPlan || (exports.BillingPlan = {}));
|
|
31702
|
+
exports.Resources = void 0;
|
|
31703
|
+
(function (Resources) {
|
|
31704
|
+
Resources["User"] = "user";
|
|
31705
|
+
Resources["Database"] = "database";
|
|
31706
|
+
Resources["Table"] = "table";
|
|
31707
|
+
Resources["Column"] = "column";
|
|
31708
|
+
Resources["Index"] = "index";
|
|
31709
|
+
Resources["Row"] = "row";
|
|
31710
|
+
Resources["Document"] = "document";
|
|
31711
|
+
Resources["Attribute"] = "attribute";
|
|
31712
|
+
Resources["Collection"] = "collection";
|
|
31713
|
+
Resources["Bucket"] = "bucket";
|
|
31714
|
+
Resources["File"] = "file";
|
|
31715
|
+
})(exports.Resources || (exports.Resources = {}));
|
|
30368
31716
|
|
|
30369
31717
|
exports.ProjectUsageRange = void 0;
|
|
30370
31718
|
(function (ProjectUsageRange) {
|
|
@@ -30844,6 +32192,25 @@
|
|
|
30844
32192
|
Adapter["Ssr"] = "ssr";
|
|
30845
32193
|
})(exports.Adapter || (exports.Adapter = {}));
|
|
30846
32194
|
|
|
32195
|
+
exports.Frameworks = void 0;
|
|
32196
|
+
(function (Frameworks) {
|
|
32197
|
+
Frameworks["Analog"] = "analog";
|
|
32198
|
+
Frameworks["Angular"] = "angular";
|
|
32199
|
+
Frameworks["Nextjs"] = "nextjs";
|
|
32200
|
+
Frameworks["React"] = "react";
|
|
32201
|
+
Frameworks["Nuxt"] = "nuxt";
|
|
32202
|
+
Frameworks["Vue"] = "vue";
|
|
32203
|
+
Frameworks["Sveltekit"] = "sveltekit";
|
|
32204
|
+
Frameworks["Astro"] = "astro";
|
|
32205
|
+
Frameworks["Tanstackstart"] = "tanstack-start";
|
|
32206
|
+
Frameworks["Remix"] = "remix";
|
|
32207
|
+
Frameworks["Lynx"] = "lynx";
|
|
32208
|
+
Frameworks["Flutter"] = "flutter";
|
|
32209
|
+
Frameworks["Reactnative"] = "react-native";
|
|
32210
|
+
Frameworks["Vite"] = "vite";
|
|
32211
|
+
Frameworks["Other"] = "other";
|
|
32212
|
+
})(exports.Frameworks || (exports.Frameworks = {}));
|
|
32213
|
+
|
|
30847
32214
|
exports.Compression = void 0;
|
|
30848
32215
|
(function (Compression) {
|
|
30849
32216
|
Compression["None"] = "none";
|
|
@@ -30864,6 +32231,15 @@
|
|
|
30864
32231
|
ImageGravity["Bottomright"] = "bottom-right";
|
|
30865
32232
|
})(exports.ImageGravity || (exports.ImageGravity = {}));
|
|
30866
32233
|
|
|
32234
|
+
exports.Roles = void 0;
|
|
32235
|
+
(function (Roles) {
|
|
32236
|
+
Roles["Developer"] = "developer";
|
|
32237
|
+
Roles["Editor"] = "editor";
|
|
32238
|
+
Roles["Analyst"] = "analyst";
|
|
32239
|
+
Roles["Billing"] = "billing";
|
|
32240
|
+
Roles["Owner"] = "owner";
|
|
32241
|
+
})(exports.Roles || (exports.Roles = {}));
|
|
32242
|
+
|
|
30867
32243
|
exports.PasswordHash = void 0;
|
|
30868
32244
|
(function (PasswordHash) {
|
|
30869
32245
|
PasswordHash["Sha1"] = "sha1";
|
|
@@ -30931,6 +32307,7 @@
|
|
|
30931
32307
|
DeploymentStatus["Processing"] = "processing";
|
|
30932
32308
|
DeploymentStatus["Building"] = "building";
|
|
30933
32309
|
DeploymentStatus["Ready"] = "ready";
|
|
32310
|
+
DeploymentStatus["Canceled"] = "canceled";
|
|
30934
32311
|
DeploymentStatus["Failed"] = "failed";
|
|
30935
32312
|
})(exports.DeploymentStatus || (exports.DeploymentStatus = {}));
|
|
30936
32313
|
|