@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 Messaging {
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Messaging = void 0;
4
+ const client_1 = require("../client");
5
+ class Messaging {
6
+ client;
3
7
  constructor(client) {
4
8
  this.client = client;
5
9
  }
@@ -50,13 +54,13 @@ export class Messaging {
50
54
  */
51
55
  async createEmail(messageId, subject, content, topics, users, targets, cc, bcc, attachments, draft, html, scheduledAt) {
52
56
  if (typeof messageId === 'undefined') {
53
- throw new AppcondaException('Missing required parameter: "messageId"');
57
+ throw new client_1.AppcondaException('Missing required parameter: "messageId"');
54
58
  }
55
59
  if (typeof subject === 'undefined') {
56
- throw new AppcondaException('Missing required parameter: "subject"');
60
+ throw new client_1.AppcondaException('Missing required parameter: "subject"');
57
61
  }
58
62
  if (typeof content === 'undefined') {
59
- throw new AppcondaException('Missing required parameter: "content"');
63
+ throw new client_1.AppcondaException('Missing required parameter: "content"');
60
64
  }
61
65
  const apiPath = '/messaging/messages/email';
62
66
  const payload = {};
@@ -125,7 +129,7 @@ export class Messaging {
125
129
  */
126
130
  async updateEmail(messageId, topics, users, targets, subject, content, draft, html, cc, bcc, scheduledAt, attachments) {
127
131
  if (typeof messageId === 'undefined') {
128
- throw new AppcondaException('Missing required parameter: "messageId"');
132
+ throw new client_1.AppcondaException('Missing required parameter: "messageId"');
129
133
  }
130
134
  const apiPath = '/messaging/messages/email/{messageId}'.replace('{messageId}', messageId);
131
135
  const payload = {};
@@ -194,13 +198,13 @@ export class Messaging {
194
198
  */
195
199
  async createPush(messageId, title, body, topics, users, targets, data, action, image, icon, sound, color, tag, badge, draft, scheduledAt) {
196
200
  if (typeof messageId === 'undefined') {
197
- throw new AppcondaException('Missing required parameter: "messageId"');
201
+ throw new client_1.AppcondaException('Missing required parameter: "messageId"');
198
202
  }
199
203
  if (typeof title === 'undefined') {
200
- throw new AppcondaException('Missing required parameter: "title"');
204
+ throw new client_1.AppcondaException('Missing required parameter: "title"');
201
205
  }
202
206
  if (typeof body === 'undefined') {
203
- throw new AppcondaException('Missing required parameter: "body"');
207
+ throw new client_1.AppcondaException('Missing required parameter: "body"');
204
208
  }
205
209
  const apiPath = '/messaging/messages/push';
206
210
  const payload = {};
@@ -285,7 +289,7 @@ export class Messaging {
285
289
  */
286
290
  async updatePush(messageId, topics, users, targets, title, body, data, action, image, icon, sound, color, tag, badge, draft, scheduledAt) {
287
291
  if (typeof messageId === 'undefined') {
288
- throw new AppcondaException('Missing required parameter: "messageId"');
292
+ throw new client_1.AppcondaException('Missing required parameter: "messageId"');
289
293
  }
290
294
  const apiPath = '/messaging/messages/push/{messageId}'.replace('{messageId}', messageId);
291
295
  const payload = {};
@@ -357,10 +361,10 @@ export class Messaging {
357
361
  */
358
362
  async createSms(messageId, content, topics, users, targets, draft, scheduledAt) {
359
363
  if (typeof messageId === 'undefined') {
360
- throw new AppcondaException('Missing required parameter: "messageId"');
364
+ throw new client_1.AppcondaException('Missing required parameter: "messageId"');
361
365
  }
362
366
  if (typeof content === 'undefined') {
363
- throw new AppcondaException('Missing required parameter: "content"');
367
+ throw new client_1.AppcondaException('Missing required parameter: "content"');
364
368
  }
365
369
  const apiPath = '/messaging/messages/sms';
366
370
  const payload = {};
@@ -409,7 +413,7 @@ export class Messaging {
409
413
  */
410
414
  async updateSms(messageId, topics, users, targets, content, draft, scheduledAt) {
411
415
  if (typeof messageId === 'undefined') {
412
- throw new AppcondaException('Missing required parameter: "messageId"');
416
+ throw new client_1.AppcondaException('Missing required parameter: "messageId"');
413
417
  }
414
418
  const apiPath = '/messaging/messages/sms/{messageId}'.replace('{messageId}', messageId);
415
419
  const payload = {};
@@ -449,7 +453,7 @@ export class Messaging {
449
453
  */
450
454
  async getMessage(messageId) {
451
455
  if (typeof messageId === 'undefined') {
452
- throw new AppcondaException('Missing required parameter: "messageId"');
456
+ throw new client_1.AppcondaException('Missing required parameter: "messageId"');
453
457
  }
454
458
  const apiPath = '/messaging/messages/{messageId}'.replace('{messageId}', messageId);
455
459
  const payload = {};
@@ -470,7 +474,7 @@ export class Messaging {
470
474
  */
471
475
  async delete(messageId) {
472
476
  if (typeof messageId === 'undefined') {
473
- throw new AppcondaException('Missing required parameter: "messageId"');
477
+ throw new client_1.AppcondaException('Missing required parameter: "messageId"');
474
478
  }
475
479
  const apiPath = '/messaging/messages/{messageId}'.replace('{messageId}', messageId);
476
480
  const payload = {};
@@ -492,7 +496,7 @@ export class Messaging {
492
496
  */
493
497
  async listMessageLogs(messageId, queries) {
494
498
  if (typeof messageId === 'undefined') {
495
- throw new AppcondaException('Missing required parameter: "messageId"');
499
+ throw new client_1.AppcondaException('Missing required parameter: "messageId"');
496
500
  }
497
501
  const apiPath = '/messaging/messages/{messageId}/logs'.replace('{messageId}', messageId);
498
502
  const payload = {};
@@ -517,7 +521,7 @@ export class Messaging {
517
521
  */
518
522
  async listTargets(messageId, queries) {
519
523
  if (typeof messageId === 'undefined') {
520
- throw new AppcondaException('Missing required parameter: "messageId"');
524
+ throw new client_1.AppcondaException('Missing required parameter: "messageId"');
521
525
  }
522
526
  const apiPath = '/messaging/messages/{messageId}/targets'.replace('{messageId}', messageId);
523
527
  const payload = {};
@@ -573,10 +577,10 @@ export class Messaging {
573
577
  */
574
578
  async createApnsProvider(providerId, name, authKey, authKeyId, teamId, bundleId, sandbox, enabled) {
575
579
  if (typeof providerId === 'undefined') {
576
- throw new AppcondaException('Missing required parameter: "providerId"');
580
+ throw new client_1.AppcondaException('Missing required parameter: "providerId"');
577
581
  }
578
582
  if (typeof name === 'undefined') {
579
- throw new AppcondaException('Missing required parameter: "name"');
583
+ throw new client_1.AppcondaException('Missing required parameter: "name"');
580
584
  }
581
585
  const apiPath = '/messaging/providers/apns';
582
586
  const payload = {};
@@ -628,7 +632,7 @@ export class Messaging {
628
632
  */
629
633
  async updateApnsProvider(providerId, name, enabled, authKey, authKeyId, teamId, bundleId, sandbox) {
630
634
  if (typeof providerId === 'undefined') {
631
- throw new AppcondaException('Missing required parameter: "providerId"');
635
+ throw new client_1.AppcondaException('Missing required parameter: "providerId"');
632
636
  }
633
637
  const apiPath = '/messaging/providers/apns/{providerId}'.replace('{providerId}', providerId);
634
638
  const payload = {};
@@ -673,10 +677,10 @@ export class Messaging {
673
677
  */
674
678
  async createFcmProvider(providerId, name, serviceAccountJSON, enabled) {
675
679
  if (typeof providerId === 'undefined') {
676
- throw new AppcondaException('Missing required parameter: "providerId"');
680
+ throw new client_1.AppcondaException('Missing required parameter: "providerId"');
677
681
  }
678
682
  if (typeof name === 'undefined') {
679
- throw new AppcondaException('Missing required parameter: "name"');
683
+ throw new client_1.AppcondaException('Missing required parameter: "name"');
680
684
  }
681
685
  const apiPath = '/messaging/providers/fcm';
682
686
  const payload = {};
@@ -712,7 +716,7 @@ export class Messaging {
712
716
  */
713
717
  async updateFcmProvider(providerId, name, enabled, serviceAccountJSON) {
714
718
  if (typeof providerId === 'undefined') {
715
- throw new AppcondaException('Missing required parameter: "providerId"');
719
+ throw new client_1.AppcondaException('Missing required parameter: "providerId"');
716
720
  }
717
721
  const apiPath = '/messaging/providers/fcm/{providerId}'.replace('{providerId}', providerId);
718
722
  const payload = {};
@@ -751,10 +755,10 @@ export class Messaging {
751
755
  */
752
756
  async createMailgunProvider(providerId, name, apiKey, domain, isEuRegion, fromName, fromEmail, replyToName, replyToEmail, enabled) {
753
757
  if (typeof providerId === 'undefined') {
754
- throw new AppcondaException('Missing required parameter: "providerId"');
758
+ throw new client_1.AppcondaException('Missing required parameter: "providerId"');
755
759
  }
756
760
  if (typeof name === 'undefined') {
757
- throw new AppcondaException('Missing required parameter: "name"');
761
+ throw new client_1.AppcondaException('Missing required parameter: "name"');
758
762
  }
759
763
  const apiPath = '/messaging/providers/mailgun';
760
764
  const payload = {};
@@ -814,7 +818,7 @@ export class Messaging {
814
818
  */
815
819
  async updateMailgunProvider(providerId, name, apiKey, domain, isEuRegion, enabled, fromName, fromEmail, replyToName, replyToEmail) {
816
820
  if (typeof providerId === 'undefined') {
817
- throw new AppcondaException('Missing required parameter: "providerId"');
821
+ throw new client_1.AppcondaException('Missing required parameter: "providerId"');
818
822
  }
819
823
  const apiPath = '/messaging/providers/mailgun/{providerId}'.replace('{providerId}', providerId);
820
824
  const payload = {};
@@ -867,10 +871,10 @@ export class Messaging {
867
871
  */
868
872
  async createMsg91Provider(providerId, name, templateId, senderId, authKey, enabled) {
869
873
  if (typeof providerId === 'undefined') {
870
- throw new AppcondaException('Missing required parameter: "providerId"');
874
+ throw new client_1.AppcondaException('Missing required parameter: "providerId"');
871
875
  }
872
876
  if (typeof name === 'undefined') {
873
- throw new AppcondaException('Missing required parameter: "name"');
877
+ throw new client_1.AppcondaException('Missing required parameter: "name"');
874
878
  }
875
879
  const apiPath = '/messaging/providers/msg91';
876
880
  const payload = {};
@@ -914,7 +918,7 @@ export class Messaging {
914
918
  */
915
919
  async updateMsg91Provider(providerId, name, enabled, templateId, senderId, authKey) {
916
920
  if (typeof providerId === 'undefined') {
917
- throw new AppcondaException('Missing required parameter: "providerId"');
921
+ throw new client_1.AppcondaException('Missing required parameter: "providerId"');
918
922
  }
919
923
  const apiPath = '/messaging/providers/msg91/{providerId}'.replace('{providerId}', providerId);
920
924
  const payload = {};
@@ -957,10 +961,10 @@ export class Messaging {
957
961
  */
958
962
  async createSendgridProvider(providerId, name, apiKey, fromName, fromEmail, replyToName, replyToEmail, enabled) {
959
963
  if (typeof providerId === 'undefined') {
960
- throw new AppcondaException('Missing required parameter: "providerId"');
964
+ throw new client_1.AppcondaException('Missing required parameter: "providerId"');
961
965
  }
962
966
  if (typeof name === 'undefined') {
963
- throw new AppcondaException('Missing required parameter: "name"');
967
+ throw new client_1.AppcondaException('Missing required parameter: "name"');
964
968
  }
965
969
  const apiPath = '/messaging/providers/sendgrid';
966
970
  const payload = {};
@@ -1012,7 +1016,7 @@ export class Messaging {
1012
1016
  */
1013
1017
  async updateSendgridProvider(providerId, name, enabled, apiKey, fromName, fromEmail, replyToName, replyToEmail) {
1014
1018
  if (typeof providerId === 'undefined') {
1015
- throw new AppcondaException('Missing required parameter: "providerId"');
1019
+ throw new client_1.AppcondaException('Missing required parameter: "providerId"');
1016
1020
  }
1017
1021
  const apiPath = '/messaging/providers/sendgrid/{providerId}'.replace('{providerId}', providerId);
1018
1022
  const payload = {};
@@ -1067,13 +1071,13 @@ export class Messaging {
1067
1071
  */
1068
1072
  async createSmtpProvider(providerId, name, host, port, username, password, encryption, autoTLS, mailer, fromName, fromEmail, replyToName, replyToEmail, enabled) {
1069
1073
  if (typeof providerId === 'undefined') {
1070
- throw new AppcondaException('Missing required parameter: "providerId"');
1074
+ throw new client_1.AppcondaException('Missing required parameter: "providerId"');
1071
1075
  }
1072
1076
  if (typeof name === 'undefined') {
1073
- throw new AppcondaException('Missing required parameter: "name"');
1077
+ throw new client_1.AppcondaException('Missing required parameter: "name"');
1074
1078
  }
1075
1079
  if (typeof host === 'undefined') {
1076
- throw new AppcondaException('Missing required parameter: "host"');
1080
+ throw new client_1.AppcondaException('Missing required parameter: "host"');
1077
1081
  }
1078
1082
  const apiPath = '/messaging/providers/smtp';
1079
1083
  const payload = {};
@@ -1149,7 +1153,7 @@ export class Messaging {
1149
1153
  */
1150
1154
  async updateSmtpProvider(providerId, name, host, port, username, password, encryption, autoTLS, mailer, fromName, fromEmail, replyToName, replyToEmail, enabled) {
1151
1155
  if (typeof providerId === 'undefined') {
1152
- throw new AppcondaException('Missing required parameter: "providerId"');
1156
+ throw new client_1.AppcondaException('Missing required parameter: "providerId"');
1153
1157
  }
1154
1158
  const apiPath = '/messaging/providers/smtp/{providerId}'.replace('{providerId}', providerId);
1155
1159
  const payload = {};
@@ -1214,10 +1218,10 @@ export class Messaging {
1214
1218
  */
1215
1219
  async createTelesignProvider(providerId, name, from, customerId, apiKey, enabled) {
1216
1220
  if (typeof providerId === 'undefined') {
1217
- throw new AppcondaException('Missing required parameter: "providerId"');
1221
+ throw new client_1.AppcondaException('Missing required parameter: "providerId"');
1218
1222
  }
1219
1223
  if (typeof name === 'undefined') {
1220
- throw new AppcondaException('Missing required parameter: "name"');
1224
+ throw new client_1.AppcondaException('Missing required parameter: "name"');
1221
1225
  }
1222
1226
  const apiPath = '/messaging/providers/telesign';
1223
1227
  const payload = {};
@@ -1261,7 +1265,7 @@ export class Messaging {
1261
1265
  */
1262
1266
  async updateTelesignProvider(providerId, name, enabled, customerId, apiKey, from) {
1263
1267
  if (typeof providerId === 'undefined') {
1264
- throw new AppcondaException('Missing required parameter: "providerId"');
1268
+ throw new client_1.AppcondaException('Missing required parameter: "providerId"');
1265
1269
  }
1266
1270
  const apiPath = '/messaging/providers/telesign/{providerId}'.replace('{providerId}', providerId);
1267
1271
  const payload = {};
@@ -1302,10 +1306,10 @@ export class Messaging {
1302
1306
  */
1303
1307
  async createTextmagicProvider(providerId, name, from, username, apiKey, enabled) {
1304
1308
  if (typeof providerId === 'undefined') {
1305
- throw new AppcondaException('Missing required parameter: "providerId"');
1309
+ throw new client_1.AppcondaException('Missing required parameter: "providerId"');
1306
1310
  }
1307
1311
  if (typeof name === 'undefined') {
1308
- throw new AppcondaException('Missing required parameter: "name"');
1312
+ throw new client_1.AppcondaException('Missing required parameter: "name"');
1309
1313
  }
1310
1314
  const apiPath = '/messaging/providers/textmagic';
1311
1315
  const payload = {};
@@ -1349,7 +1353,7 @@ export class Messaging {
1349
1353
  */
1350
1354
  async updateTextmagicProvider(providerId, name, enabled, username, apiKey, from) {
1351
1355
  if (typeof providerId === 'undefined') {
1352
- throw new AppcondaException('Missing required parameter: "providerId"');
1356
+ throw new client_1.AppcondaException('Missing required parameter: "providerId"');
1353
1357
  }
1354
1358
  const apiPath = '/messaging/providers/textmagic/{providerId}'.replace('{providerId}', providerId);
1355
1359
  const payload = {};
@@ -1390,10 +1394,10 @@ export class Messaging {
1390
1394
  */
1391
1395
  async createTwilioProvider(providerId, name, from, accountSid, authToken, enabled) {
1392
1396
  if (typeof providerId === 'undefined') {
1393
- throw new AppcondaException('Missing required parameter: "providerId"');
1397
+ throw new client_1.AppcondaException('Missing required parameter: "providerId"');
1394
1398
  }
1395
1399
  if (typeof name === 'undefined') {
1396
- throw new AppcondaException('Missing required parameter: "name"');
1400
+ throw new client_1.AppcondaException('Missing required parameter: "name"');
1397
1401
  }
1398
1402
  const apiPath = '/messaging/providers/twilio';
1399
1403
  const payload = {};
@@ -1437,7 +1441,7 @@ export class Messaging {
1437
1441
  */
1438
1442
  async updateTwilioProvider(providerId, name, enabled, accountSid, authToken, from) {
1439
1443
  if (typeof providerId === 'undefined') {
1440
- throw new AppcondaException('Missing required parameter: "providerId"');
1444
+ throw new client_1.AppcondaException('Missing required parameter: "providerId"');
1441
1445
  }
1442
1446
  const apiPath = '/messaging/providers/twilio/{providerId}'.replace('{providerId}', providerId);
1443
1447
  const payload = {};
@@ -1478,10 +1482,10 @@ export class Messaging {
1478
1482
  */
1479
1483
  async createVonageProvider(providerId, name, from, apiKey, apiSecret, enabled) {
1480
1484
  if (typeof providerId === 'undefined') {
1481
- throw new AppcondaException('Missing required parameter: "providerId"');
1485
+ throw new client_1.AppcondaException('Missing required parameter: "providerId"');
1482
1486
  }
1483
1487
  if (typeof name === 'undefined') {
1484
- throw new AppcondaException('Missing required parameter: "name"');
1488
+ throw new client_1.AppcondaException('Missing required parameter: "name"');
1485
1489
  }
1486
1490
  const apiPath = '/messaging/providers/vonage';
1487
1491
  const payload = {};
@@ -1525,7 +1529,7 @@ export class Messaging {
1525
1529
  */
1526
1530
  async updateVonageProvider(providerId, name, enabled, apiKey, apiSecret, from) {
1527
1531
  if (typeof providerId === 'undefined') {
1528
- throw new AppcondaException('Missing required parameter: "providerId"');
1532
+ throw new client_1.AppcondaException('Missing required parameter: "providerId"');
1529
1533
  }
1530
1534
  const apiPath = '/messaging/providers/vonage/{providerId}'.replace('{providerId}', providerId);
1531
1535
  const payload = {};
@@ -1562,7 +1566,7 @@ export class Messaging {
1562
1566
  */
1563
1567
  async getProvider(providerId) {
1564
1568
  if (typeof providerId === 'undefined') {
1565
- throw new AppcondaException('Missing required parameter: "providerId"');
1569
+ throw new client_1.AppcondaException('Missing required parameter: "providerId"');
1566
1570
  }
1567
1571
  const apiPath = '/messaging/providers/{providerId}'.replace('{providerId}', providerId);
1568
1572
  const payload = {};
@@ -1583,7 +1587,7 @@ export class Messaging {
1583
1587
  */
1584
1588
  async deleteProvider(providerId) {
1585
1589
  if (typeof providerId === 'undefined') {
1586
- throw new AppcondaException('Missing required parameter: "providerId"');
1590
+ throw new client_1.AppcondaException('Missing required parameter: "providerId"');
1587
1591
  }
1588
1592
  const apiPath = '/messaging/providers/{providerId}'.replace('{providerId}', providerId);
1589
1593
  const payload = {};
@@ -1605,7 +1609,7 @@ export class Messaging {
1605
1609
  */
1606
1610
  async listProviderLogs(providerId, queries) {
1607
1611
  if (typeof providerId === 'undefined') {
1608
- throw new AppcondaException('Missing required parameter: "providerId"');
1612
+ throw new client_1.AppcondaException('Missing required parameter: "providerId"');
1609
1613
  }
1610
1614
  const apiPath = '/messaging/providers/{providerId}/logs'.replace('{providerId}', providerId);
1611
1615
  const payload = {};
@@ -1630,7 +1634,7 @@ export class Messaging {
1630
1634
  */
1631
1635
  async listSubscriberLogs(subscriberId, queries) {
1632
1636
  if (typeof subscriberId === 'undefined') {
1633
- throw new AppcondaException('Missing required parameter: "subscriberId"');
1637
+ throw new client_1.AppcondaException('Missing required parameter: "subscriberId"');
1634
1638
  }
1635
1639
  const apiPath = '/messaging/subscribers/{subscriberId}/logs'.replace('{subscriberId}', subscriberId);
1636
1640
  const payload = {};
@@ -1681,10 +1685,10 @@ export class Messaging {
1681
1685
  */
1682
1686
  async createTopic(topicId, name, subscribe) {
1683
1687
  if (typeof topicId === 'undefined') {
1684
- throw new AppcondaException('Missing required parameter: "topicId"');
1688
+ throw new client_1.AppcondaException('Missing required parameter: "topicId"');
1685
1689
  }
1686
1690
  if (typeof name === 'undefined') {
1687
- throw new AppcondaException('Missing required parameter: "name"');
1691
+ throw new client_1.AppcondaException('Missing required parameter: "name"');
1688
1692
  }
1689
1693
  const apiPath = '/messaging/topics';
1690
1694
  const payload = {};
@@ -1715,7 +1719,7 @@ export class Messaging {
1715
1719
  */
1716
1720
  async getTopic(topicId) {
1717
1721
  if (typeof topicId === 'undefined') {
1718
- throw new AppcondaException('Missing required parameter: "topicId"');
1722
+ throw new client_1.AppcondaException('Missing required parameter: "topicId"');
1719
1723
  }
1720
1724
  const apiPath = '/messaging/topics/{topicId}'.replace('{topicId}', topicId);
1721
1725
  const payload = {};
@@ -1739,7 +1743,7 @@ export class Messaging {
1739
1743
  */
1740
1744
  async updateTopic(topicId, name, subscribe) {
1741
1745
  if (typeof topicId === 'undefined') {
1742
- throw new AppcondaException('Missing required parameter: "topicId"');
1746
+ throw new client_1.AppcondaException('Missing required parameter: "topicId"');
1743
1747
  }
1744
1748
  const apiPath = '/messaging/topics/{topicId}'.replace('{topicId}', topicId);
1745
1749
  const payload = {};
@@ -1766,7 +1770,7 @@ export class Messaging {
1766
1770
  */
1767
1771
  async deleteTopic(topicId) {
1768
1772
  if (typeof topicId === 'undefined') {
1769
- throw new AppcondaException('Missing required parameter: "topicId"');
1773
+ throw new client_1.AppcondaException('Missing required parameter: "topicId"');
1770
1774
  }
1771
1775
  const apiPath = '/messaging/topics/{topicId}'.replace('{topicId}', topicId);
1772
1776
  const payload = {};
@@ -1788,7 +1792,7 @@ export class Messaging {
1788
1792
  */
1789
1793
  async listTopicLogs(topicId, queries) {
1790
1794
  if (typeof topicId === 'undefined') {
1791
- throw new AppcondaException('Missing required parameter: "topicId"');
1795
+ throw new client_1.AppcondaException('Missing required parameter: "topicId"');
1792
1796
  }
1793
1797
  const apiPath = '/messaging/topics/{topicId}/logs'.replace('{topicId}', topicId);
1794
1798
  const payload = {};
@@ -1814,7 +1818,7 @@ export class Messaging {
1814
1818
  */
1815
1819
  async listSubscribers(topicId, queries, search) {
1816
1820
  if (typeof topicId === 'undefined') {
1817
- throw new AppcondaException('Missing required parameter: "topicId"');
1821
+ throw new client_1.AppcondaException('Missing required parameter: "topicId"');
1818
1822
  }
1819
1823
  const apiPath = '/messaging/topics/{topicId}/subscribers'.replace('{topicId}', topicId);
1820
1824
  const payload = {};
@@ -1843,13 +1847,13 @@ export class Messaging {
1843
1847
  */
1844
1848
  async createSubscriber(topicId, subscriberId, targetId) {
1845
1849
  if (typeof topicId === 'undefined') {
1846
- throw new AppcondaException('Missing required parameter: "topicId"');
1850
+ throw new client_1.AppcondaException('Missing required parameter: "topicId"');
1847
1851
  }
1848
1852
  if (typeof subscriberId === 'undefined') {
1849
- throw new AppcondaException('Missing required parameter: "subscriberId"');
1853
+ throw new client_1.AppcondaException('Missing required parameter: "subscriberId"');
1850
1854
  }
1851
1855
  if (typeof targetId === 'undefined') {
1852
- throw new AppcondaException('Missing required parameter: "targetId"');
1856
+ throw new client_1.AppcondaException('Missing required parameter: "targetId"');
1853
1857
  }
1854
1858
  const apiPath = '/messaging/topics/{topicId}/subscribers'.replace('{topicId}', topicId);
1855
1859
  const payload = {};
@@ -1878,10 +1882,10 @@ export class Messaging {
1878
1882
  */
1879
1883
  async getSubscriber(topicId, subscriberId) {
1880
1884
  if (typeof topicId === 'undefined') {
1881
- throw new AppcondaException('Missing required parameter: "topicId"');
1885
+ throw new client_1.AppcondaException('Missing required parameter: "topicId"');
1882
1886
  }
1883
1887
  if (typeof subscriberId === 'undefined') {
1884
- throw new AppcondaException('Missing required parameter: "subscriberId"');
1888
+ throw new client_1.AppcondaException('Missing required parameter: "subscriberId"');
1885
1889
  }
1886
1890
  const apiPath = '/messaging/topics/{topicId}/subscribers/{subscriberId}'.replace('{topicId}', topicId).replace('{subscriberId}', subscriberId);
1887
1891
  const payload = {};
@@ -1903,10 +1907,10 @@ export class Messaging {
1903
1907
  */
1904
1908
  async deleteSubscriber(topicId, subscriberId) {
1905
1909
  if (typeof topicId === 'undefined') {
1906
- throw new AppcondaException('Missing required parameter: "topicId"');
1910
+ throw new client_1.AppcondaException('Missing required parameter: "topicId"');
1907
1911
  }
1908
1912
  if (typeof subscriberId === 'undefined') {
1909
- throw new AppcondaException('Missing required parameter: "subscriberId"');
1913
+ throw new client_1.AppcondaException('Missing required parameter: "subscriberId"');
1910
1914
  }
1911
1915
  const apiPath = '/messaging/topics/{topicId}/subscribers/{subscriberId}'.replace('{topicId}', topicId).replace('{subscriberId}', subscriberId);
1912
1916
  const payload = {};
@@ -1917,3 +1921,4 @@ export class Messaging {
1917
1921
  return await this.client.call('delete', uri, apiHeaders, payload);
1918
1922
  }
1919
1923
  }
1924
+ exports.Messaging = Messaging;
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
3
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
4
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -7,9 +8,11 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
7
8
  var __metadata = (this && this.__metadata) || function (k, v) {
8
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
10
  };
10
- import { Cache } from "decorators/Cache";
11
- import { ServiceClient } from "../service-client";
12
- export class Node extends ServiceClient {
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.Node = void 0;
13
+ const Cache_1 = require("decorators/Cache");
14
+ const service_client_1 = require("../service-client");
15
+ class Node extends service_client_1.ServiceClient {
13
16
  getServiceName() {
14
17
  return 'com.appconda.service.node';
15
18
  }
@@ -18,8 +21,9 @@ export class Node extends ServiceClient {
18
21
  return await this.actionCall('GetAllNodes', payload);
19
22
  }
20
23
  }
24
+ exports.Node = Node;
21
25
  __decorate([
22
- Cache(),
26
+ (0, Cache_1.Cache)(),
23
27
  __metadata("design:type", Function),
24
28
  __metadata("design:paramtypes", [Boolean]),
25
29
  __metadata("design:returntype", Promise)
@@ -1,11 +1,15 @@
1
- import { AppcondaException } from "../client";
2
- export class Permissions {
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Permissions = void 0;
4
+ const client_1 = require("../client");
5
+ class Permissions {
6
+ client;
3
7
  constructor(client) {
4
8
  this.client = client;
5
9
  }
6
10
  async get(permissionId) {
7
11
  if (typeof permissionId === 'undefined') {
8
- throw new AppcondaException('Missing required parameter: "permissionId"');
12
+ throw new client_1.AppcondaException('Missing required parameter: "permissionId"');
9
13
  }
10
14
  const apiPath = '/permissions/{permissionId}'.replace('{permissionId}', permissionId);
11
15
  const payload = {};
@@ -28,13 +32,13 @@ export class Permissions {
28
32
  */
29
33
  async create({ $id, name, description, type }) {
30
34
  if (typeof $id === 'undefined') {
31
- throw new AppcondaException('Missing required parameter: "roleId"');
35
+ throw new client_1.AppcondaException('Missing required parameter: "roleId"');
32
36
  }
33
37
  if (typeof name === 'undefined') {
34
- throw new AppcondaException('Missing required parameter: "name"');
38
+ throw new client_1.AppcondaException('Missing required parameter: "name"');
35
39
  }
36
40
  if (typeof description === 'undefined') {
37
- throw new AppcondaException('Missing required parameter: "description"');
41
+ throw new client_1.AppcondaException('Missing required parameter: "description"');
38
42
  }
39
43
  const apiPath = '/permission';
40
44
  const payload = {};
@@ -73,7 +77,7 @@ export class Permissions {
73
77
  }
74
78
  async listPermissionInRoles(permissionId) {
75
79
  if (typeof permissionId === 'undefined') {
76
- throw new AppcondaException('Missing required parameter: "permissionId"');
80
+ throw new client_1.AppcondaException('Missing required parameter: "permissionId"');
77
81
  }
78
82
  const apiPath = '/permission/in-roles/{permissionId}'.replace('{permissionId}', permissionId);
79
83
  const payload = {};
@@ -87,3 +91,4 @@ export class Permissions {
87
91
  return await this.client.call('get', uri, apiHeaders, payload);
88
92
  }
89
93
  }
94
+ exports.Permissions = Permissions;
@@ -1,5 +1,8 @@
1
- import { ServiceClient } from "../service-client";
2
- export class Pricing extends ServiceClient {
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Pricing = void 0;
4
+ const service_client_1 = require("../service-client");
5
+ class Pricing extends service_client_1.ServiceClient {
3
6
  getServiceName() {
4
7
  return 'com.appconda.service.pricing';
5
8
  }
@@ -18,3 +21,4 @@ export class Pricing extends ServiceClient {
18
21
  return await this.actionCall('CreatePlans', payload);
19
22
  }
20
23
  }
24
+ exports.Pricing = Pricing;