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.
- package/dist/index.js +1 -1
- package/dist/lib/_classes/index.js +1 -1
- package/dist/lib/_config/index.js +1 -1
- package/dist/lib/_interface/appender/index.js +1 -1
- package/dist/lib/_interface/file/index.js +1 -1
- package/dist/lib/_interface/formatter/index.js +1 -1
- package/dist/lib/_interface/index.js +1 -1
- package/dist/lib/_interface/layout/index.js +1 -1
- package/dist/lib/_interface/log/index.js +1 -1
- package/dist/lib/_interface/path/index.js +1 -1
- package/dist/lib/connect/index.js +1 -1
- package/dist/lib/impl/index.js +1 -1
- package/dist/lib/log/index.js +1 -1
- package/dist/lib/query/index.js +1 -1
- package/dist/lib/service/index.js +1 -1
- package/dist/lib/utils/index.js +1 -1
- package/package.json +1 -1
- package/types/lib/impl/index.d.ts +19 -9
- package/types/lib/impl/index.d.ts.map +1 -1
|
@@ -1,13 +1,23 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* impl module
|
|
3
3
|
*/
|
|
4
|
-
export type
|
|
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
|
|
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<
|
|
30
|
+
* @param {Partial<Record<ServiceEventsKey, ServiceEventInterceptor>>} oEvent
|
|
21
31
|
* @returns {Promise<void>}
|
|
22
32
|
*/
|
|
23
|
-
static DBService(oService: object, oEvent: Partial<Record<
|
|
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<
|
|
37
|
+
* @param {Partial<Record<ServiceEventsKey, ServiceEventInterceptor>>} oEvent
|
|
28
38
|
* @param {string|any[]} oLocalEntities
|
|
29
|
-
* @param {Partial<Record<
|
|
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<
|
|
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<
|
|
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<
|
|
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":";;;
|
|
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"}
|