libs/core/src/lib/services/taly-business-event.model.ts
Business event configuration for a PFE Action.
Properties |
config | |
Type |
BusinessEventPfeActionConfig
|
handlerType |
import {
type NavServiceActivatorConfig,
type PfeActionConfig,
type PfeBaseActionConfig
} from '@allianz/ngx-pfe';
/**
* Business event configuration. The business event can run either a PFE service activator
* or a PFE action
*/
export type BusinessEventConfig = BusinessEventServiceActivator | BusinessEventAction | string;
/**
* Business event configuration for a PFE service activator.
* Either a PFE service activator id or an object containing a service activator configuration.
*/
export type BusinessEventServiceActivator = {
handlerType: 'PFE_SERVICE_ACTIVATOR';
config: BusinessEventServiceActivatorConfig;
};
/**
* PFE service activator configuration in business event object with "handlerType" 'PFE_SERVICE_ACTIVATOR'.
*/
export type BusinessEventServiceActivatorConfig = NavServiceActivatorConfig;
/**
* Business event configuration for a PFE Action.
*/
export interface BusinessEventAction {
handlerType: 'PFE_ACTION';
config: BusinessEventPfeActionConfig;
}
/**
* PFE action configuration in business event object with "handlerType" 'PFE_ACTION'
*/
export type BusinessEventPfeActionConfig = PfeActionConfig | PfeBaseActionConfig;