@aristid/leav-types 1.5.3 → 1.6.0-720c24f0
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.
- package/apps/core/config/default.d.ts +1 -0
- package/apps/core/config/development.d.ts +1 -3
- package/apps/core/src/__tests__/e2e/api/permissions/admin/formsAdminPermissions.test.d.ts +1 -0
- package/apps/core/src/__tests__/e2e/api/permissions/admin/versionProfilesAdminPermissions.test.d.ts +1 -0
- package/apps/core/src/_types/config.d.ts +1 -0
- package/apps/core/src/domain/form/formDomain.d.ts +2 -2
- package/apps/core/src/domain/indexationManager/indexationManagerDomain.d.ts +3 -1
- package/apps/core/src/domain/record/helpers/findRecords.d.ts +3 -1
- package/package.json +6 -6
- /package/apps/core/src/__tests__/e2e/api/{attributes → permissions/admin}/attributesAdminPermissions.test.d.ts +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/apps/core/src/__tests__/e2e/api/permissions/admin/versionProfilesAdminPermissions.test.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -169,6 +169,7 @@ export interface IPermissions {
|
|
|
169
169
|
everybody: IPermissionsByTypesAndActions;
|
|
170
170
|
adminGroup: IPermissionsByTypesAndActions;
|
|
171
171
|
enableCache: boolean;
|
|
172
|
+
enableAccessRecordByDefaultBackendFilter: boolean;
|
|
172
173
|
}
|
|
173
174
|
export interface IAmqp {
|
|
174
175
|
connOpt: Options.Connect;
|
|
@@ -2,7 +2,6 @@ import { type IAttributeDomain } from 'domain/attribute/attributeDomain';
|
|
|
2
2
|
import { type IValidateHelper } from 'domain/helpers/validate';
|
|
3
3
|
import { type ILibraryDomain } from 'domain/library/libraryDomain';
|
|
4
4
|
import { type IAttributePermissionDomain } from 'domain/permission/attributePermissionDomain';
|
|
5
|
-
import { type ILibraryPermissionDomain } from 'domain/permission/libraryPermissionDomain';
|
|
6
5
|
import { type IRecordAttributePermissionDomain } from 'domain/permission/recordAttributePermissionDomain';
|
|
7
6
|
import { type IRecordDomain } from 'domain/record/recordDomain';
|
|
8
7
|
import { type ITreeDomain } from 'domain/tree/treeDomain';
|
|
@@ -15,6 +14,7 @@ import { type IGetCoreEntitiesParams } from '_types/shared';
|
|
|
15
14
|
import { type IValueVersion } from '_types/value';
|
|
16
15
|
import { type IForm, type IRecordForm } from '../../_types/forms';
|
|
17
16
|
import { type IList } from '../../_types/list';
|
|
17
|
+
import { type IAdminPermissionDomain } from '../permission/adminPermissionDomain';
|
|
18
18
|
export interface IFormDomain {
|
|
19
19
|
getFormsByLib({ library, params, ctx, }: {
|
|
20
20
|
library: string;
|
|
@@ -47,9 +47,9 @@ export interface IFormDomainDeps {
|
|
|
47
47
|
'core.domain.library': ILibraryDomain;
|
|
48
48
|
'core.domain.attribute': IAttributeDomain;
|
|
49
49
|
'core.domain.record': IRecordDomain;
|
|
50
|
-
'core.domain.permission.library': ILibraryPermissionDomain;
|
|
51
50
|
'core.domain.permission.recordAttribute': IRecordAttributePermissionDomain;
|
|
52
51
|
'core.domain.permission.attribute': IAttributePermissionDomain;
|
|
52
|
+
'core.domain.permission.admin': IAdminPermissionDomain;
|
|
53
53
|
'core.domain.helpers.validate': IValidateHelper;
|
|
54
54
|
'core.domain.tree': ITreeDomain;
|
|
55
55
|
'core.infra.form': IFormRepo;
|
|
@@ -12,6 +12,7 @@ import { type IQueryInfos } from '_types/queryInfos';
|
|
|
12
12
|
import { type IIndexationService } from '../../infra/indexation/indexationService';
|
|
13
13
|
import { type ITaskFuncParams } from '../../_types/tasksManager';
|
|
14
14
|
import { type GetSystemQueryContext } from '../../utils/helpers/getSystemQueryContext';
|
|
15
|
+
import { type IAdminPermissionDomain } from 'domain/permission/adminPermissionDomain';
|
|
15
16
|
interface IIndexDatabaseParams {
|
|
16
17
|
findRecordParams: IFindRecordParams | IFindRecordParams[];
|
|
17
18
|
attributes?: {
|
|
@@ -32,11 +33,12 @@ export interface IIndexationManagerDomainDeps {
|
|
|
32
33
|
'core.domain.library': ILibraryDomain;
|
|
33
34
|
'core.domain.attribute': IAttributeDomain;
|
|
34
35
|
'core.infra.indexation.indexationService': IIndexationService;
|
|
36
|
+
'core.domain.permission.admin': IAdminPermissionDomain;
|
|
35
37
|
'core.domain.tasksManager': ITasksManagerDomain;
|
|
36
38
|
'core.domain.eventsManager': IEventsManagerDomain;
|
|
37
39
|
'core.utils.logger': ILogger;
|
|
38
40
|
'core.utils.getSystemQueryContext': GetSystemQueryContext;
|
|
39
41
|
translator: i18n;
|
|
40
42
|
}
|
|
41
|
-
export default function ({ config, 'core.infra.amqpService': amqpService, 'core.domain.record': recordDomain, 'core.domain.library': libraryDomain, 'core.domain.attribute': attributeDomain, 'core.domain.tasksManager': tasksManagerDomain, 'core.infra.indexation.indexationService': indexationService, 'core.domain.eventsManager': eventsManager, 'core.utils.logger': logger, 'core.utils.getSystemQueryContext': getSystemQueryContext, translator, }: IIndexationManagerDomainDeps): IIndexationManagerDomain;
|
|
43
|
+
export default function ({ config, 'core.infra.amqpService': amqpService, 'core.domain.record': recordDomain, 'core.domain.library': libraryDomain, 'core.domain.attribute': attributeDomain, 'core.domain.permission.admin': adminPermissionDomain, 'core.domain.tasksManager': tasksManagerDomain, 'core.infra.indexation.indexationService': indexationService, 'core.domain.eventsManager': eventsManager, 'core.utils.logger': logger, 'core.utils.getSystemQueryContext': getSystemQueryContext, translator, }: IIndexationManagerDomainDeps): IIndexationManagerDomain;
|
|
42
44
|
export {};
|
|
@@ -13,6 +13,7 @@ import { type ITreeRepo } from '../../../infra/tree/treeRepo';
|
|
|
13
13
|
import { type GetCoreEntityByIdFunc } from '../../helpers/getCoreEntityById';
|
|
14
14
|
import { type IElementAncestorsHelper } from '../../tree/helpers/elementAncestors';
|
|
15
15
|
import { type IDefaultPermissionHelper } from '../../permission/helpers/defaultPermission';
|
|
16
|
+
import { type IConfig } from '_types/config';
|
|
16
17
|
/**
|
|
17
18
|
* Search records
|
|
18
19
|
* Filters to apply on records selection
|
|
@@ -34,5 +35,6 @@ export interface IFindRecordsHelperDeps {
|
|
|
34
35
|
'core.domain.tree.helpers.elementAncestors': IElementAncestorsHelper;
|
|
35
36
|
'core.domain.permission.helpers.defaultPermission': IDefaultPermissionHelper;
|
|
36
37
|
'core.infra.permission': IPermissionRepo;
|
|
38
|
+
config: IConfig;
|
|
37
39
|
}
|
|
38
|
-
export default function ({ 'core.domain.helpers.validate': validateHelper, 'core.domain.attribute': attributeDomain, 'core.domain.permission.helpers.defaultPermission': defaultPermHelper, 'core.infra.library': libraryRepo, 'core.domain.permission.library': libraryPermissionDomain, 'core.infra.record': recordRepo, 'core.domain.helpers.getCoreEntityById': getCoreEntityById, 'core.infra.tree': treeRepo, 'core.domain.tree.helpers.elementAncestors': elementAncestorsHelper, 'core.infra.permission': permissionRepo, 'core.utils': utils, }: IFindRecordsHelperDeps): FindRecordsHelper;
|
|
40
|
+
export default function ({ 'core.domain.helpers.validate': validateHelper, 'core.domain.attribute': attributeDomain, 'core.domain.permission.helpers.defaultPermission': defaultPermHelper, 'core.infra.library': libraryRepo, 'core.domain.permission.library': libraryPermissionDomain, 'core.infra.record': recordRepo, 'core.domain.helpers.getCoreEntityById': getCoreEntityById, 'core.infra.tree': treeRepo, 'core.domain.tree.helpers.elementAncestors': elementAncestorsHelper, 'core.infra.permission': permissionRepo, 'core.utils': utils, config, }: IFindRecordsHelperDeps): FindRecordsHelper;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aristid/leav-types",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0-720c24f0",
|
|
4
4
|
"description": "Shared Leav types",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"tscheck": "",
|
|
@@ -14,14 +14,14 @@
|
|
|
14
14
|
"license": "LGPL3",
|
|
15
15
|
"repository": "https://github.com/leav-solutions/leav-engine",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@leav/utils": "1.
|
|
18
|
-
"@types/amqplib": "0.10.
|
|
19
|
-
"@types/express": "5.0.
|
|
17
|
+
"@leav/utils": "1.6.0",
|
|
18
|
+
"@types/amqplib": "0.10.8",
|
|
19
|
+
"@types/express": "5.0.6",
|
|
20
20
|
"@types/jest": "29.5.14",
|
|
21
21
|
"amqplib": "0.10.9",
|
|
22
22
|
"arangojs": "8.1.0",
|
|
23
|
-
"awilix": "12.0.
|
|
24
|
-
"i18next": "24.2.
|
|
23
|
+
"awilix": "12.0.5",
|
|
24
|
+
"i18next": "24.2.3",
|
|
25
25
|
"jest": "29.7.0"
|
|
26
26
|
}
|
|
27
27
|
}
|
|
File without changes
|