@wildix/wda-history-client 1.0.26 → 1.0.28

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) {
@@ -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",
@@ -50,6 +50,10 @@ export const CallRecordOwner = {
50
50
  CALLER: "caller",
51
51
  SYSTEM: "system",
52
52
  };
53
+ export const CallFlowAttachmentStatus = {
54
+ ERROR: "error",
55
+ OK: "ok",
56
+ };
53
57
  export const CallRecordPauseReason = {
54
58
  HOLD: "hold",
55
59
  PAUSE: "pause",
@@ -163,7 +163,7 @@ declare const GetCallCommand_base: {
163
163
  * // },
164
164
  * // fax: { // CallFlowFax
165
165
  * // url: "STRING_VALUE", // required
166
- * // status: "STRING_VALUE",
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
- * // errorMsg: "STRING_VALUE",
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: "STRING_VALUE",
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
- * // errorMsg: "STRING_VALUE",
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: "STRING_VALUE",
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
- * // errorMsg: "STRING_VALUE",
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
- 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.26",
4
+ "version": "1.0.28",
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",