ultracart_rest_api_v2_typescript 4.0.75-RC → 4.0.77-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 +4 -2
- package/dist/models/ConversationParticipant.d.ts +6 -0
- package/dist/models/ConversationParticipant.js +2 -0
- package/dist/models/EmailStepStat.d.ts +60 -0
- package/dist/models/EmailStepStat.js +20 -0
- package/package.json +1 -1
- package/src/models/ConversationParticipant.ts +8 -0
- package/src/models/EmailStepStat.ts +80 -0
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## ultracart_rest_api_v2_typescript@4.0.
|
|
1
|
+
## ultracart_rest_api_v2_typescript@4.0.77-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.77-RC --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -54,6 +54,8 @@ Not every change is committed to every SDK.
|
|
|
54
54
|
|
|
55
55
|
| Version | Date | Comments |
|
|
56
56
|
| --: | :-: | --- |
|
|
57
|
+
| 4.0.77-RC | 10/31/2022 | communication bug fix on dup annonation |
|
|
58
|
+
| 4.0.76-RC | 10/31/2022 | communications - addl statistics on EmailStepStat object |
|
|
57
59
|
| 4.0.75-RC | 10/26/2022 | esp - methods for sms testing |
|
|
58
60
|
| 4.0.74-RC | 10/17/2022 | conversations - add last_interactive_message_dts |
|
|
59
61
|
| 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
|
}
|
|
@@ -15,6 +15,18 @@
|
|
|
15
15
|
* @interface EmailStepStat
|
|
16
16
|
*/
|
|
17
17
|
export interface EmailStepStat {
|
|
18
|
+
/**
|
|
19
|
+
* click count (left side)
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof EmailStepStat
|
|
22
|
+
*/
|
|
23
|
+
left_click_count?: number;
|
|
24
|
+
/**
|
|
25
|
+
* click count formatted (left side)
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof EmailStepStat
|
|
28
|
+
*/
|
|
29
|
+
left_click_count_formatted?: string;
|
|
18
30
|
/**
|
|
19
31
|
* conversion count (left/default side)
|
|
20
32
|
* @type {number}
|
|
@@ -39,6 +51,18 @@ export interface EmailStepStat {
|
|
|
39
51
|
* @memberof EmailStepStat
|
|
40
52
|
*/
|
|
41
53
|
left_customer_count_formatted?: string;
|
|
54
|
+
/**
|
|
55
|
+
* delivered count (left side)
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof EmailStepStat
|
|
58
|
+
*/
|
|
59
|
+
left_delivered_count?: number;
|
|
60
|
+
/**
|
|
61
|
+
* delivered count formatted (left side)
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof EmailStepStat
|
|
64
|
+
*/
|
|
65
|
+
left_delivered_count_formatted?: string;
|
|
42
66
|
/**
|
|
43
67
|
* order count (left/default side)
|
|
44
68
|
* @type {number}
|
|
@@ -75,6 +99,42 @@ export interface EmailStepStat {
|
|
|
75
99
|
* @memberof EmailStepStat
|
|
76
100
|
*/
|
|
77
101
|
left_revenue_formatted?: string;
|
|
102
|
+
/**
|
|
103
|
+
* send count (left side)
|
|
104
|
+
* @type {number}
|
|
105
|
+
* @memberof EmailStepStat
|
|
106
|
+
*/
|
|
107
|
+
left_send_count?: number;
|
|
108
|
+
/**
|
|
109
|
+
* send count formatted (left side)
|
|
110
|
+
* @type {string}
|
|
111
|
+
* @memberof EmailStepStat
|
|
112
|
+
*/
|
|
113
|
+
left_send_count_formatted?: string;
|
|
114
|
+
/**
|
|
115
|
+
* conversion count (left side)
|
|
116
|
+
* @type {number}
|
|
117
|
+
* @memberof EmailStepStat
|
|
118
|
+
*/
|
|
119
|
+
left_skipped_count?: number;
|
|
120
|
+
/**
|
|
121
|
+
* skipped count formatted (left side)
|
|
122
|
+
* @type {string}
|
|
123
|
+
* @memberof EmailStepStat
|
|
124
|
+
*/
|
|
125
|
+
left_skipped_count_formatted?: string;
|
|
126
|
+
/**
|
|
127
|
+
* unsubscribe count (left side)
|
|
128
|
+
* @type {number}
|
|
129
|
+
* @memberof EmailStepStat
|
|
130
|
+
*/
|
|
131
|
+
left_unsubscribe_count?: number;
|
|
132
|
+
/**
|
|
133
|
+
* unsubscribe count formatted (left side)
|
|
134
|
+
* @type {string}
|
|
135
|
+
* @memberof EmailStepStat
|
|
136
|
+
*/
|
|
137
|
+
left_unsubscribe_count_formatted?: string;
|
|
78
138
|
/**
|
|
79
139
|
* conversion count (right side)
|
|
80
140
|
* @type {number}
|
|
@@ -24,16 +24,26 @@ function EmailStepStatFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
24
24
|
return json;
|
|
25
25
|
}
|
|
26
26
|
return {
|
|
27
|
+
'left_click_count': !(0, runtime_1.exists)(json, 'left_click_count') ? undefined : json['left_click_count'],
|
|
28
|
+
'left_click_count_formatted': !(0, runtime_1.exists)(json, 'left_click_count_formatted') ? undefined : json['left_click_count_formatted'],
|
|
27
29
|
'left_conversion_count': !(0, runtime_1.exists)(json, 'left_conversion_count') ? undefined : json['left_conversion_count'],
|
|
28
30
|
'left_conversion_count_formatted': !(0, runtime_1.exists)(json, 'left_conversion_count_formatted') ? undefined : json['left_conversion_count_formatted'],
|
|
29
31
|
'left_customer_count': !(0, runtime_1.exists)(json, 'left_customer_count') ? undefined : json['left_customer_count'],
|
|
30
32
|
'left_customer_count_formatted': !(0, runtime_1.exists)(json, 'left_customer_count_formatted') ? undefined : json['left_customer_count_formatted'],
|
|
33
|
+
'left_delivered_count': !(0, runtime_1.exists)(json, 'left_delivered_count') ? undefined : json['left_delivered_count'],
|
|
34
|
+
'left_delivered_count_formatted': !(0, runtime_1.exists)(json, 'left_delivered_count_formatted') ? undefined : json['left_delivered_count_formatted'],
|
|
31
35
|
'left_order_count': !(0, runtime_1.exists)(json, 'left_order_count') ? undefined : json['left_order_count'],
|
|
32
36
|
'left_order_count_formatted': !(0, runtime_1.exists)(json, 'left_order_count_formatted') ? undefined : json['left_order_count_formatted'],
|
|
33
37
|
'left_profit': !(0, runtime_1.exists)(json, 'left_profit') ? undefined : json['left_profit'],
|
|
34
38
|
'left_profit_formatted': !(0, runtime_1.exists)(json, 'left_profit_formatted') ? undefined : json['left_profit_formatted'],
|
|
35
39
|
'left_revenue': !(0, runtime_1.exists)(json, 'left_revenue') ? undefined : json['left_revenue'],
|
|
36
40
|
'left_revenue_formatted': !(0, runtime_1.exists)(json, 'left_revenue_formatted') ? undefined : json['left_revenue_formatted'],
|
|
41
|
+
'left_send_count': !(0, runtime_1.exists)(json, 'left_send_count') ? undefined : json['left_send_count'],
|
|
42
|
+
'left_send_count_formatted': !(0, runtime_1.exists)(json, 'left_send_count_formatted') ? undefined : json['left_send_count_formatted'],
|
|
43
|
+
'left_skipped_count': !(0, runtime_1.exists)(json, 'left_skipped_count') ? undefined : json['left_skipped_count'],
|
|
44
|
+
'left_skipped_count_formatted': !(0, runtime_1.exists)(json, 'left_skipped_count_formatted') ? undefined : json['left_skipped_count_formatted'],
|
|
45
|
+
'left_unsubscribe_count': !(0, runtime_1.exists)(json, 'left_unsubscribe_count') ? undefined : json['left_unsubscribe_count'],
|
|
46
|
+
'left_unsubscribe_count_formatted': !(0, runtime_1.exists)(json, 'left_unsubscribe_count_formatted') ? undefined : json['left_unsubscribe_count_formatted'],
|
|
37
47
|
'right_conversion_count': !(0, runtime_1.exists)(json, 'right_conversion_count') ? undefined : json['right_conversion_count'],
|
|
38
48
|
'right_conversion_count_formatted': !(0, runtime_1.exists)(json, 'right_conversion_count_formatted') ? undefined : json['right_conversion_count_formatted'],
|
|
39
49
|
'right_customer_count': !(0, runtime_1.exists)(json, 'right_customer_count') ? undefined : json['right_customer_count'],
|
|
@@ -55,16 +65,26 @@ function EmailStepStatToJSON(value) {
|
|
|
55
65
|
return null;
|
|
56
66
|
}
|
|
57
67
|
return {
|
|
68
|
+
'left_click_count': value.left_click_count,
|
|
69
|
+
'left_click_count_formatted': value.left_click_count_formatted,
|
|
58
70
|
'left_conversion_count': value.left_conversion_count,
|
|
59
71
|
'left_conversion_count_formatted': value.left_conversion_count_formatted,
|
|
60
72
|
'left_customer_count': value.left_customer_count,
|
|
61
73
|
'left_customer_count_formatted': value.left_customer_count_formatted,
|
|
74
|
+
'left_delivered_count': value.left_delivered_count,
|
|
75
|
+
'left_delivered_count_formatted': value.left_delivered_count_formatted,
|
|
62
76
|
'left_order_count': value.left_order_count,
|
|
63
77
|
'left_order_count_formatted': value.left_order_count_formatted,
|
|
64
78
|
'left_profit': value.left_profit,
|
|
65
79
|
'left_profit_formatted': value.left_profit_formatted,
|
|
66
80
|
'left_revenue': value.left_revenue,
|
|
67
81
|
'left_revenue_formatted': value.left_revenue_formatted,
|
|
82
|
+
'left_send_count': value.left_send_count,
|
|
83
|
+
'left_send_count_formatted': value.left_send_count_formatted,
|
|
84
|
+
'left_skipped_count': value.left_skipped_count,
|
|
85
|
+
'left_skipped_count_formatted': value.left_skipped_count_formatted,
|
|
86
|
+
'left_unsubscribe_count': value.left_unsubscribe_count,
|
|
87
|
+
'left_unsubscribe_count_formatted': value.left_unsubscribe_count_formatted,
|
|
68
88
|
'right_conversion_count': value.right_conversion_count,
|
|
69
89
|
'right_conversion_count_formatted': value.right_conversion_count_formatted,
|
|
70
90
|
'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
|
}
|
|
@@ -19,6 +19,18 @@ import { exists, mapValues } from '../runtime';
|
|
|
19
19
|
* @interface EmailStepStat
|
|
20
20
|
*/
|
|
21
21
|
export interface EmailStepStat {
|
|
22
|
+
/**
|
|
23
|
+
* click count (left side)
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof EmailStepStat
|
|
26
|
+
*/
|
|
27
|
+
left_click_count?: number;
|
|
28
|
+
/**
|
|
29
|
+
* click count formatted (left side)
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof EmailStepStat
|
|
32
|
+
*/
|
|
33
|
+
left_click_count_formatted?: string;
|
|
22
34
|
/**
|
|
23
35
|
* conversion count (left/default side)
|
|
24
36
|
* @type {number}
|
|
@@ -43,6 +55,18 @@ export interface EmailStepStat {
|
|
|
43
55
|
* @memberof EmailStepStat
|
|
44
56
|
*/
|
|
45
57
|
left_customer_count_formatted?: string;
|
|
58
|
+
/**
|
|
59
|
+
* delivered count (left side)
|
|
60
|
+
* @type {number}
|
|
61
|
+
* @memberof EmailStepStat
|
|
62
|
+
*/
|
|
63
|
+
left_delivered_count?: number;
|
|
64
|
+
/**
|
|
65
|
+
* delivered count formatted (left side)
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof EmailStepStat
|
|
68
|
+
*/
|
|
69
|
+
left_delivered_count_formatted?: string;
|
|
46
70
|
/**
|
|
47
71
|
* order count (left/default side)
|
|
48
72
|
* @type {number}
|
|
@@ -79,6 +103,42 @@ export interface EmailStepStat {
|
|
|
79
103
|
* @memberof EmailStepStat
|
|
80
104
|
*/
|
|
81
105
|
left_revenue_formatted?: string;
|
|
106
|
+
/**
|
|
107
|
+
* send count (left side)
|
|
108
|
+
* @type {number}
|
|
109
|
+
* @memberof EmailStepStat
|
|
110
|
+
*/
|
|
111
|
+
left_send_count?: number;
|
|
112
|
+
/**
|
|
113
|
+
* send count formatted (left side)
|
|
114
|
+
* @type {string}
|
|
115
|
+
* @memberof EmailStepStat
|
|
116
|
+
*/
|
|
117
|
+
left_send_count_formatted?: string;
|
|
118
|
+
/**
|
|
119
|
+
* conversion count (left side)
|
|
120
|
+
* @type {number}
|
|
121
|
+
* @memberof EmailStepStat
|
|
122
|
+
*/
|
|
123
|
+
left_skipped_count?: number;
|
|
124
|
+
/**
|
|
125
|
+
* skipped count formatted (left side)
|
|
126
|
+
* @type {string}
|
|
127
|
+
* @memberof EmailStepStat
|
|
128
|
+
*/
|
|
129
|
+
left_skipped_count_formatted?: string;
|
|
130
|
+
/**
|
|
131
|
+
* unsubscribe count (left side)
|
|
132
|
+
* @type {number}
|
|
133
|
+
* @memberof EmailStepStat
|
|
134
|
+
*/
|
|
135
|
+
left_unsubscribe_count?: number;
|
|
136
|
+
/**
|
|
137
|
+
* unsubscribe count formatted (left side)
|
|
138
|
+
* @type {string}
|
|
139
|
+
* @memberof EmailStepStat
|
|
140
|
+
*/
|
|
141
|
+
left_unsubscribe_count_formatted?: string;
|
|
82
142
|
/**
|
|
83
143
|
* conversion count (right side)
|
|
84
144
|
* @type {number}
|
|
@@ -151,16 +211,26 @@ export function EmailStepStatFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
151
211
|
}
|
|
152
212
|
return {
|
|
153
213
|
|
|
214
|
+
'left_click_count': !exists(json, 'left_click_count') ? undefined : json['left_click_count'],
|
|
215
|
+
'left_click_count_formatted': !exists(json, 'left_click_count_formatted') ? undefined : json['left_click_count_formatted'],
|
|
154
216
|
'left_conversion_count': !exists(json, 'left_conversion_count') ? undefined : json['left_conversion_count'],
|
|
155
217
|
'left_conversion_count_formatted': !exists(json, 'left_conversion_count_formatted') ? undefined : json['left_conversion_count_formatted'],
|
|
156
218
|
'left_customer_count': !exists(json, 'left_customer_count') ? undefined : json['left_customer_count'],
|
|
157
219
|
'left_customer_count_formatted': !exists(json, 'left_customer_count_formatted') ? undefined : json['left_customer_count_formatted'],
|
|
220
|
+
'left_delivered_count': !exists(json, 'left_delivered_count') ? undefined : json['left_delivered_count'],
|
|
221
|
+
'left_delivered_count_formatted': !exists(json, 'left_delivered_count_formatted') ? undefined : json['left_delivered_count_formatted'],
|
|
158
222
|
'left_order_count': !exists(json, 'left_order_count') ? undefined : json['left_order_count'],
|
|
159
223
|
'left_order_count_formatted': !exists(json, 'left_order_count_formatted') ? undefined : json['left_order_count_formatted'],
|
|
160
224
|
'left_profit': !exists(json, 'left_profit') ? undefined : json['left_profit'],
|
|
161
225
|
'left_profit_formatted': !exists(json, 'left_profit_formatted') ? undefined : json['left_profit_formatted'],
|
|
162
226
|
'left_revenue': !exists(json, 'left_revenue') ? undefined : json['left_revenue'],
|
|
163
227
|
'left_revenue_formatted': !exists(json, 'left_revenue_formatted') ? undefined : json['left_revenue_formatted'],
|
|
228
|
+
'left_send_count': !exists(json, 'left_send_count') ? undefined : json['left_send_count'],
|
|
229
|
+
'left_send_count_formatted': !exists(json, 'left_send_count_formatted') ? undefined : json['left_send_count_formatted'],
|
|
230
|
+
'left_skipped_count': !exists(json, 'left_skipped_count') ? undefined : json['left_skipped_count'],
|
|
231
|
+
'left_skipped_count_formatted': !exists(json, 'left_skipped_count_formatted') ? undefined : json['left_skipped_count_formatted'],
|
|
232
|
+
'left_unsubscribe_count': !exists(json, 'left_unsubscribe_count') ? undefined : json['left_unsubscribe_count'],
|
|
233
|
+
'left_unsubscribe_count_formatted': !exists(json, 'left_unsubscribe_count_formatted') ? undefined : json['left_unsubscribe_count_formatted'],
|
|
164
234
|
'right_conversion_count': !exists(json, 'right_conversion_count') ? undefined : json['right_conversion_count'],
|
|
165
235
|
'right_conversion_count_formatted': !exists(json, 'right_conversion_count_formatted') ? undefined : json['right_conversion_count_formatted'],
|
|
166
236
|
'right_customer_count': !exists(json, 'right_customer_count') ? undefined : json['right_customer_count'],
|
|
@@ -183,16 +253,26 @@ export function EmailStepStatToJSON(value?: EmailStepStat | null): any {
|
|
|
183
253
|
}
|
|
184
254
|
return {
|
|
185
255
|
|
|
256
|
+
'left_click_count': value.left_click_count,
|
|
257
|
+
'left_click_count_formatted': value.left_click_count_formatted,
|
|
186
258
|
'left_conversion_count': value.left_conversion_count,
|
|
187
259
|
'left_conversion_count_formatted': value.left_conversion_count_formatted,
|
|
188
260
|
'left_customer_count': value.left_customer_count,
|
|
189
261
|
'left_customer_count_formatted': value.left_customer_count_formatted,
|
|
262
|
+
'left_delivered_count': value.left_delivered_count,
|
|
263
|
+
'left_delivered_count_formatted': value.left_delivered_count_formatted,
|
|
190
264
|
'left_order_count': value.left_order_count,
|
|
191
265
|
'left_order_count_formatted': value.left_order_count_formatted,
|
|
192
266
|
'left_profit': value.left_profit,
|
|
193
267
|
'left_profit_formatted': value.left_profit_formatted,
|
|
194
268
|
'left_revenue': value.left_revenue,
|
|
195
269
|
'left_revenue_formatted': value.left_revenue_formatted,
|
|
270
|
+
'left_send_count': value.left_send_count,
|
|
271
|
+
'left_send_count_formatted': value.left_send_count_formatted,
|
|
272
|
+
'left_skipped_count': value.left_skipped_count,
|
|
273
|
+
'left_skipped_count_formatted': value.left_skipped_count_formatted,
|
|
274
|
+
'left_unsubscribe_count': value.left_unsubscribe_count,
|
|
275
|
+
'left_unsubscribe_count_formatted': value.left_unsubscribe_count_formatted,
|
|
196
276
|
'right_conversion_count': value.right_conversion_count,
|
|
197
277
|
'right_conversion_count_formatted': value.right_conversion_count_formatted,
|
|
198
278
|
'right_customer_count': value.right_customer_count,
|