esi-cap 1.7.42 → 1.7.43

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.
@@ -163,10 +163,12 @@ export type CDSHandler = (req: CDSRequest, next: () => Promise<any>) => any | Pr
163
163
  export type CDSAfterHandler = (results: any, req: CDSRequest) => any | Promise<any>;
164
164
  export type CDSServiceTx = CDSService;
165
165
  export type ServiceEventsServiceInterceptor = (oService: CDSService) => Promise<void>;
166
+ export type ServiceEventsRequestInterceptor = (oRequest: CDSRequest) => Promise<void>;
166
167
  export type Service = typeof import("../service").service;
167
168
  export type ServiceEvents = Service["events"];
168
169
  export type ServiceEventsKey = keyof ServiceEvents;
169
- export type ServieEventsHandler = Partial<Record<ServiceEventsKey, ServiceEventsServiceInterceptor>>;
170
+ export type ServieEventsServiceHandler = Partial<Record<ServiceEventsKey, ServiceEventsServiceInterceptor>>;
171
+ export type ServieEventsRequestHandler = Partial<Record<ServiceEventsKey, ServiceEventsRequestInterceptor>>;
170
172
  /**
171
173
  * impl module
172
174
  * @class
@@ -265,7 +267,7 @@ export type ServieEventsHandler = Partial<Record<ServiceEventsKey, ServiceEvents
265
267
  * @returns {Promise<void>}
266
268
  */
267
269
  /**
268
- * @callback ServiceEventsServiceInterceptor
270
+ * @callback ServiceEventsRequestInterceptor
269
271
  * @param {CDSRequest} oRequest - Request object
270
272
  * @returns {Promise<void>}
271
273
  */
@@ -273,35 +275,36 @@ export type ServieEventsHandler = Partial<Record<ServiceEventsKey, ServiceEvents
273
275
  * @typedef {typeof import('../service').service} Service
274
276
  * @typedef {Service['events']} ServiceEvents
275
277
  * @typedef {keyof ServiceEvents} ServiceEventsKey
276
- * @typedef {Partial<Record<ServiceEventsKey, ServiceEventsServiceInterceptor>>} ServieEventsHandler
278
+ * @typedef {Partial<Record<ServiceEventsKey, ServiceEventsServiceInterceptor>>} ServieEventsServiceHandler
279
+ * @typedef {Partial<Record<ServiceEventsKey, ServiceEventsRequestInterceptor>>} ServieEventsRequestHandler
277
280
  */
278
281
  export class impl {
279
282
  /**
280
283
  * @param {object} oService - Service object for which request to be executed
281
- * @param {ServieEventsHandler} oEvent
284
+ * @param {ServieEventsServiceHandler|ServieEventsRequestHandler} oEvent
282
285
  * @returns {Promise<void>}
283
286
  */
284
- static DBService(oService: object, oEvent: ServieEventsHandler): Promise<void>;
287
+ static DBService(oService: object, oEvent: ServieEventsServiceHandler | ServieEventsRequestHandler): Promise<void>;
285
288
  /**
286
289
  * @param {object} oService - Service object for which request to be executed
287
290
  * @param {string} sServiceName - Service Name
288
- * @param {ServieEventsHandler} oEvent
291
+ * @param {ServieEventsServiceHandler|ServieEventsRequestHandler} oEvent
289
292
  * @param {string|any[]} oLocalEntities
290
- * @param {ServieEventsHandler} oRemoteEvent
293
+ * @param {ServieEventsServiceHandler|ServieEventsRequestHandler} oRemoteEvent
291
294
  * @param {string|any[]} [oRemoteEntities]
292
295
  * @param {any[]} [oRemoteHandlers]
293
296
  * @param {boolean} bRefreshUserContext
294
297
  * @returns {Promise<void>}
295
298
  */
296
- static LocalService(oService: object, sServiceName: string, oEvent?: ServieEventsHandler, oLocalEntities?: string | any[], oRemoteEvent?: ServieEventsHandler, oRemoteEntities?: string | any[], oRemoteHandlers?: any[], bRefreshUserContext?: boolean): Promise<void>;
299
+ static LocalService(oService: object, sServiceName: string, oEvent?: ServieEventsServiceHandler | ServieEventsRequestHandler, oLocalEntities?: string | any[], oRemoteEvent?: ServieEventsServiceHandler | ServieEventsRequestHandler, oRemoteEntities?: string | any[], oRemoteHandlers?: any[], bRefreshUserContext?: boolean): Promise<void>;
297
300
  /**
298
301
  * @param {object} oService - Service object for which request to be executed
299
- * @param {ServieEventsHandler} oEvent
302
+ * @param {ServieEventsServiceHandler|ServieEventsRequestHandler} oEvent
300
303
  * @param {string|any[]} oEntities
301
304
  * @param {any[]} [oHandlers]
302
305
  * @param {boolean} bRefreshUserContext
303
306
  * @returns {Promise<void>}
304
307
  */
305
- static RemoteService(oService: object, oEvent?: ServieEventsHandler, oEntities?: string | any[], oHandlers?: any[], bRefreshUserContext?: boolean): Promise<void>;
308
+ static RemoteService(oService: object, oEvent?: ServieEventsServiceHandler | ServieEventsRequestHandler, oEntities?: string | any[], oHandlers?: any[], bRefreshUserContext?: boolean): Promise<void>;
306
309
  }
307
310
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../.types/lib/impl/index.js"],"names":[],"mappings":";;;;cAuBc,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;;;;SACnB,CAAC,KAAK,EAAE,GAAG,KAAK,OAAO,CAAC,GAAG,CAAC;;;;QAC5B,CAAC,GAAG,EAAE,GAAG,KAAK,YAAY;;;;iBAC1B,CAAC,GAAG,EAAE,GAAG,KAAK,YAAY;;;;QAC1B,SAAS;;;;YACT,SAAS;;;;WACT,cAAc;;;;UACd,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,GAAG,KAAK,OAAO,CAAC,IAAI,CAAC;;;;UAC5C,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,GAAG,KAAK,OAAO,CAAC,GAAG,CAAC;;;;YAC9C,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,KAAK,OAAO,CAAC,MAAM,CAAC;;uBAIhD,CAAC;;;;UAEA,CAAC,GAAG;QAAE,MAAM,CAAC,EAAE,GAAG,CAAA;KAAE;;;;aACpB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;;;;YACtB,GAAG,EAAE;;;;UACL,OAAO;;;;WACP,GAAG;;;;YACH,SAAS;;;;WACT,MAAM;;;;WACN;QAAE,GAAG,EAAE;YAAE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;SAAE,CAAA;KAAE;;;;YAC5C,SAAS;;;;WACT,QAAQ;;;;UACR,CAAC,IAAI,EAAE;QAAE,OAAO,EAAE,MAAM,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