@wildix/wda-stream-client 1.0.45 → 1.0.46

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,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ConsumeEventInputEvent = exports.SmsStatus = exports.SmsChannelType = exports.SmsConsumeEventType = exports.PresenceConsumeEventType = exports.ConferenceTranscriptionSentiment = exports.ConferenceEventType = exports.ConferenceConsumeEventType = exports.ConferenceConsumeDirection = exports.ChatEventType = exports.ChatConsumeEventType = exports.ChatTag = exports.ChatStatus = exports.ChatParticipantType = exports.ChatParticipantRole = exports.ChatDirection = exports.ChannelType = exports.CallFlowConsumeStatus = exports.CallEventType = exports.CallEndConsume = exports.CallFlowAttachmentConsumeType = exports.CallEndBy = exports.CallFlowStatus = exports.CallAnalyticsLiveProgressEventTrigger = exports.LiveEventType = exports.CallConsumeEventType = exports.InsightsQuality = exports.ConferenceTranscriptionStatus = exports.ConferenceParticipantType = exports.ConferenceParticipantRole = exports.PbxLicenseType = exports.ConferenceDirection = exports.CallTranscriptionSpeaker = exports.RecordType = exports.CallFlowTranscriptionStatus = exports.License = exports.CallDevice = exports.CallParticipantType = exports.CallParticipantRole = exports.CallFlowAttachmentType = exports.CallFlowAttachment = exports.CallRecordPauseReason = exports.CallRecordOwner = exports.WhatsAppStatus = exports.WhatsAppEventType = exports.BadRequestException = exports.ForbiddenException = exports.ConversationStatus = exports.CallDirection = exports.ValidationException = void 0;
4
- exports.PresenceNotAvailableException = exports.TelephonyStatus = exports.PresenceStatus = exports.MatchNotFoundException = exports.WebsocketEvent = exports.WebhookEventType = exports.PresenceEventType = exports.PresenceAnalyticsEventType = exports.WebsocketTopic = exports.WebsocketAction = void 0;
3
+ exports.SmsStatus = exports.SmsChannelType = exports.SmsConsumeEventType = exports.PresenceConsumeEventType = exports.ConferenceTranscriptionSentiment = exports.ConferenceEventType = exports.ConferenceConsumeEventType = exports.ConferenceConsumeDirection = exports.ChatEventType = exports.ChatConsumeEventType = exports.ChatTag = exports.ChatStatus = exports.ChatParticipantType = exports.ChatParticipantRole = exports.ChatDirection = exports.ChannelType = exports.CallFlowConsumeStatus = exports.CallEventType = exports.CallEndConsume = exports.CallFlowAttachmentConsumeType = exports.CallEndBy = exports.CallFlowStatus = exports.CallAnalyticsLiveProgressEventTrigger = exports.LiveEventType = exports.CallConsumeEventType = exports.InsightsQuality = exports.ConferenceTranscriptionStatus = exports.ConferenceParticipantType = exports.ConferenceParticipantRole = exports.PbxLicenseType = exports.ConferenceDirection = 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.WhatsAppStatus = exports.WhatsAppEventType = exports.BadRequestException = exports.ForbiddenException = exports.ConversationStatus = exports.CallDirection = exports.ValidationException = void 0;
4
+ exports.PresenceNotAvailableException = exports.TelephonyStatus = exports.PresenceStatus = exports.MatchNotFoundException = exports.WebsocketEvent = exports.WebhookEventType = exports.PresenceEventType = exports.PresenceAnalyticsEventType = exports.WebsocketTopic = exports.WebsocketAction = exports.ConsumeEventInputEvent = void 0;
5
5
  const WdaStreamServiceException_1 = require("./WdaStreamServiceException");
6
6
  class ValidationException extends WdaStreamServiceException_1.WdaStreamServiceException {
7
7
  constructor(opts) {
@@ -69,6 +69,10 @@ exports.CallRecordOwner = {
69
69
  CALLER: "caller",
70
70
  SYSTEM: "system",
71
71
  };
72
+ exports.CallFlowAttachmentStatus = {
73
+ ERROR: "error",
74
+ OK: "ok",
75
+ };
72
76
  exports.CallRecordPauseReason = {
73
77
  HOLD: "hold",
74
78
  PAUSE: "pause",
@@ -62,6 +62,10 @@ export const CallRecordOwner = {
62
62
  CALLER: "caller",
63
63
  SYSTEM: "system",
64
64
  };
65
+ export const CallFlowAttachmentStatus = {
66
+ ERROR: "error",
67
+ OK: "ok",
68
+ };
65
69
  export const CallRecordPauseReason = {
66
70
  HOLD: "hold",
67
71
  PAUSE: "pause",
@@ -303,6 +303,8 @@ declare const ConsumeEventCommand_base: {
303
303
  * groupName: "STRING_VALUE",
304
304
  * },
305
305
  * ],
306
+ * status: "ok" || "error",
307
+ * error: "STRING_VALUE",
306
308
  * },
307
309
  * },
308
310
  * callTranscription: { // CallTranscribeConsumeEvent
@@ -248,7 +248,7 @@ declare const DescribeEventCommand_base: {
248
248
  * // },
249
249
  * // fax: { // CallFlowFax
250
250
  * // url: "STRING_VALUE", // required
251
- * // status: "STRING_VALUE",
251
+ * // status: "ok" || "error",
252
252
  * // destinations: [
253
253
  * // {
254
254
  * // phone: "STRING_VALUE",
@@ -262,10 +262,22 @@ declare const DescribeEventCommand_base: {
262
262
  * // },
263
263
  * // ],
264
264
  * // owner: "callee" || "caller" || "system",
265
- * // errorMsg: "STRING_VALUE",
265
+ * // error: "STRING_VALUE",
266
266
  * // },
267
267
  * // voicemail: { // CallFlowVoicemail
268
268
  * // url: "STRING_VALUE", // required
269
+ * // destinations: [
270
+ * // {
271
+ * // phone: "STRING_VALUE",
272
+ * // name: "STRING_VALUE",
273
+ * // email: "STRING_VALUE",
274
+ * // userId: "STRING_VALUE",
275
+ * // userExtension: "STRING_VALUE",
276
+ * // userDepartment: "STRING_VALUE",
277
+ * // groupId: "STRING_VALUE",
278
+ * // groupName: "STRING_VALUE",
279
+ * // },
280
+ * // ],
269
281
  * // owner: "callee" || "caller" || "system",
270
282
  * // },
271
283
  * // },
@@ -466,7 +478,7 @@ declare const DescribeEventCommand_base: {
466
478
  * // },
467
479
  * // fax: {
468
480
  * // url: "STRING_VALUE", // required
469
- * // status: "STRING_VALUE",
481
+ * // status: "ok" || "error",
470
482
  * // destinations: [
471
483
  * // {
472
484
  * // phone: "STRING_VALUE",
@@ -480,10 +492,11 @@ declare const DescribeEventCommand_base: {
480
492
  * // },
481
493
  * // ],
482
494
  * // owner: "callee" || "caller" || "system",
483
- * // errorMsg: "STRING_VALUE",
495
+ * // error: "STRING_VALUE",
484
496
  * // },
485
497
  * // voicemail: {
486
498
  * // url: "STRING_VALUE", // required
499
+ * // destinations: "<CallFlowAttachmentDestinationList>",
487
500
  * // owner: "callee" || "caller" || "system",
488
501
  * // },
489
502
  * // },
@@ -1161,13 +1174,14 @@ declare const DescribeEventCommand_base: {
1161
1174
  * // recording: "<CallFlowRecording>",
1162
1175
  * // fax: {
1163
1176
  * // url: "STRING_VALUE", // required
1164
- * // status: "STRING_VALUE",
1177
+ * // status: "ok" || "error",
1165
1178
  * // destinations: "<CallFlowAttachmentDestinationList>",
1166
1179
  * // owner: "callee" || "caller" || "system",
1167
- * // errorMsg: "STRING_VALUE",
1180
+ * // error: "STRING_VALUE",
1168
1181
  * // },
1169
1182
  * // voicemail: {
1170
1183
  * // url: "STRING_VALUE", // required
1184
+ * // destinations: "<CallFlowAttachmentDestinationList>",
1171
1185
  * // owner: "callee" || "caller" || "system",
1172
1186
  * // },
1173
1187
  * // },
@@ -1300,13 +1314,14 @@ declare const DescribeEventCommand_base: {
1300
1314
  * // recording: "<CallFlowRecording>",
1301
1315
  * // fax: {
1302
1316
  * // url: "STRING_VALUE", // required
1303
- * // status: "STRING_VALUE",
1317
+ * // status: "ok" || "error",
1304
1318
  * // destinations: "<CallFlowAttachmentDestinationList>",
1305
1319
  * // owner: "callee" || "caller" || "system",
1306
- * // errorMsg: "STRING_VALUE",
1320
+ * // error: "STRING_VALUE",
1307
1321
  * // },
1308
1322
  * // voicemail: {
1309
1323
  * // url: "STRING_VALUE", // required
1324
+ * // destinations: "<CallFlowAttachmentDestinationList>",
1310
1325
  * // owner: "callee" || "caller" || "system",
1311
1326
  * // },
1312
1327
  * // },
@@ -1386,13 +1401,14 @@ declare const DescribeEventCommand_base: {
1386
1401
  * // recording: "<CallFlowRecording>",
1387
1402
  * // fax: {
1388
1403
  * // url: "STRING_VALUE", // required
1389
- * // status: "STRING_VALUE",
1404
+ * // status: "ok" || "error",
1390
1405
  * // destinations: "<CallFlowAttachmentDestinationList>",
1391
1406
  * // owner: "callee" || "caller" || "system",
1392
- * // errorMsg: "STRING_VALUE",
1407
+ * // error: "STRING_VALUE",
1393
1408
  * // },
1394
1409
  * // voicemail: {
1395
1410
  * // url: "STRING_VALUE", // required
1411
+ * // destinations: "<CallFlowAttachmentDestinationList>",
1396
1412
  * // owner: "callee" || "caller" || "system",
1397
1413
  * // },
1398
1414
  * // },
@@ -176,7 +176,7 @@ declare const GetConversationsCommand_base: {
176
176
  * // },
177
177
  * // fax: { // CallFlowFax
178
178
  * // url: "STRING_VALUE", // required
179
- * // status: "STRING_VALUE",
179
+ * // status: "ok" || "error",
180
180
  * // destinations: [
181
181
  * // {
182
182
  * // phone: "STRING_VALUE",
@@ -190,10 +190,22 @@ declare const GetConversationsCommand_base: {
190
190
  * // },
191
191
  * // ],
192
192
  * // owner: "callee" || "caller" || "system",
193
- * // errorMsg: "STRING_VALUE",
193
+ * // error: "STRING_VALUE",
194
194
  * // },
195
195
  * // voicemail: { // CallFlowVoicemail
196
196
  * // url: "STRING_VALUE", // required
197
+ * // destinations: [
198
+ * // {
199
+ * // phone: "STRING_VALUE",
200
+ * // name: "STRING_VALUE",
201
+ * // email: "STRING_VALUE",
202
+ * // userId: "STRING_VALUE",
203
+ * // userExtension: "STRING_VALUE",
204
+ * // userDepartment: "STRING_VALUE",
205
+ * // groupId: "STRING_VALUE",
206
+ * // groupName: "STRING_VALUE",
207
+ * // },
208
+ * // ],
197
209
  * // owner: "callee" || "caller" || "system",
198
210
  * // },
199
211
  * // },
@@ -140,15 +140,35 @@ export declare const CallRecordOwner: {
140
140
  * @public
141
141
  */
142
142
  export type CallRecordOwner = typeof CallRecordOwner[keyof typeof CallRecordOwner];
143
+ /**
144
+ * @public
145
+ * @enum
146
+ */
147
+ export declare const CallFlowAttachmentStatus: {
148
+ readonly ERROR: "error";
149
+ readonly OK: "ok";
150
+ };
151
+ /**
152
+ * @public
153
+ */
154
+ export type CallFlowAttachmentStatus = typeof CallFlowAttachmentStatus[keyof typeof CallFlowAttachmentStatus];
143
155
  /**
144
156
  * @public
145
157
  */
146
158
  export interface CallFlowFax {
147
159
  url: string;
148
- status?: string;
160
+ /**
161
+ * Fax delivery status
162
+ * @public
163
+ */
164
+ status?: CallFlowAttachmentStatus;
149
165
  destinations?: (CallFlowAttachmentDestination)[];
150
166
  owner?: CallRecordOwner;
151
- errorMsg?: string;
167
+ /**
168
+ * Text with the reason for the error in case of unsuccessful fax delivery
169
+ * @public
170
+ */
171
+ error?: string;
152
172
  }
153
173
  /**
154
174
  * @public
@@ -186,6 +206,7 @@ export interface CallFlowRecording {
186
206
  */
187
207
  export interface CallFlowVoicemail {
188
208
  url: string;
209
+ destinations?: (CallFlowAttachmentDestination)[];
189
210
  owner?: CallRecordOwner;
190
211
  }
191
212
  /**
@@ -1078,6 +1099,8 @@ export interface CallAttachmentConsumeEventData {
1078
1099
  type: CallFlowAttachmentConsumeType;
1079
1100
  url: string;
1080
1101
  destinations?: (CallFlowAttachmentDestination)[];
1102
+ status?: CallFlowAttachmentStatus;
1103
+ error?: string;
1081
1104
  }
1082
1105
  /**
1083
1106
  * @public
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wildix/wda-stream-client",
3
3
  "description": "@wildix/wda-stream-client client",
4
- "version": "1.0.45",
4
+ "version": "1.0.46",
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",