@voicenter-team/events-sdk 0.0.46 → 0.0.48
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/dist/voicenter-events-sdk.cjs.js +13 -13
- package/dist/voicenter-events-sdk.cjs.js.map +1 -1
- package/dist/voicenter-events-sdk.d.ts +32 -15
- package/dist/voicenter-events-sdk.es.js +1842 -1834
- package/dist/voicenter-events-sdk.es.js.map +1 -1
- package/dist/voicenter-events-sdk.iife.js +18 -18
- package/dist/voicenter-events-sdk.iife.js.map +1 -1
- package/dist/voicenter-events-sdk.umd.js +17 -17
- package/dist/voicenter-events-sdk.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -97,14 +97,14 @@ declare class AuthClass {
|
|
|
97
97
|
|
|
98
98
|
export declare type CallAddingProgressListener = (callId: string | undefined) => void
|
|
99
99
|
|
|
100
|
-
declare enum CallStatusEnum {
|
|
100
|
+
export declare enum CallStatusEnum {
|
|
101
101
|
RINGING = 'Ringing',
|
|
102
102
|
TALKING = 'Talking',
|
|
103
103
|
DIALING = 'Dialing',
|
|
104
104
|
HOLD = 'Hold',
|
|
105
105
|
}
|
|
106
106
|
|
|
107
|
-
declare enum CallTypeEnum {
|
|
107
|
+
export declare enum CallTypeEnum {
|
|
108
108
|
INCOMING = 'Incoming',
|
|
109
109
|
OUTGOING = 'Outgoing',
|
|
110
110
|
}
|
|
@@ -154,6 +154,8 @@ declare type CustomData = {
|
|
|
154
154
|
DoNotCallMetransactionId?: string;
|
|
155
155
|
};
|
|
156
156
|
|
|
157
|
+
export declare type CustomDataSDK = CustomData
|
|
158
|
+
|
|
157
159
|
declare type Dialer = {
|
|
158
160
|
/**
|
|
159
161
|
* Code
|
|
@@ -208,23 +210,30 @@ declare type DialerEvent = {
|
|
|
208
210
|
|
|
209
211
|
export declare type DialerEventSDK = EventTypeData<EventsEnum.DIALER_EVENT>
|
|
210
212
|
|
|
211
|
-
declare
|
|
213
|
+
export declare type DialerSDK = Dialer
|
|
214
|
+
|
|
215
|
+
export declare enum DialerTypeEnum {
|
|
212
216
|
AUTOMATIC = 'Automatic',
|
|
213
217
|
IVR = 'IVR',
|
|
214
218
|
}
|
|
215
219
|
|
|
216
|
-
declare enum DirectionEnum {
|
|
220
|
+
export declare enum DirectionEnum {
|
|
217
221
|
INCOMINC = 'Incoming',
|
|
218
222
|
OUTGOING = 'Outgoing',
|
|
219
223
|
SPY = 'Spy',
|
|
220
224
|
CLICK2CALL = 'Click2Call',
|
|
221
225
|
}
|
|
222
226
|
|
|
223
|
-
declare enum DoNotCallMeStatusCodeEnum {
|
|
227
|
+
export declare enum DoNotCallMeStatusCodeEnum {
|
|
224
228
|
RESPONSE_FROM_API_VALID = 'RESPONSE_FROM_API_VALID',
|
|
225
229
|
RESPONSE_FROM_API_INVALID = 'RESPONSE_FROM_API_INVALID',
|
|
226
230
|
}
|
|
227
231
|
|
|
232
|
+
declare type Error_2 = {
|
|
233
|
+
};
|
|
234
|
+
|
|
235
|
+
export declare type ErrorSDK = Error_2
|
|
236
|
+
|
|
228
237
|
/**
|
|
229
238
|
* This type defines a map where each key is an event name, and the value is an array of callback functions associated with that event.
|
|
230
239
|
* This structure is used to manage event listeners for different events
|
|
@@ -632,7 +641,7 @@ declare interface ExtensionEventEnded extends Omit<ExtensionEvent, 'reason' | 'd
|
|
|
632
641
|
|
|
633
642
|
declare type ExtensionEventExtended = ExtensionEventUTCExtended | ExtensionEventEnded
|
|
634
643
|
|
|
635
|
-
declare enum ExtensionEventReasonEnum {
|
|
644
|
+
export declare enum ExtensionEventReasonEnum {
|
|
636
645
|
NEWCALL = 'NEWCALL',
|
|
637
646
|
ANSWER = 'ANSWER',
|
|
638
647
|
HOLD = 'HOLD',
|
|
@@ -648,7 +657,7 @@ declare interface ExtensionEventUTCExtended extends Omit<ExtensionEvent, 'reason
|
|
|
648
657
|
data: ExtensionUTCExtended
|
|
649
658
|
}
|
|
650
659
|
|
|
651
|
-
declare enum ExtensionHangupCauseEnum {
|
|
660
|
+
export declare enum ExtensionHangupCauseEnum {
|
|
652
661
|
NORMAL_HANGUP = 'Normal hangup',
|
|
653
662
|
USER_BUSY = 'User busy',
|
|
654
663
|
CALL_REJECTED = 'Call Rejected',
|
|
@@ -811,13 +820,6 @@ declare type LoginSuccessEvent = {
|
|
|
811
820
|
serverTimeOffset: number;
|
|
812
821
|
};
|
|
813
822
|
|
|
814
|
-
/**
|
|
815
|
-
* Event types declared for being used in the application.
|
|
816
|
-
* These are just aliases for the EventTypeData type.
|
|
817
|
-
* We need that for the IDE to show the correct type of the event data, based on if the event is extended or not.
|
|
818
|
-
* NOT FOR USAGE IN THE EVENTS SDK CODEBASE, JUST FOR USAGE IN THE APPLICATION CODEBASE.
|
|
819
|
-
*/
|
|
820
|
-
|
|
821
823
|
export declare type LoginSuccessEventSDK = EventTypeData<EventsEnum.LOGIN_SUCCESS>
|
|
822
824
|
|
|
823
825
|
declare enum LoginType {
|
|
@@ -919,6 +921,8 @@ declare type QueueCall = {
|
|
|
919
921
|
calldurationinterval: number;
|
|
920
922
|
};
|
|
921
923
|
|
|
924
|
+
export declare type QueueCallSDK = QueueCall
|
|
925
|
+
|
|
922
926
|
declare type QueueEvent = {
|
|
923
927
|
data: Queue;
|
|
924
928
|
reason: QueueEventReasonEnum;
|
|
@@ -936,7 +940,7 @@ declare type QueueEvent = {
|
|
|
936
940
|
telephonyServerTime: number;
|
|
937
941
|
};
|
|
938
942
|
|
|
939
|
-
declare enum QueueEventReasonEnum {
|
|
943
|
+
export declare enum QueueEventReasonEnum {
|
|
940
944
|
ANSWER = 'ANSWER',
|
|
941
945
|
ABANDONED = 'ABANDONED',
|
|
942
946
|
EXIT = 'EXIT',
|
|
@@ -945,6 +949,8 @@ declare enum QueueEventReasonEnum {
|
|
|
945
949
|
|
|
946
950
|
export declare type QueueEventSDK = EventTypeData<EventsEnum.QUEUE_EVENT>
|
|
947
951
|
|
|
952
|
+
export declare type QueueSDK = Queue
|
|
953
|
+
|
|
948
954
|
export declare type readyListener = (value: boolean) => void
|
|
949
955
|
|
|
950
956
|
export declare interface ReconnectOptions {
|
|
@@ -974,8 +980,15 @@ declare type Recording = {
|
|
|
974
980
|
ApproximateURL: string;
|
|
975
981
|
};
|
|
976
982
|
|
|
983
|
+
export declare type RecordingSDK = Recording
|
|
984
|
+
|
|
977
985
|
export declare type removeRoomListener = (value: string) => void
|
|
978
986
|
|
|
987
|
+
declare type Response_2 = {
|
|
988
|
+
};
|
|
989
|
+
|
|
990
|
+
export declare type ResponseSDK = Response_2
|
|
991
|
+
|
|
979
992
|
export declare type RoomDeletedListener = (roomId: number) => void
|
|
980
993
|
|
|
981
994
|
export declare interface Server {
|
|
@@ -1079,6 +1092,8 @@ declare type Summery = {
|
|
|
1079
1092
|
representative: string;
|
|
1080
1093
|
};
|
|
1081
1094
|
|
|
1095
|
+
export declare type SummerySDK = Summery
|
|
1096
|
+
|
|
1082
1097
|
export declare type TestEventListener = (event: { test: string }) => void
|
|
1083
1098
|
|
|
1084
1099
|
declare type TypedSocketIo = (...args: Parameters<typeof io>) => SocketTyped;
|
|
@@ -1104,6 +1119,8 @@ declare type User = {
|
|
|
1104
1119
|
accountID: number;
|
|
1105
1120
|
};
|
|
1106
1121
|
|
|
1122
|
+
export declare type UserSDK = User
|
|
1123
|
+
|
|
1107
1124
|
/**
|
|
1108
1125
|
* The structure of received socket events.
|
|
1109
1126
|
*/
|