16 lines
1.0 KiB
TypeScript
16 lines
1.0 KiB
TypeScript
import { ActionDef } from "oak-domain/lib/types/Action";
|
|
import { GenericAction } from "oak-domain/lib/actions/action";
|
|
export type IAction = 'startPaying' | 'payAll' | 'payPartially' | 'payNone' | 'timeout' | 'cancel' | 'startRefunding' | 'refundAll' | 'refundPartially' | 'refundNone' | string;
|
|
export type IState = 'unpaid' | 'timeout' | 'cancelled' | 'paying' | 'partiallyPaid' | 'paid' | 'refunding' | 'partiallyRefunded' | 'refunded' | string;
|
|
export declare const IActionDef: ActionDef<IAction, IState>;
|
|
export type GState = 'staging' | 'shipped' | 'unshipped' | 'received' | 'taken' | string;
|
|
export type GAction = 'send' | 'receive' | 'store' | 'take' | 'turnBack' | 'unship' | string;
|
|
export declare const GActionDef: ActionDef<GAction, GState>;
|
|
export type ParticularAction = IAction | GAction | 'settle';
|
|
export declare const actions: string[];
|
|
export type Action = GenericAction | ParticularAction | string;
|
|
export declare const actionDefDict: {
|
|
iState: ActionDef<string, string>;
|
|
gState: ActionDef<string, string>;
|
|
};
|