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

54 lines
1.6 KiB
TypeScript

import { ForeignKey } from "oak-domain/lib/types/DataType";
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 { AppendOnlyAction } from "oak-domain/lib/actions/action";
import { Price, String, Text } from "oak-domain/lib/types/DataType";
export type OpSchema = EntityShape & {
price: Price;
externalId: String<64>;
operatorId: ForeignKey<"user">;
remark?: Text | null;
systemId: ForeignKey<"system">;
} & {
[A in ExpressionKey]?: any;
};
export type OpAttr = keyof OpSchema;
export type OpFilter = {
id: Q_StringValue;
$$createAt$$: Q_DateValue;
$$seq$$: Q_NumberValue;
$$updateAt$$: Q_DateValue;
price: Q_NumberValue;
externalId: Q_StringValue;
operatorId: Q_StringValue;
remark: Q_StringValue;
systemId: Q_StringValue;
} & ExprOp<OpAttr | string>;
export type OpProjection = {
"#id"?: NodeId;
[k: string]: any;
id?: number;
$$createAt$$?: number;
$$updateAt$$?: number;
$$seq$$?: number;
price?: number;
externalId?: number;
operatorId?: number;
remark?: number;
systemId?: number;
} & Partial<ExprOp<OpAttr | string>>;
export type OpSortAttr = Partial<{
id: number;
$$createAt$$: number;
$$seq$$: number;
$$updateAt$$: number;
price: number;
externalId: number;
operatorId: number;
remark: number;
systemId: number;
[k: string]: any;
} | ExprOp<OpAttr | string>>;
export type OpAction = OakMakeAction<AppendOnlyAction | string>;
export type OpUpdateAction = "update" | string;