@voicenter-team/events-sdk 0.0.94 → 0.0.96

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.
@@ -8,7 +8,7 @@ export declare type ActiveRoomListener = (event: number | undefined) => void
8
8
 
9
9
  export declare type addRoomListener = (value: string) => void
10
10
 
11
- declare type AllDialersStatusEvent = {
11
+ export declare type AllDialersStatusEvent = {
12
12
  dialers: Array<Dialer>;
13
13
  /**
14
14
  * 0 - Connection was establishing successfully.
@@ -30,7 +30,7 @@ declare type AllDialersStatusEvent = {
30
30
 
31
31
  export declare type AllDialersStatusEventSDK = EventTypeData<EventsEnum.ALL_DIALER_STATUS>
32
32
 
33
- declare type AllExtensionStatusEvent = {
33
+ export declare type AllExtensionStatusEvent = {
34
34
  /**
35
35
  * 0 - Connection was establishing successfully.
36
36
  */
@@ -56,7 +56,7 @@ declare interface AllExtensionStatusEventExtended extends Omit<AllExtensionStatu
56
56
 
57
57
  export declare type AllExtensionStatusEventSDK = EventTypeData<EventsEnum.ALL_EXTENSION_STATUS>
58
58
 
59
- declare type AllUsersStatusEvent = {
59
+ export declare type AllUsersStatusEvent = {
60
60
  users: Array<User>;
61
61
  /**
62
62
  * 0 - Connection was establishing successfully.
@@ -144,7 +144,7 @@ declare interface CurrentCallUTCExtended extends ExtensionCall {
144
144
  callAnswered_UTC_CLIENT: number
145
145
  }
146
146
 
147
- declare type CustomData = {
147
+ export declare type CustomData = {
148
148
  /**
149
149
  * Is do not call me
150
150
  */
@@ -174,7 +174,7 @@ export declare enum DebugOption {
174
174
  FULL = "full"
175
175
  }
176
176
 
177
- declare type Dialer = {
177
+ export declare type Dialer = {
178
178
  /**
179
179
  * Code
180
180
  */
@@ -202,7 +202,7 @@ declare type Dialer = {
202
202
  statistics: string;
203
203
  };
204
204
 
205
- declare type DialerEvent = {
205
+ export declare type DialerEvent = {
206
206
  data: Dialer;
207
207
  /**
208
208
  * callerID
@@ -249,6 +249,7 @@ export declare enum DoNotCallMeStatusCodeEnum {
249
249
 
250
250
  declare type Error_2 = {
251
251
  };
252
+ export { Error_2 as Error }
252
253
 
253
254
  export declare type ErrorSDK = Error_2
254
255
 
@@ -472,7 +473,7 @@ export declare type EventWrappedSocketDataMap = {
472
473
  [K in EventTypeNames]: WrappedSocketEvent<K>
473
474
  }
474
475
 
475
- declare type Extension = {
476
+ export declare type Extension = {
476
477
  calls: Array<ExtensionCall>;
477
478
  /**
478
479
  * Number
@@ -534,7 +535,7 @@ declare type Extension = {
534
535
  lastAnsweredCallEventEpoch: number;
535
536
  };
536
537
 
537
- declare type ExtensionCall = {
538
+ export declare type ExtensionCall = {
538
539
  /**
539
540
  * Ip
540
541
  */
@@ -646,7 +647,7 @@ declare interface ExtensionCallsUTCExtended extends ExtensionUTCExtended {
646
647
  calls?: Array<CurrentCallUTCExtended>
647
648
  }
648
649
 
649
- declare type ExtensionEvent = {
650
+ export declare type ExtensionEvent = {
650
651
  data: Extension;
651
652
  cause?: ExtensionHangupCauseEnum;
652
653
  reason: ExtensionEventReasonEnum;
@@ -716,7 +717,7 @@ export declare enum ExtensionHangupCauseEnum {
716
717
 
717
718
  export declare type ExtensionSDK = ExtensionCallsUTCExtended | ExtensionCallsEnded
718
719
 
719
- declare type ExtensionsUpdated = string;
720
+ export declare type ExtensionsUpdated = string;
720
721
 
721
722
  export declare type ExtensionsUpdatedSDK = EventTypeData<EventsEnum.EXTENSIONS_UPDATED>
722
723
 
@@ -759,7 +760,7 @@ export declare interface ExternalLoginResponse<T> {
759
760
  */
760
761
  export declare type GenericEventWrapper = EventWrappedSocketDataMap[EventTypeNames]
761
762
 
762
- declare type KeepAliveResponseEvent = {
763
+ export declare type KeepAliveResponseEvent = {
763
764
  /**
764
765
  * Is ok
765
766
  */
@@ -837,7 +838,7 @@ export declare interface LoginSessionPayload {
837
838
  password?: string
838
839
  }
839
840
 
840
- declare type LoginStatusEvent = {
841
+ export declare type LoginStatusEvent = {
841
842
  queues: Array<Queue>;
842
843
  /**
843
844
  * 0 - Connection was establishing successfully.
@@ -850,11 +851,11 @@ declare type LoginStatusEvent = {
850
851
  /**
851
852
  * Server time at the moment of the event
852
853
  */
853
- servertime: number;
854
+ serverTime: number;
854
855
  /**
855
856
  * Difference in time between server and client
856
857
  */
857
- servertimeoffset: number;
858
+ serverTimeOffset: number;
858
859
  };
859
860
 
860
861
  export declare type LoginStatusEventSDK = EventTypeData<EventsEnum.LOGIN_STATUS>
@@ -863,7 +864,7 @@ declare interface LoginStatusEventUTCExtended extends Omit<LoginStatusEvent, 'qu
863
864
  queues: Array<QueueSDK>
864
865
  }
865
866
 
866
- declare type LoginSuccessEvent = {
867
+ export declare type LoginSuccessEvent = {
867
868
  /**
868
869
  * 0 - Connection was establishing successfully.
869
870
  */
@@ -889,7 +890,7 @@ export declare enum LoginType {
889
890
  TOKEN = "Token"
890
891
  }
891
892
 
892
- declare type OnlineStatusEvent = {
893
+ export declare type OnlineStatusEvent = {
893
894
  /**
894
895
  * which server sdk trying to connect
895
896
  */
@@ -917,7 +918,7 @@ export declare interface OpenSIPSEventMap {
917
918
  changeCallStatus: changeCallStatusListener
918
919
  }
919
920
 
920
- declare type Queue = {
921
+ export declare type Queue = {
921
922
  Calls: Array<QueueCall>;
922
923
  /**
923
924
  * User id
@@ -945,7 +946,7 @@ declare type Queue = {
945
946
  IsDistributedQueue?: boolean;
946
947
  };
947
948
 
948
- declare type QueueCall = {
949
+ export declare type QueueCall = {
949
950
  /**
950
951
  * Ivr id
951
952
  */
@@ -957,7 +958,7 @@ declare type QueueCall = {
957
958
  /**
958
959
  * Caller name
959
960
  */
960
- CallerNme: string;
961
+ CallerName: string;
961
962
  /**
962
963
  * Ivr unique id
963
964
  */
@@ -966,6 +967,14 @@ declare type QueueCall = {
966
967
  * Join timestamp
967
968
  */
968
969
  JoinTimeStamp: number;
970
+ /**
971
+ * Virtual hold Join timestamp
972
+ */
973
+ VHJoinTimeStamp?: number;
974
+ /**
975
+ * Original call type
976
+ */
977
+ originalCallType?: string;
969
978
  /**
970
979
  * Is distributed queue
971
980
  */
@@ -983,8 +992,9 @@ export declare interface QueueCallSDK extends QueueCall {
983
992
  VHJoinTimeStamp_UTC_CLIENT: number
984
993
  }
985
994
 
986
- declare type QueueEvent = {
995
+ export declare type QueueEvent = {
987
996
  data: Queue;
997
+ type?: QueueEventVHTypeEnum;
988
998
  reason: QueueEventReasonEnum;
989
999
  /**
990
1000
  * Event name (queue)
@@ -1021,13 +1031,19 @@ declare interface QueueEventUTCExtended extends Omit<QueueEvent, 'data'> {
1021
1031
  data: QueueSDK
1022
1032
  }
1023
1033
 
1034
+ export declare enum QueueEventVHTypeEnum {
1035
+ VH_WAIT = 'VH.WAIT',
1036
+ VH_JOIN = 'VH.JOIN',
1037
+ VH_LEFT = 'VH.LEFT',
1038
+ }
1039
+
1024
1040
  export declare interface QueueSDK extends Omit<Queue, 'Calls'> {
1025
1041
  Calls?: Array<QueueCallSDK>
1026
1042
  }
1027
1043
 
1028
1044
  export declare type readyListener = (value: boolean) => void
1029
1045
 
1030
- declare type Recording = {
1046
+ export declare type Recording = {
1031
1047
  /**
1032
1048
  * Is muted
1033
1049
  */
@@ -1052,6 +1068,7 @@ export declare type removeRoomListener = (value: string) => void
1052
1068
 
1053
1069
  declare type Response_2 = {
1054
1070
  };
1071
+ export { Response_2 as Response }
1055
1072
 
1056
1073
  export declare type ResponseSDK = Response_2
1057
1074
 
@@ -1153,7 +1170,7 @@ declare class SocketIoClass {
1153
1170
 
1154
1171
  export declare type SocketTyped = Socket_2<EventCallbackRegistry, ServerEmitEventCallbackRegistry>
1155
1172
 
1156
- declare type Summery = {
1173
+ export declare type Summery = {
1157
1174
  /**
1158
1175
  * Representative
1159
1176
  */
@@ -1172,7 +1189,7 @@ export declare interface UpdateMonitoredExtensionsPayload {
1172
1189
 
1173
1190
  export declare type updateRoomListener = (value: string) => void
1174
1191
 
1175
- declare type User = {
1192
+ export declare type User = {
1176
1193
  /**
1177
1194
  * User id
1178
1195
  */