feat: 适配general-business的message实体声明变动

This commit is contained in:
wkj 2025-12-22 17:46:17 +08:00
parent e9e2833398
commit b5a70cb5f1
6 changed files with 12 additions and 6 deletions

View File

@ -66,14 +66,14 @@ declare const Detail: <T extends keyof EntityDict>(props: ReactComponentProps<En
data: Partial<EntityDict[T]["Schema"]>;
title?: string | undefined;
bordered?: boolean | undefined;
layout?: "vertical" | "horizontal" | undefined;
layout?: "horizontal" | "vertical" | undefined;
}>) => React.ReactElement;
declare const Upsert: <T extends keyof EntityDict>(props: ReactComponentProps<EntityDict, T, false, {
helps: Record<string, string>;
entity: T;
attributes: OakAbsAttrUpsertDef<EntityDict, T, string | number>[];
data: EntityDict[T]["Schema"];
layout: "vertical" | "horizontal";
layout: "horizontal" | "vertical";
mode: "default" | "card";
}>) => React.ReactElement;
export { FilterPanel, List, ListPro, Detail, Upsert, ReactComponentProps, ColumnProps, RowWithActions, OakExtraActionProps, OakAbsAttrDef, onActionFnDef, };

View File

@ -9,7 +9,7 @@ declare const _default: (props: import("oak-frontend-base").ReactComponentProps<
goBackable: boolean;
disableAutoPay: boolean;
closeWhenFailure: boolean;
mode: "frontend" | "backend";
mode: "backend" | "frontend";
autoSuccessAt: boolean;
disableClose: boolean;
}>) => React.ReactElement;

View File

@ -13,6 +13,9 @@ export type Router = {
type MessageRestriction = {
systemIds?: string[];
channels?: Array<Channel>;
disableRouter?: {
[key: Channel]: boolean;
};
};
type Channels = Channel[];
export type OpSchema = EntityShape & {

View File

@ -1,4 +1,4 @@
import WechatPay from './WechatPay';
import WechatPayDebug from './WechatPay.debug';
declare const _default: typeof WechatPay | typeof WechatPayDebug;
declare const _default: typeof WechatPayDebug | typeof WechatPay;
export default _default;

View File

@ -1,3 +1,3 @@
import WechatMpShip from './WechatMpShip';
declare const _default: typeof WechatMpShip;
import WechatMpShipDebug from './WechatMpShip.debug';
declare const _default: typeof WechatMpShipDebug;
export default _default;

View File

@ -13,6 +13,9 @@ export type Router = {
type MessageRestriction = {
systemIds?: string[];
channels?: Array<Channel>;
disableRouter?: {
[key: Channel]: boolean;
};
};
type Channels = Channel[];
export type OpSchema = EntityShape & {