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

54 lines
1.6 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 { GenericAction } from "oak-domain/lib/actions/action";
import { String, Int } from "oak-domain/lib/types/DataType";
export type OpSchema = EntityShape & {
url: String<64>;
apiPath?: String<32> | null;
protocol: "http:" | "https:";
port: Int<2>;
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;
url: Q_StringValue;
apiPath: Q_StringValue;
protocol: Q_EnumValue<"http:" | "https:">;
port: Q_NumberValue;
systemId: Q_StringValue;
} & ExprOp<OpAttr | string>;
export type OpProjection = {
"#id"?: NodeId;
[k: string]: any;
id?: number;
$$createAt$$?: number;
$$updateAt$$?: number;
$$seq$$?: number;
url?: number;
apiPath?: number;
protocol?: number;
port?: number;
systemId?: number;
} & Partial<ExprOp<OpAttr | string>>;
export type OpSortAttr = Partial<{
id: number;
$$createAt$$: number;
$$seq$$: number;
$$updateAt$$: number;
url: number;
apiPath: number;
protocol: number;
port: number;
systemId: number;
[k: string]: any;
} | ExprOp<OpAttr | string>>;
export type OpAction = OakMakeAction<GenericAction | string>;
export type OpUpdateAction = "update" | string;