@wildix/wda-stream-client 1.0.8 → 1.0.9

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.MatchNotFoundException = exports.ConsumeEventInputEvent = exports.SmsStatus = exports.SmsChannelType = exports.SmsConsumeEventType = exports.ChatConsumeEventType = exports.ChatTag = exports.ChatStatus = exports.ChatParticipantType = exports.ChatParticipantRole = exports.ChatDirection = exports.ChannelType = exports.CallFlowConsumeStatus = exports.CallEndConsume = exports.CallFlowAttachmentConsumeType = exports.CallFlowStatus = exports.LiveEventType = exports.CallConsumeEventType = exports.ConferenceTranscriptionStatus = exports.ConferenceParticipantType = exports.ConferenceParticipantRole = exports.ConferenceDirection = exports.CallTranscriptionSpeaker = exports.License = exports.CallFlowTranscriptionStatus = exports.CallDirection = exports.ConversationStatus = exports.CallDevice = exports.CallParticipantType = exports.CallParticipantRole = exports.CallFlowAttachmentType = exports.CallEndBy = exports.ValidationException = exports.ForbiddenException = void 0;
3
+ exports.MatchNotFoundException = exports.ConsumeEventInputEvent = exports.SmsStatus = exports.SmsChannelType = exports.SmsConsumeEventType = exports.ChatConsumeEventType = exports.ChatTag = exports.ChatStatus = exports.ChatParticipantType = exports.ChatParticipantRole = exports.ChatDirection = exports.ChannelType = exports.CallFlowConsumeStatus = exports.CallEndConsume = exports.CallFlowAttachmentConsumeType = exports.CallEndBy = exports.CallFlowStatus = exports.LiveEventType = exports.CallConsumeEventType = exports.ConferenceTranscriptionStatus = exports.ConferenceParticipantType = exports.ConferenceParticipantRole = exports.ConferenceDirection = exports.CallTranscriptionSpeaker = exports.CallFlowTranscriptionStatus = exports.License = exports.CallDirection = exports.ConversationStatus = exports.CallDevice = exports.CallParticipantType = exports.CallParticipantRole = exports.CallFlowAttachmentType = exports.ValidationException = exports.ForbiddenException = void 0;
4
4
  const WdaStreamServiceException_1 = require("./WdaStreamServiceException");
5
5
  class ForbiddenException extends WdaStreamServiceException_1.WdaStreamServiceException {
6
6
  constructor(opts) {
@@ -28,10 +28,6 @@ class ValidationException extends WdaStreamServiceException_1.WdaStreamServiceEx
28
28
  }
29
29
  }
30
30
  exports.ValidationException = ValidationException;
31
- exports.CallEndBy = {
32
- CALLEE: "CALLEE",
33
- CALLER: "CALLER",
34
- };
35
31
  exports.CallFlowAttachmentType = {
36
32
  FAX: "FAX",
37
33
  VOICEMAIL: "VOICEMAIL",
@@ -65,13 +61,13 @@ exports.CallDirection = {
65
61
  OUTBOUND: "OUTBOUND",
66
62
  UNDEFINED: "UNDEFINED",
67
63
  };
64
+ exports.License = {
65
+ XBEES: "x-bees",
66
+ };
68
67
  exports.CallFlowTranscriptionStatus = {
69
68
  AVAILABLE: "AVAILABLE",
70
69
  UNAVAILABLE: "UNAVAILABLE",
71
70
  };
72
- exports.License = {
73
- XBEES: "x-bees",
74
- };
75
71
  exports.CallTranscriptionSpeaker = {
76
72
  CALLEE: "callee",
77
73
  CALLER: "caller",
@@ -130,6 +126,10 @@ exports.CallFlowStatus = {
130
126
  HOLD: "HOLD",
131
127
  TALKING: "TALKING",
132
128
  };
129
+ exports.CallEndBy = {
130
+ CALLEE: "CALLEE",
131
+ CALLER: "CALLER",
132
+ };
133
133
  exports.CallFlowAttachmentConsumeType = {
134
134
  FAX: "fax",
135
135
  VOICEMAIL: "voicemail",
@@ -23,10 +23,6 @@ export class ValidationException extends __BaseException {
23
23
  Object.setPrototypeOf(this, ValidationException.prototype);
24
24
  }
25
25
  }
26
- export const CallEndBy = {
27
- CALLEE: "CALLEE",
28
- CALLER: "CALLER",
29
- };
30
26
  export const CallFlowAttachmentType = {
31
27
  FAX: "FAX",
32
28
  VOICEMAIL: "VOICEMAIL",
@@ -60,13 +56,13 @@ export const CallDirection = {
60
56
  OUTBOUND: "OUTBOUND",
61
57
  UNDEFINED: "UNDEFINED",
62
58
  };
59
+ export const License = {
60
+ XBEES: "x-bees",
61
+ };
63
62
  export const CallFlowTranscriptionStatus = {
64
63
  AVAILABLE: "AVAILABLE",
65
64
  UNAVAILABLE: "UNAVAILABLE",
66
65
  };
67
- export const License = {
68
- XBEES: "x-bees",
69
- };
70
66
  export const CallTranscriptionSpeaker = {
71
67
  CALLEE: "callee",
72
68
  CALLER: "caller",
@@ -125,6 +121,10 @@ export const CallFlowStatus = {
125
121
  HOLD: "HOLD",
126
122
  TALKING: "TALKING",
127
123
  };
124
+ export const CallEndBy = {
125
+ CALLEE: "CALLEE",
126
+ CALLER: "CALLER",
127
+ };
128
128
  export const CallFlowAttachmentConsumeType = {
129
129
  FAX: "fax",
130
130
  VOICEMAIL: "voicemail",
@@ -72,7 +72,9 @@ export interface DescribeEventCommandOutput extends DescribeEventOutput, __Metad
72
72
  * // start: "STRING_VALUE", // required
73
73
  * // flows: [ // CallAnalyticsLiveProgressEventFlowList // required
74
74
  * // { // CallAnalyticsLiveProgressEventFlow
75
+ * // flowIndex: Number("int"), // required
75
76
  * // startTime: Number("long"), // required
77
+ * // endTime: Number("long"),
76
78
  * // connectTime: Number("long"),
77
79
  * // talkTime: Number("long"),
78
80
  * // waitTime: Number("long"),
@@ -231,7 +233,9 @@ export interface DescribeEventCommandOutput extends DescribeEventOutput, __Metad
231
233
  * // licenses: "<LicensesList>", // required
232
234
  * // flows: [ // CallAnalyticsRecordEventFlowsList // required
233
235
  * // { // CallAnalyticsRecordEventFlow
236
+ * // flowIndex: Number("int"), // required
234
237
  * // startTime: Number("long"), // required
238
+ * // endTime: Number("long"),
235
239
  * // connectTime: Number("long"),
236
240
  * // talkTime: Number("long"),
237
241
  * // waitTime: Number("long"),
@@ -318,7 +322,8 @@ export interface DescribeEventCommandOutput extends DescribeEventOutput, __Metad
318
322
  * // totalConnectTime: Number("int"), // required
319
323
  * // totalTalkTime: Number("int"), // required
320
324
  * // totalWaitTime: Number("int"), // required
321
- * // type: "STRING_VALUE",
325
+ * // type: "chat" || "chat_complete" || "chat_interrupted" || "chat_missed" || "call" || "call_complete" || "call_interrupted" || "call_transcription" || "call_transcription_complete" || "conference" || "conference_complete" || "conference_interrupted" || "conference_transcription" || "conference_transcription_complete", // required
326
+ * // complete: true || false, // required
322
327
  * // },
323
328
  * // CallAnalyticsTranscriptionRecordEvent: { // CallAnalyticsTranscriptionRecordEvent
324
329
  * // id: "STRING_VALUE", // required
@@ -343,7 +348,8 @@ export interface DescribeEventCommandOutput extends DescribeEventOutput, __Metad
343
348
  * // },
344
349
  * // },
345
350
  * // ],
346
- * // type: "STRING_VALUE",
351
+ * // type: "chat" || "chat_complete" || "chat_interrupted" || "chat_missed" || "call" || "call_complete" || "call_interrupted" || "call_transcription" || "call_transcription_complete" || "conference" || "conference_complete" || "conference_interrupted" || "conference_transcription" || "conference_transcription_complete", // required
352
+ * // complete: true || false, // required
347
353
  * // },
348
354
  * // ConferenceAnalyticsLiveProgressEvent: { // ConferenceAnalyticsLiveProgressEvent
349
355
  * // id: "STRING_VALUE", // required
@@ -444,7 +450,7 @@ export interface DescribeEventCommandOutput extends DescribeEventOutput, __Metad
444
450
  * // },
445
451
  * // ],
446
452
  * // transcriptionStatus: "AVAILABLE" || "UNAVAILABLE", // required
447
- * // type: "STRING_VALUE",
453
+ * // type: "chat" || "chat_complete" || "chat_interrupted" || "chat_missed" || "call" || "call_complete" || "call_interrupted" || "call_transcription" || "call_transcription_complete" || "conference" || "conference_complete" || "conference_interrupted" || "conference_transcription" || "conference_transcription_complete", // required
448
454
  * // transcriptions: "STRING_VALUE",
449
455
  * // },
450
456
  * // ConferenceAnalyticsTranscriptionRecordEvent: { // ConferenceAnalyticsTranscriptionRecordEvent
@@ -467,7 +473,7 @@ export interface DescribeEventCommandOutput extends DescribeEventOutput, __Metad
467
473
  * // },
468
474
  * // },
469
475
  * // ],
470
- * // type: "STRING_VALUE",
476
+ * // type: "chat" || "chat_complete" || "chat_interrupted" || "chat_missed" || "call" || "call_complete" || "call_interrupted" || "call_transcription" || "call_transcription_complete" || "conference" || "conference_complete" || "conference_interrupted" || "conference_transcription" || "conference_transcription_complete", // required
471
477
  * // subject: "STRING_VALUE",
472
478
  * // participants: { // ConferenceParticipantsMap
473
479
  * // "<keys>": "<ConferenceParticipant>",
@@ -51,7 +51,9 @@ export interface GetConversationsCommandOutput extends GetConversationsOutput, _
51
51
  * // start: "STRING_VALUE", // required
52
52
  * // flows: [ // CallAnalyticsLiveProgressEventFlowList // required
53
53
  * // { // CallAnalyticsLiveProgressEventFlow
54
+ * // flowIndex: Number("int"), // required
54
55
  * // startTime: Number("long"), // required
56
+ * // endTime: Number("long"),
55
57
  * // connectTime: Number("long"),
56
58
  * // talkTime: Number("long"),
57
59
  * // waitTime: Number("long"),
@@ -22,18 +22,6 @@ export declare class ValidationException extends __BaseException {
22
22
  */
23
23
  constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
24
24
  }
25
- /**
26
- * @public
27
- * @enum
28
- */
29
- export declare const CallEndBy: {
30
- readonly CALLEE: "CALLEE";
31
- readonly CALLER: "CALLER";
32
- };
33
- /**
34
- * @public
35
- */
36
- export type CallEndBy = typeof CallEndBy[keyof typeof CallEndBy];
37
25
  /**
38
26
  * @public
39
27
  */
@@ -151,62 +139,25 @@ export type CallDirection = typeof CallDirection[keyof typeof CallDirection];
151
139
  * @public
152
140
  * @enum
153
141
  */
154
- export declare const CallFlowTranscriptionStatus: {
155
- readonly AVAILABLE: "AVAILABLE";
156
- readonly UNAVAILABLE: "UNAVAILABLE";
142
+ export declare const License: {
143
+ readonly XBEES: "x-bees";
157
144
  };
158
145
  /**
159
146
  * @public
160
147
  */
161
- export type CallFlowTranscriptionStatus = typeof CallFlowTranscriptionStatus[keyof typeof CallFlowTranscriptionStatus];
162
- /**
163
- * @public
164
- */
165
- export interface CallAnalyticsRecordEventFlow {
166
- startTime: number;
167
- connectTime?: number;
168
- talkTime?: number;
169
- waitTime?: number;
170
- caller?: CallParticipant;
171
- callee?: CallParticipant;
172
- service?: string;
173
- serviceNumber?: string;
174
- destination?: string;
175
- direction?: CallDirection | string;
176
- trunkName?: string;
177
- trunkDirection?: string;
178
- queueName?: string;
179
- queueId?: string;
180
- tags?: (string)[];
181
- flags?: (string)[];
182
- callerMos?: string;
183
- calleeMos?: string;
184
- xhoppersConfId?: string;
185
- recordings?: (string)[];
186
- mergeWith?: string;
187
- splitReason?: string;
188
- splitTransferType?: string;
189
- remotePhone?: string;
190
- remotePhoneCountryCode?: number;
191
- remotePhoneCountryCodeStr?: string;
192
- remotePhoneLocation?: string;
193
- callStatus?: ConversationStatus | string;
194
- transcriptionStatus: CallFlowTranscriptionStatus | string;
195
- attachment?: string;
196
- attachmentType?: CallFlowAttachmentType | string;
197
- attachmentDestinations?: (CallFlowAttachmentDestination)[];
198
- }
148
+ export type License = typeof License[keyof typeof License];
199
149
  /**
200
150
  * @public
201
151
  * @enum
202
152
  */
203
- export declare const License: {
204
- readonly XBEES: "x-bees";
153
+ export declare const CallFlowTranscriptionStatus: {
154
+ readonly AVAILABLE: "AVAILABLE";
155
+ readonly UNAVAILABLE: "UNAVAILABLE";
205
156
  };
206
157
  /**
207
158
  * @public
208
159
  */
209
- export type License = typeof License[keyof typeof License];
160
+ export type CallFlowTranscriptionStatus = typeof CallFlowTranscriptionStatus[keyof typeof CallFlowTranscriptionStatus];
210
161
  /**
211
162
  * @public
212
163
  * @enum
@@ -230,15 +181,6 @@ export interface CallTranscriptionChunk {
230
181
  language?: string;
231
182
  isFinal: boolean;
232
183
  }
233
- /**
234
- * @public
235
- */
236
- export interface CallTranscription {
237
- flowIndex: number;
238
- flowStartTime: number;
239
- callStartTime: number;
240
- chunks: Record<string, CallTranscriptionChunk>;
241
- }
242
184
  /**
243
185
  * @public
244
186
  * @enum
@@ -340,14 +282,6 @@ export interface ConferenceTranscriptionChunk {
340
282
  language?: string;
341
283
  isFinal: boolean;
342
284
  }
343
- /**
344
- * @public
345
- */
346
- export interface ConferenceTranscription {
347
- start: number;
348
- end: number;
349
- chunks: Record<string, ConferenceTranscriptionChunk>;
350
- }
351
285
  /**
352
286
  * @public
353
287
  */
@@ -483,7 +417,9 @@ export type CallFlowStatus = typeof CallFlowStatus[keyof typeof CallFlowStatus];
483
417
  * @public
484
418
  */
485
419
  export interface CallAnalyticsLiveProgressEventFlow {
420
+ flowIndex: number;
486
421
  startTime: number;
422
+ endTime?: number;
487
423
  connectTime?: number;
488
424
  talkTime?: number;
489
425
  waitTime?: number;
@@ -562,6 +498,57 @@ export interface CallAnalyticsLiveTranscriptionEvent {
562
498
  chunk: CallTranscriptionChunk;
563
499
  participant: CallParticipant;
564
500
  }
501
+ /**
502
+ * @public
503
+ * @enum
504
+ */
505
+ export declare const CallEndBy: {
506
+ readonly CALLEE: "CALLEE";
507
+ readonly CALLER: "CALLER";
508
+ };
509
+ /**
510
+ * @public
511
+ */
512
+ export type CallEndBy = typeof CallEndBy[keyof typeof CallEndBy];
513
+ /**
514
+ * @public
515
+ */
516
+ export interface CallAnalyticsRecordEventFlow {
517
+ flowIndex: number;
518
+ startTime: number;
519
+ endTime?: number;
520
+ connectTime?: number;
521
+ talkTime?: number;
522
+ waitTime?: number;
523
+ caller?: CallParticipant;
524
+ callee?: CallParticipant;
525
+ service?: string;
526
+ serviceNumber?: string;
527
+ destination?: string;
528
+ direction?: CallDirection | string;
529
+ trunkName?: string;
530
+ trunkDirection?: string;
531
+ queueName?: string;
532
+ queueId?: string;
533
+ tags?: (string)[];
534
+ flags?: (string)[];
535
+ callerMos?: string;
536
+ calleeMos?: string;
537
+ xhoppersConfId?: string;
538
+ recordings?: (string)[];
539
+ mergeWith?: string;
540
+ splitReason?: string;
541
+ splitTransferType?: string;
542
+ remotePhone?: string;
543
+ remotePhoneCountryCode?: number;
544
+ remotePhoneCountryCodeStr?: string;
545
+ remotePhoneLocation?: string;
546
+ callStatus?: ConversationStatus | string;
547
+ transcriptionStatus: CallFlowTranscriptionStatus | string;
548
+ attachment?: string;
549
+ attachmentType?: CallFlowAttachmentType | string;
550
+ attachmentDestinations?: (CallFlowAttachmentDestination)[];
551
+ }
565
552
  /**
566
553
  * @public
567
554
  */
@@ -578,7 +565,17 @@ export interface CallAnalyticsRecordEvent {
578
565
  totalConnectTime: number;
579
566
  totalTalkTime: number;
580
567
  totalWaitTime: number;
581
- type?: string;
568
+ type: LiveEventType | string;
569
+ complete: boolean;
570
+ }
571
+ /**
572
+ * @public
573
+ */
574
+ export interface CallTranscription {
575
+ flowIndex: number;
576
+ flowStartTime: number;
577
+ callStartTime: number;
578
+ chunks: Record<string, CallTranscriptionChunk>;
582
579
  }
583
580
  /**
584
581
  * @public
@@ -590,7 +587,8 @@ export interface CallAnalyticsTranscriptionRecordEvent {
590
587
  company: string;
591
588
  licenses: (License | string)[];
592
589
  transcriptions: (CallTranscription)[];
593
- type?: string;
590
+ type: LiveEventType | string;
591
+ complete: boolean;
594
592
  }
595
593
  /**
596
594
  * @public
@@ -1111,9 +1109,17 @@ export interface ConferenceAnalyticsRecordEvent {
1111
1109
  participants: (ConferenceAnalyticsRecordParticipant)[];
1112
1110
  recordings?: (ConferenceRecording)[];
1113
1111
  transcriptionStatus: ConferenceTranscriptionStatus | string;
1114
- type?: string;
1112
+ type: LiveEventType | string;
1115
1113
  transcriptions?: string;
1116
1114
  }
1115
+ /**
1116
+ * @public
1117
+ */
1118
+ export interface ConferenceTranscription {
1119
+ start: number;
1120
+ end: number;
1121
+ chunks: Record<string, ConferenceTranscriptionChunk>;
1122
+ }
1117
1123
  /**
1118
1124
  * @public
1119
1125
  */
@@ -1122,7 +1128,7 @@ export interface ConferenceAnalyticsTranscriptionRecordEvent {
1122
1128
  time: number;
1123
1129
  company: string;
1124
1130
  transcriptions: (ConferenceTranscription)[];
1125
- type?: string;
1131
+ type: LiveEventType | string;
1126
1132
  subject?: string;
1127
1133
  participants?: Record<string, ConferenceParticipant>;
1128
1134
  }
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.8",
4
+ "version": "1.0.9",
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",