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

17 lines
731 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';
export interface Schema extends User {
accounts: Account[];
}
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'];
}>;