ultracart_rest_api_v2_typescript 4.0.92-RC → 4.0.94-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 CHANGED
@@ -1,4 +1,4 @@
1
- ## ultracart_rest_api_v2_typescript@4.0.92-RC
1
+ ## ultracart_rest_api_v2_typescript@4.0.94-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.92-RC --save
39
+ npm install ultracart_rest_api_v2_typescript@4.0.94-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.94-RC | 12/08/2022 | communications - expose the rebuild percentage |
58
+ | 4.0.93-RC | 12/06/2022 | convo - add session_start_dts to webchat context, cart - add customer_profile.signup_dts |
57
59
  | 4.0.92-RC | 12/06/2022 | customer api - expose edi information and editor values |
58
60
  | 4.0.91-RC | 12/02/2022 | conversations - customer last unresponded dts |
59
61
  | 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 aount that this profile has to purchase to qualify for free shipping
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
  }
@@ -88,6 +88,12 @@ export interface EmailSegment {
88
88
  * @memberof EmailSegment
89
89
  */
90
90
  rank_json?: string;
91
+ /**
92
+ * Percentage of completion for a rebuild. The value range will be 0-1. Multiply by 100 to format for display.
93
+ * @type {number}
94
+ * @memberof EmailSegment
95
+ */
96
+ rebuild_percentage?: number;
91
97
  /**
92
98
  * True if a rebuild is required because some part of the segment has changed
93
99
  * @type {boolean}
@@ -37,6 +37,7 @@ function EmailSegmentFromJSONTyped(json, ignoreDiscriminator) {
37
37
  'merchant_id': !(0, runtime_1.exists)(json, 'merchant_id') ? undefined : json['merchant_id'],
38
38
  'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
39
39
  'rank_json': !(0, runtime_1.exists)(json, 'rank_json') ? undefined : json['rank_json'],
40
+ 'rebuild_percentage': !(0, runtime_1.exists)(json, 'rebuild_percentage') ? undefined : json['rebuild_percentage'],
40
41
  'rebuild_required': !(0, runtime_1.exists)(json, 'rebuild_required') ? undefined : json['rebuild_required'],
41
42
  'storefront_oid': !(0, runtime_1.exists)(json, 'storefront_oid') ? undefined : json['storefront_oid'],
42
43
  'thirdparty_join_add_tags': !(0, runtime_1.exists)(json, 'thirdparty_join_add_tags') ? undefined : json['thirdparty_join_add_tags'],
@@ -69,6 +70,7 @@ function EmailSegmentToJSON(value) {
69
70
  'merchant_id': value.merchant_id,
70
71
  'name': value.name,
71
72
  'rank_json': value.rank_json,
73
+ 'rebuild_percentage': value.rebuild_percentage,
72
74
  'rebuild_required': value.rebuild_required,
73
75
  'storefront_oid': value.storefront_oid,
74
76
  'thirdparty_join_add_tags': value.thirdparty_join_add_tags,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ultracart_rest_api_v2_typescript",
3
- "version": "4.0.92-RC",
3
+ "version": "4.0.94-RC",
4
4
  "description": "UltraCart Rest TypeScript SDK",
5
5
  "author": "UltraCart",
6
6
  "repository": {
@@ -99,7 +99,7 @@ export interface CartCustomerProfile {
99
99
  */
100
100
  free_shipping?: boolean;
101
101
  /**
102
- * The minimum aount that this profile has to purchase to qualify for free shipping
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
  }
@@ -98,6 +98,12 @@ export interface EmailSegment {
98
98
  * @memberof EmailSegment
99
99
  */
100
100
  rank_json?: string;
101
+ /**
102
+ * Percentage of completion for a rebuild. The value range will be 0-1. Multiply by 100 to format for display.
103
+ * @type {number}
104
+ * @memberof EmailSegment
105
+ */
106
+ rebuild_percentage?: number;
101
107
  /**
102
108
  * True if a rebuild is required because some part of the segment has changed
103
109
  * @type {boolean}
@@ -176,6 +182,7 @@ export function EmailSegmentFromJSONTyped(json: any, ignoreDiscriminator: boolea
176
182
  'merchant_id': !exists(json, 'merchant_id') ? undefined : json['merchant_id'],
177
183
  'name': !exists(json, 'name') ? undefined : json['name'],
178
184
  'rank_json': !exists(json, 'rank_json') ? undefined : json['rank_json'],
185
+ 'rebuild_percentage': !exists(json, 'rebuild_percentage') ? undefined : json['rebuild_percentage'],
179
186
  'rebuild_required': !exists(json, 'rebuild_required') ? undefined : json['rebuild_required'],
180
187
  'storefront_oid': !exists(json, 'storefront_oid') ? undefined : json['storefront_oid'],
181
188
  'thirdparty_join_add_tags': !exists(json, 'thirdparty_join_add_tags') ? undefined : json['thirdparty_join_add_tags'],
@@ -209,6 +216,7 @@ export function EmailSegmentToJSON(value?: EmailSegment | null): any {
209
216
  'merchant_id': value.merchant_id,
210
217
  'name': value.name,
211
218
  'rank_json': value.rank_json,
219
+ 'rebuild_percentage': value.rebuild_percentage,
212
220
  'rebuild_required': value.rebuild_required,
213
221
  'storefront_oid': value.storefront_oid,
214
222
  'thirdparty_join_add_tags': value.thirdparty_join_add_tags,