@appconda/nextjs 1.0.39 → 1.0.41

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