oak-pay-business/lib/oak-app-domain/ShipCompany/_baseSchema.d.ts

45 lines
1.4 KiB
TypeScript

import { Q_DateValue, Q_NumberValue, Q_StringValue, NodeId, FulltextFilter, 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 } from "oak-domain/lib/types/DataType";
export type OpSchema = EntityShape & {
name: String<64>;
abbr: String<32>;
wechatMpName?: String<32> | 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;
abbr: Q_StringValue;
wechatMpName: Q_StringValue;
} & ExprOp<OpAttr | string> & FulltextFilter;
export type OpProjection = {
"#id"?: NodeId;
[k: string]: any;
id?: number;
$$createAt$$?: number;
$$updateAt$$?: number;
$$seq$$?: number;
name?: number;
abbr?: number;
wechatMpName?: number;
} & Partial<ExprOp<OpAttr | string>>;
export type OpSortAttr = Partial<{
id: number;
$$createAt$$: number;
$$seq$$: number;
$$updateAt$$: number;
name: number;
abbr: number;
wechatMpName: number;
[k: string]: any;
} | ExprOp<OpAttr | string>>;
export type OpAction = OakMakeAction<GenericAction | string>;
export type OpUpdateAction = "update" | string;