@aristid/leav-types 0.0.3 → 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 +4 -8
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { IActionsListFunction } from './actionsList';
|
|
2
|
+
import { IAppGraphQLSchema } from './graphql';
|
|
3
|
+
import { PermissionTypes } from './permissions';
|
|
4
|
+
import { PluginRegisterRoute } from './endpoint';
|
|
5
|
+
export interface IExtensionPoints {
|
|
6
|
+
[name: string]: (...args: any[]) => void;
|
|
7
|
+
}
|
|
8
|
+
export interface IExtensionPointsFunctions extends IExtensionPoints {
|
|
9
|
+
/**
|
|
10
|
+
* Method to extend graphQL schema.
|
|
11
|
+
*
|
|
12
|
+
* This method is called automatically by `leav-engine/apps/core/src/pluginsLoader.ts`.
|
|
13
|
+
*
|
|
14
|
+
* @param {IAppGraphQLSchema} schemaPart
|
|
15
|
+
*/
|
|
16
|
+
registerGraphQLSchema: (schemaPart: IAppGraphQLSchema) => void;
|
|
17
|
+
registerTranslations: (path: string) => Promise<void>;
|
|
18
|
+
registerPermissionActions: (type: PermissionTypes, actions: string[], applyOn?: string[]) => void;
|
|
19
|
+
registerEventActions: (actions: string[], prefix: string) => void;
|
|
20
|
+
registerActions: (actions: IActionsListFunction[]) => void;
|
|
21
|
+
/**
|
|
22
|
+
* Method to register some Express routes inside LEAV Core.
|
|
23
|
+
*
|
|
24
|
+
* This method is called automatically by `leav-engine/apps/core/src/pluginsLoader.ts`.
|
|
25
|
+
*
|
|
26
|
+
* @param {PluginRegisterRoute[]} routes - list of routes to register
|
|
27
|
+
*/
|
|
28
|
+
registerRoutes: (routes: PluginRegisterRoute[]) => void;
|
|
29
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { IEmbeddedAttribute } from './attribute';
|
|
2
|
+
export declare enum FileEvents {
|
|
3
|
+
CREATE = "CREATE",
|
|
4
|
+
REMOVE = "REMOVE",
|
|
5
|
+
UPDATE = "UPDATE",
|
|
6
|
+
MOVE = "MOVE"
|
|
7
|
+
}
|
|
8
|
+
export declare enum FilesAttributes {
|
|
9
|
+
ROOT_KEY = "root_key",
|
|
10
|
+
FILE_PATH = "file_path",
|
|
11
|
+
FILE_NAME = "file_name",
|
|
12
|
+
INODE = "inode",
|
|
13
|
+
ACTIVE = "active",
|
|
14
|
+
HASH = "hash",
|
|
15
|
+
FILE_SIZE = "file_size",
|
|
16
|
+
MIME_TYPE1 = "mime_type1",
|
|
17
|
+
MIME_TYPE2 = "mime_type2",
|
|
18
|
+
HAS_CLIPPING_PATH = "has_clipping_path",
|
|
19
|
+
COLOR_SPACE = "color_space",
|
|
20
|
+
COLOR_PROFILE = "color_profile",
|
|
21
|
+
WIDTH = "width",
|
|
22
|
+
HEIGHT = "height",
|
|
23
|
+
PRINT_WIDTH = "print_width",
|
|
24
|
+
PRINT_HEIGHT = "print_height",
|
|
25
|
+
RESOLUTION = "resolution"
|
|
26
|
+
}
|
|
27
|
+
export declare const PREVIEWS_ATTRIBUTE_SUFFIX = "previews";
|
|
28
|
+
export declare const PREVIEWS_STATUS_ATTRIBUTE_SUFFIX = "previews_status";
|
|
29
|
+
export interface IFileEventData {
|
|
30
|
+
event: FileEvents;
|
|
31
|
+
time: number;
|
|
32
|
+
pathBefore: string | null;
|
|
33
|
+
pathAfter: string | null;
|
|
34
|
+
inode: number;
|
|
35
|
+
rootKey: string;
|
|
36
|
+
isDirectory: boolean;
|
|
37
|
+
hash?: string;
|
|
38
|
+
recordId?: string;
|
|
39
|
+
}
|
|
40
|
+
export interface IPreviewVersionSize {
|
|
41
|
+
size: number;
|
|
42
|
+
name: string;
|
|
43
|
+
output?: string;
|
|
44
|
+
}
|
|
45
|
+
export interface IPreviewVersion {
|
|
46
|
+
background: boolean | string;
|
|
47
|
+
density: number;
|
|
48
|
+
pdf?: string;
|
|
49
|
+
sizes: IPreviewVersionSize[];
|
|
50
|
+
}
|
|
51
|
+
export interface IPreviewMessage {
|
|
52
|
+
input: string;
|
|
53
|
+
context: any;
|
|
54
|
+
versions: IPreviewVersion[];
|
|
55
|
+
}
|
|
56
|
+
export interface IPreviewsStatus {
|
|
57
|
+
[sizeName: string]: {
|
|
58
|
+
status: number;
|
|
59
|
+
message: string;
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
export interface IPreviews {
|
|
63
|
+
[sizeName: string]: string;
|
|
64
|
+
}
|
|
65
|
+
export interface IPreviewResponseResult {
|
|
66
|
+
error: number;
|
|
67
|
+
error_detail: string;
|
|
68
|
+
params?: {
|
|
69
|
+
background?: true | false | string;
|
|
70
|
+
density?: number;
|
|
71
|
+
size: number;
|
|
72
|
+
output: string;
|
|
73
|
+
name: string;
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
export interface IPreviewResponseContext {
|
|
77
|
+
library: string;
|
|
78
|
+
recordId: string;
|
|
79
|
+
}
|
|
80
|
+
export interface IPreviewResponse {
|
|
81
|
+
context: IPreviewResponseContext;
|
|
82
|
+
input: string;
|
|
83
|
+
results?: IPreviewResponseResult[];
|
|
84
|
+
}
|
|
85
|
+
export interface IPreviewAttributesSettings {
|
|
86
|
+
[attributeId: string]: IEmbeddedAttribute[];
|
|
87
|
+
}
|
|
88
|
+
export type IFileMetadata = {
|
|
89
|
+
[key in FilesAttributes]?: string | number | boolean;
|
|
90
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { IKeyValue } from './shared';
|
|
2
|
+
import { IValue } from './value';
|
|
3
|
+
export interface IForm extends ICoreEntity {
|
|
4
|
+
library: string;
|
|
5
|
+
system?: boolean;
|
|
6
|
+
dependencyAttributes?: string[];
|
|
7
|
+
elements?: IFormDependentElements[];
|
|
8
|
+
}
|
|
9
|
+
export interface IRecordForm {
|
|
10
|
+
id: string;
|
|
11
|
+
library: string;
|
|
12
|
+
system: boolean;
|
|
13
|
+
recordId: string;
|
|
14
|
+
dependencyAttributes?: string[];
|
|
15
|
+
elements: IFormElementWithValues[];
|
|
16
|
+
}
|
|
17
|
+
export declare enum FormElementTypes {
|
|
18
|
+
field = "field",
|
|
19
|
+
layout = "layout"
|
|
20
|
+
}
|
|
21
|
+
export type IFormStrict = Required<IForm>;
|
|
22
|
+
export interface IFormElementsDependency {
|
|
23
|
+
attribute: string;
|
|
24
|
+
value: string;
|
|
25
|
+
}
|
|
26
|
+
export interface IFormDependentElements {
|
|
27
|
+
dependencyValue?: IFormElementsDependency | null;
|
|
28
|
+
elements: IFormElement[];
|
|
29
|
+
}
|
|
30
|
+
export interface IFormElement {
|
|
31
|
+
id: string;
|
|
32
|
+
order: number;
|
|
33
|
+
type: FormElementTypes;
|
|
34
|
+
uiElementType: string;
|
|
35
|
+
containerId: string;
|
|
36
|
+
settings?: IKeyValue<any>;
|
|
37
|
+
}
|
|
38
|
+
export interface IFormElementWithValues extends IFormElement {
|
|
39
|
+
values?: IValue[];
|
|
40
|
+
valueError?: string;
|
|
41
|
+
}
|
|
42
|
+
export type IFormElementWithValuesAndChildren = IFormElementWithValues & {
|
|
43
|
+
children: IFormElementWithValuesAndChildren[];
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* Accepted fields to filter attributes list
|
|
47
|
+
*/
|
|
48
|
+
export interface IFormFilterOptions extends ICoreEntityFilterOptions {
|
|
49
|
+
library?: string;
|
|
50
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { IValueMetadata } from './value';
|
|
2
|
+
export declare enum ImportType {
|
|
3
|
+
IGNORE = "IGNORE",
|
|
4
|
+
STANDARD = "STANDARD",
|
|
5
|
+
LINK = "LINK"
|
|
6
|
+
}
|
|
7
|
+
export declare enum ImportMode {
|
|
8
|
+
INSERT = "insert",
|
|
9
|
+
UPDATE = "update",
|
|
10
|
+
UPSERT = "upsert"
|
|
11
|
+
}
|
|
12
|
+
export declare enum Action {
|
|
13
|
+
ADD = "add",
|
|
14
|
+
REPLACE = "replace",
|
|
15
|
+
UPDATE = "update",
|
|
16
|
+
REMOVE = "remove"
|
|
17
|
+
}
|
|
18
|
+
export interface IMatch {
|
|
19
|
+
attribute: string;
|
|
20
|
+
value: string;
|
|
21
|
+
}
|
|
22
|
+
export interface IValue {
|
|
23
|
+
library?: string;
|
|
24
|
+
payload: string | IMatch[];
|
|
25
|
+
metadata?: IValueMetadata;
|
|
26
|
+
version?: IImportValueVersion[];
|
|
27
|
+
}
|
|
28
|
+
export interface IImportValueVersion {
|
|
29
|
+
treeId: string;
|
|
30
|
+
element: IMatch[];
|
|
31
|
+
library?: string;
|
|
32
|
+
}
|
|
33
|
+
export interface IData {
|
|
34
|
+
attribute: string;
|
|
35
|
+
values: IValue[];
|
|
36
|
+
action: Action;
|
|
37
|
+
}
|
|
38
|
+
export interface IElement {
|
|
39
|
+
library: string;
|
|
40
|
+
matches: IMatch[];
|
|
41
|
+
mode: ImportMode;
|
|
42
|
+
data: IData[];
|
|
43
|
+
}
|
|
44
|
+
export interface ITree {
|
|
45
|
+
library: string;
|
|
46
|
+
treeId: string;
|
|
47
|
+
matches: IMatch[];
|
|
48
|
+
parent?: {
|
|
49
|
+
library: string;
|
|
50
|
+
matches: IMatch[];
|
|
51
|
+
};
|
|
52
|
+
action: Action;
|
|
53
|
+
order?: number;
|
|
54
|
+
}
|
|
55
|
+
export interface IFile {
|
|
56
|
+
elements: IElement[];
|
|
57
|
+
trees: ITree[];
|
|
58
|
+
}
|
|
59
|
+
export interface ICacheParams {
|
|
60
|
+
cacheDataPath: string;
|
|
61
|
+
cacheKey: number;
|
|
62
|
+
isCacheActive: boolean;
|
|
63
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { IAttribute } from './attribute';
|
|
2
|
+
import { IPreviewVersion } from './filesManager';
|
|
3
|
+
import { ITreePermissionsConf } from './permissions';
|
|
4
|
+
import { IRecordIdentityConf } from './record';
|
|
5
|
+
import { ISystemTranslation } from './systemTranslation';
|
|
6
|
+
export interface ILibrary extends ICoreEntity {
|
|
7
|
+
system?: boolean;
|
|
8
|
+
behavior?: LibraryBehavior;
|
|
9
|
+
/**
|
|
10
|
+
* List of attributes usable in this library
|
|
11
|
+
*/
|
|
12
|
+
attributes?: IAttribute[];
|
|
13
|
+
/**
|
|
14
|
+
* Records permissions settings for this library
|
|
15
|
+
*/
|
|
16
|
+
permissions_conf?: ITreePermissionsConf;
|
|
17
|
+
/**
|
|
18
|
+
* Records identity settings for this library
|
|
19
|
+
*/
|
|
20
|
+
recordIdentityConf?: IRecordIdentityConf;
|
|
21
|
+
/**
|
|
22
|
+
* List of indexed attributes
|
|
23
|
+
*/
|
|
24
|
+
fullTextAttributes?: IAttribute[];
|
|
25
|
+
/**
|
|
26
|
+
* ID of default view
|
|
27
|
+
*/
|
|
28
|
+
defaultView?: string;
|
|
29
|
+
icon?: {
|
|
30
|
+
libraryId: string;
|
|
31
|
+
recordId: string;
|
|
32
|
+
};
|
|
33
|
+
previewsSettings?: ILibraryPreviewsSettings[];
|
|
34
|
+
}
|
|
35
|
+
export interface ILibraryFilterOptions extends ICoreEntityFilterOptions {
|
|
36
|
+
system?: boolean;
|
|
37
|
+
}
|
|
38
|
+
export interface ILibraryPreviewsSettings {
|
|
39
|
+
label: ISystemTranslation;
|
|
40
|
+
description?: ISystemTranslation;
|
|
41
|
+
system: boolean;
|
|
42
|
+
versions: IPreviewVersion;
|
|
43
|
+
}
|
|
44
|
+
export declare enum LibraryBehavior {
|
|
45
|
+
STANDARD = "standard",
|
|
46
|
+
FILES = "files",
|
|
47
|
+
DIRECTORIES = "directories"
|
|
48
|
+
}
|
|
49
|
+
export declare const USERS_LIBRARY = "users";
|
|
50
|
+
export declare const USERS_GROUPS_LIBRARY = "users_groups";
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export interface IList<T> {
|
|
2
|
+
totalCount: number;
|
|
3
|
+
list: T[];
|
|
4
|
+
}
|
|
5
|
+
export declare enum CursorDirection {
|
|
6
|
+
PREV = "prev",
|
|
7
|
+
NEXT = "next"
|
|
8
|
+
}
|
|
9
|
+
export interface IPaginationCursors {
|
|
10
|
+
prev?: string;
|
|
11
|
+
next?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface IListWithCursor<T> extends IList<T> {
|
|
14
|
+
cursor: IPaginationCursors;
|
|
15
|
+
}
|
|
16
|
+
export interface IPaginationParams {
|
|
17
|
+
limit: number;
|
|
18
|
+
offset: number;
|
|
19
|
+
}
|
|
20
|
+
export interface ICursorPaginationParams {
|
|
21
|
+
limit: number;
|
|
22
|
+
cursor: string;
|
|
23
|
+
}
|
|
24
|
+
export declare enum SortOrder {
|
|
25
|
+
ASC = "asc",
|
|
26
|
+
DESC = "desc"
|
|
27
|
+
}
|
|
28
|
+
export interface ISortParams {
|
|
29
|
+
field: string;
|
|
30
|
+
order: SortOrder;
|
|
31
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { EventAction } from '@leav/utils';
|
|
2
|
+
export interface ILogTopicFilter {
|
|
3
|
+
record?: {
|
|
4
|
+
id: string;
|
|
5
|
+
libraryId: string;
|
|
6
|
+
};
|
|
7
|
+
library?: string;
|
|
8
|
+
attribute?: string;
|
|
9
|
+
tree?: string;
|
|
10
|
+
profile?: string;
|
|
11
|
+
permission?: {
|
|
12
|
+
type?: string;
|
|
13
|
+
applyTo?: any;
|
|
14
|
+
};
|
|
15
|
+
apiKey?: string;
|
|
16
|
+
application?: string;
|
|
17
|
+
filename?: string;
|
|
18
|
+
}
|
|
19
|
+
export interface ILogFilters {
|
|
20
|
+
actions?: EventAction[];
|
|
21
|
+
time?: {
|
|
22
|
+
from?: number;
|
|
23
|
+
to?: number;
|
|
24
|
+
};
|
|
25
|
+
userId?: string;
|
|
26
|
+
queryId?: string;
|
|
27
|
+
instanceId?: string;
|
|
28
|
+
topic?: ILogTopicFilter;
|
|
29
|
+
}
|
|
30
|
+
export interface ILogSort {
|
|
31
|
+
field: string;
|
|
32
|
+
order: 'asc' | 'desc';
|
|
33
|
+
}
|
|
34
|
+
export interface ILogPagination {
|
|
35
|
+
limit: number;
|
|
36
|
+
offset: number;
|
|
37
|
+
}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import { ISystemTranslation } from './systemTranslation';
|
|
2
|
+
export declare enum PermissionTypes {
|
|
3
|
+
RECORD = "record",
|
|
4
|
+
RECORD_ATTRIBUTE = "record_attribute",
|
|
5
|
+
ADMIN = "admin",
|
|
6
|
+
LIBRARY = "library",
|
|
7
|
+
ATTRIBUTE = "attribute",
|
|
8
|
+
TREE = "tree",
|
|
9
|
+
TREE_NODE = "tree_node",
|
|
10
|
+
TREE_LIBRARY = "tree_library",
|
|
11
|
+
APPLICATION = "application"
|
|
12
|
+
}
|
|
13
|
+
export declare enum LibraryPermissionsActions {
|
|
14
|
+
ACCESS_LIBRARY = "access_library",
|
|
15
|
+
ADMIN_LIBRARY = "admin_library",
|
|
16
|
+
ACCESS_RECORD = "access_record",
|
|
17
|
+
CREATE_RECORD = "create_record",
|
|
18
|
+
EDIT_RECORD = "edit_record",
|
|
19
|
+
DELETE_RECORD = "delete_record"
|
|
20
|
+
}
|
|
21
|
+
export declare enum RecordPermissionsActions {
|
|
22
|
+
ACCESS_RECORD = "access_record",
|
|
23
|
+
CREATE_RECORD = "create_record",
|
|
24
|
+
EDIT_RECORD = "edit_record",
|
|
25
|
+
DELETE_RECORD = "delete_record"
|
|
26
|
+
}
|
|
27
|
+
export declare enum RecordAttributePermissionsActions {
|
|
28
|
+
ACCESS_ATTRIBUTE = "access_attribute",
|
|
29
|
+
EDIT_VALUE = "edit_value"
|
|
30
|
+
}
|
|
31
|
+
export declare enum AttributePermissionsActions {
|
|
32
|
+
ACCESS_ATTRIBUTE = "access_attribute",
|
|
33
|
+
EDIT_VALUE = "edit_value"
|
|
34
|
+
}
|
|
35
|
+
export declare enum TreePermissionsActions {
|
|
36
|
+
ACCESS_TREE = "access_tree",
|
|
37
|
+
EDIT_CHILDREN = "edit_children"
|
|
38
|
+
}
|
|
39
|
+
export declare enum TreeNodePermissionsActions {
|
|
40
|
+
ACCESS_TREE = "access_tree",
|
|
41
|
+
DETACH = "detach",
|
|
42
|
+
EDIT_CHILDREN = "edit_children"
|
|
43
|
+
}
|
|
44
|
+
export declare enum ApplicationPermissionsActions {
|
|
45
|
+
ADMIN_APPLICATION = "admin_application",
|
|
46
|
+
ACCESS_APPLICATION = "access_application"
|
|
47
|
+
}
|
|
48
|
+
export declare enum AdminPermissionsActions {
|
|
49
|
+
ACCESS_LIBRARIES = "admin_access_libraries",
|
|
50
|
+
CREATE_LIBRARY = "admin_create_library",
|
|
51
|
+
EDIT_LIBRARY = "admin_edit_library",
|
|
52
|
+
DELETE_LIBRARY = "admin_delete_library",
|
|
53
|
+
ACCESS_TASKS = "admin_access_tasks",
|
|
54
|
+
DELETE_TASK = "admin_delete_task",
|
|
55
|
+
CANCEL_TASK = "admin_cancel_task",
|
|
56
|
+
ACCESS_ATTRIBUTES = "admin_access_attributes",
|
|
57
|
+
CREATE_ATTRIBUTE = "admin_create_attribute",
|
|
58
|
+
EDIT_ATTRIBUTE = "admin_edit_attribute",
|
|
59
|
+
DELETE_ATTRIBUTE = "admin_delete_attribute",
|
|
60
|
+
ACCESS_TREES = "admin_access_trees",
|
|
61
|
+
CREATE_TREE = "admin_create_tree",
|
|
62
|
+
EDIT_TREE = "admin_edit_tree",
|
|
63
|
+
DELETE_TREE = "admin_delete_tree",
|
|
64
|
+
ACCESS_VERSION_PROFILES = "admin_access_version_profiles",
|
|
65
|
+
CREATE_VERSION_PROFILE = "admin_create_version_profile",
|
|
66
|
+
EDIT_VERSION_PROFILE = "admin_edit_version_profile",
|
|
67
|
+
DELETE_VERSION_PROFILE = "admin_delete_version_profile",
|
|
68
|
+
ACCESS_PERMISSIONS = "admin_access_permissions",
|
|
69
|
+
EDIT_PERMISSION = "admin_edit_permission",
|
|
70
|
+
MANAGE_GLOBAL_PREFERENCES = "admin_manage_global_preferences",
|
|
71
|
+
ACCESS_APPLICATIONS = "admin_access_applications",
|
|
72
|
+
CREATE_APPLICATION = "admin_create_application",
|
|
73
|
+
EDIT_APPLICATION = "admin_edit_application",
|
|
74
|
+
DELETE_APPLICATION = "admin_delete_application",
|
|
75
|
+
ACCESS_API_KEYS = "admin_access_api_keys",
|
|
76
|
+
CREATE_API_KEY = "admin_create_api_key",
|
|
77
|
+
EDIT_API_KEY = "admin_edit_api_key",
|
|
78
|
+
DELETE_API_KEY = "admin_delete_api_key",
|
|
79
|
+
EDIT_GLOBAL_SETTINGS = "admin_edit_global_settings"
|
|
80
|
+
}
|
|
81
|
+
export type PermissionsActions = LibraryPermissionsActions | RecordPermissionsActions | RecordAttributePermissionsActions | AdminPermissionsActions | AttributePermissionsActions | TreePermissionsActions | TreeNodePermissionsActions | ApplicationPermissionsActions;
|
|
82
|
+
export interface ILabeledPermissionsAction {
|
|
83
|
+
label: ISystemTranslation;
|
|
84
|
+
name: PermissionsActions | string;
|
|
85
|
+
}
|
|
86
|
+
export declare enum PermissionsRelations {
|
|
87
|
+
AND = "and",
|
|
88
|
+
OR = "or"
|
|
89
|
+
}
|
|
90
|
+
export interface ITreeNodePermissionsConf {
|
|
91
|
+
[libraryId: string]: ITreePermissionsConf;
|
|
92
|
+
}
|
|
93
|
+
export interface ITreePermissionsConf {
|
|
94
|
+
/**
|
|
95
|
+
* IDs of attributes used for permissions
|
|
96
|
+
*/
|
|
97
|
+
permissionTreeAttributes: string[];
|
|
98
|
+
/**
|
|
99
|
+
* Relation between those trees when retrieving permission
|
|
100
|
+
*/
|
|
101
|
+
relation: PermissionsRelations;
|
|
102
|
+
}
|
|
103
|
+
export interface IPermissionsTreeTarget {
|
|
104
|
+
/**
|
|
105
|
+
* Tree ID
|
|
106
|
+
*/
|
|
107
|
+
tree: string;
|
|
108
|
+
/**
|
|
109
|
+
* Tree element's ID
|
|
110
|
+
*/
|
|
111
|
+
nodeId: string | null;
|
|
112
|
+
}
|
|
113
|
+
export interface IPermission {
|
|
114
|
+
/**
|
|
115
|
+
* Permission type
|
|
116
|
+
*/
|
|
117
|
+
type: PermissionTypes;
|
|
118
|
+
/**
|
|
119
|
+
* What this permission applies to? Can be a library, an attribute...
|
|
120
|
+
*/
|
|
121
|
+
applyTo?: string;
|
|
122
|
+
/**
|
|
123
|
+
* Users group concerned by this permission. If null, applies to root level
|
|
124
|
+
*/
|
|
125
|
+
usersGroup: string | null;
|
|
126
|
+
/**
|
|
127
|
+
* Permission by action: create, edit...
|
|
128
|
+
* Set an action to null to herit from its parent when using in a record or attribute permission
|
|
129
|
+
*/
|
|
130
|
+
actions: {
|
|
131
|
+
[name: string]: boolean | null;
|
|
132
|
+
};
|
|
133
|
+
/**
|
|
134
|
+
* What element on permissions tree is concerned by this permission
|
|
135
|
+
*/
|
|
136
|
+
permissionTreeTarget?: IPermissionsTreeTarget;
|
|
137
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IExtensionPointsFunctions } from './extensionPoints';
|
|
2
|
+
export interface IPluginInfos {
|
|
3
|
+
name: string;
|
|
4
|
+
description: string;
|
|
5
|
+
version: string;
|
|
6
|
+
author: string;
|
|
7
|
+
}
|
|
8
|
+
export interface IRegisteredPlugin {
|
|
9
|
+
path: string;
|
|
10
|
+
infos: IPluginInfos;
|
|
11
|
+
}
|
|
12
|
+
export interface IPluginInitModule {
|
|
13
|
+
init: (extensionPoints: IExtensionPointsFunctions) => void;
|
|
14
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type LeavError from 'errors/LeavError';
|
|
2
|
+
import { IDbProfiler } from './dbProfiler';
|
|
3
|
+
import { IValueVersion } from './value';
|
|
4
|
+
export interface IQueryInfos {
|
|
5
|
+
userId: string;
|
|
6
|
+
lang?: string;
|
|
7
|
+
defaultLang?: string;
|
|
8
|
+
queryId?: string;
|
|
9
|
+
version?: IValueVersion;
|
|
10
|
+
treeId?: string;
|
|
11
|
+
groupsId?: string[];
|
|
12
|
+
applicationId?: string;
|
|
13
|
+
dbProfiler?: IDbProfiler;
|
|
14
|
+
trigger?: string;
|
|
15
|
+
errors?: Array<LeavError<unknown>>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { IAttributeWithRevLink } from 'infra/attributeTypes/attributeTypesRepo';
|
|
2
|
+
import { ILibrary } from './library';
|
|
3
|
+
import { IPreview } from './preview';
|
|
4
|
+
import { IValue } from './value';
|
|
5
|
+
export interface IRecord {
|
|
6
|
+
id?: string;
|
|
7
|
+
library?: string;
|
|
8
|
+
created_at?: number;
|
|
9
|
+
created_by?: string;
|
|
10
|
+
modified_at?: number;
|
|
11
|
+
modified_by?: string;
|
|
12
|
+
active?: boolean;
|
|
13
|
+
[attributeName: string]: any;
|
|
14
|
+
}
|
|
15
|
+
export declare enum Operator {
|
|
16
|
+
AND = "AND",
|
|
17
|
+
OR = "OR",
|
|
18
|
+
OPEN_BRACKET = "OPEN_BRACKET",
|
|
19
|
+
CLOSE_BRACKET = "CLOSE_BRACKET"
|
|
20
|
+
}
|
|
21
|
+
export declare enum AttributeCondition {
|
|
22
|
+
EQUAL = "EQUAL",
|
|
23
|
+
NOT_EQUAL = "NOT_EQUAL",
|
|
24
|
+
BEGIN_WITH = "BEGIN_WITH",
|
|
25
|
+
END_WITH = "END_WITH",
|
|
26
|
+
CONTAINS = "CONTAINS",
|
|
27
|
+
NOT_CONTAINS = "NOT_CONTAINS",
|
|
28
|
+
GREATER_THAN = "GREATER_THAN",
|
|
29
|
+
LESS_THAN = "LESS_THAN",
|
|
30
|
+
IS_EMPTY = "IS_EMPTY",
|
|
31
|
+
IS_NOT_EMPTY = "IS_NOT_EMPTY",
|
|
32
|
+
BETWEEN = "BETWEEN",
|
|
33
|
+
TODAY = "TODAY",
|
|
34
|
+
YESTERDAY = "YESTERDAY",
|
|
35
|
+
TOMORROW = "TOMORROW",
|
|
36
|
+
NEXT_MONTH = "NEXT_MONTH",
|
|
37
|
+
LAST_MONTH = "LAST_MONTH",
|
|
38
|
+
START_ON = "START_ON",
|
|
39
|
+
START_BEFORE = "START_BEFORE",
|
|
40
|
+
START_AFTER = "START_AFTER",
|
|
41
|
+
END_ON = "END_ON",
|
|
42
|
+
END_BEFORE = "END_BEFORE",
|
|
43
|
+
END_AFTER = "END_AFTER",
|
|
44
|
+
VALUES_COUNT_EQUAL = "VALUES_COUNT_EQUAL",
|
|
45
|
+
VALUES_COUNT_GREATER_THAN = "VALUES_COUNT_GREATER_THAN",
|
|
46
|
+
VALUES_COUNT_LOWER_THAN = "VALUES_COUNT_LOWER_THAN"
|
|
47
|
+
}
|
|
48
|
+
export declare enum TreeCondition {
|
|
49
|
+
CLASSIFIED_IN = "CLASSIFIED_IN",
|
|
50
|
+
NOT_CLASSIFIED_IN = "NOT_CLASSIFIED_IN"
|
|
51
|
+
}
|
|
52
|
+
export interface IDateFilterValue {
|
|
53
|
+
from: number;
|
|
54
|
+
to: number;
|
|
55
|
+
}
|
|
56
|
+
export interface IRecordFilterOption {
|
|
57
|
+
attributes?: IAttributeWithRevLink[];
|
|
58
|
+
value?: string | number | boolean;
|
|
59
|
+
condition?: AttributeCondition | TreeCondition;
|
|
60
|
+
operator?: Operator;
|
|
61
|
+
treeId?: string;
|
|
62
|
+
}
|
|
63
|
+
export interface IRecordSort {
|
|
64
|
+
attributes: IAttributeWithRevLink[];
|
|
65
|
+
order: string;
|
|
66
|
+
}
|
|
67
|
+
export interface IQueryField {
|
|
68
|
+
name: string;
|
|
69
|
+
fields: IQueryField[];
|
|
70
|
+
arguments: Array<{
|
|
71
|
+
name: string;
|
|
72
|
+
value: string;
|
|
73
|
+
}>;
|
|
74
|
+
}
|
|
75
|
+
export interface IRecordIdentity {
|
|
76
|
+
id: string;
|
|
77
|
+
library: ILibrary;
|
|
78
|
+
label?: string;
|
|
79
|
+
subLabel?: string;
|
|
80
|
+
color?: string;
|
|
81
|
+
preview?: IPreview;
|
|
82
|
+
}
|
|
83
|
+
export interface IRecordIdentityConf {
|
|
84
|
+
label?: string;
|
|
85
|
+
color?: string;
|
|
86
|
+
preview?: string;
|
|
87
|
+
treeColorPreview?: string;
|
|
88
|
+
subLabel?: string;
|
|
89
|
+
}
|
|
90
|
+
export interface IRecordUpdateEvent {
|
|
91
|
+
record: IRecord;
|
|
92
|
+
updatedValues: Array<{
|
|
93
|
+
attribute: string;
|
|
94
|
+
value: IValue;
|
|
95
|
+
}>;
|
|
96
|
+
}
|
|
97
|
+
export interface IRecordUpdateEventFilters {
|
|
98
|
+
libraries?: string[];
|
|
99
|
+
records?: string[];
|
|
100
|
+
}
|
|
101
|
+
export interface IRecordFilterLight {
|
|
102
|
+
field?: string;
|
|
103
|
+
value?: string;
|
|
104
|
+
condition?: AttributeCondition | TreeCondition;
|
|
105
|
+
operator?: Operator;
|
|
106
|
+
treeId?: string;
|
|
107
|
+
}
|
|
108
|
+
export interface IRecordSortLight {
|
|
109
|
+
field: string;
|
|
110
|
+
order: string;
|
|
111
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { IExtensionPoints } from './extensionPoints';
|
|
2
|
+
import { IPaginationParams, ISortParams } from './list';
|
|
3
|
+
import { ISystemTranslation } from './systemTranslation';
|
|
4
|
+
export interface IGetCoreEntitiesParams {
|
|
5
|
+
filters?: ICoreEntityFilterOptions;
|
|
6
|
+
strictFilters?: boolean;
|
|
7
|
+
withCount?: boolean;
|
|
8
|
+
pagination?: IPaginationParams;
|
|
9
|
+
sort?: ISortParams;
|
|
10
|
+
}
|
|
11
|
+
export interface IAppModule {
|
|
12
|
+
extensionPoints?: IExtensionPoints;
|
|
13
|
+
}
|
|
14
|
+
export interface IKeyValue<T> {
|
|
15
|
+
[key: string]: T;
|
|
16
|
+
}
|
|
17
|
+
declare global {
|
|
18
|
+
interface ICoreEntity {
|
|
19
|
+
id?: string;
|
|
20
|
+
label?: ISystemTranslation | string;
|
|
21
|
+
}
|
|
22
|
+
interface ICoreEntityFilterOptions {
|
|
23
|
+
id?: string | string[];
|
|
24
|
+
label?: string | string[];
|
|
25
|
+
system?: boolean;
|
|
26
|
+
key?: string;
|
|
27
|
+
}
|
|
28
|
+
}
|