esi-cap 1.7.37 → 1.7.38

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,13 +1,23 @@
1
1
  /**
2
2
  * impl module
3
3
  */
4
- export type ServiceEvents = import("../service").service.events;
4
+ export type Service = typeof import("../service").service;
5
+ /**
6
+ * impl module
7
+ */
8
+ export type ServiceEvents = Service["events"];
9
+ /**
10
+ * impl module
11
+ */
12
+ export type ServiceEventsKey = keyof ServiceEvents;
5
13
  export type ServiceEventInterceptor = (oService: object) => Promise<void>;
6
14
  /**
7
15
  * impl module
8
16
  * @class
9
17
  * @public
10
- * @typedef {import('../service').service.events} ServiceEvents
18
+ * @typedef {typeof import('../service').service} Service
19
+ * @typedef {Service['events']} ServiceEvents
20
+ * @typedef {keyof ServiceEvents} ServiceEventsKey
11
21
  */
12
22
  /**
13
23
  * @callback ServiceEventInterceptor
@@ -17,30 +27,30 @@ export type ServiceEventInterceptor = (oService: object) => Promise<void>;
17
27
  export class impl {
18
28
  /**
19
29
  * @param {object} oService - Service object for which request to be executed
20
- * @param {Partial<Record<keyof ServiceEvents, ServiceEventInterceptor>>} oEvent
30
+ * @param {Partial<Record<ServiceEventsKey, ServiceEventInterceptor>>} oEvent
21
31
  * @returns {Promise<void>}
22
32
  */
23
- static DBService(oService: object, oEvent: Partial<Record<keyof ServiceEvents, ServiceEventInterceptor>>): Promise<void>;
33
+ static DBService(oService: object, oEvent: Partial<Record<ServiceEventsKey, ServiceEventInterceptor>>): Promise<void>;
24
34
  /**
25
35
  * @param {object} oService - Service object for which request to be executed
26
36
  * @param {string} sServiceName - Service Name
27
- * @param {Partial<Record<keyof ServiceEvents, ServiceEventInterceptor>>} oEvent
37
+ * @param {Partial<Record<ServiceEventsKey, ServiceEventInterceptor>>} oEvent
28
38
  * @param {string|any[]} oLocalEntities
29
- * @param {Partial<Record<keyof ServiceEvents, ServiceEventInterceptor>>} oRemoteEvent
39
+ * @param {Partial<Record<ServiceEventsKey, ServiceEventInterceptor>>} oRemoteEvent
30
40
  * @param {string|any[]} [oRemoteEntities]
31
41
  * @param {any[]} [oRemoteHandlers]
32
42
  * @param {boolean} bRefreshUserContext
33
43
  * @returns {Promise<void>}
34
44
  */
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>;
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>;
36
46
  /**
37
47
  * @param {object} oService - Service object for which request to be executed
38
- * @param {Partial<Record<keyof ServiceEvents, ServiceEventInterceptor>>} oEvent
48
+ * @param {Partial<Record<ServiceEventsKey, ServiceEventInterceptor>>} oEvent
39
49
  * @param {string|any[]} oEntities
40
50
  * @param {any[]} [oHandlers]
41
51
  * @param {boolean} bRefreshUserContext
42
52
  * @returns {Promise<void>}
43
53
  */
44
- static RemoteService(oService: object, oEvent?: Partial<Record<keyof ServiceEvents, ServiceEventInterceptor>>, oEntities?: string | any[], oHandlers?: any[], bRefreshUserContext?: boolean): Promise<void>;
54
+ static RemoteService(oService: object, oEvent?: Partial<Record<ServiceEventsKey, ServiceEventInterceptor>>, oEntities?: string | any[], oHandlers?: any[], bRefreshUserContext?: boolean): Promise<void>;
45
55
  }
46
56
  //# 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,MAA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