ultracart_rest_api_v2_typescript 4.0.44-RC → 4.0.47-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 +2 -0
  2. package/README.md +5 -2
  3. package/dist/models/ConversationAgentAuth.d.ts +3 -2
  4. package/dist/models/ConversationAgentAuth.js +3 -2
  5. package/dist/models/ConversationEventRRWeb.d.ts +71 -0
  6. package/dist/models/ConversationEventRRWeb.js +61 -0
  7. package/dist/models/ConversationMessage.d.ts +20 -0
  8. package/dist/models/ConversationMessage.js +12 -1
  9. package/dist/models/ConversationSummary.d.ts +12 -0
  10. package/dist/models/ConversationSummary.js +4 -0
  11. package/dist/models/ConversationTwilioAccount.d.ts +33 -0
  12. package/dist/models/ConversationTwilioAccount.js +44 -0
  13. package/dist/models/ConversationWebchatQueueStatus.d.ts +6 -0
  14. package/dist/models/ConversationWebchatQueueStatus.js +2 -0
  15. package/dist/models/ConversationWebchatQueueStatusQueueEntry.d.ts +6 -0
  16. package/dist/models/ConversationWebchatQueueStatusQueueEntry.js +2 -0
  17. package/dist/models/ConversationWebsocketMessage.d.ts +9 -0
  18. package/dist/models/ConversationWebsocketMessage.js +7 -2
  19. package/dist/models/index.d.ts +2 -0
  20. package/dist/models/index.js +2 -0
  21. package/package.json +1 -1
  22. package/src/models/ConversationAgentAuth.ts +11 -4
  23. package/src/models/ConversationEventRRWeb.ts +115 -0
  24. package/src/models/ConversationMessage.ts +27 -0
  25. package/src/models/ConversationSummary.ts +16 -0
  26. package/src/models/ConversationTwilioAccount.ts +64 -0
  27. package/src/models/ConversationWebchatQueueStatus.ts +8 -0
  28. package/src/models/ConversationWebchatQueueStatusQueueEntry.ts +8 -0
  29. package/src/models/ConversationWebsocketMessage.ts +18 -2
  30. package/src/models/index.ts +2 -0
@@ -144,6 +144,7 @@ src/models/Conversation.ts
144
144
  src/models/ConversationAgentAuth.ts
145
145
  src/models/ConversationAgentAuthResponse.ts
146
146
  src/models/ConversationEventQueuePosition.ts
147
+ src/models/ConversationEventRRWeb.ts
147
148
  src/models/ConversationMessage.ts
148
149
  src/models/ConversationMessageTransportStatus.ts
149
150
  src/models/ConversationMultimediaUploadUrl.ts
@@ -153,6 +154,7 @@ src/models/ConversationResponse.ts
153
154
  src/models/ConversationStartRequest.ts
154
155
  src/models/ConversationStartResponse.ts
155
156
  src/models/ConversationSummary.ts
157
+ src/models/ConversationTwilioAccount.ts
156
158
  src/models/ConversationWebchatQueueStatus.ts
157
159
  src/models/ConversationWebchatQueueStatusAgent.ts
158
160
  src/models/ConversationWebchatQueueStatusQueueEntry.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## ultracart_rest_api_v2_typescript@4.0.44-RC
1
+ ## ultracart_rest_api_v2_typescript@4.0.47-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.44-RC --save
39
+ npm install ultracart_rest_api_v2_typescript@4.0.47-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.47-RC | 08/01/2022 | conversation event refinement |
58
+ | 4.0.46-RC | 07/29/2022 | conversation development |
59
+ | 4.0.45-RC | 07/28/2022 | conversation bug fixes |
57
60
  | 4.0.44-RC | 07/28/2022 | conversation message upload keys property |
58
61
  | 4.0.43-RC | 07/26/2022 | conversations - queue statistics |
59
62
  | 4.0.42-RC | 07/25/2022 | conversation development |
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { ConversationTwilioAccount } from './ConversationTwilioAccount';
12
13
  /**
13
14
  *
14
15
  * @export
@@ -41,10 +42,10 @@ export interface ConversationAgentAuth {
41
42
  merchant_id?: string;
42
43
  /**
43
44
  *
44
- * @type {Array<string>}
45
+ * @type {Array<ConversationTwilioAccount>}
45
46
  * @memberof ConversationAgentAuth
46
47
  */
47
- twilio_phone_numbers?: Array<string>;
48
+ twilio_accounts?: Array<ConversationTwilioAccount>;
48
49
  /**
49
50
  *
50
51
  * @type {string}
@@ -15,6 +15,7 @@
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.ConversationAgentAuthToJSON = exports.ConversationAgentAuthFromJSONTyped = exports.ConversationAgentAuthFromJSON = void 0;
17
17
  var runtime_1 = require("../runtime");
18
+ var ConversationTwilioAccount_1 = require("./ConversationTwilioAccount");
18
19
  function ConversationAgentAuthFromJSON(json) {
19
20
  return ConversationAgentAuthFromJSONTyped(json, false);
20
21
  }
@@ -28,7 +29,7 @@ function ConversationAgentAuthFromJSONTyped(json, ignoreDiscriminator) {
28
29
  'conversation_participant_name': !(0, runtime_1.exists)(json, 'conversation_participant_name') ? undefined : json['conversation_participant_name'],
29
30
  'jwt': !(0, runtime_1.exists)(json, 'jwt') ? undefined : json['jwt'],
30
31
  'merchant_id': !(0, runtime_1.exists)(json, 'merchant_id') ? undefined : json['merchant_id'],
31
- 'twilio_phone_numbers': !(0, runtime_1.exists)(json, 'twilio_phone_numbers') ? undefined : json['twilio_phone_numbers'],
32
+ 'twilio_accounts': !(0, runtime_1.exists)(json, 'twilio_accounts') ? undefined : (json['twilio_accounts'].map(ConversationTwilioAccount_1.ConversationTwilioAccountFromJSON)),
32
33
  'websocket_url': !(0, runtime_1.exists)(json, 'websocket_url') ? undefined : json['websocket_url'],
33
34
  };
34
35
  }
@@ -45,7 +46,7 @@ function ConversationAgentAuthToJSON(value) {
45
46
  'conversation_participant_name': value.conversation_participant_name,
46
47
  'jwt': value.jwt,
47
48
  'merchant_id': value.merchant_id,
48
- 'twilio_phone_numbers': value.twilio_phone_numbers,
49
+ 'twilio_accounts': value.twilio_accounts === undefined ? undefined : (value.twilio_accounts.map(ConversationTwilioAccount_1.ConversationTwilioAccountToJSON)),
49
50
  'websocket_url': value.websocket_url,
50
51
  };
51
52
  }
@@ -0,0 +1,71 @@
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 ConversationEventRRWeb
16
+ */
17
+ export interface ConversationEventRRWeb {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof ConversationEventRRWeb
22
+ */
23
+ data?: string;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof ConversationEventRRWeb
28
+ */
29
+ data_part?: number;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof ConversationEventRRWeb
34
+ */
35
+ data_sha256?: string;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof ConversationEventRRWeb
40
+ */
41
+ data_total_parts?: number;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof ConversationEventRRWeb
46
+ */
47
+ data_total_sha256?: string;
48
+ /**
49
+ *
50
+ * @type {number}
51
+ * @memberof ConversationEventRRWeb
52
+ */
53
+ event_index?: number;
54
+ /**
55
+ * Type of event
56
+ * @type {string}
57
+ * @memberof ConversationEventRRWeb
58
+ */
59
+ type?: ConversationEventRRWebTypeEnum;
60
+ }
61
+ /**
62
+ * @export
63
+ */
64
+ export declare const ConversationEventRRWebTypeEnum: {
65
+ readonly Init: "init";
66
+ readonly Events: "events";
67
+ };
68
+ export declare type ConversationEventRRWebTypeEnum = typeof ConversationEventRRWebTypeEnum[keyof typeof ConversationEventRRWebTypeEnum];
69
+ export declare function ConversationEventRRWebFromJSON(json: any): ConversationEventRRWeb;
70
+ export declare function ConversationEventRRWebFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationEventRRWeb;
71
+ export declare function ConversationEventRRWebToJSON(value?: ConversationEventRRWeb | null): any;
@@ -0,0 +1,61 @@
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.ConversationEventRRWebToJSON = exports.ConversationEventRRWebFromJSONTyped = exports.ConversationEventRRWebFromJSON = exports.ConversationEventRRWebTypeEnum = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ /**
19
+ * @export
20
+ */
21
+ exports.ConversationEventRRWebTypeEnum = {
22
+ Init: 'init',
23
+ Events: 'events'
24
+ };
25
+ function ConversationEventRRWebFromJSON(json) {
26
+ return ConversationEventRRWebFromJSONTyped(json, false);
27
+ }
28
+ exports.ConversationEventRRWebFromJSON = ConversationEventRRWebFromJSON;
29
+ function ConversationEventRRWebFromJSONTyped(json, ignoreDiscriminator) {
30
+ if ((json === undefined) || (json === null)) {
31
+ return json;
32
+ }
33
+ return {
34
+ 'data': !(0, runtime_1.exists)(json, 'data') ? undefined : json['data'],
35
+ 'data_part': !(0, runtime_1.exists)(json, 'data_part') ? undefined : json['data_part'],
36
+ 'data_sha256': !(0, runtime_1.exists)(json, 'data_sha256') ? undefined : json['data_sha256'],
37
+ 'data_total_parts': !(0, runtime_1.exists)(json, 'data_total_parts') ? undefined : json['data_total_parts'],
38
+ 'data_total_sha256': !(0, runtime_1.exists)(json, 'data_total_sha256') ? undefined : json['data_total_sha256'],
39
+ 'event_index': !(0, runtime_1.exists)(json, 'event_index') ? undefined : json['event_index'],
40
+ 'type': !(0, runtime_1.exists)(json, 'type') ? undefined : json['type'],
41
+ };
42
+ }
43
+ exports.ConversationEventRRWebFromJSONTyped = ConversationEventRRWebFromJSONTyped;
44
+ function ConversationEventRRWebToJSON(value) {
45
+ if (value === undefined) {
46
+ return undefined;
47
+ }
48
+ if (value === null) {
49
+ return null;
50
+ }
51
+ return {
52
+ 'data': value.data,
53
+ 'data_part': value.data_part,
54
+ 'data_sha256': value.data_sha256,
55
+ 'data_total_parts': value.data_total_parts,
56
+ 'data_total_sha256': value.data_total_sha256,
57
+ 'event_index': value.event_index,
58
+ 'type': value.type,
59
+ };
60
+ }
61
+ exports.ConversationEventRRWebToJSON = ConversationEventRRWebToJSON;
@@ -34,6 +34,12 @@ export interface ConversationMessage {
34
34
  * @memberof ConversationMessage
35
35
  */
36
36
  body?: string;
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof ConversationMessage
41
+ */
42
+ client_message_id?: string;
37
43
  /**
38
44
  *
39
45
  * @type {Array<string>}
@@ -52,6 +58,12 @@ export interface ConversationMessage {
52
58
  * @memberof ConversationMessage
53
59
  */
54
60
  transport_statuses?: Array<ConversationMessageTransportStatus>;
61
+ /**
62
+ * Message type
63
+ * @type {string}
64
+ * @memberof ConversationMessage
65
+ */
66
+ type?: ConversationMessageTypeEnum;
55
67
  /**
56
68
  *
57
69
  * @type {Array<string>}
@@ -59,6 +71,14 @@ export interface ConversationMessage {
59
71
  */
60
72
  upload_keys?: Array<string>;
61
73
  }
74
+ /**
75
+ * @export
76
+ */
77
+ export declare const ConversationMessageTypeEnum: {
78
+ readonly Message: "message";
79
+ readonly Notice: "notice";
80
+ };
81
+ export declare type ConversationMessageTypeEnum = typeof ConversationMessageTypeEnum[keyof typeof ConversationMessageTypeEnum];
62
82
  export declare function ConversationMessageFromJSON(json: any): ConversationMessage;
63
83
  export declare function ConversationMessageFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationMessage;
64
84
  export declare function ConversationMessageToJSON(value?: ConversationMessage | null): any;
@@ -13,9 +13,16 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.ConversationMessageToJSON = exports.ConversationMessageFromJSONTyped = exports.ConversationMessageFromJSON = void 0;
16
+ exports.ConversationMessageToJSON = exports.ConversationMessageFromJSONTyped = exports.ConversationMessageFromJSON = exports.ConversationMessageTypeEnum = void 0;
17
17
  var runtime_1 = require("../runtime");
18
18
  var ConversationMessageTransportStatus_1 = require("./ConversationMessageTransportStatus");
19
+ /**
20
+ * @export
21
+ */
22
+ exports.ConversationMessageTypeEnum = {
23
+ Message: 'message',
24
+ Notice: 'notice'
25
+ };
19
26
  function ConversationMessageFromJSON(json) {
20
27
  return ConversationMessageFromJSONTyped(json, false);
21
28
  }
@@ -28,9 +35,11 @@ function ConversationMessageFromJSONTyped(json, ignoreDiscriminator) {
28
35
  'author_conversation_participant_arn': !(0, runtime_1.exists)(json, 'author_conversation_participant_arn') ? undefined : json['author_conversation_participant_arn'],
29
36
  'author_conversation_participant_name': !(0, runtime_1.exists)(json, 'author_conversation_participant_name') ? undefined : json['author_conversation_participant_name'],
30
37
  'body': !(0, runtime_1.exists)(json, 'body') ? undefined : json['body'],
38
+ 'client_message_id': !(0, runtime_1.exists)(json, 'client_message_id') ? undefined : json['client_message_id'],
31
39
  'media_urls': !(0, runtime_1.exists)(json, 'media_urls') ? undefined : json['media_urls'],
32
40
  'message_dts': !(0, runtime_1.exists)(json, 'message_dts') ? undefined : json['message_dts'],
33
41
  'transport_statuses': !(0, runtime_1.exists)(json, 'transport_statuses') ? undefined : (json['transport_statuses'].map(ConversationMessageTransportStatus_1.ConversationMessageTransportStatusFromJSON)),
42
+ 'type': !(0, runtime_1.exists)(json, 'type') ? undefined : json['type'],
34
43
  'upload_keys': !(0, runtime_1.exists)(json, 'upload_keys') ? undefined : json['upload_keys'],
35
44
  };
36
45
  }
@@ -46,9 +55,11 @@ function ConversationMessageToJSON(value) {
46
55
  'author_conversation_participant_arn': value.author_conversation_participant_arn,
47
56
  'author_conversation_participant_name': value.author_conversation_participant_name,
48
57
  'body': value.body,
58
+ 'client_message_id': value.client_message_id,
49
59
  'media_urls': value.media_urls,
50
60
  'message_dts': value.message_dts,
51
61
  'transport_statuses': value.transport_statuses === undefined ? undefined : (value.transport_statuses.map(ConversationMessageTransportStatus_1.ConversationMessageTransportStatusToJSON)),
62
+ 'type': value.type,
52
63
  'upload_keys': value.upload_keys,
53
64
  };
54
65
  }
@@ -69,12 +69,24 @@ export interface ConversationSummary {
69
69
  * @memberof ConversationSummary
70
70
  */
71
71
  message_count?: number;
72
+ /**
73
+ * Start of the conversation date/time
74
+ * @type {string}
75
+ * @memberof ConversationSummary
76
+ */
77
+ start_dts?: string;
72
78
  /**
73
79
  *
74
80
  * @type {boolean}
75
81
  * @memberof ConversationSummary
76
82
  */
77
83
  unread_messages?: boolean;
84
+ /**
85
+ *
86
+ * @type {boolean}
87
+ * @memberof ConversationSummary
88
+ */
89
+ visible?: boolean;
78
90
  }
79
91
  export declare function ConversationSummaryFromJSON(json: any): ConversationSummary;
80
92
  export declare function ConversationSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationSummary;
@@ -33,7 +33,9 @@ function ConversationSummaryFromJSONTyped(json, ignoreDiscriminator) {
33
33
  'last_message_dts': !(0, runtime_1.exists)(json, 'last_message_dts') ? undefined : json['last_message_dts'],
34
34
  'merchant_id': !(0, runtime_1.exists)(json, 'merchant_id') ? undefined : json['merchant_id'],
35
35
  'message_count': !(0, runtime_1.exists)(json, 'message_count') ? undefined : json['message_count'],
36
+ 'start_dts': !(0, runtime_1.exists)(json, 'start_dts') ? undefined : json['start_dts'],
36
37
  'unread_messages': !(0, runtime_1.exists)(json, 'unread_messages') ? undefined : json['unread_messages'],
38
+ 'visible': !(0, runtime_1.exists)(json, 'visible') ? undefined : json['visible'],
37
39
  };
38
40
  }
39
41
  exports.ConversationSummaryFromJSONTyped = ConversationSummaryFromJSONTyped;
@@ -54,7 +56,9 @@ function ConversationSummaryToJSON(value) {
54
56
  'last_message_dts': value.last_message_dts,
55
57
  'merchant_id': value.merchant_id,
56
58
  'message_count': value.message_count,
59
+ 'start_dts': value.start_dts,
57
60
  'unread_messages': value.unread_messages,
61
+ 'visible': value.visible,
58
62
  };
59
63
  }
60
64
  exports.ConversationSummaryToJSON = ConversationSummaryToJSON;
@@ -0,0 +1,33 @@
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 ConversationTwilioAccount
16
+ */
17
+ export interface ConversationTwilioAccount {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof ConversationTwilioAccount
22
+ */
23
+ merchant_id?: string;
24
+ /**
25
+ *
26
+ * @type {Array<string>}
27
+ * @memberof ConversationTwilioAccount
28
+ */
29
+ twilio_phone_numbers?: Array<string>;
30
+ }
31
+ export declare function ConversationTwilioAccountFromJSON(json: any): ConversationTwilioAccount;
32
+ export declare function ConversationTwilioAccountFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationTwilioAccount;
33
+ export declare function ConversationTwilioAccountToJSON(value?: ConversationTwilioAccount | null): any;
@@ -0,0 +1,44 @@
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.ConversationTwilioAccountToJSON = exports.ConversationTwilioAccountFromJSONTyped = exports.ConversationTwilioAccountFromJSON = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ function ConversationTwilioAccountFromJSON(json) {
19
+ return ConversationTwilioAccountFromJSONTyped(json, false);
20
+ }
21
+ exports.ConversationTwilioAccountFromJSON = ConversationTwilioAccountFromJSON;
22
+ function ConversationTwilioAccountFromJSONTyped(json, ignoreDiscriminator) {
23
+ if ((json === undefined) || (json === null)) {
24
+ return json;
25
+ }
26
+ return {
27
+ 'merchant_id': !(0, runtime_1.exists)(json, 'merchant_id') ? undefined : json['merchant_id'],
28
+ 'twilio_phone_numbers': !(0, runtime_1.exists)(json, 'twilio_phone_numbers') ? undefined : json['twilio_phone_numbers'],
29
+ };
30
+ }
31
+ exports.ConversationTwilioAccountFromJSONTyped = ConversationTwilioAccountFromJSONTyped;
32
+ function ConversationTwilioAccountToJSON(value) {
33
+ if (value === undefined) {
34
+ return undefined;
35
+ }
36
+ if (value === null) {
37
+ return null;
38
+ }
39
+ return {
40
+ 'merchant_id': value.merchant_id,
41
+ 'twilio_phone_numbers': value.twilio_phone_numbers,
42
+ };
43
+ }
44
+ exports.ConversationTwilioAccountToJSON = ConversationTwilioAccountToJSON;
@@ -77,6 +77,12 @@ export interface ConversationWebchatQueueStatus {
77
77
  * @memberof ConversationWebchatQueueStatus
78
78
  */
79
79
  customer_average_hold_time_seconds?: number;
80
+ /**
81
+ *
82
+ * @type {number}
83
+ * @memberof ConversationWebchatQueueStatus
84
+ */
85
+ customer_chat_count?: number;
80
86
  /**
81
87
  *
82
88
  * @type {number}
@@ -36,6 +36,7 @@ function ConversationWebchatQueueStatusFromJSONTyped(json, ignoreDiscriminator)
36
36
  'customer_average_abandon_time_seconds': !(0, runtime_1.exists)(json, 'customer_average_abandon_time_seconds') ? undefined : json['customer_average_abandon_time_seconds'],
37
37
  'customer_average_chat_time_seconds': !(0, runtime_1.exists)(json, 'customer_average_chat_time_seconds') ? undefined : json['customer_average_chat_time_seconds'],
38
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'],
39
40
  'customer_waiting_count': !(0, runtime_1.exists)(json, 'customer_waiting_count') ? undefined : json['customer_waiting_count'],
40
41
  'customer_waiting_join_dts': !(0, runtime_1.exists)(json, 'customer_waiting_join_dts') ? undefined : json['customer_waiting_join_dts'],
41
42
  'queue_entries': !(0, runtime_1.exists)(json, 'queue_entries') ? undefined : (json['queue_entries'].map(ConversationWebchatQueueStatusQueueEntry_1.ConversationWebchatQueueStatusQueueEntryFromJSON)),
@@ -61,6 +62,7 @@ function ConversationWebchatQueueStatusToJSON(value) {
61
62
  'customer_average_abandon_time_seconds': value.customer_average_abandon_time_seconds,
62
63
  'customer_average_chat_time_seconds': value.customer_average_chat_time_seconds,
63
64
  'customer_average_hold_time_seconds': value.customer_average_hold_time_seconds,
65
+ 'customer_chat_count': value.customer_chat_count,
64
66
  'customer_waiting_count': value.customer_waiting_count,
65
67
  'customer_waiting_join_dts': value.customer_waiting_join_dts,
66
68
  'queue_entries': value.queue_entries === undefined ? undefined : (value.queue_entries.map(ConversationWebchatQueueStatusQueueEntry_1.ConversationWebchatQueueStatusQueueEntryToJSON)),
@@ -33,6 +33,12 @@ export interface ConversationWebchatQueueStatusQueueEntry {
33
33
  * @memberof ConversationWebchatQueueStatusQueueEntry
34
34
  */
35
35
  conversation_webchat_queue_uuid?: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof ConversationWebchatQueueStatusQueueEntry
40
+ */
41
+ email?: string;
36
42
  /**
37
43
  * Date/time the customer joined the queue
38
44
  * @type {string}
@@ -27,6 +27,7 @@ function ConversationWebchatQueueStatusQueueEntryFromJSONTyped(json, ignoreDiscr
27
27
  'conversation_participant_arn': !(0, runtime_1.exists)(json, 'conversation_participant_arn') ? undefined : json['conversation_participant_arn'],
28
28
  'conversation_participant_name': !(0, runtime_1.exists)(json, 'conversation_participant_name') ? undefined : json['conversation_participant_name'],
29
29
  'conversation_webchat_queue_uuid': !(0, runtime_1.exists)(json, 'conversation_webchat_queue_uuid') ? undefined : json['conversation_webchat_queue_uuid'],
30
+ 'email': !(0, runtime_1.exists)(json, 'email') ? undefined : json['email'],
30
31
  'join_dts': !(0, runtime_1.exists)(json, 'join_dts') ? undefined : json['join_dts'],
31
32
  'question': !(0, runtime_1.exists)(json, 'question') ? undefined : json['question'],
32
33
  };
@@ -43,6 +44,7 @@ function ConversationWebchatQueueStatusQueueEntryToJSON(value) {
43
44
  'conversation_participant_arn': value.conversation_participant_arn,
44
45
  'conversation_participant_name': value.conversation_participant_name,
45
46
  'conversation_webchat_queue_uuid': value.conversation_webchat_queue_uuid,
47
+ 'email': value.email,
46
48
  'join_dts': value.join_dts,
47
49
  'question': value.question,
48
50
  };
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import { ConversationEventQueuePosition } from './ConversationEventQueuePosition';
13
+ import { ConversationEventRRWeb } from './ConversationEventRRWeb';
13
14
  import { ConversationMessage } from './ConversationMessage';
14
15
  import { ConversationSummary } from './ConversationSummary';
15
16
  import { ConversationWebchatQueueStatus } from './ConversationWebchatQueueStatus';
@@ -55,6 +56,12 @@ export interface ConversationWebsocketMessage {
55
56
  * @memberof ConversationWebsocketMessage
56
57
  */
57
58
  event_queue_status_update?: ConversationWebchatQueueStatus;
59
+ /**
60
+ *
61
+ * @type {ConversationEventRRWeb}
62
+ * @memberof ConversationWebsocketMessage
63
+ */
64
+ event_rrweb?: ConversationEventRRWeb;
58
65
  /**
59
66
  * Type of event
60
67
  * @type {string}
@@ -91,6 +98,7 @@ export declare const ConversationWebsocketMessageEventTypeEnum: {
91
98
  readonly NewMessage: "new message";
92
99
  readonly UpdatedMessage: "updated message";
93
100
  readonly QueueStatusUpdate: "queue status update";
101
+ readonly Rrweb: "rrweb";
94
102
  };
95
103
  export declare type ConversationWebsocketMessageEventTypeEnum = typeof ConversationWebsocketMessageEventTypeEnum[keyof typeof ConversationWebsocketMessageEventTypeEnum];
96
104
  /**
@@ -100,6 +108,7 @@ export declare const ConversationWebsocketMessageTypeEnum: {
100
108
  readonly Message: "message";
101
109
  readonly Event: "event";
102
110
  readonly Ping: "ping";
111
+ readonly CheckQueuePosition: "check queue position";
103
112
  };
104
113
  export declare type ConversationWebsocketMessageTypeEnum = typeof ConversationWebsocketMessageTypeEnum[keyof typeof ConversationWebsocketMessageTypeEnum];
105
114
  export declare function ConversationWebsocketMessageFromJSON(json: any): ConversationWebsocketMessage;
@@ -16,6 +16,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.ConversationWebsocketMessageToJSON = exports.ConversationWebsocketMessageFromJSONTyped = exports.ConversationWebsocketMessageFromJSON = exports.ConversationWebsocketMessageTypeEnum = exports.ConversationWebsocketMessageEventTypeEnum = void 0;
17
17
  var runtime_1 = require("../runtime");
18
18
  var ConversationEventQueuePosition_1 = require("./ConversationEventQueuePosition");
19
+ var ConversationEventRRWeb_1 = require("./ConversationEventRRWeb");
19
20
  var ConversationMessage_1 = require("./ConversationMessage");
20
21
  var ConversationSummary_1 = require("./ConversationSummary");
21
22
  var ConversationWebchatQueueStatus_1 = require("./ConversationWebchatQueueStatus");
@@ -29,7 +30,8 @@ exports.ConversationWebsocketMessageEventTypeEnum = {
29
30
  NewConversation: 'new conversation',
30
31
  NewMessage: 'new message',
31
32
  UpdatedMessage: 'updated message',
32
- QueueStatusUpdate: 'queue status update'
33
+ QueueStatusUpdate: 'queue status update',
34
+ Rrweb: 'rrweb'
33
35
  };
34
36
  /**
35
37
  * @export
@@ -37,7 +39,8 @@ exports.ConversationWebsocketMessageEventTypeEnum = {
37
39
  exports.ConversationWebsocketMessageTypeEnum = {
38
40
  Message: 'message',
39
41
  Event: 'event',
40
- Ping: 'ping'
42
+ Ping: 'ping',
43
+ CheckQueuePosition: 'check queue position'
41
44
  };
42
45
  function ConversationWebsocketMessageFromJSON(json) {
43
46
  return ConversationWebsocketMessageFromJSONTyped(json, false);
@@ -54,6 +57,7 @@ function ConversationWebsocketMessageFromJSONTyped(json, ignoreDiscriminator) {
54
57
  'event_new_message': !(0, runtime_1.exists)(json, 'event_new_message') ? undefined : (0, ConversationSummary_1.ConversationSummaryFromJSON)(json['event_new_message']),
55
58
  'event_queue_position': !(0, runtime_1.exists)(json, 'event_queue_position') ? undefined : (0, ConversationEventQueuePosition_1.ConversationEventQueuePositionFromJSON)(json['event_queue_position']),
56
59
  'event_queue_status_update': !(0, runtime_1.exists)(json, 'event_queue_status_update') ? undefined : (0, ConversationWebchatQueueStatus_1.ConversationWebchatQueueStatusFromJSON)(json['event_queue_status_update']),
60
+ 'event_rrweb': !(0, runtime_1.exists)(json, 'event_rrweb') ? undefined : (0, ConversationEventRRWeb_1.ConversationEventRRWebFromJSON)(json['event_rrweb']),
57
61
  'event_type': !(0, runtime_1.exists)(json, 'event_type') ? undefined : json['event_type'],
58
62
  'event_updated_message': !(0, runtime_1.exists)(json, 'event_updated_message') ? undefined : (0, ConversationMessage_1.ConversationMessageFromJSON)(json['event_updated_message']),
59
63
  'message': !(0, runtime_1.exists)(json, 'message') ? undefined : (0, ConversationMessage_1.ConversationMessageFromJSON)(json['message']),
@@ -75,6 +79,7 @@ function ConversationWebsocketMessageToJSON(value) {
75
79
  'event_new_message': (0, ConversationSummary_1.ConversationSummaryToJSON)(value.event_new_message),
76
80
  'event_queue_position': (0, ConversationEventQueuePosition_1.ConversationEventQueuePositionToJSON)(value.event_queue_position),
77
81
  'event_queue_status_update': (0, ConversationWebchatQueueStatus_1.ConversationWebchatQueueStatusToJSON)(value.event_queue_status_update),
82
+ 'event_rrweb': (0, ConversationEventRRWeb_1.ConversationEventRRWebToJSON)(value.event_rrweb),
78
83
  'event_type': value.event_type,
79
84
  'event_updated_message': (0, ConversationMessage_1.ConversationMessageToJSON)(value.event_updated_message),
80
85
  'message': (0, ConversationMessage_1.ConversationMessageToJSON)(value.message),
@@ -119,6 +119,7 @@ export * from './Conversation';
119
119
  export * from './ConversationAgentAuth';
120
120
  export * from './ConversationAgentAuthResponse';
121
121
  export * from './ConversationEventQueuePosition';
122
+ export * from './ConversationEventRRWeb';
122
123
  export * from './ConversationMessage';
123
124
  export * from './ConversationMessageTransportStatus';
124
125
  export * from './ConversationMultimediaUploadUrl';
@@ -128,6 +129,7 @@ export * from './ConversationResponse';
128
129
  export * from './ConversationStartRequest';
129
130
  export * from './ConversationStartResponse';
130
131
  export * from './ConversationSummary';
132
+ export * from './ConversationTwilioAccount';
131
133
  export * from './ConversationWebchatQueueStatus';
132
134
  export * from './ConversationWebchatQueueStatusAgent';
133
135
  export * from './ConversationWebchatQueueStatusQueueEntry';
@@ -137,6 +137,7 @@ __exportStar(require("./Conversation"), exports);
137
137
  __exportStar(require("./ConversationAgentAuth"), exports);
138
138
  __exportStar(require("./ConversationAgentAuthResponse"), exports);
139
139
  __exportStar(require("./ConversationEventQueuePosition"), exports);
140
+ __exportStar(require("./ConversationEventRRWeb"), exports);
140
141
  __exportStar(require("./ConversationMessage"), exports);
141
142
  __exportStar(require("./ConversationMessageTransportStatus"), exports);
142
143
  __exportStar(require("./ConversationMultimediaUploadUrl"), exports);
@@ -146,6 +147,7 @@ __exportStar(require("./ConversationResponse"), exports);
146
147
  __exportStar(require("./ConversationStartRequest"), exports);
147
148
  __exportStar(require("./ConversationStartResponse"), exports);
148
149
  __exportStar(require("./ConversationSummary"), exports);
150
+ __exportStar(require("./ConversationTwilioAccount"), exports);
149
151
  __exportStar(require("./ConversationWebchatQueueStatus"), exports);
150
152
  __exportStar(require("./ConversationWebchatQueueStatusAgent"), exports);
151
153
  __exportStar(require("./ConversationWebchatQueueStatusQueueEntry"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ultracart_rest_api_v2_typescript",
3
- "version": "4.0.44-RC",
3
+ "version": "4.0.47-RC",
4
4
  "description": "UltraCart Rest TypeScript SDK",
5
5
  "author": "UltraCart",
6
6
  "repository": {
@@ -13,6 +13,13 @@
13
13
  */
14
14
 
15
15
  import { exists, mapValues } from '../runtime';
16
+ import {
17
+ ConversationTwilioAccount,
18
+ ConversationTwilioAccountFromJSON,
19
+ ConversationTwilioAccountFromJSONTyped,
20
+ ConversationTwilioAccountToJSON,
21
+ } from './ConversationTwilioAccount';
22
+
16
23
  /**
17
24
  *
18
25
  * @export
@@ -45,10 +52,10 @@ export interface ConversationAgentAuth {
45
52
  merchant_id?: string;
46
53
  /**
47
54
  *
48
- * @type {Array<string>}
55
+ * @type {Array<ConversationTwilioAccount>}
49
56
  * @memberof ConversationAgentAuth
50
57
  */
51
- twilio_phone_numbers?: Array<string>;
58
+ twilio_accounts?: Array<ConversationTwilioAccount>;
52
59
  /**
53
60
  *
54
61
  * @type {string}
@@ -71,7 +78,7 @@ export function ConversationAgentAuthFromJSONTyped(json: any, ignoreDiscriminato
71
78
  'conversation_participant_name': !exists(json, 'conversation_participant_name') ? undefined : json['conversation_participant_name'],
72
79
  'jwt': !exists(json, 'jwt') ? undefined : json['jwt'],
73
80
  'merchant_id': !exists(json, 'merchant_id') ? undefined : json['merchant_id'],
74
- 'twilio_phone_numbers': !exists(json, 'twilio_phone_numbers') ? undefined : json['twilio_phone_numbers'],
81
+ 'twilio_accounts': !exists(json, 'twilio_accounts') ? undefined : ((json['twilio_accounts'] as Array<any>).map(ConversationTwilioAccountFromJSON)),
75
82
  'websocket_url': !exists(json, 'websocket_url') ? undefined : json['websocket_url'],
76
83
  };
77
84
  }
@@ -89,7 +96,7 @@ export function ConversationAgentAuthToJSON(value?: ConversationAgentAuth | null
89
96
  'conversation_participant_name': value.conversation_participant_name,
90
97
  'jwt': value.jwt,
91
98
  'merchant_id': value.merchant_id,
92
- 'twilio_phone_numbers': value.twilio_phone_numbers,
99
+ 'twilio_accounts': value.twilio_accounts === undefined ? undefined : ((value.twilio_accounts as Array<any>).map(ConversationTwilioAccountToJSON)),
93
100
  'websocket_url': value.websocket_url,
94
101
  };
95
102
  }
@@ -0,0 +1,115 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * UltraCart Rest API V2
5
+ * UltraCart REST API Version 2
6
+ *
7
+ * The version of the OpenAPI document: 2.0.0
8
+ * Contact: support@ultracart.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { exists, mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface ConversationEventRRWeb
20
+ */
21
+ export interface ConversationEventRRWeb {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof ConversationEventRRWeb
26
+ */
27
+ data?: string;
28
+ /**
29
+ *
30
+ * @type {number}
31
+ * @memberof ConversationEventRRWeb
32
+ */
33
+ data_part?: number;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof ConversationEventRRWeb
38
+ */
39
+ data_sha256?: string;
40
+ /**
41
+ *
42
+ * @type {number}
43
+ * @memberof ConversationEventRRWeb
44
+ */
45
+ data_total_parts?: number;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof ConversationEventRRWeb
50
+ */
51
+ data_total_sha256?: string;
52
+ /**
53
+ *
54
+ * @type {number}
55
+ * @memberof ConversationEventRRWeb
56
+ */
57
+ event_index?: number;
58
+ /**
59
+ * Type of event
60
+ * @type {string}
61
+ * @memberof ConversationEventRRWeb
62
+ */
63
+ type?: ConversationEventRRWebTypeEnum;
64
+ }
65
+
66
+
67
+ /**
68
+ * @export
69
+ */
70
+ export const ConversationEventRRWebTypeEnum = {
71
+ Init: 'init',
72
+ Events: 'events'
73
+ } as const;
74
+ export type ConversationEventRRWebTypeEnum = typeof ConversationEventRRWebTypeEnum[keyof typeof ConversationEventRRWebTypeEnum];
75
+
76
+
77
+ export function ConversationEventRRWebFromJSON(json: any): ConversationEventRRWeb {
78
+ return ConversationEventRRWebFromJSONTyped(json, false);
79
+ }
80
+
81
+ export function ConversationEventRRWebFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationEventRRWeb {
82
+ if ((json === undefined) || (json === null)) {
83
+ return json;
84
+ }
85
+ return {
86
+
87
+ 'data': !exists(json, 'data') ? undefined : json['data'],
88
+ 'data_part': !exists(json, 'data_part') ? undefined : json['data_part'],
89
+ 'data_sha256': !exists(json, 'data_sha256') ? undefined : json['data_sha256'],
90
+ 'data_total_parts': !exists(json, 'data_total_parts') ? undefined : json['data_total_parts'],
91
+ 'data_total_sha256': !exists(json, 'data_total_sha256') ? undefined : json['data_total_sha256'],
92
+ 'event_index': !exists(json, 'event_index') ? undefined : json['event_index'],
93
+ 'type': !exists(json, 'type') ? undefined : json['type'],
94
+ };
95
+ }
96
+
97
+ export function ConversationEventRRWebToJSON(value?: ConversationEventRRWeb | null): any {
98
+ if (value === undefined) {
99
+ return undefined;
100
+ }
101
+ if (value === null) {
102
+ return null;
103
+ }
104
+ return {
105
+
106
+ 'data': value.data,
107
+ 'data_part': value.data_part,
108
+ 'data_sha256': value.data_sha256,
109
+ 'data_total_parts': value.data_total_parts,
110
+ 'data_total_sha256': value.data_total_sha256,
111
+ 'event_index': value.event_index,
112
+ 'type': value.type,
113
+ };
114
+ }
115
+
@@ -44,6 +44,12 @@ export interface ConversationMessage {
44
44
  * @memberof ConversationMessage
45
45
  */
46
46
  body?: string;
47
+ /**
48
+ *
49
+ * @type {string}
50
+ * @memberof ConversationMessage
51
+ */
52
+ client_message_id?: string;
47
53
  /**
48
54
  *
49
55
  * @type {Array<string>}
@@ -62,6 +68,12 @@ export interface ConversationMessage {
62
68
  * @memberof ConversationMessage
63
69
  */
64
70
  transport_statuses?: Array<ConversationMessageTransportStatus>;
71
+ /**
72
+ * Message type
73
+ * @type {string}
74
+ * @memberof ConversationMessage
75
+ */
76
+ type?: ConversationMessageTypeEnum;
65
77
  /**
66
78
  *
67
79
  * @type {Array<string>}
@@ -70,6 +82,17 @@ export interface ConversationMessage {
70
82
  upload_keys?: Array<string>;
71
83
  }
72
84
 
85
+
86
+ /**
87
+ * @export
88
+ */
89
+ export const ConversationMessageTypeEnum = {
90
+ Message: 'message',
91
+ Notice: 'notice'
92
+ } as const;
93
+ export type ConversationMessageTypeEnum = typeof ConversationMessageTypeEnum[keyof typeof ConversationMessageTypeEnum];
94
+
95
+
73
96
  export function ConversationMessageFromJSON(json: any): ConversationMessage {
74
97
  return ConversationMessageFromJSONTyped(json, false);
75
98
  }
@@ -83,9 +106,11 @@ export function ConversationMessageFromJSONTyped(json: any, ignoreDiscriminator:
83
106
  'author_conversation_participant_arn': !exists(json, 'author_conversation_participant_arn') ? undefined : json['author_conversation_participant_arn'],
84
107
  'author_conversation_participant_name': !exists(json, 'author_conversation_participant_name') ? undefined : json['author_conversation_participant_name'],
85
108
  'body': !exists(json, 'body') ? undefined : json['body'],
109
+ 'client_message_id': !exists(json, 'client_message_id') ? undefined : json['client_message_id'],
86
110
  'media_urls': !exists(json, 'media_urls') ? undefined : json['media_urls'],
87
111
  'message_dts': !exists(json, 'message_dts') ? undefined : json['message_dts'],
88
112
  'transport_statuses': !exists(json, 'transport_statuses') ? undefined : ((json['transport_statuses'] as Array<any>).map(ConversationMessageTransportStatusFromJSON)),
113
+ 'type': !exists(json, 'type') ? undefined : json['type'],
89
114
  'upload_keys': !exists(json, 'upload_keys') ? undefined : json['upload_keys'],
90
115
  };
91
116
  }
@@ -102,9 +127,11 @@ export function ConversationMessageToJSON(value?: ConversationMessage | null): a
102
127
  'author_conversation_participant_arn': value.author_conversation_participant_arn,
103
128
  'author_conversation_participant_name': value.author_conversation_participant_name,
104
129
  'body': value.body,
130
+ 'client_message_id': value.client_message_id,
105
131
  'media_urls': value.media_urls,
106
132
  'message_dts': value.message_dts,
107
133
  'transport_statuses': value.transport_statuses === undefined ? undefined : ((value.transport_statuses as Array<any>).map(ConversationMessageTransportStatusToJSON)),
134
+ 'type': value.type,
108
135
  'upload_keys': value.upload_keys,
109
136
  };
110
137
  }
@@ -73,12 +73,24 @@ export interface ConversationSummary {
73
73
  * @memberof ConversationSummary
74
74
  */
75
75
  message_count?: number;
76
+ /**
77
+ * Start of the conversation date/time
78
+ * @type {string}
79
+ * @memberof ConversationSummary
80
+ */
81
+ start_dts?: string;
76
82
  /**
77
83
  *
78
84
  * @type {boolean}
79
85
  * @memberof ConversationSummary
80
86
  */
81
87
  unread_messages?: boolean;
88
+ /**
89
+ *
90
+ * @type {boolean}
91
+ * @memberof ConversationSummary
92
+ */
93
+ visible?: boolean;
82
94
  }
83
95
 
84
96
  export function ConversationSummaryFromJSON(json: any): ConversationSummary {
@@ -100,7 +112,9 @@ export function ConversationSummaryFromJSONTyped(json: any, ignoreDiscriminator:
100
112
  'last_message_dts': !exists(json, 'last_message_dts') ? undefined : json['last_message_dts'],
101
113
  'merchant_id': !exists(json, 'merchant_id') ? undefined : json['merchant_id'],
102
114
  'message_count': !exists(json, 'message_count') ? undefined : json['message_count'],
115
+ 'start_dts': !exists(json, 'start_dts') ? undefined : json['start_dts'],
103
116
  'unread_messages': !exists(json, 'unread_messages') ? undefined : json['unread_messages'],
117
+ 'visible': !exists(json, 'visible') ? undefined : json['visible'],
104
118
  };
105
119
  }
106
120
 
@@ -122,7 +136,9 @@ export function ConversationSummaryToJSON(value?: ConversationSummary | null): a
122
136
  'last_message_dts': value.last_message_dts,
123
137
  'merchant_id': value.merchant_id,
124
138
  'message_count': value.message_count,
139
+ 'start_dts': value.start_dts,
125
140
  'unread_messages': value.unread_messages,
141
+ 'visible': value.visible,
126
142
  };
127
143
  }
128
144
 
@@ -0,0 +1,64 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * UltraCart Rest API V2
5
+ * UltraCart REST API Version 2
6
+ *
7
+ * The version of the OpenAPI document: 2.0.0
8
+ * Contact: support@ultracart.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { exists, mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface ConversationTwilioAccount
20
+ */
21
+ export interface ConversationTwilioAccount {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof ConversationTwilioAccount
26
+ */
27
+ merchant_id?: string;
28
+ /**
29
+ *
30
+ * @type {Array<string>}
31
+ * @memberof ConversationTwilioAccount
32
+ */
33
+ twilio_phone_numbers?: Array<string>;
34
+ }
35
+
36
+ export function ConversationTwilioAccountFromJSON(json: any): ConversationTwilioAccount {
37
+ return ConversationTwilioAccountFromJSONTyped(json, false);
38
+ }
39
+
40
+ export function ConversationTwilioAccountFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationTwilioAccount {
41
+ if ((json === undefined) || (json === null)) {
42
+ return json;
43
+ }
44
+ return {
45
+
46
+ 'merchant_id': !exists(json, 'merchant_id') ? undefined : json['merchant_id'],
47
+ 'twilio_phone_numbers': !exists(json, 'twilio_phone_numbers') ? undefined : json['twilio_phone_numbers'],
48
+ };
49
+ }
50
+
51
+ export function ConversationTwilioAccountToJSON(value?: ConversationTwilioAccount | null): any {
52
+ if (value === undefined) {
53
+ return undefined;
54
+ }
55
+ if (value === null) {
56
+ return null;
57
+ }
58
+ return {
59
+
60
+ 'merchant_id': value.merchant_id,
61
+ 'twilio_phone_numbers': value.twilio_phone_numbers,
62
+ };
63
+ }
64
+
@@ -92,6 +92,12 @@ export interface ConversationWebchatQueueStatus {
92
92
  * @memberof ConversationWebchatQueueStatus
93
93
  */
94
94
  customer_average_hold_time_seconds?: number;
95
+ /**
96
+ *
97
+ * @type {number}
98
+ * @memberof ConversationWebchatQueueStatus
99
+ */
100
+ customer_chat_count?: number;
95
101
  /**
96
102
  *
97
103
  * @type {number}
@@ -138,6 +144,7 @@ export function ConversationWebchatQueueStatusFromJSONTyped(json: any, ignoreDis
138
144
  'customer_average_abandon_time_seconds': !exists(json, 'customer_average_abandon_time_seconds') ? undefined : json['customer_average_abandon_time_seconds'],
139
145
  'customer_average_chat_time_seconds': !exists(json, 'customer_average_chat_time_seconds') ? undefined : json['customer_average_chat_time_seconds'],
140
146
  'customer_average_hold_time_seconds': !exists(json, 'customer_average_hold_time_seconds') ? undefined : json['customer_average_hold_time_seconds'],
147
+ 'customer_chat_count': !exists(json, 'customer_chat_count') ? undefined : json['customer_chat_count'],
141
148
  'customer_waiting_count': !exists(json, 'customer_waiting_count') ? undefined : json['customer_waiting_count'],
142
149
  'customer_waiting_join_dts': !exists(json, 'customer_waiting_join_dts') ? undefined : json['customer_waiting_join_dts'],
143
150
  'queue_entries': !exists(json, 'queue_entries') ? undefined : ((json['queue_entries'] as Array<any>).map(ConversationWebchatQueueStatusQueueEntryFromJSON)),
@@ -164,6 +171,7 @@ export function ConversationWebchatQueueStatusToJSON(value?: ConversationWebchat
164
171
  'customer_average_abandon_time_seconds': value.customer_average_abandon_time_seconds,
165
172
  'customer_average_chat_time_seconds': value.customer_average_chat_time_seconds,
166
173
  'customer_average_hold_time_seconds': value.customer_average_hold_time_seconds,
174
+ 'customer_chat_count': value.customer_chat_count,
167
175
  'customer_waiting_count': value.customer_waiting_count,
168
176
  'customer_waiting_join_dts': value.customer_waiting_join_dts,
169
177
  'queue_entries': value.queue_entries === undefined ? undefined : ((value.queue_entries as Array<any>).map(ConversationWebchatQueueStatusQueueEntryToJSON)),
@@ -37,6 +37,12 @@ export interface ConversationWebchatQueueStatusQueueEntry {
37
37
  * @memberof ConversationWebchatQueueStatusQueueEntry
38
38
  */
39
39
  conversation_webchat_queue_uuid?: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof ConversationWebchatQueueStatusQueueEntry
44
+ */
45
+ email?: string;
40
46
  /**
41
47
  * Date/time the customer joined the queue
42
48
  * @type {string}
@@ -64,6 +70,7 @@ export function ConversationWebchatQueueStatusQueueEntryFromJSONTyped(json: any,
64
70
  'conversation_participant_arn': !exists(json, 'conversation_participant_arn') ? undefined : json['conversation_participant_arn'],
65
71
  'conversation_participant_name': !exists(json, 'conversation_participant_name') ? undefined : json['conversation_participant_name'],
66
72
  'conversation_webchat_queue_uuid': !exists(json, 'conversation_webchat_queue_uuid') ? undefined : json['conversation_webchat_queue_uuid'],
73
+ 'email': !exists(json, 'email') ? undefined : json['email'],
67
74
  'join_dts': !exists(json, 'join_dts') ? undefined : json['join_dts'],
68
75
  'question': !exists(json, 'question') ? undefined : json['question'],
69
76
  };
@@ -81,6 +88,7 @@ export function ConversationWebchatQueueStatusQueueEntryToJSON(value?: Conversat
81
88
  'conversation_participant_arn': value.conversation_participant_arn,
82
89
  'conversation_participant_name': value.conversation_participant_name,
83
90
  'conversation_webchat_queue_uuid': value.conversation_webchat_queue_uuid,
91
+ 'email': value.email,
84
92
  'join_dts': value.join_dts,
85
93
  'question': value.question,
86
94
  };
@@ -19,6 +19,12 @@ import {
19
19
  ConversationEventQueuePositionFromJSONTyped,
20
20
  ConversationEventQueuePositionToJSON,
21
21
  } from './ConversationEventQueuePosition';
22
+ import {
23
+ ConversationEventRRWeb,
24
+ ConversationEventRRWebFromJSON,
25
+ ConversationEventRRWebFromJSONTyped,
26
+ ConversationEventRRWebToJSON,
27
+ } from './ConversationEventRRWeb';
22
28
  import {
23
29
  ConversationMessage,
24
30
  ConversationMessageFromJSON,
@@ -80,6 +86,12 @@ export interface ConversationWebsocketMessage {
80
86
  * @memberof ConversationWebsocketMessage
81
87
  */
82
88
  event_queue_status_update?: ConversationWebchatQueueStatus;
89
+ /**
90
+ *
91
+ * @type {ConversationEventRRWeb}
92
+ * @memberof ConversationWebsocketMessage
93
+ */
94
+ event_rrweb?: ConversationEventRRWeb;
83
95
  /**
84
96
  * Type of event
85
97
  * @type {string}
@@ -117,7 +129,8 @@ export const ConversationWebsocketMessageEventTypeEnum = {
117
129
  NewConversation: 'new conversation',
118
130
  NewMessage: 'new message',
119
131
  UpdatedMessage: 'updated message',
120
- QueueStatusUpdate: 'queue status update'
132
+ QueueStatusUpdate: 'queue status update',
133
+ Rrweb: 'rrweb'
121
134
  } as const;
122
135
  export type ConversationWebsocketMessageEventTypeEnum = typeof ConversationWebsocketMessageEventTypeEnum[keyof typeof ConversationWebsocketMessageEventTypeEnum];
123
136
 
@@ -127,7 +140,8 @@ export type ConversationWebsocketMessageEventTypeEnum = typeof ConversationWebso
127
140
  export const ConversationWebsocketMessageTypeEnum = {
128
141
  Message: 'message',
129
142
  Event: 'event',
130
- Ping: 'ping'
143
+ Ping: 'ping',
144
+ CheckQueuePosition: 'check queue position'
131
145
  } as const;
132
146
  export type ConversationWebsocketMessageTypeEnum = typeof ConversationWebsocketMessageTypeEnum[keyof typeof ConversationWebsocketMessageTypeEnum];
133
147
 
@@ -148,6 +162,7 @@ export function ConversationWebsocketMessageFromJSONTyped(json: any, ignoreDiscr
148
162
  'event_new_message': !exists(json, 'event_new_message') ? undefined : ConversationSummaryFromJSON(json['event_new_message']),
149
163
  'event_queue_position': !exists(json, 'event_queue_position') ? undefined : ConversationEventQueuePositionFromJSON(json['event_queue_position']),
150
164
  'event_queue_status_update': !exists(json, 'event_queue_status_update') ? undefined : ConversationWebchatQueueStatusFromJSON(json['event_queue_status_update']),
165
+ 'event_rrweb': !exists(json, 'event_rrweb') ? undefined : ConversationEventRRWebFromJSON(json['event_rrweb']),
151
166
  'event_type': !exists(json, 'event_type') ? undefined : json['event_type'],
152
167
  'event_updated_message': !exists(json, 'event_updated_message') ? undefined : ConversationMessageFromJSON(json['event_updated_message']),
153
168
  'message': !exists(json, 'message') ? undefined : ConversationMessageFromJSON(json['message']),
@@ -170,6 +185,7 @@ export function ConversationWebsocketMessageToJSON(value?: ConversationWebsocket
170
185
  'event_new_message': ConversationSummaryToJSON(value.event_new_message),
171
186
  'event_queue_position': ConversationEventQueuePositionToJSON(value.event_queue_position),
172
187
  'event_queue_status_update': ConversationWebchatQueueStatusToJSON(value.event_queue_status_update),
188
+ 'event_rrweb': ConversationEventRRWebToJSON(value.event_rrweb),
173
189
  'event_type': value.event_type,
174
190
  'event_updated_message': ConversationMessageToJSON(value.event_updated_message),
175
191
  'message': ConversationMessageToJSON(value.message),
@@ -121,6 +121,7 @@ export * from './Conversation';
121
121
  export * from './ConversationAgentAuth';
122
122
  export * from './ConversationAgentAuthResponse';
123
123
  export * from './ConversationEventQueuePosition';
124
+ export * from './ConversationEventRRWeb';
124
125
  export * from './ConversationMessage';
125
126
  export * from './ConversationMessageTransportStatus';
126
127
  export * from './ConversationMultimediaUploadUrl';
@@ -130,6 +131,7 @@ export * from './ConversationResponse';
130
131
  export * from './ConversationStartRequest';
131
132
  export * from './ConversationStartResponse';
132
133
  export * from './ConversationSummary';
134
+ export * from './ConversationTwilioAccount';
133
135
  export * from './ConversationWebchatQueueStatus';
134
136
  export * from './ConversationWebchatQueueStatusAgent';
135
137
  export * from './ConversationWebchatQueueStatusQueueEntry';