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