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.
- 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 +17 -12
- 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,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 {
|
|
25
|
+
* @param {ServieEventsHandler} oEvent
|
|
21
26
|
* @returns {Promise<void>}
|
|
22
27
|
*/
|
|
23
|
-
static DBService(oService: object, oEvent:
|
|
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 {
|
|
32
|
+
* @param {ServieEventsHandler} oEvent
|
|
28
33
|
* @param {string|any[]} oLocalEntities
|
|
29
|
-
* @param {
|
|
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?:
|
|
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 {
|
|
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?:
|
|
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":"
|
|
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"}
|