oak-general-business/lib/oak-app-domain/WechatMenu/_baseSchema.d.ts

61 lines
1.9 KiB
TypeScript

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<Config>;
applicationId: Q_StringValue;
wechatPublicTagId: Q_StringValue;
iState: Q_EnumValue<IState>;
} & ExprOp<OpAttr | string>;
export type OpProjection = {
"#id"?: NodeId;
[k: string]: any;
id?: number;
$$createAt$$?: number;
$$updateAt$$?: number;
$$seq$$?: number;
menuId?: number;
menuConfig?: number | JsonProjection<Config>;
applicationId?: number;
wechatPublicTagId?: number;
iState?: number;
} & Partial<ExprOp<OpAttr | string>>;
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<OpAttr | string>>;
export type OpAction = OakMakeAction<Action | string>;
export type OpUpdateAction = "update" | ParticularAction | string;
export {};