@wildix/wda-stream-client 1.0.24 → 1.0.26
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.WebsocketTopic = exports.WebsocketEvent = exports.WebhookEventType = exports.PresenceEventType = exports.PresenceAnalyticsEventType = exports.ConsumeEventInputEvent = exports.SmsStatus = exports.SmsChannelType = exports.SmsConsumeEventType = exports.PresenceConsumeEventType = exports.ConferenceEventType = exports.ConferenceConsumeEventType = 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.ConferenceTranscriptionStatus = exports.ConferenceParticipantType = exports.ConferenceParticipantRole = exports.PbxLicenseType = exports.ConferenceDirection = exports.CallTranscriptionSpeaker = exports.CallFlowTranscriptionStatus = exports.CallRecordPauseReason = exports.CallRecordOwner = exports.License = exports.CallDirection = exports.ConversationStatus = exports.CallDevice = exports.CallParticipantType = exports.CallParticipantRole = exports.CallFlowAttachmentType = exports.ForbiddenException = exports.ValidationException = void 0;
|
|
3
|
+
exports.MatchNotFoundException = exports.WebsocketTopic = exports.WebsocketEvent = exports.WebhookEventType = exports.PresenceEventType = exports.PresenceAnalyticsEventType = 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.ConferenceTranscriptionStatus = exports.ConferenceParticipantType = exports.ConferenceParticipantRole = exports.PbxLicenseType = exports.ConferenceDirection = exports.CallTranscriptionSpeaker = exports.CallFlowTranscriptionStatus = exports.CallRecordPauseReason = exports.CallRecordOwner = exports.License = exports.CallDirection = exports.ConversationStatus = exports.CallDevice = exports.CallParticipantType = exports.CallParticipantRole = exports.CallFlowAttachmentType = exports.ForbiddenException = exports.ValidationException = void 0;
|
|
4
4
|
const WdaStreamServiceException_1 = require("./WdaStreamServiceException");
|
|
5
5
|
class ValidationException extends WdaStreamServiceException_1.WdaStreamServiceException {
|
|
6
6
|
constructor(opts) {
|
|
@@ -220,6 +220,11 @@ exports.ChatEventType = {
|
|
|
220
220
|
MANAGER_MISSED_EVENT: "ChatAnalyticsManagerMissedEvent",
|
|
221
221
|
RECORD_EVENT: "ChatAnalyticsRecordEvent",
|
|
222
222
|
};
|
|
223
|
+
exports.ConferenceConsumeDirection = {
|
|
224
|
+
INBOUND: "inbound",
|
|
225
|
+
INTERNAL: "internal",
|
|
226
|
+
OUTBOUND: "outbound",
|
|
227
|
+
};
|
|
223
228
|
exports.ConferenceConsumeEventType = {
|
|
224
229
|
CONFERENCE_END: "CONFERENCE.END",
|
|
225
230
|
CONFERENCE_JOIN: "CONFERENCE.JOIN",
|
|
@@ -241,6 +246,12 @@ exports.ConferenceEventType = {
|
|
|
241
246
|
RECORD_EVENT: "ConferenceAnalyticsRecordEvent",
|
|
242
247
|
TRANSCRIPTION_RECORD_EVENT: "ConferenceAnalyticsTranscriptionRecordEvent",
|
|
243
248
|
};
|
|
249
|
+
exports.ConferenceTranscriptionSentiment = {
|
|
250
|
+
MIXED: "MIXED",
|
|
251
|
+
NEGATIVE: "NEGATIVE",
|
|
252
|
+
NEUTRAL: "NEUTRAL",
|
|
253
|
+
POSITIVE: "POSITIVE",
|
|
254
|
+
};
|
|
244
255
|
exports.PresenceConsumeEventType = {
|
|
245
256
|
PRESENCE: "PRESENCE",
|
|
246
257
|
PRESENCE_TELEPHONY: "PRESENCE.TELEPHONY",
|
|
@@ -215,6 +215,11 @@ export const ChatEventType = {
|
|
|
215
215
|
MANAGER_MISSED_EVENT: "ChatAnalyticsManagerMissedEvent",
|
|
216
216
|
RECORD_EVENT: "ChatAnalyticsRecordEvent",
|
|
217
217
|
};
|
|
218
|
+
export const ConferenceConsumeDirection = {
|
|
219
|
+
INBOUND: "inbound",
|
|
220
|
+
INTERNAL: "internal",
|
|
221
|
+
OUTBOUND: "outbound",
|
|
222
|
+
};
|
|
218
223
|
export const ConferenceConsumeEventType = {
|
|
219
224
|
CONFERENCE_END: "CONFERENCE.END",
|
|
220
225
|
CONFERENCE_JOIN: "CONFERENCE.JOIN",
|
|
@@ -236,6 +241,12 @@ export const ConferenceEventType = {
|
|
|
236
241
|
RECORD_EVENT: "ConferenceAnalyticsRecordEvent",
|
|
237
242
|
TRANSCRIPTION_RECORD_EVENT: "ConferenceAnalyticsTranscriptionRecordEvent",
|
|
238
243
|
};
|
|
244
|
+
export const ConferenceTranscriptionSentiment = {
|
|
245
|
+
MIXED: "MIXED",
|
|
246
|
+
NEGATIVE: "NEGATIVE",
|
|
247
|
+
NEUTRAL: "NEUTRAL",
|
|
248
|
+
POSITIVE: "POSITIVE",
|
|
249
|
+
};
|
|
239
250
|
export const PresenceConsumeEventType = {
|
|
240
251
|
PRESENCE: "PRESENCE",
|
|
241
252
|
PRESENCE_TELEPHONY: "PRESENCE.TELEPHONY",
|
|
@@ -347,7 +347,7 @@ declare const ConsumeEventCommand_base: {
|
|
|
347
347
|
* time: Number("long"), // required
|
|
348
348
|
* type: "CONFERENCE.START" || "CONFERENCE.JOIN" || "CONFERENCE.RECORD_START" || "CONFERENCE.TRANSCRIPTION" || "CONFERENCE.LEAVE" || "CONFERENCE.RECORD_STOP" || "CONFERENCE.KEEP_ALIVE" || "CONFERENCE.TIMEFRAMES" || "CONFERENCE.END", // required
|
|
349
349
|
* provider: "STRING_VALUE",
|
|
350
|
-
* direction: "
|
|
350
|
+
* direction: "internal" || "inbound" || "outbound",
|
|
351
351
|
* service: "STRING_VALUE",
|
|
352
352
|
* data: { // ConferenceStartConsumeEventData
|
|
353
353
|
* company: "STRING_VALUE",
|
|
@@ -395,7 +395,7 @@ declare const ConsumeEventCommand_base: {
|
|
|
395
395
|
* time: Number("long"), // required
|
|
396
396
|
* start: Number("long"), // required
|
|
397
397
|
* end: Number("long"), // required
|
|
398
|
-
* sentiment: "
|
|
398
|
+
* sentiment: "POSITIVE" || "NEGATIVE" || "MIXED" || "NEUTRAL",
|
|
399
399
|
* final: true || false,
|
|
400
400
|
* },
|
|
401
401
|
* },
|
|
@@ -1379,6 +1379,19 @@ export interface ConferenceAnalyticsTranscriptionRecordEvent {
|
|
|
1379
1379
|
subject?: string;
|
|
1380
1380
|
participants?: Record<string, ConferenceParticipant>;
|
|
1381
1381
|
}
|
|
1382
|
+
/**
|
|
1383
|
+
* @public
|
|
1384
|
+
* @enum
|
|
1385
|
+
*/
|
|
1386
|
+
export declare const ConferenceConsumeDirection: {
|
|
1387
|
+
readonly INBOUND: "inbound";
|
|
1388
|
+
readonly INTERNAL: "internal";
|
|
1389
|
+
readonly OUTBOUND: "outbound";
|
|
1390
|
+
};
|
|
1391
|
+
/**
|
|
1392
|
+
* @public
|
|
1393
|
+
*/
|
|
1394
|
+
export type ConferenceConsumeDirection = typeof ConferenceConsumeDirection[keyof typeof ConferenceConsumeDirection];
|
|
1382
1395
|
/**
|
|
1383
1396
|
* @public
|
|
1384
1397
|
* @enum
|
|
@@ -1517,7 +1530,7 @@ export interface ConferenceStartConsumeEvent {
|
|
|
1517
1530
|
time: number;
|
|
1518
1531
|
type: ConferenceConsumeEventType;
|
|
1519
1532
|
provider?: string;
|
|
1520
|
-
direction?:
|
|
1533
|
+
direction?: ConferenceConsumeDirection;
|
|
1521
1534
|
service?: string;
|
|
1522
1535
|
data: ConferenceStartConsumeEventData;
|
|
1523
1536
|
}
|
|
@@ -1537,6 +1550,20 @@ export interface ConferenceTimeFramesConsumeEvent {
|
|
|
1537
1550
|
type: ConferenceConsumeEventType;
|
|
1538
1551
|
data: ConferenceTimeFramesConsumeEventData;
|
|
1539
1552
|
}
|
|
1553
|
+
/**
|
|
1554
|
+
* @public
|
|
1555
|
+
* @enum
|
|
1556
|
+
*/
|
|
1557
|
+
export declare const ConferenceTranscriptionSentiment: {
|
|
1558
|
+
readonly MIXED: "MIXED";
|
|
1559
|
+
readonly NEGATIVE: "NEGATIVE";
|
|
1560
|
+
readonly NEUTRAL: "NEUTRAL";
|
|
1561
|
+
readonly POSITIVE: "POSITIVE";
|
|
1562
|
+
};
|
|
1563
|
+
/**
|
|
1564
|
+
* @public
|
|
1565
|
+
*/
|
|
1566
|
+
export type ConferenceTranscriptionSentiment = typeof ConferenceTranscriptionSentiment[keyof typeof ConferenceTranscriptionSentiment];
|
|
1540
1567
|
/**
|
|
1541
1568
|
* @public
|
|
1542
1569
|
*/
|
|
@@ -1548,7 +1575,7 @@ export interface ConferenceTranscriptionConsumeEventData {
|
|
|
1548
1575
|
time: number;
|
|
1549
1576
|
start: number;
|
|
1550
1577
|
end: number;
|
|
1551
|
-
sentiment?:
|
|
1578
|
+
sentiment?: ConferenceTranscriptionSentiment;
|
|
1552
1579
|
final?: boolean;
|
|
1553
1580
|
}
|
|
1554
1581
|
/**
|
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.
|
|
4
|
+
"version": "1.0.26",
|
|
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",
|