oak-pay-business/es/oak-app-domain/ArticleMenu/_baseSchema.d.ts

62 lines
1.9 KiB
TypeScript

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 { String, Boolean, Datetime } from "oak-domain/lib/types/DataType";
export type OpSchema = EntityShape & {
name: String<32>;
isArticle: Boolean;
parentId?: ForeignKey<"articleMenu"> | null;
isLeaf?: Boolean | null;
entity: String<32>;
entityId: String<64>;
latestAt?: Datetime | 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;
name: Q_StringValue;
isArticle: Q_BooleanValue;
parentId: Q_StringValue;
isLeaf: Q_BooleanValue;
entity: Q_StringValue;
entityId: Q_StringValue;
latestAt: Q_DateValue;
} & ExprOp<OpAttr | string>;
export type OpProjection = {
"#id"?: NodeId;
[k: string]: any;
id?: number;
$$createAt$$?: number;
$$updateAt$$?: number;
$$seq$$?: number;
name?: number;
isArticle?: number;
parentId?: number;
isLeaf?: number;
entity?: number;
entityId?: number;
latestAt?: number;
} & Partial<ExprOp<OpAttr | string>>;
export type OpSortAttr = Partial<{
id: number;
$$createAt$$: number;
$$seq$$: number;
$$updateAt$$: number;
name: number;
isArticle: number;
parentId: number;
isLeaf: number;
entity: number;
entityId: number;
latestAt: number;
[k: string]: any;
} | ExprOp<OpAttr | string>>;
export type OpAction = OakMakeAction<GenericAction | string>;
export type OpUpdateAction = "update" | string;