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

76 lines
2.2 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, String, Text, Datetime } from "oak-domain/lib/types/DataType";
export type OpSchema = EntityShape & {
withdrawId?: ForeignKey<"withdraw"> | null;
loss: Price;
payId: ForeignKey<"pay">;
meta?: Object | null;
externalMeta?: Object | null;
externalId?: String<128> | null;
price: Price;
creatorId: ForeignKey<"user">;
reason?: Text | null;
successAt?: Datetime | 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;
withdrawId: Q_StringValue;
loss: Q_NumberValue;
payId: Q_StringValue;
meta: Object;
externalMeta: Object;
externalId: Q_StringValue;
price: Q_NumberValue;
creatorId: Q_StringValue;
reason: Q_StringValue;
successAt: Q_DateValue;
iState: Q_EnumValue<IState>;
} & ExprOp<OpAttr | string>;
export type OpProjection = {
"#id"?: NodeId;
[k: string]: any;
id?: number;
$$createAt$$?: number;
$$updateAt$$?: number;
$$seq$$?: number;
withdrawId?: number;
loss?: number;
payId?: number;
meta?: number | Object;
externalMeta?: number | Object;
externalId?: number;
price?: number;
creatorId?: number;
reason?: number;
successAt?: number;
iState?: number;
} & Partial<ExprOp<OpAttr | string>>;
export type OpSortAttr = Partial<{
id: number;
$$createAt$$: number;
$$seq$$: number;
$$updateAt$$: number;
withdrawId: number;
loss: number;
payId: number;
externalId: number;
price: number;
creatorId: number;
reason: number;
successAt: number;
iState: number;
[k: string]: any;
} | ExprOp<OpAttr | string>>;
export type OpAction = OakMakeAction<Action | string>;
export type OpUpdateAction = "update" | ParticularAction | string;