20 lines
798 B
TypeScript
20 lines
798 B
TypeScript
import { Datetime, Boolean } from 'oak-domain/lib/types/DataType';
|
|
import { EntityShape } from 'oak-domain/lib/types/Entity';
|
|
import { Schema as WechatPublicTag } from './WechatPublicTag';
|
|
import { Schema as WechatUser } from './WechatUser';
|
|
import { EntityDesc } from 'oak-domain/lib/types/EntityDesc';
|
|
import { ActionDef } from 'oak-domain/lib/types/Action';
|
|
export interface Schema extends EntityShape {
|
|
wechatPublicTag: WechatPublicTag;
|
|
wechatUser: WechatUser;
|
|
sync: Boolean;
|
|
syncAt: Datetime;
|
|
}
|
|
export type IState = 'wait' | 'success' | 'fail';
|
|
export type IAction = 'success' | 'fail';
|
|
export declare const IActionDef: ActionDef<IAction, IState>;
|
|
export type Action = 'sync' | IAction;
|
|
export declare const entityDesc: EntityDesc<Schema, Action, '', {
|
|
iState: IState;
|
|
}>;
|