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