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.
- 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 +15 -20
- package/types/lib/impl/index.d.ts.map +1 -1
- package/types/lib/log/index.d.ts +17 -8
- package/types/lib/log/index.d.ts.map +1 -1
|
@@ -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
|
|
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 {
|
|
25
|
+
* @param {ServieEventsHandler} oEvent
|
|
31
26
|
* @returns {Promise<void>}
|
|
32
27
|
*/
|
|
33
|
-
static DBService(oService: object, oEvent:
|
|
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 {
|
|
32
|
+
* @param {ServieEventsHandler} oEvent
|
|
38
33
|
* @param {string|any[]} oLocalEntities
|
|
39
|
-
* @param {
|
|
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?:
|
|
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 {
|
|
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?:
|
|
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":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../.types/lib/impl/index.js"],"names":[],"mappings":"iDAuBW,MAAM,KACJ,OAAO,CAAC,IAAI,CAAC;sBAIb,cAAc,YAAY,EAAE,OAAO;4BACnC,OAAO,CAAC,QAAQ,CAAC;+BACjB,MAAM,aAAa;kCACnB,OAAO,CAAC,MAAM,CAAC,gBAAgB,EAAE,uBAAuB,CAAC,CAAC;AAhBvE;;;;GAIG;AAEH;;;;GAIG;AAEH;;;;;GAKG;AACH;IACI;;;;OAIG;IACH,2BAJW,MAAM,UACN,mBAAmB,GACjB,OAAO,CAAC,IAAI,CAAC,CAMzB;IAED;;;;;;;;;;OAUG;IACH,8BAVW,MAAM,gBACN,MAAM,WACN,mBAAmB,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"}
|
package/types/lib/log/index.d.ts
CHANGED
|
@@ -1,9 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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":"
|
|
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"}
|