esi-cap 1.7.37 → 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,46 +1,51 @@
1
- /**
2
- * impl module
3
- */
4
- export type ServiceEvents = import("../service").service.events;
5
1
  export type ServiceEventInterceptor = (oService: object) => Promise<void>;
2
+ export type Service = typeof import("../service").service;
3
+ export type ServiceEvents = Service["events"];
4
+ export type ServiceEventsKey = keyof ServiceEvents;
5
+ export type ServieEventsHandler = Partial<Record<ServiceEventsKey, ServiceEventInterceptor>>;
6
6
  /**
7
7
  * impl module
8
8
  * @class
9
9
  * @public
10
- * @typedef {import('../service').service.events} ServiceEvents
11
10
  */
12
11
  /**
13
12
  * @callback ServiceEventInterceptor
14
13
  * @param {object} oService - Service object for which request to be executed
15
14
  * @returns {Promise<void>}
16
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
+ */
17
22
  export class impl {
18
23
  /**
19
24
  * @param {object} oService - Service object for which request to be executed
20
- * @param {Partial<Record<keyof ServiceEvents, ServiceEventInterceptor>>} oEvent
25
+ * @param {ServieEventsHandler} oEvent
21
26
  * @returns {Promise<void>}
22
27
  */
23
- static DBService(oService: object, oEvent: Partial<Record<keyof ServiceEvents, ServiceEventInterceptor>>): Promise<void>;
28
+ static DBService(oService: object, oEvent: ServieEventsHandler): Promise<void>;
24
29
  /**
25
30
  * @param {object} oService - Service object for which request to be executed
26
31
  * @param {string} sServiceName - Service Name
27
- * @param {Partial<Record<keyof ServiceEvents, ServiceEventInterceptor>>} oEvent
32
+ * @param {ServieEventsHandler} oEvent
28
33
  * @param {string|any[]} oLocalEntities
29
- * @param {Partial<Record<keyof ServiceEvents, ServiceEventInterceptor>>} oRemoteEvent
34
+ * @param {ServieEventsHandler} oRemoteEvent
30
35
  * @param {string|any[]} [oRemoteEntities]
31
36
  * @param {any[]} [oRemoteHandlers]
32
37
  * @param {boolean} bRefreshUserContext
33
38
  * @returns {Promise<void>}
34
39
  */
35
- static LocalService(oService: object, sServiceName: string, oEvent?: Partial<Record<keyof ServiceEvents, ServiceEventInterceptor>>, oLocalEntities?: string | any[], oRemoteEvent?: Partial<Record<keyof ServiceEvents, 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>;
36
41
  /**
37
42
  * @param {object} oService - Service object for which request to be executed
38
- * @param {Partial<Record<keyof ServiceEvents, ServiceEventInterceptor>>} oEvent
43
+ * @param {ServieEventsHandler} oEvent
39
44
  * @param {string|any[]} oEntities
40
45
  * @param {any[]} [oHandlers]
41
46
  * @param {boolean} bRefreshUserContext
42
47
  * @returns {Promise<void>}
43
48
  */
44
- static RemoteService(oService: object, oEvent?: Partial<Record<keyof ServiceEvents, 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>;
45
50
  }
46
51
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../.types/lib/impl/index.js"],"names":[],"mappings":";;;4BAmBa,OAAO,YAAY,EAAE,OAAO,CAAC,MAAM;iDAKrC,MAAM,KACJ,OAAO,CAAC,IAAI,CAAC;AAV1B;;;;;GAKG;AAEH;;;;GAIG;AACH;IACI;;;;OAIG;IACH,2BAJW,MAAM,UACN,OAAO,CAAC,M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A0BzB;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"}