@aristid/leav-types 1.3.0-e3f8292e → 1.3.0-ff0e8449
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 -2
- package/apps/core/config/development.d.ts +0 -1
- package/apps/core/src/__tests__/mocks/shared.d.ts +1 -0
- package/apps/core/src/_types/config.d.ts +1 -2
- package/apps/core/src/app/application/applicationApp.d.ts +2 -1
- package/apps/core/src/app/core/importApp.d.ts +3 -1
- package/apps/core/src/domain/filesManager/filesManagerDomain.d.ts +3 -1
- package/apps/core/src/domain/filesManager/helpers/handlePreviewResponse.d.ts +2 -1
- package/apps/core/src/domain/tasksManager/tasksManagerDomain.d.ts +3 -1
- package/apps/core/src/infra/db/dbUtils.d.ts +3 -1
- package/apps/core/src/interface/server.d.ts +2 -2
- package/apps/core/src/utils/helpers/getSystemQueryContext.d.ts +1 -1
- package/apps/core/src/utils/utils.d.ts +1 -0
- package/package.json +1 -1
- package/apps/core/src/utils/preview/preview.d.ts +0 -1
|
@@ -5,6 +5,7 @@ export declare namespace server {
|
|
|
5
5
|
let port: number;
|
|
6
6
|
let publicUrl: string;
|
|
7
7
|
let wsUrl: string;
|
|
8
|
+
let basePath: string;
|
|
8
9
|
let allowIntrospection: boolean;
|
|
9
10
|
let uploadLimit: string;
|
|
10
11
|
let supportEmail: string;
|
|
@@ -131,8 +132,6 @@ export declare namespace filesManager {
|
|
|
131
132
|
namespace rootKeys {
|
|
132
133
|
let files1: string;
|
|
133
134
|
}
|
|
134
|
-
let userId: string;
|
|
135
|
-
let userGroupsIds: string;
|
|
136
135
|
let allowFilesList: string;
|
|
137
136
|
let ignoreFilesList: string;
|
|
138
137
|
}
|
|
@@ -45,6 +45,7 @@ export interface IServer {
|
|
|
45
45
|
host: string;
|
|
46
46
|
port: number;
|
|
47
47
|
publicUrl: string;
|
|
48
|
+
basePath: string;
|
|
48
49
|
allowIntrospection: boolean;
|
|
49
50
|
wsUrl: string;
|
|
50
51
|
uploadLimit: number | string;
|
|
@@ -138,8 +139,6 @@ export interface IFilesManager {
|
|
|
138
139
|
rootKeys: {
|
|
139
140
|
files1: string;
|
|
140
141
|
};
|
|
141
|
-
userId: string;
|
|
142
|
-
userGroupsIds: string;
|
|
143
142
|
allowFilesList: string;
|
|
144
143
|
ignoreFilesList: string;
|
|
145
144
|
}
|
|
@@ -11,6 +11,7 @@ import { type ValidateRequestTokenFunc } from '../helpers/validateRequestToken';
|
|
|
11
11
|
import { type IAuthApp } from '../auth/authApp';
|
|
12
12
|
import { type IGlobalSettingsDomain } from '../../domain/globalSettings/globalSettingsDomain';
|
|
13
13
|
import { type IServerRouteAppModule } from 'interface/server';
|
|
14
|
+
import { type IConfig } from '_types/config';
|
|
14
15
|
export type IApplicationApp = IGraphqlAppModule & IServerRouteAppModule;
|
|
15
16
|
export interface IApplicationAppDeps {
|
|
16
17
|
'core.app.graphql': IGraphqlApp;
|
|
@@ -25,6 +26,6 @@ export interface IApplicationAppDeps {
|
|
|
25
26
|
'core.domain.globalSettings': IGlobalSettingsDomain;
|
|
26
27
|
'core.utils.logger': winston.Winston;
|
|
27
28
|
'core.utils': IUtils;
|
|
28
|
-
config:
|
|
29
|
+
config: IConfig;
|
|
29
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;
|
|
@@ -3,6 +3,7 @@ import { type IImportDomain } from 'domain/import/importDomain';
|
|
|
3
3
|
import { type IUtils } from 'utils/utils';
|
|
4
4
|
import type * as Config from '_types/config';
|
|
5
5
|
import { type IGraphqlAppModule } from '../graphql/graphqlApp';
|
|
6
|
+
import { type GetSystemQueryContext } from '../../utils/helpers/getSystemQueryContext';
|
|
6
7
|
export interface ICoreImportApp extends IGraphqlAppModule {
|
|
7
8
|
importConfig(filepath: string, clear: boolean): Promise<void>;
|
|
8
9
|
importData(filepath: string): Promise<void>;
|
|
@@ -12,6 +13,7 @@ interface IDeps {
|
|
|
12
13
|
'core.domain.helpers.storeUploadFile': StoreUploadFileFunc;
|
|
13
14
|
'core.utils': IUtils;
|
|
14
15
|
config: Config.IConfig;
|
|
16
|
+
'core.utils.getSystemQueryContext': GetSystemQueryContext;
|
|
15
17
|
}
|
|
16
|
-
export default function ({ 'core.domain.import': importDomain, 'core.domain.helpers.storeUploadFile': storeUploadFile, 'core.utils': utils, 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;
|
|
17
19
|
export {};
|
|
@@ -19,6 +19,7 @@ import { type ILibrary } from '../../_types/library';
|
|
|
19
19
|
import { type IRecord, type IRecordFilterLight } from '../../_types/record';
|
|
20
20
|
import { type IRecordDomain } from '../record/recordDomain';
|
|
21
21
|
import { type IMessagesHandlerHelper } from './helpers/messagesHandler/messagesHandler';
|
|
22
|
+
import { type GetSystemQueryContext } from '../../utils/helpers/getSystemQueryContext';
|
|
22
23
|
interface IForcePreviewsGenerationParams {
|
|
23
24
|
ctx: IQueryInfos;
|
|
24
25
|
libraryId: string;
|
|
@@ -82,7 +83,8 @@ export interface IFilesManagerDomainDeps {
|
|
|
82
83
|
'core.domain.helpers.createDirectory': CreateDirectoryFunc;
|
|
83
84
|
'core.infra.record': IRecordRepo;
|
|
84
85
|
'core.domain.eventsManager': IEventsManagerDomain;
|
|
86
|
+
'core.utils.getSystemQueryContext': GetSystemQueryContext;
|
|
85
87
|
translator: i18n;
|
|
86
88
|
}
|
|
87
|
-
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, 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;
|
|
88
90
|
export {};
|
|
@@ -7,6 +7,7 @@ import { type IValueDomain } from 'domain/value/valueDomain';
|
|
|
7
7
|
import { type IRecordRepo } from 'infra/record/recordRepo';
|
|
8
8
|
import { type IUtils } from 'utils/utils';
|
|
9
9
|
import type * as Config from '_types/config';
|
|
10
|
+
import { type IQueryInfos } from '_types/queryInfos';
|
|
10
11
|
import winston = require('winston');
|
|
11
12
|
export interface IHandlePreviewResponseDeps {
|
|
12
13
|
amqpService: IAmqpService;
|
|
@@ -20,4 +21,4 @@ export interface IHandlePreviewResponseDeps {
|
|
|
20
21
|
logger: winston.Winston;
|
|
21
22
|
utils: IUtils;
|
|
22
23
|
}
|
|
23
|
-
export declare const initPreviewResponseHandler: (config: Config.IConfig, logger: winston.Winston, deps: IHandlePreviewResponseDeps) => Promise<void>;
|
|
24
|
+
export declare const initPreviewResponseHandler: (config: Config.IConfig, logger: winston.Winston, ctx: IQueryInfos, deps: IHandlePreviewResponseDeps) => Promise<void>;
|
|
@@ -10,6 +10,7 @@ import { type ISystemTranslation } from '_types/systemTranslation';
|
|
|
10
10
|
import { type ITaskRepo } from '../../infra/task/taskRepo';
|
|
11
11
|
import { type IList } from '../../_types/list';
|
|
12
12
|
import { type ITask, type ITaskCallback, type ITaskCancelPayload, type ITaskCreatePayload, type ITaskDeletePayload, TaskStatus } from '../../_types/tasksManager';
|
|
13
|
+
import { type GetSystemQueryContext } from '../../utils/helpers/getSystemQueryContext';
|
|
13
14
|
export interface IUpdateData {
|
|
14
15
|
status?: TaskStatus;
|
|
15
16
|
progress?: {
|
|
@@ -63,6 +64,7 @@ export interface ITasksManagerDomainDeps {
|
|
|
63
64
|
'core.domain.eventsManager': IEventsManagerDomain;
|
|
64
65
|
'core.utils.logger': winston.Winston;
|
|
65
66
|
'core.utils': IUtils;
|
|
67
|
+
'core.utils.getSystemQueryContext': GetSystemQueryContext;
|
|
66
68
|
}
|
|
67
|
-
export default function ({ config, 'core.infra.amqpService': amqpService, 'core.infra.task': taskRepo, 'core.depsManager': depsManager, 'core.domain.eventsManager': eventsManager, 'core.utils.logger': logger, 'core.utils': utils }: ITasksManagerDomainDeps): ITasksManagerDomain;
|
|
69
|
+
export default function ({ config, 'core.infra.amqpService': amqpService, 'core.infra.task': taskRepo, 'core.depsManager': depsManager, 'core.domain.eventsManager': eventsManager, 'core.utils.logger': logger, 'core.utils': utils, 'core.utils.getSystemQueryContext': getSystemQueryContext }: ITasksManagerDomainDeps): ITasksManagerDomain;
|
|
68
70
|
export {};
|
|
@@ -7,6 +7,7 @@ import { type IQueryInfos } from '_types/queryInfos';
|
|
|
7
7
|
import { type IKeyValue } from '_types/shared';
|
|
8
8
|
import { type ICachesService } from '../cache/cacheService';
|
|
9
9
|
import { type IDbService } from './dbService';
|
|
10
|
+
import { type GetSystemQueryContext } from '../../utils/helpers/getSystemQueryContext';
|
|
10
11
|
export declare const MIGRATIONS_COLLECTION_NAME = "core_db_migrations";
|
|
11
12
|
export type CustomFilterConditionsFunc = (filterKey: string, filterVal: string | boolean | string[], strictFilters: boolean) => GeneratedAqlQuery;
|
|
12
13
|
export interface IFindCoreEntityParams {
|
|
@@ -33,6 +34,7 @@ interface IDeps {
|
|
|
33
34
|
'core.infra.cache.cacheService'?: ICachesService;
|
|
34
35
|
'core.utils.logger'?: winston.Winston;
|
|
35
36
|
config?: IConfig;
|
|
37
|
+
'core.utils.getSystemQueryContext'?: GetSystemQueryContext;
|
|
36
38
|
}
|
|
37
|
-
export default function ({ 'core.infra.db.dbService': dbService, 'core.infra.cache.cacheService': cacheService, 'core.utils.logger': logger, config }?: IDeps): IDbUtils;
|
|
39
|
+
export default function ({ 'core.infra.db.dbService': dbService, 'core.infra.cache.cacheService': cacheService, 'core.utils.logger': logger, config, 'core.utils.getSystemQueryContext': getSystemQueryContext }?: IDeps): IDbUtils;
|
|
38
40
|
export {};
|
|
@@ -3,7 +3,7 @@ import { type IAuthApp } from 'app/auth/authApp';
|
|
|
3
3
|
import { type ICoreApp } from 'app/core/coreApp';
|
|
4
4
|
import { type IGraphqlApp } from 'app/graphql/graphqlApp';
|
|
5
5
|
import { type AwilixContainer } from 'awilix';
|
|
6
|
-
import
|
|
6
|
+
import express from 'express';
|
|
7
7
|
import { type IUtils } from 'utils/utils';
|
|
8
8
|
import type * as winston from 'winston';
|
|
9
9
|
import { type IConfig } from '_types/config';
|
|
@@ -18,7 +18,7 @@ export interface IServerRouteAppModule {
|
|
|
18
18
|
/**
|
|
19
19
|
* @param app Express instance, can be used to extend the app
|
|
20
20
|
*/
|
|
21
|
-
registerRoute(app:
|
|
21
|
+
registerRoute(app: express.Router): void;
|
|
22
22
|
}
|
|
23
23
|
interface IDeps {
|
|
24
24
|
config?: IConfig;
|
|
@@ -3,6 +3,6 @@ import { type IQueryInfos } from '_types/queryInfos';
|
|
|
3
3
|
interface IDeps {
|
|
4
4
|
config?: IConfig;
|
|
5
5
|
}
|
|
6
|
-
export type GetSystemQueryContext = () => IQueryInfos;
|
|
6
|
+
export type GetSystemQueryContext = (trigger?: string) => IQueryInfos;
|
|
7
7
|
export default function ({ config }: IDeps): GetSystemQueryContext;
|
|
8
8
|
export {};
|
|
@@ -86,6 +86,7 @@ export interface IUtils {
|
|
|
86
86
|
getUnixTime(): number;
|
|
87
87
|
getFileExtension(filename: string): string | null;
|
|
88
88
|
getProcessIdentifier(): string;
|
|
89
|
+
getPreviewUrl(relativeUrl: string): string;
|
|
89
90
|
getPreviewsAttributeName(libraryId: string): string;
|
|
90
91
|
getPreviewsStatusAttributeName(libraryId: string): string;
|
|
91
92
|
getPreviewAttributesSettings(library: ILibrary): IPreviewAttributesSettings;
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const getPreviewUrl: () => string;
|