@appconda/nextjs 1.0.46 → 1.0.49
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/dist/actions/actionClient.d.ts +1 -1
- package/dist/actions/actionClient.js +3 -6
- package/dist/actions/index.js +1 -17
- package/dist/actions/nodes.d.ts +1 -1
- package/dist/actions/nodes.js +4 -7
- package/dist/client.js +33 -39
- package/dist/decorators/Cache.js +4 -7
- package/dist/decorators/CacheKey.js +1 -4
- package/dist/decorators/Invalidate.js +4 -7
- package/dist/enums/api-service.js +2 -5
- package/dist/enums/api.js +2 -5
- package/dist/enums/auth-method.js +2 -5
- package/dist/enums/authentication-factor.js +2 -5
- package/dist/enums/authenticator-type.js +2 -5
- package/dist/enums/browser.js +2 -5
- package/dist/enums/compression.js +2 -5
- package/dist/enums/credit-card.js +2 -5
- package/dist/enums/database-usage-range.js +2 -5
- package/dist/enums/email-template-locale.js +2 -5
- package/dist/enums/email-template-type.js +2 -5
- package/dist/enums/entities/EntityLimitType.js +2 -5
- package/dist/enums/entities/PropertyAttributeName.js +2 -5
- package/dist/enums/entities/PropertyCondition.js +2 -5
- package/dist/enums/entities/PropertyType.js +2 -5
- package/dist/enums/entities/PropertyValueType.js +2 -5
- package/dist/enums/entities/RowAccess.js +1 -4
- package/dist/enums/entities/ViewFilterCondition.js +2 -5
- package/dist/enums/execution-method.js +2 -5
- package/dist/enums/flag.js +2 -5
- package/dist/enums/function-usage-range.js +2 -5
- package/dist/enums/image-format.js +2 -5
- package/dist/enums/image-gravity.js +2 -5
- package/dist/enums/index-type.js +2 -5
- package/dist/enums/messaging-provider-type.js +2 -5
- package/dist/enums/name.js +2 -5
- package/dist/enums/o-auth-provider copy.js +2 -5
- package/dist/enums/o-auth-provider.js +2 -5
- package/dist/enums/password-hash.js +2 -5
- package/dist/enums/platform-type.js +2 -5
- package/dist/enums/project-usage-range.js +2 -5
- package/dist/enums/region.js +2 -5
- package/dist/enums/relation-mutate.js +2 -5
- package/dist/enums/relationship-type.js +2 -5
- package/dist/enums/resource-type.js +2 -5
- package/dist/enums/runtime.js +2 -5
- package/dist/enums/s-m-t-p-secure.js +2 -5
- package/dist/enums/shared/ApplicationLayout.js +2 -5
- package/dist/enums/shared/Colors.js +2 -5
- package/dist/enums/shared/InputType.js +2 -5
- package/dist/enums/shared/Periodicity.js +2 -5
- package/dist/enums/shared/SvgIcon.js +2 -5
- package/dist/enums/shared/Theme.js +2 -5
- package/dist/enums/sms-template-locale.js +2 -5
- package/dist/enums/sms-template-type.js +2 -5
- package/dist/enums/smtp-encryption.js +2 -5
- package/dist/enums/storage-usage-range.js +2 -5
- package/dist/enums/subscriptions/PricingModel.js +4 -7
- package/dist/enums/subscriptions/SubscriptionBillingPeriod.js +4 -7
- package/dist/enums/subscriptions/SubscriptionFeatureLimitType.js +4 -7
- package/dist/enums/subscriptions/SubscriptionPriceType.js +4 -7
- package/dist/enums/tenants/LinkedAccountStatus.js +2 -5
- package/dist/enums/tenants/TenantUserJoined.js +2 -5
- package/dist/enums/tenants/TenantUserStatus.js +2 -5
- package/dist/enums/tenants/TenantUserType.js +2 -5
- package/dist/enums/user-usage-range.js +2 -5
- package/dist/getAppcondaClient.js +3 -6
- package/dist/getSDKForCurrentUser.js +37 -40
- package/dist/id.js +16 -20
- package/dist/index.js +37 -91
- package/dist/inputFile.js +6 -10
- package/dist/lib/Cache/Adapter.js +1 -2
- package/dist/lib/Cache/Adapters/Filesystem.js +2 -6
- package/dist/lib/Cache/Adapters/Memory.js +4 -7
- package/dist/lib/Cache/Adapters/None.js +1 -5
- package/dist/lib/Cache/Adapters/Sharding.js +14 -19
- package/dist/lib/Cache/Cache.js +2 -7
- package/dist/lib/Cache/index.js +4 -20
- package/dist/lib/Cache/test.d.ts +0 -1
- package/dist/lib/Cache/test.js +0 -2
- package/dist/lib/Registry/Registry.js +21 -23
- package/dist/lib/Registry/index.js +1 -17
- package/dist/lib/Services.js +8 -12
- package/dist/models.js +1 -2
- package/dist/modules/index.js +1 -17
- package/dist/modules/waitlist/action.d.ts +3 -3
- package/dist/modules/waitlist/action.js +11 -14
- package/dist/modules/waitlist/index.js +3 -19
- package/dist/modules/waitlist/schema.js +5 -8
- package/dist/modules/waitlist/service.js +2 -6
- package/dist/modules/waitlist/types.js +1 -2
- package/dist/permission.js +49 -53
- package/dist/query.js +168 -175
- package/dist/role.js +1 -5
- package/dist/schemas/nodes.d.ts +0 -1
- package/dist/schemas/nodes.js +0 -2
- package/dist/service-client.js +1 -6
- package/dist/service.js +5 -10
- package/dist/services/account.js +58 -63
- package/dist/services/applets.js +4 -9
- package/dist/services/avatars.js +8 -13
- package/dist/services/community.js +5 -10
- package/dist/services/configuration.js +2 -6
- package/dist/services/databases.js +150 -155
- package/dist/services/functions.js +42 -47
- package/dist/services/graphql.js +4 -9
- package/dist/services/health.js +3 -8
- package/dist/services/locale.js +1 -6
- package/dist/services/messaging.js +66 -71
- package/dist/services/node.js +4 -8
- package/dist/services/permissions.js +7 -12
- package/dist/services/pricing.js +2 -6
- package/dist/services/projects.js +113 -118
- package/dist/services/roles.js +6 -11
- package/dist/services/schema.js +5 -10
- package/dist/services/storage.js +24 -29
- package/dist/services/subscription.js +2 -6
- package/dist/services/teams.js +25 -30
- package/dist/services/tenant-subscription.js +5 -10
- package/dist/services/tenant.js +9 -13
- package/dist/services/users.js +82 -87
- package/package.json +1 -1
- package/tsconfig.json +2 -3
@@ -1,9 +1,5 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
exports.Databases = void 0;
|
4
|
-
const client_1 = require("../client");
|
5
|
-
class Databases {
|
6
|
-
client;
|
1
|
+
import { AppcondaException } from '../client';
|
2
|
+
export class Databases {
|
7
3
|
constructor(client) {
|
8
4
|
this.client = client;
|
9
5
|
}
|
@@ -46,10 +42,10 @@ class Databases {
|
|
46
42
|
*/
|
47
43
|
async create(databaseId, name, enabled) {
|
48
44
|
if (typeof databaseId === 'undefined') {
|
49
|
-
throw new
|
45
|
+
throw new AppcondaException('Missing required parameter: "databaseId"');
|
50
46
|
}
|
51
47
|
if (typeof name === 'undefined') {
|
52
|
-
throw new
|
48
|
+
throw new AppcondaException('Missing required parameter: "name"');
|
53
49
|
}
|
54
50
|
const apiPath = '/databases';
|
55
51
|
const payload = {};
|
@@ -79,7 +75,7 @@ class Databases {
|
|
79
75
|
*/
|
80
76
|
async get(databaseId) {
|
81
77
|
if (typeof databaseId === 'undefined') {
|
82
|
-
throw new
|
78
|
+
throw new AppcondaException('Missing required parameter: "databaseId"');
|
83
79
|
}
|
84
80
|
const apiPath = '/databases/{databaseId}'.replace('{databaseId}', databaseId);
|
85
81
|
const payload = {};
|
@@ -102,10 +98,10 @@ class Databases {
|
|
102
98
|
*/
|
103
99
|
async update(databaseId, name, enabled) {
|
104
100
|
if (typeof databaseId === 'undefined') {
|
105
|
-
throw new
|
101
|
+
throw new AppcondaException('Missing required parameter: "databaseId"');
|
106
102
|
}
|
107
103
|
if (typeof name === 'undefined') {
|
108
|
-
throw new
|
104
|
+
throw new AppcondaException('Missing required parameter: "name"');
|
109
105
|
}
|
110
106
|
const apiPath = '/databases/{databaseId}'.replace('{databaseId}', databaseId);
|
111
107
|
const payload = {};
|
@@ -132,7 +128,7 @@ class Databases {
|
|
132
128
|
*/
|
133
129
|
async delete(databaseId) {
|
134
130
|
if (typeof databaseId === 'undefined') {
|
135
|
-
throw new
|
131
|
+
throw new AppcondaException('Missing required parameter: "databaseId"');
|
136
132
|
}
|
137
133
|
const apiPath = '/databases/{databaseId}'.replace('{databaseId}', databaseId);
|
138
134
|
const payload = {};
|
@@ -155,7 +151,7 @@ class Databases {
|
|
155
151
|
*/
|
156
152
|
async listCollections(databaseId, queries, search) {
|
157
153
|
if (typeof databaseId === 'undefined') {
|
158
|
-
throw new
|
154
|
+
throw new AppcondaException('Missing required parameter: "databaseId"');
|
159
155
|
}
|
160
156
|
const apiPath = '/databases/{databaseId}/collections'.replace('{databaseId}', databaseId);
|
161
157
|
const payload = {};
|
@@ -187,13 +183,13 @@ class Databases {
|
|
187
183
|
*/
|
188
184
|
async createCollection(databaseId, collectionId, name, permissions, documentSecurity, enabled) {
|
189
185
|
if (typeof databaseId === 'undefined') {
|
190
|
-
throw new
|
186
|
+
throw new AppcondaException('Missing required parameter: "databaseId"');
|
191
187
|
}
|
192
188
|
if (typeof collectionId === 'undefined') {
|
193
|
-
throw new
|
189
|
+
throw new AppcondaException('Missing required parameter: "collectionId"');
|
194
190
|
}
|
195
191
|
if (typeof name === 'undefined') {
|
196
|
-
throw new
|
192
|
+
throw new AppcondaException('Missing required parameter: "name"');
|
197
193
|
}
|
198
194
|
const apiPath = '/databases/{databaseId}/collections'.replace('{databaseId}', databaseId);
|
199
195
|
const payload = {};
|
@@ -230,10 +226,10 @@ class Databases {
|
|
230
226
|
*/
|
231
227
|
async getCollection(databaseId, collectionId) {
|
232
228
|
if (typeof databaseId === 'undefined') {
|
233
|
-
throw new
|
229
|
+
throw new AppcondaException('Missing required parameter: "databaseId"');
|
234
230
|
}
|
235
231
|
if (typeof collectionId === 'undefined') {
|
236
|
-
throw new
|
232
|
+
throw new AppcondaException('Missing required parameter: "collectionId"');
|
237
233
|
}
|
238
234
|
const apiPath = '/databases/{databaseId}/collections/{collectionId}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);
|
239
235
|
const payload = {};
|
@@ -259,13 +255,13 @@ class Databases {
|
|
259
255
|
*/
|
260
256
|
async updateCollection(databaseId, collectionId, name, permissions, documentSecurity, enabled) {
|
261
257
|
if (typeof databaseId === 'undefined') {
|
262
|
-
throw new
|
258
|
+
throw new AppcondaException('Missing required parameter: "databaseId"');
|
263
259
|
}
|
264
260
|
if (typeof collectionId === 'undefined') {
|
265
|
-
throw new
|
261
|
+
throw new AppcondaException('Missing required parameter: "collectionId"');
|
266
262
|
}
|
267
263
|
if (typeof name === 'undefined') {
|
268
|
-
throw new
|
264
|
+
throw new AppcondaException('Missing required parameter: "name"');
|
269
265
|
}
|
270
266
|
const apiPath = '/databases/{databaseId}/collections/{collectionId}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);
|
271
267
|
const payload = {};
|
@@ -299,10 +295,10 @@ class Databases {
|
|
299
295
|
*/
|
300
296
|
async deleteCollection(databaseId, collectionId) {
|
301
297
|
if (typeof databaseId === 'undefined') {
|
302
|
-
throw new
|
298
|
+
throw new AppcondaException('Missing required parameter: "databaseId"');
|
303
299
|
}
|
304
300
|
if (typeof collectionId === 'undefined') {
|
305
|
-
throw new
|
301
|
+
throw new AppcondaException('Missing required parameter: "collectionId"');
|
306
302
|
}
|
307
303
|
const apiPath = '/databases/{databaseId}/collections/{collectionId}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);
|
308
304
|
const payload = {};
|
@@ -325,10 +321,10 @@ class Databases {
|
|
325
321
|
*/
|
326
322
|
async listAttributes(databaseId, collectionId, queries) {
|
327
323
|
if (typeof databaseId === 'undefined') {
|
328
|
-
throw new
|
324
|
+
throw new AppcondaException('Missing required parameter: "databaseId"');
|
329
325
|
}
|
330
326
|
if (typeof collectionId === 'undefined') {
|
331
|
-
throw new
|
327
|
+
throw new AppcondaException('Missing required parameter: "collectionId"');
|
332
328
|
}
|
333
329
|
const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);
|
334
330
|
const payload = {};
|
@@ -358,16 +354,16 @@ class Databases {
|
|
358
354
|
*/
|
359
355
|
async createBooleanAttribute(databaseId, collectionId, key, required, xdefault, array) {
|
360
356
|
if (typeof databaseId === 'undefined') {
|
361
|
-
throw new
|
357
|
+
throw new AppcondaException('Missing required parameter: "databaseId"');
|
362
358
|
}
|
363
359
|
if (typeof collectionId === 'undefined') {
|
364
|
-
throw new
|
360
|
+
throw new AppcondaException('Missing required parameter: "collectionId"');
|
365
361
|
}
|
366
362
|
if (typeof key === 'undefined') {
|
367
|
-
throw new
|
363
|
+
throw new AppcondaException('Missing required parameter: "key"');
|
368
364
|
}
|
369
365
|
if (typeof required === 'undefined') {
|
370
|
-
throw new
|
366
|
+
throw new AppcondaException('Missing required parameter: "required"');
|
371
367
|
}
|
372
368
|
const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/boolean'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);
|
373
369
|
const payload = {};
|
@@ -405,19 +401,19 @@ class Databases {
|
|
405
401
|
*/
|
406
402
|
async updateBooleanAttribute(databaseId, collectionId, key, required, xdefault, newKey) {
|
407
403
|
if (typeof databaseId === 'undefined') {
|
408
|
-
throw new
|
404
|
+
throw new AppcondaException('Missing required parameter: "databaseId"');
|
409
405
|
}
|
410
406
|
if (typeof collectionId === 'undefined') {
|
411
|
-
throw new
|
407
|
+
throw new AppcondaException('Missing required parameter: "collectionId"');
|
412
408
|
}
|
413
409
|
if (typeof key === 'undefined') {
|
414
|
-
throw new
|
410
|
+
throw new AppcondaException('Missing required parameter: "key"');
|
415
411
|
}
|
416
412
|
if (typeof required === 'undefined') {
|
417
|
-
throw new
|
413
|
+
throw new AppcondaException('Missing required parameter: "required"');
|
418
414
|
}
|
419
415
|
if (typeof xdefault === 'undefined') {
|
420
|
-
throw new
|
416
|
+
throw new AppcondaException('Missing required parameter: "xdefault"');
|
421
417
|
}
|
422
418
|
const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/boolean/{key}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{key}', key);
|
423
419
|
const payload = {};
|
@@ -452,16 +448,16 @@ class Databases {
|
|
452
448
|
*/
|
453
449
|
async createDatetimeAttribute(databaseId, collectionId, key, required, xdefault, array) {
|
454
450
|
if (typeof databaseId === 'undefined') {
|
455
|
-
throw new
|
451
|
+
throw new AppcondaException('Missing required parameter: "databaseId"');
|
456
452
|
}
|
457
453
|
if (typeof collectionId === 'undefined') {
|
458
|
-
throw new
|
454
|
+
throw new AppcondaException('Missing required parameter: "collectionId"');
|
459
455
|
}
|
460
456
|
if (typeof key === 'undefined') {
|
461
|
-
throw new
|
457
|
+
throw new AppcondaException('Missing required parameter: "key"');
|
462
458
|
}
|
463
459
|
if (typeof required === 'undefined') {
|
464
|
-
throw new
|
460
|
+
throw new AppcondaException('Missing required parameter: "required"');
|
465
461
|
}
|
466
462
|
const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/datetime'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);
|
467
463
|
const payload = {};
|
@@ -499,19 +495,19 @@ class Databases {
|
|
499
495
|
*/
|
500
496
|
async updateDatetimeAttribute(databaseId, collectionId, key, required, xdefault, newKey) {
|
501
497
|
if (typeof databaseId === 'undefined') {
|
502
|
-
throw new
|
498
|
+
throw new AppcondaException('Missing required parameter: "databaseId"');
|
503
499
|
}
|
504
500
|
if (typeof collectionId === 'undefined') {
|
505
|
-
throw new
|
501
|
+
throw new AppcondaException('Missing required parameter: "collectionId"');
|
506
502
|
}
|
507
503
|
if (typeof key === 'undefined') {
|
508
|
-
throw new
|
504
|
+
throw new AppcondaException('Missing required parameter: "key"');
|
509
505
|
}
|
510
506
|
if (typeof required === 'undefined') {
|
511
|
-
throw new
|
507
|
+
throw new AppcondaException('Missing required parameter: "required"');
|
512
508
|
}
|
513
509
|
if (typeof xdefault === 'undefined') {
|
514
|
-
throw new
|
510
|
+
throw new AppcondaException('Missing required parameter: "xdefault"');
|
515
511
|
}
|
516
512
|
const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/datetime/{key}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{key}', key);
|
517
513
|
const payload = {};
|
@@ -547,16 +543,16 @@ class Databases {
|
|
547
543
|
*/
|
548
544
|
async createEmailAttribute(databaseId, collectionId, key, required, xdefault, array) {
|
549
545
|
if (typeof databaseId === 'undefined') {
|
550
|
-
throw new
|
546
|
+
throw new AppcondaException('Missing required parameter: "databaseId"');
|
551
547
|
}
|
552
548
|
if (typeof collectionId === 'undefined') {
|
553
|
-
throw new
|
549
|
+
throw new AppcondaException('Missing required parameter: "collectionId"');
|
554
550
|
}
|
555
551
|
if (typeof key === 'undefined') {
|
556
|
-
throw new
|
552
|
+
throw new AppcondaException('Missing required parameter: "key"');
|
557
553
|
}
|
558
554
|
if (typeof required === 'undefined') {
|
559
|
-
throw new
|
555
|
+
throw new AppcondaException('Missing required parameter: "required"');
|
560
556
|
}
|
561
557
|
const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/email'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);
|
562
558
|
const payload = {};
|
@@ -595,19 +591,19 @@ class Databases {
|
|
595
591
|
*/
|
596
592
|
async updateEmailAttribute(databaseId, collectionId, key, required, xdefault, newKey) {
|
597
593
|
if (typeof databaseId === 'undefined') {
|
598
|
-
throw new
|
594
|
+
throw new AppcondaException('Missing required parameter: "databaseId"');
|
599
595
|
}
|
600
596
|
if (typeof collectionId === 'undefined') {
|
601
|
-
throw new
|
597
|
+
throw new AppcondaException('Missing required parameter: "collectionId"');
|
602
598
|
}
|
603
599
|
if (typeof key === 'undefined') {
|
604
|
-
throw new
|
600
|
+
throw new AppcondaException('Missing required parameter: "key"');
|
605
601
|
}
|
606
602
|
if (typeof required === 'undefined') {
|
607
|
-
throw new
|
603
|
+
throw new AppcondaException('Missing required parameter: "required"');
|
608
604
|
}
|
609
605
|
if (typeof xdefault === 'undefined') {
|
610
|
-
throw new
|
606
|
+
throw new AppcondaException('Missing required parameter: "xdefault"');
|
611
607
|
}
|
612
608
|
const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/email/{key}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{key}', key);
|
613
609
|
const payload = {};
|
@@ -644,19 +640,19 @@ class Databases {
|
|
644
640
|
*/
|
645
641
|
async createEnumAttribute(databaseId, collectionId, key, elements, required, xdefault, array) {
|
646
642
|
if (typeof databaseId === 'undefined') {
|
647
|
-
throw new
|
643
|
+
throw new AppcondaException('Missing required parameter: "databaseId"');
|
648
644
|
}
|
649
645
|
if (typeof collectionId === 'undefined') {
|
650
|
-
throw new
|
646
|
+
throw new AppcondaException('Missing required parameter: "collectionId"');
|
651
647
|
}
|
652
648
|
if (typeof key === 'undefined') {
|
653
|
-
throw new
|
649
|
+
throw new AppcondaException('Missing required parameter: "key"');
|
654
650
|
}
|
655
651
|
if (typeof elements === 'undefined') {
|
656
|
-
throw new
|
652
|
+
throw new AppcondaException('Missing required parameter: "elements"');
|
657
653
|
}
|
658
654
|
if (typeof required === 'undefined') {
|
659
|
-
throw new
|
655
|
+
throw new AppcondaException('Missing required parameter: "required"');
|
660
656
|
}
|
661
657
|
const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/enum'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);
|
662
658
|
const payload = {};
|
@@ -699,22 +695,22 @@ class Databases {
|
|
699
695
|
*/
|
700
696
|
async updateEnumAttribute(databaseId, collectionId, key, elements, required, xdefault, newKey) {
|
701
697
|
if (typeof databaseId === 'undefined') {
|
702
|
-
throw new
|
698
|
+
throw new AppcondaException('Missing required parameter: "databaseId"');
|
703
699
|
}
|
704
700
|
if (typeof collectionId === 'undefined') {
|
705
|
-
throw new
|
701
|
+
throw new AppcondaException('Missing required parameter: "collectionId"');
|
706
702
|
}
|
707
703
|
if (typeof key === 'undefined') {
|
708
|
-
throw new
|
704
|
+
throw new AppcondaException('Missing required parameter: "key"');
|
709
705
|
}
|
710
706
|
if (typeof elements === 'undefined') {
|
711
|
-
throw new
|
707
|
+
throw new AppcondaException('Missing required parameter: "elements"');
|
712
708
|
}
|
713
709
|
if (typeof required === 'undefined') {
|
714
|
-
throw new
|
710
|
+
throw new AppcondaException('Missing required parameter: "required"');
|
715
711
|
}
|
716
712
|
if (typeof xdefault === 'undefined') {
|
717
|
-
throw new
|
713
|
+
throw new AppcondaException('Missing required parameter: "xdefault"');
|
718
714
|
}
|
719
715
|
const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/enum/{key}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{key}', key);
|
720
716
|
const payload = {};
|
@@ -755,16 +751,16 @@ class Databases {
|
|
755
751
|
*/
|
756
752
|
async createFloatAttribute(databaseId, collectionId, key, required, min, max, xdefault, array) {
|
757
753
|
if (typeof databaseId === 'undefined') {
|
758
|
-
throw new
|
754
|
+
throw new AppcondaException('Missing required parameter: "databaseId"');
|
759
755
|
}
|
760
756
|
if (typeof collectionId === 'undefined') {
|
761
|
-
throw new
|
757
|
+
throw new AppcondaException('Missing required parameter: "collectionId"');
|
762
758
|
}
|
763
759
|
if (typeof key === 'undefined') {
|
764
|
-
throw new
|
760
|
+
throw new AppcondaException('Missing required parameter: "key"');
|
765
761
|
}
|
766
762
|
if (typeof required === 'undefined') {
|
767
|
-
throw new
|
763
|
+
throw new AppcondaException('Missing required parameter: "required"');
|
768
764
|
}
|
769
765
|
const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/float'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);
|
770
766
|
const payload = {};
|
@@ -811,25 +807,25 @@ class Databases {
|
|
811
807
|
*/
|
812
808
|
async updateFloatAttribute(databaseId, collectionId, key, required, min, max, xdefault, newKey) {
|
813
809
|
if (typeof databaseId === 'undefined') {
|
814
|
-
throw new
|
810
|
+
throw new AppcondaException('Missing required parameter: "databaseId"');
|
815
811
|
}
|
816
812
|
if (typeof collectionId === 'undefined') {
|
817
|
-
throw new
|
813
|
+
throw new AppcondaException('Missing required parameter: "collectionId"');
|
818
814
|
}
|
819
815
|
if (typeof key === 'undefined') {
|
820
|
-
throw new
|
816
|
+
throw new AppcondaException('Missing required parameter: "key"');
|
821
817
|
}
|
822
818
|
if (typeof required === 'undefined') {
|
823
|
-
throw new
|
819
|
+
throw new AppcondaException('Missing required parameter: "required"');
|
824
820
|
}
|
825
821
|
if (typeof min === 'undefined') {
|
826
|
-
throw new
|
822
|
+
throw new AppcondaException('Missing required parameter: "min"');
|
827
823
|
}
|
828
824
|
if (typeof max === 'undefined') {
|
829
|
-
throw new
|
825
|
+
throw new AppcondaException('Missing required parameter: "max"');
|
830
826
|
}
|
831
827
|
if (typeof xdefault === 'undefined') {
|
832
|
-
throw new
|
828
|
+
throw new AppcondaException('Missing required parameter: "xdefault"');
|
833
829
|
}
|
834
830
|
const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/float/{key}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{key}', key);
|
835
831
|
const payload = {};
|
@@ -873,16 +869,16 @@ class Databases {
|
|
873
869
|
*/
|
874
870
|
async createIntegerAttribute(databaseId, collectionId, key, required, min, max, xdefault, array) {
|
875
871
|
if (typeof databaseId === 'undefined') {
|
876
|
-
throw new
|
872
|
+
throw new AppcondaException('Missing required parameter: "databaseId"');
|
877
873
|
}
|
878
874
|
if (typeof collectionId === 'undefined') {
|
879
|
-
throw new
|
875
|
+
throw new AppcondaException('Missing required parameter: "collectionId"');
|
880
876
|
}
|
881
877
|
if (typeof key === 'undefined') {
|
882
|
-
throw new
|
878
|
+
throw new AppcondaException('Missing required parameter: "key"');
|
883
879
|
}
|
884
880
|
if (typeof required === 'undefined') {
|
885
|
-
throw new
|
881
|
+
throw new AppcondaException('Missing required parameter: "required"');
|
886
882
|
}
|
887
883
|
const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/integer'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);
|
888
884
|
const payload = {};
|
@@ -929,25 +925,25 @@ class Databases {
|
|
929
925
|
*/
|
930
926
|
async updateIntegerAttribute(databaseId, collectionId, key, required, min, max, xdefault, newKey) {
|
931
927
|
if (typeof databaseId === 'undefined') {
|
932
|
-
throw new
|
928
|
+
throw new AppcondaException('Missing required parameter: "databaseId"');
|
933
929
|
}
|
934
930
|
if (typeof collectionId === 'undefined') {
|
935
|
-
throw new
|
931
|
+
throw new AppcondaException('Missing required parameter: "collectionId"');
|
936
932
|
}
|
937
933
|
if (typeof key === 'undefined') {
|
938
|
-
throw new
|
934
|
+
throw new AppcondaException('Missing required parameter: "key"');
|
939
935
|
}
|
940
936
|
if (typeof required === 'undefined') {
|
941
|
-
throw new
|
937
|
+
throw new AppcondaException('Missing required parameter: "required"');
|
942
938
|
}
|
943
939
|
if (typeof min === 'undefined') {
|
944
|
-
throw new
|
940
|
+
throw new AppcondaException('Missing required parameter: "min"');
|
945
941
|
}
|
946
942
|
if (typeof max === 'undefined') {
|
947
|
-
throw new
|
943
|
+
throw new AppcondaException('Missing required parameter: "max"');
|
948
944
|
}
|
949
945
|
if (typeof xdefault === 'undefined') {
|
950
|
-
throw new
|
946
|
+
throw new AppcondaException('Missing required parameter: "xdefault"');
|
951
947
|
}
|
952
948
|
const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/integer/{key}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{key}', key);
|
953
949
|
const payload = {};
|
@@ -989,16 +985,16 @@ class Databases {
|
|
989
985
|
*/
|
990
986
|
async createIpAttribute(databaseId, collectionId, key, required, xdefault, array) {
|
991
987
|
if (typeof databaseId === 'undefined') {
|
992
|
-
throw new
|
988
|
+
throw new AppcondaException('Missing required parameter: "databaseId"');
|
993
989
|
}
|
994
990
|
if (typeof collectionId === 'undefined') {
|
995
|
-
throw new
|
991
|
+
throw new AppcondaException('Missing required parameter: "collectionId"');
|
996
992
|
}
|
997
993
|
if (typeof key === 'undefined') {
|
998
|
-
throw new
|
994
|
+
throw new AppcondaException('Missing required parameter: "key"');
|
999
995
|
}
|
1000
996
|
if (typeof required === 'undefined') {
|
1001
|
-
throw new
|
997
|
+
throw new AppcondaException('Missing required parameter: "required"');
|
1002
998
|
}
|
1003
999
|
const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/ip'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);
|
1004
1000
|
const payload = {};
|
@@ -1037,19 +1033,19 @@ class Databases {
|
|
1037
1033
|
*/
|
1038
1034
|
async updateIpAttribute(databaseId, collectionId, key, required, xdefault, newKey) {
|
1039
1035
|
if (typeof databaseId === 'undefined') {
|
1040
|
-
throw new
|
1036
|
+
throw new AppcondaException('Missing required parameter: "databaseId"');
|
1041
1037
|
}
|
1042
1038
|
if (typeof collectionId === 'undefined') {
|
1043
|
-
throw new
|
1039
|
+
throw new AppcondaException('Missing required parameter: "collectionId"');
|
1044
1040
|
}
|
1045
1041
|
if (typeof key === 'undefined') {
|
1046
|
-
throw new
|
1042
|
+
throw new AppcondaException('Missing required parameter: "key"');
|
1047
1043
|
}
|
1048
1044
|
if (typeof required === 'undefined') {
|
1049
|
-
throw new
|
1045
|
+
throw new AppcondaException('Missing required parameter: "required"');
|
1050
1046
|
}
|
1051
1047
|
if (typeof xdefault === 'undefined') {
|
1052
|
-
throw new
|
1048
|
+
throw new AppcondaException('Missing required parameter: "xdefault"');
|
1053
1049
|
}
|
1054
1050
|
const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/ip/{key}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{key}', key);
|
1055
1051
|
const payload = {};
|
@@ -1087,16 +1083,16 @@ class Databases {
|
|
1087
1083
|
*/
|
1088
1084
|
async createRelationshipAttribute(databaseId, collectionId, relatedCollectionId, type, twoWay, key, twoWayKey, onDelete) {
|
1089
1085
|
if (typeof databaseId === 'undefined') {
|
1090
|
-
throw new
|
1086
|
+
throw new AppcondaException('Missing required parameter: "databaseId"');
|
1091
1087
|
}
|
1092
1088
|
if (typeof collectionId === 'undefined') {
|
1093
|
-
throw new
|
1089
|
+
throw new AppcondaException('Missing required parameter: "collectionId"');
|
1094
1090
|
}
|
1095
1091
|
if (typeof relatedCollectionId === 'undefined') {
|
1096
|
-
throw new
|
1092
|
+
throw new AppcondaException('Missing required parameter: "relatedCollectionId"');
|
1097
1093
|
}
|
1098
1094
|
if (typeof type === 'undefined') {
|
1099
|
-
throw new
|
1095
|
+
throw new AppcondaException('Missing required parameter: "type"');
|
1100
1096
|
}
|
1101
1097
|
const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/relationship'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);
|
1102
1098
|
const payload = {};
|
@@ -1143,19 +1139,19 @@ class Databases {
|
|
1143
1139
|
*/
|
1144
1140
|
async createStringAttribute(databaseId, collectionId, key, size, required, xdefault, array, encrypt) {
|
1145
1141
|
if (typeof databaseId === 'undefined') {
|
1146
|
-
throw new
|
1142
|
+
throw new AppcondaException('Missing required parameter: "databaseId"');
|
1147
1143
|
}
|
1148
1144
|
if (typeof collectionId === 'undefined') {
|
1149
|
-
throw new
|
1145
|
+
throw new AppcondaException('Missing required parameter: "collectionId"');
|
1150
1146
|
}
|
1151
1147
|
if (typeof key === 'undefined') {
|
1152
|
-
throw new
|
1148
|
+
throw new AppcondaException('Missing required parameter: "key"');
|
1153
1149
|
}
|
1154
1150
|
if (typeof size === 'undefined') {
|
1155
|
-
throw new
|
1151
|
+
throw new AppcondaException('Missing required parameter: "size"');
|
1156
1152
|
}
|
1157
1153
|
if (typeof required === 'undefined') {
|
1158
|
-
throw new
|
1154
|
+
throw new AppcondaException('Missing required parameter: "required"');
|
1159
1155
|
}
|
1160
1156
|
const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/string'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);
|
1161
1157
|
const payload = {};
|
@@ -1201,19 +1197,19 @@ class Databases {
|
|
1201
1197
|
*/
|
1202
1198
|
async updateStringAttribute(databaseId, collectionId, key, required, xdefault, size, newKey) {
|
1203
1199
|
if (typeof databaseId === 'undefined') {
|
1204
|
-
throw new
|
1200
|
+
throw new AppcondaException('Missing required parameter: "databaseId"');
|
1205
1201
|
}
|
1206
1202
|
if (typeof collectionId === 'undefined') {
|
1207
|
-
throw new
|
1203
|
+
throw new AppcondaException('Missing required parameter: "collectionId"');
|
1208
1204
|
}
|
1209
1205
|
if (typeof key === 'undefined') {
|
1210
|
-
throw new
|
1206
|
+
throw new AppcondaException('Missing required parameter: "key"');
|
1211
1207
|
}
|
1212
1208
|
if (typeof required === 'undefined') {
|
1213
|
-
throw new
|
1209
|
+
throw new AppcondaException('Missing required parameter: "required"');
|
1214
1210
|
}
|
1215
1211
|
if (typeof xdefault === 'undefined') {
|
1216
|
-
throw new
|
1212
|
+
throw new AppcondaException('Missing required parameter: "xdefault"');
|
1217
1213
|
}
|
1218
1214
|
const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/string/{key}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{key}', key);
|
1219
1215
|
const payload = {};
|
@@ -1252,16 +1248,16 @@ class Databases {
|
|
1252
1248
|
*/
|
1253
1249
|
async createUrlAttribute(databaseId, collectionId, key, required, xdefault, array) {
|
1254
1250
|
if (typeof databaseId === 'undefined') {
|
1255
|
-
throw new
|
1251
|
+
throw new AppcondaException('Missing required parameter: "databaseId"');
|
1256
1252
|
}
|
1257
1253
|
if (typeof collectionId === 'undefined') {
|
1258
|
-
throw new
|
1254
|
+
throw new AppcondaException('Missing required parameter: "collectionId"');
|
1259
1255
|
}
|
1260
1256
|
if (typeof key === 'undefined') {
|
1261
|
-
throw new
|
1257
|
+
throw new AppcondaException('Missing required parameter: "key"');
|
1262
1258
|
}
|
1263
1259
|
if (typeof required === 'undefined') {
|
1264
|
-
throw new
|
1260
|
+
throw new AppcondaException('Missing required parameter: "required"');
|
1265
1261
|
}
|
1266
1262
|
const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/url'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);
|
1267
1263
|
const payload = {};
|
@@ -1300,19 +1296,19 @@ class Databases {
|
|
1300
1296
|
*/
|
1301
1297
|
async updateUrlAttribute(databaseId, collectionId, key, required, xdefault, newKey) {
|
1302
1298
|
if (typeof databaseId === 'undefined') {
|
1303
|
-
throw new
|
1299
|
+
throw new AppcondaException('Missing required parameter: "databaseId"');
|
1304
1300
|
}
|
1305
1301
|
if (typeof collectionId === 'undefined') {
|
1306
|
-
throw new
|
1302
|
+
throw new AppcondaException('Missing required parameter: "collectionId"');
|
1307
1303
|
}
|
1308
1304
|
if (typeof key === 'undefined') {
|
1309
|
-
throw new
|
1305
|
+
throw new AppcondaException('Missing required parameter: "key"');
|
1310
1306
|
}
|
1311
1307
|
if (typeof required === 'undefined') {
|
1312
|
-
throw new
|
1308
|
+
throw new AppcondaException('Missing required parameter: "required"');
|
1313
1309
|
}
|
1314
1310
|
if (typeof xdefault === 'undefined') {
|
1315
|
-
throw new
|
1311
|
+
throw new AppcondaException('Missing required parameter: "xdefault"');
|
1316
1312
|
}
|
1317
1313
|
const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/url/{key}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{key}', key);
|
1318
1314
|
const payload = {};
|
@@ -1344,13 +1340,13 @@ class Databases {
|
|
1344
1340
|
*/
|
1345
1341
|
async getAttribute(databaseId, collectionId, key) {
|
1346
1342
|
if (typeof databaseId === 'undefined') {
|
1347
|
-
throw new
|
1343
|
+
throw new AppcondaException('Missing required parameter: "databaseId"');
|
1348
1344
|
}
|
1349
1345
|
if (typeof collectionId === 'undefined') {
|
1350
|
-
throw new
|
1346
|
+
throw new AppcondaException('Missing required parameter: "collectionId"');
|
1351
1347
|
}
|
1352
1348
|
if (typeof key === 'undefined') {
|
1353
|
-
throw new
|
1349
|
+
throw new AppcondaException('Missing required parameter: "key"');
|
1354
1350
|
}
|
1355
1351
|
const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/{key}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{key}', key);
|
1356
1352
|
const payload = {};
|
@@ -1373,13 +1369,13 @@ class Databases {
|
|
1373
1369
|
*/
|
1374
1370
|
async deleteAttribute(databaseId, collectionId, key) {
|
1375
1371
|
if (typeof databaseId === 'undefined') {
|
1376
|
-
throw new
|
1372
|
+
throw new AppcondaException('Missing required parameter: "databaseId"');
|
1377
1373
|
}
|
1378
1374
|
if (typeof collectionId === 'undefined') {
|
1379
|
-
throw new
|
1375
|
+
throw new AppcondaException('Missing required parameter: "collectionId"');
|
1380
1376
|
}
|
1381
1377
|
if (typeof key === 'undefined') {
|
1382
|
-
throw new
|
1378
|
+
throw new AppcondaException('Missing required parameter: "key"');
|
1383
1379
|
}
|
1384
1380
|
const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/{key}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{key}', key);
|
1385
1381
|
const payload = {};
|
@@ -1405,13 +1401,13 @@ class Databases {
|
|
1405
1401
|
*/
|
1406
1402
|
async updateRelationshipAttribute(databaseId, collectionId, key, onDelete, newKey) {
|
1407
1403
|
if (typeof databaseId === 'undefined') {
|
1408
|
-
throw new
|
1404
|
+
throw new AppcondaException('Missing required parameter: "databaseId"');
|
1409
1405
|
}
|
1410
1406
|
if (typeof collectionId === 'undefined') {
|
1411
|
-
throw new
|
1407
|
+
throw new AppcondaException('Missing required parameter: "collectionId"');
|
1412
1408
|
}
|
1413
1409
|
if (typeof key === 'undefined') {
|
1414
|
-
throw new
|
1410
|
+
throw new AppcondaException('Missing required parameter: "key"');
|
1415
1411
|
}
|
1416
1412
|
const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/{key}/relationship'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{key}', key);
|
1417
1413
|
const payload = {};
|
@@ -1440,10 +1436,10 @@ class Databases {
|
|
1440
1436
|
*/
|
1441
1437
|
async listDocuments(databaseId, collectionId, queries) {
|
1442
1438
|
if (typeof databaseId === 'undefined') {
|
1443
|
-
throw new
|
1439
|
+
throw new AppcondaException('Missing required parameter: "databaseId"');
|
1444
1440
|
}
|
1445
1441
|
if (typeof collectionId === 'undefined') {
|
1446
|
-
throw new
|
1442
|
+
throw new AppcondaException('Missing required parameter: "collectionId"');
|
1447
1443
|
}
|
1448
1444
|
const apiPath = '/databases/{databaseId}/collections/{collectionId}/documents'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);
|
1449
1445
|
const payload = {};
|
@@ -1471,16 +1467,16 @@ class Databases {
|
|
1471
1467
|
*/
|
1472
1468
|
async createDocument(databaseId, collectionId, documentId, data, permissions) {
|
1473
1469
|
if (typeof databaseId === 'undefined') {
|
1474
|
-
throw new
|
1470
|
+
throw new AppcondaException('Missing required parameter: "databaseId"');
|
1475
1471
|
}
|
1476
1472
|
if (typeof collectionId === 'undefined') {
|
1477
|
-
throw new
|
1473
|
+
throw new AppcondaException('Missing required parameter: "collectionId"');
|
1478
1474
|
}
|
1479
1475
|
if (typeof documentId === 'undefined') {
|
1480
|
-
throw new
|
1476
|
+
throw new AppcondaException('Missing required parameter: "documentId"');
|
1481
1477
|
}
|
1482
1478
|
if (typeof data === 'undefined') {
|
1483
|
-
throw new
|
1479
|
+
throw new AppcondaException('Missing required parameter: "data"');
|
1484
1480
|
}
|
1485
1481
|
const apiPath = '/databases/{databaseId}/collections/{collectionId}/documents'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);
|
1486
1482
|
const payload = {};
|
@@ -1513,13 +1509,13 @@ class Databases {
|
|
1513
1509
|
*/
|
1514
1510
|
async getDocument(databaseId, collectionId, documentId, queries) {
|
1515
1511
|
if (typeof databaseId === 'undefined') {
|
1516
|
-
throw new
|
1512
|
+
throw new AppcondaException('Missing required parameter: "databaseId"');
|
1517
1513
|
}
|
1518
1514
|
if (typeof collectionId === 'undefined') {
|
1519
|
-
throw new
|
1515
|
+
throw new AppcondaException('Missing required parameter: "collectionId"');
|
1520
1516
|
}
|
1521
1517
|
if (typeof documentId === 'undefined') {
|
1522
|
-
throw new
|
1518
|
+
throw new AppcondaException('Missing required parameter: "documentId"');
|
1523
1519
|
}
|
1524
1520
|
const apiPath = '/databases/{databaseId}/collections/{collectionId}/documents/{documentId}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{documentId}', documentId);
|
1525
1521
|
const payload = {};
|
@@ -1547,13 +1543,13 @@ class Databases {
|
|
1547
1543
|
*/
|
1548
1544
|
async updateDocument(databaseId, collectionId, documentId, data, permissions) {
|
1549
1545
|
if (typeof databaseId === 'undefined') {
|
1550
|
-
throw new
|
1546
|
+
throw new AppcondaException('Missing required parameter: "databaseId"');
|
1551
1547
|
}
|
1552
1548
|
if (typeof collectionId === 'undefined') {
|
1553
|
-
throw new
|
1549
|
+
throw new AppcondaException('Missing required parameter: "collectionId"');
|
1554
1550
|
}
|
1555
1551
|
if (typeof documentId === 'undefined') {
|
1556
|
-
throw new
|
1552
|
+
throw new AppcondaException('Missing required parameter: "documentId"');
|
1557
1553
|
}
|
1558
1554
|
const apiPath = '/databases/{databaseId}/collections/{collectionId}/documents/{documentId}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{documentId}', documentId);
|
1559
1555
|
const payload = {};
|
@@ -1582,13 +1578,13 @@ class Databases {
|
|
1582
1578
|
*/
|
1583
1579
|
async deleteDocument(databaseId, collectionId, documentId) {
|
1584
1580
|
if (typeof databaseId === 'undefined') {
|
1585
|
-
throw new
|
1581
|
+
throw new AppcondaException('Missing required parameter: "databaseId"');
|
1586
1582
|
}
|
1587
1583
|
if (typeof collectionId === 'undefined') {
|
1588
|
-
throw new
|
1584
|
+
throw new AppcondaException('Missing required parameter: "collectionId"');
|
1589
1585
|
}
|
1590
1586
|
if (typeof documentId === 'undefined') {
|
1591
|
-
throw new
|
1587
|
+
throw new AppcondaException('Missing required parameter: "documentId"');
|
1592
1588
|
}
|
1593
1589
|
const apiPath = '/databases/{databaseId}/collections/{collectionId}/documents/{documentId}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{documentId}', documentId);
|
1594
1590
|
const payload = {};
|
@@ -1611,10 +1607,10 @@ class Databases {
|
|
1611
1607
|
*/
|
1612
1608
|
async listIndexes(databaseId, collectionId, queries) {
|
1613
1609
|
if (typeof databaseId === 'undefined') {
|
1614
|
-
throw new
|
1610
|
+
throw new AppcondaException('Missing required parameter: "databaseId"');
|
1615
1611
|
}
|
1616
1612
|
if (typeof collectionId === 'undefined') {
|
1617
|
-
throw new
|
1613
|
+
throw new AppcondaException('Missing required parameter: "collectionId"');
|
1618
1614
|
}
|
1619
1615
|
const apiPath = '/databases/{databaseId}/collections/{collectionId}/indexes'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);
|
1620
1616
|
const payload = {};
|
@@ -1644,19 +1640,19 @@ Attributes can be `key`, `fulltext`, and `unique`.
|
|
1644
1640
|
*/
|
1645
1641
|
async createIndex(databaseId, collectionId, key, type, attributes, orders) {
|
1646
1642
|
if (typeof databaseId === 'undefined') {
|
1647
|
-
throw new
|
1643
|
+
throw new AppcondaException('Missing required parameter: "databaseId"');
|
1648
1644
|
}
|
1649
1645
|
if (typeof collectionId === 'undefined') {
|
1650
|
-
throw new
|
1646
|
+
throw new AppcondaException('Missing required parameter: "collectionId"');
|
1651
1647
|
}
|
1652
1648
|
if (typeof key === 'undefined') {
|
1653
|
-
throw new
|
1649
|
+
throw new AppcondaException('Missing required parameter: "key"');
|
1654
1650
|
}
|
1655
1651
|
if (typeof type === 'undefined') {
|
1656
|
-
throw new
|
1652
|
+
throw new AppcondaException('Missing required parameter: "type"');
|
1657
1653
|
}
|
1658
1654
|
if (typeof attributes === 'undefined') {
|
1659
|
-
throw new
|
1655
|
+
throw new AppcondaException('Missing required parameter: "attributes"');
|
1660
1656
|
}
|
1661
1657
|
const apiPath = '/databases/{databaseId}/collections/{collectionId}/indexes'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);
|
1662
1658
|
const payload = {};
|
@@ -1691,13 +1687,13 @@ Attributes can be `key`, `fulltext`, and `unique`.
|
|
1691
1687
|
*/
|
1692
1688
|
async getIndex(databaseId, collectionId, key) {
|
1693
1689
|
if (typeof databaseId === 'undefined') {
|
1694
|
-
throw new
|
1690
|
+
throw new AppcondaException('Missing required parameter: "databaseId"');
|
1695
1691
|
}
|
1696
1692
|
if (typeof collectionId === 'undefined') {
|
1697
|
-
throw new
|
1693
|
+
throw new AppcondaException('Missing required parameter: "collectionId"');
|
1698
1694
|
}
|
1699
1695
|
if (typeof key === 'undefined') {
|
1700
|
-
throw new
|
1696
|
+
throw new AppcondaException('Missing required parameter: "key"');
|
1701
1697
|
}
|
1702
1698
|
const apiPath = '/databases/{databaseId}/collections/{collectionId}/indexes/{key}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{key}', key);
|
1703
1699
|
const payload = {};
|
@@ -1720,13 +1716,13 @@ Attributes can be `key`, `fulltext`, and `unique`.
|
|
1720
1716
|
*/
|
1721
1717
|
async deleteIndex(databaseId, collectionId, key) {
|
1722
1718
|
if (typeof databaseId === 'undefined') {
|
1723
|
-
throw new
|
1719
|
+
throw new AppcondaException('Missing required parameter: "databaseId"');
|
1724
1720
|
}
|
1725
1721
|
if (typeof collectionId === 'undefined') {
|
1726
|
-
throw new
|
1722
|
+
throw new AppcondaException('Missing required parameter: "collectionId"');
|
1727
1723
|
}
|
1728
1724
|
if (typeof key === 'undefined') {
|
1729
|
-
throw new
|
1725
|
+
throw new AppcondaException('Missing required parameter: "key"');
|
1730
1726
|
}
|
1731
1727
|
const apiPath = '/databases/{databaseId}/collections/{collectionId}/indexes/{key}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{key}', key);
|
1732
1728
|
const payload = {};
|
@@ -1737,4 +1733,3 @@ Attributes can be `key`, `fulltext`, and `unique`.
|
|
1737
1733
|
return await this.client.call('delete', uri, apiHeaders, payload);
|
1738
1734
|
}
|
1739
1735
|
}
|
1740
|
-
exports.Databases = Databases;
|