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 User } from './User'; import { Schema as AccountOper } from './AccountOper'; import { Schema as Ship } from './Ship'; export interface Schema extends EntityShape { price: Price; loss: Price; account: Account; creator: User; opers: AccountOper[]; ship?: Ship; } export type IAction = 'succeed' | 'fail' | 'ship'; export type IState = 'depositing' | 'successful' | 'failed' | 'shipped'; export declare const IActionDef: ActionDef; type Action = IAction; export declare const entityDesc: EntityDesc; export {};