ultracart_rest_api_v2_typescript 4.1.132 → 4.1.134
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -2
- package/dist/models/ConversationPbxAgent.d.ts +12 -0
- package/dist/models/ConversationPbxAgent.js +4 -0
- package/dist/models/ConversationPbxMenuMapping.d.ts +7 -0
- package/dist/models/ConversationPbxMenuMapping.js +4 -1
- package/dist/models/Order.d.ts +1 -1
- package/dist/models/OrderPayment.d.ts +1 -1
- package/package.json +1 -1
- package/src/models/ConversationPbxAgent.ts +16 -0
- package/src/models/ConversationPbxMenuMapping.ts +10 -1
- package/src/models/Order.ts +1 -1
- package/src/models/OrderPayment.ts +1 -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.134
|
|
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.134 --save
|
|
10
10
|
```
|
|
11
11
|
|
|
12
12
|
```typescript
|
|
@@ -85,6 +85,8 @@ Not every change is committed to every SDK.
|
|
|
85
85
|
|
|
86
86
|
| Version | Date | Comments |
|
|
87
87
|
| --: | :-: | --- |
|
|
88
|
+
| 4.1.134 | 08/21/2026 | conversation - pbx menu mapping for send text |
|
|
89
|
+
| 4.1.133 | 08/20/2026 | conversations - pbx agent setting for creating tickets in zoho desk for outgoing calls |
|
|
88
90
|
| 4.1.132 | 08/18/2026 | customer activity bug fix |
|
|
89
91
|
| 4.1.131 | 08/18/2026 | customer activity now returns the SF communications active flag and last_activity_dts |
|
|
90
92
|
| 4.1.130 | 08/17/2026 | order api - new method to obtain customer activity similar to the customer endpoint for a profile |
|
|
@@ -141,6 +141,18 @@ export interface ConversationPbxAgent {
|
|
|
141
141
|
* @memberof ConversationPbxAgent
|
|
142
142
|
*/
|
|
143
143
|
voicemail?: boolean;
|
|
144
|
+
/**
|
|
145
|
+
* Zoho Desk department ID to create outbound-call tickets in for this agent
|
|
146
|
+
* @type {string}
|
|
147
|
+
* @memberof ConversationPbxAgent
|
|
148
|
+
*/
|
|
149
|
+
zoho_desk_outbound_department_id?: string;
|
|
150
|
+
/**
|
|
151
|
+
* If true, a Zoho Desk ticket is automatically created for outbound calls placed by this agent
|
|
152
|
+
* @type {boolean}
|
|
153
|
+
* @memberof ConversationPbxAgent
|
|
154
|
+
*/
|
|
155
|
+
zoho_desk_outbound_ticket_enabled?: boolean;
|
|
144
156
|
}
|
|
145
157
|
/**
|
|
146
158
|
* @export
|
|
@@ -68,6 +68,8 @@ function ConversationPbxAgentFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
68
68
|
'unavailable_say_voice': !(0, runtime_1.exists)(json, 'unavailable_say_voice') ? undefined : json['unavailable_say_voice'],
|
|
69
69
|
'user_id': !(0, runtime_1.exists)(json, 'user_id') ? undefined : json['user_id'],
|
|
70
70
|
'voicemail': !(0, runtime_1.exists)(json, 'voicemail') ? undefined : json['voicemail'],
|
|
71
|
+
'zoho_desk_outbound_department_id': !(0, runtime_1.exists)(json, 'zoho_desk_outbound_department_id') ? undefined : json['zoho_desk_outbound_department_id'],
|
|
72
|
+
'zoho_desk_outbound_ticket_enabled': !(0, runtime_1.exists)(json, 'zoho_desk_outbound_ticket_enabled') ? undefined : json['zoho_desk_outbound_ticket_enabled'],
|
|
71
73
|
};
|
|
72
74
|
}
|
|
73
75
|
exports.ConversationPbxAgentFromJSONTyped = ConversationPbxAgentFromJSONTyped;
|
|
@@ -100,6 +102,8 @@ function ConversationPbxAgentToJSON(value) {
|
|
|
100
102
|
'unavailable_say_voice': value.unavailable_say_voice,
|
|
101
103
|
'user_id': value.user_id,
|
|
102
104
|
'voicemail': value.voicemail,
|
|
105
|
+
'zoho_desk_outbound_department_id': value.zoho_desk_outbound_department_id,
|
|
106
|
+
'zoho_desk_outbound_ticket_enabled': value.zoho_desk_outbound_ticket_enabled,
|
|
103
107
|
};
|
|
104
108
|
}
|
|
105
109
|
exports.ConversationPbxAgentToJSON = ConversationPbxAgentToJSON;
|
|
@@ -39,6 +39,12 @@ export interface ConversationPbxMenuMapping {
|
|
|
39
39
|
* @memberof ConversationPbxMenuMapping
|
|
40
40
|
*/
|
|
41
41
|
speech?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Text message body sent to the caller when the action is 'send text'. Ignored for all other actions.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof ConversationPbxMenuMapping
|
|
46
|
+
*/
|
|
47
|
+
text_message?: string;
|
|
42
48
|
}
|
|
43
49
|
/**
|
|
44
50
|
* @export
|
|
@@ -49,6 +55,7 @@ export declare const ConversationPbxMenuMappingActionEnum: {
|
|
|
49
55
|
readonly Queue: "queue";
|
|
50
56
|
readonly Voicemail: "voicemail";
|
|
51
57
|
readonly Agent: "agent";
|
|
58
|
+
readonly SendText: "send text";
|
|
52
59
|
};
|
|
53
60
|
export type ConversationPbxMenuMappingActionEnum = typeof ConversationPbxMenuMappingActionEnum[keyof typeof ConversationPbxMenuMappingActionEnum];
|
|
54
61
|
/**
|
|
@@ -23,7 +23,8 @@ exports.ConversationPbxMenuMappingActionEnum = {
|
|
|
23
23
|
Menu: 'menu',
|
|
24
24
|
Queue: 'queue',
|
|
25
25
|
Voicemail: 'voicemail',
|
|
26
|
-
Agent: 'agent'
|
|
26
|
+
Agent: 'agent',
|
|
27
|
+
SendText: 'send text'
|
|
27
28
|
};
|
|
28
29
|
/**
|
|
29
30
|
* Check if a given object implements the ConversationPbxMenuMapping interface.
|
|
@@ -46,6 +47,7 @@ function ConversationPbxMenuMappingFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
46
47
|
'action_target': !(0, runtime_1.exists)(json, 'action_target') ? undefined : json['action_target'],
|
|
47
48
|
'digits': !(0, runtime_1.exists)(json, 'digits') ? undefined : json['digits'],
|
|
48
49
|
'speech': !(0, runtime_1.exists)(json, 'speech') ? undefined : json['speech'],
|
|
50
|
+
'text_message': !(0, runtime_1.exists)(json, 'text_message') ? undefined : json['text_message'],
|
|
49
51
|
};
|
|
50
52
|
}
|
|
51
53
|
exports.ConversationPbxMenuMappingFromJSONTyped = ConversationPbxMenuMappingFromJSONTyped;
|
|
@@ -61,6 +63,7 @@ function ConversationPbxMenuMappingToJSON(value) {
|
|
|
61
63
|
'action_target': value.action_target,
|
|
62
64
|
'digits': value.digits,
|
|
63
65
|
'speech': value.speech,
|
|
66
|
+
'text_message': value.text_message,
|
|
64
67
|
};
|
|
65
68
|
}
|
|
66
69
|
exports.ConversationPbxMenuMappingToJSON = ConversationPbxMenuMappingToJSON;
|
package/dist/models/Order.d.ts
CHANGED
|
@@ -213,7 +213,7 @@ export interface Order {
|
|
|
213
213
|
*/
|
|
214
214
|
point_of_sale?: OrderPointOfSale;
|
|
215
215
|
/**
|
|
216
|
-
* Properties
|
|
216
|
+
* Properties associated with the order
|
|
217
217
|
* @type {Array<OrderProperty>}
|
|
218
218
|
* @memberof Order
|
|
219
219
|
*/
|
|
@@ -139,7 +139,7 @@ export interface OrderPayment {
|
|
|
139
139
|
*/
|
|
140
140
|
test_order?: boolean;
|
|
141
141
|
/**
|
|
142
|
-
* Transactions associated with processing this payment
|
|
142
|
+
* Transactions associated with processing this payment. Accepted on insert to carry the payment history of an order captured outside the system.
|
|
143
143
|
* @type {Array<OrderPaymentTransaction>}
|
|
144
144
|
* @memberof OrderPayment
|
|
145
145
|
*/
|
package/package.json
CHANGED
|
@@ -145,6 +145,18 @@ export interface ConversationPbxAgent {
|
|
|
145
145
|
* @memberof ConversationPbxAgent
|
|
146
146
|
*/
|
|
147
147
|
voicemail?: boolean;
|
|
148
|
+
/**
|
|
149
|
+
* Zoho Desk department ID to create outbound-call tickets in for this agent
|
|
150
|
+
* @type {string}
|
|
151
|
+
* @memberof ConversationPbxAgent
|
|
152
|
+
*/
|
|
153
|
+
zoho_desk_outbound_department_id?: string;
|
|
154
|
+
/**
|
|
155
|
+
* If true, a Zoho Desk ticket is automatically created for outbound calls placed by this agent
|
|
156
|
+
* @type {boolean}
|
|
157
|
+
* @memberof ConversationPbxAgent
|
|
158
|
+
*/
|
|
159
|
+
zoho_desk_outbound_ticket_enabled?: boolean;
|
|
148
160
|
}
|
|
149
161
|
|
|
150
162
|
|
|
@@ -209,6 +221,8 @@ export function ConversationPbxAgentFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
209
221
|
'unavailable_say_voice': !exists(json, 'unavailable_say_voice') ? undefined : json['unavailable_say_voice'],
|
|
210
222
|
'user_id': !exists(json, 'user_id') ? undefined : json['user_id'],
|
|
211
223
|
'voicemail': !exists(json, 'voicemail') ? undefined : json['voicemail'],
|
|
224
|
+
'zoho_desk_outbound_department_id': !exists(json, 'zoho_desk_outbound_department_id') ? undefined : json['zoho_desk_outbound_department_id'],
|
|
225
|
+
'zoho_desk_outbound_ticket_enabled': !exists(json, 'zoho_desk_outbound_ticket_enabled') ? undefined : json['zoho_desk_outbound_ticket_enabled'],
|
|
212
226
|
};
|
|
213
227
|
}
|
|
214
228
|
|
|
@@ -242,6 +256,8 @@ export function ConversationPbxAgentToJSON(value?: ConversationPbxAgent | null):
|
|
|
242
256
|
'unavailable_say_voice': value.unavailable_say_voice,
|
|
243
257
|
'user_id': value.user_id,
|
|
244
258
|
'voicemail': value.voicemail,
|
|
259
|
+
'zoho_desk_outbound_department_id': value.zoho_desk_outbound_department_id,
|
|
260
|
+
'zoho_desk_outbound_ticket_enabled': value.zoho_desk_outbound_ticket_enabled,
|
|
245
261
|
};
|
|
246
262
|
}
|
|
247
263
|
|
|
@@ -43,6 +43,12 @@ export interface ConversationPbxMenuMapping {
|
|
|
43
43
|
* @memberof ConversationPbxMenuMapping
|
|
44
44
|
*/
|
|
45
45
|
speech?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Text message body sent to the caller when the action is 'send text'. Ignored for all other actions.
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof ConversationPbxMenuMapping
|
|
50
|
+
*/
|
|
51
|
+
text_message?: string;
|
|
46
52
|
}
|
|
47
53
|
|
|
48
54
|
|
|
@@ -55,7 +61,8 @@ export const ConversationPbxMenuMappingActionEnum = {
|
|
|
55
61
|
Menu: 'menu',
|
|
56
62
|
Queue: 'queue',
|
|
57
63
|
Voicemail: 'voicemail',
|
|
58
|
-
Agent: 'agent'
|
|
64
|
+
Agent: 'agent',
|
|
65
|
+
SendText: 'send text'
|
|
59
66
|
} as const;
|
|
60
67
|
export type ConversationPbxMenuMappingActionEnum = typeof ConversationPbxMenuMappingActionEnum[keyof typeof ConversationPbxMenuMappingActionEnum];
|
|
61
68
|
|
|
@@ -83,6 +90,7 @@ export function ConversationPbxMenuMappingFromJSONTyped(json: any, ignoreDiscrim
|
|
|
83
90
|
'action_target': !exists(json, 'action_target') ? undefined : json['action_target'],
|
|
84
91
|
'digits': !exists(json, 'digits') ? undefined : json['digits'],
|
|
85
92
|
'speech': !exists(json, 'speech') ? undefined : json['speech'],
|
|
93
|
+
'text_message': !exists(json, 'text_message') ? undefined : json['text_message'],
|
|
86
94
|
};
|
|
87
95
|
}
|
|
88
96
|
|
|
@@ -99,6 +107,7 @@ export function ConversationPbxMenuMappingToJSON(value?: ConversationPbxMenuMapp
|
|
|
99
107
|
'action_target': value.action_target,
|
|
100
108
|
'digits': value.digits,
|
|
101
109
|
'speech': value.speech,
|
|
110
|
+
'text_message': value.text_message,
|
|
102
111
|
};
|
|
103
112
|
}
|
|
104
113
|
|
package/src/models/Order.ts
CHANGED
|
@@ -363,7 +363,7 @@ export interface Order {
|
|
|
363
363
|
*/
|
|
364
364
|
point_of_sale?: OrderPointOfSale;
|
|
365
365
|
/**
|
|
366
|
-
* Properties
|
|
366
|
+
* Properties associated with the order
|
|
367
367
|
* @type {Array<OrderProperty>}
|
|
368
368
|
* @memberof Order
|
|
369
369
|
*/
|
|
@@ -189,7 +189,7 @@ export interface OrderPayment {
|
|
|
189
189
|
*/
|
|
190
190
|
test_order?: boolean;
|
|
191
191
|
/**
|
|
192
|
-
* Transactions associated with processing this payment
|
|
192
|
+
* Transactions associated with processing this payment. Accepted on insert to carry the payment history of an order captured outside the system.
|
|
193
193
|
* @type {Array<OrderPaymentTransaction>}
|
|
194
194
|
* @memberof OrderPayment
|
|
195
195
|
*/
|