@aristid/leav-types 1.6.0-77fe04ca → 1.6.0-8471293f

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.
@@ -124,6 +124,13 @@ export declare namespace permissions {
124
124
  export namespace adminGroup {
125
125
  let _default_3: boolean;
126
126
  export { _default_3 as default };
127
+ export namespace library {
128
+ let access_record_by_default: boolean;
129
+ }
130
+ export namespace record {
131
+ let access_record_by_default_1: boolean;
132
+ export { access_record_by_default_1 as access_record_by_default };
133
+ }
127
134
  }
128
135
  let enableCache_1: boolean;
129
136
  export { enableCache_1 as enableCache };
@@ -2,5 +2,7 @@ export interface IFakeDomain {
2
2
  execWorker({ fromTask }: {
3
3
  fromTask: string;
4
4
  }): void;
5
+ startPlugin(): void;
6
+ getPluginStarted(): boolean;
5
7
  }
6
8
  export default function (): IFakeDomain;
@@ -3,11 +3,13 @@ import { type IPluginInitModule } from '_types/plugin';
3
3
  import { type IValueRepo } from '../../../../../infra/value/valueRepo';
4
4
  import { type IAttributeDomain } from '../../../../../domain/attribute/attributeDomain';
5
5
  import { type ITasksManagerDomain } from 'domain/tasksManager/tasksManagerDomain';
6
+ import { type IFakeDomain } from './domain/fakeDomain';
6
7
  interface IDeps {
7
8
  translator: i18n;
8
9
  'core.infra.value': IValueRepo;
9
10
  'core.domain.attribute': IAttributeDomain;
10
11
  'core.domain.tasksManager': ITasksManagerDomain;
12
+ 'fakeplugin.domain': IFakeDomain;
11
13
  }
12
- export default function ({ translator, 'core.infra.value': valueRepo, 'core.domain.attribute': attributeDomain, 'core.domain.tasksManager': tasksManagerDomain, }: IDeps): IPluginInitModule;
14
+ export default function ({ translator, 'core.infra.value': valueRepo, 'core.domain.attribute': attributeDomain, 'core.domain.tasksManager': tasksManagerDomain, 'fakeplugin.domain': fakeDomain, }: IDeps): IPluginInitModule;
13
15
  export {};
@@ -44,6 +44,7 @@ export declare enum CoreMode {
44
44
  TASKS_MANAGER_MASTER = "tasksManager:master",
45
45
  TASKS_MANAGER_WORKER = "tasksManager:worker",
46
46
  LOGS_COLLECTOR = "logsCollector",
47
+ E2E_PLAYWRIGHT = "e2ePlaywright",
47
48
  CLI = "cli"
48
49
  }
49
50
  export interface IServer {
@@ -19,6 +19,7 @@ export interface IExtensionPointsFunctions extends IExtensionPoints {
19
19
  registerEventActions: (actions: string[], prefix: string) => void;
20
20
  registerActions: (actions: IActionsListFunction[]) => void;
21
21
  registerTaskTypes: (types: string[]) => void;
22
+ registerStart: (fct: () => Promise<void>) => void;
22
23
  /**
23
24
  * Method to register some Express routes inside LEAV Core.
24
25
  *
@@ -15,6 +15,7 @@ export declare enum LibraryPermissionsActions {
15
15
  ACCESS_LIBRARY = "access_library",
16
16
  ADMIN_LIBRARY = "admin_library",
17
17
  ACCESS_RECORD = "access_record",
18
+ ACCESS_RECORD_BY_DEFAULT = "access_record_by_default",
18
19
  CREATE_RECORD = "create_record",
19
20
  EDIT_RECORD = "edit_record",
20
21
  DELETE_RECORD = "delete_record"
@@ -2,6 +2,7 @@ import { type IActionsListDomain } from 'domain/actionsList/actionsListDomain';
2
2
  import { type IAttributeDomain } from 'domain/attribute/attributeDomain';
3
3
  import { type ILibraryDomain } from 'domain/library/libraryDomain';
4
4
  import { type IPermissionDomain } from 'domain/permission/permissionDomain';
5
+ import { type IAttributeDependentValuesPermissionDomain } from 'domain/permission/attributeDependentValuesPermissionDomain';
5
6
  import { type IRecordDomain } from 'domain/record/recordDomain';
6
7
  import { type ITreeDomain } from 'domain/tree/treeDomain';
7
8
  import { type IVersionProfileDomain } from 'domain/versionProfile/versionProfileDomain';
@@ -16,6 +17,7 @@ interface IDeps {
16
17
  'core.domain.tree': ITreeDomain;
17
18
  'core.domain.actionsList': IActionsListDomain;
18
19
  'core.domain.permission': IPermissionDomain;
20
+ 'core.domain.permission.attributeDependentValues': IAttributeDependentValuesPermissionDomain;
19
21
  'core.domain.versionProfile': IVersionProfileDomain;
20
22
  'core.app.graphql': IGraphqlApp;
21
23
  'core.app.core': ICoreApp;
@@ -1,7 +1,9 @@
1
1
  import { type IPluginsDomain } from 'domain/plugins/pluginsDomain';
2
2
  import { type IPluginInfos } from '../../_types/plugin';
3
3
  import { type IGraphqlAppModule } from 'app/graphql/graphqlApp';
4
- export interface ICorePluginsApp extends IGraphqlAppModule {
4
+ import { type IAppModule } from '_types/shared';
5
+ export interface ICorePluginsApp extends IGraphqlAppModule, IAppModule {
6
+ startPlugins(): Promise<void>;
5
7
  registerPlugin(path: string, plugin: IPluginInfos): void;
6
8
  }
7
9
  interface IDeps {
@@ -22,6 +22,19 @@ export interface IAttributeDependentValuesPermissionDomain {
22
22
  dependenciesTreeTargets: IPermissionsDependenciesTreeTarget[];
23
23
  ctx: IQueryInfos;
24
24
  }): Promise<boolean>;
25
+ filterAllowedDependentValuesOnItself(params: {
26
+ action: AttributeDependentValuesPermissionsActions;
27
+ attributeId: string;
28
+ targetValue: {
29
+ nodeId: string | null;
30
+ };
31
+ allValues: Array<{
32
+ nodeId: string | null;
33
+ }>;
34
+ ctx: IQueryInfos;
35
+ }): Promise<Array<{
36
+ nodeId: string | null;
37
+ }>>;
25
38
  }
26
39
  export interface IRecordAttributePermissionDomainDeps {
27
40
  'core.domain.permission.helpers.permissionByUserGroups': IPermissionByUserGroupsHelper;
@@ -20,6 +20,10 @@ export declare enum TabsDirection {
20
20
  HORIZONTAL = "horizontal",
21
21
  VERTICAL = "vertical"
22
22
  }
23
+ export declare enum DisplayMode {
24
+ EXPLORER = "EXPLORER",
25
+ TAG = "TAG"
26
+ }
23
27
  export interface ICommonFieldsSettings {
24
28
  label?: Record<string, string | null>;
25
29
  attribute?: string;
@@ -55,7 +59,7 @@ export interface IFormLinkFieldSettings extends ICommonFieldsSettings {
55
59
  label: Record<string, string>;
56
60
  }>;
57
61
  displayRecordIdentity: boolean;
58
- tagDisplayMode: boolean;
62
+ displayMode: DisplayMode;
59
63
  editFormId: string;
60
64
  }
61
65
  export declare const FORM_ROOT_CONTAINER_ID = "__root";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aristid/leav-types",
3
- "version": "1.6.0-77fe04ca",
3
+ "version": "1.6.0-8471293f",
4
4
  "description": "Shared Leav types",
5
5
  "scripts": {
6
6
  "tscheck": "",