ultracart_rest_api_v2_typescript 4.0.92-RC → 4.0.93-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/CartCustomerProfile.d.ts +7 -1
- package/dist/models/CartCustomerProfile.js +2 -0
- package/dist/models/ConversationWebchatContext.d.ts +6 -0
- package/dist/models/ConversationWebchatContext.js +2 -0
- package/package.json +1 -1
- package/src/models/CartCustomerProfile.ts +9 -1
- package/src/models/ConversationWebchatContext.ts +8 -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.93-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.93-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.93-RC | 12/06/2022 | convo - add session_start_dts to webchat context, cart - add customer_profile.signup_dts |
|
|
57
58
|
| 4.0.92-RC | 12/06/2022 | customer api - expose edi information and editor values |
|
|
58
59
|
| 4.0.91-RC | 12/02/2022 | conversations - customer last unresponded dts |
|
|
59
60
|
| 4.0.90-RC | 11/30/2022 | conversations - add order and auto order information to webchat context |
|
|
@@ -84,7 +84,7 @@ export interface CartCustomerProfile {
|
|
|
84
84
|
*/
|
|
85
85
|
free_shipping?: boolean;
|
|
86
86
|
/**
|
|
87
|
-
* The minimum
|
|
87
|
+
* The minimum amount that this profile has to purchase to qualify for free shipping
|
|
88
88
|
* @type {number}
|
|
89
89
|
* @memberof CartCustomerProfile
|
|
90
90
|
*/
|
|
@@ -137,6 +137,12 @@ export interface CartCustomerProfile {
|
|
|
137
137
|
* @memberof CartCustomerProfile
|
|
138
138
|
*/
|
|
139
139
|
shipping_addresses?: Array<CartCustomerProfileAddress>;
|
|
140
|
+
/**
|
|
141
|
+
* Signup date
|
|
142
|
+
* @type {string}
|
|
143
|
+
* @memberof CartCustomerProfile
|
|
144
|
+
*/
|
|
145
|
+
signup_dts?: string;
|
|
140
146
|
/**
|
|
141
147
|
* True if this profile is exempt from sales tax
|
|
142
148
|
* @type {boolean}
|
|
@@ -46,6 +46,7 @@ function CartCustomerProfileFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
46
46
|
'no_realtime_charge': !(0, runtime_1.exists)(json, 'no_realtime_charge') ? undefined : json['no_realtime_charge'],
|
|
47
47
|
'pricing_tiers': !(0, runtime_1.exists)(json, 'pricing_tiers') ? undefined : json['pricing_tiers'],
|
|
48
48
|
'shipping_addresses': !(0, runtime_1.exists)(json, 'shipping_addresses') ? undefined : (json['shipping_addresses'].map(CartCustomerProfileAddress_1.CartCustomerProfileAddressFromJSON)),
|
|
49
|
+
'signup_dts': !(0, runtime_1.exists)(json, 'signup_dts') ? undefined : json['signup_dts'],
|
|
49
50
|
'tax_exempt': !(0, runtime_1.exists)(json, 'tax_exempt') ? undefined : json['tax_exempt'],
|
|
50
51
|
'ups_account_number': !(0, runtime_1.exists)(json, 'ups_account_number') ? undefined : json['ups_account_number'],
|
|
51
52
|
};
|
|
@@ -79,6 +80,7 @@ function CartCustomerProfileToJSON(value) {
|
|
|
79
80
|
'no_realtime_charge': value.no_realtime_charge,
|
|
80
81
|
'pricing_tiers': value.pricing_tiers,
|
|
81
82
|
'shipping_addresses': value.shipping_addresses === undefined ? undefined : (value.shipping_addresses.map(CartCustomerProfileAddress_1.CartCustomerProfileAddressToJSON)),
|
|
83
|
+
'signup_dts': value.signup_dts,
|
|
82
84
|
'tax_exempt': value.tax_exempt,
|
|
83
85
|
'ups_account_number': value.ups_account_number,
|
|
84
86
|
};
|
|
@@ -57,6 +57,12 @@ export interface ConversationWebchatContext {
|
|
|
57
57
|
* @memberof ConversationWebchatContext
|
|
58
58
|
*/
|
|
59
59
|
session_start?: HitSessionStart;
|
|
60
|
+
/**
|
|
61
|
+
* Date/time that the session was started (if known)
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof ConversationWebchatContext
|
|
64
|
+
*/
|
|
65
|
+
session_start_dts?: string;
|
|
60
66
|
/**
|
|
61
67
|
*
|
|
62
68
|
* @type {HitSessionUtm}
|
|
@@ -36,6 +36,7 @@ function ConversationWebchatContextFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
36
36
|
'orders': !(0, runtime_1.exists)(json, 'orders') ? undefined : (json['orders'].map(Order_1.OrderFromJSON)),
|
|
37
37
|
'page_view': !(0, runtime_1.exists)(json, 'page_view') ? undefined : (json['page_view'].map(HitPageView_1.HitPageViewFromJSON)),
|
|
38
38
|
'session_start': !(0, runtime_1.exists)(json, 'session_start') ? undefined : (0, HitSessionStart_1.HitSessionStartFromJSON)(json['session_start']),
|
|
39
|
+
'session_start_dts': !(0, runtime_1.exists)(json, 'session_start_dts') ? undefined : json['session_start_dts'],
|
|
39
40
|
'session_utm': !(0, runtime_1.exists)(json, 'session_utm') ? undefined : (0, HitSessionUtm_1.HitSessionUtmFromJSON)(json['session_utm']),
|
|
40
41
|
};
|
|
41
42
|
}
|
|
@@ -54,6 +55,7 @@ function ConversationWebchatContextToJSON(value) {
|
|
|
54
55
|
'orders': value.orders === undefined ? undefined : (value.orders.map(Order_1.OrderToJSON)),
|
|
55
56
|
'page_view': value.page_view === undefined ? undefined : (value.page_view.map(HitPageView_1.HitPageViewToJSON)),
|
|
56
57
|
'session_start': (0, HitSessionStart_1.HitSessionStartToJSON)(value.session_start),
|
|
58
|
+
'session_start_dts': value.session_start_dts,
|
|
57
59
|
'session_utm': (0, HitSessionUtm_1.HitSessionUtmToJSON)(value.session_utm),
|
|
58
60
|
};
|
|
59
61
|
}
|
package/package.json
CHANGED
|
@@ -99,7 +99,7 @@ export interface CartCustomerProfile {
|
|
|
99
99
|
*/
|
|
100
100
|
free_shipping?: boolean;
|
|
101
101
|
/**
|
|
102
|
-
* The minimum
|
|
102
|
+
* The minimum amount that this profile has to purchase to qualify for free shipping
|
|
103
103
|
* @type {number}
|
|
104
104
|
* @memberof CartCustomerProfile
|
|
105
105
|
*/
|
|
@@ -152,6 +152,12 @@ export interface CartCustomerProfile {
|
|
|
152
152
|
* @memberof CartCustomerProfile
|
|
153
153
|
*/
|
|
154
154
|
shipping_addresses?: Array<CartCustomerProfileAddress>;
|
|
155
|
+
/**
|
|
156
|
+
* Signup date
|
|
157
|
+
* @type {string}
|
|
158
|
+
* @memberof CartCustomerProfile
|
|
159
|
+
*/
|
|
160
|
+
signup_dts?: string;
|
|
155
161
|
/**
|
|
156
162
|
* True if this profile is exempt from sales tax
|
|
157
163
|
* @type {boolean}
|
|
@@ -196,6 +202,7 @@ export function CartCustomerProfileFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
196
202
|
'no_realtime_charge': !exists(json, 'no_realtime_charge') ? undefined : json['no_realtime_charge'],
|
|
197
203
|
'pricing_tiers': !exists(json, 'pricing_tiers') ? undefined : json['pricing_tiers'],
|
|
198
204
|
'shipping_addresses': !exists(json, 'shipping_addresses') ? undefined : ((json['shipping_addresses'] as Array<any>).map(CartCustomerProfileAddressFromJSON)),
|
|
205
|
+
'signup_dts': !exists(json, 'signup_dts') ? undefined : json['signup_dts'],
|
|
199
206
|
'tax_exempt': !exists(json, 'tax_exempt') ? undefined : json['tax_exempt'],
|
|
200
207
|
'ups_account_number': !exists(json, 'ups_account_number') ? undefined : json['ups_account_number'],
|
|
201
208
|
};
|
|
@@ -230,6 +237,7 @@ export function CartCustomerProfileToJSON(value?: CartCustomerProfile | null): a
|
|
|
230
237
|
'no_realtime_charge': value.no_realtime_charge,
|
|
231
238
|
'pricing_tiers': value.pricing_tiers,
|
|
232
239
|
'shipping_addresses': value.shipping_addresses === undefined ? undefined : ((value.shipping_addresses as Array<any>).map(CartCustomerProfileAddressToJSON)),
|
|
240
|
+
'signup_dts': value.signup_dts,
|
|
233
241
|
'tax_exempt': value.tax_exempt,
|
|
234
242
|
'ups_account_number': value.ups_account_number,
|
|
235
243
|
};
|
|
@@ -92,6 +92,12 @@ export interface ConversationWebchatContext {
|
|
|
92
92
|
* @memberof ConversationWebchatContext
|
|
93
93
|
*/
|
|
94
94
|
session_start?: HitSessionStart;
|
|
95
|
+
/**
|
|
96
|
+
* Date/time that the session was started (if known)
|
|
97
|
+
* @type {string}
|
|
98
|
+
* @memberof ConversationWebchatContext
|
|
99
|
+
*/
|
|
100
|
+
session_start_dts?: string;
|
|
95
101
|
/**
|
|
96
102
|
*
|
|
97
103
|
* @type {HitSessionUtm}
|
|
@@ -116,6 +122,7 @@ export function ConversationWebchatContextFromJSONTyped(json: any, ignoreDiscrim
|
|
|
116
122
|
'orders': !exists(json, 'orders') ? undefined : ((json['orders'] as Array<any>).map(OrderFromJSON)),
|
|
117
123
|
'page_view': !exists(json, 'page_view') ? undefined : ((json['page_view'] as Array<any>).map(HitPageViewFromJSON)),
|
|
118
124
|
'session_start': !exists(json, 'session_start') ? undefined : HitSessionStartFromJSON(json['session_start']),
|
|
125
|
+
'session_start_dts': !exists(json, 'session_start_dts') ? undefined : json['session_start_dts'],
|
|
119
126
|
'session_utm': !exists(json, 'session_utm') ? undefined : HitSessionUtmFromJSON(json['session_utm']),
|
|
120
127
|
};
|
|
121
128
|
}
|
|
@@ -135,6 +142,7 @@ export function ConversationWebchatContextToJSON(value?: ConversationWebchatCont
|
|
|
135
142
|
'orders': value.orders === undefined ? undefined : ((value.orders as Array<any>).map(OrderToJSON)),
|
|
136
143
|
'page_view': value.page_view === undefined ? undefined : ((value.page_view as Array<any>).map(HitPageViewToJSON)),
|
|
137
144
|
'session_start': HitSessionStartToJSON(value.session_start),
|
|
145
|
+
'session_start_dts': value.session_start_dts,
|
|
138
146
|
'session_utm': HitSessionUtmToJSON(value.session_utm),
|
|
139
147
|
};
|
|
140
148
|
}
|