@appconda/nextjs 1.0.50 → 1.0.52
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions/actionClient.d.ts +4 -1
- package/dist/actions/actionClient.js +6 -3
- package/dist/actions/index.js +17 -1
- package/dist/actions/nodes.d.ts +4 -1
- package/dist/actions/nodes.js +7 -4
- package/dist/client.js +16 -11
- package/dist/decorators/Cache.js +7 -4
- package/dist/decorators/CacheKey.js +4 -1
- package/dist/decorators/Invalidate.js +7 -4
- package/dist/enums/api-service.js +5 -2
- package/dist/enums/api.js +5 -2
- package/dist/enums/auth-method.js +5 -2
- package/dist/enums/authentication-factor.js +5 -2
- package/dist/enums/authenticator-type.js +5 -2
- package/dist/enums/browser.js +5 -2
- package/dist/enums/compression.js +5 -2
- package/dist/enums/credit-card.js +5 -2
- package/dist/enums/database-usage-range.js +5 -2
- package/dist/enums/email-template-locale.js +5 -2
- package/dist/enums/email-template-type.js +5 -2
- package/dist/enums/entities/EntityLimitType.js +5 -2
- package/dist/enums/entities/PropertyAttributeName.js +5 -2
- package/dist/enums/entities/PropertyCondition.js +5 -2
- package/dist/enums/entities/PropertyType.js +5 -2
- package/dist/enums/entities/PropertyValueType.js +5 -2
- package/dist/enums/entities/RowAccess.js +4 -1
- package/dist/enums/entities/ViewFilterCondition.js +5 -2
- package/dist/enums/execution-method.js +5 -2
- package/dist/enums/flag.js +5 -2
- package/dist/enums/function-usage-range.js +5 -2
- package/dist/enums/image-format.js +5 -2
- package/dist/enums/image-gravity.js +5 -2
- package/dist/enums/index-type.js +5 -2
- package/dist/enums/messaging-provider-type.js +5 -2
- package/dist/enums/name.js +5 -2
- package/dist/enums/o-auth-provider copy.js +5 -2
- package/dist/enums/o-auth-provider.js +5 -2
- package/dist/enums/password-hash.js +5 -2
- package/dist/enums/platform-type.js +5 -2
- package/dist/enums/project-usage-range.js +5 -2
- package/dist/enums/region.js +5 -2
- package/dist/enums/relation-mutate.js +5 -2
- package/dist/enums/relationship-type.js +5 -2
- package/dist/enums/resource-type.js +5 -2
- package/dist/enums/runtime.js +5 -2
- package/dist/enums/s-m-t-p-secure.js +5 -2
- package/dist/enums/shared/ApplicationLayout.js +5 -2
- package/dist/enums/shared/Colors.js +5 -2
- package/dist/enums/shared/InputType.js +5 -2
- package/dist/enums/shared/Periodicity.js +5 -2
- package/dist/enums/shared/SvgIcon.js +5 -2
- package/dist/enums/shared/Theme.js +5 -2
- package/dist/enums/sms-template-locale.js +5 -2
- package/dist/enums/sms-template-type.js +5 -2
- package/dist/enums/smtp-encryption.js +5 -2
- package/dist/enums/storage-usage-range.js +5 -2
- package/dist/enums/subscriptions/PricingModel.d.ts +1 -1
- package/dist/enums/subscriptions/PricingModel.js +7 -4
- package/dist/enums/subscriptions/SubscriptionBillingPeriod.d.ts +1 -1
- package/dist/enums/subscriptions/SubscriptionBillingPeriod.js +7 -4
- package/dist/enums/subscriptions/SubscriptionFeatureLimitType.d.ts +1 -1
- package/dist/enums/subscriptions/SubscriptionFeatureLimitType.js +7 -4
- package/dist/enums/subscriptions/SubscriptionPriceType.d.ts +1 -1
- package/dist/enums/subscriptions/SubscriptionPriceType.js +7 -4
- package/dist/enums/tenants/LinkedAccountStatus.js +5 -2
- package/dist/enums/tenants/TenantUserJoined.js +5 -2
- package/dist/enums/tenants/TenantUserStatus.js +5 -2
- package/dist/enums/tenants/TenantUserType.js +5 -2
- package/dist/enums/user-usage-range.js +5 -2
- package/dist/getAppcondaClient.js +6 -3
- package/dist/getSDKForCurrentUser.js +40 -37
- package/dist/id.js +5 -1
- package/dist/index.js +91 -37
- package/dist/inputFile.d.ts +0 -1
- package/dist/inputFile.js +10 -6
- package/dist/lib/Cache/Adapter.js +2 -1
- package/dist/lib/Cache/Adapters/Filesystem.js +5 -1
- package/dist/lib/Cache/Adapters/Memory.js +5 -1
- package/dist/lib/Cache/Adapters/None.js +5 -1
- package/dist/lib/Cache/Adapters/Sharding.js +5 -1
- package/dist/lib/Cache/Cache.js +5 -1
- package/dist/lib/Cache/index.js +20 -4
- package/dist/lib/Cache/test.d.ts +1 -0
- package/dist/lib/Cache/test.js +2 -0
- package/dist/lib/Registry/Registry.js +5 -1
- package/dist/lib/Registry/index.js +17 -1
- package/dist/lib/Services.d.ts +2 -1
- package/dist/lib/Services.js +12 -8
- package/dist/models.js +2 -1
- package/dist/modules/index.js +17 -1
- package/dist/modules/waitlist/action.d.ts +29 -3
- package/dist/modules/waitlist/action.js +14 -11
- package/dist/modules/waitlist/index.js +19 -3
- package/dist/modules/waitlist/schema.d.ts +15 -2
- package/dist/modules/waitlist/schema.js +8 -5
- package/dist/modules/waitlist/service.js +6 -2
- package/dist/modules/waitlist/types.js +2 -1
- package/dist/permission.js +5 -1
- package/dist/query.js +5 -1
- package/dist/role.js +5 -1
- package/dist/schemas/nodes.d.ts +1 -0
- package/dist/schemas/nodes.js +2 -0
- package/dist/service-client.js +5 -1
- package/dist/service.js +5 -1
- package/dist/services/account.js +62 -58
- package/dist/services/applets.js +8 -4
- package/dist/services/avatars.js +12 -8
- package/dist/services/community.js +9 -5
- package/dist/services/configuration.js +6 -2
- package/dist/services/databases.js +154 -150
- package/dist/services/functions.js +46 -42
- package/dist/services/graphql.js +8 -4
- package/dist/services/health.js +7 -3
- package/dist/services/locale.js +5 -1
- package/dist/services/messaging.js +70 -66
- package/dist/services/node.js +8 -4
- package/dist/services/permissions.js +11 -7
- package/dist/services/pricing.js +6 -2
- package/dist/services/projects.js +117 -113
- package/dist/services/roles.js +10 -6
- package/dist/services/schema.js +9 -5
- package/dist/services/storage.js +28 -24
- package/dist/services/subscription.js +6 -2
- package/dist/services/teams.js +29 -25
- package/dist/services/tenant-subscription.js +9 -5
- package/dist/services/tenant.js +13 -9
- package/dist/services/users.js +86 -82
- package/package.json +1 -1
- package/tsconfig.json +3 -2
@@ -1,5 +1,8 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.Messaging = void 0;
|
4
|
+
const client_1 = require("../client");
|
5
|
+
class Messaging {
|
3
6
|
constructor(client) {
|
4
7
|
this.client = client;
|
5
8
|
}
|
@@ -50,13 +53,13 @@ export class Messaging {
|
|
50
53
|
*/
|
51
54
|
async createEmail(messageId, subject, content, topics, users, targets, cc, bcc, attachments, draft, html, scheduledAt) {
|
52
55
|
if (typeof messageId === 'undefined') {
|
53
|
-
throw new AppcondaException('Missing required parameter: "messageId"');
|
56
|
+
throw new client_1.AppcondaException('Missing required parameter: "messageId"');
|
54
57
|
}
|
55
58
|
if (typeof subject === 'undefined') {
|
56
|
-
throw new AppcondaException('Missing required parameter: "subject"');
|
59
|
+
throw new client_1.AppcondaException('Missing required parameter: "subject"');
|
57
60
|
}
|
58
61
|
if (typeof content === 'undefined') {
|
59
|
-
throw new AppcondaException('Missing required parameter: "content"');
|
62
|
+
throw new client_1.AppcondaException('Missing required parameter: "content"');
|
60
63
|
}
|
61
64
|
const apiPath = '/messaging/messages/email';
|
62
65
|
const payload = {};
|
@@ -125,7 +128,7 @@ export class Messaging {
|
|
125
128
|
*/
|
126
129
|
async updateEmail(messageId, topics, users, targets, subject, content, draft, html, cc, bcc, scheduledAt, attachments) {
|
127
130
|
if (typeof messageId === 'undefined') {
|
128
|
-
throw new AppcondaException('Missing required parameter: "messageId"');
|
131
|
+
throw new client_1.AppcondaException('Missing required parameter: "messageId"');
|
129
132
|
}
|
130
133
|
const apiPath = '/messaging/messages/email/{messageId}'.replace('{messageId}', messageId);
|
131
134
|
const payload = {};
|
@@ -194,13 +197,13 @@ export class Messaging {
|
|
194
197
|
*/
|
195
198
|
async createPush(messageId, title, body, topics, users, targets, data, action, image, icon, sound, color, tag, badge, draft, scheduledAt) {
|
196
199
|
if (typeof messageId === 'undefined') {
|
197
|
-
throw new AppcondaException('Missing required parameter: "messageId"');
|
200
|
+
throw new client_1.AppcondaException('Missing required parameter: "messageId"');
|
198
201
|
}
|
199
202
|
if (typeof title === 'undefined') {
|
200
|
-
throw new AppcondaException('Missing required parameter: "title"');
|
203
|
+
throw new client_1.AppcondaException('Missing required parameter: "title"');
|
201
204
|
}
|
202
205
|
if (typeof body === 'undefined') {
|
203
|
-
throw new AppcondaException('Missing required parameter: "body"');
|
206
|
+
throw new client_1.AppcondaException('Missing required parameter: "body"');
|
204
207
|
}
|
205
208
|
const apiPath = '/messaging/messages/push';
|
206
209
|
const payload = {};
|
@@ -285,7 +288,7 @@ export class Messaging {
|
|
285
288
|
*/
|
286
289
|
async updatePush(messageId, topics, users, targets, title, body, data, action, image, icon, sound, color, tag, badge, draft, scheduledAt) {
|
287
290
|
if (typeof messageId === 'undefined') {
|
288
|
-
throw new AppcondaException('Missing required parameter: "messageId"');
|
291
|
+
throw new client_1.AppcondaException('Missing required parameter: "messageId"');
|
289
292
|
}
|
290
293
|
const apiPath = '/messaging/messages/push/{messageId}'.replace('{messageId}', messageId);
|
291
294
|
const payload = {};
|
@@ -357,10 +360,10 @@ export class Messaging {
|
|
357
360
|
*/
|
358
361
|
async createSms(messageId, content, topics, users, targets, draft, scheduledAt) {
|
359
362
|
if (typeof messageId === 'undefined') {
|
360
|
-
throw new AppcondaException('Missing required parameter: "messageId"');
|
363
|
+
throw new client_1.AppcondaException('Missing required parameter: "messageId"');
|
361
364
|
}
|
362
365
|
if (typeof content === 'undefined') {
|
363
|
-
throw new AppcondaException('Missing required parameter: "content"');
|
366
|
+
throw new client_1.AppcondaException('Missing required parameter: "content"');
|
364
367
|
}
|
365
368
|
const apiPath = '/messaging/messages/sms';
|
366
369
|
const payload = {};
|
@@ -409,7 +412,7 @@ export class Messaging {
|
|
409
412
|
*/
|
410
413
|
async updateSms(messageId, topics, users, targets, content, draft, scheduledAt) {
|
411
414
|
if (typeof messageId === 'undefined') {
|
412
|
-
throw new AppcondaException('Missing required parameter: "messageId"');
|
415
|
+
throw new client_1.AppcondaException('Missing required parameter: "messageId"');
|
413
416
|
}
|
414
417
|
const apiPath = '/messaging/messages/sms/{messageId}'.replace('{messageId}', messageId);
|
415
418
|
const payload = {};
|
@@ -449,7 +452,7 @@ export class Messaging {
|
|
449
452
|
*/
|
450
453
|
async getMessage(messageId) {
|
451
454
|
if (typeof messageId === 'undefined') {
|
452
|
-
throw new AppcondaException('Missing required parameter: "messageId"');
|
455
|
+
throw new client_1.AppcondaException('Missing required parameter: "messageId"');
|
453
456
|
}
|
454
457
|
const apiPath = '/messaging/messages/{messageId}'.replace('{messageId}', messageId);
|
455
458
|
const payload = {};
|
@@ -470,7 +473,7 @@ export class Messaging {
|
|
470
473
|
*/
|
471
474
|
async delete(messageId) {
|
472
475
|
if (typeof messageId === 'undefined') {
|
473
|
-
throw new AppcondaException('Missing required parameter: "messageId"');
|
476
|
+
throw new client_1.AppcondaException('Missing required parameter: "messageId"');
|
474
477
|
}
|
475
478
|
const apiPath = '/messaging/messages/{messageId}'.replace('{messageId}', messageId);
|
476
479
|
const payload = {};
|
@@ -492,7 +495,7 @@ export class Messaging {
|
|
492
495
|
*/
|
493
496
|
async listMessageLogs(messageId, queries) {
|
494
497
|
if (typeof messageId === 'undefined') {
|
495
|
-
throw new AppcondaException('Missing required parameter: "messageId"');
|
498
|
+
throw new client_1.AppcondaException('Missing required parameter: "messageId"');
|
496
499
|
}
|
497
500
|
const apiPath = '/messaging/messages/{messageId}/logs'.replace('{messageId}', messageId);
|
498
501
|
const payload = {};
|
@@ -517,7 +520,7 @@ export class Messaging {
|
|
517
520
|
*/
|
518
521
|
async listTargets(messageId, queries) {
|
519
522
|
if (typeof messageId === 'undefined') {
|
520
|
-
throw new AppcondaException('Missing required parameter: "messageId"');
|
523
|
+
throw new client_1.AppcondaException('Missing required parameter: "messageId"');
|
521
524
|
}
|
522
525
|
const apiPath = '/messaging/messages/{messageId}/targets'.replace('{messageId}', messageId);
|
523
526
|
const payload = {};
|
@@ -573,10 +576,10 @@ export class Messaging {
|
|
573
576
|
*/
|
574
577
|
async createApnsProvider(providerId, name, authKey, authKeyId, teamId, bundleId, sandbox, enabled) {
|
575
578
|
if (typeof providerId === 'undefined') {
|
576
|
-
throw new AppcondaException('Missing required parameter: "providerId"');
|
579
|
+
throw new client_1.AppcondaException('Missing required parameter: "providerId"');
|
577
580
|
}
|
578
581
|
if (typeof name === 'undefined') {
|
579
|
-
throw new AppcondaException('Missing required parameter: "name"');
|
582
|
+
throw new client_1.AppcondaException('Missing required parameter: "name"');
|
580
583
|
}
|
581
584
|
const apiPath = '/messaging/providers/apns';
|
582
585
|
const payload = {};
|
@@ -628,7 +631,7 @@ export class Messaging {
|
|
628
631
|
*/
|
629
632
|
async updateApnsProvider(providerId, name, enabled, authKey, authKeyId, teamId, bundleId, sandbox) {
|
630
633
|
if (typeof providerId === 'undefined') {
|
631
|
-
throw new AppcondaException('Missing required parameter: "providerId"');
|
634
|
+
throw new client_1.AppcondaException('Missing required parameter: "providerId"');
|
632
635
|
}
|
633
636
|
const apiPath = '/messaging/providers/apns/{providerId}'.replace('{providerId}', providerId);
|
634
637
|
const payload = {};
|
@@ -673,10 +676,10 @@ export class Messaging {
|
|
673
676
|
*/
|
674
677
|
async createFcmProvider(providerId, name, serviceAccountJSON, enabled) {
|
675
678
|
if (typeof providerId === 'undefined') {
|
676
|
-
throw new AppcondaException('Missing required parameter: "providerId"');
|
679
|
+
throw new client_1.AppcondaException('Missing required parameter: "providerId"');
|
677
680
|
}
|
678
681
|
if (typeof name === 'undefined') {
|
679
|
-
throw new AppcondaException('Missing required parameter: "name"');
|
682
|
+
throw new client_1.AppcondaException('Missing required parameter: "name"');
|
680
683
|
}
|
681
684
|
const apiPath = '/messaging/providers/fcm';
|
682
685
|
const payload = {};
|
@@ -712,7 +715,7 @@ export class Messaging {
|
|
712
715
|
*/
|
713
716
|
async updateFcmProvider(providerId, name, enabled, serviceAccountJSON) {
|
714
717
|
if (typeof providerId === 'undefined') {
|
715
|
-
throw new AppcondaException('Missing required parameter: "providerId"');
|
718
|
+
throw new client_1.AppcondaException('Missing required parameter: "providerId"');
|
716
719
|
}
|
717
720
|
const apiPath = '/messaging/providers/fcm/{providerId}'.replace('{providerId}', providerId);
|
718
721
|
const payload = {};
|
@@ -751,10 +754,10 @@ export class Messaging {
|
|
751
754
|
*/
|
752
755
|
async createMailgunProvider(providerId, name, apiKey, domain, isEuRegion, fromName, fromEmail, replyToName, replyToEmail, enabled) {
|
753
756
|
if (typeof providerId === 'undefined') {
|
754
|
-
throw new AppcondaException('Missing required parameter: "providerId"');
|
757
|
+
throw new client_1.AppcondaException('Missing required parameter: "providerId"');
|
755
758
|
}
|
756
759
|
if (typeof name === 'undefined') {
|
757
|
-
throw new AppcondaException('Missing required parameter: "name"');
|
760
|
+
throw new client_1.AppcondaException('Missing required parameter: "name"');
|
758
761
|
}
|
759
762
|
const apiPath = '/messaging/providers/mailgun';
|
760
763
|
const payload = {};
|
@@ -814,7 +817,7 @@ export class Messaging {
|
|
814
817
|
*/
|
815
818
|
async updateMailgunProvider(providerId, name, apiKey, domain, isEuRegion, enabled, fromName, fromEmail, replyToName, replyToEmail) {
|
816
819
|
if (typeof providerId === 'undefined') {
|
817
|
-
throw new AppcondaException('Missing required parameter: "providerId"');
|
820
|
+
throw new client_1.AppcondaException('Missing required parameter: "providerId"');
|
818
821
|
}
|
819
822
|
const apiPath = '/messaging/providers/mailgun/{providerId}'.replace('{providerId}', providerId);
|
820
823
|
const payload = {};
|
@@ -867,10 +870,10 @@ export class Messaging {
|
|
867
870
|
*/
|
868
871
|
async createMsg91Provider(providerId, name, templateId, senderId, authKey, enabled) {
|
869
872
|
if (typeof providerId === 'undefined') {
|
870
|
-
throw new AppcondaException('Missing required parameter: "providerId"');
|
873
|
+
throw new client_1.AppcondaException('Missing required parameter: "providerId"');
|
871
874
|
}
|
872
875
|
if (typeof name === 'undefined') {
|
873
|
-
throw new AppcondaException('Missing required parameter: "name"');
|
876
|
+
throw new client_1.AppcondaException('Missing required parameter: "name"');
|
874
877
|
}
|
875
878
|
const apiPath = '/messaging/providers/msg91';
|
876
879
|
const payload = {};
|
@@ -914,7 +917,7 @@ export class Messaging {
|
|
914
917
|
*/
|
915
918
|
async updateMsg91Provider(providerId, name, enabled, templateId, senderId, authKey) {
|
916
919
|
if (typeof providerId === 'undefined') {
|
917
|
-
throw new AppcondaException('Missing required parameter: "providerId"');
|
920
|
+
throw new client_1.AppcondaException('Missing required parameter: "providerId"');
|
918
921
|
}
|
919
922
|
const apiPath = '/messaging/providers/msg91/{providerId}'.replace('{providerId}', providerId);
|
920
923
|
const payload = {};
|
@@ -957,10 +960,10 @@ export class Messaging {
|
|
957
960
|
*/
|
958
961
|
async createSendgridProvider(providerId, name, apiKey, fromName, fromEmail, replyToName, replyToEmail, enabled) {
|
959
962
|
if (typeof providerId === 'undefined') {
|
960
|
-
throw new AppcondaException('Missing required parameter: "providerId"');
|
963
|
+
throw new client_1.AppcondaException('Missing required parameter: "providerId"');
|
961
964
|
}
|
962
965
|
if (typeof name === 'undefined') {
|
963
|
-
throw new AppcondaException('Missing required parameter: "name"');
|
966
|
+
throw new client_1.AppcondaException('Missing required parameter: "name"');
|
964
967
|
}
|
965
968
|
const apiPath = '/messaging/providers/sendgrid';
|
966
969
|
const payload = {};
|
@@ -1012,7 +1015,7 @@ export class Messaging {
|
|
1012
1015
|
*/
|
1013
1016
|
async updateSendgridProvider(providerId, name, enabled, apiKey, fromName, fromEmail, replyToName, replyToEmail) {
|
1014
1017
|
if (typeof providerId === 'undefined') {
|
1015
|
-
throw new AppcondaException('Missing required parameter: "providerId"');
|
1018
|
+
throw new client_1.AppcondaException('Missing required parameter: "providerId"');
|
1016
1019
|
}
|
1017
1020
|
const apiPath = '/messaging/providers/sendgrid/{providerId}'.replace('{providerId}', providerId);
|
1018
1021
|
const payload = {};
|
@@ -1067,13 +1070,13 @@ export class Messaging {
|
|
1067
1070
|
*/
|
1068
1071
|
async createSmtpProvider(providerId, name, host, port, username, password, encryption, autoTLS, mailer, fromName, fromEmail, replyToName, replyToEmail, enabled) {
|
1069
1072
|
if (typeof providerId === 'undefined') {
|
1070
|
-
throw new AppcondaException('Missing required parameter: "providerId"');
|
1073
|
+
throw new client_1.AppcondaException('Missing required parameter: "providerId"');
|
1071
1074
|
}
|
1072
1075
|
if (typeof name === 'undefined') {
|
1073
|
-
throw new AppcondaException('Missing required parameter: "name"');
|
1076
|
+
throw new client_1.AppcondaException('Missing required parameter: "name"');
|
1074
1077
|
}
|
1075
1078
|
if (typeof host === 'undefined') {
|
1076
|
-
throw new AppcondaException('Missing required parameter: "host"');
|
1079
|
+
throw new client_1.AppcondaException('Missing required parameter: "host"');
|
1077
1080
|
}
|
1078
1081
|
const apiPath = '/messaging/providers/smtp';
|
1079
1082
|
const payload = {};
|
@@ -1149,7 +1152,7 @@ export class Messaging {
|
|
1149
1152
|
*/
|
1150
1153
|
async updateSmtpProvider(providerId, name, host, port, username, password, encryption, autoTLS, mailer, fromName, fromEmail, replyToName, replyToEmail, enabled) {
|
1151
1154
|
if (typeof providerId === 'undefined') {
|
1152
|
-
throw new AppcondaException('Missing required parameter: "providerId"');
|
1155
|
+
throw new client_1.AppcondaException('Missing required parameter: "providerId"');
|
1153
1156
|
}
|
1154
1157
|
const apiPath = '/messaging/providers/smtp/{providerId}'.replace('{providerId}', providerId);
|
1155
1158
|
const payload = {};
|
@@ -1214,10 +1217,10 @@ export class Messaging {
|
|
1214
1217
|
*/
|
1215
1218
|
async createTelesignProvider(providerId, name, from, customerId, apiKey, enabled) {
|
1216
1219
|
if (typeof providerId === 'undefined') {
|
1217
|
-
throw new AppcondaException('Missing required parameter: "providerId"');
|
1220
|
+
throw new client_1.AppcondaException('Missing required parameter: "providerId"');
|
1218
1221
|
}
|
1219
1222
|
if (typeof name === 'undefined') {
|
1220
|
-
throw new AppcondaException('Missing required parameter: "name"');
|
1223
|
+
throw new client_1.AppcondaException('Missing required parameter: "name"');
|
1221
1224
|
}
|
1222
1225
|
const apiPath = '/messaging/providers/telesign';
|
1223
1226
|
const payload = {};
|
@@ -1261,7 +1264,7 @@ export class Messaging {
|
|
1261
1264
|
*/
|
1262
1265
|
async updateTelesignProvider(providerId, name, enabled, customerId, apiKey, from) {
|
1263
1266
|
if (typeof providerId === 'undefined') {
|
1264
|
-
throw new AppcondaException('Missing required parameter: "providerId"');
|
1267
|
+
throw new client_1.AppcondaException('Missing required parameter: "providerId"');
|
1265
1268
|
}
|
1266
1269
|
const apiPath = '/messaging/providers/telesign/{providerId}'.replace('{providerId}', providerId);
|
1267
1270
|
const payload = {};
|
@@ -1302,10 +1305,10 @@ export class Messaging {
|
|
1302
1305
|
*/
|
1303
1306
|
async createTextmagicProvider(providerId, name, from, username, apiKey, enabled) {
|
1304
1307
|
if (typeof providerId === 'undefined') {
|
1305
|
-
throw new AppcondaException('Missing required parameter: "providerId"');
|
1308
|
+
throw new client_1.AppcondaException('Missing required parameter: "providerId"');
|
1306
1309
|
}
|
1307
1310
|
if (typeof name === 'undefined') {
|
1308
|
-
throw new AppcondaException('Missing required parameter: "name"');
|
1311
|
+
throw new client_1.AppcondaException('Missing required parameter: "name"');
|
1309
1312
|
}
|
1310
1313
|
const apiPath = '/messaging/providers/textmagic';
|
1311
1314
|
const payload = {};
|
@@ -1349,7 +1352,7 @@ export class Messaging {
|
|
1349
1352
|
*/
|
1350
1353
|
async updateTextmagicProvider(providerId, name, enabled, username, apiKey, from) {
|
1351
1354
|
if (typeof providerId === 'undefined') {
|
1352
|
-
throw new AppcondaException('Missing required parameter: "providerId"');
|
1355
|
+
throw new client_1.AppcondaException('Missing required parameter: "providerId"');
|
1353
1356
|
}
|
1354
1357
|
const apiPath = '/messaging/providers/textmagic/{providerId}'.replace('{providerId}', providerId);
|
1355
1358
|
const payload = {};
|
@@ -1390,10 +1393,10 @@ export class Messaging {
|
|
1390
1393
|
*/
|
1391
1394
|
async createTwilioProvider(providerId, name, from, accountSid, authToken, enabled) {
|
1392
1395
|
if (typeof providerId === 'undefined') {
|
1393
|
-
throw new AppcondaException('Missing required parameter: "providerId"');
|
1396
|
+
throw new client_1.AppcondaException('Missing required parameter: "providerId"');
|
1394
1397
|
}
|
1395
1398
|
if (typeof name === 'undefined') {
|
1396
|
-
throw new AppcondaException('Missing required parameter: "name"');
|
1399
|
+
throw new client_1.AppcondaException('Missing required parameter: "name"');
|
1397
1400
|
}
|
1398
1401
|
const apiPath = '/messaging/providers/twilio';
|
1399
1402
|
const payload = {};
|
@@ -1437,7 +1440,7 @@ export class Messaging {
|
|
1437
1440
|
*/
|
1438
1441
|
async updateTwilioProvider(providerId, name, enabled, accountSid, authToken, from) {
|
1439
1442
|
if (typeof providerId === 'undefined') {
|
1440
|
-
throw new AppcondaException('Missing required parameter: "providerId"');
|
1443
|
+
throw new client_1.AppcondaException('Missing required parameter: "providerId"');
|
1441
1444
|
}
|
1442
1445
|
const apiPath = '/messaging/providers/twilio/{providerId}'.replace('{providerId}', providerId);
|
1443
1446
|
const payload = {};
|
@@ -1478,10 +1481,10 @@ export class Messaging {
|
|
1478
1481
|
*/
|
1479
1482
|
async createVonageProvider(providerId, name, from, apiKey, apiSecret, enabled) {
|
1480
1483
|
if (typeof providerId === 'undefined') {
|
1481
|
-
throw new AppcondaException('Missing required parameter: "providerId"');
|
1484
|
+
throw new client_1.AppcondaException('Missing required parameter: "providerId"');
|
1482
1485
|
}
|
1483
1486
|
if (typeof name === 'undefined') {
|
1484
|
-
throw new AppcondaException('Missing required parameter: "name"');
|
1487
|
+
throw new client_1.AppcondaException('Missing required parameter: "name"');
|
1485
1488
|
}
|
1486
1489
|
const apiPath = '/messaging/providers/vonage';
|
1487
1490
|
const payload = {};
|
@@ -1525,7 +1528,7 @@ export class Messaging {
|
|
1525
1528
|
*/
|
1526
1529
|
async updateVonageProvider(providerId, name, enabled, apiKey, apiSecret, from) {
|
1527
1530
|
if (typeof providerId === 'undefined') {
|
1528
|
-
throw new AppcondaException('Missing required parameter: "providerId"');
|
1531
|
+
throw new client_1.AppcondaException('Missing required parameter: "providerId"');
|
1529
1532
|
}
|
1530
1533
|
const apiPath = '/messaging/providers/vonage/{providerId}'.replace('{providerId}', providerId);
|
1531
1534
|
const payload = {};
|
@@ -1562,7 +1565,7 @@ export class Messaging {
|
|
1562
1565
|
*/
|
1563
1566
|
async getProvider(providerId) {
|
1564
1567
|
if (typeof providerId === 'undefined') {
|
1565
|
-
throw new AppcondaException('Missing required parameter: "providerId"');
|
1568
|
+
throw new client_1.AppcondaException('Missing required parameter: "providerId"');
|
1566
1569
|
}
|
1567
1570
|
const apiPath = '/messaging/providers/{providerId}'.replace('{providerId}', providerId);
|
1568
1571
|
const payload = {};
|
@@ -1583,7 +1586,7 @@ export class Messaging {
|
|
1583
1586
|
*/
|
1584
1587
|
async deleteProvider(providerId) {
|
1585
1588
|
if (typeof providerId === 'undefined') {
|
1586
|
-
throw new AppcondaException('Missing required parameter: "providerId"');
|
1589
|
+
throw new client_1.AppcondaException('Missing required parameter: "providerId"');
|
1587
1590
|
}
|
1588
1591
|
const apiPath = '/messaging/providers/{providerId}'.replace('{providerId}', providerId);
|
1589
1592
|
const payload = {};
|
@@ -1605,7 +1608,7 @@ export class Messaging {
|
|
1605
1608
|
*/
|
1606
1609
|
async listProviderLogs(providerId, queries) {
|
1607
1610
|
if (typeof providerId === 'undefined') {
|
1608
|
-
throw new AppcondaException('Missing required parameter: "providerId"');
|
1611
|
+
throw new client_1.AppcondaException('Missing required parameter: "providerId"');
|
1609
1612
|
}
|
1610
1613
|
const apiPath = '/messaging/providers/{providerId}/logs'.replace('{providerId}', providerId);
|
1611
1614
|
const payload = {};
|
@@ -1630,7 +1633,7 @@ export class Messaging {
|
|
1630
1633
|
*/
|
1631
1634
|
async listSubscriberLogs(subscriberId, queries) {
|
1632
1635
|
if (typeof subscriberId === 'undefined') {
|
1633
|
-
throw new AppcondaException('Missing required parameter: "subscriberId"');
|
1636
|
+
throw new client_1.AppcondaException('Missing required parameter: "subscriberId"');
|
1634
1637
|
}
|
1635
1638
|
const apiPath = '/messaging/subscribers/{subscriberId}/logs'.replace('{subscriberId}', subscriberId);
|
1636
1639
|
const payload = {};
|
@@ -1681,10 +1684,10 @@ export class Messaging {
|
|
1681
1684
|
*/
|
1682
1685
|
async createTopic(topicId, name, subscribe) {
|
1683
1686
|
if (typeof topicId === 'undefined') {
|
1684
|
-
throw new AppcondaException('Missing required parameter: "topicId"');
|
1687
|
+
throw new client_1.AppcondaException('Missing required parameter: "topicId"');
|
1685
1688
|
}
|
1686
1689
|
if (typeof name === 'undefined') {
|
1687
|
-
throw new AppcondaException('Missing required parameter: "name"');
|
1690
|
+
throw new client_1.AppcondaException('Missing required parameter: "name"');
|
1688
1691
|
}
|
1689
1692
|
const apiPath = '/messaging/topics';
|
1690
1693
|
const payload = {};
|
@@ -1715,7 +1718,7 @@ export class Messaging {
|
|
1715
1718
|
*/
|
1716
1719
|
async getTopic(topicId) {
|
1717
1720
|
if (typeof topicId === 'undefined') {
|
1718
|
-
throw new AppcondaException('Missing required parameter: "topicId"');
|
1721
|
+
throw new client_1.AppcondaException('Missing required parameter: "topicId"');
|
1719
1722
|
}
|
1720
1723
|
const apiPath = '/messaging/topics/{topicId}'.replace('{topicId}', topicId);
|
1721
1724
|
const payload = {};
|
@@ -1739,7 +1742,7 @@ export class Messaging {
|
|
1739
1742
|
*/
|
1740
1743
|
async updateTopic(topicId, name, subscribe) {
|
1741
1744
|
if (typeof topicId === 'undefined') {
|
1742
|
-
throw new AppcondaException('Missing required parameter: "topicId"');
|
1745
|
+
throw new client_1.AppcondaException('Missing required parameter: "topicId"');
|
1743
1746
|
}
|
1744
1747
|
const apiPath = '/messaging/topics/{topicId}'.replace('{topicId}', topicId);
|
1745
1748
|
const payload = {};
|
@@ -1766,7 +1769,7 @@ export class Messaging {
|
|
1766
1769
|
*/
|
1767
1770
|
async deleteTopic(topicId) {
|
1768
1771
|
if (typeof topicId === 'undefined') {
|
1769
|
-
throw new AppcondaException('Missing required parameter: "topicId"');
|
1772
|
+
throw new client_1.AppcondaException('Missing required parameter: "topicId"');
|
1770
1773
|
}
|
1771
1774
|
const apiPath = '/messaging/topics/{topicId}'.replace('{topicId}', topicId);
|
1772
1775
|
const payload = {};
|
@@ -1788,7 +1791,7 @@ export class Messaging {
|
|
1788
1791
|
*/
|
1789
1792
|
async listTopicLogs(topicId, queries) {
|
1790
1793
|
if (typeof topicId === 'undefined') {
|
1791
|
-
throw new AppcondaException('Missing required parameter: "topicId"');
|
1794
|
+
throw new client_1.AppcondaException('Missing required parameter: "topicId"');
|
1792
1795
|
}
|
1793
1796
|
const apiPath = '/messaging/topics/{topicId}/logs'.replace('{topicId}', topicId);
|
1794
1797
|
const payload = {};
|
@@ -1814,7 +1817,7 @@ export class Messaging {
|
|
1814
1817
|
*/
|
1815
1818
|
async listSubscribers(topicId, queries, search) {
|
1816
1819
|
if (typeof topicId === 'undefined') {
|
1817
|
-
throw new AppcondaException('Missing required parameter: "topicId"');
|
1820
|
+
throw new client_1.AppcondaException('Missing required parameter: "topicId"');
|
1818
1821
|
}
|
1819
1822
|
const apiPath = '/messaging/topics/{topicId}/subscribers'.replace('{topicId}', topicId);
|
1820
1823
|
const payload = {};
|
@@ -1843,13 +1846,13 @@ export class Messaging {
|
|
1843
1846
|
*/
|
1844
1847
|
async createSubscriber(topicId, subscriberId, targetId) {
|
1845
1848
|
if (typeof topicId === 'undefined') {
|
1846
|
-
throw new AppcondaException('Missing required parameter: "topicId"');
|
1849
|
+
throw new client_1.AppcondaException('Missing required parameter: "topicId"');
|
1847
1850
|
}
|
1848
1851
|
if (typeof subscriberId === 'undefined') {
|
1849
|
-
throw new AppcondaException('Missing required parameter: "subscriberId"');
|
1852
|
+
throw new client_1.AppcondaException('Missing required parameter: "subscriberId"');
|
1850
1853
|
}
|
1851
1854
|
if (typeof targetId === 'undefined') {
|
1852
|
-
throw new AppcondaException('Missing required parameter: "targetId"');
|
1855
|
+
throw new client_1.AppcondaException('Missing required parameter: "targetId"');
|
1853
1856
|
}
|
1854
1857
|
const apiPath = '/messaging/topics/{topicId}/subscribers'.replace('{topicId}', topicId);
|
1855
1858
|
const payload = {};
|
@@ -1878,10 +1881,10 @@ export class Messaging {
|
|
1878
1881
|
*/
|
1879
1882
|
async getSubscriber(topicId, subscriberId) {
|
1880
1883
|
if (typeof topicId === 'undefined') {
|
1881
|
-
throw new AppcondaException('Missing required parameter: "topicId"');
|
1884
|
+
throw new client_1.AppcondaException('Missing required parameter: "topicId"');
|
1882
1885
|
}
|
1883
1886
|
if (typeof subscriberId === 'undefined') {
|
1884
|
-
throw new AppcondaException('Missing required parameter: "subscriberId"');
|
1887
|
+
throw new client_1.AppcondaException('Missing required parameter: "subscriberId"');
|
1885
1888
|
}
|
1886
1889
|
const apiPath = '/messaging/topics/{topicId}/subscribers/{subscriberId}'.replace('{topicId}', topicId).replace('{subscriberId}', subscriberId);
|
1887
1890
|
const payload = {};
|
@@ -1903,10 +1906,10 @@ export class Messaging {
|
|
1903
1906
|
*/
|
1904
1907
|
async deleteSubscriber(topicId, subscriberId) {
|
1905
1908
|
if (typeof topicId === 'undefined') {
|
1906
|
-
throw new AppcondaException('Missing required parameter: "topicId"');
|
1909
|
+
throw new client_1.AppcondaException('Missing required parameter: "topicId"');
|
1907
1910
|
}
|
1908
1911
|
if (typeof subscriberId === 'undefined') {
|
1909
|
-
throw new AppcondaException('Missing required parameter: "subscriberId"');
|
1912
|
+
throw new client_1.AppcondaException('Missing required parameter: "subscriberId"');
|
1910
1913
|
}
|
1911
1914
|
const apiPath = '/messaging/topics/{topicId}/subscribers/{subscriberId}'.replace('{topicId}', topicId).replace('{subscriberId}', subscriberId);
|
1912
1915
|
const payload = {};
|
@@ -1917,3 +1920,4 @@ export class Messaging {
|
|
1917
1920
|
return await this.client.call('delete', uri, apiHeaders, payload);
|
1918
1921
|
}
|
1919
1922
|
}
|
1923
|
+
exports.Messaging = Messaging;
|
package/dist/services/node.js
CHANGED
@@ -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
|
-
|
11
|
-
|
12
|
-
|
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,14 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.Permissions = void 0;
|
4
|
+
const client_1 = require("../client");
|
5
|
+
class Permissions {
|
3
6
|
constructor(client) {
|
4
7
|
this.client = client;
|
5
8
|
}
|
6
9
|
async get(permissionId) {
|
7
10
|
if (typeof permissionId === 'undefined') {
|
8
|
-
throw new AppcondaException('Missing required parameter: "permissionId"');
|
11
|
+
throw new client_1.AppcondaException('Missing required parameter: "permissionId"');
|
9
12
|
}
|
10
13
|
const apiPath = '/permissions/{permissionId}'.replace('{permissionId}', permissionId);
|
11
14
|
const payload = {};
|
@@ -28,13 +31,13 @@ export class Permissions {
|
|
28
31
|
*/
|
29
32
|
async create({ $id, name, description, type }) {
|
30
33
|
if (typeof $id === 'undefined') {
|
31
|
-
throw new AppcondaException('Missing required parameter: "roleId"');
|
34
|
+
throw new client_1.AppcondaException('Missing required parameter: "roleId"');
|
32
35
|
}
|
33
36
|
if (typeof name === 'undefined') {
|
34
|
-
throw new AppcondaException('Missing required parameter: "name"');
|
37
|
+
throw new client_1.AppcondaException('Missing required parameter: "name"');
|
35
38
|
}
|
36
39
|
if (typeof description === 'undefined') {
|
37
|
-
throw new AppcondaException('Missing required parameter: "description"');
|
40
|
+
throw new client_1.AppcondaException('Missing required parameter: "description"');
|
38
41
|
}
|
39
42
|
const apiPath = '/permission';
|
40
43
|
const payload = {};
|
@@ -73,7 +76,7 @@ export class Permissions {
|
|
73
76
|
}
|
74
77
|
async listPermissionInRoles(permissionId) {
|
75
78
|
if (typeof permissionId === 'undefined') {
|
76
|
-
throw new AppcondaException('Missing required parameter: "permissionId"');
|
79
|
+
throw new client_1.AppcondaException('Missing required parameter: "permissionId"');
|
77
80
|
}
|
78
81
|
const apiPath = '/permission/in-roles/{permissionId}'.replace('{permissionId}', permissionId);
|
79
82
|
const payload = {};
|
@@ -87,3 +90,4 @@ export class Permissions {
|
|
87
90
|
return await this.client.call('get', uri, apiHeaders, payload);
|
88
91
|
}
|
89
92
|
}
|
93
|
+
exports.Permissions = Permissions;
|
package/dist/services/pricing.js
CHANGED
@@ -1,5 +1,8 @@
|
|
1
|
-
|
2
|
-
|
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;
|