@appwrite.io/console 3.1.0 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/README.md +1 -1
- package/dist/cjs/sdk.js +516 -119
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +517 -120
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +516 -119
- package/docs/examples/databases/list-documents.md +2 -1
- package/docs/examples/domains/confirm-purchase.md +16 -0
- package/docs/examples/domains/confirm-transfer-in.md +16 -0
- package/docs/examples/domains/create-purchase.md +1 -1
- package/docs/examples/domains/create-transfer-in.md +18 -0
- package/docs/examples/domains/create-transfer-out.md +16 -0
- package/docs/examples/domains/get-transfer-status.md +15 -0
- package/docs/examples/functions/create.md +3 -1
- package/docs/examples/functions/update.md +3 -1
- package/docs/examples/health/get-console-pausing.md +16 -0
- package/docs/examples/migrations/create-appwrite-migration.md +2 -2
- package/docs/examples/migrations/create-firebase-migration.md +2 -2
- package/docs/examples/migrations/create-n-host-migration.md +2 -2
- package/docs/examples/migrations/create-supabase-migration.md +2 -2
- package/docs/examples/migrations/get-appwrite-report.md +2 -2
- package/docs/examples/migrations/get-firebase-report.md +2 -2
- package/docs/examples/migrations/get-n-host-report.md +2 -2
- package/docs/examples/migrations/get-supabase-report.md +2 -2
- package/docs/examples/projects/update-console-access.md +15 -0
- package/docs/examples/projects/update-status.md +16 -0
- package/docs/examples/sites/create-deployment.md +2 -2
- package/docs/examples/sites/create.md +4 -1
- package/docs/examples/sites/update.md +4 -1
- package/docs/examples/tablesdb/list-rows.md +2 -1
- package/package.json +1 -1
- package/src/channel.ts +19 -15
- package/src/client.ts +5 -1
- package/src/enums/appwrite-migration-resource.ts +25 -0
- package/src/enums/build-runtime.ts +3 -0
- package/src/enums/domain-purchase-payment-status.ts +10 -0
- package/src/enums/domain-transfer-status-status.ts +10 -0
- package/src/enums/firebase-migration-resource.ts +12 -0
- package/src/enums/{resources.ts → n-host-migration-resource.ts} +1 -1
- package/src/enums/runtime.ts +3 -0
- package/src/enums/runtimes.ts +3 -0
- package/src/enums/status.ts +3 -0
- package/src/enums/supabase-migration-resource.ts +13 -0
- package/src/index.ts +7 -1
- package/src/models.ts +209 -7
- package/src/services/account.ts +4 -4
- package/src/services/databases.ts +100 -93
- package/src/services/domains.ts +342 -13
- package/src/services/functions.ts +52 -24
- package/src/services/health.ts +61 -0
- package/src/services/messaging.ts +2 -2
- package/src/services/migrations.ts +68 -65
- package/src/services/organizations.ts +2 -2
- package/src/services/projects.ts +120 -0
- package/src/services/sites.ts +96 -57
- package/src/services/tables-db.ts +14 -7
- package/src/services/teams.ts +4 -4
- package/types/channel.d.ts +9 -9
- package/types/enums/appwrite-migration-resource.d.ts +25 -0
- package/types/enums/build-runtime.d.ts +3 -0
- package/types/enums/domain-purchase-payment-status.d.ts +10 -0
- package/types/enums/domain-transfer-status-status.d.ts +10 -0
- package/types/enums/firebase-migration-resource.d.ts +12 -0
- package/types/enums/{resources.d.ts → n-host-migration-resource.d.ts} +1 -1
- package/types/enums/runtime.d.ts +3 -0
- package/types/enums/runtimes.d.ts +3 -0
- package/types/enums/status.d.ts +3 -0
- package/types/enums/supabase-migration-resource.d.ts +13 -0
- package/types/index.d.ts +7 -1
- package/types/models.d.ts +207 -7
- package/types/services/account.d.ts +2 -2
- package/types/services/databases.d.ts +40 -37
- package/types/services/domains.d.ts +117 -4
- package/types/services/functions.d.ts +20 -8
- package/types/services/health.d.ts +24 -0
- package/types/services/messaging.d.ts +2 -2
- package/types/services/migrations.d.ts +36 -33
- package/types/services/organizations.d.ts +2 -2
- package/types/services/projects.d.ts +46 -0
- package/types/services/sites.d.ts +30 -12
- package/types/services/tables-db.d.ts +4 -1
- package/types/services/teams.d.ts +4 -4
package/dist/iife/sdk.js
CHANGED
|
@@ -4332,7 +4332,7 @@
|
|
|
4332
4332
|
'x-sdk-name': 'Console',
|
|
4333
4333
|
'x-sdk-platform': 'console',
|
|
4334
4334
|
'x-sdk-language': 'web',
|
|
4335
|
-
'x-sdk-version': '
|
|
4335
|
+
'x-sdk-version': '5.0.0',
|
|
4336
4336
|
'X-Appwrite-Response-Format': '1.8.0',
|
|
4337
4337
|
};
|
|
4338
4338
|
this.realtime = {
|
|
@@ -4874,6 +4874,9 @@
|
|
|
4874
4874
|
window.console.warn('Appwrite is using localStorage for session management. Increase your security by adding a custom domain as your API endpoint.');
|
|
4875
4875
|
window.localStorage.setItem('cookieFallback', cookieFallback);
|
|
4876
4876
|
}
|
|
4877
|
+
if (data && typeof data === 'object') {
|
|
4878
|
+
data.toString = () => JSONbig.stringify(data);
|
|
4879
|
+
}
|
|
4877
4880
|
return data;
|
|
4878
4881
|
});
|
|
4879
4882
|
}
|
|
@@ -10025,6 +10028,48 @@
|
|
|
10025
10028
|
};
|
|
10026
10029
|
return this.client.call('post', uri, apiHeaders, payload);
|
|
10027
10030
|
}
|
|
10031
|
+
updateRelationshipAttribute(paramsOrFirst, ...rest) {
|
|
10032
|
+
let params;
|
|
10033
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
10034
|
+
params = (paramsOrFirst || {});
|
|
10035
|
+
}
|
|
10036
|
+
else {
|
|
10037
|
+
params = {
|
|
10038
|
+
databaseId: paramsOrFirst,
|
|
10039
|
+
collectionId: rest[0],
|
|
10040
|
+
key: rest[1],
|
|
10041
|
+
onDelete: rest[2],
|
|
10042
|
+
newKey: rest[3]
|
|
10043
|
+
};
|
|
10044
|
+
}
|
|
10045
|
+
const databaseId = params.databaseId;
|
|
10046
|
+
const collectionId = params.collectionId;
|
|
10047
|
+
const key = params.key;
|
|
10048
|
+
const onDelete = params.onDelete;
|
|
10049
|
+
const newKey = params.newKey;
|
|
10050
|
+
if (typeof databaseId === 'undefined') {
|
|
10051
|
+
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
10052
|
+
}
|
|
10053
|
+
if (typeof collectionId === 'undefined') {
|
|
10054
|
+
throw new AppwriteException('Missing required parameter: "collectionId"');
|
|
10055
|
+
}
|
|
10056
|
+
if (typeof key === 'undefined') {
|
|
10057
|
+
throw new AppwriteException('Missing required parameter: "key"');
|
|
10058
|
+
}
|
|
10059
|
+
const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/relationship/{key}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{key}', key);
|
|
10060
|
+
const payload = {};
|
|
10061
|
+
if (typeof onDelete !== 'undefined') {
|
|
10062
|
+
payload['onDelete'] = onDelete;
|
|
10063
|
+
}
|
|
10064
|
+
if (typeof newKey !== 'undefined') {
|
|
10065
|
+
payload['newKey'] = newKey;
|
|
10066
|
+
}
|
|
10067
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
10068
|
+
const apiHeaders = {
|
|
10069
|
+
'content-type': 'application/json',
|
|
10070
|
+
};
|
|
10071
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
10072
|
+
}
|
|
10028
10073
|
createStringAttribute(paramsOrFirst, ...rest) {
|
|
10029
10074
|
let params;
|
|
10030
10075
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
@@ -10552,48 +10597,6 @@
|
|
|
10552
10597
|
};
|
|
10553
10598
|
return this.client.call('delete', uri, apiHeaders, payload);
|
|
10554
10599
|
}
|
|
10555
|
-
updateRelationshipAttribute(paramsOrFirst, ...rest) {
|
|
10556
|
-
let params;
|
|
10557
|
-
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
10558
|
-
params = (paramsOrFirst || {});
|
|
10559
|
-
}
|
|
10560
|
-
else {
|
|
10561
|
-
params = {
|
|
10562
|
-
databaseId: paramsOrFirst,
|
|
10563
|
-
collectionId: rest[0],
|
|
10564
|
-
key: rest[1],
|
|
10565
|
-
onDelete: rest[2],
|
|
10566
|
-
newKey: rest[3]
|
|
10567
|
-
};
|
|
10568
|
-
}
|
|
10569
|
-
const databaseId = params.databaseId;
|
|
10570
|
-
const collectionId = params.collectionId;
|
|
10571
|
-
const key = params.key;
|
|
10572
|
-
const onDelete = params.onDelete;
|
|
10573
|
-
const newKey = params.newKey;
|
|
10574
|
-
if (typeof databaseId === 'undefined') {
|
|
10575
|
-
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
10576
|
-
}
|
|
10577
|
-
if (typeof collectionId === 'undefined') {
|
|
10578
|
-
throw new AppwriteException('Missing required parameter: "collectionId"');
|
|
10579
|
-
}
|
|
10580
|
-
if (typeof key === 'undefined') {
|
|
10581
|
-
throw new AppwriteException('Missing required parameter: "key"');
|
|
10582
|
-
}
|
|
10583
|
-
const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/{key}/relationship'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{key}', key);
|
|
10584
|
-
const payload = {};
|
|
10585
|
-
if (typeof onDelete !== 'undefined') {
|
|
10586
|
-
payload['onDelete'] = onDelete;
|
|
10587
|
-
}
|
|
10588
|
-
if (typeof newKey !== 'undefined') {
|
|
10589
|
-
payload['newKey'] = newKey;
|
|
10590
|
-
}
|
|
10591
|
-
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
10592
|
-
const apiHeaders = {
|
|
10593
|
-
'content-type': 'application/json',
|
|
10594
|
-
};
|
|
10595
|
-
return this.client.call('patch', uri, apiHeaders, payload);
|
|
10596
|
-
}
|
|
10597
10600
|
listDocuments(paramsOrFirst, ...rest) {
|
|
10598
10601
|
let params;
|
|
10599
10602
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
@@ -10605,7 +10608,8 @@
|
|
|
10605
10608
|
collectionId: rest[0],
|
|
10606
10609
|
queries: rest[1],
|
|
10607
10610
|
transactionId: rest[2],
|
|
10608
|
-
total: rest[3]
|
|
10611
|
+
total: rest[3],
|
|
10612
|
+
ttl: rest[4]
|
|
10609
10613
|
};
|
|
10610
10614
|
}
|
|
10611
10615
|
const databaseId = params.databaseId;
|
|
@@ -10613,6 +10617,7 @@
|
|
|
10613
10617
|
const queries = params.queries;
|
|
10614
10618
|
const transactionId = params.transactionId;
|
|
10615
10619
|
const total = params.total;
|
|
10620
|
+
const ttl = params.ttl;
|
|
10616
10621
|
if (typeof databaseId === 'undefined') {
|
|
10617
10622
|
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
10618
10623
|
}
|
|
@@ -10630,6 +10635,9 @@
|
|
|
10630
10635
|
if (typeof total !== 'undefined') {
|
|
10631
10636
|
payload['total'] = total;
|
|
10632
10637
|
}
|
|
10638
|
+
if (typeof ttl !== 'undefined') {
|
|
10639
|
+
payload['ttl'] = ttl;
|
|
10640
|
+
}
|
|
10633
10641
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
10634
10642
|
const apiHeaders = {};
|
|
10635
10643
|
return this.client.call('get', uri, apiHeaders, payload);
|
|
@@ -11529,7 +11537,7 @@
|
|
|
11529
11537
|
else {
|
|
11530
11538
|
params = {
|
|
11531
11539
|
domain: paramsOrFirst,
|
|
11532
|
-
|
|
11540
|
+
organizationId: rest[0],
|
|
11533
11541
|
firstName: rest[1],
|
|
11534
11542
|
lastName: rest[2],
|
|
11535
11543
|
email: rest[3],
|
|
@@ -11542,7 +11550,7 @@
|
|
|
11542
11550
|
};
|
|
11543
11551
|
}
|
|
11544
11552
|
const domain = params.domain;
|
|
11545
|
-
const
|
|
11553
|
+
const organizationId = params.organizationId;
|
|
11546
11554
|
const firstName = params.firstName;
|
|
11547
11555
|
const lastName = params.lastName;
|
|
11548
11556
|
const email = params.email;
|
|
@@ -11555,8 +11563,8 @@
|
|
|
11555
11563
|
if (typeof domain === 'undefined') {
|
|
11556
11564
|
throw new AppwriteException('Missing required parameter: "domain"');
|
|
11557
11565
|
}
|
|
11558
|
-
if (typeof
|
|
11559
|
-
throw new AppwriteException('Missing required parameter: "
|
|
11566
|
+
if (typeof organizationId === 'undefined') {
|
|
11567
|
+
throw new AppwriteException('Missing required parameter: "organizationId"');
|
|
11560
11568
|
}
|
|
11561
11569
|
if (typeof firstName === 'undefined') {
|
|
11562
11570
|
throw new AppwriteException('Missing required parameter: "firstName"');
|
|
@@ -11581,8 +11589,8 @@
|
|
|
11581
11589
|
if (typeof domain !== 'undefined') {
|
|
11582
11590
|
payload['domain'] = domain;
|
|
11583
11591
|
}
|
|
11584
|
-
if (typeof
|
|
11585
|
-
payload['
|
|
11592
|
+
if (typeof organizationId !== 'undefined') {
|
|
11593
|
+
payload['organizationId'] = organizationId;
|
|
11586
11594
|
}
|
|
11587
11595
|
if (typeof firstName !== 'undefined') {
|
|
11588
11596
|
payload['firstName'] = firstName;
|
|
@@ -11617,6 +11625,36 @@
|
|
|
11617
11625
|
};
|
|
11618
11626
|
return this.client.call('post', uri, apiHeaders, payload);
|
|
11619
11627
|
}
|
|
11628
|
+
confirmPurchase(paramsOrFirst, ...rest) {
|
|
11629
|
+
let params;
|
|
11630
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
11631
|
+
params = (paramsOrFirst || {});
|
|
11632
|
+
}
|
|
11633
|
+
else {
|
|
11634
|
+
params = {
|
|
11635
|
+
domainId: paramsOrFirst,
|
|
11636
|
+
organizationId: rest[0]
|
|
11637
|
+
};
|
|
11638
|
+
}
|
|
11639
|
+
const domainId = params.domainId;
|
|
11640
|
+
const organizationId = params.organizationId;
|
|
11641
|
+
if (typeof domainId === 'undefined') {
|
|
11642
|
+
throw new AppwriteException('Missing required parameter: "domainId"');
|
|
11643
|
+
}
|
|
11644
|
+
if (typeof organizationId === 'undefined') {
|
|
11645
|
+
throw new AppwriteException('Missing required parameter: "organizationId"');
|
|
11646
|
+
}
|
|
11647
|
+
const apiPath = '/domains/purchases/{domainId}/confirm'.replace('{domainId}', domainId);
|
|
11648
|
+
const payload = {};
|
|
11649
|
+
if (typeof organizationId !== 'undefined') {
|
|
11650
|
+
payload['organizationId'] = organizationId;
|
|
11651
|
+
}
|
|
11652
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
11653
|
+
const apiHeaders = {
|
|
11654
|
+
'content-type': 'application/json',
|
|
11655
|
+
};
|
|
11656
|
+
return this.client.call('post', uri, apiHeaders, payload);
|
|
11657
|
+
}
|
|
11620
11658
|
listSuggestions(paramsOrFirst, ...rest) {
|
|
11621
11659
|
let params;
|
|
11622
11660
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
@@ -11665,6 +11703,118 @@
|
|
|
11665
11703
|
const apiHeaders = {};
|
|
11666
11704
|
return this.client.call('get', uri, apiHeaders, payload);
|
|
11667
11705
|
}
|
|
11706
|
+
createTransferIn(paramsOrFirst, ...rest) {
|
|
11707
|
+
let params;
|
|
11708
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
11709
|
+
params = (paramsOrFirst || {});
|
|
11710
|
+
}
|
|
11711
|
+
else {
|
|
11712
|
+
params = {
|
|
11713
|
+
domain: paramsOrFirst,
|
|
11714
|
+
organizationId: rest[0],
|
|
11715
|
+
authCode: rest[1],
|
|
11716
|
+
paymentMethodId: rest[2]
|
|
11717
|
+
};
|
|
11718
|
+
}
|
|
11719
|
+
const domain = params.domain;
|
|
11720
|
+
const organizationId = params.organizationId;
|
|
11721
|
+
const authCode = params.authCode;
|
|
11722
|
+
const paymentMethodId = params.paymentMethodId;
|
|
11723
|
+
if (typeof domain === 'undefined') {
|
|
11724
|
+
throw new AppwriteException('Missing required parameter: "domain"');
|
|
11725
|
+
}
|
|
11726
|
+
if (typeof organizationId === 'undefined') {
|
|
11727
|
+
throw new AppwriteException('Missing required parameter: "organizationId"');
|
|
11728
|
+
}
|
|
11729
|
+
if (typeof authCode === 'undefined') {
|
|
11730
|
+
throw new AppwriteException('Missing required parameter: "authCode"');
|
|
11731
|
+
}
|
|
11732
|
+
if (typeof paymentMethodId === 'undefined') {
|
|
11733
|
+
throw new AppwriteException('Missing required parameter: "paymentMethodId"');
|
|
11734
|
+
}
|
|
11735
|
+
const apiPath = '/domains/transfers/in';
|
|
11736
|
+
const payload = {};
|
|
11737
|
+
if (typeof domain !== 'undefined') {
|
|
11738
|
+
payload['domain'] = domain;
|
|
11739
|
+
}
|
|
11740
|
+
if (typeof organizationId !== 'undefined') {
|
|
11741
|
+
payload['organizationId'] = organizationId;
|
|
11742
|
+
}
|
|
11743
|
+
if (typeof authCode !== 'undefined') {
|
|
11744
|
+
payload['authCode'] = authCode;
|
|
11745
|
+
}
|
|
11746
|
+
if (typeof paymentMethodId !== 'undefined') {
|
|
11747
|
+
payload['paymentMethodId'] = paymentMethodId;
|
|
11748
|
+
}
|
|
11749
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
11750
|
+
const apiHeaders = {
|
|
11751
|
+
'content-type': 'application/json',
|
|
11752
|
+
};
|
|
11753
|
+
return this.client.call('post', uri, apiHeaders, payload);
|
|
11754
|
+
}
|
|
11755
|
+
confirmTransferIn(paramsOrFirst, ...rest) {
|
|
11756
|
+
let params;
|
|
11757
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
11758
|
+
params = (paramsOrFirst || {});
|
|
11759
|
+
}
|
|
11760
|
+
else {
|
|
11761
|
+
params = {
|
|
11762
|
+
domainId: paramsOrFirst,
|
|
11763
|
+
organizationId: rest[0]
|
|
11764
|
+
};
|
|
11765
|
+
}
|
|
11766
|
+
const domainId = params.domainId;
|
|
11767
|
+
const organizationId = params.organizationId;
|
|
11768
|
+
if (typeof domainId === 'undefined') {
|
|
11769
|
+
throw new AppwriteException('Missing required parameter: "domainId"');
|
|
11770
|
+
}
|
|
11771
|
+
if (typeof organizationId === 'undefined') {
|
|
11772
|
+
throw new AppwriteException('Missing required parameter: "organizationId"');
|
|
11773
|
+
}
|
|
11774
|
+
const apiPath = '/domains/transfers/in/{domainId}/confirm'.replace('{domainId}', domainId);
|
|
11775
|
+
const payload = {};
|
|
11776
|
+
if (typeof organizationId !== 'undefined') {
|
|
11777
|
+
payload['organizationId'] = organizationId;
|
|
11778
|
+
}
|
|
11779
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
11780
|
+
const apiHeaders = {
|
|
11781
|
+
'content-type': 'application/json',
|
|
11782
|
+
};
|
|
11783
|
+
return this.client.call('post', uri, apiHeaders, payload);
|
|
11784
|
+
}
|
|
11785
|
+
createTransferOut(paramsOrFirst, ...rest) {
|
|
11786
|
+
let params;
|
|
11787
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
11788
|
+
params = (paramsOrFirst || {});
|
|
11789
|
+
}
|
|
11790
|
+
else {
|
|
11791
|
+
params = {
|
|
11792
|
+
domainId: paramsOrFirst,
|
|
11793
|
+
organizationId: rest[0]
|
|
11794
|
+
};
|
|
11795
|
+
}
|
|
11796
|
+
const domainId = params.domainId;
|
|
11797
|
+
const organizationId = params.organizationId;
|
|
11798
|
+
if (typeof domainId === 'undefined') {
|
|
11799
|
+
throw new AppwriteException('Missing required parameter: "domainId"');
|
|
11800
|
+
}
|
|
11801
|
+
if (typeof organizationId === 'undefined') {
|
|
11802
|
+
throw new AppwriteException('Missing required parameter: "organizationId"');
|
|
11803
|
+
}
|
|
11804
|
+
const apiPath = '/domains/transfers/out';
|
|
11805
|
+
const payload = {};
|
|
11806
|
+
if (typeof domainId !== 'undefined') {
|
|
11807
|
+
payload['domainId'] = domainId;
|
|
11808
|
+
}
|
|
11809
|
+
if (typeof organizationId !== 'undefined') {
|
|
11810
|
+
payload['organizationId'] = organizationId;
|
|
11811
|
+
}
|
|
11812
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
11813
|
+
const apiHeaders = {
|
|
11814
|
+
'content-type': 'application/json',
|
|
11815
|
+
};
|
|
11816
|
+
return this.client.call('post', uri, apiHeaders, payload);
|
|
11817
|
+
}
|
|
11668
11818
|
get(paramsOrFirst) {
|
|
11669
11819
|
let params;
|
|
11670
11820
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
@@ -13219,6 +13369,26 @@
|
|
|
13219
13369
|
};
|
|
13220
13370
|
return this.client.call('patch', uri, apiHeaders, payload);
|
|
13221
13371
|
}
|
|
13372
|
+
getTransferStatus(paramsOrFirst) {
|
|
13373
|
+
let params;
|
|
13374
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
13375
|
+
params = (paramsOrFirst || {});
|
|
13376
|
+
}
|
|
13377
|
+
else {
|
|
13378
|
+
params = {
|
|
13379
|
+
domainId: paramsOrFirst
|
|
13380
|
+
};
|
|
13381
|
+
}
|
|
13382
|
+
const domainId = params.domainId;
|
|
13383
|
+
if (typeof domainId === 'undefined') {
|
|
13384
|
+
throw new AppwriteException('Missing required parameter: "domainId"');
|
|
13385
|
+
}
|
|
13386
|
+
const apiPath = '/domains/{domainId}/transfers/status'.replace('{domainId}', domainId);
|
|
13387
|
+
const payload = {};
|
|
13388
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
13389
|
+
const apiHeaders = {};
|
|
13390
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
13391
|
+
}
|
|
13222
13392
|
getZone(paramsOrFirst) {
|
|
13223
13393
|
let params;
|
|
13224
13394
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
@@ -13329,7 +13499,9 @@
|
|
|
13329
13499
|
providerBranch: rest[13],
|
|
13330
13500
|
providerSilentMode: rest[14],
|
|
13331
13501
|
providerRootDirectory: rest[15],
|
|
13332
|
-
|
|
13502
|
+
buildSpecification: rest[16],
|
|
13503
|
+
runtimeSpecification: rest[17],
|
|
13504
|
+
deploymentRetention: rest[18]
|
|
13333
13505
|
};
|
|
13334
13506
|
}
|
|
13335
13507
|
const functionId = params.functionId;
|
|
@@ -13349,7 +13521,9 @@
|
|
|
13349
13521
|
const providerBranch = params.providerBranch;
|
|
13350
13522
|
const providerSilentMode = params.providerSilentMode;
|
|
13351
13523
|
const providerRootDirectory = params.providerRootDirectory;
|
|
13352
|
-
const
|
|
13524
|
+
const buildSpecification = params.buildSpecification;
|
|
13525
|
+
const runtimeSpecification = params.runtimeSpecification;
|
|
13526
|
+
const deploymentRetention = params.deploymentRetention;
|
|
13353
13527
|
if (typeof functionId === 'undefined') {
|
|
13354
13528
|
throw new AppwriteException('Missing required parameter: "functionId"');
|
|
13355
13529
|
}
|
|
@@ -13412,8 +13586,14 @@
|
|
|
13412
13586
|
if (typeof providerRootDirectory !== 'undefined') {
|
|
13413
13587
|
payload['providerRootDirectory'] = providerRootDirectory;
|
|
13414
13588
|
}
|
|
13415
|
-
if (typeof
|
|
13416
|
-
payload['
|
|
13589
|
+
if (typeof buildSpecification !== 'undefined') {
|
|
13590
|
+
payload['buildSpecification'] = buildSpecification;
|
|
13591
|
+
}
|
|
13592
|
+
if (typeof runtimeSpecification !== 'undefined') {
|
|
13593
|
+
payload['runtimeSpecification'] = runtimeSpecification;
|
|
13594
|
+
}
|
|
13595
|
+
if (typeof deploymentRetention !== 'undefined') {
|
|
13596
|
+
payload['deploymentRetention'] = deploymentRetention;
|
|
13417
13597
|
}
|
|
13418
13598
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
13419
13599
|
const apiHeaders = {
|
|
@@ -13571,7 +13751,9 @@
|
|
|
13571
13751
|
providerBranch: rest[13],
|
|
13572
13752
|
providerSilentMode: rest[14],
|
|
13573
13753
|
providerRootDirectory: rest[15],
|
|
13574
|
-
|
|
13754
|
+
buildSpecification: rest[16],
|
|
13755
|
+
runtimeSpecification: rest[17],
|
|
13756
|
+
deploymentRetention: rest[18]
|
|
13575
13757
|
};
|
|
13576
13758
|
}
|
|
13577
13759
|
const functionId = params.functionId;
|
|
@@ -13591,7 +13773,9 @@
|
|
|
13591
13773
|
const providerBranch = params.providerBranch;
|
|
13592
13774
|
const providerSilentMode = params.providerSilentMode;
|
|
13593
13775
|
const providerRootDirectory = params.providerRootDirectory;
|
|
13594
|
-
const
|
|
13776
|
+
const buildSpecification = params.buildSpecification;
|
|
13777
|
+
const runtimeSpecification = params.runtimeSpecification;
|
|
13778
|
+
const deploymentRetention = params.deploymentRetention;
|
|
13595
13779
|
if (typeof functionId === 'undefined') {
|
|
13596
13780
|
throw new AppwriteException('Missing required parameter: "functionId"');
|
|
13597
13781
|
}
|
|
@@ -13648,8 +13832,14 @@
|
|
|
13648
13832
|
if (typeof providerRootDirectory !== 'undefined') {
|
|
13649
13833
|
payload['providerRootDirectory'] = providerRootDirectory;
|
|
13650
13834
|
}
|
|
13651
|
-
if (typeof
|
|
13652
|
-
payload['
|
|
13835
|
+
if (typeof buildSpecification !== 'undefined') {
|
|
13836
|
+
payload['buildSpecification'] = buildSpecification;
|
|
13837
|
+
}
|
|
13838
|
+
if (typeof runtimeSpecification !== 'undefined') {
|
|
13839
|
+
payload['runtimeSpecification'] = runtimeSpecification;
|
|
13840
|
+
}
|
|
13841
|
+
if (typeof deploymentRetention !== 'undefined') {
|
|
13842
|
+
payload['deploymentRetention'] = deploymentRetention;
|
|
13653
13843
|
}
|
|
13654
13844
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
13655
13845
|
const apiHeaders = {
|
|
@@ -14494,6 +14684,31 @@
|
|
|
14494
14684
|
const apiHeaders = {};
|
|
14495
14685
|
return this.client.call('get', uri, apiHeaders, payload);
|
|
14496
14686
|
}
|
|
14687
|
+
getConsolePausing(paramsOrFirst, ...rest) {
|
|
14688
|
+
let params;
|
|
14689
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
14690
|
+
params = (paramsOrFirst || {});
|
|
14691
|
+
}
|
|
14692
|
+
else {
|
|
14693
|
+
params = {
|
|
14694
|
+
threshold: paramsOrFirst,
|
|
14695
|
+
inactivityDays: rest[0]
|
|
14696
|
+
};
|
|
14697
|
+
}
|
|
14698
|
+
const threshold = params.threshold;
|
|
14699
|
+
const inactivityDays = params.inactivityDays;
|
|
14700
|
+
const apiPath = '/health/console-pausing';
|
|
14701
|
+
const payload = {};
|
|
14702
|
+
if (typeof threshold !== 'undefined') {
|
|
14703
|
+
payload['threshold'] = threshold;
|
|
14704
|
+
}
|
|
14705
|
+
if (typeof inactivityDays !== 'undefined') {
|
|
14706
|
+
payload['inactivityDays'] = inactivityDays;
|
|
14707
|
+
}
|
|
14708
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
14709
|
+
const apiHeaders = {};
|
|
14710
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
14711
|
+
}
|
|
14497
14712
|
/**
|
|
14498
14713
|
* Check the Appwrite database servers are up and connection is successful.
|
|
14499
14714
|
*
|
|
@@ -20741,6 +20956,28 @@
|
|
|
20741
20956
|
};
|
|
20742
20957
|
return this.client.call('patch', uri, apiHeaders, payload);
|
|
20743
20958
|
}
|
|
20959
|
+
updateConsoleAccess(paramsOrFirst) {
|
|
20960
|
+
let params;
|
|
20961
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
20962
|
+
params = (paramsOrFirst || {});
|
|
20963
|
+
}
|
|
20964
|
+
else {
|
|
20965
|
+
params = {
|
|
20966
|
+
projectId: paramsOrFirst
|
|
20967
|
+
};
|
|
20968
|
+
}
|
|
20969
|
+
const projectId = params.projectId;
|
|
20970
|
+
if (typeof projectId === 'undefined') {
|
|
20971
|
+
throw new AppwriteException('Missing required parameter: "projectId"');
|
|
20972
|
+
}
|
|
20973
|
+
const apiPath = '/projects/{projectId}/console-access'.replace('{projectId}', projectId);
|
|
20974
|
+
const payload = {};
|
|
20975
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
20976
|
+
const apiHeaders = {
|
|
20977
|
+
'content-type': 'application/json',
|
|
20978
|
+
};
|
|
20979
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
20980
|
+
}
|
|
20744
20981
|
listDevKeys(paramsOrFirst, ...rest) {
|
|
20745
20982
|
let params;
|
|
20746
20983
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
@@ -21844,6 +22081,36 @@
|
|
|
21844
22081
|
};
|
|
21845
22082
|
return this.client.call('post', uri, apiHeaders, payload);
|
|
21846
22083
|
}
|
|
22084
|
+
updateStatus(paramsOrFirst, ...rest) {
|
|
22085
|
+
let params;
|
|
22086
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
22087
|
+
params = (paramsOrFirst || {});
|
|
22088
|
+
}
|
|
22089
|
+
else {
|
|
22090
|
+
params = {
|
|
22091
|
+
projectId: paramsOrFirst,
|
|
22092
|
+
status: rest[0]
|
|
22093
|
+
};
|
|
22094
|
+
}
|
|
22095
|
+
const projectId = params.projectId;
|
|
22096
|
+
const status = params.status;
|
|
22097
|
+
if (typeof projectId === 'undefined') {
|
|
22098
|
+
throw new AppwriteException('Missing required parameter: "projectId"');
|
|
22099
|
+
}
|
|
22100
|
+
if (typeof status === 'undefined') {
|
|
22101
|
+
throw new AppwriteException('Missing required parameter: "status"');
|
|
22102
|
+
}
|
|
22103
|
+
const apiPath = '/projects/{projectId}/status'.replace('{projectId}', projectId);
|
|
22104
|
+
const payload = {};
|
|
22105
|
+
if (typeof status !== 'undefined') {
|
|
22106
|
+
payload['status'] = status;
|
|
22107
|
+
}
|
|
22108
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22109
|
+
const apiHeaders = {
|
|
22110
|
+
'content-type': 'application/json',
|
|
22111
|
+
};
|
|
22112
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
22113
|
+
}
|
|
21847
22114
|
updateTeam(paramsOrFirst, ...rest) {
|
|
21848
22115
|
let params;
|
|
21849
22116
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
@@ -22760,15 +23027,18 @@
|
|
|
22760
23027
|
timeout: rest[5],
|
|
22761
23028
|
installCommand: rest[6],
|
|
22762
23029
|
buildCommand: rest[7],
|
|
22763
|
-
|
|
22764
|
-
|
|
22765
|
-
|
|
22766
|
-
|
|
22767
|
-
|
|
22768
|
-
|
|
22769
|
-
|
|
22770
|
-
|
|
22771
|
-
|
|
23030
|
+
startCommand: rest[8],
|
|
23031
|
+
outputDirectory: rest[9],
|
|
23032
|
+
adapter: rest[10],
|
|
23033
|
+
installationId: rest[11],
|
|
23034
|
+
fallbackFile: rest[12],
|
|
23035
|
+
providerRepositoryId: rest[13],
|
|
23036
|
+
providerBranch: rest[14],
|
|
23037
|
+
providerSilentMode: rest[15],
|
|
23038
|
+
providerRootDirectory: rest[16],
|
|
23039
|
+
buildSpecification: rest[17],
|
|
23040
|
+
runtimeSpecification: rest[18],
|
|
23041
|
+
deploymentRetention: rest[19]
|
|
22772
23042
|
};
|
|
22773
23043
|
}
|
|
22774
23044
|
const siteId = params.siteId;
|
|
@@ -22780,6 +23050,7 @@
|
|
|
22780
23050
|
const timeout = params.timeout;
|
|
22781
23051
|
const installCommand = params.installCommand;
|
|
22782
23052
|
const buildCommand = params.buildCommand;
|
|
23053
|
+
const startCommand = params.startCommand;
|
|
22783
23054
|
const outputDirectory = params.outputDirectory;
|
|
22784
23055
|
const adapter = params.adapter;
|
|
22785
23056
|
const installationId = params.installationId;
|
|
@@ -22788,7 +23059,9 @@
|
|
|
22788
23059
|
const providerBranch = params.providerBranch;
|
|
22789
23060
|
const providerSilentMode = params.providerSilentMode;
|
|
22790
23061
|
const providerRootDirectory = params.providerRootDirectory;
|
|
22791
|
-
const
|
|
23062
|
+
const buildSpecification = params.buildSpecification;
|
|
23063
|
+
const runtimeSpecification = params.runtimeSpecification;
|
|
23064
|
+
const deploymentRetention = params.deploymentRetention;
|
|
22792
23065
|
if (typeof siteId === 'undefined') {
|
|
22793
23066
|
throw new AppwriteException('Missing required parameter: "siteId"');
|
|
22794
23067
|
}
|
|
@@ -22827,6 +23100,9 @@
|
|
|
22827
23100
|
if (typeof buildCommand !== 'undefined') {
|
|
22828
23101
|
payload['buildCommand'] = buildCommand;
|
|
22829
23102
|
}
|
|
23103
|
+
if (typeof startCommand !== 'undefined') {
|
|
23104
|
+
payload['startCommand'] = startCommand;
|
|
23105
|
+
}
|
|
22830
23106
|
if (typeof outputDirectory !== 'undefined') {
|
|
22831
23107
|
payload['outputDirectory'] = outputDirectory;
|
|
22832
23108
|
}
|
|
@@ -22854,8 +23130,14 @@
|
|
|
22854
23130
|
if (typeof providerRootDirectory !== 'undefined') {
|
|
22855
23131
|
payload['providerRootDirectory'] = providerRootDirectory;
|
|
22856
23132
|
}
|
|
22857
|
-
if (typeof
|
|
22858
|
-
payload['
|
|
23133
|
+
if (typeof buildSpecification !== 'undefined') {
|
|
23134
|
+
payload['buildSpecification'] = buildSpecification;
|
|
23135
|
+
}
|
|
23136
|
+
if (typeof runtimeSpecification !== 'undefined') {
|
|
23137
|
+
payload['runtimeSpecification'] = runtimeSpecification;
|
|
23138
|
+
}
|
|
23139
|
+
if (typeof deploymentRetention !== 'undefined') {
|
|
23140
|
+
payload['deploymentRetention'] = deploymentRetention;
|
|
22859
23141
|
}
|
|
22860
23142
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22861
23143
|
const apiHeaders = {
|
|
@@ -22999,16 +23281,19 @@
|
|
|
22999
23281
|
timeout: rest[4],
|
|
23000
23282
|
installCommand: rest[5],
|
|
23001
23283
|
buildCommand: rest[6],
|
|
23002
|
-
|
|
23003
|
-
|
|
23004
|
-
|
|
23005
|
-
|
|
23006
|
-
|
|
23007
|
-
|
|
23008
|
-
|
|
23009
|
-
|
|
23010
|
-
|
|
23011
|
-
|
|
23284
|
+
startCommand: rest[7],
|
|
23285
|
+
outputDirectory: rest[8],
|
|
23286
|
+
buildRuntime: rest[9],
|
|
23287
|
+
adapter: rest[10],
|
|
23288
|
+
fallbackFile: rest[11],
|
|
23289
|
+
installationId: rest[12],
|
|
23290
|
+
providerRepositoryId: rest[13],
|
|
23291
|
+
providerBranch: rest[14],
|
|
23292
|
+
providerSilentMode: rest[15],
|
|
23293
|
+
providerRootDirectory: rest[16],
|
|
23294
|
+
buildSpecification: rest[17],
|
|
23295
|
+
runtimeSpecification: rest[18],
|
|
23296
|
+
deploymentRetention: rest[19]
|
|
23012
23297
|
};
|
|
23013
23298
|
}
|
|
23014
23299
|
const siteId = params.siteId;
|
|
@@ -23019,6 +23304,7 @@
|
|
|
23019
23304
|
const timeout = params.timeout;
|
|
23020
23305
|
const installCommand = params.installCommand;
|
|
23021
23306
|
const buildCommand = params.buildCommand;
|
|
23307
|
+
const startCommand = params.startCommand;
|
|
23022
23308
|
const outputDirectory = params.outputDirectory;
|
|
23023
23309
|
const buildRuntime = params.buildRuntime;
|
|
23024
23310
|
const adapter = params.adapter;
|
|
@@ -23028,7 +23314,9 @@
|
|
|
23028
23314
|
const providerBranch = params.providerBranch;
|
|
23029
23315
|
const providerSilentMode = params.providerSilentMode;
|
|
23030
23316
|
const providerRootDirectory = params.providerRootDirectory;
|
|
23031
|
-
const
|
|
23317
|
+
const buildSpecification = params.buildSpecification;
|
|
23318
|
+
const runtimeSpecification = params.runtimeSpecification;
|
|
23319
|
+
const deploymentRetention = params.deploymentRetention;
|
|
23032
23320
|
if (typeof siteId === 'undefined') {
|
|
23033
23321
|
throw new AppwriteException('Missing required parameter: "siteId"');
|
|
23034
23322
|
}
|
|
@@ -23061,6 +23349,9 @@
|
|
|
23061
23349
|
if (typeof buildCommand !== 'undefined') {
|
|
23062
23350
|
payload['buildCommand'] = buildCommand;
|
|
23063
23351
|
}
|
|
23352
|
+
if (typeof startCommand !== 'undefined') {
|
|
23353
|
+
payload['startCommand'] = startCommand;
|
|
23354
|
+
}
|
|
23064
23355
|
if (typeof outputDirectory !== 'undefined') {
|
|
23065
23356
|
payload['outputDirectory'] = outputDirectory;
|
|
23066
23357
|
}
|
|
@@ -23088,8 +23379,14 @@
|
|
|
23088
23379
|
if (typeof providerRootDirectory !== 'undefined') {
|
|
23089
23380
|
payload['providerRootDirectory'] = providerRootDirectory;
|
|
23090
23381
|
}
|
|
23091
|
-
if (typeof
|
|
23092
|
-
payload['
|
|
23382
|
+
if (typeof buildSpecification !== 'undefined') {
|
|
23383
|
+
payload['buildSpecification'] = buildSpecification;
|
|
23384
|
+
}
|
|
23385
|
+
if (typeof runtimeSpecification !== 'undefined') {
|
|
23386
|
+
payload['runtimeSpecification'] = runtimeSpecification;
|
|
23387
|
+
}
|
|
23388
|
+
if (typeof deploymentRetention !== 'undefined') {
|
|
23389
|
+
payload['deploymentRetention'] = deploymentRetention;
|
|
23093
23390
|
}
|
|
23094
23391
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
23095
23392
|
const apiHeaders = {
|
|
@@ -23195,28 +23492,25 @@
|
|
|
23195
23492
|
params = {
|
|
23196
23493
|
siteId: paramsOrFirst,
|
|
23197
23494
|
code: rest[0],
|
|
23198
|
-
|
|
23199
|
-
|
|
23200
|
-
|
|
23201
|
-
|
|
23495
|
+
installCommand: rest[1],
|
|
23496
|
+
buildCommand: rest[2],
|
|
23497
|
+
outputDirectory: rest[3],
|
|
23498
|
+
activate: rest[4]
|
|
23202
23499
|
};
|
|
23203
23500
|
onProgress = rest[5];
|
|
23204
23501
|
}
|
|
23205
23502
|
const siteId = params.siteId;
|
|
23206
23503
|
const code = params.code;
|
|
23207
|
-
const activate = params.activate;
|
|
23208
23504
|
const installCommand = params.installCommand;
|
|
23209
23505
|
const buildCommand = params.buildCommand;
|
|
23210
23506
|
const outputDirectory = params.outputDirectory;
|
|
23507
|
+
const activate = params.activate;
|
|
23211
23508
|
if (typeof siteId === 'undefined') {
|
|
23212
23509
|
throw new AppwriteException('Missing required parameter: "siteId"');
|
|
23213
23510
|
}
|
|
23214
23511
|
if (typeof code === 'undefined') {
|
|
23215
23512
|
throw new AppwriteException('Missing required parameter: "code"');
|
|
23216
23513
|
}
|
|
23217
|
-
if (typeof activate === 'undefined') {
|
|
23218
|
-
throw new AppwriteException('Missing required parameter: "activate"');
|
|
23219
|
-
}
|
|
23220
23514
|
const apiPath = '/sites/{siteId}/deployments'.replace('{siteId}', siteId);
|
|
23221
23515
|
const payload = {};
|
|
23222
23516
|
if (typeof installCommand !== 'undefined') {
|
|
@@ -27047,7 +27341,8 @@
|
|
|
27047
27341
|
tableId: rest[0],
|
|
27048
27342
|
queries: rest[1],
|
|
27049
27343
|
transactionId: rest[2],
|
|
27050
|
-
total: rest[3]
|
|
27344
|
+
total: rest[3],
|
|
27345
|
+
ttl: rest[4]
|
|
27051
27346
|
};
|
|
27052
27347
|
}
|
|
27053
27348
|
const databaseId = params.databaseId;
|
|
@@ -27055,6 +27350,7 @@
|
|
|
27055
27350
|
const queries = params.queries;
|
|
27056
27351
|
const transactionId = params.transactionId;
|
|
27057
27352
|
const total = params.total;
|
|
27353
|
+
const ttl = params.ttl;
|
|
27058
27354
|
if (typeof databaseId === 'undefined') {
|
|
27059
27355
|
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
27060
27356
|
}
|
|
@@ -27072,6 +27368,9 @@
|
|
|
27072
27368
|
if (typeof total !== 'undefined') {
|
|
27073
27369
|
payload['total'] = total;
|
|
27074
27370
|
}
|
|
27371
|
+
if (typeof ttl !== 'undefined') {
|
|
27372
|
+
payload['ttl'] = ttl;
|
|
27373
|
+
}
|
|
27075
27374
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
27076
27375
|
const apiHeaders = {};
|
|
27077
27376
|
return this.client.call('get', uri, apiHeaders, payload);
|
|
@@ -30710,8 +31009,14 @@
|
|
|
30710
31009
|
};
|
|
30711
31010
|
|
|
30712
31011
|
function normalize(id) {
|
|
30713
|
-
|
|
30714
|
-
|
|
31012
|
+
if (id === undefined || id === null) {
|
|
31013
|
+
throw new Error("Channel ID is required");
|
|
31014
|
+
}
|
|
31015
|
+
const trimmed = String(id).trim();
|
|
31016
|
+
if (trimmed === "") {
|
|
31017
|
+
throw new Error("Channel ID is required");
|
|
31018
|
+
}
|
|
31019
|
+
return trimmed;
|
|
30715
31020
|
}
|
|
30716
31021
|
class Channel {
|
|
30717
31022
|
constructor(segments) {
|
|
@@ -30732,8 +31037,7 @@
|
|
|
30732
31037
|
// --- DATABASE ROUTE ---
|
|
30733
31038
|
// Only available on Channel<Database>
|
|
30734
31039
|
collection(id) {
|
|
30735
|
-
|
|
30736
|
-
return this.next("collections", id !== null && id !== void 0 ? id : "*");
|
|
31040
|
+
return this.next("collections", id);
|
|
30737
31041
|
}
|
|
30738
31042
|
// Only available on Channel<Collection>
|
|
30739
31043
|
document(id) {
|
|
@@ -30742,8 +31046,7 @@
|
|
|
30742
31046
|
}
|
|
30743
31047
|
// --- TABLESDB ROUTE ---
|
|
30744
31048
|
table(id) {
|
|
30745
|
-
|
|
30746
|
-
return this.next("tables", id !== null && id !== void 0 ? id : "*");
|
|
31049
|
+
return this.next("tables", id);
|
|
30747
31050
|
}
|
|
30748
31051
|
row(id) {
|
|
30749
31052
|
// Default: no row ID segment
|
|
@@ -30769,25 +31072,25 @@
|
|
|
30769
31072
|
return this.resolve("delete");
|
|
30770
31073
|
}
|
|
30771
31074
|
// --- ROOT FACTORIES ---
|
|
30772
|
-
static database(id
|
|
31075
|
+
static database(id) {
|
|
30773
31076
|
return new Channel(["databases", normalize(id)]);
|
|
30774
31077
|
}
|
|
30775
|
-
static execution(id
|
|
31078
|
+
static execution(id) {
|
|
30776
31079
|
return new Channel(["executions", normalize(id)]);
|
|
30777
31080
|
}
|
|
30778
|
-
static tablesdb(id
|
|
31081
|
+
static tablesdb(id) {
|
|
30779
31082
|
return new Channel(["tablesdb", normalize(id)]);
|
|
30780
31083
|
}
|
|
30781
|
-
static bucket(id
|
|
31084
|
+
static bucket(id) {
|
|
30782
31085
|
return new Channel(["buckets", normalize(id)]);
|
|
30783
31086
|
}
|
|
30784
|
-
static function(id
|
|
31087
|
+
static function(id) {
|
|
30785
31088
|
return new Channel(["functions", normalize(id)]);
|
|
30786
31089
|
}
|
|
30787
|
-
static team(id
|
|
31090
|
+
static team(id) {
|
|
30788
31091
|
return new Channel(["teams", normalize(id)]);
|
|
30789
31092
|
}
|
|
30790
|
-
static membership(id
|
|
31093
|
+
static membership(id) {
|
|
30791
31094
|
return new Channel(["memberships", normalize(id)]);
|
|
30792
31095
|
}
|
|
30793
31096
|
static account() {
|
|
@@ -32008,6 +32311,9 @@
|
|
|
32008
32311
|
Runtime["Pythonml311"] = "python-ml-3.11";
|
|
32009
32312
|
Runtime["Pythonml312"] = "python-ml-3.12";
|
|
32010
32313
|
Runtime["Pythonml313"] = "python-ml-3.13";
|
|
32314
|
+
Runtime["Deno121"] = "deno-1.21";
|
|
32315
|
+
Runtime["Deno124"] = "deno-1.24";
|
|
32316
|
+
Runtime["Deno135"] = "deno-1.35";
|
|
32011
32317
|
Runtime["Deno140"] = "deno-1.40";
|
|
32012
32318
|
Runtime["Deno146"] = "deno-1.46";
|
|
32013
32319
|
Runtime["Deno20"] = "deno-2.0";
|
|
@@ -32098,6 +32404,9 @@
|
|
|
32098
32404
|
Runtimes["Pythonml311"] = "python-ml-3.11";
|
|
32099
32405
|
Runtimes["Pythonml312"] = "python-ml-3.12";
|
|
32100
32406
|
Runtimes["Pythonml313"] = "python-ml-3.13";
|
|
32407
|
+
Runtimes["Deno121"] = "deno-1.21";
|
|
32408
|
+
Runtimes["Deno124"] = "deno-1.24";
|
|
32409
|
+
Runtimes["Deno135"] = "deno-1.35";
|
|
32101
32410
|
Runtimes["Deno140"] = "deno-1.40";
|
|
32102
32411
|
Runtimes["Deno146"] = "deno-1.46";
|
|
32103
32412
|
Runtimes["Deno20"] = "deno-2.0";
|
|
@@ -32229,20 +32538,76 @@
|
|
|
32229
32538
|
SmtpEncryption["Tls"] = "tls";
|
|
32230
32539
|
})(exports.SmtpEncryption || (exports.SmtpEncryption = {}));
|
|
32231
32540
|
|
|
32232
|
-
exports.
|
|
32233
|
-
(function (
|
|
32234
|
-
|
|
32235
|
-
|
|
32236
|
-
|
|
32237
|
-
|
|
32238
|
-
|
|
32239
|
-
|
|
32240
|
-
|
|
32241
|
-
|
|
32242
|
-
|
|
32243
|
-
|
|
32244
|
-
|
|
32245
|
-
|
|
32541
|
+
exports.AppwriteMigrationResource = void 0;
|
|
32542
|
+
(function (AppwriteMigrationResource) {
|
|
32543
|
+
AppwriteMigrationResource["User"] = "user";
|
|
32544
|
+
AppwriteMigrationResource["Team"] = "team";
|
|
32545
|
+
AppwriteMigrationResource["Membership"] = "membership";
|
|
32546
|
+
AppwriteMigrationResource["Database"] = "database";
|
|
32547
|
+
AppwriteMigrationResource["Table"] = "table";
|
|
32548
|
+
AppwriteMigrationResource["Column"] = "column";
|
|
32549
|
+
AppwriteMigrationResource["Index"] = "index";
|
|
32550
|
+
AppwriteMigrationResource["Row"] = "row";
|
|
32551
|
+
AppwriteMigrationResource["Document"] = "document";
|
|
32552
|
+
AppwriteMigrationResource["Attribute"] = "attribute";
|
|
32553
|
+
AppwriteMigrationResource["Collection"] = "collection";
|
|
32554
|
+
AppwriteMigrationResource["Bucket"] = "bucket";
|
|
32555
|
+
AppwriteMigrationResource["File"] = "file";
|
|
32556
|
+
AppwriteMigrationResource["Function"] = "function";
|
|
32557
|
+
AppwriteMigrationResource["Deployment"] = "deployment";
|
|
32558
|
+
AppwriteMigrationResource["Environmentvariable"] = "environment-variable";
|
|
32559
|
+
AppwriteMigrationResource["Provider"] = "provider";
|
|
32560
|
+
AppwriteMigrationResource["Topic"] = "topic";
|
|
32561
|
+
AppwriteMigrationResource["Subscriber"] = "subscriber";
|
|
32562
|
+
AppwriteMigrationResource["Message"] = "message";
|
|
32563
|
+
AppwriteMigrationResource["Site"] = "site";
|
|
32564
|
+
AppwriteMigrationResource["Sitedeployment"] = "site-deployment";
|
|
32565
|
+
AppwriteMigrationResource["Sitevariable"] = "site-variable";
|
|
32566
|
+
})(exports.AppwriteMigrationResource || (exports.AppwriteMigrationResource = {}));
|
|
32567
|
+
|
|
32568
|
+
exports.FirebaseMigrationResource = void 0;
|
|
32569
|
+
(function (FirebaseMigrationResource) {
|
|
32570
|
+
FirebaseMigrationResource["User"] = "user";
|
|
32571
|
+
FirebaseMigrationResource["Database"] = "database";
|
|
32572
|
+
FirebaseMigrationResource["Table"] = "table";
|
|
32573
|
+
FirebaseMigrationResource["Column"] = "column";
|
|
32574
|
+
FirebaseMigrationResource["Row"] = "row";
|
|
32575
|
+
FirebaseMigrationResource["Document"] = "document";
|
|
32576
|
+
FirebaseMigrationResource["Attribute"] = "attribute";
|
|
32577
|
+
FirebaseMigrationResource["Collection"] = "collection";
|
|
32578
|
+
FirebaseMigrationResource["Bucket"] = "bucket";
|
|
32579
|
+
FirebaseMigrationResource["File"] = "file";
|
|
32580
|
+
})(exports.FirebaseMigrationResource || (exports.FirebaseMigrationResource = {}));
|
|
32581
|
+
|
|
32582
|
+
exports.NHostMigrationResource = void 0;
|
|
32583
|
+
(function (NHostMigrationResource) {
|
|
32584
|
+
NHostMigrationResource["User"] = "user";
|
|
32585
|
+
NHostMigrationResource["Database"] = "database";
|
|
32586
|
+
NHostMigrationResource["Table"] = "table";
|
|
32587
|
+
NHostMigrationResource["Column"] = "column";
|
|
32588
|
+
NHostMigrationResource["Index"] = "index";
|
|
32589
|
+
NHostMigrationResource["Row"] = "row";
|
|
32590
|
+
NHostMigrationResource["Document"] = "document";
|
|
32591
|
+
NHostMigrationResource["Attribute"] = "attribute";
|
|
32592
|
+
NHostMigrationResource["Collection"] = "collection";
|
|
32593
|
+
NHostMigrationResource["Bucket"] = "bucket";
|
|
32594
|
+
NHostMigrationResource["File"] = "file";
|
|
32595
|
+
})(exports.NHostMigrationResource || (exports.NHostMigrationResource = {}));
|
|
32596
|
+
|
|
32597
|
+
exports.SupabaseMigrationResource = void 0;
|
|
32598
|
+
(function (SupabaseMigrationResource) {
|
|
32599
|
+
SupabaseMigrationResource["User"] = "user";
|
|
32600
|
+
SupabaseMigrationResource["Database"] = "database";
|
|
32601
|
+
SupabaseMigrationResource["Table"] = "table";
|
|
32602
|
+
SupabaseMigrationResource["Column"] = "column";
|
|
32603
|
+
SupabaseMigrationResource["Index"] = "index";
|
|
32604
|
+
SupabaseMigrationResource["Row"] = "row";
|
|
32605
|
+
SupabaseMigrationResource["Document"] = "document";
|
|
32606
|
+
SupabaseMigrationResource["Attribute"] = "attribute";
|
|
32607
|
+
SupabaseMigrationResource["Collection"] = "collection";
|
|
32608
|
+
SupabaseMigrationResource["Bucket"] = "bucket";
|
|
32609
|
+
SupabaseMigrationResource["File"] = "file";
|
|
32610
|
+
})(exports.SupabaseMigrationResource || (exports.SupabaseMigrationResource = {}));
|
|
32246
32611
|
|
|
32247
32612
|
exports.ProjectUsageRange = void 0;
|
|
32248
32613
|
(function (ProjectUsageRange) {
|
|
@@ -32328,6 +32693,11 @@
|
|
|
32328
32693
|
SMTPSecure["Ssl"] = "ssl";
|
|
32329
32694
|
})(exports.SMTPSecure || (exports.SMTPSecure = {}));
|
|
32330
32695
|
|
|
32696
|
+
exports.Status = void 0;
|
|
32697
|
+
(function (Status) {
|
|
32698
|
+
Status["Active"] = "active";
|
|
32699
|
+
})(exports.Status || (exports.Status = {}));
|
|
32700
|
+
|
|
32331
32701
|
exports.EmailTemplateType = void 0;
|
|
32332
32702
|
(function (EmailTemplateType) {
|
|
32333
32703
|
EmailTemplateType["Verification"] = "verification";
|
|
@@ -32683,6 +33053,9 @@
|
|
|
32683
33053
|
BuildRuntime["Pythonml311"] = "python-ml-3.11";
|
|
32684
33054
|
BuildRuntime["Pythonml312"] = "python-ml-3.12";
|
|
32685
33055
|
BuildRuntime["Pythonml313"] = "python-ml-3.13";
|
|
33056
|
+
BuildRuntime["Deno121"] = "deno-1.21";
|
|
33057
|
+
BuildRuntime["Deno124"] = "deno-1.24";
|
|
33058
|
+
BuildRuntime["Deno135"] = "deno-1.35";
|
|
32686
33059
|
BuildRuntime["Deno140"] = "deno-1.40";
|
|
32687
33060
|
BuildRuntime["Deno146"] = "deno-1.46";
|
|
32688
33061
|
BuildRuntime["Deno20"] = "deno-2.0";
|
|
@@ -32915,6 +33288,30 @@
|
|
|
32915
33288
|
BillingPlanGroup["Scale"] = "scale";
|
|
32916
33289
|
})(exports.BillingPlanGroup || (exports.BillingPlanGroup = {}));
|
|
32917
33290
|
|
|
33291
|
+
exports.DomainPurchasePaymentStatus = void 0;
|
|
33292
|
+
(function (DomainPurchasePaymentStatus) {
|
|
33293
|
+
DomainPurchasePaymentStatus["Pending"] = "pending";
|
|
33294
|
+
DomainPurchasePaymentStatus["PendingConfirmation"] = "pending_confirmation";
|
|
33295
|
+
DomainPurchasePaymentStatus["PendingPaymentProcessing"] = "pending_payment_processing";
|
|
33296
|
+
DomainPurchasePaymentStatus["Authorized"] = "authorized";
|
|
33297
|
+
DomainPurchasePaymentStatus["Captured"] = "captured";
|
|
33298
|
+
DomainPurchasePaymentStatus["Failed"] = "failed";
|
|
33299
|
+
DomainPurchasePaymentStatus["CaptureFailed"] = "capture_failed";
|
|
33300
|
+
DomainPurchasePaymentStatus["RenewalCaptureFailed"] = "renewal_capture_failed";
|
|
33301
|
+
})(exports.DomainPurchasePaymentStatus || (exports.DomainPurchasePaymentStatus = {}));
|
|
33302
|
+
|
|
33303
|
+
exports.DomainTransferStatusStatus = void 0;
|
|
33304
|
+
(function (DomainTransferStatusStatus) {
|
|
33305
|
+
DomainTransferStatusStatus["Transferrable"] = "transferrable";
|
|
33306
|
+
DomainTransferStatusStatus["NotTransferrable"] = "not_transferrable";
|
|
33307
|
+
DomainTransferStatusStatus["PendingOwner"] = "pending_owner";
|
|
33308
|
+
DomainTransferStatusStatus["PendingAdmin"] = "pending_admin";
|
|
33309
|
+
DomainTransferStatusStatus["PendingRegistry"] = "pending_registry";
|
|
33310
|
+
DomainTransferStatusStatus["Completed"] = "completed";
|
|
33311
|
+
DomainTransferStatusStatus["Cancelled"] = "cancelled";
|
|
33312
|
+
DomainTransferStatusStatus["ServiceUnavailable"] = "service_unavailable";
|
|
33313
|
+
})(exports.DomainTransferStatusStatus || (exports.DomainTransferStatusStatus = {}));
|
|
33314
|
+
|
|
32918
33315
|
exports.Account = Account;
|
|
32919
33316
|
exports.Activities = Activities;
|
|
32920
33317
|
exports.AppwriteException = AppwriteException;
|