@aristid/leav-types 0.0.7-e9aa834 → 0.0.7
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/package.json +9 -2
- package/apps/core/config/default.d.ts +0 -190
- package/apps/core/config/development.d.ts +0 -14
- package/apps/core/config/test.d.ts +0 -52
- package/apps/core/scripts/build.d.ts +0 -2
- package/apps/core/scripts/preload.d.ts +0 -1
- package/apps/core/scripts/utils.d.ts +0 -3
- package/apps/core/src/__tests__/e2e/api/_fixtures/fakeplugin/index.d.ts +0 -7
- package/apps/core/src/__tests__/e2e/api/actionLists/actionLists.test.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/api/actionLists/actions/inheritanceCalculationAction.test.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/api/apiKey/apiKey.test.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/api/applications/applications.test.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/api/attributes/attributes.test.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/api/auth/auth.test.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/api/e2eUtils.d.ts +0 -42
- package/apps/core/src/__tests__/e2e/api/files/files.test.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/api/forms/forms.test.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/api/globalSettings/globalSettings.test.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/api/globalSetup.d.ts +0 -3
- package/apps/core/src/__tests__/e2e/api/globalSetupHook.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/api/graphql/graphql.test.d.ts +0 -1
- 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 +0 -1
- package/apps/core/src/__tests__/e2e/api/permissions/applicationsPermissions.test.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/api/permissions/attributePermissions.test.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/api/permissions/permissions.test.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/api/permissions/recordAttributePermissions.test.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/api/permissions/recordPermissions.test.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/api/permissions/treeLibraryPermissions.test.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/api/permissions/treeNodePermissions.test.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/api/permissions/treePermissions.test.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/api/plugins/plugins.test.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/api/records/recordIdentity.test.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/api/records/records.test.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/api/records/recordsDeletion.test.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/api/records/searchFilters.test.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/api/teardown.d.ts +0 -2
- package/apps/core/src/__tests__/e2e/api/trees/treeNodeChildren.test.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/api/trees/trees.test.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/api/userData/userData.test.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/api/values/metadata.test.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/api/values/values.test.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/api/values/versions.test.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/api/versionProfile/versionProfile.test.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/api/views/views.test.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/filesManager/filesManager/filesManager.test.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/filesManager/globalSetup.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/filesManager/globalSetupHook.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/indexationManager/globalSetup.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/indexationManager/globalSetupHook.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/indexationManager/indexation.test.d.ts +0 -1
- package/apps/core/src/__tests__/global-setup.d.ts +0 -0
- package/apps/core/src/__tests__/jestUtils.d.ts +0 -12
- package/apps/core/src/__tests__/mocks/actionsList.d.ts +0 -67
- package/apps/core/src/__tests__/mocks/apiKey.d.ts +0 -11
- package/apps/core/src/__tests__/mocks/application.d.ts +0 -3
- package/apps/core/src/__tests__/mocks/attribute.d.ts +0 -36
- package/apps/core/src/__tests__/mocks/file.d.ts +0 -29
- package/apps/core/src/__tests__/mocks/forms.d.ts +0 -4
- package/apps/core/src/__tests__/mocks/globalSettings.d.ts +0 -2
- package/apps/core/src/__tests__/mocks/library.d.ts +0 -4
- package/apps/core/src/__tests__/mocks/log.d.ts +0 -2
- package/apps/core/src/__tests__/mocks/plugins.d.ts +0 -2
- package/apps/core/src/__tests__/mocks/record.d.ts +0 -3
- package/apps/core/src/__tests__/mocks/shared.d.ts +0 -2
- package/apps/core/src/__tests__/mocks/task.d.ts +0 -2
- package/apps/core/src/__tests__/mocks/translator.d.ts +0 -3
- package/apps/core/src/__tests__/mocks/tree.d.ts +0 -3
- package/apps/core/src/__tests__/mocks/value.d.ts +0 -2
- package/apps/core/src/__tests__/mocks/versionProfile.d.ts +0 -2
- package/apps/core/src/__tests__/mocks/view.d.ts +0 -2
- package/apps/core/src/__tests__/setup.d.ts +0 -0
- package/apps/core/src/_constants/globalSettings.d.ts +0 -1
- package/apps/core/src/_constants/libraries.d.ts +0 -1
- package/apps/core/src/_constants/users.d.ts +0 -4
- package/apps/core/src/_types/actionsList.d.ts +0 -77
- package/apps/core/src/_types/apiKey.d.ts +0 -23
- package/apps/core/src/_types/application.d.ts +0 -46
- package/apps/core/src/_types/attribute.d.ts +0 -94
- package/apps/core/src/_types/auth.d.ts +0 -7
- package/apps/core/src/_types/config.d.ts +0 -193
- package/apps/core/src/_types/dbProfiler.d.ts +0 -13
- package/apps/core/src/_types/endpoint.d.ts +0 -11
- package/apps/core/src/_types/errors.d.ts +0 -117
- package/apps/core/src/_types/eventsManager.d.ts +0 -8
- package/apps/core/src/_types/express.d.ts +0 -16
- package/apps/core/src/_types/extensionPoints.d.ts +0 -29
- package/apps/core/src/_types/filesManager.d.ts +0 -90
- package/apps/core/src/_types/forms.d.ts +0 -50
- package/apps/core/src/_types/globalSettings.d.ts +0 -11
- package/apps/core/src/_types/graphql.d.ts +0 -4
- package/apps/core/src/_types/import.d.ts +0 -63
- package/apps/core/src/_types/library.d.ts +0 -50
- package/apps/core/src/_types/list.d.ts +0 -31
- package/apps/core/src/_types/log.d.ts +0 -37
- package/apps/core/src/_types/migration.d.ts +0 -4
- package/apps/core/src/_types/permissions.d.ts +0 -137
- package/apps/core/src/_types/plugin.d.ts +0 -14
- package/apps/core/src/_types/preview.d.ts +0 -6
- package/apps/core/src/_types/queryInfos.d.ts +0 -16
- package/apps/core/src/_types/record.d.ts +0 -111
- package/apps/core/src/_types/shared.d.ts +0 -28
- package/apps/core/src/_types/systemTranslation.d.ts +0 -3
- package/apps/core/src/_types/tasksManager.d.ts +0 -97
- package/apps/core/src/_types/tree.d.ts +0 -63
- package/apps/core/src/_types/userData.d.ts +0 -4
- package/apps/core/src/_types/utils.d.ts +0 -3
- package/apps/core/src/_types/value.d.ts +0 -78
- package/apps/core/src/_types/versionProfile.d.ts +0 -17
- package/apps/core/src/_types/views.d.ts +0 -57
- package/apps/core/src/app/application/__tests__/applicationApp.spec.d.ts +0 -1
- package/apps/core/src/app/application/applicationApp.d.ts +0 -32
- package/apps/core/src/app/application/index.d.ts +0 -1
- package/apps/core/src/app/auth/__tests__/authApp.spec.d.ts +0 -1
- package/apps/core/src/app/auth/authApp.d.ts +0 -38
- package/apps/core/src/app/auth/index.d.ts +0 -1
- package/apps/core/src/app/core/actionListApp.d.ts +0 -13
- package/apps/core/src/app/core/apiKeyApp/_types.d.ts +0 -21
- package/apps/core/src/app/core/apiKeyApp/apiKeyApp.d.ts +0 -12
- package/apps/core/src/app/core/attributeApp/attributeApp.d.ts +0 -28
- package/apps/core/src/app/core/coreApp.d.ts +0 -25
- package/apps/core/src/app/core/coreApp.spec.d.ts +0 -1
- package/apps/core/src/app/core/eventsManagerApp.d.ts +0 -12
- package/apps/core/src/app/core/exportApp.d.ts +0 -10
- package/apps/core/src/app/core/filesManagerApp.d.ts +0 -21
- package/apps/core/src/app/core/formApp/_types.d.ts +0 -38
- package/apps/core/src/app/core/formApp/formApp.d.ts +0 -20
- package/apps/core/src/app/core/globalSettingsApp.d.ts +0 -23
- package/apps/core/src/app/core/helpers/subscriptions.d.ts +0 -10
- package/apps/core/src/app/core/importApp.d.ts +0 -24
- package/apps/core/src/app/core/index.d.ts +0 -23
- package/apps/core/src/app/core/indexationManagerApp.d.ts +0 -11
- package/apps/core/src/app/core/libraryApp/_types.d.ts +0 -19
- package/apps/core/src/app/core/libraryApp/libraryApp.d.ts +0 -24
- package/apps/core/src/app/core/logApp.d.ts +0 -23
- package/apps/core/src/app/core/permissionApp/_types.d.ts +0 -8
- package/apps/core/src/app/core/permissionApp/permissionApp.d.ts +0 -19
- package/apps/core/src/app/core/pluginsApp.d.ts +0 -12
- package/apps/core/src/app/core/recordApp/_types.d.ts +0 -36
- package/apps/core/src/app/core/recordApp/recordApp.d.ts +0 -30
- package/apps/core/src/app/core/tasksManagerApp.d.ts +0 -33
- package/apps/core/src/app/core/treeApp/_types.d.ts +0 -53
- package/apps/core/src/app/core/treeApp/treeApp.d.ts +0 -24
- package/apps/core/src/app/core/userDataApp.d.ts +0 -10
- package/apps/core/src/app/core/valueApp.d.ts +0 -18
- package/apps/core/src/app/core/versionProfileApp/_types.d.ts +0 -24
- package/apps/core/src/app/core/versionProfileApp/versionProfileApp.d.ts +0 -12
- package/apps/core/src/app/core/viewApp.d.ts +0 -14
- package/apps/core/src/app/endpoint/endpointApp.d.ts +0 -32
- package/apps/core/src/app/endpoint/endpointApp.spec.d.ts +0 -1
- package/apps/core/src/app/endpoint/index.d.ts +0 -1
- package/apps/core/src/app/graphql/customScalars/any/any.d.ts +0 -2
- package/apps/core/src/app/graphql/customScalars/any/any.spec.d.ts +0 -1
- package/apps/core/src/app/graphql/customScalars/any/index.d.ts +0 -1
- package/apps/core/src/app/graphql/customScalars/dateTime/dateTime.d.ts +0 -7
- package/apps/core/src/app/graphql/customScalars/dateTime/dateTime.spec.d.ts +0 -1
- package/apps/core/src/app/graphql/customScalars/dateTime/index.d.ts +0 -1
- package/apps/core/src/app/graphql/customScalars/helpers/parseLiteral.d.ts +0 -5
- package/apps/core/src/app/graphql/customScalars/systemTranslation/index.d.ts +0 -1
- package/apps/core/src/app/graphql/customScalars/systemTranslation/systemTranslation.d.ts +0 -10
- package/apps/core/src/app/graphql/customScalars/systemTranslation/systemTranslation.spec.d.ts +0 -1
- package/apps/core/src/app/graphql/graphqlApp.d.ts +0 -15
- package/apps/core/src/app/graphql/graphqlApp.spec.d.ts +0 -1
- package/apps/core/src/app/graphql/index.d.ts +0 -1
- package/apps/core/src/app/helpers/convertOIDCIdentifier.d.ts +0 -5
- package/apps/core/src/app/helpers/convertOIDCIdentifier.spec.d.ts +0 -1
- package/apps/core/src/app/helpers/convertVersionFromGqlFormat.d.ts +0 -3
- package/apps/core/src/app/helpers/convertVersionFromGqlFormat.spec.d.ts +0 -1
- package/apps/core/src/app/helpers/index.d.ts +0 -4
- package/apps/core/src/app/helpers/initQueryContext.d.ts +0 -9
- package/apps/core/src/app/helpers/validateRequestToken.d.ts +0 -9
- package/apps/core/src/app/helpers/validateRequestToken.spec.d.ts +0 -1
- package/apps/core/src/config.d.ts +0 -12
- package/apps/core/src/depsManager.d.ts +0 -7
- package/apps/core/src/domain/actions/dateRangeToNumberAction.d.ts +0 -2
- package/apps/core/src/domain/actions/dateRangeToNumberAction.spec.d.ts +0 -1
- package/apps/core/src/domain/actions/encryptAction.d.ts +0 -2
- package/apps/core/src/domain/actions/encryptAction.spec.d.ts +0 -1
- package/apps/core/src/domain/actions/excelCalculationAction.d.ts +0 -12
- package/apps/core/src/domain/actions/excelCalculationAction.spec.d.ts +0 -1
- package/apps/core/src/domain/actions/formatDateAction.d.ts +0 -5
- package/apps/core/src/domain/actions/formatDateAction.spec.d.ts +0 -1
- package/apps/core/src/domain/actions/formatDateRangeAction.d.ts +0 -5
- package/apps/core/src/domain/actions/formatDateRangeAction.spec.d.ts +0 -1
- package/apps/core/src/domain/actions/formatNumberAction.d.ts +0 -8
- package/apps/core/src/domain/actions/formatNumberAction.spec.d.ts +0 -1
- package/apps/core/src/domain/actions/index.d.ts +0 -18
- package/apps/core/src/domain/actions/inheritanceCalculationAction.d.ts +0 -12
- package/apps/core/src/domain/actions/inheritanceCalculationAction.spec.d.ts +0 -1
- package/apps/core/src/domain/actions/maskValueAction.d.ts +0 -2
- package/apps/core/src/domain/actions/maskValueAction.spec.d.ts +0 -1
- package/apps/core/src/domain/actions/parseJSONAction.d.ts +0 -2
- package/apps/core/src/domain/actions/parseJSONAction.spec.d.ts +0 -1
- package/apps/core/src/domain/actions/toBooleanAction.d.ts +0 -2
- package/apps/core/src/domain/actions/toBooleanAction.spec.d.ts +0 -1
- package/apps/core/src/domain/actions/toJSONAction.d.ts +0 -2
- package/apps/core/src/domain/actions/toJSONAction.spec.d.ts +0 -1
- package/apps/core/src/domain/actions/toNumberAction.d.ts +0 -2
- package/apps/core/src/domain/actions/toNumberAction.spec.d.ts +0 -1
- package/apps/core/src/domain/actions/toStringAction.d.ts +0 -2
- package/apps/core/src/domain/actions/toStringAction.spec.d.ts +0 -1
- package/apps/core/src/domain/actions/toUppercaseAction.d.ts +0 -2
- package/apps/core/src/domain/actions/toUppercaseAction.spec.d.ts +0 -1
- package/apps/core/src/domain/actions/validateEmailAction.d.ts +0 -2
- package/apps/core/src/domain/actions/validateEmailAction.spec.d.ts +0 -1
- package/apps/core/src/domain/actions/validateFormatAction.d.ts +0 -2
- package/apps/core/src/domain/actions/validateFormatAction.spec.d.ts +0 -1
- package/apps/core/src/domain/actions/validateRegexAction.d.ts +0 -4
- package/apps/core/src/domain/actions/validateRegexAction.spec.d.ts +0 -1
- package/apps/core/src/domain/actions/validateURLAction.d.ts +0 -2
- package/apps/core/src/domain/actions/validateURLAction.spec.d.ts +0 -1
- package/apps/core/src/domain/actionsList/actionsListDomain.d.ts +0 -43
- package/apps/core/src/domain/actionsList/actionsListDomain.spec.d.ts +0 -1
- package/apps/core/src/domain/actionsList/index.d.ts +0 -1
- package/apps/core/src/domain/apiKey/apiKeyDomain.d.ts +0 -41
- package/apps/core/src/domain/apiKey/apiKeyDomain.spec.d.ts +0 -1
- package/apps/core/src/domain/apiKey/index.d.ts +0 -1
- package/apps/core/src/domain/application/applicationDomain.d.ts +0 -57
- package/apps/core/src/domain/application/applicationDomain.spec.d.ts +0 -1
- package/apps/core/src/domain/application/index.d.ts +0 -1
- package/apps/core/src/domain/attribute/attributeDomain.d.ts +0 -75
- package/apps/core/src/domain/attribute/attributeDomain.spec.d.ts +0 -1
- package/apps/core/src/domain/attribute/helpers/attributeALHelper.d.ts +0 -6
- package/apps/core/src/domain/attribute/helpers/attributeValidationHelper.d.ts +0 -16
- package/apps/core/src/domain/attribute/index.d.ts +0 -1
- package/apps/core/src/domain/core/coreDomain.d.ts +0 -4
- package/apps/core/src/domain/core/coreDomain.spec.d.ts +0 -1
- package/apps/core/src/domain/core/index.d.ts +0 -1
- package/apps/core/src/domain/eventsManager/eventsManagerDomain.d.ts +0 -23
- package/apps/core/src/domain/eventsManager/eventsManagerDomain.spec.d.ts +0 -1
- package/apps/core/src/domain/eventsManager/index.d.ts +0 -1
- package/apps/core/src/domain/export/exportDomain.d.ts +0 -40
- package/apps/core/src/domain/export/exportDomain.spec.d.ts +0 -1
- package/apps/core/src/domain/export/index.d.ts +0 -1
- package/apps/core/src/domain/filesManager/_constants.d.ts +0 -2
- package/apps/core/src/domain/filesManager/filesManagerDomain.d.ts +0 -88
- package/apps/core/src/domain/filesManager/filesManagerDomain.spec.d.ts +0 -1
- package/apps/core/src/domain/filesManager/helpers/extractFileMetadata.d.ts +0 -3
- package/apps/core/src/domain/filesManager/helpers/getRootPathByKey.d.ts +0 -2
- package/apps/core/src/domain/filesManager/helpers/handleFileSystemEvent/_types.d.ts +0 -32
- package/apps/core/src/domain/filesManager/helpers/handleFileSystemEvent/handleCreateEvent.d.ts +0 -4
- package/apps/core/src/domain/filesManager/helpers/handleFileSystemEvent/handleFileSystemEvent.d.ts +0 -28
- package/apps/core/src/domain/filesManager/helpers/handleFileSystemEvent/handleFileSystemEvent.spec.d.ts +0 -1
- package/apps/core/src/domain/filesManager/helpers/handleFileSystemEvent/handleMoveEvent.d.ts +0 -4
- package/apps/core/src/domain/filesManager/helpers/handleFileSystemEvent/handleRemoveEvent.d.ts +0 -4
- package/apps/core/src/domain/filesManager/helpers/handleFileSystemEvent/handleUpdateEvent.d.ts +0 -4
- package/apps/core/src/domain/filesManager/helpers/handleFileSystemEvent/index.d.ts +0 -1
- package/apps/core/src/domain/filesManager/helpers/handleFileUtilsHelper.d.ts +0 -39
- package/apps/core/src/domain/filesManager/helpers/handlePreview.d.ts +0 -22
- package/apps/core/src/domain/filesManager/helpers/handlePreviewResponse.d.ts +0 -23
- package/apps/core/src/domain/filesManager/helpers/messagesHandler/index.d.ts +0 -1
- package/apps/core/src/domain/filesManager/helpers/messagesHandler/messagesHandler.d.ts +0 -14
- package/apps/core/src/domain/filesManager/helpers/messagesHandler/messagesHandler.spec.d.ts +0 -1
- package/apps/core/src/domain/filesManager/index.d.ts +0 -1
- package/apps/core/src/domain/form/formDomain.d.ts +0 -60
- package/apps/core/src/domain/form/formDomain.spec.d.ts +0 -1
- package/apps/core/src/domain/form/helpers/getElementValues.d.ts +0 -21
- package/apps/core/src/domain/form/helpers/mustIncludeElement.d.ts +0 -11
- package/apps/core/src/domain/form/index.d.ts +0 -1
- package/apps/core/src/domain/globalSettings/globalSettingsDomain.d.ts +0 -18
- package/apps/core/src/domain/globalSettings/globalSettingsDomain.spec.d.ts +0 -1
- package/apps/core/src/domain/globalSettings/index.d.ts +0 -1
- package/apps/core/src/domain/helpers/calculationVariable/calculationVariable.spec.d.ts +0 -1
- package/apps/core/src/domain/helpers/calculationVariable/index.d.ts +0 -18
- package/apps/core/src/domain/helpers/calculationsVariableFunctions/calculationsVariableFunctions.spec.d.ts +0 -1
- package/apps/core/src/domain/helpers/calculationsVariableFunctions/index.d.ts +0 -17
- package/apps/core/src/domain/helpers/createDirectory.d.ts +0 -10
- package/apps/core/src/domain/helpers/getCoreEntityById.d.ts +0 -20
- package/apps/core/src/domain/helpers/index.d.ts +0 -6
- package/apps/core/src/domain/helpers/storeUploadFile.d.ts +0 -4
- package/apps/core/src/domain/helpers/updateRecordLastModif.d.ts +0 -13
- package/apps/core/src/domain/helpers/updateTaskProgress.d.ts +0 -18
- package/apps/core/src/domain/helpers/validate.d.ts +0 -24
- package/apps/core/src/domain/import/importDomain.d.ts +0 -72
- package/apps/core/src/domain/import/importDomain.spec.d.ts +0 -1
- package/apps/core/src/domain/import/index.d.ts +0 -1
- package/apps/core/src/domain/indexationManager/index.d.ts +0 -1
- package/apps/core/src/domain/indexationManager/indexationManagerDomain.d.ts +0 -40
- package/apps/core/src/domain/indexationManager/indexationManagerDomain.spec.d.ts +0 -1
- package/apps/core/src/domain/library/helpers/checkSavePermission.d.ts +0 -10
- package/apps/core/src/domain/library/helpers/deleteAssociatedValues.d.ts +0 -16
- package/apps/core/src/domain/library/helpers/index.d.ts +0 -4
- package/apps/core/src/domain/library/helpers/runBehaviorPostSave.d.ts +0 -18
- package/apps/core/src/domain/library/helpers/runPreDelete.d.ts +0 -13
- package/apps/core/src/domain/library/helpers/runPreDelete.spec.d.ts +0 -1
- package/apps/core/src/domain/library/helpers/updateAssociatedForms.d.ts +0 -10
- package/apps/core/src/domain/library/helpers/validateLibAttributes.d.ts +0 -8
- package/apps/core/src/domain/library/helpers/validateLibFullTextAttributes.d.ts +0 -4
- package/apps/core/src/domain/library/helpers/validatePermConf.d.ts +0 -9
- package/apps/core/src/domain/library/helpers/validatePreviewsSettings.d.ts +0 -5
- package/apps/core/src/domain/library/helpers/validateRecordIdentityConf.d.ts +0 -8
- package/apps/core/src/domain/library/index.d.ts +0 -1
- package/apps/core/src/domain/library/libraryDomain.d.ts +0 -49
- package/apps/core/src/domain/library/libraryDomain.spec.d.ts +0 -1
- package/apps/core/src/domain/log/index.d.ts +0 -1
- package/apps/core/src/domain/log/logDomain.d.ts +0 -16
- package/apps/core/src/domain/log/logDomain.spec.d.ts +0 -1
- package/apps/core/src/domain/permission/_types.d.ts +0 -209
- package/apps/core/src/domain/permission/adminPermissionDomain.d.ts +0 -11
- package/apps/core/src/domain/permission/adminPermissionDomain.spec.d.ts +0 -1
- package/apps/core/src/domain/permission/applicationPermissionDomain.d.ts +0 -11
- package/apps/core/src/domain/permission/applicationPermissionDomain.spec.d.ts +0 -1
- package/apps/core/src/domain/permission/attributePermissionDomain.d.ts +0 -11
- package/apps/core/src/domain/permission/attributePermissionDomain.spec.d.ts +0 -1
- package/apps/core/src/domain/permission/helpers/defaultPermission.d.ts +0 -9
- package/apps/core/src/domain/permission/helpers/defaultPermission.spec.d.ts +0 -1
- package/apps/core/src/domain/permission/helpers/getPermissionCacheKey.d.ts +0 -2
- package/apps/core/src/domain/permission/helpers/getPermissionCacheKey.spec.d.ts +0 -1
- package/apps/core/src/domain/permission/helpers/getPermissionCachePatternKey.d.ts +0 -8
- package/apps/core/src/domain/permission/helpers/getPermissionCachePatternKey.spec.d.ts +0 -1
- package/apps/core/src/domain/permission/helpers/globalPermission.d.ts +0 -45
- package/apps/core/src/domain/permission/helpers/globalPermission.spec.d.ts +0 -1
- package/apps/core/src/domain/permission/helpers/index.d.ts +0 -7
- package/apps/core/src/domain/permission/helpers/permissionByUserGroups.d.ts +0 -14
- package/apps/core/src/domain/permission/helpers/permissionByUserGroups.spec.d.ts +0 -1
- package/apps/core/src/domain/permission/helpers/permissionsByActions.d.ts +0 -12
- package/apps/core/src/domain/permission/helpers/permissionsByActions.spec.d.ts +0 -1
- package/apps/core/src/domain/permission/helpers/reducePermissionsArray.d.ts +0 -4
- package/apps/core/src/domain/permission/helpers/reducePermissionsArray.spec.d.ts +0 -1
- package/apps/core/src/domain/permission/helpers/simplePermission.d.ts +0 -10
- package/apps/core/src/domain/permission/helpers/simplePermission.spec.d.ts +0 -1
- package/apps/core/src/domain/permission/helpers/treeBasedPermissions.d.ts +0 -23
- package/apps/core/src/domain/permission/helpers/treeBasedPermissions.spec.d.ts +0 -1
- package/apps/core/src/domain/permission/index.d.ts +0 -10
- package/apps/core/src/domain/permission/libraryPermissionDomain.d.ts +0 -11
- package/apps/core/src/domain/permission/libraryPermissionDomain.spec.d.ts +0 -1
- package/apps/core/src/domain/permission/permissionDomain.d.ts +0 -45
- package/apps/core/src/domain/permission/permissionDomain.spec.d.ts +0 -1
- package/apps/core/src/domain/permission/recordAttributePermissionDomain.d.ts +0 -22
- package/apps/core/src/domain/permission/recordAttributePermissionDomain.spec.d.ts +0 -1
- package/apps/core/src/domain/permission/recordPermissionDomain.d.ts +0 -22
- package/apps/core/src/domain/permission/recordPermissionDomain.spec.d.ts +0 -1
- package/apps/core/src/domain/permission/treeLibraryPermissionDomain.d.ts +0 -11
- package/apps/core/src/domain/permission/treeLibraryPermissionDomain.spec.d.ts +0 -1
- package/apps/core/src/domain/permission/treeNodePermissionDomain.d.ts +0 -26
- package/apps/core/src/domain/permission/treeNodePermissionDomain.spec.d.ts +0 -1
- package/apps/core/src/domain/permission/treePermissionDomain.d.ts +0 -11
- package/apps/core/src/domain/permission/treePermissionDomain.spec.d.ts +0 -1
- package/apps/core/src/domain/plugins/index.d.ts +0 -1
- package/apps/core/src/domain/plugins/pluginsDomain.d.ts +0 -11
- package/apps/core/src/domain/plugins/pluginsDomain.spec.d.ts +0 -1
- package/apps/core/src/domain/record/_types.d.ts +0 -32
- package/apps/core/src/domain/record/helpers/getAttributesFromField.d.ts +0 -30
- package/apps/core/src/domain/record/helpers/index.d.ts +0 -1
- package/apps/core/src/domain/record/helpers/sendRecordUpdateEvent.d.ts +0 -11
- package/apps/core/src/domain/record/helpers/validateLibrary.d.ts +0 -6
- package/apps/core/src/domain/record/index.d.ts +0 -1
- package/apps/core/src/domain/record/recordDomain.d.ts +0 -102
- package/apps/core/src/domain/record/recordDomain.spec.d.ts +0 -1
- package/apps/core/src/domain/tasksManager/index.d.ts +0 -1
- package/apps/core/src/domain/tasksManager/tasksManagerDomain.d.ts +0 -68
- package/apps/core/src/domain/tasksManager/tasksManagerDomain.spec.d.ts +0 -1
- package/apps/core/src/domain/tree/helpers/elementAncestors.d.ts +0 -16
- package/apps/core/src/domain/tree/helpers/getDefaultElement.d.ts +0 -22
- package/apps/core/src/domain/tree/helpers/getDefaultElement.spec.d.ts +0 -1
- package/apps/core/src/domain/tree/helpers/handleRemovedLibraries.d.ts +0 -9
- package/apps/core/src/domain/tree/helpers/handleRemovedLibraries.spec.d.ts +0 -1
- package/apps/core/src/domain/tree/helpers/index.d.ts +0 -4
- package/apps/core/src/domain/tree/helpers/treeDataValidation.d.ts +0 -13
- package/apps/core/src/domain/tree/helpers/treeDataValidation.spec.d.ts +0 -1
- package/apps/core/src/domain/tree/index.d.ts +0 -1
- package/apps/core/src/domain/tree/treeDomain.d.ts +0 -159
- package/apps/core/src/domain/tree/treeDomain.spec.d.ts +0 -1
- package/apps/core/src/domain/user/index.d.ts +0 -1
- package/apps/core/src/domain/user/userDomain.d.ts +0 -36
- package/apps/core/src/domain/user/userDomain.spec.d.ts +0 -1
- package/apps/core/src/domain/value/_types.d.ts +0 -20
- package/apps/core/src/domain/value/helpers/canSaveValue.d.ts +0 -28
- package/apps/core/src/domain/value/helpers/doesValueExist.d.ts +0 -4
- package/apps/core/src/domain/value/helpers/findValue.d.ts +0 -25
- package/apps/core/src/domain/value/helpers/prepareValue.d.ts +0 -22
- package/apps/core/src/domain/value/helpers/saveOneValue.d.ts +0 -21
- package/apps/core/src/domain/value/helpers/validateValue.d.ts +0 -25
- package/apps/core/src/domain/value/index.d.ts +0 -1
- package/apps/core/src/domain/value/valueDomain.d.ts +0 -113
- package/apps/core/src/domain/value/valueDomain.spec.d.ts +0 -1
- package/apps/core/src/domain/versionProfile/index.d.ts +0 -1
- package/apps/core/src/domain/versionProfile/versionProfileDomain.d.ts +0 -45
- package/apps/core/src/domain/versionProfile/versionProfileDomain.spec.d.ts +0 -1
- package/apps/core/src/domain/view/index.d.ts +0 -1
- package/apps/core/src/domain/view/viewDomain.d.ts +0 -19
- package/apps/core/src/domain/view/viewDomain.spec.d.ts +0 -1
- package/apps/core/src/env.d.ts +0 -2
- package/apps/core/src/errors/ApplicationError.d.ts +0 -12
- package/apps/core/src/errors/AuthenticationError.d.ts +0 -3
- package/apps/core/src/errors/GraphQLAuthenticationError.d.ts +0 -5
- package/apps/core/src/errors/LeavError.d.ts +0 -19
- package/apps/core/src/errors/PermissionError.d.ts +0 -10
- package/apps/core/src/errors/ValidationError.d.ts +0 -10
- package/apps/core/src/errors/typeguards.d.ts +0 -6
- package/apps/core/src/i18nextInit.d.ts +0 -4
- package/apps/core/src/index.d.ts +0 -1
- package/apps/core/src/infra/apiKey/apiKeyRepo.d.ts +0 -29
- package/apps/core/src/infra/apiKey/apiKeyRepo.spec.d.ts +0 -1
- package/apps/core/src/infra/apiKey/index.d.ts +0 -1
- package/apps/core/src/infra/application/applicationRepo.d.ts +0 -38
- package/apps/core/src/infra/application/applicationRepo.spec.d.ts +0 -1
- package/apps/core/src/infra/application/index.d.ts +0 -1
- package/apps/core/src/infra/attribute/attributeRepo.d.ts +0 -56
- package/apps/core/src/infra/attribute/attributeRepo.spec.d.ts +0 -1
- package/apps/core/src/infra/attribute/index.d.ts +0 -1
- package/apps/core/src/infra/attributeTypes/attributeAdvancedLinkRepo.d.ts +0 -16
- package/apps/core/src/infra/attributeTypes/attributeAdvancedLinkRepo.spec.d.ts +0 -1
- package/apps/core/src/infra/attributeTypes/attributeAdvancedRepo.d.ts +0 -12
- package/apps/core/src/infra/attributeTypes/attributeAdvancedRepo.spec.d.ts +0 -1
- package/apps/core/src/infra/attributeTypes/attributeSimpleLinkRepo.d.ts +0 -14
- package/apps/core/src/infra/attributeTypes/attributeSimpleLinkRepo.spec.d.ts +0 -1
- package/apps/core/src/infra/attributeTypes/attributeSimpleRepo.d.ts +0 -11
- package/apps/core/src/infra/attributeTypes/attributeSimpleRepo.spec.d.ts +0 -1
- package/apps/core/src/infra/attributeTypes/attributeTreeRepo.d.ts +0 -15
- package/apps/core/src/infra/attributeTypes/attributeTreeRepo.spec.d.ts +0 -1
- package/apps/core/src/infra/attributeTypes/attributeTypesRepo.d.ts +0 -128
- package/apps/core/src/infra/attributeTypes/attributeTypesRepo.spec.d.ts +0 -1
- package/apps/core/src/infra/attributeTypes/helpers/getConditionPart.d.ts +0 -5
- package/apps/core/src/infra/attributeTypes/helpers/index.d.ts +0 -1
- package/apps/core/src/infra/attributeTypes/index.d.ts +0 -6
- package/apps/core/src/infra/cache/cacheService.d.ts +0 -33
- package/apps/core/src/infra/cache/diskService.d.ts +0 -7
- package/apps/core/src/infra/cache/index.d.ts +0 -4
- package/apps/core/src/infra/cache/ramService.d.ts +0 -9
- package/apps/core/src/infra/cache/redis.d.ts +0 -8
- package/apps/core/src/infra/db/_constants.d.ts +0 -2
- package/apps/core/src/infra/db/_types.d.ts +0 -23
- package/apps/core/src/infra/db/db.d.ts +0 -8
- package/apps/core/src/infra/db/dbService.d.ts +0 -60
- package/apps/core/src/infra/db/dbService.spec.d.ts +0 -1
- package/apps/core/src/infra/db/dbUtils.d.ts +0 -40
- package/apps/core/src/infra/db/dbUtils.spec.d.ts +0 -1
- package/apps/core/src/infra/db/helpers/loadMigrationFile.d.ts +0 -2
- package/apps/core/src/infra/db/helpers/runMigrationFiles.d.ts +0 -18
- package/apps/core/src/infra/db/index.d.ts +0 -3
- package/apps/core/src/infra/db/migrations/000-init/coreCollections.d.ts +0 -6
- package/apps/core/src/infra/db/migrations/000-init/index.d.ts +0 -17
- package/apps/core/src/infra/db/migrations/000-init/systemApplications.d.ts +0 -5
- package/apps/core/src/infra/db/migrations/000-init/systemAttributes.d.ts +0 -2
- package/apps/core/src/infra/db/migrations/000-init/systemLibraries.d.ts +0 -9
- package/apps/core/src/infra/db/migrations/000-init/systemTrees.d.ts +0 -5
- package/apps/core/src/infra/db/migrations/001-delInstallApps.d.ts +0 -7
- package/apps/core/src/infra/db/migrations/002-previewsSettings.d.ts +0 -15
- package/apps/core/src/infra/db/migrations/003-filesMetadata.d.ts +0 -11
- package/apps/core/src/infra/db/migrations/004-formsLabels.d.ts +0 -8
- package/apps/core/src/infra/elasticSearch/elasticSearchClient.d.ts +0 -7
- package/apps/core/src/infra/elasticSearch/elasticSearchService.d.ts +0 -22
- package/apps/core/src/infra/elasticSearch/index.d.ts +0 -1
- package/apps/core/src/infra/filesManager/filesManagerRepo.d.ts +0 -23
- package/apps/core/src/infra/filesManager/filesManagerRepo.spec.d.ts +0 -1
- package/apps/core/src/infra/filesManager/index.d.ts +0 -1
- package/apps/core/src/infra/form/formRepo.d.ts +0 -34
- package/apps/core/src/infra/form/formRepo.spec.d.ts +0 -1
- package/apps/core/src/infra/form/index.d.ts +0 -1
- package/apps/core/src/infra/globalSettings/globalSettingsRepo.d.ts +0 -15
- package/apps/core/src/infra/globalSettings/globalSettingsRepo.spec.d.ts +0 -1
- package/apps/core/src/infra/globalSettings/index.d.ts +0 -1
- package/apps/core/src/infra/indexation/helpers/getSearchQuery.d.ts +0 -4
- package/apps/core/src/infra/indexation/helpers/getSearchQuery.spec.d.ts +0 -1
- package/apps/core/src/infra/indexation/helpers/index.d.ts +0 -1
- package/apps/core/src/infra/indexation/index.d.ts +0 -1
- package/apps/core/src/infra/indexation/indexationService.d.ts +0 -27
- package/apps/core/src/infra/library/index.d.ts +0 -1
- package/apps/core/src/infra/library/libraryRepo.d.ts +0 -87
- package/apps/core/src/infra/library/libraryRepo.spec.d.ts +0 -1
- package/apps/core/src/infra/log/index.d.ts +0 -1
- package/apps/core/src/infra/log/logRepo.d.ts +0 -18
- package/apps/core/src/infra/log/logRepo.spec.d.ts +0 -1
- package/apps/core/src/infra/mailer/index.d.ts +0 -2
- package/apps/core/src/infra/mailer/mailer.d.ts +0 -7
- package/apps/core/src/infra/mailer/mailerService.d.ts +0 -26
- package/apps/core/src/infra/oidc/__tests__/oidcClient.spec.d.ts +0 -1
- package/apps/core/src/infra/oidc/__tests__/oidcClientService.spec.d.ts +0 -1
- package/apps/core/src/infra/oidc/index.d.ts +0 -2
- package/apps/core/src/infra/oidc/oidcClient.d.ts +0 -4
- package/apps/core/src/infra/oidc/oidcClientService.d.ts +0 -35
- package/apps/core/src/infra/permission/index.d.ts +0 -1
- package/apps/core/src/infra/permission/permissionRepo.d.ts +0 -27
- package/apps/core/src/infra/permission/permissionRepo.spec.d.ts +0 -1
- package/apps/core/src/infra/plugins/index.d.ts +0 -1
- package/apps/core/src/infra/plugins/pluginsRepo.d.ts +0 -6
- package/apps/core/src/infra/plugins/pluginsRepo.spec.d.ts +0 -1
- package/apps/core/src/infra/record/helpers/filterTypes.d.ts +0 -7
- package/apps/core/src/infra/record/helpers/filterTypes.spec.d.ts +0 -1
- package/apps/core/src/infra/record/helpers/getClassifyingFiltersVariableQueryPart.d.ts +0 -11
- package/apps/core/src/infra/record/helpers/getClassifyingFiltersVariableQueryPart.spec.d.ts +0 -1
- package/apps/core/src/infra/record/helpers/getSearchVariableName.d.ts +0 -8
- package/apps/core/src/infra/record/helpers/getSearchVariableName.spec.d.ts +0 -1
- package/apps/core/src/infra/record/helpers/getSearchVariablesQueryPart.d.ts +0 -15
- package/apps/core/src/infra/record/helpers/getSearchVariablesQueryPart.spec.d.ts +0 -1
- package/apps/core/src/infra/record/helpers/index.d.ts +0 -4
- package/apps/core/src/infra/record/index.d.ts +0 -1
- package/apps/core/src/infra/record/recordRepo.d.ts +0 -60
- package/apps/core/src/infra/record/recordRepo.spec.d.ts +0 -1
- package/apps/core/src/infra/task/index.d.ts +0 -1
- package/apps/core/src/infra/task/taskRepo.d.ts +0 -30
- package/apps/core/src/infra/task/taskRepo.spec.d.ts +0 -1
- package/apps/core/src/infra/tree/_types.d.ts +0 -9
- package/apps/core/src/infra/tree/helpers/utils.d.ts +0 -5
- package/apps/core/src/infra/tree/index.d.ts +0 -1
- package/apps/core/src/infra/tree/treeRepo.d.ts +0 -168
- package/apps/core/src/infra/tree/treeRepo.spec.d.ts +0 -1
- package/apps/core/src/infra/userData/index.d.ts +0 -1
- package/apps/core/src/infra/userData/userDataRepo.d.ts +0 -19
- package/apps/core/src/infra/userData/userDataRepo.spec.d.ts +0 -1
- package/apps/core/src/infra/value/index.d.ts +0 -1
- package/apps/core/src/infra/value/valueRepo.d.ts +0 -83
- package/apps/core/src/infra/value/valueRepo.spec.d.ts +0 -1
- package/apps/core/src/infra/versionProfile/index.d.ts +0 -1
- package/apps/core/src/infra/versionProfile/versionProfileRepo.d.ts +0 -35
- package/apps/core/src/infra/versionProfile/versionProfileRepo.spec.d.ts +0 -1
- package/apps/core/src/infra/view/_types.d.ts +0 -16
- package/apps/core/src/infra/view/index.d.ts +0 -1
- package/apps/core/src/infra/view/viewRepo.d.ts +0 -2
- package/apps/core/src/infra/view/viewRepo.spec.d.ts +0 -1
- package/apps/core/src/interface/cli.d.ts +0 -8
- package/apps/core/src/interface/filesManager.d.ts +0 -9
- package/apps/core/src/interface/helpers/handleGraphqlError.d.ts +0 -13
- package/apps/core/src/interface/helpers/handleGraphqlError.spec.d.ts +0 -1
- package/apps/core/src/interface/helpers/index.d.ts +0 -1
- package/apps/core/src/interface/index.d.ts +0 -5
- package/apps/core/src/interface/indexationManager.d.ts +0 -9
- package/apps/core/src/interface/server.d.ts +0 -30
- package/apps/core/src/interface/tasksManager.d.ts +0 -10
- package/apps/core/src/pluginsLoader.d.ts +0 -2
- package/apps/core/src/testConfig.d.ts +0 -1
- package/apps/core/src/utils/helpers/getDefaultActionsList.d.ts +0 -4
- package/apps/core/src/utils/helpers/getLibraryDefaultAttributes.d.ts +0 -3
- package/apps/core/src/utils/helpers/getPreviewsAttributes.d.ts +0 -2
- package/apps/core/src/utils/helpers/getValuesToDisplay.d.ts +0 -2
- package/apps/core/src/utils/helpers/getValuesToDisplay.spec.d.ts +0 -1
- package/apps/core/src/utils/index.d.ts +0 -3
- package/apps/core/src/utils/logger/logger.d.ts +0 -39
- package/apps/core/src/utils/preview/preview.d.ts +0 -1
- package/apps/core/src/utils/typeGuards/index.d.ts +0 -6
- package/apps/core/src/utils/typeGuards/typeGuards.spec.d.ts +0 -1
- package/apps/core/src/utils/utils.d.ts +0 -97
- package/apps/core/src/utils/utils.spec.d.ts +0 -1
- package/libs/app-root-path/src/index.d.ts +0 -1
- package/libs/config-manager/src/index.d.ts +0 -10
- package/libs/message-broker/src/amqpService.d.ts +0 -20
- package/libs/message-broker/src/index.d.ts +0 -2
- package/libs/message-broker/src/types/amqp.d.ts +0 -15
- package/libs/utils/src/constants.d.ts +0 -2
- package/libs/utils/src/index.d.ts +0 -11
- package/libs/utils/src/types/applications.d.ts +0 -1
- package/libs/utils/src/types/attributes.d.ts +0 -7
- package/libs/utils/src/types/errors.d.ts +0 -5
- package/libs/utils/src/types/events.d.ts +0 -75
- package/libs/utils/src/types/files.d.ts +0 -16
- package/libs/utils/src/types/forms.d.ts +0 -54
- package/libs/utils/src/types/helpers.d.ts +0 -13
- package/libs/utils/src/types/logs.d.ts +0 -2
- package/libs/utils/src/types/previews.d.ts +0 -5
- package/libs/utils/src/types/values.d.ts +0 -4
- package/libs/utils/src/utils.d.ts +0 -68
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { IFilesManagerApp } from 'app/core/filesManagerApp';
|
|
2
|
-
export interface IFilesManagerInterface {
|
|
3
|
-
init(): Promise<void>;
|
|
4
|
-
}
|
|
5
|
-
interface IDeps {
|
|
6
|
-
'core.app.core.filesManager': IFilesManagerApp;
|
|
7
|
-
}
|
|
8
|
-
export default function ({ 'core.app.core.filesManager': filesManager }: IDeps): IFilesManagerInterface;
|
|
9
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { GraphQLError, GraphQLFormattedError } from 'graphql';
|
|
2
|
-
import { IUtils } from 'utils/utils';
|
|
3
|
-
import winston from 'winston';
|
|
4
|
-
import { IConfig } from '_types/config';
|
|
5
|
-
import { IQueryInfos } from '_types/queryInfos';
|
|
6
|
-
export type HandleGraphqlErrorFunc = (err: GraphQLError, ctx: IQueryInfos) => GraphQLFormattedError;
|
|
7
|
-
interface IDeps {
|
|
8
|
-
config: IConfig;
|
|
9
|
-
'core.utils': IUtils;
|
|
10
|
-
'core.utils.logger'?: winston.Winston;
|
|
11
|
-
}
|
|
12
|
-
export default function ({ config, 'core.utils': utils, 'core.utils.logger': logger }: IDeps): HandleGraphqlErrorFunc;
|
|
13
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as handleGraphqlError } from './handleGraphqlError';
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { default as cli } from './cli';
|
|
2
|
-
export { default as filesManager } from './filesManager';
|
|
3
|
-
export { default as indexationManager } from './indexationManager';
|
|
4
|
-
export { default as tasksManager } from './tasksManager';
|
|
5
|
-
export { default as server } from './server';
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { IIndexationManagerApp } from 'app/core/indexationManagerApp';
|
|
2
|
-
export interface IIndexationManagerInterface {
|
|
3
|
-
init(): Promise<void>;
|
|
4
|
-
}
|
|
5
|
-
interface IDeps {
|
|
6
|
-
'core.app.core.indexationManager': IIndexationManagerApp;
|
|
7
|
-
}
|
|
8
|
-
export default function ({ 'core.app.core.indexationManager': indexationManager }: IDeps): IIndexationManagerInterface;
|
|
9
|
-
export {};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { IApplicationApp } from 'app/application/applicationApp';
|
|
2
|
-
import { IAuthApp } from 'app/auth/authApp';
|
|
3
|
-
import { ICoreApp } from 'app/core/coreApp';
|
|
4
|
-
import { IGraphqlApp } from 'app/graphql/graphqlApp';
|
|
5
|
-
import { AwilixContainer } from 'awilix';
|
|
6
|
-
import { IUtils } from 'utils/utils';
|
|
7
|
-
import * as winston from 'winston';
|
|
8
|
-
import { IConfig } from '_types/config';
|
|
9
|
-
import type { ValidateRequestTokenFunc } from '../app/helpers/validateRequestToken';
|
|
10
|
-
import { HandleGraphqlErrorFunc } from './helpers/handleGraphqlError';
|
|
11
|
-
import { InitQueryContextFunc } from 'app/helpers/initQueryContext';
|
|
12
|
-
export interface IServer {
|
|
13
|
-
init(): Promise<void>;
|
|
14
|
-
initConsumers(): Promise<void>;
|
|
15
|
-
}
|
|
16
|
-
interface IDeps {
|
|
17
|
-
config?: IConfig;
|
|
18
|
-
'core.interface.helpers.handleGraphqlError'?: HandleGraphqlErrorFunc;
|
|
19
|
-
'core.app.graphql'?: IGraphqlApp;
|
|
20
|
-
'core.app.auth'?: IAuthApp;
|
|
21
|
-
'core.app.application'?: IApplicationApp;
|
|
22
|
-
'core.app.core'?: ICoreApp;
|
|
23
|
-
'core.app.helpers.validateRequestToken'?: ValidateRequestTokenFunc;
|
|
24
|
-
'core.app.helpers.initQueryContext'?: InitQueryContextFunc;
|
|
25
|
-
'core.utils.logger'?: winston.Winston;
|
|
26
|
-
'core.utils'?: IUtils;
|
|
27
|
-
'core.depsManager'?: AwilixContainer;
|
|
28
|
-
}
|
|
29
|
-
export default function ({ config: config, 'core.interface.helpers.handleGraphqlError': handleGraphqlError, 'core.app.graphql': graphqlApp, 'core.app.auth': authApp, 'core.app.application': applicationApp, 'core.app.core': coreApp, 'core.app.helpers.validateRequestToken': validateRequestToken, 'core.app.helpers.initQueryContext': initQueryContext, 'core.utils.logger': logger, 'core.utils': utils, 'core.depsManager': depsManager }?: IDeps): IServer;
|
|
30
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ITasksManagerApp } from 'app/core/tasksManagerApp';
|
|
2
|
-
export interface ITasksManagerInterface {
|
|
3
|
-
initMaster(): Promise<NodeJS.Timer>;
|
|
4
|
-
initWorker(): Promise<void>;
|
|
5
|
-
}
|
|
6
|
-
interface IDeps {
|
|
7
|
-
'core.app.core.tasksManager': ITasksManagerApp;
|
|
8
|
-
}
|
|
9
|
-
export default function ({ 'core.app.core.tasksManager': tasksManager }: IDeps): ITasksManagerInterface;
|
|
10
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import * as logger from 'winston';
|
|
2
|
-
interface IDeps {
|
|
3
|
-
config?: any;
|
|
4
|
-
}
|
|
5
|
-
export default function ({ config }?: IDeps): {
|
|
6
|
-
default: logger.Winston;
|
|
7
|
-
config: logger.Config;
|
|
8
|
-
transports: logger.Transports;
|
|
9
|
-
Transport: logger.TransportStatic;
|
|
10
|
-
Logger: logger.LoggerStatic;
|
|
11
|
-
Container: logger.ContainerStatic;
|
|
12
|
-
loggers: logger.ContainerInstance;
|
|
13
|
-
exception: logger.Exception;
|
|
14
|
-
exitOnError: boolean;
|
|
15
|
-
level: string;
|
|
16
|
-
log: logger.LogMethod;
|
|
17
|
-
silly: logger.LeveledLogMethod;
|
|
18
|
-
debug: logger.LeveledLogMethod;
|
|
19
|
-
verbose: logger.LeveledLogMethod;
|
|
20
|
-
info: logger.LeveledLogMethod;
|
|
21
|
-
warn: logger.LeveledLogMethod;
|
|
22
|
-
error: logger.LeveledLogMethod;
|
|
23
|
-
query(options: logger.QueryOptions, callback?: (err: Error, results: any) => void): any;
|
|
24
|
-
query(callback: (err: Error, results: any) => void): any;
|
|
25
|
-
stream(options?: any): NodeJS.ReadableStream;
|
|
26
|
-
handleExceptions(...transports: logger.TransportInstance[]): void;
|
|
27
|
-
unhandleExceptions(...transports: logger.TransportInstance[]): void;
|
|
28
|
-
add(transport: logger.TransportInstance, options?: logger.TransportOptions, created?: boolean): logger.LoggerInstance;
|
|
29
|
-
clear(): void;
|
|
30
|
-
remove(transport: string | logger.TransportInstance): logger.LoggerInstance;
|
|
31
|
-
startTimer(): logger.ProfileHandler;
|
|
32
|
-
profile(id: string, msg?: string, meta?: any, callback?: (err: Error, level: string, msg: string, meta: any) => void): logger.LoggerInstance;
|
|
33
|
-
addColors(target: logger.AbstractConfigSetColors): any;
|
|
34
|
-
setLevels(target: logger.AbstractConfigSetLevels): any;
|
|
35
|
-
cli(): logger.LoggerInstance;
|
|
36
|
-
close(): void;
|
|
37
|
-
configure(options: logger.LoggerOptions): void;
|
|
38
|
-
};
|
|
39
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const getPreviewUrl: () => string;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { IVariableValue } from '../../domain/helpers/calculationVariable';
|
|
2
|
-
import { IStandardValue, IValue } from '../../_types/value';
|
|
3
|
-
export declare const TypeGuards: {
|
|
4
|
-
isVariableIValue: (value: IVariableValue["payload"]) => value is IValue;
|
|
5
|
-
isIStandardValue: (value: IValue) => value is IStandardValue;
|
|
6
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
import { i18n } from 'i18next';
|
|
2
|
-
import { ActionsListConfig } from '_types/actionsList';
|
|
3
|
-
import { IConfig } from '_types/config';
|
|
4
|
-
import { ErrorFieldDetailMessage, Errors, IExtendedErrorMsg } from '../_types/errors';
|
|
5
|
-
import { ILibrary, ILibraryPreviewsSettings, LibraryBehavior } from '_types/library';
|
|
6
|
-
import { IValue } from '_types/value';
|
|
7
|
-
import ValidationError from '../errors/ValidationError';
|
|
8
|
-
import { IAttribute } from '../_types/attribute';
|
|
9
|
-
import { IPreviewAttributesSettings, IPreviewVersion } from '../_types/filesManager';
|
|
10
|
-
export type ToAny<T> = {
|
|
11
|
-
[P in keyof T]: any;
|
|
12
|
-
};
|
|
13
|
-
export interface IUtils {
|
|
14
|
-
libNameToQueryName(name: string): string;
|
|
15
|
-
libNameToTypeName(name: string): string;
|
|
16
|
-
/**
|
|
17
|
-
* Validate ID format: must be only alphanum characters and underscores
|
|
18
|
-
*
|
|
19
|
-
* @param id
|
|
20
|
-
*/
|
|
21
|
-
isIdValid(id: string): boolean;
|
|
22
|
-
/**
|
|
23
|
-
* Validate endpoint format: if external, can be any URL, if internal must be only alphanum characters and dashes
|
|
24
|
-
*
|
|
25
|
-
* @param id
|
|
26
|
-
* @param isExternal
|
|
27
|
-
*/
|
|
28
|
-
isEndpointValid(id: string, isExternal: boolean): boolean;
|
|
29
|
-
/**
|
|
30
|
-
* Rethrow an error prefixed by optional message.
|
|
31
|
-
* The same given error is re-thrown so stacktrace is kept intact
|
|
32
|
-
*
|
|
33
|
-
* @param err
|
|
34
|
-
* @param message
|
|
35
|
-
*/
|
|
36
|
-
rethrow(err: Error, message?: string): never;
|
|
37
|
-
pipe(...fns: any[]): any;
|
|
38
|
-
mergeConcat<T = object, U = object>(object: T, sources: U): T & U;
|
|
39
|
-
nameValArrayToObj(arr?: Array<{}>, keyFieldName?: string, valueFieldName?: string): {
|
|
40
|
-
[key: string]: any;
|
|
41
|
-
};
|
|
42
|
-
objToNameValArray<T extends {}>(obj: {}, keyFieldName?: string, valueFieldName?: string): T[];
|
|
43
|
-
/**
|
|
44
|
-
* Get the tree library associated with the library given
|
|
45
|
-
*
|
|
46
|
-
* @param library
|
|
47
|
-
*/
|
|
48
|
-
getLibraryTreeId(library: string): string;
|
|
49
|
-
/**
|
|
50
|
-
* Get the directories library associated with the library given
|
|
51
|
-
*
|
|
52
|
-
* @param library
|
|
53
|
-
*/
|
|
54
|
-
getDirectoriesLibraryId(library: string): string;
|
|
55
|
-
/**
|
|
56
|
-
* Get the files library associated with the directories library given
|
|
57
|
-
*
|
|
58
|
-
* @param directoriesLibrary
|
|
59
|
-
*/
|
|
60
|
-
getFilesLibraryId(directoriesLibrary: string): string;
|
|
61
|
-
forceArray<T>(val: T | T[]): T[];
|
|
62
|
-
getDefaultActionsList(attribute: IAttribute): ActionsListConfig;
|
|
63
|
-
getLibraryDefaultAttributes(behavior: LibraryBehavior, libraryId: string): string[];
|
|
64
|
-
timestampToDate(t: number | string): Date;
|
|
65
|
-
dateToTimestamp(d: Date): number;
|
|
66
|
-
isStandardAttribute(attribute: IAttribute): boolean;
|
|
67
|
-
isLinkAttribute(attribute: IAttribute): boolean;
|
|
68
|
-
isTreeAttribute(attribute: IAttribute): boolean;
|
|
69
|
-
/**
|
|
70
|
-
* Extract library and record ID from the "_to" field
|
|
71
|
-
*
|
|
72
|
-
* @param value Edge destination in the form of "<library>/<record_id>"
|
|
73
|
-
*/
|
|
74
|
-
decomposeValueEdgeDestination(value: string): {
|
|
75
|
-
library: string;
|
|
76
|
-
id: string;
|
|
77
|
-
};
|
|
78
|
-
translateError(error: Errors | IExtendedErrorMsg | string, lang: string): string;
|
|
79
|
-
getFullApplicationEndpoint(endpoint?: string): string;
|
|
80
|
-
getCoreEntityCacheKey(entityType: string, entityId: string): string;
|
|
81
|
-
getRecordsCacheKey(libraryId: string, recordId: string): string;
|
|
82
|
-
generateExplicitValidationError<T>(field: keyof T, message: ErrorFieldDetailMessage, lang?: string): ValidationError<T>;
|
|
83
|
-
deleteFile(path: string): Promise<void>;
|
|
84
|
-
getUnixTime(): number;
|
|
85
|
-
getFileExtension(filename: string): string | null;
|
|
86
|
-
getProcessIdentifier(): string;
|
|
87
|
-
getPreviewsAttributeName(libraryId: string): string;
|
|
88
|
-
getPreviewsStatusAttributeName(libraryId: string): string;
|
|
89
|
-
getPreviewAttributesSettings(library: ILibrary): IPreviewAttributesSettings;
|
|
90
|
-
previewsSettingsToVersions(previewsSettings: ILibraryPreviewsSettings[]): IPreviewVersion[];
|
|
91
|
-
areValuesIdentical(value1: IValue, value2: IValue): boolean;
|
|
92
|
-
}
|
|
93
|
-
export interface IUtilsDeps {
|
|
94
|
-
config?: IConfig;
|
|
95
|
-
translator?: i18n;
|
|
96
|
-
}
|
|
97
|
-
export default function ({ config, translator }?: IUtilsDeps): IUtils;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const appRootPath: () => string;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Load appropriate config based on application environment.
|
|
3
|
-
* We first load default config, then env specified config (production, development...).
|
|
4
|
-
* Finally, config can be overridden locally with "local.js" config file
|
|
5
|
-
*
|
|
6
|
-
* If one of these files is missing, it will be silently ignored.
|
|
7
|
-
*
|
|
8
|
-
* @return {Promise} Full config
|
|
9
|
-
*/
|
|
10
|
-
export declare function loadConfig<T extends {} = {}>(dirPath: string, env: string): Promise<T>;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import * as amqp from 'amqplib';
|
|
2
|
-
import { IAmqp, onMessageFunc } from './types/amqp';
|
|
3
|
-
export interface IAmqpService {
|
|
4
|
-
publisher: {
|
|
5
|
-
connection: amqp.Connection;
|
|
6
|
-
channel: amqp.ConfirmChannel;
|
|
7
|
-
};
|
|
8
|
-
consumer: {
|
|
9
|
-
connection: amqp.Connection;
|
|
10
|
-
channel: amqp.ConfirmChannel;
|
|
11
|
-
};
|
|
12
|
-
publish(exchange: string, routingKey: string, msg: string, priority?: number): Promise<boolean>;
|
|
13
|
-
consume(queue: string, routingKey: string, onMessage: onMessageFunc, consumerTag?: string): Promise<amqp.Replies.Consume>;
|
|
14
|
-
close(): Promise<void>;
|
|
15
|
-
}
|
|
16
|
-
interface IDeps {
|
|
17
|
-
config: IAmqp;
|
|
18
|
-
}
|
|
19
|
-
export default function ({ config }: IDeps): Promise<IAmqpService>;
|
|
20
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as amqp from 'amqplib';
|
|
2
|
-
export interface IAmqp {
|
|
3
|
-
connOpt: amqp.Options.Connect;
|
|
4
|
-
exchange: string;
|
|
5
|
-
type: string;
|
|
6
|
-
prefetch?: number;
|
|
7
|
-
}
|
|
8
|
-
export interface IAmqpConn {
|
|
9
|
-
connection: amqp.Connection;
|
|
10
|
-
channel: amqp.ConfirmChannel;
|
|
11
|
-
}
|
|
12
|
-
export interface IMessageBody {
|
|
13
|
-
[key: string]: any;
|
|
14
|
-
}
|
|
15
|
-
export type onMessageFunc = (msg: amqp.ConsumeMessage) => Promise<void>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export * from './constants';
|
|
2
|
-
export * from './types/applications';
|
|
3
|
-
export * from './types/errors';
|
|
4
|
-
export * from './types/events';
|
|
5
|
-
export * from './types/files';
|
|
6
|
-
export * from './types/forms';
|
|
7
|
-
export * from './types/helpers';
|
|
8
|
-
export * from './types/logs';
|
|
9
|
-
export * from './types/previews';
|
|
10
|
-
export * from './types/values';
|
|
11
|
-
export * from './utils';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const CONSULTED_APPS_KEY = "applications_consultation";
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
export interface IEvent {
|
|
2
|
-
time: number;
|
|
3
|
-
userId: string;
|
|
4
|
-
emitter: string;
|
|
5
|
-
queryId: string;
|
|
6
|
-
instanceId: string;
|
|
7
|
-
}
|
|
8
|
-
/*** Database events ***/
|
|
9
|
-
export declare enum EventAction {
|
|
10
|
-
API_KEY_DELETE = "API_KEY_DELETE",
|
|
11
|
-
API_KEY_SAVE = "API_KEY_SAVE",
|
|
12
|
-
APP_DELETE = "APP_DELETE",
|
|
13
|
-
APP_SAVE = "APP_SAVE",
|
|
14
|
-
ATTRIBUTE_DELETE = "ATTRIBUTE_DELETE",
|
|
15
|
-
ATTRIBUTE_SAVE = "ATTRIBUTE_SAVE",
|
|
16
|
-
EXPORT_START = "EXPORT_START",
|
|
17
|
-
EXPORT_END = "EXPORT_END",
|
|
18
|
-
DATA_IMPORT_START = "DATA_IMPORT_START",
|
|
19
|
-
DATA_IMPORT_END = "DATA_IMPORT_END",
|
|
20
|
-
CONFIG_IMPORT_START = "CONFIG_IMPORT_START",
|
|
21
|
-
CONFIG_IMPORT_END = "CONFIG_IMPORT_END",
|
|
22
|
-
GLOBAL_SETTINGS_SAVE = "GLOBAL_SETTINGS_SAVE",
|
|
23
|
-
LIBRARY_DELETE = "LIBRARY_DELETE",
|
|
24
|
-
LIBRARY_PURGE = "LIBRARY_PURGE",
|
|
25
|
-
LIBRARY_SAVE = "LIBRARY_SAVE",
|
|
26
|
-
TASKS_DELETE = "TASKS_DELETE",
|
|
27
|
-
PERMISSION_SAVE = "PERMISSION_SAVE",
|
|
28
|
-
RECORD_DELETE = "RECORD_DELETE",
|
|
29
|
-
RECORD_SAVE = "RECORD_SAVE",
|
|
30
|
-
TREE_ADD_ELEMENT = "TREE_ADD_ELEMENT",
|
|
31
|
-
TREE_DELETE = "TREE_DELETE",
|
|
32
|
-
TREE_DELETE_ELEMENT = "TREE_DELETE_ELEMENT",
|
|
33
|
-
TREE_MOVE_ELEMENT = "TREE_MOVE_ELEMENT",
|
|
34
|
-
TREE_SAVE = "TREE_SAVE",
|
|
35
|
-
VALUE_DELETE = "VALUE_DELETE",
|
|
36
|
-
VALUE_SAVE = "VALUE_SAVE",
|
|
37
|
-
VERSION_PROFILE_DELETE = "VERSION_PROFILE_DELETE",
|
|
38
|
-
VERSION_PROFILE_SAVE = "VERSION_PROFILE_SAVE"
|
|
39
|
-
}
|
|
40
|
-
export interface IDbPayload {
|
|
41
|
-
trigger?: string;
|
|
42
|
-
action: EventAction | string;
|
|
43
|
-
topic: {
|
|
44
|
-
record?: {
|
|
45
|
-
id: string;
|
|
46
|
-
libraryId: string;
|
|
47
|
-
};
|
|
48
|
-
library?: string;
|
|
49
|
-
attribute?: string;
|
|
50
|
-
tree?: string;
|
|
51
|
-
profile?: string;
|
|
52
|
-
permission?: {
|
|
53
|
-
type: string;
|
|
54
|
-
applyTo?: any;
|
|
55
|
-
};
|
|
56
|
-
apiKey?: string;
|
|
57
|
-
application?: string;
|
|
58
|
-
filename?: string;
|
|
59
|
-
};
|
|
60
|
-
before?: any;
|
|
61
|
-
after?: any;
|
|
62
|
-
metadata?: any;
|
|
63
|
-
}
|
|
64
|
-
export interface IDbEvent extends IEvent {
|
|
65
|
-
payload: IDbPayload;
|
|
66
|
-
}
|
|
67
|
-
/*** PubSub events ***/
|
|
68
|
-
export type PublishedEvent<T> = IEvent & T;
|
|
69
|
-
export interface IPubSubEvent extends IEvent {
|
|
70
|
-
payload: IPubSubPayload;
|
|
71
|
-
}
|
|
72
|
-
export interface IPubSubPayload {
|
|
73
|
-
triggerName: string;
|
|
74
|
-
data: any;
|
|
75
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export declare enum FileType {
|
|
2
|
-
IMAGE = "image",
|
|
3
|
-
VIDEO = "video",
|
|
4
|
-
AUDIO = "audio",
|
|
5
|
-
DOCUMENT = "document",
|
|
6
|
-
OTHER = "other"
|
|
7
|
-
}
|
|
8
|
-
export type FileRecord = Record<string, any> & {
|
|
9
|
-
type: FileType;
|
|
10
|
-
};
|
|
11
|
-
export interface IPreviewScalar {
|
|
12
|
-
pdf?: string;
|
|
13
|
-
file: FileRecord;
|
|
14
|
-
original: string;
|
|
15
|
-
[key: string]: string | FileRecord;
|
|
16
|
-
}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { IKeyValue } from './helpers';
|
|
2
|
-
export declare enum FormUIElementTypes {
|
|
3
|
-
DIVIDER = "divider",
|
|
4
|
-
FIELDS_CONTAINER = "fields_container",
|
|
5
|
-
TAB_FIELDS_CONTAINER = "tab_fields_container",
|
|
6
|
-
TEXT_BLOCK = "text_block",
|
|
7
|
-
TABS = "tabs"
|
|
8
|
-
}
|
|
9
|
-
export declare enum FormFieldTypes {
|
|
10
|
-
TEXT_INPUT = "input_field",
|
|
11
|
-
DATE = "date",
|
|
12
|
-
CHECKBOX = "checkbox",
|
|
13
|
-
ENCRYPTED = "encrypted",
|
|
14
|
-
DROPDOWN = "dropdown",
|
|
15
|
-
LINK = "link",
|
|
16
|
-
TREE = "tree"
|
|
17
|
-
}
|
|
18
|
-
export declare enum TabsDirection {
|
|
19
|
-
HORIZONTAL = "horizontal",
|
|
20
|
-
VERTICAL = "vertical"
|
|
21
|
-
}
|
|
22
|
-
export interface ICommonFieldsSettings {
|
|
23
|
-
label?: Record<string, string | null>;
|
|
24
|
-
attribute?: string;
|
|
25
|
-
useAttributeLabel?: boolean;
|
|
26
|
-
}
|
|
27
|
-
export interface IRequiredFieldsSettings extends ICommonFieldsSettings {
|
|
28
|
-
required?: boolean;
|
|
29
|
-
}
|
|
30
|
-
export interface IFormDividerSettings {
|
|
31
|
-
title?: string;
|
|
32
|
-
}
|
|
33
|
-
export interface IFormTabSettings {
|
|
34
|
-
label?: IKeyValue<string>;
|
|
35
|
-
id: string;
|
|
36
|
-
}
|
|
37
|
-
export interface IFormTabsSettings {
|
|
38
|
-
tabs: IFormTabSettings[];
|
|
39
|
-
direction: TabsDirection;
|
|
40
|
-
}
|
|
41
|
-
export interface IFormTextBlockSettings {
|
|
42
|
-
content?: string;
|
|
43
|
-
}
|
|
44
|
-
export interface IFormDateFieldSettings extends ICommonFieldsSettings {
|
|
45
|
-
withTime: boolean;
|
|
46
|
-
}
|
|
47
|
-
export interface IFormLinkFieldSettings extends ICommonFieldsSettings {
|
|
48
|
-
columns: Array<{
|
|
49
|
-
id: string;
|
|
50
|
-
label: Record<string, string>;
|
|
51
|
-
}>;
|
|
52
|
-
displayRecordIdentity: boolean;
|
|
53
|
-
}
|
|
54
|
-
export declare const FORM_ROOT_CONTAINER_ID = "__root";
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export interface IKeyValue<T> {
|
|
2
|
-
[key: string]: T;
|
|
3
|
-
}
|
|
4
|
-
export type AnyPrimitive = string | number | boolean;
|
|
5
|
-
export type Override<T1, T2> = Omit<T1, keyof T2> & T2;
|
|
6
|
-
export type WithTypename<T> = {
|
|
7
|
-
[P in keyof T]: T[P] extends object ? WithTypename<T[P]> : T[P];
|
|
8
|
-
} & {
|
|
9
|
-
readonly __typename?: string;
|
|
10
|
-
};
|
|
11
|
-
export type Mockify<T> = {
|
|
12
|
-
[P in keyof T]?: T[P] extends (...args: any[]) => any ? jest.Mock<ReturnType<T[P]> extends never ? never : any> : T[P];
|
|
13
|
-
};
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { AttributeType } from './types/attributes';
|
|
2
|
-
import { FileType } from './types/files';
|
|
3
|
-
import { IKeyValue } from './types/helpers';
|
|
4
|
-
export declare const getGraphqlTypeFromLibraryName: (library: string) => string;
|
|
5
|
-
export declare const getGraphqlQueryNameFromLibraryName: (library: string) => string;
|
|
6
|
-
export declare const isFileAllowed: (fsPath: string, allowList: string[], ignoreList: string[], filePath: string) => boolean;
|
|
7
|
-
export declare const localizedTranslation: (translations: Record<string, string>, availableLanguages: string[]) => string;
|
|
8
|
-
/**
|
|
9
|
-
*
|
|
10
|
-
* @param str
|
|
11
|
-
* @param format 'hsl' || 'rgb' || 'hex'
|
|
12
|
-
* @param saturation in percent, default to 30
|
|
13
|
-
* @param luminosity in percent, default to 80
|
|
14
|
-
*/
|
|
15
|
-
export declare const stringToColor: (str?: string | null, format?: string, saturation?: number, luminosity?: number) => string;
|
|
16
|
-
export declare const getInvertColor: (color: string) => string;
|
|
17
|
-
/**
|
|
18
|
-
* Parse string to extract args.
|
|
19
|
-
* Arg is a string with format:
|
|
20
|
-
* -[argName] argValue
|
|
21
|
-
*
|
|
22
|
-
* eg. "-library product -type link" => {library: product, type: link}
|
|
23
|
-
* @param mapping
|
|
24
|
-
*/
|
|
25
|
-
export declare const extractArgsFromString: (mapping: string) => {
|
|
26
|
-
[arg: string]: string;
|
|
27
|
-
};
|
|
28
|
-
export declare const objectToNameValueArray: <T>(obj: IKeyValue<T>) => Array<{
|
|
29
|
-
name: string;
|
|
30
|
-
value: T;
|
|
31
|
-
}>;
|
|
32
|
-
export declare const nameValArrayToObj: (arr?: Array<{}>, keyFieldName?: string, valueFieldName?: string) => {
|
|
33
|
-
[key: string]: any;
|
|
34
|
-
};
|
|
35
|
-
export declare const getFileType: (fileName: string) => FileType;
|
|
36
|
-
/**
|
|
37
|
-
* Return a simplified call stack (for the function who called this function, not this one, obviously)
|
|
38
|
-
*
|
|
39
|
-
* @param depth Number of calls to return
|
|
40
|
-
*/
|
|
41
|
-
export declare const getCallStack: (depth?: number) => string[];
|
|
42
|
-
export declare const getInitials: (label: string, length?: number) => string;
|
|
43
|
-
export declare const _getInitialEngine: (words: string[], length: number) => string;
|
|
44
|
-
/**
|
|
45
|
-
* Format an ID: remove accents, any special characters, replace spaces by underscore and make sure there is no double underscore
|
|
46
|
-
*
|
|
47
|
-
* @param id
|
|
48
|
-
* @returns formatted ID
|
|
49
|
-
*/
|
|
50
|
-
export declare const slugifyString: (id: string, separator?: "-" | "_") => string;
|
|
51
|
-
/**
|
|
52
|
-
* Returns a hash code from a string
|
|
53
|
-
* @param {String} str The string to hash.
|
|
54
|
-
* @return {Number} A 32bit integer
|
|
55
|
-
*/
|
|
56
|
-
export declare const simpleStringHash: (str: string) => number;
|
|
57
|
-
export declare const getFlagByLang: (lang: string) => string;
|
|
58
|
-
export declare const getLogsIndexName: (instanceId: string) => string;
|
|
59
|
-
export declare const waitFor: (predicate: () => Promise<boolean> | boolean, options?: {
|
|
60
|
-
timeout?: number;
|
|
61
|
-
interval?: number;
|
|
62
|
-
}) => Promise<boolean>;
|
|
63
|
-
export declare const isTypeLink: (type: AttributeType) => type is AttributeType.advanced_link | AttributeType.simple_link;
|
|
64
|
-
export declare const isTypeStandard: (type: AttributeType) => type is AttributeType.advanced | AttributeType.simple;
|
|
65
|
-
/**
|
|
66
|
-
* Return a new object without the keys passed in parameter
|
|
67
|
-
*/
|
|
68
|
-
export declare const omit: <T extends object, K extends keyof T>(obj: T, ...keys: K[]) => Omit<T, K>;
|