esi-cap 1.7.36 → 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,6 +1,56 @@
1
- export namespace impl {
2
- function DBService(oService: any, oEvent: any): Promise<void>;
3
- function LocalService(oService: any, sServiceName: any, oEvent?: {}, oLocalEntities?: string, oRemoteEvent?: {}, oRemoteEntities?: any, oRemoteHandlers?: any, bRefreshUserContext?: boolean): Promise<void>;
4
- function RemoteService(oService: any, oEvent?: {}, oEntities?: string, oHandlers?: any, bRefreshUserContext?: boolean): Promise<void>;
1
+ /**
2
+ * impl module
3
+ */
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;
13
+ export type ServiceEventInterceptor = (oService: object) => Promise<void>;
14
+ /**
15
+ * impl module
16
+ * @class
17
+ * @public
18
+ * @typedef {typeof import('../service').service} Service
19
+ * @typedef {Service['events']} ServiceEvents
20
+ * @typedef {keyof ServiceEvents} ServiceEventsKey
21
+ */
22
+ /**
23
+ * @callback ServiceEventInterceptor
24
+ * @param {object} oService - Service object for which request to be executed
25
+ * @returns {Promise<void>}
26
+ */
27
+ export class impl {
28
+ /**
29
+ * @param {object} oService - Service object for which request to be executed
30
+ * @param {Partial<Record<ServiceEventsKey, ServiceEventInterceptor>>} oEvent
31
+ * @returns {Promise<void>}
32
+ */
33
+ static DBService(oService: object, oEvent: Partial<Record<ServiceEventsKey, ServiceEventInterceptor>>): Promise<void>;
34
+ /**
35
+ * @param {object} oService - Service object for which request to be executed
36
+ * @param {string} sServiceName - Service Name
37
+ * @param {Partial<Record<ServiceEventsKey, ServiceEventInterceptor>>} oEvent
38
+ * @param {string|any[]} oLocalEntities
39
+ * @param {Partial<Record<ServiceEventsKey, ServiceEventInterceptor>>} oRemoteEvent
40
+ * @param {string|any[]} [oRemoteEntities]
41
+ * @param {any[]} [oRemoteHandlers]
42
+ * @param {boolean} bRefreshUserContext
43
+ * @returns {Promise<void>}
44
+ */
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>;
46
+ /**
47
+ * @param {object} oService - Service object for which request to be executed
48
+ * @param {Partial<Record<ServiceEventsKey, ServiceEventInterceptor>>} oEvent
49
+ * @param {string|any[]} oEntities
50
+ * @param {any[]} [oHandlers]
51
+ * @param {boolean} bRefreshUserContext
52
+ * @returns {Promise<void>}
53
+ */
54
+ static RemoteService(oService: object, oEvent?: Partial<Record<ServiceEventsKey, ServiceEventInterceptor>>, oEntities?: string | any[], oHandlers?: any[], bRefreshUserContext?: boolean): Promise<void>;
5
55
  }
6
56
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../.types/lib/impl/index.js"],"names":[],"mappings":";IAkBmB,8DAIV;IACa,6MAwBb;IACc,sIA4Ed"}
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;;;;+BACjB,MAAM,aAAa;iDAKrB,MAAM,KACJ,OAAO,CAAC,IAAI,CAAC;AAZ1B;;;;;;;GAOG;AAEH;;;;GAIG;AACH;IACI;;;;OAIG;IACH,2BAJW,MAAM,UACN,OAAO,CAAC,MAAM,CAAC,gBAAgB,EAAE,uBAAuB,CAAC,CAAC,GACxD,OAAO,CAAC,IAAI,CAAC,CAMzB;IAED;;;;;;;;;;OAUG;IACH,8BAVW,MAAM,gBACN,MAAM,WACN,OAAO,CAAC,MAAM,CAAC,gBAAgB,EAAE,uBAAuB,CAAC,CAAC,mBAC1D,MAAM,GAAC,GAAG,EAAE,iBACZ,OAAO,CAAC,MAAM,CAAC,gBAAgB,EAAE,uBAAuB,CAAC,CAAC,oBAC1D,MAAM,GAAC,GAAG,EAAE,oBACZ,GAAG,EAAE,wBACL,OAAO,GACL,OAAO,CAAC,IAAI,CAAC,CA0BzB;IAED;;;;;;;OAOG;IACH,+BAPW,MAAM,WACN,OAAO,CAAC,MAAM,CAAC,gBAAgB,EAAE,uBAAuB,CAAC,CAAC,cAC1D,MAAM,GAAC,GAAG,EAAE,cACZ,GAAG,EAAE,wBACL,OAAO,GACL,OAAO,CAAC,IAAI,CAAC,CA8EzB;CACJ"}