ultracart_rest_api_v2_typescript 4.0.130 → 4.0.132
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 +7 -0
- package/dist/models/ConversationWebsocketMessage.js +4 -1
- package/package.json +1 -1
- package/src/models/ConversationWebchatQueueStatusQueueEntry.ts +8 -0
- package/src/models/ConversationWebsocketMessage.ts +10 -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.132
|
|
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.132 --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.132 | 02/07/2023 | convo - new event for when a customer joins a queue |
|
|
58
|
+
| 4.0.131 | 02/07/2023 | convo - new event for when a customer joins a queue |
|
|
57
59
|
| 4.0.130 | 02/06/2023 | convo - add conversation_arn to ConversationWebsocketMessage |
|
|
58
60
|
| 4.0.129 | 02/01/2023 | convo - agent profile get/update methods |
|
|
59
61
|
| 4.0.128 | 01/27/2023 | convo - added event_engage_customer property to message |
|
|
@@ -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;
|
|
@@ -105,6 +105,12 @@ export interface ConversationWebsocketMessage {
|
|
|
105
105
|
* @memberof ConversationWebsocketMessage
|
|
106
106
|
*/
|
|
107
107
|
event_participant_update?: ConversationSummary;
|
|
108
|
+
/**
|
|
109
|
+
*
|
|
110
|
+
* @type {ConversationWebchatQueueStatusQueueEntry}
|
|
111
|
+
* @memberof ConversationWebsocketMessage
|
|
112
|
+
*/
|
|
113
|
+
event_queue_new_member?: ConversationWebchatQueueStatusQueueEntry;
|
|
108
114
|
/**
|
|
109
115
|
*
|
|
110
116
|
* @type {ConversationEventQueuePosition}
|
|
@@ -187,6 +193,7 @@ export declare const ConversationWebsocketMessageEventTypeEnum: {
|
|
|
187
193
|
readonly AddItem: "add item";
|
|
188
194
|
readonly WebchatContext: "webchat context";
|
|
189
195
|
readonly EngageCustomer: "engage customer";
|
|
196
|
+
readonly QueueNewMember: "queue new member";
|
|
190
197
|
};
|
|
191
198
|
export type ConversationWebsocketMessageEventTypeEnum = typeof ConversationWebsocketMessageEventTypeEnum[keyof typeof ConversationWebsocketMessageEventTypeEnum];
|
|
192
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
|
|
@@ -80,6 +81,7 @@ function ConversationWebsocketMessageFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
80
81
|
'event_participant_left': !(0, runtime_1.exists)(json, 'event_participant_left') ? undefined : (0, ConversationSummary_1.ConversationSummaryFromJSON)(json['event_participant_left']),
|
|
81
82
|
'event_participant_left_participant': !(0, runtime_1.exists)(json, 'event_participant_left_participant') ? undefined : (0, ConversationParticipant_1.ConversationParticipantFromJSON)(json['event_participant_left_participant']),
|
|
82
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']),
|
|
83
85
|
'event_queue_position': !(0, runtime_1.exists)(json, 'event_queue_position') ? undefined : (0, ConversationEventQueuePosition_1.ConversationEventQueuePositionFromJSON)(json['event_queue_position']),
|
|
84
86
|
'event_queue_status_update': !(0, runtime_1.exists)(json, 'event_queue_status_update') ? undefined : (0, ConversationWebchatQueueStatus_1.ConversationWebchatQueueStatusFromJSON)(json['event_queue_status_update']),
|
|
85
87
|
'event_read_message': !(0, runtime_1.exists)(json, 'event_read_message') ? undefined : (0, ConversationEventReadMessage_1.ConversationEventReadMessageFromJSON)(json['event_read_message']),
|
|
@@ -114,6 +116,7 @@ function ConversationWebsocketMessageToJSON(value) {
|
|
|
114
116
|
'event_participant_left': (0, ConversationSummary_1.ConversationSummaryToJSON)(value.event_participant_left),
|
|
115
117
|
'event_participant_left_participant': (0, ConversationParticipant_1.ConversationParticipantToJSON)(value.event_participant_left_participant),
|
|
116
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),
|
|
117
120
|
'event_queue_position': (0, ConversationEventQueuePosition_1.ConversationEventQueuePositionToJSON)(value.event_queue_position),
|
|
118
121
|
'event_queue_status_update': (0, ConversationWebchatQueueStatus_1.ConversationWebchatQueueStatusToJSON)(value.event_queue_status_update),
|
|
119
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
|
|
|
@@ -170,6 +170,12 @@ export interface ConversationWebsocketMessage {
|
|
|
170
170
|
* @memberof ConversationWebsocketMessage
|
|
171
171
|
*/
|
|
172
172
|
event_participant_update?: ConversationSummary;
|
|
173
|
+
/**
|
|
174
|
+
*
|
|
175
|
+
* @type {ConversationWebchatQueueStatusQueueEntry}
|
|
176
|
+
* @memberof ConversationWebsocketMessage
|
|
177
|
+
*/
|
|
178
|
+
event_queue_new_member?: ConversationWebchatQueueStatusQueueEntry;
|
|
173
179
|
/**
|
|
174
180
|
*
|
|
175
181
|
* @type {ConversationEventQueuePosition}
|
|
@@ -253,7 +259,8 @@ export const ConversationWebsocketMessageEventTypeEnum = {
|
|
|
253
259
|
AddCoupon: 'add coupon',
|
|
254
260
|
AddItem: 'add item',
|
|
255
261
|
WebchatContext: 'webchat context',
|
|
256
|
-
EngageCustomer: 'engage customer'
|
|
262
|
+
EngageCustomer: 'engage customer',
|
|
263
|
+
QueueNewMember: 'queue new member'
|
|
257
264
|
} as const;
|
|
258
265
|
export type ConversationWebsocketMessageEventTypeEnum = typeof ConversationWebsocketMessageEventTypeEnum[keyof typeof ConversationWebsocketMessageEventTypeEnum];
|
|
259
266
|
|
|
@@ -292,6 +299,7 @@ export function ConversationWebsocketMessageFromJSONTyped(json: any, ignoreDiscr
|
|
|
292
299
|
'event_participant_left': !exists(json, 'event_participant_left') ? undefined : ConversationSummaryFromJSON(json['event_participant_left']),
|
|
293
300
|
'event_participant_left_participant': !exists(json, 'event_participant_left_participant') ? undefined : ConversationParticipantFromJSON(json['event_participant_left_participant']),
|
|
294
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']),
|
|
295
303
|
'event_queue_position': !exists(json, 'event_queue_position') ? undefined : ConversationEventQueuePositionFromJSON(json['event_queue_position']),
|
|
296
304
|
'event_queue_status_update': !exists(json, 'event_queue_status_update') ? undefined : ConversationWebchatQueueStatusFromJSON(json['event_queue_status_update']),
|
|
297
305
|
'event_read_message': !exists(json, 'event_read_message') ? undefined : ConversationEventReadMessageFromJSON(json['event_read_message']),
|
|
@@ -327,6 +335,7 @@ export function ConversationWebsocketMessageToJSON(value?: ConversationWebsocket
|
|
|
327
335
|
'event_participant_left': ConversationSummaryToJSON(value.event_participant_left),
|
|
328
336
|
'event_participant_left_participant': ConversationParticipantToJSON(value.event_participant_left_participant),
|
|
329
337
|
'event_participant_update': ConversationSummaryToJSON(value.event_participant_update),
|
|
338
|
+
'event_queue_new_member': ConversationWebchatQueueStatusQueueEntryToJSON(value.event_queue_new_member),
|
|
330
339
|
'event_queue_position': ConversationEventQueuePositionToJSON(value.event_queue_position),
|
|
331
340
|
'event_queue_status_update': ConversationWebchatQueueStatusToJSON(value.event_queue_status_update),
|
|
332
341
|
'event_read_message': ConversationEventReadMessageToJSON(value.event_read_message),
|