@wildix/wda-stream-client 1.1.44 → 1.1.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
3
|
exports.ChatConsumeEventType = 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.MessageWhatsAppStatus = exports.MessageType = exports.MessageSmsStatus = exports.Element = exports.ActionElement = exports.ButtonVariant = exports.ButtonHandler = exports.ChatTag = exports.ChatStatus = exports.ChatParticipantType = exports.ChatParticipantRole = exports.ChatDirection = exports.ChannelWhatsAppStatus = exports.ChannelContextSource = exports.ChannelContextEventAttendeeStatus = exports.ChannelType = exports.ChannelAccess = 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.ConversationStatus = exports.CallDirection = exports.ValidationException = exports.ForbiddenException = void 0;
|
|
4
|
-
exports.WebsocketEvent = exports.WebhookEventType = exports.ServiceEventType = exports.ServiceCallEventType = exports.PresenceEventType = exports.PresenceAnalyticsEventType = exports.WebsocketTopic = exports.WebsocketAction = exports.ConsumeEventInputEvent = exports.UsageEventType = exports.LanguageDetection = exports.SmsStatus = exports.SmsChannelType = exports.SmsConsumeEventType = exports.ServiceCallAction = exports.ServiceConsumeEventType = exports.ServiceAgentType = exports.
|
|
4
|
+
exports.WebsocketEvent = exports.WebhookEventType = exports.ServiceEventType = exports.ServiceCallEventType = exports.ServiceAnalyticsEventTrigger = exports.PresenceEventType = exports.PresenceAnalyticsEventType = exports.WebsocketTopic = exports.WebsocketAction = exports.ConsumeEventInputEvent = exports.UsageEventType = exports.LanguageDetection = exports.SmsStatus = exports.SmsChannelType = exports.SmsConsumeEventType = exports.ServiceCallAction = exports.ServiceConsumeEventType = exports.ServiceAgentType = exports.PresenceConsumeEventType = exports.ConferenceTranscriptionSentiment = exports.ConferenceEventType = exports.ConferenceConsumeEventType = exports.ConferenceConsumeDirection = exports.ChatEventType = void 0;
|
|
5
5
|
const WdaStreamServiceException_1 = require("./WdaStreamServiceException");
|
|
6
6
|
class ForbiddenException extends WdaStreamServiceException_1.WdaStreamServiceException {
|
|
7
7
|
name = "ForbiddenException";
|
|
@@ -376,17 +376,6 @@ exports.PresenceConsumeEventType = {
|
|
|
376
376
|
PRESENCE: "PRESENCE",
|
|
377
377
|
PRESENCE_TELEPHONY: "PRESENCE.TELEPHONY",
|
|
378
378
|
};
|
|
379
|
-
exports.ServiceAnalyticsEventTrigger = {
|
|
380
|
-
SERVICE_AGENT_JOIN: "service.agent_join",
|
|
381
|
-
SERVICE_AGENT_LEAVE: "service.agent_leave",
|
|
382
|
-
SERVICE_AGENT_UPDATE: "service.agent_update",
|
|
383
|
-
SERVICE_CALL_END: "service.call_end",
|
|
384
|
-
SERVICE_CALL_INIT: "service.call_init",
|
|
385
|
-
SERVICE_CALL_UPDATE: "service.call_update",
|
|
386
|
-
SERVICE_END: "service.end",
|
|
387
|
-
SERVICE_INIT: "service.init",
|
|
388
|
-
SERVICE_UPDATE: "service.update",
|
|
389
|
-
};
|
|
390
379
|
exports.ServiceAgentType = {
|
|
391
380
|
DYNAMIC: "DYNAMIC",
|
|
392
381
|
STATIC: "STATIC",
|
|
@@ -537,6 +526,17 @@ exports.PresenceEventType = {
|
|
|
537
526
|
STATUS_EVENT: "PresenceAnalyticsStatusEvent",
|
|
538
527
|
TELEPHONY_EVENT: "PresenceAnalyticsTelephonyEvent",
|
|
539
528
|
};
|
|
529
|
+
exports.ServiceAnalyticsEventTrigger = {
|
|
530
|
+
SERVICE_AGENT_JOIN: "service.agent_join",
|
|
531
|
+
SERVICE_AGENT_LEAVE: "service.agent_leave",
|
|
532
|
+
SERVICE_AGENT_UPDATE: "service.agent_update",
|
|
533
|
+
SERVICE_CALL_END: "service.call_end",
|
|
534
|
+
SERVICE_CALL_INIT: "service.call_init",
|
|
535
|
+
SERVICE_CALL_UPDATE: "service.call_update",
|
|
536
|
+
SERVICE_END: "service.end",
|
|
537
|
+
SERVICE_INIT: "service.init",
|
|
538
|
+
SERVICE_UPDATE: "service.update",
|
|
539
|
+
};
|
|
540
540
|
exports.ServiceCallEventType = {
|
|
541
541
|
LIVE_COMPLETE_EVENT: "ServiceCallAnalyticsLiveCompleteEvent",
|
|
542
542
|
LIVE_PROGRESS_EVENT: "ServiceCallAnalyticsLiveProgressEvent",
|
|
@@ -370,17 +370,6 @@ export const PresenceConsumeEventType = {
|
|
|
370
370
|
PRESENCE: "PRESENCE",
|
|
371
371
|
PRESENCE_TELEPHONY: "PRESENCE.TELEPHONY",
|
|
372
372
|
};
|
|
373
|
-
export const ServiceAnalyticsEventTrigger = {
|
|
374
|
-
SERVICE_AGENT_JOIN: "service.agent_join",
|
|
375
|
-
SERVICE_AGENT_LEAVE: "service.agent_leave",
|
|
376
|
-
SERVICE_AGENT_UPDATE: "service.agent_update",
|
|
377
|
-
SERVICE_CALL_END: "service.call_end",
|
|
378
|
-
SERVICE_CALL_INIT: "service.call_init",
|
|
379
|
-
SERVICE_CALL_UPDATE: "service.call_update",
|
|
380
|
-
SERVICE_END: "service.end",
|
|
381
|
-
SERVICE_INIT: "service.init",
|
|
382
|
-
SERVICE_UPDATE: "service.update",
|
|
383
|
-
};
|
|
384
373
|
export const ServiceAgentType = {
|
|
385
374
|
DYNAMIC: "DYNAMIC",
|
|
386
375
|
STATIC: "STATIC",
|
|
@@ -531,6 +520,17 @@ export const PresenceEventType = {
|
|
|
531
520
|
STATUS_EVENT: "PresenceAnalyticsStatusEvent",
|
|
532
521
|
TELEPHONY_EVENT: "PresenceAnalyticsTelephonyEvent",
|
|
533
522
|
};
|
|
523
|
+
export const ServiceAnalyticsEventTrigger = {
|
|
524
|
+
SERVICE_AGENT_JOIN: "service.agent_join",
|
|
525
|
+
SERVICE_AGENT_LEAVE: "service.agent_leave",
|
|
526
|
+
SERVICE_AGENT_UPDATE: "service.agent_update",
|
|
527
|
+
SERVICE_CALL_END: "service.call_end",
|
|
528
|
+
SERVICE_CALL_INIT: "service.call_init",
|
|
529
|
+
SERVICE_CALL_UPDATE: "service.call_update",
|
|
530
|
+
SERVICE_END: "service.end",
|
|
531
|
+
SERVICE_INIT: "service.init",
|
|
532
|
+
SERVICE_UPDATE: "service.update",
|
|
533
|
+
};
|
|
534
534
|
export const ServiceCallEventType = {
|
|
535
535
|
LIVE_COMPLETE_EVENT: "ServiceCallAnalyticsLiveCompleteEvent",
|
|
536
536
|
LIVE_PROGRESS_EVENT: "ServiceCallAnalyticsLiveProgressEvent",
|
|
@@ -363,6 +363,7 @@ declare const ConsumeEventCommand_base: {
|
|
|
363
363
|
* cds: { // CdsTranscriptionPayloadReference
|
|
364
364
|
* id: "STRING_VALUE", // required
|
|
365
365
|
* },
|
|
366
|
+
* transcriptionLanguage: "STRING_VALUE",
|
|
366
367
|
* },
|
|
367
368
|
* },
|
|
368
369
|
* conferenceTimeFrames: { // ConferenceTimeFramesConsumeEvent
|
|
@@ -877,7 +878,6 @@ declare const ConsumeEventCommand_base: {
|
|
|
877
878
|
* company: "STRING_VALUE", // required
|
|
878
879
|
* type: "SERVICE.INIT" || "SERVICE.UPDATE" || "SERVICE.END" || "SERVICE.CALL_INIT" || "SERVICE.CALL_UPDATE" || "SERVICE.CALL_END" || "SERVICE.AGENT_JOIN" || "SERVICE.AGENT_UPDATE" || "SERVICE.AGENT_LEAVE", // required
|
|
879
880
|
* data: { // ServiceConsumeEventData
|
|
880
|
-
* eventTrigger: "service.init" || "service.update" || "service.end" || "service.call_init" || "service.call_update" || "service.call_end" || "service.agent_join" || "service.agent_update" || "service.agent_leave", // required
|
|
881
881
|
* name: "STRING_VALUE",
|
|
882
882
|
* strategy: "STRING_VALUE",
|
|
883
883
|
* maxCalls: "STRING_VALUE",
|
|
@@ -905,7 +905,6 @@ declare const ConsumeEventCommand_base: {
|
|
|
905
905
|
* company: "STRING_VALUE", // required
|
|
906
906
|
* type: "SERVICE.INIT" || "SERVICE.UPDATE" || "SERVICE.END" || "SERVICE.CALL_INIT" || "SERVICE.CALL_UPDATE" || "SERVICE.CALL_END" || "SERVICE.AGENT_JOIN" || "SERVICE.AGENT_UPDATE" || "SERVICE.AGENT_LEAVE", // required
|
|
907
907
|
* data: {
|
|
908
|
-
* eventTrigger: "service.init" || "service.update" || "service.end" || "service.call_init" || "service.call_update" || "service.call_end" || "service.agent_join" || "service.agent_update" || "service.agent_leave", // required
|
|
909
908
|
* name: "STRING_VALUE",
|
|
910
909
|
* strategy: "STRING_VALUE",
|
|
911
910
|
* maxCalls: "STRING_VALUE",
|
|
@@ -951,7 +950,6 @@ declare const ConsumeEventCommand_base: {
|
|
|
951
950
|
* relatedAgents: [ // ServiceCallAgentsList
|
|
952
951
|
* "STRING_VALUE",
|
|
953
952
|
* ],
|
|
954
|
-
* eventTrigger: "service.init" || "service.update" || "service.end" || "service.call_init" || "service.call_update" || "service.call_end" || "service.agent_join" || "service.agent_update" || "service.agent_leave", // required
|
|
955
953
|
* },
|
|
956
954
|
* },
|
|
957
955
|
* serviceCallUpdate: { // ServiceCallUpdateConsumeEvent
|
|
@@ -972,7 +970,6 @@ declare const ConsumeEventCommand_base: {
|
|
|
972
970
|
* relatedAgents: [
|
|
973
971
|
* "STRING_VALUE",
|
|
974
972
|
* ],
|
|
975
|
-
* eventTrigger: "service.init" || "service.update" || "service.end" || "service.call_init" || "service.call_update" || "service.call_end" || "service.agent_join" || "service.agent_update" || "service.agent_leave", // required
|
|
976
973
|
* },
|
|
977
974
|
* },
|
|
978
975
|
* serviceCallEnd: { // ServiceCallEndConsumeEvent
|
|
@@ -993,7 +990,6 @@ declare const ConsumeEventCommand_base: {
|
|
|
993
990
|
* relatedAgents: [
|
|
994
991
|
* "STRING_VALUE",
|
|
995
992
|
* ],
|
|
996
|
-
* eventTrigger: "service.init" || "service.update" || "service.end" || "service.call_init" || "service.call_update" || "service.call_end" || "service.agent_join" || "service.agent_update" || "service.agent_leave", // required
|
|
997
993
|
* },
|
|
998
994
|
* },
|
|
999
995
|
* serviceAgentJoin: { // ServiceAgentJoinConsumeEvent
|
|
@@ -1010,7 +1006,6 @@ declare const ConsumeEventCommand_base: {
|
|
|
1010
1006
|
* lastQueueCallEnd: Number("long"),
|
|
1011
1007
|
* userExtension: "STRING_VALUE",
|
|
1012
1008
|
* name: "STRING_VALUE",
|
|
1013
|
-
* eventTrigger: "service.init" || "service.update" || "service.end" || "service.call_init" || "service.call_update" || "service.call_end" || "service.agent_join" || "service.agent_update" || "service.agent_leave", // required
|
|
1014
1009
|
* },
|
|
1015
1010
|
* },
|
|
1016
1011
|
* serviceAgentUpdate: { // ServiceAgentUpdateConsumeEvent
|
|
@@ -1027,7 +1022,6 @@ declare const ConsumeEventCommand_base: {
|
|
|
1027
1022
|
* lastQueueCallEnd: Number("long"),
|
|
1028
1023
|
* userExtension: "STRING_VALUE",
|
|
1029
1024
|
* name: "STRING_VALUE",
|
|
1030
|
-
* eventTrigger: "service.init" || "service.update" || "service.end" || "service.call_init" || "service.call_update" || "service.call_end" || "service.agent_join" || "service.agent_update" || "service.agent_leave", // required
|
|
1031
1025
|
* },
|
|
1032
1026
|
* },
|
|
1033
1027
|
* serviceAgentLeave: { // ServiceAgentLeaveConsumeEvent
|
|
@@ -1044,7 +1038,6 @@ declare const ConsumeEventCommand_base: {
|
|
|
1044
1038
|
* lastQueueCallEnd: Number("long"),
|
|
1045
1039
|
* userExtension: "STRING_VALUE",
|
|
1046
1040
|
* name: "STRING_VALUE",
|
|
1047
|
-
* eventTrigger: "service.init" || "service.update" || "service.end" || "service.call_init" || "service.call_update" || "service.call_end" || "service.agent_join" || "service.agent_update" || "service.agent_leave", // required
|
|
1048
1041
|
* },
|
|
1049
1042
|
* },
|
|
1050
1043
|
* usageStt: { // TranscriptionUsageEvent
|
|
@@ -1940,6 +1940,7 @@ export interface CallPostTranscriptionConsumeEventData {
|
|
|
1940
1940
|
* @public
|
|
1941
1941
|
*/
|
|
1942
1942
|
cds: CdsTranscriptionPayloadReference;
|
|
1943
|
+
transcriptionLanguage?: string | undefined;
|
|
1943
1944
|
}
|
|
1944
1945
|
/**
|
|
1945
1946
|
* Event emitted after transcription payload is uploaded to CDS.
|
|
@@ -2809,25 +2810,6 @@ export interface PresenceTelephonyConsumeEvent {
|
|
|
2809
2810
|
type: PresenceConsumeEventType;
|
|
2810
2811
|
data: PresenceTelephonyConsumeEventData;
|
|
2811
2812
|
}
|
|
2812
|
-
/**
|
|
2813
|
-
* @public
|
|
2814
|
-
* @enum
|
|
2815
|
-
*/
|
|
2816
|
-
export declare const ServiceAnalyticsEventTrigger: {
|
|
2817
|
-
readonly SERVICE_AGENT_JOIN: "service.agent_join";
|
|
2818
|
-
readonly SERVICE_AGENT_LEAVE: "service.agent_leave";
|
|
2819
|
-
readonly SERVICE_AGENT_UPDATE: "service.agent_update";
|
|
2820
|
-
readonly SERVICE_CALL_END: "service.call_end";
|
|
2821
|
-
readonly SERVICE_CALL_INIT: "service.call_init";
|
|
2822
|
-
readonly SERVICE_CALL_UPDATE: "service.call_update";
|
|
2823
|
-
readonly SERVICE_END: "service.end";
|
|
2824
|
-
readonly SERVICE_INIT: "service.init";
|
|
2825
|
-
readonly SERVICE_UPDATE: "service.update";
|
|
2826
|
-
};
|
|
2827
|
-
/**
|
|
2828
|
-
* @public
|
|
2829
|
-
*/
|
|
2830
|
-
export type ServiceAnalyticsEventTrigger = typeof ServiceAnalyticsEventTrigger[keyof typeof ServiceAnalyticsEventTrigger];
|
|
2831
2813
|
/**
|
|
2832
2814
|
* @public
|
|
2833
2815
|
* @enum
|
|
@@ -2851,7 +2833,6 @@ export interface ServiceAgentConsumeEventData {
|
|
|
2851
2833
|
lastQueueCallEnd?: number | undefined;
|
|
2852
2834
|
userExtension?: string | undefined;
|
|
2853
2835
|
name?: string | undefined;
|
|
2854
|
-
eventTrigger: ServiceAnalyticsEventTrigger;
|
|
2855
2836
|
}
|
|
2856
2837
|
/**
|
|
2857
2838
|
* @public
|
|
@@ -2937,7 +2918,6 @@ export interface ServiceCallConsumeEventData {
|
|
|
2937
2918
|
action?: ServiceCallAction | undefined;
|
|
2938
2919
|
customer?: ServiceCustomer | undefined;
|
|
2939
2920
|
relatedAgents?: (string)[] | undefined;
|
|
2940
|
-
eventTrigger: ServiceAnalyticsEventTrigger;
|
|
2941
2921
|
}
|
|
2942
2922
|
/**
|
|
2943
2923
|
* @public
|
|
@@ -3010,7 +2990,6 @@ export interface ServiceAgent {
|
|
|
3010
2990
|
* @public
|
|
3011
2991
|
*/
|
|
3012
2992
|
export interface ServiceConsumeEventData {
|
|
3013
|
-
eventTrigger: ServiceAnalyticsEventTrigger;
|
|
3014
2993
|
name?: string | undefined;
|
|
3015
2994
|
strategy?: string | undefined;
|
|
3016
2995
|
maxCalls?: string | undefined;
|
|
@@ -5309,6 +5288,25 @@ export interface ServiceAnalyticsLiveCompleteEvent {
|
|
|
5309
5288
|
licenses: (License)[];
|
|
5310
5289
|
event: LiveEventType;
|
|
5311
5290
|
}
|
|
5291
|
+
/**
|
|
5292
|
+
* @public
|
|
5293
|
+
* @enum
|
|
5294
|
+
*/
|
|
5295
|
+
export declare const ServiceAnalyticsEventTrigger: {
|
|
5296
|
+
readonly SERVICE_AGENT_JOIN: "service.agent_join";
|
|
5297
|
+
readonly SERVICE_AGENT_LEAVE: "service.agent_leave";
|
|
5298
|
+
readonly SERVICE_AGENT_UPDATE: "service.agent_update";
|
|
5299
|
+
readonly SERVICE_CALL_END: "service.call_end";
|
|
5300
|
+
readonly SERVICE_CALL_INIT: "service.call_init";
|
|
5301
|
+
readonly SERVICE_CALL_UPDATE: "service.call_update";
|
|
5302
|
+
readonly SERVICE_END: "service.end";
|
|
5303
|
+
readonly SERVICE_INIT: "service.init";
|
|
5304
|
+
readonly SERVICE_UPDATE: "service.update";
|
|
5305
|
+
};
|
|
5306
|
+
/**
|
|
5307
|
+
* @public
|
|
5308
|
+
*/
|
|
5309
|
+
export type ServiceAnalyticsEventTrigger = typeof ServiceAnalyticsEventTrigger[keyof typeof ServiceAnalyticsEventTrigger];
|
|
5312
5310
|
/**
|
|
5313
5311
|
* @public
|
|
5314
5312
|
*/
|
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.1.
|
|
4
|
+
"version": "1.1.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",
|