@wildix/wda-history-client 1.2.12 → 1.2.14
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 +6 -8
- package/dist-es/models/models_0.js +5 -7
- package/dist-types/commands/GetCallCommand.d.ts +26 -23
- package/dist-types/commands/QueryConversationsCommand.d.ts +26 -23
- package/dist-types/commands/QueryUserCallsCommand.d.ts +26 -23
- package/dist-types/commands/UpdateCallCommand.d.ts +26 -23
- package/dist-types/models/models_0.d.ts +14 -54
- 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.MessageWhatsAppStatus = exports.MessageType = exports.MessageSmsStatus = exports.Element = exports.ActionElement = exports.ButtonVariant = exports.ButtonHandler = exports.ChatTranscriptionNotFoundException = exports.ChatTag = exports.ChatStatus = exports.ChatParticipantType = exports.ChatParticipantRole = exports.ChatDirection = exports.ChannelWhatsAppStatus = exports.ChannelContextSource = exports.ChannelContextEventAttendeeStatus = exports.ChannelType = exports.ChannelAccess = exports.ChatNotFoundException = exports.CallTranscriptionNotFoundException = exports.CallTranscriptionSpeaker = exports.RecordType = exports.License = exports.CallDevice = exports.CallParticipantType = exports.CallParticipantRole = exports.CallFlowAttachmentType = exports.CallFlowAttachment = 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.MessageWhatsAppStatus = exports.MessageType = exports.MessageSmsStatus = exports.Element = exports.ActionElement = exports.ButtonVariant = exports.ButtonHandler = exports.ChatTranscriptionNotFoundException = exports.ChatTag = exports.ChatStatus = exports.ChatParticipantType = exports.ChatParticipantRole = exports.ChatDirection = exports.ChannelWhatsAppStatus = exports.ChannelContextSource = exports.ChannelContextEventAttendeeStatus = exports.ChannelType = exports.ChannelAccess = exports.ChatNotFoundException = exports.CallTranscriptionNotFoundException = exports.CallTranscriptionSpeaker = exports.RecordType = exports.CallFlowTranscriptionStatus = exports.License = exports.CallDevice = exports.CallParticipantType = exports.CallParticipantRole = exports.CallFlowAttachmentType = exports.CallFlowAttachment = exports.CallRecordPauseReason = exports.CallFlowAttachmentStatus = exports.CallRecordOwner = exports.CallNotFoundException = exports.ConversationStatus = exports.CallDirection = exports.ValidationException = exports.ForbiddenException = void 0;
|
|
4
4
|
const WdaHistoryServiceException_1 = require("./WdaHistoryServiceException");
|
|
5
5
|
class ForbiddenException extends WdaHistoryServiceException_1.WdaHistoryServiceException {
|
|
6
6
|
name = "ForbiddenException";
|
|
@@ -64,11 +64,6 @@ exports.CallRecordPauseReason = {
|
|
|
64
64
|
HOLD: "hold",
|
|
65
65
|
PAUSE: "pause",
|
|
66
66
|
};
|
|
67
|
-
exports.CallFlowTranscriptionStatus = {
|
|
68
|
-
AVAILABLE: "AVAILABLE",
|
|
69
|
-
POST_TRANSCRIPTION: "POST_TRANSCRIPTION",
|
|
70
|
-
UNAVAILABLE: "UNAVAILABLE",
|
|
71
|
-
};
|
|
72
67
|
var CallFlowAttachment;
|
|
73
68
|
(function (CallFlowAttachment) {
|
|
74
69
|
CallFlowAttachment.visit = (value, visitor) => {
|
|
@@ -78,8 +73,6 @@ var CallFlowAttachment;
|
|
|
78
73
|
return visitor.fax(value.fax);
|
|
79
74
|
if (value.voicemail !== undefined)
|
|
80
75
|
return visitor.voicemail(value.voicemail);
|
|
81
|
-
if (value.transcription !== undefined)
|
|
82
|
-
return visitor.transcription(value.transcription);
|
|
83
76
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
84
77
|
};
|
|
85
78
|
})(CallFlowAttachment || (exports.CallFlowAttachment = CallFlowAttachment = {}));
|
|
@@ -111,6 +104,11 @@ exports.License = {
|
|
|
111
104
|
UC: "uc",
|
|
112
105
|
XBEES: "x-bees",
|
|
113
106
|
};
|
|
107
|
+
exports.CallFlowTranscriptionStatus = {
|
|
108
|
+
AVAILABLE: "AVAILABLE",
|
|
109
|
+
POST_TRANSCRIPTION: "POST_TRANSCRIPTION",
|
|
110
|
+
UNAVAILABLE: "UNAVAILABLE",
|
|
111
|
+
};
|
|
114
112
|
exports.RecordType = {
|
|
115
113
|
CALL: "call",
|
|
116
114
|
CALL_TRANSCRIPTION: "call_transcription",
|
|
@@ -58,11 +58,6 @@ export const CallRecordPauseReason = {
|
|
|
58
58
|
HOLD: "hold",
|
|
59
59
|
PAUSE: "pause",
|
|
60
60
|
};
|
|
61
|
-
export const CallFlowTranscriptionStatus = {
|
|
62
|
-
AVAILABLE: "AVAILABLE",
|
|
63
|
-
POST_TRANSCRIPTION: "POST_TRANSCRIPTION",
|
|
64
|
-
UNAVAILABLE: "UNAVAILABLE",
|
|
65
|
-
};
|
|
66
61
|
export var CallFlowAttachment;
|
|
67
62
|
(function (CallFlowAttachment) {
|
|
68
63
|
CallFlowAttachment.visit = (value, visitor) => {
|
|
@@ -72,8 +67,6 @@ export var CallFlowAttachment;
|
|
|
72
67
|
return visitor.fax(value.fax);
|
|
73
68
|
if (value.voicemail !== undefined)
|
|
74
69
|
return visitor.voicemail(value.voicemail);
|
|
75
|
-
if (value.transcription !== undefined)
|
|
76
|
-
return visitor.transcription(value.transcription);
|
|
77
70
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
78
71
|
};
|
|
79
72
|
})(CallFlowAttachment || (CallFlowAttachment = {}));
|
|
@@ -105,6 +98,11 @@ export const License = {
|
|
|
105
98
|
UC: "uc",
|
|
106
99
|
XBEES: "x-bees",
|
|
107
100
|
};
|
|
101
|
+
export const CallFlowTranscriptionStatus = {
|
|
102
|
+
AVAILABLE: "AVAILABLE",
|
|
103
|
+
POST_TRANSCRIPTION: "POST_TRANSCRIPTION",
|
|
104
|
+
UNAVAILABLE: "UNAVAILABLE",
|
|
105
|
+
};
|
|
108
106
|
export const RecordType = {
|
|
109
107
|
CALL: "call",
|
|
110
108
|
CALL_TRANSCRIPTION: "call_transcription",
|
|
@@ -126,18 +126,6 @@ declare const GetCallCommand_base: {
|
|
|
126
126
|
* // reason: "pause" || "hold",
|
|
127
127
|
* // },
|
|
128
128
|
* // ],
|
|
129
|
-
* // destinations: [ // CallFlowAttachmentDestinationList
|
|
130
|
-
* // { // CallFlowAttachmentDestination
|
|
131
|
-
* // phone: "STRING_VALUE",
|
|
132
|
-
* // name: "STRING_VALUE",
|
|
133
|
-
* // email: "STRING_VALUE",
|
|
134
|
-
* // userId: "STRING_VALUE",
|
|
135
|
-
* // userExtension: "STRING_VALUE",
|
|
136
|
-
* // userDepartment: "STRING_VALUE",
|
|
137
|
-
* // groupId: "STRING_VALUE",
|
|
138
|
-
* // groupName: "STRING_VALUE",
|
|
139
|
-
* // },
|
|
140
|
-
* // ],
|
|
141
129
|
* // },
|
|
142
130
|
* // ],
|
|
143
131
|
* // mergeWith: "STRING_VALUE",
|
|
@@ -153,8 +141,8 @@ declare const GetCallCommand_base: {
|
|
|
153
141
|
* // transcriptionSeconds: Number("int"),
|
|
154
142
|
* // attachment: "STRING_VALUE",
|
|
155
143
|
* // attachmentType: "VOICEMAIL" || "FAX",
|
|
156
|
-
* // attachmentDestinations: [
|
|
157
|
-
* // {
|
|
144
|
+
* // attachmentDestinations: [ // CallFlowAttachmentDestinationList
|
|
145
|
+
* // { // CallFlowAttachmentDestination
|
|
158
146
|
* // phone: "STRING_VALUE",
|
|
159
147
|
* // name: "STRING_VALUE",
|
|
160
148
|
* // email: "STRING_VALUE",
|
|
@@ -180,26 +168,41 @@ declare const GetCallCommand_base: {
|
|
|
180
168
|
* // reason: "pause" || "hold",
|
|
181
169
|
* // },
|
|
182
170
|
* // ],
|
|
183
|
-
* // destinations: "<CallFlowAttachmentDestinationList>",
|
|
184
171
|
* // },
|
|
185
172
|
* // fax: { // CallFlowFax
|
|
186
173
|
* // url: "STRING_VALUE", // required
|
|
187
174
|
* // status: "ok" || "error",
|
|
188
|
-
* // destinations:
|
|
175
|
+
* // destinations: [
|
|
176
|
+
* // {
|
|
177
|
+
* // phone: "STRING_VALUE",
|
|
178
|
+
* // name: "STRING_VALUE",
|
|
179
|
+
* // email: "STRING_VALUE",
|
|
180
|
+
* // userId: "STRING_VALUE",
|
|
181
|
+
* // userExtension: "STRING_VALUE",
|
|
182
|
+
* // userDepartment: "STRING_VALUE",
|
|
183
|
+
* // groupId: "STRING_VALUE",
|
|
184
|
+
* // groupName: "STRING_VALUE",
|
|
185
|
+
* // },
|
|
186
|
+
* // ],
|
|
189
187
|
* // owner: "callee" || "caller" || "system",
|
|
190
188
|
* // error: "STRING_VALUE",
|
|
191
189
|
* // },
|
|
192
190
|
* // voicemail: { // CallFlowVoicemail
|
|
193
191
|
* // url: "STRING_VALUE", // required
|
|
194
|
-
* // destinations:
|
|
192
|
+
* // destinations: [
|
|
193
|
+
* // {
|
|
194
|
+
* // phone: "STRING_VALUE",
|
|
195
|
+
* // name: "STRING_VALUE",
|
|
196
|
+
* // email: "STRING_VALUE",
|
|
197
|
+
* // userId: "STRING_VALUE",
|
|
198
|
+
* // userExtension: "STRING_VALUE",
|
|
199
|
+
* // userDepartment: "STRING_VALUE",
|
|
200
|
+
* // groupId: "STRING_VALUE",
|
|
201
|
+
* // groupName: "STRING_VALUE",
|
|
202
|
+
* // },
|
|
203
|
+
* // ],
|
|
195
204
|
* // owner: "callee" || "caller" || "system",
|
|
196
205
|
* // },
|
|
197
|
-
* // transcription: { // CallFlowTranscription
|
|
198
|
-
* // destinations: "<CallFlowAttachmentDestinationList>",
|
|
199
|
-
* // status: "AVAILABLE" || "POST_TRANSCRIPTION" || "UNAVAILABLE",
|
|
200
|
-
* // language: "STRING_VALUE",
|
|
201
|
-
* // seconds: Number("int"),
|
|
202
|
-
* // },
|
|
203
206
|
* // },
|
|
204
207
|
* // ],
|
|
205
208
|
* // id: "STRING_VALUE", // required
|
|
@@ -143,18 +143,6 @@ declare const QueryConversationsCommand_base: {
|
|
|
143
143
|
* // reason: "pause" || "hold",
|
|
144
144
|
* // },
|
|
145
145
|
* // ],
|
|
146
|
-
* // destinations: [ // CallFlowAttachmentDestinationList
|
|
147
|
-
* // { // CallFlowAttachmentDestination
|
|
148
|
-
* // phone: "STRING_VALUE",
|
|
149
|
-
* // name: "STRING_VALUE",
|
|
150
|
-
* // email: "STRING_VALUE",
|
|
151
|
-
* // userId: "STRING_VALUE",
|
|
152
|
-
* // userExtension: "STRING_VALUE",
|
|
153
|
-
* // userDepartment: "STRING_VALUE",
|
|
154
|
-
* // groupId: "STRING_VALUE",
|
|
155
|
-
* // groupName: "STRING_VALUE",
|
|
156
|
-
* // },
|
|
157
|
-
* // ],
|
|
158
146
|
* // },
|
|
159
147
|
* // ],
|
|
160
148
|
* // mergeWith: "STRING_VALUE",
|
|
@@ -170,8 +158,8 @@ declare const QueryConversationsCommand_base: {
|
|
|
170
158
|
* // transcriptionSeconds: Number("int"),
|
|
171
159
|
* // attachment: "STRING_VALUE",
|
|
172
160
|
* // attachmentType: "VOICEMAIL" || "FAX",
|
|
173
|
-
* // attachmentDestinations: [
|
|
174
|
-
* // {
|
|
161
|
+
* // attachmentDestinations: [ // CallFlowAttachmentDestinationList
|
|
162
|
+
* // { // CallFlowAttachmentDestination
|
|
175
163
|
* // phone: "STRING_VALUE",
|
|
176
164
|
* // name: "STRING_VALUE",
|
|
177
165
|
* // email: "STRING_VALUE",
|
|
@@ -197,26 +185,41 @@ declare const QueryConversationsCommand_base: {
|
|
|
197
185
|
* // reason: "pause" || "hold",
|
|
198
186
|
* // },
|
|
199
187
|
* // ],
|
|
200
|
-
* // destinations: "<CallFlowAttachmentDestinationList>",
|
|
201
188
|
* // },
|
|
202
189
|
* // fax: { // CallFlowFax
|
|
203
190
|
* // url: "STRING_VALUE", // required
|
|
204
191
|
* // status: "ok" || "error",
|
|
205
|
-
* // destinations:
|
|
192
|
+
* // destinations: [
|
|
193
|
+
* // {
|
|
194
|
+
* // phone: "STRING_VALUE",
|
|
195
|
+
* // name: "STRING_VALUE",
|
|
196
|
+
* // email: "STRING_VALUE",
|
|
197
|
+
* // userId: "STRING_VALUE",
|
|
198
|
+
* // userExtension: "STRING_VALUE",
|
|
199
|
+
* // userDepartment: "STRING_VALUE",
|
|
200
|
+
* // groupId: "STRING_VALUE",
|
|
201
|
+
* // groupName: "STRING_VALUE",
|
|
202
|
+
* // },
|
|
203
|
+
* // ],
|
|
206
204
|
* // owner: "callee" || "caller" || "system",
|
|
207
205
|
* // error: "STRING_VALUE",
|
|
208
206
|
* // },
|
|
209
207
|
* // voicemail: { // CallFlowVoicemail
|
|
210
208
|
* // url: "STRING_VALUE", // required
|
|
211
|
-
* // destinations:
|
|
209
|
+
* // destinations: [
|
|
210
|
+
* // {
|
|
211
|
+
* // phone: "STRING_VALUE",
|
|
212
|
+
* // name: "STRING_VALUE",
|
|
213
|
+
* // email: "STRING_VALUE",
|
|
214
|
+
* // userId: "STRING_VALUE",
|
|
215
|
+
* // userExtension: "STRING_VALUE",
|
|
216
|
+
* // userDepartment: "STRING_VALUE",
|
|
217
|
+
* // groupId: "STRING_VALUE",
|
|
218
|
+
* // groupName: "STRING_VALUE",
|
|
219
|
+
* // },
|
|
220
|
+
* // ],
|
|
212
221
|
* // owner: "callee" || "caller" || "system",
|
|
213
222
|
* // },
|
|
214
|
-
* // transcription: { // CallFlowTranscription
|
|
215
|
-
* // destinations: "<CallFlowAttachmentDestinationList>",
|
|
216
|
-
* // status: "AVAILABLE" || "POST_TRANSCRIPTION" || "UNAVAILABLE",
|
|
217
|
-
* // language: "STRING_VALUE",
|
|
218
|
-
* // seconds: Number("int"),
|
|
219
|
-
* // },
|
|
220
223
|
* // },
|
|
221
224
|
* // ],
|
|
222
225
|
* // id: "STRING_VALUE", // required
|
|
@@ -143,18 +143,6 @@ declare const QueryUserCallsCommand_base: {
|
|
|
143
143
|
* // reason: "pause" || "hold",
|
|
144
144
|
* // },
|
|
145
145
|
* // ],
|
|
146
|
-
* // destinations: [ // CallFlowAttachmentDestinationList
|
|
147
|
-
* // { // CallFlowAttachmentDestination
|
|
148
|
-
* // phone: "STRING_VALUE",
|
|
149
|
-
* // name: "STRING_VALUE",
|
|
150
|
-
* // email: "STRING_VALUE",
|
|
151
|
-
* // userId: "STRING_VALUE",
|
|
152
|
-
* // userExtension: "STRING_VALUE",
|
|
153
|
-
* // userDepartment: "STRING_VALUE",
|
|
154
|
-
* // groupId: "STRING_VALUE",
|
|
155
|
-
* // groupName: "STRING_VALUE",
|
|
156
|
-
* // },
|
|
157
|
-
* // ],
|
|
158
146
|
* // },
|
|
159
147
|
* // ],
|
|
160
148
|
* // mergeWith: "STRING_VALUE",
|
|
@@ -170,8 +158,8 @@ declare const QueryUserCallsCommand_base: {
|
|
|
170
158
|
* // transcriptionSeconds: Number("int"),
|
|
171
159
|
* // attachment: "STRING_VALUE",
|
|
172
160
|
* // attachmentType: "VOICEMAIL" || "FAX",
|
|
173
|
-
* // attachmentDestinations: [
|
|
174
|
-
* // {
|
|
161
|
+
* // attachmentDestinations: [ // CallFlowAttachmentDestinationList
|
|
162
|
+
* // { // CallFlowAttachmentDestination
|
|
175
163
|
* // phone: "STRING_VALUE",
|
|
176
164
|
* // name: "STRING_VALUE",
|
|
177
165
|
* // email: "STRING_VALUE",
|
|
@@ -197,26 +185,41 @@ declare const QueryUserCallsCommand_base: {
|
|
|
197
185
|
* // reason: "pause" || "hold",
|
|
198
186
|
* // },
|
|
199
187
|
* // ],
|
|
200
|
-
* // destinations: "<CallFlowAttachmentDestinationList>",
|
|
201
188
|
* // },
|
|
202
189
|
* // fax: { // CallFlowFax
|
|
203
190
|
* // url: "STRING_VALUE", // required
|
|
204
191
|
* // status: "ok" || "error",
|
|
205
|
-
* // destinations:
|
|
192
|
+
* // destinations: [
|
|
193
|
+
* // {
|
|
194
|
+
* // phone: "STRING_VALUE",
|
|
195
|
+
* // name: "STRING_VALUE",
|
|
196
|
+
* // email: "STRING_VALUE",
|
|
197
|
+
* // userId: "STRING_VALUE",
|
|
198
|
+
* // userExtension: "STRING_VALUE",
|
|
199
|
+
* // userDepartment: "STRING_VALUE",
|
|
200
|
+
* // groupId: "STRING_VALUE",
|
|
201
|
+
* // groupName: "STRING_VALUE",
|
|
202
|
+
* // },
|
|
203
|
+
* // ],
|
|
206
204
|
* // owner: "callee" || "caller" || "system",
|
|
207
205
|
* // error: "STRING_VALUE",
|
|
208
206
|
* // },
|
|
209
207
|
* // voicemail: { // CallFlowVoicemail
|
|
210
208
|
* // url: "STRING_VALUE", // required
|
|
211
|
-
* // destinations:
|
|
209
|
+
* // destinations: [
|
|
210
|
+
* // {
|
|
211
|
+
* // phone: "STRING_VALUE",
|
|
212
|
+
* // name: "STRING_VALUE",
|
|
213
|
+
* // email: "STRING_VALUE",
|
|
214
|
+
* // userId: "STRING_VALUE",
|
|
215
|
+
* // userExtension: "STRING_VALUE",
|
|
216
|
+
* // userDepartment: "STRING_VALUE",
|
|
217
|
+
* // groupId: "STRING_VALUE",
|
|
218
|
+
* // groupName: "STRING_VALUE",
|
|
219
|
+
* // },
|
|
220
|
+
* // ],
|
|
212
221
|
* // owner: "callee" || "caller" || "system",
|
|
213
222
|
* // },
|
|
214
|
-
* // transcription: { // CallFlowTranscription
|
|
215
|
-
* // destinations: "<CallFlowAttachmentDestinationList>",
|
|
216
|
-
* // status: "AVAILABLE" || "POST_TRANSCRIPTION" || "UNAVAILABLE",
|
|
217
|
-
* // language: "STRING_VALUE",
|
|
218
|
-
* // seconds: Number("int"),
|
|
219
|
-
* // },
|
|
220
223
|
* // },
|
|
221
224
|
* // ],
|
|
222
225
|
* // id: "STRING_VALUE", // required
|
|
@@ -129,18 +129,6 @@ declare const UpdateCallCommand_base: {
|
|
|
129
129
|
* // reason: "pause" || "hold",
|
|
130
130
|
* // },
|
|
131
131
|
* // ],
|
|
132
|
-
* // destinations: [ // CallFlowAttachmentDestinationList
|
|
133
|
-
* // { // CallFlowAttachmentDestination
|
|
134
|
-
* // phone: "STRING_VALUE",
|
|
135
|
-
* // name: "STRING_VALUE",
|
|
136
|
-
* // email: "STRING_VALUE",
|
|
137
|
-
* // userId: "STRING_VALUE",
|
|
138
|
-
* // userExtension: "STRING_VALUE",
|
|
139
|
-
* // userDepartment: "STRING_VALUE",
|
|
140
|
-
* // groupId: "STRING_VALUE",
|
|
141
|
-
* // groupName: "STRING_VALUE",
|
|
142
|
-
* // },
|
|
143
|
-
* // ],
|
|
144
132
|
* // },
|
|
145
133
|
* // ],
|
|
146
134
|
* // mergeWith: "STRING_VALUE",
|
|
@@ -156,8 +144,8 @@ declare const UpdateCallCommand_base: {
|
|
|
156
144
|
* // transcriptionSeconds: Number("int"),
|
|
157
145
|
* // attachment: "STRING_VALUE",
|
|
158
146
|
* // attachmentType: "VOICEMAIL" || "FAX",
|
|
159
|
-
* // attachmentDestinations: [
|
|
160
|
-
* // {
|
|
147
|
+
* // attachmentDestinations: [ // CallFlowAttachmentDestinationList
|
|
148
|
+
* // { // CallFlowAttachmentDestination
|
|
161
149
|
* // phone: "STRING_VALUE",
|
|
162
150
|
* // name: "STRING_VALUE",
|
|
163
151
|
* // email: "STRING_VALUE",
|
|
@@ -183,26 +171,41 @@ declare const UpdateCallCommand_base: {
|
|
|
183
171
|
* // reason: "pause" || "hold",
|
|
184
172
|
* // },
|
|
185
173
|
* // ],
|
|
186
|
-
* // destinations: "<CallFlowAttachmentDestinationList>",
|
|
187
174
|
* // },
|
|
188
175
|
* // fax: { // CallFlowFax
|
|
189
176
|
* // url: "STRING_VALUE", // required
|
|
190
177
|
* // status: "ok" || "error",
|
|
191
|
-
* // destinations:
|
|
178
|
+
* // destinations: [
|
|
179
|
+
* // {
|
|
180
|
+
* // phone: "STRING_VALUE",
|
|
181
|
+
* // name: "STRING_VALUE",
|
|
182
|
+
* // email: "STRING_VALUE",
|
|
183
|
+
* // userId: "STRING_VALUE",
|
|
184
|
+
* // userExtension: "STRING_VALUE",
|
|
185
|
+
* // userDepartment: "STRING_VALUE",
|
|
186
|
+
* // groupId: "STRING_VALUE",
|
|
187
|
+
* // groupName: "STRING_VALUE",
|
|
188
|
+
* // },
|
|
189
|
+
* // ],
|
|
192
190
|
* // owner: "callee" || "caller" || "system",
|
|
193
191
|
* // error: "STRING_VALUE",
|
|
194
192
|
* // },
|
|
195
193
|
* // voicemail: { // CallFlowVoicemail
|
|
196
194
|
* // url: "STRING_VALUE", // required
|
|
197
|
-
* // destinations:
|
|
195
|
+
* // destinations: [
|
|
196
|
+
* // {
|
|
197
|
+
* // phone: "STRING_VALUE",
|
|
198
|
+
* // name: "STRING_VALUE",
|
|
199
|
+
* // email: "STRING_VALUE",
|
|
200
|
+
* // userId: "STRING_VALUE",
|
|
201
|
+
* // userExtension: "STRING_VALUE",
|
|
202
|
+
* // userDepartment: "STRING_VALUE",
|
|
203
|
+
* // groupId: "STRING_VALUE",
|
|
204
|
+
* // groupName: "STRING_VALUE",
|
|
205
|
+
* // },
|
|
206
|
+
* // ],
|
|
198
207
|
* // owner: "callee" || "caller" || "system",
|
|
199
208
|
* // },
|
|
200
|
-
* // transcription: { // CallFlowTranscription
|
|
201
|
-
* // destinations: "<CallFlowAttachmentDestinationList>",
|
|
202
|
-
* // status: "AVAILABLE" || "POST_TRANSCRIPTION" || "UNAVAILABLE",
|
|
203
|
-
* // language: "STRING_VALUE",
|
|
204
|
-
* // seconds: Number("int"),
|
|
205
|
-
* // },
|
|
206
209
|
* // },
|
|
207
210
|
* // ],
|
|
208
211
|
* // id: "STRING_VALUE", // required
|
|
@@ -159,29 +159,6 @@ export interface CallFlowRecording {
|
|
|
159
159
|
owner: CallRecordOwner;
|
|
160
160
|
url: string;
|
|
161
161
|
pauses: (CallRecordPause)[];
|
|
162
|
-
destinations?: (CallFlowAttachmentDestination)[] | undefined;
|
|
163
|
-
}
|
|
164
|
-
/**
|
|
165
|
-
* @public
|
|
166
|
-
* @enum
|
|
167
|
-
*/
|
|
168
|
-
export declare const CallFlowTranscriptionStatus: {
|
|
169
|
-
readonly AVAILABLE: "AVAILABLE";
|
|
170
|
-
readonly POST_TRANSCRIPTION: "POST_TRANSCRIPTION";
|
|
171
|
-
readonly UNAVAILABLE: "UNAVAILABLE";
|
|
172
|
-
};
|
|
173
|
-
/**
|
|
174
|
-
* @public
|
|
175
|
-
*/
|
|
176
|
-
export type CallFlowTranscriptionStatus = typeof CallFlowTranscriptionStatus[keyof typeof CallFlowTranscriptionStatus];
|
|
177
|
-
/**
|
|
178
|
-
* @public
|
|
179
|
-
*/
|
|
180
|
-
export interface CallFlowTranscription {
|
|
181
|
-
destinations?: (CallFlowAttachmentDestination)[] | undefined;
|
|
182
|
-
status?: CallFlowTranscriptionStatus | undefined;
|
|
183
|
-
language?: string | undefined;
|
|
184
|
-
seconds?: number | undefined;
|
|
185
162
|
}
|
|
186
163
|
/**
|
|
187
164
|
* @public
|
|
@@ -194,7 +171,7 @@ export interface CallFlowVoicemail {
|
|
|
194
171
|
/**
|
|
195
172
|
* @public
|
|
196
173
|
*/
|
|
197
|
-
export type CallFlowAttachment = CallFlowAttachment.FaxMember | CallFlowAttachment.RecordingMember | CallFlowAttachment.
|
|
174
|
+
export type CallFlowAttachment = CallFlowAttachment.FaxMember | CallFlowAttachment.RecordingMember | CallFlowAttachment.VoicemailMember | CallFlowAttachment.$UnknownMember;
|
|
198
175
|
/**
|
|
199
176
|
* @public
|
|
200
177
|
*/
|
|
@@ -203,28 +180,18 @@ export declare namespace CallFlowAttachment {
|
|
|
203
180
|
recording: CallFlowRecording;
|
|
204
181
|
fax?: never;
|
|
205
182
|
voicemail?: never;
|
|
206
|
-
transcription?: never;
|
|
207
183
|
$unknown?: never;
|
|
208
184
|
}
|
|
209
185
|
interface FaxMember {
|
|
210
186
|
recording?: never;
|
|
211
187
|
fax: CallFlowFax;
|
|
212
188
|
voicemail?: never;
|
|
213
|
-
transcription?: never;
|
|
214
189
|
$unknown?: never;
|
|
215
190
|
}
|
|
216
191
|
interface VoicemailMember {
|
|
217
192
|
recording?: never;
|
|
218
193
|
fax?: never;
|
|
219
194
|
voicemail: CallFlowVoicemail;
|
|
220
|
-
transcription?: never;
|
|
221
|
-
$unknown?: never;
|
|
222
|
-
}
|
|
223
|
-
interface TranscriptionMember {
|
|
224
|
-
recording?: never;
|
|
225
|
-
fax?: never;
|
|
226
|
-
voicemail?: never;
|
|
227
|
-
transcription: CallFlowTranscription;
|
|
228
195
|
$unknown?: never;
|
|
229
196
|
}
|
|
230
197
|
/**
|
|
@@ -234,14 +201,12 @@ export declare namespace CallFlowAttachment {
|
|
|
234
201
|
recording?: never;
|
|
235
202
|
fax?: never;
|
|
236
203
|
voicemail?: never;
|
|
237
|
-
transcription?: never;
|
|
238
204
|
$unknown: [string, any];
|
|
239
205
|
}
|
|
240
206
|
interface Visitor<T> {
|
|
241
207
|
recording: (value: CallFlowRecording) => T;
|
|
242
208
|
fax: (value: CallFlowFax) => T;
|
|
243
209
|
voicemail: (value: CallFlowVoicemail) => T;
|
|
244
|
-
transcription: (value: CallFlowTranscription) => T;
|
|
245
210
|
_: (name: string, value: any) => T;
|
|
246
211
|
}
|
|
247
212
|
const visit: <T>(value: CallFlowAttachment, visitor: Visitor<T>) => T;
|
|
@@ -353,6 +318,19 @@ export declare const License: {
|
|
|
353
318
|
* @public
|
|
354
319
|
*/
|
|
355
320
|
export type License = typeof License[keyof typeof License];
|
|
321
|
+
/**
|
|
322
|
+
* @public
|
|
323
|
+
* @enum
|
|
324
|
+
*/
|
|
325
|
+
export declare const CallFlowTranscriptionStatus: {
|
|
326
|
+
readonly AVAILABLE: "AVAILABLE";
|
|
327
|
+
readonly POST_TRANSCRIPTION: "POST_TRANSCRIPTION";
|
|
328
|
+
readonly UNAVAILABLE: "UNAVAILABLE";
|
|
329
|
+
};
|
|
330
|
+
/**
|
|
331
|
+
* @public
|
|
332
|
+
*/
|
|
333
|
+
export type CallFlowTranscriptionStatus = typeof CallFlowTranscriptionStatus[keyof typeof CallFlowTranscriptionStatus];
|
|
356
334
|
/**
|
|
357
335
|
* @public
|
|
358
336
|
* @enum
|
|
@@ -443,26 +421,8 @@ export interface CallRecord {
|
|
|
443
421
|
remotePhoneCountryCodeStr?: string | undefined;
|
|
444
422
|
remotePhoneLocation?: string | undefined;
|
|
445
423
|
callStatus?: ConversationStatus | undefined;
|
|
446
|
-
/**
|
|
447
|
-
* Please use `attachments.transcription.status` instead.
|
|
448
|
-
*
|
|
449
|
-
* @deprecated
|
|
450
|
-
* @public
|
|
451
|
-
*/
|
|
452
424
|
transcriptionStatus?: CallFlowTranscriptionStatus | undefined;
|
|
453
|
-
/**
|
|
454
|
-
* Please use `attachments.transcription.language` instead.
|
|
455
|
-
*
|
|
456
|
-
* @deprecated
|
|
457
|
-
* @public
|
|
458
|
-
*/
|
|
459
425
|
transcriptionLanguage?: string | undefined;
|
|
460
|
-
/**
|
|
461
|
-
* Please use `attachments.transcription.seconds` instead.
|
|
462
|
-
*
|
|
463
|
-
* @deprecated
|
|
464
|
-
* @public
|
|
465
|
-
*/
|
|
466
426
|
transcriptionSeconds?: number | undefined;
|
|
467
427
|
/**
|
|
468
428
|
* Consider to use `attachments` instead.
|
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.2.
|
|
4
|
+
"version": "1.2.14",
|
|
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",
|