import { OnTransitionEndFn, OnTransitionErrorFn, OnTransitionStartFn, Transitions } from '../../common/finite-state-machine/types'; import { InjectableStrategy } from '../../common/types/injectable-strategy'; import { OrderState, OrderTransitionData } from '../../service/helpers/order-state-machine/order-state'; /** * @description * Used to define extensions to or modifications of the default order process. * * For detailed description of the interface members, see the {@link StateMachineConfig} docs. * * @docsCategory orders */ export interface CustomOrderProcess extends InjectableStrategy { transitions?: Transitions & Partial>; onTransitionStart?: OnTransitionStartFn; onTransitionEnd?: OnTransitionEndFn; onTransitionError?: OnTransitionErrorFn; }