ultracart_rest_api_v2_typescript 4.1.51 → 4.1.55
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 +19 -0
- package/README.md +6 -2
- package/dist/apis/ConversationApi.d.ts +61 -1
- package/dist/apis/ConversationApi.js +129 -0
- package/dist/models/ConversationPbxAgent.d.ts +6 -0
- package/dist/models/ConversationPbxAgent.js +2 -0
- package/dist/models/ConversationPbxCall.d.ts +166 -0
- package/dist/models/ConversationPbxCall.js +101 -0
- package/dist/models/ConversationPbxCallAgent.d.ts +79 -0
- package/dist/models/ConversationPbxCallAgent.js +66 -0
- package/dist/models/ConversationPbxCallAiCost.d.ts +49 -0
- package/dist/models/ConversationPbxCallAiCost.js +56 -0
- package/dist/models/ConversationPbxCallAiEngagement.d.ts +96 -0
- package/dist/models/ConversationPbxCallAiEngagement.js +78 -0
- package/dist/models/ConversationPbxCallAiToolCall.d.ts +79 -0
- package/dist/models/ConversationPbxCallAiToolCall.js +66 -0
- package/dist/models/ConversationPbxCallAiWhisper.d.ts +49 -0
- package/dist/models/ConversationPbxCallAiWhisper.js +56 -0
- package/dist/models/ConversationPbxCallCaller.d.ts +55 -0
- package/dist/models/ConversationPbxCallCaller.js +58 -0
- package/dist/models/ConversationPbxCallFinancial.d.ts +67 -0
- package/dist/models/ConversationPbxCallFinancial.js +62 -0
- package/dist/models/ConversationPbxCallHold.d.ts +49 -0
- package/dist/models/ConversationPbxCallHold.js +56 -0
- package/dist/models/ConversationPbxCallQueue.d.ts +61 -0
- package/dist/models/ConversationPbxCallQueue.js +60 -0
- package/dist/models/ConversationPbxCallRecording.d.ts +68 -0
- package/dist/models/ConversationPbxCallRecording.js +63 -0
- package/dist/models/ConversationPbxCallResponse.d.ts +59 -0
- package/dist/models/ConversationPbxCallResponse.js +62 -0
- package/dist/models/ConversationPbxCallRouting.d.ts +44 -0
- package/dist/models/ConversationPbxCallRouting.js +55 -0
- package/dist/models/ConversationPbxCallSearchRequest.d.ts +121 -0
- package/dist/models/ConversationPbxCallSearchRequest.js +80 -0
- package/dist/models/ConversationPbxCallSearchResponse.d.ts +59 -0
- package/dist/models/ConversationPbxCallSearchResponse.js +62 -0
- package/dist/models/ConversationPbxCallTimeline.d.ts +61 -0
- package/dist/models/ConversationPbxCallTimeline.js +60 -0
- package/dist/models/ConversationPbxCallTranscript.d.ts +68 -0
- package/dist/models/ConversationPbxCallTranscript.js +63 -0
- package/dist/models/ConversationPbxCallTranscriptSegment.d.ts +75 -0
- package/dist/models/ConversationPbxCallTranscriptSegment.js +69 -0
- package/dist/models/ConversationPbxCallTransfer.d.ts +55 -0
- package/dist/models/ConversationPbxCallTransfer.js +58 -0
- package/dist/models/ConversationPbxPhoneNumber.d.ts +6 -0
- package/dist/models/ConversationPbxPhoneNumber.js +2 -0
- package/dist/models/index.d.ts +19 -0
- package/dist/models/index.js +19 -0
- package/package.json +1 -1
- package/src/apis/ConversationApi.ts +152 -0
- package/src/models/ConversationPbxAgent.ts +8 -0
- package/src/models/ConversationPbxCall.ts +290 -0
- package/src/models/ConversationPbxCallAgent.ts +131 -0
- package/src/models/ConversationPbxCallAiCost.ts +91 -0
- package/src/models/ConversationPbxCallAiEngagement.ts +168 -0
- package/src/models/ConversationPbxCallAiToolCall.ts +131 -0
- package/src/models/ConversationPbxCallAiWhisper.ts +91 -0
- package/src/models/ConversationPbxCallCaller.ts +99 -0
- package/src/models/ConversationPbxCallFinancial.ts +115 -0
- package/src/models/ConversationPbxCallHold.ts +91 -0
- package/src/models/ConversationPbxCallQueue.ts +107 -0
- package/src/models/ConversationPbxCallRecording.ts +122 -0
- package/src/models/ConversationPbxCallResponse.ts +124 -0
- package/src/models/ConversationPbxCallRouting.ts +90 -0
- package/src/models/ConversationPbxCallSearchRequest.ts +187 -0
- package/src/models/ConversationPbxCallSearchResponse.ts +124 -0
- package/src/models/ConversationPbxCallTimeline.ts +107 -0
- package/src/models/ConversationPbxCallTranscript.ts +122 -0
- package/src/models/ConversationPbxCallTranscriptSegment.ts +125 -0
- package/src/models/ConversationPbxCallTransfer.ts +99 -0
- package/src/models/ConversationPbxPhoneNumber.ts +8 -0
- package/src/models/index.ts +19 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -219,6 +219,25 @@ src/models/ConversationPbxAudioUsageResponse.ts
|
|
|
219
219
|
src/models/ConversationPbxAudiosResponse.ts
|
|
220
220
|
src/models/ConversationPbxAvailablePhoneNumber.ts
|
|
221
221
|
src/models/ConversationPbxAvailablePhoneNumbersResponse.ts
|
|
222
|
+
src/models/ConversationPbxCall.ts
|
|
223
|
+
src/models/ConversationPbxCallAgent.ts
|
|
224
|
+
src/models/ConversationPbxCallAiCost.ts
|
|
225
|
+
src/models/ConversationPbxCallAiEngagement.ts
|
|
226
|
+
src/models/ConversationPbxCallAiToolCall.ts
|
|
227
|
+
src/models/ConversationPbxCallAiWhisper.ts
|
|
228
|
+
src/models/ConversationPbxCallCaller.ts
|
|
229
|
+
src/models/ConversationPbxCallFinancial.ts
|
|
230
|
+
src/models/ConversationPbxCallHold.ts
|
|
231
|
+
src/models/ConversationPbxCallQueue.ts
|
|
232
|
+
src/models/ConversationPbxCallRecording.ts
|
|
233
|
+
src/models/ConversationPbxCallResponse.ts
|
|
234
|
+
src/models/ConversationPbxCallRouting.ts
|
|
235
|
+
src/models/ConversationPbxCallSearchRequest.ts
|
|
236
|
+
src/models/ConversationPbxCallSearchResponse.ts
|
|
237
|
+
src/models/ConversationPbxCallTimeline.ts
|
|
238
|
+
src/models/ConversationPbxCallTranscript.ts
|
|
239
|
+
src/models/ConversationPbxCallTranscriptSegment.ts
|
|
240
|
+
src/models/ConversationPbxCallTransfer.ts
|
|
222
241
|
src/models/ConversationPbxCustomerSnapshotRequest.ts
|
|
223
242
|
src/models/ConversationPbxCustomerSnapshotResponse.ts
|
|
224
243
|
src/models/ConversationPbxHardwarePhone.ts
|
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.55
|
|
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.55 --save
|
|
10
10
|
```
|
|
11
11
|
|
|
12
12
|
```typescript
|
|
@@ -85,6 +85,10 @@ Not every change is committed to every SDK.
|
|
|
85
85
|
|
|
86
86
|
| Version | Date | Comments |
|
|
87
87
|
| --: | :-: | --- |
|
|
88
|
+
| 4.1.55 | 02/02/2026 | conversations - add enumerated values for say voice on queue and agent |
|
|
89
|
+
| 4.1.54 | 02/02/2026 | build error fix |
|
|
90
|
+
| 4.1.53 | 02/02/2026 | conversations default pricing phone number settings |
|
|
91
|
+
| 4.1.52 | 01/31/2026 | conversation - pbx call log objects |
|
|
88
92
|
| 4.1.51 | 01/30/2026 | conversations queue setting for automatic AI coaching |
|
|
89
93
|
| 4.1.50 | 01/27/2026 | conversations - refinements to support hardware phones |
|
|
90
94
|
| 4.1.49 | 01/26/2026 | no changes - testing changes to build automation |
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import { ConversationAgentAuthResponse, ConversationAgentProfile, ConversationAgentProfileResponse, ConversationAgentProfilesResponse, ConversationAutocompleteRequest, ConversationAutocompleteResponse, ConversationCannedMessage, ConversationCannedMessageResponse, ConversationCannedMessagesResponse, ConversationCannedMessagesSearch, ConversationDeleteKnowledgeBaseDocumentResponse, ConversationDepartment, ConversationDepartmentMembersResponse, ConversationDepartmentResponse, ConversationDepartmentsResponse, ConversationEngagement, ConversationEngagementResponse, ConversationEngagementsResponse, ConversationInsertKnowledgeBaseDocumentRequest, ConversationInsertKnowledgeBaseDocumentResponse, ConversationJoinRequest, ConversationKnowledgeBaseDocumentUploadUrlResponse, ConversationKnowledgeBaseDocumentsResponse, ConversationLocationsResponse, ConversationMcpServer, ConversationMcpServerResponse, ConversationMcpServerToolsResponse, ConversationMcpServersResponse, ConversationMessagesResponse, ConversationMultimediaUploadUrlResponse, ConversationPbxAddress, ConversationPbxAddressResponse, ConversationPbxAddressesResponse, ConversationPbxAgent, ConversationPbxAgentResponse, ConversationPbxAgentsResponse, ConversationPbxAudio, ConversationPbxAudioResponse, ConversationPbxAudioUploadUrlResponse, ConversationPbxAudioUsageResponse, ConversationPbxAudiosResponse, ConversationPbxAvailablePhoneNumbersResponse, ConversationPbxCustomerSnapshotRequest, ConversationPbxCustomerSnapshotResponse, ConversationPbxHardwarePhone, ConversationPbxHardwarePhoneResponse, ConversationPbxHardwarePhonesResponse, ConversationPbxMenu, ConversationPbxMenuResponse, ConversationPbxMenusResponse, ConversationPbxPhoneManufacturersResponse, ConversationPbxPhoneNumber, ConversationPbxPhoneNumberPurchaseRequest, ConversationPbxPhoneNumberResponse, ConversationPbxPhoneNumbersResponse, ConversationPbxQueue, ConversationPbxQueueResponse, ConversationPbxQueuesResponse, ConversationPbxTimeBased, ConversationPbxTimeBasedResponse, ConversationPbxTimeBasedsResponse, ConversationPbxTimeRange, ConversationPbxTimeRangeResponse, ConversationPbxTimeRangesResponse, ConversationPbxVoicemailMailbox, ConversationPbxVoicemailMailboxResponse, ConversationPbxVoicemailMailboxesResponse, ConversationPbxVoicemailMessageResponse, ConversationPbxVoicemailMessageSummariesResponse, ConversationPermissionsResponse, ConversationResponse, ConversationSearchRequest, ConversationSearchResponse, ConversationStartRequest, ConversationStartResponse, ConversationVirtualAgentBudget, ConversationVirtualAgentBudgetResponse, ConversationVirtualAgentCapabilities, ConversationVirtualAgentCapabilitiesResponse, ConversationWebchatContext, ConversationWebchatQueueStatusUpdateRequest, ConversationWebchatQueueStatusesResponse, ConversationsResponse } from '../models';
|
|
13
|
+
import { ConversationAgentAuthResponse, ConversationAgentProfile, ConversationAgentProfileResponse, ConversationAgentProfilesResponse, ConversationAutocompleteRequest, ConversationAutocompleteResponse, ConversationCannedMessage, ConversationCannedMessageResponse, ConversationCannedMessagesResponse, ConversationCannedMessagesSearch, ConversationDeleteKnowledgeBaseDocumentResponse, ConversationDepartment, ConversationDepartmentMembersResponse, ConversationDepartmentResponse, ConversationDepartmentsResponse, ConversationEngagement, ConversationEngagementResponse, ConversationEngagementsResponse, ConversationInsertKnowledgeBaseDocumentRequest, ConversationInsertKnowledgeBaseDocumentResponse, ConversationJoinRequest, ConversationKnowledgeBaseDocumentUploadUrlResponse, ConversationKnowledgeBaseDocumentsResponse, ConversationLocationsResponse, ConversationMcpServer, ConversationMcpServerResponse, ConversationMcpServerToolsResponse, ConversationMcpServersResponse, ConversationMessagesResponse, ConversationMultimediaUploadUrlResponse, ConversationPbxAddress, ConversationPbxAddressResponse, ConversationPbxAddressesResponse, ConversationPbxAgent, ConversationPbxAgentResponse, ConversationPbxAgentsResponse, ConversationPbxAudio, ConversationPbxAudioResponse, ConversationPbxAudioUploadUrlResponse, ConversationPbxAudioUsageResponse, ConversationPbxAudiosResponse, ConversationPbxAvailablePhoneNumbersResponse, ConversationPbxCallResponse, ConversationPbxCallSearchRequest, ConversationPbxCallSearchResponse, ConversationPbxCustomerSnapshotRequest, ConversationPbxCustomerSnapshotResponse, ConversationPbxHardwarePhone, ConversationPbxHardwarePhoneResponse, ConversationPbxHardwarePhonesResponse, ConversationPbxMenu, ConversationPbxMenuResponse, ConversationPbxMenusResponse, ConversationPbxPhoneManufacturersResponse, ConversationPbxPhoneNumber, ConversationPbxPhoneNumberPurchaseRequest, ConversationPbxPhoneNumberResponse, ConversationPbxPhoneNumbersResponse, ConversationPbxQueue, ConversationPbxQueueResponse, ConversationPbxQueuesResponse, ConversationPbxTimeBased, ConversationPbxTimeBasedResponse, ConversationPbxTimeBasedsResponse, ConversationPbxTimeRange, ConversationPbxTimeRangeResponse, ConversationPbxTimeRangesResponse, ConversationPbxVoicemailMailbox, ConversationPbxVoicemailMailboxResponse, ConversationPbxVoicemailMailboxesResponse, ConversationPbxVoicemailMessageResponse, ConversationPbxVoicemailMessageSummariesResponse, ConversationPermissionsResponse, ConversationResponse, ConversationSearchRequest, ConversationSearchResponse, ConversationStartRequest, ConversationStartResponse, ConversationVirtualAgentBudget, ConversationVirtualAgentBudgetResponse, ConversationVirtualAgentCapabilities, ConversationVirtualAgentCapabilitiesResponse, ConversationWebchatContext, ConversationWebchatQueueStatusUpdateRequest, ConversationWebchatQueueStatusesResponse, ConversationsResponse } from '../models';
|
|
14
14
|
export interface DeleteAgentProfileKnowledgeBaseDocumentRequest {
|
|
15
15
|
userId: number;
|
|
16
16
|
documentUuid: string;
|
|
@@ -131,6 +131,9 @@ export interface GetPbxAudioRequest {
|
|
|
131
131
|
export interface GetPbxAudioUsageRequest {
|
|
132
132
|
conversationPbxAudioUuid: string;
|
|
133
133
|
}
|
|
134
|
+
export interface GetPbxCallRequest {
|
|
135
|
+
callUuid: string;
|
|
136
|
+
}
|
|
134
137
|
export interface GetPbxHardwarePhoneRequest {
|
|
135
138
|
conversationPbxHardwarePhoneUuid: string;
|
|
136
139
|
}
|
|
@@ -242,6 +245,12 @@ export interface SearchPbxAvailablePhoneNumbersRequest {
|
|
|
242
245
|
type?: string;
|
|
243
246
|
limit?: number;
|
|
244
247
|
}
|
|
248
|
+
export interface SearchPbxCallsRequest {
|
|
249
|
+
searchRequest: ConversationPbxCallSearchRequest;
|
|
250
|
+
limit?: number;
|
|
251
|
+
offset?: number;
|
|
252
|
+
sort?: string;
|
|
253
|
+
}
|
|
245
254
|
export interface SmsUnsubscribeConversationRequest {
|
|
246
255
|
conversationUuid: string;
|
|
247
256
|
}
|
|
@@ -1036,6 +1045,20 @@ export interface ConversationApiInterface {
|
|
|
1036
1045
|
* Get pbx audios
|
|
1037
1046
|
*/
|
|
1038
1047
|
getPbxAudios(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationPbxAudiosResponse>;
|
|
1048
|
+
/**
|
|
1049
|
+
* Retrieve a single PBX call record with full details
|
|
1050
|
+
* @summary Get pbx call record
|
|
1051
|
+
* @param {string} callUuid
|
|
1052
|
+
* @param {*} [options] Override http request option.
|
|
1053
|
+
* @throws {RequiredError}
|
|
1054
|
+
* @memberof ConversationApiInterface
|
|
1055
|
+
*/
|
|
1056
|
+
getPbxCallRaw(requestParameters: GetPbxCallRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConversationPbxCallResponse>>;
|
|
1057
|
+
/**
|
|
1058
|
+
* Retrieve a single PBX call record with full details
|
|
1059
|
+
* Get pbx call record
|
|
1060
|
+
*/
|
|
1061
|
+
getPbxCall(requestParameters: GetPbxCallRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationPbxCallResponse>;
|
|
1039
1062
|
/**
|
|
1040
1063
|
* Retrieve a pbx hardware phone
|
|
1041
1064
|
* @summary Get pbx hardware phone
|
|
@@ -1640,6 +1663,23 @@ export interface ConversationApiInterface {
|
|
|
1640
1663
|
* Search for available phone numbers
|
|
1641
1664
|
*/
|
|
1642
1665
|
searchPbxAvailablePhoneNumbers(requestParameters: SearchPbxAvailablePhoneNumbersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationPbxAvailablePhoneNumbersResponse>;
|
|
1666
|
+
/**
|
|
1667
|
+
* Search and list PBX call records with filtering, sorting, and pagination
|
|
1668
|
+
* @summary Search pbx call records
|
|
1669
|
+
* @param {ConversationPbxCallSearchRequest} searchRequest Search Request
|
|
1670
|
+
* @param {number} [limit] The maximum number of records to return on this one API call. (Maximum 200)
|
|
1671
|
+
* @param {number} [offset] Pagination of the record set. Offset is a zero based index.
|
|
1672
|
+
* @param {string} [sort] The sort order of the calls.
|
|
1673
|
+
* @param {*} [options] Override http request option.
|
|
1674
|
+
* @throws {RequiredError}
|
|
1675
|
+
* @memberof ConversationApiInterface
|
|
1676
|
+
*/
|
|
1677
|
+
searchPbxCallsRaw(requestParameters: SearchPbxCallsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConversationPbxCallSearchResponse>>;
|
|
1678
|
+
/**
|
|
1679
|
+
* Search and list PBX call records with filtering, sorting, and pagination
|
|
1680
|
+
* Search pbx call records
|
|
1681
|
+
*/
|
|
1682
|
+
searchPbxCalls(requestParameters: SearchPbxCallsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationPbxCallSearchResponse>;
|
|
1643
1683
|
/**
|
|
1644
1684
|
* Unsubscribe any SMS participants in this conversation
|
|
1645
1685
|
* @summary Unsubscribe any SMS participants in this conversation
|
|
@@ -2451,6 +2491,16 @@ export declare class ConversationApi extends runtime.BaseAPI implements Conversa
|
|
|
2451
2491
|
* Get pbx audios
|
|
2452
2492
|
*/
|
|
2453
2493
|
getPbxAudios(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationPbxAudiosResponse>;
|
|
2494
|
+
/**
|
|
2495
|
+
* Retrieve a single PBX call record with full details
|
|
2496
|
+
* Get pbx call record
|
|
2497
|
+
*/
|
|
2498
|
+
getPbxCallRaw(requestParameters: GetPbxCallRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConversationPbxCallResponse>>;
|
|
2499
|
+
/**
|
|
2500
|
+
* Retrieve a single PBX call record with full details
|
|
2501
|
+
* Get pbx call record
|
|
2502
|
+
*/
|
|
2503
|
+
getPbxCall(requestParameters: GetPbxCallRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationPbxCallResponse>;
|
|
2454
2504
|
/**
|
|
2455
2505
|
* Retrieve a pbx hardware phone
|
|
2456
2506
|
* Get pbx hardware phone
|
|
@@ -2881,6 +2931,16 @@ export declare class ConversationApi extends runtime.BaseAPI implements Conversa
|
|
|
2881
2931
|
* Search for available phone numbers
|
|
2882
2932
|
*/
|
|
2883
2933
|
searchPbxAvailablePhoneNumbers(requestParameters: SearchPbxAvailablePhoneNumbersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationPbxAvailablePhoneNumbersResponse>;
|
|
2934
|
+
/**
|
|
2935
|
+
* Search and list PBX call records with filtering, sorting, and pagination
|
|
2936
|
+
* Search pbx call records
|
|
2937
|
+
*/
|
|
2938
|
+
searchPbxCallsRaw(requestParameters: SearchPbxCallsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConversationPbxCallSearchResponse>>;
|
|
2939
|
+
/**
|
|
2940
|
+
* Search and list PBX call records with filtering, sorting, and pagination
|
|
2941
|
+
* Search pbx call records
|
|
2942
|
+
*/
|
|
2943
|
+
searchPbxCalls(requestParameters: SearchPbxCallsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationPbxCallSearchResponse>;
|
|
2884
2944
|
/**
|
|
2885
2945
|
* Unsubscribe any SMS participants in this conversation
|
|
2886
2946
|
* Unsubscribe any SMS participants in this conversation
|
|
@@ -3066,6 +3066,65 @@ var ConversationApi = /** @class */ (function (_super) {
|
|
|
3066
3066
|
});
|
|
3067
3067
|
});
|
|
3068
3068
|
};
|
|
3069
|
+
/**
|
|
3070
|
+
* Retrieve a single PBX call record with full details
|
|
3071
|
+
* Get pbx call record
|
|
3072
|
+
*/
|
|
3073
|
+
ConversationApi.prototype.getPbxCallRaw = function (requestParameters, initOverrides) {
|
|
3074
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3075
|
+
var queryParameters, headerParameters, _a, _b, response;
|
|
3076
|
+
return __generator(this, function (_c) {
|
|
3077
|
+
switch (_c.label) {
|
|
3078
|
+
case 0:
|
|
3079
|
+
if (requestParameters.callUuid === null || requestParameters.callUuid === undefined) {
|
|
3080
|
+
throw new runtime.RequiredError('callUuid', 'Required parameter requestParameters.callUuid was null or undefined when calling getPbxCall.');
|
|
3081
|
+
}
|
|
3082
|
+
queryParameters = {};
|
|
3083
|
+
headerParameters = {};
|
|
3084
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
3085
|
+
// oauth required
|
|
3086
|
+
_a = headerParameters;
|
|
3087
|
+
_b = "Authorization";
|
|
3088
|
+
return [4 /*yield*/, this.configuration.accessToken("ultraCartOauth", ["conversation_read"])];
|
|
3089
|
+
case 1:
|
|
3090
|
+
// oauth required
|
|
3091
|
+
_a[_b] = _c.sent();
|
|
3092
|
+
_c.label = 2;
|
|
3093
|
+
case 2:
|
|
3094
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
3095
|
+
headerParameters["x-ultracart-simple-key"] = this.configuration.apiKey("x-ultracart-simple-key"); // ultraCartSimpleApiKey authentication
|
|
3096
|
+
}
|
|
3097
|
+
return [4 /*yield*/, this.request({
|
|
3098
|
+
path: "/conversation/pbx/call/{callUuid}".replace("{".concat("callUuid", "}"), encodeURIComponent(String(requestParameters.callUuid))),
|
|
3099
|
+
method: 'GET',
|
|
3100
|
+
headers: headerParameters,
|
|
3101
|
+
query: queryParameters,
|
|
3102
|
+
}, initOverrides)];
|
|
3103
|
+
case 3:
|
|
3104
|
+
response = _c.sent();
|
|
3105
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.ConversationPbxCallResponseFromJSON)(jsonValue); })];
|
|
3106
|
+
}
|
|
3107
|
+
});
|
|
3108
|
+
});
|
|
3109
|
+
};
|
|
3110
|
+
/**
|
|
3111
|
+
* Retrieve a single PBX call record with full details
|
|
3112
|
+
* Get pbx call record
|
|
3113
|
+
*/
|
|
3114
|
+
ConversationApi.prototype.getPbxCall = function (requestParameters, initOverrides) {
|
|
3115
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3116
|
+
var response;
|
|
3117
|
+
return __generator(this, function (_a) {
|
|
3118
|
+
switch (_a.label) {
|
|
3119
|
+
case 0: return [4 /*yield*/, this.getPbxCallRaw(requestParameters, initOverrides)];
|
|
3120
|
+
case 1:
|
|
3121
|
+
response = _a.sent();
|
|
3122
|
+
return [4 /*yield*/, response.value()];
|
|
3123
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
3124
|
+
}
|
|
3125
|
+
});
|
|
3126
|
+
});
|
|
3127
|
+
};
|
|
3069
3128
|
/**
|
|
3070
3129
|
* Retrieve a pbx hardware phone
|
|
3071
3130
|
* Get pbx hardware phone
|
|
@@ -5631,6 +5690,76 @@ var ConversationApi = /** @class */ (function (_super) {
|
|
|
5631
5690
|
});
|
|
5632
5691
|
});
|
|
5633
5692
|
};
|
|
5693
|
+
/**
|
|
5694
|
+
* Search and list PBX call records with filtering, sorting, and pagination
|
|
5695
|
+
* Search pbx call records
|
|
5696
|
+
*/
|
|
5697
|
+
ConversationApi.prototype.searchPbxCallsRaw = function (requestParameters, initOverrides) {
|
|
5698
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
5699
|
+
var queryParameters, headerParameters, _a, _b, response;
|
|
5700
|
+
return __generator(this, function (_c) {
|
|
5701
|
+
switch (_c.label) {
|
|
5702
|
+
case 0:
|
|
5703
|
+
if (requestParameters.searchRequest === null || requestParameters.searchRequest === undefined) {
|
|
5704
|
+
throw new runtime.RequiredError('searchRequest', 'Required parameter requestParameters.searchRequest was null or undefined when calling searchPbxCalls.');
|
|
5705
|
+
}
|
|
5706
|
+
queryParameters = {};
|
|
5707
|
+
if (requestParameters.limit !== undefined) {
|
|
5708
|
+
queryParameters['_limit'] = requestParameters.limit;
|
|
5709
|
+
}
|
|
5710
|
+
if (requestParameters.offset !== undefined) {
|
|
5711
|
+
queryParameters['_offset'] = requestParameters.offset;
|
|
5712
|
+
}
|
|
5713
|
+
if (requestParameters.sort !== undefined) {
|
|
5714
|
+
queryParameters['_sort'] = requestParameters.sort;
|
|
5715
|
+
}
|
|
5716
|
+
headerParameters = {};
|
|
5717
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
5718
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
5719
|
+
// oauth required
|
|
5720
|
+
_a = headerParameters;
|
|
5721
|
+
_b = "Authorization";
|
|
5722
|
+
return [4 /*yield*/, this.configuration.accessToken("ultraCartOauth", ["conversation_read"])];
|
|
5723
|
+
case 1:
|
|
5724
|
+
// oauth required
|
|
5725
|
+
_a[_b] = _c.sent();
|
|
5726
|
+
_c.label = 2;
|
|
5727
|
+
case 2:
|
|
5728
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
5729
|
+
headerParameters["x-ultracart-simple-key"] = this.configuration.apiKey("x-ultracart-simple-key"); // ultraCartSimpleApiKey authentication
|
|
5730
|
+
}
|
|
5731
|
+
return [4 /*yield*/, this.request({
|
|
5732
|
+
path: "/conversation/pbx/call/search",
|
|
5733
|
+
method: 'POST',
|
|
5734
|
+
headers: headerParameters,
|
|
5735
|
+
query: queryParameters,
|
|
5736
|
+
body: (0, models_1.ConversationPbxCallSearchRequestToJSON)(requestParameters.searchRequest),
|
|
5737
|
+
}, initOverrides)];
|
|
5738
|
+
case 3:
|
|
5739
|
+
response = _c.sent();
|
|
5740
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.ConversationPbxCallSearchResponseFromJSON)(jsonValue); })];
|
|
5741
|
+
}
|
|
5742
|
+
});
|
|
5743
|
+
});
|
|
5744
|
+
};
|
|
5745
|
+
/**
|
|
5746
|
+
* Search and list PBX call records with filtering, sorting, and pagination
|
|
5747
|
+
* Search pbx call records
|
|
5748
|
+
*/
|
|
5749
|
+
ConversationApi.prototype.searchPbxCalls = function (requestParameters, initOverrides) {
|
|
5750
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
5751
|
+
var response;
|
|
5752
|
+
return __generator(this, function (_a) {
|
|
5753
|
+
switch (_a.label) {
|
|
5754
|
+
case 0: return [4 /*yield*/, this.searchPbxCallsRaw(requestParameters, initOverrides)];
|
|
5755
|
+
case 1:
|
|
5756
|
+
response = _a.sent();
|
|
5757
|
+
return [4 /*yield*/, response.value()];
|
|
5758
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
5759
|
+
}
|
|
5760
|
+
});
|
|
5761
|
+
});
|
|
5762
|
+
};
|
|
5634
5763
|
/**
|
|
5635
5764
|
* Unsubscribe any SMS participants in this conversation
|
|
5636
5765
|
* Unsubscribe any SMS participants in this conversation
|
|
@@ -39,6 +39,12 @@ export interface ConversationPbxAgent {
|
|
|
39
39
|
* @memberof ConversationPbxAgent
|
|
40
40
|
*/
|
|
41
41
|
conversation_pbx_agent_uuid?: string;
|
|
42
|
+
/**
|
|
43
|
+
* The default phone number that this agent should dial out to the PSTN with.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof ConversationPbxAgent
|
|
46
|
+
*/
|
|
47
|
+
default_phone_number_uuid?: string;
|
|
42
48
|
/**
|
|
43
49
|
* Extension
|
|
44
50
|
* @type {number}
|
|
@@ -44,6 +44,7 @@ function ConversationPbxAgentFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
44
|
'call_routing_preference': !(0, runtime_1.exists)(json, 'call_routing_preference') ? undefined : json['call_routing_preference'],
|
|
45
45
|
'cellphone': !(0, runtime_1.exists)(json, 'cellphone') ? undefined : json['cellphone'],
|
|
46
46
|
'conversation_pbx_agent_uuid': !(0, runtime_1.exists)(json, 'conversation_pbx_agent_uuid') ? undefined : json['conversation_pbx_agent_uuid'],
|
|
47
|
+
'default_phone_number_uuid': !(0, runtime_1.exists)(json, 'default_phone_number_uuid') ? undefined : json['default_phone_number_uuid'],
|
|
47
48
|
'extension': !(0, runtime_1.exists)(json, 'extension') ? undefined : json['extension'],
|
|
48
49
|
'full_name': !(0, runtime_1.exists)(json, 'full_name') ? undefined : json['full_name'],
|
|
49
50
|
'hardware_phone_uuids': !(0, runtime_1.exists)(json, 'hardware_phone_uuids') ? undefined : json['hardware_phone_uuids'],
|
|
@@ -74,6 +75,7 @@ function ConversationPbxAgentToJSON(value) {
|
|
|
74
75
|
'call_routing_preference': value.call_routing_preference,
|
|
75
76
|
'cellphone': value.cellphone,
|
|
76
77
|
'conversation_pbx_agent_uuid': value.conversation_pbx_agent_uuid,
|
|
78
|
+
'default_phone_number_uuid': value.default_phone_number_uuid,
|
|
77
79
|
'extension': value.extension,
|
|
78
80
|
'full_name': value.full_name,
|
|
79
81
|
'hardware_phone_uuids': value.hardware_phone_uuids,
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* UltraCart Rest API V2
|
|
3
|
+
* UltraCart REST API Version 2
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2.0.0
|
|
6
|
+
* Contact: support@ultracart.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { ConversationPbxCallAgent } from './ConversationPbxCallAgent';
|
|
13
|
+
import { ConversationPbxCallAiEngagement } from './ConversationPbxCallAiEngagement';
|
|
14
|
+
import { ConversationPbxCallCaller } from './ConversationPbxCallCaller';
|
|
15
|
+
import { ConversationPbxCallFinancial } from './ConversationPbxCallFinancial';
|
|
16
|
+
import { ConversationPbxCallHold } from './ConversationPbxCallHold';
|
|
17
|
+
import { ConversationPbxCallRecording } from './ConversationPbxCallRecording';
|
|
18
|
+
import { ConversationPbxCallRouting } from './ConversationPbxCallRouting';
|
|
19
|
+
import { ConversationPbxCallTimeline } from './ConversationPbxCallTimeline';
|
|
20
|
+
import { ConversationPbxCallTransfer } from './ConversationPbxCallTransfer';
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @export
|
|
24
|
+
* @interface ConversationPbxCall
|
|
25
|
+
*/
|
|
26
|
+
export interface ConversationPbxCall {
|
|
27
|
+
/**
|
|
28
|
+
* Twilio account SID
|
|
29
|
+
* @type {string}
|
|
30
|
+
* @memberof ConversationPbxCall
|
|
31
|
+
*/
|
|
32
|
+
account_sid?: string;
|
|
33
|
+
/**
|
|
34
|
+
* List of agents who participated in this call
|
|
35
|
+
* @type {Array<ConversationPbxCallAgent>}
|
|
36
|
+
* @memberof ConversationPbxCall
|
|
37
|
+
*/
|
|
38
|
+
agents?: Array<ConversationPbxCallAgent>;
|
|
39
|
+
/**
|
|
40
|
+
* List of AI agent engagements during the call
|
|
41
|
+
* @type {Array<ConversationPbxCallAiEngagement>}
|
|
42
|
+
* @memberof ConversationPbxCall
|
|
43
|
+
*/
|
|
44
|
+
ai_agent_engagements?: Array<ConversationPbxCallAiEngagement>;
|
|
45
|
+
/**
|
|
46
|
+
* Twilio call SID for the primary (customer) call leg
|
|
47
|
+
* @type {string}
|
|
48
|
+
* @memberof ConversationPbxCall
|
|
49
|
+
*/
|
|
50
|
+
call_sid?: string;
|
|
51
|
+
/**
|
|
52
|
+
* Unique identifier for this call record
|
|
53
|
+
* @type {string}
|
|
54
|
+
* @memberof ConversationPbxCall
|
|
55
|
+
*/
|
|
56
|
+
call_uuid?: string;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @type {ConversationPbxCallCaller}
|
|
60
|
+
* @memberof ConversationPbxCall
|
|
61
|
+
*/
|
|
62
|
+
caller?: ConversationPbxCallCaller;
|
|
63
|
+
/**
|
|
64
|
+
* Twilio conference SID if this call used conferencing
|
|
65
|
+
* @type {string}
|
|
66
|
+
* @memberof ConversationPbxCall
|
|
67
|
+
*/
|
|
68
|
+
conference_sid?: string;
|
|
69
|
+
/**
|
|
70
|
+
* Timestamp when the call record was created
|
|
71
|
+
* @type {string}
|
|
72
|
+
* @memberof ConversationPbxCall
|
|
73
|
+
*/
|
|
74
|
+
created_at_dts?: string;
|
|
75
|
+
/**
|
|
76
|
+
* Customer name associated with this call
|
|
77
|
+
* @type {string}
|
|
78
|
+
* @memberof ConversationPbxCall
|
|
79
|
+
*/
|
|
80
|
+
customer_name?: string;
|
|
81
|
+
/**
|
|
82
|
+
* UltraCart customer profile OID if the caller was matched to a customer
|
|
83
|
+
* @type {string}
|
|
84
|
+
* @memberof ConversationPbxCall
|
|
85
|
+
*/
|
|
86
|
+
customer_profile_oid?: string;
|
|
87
|
+
/**
|
|
88
|
+
* Call disposition describing how the call ended
|
|
89
|
+
* @type {string}
|
|
90
|
+
* @memberof ConversationPbxCall
|
|
91
|
+
*/
|
|
92
|
+
disposition?: string;
|
|
93
|
+
/**
|
|
94
|
+
* Email address of the caller if known
|
|
95
|
+
* @type {string}
|
|
96
|
+
* @memberof ConversationPbxCall
|
|
97
|
+
*/
|
|
98
|
+
email?: string;
|
|
99
|
+
/**
|
|
100
|
+
*
|
|
101
|
+
* @type {ConversationPbxCallFinancial}
|
|
102
|
+
* @memberof ConversationPbxCall
|
|
103
|
+
*/
|
|
104
|
+
financial?: ConversationPbxCallFinancial;
|
|
105
|
+
/**
|
|
106
|
+
* List of hold events during the call
|
|
107
|
+
* @type {Array<ConversationPbxCallHold>}
|
|
108
|
+
* @memberof ConversationPbxCall
|
|
109
|
+
*/
|
|
110
|
+
holds?: Array<ConversationPbxCallHold>;
|
|
111
|
+
/**
|
|
112
|
+
* Merchant identifier
|
|
113
|
+
* @type {string}
|
|
114
|
+
* @memberof ConversationPbxCall
|
|
115
|
+
*/
|
|
116
|
+
merchant_id?: string;
|
|
117
|
+
/**
|
|
118
|
+
* List of all Twilio recording SIDs associated with this call
|
|
119
|
+
* @type {Array<string>}
|
|
120
|
+
* @memberof ConversationPbxCall
|
|
121
|
+
*/
|
|
122
|
+
recording_sids?: Array<string>;
|
|
123
|
+
/**
|
|
124
|
+
* List of recordings made during the call
|
|
125
|
+
* @type {Array<ConversationPbxCallRecording>}
|
|
126
|
+
* @memberof ConversationPbxCall
|
|
127
|
+
*/
|
|
128
|
+
recordings?: Array<ConversationPbxCallRecording>;
|
|
129
|
+
/**
|
|
130
|
+
*
|
|
131
|
+
* @type {ConversationPbxCallRouting}
|
|
132
|
+
* @memberof ConversationPbxCall
|
|
133
|
+
*/
|
|
134
|
+
routing?: ConversationPbxCallRouting;
|
|
135
|
+
/**
|
|
136
|
+
* Final status of the call
|
|
137
|
+
* @type {string}
|
|
138
|
+
* @memberof ConversationPbxCall
|
|
139
|
+
*/
|
|
140
|
+
status?: string;
|
|
141
|
+
/**
|
|
142
|
+
*
|
|
143
|
+
* @type {ConversationPbxCallTimeline}
|
|
144
|
+
* @memberof ConversationPbxCall
|
|
145
|
+
*/
|
|
146
|
+
timeline?: ConversationPbxCallTimeline;
|
|
147
|
+
/**
|
|
148
|
+
* List of transfer events during the call
|
|
149
|
+
* @type {Array<ConversationPbxCallTransfer>}
|
|
150
|
+
* @memberof ConversationPbxCall
|
|
151
|
+
*/
|
|
152
|
+
transfers?: Array<ConversationPbxCallTransfer>;
|
|
153
|
+
/**
|
|
154
|
+
* Timestamp when the call record was last updated
|
|
155
|
+
* @type {string}
|
|
156
|
+
* @memberof ConversationPbxCall
|
|
157
|
+
*/
|
|
158
|
+
updated_at_dts?: string;
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* Check if a given object implements the ConversationPbxCall interface.
|
|
162
|
+
*/
|
|
163
|
+
export declare function instanceOfConversationPbxCall(value: object): boolean;
|
|
164
|
+
export declare function ConversationPbxCallFromJSON(json: any): ConversationPbxCall;
|
|
165
|
+
export declare function ConversationPbxCallFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationPbxCall;
|
|
166
|
+
export declare function ConversationPbxCallToJSON(value?: ConversationPbxCall | null): any;
|
|
@@ -0,0 +1,101 @@
|
|
|
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.ConversationPbxCallToJSON = exports.ConversationPbxCallFromJSONTyped = exports.ConversationPbxCallFromJSON = exports.instanceOfConversationPbxCall = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
var ConversationPbxCallAgent_1 = require("./ConversationPbxCallAgent");
|
|
19
|
+
var ConversationPbxCallAiEngagement_1 = require("./ConversationPbxCallAiEngagement");
|
|
20
|
+
var ConversationPbxCallCaller_1 = require("./ConversationPbxCallCaller");
|
|
21
|
+
var ConversationPbxCallFinancial_1 = require("./ConversationPbxCallFinancial");
|
|
22
|
+
var ConversationPbxCallHold_1 = require("./ConversationPbxCallHold");
|
|
23
|
+
var ConversationPbxCallRecording_1 = require("./ConversationPbxCallRecording");
|
|
24
|
+
var ConversationPbxCallRouting_1 = require("./ConversationPbxCallRouting");
|
|
25
|
+
var ConversationPbxCallTimeline_1 = require("./ConversationPbxCallTimeline");
|
|
26
|
+
var ConversationPbxCallTransfer_1 = require("./ConversationPbxCallTransfer");
|
|
27
|
+
/**
|
|
28
|
+
* Check if a given object implements the ConversationPbxCall interface.
|
|
29
|
+
*/
|
|
30
|
+
function instanceOfConversationPbxCall(value) {
|
|
31
|
+
var isInstance = true;
|
|
32
|
+
return isInstance;
|
|
33
|
+
}
|
|
34
|
+
exports.instanceOfConversationPbxCall = instanceOfConversationPbxCall;
|
|
35
|
+
function ConversationPbxCallFromJSON(json) {
|
|
36
|
+
return ConversationPbxCallFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
exports.ConversationPbxCallFromJSON = ConversationPbxCallFromJSON;
|
|
39
|
+
function ConversationPbxCallFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
+
if ((json === undefined) || (json === null)) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'account_sid': !(0, runtime_1.exists)(json, 'account_sid') ? undefined : json['account_sid'],
|
|
45
|
+
'agents': !(0, runtime_1.exists)(json, 'agents') ? undefined : (json['agents'].map(ConversationPbxCallAgent_1.ConversationPbxCallAgentFromJSON)),
|
|
46
|
+
'ai_agent_engagements': !(0, runtime_1.exists)(json, 'ai_agent_engagements') ? undefined : (json['ai_agent_engagements'].map(ConversationPbxCallAiEngagement_1.ConversationPbxCallAiEngagementFromJSON)),
|
|
47
|
+
'call_sid': !(0, runtime_1.exists)(json, 'call_sid') ? undefined : json['call_sid'],
|
|
48
|
+
'call_uuid': !(0, runtime_1.exists)(json, 'call_uuid') ? undefined : json['call_uuid'],
|
|
49
|
+
'caller': !(0, runtime_1.exists)(json, 'caller') ? undefined : (0, ConversationPbxCallCaller_1.ConversationPbxCallCallerFromJSON)(json['caller']),
|
|
50
|
+
'conference_sid': !(0, runtime_1.exists)(json, 'conference_sid') ? undefined : json['conference_sid'],
|
|
51
|
+
'created_at_dts': !(0, runtime_1.exists)(json, 'created_at_dts') ? undefined : json['created_at_dts'],
|
|
52
|
+
'customer_name': !(0, runtime_1.exists)(json, 'customer_name') ? undefined : json['customer_name'],
|
|
53
|
+
'customer_profile_oid': !(0, runtime_1.exists)(json, 'customer_profile_oid') ? undefined : json['customer_profile_oid'],
|
|
54
|
+
'disposition': !(0, runtime_1.exists)(json, 'disposition') ? undefined : json['disposition'],
|
|
55
|
+
'email': !(0, runtime_1.exists)(json, 'email') ? undefined : json['email'],
|
|
56
|
+
'financial': !(0, runtime_1.exists)(json, 'financial') ? undefined : (0, ConversationPbxCallFinancial_1.ConversationPbxCallFinancialFromJSON)(json['financial']),
|
|
57
|
+
'holds': !(0, runtime_1.exists)(json, 'holds') ? undefined : (json['holds'].map(ConversationPbxCallHold_1.ConversationPbxCallHoldFromJSON)),
|
|
58
|
+
'merchant_id': !(0, runtime_1.exists)(json, 'merchant_id') ? undefined : json['merchant_id'],
|
|
59
|
+
'recording_sids': !(0, runtime_1.exists)(json, 'recording_sids') ? undefined : json['recording_sids'],
|
|
60
|
+
'recordings': !(0, runtime_1.exists)(json, 'recordings') ? undefined : (json['recordings'].map(ConversationPbxCallRecording_1.ConversationPbxCallRecordingFromJSON)),
|
|
61
|
+
'routing': !(0, runtime_1.exists)(json, 'routing') ? undefined : (0, ConversationPbxCallRouting_1.ConversationPbxCallRoutingFromJSON)(json['routing']),
|
|
62
|
+
'status': !(0, runtime_1.exists)(json, 'status') ? undefined : json['status'],
|
|
63
|
+
'timeline': !(0, runtime_1.exists)(json, 'timeline') ? undefined : (0, ConversationPbxCallTimeline_1.ConversationPbxCallTimelineFromJSON)(json['timeline']),
|
|
64
|
+
'transfers': !(0, runtime_1.exists)(json, 'transfers') ? undefined : (json['transfers'].map(ConversationPbxCallTransfer_1.ConversationPbxCallTransferFromJSON)),
|
|
65
|
+
'updated_at_dts': !(0, runtime_1.exists)(json, 'updated_at_dts') ? undefined : json['updated_at_dts'],
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
exports.ConversationPbxCallFromJSONTyped = ConversationPbxCallFromJSONTyped;
|
|
69
|
+
function ConversationPbxCallToJSON(value) {
|
|
70
|
+
if (value === undefined) {
|
|
71
|
+
return undefined;
|
|
72
|
+
}
|
|
73
|
+
if (value === null) {
|
|
74
|
+
return null;
|
|
75
|
+
}
|
|
76
|
+
return {
|
|
77
|
+
'account_sid': value.account_sid,
|
|
78
|
+
'agents': value.agents === undefined ? undefined : (value.agents.map(ConversationPbxCallAgent_1.ConversationPbxCallAgentToJSON)),
|
|
79
|
+
'ai_agent_engagements': value.ai_agent_engagements === undefined ? undefined : (value.ai_agent_engagements.map(ConversationPbxCallAiEngagement_1.ConversationPbxCallAiEngagementToJSON)),
|
|
80
|
+
'call_sid': value.call_sid,
|
|
81
|
+
'call_uuid': value.call_uuid,
|
|
82
|
+
'caller': (0, ConversationPbxCallCaller_1.ConversationPbxCallCallerToJSON)(value.caller),
|
|
83
|
+
'conference_sid': value.conference_sid,
|
|
84
|
+
'created_at_dts': value.created_at_dts,
|
|
85
|
+
'customer_name': value.customer_name,
|
|
86
|
+
'customer_profile_oid': value.customer_profile_oid,
|
|
87
|
+
'disposition': value.disposition,
|
|
88
|
+
'email': value.email,
|
|
89
|
+
'financial': (0, ConversationPbxCallFinancial_1.ConversationPbxCallFinancialToJSON)(value.financial),
|
|
90
|
+
'holds': value.holds === undefined ? undefined : (value.holds.map(ConversationPbxCallHold_1.ConversationPbxCallHoldToJSON)),
|
|
91
|
+
'merchant_id': value.merchant_id,
|
|
92
|
+
'recording_sids': value.recording_sids,
|
|
93
|
+
'recordings': value.recordings === undefined ? undefined : (value.recordings.map(ConversationPbxCallRecording_1.ConversationPbxCallRecordingToJSON)),
|
|
94
|
+
'routing': (0, ConversationPbxCallRouting_1.ConversationPbxCallRoutingToJSON)(value.routing),
|
|
95
|
+
'status': value.status,
|
|
96
|
+
'timeline': (0, ConversationPbxCallTimeline_1.ConversationPbxCallTimelineToJSON)(value.timeline),
|
|
97
|
+
'transfers': value.transfers === undefined ? undefined : (value.transfers.map(ConversationPbxCallTransfer_1.ConversationPbxCallTransferToJSON)),
|
|
98
|
+
'updated_at_dts': value.updated_at_dts,
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
exports.ConversationPbxCallToJSON = ConversationPbxCallToJSON;
|