eservices-core 1.3.261 → 1.3.262
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,4 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import { ICustomerRequestInfo } from './main';
|
|
2
|
+
|
|
3
|
+
export declare type ISocketEventHandler = ((options: ICustomerRequestInfo, data: unknown, requestUtils?: Partial<ISocketUtils>) => any);
|
|
4
|
+
export interface ISocketUtils {
|
|
5
|
+
emit: (eventName: string, data: any) => void;
|
|
6
|
+
}
|
|
2
7
|
/**
|
|
3
8
|
* @deprecated
|
|
4
9
|
*/
|
|
@@ -23,6 +28,14 @@ export interface ISocketOptions {
|
|
|
23
28
|
* @description Идентификатор персоны.
|
|
24
29
|
*/
|
|
25
30
|
personId: number;
|
|
31
|
+
/**
|
|
32
|
+
* @description Название события в котором вызывается обработчик
|
|
33
|
+
*/
|
|
34
|
+
event?: string;
|
|
35
|
+
/**
|
|
36
|
+
* @description Уникальный идентификатор события
|
|
37
|
+
*/
|
|
38
|
+
requestId?: number;
|
|
26
39
|
}
|
|
27
40
|
export interface ISocketMessage {
|
|
28
41
|
/**
|