ultracart_rest_api_v2_typescript 4.0.43-RC → 4.0.46-RC
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +1 -0
- package/README.md +5 -2
- package/dist/models/ConversationAgentAuth.d.ts +3 -2
- package/dist/models/ConversationAgentAuth.js +3 -2
- package/dist/models/ConversationMessage.d.ts +12 -0
- package/dist/models/ConversationMessage.js +4 -0
- package/dist/models/ConversationSummary.d.ts +12 -0
- package/dist/models/ConversationSummary.js +4 -0
- package/dist/models/ConversationTwilioAccount.d.ts +33 -0
- package/dist/models/ConversationTwilioAccount.js +44 -0
- package/dist/models/ConversationWebchatQueueStatus.d.ts +24 -0
- package/dist/models/ConversationWebchatQueueStatus.js +8 -0
- package/dist/models/ConversationWebchatQueueStatusQueueEntry.d.ts +12 -0
- package/dist/models/ConversationWebchatQueueStatusQueueEntry.js +4 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/package.json +1 -1
- package/src/models/ConversationAgentAuth.ts +11 -4
- package/src/models/ConversationMessage.ts +16 -0
- package/src/models/ConversationSummary.ts +16 -0
- package/src/models/ConversationTwilioAccount.ts +64 -0
- package/src/models/ConversationWebchatQueueStatus.ts +32 -0
- package/src/models/ConversationWebchatQueueStatusQueueEntry.ts +16 -0
- package/src/models/index.ts +1 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -153,6 +153,7 @@ 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/ConversationTwilioAccount.ts
|
|
156
157
|
src/models/ConversationWebchatQueueStatus.ts
|
|
157
158
|
src/models/ConversationWebchatQueueStatusAgent.ts
|
|
158
159
|
src/models/ConversationWebchatQueueStatusQueueEntry.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## ultracart_rest_api_v2_typescript@4.0.
|
|
1
|
+
## ultracart_rest_api_v2_typescript@4.0.46-RC
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install ultracart_rest_api_v2_typescript@4.0.
|
|
39
|
+
npm install ultracart_rest_api_v2_typescript@4.0.46-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.46-RC | 07/29/2022 | conversation development |
|
|
58
|
+
| 4.0.45-RC | 07/28/2022 | conversation bug fixes |
|
|
59
|
+
| 4.0.44-RC | 07/28/2022 | conversation message upload keys property |
|
|
57
60
|
| 4.0.43-RC | 07/26/2022 | conversations - queue statistics |
|
|
58
61
|
| 4.0.42-RC | 07/25/2022 | conversation development |
|
|
59
62
|
| 4.0.41-RC | 07/25/2022 | conversations bug fixes |
|
|
@@ -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<
|
|
45
|
+
* @type {Array<ConversationTwilioAccount>}
|
|
45
46
|
* @memberof ConversationAgentAuth
|
|
46
47
|
*/
|
|
47
|
-
|
|
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
|
-
'
|
|
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
|
-
'
|
|
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
|
}
|
|
@@ -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
|
+
*
|
|
63
|
+
* @type {Array<string>}
|
|
64
|
+
* @memberof ConversationMessage
|
|
65
|
+
*/
|
|
66
|
+
upload_keys?: Array<string>;
|
|
55
67
|
}
|
|
56
68
|
export declare function ConversationMessageFromJSON(json: any): ConversationMessage;
|
|
57
69
|
export declare function ConversationMessageFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationMessage;
|
|
@@ -28,9 +28,11 @@ function ConversationMessageFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
28
28
|
'author_conversation_participant_arn': !(0, runtime_1.exists)(json, 'author_conversation_participant_arn') ? undefined : json['author_conversation_participant_arn'],
|
|
29
29
|
'author_conversation_participant_name': !(0, runtime_1.exists)(json, 'author_conversation_participant_name') ? undefined : json['author_conversation_participant_name'],
|
|
30
30
|
'body': !(0, runtime_1.exists)(json, 'body') ? undefined : json['body'],
|
|
31
|
+
'client_message_id': !(0, runtime_1.exists)(json, 'client_message_id') ? undefined : json['client_message_id'],
|
|
31
32
|
'media_urls': !(0, runtime_1.exists)(json, 'media_urls') ? undefined : json['media_urls'],
|
|
32
33
|
'message_dts': !(0, runtime_1.exists)(json, 'message_dts') ? undefined : json['message_dts'],
|
|
33
34
|
'transport_statuses': !(0, runtime_1.exists)(json, 'transport_statuses') ? undefined : (json['transport_statuses'].map(ConversationMessageTransportStatus_1.ConversationMessageTransportStatusFromJSON)),
|
|
35
|
+
'upload_keys': !(0, runtime_1.exists)(json, 'upload_keys') ? undefined : json['upload_keys'],
|
|
34
36
|
};
|
|
35
37
|
}
|
|
36
38
|
exports.ConversationMessageFromJSONTyped = ConversationMessageFromJSONTyped;
|
|
@@ -45,9 +47,11 @@ function ConversationMessageToJSON(value) {
|
|
|
45
47
|
'author_conversation_participant_arn': value.author_conversation_participant_arn,
|
|
46
48
|
'author_conversation_participant_name': value.author_conversation_participant_name,
|
|
47
49
|
'body': value.body,
|
|
50
|
+
'client_message_id': value.client_message_id,
|
|
48
51
|
'media_urls': value.media_urls,
|
|
49
52
|
'message_dts': value.message_dts,
|
|
50
53
|
'transport_statuses': value.transport_statuses === undefined ? undefined : (value.transport_statuses.map(ConversationMessageTransportStatus_1.ConversationMessageTransportStatusToJSON)),
|
|
54
|
+
'upload_keys': value.upload_keys,
|
|
51
55
|
};
|
|
52
56
|
}
|
|
53
57
|
exports.ConversationMessageToJSON = ConversationMessageToJSON;
|
|
@@ -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;
|
|
@@ -59,6 +59,30 @@ export interface ConversationWebchatQueueStatus {
|
|
|
59
59
|
* @memberof ConversationWebchatQueueStatus
|
|
60
60
|
*/
|
|
61
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;
|
|
62
86
|
/**
|
|
63
87
|
*
|
|
64
88
|
* @type {number}
|
|
@@ -33,6 +33,10 @@ function ConversationWebchatQueueStatusFromJSONTyped(json, ignoreDiscriminator)
|
|
|
33
33
|
'agents': !(0, runtime_1.exists)(json, 'agents') ? undefined : (json['agents'].map(ConversationWebchatQueueStatusAgent_1.ConversationWebchatQueueStatusAgentFromJSON)),
|
|
34
34
|
'customer_abandon_count': !(0, runtime_1.exists)(json, 'customer_abandon_count') ? undefined : json['customer_abandon_count'],
|
|
35
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'],
|
|
36
40
|
'customer_waiting_count': !(0, runtime_1.exists)(json, 'customer_waiting_count') ? undefined : json['customer_waiting_count'],
|
|
37
41
|
'customer_waiting_join_dts': !(0, runtime_1.exists)(json, 'customer_waiting_join_dts') ? undefined : json['customer_waiting_join_dts'],
|
|
38
42
|
'queue_entries': !(0, runtime_1.exists)(json, 'queue_entries') ? undefined : (json['queue_entries'].map(ConversationWebchatQueueStatusQueueEntry_1.ConversationWebchatQueueStatusQueueEntryFromJSON)),
|
|
@@ -55,6 +59,10 @@ function ConversationWebchatQueueStatusToJSON(value) {
|
|
|
55
59
|
'agents': value.agents === undefined ? undefined : (value.agents.map(ConversationWebchatQueueStatusAgent_1.ConversationWebchatQueueStatusAgentToJSON)),
|
|
56
60
|
'customer_abandon_count': value.customer_abandon_count,
|
|
57
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,
|
|
58
66
|
'customer_waiting_count': value.customer_waiting_count,
|
|
59
67
|
'customer_waiting_join_dts': value.customer_waiting_join_dts,
|
|
60
68
|
'queue_entries': value.queue_entries === undefined ? undefined : (value.queue_entries.map(ConversationWebchatQueueStatusQueueEntry_1.ConversationWebchatQueueStatusQueueEntryToJSON)),
|
|
@@ -33,12 +33,24 @@ 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}
|
|
39
45
|
* @memberof ConversationWebchatQueueStatusQueueEntry
|
|
40
46
|
*/
|
|
41
47
|
join_dts?: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof ConversationWebchatQueueStatusQueueEntry
|
|
52
|
+
*/
|
|
53
|
+
question?: string;
|
|
42
54
|
}
|
|
43
55
|
export declare function ConversationWebchatQueueStatusQueueEntryFromJSON(json: any): ConversationWebchatQueueStatusQueueEntry;
|
|
44
56
|
export declare function ConversationWebchatQueueStatusQueueEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationWebchatQueueStatusQueueEntry;
|
|
@@ -27,7 +27,9 @@ 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'],
|
|
32
|
+
'question': !(0, runtime_1.exists)(json, 'question') ? undefined : json['question'],
|
|
31
33
|
};
|
|
32
34
|
}
|
|
33
35
|
exports.ConversationWebchatQueueStatusQueueEntryFromJSONTyped = ConversationWebchatQueueStatusQueueEntryFromJSONTyped;
|
|
@@ -42,7 +44,9 @@ function ConversationWebchatQueueStatusQueueEntryToJSON(value) {
|
|
|
42
44
|
'conversation_participant_arn': value.conversation_participant_arn,
|
|
43
45
|
'conversation_participant_name': value.conversation_participant_name,
|
|
44
46
|
'conversation_webchat_queue_uuid': value.conversation_webchat_queue_uuid,
|
|
47
|
+
'email': value.email,
|
|
45
48
|
'join_dts': value.join_dts,
|
|
49
|
+
'question': value.question,
|
|
46
50
|
};
|
|
47
51
|
}
|
|
48
52
|
exports.ConversationWebchatQueueStatusQueueEntryToJSON = ConversationWebchatQueueStatusQueueEntryToJSON;
|
package/dist/models/index.d.ts
CHANGED
|
@@ -128,6 +128,7 @@ export * from './ConversationResponse';
|
|
|
128
128
|
export * from './ConversationStartRequest';
|
|
129
129
|
export * from './ConversationStartResponse';
|
|
130
130
|
export * from './ConversationSummary';
|
|
131
|
+
export * from './ConversationTwilioAccount';
|
|
131
132
|
export * from './ConversationWebchatQueueStatus';
|
|
132
133
|
export * from './ConversationWebchatQueueStatusAgent';
|
|
133
134
|
export * from './ConversationWebchatQueueStatusQueueEntry';
|
package/dist/models/index.js
CHANGED
|
@@ -146,6 +146,7 @@ __exportStar(require("./ConversationResponse"), exports);
|
|
|
146
146
|
__exportStar(require("./ConversationStartRequest"), exports);
|
|
147
147
|
__exportStar(require("./ConversationStartResponse"), exports);
|
|
148
148
|
__exportStar(require("./ConversationSummary"), exports);
|
|
149
|
+
__exportStar(require("./ConversationTwilioAccount"), exports);
|
|
149
150
|
__exportStar(require("./ConversationWebchatQueueStatus"), exports);
|
|
150
151
|
__exportStar(require("./ConversationWebchatQueueStatusAgent"), exports);
|
|
151
152
|
__exportStar(require("./ConversationWebchatQueueStatusQueueEntry"), exports);
|
package/package.json
CHANGED
|
@@ -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<
|
|
55
|
+
* @type {Array<ConversationTwilioAccount>}
|
|
49
56
|
* @memberof ConversationAgentAuth
|
|
50
57
|
*/
|
|
51
|
-
|
|
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
|
-
'
|
|
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
|
-
'
|
|
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
|
}
|
|
@@ -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
|
+
*
|
|
73
|
+
* @type {Array<string>}
|
|
74
|
+
* @memberof ConversationMessage
|
|
75
|
+
*/
|
|
76
|
+
upload_keys?: Array<string>;
|
|
65
77
|
}
|
|
66
78
|
|
|
67
79
|
export function ConversationMessageFromJSON(json: any): ConversationMessage {
|
|
@@ -77,9 +89,11 @@ export function ConversationMessageFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
77
89
|
'author_conversation_participant_arn': !exists(json, 'author_conversation_participant_arn') ? undefined : json['author_conversation_participant_arn'],
|
|
78
90
|
'author_conversation_participant_name': !exists(json, 'author_conversation_participant_name') ? undefined : json['author_conversation_participant_name'],
|
|
79
91
|
'body': !exists(json, 'body') ? undefined : json['body'],
|
|
92
|
+
'client_message_id': !exists(json, 'client_message_id') ? undefined : json['client_message_id'],
|
|
80
93
|
'media_urls': !exists(json, 'media_urls') ? undefined : json['media_urls'],
|
|
81
94
|
'message_dts': !exists(json, 'message_dts') ? undefined : json['message_dts'],
|
|
82
95
|
'transport_statuses': !exists(json, 'transport_statuses') ? undefined : ((json['transport_statuses'] as Array<any>).map(ConversationMessageTransportStatusFromJSON)),
|
|
96
|
+
'upload_keys': !exists(json, 'upload_keys') ? undefined : json['upload_keys'],
|
|
83
97
|
};
|
|
84
98
|
}
|
|
85
99
|
|
|
@@ -95,9 +109,11 @@ export function ConversationMessageToJSON(value?: ConversationMessage | null): a
|
|
|
95
109
|
'author_conversation_participant_arn': value.author_conversation_participant_arn,
|
|
96
110
|
'author_conversation_participant_name': value.author_conversation_participant_name,
|
|
97
111
|
'body': value.body,
|
|
112
|
+
'client_message_id': value.client_message_id,
|
|
98
113
|
'media_urls': value.media_urls,
|
|
99
114
|
'message_dts': value.message_dts,
|
|
100
115
|
'transport_statuses': value.transport_statuses === undefined ? undefined : ((value.transport_statuses as Array<any>).map(ConversationMessageTransportStatusToJSON)),
|
|
116
|
+
'upload_keys': value.upload_keys,
|
|
101
117
|
};
|
|
102
118
|
}
|
|
103
119
|
|
|
@@ -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
|
+
|
|
@@ -74,6 +74,30 @@ export interface ConversationWebchatQueueStatus {
|
|
|
74
74
|
* @memberof ConversationWebchatQueueStatus
|
|
75
75
|
*/
|
|
76
76
|
customer_active_count?: number;
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
* @type {number}
|
|
80
|
+
* @memberof ConversationWebchatQueueStatus
|
|
81
|
+
*/
|
|
82
|
+
customer_average_abandon_time_seconds?: number;
|
|
83
|
+
/**
|
|
84
|
+
*
|
|
85
|
+
* @type {number}
|
|
86
|
+
* @memberof ConversationWebchatQueueStatus
|
|
87
|
+
*/
|
|
88
|
+
customer_average_chat_time_seconds?: number;
|
|
89
|
+
/**
|
|
90
|
+
*
|
|
91
|
+
* @type {number}
|
|
92
|
+
* @memberof ConversationWebchatQueueStatus
|
|
93
|
+
*/
|
|
94
|
+
customer_average_hold_time_seconds?: number;
|
|
95
|
+
/**
|
|
96
|
+
*
|
|
97
|
+
* @type {number}
|
|
98
|
+
* @memberof ConversationWebchatQueueStatus
|
|
99
|
+
*/
|
|
100
|
+
customer_chat_count?: number;
|
|
77
101
|
/**
|
|
78
102
|
*
|
|
79
103
|
* @type {number}
|
|
@@ -117,6 +141,10 @@ export function ConversationWebchatQueueStatusFromJSONTyped(json: any, ignoreDis
|
|
|
117
141
|
'agents': !exists(json, 'agents') ? undefined : ((json['agents'] as Array<any>).map(ConversationWebchatQueueStatusAgentFromJSON)),
|
|
118
142
|
'customer_abandon_count': !exists(json, 'customer_abandon_count') ? undefined : json['customer_abandon_count'],
|
|
119
143
|
'customer_active_count': !exists(json, 'customer_active_count') ? undefined : json['customer_active_count'],
|
|
144
|
+
'customer_average_abandon_time_seconds': !exists(json, 'customer_average_abandon_time_seconds') ? undefined : json['customer_average_abandon_time_seconds'],
|
|
145
|
+
'customer_average_chat_time_seconds': !exists(json, 'customer_average_chat_time_seconds') ? undefined : json['customer_average_chat_time_seconds'],
|
|
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'],
|
|
120
148
|
'customer_waiting_count': !exists(json, 'customer_waiting_count') ? undefined : json['customer_waiting_count'],
|
|
121
149
|
'customer_waiting_join_dts': !exists(json, 'customer_waiting_join_dts') ? undefined : json['customer_waiting_join_dts'],
|
|
122
150
|
'queue_entries': !exists(json, 'queue_entries') ? undefined : ((json['queue_entries'] as Array<any>).map(ConversationWebchatQueueStatusQueueEntryFromJSON)),
|
|
@@ -140,6 +168,10 @@ export function ConversationWebchatQueueStatusToJSON(value?: ConversationWebchat
|
|
|
140
168
|
'agents': value.agents === undefined ? undefined : ((value.agents as Array<any>).map(ConversationWebchatQueueStatusAgentToJSON)),
|
|
141
169
|
'customer_abandon_count': value.customer_abandon_count,
|
|
142
170
|
'customer_active_count': value.customer_active_count,
|
|
171
|
+
'customer_average_abandon_time_seconds': value.customer_average_abandon_time_seconds,
|
|
172
|
+
'customer_average_chat_time_seconds': value.customer_average_chat_time_seconds,
|
|
173
|
+
'customer_average_hold_time_seconds': value.customer_average_hold_time_seconds,
|
|
174
|
+
'customer_chat_count': value.customer_chat_count,
|
|
143
175
|
'customer_waiting_count': value.customer_waiting_count,
|
|
144
176
|
'customer_waiting_join_dts': value.customer_waiting_join_dts,
|
|
145
177
|
'queue_entries': value.queue_entries === undefined ? undefined : ((value.queue_entries as Array<any>).map(ConversationWebchatQueueStatusQueueEntryToJSON)),
|
|
@@ -37,12 +37,24 @@ 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}
|
|
43
49
|
* @memberof ConversationWebchatQueueStatusQueueEntry
|
|
44
50
|
*/
|
|
45
51
|
join_dts?: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof ConversationWebchatQueueStatusQueueEntry
|
|
56
|
+
*/
|
|
57
|
+
question?: string;
|
|
46
58
|
}
|
|
47
59
|
|
|
48
60
|
export function ConversationWebchatQueueStatusQueueEntryFromJSON(json: any): ConversationWebchatQueueStatusQueueEntry {
|
|
@@ -58,7 +70,9 @@ export function ConversationWebchatQueueStatusQueueEntryFromJSONTyped(json: any,
|
|
|
58
70
|
'conversation_participant_arn': !exists(json, 'conversation_participant_arn') ? undefined : json['conversation_participant_arn'],
|
|
59
71
|
'conversation_participant_name': !exists(json, 'conversation_participant_name') ? undefined : json['conversation_participant_name'],
|
|
60
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'],
|
|
61
74
|
'join_dts': !exists(json, 'join_dts') ? undefined : json['join_dts'],
|
|
75
|
+
'question': !exists(json, 'question') ? undefined : json['question'],
|
|
62
76
|
};
|
|
63
77
|
}
|
|
64
78
|
|
|
@@ -74,7 +88,9 @@ export function ConversationWebchatQueueStatusQueueEntryToJSON(value?: Conversat
|
|
|
74
88
|
'conversation_participant_arn': value.conversation_participant_arn,
|
|
75
89
|
'conversation_participant_name': value.conversation_participant_name,
|
|
76
90
|
'conversation_webchat_queue_uuid': value.conversation_webchat_queue_uuid,
|
|
91
|
+
'email': value.email,
|
|
77
92
|
'join_dts': value.join_dts,
|
|
93
|
+
'question': value.question,
|
|
78
94
|
};
|
|
79
95
|
}
|
|
80
96
|
|
package/src/models/index.ts
CHANGED
|
@@ -130,6 +130,7 @@ export * from './ConversationResponse';
|
|
|
130
130
|
export * from './ConversationStartRequest';
|
|
131
131
|
export * from './ConversationStartResponse';
|
|
132
132
|
export * from './ConversationSummary';
|
|
133
|
+
export * from './ConversationTwilioAccount';
|
|
133
134
|
export * from './ConversationWebchatQueueStatus';
|
|
134
135
|
export * from './ConversationWebchatQueueStatusAgent';
|
|
135
136
|
export * from './ConversationWebchatQueueStatusQueueEntry';
|