@aristid/leav-types 0.0.2 → 0.0.4-b0a5cfe
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 +189 -0
- package/apps/core/config/development.d.ts +14 -0
- package/apps/core/config/test.d.ts +52 -0
- package/apps/core/scripts/build.d.ts +2 -0
- package/apps/core/scripts/preload.d.ts +1 -0
- package/apps/core/scripts/utils.d.ts +3 -0
- package/apps/core/src/__mocks__/poppler-simple.d.ts +7 -0
- package/apps/core/src/__tests__/e2e/api/_fixtures/fakeplugin/index.d.ts +7 -0
- package/apps/core/src/__tests__/e2e/api/actionLists/actionLists.test.d.ts +1 -0
- package/apps/core/src/__tests__/e2e/api/actionLists/actions/inheritanceCalculationAction.test.d.ts +1 -0
- package/apps/core/src/__tests__/e2e/api/apiKey/apiKey.test.d.ts +1 -0
- package/apps/core/src/__tests__/e2e/api/applications/applications.test.d.ts +1 -0
- package/apps/core/src/__tests__/e2e/api/attributes/attributes.test.d.ts +1 -0
- package/apps/core/src/__tests__/e2e/api/auth/auth.test.d.ts +1 -0
- package/apps/core/src/__tests__/e2e/api/e2eUtils.d.ts +42 -0
- package/apps/core/src/__tests__/e2e/api/files/files.test.d.ts +1 -0
- package/apps/core/src/__tests__/e2e/api/forms/forms.test.d.ts +1 -0
- package/apps/core/src/__tests__/e2e/api/globalSettings/globalSettings.test.d.ts +1 -0
- package/apps/core/src/__tests__/e2e/api/globalSetup.d.ts +3 -0
- package/apps/core/src/__tests__/e2e/api/globalSetupHook.d.ts +1 -0
- package/apps/core/src/__tests__/e2e/api/graphql/graphql.test.d.ts +1 -0
- package/apps/core/src/__tests__/e2e/api/import/import.test-draft.d.ts +0 -0
- package/apps/core/src/__tests__/e2e/api/libraries/libraries.test.d.ts +1 -0
- package/apps/core/src/__tests__/e2e/api/permissions/applicationsPermissions.test.d.ts +1 -0
- package/apps/core/src/__tests__/e2e/api/permissions/attributePermissions.test.d.ts +1 -0
- package/apps/core/src/__tests__/e2e/api/permissions/permissions.test.d.ts +1 -0
- package/apps/core/src/__tests__/e2e/api/permissions/recordAttributePermissions.test.d.ts +1 -0
- package/apps/core/src/__tests__/e2e/api/permissions/recordPermissions.test.d.ts +1 -0
- package/apps/core/src/__tests__/e2e/api/permissions/treeLibraryPermissions.test.d.ts +1 -0
- package/apps/core/src/__tests__/e2e/api/permissions/treeNodePermissions.test.d.ts +1 -0
- package/apps/core/src/__tests__/e2e/api/permissions/treePermissions.test.d.ts +1 -0
- package/apps/core/src/__tests__/e2e/api/plugins/plugins.test.d.ts +1 -0
- package/apps/core/src/__tests__/e2e/api/records/recordIdentity.test.d.ts +1 -0
- package/apps/core/src/__tests__/e2e/api/records/records.test.d.ts +1 -0
- package/apps/core/src/__tests__/e2e/api/records/recordsDeletion.test.d.ts +1 -0
- package/apps/core/src/__tests__/e2e/api/records/searchFilters.test.d.ts +1 -0
- package/apps/core/src/__tests__/e2e/api/teardown.d.ts +2 -0
- package/apps/core/src/__tests__/e2e/api/trees/treeNodeChildren.test.d.ts +1 -0
- package/apps/core/src/__tests__/e2e/api/trees/trees.test.d.ts +1 -0
- package/apps/core/src/__tests__/e2e/api/userData/userData.test.d.ts +1 -0
- package/apps/core/src/__tests__/e2e/api/values/metadata.test.d.ts +1 -0
- package/apps/core/src/__tests__/e2e/api/values/values.test.d.ts +1 -0
- package/apps/core/src/__tests__/e2e/api/values/versions.test.d.ts +1 -0
- package/apps/core/src/__tests__/e2e/api/versionProfile/versionProfile.test.d.ts +1 -0
- package/apps/core/src/__tests__/e2e/api/views/views.test.d.ts +1 -0
- package/apps/core/src/__tests__/e2e/filesManager/filesManager/filesManager.test.d.ts +1 -0
- package/apps/core/src/__tests__/e2e/filesManager/globalSetup.d.ts +1 -0
- package/apps/core/src/__tests__/e2e/filesManager/globalSetupHook.d.ts +1 -0
- package/apps/core/src/__tests__/e2e/indexationManager/globalSetup.d.ts +1 -0
- package/apps/core/src/__tests__/e2e/indexationManager/globalSetupHook.d.ts +1 -0
- package/apps/core/src/__tests__/e2e/indexationManager/indexation.test.d.ts +1 -0
- package/apps/core/src/__tests__/global-setup.d.ts +0 -0
- package/apps/core/src/__tests__/jestUtils.d.ts +12 -0
- package/apps/core/src/__tests__/mocks/actionsList.d.ts +67 -0
- package/apps/core/src/__tests__/mocks/apiKey.d.ts +11 -0
- package/apps/core/src/__tests__/mocks/application.d.ts +3 -0
- package/apps/core/src/__tests__/mocks/attribute.d.ts +36 -0
- package/apps/core/src/__tests__/mocks/file.d.ts +29 -0
- package/apps/core/src/__tests__/mocks/forms.d.ts +4 -0
- package/apps/core/src/__tests__/mocks/globalSettings.d.ts +2 -0
- package/apps/core/src/__tests__/mocks/library.d.ts +4 -0
- package/apps/core/src/__tests__/mocks/log.d.ts +2 -0
- package/apps/core/src/__tests__/mocks/plugins.d.ts +2 -0
- package/apps/core/src/__tests__/mocks/record.d.ts +3 -0
- package/apps/core/src/__tests__/mocks/shared.d.ts +2 -0
- package/apps/core/src/__tests__/mocks/task.d.ts +2 -0
- package/apps/core/src/__tests__/mocks/translator.d.ts +3 -0
- package/apps/core/src/__tests__/mocks/tree.d.ts +3 -0
- package/apps/core/src/__tests__/mocks/value.d.ts +2 -0
- package/apps/core/src/__tests__/mocks/versionProfile.d.ts +2 -0
- package/apps/core/src/__tests__/mocks/view.d.ts +2 -0
- package/apps/core/src/__tests__/setup.d.ts +0 -0
- package/apps/core/src/_constants/globalSettings.d.ts +1 -0
- package/apps/core/src/_constants/libraries.d.ts +1 -0
- package/apps/core/src/_constants/users.d.ts +4 -0
- package/apps/core/src/_types/actionsList.d.ts +77 -0
- package/apps/core/src/_types/apiKey.d.ts +23 -0
- package/apps/core/src/_types/application.d.ts +46 -0
- package/apps/core/src/_types/attribute.d.ts +94 -0
- package/apps/core/src/_types/auth.d.ts +7 -0
- package/apps/core/src/_types/config.d.ts +192 -0
- package/apps/core/src/_types/dbProfiler.d.ts +13 -0
- package/apps/core/src/_types/endpoint.d.ts +11 -0
- package/apps/core/src/_types/errors.d.ts +117 -0
- package/apps/core/src/_types/eventsManager.d.ts +8 -0
- package/apps/core/src/_types/express.d.ts +16 -0
- package/apps/core/src/_types/extensionPoints.d.ts +29 -0
- package/apps/core/src/_types/filesManager.d.ts +90 -0
- package/apps/core/src/_types/forms.d.ts +50 -0
- package/apps/core/src/_types/globalSettings.d.ts +11 -0
- package/apps/core/src/_types/graphql.d.ts +4 -0
- package/apps/core/src/_types/import.d.ts +63 -0
- package/apps/core/src/_types/library.d.ts +50 -0
- package/apps/core/src/_types/list.d.ts +31 -0
- package/apps/core/src/_types/log.d.ts +37 -0
- package/apps/core/src/_types/migration.d.ts +4 -0
- package/apps/core/src/_types/permissions.d.ts +137 -0
- package/apps/core/src/_types/plugin.d.ts +14 -0
- package/apps/core/src/_types/preview.d.ts +6 -0
- package/apps/core/src/_types/queryInfos.d.ts +16 -0
- package/apps/core/src/_types/record.d.ts +111 -0
- package/apps/core/src/_types/shared.d.ts +28 -0
- package/apps/core/src/_types/systemTranslation.d.ts +3 -0
- package/apps/core/src/_types/tasksManager.d.ts +97 -0
- package/apps/core/src/_types/tree.d.ts +63 -0
- package/apps/core/src/_types/userData.d.ts +4 -0
- package/apps/core/src/_types/utils.d.ts +3 -0
- package/apps/core/src/_types/value.d.ts +78 -0
- package/apps/core/src/_types/versionProfile.d.ts +17 -0
- package/apps/core/src/_types/views.d.ts +57 -0
- package/apps/core/src/app/application/__tests__/applicationApp.spec.d.ts +1 -0
- package/apps/core/src/app/application/applicationApp.d.ts +32 -0
- package/apps/core/src/app/application/index.d.ts +1 -0
- package/apps/core/src/app/auth/__tests__/authApp.spec.d.ts +1 -0
- package/apps/core/src/app/auth/authApp.d.ts +38 -0
- package/apps/core/src/app/auth/index.d.ts +1 -0
- package/apps/core/src/app/core/actionListApp.d.ts +13 -0
- package/apps/core/src/app/core/apiKeyApp/_types.d.ts +21 -0
- package/apps/core/src/app/core/apiKeyApp/apiKeyApp.d.ts +12 -0
- package/apps/core/src/app/core/attributeApp/attributeApp.d.ts +28 -0
- package/apps/core/src/app/core/coreApp.d.ts +25 -0
- package/apps/core/src/app/core/coreApp.spec.d.ts +1 -0
- package/apps/core/src/app/core/eventsManagerApp.d.ts +12 -0
- package/apps/core/src/app/core/exportApp.d.ts +10 -0
- package/apps/core/src/app/core/filesManagerApp.d.ts +21 -0
- package/apps/core/src/app/core/formApp/_types.d.ts +38 -0
- package/apps/core/src/app/core/formApp/formApp.d.ts +20 -0
- package/apps/core/src/app/core/globalSettingsApp.d.ts +23 -0
- package/apps/core/src/app/core/helpers/subscriptions.d.ts +10 -0
- package/apps/core/src/app/core/importApp.d.ts +24 -0
- package/apps/core/src/app/core/index.d.ts +23 -0
- package/apps/core/src/app/core/indexationManagerApp.d.ts +11 -0
- package/apps/core/src/app/core/libraryApp/_types.d.ts +19 -0
- package/apps/core/src/app/core/libraryApp/libraryApp.d.ts +24 -0
- package/apps/core/src/app/core/logApp.d.ts +23 -0
- package/apps/core/src/app/core/permissionApp/_types.d.ts +8 -0
- package/apps/core/src/app/core/permissionApp/permissionApp.d.ts +19 -0
- package/apps/core/src/app/core/pluginsApp.d.ts +12 -0
- package/apps/core/src/app/core/recordApp/_types.d.ts +36 -0
- package/apps/core/src/app/core/recordApp/recordApp.d.ts +30 -0
- package/apps/core/src/app/core/tasksManagerApp.d.ts +33 -0
- package/apps/core/src/app/core/treeApp/_types.d.ts +53 -0
- package/apps/core/src/app/core/treeApp/treeApp.d.ts +24 -0
- package/apps/core/src/app/core/userDataApp.d.ts +10 -0
- package/apps/core/src/app/core/valueApp.d.ts +18 -0
- package/apps/core/src/app/core/versionProfileApp/_types.d.ts +24 -0
- package/apps/core/src/app/core/versionProfileApp/versionProfileApp.d.ts +12 -0
- package/apps/core/src/app/core/viewApp.d.ts +14 -0
- package/apps/core/src/app/endpoint/endpointApp.d.ts +32 -0
- package/apps/core/src/app/endpoint/endpointApp.spec.d.ts +1 -0
- package/apps/core/src/app/endpoint/index.d.ts +1 -0
- package/apps/core/src/app/graphql/customScalars/any/any.d.ts +2 -0
- package/apps/core/src/app/graphql/customScalars/any/any.spec.d.ts +1 -0
- package/apps/core/src/app/graphql/customScalars/any/index.d.ts +1 -0
- package/apps/core/src/app/graphql/customScalars/dateTime/dateTime.d.ts +7 -0
- package/apps/core/src/app/graphql/customScalars/dateTime/dateTime.spec.d.ts +1 -0
- package/apps/core/src/app/graphql/customScalars/dateTime/index.d.ts +1 -0
- package/apps/core/src/app/graphql/customScalars/helpers/parseLiteral.d.ts +5 -0
- package/apps/core/src/app/graphql/customScalars/systemTranslation/index.d.ts +1 -0
- package/apps/core/src/app/graphql/customScalars/systemTranslation/systemTranslation.d.ts +10 -0
- package/apps/core/src/app/graphql/customScalars/systemTranslation/systemTranslation.spec.d.ts +1 -0
- package/apps/core/src/app/graphql/graphqlApp.d.ts +15 -0
- package/apps/core/src/app/graphql/graphqlApp.spec.d.ts +1 -0
- package/apps/core/src/app/graphql/index.d.ts +1 -0
- package/apps/core/src/app/helpers/convertOIDCIdentifier.d.ts +5 -0
- package/apps/core/src/app/helpers/convertOIDCIdentifier.spec.d.ts +1 -0
- package/apps/core/src/app/helpers/convertVersionFromGqlFormat.d.ts +3 -0
- package/apps/core/src/app/helpers/convertVersionFromGqlFormat.spec.d.ts +1 -0
- package/apps/core/src/app/helpers/index.d.ts +4 -0
- package/apps/core/src/app/helpers/initQueryContext.d.ts +9 -0
- package/apps/core/src/app/helpers/validateRequestToken.d.ts +9 -0
- package/apps/core/src/app/helpers/validateRequestToken.spec.d.ts +1 -0
- package/apps/core/src/config.d.ts +12 -0
- package/apps/core/src/depsManager.d.ts +7 -0
- package/apps/core/src/domain/actions/dateRangeToNumberAction.d.ts +2 -0
- package/apps/core/src/domain/actions/dateRangeToNumberAction.spec.d.ts +1 -0
- package/apps/core/src/domain/actions/encryptAction.d.ts +2 -0
- package/apps/core/src/domain/actions/encryptAction.spec.d.ts +1 -0
- package/apps/core/src/domain/actions/excelCalculationAction.d.ts +12 -0
- package/apps/core/src/domain/actions/excelCalculationAction.spec.d.ts +1 -0
- package/apps/core/src/domain/actions/formatDateAction.d.ts +5 -0
- package/apps/core/src/domain/actions/formatDateAction.spec.d.ts +1 -0
- package/apps/core/src/domain/actions/formatDateRangeAction.d.ts +5 -0
- package/apps/core/src/domain/actions/formatDateRangeAction.spec.d.ts +1 -0
- package/apps/core/src/domain/actions/formatNumberAction.d.ts +8 -0
- package/apps/core/src/domain/actions/formatNumberAction.spec.d.ts +1 -0
- package/apps/core/src/domain/actions/index.d.ts +18 -0
- package/apps/core/src/domain/actions/inheritanceCalculationAction.d.ts +12 -0
- package/apps/core/src/domain/actions/inheritanceCalculationAction.spec.d.ts +1 -0
- package/apps/core/src/domain/actions/maskValueAction.d.ts +2 -0
- package/apps/core/src/domain/actions/maskValueAction.spec.d.ts +1 -0
- package/apps/core/src/domain/actions/parseJSONAction.d.ts +2 -0
- package/apps/core/src/domain/actions/parseJSONAction.spec.d.ts +1 -0
- package/apps/core/src/domain/actions/toBooleanAction.d.ts +2 -0
- package/apps/core/src/domain/actions/toBooleanAction.spec.d.ts +1 -0
- package/apps/core/src/domain/actions/toJSONAction.d.ts +2 -0
- package/apps/core/src/domain/actions/toJSONAction.spec.d.ts +1 -0
- package/apps/core/src/domain/actions/toNumberAction.d.ts +2 -0
- package/apps/core/src/domain/actions/toNumberAction.spec.d.ts +1 -0
- package/apps/core/src/domain/actions/toStringAction.d.ts +2 -0
- package/apps/core/src/domain/actions/toStringAction.spec.d.ts +1 -0
- package/apps/core/src/domain/actions/toUppercaseAction.d.ts +2 -0
- package/apps/core/src/domain/actions/toUppercaseAction.spec.d.ts +1 -0
- package/apps/core/src/domain/actions/validateEmailAction.d.ts +2 -0
- package/apps/core/src/domain/actions/validateEmailAction.spec.d.ts +1 -0
- package/apps/core/src/domain/actions/validateFormatAction.d.ts +2 -0
- package/apps/core/src/domain/actions/validateFormatAction.spec.d.ts +1 -0
- package/apps/core/src/domain/actions/validateRegexAction.d.ts +4 -0
- package/apps/core/src/domain/actions/validateRegexAction.spec.d.ts +1 -0
- package/apps/core/src/domain/actions/validateURLAction.d.ts +2 -0
- package/apps/core/src/domain/actions/validateURLAction.spec.d.ts +1 -0
- package/apps/core/src/domain/actionsList/actionsListDomain.d.ts +43 -0
- package/apps/core/src/domain/actionsList/actionsListDomain.spec.d.ts +1 -0
- package/apps/core/src/domain/actionsList/index.d.ts +1 -0
- package/apps/core/src/domain/apiKey/apiKeyDomain.d.ts +39 -0
- package/apps/core/src/domain/apiKey/apiKeyDomain.spec.d.ts +1 -0
- package/apps/core/src/domain/apiKey/index.d.ts +1 -0
- package/apps/core/src/domain/application/applicationDomain.d.ts +57 -0
- package/apps/core/src/domain/application/applicationDomain.spec.d.ts +1 -0
- package/apps/core/src/domain/application/index.d.ts +1 -0
- package/apps/core/src/domain/attribute/attributeDomain.d.ts +75 -0
- package/apps/core/src/domain/attribute/attributeDomain.spec.d.ts +1 -0
- package/apps/core/src/domain/attribute/helpers/attributeALHelper.d.ts +6 -0
- package/apps/core/src/domain/attribute/helpers/attributeValidationHelper.d.ts +16 -0
- package/apps/core/src/domain/attribute/index.d.ts +1 -0
- package/apps/core/src/domain/core/coreDomain.d.ts +4 -0
- package/apps/core/src/domain/core/coreDomain.spec.d.ts +1 -0
- package/apps/core/src/domain/core/index.d.ts +1 -0
- package/apps/core/src/domain/eventsManager/eventsManagerDomain.d.ts +23 -0
- package/apps/core/src/domain/eventsManager/eventsManagerDomain.spec.d.ts +1 -0
- package/apps/core/src/domain/eventsManager/index.d.ts +1 -0
- package/apps/core/src/domain/export/exportDomain.d.ts +40 -0
- package/apps/core/src/domain/export/exportDomain.spec.d.ts +1 -0
- package/apps/core/src/domain/export/index.d.ts +1 -0
- package/apps/core/src/domain/filesManager/_constants.d.ts +2 -0
- package/apps/core/src/domain/filesManager/filesManagerDomain.d.ts +88 -0
- package/apps/core/src/domain/filesManager/filesManagerDomain.spec.d.ts +1 -0
- package/apps/core/src/domain/filesManager/helpers/extractFileMetadata.d.ts +3 -0
- package/apps/core/src/domain/filesManager/helpers/getRootPathByKey.d.ts +2 -0
- package/apps/core/src/domain/filesManager/helpers/handleFileSystemEvent/_types.d.ts +32 -0
- package/apps/core/src/domain/filesManager/helpers/handleFileSystemEvent/handleCreateEvent.d.ts +4 -0
- package/apps/core/src/domain/filesManager/helpers/handleFileSystemEvent/handleFileSystemEvent.d.ts +28 -0
- package/apps/core/src/domain/filesManager/helpers/handleFileSystemEvent/handleFileSystemEvent.spec.d.ts +1 -0
- package/apps/core/src/domain/filesManager/helpers/handleFileSystemEvent/handleMoveEvent.d.ts +4 -0
- package/apps/core/src/domain/filesManager/helpers/handleFileSystemEvent/handleRemoveEvent.d.ts +4 -0
- package/apps/core/src/domain/filesManager/helpers/handleFileSystemEvent/handleUpdateEvent.d.ts +4 -0
- package/apps/core/src/domain/filesManager/helpers/handleFileSystemEvent/index.d.ts +1 -0
- package/apps/core/src/domain/filesManager/helpers/handleFileUtilsHelper.d.ts +39 -0
- package/apps/core/src/domain/filesManager/helpers/handlePreview.d.ts +22 -0
- package/apps/core/src/domain/filesManager/helpers/handlePreviewResponse.d.ts +23 -0
- package/apps/core/src/domain/filesManager/helpers/messagesHandler/index.d.ts +1 -0
- package/apps/core/src/domain/filesManager/helpers/messagesHandler/messagesHandler.d.ts +14 -0
- package/apps/core/src/domain/filesManager/helpers/messagesHandler/messagesHandler.spec.d.ts +1 -0
- package/apps/core/src/domain/filesManager/index.d.ts +1 -0
- package/apps/core/src/domain/form/formDomain.d.ts +60 -0
- package/apps/core/src/domain/form/formDomain.spec.d.ts +1 -0
- package/apps/core/src/domain/form/helpers/getElementValues.d.ts +21 -0
- package/apps/core/src/domain/form/helpers/mustIncludeElement.d.ts +11 -0
- package/apps/core/src/domain/form/index.d.ts +1 -0
- package/apps/core/src/domain/globalSettings/globalSettingsDomain.d.ts +18 -0
- package/apps/core/src/domain/globalSettings/globalSettingsDomain.spec.d.ts +1 -0
- package/apps/core/src/domain/globalSettings/index.d.ts +1 -0
- package/apps/core/src/domain/helpers/calculationVariable/calculationVariable.spec.d.ts +1 -0
- package/apps/core/src/domain/helpers/calculationVariable/index.d.ts +18 -0
- package/apps/core/src/domain/helpers/calculationsVariableFunctions/calculationsVariableFunctions.spec.d.ts +1 -0
- package/apps/core/src/domain/helpers/calculationsVariableFunctions/index.d.ts +17 -0
- package/apps/core/src/domain/helpers/createDirectory.d.ts +10 -0
- package/apps/core/src/domain/helpers/getCoreEntityById.d.ts +20 -0
- package/apps/core/src/domain/helpers/index.d.ts +6 -0
- package/apps/core/src/domain/helpers/storeUploadFile.d.ts +4 -0
- package/apps/core/src/domain/helpers/updateRecordLastModif.d.ts +13 -0
- package/apps/core/src/domain/helpers/updateTaskProgress.d.ts +18 -0
- package/apps/core/src/domain/helpers/validate.d.ts +24 -0
- package/apps/core/src/domain/import/importDomain.d.ts +72 -0
- package/apps/core/src/domain/import/importDomain.spec.d.ts +1 -0
- package/apps/core/src/domain/import/index.d.ts +1 -0
- package/apps/core/src/domain/indexationManager/index.d.ts +1 -0
- package/apps/core/src/domain/indexationManager/indexationManagerDomain.d.ts +40 -0
- package/apps/core/src/domain/indexationManager/indexationManagerDomain.spec.d.ts +1 -0
- package/apps/core/src/domain/library/helpers/checkSavePermission.d.ts +10 -0
- package/apps/core/src/domain/library/helpers/deleteAssociatedValues.d.ts +16 -0
- package/apps/core/src/domain/library/helpers/index.d.ts +4 -0
- package/apps/core/src/domain/library/helpers/runBehaviorPostSave.d.ts +18 -0
- package/apps/core/src/domain/library/helpers/runPreDelete.d.ts +13 -0
- package/apps/core/src/domain/library/helpers/runPreDelete.spec.d.ts +1 -0
- package/apps/core/src/domain/library/helpers/updateAssociatedForms.d.ts +10 -0
- package/apps/core/src/domain/library/helpers/validateLibAttributes.d.ts +8 -0
- package/apps/core/src/domain/library/helpers/validateLibFullTextAttributes.d.ts +4 -0
- package/apps/core/src/domain/library/helpers/validatePermConf.d.ts +9 -0
- package/apps/core/src/domain/library/helpers/validatePreviewsSettings.d.ts +5 -0
- package/apps/core/src/domain/library/helpers/validateRecordIdentityConf.d.ts +8 -0
- package/apps/core/src/domain/library/index.d.ts +1 -0
- package/apps/core/src/domain/library/libraryDomain.d.ts +49 -0
- package/apps/core/src/domain/library/libraryDomain.spec.d.ts +1 -0
- package/apps/core/src/domain/log/index.d.ts +1 -0
- package/apps/core/src/domain/log/logDomain.d.ts +16 -0
- package/apps/core/src/domain/log/logDomain.spec.d.ts +1 -0
- package/apps/core/src/domain/permission/_types.d.ts +209 -0
- package/apps/core/src/domain/permission/adminPermissionDomain.d.ts +11 -0
- package/apps/core/src/domain/permission/adminPermissionDomain.spec.d.ts +1 -0
- package/apps/core/src/domain/permission/applicationPermissionDomain.d.ts +11 -0
- package/apps/core/src/domain/permission/applicationPermissionDomain.spec.d.ts +1 -0
- package/apps/core/src/domain/permission/attributePermissionDomain.d.ts +11 -0
- package/apps/core/src/domain/permission/attributePermissionDomain.spec.d.ts +1 -0
- package/apps/core/src/domain/permission/helpers/defaultPermission.d.ts +9 -0
- package/apps/core/src/domain/permission/helpers/defaultPermission.spec.d.ts +1 -0
- package/apps/core/src/domain/permission/helpers/getPermissionCacheKey.d.ts +2 -0
- package/apps/core/src/domain/permission/helpers/getPermissionCacheKey.spec.d.ts +1 -0
- package/apps/core/src/domain/permission/helpers/getPermissionCachePatternKey.d.ts +8 -0
- package/apps/core/src/domain/permission/helpers/getPermissionCachePatternKey.spec.d.ts +1 -0
- package/apps/core/src/domain/permission/helpers/globalPermission.d.ts +45 -0
- package/apps/core/src/domain/permission/helpers/globalPermission.spec.d.ts +1 -0
- package/apps/core/src/domain/permission/helpers/index.d.ts +7 -0
- package/apps/core/src/domain/permission/helpers/permissionByUserGroups.d.ts +14 -0
- package/apps/core/src/domain/permission/helpers/permissionByUserGroups.spec.d.ts +1 -0
- package/apps/core/src/domain/permission/helpers/permissionsByActions.d.ts +12 -0
- package/apps/core/src/domain/permission/helpers/permissionsByActions.spec.d.ts +1 -0
- package/apps/core/src/domain/permission/helpers/reducePermissionsArray.d.ts +4 -0
- package/apps/core/src/domain/permission/helpers/reducePermissionsArray.spec.d.ts +1 -0
- package/apps/core/src/domain/permission/helpers/simplePermission.d.ts +10 -0
- package/apps/core/src/domain/permission/helpers/simplePermission.spec.d.ts +1 -0
- package/apps/core/src/domain/permission/helpers/treeBasedPermissions.d.ts +23 -0
- package/apps/core/src/domain/permission/helpers/treeBasedPermissions.spec.d.ts +1 -0
- package/apps/core/src/domain/permission/index.d.ts +10 -0
- package/apps/core/src/domain/permission/libraryPermissionDomain.d.ts +11 -0
- package/apps/core/src/domain/permission/libraryPermissionDomain.spec.d.ts +1 -0
- package/apps/core/src/domain/permission/permissionDomain.d.ts +45 -0
- package/apps/core/src/domain/permission/permissionDomain.spec.d.ts +1 -0
- package/apps/core/src/domain/permission/recordAttributePermissionDomain.d.ts +22 -0
- package/apps/core/src/domain/permission/recordAttributePermissionDomain.spec.d.ts +1 -0
- package/apps/core/src/domain/permission/recordPermissionDomain.d.ts +22 -0
- package/apps/core/src/domain/permission/recordPermissionDomain.spec.d.ts +1 -0
- package/apps/core/src/domain/permission/treeLibraryPermissionDomain.d.ts +11 -0
- package/apps/core/src/domain/permission/treeLibraryPermissionDomain.spec.d.ts +1 -0
- package/apps/core/src/domain/permission/treeNodePermissionDomain.d.ts +26 -0
- package/apps/core/src/domain/permission/treeNodePermissionDomain.spec.d.ts +1 -0
- package/apps/core/src/domain/permission/treePermissionDomain.d.ts +11 -0
- package/apps/core/src/domain/permission/treePermissionDomain.spec.d.ts +1 -0
- package/apps/core/src/domain/plugins/index.d.ts +1 -0
- package/apps/core/src/domain/plugins/pluginsDomain.d.ts +11 -0
- package/apps/core/src/domain/plugins/pluginsDomain.spec.d.ts +1 -0
- package/apps/core/src/domain/record/_types.d.ts +32 -0
- package/apps/core/src/domain/record/helpers/getAttributesFromField.d.ts +30 -0
- package/apps/core/src/domain/record/helpers/index.d.ts +1 -0
- package/apps/core/src/domain/record/helpers/sendRecordUpdateEvent.d.ts +11 -0
- package/apps/core/src/domain/record/helpers/validateLibrary.d.ts +6 -0
- package/apps/core/src/domain/record/index.d.ts +1 -0
- package/apps/core/src/domain/record/recordDomain.d.ts +102 -0
- package/apps/core/src/domain/record/recordDomain.spec.d.ts +1 -0
- package/apps/core/src/domain/tasksManager/index.d.ts +1 -0
- package/apps/core/src/domain/tasksManager/tasksManagerDomain.d.ts +68 -0
- package/apps/core/src/domain/tasksManager/tasksManagerDomain.spec.d.ts +1 -0
- package/apps/core/src/domain/tree/helpers/elementAncestors.d.ts +16 -0
- package/apps/core/src/domain/tree/helpers/getDefaultElement.d.ts +22 -0
- package/apps/core/src/domain/tree/helpers/getDefaultElement.spec.d.ts +1 -0
- package/apps/core/src/domain/tree/helpers/handleRemovedLibraries.d.ts +9 -0
- package/apps/core/src/domain/tree/helpers/handleRemovedLibraries.spec.d.ts +1 -0
- package/apps/core/src/domain/tree/helpers/index.d.ts +4 -0
- package/apps/core/src/domain/tree/helpers/treeDataValidation.d.ts +13 -0
- package/apps/core/src/domain/tree/helpers/treeDataValidation.spec.d.ts +1 -0
- package/apps/core/src/domain/tree/index.d.ts +1 -0
- package/apps/core/src/domain/tree/treeDomain.d.ts +159 -0
- package/apps/core/src/domain/tree/treeDomain.spec.d.ts +1 -0
- package/apps/core/src/domain/user/index.d.ts +1 -0
- package/apps/core/src/domain/user/userDomain.d.ts +36 -0
- package/apps/core/src/domain/user/userDomain.spec.d.ts +1 -0
- package/apps/core/src/domain/value/_types.d.ts +20 -0
- package/apps/core/src/domain/value/helpers/canSaveValue.d.ts +28 -0
- package/apps/core/src/domain/value/helpers/doesValueExist.d.ts +4 -0
- package/apps/core/src/domain/value/helpers/findValue.d.ts +25 -0
- package/apps/core/src/domain/value/helpers/prepareValue.d.ts +22 -0
- package/apps/core/src/domain/value/helpers/saveOneValue.d.ts +21 -0
- package/apps/core/src/domain/value/helpers/validateValue.d.ts +25 -0
- package/apps/core/src/domain/value/index.d.ts +1 -0
- package/apps/core/src/domain/value/valueDomain.d.ts +113 -0
- package/apps/core/src/domain/value/valueDomain.spec.d.ts +1 -0
- package/apps/core/src/domain/versionProfile/index.d.ts +1 -0
- package/apps/core/src/domain/versionProfile/versionProfileDomain.d.ts +45 -0
- package/apps/core/src/domain/versionProfile/versionProfileDomain.spec.d.ts +1 -0
- package/apps/core/src/domain/view/index.d.ts +1 -0
- package/apps/core/src/domain/view/viewDomain.d.ts +19 -0
- package/apps/core/src/domain/view/viewDomain.spec.d.ts +1 -0
- package/apps/core/src/env.d.ts +2 -0
- package/apps/core/src/errors/ApplicationError.d.ts +12 -0
- package/apps/core/src/errors/AuthenticationError.d.ts +3 -0
- package/apps/core/src/errors/GraphQLAuthenticationError.d.ts +5 -0
- package/apps/core/src/errors/LeavError.d.ts +19 -0
- package/apps/core/src/errors/PermissionError.d.ts +10 -0
- package/apps/core/src/errors/ValidationError.d.ts +10 -0
- package/apps/core/src/errors/typeguards.d.ts +6 -0
- package/apps/core/src/i18nextInit.d.ts +4 -0
- package/apps/core/src/index.d.ts +1 -0
- package/apps/core/src/infra/apiKey/apiKeyRepo.d.ts +29 -0
- package/apps/core/src/infra/apiKey/apiKeyRepo.spec.d.ts +1 -0
- package/apps/core/src/infra/apiKey/index.d.ts +1 -0
- package/apps/core/src/infra/application/applicationRepo.d.ts +38 -0
- package/apps/core/src/infra/application/applicationRepo.spec.d.ts +1 -0
- package/apps/core/src/infra/application/index.d.ts +1 -0
- package/apps/core/src/infra/attribute/attributeRepo.d.ts +56 -0
- package/apps/core/src/infra/attribute/attributeRepo.spec.d.ts +1 -0
- package/apps/core/src/infra/attribute/index.d.ts +1 -0
- package/apps/core/src/infra/attributeTypes/attributeAdvancedLinkRepo.d.ts +16 -0
- package/apps/core/src/infra/attributeTypes/attributeAdvancedLinkRepo.spec.d.ts +1 -0
- package/apps/core/src/infra/attributeTypes/attributeAdvancedRepo.d.ts +12 -0
- package/apps/core/src/infra/attributeTypes/attributeAdvancedRepo.spec.d.ts +1 -0
- package/apps/core/src/infra/attributeTypes/attributeSimpleLinkRepo.d.ts +14 -0
- package/apps/core/src/infra/attributeTypes/attributeSimpleLinkRepo.spec.d.ts +1 -0
- package/apps/core/src/infra/attributeTypes/attributeSimpleRepo.d.ts +11 -0
- package/apps/core/src/infra/attributeTypes/attributeSimpleRepo.spec.d.ts +1 -0
- package/apps/core/src/infra/attributeTypes/attributeTreeRepo.d.ts +15 -0
- package/apps/core/src/infra/attributeTypes/attributeTreeRepo.spec.d.ts +1 -0
- package/apps/core/src/infra/attributeTypes/attributeTypesRepo.d.ts +128 -0
- package/apps/core/src/infra/attributeTypes/attributeTypesRepo.spec.d.ts +1 -0
- package/apps/core/src/infra/attributeTypes/helpers/getConditionPart.d.ts +5 -0
- package/apps/core/src/infra/attributeTypes/helpers/index.d.ts +1 -0
- package/apps/core/src/infra/attributeTypes/index.d.ts +6 -0
- package/apps/core/src/infra/cache/cacheService.d.ts +33 -0
- package/apps/core/src/infra/cache/diskService.d.ts +7 -0
- package/apps/core/src/infra/cache/index.d.ts +4 -0
- package/apps/core/src/infra/cache/ramService.d.ts +9 -0
- package/apps/core/src/infra/cache/redis.d.ts +8 -0
- package/apps/core/src/infra/db/_constants.d.ts +2 -0
- package/apps/core/src/infra/db/_types.d.ts +23 -0
- package/apps/core/src/infra/db/db.d.ts +8 -0
- package/apps/core/src/infra/db/dbService.d.ts +60 -0
- package/apps/core/src/infra/db/dbService.spec.d.ts +1 -0
- package/apps/core/src/infra/db/dbUtils.d.ts +40 -0
- package/apps/core/src/infra/db/dbUtils.spec.d.ts +1 -0
- package/apps/core/src/infra/db/helpers/loadMigrationFile.d.ts +2 -0
- package/apps/core/src/infra/db/helpers/runMigrationFiles.d.ts +18 -0
- package/apps/core/src/infra/db/index.d.ts +3 -0
- package/apps/core/src/infra/db/migrations/000-init/coreCollections.d.ts +6 -0
- package/apps/core/src/infra/db/migrations/000-init/index.d.ts +17 -0
- package/apps/core/src/infra/db/migrations/000-init/systemApplications.d.ts +5 -0
- package/apps/core/src/infra/db/migrations/000-init/systemAttributes.d.ts +2 -0
- package/apps/core/src/infra/db/migrations/000-init/systemLibraries.d.ts +9 -0
- package/apps/core/src/infra/db/migrations/000-init/systemTrees.d.ts +5 -0
- package/apps/core/src/infra/db/migrations/001-delInstallApps.d.ts +7 -0
- package/apps/core/src/infra/db/migrations/002-previewsSettings.d.ts +15 -0
- package/apps/core/src/infra/db/migrations/003-filesMetadata.d.ts +11 -0
- package/apps/core/src/infra/db/migrations/004-formsLabels.d.ts +8 -0
- package/apps/core/src/infra/elasticSearch/elasticSearchClient.d.ts +7 -0
- package/apps/core/src/infra/elasticSearch/elasticSearchService.d.ts +22 -0
- package/apps/core/src/infra/elasticSearch/index.d.ts +1 -0
- package/apps/core/src/infra/filesManager/filesManagerRepo.d.ts +23 -0
- package/apps/core/src/infra/filesManager/filesManagerRepo.spec.d.ts +1 -0
- package/apps/core/src/infra/filesManager/index.d.ts +1 -0
- package/apps/core/src/infra/form/formRepo.d.ts +34 -0
- package/apps/core/src/infra/form/formRepo.spec.d.ts +1 -0
- package/apps/core/src/infra/form/index.d.ts +1 -0
- package/apps/core/src/infra/globalSettings/globalSettingsRepo.d.ts +15 -0
- package/apps/core/src/infra/globalSettings/globalSettingsRepo.spec.d.ts +1 -0
- package/apps/core/src/infra/globalSettings/index.d.ts +1 -0
- package/apps/core/src/infra/indexation/helpers/getSearchQuery.d.ts +4 -0
- package/apps/core/src/infra/indexation/helpers/getSearchQuery.spec.d.ts +1 -0
- package/apps/core/src/infra/indexation/helpers/index.d.ts +1 -0
- package/apps/core/src/infra/indexation/index.d.ts +1 -0
- package/apps/core/src/infra/indexation/indexationService.d.ts +27 -0
- package/apps/core/src/infra/library/index.d.ts +1 -0
- package/apps/core/src/infra/library/libraryRepo.d.ts +87 -0
- package/apps/core/src/infra/library/libraryRepo.spec.d.ts +1 -0
- package/apps/core/src/infra/log/index.d.ts +1 -0
- package/apps/core/src/infra/log/logRepo.d.ts +18 -0
- package/apps/core/src/infra/log/logRepo.spec.d.ts +1 -0
- package/apps/core/src/infra/mailer/index.d.ts +2 -0
- package/apps/core/src/infra/mailer/mailer.d.ts +7 -0
- package/apps/core/src/infra/mailer/mailerService.d.ts +26 -0
- package/apps/core/src/infra/oidc/__tests__/oidcClient.spec.d.ts +1 -0
- package/apps/core/src/infra/oidc/__tests__/oidcClientService.spec.d.ts +1 -0
- package/apps/core/src/infra/oidc/index.d.ts +2 -0
- package/apps/core/src/infra/oidc/oidcClient.d.ts +4 -0
- package/apps/core/src/infra/oidc/oidcClientService.d.ts +35 -0
- package/apps/core/src/infra/permission/index.d.ts +1 -0
- package/apps/core/src/infra/permission/permissionRepo.d.ts +27 -0
- package/apps/core/src/infra/permission/permissionRepo.spec.d.ts +1 -0
- package/apps/core/src/infra/plugins/index.d.ts +1 -0
- package/apps/core/src/infra/plugins/pluginsRepo.d.ts +6 -0
- package/apps/core/src/infra/plugins/pluginsRepo.spec.d.ts +1 -0
- package/apps/core/src/infra/record/helpers/filterTypes.d.ts +7 -0
- package/apps/core/src/infra/record/helpers/filterTypes.spec.d.ts +1 -0
- package/apps/core/src/infra/record/helpers/getClassifyingFiltersVariableQueryPart.d.ts +11 -0
- package/apps/core/src/infra/record/helpers/getClassifyingFiltersVariableQueryPart.spec.d.ts +1 -0
- package/apps/core/src/infra/record/helpers/getSearchVariableName.d.ts +8 -0
- package/apps/core/src/infra/record/helpers/getSearchVariableName.spec.d.ts +1 -0
- package/apps/core/src/infra/record/helpers/getSearchVariablesQueryPart.d.ts +15 -0
- package/apps/core/src/infra/record/helpers/getSearchVariablesQueryPart.spec.d.ts +1 -0
- package/apps/core/src/infra/record/helpers/index.d.ts +4 -0
- package/apps/core/src/infra/record/index.d.ts +1 -0
- package/apps/core/src/infra/record/recordRepo.d.ts +60 -0
- package/apps/core/src/infra/record/recordRepo.spec.d.ts +1 -0
- package/apps/core/src/infra/task/index.d.ts +1 -0
- package/apps/core/src/infra/task/taskRepo.d.ts +30 -0
- package/apps/core/src/infra/task/taskRepo.spec.d.ts +1 -0
- package/apps/core/src/infra/tree/_types.d.ts +9 -0
- package/apps/core/src/infra/tree/helpers/utils.d.ts +5 -0
- package/apps/core/src/infra/tree/index.d.ts +1 -0
- package/apps/core/src/infra/tree/treeRepo.d.ts +168 -0
- package/apps/core/src/infra/tree/treeRepo.spec.d.ts +1 -0
- package/apps/core/src/infra/userData/index.d.ts +1 -0
- package/apps/core/src/infra/userData/userDataRepo.d.ts +19 -0
- package/apps/core/src/infra/userData/userDataRepo.spec.d.ts +1 -0
- package/apps/core/src/infra/value/index.d.ts +1 -0
- package/apps/core/src/infra/value/valueRepo.d.ts +83 -0
- package/apps/core/src/infra/value/valueRepo.spec.d.ts +1 -0
- package/apps/core/src/infra/versionProfile/index.d.ts +1 -0
- package/apps/core/src/infra/versionProfile/versionProfileRepo.d.ts +35 -0
- package/apps/core/src/infra/versionProfile/versionProfileRepo.spec.d.ts +1 -0
- package/apps/core/src/infra/view/_types.d.ts +16 -0
- package/apps/core/src/infra/view/index.d.ts +1 -0
- package/apps/core/src/infra/view/viewRepo.d.ts +2 -0
- package/apps/core/src/infra/view/viewRepo.spec.d.ts +1 -0
- package/apps/core/src/interface/cli.d.ts +8 -0
- package/apps/core/src/interface/filesManager.d.ts +9 -0
- package/apps/core/src/interface/helpers/handleGraphqlError.d.ts +13 -0
- package/apps/core/src/interface/helpers/handleGraphqlError.spec.d.ts +1 -0
- package/apps/core/src/interface/helpers/index.d.ts +1 -0
- package/apps/core/src/interface/index.d.ts +5 -0
- package/apps/core/src/interface/indexationManager.d.ts +9 -0
- package/apps/core/src/interface/server.d.ts +30 -0
- package/apps/core/src/interface/tasksManager.d.ts +10 -0
- package/apps/core/src/pluginsLoader.d.ts +2 -0
- package/apps/core/src/testConfig.d.ts +1 -0
- package/apps/core/src/utils/helpers/getDefaultActionsList.d.ts +4 -0
- package/apps/core/src/utils/helpers/getLibraryDefaultAttributes.d.ts +3 -0
- package/apps/core/src/utils/helpers/getPreviewsAttributes.d.ts +2 -0
- package/apps/core/src/utils/helpers/getValuesToDisplay.d.ts +2 -0
- package/apps/core/src/utils/helpers/getValuesToDisplay.spec.d.ts +1 -0
- package/apps/core/src/utils/index.d.ts +3 -0
- package/apps/core/src/utils/logger/logger.d.ts +39 -0
- package/apps/core/src/utils/preview/preview.d.ts +1 -0
- package/apps/core/src/utils/typeGuards/index.d.ts +6 -0
- package/apps/core/src/utils/typeGuards/typeGuards.spec.d.ts +1 -0
- package/apps/core/src/utils/utils.d.ts +97 -0
- package/apps/core/src/utils/utils.spec.d.ts +1 -0
- package/libs/app-root-path/src/index.d.ts +1 -0
- package/libs/config-manager/src/index.d.ts +10 -0
- package/libs/message-broker/src/amqpService.d.ts +20 -0
- package/libs/message-broker/src/index.d.ts +2 -0
- package/libs/message-broker/src/types/amqp.d.ts +15 -0
- package/libs/utils/src/constants.d.ts +2 -0
- package/libs/utils/src/index.d.ts +11 -0
- package/libs/utils/src/types/applications.d.ts +1 -0
- package/libs/utils/src/types/attributes.d.ts +7 -0
- package/libs/utils/src/types/errors.d.ts +5 -0
- package/libs/utils/src/types/events.d.ts +75 -0
- package/libs/utils/src/types/files.d.ts +16 -0
- package/libs/utils/src/types/forms.d.ts +54 -0
- package/libs/utils/src/types/helpers.d.ts +13 -0
- package/libs/utils/src/types/logs.d.ts +2 -0
- package/libs/utils/src/types/previews.d.ts +5 -0
- package/libs/utils/src/types/values.d.ts +4 -0
- package/libs/utils/src/utils.d.ts +68 -0
- package/package.json +2 -2
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { ISystemTranslation } from './systemTranslation';
|
|
2
|
+
export declare enum OrderType {
|
|
3
|
+
CREATE = "CREATE",
|
|
4
|
+
CANCEL = "CANCEL",
|
|
5
|
+
DELETE = "DELETE"
|
|
6
|
+
}
|
|
7
|
+
export declare enum TaskStatus {
|
|
8
|
+
CREATED = "CREATED",
|
|
9
|
+
PENDING = "PENDING",
|
|
10
|
+
RUNNING = "RUNNING",
|
|
11
|
+
FAILED = "FAILED",
|
|
12
|
+
DONE = "DONE",
|
|
13
|
+
PENDING_CANCEL = "PENDING_CANCEL",
|
|
14
|
+
CANCELED = "CANCELED"
|
|
15
|
+
}
|
|
16
|
+
export declare enum TaskPriority {
|
|
17
|
+
LOW = 0,
|
|
18
|
+
MEDIUM = 1,
|
|
19
|
+
HIGH = 2
|
|
20
|
+
}
|
|
21
|
+
export type ITaskCreatePayload = Pick<ITask, 'label' | 'func' | 'priority' | 'callbacks'> & Partial<Pick<ITask, 'id' | 'startAt' | 'role'>>;
|
|
22
|
+
export type ITaskCancelPayload = Pick<ITask, 'id'>;
|
|
23
|
+
export type ITaskDeletePayload = Pick<ITask, 'id'> & {
|
|
24
|
+
archive: boolean;
|
|
25
|
+
};
|
|
26
|
+
export type Payload = ITaskCreatePayload | ITaskCancelPayload | ITaskDeletePayload;
|
|
27
|
+
export interface ITaskOrder {
|
|
28
|
+
time: number;
|
|
29
|
+
userId: string;
|
|
30
|
+
payload: Payload;
|
|
31
|
+
}
|
|
32
|
+
export interface ITaskFunc {
|
|
33
|
+
moduleName: string;
|
|
34
|
+
subModuleName?: string;
|
|
35
|
+
name: string;
|
|
36
|
+
args: {
|
|
37
|
+
[key: string]: any;
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
export declare enum TaskCallbackType {
|
|
41
|
+
ON_SUCCESS = "ON_SUCCESS",
|
|
42
|
+
ON_FAILURE = "ON_FAILURE",
|
|
43
|
+
ON_CANCEL = "ON_CANCEL"
|
|
44
|
+
}
|
|
45
|
+
export declare enum TaskCallbackStatus {
|
|
46
|
+
PENDING = "PENDING",
|
|
47
|
+
RUNNING = "RUNNING",
|
|
48
|
+
FAILED = "FAILED",
|
|
49
|
+
DONE = "DONE",
|
|
50
|
+
SKIPPED = "SKIPPED"
|
|
51
|
+
}
|
|
52
|
+
export type ITaskCallback = ITaskFunc & {
|
|
53
|
+
args: any[];
|
|
54
|
+
type: TaskCallbackType[];
|
|
55
|
+
status?: TaskCallbackStatus;
|
|
56
|
+
};
|
|
57
|
+
export interface ITaskFuncParams {
|
|
58
|
+
id?: string;
|
|
59
|
+
startAt?: number;
|
|
60
|
+
callbacks?: ITaskCallback[];
|
|
61
|
+
}
|
|
62
|
+
export declare enum TaskType {
|
|
63
|
+
EXPORT = "EXPORT",
|
|
64
|
+
IMPORT_CONFIG = "IMPORT_CONFIG",
|
|
65
|
+
IMPORT_DATA = "IMPORT_DATA",
|
|
66
|
+
INDEXATION = "INDEXATION"
|
|
67
|
+
}
|
|
68
|
+
export interface ITaskRole {
|
|
69
|
+
type: TaskType;
|
|
70
|
+
detail?: string;
|
|
71
|
+
}
|
|
72
|
+
export interface ITask {
|
|
73
|
+
id: string;
|
|
74
|
+
label: ISystemTranslation;
|
|
75
|
+
created_at: number;
|
|
76
|
+
created_by: string;
|
|
77
|
+
modified_at: number;
|
|
78
|
+
func: ITaskFunc;
|
|
79
|
+
startAt: number;
|
|
80
|
+
status: TaskStatus;
|
|
81
|
+
priority: TaskPriority;
|
|
82
|
+
archive: boolean;
|
|
83
|
+
role?: ITaskRole;
|
|
84
|
+
canceledBy?: string;
|
|
85
|
+
progress?: {
|
|
86
|
+
percent?: number;
|
|
87
|
+
description?: ISystemTranslation;
|
|
88
|
+
};
|
|
89
|
+
startedAt?: number;
|
|
90
|
+
completedAt?: number;
|
|
91
|
+
link?: {
|
|
92
|
+
name: string;
|
|
93
|
+
url: string;
|
|
94
|
+
};
|
|
95
|
+
callbacks?: ITaskCallback[];
|
|
96
|
+
workerId?: number;
|
|
97
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { ITreeNodePermissionsConf } from './permissions';
|
|
2
|
+
import { IRecord } from './record';
|
|
3
|
+
import { IGetCoreEntitiesParams, IKeyValue } from './shared';
|
|
4
|
+
export interface ITreeLibrarySettings {
|
|
5
|
+
allowMultiplePositions: boolean;
|
|
6
|
+
allowedChildren: string[];
|
|
7
|
+
allowedAtRoot: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface ITree extends ICoreEntity {
|
|
10
|
+
libraries: IKeyValue<ITreeLibrarySettings>;
|
|
11
|
+
behavior?: TreeBehavior;
|
|
12
|
+
system?: boolean;
|
|
13
|
+
permissions_conf?: ITreeNodePermissionsConf;
|
|
14
|
+
}
|
|
15
|
+
export interface ITreeFilterOptions extends ICoreEntityFilterOptions {
|
|
16
|
+
system?: boolean;
|
|
17
|
+
library?: string;
|
|
18
|
+
}
|
|
19
|
+
export interface IGetCoreTreesParams extends IGetCoreEntitiesParams {
|
|
20
|
+
filters?: ITreeFilterOptions;
|
|
21
|
+
}
|
|
22
|
+
export interface ITreeElement {
|
|
23
|
+
id: string;
|
|
24
|
+
library: string;
|
|
25
|
+
}
|
|
26
|
+
export interface ITreeNode {
|
|
27
|
+
id: string;
|
|
28
|
+
order?: number;
|
|
29
|
+
childrenCount?: number;
|
|
30
|
+
record?: IRecord;
|
|
31
|
+
parent?: ITreeNode[];
|
|
32
|
+
ancestors?: ITreeNode[];
|
|
33
|
+
children?: ITreeNode[];
|
|
34
|
+
linkedRecords?: IRecord[];
|
|
35
|
+
}
|
|
36
|
+
export type ITreeNodeLight = Pick<ITreeNode, 'id' | 'order'>;
|
|
37
|
+
export interface ITreeNodeWithTreeId extends ITreeNode {
|
|
38
|
+
treeId: string;
|
|
39
|
+
}
|
|
40
|
+
export type TreePaths = ITreeNode[];
|
|
41
|
+
export declare enum TreeBehavior {
|
|
42
|
+
STANDARD = "standard",
|
|
43
|
+
FILES = "files"
|
|
44
|
+
}
|
|
45
|
+
export declare enum TreeEventTypes {
|
|
46
|
+
ADD = "add",
|
|
47
|
+
REMOVE = "remove",
|
|
48
|
+
MOVE = "move"
|
|
49
|
+
}
|
|
50
|
+
export interface ITreeEvent {
|
|
51
|
+
type: TreeEventTypes;
|
|
52
|
+
treeId: string;
|
|
53
|
+
element: ITreeNodeLight & {
|
|
54
|
+
treeId: string;
|
|
55
|
+
};
|
|
56
|
+
parentNode?: ITreeNodeLight & {
|
|
57
|
+
treeId: string;
|
|
58
|
+
};
|
|
59
|
+
parentNodeBefore?: ITreeNodeLight & {
|
|
60
|
+
treeId: string;
|
|
61
|
+
};
|
|
62
|
+
order: number;
|
|
63
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { AnyPrimitive, Override } from '@leav/utils';
|
|
2
|
+
import { IDbEdge } from 'infra/db/_types';
|
|
3
|
+
import { IRecord } from './record';
|
|
4
|
+
import { ITreeNode, TreePaths } from './tree';
|
|
5
|
+
export type IValueFromGql = Override<Omit<IValue, 'version'>, {
|
|
6
|
+
value: IValue['payload'];
|
|
7
|
+
metadata: Array<{
|
|
8
|
+
name: string;
|
|
9
|
+
value: string;
|
|
10
|
+
}>;
|
|
11
|
+
}>;
|
|
12
|
+
export interface IValueVersion {
|
|
13
|
+
[treeName: string]: string;
|
|
14
|
+
}
|
|
15
|
+
export type IValueVersionFromGql = Array<{
|
|
16
|
+
treeId: string;
|
|
17
|
+
treeNodeId: string;
|
|
18
|
+
}>;
|
|
19
|
+
export type IValueFromGraphql = Override<IValue, {
|
|
20
|
+
metadata: Array<{
|
|
21
|
+
name: string;
|
|
22
|
+
value: string;
|
|
23
|
+
}>;
|
|
24
|
+
}>;
|
|
25
|
+
export interface IDbValueVersion {
|
|
26
|
+
[treeName: string]: string;
|
|
27
|
+
}
|
|
28
|
+
export interface IValueMetadata {
|
|
29
|
+
[fieldName: string]: IStandardValue | AnyPrimitive;
|
|
30
|
+
}
|
|
31
|
+
export interface IGenericValue {
|
|
32
|
+
id_value?: string;
|
|
33
|
+
attribute?: string;
|
|
34
|
+
created_at?: number;
|
|
35
|
+
modified_at?: number;
|
|
36
|
+
created_by?: string;
|
|
37
|
+
modified_by?: string;
|
|
38
|
+
version?: IValueVersion;
|
|
39
|
+
metadata?: IValueMetadata;
|
|
40
|
+
isInherited?: boolean;
|
|
41
|
+
isCalculated?: boolean;
|
|
42
|
+
}
|
|
43
|
+
export interface IStandardValue extends IGenericValue {
|
|
44
|
+
payload?: any;
|
|
45
|
+
raw_payload?: any;
|
|
46
|
+
}
|
|
47
|
+
export interface ILinkValue extends IGenericValue {
|
|
48
|
+
payload?: IRecord;
|
|
49
|
+
}
|
|
50
|
+
export interface ITreeValue extends IGenericValue {
|
|
51
|
+
payload?: ITreeNode;
|
|
52
|
+
treeId: string;
|
|
53
|
+
}
|
|
54
|
+
export type IValue = IStandardValue | ILinkValue | ITreeValue;
|
|
55
|
+
export interface IDateRangeValue<T = string | number> {
|
|
56
|
+
from: T;
|
|
57
|
+
to: T;
|
|
58
|
+
}
|
|
59
|
+
export interface IValuesOptions {
|
|
60
|
+
version?: IValueVersion;
|
|
61
|
+
forceArray?: boolean;
|
|
62
|
+
forceGetAllValues?: boolean;
|
|
63
|
+
[optionName: string]: any;
|
|
64
|
+
}
|
|
65
|
+
export interface IFindValueTree {
|
|
66
|
+
name: string;
|
|
67
|
+
currentIndex: number;
|
|
68
|
+
elements: TreePaths;
|
|
69
|
+
}
|
|
70
|
+
export interface IValueEdge extends IDbEdge {
|
|
71
|
+
attribute: string;
|
|
72
|
+
modified_at: number;
|
|
73
|
+
modified_by: string;
|
|
74
|
+
created_at: number;
|
|
75
|
+
created_by: string;
|
|
76
|
+
version?: IDbValueVersion;
|
|
77
|
+
metadata?: IValueMetadata;
|
|
78
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { IGetCoreEntitiesParams } from './shared';
|
|
2
|
+
import { ISystemTranslation } from './systemTranslation';
|
|
3
|
+
export interface IVersionProfile {
|
|
4
|
+
id: string;
|
|
5
|
+
label: ISystemTranslation;
|
|
6
|
+
description?: ISystemTranslation;
|
|
7
|
+
trees: string[];
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Accepted fields to filter version profiles list
|
|
11
|
+
*/
|
|
12
|
+
export interface IVersionProfileFilterOptions extends ICoreEntityFilterOptions {
|
|
13
|
+
trees?: string;
|
|
14
|
+
}
|
|
15
|
+
export interface IGetCoreVersionProfileParams extends IGetCoreEntitiesParams {
|
|
16
|
+
filters?: IVersionProfileFilterOptions;
|
|
17
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { IRecordFilterLight, IRecordSortLight } from './record';
|
|
2
|
+
import { ISystemTranslation } from './systemTranslation';
|
|
3
|
+
export declare enum ViewTypes {
|
|
4
|
+
LIST = "list",
|
|
5
|
+
CARDS = "cards",
|
|
6
|
+
TIMELINE = "timeline"
|
|
7
|
+
}
|
|
8
|
+
export declare enum ViewSizes {
|
|
9
|
+
SMALL = "SMALL",
|
|
10
|
+
MEDIUM = "MEDIUM",
|
|
11
|
+
BIG = "BIG"
|
|
12
|
+
}
|
|
13
|
+
declare global {
|
|
14
|
+
interface IView extends ICoreEntity {
|
|
15
|
+
shared?: boolean;
|
|
16
|
+
created_by?: string;
|
|
17
|
+
created_at?: number;
|
|
18
|
+
modified_at?: number;
|
|
19
|
+
library?: string;
|
|
20
|
+
description?: ISystemTranslation;
|
|
21
|
+
color?: string;
|
|
22
|
+
display?: IViewDisplay;
|
|
23
|
+
filters?: IRecordFilterLight[];
|
|
24
|
+
sort?: IRecordSortLight;
|
|
25
|
+
valuesVersions?: IViewValuesVersion;
|
|
26
|
+
settings: IViewSettings;
|
|
27
|
+
}
|
|
28
|
+
interface IViewDisplay {
|
|
29
|
+
type: ViewTypes;
|
|
30
|
+
size: ViewSizes;
|
|
31
|
+
}
|
|
32
|
+
interface IViewSettingsNameVal {
|
|
33
|
+
name: string;
|
|
34
|
+
value: unknown;
|
|
35
|
+
}
|
|
36
|
+
type ViewFromGraphQL = Omit<IView, 'valuesVersions' | 'settings'> & {
|
|
37
|
+
valuesVersions: IViewValuesVersionForGraphql[];
|
|
38
|
+
settings: IViewSettingsNameVal[];
|
|
39
|
+
};
|
|
40
|
+
interface IViewSettings {
|
|
41
|
+
[key: string]: unknown;
|
|
42
|
+
}
|
|
43
|
+
interface IViewFilterOptions extends ICoreEntityFilterOptions {
|
|
44
|
+
created_by?: string;
|
|
45
|
+
library?: string;
|
|
46
|
+
type?: ViewTypes;
|
|
47
|
+
}
|
|
48
|
+
interface IViewValuesVersion {
|
|
49
|
+
[treeId: string]: string;
|
|
50
|
+
}
|
|
51
|
+
interface IViewValuesVersionForGraphql {
|
|
52
|
+
treeId: string;
|
|
53
|
+
treeNode: {
|
|
54
|
+
id: string;
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ICoreSubscriptionsHelpersApp } from 'app/core/helpers/subscriptions';
|
|
2
|
+
import { IGraphqlApp } from 'app/graphql/graphqlApp';
|
|
3
|
+
import { InitQueryContextFunc } from 'app/helpers/initQueryContext';
|
|
4
|
+
import { IEventsManagerDomain } from 'domain/eventsManager/eventsManagerDomain';
|
|
5
|
+
import { IPermissionDomain } from 'domain/permission/permissionDomain';
|
|
6
|
+
import { IRecordDomain } from 'domain/record/recordDomain';
|
|
7
|
+
import { Express } from 'express';
|
|
8
|
+
import { IUtils } from 'utils/utils';
|
|
9
|
+
import winston from 'winston';
|
|
10
|
+
import { IAppGraphQLSchema } from '_types/graphql';
|
|
11
|
+
import { IApplicationDomain } from '../../domain/application/applicationDomain';
|
|
12
|
+
import { ValidateRequestTokenFunc } from '../helpers/validateRequestToken';
|
|
13
|
+
import { IAuthApp } from '../auth/authApp';
|
|
14
|
+
export interface IApplicationApp {
|
|
15
|
+
registerRoute(app: Express): void;
|
|
16
|
+
getGraphQLSchema(): Promise<IAppGraphQLSchema>;
|
|
17
|
+
}
|
|
18
|
+
export interface IApplicationAppDeps {
|
|
19
|
+
'core.app.graphql': IGraphqlApp;
|
|
20
|
+
'core.app.auth': IAuthApp;
|
|
21
|
+
'core.app.helpers.initQueryContext': InitQueryContextFunc;
|
|
22
|
+
'core.app.helpers.validateRequestToken': ValidateRequestTokenFunc;
|
|
23
|
+
'core.app.core.subscriptionsHelper': ICoreSubscriptionsHelpersApp;
|
|
24
|
+
'core.domain.application': IApplicationDomain;
|
|
25
|
+
'core.domain.permission': IPermissionDomain;
|
|
26
|
+
'core.domain.record': IRecordDomain;
|
|
27
|
+
'core.domain.eventsManager': IEventsManagerDomain;
|
|
28
|
+
'core.utils.logger': winston.Winston;
|
|
29
|
+
'core.utils': IUtils;
|
|
30
|
+
config: any;
|
|
31
|
+
}
|
|
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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './applicationApp';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { IApiKeyDomain } from 'domain/apiKey/apiKeyDomain';
|
|
2
|
+
import { IRecordDomain } from 'domain/record/recordDomain';
|
|
3
|
+
import { IUserDomain } from 'domain/user/userDomain';
|
|
4
|
+
import { IValueDomain } from 'domain/value/valueDomain';
|
|
5
|
+
import { Express, Response } from 'express';
|
|
6
|
+
import { IConfig } from '_types/config';
|
|
7
|
+
import { IAppGraphQLSchema } from '_types/graphql';
|
|
8
|
+
import { ICachesService } from '../../infra/cache/cacheService';
|
|
9
|
+
import { ITokenUserData } from '../../_types/auth';
|
|
10
|
+
import { IRequestWithContext } from '../../_types/express';
|
|
11
|
+
import winston from 'winston';
|
|
12
|
+
import { IOIDCClientService } from '../../infra/oidc/oidcClientService';
|
|
13
|
+
import { InitQueryContextFunc } from '../helpers/initQueryContext';
|
|
14
|
+
import { IConvertOIDCIdentifier } from '../helpers/convertOIDCIdentifier';
|
|
15
|
+
import { IncomingHttpHeaders } from 'http';
|
|
16
|
+
export interface IAuthApp {
|
|
17
|
+
getGraphQLSchema(): IAppGraphQLSchema;
|
|
18
|
+
validateRequestToken(params: {
|
|
19
|
+
apiKey?: string;
|
|
20
|
+
headers: IncomingHttpHeaders;
|
|
21
|
+
cookies?: {};
|
|
22
|
+
}, res: Response<unknown>): Promise<ITokenUserData>;
|
|
23
|
+
registerRoute(app: Express): void;
|
|
24
|
+
authenticateWithOIDCService(req: IRequestWithContext, res: Response<unknown>): Promise<void | Response>;
|
|
25
|
+
}
|
|
26
|
+
export interface IAuthAppDeps {
|
|
27
|
+
'core.domain.value': IValueDomain;
|
|
28
|
+
'core.domain.record': IRecordDomain;
|
|
29
|
+
'core.domain.apiKey': IApiKeyDomain;
|
|
30
|
+
'core.domain.user': IUserDomain;
|
|
31
|
+
'core.infra.cache.cacheService': ICachesService;
|
|
32
|
+
'core.utils.logger': winston.Winston;
|
|
33
|
+
'core.infra.oidc.oidcClientService': IOIDCClientService;
|
|
34
|
+
'core.app.helpers.initQueryContext': InitQueryContextFunc;
|
|
35
|
+
'core.app.helpers.convertOIDCIdentifier': IConvertOIDCIdentifier;
|
|
36
|
+
config: IConfig;
|
|
37
|
+
}
|
|
38
|
+
export default function ({ 'core.domain.value': valueDomain, 'core.domain.record': recordDomain, 'core.domain.apiKey': apiKeyDomain, 'core.domain.user': userDomain, 'core.utils.logger': logger, 'core.infra.cache.cacheService': cacheService, 'core.infra.oidc.oidcClientService': oidcClientService, 'core.app.helpers.initQueryContext': initQueryContext, 'core.app.helpers.convertOIDCIdentifier': convertOIDCIdentifier, config }: IAuthAppDeps): IAuthApp;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './authApp';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IActionsListDomain } from 'domain/actionsList/actionsListDomain';
|
|
2
|
+
import { i18n } from 'i18next';
|
|
3
|
+
import { IAppGraphQLSchema } from '_types/graphql';
|
|
4
|
+
import { IAppModule } from '_types/shared';
|
|
5
|
+
export interface ICoreActionListApp extends IAppModule {
|
|
6
|
+
getGraphQLSchema(): Promise<IAppGraphQLSchema>;
|
|
7
|
+
}
|
|
8
|
+
interface IDeps {
|
|
9
|
+
'core.domain.actionsList': IActionsListDomain;
|
|
10
|
+
translator: i18n;
|
|
11
|
+
}
|
|
12
|
+
export default function ({ 'core.domain.actionsList': actionsListDomain, translator }: IDeps): ICoreActionListApp;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { IApiKeyFilterOptions } from '_types/apiKey';
|
|
2
|
+
import { IPaginationParams, SortOrder } from '_types/list';
|
|
3
|
+
export interface IApiKeysArgs {
|
|
4
|
+
filters?: IApiKeyFilterOptions;
|
|
5
|
+
pagination: IPaginationParams;
|
|
6
|
+
sort: {
|
|
7
|
+
field: 'id';
|
|
8
|
+
order: SortOrder;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export interface ISaveApiKeyArgs {
|
|
12
|
+
apiKey: {
|
|
13
|
+
id: string;
|
|
14
|
+
label: string;
|
|
15
|
+
expiresAt: number;
|
|
16
|
+
userId: string;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
export interface IDeleteApiKeyArgs {
|
|
20
|
+
id: string;
|
|
21
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IApiKeyDomain } from 'domain/apiKey/apiKeyDomain';
|
|
2
|
+
import { IRecordDomain } from 'domain/record/recordDomain';
|
|
3
|
+
import { IAppGraphQLSchema } from '_types/graphql';
|
|
4
|
+
export interface ICoreVersionProfileApp {
|
|
5
|
+
getGraphQLSchema(): Promise<IAppGraphQLSchema>;
|
|
6
|
+
}
|
|
7
|
+
interface IDeps {
|
|
8
|
+
'core.domain.apiKey': IApiKeyDomain;
|
|
9
|
+
'core.domain.record': IRecordDomain;
|
|
10
|
+
}
|
|
11
|
+
export default function ({ 'core.domain.apiKey': apiKeyDomain, 'core.domain.record': recordDomain }: IDeps): ICoreVersionProfileApp;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { IActionsListDomain } from 'domain/actionsList/actionsListDomain';
|
|
2
|
+
import { IAttributeDomain } from 'domain/attribute/attributeDomain';
|
|
3
|
+
import { ILibraryDomain } from 'domain/library/libraryDomain';
|
|
4
|
+
import { IPermissionDomain } from 'domain/permission/permissionDomain';
|
|
5
|
+
import { IRecordDomain } from 'domain/record/recordDomain';
|
|
6
|
+
import { ITreeDomain } from 'domain/tree/treeDomain';
|
|
7
|
+
import { IVersionProfileDomain } from 'domain/versionProfile/versionProfileDomain';
|
|
8
|
+
import { IUtils } from 'utils/utils';
|
|
9
|
+
import { IAppGraphQLSchema } from '_types/graphql';
|
|
10
|
+
import { IGraphqlApp } from '../../graphql/graphqlApp';
|
|
11
|
+
import { ICoreApp } from '../coreApp';
|
|
12
|
+
export interface ICoreAttributeApp {
|
|
13
|
+
getGraphQLSchema(): Promise<IAppGraphQLSchema>;
|
|
14
|
+
}
|
|
15
|
+
interface IDeps {
|
|
16
|
+
'core.domain.attribute': IAttributeDomain;
|
|
17
|
+
'core.domain.library': ILibraryDomain;
|
|
18
|
+
'core.domain.record': IRecordDomain;
|
|
19
|
+
'core.domain.tree': ITreeDomain;
|
|
20
|
+
'core.domain.actionsList': IActionsListDomain;
|
|
21
|
+
'core.domain.permission': IPermissionDomain;
|
|
22
|
+
'core.domain.versionProfile': IVersionProfileDomain;
|
|
23
|
+
'core.app.graphql': IGraphqlApp;
|
|
24
|
+
'core.app.core': ICoreApp;
|
|
25
|
+
'core.utils': IUtils;
|
|
26
|
+
}
|
|
27
|
+
export default function (deps: IDeps): ICoreAttributeApp;
|
|
28
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ISystemTranslationGenerator } from 'app/graphql/customScalars/systemTranslation/systemTranslation';
|
|
2
|
+
import { ICoreDomain } from 'domain/core/coreDomain';
|
|
3
|
+
import { IEventsManagerDomain } from 'domain/eventsManager/eventsManagerDomain';
|
|
4
|
+
import { GraphQLScalarType } from 'graphql';
|
|
5
|
+
import { i18n } from 'i18next';
|
|
6
|
+
import { IAppGraphQLSchema } from '_types/graphql';
|
|
7
|
+
import { IAppModule } from '_types/shared';
|
|
8
|
+
import { ISystemTranslation } from '_types/systemTranslation';
|
|
9
|
+
import { IGraphqlApp } from '../graphql/graphqlApp';
|
|
10
|
+
export interface ICoreApp extends IAppModule {
|
|
11
|
+
getGraphQLSchema(): Promise<IAppGraphQLSchema>;
|
|
12
|
+
filterSysTranslationField(fieldData: ISystemTranslation, requestedLangs: string[]): ISystemTranslation | null;
|
|
13
|
+
initPubSubEventsConsumer(): Promise<void>;
|
|
14
|
+
}
|
|
15
|
+
export interface ICoreAppDeps {
|
|
16
|
+
'core.domain.core': ICoreDomain;
|
|
17
|
+
'core.domain.eventsManager': IEventsManagerDomain;
|
|
18
|
+
'core.app.graphql': IGraphqlApp;
|
|
19
|
+
'core.app.graphql.customScalars.systemTranslation': ISystemTranslationGenerator;
|
|
20
|
+
'core.app.graphql.customScalars.dateTime': GraphQLScalarType;
|
|
21
|
+
'core.app.graphql.customScalars.any': GraphQLScalarType;
|
|
22
|
+
config: any;
|
|
23
|
+
translator: i18n;
|
|
24
|
+
}
|
|
25
|
+
export default function ({ 'core.domain.core': coreDomain, 'core.domain.eventsManager': eventsManagerDomain, 'core.app.graphql': graphqlApp, 'core.app.graphql.customScalars.systemTranslation': systemTranslation, 'core.app.graphql.customScalars.dateTime': DateTime, 'core.app.graphql.customScalars.any': Any, config, translator }: ICoreAppDeps): ICoreApp;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { InitQueryContextFunc } from 'app/helpers/initQueryContext';
|
|
2
|
+
import { IEventsManagerDomain } from 'domain/eventsManager/eventsManagerDomain';
|
|
3
|
+
import { IConfig } from '_types/config';
|
|
4
|
+
import { IAppModule } from '_types/shared';
|
|
5
|
+
export type IEventsManagerApp = IAppModule;
|
|
6
|
+
interface IDeps {
|
|
7
|
+
'core.domain.eventsManager': IEventsManagerDomain;
|
|
8
|
+
'core.app.helpers.initQueryContext': InitQueryContextFunc;
|
|
9
|
+
config: IConfig;
|
|
10
|
+
}
|
|
11
|
+
export default function ({ 'core.app.helpers.initQueryContext': initQueryContext, 'core.domain.eventsManager': eventsManagerDomain, config }: IDeps): IEventsManagerApp;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IExportDomain } from 'domain/export/exportDomain';
|
|
2
|
+
import { IAppGraphQLSchema } from '_types/graphql';
|
|
3
|
+
export interface ICoreExportApp {
|
|
4
|
+
getGraphQLSchema(): Promise<IAppGraphQLSchema>;
|
|
5
|
+
}
|
|
6
|
+
interface IDeps {
|
|
7
|
+
'core.domain.export': IExportDomain;
|
|
8
|
+
}
|
|
9
|
+
export default function ({ 'core.domain.export': exportDomain }: IDeps): ICoreExportApp;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { InitQueryContextFunc } from 'app/helpers/initQueryContext';
|
|
2
|
+
import { IEventsManagerDomain } from 'domain/eventsManager/eventsManagerDomain';
|
|
3
|
+
import { Express } from 'express';
|
|
4
|
+
import { IConfig } from '_types/config';
|
|
5
|
+
import { IAppGraphQLSchema } from '_types/graphql';
|
|
6
|
+
import { IFilesManagerDomain } from '../../domain/filesManager/filesManagerDomain';
|
|
7
|
+
import { ValidateRequestTokenFunc } from '../helpers/validateRequestToken';
|
|
8
|
+
export interface IFilesManagerApp {
|
|
9
|
+
init(): Promise<void>;
|
|
10
|
+
getGraphQLSchema(): Promise<IAppGraphQLSchema>;
|
|
11
|
+
registerRoute(app: Express): void;
|
|
12
|
+
}
|
|
13
|
+
interface IDeps {
|
|
14
|
+
'core.app.helpers.initQueryContext': InitQueryContextFunc;
|
|
15
|
+
'core.app.helpers.validateRequestToken': ValidateRequestTokenFunc;
|
|
16
|
+
'core.domain.filesManager': IFilesManagerDomain;
|
|
17
|
+
'core.domain.eventsManager': IEventsManagerDomain;
|
|
18
|
+
config: IConfig;
|
|
19
|
+
}
|
|
20
|
+
export default function ({ 'core.app.helpers.initQueryContext': initQueryContext, 'core.app.helpers.validateRequestToken': validateRequestToken, 'core.domain.filesManager': filesManagerDomain, 'core.domain.eventsManager': eventsManager, config }: IDeps): IFilesManagerApp;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { IForm, IFormDependentElements, IFormElement } from '_types/forms';
|
|
2
|
+
import { IPaginationParams, ISortParams } from '_types/list';
|
|
3
|
+
export type IFormForGraphql = Omit<IForm, 'elements'> & {
|
|
4
|
+
elements: IFormDependentElementsForGraphQL[];
|
|
5
|
+
};
|
|
6
|
+
export type IFormDependentElementsForGraphQL = Omit<IFormDependentElements, 'elements'> & {
|
|
7
|
+
elements: IFormElementForGraphQL[];
|
|
8
|
+
};
|
|
9
|
+
export type IFormElementForGraphQL = Omit<IFormElement, 'settings'> & {
|
|
10
|
+
settings: Array<{
|
|
11
|
+
key: string;
|
|
12
|
+
value: any;
|
|
13
|
+
}>;
|
|
14
|
+
};
|
|
15
|
+
export interface IGetFormArgs {
|
|
16
|
+
filters: ICoreEntityFilterOptions & {
|
|
17
|
+
library: string;
|
|
18
|
+
system?: boolean;
|
|
19
|
+
};
|
|
20
|
+
pagination: IPaginationParams;
|
|
21
|
+
sort: ISortParams;
|
|
22
|
+
}
|
|
23
|
+
export interface IGetRecordFormArgs {
|
|
24
|
+
recordId: string;
|
|
25
|
+
libraryId: string;
|
|
26
|
+
formId: string;
|
|
27
|
+
version?: Array<{
|
|
28
|
+
treeId: string;
|
|
29
|
+
treeNodeId: string;
|
|
30
|
+
}>;
|
|
31
|
+
}
|
|
32
|
+
export interface ISaveFormArgs {
|
|
33
|
+
form: IFormForGraphql;
|
|
34
|
+
}
|
|
35
|
+
export interface IDeleteFormArgs {
|
|
36
|
+
library: string;
|
|
37
|
+
id: string;
|
|
38
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ConvertVersionFromGqlFormatFunc } from 'app/helpers/convertVersionFromGqlFormat';
|
|
2
|
+
import { IAttributeDomain } from 'domain/attribute/attributeDomain';
|
|
3
|
+
import { IFormDomain } from 'domain/form/formDomain';
|
|
4
|
+
import { ILibraryDomain } from 'domain/library/libraryDomain';
|
|
5
|
+
import { IUtils } from 'utils/utils';
|
|
6
|
+
import { IAppGraphQLSchema } from '_types/graphql';
|
|
7
|
+
export interface ICoreFormApp {
|
|
8
|
+
getGraphQLSchema(): IAppGraphQLSchema;
|
|
9
|
+
}
|
|
10
|
+
interface IDeps {
|
|
11
|
+
'core.domain.attribute': IAttributeDomain;
|
|
12
|
+
'core.domain.form': IFormDomain;
|
|
13
|
+
'core.domain.library': ILibraryDomain;
|
|
14
|
+
'core.app.helpers.convertVersionFromGqlFormat': ConvertVersionFromGqlFormatFunc;
|
|
15
|
+
'core.utils': IUtils;
|
|
16
|
+
}
|
|
17
|
+
export default function ({ 'core.domain.attribute': attributeDomain, 'core.domain.form': formDomain, 'core.domain.library': libraryDomain, 'core.app.helpers.convertVersionFromGqlFormat': convertVersionFromGqlFormat, 'core.utils': utils }: IDeps): {
|
|
18
|
+
getGraphQLSchema(): IAppGraphQLSchema;
|
|
19
|
+
};
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { InitQueryContextFunc } from 'app/helpers/initQueryContext';
|
|
2
|
+
import { IRecordDomain } from 'domain/record/recordDomain';
|
|
3
|
+
import { Express } from 'express';
|
|
4
|
+
import { IUtils } from 'utils/utils';
|
|
5
|
+
import winston from 'winston';
|
|
6
|
+
import { IConfig } from '_types/config';
|
|
7
|
+
import { IAppGraphQLSchema } from '_types/graphql';
|
|
8
|
+
import { IAppModule } from '_types/shared';
|
|
9
|
+
import { IGlobalSettingsDomain } from '../../domain/globalSettings/globalSettingsDomain';
|
|
10
|
+
export interface ICoreApp extends IAppModule {
|
|
11
|
+
getGraphQLSchema(): Promise<IAppGraphQLSchema>;
|
|
12
|
+
registerRoute(app: Express): void;
|
|
13
|
+
}
|
|
14
|
+
interface IDeps {
|
|
15
|
+
'core.app.helpers.initQueryContext': InitQueryContextFunc;
|
|
16
|
+
'core.domain.globalSettings': IGlobalSettingsDomain;
|
|
17
|
+
'core.domain.record': IRecordDomain;
|
|
18
|
+
'core.utils.logger': winston.Winston;
|
|
19
|
+
'core.utils': IUtils;
|
|
20
|
+
config: IConfig;
|
|
21
|
+
}
|
|
22
|
+
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;
|
|
23
|
+
export {};
|