ultracart_rest_api_v2_typescript 4.0.75-RC → 4.0.76-RC
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/README.md +3 -2
- package/dist/models/ConversationParticipant.d.ts +6 -0
- package/dist/models/ConversationParticipant.js +2 -0
- package/dist/models/EmailStepStat.d.ts +55 -1
- package/dist/models/EmailStepStat.js +18 -0
- package/package.json +1 -1
- package/src/models/ConversationParticipant.ts +8 -0
- package/src/models/EmailStepStat.ts +73 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## ultracart_rest_api_v2_typescript@4.0.
|
|
1
|
+
## ultracart_rest_api_v2_typescript@4.0.76-RC
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install ultracart_rest_api_v2_typescript@4.0.
|
|
39
|
+
npm install ultracart_rest_api_v2_typescript@4.0.76-RC --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -54,6 +54,7 @@ Not every change is committed to every SDK.
|
|
|
54
54
|
|
|
55
55
|
| Version | Date | Comments |
|
|
56
56
|
| --: | :-: | --- |
|
|
57
|
+
| 4.0.76-RC | 10/31/2022 | communications - addl statistics on EmailStepStat object |
|
|
57
58
|
| 4.0.75-RC | 10/26/2022 | esp - methods for sms testing |
|
|
58
59
|
| 4.0.74-RC | 10/17/2022 | conversations - add last_interactive_message_dts |
|
|
59
60
|
| 4.0.73-RC | 10/07/2022 | bug fix for digital items response |
|
|
@@ -32,6 +32,7 @@ function ConversationParticipantFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
32
32
|
'left_dts': !(0, runtime_1.exists)(json, 'left_dts') ? undefined : json['left_dts'],
|
|
33
33
|
'profile_image_url': !(0, runtime_1.exists)(json, 'profile_image_url') ? undefined : json['profile_image_url'],
|
|
34
34
|
'status': !(0, runtime_1.exists)(json, 'status') ? undefined : json['status'],
|
|
35
|
+
'timezone': !(0, runtime_1.exists)(json, 'timezone') ? undefined : json['timezone'],
|
|
35
36
|
'unread_messages': !(0, runtime_1.exists)(json, 'unread_messages') ? undefined : json['unread_messages'],
|
|
36
37
|
};
|
|
37
38
|
}
|
|
@@ -52,6 +53,7 @@ function ConversationParticipantToJSON(value) {
|
|
|
52
53
|
'left_dts': value.left_dts,
|
|
53
54
|
'profile_image_url': value.profile_image_url,
|
|
54
55
|
'status': value.status,
|
|
56
|
+
'timezone': value.timezone,
|
|
55
57
|
'unread_messages': value.unread_messages,
|
|
56
58
|
};
|
|
57
59
|
}
|
|
@@ -16,7 +16,13 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface EmailStepStat {
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* click count formatted (left side)
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof EmailStepStat
|
|
22
|
+
*/
|
|
23
|
+
left_click_count_formatted?: string;
|
|
24
|
+
/**
|
|
25
|
+
* click count (left side)
|
|
20
26
|
* @type {number}
|
|
21
27
|
* @memberof EmailStepStat
|
|
22
28
|
*/
|
|
@@ -39,6 +45,18 @@ export interface EmailStepStat {
|
|
|
39
45
|
* @memberof EmailStepStat
|
|
40
46
|
*/
|
|
41
47
|
left_customer_count_formatted?: string;
|
|
48
|
+
/**
|
|
49
|
+
* delivered count (left side)
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof EmailStepStat
|
|
52
|
+
*/
|
|
53
|
+
left_delivered_count?: number;
|
|
54
|
+
/**
|
|
55
|
+
* delivered count formatted (left side)
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof EmailStepStat
|
|
58
|
+
*/
|
|
59
|
+
left_delivered_count_formatted?: string;
|
|
42
60
|
/**
|
|
43
61
|
* order count (left/default side)
|
|
44
62
|
* @type {number}
|
|
@@ -75,6 +93,42 @@ export interface EmailStepStat {
|
|
|
75
93
|
* @memberof EmailStepStat
|
|
76
94
|
*/
|
|
77
95
|
left_revenue_formatted?: string;
|
|
96
|
+
/**
|
|
97
|
+
* send count (left side)
|
|
98
|
+
* @type {number}
|
|
99
|
+
* @memberof EmailStepStat
|
|
100
|
+
*/
|
|
101
|
+
left_send_count?: number;
|
|
102
|
+
/**
|
|
103
|
+
* send count formatted (left side)
|
|
104
|
+
* @type {string}
|
|
105
|
+
* @memberof EmailStepStat
|
|
106
|
+
*/
|
|
107
|
+
left_send_count_formatted?: string;
|
|
108
|
+
/**
|
|
109
|
+
* conversion count (left side)
|
|
110
|
+
* @type {number}
|
|
111
|
+
* @memberof EmailStepStat
|
|
112
|
+
*/
|
|
113
|
+
left_skipped_count?: number;
|
|
114
|
+
/**
|
|
115
|
+
* skipped count formatted (left side)
|
|
116
|
+
* @type {string}
|
|
117
|
+
* @memberof EmailStepStat
|
|
118
|
+
*/
|
|
119
|
+
left_skipped_count_formatted?: string;
|
|
120
|
+
/**
|
|
121
|
+
* unsubscribe count (left side)
|
|
122
|
+
* @type {number}
|
|
123
|
+
* @memberof EmailStepStat
|
|
124
|
+
*/
|
|
125
|
+
left_unsubscribe_count?: number;
|
|
126
|
+
/**
|
|
127
|
+
* unsubscribe count formatted (left side)
|
|
128
|
+
* @type {string}
|
|
129
|
+
* @memberof EmailStepStat
|
|
130
|
+
*/
|
|
131
|
+
left_unsubscribe_count_formatted?: string;
|
|
78
132
|
/**
|
|
79
133
|
* conversion count (right side)
|
|
80
134
|
* @type {number}
|
|
@@ -24,16 +24,25 @@ function EmailStepStatFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
24
24
|
return json;
|
|
25
25
|
}
|
|
26
26
|
return {
|
|
27
|
+
'left_click_count_formatted': !(0, runtime_1.exists)(json, 'left_click_count_formatted') ? undefined : json['left_click_count_formatted'],
|
|
27
28
|
'left_conversion_count': !(0, runtime_1.exists)(json, 'left_conversion_count') ? undefined : json['left_conversion_count'],
|
|
28
29
|
'left_conversion_count_formatted': !(0, runtime_1.exists)(json, 'left_conversion_count_formatted') ? undefined : json['left_conversion_count_formatted'],
|
|
29
30
|
'left_customer_count': !(0, runtime_1.exists)(json, 'left_customer_count') ? undefined : json['left_customer_count'],
|
|
30
31
|
'left_customer_count_formatted': !(0, runtime_1.exists)(json, 'left_customer_count_formatted') ? undefined : json['left_customer_count_formatted'],
|
|
32
|
+
'left_delivered_count': !(0, runtime_1.exists)(json, 'left_delivered_count') ? undefined : json['left_delivered_count'],
|
|
33
|
+
'left_delivered_count_formatted': !(0, runtime_1.exists)(json, 'left_delivered_count_formatted') ? undefined : json['left_delivered_count_formatted'],
|
|
31
34
|
'left_order_count': !(0, runtime_1.exists)(json, 'left_order_count') ? undefined : json['left_order_count'],
|
|
32
35
|
'left_order_count_formatted': !(0, runtime_1.exists)(json, 'left_order_count_formatted') ? undefined : json['left_order_count_formatted'],
|
|
33
36
|
'left_profit': !(0, runtime_1.exists)(json, 'left_profit') ? undefined : json['left_profit'],
|
|
34
37
|
'left_profit_formatted': !(0, runtime_1.exists)(json, 'left_profit_formatted') ? undefined : json['left_profit_formatted'],
|
|
35
38
|
'left_revenue': !(0, runtime_1.exists)(json, 'left_revenue') ? undefined : json['left_revenue'],
|
|
36
39
|
'left_revenue_formatted': !(0, runtime_1.exists)(json, 'left_revenue_formatted') ? undefined : json['left_revenue_formatted'],
|
|
40
|
+
'left_send_count': !(0, runtime_1.exists)(json, 'left_send_count') ? undefined : json['left_send_count'],
|
|
41
|
+
'left_send_count_formatted': !(0, runtime_1.exists)(json, 'left_send_count_formatted') ? undefined : json['left_send_count_formatted'],
|
|
42
|
+
'left_skipped_count': !(0, runtime_1.exists)(json, 'left_skipped_count') ? undefined : json['left_skipped_count'],
|
|
43
|
+
'left_skipped_count_formatted': !(0, runtime_1.exists)(json, 'left_skipped_count_formatted') ? undefined : json['left_skipped_count_formatted'],
|
|
44
|
+
'left_unsubscribe_count': !(0, runtime_1.exists)(json, 'left_unsubscribe_count') ? undefined : json['left_unsubscribe_count'],
|
|
45
|
+
'left_unsubscribe_count_formatted': !(0, runtime_1.exists)(json, 'left_unsubscribe_count_formatted') ? undefined : json['left_unsubscribe_count_formatted'],
|
|
37
46
|
'right_conversion_count': !(0, runtime_1.exists)(json, 'right_conversion_count') ? undefined : json['right_conversion_count'],
|
|
38
47
|
'right_conversion_count_formatted': !(0, runtime_1.exists)(json, 'right_conversion_count_formatted') ? undefined : json['right_conversion_count_formatted'],
|
|
39
48
|
'right_customer_count': !(0, runtime_1.exists)(json, 'right_customer_count') ? undefined : json['right_customer_count'],
|
|
@@ -55,16 +64,25 @@ function EmailStepStatToJSON(value) {
|
|
|
55
64
|
return null;
|
|
56
65
|
}
|
|
57
66
|
return {
|
|
67
|
+
'left_click_count_formatted': value.left_click_count_formatted,
|
|
58
68
|
'left_conversion_count': value.left_conversion_count,
|
|
59
69
|
'left_conversion_count_formatted': value.left_conversion_count_formatted,
|
|
60
70
|
'left_customer_count': value.left_customer_count,
|
|
61
71
|
'left_customer_count_formatted': value.left_customer_count_formatted,
|
|
72
|
+
'left_delivered_count': value.left_delivered_count,
|
|
73
|
+
'left_delivered_count_formatted': value.left_delivered_count_formatted,
|
|
62
74
|
'left_order_count': value.left_order_count,
|
|
63
75
|
'left_order_count_formatted': value.left_order_count_formatted,
|
|
64
76
|
'left_profit': value.left_profit,
|
|
65
77
|
'left_profit_formatted': value.left_profit_formatted,
|
|
66
78
|
'left_revenue': value.left_revenue,
|
|
67
79
|
'left_revenue_formatted': value.left_revenue_formatted,
|
|
80
|
+
'left_send_count': value.left_send_count,
|
|
81
|
+
'left_send_count_formatted': value.left_send_count_formatted,
|
|
82
|
+
'left_skipped_count': value.left_skipped_count,
|
|
83
|
+
'left_skipped_count_formatted': value.left_skipped_count_formatted,
|
|
84
|
+
'left_unsubscribe_count': value.left_unsubscribe_count,
|
|
85
|
+
'left_unsubscribe_count_formatted': value.left_unsubscribe_count_formatted,
|
|
68
86
|
'right_conversion_count': value.right_conversion_count,
|
|
69
87
|
'right_conversion_count_formatted': value.right_conversion_count_formatted,
|
|
70
88
|
'right_customer_count': value.right_customer_count,
|
package/package.json
CHANGED
|
@@ -67,6 +67,12 @@ export interface ConversationParticipant {
|
|
|
67
67
|
* @memberof ConversationParticipant
|
|
68
68
|
*/
|
|
69
69
|
status?: string;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {string}
|
|
73
|
+
* @memberof ConversationParticipant
|
|
74
|
+
*/
|
|
75
|
+
timezone?: string;
|
|
70
76
|
/**
|
|
71
77
|
*
|
|
72
78
|
* @type {number}
|
|
@@ -93,6 +99,7 @@ export function ConversationParticipantFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
93
99
|
'left_dts': !exists(json, 'left_dts') ? undefined : json['left_dts'],
|
|
94
100
|
'profile_image_url': !exists(json, 'profile_image_url') ? undefined : json['profile_image_url'],
|
|
95
101
|
'status': !exists(json, 'status') ? undefined : json['status'],
|
|
102
|
+
'timezone': !exists(json, 'timezone') ? undefined : json['timezone'],
|
|
96
103
|
'unread_messages': !exists(json, 'unread_messages') ? undefined : json['unread_messages'],
|
|
97
104
|
};
|
|
98
105
|
}
|
|
@@ -114,6 +121,7 @@ export function ConversationParticipantToJSON(value?: ConversationParticipant |
|
|
|
114
121
|
'left_dts': value.left_dts,
|
|
115
122
|
'profile_image_url': value.profile_image_url,
|
|
116
123
|
'status': value.status,
|
|
124
|
+
'timezone': value.timezone,
|
|
117
125
|
'unread_messages': value.unread_messages,
|
|
118
126
|
};
|
|
119
127
|
}
|
|
@@ -20,7 +20,13 @@ import { exists, mapValues } from '../runtime';
|
|
|
20
20
|
*/
|
|
21
21
|
export interface EmailStepStat {
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* click count formatted (left side)
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof EmailStepStat
|
|
26
|
+
*/
|
|
27
|
+
left_click_count_formatted?: string;
|
|
28
|
+
/**
|
|
29
|
+
* click count (left side)
|
|
24
30
|
* @type {number}
|
|
25
31
|
* @memberof EmailStepStat
|
|
26
32
|
*/
|
|
@@ -43,6 +49,18 @@ export interface EmailStepStat {
|
|
|
43
49
|
* @memberof EmailStepStat
|
|
44
50
|
*/
|
|
45
51
|
left_customer_count_formatted?: string;
|
|
52
|
+
/**
|
|
53
|
+
* delivered count (left side)
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @memberof EmailStepStat
|
|
56
|
+
*/
|
|
57
|
+
left_delivered_count?: number;
|
|
58
|
+
/**
|
|
59
|
+
* delivered count formatted (left side)
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof EmailStepStat
|
|
62
|
+
*/
|
|
63
|
+
left_delivered_count_formatted?: string;
|
|
46
64
|
/**
|
|
47
65
|
* order count (left/default side)
|
|
48
66
|
* @type {number}
|
|
@@ -79,6 +97,42 @@ export interface EmailStepStat {
|
|
|
79
97
|
* @memberof EmailStepStat
|
|
80
98
|
*/
|
|
81
99
|
left_revenue_formatted?: string;
|
|
100
|
+
/**
|
|
101
|
+
* send count (left side)
|
|
102
|
+
* @type {number}
|
|
103
|
+
* @memberof EmailStepStat
|
|
104
|
+
*/
|
|
105
|
+
left_send_count?: number;
|
|
106
|
+
/**
|
|
107
|
+
* send count formatted (left side)
|
|
108
|
+
* @type {string}
|
|
109
|
+
* @memberof EmailStepStat
|
|
110
|
+
*/
|
|
111
|
+
left_send_count_formatted?: string;
|
|
112
|
+
/**
|
|
113
|
+
* conversion count (left side)
|
|
114
|
+
* @type {number}
|
|
115
|
+
* @memberof EmailStepStat
|
|
116
|
+
*/
|
|
117
|
+
left_skipped_count?: number;
|
|
118
|
+
/**
|
|
119
|
+
* skipped count formatted (left side)
|
|
120
|
+
* @type {string}
|
|
121
|
+
* @memberof EmailStepStat
|
|
122
|
+
*/
|
|
123
|
+
left_skipped_count_formatted?: string;
|
|
124
|
+
/**
|
|
125
|
+
* unsubscribe count (left side)
|
|
126
|
+
* @type {number}
|
|
127
|
+
* @memberof EmailStepStat
|
|
128
|
+
*/
|
|
129
|
+
left_unsubscribe_count?: number;
|
|
130
|
+
/**
|
|
131
|
+
* unsubscribe count formatted (left side)
|
|
132
|
+
* @type {string}
|
|
133
|
+
* @memberof EmailStepStat
|
|
134
|
+
*/
|
|
135
|
+
left_unsubscribe_count_formatted?: string;
|
|
82
136
|
/**
|
|
83
137
|
* conversion count (right side)
|
|
84
138
|
* @type {number}
|
|
@@ -151,16 +205,25 @@ export function EmailStepStatFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
151
205
|
}
|
|
152
206
|
return {
|
|
153
207
|
|
|
208
|
+
'left_click_count_formatted': !exists(json, 'left_click_count_formatted') ? undefined : json['left_click_count_formatted'],
|
|
154
209
|
'left_conversion_count': !exists(json, 'left_conversion_count') ? undefined : json['left_conversion_count'],
|
|
155
210
|
'left_conversion_count_formatted': !exists(json, 'left_conversion_count_formatted') ? undefined : json['left_conversion_count_formatted'],
|
|
156
211
|
'left_customer_count': !exists(json, 'left_customer_count') ? undefined : json['left_customer_count'],
|
|
157
212
|
'left_customer_count_formatted': !exists(json, 'left_customer_count_formatted') ? undefined : json['left_customer_count_formatted'],
|
|
213
|
+
'left_delivered_count': !exists(json, 'left_delivered_count') ? undefined : json['left_delivered_count'],
|
|
214
|
+
'left_delivered_count_formatted': !exists(json, 'left_delivered_count_formatted') ? undefined : json['left_delivered_count_formatted'],
|
|
158
215
|
'left_order_count': !exists(json, 'left_order_count') ? undefined : json['left_order_count'],
|
|
159
216
|
'left_order_count_formatted': !exists(json, 'left_order_count_formatted') ? undefined : json['left_order_count_formatted'],
|
|
160
217
|
'left_profit': !exists(json, 'left_profit') ? undefined : json['left_profit'],
|
|
161
218
|
'left_profit_formatted': !exists(json, 'left_profit_formatted') ? undefined : json['left_profit_formatted'],
|
|
162
219
|
'left_revenue': !exists(json, 'left_revenue') ? undefined : json['left_revenue'],
|
|
163
220
|
'left_revenue_formatted': !exists(json, 'left_revenue_formatted') ? undefined : json['left_revenue_formatted'],
|
|
221
|
+
'left_send_count': !exists(json, 'left_send_count') ? undefined : json['left_send_count'],
|
|
222
|
+
'left_send_count_formatted': !exists(json, 'left_send_count_formatted') ? undefined : json['left_send_count_formatted'],
|
|
223
|
+
'left_skipped_count': !exists(json, 'left_skipped_count') ? undefined : json['left_skipped_count'],
|
|
224
|
+
'left_skipped_count_formatted': !exists(json, 'left_skipped_count_formatted') ? undefined : json['left_skipped_count_formatted'],
|
|
225
|
+
'left_unsubscribe_count': !exists(json, 'left_unsubscribe_count') ? undefined : json['left_unsubscribe_count'],
|
|
226
|
+
'left_unsubscribe_count_formatted': !exists(json, 'left_unsubscribe_count_formatted') ? undefined : json['left_unsubscribe_count_formatted'],
|
|
164
227
|
'right_conversion_count': !exists(json, 'right_conversion_count') ? undefined : json['right_conversion_count'],
|
|
165
228
|
'right_conversion_count_formatted': !exists(json, 'right_conversion_count_formatted') ? undefined : json['right_conversion_count_formatted'],
|
|
166
229
|
'right_customer_count': !exists(json, 'right_customer_count') ? undefined : json['right_customer_count'],
|
|
@@ -183,16 +246,25 @@ export function EmailStepStatToJSON(value?: EmailStepStat | null): any {
|
|
|
183
246
|
}
|
|
184
247
|
return {
|
|
185
248
|
|
|
249
|
+
'left_click_count_formatted': value.left_click_count_formatted,
|
|
186
250
|
'left_conversion_count': value.left_conversion_count,
|
|
187
251
|
'left_conversion_count_formatted': value.left_conversion_count_formatted,
|
|
188
252
|
'left_customer_count': value.left_customer_count,
|
|
189
253
|
'left_customer_count_formatted': value.left_customer_count_formatted,
|
|
254
|
+
'left_delivered_count': value.left_delivered_count,
|
|
255
|
+
'left_delivered_count_formatted': value.left_delivered_count_formatted,
|
|
190
256
|
'left_order_count': value.left_order_count,
|
|
191
257
|
'left_order_count_formatted': value.left_order_count_formatted,
|
|
192
258
|
'left_profit': value.left_profit,
|
|
193
259
|
'left_profit_formatted': value.left_profit_formatted,
|
|
194
260
|
'left_revenue': value.left_revenue,
|
|
195
261
|
'left_revenue_formatted': value.left_revenue_formatted,
|
|
262
|
+
'left_send_count': value.left_send_count,
|
|
263
|
+
'left_send_count_formatted': value.left_send_count_formatted,
|
|
264
|
+
'left_skipped_count': value.left_skipped_count,
|
|
265
|
+
'left_skipped_count_formatted': value.left_skipped_count_formatted,
|
|
266
|
+
'left_unsubscribe_count': value.left_unsubscribe_count,
|
|
267
|
+
'left_unsubscribe_count_formatted': value.left_unsubscribe_count_formatted,
|
|
196
268
|
'right_conversion_count': value.right_conversion_count,
|
|
197
269
|
'right_conversion_count_formatted': value.right_conversion_count_formatted,
|
|
198
270
|
'right_customer_count': value.right_customer_count,
|