@aristid/leav-types 1.4.1-088d7367 → 1.4.1-13b47713
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 +11 -4
- package/apps/core/config/development.d.ts +7 -0
- package/apps/core/src/__tests__/e2e/api/e2eUtils.d.ts +22 -4
- package/apps/core/src/__tests__/e2e/api/import/import.test.d.ts +1 -0
- package/apps/core/src/__tests__/integration/domain/tasksManagerDomain.test.d.ts +1 -0
- package/apps/core/src/__tests__/integration/infra/integrationTestRepoUtils.d.ts +1 -1
- package/apps/core/src/__tests__/integration/integrationTestUtils.d.ts +7 -0
- package/apps/core/src/_constants/attributes.d.ts +2 -1
- package/apps/core/src/_types/config.d.ts +15 -0
- package/apps/core/src/_types/errors.d.ts +0 -1
- package/apps/core/src/_types/eventsManager.d.ts +4 -0
- package/apps/core/src/app/application/applicationApp.d.ts +1 -1
- package/apps/core/src/app/auth/authApp.d.ts +1 -1
- package/apps/core/src/app/core/apiKeyApp/apiKeyApp.d.ts +1 -1
- package/apps/core/src/app/core/coreApp.d.ts +1 -1
- package/apps/core/src/app/core/eventsManagerApp.d.ts +1 -1
- package/apps/core/src/app/core/filesManagerApp.d.ts +1 -1
- package/apps/core/src/app/core/formApp/formApp.d.ts +1 -1
- package/apps/core/src/app/core/globalSettingsApp.d.ts +1 -1
- package/apps/core/src/app/core/importApp.d.ts +1 -1
- package/apps/core/src/app/core/libraryApp/libraryApp.d.ts +1 -1
- package/apps/core/src/app/core/logApp.d.ts +1 -1
- package/apps/core/src/app/core/permissionApp/permissionApp.d.ts +1 -1
- package/apps/core/src/app/core/recordApp/_types.d.ts +1 -0
- package/apps/core/src/app/core/recordApp/recordApp.d.ts +1 -1
- package/apps/core/src/app/core/tasksManagerApp.d.ts +2 -2
- package/apps/core/src/app/core/treeApp/treeApp.d.ts +1 -1
- package/apps/core/src/app/core/valueApp.d.ts +1 -1
- package/apps/core/src/app/core/versionProfileApp/versionProfileApp.d.ts +1 -1
- package/apps/core/src/app/core/viewApp.d.ts +1 -1
- package/apps/core/src/app/endpoint/endpointApp.d.ts +1 -1
- package/apps/core/src/app/graphql/graphqlApp.d.ts +1 -1
- package/apps/core/src/domain/actions/excelCalculationAction.d.ts +6 -4
- package/apps/core/src/domain/actions/index.d.ts +1 -0
- package/apps/core/src/domain/actions/inheritanceCalculationAction.d.ts +1 -1
- package/apps/core/src/domain/actions/toLowercaseAction.d.ts +2 -0
- package/apps/core/src/domain/actions/toLowercaseAction.spec.d.ts +1 -0
- package/apps/core/src/domain/apiKey/apiKeyDomain.d.ts +1 -1
- package/apps/core/src/domain/application/applicationDomain.d.ts +1 -1
- package/apps/core/src/domain/attribute/attributeDomain.d.ts +1 -1
- package/apps/core/src/domain/attribute/helpers/ifLibraryJoinLinkAttribute.d.ts +1 -1
- package/apps/core/src/domain/eventsManager/eventsManagerDomain.d.ts +1 -1
- package/apps/core/src/domain/export/exportDomain.d.ts +1 -2
- package/apps/core/src/domain/export/exportProfileDomain.d.ts +2 -2
- package/apps/core/src/domain/filesManager/filesManagerDomain.d.ts +1 -1
- package/apps/core/src/domain/filesManager/helpers/handlePreview.d.ts +1 -1
- package/apps/core/src/domain/filesManager/helpers/messagesHandler/messagesHandler.d.ts +1 -1
- package/apps/core/src/domain/form/formDomain.d.ts +1 -1
- package/apps/core/src/domain/form/helpers/mustIncludeElement.d.ts +1 -1
- package/apps/core/src/domain/globalSettings/globalSettingsDomain.d.ts +1 -1
- package/apps/core/src/domain/helpers/calculationsVariableFunctions/index.d.ts +1 -1
- package/apps/core/src/domain/helpers/getCoreEntityById.d.ts +1 -1
- package/apps/core/src/domain/helpers/updateRecordLastModif.d.ts +1 -1
- package/apps/core/src/domain/helpers/updateTaskProgress.d.ts +1 -1
- package/apps/core/src/domain/helpers/validate.d.ts +1 -1
- package/apps/core/src/domain/import/importDomain.d.ts +1 -1
- package/apps/core/src/domain/indexationManager/indexationManagerDomain.d.ts +1 -1
- package/apps/core/src/domain/library/helpers/deleteAssociatedValues.d.ts +1 -1
- package/apps/core/src/domain/library/helpers/runPreDelete.d.ts +1 -1
- package/apps/core/src/domain/library/libraryDomain.d.ts +1 -1
- package/apps/core/src/domain/log/logDomain.d.ts +1 -1
- package/apps/core/src/domain/logsCollector/logsCollectorDomain.d.ts +1 -1
- package/apps/core/src/domain/notification/channels/emailChannel.d.ts +1 -1
- package/apps/core/src/domain/notification/channels/webSocketChannel.d.ts +1 -1
- package/apps/core/src/domain/notification/notificationDomain.d.ts +1 -1
- package/apps/core/src/domain/permission/_types.d.ts +8 -19
- package/apps/core/src/domain/permission/adminPermissionDomain.d.ts +1 -1
- package/apps/core/src/domain/permission/applicationPermissionDomain.d.ts +1 -1
- package/apps/core/src/domain/permission/helpers/defaultPermission.d.ts +6 -1
- package/apps/core/src/domain/permission/helpers/getPermissionCachePatternKey.d.ts +1 -1
- package/apps/core/src/domain/permission/helpers/globalPermission.d.ts +4 -10
- package/apps/core/src/domain/permission/helpers/permissionByUserGroups.d.ts +2 -1
- package/apps/core/src/domain/permission/helpers/recordInCreationBypass.d.ts +1 -1
- package/apps/core/src/domain/permission/helpers/simplePermission.d.ts +1 -1
- package/apps/core/src/domain/permission/libraryPermissionDomain.d.ts +1 -1
- package/apps/core/src/domain/permission/permissionDomain.d.ts +2 -2
- package/apps/core/src/domain/permission/treeLibraryPermissionDomain.d.ts +1 -1
- package/apps/core/src/domain/permission/treePermissionDomain.d.ts +1 -1
- package/apps/core/src/domain/record/_types.d.ts +1 -0
- package/apps/core/src/domain/record/helpers/createRecord.d.ts +1 -1
- package/apps/core/src/domain/record/helpers/deleteRecord.d.ts +1 -1
- package/apps/core/src/domain/record/helpers/getAccessPermissionFilters.d.ts +7 -1
- package/apps/core/src/domain/record/recordDomain.d.ts +3 -3
- package/apps/core/src/domain/tasksManager/tasksManagerDomain.d.ts +2 -2
- package/apps/core/src/domain/tree/helpers/elementAncestors.d.ts +1 -1
- package/apps/core/src/domain/tree/helpers/getDefaultElement.d.ts +1 -1
- package/apps/core/src/domain/tree/treeDomain.d.ts +1 -1
- package/apps/core/src/domain/user/userDomain.d.ts +1 -1
- package/apps/core/src/domain/value/helpers/formatLogValue.d.ts +1 -1
- package/apps/core/src/domain/value/valueDomain.d.ts +3 -3
- package/apps/core/src/domain/versionProfile/versionProfileDomain.d.ts +1 -1
- package/apps/core/src/domain/view/viewDomain.d.ts +1 -1
- package/apps/core/src/errors/LeavError.d.ts +1 -1
- package/apps/core/src/infra/apiKey/apiKeyRepo.d.ts +1 -1
- package/apps/core/src/infra/application/applicationRepo.d.ts +1 -1
- package/apps/core/src/infra/attribute/attributeRepo.d.ts +1 -1
- package/apps/core/src/infra/attributeTypes/attributeAdvancedLinkRepo.d.ts +1 -1
- package/apps/core/src/infra/attributeTypes/attributeAdvancedRepo.d.ts +1 -1
- package/apps/core/src/infra/attributeTypes/attributeSimpleLinkRepo.d.ts +1 -1
- package/apps/core/src/infra/attributeTypes/attributeSimpleRepo.d.ts +1 -1
- package/apps/core/src/infra/attributeTypes/attributeTreeRepo.d.ts +1 -1
- package/apps/core/src/infra/attributeTypes/attributeTypesRepo.d.ts +10 -10
- package/apps/core/src/infra/cache/cacheService.d.ts +1 -1
- package/apps/core/src/infra/db/dbUtils.d.ts +1 -1
- package/apps/core/src/infra/db/helpers/libraryUtils.d.ts +38 -0
- package/apps/core/src/infra/db/migrations/000-init/index.d.ts +1 -1
- package/apps/core/src/infra/db/migrations/000-init/systemLibraries.d.ts +1 -8
- package/apps/core/src/infra/db/migrations/002-previewsSettings.d.ts +1 -1
- package/apps/core/src/infra/db/migrations/003-filesMetadata.d.ts +1 -1
- package/apps/core/src/infra/db/migrations/007-updateHexColor.d.ts +1 -1
- package/apps/core/src/infra/db/migrations/013-threads/comments.d.ts +4 -0
- package/apps/core/src/infra/db/migrations/013-threads/constants.d.ts +10 -0
- package/apps/core/src/infra/db/migrations/013-threads/index.d.ts +11 -0
- package/apps/core/src/infra/db/migrations/013-threads/statuses.d.ts +5 -0
- package/apps/core/src/infra/db/migrations/013-threads/threads.d.ts +4 -0
- package/apps/core/src/infra/filesManager/filesManagerRepo.d.ts +1 -1
- package/apps/core/src/infra/form/formRepo.d.ts +1 -1
- package/apps/core/src/infra/indexation/indexationService.d.ts +1 -1
- package/apps/core/src/infra/library/libraryRepo.d.ts +2 -2
- package/apps/core/src/infra/mailer/mailerService.d.ts +1 -1
- package/apps/core/src/infra/oidc/oidcClientService.d.ts +1 -1
- package/apps/core/src/infra/permission/permissionRepo.d.ts +3 -3
- package/apps/core/src/infra/record/helpers/getClassifyingFiltersVariableQueryPart.d.ts +1 -1
- package/apps/core/src/infra/record/helpers/getSearchVariableName.d.ts +1 -1
- package/apps/core/src/infra/record/helpers/getSearchVariablesQueryPart.d.ts +1 -1
- package/apps/core/src/infra/record/recordRepo.d.ts +3 -3
- package/apps/core/src/infra/task/taskRepo.d.ts +1 -1
- package/apps/core/src/infra/tree/treeRepo.d.ts +1 -1
- package/apps/core/src/infra/value/valueRepo.d.ts +7 -7
- package/apps/core/src/infra/versionProfile/versionProfileRepo.d.ts +1 -1
- package/apps/core/src/infra/view/viewRepo.d.ts +1 -1
- package/apps/core/src/interface/helpers/handleGraphqlError.d.ts +1 -1
- package/apps/core/src/interface/plugins/apolloTracerPlugin.d.ts +5 -0
- package/apps/core/src/interface/server.d.ts +1 -1
- package/apps/core/src/interface/tasksManager.d.ts +1 -1
- package/apps/core/src/utils/helpers/getExcelData.d.ts +3 -0
- package/apps/core/src/utils/helpers/getFileDataBuffer.d.ts +2 -0
- package/libs/config-manager/src/envTo.d.ts +4 -0
- package/libs/logger/src/logger.d.ts +21 -2
- package/package.json +1 -1
- package/apps/core/src/__tests__/e2e/api/import/import.test-draft.d.ts +0 -0
- package/apps/core/src/errors/CustomConfigError.d.ts +0 -4
|
@@ -18,6 +18,7 @@ export declare namespace server {
|
|
|
18
18
|
let email_1: string;
|
|
19
19
|
export { email_1 as email };
|
|
20
20
|
}
|
|
21
|
+
let enableTracer: boolean;
|
|
21
22
|
}
|
|
22
23
|
export declare namespace db {
|
|
23
24
|
let url: string;
|
|
@@ -77,6 +78,12 @@ export declare namespace mailer {
|
|
|
77
78
|
}
|
|
78
79
|
export { auth_1 as auth };
|
|
79
80
|
}
|
|
81
|
+
export declare namespace actions {
|
|
82
|
+
namespace excel {
|
|
83
|
+
let useNewHyperformula: boolean;
|
|
84
|
+
let debug: boolean;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
80
87
|
export declare namespace bugsnag {
|
|
81
88
|
let enable_1: boolean;
|
|
82
89
|
export { enable_1 as enable };
|
|
@@ -93,7 +100,7 @@ export declare namespace matomo {
|
|
|
93
100
|
export let siteId: string;
|
|
94
101
|
}
|
|
95
102
|
export declare namespace lang {
|
|
96
|
-
export let available: string
|
|
103
|
+
export let available: string[];
|
|
97
104
|
let _default: string;
|
|
98
105
|
export { _default as default };
|
|
99
106
|
}
|
|
@@ -180,7 +187,7 @@ export declare namespace indexationManager {
|
|
|
180
187
|
}
|
|
181
188
|
export { queues_3 as queues };
|
|
182
189
|
}
|
|
183
|
-
|
|
190
|
+
declare let debug_1: boolean;
|
|
184
191
|
export declare let defaultUserId: string;
|
|
185
192
|
export declare namespace _export {
|
|
186
193
|
let directory_1: string;
|
|
@@ -235,5 +242,5 @@ export declare namespace elasticsearch {
|
|
|
235
242
|
export declare namespace logsCollector {
|
|
236
243
|
let queue: string;
|
|
237
244
|
}
|
|
238
|
-
export declare let pluginsPath: string
|
|
239
|
-
export { _export as export, _import as import };
|
|
245
|
+
export declare let pluginsPath: string[];
|
|
246
|
+
export { debug_1 as debug, _export as export, _import as import };
|
|
@@ -1,12 +1,27 @@
|
|
|
1
1
|
import WebSocket from 'ws';
|
|
2
2
|
import { type Client as GraphqlWsClient } from 'graphql-ws';
|
|
3
|
-
import type
|
|
3
|
+
import { type AxiosResponse } from 'axios';
|
|
4
|
+
import FormData from 'form-data';
|
|
4
5
|
import { type ActionsListConfig } from '_types/actionsList';
|
|
5
6
|
import { type ITreeElement } from '_types/tree';
|
|
6
7
|
import { AttributeFormats, type AttributeTypes, type IAttributeVersionsConf, type IEmbeddedAttribute } from '../../../_types/attribute';
|
|
8
|
+
interface IE2EUser {
|
|
9
|
+
getAuthToken: () => Promise<string>;
|
|
10
|
+
}
|
|
11
|
+
export declare const e2eAdminUser: () => IE2EUser;
|
|
12
|
+
export declare const e2eGuestUser: () => Promise<IE2EUser>;
|
|
7
13
|
export declare function getGraphQLUrl(): Promise<string>;
|
|
8
|
-
export declare
|
|
9
|
-
|
|
14
|
+
export declare class E2EGraphQLError extends Error {
|
|
15
|
+
readonly response: AxiosResponse;
|
|
16
|
+
constructor(message: string, response: AxiosResponse);
|
|
17
|
+
}
|
|
18
|
+
export interface IMakeGraphQlCallOptions {
|
|
19
|
+
user?: IE2EUser;
|
|
20
|
+
skipLogErrors?: boolean;
|
|
21
|
+
}
|
|
22
|
+
export declare function makeGraphQlCall(query: string | FormData, options?: IMakeGraphQlCallOptions): Promise<any>;
|
|
23
|
+
export declare function importFileGraphQlCall(query: string, filePath: string, sheets?: any): Promise<any>;
|
|
24
|
+
export declare function gqlSaveLibrary(id: string, label: string, additionalAttributes?: string[], settings?: string): Promise<any>;
|
|
10
25
|
export declare function gqlSaveApplication(id: string, label: string, endpoint: string): Promise<any>;
|
|
11
26
|
export declare function gqlSaveAttribute(params: {
|
|
12
27
|
id: string;
|
|
@@ -43,10 +58,13 @@ export declare function gqlSaveVersionProfile(profileId: string, label: string,
|
|
|
43
58
|
* Convert object to JSON, escaping quotes to be able to use it in a graphql query
|
|
44
59
|
**/
|
|
45
60
|
export declare function toCleanJSON(obj: {}): string;
|
|
46
|
-
export declare function makeWebSocketGraphQlCall(
|
|
61
|
+
export declare function makeWebSocketGraphQlCall(options?: {
|
|
62
|
+
user: IE2EUser;
|
|
63
|
+
}): Promise<GraphqlWsClient>;
|
|
47
64
|
export declare function waitGraphqlWebSocketMessage<T>(client: GraphqlWsClient, query: string, variables: Record<string, any>, acceptMessage: (msg: T) => boolean, { timeoutMs }: {
|
|
48
65
|
timeoutMs: any;
|
|
49
66
|
}): Promise<T>;
|
|
50
67
|
export declare function waitWebSocketMessage<T>(webSocket: WebSocket, acceptMessage: (msg: T) => boolean, { timeoutMs }: {
|
|
51
68
|
timeoutMs: any;
|
|
52
69
|
}): Promise<T>;
|
|
70
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type ILibraryRepo } from 'infra/library/libraryRepo';
|
|
2
2
|
import { type IRecordRepo } from 'infra/record/recordRepo';
|
|
3
3
|
import { type ITreeRepo } from 'infra/tree/treeRepo';
|
|
4
|
-
export declare const getCoreDep: <T>(path: any) => T;
|
|
5
4
|
export declare const getLibraryRepo: () => ILibraryRepo;
|
|
6
5
|
export declare const getRecordRepo: () => IRecordRepo;
|
|
7
6
|
export declare const getTreeRepo: () => ITreeRepo;
|
|
7
|
+
export * from '../integrationTestUtils';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type AwilixContainer } from 'awilix';
|
|
2
|
+
export interface IGlobalThis {
|
|
3
|
+
coreContainer: AwilixContainer;
|
|
4
|
+
taskManagerMasterTimer: NodeJS.Timeout;
|
|
5
|
+
}
|
|
6
|
+
export declare const getCoreContainer: () => AwilixContainer;
|
|
7
|
+
export declare const getCoreDep: <T>(path: any) => T;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export declare const
|
|
1
|
+
export declare const DISCUSSION_THREADS_ATTRIBUTE_ID = "discussion_threads";
|
|
2
|
+
export declare const BASE_ATTRIBUTES: string[];
|
|
@@ -25,6 +25,7 @@ export interface IConfig {
|
|
|
25
25
|
plugins: IKeyValue<IKeyValue<any>>;
|
|
26
26
|
preview: IPreview;
|
|
27
27
|
applications: IApplicationsConfig;
|
|
28
|
+
actions: IActions;
|
|
28
29
|
files: IFilesConfig;
|
|
29
30
|
dbProfiler: IDbProfilerConfig;
|
|
30
31
|
instanceId: string;
|
|
@@ -61,6 +62,20 @@ export interface IServer {
|
|
|
61
62
|
systemUser: {
|
|
62
63
|
email: string;
|
|
63
64
|
};
|
|
65
|
+
enableTracer: boolean;
|
|
66
|
+
}
|
|
67
|
+
export interface IActions {
|
|
68
|
+
excel: {
|
|
69
|
+
/**
|
|
70
|
+
* Replace deprecated hot-formula-parser npm module by new hyperformula npm module
|
|
71
|
+
* Formulas should be compatible
|
|
72
|
+
*/
|
|
73
|
+
useNewHyperformula: boolean;
|
|
74
|
+
/**
|
|
75
|
+
* Add debug log for each calculation with formula and result or error
|
|
76
|
+
*/
|
|
77
|
+
debug: boolean;
|
|
78
|
+
};
|
|
64
79
|
}
|
|
65
80
|
export interface IDb {
|
|
66
81
|
url: string;
|
|
@@ -17,7 +17,6 @@ export declare enum Errors {
|
|
|
17
17
|
ENCRYPT_ERROR = "ENCRYPT_ERROR",
|
|
18
18
|
ERROR = "ERROR",
|
|
19
19
|
EXCEL_CALCULATION_ERROR = "EXCEL_CALCULATION_ERROR",
|
|
20
|
-
FILE_ERROR = "FILE_ERROR",
|
|
21
20
|
FILE_NOT_FOUND = "FILE_NOT_FOUND",
|
|
22
21
|
FORBIDDEN_FILES = "FORBIDDEN_FILES",
|
|
23
22
|
FORBIDDEN_ID = "FORBIDDEN_ID",
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type INotificationContent } from './notification';
|
|
2
|
+
import { type ITask } from './tasksManager';
|
|
2
3
|
export declare enum TriggerNames {
|
|
3
4
|
APPLICATION_EVENT = "APPLICATION_EVENT",
|
|
4
5
|
UPLOAD_FILE = "UPLOAD_FILE",
|
|
@@ -14,3 +15,6 @@ export interface IPubSubNotificationData {
|
|
|
14
15
|
};
|
|
15
16
|
recipientUserIds: string[];
|
|
16
17
|
}
|
|
18
|
+
export interface IPubSubTaskData {
|
|
19
|
+
task: ITask;
|
|
20
|
+
}
|
|
@@ -28,4 +28,4 @@ export interface IApplicationAppDeps {
|
|
|
28
28
|
'core.utils': IUtils;
|
|
29
29
|
config: IConfig;
|
|
30
30
|
}
|
|
31
|
-
export default function ({ 'core.app.graphql': graphqlApp, 'core.app.auth': authApp, 'core.app.helpers.initQueryContext': initQueryContext, 'core.app.helpers.validateRequestToken': validateRequestToken, 'core.app.core.subscriptionsHelper': subscriptionsHelper, 'core.domain.application': applicationDomain, 'core.domain.permission': permissionDomain, 'core.domain.record': recordDomain, 'core.domain.eventsManager': eventsManagerDomain, 'core.domain.globalSettings': globalSettings, 'core.utils.logger': logger, 'core.utils': utils, config }: IApplicationAppDeps): IApplicationApp;
|
|
31
|
+
export default function ({ 'core.app.graphql': graphqlApp, 'core.app.auth': authApp, 'core.app.helpers.initQueryContext': initQueryContext, 'core.app.helpers.validateRequestToken': validateRequestToken, 'core.app.core.subscriptionsHelper': subscriptionsHelper, 'core.domain.application': applicationDomain, 'core.domain.permission': permissionDomain, 'core.domain.record': recordDomain, 'core.domain.eventsManager': eventsManagerDomain, 'core.domain.globalSettings': globalSettings, 'core.utils.logger': logger, 'core.utils': utils, config, }: IApplicationAppDeps): IApplicationApp;
|
|
@@ -38,4 +38,4 @@ export interface IAuthAppDeps {
|
|
|
38
38
|
config: IConfig;
|
|
39
39
|
'core.infra.session': ISessionRepo;
|
|
40
40
|
}
|
|
41
|
-
export default function ({ 'core.domain.value': valueDomain, 'core.domain.record': recordDomain, 'core.infra.record': recordRepo, 'core.domain.apiKey': apiKeyDomain, 'core.domain.user': userDomain, 'core.utils.logger': logger, 'core.infra.oidc.oidcClientService': oidcClientService, 'core.app.helpers.initQueryContext': initQueryContext, 'core.app.helpers.convertOIDCIdentifier': convertOIDCIdentifier, 'core.utils.getSystemQueryContext': getSystemQueryContext, 'core.infra.session': sessionRepo, config }: IAuthAppDeps): IAuthApp;
|
|
41
|
+
export default function ({ 'core.domain.value': valueDomain, 'core.domain.record': recordDomain, 'core.infra.record': recordRepo, 'core.domain.apiKey': apiKeyDomain, 'core.domain.user': userDomain, 'core.utils.logger': logger, 'core.infra.oidc.oidcClientService': oidcClientService, 'core.app.helpers.initQueryContext': initQueryContext, 'core.app.helpers.convertOIDCIdentifier': convertOIDCIdentifier, 'core.utils.getSystemQueryContext': getSystemQueryContext, 'core.infra.session': sessionRepo, config, }: IAuthAppDeps): IAuthApp;
|
|
@@ -6,5 +6,5 @@ interface IDeps {
|
|
|
6
6
|
'core.domain.apiKey': IApiKeyDomain;
|
|
7
7
|
'core.domain.record': IRecordDomain;
|
|
8
8
|
}
|
|
9
|
-
export default function ({ 'core.domain.apiKey': apiKeyDomain, 'core.domain.record': recordDomain }: IDeps): ICoreVersionProfileApp;
|
|
9
|
+
export default function ({ 'core.domain.apiKey': apiKeyDomain, 'core.domain.record': recordDomain, }: IDeps): ICoreVersionProfileApp;
|
|
10
10
|
export {};
|
|
@@ -19,4 +19,4 @@ export interface ICoreAppDeps {
|
|
|
19
19
|
config: any;
|
|
20
20
|
translator: i18n;
|
|
21
21
|
}
|
|
22
|
-
export default function ({ 'core.domain.core': coreDomain, 'core.domain.eventsManager': eventsManagerDomain, 'core.app.graphql.customScalars.systemTranslation': systemTranslation, 'core.app.graphql.customScalars.dateTime': DateTime, 'core.app.graphql.customScalars.any': Any, config, translator }: ICoreAppDeps): ICoreApp;
|
|
22
|
+
export default function ({ 'core.domain.core': coreDomain, 'core.domain.eventsManager': eventsManagerDomain, 'core.app.graphql.customScalars.systemTranslation': systemTranslation, 'core.app.graphql.customScalars.dateTime': DateTime, 'core.app.graphql.customScalars.any': Any, config, translator, }: ICoreAppDeps): ICoreApp;
|
|
@@ -8,5 +8,5 @@ interface IDeps {
|
|
|
8
8
|
'core.app.helpers.initQueryContext': InitQueryContextFunc;
|
|
9
9
|
config: IConfig;
|
|
10
10
|
}
|
|
11
|
-
export default function ({ 'core.app.helpers.initQueryContext': initQueryContext, 'core.domain.eventsManager': eventsManagerDomain, config }: IDeps): IEventsManagerApp;
|
|
11
|
+
export default function ({ 'core.app.helpers.initQueryContext': initQueryContext, 'core.domain.eventsManager': eventsManagerDomain, config, }: IDeps): IEventsManagerApp;
|
|
12
12
|
export {};
|
|
@@ -15,5 +15,5 @@ interface IDeps {
|
|
|
15
15
|
'core.domain.eventsManager': IEventsManagerDomain;
|
|
16
16
|
config: IConfig;
|
|
17
17
|
}
|
|
18
|
-
export default function ({ 'core.app.helpers.initQueryContext': initQueryContext, 'core.app.helpers.validateRequestToken': validateRequestToken, 'core.domain.filesManager': filesManagerDomain, 'core.domain.eventsManager': eventsManager, config }: IDeps): IFilesManagerApp;
|
|
18
|
+
export default function ({ 'core.app.helpers.initQueryContext': initQueryContext, 'core.app.helpers.validateRequestToken': validateRequestToken, 'core.domain.filesManager': filesManagerDomain, 'core.domain.eventsManager': eventsManager, config, }: IDeps): IFilesManagerApp;
|
|
19
19
|
export {};
|
|
@@ -15,7 +15,7 @@ interface IDeps {
|
|
|
15
15
|
'core.domain.attribute.helpers.ifLibraryJoinLinkAttribute': IfLibraryJoinLinkAttribute;
|
|
16
16
|
'core.utils': IUtils;
|
|
17
17
|
}
|
|
18
|
-
export default function ({ 'core.domain.attribute': attributeDomain, 'core.domain.form': formDomain, 'core.domain.library': libraryDomain, 'core.app.helpers.convertVersionFromGqlFormat': convertVersionFromGqlFormat, 'core.domain.attribute.helpers.ifLibraryJoinLinkAttribute': ifLibraryJoinLinkAttribute, 'core.utils': utils }: IDeps): {
|
|
18
|
+
export default function ({ 'core.domain.attribute': attributeDomain, 'core.domain.form': formDomain, 'core.domain.library': libraryDomain, 'core.app.helpers.convertVersionFromGqlFormat': convertVersionFromGqlFormat, 'core.domain.attribute.helpers.ifLibraryJoinLinkAttribute': ifLibraryJoinLinkAttribute, 'core.utils': utils, }: IDeps): {
|
|
19
19
|
getGraphQLSchema(): Promise<IAppGraphQLSchema>;
|
|
20
20
|
};
|
|
21
21
|
export {};
|
|
@@ -16,5 +16,5 @@ interface IDeps {
|
|
|
16
16
|
'core.utils': IUtils;
|
|
17
17
|
config: IConfig;
|
|
18
18
|
}
|
|
19
|
-
export default function ({ 'core.app.helpers.initQueryContext': initQueryContext, 'core.domain.globalSettings': globalSettingsDomain, 'core.domain.record': recordDomain, 'core.utils.logger': logger, 'core.utils': utils, config }: IDeps): ICoreApp;
|
|
19
|
+
export default function ({ 'core.app.helpers.initQueryContext': initQueryContext, 'core.domain.globalSettings': globalSettingsDomain, 'core.domain.record': recordDomain, 'core.utils.logger': logger, 'core.utils': utils, config, }: IDeps): ICoreApp;
|
|
20
20
|
export {};
|
|
@@ -15,5 +15,5 @@ interface IDeps {
|
|
|
15
15
|
config: Config.IConfig;
|
|
16
16
|
'core.utils.getSystemQueryContext': GetSystemQueryContext;
|
|
17
17
|
}
|
|
18
|
-
export default function ({ 'core.domain.import': importDomain, 'core.domain.helpers.storeUploadFile': storeUploadFile, 'core.utils': utils, 'core.utils.getSystemQueryContext': getSystemQueryContext, config }: IDeps): ICoreImportApp;
|
|
18
|
+
export default function ({ 'core.domain.import': importDomain, 'core.domain.helpers.storeUploadFile': storeUploadFile, 'core.utils': utils, 'core.utils.getSystemQueryContext': getSystemQueryContext, config, }: IDeps): ICoreImportApp;
|
|
19
19
|
export {};
|
|
@@ -17,5 +17,5 @@ interface IDeps {
|
|
|
17
17
|
'core.app.graphql'?: IGraphqlApp;
|
|
18
18
|
'core.app.core'?: ICoreApp;
|
|
19
19
|
}
|
|
20
|
-
export default function ({ 'core.domain.library': libraryDomain, 'core.domain.record': recordDomain, 'core.domain.attribute': attributeDomain, 'core.domain.tree': treeDomain, 'core.domain.view': viewDomain, 'core.domain.permission': permissionDomain, 'core.app.graphql': graphqlApp, 'core.app.core': coreApp }?: IDeps): ICoreLibraryApp;
|
|
20
|
+
export default function ({ 'core.domain.library': libraryDomain, 'core.domain.record': recordDomain, 'core.domain.attribute': attributeDomain, 'core.domain.tree': treeDomain, 'core.domain.view': viewDomain, 'core.domain.permission': permissionDomain, 'core.app.graphql': graphqlApp, 'core.app.core': coreApp, }?: IDeps): ICoreLibraryApp;
|
|
21
21
|
export {};
|
|
@@ -19,5 +19,5 @@ interface IDeps {
|
|
|
19
19
|
'core.domain.versionProfile': IVersionProfileDomain;
|
|
20
20
|
'core.domain.application': IApplicationDomain;
|
|
21
21
|
}
|
|
22
|
-
export default function ({ 'core.domain.log': logDomain, 'core.domain.eventsManager': eventsManagerDomain, 'core.domain.library': libraryDomain, 'core.domain.attribute': attributeDomain, 'core.domain.tree': treeDomain, 'core.domain.value.helpers.formatLogValue': formatLogValue, 'core.domain.versionProfile': versionProfileDomain, 'core.domain.application': applicationDomain }: IDeps): ICoreLogApp;
|
|
22
|
+
export default function ({ 'core.domain.log': logDomain, 'core.domain.eventsManager': eventsManagerDomain, 'core.domain.library': libraryDomain, 'core.domain.attribute': attributeDomain, 'core.domain.tree': treeDomain, 'core.domain.value.helpers.formatLogValue': formatLogValue, 'core.domain.versionProfile': versionProfileDomain, 'core.domain.application': applicationDomain, }: IDeps): ICoreLogApp;
|
|
23
23
|
export {};
|
|
@@ -13,5 +13,5 @@ interface IDeps {
|
|
|
13
13
|
'core.domain.permission'?: IPermissionDomain;
|
|
14
14
|
'core.domain.attribute'?: IAttributeDomain;
|
|
15
15
|
}
|
|
16
|
-
export default function ({ 'core.domain.permission': permissionDomain, 'core.domain.attribute': attributeDomain }?: IDeps): ICorePermissionApp;
|
|
16
|
+
export default function ({ 'core.domain.permission': permissionDomain, 'core.domain.attribute': attributeDomain, }?: IDeps): ICorePermissionApp;
|
|
17
17
|
export {};
|
|
@@ -23,5 +23,5 @@ interface IDeps {
|
|
|
23
23
|
'core.app.helpers.convertVersionFromGqlFormat': ConvertVersionFromGqlFormatFunc;
|
|
24
24
|
'core.app.core.subscriptionsHelper': ICoreSubscriptionsHelpersApp;
|
|
25
25
|
}
|
|
26
|
-
export default function ({ 'core.domain.record': recordDomain, 'core.domain.tree': treeDomain, 'core.domain.eventsManager': eventsManagerDomain, 'core.domain.permission': permissionDomain, 'core.domain.library': libraryDomain, 'core.domain.attribute': attributeDomain, 'core.utils': utils, 'core.app.graphql': graphqlApp, 'core.app.core.indexationManager': indexationManagerApp, 'core.app.helpers.convertVersionFromGqlFormat': convertVersionFromGqlFormat, 'core.app.core.subscriptionsHelper': subscriptionsHelper }: IDeps): ICoreRecordApp;
|
|
26
|
+
export default function ({ 'core.domain.record': recordDomain, 'core.domain.tree': treeDomain, 'core.domain.eventsManager': eventsManagerDomain, 'core.domain.permission': permissionDomain, 'core.domain.library': libraryDomain, 'core.domain.attribute': attributeDomain, 'core.utils': utils, 'core.app.graphql': graphqlApp, 'core.app.core.indexationManager': indexationManagerApp, 'core.app.helpers.convertVersionFromGqlFormat': convertVersionFromGqlFormat, 'core.app.core.subscriptionsHelper': subscriptionsHelper, }: IDeps): ICoreRecordApp;
|
|
27
27
|
export {};
|
|
@@ -8,7 +8,7 @@ import { type ITasksManagerDomain } from '../../domain/tasksManager/tasksManager
|
|
|
8
8
|
import { TaskStatus } from '../../_types/tasksManager';
|
|
9
9
|
import { type IGraphqlAppModule } from 'app/graphql/graphqlApp';
|
|
10
10
|
export interface ITasksManagerApp extends IGraphqlAppModule {
|
|
11
|
-
initMaster(): Promise<NodeJS.
|
|
11
|
+
initMaster(): Promise<NodeJS.Timeout>;
|
|
12
12
|
initWorker(): Promise<void>;
|
|
13
13
|
}
|
|
14
14
|
interface IDeps {
|
|
@@ -28,5 +28,5 @@ export interface IGetTasksArgs {
|
|
|
28
28
|
pagination?: IPaginationParams;
|
|
29
29
|
sort?: ISortParams;
|
|
30
30
|
}
|
|
31
|
-
export default function ({ 'core.domain.record': recordDomain, 'core.domain.tasksManager': tasksManagerDomain, 'core.domain.eventsManager': eventsManager }: IDeps): ITasksManagerApp;
|
|
31
|
+
export default function ({ 'core.domain.record': recordDomain, 'core.domain.tasksManager': tasksManagerDomain, 'core.domain.eventsManager': eventsManager, }: IDeps): ITasksManagerApp;
|
|
32
32
|
export {};
|
|
@@ -19,5 +19,5 @@ interface IDeps {
|
|
|
19
19
|
'core.domain.library': ILibraryDomain;
|
|
20
20
|
'core.domain.permission.record': IRecordPermissionDomain;
|
|
21
21
|
}
|
|
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;
|
|
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;
|
|
23
23
|
export {};
|
|
@@ -12,5 +12,5 @@ interface IDeps {
|
|
|
12
12
|
'core.app.helpers.convertVersionFromGqlFormat': ConvertVersionFromGqlFormatFunc;
|
|
13
13
|
'core.utils': IUtils;
|
|
14
14
|
}
|
|
15
|
-
export default function ({ 'core.domain.value': valueDomain, 'core.domain.record': recordDomain, 'core.domain.attribute': attributeDomain, 'core.app.helpers.convertVersionFromGqlFormat': convertVersionFromGqlFormat, 'core.utils': utils }: IDeps): ICoreValueApp;
|
|
15
|
+
export default function ({ 'core.domain.value': valueDomain, 'core.domain.record': recordDomain, 'core.domain.attribute': attributeDomain, 'core.app.helpers.convertVersionFromGqlFormat': convertVersionFromGqlFormat, 'core.utils': utils, }: IDeps): ICoreValueApp;
|
|
16
16
|
export {};
|
|
@@ -6,5 +6,5 @@ interface IDeps {
|
|
|
6
6
|
'core.domain.versionProfile'?: IVersionProfileDomain;
|
|
7
7
|
'core.domain.tree'?: ITreeDomain;
|
|
8
8
|
}
|
|
9
|
-
export default function ({ 'core.domain.versionProfile': versionProfileDomain, 'core.domain.tree': treeDomain }: IDeps): ICoreVersionProfileApp;
|
|
9
|
+
export default function ({ 'core.domain.versionProfile': versionProfileDomain, 'core.domain.tree': treeDomain, }: IDeps): ICoreVersionProfileApp;
|
|
10
10
|
export {};
|
|
@@ -10,5 +10,5 @@ interface IDeps {
|
|
|
10
10
|
'core.utils': IUtils;
|
|
11
11
|
}
|
|
12
12
|
export type IViewApp = IGraphqlAppModule;
|
|
13
|
-
export default function ({ 'core.domain.view': viewDomain, 'core.domain.record': recordDomain, 'core.domain.attribute': attributeDomain, 'core.utils': utils }: IDeps): IViewApp;
|
|
13
|
+
export default function ({ 'core.domain.view': viewDomain, 'core.domain.record': recordDomain, 'core.domain.attribute': attributeDomain, 'core.utils': utils, }: IDeps): IViewApp;
|
|
14
14
|
export {};
|
|
@@ -23,5 +23,5 @@ interface IDeps {
|
|
|
23
23
|
'core.domain.value'?: IValueDomain;
|
|
24
24
|
config?: IConfig;
|
|
25
25
|
}
|
|
26
|
-
export default function ({ 'core.app.helpers.initQueryContext': initQueryContext, 'core.app.helpers.validateRequestToken': validateRequestToken, 'core.domain.value': valueDomain, config }?: IDeps): IEndpointApp;
|
|
26
|
+
export default function ({ 'core.app.helpers.initQueryContext': initQueryContext, 'core.app.helpers.validateRequestToken': validateRequestToken, 'core.domain.value': valueDomain, config, }?: IDeps): IEndpointApp;
|
|
27
27
|
export {};
|
|
@@ -19,5 +19,5 @@ interface IDeps {
|
|
|
19
19
|
'core.depsManager'?: AwilixContainer;
|
|
20
20
|
'core.utils'?: IUtils;
|
|
21
21
|
}
|
|
22
|
-
export default function ({ 'core.depsManager': depsManager, 'core.utils': utils }?: IDeps): IGraphqlApp;
|
|
22
|
+
export default function ({ 'core.depsManager': depsManager, 'core.utils': utils, }?: IDeps): IGraphqlApp;
|
|
23
23
|
export {};
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
+
import { type ILogger } from '@leav/logger';
|
|
1
2
|
import { type ICalculationVariable } from 'domain/helpers/calculationVariable';
|
|
2
|
-
import { type IUtils } from 'utils/utils';
|
|
3
3
|
import { type IActionsListFunction } from '../../_types/actionsList';
|
|
4
|
+
import { type IConfig } from '_types/config';
|
|
4
5
|
interface IDeps {
|
|
5
|
-
'core.domain.helpers.calculationVariable'
|
|
6
|
-
|
|
6
|
+
'core.domain.helpers.calculationVariable': ICalculationVariable;
|
|
7
|
+
config: IConfig;
|
|
8
|
+
'core.utils.logger': ILogger;
|
|
7
9
|
}
|
|
8
|
-
export default function ({ 'core.domain.helpers.calculationVariable': calculationVariable }
|
|
10
|
+
export default function ({ 'core.domain.helpers.calculationVariable': calculationVariable, 'core.utils.logger': logger, config, }: IDeps): IActionsListFunction<{
|
|
9
11
|
Formula: true;
|
|
10
12
|
Description: true;
|
|
11
13
|
}>;
|
|
@@ -16,3 +16,4 @@ export { default as validateFormatAction } from './validateFormatAction';
|
|
|
16
16
|
export { default as validateRegexAction } from './validateRegexAction';
|
|
17
17
|
export { default as validateURLAction } from './validateURLAction';
|
|
18
18
|
export { default as toUppercaseAction } from './toUppercaseAction';
|
|
19
|
+
export { default as toLowercaseAction } from './toLowercaseAction';
|
|
@@ -5,7 +5,7 @@ interface IDeps {
|
|
|
5
5
|
'core.domain.helpers.calculationVariable'?: ICalculationVariable;
|
|
6
6
|
'core.domain.attribute'?: IAttributeDomain;
|
|
7
7
|
}
|
|
8
|
-
export default function ({ 'core.domain.helpers.calculationVariable': calculationVariable, 'core.domain.attribute': attributeDomain }?: IDeps): IActionsListFunction<{
|
|
8
|
+
export default function ({ 'core.domain.helpers.calculationVariable': calculationVariable, 'core.domain.attribute': attributeDomain, }?: IDeps): IActionsListFunction<{
|
|
9
9
|
Formula: true;
|
|
10
10
|
Description: true;
|
|
11
11
|
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -38,4 +38,4 @@ export interface IApiKeyDomainDeps {
|
|
|
38
38
|
translator: i18n;
|
|
39
39
|
config: IConfig;
|
|
40
40
|
}
|
|
41
|
-
export default function ({ 'core.domain.permission.admin': adminPermissionDomain, 'core.domain.eventsManager': eventsManagerDomain, 'core.infra.apiKey': apiKeyRepo, 'core.utils': utils, config }: IApiKeyDomainDeps): IApiKeyDomain;
|
|
41
|
+
export default function ({ 'core.domain.permission.admin': adminPermissionDomain, 'core.domain.eventsManager': eventsManagerDomain, 'core.infra.apiKey': apiKeyRepo, 'core.utils': utils, config, }: IApiKeyDomainDeps): IApiKeyDomain;
|
|
@@ -54,4 +54,4 @@ export interface IApplicationDomainDeps {
|
|
|
54
54
|
translator: i18n;
|
|
55
55
|
config: IConfig;
|
|
56
56
|
}
|
|
57
|
-
export default function ({ 'core.domain.permission.admin': adminPermissionDomain, 'core.domain.user': userDomain, 'core.domain.eventsManager': eventsManagerDomain, 'core.infra.application': applicationRepo, 'core.utils': utils, translator, config }: IApplicationDomainDeps): IApplicationDomain;
|
|
57
|
+
export default function ({ 'core.domain.permission.admin': adminPermissionDomain, 'core.domain.user': userDomain, 'core.domain.eventsManager': eventsManagerDomain, 'core.infra.application': applicationRepo, 'core.utils': utils, translator, config, }: IApplicationDomainDeps): IApplicationDomain;
|
|
@@ -74,4 +74,4 @@ export interface IAttributeDomainDeps {
|
|
|
74
74
|
'core.utils': IUtils;
|
|
75
75
|
config: any;
|
|
76
76
|
}
|
|
77
|
-
export default function ({ 'core.infra.attribute': attributeRepo, 'core.domain.actionsList': actionsListDomain, 'core.domain.permission.admin': adminPermissionDomain, 'core.domain.helpers.getCoreEntityById': getCoreEntityById, 'core.domain.versionProfile': versionProfileDomain, 'core.domain.eventsManager': eventsManagerDomain, 'core.infra.form': formRepo, 'core.infra.library': libraryRepo, 'core.infra.tree': treeRepo, 'core.infra.cache.cacheService': cacheService, 'core.utils': utils, config }: IAttributeDomainDeps): IAttributeDomain;
|
|
77
|
+
export default function ({ 'core.infra.attribute': attributeRepo, 'core.domain.actionsList': actionsListDomain, 'core.domain.permission.admin': adminPermissionDomain, 'core.domain.helpers.getCoreEntityById': getCoreEntityById, 'core.domain.versionProfile': versionProfileDomain, 'core.domain.eventsManager': eventsManagerDomain, 'core.infra.form': formRepo, 'core.infra.library': libraryRepo, 'core.infra.tree': treeRepo, 'core.infra.cache.cacheService': cacheService, 'core.utils': utils, config, }: IAttributeDomainDeps): IAttributeDomain;
|
|
@@ -8,4 +8,4 @@ export interface IIfLibraryJoinLinkDeps {
|
|
|
8
8
|
'core.domain.helpers.getCoreEntityById': GetCoreEntityByIdFunc;
|
|
9
9
|
'core.domain.attribute': IAttributeDomain;
|
|
10
10
|
}
|
|
11
|
-
export default function ({ 'core.domain.helpers.getCoreEntityById': getCoreEntityById, 'core.domain.attribute': attributeDomain }: IIfLibraryJoinLinkDeps): IfLibraryJoinLinkAttribute;
|
|
11
|
+
export default function ({ 'core.domain.helpers.getCoreEntityById': getCoreEntityById, 'core.domain.attribute': attributeDomain, }: IIfLibraryJoinLinkDeps): IfLibraryJoinLinkAttribute;
|
|
@@ -21,4 +21,4 @@ export interface IEventsManagerDomainDeps {
|
|
|
21
21
|
'core.utils.logger': ILogger;
|
|
22
22
|
'core.utils': IUtils;
|
|
23
23
|
}
|
|
24
|
-
export default function ({ config, 'core.infra.amqpService': amqpService, 'core.utils.logger': logger, 'core.utils': utils }: IEventsManagerDomainDeps): IEventsManagerDomain;
|
|
24
|
+
export default function ({ config, 'core.infra.amqpService': amqpService, 'core.utils.logger': logger, 'core.utils': utils, }: IEventsManagerDomainDeps): IEventsManagerDomain;
|
|
@@ -16,7 +16,6 @@ import { type IExportProfileDomain } from './exportProfileDomain';
|
|
|
16
16
|
export interface IExportParams {
|
|
17
17
|
library: string;
|
|
18
18
|
profile: string;
|
|
19
|
-
attributes: string[];
|
|
20
19
|
filters?: IRecordFilterLight[];
|
|
21
20
|
ctx: IQueryInfos;
|
|
22
21
|
}
|
|
@@ -48,4 +47,4 @@ export interface IExportDomainDeps {
|
|
|
48
47
|
translator: i18n;
|
|
49
48
|
config: Config.IConfig;
|
|
50
49
|
}
|
|
51
|
-
export default function ({ config, 'core.domain.record': recordDomain, 'core.domain.helpers.validate': validateHelper, 'core.domain.attribute': attributeDomain, 'core.domain.library': libraryDomain, 'core.domain.tasksManager': tasksManager, 'core.domain.helpers.updateTaskProgress': updateTaskProgress, 'core.domain.eventsManager': eventsManagerDomain, 'core.domain.notification': notificationDomain, 'core.domain.export.exportProfile': exportProfileDomain, 'core.utils': utils, translator }: IExportDomainDeps): IExportDomain;
|
|
50
|
+
export default function ({ config, 'core.domain.record': recordDomain, 'core.domain.helpers.validate': validateHelper, 'core.domain.attribute': attributeDomain, 'core.domain.library': libraryDomain, 'core.domain.tasksManager': tasksManager, 'core.domain.helpers.updateTaskProgress': updateTaskProgress, 'core.domain.eventsManager': eventsManagerDomain, 'core.domain.notification': notificationDomain, 'core.domain.export.exportProfile': exportProfileDomain, 'core.utils': utils, translator, }: IExportDomainDeps): IExportDomain;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type ILibraryDomain } from '../library/libraryDomain';
|
|
2
2
|
import { type IQueryInfos } from '../../_types/queryInfos';
|
|
3
3
|
export interface IExportProfileConfig {
|
|
4
|
-
|
|
4
|
+
defaultProfile: string;
|
|
5
5
|
profiles: Array<{
|
|
6
6
|
label: string;
|
|
7
7
|
columns: Array<{
|
|
@@ -15,7 +15,7 @@ export interface IExportColumn {
|
|
|
15
15
|
attribute: string;
|
|
16
16
|
}
|
|
17
17
|
export interface IExportProfileDomain {
|
|
18
|
-
getColumnsFromProfileConfig(profile: string, library: string, ctx: IQueryInfos): Promise<IExportColumn[]>;
|
|
18
|
+
getColumnsFromProfileConfig(profile: string | undefined, library: string, ctx: IQueryInfos): Promise<IExportColumn[]>;
|
|
19
19
|
}
|
|
20
20
|
export interface IExportProfileDomainDeps {
|
|
21
21
|
'core.domain.library': ILibraryDomain;
|
|
@@ -86,5 +86,5 @@ export interface IFilesManagerDomainDeps {
|
|
|
86
86
|
'core.utils.getSystemQueryContext': GetSystemQueryContext;
|
|
87
87
|
translator: i18n;
|
|
88
88
|
}
|
|
89
|
-
export default function ({ config, 'core.utils': utils, 'core.infra.amqpService': amqpService, 'core.utils.logger': logger, 'core.domain.record': recordDomain, 'core.domain.value': valueDomain, 'core.domain.tree': treeDomain, 'core.domain.permission.library': libraryPermissionDomain, 'core.domain.filesManager.helpers.messagesHandler': messagesHandler, 'core.domain.helpers.storeUploadFile': storeUploadFile, 'core.domain.helpers.createDirectory': createDirectory, 'core.domain.library': libraryDomain, 'core.domain.helpers.updateRecordLastModif': updateRecordLastModif, 'core.domain.record.helpers.sendRecordUpdateEvent': sendRecordUpdateEvent, 'core.domain.eventsManager': eventsManager, 'core.infra.record': recordRepo, 'core.utils.getSystemQueryContext': getSystemQueryContext, translator }: IFilesManagerDomainDeps): IFilesManagerDomain;
|
|
89
|
+
export default function ({ config, 'core.utils': utils, 'core.infra.amqpService': amqpService, 'core.utils.logger': logger, 'core.domain.record': recordDomain, 'core.domain.value': valueDomain, 'core.domain.tree': treeDomain, 'core.domain.permission.library': libraryPermissionDomain, 'core.domain.filesManager.helpers.messagesHandler': messagesHandler, 'core.domain.helpers.storeUploadFile': storeUploadFile, 'core.domain.helpers.createDirectory': createDirectory, 'core.domain.library': libraryDomain, 'core.domain.helpers.updateRecordLastModif': updateRecordLastModif, 'core.domain.record.helpers.sendRecordUpdateEvent': sendRecordUpdateEvent, 'core.domain.eventsManager': eventsManager, 'core.infra.record': recordRepo, 'core.utils.getSystemQueryContext': getSystemQueryContext, translator, }: IFilesManagerDomainDeps): IFilesManagerDomain;
|
|
90
90
|
export {};
|
|
@@ -8,7 +8,7 @@ export declare const sendPreviewMessage: (previewMessage: IPreviewMessage, prior
|
|
|
8
8
|
config: Config.IConfig;
|
|
9
9
|
}) => Promise<void>;
|
|
10
10
|
export declare const generatePreviewMsg: (recordId: string, pathAfter: string, versions: IPreviewVersion[], context: any) => IPreviewMessage;
|
|
11
|
-
export declare const requestPreviewGeneration: ({ recordId, pathAfter, libraryId, versions, priority, deps }: {
|
|
11
|
+
export declare const requestPreviewGeneration: ({ recordId, pathAfter, libraryId, versions, priority, deps, }: {
|
|
12
12
|
recordId: string;
|
|
13
13
|
pathAfter: string;
|
|
14
14
|
libraryId: string;
|
|
@@ -11,4 +11,4 @@ export interface IMessagesHandlerDeps {
|
|
|
11
11
|
'core.domain.filesManager.helpers.handleFileSystemEvent': HandleFileSystemEventFunc;
|
|
12
12
|
config: IConfig;
|
|
13
13
|
}
|
|
14
|
-
export default function ({ 'core.utils.logger': logger, 'core.domain.filesManager.helpers.handleFileSystemEvent': handleFileSystemEvent, config }: IMessagesHandlerDeps): IMessagesHandlerHelper;
|
|
14
|
+
export default function ({ 'core.utils.logger': logger, 'core.domain.filesManager.helpers.handleFileSystemEvent': handleFileSystemEvent, config, }: IMessagesHandlerDeps): IMessagesHandlerHelper;
|
|
@@ -16,7 +16,7 @@ import { type IValueVersion } from '_types/value';
|
|
|
16
16
|
import { type IForm, type IRecordForm } from '../../_types/forms';
|
|
17
17
|
import { type IList } from '../../_types/list';
|
|
18
18
|
export interface IFormDomain {
|
|
19
|
-
getFormsByLib({ library, params, ctx }: {
|
|
19
|
+
getFormsByLib({ library, params, ctx, }: {
|
|
20
20
|
library: string;
|
|
21
21
|
params?: IGetCoreEntitiesParams;
|
|
22
22
|
ctx: IQueryInfos;
|
|
@@ -5,7 +5,7 @@ import { type IQueryInfos } from '_types/queryInfos';
|
|
|
5
5
|
/**
|
|
6
6
|
* Check if element must be included in form based on dependencies
|
|
7
7
|
*/
|
|
8
|
-
export declare const mustIncludeElement: (element: IFormDependentElements, recordId: string, libraryId: string, { "core.domain.record": recordDomain, "core.domain.tree": treeDomain }: {
|
|
8
|
+
export declare const mustIncludeElement: (element: IFormDependentElements, recordId: string, libraryId: string, { "core.domain.record": recordDomain, "core.domain.tree": treeDomain, }: {
|
|
9
9
|
"core.domain.record"?: IRecordDomain;
|
|
10
10
|
"core.domain.tree"?: ITreeDomain;
|
|
11
11
|
}, ctx: IQueryInfos) => Promise<boolean>;
|
|
@@ -19,4 +19,4 @@ export interface IGlobalSettingsDomainDeps {
|
|
|
19
19
|
'core.infra.cache.cacheService': ICachesService;
|
|
20
20
|
'core.utils': IUtils;
|
|
21
21
|
}
|
|
22
|
-
export default function ({ 'core.domain.permission.admin': adminPermissionDomain, 'core.domain.eventsManager': eventsManagerDomain, 'core.infra.globalSettings': globalSettingsRepo, 'core.infra.cache.cacheService': cacheService, 'core.utils': utils }: IGlobalSettingsDomainDeps): IGlobalSettingsDomain;
|
|
22
|
+
export default function ({ 'core.domain.permission.admin': adminPermissionDomain, 'core.domain.eventsManager': eventsManagerDomain, 'core.infra.globalSettings': globalSettingsRepo, 'core.infra.cache.cacheService': cacheService, 'core.utils': utils, }: IGlobalSettingsDomainDeps): IGlobalSettingsDomain;
|
|
@@ -13,5 +13,5 @@ interface IVariableFunction {
|
|
|
13
13
|
export interface IVariableFunctions {
|
|
14
14
|
[key: string]: IVariableFunction;
|
|
15
15
|
}
|
|
16
|
-
export default function ({ 'core.domain.record': recordDomain, 'core.domain.attribute': attributeDomain }: IDeps): IVariableFunctions;
|
|
16
|
+
export default function ({ 'core.domain.record': recordDomain, 'core.domain.attribute': attributeDomain, }: IDeps): IVariableFunctions;
|
|
17
17
|
export {};
|
|
@@ -16,5 +16,5 @@ interface IDeps {
|
|
|
16
16
|
'core.utils': IUtils;
|
|
17
17
|
}
|
|
18
18
|
export type GetCoreEntityByIdFunc = <T extends ICoreEntity>(entityType: 'library' | 'attribute' | 'tree' | 'view' | 'versionProfile', entityId: string, ctx: IQueryInfos) => Promise<T>;
|
|
19
|
-
export default function ({ 'core.infra.library': libraryRepo, 'core.infra.attribute': attributeRepo, 'core.infra.tree': treeRepo, 'core.infra.view': viewRepo, 'core.infra.versionProfile': versionProfileRepo, 'core.infra.cache.cacheService': cacheService, 'core.utils': utils }: IDeps): GetCoreEntityByIdFunc;
|
|
19
|
+
export default function ({ 'core.infra.library': libraryRepo, 'core.infra.attribute': attributeRepo, 'core.infra.tree': treeRepo, 'core.infra.view': viewRepo, 'core.infra.versionProfile': versionProfileRepo, 'core.infra.cache.cacheService': cacheService, 'core.utils': utils, }: IDeps): GetCoreEntityByIdFunc;
|
|
20
20
|
export {};
|
|
@@ -9,5 +9,5 @@ interface IDeps {
|
|
|
9
9
|
'core.utils': IUtils;
|
|
10
10
|
}
|
|
11
11
|
export type UpdateRecordLastModifFunc = (library: string, recordId: string, ctx: IQueryInfos) => Promise<IRecord>;
|
|
12
|
-
export default function ({ 'core.infra.record': recordRepo, 'core.infra.cache.cacheService': cacheService, 'core.utils': utils }: IDeps): UpdateRecordLastModifFunc;
|
|
12
|
+
export default function ({ 'core.infra.record': recordRepo, 'core.infra.cache.cacheService': cacheService, 'core.utils': utils, }: IDeps): UpdateRecordLastModifFunc;
|
|
13
13
|
export {};
|
|
@@ -14,5 +14,5 @@ export type UpdateTaskProgress = (taskId: string, currPercent: number, ctx: IQue
|
|
|
14
14
|
};
|
|
15
15
|
translationKey: string;
|
|
16
16
|
}) => Promise<number>;
|
|
17
|
-
export default function ({ 'core.domain.tasksManager': tasksManagerDomain, config, translator }: IDeps): UpdateTaskProgress;
|
|
17
|
+
export default function ({ 'core.domain.tasksManager': tasksManagerDomain, config, translator, }: IDeps): UpdateTaskProgress;
|
|
18
18
|
export {};
|
|
@@ -20,5 +20,5 @@ export interface IValidateHelper {
|
|
|
20
20
|
validateTree(tree: string, throwIfNotFound: boolean, ctx: IQueryInfos): Promise<boolean>;
|
|
21
21
|
validateLibraryAttribute(library: string, attribute: string, ctx: IQueryInfos): Promise<void>;
|
|
22
22
|
}
|
|
23
|
-
export default function ({ 'core.domain.helpers.getCoreEntityById': getCoreEntityById, 'core.infra.record': recordRepo, 'core.utils': utils, 'core.infra.library': libraryRepo, 'core.infra.cache.cacheService': cacheService }: IDeps): IValidateHelper;
|
|
23
|
+
export default function ({ 'core.domain.helpers.getCoreEntityById': getCoreEntityById, 'core.infra.record': recordRepo, 'core.utils': utils, 'core.infra.library': libraryRepo, 'core.infra.cache.cacheService': cacheService, }: IDeps): IValidateHelper;
|
|
24
24
|
export {};
|