@wildix/wda-history-client 1.0.26 → 1.0.27
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 +5 -1
- package/dist-es/models/models_0.js +4 -0
- package/dist-types/commands/GetCallCommand.d.ts +14 -2
- package/dist-types/commands/QueryConversationsCommand.d.ts +14 -2
- package/dist-types/commands/QueryUserCallsCommand.d.ts +14 -2
- package/dist-types/models/models_0.d.ts +23 -2
- 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.License = exports.CallDevice = exports.CallParticipantType = exports.CallParticipantRole = exports.CallFlowAttachmentType = exports.CallFlowAttachment = exports.CallRecordPauseReason = exports.CallRecordOwner = exports.CallNotFoundException = exports.ForbiddenException = exports.ConversationStatus = exports.CallDirection = exports.ValidationException = void 0;
|
|
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.License = exports.CallDevice = exports.CallParticipantType = exports.CallParticipantRole = exports.CallFlowAttachmentType = exports.CallFlowAttachment = exports.CallRecordPauseReason = exports.CallFlowAttachmentStatus = exports.CallRecordOwner = 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) {
|
|
@@ -56,6 +56,10 @@ exports.CallRecordOwner = {
|
|
|
56
56
|
CALLER: "caller",
|
|
57
57
|
SYSTEM: "system",
|
|
58
58
|
};
|
|
59
|
+
exports.CallFlowAttachmentStatus = {
|
|
60
|
+
ERROR: "error",
|
|
61
|
+
OK: "ok",
|
|
62
|
+
};
|
|
59
63
|
exports.CallRecordPauseReason = {
|
|
60
64
|
HOLD: "hold",
|
|
61
65
|
PAUSE: "pause",
|
|
@@ -163,7 +163,7 @@ declare const GetCallCommand_base: {
|
|
|
163
163
|
* // },
|
|
164
164
|
* // fax: { // CallFlowFax
|
|
165
165
|
* // url: "STRING_VALUE", // required
|
|
166
|
-
* // status: "
|
|
166
|
+
* // status: "ok" || "error",
|
|
167
167
|
* // destinations: [
|
|
168
168
|
* // {
|
|
169
169
|
* // phone: "STRING_VALUE",
|
|
@@ -177,10 +177,22 @@ declare const GetCallCommand_base: {
|
|
|
177
177
|
* // },
|
|
178
178
|
* // ],
|
|
179
179
|
* // owner: "callee" || "caller" || "system",
|
|
180
|
-
* //
|
|
180
|
+
* // error: "STRING_VALUE",
|
|
181
181
|
* // },
|
|
182
182
|
* // voicemail: { // CallFlowVoicemail
|
|
183
183
|
* // url: "STRING_VALUE", // required
|
|
184
|
+
* // destinations: [
|
|
185
|
+
* // {
|
|
186
|
+
* // phone: "STRING_VALUE",
|
|
187
|
+
* // name: "STRING_VALUE",
|
|
188
|
+
* // email: "STRING_VALUE",
|
|
189
|
+
* // userId: "STRING_VALUE",
|
|
190
|
+
* // userExtension: "STRING_VALUE",
|
|
191
|
+
* // userDepartment: "STRING_VALUE",
|
|
192
|
+
* // groupId: "STRING_VALUE",
|
|
193
|
+
* // groupName: "STRING_VALUE",
|
|
194
|
+
* // },
|
|
195
|
+
* // ],
|
|
184
196
|
* // owner: "callee" || "caller" || "system",
|
|
185
197
|
* // },
|
|
186
198
|
* // },
|
|
@@ -172,7 +172,7 @@ declare const QueryConversationsCommand_base: {
|
|
|
172
172
|
* // },
|
|
173
173
|
* // fax: { // CallFlowFax
|
|
174
174
|
* // url: "STRING_VALUE", // required
|
|
175
|
-
* // status: "
|
|
175
|
+
* // status: "ok" || "error",
|
|
176
176
|
* // destinations: [
|
|
177
177
|
* // {
|
|
178
178
|
* // phone: "STRING_VALUE",
|
|
@@ -186,10 +186,22 @@ declare const QueryConversationsCommand_base: {
|
|
|
186
186
|
* // },
|
|
187
187
|
* // ],
|
|
188
188
|
* // owner: "callee" || "caller" || "system",
|
|
189
|
-
* //
|
|
189
|
+
* // error: "STRING_VALUE",
|
|
190
190
|
* // },
|
|
191
191
|
* // voicemail: { // CallFlowVoicemail
|
|
192
192
|
* // url: "STRING_VALUE", // required
|
|
193
|
+
* // destinations: [
|
|
194
|
+
* // {
|
|
195
|
+
* // phone: "STRING_VALUE",
|
|
196
|
+
* // name: "STRING_VALUE",
|
|
197
|
+
* // email: "STRING_VALUE",
|
|
198
|
+
* // userId: "STRING_VALUE",
|
|
199
|
+
* // userExtension: "STRING_VALUE",
|
|
200
|
+
* // userDepartment: "STRING_VALUE",
|
|
201
|
+
* // groupId: "STRING_VALUE",
|
|
202
|
+
* // groupName: "STRING_VALUE",
|
|
203
|
+
* // },
|
|
204
|
+
* // ],
|
|
193
205
|
* // owner: "callee" || "caller" || "system",
|
|
194
206
|
* // },
|
|
195
207
|
* // },
|
|
@@ -172,7 +172,7 @@ declare const QueryUserCallsCommand_base: {
|
|
|
172
172
|
* // },
|
|
173
173
|
* // fax: { // CallFlowFax
|
|
174
174
|
* // url: "STRING_VALUE", // required
|
|
175
|
-
* // status: "
|
|
175
|
+
* // status: "ok" || "error",
|
|
176
176
|
* // destinations: [
|
|
177
177
|
* // {
|
|
178
178
|
* // phone: "STRING_VALUE",
|
|
@@ -186,10 +186,22 @@ declare const QueryUserCallsCommand_base: {
|
|
|
186
186
|
* // },
|
|
187
187
|
* // ],
|
|
188
188
|
* // owner: "callee" || "caller" || "system",
|
|
189
|
-
* //
|
|
189
|
+
* // error: "STRING_VALUE",
|
|
190
190
|
* // },
|
|
191
191
|
* // voicemail: { // CallFlowVoicemail
|
|
192
192
|
* // url: "STRING_VALUE", // required
|
|
193
|
+
* // destinations: [
|
|
194
|
+
* // {
|
|
195
|
+
* // phone: "STRING_VALUE",
|
|
196
|
+
* // name: "STRING_VALUE",
|
|
197
|
+
* // email: "STRING_VALUE",
|
|
198
|
+
* // userId: "STRING_VALUE",
|
|
199
|
+
* // userExtension: "STRING_VALUE",
|
|
200
|
+
* // userDepartment: "STRING_VALUE",
|
|
201
|
+
* // groupId: "STRING_VALUE",
|
|
202
|
+
* // groupName: "STRING_VALUE",
|
|
203
|
+
* // },
|
|
204
|
+
* // ],
|
|
193
205
|
* // owner: "callee" || "caller" || "system",
|
|
194
206
|
* // },
|
|
195
207
|
* // },
|
|
@@ -85,15 +85,35 @@ export declare const CallRecordOwner: {
|
|
|
85
85
|
* @public
|
|
86
86
|
*/
|
|
87
87
|
export type CallRecordOwner = typeof CallRecordOwner[keyof typeof CallRecordOwner];
|
|
88
|
+
/**
|
|
89
|
+
* @public
|
|
90
|
+
* @enum
|
|
91
|
+
*/
|
|
92
|
+
export declare const CallFlowAttachmentStatus: {
|
|
93
|
+
readonly ERROR: "error";
|
|
94
|
+
readonly OK: "ok";
|
|
95
|
+
};
|
|
96
|
+
/**
|
|
97
|
+
* @public
|
|
98
|
+
*/
|
|
99
|
+
export type CallFlowAttachmentStatus = typeof CallFlowAttachmentStatus[keyof typeof CallFlowAttachmentStatus];
|
|
88
100
|
/**
|
|
89
101
|
* @public
|
|
90
102
|
*/
|
|
91
103
|
export interface CallFlowFax {
|
|
92
104
|
url: string;
|
|
93
|
-
|
|
105
|
+
/**
|
|
106
|
+
* Fax delivery status
|
|
107
|
+
* @public
|
|
108
|
+
*/
|
|
109
|
+
status?: CallFlowAttachmentStatus;
|
|
94
110
|
destinations?: (CallFlowAttachmentDestination)[];
|
|
95
111
|
owner?: CallRecordOwner;
|
|
96
|
-
|
|
112
|
+
/**
|
|
113
|
+
* Text with the reason for the error in case of unsuccessful fax delivery
|
|
114
|
+
* @public
|
|
115
|
+
*/
|
|
116
|
+
error?: string;
|
|
97
117
|
}
|
|
98
118
|
/**
|
|
99
119
|
* @public
|
|
@@ -131,6 +151,7 @@ export interface CallFlowRecording {
|
|
|
131
151
|
*/
|
|
132
152
|
export interface CallFlowVoicemail {
|
|
133
153
|
url: string;
|
|
154
|
+
destinations?: (CallFlowAttachmentDestination)[];
|
|
134
155
|
owner?: CallRecordOwner;
|
|
135
156
|
}
|
|
136
157
|
/**
|
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.27",
|
|
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",
|