@revenexx/sdk 0.0.2 → 0.0.5
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/cjs/sdk.js +13496 -3442
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +13467 -3443
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +13496 -3442
- package/package.json +1 -1
- package/src/client.ts +1 -1
- package/src/enums/address-type.ts +4 -0
- package/src/enums/cart-export-format.ts +4 -0
- package/src/enums/cart-io-apply-mode.ts +5 -0
- package/src/enums/cart-io-direction.ts +4 -0
- package/src/enums/cart-io-entity.ts +4 -0
- package/src/enums/cart-io-format.ts +4 -0
- package/src/enums/cart-item-type.ts +5 -0
- package/src/enums/channel-status.ts +4 -0
- package/src/enums/channel-type.ts +7 -0
- package/src/enums/contact-role.ts +6 -0
- package/src/enums/contact-status.ts +5 -0
- package/src/enums/location-type.ts +6 -0
- package/src/enums/market-status.ts +4 -0
- package/src/enums/order-comment-visibility.ts +4 -0
- package/src/enums/order-item-type.ts +5 -0
- package/src/enums/order-payment-status.ts +9 -0
- package/src/enums/organization-status.ts +4 -0
- package/src/enums/page-status.ts +5 -0
- package/src/enums/payment-fee-type.ts +5 -0
- package/src/enums/payment-method-kind.ts +4 -0
- package/src/enums/price-entry-type.ts +4 -0
- package/src/enums/price-list-status.ts +4 -0
- package/src/enums/shipping-method-matrix-basis.ts +6 -0
- package/src/enums/shipping-method-pricing-type.ts +5 -0
- package/src/index.ts +30 -0
- package/src/models.ts +5628 -410
- package/src/services/apps.ts +154 -154
- package/src/services/avatars.ts +57 -57
- package/src/services/carts.ts +739 -104
- package/src/services/channels.ts +147 -19
- package/src/services/customers.ts +801 -69
- package/src/services/greetings.ts +18 -18
- package/src/services/inventories.ts +1278 -0
- package/src/services/locale.ts +16 -16
- package/src/services/markets.ts +373 -75
- package/src/services/messaging.ts +273 -273
- package/src/services/orders.ts +1648 -0
- package/src/services/pages.ts +2317 -0
- package/src/services/payments.ts +1334 -0
- package/src/services/prices.ts +1036 -0
- package/src/services/products.ts +1836 -272
- package/src/services/search.ts +24 -24
- package/src/services/shipping.ts +956 -0
- package/src/services/sites.ts +116 -116
- package/src/services/storage.ts +72 -72
- package/src/services/tokens.ts +14 -14
- package/types/enums/address-type.d.ts +4 -0
- package/types/enums/cart-export-format.d.ts +4 -0
- package/types/enums/cart-io-apply-mode.d.ts +5 -0
- package/types/enums/cart-io-direction.d.ts +4 -0
- package/types/enums/cart-io-entity.d.ts +4 -0
- package/types/enums/cart-io-format.d.ts +4 -0
- package/types/enums/cart-item-type.d.ts +5 -0
- package/types/enums/channel-status.d.ts +4 -0
- package/types/enums/channel-type.d.ts +7 -0
- package/types/enums/contact-role.d.ts +6 -0
- package/types/enums/contact-status.d.ts +5 -0
- package/types/enums/location-type.d.ts +6 -0
- package/types/enums/market-status.d.ts +4 -0
- package/types/enums/order-comment-visibility.d.ts +4 -0
- package/types/enums/order-item-type.d.ts +5 -0
- package/types/enums/order-payment-status.d.ts +9 -0
- package/types/enums/organization-status.d.ts +4 -0
- package/types/enums/page-status.d.ts +5 -0
- package/types/enums/payment-fee-type.d.ts +5 -0
- package/types/enums/payment-method-kind.d.ts +4 -0
- package/types/enums/price-entry-type.d.ts +4 -0
- package/types/enums/price-list-status.d.ts +4 -0
- package/types/enums/shipping-method-matrix-basis.d.ts +6 -0
- package/types/enums/shipping-method-pricing-type.d.ts +5 -0
- package/types/index.d.ts +30 -0
- package/types/models.d.ts +5470 -404
- package/types/services/carts.d.ts +271 -12
- package/types/services/channels.d.ts +54 -2
- package/types/services/customers.d.ts +295 -12
- package/types/services/inventories.d.ts +440 -0
- package/types/services/markets.d.ts +123 -6
- package/types/services/orders.d.ts +590 -0
- package/types/services/pages.d.ts +792 -0
- package/types/services/payments.d.ts +480 -0
- package/types/services/prices.d.ts +384 -0
- package/types/services/products.d.ts +646 -32
- package/types/services/shipping.d.ts +351 -0
|
@@ -54,15 +54,15 @@ export class Messaging {
|
|
|
54
54
|
|
|
55
55
|
|
|
56
56
|
const apiPath = '/v1/messaging/messages';
|
|
57
|
-
const
|
|
57
|
+
const apiPayload: Payload = {};
|
|
58
58
|
if (typeof queries !== 'undefined') {
|
|
59
|
-
|
|
59
|
+
apiPayload['queries'] = queries;
|
|
60
60
|
}
|
|
61
61
|
if (typeof search !== 'undefined') {
|
|
62
|
-
|
|
62
|
+
apiPayload['search'] = search;
|
|
63
63
|
}
|
|
64
64
|
if (typeof total !== 'undefined') {
|
|
65
|
-
|
|
65
|
+
apiPayload['total'] = total;
|
|
66
66
|
}
|
|
67
67
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
68
68
|
|
|
@@ -73,7 +73,7 @@ export class Messaging {
|
|
|
73
73
|
'get',
|
|
74
74
|
uri,
|
|
75
75
|
apiHeaders,
|
|
76
|
-
|
|
76
|
+
apiPayload
|
|
77
77
|
);
|
|
78
78
|
}
|
|
79
79
|
|
|
@@ -165,42 +165,42 @@ export class Messaging {
|
|
|
165
165
|
}
|
|
166
166
|
|
|
167
167
|
const apiPath = '/v1/messaging/messages/email';
|
|
168
|
-
const
|
|
168
|
+
const apiPayload: Payload = {};
|
|
169
169
|
if (typeof attachments !== 'undefined') {
|
|
170
|
-
|
|
170
|
+
apiPayload['attachments'] = attachments;
|
|
171
171
|
}
|
|
172
172
|
if (typeof bcc !== 'undefined') {
|
|
173
|
-
|
|
173
|
+
apiPayload['bcc'] = bcc;
|
|
174
174
|
}
|
|
175
175
|
if (typeof cc !== 'undefined') {
|
|
176
|
-
|
|
176
|
+
apiPayload['cc'] = cc;
|
|
177
177
|
}
|
|
178
178
|
if (typeof content !== 'undefined') {
|
|
179
|
-
|
|
179
|
+
apiPayload['content'] = content;
|
|
180
180
|
}
|
|
181
181
|
if (typeof draft !== 'undefined') {
|
|
182
|
-
|
|
182
|
+
apiPayload['draft'] = draft;
|
|
183
183
|
}
|
|
184
184
|
if (typeof html !== 'undefined') {
|
|
185
|
-
|
|
185
|
+
apiPayload['html'] = html;
|
|
186
186
|
}
|
|
187
187
|
if (typeof messageId !== 'undefined') {
|
|
188
|
-
|
|
188
|
+
apiPayload['messageId'] = messageId;
|
|
189
189
|
}
|
|
190
190
|
if (typeof scheduledAt !== 'undefined') {
|
|
191
|
-
|
|
191
|
+
apiPayload['scheduledAt'] = scheduledAt;
|
|
192
192
|
}
|
|
193
193
|
if (typeof subject !== 'undefined') {
|
|
194
|
-
|
|
194
|
+
apiPayload['subject'] = subject;
|
|
195
195
|
}
|
|
196
196
|
if (typeof targets !== 'undefined') {
|
|
197
|
-
|
|
197
|
+
apiPayload['targets'] = targets;
|
|
198
198
|
}
|
|
199
199
|
if (typeof topics !== 'undefined') {
|
|
200
|
-
|
|
200
|
+
apiPayload['topics'] = topics;
|
|
201
201
|
}
|
|
202
202
|
if (typeof users !== 'undefined') {
|
|
203
|
-
|
|
203
|
+
apiPayload['users'] = users;
|
|
204
204
|
}
|
|
205
205
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
206
206
|
|
|
@@ -212,7 +212,7 @@ export class Messaging {
|
|
|
212
212
|
'post',
|
|
213
213
|
uri,
|
|
214
214
|
apiHeaders,
|
|
215
|
-
|
|
215
|
+
apiPayload
|
|
216
216
|
);
|
|
217
217
|
}
|
|
218
218
|
|
|
@@ -300,39 +300,39 @@ export class Messaging {
|
|
|
300
300
|
}
|
|
301
301
|
|
|
302
302
|
const apiPath = '/v1/messaging/messages/email/{messageId}'.replace('{messageId}', messageId);
|
|
303
|
-
const
|
|
303
|
+
const apiPayload: Payload = {};
|
|
304
304
|
if (typeof attachments !== 'undefined') {
|
|
305
|
-
|
|
305
|
+
apiPayload['attachments'] = attachments;
|
|
306
306
|
}
|
|
307
307
|
if (typeof bcc !== 'undefined') {
|
|
308
|
-
|
|
308
|
+
apiPayload['bcc'] = bcc;
|
|
309
309
|
}
|
|
310
310
|
if (typeof cc !== 'undefined') {
|
|
311
|
-
|
|
311
|
+
apiPayload['cc'] = cc;
|
|
312
312
|
}
|
|
313
313
|
if (typeof content !== 'undefined') {
|
|
314
|
-
|
|
314
|
+
apiPayload['content'] = content;
|
|
315
315
|
}
|
|
316
316
|
if (typeof draft !== 'undefined') {
|
|
317
|
-
|
|
317
|
+
apiPayload['draft'] = draft;
|
|
318
318
|
}
|
|
319
319
|
if (typeof html !== 'undefined') {
|
|
320
|
-
|
|
320
|
+
apiPayload['html'] = html;
|
|
321
321
|
}
|
|
322
322
|
if (typeof scheduledAt !== 'undefined') {
|
|
323
|
-
|
|
323
|
+
apiPayload['scheduledAt'] = scheduledAt;
|
|
324
324
|
}
|
|
325
325
|
if (typeof subject !== 'undefined') {
|
|
326
|
-
|
|
326
|
+
apiPayload['subject'] = subject;
|
|
327
327
|
}
|
|
328
328
|
if (typeof targets !== 'undefined') {
|
|
329
|
-
|
|
329
|
+
apiPayload['targets'] = targets;
|
|
330
330
|
}
|
|
331
331
|
if (typeof topics !== 'undefined') {
|
|
332
|
-
|
|
332
|
+
apiPayload['topics'] = topics;
|
|
333
333
|
}
|
|
334
334
|
if (typeof users !== 'undefined') {
|
|
335
|
-
|
|
335
|
+
apiPayload['users'] = users;
|
|
336
336
|
}
|
|
337
337
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
338
338
|
|
|
@@ -344,7 +344,7 @@ export class Messaging {
|
|
|
344
344
|
'patch',
|
|
345
345
|
uri,
|
|
346
346
|
apiHeaders,
|
|
347
|
-
|
|
347
|
+
apiPayload
|
|
348
348
|
);
|
|
349
349
|
}
|
|
350
350
|
|
|
@@ -458,63 +458,63 @@ export class Messaging {
|
|
|
458
458
|
}
|
|
459
459
|
|
|
460
460
|
const apiPath = '/v1/messaging/messages/push';
|
|
461
|
-
const
|
|
461
|
+
const apiPayload: Payload = {};
|
|
462
462
|
if (typeof action !== 'undefined') {
|
|
463
|
-
|
|
463
|
+
apiPayload['action'] = action;
|
|
464
464
|
}
|
|
465
465
|
if (typeof badge !== 'undefined') {
|
|
466
|
-
|
|
466
|
+
apiPayload['badge'] = badge;
|
|
467
467
|
}
|
|
468
468
|
if (typeof body !== 'undefined') {
|
|
469
|
-
|
|
469
|
+
apiPayload['body'] = body;
|
|
470
470
|
}
|
|
471
471
|
if (typeof color !== 'undefined') {
|
|
472
|
-
|
|
472
|
+
apiPayload['color'] = color;
|
|
473
473
|
}
|
|
474
474
|
if (typeof contentAvailable !== 'undefined') {
|
|
475
|
-
|
|
475
|
+
apiPayload['contentAvailable'] = contentAvailable;
|
|
476
476
|
}
|
|
477
477
|
if (typeof critical !== 'undefined') {
|
|
478
|
-
|
|
478
|
+
apiPayload['critical'] = critical;
|
|
479
479
|
}
|
|
480
480
|
if (typeof data !== 'undefined') {
|
|
481
|
-
|
|
481
|
+
apiPayload['data'] = data;
|
|
482
482
|
}
|
|
483
483
|
if (typeof draft !== 'undefined') {
|
|
484
|
-
|
|
484
|
+
apiPayload['draft'] = draft;
|
|
485
485
|
}
|
|
486
486
|
if (typeof icon !== 'undefined') {
|
|
487
|
-
|
|
487
|
+
apiPayload['icon'] = icon;
|
|
488
488
|
}
|
|
489
489
|
if (typeof image !== 'undefined') {
|
|
490
|
-
|
|
490
|
+
apiPayload['image'] = image;
|
|
491
491
|
}
|
|
492
492
|
if (typeof messageId !== 'undefined') {
|
|
493
|
-
|
|
493
|
+
apiPayload['messageId'] = messageId;
|
|
494
494
|
}
|
|
495
495
|
if (typeof priority !== 'undefined') {
|
|
496
|
-
|
|
496
|
+
apiPayload['priority'] = priority;
|
|
497
497
|
}
|
|
498
498
|
if (typeof scheduledAt !== 'undefined') {
|
|
499
|
-
|
|
499
|
+
apiPayload['scheduledAt'] = scheduledAt;
|
|
500
500
|
}
|
|
501
501
|
if (typeof sound !== 'undefined') {
|
|
502
|
-
|
|
502
|
+
apiPayload['sound'] = sound;
|
|
503
503
|
}
|
|
504
504
|
if (typeof tag !== 'undefined') {
|
|
505
|
-
|
|
505
|
+
apiPayload['tag'] = tag;
|
|
506
506
|
}
|
|
507
507
|
if (typeof targets !== 'undefined') {
|
|
508
|
-
|
|
508
|
+
apiPayload['targets'] = targets;
|
|
509
509
|
}
|
|
510
510
|
if (typeof title !== 'undefined') {
|
|
511
|
-
|
|
511
|
+
apiPayload['title'] = title;
|
|
512
512
|
}
|
|
513
513
|
if (typeof topics !== 'undefined') {
|
|
514
|
-
|
|
514
|
+
apiPayload['topics'] = topics;
|
|
515
515
|
}
|
|
516
516
|
if (typeof users !== 'undefined') {
|
|
517
|
-
|
|
517
|
+
apiPayload['users'] = users;
|
|
518
518
|
}
|
|
519
519
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
520
520
|
|
|
@@ -526,7 +526,7 @@ export class Messaging {
|
|
|
526
526
|
'post',
|
|
527
527
|
uri,
|
|
528
528
|
apiHeaders,
|
|
529
|
-
|
|
529
|
+
apiPayload
|
|
530
530
|
);
|
|
531
531
|
}
|
|
532
532
|
|
|
@@ -642,60 +642,60 @@ export class Messaging {
|
|
|
642
642
|
}
|
|
643
643
|
|
|
644
644
|
const apiPath = '/v1/messaging/messages/push/{messageId}'.replace('{messageId}', messageId);
|
|
645
|
-
const
|
|
645
|
+
const apiPayload: Payload = {};
|
|
646
646
|
if (typeof action !== 'undefined') {
|
|
647
|
-
|
|
647
|
+
apiPayload['action'] = action;
|
|
648
648
|
}
|
|
649
649
|
if (typeof badge !== 'undefined') {
|
|
650
|
-
|
|
650
|
+
apiPayload['badge'] = badge;
|
|
651
651
|
}
|
|
652
652
|
if (typeof body !== 'undefined') {
|
|
653
|
-
|
|
653
|
+
apiPayload['body'] = body;
|
|
654
654
|
}
|
|
655
655
|
if (typeof color !== 'undefined') {
|
|
656
|
-
|
|
656
|
+
apiPayload['color'] = color;
|
|
657
657
|
}
|
|
658
658
|
if (typeof contentAvailable !== 'undefined') {
|
|
659
|
-
|
|
659
|
+
apiPayload['contentAvailable'] = contentAvailable;
|
|
660
660
|
}
|
|
661
661
|
if (typeof critical !== 'undefined') {
|
|
662
|
-
|
|
662
|
+
apiPayload['critical'] = critical;
|
|
663
663
|
}
|
|
664
664
|
if (typeof data !== 'undefined') {
|
|
665
|
-
|
|
665
|
+
apiPayload['data'] = data;
|
|
666
666
|
}
|
|
667
667
|
if (typeof draft !== 'undefined') {
|
|
668
|
-
|
|
668
|
+
apiPayload['draft'] = draft;
|
|
669
669
|
}
|
|
670
670
|
if (typeof icon !== 'undefined') {
|
|
671
|
-
|
|
671
|
+
apiPayload['icon'] = icon;
|
|
672
672
|
}
|
|
673
673
|
if (typeof image !== 'undefined') {
|
|
674
|
-
|
|
674
|
+
apiPayload['image'] = image;
|
|
675
675
|
}
|
|
676
676
|
if (typeof priority !== 'undefined') {
|
|
677
|
-
|
|
677
|
+
apiPayload['priority'] = priority;
|
|
678
678
|
}
|
|
679
679
|
if (typeof scheduledAt !== 'undefined') {
|
|
680
|
-
|
|
680
|
+
apiPayload['scheduledAt'] = scheduledAt;
|
|
681
681
|
}
|
|
682
682
|
if (typeof sound !== 'undefined') {
|
|
683
|
-
|
|
683
|
+
apiPayload['sound'] = sound;
|
|
684
684
|
}
|
|
685
685
|
if (typeof tag !== 'undefined') {
|
|
686
|
-
|
|
686
|
+
apiPayload['tag'] = tag;
|
|
687
687
|
}
|
|
688
688
|
if (typeof targets !== 'undefined') {
|
|
689
|
-
|
|
689
|
+
apiPayload['targets'] = targets;
|
|
690
690
|
}
|
|
691
691
|
if (typeof title !== 'undefined') {
|
|
692
|
-
|
|
692
|
+
apiPayload['title'] = title;
|
|
693
693
|
}
|
|
694
694
|
if (typeof topics !== 'undefined') {
|
|
695
|
-
|
|
695
|
+
apiPayload['topics'] = topics;
|
|
696
696
|
}
|
|
697
697
|
if (typeof users !== 'undefined') {
|
|
698
|
-
|
|
698
|
+
apiPayload['users'] = users;
|
|
699
699
|
}
|
|
700
700
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
701
701
|
|
|
@@ -707,7 +707,7 @@ export class Messaging {
|
|
|
707
707
|
'patch',
|
|
708
708
|
uri,
|
|
709
709
|
apiHeaders,
|
|
710
|
-
|
|
710
|
+
apiPayload
|
|
711
711
|
);
|
|
712
712
|
}
|
|
713
713
|
|
|
@@ -748,7 +748,7 @@ export class Messaging {
|
|
|
748
748
|
}
|
|
749
749
|
|
|
750
750
|
const apiPath = '/v1/messaging/messages/{messageId}'.replace('{messageId}', messageId);
|
|
751
|
-
const
|
|
751
|
+
const apiPayload: Payload = {};
|
|
752
752
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
753
753
|
|
|
754
754
|
const apiHeaders: { [header: string]: string } = {
|
|
@@ -758,7 +758,7 @@ export class Messaging {
|
|
|
758
758
|
'delete',
|
|
759
759
|
uri,
|
|
760
760
|
apiHeaders,
|
|
761
|
-
|
|
761
|
+
apiPayload
|
|
762
762
|
);
|
|
763
763
|
}
|
|
764
764
|
|
|
@@ -801,7 +801,7 @@ export class Messaging {
|
|
|
801
801
|
}
|
|
802
802
|
|
|
803
803
|
const apiPath = '/v1/messaging/messages/{messageId}'.replace('{messageId}', messageId);
|
|
804
|
-
const
|
|
804
|
+
const apiPayload: Payload = {};
|
|
805
805
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
806
806
|
|
|
807
807
|
const apiHeaders: { [header: string]: string } = {
|
|
@@ -811,7 +811,7 @@ export class Messaging {
|
|
|
811
811
|
'get',
|
|
812
812
|
uri,
|
|
813
813
|
apiHeaders,
|
|
814
|
-
|
|
814
|
+
apiPayload
|
|
815
815
|
);
|
|
816
816
|
}
|
|
817
817
|
|
|
@@ -861,12 +861,12 @@ export class Messaging {
|
|
|
861
861
|
}
|
|
862
862
|
|
|
863
863
|
const apiPath = '/v1/messaging/messages/{messageId}/logs'.replace('{messageId}', messageId);
|
|
864
|
-
const
|
|
864
|
+
const apiPayload: Payload = {};
|
|
865
865
|
if (typeof queries !== 'undefined') {
|
|
866
|
-
|
|
866
|
+
apiPayload['queries'] = queries;
|
|
867
867
|
}
|
|
868
868
|
if (typeof total !== 'undefined') {
|
|
869
|
-
|
|
869
|
+
apiPayload['total'] = total;
|
|
870
870
|
}
|
|
871
871
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
872
872
|
|
|
@@ -877,7 +877,7 @@ export class Messaging {
|
|
|
877
877
|
'get',
|
|
878
878
|
uri,
|
|
879
879
|
apiHeaders,
|
|
880
|
-
|
|
880
|
+
apiPayload
|
|
881
881
|
);
|
|
882
882
|
}
|
|
883
883
|
|
|
@@ -927,12 +927,12 @@ export class Messaging {
|
|
|
927
927
|
}
|
|
928
928
|
|
|
929
929
|
const apiPath = '/v1/messaging/messages/{messageId}/targets'.replace('{messageId}', messageId);
|
|
930
|
-
const
|
|
930
|
+
const apiPayload: Payload = {};
|
|
931
931
|
if (typeof queries !== 'undefined') {
|
|
932
|
-
|
|
932
|
+
apiPayload['queries'] = queries;
|
|
933
933
|
}
|
|
934
934
|
if (typeof total !== 'undefined') {
|
|
935
|
-
|
|
935
|
+
apiPayload['total'] = total;
|
|
936
936
|
}
|
|
937
937
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
938
938
|
|
|
@@ -943,7 +943,7 @@ export class Messaging {
|
|
|
943
943
|
'get',
|
|
944
944
|
uri,
|
|
945
945
|
apiHeaders,
|
|
946
|
-
|
|
946
|
+
apiPayload
|
|
947
947
|
);
|
|
948
948
|
}
|
|
949
949
|
|
|
@@ -990,15 +990,15 @@ export class Messaging {
|
|
|
990
990
|
|
|
991
991
|
|
|
992
992
|
const apiPath = '/v1/messaging/providers';
|
|
993
|
-
const
|
|
993
|
+
const apiPayload: Payload = {};
|
|
994
994
|
if (typeof queries !== 'undefined') {
|
|
995
|
-
|
|
995
|
+
apiPayload['queries'] = queries;
|
|
996
996
|
}
|
|
997
997
|
if (typeof search !== 'undefined') {
|
|
998
|
-
|
|
998
|
+
apiPayload['search'] = search;
|
|
999
999
|
}
|
|
1000
1000
|
if (typeof total !== 'undefined') {
|
|
1001
|
-
|
|
1001
|
+
apiPayload['total'] = total;
|
|
1002
1002
|
}
|
|
1003
1003
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
1004
1004
|
|
|
@@ -1009,7 +1009,7 @@ export class Messaging {
|
|
|
1009
1009
|
'get',
|
|
1010
1010
|
uri,
|
|
1011
1011
|
apiHeaders,
|
|
1012
|
-
|
|
1012
|
+
apiPayload
|
|
1013
1013
|
);
|
|
1014
1014
|
}
|
|
1015
1015
|
|
|
@@ -1090,36 +1090,36 @@ export class Messaging {
|
|
|
1090
1090
|
}
|
|
1091
1091
|
|
|
1092
1092
|
const apiPath = '/v1/messaging/providers/mailgun';
|
|
1093
|
-
const
|
|
1093
|
+
const apiPayload: Payload = {};
|
|
1094
1094
|
if (typeof apiKey !== 'undefined') {
|
|
1095
|
-
|
|
1095
|
+
apiPayload['apiKey'] = apiKey;
|
|
1096
1096
|
}
|
|
1097
1097
|
if (typeof domain !== 'undefined') {
|
|
1098
|
-
|
|
1098
|
+
apiPayload['domain'] = domain;
|
|
1099
1099
|
}
|
|
1100
1100
|
if (typeof enabled !== 'undefined') {
|
|
1101
|
-
|
|
1101
|
+
apiPayload['enabled'] = enabled;
|
|
1102
1102
|
}
|
|
1103
1103
|
if (typeof fromEmail !== 'undefined') {
|
|
1104
|
-
|
|
1104
|
+
apiPayload['fromEmail'] = fromEmail;
|
|
1105
1105
|
}
|
|
1106
1106
|
if (typeof fromName !== 'undefined') {
|
|
1107
|
-
|
|
1107
|
+
apiPayload['fromName'] = fromName;
|
|
1108
1108
|
}
|
|
1109
1109
|
if (typeof isEuRegion !== 'undefined') {
|
|
1110
|
-
|
|
1110
|
+
apiPayload['isEuRegion'] = isEuRegion;
|
|
1111
1111
|
}
|
|
1112
1112
|
if (typeof name !== 'undefined') {
|
|
1113
|
-
|
|
1113
|
+
apiPayload['name'] = name;
|
|
1114
1114
|
}
|
|
1115
1115
|
if (typeof providerId !== 'undefined') {
|
|
1116
|
-
|
|
1116
|
+
apiPayload['providerId'] = providerId;
|
|
1117
1117
|
}
|
|
1118
1118
|
if (typeof replyToEmail !== 'undefined') {
|
|
1119
|
-
|
|
1119
|
+
apiPayload['replyToEmail'] = replyToEmail;
|
|
1120
1120
|
}
|
|
1121
1121
|
if (typeof replyToName !== 'undefined') {
|
|
1122
|
-
|
|
1122
|
+
apiPayload['replyToName'] = replyToName;
|
|
1123
1123
|
}
|
|
1124
1124
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
1125
1125
|
|
|
@@ -1131,7 +1131,7 @@ export class Messaging {
|
|
|
1131
1131
|
'post',
|
|
1132
1132
|
uri,
|
|
1133
1133
|
apiHeaders,
|
|
1134
|
-
|
|
1134
|
+
apiPayload
|
|
1135
1135
|
);
|
|
1136
1136
|
}
|
|
1137
1137
|
|
|
@@ -1209,33 +1209,33 @@ export class Messaging {
|
|
|
1209
1209
|
}
|
|
1210
1210
|
|
|
1211
1211
|
const apiPath = '/v1/messaging/providers/mailgun/{providerId}'.replace('{providerId}', providerId);
|
|
1212
|
-
const
|
|
1212
|
+
const apiPayload: Payload = {};
|
|
1213
1213
|
if (typeof apiKey !== 'undefined') {
|
|
1214
|
-
|
|
1214
|
+
apiPayload['apiKey'] = apiKey;
|
|
1215
1215
|
}
|
|
1216
1216
|
if (typeof domain !== 'undefined') {
|
|
1217
|
-
|
|
1217
|
+
apiPayload['domain'] = domain;
|
|
1218
1218
|
}
|
|
1219
1219
|
if (typeof enabled !== 'undefined') {
|
|
1220
|
-
|
|
1220
|
+
apiPayload['enabled'] = enabled;
|
|
1221
1221
|
}
|
|
1222
1222
|
if (typeof fromEmail !== 'undefined') {
|
|
1223
|
-
|
|
1223
|
+
apiPayload['fromEmail'] = fromEmail;
|
|
1224
1224
|
}
|
|
1225
1225
|
if (typeof fromName !== 'undefined') {
|
|
1226
|
-
|
|
1226
|
+
apiPayload['fromName'] = fromName;
|
|
1227
1227
|
}
|
|
1228
1228
|
if (typeof isEuRegion !== 'undefined') {
|
|
1229
|
-
|
|
1229
|
+
apiPayload['isEuRegion'] = isEuRegion;
|
|
1230
1230
|
}
|
|
1231
1231
|
if (typeof name !== 'undefined') {
|
|
1232
|
-
|
|
1232
|
+
apiPayload['name'] = name;
|
|
1233
1233
|
}
|
|
1234
1234
|
if (typeof replyToEmail !== 'undefined') {
|
|
1235
|
-
|
|
1235
|
+
apiPayload['replyToEmail'] = replyToEmail;
|
|
1236
1236
|
}
|
|
1237
1237
|
if (typeof replyToName !== 'undefined') {
|
|
1238
|
-
|
|
1238
|
+
apiPayload['replyToName'] = replyToName;
|
|
1239
1239
|
}
|
|
1240
1240
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
1241
1241
|
|
|
@@ -1247,7 +1247,7 @@ export class Messaging {
|
|
|
1247
1247
|
'patch',
|
|
1248
1248
|
uri,
|
|
1249
1249
|
apiHeaders,
|
|
1250
|
-
|
|
1250
|
+
apiPayload
|
|
1251
1251
|
);
|
|
1252
1252
|
}
|
|
1253
1253
|
|
|
@@ -1312,24 +1312,24 @@ export class Messaging {
|
|
|
1312
1312
|
}
|
|
1313
1313
|
|
|
1314
1314
|
const apiPath = '/v1/messaging/providers/msg91';
|
|
1315
|
-
const
|
|
1315
|
+
const apiPayload: Payload = {};
|
|
1316
1316
|
if (typeof authKey !== 'undefined') {
|
|
1317
|
-
|
|
1317
|
+
apiPayload['authKey'] = authKey;
|
|
1318
1318
|
}
|
|
1319
1319
|
if (typeof enabled !== 'undefined') {
|
|
1320
|
-
|
|
1320
|
+
apiPayload['enabled'] = enabled;
|
|
1321
1321
|
}
|
|
1322
1322
|
if (typeof name !== 'undefined') {
|
|
1323
|
-
|
|
1323
|
+
apiPayload['name'] = name;
|
|
1324
1324
|
}
|
|
1325
1325
|
if (typeof providerId !== 'undefined') {
|
|
1326
|
-
|
|
1326
|
+
apiPayload['providerId'] = providerId;
|
|
1327
1327
|
}
|
|
1328
1328
|
if (typeof senderId !== 'undefined') {
|
|
1329
|
-
|
|
1329
|
+
apiPayload['senderId'] = senderId;
|
|
1330
1330
|
}
|
|
1331
1331
|
if (typeof templateId !== 'undefined') {
|
|
1332
|
-
|
|
1332
|
+
apiPayload['templateId'] = templateId;
|
|
1333
1333
|
}
|
|
1334
1334
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
1335
1335
|
|
|
@@ -1341,7 +1341,7 @@ export class Messaging {
|
|
|
1341
1341
|
'post',
|
|
1342
1342
|
uri,
|
|
1343
1343
|
apiHeaders,
|
|
1344
|
-
|
|
1344
|
+
apiPayload
|
|
1345
1345
|
);
|
|
1346
1346
|
}
|
|
1347
1347
|
|
|
@@ -1403,21 +1403,21 @@ export class Messaging {
|
|
|
1403
1403
|
}
|
|
1404
1404
|
|
|
1405
1405
|
const apiPath = '/v1/messaging/providers/msg91/{providerId}'.replace('{providerId}', providerId);
|
|
1406
|
-
const
|
|
1406
|
+
const apiPayload: Payload = {};
|
|
1407
1407
|
if (typeof authKey !== 'undefined') {
|
|
1408
|
-
|
|
1408
|
+
apiPayload['authKey'] = authKey;
|
|
1409
1409
|
}
|
|
1410
1410
|
if (typeof enabled !== 'undefined') {
|
|
1411
|
-
|
|
1411
|
+
apiPayload['enabled'] = enabled;
|
|
1412
1412
|
}
|
|
1413
1413
|
if (typeof name !== 'undefined') {
|
|
1414
|
-
|
|
1414
|
+
apiPayload['name'] = name;
|
|
1415
1415
|
}
|
|
1416
1416
|
if (typeof senderId !== 'undefined') {
|
|
1417
|
-
|
|
1417
|
+
apiPayload['senderId'] = senderId;
|
|
1418
1418
|
}
|
|
1419
1419
|
if (typeof templateId !== 'undefined') {
|
|
1420
|
-
|
|
1420
|
+
apiPayload['templateId'] = templateId;
|
|
1421
1421
|
}
|
|
1422
1422
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
1423
1423
|
|
|
@@ -1429,7 +1429,7 @@ export class Messaging {
|
|
|
1429
1429
|
'patch',
|
|
1430
1430
|
uri,
|
|
1431
1431
|
apiHeaders,
|
|
1432
|
-
|
|
1432
|
+
apiPayload
|
|
1433
1433
|
);
|
|
1434
1434
|
}
|
|
1435
1435
|
|
|
@@ -1502,30 +1502,30 @@ export class Messaging {
|
|
|
1502
1502
|
}
|
|
1503
1503
|
|
|
1504
1504
|
const apiPath = '/v1/messaging/providers/resend';
|
|
1505
|
-
const
|
|
1505
|
+
const apiPayload: Payload = {};
|
|
1506
1506
|
if (typeof apiKey !== 'undefined') {
|
|
1507
|
-
|
|
1507
|
+
apiPayload['apiKey'] = apiKey;
|
|
1508
1508
|
}
|
|
1509
1509
|
if (typeof enabled !== 'undefined') {
|
|
1510
|
-
|
|
1510
|
+
apiPayload['enabled'] = enabled;
|
|
1511
1511
|
}
|
|
1512
1512
|
if (typeof fromEmail !== 'undefined') {
|
|
1513
|
-
|
|
1513
|
+
apiPayload['fromEmail'] = fromEmail;
|
|
1514
1514
|
}
|
|
1515
1515
|
if (typeof fromName !== 'undefined') {
|
|
1516
|
-
|
|
1516
|
+
apiPayload['fromName'] = fromName;
|
|
1517
1517
|
}
|
|
1518
1518
|
if (typeof name !== 'undefined') {
|
|
1519
|
-
|
|
1519
|
+
apiPayload['name'] = name;
|
|
1520
1520
|
}
|
|
1521
1521
|
if (typeof providerId !== 'undefined') {
|
|
1522
|
-
|
|
1522
|
+
apiPayload['providerId'] = providerId;
|
|
1523
1523
|
}
|
|
1524
1524
|
if (typeof replyToEmail !== 'undefined') {
|
|
1525
|
-
|
|
1525
|
+
apiPayload['replyToEmail'] = replyToEmail;
|
|
1526
1526
|
}
|
|
1527
1527
|
if (typeof replyToName !== 'undefined') {
|
|
1528
|
-
|
|
1528
|
+
apiPayload['replyToName'] = replyToName;
|
|
1529
1529
|
}
|
|
1530
1530
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
1531
1531
|
|
|
@@ -1537,7 +1537,7 @@ export class Messaging {
|
|
|
1537
1537
|
'post',
|
|
1538
1538
|
uri,
|
|
1539
1539
|
apiHeaders,
|
|
1540
|
-
|
|
1540
|
+
apiPayload
|
|
1541
1541
|
);
|
|
1542
1542
|
}
|
|
1543
1543
|
|
|
@@ -1607,27 +1607,27 @@ export class Messaging {
|
|
|
1607
1607
|
}
|
|
1608
1608
|
|
|
1609
1609
|
const apiPath = '/v1/messaging/providers/resend/{providerId}'.replace('{providerId}', providerId);
|
|
1610
|
-
const
|
|
1610
|
+
const apiPayload: Payload = {};
|
|
1611
1611
|
if (typeof apiKey !== 'undefined') {
|
|
1612
|
-
|
|
1612
|
+
apiPayload['apiKey'] = apiKey;
|
|
1613
1613
|
}
|
|
1614
1614
|
if (typeof enabled !== 'undefined') {
|
|
1615
|
-
|
|
1615
|
+
apiPayload['enabled'] = enabled;
|
|
1616
1616
|
}
|
|
1617
1617
|
if (typeof fromEmail !== 'undefined') {
|
|
1618
|
-
|
|
1618
|
+
apiPayload['fromEmail'] = fromEmail;
|
|
1619
1619
|
}
|
|
1620
1620
|
if (typeof fromName !== 'undefined') {
|
|
1621
|
-
|
|
1621
|
+
apiPayload['fromName'] = fromName;
|
|
1622
1622
|
}
|
|
1623
1623
|
if (typeof name !== 'undefined') {
|
|
1624
|
-
|
|
1624
|
+
apiPayload['name'] = name;
|
|
1625
1625
|
}
|
|
1626
1626
|
if (typeof replyToEmail !== 'undefined') {
|
|
1627
|
-
|
|
1627
|
+
apiPayload['replyToEmail'] = replyToEmail;
|
|
1628
1628
|
}
|
|
1629
1629
|
if (typeof replyToName !== 'undefined') {
|
|
1630
|
-
|
|
1630
|
+
apiPayload['replyToName'] = replyToName;
|
|
1631
1631
|
}
|
|
1632
1632
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
1633
1633
|
|
|
@@ -1639,7 +1639,7 @@ export class Messaging {
|
|
|
1639
1639
|
'patch',
|
|
1640
1640
|
uri,
|
|
1641
1641
|
apiHeaders,
|
|
1642
|
-
|
|
1642
|
+
apiPayload
|
|
1643
1643
|
);
|
|
1644
1644
|
}
|
|
1645
1645
|
|
|
@@ -1712,30 +1712,30 @@ export class Messaging {
|
|
|
1712
1712
|
}
|
|
1713
1713
|
|
|
1714
1714
|
const apiPath = '/v1/messaging/providers/sendgrid';
|
|
1715
|
-
const
|
|
1715
|
+
const apiPayload: Payload = {};
|
|
1716
1716
|
if (typeof apiKey !== 'undefined') {
|
|
1717
|
-
|
|
1717
|
+
apiPayload['apiKey'] = apiKey;
|
|
1718
1718
|
}
|
|
1719
1719
|
if (typeof enabled !== 'undefined') {
|
|
1720
|
-
|
|
1720
|
+
apiPayload['enabled'] = enabled;
|
|
1721
1721
|
}
|
|
1722
1722
|
if (typeof fromEmail !== 'undefined') {
|
|
1723
|
-
|
|
1723
|
+
apiPayload['fromEmail'] = fromEmail;
|
|
1724
1724
|
}
|
|
1725
1725
|
if (typeof fromName !== 'undefined') {
|
|
1726
|
-
|
|
1726
|
+
apiPayload['fromName'] = fromName;
|
|
1727
1727
|
}
|
|
1728
1728
|
if (typeof name !== 'undefined') {
|
|
1729
|
-
|
|
1729
|
+
apiPayload['name'] = name;
|
|
1730
1730
|
}
|
|
1731
1731
|
if (typeof providerId !== 'undefined') {
|
|
1732
|
-
|
|
1732
|
+
apiPayload['providerId'] = providerId;
|
|
1733
1733
|
}
|
|
1734
1734
|
if (typeof replyToEmail !== 'undefined') {
|
|
1735
|
-
|
|
1735
|
+
apiPayload['replyToEmail'] = replyToEmail;
|
|
1736
1736
|
}
|
|
1737
1737
|
if (typeof replyToName !== 'undefined') {
|
|
1738
|
-
|
|
1738
|
+
apiPayload['replyToName'] = replyToName;
|
|
1739
1739
|
}
|
|
1740
1740
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
1741
1741
|
|
|
@@ -1747,7 +1747,7 @@ export class Messaging {
|
|
|
1747
1747
|
'post',
|
|
1748
1748
|
uri,
|
|
1749
1749
|
apiHeaders,
|
|
1750
|
-
|
|
1750
|
+
apiPayload
|
|
1751
1751
|
);
|
|
1752
1752
|
}
|
|
1753
1753
|
|
|
@@ -1817,27 +1817,27 @@ export class Messaging {
|
|
|
1817
1817
|
}
|
|
1818
1818
|
|
|
1819
1819
|
const apiPath = '/v1/messaging/providers/sendgrid/{providerId}'.replace('{providerId}', providerId);
|
|
1820
|
-
const
|
|
1820
|
+
const apiPayload: Payload = {};
|
|
1821
1821
|
if (typeof apiKey !== 'undefined') {
|
|
1822
|
-
|
|
1822
|
+
apiPayload['apiKey'] = apiKey;
|
|
1823
1823
|
}
|
|
1824
1824
|
if (typeof enabled !== 'undefined') {
|
|
1825
|
-
|
|
1825
|
+
apiPayload['enabled'] = enabled;
|
|
1826
1826
|
}
|
|
1827
1827
|
if (typeof fromEmail !== 'undefined') {
|
|
1828
|
-
|
|
1828
|
+
apiPayload['fromEmail'] = fromEmail;
|
|
1829
1829
|
}
|
|
1830
1830
|
if (typeof fromName !== 'undefined') {
|
|
1831
|
-
|
|
1831
|
+
apiPayload['fromName'] = fromName;
|
|
1832
1832
|
}
|
|
1833
1833
|
if (typeof name !== 'undefined') {
|
|
1834
|
-
|
|
1834
|
+
apiPayload['name'] = name;
|
|
1835
1835
|
}
|
|
1836
1836
|
if (typeof replyToEmail !== 'undefined') {
|
|
1837
|
-
|
|
1837
|
+
apiPayload['replyToEmail'] = replyToEmail;
|
|
1838
1838
|
}
|
|
1839
1839
|
if (typeof replyToName !== 'undefined') {
|
|
1840
|
-
|
|
1840
|
+
apiPayload['replyToName'] = replyToName;
|
|
1841
1841
|
}
|
|
1842
1842
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
1843
1843
|
|
|
@@ -1849,7 +1849,7 @@ export class Messaging {
|
|
|
1849
1849
|
'patch',
|
|
1850
1850
|
uri,
|
|
1851
1851
|
apiHeaders,
|
|
1852
|
-
|
|
1852
|
+
apiPayload
|
|
1853
1853
|
);
|
|
1854
1854
|
}
|
|
1855
1855
|
|
|
@@ -1914,24 +1914,24 @@ export class Messaging {
|
|
|
1914
1914
|
}
|
|
1915
1915
|
|
|
1916
1916
|
const apiPath = '/v1/messaging/providers/telesign';
|
|
1917
|
-
const
|
|
1917
|
+
const apiPayload: Payload = {};
|
|
1918
1918
|
if (typeof apiKey !== 'undefined') {
|
|
1919
|
-
|
|
1919
|
+
apiPayload['apiKey'] = apiKey;
|
|
1920
1920
|
}
|
|
1921
1921
|
if (typeof customerId !== 'undefined') {
|
|
1922
|
-
|
|
1922
|
+
apiPayload['customerId'] = customerId;
|
|
1923
1923
|
}
|
|
1924
1924
|
if (typeof enabled !== 'undefined') {
|
|
1925
|
-
|
|
1925
|
+
apiPayload['enabled'] = enabled;
|
|
1926
1926
|
}
|
|
1927
1927
|
if (typeof from !== 'undefined') {
|
|
1928
|
-
|
|
1928
|
+
apiPayload['from'] = from;
|
|
1929
1929
|
}
|
|
1930
1930
|
if (typeof name !== 'undefined') {
|
|
1931
|
-
|
|
1931
|
+
apiPayload['name'] = name;
|
|
1932
1932
|
}
|
|
1933
1933
|
if (typeof providerId !== 'undefined') {
|
|
1934
|
-
|
|
1934
|
+
apiPayload['providerId'] = providerId;
|
|
1935
1935
|
}
|
|
1936
1936
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
1937
1937
|
|
|
@@ -1943,7 +1943,7 @@ export class Messaging {
|
|
|
1943
1943
|
'post',
|
|
1944
1944
|
uri,
|
|
1945
1945
|
apiHeaders,
|
|
1946
|
-
|
|
1946
|
+
apiPayload
|
|
1947
1947
|
);
|
|
1948
1948
|
}
|
|
1949
1949
|
|
|
@@ -2005,21 +2005,21 @@ export class Messaging {
|
|
|
2005
2005
|
}
|
|
2006
2006
|
|
|
2007
2007
|
const apiPath = '/v1/messaging/providers/telesign/{providerId}'.replace('{providerId}', providerId);
|
|
2008
|
-
const
|
|
2008
|
+
const apiPayload: Payload = {};
|
|
2009
2009
|
if (typeof apiKey !== 'undefined') {
|
|
2010
|
-
|
|
2010
|
+
apiPayload['apiKey'] = apiKey;
|
|
2011
2011
|
}
|
|
2012
2012
|
if (typeof customerId !== 'undefined') {
|
|
2013
|
-
|
|
2013
|
+
apiPayload['customerId'] = customerId;
|
|
2014
2014
|
}
|
|
2015
2015
|
if (typeof enabled !== 'undefined') {
|
|
2016
|
-
|
|
2016
|
+
apiPayload['enabled'] = enabled;
|
|
2017
2017
|
}
|
|
2018
2018
|
if (typeof from !== 'undefined') {
|
|
2019
|
-
|
|
2019
|
+
apiPayload['from'] = from;
|
|
2020
2020
|
}
|
|
2021
2021
|
if (typeof name !== 'undefined') {
|
|
2022
|
-
|
|
2022
|
+
apiPayload['name'] = name;
|
|
2023
2023
|
}
|
|
2024
2024
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
2025
2025
|
|
|
@@ -2031,7 +2031,7 @@ export class Messaging {
|
|
|
2031
2031
|
'patch',
|
|
2032
2032
|
uri,
|
|
2033
2033
|
apiHeaders,
|
|
2034
|
-
|
|
2034
|
+
apiPayload
|
|
2035
2035
|
);
|
|
2036
2036
|
}
|
|
2037
2037
|
|
|
@@ -2096,24 +2096,24 @@ export class Messaging {
|
|
|
2096
2096
|
}
|
|
2097
2097
|
|
|
2098
2098
|
const apiPath = '/v1/messaging/providers/textmagic';
|
|
2099
|
-
const
|
|
2099
|
+
const apiPayload: Payload = {};
|
|
2100
2100
|
if (typeof apiKey !== 'undefined') {
|
|
2101
|
-
|
|
2101
|
+
apiPayload['apiKey'] = apiKey;
|
|
2102
2102
|
}
|
|
2103
2103
|
if (typeof enabled !== 'undefined') {
|
|
2104
|
-
|
|
2104
|
+
apiPayload['enabled'] = enabled;
|
|
2105
2105
|
}
|
|
2106
2106
|
if (typeof from !== 'undefined') {
|
|
2107
|
-
|
|
2107
|
+
apiPayload['from'] = from;
|
|
2108
2108
|
}
|
|
2109
2109
|
if (typeof name !== 'undefined') {
|
|
2110
|
-
|
|
2110
|
+
apiPayload['name'] = name;
|
|
2111
2111
|
}
|
|
2112
2112
|
if (typeof providerId !== 'undefined') {
|
|
2113
|
-
|
|
2113
|
+
apiPayload['providerId'] = providerId;
|
|
2114
2114
|
}
|
|
2115
2115
|
if (typeof username !== 'undefined') {
|
|
2116
|
-
|
|
2116
|
+
apiPayload['username'] = username;
|
|
2117
2117
|
}
|
|
2118
2118
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
2119
2119
|
|
|
@@ -2125,7 +2125,7 @@ export class Messaging {
|
|
|
2125
2125
|
'post',
|
|
2126
2126
|
uri,
|
|
2127
2127
|
apiHeaders,
|
|
2128
|
-
|
|
2128
|
+
apiPayload
|
|
2129
2129
|
);
|
|
2130
2130
|
}
|
|
2131
2131
|
|
|
@@ -2187,21 +2187,21 @@ export class Messaging {
|
|
|
2187
2187
|
}
|
|
2188
2188
|
|
|
2189
2189
|
const apiPath = '/v1/messaging/providers/textmagic/{providerId}'.replace('{providerId}', providerId);
|
|
2190
|
-
const
|
|
2190
|
+
const apiPayload: Payload = {};
|
|
2191
2191
|
if (typeof apiKey !== 'undefined') {
|
|
2192
|
-
|
|
2192
|
+
apiPayload['apiKey'] = apiKey;
|
|
2193
2193
|
}
|
|
2194
2194
|
if (typeof enabled !== 'undefined') {
|
|
2195
|
-
|
|
2195
|
+
apiPayload['enabled'] = enabled;
|
|
2196
2196
|
}
|
|
2197
2197
|
if (typeof from !== 'undefined') {
|
|
2198
|
-
|
|
2198
|
+
apiPayload['from'] = from;
|
|
2199
2199
|
}
|
|
2200
2200
|
if (typeof name !== 'undefined') {
|
|
2201
|
-
|
|
2201
|
+
apiPayload['name'] = name;
|
|
2202
2202
|
}
|
|
2203
2203
|
if (typeof username !== 'undefined') {
|
|
2204
|
-
|
|
2204
|
+
apiPayload['username'] = username;
|
|
2205
2205
|
}
|
|
2206
2206
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
2207
2207
|
|
|
@@ -2213,7 +2213,7 @@ export class Messaging {
|
|
|
2213
2213
|
'patch',
|
|
2214
2214
|
uri,
|
|
2215
2215
|
apiHeaders,
|
|
2216
|
-
|
|
2216
|
+
apiPayload
|
|
2217
2217
|
);
|
|
2218
2218
|
}
|
|
2219
2219
|
|
|
@@ -2278,24 +2278,24 @@ export class Messaging {
|
|
|
2278
2278
|
}
|
|
2279
2279
|
|
|
2280
2280
|
const apiPath = '/v1/messaging/providers/twilio';
|
|
2281
|
-
const
|
|
2281
|
+
const apiPayload: Payload = {};
|
|
2282
2282
|
if (typeof accountSid !== 'undefined') {
|
|
2283
|
-
|
|
2283
|
+
apiPayload['accountSid'] = accountSid;
|
|
2284
2284
|
}
|
|
2285
2285
|
if (typeof authToken !== 'undefined') {
|
|
2286
|
-
|
|
2286
|
+
apiPayload['authToken'] = authToken;
|
|
2287
2287
|
}
|
|
2288
2288
|
if (typeof enabled !== 'undefined') {
|
|
2289
|
-
|
|
2289
|
+
apiPayload['enabled'] = enabled;
|
|
2290
2290
|
}
|
|
2291
2291
|
if (typeof from !== 'undefined') {
|
|
2292
|
-
|
|
2292
|
+
apiPayload['from'] = from;
|
|
2293
2293
|
}
|
|
2294
2294
|
if (typeof name !== 'undefined') {
|
|
2295
|
-
|
|
2295
|
+
apiPayload['name'] = name;
|
|
2296
2296
|
}
|
|
2297
2297
|
if (typeof providerId !== 'undefined') {
|
|
2298
|
-
|
|
2298
|
+
apiPayload['providerId'] = providerId;
|
|
2299
2299
|
}
|
|
2300
2300
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
2301
2301
|
|
|
@@ -2307,7 +2307,7 @@ export class Messaging {
|
|
|
2307
2307
|
'post',
|
|
2308
2308
|
uri,
|
|
2309
2309
|
apiHeaders,
|
|
2310
|
-
|
|
2310
|
+
apiPayload
|
|
2311
2311
|
);
|
|
2312
2312
|
}
|
|
2313
2313
|
|
|
@@ -2369,21 +2369,21 @@ export class Messaging {
|
|
|
2369
2369
|
}
|
|
2370
2370
|
|
|
2371
2371
|
const apiPath = '/v1/messaging/providers/twilio/{providerId}'.replace('{providerId}', providerId);
|
|
2372
|
-
const
|
|
2372
|
+
const apiPayload: Payload = {};
|
|
2373
2373
|
if (typeof accountSid !== 'undefined') {
|
|
2374
|
-
|
|
2374
|
+
apiPayload['accountSid'] = accountSid;
|
|
2375
2375
|
}
|
|
2376
2376
|
if (typeof authToken !== 'undefined') {
|
|
2377
|
-
|
|
2377
|
+
apiPayload['authToken'] = authToken;
|
|
2378
2378
|
}
|
|
2379
2379
|
if (typeof enabled !== 'undefined') {
|
|
2380
|
-
|
|
2380
|
+
apiPayload['enabled'] = enabled;
|
|
2381
2381
|
}
|
|
2382
2382
|
if (typeof from !== 'undefined') {
|
|
2383
|
-
|
|
2383
|
+
apiPayload['from'] = from;
|
|
2384
2384
|
}
|
|
2385
2385
|
if (typeof name !== 'undefined') {
|
|
2386
|
-
|
|
2386
|
+
apiPayload['name'] = name;
|
|
2387
2387
|
}
|
|
2388
2388
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
2389
2389
|
|
|
@@ -2395,7 +2395,7 @@ export class Messaging {
|
|
|
2395
2395
|
'patch',
|
|
2396
2396
|
uri,
|
|
2397
2397
|
apiHeaders,
|
|
2398
|
-
|
|
2398
|
+
apiPayload
|
|
2399
2399
|
);
|
|
2400
2400
|
}
|
|
2401
2401
|
|
|
@@ -2460,24 +2460,24 @@ export class Messaging {
|
|
|
2460
2460
|
}
|
|
2461
2461
|
|
|
2462
2462
|
const apiPath = '/v1/messaging/providers/vonage';
|
|
2463
|
-
const
|
|
2463
|
+
const apiPayload: Payload = {};
|
|
2464
2464
|
if (typeof apiKey !== 'undefined') {
|
|
2465
|
-
|
|
2465
|
+
apiPayload['apiKey'] = apiKey;
|
|
2466
2466
|
}
|
|
2467
2467
|
if (typeof apiSecret !== 'undefined') {
|
|
2468
|
-
|
|
2468
|
+
apiPayload['apiSecret'] = apiSecret;
|
|
2469
2469
|
}
|
|
2470
2470
|
if (typeof enabled !== 'undefined') {
|
|
2471
|
-
|
|
2471
|
+
apiPayload['enabled'] = enabled;
|
|
2472
2472
|
}
|
|
2473
2473
|
if (typeof from !== 'undefined') {
|
|
2474
|
-
|
|
2474
|
+
apiPayload['from'] = from;
|
|
2475
2475
|
}
|
|
2476
2476
|
if (typeof name !== 'undefined') {
|
|
2477
|
-
|
|
2477
|
+
apiPayload['name'] = name;
|
|
2478
2478
|
}
|
|
2479
2479
|
if (typeof providerId !== 'undefined') {
|
|
2480
|
-
|
|
2480
|
+
apiPayload['providerId'] = providerId;
|
|
2481
2481
|
}
|
|
2482
2482
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
2483
2483
|
|
|
@@ -2489,7 +2489,7 @@ export class Messaging {
|
|
|
2489
2489
|
'post',
|
|
2490
2490
|
uri,
|
|
2491
2491
|
apiHeaders,
|
|
2492
|
-
|
|
2492
|
+
apiPayload
|
|
2493
2493
|
);
|
|
2494
2494
|
}
|
|
2495
2495
|
|
|
@@ -2551,21 +2551,21 @@ export class Messaging {
|
|
|
2551
2551
|
}
|
|
2552
2552
|
|
|
2553
2553
|
const apiPath = '/v1/messaging/providers/vonage/{providerId}'.replace('{providerId}', providerId);
|
|
2554
|
-
const
|
|
2554
|
+
const apiPayload: Payload = {};
|
|
2555
2555
|
if (typeof apiKey !== 'undefined') {
|
|
2556
|
-
|
|
2556
|
+
apiPayload['apiKey'] = apiKey;
|
|
2557
2557
|
}
|
|
2558
2558
|
if (typeof apiSecret !== 'undefined') {
|
|
2559
|
-
|
|
2559
|
+
apiPayload['apiSecret'] = apiSecret;
|
|
2560
2560
|
}
|
|
2561
2561
|
if (typeof enabled !== 'undefined') {
|
|
2562
|
-
|
|
2562
|
+
apiPayload['enabled'] = enabled;
|
|
2563
2563
|
}
|
|
2564
2564
|
if (typeof from !== 'undefined') {
|
|
2565
|
-
|
|
2565
|
+
apiPayload['from'] = from;
|
|
2566
2566
|
}
|
|
2567
2567
|
if (typeof name !== 'undefined') {
|
|
2568
|
-
|
|
2568
|
+
apiPayload['name'] = name;
|
|
2569
2569
|
}
|
|
2570
2570
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
2571
2571
|
|
|
@@ -2577,7 +2577,7 @@ export class Messaging {
|
|
|
2577
2577
|
'patch',
|
|
2578
2578
|
uri,
|
|
2579
2579
|
apiHeaders,
|
|
2580
|
-
|
|
2580
|
+
apiPayload
|
|
2581
2581
|
);
|
|
2582
2582
|
}
|
|
2583
2583
|
|
|
@@ -2618,7 +2618,7 @@ export class Messaging {
|
|
|
2618
2618
|
}
|
|
2619
2619
|
|
|
2620
2620
|
const apiPath = '/v1/messaging/providers/{providerId}'.replace('{providerId}', providerId);
|
|
2621
|
-
const
|
|
2621
|
+
const apiPayload: Payload = {};
|
|
2622
2622
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
2623
2623
|
|
|
2624
2624
|
const apiHeaders: { [header: string]: string } = {
|
|
@@ -2628,7 +2628,7 @@ export class Messaging {
|
|
|
2628
2628
|
'delete',
|
|
2629
2629
|
uri,
|
|
2630
2630
|
apiHeaders,
|
|
2631
|
-
|
|
2631
|
+
apiPayload
|
|
2632
2632
|
);
|
|
2633
2633
|
}
|
|
2634
2634
|
|
|
@@ -2671,7 +2671,7 @@ export class Messaging {
|
|
|
2671
2671
|
}
|
|
2672
2672
|
|
|
2673
2673
|
const apiPath = '/v1/messaging/providers/{providerId}'.replace('{providerId}', providerId);
|
|
2674
|
-
const
|
|
2674
|
+
const apiPayload: Payload = {};
|
|
2675
2675
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
2676
2676
|
|
|
2677
2677
|
const apiHeaders: { [header: string]: string } = {
|
|
@@ -2681,7 +2681,7 @@ export class Messaging {
|
|
|
2681
2681
|
'get',
|
|
2682
2682
|
uri,
|
|
2683
2683
|
apiHeaders,
|
|
2684
|
-
|
|
2684
|
+
apiPayload
|
|
2685
2685
|
);
|
|
2686
2686
|
}
|
|
2687
2687
|
|
|
@@ -2731,12 +2731,12 @@ export class Messaging {
|
|
|
2731
2731
|
}
|
|
2732
2732
|
|
|
2733
2733
|
const apiPath = '/v1/messaging/providers/{providerId}/logs'.replace('{providerId}', providerId);
|
|
2734
|
-
const
|
|
2734
|
+
const apiPayload: Payload = {};
|
|
2735
2735
|
if (typeof queries !== 'undefined') {
|
|
2736
|
-
|
|
2736
|
+
apiPayload['queries'] = queries;
|
|
2737
2737
|
}
|
|
2738
2738
|
if (typeof total !== 'undefined') {
|
|
2739
|
-
|
|
2739
|
+
apiPayload['total'] = total;
|
|
2740
2740
|
}
|
|
2741
2741
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
2742
2742
|
|
|
@@ -2747,7 +2747,7 @@ export class Messaging {
|
|
|
2747
2747
|
'get',
|
|
2748
2748
|
uri,
|
|
2749
2749
|
apiHeaders,
|
|
2750
|
-
|
|
2750
|
+
apiPayload
|
|
2751
2751
|
);
|
|
2752
2752
|
}
|
|
2753
2753
|
|
|
@@ -2797,12 +2797,12 @@ export class Messaging {
|
|
|
2797
2797
|
}
|
|
2798
2798
|
|
|
2799
2799
|
const apiPath = '/v1/messaging/subscribers/{subscriberId}/logs'.replace('{subscriberId}', subscriberId);
|
|
2800
|
-
const
|
|
2800
|
+
const apiPayload: Payload = {};
|
|
2801
2801
|
if (typeof queries !== 'undefined') {
|
|
2802
|
-
|
|
2802
|
+
apiPayload['queries'] = queries;
|
|
2803
2803
|
}
|
|
2804
2804
|
if (typeof total !== 'undefined') {
|
|
2805
|
-
|
|
2805
|
+
apiPayload['total'] = total;
|
|
2806
2806
|
}
|
|
2807
2807
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
2808
2808
|
|
|
@@ -2813,7 +2813,7 @@ export class Messaging {
|
|
|
2813
2813
|
'get',
|
|
2814
2814
|
uri,
|
|
2815
2815
|
apiHeaders,
|
|
2816
|
-
|
|
2816
|
+
apiPayload
|
|
2817
2817
|
);
|
|
2818
2818
|
}
|
|
2819
2819
|
|
|
@@ -2860,15 +2860,15 @@ export class Messaging {
|
|
|
2860
2860
|
|
|
2861
2861
|
|
|
2862
2862
|
const apiPath = '/v1/messaging/topics';
|
|
2863
|
-
const
|
|
2863
|
+
const apiPayload: Payload = {};
|
|
2864
2864
|
if (typeof queries !== 'undefined') {
|
|
2865
|
-
|
|
2865
|
+
apiPayload['queries'] = queries;
|
|
2866
2866
|
}
|
|
2867
2867
|
if (typeof search !== 'undefined') {
|
|
2868
|
-
|
|
2868
|
+
apiPayload['search'] = search;
|
|
2869
2869
|
}
|
|
2870
2870
|
if (typeof total !== 'undefined') {
|
|
2871
|
-
|
|
2871
|
+
apiPayload['total'] = total;
|
|
2872
2872
|
}
|
|
2873
2873
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
2874
2874
|
|
|
@@ -2879,7 +2879,7 @@ export class Messaging {
|
|
|
2879
2879
|
'get',
|
|
2880
2880
|
uri,
|
|
2881
2881
|
apiHeaders,
|
|
2882
|
-
|
|
2882
|
+
apiPayload
|
|
2883
2883
|
);
|
|
2884
2884
|
}
|
|
2885
2885
|
|
|
@@ -2932,15 +2932,15 @@ export class Messaging {
|
|
|
2932
2932
|
}
|
|
2933
2933
|
|
|
2934
2934
|
const apiPath = '/v1/messaging/topics';
|
|
2935
|
-
const
|
|
2935
|
+
const apiPayload: Payload = {};
|
|
2936
2936
|
if (typeof name !== 'undefined') {
|
|
2937
|
-
|
|
2937
|
+
apiPayload['name'] = name;
|
|
2938
2938
|
}
|
|
2939
2939
|
if (typeof subscribe !== 'undefined') {
|
|
2940
|
-
|
|
2940
|
+
apiPayload['subscribe'] = subscribe;
|
|
2941
2941
|
}
|
|
2942
2942
|
if (typeof topicId !== 'undefined') {
|
|
2943
|
-
|
|
2943
|
+
apiPayload['topicId'] = topicId;
|
|
2944
2944
|
}
|
|
2945
2945
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
2946
2946
|
|
|
@@ -2952,7 +2952,7 @@ export class Messaging {
|
|
|
2952
2952
|
'post',
|
|
2953
2953
|
uri,
|
|
2954
2954
|
apiHeaders,
|
|
2955
|
-
|
|
2955
|
+
apiPayload
|
|
2956
2956
|
);
|
|
2957
2957
|
}
|
|
2958
2958
|
|
|
@@ -2993,7 +2993,7 @@ export class Messaging {
|
|
|
2993
2993
|
}
|
|
2994
2994
|
|
|
2995
2995
|
const apiPath = '/v1/messaging/topics/{topicId}'.replace('{topicId}', topicId);
|
|
2996
|
-
const
|
|
2996
|
+
const apiPayload: Payload = {};
|
|
2997
2997
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
2998
2998
|
|
|
2999
2999
|
const apiHeaders: { [header: string]: string } = {
|
|
@@ -3003,7 +3003,7 @@ export class Messaging {
|
|
|
3003
3003
|
'delete',
|
|
3004
3004
|
uri,
|
|
3005
3005
|
apiHeaders,
|
|
3006
|
-
|
|
3006
|
+
apiPayload
|
|
3007
3007
|
);
|
|
3008
3008
|
}
|
|
3009
3009
|
|
|
@@ -3046,7 +3046,7 @@ export class Messaging {
|
|
|
3046
3046
|
}
|
|
3047
3047
|
|
|
3048
3048
|
const apiPath = '/v1/messaging/topics/{topicId}'.replace('{topicId}', topicId);
|
|
3049
|
-
const
|
|
3049
|
+
const apiPayload: Payload = {};
|
|
3050
3050
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
3051
3051
|
|
|
3052
3052
|
const apiHeaders: { [header: string]: string } = {
|
|
@@ -3056,7 +3056,7 @@ export class Messaging {
|
|
|
3056
3056
|
'get',
|
|
3057
3057
|
uri,
|
|
3058
3058
|
apiHeaders,
|
|
3059
|
-
|
|
3059
|
+
apiPayload
|
|
3060
3060
|
);
|
|
3061
3061
|
}
|
|
3062
3062
|
|
|
@@ -3108,12 +3108,12 @@ export class Messaging {
|
|
|
3108
3108
|
}
|
|
3109
3109
|
|
|
3110
3110
|
const apiPath = '/v1/messaging/topics/{topicId}'.replace('{topicId}', topicId);
|
|
3111
|
-
const
|
|
3111
|
+
const apiPayload: Payload = {};
|
|
3112
3112
|
if (typeof name !== 'undefined') {
|
|
3113
|
-
|
|
3113
|
+
apiPayload['name'] = name;
|
|
3114
3114
|
}
|
|
3115
3115
|
if (typeof subscribe !== 'undefined') {
|
|
3116
|
-
|
|
3116
|
+
apiPayload['subscribe'] = subscribe;
|
|
3117
3117
|
}
|
|
3118
3118
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
3119
3119
|
|
|
@@ -3125,7 +3125,7 @@ export class Messaging {
|
|
|
3125
3125
|
'patch',
|
|
3126
3126
|
uri,
|
|
3127
3127
|
apiHeaders,
|
|
3128
|
-
|
|
3128
|
+
apiPayload
|
|
3129
3129
|
);
|
|
3130
3130
|
}
|
|
3131
3131
|
|
|
@@ -3175,12 +3175,12 @@ export class Messaging {
|
|
|
3175
3175
|
}
|
|
3176
3176
|
|
|
3177
3177
|
const apiPath = '/v1/messaging/topics/{topicId}/logs'.replace('{topicId}', topicId);
|
|
3178
|
-
const
|
|
3178
|
+
const apiPayload: Payload = {};
|
|
3179
3179
|
if (typeof queries !== 'undefined') {
|
|
3180
|
-
|
|
3180
|
+
apiPayload['queries'] = queries;
|
|
3181
3181
|
}
|
|
3182
3182
|
if (typeof total !== 'undefined') {
|
|
3183
|
-
|
|
3183
|
+
apiPayload['total'] = total;
|
|
3184
3184
|
}
|
|
3185
3185
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
3186
3186
|
|
|
@@ -3191,7 +3191,7 @@ export class Messaging {
|
|
|
3191
3191
|
'get',
|
|
3192
3192
|
uri,
|
|
3193
3193
|
apiHeaders,
|
|
3194
|
-
|
|
3194
|
+
apiPayload
|
|
3195
3195
|
);
|
|
3196
3196
|
}
|
|
3197
3197
|
|
|
@@ -3245,15 +3245,15 @@ export class Messaging {
|
|
|
3245
3245
|
}
|
|
3246
3246
|
|
|
3247
3247
|
const apiPath = '/v1/messaging/topics/{topicId}/subscribers'.replace('{topicId}', topicId);
|
|
3248
|
-
const
|
|
3248
|
+
const apiPayload: Payload = {};
|
|
3249
3249
|
if (typeof queries !== 'undefined') {
|
|
3250
|
-
|
|
3250
|
+
apiPayload['queries'] = queries;
|
|
3251
3251
|
}
|
|
3252
3252
|
if (typeof search !== 'undefined') {
|
|
3253
|
-
|
|
3253
|
+
apiPayload['search'] = search;
|
|
3254
3254
|
}
|
|
3255
3255
|
if (typeof total !== 'undefined') {
|
|
3256
|
-
|
|
3256
|
+
apiPayload['total'] = total;
|
|
3257
3257
|
}
|
|
3258
3258
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
3259
3259
|
|
|
@@ -3264,7 +3264,7 @@ export class Messaging {
|
|
|
3264
3264
|
'get',
|
|
3265
3265
|
uri,
|
|
3266
3266
|
apiHeaders,
|
|
3267
|
-
|
|
3267
|
+
apiPayload
|
|
3268
3268
|
);
|
|
3269
3269
|
}
|
|
3270
3270
|
|
|
@@ -3320,12 +3320,12 @@ export class Messaging {
|
|
|
3320
3320
|
}
|
|
3321
3321
|
|
|
3322
3322
|
const apiPath = '/v1/messaging/topics/{topicId}/subscribers'.replace('{topicId}', topicId);
|
|
3323
|
-
const
|
|
3323
|
+
const apiPayload: Payload = {};
|
|
3324
3324
|
if (typeof subscriberId !== 'undefined') {
|
|
3325
|
-
|
|
3325
|
+
apiPayload['subscriberId'] = subscriberId;
|
|
3326
3326
|
}
|
|
3327
3327
|
if (typeof targetId !== 'undefined') {
|
|
3328
|
-
|
|
3328
|
+
apiPayload['targetId'] = targetId;
|
|
3329
3329
|
}
|
|
3330
3330
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
3331
3331
|
|
|
@@ -3337,7 +3337,7 @@ export class Messaging {
|
|
|
3337
3337
|
'post',
|
|
3338
3338
|
uri,
|
|
3339
3339
|
apiHeaders,
|
|
3340
|
-
|
|
3340
|
+
apiPayload
|
|
3341
3341
|
);
|
|
3342
3342
|
}
|
|
3343
3343
|
|
|
@@ -3386,7 +3386,7 @@ export class Messaging {
|
|
|
3386
3386
|
}
|
|
3387
3387
|
|
|
3388
3388
|
const apiPath = '/v1/messaging/topics/{topicId}/subscribers/{subscriberId}'.replace('{topicId}', topicId).replace('{subscriberId}', subscriberId);
|
|
3389
|
-
const
|
|
3389
|
+
const apiPayload: Payload = {};
|
|
3390
3390
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
3391
3391
|
|
|
3392
3392
|
const apiHeaders: { [header: string]: string } = {
|
|
@@ -3396,7 +3396,7 @@ export class Messaging {
|
|
|
3396
3396
|
'delete',
|
|
3397
3397
|
uri,
|
|
3398
3398
|
apiHeaders,
|
|
3399
|
-
|
|
3399
|
+
apiPayload
|
|
3400
3400
|
);
|
|
3401
3401
|
}
|
|
3402
3402
|
|
|
@@ -3447,7 +3447,7 @@ export class Messaging {
|
|
|
3447
3447
|
}
|
|
3448
3448
|
|
|
3449
3449
|
const apiPath = '/v1/messaging/topics/{topicId}/subscribers/{subscriberId}'.replace('{topicId}', topicId).replace('{subscriberId}', subscriberId);
|
|
3450
|
-
const
|
|
3450
|
+
const apiPayload: Payload = {};
|
|
3451
3451
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
3452
3452
|
|
|
3453
3453
|
const apiHeaders: { [header: string]: string } = {
|
|
@@ -3457,7 +3457,7 @@ export class Messaging {
|
|
|
3457
3457
|
'get',
|
|
3458
3458
|
uri,
|
|
3459
3459
|
apiHeaders,
|
|
3460
|
-
|
|
3460
|
+
apiPayload
|
|
3461
3461
|
);
|
|
3462
3462
|
}
|
|
3463
3463
|
}
|