@voicenter-team/events-sdk 0.0.46 → 0.0.47
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.
|
@@ -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,6 +210,8 @@ declare type DialerEvent = {
|
|
|
208
210
|
|
|
209
211
|
export declare type DialerEventSDK = EventTypeData<EventsEnum.DIALER_EVENT>
|
|
210
212
|
|
|
213
|
+
export declare type DialerSDK = Dialer
|
|
214
|
+
|
|
211
215
|
declare enum DialerTypeEnum {
|
|
212
216
|
AUTOMATIC = 'Automatic',
|
|
213
217
|
IVR = 'IVR',
|
|
@@ -225,6 +229,11 @@ declare enum DoNotCallMeStatusCodeEnum {
|
|
|
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
|
|
@@ -282,7 +291,7 @@ declare class EventEmitterClass {
|
|
|
282
291
|
emit<T extends EventTypeNames>(event: T, data: EventTypeData<T>): void;
|
|
283
292
|
}
|
|
284
293
|
|
|
285
|
-
|
|
294
|
+
declare enum EventsEnum {
|
|
286
295
|
ALL_DIALER_STATUS = 'AllDialersStatus',
|
|
287
296
|
ALL_EXTENSION_STATUS = 'AllExtensionsStatus',
|
|
288
297
|
ALL_USERS_STATUS = 'AllUsersStatus',
|
|
@@ -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;
|
|
@@ -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
|
*/
|