oak-general-business/es/oak-app-domain/OauthApplication/_baseSchema.d.ts

76 lines
2.5 KiB
TypeScript

import { ForeignKey, JsonProjection } from "oak-domain/lib/types/DataType";
import { Q_DateValue, Q_BooleanValue, Q_NumberValue, Q_StringValue, Q_EnumValue, NodeId, ExprOp, ExpressionKey, JsonFilter } 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 { String, Text } from "oak-domain/lib/types/DataType";
import { StringListJson } from "../../types/datatype";
export type OpSchema = EntityShape & {
clientSecret: String<512>;
systemId: ForeignKey<"system">;
name: String<64>;
description?: Text | null;
redirectUris?: StringListJson | null;
logo?: String<512> | null;
isConfidential: Boolean;
scopes?: StringListJson | null;
requirePKCE: Boolean;
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;
clientSecret: Q_StringValue;
systemId: Q_StringValue;
name: Q_StringValue;
description: Q_StringValue;
redirectUris: JsonFilter<StringListJson>;
logo: Q_StringValue;
isConfidential: Q_BooleanValue;
scopes: JsonFilter<StringListJson>;
requirePKCE: Q_BooleanValue;
ableState: Q_EnumValue<AbleState>;
} & ExprOp<OpAttr | string>;
export type OpProjection = {
"#id"?: NodeId;
[k: string]: any;
id?: number;
$$createAt$$?: number;
$$updateAt$$?: number;
$$seq$$?: number;
clientSecret?: number;
systemId?: number;
name?: number;
description?: number;
redirectUris?: number | JsonProjection<StringListJson>;
logo?: number;
isConfidential?: number;
scopes?: number | JsonProjection<StringListJson>;
requirePKCE?: number;
ableState?: number;
} & Partial<ExprOp<OpAttr | string>>;
export type OpSortAttr = Partial<{
id: number;
$$createAt$$: number;
$$seq$$: number;
$$updateAt$$: number;
clientSecret: number;
systemId: number;
name: number;
description: number;
redirectUris: number;
logo: number;
isConfidential: number;
scopes: number;
requirePKCE: number;
ableState: number;
[k: string]: any;
} | ExprOp<OpAttr | string>>;
export type OpAction = OakMakeAction<Action | string>;
export type OpUpdateAction = "update" | ParticularAction | string;