@aristid/leav-types 0.0.7-1c86fa6 → 0.0.7-26330ce
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/_constants/globalSettings.d.ts +0 -1
- package/apps/core/src/_types/globalSettings.d.ts +0 -1
- package/apps/core/src/app/application/applicationApp.d.ts +1 -3
- package/apps/core/src/domain/attribute/attributeDomain.d.ts +0 -1
- package/apps/core/src/domain/record/recordDomain.d.ts +1 -4
- package/package.json +1 -1
|
@@ -11,7 +11,6 @@ import { IAppGraphQLSchema } from '_types/graphql';
|
|
|
11
11
|
import { IApplicationDomain } from '../../domain/application/applicationDomain';
|
|
12
12
|
import { ValidateRequestTokenFunc } from '../helpers/validateRequestToken';
|
|
13
13
|
import { IAuthApp } from '../auth/authApp';
|
|
14
|
-
import { IGlobalSettingsDomain } from '../../domain/globalSettings/globalSettingsDomain';
|
|
15
14
|
export interface IApplicationApp {
|
|
16
15
|
registerRoute(app: Express): void;
|
|
17
16
|
getGraphQLSchema(): Promise<IAppGraphQLSchema>;
|
|
@@ -26,9 +25,8 @@ export interface IApplicationAppDeps {
|
|
|
26
25
|
'core.domain.permission': IPermissionDomain;
|
|
27
26
|
'core.domain.record': IRecordDomain;
|
|
28
27
|
'core.domain.eventsManager': IEventsManagerDomain;
|
|
29
|
-
'core.domain.globalSettings': IGlobalSettingsDomain;
|
|
30
28
|
'core.utils.logger': winston.Winston;
|
|
31
29
|
'core.utils': IUtils;
|
|
32
30
|
config: any;
|
|
33
31
|
}
|
|
34
|
-
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.
|
|
32
|
+
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.utils.logger': logger, 'core.utils': utils, config }: IApplicationAppDeps): IApplicationApp;
|
|
@@ -57,7 +57,6 @@ export interface IAttributeDomain {
|
|
|
57
57
|
attributeId: string;
|
|
58
58
|
ctx: IQueryInfos;
|
|
59
59
|
}): Promise<ILibrary[]>;
|
|
60
|
-
getFormAttributes(libraryId: string, formId: string, ctx: IQueryInfos): Promise<IAttribute[]>;
|
|
61
60
|
doesCompute(attrData: IAttribute): boolean;
|
|
62
61
|
}
|
|
63
62
|
export interface IAttributeDomainDeps {
|
|
@@ -19,12 +19,10 @@ import { IAttributeDomain } from '../attribute/attributeDomain';
|
|
|
19
19
|
import { IRecordPermissionDomain } from '../permission/recordPermissionDomain';
|
|
20
20
|
import { SendRecordUpdateEventHelper } from './helpers/sendRecordUpdateEvent';
|
|
21
21
|
import { ICreateRecordResult, IFindRecordParams } from './_types';
|
|
22
|
-
import { IFormRepo } from 'infra/form/formRepo';
|
|
23
22
|
export interface IRecordDomain {
|
|
24
23
|
createRecord(params: {
|
|
25
24
|
library: string;
|
|
26
25
|
values?: IValue[];
|
|
27
|
-
verifyRequiredAttributes?: boolean;
|
|
28
26
|
ctx: IQueryInfos;
|
|
29
27
|
}): Promise<ICreateRecordResult>;
|
|
30
28
|
/**
|
|
@@ -96,10 +94,9 @@ export interface IRecordDomainDeps {
|
|
|
96
94
|
'core.infra.library': ILibraryRepo;
|
|
97
95
|
'core.infra.tree': ITreeRepo;
|
|
98
96
|
'core.infra.value': IValueRepo;
|
|
99
|
-
'core.infra.form': IFormRepo;
|
|
100
97
|
'core.domain.eventsManager': IEventsManagerDomain;
|
|
101
98
|
'core.infra.cache.cacheService': ICachesService;
|
|
102
99
|
'core.utils': IUtils;
|
|
103
100
|
translator: i18n;
|
|
104
101
|
}
|
|
105
|
-
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.helpers.getCoreEntityById': getCoreEntityById, 'core.domain.helpers.validate': validateHelper, 'core.domain.record.helpers.sendRecordUpdateEvent': sendRecordUpdateEvent, 'core.infra.library': libraryRepo, 'core.infra.tree': treeRepo, 'core.infra.value': valueRepo, 'core.
|
|
102
|
+
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.helpers.getCoreEntityById': getCoreEntityById, 'core.domain.helpers.validate': validateHelper, 'core.domain.record.helpers.sendRecordUpdateEvent': sendRecordUpdateEvent, 'core.infra.library': libraryRepo, 'core.infra.tree': treeRepo, 'core.infra.value': valueRepo, 'core.domain.eventsManager': eventsManager, 'core.infra.cache.cacheService': cacheService, 'core.utils': utils, translator }: IRecordDomainDeps): IRecordDomain;
|