@wildix/wda-history-client 1.0.23 → 1.0.24
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/dist-cjs/models/models_0.js +10 -22
- package/dist-es/models/models_0.js +9 -21
- package/dist-types/commands/GetCallCommand.d.ts +16 -80
- package/dist-types/commands/QueryConversationsCommand.d.ts +16 -80
- package/dist-types/commands/QueryUserCallsCommand.d.ts +16 -80
- package/dist-types/models/models_0.d.ts +45 -106
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ConversationUserDirection = exports.ConversationFlag = exports.ConversationDirection = exports.Conversation = exports.ConferenceTranscriptionNotFoundException = exports.ConferenceTranscriptionStatus = exports.ConferenceParticipantType = exports.ConferenceParticipantRole = exports.PbxLicenseType = exports.ConferenceDirection = exports.ConferenceNotFoundException = exports.CallTranscriptionSpeaker = exports.CallTranscriptionNotFoundException = exports.RecordType = exports.CallFlowTranscriptionStatus = exports.
|
|
3
|
+
exports.ConversationUserDirection = exports.ConversationFlag = exports.ConversationDirection = exports.Conversation = exports.ConferenceTranscriptionNotFoundException = exports.ConferenceTranscriptionStatus = exports.ConferenceParticipantType = exports.ConferenceParticipantRole = exports.PbxLicenseType = exports.ConferenceDirection = exports.ConferenceNotFoundException = exports.CallTranscriptionSpeaker = exports.CallTranscriptionNotFoundException = exports.RecordType = exports.CallFlowTranscriptionStatus = exports.CallRecordPauseReason = exports.CallRecordOwner = exports.License = exports.CallDevice = exports.CallParticipantType = exports.CallParticipantRole = exports.CallFlowAttachmentType = exports.CallNotFoundException = exports.ForbiddenException = exports.ConversationStatus = exports.CallDirection = exports.ValidationException = void 0;
|
|
4
4
|
const WdaHistoryServiceException_1 = require("./WdaHistoryServiceException");
|
|
5
5
|
class ValidationException extends WdaHistoryServiceException_1.WdaHistoryServiceException {
|
|
6
6
|
constructor(opts) {
|
|
@@ -51,27 +51,6 @@ class CallNotFoundException extends WdaHistoryServiceException_1.WdaHistoryServi
|
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
exports.CallNotFoundException = CallNotFoundException;
|
|
54
|
-
exports.CallRecordOwner = {
|
|
55
|
-
CALLEE: "CALLEE",
|
|
56
|
-
CALLER: "CALLER",
|
|
57
|
-
SYSTEM: "SYSTEM",
|
|
58
|
-
};
|
|
59
|
-
exports.CallRecordPauseReason = {
|
|
60
|
-
HOLD: "hold",
|
|
61
|
-
PAUSE: "pause",
|
|
62
|
-
};
|
|
63
|
-
var CallFlowAttachment;
|
|
64
|
-
(function (CallFlowAttachment) {
|
|
65
|
-
CallFlowAttachment.visit = (value, visitor) => {
|
|
66
|
-
if (value.recording !== undefined)
|
|
67
|
-
return visitor.recording(value.recording);
|
|
68
|
-
if (value.fax !== undefined)
|
|
69
|
-
return visitor.fax(value.fax);
|
|
70
|
-
if (value.voicemail !== undefined)
|
|
71
|
-
return visitor.voicemail(value.voicemail);
|
|
72
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
73
|
-
};
|
|
74
|
-
})(CallFlowAttachment = exports.CallFlowAttachment || (exports.CallFlowAttachment = {}));
|
|
75
54
|
exports.CallFlowAttachmentType = {
|
|
76
55
|
FAX: "FAX",
|
|
77
56
|
VOICEMAIL: "VOICEMAIL",
|
|
@@ -98,6 +77,15 @@ exports.CallDevice = {
|
|
|
98
77
|
exports.License = {
|
|
99
78
|
XBEES: "x-bees",
|
|
100
79
|
};
|
|
80
|
+
exports.CallRecordOwner = {
|
|
81
|
+
CALLEE: "CALLEE",
|
|
82
|
+
CALLER: "CALLER",
|
|
83
|
+
SYSTEM: "SYSTEM",
|
|
84
|
+
};
|
|
85
|
+
exports.CallRecordPauseReason = {
|
|
86
|
+
HOLD: "hold",
|
|
87
|
+
PAUSE: "pause",
|
|
88
|
+
};
|
|
101
89
|
exports.CallFlowTranscriptionStatus = {
|
|
102
90
|
AVAILABLE: "AVAILABLE",
|
|
103
91
|
UNAVAILABLE: "UNAVAILABLE",
|
|
@@ -45,27 +45,6 @@ export class CallNotFoundException extends __BaseException {
|
|
|
45
45
|
Object.setPrototypeOf(this, CallNotFoundException.prototype);
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
|
-
export const CallRecordOwner = {
|
|
49
|
-
CALLEE: "CALLEE",
|
|
50
|
-
CALLER: "CALLER",
|
|
51
|
-
SYSTEM: "SYSTEM",
|
|
52
|
-
};
|
|
53
|
-
export const CallRecordPauseReason = {
|
|
54
|
-
HOLD: "hold",
|
|
55
|
-
PAUSE: "pause",
|
|
56
|
-
};
|
|
57
|
-
export var CallFlowAttachment;
|
|
58
|
-
(function (CallFlowAttachment) {
|
|
59
|
-
CallFlowAttachment.visit = (value, visitor) => {
|
|
60
|
-
if (value.recording !== undefined)
|
|
61
|
-
return visitor.recording(value.recording);
|
|
62
|
-
if (value.fax !== undefined)
|
|
63
|
-
return visitor.fax(value.fax);
|
|
64
|
-
if (value.voicemail !== undefined)
|
|
65
|
-
return visitor.voicemail(value.voicemail);
|
|
66
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
67
|
-
};
|
|
68
|
-
})(CallFlowAttachment || (CallFlowAttachment = {}));
|
|
69
48
|
export const CallFlowAttachmentType = {
|
|
70
49
|
FAX: "FAX",
|
|
71
50
|
VOICEMAIL: "VOICEMAIL",
|
|
@@ -92,6 +71,15 @@ export const CallDevice = {
|
|
|
92
71
|
export const License = {
|
|
93
72
|
XBEES: "x-bees",
|
|
94
73
|
};
|
|
74
|
+
export const CallRecordOwner = {
|
|
75
|
+
CALLEE: "CALLEE",
|
|
76
|
+
CALLER: "CALLER",
|
|
77
|
+
SYSTEM: "SYSTEM",
|
|
78
|
+
};
|
|
79
|
+
export const CallRecordPauseReason = {
|
|
80
|
+
HOLD: "hold",
|
|
81
|
+
PAUSE: "pause",
|
|
82
|
+
};
|
|
95
83
|
export const CallFlowTranscriptionStatus = {
|
|
96
84
|
AVAILABLE: "AVAILABLE",
|
|
97
85
|
UNAVAILABLE: "UNAVAILABLE",
|
|
@@ -105,44 +105,20 @@ declare const GetCallCommand_base: {
|
|
|
105
105
|
* // recordings: [ // CallFlowRecordings
|
|
106
106
|
* // "STRING_VALUE",
|
|
107
107
|
* // ],
|
|
108
|
-
* // recordingsData: [ //
|
|
109
|
-
* // { //
|
|
110
|
-
* //
|
|
111
|
-
* //
|
|
112
|
-
* //
|
|
113
|
-
* //
|
|
114
|
-
* //
|
|
115
|
-
* //
|
|
116
|
-
* //
|
|
117
|
-
* //
|
|
118
|
-
* //
|
|
119
|
-
* //
|
|
120
|
-
* //
|
|
121
|
-
* //
|
|
122
|
-
* // ],
|
|
123
|
-
* // },
|
|
124
|
-
* // fax: { // CallFlowFax
|
|
125
|
-
* // url: "STRING_VALUE", // required
|
|
126
|
-
* // status: "STRING_VALUE", // required
|
|
127
|
-
* // destinations: [ // CallFlowAttachmentDestinationList
|
|
128
|
-
* // { // CallFlowAttachmentDestination
|
|
129
|
-
* // phone: "STRING_VALUE",
|
|
130
|
-
* // name: "STRING_VALUE",
|
|
131
|
-
* // email: "STRING_VALUE",
|
|
132
|
-
* // userId: "STRING_VALUE",
|
|
133
|
-
* // userExtension: "STRING_VALUE",
|
|
134
|
-
* // userDepartment: "STRING_VALUE",
|
|
135
|
-
* // groupId: "STRING_VALUE",
|
|
136
|
-
* // groupName: "STRING_VALUE",
|
|
137
|
-
* // },
|
|
138
|
-
* // ],
|
|
139
|
-
* // owner: "CALLEE" || "CALLER" || "SYSTEM",
|
|
140
|
-
* // errorMsg: "STRING_VALUE",
|
|
141
|
-
* // },
|
|
142
|
-
* // voicemail: { // CallFlowVoicemail
|
|
143
|
-
* // url: "STRING_VALUE", // required
|
|
144
|
-
* // owner: "CALLEE" || "CALLER" || "SYSTEM",
|
|
145
|
-
* // },
|
|
108
|
+
* // recordingsData: [ // CallFlowRecordingsData
|
|
109
|
+
* // { // RecordingsData
|
|
110
|
+
* // fileName: "STRING_VALUE", // required
|
|
111
|
+
* // start: Number("long"), // required
|
|
112
|
+
* // end: Number("long"), // required
|
|
113
|
+
* // owner: "CALLEE" || "CALLER" || "SYSTEM", // required
|
|
114
|
+
* // url: "STRING_VALUE", // required
|
|
115
|
+
* // pauses: [ // CallRecordPausesList // required
|
|
116
|
+
* // { // CallRecordPause
|
|
117
|
+
* // start: Number("long"),
|
|
118
|
+
* // end: Number("long"),
|
|
119
|
+
* // reason: "pause" || "hold",
|
|
120
|
+
* // },
|
|
121
|
+
* // ],
|
|
146
122
|
* // },
|
|
147
123
|
* // ],
|
|
148
124
|
* // mergeWith: "STRING_VALUE",
|
|
@@ -157,8 +133,8 @@ declare const GetCallCommand_base: {
|
|
|
157
133
|
* // transcriptionLanguage: "STRING_VALUE",
|
|
158
134
|
* // attachment: "STRING_VALUE",
|
|
159
135
|
* // attachmentType: "VOICEMAIL" || "FAX",
|
|
160
|
-
* // attachmentDestinations: [
|
|
161
|
-
* // {
|
|
136
|
+
* // attachmentDestinations: [ // CallFlowAttachmentDestinationList
|
|
137
|
+
* // { // CallFlowAttachmentDestination
|
|
162
138
|
* // phone: "STRING_VALUE",
|
|
163
139
|
* // name: "STRING_VALUE",
|
|
164
140
|
* // email: "STRING_VALUE",
|
|
@@ -169,46 +145,6 @@ declare const GetCallCommand_base: {
|
|
|
169
145
|
* // groupName: "STRING_VALUE",
|
|
170
146
|
* // },
|
|
171
147
|
* // ],
|
|
172
|
-
* // attachments: [
|
|
173
|
-
* // {// Union: only one key present
|
|
174
|
-
* // recording: {
|
|
175
|
-
* // fileName: "STRING_VALUE", // required
|
|
176
|
-
* // start: Number("long"), // required
|
|
177
|
-
* // end: Number("long"), // required
|
|
178
|
-
* // owner: "CALLEE" || "CALLER" || "SYSTEM", // required
|
|
179
|
-
* // url: "STRING_VALUE", // required
|
|
180
|
-
* // pauses: [ // required
|
|
181
|
-
* // {
|
|
182
|
-
* // start: Number("long"),
|
|
183
|
-
* // end: Number("long"),
|
|
184
|
-
* // reason: "pause" || "hold",
|
|
185
|
-
* // },
|
|
186
|
-
* // ],
|
|
187
|
-
* // },
|
|
188
|
-
* // fax: {
|
|
189
|
-
* // url: "STRING_VALUE", // required
|
|
190
|
-
* // status: "STRING_VALUE", // required
|
|
191
|
-
* // destinations: [
|
|
192
|
-
* // {
|
|
193
|
-
* // phone: "STRING_VALUE",
|
|
194
|
-
* // name: "STRING_VALUE",
|
|
195
|
-
* // email: "STRING_VALUE",
|
|
196
|
-
* // userId: "STRING_VALUE",
|
|
197
|
-
* // userExtension: "STRING_VALUE",
|
|
198
|
-
* // userDepartment: "STRING_VALUE",
|
|
199
|
-
* // groupId: "STRING_VALUE",
|
|
200
|
-
* // groupName: "STRING_VALUE",
|
|
201
|
-
* // },
|
|
202
|
-
* // ],
|
|
203
|
-
* // owner: "CALLEE" || "CALLER" || "SYSTEM",
|
|
204
|
-
* // errorMsg: "STRING_VALUE",
|
|
205
|
-
* // },
|
|
206
|
-
* // voicemail: {
|
|
207
|
-
* // url: "STRING_VALUE", // required
|
|
208
|
-
* // owner: "CALLEE" || "CALLER" || "SYSTEM",
|
|
209
|
-
* // },
|
|
210
|
-
* // },
|
|
211
|
-
* // ],
|
|
212
148
|
* // id: "STRING_VALUE", // required
|
|
213
149
|
* // pbx: "STRING_VALUE", // required
|
|
214
150
|
* // time: Number("long"), // required
|
|
@@ -114,44 +114,20 @@ declare const QueryConversationsCommand_base: {
|
|
|
114
114
|
* // recordings: [ // CallFlowRecordings
|
|
115
115
|
* // "STRING_VALUE",
|
|
116
116
|
* // ],
|
|
117
|
-
* // recordingsData: [ //
|
|
118
|
-
* // { //
|
|
119
|
-
* //
|
|
120
|
-
* //
|
|
121
|
-
* //
|
|
122
|
-
* //
|
|
123
|
-
* //
|
|
124
|
-
* //
|
|
125
|
-
* //
|
|
126
|
-
* //
|
|
127
|
-
* //
|
|
128
|
-
* //
|
|
129
|
-
* //
|
|
130
|
-
* //
|
|
131
|
-
* // ],
|
|
132
|
-
* // },
|
|
133
|
-
* // fax: { // CallFlowFax
|
|
134
|
-
* // url: "STRING_VALUE", // required
|
|
135
|
-
* // status: "STRING_VALUE", // required
|
|
136
|
-
* // destinations: [ // CallFlowAttachmentDestinationList
|
|
137
|
-
* // { // CallFlowAttachmentDestination
|
|
138
|
-
* // phone: "STRING_VALUE",
|
|
139
|
-
* // name: "STRING_VALUE",
|
|
140
|
-
* // email: "STRING_VALUE",
|
|
141
|
-
* // userId: "STRING_VALUE",
|
|
142
|
-
* // userExtension: "STRING_VALUE",
|
|
143
|
-
* // userDepartment: "STRING_VALUE",
|
|
144
|
-
* // groupId: "STRING_VALUE",
|
|
145
|
-
* // groupName: "STRING_VALUE",
|
|
146
|
-
* // },
|
|
147
|
-
* // ],
|
|
148
|
-
* // owner: "CALLEE" || "CALLER" || "SYSTEM",
|
|
149
|
-
* // errorMsg: "STRING_VALUE",
|
|
150
|
-
* // },
|
|
151
|
-
* // voicemail: { // CallFlowVoicemail
|
|
152
|
-
* // url: "STRING_VALUE", // required
|
|
153
|
-
* // owner: "CALLEE" || "CALLER" || "SYSTEM",
|
|
154
|
-
* // },
|
|
117
|
+
* // recordingsData: [ // CallFlowRecordingsData
|
|
118
|
+
* // { // RecordingsData
|
|
119
|
+
* // fileName: "STRING_VALUE", // required
|
|
120
|
+
* // start: Number("long"), // required
|
|
121
|
+
* // end: Number("long"), // required
|
|
122
|
+
* // owner: "CALLEE" || "CALLER" || "SYSTEM", // required
|
|
123
|
+
* // url: "STRING_VALUE", // required
|
|
124
|
+
* // pauses: [ // CallRecordPausesList // required
|
|
125
|
+
* // { // CallRecordPause
|
|
126
|
+
* // start: Number("long"),
|
|
127
|
+
* // end: Number("long"),
|
|
128
|
+
* // reason: "pause" || "hold",
|
|
129
|
+
* // },
|
|
130
|
+
* // ],
|
|
155
131
|
* // },
|
|
156
132
|
* // ],
|
|
157
133
|
* // mergeWith: "STRING_VALUE",
|
|
@@ -166,8 +142,8 @@ declare const QueryConversationsCommand_base: {
|
|
|
166
142
|
* // transcriptionLanguage: "STRING_VALUE",
|
|
167
143
|
* // attachment: "STRING_VALUE",
|
|
168
144
|
* // attachmentType: "VOICEMAIL" || "FAX",
|
|
169
|
-
* // attachmentDestinations: [
|
|
170
|
-
* // {
|
|
145
|
+
* // attachmentDestinations: [ // CallFlowAttachmentDestinationList
|
|
146
|
+
* // { // CallFlowAttachmentDestination
|
|
171
147
|
* // phone: "STRING_VALUE",
|
|
172
148
|
* // name: "STRING_VALUE",
|
|
173
149
|
* // email: "STRING_VALUE",
|
|
@@ -178,46 +154,6 @@ declare const QueryConversationsCommand_base: {
|
|
|
178
154
|
* // groupName: "STRING_VALUE",
|
|
179
155
|
* // },
|
|
180
156
|
* // ],
|
|
181
|
-
* // attachments: [
|
|
182
|
-
* // {// Union: only one key present
|
|
183
|
-
* // recording: {
|
|
184
|
-
* // fileName: "STRING_VALUE", // required
|
|
185
|
-
* // start: Number("long"), // required
|
|
186
|
-
* // end: Number("long"), // required
|
|
187
|
-
* // owner: "CALLEE" || "CALLER" || "SYSTEM", // required
|
|
188
|
-
* // url: "STRING_VALUE", // required
|
|
189
|
-
* // pauses: [ // required
|
|
190
|
-
* // {
|
|
191
|
-
* // start: Number("long"),
|
|
192
|
-
* // end: Number("long"),
|
|
193
|
-
* // reason: "pause" || "hold",
|
|
194
|
-
* // },
|
|
195
|
-
* // ],
|
|
196
|
-
* // },
|
|
197
|
-
* // fax: {
|
|
198
|
-
* // url: "STRING_VALUE", // required
|
|
199
|
-
* // status: "STRING_VALUE", // required
|
|
200
|
-
* // destinations: [
|
|
201
|
-
* // {
|
|
202
|
-
* // phone: "STRING_VALUE",
|
|
203
|
-
* // name: "STRING_VALUE",
|
|
204
|
-
* // email: "STRING_VALUE",
|
|
205
|
-
* // userId: "STRING_VALUE",
|
|
206
|
-
* // userExtension: "STRING_VALUE",
|
|
207
|
-
* // userDepartment: "STRING_VALUE",
|
|
208
|
-
* // groupId: "STRING_VALUE",
|
|
209
|
-
* // groupName: "STRING_VALUE",
|
|
210
|
-
* // },
|
|
211
|
-
* // ],
|
|
212
|
-
* // owner: "CALLEE" || "CALLER" || "SYSTEM",
|
|
213
|
-
* // errorMsg: "STRING_VALUE",
|
|
214
|
-
* // },
|
|
215
|
-
* // voicemail: {
|
|
216
|
-
* // url: "STRING_VALUE", // required
|
|
217
|
-
* // owner: "CALLEE" || "CALLER" || "SYSTEM",
|
|
218
|
-
* // },
|
|
219
|
-
* // },
|
|
220
|
-
* // ],
|
|
221
157
|
* // id: "STRING_VALUE", // required
|
|
222
158
|
* // pbx: "STRING_VALUE", // required
|
|
223
159
|
* // time: Number("long"), // required
|
|
@@ -114,44 +114,20 @@ declare const QueryUserCallsCommand_base: {
|
|
|
114
114
|
* // recordings: [ // CallFlowRecordings
|
|
115
115
|
* // "STRING_VALUE",
|
|
116
116
|
* // ],
|
|
117
|
-
* // recordingsData: [ //
|
|
118
|
-
* // { //
|
|
119
|
-
* //
|
|
120
|
-
* //
|
|
121
|
-
* //
|
|
122
|
-
* //
|
|
123
|
-
* //
|
|
124
|
-
* //
|
|
125
|
-
* //
|
|
126
|
-
* //
|
|
127
|
-
* //
|
|
128
|
-
* //
|
|
129
|
-
* //
|
|
130
|
-
* //
|
|
131
|
-
* // ],
|
|
132
|
-
* // },
|
|
133
|
-
* // fax: { // CallFlowFax
|
|
134
|
-
* // url: "STRING_VALUE", // required
|
|
135
|
-
* // status: "STRING_VALUE", // required
|
|
136
|
-
* // destinations: [ // CallFlowAttachmentDestinationList
|
|
137
|
-
* // { // CallFlowAttachmentDestination
|
|
138
|
-
* // phone: "STRING_VALUE",
|
|
139
|
-
* // name: "STRING_VALUE",
|
|
140
|
-
* // email: "STRING_VALUE",
|
|
141
|
-
* // userId: "STRING_VALUE",
|
|
142
|
-
* // userExtension: "STRING_VALUE",
|
|
143
|
-
* // userDepartment: "STRING_VALUE",
|
|
144
|
-
* // groupId: "STRING_VALUE",
|
|
145
|
-
* // groupName: "STRING_VALUE",
|
|
146
|
-
* // },
|
|
147
|
-
* // ],
|
|
148
|
-
* // owner: "CALLEE" || "CALLER" || "SYSTEM",
|
|
149
|
-
* // errorMsg: "STRING_VALUE",
|
|
150
|
-
* // },
|
|
151
|
-
* // voicemail: { // CallFlowVoicemail
|
|
152
|
-
* // url: "STRING_VALUE", // required
|
|
153
|
-
* // owner: "CALLEE" || "CALLER" || "SYSTEM",
|
|
154
|
-
* // },
|
|
117
|
+
* // recordingsData: [ // CallFlowRecordingsData
|
|
118
|
+
* // { // RecordingsData
|
|
119
|
+
* // fileName: "STRING_VALUE", // required
|
|
120
|
+
* // start: Number("long"), // required
|
|
121
|
+
* // end: Number("long"), // required
|
|
122
|
+
* // owner: "CALLEE" || "CALLER" || "SYSTEM", // required
|
|
123
|
+
* // url: "STRING_VALUE", // required
|
|
124
|
+
* // pauses: [ // CallRecordPausesList // required
|
|
125
|
+
* // { // CallRecordPause
|
|
126
|
+
* // start: Number("long"),
|
|
127
|
+
* // end: Number("long"),
|
|
128
|
+
* // reason: "pause" || "hold",
|
|
129
|
+
* // },
|
|
130
|
+
* // ],
|
|
155
131
|
* // },
|
|
156
132
|
* // ],
|
|
157
133
|
* // mergeWith: "STRING_VALUE",
|
|
@@ -166,8 +142,8 @@ declare const QueryUserCallsCommand_base: {
|
|
|
166
142
|
* // transcriptionLanguage: "STRING_VALUE",
|
|
167
143
|
* // attachment: "STRING_VALUE",
|
|
168
144
|
* // attachmentType: "VOICEMAIL" || "FAX",
|
|
169
|
-
* // attachmentDestinations: [
|
|
170
|
-
* // {
|
|
145
|
+
* // attachmentDestinations: [ // CallFlowAttachmentDestinationList
|
|
146
|
+
* // { // CallFlowAttachmentDestination
|
|
171
147
|
* // phone: "STRING_VALUE",
|
|
172
148
|
* // name: "STRING_VALUE",
|
|
173
149
|
* // email: "STRING_VALUE",
|
|
@@ -178,46 +154,6 @@ declare const QueryUserCallsCommand_base: {
|
|
|
178
154
|
* // groupName: "STRING_VALUE",
|
|
179
155
|
* // },
|
|
180
156
|
* // ],
|
|
181
|
-
* // attachments: [
|
|
182
|
-
* // {// Union: only one key present
|
|
183
|
-
* // recording: {
|
|
184
|
-
* // fileName: "STRING_VALUE", // required
|
|
185
|
-
* // start: Number("long"), // required
|
|
186
|
-
* // end: Number("long"), // required
|
|
187
|
-
* // owner: "CALLEE" || "CALLER" || "SYSTEM", // required
|
|
188
|
-
* // url: "STRING_VALUE", // required
|
|
189
|
-
* // pauses: [ // required
|
|
190
|
-
* // {
|
|
191
|
-
* // start: Number("long"),
|
|
192
|
-
* // end: Number("long"),
|
|
193
|
-
* // reason: "pause" || "hold",
|
|
194
|
-
* // },
|
|
195
|
-
* // ],
|
|
196
|
-
* // },
|
|
197
|
-
* // fax: {
|
|
198
|
-
* // url: "STRING_VALUE", // required
|
|
199
|
-
* // status: "STRING_VALUE", // required
|
|
200
|
-
* // destinations: [
|
|
201
|
-
* // {
|
|
202
|
-
* // phone: "STRING_VALUE",
|
|
203
|
-
* // name: "STRING_VALUE",
|
|
204
|
-
* // email: "STRING_VALUE",
|
|
205
|
-
* // userId: "STRING_VALUE",
|
|
206
|
-
* // userExtension: "STRING_VALUE",
|
|
207
|
-
* // userDepartment: "STRING_VALUE",
|
|
208
|
-
* // groupId: "STRING_VALUE",
|
|
209
|
-
* // groupName: "STRING_VALUE",
|
|
210
|
-
* // },
|
|
211
|
-
* // ],
|
|
212
|
-
* // owner: "CALLEE" || "CALLER" || "SYSTEM",
|
|
213
|
-
* // errorMsg: "STRING_VALUE",
|
|
214
|
-
* // },
|
|
215
|
-
* // voicemail: {
|
|
216
|
-
* // url: "STRING_VALUE", // required
|
|
217
|
-
* // owner: "CALLEE" || "CALLER" || "SYSTEM",
|
|
218
|
-
* // },
|
|
219
|
-
* // },
|
|
220
|
-
* // ],
|
|
221
157
|
* // id: "STRING_VALUE", // required
|
|
222
158
|
* // pbx: "STRING_VALUE", // required
|
|
223
159
|
* // time: Number("long"), // required
|
|
@@ -72,110 +72,6 @@ export interface CallFlowAttachmentDestination {
|
|
|
72
72
|
groupId?: string;
|
|
73
73
|
groupName?: string;
|
|
74
74
|
}
|
|
75
|
-
/**
|
|
76
|
-
* @public
|
|
77
|
-
* @enum
|
|
78
|
-
*/
|
|
79
|
-
export declare const CallRecordOwner: {
|
|
80
|
-
readonly CALLEE: "CALLEE";
|
|
81
|
-
readonly CALLER: "CALLER";
|
|
82
|
-
readonly SYSTEM: "SYSTEM";
|
|
83
|
-
};
|
|
84
|
-
/**
|
|
85
|
-
* @public
|
|
86
|
-
*/
|
|
87
|
-
export type CallRecordOwner = typeof CallRecordOwner[keyof typeof CallRecordOwner];
|
|
88
|
-
/**
|
|
89
|
-
* @public
|
|
90
|
-
*/
|
|
91
|
-
export interface CallFlowFax {
|
|
92
|
-
url: string;
|
|
93
|
-
status: string;
|
|
94
|
-
destinations?: (CallFlowAttachmentDestination)[];
|
|
95
|
-
owner?: CallRecordOwner;
|
|
96
|
-
errorMsg?: string;
|
|
97
|
-
}
|
|
98
|
-
/**
|
|
99
|
-
* @public
|
|
100
|
-
* @enum
|
|
101
|
-
*/
|
|
102
|
-
export declare const CallRecordPauseReason: {
|
|
103
|
-
readonly HOLD: "hold";
|
|
104
|
-
readonly PAUSE: "pause";
|
|
105
|
-
};
|
|
106
|
-
/**
|
|
107
|
-
* @public
|
|
108
|
-
*/
|
|
109
|
-
export type CallRecordPauseReason = typeof CallRecordPauseReason[keyof typeof CallRecordPauseReason];
|
|
110
|
-
/**
|
|
111
|
-
* @public
|
|
112
|
-
*/
|
|
113
|
-
export interface CallRecordPause {
|
|
114
|
-
start?: number;
|
|
115
|
-
end?: number;
|
|
116
|
-
reason?: CallRecordPauseReason;
|
|
117
|
-
}
|
|
118
|
-
/**
|
|
119
|
-
* @public
|
|
120
|
-
*/
|
|
121
|
-
export interface CallFlowRecording {
|
|
122
|
-
fileName: string;
|
|
123
|
-
start: number;
|
|
124
|
-
end: number;
|
|
125
|
-
owner: CallRecordOwner;
|
|
126
|
-
url: string;
|
|
127
|
-
pauses: (CallRecordPause)[];
|
|
128
|
-
}
|
|
129
|
-
/**
|
|
130
|
-
* @public
|
|
131
|
-
*/
|
|
132
|
-
export interface CallFlowVoicemail {
|
|
133
|
-
url: string;
|
|
134
|
-
owner?: CallRecordOwner;
|
|
135
|
-
}
|
|
136
|
-
/**
|
|
137
|
-
* @public
|
|
138
|
-
*/
|
|
139
|
-
export type CallFlowAttachment = CallFlowAttachment.FaxMember | CallFlowAttachment.RecordingMember | CallFlowAttachment.VoicemailMember | CallFlowAttachment.$UnknownMember;
|
|
140
|
-
/**
|
|
141
|
-
* @public
|
|
142
|
-
*/
|
|
143
|
-
export declare namespace CallFlowAttachment {
|
|
144
|
-
interface RecordingMember {
|
|
145
|
-
recording: CallFlowRecording;
|
|
146
|
-
fax?: never;
|
|
147
|
-
voicemail?: never;
|
|
148
|
-
$unknown?: never;
|
|
149
|
-
}
|
|
150
|
-
interface FaxMember {
|
|
151
|
-
recording?: never;
|
|
152
|
-
fax: CallFlowFax;
|
|
153
|
-
voicemail?: never;
|
|
154
|
-
$unknown?: never;
|
|
155
|
-
}
|
|
156
|
-
interface VoicemailMember {
|
|
157
|
-
recording?: never;
|
|
158
|
-
fax?: never;
|
|
159
|
-
voicemail: CallFlowVoicemail;
|
|
160
|
-
$unknown?: never;
|
|
161
|
-
}
|
|
162
|
-
/**
|
|
163
|
-
* @public
|
|
164
|
-
*/
|
|
165
|
-
interface $UnknownMember {
|
|
166
|
-
recording?: never;
|
|
167
|
-
fax?: never;
|
|
168
|
-
voicemail?: never;
|
|
169
|
-
$unknown: [string, any];
|
|
170
|
-
}
|
|
171
|
-
interface Visitor<T> {
|
|
172
|
-
recording: (value: CallFlowRecording) => T;
|
|
173
|
-
fax: (value: CallFlowFax) => T;
|
|
174
|
-
voicemail: (value: CallFlowVoicemail) => T;
|
|
175
|
-
_: (name: string, value: any) => T;
|
|
176
|
-
}
|
|
177
|
-
const visit: <T>(value: CallFlowAttachment, visitor: Visitor<T>) => T;
|
|
178
|
-
}
|
|
179
75
|
/**
|
|
180
76
|
* @public
|
|
181
77
|
* @enum
|
|
@@ -261,6 +157,50 @@ export declare const License: {
|
|
|
261
157
|
* @public
|
|
262
158
|
*/
|
|
263
159
|
export type License = typeof License[keyof typeof License];
|
|
160
|
+
/**
|
|
161
|
+
* @public
|
|
162
|
+
* @enum
|
|
163
|
+
*/
|
|
164
|
+
export declare const CallRecordOwner: {
|
|
165
|
+
readonly CALLEE: "CALLEE";
|
|
166
|
+
readonly CALLER: "CALLER";
|
|
167
|
+
readonly SYSTEM: "SYSTEM";
|
|
168
|
+
};
|
|
169
|
+
/**
|
|
170
|
+
* @public
|
|
171
|
+
*/
|
|
172
|
+
export type CallRecordOwner = typeof CallRecordOwner[keyof typeof CallRecordOwner];
|
|
173
|
+
/**
|
|
174
|
+
* @public
|
|
175
|
+
* @enum
|
|
176
|
+
*/
|
|
177
|
+
export declare const CallRecordPauseReason: {
|
|
178
|
+
readonly HOLD: "hold";
|
|
179
|
+
readonly PAUSE: "pause";
|
|
180
|
+
};
|
|
181
|
+
/**
|
|
182
|
+
* @public
|
|
183
|
+
*/
|
|
184
|
+
export type CallRecordPauseReason = typeof CallRecordPauseReason[keyof typeof CallRecordPauseReason];
|
|
185
|
+
/**
|
|
186
|
+
* @public
|
|
187
|
+
*/
|
|
188
|
+
export interface CallRecordPause {
|
|
189
|
+
start?: number;
|
|
190
|
+
end?: number;
|
|
191
|
+
reason?: CallRecordPauseReason;
|
|
192
|
+
}
|
|
193
|
+
/**
|
|
194
|
+
* @public
|
|
195
|
+
*/
|
|
196
|
+
export interface RecordingsData {
|
|
197
|
+
fileName: string;
|
|
198
|
+
start: number;
|
|
199
|
+
end: number;
|
|
200
|
+
owner: CallRecordOwner;
|
|
201
|
+
url: string;
|
|
202
|
+
pauses: (CallRecordPause)[];
|
|
203
|
+
}
|
|
264
204
|
/**
|
|
265
205
|
* @public
|
|
266
206
|
* @enum
|
|
@@ -340,7 +280,7 @@ export interface CallRecord {
|
|
|
340
280
|
calleeMos?: string;
|
|
341
281
|
xhoppersConfId?: string;
|
|
342
282
|
recordings?: (string)[];
|
|
343
|
-
recordingsData?: (
|
|
283
|
+
recordingsData?: (RecordingsData)[];
|
|
344
284
|
mergeWith?: string;
|
|
345
285
|
splitReason?: string;
|
|
346
286
|
splitTransferType?: string;
|
|
@@ -354,7 +294,6 @@ export interface CallRecord {
|
|
|
354
294
|
attachment?: string;
|
|
355
295
|
attachmentType?: CallFlowAttachmentType;
|
|
356
296
|
attachmentDestinations?: (CallFlowAttachmentDestination)[];
|
|
357
|
-
attachments?: (CallFlowAttachment)[];
|
|
358
297
|
id: string;
|
|
359
298
|
pbx: string;
|
|
360
299
|
time: number;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wildix/wda-history-client",
|
|
3
3
|
"description": "@wildix/wda-history-client client",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.24",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|