ultracart_rest_api_v2_typescript 4.0.42-RC → 4.0.45-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.
Files changed (30) hide show
  1. package/.openapi-generator/FILES +5 -0
  2. package/README.md +5 -2
  3. package/dist/apis/ConversationApi.d.ts +53 -1
  4. package/dist/apis/ConversationApi.js +118 -0
  5. package/dist/models/ConversationMessage.d.ts +6 -0
  6. package/dist/models/ConversationMessage.js +2 -0
  7. package/dist/models/ConversationWebchatQueueStatus.d.ts +113 -0
  8. package/dist/models/ConversationWebchatQueueStatus.js +72 -0
  9. package/dist/models/ConversationWebchatQueueStatusAgent.d.ts +51 -0
  10. package/dist/models/ConversationWebchatQueueStatusAgent.js +50 -0
  11. package/dist/models/ConversationWebchatQueueStatusQueueEntry.d.ts +57 -0
  12. package/dist/models/ConversationWebchatQueueStatusQueueEntry.js +52 -0
  13. package/dist/models/ConversationWebchatQueueStatusUpdateRequest.d.ts +27 -0
  14. package/dist/models/ConversationWebchatQueueStatusUpdateRequest.js +42 -0
  15. package/dist/models/ConversationWebchatQueueStatusesResponse.d.ts +55 -0
  16. package/dist/models/ConversationWebchatQueueStatusesResponse.js +54 -0
  17. package/dist/models/ConversationWebsocketMessage.d.ts +8 -0
  18. package/dist/models/ConversationWebsocketMessage.js +5 -1
  19. package/dist/models/index.d.ts +5 -0
  20. package/dist/models/index.js +5 -0
  21. package/package.json +1 -1
  22. package/src/apis/ConversationApi.ts +127 -0
  23. package/src/models/ConversationMessage.ts +8 -0
  24. package/src/models/ConversationWebchatQueueStatus.ts +181 -0
  25. package/src/models/ConversationWebchatQueueStatusAgent.ts +88 -0
  26. package/src/models/ConversationWebchatQueueStatusQueueEntry.ts +96 -0
  27. package/src/models/ConversationWebchatQueueStatusUpdateRequest.ts +56 -0
  28. package/src/models/ConversationWebchatQueueStatusesResponse.ts +113 -0
  29. package/src/models/ConversationWebsocketMessage.ts +16 -1
  30. package/src/models/index.ts +5 -0
@@ -153,6 +153,11 @@ src/models/ConversationResponse.ts
153
153
  src/models/ConversationStartRequest.ts
154
154
  src/models/ConversationStartResponse.ts
155
155
  src/models/ConversationSummary.ts
156
+ src/models/ConversationWebchatQueueStatus.ts
157
+ src/models/ConversationWebchatQueueStatusAgent.ts
158
+ src/models/ConversationWebchatQueueStatusQueueEntry.ts
159
+ src/models/ConversationWebchatQueueStatusUpdateRequest.ts
160
+ src/models/ConversationWebchatQueueStatusesResponse.ts
156
161
  src/models/ConversationWebsocketMessage.ts
157
162
  src/models/ConversationsResponse.ts
158
163
  src/models/CountriesResponse.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## ultracart_rest_api_v2_typescript@4.0.42-RC
1
+ ## ultracart_rest_api_v2_typescript@4.0.45-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.42-RC --save
39
+ npm install ultracart_rest_api_v2_typescript@4.0.45-RC --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -54,6 +54,9 @@ Not every change is committed to every SDK.
54
54
 
55
55
  | Version | Date | Comments |
56
56
  | --: | :-: | --- |
57
+ | 4.0.45-RC | 07/28/2022 | conversation bug fixes |
58
+ | 4.0.44-RC | 07/28/2022 | conversation message upload keys property |
59
+ | 4.0.43-RC | 07/26/2022 | conversations - queue statistics |
57
60
  | 4.0.42-RC | 07/25/2022 | conversation development |
58
61
  | 4.0.41-RC | 07/25/2022 | conversations bug fixes |
59
62
  | 4.0.40-RC | 07/25/2022 | conversations - add a websocket message model |
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import { ConversationAgentAuthResponse, ConversationMultimediaUploadUrlResponse, ConversationResponse, ConversationStartRequest, ConversationStartResponse, ConversationsResponse } from '../models';
13
+ import { ConversationAgentAuthResponse, ConversationMultimediaUploadUrlResponse, ConversationResponse, ConversationStartRequest, ConversationStartResponse, ConversationWebchatQueueStatusUpdateRequest, ConversationWebchatQueueStatusesResponse, ConversationsResponse } from '../models';
14
14
  export interface GetConversationRequest {
15
15
  conversationUuid: string;
16
16
  }
@@ -30,6 +30,10 @@ export interface LeaveConversationRequest {
30
30
  export interface StartConversationRequest {
31
31
  startRequest: ConversationStartRequest;
32
32
  }
33
+ export interface UpdateConversationWebchatQueueStatusRequest {
34
+ queueName: string;
35
+ statusRequest: ConversationWebchatQueueStatusUpdateRequest;
36
+ }
33
37
  /**
34
38
  * ConversationApi - interface
35
39
  *
@@ -78,6 +82,19 @@ export interface ConversationApiInterface {
78
82
  * Get a presigned conersation multimedia upload URL
79
83
  */
80
84
  getConversationMultimediaUploadUrl(requestParameters: GetConversationMultimediaUploadUrlRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationMultimediaUploadUrlResponse>;
85
+ /**
86
+ * Retrieve a conversation webchat queue statuses including agent status and queue entries
87
+ * @summary Retrieve a conversation webchat queue statuses
88
+ * @param {*} [options] Override http request option.
89
+ * @throws {RequiredError}
90
+ * @memberof ConversationApiInterface
91
+ */
92
+ getConversationWebchatQueueStatusesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConversationWebchatQueueStatusesResponse>>;
93
+ /**
94
+ * Retrieve a conversation webchat queue statuses including agent status and queue entries
95
+ * Retrieve a conversation webchat queue statuses
96
+ */
97
+ getConversationWebchatQueueStatuses(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationWebchatQueueStatusesResponse>;
81
98
  /**
82
99
  * Retrieve a list of conversation summaries that are ordered newest to oldest, include the most recent message and whether its been read.
83
100
  * @summary Retrieve a list of conversation summaries newest to oldest
@@ -135,6 +152,21 @@ export interface ConversationApiInterface {
135
152
  * Start a conversation
136
153
  */
137
154
  startConversation(requestParameters: StartConversationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationStartResponse>;
155
+ /**
156
+ * Update status within the queue
157
+ * @summary Update status within the queue
158
+ * @param {string} queueName
159
+ * @param {ConversationWebchatQueueStatusUpdateRequest} statusRequest Status request
160
+ * @param {*} [options] Override http request option.
161
+ * @throws {RequiredError}
162
+ * @memberof ConversationApiInterface
163
+ */
164
+ updateConversationWebchatQueueStatusRaw(requestParameters: UpdateConversationWebchatQueueStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
165
+ /**
166
+ * Update status within the queue
167
+ * Update status within the queue
168
+ */
169
+ updateConversationWebchatQueueStatus(requestParameters: UpdateConversationWebchatQueueStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
138
170
  }
139
171
  /**
140
172
  *
@@ -170,6 +202,16 @@ export declare class ConversationApi extends runtime.BaseAPI implements Conversa
170
202
  * Get a presigned conersation multimedia upload URL
171
203
  */
172
204
  getConversationMultimediaUploadUrl(requestParameters: GetConversationMultimediaUploadUrlRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationMultimediaUploadUrlResponse>;
205
+ /**
206
+ * Retrieve a conversation webchat queue statuses including agent status and queue entries
207
+ * Retrieve a conversation webchat queue statuses
208
+ */
209
+ getConversationWebchatQueueStatusesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConversationWebchatQueueStatusesResponse>>;
210
+ /**
211
+ * Retrieve a conversation webchat queue statuses including agent status and queue entries
212
+ * Retrieve a conversation webchat queue statuses
213
+ */
214
+ getConversationWebchatQueueStatuses(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationWebchatQueueStatusesResponse>;
173
215
  /**
174
216
  * Retrieve a list of conversation summaries that are ordered newest to oldest, include the most recent message and whether its been read.
175
217
  * Retrieve a list of conversation summaries newest to oldest
@@ -210,4 +252,14 @@ export declare class ConversationApi extends runtime.BaseAPI implements Conversa
210
252
  * Start a conversation
211
253
  */
212
254
  startConversation(requestParameters: StartConversationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationStartResponse>;
255
+ /**
256
+ * Update status within the queue
257
+ * Update status within the queue
258
+ */
259
+ updateConversationWebchatQueueStatusRaw(requestParameters: UpdateConversationWebchatQueueStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
260
+ /**
261
+ * Update status within the queue
262
+ * Update status within the queue
263
+ */
264
+ updateConversationWebchatQueueStatus(requestParameters: UpdateConversationWebchatQueueStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
213
265
  }
@@ -249,6 +249,62 @@ var ConversationApi = /** @class */ (function (_super) {
249
249
  });
250
250
  });
251
251
  };
252
+ /**
253
+ * Retrieve a conversation webchat queue statuses including agent status and queue entries
254
+ * Retrieve a conversation webchat queue statuses
255
+ */
256
+ ConversationApi.prototype.getConversationWebchatQueueStatusesRaw = function (initOverrides) {
257
+ return __awaiter(this, void 0, void 0, function () {
258
+ var queryParameters, headerParameters, _a, _b, response;
259
+ return __generator(this, function (_c) {
260
+ switch (_c.label) {
261
+ case 0:
262
+ queryParameters = {};
263
+ headerParameters = {};
264
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
265
+ // oauth required
266
+ _a = headerParameters;
267
+ _b = "Authorization";
268
+ return [4 /*yield*/, this.configuration.accessToken("ultraCartOauth", ["conversation_read"])];
269
+ case 1:
270
+ // oauth required
271
+ _a[_b] = _c.sent();
272
+ _c.label = 2;
273
+ case 2:
274
+ if (this.configuration && this.configuration.apiKey) {
275
+ headerParameters["x-ultracart-simple-key"] = this.configuration.apiKey("x-ultracart-simple-key"); // ultraCartSimpleApiKey authentication
276
+ }
277
+ return [4 /*yield*/, this.request({
278
+ path: "/conversation/conversations/queues/statuses",
279
+ method: 'GET',
280
+ headers: headerParameters,
281
+ query: queryParameters,
282
+ }, initOverrides)];
283
+ case 3:
284
+ response = _c.sent();
285
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.ConversationWebchatQueueStatusesResponseFromJSON)(jsonValue); })];
286
+ }
287
+ });
288
+ });
289
+ };
290
+ /**
291
+ * Retrieve a conversation webchat queue statuses including agent status and queue entries
292
+ * Retrieve a conversation webchat queue statuses
293
+ */
294
+ ConversationApi.prototype.getConversationWebchatQueueStatuses = function (initOverrides) {
295
+ return __awaiter(this, void 0, void 0, function () {
296
+ var response;
297
+ return __generator(this, function (_a) {
298
+ switch (_a.label) {
299
+ case 0: return [4 /*yield*/, this.getConversationWebchatQueueStatusesRaw(initOverrides)];
300
+ case 1:
301
+ response = _a.sent();
302
+ return [4 /*yield*/, response.value()];
303
+ case 2: return [2 /*return*/, _a.sent()];
304
+ }
305
+ });
306
+ });
307
+ };
252
308
  /**
253
309
  * Retrieve a list of conversation summaries that are ordered newest to oldest, include the most recent message and whether its been read.
254
310
  * Retrieve a list of conversation summaries newest to oldest
@@ -487,6 +543,68 @@ var ConversationApi = /** @class */ (function (_super) {
487
543
  });
488
544
  });
489
545
  };
546
+ /**
547
+ * Update status within the queue
548
+ * Update status within the queue
549
+ */
550
+ ConversationApi.prototype.updateConversationWebchatQueueStatusRaw = function (requestParameters, initOverrides) {
551
+ return __awaiter(this, void 0, void 0, function () {
552
+ var queryParameters, headerParameters, _a, _b, response;
553
+ return __generator(this, function (_c) {
554
+ switch (_c.label) {
555
+ case 0:
556
+ if (requestParameters.queueName === null || requestParameters.queueName === undefined) {
557
+ throw new runtime.RequiredError('queueName', 'Required parameter requestParameters.queueName was null or undefined when calling updateConversationWebchatQueueStatus.');
558
+ }
559
+ if (requestParameters.statusRequest === null || requestParameters.statusRequest === undefined) {
560
+ throw new runtime.RequiredError('statusRequest', 'Required parameter requestParameters.statusRequest was null or undefined when calling updateConversationWebchatQueueStatus.');
561
+ }
562
+ queryParameters = {};
563
+ headerParameters = {};
564
+ headerParameters['Content-Type'] = 'application/json';
565
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
566
+ // oauth required
567
+ _a = headerParameters;
568
+ _b = "Authorization";
569
+ return [4 /*yield*/, this.configuration.accessToken("ultraCartOauth", ["conversation_write"])];
570
+ case 1:
571
+ // oauth required
572
+ _a[_b] = _c.sent();
573
+ _c.label = 2;
574
+ case 2:
575
+ if (this.configuration && this.configuration.apiKey) {
576
+ headerParameters["x-ultracart-simple-key"] = this.configuration.apiKey("x-ultracart-simple-key"); // ultraCartSimpleApiKey authentication
577
+ }
578
+ return [4 /*yield*/, this.request({
579
+ path: "/conversation/conversations/queues/{queue_name}/status".replace("{".concat("queue_name", "}"), encodeURIComponent(String(requestParameters.queueName))),
580
+ method: 'PUT',
581
+ headers: headerParameters,
582
+ query: queryParameters,
583
+ body: (0, models_1.ConversationWebchatQueueStatusUpdateRequestToJSON)(requestParameters.statusRequest),
584
+ }, initOverrides)];
585
+ case 3:
586
+ response = _c.sent();
587
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
588
+ }
589
+ });
590
+ });
591
+ };
592
+ /**
593
+ * Update status within the queue
594
+ * Update status within the queue
595
+ */
596
+ ConversationApi.prototype.updateConversationWebchatQueueStatus = function (requestParameters, initOverrides) {
597
+ return __awaiter(this, void 0, void 0, function () {
598
+ return __generator(this, function (_a) {
599
+ switch (_a.label) {
600
+ case 0: return [4 /*yield*/, this.updateConversationWebchatQueueStatusRaw(requestParameters, initOverrides)];
601
+ case 1:
602
+ _a.sent();
603
+ return [2 /*return*/];
604
+ }
605
+ });
606
+ });
607
+ };
490
608
  return ConversationApi;
491
609
  }(runtime.BaseAPI));
492
610
  exports.ConversationApi = ConversationApi;
@@ -52,6 +52,12 @@ export interface ConversationMessage {
52
52
  * @memberof ConversationMessage
53
53
  */
54
54
  transport_statuses?: Array<ConversationMessageTransportStatus>;
55
+ /**
56
+ *
57
+ * @type {Array<string>}
58
+ * @memberof ConversationMessage
59
+ */
60
+ upload_keys?: Array<string>;
55
61
  }
56
62
  export declare function ConversationMessageFromJSON(json: any): ConversationMessage;
57
63
  export declare function ConversationMessageFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationMessage;
@@ -31,6 +31,7 @@ function ConversationMessageFromJSONTyped(json, ignoreDiscriminator) {
31
31
  'media_urls': !(0, runtime_1.exists)(json, 'media_urls') ? undefined : json['media_urls'],
32
32
  'message_dts': !(0, runtime_1.exists)(json, 'message_dts') ? undefined : json['message_dts'],
33
33
  'transport_statuses': !(0, runtime_1.exists)(json, 'transport_statuses') ? undefined : (json['transport_statuses'].map(ConversationMessageTransportStatus_1.ConversationMessageTransportStatusFromJSON)),
34
+ 'upload_keys': !(0, runtime_1.exists)(json, 'upload_keys') ? undefined : json['upload_keys'],
34
35
  };
35
36
  }
36
37
  exports.ConversationMessageFromJSONTyped = ConversationMessageFromJSONTyped;
@@ -48,6 +49,7 @@ function ConversationMessageToJSON(value) {
48
49
  'media_urls': value.media_urls,
49
50
  'message_dts': value.message_dts,
50
51
  'transport_statuses': value.transport_statuses === undefined ? undefined : (value.transport_statuses.map(ConversationMessageTransportStatus_1.ConversationMessageTransportStatusToJSON)),
52
+ 'upload_keys': value.upload_keys,
51
53
  };
52
54
  }
53
55
  exports.ConversationMessageToJSON = ConversationMessageToJSON;
@@ -0,0 +1,113 @@
1
+ /**
2
+ * UltraCart Rest API V2
3
+ * UltraCart REST API Version 2
4
+ *
5
+ * The version of the OpenAPI document: 2.0.0
6
+ * Contact: support@ultracart.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { ConversationWebchatQueueStatusAgent } from './ConversationWebchatQueueStatusAgent';
13
+ import { ConversationWebchatQueueStatusQueueEntry } from './ConversationWebchatQueueStatusQueueEntry';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface ConversationWebchatQueueStatus
18
+ */
19
+ export interface ConversationWebchatQueueStatus {
20
+ /**
21
+ *
22
+ * @type {number}
23
+ * @memberof ConversationWebchatQueueStatus
24
+ */
25
+ agent_available_count?: number;
26
+ /**
27
+ *
28
+ * @type {number}
29
+ * @memberof ConversationWebchatQueueStatus
30
+ */
31
+ agent_busy_count?: number;
32
+ /**
33
+ *
34
+ * @type {number}
35
+ * @memberof ConversationWebchatQueueStatus
36
+ */
37
+ agent_count?: number;
38
+ /**
39
+ *
40
+ * @type {number}
41
+ * @memberof ConversationWebchatQueueStatus
42
+ */
43
+ agent_unavailable_count?: number;
44
+ /**
45
+ *
46
+ * @type {Array<ConversationWebchatQueueStatusAgent>}
47
+ * @memberof ConversationWebchatQueueStatus
48
+ */
49
+ agents?: Array<ConversationWebchatQueueStatusAgent>;
50
+ /**
51
+ *
52
+ * @type {number}
53
+ * @memberof ConversationWebchatQueueStatus
54
+ */
55
+ customer_abandon_count?: number;
56
+ /**
57
+ *
58
+ * @type {number}
59
+ * @memberof ConversationWebchatQueueStatus
60
+ */
61
+ customer_active_count?: number;
62
+ /**
63
+ *
64
+ * @type {number}
65
+ * @memberof ConversationWebchatQueueStatus
66
+ */
67
+ customer_average_abandon_time_seconds?: number;
68
+ /**
69
+ *
70
+ * @type {number}
71
+ * @memberof ConversationWebchatQueueStatus
72
+ */
73
+ customer_average_chat_time_seconds?: number;
74
+ /**
75
+ *
76
+ * @type {number}
77
+ * @memberof ConversationWebchatQueueStatus
78
+ */
79
+ customer_average_hold_time_seconds?: number;
80
+ /**
81
+ *
82
+ * @type {number}
83
+ * @memberof ConversationWebchatQueueStatus
84
+ */
85
+ customer_chat_count?: number;
86
+ /**
87
+ *
88
+ * @type {number}
89
+ * @memberof ConversationWebchatQueueStatus
90
+ */
91
+ customer_waiting_count?: number;
92
+ /**
93
+ * Date/time that the oldest person joined the queue
94
+ * @type {string}
95
+ * @memberof ConversationWebchatQueueStatus
96
+ */
97
+ customer_waiting_join_dts?: string;
98
+ /**
99
+ *
100
+ * @type {Array<ConversationWebchatQueueStatusQueueEntry>}
101
+ * @memberof ConversationWebchatQueueStatus
102
+ */
103
+ queue_entries?: Array<ConversationWebchatQueueStatusQueueEntry>;
104
+ /**
105
+ *
106
+ * @type {string}
107
+ * @memberof ConversationWebchatQueueStatus
108
+ */
109
+ queue_name?: string;
110
+ }
111
+ export declare function ConversationWebchatQueueStatusFromJSON(json: any): ConversationWebchatQueueStatus;
112
+ export declare function ConversationWebchatQueueStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationWebchatQueueStatus;
113
+ export declare function ConversationWebchatQueueStatusToJSON(value?: ConversationWebchatQueueStatus | null): any;
@@ -0,0 +1,72 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * UltraCart Rest API V2
6
+ * UltraCart REST API Version 2
7
+ *
8
+ * The version of the OpenAPI document: 2.0.0
9
+ * Contact: support@ultracart.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.ConversationWebchatQueueStatusToJSON = exports.ConversationWebchatQueueStatusFromJSONTyped = exports.ConversationWebchatQueueStatusFromJSON = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ var ConversationWebchatQueueStatusAgent_1 = require("./ConversationWebchatQueueStatusAgent");
19
+ var ConversationWebchatQueueStatusQueueEntry_1 = require("./ConversationWebchatQueueStatusQueueEntry");
20
+ function ConversationWebchatQueueStatusFromJSON(json) {
21
+ return ConversationWebchatQueueStatusFromJSONTyped(json, false);
22
+ }
23
+ exports.ConversationWebchatQueueStatusFromJSON = ConversationWebchatQueueStatusFromJSON;
24
+ function ConversationWebchatQueueStatusFromJSONTyped(json, ignoreDiscriminator) {
25
+ if ((json === undefined) || (json === null)) {
26
+ return json;
27
+ }
28
+ return {
29
+ 'agent_available_count': !(0, runtime_1.exists)(json, 'agent_available_count') ? undefined : json['agent_available_count'],
30
+ 'agent_busy_count': !(0, runtime_1.exists)(json, 'agent_busy_count') ? undefined : json['agent_busy_count'],
31
+ 'agent_count': !(0, runtime_1.exists)(json, 'agent_count') ? undefined : json['agent_count'],
32
+ 'agent_unavailable_count': !(0, runtime_1.exists)(json, 'agent_unavailable_count') ? undefined : json['agent_unavailable_count'],
33
+ 'agents': !(0, runtime_1.exists)(json, 'agents') ? undefined : (json['agents'].map(ConversationWebchatQueueStatusAgent_1.ConversationWebchatQueueStatusAgentFromJSON)),
34
+ 'customer_abandon_count': !(0, runtime_1.exists)(json, 'customer_abandon_count') ? undefined : json['customer_abandon_count'],
35
+ 'customer_active_count': !(0, runtime_1.exists)(json, 'customer_active_count') ? undefined : json['customer_active_count'],
36
+ 'customer_average_abandon_time_seconds': !(0, runtime_1.exists)(json, 'customer_average_abandon_time_seconds') ? undefined : json['customer_average_abandon_time_seconds'],
37
+ 'customer_average_chat_time_seconds': !(0, runtime_1.exists)(json, 'customer_average_chat_time_seconds') ? undefined : json['customer_average_chat_time_seconds'],
38
+ 'customer_average_hold_time_seconds': !(0, runtime_1.exists)(json, 'customer_average_hold_time_seconds') ? undefined : json['customer_average_hold_time_seconds'],
39
+ 'customer_chat_count': !(0, runtime_1.exists)(json, 'customer_chat_count') ? undefined : json['customer_chat_count'],
40
+ 'customer_waiting_count': !(0, runtime_1.exists)(json, 'customer_waiting_count') ? undefined : json['customer_waiting_count'],
41
+ 'customer_waiting_join_dts': !(0, runtime_1.exists)(json, 'customer_waiting_join_dts') ? undefined : json['customer_waiting_join_dts'],
42
+ 'queue_entries': !(0, runtime_1.exists)(json, 'queue_entries') ? undefined : (json['queue_entries'].map(ConversationWebchatQueueStatusQueueEntry_1.ConversationWebchatQueueStatusQueueEntryFromJSON)),
43
+ 'queue_name': !(0, runtime_1.exists)(json, 'queue_name') ? undefined : json['queue_name'],
44
+ };
45
+ }
46
+ exports.ConversationWebchatQueueStatusFromJSONTyped = ConversationWebchatQueueStatusFromJSONTyped;
47
+ function ConversationWebchatQueueStatusToJSON(value) {
48
+ if (value === undefined) {
49
+ return undefined;
50
+ }
51
+ if (value === null) {
52
+ return null;
53
+ }
54
+ return {
55
+ 'agent_available_count': value.agent_available_count,
56
+ 'agent_busy_count': value.agent_busy_count,
57
+ 'agent_count': value.agent_count,
58
+ 'agent_unavailable_count': value.agent_unavailable_count,
59
+ 'agents': value.agents === undefined ? undefined : (value.agents.map(ConversationWebchatQueueStatusAgent_1.ConversationWebchatQueueStatusAgentToJSON)),
60
+ 'customer_abandon_count': value.customer_abandon_count,
61
+ 'customer_active_count': value.customer_active_count,
62
+ 'customer_average_abandon_time_seconds': value.customer_average_abandon_time_seconds,
63
+ 'customer_average_chat_time_seconds': value.customer_average_chat_time_seconds,
64
+ 'customer_average_hold_time_seconds': value.customer_average_hold_time_seconds,
65
+ 'customer_chat_count': value.customer_chat_count,
66
+ 'customer_waiting_count': value.customer_waiting_count,
67
+ 'customer_waiting_join_dts': value.customer_waiting_join_dts,
68
+ 'queue_entries': value.queue_entries === undefined ? undefined : (value.queue_entries.map(ConversationWebchatQueueStatusQueueEntry_1.ConversationWebchatQueueStatusQueueEntryToJSON)),
69
+ 'queue_name': value.queue_name,
70
+ };
71
+ }
72
+ exports.ConversationWebchatQueueStatusToJSON = ConversationWebchatQueueStatusToJSON;
@@ -0,0 +1,51 @@
1
+ /**
2
+ * UltraCart Rest API V2
3
+ * UltraCart REST API Version 2
4
+ *
5
+ * The version of the OpenAPI document: 2.0.0
6
+ * Contact: support@ultracart.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface ConversationWebchatQueueStatusAgent
16
+ */
17
+ export interface ConversationWebchatQueueStatusAgent {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof ConversationWebchatQueueStatusAgent
22
+ */
23
+ agent_status?: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof ConversationWebchatQueueStatusAgent
28
+ */
29
+ conversation_participant_arn?: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof ConversationWebchatQueueStatusAgent
34
+ */
35
+ conversation_participant_name?: string;
36
+ /**
37
+ * Date/time that this agent took their last chat
38
+ * @type {string}
39
+ * @memberof ConversationWebchatQueueStatusAgent
40
+ */
41
+ last_chat_dts?: string;
42
+ /**
43
+ *
44
+ * @type {boolean}
45
+ * @memberof ConversationWebchatQueueStatusAgent
46
+ */
47
+ next_round_robin?: boolean;
48
+ }
49
+ export declare function ConversationWebchatQueueStatusAgentFromJSON(json: any): ConversationWebchatQueueStatusAgent;
50
+ export declare function ConversationWebchatQueueStatusAgentFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationWebchatQueueStatusAgent;
51
+ export declare function ConversationWebchatQueueStatusAgentToJSON(value?: ConversationWebchatQueueStatusAgent | null): any;
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * UltraCart Rest API V2
6
+ * UltraCart REST API Version 2
7
+ *
8
+ * The version of the OpenAPI document: 2.0.0
9
+ * Contact: support@ultracart.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.ConversationWebchatQueueStatusAgentToJSON = exports.ConversationWebchatQueueStatusAgentFromJSONTyped = exports.ConversationWebchatQueueStatusAgentFromJSON = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ function ConversationWebchatQueueStatusAgentFromJSON(json) {
19
+ return ConversationWebchatQueueStatusAgentFromJSONTyped(json, false);
20
+ }
21
+ exports.ConversationWebchatQueueStatusAgentFromJSON = ConversationWebchatQueueStatusAgentFromJSON;
22
+ function ConversationWebchatQueueStatusAgentFromJSONTyped(json, ignoreDiscriminator) {
23
+ if ((json === undefined) || (json === null)) {
24
+ return json;
25
+ }
26
+ return {
27
+ 'agent_status': !(0, runtime_1.exists)(json, 'agent_status') ? undefined : json['agent_status'],
28
+ 'conversation_participant_arn': !(0, runtime_1.exists)(json, 'conversation_participant_arn') ? undefined : json['conversation_participant_arn'],
29
+ 'conversation_participant_name': !(0, runtime_1.exists)(json, 'conversation_participant_name') ? undefined : json['conversation_participant_name'],
30
+ 'last_chat_dts': !(0, runtime_1.exists)(json, 'last_chat_dts') ? undefined : json['last_chat_dts'],
31
+ 'next_round_robin': !(0, runtime_1.exists)(json, 'next_round_robin') ? undefined : json['next_round_robin'],
32
+ };
33
+ }
34
+ exports.ConversationWebchatQueueStatusAgentFromJSONTyped = ConversationWebchatQueueStatusAgentFromJSONTyped;
35
+ function ConversationWebchatQueueStatusAgentToJSON(value) {
36
+ if (value === undefined) {
37
+ return undefined;
38
+ }
39
+ if (value === null) {
40
+ return null;
41
+ }
42
+ return {
43
+ 'agent_status': value.agent_status,
44
+ 'conversation_participant_arn': value.conversation_participant_arn,
45
+ 'conversation_participant_name': value.conversation_participant_name,
46
+ 'last_chat_dts': value.last_chat_dts,
47
+ 'next_round_robin': value.next_round_robin,
48
+ };
49
+ }
50
+ exports.ConversationWebchatQueueStatusAgentToJSON = ConversationWebchatQueueStatusAgentToJSON;
@@ -0,0 +1,57 @@
1
+ /**
2
+ * UltraCart Rest API V2
3
+ * UltraCart REST API Version 2
4
+ *
5
+ * The version of the OpenAPI document: 2.0.0
6
+ * Contact: support@ultracart.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface ConversationWebchatQueueStatusQueueEntry
16
+ */
17
+ export interface ConversationWebchatQueueStatusQueueEntry {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof ConversationWebchatQueueStatusQueueEntry
22
+ */
23
+ conversation_participant_arn?: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof ConversationWebchatQueueStatusQueueEntry
28
+ */
29
+ conversation_participant_name?: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof ConversationWebchatQueueStatusQueueEntry
34
+ */
35
+ conversation_webchat_queue_uuid?: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof ConversationWebchatQueueStatusQueueEntry
40
+ */
41
+ email?: string;
42
+ /**
43
+ * Date/time the customer joined the queue
44
+ * @type {string}
45
+ * @memberof ConversationWebchatQueueStatusQueueEntry
46
+ */
47
+ join_dts?: string;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof ConversationWebchatQueueStatusQueueEntry
52
+ */
53
+ question?: string;
54
+ }
55
+ export declare function ConversationWebchatQueueStatusQueueEntryFromJSON(json: any): ConversationWebchatQueueStatusQueueEntry;
56
+ export declare function ConversationWebchatQueueStatusQueueEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationWebchatQueueStatusQueueEntry;
57
+ export declare function ConversationWebchatQueueStatusQueueEntryToJSON(value?: ConversationWebchatQueueStatusQueueEntry | null): any;