@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/cjs/sdk.js
CHANGED
|
@@ -472,20 +472,9 @@ Query.notTouches = (attribute, values) => new Query("notTouches", attribute, [va
|
|
|
472
472
|
|
|
473
473
|
const JSONbigParser = JSONbigModule__default["default"]({ storeAsString: false });
|
|
474
474
|
const JSONbigSerializer = JSONbigModule__default["default"]({ useNativeBigInt: true });
|
|
475
|
-
/**
|
|
476
|
-
* Converts BigNumber objects from json-bigint to native types.
|
|
477
|
-
* - Integer BigNumbers → BigInt (if unsafe) or number (if safe)
|
|
478
|
-
* - Float BigNumbers → number
|
|
479
|
-
* - Strings remain strings (never converted to BigNumber by json-bigint)
|
|
480
|
-
*/
|
|
481
475
|
const MAX_SAFE = BigInt(Number.MAX_SAFE_INTEGER);
|
|
482
476
|
const MIN_SAFE = BigInt(Number.MIN_SAFE_INTEGER);
|
|
483
|
-
function
|
|
484
|
-
if (value === null || value === undefined)
|
|
485
|
-
return value;
|
|
486
|
-
if (Array.isArray(value)) {
|
|
487
|
-
return value.map(convertBigNumbers);
|
|
488
|
-
}
|
|
477
|
+
function reviver(_key, value) {
|
|
489
478
|
if (BigNumber__default["default"].isBigNumber(value)) {
|
|
490
479
|
if (value.isInteger()) {
|
|
491
480
|
const str = value.toFixed();
|
|
@@ -495,20 +484,12 @@ function convertBigNumbers(value) {
|
|
|
495
484
|
}
|
|
496
485
|
return bi;
|
|
497
486
|
}
|
|
498
|
-
// float
|
|
499
487
|
return value.toNumber();
|
|
500
488
|
}
|
|
501
|
-
if (typeof value === 'object') {
|
|
502
|
-
const result = {};
|
|
503
|
-
for (const [k, v] of Object.entries(value)) {
|
|
504
|
-
result[k] = convertBigNumbers(v);
|
|
505
|
-
}
|
|
506
|
-
return result;
|
|
507
|
-
}
|
|
508
489
|
return value;
|
|
509
490
|
}
|
|
510
491
|
const JSONbig = {
|
|
511
|
-
parse: (text) =>
|
|
492
|
+
parse: (text) => JSONbigParser.parse(text, reviver),
|
|
512
493
|
stringify: JSONbigSerializer.stringify
|
|
513
494
|
};
|
|
514
495
|
/**
|
|
@@ -560,7 +541,7 @@ class Client {
|
|
|
560
541
|
'x-sdk-name': 'Console',
|
|
561
542
|
'x-sdk-platform': 'console',
|
|
562
543
|
'x-sdk-language': 'web',
|
|
563
|
-
'x-sdk-version': '2.
|
|
544
|
+
'x-sdk-version': '2.2.0',
|
|
564
545
|
'X-Appwrite-Response-Format': '1.8.0',
|
|
565
546
|
};
|
|
566
547
|
this.realtime = {
|
|
@@ -1491,6 +1472,149 @@ class Account {
|
|
|
1491
1472
|
};
|
|
1492
1473
|
return this.client.call('post', uri, apiHeaders, payload);
|
|
1493
1474
|
}
|
|
1475
|
+
listKeys(paramsOrFirst) {
|
|
1476
|
+
let params;
|
|
1477
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
1478
|
+
params = (paramsOrFirst || {});
|
|
1479
|
+
}
|
|
1480
|
+
else {
|
|
1481
|
+
params = {
|
|
1482
|
+
total: paramsOrFirst
|
|
1483
|
+
};
|
|
1484
|
+
}
|
|
1485
|
+
const total = params.total;
|
|
1486
|
+
const apiPath = '/account/keys';
|
|
1487
|
+
const payload = {};
|
|
1488
|
+
if (typeof total !== 'undefined') {
|
|
1489
|
+
payload['total'] = total;
|
|
1490
|
+
}
|
|
1491
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
1492
|
+
const apiHeaders = {};
|
|
1493
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
1494
|
+
}
|
|
1495
|
+
createKey(paramsOrFirst, ...rest) {
|
|
1496
|
+
let params;
|
|
1497
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
1498
|
+
params = (paramsOrFirst || {});
|
|
1499
|
+
}
|
|
1500
|
+
else {
|
|
1501
|
+
params = {
|
|
1502
|
+
name: paramsOrFirst,
|
|
1503
|
+
scopes: rest[0],
|
|
1504
|
+
expire: rest[1]
|
|
1505
|
+
};
|
|
1506
|
+
}
|
|
1507
|
+
const name = params.name;
|
|
1508
|
+
const scopes = params.scopes;
|
|
1509
|
+
const expire = params.expire;
|
|
1510
|
+
if (typeof name === 'undefined') {
|
|
1511
|
+
throw new AppwriteException('Missing required parameter: "name"');
|
|
1512
|
+
}
|
|
1513
|
+
if (typeof scopes === 'undefined') {
|
|
1514
|
+
throw new AppwriteException('Missing required parameter: "scopes"');
|
|
1515
|
+
}
|
|
1516
|
+
const apiPath = '/account/keys';
|
|
1517
|
+
const payload = {};
|
|
1518
|
+
if (typeof name !== 'undefined') {
|
|
1519
|
+
payload['name'] = name;
|
|
1520
|
+
}
|
|
1521
|
+
if (typeof scopes !== 'undefined') {
|
|
1522
|
+
payload['scopes'] = scopes;
|
|
1523
|
+
}
|
|
1524
|
+
if (typeof expire !== 'undefined') {
|
|
1525
|
+
payload['expire'] = expire;
|
|
1526
|
+
}
|
|
1527
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
1528
|
+
const apiHeaders = {
|
|
1529
|
+
'content-type': 'application/json',
|
|
1530
|
+
};
|
|
1531
|
+
return this.client.call('post', uri, apiHeaders, payload);
|
|
1532
|
+
}
|
|
1533
|
+
getKey(paramsOrFirst) {
|
|
1534
|
+
let params;
|
|
1535
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
1536
|
+
params = (paramsOrFirst || {});
|
|
1537
|
+
}
|
|
1538
|
+
else {
|
|
1539
|
+
params = {
|
|
1540
|
+
keyId: paramsOrFirst
|
|
1541
|
+
};
|
|
1542
|
+
}
|
|
1543
|
+
const keyId = params.keyId;
|
|
1544
|
+
if (typeof keyId === 'undefined') {
|
|
1545
|
+
throw new AppwriteException('Missing required parameter: "keyId"');
|
|
1546
|
+
}
|
|
1547
|
+
const apiPath = '/account/keys/{keyId}'.replace('{keyId}', keyId);
|
|
1548
|
+
const payload = {};
|
|
1549
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
1550
|
+
const apiHeaders = {};
|
|
1551
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
1552
|
+
}
|
|
1553
|
+
updateKey(paramsOrFirst, ...rest) {
|
|
1554
|
+
let params;
|
|
1555
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
1556
|
+
params = (paramsOrFirst || {});
|
|
1557
|
+
}
|
|
1558
|
+
else {
|
|
1559
|
+
params = {
|
|
1560
|
+
keyId: paramsOrFirst,
|
|
1561
|
+
name: rest[0],
|
|
1562
|
+
scopes: rest[1],
|
|
1563
|
+
expire: rest[2]
|
|
1564
|
+
};
|
|
1565
|
+
}
|
|
1566
|
+
const keyId = params.keyId;
|
|
1567
|
+
const name = params.name;
|
|
1568
|
+
const scopes = params.scopes;
|
|
1569
|
+
const expire = params.expire;
|
|
1570
|
+
if (typeof keyId === 'undefined') {
|
|
1571
|
+
throw new AppwriteException('Missing required parameter: "keyId"');
|
|
1572
|
+
}
|
|
1573
|
+
if (typeof name === 'undefined') {
|
|
1574
|
+
throw new AppwriteException('Missing required parameter: "name"');
|
|
1575
|
+
}
|
|
1576
|
+
if (typeof scopes === 'undefined') {
|
|
1577
|
+
throw new AppwriteException('Missing required parameter: "scopes"');
|
|
1578
|
+
}
|
|
1579
|
+
const apiPath = '/account/keys/{keyId}'.replace('{keyId}', keyId);
|
|
1580
|
+
const payload = {};
|
|
1581
|
+
if (typeof name !== 'undefined') {
|
|
1582
|
+
payload['name'] = name;
|
|
1583
|
+
}
|
|
1584
|
+
if (typeof scopes !== 'undefined') {
|
|
1585
|
+
payload['scopes'] = scopes;
|
|
1586
|
+
}
|
|
1587
|
+
if (typeof expire !== 'undefined') {
|
|
1588
|
+
payload['expire'] = expire;
|
|
1589
|
+
}
|
|
1590
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
1591
|
+
const apiHeaders = {
|
|
1592
|
+
'content-type': 'application/json',
|
|
1593
|
+
};
|
|
1594
|
+
return this.client.call('put', uri, apiHeaders, payload);
|
|
1595
|
+
}
|
|
1596
|
+
deleteKey(paramsOrFirst) {
|
|
1597
|
+
let params;
|
|
1598
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
1599
|
+
params = (paramsOrFirst || {});
|
|
1600
|
+
}
|
|
1601
|
+
else {
|
|
1602
|
+
params = {
|
|
1603
|
+
keyId: paramsOrFirst
|
|
1604
|
+
};
|
|
1605
|
+
}
|
|
1606
|
+
const keyId = params.keyId;
|
|
1607
|
+
if (typeof keyId === 'undefined') {
|
|
1608
|
+
throw new AppwriteException('Missing required parameter: "keyId"');
|
|
1609
|
+
}
|
|
1610
|
+
const apiPath = '/account/keys/{keyId}'.replace('{keyId}', keyId);
|
|
1611
|
+
const payload = {};
|
|
1612
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
1613
|
+
const apiHeaders = {
|
|
1614
|
+
'content-type': 'application/json',
|
|
1615
|
+
};
|
|
1616
|
+
return this.client.call('delete', uri, apiHeaders, payload);
|
|
1617
|
+
}
|
|
1494
1618
|
listLogs(paramsOrFirst, ...rest) {
|
|
1495
1619
|
let params;
|
|
1496
1620
|
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
@@ -3426,7 +3550,7 @@ class Backups {
|
|
|
3426
3550
|
}
|
|
3427
3551
|
createArchive(paramsOrFirst, ...rest) {
|
|
3428
3552
|
let params;
|
|
3429
|
-
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
3553
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && 'services' in paramsOrFirst)) {
|
|
3430
3554
|
params = (paramsOrFirst || {});
|
|
3431
3555
|
}
|
|
3432
3556
|
else {
|
|
@@ -3906,25 +4030,15 @@ class Console {
|
|
|
3906
4030
|
};
|
|
3907
4031
|
return this.client.call('post', uri, apiHeaders, payload);
|
|
3908
4032
|
}
|
|
3909
|
-
|
|
3910
|
-
|
|
3911
|
-
|
|
3912
|
-
|
|
3913
|
-
|
|
3914
|
-
|
|
3915
|
-
|
|
3916
|
-
organizationId: paramsOrFirst
|
|
3917
|
-
};
|
|
3918
|
-
}
|
|
3919
|
-
const organizationId = params.organizationId;
|
|
3920
|
-
if (typeof organizationId === 'undefined') {
|
|
3921
|
-
throw new AppwriteException('Missing required parameter: "organizationId"');
|
|
3922
|
-
}
|
|
4033
|
+
/**
|
|
4034
|
+
* Get all available regions for the console.
|
|
4035
|
+
*
|
|
4036
|
+
* @throws {AppwriteException}
|
|
4037
|
+
* @returns {Promise<Models.ConsoleRegionList>}
|
|
4038
|
+
*/
|
|
4039
|
+
listRegions() {
|
|
3923
4040
|
const apiPath = '/console/regions';
|
|
3924
4041
|
const payload = {};
|
|
3925
|
-
if (typeof organizationId !== 'undefined') {
|
|
3926
|
-
payload['organizationId'] = organizationId;
|
|
3927
|
-
}
|
|
3928
4042
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
3929
4043
|
const apiHeaders = {};
|
|
3930
4044
|
return this.client.call('get', uri, apiHeaders, payload);
|
|
@@ -4377,9 +4491,6 @@ class Databases {
|
|
|
4377
4491
|
if (typeof databaseId === 'undefined') {
|
|
4378
4492
|
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
4379
4493
|
}
|
|
4380
|
-
if (typeof name === 'undefined') {
|
|
4381
|
-
throw new AppwriteException('Missing required parameter: "name"');
|
|
4382
|
-
}
|
|
4383
4494
|
const apiPath = '/databases/{databaseId}'.replace('{databaseId}', databaseId);
|
|
4384
4495
|
const payload = {};
|
|
4385
4496
|
if (typeof name !== 'undefined') {
|
|
@@ -4566,9 +4677,6 @@ class Databases {
|
|
|
4566
4677
|
if (typeof collectionId === 'undefined') {
|
|
4567
4678
|
throw new AppwriteException('Missing required parameter: "collectionId"');
|
|
4568
4679
|
}
|
|
4569
|
-
if (typeof name === 'undefined') {
|
|
4570
|
-
throw new AppwriteException('Missing required parameter: "name"');
|
|
4571
|
-
}
|
|
4572
4680
|
const apiPath = '/databases/{databaseId}/collections/{collectionId}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);
|
|
4573
4681
|
const payload = {};
|
|
4574
4682
|
if (typeof name !== 'undefined') {
|
|
@@ -5547,7 +5655,7 @@ class Databases {
|
|
|
5547
5655
|
};
|
|
5548
5656
|
return this.client.call('patch', uri, apiHeaders, payload);
|
|
5549
5657
|
}
|
|
5550
|
-
|
|
5658
|
+
createLongtextAttribute(paramsOrFirst, ...rest) {
|
|
5551
5659
|
let params;
|
|
5552
5660
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
5553
5661
|
params = (paramsOrFirst || {});
|
|
@@ -5558,7 +5666,8 @@ class Databases {
|
|
|
5558
5666
|
collectionId: rest[0],
|
|
5559
5667
|
key: rest[1],
|
|
5560
5668
|
required: rest[2],
|
|
5561
|
-
xdefault: rest[3]
|
|
5669
|
+
xdefault: rest[3],
|
|
5670
|
+
array: rest[4]
|
|
5562
5671
|
};
|
|
5563
5672
|
}
|
|
5564
5673
|
const databaseId = params.databaseId;
|
|
@@ -5566,6 +5675,7 @@ class Databases {
|
|
|
5566
5675
|
const key = params.key;
|
|
5567
5676
|
const required = params.required;
|
|
5568
5677
|
const xdefault = params.xdefault;
|
|
5678
|
+
const array = params.array;
|
|
5569
5679
|
if (typeof databaseId === 'undefined') {
|
|
5570
5680
|
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
5571
5681
|
}
|
|
@@ -5578,7 +5688,7 @@ class Databases {
|
|
|
5578
5688
|
if (typeof required === 'undefined') {
|
|
5579
5689
|
throw new AppwriteException('Missing required parameter: "required"');
|
|
5580
5690
|
}
|
|
5581
|
-
const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/
|
|
5691
|
+
const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/longtext'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);
|
|
5582
5692
|
const payload = {};
|
|
5583
5693
|
if (typeof key !== 'undefined') {
|
|
5584
5694
|
payload['key'] = key;
|
|
@@ -5589,13 +5699,16 @@ class Databases {
|
|
|
5589
5699
|
if (typeof xdefault !== 'undefined') {
|
|
5590
5700
|
payload['default'] = xdefault;
|
|
5591
5701
|
}
|
|
5702
|
+
if (typeof array !== 'undefined') {
|
|
5703
|
+
payload['array'] = array;
|
|
5704
|
+
}
|
|
5592
5705
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
5593
5706
|
const apiHeaders = {
|
|
5594
5707
|
'content-type': 'application/json',
|
|
5595
5708
|
};
|
|
5596
5709
|
return this.client.call('post', uri, apiHeaders, payload);
|
|
5597
5710
|
}
|
|
5598
|
-
|
|
5711
|
+
updateLongtextAttribute(paramsOrFirst, ...rest) {
|
|
5599
5712
|
let params;
|
|
5600
5713
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
5601
5714
|
params = (paramsOrFirst || {});
|
|
@@ -5628,7 +5741,10 @@ class Databases {
|
|
|
5628
5741
|
if (typeof required === 'undefined') {
|
|
5629
5742
|
throw new AppwriteException('Missing required parameter: "required"');
|
|
5630
5743
|
}
|
|
5631
|
-
|
|
5744
|
+
if (typeof xdefault === 'undefined') {
|
|
5745
|
+
throw new AppwriteException('Missing required parameter: "xdefault"');
|
|
5746
|
+
}
|
|
5747
|
+
const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/longtext/{key}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{key}', key);
|
|
5632
5748
|
const payload = {};
|
|
5633
5749
|
if (typeof required !== 'undefined') {
|
|
5634
5750
|
payload['required'] = required;
|
|
@@ -5645,7 +5761,7 @@ class Databases {
|
|
|
5645
5761
|
};
|
|
5646
5762
|
return this.client.call('patch', uri, apiHeaders, payload);
|
|
5647
5763
|
}
|
|
5648
|
-
|
|
5764
|
+
createMediumtextAttribute(paramsOrFirst, ...rest) {
|
|
5649
5765
|
let params;
|
|
5650
5766
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
5651
5767
|
params = (paramsOrFirst || {});
|
|
@@ -5656,7 +5772,8 @@ class Databases {
|
|
|
5656
5772
|
collectionId: rest[0],
|
|
5657
5773
|
key: rest[1],
|
|
5658
5774
|
required: rest[2],
|
|
5659
|
-
xdefault: rest[3]
|
|
5775
|
+
xdefault: rest[3],
|
|
5776
|
+
array: rest[4]
|
|
5660
5777
|
};
|
|
5661
5778
|
}
|
|
5662
5779
|
const databaseId = params.databaseId;
|
|
@@ -5664,6 +5781,7 @@ class Databases {
|
|
|
5664
5781
|
const key = params.key;
|
|
5665
5782
|
const required = params.required;
|
|
5666
5783
|
const xdefault = params.xdefault;
|
|
5784
|
+
const array = params.array;
|
|
5667
5785
|
if (typeof databaseId === 'undefined') {
|
|
5668
5786
|
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
5669
5787
|
}
|
|
@@ -5676,7 +5794,7 @@ class Databases {
|
|
|
5676
5794
|
if (typeof required === 'undefined') {
|
|
5677
5795
|
throw new AppwriteException('Missing required parameter: "required"');
|
|
5678
5796
|
}
|
|
5679
|
-
const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/
|
|
5797
|
+
const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/mediumtext'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);
|
|
5680
5798
|
const payload = {};
|
|
5681
5799
|
if (typeof key !== 'undefined') {
|
|
5682
5800
|
payload['key'] = key;
|
|
@@ -5687,13 +5805,16 @@ class Databases {
|
|
|
5687
5805
|
if (typeof xdefault !== 'undefined') {
|
|
5688
5806
|
payload['default'] = xdefault;
|
|
5689
5807
|
}
|
|
5808
|
+
if (typeof array !== 'undefined') {
|
|
5809
|
+
payload['array'] = array;
|
|
5810
|
+
}
|
|
5690
5811
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
5691
5812
|
const apiHeaders = {
|
|
5692
5813
|
'content-type': 'application/json',
|
|
5693
5814
|
};
|
|
5694
5815
|
return this.client.call('post', uri, apiHeaders, payload);
|
|
5695
5816
|
}
|
|
5696
|
-
|
|
5817
|
+
updateMediumtextAttribute(paramsOrFirst, ...rest) {
|
|
5697
5818
|
let params;
|
|
5698
5819
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
5699
5820
|
params = (paramsOrFirst || {});
|
|
@@ -5726,7 +5847,10 @@ class Databases {
|
|
|
5726
5847
|
if (typeof required === 'undefined') {
|
|
5727
5848
|
throw new AppwriteException('Missing required parameter: "required"');
|
|
5728
5849
|
}
|
|
5729
|
-
|
|
5850
|
+
if (typeof xdefault === 'undefined') {
|
|
5851
|
+
throw new AppwriteException('Missing required parameter: "xdefault"');
|
|
5852
|
+
}
|
|
5853
|
+
const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/mediumtext/{key}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{key}', key);
|
|
5730
5854
|
const payload = {};
|
|
5731
5855
|
if (typeof required !== 'undefined') {
|
|
5732
5856
|
payload['required'] = required;
|
|
@@ -5743,7 +5867,7 @@ class Databases {
|
|
|
5743
5867
|
};
|
|
5744
5868
|
return this.client.call('patch', uri, apiHeaders, payload);
|
|
5745
5869
|
}
|
|
5746
|
-
|
|
5870
|
+
createPointAttribute(paramsOrFirst, ...rest) {
|
|
5747
5871
|
let params;
|
|
5748
5872
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
5749
5873
|
params = (paramsOrFirst || {});
|
|
@@ -5752,61 +5876,487 @@ class Databases {
|
|
|
5752
5876
|
params = {
|
|
5753
5877
|
databaseId: paramsOrFirst,
|
|
5754
5878
|
collectionId: rest[0],
|
|
5755
|
-
|
|
5756
|
-
|
|
5757
|
-
|
|
5758
|
-
key: rest[4],
|
|
5759
|
-
twoWayKey: rest[5],
|
|
5760
|
-
onDelete: rest[6]
|
|
5879
|
+
key: rest[1],
|
|
5880
|
+
required: rest[2],
|
|
5881
|
+
xdefault: rest[3]
|
|
5761
5882
|
};
|
|
5762
5883
|
}
|
|
5763
5884
|
const databaseId = params.databaseId;
|
|
5764
5885
|
const collectionId = params.collectionId;
|
|
5765
|
-
const relatedCollectionId = params.relatedCollectionId;
|
|
5766
|
-
const type = params.type;
|
|
5767
|
-
const twoWay = params.twoWay;
|
|
5768
5886
|
const key = params.key;
|
|
5769
|
-
const
|
|
5770
|
-
const
|
|
5887
|
+
const required = params.required;
|
|
5888
|
+
const xdefault = params.xdefault;
|
|
5771
5889
|
if (typeof databaseId === 'undefined') {
|
|
5772
5890
|
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
5773
5891
|
}
|
|
5774
5892
|
if (typeof collectionId === 'undefined') {
|
|
5775
5893
|
throw new AppwriteException('Missing required parameter: "collectionId"');
|
|
5776
5894
|
}
|
|
5777
|
-
if (typeof
|
|
5778
|
-
throw new AppwriteException('Missing required parameter: "
|
|
5895
|
+
if (typeof key === 'undefined') {
|
|
5896
|
+
throw new AppwriteException('Missing required parameter: "key"');
|
|
5779
5897
|
}
|
|
5780
|
-
if (typeof
|
|
5781
|
-
throw new AppwriteException('Missing required parameter: "
|
|
5898
|
+
if (typeof required === 'undefined') {
|
|
5899
|
+
throw new AppwriteException('Missing required parameter: "required"');
|
|
5782
5900
|
}
|
|
5783
|
-
const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/
|
|
5901
|
+
const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/point'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);
|
|
5784
5902
|
const payload = {};
|
|
5785
|
-
if (typeof
|
|
5786
|
-
payload['
|
|
5903
|
+
if (typeof key !== 'undefined') {
|
|
5904
|
+
payload['key'] = key;
|
|
5905
|
+
}
|
|
5906
|
+
if (typeof required !== 'undefined') {
|
|
5907
|
+
payload['required'] = required;
|
|
5908
|
+
}
|
|
5909
|
+
if (typeof xdefault !== 'undefined') {
|
|
5910
|
+
payload['default'] = xdefault;
|
|
5911
|
+
}
|
|
5912
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
5913
|
+
const apiHeaders = {
|
|
5914
|
+
'content-type': 'application/json',
|
|
5915
|
+
};
|
|
5916
|
+
return this.client.call('post', uri, apiHeaders, payload);
|
|
5917
|
+
}
|
|
5918
|
+
updatePointAttribute(paramsOrFirst, ...rest) {
|
|
5919
|
+
let params;
|
|
5920
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
5921
|
+
params = (paramsOrFirst || {});
|
|
5922
|
+
}
|
|
5923
|
+
else {
|
|
5924
|
+
params = {
|
|
5925
|
+
databaseId: paramsOrFirst,
|
|
5926
|
+
collectionId: rest[0],
|
|
5927
|
+
key: rest[1],
|
|
5928
|
+
required: rest[2],
|
|
5929
|
+
xdefault: rest[3],
|
|
5930
|
+
newKey: rest[4]
|
|
5931
|
+
};
|
|
5932
|
+
}
|
|
5933
|
+
const databaseId = params.databaseId;
|
|
5934
|
+
const collectionId = params.collectionId;
|
|
5935
|
+
const key = params.key;
|
|
5936
|
+
const required = params.required;
|
|
5937
|
+
const xdefault = params.xdefault;
|
|
5938
|
+
const newKey = params.newKey;
|
|
5939
|
+
if (typeof databaseId === 'undefined') {
|
|
5940
|
+
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
5941
|
+
}
|
|
5942
|
+
if (typeof collectionId === 'undefined') {
|
|
5943
|
+
throw new AppwriteException('Missing required parameter: "collectionId"');
|
|
5944
|
+
}
|
|
5945
|
+
if (typeof key === 'undefined') {
|
|
5946
|
+
throw new AppwriteException('Missing required parameter: "key"');
|
|
5947
|
+
}
|
|
5948
|
+
if (typeof required === 'undefined') {
|
|
5949
|
+
throw new AppwriteException('Missing required parameter: "required"');
|
|
5950
|
+
}
|
|
5951
|
+
const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/point/{key}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{key}', key);
|
|
5952
|
+
const payload = {};
|
|
5953
|
+
if (typeof required !== 'undefined') {
|
|
5954
|
+
payload['required'] = required;
|
|
5955
|
+
}
|
|
5956
|
+
if (typeof xdefault !== 'undefined') {
|
|
5957
|
+
payload['default'] = xdefault;
|
|
5958
|
+
}
|
|
5959
|
+
if (typeof newKey !== 'undefined') {
|
|
5960
|
+
payload['newKey'] = newKey;
|
|
5961
|
+
}
|
|
5962
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
5963
|
+
const apiHeaders = {
|
|
5964
|
+
'content-type': 'application/json',
|
|
5965
|
+
};
|
|
5966
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
5967
|
+
}
|
|
5968
|
+
createPolygonAttribute(paramsOrFirst, ...rest) {
|
|
5969
|
+
let params;
|
|
5970
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
5971
|
+
params = (paramsOrFirst || {});
|
|
5972
|
+
}
|
|
5973
|
+
else {
|
|
5974
|
+
params = {
|
|
5975
|
+
databaseId: paramsOrFirst,
|
|
5976
|
+
collectionId: rest[0],
|
|
5977
|
+
key: rest[1],
|
|
5978
|
+
required: rest[2],
|
|
5979
|
+
xdefault: rest[3]
|
|
5980
|
+
};
|
|
5981
|
+
}
|
|
5982
|
+
const databaseId = params.databaseId;
|
|
5983
|
+
const collectionId = params.collectionId;
|
|
5984
|
+
const key = params.key;
|
|
5985
|
+
const required = params.required;
|
|
5986
|
+
const xdefault = params.xdefault;
|
|
5987
|
+
if (typeof databaseId === 'undefined') {
|
|
5988
|
+
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
5989
|
+
}
|
|
5990
|
+
if (typeof collectionId === 'undefined') {
|
|
5991
|
+
throw new AppwriteException('Missing required parameter: "collectionId"');
|
|
5992
|
+
}
|
|
5993
|
+
if (typeof key === 'undefined') {
|
|
5994
|
+
throw new AppwriteException('Missing required parameter: "key"');
|
|
5995
|
+
}
|
|
5996
|
+
if (typeof required === 'undefined') {
|
|
5997
|
+
throw new AppwriteException('Missing required parameter: "required"');
|
|
5998
|
+
}
|
|
5999
|
+
const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/polygon'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);
|
|
6000
|
+
const payload = {};
|
|
6001
|
+
if (typeof key !== 'undefined') {
|
|
6002
|
+
payload['key'] = key;
|
|
6003
|
+
}
|
|
6004
|
+
if (typeof required !== 'undefined') {
|
|
6005
|
+
payload['required'] = required;
|
|
6006
|
+
}
|
|
6007
|
+
if (typeof xdefault !== 'undefined') {
|
|
6008
|
+
payload['default'] = xdefault;
|
|
6009
|
+
}
|
|
6010
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
6011
|
+
const apiHeaders = {
|
|
6012
|
+
'content-type': 'application/json',
|
|
6013
|
+
};
|
|
6014
|
+
return this.client.call('post', uri, apiHeaders, payload);
|
|
6015
|
+
}
|
|
6016
|
+
updatePolygonAttribute(paramsOrFirst, ...rest) {
|
|
6017
|
+
let params;
|
|
6018
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
6019
|
+
params = (paramsOrFirst || {});
|
|
6020
|
+
}
|
|
6021
|
+
else {
|
|
6022
|
+
params = {
|
|
6023
|
+
databaseId: paramsOrFirst,
|
|
6024
|
+
collectionId: rest[0],
|
|
6025
|
+
key: rest[1],
|
|
6026
|
+
required: rest[2],
|
|
6027
|
+
xdefault: rest[3],
|
|
6028
|
+
newKey: rest[4]
|
|
6029
|
+
};
|
|
6030
|
+
}
|
|
6031
|
+
const databaseId = params.databaseId;
|
|
6032
|
+
const collectionId = params.collectionId;
|
|
6033
|
+
const key = params.key;
|
|
6034
|
+
const required = params.required;
|
|
6035
|
+
const xdefault = params.xdefault;
|
|
6036
|
+
const newKey = params.newKey;
|
|
6037
|
+
if (typeof databaseId === 'undefined') {
|
|
6038
|
+
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
6039
|
+
}
|
|
6040
|
+
if (typeof collectionId === 'undefined') {
|
|
6041
|
+
throw new AppwriteException('Missing required parameter: "collectionId"');
|
|
6042
|
+
}
|
|
6043
|
+
if (typeof key === 'undefined') {
|
|
6044
|
+
throw new AppwriteException('Missing required parameter: "key"');
|
|
6045
|
+
}
|
|
6046
|
+
if (typeof required === 'undefined') {
|
|
6047
|
+
throw new AppwriteException('Missing required parameter: "required"');
|
|
6048
|
+
}
|
|
6049
|
+
const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/polygon/{key}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{key}', key);
|
|
6050
|
+
const payload = {};
|
|
6051
|
+
if (typeof required !== 'undefined') {
|
|
6052
|
+
payload['required'] = required;
|
|
6053
|
+
}
|
|
6054
|
+
if (typeof xdefault !== 'undefined') {
|
|
6055
|
+
payload['default'] = xdefault;
|
|
6056
|
+
}
|
|
6057
|
+
if (typeof newKey !== 'undefined') {
|
|
6058
|
+
payload['newKey'] = newKey;
|
|
6059
|
+
}
|
|
6060
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
6061
|
+
const apiHeaders = {
|
|
6062
|
+
'content-type': 'application/json',
|
|
6063
|
+
};
|
|
6064
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
6065
|
+
}
|
|
6066
|
+
createRelationshipAttribute(paramsOrFirst, ...rest) {
|
|
6067
|
+
let params;
|
|
6068
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
6069
|
+
params = (paramsOrFirst || {});
|
|
6070
|
+
}
|
|
6071
|
+
else {
|
|
6072
|
+
params = {
|
|
6073
|
+
databaseId: paramsOrFirst,
|
|
6074
|
+
collectionId: rest[0],
|
|
6075
|
+
relatedCollectionId: rest[1],
|
|
6076
|
+
type: rest[2],
|
|
6077
|
+
twoWay: rest[3],
|
|
6078
|
+
key: rest[4],
|
|
6079
|
+
twoWayKey: rest[5],
|
|
6080
|
+
onDelete: rest[6]
|
|
6081
|
+
};
|
|
6082
|
+
}
|
|
6083
|
+
const databaseId = params.databaseId;
|
|
6084
|
+
const collectionId = params.collectionId;
|
|
6085
|
+
const relatedCollectionId = params.relatedCollectionId;
|
|
6086
|
+
const type = params.type;
|
|
6087
|
+
const twoWay = params.twoWay;
|
|
6088
|
+
const key = params.key;
|
|
6089
|
+
const twoWayKey = params.twoWayKey;
|
|
6090
|
+
const onDelete = params.onDelete;
|
|
6091
|
+
if (typeof databaseId === 'undefined') {
|
|
6092
|
+
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
6093
|
+
}
|
|
6094
|
+
if (typeof collectionId === 'undefined') {
|
|
6095
|
+
throw new AppwriteException('Missing required parameter: "collectionId"');
|
|
6096
|
+
}
|
|
6097
|
+
if (typeof relatedCollectionId === 'undefined') {
|
|
6098
|
+
throw new AppwriteException('Missing required parameter: "relatedCollectionId"');
|
|
6099
|
+
}
|
|
6100
|
+
if (typeof type === 'undefined') {
|
|
6101
|
+
throw new AppwriteException('Missing required parameter: "type"');
|
|
6102
|
+
}
|
|
6103
|
+
const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/relationship'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);
|
|
6104
|
+
const payload = {};
|
|
6105
|
+
if (typeof relatedCollectionId !== 'undefined') {
|
|
6106
|
+
payload['relatedCollectionId'] = relatedCollectionId;
|
|
6107
|
+
}
|
|
6108
|
+
if (typeof type !== 'undefined') {
|
|
6109
|
+
payload['type'] = type;
|
|
6110
|
+
}
|
|
6111
|
+
if (typeof twoWay !== 'undefined') {
|
|
6112
|
+
payload['twoWay'] = twoWay;
|
|
6113
|
+
}
|
|
6114
|
+
if (typeof key !== 'undefined') {
|
|
6115
|
+
payload['key'] = key;
|
|
6116
|
+
}
|
|
6117
|
+
if (typeof twoWayKey !== 'undefined') {
|
|
6118
|
+
payload['twoWayKey'] = twoWayKey;
|
|
6119
|
+
}
|
|
6120
|
+
if (typeof onDelete !== 'undefined') {
|
|
6121
|
+
payload['onDelete'] = onDelete;
|
|
6122
|
+
}
|
|
6123
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
6124
|
+
const apiHeaders = {
|
|
6125
|
+
'content-type': 'application/json',
|
|
6126
|
+
};
|
|
6127
|
+
return this.client.call('post', uri, apiHeaders, payload);
|
|
6128
|
+
}
|
|
6129
|
+
createStringAttribute(paramsOrFirst, ...rest) {
|
|
6130
|
+
let params;
|
|
6131
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
6132
|
+
params = (paramsOrFirst || {});
|
|
6133
|
+
}
|
|
6134
|
+
else {
|
|
6135
|
+
params = {
|
|
6136
|
+
databaseId: paramsOrFirst,
|
|
6137
|
+
collectionId: rest[0],
|
|
6138
|
+
key: rest[1],
|
|
6139
|
+
size: rest[2],
|
|
6140
|
+
required: rest[3],
|
|
6141
|
+
xdefault: rest[4],
|
|
6142
|
+
array: rest[5],
|
|
6143
|
+
encrypt: rest[6]
|
|
6144
|
+
};
|
|
6145
|
+
}
|
|
6146
|
+
const databaseId = params.databaseId;
|
|
6147
|
+
const collectionId = params.collectionId;
|
|
6148
|
+
const key = params.key;
|
|
6149
|
+
const size = params.size;
|
|
6150
|
+
const required = params.required;
|
|
6151
|
+
const xdefault = params.xdefault;
|
|
6152
|
+
const array = params.array;
|
|
6153
|
+
const encrypt = params.encrypt;
|
|
6154
|
+
if (typeof databaseId === 'undefined') {
|
|
6155
|
+
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
6156
|
+
}
|
|
6157
|
+
if (typeof collectionId === 'undefined') {
|
|
6158
|
+
throw new AppwriteException('Missing required parameter: "collectionId"');
|
|
6159
|
+
}
|
|
6160
|
+
if (typeof key === 'undefined') {
|
|
6161
|
+
throw new AppwriteException('Missing required parameter: "key"');
|
|
6162
|
+
}
|
|
6163
|
+
if (typeof size === 'undefined') {
|
|
6164
|
+
throw new AppwriteException('Missing required parameter: "size"');
|
|
6165
|
+
}
|
|
6166
|
+
if (typeof required === 'undefined') {
|
|
6167
|
+
throw new AppwriteException('Missing required parameter: "required"');
|
|
6168
|
+
}
|
|
6169
|
+
const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/string'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);
|
|
6170
|
+
const payload = {};
|
|
6171
|
+
if (typeof key !== 'undefined') {
|
|
6172
|
+
payload['key'] = key;
|
|
6173
|
+
}
|
|
6174
|
+
if (typeof size !== 'undefined') {
|
|
6175
|
+
payload['size'] = size;
|
|
6176
|
+
}
|
|
6177
|
+
if (typeof required !== 'undefined') {
|
|
6178
|
+
payload['required'] = required;
|
|
6179
|
+
}
|
|
6180
|
+
if (typeof xdefault !== 'undefined') {
|
|
6181
|
+
payload['default'] = xdefault;
|
|
6182
|
+
}
|
|
6183
|
+
if (typeof array !== 'undefined') {
|
|
6184
|
+
payload['array'] = array;
|
|
6185
|
+
}
|
|
6186
|
+
if (typeof encrypt !== 'undefined') {
|
|
6187
|
+
payload['encrypt'] = encrypt;
|
|
6188
|
+
}
|
|
6189
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
6190
|
+
const apiHeaders = {
|
|
6191
|
+
'content-type': 'application/json',
|
|
6192
|
+
};
|
|
6193
|
+
return this.client.call('post', uri, apiHeaders, payload);
|
|
6194
|
+
}
|
|
6195
|
+
updateStringAttribute(paramsOrFirst, ...rest) {
|
|
6196
|
+
let params;
|
|
6197
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
6198
|
+
params = (paramsOrFirst || {});
|
|
6199
|
+
}
|
|
6200
|
+
else {
|
|
6201
|
+
params = {
|
|
6202
|
+
databaseId: paramsOrFirst,
|
|
6203
|
+
collectionId: rest[0],
|
|
6204
|
+
key: rest[1],
|
|
6205
|
+
required: rest[2],
|
|
6206
|
+
xdefault: rest[3],
|
|
6207
|
+
size: rest[4],
|
|
6208
|
+
newKey: rest[5]
|
|
6209
|
+
};
|
|
6210
|
+
}
|
|
6211
|
+
const databaseId = params.databaseId;
|
|
6212
|
+
const collectionId = params.collectionId;
|
|
6213
|
+
const key = params.key;
|
|
6214
|
+
const required = params.required;
|
|
6215
|
+
const xdefault = params.xdefault;
|
|
6216
|
+
const size = params.size;
|
|
6217
|
+
const newKey = params.newKey;
|
|
6218
|
+
if (typeof databaseId === 'undefined') {
|
|
6219
|
+
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
6220
|
+
}
|
|
6221
|
+
if (typeof collectionId === 'undefined') {
|
|
6222
|
+
throw new AppwriteException('Missing required parameter: "collectionId"');
|
|
6223
|
+
}
|
|
6224
|
+
if (typeof key === 'undefined') {
|
|
6225
|
+
throw new AppwriteException('Missing required parameter: "key"');
|
|
6226
|
+
}
|
|
6227
|
+
if (typeof required === 'undefined') {
|
|
6228
|
+
throw new AppwriteException('Missing required parameter: "required"');
|
|
6229
|
+
}
|
|
6230
|
+
if (typeof xdefault === 'undefined') {
|
|
6231
|
+
throw new AppwriteException('Missing required parameter: "xdefault"');
|
|
6232
|
+
}
|
|
6233
|
+
const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/string/{key}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{key}', key);
|
|
6234
|
+
const payload = {};
|
|
6235
|
+
if (typeof required !== 'undefined') {
|
|
6236
|
+
payload['required'] = required;
|
|
6237
|
+
}
|
|
6238
|
+
if (typeof xdefault !== 'undefined') {
|
|
6239
|
+
payload['default'] = xdefault;
|
|
6240
|
+
}
|
|
6241
|
+
if (typeof size !== 'undefined') {
|
|
6242
|
+
payload['size'] = size;
|
|
6243
|
+
}
|
|
6244
|
+
if (typeof newKey !== 'undefined') {
|
|
6245
|
+
payload['newKey'] = newKey;
|
|
6246
|
+
}
|
|
6247
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
6248
|
+
const apiHeaders = {
|
|
6249
|
+
'content-type': 'application/json',
|
|
6250
|
+
};
|
|
6251
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
6252
|
+
}
|
|
6253
|
+
createTextAttribute(paramsOrFirst, ...rest) {
|
|
6254
|
+
let params;
|
|
6255
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
6256
|
+
params = (paramsOrFirst || {});
|
|
6257
|
+
}
|
|
6258
|
+
else {
|
|
6259
|
+
params = {
|
|
6260
|
+
databaseId: paramsOrFirst,
|
|
6261
|
+
collectionId: rest[0],
|
|
6262
|
+
key: rest[1],
|
|
6263
|
+
required: rest[2],
|
|
6264
|
+
xdefault: rest[3],
|
|
6265
|
+
array: rest[4]
|
|
6266
|
+
};
|
|
6267
|
+
}
|
|
6268
|
+
const databaseId = params.databaseId;
|
|
6269
|
+
const collectionId = params.collectionId;
|
|
6270
|
+
const key = params.key;
|
|
6271
|
+
const required = params.required;
|
|
6272
|
+
const xdefault = params.xdefault;
|
|
6273
|
+
const array = params.array;
|
|
6274
|
+
if (typeof databaseId === 'undefined') {
|
|
6275
|
+
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
6276
|
+
}
|
|
6277
|
+
if (typeof collectionId === 'undefined') {
|
|
6278
|
+
throw new AppwriteException('Missing required parameter: "collectionId"');
|
|
6279
|
+
}
|
|
6280
|
+
if (typeof key === 'undefined') {
|
|
6281
|
+
throw new AppwriteException('Missing required parameter: "key"');
|
|
6282
|
+
}
|
|
6283
|
+
if (typeof required === 'undefined') {
|
|
6284
|
+
throw new AppwriteException('Missing required parameter: "required"');
|
|
6285
|
+
}
|
|
6286
|
+
const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/text'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);
|
|
6287
|
+
const payload = {};
|
|
6288
|
+
if (typeof key !== 'undefined') {
|
|
6289
|
+
payload['key'] = key;
|
|
6290
|
+
}
|
|
6291
|
+
if (typeof required !== 'undefined') {
|
|
6292
|
+
payload['required'] = required;
|
|
6293
|
+
}
|
|
6294
|
+
if (typeof xdefault !== 'undefined') {
|
|
6295
|
+
payload['default'] = xdefault;
|
|
6296
|
+
}
|
|
6297
|
+
if (typeof array !== 'undefined') {
|
|
6298
|
+
payload['array'] = array;
|
|
6299
|
+
}
|
|
6300
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
6301
|
+
const apiHeaders = {
|
|
6302
|
+
'content-type': 'application/json',
|
|
6303
|
+
};
|
|
6304
|
+
return this.client.call('post', uri, apiHeaders, payload);
|
|
6305
|
+
}
|
|
6306
|
+
updateTextAttribute(paramsOrFirst, ...rest) {
|
|
6307
|
+
let params;
|
|
6308
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
6309
|
+
params = (paramsOrFirst || {});
|
|
6310
|
+
}
|
|
6311
|
+
else {
|
|
6312
|
+
params = {
|
|
6313
|
+
databaseId: paramsOrFirst,
|
|
6314
|
+
collectionId: rest[0],
|
|
6315
|
+
key: rest[1],
|
|
6316
|
+
required: rest[2],
|
|
6317
|
+
xdefault: rest[3],
|
|
6318
|
+
newKey: rest[4]
|
|
6319
|
+
};
|
|
6320
|
+
}
|
|
6321
|
+
const databaseId = params.databaseId;
|
|
6322
|
+
const collectionId = params.collectionId;
|
|
6323
|
+
const key = params.key;
|
|
6324
|
+
const required = params.required;
|
|
6325
|
+
const xdefault = params.xdefault;
|
|
6326
|
+
const newKey = params.newKey;
|
|
6327
|
+
if (typeof databaseId === 'undefined') {
|
|
6328
|
+
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
6329
|
+
}
|
|
6330
|
+
if (typeof collectionId === 'undefined') {
|
|
6331
|
+
throw new AppwriteException('Missing required parameter: "collectionId"');
|
|
6332
|
+
}
|
|
6333
|
+
if (typeof key === 'undefined') {
|
|
6334
|
+
throw new AppwriteException('Missing required parameter: "key"');
|
|
5787
6335
|
}
|
|
5788
|
-
if (typeof
|
|
5789
|
-
|
|
6336
|
+
if (typeof required === 'undefined') {
|
|
6337
|
+
throw new AppwriteException('Missing required parameter: "required"');
|
|
5790
6338
|
}
|
|
5791
|
-
if (typeof
|
|
5792
|
-
|
|
6339
|
+
if (typeof xdefault === 'undefined') {
|
|
6340
|
+
throw new AppwriteException('Missing required parameter: "xdefault"');
|
|
5793
6341
|
}
|
|
5794
|
-
|
|
5795
|
-
|
|
6342
|
+
const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/text/{key}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{key}', key);
|
|
6343
|
+
const payload = {};
|
|
6344
|
+
if (typeof required !== 'undefined') {
|
|
6345
|
+
payload['required'] = required;
|
|
5796
6346
|
}
|
|
5797
|
-
if (typeof
|
|
5798
|
-
payload['
|
|
6347
|
+
if (typeof xdefault !== 'undefined') {
|
|
6348
|
+
payload['default'] = xdefault;
|
|
5799
6349
|
}
|
|
5800
|
-
if (typeof
|
|
5801
|
-
payload['
|
|
6350
|
+
if (typeof newKey !== 'undefined') {
|
|
6351
|
+
payload['newKey'] = newKey;
|
|
5802
6352
|
}
|
|
5803
6353
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
5804
6354
|
const apiHeaders = {
|
|
5805
6355
|
'content-type': 'application/json',
|
|
5806
6356
|
};
|
|
5807
|
-
return this.client.call('
|
|
6357
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
5808
6358
|
}
|
|
5809
|
-
|
|
6359
|
+
createUrlAttribute(paramsOrFirst, ...rest) {
|
|
5810
6360
|
let params;
|
|
5811
6361
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
5812
6362
|
params = (paramsOrFirst || {});
|
|
@@ -5816,21 +6366,17 @@ class Databases {
|
|
|
5816
6366
|
databaseId: paramsOrFirst,
|
|
5817
6367
|
collectionId: rest[0],
|
|
5818
6368
|
key: rest[1],
|
|
5819
|
-
|
|
5820
|
-
|
|
5821
|
-
|
|
5822
|
-
array: rest[5],
|
|
5823
|
-
encrypt: rest[6]
|
|
6369
|
+
required: rest[2],
|
|
6370
|
+
xdefault: rest[3],
|
|
6371
|
+
array: rest[4]
|
|
5824
6372
|
};
|
|
5825
6373
|
}
|
|
5826
6374
|
const databaseId = params.databaseId;
|
|
5827
6375
|
const collectionId = params.collectionId;
|
|
5828
6376
|
const key = params.key;
|
|
5829
|
-
const size = params.size;
|
|
5830
6377
|
const required = params.required;
|
|
5831
6378
|
const xdefault = params.xdefault;
|
|
5832
6379
|
const array = params.array;
|
|
5833
|
-
const encrypt = params.encrypt;
|
|
5834
6380
|
if (typeof databaseId === 'undefined') {
|
|
5835
6381
|
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
5836
6382
|
}
|
|
@@ -5840,20 +6386,14 @@ class Databases {
|
|
|
5840
6386
|
if (typeof key === 'undefined') {
|
|
5841
6387
|
throw new AppwriteException('Missing required parameter: "key"');
|
|
5842
6388
|
}
|
|
5843
|
-
if (typeof size === 'undefined') {
|
|
5844
|
-
throw new AppwriteException('Missing required parameter: "size"');
|
|
5845
|
-
}
|
|
5846
6389
|
if (typeof required === 'undefined') {
|
|
5847
6390
|
throw new AppwriteException('Missing required parameter: "required"');
|
|
5848
6391
|
}
|
|
5849
|
-
const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/
|
|
6392
|
+
const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/url'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);
|
|
5850
6393
|
const payload = {};
|
|
5851
6394
|
if (typeof key !== 'undefined') {
|
|
5852
6395
|
payload['key'] = key;
|
|
5853
6396
|
}
|
|
5854
|
-
if (typeof size !== 'undefined') {
|
|
5855
|
-
payload['size'] = size;
|
|
5856
|
-
}
|
|
5857
6397
|
if (typeof required !== 'undefined') {
|
|
5858
6398
|
payload['required'] = required;
|
|
5859
6399
|
}
|
|
@@ -5863,16 +6403,13 @@ class Databases {
|
|
|
5863
6403
|
if (typeof array !== 'undefined') {
|
|
5864
6404
|
payload['array'] = array;
|
|
5865
6405
|
}
|
|
5866
|
-
if (typeof encrypt !== 'undefined') {
|
|
5867
|
-
payload['encrypt'] = encrypt;
|
|
5868
|
-
}
|
|
5869
6406
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
5870
6407
|
const apiHeaders = {
|
|
5871
6408
|
'content-type': 'application/json',
|
|
5872
6409
|
};
|
|
5873
6410
|
return this.client.call('post', uri, apiHeaders, payload);
|
|
5874
6411
|
}
|
|
5875
|
-
|
|
6412
|
+
updateUrlAttribute(paramsOrFirst, ...rest) {
|
|
5876
6413
|
let params;
|
|
5877
6414
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
5878
6415
|
params = (paramsOrFirst || {});
|
|
@@ -5884,8 +6421,7 @@ class Databases {
|
|
|
5884
6421
|
key: rest[1],
|
|
5885
6422
|
required: rest[2],
|
|
5886
6423
|
xdefault: rest[3],
|
|
5887
|
-
|
|
5888
|
-
newKey: rest[5]
|
|
6424
|
+
newKey: rest[4]
|
|
5889
6425
|
};
|
|
5890
6426
|
}
|
|
5891
6427
|
const databaseId = params.databaseId;
|
|
@@ -5893,7 +6429,6 @@ class Databases {
|
|
|
5893
6429
|
const key = params.key;
|
|
5894
6430
|
const required = params.required;
|
|
5895
6431
|
const xdefault = params.xdefault;
|
|
5896
|
-
const size = params.size;
|
|
5897
6432
|
const newKey = params.newKey;
|
|
5898
6433
|
if (typeof databaseId === 'undefined') {
|
|
5899
6434
|
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
@@ -5910,7 +6445,7 @@ class Databases {
|
|
|
5910
6445
|
if (typeof xdefault === 'undefined') {
|
|
5911
6446
|
throw new AppwriteException('Missing required parameter: "xdefault"');
|
|
5912
6447
|
}
|
|
5913
|
-
const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/
|
|
6448
|
+
const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/url/{key}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{key}', key);
|
|
5914
6449
|
const payload = {};
|
|
5915
6450
|
if (typeof required !== 'undefined') {
|
|
5916
6451
|
payload['required'] = required;
|
|
@@ -5918,9 +6453,6 @@ class Databases {
|
|
|
5918
6453
|
if (typeof xdefault !== 'undefined') {
|
|
5919
6454
|
payload['default'] = xdefault;
|
|
5920
6455
|
}
|
|
5921
|
-
if (typeof size !== 'undefined') {
|
|
5922
|
-
payload['size'] = size;
|
|
5923
|
-
}
|
|
5924
6456
|
if (typeof newKey !== 'undefined') {
|
|
5925
6457
|
payload['newKey'] = newKey;
|
|
5926
6458
|
}
|
|
@@ -5930,7 +6462,7 @@ class Databases {
|
|
|
5930
6462
|
};
|
|
5931
6463
|
return this.client.call('patch', uri, apiHeaders, payload);
|
|
5932
6464
|
}
|
|
5933
|
-
|
|
6465
|
+
createVarcharAttribute(paramsOrFirst, ...rest) {
|
|
5934
6466
|
let params;
|
|
5935
6467
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
5936
6468
|
params = (paramsOrFirst || {});
|
|
@@ -5940,14 +6472,16 @@ class Databases {
|
|
|
5940
6472
|
databaseId: paramsOrFirst,
|
|
5941
6473
|
collectionId: rest[0],
|
|
5942
6474
|
key: rest[1],
|
|
5943
|
-
|
|
5944
|
-
|
|
5945
|
-
|
|
6475
|
+
size: rest[2],
|
|
6476
|
+
required: rest[3],
|
|
6477
|
+
xdefault: rest[4],
|
|
6478
|
+
array: rest[5]
|
|
5946
6479
|
};
|
|
5947
6480
|
}
|
|
5948
6481
|
const databaseId = params.databaseId;
|
|
5949
6482
|
const collectionId = params.collectionId;
|
|
5950
6483
|
const key = params.key;
|
|
6484
|
+
const size = params.size;
|
|
5951
6485
|
const required = params.required;
|
|
5952
6486
|
const xdefault = params.xdefault;
|
|
5953
6487
|
const array = params.array;
|
|
@@ -5960,14 +6494,20 @@ class Databases {
|
|
|
5960
6494
|
if (typeof key === 'undefined') {
|
|
5961
6495
|
throw new AppwriteException('Missing required parameter: "key"');
|
|
5962
6496
|
}
|
|
6497
|
+
if (typeof size === 'undefined') {
|
|
6498
|
+
throw new AppwriteException('Missing required parameter: "size"');
|
|
6499
|
+
}
|
|
5963
6500
|
if (typeof required === 'undefined') {
|
|
5964
6501
|
throw new AppwriteException('Missing required parameter: "required"');
|
|
5965
6502
|
}
|
|
5966
|
-
const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/
|
|
6503
|
+
const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/varchar'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);
|
|
5967
6504
|
const payload = {};
|
|
5968
6505
|
if (typeof key !== 'undefined') {
|
|
5969
6506
|
payload['key'] = key;
|
|
5970
6507
|
}
|
|
6508
|
+
if (typeof size !== 'undefined') {
|
|
6509
|
+
payload['size'] = size;
|
|
6510
|
+
}
|
|
5971
6511
|
if (typeof required !== 'undefined') {
|
|
5972
6512
|
payload['required'] = required;
|
|
5973
6513
|
}
|
|
@@ -5983,7 +6523,7 @@ class Databases {
|
|
|
5983
6523
|
};
|
|
5984
6524
|
return this.client.call('post', uri, apiHeaders, payload);
|
|
5985
6525
|
}
|
|
5986
|
-
|
|
6526
|
+
updateVarcharAttribute(paramsOrFirst, ...rest) {
|
|
5987
6527
|
let params;
|
|
5988
6528
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
5989
6529
|
params = (paramsOrFirst || {});
|
|
@@ -5995,7 +6535,8 @@ class Databases {
|
|
|
5995
6535
|
key: rest[1],
|
|
5996
6536
|
required: rest[2],
|
|
5997
6537
|
xdefault: rest[3],
|
|
5998
|
-
|
|
6538
|
+
size: rest[4],
|
|
6539
|
+
newKey: rest[5]
|
|
5999
6540
|
};
|
|
6000
6541
|
}
|
|
6001
6542
|
const databaseId = params.databaseId;
|
|
@@ -6003,6 +6544,7 @@ class Databases {
|
|
|
6003
6544
|
const key = params.key;
|
|
6004
6545
|
const required = params.required;
|
|
6005
6546
|
const xdefault = params.xdefault;
|
|
6547
|
+
const size = params.size;
|
|
6006
6548
|
const newKey = params.newKey;
|
|
6007
6549
|
if (typeof databaseId === 'undefined') {
|
|
6008
6550
|
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
@@ -6019,7 +6561,7 @@ class Databases {
|
|
|
6019
6561
|
if (typeof xdefault === 'undefined') {
|
|
6020
6562
|
throw new AppwriteException('Missing required parameter: "xdefault"');
|
|
6021
6563
|
}
|
|
6022
|
-
const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/
|
|
6564
|
+
const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/varchar/{key}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{key}', key);
|
|
6023
6565
|
const payload = {};
|
|
6024
6566
|
if (typeof required !== 'undefined') {
|
|
6025
6567
|
payload['required'] = required;
|
|
@@ -6027,6 +6569,9 @@ class Databases {
|
|
|
6027
6569
|
if (typeof xdefault !== 'undefined') {
|
|
6028
6570
|
payload['default'] = xdefault;
|
|
6029
6571
|
}
|
|
6572
|
+
if (typeof size !== 'undefined') {
|
|
6573
|
+
payload['size'] = size;
|
|
6574
|
+
}
|
|
6030
6575
|
if (typeof newKey !== 'undefined') {
|
|
6031
6576
|
payload['newKey'] = newKey;
|
|
6032
6577
|
}
|
|
@@ -8866,7 +9411,7 @@ class Functions {
|
|
|
8866
9411
|
}
|
|
8867
9412
|
listTemplates(paramsOrFirst, ...rest) {
|
|
8868
9413
|
let params;
|
|
8869
|
-
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
9414
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && 'runtimes' in paramsOrFirst)) {
|
|
8870
9415
|
params = (paramsOrFirst || {});
|
|
8871
9416
|
}
|
|
8872
9417
|
else {
|
|
@@ -13339,7 +13884,7 @@ class Migrations {
|
|
|
13339
13884
|
}
|
|
13340
13885
|
createAppwriteMigration(paramsOrFirst, ...rest) {
|
|
13341
13886
|
let params;
|
|
13342
|
-
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
13887
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && 'resources' in paramsOrFirst)) {
|
|
13343
13888
|
params = (paramsOrFirst || {});
|
|
13344
13889
|
}
|
|
13345
13890
|
else {
|
|
@@ -13388,7 +13933,7 @@ class Migrations {
|
|
|
13388
13933
|
}
|
|
13389
13934
|
getAppwriteReport(paramsOrFirst, ...rest) {
|
|
13390
13935
|
let params;
|
|
13391
|
-
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
13936
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && 'resources' in paramsOrFirst)) {
|
|
13392
13937
|
params = (paramsOrFirst || {});
|
|
13393
13938
|
}
|
|
13394
13939
|
else {
|
|
@@ -13549,7 +14094,7 @@ class Migrations {
|
|
|
13549
14094
|
}
|
|
13550
14095
|
createFirebaseMigration(paramsOrFirst, ...rest) {
|
|
13551
14096
|
let params;
|
|
13552
|
-
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
14097
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && 'resources' in paramsOrFirst)) {
|
|
13553
14098
|
params = (paramsOrFirst || {});
|
|
13554
14099
|
}
|
|
13555
14100
|
else {
|
|
@@ -13582,7 +14127,7 @@ class Migrations {
|
|
|
13582
14127
|
}
|
|
13583
14128
|
getFirebaseReport(paramsOrFirst, ...rest) {
|
|
13584
14129
|
let params;
|
|
13585
|
-
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
14130
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && 'resources' in paramsOrFirst)) {
|
|
13586
14131
|
params = (paramsOrFirst || {});
|
|
13587
14132
|
}
|
|
13588
14133
|
else {
|
|
@@ -13613,7 +14158,7 @@ class Migrations {
|
|
|
13613
14158
|
}
|
|
13614
14159
|
createNHostMigration(paramsOrFirst, ...rest) {
|
|
13615
14160
|
let params;
|
|
13616
|
-
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
14161
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && 'resources' in paramsOrFirst)) {
|
|
13617
14162
|
params = (paramsOrFirst || {});
|
|
13618
14163
|
}
|
|
13619
14164
|
else {
|
|
@@ -13691,7 +14236,7 @@ class Migrations {
|
|
|
13691
14236
|
}
|
|
13692
14237
|
getNHostReport(paramsOrFirst, ...rest) {
|
|
13693
14238
|
let params;
|
|
13694
|
-
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
14239
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && 'resources' in paramsOrFirst)) {
|
|
13695
14240
|
params = (paramsOrFirst || {});
|
|
13696
14241
|
}
|
|
13697
14242
|
else {
|
|
@@ -13767,7 +14312,7 @@ class Migrations {
|
|
|
13767
14312
|
}
|
|
13768
14313
|
createSupabaseMigration(paramsOrFirst, ...rest) {
|
|
13769
14314
|
let params;
|
|
13770
|
-
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
14315
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && 'resources' in paramsOrFirst)) {
|
|
13771
14316
|
params = (paramsOrFirst || {});
|
|
13772
14317
|
}
|
|
13773
14318
|
else {
|
|
@@ -13837,7 +14382,7 @@ class Migrations {
|
|
|
13837
14382
|
}
|
|
13838
14383
|
getSupabaseReport(paramsOrFirst, ...rest) {
|
|
13839
14384
|
let params;
|
|
13840
|
-
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
14385
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && 'resources' in paramsOrFirst)) {
|
|
13841
14386
|
params = (paramsOrFirst || {});
|
|
13842
14387
|
}
|
|
13843
14388
|
else {
|
|
@@ -14076,7 +14621,7 @@ class Organizations {
|
|
|
14076
14621
|
}
|
|
14077
14622
|
estimationCreateOrganization(paramsOrFirst, ...rest) {
|
|
14078
14623
|
let params;
|
|
14079
|
-
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst)
|
|
14624
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
14080
14625
|
params = (paramsOrFirst || {});
|
|
14081
14626
|
}
|
|
14082
14627
|
else {
|
|
@@ -14694,9 +15239,175 @@ class Organizations {
|
|
|
14694
15239
|
const apiHeaders = {
|
|
14695
15240
|
'content-type': 'application/json',
|
|
14696
15241
|
};
|
|
14697
|
-
return this.client.call('patch', uri, apiHeaders, payload);
|
|
15242
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
15243
|
+
}
|
|
15244
|
+
getInvoiceView(paramsOrFirst, ...rest) {
|
|
15245
|
+
let params;
|
|
15246
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
15247
|
+
params = (paramsOrFirst || {});
|
|
15248
|
+
}
|
|
15249
|
+
else {
|
|
15250
|
+
params = {
|
|
15251
|
+
organizationId: paramsOrFirst,
|
|
15252
|
+
invoiceId: rest[0]
|
|
15253
|
+
};
|
|
15254
|
+
}
|
|
15255
|
+
const organizationId = params.organizationId;
|
|
15256
|
+
const invoiceId = params.invoiceId;
|
|
15257
|
+
if (typeof organizationId === 'undefined') {
|
|
15258
|
+
throw new AppwriteException('Missing required parameter: "organizationId"');
|
|
15259
|
+
}
|
|
15260
|
+
if (typeof invoiceId === 'undefined') {
|
|
15261
|
+
throw new AppwriteException('Missing required parameter: "invoiceId"');
|
|
15262
|
+
}
|
|
15263
|
+
const apiPath = '/organizations/{organizationId}/invoices/{invoiceId}/view'.replace('{organizationId}', organizationId).replace('{invoiceId}', invoiceId);
|
|
15264
|
+
const payload = {};
|
|
15265
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
15266
|
+
const apiHeaders = {};
|
|
15267
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
15268
|
+
}
|
|
15269
|
+
listKeys(paramsOrFirst, ...rest) {
|
|
15270
|
+
let params;
|
|
15271
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
15272
|
+
params = (paramsOrFirst || {});
|
|
15273
|
+
}
|
|
15274
|
+
else {
|
|
15275
|
+
params = {
|
|
15276
|
+
organizationId: paramsOrFirst,
|
|
15277
|
+
total: rest[0]
|
|
15278
|
+
};
|
|
15279
|
+
}
|
|
15280
|
+
const organizationId = params.organizationId;
|
|
15281
|
+
const total = params.total;
|
|
15282
|
+
if (typeof organizationId === 'undefined') {
|
|
15283
|
+
throw new AppwriteException('Missing required parameter: "organizationId"');
|
|
15284
|
+
}
|
|
15285
|
+
const apiPath = '/organizations/{organizationId}/keys'.replace('{organizationId}', organizationId);
|
|
15286
|
+
const payload = {};
|
|
15287
|
+
if (typeof total !== 'undefined') {
|
|
15288
|
+
payload['total'] = total;
|
|
15289
|
+
}
|
|
15290
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
15291
|
+
const apiHeaders = {};
|
|
15292
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
15293
|
+
}
|
|
15294
|
+
createKey(paramsOrFirst, ...rest) {
|
|
15295
|
+
let params;
|
|
15296
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
15297
|
+
params = (paramsOrFirst || {});
|
|
15298
|
+
}
|
|
15299
|
+
else {
|
|
15300
|
+
params = {
|
|
15301
|
+
organizationId: paramsOrFirst,
|
|
15302
|
+
name: rest[0],
|
|
15303
|
+
scopes: rest[1],
|
|
15304
|
+
expire: rest[2]
|
|
15305
|
+
};
|
|
15306
|
+
}
|
|
15307
|
+
const organizationId = params.organizationId;
|
|
15308
|
+
const name = params.name;
|
|
15309
|
+
const scopes = params.scopes;
|
|
15310
|
+
const expire = params.expire;
|
|
15311
|
+
if (typeof organizationId === 'undefined') {
|
|
15312
|
+
throw new AppwriteException('Missing required parameter: "organizationId"');
|
|
15313
|
+
}
|
|
15314
|
+
if (typeof name === 'undefined') {
|
|
15315
|
+
throw new AppwriteException('Missing required parameter: "name"');
|
|
15316
|
+
}
|
|
15317
|
+
if (typeof scopes === 'undefined') {
|
|
15318
|
+
throw new AppwriteException('Missing required parameter: "scopes"');
|
|
15319
|
+
}
|
|
15320
|
+
const apiPath = '/organizations/{organizationId}/keys'.replace('{organizationId}', organizationId);
|
|
15321
|
+
const payload = {};
|
|
15322
|
+
if (typeof name !== 'undefined') {
|
|
15323
|
+
payload['name'] = name;
|
|
15324
|
+
}
|
|
15325
|
+
if (typeof scopes !== 'undefined') {
|
|
15326
|
+
payload['scopes'] = scopes;
|
|
15327
|
+
}
|
|
15328
|
+
if (typeof expire !== 'undefined') {
|
|
15329
|
+
payload['expire'] = expire;
|
|
15330
|
+
}
|
|
15331
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
15332
|
+
const apiHeaders = {
|
|
15333
|
+
'content-type': 'application/json',
|
|
15334
|
+
};
|
|
15335
|
+
return this.client.call('post', uri, apiHeaders, payload);
|
|
15336
|
+
}
|
|
15337
|
+
getKey(paramsOrFirst, ...rest) {
|
|
15338
|
+
let params;
|
|
15339
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
15340
|
+
params = (paramsOrFirst || {});
|
|
15341
|
+
}
|
|
15342
|
+
else {
|
|
15343
|
+
params = {
|
|
15344
|
+
organizationId: paramsOrFirst,
|
|
15345
|
+
keyId: rest[0]
|
|
15346
|
+
};
|
|
15347
|
+
}
|
|
15348
|
+
const organizationId = params.organizationId;
|
|
15349
|
+
const keyId = params.keyId;
|
|
15350
|
+
if (typeof organizationId === 'undefined') {
|
|
15351
|
+
throw new AppwriteException('Missing required parameter: "organizationId"');
|
|
15352
|
+
}
|
|
15353
|
+
if (typeof keyId === 'undefined') {
|
|
15354
|
+
throw new AppwriteException('Missing required parameter: "keyId"');
|
|
15355
|
+
}
|
|
15356
|
+
const apiPath = '/organizations/{organizationId}/keys/{keyId}'.replace('{organizationId}', organizationId).replace('{keyId}', keyId);
|
|
15357
|
+
const payload = {};
|
|
15358
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
15359
|
+
const apiHeaders = {};
|
|
15360
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
15361
|
+
}
|
|
15362
|
+
updateKey(paramsOrFirst, ...rest) {
|
|
15363
|
+
let params;
|
|
15364
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
15365
|
+
params = (paramsOrFirst || {});
|
|
15366
|
+
}
|
|
15367
|
+
else {
|
|
15368
|
+
params = {
|
|
15369
|
+
organizationId: paramsOrFirst,
|
|
15370
|
+
keyId: rest[0],
|
|
15371
|
+
name: rest[1],
|
|
15372
|
+
scopes: rest[2],
|
|
15373
|
+
expire: rest[3]
|
|
15374
|
+
};
|
|
15375
|
+
}
|
|
15376
|
+
const organizationId = params.organizationId;
|
|
15377
|
+
const keyId = params.keyId;
|
|
15378
|
+
const name = params.name;
|
|
15379
|
+
const scopes = params.scopes;
|
|
15380
|
+
const expire = params.expire;
|
|
15381
|
+
if (typeof organizationId === 'undefined') {
|
|
15382
|
+
throw new AppwriteException('Missing required parameter: "organizationId"');
|
|
15383
|
+
}
|
|
15384
|
+
if (typeof keyId === 'undefined') {
|
|
15385
|
+
throw new AppwriteException('Missing required parameter: "keyId"');
|
|
15386
|
+
}
|
|
15387
|
+
if (typeof name === 'undefined') {
|
|
15388
|
+
throw new AppwriteException('Missing required parameter: "name"');
|
|
15389
|
+
}
|
|
15390
|
+
if (typeof scopes === 'undefined') {
|
|
15391
|
+
throw new AppwriteException('Missing required parameter: "scopes"');
|
|
15392
|
+
}
|
|
15393
|
+
const apiPath = '/organizations/{organizationId}/keys/{keyId}'.replace('{organizationId}', organizationId).replace('{keyId}', keyId);
|
|
15394
|
+
const payload = {};
|
|
15395
|
+
if (typeof name !== 'undefined') {
|
|
15396
|
+
payload['name'] = name;
|
|
15397
|
+
}
|
|
15398
|
+
if (typeof scopes !== 'undefined') {
|
|
15399
|
+
payload['scopes'] = scopes;
|
|
15400
|
+
}
|
|
15401
|
+
if (typeof expire !== 'undefined') {
|
|
15402
|
+
payload['expire'] = expire;
|
|
15403
|
+
}
|
|
15404
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
15405
|
+
const apiHeaders = {
|
|
15406
|
+
'content-type': 'application/json',
|
|
15407
|
+
};
|
|
15408
|
+
return this.client.call('put', uri, apiHeaders, payload);
|
|
14698
15409
|
}
|
|
14699
|
-
|
|
15410
|
+
deleteKey(paramsOrFirst, ...rest) {
|
|
14700
15411
|
let params;
|
|
14701
15412
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
14702
15413
|
params = (paramsOrFirst || {});
|
|
@@ -14704,22 +15415,24 @@ class Organizations {
|
|
|
14704
15415
|
else {
|
|
14705
15416
|
params = {
|
|
14706
15417
|
organizationId: paramsOrFirst,
|
|
14707
|
-
|
|
15418
|
+
keyId: rest[0]
|
|
14708
15419
|
};
|
|
14709
15420
|
}
|
|
14710
15421
|
const organizationId = params.organizationId;
|
|
14711
|
-
const
|
|
15422
|
+
const keyId = params.keyId;
|
|
14712
15423
|
if (typeof organizationId === 'undefined') {
|
|
14713
15424
|
throw new AppwriteException('Missing required parameter: "organizationId"');
|
|
14714
15425
|
}
|
|
14715
|
-
if (typeof
|
|
14716
|
-
throw new AppwriteException('Missing required parameter: "
|
|
15426
|
+
if (typeof keyId === 'undefined') {
|
|
15427
|
+
throw new AppwriteException('Missing required parameter: "keyId"');
|
|
14717
15428
|
}
|
|
14718
|
-
const apiPath = '/organizations/{organizationId}/
|
|
15429
|
+
const apiPath = '/organizations/{organizationId}/keys/{keyId}'.replace('{organizationId}', organizationId).replace('{keyId}', keyId);
|
|
14719
15430
|
const payload = {};
|
|
14720
15431
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
14721
|
-
const apiHeaders = {
|
|
14722
|
-
|
|
15432
|
+
const apiHeaders = {
|
|
15433
|
+
'content-type': 'application/json',
|
|
15434
|
+
};
|
|
15435
|
+
return this.client.call('delete', uri, apiHeaders, payload);
|
|
14723
15436
|
}
|
|
14724
15437
|
setDefaultPaymentMethod(paramsOrFirst, ...rest) {
|
|
14725
15438
|
let params;
|
|
@@ -14979,6 +15692,26 @@ class Organizations {
|
|
|
14979
15692
|
};
|
|
14980
15693
|
return this.client.call('patch', uri, apiHeaders, payload);
|
|
14981
15694
|
}
|
|
15695
|
+
listRegions(paramsOrFirst) {
|
|
15696
|
+
let params;
|
|
15697
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
15698
|
+
params = (paramsOrFirst || {});
|
|
15699
|
+
}
|
|
15700
|
+
else {
|
|
15701
|
+
params = {
|
|
15702
|
+
organizationId: paramsOrFirst
|
|
15703
|
+
};
|
|
15704
|
+
}
|
|
15705
|
+
const organizationId = params.organizationId;
|
|
15706
|
+
if (typeof organizationId === 'undefined') {
|
|
15707
|
+
throw new AppwriteException('Missing required parameter: "organizationId"');
|
|
15708
|
+
}
|
|
15709
|
+
const apiPath = '/organizations/{organizationId}/regions'.replace('{organizationId}', organizationId);
|
|
15710
|
+
const payload = {};
|
|
15711
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
15712
|
+
const apiHeaders = {};
|
|
15713
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
15714
|
+
}
|
|
14982
15715
|
getScopes(paramsOrFirst) {
|
|
14983
15716
|
let params;
|
|
14984
15717
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
@@ -18051,7 +18784,7 @@ class Sites {
|
|
|
18051
18784
|
}
|
|
18052
18785
|
listTemplates(paramsOrFirst, ...rest) {
|
|
18053
18786
|
let params;
|
|
18054
|
-
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
18787
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && 'frameworks' in paramsOrFirst)) {
|
|
18055
18788
|
params = (paramsOrFirst || {});
|
|
18056
18789
|
}
|
|
18057
18790
|
else {
|
|
@@ -19794,9 +20527,6 @@ class TablesDB {
|
|
|
19794
20527
|
if (typeof databaseId === 'undefined') {
|
|
19795
20528
|
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
19796
20529
|
}
|
|
19797
|
-
if (typeof name === 'undefined') {
|
|
19798
|
-
throw new AppwriteException('Missing required parameter: "name"');
|
|
19799
|
-
}
|
|
19800
20530
|
const apiPath = '/tablesdb/{databaseId}'.replace('{databaseId}', databaseId);
|
|
19801
20531
|
const payload = {};
|
|
19802
20532
|
if (typeof name !== 'undefined') {
|
|
@@ -19983,9 +20713,6 @@ class TablesDB {
|
|
|
19983
20713
|
if (typeof tableId === 'undefined') {
|
|
19984
20714
|
throw new AppwriteException('Missing required parameter: "tableId"');
|
|
19985
20715
|
}
|
|
19986
|
-
if (typeof name === 'undefined') {
|
|
19987
|
-
throw new AppwriteException('Missing required parameter: "name"');
|
|
19988
|
-
}
|
|
19989
20716
|
const apiPath = '/tablesdb/{databaseId}/tables/{tableId}'.replace('{databaseId}', databaseId).replace('{tableId}', tableId);
|
|
19990
20717
|
const payload = {};
|
|
19991
20718
|
if (typeof name !== 'undefined') {
|
|
@@ -20734,20 +21461,224 @@ class TablesDB {
|
|
|
20734
21461
|
if (typeof required === 'undefined') {
|
|
20735
21462
|
throw new AppwriteException('Missing required parameter: "required"');
|
|
20736
21463
|
}
|
|
20737
|
-
if (typeof xdefault === 'undefined') {
|
|
20738
|
-
throw new AppwriteException('Missing required parameter: "xdefault"');
|
|
20739
|
-
}
|
|
20740
|
-
const apiPath = '/tablesdb/{databaseId}/tables/{tableId}/columns/integer/{key}'.replace('{databaseId}', databaseId).replace('{tableId}', tableId).replace('{key}', key);
|
|
21464
|
+
if (typeof xdefault === 'undefined') {
|
|
21465
|
+
throw new AppwriteException('Missing required parameter: "xdefault"');
|
|
21466
|
+
}
|
|
21467
|
+
const apiPath = '/tablesdb/{databaseId}/tables/{tableId}/columns/integer/{key}'.replace('{databaseId}', databaseId).replace('{tableId}', tableId).replace('{key}', key);
|
|
21468
|
+
const payload = {};
|
|
21469
|
+
if (typeof required !== 'undefined') {
|
|
21470
|
+
payload['required'] = required;
|
|
21471
|
+
}
|
|
21472
|
+
if (typeof min !== 'undefined') {
|
|
21473
|
+
payload['min'] = min;
|
|
21474
|
+
}
|
|
21475
|
+
if (typeof max !== 'undefined') {
|
|
21476
|
+
payload['max'] = max;
|
|
21477
|
+
}
|
|
21478
|
+
if (typeof xdefault !== 'undefined') {
|
|
21479
|
+
payload['default'] = xdefault;
|
|
21480
|
+
}
|
|
21481
|
+
if (typeof newKey !== 'undefined') {
|
|
21482
|
+
payload['newKey'] = newKey;
|
|
21483
|
+
}
|
|
21484
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
21485
|
+
const apiHeaders = {
|
|
21486
|
+
'content-type': 'application/json',
|
|
21487
|
+
};
|
|
21488
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
21489
|
+
}
|
|
21490
|
+
createIpColumn(paramsOrFirst, ...rest) {
|
|
21491
|
+
let params;
|
|
21492
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
21493
|
+
params = (paramsOrFirst || {});
|
|
21494
|
+
}
|
|
21495
|
+
else {
|
|
21496
|
+
params = {
|
|
21497
|
+
databaseId: paramsOrFirst,
|
|
21498
|
+
tableId: rest[0],
|
|
21499
|
+
key: rest[1],
|
|
21500
|
+
required: rest[2],
|
|
21501
|
+
xdefault: rest[3],
|
|
21502
|
+
array: rest[4]
|
|
21503
|
+
};
|
|
21504
|
+
}
|
|
21505
|
+
const databaseId = params.databaseId;
|
|
21506
|
+
const tableId = params.tableId;
|
|
21507
|
+
const key = params.key;
|
|
21508
|
+
const required = params.required;
|
|
21509
|
+
const xdefault = params.xdefault;
|
|
21510
|
+
const array = params.array;
|
|
21511
|
+
if (typeof databaseId === 'undefined') {
|
|
21512
|
+
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
21513
|
+
}
|
|
21514
|
+
if (typeof tableId === 'undefined') {
|
|
21515
|
+
throw new AppwriteException('Missing required parameter: "tableId"');
|
|
21516
|
+
}
|
|
21517
|
+
if (typeof key === 'undefined') {
|
|
21518
|
+
throw new AppwriteException('Missing required parameter: "key"');
|
|
21519
|
+
}
|
|
21520
|
+
if (typeof required === 'undefined') {
|
|
21521
|
+
throw new AppwriteException('Missing required parameter: "required"');
|
|
21522
|
+
}
|
|
21523
|
+
const apiPath = '/tablesdb/{databaseId}/tables/{tableId}/columns/ip'.replace('{databaseId}', databaseId).replace('{tableId}', tableId);
|
|
21524
|
+
const payload = {};
|
|
21525
|
+
if (typeof key !== 'undefined') {
|
|
21526
|
+
payload['key'] = key;
|
|
21527
|
+
}
|
|
21528
|
+
if (typeof required !== 'undefined') {
|
|
21529
|
+
payload['required'] = required;
|
|
21530
|
+
}
|
|
21531
|
+
if (typeof xdefault !== 'undefined') {
|
|
21532
|
+
payload['default'] = xdefault;
|
|
21533
|
+
}
|
|
21534
|
+
if (typeof array !== 'undefined') {
|
|
21535
|
+
payload['array'] = array;
|
|
21536
|
+
}
|
|
21537
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
21538
|
+
const apiHeaders = {
|
|
21539
|
+
'content-type': 'application/json',
|
|
21540
|
+
};
|
|
21541
|
+
return this.client.call('post', uri, apiHeaders, payload);
|
|
21542
|
+
}
|
|
21543
|
+
updateIpColumn(paramsOrFirst, ...rest) {
|
|
21544
|
+
let params;
|
|
21545
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
21546
|
+
params = (paramsOrFirst || {});
|
|
21547
|
+
}
|
|
21548
|
+
else {
|
|
21549
|
+
params = {
|
|
21550
|
+
databaseId: paramsOrFirst,
|
|
21551
|
+
tableId: rest[0],
|
|
21552
|
+
key: rest[1],
|
|
21553
|
+
required: rest[2],
|
|
21554
|
+
xdefault: rest[3],
|
|
21555
|
+
newKey: rest[4]
|
|
21556
|
+
};
|
|
21557
|
+
}
|
|
21558
|
+
const databaseId = params.databaseId;
|
|
21559
|
+
const tableId = params.tableId;
|
|
21560
|
+
const key = params.key;
|
|
21561
|
+
const required = params.required;
|
|
21562
|
+
const xdefault = params.xdefault;
|
|
21563
|
+
const newKey = params.newKey;
|
|
21564
|
+
if (typeof databaseId === 'undefined') {
|
|
21565
|
+
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
21566
|
+
}
|
|
21567
|
+
if (typeof tableId === 'undefined') {
|
|
21568
|
+
throw new AppwriteException('Missing required parameter: "tableId"');
|
|
21569
|
+
}
|
|
21570
|
+
if (typeof key === 'undefined') {
|
|
21571
|
+
throw new AppwriteException('Missing required parameter: "key"');
|
|
21572
|
+
}
|
|
21573
|
+
if (typeof required === 'undefined') {
|
|
21574
|
+
throw new AppwriteException('Missing required parameter: "required"');
|
|
21575
|
+
}
|
|
21576
|
+
if (typeof xdefault === 'undefined') {
|
|
21577
|
+
throw new AppwriteException('Missing required parameter: "xdefault"');
|
|
21578
|
+
}
|
|
21579
|
+
const apiPath = '/tablesdb/{databaseId}/tables/{tableId}/columns/ip/{key}'.replace('{databaseId}', databaseId).replace('{tableId}', tableId).replace('{key}', key);
|
|
21580
|
+
const payload = {};
|
|
21581
|
+
if (typeof required !== 'undefined') {
|
|
21582
|
+
payload['required'] = required;
|
|
21583
|
+
}
|
|
21584
|
+
if (typeof xdefault !== 'undefined') {
|
|
21585
|
+
payload['default'] = xdefault;
|
|
21586
|
+
}
|
|
21587
|
+
if (typeof newKey !== 'undefined') {
|
|
21588
|
+
payload['newKey'] = newKey;
|
|
21589
|
+
}
|
|
21590
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
21591
|
+
const apiHeaders = {
|
|
21592
|
+
'content-type': 'application/json',
|
|
21593
|
+
};
|
|
21594
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
21595
|
+
}
|
|
21596
|
+
createLineColumn(paramsOrFirst, ...rest) {
|
|
21597
|
+
let params;
|
|
21598
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
21599
|
+
params = (paramsOrFirst || {});
|
|
21600
|
+
}
|
|
21601
|
+
else {
|
|
21602
|
+
params = {
|
|
21603
|
+
databaseId: paramsOrFirst,
|
|
21604
|
+
tableId: rest[0],
|
|
21605
|
+
key: rest[1],
|
|
21606
|
+
required: rest[2],
|
|
21607
|
+
xdefault: rest[3]
|
|
21608
|
+
};
|
|
21609
|
+
}
|
|
21610
|
+
const databaseId = params.databaseId;
|
|
21611
|
+
const tableId = params.tableId;
|
|
21612
|
+
const key = params.key;
|
|
21613
|
+
const required = params.required;
|
|
21614
|
+
const xdefault = params.xdefault;
|
|
21615
|
+
if (typeof databaseId === 'undefined') {
|
|
21616
|
+
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
21617
|
+
}
|
|
21618
|
+
if (typeof tableId === 'undefined') {
|
|
21619
|
+
throw new AppwriteException('Missing required parameter: "tableId"');
|
|
21620
|
+
}
|
|
21621
|
+
if (typeof key === 'undefined') {
|
|
21622
|
+
throw new AppwriteException('Missing required parameter: "key"');
|
|
21623
|
+
}
|
|
21624
|
+
if (typeof required === 'undefined') {
|
|
21625
|
+
throw new AppwriteException('Missing required parameter: "required"');
|
|
21626
|
+
}
|
|
21627
|
+
const apiPath = '/tablesdb/{databaseId}/tables/{tableId}/columns/line'.replace('{databaseId}', databaseId).replace('{tableId}', tableId);
|
|
21628
|
+
const payload = {};
|
|
21629
|
+
if (typeof key !== 'undefined') {
|
|
21630
|
+
payload['key'] = key;
|
|
21631
|
+
}
|
|
21632
|
+
if (typeof required !== 'undefined') {
|
|
21633
|
+
payload['required'] = required;
|
|
21634
|
+
}
|
|
21635
|
+
if (typeof xdefault !== 'undefined') {
|
|
21636
|
+
payload['default'] = xdefault;
|
|
21637
|
+
}
|
|
21638
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
21639
|
+
const apiHeaders = {
|
|
21640
|
+
'content-type': 'application/json',
|
|
21641
|
+
};
|
|
21642
|
+
return this.client.call('post', uri, apiHeaders, payload);
|
|
21643
|
+
}
|
|
21644
|
+
updateLineColumn(paramsOrFirst, ...rest) {
|
|
21645
|
+
let params;
|
|
21646
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
21647
|
+
params = (paramsOrFirst || {});
|
|
21648
|
+
}
|
|
21649
|
+
else {
|
|
21650
|
+
params = {
|
|
21651
|
+
databaseId: paramsOrFirst,
|
|
21652
|
+
tableId: rest[0],
|
|
21653
|
+
key: rest[1],
|
|
21654
|
+
required: rest[2],
|
|
21655
|
+
xdefault: rest[3],
|
|
21656
|
+
newKey: rest[4]
|
|
21657
|
+
};
|
|
21658
|
+
}
|
|
21659
|
+
const databaseId = params.databaseId;
|
|
21660
|
+
const tableId = params.tableId;
|
|
21661
|
+
const key = params.key;
|
|
21662
|
+
const required = params.required;
|
|
21663
|
+
const xdefault = params.xdefault;
|
|
21664
|
+
const newKey = params.newKey;
|
|
21665
|
+
if (typeof databaseId === 'undefined') {
|
|
21666
|
+
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
21667
|
+
}
|
|
21668
|
+
if (typeof tableId === 'undefined') {
|
|
21669
|
+
throw new AppwriteException('Missing required parameter: "tableId"');
|
|
21670
|
+
}
|
|
21671
|
+
if (typeof key === 'undefined') {
|
|
21672
|
+
throw new AppwriteException('Missing required parameter: "key"');
|
|
21673
|
+
}
|
|
21674
|
+
if (typeof required === 'undefined') {
|
|
21675
|
+
throw new AppwriteException('Missing required parameter: "required"');
|
|
21676
|
+
}
|
|
21677
|
+
const apiPath = '/tablesdb/{databaseId}/tables/{tableId}/columns/line/{key}'.replace('{databaseId}', databaseId).replace('{tableId}', tableId).replace('{key}', key);
|
|
20741
21678
|
const payload = {};
|
|
20742
21679
|
if (typeof required !== 'undefined') {
|
|
20743
21680
|
payload['required'] = required;
|
|
20744
21681
|
}
|
|
20745
|
-
if (typeof min !== 'undefined') {
|
|
20746
|
-
payload['min'] = min;
|
|
20747
|
-
}
|
|
20748
|
-
if (typeof max !== 'undefined') {
|
|
20749
|
-
payload['max'] = max;
|
|
20750
|
-
}
|
|
20751
21682
|
if (typeof xdefault !== 'undefined') {
|
|
20752
21683
|
payload['default'] = xdefault;
|
|
20753
21684
|
}
|
|
@@ -20760,7 +21691,7 @@ class TablesDB {
|
|
|
20760
21691
|
};
|
|
20761
21692
|
return this.client.call('patch', uri, apiHeaders, payload);
|
|
20762
21693
|
}
|
|
20763
|
-
|
|
21694
|
+
createLongtextColumn(paramsOrFirst, ...rest) {
|
|
20764
21695
|
let params;
|
|
20765
21696
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
20766
21697
|
params = (paramsOrFirst || {});
|
|
@@ -20793,7 +21724,7 @@ class TablesDB {
|
|
|
20793
21724
|
if (typeof required === 'undefined') {
|
|
20794
21725
|
throw new AppwriteException('Missing required parameter: "required"');
|
|
20795
21726
|
}
|
|
20796
|
-
const apiPath = '/tablesdb/{databaseId}/tables/{tableId}/columns/
|
|
21727
|
+
const apiPath = '/tablesdb/{databaseId}/tables/{tableId}/columns/longtext'.replace('{databaseId}', databaseId).replace('{tableId}', tableId);
|
|
20797
21728
|
const payload = {};
|
|
20798
21729
|
if (typeof key !== 'undefined') {
|
|
20799
21730
|
payload['key'] = key;
|
|
@@ -20813,7 +21744,7 @@ class TablesDB {
|
|
|
20813
21744
|
};
|
|
20814
21745
|
return this.client.call('post', uri, apiHeaders, payload);
|
|
20815
21746
|
}
|
|
20816
|
-
|
|
21747
|
+
updateLongtextColumn(paramsOrFirst, ...rest) {
|
|
20817
21748
|
let params;
|
|
20818
21749
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
20819
21750
|
params = (paramsOrFirst || {});
|
|
@@ -20849,7 +21780,7 @@ class TablesDB {
|
|
|
20849
21780
|
if (typeof xdefault === 'undefined') {
|
|
20850
21781
|
throw new AppwriteException('Missing required parameter: "xdefault"');
|
|
20851
21782
|
}
|
|
20852
|
-
const apiPath = '/tablesdb/{databaseId}/tables/{tableId}/columns/
|
|
21783
|
+
const apiPath = '/tablesdb/{databaseId}/tables/{tableId}/columns/longtext/{key}'.replace('{databaseId}', databaseId).replace('{tableId}', tableId).replace('{key}', key);
|
|
20853
21784
|
const payload = {};
|
|
20854
21785
|
if (typeof required !== 'undefined') {
|
|
20855
21786
|
payload['required'] = required;
|
|
@@ -20866,7 +21797,7 @@ class TablesDB {
|
|
|
20866
21797
|
};
|
|
20867
21798
|
return this.client.call('patch', uri, apiHeaders, payload);
|
|
20868
21799
|
}
|
|
20869
|
-
|
|
21800
|
+
createMediumtextColumn(paramsOrFirst, ...rest) {
|
|
20870
21801
|
let params;
|
|
20871
21802
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
20872
21803
|
params = (paramsOrFirst || {});
|
|
@@ -20877,7 +21808,8 @@ class TablesDB {
|
|
|
20877
21808
|
tableId: rest[0],
|
|
20878
21809
|
key: rest[1],
|
|
20879
21810
|
required: rest[2],
|
|
20880
|
-
xdefault: rest[3]
|
|
21811
|
+
xdefault: rest[3],
|
|
21812
|
+
array: rest[4]
|
|
20881
21813
|
};
|
|
20882
21814
|
}
|
|
20883
21815
|
const databaseId = params.databaseId;
|
|
@@ -20885,6 +21817,7 @@ class TablesDB {
|
|
|
20885
21817
|
const key = params.key;
|
|
20886
21818
|
const required = params.required;
|
|
20887
21819
|
const xdefault = params.xdefault;
|
|
21820
|
+
const array = params.array;
|
|
20888
21821
|
if (typeof databaseId === 'undefined') {
|
|
20889
21822
|
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
20890
21823
|
}
|
|
@@ -20897,7 +21830,7 @@ class TablesDB {
|
|
|
20897
21830
|
if (typeof required === 'undefined') {
|
|
20898
21831
|
throw new AppwriteException('Missing required parameter: "required"');
|
|
20899
21832
|
}
|
|
20900
|
-
const apiPath = '/tablesdb/{databaseId}/tables/{tableId}/columns/
|
|
21833
|
+
const apiPath = '/tablesdb/{databaseId}/tables/{tableId}/columns/mediumtext'.replace('{databaseId}', databaseId).replace('{tableId}', tableId);
|
|
20901
21834
|
const payload = {};
|
|
20902
21835
|
if (typeof key !== 'undefined') {
|
|
20903
21836
|
payload['key'] = key;
|
|
@@ -20908,13 +21841,16 @@ class TablesDB {
|
|
|
20908
21841
|
if (typeof xdefault !== 'undefined') {
|
|
20909
21842
|
payload['default'] = xdefault;
|
|
20910
21843
|
}
|
|
21844
|
+
if (typeof array !== 'undefined') {
|
|
21845
|
+
payload['array'] = array;
|
|
21846
|
+
}
|
|
20911
21847
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
20912
21848
|
const apiHeaders = {
|
|
20913
21849
|
'content-type': 'application/json',
|
|
20914
21850
|
};
|
|
20915
21851
|
return this.client.call('post', uri, apiHeaders, payload);
|
|
20916
21852
|
}
|
|
20917
|
-
|
|
21853
|
+
updateMediumtextColumn(paramsOrFirst, ...rest) {
|
|
20918
21854
|
let params;
|
|
20919
21855
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
20920
21856
|
params = (paramsOrFirst || {});
|
|
@@ -20947,7 +21883,10 @@ class TablesDB {
|
|
|
20947
21883
|
if (typeof required === 'undefined') {
|
|
20948
21884
|
throw new AppwriteException('Missing required parameter: "required"');
|
|
20949
21885
|
}
|
|
20950
|
-
|
|
21886
|
+
if (typeof xdefault === 'undefined') {
|
|
21887
|
+
throw new AppwriteException('Missing required parameter: "xdefault"');
|
|
21888
|
+
}
|
|
21889
|
+
const apiPath = '/tablesdb/{databaseId}/tables/{tableId}/columns/mediumtext/{key}'.replace('{databaseId}', databaseId).replace('{tableId}', tableId).replace('{key}', key);
|
|
20951
21890
|
const payload = {};
|
|
20952
21891
|
if (typeof required !== 'undefined') {
|
|
20953
21892
|
payload['required'] = required;
|
|
@@ -21347,6 +22286,112 @@ class TablesDB {
|
|
|
21347
22286
|
};
|
|
21348
22287
|
return this.client.call('patch', uri, apiHeaders, payload);
|
|
21349
22288
|
}
|
|
22289
|
+
createTextColumn(paramsOrFirst, ...rest) {
|
|
22290
|
+
let params;
|
|
22291
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
22292
|
+
params = (paramsOrFirst || {});
|
|
22293
|
+
}
|
|
22294
|
+
else {
|
|
22295
|
+
params = {
|
|
22296
|
+
databaseId: paramsOrFirst,
|
|
22297
|
+
tableId: rest[0],
|
|
22298
|
+
key: rest[1],
|
|
22299
|
+
required: rest[2],
|
|
22300
|
+
xdefault: rest[3],
|
|
22301
|
+
array: rest[4]
|
|
22302
|
+
};
|
|
22303
|
+
}
|
|
22304
|
+
const databaseId = params.databaseId;
|
|
22305
|
+
const tableId = params.tableId;
|
|
22306
|
+
const key = params.key;
|
|
22307
|
+
const required = params.required;
|
|
22308
|
+
const xdefault = params.xdefault;
|
|
22309
|
+
const array = params.array;
|
|
22310
|
+
if (typeof databaseId === 'undefined') {
|
|
22311
|
+
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
22312
|
+
}
|
|
22313
|
+
if (typeof tableId === 'undefined') {
|
|
22314
|
+
throw new AppwriteException('Missing required parameter: "tableId"');
|
|
22315
|
+
}
|
|
22316
|
+
if (typeof key === 'undefined') {
|
|
22317
|
+
throw new AppwriteException('Missing required parameter: "key"');
|
|
22318
|
+
}
|
|
22319
|
+
if (typeof required === 'undefined') {
|
|
22320
|
+
throw new AppwriteException('Missing required parameter: "required"');
|
|
22321
|
+
}
|
|
22322
|
+
const apiPath = '/tablesdb/{databaseId}/tables/{tableId}/columns/text'.replace('{databaseId}', databaseId).replace('{tableId}', tableId);
|
|
22323
|
+
const payload = {};
|
|
22324
|
+
if (typeof key !== 'undefined') {
|
|
22325
|
+
payload['key'] = key;
|
|
22326
|
+
}
|
|
22327
|
+
if (typeof required !== 'undefined') {
|
|
22328
|
+
payload['required'] = required;
|
|
22329
|
+
}
|
|
22330
|
+
if (typeof xdefault !== 'undefined') {
|
|
22331
|
+
payload['default'] = xdefault;
|
|
22332
|
+
}
|
|
22333
|
+
if (typeof array !== 'undefined') {
|
|
22334
|
+
payload['array'] = array;
|
|
22335
|
+
}
|
|
22336
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22337
|
+
const apiHeaders = {
|
|
22338
|
+
'content-type': 'application/json',
|
|
22339
|
+
};
|
|
22340
|
+
return this.client.call('post', uri, apiHeaders, payload);
|
|
22341
|
+
}
|
|
22342
|
+
updateTextColumn(paramsOrFirst, ...rest) {
|
|
22343
|
+
let params;
|
|
22344
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
22345
|
+
params = (paramsOrFirst || {});
|
|
22346
|
+
}
|
|
22347
|
+
else {
|
|
22348
|
+
params = {
|
|
22349
|
+
databaseId: paramsOrFirst,
|
|
22350
|
+
tableId: rest[0],
|
|
22351
|
+
key: rest[1],
|
|
22352
|
+
required: rest[2],
|
|
22353
|
+
xdefault: rest[3],
|
|
22354
|
+
newKey: rest[4]
|
|
22355
|
+
};
|
|
22356
|
+
}
|
|
22357
|
+
const databaseId = params.databaseId;
|
|
22358
|
+
const tableId = params.tableId;
|
|
22359
|
+
const key = params.key;
|
|
22360
|
+
const required = params.required;
|
|
22361
|
+
const xdefault = params.xdefault;
|
|
22362
|
+
const newKey = params.newKey;
|
|
22363
|
+
if (typeof databaseId === 'undefined') {
|
|
22364
|
+
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
22365
|
+
}
|
|
22366
|
+
if (typeof tableId === 'undefined') {
|
|
22367
|
+
throw new AppwriteException('Missing required parameter: "tableId"');
|
|
22368
|
+
}
|
|
22369
|
+
if (typeof key === 'undefined') {
|
|
22370
|
+
throw new AppwriteException('Missing required parameter: "key"');
|
|
22371
|
+
}
|
|
22372
|
+
if (typeof required === 'undefined') {
|
|
22373
|
+
throw new AppwriteException('Missing required parameter: "required"');
|
|
22374
|
+
}
|
|
22375
|
+
if (typeof xdefault === 'undefined') {
|
|
22376
|
+
throw new AppwriteException('Missing required parameter: "xdefault"');
|
|
22377
|
+
}
|
|
22378
|
+
const apiPath = '/tablesdb/{databaseId}/tables/{tableId}/columns/text/{key}'.replace('{databaseId}', databaseId).replace('{tableId}', tableId).replace('{key}', key);
|
|
22379
|
+
const payload = {};
|
|
22380
|
+
if (typeof required !== 'undefined') {
|
|
22381
|
+
payload['required'] = required;
|
|
22382
|
+
}
|
|
22383
|
+
if (typeof xdefault !== 'undefined') {
|
|
22384
|
+
payload['default'] = xdefault;
|
|
22385
|
+
}
|
|
22386
|
+
if (typeof newKey !== 'undefined') {
|
|
22387
|
+
payload['newKey'] = newKey;
|
|
22388
|
+
}
|
|
22389
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22390
|
+
const apiHeaders = {
|
|
22391
|
+
'content-type': 'application/json',
|
|
22392
|
+
};
|
|
22393
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
22394
|
+
}
|
|
21350
22395
|
createUrlColumn(paramsOrFirst, ...rest) {
|
|
21351
22396
|
let params;
|
|
21352
22397
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
@@ -21453,6 +22498,125 @@ class TablesDB {
|
|
|
21453
22498
|
};
|
|
21454
22499
|
return this.client.call('patch', uri, apiHeaders, payload);
|
|
21455
22500
|
}
|
|
22501
|
+
createVarcharColumn(paramsOrFirst, ...rest) {
|
|
22502
|
+
let params;
|
|
22503
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
22504
|
+
params = (paramsOrFirst || {});
|
|
22505
|
+
}
|
|
22506
|
+
else {
|
|
22507
|
+
params = {
|
|
22508
|
+
databaseId: paramsOrFirst,
|
|
22509
|
+
tableId: rest[0],
|
|
22510
|
+
key: rest[1],
|
|
22511
|
+
size: rest[2],
|
|
22512
|
+
required: rest[3],
|
|
22513
|
+
xdefault: rest[4],
|
|
22514
|
+
array: rest[5]
|
|
22515
|
+
};
|
|
22516
|
+
}
|
|
22517
|
+
const databaseId = params.databaseId;
|
|
22518
|
+
const tableId = params.tableId;
|
|
22519
|
+
const key = params.key;
|
|
22520
|
+
const size = params.size;
|
|
22521
|
+
const required = params.required;
|
|
22522
|
+
const xdefault = params.xdefault;
|
|
22523
|
+
const array = params.array;
|
|
22524
|
+
if (typeof databaseId === 'undefined') {
|
|
22525
|
+
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
22526
|
+
}
|
|
22527
|
+
if (typeof tableId === 'undefined') {
|
|
22528
|
+
throw new AppwriteException('Missing required parameter: "tableId"');
|
|
22529
|
+
}
|
|
22530
|
+
if (typeof key === 'undefined') {
|
|
22531
|
+
throw new AppwriteException('Missing required parameter: "key"');
|
|
22532
|
+
}
|
|
22533
|
+
if (typeof size === 'undefined') {
|
|
22534
|
+
throw new AppwriteException('Missing required parameter: "size"');
|
|
22535
|
+
}
|
|
22536
|
+
if (typeof required === 'undefined') {
|
|
22537
|
+
throw new AppwriteException('Missing required parameter: "required"');
|
|
22538
|
+
}
|
|
22539
|
+
const apiPath = '/tablesdb/{databaseId}/tables/{tableId}/columns/varchar'.replace('{databaseId}', databaseId).replace('{tableId}', tableId);
|
|
22540
|
+
const payload = {};
|
|
22541
|
+
if (typeof key !== 'undefined') {
|
|
22542
|
+
payload['key'] = key;
|
|
22543
|
+
}
|
|
22544
|
+
if (typeof size !== 'undefined') {
|
|
22545
|
+
payload['size'] = size;
|
|
22546
|
+
}
|
|
22547
|
+
if (typeof required !== 'undefined') {
|
|
22548
|
+
payload['required'] = required;
|
|
22549
|
+
}
|
|
22550
|
+
if (typeof xdefault !== 'undefined') {
|
|
22551
|
+
payload['default'] = xdefault;
|
|
22552
|
+
}
|
|
22553
|
+
if (typeof array !== 'undefined') {
|
|
22554
|
+
payload['array'] = array;
|
|
22555
|
+
}
|
|
22556
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22557
|
+
const apiHeaders = {
|
|
22558
|
+
'content-type': 'application/json',
|
|
22559
|
+
};
|
|
22560
|
+
return this.client.call('post', uri, apiHeaders, payload);
|
|
22561
|
+
}
|
|
22562
|
+
updateVarcharColumn(paramsOrFirst, ...rest) {
|
|
22563
|
+
let params;
|
|
22564
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
22565
|
+
params = (paramsOrFirst || {});
|
|
22566
|
+
}
|
|
22567
|
+
else {
|
|
22568
|
+
params = {
|
|
22569
|
+
databaseId: paramsOrFirst,
|
|
22570
|
+
tableId: rest[0],
|
|
22571
|
+
key: rest[1],
|
|
22572
|
+
required: rest[2],
|
|
22573
|
+
xdefault: rest[3],
|
|
22574
|
+
size: rest[4],
|
|
22575
|
+
newKey: rest[5]
|
|
22576
|
+
};
|
|
22577
|
+
}
|
|
22578
|
+
const databaseId = params.databaseId;
|
|
22579
|
+
const tableId = params.tableId;
|
|
22580
|
+
const key = params.key;
|
|
22581
|
+
const required = params.required;
|
|
22582
|
+
const xdefault = params.xdefault;
|
|
22583
|
+
const size = params.size;
|
|
22584
|
+
const newKey = params.newKey;
|
|
22585
|
+
if (typeof databaseId === 'undefined') {
|
|
22586
|
+
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
22587
|
+
}
|
|
22588
|
+
if (typeof tableId === 'undefined') {
|
|
22589
|
+
throw new AppwriteException('Missing required parameter: "tableId"');
|
|
22590
|
+
}
|
|
22591
|
+
if (typeof key === 'undefined') {
|
|
22592
|
+
throw new AppwriteException('Missing required parameter: "key"');
|
|
22593
|
+
}
|
|
22594
|
+
if (typeof required === 'undefined') {
|
|
22595
|
+
throw new AppwriteException('Missing required parameter: "required"');
|
|
22596
|
+
}
|
|
22597
|
+
if (typeof xdefault === 'undefined') {
|
|
22598
|
+
throw new AppwriteException('Missing required parameter: "xdefault"');
|
|
22599
|
+
}
|
|
22600
|
+
const apiPath = '/tablesdb/{databaseId}/tables/{tableId}/columns/varchar/{key}'.replace('{databaseId}', databaseId).replace('{tableId}', tableId).replace('{key}', key);
|
|
22601
|
+
const payload = {};
|
|
22602
|
+
if (typeof required !== 'undefined') {
|
|
22603
|
+
payload['required'] = required;
|
|
22604
|
+
}
|
|
22605
|
+
if (typeof xdefault !== 'undefined') {
|
|
22606
|
+
payload['default'] = xdefault;
|
|
22607
|
+
}
|
|
22608
|
+
if (typeof size !== 'undefined') {
|
|
22609
|
+
payload['size'] = size;
|
|
22610
|
+
}
|
|
22611
|
+
if (typeof newKey !== 'undefined') {
|
|
22612
|
+
payload['newKey'] = newKey;
|
|
22613
|
+
}
|
|
22614
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22615
|
+
const apiHeaders = {
|
|
22616
|
+
'content-type': 'application/json',
|
|
22617
|
+
};
|
|
22618
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
22619
|
+
}
|
|
21456
22620
|
getColumn(paramsOrFirst, ...rest) {
|
|
21457
22621
|
let params;
|
|
21458
22622
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
@@ -25418,18 +26582,21 @@ class Channel {
|
|
|
25418
26582
|
return id === "*" ? "account" : `account.${id}`;
|
|
25419
26583
|
}
|
|
25420
26584
|
// Global events
|
|
25421
|
-
static
|
|
26585
|
+
static documents() {
|
|
25422
26586
|
return "documents";
|
|
25423
26587
|
}
|
|
25424
|
-
static
|
|
26588
|
+
static rows() {
|
|
25425
26589
|
return "rows";
|
|
25426
26590
|
}
|
|
25427
|
-
static
|
|
26591
|
+
static files() {
|
|
25428
26592
|
return "files";
|
|
25429
26593
|
}
|
|
25430
|
-
static
|
|
26594
|
+
static executions() {
|
|
25431
26595
|
return "executions";
|
|
25432
26596
|
}
|
|
26597
|
+
static teams() {
|
|
26598
|
+
return "teams";
|
|
26599
|
+
}
|
|
25433
26600
|
}
|
|
25434
26601
|
|
|
25435
26602
|
exports.Condition = void 0;
|
|
@@ -25697,6 +26864,73 @@ Operator.dateSubDays = (days) => new Operator("dateSubDays", [days]).toString();
|
|
|
25697
26864
|
*/
|
|
25698
26865
|
Operator.dateSetNow = () => new Operator("dateSetNow", []).toString();
|
|
25699
26866
|
|
|
26867
|
+
exports.Scopes = void 0;
|
|
26868
|
+
(function (Scopes) {
|
|
26869
|
+
Scopes["SessionsWrite"] = "sessions.write";
|
|
26870
|
+
Scopes["UsersRead"] = "users.read";
|
|
26871
|
+
Scopes["UsersWrite"] = "users.write";
|
|
26872
|
+
Scopes["TeamsRead"] = "teams.read";
|
|
26873
|
+
Scopes["TeamsWrite"] = "teams.write";
|
|
26874
|
+
Scopes["DatabasesRead"] = "databases.read";
|
|
26875
|
+
Scopes["DatabasesWrite"] = "databases.write";
|
|
26876
|
+
Scopes["CollectionsRead"] = "collections.read";
|
|
26877
|
+
Scopes["CollectionsWrite"] = "collections.write";
|
|
26878
|
+
Scopes["TablesRead"] = "tables.read";
|
|
26879
|
+
Scopes["TablesWrite"] = "tables.write";
|
|
26880
|
+
Scopes["AttributesRead"] = "attributes.read";
|
|
26881
|
+
Scopes["AttributesWrite"] = "attributes.write";
|
|
26882
|
+
Scopes["ColumnsRead"] = "columns.read";
|
|
26883
|
+
Scopes["ColumnsWrite"] = "columns.write";
|
|
26884
|
+
Scopes["IndexesRead"] = "indexes.read";
|
|
26885
|
+
Scopes["IndexesWrite"] = "indexes.write";
|
|
26886
|
+
Scopes["DocumentsRead"] = "documents.read";
|
|
26887
|
+
Scopes["DocumentsWrite"] = "documents.write";
|
|
26888
|
+
Scopes["RowsRead"] = "rows.read";
|
|
26889
|
+
Scopes["RowsWrite"] = "rows.write";
|
|
26890
|
+
Scopes["FilesRead"] = "files.read";
|
|
26891
|
+
Scopes["FilesWrite"] = "files.write";
|
|
26892
|
+
Scopes["BucketsRead"] = "buckets.read";
|
|
26893
|
+
Scopes["BucketsWrite"] = "buckets.write";
|
|
26894
|
+
Scopes["FunctionsRead"] = "functions.read";
|
|
26895
|
+
Scopes["FunctionsWrite"] = "functions.write";
|
|
26896
|
+
Scopes["SitesRead"] = "sites.read";
|
|
26897
|
+
Scopes["SitesWrite"] = "sites.write";
|
|
26898
|
+
Scopes["LogRead"] = "log.read";
|
|
26899
|
+
Scopes["LogWrite"] = "log.write";
|
|
26900
|
+
Scopes["ExecutionRead"] = "execution.read";
|
|
26901
|
+
Scopes["ExecutionWrite"] = "execution.write";
|
|
26902
|
+
Scopes["LocaleRead"] = "locale.read";
|
|
26903
|
+
Scopes["AvatarsRead"] = "avatars.read";
|
|
26904
|
+
Scopes["HealthRead"] = "health.read";
|
|
26905
|
+
Scopes["ProvidersRead"] = "providers.read";
|
|
26906
|
+
Scopes["ProvidersWrite"] = "providers.write";
|
|
26907
|
+
Scopes["MessagesRead"] = "messages.read";
|
|
26908
|
+
Scopes["MessagesWrite"] = "messages.write";
|
|
26909
|
+
Scopes["TopicsRead"] = "topics.read";
|
|
26910
|
+
Scopes["TopicsWrite"] = "topics.write";
|
|
26911
|
+
Scopes["SubscribersRead"] = "subscribers.read";
|
|
26912
|
+
Scopes["SubscribersWrite"] = "subscribers.write";
|
|
26913
|
+
Scopes["TargetsRead"] = "targets.read";
|
|
26914
|
+
Scopes["TargetsWrite"] = "targets.write";
|
|
26915
|
+
Scopes["RulesRead"] = "rules.read";
|
|
26916
|
+
Scopes["RulesWrite"] = "rules.write";
|
|
26917
|
+
Scopes["MigrationsRead"] = "migrations.read";
|
|
26918
|
+
Scopes["MigrationsWrite"] = "migrations.write";
|
|
26919
|
+
Scopes["VcsRead"] = "vcs.read";
|
|
26920
|
+
Scopes["VcsWrite"] = "vcs.write";
|
|
26921
|
+
Scopes["AssistantRead"] = "assistant.read";
|
|
26922
|
+
Scopes["TokensRead"] = "tokens.read";
|
|
26923
|
+
Scopes["TokensWrite"] = "tokens.write";
|
|
26924
|
+
Scopes["PoliciesWrite"] = "policies.write";
|
|
26925
|
+
Scopes["PoliciesRead"] = "policies.read";
|
|
26926
|
+
Scopes["ArchivesRead"] = "archives.read";
|
|
26927
|
+
Scopes["ArchivesWrite"] = "archives.write";
|
|
26928
|
+
Scopes["RestorationsRead"] = "restorations.read";
|
|
26929
|
+
Scopes["RestorationsWrite"] = "restorations.write";
|
|
26930
|
+
Scopes["DomainsRead"] = "domains.read";
|
|
26931
|
+
Scopes["DomainsWrite"] = "domains.write";
|
|
26932
|
+
})(exports.Scopes || (exports.Scopes = {}));
|
|
26933
|
+
|
|
25700
26934
|
exports.AuthenticatorType = void 0;
|
|
25701
26935
|
(function (AuthenticatorType) {
|
|
25702
26936
|
AuthenticatorType["Totp"] = "totp";
|
|
@@ -26422,6 +27656,30 @@ exports.Timezone = void 0;
|
|
|
26422
27656
|
Timezone["Utc"] = "utc";
|
|
26423
27657
|
})(exports.Timezone || (exports.Timezone = {}));
|
|
26424
27658
|
|
|
27659
|
+
exports.BrowserPermission = void 0;
|
|
27660
|
+
(function (BrowserPermission) {
|
|
27661
|
+
BrowserPermission["Geolocation"] = "geolocation";
|
|
27662
|
+
BrowserPermission["Camera"] = "camera";
|
|
27663
|
+
BrowserPermission["Microphone"] = "microphone";
|
|
27664
|
+
BrowserPermission["Notifications"] = "notifications";
|
|
27665
|
+
BrowserPermission["Midi"] = "midi";
|
|
27666
|
+
BrowserPermission["Push"] = "push";
|
|
27667
|
+
BrowserPermission["Clipboardread"] = "clipboard-read";
|
|
27668
|
+
BrowserPermission["Clipboardwrite"] = "clipboard-write";
|
|
27669
|
+
BrowserPermission["Paymenthandler"] = "payment-handler";
|
|
27670
|
+
BrowserPermission["Usb"] = "usb";
|
|
27671
|
+
BrowserPermission["Bluetooth"] = "bluetooth";
|
|
27672
|
+
BrowserPermission["Accelerometer"] = "accelerometer";
|
|
27673
|
+
BrowserPermission["Gyroscope"] = "gyroscope";
|
|
27674
|
+
BrowserPermission["Magnetometer"] = "magnetometer";
|
|
27675
|
+
BrowserPermission["Ambientlightsensor"] = "ambient-light-sensor";
|
|
27676
|
+
BrowserPermission["Backgroundsync"] = "background-sync";
|
|
27677
|
+
BrowserPermission["Persistentstorage"] = "persistent-storage";
|
|
27678
|
+
BrowserPermission["Screenwakelock"] = "screen-wake-lock";
|
|
27679
|
+
BrowserPermission["Webshare"] = "web-share";
|
|
27680
|
+
BrowserPermission["Xrspatialtracking"] = "xr-spatial-tracking";
|
|
27681
|
+
})(exports.BrowserPermission || (exports.BrowserPermission = {}));
|
|
27682
|
+
|
|
26425
27683
|
exports.ImageFormat = void 0;
|
|
26426
27684
|
(function (ImageFormat) {
|
|
26427
27685
|
ImageFormat["Jpg"] = "jpg";
|
|
@@ -26433,6 +27691,13 @@ exports.ImageFormat = void 0;
|
|
|
26433
27691
|
ImageFormat["Gif"] = "gif";
|
|
26434
27692
|
})(exports.ImageFormat || (exports.ImageFormat = {}));
|
|
26435
27693
|
|
|
27694
|
+
exports.Services = void 0;
|
|
27695
|
+
(function (Services) {
|
|
27696
|
+
Services["Databases"] = "databases";
|
|
27697
|
+
Services["Functions"] = "functions";
|
|
27698
|
+
Services["Storage"] = "storage";
|
|
27699
|
+
})(exports.Services || (exports.Services = {}));
|
|
27700
|
+
|
|
26436
27701
|
exports.Platform = void 0;
|
|
26437
27702
|
(function (Platform) {
|
|
26438
27703
|
Platform["Appwrite"] = "appwrite";
|
|
@@ -26474,6 +27739,12 @@ exports.IndexType = void 0;
|
|
|
26474
27739
|
IndexType["Spatial"] = "spatial";
|
|
26475
27740
|
})(exports.IndexType || (exports.IndexType = {}));
|
|
26476
27741
|
|
|
27742
|
+
exports.OrderBy = void 0;
|
|
27743
|
+
(function (OrderBy) {
|
|
27744
|
+
OrderBy["Asc"] = "asc";
|
|
27745
|
+
OrderBy["Desc"] = "desc";
|
|
27746
|
+
})(exports.OrderBy || (exports.OrderBy = {}));
|
|
27747
|
+
|
|
26477
27748
|
exports.FilterType = void 0;
|
|
26478
27749
|
(function (FilterType) {
|
|
26479
27750
|
FilterType["Premium"] = "premium";
|
|
@@ -26548,6 +27819,87 @@ exports.Runtime = void 0;
|
|
|
26548
27819
|
Runtime["Flutter335"] = "flutter-3.35";
|
|
26549
27820
|
})(exports.Runtime || (exports.Runtime = {}));
|
|
26550
27821
|
|
|
27822
|
+
exports.Runtimes = void 0;
|
|
27823
|
+
(function (Runtimes) {
|
|
27824
|
+
Runtimes["Node145"] = "node-14.5";
|
|
27825
|
+
Runtimes["Node160"] = "node-16.0";
|
|
27826
|
+
Runtimes["Node180"] = "node-18.0";
|
|
27827
|
+
Runtimes["Node190"] = "node-19.0";
|
|
27828
|
+
Runtimes["Node200"] = "node-20.0";
|
|
27829
|
+
Runtimes["Node210"] = "node-21.0";
|
|
27830
|
+
Runtimes["Node22"] = "node-22";
|
|
27831
|
+
Runtimes["Php80"] = "php-8.0";
|
|
27832
|
+
Runtimes["Php81"] = "php-8.1";
|
|
27833
|
+
Runtimes["Php82"] = "php-8.2";
|
|
27834
|
+
Runtimes["Php83"] = "php-8.3";
|
|
27835
|
+
Runtimes["Ruby30"] = "ruby-3.0";
|
|
27836
|
+
Runtimes["Ruby31"] = "ruby-3.1";
|
|
27837
|
+
Runtimes["Ruby32"] = "ruby-3.2";
|
|
27838
|
+
Runtimes["Ruby33"] = "ruby-3.3";
|
|
27839
|
+
Runtimes["Python38"] = "python-3.8";
|
|
27840
|
+
Runtimes["Python39"] = "python-3.9";
|
|
27841
|
+
Runtimes["Python310"] = "python-3.10";
|
|
27842
|
+
Runtimes["Python311"] = "python-3.11";
|
|
27843
|
+
Runtimes["Python312"] = "python-3.12";
|
|
27844
|
+
Runtimes["Pythonml311"] = "python-ml-3.11";
|
|
27845
|
+
Runtimes["Pythonml312"] = "python-ml-3.12";
|
|
27846
|
+
Runtimes["Deno140"] = "deno-1.40";
|
|
27847
|
+
Runtimes["Deno146"] = "deno-1.46";
|
|
27848
|
+
Runtimes["Deno20"] = "deno-2.0";
|
|
27849
|
+
Runtimes["Dart215"] = "dart-2.15";
|
|
27850
|
+
Runtimes["Dart216"] = "dart-2.16";
|
|
27851
|
+
Runtimes["Dart217"] = "dart-2.17";
|
|
27852
|
+
Runtimes["Dart218"] = "dart-2.18";
|
|
27853
|
+
Runtimes["Dart219"] = "dart-2.19";
|
|
27854
|
+
Runtimes["Dart30"] = "dart-3.0";
|
|
27855
|
+
Runtimes["Dart31"] = "dart-3.1";
|
|
27856
|
+
Runtimes["Dart33"] = "dart-3.3";
|
|
27857
|
+
Runtimes["Dart35"] = "dart-3.5";
|
|
27858
|
+
Runtimes["Dart38"] = "dart-3.8";
|
|
27859
|
+
Runtimes["Dart39"] = "dart-3.9";
|
|
27860
|
+
Runtimes["Dotnet60"] = "dotnet-6.0";
|
|
27861
|
+
Runtimes["Dotnet70"] = "dotnet-7.0";
|
|
27862
|
+
Runtimes["Dotnet80"] = "dotnet-8.0";
|
|
27863
|
+
Runtimes["Java80"] = "java-8.0";
|
|
27864
|
+
Runtimes["Java110"] = "java-11.0";
|
|
27865
|
+
Runtimes["Java170"] = "java-17.0";
|
|
27866
|
+
Runtimes["Java180"] = "java-18.0";
|
|
27867
|
+
Runtimes["Java210"] = "java-21.0";
|
|
27868
|
+
Runtimes["Java22"] = "java-22";
|
|
27869
|
+
Runtimes["Swift55"] = "swift-5.5";
|
|
27870
|
+
Runtimes["Swift58"] = "swift-5.8";
|
|
27871
|
+
Runtimes["Swift59"] = "swift-5.9";
|
|
27872
|
+
Runtimes["Swift510"] = "swift-5.10";
|
|
27873
|
+
Runtimes["Kotlin16"] = "kotlin-1.6";
|
|
27874
|
+
Runtimes["Kotlin18"] = "kotlin-1.8";
|
|
27875
|
+
Runtimes["Kotlin19"] = "kotlin-1.9";
|
|
27876
|
+
Runtimes["Kotlin20"] = "kotlin-2.0";
|
|
27877
|
+
Runtimes["Cpp17"] = "cpp-17";
|
|
27878
|
+
Runtimes["Cpp20"] = "cpp-20";
|
|
27879
|
+
Runtimes["Bun10"] = "bun-1.0";
|
|
27880
|
+
Runtimes["Bun11"] = "bun-1.1";
|
|
27881
|
+
Runtimes["Go123"] = "go-1.23";
|
|
27882
|
+
Runtimes["Static1"] = "static-1";
|
|
27883
|
+
Runtimes["Flutter324"] = "flutter-3.24";
|
|
27884
|
+
Runtimes["Flutter327"] = "flutter-3.27";
|
|
27885
|
+
Runtimes["Flutter329"] = "flutter-3.29";
|
|
27886
|
+
Runtimes["Flutter332"] = "flutter-3.32";
|
|
27887
|
+
Runtimes["Flutter335"] = "flutter-3.35";
|
|
27888
|
+
})(exports.Runtimes || (exports.Runtimes = {}));
|
|
27889
|
+
|
|
27890
|
+
exports.UseCases = void 0;
|
|
27891
|
+
(function (UseCases) {
|
|
27892
|
+
UseCases["Portfolio"] = "portfolio";
|
|
27893
|
+
UseCases["Starter"] = "starter";
|
|
27894
|
+
UseCases["Events"] = "events";
|
|
27895
|
+
UseCases["Ecommerce"] = "ecommerce";
|
|
27896
|
+
UseCases["Documentation"] = "documentation";
|
|
27897
|
+
UseCases["Blog"] = "blog";
|
|
27898
|
+
UseCases["Ai"] = "ai";
|
|
27899
|
+
UseCases["Forms"] = "forms";
|
|
27900
|
+
UseCases["Dashboard"] = "dashboard";
|
|
27901
|
+
})(exports.UseCases || (exports.UseCases = {}));
|
|
27902
|
+
|
|
26551
27903
|
exports.TemplateReferenceType = void 0;
|
|
26552
27904
|
(function (TemplateReferenceType) {
|
|
26553
27905
|
TemplateReferenceType["Branch"] = "branch";
|
|
@@ -26609,24 +27961,20 @@ exports.SmtpEncryption = void 0;
|
|
|
26609
27961
|
SmtpEncryption["Tls"] = "tls";
|
|
26610
27962
|
})(exports.SmtpEncryption || (exports.SmtpEncryption = {}));
|
|
26611
27963
|
|
|
26612
|
-
exports.
|
|
26613
|
-
(function (
|
|
26614
|
-
|
|
26615
|
-
|
|
26616
|
-
|
|
26617
|
-
|
|
26618
|
-
|
|
26619
|
-
|
|
26620
|
-
|
|
26621
|
-
|
|
26622
|
-
|
|
26623
|
-
|
|
26624
|
-
|
|
26625
|
-
|
|
26626
|
-
BillingPlan["Imaginetier11100"] = "imagine-tier-1-1100";
|
|
26627
|
-
BillingPlan["Imaginetier11650"] = "imagine-tier-1-1650";
|
|
26628
|
-
BillingPlan["Imaginetier12200"] = "imagine-tier-1-2200";
|
|
26629
|
-
})(exports.BillingPlan || (exports.BillingPlan = {}));
|
|
27964
|
+
exports.Resources = void 0;
|
|
27965
|
+
(function (Resources) {
|
|
27966
|
+
Resources["User"] = "user";
|
|
27967
|
+
Resources["Database"] = "database";
|
|
27968
|
+
Resources["Table"] = "table";
|
|
27969
|
+
Resources["Column"] = "column";
|
|
27970
|
+
Resources["Index"] = "index";
|
|
27971
|
+
Resources["Row"] = "row";
|
|
27972
|
+
Resources["Document"] = "document";
|
|
27973
|
+
Resources["Attribute"] = "attribute";
|
|
27974
|
+
Resources["Collection"] = "collection";
|
|
27975
|
+
Resources["Bucket"] = "bucket";
|
|
27976
|
+
Resources["File"] = "file";
|
|
27977
|
+
})(exports.Resources || (exports.Resources = {}));
|
|
26630
27978
|
|
|
26631
27979
|
exports.ProjectUsageRange = void 0;
|
|
26632
27980
|
(function (ProjectUsageRange) {
|
|
@@ -27106,6 +28454,25 @@ exports.Adapter = void 0;
|
|
|
27106
28454
|
Adapter["Ssr"] = "ssr";
|
|
27107
28455
|
})(exports.Adapter || (exports.Adapter = {}));
|
|
27108
28456
|
|
|
28457
|
+
exports.Frameworks = void 0;
|
|
28458
|
+
(function (Frameworks) {
|
|
28459
|
+
Frameworks["Analog"] = "analog";
|
|
28460
|
+
Frameworks["Angular"] = "angular";
|
|
28461
|
+
Frameworks["Nextjs"] = "nextjs";
|
|
28462
|
+
Frameworks["React"] = "react";
|
|
28463
|
+
Frameworks["Nuxt"] = "nuxt";
|
|
28464
|
+
Frameworks["Vue"] = "vue";
|
|
28465
|
+
Frameworks["Sveltekit"] = "sveltekit";
|
|
28466
|
+
Frameworks["Astro"] = "astro";
|
|
28467
|
+
Frameworks["Tanstackstart"] = "tanstack-start";
|
|
28468
|
+
Frameworks["Remix"] = "remix";
|
|
28469
|
+
Frameworks["Lynx"] = "lynx";
|
|
28470
|
+
Frameworks["Flutter"] = "flutter";
|
|
28471
|
+
Frameworks["Reactnative"] = "react-native";
|
|
28472
|
+
Frameworks["Vite"] = "vite";
|
|
28473
|
+
Frameworks["Other"] = "other";
|
|
28474
|
+
})(exports.Frameworks || (exports.Frameworks = {}));
|
|
28475
|
+
|
|
27109
28476
|
exports.Compression = void 0;
|
|
27110
28477
|
(function (Compression) {
|
|
27111
28478
|
Compression["None"] = "none";
|
|
@@ -27126,6 +28493,15 @@ exports.ImageGravity = void 0;
|
|
|
27126
28493
|
ImageGravity["Bottomright"] = "bottom-right";
|
|
27127
28494
|
})(exports.ImageGravity || (exports.ImageGravity = {}));
|
|
27128
28495
|
|
|
28496
|
+
exports.Roles = void 0;
|
|
28497
|
+
(function (Roles) {
|
|
28498
|
+
Roles["Developer"] = "developer";
|
|
28499
|
+
Roles["Editor"] = "editor";
|
|
28500
|
+
Roles["Analyst"] = "analyst";
|
|
28501
|
+
Roles["Billing"] = "billing";
|
|
28502
|
+
Roles["Owner"] = "owner";
|
|
28503
|
+
})(exports.Roles || (exports.Roles = {}));
|
|
28504
|
+
|
|
27129
28505
|
exports.PasswordHash = void 0;
|
|
27130
28506
|
(function (PasswordHash) {
|
|
27131
28507
|
PasswordHash["Sha1"] = "sha1";
|
|
@@ -27193,6 +28569,7 @@ exports.DeploymentStatus = void 0;
|
|
|
27193
28569
|
DeploymentStatus["Processing"] = "processing";
|
|
27194
28570
|
DeploymentStatus["Building"] = "building";
|
|
27195
28571
|
DeploymentStatus["Ready"] = "ready";
|
|
28572
|
+
DeploymentStatus["Canceled"] = "canceled";
|
|
27196
28573
|
DeploymentStatus["Failed"] = "failed";
|
|
27197
28574
|
})(exports.DeploymentStatus || (exports.DeploymentStatus = {}));
|
|
27198
28575
|
|