import { ForeignKey } from "oak-domain/lib/types/DataType"; import { Q_DateValue, Q_BooleanValue, 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 } from "./Action"; import { String, Boolean } from "oak-domain/lib/types/DataType"; export type OpSchema = EntityShape & { entity: "apAccount" | "offlineAccount" | "wpAccount" | string; entityId: String<64>; enabled: Boolean; systemId: ForeignKey<"system">; } & { [A in ExpressionKey]?: any; }; export type OpAttr = keyof OpSchema; export type OpFilter = { id: Q_StringValue; $$createAt$$: Q_DateValue; $$seq$$: Q_NumberValue; $$updateAt$$: Q_DateValue; entity: Q_EnumValue<"apAccount" | "offlineAccount" | "wpAccount" | string>; entityId: Q_StringValue; enabled: Q_BooleanValue; systemId: Q_StringValue; } & ExprOp; export type OpProjection = { "#id"?: NodeId; [k: string]: any; id?: number; $$createAt$$?: number; $$updateAt$$?: number; $$seq$$?: number; entity?: number; entityId?: number; enabled?: number; systemId?: number; } & Partial>; export type OpSortAttr = Partial<{ id: number; $$createAt$$: number; $$seq$$: number; $$updateAt$$: number; entity: number; entityId: number; enabled: number; systemId: number; [k: string]: any; } | ExprOp>; export type OpAction = OakMakeAction; export type OpUpdateAction = "update" | ParticularAction | string;