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

63 lines
1.9 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 } from "./Action";
import { AbleState } from "oak-domain/lib/actions/action";
import { Price, String } from "oak-domain/lib/types/DataType";
export type OpSchema = EntityShape & {
total: Price;
avail: Price;
refundable: Price;
ofSystemId: ForeignKey<"system">;
entity: "system" | "user" | string;
entityId: String<64>;
ableState?: AbleState | 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;
total: Q_NumberValue;
avail: Q_NumberValue;
refundable: Q_NumberValue;
ofSystemId: Q_StringValue;
entity: Q_EnumValue<"system" | "user" | string>;
entityId: Q_StringValue;
ableState: Q_EnumValue<AbleState>;
} & ExprOp<OpAttr | string>;
export type OpProjection = {
"#id"?: NodeId;
[k: string]: any;
id?: number;
$$createAt$$?: number;
$$updateAt$$?: number;
$$seq$$?: number;
total?: number;
avail?: number;
refundable?: number;
ofSystemId?: number;
entity?: number;
entityId?: number;
ableState?: number;
} & Partial<ExprOp<OpAttr | string>>;
export type OpSortAttr = Partial<{
id: number;
$$createAt$$: number;
$$seq$$: number;
$$updateAt$$: number;
total: number;
avail: number;
refundable: number;
ofSystemId: number;
entity: number;
entityId: number;
ableState: number;
[k: string]: any;
} | ExprOp<OpAttr | string>>;
export type OpAction = OakMakeAction<Action | string>;
export type OpUpdateAction = "update" | ParticularAction | string;