import { ForeignKey } from "oak-domain/lib/types/DataType"; import { Q_DateValue, Q_BooleanValue, Q_NumberValue, Q_StringValue, NodeId, ExprOp, ExpressionKey } from "oak-domain/lib/types/Demand"; import { MakeAction as OakMakeAction, EntityShape } from "oak-domain/lib/types/Entity"; import { GenericAction } from "oak-domain/lib/actions/action"; import { Decimal, Int, String, Boolean } from "oak-domain/lib/types/DataType"; export type OpSchema = EntityShape & { sort: Decimal<12, 8>; phatom1?: Int<8> | null; phatom2?: String<64> | null; systemId: ForeignKey<"system">; disabled: Boolean; wpProductId: ForeignKey<"wpProduct">; } & { [A in ExpressionKey]?: any; }; export type OpAttr = keyof OpSchema; export type OpFilter = { id: Q_StringValue; $$createAt$$: Q_DateValue; $$seq$$: Q_NumberValue; $$updateAt$$: Q_DateValue; sort: Q_NumberValue; phatom1: Q_NumberValue; phatom2: Q_StringValue; systemId: Q_StringValue; disabled: Q_BooleanValue; wpProductId: Q_StringValue; } & ExprOp; export type OpProjection = { "#id"?: NodeId; [k: string]: any; id?: number; $$createAt$$?: number; $$updateAt$$?: number; $$seq$$?: number; sort?: number; phatom1?: number; phatom2?: number; systemId?: number; disabled?: number; wpProductId?: number; } & Partial>; export type OpSortAttr = Partial<{ id: number; $$createAt$$: number; $$seq$$: number; $$updateAt$$: number; sort: number; phatom1: number; phatom2: number; disabled: number; [k: string]: any; } | ExprOp>; export type OpAction = OakMakeAction; export type OpUpdateAction = "update" | string;