@aristid/leav-types 1.6.0-a54099d3 → 1.6.0-b98ce753
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -7,6 +7,7 @@ import { type IGraphqlAppModule, type IGraphqlApp } from '../../graphql/graphqlA
|
|
|
7
7
|
import { type ICoreApp } from '../coreApp';
|
|
8
8
|
import { type ICoreSubscriptionsHelpersApp } from '../helpers/subscriptions';
|
|
9
9
|
import { type IRecordPermissionDomain } from '../../../domain/permission/recordPermissionDomain';
|
|
10
|
+
import { type IAttributeDependentValuesPermissionDomain } from 'domain/permission/attributeDependentValuesPermissionDomain';
|
|
10
11
|
export type ITreeAttributeApp = IGraphqlAppModule;
|
|
11
12
|
interface IDeps {
|
|
12
13
|
'core.domain.tree': ITreeDomain;
|
|
@@ -18,6 +19,7 @@ interface IDeps {
|
|
|
18
19
|
'core.app.core.subscriptionsHelper': ICoreSubscriptionsHelpersApp;
|
|
19
20
|
'core.domain.library': ILibraryDomain;
|
|
20
21
|
'core.domain.permission.record': IRecordPermissionDomain;
|
|
22
|
+
'core.domain.permission.attributeDependentValues': IAttributeDependentValuesPermissionDomain;
|
|
21
23
|
}
|
|
22
|
-
export default function ({ 'core.domain.tree': treeDomain, 'core.domain.attribute': attributeDomain, 'core.domain.permission': permissionDomain, 'core.domain.eventsManager': eventsManagerDomain, 'core.app.core': coreApp, 'core.app.graphql': graphqlApp, 'core.app.core.subscriptionsHelper': subscriptionsHelper, 'core.domain.library': libraryDomain, 'core.domain.permission.record': recordPermissionDomain, }: IDeps): ITreeAttributeApp;
|
|
24
|
+
export default function ({ 'core.domain.tree': treeDomain, 'core.domain.attribute': attributeDomain, 'core.domain.permission': permissionDomain, 'core.domain.eventsManager': eventsManagerDomain, 'core.app.core': coreApp, 'core.app.graphql': graphqlApp, 'core.app.core.subscriptionsHelper': subscriptionsHelper, 'core.domain.library': libraryDomain, 'core.domain.permission.record': recordPermissionDomain, 'core.domain.permission.attributeDependentValues': attributeDependentValuesPermissionDomain, }: IDeps): ITreeAttributeApp;
|
|
23
25
|
export {};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { type IRecordDomain } from 'domain/record/recordDomain';
|
|
2
2
|
import { type IUtils } from 'utils/utils';
|
|
3
|
-
import { type ILogger } from '@leav/logger';
|
|
4
3
|
import { type IQueryInfos } from '_types/queryInfos';
|
|
5
4
|
import { type IValue, type IValueVersion } from '_types/value';
|
|
6
5
|
import { type IFormElement } from '../../../_types/forms';
|
|
@@ -12,7 +11,6 @@ export declare const getElementValues: (params: {
|
|
|
12
11
|
deps: {
|
|
13
12
|
"core.domain.record"?: IRecordDomain;
|
|
14
13
|
"core.utils"?: IUtils;
|
|
15
|
-
"core.utils.logger"?: ILogger;
|
|
16
14
|
};
|
|
17
15
|
ctx: IQueryInfos;
|
|
18
16
|
}) => Promise<{
|
|
@@ -65,6 +65,7 @@ export interface IValueDomain {
|
|
|
65
65
|
recordId: string;
|
|
66
66
|
attribute: string;
|
|
67
67
|
value: ISaveValue;
|
|
68
|
+
skipReadonly?: boolean;
|
|
68
69
|
ctx: IQueryInfos;
|
|
69
70
|
}): Promise<IValue[]>;
|
|
70
71
|
/**
|
|
@@ -80,6 +81,7 @@ export interface IValueDomain {
|
|
|
80
81
|
ctx: IQueryInfos;
|
|
81
82
|
keepEmpty?: boolean;
|
|
82
83
|
skipPermission?: boolean;
|
|
84
|
+
skipReadonly?: boolean;
|
|
83
85
|
}): Promise<ISaveBatchValueResult>;
|
|
84
86
|
deleteValue(params: IDeleteValueParams): Promise<IValue[]>;
|
|
85
87
|
formatValue(params: {
|