oak-general-business/lib/oak-app-domain/WechatMpJump/_baseSchema.d.ts

68 lines
2.1 KiB
TypeScript

import { ForeignKey, JsonProjection } from "oak-domain/lib/types/DataType";
import { Q_DateValue, Q_BooleanValue, Q_NumberValue, Q_StringValue, NodeId, ExprOp, ExpressionKey, JsonFilter } 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, Datetime, Boolean } from "oak-domain/lib/types/DataType";
type Jump_wxa = {
path?: string;
query?: string;
env_version?: string;
};
export type OpSchema = EntityShape & {
messageId?: ForeignKey<"message"> | null;
jump_wxa?: Jump_wxa | null;
openlink?: String<256> | null;
expireType?: Int<1> | null;
expireInterval?: Int<2> | null;
expiresAt?: Datetime | null;
expired?: Boolean | 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;
messageId: Q_StringValue;
jump_wxa: JsonFilter<Jump_wxa>;
openlink: Q_StringValue;
expireType: Q_NumberValue;
expireInterval: Q_NumberValue;
expiresAt: Q_DateValue;
expired: Q_BooleanValue;
} & ExprOp<OpAttr | string>;
export type OpProjection = {
"#id"?: NodeId;
[k: string]: any;
id?: number;
$$createAt$$?: number;
$$updateAt$$?: number;
$$seq$$?: number;
messageId?: number;
jump_wxa?: number | JsonProjection<Jump_wxa>;
openlink?: number;
expireType?: number;
expireInterval?: number;
expiresAt?: number;
expired?: number;
} & Partial<ExprOp<OpAttr | string>>;
export type OpSortAttr = Partial<{
id: number;
$$createAt$$: number;
$$seq$$: number;
$$updateAt$$: number;
messageId: number;
jump_wxa: number;
openlink: number;
expireType: number;
expireInterval: number;
expiresAt: number;
expired: number;
[k: string]: any;
} | ExprOp<OpAttr | string>>;
export type OpAction = OakMakeAction<GenericAction | string>;
export type OpUpdateAction = "update" | string;
export {};