import { ForeignKey, JsonProjection } from "oak-domain/lib/types/DataType"; import { Q_DateValue, Q_NumberValue, Q_StringValue, Q_EnumValue, NodeId, ExprOp, ExpressionKey, JsonFilter } from "oak-domain/lib/types/Demand"; import { MakeAction as OakMakeAction, EntityShape } from "oak-domain/lib/types/Entity"; import { Action, ParticularAction, IState } from "./Action"; import { Int } from "oak-domain/lib/types/DataType"; type Config = { button: any[]; matchrule?: { tag_id?: string; }; }; export type OpSchema = EntityShape & { menuId?: Int<4> | null; menuConfig: Config; applicationId: ForeignKey<"application">; wechatPublicTagId?: ForeignKey<"wechatPublicTag"> | null; iState: IState; } & { [A in ExpressionKey]?: any; }; export type OpAttr = keyof OpSchema; export type OpFilter = { id: Q_StringValue; $$createAt$$: Q_DateValue; $$seq$$: Q_NumberValue; $$updateAt$$: Q_DateValue; menuId: Q_NumberValue; menuConfig: JsonFilter; applicationId: Q_StringValue; wechatPublicTagId: Q_StringValue; iState: Q_EnumValue; } & ExprOp; export type OpProjection = { "#id"?: NodeId; [k: string]: any; id?: number; $$createAt$$?: number; $$updateAt$$?: number; $$seq$$?: number; menuId?: number; menuConfig?: number | JsonProjection; applicationId?: number; wechatPublicTagId?: number; iState?: number; } & Partial>; export type OpSortAttr = Partial<{ id: number; $$createAt$$: number; $$seq$$: number; $$updateAt$$: number; menuId: number; menuConfig: number; applicationId: number; wechatPublicTagId: number; iState: number; [k: string]: any; } | ExprOp>; export type OpAction = OakMakeAction; export type OpUpdateAction = "update" | ParticularAction | string; export {};