19 lines
650 B
TypeScript
19 lines
650 B
TypeScript
import { Price } from 'oak-domain/lib/types/DataType';
|
|
import { EntityShape } from 'oak-domain/lib/types/Entity';
|
|
import { EntityDesc, ActionDef } from 'oak-domain/lib/types';
|
|
import { Schema as Account } from './Account';
|
|
import { Schema as Order } from './Order';
|
|
export interface Schema extends EntityShape {
|
|
account: Account;
|
|
price: Price;
|
|
order: Order;
|
|
}
|
|
type IState = 'unsettled' | 'settled';
|
|
type IAction = 'settle';
|
|
export declare const IActionDef: ActionDef<IAction, IState>;
|
|
type Action = IAction | 'refund' | 'refundFailure';
|
|
export declare const entityDesc: EntityDesc<Schema, Action, '', {
|
|
iState: IState;
|
|
}>;
|
|
export {};
|