66 lines
2.2 KiB
TypeScript
66 lines
2.2 KiB
TypeScript
import { ForeignKey } from "oak-domain/lib/types/DataType";
|
|
import { Q_DateValue, Q_BooleanValue, 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 { GenericAction } from "oak-domain/lib/actions/action";
|
|
import { Decimal, Int, Boolean } from "oak-domain/lib/types/DataType";
|
|
export type OpSchema = EntityShape & {
|
|
taxLossRatio?: Decimal<4, 2> | null;
|
|
refundGapDays?: Int<4> | null;
|
|
refundCompensateRatio?: Int<4> | null;
|
|
needReceiving?: Boolean | null;
|
|
applicationId: ForeignKey<"application">;
|
|
enabled: Boolean;
|
|
wpAccountId: ForeignKey<"wpAccount">;
|
|
type: "native" | "mp" | "jsapi" | "h5" | "app";
|
|
} & {
|
|
[A in ExpressionKey]?: any;
|
|
};
|
|
export type OpAttr = keyof OpSchema;
|
|
export type OpFilter = {
|
|
id: Q_StringValue;
|
|
$$createAt$$: Q_DateValue;
|
|
$$seq$$: Q_NumberValue;
|
|
$$updateAt$$: Q_DateValue;
|
|
taxLossRatio: Q_NumberValue;
|
|
refundGapDays: Q_NumberValue;
|
|
refundCompensateRatio: Q_NumberValue;
|
|
needReceiving: Q_BooleanValue;
|
|
applicationId: Q_StringValue;
|
|
enabled: Q_BooleanValue;
|
|
wpAccountId: Q_StringValue;
|
|
type: Q_EnumValue<"native" | "mp" | "jsapi" | "h5" | "app">;
|
|
} & ExprOp<OpAttr | string>;
|
|
export type OpProjection = {
|
|
"#id"?: NodeId;
|
|
[k: string]: any;
|
|
id?: number;
|
|
$$createAt$$?: number;
|
|
$$updateAt$$?: number;
|
|
$$seq$$?: number;
|
|
taxLossRatio?: number;
|
|
refundGapDays?: number;
|
|
refundCompensateRatio?: number;
|
|
needReceiving?: number;
|
|
applicationId?: number;
|
|
enabled?: number;
|
|
wpAccountId?: number;
|
|
type?: number;
|
|
} & Partial<ExprOp<OpAttr | string>>;
|
|
export type OpSortAttr = Partial<{
|
|
id: number;
|
|
$$createAt$$: number;
|
|
$$seq$$: number;
|
|
$$updateAt$$: number;
|
|
taxLossRatio: number;
|
|
refundGapDays: number;
|
|
refundCompensateRatio: number;
|
|
needReceiving: number;
|
|
applicationId: number;
|
|
enabled: number;
|
|
wpAccountId: number;
|
|
type: number;
|
|
[k: string]: any;
|
|
} | ExprOp<OpAttr | string>>;
|
|
export type OpAction = OakMakeAction<GenericAction | string>;
|
|
export type OpUpdateAction = "update" | string;
|