pingram 0.1.3-alpha.774 → 0.1.4-alpha.775
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/TemplatePatchRequest.d.ts +10 -10
- package/dist/generated/src/models/TemplatePatchRequestAnyOf.d.ts +7 -7
- package/dist/generated/src/models/TemplatePatchRequestAnyOf1.d.ts +4 -4
- package/dist/generated/src/models/TemplatePatchRequestAnyOf1Batch.d.ts +1 -1
- package/dist/generated/src/models/TemplatePatchRequestAnyOf1Instant.d.ts +2 -2
- package/dist/generated/src/models/TemplatePostRequest.d.ts +114 -3
- package/dist/generated/src/models/TemplatePostRequest.js +44 -4
- package/dist/generated/src/models/TemplatePostRequestBatch.d.ts +44 -0
- package/dist/generated/src/models/TemplatePostRequestBatch.js +58 -0
- package/dist/generated/src/models/TemplatePostRequestInstant.d.ts +44 -0
- package/dist/generated/src/models/TemplatePostRequestInstant.js +54 -0
- package/dist/generated/src/models/index.d.ts +2 -0
- package/dist/generated/src/models/index.js +2 -0
- package/package.json +1 -1
|
@@ -12,61 +12,61 @@
|
|
|
12
12
|
import type { TemplatePatchRequestAnyOf1Instant } from './TemplatePatchRequestAnyOf1Instant';
|
|
13
13
|
import type { TemplatePatchRequestAnyOf1Batch } from './TemplatePatchRequestAnyOf1Batch';
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Request body for updating a template. Use EMAIL fields (html, subject, senderName, etc.) when channel is EMAIL. Use INAPP_WEB fields (title, redirectURL, imageURL, instant, batch) when channel is INAPP_WEB. Other channels have their own shapes; only include properties that apply to the channel.
|
|
16
16
|
* @export
|
|
17
17
|
* @interface TemplatePatchRequest
|
|
18
18
|
*/
|
|
19
19
|
export interface TemplatePatchRequest {
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* HTML body of the email.
|
|
22
22
|
* @type {string}
|
|
23
23
|
* @memberof TemplatePatchRequest
|
|
24
24
|
*/
|
|
25
25
|
html?: string;
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Internal editor representation of the email content (e.g. Bee or Redactor JSON). Used for editing and component embedding; the actual email sent to recipients uses the html field.
|
|
28
28
|
* @type {string}
|
|
29
29
|
* @memberof TemplatePatchRequest
|
|
30
30
|
*/
|
|
31
31
|
internal?: string;
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
33
|
+
* Email subject line.
|
|
34
34
|
* @type {string}
|
|
35
35
|
* @memberof TemplatePatchRequest
|
|
36
36
|
*/
|
|
37
37
|
subject?: string;
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
39
|
+
* Sender display name.
|
|
40
40
|
* @type {string}
|
|
41
41
|
* @memberof TemplatePatchRequest
|
|
42
42
|
*/
|
|
43
43
|
senderName?: string;
|
|
44
44
|
/**
|
|
45
|
-
*
|
|
45
|
+
* Sender email address.
|
|
46
46
|
* @type {string}
|
|
47
47
|
* @memberof TemplatePatchRequest
|
|
48
48
|
*/
|
|
49
49
|
senderEmail?: string;
|
|
50
50
|
/**
|
|
51
|
-
*
|
|
51
|
+
* Migration metadata (e.g. from template migration).
|
|
52
52
|
* @type {string}
|
|
53
53
|
* @memberof TemplatePatchRequest
|
|
54
54
|
*/
|
|
55
55
|
migration?: string;
|
|
56
56
|
/**
|
|
57
|
-
*
|
|
57
|
+
* Notification title (in-app).
|
|
58
58
|
* @type {string}
|
|
59
59
|
* @memberof TemplatePatchRequest
|
|
60
60
|
*/
|
|
61
61
|
title?: string;
|
|
62
62
|
/**
|
|
63
|
-
*
|
|
63
|
+
* URL to open when the user taps the notification.
|
|
64
64
|
* @type {string}
|
|
65
65
|
* @memberof TemplatePatchRequest
|
|
66
66
|
*/
|
|
67
67
|
redirectURL?: string;
|
|
68
68
|
/**
|
|
69
|
-
*
|
|
69
|
+
* Image URL shown in the in-app notification.
|
|
70
70
|
* @type {string}
|
|
71
71
|
* @memberof TemplatePatchRequest
|
|
72
72
|
*/
|
|
@@ -10,43 +10,43 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Properties for updating an EMAIL channel template. All fields are optional; only provided fields are updated.
|
|
14
14
|
* @export
|
|
15
15
|
* @interface TemplatePatchRequestAnyOf
|
|
16
16
|
*/
|
|
17
17
|
export interface TemplatePatchRequestAnyOf {
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* HTML body of the email.
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof TemplatePatchRequestAnyOf
|
|
22
22
|
*/
|
|
23
23
|
html?: string;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* Internal editor representation of the email content (e.g. Bee or Redactor JSON). Used for editing and component embedding; the actual email sent to recipients uses the html field.
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof TemplatePatchRequestAnyOf
|
|
28
28
|
*/
|
|
29
29
|
internal?: string;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Email subject line.
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof TemplatePatchRequestAnyOf
|
|
34
34
|
*/
|
|
35
35
|
subject?: string;
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* Sender display name.
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof TemplatePatchRequestAnyOf
|
|
40
40
|
*/
|
|
41
41
|
senderName?: string;
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
43
|
+
* Sender email address.
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof TemplatePatchRequestAnyOf
|
|
46
46
|
*/
|
|
47
47
|
senderEmail?: string;
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
49
|
+
* Migration metadata (e.g. from template migration).
|
|
50
50
|
* @type {string}
|
|
51
51
|
* @memberof TemplatePatchRequestAnyOf
|
|
52
52
|
*/
|
|
@@ -12,25 +12,25 @@
|
|
|
12
12
|
import type { TemplatePatchRequestAnyOf1Instant } from './TemplatePatchRequestAnyOf1Instant';
|
|
13
13
|
import type { TemplatePatchRequestAnyOf1Batch } from './TemplatePatchRequestAnyOf1Batch';
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Properties for updating an INAPP_WEB channel template. All fields are optional; only provided fields are updated. instant and batch configure delivery-mode-specific copy (real-time vs batched).
|
|
16
16
|
* @export
|
|
17
17
|
* @interface TemplatePatchRequestAnyOf1
|
|
18
18
|
*/
|
|
19
19
|
export interface TemplatePatchRequestAnyOf1 {
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* Notification title (in-app).
|
|
22
22
|
* @type {string}
|
|
23
23
|
* @memberof TemplatePatchRequestAnyOf1
|
|
24
24
|
*/
|
|
25
25
|
title?: string;
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* URL to open when the user taps the notification.
|
|
28
28
|
* @type {string}
|
|
29
29
|
* @memberof TemplatePatchRequestAnyOf1
|
|
30
30
|
*/
|
|
31
31
|
redirectURL?: string;
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
33
|
+
* Image URL shown in the in-app notification.
|
|
34
34
|
* @type {string}
|
|
35
35
|
* @memberof TemplatePatchRequestAnyOf1
|
|
36
36
|
*/
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* In-app instant delivery: title, redirect URL, and image URL shown when the notification is delivered in real time.
|
|
14
14
|
* @export
|
|
15
15
|
* @interface TemplatePatchRequestAnyOf1Instant
|
|
16
16
|
*/
|
|
@@ -28,7 +28,7 @@ export interface TemplatePatchRequestAnyOf1Instant {
|
|
|
28
28
|
*/
|
|
29
29
|
redirectURL?: string;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Required for instant. Image URL shown in the in-app notification.
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof TemplatePatchRequestAnyOf1Instant
|
|
34
34
|
*/
|
|
@@ -9,19 +9,130 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { TemplatePostRequestBatch } from './TemplatePostRequestBatch';
|
|
13
|
+
import type { TemplatePostRequestInstant } from './TemplatePostRequestInstant';
|
|
12
14
|
/**
|
|
13
|
-
*
|
|
15
|
+
* Request body for creating a template. Include templateId (required) plus any channel-specific fields for the channel in the path. Which fields apply depends on the channel (EMAIL, INAPP_WEB, SMS, PUSH, etc.).
|
|
14
16
|
* @export
|
|
15
17
|
* @interface TemplatePostRequest
|
|
16
18
|
*/
|
|
17
19
|
export interface TemplatePostRequest {
|
|
18
|
-
[key: string]: any | any;
|
|
19
20
|
/**
|
|
20
|
-
*
|
|
21
|
+
* Unique ID for this template within the notification and channel. Required.
|
|
21
22
|
* @type {string}
|
|
22
23
|
* @memberof TemplatePostRequest
|
|
23
24
|
*/
|
|
24
25
|
templateId: string;
|
|
26
|
+
/**
|
|
27
|
+
* HTML body of the email.
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof TemplatePostRequest
|
|
30
|
+
*/
|
|
31
|
+
html?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Preview text (e.g. for inbox).
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof TemplatePostRequest
|
|
36
|
+
*/
|
|
37
|
+
previewText?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Internal editor representation of the email content (e.g. Bee or Redactor JSON). Used for editing and component embedding; the actual email sent to recipients uses the html field.
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof TemplatePostRequest
|
|
42
|
+
*/
|
|
43
|
+
internal?: string;
|
|
44
|
+
/**
|
|
45
|
+
* Email subject line.
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof TemplatePostRequest
|
|
48
|
+
*/
|
|
49
|
+
subject?: string;
|
|
50
|
+
/**
|
|
51
|
+
* Sender display name.
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof TemplatePostRequest
|
|
54
|
+
*/
|
|
55
|
+
senderName?: string;
|
|
56
|
+
/**
|
|
57
|
+
* Sender email address.
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof TemplatePostRequest
|
|
60
|
+
*/
|
|
61
|
+
senderEmail?: string;
|
|
62
|
+
/**
|
|
63
|
+
* Migration metadata (e.g. from template migration).
|
|
64
|
+
* @type {string}
|
|
65
|
+
* @memberof TemplatePostRequest
|
|
66
|
+
*/
|
|
67
|
+
migration?: string;
|
|
68
|
+
/**
|
|
69
|
+
* Notification title (in-app).
|
|
70
|
+
* @type {string}
|
|
71
|
+
* @memberof TemplatePostRequest
|
|
72
|
+
*/
|
|
73
|
+
title?: string;
|
|
74
|
+
/**
|
|
75
|
+
* URL to open when the user taps the notification.
|
|
76
|
+
* @type {string}
|
|
77
|
+
* @memberof TemplatePostRequest
|
|
78
|
+
*/
|
|
79
|
+
redirectURL?: string;
|
|
80
|
+
/**
|
|
81
|
+
* Image URL shown in the in-app notification.
|
|
82
|
+
* @type {string}
|
|
83
|
+
* @memberof TemplatePostRequest
|
|
84
|
+
*/
|
|
85
|
+
imageURL?: string;
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
* @type {TemplatePostRequestInstant}
|
|
89
|
+
* @memberof TemplatePostRequest
|
|
90
|
+
*/
|
|
91
|
+
instant?: TemplatePostRequestInstant;
|
|
92
|
+
/**
|
|
93
|
+
*
|
|
94
|
+
* @type {TemplatePostRequestBatch}
|
|
95
|
+
* @memberof TemplatePostRequest
|
|
96
|
+
*/
|
|
97
|
+
batch?: TemplatePostRequestBatch;
|
|
98
|
+
/**
|
|
99
|
+
* Message text (SMS or call).
|
|
100
|
+
* @type {string}
|
|
101
|
+
* @memberof TemplatePostRequest
|
|
102
|
+
*/
|
|
103
|
+
text?: string;
|
|
104
|
+
/**
|
|
105
|
+
* Push notification body text. (title is shared with INAPP_WEB above.)
|
|
106
|
+
* @type {string}
|
|
107
|
+
* @memberof TemplatePostRequest
|
|
108
|
+
*/
|
|
109
|
+
message?: string;
|
|
110
|
+
/**
|
|
111
|
+
* Web push: icon URL. Slack: bot icon (emoji or URL).
|
|
112
|
+
* @type {string}
|
|
113
|
+
* @memberof TemplatePostRequest
|
|
114
|
+
*/
|
|
115
|
+
icon?: string;
|
|
116
|
+
/**
|
|
117
|
+
* Web push: URL to open when the notification is clicked.
|
|
118
|
+
* @type {string}
|
|
119
|
+
* @memberof TemplatePostRequest
|
|
120
|
+
*/
|
|
121
|
+
url?: string;
|
|
122
|
+
/**
|
|
123
|
+
* Slack message blocks (optional).
|
|
124
|
+
* @type {Array<{ [key: string]: any; }>}
|
|
125
|
+
* @memberof TemplatePostRequest
|
|
126
|
+
*/
|
|
127
|
+
blocks?: Array<{
|
|
128
|
+
[key: string]: any;
|
|
129
|
+
}>;
|
|
130
|
+
/**
|
|
131
|
+
* Slack bot username.
|
|
132
|
+
* @type {string}
|
|
133
|
+
* @memberof TemplatePostRequest
|
|
134
|
+
*/
|
|
135
|
+
username?: string;
|
|
25
136
|
}
|
|
26
137
|
/**
|
|
27
138
|
* Check if a given object implements the TemplatePostRequest interface.
|
|
@@ -18,6 +18,8 @@ exports.TemplatePostRequestFromJSON = TemplatePostRequestFromJSON;
|
|
|
18
18
|
exports.TemplatePostRequestFromJSONTyped = TemplatePostRequestFromJSONTyped;
|
|
19
19
|
exports.TemplatePostRequestToJSON = TemplatePostRequestToJSON;
|
|
20
20
|
exports.TemplatePostRequestToJSONTyped = TemplatePostRequestToJSONTyped;
|
|
21
|
+
const TemplatePostRequestBatch_1 = require("./TemplatePostRequestBatch");
|
|
22
|
+
const TemplatePostRequestInstant_1 = require("./TemplatePostRequestInstant");
|
|
21
23
|
/**
|
|
22
24
|
* Check if a given object implements the TemplatePostRequest interface.
|
|
23
25
|
*/
|
|
@@ -34,8 +36,29 @@ function TemplatePostRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
34
36
|
return json;
|
|
35
37
|
}
|
|
36
38
|
return {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
+
templateId: json['templateId'],
|
|
40
|
+
html: json['html'] == null ? undefined : json['html'],
|
|
41
|
+
previewText: json['previewText'] == null ? undefined : json['previewText'],
|
|
42
|
+
internal: json['internal'] == null ? undefined : json['internal'],
|
|
43
|
+
subject: json['subject'] == null ? undefined : json['subject'],
|
|
44
|
+
senderName: json['senderName'] == null ? undefined : json['senderName'],
|
|
45
|
+
senderEmail: json['senderEmail'] == null ? undefined : json['senderEmail'],
|
|
46
|
+
migration: json['migration'] == null ? undefined : json['migration'],
|
|
47
|
+
title: json['title'] == null ? undefined : json['title'],
|
|
48
|
+
redirectURL: json['redirectURL'] == null ? undefined : json['redirectURL'],
|
|
49
|
+
imageURL: json['imageURL'] == null ? undefined : json['imageURL'],
|
|
50
|
+
instant: json['instant'] == null
|
|
51
|
+
? undefined
|
|
52
|
+
: (0, TemplatePostRequestInstant_1.TemplatePostRequestInstantFromJSON)(json['instant']),
|
|
53
|
+
batch: json['batch'] == null
|
|
54
|
+
? undefined
|
|
55
|
+
: (0, TemplatePostRequestBatch_1.TemplatePostRequestBatchFromJSON)(json['batch']),
|
|
56
|
+
text: json['text'] == null ? undefined : json['text'],
|
|
57
|
+
message: json['message'] == null ? undefined : json['message'],
|
|
58
|
+
icon: json['icon'] == null ? undefined : json['icon'],
|
|
59
|
+
url: json['url'] == null ? undefined : json['url'],
|
|
60
|
+
blocks: json['blocks'] == null ? undefined : json['blocks'],
|
|
61
|
+
username: json['username'] == null ? undefined : json['username']
|
|
39
62
|
};
|
|
40
63
|
}
|
|
41
64
|
function TemplatePostRequestToJSON(json) {
|
|
@@ -46,7 +69,24 @@ function TemplatePostRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
46
69
|
return value;
|
|
47
70
|
}
|
|
48
71
|
return {
|
|
49
|
-
|
|
50
|
-
|
|
72
|
+
templateId: value['templateId'],
|
|
73
|
+
html: value['html'],
|
|
74
|
+
previewText: value['previewText'],
|
|
75
|
+
internal: value['internal'],
|
|
76
|
+
subject: value['subject'],
|
|
77
|
+
senderName: value['senderName'],
|
|
78
|
+
senderEmail: value['senderEmail'],
|
|
79
|
+
migration: value['migration'],
|
|
80
|
+
title: value['title'],
|
|
81
|
+
redirectURL: value['redirectURL'],
|
|
82
|
+
imageURL: value['imageURL'],
|
|
83
|
+
instant: (0, TemplatePostRequestInstant_1.TemplatePostRequestInstantToJSON)(value['instant']),
|
|
84
|
+
batch: (0, TemplatePostRequestBatch_1.TemplatePostRequestBatchToJSON)(value['batch']),
|
|
85
|
+
text: value['text'],
|
|
86
|
+
message: value['message'],
|
|
87
|
+
icon: value['icon'],
|
|
88
|
+
url: value['url'],
|
|
89
|
+
blocks: value['blocks'],
|
|
90
|
+
username: value['username']
|
|
51
91
|
};
|
|
52
92
|
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NotificationAPI
|
|
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
|
+
* Copy for batch delivery.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface TemplatePostRequestBatch
|
|
16
|
+
*/
|
|
17
|
+
export interface TemplatePostRequestBatch {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof TemplatePostRequestBatch
|
|
22
|
+
*/
|
|
23
|
+
title: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof TemplatePostRequestBatch
|
|
28
|
+
*/
|
|
29
|
+
redirectURL: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof TemplatePostRequestBatch
|
|
34
|
+
*/
|
|
35
|
+
imageURL: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the TemplatePostRequestBatch interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfTemplatePostRequestBatch(value: object): value is TemplatePostRequestBatch;
|
|
41
|
+
export declare function TemplatePostRequestBatchFromJSON(json: any): TemplatePostRequestBatch;
|
|
42
|
+
export declare function TemplatePostRequestBatchFromJSONTyped(json: any, ignoreDiscriminator: boolean): TemplatePostRequestBatch;
|
|
43
|
+
export declare function TemplatePostRequestBatchToJSON(json: any): TemplatePostRequestBatch;
|
|
44
|
+
export declare function TemplatePostRequestBatchToJSONTyped(value?: TemplatePostRequestBatch | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* NotificationAPI
|
|
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.instanceOfTemplatePostRequestBatch = instanceOfTemplatePostRequestBatch;
|
|
17
|
+
exports.TemplatePostRequestBatchFromJSON = TemplatePostRequestBatchFromJSON;
|
|
18
|
+
exports.TemplatePostRequestBatchFromJSONTyped = TemplatePostRequestBatchFromJSONTyped;
|
|
19
|
+
exports.TemplatePostRequestBatchToJSON = TemplatePostRequestBatchToJSON;
|
|
20
|
+
exports.TemplatePostRequestBatchToJSONTyped = TemplatePostRequestBatchToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the TemplatePostRequestBatch interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfTemplatePostRequestBatch(value) {
|
|
25
|
+
if (!('title' in value) || value['title'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('redirectURL' in value) || value['redirectURL'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('imageURL' in value) || value['imageURL'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function TemplatePostRequestBatchFromJSON(json) {
|
|
34
|
+
return TemplatePostRequestBatchFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function TemplatePostRequestBatchFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
title: json['title'],
|
|
42
|
+
redirectURL: json['redirectURL'],
|
|
43
|
+
imageURL: json['imageURL']
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function TemplatePostRequestBatchToJSON(json) {
|
|
47
|
+
return TemplatePostRequestBatchToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function TemplatePostRequestBatchToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
title: value['title'],
|
|
55
|
+
redirectURL: value['redirectURL'],
|
|
56
|
+
imageURL: value['imageURL']
|
|
57
|
+
};
|
|
58
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NotificationAPI
|
|
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
|
+
* Copy for instant (real-time) delivery.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface TemplatePostRequestInstant
|
|
16
|
+
*/
|
|
17
|
+
export interface TemplatePostRequestInstant {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof TemplatePostRequestInstant
|
|
22
|
+
*/
|
|
23
|
+
title?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof TemplatePostRequestInstant
|
|
28
|
+
*/
|
|
29
|
+
redirectURL?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof TemplatePostRequestInstant
|
|
34
|
+
*/
|
|
35
|
+
imageURL: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the TemplatePostRequestInstant interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfTemplatePostRequestInstant(value: object): value is TemplatePostRequestInstant;
|
|
41
|
+
export declare function TemplatePostRequestInstantFromJSON(json: any): TemplatePostRequestInstant;
|
|
42
|
+
export declare function TemplatePostRequestInstantFromJSONTyped(json: any, ignoreDiscriminator: boolean): TemplatePostRequestInstant;
|
|
43
|
+
export declare function TemplatePostRequestInstantToJSON(json: any): TemplatePostRequestInstant;
|
|
44
|
+
export declare function TemplatePostRequestInstantToJSONTyped(value?: TemplatePostRequestInstant | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* NotificationAPI
|
|
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.instanceOfTemplatePostRequestInstant = instanceOfTemplatePostRequestInstant;
|
|
17
|
+
exports.TemplatePostRequestInstantFromJSON = TemplatePostRequestInstantFromJSON;
|
|
18
|
+
exports.TemplatePostRequestInstantFromJSONTyped = TemplatePostRequestInstantFromJSONTyped;
|
|
19
|
+
exports.TemplatePostRequestInstantToJSON = TemplatePostRequestInstantToJSON;
|
|
20
|
+
exports.TemplatePostRequestInstantToJSONTyped = TemplatePostRequestInstantToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the TemplatePostRequestInstant interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfTemplatePostRequestInstant(value) {
|
|
25
|
+
if (!('imageURL' in value) || value['imageURL'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function TemplatePostRequestInstantFromJSON(json) {
|
|
30
|
+
return TemplatePostRequestInstantFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function TemplatePostRequestInstantFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
title: json['title'] == null ? undefined : json['title'],
|
|
38
|
+
redirectURL: json['redirectURL'] == null ? undefined : json['redirectURL'],
|
|
39
|
+
imageURL: json['imageURL']
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
function TemplatePostRequestInstantToJSON(json) {
|
|
43
|
+
return TemplatePostRequestInstantToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function TemplatePostRequestInstantToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
title: value['title'],
|
|
51
|
+
redirectURL: value['redirectURL'],
|
|
52
|
+
imageURL: value['imageURL']
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -149,6 +149,8 @@ export * from './TemplatePatchRequestAnyOf1';
|
|
|
149
149
|
export * from './TemplatePatchRequestAnyOf1Batch';
|
|
150
150
|
export * from './TemplatePatchRequestAnyOf1Instant';
|
|
151
151
|
export * from './TemplatePostRequest';
|
|
152
|
+
export * from './TemplatePostRequestBatch';
|
|
153
|
+
export * from './TemplatePostRequestInstant';
|
|
152
154
|
export * from './UpdateAddressRequest';
|
|
153
155
|
export * from './User';
|
|
154
156
|
export * from './UserSuppressionDeleteResponse';
|
|
@@ -167,6 +167,8 @@ __exportStar(require("./TemplatePatchRequestAnyOf1"), exports);
|
|
|
167
167
|
__exportStar(require("./TemplatePatchRequestAnyOf1Batch"), exports);
|
|
168
168
|
__exportStar(require("./TemplatePatchRequestAnyOf1Instant"), exports);
|
|
169
169
|
__exportStar(require("./TemplatePostRequest"), exports);
|
|
170
|
+
__exportStar(require("./TemplatePostRequestBatch"), exports);
|
|
171
|
+
__exportStar(require("./TemplatePostRequestInstant"), exports);
|
|
170
172
|
__exportStar(require("./UpdateAddressRequest"), exports);
|
|
171
173
|
__exportStar(require("./User"), exports);
|
|
172
174
|
__exportStar(require("./UserSuppressionDeleteResponse"), exports);
|
package/package.json
CHANGED