pingram 1.0.4 → 1.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/generated/src/models/EventsWebhookResponse.d.ts +2 -1
- package/dist/generated/src/models/EventsWebhookResponse.js +1 -0
- package/dist/generated/src/models/EventsWebhookUpsertRequest.d.ts +2 -1
- package/dist/generated/src/models/EventsWebhookUpsertRequest.js +1 -0
- package/dist/generated/src/models/LogsGetResponseLogsInner.d.ts +42 -0
- package/dist/generated/src/models/LogsGetResponseLogsInner.js +28 -0
- package/dist/generated/src/models/SenderPostBodyOptions.d.ts +7 -0
- package/dist/generated/src/models/SenderPostBodyOptions.js +7 -2
- package/dist/generated/src/models/SenderPostBodyOptionsPush.d.ts +34 -0
- package/dist/generated/src/models/SenderPostBodyOptionsPush.js +48 -0
- package/dist/generated/src/models/index.d.ts +1 -0
- package/dist/generated/src/models/index.js +1 -0
- package/dist/src/client.js +1 -1
- package/package.json +1 -1
|
@@ -58,7 +58,8 @@ export declare enum EventsWebhookResponseEventsEnum {
|
|
|
58
58
|
WEB_PUSH_FAILED = "WEB_PUSH_FAILED",
|
|
59
59
|
WEB_PUSH_UNSUBSCRIBE = "WEB_PUSH_UNSUBSCRIBE",
|
|
60
60
|
SLACK_FAILED = "SLACK_FAILED",
|
|
61
|
-
SLACK_UNSUBSCRIBE = "SLACK_UNSUBSCRIBE"
|
|
61
|
+
SLACK_UNSUBSCRIBE = "SLACK_UNSUBSCRIBE",
|
|
62
|
+
VOICE_INBOUND = "VOICE_INBOUND"
|
|
62
63
|
}
|
|
63
64
|
/**
|
|
64
65
|
* Check if a given object implements the EventsWebhookResponse interface.
|
|
@@ -45,6 +45,7 @@ var EventsWebhookResponseEventsEnum;
|
|
|
45
45
|
EventsWebhookResponseEventsEnum["WEB_PUSH_UNSUBSCRIBE"] = "WEB_PUSH_UNSUBSCRIBE";
|
|
46
46
|
EventsWebhookResponseEventsEnum["SLACK_FAILED"] = "SLACK_FAILED";
|
|
47
47
|
EventsWebhookResponseEventsEnum["SLACK_UNSUBSCRIBE"] = "SLACK_UNSUBSCRIBE";
|
|
48
|
+
EventsWebhookResponseEventsEnum["VOICE_INBOUND"] = "VOICE_INBOUND";
|
|
48
49
|
})(EventsWebhookResponseEventsEnum || (exports.EventsWebhookResponseEventsEnum = EventsWebhookResponseEventsEnum = {}));
|
|
49
50
|
/**
|
|
50
51
|
* Check if a given object implements the EventsWebhookResponse interface.
|
|
@@ -52,7 +52,8 @@ export declare enum EventsWebhookUpsertRequestEventsEnum {
|
|
|
52
52
|
WEB_PUSH_FAILED = "WEB_PUSH_FAILED",
|
|
53
53
|
WEB_PUSH_UNSUBSCRIBE = "WEB_PUSH_UNSUBSCRIBE",
|
|
54
54
|
SLACK_FAILED = "SLACK_FAILED",
|
|
55
|
-
SLACK_UNSUBSCRIBE = "SLACK_UNSUBSCRIBE"
|
|
55
|
+
SLACK_UNSUBSCRIBE = "SLACK_UNSUBSCRIBE",
|
|
56
|
+
VOICE_INBOUND = "VOICE_INBOUND"
|
|
56
57
|
}
|
|
57
58
|
/**
|
|
58
59
|
* Check if a given object implements the EventsWebhookUpsertRequest interface.
|
|
@@ -45,6 +45,7 @@ var EventsWebhookUpsertRequestEventsEnum;
|
|
|
45
45
|
EventsWebhookUpsertRequestEventsEnum["WEB_PUSH_UNSUBSCRIBE"] = "WEB_PUSH_UNSUBSCRIBE";
|
|
46
46
|
EventsWebhookUpsertRequestEventsEnum["SLACK_FAILED"] = "SLACK_FAILED";
|
|
47
47
|
EventsWebhookUpsertRequestEventsEnum["SLACK_UNSUBSCRIBE"] = "SLACK_UNSUBSCRIBE";
|
|
48
|
+
EventsWebhookUpsertRequestEventsEnum["VOICE_INBOUND"] = "VOICE_INBOUND";
|
|
48
49
|
})(EventsWebhookUpsertRequestEventsEnum || (exports.EventsWebhookUpsertRequestEventsEnum = EventsWebhookUpsertRequestEventsEnum = {}));
|
|
49
50
|
/**
|
|
50
51
|
* Check if a given object implements the EventsWebhookUpsertRequest interface.
|
|
@@ -225,6 +225,12 @@ export interface LogsGetResponseLogsInner {
|
|
|
225
225
|
* @memberof LogsGetResponseLogsInner
|
|
226
226
|
*/
|
|
227
227
|
email_delivered_after?: number;
|
|
228
|
+
/**
|
|
229
|
+
*
|
|
230
|
+
* @type {string}
|
|
231
|
+
* @memberof LogsGetResponseLogsInner
|
|
232
|
+
*/
|
|
233
|
+
email_delivered_webhook_res?: string;
|
|
228
234
|
/**
|
|
229
235
|
*
|
|
230
236
|
* @type {string}
|
|
@@ -255,6 +261,12 @@ export interface LogsGetResponseLogsInner {
|
|
|
255
261
|
* @memberof LogsGetResponseLogsInner
|
|
256
262
|
*/
|
|
257
263
|
email_failed_internal?: string;
|
|
264
|
+
/**
|
|
265
|
+
*
|
|
266
|
+
* @type {string}
|
|
267
|
+
* @memberof LogsGetResponseLogsInner
|
|
268
|
+
*/
|
|
269
|
+
email_failed_webhook_res?: string;
|
|
258
270
|
/**
|
|
259
271
|
*
|
|
260
272
|
* @type {string}
|
|
@@ -273,6 +285,12 @@ export interface LogsGetResponseLogsInner {
|
|
|
273
285
|
* @memberof LogsGetResponseLogsInner
|
|
274
286
|
*/
|
|
275
287
|
email_opened_ip?: string;
|
|
288
|
+
/**
|
|
289
|
+
*
|
|
290
|
+
* @type {string}
|
|
291
|
+
* @memberof LogsGetResponseLogsInner
|
|
292
|
+
*/
|
|
293
|
+
email_opened_webhook_res?: string;
|
|
276
294
|
/**
|
|
277
295
|
*
|
|
278
296
|
* @type {string}
|
|
@@ -303,6 +321,12 @@ export interface LogsGetResponseLogsInner {
|
|
|
303
321
|
* @memberof LogsGetResponseLogsInner
|
|
304
322
|
*/
|
|
305
323
|
email_clicked_link_tags?: string;
|
|
324
|
+
/**
|
|
325
|
+
*
|
|
326
|
+
* @type {string}
|
|
327
|
+
* @memberof LogsGetResponseLogsInner
|
|
328
|
+
*/
|
|
329
|
+
email_clicked_webhook_res?: string;
|
|
306
330
|
/**
|
|
307
331
|
*
|
|
308
332
|
* @type {string}
|
|
@@ -405,6 +429,12 @@ export interface LogsGetResponseLogsInner {
|
|
|
405
429
|
* @memberof LogsGetResponseLogsInner
|
|
406
430
|
*/
|
|
407
431
|
email_inbound_webhook_delivered?: boolean;
|
|
432
|
+
/**
|
|
433
|
+
*
|
|
434
|
+
* @type {string}
|
|
435
|
+
* @memberof LogsGetResponseLogsInner
|
|
436
|
+
*/
|
|
437
|
+
email_inbound_webhook_res?: string;
|
|
408
438
|
/**
|
|
409
439
|
*
|
|
410
440
|
* @type {string}
|
|
@@ -435,6 +465,12 @@ export interface LogsGetResponseLogsInner {
|
|
|
435
465
|
* @memberof LogsGetResponseLogsInner
|
|
436
466
|
*/
|
|
437
467
|
sms_inbound_webhook_delivered?: boolean;
|
|
468
|
+
/**
|
|
469
|
+
*
|
|
470
|
+
* @type {string}
|
|
471
|
+
* @memberof LogsGetResponseLogsInner
|
|
472
|
+
*/
|
|
473
|
+
sms_inbound_webhook_res?: string;
|
|
438
474
|
/**
|
|
439
475
|
*
|
|
440
476
|
* @type {string}
|
|
@@ -885,6 +921,12 @@ export interface LogsGetResponseLogsInner {
|
|
|
885
921
|
* @memberof LogsGetResponseLogsInner
|
|
886
922
|
*/
|
|
887
923
|
sms_sent_country?: string;
|
|
924
|
+
/**
|
|
925
|
+
* Unique message ID from provider (Twilio SID or Telnyx ID)
|
|
926
|
+
* @type {string}
|
|
927
|
+
* @memberof LogsGetResponseLogsInner
|
|
928
|
+
*/
|
|
929
|
+
sms_sent_messageId?: string;
|
|
888
930
|
/**
|
|
889
931
|
* Actual cost from Telnyx/Twilio (internal)
|
|
890
932
|
* @type {number}
|
|
@@ -462,6 +462,9 @@ function LogsGetResponseLogsInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
462
462
|
email_delivered_after: json['email_delivered_after'] == null
|
|
463
463
|
? undefined
|
|
464
464
|
: json['email_delivered_after'],
|
|
465
|
+
email_delivered_webhook_res: json['email_delivered_webhook_res'] == null
|
|
466
|
+
? undefined
|
|
467
|
+
: json['email_delivered_webhook_res'],
|
|
465
468
|
email_failed_at: json['email_failed_at'] == null ? undefined : json['email_failed_at'],
|
|
466
469
|
email_failed_code: json['email_failed_code'] == null ? undefined : json['email_failed_code'],
|
|
467
470
|
email_failed_recipient: json['email_failed_recipient'] == null
|
|
@@ -473,11 +476,17 @@ function LogsGetResponseLogsInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
473
476
|
email_failed_internal: json['email_failed_internal'] == null
|
|
474
477
|
? undefined
|
|
475
478
|
: json['email_failed_internal'],
|
|
479
|
+
email_failed_webhook_res: json['email_failed_webhook_res'] == null
|
|
480
|
+
? undefined
|
|
481
|
+
: json['email_failed_webhook_res'],
|
|
476
482
|
email_opened_at: json['email_opened_at'] == null ? undefined : json['email_opened_at'],
|
|
477
483
|
email_opened_user_agent: json['email_opened_user_agent'] == null
|
|
478
484
|
? undefined
|
|
479
485
|
: json['email_opened_user_agent'],
|
|
480
486
|
email_opened_ip: json['email_opened_ip'] == null ? undefined : json['email_opened_ip'],
|
|
487
|
+
email_opened_webhook_res: json['email_opened_webhook_res'] == null
|
|
488
|
+
? undefined
|
|
489
|
+
: json['email_opened_webhook_res'],
|
|
481
490
|
email_clicked_at: json['email_clicked_at'] == null ? undefined : json['email_clicked_at'],
|
|
482
491
|
email_clicked_user_agent: json['email_clicked_user_agent'] == null
|
|
483
492
|
? undefined
|
|
@@ -489,6 +498,9 @@ function LogsGetResponseLogsInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
489
498
|
email_clicked_link_tags: json['email_clicked_link_tags'] == null
|
|
490
499
|
? undefined
|
|
491
500
|
: json['email_clicked_link_tags'],
|
|
501
|
+
email_clicked_webhook_res: json['email_clicked_webhook_res'] == null
|
|
502
|
+
? undefined
|
|
503
|
+
: json['email_clicked_webhook_res'],
|
|
492
504
|
email_inbound_at: json['email_inbound_at'] == null ? undefined : json['email_inbound_at'],
|
|
493
505
|
email_inbound_from: json['email_inbound_from'] == null
|
|
494
506
|
? undefined
|
|
@@ -532,6 +544,9 @@ function LogsGetResponseLogsInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
532
544
|
email_inbound_webhook_delivered: json['email_inbound_webhook_delivered'] == null
|
|
533
545
|
? undefined
|
|
534
546
|
: json['email_inbound_webhook_delivered'],
|
|
547
|
+
email_inbound_webhook_res: json['email_inbound_webhook_res'] == null
|
|
548
|
+
? undefined
|
|
549
|
+
: json['email_inbound_webhook_res'],
|
|
535
550
|
email_inbound_resolution_type: json['email_inbound_resolution_type'] == null
|
|
536
551
|
? undefined
|
|
537
552
|
: json['email_inbound_resolution_type'],
|
|
@@ -541,6 +556,9 @@ function LogsGetResponseLogsInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
541
556
|
sms_inbound_webhook_delivered: json['sms_inbound_webhook_delivered'] == null
|
|
542
557
|
? undefined
|
|
543
558
|
: json['sms_inbound_webhook_delivered'],
|
|
559
|
+
sms_inbound_webhook_res: json['sms_inbound_webhook_res'] == null
|
|
560
|
+
? undefined
|
|
561
|
+
: json['sms_inbound_webhook_res'],
|
|
544
562
|
sms_replied_at: json['sms_replied_at'] == null ? undefined : json['sms_replied_at'],
|
|
545
563
|
sms_replied_to: json['sms_replied_to'] == null ? undefined : json['sms_replied_to'],
|
|
546
564
|
sms_replied_text: json['sms_replied_text'] == null ? undefined : json['sms_replied_text'],
|
|
@@ -680,6 +698,9 @@ function LogsGetResponseLogsInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
680
698
|
sms_sent_parts: json['sms_sent_parts'] == null ? undefined : json['sms_sent_parts'],
|
|
681
699
|
sms_sent_cost: json['sms_sent_cost'] == null ? undefined : json['sms_sent_cost'],
|
|
682
700
|
sms_sent_country: json['sms_sent_country'] == null ? undefined : json['sms_sent_country'],
|
|
701
|
+
sms_sent_messageId: json['sms_sent_messageId'] == null
|
|
702
|
+
? undefined
|
|
703
|
+
: json['sms_sent_messageId'],
|
|
683
704
|
sms_carrier_cost_internal: json['sms_carrier_cost_internal'] == null
|
|
684
705
|
? undefined
|
|
685
706
|
: json['sms_carrier_cost_internal'],
|
|
@@ -748,19 +769,23 @@ function LogsGetResponseLogsInnerToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
748
769
|
email_delivered_at: value['email_delivered_at'],
|
|
749
770
|
email_delivered_recipients: value['email_delivered_recipients'],
|
|
750
771
|
email_delivered_after: value['email_delivered_after'],
|
|
772
|
+
email_delivered_webhook_res: value['email_delivered_webhook_res'],
|
|
751
773
|
email_failed_at: value['email_failed_at'],
|
|
752
774
|
email_failed_code: value['email_failed_code'],
|
|
753
775
|
email_failed_recipient: value['email_failed_recipient'],
|
|
754
776
|
email_failed_diagnostic_code: value['email_failed_diagnostic_code'],
|
|
755
777
|
email_failed_internal: value['email_failed_internal'],
|
|
778
|
+
email_failed_webhook_res: value['email_failed_webhook_res'],
|
|
756
779
|
email_opened_at: value['email_opened_at'],
|
|
757
780
|
email_opened_user_agent: value['email_opened_user_agent'],
|
|
758
781
|
email_opened_ip: value['email_opened_ip'],
|
|
782
|
+
email_opened_webhook_res: value['email_opened_webhook_res'],
|
|
759
783
|
email_clicked_at: value['email_clicked_at'],
|
|
760
784
|
email_clicked_user_agent: value['email_clicked_user_agent'],
|
|
761
785
|
email_clicked_ip: value['email_clicked_ip'],
|
|
762
786
|
email_clicked_link: value['email_clicked_link'],
|
|
763
787
|
email_clicked_link_tags: value['email_clicked_link_tags'],
|
|
788
|
+
email_clicked_webhook_res: value['email_clicked_webhook_res'],
|
|
764
789
|
email_inbound_at: value['email_inbound_at'],
|
|
765
790
|
email_inbound_from: value['email_inbound_from'],
|
|
766
791
|
email_inbound_from_name: value['email_inbound_from_name'],
|
|
@@ -778,11 +803,13 @@ function LogsGetResponseLogsInnerToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
778
803
|
email_inbound_in_reply_to: value['email_inbound_in_reply_to'],
|
|
779
804
|
email_inbound_references: value['email_inbound_references'],
|
|
780
805
|
email_inbound_webhook_delivered: value['email_inbound_webhook_delivered'],
|
|
806
|
+
email_inbound_webhook_res: value['email_inbound_webhook_res'],
|
|
781
807
|
email_inbound_resolution_type: value['email_inbound_resolution_type'],
|
|
782
808
|
sms_inbound_at: value['sms_inbound_at'],
|
|
783
809
|
sms_inbound_from: value['sms_inbound_from'],
|
|
784
810
|
sms_inbound_text: value['sms_inbound_text'],
|
|
785
811
|
sms_inbound_webhook_delivered: value['sms_inbound_webhook_delivered'],
|
|
812
|
+
sms_inbound_webhook_res: value['sms_inbound_webhook_res'],
|
|
786
813
|
sms_replied_at: value['sms_replied_at'],
|
|
787
814
|
sms_replied_to: value['sms_replied_to'],
|
|
788
815
|
sms_replied_text: value['sms_replied_text'],
|
|
@@ -858,6 +885,7 @@ function LogsGetResponseLogsInnerToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
858
885
|
sms_sent_parts: value['sms_sent_parts'],
|
|
859
886
|
sms_sent_cost: value['sms_sent_cost'],
|
|
860
887
|
sms_sent_country: value['sms_sent_country'],
|
|
888
|
+
sms_sent_messageId: value['sms_sent_messageId'],
|
|
861
889
|
sms_carrier_cost_internal: value['sms_carrier_cost_internal'],
|
|
862
890
|
sms_carrier_fee_internal: value['sms_carrier_fee_internal'],
|
|
863
891
|
sms_rate_internal: value['sms_rate_internal'],
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { SenderPostBodyOptionsApn } from './SenderPostBodyOptionsApn';
|
|
13
13
|
import type { SenderPostBodyOptionsFcm } from './SenderPostBodyOptionsFcm';
|
|
14
|
+
import type { SenderPostBodyOptionsPush } from './SenderPostBodyOptionsPush';
|
|
14
15
|
import type { SenderPostBodyOptionsEmail } from './SenderPostBodyOptionsEmail';
|
|
15
16
|
/**
|
|
16
17
|
* Per-channel overrides for send options (email, APN, FCM).
|
|
@@ -36,6 +37,12 @@ export interface SenderPostBodyOptions {
|
|
|
36
37
|
* @memberof SenderPostBodyOptions
|
|
37
38
|
*/
|
|
38
39
|
fcm?: SenderPostBodyOptionsFcm;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {SenderPostBodyOptionsPush}
|
|
43
|
+
* @memberof SenderPostBodyOptions
|
|
44
|
+
*/
|
|
45
|
+
push?: SenderPostBodyOptionsPush;
|
|
39
46
|
}
|
|
40
47
|
/**
|
|
41
48
|
* Check if a given object implements the SenderPostBodyOptions interface.
|
|
@@ -20,6 +20,7 @@ exports.SenderPostBodyOptionsToJSON = SenderPostBodyOptionsToJSON;
|
|
|
20
20
|
exports.SenderPostBodyOptionsToJSONTyped = SenderPostBodyOptionsToJSONTyped;
|
|
21
21
|
const SenderPostBodyOptionsApn_1 = require("./SenderPostBodyOptionsApn");
|
|
22
22
|
const SenderPostBodyOptionsFcm_1 = require("./SenderPostBodyOptionsFcm");
|
|
23
|
+
const SenderPostBodyOptionsPush_1 = require("./SenderPostBodyOptionsPush");
|
|
23
24
|
const SenderPostBodyOptionsEmail_1 = require("./SenderPostBodyOptionsEmail");
|
|
24
25
|
/**
|
|
25
26
|
* Check if a given object implements the SenderPostBodyOptions interface.
|
|
@@ -43,7 +44,10 @@ function SenderPostBodyOptionsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
43
44
|
: (0, SenderPostBodyOptionsApn_1.SenderPostBodyOptionsApnFromJSON)(json['apn']),
|
|
44
45
|
fcm: json['fcm'] == null
|
|
45
46
|
? undefined
|
|
46
|
-
: (0, SenderPostBodyOptionsFcm_1.SenderPostBodyOptionsFcmFromJSON)(json['fcm'])
|
|
47
|
+
: (0, SenderPostBodyOptionsFcm_1.SenderPostBodyOptionsFcmFromJSON)(json['fcm']),
|
|
48
|
+
push: json['push'] == null
|
|
49
|
+
? undefined
|
|
50
|
+
: (0, SenderPostBodyOptionsPush_1.SenderPostBodyOptionsPushFromJSON)(json['push'])
|
|
47
51
|
};
|
|
48
52
|
}
|
|
49
53
|
function SenderPostBodyOptionsToJSON(json) {
|
|
@@ -56,6 +60,7 @@ function SenderPostBodyOptionsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
56
60
|
return {
|
|
57
61
|
email: (0, SenderPostBodyOptionsEmail_1.SenderPostBodyOptionsEmailToJSON)(value['email']),
|
|
58
62
|
apn: (0, SenderPostBodyOptionsApn_1.SenderPostBodyOptionsApnToJSON)(value['apn']),
|
|
59
|
-
fcm: (0, SenderPostBodyOptionsFcm_1.SenderPostBodyOptionsFcmToJSON)(value['fcm'])
|
|
63
|
+
fcm: (0, SenderPostBodyOptionsFcm_1.SenderPostBodyOptionsFcmToJSON)(value['fcm']),
|
|
64
|
+
push: (0, SenderPostBodyOptionsPush_1.SenderPostBodyOptionsPushToJSON)(value['push'])
|
|
60
65
|
};
|
|
61
66
|
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pingram
|
|
3
|
+
* Internal API for notification delivery and management
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Cross-platform mobile push options (applied to both APN and FCM).
|
|
14
|
+
* @export
|
|
15
|
+
* @interface SenderPostBodyOptionsPush
|
|
16
|
+
*/
|
|
17
|
+
export interface SenderPostBodyOptionsPush {
|
|
18
|
+
/**
|
|
19
|
+
* Up to 3 custom string key-value pairs for deep linking. Included in both APN and FCM payloads.
|
|
20
|
+
* @type {{ [key: string]: string; }}
|
|
21
|
+
* @memberof SenderPostBodyOptionsPush
|
|
22
|
+
*/
|
|
23
|
+
customData?: {
|
|
24
|
+
[key: string]: string;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Check if a given object implements the SenderPostBodyOptionsPush interface.
|
|
29
|
+
*/
|
|
30
|
+
export declare function instanceOfSenderPostBodyOptionsPush(value: object): value is SenderPostBodyOptionsPush;
|
|
31
|
+
export declare function SenderPostBodyOptionsPushFromJSON(json: any): SenderPostBodyOptionsPush;
|
|
32
|
+
export declare function SenderPostBodyOptionsPushFromJSONTyped(json: any, ignoreDiscriminator: boolean): SenderPostBodyOptionsPush;
|
|
33
|
+
export declare function SenderPostBodyOptionsPushToJSON(json: any): SenderPostBodyOptionsPush;
|
|
34
|
+
export declare function SenderPostBodyOptionsPushToJSONTyped(value?: SenderPostBodyOptionsPush | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Pingram
|
|
6
|
+
* Internal API for notification delivery and management
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfSenderPostBodyOptionsPush = instanceOfSenderPostBodyOptionsPush;
|
|
17
|
+
exports.SenderPostBodyOptionsPushFromJSON = SenderPostBodyOptionsPushFromJSON;
|
|
18
|
+
exports.SenderPostBodyOptionsPushFromJSONTyped = SenderPostBodyOptionsPushFromJSONTyped;
|
|
19
|
+
exports.SenderPostBodyOptionsPushToJSON = SenderPostBodyOptionsPushToJSON;
|
|
20
|
+
exports.SenderPostBodyOptionsPushToJSONTyped = SenderPostBodyOptionsPushToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the SenderPostBodyOptionsPush interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfSenderPostBodyOptionsPush(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function SenderPostBodyOptionsPushFromJSON(json) {
|
|
28
|
+
return SenderPostBodyOptionsPushFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function SenderPostBodyOptionsPushFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
customData: json['customData'] == null ? undefined : json['customData']
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
function SenderPostBodyOptionsPushToJSON(json) {
|
|
39
|
+
return SenderPostBodyOptionsPushToJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function SenderPostBodyOptionsPushToJSONTyped(value, ignoreDiscriminator = false) {
|
|
42
|
+
if (value == null) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
customData: value['customData']
|
|
47
|
+
};
|
|
48
|
+
}
|
|
@@ -143,6 +143,7 @@ export * from './SenderPostBodyOptionsEmailAttachmentsInnerAnyOf';
|
|
|
143
143
|
export * from './SenderPostBodyOptionsEmailAttachmentsInnerAnyOf1';
|
|
144
144
|
export * from './SenderPostBodyOptionsFcm';
|
|
145
145
|
export * from './SenderPostBodyOptionsFcmAndroid';
|
|
146
|
+
export * from './SenderPostBodyOptionsPush';
|
|
146
147
|
export * from './SenderPostBodySlack';
|
|
147
148
|
export * from './SenderPostBodySms';
|
|
148
149
|
export * from './SenderPostBodySmsAutoReply';
|
|
@@ -161,6 +161,7 @@ __exportStar(require("./SenderPostBodyOptionsEmailAttachmentsInnerAnyOf"), expor
|
|
|
161
161
|
__exportStar(require("./SenderPostBodyOptionsEmailAttachmentsInnerAnyOf1"), exports);
|
|
162
162
|
__exportStar(require("./SenderPostBodyOptionsFcm"), exports);
|
|
163
163
|
__exportStar(require("./SenderPostBodyOptionsFcmAndroid"), exports);
|
|
164
|
+
__exportStar(require("./SenderPostBodyOptionsPush"), exports);
|
|
164
165
|
__exportStar(require("./SenderPostBodySlack"), exports);
|
|
165
166
|
__exportStar(require("./SenderPostBodySms"), exports);
|
|
166
167
|
__exportStar(require("./SenderPostBodySmsAutoReply"), exports);
|
package/dist/src/client.js
CHANGED
|
@@ -8,7 +8,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
8
8
|
exports.Pingram = void 0;
|
|
9
9
|
const src_1 = require("../generated/src");
|
|
10
10
|
// SDK version for User-Agent header (injected at codegen time)
|
|
11
|
-
const SDK_VERSION = '1.0.
|
|
11
|
+
const SDK_VERSION = '1.0.5';
|
|
12
12
|
const USER_AGENT = `pingram-node/${SDK_VERSION}`;
|
|
13
13
|
const src_2 = require("../generated/src");
|
|
14
14
|
const src_3 = require("../generated/src");
|