ultracart_rest_api_v2_typescript 4.1.49 → 4.1.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -2
- package/dist/models/ConversationPbxAgent.d.ts +27 -6
- package/dist/models/ConversationPbxAgent.js +15 -3
- package/dist/models/ConversationPbxHardwarePhone.d.ts +25 -1
- package/dist/models/ConversationPbxHardwarePhone.js +8 -0
- package/package.json +1 -1
- package/src/models/ConversationPbxAgent.ts +35 -8
- package/src/models/ConversationPbxHardwarePhone.ts +33 -1
package/README.md
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
# UltraCart Typescript SDK
|
|
2
|
-
## ultracart_rest_api_v2_typescript@4.1.
|
|
2
|
+
## ultracart_rest_api_v2_typescript@4.1.50
|
|
3
3
|
|
|
4
4
|
Every API method call has a sample for every language SDK. See https://github.com/UltraCart/sdk_samples
|
|
5
5
|
|
|
6
6
|
Installation
|
|
7
7
|
|
|
8
8
|
```
|
|
9
|
-
npm install ultracart_rest_api_v2_typescript@4.1.
|
|
9
|
+
npm install ultracart_rest_api_v2_typescript@4.1.50 --save
|
|
10
10
|
```
|
|
11
11
|
|
|
12
12
|
```typescript
|
|
@@ -85,6 +85,7 @@ Not every change is committed to every SDK.
|
|
|
85
85
|
|
|
86
86
|
| Version | Date | Comments |
|
|
87
87
|
| --: | :-: | --- |
|
|
88
|
+
| 4.1.50 | 01/27/2026 | conversations - refinements to support hardware phones |
|
|
88
89
|
| 4.1.49 | 01/26/2026 | no changes - testing changes to build automation |
|
|
89
90
|
| 4.1.48 | 01/26/2026 | conversation - hardware phone methods and objects |
|
|
90
91
|
| 4.1.47 | 01/26/2026 | conversation - agent auth object chat admin/user properties |
|
|
@@ -21,6 +21,12 @@ export interface ConversationPbxAgent {
|
|
|
21
21
|
* @memberof ConversationPbxAgent
|
|
22
22
|
*/
|
|
23
23
|
ai?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* The call routing preference
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ConversationPbxAgent
|
|
28
|
+
*/
|
|
29
|
+
call_routing_preference?: ConversationPbxAgentCallRoutingPreferenceEnum;
|
|
24
30
|
/**
|
|
25
31
|
* Cellphone number of agent in E.164 format
|
|
26
32
|
* @type {string}
|
|
@@ -39,18 +45,18 @@ export interface ConversationPbxAgent {
|
|
|
39
45
|
* @memberof ConversationPbxAgent
|
|
40
46
|
*/
|
|
41
47
|
extension?: number;
|
|
42
|
-
/**
|
|
43
|
-
* True if calls to this agent should be forwarded to their cellphone
|
|
44
|
-
* @type {boolean}
|
|
45
|
-
* @memberof ConversationPbxAgent
|
|
46
|
-
*/
|
|
47
|
-
forward_calls_to_cellphone?: boolean;
|
|
48
48
|
/**
|
|
49
49
|
* Full name
|
|
50
50
|
* @type {string}
|
|
51
51
|
* @memberof ConversationPbxAgent
|
|
52
52
|
*/
|
|
53
53
|
full_name?: string;
|
|
54
|
+
/**
|
|
55
|
+
* Array of hardware phones UUIDs associated with this agent
|
|
56
|
+
* @type {Array<string>}
|
|
57
|
+
* @memberof ConversationPbxAgent
|
|
58
|
+
*/
|
|
59
|
+
hardware_phone_uuids?: Array<string>;
|
|
54
60
|
/**
|
|
55
61
|
* Agent login
|
|
56
62
|
* @type {string}
|
|
@@ -69,6 +75,12 @@ export interface ConversationPbxAgent {
|
|
|
69
75
|
* @memberof ConversationPbxAgent
|
|
70
76
|
*/
|
|
71
77
|
personal_conversation_pbx_voicemail_mailbox_uuid?: string;
|
|
78
|
+
/**
|
|
79
|
+
* The hardware phone that will be dialed on an incoming call if routing preference is hardware_phone
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof ConversationPbxAgent
|
|
82
|
+
*/
|
|
83
|
+
preferred_hardware_phone_uuid?: string;
|
|
72
84
|
/**
|
|
73
85
|
* True if outgoing calls should be automatically recorded
|
|
74
86
|
* @type {boolean}
|
|
@@ -118,6 +130,15 @@ export interface ConversationPbxAgent {
|
|
|
118
130
|
*/
|
|
119
131
|
voicemail?: boolean;
|
|
120
132
|
}
|
|
133
|
+
/**
|
|
134
|
+
* @export
|
|
135
|
+
*/
|
|
136
|
+
export declare const ConversationPbxAgentCallRoutingPreferenceEnum: {
|
|
137
|
+
readonly Softphone: "softphone";
|
|
138
|
+
readonly HardwarePhone: "hardware_phone";
|
|
139
|
+
readonly Cellphone: "cellphone";
|
|
140
|
+
};
|
|
141
|
+
export type ConversationPbxAgentCallRoutingPreferenceEnum = typeof ConversationPbxAgentCallRoutingPreferenceEnum[keyof typeof ConversationPbxAgentCallRoutingPreferenceEnum];
|
|
121
142
|
/**
|
|
122
143
|
* Check if a given object implements the ConversationPbxAgent interface.
|
|
123
144
|
*/
|
|
@@ -13,8 +13,16 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.ConversationPbxAgentToJSON = exports.ConversationPbxAgentFromJSONTyped = exports.ConversationPbxAgentFromJSON = exports.instanceOfConversationPbxAgent = void 0;
|
|
16
|
+
exports.ConversationPbxAgentToJSON = exports.ConversationPbxAgentFromJSONTyped = exports.ConversationPbxAgentFromJSON = exports.instanceOfConversationPbxAgent = exports.ConversationPbxAgentCallRoutingPreferenceEnum = void 0;
|
|
17
17
|
var runtime_1 = require("../runtime");
|
|
18
|
+
/**
|
|
19
|
+
* @export
|
|
20
|
+
*/
|
|
21
|
+
exports.ConversationPbxAgentCallRoutingPreferenceEnum = {
|
|
22
|
+
Softphone: 'softphone',
|
|
23
|
+
HardwarePhone: 'hardware_phone',
|
|
24
|
+
Cellphone: 'cellphone'
|
|
25
|
+
};
|
|
18
26
|
/**
|
|
19
27
|
* Check if a given object implements the ConversationPbxAgent interface.
|
|
20
28
|
*/
|
|
@@ -33,14 +41,16 @@ function ConversationPbxAgentFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
33
41
|
}
|
|
34
42
|
return {
|
|
35
43
|
'ai': !(0, runtime_1.exists)(json, 'ai') ? undefined : json['ai'],
|
|
44
|
+
'call_routing_preference': !(0, runtime_1.exists)(json, 'call_routing_preference') ? undefined : json['call_routing_preference'],
|
|
36
45
|
'cellphone': !(0, runtime_1.exists)(json, 'cellphone') ? undefined : json['cellphone'],
|
|
37
46
|
'conversation_pbx_agent_uuid': !(0, runtime_1.exists)(json, 'conversation_pbx_agent_uuid') ? undefined : json['conversation_pbx_agent_uuid'],
|
|
38
47
|
'extension': !(0, runtime_1.exists)(json, 'extension') ? undefined : json['extension'],
|
|
39
|
-
'forward_calls_to_cellphone': !(0, runtime_1.exists)(json, 'forward_calls_to_cellphone') ? undefined : json['forward_calls_to_cellphone'],
|
|
40
48
|
'full_name': !(0, runtime_1.exists)(json, 'full_name') ? undefined : json['full_name'],
|
|
49
|
+
'hardware_phone_uuids': !(0, runtime_1.exists)(json, 'hardware_phone_uuids') ? undefined : json['hardware_phone_uuids'],
|
|
41
50
|
'login': !(0, runtime_1.exists)(json, 'login') ? undefined : json['login'],
|
|
42
51
|
'merchant_id': !(0, runtime_1.exists)(json, 'merchant_id') ? undefined : json['merchant_id'],
|
|
43
52
|
'personal_conversation_pbx_voicemail_mailbox_uuid': !(0, runtime_1.exists)(json, 'personal_conversation_pbx_voicemail_mailbox_uuid') ? undefined : json['personal_conversation_pbx_voicemail_mailbox_uuid'],
|
|
53
|
+
'preferred_hardware_phone_uuid': !(0, runtime_1.exists)(json, 'preferred_hardware_phone_uuid') ? undefined : json['preferred_hardware_phone_uuid'],
|
|
44
54
|
'record_outgoing_automatically': !(0, runtime_1.exists)(json, 'record_outgoing_automatically') ? undefined : json['record_outgoing_automatically'],
|
|
45
55
|
'shared_conversation_pbx_voicemail_mailbox_uuid': !(0, runtime_1.exists)(json, 'shared_conversation_pbx_voicemail_mailbox_uuid') ? undefined : json['shared_conversation_pbx_voicemail_mailbox_uuid'],
|
|
46
56
|
'twilio_taskrouter_worker_id': !(0, runtime_1.exists)(json, 'twilio_taskrouter_worker_id') ? undefined : json['twilio_taskrouter_worker_id'],
|
|
@@ -61,14 +71,16 @@ function ConversationPbxAgentToJSON(value) {
|
|
|
61
71
|
}
|
|
62
72
|
return {
|
|
63
73
|
'ai': value.ai,
|
|
74
|
+
'call_routing_preference': value.call_routing_preference,
|
|
64
75
|
'cellphone': value.cellphone,
|
|
65
76
|
'conversation_pbx_agent_uuid': value.conversation_pbx_agent_uuid,
|
|
66
77
|
'extension': value.extension,
|
|
67
|
-
'forward_calls_to_cellphone': value.forward_calls_to_cellphone,
|
|
68
78
|
'full_name': value.full_name,
|
|
79
|
+
'hardware_phone_uuids': value.hardware_phone_uuids,
|
|
69
80
|
'login': value.login,
|
|
70
81
|
'merchant_id': value.merchant_id,
|
|
71
82
|
'personal_conversation_pbx_voicemail_mailbox_uuid': value.personal_conversation_pbx_voicemail_mailbox_uuid,
|
|
83
|
+
'preferred_hardware_phone_uuid': value.preferred_hardware_phone_uuid,
|
|
72
84
|
'record_outgoing_automatically': value.record_outgoing_automatically,
|
|
73
85
|
'shared_conversation_pbx_voicemail_mailbox_uuid': value.shared_conversation_pbx_voicemail_mailbox_uuid,
|
|
74
86
|
'twilio_taskrouter_worker_id': value.twilio_taskrouter_worker_id,
|
|
@@ -15,6 +15,18 @@
|
|
|
15
15
|
* @interface ConversationPbxHardwarePhone
|
|
16
16
|
*/
|
|
17
17
|
export interface ConversationPbxHardwarePhone {
|
|
18
|
+
/**
|
|
19
|
+
* Admin Username
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ConversationPbxHardwarePhone
|
|
22
|
+
*/
|
|
23
|
+
admin_username?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Associated Agent UUID
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ConversationPbxHardwarePhone
|
|
28
|
+
*/
|
|
29
|
+
conversation_pbx_agent_uuid?: string;
|
|
18
30
|
/**
|
|
19
31
|
* Conversation Pbx Hardware Phone UUID
|
|
20
32
|
* @type {string}
|
|
@@ -76,7 +88,13 @@ export interface ConversationPbxHardwarePhone {
|
|
|
76
88
|
*/
|
|
77
89
|
sip_domain?: string;
|
|
78
90
|
/**
|
|
79
|
-
* SIP
|
|
91
|
+
* SIP Edge Location
|
|
92
|
+
* @type {string}
|
|
93
|
+
* @memberof ConversationPbxHardwarePhone
|
|
94
|
+
*/
|
|
95
|
+
sip_edge_location?: string;
|
|
96
|
+
/**
|
|
97
|
+
* SIP Password (only on create or regenerate password requests)
|
|
80
98
|
* @type {string}
|
|
81
99
|
* @memberof ConversationPbxHardwarePhone
|
|
82
100
|
*/
|
|
@@ -87,6 +105,12 @@ export interface ConversationPbxHardwarePhone {
|
|
|
87
105
|
* @memberof ConversationPbxHardwarePhone
|
|
88
106
|
*/
|
|
89
107
|
sip_username?: string;
|
|
108
|
+
/**
|
|
109
|
+
* Twilio Credential SID
|
|
110
|
+
* @type {string}
|
|
111
|
+
* @memberof ConversationPbxHardwarePhone
|
|
112
|
+
*/
|
|
113
|
+
twilio_credential_sid?: string;
|
|
90
114
|
/**
|
|
91
115
|
* Updated At
|
|
92
116
|
* @type {object}
|
|
@@ -32,6 +32,8 @@ function ConversationPbxHardwarePhoneFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
32
32
|
return json;
|
|
33
33
|
}
|
|
34
34
|
return {
|
|
35
|
+
'admin_username': !(0, runtime_1.exists)(json, 'admin_username') ? undefined : json['admin_username'],
|
|
36
|
+
'conversation_pbx_agent_uuid': !(0, runtime_1.exists)(json, 'conversation_pbx_agent_uuid') ? undefined : json['conversation_pbx_agent_uuid'],
|
|
35
37
|
'conversation_pbx_hardware_phone_uuid': !(0, runtime_1.exists)(json, 'conversation_pbx_hardware_phone_uuid') ? undefined : json['conversation_pbx_hardware_phone_uuid'],
|
|
36
38
|
'created_at': !(0, runtime_1.exists)(json, 'created_at') ? undefined : json['created_at'],
|
|
37
39
|
'description': !(0, runtime_1.exists)(json, 'description') ? undefined : json['description'],
|
|
@@ -42,8 +44,10 @@ function ConversationPbxHardwarePhoneFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
42
44
|
'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
|
|
43
45
|
'provisioning_url': !(0, runtime_1.exists)(json, 'provisioning_url') ? undefined : json['provisioning_url'],
|
|
44
46
|
'sip_domain': !(0, runtime_1.exists)(json, 'sip_domain') ? undefined : json['sip_domain'],
|
|
47
|
+
'sip_edge_location': !(0, runtime_1.exists)(json, 'sip_edge_location') ? undefined : json['sip_edge_location'],
|
|
45
48
|
'sip_password': !(0, runtime_1.exists)(json, 'sip_password') ? undefined : json['sip_password'],
|
|
46
49
|
'sip_username': !(0, runtime_1.exists)(json, 'sip_username') ? undefined : json['sip_username'],
|
|
50
|
+
'twilio_credential_sid': !(0, runtime_1.exists)(json, 'twilio_credential_sid') ? undefined : json['twilio_credential_sid'],
|
|
47
51
|
'updated_at': !(0, runtime_1.exists)(json, 'updated_at') ? undefined : json['updated_at'],
|
|
48
52
|
};
|
|
49
53
|
}
|
|
@@ -56,6 +60,8 @@ function ConversationPbxHardwarePhoneToJSON(value) {
|
|
|
56
60
|
return null;
|
|
57
61
|
}
|
|
58
62
|
return {
|
|
63
|
+
'admin_username': value.admin_username,
|
|
64
|
+
'conversation_pbx_agent_uuid': value.conversation_pbx_agent_uuid,
|
|
59
65
|
'conversation_pbx_hardware_phone_uuid': value.conversation_pbx_hardware_phone_uuid,
|
|
60
66
|
'created_at': value.created_at,
|
|
61
67
|
'description': value.description,
|
|
@@ -66,8 +72,10 @@ function ConversationPbxHardwarePhoneToJSON(value) {
|
|
|
66
72
|
'name': value.name,
|
|
67
73
|
'provisioning_url': value.provisioning_url,
|
|
68
74
|
'sip_domain': value.sip_domain,
|
|
75
|
+
'sip_edge_location': value.sip_edge_location,
|
|
69
76
|
'sip_password': value.sip_password,
|
|
70
77
|
'sip_username': value.sip_username,
|
|
78
|
+
'twilio_credential_sid': value.twilio_credential_sid,
|
|
71
79
|
'updated_at': value.updated_at,
|
|
72
80
|
};
|
|
73
81
|
}
|
package/package.json
CHANGED
|
@@ -25,6 +25,12 @@ export interface ConversationPbxAgent {
|
|
|
25
25
|
* @memberof ConversationPbxAgent
|
|
26
26
|
*/
|
|
27
27
|
ai?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* The call routing preference
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ConversationPbxAgent
|
|
32
|
+
*/
|
|
33
|
+
call_routing_preference?: ConversationPbxAgentCallRoutingPreferenceEnum;
|
|
28
34
|
/**
|
|
29
35
|
* Cellphone number of agent in E.164 format
|
|
30
36
|
* @type {string}
|
|
@@ -43,18 +49,18 @@ export interface ConversationPbxAgent {
|
|
|
43
49
|
* @memberof ConversationPbxAgent
|
|
44
50
|
*/
|
|
45
51
|
extension?: number;
|
|
46
|
-
/**
|
|
47
|
-
* True if calls to this agent should be forwarded to their cellphone
|
|
48
|
-
* @type {boolean}
|
|
49
|
-
* @memberof ConversationPbxAgent
|
|
50
|
-
*/
|
|
51
|
-
forward_calls_to_cellphone?: boolean;
|
|
52
52
|
/**
|
|
53
53
|
* Full name
|
|
54
54
|
* @type {string}
|
|
55
55
|
* @memberof ConversationPbxAgent
|
|
56
56
|
*/
|
|
57
57
|
full_name?: string;
|
|
58
|
+
/**
|
|
59
|
+
* Array of hardware phones UUIDs associated with this agent
|
|
60
|
+
* @type {Array<string>}
|
|
61
|
+
* @memberof ConversationPbxAgent
|
|
62
|
+
*/
|
|
63
|
+
hardware_phone_uuids?: Array<string>;
|
|
58
64
|
/**
|
|
59
65
|
* Agent login
|
|
60
66
|
* @type {string}
|
|
@@ -73,6 +79,12 @@ export interface ConversationPbxAgent {
|
|
|
73
79
|
* @memberof ConversationPbxAgent
|
|
74
80
|
*/
|
|
75
81
|
personal_conversation_pbx_voicemail_mailbox_uuid?: string;
|
|
82
|
+
/**
|
|
83
|
+
* The hardware phone that will be dialed on an incoming call if routing preference is hardware_phone
|
|
84
|
+
* @type {string}
|
|
85
|
+
* @memberof ConversationPbxAgent
|
|
86
|
+
*/
|
|
87
|
+
preferred_hardware_phone_uuid?: string;
|
|
76
88
|
/**
|
|
77
89
|
* True if outgoing calls should be automatically recorded
|
|
78
90
|
* @type {boolean}
|
|
@@ -125,6 +137,17 @@ export interface ConversationPbxAgent {
|
|
|
125
137
|
|
|
126
138
|
|
|
127
139
|
|
|
140
|
+
/**
|
|
141
|
+
* @export
|
|
142
|
+
*/
|
|
143
|
+
export const ConversationPbxAgentCallRoutingPreferenceEnum = {
|
|
144
|
+
Softphone: 'softphone',
|
|
145
|
+
HardwarePhone: 'hardware_phone',
|
|
146
|
+
Cellphone: 'cellphone'
|
|
147
|
+
} as const;
|
|
148
|
+
export type ConversationPbxAgentCallRoutingPreferenceEnum = typeof ConversationPbxAgentCallRoutingPreferenceEnum[keyof typeof ConversationPbxAgentCallRoutingPreferenceEnum];
|
|
149
|
+
|
|
150
|
+
|
|
128
151
|
/**
|
|
129
152
|
* Check if a given object implements the ConversationPbxAgent interface.
|
|
130
153
|
*/
|
|
@@ -145,14 +168,16 @@ export function ConversationPbxAgentFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
145
168
|
return {
|
|
146
169
|
|
|
147
170
|
'ai': !exists(json, 'ai') ? undefined : json['ai'],
|
|
171
|
+
'call_routing_preference': !exists(json, 'call_routing_preference') ? undefined : json['call_routing_preference'],
|
|
148
172
|
'cellphone': !exists(json, 'cellphone') ? undefined : json['cellphone'],
|
|
149
173
|
'conversation_pbx_agent_uuid': !exists(json, 'conversation_pbx_agent_uuid') ? undefined : json['conversation_pbx_agent_uuid'],
|
|
150
174
|
'extension': !exists(json, 'extension') ? undefined : json['extension'],
|
|
151
|
-
'forward_calls_to_cellphone': !exists(json, 'forward_calls_to_cellphone') ? undefined : json['forward_calls_to_cellphone'],
|
|
152
175
|
'full_name': !exists(json, 'full_name') ? undefined : json['full_name'],
|
|
176
|
+
'hardware_phone_uuids': !exists(json, 'hardware_phone_uuids') ? undefined : json['hardware_phone_uuids'],
|
|
153
177
|
'login': !exists(json, 'login') ? undefined : json['login'],
|
|
154
178
|
'merchant_id': !exists(json, 'merchant_id') ? undefined : json['merchant_id'],
|
|
155
179
|
'personal_conversation_pbx_voicemail_mailbox_uuid': !exists(json, 'personal_conversation_pbx_voicemail_mailbox_uuid') ? undefined : json['personal_conversation_pbx_voicemail_mailbox_uuid'],
|
|
180
|
+
'preferred_hardware_phone_uuid': !exists(json, 'preferred_hardware_phone_uuid') ? undefined : json['preferred_hardware_phone_uuid'],
|
|
156
181
|
'record_outgoing_automatically': !exists(json, 'record_outgoing_automatically') ? undefined : json['record_outgoing_automatically'],
|
|
157
182
|
'shared_conversation_pbx_voicemail_mailbox_uuid': !exists(json, 'shared_conversation_pbx_voicemail_mailbox_uuid') ? undefined : json['shared_conversation_pbx_voicemail_mailbox_uuid'],
|
|
158
183
|
'twilio_taskrouter_worker_id': !exists(json, 'twilio_taskrouter_worker_id') ? undefined : json['twilio_taskrouter_worker_id'],
|
|
@@ -174,14 +199,16 @@ export function ConversationPbxAgentToJSON(value?: ConversationPbxAgent | null):
|
|
|
174
199
|
return {
|
|
175
200
|
|
|
176
201
|
'ai': value.ai,
|
|
202
|
+
'call_routing_preference': value.call_routing_preference,
|
|
177
203
|
'cellphone': value.cellphone,
|
|
178
204
|
'conversation_pbx_agent_uuid': value.conversation_pbx_agent_uuid,
|
|
179
205
|
'extension': value.extension,
|
|
180
|
-
'forward_calls_to_cellphone': value.forward_calls_to_cellphone,
|
|
181
206
|
'full_name': value.full_name,
|
|
207
|
+
'hardware_phone_uuids': value.hardware_phone_uuids,
|
|
182
208
|
'login': value.login,
|
|
183
209
|
'merchant_id': value.merchant_id,
|
|
184
210
|
'personal_conversation_pbx_voicemail_mailbox_uuid': value.personal_conversation_pbx_voicemail_mailbox_uuid,
|
|
211
|
+
'preferred_hardware_phone_uuid': value.preferred_hardware_phone_uuid,
|
|
185
212
|
'record_outgoing_automatically': value.record_outgoing_automatically,
|
|
186
213
|
'shared_conversation_pbx_voicemail_mailbox_uuid': value.shared_conversation_pbx_voicemail_mailbox_uuid,
|
|
187
214
|
'twilio_taskrouter_worker_id': value.twilio_taskrouter_worker_id,
|
|
@@ -19,6 +19,18 @@ import { exists, mapValues } from '../runtime';
|
|
|
19
19
|
* @interface ConversationPbxHardwarePhone
|
|
20
20
|
*/
|
|
21
21
|
export interface ConversationPbxHardwarePhone {
|
|
22
|
+
/**
|
|
23
|
+
* Admin Username
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ConversationPbxHardwarePhone
|
|
26
|
+
*/
|
|
27
|
+
admin_username?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Associated Agent UUID
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ConversationPbxHardwarePhone
|
|
32
|
+
*/
|
|
33
|
+
conversation_pbx_agent_uuid?: string;
|
|
22
34
|
/**
|
|
23
35
|
* Conversation Pbx Hardware Phone UUID
|
|
24
36
|
* @type {string}
|
|
@@ -80,7 +92,13 @@ export interface ConversationPbxHardwarePhone {
|
|
|
80
92
|
*/
|
|
81
93
|
sip_domain?: string;
|
|
82
94
|
/**
|
|
83
|
-
* SIP
|
|
95
|
+
* SIP Edge Location
|
|
96
|
+
* @type {string}
|
|
97
|
+
* @memberof ConversationPbxHardwarePhone
|
|
98
|
+
*/
|
|
99
|
+
sip_edge_location?: string;
|
|
100
|
+
/**
|
|
101
|
+
* SIP Password (only on create or regenerate password requests)
|
|
84
102
|
* @type {string}
|
|
85
103
|
* @memberof ConversationPbxHardwarePhone
|
|
86
104
|
*/
|
|
@@ -91,6 +109,12 @@ export interface ConversationPbxHardwarePhone {
|
|
|
91
109
|
* @memberof ConversationPbxHardwarePhone
|
|
92
110
|
*/
|
|
93
111
|
sip_username?: string;
|
|
112
|
+
/**
|
|
113
|
+
* Twilio Credential SID
|
|
114
|
+
* @type {string}
|
|
115
|
+
* @memberof ConversationPbxHardwarePhone
|
|
116
|
+
*/
|
|
117
|
+
twilio_credential_sid?: string;
|
|
94
118
|
/**
|
|
95
119
|
* Updated At
|
|
96
120
|
* @type {object}
|
|
@@ -120,6 +144,8 @@ export function ConversationPbxHardwarePhoneFromJSONTyped(json: any, ignoreDiscr
|
|
|
120
144
|
}
|
|
121
145
|
return {
|
|
122
146
|
|
|
147
|
+
'admin_username': !exists(json, 'admin_username') ? undefined : json['admin_username'],
|
|
148
|
+
'conversation_pbx_agent_uuid': !exists(json, 'conversation_pbx_agent_uuid') ? undefined : json['conversation_pbx_agent_uuid'],
|
|
123
149
|
'conversation_pbx_hardware_phone_uuid': !exists(json, 'conversation_pbx_hardware_phone_uuid') ? undefined : json['conversation_pbx_hardware_phone_uuid'],
|
|
124
150
|
'created_at': !exists(json, 'created_at') ? undefined : json['created_at'],
|
|
125
151
|
'description': !exists(json, 'description') ? undefined : json['description'],
|
|
@@ -130,8 +156,10 @@ export function ConversationPbxHardwarePhoneFromJSONTyped(json: any, ignoreDiscr
|
|
|
130
156
|
'name': !exists(json, 'name') ? undefined : json['name'],
|
|
131
157
|
'provisioning_url': !exists(json, 'provisioning_url') ? undefined : json['provisioning_url'],
|
|
132
158
|
'sip_domain': !exists(json, 'sip_domain') ? undefined : json['sip_domain'],
|
|
159
|
+
'sip_edge_location': !exists(json, 'sip_edge_location') ? undefined : json['sip_edge_location'],
|
|
133
160
|
'sip_password': !exists(json, 'sip_password') ? undefined : json['sip_password'],
|
|
134
161
|
'sip_username': !exists(json, 'sip_username') ? undefined : json['sip_username'],
|
|
162
|
+
'twilio_credential_sid': !exists(json, 'twilio_credential_sid') ? undefined : json['twilio_credential_sid'],
|
|
135
163
|
'updated_at': !exists(json, 'updated_at') ? undefined : json['updated_at'],
|
|
136
164
|
};
|
|
137
165
|
}
|
|
@@ -145,6 +173,8 @@ export function ConversationPbxHardwarePhoneToJSON(value?: ConversationPbxHardwa
|
|
|
145
173
|
}
|
|
146
174
|
return {
|
|
147
175
|
|
|
176
|
+
'admin_username': value.admin_username,
|
|
177
|
+
'conversation_pbx_agent_uuid': value.conversation_pbx_agent_uuid,
|
|
148
178
|
'conversation_pbx_hardware_phone_uuid': value.conversation_pbx_hardware_phone_uuid,
|
|
149
179
|
'created_at': value.created_at,
|
|
150
180
|
'description': value.description,
|
|
@@ -155,8 +185,10 @@ export function ConversationPbxHardwarePhoneToJSON(value?: ConversationPbxHardwa
|
|
|
155
185
|
'name': value.name,
|
|
156
186
|
'provisioning_url': value.provisioning_url,
|
|
157
187
|
'sip_domain': value.sip_domain,
|
|
188
|
+
'sip_edge_location': value.sip_edge_location,
|
|
158
189
|
'sip_password': value.sip_password,
|
|
159
190
|
'sip_username': value.sip_username,
|
|
191
|
+
'twilio_credential_sid': value.twilio_credential_sid,
|
|
160
192
|
'updated_at': value.updated_at,
|
|
161
193
|
};
|
|
162
194
|
}
|