build
This commit is contained in:
parent
495b7ff675
commit
910769931b
|
|
@ -8,5 +8,5 @@ type TransformAspectDict<T extends AspectDict<ED, BCT>, ED extends BaseEntityDic
|
||||||
[K in keyof T]: T[K] extends (params: infer P, context: BCT) => infer R ? R extends Promise<unknown> ? (params: P, callback?: (result: R, opRecords?: OpRecord<ED>[]) => void, dontPublish?: true, ignoreContext?: true) => R : never : never;
|
[K in keyof T]: T[K] extends (params: infer P, context: BCT) => infer R ? R extends Promise<unknown> ? (params: P, callback?: (result: R, opRecords?: OpRecord<ED>[]) => void, dontPublish?: true, ignoreContext?: true) => R : never : never;
|
||||||
};
|
};
|
||||||
export type AspectDictTrans<ED extends BaseEntityDict, AD extends AspectDict<ED, BCT>, BCT extends AsyncContext<ED>> = TransformAspectDict<AD & CommonAspectDict<ED>, ED, BCT>;
|
export type AspectDictTrans<ED extends BaseEntityDict, AD extends AspectDict<ED, BCT>, BCT extends AsyncContext<ED>> = TransformAspectDict<AD & CommonAspectDict<ED>, ED, BCT>;
|
||||||
export declare const createService: <ED extends BaseEntityDict, AD extends AspectDict<ED, any>>(cache: import("../features/cache").Cache<ED>) => TransformAspectDict<AD & CommonAspectDict<ED>, ED, any>;
|
export declare const createService: <ED extends BaseEntityDict, AD extends AspectDict<ED, any>>(cache: BasicFeatures<ED>["cache"]) => TransformAspectDict<AD & CommonAspectDict<ED>, ED, any>;
|
||||||
export {};
|
export {};
|
||||||
|
|
|
||||||
|
|
@ -2,12 +2,12 @@ import { ED, OakAbsAttrDef } from '../../types/AbstractComponent';
|
||||||
import { ReactComponentProps } from '../../types/Page';
|
import { ReactComponentProps } from '../../types/Page';
|
||||||
import { Breakpoint } from 'antd';
|
import { Breakpoint } from 'antd';
|
||||||
declare const _default: <ED2 extends ED, T2 extends keyof ED2>(props: ReactComponentProps<ED2, T2, false, {
|
declare const _default: <ED2 extends ED, T2 extends keyof ED2>(props: ReactComponentProps<ED2, T2, false, {
|
||||||
column?: number | Record<Breakpoint, number> | undefined;
|
column?: number | Record<Breakpoint, number>;
|
||||||
entity: T2;
|
entity: T2;
|
||||||
attributes: OakAbsAttrDef[];
|
attributes: OakAbsAttrDef[];
|
||||||
data: Partial<ED2[T2]["Schema"]>;
|
data: Partial<ED2[T2]['Schema']>;
|
||||||
title?: string | undefined;
|
title?: string;
|
||||||
bordered?: boolean | undefined;
|
bordered?: boolean;
|
||||||
layout?: "horizontal" | "vertical" | undefined;
|
layout?: 'horizontal' | 'vertical';
|
||||||
}>) => React.ReactElement;
|
}>) => React.ReactElement;
|
||||||
export default _default;
|
export default _default;
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,8 @@ import { ReactComponentProps } from '../../types/Page';
|
||||||
import { ECode } from '../../types/ErrorPage';
|
import { ECode } from '../../types/ErrorPage';
|
||||||
declare const _default: <ED2 extends ED, T2 extends keyof ED2>(props: ReactComponentProps<ED2, T2, false, {
|
declare const _default: <ED2 extends ED, T2 extends keyof ED2>(props: ReactComponentProps<ED2, T2, false, {
|
||||||
code: ECode;
|
code: ECode;
|
||||||
title?: string | undefined;
|
title?: string;
|
||||||
desc?: string | undefined;
|
desc?: string;
|
||||||
children?: React.ReactNode;
|
children?: React.ReactNode;
|
||||||
icon?: React.ReactNode;
|
icon?: React.ReactNode;
|
||||||
content?: React.ReactNode;
|
content?: React.ReactNode;
|
||||||
|
|
|
||||||
|
|
@ -10,18 +10,13 @@ declare const _default: <ED2 extends ED, T2 extends keyof ED2>(props: ReactCompo
|
||||||
data: RowWithActions<ED2, T2>[];
|
data: RowWithActions<ED2, T2>[];
|
||||||
loading: boolean;
|
loading: boolean;
|
||||||
tablePagination?: React.ReactNode | false;
|
tablePagination?: React.ReactNode | false;
|
||||||
rowSelection?: import("antd/es/table/interface").TableRowSelection<RowWithActions<ED2, T2>> | undefined;
|
rowSelection?: TableProps<RowWithActions<ED2, T2>>['rowSelection'];
|
||||||
hideHeader?: boolean | undefined;
|
hideHeader?: boolean;
|
||||||
disableSerialNumber?: boolean | undefined;
|
disableSerialNumber?: boolean;
|
||||||
size?: "small" | "large" | "middle" | undefined;
|
size?: 'large' | 'middle' | 'small';
|
||||||
scroll?: ({
|
scroll?: TableProps<RowWithActions<ED2, T2>>['scroll'];
|
||||||
x?: string | number | true | undefined;
|
|
||||||
y?: string | number | undefined;
|
|
||||||
} & {
|
|
||||||
scrollToFirstRowOnChange?: boolean | undefined;
|
|
||||||
}) | undefined;
|
|
||||||
empty?: React.ReactNode;
|
empty?: React.ReactNode;
|
||||||
opWidth?: number | undefined;
|
opWidth?: number;
|
||||||
ellipsis?: boolean | undefined;
|
ellipsis?: boolean;
|
||||||
}>) => React.ReactElement;
|
}>) => React.ReactElement;
|
||||||
export default _default;
|
export default _default;
|
||||||
|
|
|
||||||
|
|
@ -1,21 +1,20 @@
|
||||||
/// <reference types="react" />
|
|
||||||
import { ReactComponentProps } from '../../types/Page';
|
import { ReactComponentProps } from '../../types/Page';
|
||||||
import { ED } from '../../types/AbstractComponent';
|
import { ED } from '../../types/AbstractComponent';
|
||||||
declare const _default: <ED2 extends ED, T2 extends keyof ED2>(props: ReactComponentProps<ED2, T2, false, {
|
declare const _default: <ED2 extends ED, T2 extends keyof ED2>(props: ReactComponentProps<ED2, T2, false, {
|
||||||
style?: import("react").CSSProperties | undefined;
|
style?: React.CSSProperties;
|
||||||
className?: string | undefined;
|
className?: string;
|
||||||
title?: React.ReactNode;
|
title?: React.ReactNode;
|
||||||
showBack?: boolean | undefined;
|
showBack?: boolean;
|
||||||
onBack?: (() => void) | undefined;
|
onBack?: () => void;
|
||||||
backIcon?: React.ReactNode;
|
backIcon?: React.ReactNode;
|
||||||
delta?: number | undefined;
|
delta?: number;
|
||||||
extra?: React.ReactNode;
|
extra?: React.ReactNode;
|
||||||
subTitle?: React.ReactNode;
|
subTitle?: React.ReactNode;
|
||||||
contentMargin?: boolean | undefined;
|
contentMargin?: boolean;
|
||||||
contentStyle?: import("react").CSSProperties | undefined;
|
contentStyle?: React.CSSProperties;
|
||||||
contentClassName?: string | undefined;
|
contentClassName?: string;
|
||||||
tags?: React.ReactNode;
|
tags?: React.ReactNode;
|
||||||
children?: React.ReactNode;
|
children?: React.ReactNode;
|
||||||
showHeader?: boolean | undefined;
|
showHeader?: boolean;
|
||||||
}>) => React.ReactElement;
|
}>) => React.ReactElement;
|
||||||
export default _default;
|
export default _default;
|
||||||
|
|
|
||||||
|
|
@ -1,23 +1,22 @@
|
||||||
/// <reference types="react" />
|
|
||||||
import { ReactComponentProps } from '../../types/Page';
|
import { ReactComponentProps } from '../../types/Page';
|
||||||
import { ED } from '../../types/AbstractComponent';
|
import { ED } from '../../types/AbstractComponent';
|
||||||
declare const _default: <ED2 extends ED, T2 extends keyof ED2>(props: ReactComponentProps<ED2, T2, false, {
|
declare const _default: <ED2 extends ED, T2 extends keyof ED2>(props: ReactComponentProps<ED2, T2, false, {
|
||||||
style?: import("react").CSSProperties | undefined;
|
style?: React.CSSProperties;
|
||||||
className?: string | undefined;
|
className?: string;
|
||||||
showHeader?: boolean | undefined;
|
showHeader?: boolean;
|
||||||
showBack?: boolean | undefined;
|
showBack?: boolean;
|
||||||
onBack?: (() => void) | undefined;
|
onBack?: () => void;
|
||||||
backIcon?: React.ReactNode;
|
backIcon?: React.ReactNode;
|
||||||
delta?: number | undefined;
|
delta?: number;
|
||||||
title?: React.ReactNode;
|
title?: React.ReactNode;
|
||||||
subTitle?: React.ReactNode;
|
subTitle?: React.ReactNode;
|
||||||
tags?: React.ReactNode;
|
tags?: React.ReactNode;
|
||||||
extra?: React.ReactNode;
|
extra?: React.ReactNode;
|
||||||
children?: React.ReactNode;
|
children?: React.ReactNode;
|
||||||
content: React.ReactNode;
|
content: React.ReactNode;
|
||||||
contentStyle?: import("react").CSSProperties | undefined;
|
contentStyle?: React.CSSProperties;
|
||||||
contentClassName?: string | undefined;
|
contentClassName?: string;
|
||||||
bodyStyle?: import("react").CSSProperties | undefined;
|
bodyStyle?: React.CSSProperties;
|
||||||
bodyClassName?: string | undefined;
|
bodyClassName?: string;
|
||||||
}>) => React.ReactElement;
|
}>) => React.ReactElement;
|
||||||
export default _default;
|
export default _default;
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,12 @@
|
||||||
/// <reference types="react" />
|
|
||||||
import { ReactComponentProps } from '../../types/Page';
|
import { ReactComponentProps } from '../../types/Page';
|
||||||
import { ED } from '../../types/AbstractComponent';
|
import { ED } from '../../types/AbstractComponent';
|
||||||
declare const _default: <ED2 extends ED, T2 extends keyof ED2>(props: ReactComponentProps<ED2, T2, false, {
|
declare const _default: <ED2 extends ED, T2 extends keyof ED2>(props: ReactComponentProps<ED2, T2, false, {
|
||||||
entity: T2;
|
entity: T2;
|
||||||
style?: import("react").CSSProperties | undefined;
|
style?: React.CSSProperties;
|
||||||
className?: string | undefined;
|
className?: string;
|
||||||
showQuickJumper?: boolean | undefined;
|
showQuickJumper?: boolean;
|
||||||
size?: "small" | "default" | undefined;
|
size?: 'default' | 'small';
|
||||||
showSizeChanger?: boolean | undefined;
|
showSizeChanger?: boolean;
|
||||||
showTotal?: ((total: number, range: [number, number]) => React.ReactNode) | undefined;
|
showTotal?: (total: number, range: [number, number]) => React.ReactNode;
|
||||||
}>) => React.ReactElement;
|
}>) => React.ReactElement;
|
||||||
export default _default;
|
export default _default;
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ declare const _default: <ED2 extends ED, T2 extends keyof ED2, T3 extends string
|
||||||
helps: Record<string, string>;
|
helps: Record<string, string>;
|
||||||
entity: T2;
|
entity: T2;
|
||||||
attributes: OakAbsAttrUpsertDef<ED2, T2, T3>[];
|
attributes: OakAbsAttrUpsertDef<ED2, T2, T3>[];
|
||||||
data: ED2[T2]["Schema"];
|
data: ED2[T2]['Schema'];
|
||||||
layout: 'horizontal' | 'vertical';
|
layout: 'horizontal' | 'vertical';
|
||||||
mode: 'default' | 'card';
|
mode: 'default' | 'card';
|
||||||
}>) => React.ReactElement;
|
}>) => React.ReactElement;
|
||||||
|
|
|
||||||
|
|
@ -765,10 +765,9 @@ class ListNode extends EntityNode {
|
||||||
const { data, sorter, filter } = this.constructSelection(true, false, true);
|
const { data, sorter, filter } = this.constructSelection(true, false, true);
|
||||||
const ids2 = ids.concat(createIds);
|
const ids2 = ids.concat(createIds);
|
||||||
/**
|
/**
|
||||||
* 在非modi状态下,当前的逻辑是:
|
* 在非modi状态下,当前的逻辑是用当前filter加以过滤,不然就处理不了在列表中操作改变了filter中外联的条件(例如为order创建了一个ship,但查询条件是没有ship)时,列表不发生变化
|
||||||
* 若本结点非脏(其子结点也非脏),直接用ids作为查询条件(这里也隐喻着父结点不会影响这里的数据)
|
* 所以在这里当前是要求用户在取数据的时候,将可能影响的这种外联的数据也取到cache当中
|
||||||
* 若本结点为脏,则要考虑当前这些ids是否还满足filters,若一个结点出现这种情况要考虑,则要自己保证filter中的关联关系数据都在cache当中,不然会出现数据为空
|
* by Xc 20250315
|
||||||
* by Xc 20250308
|
|
||||||
*/
|
*/
|
||||||
const filter2 = inModiNextBranch ? filter : (ids2.length > 0 ? (filter ? combineFilters(this.entity, this.cache.getSchema(), [filter, {
|
const filter2 = inModiNextBranch ? filter : (ids2.length > 0 ? (filter ? combineFilters(this.entity, this.cache.getSchema(), [filter, {
|
||||||
id: {
|
id: {
|
||||||
|
|
|
||||||
|
|
@ -49,21 +49,21 @@ export declare function createComponent<IsList extends boolean, ED extends Entit
|
||||||
redirectTo<T2_1 extends keyof ED>(options: {
|
redirectTo<T2_1 extends keyof ED>(options: {
|
||||||
url: string;
|
url: string;
|
||||||
} & OakNavigateToParameters<ED, T2_1>, state?: Record<string, any> | undefined, disableNamespace?: boolean | undefined): Promise<void>;
|
} & OakNavigateToParameters<ED, T2_1>, state?: Record<string, any> | undefined, disableNamespace?: boolean | undefined): Promise<void>;
|
||||||
addItem<T extends keyof ED>(data: Omit<ED[T]["CreateSingle"]["data"], "id"> & {
|
addItem<T_1 extends keyof ED>(data: Omit<ED[T_1]["CreateSingle"]["data"], "id"> & {
|
||||||
id?: string | undefined;
|
id?: string | undefined;
|
||||||
}, path?: string | undefined): string;
|
}, path?: string | undefined): string;
|
||||||
addItems<T_1 extends keyof ED>(data: (Omit<ED[T_1]["CreateSingle"]["data"], "id"> & {
|
addItems<T_2 extends keyof ED>(data: (Omit<ED[T_2]["CreateSingle"]["data"], "id"> & {
|
||||||
id?: string | undefined;
|
id?: string | undefined;
|
||||||
})[], path?: string | undefined): string[];
|
})[], path?: string | undefined): string[];
|
||||||
removeItem(id: string, path?: string | undefined): void;
|
removeItem(id: string, path?: string | undefined): void;
|
||||||
removeItems(ids: string[], path?: string | undefined): void;
|
removeItems(ids: string[], path?: string | undefined): void;
|
||||||
updateItem<T_2 extends keyof ED>(data: ED[T_2]["Update"]["data"], id: string, action?: ED[T_2]["Action"] | undefined, path?: string | undefined): void;
|
updateItem<T_3 extends keyof ED>(data: ED[T_3]["Update"]["data"], id: string, action?: ED[T_3]["Action"] | undefined, path?: string | undefined): void;
|
||||||
updateItems<T_3 extends keyof ED>(data: ED[T_3]["Update"]["data"], ids: string[], action?: ED[T_3]["Action"] | undefined, path?: string | undefined): void;
|
updateItems<T_4 extends keyof ED>(data: ED[T_4]["Update"]["data"], ids: string[], action?: ED[T_4]["Action"] | undefined, path?: string | undefined): void;
|
||||||
recoverItem(id: string, path?: string | undefined): void;
|
recoverItem(id: string, path?: string | undefined): void;
|
||||||
recoverItems(ids: string[], path?: string | undefined): void;
|
recoverItems(ids: string[], path?: string | undefined): void;
|
||||||
resetItem(id: string, path?: string | undefined): void;
|
resetItem(id: string, path?: string | undefined): void;
|
||||||
update<T_4 extends keyof ED>(data: ED[T_4]["Update"]["data"], action?: ED[T_4]["Action"] | undefined, path?: string | undefined): void;
|
update<T_5 extends keyof ED>(data: ED[T_5]["Update"]["data"], action?: ED[T_5]["Action"] | undefined, path?: string | undefined): void;
|
||||||
create<T_5 extends keyof ED>(data: Omit<ED[T_5]["CreateSingle"]["data"], "id">, path?: string | undefined): void;
|
create<T_6 extends keyof ED>(data: Omit<ED[T_6]["CreateSingle"]["data"], "id">, path?: string | undefined): void;
|
||||||
remove(path?: string | undefined): void;
|
remove(path?: string | undefined): void;
|
||||||
isCreation(path?: string | undefined): boolean;
|
isCreation(path?: string | undefined): boolean;
|
||||||
clean(lsn?: number | undefined, dontPublish?: true | undefined, path?: string | undefined): void;
|
clean(lsn?: number | undefined, dontPublish?: true | undefined, path?: string | undefined): void;
|
||||||
|
|
@ -78,7 +78,7 @@ export declare function createComponent<IsList extends boolean, ED extends Entit
|
||||||
select<T2_2 extends keyof ED>(entity: T2_2, selection: ED[T2_2]["Selection"]): Partial<import("oak-domain/lib/types").GeneralEntityShape>[];
|
select<T2_2 extends keyof ED>(entity: T2_2, selection: ED[T2_2]["Selection"]): Partial<import("oak-domain/lib/types").GeneralEntityShape>[];
|
||||||
checkOperation<T2_3 extends keyof ED>(entity: T2_3, operation: Omit<ED[T2_3]["Operation"], "id">, checkerTypes?: CheckerType[] | undefined): boolean | { [A in ED[T2_3]["Action"]]: boolean | import("oak-domain/lib/types").OakUserException<ED>; }[ED[T2_3]["Action"]];
|
checkOperation<T2_3 extends keyof ED>(entity: T2_3, operation: Omit<ED[T2_3]["Operation"], "id">, checkerTypes?: CheckerType[] | undefined): boolean | { [A in ED[T2_3]["Action"]]: boolean | import("oak-domain/lib/types").OakUserException<ED>; }[ED[T2_3]["Action"]];
|
||||||
tryExecute(path?: string | undefined, action?: string | undefined): boolean | { [A_1 in ED[keyof ED]["Action"]]: boolean | import("oak-domain/lib/types").OakUserException<ED>; }[ED[keyof ED]["Action"]];
|
tryExecute(path?: string | undefined, action?: string | undefined): boolean | { [A_1 in ED[keyof ED]["Action"]]: boolean | import("oak-domain/lib/types").OakUserException<ED>; }[ED[keyof ED]["Action"]];
|
||||||
getOperations<T_6 extends keyof ED>(path?: string | undefined): {
|
getOperations<T_7 extends keyof ED>(path?: string | undefined): {
|
||||||
entity: keyof ED;
|
entity: keyof ED;
|
||||||
operation: ED[keyof ED]["Operation"];
|
operation: ED[keyof ED]["Operation"];
|
||||||
}[] | undefined;
|
}[] | undefined;
|
||||||
|
|
|
||||||
|
|
@ -8,5 +8,5 @@ type TransformAspectDict<T extends AspectDict<ED, BCT>, ED extends BaseEntityDic
|
||||||
[K in keyof T]: T[K] extends (params: infer P, context: BCT) => infer R ? R extends Promise<unknown> ? (params: P, callback?: (result: R, opRecords?: OpRecord<ED>[]) => void, dontPublish?: true, ignoreContext?: true) => R : never : never;
|
[K in keyof T]: T[K] extends (params: infer P, context: BCT) => infer R ? R extends Promise<unknown> ? (params: P, callback?: (result: R, opRecords?: OpRecord<ED>[]) => void, dontPublish?: true, ignoreContext?: true) => R : never : never;
|
||||||
};
|
};
|
||||||
export type AspectDictTrans<ED extends BaseEntityDict, AD extends AspectDict<ED, BCT>, BCT extends AsyncContext<ED>> = TransformAspectDict<AD & CommonAspectDict<ED>, ED, BCT>;
|
export type AspectDictTrans<ED extends BaseEntityDict, AD extends AspectDict<ED, BCT>, BCT extends AsyncContext<ED>> = TransformAspectDict<AD & CommonAspectDict<ED>, ED, BCT>;
|
||||||
export declare const createService: <ED extends BaseEntityDict, AD extends AspectDict<ED, any>>(cache: import("../features/cache").Cache<ED>) => TransformAspectDict<AD & CommonAspectDict<ED>, ED, any>;
|
export declare const createService: <ED extends BaseEntityDict, AD extends AspectDict<ED, any>>(cache: BasicFeatures<ED>["cache"]) => TransformAspectDict<AD & CommonAspectDict<ED>, ED, any>;
|
||||||
export {};
|
export {};
|
||||||
|
|
|
||||||
|
|
@ -768,12 +768,11 @@ class ListNode extends EntityNode {
|
||||||
const { data, sorter, filter } = this.constructSelection(true, false, true);
|
const { data, sorter, filter } = this.constructSelection(true, false, true);
|
||||||
const ids2 = ids.concat(createIds);
|
const ids2 = ids.concat(createIds);
|
||||||
/**
|
/**
|
||||||
* 在非modi状态下,当前的逻辑是:
|
* 在非modi状态下,当前的逻辑是用当前filter加以过滤,不然就处理不了在列表中操作改变了filter中外联的条件(例如为order创建了一个ship,但查询条件是没有ship)时,列表不发生变化
|
||||||
* 若本结点非脏(其子结点也非脏),直接用ids作为查询条件(这里也隐喻着父结点不会影响这里的数据)
|
* 所以在这里当前是要求用户在取数据的时候,将可能影响的这种外联的数据也取到cache当中
|
||||||
* 若本结点为脏,则要考虑当前这些ids是否还满足filters,若一个结点出现这种情况要考虑,则要自己保证filter中的关联关系数据都在cache当中,不然会出现数据为空
|
* by Xc 20250315
|
||||||
* by Xc 20250308
|
|
||||||
*/
|
*/
|
||||||
const filter2 = inModiNextBranch ? filter : (ids2.length > 0 ? (filter && this.isDirty() ? (0, filter_1.combineFilters)(this.entity, this.cache.getSchema(), [filter, {
|
const filter2 = inModiNextBranch ? filter : (ids2.length > 0 ? (filter ? (0, filter_1.combineFilters)(this.entity, this.cache.getSchema(), [filter, {
|
||||||
id: {
|
id: {
|
||||||
$in: ids2,
|
$in: ids2,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -49,21 +49,21 @@ export declare function createComponent<IsList extends boolean, ED extends Entit
|
||||||
redirectTo<T2_1 extends keyof ED>(options: {
|
redirectTo<T2_1 extends keyof ED>(options: {
|
||||||
url: string;
|
url: string;
|
||||||
} & OakNavigateToParameters<ED, T2_1>, state?: Record<string, any> | undefined, disableNamespace?: boolean | undefined): Promise<void>;
|
} & OakNavigateToParameters<ED, T2_1>, state?: Record<string, any> | undefined, disableNamespace?: boolean | undefined): Promise<void>;
|
||||||
addItem<T extends keyof ED>(data: Omit<ED[T]["CreateSingle"]["data"], "id"> & {
|
addItem<T_1 extends keyof ED>(data: Omit<ED[T_1]["CreateSingle"]["data"], "id"> & {
|
||||||
id?: string | undefined;
|
id?: string | undefined;
|
||||||
}, path?: string | undefined): string;
|
}, path?: string | undefined): string;
|
||||||
addItems<T_1 extends keyof ED>(data: (Omit<ED[T_1]["CreateSingle"]["data"], "id"> & {
|
addItems<T_2 extends keyof ED>(data: (Omit<ED[T_2]["CreateSingle"]["data"], "id"> & {
|
||||||
id?: string | undefined;
|
id?: string | undefined;
|
||||||
})[], path?: string | undefined): string[];
|
})[], path?: string | undefined): string[];
|
||||||
removeItem(id: string, path?: string | undefined): void;
|
removeItem(id: string, path?: string | undefined): void;
|
||||||
removeItems(ids: string[], path?: string | undefined): void;
|
removeItems(ids: string[], path?: string | undefined): void;
|
||||||
updateItem<T_2 extends keyof ED>(data: ED[T_2]["Update"]["data"], id: string, action?: ED[T_2]["Action"] | undefined, path?: string | undefined): void;
|
updateItem<T_3 extends keyof ED>(data: ED[T_3]["Update"]["data"], id: string, action?: ED[T_3]["Action"] | undefined, path?: string | undefined): void;
|
||||||
updateItems<T_3 extends keyof ED>(data: ED[T_3]["Update"]["data"], ids: string[], action?: ED[T_3]["Action"] | undefined, path?: string | undefined): void;
|
updateItems<T_4 extends keyof ED>(data: ED[T_4]["Update"]["data"], ids: string[], action?: ED[T_4]["Action"] | undefined, path?: string | undefined): void;
|
||||||
recoverItem(id: string, path?: string | undefined): void;
|
recoverItem(id: string, path?: string | undefined): void;
|
||||||
recoverItems(ids: string[], path?: string | undefined): void;
|
recoverItems(ids: string[], path?: string | undefined): void;
|
||||||
resetItem(id: string, path?: string | undefined): void;
|
resetItem(id: string, path?: string | undefined): void;
|
||||||
update<T_4 extends keyof ED>(data: ED[T_4]["Update"]["data"], action?: ED[T_4]["Action"] | undefined, path?: string | undefined): void;
|
update<T_5 extends keyof ED>(data: ED[T_5]["Update"]["data"], action?: ED[T_5]["Action"] | undefined, path?: string | undefined): void;
|
||||||
create<T_5 extends keyof ED>(data: Omit<ED[T_5]["CreateSingle"]["data"], "id">, path?: string | undefined): void;
|
create<T_6 extends keyof ED>(data: Omit<ED[T_6]["CreateSingle"]["data"], "id">, path?: string | undefined): void;
|
||||||
remove(path?: string | undefined): void;
|
remove(path?: string | undefined): void;
|
||||||
isCreation(path?: string | undefined): boolean;
|
isCreation(path?: string | undefined): boolean;
|
||||||
clean(lsn?: number | undefined, dontPublish?: true | undefined, path?: string | undefined): void;
|
clean(lsn?: number | undefined, dontPublish?: true | undefined, path?: string | undefined): void;
|
||||||
|
|
@ -78,7 +78,7 @@ export declare function createComponent<IsList extends boolean, ED extends Entit
|
||||||
select<T2_2 extends keyof ED>(entity: T2_2, selection: ED[T2_2]["Selection"]): Partial<import("oak-domain/lib/types").GeneralEntityShape>[];
|
select<T2_2 extends keyof ED>(entity: T2_2, selection: ED[T2_2]["Selection"]): Partial<import("oak-domain/lib/types").GeneralEntityShape>[];
|
||||||
checkOperation<T2_3 extends keyof ED>(entity: T2_3, operation: Omit<ED[T2_3]["Operation"], "id">, checkerTypes?: CheckerType[] | undefined): boolean | { [A in ED[T2_3]["Action"]]: boolean | import("oak-domain/lib/types").OakUserException<ED>; }[ED[T2_3]["Action"]];
|
checkOperation<T2_3 extends keyof ED>(entity: T2_3, operation: Omit<ED[T2_3]["Operation"], "id">, checkerTypes?: CheckerType[] | undefined): boolean | { [A in ED[T2_3]["Action"]]: boolean | import("oak-domain/lib/types").OakUserException<ED>; }[ED[T2_3]["Action"]];
|
||||||
tryExecute(path?: string | undefined, action?: string | undefined): boolean | { [A_1 in ED[keyof ED]["Action"]]: boolean | import("oak-domain/lib/types").OakUserException<ED>; }[ED[keyof ED]["Action"]];
|
tryExecute(path?: string | undefined, action?: string | undefined): boolean | { [A_1 in ED[keyof ED]["Action"]]: boolean | import("oak-domain/lib/types").OakUserException<ED>; }[ED[keyof ED]["Action"]];
|
||||||
getOperations<T_6 extends keyof ED>(path?: string | undefined): {
|
getOperations<T_7 extends keyof ED>(path?: string | undefined): {
|
||||||
entity: keyof ED;
|
entity: keyof ED;
|
||||||
operation: ED[keyof ED]["Operation"];
|
operation: ED[keyof ED]["Operation"];
|
||||||
}[] | undefined;
|
}[] | undefined;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue