ultracart_rest_api_v2_typescript 4.0.129 → 4.0.131
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/ConversationWebchatQueueStatusQueueEntry.d.ts +6 -0
- package/dist/models/ConversationWebchatQueueStatusQueueEntry.js +2 -0
- package/dist/models/ConversationWebsocketMessage.d.ts +13 -0
- package/dist/models/ConversationWebsocketMessage.js +6 -1
- package/package.json +1 -1
- package/src/models/ConversationWebchatQueueStatusQueueEntry.ts +8 -0
- package/src/models/ConversationWebsocketMessage.ts +18 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## ultracart_rest_api_v2_typescript@4.0.
|
|
1
|
+
## ultracart_rest_api_v2_typescript@4.0.131
|
|
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.131 --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.131 | 02/07/2023 | convo - new event for when a customer joins a queue |
|
|
58
|
+
| 4.0.130 | 02/06/2023 | convo - add conversation_arn to ConversationWebsocketMessage |
|
|
57
59
|
| 4.0.129 | 02/01/2023 | convo - agent profile get/update methods |
|
|
58
60
|
| 4.0.128 | 01/27/2023 | convo - added event_engage_customer property to message |
|
|
59
61
|
| 4.0.127 | 01/27/2023 | conversations - getLocationsForEngagement method |
|
|
@@ -57,6 +57,12 @@ export interface ConversationWebchatQueueStatusQueueEntry {
|
|
|
57
57
|
* @memberof ConversationWebchatQueueStatusQueueEntry
|
|
58
58
|
*/
|
|
59
59
|
question?: string;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof ConversationWebchatQueueStatusQueueEntry
|
|
64
|
+
*/
|
|
65
|
+
queue_name?: string;
|
|
60
66
|
}
|
|
61
67
|
export declare function ConversationWebchatQueueStatusQueueEntryFromJSON(json: any): ConversationWebchatQueueStatusQueueEntry;
|
|
62
68
|
export declare function ConversationWebchatQueueStatusQueueEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationWebchatQueueStatusQueueEntry;
|
|
@@ -31,6 +31,7 @@ function ConversationWebchatQueueStatusQueueEntryFromJSONTyped(json, ignoreDiscr
|
|
|
31
31
|
'join_dts': !(0, runtime_1.exists)(json, 'join_dts') ? undefined : json['join_dts'],
|
|
32
32
|
'participant_language_iso_code': !(0, runtime_1.exists)(json, 'participant_language_iso_code') ? undefined : json['participant_language_iso_code'],
|
|
33
33
|
'question': !(0, runtime_1.exists)(json, 'question') ? undefined : json['question'],
|
|
34
|
+
'queue_name': !(0, runtime_1.exists)(json, 'queue_name') ? undefined : json['queue_name'],
|
|
34
35
|
};
|
|
35
36
|
}
|
|
36
37
|
exports.ConversationWebchatQueueStatusQueueEntryFromJSONTyped = ConversationWebchatQueueStatusQueueEntryFromJSONTyped;
|
|
@@ -49,6 +50,7 @@ function ConversationWebchatQueueStatusQueueEntryToJSON(value) {
|
|
|
49
50
|
'join_dts': value.join_dts,
|
|
50
51
|
'participant_language_iso_code': value.participant_language_iso_code,
|
|
51
52
|
'question': value.question,
|
|
53
|
+
'queue_name': value.queue_name,
|
|
52
54
|
};
|
|
53
55
|
}
|
|
54
56
|
exports.ConversationWebchatQueueStatusQueueEntryToJSON = ConversationWebchatQueueStatusQueueEntryToJSON;
|
|
@@ -27,6 +27,12 @@ import { ConversationWebchatQueueStatusQueueEntry } from './ConversationWebchatQ
|
|
|
27
27
|
* @interface ConversationWebsocketMessage
|
|
28
28
|
*/
|
|
29
29
|
export interface ConversationWebsocketMessage {
|
|
30
|
+
/**
|
|
31
|
+
* Conversation ARN
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ConversationWebsocketMessage
|
|
34
|
+
*/
|
|
35
|
+
conversation_arn?: string;
|
|
30
36
|
/**
|
|
31
37
|
* Conversation UUID if the websocket message is tied to a specific conversation
|
|
32
38
|
* @type {string}
|
|
@@ -99,6 +105,12 @@ export interface ConversationWebsocketMessage {
|
|
|
99
105
|
* @memberof ConversationWebsocketMessage
|
|
100
106
|
*/
|
|
101
107
|
event_participant_update?: ConversationSummary;
|
|
108
|
+
/**
|
|
109
|
+
*
|
|
110
|
+
* @type {ConversationWebchatQueueStatusQueueEntry}
|
|
111
|
+
* @memberof ConversationWebsocketMessage
|
|
112
|
+
*/
|
|
113
|
+
event_queue_new_member?: ConversationWebchatQueueStatusQueueEntry;
|
|
102
114
|
/**
|
|
103
115
|
*
|
|
104
116
|
* @type {ConversationEventQueuePosition}
|
|
@@ -181,6 +193,7 @@ export declare const ConversationWebsocketMessageEventTypeEnum: {
|
|
|
181
193
|
readonly AddItem: "add item";
|
|
182
194
|
readonly WebchatContext: "webchat context";
|
|
183
195
|
readonly EngageCustomer: "engage customer";
|
|
196
|
+
readonly QueueNewMember: "queue new member";
|
|
184
197
|
};
|
|
185
198
|
export type ConversationWebsocketMessageEventTypeEnum = typeof ConversationWebsocketMessageEventTypeEnum[keyof typeof ConversationWebsocketMessageEventTypeEnum];
|
|
186
199
|
/**
|
|
@@ -47,7 +47,8 @@ exports.ConversationWebsocketMessageEventTypeEnum = {
|
|
|
47
47
|
AddCoupon: 'add coupon',
|
|
48
48
|
AddItem: 'add item',
|
|
49
49
|
WebchatContext: 'webchat context',
|
|
50
|
-
EngageCustomer: 'engage customer'
|
|
50
|
+
EngageCustomer: 'engage customer',
|
|
51
|
+
QueueNewMember: 'queue new member'
|
|
51
52
|
};
|
|
52
53
|
/**
|
|
53
54
|
* @export
|
|
@@ -67,6 +68,7 @@ function ConversationWebsocketMessageFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
67
68
|
return json;
|
|
68
69
|
}
|
|
69
70
|
return {
|
|
71
|
+
'conversation_arn': !(0, runtime_1.exists)(json, 'conversation_arn') ? undefined : json['conversation_arn'],
|
|
70
72
|
'conversation_uuid': !(0, runtime_1.exists)(json, 'conversation_uuid') ? undefined : json['conversation_uuid'],
|
|
71
73
|
'event_add_coupon': !(0, runtime_1.exists)(json, 'event_add_coupon') ? undefined : (0, ConversationEventAddCoupon_1.ConversationEventAddCouponFromJSON)(json['event_add_coupon']),
|
|
72
74
|
'event_add_item': !(0, runtime_1.exists)(json, 'event_add_item') ? undefined : (0, ConversationEventAddItem_1.ConversationEventAddItemFromJSON)(json['event_add_item']),
|
|
@@ -79,6 +81,7 @@ function ConversationWebsocketMessageFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
79
81
|
'event_participant_left': !(0, runtime_1.exists)(json, 'event_participant_left') ? undefined : (0, ConversationSummary_1.ConversationSummaryFromJSON)(json['event_participant_left']),
|
|
80
82
|
'event_participant_left_participant': !(0, runtime_1.exists)(json, 'event_participant_left_participant') ? undefined : (0, ConversationParticipant_1.ConversationParticipantFromJSON)(json['event_participant_left_participant']),
|
|
81
83
|
'event_participant_update': !(0, runtime_1.exists)(json, 'event_participant_update') ? undefined : (0, ConversationSummary_1.ConversationSummaryFromJSON)(json['event_participant_update']),
|
|
84
|
+
'event_queue_new_member': !(0, runtime_1.exists)(json, 'event_queue_new_member') ? undefined : (0, ConversationWebchatQueueStatusQueueEntry_1.ConversationWebchatQueueStatusQueueEntryFromJSON)(json['event_queue_new_member']),
|
|
82
85
|
'event_queue_position': !(0, runtime_1.exists)(json, 'event_queue_position') ? undefined : (0, ConversationEventQueuePosition_1.ConversationEventQueuePositionFromJSON)(json['event_queue_position']),
|
|
83
86
|
'event_queue_status_update': !(0, runtime_1.exists)(json, 'event_queue_status_update') ? undefined : (0, ConversationWebchatQueueStatus_1.ConversationWebchatQueueStatusFromJSON)(json['event_queue_status_update']),
|
|
84
87
|
'event_read_message': !(0, runtime_1.exists)(json, 'event_read_message') ? undefined : (0, ConversationEventReadMessage_1.ConversationEventReadMessageFromJSON)(json['event_read_message']),
|
|
@@ -100,6 +103,7 @@ function ConversationWebsocketMessageToJSON(value) {
|
|
|
100
103
|
return null;
|
|
101
104
|
}
|
|
102
105
|
return {
|
|
106
|
+
'conversation_arn': value.conversation_arn,
|
|
103
107
|
'conversation_uuid': value.conversation_uuid,
|
|
104
108
|
'event_add_coupon': (0, ConversationEventAddCoupon_1.ConversationEventAddCouponToJSON)(value.event_add_coupon),
|
|
105
109
|
'event_add_item': (0, ConversationEventAddItem_1.ConversationEventAddItemToJSON)(value.event_add_item),
|
|
@@ -112,6 +116,7 @@ function ConversationWebsocketMessageToJSON(value) {
|
|
|
112
116
|
'event_participant_left': (0, ConversationSummary_1.ConversationSummaryToJSON)(value.event_participant_left),
|
|
113
117
|
'event_participant_left_participant': (0, ConversationParticipant_1.ConversationParticipantToJSON)(value.event_participant_left_participant),
|
|
114
118
|
'event_participant_update': (0, ConversationSummary_1.ConversationSummaryToJSON)(value.event_participant_update),
|
|
119
|
+
'event_queue_new_member': (0, ConversationWebchatQueueStatusQueueEntry_1.ConversationWebchatQueueStatusQueueEntryToJSON)(value.event_queue_new_member),
|
|
115
120
|
'event_queue_position': (0, ConversationEventQueuePosition_1.ConversationEventQueuePositionToJSON)(value.event_queue_position),
|
|
116
121
|
'event_queue_status_update': (0, ConversationWebchatQueueStatus_1.ConversationWebchatQueueStatusToJSON)(value.event_queue_status_update),
|
|
117
122
|
'event_read_message': (0, ConversationEventReadMessage_1.ConversationEventReadMessageToJSON)(value.event_read_message),
|
package/package.json
CHANGED
|
@@ -61,6 +61,12 @@ export interface ConversationWebchatQueueStatusQueueEntry {
|
|
|
61
61
|
* @memberof ConversationWebchatQueueStatusQueueEntry
|
|
62
62
|
*/
|
|
63
63
|
question?: string;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof ConversationWebchatQueueStatusQueueEntry
|
|
68
|
+
*/
|
|
69
|
+
queue_name?: string;
|
|
64
70
|
}
|
|
65
71
|
|
|
66
72
|
export function ConversationWebchatQueueStatusQueueEntryFromJSON(json: any): ConversationWebchatQueueStatusQueueEntry {
|
|
@@ -80,6 +86,7 @@ export function ConversationWebchatQueueStatusQueueEntryFromJSONTyped(json: any,
|
|
|
80
86
|
'join_dts': !exists(json, 'join_dts') ? undefined : json['join_dts'],
|
|
81
87
|
'participant_language_iso_code': !exists(json, 'participant_language_iso_code') ? undefined : json['participant_language_iso_code'],
|
|
82
88
|
'question': !exists(json, 'question') ? undefined : json['question'],
|
|
89
|
+
'queue_name': !exists(json, 'queue_name') ? undefined : json['queue_name'],
|
|
83
90
|
};
|
|
84
91
|
}
|
|
85
92
|
|
|
@@ -99,6 +106,7 @@ export function ConversationWebchatQueueStatusQueueEntryToJSON(value?: Conversat
|
|
|
99
106
|
'join_dts': value.join_dts,
|
|
100
107
|
'participant_language_iso_code': value.participant_language_iso_code,
|
|
101
108
|
'question': value.question,
|
|
109
|
+
'queue_name': value.queue_name,
|
|
102
110
|
};
|
|
103
111
|
}
|
|
104
112
|
|
|
@@ -92,6 +92,12 @@ import {
|
|
|
92
92
|
* @interface ConversationWebsocketMessage
|
|
93
93
|
*/
|
|
94
94
|
export interface ConversationWebsocketMessage {
|
|
95
|
+
/**
|
|
96
|
+
* Conversation ARN
|
|
97
|
+
* @type {string}
|
|
98
|
+
* @memberof ConversationWebsocketMessage
|
|
99
|
+
*/
|
|
100
|
+
conversation_arn?: string;
|
|
95
101
|
/**
|
|
96
102
|
* Conversation UUID if the websocket message is tied to a specific conversation
|
|
97
103
|
* @type {string}
|
|
@@ -164,6 +170,12 @@ export interface ConversationWebsocketMessage {
|
|
|
164
170
|
* @memberof ConversationWebsocketMessage
|
|
165
171
|
*/
|
|
166
172
|
event_participant_update?: ConversationSummary;
|
|
173
|
+
/**
|
|
174
|
+
*
|
|
175
|
+
* @type {ConversationWebchatQueueStatusQueueEntry}
|
|
176
|
+
* @memberof ConversationWebsocketMessage
|
|
177
|
+
*/
|
|
178
|
+
event_queue_new_member?: ConversationWebchatQueueStatusQueueEntry;
|
|
167
179
|
/**
|
|
168
180
|
*
|
|
169
181
|
* @type {ConversationEventQueuePosition}
|
|
@@ -247,7 +259,8 @@ export const ConversationWebsocketMessageEventTypeEnum = {
|
|
|
247
259
|
AddCoupon: 'add coupon',
|
|
248
260
|
AddItem: 'add item',
|
|
249
261
|
WebchatContext: 'webchat context',
|
|
250
|
-
EngageCustomer: 'engage customer'
|
|
262
|
+
EngageCustomer: 'engage customer',
|
|
263
|
+
QueueNewMember: 'queue new member'
|
|
251
264
|
} as const;
|
|
252
265
|
export type ConversationWebsocketMessageEventTypeEnum = typeof ConversationWebsocketMessageEventTypeEnum[keyof typeof ConversationWebsocketMessageEventTypeEnum];
|
|
253
266
|
|
|
@@ -273,6 +286,7 @@ export function ConversationWebsocketMessageFromJSONTyped(json: any, ignoreDiscr
|
|
|
273
286
|
}
|
|
274
287
|
return {
|
|
275
288
|
|
|
289
|
+
'conversation_arn': !exists(json, 'conversation_arn') ? undefined : json['conversation_arn'],
|
|
276
290
|
'conversation_uuid': !exists(json, 'conversation_uuid') ? undefined : json['conversation_uuid'],
|
|
277
291
|
'event_add_coupon': !exists(json, 'event_add_coupon') ? undefined : ConversationEventAddCouponFromJSON(json['event_add_coupon']),
|
|
278
292
|
'event_add_item': !exists(json, 'event_add_item') ? undefined : ConversationEventAddItemFromJSON(json['event_add_item']),
|
|
@@ -285,6 +299,7 @@ export function ConversationWebsocketMessageFromJSONTyped(json: any, ignoreDiscr
|
|
|
285
299
|
'event_participant_left': !exists(json, 'event_participant_left') ? undefined : ConversationSummaryFromJSON(json['event_participant_left']),
|
|
286
300
|
'event_participant_left_participant': !exists(json, 'event_participant_left_participant') ? undefined : ConversationParticipantFromJSON(json['event_participant_left_participant']),
|
|
287
301
|
'event_participant_update': !exists(json, 'event_participant_update') ? undefined : ConversationSummaryFromJSON(json['event_participant_update']),
|
|
302
|
+
'event_queue_new_member': !exists(json, 'event_queue_new_member') ? undefined : ConversationWebchatQueueStatusQueueEntryFromJSON(json['event_queue_new_member']),
|
|
288
303
|
'event_queue_position': !exists(json, 'event_queue_position') ? undefined : ConversationEventQueuePositionFromJSON(json['event_queue_position']),
|
|
289
304
|
'event_queue_status_update': !exists(json, 'event_queue_status_update') ? undefined : ConversationWebchatQueueStatusFromJSON(json['event_queue_status_update']),
|
|
290
305
|
'event_read_message': !exists(json, 'event_read_message') ? undefined : ConversationEventReadMessageFromJSON(json['event_read_message']),
|
|
@@ -307,6 +322,7 @@ export function ConversationWebsocketMessageToJSON(value?: ConversationWebsocket
|
|
|
307
322
|
}
|
|
308
323
|
return {
|
|
309
324
|
|
|
325
|
+
'conversation_arn': value.conversation_arn,
|
|
310
326
|
'conversation_uuid': value.conversation_uuid,
|
|
311
327
|
'event_add_coupon': ConversationEventAddCouponToJSON(value.event_add_coupon),
|
|
312
328
|
'event_add_item': ConversationEventAddItemToJSON(value.event_add_item),
|
|
@@ -319,6 +335,7 @@ export function ConversationWebsocketMessageToJSON(value?: ConversationWebsocket
|
|
|
319
335
|
'event_participant_left': ConversationSummaryToJSON(value.event_participant_left),
|
|
320
336
|
'event_participant_left_participant': ConversationParticipantToJSON(value.event_participant_left_participant),
|
|
321
337
|
'event_participant_update': ConversationSummaryToJSON(value.event_participant_update),
|
|
338
|
+
'event_queue_new_member': ConversationWebchatQueueStatusQueueEntryToJSON(value.event_queue_new_member),
|
|
322
339
|
'event_queue_position': ConversationEventQueuePositionToJSON(value.event_queue_position),
|
|
323
340
|
'event_queue_status_update': ConversationWebchatQueueStatusToJSON(value.event_queue_status_update),
|
|
324
341
|
'event_read_message': ConversationEventReadMessageToJSON(value.event_read_message),
|