434 lines
42 KiB
TypeScript
434 lines
42 KiB
TypeScript
import { ForeignKey, JsonProjection } from "oak-domain/lib/types/DataType";
|
|
import { Q_DateValue, Q_BooleanValue, Q_NumberValue, Q_StringValue, NodeId, MakeFilter, ExprOp, ExpressionKey, JsonFilter, SubQueryPredicateMetadata } from "oak-domain/lib/types/Demand";
|
|
import { OneOf } from "oak-domain/lib/types/Polyfill";
|
|
import { FormCreateData, FormUpdateData, DeduceAggregation, Operation as OakOperation, Selection as OakSelection, MakeAction as OakMakeAction, AggregationResult, EntityShape } from "oak-domain/lib/types/Entity";
|
|
import { GenericAction } from "oak-domain/lib/actions/action";
|
|
import { String, Text, Boolean } from "oak-domain/lib/types/DataType";
|
|
import { Config } from "oak-general-business/lib/types/Config";
|
|
import { Style } from "oak-general-business/lib/types/Style";
|
|
import * as Platform from "../Platform/Schema";
|
|
import * as Application from "../Application/Schema";
|
|
import * as Domain from "../Domain/Schema";
|
|
import * as MessageSystem from "../MessageSystem/Schema";
|
|
import * as Passport from "../Passport/Schema";
|
|
import * as SmsTemplate from "../SmsTemplate/Schema";
|
|
import * as UserSystem from "../UserSystem/Schema";
|
|
import * as Account from "../Account/Schema";
|
|
import * as OfflineAccount from "../OfflineAccount/Schema";
|
|
import * as Order from "../Order/Schema";
|
|
import * as ShipCompanySystem from "../ShipCompanySystem/Schema";
|
|
import * as SysAccountMove from "../SysAccountMove/Schema";
|
|
import * as WechatPay from "../WechatPay/Schema";
|
|
import * as WithdrawAccount from "../WithdrawAccount/Schema";
|
|
import * as WithdrawChannel from "../WithdrawChannel/Schema";
|
|
import * as WpAccount from "../WpAccount/Schema";
|
|
type PayConfig = {
|
|
withdrawLoss: {
|
|
conservative: boolean;
|
|
ratio?: number;
|
|
lowest?: number;
|
|
highest?: number;
|
|
trim?: "jiao" | "yuan";
|
|
};
|
|
depositLoss: {
|
|
ratio?: number;
|
|
lowest?: number;
|
|
highest?: number;
|
|
};
|
|
};
|
|
export type OpSchema = EntityShape & {
|
|
name: String<32>;
|
|
description?: Text | null;
|
|
config: Config;
|
|
platformId?: ForeignKey<"platform"> | null;
|
|
folder?: String<16> | null;
|
|
super?: Boolean | null;
|
|
style?: Style | null;
|
|
entity?: String<32> | null;
|
|
entityId?: String<64> | null;
|
|
payConfig?: PayConfig | null;
|
|
};
|
|
export type OpAttr = keyof OpSchema;
|
|
type Application$systemAggr = "application$system$$aggr" | "application$system$$0$$aggr" | "application$system$$1$$aggr" | "application$system$$2$$aggr" | "application$system$$3$$aggr" | "application$system$$4$$aggr" | "application$system$$5$$aggr" | "application$system$$6$$aggr" | "application$system$$7$$aggr" | "application$system$$8$$aggr" | "application$system$$9$$aggr";
|
|
type Domain$systemAggr = "domain$system$$aggr" | "domain$system$$0$$aggr" | "domain$system$$1$$aggr" | "domain$system$$2$$aggr" | "domain$system$$3$$aggr" | "domain$system$$4$$aggr" | "domain$system$$5$$aggr" | "domain$system$$6$$aggr" | "domain$system$$7$$aggr" | "domain$system$$8$$aggr" | "domain$system$$9$$aggr";
|
|
type MessageSystem$systemAggr = "messageSystem$system$$aggr" | "messageSystem$system$$0$$aggr" | "messageSystem$system$$1$$aggr" | "messageSystem$system$$2$$aggr" | "messageSystem$system$$3$$aggr" | "messageSystem$system$$4$$aggr" | "messageSystem$system$$5$$aggr" | "messageSystem$system$$6$$aggr" | "messageSystem$system$$7$$aggr" | "messageSystem$system$$8$$aggr" | "messageSystem$system$$9$$aggr";
|
|
type Passport$systemAggr = "passport$system$$aggr" | "passport$system$$0$$aggr" | "passport$system$$1$$aggr" | "passport$system$$2$$aggr" | "passport$system$$3$$aggr" | "passport$system$$4$$aggr" | "passport$system$$5$$aggr" | "passport$system$$6$$aggr" | "passport$system$$7$$aggr" | "passport$system$$8$$aggr" | "passport$system$$9$$aggr";
|
|
type SmsTemplate$systemAggr = "smsTemplate$system$$aggr" | "smsTemplate$system$$0$$aggr" | "smsTemplate$system$$1$$aggr" | "smsTemplate$system$$2$$aggr" | "smsTemplate$system$$3$$aggr" | "smsTemplate$system$$4$$aggr" | "smsTemplate$system$$5$$aggr" | "smsTemplate$system$$6$$aggr" | "smsTemplate$system$$7$$aggr" | "smsTemplate$system$$8$$aggr" | "smsTemplate$system$$9$$aggr";
|
|
type UserSystem$systemAggr = "userSystem$system$$aggr" | "userSystem$system$$0$$aggr" | "userSystem$system$$1$$aggr" | "userSystem$system$$2$$aggr" | "userSystem$system$$3$$aggr" | "userSystem$system$$4$$aggr" | "userSystem$system$$5$$aggr" | "userSystem$system$$6$$aggr" | "userSystem$system$$7$$aggr" | "userSystem$system$$8$$aggr" | "userSystem$system$$9$$aggr";
|
|
type Account$ofSystemAggr = "account$ofSystem$$aggr" | "account$ofSystem$$0$$aggr" | "account$ofSystem$$1$$aggr" | "account$ofSystem$$2$$aggr" | "account$ofSystem$$3$$aggr" | "account$ofSystem$$4$$aggr" | "account$ofSystem$$5$$aggr" | "account$ofSystem$$6$$aggr" | "account$ofSystem$$7$$aggr" | "account$ofSystem$$8$$aggr" | "account$ofSystem$$9$$aggr";
|
|
type Account$entityAggr = "account$entity$$aggr" | "account$entity$$0$$aggr" | "account$entity$$1$$aggr" | "account$entity$$2$$aggr" | "account$entity$$3$$aggr" | "account$entity$$4$$aggr" | "account$entity$$5$$aggr" | "account$entity$$6$$aggr" | "account$entity$$7$$aggr" | "account$entity$$8$$aggr" | "account$entity$$9$$aggr";
|
|
type OfflineAccount$systemAggr = "offlineAccount$system$$aggr" | "offlineAccount$system$$0$$aggr" | "offlineAccount$system$$1$$aggr" | "offlineAccount$system$$2$$aggr" | "offlineAccount$system$$3$$aggr" | "offlineAccount$system$$4$$aggr" | "offlineAccount$system$$5$$aggr" | "offlineAccount$system$$6$$aggr" | "offlineAccount$system$$7$$aggr" | "offlineAccount$system$$8$$aggr" | "offlineAccount$system$$9$$aggr";
|
|
type Order$systemAggr = "order$system$$aggr" | "order$system$$0$$aggr" | "order$system$$1$$aggr" | "order$system$$2$$aggr" | "order$system$$3$$aggr" | "order$system$$4$$aggr" | "order$system$$5$$aggr" | "order$system$$6$$aggr" | "order$system$$7$$aggr" | "order$system$$8$$aggr" | "order$system$$9$$aggr";
|
|
type ShipCompanySystem$systemAggr = "shipCompanySystem$system$$aggr" | "shipCompanySystem$system$$0$$aggr" | "shipCompanySystem$system$$1$$aggr" | "shipCompanySystem$system$$2$$aggr" | "shipCompanySystem$system$$3$$aggr" | "shipCompanySystem$system$$4$$aggr" | "shipCompanySystem$system$$5$$aggr" | "shipCompanySystem$system$$6$$aggr" | "shipCompanySystem$system$$7$$aggr" | "shipCompanySystem$system$$8$$aggr" | "shipCompanySystem$system$$9$$aggr";
|
|
type SysAccountMove$systemAggr = "sysAccountMove$system$$aggr" | "sysAccountMove$system$$0$$aggr" | "sysAccountMove$system$$1$$aggr" | "sysAccountMove$system$$2$$aggr" | "sysAccountMove$system$$3$$aggr" | "sysAccountMove$system$$4$$aggr" | "sysAccountMove$system$$5$$aggr" | "sysAccountMove$system$$6$$aggr" | "sysAccountMove$system$$7$$aggr" | "sysAccountMove$system$$8$$aggr" | "sysAccountMove$system$$9$$aggr";
|
|
type WechatPay$systemAggr = "wechatPay$system$$aggr" | "wechatPay$system$$0$$aggr" | "wechatPay$system$$1$$aggr" | "wechatPay$system$$2$$aggr" | "wechatPay$system$$3$$aggr" | "wechatPay$system$$4$$aggr" | "wechatPay$system$$5$$aggr" | "wechatPay$system$$6$$aggr" | "wechatPay$system$$7$$aggr" | "wechatPay$system$$8$$aggr" | "wechatPay$system$$9$$aggr";
|
|
type WithdrawAccount$ofSystemAggr = "withdrawAccount$ofSystem$$aggr" | "withdrawAccount$ofSystem$$0$$aggr" | "withdrawAccount$ofSystem$$1$$aggr" | "withdrawAccount$ofSystem$$2$$aggr" | "withdrawAccount$ofSystem$$3$$aggr" | "withdrawAccount$ofSystem$$4$$aggr" | "withdrawAccount$ofSystem$$5$$aggr" | "withdrawAccount$ofSystem$$6$$aggr" | "withdrawAccount$ofSystem$$7$$aggr" | "withdrawAccount$ofSystem$$8$$aggr" | "withdrawAccount$ofSystem$$9$$aggr";
|
|
type WithdrawAccount$entityAggr = "withdrawAccount$entity$$aggr" | "withdrawAccount$entity$$0$$aggr" | "withdrawAccount$entity$$1$$aggr" | "withdrawAccount$entity$$2$$aggr" | "withdrawAccount$entity$$3$$aggr" | "withdrawAccount$entity$$4$$aggr" | "withdrawAccount$entity$$5$$aggr" | "withdrawAccount$entity$$6$$aggr" | "withdrawAccount$entity$$7$$aggr" | "withdrawAccount$entity$$8$$aggr" | "withdrawAccount$entity$$9$$aggr";
|
|
type WithdrawChannel$systemAggr = "withdrawChannel$system$$aggr" | "withdrawChannel$system$$0$$aggr" | "withdrawChannel$system$$1$$aggr" | "withdrawChannel$system$$2$$aggr" | "withdrawChannel$system$$3$$aggr" | "withdrawChannel$system$$4$$aggr" | "withdrawChannel$system$$5$$aggr" | "withdrawChannel$system$$6$$aggr" | "withdrawChannel$system$$7$$aggr" | "withdrawChannel$system$$8$$aggr" | "withdrawChannel$system$$9$$aggr";
|
|
type WpAccount$systemAggr = "wpAccount$system$$aggr" | "wpAccount$system$$0$$aggr" | "wpAccount$system$$1$$aggr" | "wpAccount$system$$2$$aggr" | "wpAccount$system$$3$$aggr" | "wpAccount$system$$4$$aggr" | "wpAccount$system$$5$$aggr" | "wpAccount$system$$6$$aggr" | "wpAccount$system$$7$$aggr" | "wpAccount$system$$8$$aggr" | "wpAccount$system$$9$$aggr";
|
|
export type Schema = OpSchema & {
|
|
platform?: Platform.Schema | null;
|
|
application$system?: Array<Application.Schema>;
|
|
domain$system?: Array<Domain.Schema>;
|
|
messageSystem$system?: Array<MessageSystem.Schema>;
|
|
passport$system?: Array<Passport.Schema>;
|
|
smsTemplate$system?: Array<SmsTemplate.Schema>;
|
|
userSystem$system?: Array<UserSystem.Schema>;
|
|
account$ofSystem?: Array<Account.Schema>;
|
|
account$entity?: Array<Account.Schema>;
|
|
offlineAccount$system?: Array<OfflineAccount.Schema>;
|
|
order$system?: Array<Order.Schema>;
|
|
shipCompanySystem$system?: Array<ShipCompanySystem.Schema>;
|
|
sysAccountMove$system?: Array<SysAccountMove.Schema>;
|
|
wechatPay$system?: Array<WechatPay.Schema>;
|
|
withdrawAccount$ofSystem?: Array<WithdrawAccount.Schema>;
|
|
withdrawAccount$entity?: Array<WithdrawAccount.Schema>;
|
|
withdrawChannel$system?: Array<WithdrawChannel.Schema>;
|
|
wpAccount$system?: Array<WpAccount.Schema>;
|
|
} & {
|
|
[A in ExpressionKey]?: any;
|
|
} & {
|
|
[A in Application$systemAggr]?: AggregationResult<Application.Schema>;
|
|
} & {
|
|
[A in Domain$systemAggr]?: AggregationResult<Domain.Schema>;
|
|
} & {
|
|
[A in MessageSystem$systemAggr]?: AggregationResult<MessageSystem.Schema>;
|
|
} & {
|
|
[A in Passport$systemAggr]?: AggregationResult<Passport.Schema>;
|
|
} & {
|
|
[A in SmsTemplate$systemAggr]?: AggregationResult<SmsTemplate.Schema>;
|
|
} & {
|
|
[A in UserSystem$systemAggr]?: AggregationResult<UserSystem.Schema>;
|
|
} & {
|
|
[A in Account$ofSystemAggr]?: AggregationResult<Account.Schema>;
|
|
} & {
|
|
[A in Account$entityAggr]?: AggregationResult<Account.Schema>;
|
|
} & {
|
|
[A in OfflineAccount$systemAggr]?: AggregationResult<OfflineAccount.Schema>;
|
|
} & {
|
|
[A in Order$systemAggr]?: AggregationResult<Order.Schema>;
|
|
} & {
|
|
[A in ShipCompanySystem$systemAggr]?: AggregationResult<ShipCompanySystem.Schema>;
|
|
} & {
|
|
[A in SysAccountMove$systemAggr]?: AggregationResult<SysAccountMove.Schema>;
|
|
} & {
|
|
[A in WechatPay$systemAggr]?: AggregationResult<WechatPay.Schema>;
|
|
} & {
|
|
[A in WithdrawAccount$ofSystemAggr]?: AggregationResult<WithdrawAccount.Schema>;
|
|
} & {
|
|
[A in WithdrawAccount$entityAggr]?: AggregationResult<WithdrawAccount.Schema>;
|
|
} & {
|
|
[A in WithdrawChannel$systemAggr]?: AggregationResult<WithdrawChannel.Schema>;
|
|
} & {
|
|
[A in WpAccount$systemAggr]?: AggregationResult<WpAccount.Schema>;
|
|
};
|
|
type AttrFilter = {
|
|
id: Q_StringValue;
|
|
$$createAt$$: Q_DateValue;
|
|
$$seq$$: Q_NumberValue;
|
|
$$updateAt$$: Q_DateValue;
|
|
name: Q_StringValue;
|
|
description: Q_StringValue;
|
|
config: JsonFilter<Config>;
|
|
platformId: Q_StringValue;
|
|
platform: Platform.Filter;
|
|
folder: Q_StringValue;
|
|
super: Q_BooleanValue;
|
|
style: JsonFilter<Style>;
|
|
entity: Q_StringValue;
|
|
entityId: Q_StringValue;
|
|
payConfig: JsonFilter<PayConfig>;
|
|
application$system: Application.Filter & SubQueryPredicateMetadata;
|
|
domain$system: Domain.Filter & SubQueryPredicateMetadata;
|
|
messageSystem$system: MessageSystem.Filter & SubQueryPredicateMetadata;
|
|
passport$system: Passport.Filter & SubQueryPredicateMetadata;
|
|
smsTemplate$system: SmsTemplate.Filter & SubQueryPredicateMetadata;
|
|
userSystem$system: UserSystem.Filter & SubQueryPredicateMetadata;
|
|
account$ofSystem: Account.Filter & SubQueryPredicateMetadata;
|
|
account$entity: Account.Filter & SubQueryPredicateMetadata;
|
|
offlineAccount$system: OfflineAccount.Filter & SubQueryPredicateMetadata;
|
|
order$system: Order.Filter & SubQueryPredicateMetadata;
|
|
shipCompanySystem$system: ShipCompanySystem.Filter & SubQueryPredicateMetadata;
|
|
sysAccountMove$system: SysAccountMove.Filter & SubQueryPredicateMetadata;
|
|
wechatPay$system: WechatPay.Filter & SubQueryPredicateMetadata;
|
|
withdrawAccount$ofSystem: WithdrawAccount.Filter & SubQueryPredicateMetadata;
|
|
withdrawAccount$entity: WithdrawAccount.Filter & SubQueryPredicateMetadata;
|
|
withdrawChannel$system: WithdrawChannel.Filter & SubQueryPredicateMetadata;
|
|
wpAccount$system: WpAccount.Filter & SubQueryPredicateMetadata;
|
|
};
|
|
export type Filter = MakeFilter<AttrFilter & ExprOp<OpAttr | string>>;
|
|
export type Projection = {
|
|
"#id"?: NodeId;
|
|
[k: string]: any;
|
|
id?: number;
|
|
$$createAt$$?: number;
|
|
$$updateAt$$?: number;
|
|
$$seq$$?: number;
|
|
name?: number;
|
|
description?: number;
|
|
config?: number | JsonProjection<Config>;
|
|
platformId?: number;
|
|
platform?: Platform.Projection;
|
|
folder?: number;
|
|
super?: number;
|
|
style?: number | JsonProjection<Style>;
|
|
entity?: number;
|
|
entityId?: number;
|
|
payConfig?: number | JsonProjection<PayConfig>;
|
|
application$system?: Application.Selection & {
|
|
$entity: "application";
|
|
};
|
|
domain$system?: Domain.Selection & {
|
|
$entity: "domain";
|
|
};
|
|
messageSystem$system?: MessageSystem.Selection & {
|
|
$entity: "messageSystem";
|
|
};
|
|
passport$system?: Passport.Selection & {
|
|
$entity: "passport";
|
|
};
|
|
smsTemplate$system?: SmsTemplate.Selection & {
|
|
$entity: "smsTemplate";
|
|
};
|
|
userSystem$system?: UserSystem.Selection & {
|
|
$entity: "userSystem";
|
|
};
|
|
account$ofSystem?: Account.Selection & {
|
|
$entity: "account";
|
|
};
|
|
account$entity?: Account.Selection & {
|
|
$entity: "account";
|
|
};
|
|
offlineAccount$system?: OfflineAccount.Selection & {
|
|
$entity: "offlineAccount";
|
|
};
|
|
order$system?: Order.Selection & {
|
|
$entity: "order";
|
|
};
|
|
shipCompanySystem$system?: ShipCompanySystem.Selection & {
|
|
$entity: "shipCompanySystem";
|
|
};
|
|
sysAccountMove$system?: SysAccountMove.Selection & {
|
|
$entity: "sysAccountMove";
|
|
};
|
|
wechatPay$system?: WechatPay.Selection & {
|
|
$entity: "wechatPay";
|
|
};
|
|
withdrawAccount$ofSystem?: WithdrawAccount.Selection & {
|
|
$entity: "withdrawAccount";
|
|
};
|
|
withdrawAccount$entity?: WithdrawAccount.Selection & {
|
|
$entity: "withdrawAccount";
|
|
};
|
|
withdrawChannel$system?: WithdrawChannel.Selection & {
|
|
$entity: "withdrawChannel";
|
|
};
|
|
wpAccount$system?: WpAccount.Selection & {
|
|
$entity: "wpAccount";
|
|
};
|
|
} & Partial<ExprOp<OpAttr | string>> & {
|
|
[A in Application$systemAggr]?: Application.Aggregation & {
|
|
$entity: "application";
|
|
};
|
|
} & {
|
|
[A in Domain$systemAggr]?: Domain.Aggregation & {
|
|
$entity: "domain";
|
|
};
|
|
} & {
|
|
[A in MessageSystem$systemAggr]?: MessageSystem.Aggregation & {
|
|
$entity: "messageSystem";
|
|
};
|
|
} & {
|
|
[A in Passport$systemAggr]?: Passport.Aggregation & {
|
|
$entity: "passport";
|
|
};
|
|
} & {
|
|
[A in SmsTemplate$systemAggr]?: SmsTemplate.Aggregation & {
|
|
$entity: "smsTemplate";
|
|
};
|
|
} & {
|
|
[A in UserSystem$systemAggr]?: UserSystem.Aggregation & {
|
|
$entity: "userSystem";
|
|
};
|
|
} & {
|
|
[A in Account$ofSystemAggr]?: Account.Aggregation & {
|
|
$entity: "account";
|
|
};
|
|
} & {
|
|
[A in Account$entityAggr]?: Account.Aggregation & {
|
|
$entity: "account";
|
|
};
|
|
} & {
|
|
[A in OfflineAccount$systemAggr]?: OfflineAccount.Aggregation & {
|
|
$entity: "offlineAccount";
|
|
};
|
|
} & {
|
|
[A in Order$systemAggr]?: Order.Aggregation & {
|
|
$entity: "order";
|
|
};
|
|
} & {
|
|
[A in ShipCompanySystem$systemAggr]?: ShipCompanySystem.Aggregation & {
|
|
$entity: "shipCompanySystem";
|
|
};
|
|
} & {
|
|
[A in SysAccountMove$systemAggr]?: SysAccountMove.Aggregation & {
|
|
$entity: "sysAccountMove";
|
|
};
|
|
} & {
|
|
[A in WechatPay$systemAggr]?: WechatPay.Aggregation & {
|
|
$entity: "wechatPay";
|
|
};
|
|
} & {
|
|
[A in WithdrawAccount$ofSystemAggr]?: WithdrawAccount.Aggregation & {
|
|
$entity: "withdrawAccount";
|
|
};
|
|
} & {
|
|
[A in WithdrawAccount$entityAggr]?: WithdrawAccount.Aggregation & {
|
|
$entity: "withdrawAccount";
|
|
};
|
|
} & {
|
|
[A in WithdrawChannel$systemAggr]?: WithdrawChannel.Aggregation & {
|
|
$entity: "withdrawChannel";
|
|
};
|
|
} & {
|
|
[A in WpAccount$systemAggr]?: WpAccount.Aggregation & {
|
|
$entity: "wpAccount";
|
|
};
|
|
};
|
|
type SystemIdProjection = OneOf<{
|
|
id: number;
|
|
}>;
|
|
type PlatformIdProjection = OneOf<{
|
|
platformId: number;
|
|
}>;
|
|
export type SortAttr = {
|
|
id: number;
|
|
} | {
|
|
$$createAt$$: number;
|
|
} | {
|
|
$$seq$$: number;
|
|
} | {
|
|
$$updateAt$$: number;
|
|
} | {
|
|
name: number;
|
|
} | {
|
|
description: number;
|
|
} | {
|
|
config: number;
|
|
} | {
|
|
platformId: number;
|
|
} | {
|
|
platform: Platform.SortAttr;
|
|
} | {
|
|
folder: number;
|
|
} | {
|
|
super: number;
|
|
} | {
|
|
style: number;
|
|
} | {
|
|
entity: number;
|
|
} | {
|
|
entityId: number;
|
|
} | {
|
|
payConfig: number;
|
|
} | {
|
|
[k: string]: any;
|
|
} | OneOf<ExprOp<OpAttr | string>>;
|
|
export type SortNode = {
|
|
$attr: SortAttr;
|
|
$direction?: "asc" | "desc";
|
|
};
|
|
export type Sorter = SortNode[];
|
|
export type SelectOperation<P extends Object = Projection> = OakSelection<"select", P, Filter, Sorter>;
|
|
export type Selection<P extends Object = Projection> = SelectOperation<P>;
|
|
export type Aggregation = DeduceAggregation<Projection, Filter, Sorter>;
|
|
export type CreateOperationData = FormCreateData<Omit<OpSchema, "entity" | "entityId" | "platformId">> & (({
|
|
platformId?: never;
|
|
platform?: Platform.CreateSingleOperation;
|
|
} | {
|
|
platformId: ForeignKey<"platform">;
|
|
platform?: Platform.UpdateOperation;
|
|
} | {
|
|
platform?: never;
|
|
platformId?: ForeignKey<"platform">;
|
|
})) & ({
|
|
entity?: string;
|
|
entityId?: string;
|
|
[K: string]: any;
|
|
}) & {
|
|
application$system?: OakOperation<Application.UpdateOperation["action"], Omit<Application.UpdateOperationData, "system" | "systemId">, Omit<Application.Filter, "system" | "systemId">> | OakOperation<"create", Omit<Application.CreateOperationData, "system" | "systemId">[]> | Array<OakOperation<"create", Omit<Application.CreateOperationData, "system" | "systemId">> | OakOperation<Application.UpdateOperation["action"], Omit<Application.UpdateOperationData, "system" | "systemId">, Omit<Application.Filter, "system" | "systemId">>>;
|
|
domain$system?: OakOperation<Domain.UpdateOperation["action"], Omit<Domain.UpdateOperationData, "system" | "systemId">, Omit<Domain.Filter, "system" | "systemId">> | OakOperation<"create", Omit<Domain.CreateOperationData, "system" | "systemId">[]> | Array<OakOperation<"create", Omit<Domain.CreateOperationData, "system" | "systemId">> | OakOperation<Domain.UpdateOperation["action"], Omit<Domain.UpdateOperationData, "system" | "systemId">, Omit<Domain.Filter, "system" | "systemId">>>;
|
|
messageSystem$system?: OakOperation<MessageSystem.UpdateOperation["action"], Omit<MessageSystem.UpdateOperationData, "system" | "systemId">, Omit<MessageSystem.Filter, "system" | "systemId">> | OakOperation<"create", Omit<MessageSystem.CreateOperationData, "system" | "systemId">[]> | Array<OakOperation<"create", Omit<MessageSystem.CreateOperationData, "system" | "systemId">> | OakOperation<MessageSystem.UpdateOperation["action"], Omit<MessageSystem.UpdateOperationData, "system" | "systemId">, Omit<MessageSystem.Filter, "system" | "systemId">>>;
|
|
passport$system?: OakOperation<Passport.UpdateOperation["action"], Omit<Passport.UpdateOperationData, "system" | "systemId">, Omit<Passport.Filter, "system" | "systemId">> | OakOperation<"create", Omit<Passport.CreateOperationData, "system" | "systemId">[]> | Array<OakOperation<"create", Omit<Passport.CreateOperationData, "system" | "systemId">> | OakOperation<Passport.UpdateOperation["action"], Omit<Passport.UpdateOperationData, "system" | "systemId">, Omit<Passport.Filter, "system" | "systemId">>>;
|
|
smsTemplate$system?: OakOperation<SmsTemplate.UpdateOperation["action"], Omit<SmsTemplate.UpdateOperationData, "system" | "systemId">, Omit<SmsTemplate.Filter, "system" | "systemId">> | OakOperation<"create", Omit<SmsTemplate.CreateOperationData, "system" | "systemId">[]> | Array<OakOperation<"create", Omit<SmsTemplate.CreateOperationData, "system" | "systemId">> | OakOperation<SmsTemplate.UpdateOperation["action"], Omit<SmsTemplate.UpdateOperationData, "system" | "systemId">, Omit<SmsTemplate.Filter, "system" | "systemId">>>;
|
|
userSystem$system?: OakOperation<UserSystem.UpdateOperation["action"], Omit<UserSystem.UpdateOperationData, "system" | "systemId">, Omit<UserSystem.Filter, "system" | "systemId">> | OakOperation<"create", Omit<UserSystem.CreateOperationData, "system" | "systemId">[]> | Array<OakOperation<"create", Omit<UserSystem.CreateOperationData, "system" | "systemId">> | OakOperation<UserSystem.UpdateOperation["action"], Omit<UserSystem.UpdateOperationData, "system" | "systemId">, Omit<UserSystem.Filter, "system" | "systemId">>>;
|
|
account$ofSystem?: OakOperation<Account.UpdateOperation["action"], Omit<Account.UpdateOperationData, "ofSystem" | "ofSystemId">, Omit<Account.Filter, "ofSystem" | "ofSystemId">> | OakOperation<"create", Omit<Account.CreateOperationData, "ofSystem" | "ofSystemId">[]> | Array<OakOperation<"create", Omit<Account.CreateOperationData, "ofSystem" | "ofSystemId">> | OakOperation<Account.UpdateOperation["action"], Omit<Account.UpdateOperationData, "ofSystem" | "ofSystemId">, Omit<Account.Filter, "ofSystem" | "ofSystemId">>>;
|
|
account$entity?: OakOperation<Account.UpdateOperation["action"], Omit<Account.UpdateOperationData, "entity" | "entityId">, Omit<Account.Filter, "entity" | "entityId">> | OakOperation<"create", Omit<Account.CreateOperationData, "entity" | "entityId">[]> | Array<OakOperation<"create", Omit<Account.CreateOperationData, "entity" | "entityId">> | OakOperation<Account.UpdateOperation["action"], Omit<Account.UpdateOperationData, "entity" | "entityId">, Omit<Account.Filter, "entity" | "entityId">>>;
|
|
offlineAccount$system?: OakOperation<OfflineAccount.UpdateOperation["action"], Omit<OfflineAccount.UpdateOperationData, "system" | "systemId">, Omit<OfflineAccount.Filter, "system" | "systemId">> | OakOperation<"create", Omit<OfflineAccount.CreateOperationData, "system" | "systemId">[]> | Array<OakOperation<"create", Omit<OfflineAccount.CreateOperationData, "system" | "systemId">> | OakOperation<OfflineAccount.UpdateOperation["action"], Omit<OfflineAccount.UpdateOperationData, "system" | "systemId">, Omit<OfflineAccount.Filter, "system" | "systemId">>>;
|
|
order$system?: OakOperation<Order.UpdateOperation["action"], Omit<Order.UpdateOperationData, "system" | "systemId">, Omit<Order.Filter, "system" | "systemId">> | OakOperation<"create", Omit<Order.CreateOperationData, "system" | "systemId">[]> | Array<OakOperation<"create", Omit<Order.CreateOperationData, "system" | "systemId">> | OakOperation<Order.UpdateOperation["action"], Omit<Order.UpdateOperationData, "system" | "systemId">, Omit<Order.Filter, "system" | "systemId">>>;
|
|
shipCompanySystem$system?: OakOperation<ShipCompanySystem.UpdateOperation["action"], Omit<ShipCompanySystem.UpdateOperationData, "system" | "systemId">, Omit<ShipCompanySystem.Filter, "system" | "systemId">> | OakOperation<"create", Omit<ShipCompanySystem.CreateOperationData, "system" | "systemId">[]> | Array<OakOperation<"create", Omit<ShipCompanySystem.CreateOperationData, "system" | "systemId">> | OakOperation<ShipCompanySystem.UpdateOperation["action"], Omit<ShipCompanySystem.UpdateOperationData, "system" | "systemId">, Omit<ShipCompanySystem.Filter, "system" | "systemId">>>;
|
|
sysAccountMove$system?: OakOperation<"create", Omit<SysAccountMove.CreateOperationData, "system" | "systemId">[]> | Array<OakOperation<"create", Omit<SysAccountMove.CreateOperationData, "system" | "systemId">>>;
|
|
wechatPay$system?: OakOperation<WechatPay.UpdateOperation["action"], Omit<WechatPay.UpdateOperationData, "system" | "systemId">, Omit<WechatPay.Filter, "system" | "systemId">> | OakOperation<"create", Omit<WechatPay.CreateOperationData, "system" | "systemId">[]> | Array<OakOperation<"create", Omit<WechatPay.CreateOperationData, "system" | "systemId">> | OakOperation<WechatPay.UpdateOperation["action"], Omit<WechatPay.UpdateOperationData, "system" | "systemId">, Omit<WechatPay.Filter, "system" | "systemId">>>;
|
|
withdrawAccount$ofSystem?: OakOperation<WithdrawAccount.UpdateOperation["action"], Omit<WithdrawAccount.UpdateOperationData, "ofSystem" | "ofSystemId">, Omit<WithdrawAccount.Filter, "ofSystem" | "ofSystemId">> | OakOperation<"create", Omit<WithdrawAccount.CreateOperationData, "ofSystem" | "ofSystemId">[]> | Array<OakOperation<"create", Omit<WithdrawAccount.CreateOperationData, "ofSystem" | "ofSystemId">> | OakOperation<WithdrawAccount.UpdateOperation["action"], Omit<WithdrawAccount.UpdateOperationData, "ofSystem" | "ofSystemId">, Omit<WithdrawAccount.Filter, "ofSystem" | "ofSystemId">>>;
|
|
withdrawAccount$entity?: OakOperation<WithdrawAccount.UpdateOperation["action"], Omit<WithdrawAccount.UpdateOperationData, "entity" | "entityId">, Omit<WithdrawAccount.Filter, "entity" | "entityId">> | OakOperation<"create", Omit<WithdrawAccount.CreateOperationData, "entity" | "entityId">[]> | Array<OakOperation<"create", Omit<WithdrawAccount.CreateOperationData, "entity" | "entityId">> | OakOperation<WithdrawAccount.UpdateOperation["action"], Omit<WithdrawAccount.UpdateOperationData, "entity" | "entityId">, Omit<WithdrawAccount.Filter, "entity" | "entityId">>>;
|
|
withdrawChannel$system?: OakOperation<WithdrawChannel.UpdateOperation["action"], Omit<WithdrawChannel.UpdateOperationData, "system" | "systemId">, Omit<WithdrawChannel.Filter, "system" | "systemId">> | OakOperation<"create", Omit<WithdrawChannel.CreateOperationData, "system" | "systemId">[]> | Array<OakOperation<"create", Omit<WithdrawChannel.CreateOperationData, "system" | "systemId">> | OakOperation<WithdrawChannel.UpdateOperation["action"], Omit<WithdrawChannel.UpdateOperationData, "system" | "systemId">, Omit<WithdrawChannel.Filter, "system" | "systemId">>>;
|
|
wpAccount$system?: OakOperation<WpAccount.UpdateOperation["action"], Omit<WpAccount.UpdateOperationData, "system" | "systemId">, Omit<WpAccount.Filter, "system" | "systemId">> | OakOperation<"create", Omit<WpAccount.CreateOperationData, "system" | "systemId">[]> | Array<OakOperation<"create", Omit<WpAccount.CreateOperationData, "system" | "systemId">> | OakOperation<WpAccount.UpdateOperation["action"], Omit<WpAccount.UpdateOperationData, "system" | "systemId">, Omit<WpAccount.Filter, "system" | "systemId">>>;
|
|
};
|
|
export type CreateSingleOperation = OakOperation<"create", CreateOperationData>;
|
|
export type CreateMultipleOperation = OakOperation<"create", Array<CreateOperationData>>;
|
|
export type CreateOperation = CreateSingleOperation | CreateMultipleOperation;
|
|
export type UpdateOperationData = FormUpdateData<Omit<OpSchema, "platformId">> & (({
|
|
platform?: Platform.CreateSingleOperation;
|
|
platformId?: never;
|
|
} | {
|
|
platform?: Platform.UpdateOperation;
|
|
platformId?: never;
|
|
} | {
|
|
platform?: Platform.RemoveOperation;
|
|
platformId?: never;
|
|
} | {
|
|
platform?: never;
|
|
platformId?: ForeignKey<"platform"> | null;
|
|
})) & {
|
|
[k: string]: any;
|
|
application$system?: OakOperation<Application.UpdateOperation["action"], Omit<Application.UpdateOperationData, "system" | "systemId">, Omit<Application.Filter, "system" | "systemId">> | OakOperation<Application.RemoveOperation["action"], Omit<Application.RemoveOperationData, "system" | "systemId">, Omit<Application.Filter, "system" | "systemId">> | OakOperation<"create", Omit<Application.CreateOperationData, "system" | "systemId">[]> | Array<OakOperation<"create", Omit<Application.CreateOperationData, "system" | "systemId">> | OakOperation<Application.UpdateOperation["action"], Omit<Application.UpdateOperationData, "system" | "systemId">, Omit<Application.Filter, "system" | "systemId">> | OakOperation<Application.RemoveOperation["action"], Omit<Application.RemoveOperationData, "system" | "systemId">, Omit<Application.Filter, "system" | "systemId">>>;
|
|
domain$system?: OakOperation<Domain.UpdateOperation["action"], Omit<Domain.UpdateOperationData, "system" | "systemId">, Omit<Domain.Filter, "system" | "systemId">> | OakOperation<Domain.RemoveOperation["action"], Omit<Domain.RemoveOperationData, "system" | "systemId">, Omit<Domain.Filter, "system" | "systemId">> | OakOperation<"create", Omit<Domain.CreateOperationData, "system" | "systemId">[]> | Array<OakOperation<"create", Omit<Domain.CreateOperationData, "system" | "systemId">> | OakOperation<Domain.UpdateOperation["action"], Omit<Domain.UpdateOperationData, "system" | "systemId">, Omit<Domain.Filter, "system" | "systemId">> | OakOperation<Domain.RemoveOperation["action"], Omit<Domain.RemoveOperationData, "system" | "systemId">, Omit<Domain.Filter, "system" | "systemId">>>;
|
|
messageSystem$system?: OakOperation<MessageSystem.UpdateOperation["action"], Omit<MessageSystem.UpdateOperationData, "system" | "systemId">, Omit<MessageSystem.Filter, "system" | "systemId">> | OakOperation<MessageSystem.RemoveOperation["action"], Omit<MessageSystem.RemoveOperationData, "system" | "systemId">, Omit<MessageSystem.Filter, "system" | "systemId">> | OakOperation<"create", Omit<MessageSystem.CreateOperationData, "system" | "systemId">[]> | Array<OakOperation<"create", Omit<MessageSystem.CreateOperationData, "system" | "systemId">> | OakOperation<MessageSystem.UpdateOperation["action"], Omit<MessageSystem.UpdateOperationData, "system" | "systemId">, Omit<MessageSystem.Filter, "system" | "systemId">> | OakOperation<MessageSystem.RemoveOperation["action"], Omit<MessageSystem.RemoveOperationData, "system" | "systemId">, Omit<MessageSystem.Filter, "system" | "systemId">>>;
|
|
passport$system?: OakOperation<Passport.UpdateOperation["action"], Omit<Passport.UpdateOperationData, "system" | "systemId">, Omit<Passport.Filter, "system" | "systemId">> | OakOperation<Passport.RemoveOperation["action"], Omit<Passport.RemoveOperationData, "system" | "systemId">, Omit<Passport.Filter, "system" | "systemId">> | OakOperation<"create", Omit<Passport.CreateOperationData, "system" | "systemId">[]> | Array<OakOperation<"create", Omit<Passport.CreateOperationData, "system" | "systemId">> | OakOperation<Passport.UpdateOperation["action"], Omit<Passport.UpdateOperationData, "system" | "systemId">, Omit<Passport.Filter, "system" | "systemId">> | OakOperation<Passport.RemoveOperation["action"], Omit<Passport.RemoveOperationData, "system" | "systemId">, Omit<Passport.Filter, "system" | "systemId">>>;
|
|
smsTemplate$system?: OakOperation<SmsTemplate.UpdateOperation["action"], Omit<SmsTemplate.UpdateOperationData, "system" | "systemId">, Omit<SmsTemplate.Filter, "system" | "systemId">> | OakOperation<SmsTemplate.RemoveOperation["action"], Omit<SmsTemplate.RemoveOperationData, "system" | "systemId">, Omit<SmsTemplate.Filter, "system" | "systemId">> | OakOperation<"create", Omit<SmsTemplate.CreateOperationData, "system" | "systemId">[]> | Array<OakOperation<"create", Omit<SmsTemplate.CreateOperationData, "system" | "systemId">> | OakOperation<SmsTemplate.UpdateOperation["action"], Omit<SmsTemplate.UpdateOperationData, "system" | "systemId">, Omit<SmsTemplate.Filter, "system" | "systemId">> | OakOperation<SmsTemplate.RemoveOperation["action"], Omit<SmsTemplate.RemoveOperationData, "system" | "systemId">, Omit<SmsTemplate.Filter, "system" | "systemId">>>;
|
|
userSystem$system?: OakOperation<UserSystem.UpdateOperation["action"], Omit<UserSystem.UpdateOperationData, "system" | "systemId">, Omit<UserSystem.Filter, "system" | "systemId">> | OakOperation<UserSystem.RemoveOperation["action"], Omit<UserSystem.RemoveOperationData, "system" | "systemId">, Omit<UserSystem.Filter, "system" | "systemId">> | OakOperation<"create", Omit<UserSystem.CreateOperationData, "system" | "systemId">[]> | Array<OakOperation<"create", Omit<UserSystem.CreateOperationData, "system" | "systemId">> | OakOperation<UserSystem.UpdateOperation["action"], Omit<UserSystem.UpdateOperationData, "system" | "systemId">, Omit<UserSystem.Filter, "system" | "systemId">> | OakOperation<UserSystem.RemoveOperation["action"], Omit<UserSystem.RemoveOperationData, "system" | "systemId">, Omit<UserSystem.Filter, "system" | "systemId">>>;
|
|
account$ofSystem?: OakOperation<Account.UpdateOperation["action"], Omit<Account.UpdateOperationData, "ofSystem" | "ofSystemId">, Omit<Account.Filter, "ofSystem" | "ofSystemId">> | OakOperation<Account.RemoveOperation["action"], Omit<Account.RemoveOperationData, "ofSystem" | "ofSystemId">, Omit<Account.Filter, "ofSystem" | "ofSystemId">> | OakOperation<"create", Omit<Account.CreateOperationData, "ofSystem" | "ofSystemId">[]> | Array<OakOperation<"create", Omit<Account.CreateOperationData, "ofSystem" | "ofSystemId">> | OakOperation<Account.UpdateOperation["action"], Omit<Account.UpdateOperationData, "ofSystem" | "ofSystemId">, Omit<Account.Filter, "ofSystem" | "ofSystemId">> | OakOperation<Account.RemoveOperation["action"], Omit<Account.RemoveOperationData, "ofSystem" | "ofSystemId">, Omit<Account.Filter, "ofSystem" | "ofSystemId">>>;
|
|
account$entity?: OakOperation<Account.UpdateOperation["action"], Omit<Account.UpdateOperationData, "entity" | "entityId">, Omit<Account.Filter, "entity" | "entityId">> | OakOperation<Account.RemoveOperation["action"], Omit<Account.RemoveOperationData, "entity" | "entityId">, Omit<Account.Filter, "entity" | "entityId">> | OakOperation<"create", Omit<Account.CreateOperationData, "entity" | "entityId">[]> | Array<OakOperation<"create", Omit<Account.CreateOperationData, "entity" | "entityId">> | OakOperation<Account.UpdateOperation["action"], Omit<Account.UpdateOperationData, "entity" | "entityId">, Omit<Account.Filter, "entity" | "entityId">> | OakOperation<Account.RemoveOperation["action"], Omit<Account.RemoveOperationData, "entity" | "entityId">, Omit<Account.Filter, "entity" | "entityId">>>;
|
|
offlineAccount$system?: OakOperation<OfflineAccount.UpdateOperation["action"], Omit<OfflineAccount.UpdateOperationData, "system" | "systemId">, Omit<OfflineAccount.Filter, "system" | "systemId">> | OakOperation<OfflineAccount.RemoveOperation["action"], Omit<OfflineAccount.RemoveOperationData, "system" | "systemId">, Omit<OfflineAccount.Filter, "system" | "systemId">> | OakOperation<"create", Omit<OfflineAccount.CreateOperationData, "system" | "systemId">[]> | Array<OakOperation<"create", Omit<OfflineAccount.CreateOperationData, "system" | "systemId">> | OakOperation<OfflineAccount.UpdateOperation["action"], Omit<OfflineAccount.UpdateOperationData, "system" | "systemId">, Omit<OfflineAccount.Filter, "system" | "systemId">> | OakOperation<OfflineAccount.RemoveOperation["action"], Omit<OfflineAccount.RemoveOperationData, "system" | "systemId">, Omit<OfflineAccount.Filter, "system" | "systemId">>>;
|
|
order$system?: OakOperation<Order.UpdateOperation["action"], Omit<Order.UpdateOperationData, "system" | "systemId">, Omit<Order.Filter, "system" | "systemId">> | OakOperation<Order.RemoveOperation["action"], Omit<Order.RemoveOperationData, "system" | "systemId">, Omit<Order.Filter, "system" | "systemId">> | OakOperation<"create", Omit<Order.CreateOperationData, "system" | "systemId">[]> | Array<OakOperation<"create", Omit<Order.CreateOperationData, "system" | "systemId">> | OakOperation<Order.UpdateOperation["action"], Omit<Order.UpdateOperationData, "system" | "systemId">, Omit<Order.Filter, "system" | "systemId">> | OakOperation<Order.RemoveOperation["action"], Omit<Order.RemoveOperationData, "system" | "systemId">, Omit<Order.Filter, "system" | "systemId">>>;
|
|
shipCompanySystem$system?: OakOperation<ShipCompanySystem.UpdateOperation["action"], Omit<ShipCompanySystem.UpdateOperationData, "system" | "systemId">, Omit<ShipCompanySystem.Filter, "system" | "systemId">> | OakOperation<ShipCompanySystem.RemoveOperation["action"], Omit<ShipCompanySystem.RemoveOperationData, "system" | "systemId">, Omit<ShipCompanySystem.Filter, "system" | "systemId">> | OakOperation<"create", Omit<ShipCompanySystem.CreateOperationData, "system" | "systemId">[]> | Array<OakOperation<"create", Omit<ShipCompanySystem.CreateOperationData, "system" | "systemId">> | OakOperation<ShipCompanySystem.UpdateOperation["action"], Omit<ShipCompanySystem.UpdateOperationData, "system" | "systemId">, Omit<ShipCompanySystem.Filter, "system" | "systemId">> | OakOperation<ShipCompanySystem.RemoveOperation["action"], Omit<ShipCompanySystem.RemoveOperationData, "system" | "systemId">, Omit<ShipCompanySystem.Filter, "system" | "systemId">>>;
|
|
sysAccountMove$system?: OakOperation<"create", Omit<SysAccountMove.CreateOperationData, "system" | "systemId">[]> | Array<OakOperation<"create", Omit<SysAccountMove.CreateOperationData, "system" | "systemId">>>;
|
|
wechatPay$system?: OakOperation<WechatPay.UpdateOperation["action"], Omit<WechatPay.UpdateOperationData, "system" | "systemId">, Omit<WechatPay.Filter, "system" | "systemId">> | OakOperation<WechatPay.RemoveOperation["action"], Omit<WechatPay.RemoveOperationData, "system" | "systemId">, Omit<WechatPay.Filter, "system" | "systemId">> | OakOperation<"create", Omit<WechatPay.CreateOperationData, "system" | "systemId">[]> | Array<OakOperation<"create", Omit<WechatPay.CreateOperationData, "system" | "systemId">> | OakOperation<WechatPay.UpdateOperation["action"], Omit<WechatPay.UpdateOperationData, "system" | "systemId">, Omit<WechatPay.Filter, "system" | "systemId">> | OakOperation<WechatPay.RemoveOperation["action"], Omit<WechatPay.RemoveOperationData, "system" | "systemId">, Omit<WechatPay.Filter, "system" | "systemId">>>;
|
|
withdrawAccount$ofSystem?: OakOperation<WithdrawAccount.UpdateOperation["action"], Omit<WithdrawAccount.UpdateOperationData, "ofSystem" | "ofSystemId">, Omit<WithdrawAccount.Filter, "ofSystem" | "ofSystemId">> | OakOperation<WithdrawAccount.RemoveOperation["action"], Omit<WithdrawAccount.RemoveOperationData, "ofSystem" | "ofSystemId">, Omit<WithdrawAccount.Filter, "ofSystem" | "ofSystemId">> | OakOperation<"create", Omit<WithdrawAccount.CreateOperationData, "ofSystem" | "ofSystemId">[]> | Array<OakOperation<"create", Omit<WithdrawAccount.CreateOperationData, "ofSystem" | "ofSystemId">> | OakOperation<WithdrawAccount.UpdateOperation["action"], Omit<WithdrawAccount.UpdateOperationData, "ofSystem" | "ofSystemId">, Omit<WithdrawAccount.Filter, "ofSystem" | "ofSystemId">> | OakOperation<WithdrawAccount.RemoveOperation["action"], Omit<WithdrawAccount.RemoveOperationData, "ofSystem" | "ofSystemId">, Omit<WithdrawAccount.Filter, "ofSystem" | "ofSystemId">>>;
|
|
withdrawAccount$entity?: OakOperation<WithdrawAccount.UpdateOperation["action"], Omit<WithdrawAccount.UpdateOperationData, "entity" | "entityId">, Omit<WithdrawAccount.Filter, "entity" | "entityId">> | OakOperation<WithdrawAccount.RemoveOperation["action"], Omit<WithdrawAccount.RemoveOperationData, "entity" | "entityId">, Omit<WithdrawAccount.Filter, "entity" | "entityId">> | OakOperation<"create", Omit<WithdrawAccount.CreateOperationData, "entity" | "entityId">[]> | Array<OakOperation<"create", Omit<WithdrawAccount.CreateOperationData, "entity" | "entityId">> | OakOperation<WithdrawAccount.UpdateOperation["action"], Omit<WithdrawAccount.UpdateOperationData, "entity" | "entityId">, Omit<WithdrawAccount.Filter, "entity" | "entityId">> | OakOperation<WithdrawAccount.RemoveOperation["action"], Omit<WithdrawAccount.RemoveOperationData, "entity" | "entityId">, Omit<WithdrawAccount.Filter, "entity" | "entityId">>>;
|
|
withdrawChannel$system?: OakOperation<WithdrawChannel.UpdateOperation["action"], Omit<WithdrawChannel.UpdateOperationData, "system" | "systemId">, Omit<WithdrawChannel.Filter, "system" | "systemId">> | OakOperation<WithdrawChannel.RemoveOperation["action"], Omit<WithdrawChannel.RemoveOperationData, "system" | "systemId">, Omit<WithdrawChannel.Filter, "system" | "systemId">> | OakOperation<"create", Omit<WithdrawChannel.CreateOperationData, "system" | "systemId">[]> | Array<OakOperation<"create", Omit<WithdrawChannel.CreateOperationData, "system" | "systemId">> | OakOperation<WithdrawChannel.UpdateOperation["action"], Omit<WithdrawChannel.UpdateOperationData, "system" | "systemId">, Omit<WithdrawChannel.Filter, "system" | "systemId">> | OakOperation<WithdrawChannel.RemoveOperation["action"], Omit<WithdrawChannel.RemoveOperationData, "system" | "systemId">, Omit<WithdrawChannel.Filter, "system" | "systemId">>>;
|
|
wpAccount$system?: OakOperation<WpAccount.UpdateOperation["action"], Omit<WpAccount.UpdateOperationData, "system" | "systemId">, Omit<WpAccount.Filter, "system" | "systemId">> | OakOperation<WpAccount.RemoveOperation["action"], Omit<WpAccount.RemoveOperationData, "system" | "systemId">, Omit<WpAccount.Filter, "system" | "systemId">> | OakOperation<"create", Omit<WpAccount.CreateOperationData, "system" | "systemId">[]> | Array<OakOperation<"create", Omit<WpAccount.CreateOperationData, "system" | "systemId">> | OakOperation<WpAccount.UpdateOperation["action"], Omit<WpAccount.UpdateOperationData, "system" | "systemId">, Omit<WpAccount.Filter, "system" | "systemId">> | OakOperation<WpAccount.RemoveOperation["action"], Omit<WpAccount.RemoveOperationData, "system" | "systemId">, Omit<WpAccount.Filter, "system" | "systemId">>>;
|
|
};
|
|
export type UpdateOperation = OakOperation<"update" | string, UpdateOperationData, Filter, Sorter>;
|
|
export type RemoveOperationData = {} & (({
|
|
platform?: Platform.UpdateOperation | Platform.RemoveOperation;
|
|
}));
|
|
export type RemoveOperation = OakOperation<"remove", RemoveOperationData, Filter, Sorter>;
|
|
export type Operation = CreateOperation | UpdateOperation | RemoveOperation;
|
|
export type PlatformIdSubQuery = Selection<PlatformIdProjection>;
|
|
export type SystemIdSubQuery = Selection<SystemIdProjection>;
|
|
export type EntityDef = {
|
|
Schema: Schema;
|
|
OpSchema: OpSchema;
|
|
Action: OakMakeAction<GenericAction> | string;
|
|
Selection: Selection;
|
|
Aggregation: Aggregation;
|
|
Operation: Operation;
|
|
Create: CreateOperation;
|
|
Update: UpdateOperation;
|
|
Remove: RemoveOperation;
|
|
CreateSingle: CreateSingleOperation;
|
|
CreateMulti: CreateMultipleOperation;
|
|
};
|
|
export {};
|