@wildix/wda-history-client 1.0.25 → 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.
@@ -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) {
@@ -52,9 +52,13 @@ class CallNotFoundException extends WdaHistoryServiceException_1.WdaHistoryServi
52
52
  }
53
53
  exports.CallNotFoundException = CallNotFoundException;
54
54
  exports.CallRecordOwner = {
55
- CALLEE: "CALLEE",
56
- CALLER: "CALLER",
57
- SYSTEM: "SYSTEM",
55
+ CALLEE: "callee",
56
+ CALLER: "caller",
57
+ SYSTEM: "system",
58
+ };
59
+ exports.CallFlowAttachmentStatus = {
60
+ ERROR: "error",
61
+ OK: "ok",
58
62
  };
59
63
  exports.CallRecordPauseReason = {
60
64
  HOLD: "hold",
@@ -46,9 +46,13 @@ export class CallNotFoundException extends __BaseException {
46
46
  }
47
47
  }
48
48
  export const CallRecordOwner = {
49
- CALLEE: "CALLEE",
50
- CALLER: "CALLER",
51
- SYSTEM: "SYSTEM",
49
+ CALLEE: "callee",
50
+ CALLER: "caller",
51
+ SYSTEM: "system",
52
+ };
53
+ export const CallFlowAttachmentStatus = {
54
+ ERROR: "error",
55
+ OK: "ok",
52
56
  };
53
57
  export const CallRecordPauseReason = {
54
58
  HOLD: "hold",
@@ -110,7 +110,7 @@ declare const GetCallCommand_base: {
110
110
  * // fileName: "STRING_VALUE", // required
111
111
  * // start: Number("long"), // required
112
112
  * // end: Number("long"), // required
113
- * // owner: "CALLEE" || "CALLER" || "SYSTEM", // required
113
+ * // owner: "callee" || "caller" || "system", // required
114
114
  * // url: "STRING_VALUE", // required
115
115
  * // pauses: [ // CallRecordPausesList // required
116
116
  * // { // CallRecordPause
@@ -151,7 +151,7 @@ declare const GetCallCommand_base: {
151
151
  * // fileName: "STRING_VALUE", // required
152
152
  * // start: Number("long"), // required
153
153
  * // end: Number("long"), // required
154
- * // owner: "CALLEE" || "CALLER" || "SYSTEM", // required
154
+ * // owner: "callee" || "caller" || "system", // required
155
155
  * // url: "STRING_VALUE", // required
156
156
  * // pauses: [ // required
157
157
  * // {
@@ -163,7 +163,7 @@ declare const GetCallCommand_base: {
163
163
  * // },
164
164
  * // fax: { // CallFlowFax
165
165
  * // url: "STRING_VALUE", // required
166
- * // status: "STRING_VALUE", // required
166
+ * // status: "ok" || "error",
167
167
  * // destinations: [
168
168
  * // {
169
169
  * // phone: "STRING_VALUE",
@@ -176,12 +176,24 @@ declare const GetCallCommand_base: {
176
176
  * // groupName: "STRING_VALUE",
177
177
  * // },
178
178
  * // ],
179
- * // owner: "CALLEE" || "CALLER" || "SYSTEM",
180
- * // errorMsg: "STRING_VALUE",
179
+ * // owner: "callee" || "caller" || "system",
180
+ * // error: "STRING_VALUE",
181
181
  * // },
182
182
  * // voicemail: { // CallFlowVoicemail
183
183
  * // url: "STRING_VALUE", // required
184
- * // owner: "CALLEE" || "CALLER" || "SYSTEM",
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
+ * // ],
196
+ * // owner: "callee" || "caller" || "system",
185
197
  * // },
186
198
  * // },
187
199
  * // ],
@@ -119,7 +119,7 @@ declare const QueryConversationsCommand_base: {
119
119
  * // fileName: "STRING_VALUE", // required
120
120
  * // start: Number("long"), // required
121
121
  * // end: Number("long"), // required
122
- * // owner: "CALLEE" || "CALLER" || "SYSTEM", // required
122
+ * // owner: "callee" || "caller" || "system", // required
123
123
  * // url: "STRING_VALUE", // required
124
124
  * // pauses: [ // CallRecordPausesList // required
125
125
  * // { // CallRecordPause
@@ -160,7 +160,7 @@ declare const QueryConversationsCommand_base: {
160
160
  * // fileName: "STRING_VALUE", // required
161
161
  * // start: Number("long"), // required
162
162
  * // end: Number("long"), // required
163
- * // owner: "CALLEE" || "CALLER" || "SYSTEM", // required
163
+ * // owner: "callee" || "caller" || "system", // required
164
164
  * // url: "STRING_VALUE", // required
165
165
  * // pauses: [ // required
166
166
  * // {
@@ -172,7 +172,7 @@ declare const QueryConversationsCommand_base: {
172
172
  * // },
173
173
  * // fax: { // CallFlowFax
174
174
  * // url: "STRING_VALUE", // required
175
- * // status: "STRING_VALUE", // required
175
+ * // status: "ok" || "error",
176
176
  * // destinations: [
177
177
  * // {
178
178
  * // phone: "STRING_VALUE",
@@ -185,12 +185,24 @@ declare const QueryConversationsCommand_base: {
185
185
  * // groupName: "STRING_VALUE",
186
186
  * // },
187
187
  * // ],
188
- * // owner: "CALLEE" || "CALLER" || "SYSTEM",
189
- * // errorMsg: "STRING_VALUE",
188
+ * // owner: "callee" || "caller" || "system",
189
+ * // error: "STRING_VALUE",
190
190
  * // },
191
191
  * // voicemail: { // CallFlowVoicemail
192
192
  * // url: "STRING_VALUE", // required
193
- * // owner: "CALLEE" || "CALLER" || "SYSTEM",
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
+ * // ],
205
+ * // owner: "callee" || "caller" || "system",
194
206
  * // },
195
207
  * // },
196
208
  * // ],
@@ -119,7 +119,7 @@ declare const QueryUserCallsCommand_base: {
119
119
  * // fileName: "STRING_VALUE", // required
120
120
  * // start: Number("long"), // required
121
121
  * // end: Number("long"), // required
122
- * // owner: "CALLEE" || "CALLER" || "SYSTEM", // required
122
+ * // owner: "callee" || "caller" || "system", // required
123
123
  * // url: "STRING_VALUE", // required
124
124
  * // pauses: [ // CallRecordPausesList // required
125
125
  * // { // CallRecordPause
@@ -160,7 +160,7 @@ declare const QueryUserCallsCommand_base: {
160
160
  * // fileName: "STRING_VALUE", // required
161
161
  * // start: Number("long"), // required
162
162
  * // end: Number("long"), // required
163
- * // owner: "CALLEE" || "CALLER" || "SYSTEM", // required
163
+ * // owner: "callee" || "caller" || "system", // required
164
164
  * // url: "STRING_VALUE", // required
165
165
  * // pauses: [ // required
166
166
  * // {
@@ -172,7 +172,7 @@ declare const QueryUserCallsCommand_base: {
172
172
  * // },
173
173
  * // fax: { // CallFlowFax
174
174
  * // url: "STRING_VALUE", // required
175
- * // status: "STRING_VALUE", // required
175
+ * // status: "ok" || "error",
176
176
  * // destinations: [
177
177
  * // {
178
178
  * // phone: "STRING_VALUE",
@@ -185,12 +185,24 @@ declare const QueryUserCallsCommand_base: {
185
185
  * // groupName: "STRING_VALUE",
186
186
  * // },
187
187
  * // ],
188
- * // owner: "CALLEE" || "CALLER" || "SYSTEM",
189
- * // errorMsg: "STRING_VALUE",
188
+ * // owner: "callee" || "caller" || "system",
189
+ * // error: "STRING_VALUE",
190
190
  * // },
191
191
  * // voicemail: { // CallFlowVoicemail
192
192
  * // url: "STRING_VALUE", // required
193
- * // owner: "CALLEE" || "CALLER" || "SYSTEM",
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
+ * // ],
205
+ * // owner: "callee" || "caller" || "system",
194
206
  * // },
195
207
  * // },
196
208
  * // ],
@@ -77,23 +77,43 @@ export interface CallFlowAttachmentDestination {
77
77
  * @enum
78
78
  */
79
79
  export declare const CallRecordOwner: {
80
- readonly CALLEE: "CALLEE";
81
- readonly CALLER: "CALLER";
82
- readonly SYSTEM: "SYSTEM";
80
+ readonly CALLEE: "callee";
81
+ readonly CALLER: "caller";
82
+ readonly SYSTEM: "system";
83
83
  };
84
84
  /**
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
- status: string;
105
+ /**
106
+ * Fax delivery status
107
+ * @public
108
+ */
109
+ status?: CallFlowAttachmentStatus;
94
110
  destinations?: (CallFlowAttachmentDestination)[];
95
111
  owner?: CallRecordOwner;
96
- errorMsg?: string;
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.25",
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",