Interface: IAdapterHook<AdapterContextType, RawResponseType>
Interface: IAdapterHook<AdapterContextType, RawResponseType>
AdapterHook Interface.
Represents lifecycle hooks that can be defined for the adapter, such as initialization, pre-handling, and termination.
Type Parameters
AdapterContextType
AdapterContextType
= any
RawResponseType
RawResponseType
= any
Properties
onAdapterMiddlewareProcessed?
optional onAdapterMiddlewareProcessed: PipelineHookListener<AdapterContextType, IAdapterEventBuilder<RawResponseOptions, IRawResponseWrapper<RawResponseType>>, any[]>;
onBuildingIncomingEvent?
optional onBuildingIncomingEvent: AdapterHookListener<AdapterContextType>;
onBuildingRawResponse?
optional onBuildingRawResponse: AdapterHookListener<AdapterContextType>;
onHandlingAdapterError?
optional onHandlingAdapterError: AdapterHookListener<AdapterContextType>;
onProcessingAdapterMiddleware?
optional onProcessingAdapterMiddleware: PipelineHookListener<AdapterContextType, IAdapterEventBuilder<RawResponseOptions, IRawResponseWrapper<RawResponseType>>, any[]>;
onStart?
optional onStart: AdapterHookListener<AdapterContextType>;
onStop?
optional onStop: AdapterHookListener<AdapterContextType>;