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

69 lines
2.0 KiB
TypeScript

import { ForeignKey } from "oak-domain/lib/types/DataType";
import { Q_DateValue, Q_NumberValue, Q_StringValue, Q_EnumValue, NodeId, ExprOp, ExpressionKey } from "oak-domain/lib/types/Demand";
import { MakeAction as OakMakeAction, EntityShape } from "oak-domain/lib/types/Entity";
import { Action, ParticularAction, IState } from "./Action";
import { Price, Text } from "oak-domain/lib/types/DataType";
export type OpSchema = EntityShape & {
accountId: ForeignKey<"account">;
price: Price;
loss: Price;
dealPrice: Price;
dealLoss: Price;
creatorId: ForeignKey<"user">;
reason?: Text | null;
meta?: Object | null;
iState?: IState | 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;
accountId: Q_StringValue;
price: Q_NumberValue;
loss: Q_NumberValue;
dealPrice: Q_NumberValue;
dealLoss: Q_NumberValue;
creatorId: Q_StringValue;
reason: Q_StringValue;
meta: Object;
iState: Q_EnumValue<IState>;
} & ExprOp<OpAttr | string>;
export type OpProjection = {
"#id"?: NodeId;
[k: string]: any;
id?: number;
$$createAt$$?: number;
$$updateAt$$?: number;
$$seq$$?: number;
accountId?: number;
price?: number;
loss?: number;
dealPrice?: number;
dealLoss?: number;
creatorId?: number;
reason?: number;
meta?: number | Object;
iState?: number;
} & Partial<ExprOp<OpAttr | string>>;
export type OpSortAttr = Partial<{
id: number;
$$createAt$$: number;
$$seq$$: number;
$$updateAt$$: number;
accountId: number;
price: number;
loss: number;
dealPrice: number;
dealLoss: number;
creatorId: number;
reason: number;
iState: number;
[k: string]: any;
} | ExprOp<OpAttr | string>>;
export type OpAction = OakMakeAction<Action | string>;
export type OpUpdateAction = "update" | ParticularAction | string;