49 lines
1.5 KiB
TypeScript
49 lines
1.5 KiB
TypeScript
import { Q_DateValue, 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 { String, Decimal, Int } from "oak-domain/lib/types/DataType";
|
|
export type OpSchema = EntityShape & {
|
|
bizId?: String<128> | null;
|
|
sort: Decimal<4, 10>;
|
|
phatom1?: Int<8> | null;
|
|
phatom2?: String<64> | 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;
|
|
bizId: Q_StringValue;
|
|
sort: Q_NumberValue;
|
|
phatom1: Q_NumberValue;
|
|
phatom2: Q_StringValue;
|
|
} & ExprOp<OpAttr | string>;
|
|
export type OpProjection = {
|
|
"#id"?: NodeId;
|
|
[k: string]: any;
|
|
id?: number;
|
|
$$createAt$$?: number;
|
|
$$updateAt$$?: number;
|
|
$$seq$$?: number;
|
|
bizId?: number;
|
|
sort?: number;
|
|
phatom1?: number;
|
|
phatom2?: number;
|
|
} & Partial<ExprOp<OpAttr | string>>;
|
|
export type OpSortAttr = Partial<{
|
|
id: number;
|
|
$$createAt$$: number;
|
|
$$seq$$: number;
|
|
$$updateAt$$: number;
|
|
bizId: number;
|
|
sort: number;
|
|
phatom1: number;
|
|
phatom2: number;
|
|
[k: string]: any;
|
|
} | ExprOp<OpAttr | string>>;
|
|
export type OpAction = OakMakeAction<GenericAction | string>;
|
|
export type OpUpdateAction = "update" | string;
|