ultracart_rest_api_v2_typescript 4.0.58-RC → 4.0.59-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/EmailCampaign.d.ts +12 -0
- package/dist/models/EmailCampaign.js +4 -0
- package/dist/models/EmailFlow.d.ts +12 -0
- package/dist/models/EmailFlow.js +4 -0
- package/dist/models/EmailSettings.d.ts +12 -0
- package/dist/models/EmailSettings.js +4 -0
- package/package.json +1 -1
- package/src/models/EmailCampaign.ts +16 -0
- package/src/models/EmailFlow.ts +16 -0
- package/src/models/EmailSettings.ts +16 -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.59-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.59-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.59-RC | 08/30/2022 | storefront comm fields for sms configuration |
|
|
57
58
|
| 4.0.58-RC | 08/26/2022 | postcard address fields for comm sequence testing |
|
|
58
59
|
| 4.0.57-RC | 08/22/2022 | exposing individual reviews within item.review object |
|
|
59
60
|
| 4.0.56-RC | 08/19/2022 | order api - added cell phone fields for sms |
|
|
@@ -142,6 +142,18 @@ export interface EmailCampaign {
|
|
|
142
142
|
* @memberof EmailCampaign
|
|
143
143
|
*/
|
|
144
144
|
screenshot_large_full_url?: string;
|
|
145
|
+
/**
|
|
146
|
+
* Twilio Account UUID. Null for none
|
|
147
|
+
* @type {string}
|
|
148
|
+
* @memberof EmailCampaign
|
|
149
|
+
*/
|
|
150
|
+
sms_esp_twilio_uuid?: string;
|
|
151
|
+
/**
|
|
152
|
+
* Twilio SMS Phone Number. Null for none
|
|
153
|
+
* @type {string}
|
|
154
|
+
* @memberof EmailCampaign
|
|
155
|
+
*/
|
|
156
|
+
sms_phone_number?: string;
|
|
145
157
|
/**
|
|
146
158
|
* Status of the campaign of draft, archived, and sent
|
|
147
159
|
* @type {string}
|
|
@@ -46,6 +46,8 @@ function EmailCampaignFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
46
46
|
'revenue_per_customer_formatted': !(0, runtime_1.exists)(json, 'revenue_per_customer_formatted') ? undefined : json['revenue_per_customer_formatted'],
|
|
47
47
|
'scheduled_dts': !(0, runtime_1.exists)(json, 'scheduled_dts') ? undefined : json['scheduled_dts'],
|
|
48
48
|
'screenshot_large_full_url': !(0, runtime_1.exists)(json, 'screenshot_large_full_url') ? undefined : json['screenshot_large_full_url'],
|
|
49
|
+
'sms_esp_twilio_uuid': !(0, runtime_1.exists)(json, 'sms_esp_twilio_uuid') ? undefined : json['sms_esp_twilio_uuid'],
|
|
50
|
+
'sms_phone_number': !(0, runtime_1.exists)(json, 'sms_phone_number') ? undefined : json['sms_phone_number'],
|
|
49
51
|
'status': !(0, runtime_1.exists)(json, 'status') ? undefined : json['status'],
|
|
50
52
|
'status_dts': !(0, runtime_1.exists)(json, 'status_dts') ? undefined : json['status_dts'],
|
|
51
53
|
'storefront_oid': !(0, runtime_1.exists)(json, 'storefront_oid') ? undefined : json['storefront_oid'],
|
|
@@ -81,6 +83,8 @@ function EmailCampaignToJSON(value) {
|
|
|
81
83
|
'revenue_per_customer_formatted': value.revenue_per_customer_formatted,
|
|
82
84
|
'scheduled_dts': value.scheduled_dts,
|
|
83
85
|
'screenshot_large_full_url': value.screenshot_large_full_url,
|
|
86
|
+
'sms_esp_twilio_uuid': value.sms_esp_twilio_uuid,
|
|
87
|
+
'sms_phone_number': value.sms_phone_number,
|
|
84
88
|
'status': value.status,
|
|
85
89
|
'status_dts': value.status_dts,
|
|
86
90
|
'storefront_oid': value.storefront_oid,
|
|
@@ -147,6 +147,18 @@ export interface EmailFlow {
|
|
|
147
147
|
* @memberof EmailFlow
|
|
148
148
|
*/
|
|
149
149
|
screenshot_large_full_url?: string;
|
|
150
|
+
/**
|
|
151
|
+
* Twilio Account UUID. Null for none
|
|
152
|
+
* @type {string}
|
|
153
|
+
* @memberof EmailFlow
|
|
154
|
+
*/
|
|
155
|
+
sms_esp_twilio_uuid?: string;
|
|
156
|
+
/**
|
|
157
|
+
* Twilio SMS Phone Number. Null for none
|
|
158
|
+
* @type {string}
|
|
159
|
+
* @memberof EmailFlow
|
|
160
|
+
*/
|
|
161
|
+
sms_phone_number?: string;
|
|
150
162
|
/**
|
|
151
163
|
* Status of the campaign of draft, archived, active, and inactive
|
|
152
164
|
* @type {string}
|
package/dist/models/EmailFlow.js
CHANGED
|
@@ -46,6 +46,8 @@ function EmailFlowFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
46
46
|
'revenue_formatted': !(0, runtime_1.exists)(json, 'revenue_formatted') ? undefined : json['revenue_formatted'],
|
|
47
47
|
'revenue_per_customer_formatted': !(0, runtime_1.exists)(json, 'revenue_per_customer_formatted') ? undefined : json['revenue_per_customer_formatted'],
|
|
48
48
|
'screenshot_large_full_url': !(0, runtime_1.exists)(json, 'screenshot_large_full_url') ? undefined : json['screenshot_large_full_url'],
|
|
49
|
+
'sms_esp_twilio_uuid': !(0, runtime_1.exists)(json, 'sms_esp_twilio_uuid') ? undefined : json['sms_esp_twilio_uuid'],
|
|
50
|
+
'sms_phone_number': !(0, runtime_1.exists)(json, 'sms_phone_number') ? undefined : json['sms_phone_number'],
|
|
49
51
|
'status': !(0, runtime_1.exists)(json, 'status') ? undefined : json['status'],
|
|
50
52
|
'status_dts': !(0, runtime_1.exists)(json, 'status_dts') ? undefined : json['status_dts'],
|
|
51
53
|
'storefront_oid': !(0, runtime_1.exists)(json, 'storefront_oid') ? undefined : json['storefront_oid'],
|
|
@@ -85,6 +87,8 @@ function EmailFlowToJSON(value) {
|
|
|
85
87
|
'revenue_formatted': value.revenue_formatted,
|
|
86
88
|
'revenue_per_customer_formatted': value.revenue_per_customer_formatted,
|
|
87
89
|
'screenshot_large_full_url': value.screenshot_large_full_url,
|
|
90
|
+
'sms_esp_twilio_uuid': value.sms_esp_twilio_uuid,
|
|
91
|
+
'sms_phone_number': value.sms_phone_number,
|
|
88
92
|
'status': value.status,
|
|
89
93
|
'status_dts': value.status_dts,
|
|
90
94
|
'storefront_oid': value.storefront_oid,
|
|
@@ -69,6 +69,18 @@ export interface EmailSettings {
|
|
|
69
69
|
* @memberof EmailSettings
|
|
70
70
|
*/
|
|
71
71
|
postcard_from_state?: string;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof EmailSettings
|
|
76
|
+
*/
|
|
77
|
+
sms_esp_twilio_uuid?: string;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof EmailSettings
|
|
82
|
+
*/
|
|
83
|
+
sms_phone_number?: string;
|
|
72
84
|
/**
|
|
73
85
|
*
|
|
74
86
|
* @type {string}
|
|
@@ -33,6 +33,8 @@ function EmailSettingsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
33
33
|
'postcard_from_name': !(0, runtime_1.exists)(json, 'postcard_from_name') ? undefined : json['postcard_from_name'],
|
|
34
34
|
'postcard_from_postal_code': !(0, runtime_1.exists)(json, 'postcard_from_postal_code') ? undefined : json['postcard_from_postal_code'],
|
|
35
35
|
'postcard_from_state': !(0, runtime_1.exists)(json, 'postcard_from_state') ? undefined : json['postcard_from_state'],
|
|
36
|
+
'sms_esp_twilio_uuid': !(0, runtime_1.exists)(json, 'sms_esp_twilio_uuid') ? undefined : json['sms_esp_twilio_uuid'],
|
|
37
|
+
'sms_phone_number': !(0, runtime_1.exists)(json, 'sms_phone_number') ? undefined : json['sms_phone_number'],
|
|
36
38
|
'transactional_esp_domain_user': !(0, runtime_1.exists)(json, 'transactional_esp_domain_user') ? undefined : json['transactional_esp_domain_user'],
|
|
37
39
|
'transactional_esp_domain_uuid': !(0, runtime_1.exists)(json, 'transactional_esp_domain_uuid') ? undefined : json['transactional_esp_domain_uuid'],
|
|
38
40
|
'transactional_esp_friendly_name': !(0, runtime_1.exists)(json, 'transactional_esp_friendly_name') ? undefined : json['transactional_esp_friendly_name'],
|
|
@@ -56,6 +58,8 @@ function EmailSettingsToJSON(value) {
|
|
|
56
58
|
'postcard_from_name': value.postcard_from_name,
|
|
57
59
|
'postcard_from_postal_code': value.postcard_from_postal_code,
|
|
58
60
|
'postcard_from_state': value.postcard_from_state,
|
|
61
|
+
'sms_esp_twilio_uuid': value.sms_esp_twilio_uuid,
|
|
62
|
+
'sms_phone_number': value.sms_phone_number,
|
|
59
63
|
'transactional_esp_domain_user': value.transactional_esp_domain_user,
|
|
60
64
|
'transactional_esp_domain_uuid': value.transactional_esp_domain_uuid,
|
|
61
65
|
'transactional_esp_friendly_name': value.transactional_esp_friendly_name,
|
package/package.json
CHANGED
|
@@ -152,6 +152,18 @@ export interface EmailCampaign {
|
|
|
152
152
|
* @memberof EmailCampaign
|
|
153
153
|
*/
|
|
154
154
|
screenshot_large_full_url?: string;
|
|
155
|
+
/**
|
|
156
|
+
* Twilio Account UUID. Null for none
|
|
157
|
+
* @type {string}
|
|
158
|
+
* @memberof EmailCampaign
|
|
159
|
+
*/
|
|
160
|
+
sms_esp_twilio_uuid?: string;
|
|
161
|
+
/**
|
|
162
|
+
* Twilio SMS Phone Number. Null for none
|
|
163
|
+
* @type {string}
|
|
164
|
+
* @memberof EmailCampaign
|
|
165
|
+
*/
|
|
166
|
+
sms_phone_number?: string;
|
|
155
167
|
/**
|
|
156
168
|
* Status of the campaign of draft, archived, and sent
|
|
157
169
|
* @type {string}
|
|
@@ -203,6 +215,8 @@ export function EmailCampaignFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
203
215
|
'revenue_per_customer_formatted': !exists(json, 'revenue_per_customer_formatted') ? undefined : json['revenue_per_customer_formatted'],
|
|
204
216
|
'scheduled_dts': !exists(json, 'scheduled_dts') ? undefined : json['scheduled_dts'],
|
|
205
217
|
'screenshot_large_full_url': !exists(json, 'screenshot_large_full_url') ? undefined : json['screenshot_large_full_url'],
|
|
218
|
+
'sms_esp_twilio_uuid': !exists(json, 'sms_esp_twilio_uuid') ? undefined : json['sms_esp_twilio_uuid'],
|
|
219
|
+
'sms_phone_number': !exists(json, 'sms_phone_number') ? undefined : json['sms_phone_number'],
|
|
206
220
|
'status': !exists(json, 'status') ? undefined : json['status'],
|
|
207
221
|
'status_dts': !exists(json, 'status_dts') ? undefined : json['status_dts'],
|
|
208
222
|
'storefront_oid': !exists(json, 'storefront_oid') ? undefined : json['storefront_oid'],
|
|
@@ -239,6 +253,8 @@ export function EmailCampaignToJSON(value?: EmailCampaign | null): any {
|
|
|
239
253
|
'revenue_per_customer_formatted': value.revenue_per_customer_formatted,
|
|
240
254
|
'scheduled_dts': value.scheduled_dts,
|
|
241
255
|
'screenshot_large_full_url': value.screenshot_large_full_url,
|
|
256
|
+
'sms_esp_twilio_uuid': value.sms_esp_twilio_uuid,
|
|
257
|
+
'sms_phone_number': value.sms_phone_number,
|
|
242
258
|
'status': value.status,
|
|
243
259
|
'status_dts': value.status_dts,
|
|
244
260
|
'storefront_oid': value.storefront_oid,
|
package/src/models/EmailFlow.ts
CHANGED
|
@@ -151,6 +151,18 @@ export interface EmailFlow {
|
|
|
151
151
|
* @memberof EmailFlow
|
|
152
152
|
*/
|
|
153
153
|
screenshot_large_full_url?: string;
|
|
154
|
+
/**
|
|
155
|
+
* Twilio Account UUID. Null for none
|
|
156
|
+
* @type {string}
|
|
157
|
+
* @memberof EmailFlow
|
|
158
|
+
*/
|
|
159
|
+
sms_esp_twilio_uuid?: string;
|
|
160
|
+
/**
|
|
161
|
+
* Twilio SMS Phone Number. Null for none
|
|
162
|
+
* @type {string}
|
|
163
|
+
* @memberof EmailFlow
|
|
164
|
+
*/
|
|
165
|
+
sms_phone_number?: string;
|
|
154
166
|
/**
|
|
155
167
|
* Status of the campaign of draft, archived, active, and inactive
|
|
156
168
|
* @type {string}
|
|
@@ -221,6 +233,8 @@ export function EmailFlowFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
221
233
|
'revenue_formatted': !exists(json, 'revenue_formatted') ? undefined : json['revenue_formatted'],
|
|
222
234
|
'revenue_per_customer_formatted': !exists(json, 'revenue_per_customer_formatted') ? undefined : json['revenue_per_customer_formatted'],
|
|
223
235
|
'screenshot_large_full_url': !exists(json, 'screenshot_large_full_url') ? undefined : json['screenshot_large_full_url'],
|
|
236
|
+
'sms_esp_twilio_uuid': !exists(json, 'sms_esp_twilio_uuid') ? undefined : json['sms_esp_twilio_uuid'],
|
|
237
|
+
'sms_phone_number': !exists(json, 'sms_phone_number') ? undefined : json['sms_phone_number'],
|
|
224
238
|
'status': !exists(json, 'status') ? undefined : json['status'],
|
|
225
239
|
'status_dts': !exists(json, 'status_dts') ? undefined : json['status_dts'],
|
|
226
240
|
'storefront_oid': !exists(json, 'storefront_oid') ? undefined : json['storefront_oid'],
|
|
@@ -261,6 +275,8 @@ export function EmailFlowToJSON(value?: EmailFlow | null): any {
|
|
|
261
275
|
'revenue_formatted': value.revenue_formatted,
|
|
262
276
|
'revenue_per_customer_formatted': value.revenue_per_customer_formatted,
|
|
263
277
|
'screenshot_large_full_url': value.screenshot_large_full_url,
|
|
278
|
+
'sms_esp_twilio_uuid': value.sms_esp_twilio_uuid,
|
|
279
|
+
'sms_phone_number': value.sms_phone_number,
|
|
264
280
|
'status': value.status,
|
|
265
281
|
'status_dts': value.status_dts,
|
|
266
282
|
'storefront_oid': value.storefront_oid,
|
|
@@ -73,6 +73,18 @@ export interface EmailSettings {
|
|
|
73
73
|
* @memberof EmailSettings
|
|
74
74
|
*/
|
|
75
75
|
postcard_from_state?: string;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {string}
|
|
79
|
+
* @memberof EmailSettings
|
|
80
|
+
*/
|
|
81
|
+
sms_esp_twilio_uuid?: string;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {string}
|
|
85
|
+
* @memberof EmailSettings
|
|
86
|
+
*/
|
|
87
|
+
sms_phone_number?: string;
|
|
76
88
|
/**
|
|
77
89
|
*
|
|
78
90
|
* @type {string}
|
|
@@ -112,6 +124,8 @@ export function EmailSettingsFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
112
124
|
'postcard_from_name': !exists(json, 'postcard_from_name') ? undefined : json['postcard_from_name'],
|
|
113
125
|
'postcard_from_postal_code': !exists(json, 'postcard_from_postal_code') ? undefined : json['postcard_from_postal_code'],
|
|
114
126
|
'postcard_from_state': !exists(json, 'postcard_from_state') ? undefined : json['postcard_from_state'],
|
|
127
|
+
'sms_esp_twilio_uuid': !exists(json, 'sms_esp_twilio_uuid') ? undefined : json['sms_esp_twilio_uuid'],
|
|
128
|
+
'sms_phone_number': !exists(json, 'sms_phone_number') ? undefined : json['sms_phone_number'],
|
|
115
129
|
'transactional_esp_domain_user': !exists(json, 'transactional_esp_domain_user') ? undefined : json['transactional_esp_domain_user'],
|
|
116
130
|
'transactional_esp_domain_uuid': !exists(json, 'transactional_esp_domain_uuid') ? undefined : json['transactional_esp_domain_uuid'],
|
|
117
131
|
'transactional_esp_friendly_name': !exists(json, 'transactional_esp_friendly_name') ? undefined : json['transactional_esp_friendly_name'],
|
|
@@ -136,6 +150,8 @@ export function EmailSettingsToJSON(value?: EmailSettings | null): any {
|
|
|
136
150
|
'postcard_from_name': value.postcard_from_name,
|
|
137
151
|
'postcard_from_postal_code': value.postcard_from_postal_code,
|
|
138
152
|
'postcard_from_state': value.postcard_from_state,
|
|
153
|
+
'sms_esp_twilio_uuid': value.sms_esp_twilio_uuid,
|
|
154
|
+
'sms_phone_number': value.sms_phone_number,
|
|
139
155
|
'transactional_esp_domain_user': value.transactional_esp_domain_user,
|
|
140
156
|
'transactional_esp_domain_uuid': value.transactional_esp_domain_uuid,
|
|
141
157
|
'transactional_esp_friendly_name': value.transactional_esp_friendly_name,
|