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