@wildix/wda-stream-client 1.1.45 → 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.ServiceAnalyticsEventTrigger = exports.PresenceConsumeEventType = exports.ConferenceTranscriptionSentiment = exports.ConferenceEventType = exports.ConferenceConsumeEventType = exports.ConferenceConsumeDirection = exports.ChatEventType = void 0;
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",
@@ -878,7 +878,6 @@ declare const ConsumeEventCommand_base: {
878
878
  * company: "STRING_VALUE", // required
879
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
880
880
  * data: { // ServiceConsumeEventData
881
- * 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
882
881
  * name: "STRING_VALUE",
883
882
  * strategy: "STRING_VALUE",
884
883
  * maxCalls: "STRING_VALUE",
@@ -906,7 +905,6 @@ declare const ConsumeEventCommand_base: {
906
905
  * company: "STRING_VALUE", // required
907
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
908
907
  * data: {
909
- * 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
910
908
  * name: "STRING_VALUE",
911
909
  * strategy: "STRING_VALUE",
912
910
  * maxCalls: "STRING_VALUE",
@@ -952,7 +950,6 @@ declare const ConsumeEventCommand_base: {
952
950
  * relatedAgents: [ // ServiceCallAgentsList
953
951
  * "STRING_VALUE",
954
952
  * ],
955
- * 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
956
953
  * },
957
954
  * },
958
955
  * serviceCallUpdate: { // ServiceCallUpdateConsumeEvent
@@ -973,7 +970,6 @@ declare const ConsumeEventCommand_base: {
973
970
  * relatedAgents: [
974
971
  * "STRING_VALUE",
975
972
  * ],
976
- * 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
977
973
  * },
978
974
  * },
979
975
  * serviceCallEnd: { // ServiceCallEndConsumeEvent
@@ -994,7 +990,6 @@ declare const ConsumeEventCommand_base: {
994
990
  * relatedAgents: [
995
991
  * "STRING_VALUE",
996
992
  * ],
997
- * 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
998
993
  * },
999
994
  * },
1000
995
  * serviceAgentJoin: { // ServiceAgentJoinConsumeEvent
@@ -1011,7 +1006,6 @@ declare const ConsumeEventCommand_base: {
1011
1006
  * lastQueueCallEnd: Number("long"),
1012
1007
  * userExtension: "STRING_VALUE",
1013
1008
  * name: "STRING_VALUE",
1014
- * 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
1015
1009
  * },
1016
1010
  * },
1017
1011
  * serviceAgentUpdate: { // ServiceAgentUpdateConsumeEvent
@@ -1028,7 +1022,6 @@ declare const ConsumeEventCommand_base: {
1028
1022
  * lastQueueCallEnd: Number("long"),
1029
1023
  * userExtension: "STRING_VALUE",
1030
1024
  * name: "STRING_VALUE",
1031
- * 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
1032
1025
  * },
1033
1026
  * },
1034
1027
  * serviceAgentLeave: { // ServiceAgentLeaveConsumeEvent
@@ -1045,7 +1038,6 @@ declare const ConsumeEventCommand_base: {
1045
1038
  * lastQueueCallEnd: Number("long"),
1046
1039
  * userExtension: "STRING_VALUE",
1047
1040
  * name: "STRING_VALUE",
1048
- * 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
1049
1041
  * },
1050
1042
  * },
1051
1043
  * usageStt: { // TranscriptionUsageEvent
@@ -2810,25 +2810,6 @@ export interface PresenceTelephonyConsumeEvent {
2810
2810
  type: PresenceConsumeEventType;
2811
2811
  data: PresenceTelephonyConsumeEventData;
2812
2812
  }
2813
- /**
2814
- * @public
2815
- * @enum
2816
- */
2817
- export declare const ServiceAnalyticsEventTrigger: {
2818
- readonly SERVICE_AGENT_JOIN: "service.agent_join";
2819
- readonly SERVICE_AGENT_LEAVE: "service.agent_leave";
2820
- readonly SERVICE_AGENT_UPDATE: "service.agent_update";
2821
- readonly SERVICE_CALL_END: "service.call_end";
2822
- readonly SERVICE_CALL_INIT: "service.call_init";
2823
- readonly SERVICE_CALL_UPDATE: "service.call_update";
2824
- readonly SERVICE_END: "service.end";
2825
- readonly SERVICE_INIT: "service.init";
2826
- readonly SERVICE_UPDATE: "service.update";
2827
- };
2828
- /**
2829
- * @public
2830
- */
2831
- export type ServiceAnalyticsEventTrigger = typeof ServiceAnalyticsEventTrigger[keyof typeof ServiceAnalyticsEventTrigger];
2832
2813
  /**
2833
2814
  * @public
2834
2815
  * @enum
@@ -2852,7 +2833,6 @@ export interface ServiceAgentConsumeEventData {
2852
2833
  lastQueueCallEnd?: number | undefined;
2853
2834
  userExtension?: string | undefined;
2854
2835
  name?: string | undefined;
2855
- eventTrigger: ServiceAnalyticsEventTrigger;
2856
2836
  }
2857
2837
  /**
2858
2838
  * @public
@@ -2938,7 +2918,6 @@ export interface ServiceCallConsumeEventData {
2938
2918
  action?: ServiceCallAction | undefined;
2939
2919
  customer?: ServiceCustomer | undefined;
2940
2920
  relatedAgents?: (string)[] | undefined;
2941
- eventTrigger: ServiceAnalyticsEventTrigger;
2942
2921
  }
2943
2922
  /**
2944
2923
  * @public
@@ -3011,7 +2990,6 @@ export interface ServiceAgent {
3011
2990
  * @public
3012
2991
  */
3013
2992
  export interface ServiceConsumeEventData {
3014
- eventTrigger: ServiceAnalyticsEventTrigger;
3015
2993
  name?: string | undefined;
3016
2994
  strategy?: string | undefined;
3017
2995
  maxCalls?: string | undefined;
@@ -5310,6 +5288,25 @@ export interface ServiceAnalyticsLiveCompleteEvent {
5310
5288
  licenses: (License)[];
5311
5289
  event: LiveEventType;
5312
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];
5313
5310
  /**
5314
5311
  * @public
5315
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.45",
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",