@aristid/leav-types 1.5.1-f302b301 → 1.5.2-24ae294a
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/src/__tests__/e2e/api/permissions/admin/permissionsAdminPermissions.test.d.ts +1 -0
- package/apps/core/src/__tests__/e2e/api/permissions/admin/treesAdminPermissions.test.d.ts +1 -0
- package/apps/core/src/domain/record/recordDomain.d.ts +15 -1
- package/package.json +2 -2
- /package/apps/core/src/__tests__/e2e/api/{apiKey → permissions/admin}/apiKeyAdminPermissions.test.d.ts +0 -0
- /package/apps/core/src/__tests__/e2e/api/{applications → permissions/admin}/applicationsAdminPermissions.test.d.ts +0 -0
- /package/apps/core/src/__tests__/e2e/api/{libraries/librariesAdminPermissions.test.d.ts → permissions/admin/globalSettingsAdminPermissions.test.d.ts} +0 -0
- /package/apps/core/src/__tests__/e2e/api/{trees/treesAdminPermissions.test.d.ts → permissions/admin/librariesAdminPermissions.test.d.ts} +0 -0
package/apps/core/src/__tests__/e2e/api/permissions/admin/permissionsAdminPermissions.test.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -14,7 +14,7 @@ import { type IRecord, type IRecordFilterLight, type IRecordIdentity } from '../
|
|
|
14
14
|
import { type IAttributeDomain } from '../attribute/attributeDomain';
|
|
15
15
|
import { type IRecordPermissionDomain } from '../permission/recordPermissionDomain';
|
|
16
16
|
import { type SendRecordUpdateEventHelper } from './helpers/sendRecordUpdateEvent';
|
|
17
|
-
import { type ICreateRecordResult, type IFindRecordParams } from './_types';
|
|
17
|
+
import { type ICreateRecordResult, type ICreateRecordValueError, type IFindRecordParams } from './_types';
|
|
18
18
|
import { type IFormRepo } from 'infra/form/formRepo';
|
|
19
19
|
import { type DeleteRecordHelper } from './helpers/deleteRecord';
|
|
20
20
|
import { type CreateRecordHelper } from './helpers/createRecord';
|
|
@@ -22,6 +22,14 @@ import { type IElementAncestorsHelper } from 'domain/tree/helpers/elementAncesto
|
|
|
22
22
|
import { type ILogger } from '@leav/logger';
|
|
23
23
|
import { type FindRecordsHelper } from './helpers/findRecords';
|
|
24
24
|
export declare const ATTRIBUTE_ACTIVE = "active";
|
|
25
|
+
export interface IDuplicateRecordRules {
|
|
26
|
+
attributesToDuplicate?: Array<{
|
|
27
|
+
attributeId: string;
|
|
28
|
+
overrideValueFn?: (id: string) => Promise<string | Array<string | {
|
|
29
|
+
valuesErrors: ICreateRecordValueError[];
|
|
30
|
+
}>>;
|
|
31
|
+
}>;
|
|
32
|
+
}
|
|
25
33
|
export interface IRecordDomain {
|
|
26
34
|
/**
|
|
27
35
|
* Create empty record
|
|
@@ -101,6 +109,12 @@ export interface IRecordDomain {
|
|
|
101
109
|
recordId: string;
|
|
102
110
|
ctx: IQueryInfos;
|
|
103
111
|
}): Promise<IRecord>;
|
|
112
|
+
duplicateRecords(params: {
|
|
113
|
+
libraryId: string;
|
|
114
|
+
recordIds: string[];
|
|
115
|
+
duplicateRules?: IDuplicateRecordRules;
|
|
116
|
+
ctx: IQueryInfos;
|
|
117
|
+
}): Promise<ICreateRecordResult[]>;
|
|
104
118
|
}
|
|
105
119
|
export interface IRecordDomainDeps {
|
|
106
120
|
config: Config.IConfig;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aristid/leav-types",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.2-24ae294a",
|
|
4
4
|
"description": "Shared Leav types",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"tscheck": "",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"license": "LGPL3",
|
|
15
15
|
"repository": "https://github.com/leav-solutions/leav-engine",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@leav/utils": "1.5.
|
|
17
|
+
"@leav/utils": "1.5.2",
|
|
18
18
|
"@types/amqplib": "0.10.7",
|
|
19
19
|
"@types/express": "5.0.0",
|
|
20
20
|
"@types/jest": "29.5.14",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|