oak-pay-business/lib/entities/User.d.ts

19 lines
835 B
TypeScript

import { ActionDef } from 'oak-domain/lib/types/Action';
import { EntityDesc } from 'oak-domain/lib/types/EntityDesc';
import { Schema as User, IdAction, IdState, UserAction, UserState } from 'oak-general-business/lib/entities/User';
import { Schema as Account } from './Account';
import { Schema as WithdrawAccount } from './WithdrawAccount';
export interface Schema extends User {
accounts: Account[];
withdrawAccounts: WithdrawAccount[];
}
export type Action = UserAction | IdAction;
export declare const IdActionDef: ActionDef<IdAction, IdState>;
export declare const UserActionDef: ActionDef<UserAction, UserState>;
export declare const entityDesc: EntityDesc<Schema, Action, '', {
userState: UserState;
idState: IdState;
gender: Required<Schema>['gender'];
idCardType: Required<Schema>['idCardType'];
}>;