@aristid/leav-types 1.3.0-2b4d268e → 1.3.0-2e4cb2a7
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 +12 -5
- package/apps/core/config/development.d.ts +3 -0
- package/apps/core/src/_types/config.d.ts +7 -1
- package/apps/core/src/_types/permissions.d.ts +1 -0
- package/apps/core/src/domain/record/helpers/createRecord.d.ts +3 -6
- package/apps/core/src/domain/record/recordDomain.d.ts +3 -6
- package/package.json +2 -3
|
@@ -4,7 +4,6 @@ export declare namespace server {
|
|
|
4
4
|
let host: string;
|
|
5
5
|
let port: number;
|
|
6
6
|
let publicUrl: string;
|
|
7
|
-
let wsUrl: string;
|
|
8
7
|
let basePath: string;
|
|
9
8
|
let allowIntrospection: boolean;
|
|
10
9
|
let uploadLimit: string;
|
|
@@ -76,6 +75,14 @@ export declare namespace bugsnag {
|
|
|
76
75
|
export let apiKey: string;
|
|
77
76
|
export let appVersion: string;
|
|
78
77
|
export let appType: string;
|
|
78
|
+
export let releaseStage: string;
|
|
79
|
+
}
|
|
80
|
+
export declare namespace matomo {
|
|
81
|
+
let enable_2: boolean;
|
|
82
|
+
export { enable_2 as enable };
|
|
83
|
+
let url_1: string;
|
|
84
|
+
export { url_1 as url };
|
|
85
|
+
export let siteId: string;
|
|
79
86
|
}
|
|
80
87
|
export declare namespace lang {
|
|
81
88
|
export let available: string | string[];
|
|
@@ -200,13 +207,13 @@ export declare namespace files {
|
|
|
200
207
|
let originalsPathPrefix: string;
|
|
201
208
|
}
|
|
202
209
|
export declare namespace dbProfiler {
|
|
203
|
-
let
|
|
204
|
-
export {
|
|
210
|
+
let enable_3: boolean;
|
|
211
|
+
export { enable_3 as enable };
|
|
205
212
|
}
|
|
206
213
|
export declare namespace elasticSearch {
|
|
207
214
|
export let indexPrefix: string;
|
|
208
|
-
let
|
|
209
|
-
export {
|
|
215
|
+
let url_2: string;
|
|
216
|
+
export { url_2 as url };
|
|
210
217
|
}
|
|
211
218
|
export declare let pluginsPath: string | any[];
|
|
212
219
|
export { _export as export, _import as import };
|
|
@@ -32,6 +32,7 @@ export interface IConfig {
|
|
|
32
32
|
elasticSearch: IElasticSearchConfig;
|
|
33
33
|
pluginsPath: string[];
|
|
34
34
|
bugsnag: IBugsnag;
|
|
35
|
+
matomo: IMatomo;
|
|
35
36
|
}
|
|
36
37
|
export declare enum CoreMode {
|
|
37
38
|
SERVER = "server",
|
|
@@ -48,7 +49,6 @@ export interface IServer {
|
|
|
48
49
|
publicUrl: string;
|
|
49
50
|
basePath: string;
|
|
50
51
|
allowIntrospection: boolean;
|
|
51
|
-
wsUrl: string;
|
|
52
52
|
uploadLimit: number | string;
|
|
53
53
|
supportEmail: string;
|
|
54
54
|
admin: {
|
|
@@ -231,4 +231,10 @@ export interface IBugsnag {
|
|
|
231
231
|
apiKey?: string;
|
|
232
232
|
appVersion?: string;
|
|
233
233
|
appType?: string;
|
|
234
|
+
releaseStage?: string;
|
|
235
|
+
}
|
|
236
|
+
export interface IMatomo {
|
|
237
|
+
enable: boolean;
|
|
238
|
+
url?: string;
|
|
239
|
+
siteId?: string;
|
|
234
240
|
}
|
|
@@ -20,6 +20,7 @@ export declare enum LibraryPermissionsActions {
|
|
|
20
20
|
}
|
|
21
21
|
export declare enum RecordPermissionsActions {
|
|
22
22
|
ACCESS_RECORD = "access_record",
|
|
23
|
+
ACCESS_RECORD_BY_DEFAULT = "access_record_by_default",
|
|
23
24
|
CREATE_RECORD = "create_record",
|
|
24
25
|
EDIT_RECORD = "edit_record",
|
|
25
26
|
DELETE_RECORD = "delete_record"
|
|
@@ -2,17 +2,14 @@ import { type IEventsManagerDomain } from 'domain/eventsManager/eventsManagerDom
|
|
|
2
2
|
import { type ILibraryPermissionDomain } from 'domain/permission/libraryPermissionDomain';
|
|
3
3
|
import { type IRecordRepo } from 'infra/record/recordRepo';
|
|
4
4
|
import { type IQueryInfos } from '../../../_types/queryInfos';
|
|
5
|
-
import { type
|
|
5
|
+
import { type IRecord } from '../../../_types/record';
|
|
6
|
+
import { type ICreateRecordValueError } from '../_types';
|
|
6
7
|
export type IPreCreateRecordCallback = () => Promise<ICreateRecordValueError[]>;
|
|
7
8
|
export type CreateRecordHelper = (params: {
|
|
8
9
|
library: string;
|
|
9
|
-
/**
|
|
10
|
-
* Can be use to validate potential values to post create insert to record
|
|
11
|
-
*/
|
|
12
|
-
preCreateCallback?: IPreCreateRecordCallback;
|
|
13
10
|
ctx: IQueryInfos;
|
|
14
11
|
active?: boolean;
|
|
15
|
-
}) => Promise<
|
|
12
|
+
}) => Promise<IRecord>;
|
|
16
13
|
interface IDeps {
|
|
17
14
|
'core.domain.eventsManager': IEventsManagerDomain;
|
|
18
15
|
'core.domain.permission.library': ILibraryPermissionDomain;
|
|
@@ -7,7 +7,6 @@ import { type i18n } from 'i18next';
|
|
|
7
7
|
import { type ILibraryRepo } from 'infra/library/libraryRepo';
|
|
8
8
|
import { type IRecordRepo } from 'infra/record/recordRepo';
|
|
9
9
|
import { type ITreeRepo } from 'infra/tree/treeRepo';
|
|
10
|
-
import { type IValueRepo } from 'infra/value/valueRepo';
|
|
11
10
|
import { type IUtils } from 'utils/utils';
|
|
12
11
|
import type * as Config from '_types/config';
|
|
13
12
|
import { type IListWithCursor } from '_types/list';
|
|
@@ -21,7 +20,6 @@ import { type SendRecordUpdateEventHelper } from './helpers/sendRecordUpdateEven
|
|
|
21
20
|
import { type ICreateRecordResult, type IFindRecordParams } from './_types';
|
|
22
21
|
import { type IFormRepo } from 'infra/form/formRepo';
|
|
23
22
|
import { type IRecordAttributePermissionDomain } from '../permission/recordAttributePermissionDomain';
|
|
24
|
-
import { type IAttributePermissionDomain } from '../permission/attributePermissionDomain';
|
|
25
23
|
import { type IPermissionRepo } from '../../infra/permission/permissionRepo';
|
|
26
24
|
import { type IDefaultPermissionHelper } from 'domain/permission/helpers/defaultPermission';
|
|
27
25
|
import { type DeleteRecordHelper } from './helpers/deleteRecord';
|
|
@@ -36,11 +34,12 @@ export interface IRecordDomain {
|
|
|
36
34
|
createEmptyRecord(params: {
|
|
37
35
|
library: string;
|
|
38
36
|
ctx: IQueryInfos;
|
|
39
|
-
}): Promise<
|
|
37
|
+
}): Promise<IRecord>;
|
|
40
38
|
activateNewRecord(params: {
|
|
41
39
|
library: string;
|
|
42
40
|
recordId: string;
|
|
43
41
|
formId?: string;
|
|
42
|
+
skipVerifyRequiredAttributes?: boolean;
|
|
44
43
|
ctx: IQueryInfos;
|
|
45
44
|
}): Promise<ICreateRecordResult>;
|
|
46
45
|
createRecord(params: {
|
|
@@ -123,7 +122,6 @@ export interface IRecordDomainDeps {
|
|
|
123
122
|
'core.domain.value': IValueDomain;
|
|
124
123
|
'core.domain.permission.record': IRecordPermissionDomain;
|
|
125
124
|
'core.domain.permission.library': ILibraryPermissionDomain;
|
|
126
|
-
'core.domain.permission.attribute': IAttributePermissionDomain;
|
|
127
125
|
'core.domain.permission.recordAttribute': IRecordAttributePermissionDomain;
|
|
128
126
|
'core.domain.permission.helpers.defaultPermission': IDefaultPermissionHelper;
|
|
129
127
|
'core.domain.helpers.getCoreEntityById': GetCoreEntityByIdFunc;
|
|
@@ -134,7 +132,6 @@ export interface IRecordDomainDeps {
|
|
|
134
132
|
'core.infra.library': ILibraryRepo;
|
|
135
133
|
'core.infra.tree': ITreeRepo;
|
|
136
134
|
'core.domain.tree.helpers.elementAncestors': IElementAncestorsHelper;
|
|
137
|
-
'core.infra.value': IValueRepo;
|
|
138
135
|
'core.infra.form': IFormRepo;
|
|
139
136
|
'core.infra.permission': IPermissionRepo;
|
|
140
137
|
'core.domain.eventsManager': IEventsManagerDomain;
|
|
@@ -143,4 +140,4 @@ export interface IRecordDomainDeps {
|
|
|
143
140
|
'core.utils': IUtils;
|
|
144
141
|
translator: i18n;
|
|
145
142
|
}
|
|
146
|
-
export default function ({ config, 'core.infra.record': recordRepo, 'core.domain.attribute': attributeDomain, 'core.domain.value': valueDomain, 'core.domain.permission.record': recordPermissionDomain, 'core.domain.permission.library': libraryPermissionDomain, 'core.domain.permission.
|
|
143
|
+
export default function ({ config, 'core.infra.record': recordRepo, 'core.domain.attribute': attributeDomain, 'core.domain.value': valueDomain, 'core.domain.permission.record': recordPermissionDomain, 'core.domain.permission.library': libraryPermissionDomain, 'core.domain.permission.recordAttribute': recordAttributePermissionDomain, 'core.domain.permission.helpers.defaultPermission': defaultPermHelper, 'core.domain.helpers.getCoreEntityById': getCoreEntityById, 'core.domain.helpers.validate': validateHelper, 'core.domain.record.helpers.createRecord': createRecordHelper, 'core.domain.record.helpers.deleteRecord': deleteRecordHelper, 'core.domain.record.helpers.sendRecordUpdateEvent': sendRecordUpdateEvent, 'core.infra.library': libraryRepo, 'core.infra.tree': treeRepo, 'core.domain.tree.helpers.elementAncestors': elementAncestorsHelper, 'core.infra.form': formRepo, 'core.infra.permission': permissionRepo, 'core.domain.eventsManager': eventsManager, 'core.infra.cache.cacheService': cacheService, 'core.utils.logger': logger, 'core.utils': utils, translator }: IRecordDomainDeps): IRecordDomain;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aristid/leav-types",
|
|
3
|
-
"version": "1.3.0-
|
|
3
|
+
"version": "1.3.0-2e4cb2a7",
|
|
4
4
|
"description": "Shared Leav types",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"tscheck": "",
|
|
@@ -22,7 +22,6 @@
|
|
|
22
22
|
"arangojs": "8.1.0",
|
|
23
23
|
"awilix": "12.0.4",
|
|
24
24
|
"i18next": "24.2.0",
|
|
25
|
-
"jest": "29.7.0"
|
|
26
|
-
"winston": "2.4.6"
|
|
25
|
+
"jest": "29.7.0"
|
|
27
26
|
}
|
|
28
27
|
}
|