ultracart_rest_api_v2_typescript 4.0.72-RC → 4.0.74-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/apis/ConversationApi.d.ts +2 -0
- package/dist/apis/ConversationApi.js +3 -0
- package/dist/models/Conversation.d.ts +6 -0
- package/dist/models/Conversation.js +2 -0
- package/dist/models/ConversationSummary.d.ts +6 -0
- package/dist/models/ConversationSummary.js +2 -0
- package/dist/models/Customer.d.ts +6 -0
- package/dist/models/Customer.js +2 -0
- package/dist/models/ItemDigitalItemsResponse.d.ts +1 -1
- package/dist/models/ItemDigitalItemsResponse.js +2 -2
- package/package.json +1 -1
- package/src/apis/ConversationApi.ts +6 -0
- package/src/models/Conversation.ts +8 -0
- package/src/models/ConversationSummary.ts +8 -0
- package/src/models/Customer.ts +8 -0
- package/src/models/ItemDigitalItemsResponse.ts +3 -3
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## ultracart_rest_api_v2_typescript@4.0.
|
|
1
|
+
## ultracart_rest_api_v2_typescript@4.0.74-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.74-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.74-RC | 10/17/2022 | conversations - add last_interactive_message_dts |
|
|
58
|
+
| 4.0.73-RC | 10/07/2022 | bug fix for digital items response |
|
|
57
59
|
| 4.0.72-RC | 10/05/2022 | storefront rest file cdn icon urls |
|
|
58
60
|
| 4.0.71-RC | 10/04/2022 | bug fix for new storefront file mgr |
|
|
59
61
|
| 4.0.70-RC | 09/29/2022 | page_paths search category for search2 method |
|
|
@@ -25,6 +25,7 @@ export interface GetConversationMultimediaUploadUrlRequest {
|
|
|
25
25
|
}
|
|
26
26
|
export interface GetConversationsRequest {
|
|
27
27
|
medium?: string;
|
|
28
|
+
before?: string;
|
|
28
29
|
limit?: number;
|
|
29
30
|
offset?: number;
|
|
30
31
|
}
|
|
@@ -136,6 +137,7 @@ export interface ConversationApiInterface {
|
|
|
136
137
|
* Retrieve a list of conversation summaries that are ordered newest to oldest, include the most recent message and whether its been read.
|
|
137
138
|
* @summary Retrieve a list of conversation summaries newest to oldest
|
|
138
139
|
* @param {string} [medium]
|
|
140
|
+
* @param {string} [before]
|
|
139
141
|
* @param {number} [limit] The maximum number of records to return on this one API call. (Max 200)
|
|
140
142
|
* @param {number} [offset] Pagination of the record set. Offset is a zero based index.
|
|
141
143
|
* @param {*} [options] Override http request option.
|
|
@@ -441,6 +441,9 @@ var ConversationApi = /** @class */ (function (_super) {
|
|
|
441
441
|
if (requestParameters.medium !== undefined) {
|
|
442
442
|
queryParameters['medium'] = requestParameters.medium;
|
|
443
443
|
}
|
|
444
|
+
if (requestParameters.before !== undefined) {
|
|
445
|
+
queryParameters['before'] = requestParameters.before;
|
|
446
|
+
}
|
|
444
447
|
if (requestParameters.limit !== undefined) {
|
|
445
448
|
queryParameters['_limit'] = requestParameters.limit;
|
|
446
449
|
}
|
|
@@ -53,6 +53,12 @@ export interface Conversation {
|
|
|
53
53
|
* @memberof Conversation
|
|
54
54
|
*/
|
|
55
55
|
last_conversation_participant_name?: string;
|
|
56
|
+
/**
|
|
57
|
+
* Last interactive message date/time
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof Conversation
|
|
60
|
+
*/
|
|
61
|
+
last_interactive_message_dts?: string;
|
|
56
62
|
/**
|
|
57
63
|
* Last message date/time
|
|
58
64
|
* @type {string}
|
|
@@ -39,6 +39,7 @@ function ConversationFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
39
39
|
'last_conversation_message_body': !(0, runtime_1.exists)(json, 'last_conversation_message_body') ? undefined : json['last_conversation_message_body'],
|
|
40
40
|
'last_conversation_participant_arn': !(0, runtime_1.exists)(json, 'last_conversation_participant_arn') ? undefined : json['last_conversation_participant_arn'],
|
|
41
41
|
'last_conversation_participant_name': !(0, runtime_1.exists)(json, 'last_conversation_participant_name') ? undefined : json['last_conversation_participant_name'],
|
|
42
|
+
'last_interactive_message_dts': !(0, runtime_1.exists)(json, 'last_interactive_message_dts') ? undefined : json['last_interactive_message_dts'],
|
|
42
43
|
'last_message_dts': !(0, runtime_1.exists)(json, 'last_message_dts') ? undefined : json['last_message_dts'],
|
|
43
44
|
'medium': !(0, runtime_1.exists)(json, 'medium') ? undefined : json['medium'],
|
|
44
45
|
'merchant_id': !(0, runtime_1.exists)(json, 'merchant_id') ? undefined : json['merchant_id'],
|
|
@@ -65,6 +66,7 @@ function ConversationToJSON(value) {
|
|
|
65
66
|
'last_conversation_message_body': value.last_conversation_message_body,
|
|
66
67
|
'last_conversation_participant_arn': value.last_conversation_participant_arn,
|
|
67
68
|
'last_conversation_participant_name': value.last_conversation_participant_name,
|
|
69
|
+
'last_interactive_message_dts': value.last_interactive_message_dts,
|
|
68
70
|
'last_message_dts': value.last_message_dts,
|
|
69
71
|
'medium': value.medium,
|
|
70
72
|
'merchant_id': value.merchant_id,
|
|
@@ -52,6 +52,12 @@ export interface ConversationSummary {
|
|
|
52
52
|
* @memberof ConversationSummary
|
|
53
53
|
*/
|
|
54
54
|
last_conversation_participant_name?: string;
|
|
55
|
+
/**
|
|
56
|
+
* Last interactive message date/time
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof ConversationSummary
|
|
59
|
+
*/
|
|
60
|
+
last_interactive_message_dts?: string;
|
|
55
61
|
/**
|
|
56
62
|
* Last message date/time
|
|
57
63
|
* @type {string}
|
|
@@ -38,6 +38,7 @@ function ConversationSummaryFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
38
|
'last_conversation_message_body': !(0, runtime_1.exists)(json, 'last_conversation_message_body') ? undefined : json['last_conversation_message_body'],
|
|
39
39
|
'last_conversation_participant_arn': !(0, runtime_1.exists)(json, 'last_conversation_participant_arn') ? undefined : json['last_conversation_participant_arn'],
|
|
40
40
|
'last_conversation_participant_name': !(0, runtime_1.exists)(json, 'last_conversation_participant_name') ? undefined : json['last_conversation_participant_name'],
|
|
41
|
+
'last_interactive_message_dts': !(0, runtime_1.exists)(json, 'last_interactive_message_dts') ? undefined : json['last_interactive_message_dts'],
|
|
41
42
|
'last_message_dts': !(0, runtime_1.exists)(json, 'last_message_dts') ? undefined : json['last_message_dts'],
|
|
42
43
|
'medium': !(0, runtime_1.exists)(json, 'medium') ? undefined : json['medium'],
|
|
43
44
|
'merchant_id': !(0, runtime_1.exists)(json, 'merchant_id') ? undefined : json['merchant_id'],
|
|
@@ -63,6 +64,7 @@ function ConversationSummaryToJSON(value) {
|
|
|
63
64
|
'last_conversation_message_body': value.last_conversation_message_body,
|
|
64
65
|
'last_conversation_participant_arn': value.last_conversation_participant_arn,
|
|
65
66
|
'last_conversation_participant_name': value.last_conversation_participant_name,
|
|
67
|
+
'last_interactive_message_dts': value.last_interactive_message_dts,
|
|
66
68
|
'last_message_dts': value.last_message_dts,
|
|
67
69
|
'medium': value.medium,
|
|
68
70
|
'merchant_id': value.merchant_id,
|
|
@@ -199,6 +199,12 @@ export interface Customer {
|
|
|
199
199
|
* @memberof Customer
|
|
200
200
|
*/
|
|
201
201
|
maximum_item_count?: number;
|
|
202
|
+
/**
|
|
203
|
+
* Merchant ID
|
|
204
|
+
* @type {string}
|
|
205
|
+
* @memberof Customer
|
|
206
|
+
*/
|
|
207
|
+
merchant_id?: string;
|
|
202
208
|
/**
|
|
203
209
|
* Minimum item count
|
|
204
210
|
* @type {number}
|
package/dist/models/Customer.js
CHANGED
|
@@ -68,6 +68,7 @@ function CustomerFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
68
68
|
'last_modified_dts': !(0, runtime_1.exists)(json, 'last_modified_dts') ? undefined : json['last_modified_dts'],
|
|
69
69
|
'loyalty': !(0, runtime_1.exists)(json, 'loyalty') ? undefined : (0, CustomerLoyalty_1.CustomerLoyaltyFromJSON)(json['loyalty']),
|
|
70
70
|
'maximum_item_count': !(0, runtime_1.exists)(json, 'maximum_item_count') ? undefined : json['maximum_item_count'],
|
|
71
|
+
'merchant_id': !(0, runtime_1.exists)(json, 'merchant_id') ? undefined : json['merchant_id'],
|
|
71
72
|
'minimum_item_count': !(0, runtime_1.exists)(json, 'minimum_item_count') ? undefined : json['minimum_item_count'],
|
|
72
73
|
'minimum_subtotal': !(0, runtime_1.exists)(json, 'minimum_subtotal') ? undefined : json['minimum_subtotal'],
|
|
73
74
|
'no_coupons': !(0, runtime_1.exists)(json, 'no_coupons') ? undefined : json['no_coupons'],
|
|
@@ -138,6 +139,7 @@ function CustomerToJSON(value) {
|
|
|
138
139
|
'last_modified_dts': value.last_modified_dts,
|
|
139
140
|
'loyalty': (0, CustomerLoyalty_1.CustomerLoyaltyToJSON)(value.loyalty),
|
|
140
141
|
'maximum_item_count': value.maximum_item_count,
|
|
142
|
+
'merchant_id': value.merchant_id,
|
|
141
143
|
'minimum_item_count': value.minimum_item_count,
|
|
142
144
|
'minimum_subtotal': value.minimum_subtotal,
|
|
143
145
|
'no_coupons': value.no_coupons,
|
|
@@ -28,7 +28,7 @@ function ItemDigitalItemsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
28
28
|
return json;
|
|
29
29
|
}
|
|
30
30
|
return {
|
|
31
|
-
'
|
|
31
|
+
'digital_items': !(0, runtime_1.exists)(json, 'digital_items') ? undefined : (json['digital_items'].map(ItemDigitalItem_1.ItemDigitalItemFromJSON)),
|
|
32
32
|
'error': !(0, runtime_1.exists)(json, 'error') ? undefined : (0, ModelError_1.ModelErrorFromJSON)(json['error']),
|
|
33
33
|
'metadata': !(0, runtime_1.exists)(json, 'metadata') ? undefined : (0, ResponseMetadata_1.ResponseMetadataFromJSON)(json['metadata']),
|
|
34
34
|
'success': !(0, runtime_1.exists)(json, 'success') ? undefined : json['success'],
|
|
@@ -44,7 +44,7 @@ function ItemDigitalItemsResponseToJSON(value) {
|
|
|
44
44
|
return null;
|
|
45
45
|
}
|
|
46
46
|
return {
|
|
47
|
-
'
|
|
47
|
+
'digital_items': value.digital_items === undefined ? undefined : (value.digital_items.map(ItemDigitalItem_1.ItemDigitalItemToJSON)),
|
|
48
48
|
'error': (0, ModelError_1.ModelErrorToJSON)(value.error),
|
|
49
49
|
'metadata': (0, ResponseMetadata_1.ResponseMetadataToJSON)(value.metadata),
|
|
50
50
|
'success': value.success,
|
package/package.json
CHANGED
|
@@ -64,6 +64,7 @@ export interface GetConversationMultimediaUploadUrlRequest {
|
|
|
64
64
|
|
|
65
65
|
export interface GetConversationsRequest {
|
|
66
66
|
medium?: string;
|
|
67
|
+
before?: string;
|
|
67
68
|
limit?: number;
|
|
68
69
|
offset?: number;
|
|
69
70
|
}
|
|
@@ -192,6 +193,7 @@ export interface ConversationApiInterface {
|
|
|
192
193
|
* Retrieve a list of conversation summaries that are ordered newest to oldest, include the most recent message and whether its been read.
|
|
193
194
|
* @summary Retrieve a list of conversation summaries newest to oldest
|
|
194
195
|
* @param {string} [medium]
|
|
196
|
+
* @param {string} [before]
|
|
195
197
|
* @param {number} [limit] The maximum number of records to return on this one API call. (Max 200)
|
|
196
198
|
* @param {number} [offset] Pagination of the record set. Offset is a zero based index.
|
|
197
199
|
* @param {*} [options] Override http request option.
|
|
@@ -534,6 +536,10 @@ export class ConversationApi extends runtime.BaseAPI implements ConversationApiI
|
|
|
534
536
|
queryParameters['medium'] = requestParameters.medium;
|
|
535
537
|
}
|
|
536
538
|
|
|
539
|
+
if (requestParameters.before !== undefined) {
|
|
540
|
+
queryParameters['before'] = requestParameters.before;
|
|
541
|
+
}
|
|
542
|
+
|
|
537
543
|
if (requestParameters.limit !== undefined) {
|
|
538
544
|
queryParameters['_limit'] = requestParameters.limit;
|
|
539
545
|
}
|
|
@@ -68,6 +68,12 @@ export interface Conversation {
|
|
|
68
68
|
* @memberof Conversation
|
|
69
69
|
*/
|
|
70
70
|
last_conversation_participant_name?: string;
|
|
71
|
+
/**
|
|
72
|
+
* Last interactive message date/time
|
|
73
|
+
* @type {string}
|
|
74
|
+
* @memberof Conversation
|
|
75
|
+
*/
|
|
76
|
+
last_interactive_message_dts?: string;
|
|
71
77
|
/**
|
|
72
78
|
* Last message date/time
|
|
73
79
|
* @type {string}
|
|
@@ -151,6 +157,7 @@ export function ConversationFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|
|
151
157
|
'last_conversation_message_body': !exists(json, 'last_conversation_message_body') ? undefined : json['last_conversation_message_body'],
|
|
152
158
|
'last_conversation_participant_arn': !exists(json, 'last_conversation_participant_arn') ? undefined : json['last_conversation_participant_arn'],
|
|
153
159
|
'last_conversation_participant_name': !exists(json, 'last_conversation_participant_name') ? undefined : json['last_conversation_participant_name'],
|
|
160
|
+
'last_interactive_message_dts': !exists(json, 'last_interactive_message_dts') ? undefined : json['last_interactive_message_dts'],
|
|
154
161
|
'last_message_dts': !exists(json, 'last_message_dts') ? undefined : json['last_message_dts'],
|
|
155
162
|
'medium': !exists(json, 'medium') ? undefined : json['medium'],
|
|
156
163
|
'merchant_id': !exists(json, 'merchant_id') ? undefined : json['merchant_id'],
|
|
@@ -178,6 +185,7 @@ export function ConversationToJSON(value?: Conversation | null): any {
|
|
|
178
185
|
'last_conversation_message_body': value.last_conversation_message_body,
|
|
179
186
|
'last_conversation_participant_arn': value.last_conversation_participant_arn,
|
|
180
187
|
'last_conversation_participant_name': value.last_conversation_participant_name,
|
|
188
|
+
'last_interactive_message_dts': value.last_interactive_message_dts,
|
|
181
189
|
'last_message_dts': value.last_message_dts,
|
|
182
190
|
'medium': value.medium,
|
|
183
191
|
'merchant_id': value.merchant_id,
|
|
@@ -62,6 +62,12 @@ export interface ConversationSummary {
|
|
|
62
62
|
* @memberof ConversationSummary
|
|
63
63
|
*/
|
|
64
64
|
last_conversation_participant_name?: string;
|
|
65
|
+
/**
|
|
66
|
+
* Last interactive message date/time
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof ConversationSummary
|
|
69
|
+
*/
|
|
70
|
+
last_interactive_message_dts?: string;
|
|
65
71
|
/**
|
|
66
72
|
* Last message date/time
|
|
67
73
|
* @type {string}
|
|
@@ -139,6 +145,7 @@ export function ConversationSummaryFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
139
145
|
'last_conversation_message_body': !exists(json, 'last_conversation_message_body') ? undefined : json['last_conversation_message_body'],
|
|
140
146
|
'last_conversation_participant_arn': !exists(json, 'last_conversation_participant_arn') ? undefined : json['last_conversation_participant_arn'],
|
|
141
147
|
'last_conversation_participant_name': !exists(json, 'last_conversation_participant_name') ? undefined : json['last_conversation_participant_name'],
|
|
148
|
+
'last_interactive_message_dts': !exists(json, 'last_interactive_message_dts') ? undefined : json['last_interactive_message_dts'],
|
|
142
149
|
'last_message_dts': !exists(json, 'last_message_dts') ? undefined : json['last_message_dts'],
|
|
143
150
|
'medium': !exists(json, 'medium') ? undefined : json['medium'],
|
|
144
151
|
'merchant_id': !exists(json, 'merchant_id') ? undefined : json['merchant_id'],
|
|
@@ -165,6 +172,7 @@ export function ConversationSummaryToJSON(value?: ConversationSummary | null): a
|
|
|
165
172
|
'last_conversation_message_body': value.last_conversation_message_body,
|
|
166
173
|
'last_conversation_participant_arn': value.last_conversation_participant_arn,
|
|
167
174
|
'last_conversation_participant_name': value.last_conversation_participant_name,
|
|
175
|
+
'last_interactive_message_dts': value.last_interactive_message_dts,
|
|
168
176
|
'last_message_dts': value.last_message_dts,
|
|
169
177
|
'medium': value.medium,
|
|
170
178
|
'merchant_id': value.merchant_id,
|
package/src/models/Customer.ts
CHANGED
|
@@ -284,6 +284,12 @@ export interface Customer {
|
|
|
284
284
|
* @memberof Customer
|
|
285
285
|
*/
|
|
286
286
|
maximum_item_count?: number;
|
|
287
|
+
/**
|
|
288
|
+
* Merchant ID
|
|
289
|
+
* @type {string}
|
|
290
|
+
* @memberof Customer
|
|
291
|
+
*/
|
|
292
|
+
merchant_id?: string;
|
|
287
293
|
/**
|
|
288
294
|
* Minimum item count
|
|
289
295
|
* @type {number}
|
|
@@ -510,6 +516,7 @@ export function CustomerFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
510
516
|
'last_modified_dts': !exists(json, 'last_modified_dts') ? undefined : json['last_modified_dts'],
|
|
511
517
|
'loyalty': !exists(json, 'loyalty') ? undefined : CustomerLoyaltyFromJSON(json['loyalty']),
|
|
512
518
|
'maximum_item_count': !exists(json, 'maximum_item_count') ? undefined : json['maximum_item_count'],
|
|
519
|
+
'merchant_id': !exists(json, 'merchant_id') ? undefined : json['merchant_id'],
|
|
513
520
|
'minimum_item_count': !exists(json, 'minimum_item_count') ? undefined : json['minimum_item_count'],
|
|
514
521
|
'minimum_subtotal': !exists(json, 'minimum_subtotal') ? undefined : json['minimum_subtotal'],
|
|
515
522
|
'no_coupons': !exists(json, 'no_coupons') ? undefined : json['no_coupons'],
|
|
@@ -581,6 +588,7 @@ export function CustomerToJSON(value?: Customer | null): any {
|
|
|
581
588
|
'last_modified_dts': value.last_modified_dts,
|
|
582
589
|
'loyalty': CustomerLoyaltyToJSON(value.loyalty),
|
|
583
590
|
'maximum_item_count': value.maximum_item_count,
|
|
591
|
+
'merchant_id': value.merchant_id,
|
|
584
592
|
'minimum_item_count': value.minimum_item_count,
|
|
585
593
|
'minimum_subtotal': value.minimum_subtotal,
|
|
586
594
|
'no_coupons': value.no_coupons,
|
|
@@ -49,7 +49,7 @@ export interface ItemDigitalItemsResponse {
|
|
|
49
49
|
* @type {Array<ItemDigitalItem>}
|
|
50
50
|
* @memberof ItemDigitalItemsResponse
|
|
51
51
|
*/
|
|
52
|
-
|
|
52
|
+
digital_items?: Array<ItemDigitalItem>;
|
|
53
53
|
/**
|
|
54
54
|
*
|
|
55
55
|
* @type {ModelError}
|
|
@@ -86,7 +86,7 @@ export function ItemDigitalItemsResponseFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
86
86
|
}
|
|
87
87
|
return {
|
|
88
88
|
|
|
89
|
-
'
|
|
89
|
+
'digital_items': !exists(json, 'digital_items') ? undefined : ((json['digital_items'] as Array<any>).map(ItemDigitalItemFromJSON)),
|
|
90
90
|
'error': !exists(json, 'error') ? undefined : ModelErrorFromJSON(json['error']),
|
|
91
91
|
'metadata': !exists(json, 'metadata') ? undefined : ResponseMetadataFromJSON(json['metadata']),
|
|
92
92
|
'success': !exists(json, 'success') ? undefined : json['success'],
|
|
@@ -103,7 +103,7 @@ export function ItemDigitalItemsResponseToJSON(value?: ItemDigitalItemsResponse
|
|
|
103
103
|
}
|
|
104
104
|
return {
|
|
105
105
|
|
|
106
|
-
'
|
|
106
|
+
'digital_items': value.digital_items === undefined ? undefined : ((value.digital_items as Array<any>).map(ItemDigitalItemToJSON)),
|
|
107
107
|
'error': ModelErrorToJSON(value.error),
|
|
108
108
|
'metadata': ResponseMetadataToJSON(value.metadata),
|
|
109
109
|
'success': value.success,
|