import { ForeignKey } from "oak-domain/lib/types/DataType"; import { Q_DateValue, Q_NumberValue, Q_StringValue, Q_EnumValue, NodeId, ExprOp, ExpressionKey } from "oak-domain/lib/types/Demand"; import { MakeAction as OakMakeAction, EntityShape } from "oak-domain/lib/types/Entity"; import { Action, ParticularAction, IState } from "./Action"; import { Price, String, Text } from "oak-domain/lib/types/DataType"; export type OpSchema = EntityShape & { iState: IState; withdrawId: ForeignKey<"withdraw">; withdrawAccountId: ForeignKey<"withdrawAccount">; price: Price; loss: Price; operatorId?: ForeignKey<"user"> | null; creatorId: ForeignKey<"user">; externalId?: String<128> | null; meta: Object; reason?: Text | null; } & { [A in ExpressionKey]?: any; }; export type OpAttr = keyof OpSchema; export type OpFilter = { id: Q_StringValue; $$createAt$$: Q_DateValue; $$seq$$: Q_NumberValue; $$updateAt$$: Q_DateValue; iState: Q_EnumValue; withdrawId: Q_StringValue; withdrawAccountId: Q_StringValue; price: Q_NumberValue; loss: Q_NumberValue; operatorId: Q_StringValue; creatorId: Q_StringValue; externalId: Q_StringValue; meta: Object; reason: Q_StringValue; } & ExprOp; export type OpProjection = { "#id"?: NodeId; [k: string]: any; id?: number; $$createAt$$?: number; $$updateAt$$?: number; $$seq$$?: number; iState?: number; withdrawId?: number; withdrawAccountId?: number; price?: number; loss?: number; operatorId?: number; creatorId?: number; externalId?: number; meta?: number | Object; reason?: number; } & Partial>; export type OpSortAttr = Partial<{ id: number; $$createAt$$: number; $$seq$$: number; $$updateAt$$: number; iState: number; withdrawId: number; withdrawAccountId: number; price: number; loss: number; operatorId: number; creatorId: number; externalId: number; reason: number; [k: string]: any; } | ExprOp>; export type OpAction = OakMakeAction; export type OpUpdateAction = "update" | ParticularAction | string;