esi-cap 1.7.38 → 1.7.39

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,56 +1,51 @@
1
- /**
2
- * impl module
3
- */
1
+ export type ServiceEventInterceptor = (oService: object) => Promise<void>;
4
2
  export type Service = typeof import("../service").service;
5
- /**
6
- * impl module
7
- */
8
3
  export type ServiceEvents = Service["events"];
9
- /**
10
- * impl module
11
- */
12
4
  export type ServiceEventsKey = keyof ServiceEvents;
13
- export type ServiceEventInterceptor = (oService: object) => Promise<void>;
5
+ export type ServieEventsHandler = Partial<Record<ServiceEventsKey, ServiceEventInterceptor>>;
14
6
  /**
15
7
  * impl module
16
8
  * @class
17
9
  * @public
18
- * @typedef {typeof import('../service').service} Service
19
- * @typedef {Service['events']} ServiceEvents
20
- * @typedef {keyof ServiceEvents} ServiceEventsKey
21
10
  */
22
11
  /**
23
12
  * @callback ServiceEventInterceptor
24
13
  * @param {object} oService - Service object for which request to be executed
25
14
  * @returns {Promise<void>}
26
15
  */
16
+ /**
17
+ * @typedef {typeof import('../service').service} Service
18
+ * @typedef {Service['events']} ServiceEvents
19
+ * @typedef {keyof ServiceEvents} ServiceEventsKey
20
+ * @typedef {Partial<Record<ServiceEventsKey, ServiceEventInterceptor>>} ServieEventsHandler
21
+ */
27
22
  export class impl {
28
23
  /**
29
24
  * @param {object} oService - Service object for which request to be executed
30
- * @param {Partial<Record<ServiceEventsKey, ServiceEventInterceptor>>} oEvent
25
+ * @param {ServieEventsHandler} oEvent
31
26
  * @returns {Promise<void>}
32
27
  */
33
- static DBService(oService: object, oEvent: Partial<Record<ServiceEventsKey, ServiceEventInterceptor>>): Promise<void>;
28
+ static DBService(oService: object, oEvent: ServieEventsHandler): Promise<void>;
34
29
  /**
35
30
  * @param {object} oService - Service object for which request to be executed
36
31
  * @param {string} sServiceName - Service Name
37
- * @param {Partial<Record<ServiceEventsKey, ServiceEventInterceptor>>} oEvent
32
+ * @param {ServieEventsHandler} oEvent
38
33
  * @param {string|any[]} oLocalEntities
39
- * @param {Partial<Record<ServiceEventsKey, ServiceEventInterceptor>>} oRemoteEvent
34
+ * @param {ServieEventsHandler} oRemoteEvent
40
35
  * @param {string|any[]} [oRemoteEntities]
41
36
  * @param {any[]} [oRemoteHandlers]
42
37
  * @param {boolean} bRefreshUserContext
43
38
  * @returns {Promise<void>}
44
39
  */
45
- static LocalService(oService: object, sServiceName: string, oEvent?: Partial<Record<ServiceEventsKey, ServiceEventInterceptor>>, oLocalEntities?: string | any[], oRemoteEvent?: Partial<Record<ServiceEventsKey, ServiceEventInterceptor>>, oRemoteEntities?: string | any[], oRemoteHandlers?: any[], bRefreshUserContext?: boolean): Promise<void>;
40
+ static LocalService(oService: object, sServiceName: string, oEvent?: ServieEventsHandler, oLocalEntities?: string | any[], oRemoteEvent?: ServieEventsHandler, oRemoteEntities?: string | any[], oRemoteHandlers?: any[], bRefreshUserContext?: boolean): Promise<void>;
46
41
  /**
47
42
  * @param {object} oService - Service object for which request to be executed
48
- * @param {Partial<Record<ServiceEventsKey, ServiceEventInterceptor>>} oEvent
43
+ * @param {ServieEventsHandler} oEvent
49
44
  * @param {string|any[]} oEntities
50
45
  * @param {any[]} [oHandlers]
51
46
  * @param {boolean} bRefreshUserContext
52
47
  * @returns {Promise<void>}
53
48
  */
54
- static RemoteService(oService: object, oEvent?: Partial<Record<ServiceEventsKey, ServiceEventInterceptor>>, oEntities?: string | any[], oHandlers?: any[], bRefreshUserContext?: boolean): Promise<void>;
49
+ static RemoteService(oService: object, oEvent?: ServieEventsHandler, oEntities?: string | any[], oHandlers?: any[], bRefreshUserContext?: boolean): Promise<void>;
55
50
  }
56
51
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../.types/lib/impl/index.js"],"names":[],"mappings":";;;sBAmBa,cAAc,YAAY,EAAE,OAAO;;;;4BACnC,OAAO,CAAC,QAAQ,CAAC;;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mB,mBACnB,MAAM,GAAC,GAAG,EAAE,iBACZ,mBAAmB,oBACnB,MAAM,GAAC,GAAG,EAAE,oBACZ,GAAG,EAAE,wBACL,OAAO,GACL,OAAO,CAAC,IAAI,CAAC,CA0BzB;IAED;;;;;;;OAOG;IACH,+BAPW,MAAM,WACN,mBAAmB,cACnB,MAAM,GAAC,GAAG,EAAE,cACZ,GAAG,EAAE,wBACL,OAAO,GACL,OAAO,CAAC,IAAI,CAAC,CA8EzB;CACJ"}
@@ -1,9 +1,18 @@
1
- export function log(sServiceName?: any): {
2
- trace: (oEvent: any, oRequest: any, ...oArgs: any[]) => void;
3
- debug: (oEvent: any, oRequest: any, ...oArgs: any[]) => void;
4
- info: (oEvent: any, oRequest: any, ...oArgs: any[]) => void;
5
- warn: (oEvent: any, oRequest: any, ...oArgs: any[]) => void;
6
- error: (oEvent: any, oRequest: any, ...oArgs: any[]) => void;
7
- fatal: (oEvent: any, oRequest: any, ...oArgs: any[]) => void;
8
- };
1
+ declare namespace _exports {
2
+ export { Service, ServiceEvents, ServiceEventsValue };
3
+ }
4
+ declare namespace _exports {
5
+ function log(sServiceName?: string | undefined): {
6
+ trace: (oEvent: ServiceEventsValue, oRequest: object, ...oArgs: any[]) => void;
7
+ debug: (oEvent: ServiceEventsValue, oRequest: object, ...oArgs: any[]) => void;
8
+ info: (oEvent: ServiceEventsValue, oRequest: object, ...oArgs: any[]) => void;
9
+ warn: (oEvent: ServiceEventsValue, oRequest: object, ...oArgs: any[]) => void;
10
+ error: (oEvent: ServiceEventsValue, oRequest: object, ...oArgs: any[]) => void;
11
+ fatal: (oEvent: ServiceEventsValue, oRequest: object, ...oArgs: any[]) => void;
12
+ };
13
+ }
14
+ export = _exports;
15
+ type Service = typeof import("../service").service;
16
+ type ServiceEvents = Service["events"];
17
+ type ServiceEventsValue = ServiceEvents[keyof ServiceEvents];
9
18
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../.types/lib/log/index.js"],"names":[],"mappings":"AAMS;;;;;;;EAwBJ"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../.types/lib/log/index.js"],"names":[],"mappings":";;;;IAaS,4BAAY,MAAM,GAAC,SAAS;wBAEe,kBAAkB,YAAuB,MAAM;wBAA/C,kBAAkB,YAAuB,MAAM;uBAA/C,kBAAkB,YAAuB,MAAM;uBAA/C,kBAAkB,YAAuB,MAAM;wBAA/C,kBAAkB,YAAuB,MAAM;wBAA/C,kBAAkB,YAAuB,MAAM;MAsB9F;;;eA9BQ,cAAc,YAAY,EAAE,OAAO;qBACnC,OAAO,CAAC,QAAQ,CAAC;0BACjB,aAAa,CAAC,MAAM,aAAa,CAAC"}