@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.Projects = void 0;
|
4
|
-
const client_1 = require("../client");
|
5
|
-
class Projects {
|
6
|
-
client;
|
1
|
+
import { AppcondaException } from "../client";
|
2
|
+
export class Projects {
|
7
3
|
constructor(client) {
|
8
4
|
this.client = client;
|
9
5
|
}
|
@@ -53,13 +49,13 @@ class Projects {
|
|
53
49
|
*/
|
54
50
|
async create(projectId, name, teamId, region, description, logo, url, legalName, legalCountry, legalState, legalCity, legalAddress, legalTaxId) {
|
55
51
|
if (typeof projectId === 'undefined') {
|
56
|
-
throw new
|
52
|
+
throw new AppcondaException('Missing required parameter: "projectId"');
|
57
53
|
}
|
58
54
|
if (typeof name === 'undefined') {
|
59
|
-
throw new
|
55
|
+
throw new AppcondaException('Missing required parameter: "name"');
|
60
56
|
}
|
61
57
|
if (typeof teamId === 'undefined') {
|
62
|
-
throw new
|
58
|
+
throw new AppcondaException('Missing required parameter: "teamId"');
|
63
59
|
}
|
64
60
|
const apiPath = '/projects';
|
65
61
|
const payload = {};
|
@@ -118,7 +114,7 @@ class Projects {
|
|
118
114
|
*/
|
119
115
|
async get(projectId) {
|
120
116
|
if (typeof projectId === 'undefined') {
|
121
|
-
throw new
|
117
|
+
throw new AppcondaException('Missing required parameter: "projectId"');
|
122
118
|
}
|
123
119
|
const apiPath = '/projects/{projectId}'.replace('{projectId}', projectId);
|
124
120
|
const payload = {};
|
@@ -148,10 +144,10 @@ class Projects {
|
|
148
144
|
*/
|
149
145
|
async update(projectId, name, description, logo, url, legalName, legalCountry, legalState, legalCity, legalAddress, legalTaxId) {
|
150
146
|
if (typeof projectId === 'undefined') {
|
151
|
-
throw new
|
147
|
+
throw new AppcondaException('Missing required parameter: "projectId"');
|
152
148
|
}
|
153
149
|
if (typeof name === 'undefined') {
|
154
|
-
throw new
|
150
|
+
throw new AppcondaException('Missing required parameter: "name"');
|
155
151
|
}
|
156
152
|
const apiPath = '/projects/{projectId}'.replace('{projectId}', projectId);
|
157
153
|
const payload = {};
|
@@ -201,7 +197,7 @@ class Projects {
|
|
201
197
|
*/
|
202
198
|
async delete(projectId) {
|
203
199
|
if (typeof projectId === 'undefined') {
|
204
|
-
throw new
|
200
|
+
throw new AppcondaException('Missing required parameter: "projectId"');
|
205
201
|
}
|
206
202
|
const apiPath = '/projects/{projectId}'.replace('{projectId}', projectId);
|
207
203
|
const payload = {};
|
@@ -223,13 +219,13 @@ class Projects {
|
|
223
219
|
*/
|
224
220
|
async updateApiStatus(projectId, api, status) {
|
225
221
|
if (typeof projectId === 'undefined') {
|
226
|
-
throw new
|
222
|
+
throw new AppcondaException('Missing required parameter: "projectId"');
|
227
223
|
}
|
228
224
|
if (typeof api === 'undefined') {
|
229
|
-
throw new
|
225
|
+
throw new AppcondaException('Missing required parameter: "api"');
|
230
226
|
}
|
231
227
|
if (typeof status === 'undefined') {
|
232
|
-
throw new
|
228
|
+
throw new AppcondaException('Missing required parameter: "status"');
|
233
229
|
}
|
234
230
|
const apiPath = '/projects/{projectId}/api'.replace('{projectId}', projectId);
|
235
231
|
const payload = {};
|
@@ -256,10 +252,10 @@ class Projects {
|
|
256
252
|
*/
|
257
253
|
async updateApiStatusAll(projectId, status) {
|
258
254
|
if (typeof projectId === 'undefined') {
|
259
|
-
throw new
|
255
|
+
throw new AppcondaException('Missing required parameter: "projectId"');
|
260
256
|
}
|
261
257
|
if (typeof status === 'undefined') {
|
262
|
-
throw new
|
258
|
+
throw new AppcondaException('Missing required parameter: "status"');
|
263
259
|
}
|
264
260
|
const apiPath = '/projects/{projectId}/api/all'.replace('{projectId}', projectId);
|
265
261
|
const payload = {};
|
@@ -283,10 +279,10 @@ class Projects {
|
|
283
279
|
*/
|
284
280
|
async updateAuthDuration(projectId, duration) {
|
285
281
|
if (typeof projectId === 'undefined') {
|
286
|
-
throw new
|
282
|
+
throw new AppcondaException('Missing required parameter: "projectId"');
|
287
283
|
}
|
288
284
|
if (typeof duration === 'undefined') {
|
289
|
-
throw new
|
285
|
+
throw new AppcondaException('Missing required parameter: "duration"');
|
290
286
|
}
|
291
287
|
const apiPath = '/projects/{projectId}/auth/duration'.replace('{projectId}', projectId);
|
292
288
|
const payload = {};
|
@@ -310,10 +306,10 @@ class Projects {
|
|
310
306
|
*/
|
311
307
|
async updateAuthLimit(projectId, limit) {
|
312
308
|
if (typeof projectId === 'undefined') {
|
313
|
-
throw new
|
309
|
+
throw new AppcondaException('Missing required parameter: "projectId"');
|
314
310
|
}
|
315
311
|
if (typeof limit === 'undefined') {
|
316
|
-
throw new
|
312
|
+
throw new AppcondaException('Missing required parameter: "limit"');
|
317
313
|
}
|
318
314
|
const apiPath = '/projects/{projectId}/auth/limit'.replace('{projectId}', projectId);
|
319
315
|
const payload = {};
|
@@ -337,10 +333,10 @@ class Projects {
|
|
337
333
|
*/
|
338
334
|
async updateAuthSessionsLimit(projectId, limit) {
|
339
335
|
if (typeof projectId === 'undefined') {
|
340
|
-
throw new
|
336
|
+
throw new AppcondaException('Missing required parameter: "projectId"');
|
341
337
|
}
|
342
338
|
if (typeof limit === 'undefined') {
|
343
|
-
throw new
|
339
|
+
throw new AppcondaException('Missing required parameter: "limit"');
|
344
340
|
}
|
345
341
|
const apiPath = '/projects/{projectId}/auth/max-sessions'.replace('{projectId}', projectId);
|
346
342
|
const payload = {};
|
@@ -364,10 +360,10 @@ class Projects {
|
|
364
360
|
*/
|
365
361
|
async updateMockNumbers(projectId, numbers) {
|
366
362
|
if (typeof projectId === 'undefined') {
|
367
|
-
throw new
|
363
|
+
throw new AppcondaException('Missing required parameter: "projectId"');
|
368
364
|
}
|
369
365
|
if (typeof numbers === 'undefined') {
|
370
|
-
throw new
|
366
|
+
throw new AppcondaException('Missing required parameter: "numbers"');
|
371
367
|
}
|
372
368
|
const apiPath = '/projects/{projectId}/auth/mock-numbers'.replace('{projectId}', projectId);
|
373
369
|
const payload = {};
|
@@ -391,10 +387,10 @@ class Projects {
|
|
391
387
|
*/
|
392
388
|
async updateAuthPasswordDictionary(projectId, enabled) {
|
393
389
|
if (typeof projectId === 'undefined') {
|
394
|
-
throw new
|
390
|
+
throw new AppcondaException('Missing required parameter: "projectId"');
|
395
391
|
}
|
396
392
|
if (typeof enabled === 'undefined') {
|
397
|
-
throw new
|
393
|
+
throw new AppcondaException('Missing required parameter: "enabled"');
|
398
394
|
}
|
399
395
|
const apiPath = '/projects/{projectId}/auth/password-dictionary'.replace('{projectId}', projectId);
|
400
396
|
const payload = {};
|
@@ -418,10 +414,10 @@ class Projects {
|
|
418
414
|
*/
|
419
415
|
async updateAuthPasswordHistory(projectId, limit) {
|
420
416
|
if (typeof projectId === 'undefined') {
|
421
|
-
throw new
|
417
|
+
throw new AppcondaException('Missing required parameter: "projectId"');
|
422
418
|
}
|
423
419
|
if (typeof limit === 'undefined') {
|
424
|
-
throw new
|
420
|
+
throw new AppcondaException('Missing required parameter: "limit"');
|
425
421
|
}
|
426
422
|
const apiPath = '/projects/{projectId}/auth/password-history'.replace('{projectId}', projectId);
|
427
423
|
const payload = {};
|
@@ -445,10 +441,10 @@ class Projects {
|
|
445
441
|
*/
|
446
442
|
async updatePersonalDataCheck(projectId, enabled) {
|
447
443
|
if (typeof projectId === 'undefined') {
|
448
|
-
throw new
|
444
|
+
throw new AppcondaException('Missing required parameter: "projectId"');
|
449
445
|
}
|
450
446
|
if (typeof enabled === 'undefined') {
|
451
|
-
throw new
|
447
|
+
throw new AppcondaException('Missing required parameter: "enabled"');
|
452
448
|
}
|
453
449
|
const apiPath = '/projects/{projectId}/auth/personal-data'.replace('{projectId}', projectId);
|
454
450
|
const payload = {};
|
@@ -472,10 +468,10 @@ class Projects {
|
|
472
468
|
*/
|
473
469
|
async updateSessionAlerts(projectId, alerts) {
|
474
470
|
if (typeof projectId === 'undefined') {
|
475
|
-
throw new
|
471
|
+
throw new AppcondaException('Missing required parameter: "projectId"');
|
476
472
|
}
|
477
473
|
if (typeof alerts === 'undefined') {
|
478
|
-
throw new
|
474
|
+
throw new AppcondaException('Missing required parameter: "alerts"');
|
479
475
|
}
|
480
476
|
const apiPath = '/projects/{projectId}/auth/session-alerts'.replace('{projectId}', projectId);
|
481
477
|
const payload = {};
|
@@ -500,13 +496,13 @@ class Projects {
|
|
500
496
|
*/
|
501
497
|
async updateAuthStatus(projectId, method, status) {
|
502
498
|
if (typeof projectId === 'undefined') {
|
503
|
-
throw new
|
499
|
+
throw new AppcondaException('Missing required parameter: "projectId"');
|
504
500
|
}
|
505
501
|
if (typeof method === 'undefined') {
|
506
|
-
throw new
|
502
|
+
throw new AppcondaException('Missing required parameter: "method"');
|
507
503
|
}
|
508
504
|
if (typeof status === 'undefined') {
|
509
|
-
throw new
|
505
|
+
throw new AppcondaException('Missing required parameter: "status"');
|
510
506
|
}
|
511
507
|
const apiPath = '/projects/{projectId}/auth/{method}'.replace('{projectId}', projectId).replace('{method}', method);
|
512
508
|
const payload = {};
|
@@ -531,10 +527,10 @@ class Projects {
|
|
531
527
|
*/
|
532
528
|
async createJWT(projectId, scopes, duration) {
|
533
529
|
if (typeof projectId === 'undefined') {
|
534
|
-
throw new
|
530
|
+
throw new AppcondaException('Missing required parameter: "projectId"');
|
535
531
|
}
|
536
532
|
if (typeof scopes === 'undefined') {
|
537
|
-
throw new
|
533
|
+
throw new AppcondaException('Missing required parameter: "scopes"');
|
538
534
|
}
|
539
535
|
const apiPath = '/projects/{projectId}/jwts'.replace('{projectId}', projectId);
|
540
536
|
const payload = {};
|
@@ -560,7 +556,7 @@ class Projects {
|
|
560
556
|
*/
|
561
557
|
async listKeys(projectId) {
|
562
558
|
if (typeof projectId === 'undefined') {
|
563
|
-
throw new
|
559
|
+
throw new AppcondaException('Missing required parameter: "projectId"');
|
564
560
|
}
|
565
561
|
const apiPath = '/projects/{projectId}/keys'.replace('{projectId}', projectId);
|
566
562
|
const payload = {};
|
@@ -583,13 +579,13 @@ class Projects {
|
|
583
579
|
*/
|
584
580
|
async createKey(projectId, name, scopes, expire) {
|
585
581
|
if (typeof projectId === 'undefined') {
|
586
|
-
throw new
|
582
|
+
throw new AppcondaException('Missing required parameter: "projectId"');
|
587
583
|
}
|
588
584
|
if (typeof name === 'undefined') {
|
589
|
-
throw new
|
585
|
+
throw new AppcondaException('Missing required parameter: "name"');
|
590
586
|
}
|
591
587
|
if (typeof scopes === 'undefined') {
|
592
|
-
throw new
|
588
|
+
throw new AppcondaException('Missing required parameter: "scopes"');
|
593
589
|
}
|
594
590
|
const apiPath = '/projects/{projectId}/keys'.replace('{projectId}', projectId);
|
595
591
|
const payload = {};
|
@@ -619,10 +615,10 @@ class Projects {
|
|
619
615
|
*/
|
620
616
|
async getKey(projectId, keyId) {
|
621
617
|
if (typeof projectId === 'undefined') {
|
622
|
-
throw new
|
618
|
+
throw new AppcondaException('Missing required parameter: "projectId"');
|
623
619
|
}
|
624
620
|
if (typeof keyId === 'undefined') {
|
625
|
-
throw new
|
621
|
+
throw new AppcondaException('Missing required parameter: "keyId"');
|
626
622
|
}
|
627
623
|
const apiPath = '/projects/{projectId}/keys/{keyId}'.replace('{projectId}', projectId).replace('{keyId}', keyId);
|
628
624
|
const payload = {};
|
@@ -646,16 +642,16 @@ class Projects {
|
|
646
642
|
*/
|
647
643
|
async updateKey(projectId, keyId, name, scopes, expire) {
|
648
644
|
if (typeof projectId === 'undefined') {
|
649
|
-
throw new
|
645
|
+
throw new AppcondaException('Missing required parameter: "projectId"');
|
650
646
|
}
|
651
647
|
if (typeof keyId === 'undefined') {
|
652
|
-
throw new
|
648
|
+
throw new AppcondaException('Missing required parameter: "keyId"');
|
653
649
|
}
|
654
650
|
if (typeof name === 'undefined') {
|
655
|
-
throw new
|
651
|
+
throw new AppcondaException('Missing required parameter: "name"');
|
656
652
|
}
|
657
653
|
if (typeof scopes === 'undefined') {
|
658
|
-
throw new
|
654
|
+
throw new AppcondaException('Missing required parameter: "scopes"');
|
659
655
|
}
|
660
656
|
const apiPath = '/projects/{projectId}/keys/{keyId}'.replace('{projectId}', projectId).replace('{keyId}', keyId);
|
661
657
|
const payload = {};
|
@@ -685,10 +681,10 @@ class Projects {
|
|
685
681
|
*/
|
686
682
|
async deleteKey(projectId, keyId) {
|
687
683
|
if (typeof projectId === 'undefined') {
|
688
|
-
throw new
|
684
|
+
throw new AppcondaException('Missing required parameter: "projectId"');
|
689
685
|
}
|
690
686
|
if (typeof keyId === 'undefined') {
|
691
|
-
throw new
|
687
|
+
throw new AppcondaException('Missing required parameter: "keyId"');
|
692
688
|
}
|
693
689
|
const apiPath = '/projects/{projectId}/keys/{keyId}'.replace('{projectId}', projectId).replace('{keyId}', keyId);
|
694
690
|
const payload = {};
|
@@ -712,10 +708,10 @@ class Projects {
|
|
712
708
|
*/
|
713
709
|
async updateOAuth2(projectId, provider, appId, secret, enabled) {
|
714
710
|
if (typeof projectId === 'undefined') {
|
715
|
-
throw new
|
711
|
+
throw new AppcondaException('Missing required parameter: "projectId"');
|
716
712
|
}
|
717
713
|
if (typeof provider === 'undefined') {
|
718
|
-
throw new
|
714
|
+
throw new AppcondaException('Missing required parameter: "provider"');
|
719
715
|
}
|
720
716
|
const apiPath = '/projects/{projectId}/oauth2'.replace('{projectId}', projectId);
|
721
717
|
const payload = {};
|
@@ -747,7 +743,7 @@ class Projects {
|
|
747
743
|
*/
|
748
744
|
async listPlatforms(projectId) {
|
749
745
|
if (typeof projectId === 'undefined') {
|
750
|
-
throw new
|
746
|
+
throw new AppcondaException('Missing required parameter: "projectId"');
|
751
747
|
}
|
752
748
|
const apiPath = '/projects/{projectId}/platforms'.replace('{projectId}', projectId);
|
753
749
|
const payload = {};
|
@@ -772,13 +768,13 @@ class Projects {
|
|
772
768
|
*/
|
773
769
|
async createPlatform(projectId, type, name, key, store, hostname) {
|
774
770
|
if (typeof projectId === 'undefined') {
|
775
|
-
throw new
|
771
|
+
throw new AppcondaException('Missing required parameter: "projectId"');
|
776
772
|
}
|
777
773
|
if (typeof type === 'undefined') {
|
778
|
-
throw new
|
774
|
+
throw new AppcondaException('Missing required parameter: "type"');
|
779
775
|
}
|
780
776
|
if (typeof name === 'undefined') {
|
781
|
-
throw new
|
777
|
+
throw new AppcondaException('Missing required parameter: "name"');
|
782
778
|
}
|
783
779
|
const apiPath = '/projects/{projectId}/platforms'.replace('{projectId}', projectId);
|
784
780
|
const payload = {};
|
@@ -814,10 +810,10 @@ class Projects {
|
|
814
810
|
*/
|
815
811
|
async getPlatform(projectId, platformId) {
|
816
812
|
if (typeof projectId === 'undefined') {
|
817
|
-
throw new
|
813
|
+
throw new AppcondaException('Missing required parameter: "projectId"');
|
818
814
|
}
|
819
815
|
if (typeof platformId === 'undefined') {
|
820
|
-
throw new
|
816
|
+
throw new AppcondaException('Missing required parameter: "platformId"');
|
821
817
|
}
|
822
818
|
const apiPath = '/projects/{projectId}/platforms/{platformId}'.replace('{projectId}', projectId).replace('{platformId}', platformId);
|
823
819
|
const payload = {};
|
@@ -842,13 +838,13 @@ class Projects {
|
|
842
838
|
*/
|
843
839
|
async updatePlatform(projectId, platformId, name, key, store, hostname) {
|
844
840
|
if (typeof projectId === 'undefined') {
|
845
|
-
throw new
|
841
|
+
throw new AppcondaException('Missing required parameter: "projectId"');
|
846
842
|
}
|
847
843
|
if (typeof platformId === 'undefined') {
|
848
|
-
throw new
|
844
|
+
throw new AppcondaException('Missing required parameter: "platformId"');
|
849
845
|
}
|
850
846
|
if (typeof name === 'undefined') {
|
851
|
-
throw new
|
847
|
+
throw new AppcondaException('Missing required parameter: "name"');
|
852
848
|
}
|
853
849
|
const apiPath = '/projects/{projectId}/platforms/{platformId}'.replace('{projectId}', projectId).replace('{platformId}', platformId);
|
854
850
|
const payload = {};
|
@@ -881,10 +877,10 @@ class Projects {
|
|
881
877
|
*/
|
882
878
|
async deletePlatform(projectId, platformId) {
|
883
879
|
if (typeof projectId === 'undefined') {
|
884
|
-
throw new
|
880
|
+
throw new AppcondaException('Missing required parameter: "projectId"');
|
885
881
|
}
|
886
882
|
if (typeof platformId === 'undefined') {
|
887
|
-
throw new
|
883
|
+
throw new AppcondaException('Missing required parameter: "platformId"');
|
888
884
|
}
|
889
885
|
const apiPath = '/projects/{projectId}/platforms/{platformId}'.replace('{projectId}', projectId).replace('{platformId}', platformId);
|
890
886
|
const payload = {};
|
@@ -906,13 +902,13 @@ class Projects {
|
|
906
902
|
*/
|
907
903
|
async updateServiceStatus(projectId, service, status) {
|
908
904
|
if (typeof projectId === 'undefined') {
|
909
|
-
throw new
|
905
|
+
throw new AppcondaException('Missing required parameter: "projectId"');
|
910
906
|
}
|
911
907
|
if (typeof service === 'undefined') {
|
912
|
-
throw new
|
908
|
+
throw new AppcondaException('Missing required parameter: "service"');
|
913
909
|
}
|
914
910
|
if (typeof status === 'undefined') {
|
915
|
-
throw new
|
911
|
+
throw new AppcondaException('Missing required parameter: "status"');
|
916
912
|
}
|
917
913
|
const apiPath = '/projects/{projectId}/service'.replace('{projectId}', projectId);
|
918
914
|
const payload = {};
|
@@ -939,10 +935,10 @@ class Projects {
|
|
939
935
|
*/
|
940
936
|
async updateServiceStatusAll(projectId, status) {
|
941
937
|
if (typeof projectId === 'undefined') {
|
942
|
-
throw new
|
938
|
+
throw new AppcondaException('Missing required parameter: "projectId"');
|
943
939
|
}
|
944
940
|
if (typeof status === 'undefined') {
|
945
|
-
throw new
|
941
|
+
throw new AppcondaException('Missing required parameter: "status"');
|
946
942
|
}
|
947
943
|
const apiPath = '/projects/{projectId}/service/all'.replace('{projectId}', projectId);
|
948
944
|
const payload = {};
|
@@ -974,10 +970,10 @@ class Projects {
|
|
974
970
|
*/
|
975
971
|
async updateSmtp(projectId, enabled, senderName, senderEmail, replyTo, host, port, username, password, secure) {
|
976
972
|
if (typeof projectId === 'undefined') {
|
977
|
-
throw new
|
973
|
+
throw new AppcondaException('Missing required parameter: "projectId"');
|
978
974
|
}
|
979
975
|
if (typeof enabled === 'undefined') {
|
980
|
-
throw new
|
976
|
+
throw new AppcondaException('Missing required parameter: "enabled"');
|
981
977
|
}
|
982
978
|
const apiPath = '/projects/{projectId}/smtp'.replace('{projectId}', projectId);
|
983
979
|
const payload = {};
|
@@ -1033,19 +1029,19 @@ class Projects {
|
|
1033
1029
|
*/
|
1034
1030
|
async createSmtpTest(projectId, emails, senderName, senderEmail, host, replyTo, port, username, password, secure) {
|
1035
1031
|
if (typeof projectId === 'undefined') {
|
1036
|
-
throw new
|
1032
|
+
throw new AppcondaException('Missing required parameter: "projectId"');
|
1037
1033
|
}
|
1038
1034
|
if (typeof emails === 'undefined') {
|
1039
|
-
throw new
|
1035
|
+
throw new AppcondaException('Missing required parameter: "emails"');
|
1040
1036
|
}
|
1041
1037
|
if (typeof senderName === 'undefined') {
|
1042
|
-
throw new
|
1038
|
+
throw new AppcondaException('Missing required parameter: "senderName"');
|
1043
1039
|
}
|
1044
1040
|
if (typeof senderEmail === 'undefined') {
|
1045
|
-
throw new
|
1041
|
+
throw new AppcondaException('Missing required parameter: "senderEmail"');
|
1046
1042
|
}
|
1047
1043
|
if (typeof host === 'undefined') {
|
1048
|
-
throw new
|
1044
|
+
throw new AppcondaException('Missing required parameter: "host"');
|
1049
1045
|
}
|
1050
1046
|
const apiPath = '/projects/{projectId}/smtp/tests'.replace('{projectId}', projectId);
|
1051
1047
|
const payload = {};
|
@@ -1093,10 +1089,10 @@ class Projects {
|
|
1093
1089
|
*/
|
1094
1090
|
async updateTeam(projectId, teamId) {
|
1095
1091
|
if (typeof projectId === 'undefined') {
|
1096
|
-
throw new
|
1092
|
+
throw new AppcondaException('Missing required parameter: "projectId"');
|
1097
1093
|
}
|
1098
1094
|
if (typeof teamId === 'undefined') {
|
1099
|
-
throw new
|
1095
|
+
throw new AppcondaException('Missing required parameter: "teamId"');
|
1100
1096
|
}
|
1101
1097
|
const apiPath = '/projects/{projectId}/team'.replace('{projectId}', projectId);
|
1102
1098
|
const payload = {};
|
@@ -1121,13 +1117,13 @@ class Projects {
|
|
1121
1117
|
*/
|
1122
1118
|
async getEmailTemplate(projectId, type, locale) {
|
1123
1119
|
if (typeof projectId === 'undefined') {
|
1124
|
-
throw new
|
1120
|
+
throw new AppcondaException('Missing required parameter: "projectId"');
|
1125
1121
|
}
|
1126
1122
|
if (typeof type === 'undefined') {
|
1127
|
-
throw new
|
1123
|
+
throw new AppcondaException('Missing required parameter: "type"');
|
1128
1124
|
}
|
1129
1125
|
if (typeof locale === 'undefined') {
|
1130
|
-
throw new
|
1126
|
+
throw new AppcondaException('Missing required parameter: "locale"');
|
1131
1127
|
}
|
1132
1128
|
const apiPath = '/projects/{projectId}/templates/email/{type}/{locale}'.replace('{projectId}', projectId).replace('{type}', type).replace('{locale}', locale);
|
1133
1129
|
const payload = {};
|
@@ -1154,19 +1150,19 @@ class Projects {
|
|
1154
1150
|
*/
|
1155
1151
|
async updateEmailTemplate(projectId, type, locale, subject, message, senderName, senderEmail, replyTo) {
|
1156
1152
|
if (typeof projectId === 'undefined') {
|
1157
|
-
throw new
|
1153
|
+
throw new AppcondaException('Missing required parameter: "projectId"');
|
1158
1154
|
}
|
1159
1155
|
if (typeof type === 'undefined') {
|
1160
|
-
throw new
|
1156
|
+
throw new AppcondaException('Missing required parameter: "type"');
|
1161
1157
|
}
|
1162
1158
|
if (typeof locale === 'undefined') {
|
1163
|
-
throw new
|
1159
|
+
throw new AppcondaException('Missing required parameter: "locale"');
|
1164
1160
|
}
|
1165
1161
|
if (typeof subject === 'undefined') {
|
1166
|
-
throw new
|
1162
|
+
throw new AppcondaException('Missing required parameter: "subject"');
|
1167
1163
|
}
|
1168
1164
|
if (typeof message === 'undefined') {
|
1169
|
-
throw new
|
1165
|
+
throw new AppcondaException('Missing required parameter: "message"');
|
1170
1166
|
}
|
1171
1167
|
const apiPath = '/projects/{projectId}/templates/email/{type}/{locale}'.replace('{projectId}', projectId).replace('{type}', type).replace('{locale}', locale);
|
1172
1168
|
const payload = {};
|
@@ -1203,13 +1199,13 @@ class Projects {
|
|
1203
1199
|
*/
|
1204
1200
|
async deleteEmailTemplate(projectId, type, locale) {
|
1205
1201
|
if (typeof projectId === 'undefined') {
|
1206
|
-
throw new
|
1202
|
+
throw new AppcondaException('Missing required parameter: "projectId"');
|
1207
1203
|
}
|
1208
1204
|
if (typeof type === 'undefined') {
|
1209
|
-
throw new
|
1205
|
+
throw new AppcondaException('Missing required parameter: "type"');
|
1210
1206
|
}
|
1211
1207
|
if (typeof locale === 'undefined') {
|
1212
|
-
throw new
|
1208
|
+
throw new AppcondaException('Missing required parameter: "locale"');
|
1213
1209
|
}
|
1214
1210
|
const apiPath = '/projects/{projectId}/templates/email/{type}/{locale}'.replace('{projectId}', projectId).replace('{type}', type).replace('{locale}', locale);
|
1215
1211
|
const payload = {};
|
@@ -1231,13 +1227,13 @@ class Projects {
|
|
1231
1227
|
*/
|
1232
1228
|
async getSmsTemplate(projectId, type, locale) {
|
1233
1229
|
if (typeof projectId === 'undefined') {
|
1234
|
-
throw new
|
1230
|
+
throw new AppcondaException('Missing required parameter: "projectId"');
|
1235
1231
|
}
|
1236
1232
|
if (typeof type === 'undefined') {
|
1237
|
-
throw new
|
1233
|
+
throw new AppcondaException('Missing required parameter: "type"');
|
1238
1234
|
}
|
1239
1235
|
if (typeof locale === 'undefined') {
|
1240
|
-
throw new
|
1236
|
+
throw new AppcondaException('Missing required parameter: "locale"');
|
1241
1237
|
}
|
1242
1238
|
const apiPath = '/projects/{projectId}/templates/sms/{type}/{locale}'.replace('{projectId}', projectId).replace('{type}', type).replace('{locale}', locale);
|
1243
1239
|
const payload = {};
|
@@ -1260,16 +1256,16 @@ class Projects {
|
|
1260
1256
|
*/
|
1261
1257
|
async updateSmsTemplate(projectId, type, locale, message) {
|
1262
1258
|
if (typeof projectId === 'undefined') {
|
1263
|
-
throw new
|
1259
|
+
throw new AppcondaException('Missing required parameter: "projectId"');
|
1264
1260
|
}
|
1265
1261
|
if (typeof type === 'undefined') {
|
1266
|
-
throw new
|
1262
|
+
throw new AppcondaException('Missing required parameter: "type"');
|
1267
1263
|
}
|
1268
1264
|
if (typeof locale === 'undefined') {
|
1269
|
-
throw new
|
1265
|
+
throw new AppcondaException('Missing required parameter: "locale"');
|
1270
1266
|
}
|
1271
1267
|
if (typeof message === 'undefined') {
|
1272
|
-
throw new
|
1268
|
+
throw new AppcondaException('Missing required parameter: "message"');
|
1273
1269
|
}
|
1274
1270
|
const apiPath = '/projects/{projectId}/templates/sms/{type}/{locale}'.replace('{projectId}', projectId).replace('{type}', type).replace('{locale}', locale);
|
1275
1271
|
const payload = {};
|
@@ -1294,13 +1290,13 @@ class Projects {
|
|
1294
1290
|
*/
|
1295
1291
|
async deleteSmsTemplate(projectId, type, locale) {
|
1296
1292
|
if (typeof projectId === 'undefined') {
|
1297
|
-
throw new
|
1293
|
+
throw new AppcondaException('Missing required parameter: "projectId"');
|
1298
1294
|
}
|
1299
1295
|
if (typeof type === 'undefined') {
|
1300
|
-
throw new
|
1296
|
+
throw new AppcondaException('Missing required parameter: "type"');
|
1301
1297
|
}
|
1302
1298
|
if (typeof locale === 'undefined') {
|
1303
|
-
throw new
|
1299
|
+
throw new AppcondaException('Missing required parameter: "locale"');
|
1304
1300
|
}
|
1305
1301
|
const apiPath = '/projects/{projectId}/templates/sms/{type}/{locale}'.replace('{projectId}', projectId).replace('{type}', type).replace('{locale}', locale);
|
1306
1302
|
const payload = {};
|
@@ -1320,7 +1316,7 @@ class Projects {
|
|
1320
1316
|
*/
|
1321
1317
|
async listWebhooks(projectId) {
|
1322
1318
|
if (typeof projectId === 'undefined') {
|
1323
|
-
throw new
|
1319
|
+
throw new AppcondaException('Missing required parameter: "projectId"');
|
1324
1320
|
}
|
1325
1321
|
const apiPath = '/projects/{projectId}/webhooks'.replace('{projectId}', projectId);
|
1326
1322
|
const payload = {};
|
@@ -1347,19 +1343,19 @@ class Projects {
|
|
1347
1343
|
*/
|
1348
1344
|
async createWebhook(projectId, name, events, url, security, enabled, httpUser, httpPass) {
|
1349
1345
|
if (typeof projectId === 'undefined') {
|
1350
|
-
throw new
|
1346
|
+
throw new AppcondaException('Missing required parameter: "projectId"');
|
1351
1347
|
}
|
1352
1348
|
if (typeof name === 'undefined') {
|
1353
|
-
throw new
|
1349
|
+
throw new AppcondaException('Missing required parameter: "name"');
|
1354
1350
|
}
|
1355
1351
|
if (typeof events === 'undefined') {
|
1356
|
-
throw new
|
1352
|
+
throw new AppcondaException('Missing required parameter: "events"');
|
1357
1353
|
}
|
1358
1354
|
if (typeof url === 'undefined') {
|
1359
|
-
throw new
|
1355
|
+
throw new AppcondaException('Missing required parameter: "url"');
|
1360
1356
|
}
|
1361
1357
|
if (typeof security === 'undefined') {
|
1362
|
-
throw new
|
1358
|
+
throw new AppcondaException('Missing required parameter: "security"');
|
1363
1359
|
}
|
1364
1360
|
const apiPath = '/projects/{projectId}/webhooks'.replace('{projectId}', projectId);
|
1365
1361
|
const payload = {};
|
@@ -1401,10 +1397,10 @@ class Projects {
|
|
1401
1397
|
*/
|
1402
1398
|
async getWebhook(projectId, webhookId) {
|
1403
1399
|
if (typeof projectId === 'undefined') {
|
1404
|
-
throw new
|
1400
|
+
throw new AppcondaException('Missing required parameter: "projectId"');
|
1405
1401
|
}
|
1406
1402
|
if (typeof webhookId === 'undefined') {
|
1407
|
-
throw new
|
1403
|
+
throw new AppcondaException('Missing required parameter: "webhookId"');
|
1408
1404
|
}
|
1409
1405
|
const apiPath = '/projects/{projectId}/webhooks/{webhookId}'.replace('{projectId}', projectId).replace('{webhookId}', webhookId);
|
1410
1406
|
const payload = {};
|
@@ -1432,22 +1428,22 @@ class Projects {
|
|
1432
1428
|
*/
|
1433
1429
|
async updateWebhook(projectId, webhookId, name, events, url, security, enabled, httpUser, httpPass) {
|
1434
1430
|
if (typeof projectId === 'undefined') {
|
1435
|
-
throw new
|
1431
|
+
throw new AppcondaException('Missing required parameter: "projectId"');
|
1436
1432
|
}
|
1437
1433
|
if (typeof webhookId === 'undefined') {
|
1438
|
-
throw new
|
1434
|
+
throw new AppcondaException('Missing required parameter: "webhookId"');
|
1439
1435
|
}
|
1440
1436
|
if (typeof name === 'undefined') {
|
1441
|
-
throw new
|
1437
|
+
throw new AppcondaException('Missing required parameter: "name"');
|
1442
1438
|
}
|
1443
1439
|
if (typeof events === 'undefined') {
|
1444
|
-
throw new
|
1440
|
+
throw new AppcondaException('Missing required parameter: "events"');
|
1445
1441
|
}
|
1446
1442
|
if (typeof url === 'undefined') {
|
1447
|
-
throw new
|
1443
|
+
throw new AppcondaException('Missing required parameter: "url"');
|
1448
1444
|
}
|
1449
1445
|
if (typeof security === 'undefined') {
|
1450
|
-
throw new
|
1446
|
+
throw new AppcondaException('Missing required parameter: "security"');
|
1451
1447
|
}
|
1452
1448
|
const apiPath = '/projects/{projectId}/webhooks/{webhookId}'.replace('{projectId}', projectId).replace('{webhookId}', webhookId);
|
1453
1449
|
const payload = {};
|
@@ -1489,10 +1485,10 @@ class Projects {
|
|
1489
1485
|
*/
|
1490
1486
|
async deleteWebhook(projectId, webhookId) {
|
1491
1487
|
if (typeof projectId === 'undefined') {
|
1492
|
-
throw new
|
1488
|
+
throw new AppcondaException('Missing required parameter: "projectId"');
|
1493
1489
|
}
|
1494
1490
|
if (typeof webhookId === 'undefined') {
|
1495
|
-
throw new
|
1491
|
+
throw new AppcondaException('Missing required parameter: "webhookId"');
|
1496
1492
|
}
|
1497
1493
|
const apiPath = '/projects/{projectId}/webhooks/{webhookId}'.replace('{projectId}', projectId).replace('{webhookId}', webhookId);
|
1498
1494
|
const payload = {};
|
@@ -1513,10 +1509,10 @@ class Projects {
|
|
1513
1509
|
*/
|
1514
1510
|
async updateWebhookSignature(projectId, webhookId) {
|
1515
1511
|
if (typeof projectId === 'undefined') {
|
1516
|
-
throw new
|
1512
|
+
throw new AppcondaException('Missing required parameter: "projectId"');
|
1517
1513
|
}
|
1518
1514
|
if (typeof webhookId === 'undefined') {
|
1519
|
-
throw new
|
1515
|
+
throw new AppcondaException('Missing required parameter: "webhookId"');
|
1520
1516
|
}
|
1521
1517
|
const apiPath = '/projects/{projectId}/webhooks/{webhookId}/signature'.replace('{projectId}', projectId).replace('{webhookId}', webhookId);
|
1522
1518
|
const payload = {};
|
@@ -1527,4 +1523,3 @@ class Projects {
|
|
1527
1523
|
return await this.client.call('patch', uri, apiHeaders, payload);
|
1528
1524
|
}
|
1529
1525
|
}
|
1530
|
-
exports.Projects = Projects;
|