@aristid/leav-types 0.0.7-815caa7 → 0.0.7-81dd3cf8
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 -0
- package/apps/core/src/__tests__/e2e/api/joinLibraries/joinLibraries.test.d.ts +1 -0
- package/apps/core/src/__tests__/mocks/attribute.d.ts +2 -1
- package/apps/core/src/__tests__/mocks/cache.d.ts +4 -0
- package/apps/core/src/_constants/attributes.d.ts +1 -0
- package/apps/core/src/_types/attribute.d.ts +6 -0
- package/apps/core/src/_types/forms.d.ts +10 -0
- package/apps/core/src/_types/globalSettings.d.ts +2 -1
- package/apps/core/src/_types/library.d.ts +3 -1
- package/apps/core/src/_types/queryInfos.d.ts +1 -1
- package/apps/core/src/_types/value.d.ts +62 -3
- package/apps/core/src/app/application/applicationApp.d.ts +3 -7
- package/apps/core/src/app/auth/authApp.d.ts +7 -6
- package/apps/core/src/app/core/actionListApp.d.ts +2 -4
- package/apps/core/src/app/core/apiKeyApp/apiKeyApp.d.ts +2 -4
- package/apps/core/src/app/core/attributeApp/attributeApp.d.ts +2 -5
- package/apps/core/src/app/core/coreApp.d.ts +2 -4
- package/apps/core/src/app/core/exportApp.d.ts +2 -4
- package/apps/core/src/app/core/filesManagerApp.d.ts +3 -5
- package/apps/core/src/app/core/formApp/formApp.d.ts +6 -5
- package/apps/core/src/app/core/globalSettingsApp.d.ts +3 -6
- package/apps/core/src/app/core/importApp.d.ts +2 -4
- package/apps/core/src/app/core/libraryApp/libraryApp.d.ts +2 -5
- package/apps/core/src/app/core/logApp.d.ts +2 -4
- package/apps/core/src/app/core/permissionApp/permissionApp.d.ts +2 -4
- package/apps/core/src/app/core/pluginsApp.d.ts +2 -3
- package/apps/core/src/app/core/recordApp/recordApp.d.ts +2 -5
- package/apps/core/src/app/core/tasksManagerApp.d.ts +2 -3
- package/apps/core/src/app/core/treeApp/treeApp.d.ts +2 -5
- package/apps/core/src/app/core/userDataApp.d.ts +2 -4
- package/apps/core/src/app/core/valueApp.d.ts +2 -4
- package/apps/core/src/app/core/versionProfileApp/versionProfileApp.d.ts +2 -4
- package/apps/core/src/app/core/viewApp.d.ts +2 -4
- package/apps/core/src/app/endpoint/endpointApp.d.ts +3 -8
- package/apps/core/src/app/graphql/graphqlApp.d.ts +4 -0
- package/apps/core/src/domain/attribute/helpers/ifLibraryJoinLinkAttribute.d.ts +11 -0
- package/apps/core/src/domain/attribute/helpers/ifLibraryJoinLinkAttribute.spec.d.ts +1 -0
- package/apps/core/src/domain/attribute/helpers/index.d.ts +1 -0
- package/apps/core/src/domain/filesManager/helpers/handleFileSystemEvent/handleMoveEvent.d.ts +1 -1
- package/apps/core/src/domain/globalSettings/globalSettingsDomain.d.ts +5 -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/record/_types.d.ts +4 -3
- package/apps/core/src/domain/record/helpers/createRecord.d.ts +21 -0
- package/apps/core/src/domain/record/helpers/deleteRecord.d.ts +19 -0
- package/apps/core/src/domain/record/helpers/getAccessPermissionFilters.d.ts +1 -1
- package/apps/core/src/domain/record/helpers/index.d.ts +2 -0
- package/apps/core/src/domain/record/recordDomain.d.ts +16 -4
- package/apps/core/src/domain/value/helpers/prepareValue.d.ts +3 -3
- package/apps/core/src/domain/value/helpers/saveOneValue.d.ts +2 -2
- package/apps/core/src/domain/value/helpers/validateValue.d.ts +3 -3
- package/apps/core/src/domain/value/valueDomain.d.ts +11 -4
- package/apps/core/src/errors/LeavError.d.ts +6 -0
- package/apps/core/src/infra/attributeTypes/attributeAdvancedLinkRepo.d.ts +5 -2
- package/apps/core/src/infra/attributeTypes/attributeAdvancedRepo.d.ts +3 -1
- package/apps/core/src/infra/attributeTypes/attributeSimpleLinkRepo.d.ts +5 -2
- package/apps/core/src/infra/attributeTypes/attributeSimpleRepo.d.ts +3 -1
- package/apps/core/src/infra/attributeTypes/attributeTreeRepo.d.ts +3 -1
- package/apps/core/src/infra/attributeTypes/attributeTypesRepo.d.ts +27 -21
- package/apps/core/src/infra/db/migrations/008-addSkeletonApp.d.ts +7 -0
- package/apps/core/src/infra/db/migrations/009-addDisplayMultiLinkOptAttributeProperty.d.ts +11 -0
- package/apps/core/src/infra/db/migrations/010-formSidePanel.d.ts +8 -0
- package/apps/core/src/infra/db/migrations/011-moveSkeletonApptoAppStudio.d.ts +7 -0
- package/apps/core/src/infra/oidc/oidcClientService.d.ts +1 -1
- package/apps/core/src/infra/record/helpers/getSearchVariableName.d.ts +1 -1
- package/apps/core/src/infra/value/valueRepo.d.ts +3 -3
- package/apps/core/src/interface/server.d.ts +7 -0
- package/apps/core/src/utils/utils.d.ts +1 -0
- package/libs/utils/src/types/forms.d.ts +1 -0
- package/package.json +5 -2
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type IDbService } from '../dbService';
|
|
2
|
+
import { type IMigration } from '../../../_types/migration';
|
|
3
|
+
interface IDeps {
|
|
4
|
+
'core.infra.db.dbService'?: IDbService;
|
|
5
|
+
}
|
|
6
|
+
export default function ({ 'core.infra.db.dbService': dbService }?: IDeps): IMigration;
|
|
7
|
+
export {};
|
|
@@ -3,6 +3,6 @@ import { IFilterTypesHelper } from './filterTypes';
|
|
|
3
3
|
interface IDeps {
|
|
4
4
|
'core.infra.record.helpers.filterTypes'?: IFilterTypesHelper;
|
|
5
5
|
}
|
|
6
|
-
export type GetSearchVariableName = (filter: IRecordFilterOption) => string;
|
|
6
|
+
export type GetSearchVariableName = (filter: IRecordFilterOption) => string | undefined;
|
|
7
7
|
export default function ({ 'core.infra.record.helpers.filterTypes': filterTypesHelper }: IDeps): GetSearchVariableName;
|
|
8
8
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IDbService } from 'infra/db/dbService';
|
|
2
2
|
import { IAttribute } from '_types/attribute';
|
|
3
3
|
import { IQueryInfos } from '_types/queryInfos';
|
|
4
|
-
import { IValue, IValuesOptions } from '_types/value';
|
|
4
|
+
import { ISaveValue, IValue, IValuesOptions } from '_types/value';
|
|
5
5
|
import { IAttributeTypesRepo, IAttributeWithRevLink } from '../attributeTypes/attributeTypesRepo';
|
|
6
6
|
export declare const VALUES_LINKS_COLLECTION = "core_edge_values_links";
|
|
7
7
|
export declare const VALUES_COLLECTION = "core_values";
|
|
@@ -11,7 +11,7 @@ export interface IValueRepo {
|
|
|
11
11
|
library: string;
|
|
12
12
|
recordId: string;
|
|
13
13
|
attribute: IAttributeWithRevLink;
|
|
14
|
-
value:
|
|
14
|
+
value: ISaveValue;
|
|
15
15
|
ctx: IQueryInfos;
|
|
16
16
|
}): Promise<IValue>;
|
|
17
17
|
/**
|
|
@@ -21,7 +21,7 @@ export interface IValueRepo {
|
|
|
21
21
|
library: string;
|
|
22
22
|
recordId: string;
|
|
23
23
|
attribute: IAttributeWithRevLink;
|
|
24
|
-
value:
|
|
24
|
+
value: ISaveValue;
|
|
25
25
|
ctx: IQueryInfos;
|
|
26
26
|
}): Promise<IValue>;
|
|
27
27
|
/**
|
|
@@ -3,6 +3,7 @@ import { IAuthApp } from 'app/auth/authApp';
|
|
|
3
3
|
import { ICoreApp } from 'app/core/coreApp';
|
|
4
4
|
import { IGraphqlApp } from 'app/graphql/graphqlApp';
|
|
5
5
|
import { AwilixContainer } from 'awilix';
|
|
6
|
+
import { Express } from 'express';
|
|
6
7
|
import { IUtils } from 'utils/utils';
|
|
7
8
|
import * as winston from 'winston';
|
|
8
9
|
import { IConfig } from '_types/config';
|
|
@@ -13,6 +14,12 @@ export interface IServer {
|
|
|
13
14
|
init(): Promise<void>;
|
|
14
15
|
initConsumers(): Promise<void>;
|
|
15
16
|
}
|
|
17
|
+
export interface IServerRouteAppModule {
|
|
18
|
+
/**
|
|
19
|
+
* @param app Express instance, can be used to extend the app
|
|
20
|
+
*/
|
|
21
|
+
registerRoute(app: Express): void;
|
|
22
|
+
}
|
|
16
23
|
interface IDeps {
|
|
17
24
|
config?: IConfig;
|
|
18
25
|
'core.interface.helpers.handleGraphqlError'?: HandleGraphqlErrorFunc;
|
|
@@ -79,6 +79,7 @@ export interface IUtils {
|
|
|
79
79
|
getFullApplicationEndpoint(endpoint?: string): string;
|
|
80
80
|
getCoreEntityCacheKey(entityType: string, entityId: string): string;
|
|
81
81
|
getRecordsCacheKey(libraryId: string, recordId: string): string;
|
|
82
|
+
getGlobalSettingsCacheKey(): string;
|
|
82
83
|
generateExplicitValidationError<T>(field: keyof T, message: ErrorFieldDetailMessage, lang?: string): ValidationError<T>;
|
|
83
84
|
deleteFile(path: string): Promise<void>;
|
|
84
85
|
getUnixTime(): number;
|
package/package.json
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aristid/leav-types",
|
|
3
|
-
"version": "0.0.7-
|
|
3
|
+
"version": "0.0.7-81dd3cf8",
|
|
4
4
|
"description": "Shared Leav types",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"tscheck": "",
|
|
7
7
|
"test:ci": "",
|
|
8
8
|
"test:commit": "",
|
|
9
|
-
"publish-types": "npm publish --access public"
|
|
9
|
+
"publish-types": "npm publish --access public",
|
|
10
|
+
"generate": "yarn workspace core tsc --emitDeclarationOnly --declaration --outDir dist-types && mv ../../apps/core/dist-types/* . && rmdir ../../apps/core/dist-types",
|
|
11
|
+
"get-version": "jq -r '.version' package.json",
|
|
12
|
+
"set-version": "jq --arg v $1 '.version = $v' package.json > package.tmp.json && mv package.tmp.json package.json"
|
|
10
13
|
},
|
|
11
14
|
"license": "LGPL3",
|
|
12
15
|
"repository": "https://github.com/leav-solutions/leav-engine",
|