@intlayer/chokidar 7.0.9-canary.0 → 7.0.9-canary.2
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/README.md +2 -1
- package/dist/cjs/api/dist/esm/_virtual/rolldown_runtime.cjs +10 -0
- package/dist/cjs/api/dist/esm/_virtual/rolldown_runtime.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/_virtual/rolldown_runtime.cjs +11 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/_virtual/rolldown_runtime.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/built.cjs +8 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/built.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/configFile/buildConfigurationFields.cjs +119 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/configFile/buildConfigurationFields.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/configFile/getConfiguration.cjs +69 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/configFile/getConfiguration.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/configFile/loadConfigurationFile.cjs +26 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/configFile/loadConfigurationFile.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/configFile/searchConfigurationFile.cjs +51 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/configFile/searchConfigurationFile.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/defaultValues/build.cjs +15 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/defaultValues/build.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/defaultValues/content.cjs +54 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/defaultValues/content.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/defaultValues/dictionary.cjs +7 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/defaultValues/dictionary.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/defaultValues/editor.cjs +23 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/defaultValues/editor.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/defaultValues/internationalization.cjs +14 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/defaultValues/internationalization.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/defaultValues/log.cjs +10 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/defaultValues/log.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/defaultValues/routing.cjs +11 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/defaultValues/routing.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/loadEnvFile.cjs +26 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/loadEnvFile.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/loadExternalFile/bundleFile.cjs +23 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/loadExternalFile/bundleFile.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/loadExternalFile/loadExternalFile.cjs +48 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/loadExternalFile/loadExternalFile.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/loadExternalFile/parseFileContent.cjs +65 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/loadExternalFile/parseFileContent.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/loadExternalFile/transpileTSToMJS.cjs +45 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/loadExternalFile/transpileTSToMJS.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/logger.cjs +47 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/logger.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.cjs +15 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/types/dist/esm/locales.cjs +1128 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/types/dist/esm/locales.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/utils/ESMxCJSHelpers.cjs +27 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/utils/ESMxCJSHelpers.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/utils/cache.cjs +264 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/utils/cache.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/utils/getPackageJsonPath.cjs +34 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/utils/getPackageJsonPath.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/utils/normalizePath.cjs +17 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/utils/normalizePath.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/fetcher.cjs +121 -0
- package/dist/cjs/api/dist/esm/fetcher.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/getIntlayerAPI/ai.cjs +164 -0
- package/dist/cjs/api/dist/esm/getIntlayerAPI/ai.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/getIntlayerAPI/audit.cjs +39 -0
- package/dist/cjs/api/dist/esm/getIntlayerAPI/audit.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/getIntlayerAPI/dictionary.cjs +70 -0
- package/dist/cjs/api/dist/esm/getIntlayerAPI/dictionary.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/getIntlayerAPI/editor.cjs +38 -0
- package/dist/cjs/api/dist/esm/getIntlayerAPI/editor.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/getIntlayerAPI/index.cjs +32 -0
- package/dist/cjs/api/dist/esm/getIntlayerAPI/index.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/getIntlayerAPI/newsletter.cjs +41 -0
- package/dist/cjs/api/dist/esm/getIntlayerAPI/newsletter.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/getIntlayerAPI/oAuth.cjs +27 -0
- package/dist/cjs/api/dist/esm/getIntlayerAPI/oAuth.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/getIntlayerAPI/organization.cjs +94 -0
- package/dist/cjs/api/dist/esm/getIntlayerAPI/organization.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/getIntlayerAPI/project.cjs +110 -0
- package/dist/cjs/api/dist/esm/getIntlayerAPI/project.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/getIntlayerAPI/search.cjs +23 -0
- package/dist/cjs/api/dist/esm/getIntlayerAPI/search.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/getIntlayerAPI/stripe.cjs +39 -0
- package/dist/cjs/api/dist/esm/getIntlayerAPI/stripe.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/getIntlayerAPI/tag.cjs +48 -0
- package/dist/cjs/api/dist/esm/getIntlayerAPI/tag.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/getIntlayerAPI/user.cjs +80 -0
- package/dist/cjs/api/dist/esm/getIntlayerAPI/user.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/proxy.cjs +100 -0
- package/dist/cjs/api/dist/esm/proxy.cjs.map +1 -0
- package/dist/cjs/buildIntlayerDictionary/writeRemoteDictionary.cjs +14 -5
- package/dist/cjs/buildIntlayerDictionary/writeRemoteDictionary.cjs.map +1 -1
- package/dist/cjs/buildIntlayerDictionary/writeUnmergedDictionary.cjs +1 -0
- package/dist/cjs/buildIntlayerDictionary/writeUnmergedDictionary.cjs.map +1 -1
- package/dist/cjs/config/dist/esm/_virtual/rolldown_runtime.cjs +10 -0
- package/dist/cjs/config/dist/esm/_virtual/rolldown_runtime.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/built.cjs +8 -0
- package/dist/cjs/config/dist/esm/built.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/config/package.cjs +7 -0
- package/dist/cjs/config/dist/esm/config/package.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/configFile/buildConfigurationFields.cjs +119 -0
- package/dist/cjs/config/dist/esm/configFile/buildConfigurationFields.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/configFile/getConfiguration.cjs +69 -0
- package/dist/cjs/config/dist/esm/configFile/getConfiguration.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/configFile/loadConfigurationFile.cjs +26 -0
- package/dist/cjs/config/dist/esm/configFile/loadConfigurationFile.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/configFile/searchConfigurationFile.cjs +51 -0
- package/dist/cjs/config/dist/esm/configFile/searchConfigurationFile.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/defaultValues/build.cjs +15 -0
- package/dist/cjs/config/dist/esm/defaultValues/build.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/defaultValues/content.cjs +54 -0
- package/dist/cjs/config/dist/esm/defaultValues/content.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/defaultValues/dictionary.cjs +7 -0
- package/dist/cjs/config/dist/esm/defaultValues/dictionary.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/defaultValues/editor.cjs +23 -0
- package/dist/cjs/config/dist/esm/defaultValues/editor.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/defaultValues/internationalization.cjs +14 -0
- package/dist/cjs/config/dist/esm/defaultValues/internationalization.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/defaultValues/log.cjs +10 -0
- package/dist/cjs/config/dist/esm/defaultValues/log.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/defaultValues/routing.cjs +11 -0
- package/dist/cjs/config/dist/esm/defaultValues/routing.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/loadEnvFile.cjs +26 -0
- package/dist/cjs/config/dist/esm/loadEnvFile.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/loadExternalFile/bundleFile.cjs +58 -0
- package/dist/cjs/config/dist/esm/loadExternalFile/bundleFile.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/loadExternalFile/loadExternalFile.cjs +83 -0
- package/dist/cjs/config/dist/esm/loadExternalFile/loadExternalFile.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/loadExternalFile/parseFileContent.cjs +65 -0
- package/dist/cjs/config/dist/esm/loadExternalFile/parseFileContent.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/loadExternalFile/transpileTSToMJS.cjs +58 -0
- package/dist/cjs/config/dist/esm/loadExternalFile/transpileTSToMJS.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/logger.cjs +114 -0
- package/dist/cjs/config/dist/esm/logger.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.cjs +15 -0
- package/dist/cjs/config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/types/dist/esm/locales.cjs +1128 -0
- package/dist/cjs/config/dist/esm/types/dist/esm/locales.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/utils/ESMxCJSHelpers.cjs +28 -0
- package/dist/cjs/config/dist/esm/utils/ESMxCJSHelpers.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/utils/cache.cjs +416 -0
- package/dist/cjs/config/dist/esm/utils/cache.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/utils/clearModuleCache.cjs +26 -0
- package/dist/cjs/config/dist/esm/utils/clearModuleCache.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/utils/extractErrorMessage.cjs +95 -0
- package/dist/cjs/config/dist/esm/utils/extractErrorMessage.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/utils/getPackageJsonPath.cjs +34 -0
- package/dist/cjs/config/dist/esm/utils/getPackageJsonPath.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/utils/normalizePath.cjs +17 -0
- package/dist/cjs/config/dist/esm/utils/normalizePath.cjs.map +1 -0
- package/dist/cjs/config/package.cjs +12 -0
- package/dist/cjs/config/package.cjs.map +1 -0
- package/dist/cjs/config/src/utils/kebabCaseToCamelCase.cjs +14 -0
- package/dist/cjs/config/src/utils/kebabCaseToCamelCase.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/_virtual/rolldown_runtime.cjs +10 -0
- package/dist/cjs/core/dist/esm/_virtual/rolldown_runtime.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/_virtual/rolldown_runtime.cjs +11 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/_virtual/rolldown_runtime.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/built.cjs +8 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/built.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/configFile/buildConfigurationFields.cjs +119 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/configFile/buildConfigurationFields.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/configFile/getConfiguration.cjs +69 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/configFile/getConfiguration.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/configFile/loadConfigurationFile.cjs +26 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/configFile/loadConfigurationFile.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/configFile/searchConfigurationFile.cjs +51 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/configFile/searchConfigurationFile.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/defaultValues/build.cjs +15 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/defaultValues/build.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/defaultValues/content.cjs +54 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/defaultValues/content.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/defaultValues/dictionary.cjs +7 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/defaultValues/dictionary.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/defaultValues/editor.cjs +23 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/defaultValues/editor.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/defaultValues/internationalization.cjs +14 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/defaultValues/internationalization.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/defaultValues/log.cjs +10 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/defaultValues/log.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/defaultValues/routing.cjs +11 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/defaultValues/routing.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/loadEnvFile.cjs +26 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/loadEnvFile.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/loadExternalFile/bundleFile.cjs +23 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/loadExternalFile/bundleFile.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/loadExternalFile/loadExternalFile.cjs +48 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/loadExternalFile/loadExternalFile.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/loadExternalFile/parseFileContent.cjs +65 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/loadExternalFile/parseFileContent.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/loadExternalFile/transpileTSToMJS.cjs +45 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/loadExternalFile/transpileTSToMJS.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/logger.cjs +63 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/logger.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.cjs +15 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/types/dist/esm/locales.cjs +1128 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/types/dist/esm/locales.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/utils/ESMxCJSHelpers.cjs +27 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/utils/ESMxCJSHelpers.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/utils/cache.cjs +264 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/utils/cache.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/utils/getPackageJsonPath.cjs +34 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/utils/getPackageJsonPath.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/utils/normalizePath.cjs +17 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/utils/normalizePath.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/deepTransformPlugins/getFilteredLocalesContent.cjs +43 -0
- package/dist/cjs/core/dist/esm/deepTransformPlugins/getFilteredLocalesContent.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/deepTransformPlugins/getLocalizedContent.cjs +32 -0
- package/dist/cjs/core/dist/esm/deepTransformPlugins/getLocalizedContent.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/deepTransformPlugins/getMaskContent.cjs +26 -0
- package/dist/cjs/core/dist/esm/deepTransformPlugins/getMaskContent.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/deepTransformPlugins/getMultilingualDictionary.cjs +87 -0
- package/dist/cjs/core/dist/esm/deepTransformPlugins/getMultilingualDictionary.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/dictionaryManipulator/getNodeType.cjs +35 -0
- package/dist/cjs/core/dist/esm/dictionaryManipulator/getNodeType.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/dictionaryManipulator/mergeDictionaries.cjs +67 -0
- package/dist/cjs/core/dist/esm/dictionaryManipulator/mergeDictionaries.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/dictionaryManipulator/normalizeDictionary.cjs +29 -0
- package/dist/cjs/core/dist/esm/dictionaryManipulator/normalizeDictionary.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/dictionaryManipulator/orderDictionaries.cjs +46 -0
- package/dist/cjs/core/dist/esm/dictionaryManipulator/orderDictionaries.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/interpreter/getContent/deepTransform.cjs +39 -0
- package/dist/cjs/core/dist/esm/interpreter/getContent/deepTransform.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/interpreter/getContent/plugins.cjs +28 -0
- package/dist/cjs/core/dist/esm/interpreter/getContent/plugins.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/interpreter/getTranslation.cjs +32 -0
- package/dist/cjs/core/dist/esm/interpreter/getTranslation.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/localization/getLocaleName.cjs +10 -0
- package/dist/cjs/core/dist/esm/localization/getLocaleName.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/transpiler/translation/translation.cjs +28 -0
- package/dist/cjs/core/dist/esm/transpiler/translation/translation.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/types/dist/esm/_virtual/rolldown_runtime.cjs +15 -0
- package/dist/cjs/core/dist/esm/types/dist/esm/_virtual/rolldown_runtime.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/types/dist/esm/locales.cjs +1128 -0
- package/dist/cjs/core/dist/esm/types/dist/esm/locales.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/types/dist/esm/nodeType.cjs +31 -0
- package/dist/cjs/core/dist/esm/types/dist/esm/nodeType.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/utils/intl.cjs +49 -0
- package/dist/cjs/core/dist/esm/utils/intl.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/utils/isValidReactElement.cjs +14 -0
- package/dist/cjs/core/dist/esm/utils/isValidReactElement.cjs.map +1 -0
- package/dist/cjs/core/package.cjs +12 -0
- package/dist/cjs/core/package.cjs.map +1 -0
- package/dist/cjs/core/src/deepTransformPlugins/processContentDeclarationContent.cjs +77 -0
- package/dist/cjs/core/src/deepTransformPlugins/processContentDeclarationContent.cjs.map +1 -0
- package/dist/cjs/createType/createModuleAugmentation.cjs +1 -2
- package/dist/cjs/createType/createModuleAugmentation.cjs.map +1 -1
- package/dist/cjs/getContentDeclarationFileTemplate/getContentDeclarationFileTemplate.cjs +3 -2
- package/dist/cjs/getContentDeclarationFileTemplate/getContentDeclarationFileTemplate.cjs.map +1 -1
- package/dist/cjs/index.cjs +0 -4
- package/dist/cjs/loadDictionaries/loadRemoteDictionaries.cjs +12 -12
- package/dist/cjs/loadDictionaries/loadRemoteDictionaries.cjs.map +1 -1
- package/dist/cjs/remote-dictionaries-entry/dist/esm/_virtual/rolldown_runtime.cjs +10 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/_virtual/rolldown_runtime.cjs.map +1 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/_virtual/rolldown_runtime.cjs +11 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/_virtual/rolldown_runtime.cjs.map +1 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/built.cjs +8 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/built.cjs.map +1 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/configFile/buildConfigurationFields.cjs +119 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/configFile/buildConfigurationFields.cjs.map +1 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/configFile/getConfiguration.cjs +69 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/configFile/getConfiguration.cjs.map +1 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/configFile/loadConfigurationFile.cjs +26 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/configFile/loadConfigurationFile.cjs.map +1 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/configFile/searchConfigurationFile.cjs +51 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/configFile/searchConfigurationFile.cjs.map +1 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/build.cjs +15 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/build.cjs.map +1 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/content.cjs +54 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/content.cjs.map +1 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/dictionary.cjs +7 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/dictionary.cjs.map +1 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/editor.cjs +23 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/editor.cjs.map +1 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/internationalization.cjs +14 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/internationalization.cjs.map +1 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/log.cjs +10 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/log.cjs.map +1 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/routing.cjs +11 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/routing.cjs.map +1 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/loadEnvFile.cjs +26 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/loadEnvFile.cjs.map +1 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/bundleFile.cjs +23 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/bundleFile.cjs.map +1 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/loadExternalFile.cjs +48 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/loadExternalFile.cjs.map +1 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/parseFileContent.cjs +65 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/parseFileContent.cjs.map +1 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/transpileTSToMJS.cjs +45 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/transpileTSToMJS.cjs.map +1 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/logger.cjs +47 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/logger.cjs.map +1 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.cjs +15 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.cjs.map +1 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/types/dist/esm/locales.cjs +1128 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/types/dist/esm/locales.cjs.map +1 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/utils/ESMxCJSHelpers.cjs +27 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/utils/ESMxCJSHelpers.cjs.map +1 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/utils/cache.cjs +264 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/utils/cache.cjs.map +1 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/utils/getPackageJsonPath.cjs +34 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/utils/getPackageJsonPath.cjs.map +1 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/utils/normalizePath.cjs +17 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/utils/normalizePath.cjs.map +1 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/index.cjs +27 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/index.cjs.map +1 -0
- package/dist/cjs/types/dist/esm/_virtual/rolldown_runtime.cjs +15 -0
- package/dist/cjs/types/dist/esm/_virtual/rolldown_runtime.cjs.map +1 -0
- package/dist/cjs/types/dist/esm/locales.cjs +1128 -0
- package/dist/cjs/types/dist/esm/locales.cjs.map +1 -0
- package/dist/cjs/types/dist/esm/nodeType.cjs +25 -0
- package/dist/cjs/types/dist/esm/nodeType.cjs.map +1 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/_virtual/rolldown_runtime.cjs +10 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/_virtual/rolldown_runtime.cjs.map +1 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/_virtual/rolldown_runtime.cjs +11 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/_virtual/rolldown_runtime.cjs.map +1 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/built.cjs +8 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/built.cjs.map +1 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/configFile/buildConfigurationFields.cjs +119 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/configFile/buildConfigurationFields.cjs.map +1 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/configFile/getConfiguration.cjs +69 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/configFile/getConfiguration.cjs.map +1 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/configFile/loadConfigurationFile.cjs +26 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/configFile/loadConfigurationFile.cjs.map +1 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/configFile/searchConfigurationFile.cjs +51 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/configFile/searchConfigurationFile.cjs.map +1 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/build.cjs +15 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/build.cjs.map +1 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/content.cjs +54 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/content.cjs.map +1 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/dictionary.cjs +7 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/dictionary.cjs.map +1 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/editor.cjs +23 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/editor.cjs.map +1 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/internationalization.cjs +14 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/internationalization.cjs.map +1 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/log.cjs +10 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/log.cjs.map +1 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/routing.cjs +11 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/routing.cjs.map +1 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/loadEnvFile.cjs +26 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/loadEnvFile.cjs.map +1 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/bundleFile.cjs +23 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/bundleFile.cjs.map +1 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/loadExternalFile.cjs +48 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/loadExternalFile.cjs.map +1 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/parseFileContent.cjs +65 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/parseFileContent.cjs.map +1 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/transpileTSToMJS.cjs +45 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/transpileTSToMJS.cjs.map +1 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/logger.cjs +47 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/logger.cjs.map +1 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.cjs +15 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.cjs.map +1 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/types/dist/esm/locales.cjs +1128 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/types/dist/esm/locales.cjs.map +1 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/utils/ESMxCJSHelpers.cjs +27 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/utils/ESMxCJSHelpers.cjs.map +1 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/utils/cache.cjs +264 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/utils/cache.cjs.map +1 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/utils/getPackageJsonPath.cjs +34 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/utils/getPackageJsonPath.cjs.map +1 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/utils/normalizePath.cjs +17 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/utils/normalizePath.cjs.map +1 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/index.cjs +27 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/index.cjs.map +1 -0
- package/dist/cjs/utils/camelCaseToSentence.cjs +11 -0
- package/dist/cjs/utils/camelCaseToSentence.cjs.map +1 -0
- package/dist/cjs/utils/cammelCaseToSentense.cjs +11 -0
- package/dist/cjs/utils/cammelCaseToSentense.cjs.map +1 -0
- package/dist/cjs/writeContentDeclaration/transformJSFile.cjs +47 -47
- package/dist/cjs/writeContentDeclaration/transformJSFile.cjs.map +1 -1
- package/dist/cjs/writeContentDeclaration/writeContentDeclaration.cjs +9 -6
- package/dist/cjs/writeContentDeclaration/writeContentDeclaration.cjs.map +1 -1
- package/dist/cjs/writeContentDeclaration/writeJSFile.cjs +1 -0
- package/dist/cjs/writeContentDeclaration/writeJSFile.cjs.map +1 -1
- package/dist/esm/api/dist/esm/_virtual/rolldown_runtime.mjs +11 -0
- package/dist/esm/api/dist/esm/_virtual/rolldown_runtime.mjs.map +1 -0
- package/dist/esm/api/dist/esm/config/dist/esm/_virtual/rolldown_runtime.mjs +11 -0
- package/dist/esm/api/dist/esm/config/dist/esm/_virtual/rolldown_runtime.mjs.map +1 -0
- package/dist/esm/api/dist/esm/config/dist/esm/built.mjs +8 -0
- package/dist/esm/api/dist/esm/config/dist/esm/built.mjs.map +1 -0
- package/dist/esm/api/dist/esm/config/dist/esm/configFile/buildConfigurationFields.mjs +118 -0
- package/dist/esm/api/dist/esm/config/dist/esm/configFile/buildConfigurationFields.mjs.map +1 -0
- package/dist/esm/api/dist/esm/config/dist/esm/configFile/getConfiguration.mjs +67 -0
- package/dist/esm/api/dist/esm/config/dist/esm/configFile/getConfiguration.mjs.map +1 -0
- package/dist/esm/api/dist/esm/config/dist/esm/configFile/loadConfigurationFile.mjs +26 -0
- package/dist/esm/api/dist/esm/config/dist/esm/configFile/loadConfigurationFile.mjs.map +1 -0
- package/dist/esm/api/dist/esm/config/dist/esm/configFile/searchConfigurationFile.mjs +50 -0
- package/dist/esm/api/dist/esm/config/dist/esm/configFile/searchConfigurationFile.mjs.map +1 -0
- package/dist/esm/api/dist/esm/config/dist/esm/defaultValues/build.mjs +10 -0
- package/dist/esm/api/dist/esm/config/dist/esm/defaultValues/build.mjs.map +1 -0
- package/dist/esm/api/dist/esm/config/dist/esm/defaultValues/content.mjs +40 -0
- package/dist/esm/api/dist/esm/config/dist/esm/defaultValues/content.mjs.map +1 -0
- package/dist/esm/api/dist/esm/config/dist/esm/defaultValues/dictionary.mjs +6 -0
- package/dist/esm/api/dist/esm/config/dist/esm/defaultValues/dictionary.mjs.map +1 -0
- package/dist/esm/api/dist/esm/config/dist/esm/defaultValues/editor.mjs +14 -0
- package/dist/esm/api/dist/esm/config/dist/esm/defaultValues/editor.mjs.map +1 -0
- package/dist/esm/api/dist/esm/config/dist/esm/defaultValues/internationalization.mjs +11 -0
- package/dist/esm/api/dist/esm/config/dist/esm/defaultValues/internationalization.mjs.map +1 -0
- package/dist/esm/api/dist/esm/config/dist/esm/defaultValues/log.mjs +9 -0
- package/dist/esm/api/dist/esm/config/dist/esm/defaultValues/log.mjs.map +1 -0
- package/dist/esm/api/dist/esm/config/dist/esm/defaultValues/routing.mjs +8 -0
- package/dist/esm/api/dist/esm/config/dist/esm/defaultValues/routing.mjs.map +1 -0
- package/dist/esm/api/dist/esm/config/dist/esm/loadEnvFile.mjs +24 -0
- package/dist/esm/api/dist/esm/config/dist/esm/loadEnvFile.mjs.map +1 -0
- package/dist/esm/api/dist/esm/config/dist/esm/loadExternalFile/bundleFile.mjs +23 -0
- package/dist/esm/api/dist/esm/config/dist/esm/loadExternalFile/bundleFile.mjs.map +1 -0
- package/dist/esm/api/dist/esm/config/dist/esm/loadExternalFile/loadExternalFile.mjs +47 -0
- package/dist/esm/api/dist/esm/config/dist/esm/loadExternalFile/loadExternalFile.mjs.map +1 -0
- package/dist/esm/api/dist/esm/config/dist/esm/loadExternalFile/parseFileContent.mjs +63 -0
- package/dist/esm/api/dist/esm/config/dist/esm/loadExternalFile/parseFileContent.mjs.map +1 -0
- package/dist/esm/api/dist/esm/config/dist/esm/loadExternalFile/transpileTSToMJS.mjs +44 -0
- package/dist/esm/api/dist/esm/config/dist/esm/loadExternalFile/transpileTSToMJS.mjs.map +1 -0
- package/dist/esm/api/dist/esm/config/dist/esm/logger.mjs +45 -0
- package/dist/esm/api/dist/esm/config/dist/esm/logger.mjs.map +1 -0
- package/dist/esm/api/dist/esm/config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.mjs +14 -0
- package/dist/esm/api/dist/esm/config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.mjs.map +1 -0
- package/dist/esm/api/dist/esm/config/dist/esm/types/dist/esm/locales.mjs +1128 -0
- package/dist/esm/api/dist/esm/config/dist/esm/types/dist/esm/locales.mjs.map +1 -0
- package/dist/esm/api/dist/esm/config/dist/esm/utils/ESMxCJSHelpers.mjs +25 -0
- package/dist/esm/api/dist/esm/config/dist/esm/utils/ESMxCJSHelpers.mjs.map +1 -0
- package/dist/esm/api/dist/esm/config/dist/esm/utils/cache.mjs +263 -0
- package/dist/esm/api/dist/esm/config/dist/esm/utils/cache.mjs.map +1 -0
- package/dist/esm/api/dist/esm/config/dist/esm/utils/getPackageJsonPath.mjs +33 -0
- package/dist/esm/api/dist/esm/config/dist/esm/utils/getPackageJsonPath.mjs.map +1 -0
- package/dist/esm/api/dist/esm/config/dist/esm/utils/normalizePath.mjs +16 -0
- package/dist/esm/api/dist/esm/config/dist/esm/utils/normalizePath.mjs.map +1 -0
- package/dist/esm/api/dist/esm/fetcher.mjs +120 -0
- package/dist/esm/api/dist/esm/fetcher.mjs.map +1 -0
- package/dist/esm/api/dist/esm/getIntlayerAPI/ai.mjs +164 -0
- package/dist/esm/api/dist/esm/getIntlayerAPI/ai.mjs.map +1 -0
- package/dist/esm/api/dist/esm/getIntlayerAPI/audit.mjs +39 -0
- package/dist/esm/api/dist/esm/getIntlayerAPI/audit.mjs.map +1 -0
- package/dist/esm/api/dist/esm/getIntlayerAPI/dictionary.mjs +70 -0
- package/dist/esm/api/dist/esm/getIntlayerAPI/dictionary.mjs.map +1 -0
- package/dist/esm/api/dist/esm/getIntlayerAPI/editor.mjs +38 -0
- package/dist/esm/api/dist/esm/getIntlayerAPI/editor.mjs.map +1 -0
- package/dist/esm/api/dist/esm/getIntlayerAPI/index.mjs +32 -0
- package/dist/esm/api/dist/esm/getIntlayerAPI/index.mjs.map +1 -0
- package/dist/esm/api/dist/esm/getIntlayerAPI/newsletter.mjs +41 -0
- package/dist/esm/api/dist/esm/getIntlayerAPI/newsletter.mjs.map +1 -0
- package/dist/esm/api/dist/esm/getIntlayerAPI/oAuth.mjs +27 -0
- package/dist/esm/api/dist/esm/getIntlayerAPI/oAuth.mjs.map +1 -0
- package/dist/esm/api/dist/esm/getIntlayerAPI/organization.mjs +94 -0
- package/dist/esm/api/dist/esm/getIntlayerAPI/organization.mjs.map +1 -0
- package/dist/esm/api/dist/esm/getIntlayerAPI/project.mjs +110 -0
- package/dist/esm/api/dist/esm/getIntlayerAPI/project.mjs.map +1 -0
- package/dist/esm/api/dist/esm/getIntlayerAPI/search.mjs +23 -0
- package/dist/esm/api/dist/esm/getIntlayerAPI/search.mjs.map +1 -0
- package/dist/esm/api/dist/esm/getIntlayerAPI/stripe.mjs +39 -0
- package/dist/esm/api/dist/esm/getIntlayerAPI/stripe.mjs.map +1 -0
- package/dist/esm/api/dist/esm/getIntlayerAPI/tag.mjs +48 -0
- package/dist/esm/api/dist/esm/getIntlayerAPI/tag.mjs.map +1 -0
- package/dist/esm/api/dist/esm/getIntlayerAPI/user.mjs +80 -0
- package/dist/esm/api/dist/esm/getIntlayerAPI/user.mjs.map +1 -0
- package/dist/esm/api/dist/esm/proxy.mjs +100 -0
- package/dist/esm/api/dist/esm/proxy.mjs.map +1 -0
- package/dist/esm/buildIntlayerDictionary/writeRemoteDictionary.mjs +15 -6
- package/dist/esm/buildIntlayerDictionary/writeRemoteDictionary.mjs.map +1 -1
- package/dist/esm/buildIntlayerDictionary/writeUnmergedDictionary.mjs +1 -1
- package/dist/esm/buildIntlayerDictionary/writeUnmergedDictionary.mjs.map +1 -1
- package/dist/esm/config/dist/esm/_virtual/rolldown_runtime.mjs +11 -0
- package/dist/esm/config/dist/esm/_virtual/rolldown_runtime.mjs.map +1 -0
- package/dist/esm/config/dist/esm/built.mjs +8 -0
- package/dist/esm/config/dist/esm/built.mjs.map +1 -0
- package/dist/esm/config/dist/esm/configFile/buildConfigurationFields.mjs +118 -0
- package/dist/esm/config/dist/esm/configFile/buildConfigurationFields.mjs.map +1 -0
- package/dist/esm/config/dist/esm/configFile/getConfiguration.mjs +67 -0
- package/dist/esm/config/dist/esm/configFile/getConfiguration.mjs.map +1 -0
- package/dist/esm/config/dist/esm/configFile/loadConfigurationFile.mjs +26 -0
- package/dist/esm/config/dist/esm/configFile/loadConfigurationFile.mjs.map +1 -0
- package/dist/esm/config/dist/esm/configFile/searchConfigurationFile.mjs +50 -0
- package/dist/esm/config/dist/esm/configFile/searchConfigurationFile.mjs.map +1 -0
- package/dist/esm/config/dist/esm/defaultValues/build.mjs +10 -0
- package/dist/esm/config/dist/esm/defaultValues/build.mjs.map +1 -0
- package/dist/esm/config/dist/esm/defaultValues/content.mjs +40 -0
- package/dist/esm/config/dist/esm/defaultValues/content.mjs.map +1 -0
- package/dist/esm/config/dist/esm/defaultValues/dictionary.mjs +6 -0
- package/dist/esm/config/dist/esm/defaultValues/dictionary.mjs.map +1 -0
- package/dist/esm/config/dist/esm/defaultValues/editor.mjs +14 -0
- package/dist/esm/config/dist/esm/defaultValues/editor.mjs.map +1 -0
- package/dist/esm/config/dist/esm/defaultValues/internationalization.mjs +11 -0
- package/dist/esm/config/dist/esm/defaultValues/internationalization.mjs.map +1 -0
- package/dist/esm/config/dist/esm/defaultValues/log.mjs +9 -0
- package/dist/esm/config/dist/esm/defaultValues/log.mjs.map +1 -0
- package/dist/esm/config/dist/esm/defaultValues/routing.mjs +8 -0
- package/dist/esm/config/dist/esm/defaultValues/routing.mjs.map +1 -0
- package/dist/esm/config/dist/esm/loadEnvFile.mjs +24 -0
- package/dist/esm/config/dist/esm/loadEnvFile.mjs.map +1 -0
- package/dist/esm/config/dist/esm/loadExternalFile/bundleFile.mjs +23 -0
- package/dist/esm/config/dist/esm/loadExternalFile/bundleFile.mjs.map +1 -0
- package/dist/esm/config/dist/esm/loadExternalFile/loadExternalFile.mjs +47 -0
- package/dist/esm/config/dist/esm/loadExternalFile/loadExternalFile.mjs.map +1 -0
- package/dist/esm/config/dist/esm/loadExternalFile/parseFileContent.mjs +63 -0
- package/dist/esm/config/dist/esm/loadExternalFile/parseFileContent.mjs.map +1 -0
- package/dist/esm/config/dist/esm/loadExternalFile/transpileTSToMJS.mjs +44 -0
- package/dist/esm/config/dist/esm/loadExternalFile/transpileTSToMJS.mjs.map +1 -0
- package/dist/esm/config/dist/esm/logger.mjs +104 -0
- package/dist/esm/config/dist/esm/logger.mjs.map +1 -0
- package/dist/esm/config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.mjs +14 -0
- package/dist/esm/config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.mjs.map +1 -0
- package/dist/esm/config/dist/esm/types/dist/esm/locales.mjs +1128 -0
- package/dist/esm/config/dist/esm/types/dist/esm/locales.mjs.map +1 -0
- package/dist/esm/config/dist/esm/utils/ESMxCJSHelpers.mjs +25 -0
- package/dist/esm/config/dist/esm/utils/ESMxCJSHelpers.mjs.map +1 -0
- package/dist/esm/config/dist/esm/utils/cache.mjs +263 -0
- package/dist/esm/config/dist/esm/utils/cache.mjs.map +1 -0
- package/dist/esm/config/dist/esm/utils/extractErrorMessage.mjs +94 -0
- package/dist/esm/config/dist/esm/utils/extractErrorMessage.mjs.map +1 -0
- package/dist/esm/config/dist/esm/utils/getPackageJsonPath.mjs +33 -0
- package/dist/esm/config/dist/esm/utils/getPackageJsonPath.mjs.map +1 -0
- package/dist/esm/config/dist/esm/utils/normalizePath.mjs +16 -0
- package/dist/esm/config/dist/esm/utils/normalizePath.mjs.map +1 -0
- package/dist/esm/config/package.mjs +6 -0
- package/dist/esm/config/package.mjs.map +1 -0
- package/dist/esm/config/src/utils/kebabCaseToCamelCase.mjs +13 -0
- package/dist/esm/config/src/utils/kebabCaseToCamelCase.mjs.map +1 -0
- package/dist/esm/core/dist/esm/_virtual/rolldown_runtime.mjs +11 -0
- package/dist/esm/core/dist/esm/_virtual/rolldown_runtime.mjs.map +1 -0
- package/dist/esm/core/dist/esm/config/dist/esm/_virtual/rolldown_runtime.mjs +11 -0
- package/dist/esm/core/dist/esm/config/dist/esm/_virtual/rolldown_runtime.mjs.map +1 -0
- package/dist/esm/core/dist/esm/config/dist/esm/built.mjs +8 -0
- package/dist/esm/core/dist/esm/config/dist/esm/built.mjs.map +1 -0
- package/dist/esm/core/dist/esm/config/dist/esm/configFile/buildConfigurationFields.mjs +118 -0
- package/dist/esm/core/dist/esm/config/dist/esm/configFile/buildConfigurationFields.mjs.map +1 -0
- package/dist/esm/core/dist/esm/config/dist/esm/configFile/getConfiguration.mjs +67 -0
- package/dist/esm/core/dist/esm/config/dist/esm/configFile/getConfiguration.mjs.map +1 -0
- package/dist/esm/core/dist/esm/config/dist/esm/configFile/loadConfigurationFile.mjs +26 -0
- package/dist/esm/core/dist/esm/config/dist/esm/configFile/loadConfigurationFile.mjs.map +1 -0
- package/dist/esm/core/dist/esm/config/dist/esm/configFile/searchConfigurationFile.mjs +50 -0
- package/dist/esm/core/dist/esm/config/dist/esm/configFile/searchConfigurationFile.mjs.map +1 -0
- package/dist/esm/core/dist/esm/config/dist/esm/defaultValues/build.mjs +10 -0
- package/dist/esm/core/dist/esm/config/dist/esm/defaultValues/build.mjs.map +1 -0
- package/dist/esm/core/dist/esm/config/dist/esm/defaultValues/content.mjs +40 -0
- package/dist/esm/core/dist/esm/config/dist/esm/defaultValues/content.mjs.map +1 -0
- package/dist/esm/core/dist/esm/config/dist/esm/defaultValues/dictionary.mjs +6 -0
- package/dist/esm/core/dist/esm/config/dist/esm/defaultValues/dictionary.mjs.map +1 -0
- package/dist/esm/core/dist/esm/config/dist/esm/defaultValues/editor.mjs +14 -0
- package/dist/esm/core/dist/esm/config/dist/esm/defaultValues/editor.mjs.map +1 -0
- package/dist/esm/core/dist/esm/config/dist/esm/defaultValues/internationalization.mjs +11 -0
- package/dist/esm/core/dist/esm/config/dist/esm/defaultValues/internationalization.mjs.map +1 -0
- package/dist/esm/core/dist/esm/config/dist/esm/defaultValues/log.mjs +9 -0
- package/dist/esm/core/dist/esm/config/dist/esm/defaultValues/log.mjs.map +1 -0
- package/dist/esm/core/dist/esm/config/dist/esm/defaultValues/routing.mjs +8 -0
- package/dist/esm/core/dist/esm/config/dist/esm/defaultValues/routing.mjs.map +1 -0
- package/dist/esm/core/dist/esm/config/dist/esm/loadEnvFile.mjs +24 -0
- package/dist/esm/core/dist/esm/config/dist/esm/loadEnvFile.mjs.map +1 -0
- package/dist/esm/core/dist/esm/config/dist/esm/loadExternalFile/bundleFile.mjs +23 -0
- package/dist/esm/core/dist/esm/config/dist/esm/loadExternalFile/bundleFile.mjs.map +1 -0
- package/dist/esm/core/dist/esm/config/dist/esm/loadExternalFile/loadExternalFile.mjs +47 -0
- package/dist/esm/core/dist/esm/config/dist/esm/loadExternalFile/loadExternalFile.mjs.map +1 -0
- package/dist/esm/core/dist/esm/config/dist/esm/loadExternalFile/parseFileContent.mjs +63 -0
- package/dist/esm/core/dist/esm/config/dist/esm/loadExternalFile/parseFileContent.mjs.map +1 -0
- package/dist/esm/core/dist/esm/config/dist/esm/loadExternalFile/transpileTSToMJS.mjs +44 -0
- package/dist/esm/core/dist/esm/config/dist/esm/loadExternalFile/transpileTSToMJS.mjs.map +1 -0
- package/dist/esm/core/dist/esm/config/dist/esm/logger.mjs +59 -0
- package/dist/esm/core/dist/esm/config/dist/esm/logger.mjs.map +1 -0
- package/dist/esm/core/dist/esm/config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.mjs +14 -0
- package/dist/esm/core/dist/esm/config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.mjs.map +1 -0
- package/dist/esm/core/dist/esm/config/dist/esm/types/dist/esm/locales.mjs +1128 -0
- package/dist/esm/core/dist/esm/config/dist/esm/types/dist/esm/locales.mjs.map +1 -0
- package/dist/esm/core/dist/esm/config/dist/esm/utils/ESMxCJSHelpers.mjs +25 -0
- package/dist/esm/core/dist/esm/config/dist/esm/utils/ESMxCJSHelpers.mjs.map +1 -0
- package/dist/esm/core/dist/esm/config/dist/esm/utils/cache.mjs +263 -0
- package/dist/esm/core/dist/esm/config/dist/esm/utils/cache.mjs.map +1 -0
- package/dist/esm/core/dist/esm/config/dist/esm/utils/getPackageJsonPath.mjs +33 -0
- package/dist/esm/core/dist/esm/config/dist/esm/utils/getPackageJsonPath.mjs.map +1 -0
- package/dist/esm/core/dist/esm/config/dist/esm/utils/normalizePath.mjs +16 -0
- package/dist/esm/core/dist/esm/config/dist/esm/utils/normalizePath.mjs.map +1 -0
- package/dist/esm/core/dist/esm/deepTransformPlugins/getFilteredLocalesContent.mjs +43 -0
- package/dist/esm/core/dist/esm/deepTransformPlugins/getFilteredLocalesContent.mjs.map +1 -0
- package/dist/esm/core/dist/esm/deepTransformPlugins/getLocalizedContent.mjs +32 -0
- package/dist/esm/core/dist/esm/deepTransformPlugins/getLocalizedContent.mjs.map +1 -0
- package/dist/esm/core/dist/esm/deepTransformPlugins/getMaskContent.mjs +26 -0
- package/dist/esm/core/dist/esm/deepTransformPlugins/getMaskContent.mjs.map +1 -0
- package/dist/esm/core/dist/esm/deepTransformPlugins/getMultilingualDictionary.mjs +87 -0
- package/dist/esm/core/dist/esm/deepTransformPlugins/getMultilingualDictionary.mjs.map +1 -0
- package/dist/esm/core/dist/esm/dictionaryManipulator/getNodeType.mjs +35 -0
- package/dist/esm/core/dist/esm/dictionaryManipulator/getNodeType.mjs.map +1 -0
- package/dist/esm/core/dist/esm/dictionaryManipulator/mergeDictionaries.mjs +67 -0
- package/dist/esm/core/dist/esm/dictionaryManipulator/mergeDictionaries.mjs.map +1 -0
- package/dist/esm/core/dist/esm/dictionaryManipulator/normalizeDictionary.mjs +29 -0
- package/dist/esm/core/dist/esm/dictionaryManipulator/normalizeDictionary.mjs.map +1 -0
- package/dist/esm/core/dist/esm/dictionaryManipulator/orderDictionaries.mjs +46 -0
- package/dist/esm/core/dist/esm/dictionaryManipulator/orderDictionaries.mjs.map +1 -0
- package/dist/esm/core/dist/esm/interpreter/getContent/deepTransform.mjs +39 -0
- package/dist/esm/core/dist/esm/interpreter/getContent/deepTransform.mjs.map +1 -0
- package/dist/esm/core/dist/esm/interpreter/getContent/plugins.mjs +28 -0
- package/dist/esm/core/dist/esm/interpreter/getContent/plugins.mjs.map +1 -0
- package/dist/esm/core/dist/esm/interpreter/getTranslation.mjs +31 -0
- package/dist/esm/core/dist/esm/interpreter/getTranslation.mjs.map +1 -0
- package/dist/esm/core/dist/esm/localization/getLocaleName.mjs +10 -0
- package/dist/esm/core/dist/esm/localization/getLocaleName.mjs.map +1 -0
- package/dist/esm/core/dist/esm/transpiler/translation/translation.mjs +28 -0
- package/dist/esm/core/dist/esm/transpiler/translation/translation.mjs.map +1 -0
- package/dist/esm/core/dist/esm/types/dist/esm/_virtual/rolldown_runtime.mjs +14 -0
- package/dist/esm/core/dist/esm/types/dist/esm/_virtual/rolldown_runtime.mjs.map +1 -0
- package/dist/esm/core/dist/esm/types/dist/esm/locales.mjs +1128 -0
- package/dist/esm/core/dist/esm/types/dist/esm/locales.mjs.map +1 -0
- package/dist/esm/core/dist/esm/types/dist/esm/nodeType.mjs +29 -0
- package/dist/esm/core/dist/esm/types/dist/esm/nodeType.mjs.map +1 -0
- package/dist/esm/core/dist/esm/utils/intl.mjs +49 -0
- package/dist/esm/core/dist/esm/utils/intl.mjs.map +1 -0
- package/dist/esm/core/dist/esm/utils/isValidReactElement.mjs +13 -0
- package/dist/esm/core/dist/esm/utils/isValidReactElement.mjs.map +1 -0
- package/dist/esm/core/package.mjs +6 -0
- package/dist/esm/core/package.mjs.map +1 -0
- package/dist/esm/core/src/deepTransformPlugins/processContentDeclarationContent.mjs +76 -0
- package/dist/esm/core/src/deepTransformPlugins/processContentDeclarationContent.mjs.map +1 -0
- package/dist/esm/createType/createModuleAugmentation.mjs +1 -2
- package/dist/esm/createType/createModuleAugmentation.mjs.map +1 -1
- package/dist/esm/getContentDeclarationFileTemplate/getContentDeclarationFileTemplate.mjs +1 -1
- package/dist/esm/getContentDeclarationFileTemplate/getContentDeclarationFileTemplate.mjs.map +1 -1
- package/dist/esm/index.mjs +1 -3
- package/dist/esm/loadDictionaries/loadRemoteDictionaries.mjs +12 -12
- package/dist/esm/loadDictionaries/loadRemoteDictionaries.mjs.map +1 -1
- package/dist/esm/remote-dictionaries-entry/dist/esm/_virtual/rolldown_runtime.mjs +11 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/_virtual/rolldown_runtime.mjs.map +1 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/_virtual/rolldown_runtime.mjs +11 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/_virtual/rolldown_runtime.mjs.map +1 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/built.mjs +8 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/built.mjs.map +1 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/configFile/buildConfigurationFields.mjs +118 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/configFile/buildConfigurationFields.mjs.map +1 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/configFile/getConfiguration.mjs +67 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/configFile/getConfiguration.mjs.map +1 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/configFile/loadConfigurationFile.mjs +26 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/configFile/loadConfigurationFile.mjs.map +1 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/configFile/searchConfigurationFile.mjs +50 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/configFile/searchConfigurationFile.mjs.map +1 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/build.mjs +10 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/build.mjs.map +1 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/content.mjs +40 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/content.mjs.map +1 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/dictionary.mjs +6 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/dictionary.mjs.map +1 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/editor.mjs +14 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/editor.mjs.map +1 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/internationalization.mjs +11 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/internationalization.mjs.map +1 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/log.mjs +9 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/log.mjs.map +1 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/routing.mjs +8 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/routing.mjs.map +1 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/loadEnvFile.mjs +24 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/loadEnvFile.mjs.map +1 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/bundleFile.mjs +23 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/bundleFile.mjs.map +1 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/loadExternalFile.mjs +47 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/loadExternalFile.mjs.map +1 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/parseFileContent.mjs +63 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/parseFileContent.mjs.map +1 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/transpileTSToMJS.mjs +44 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/transpileTSToMJS.mjs.map +1 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/logger.mjs +45 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/logger.mjs.map +1 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.mjs +14 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.mjs.map +1 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/types/dist/esm/locales.mjs +1128 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/types/dist/esm/locales.mjs.map +1 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/utils/ESMxCJSHelpers.mjs +25 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/utils/ESMxCJSHelpers.mjs.map +1 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/utils/cache.mjs +263 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/utils/cache.mjs.map +1 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/utils/getPackageJsonPath.mjs +33 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/utils/getPackageJsonPath.mjs.map +1 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/utils/normalizePath.mjs +16 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/utils/normalizePath.mjs.map +1 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/index.mjs +25 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/index.mjs.map +1 -0
- package/dist/esm/types/dist/esm/_virtual/rolldown_runtime.mjs +14 -0
- package/dist/esm/types/dist/esm/_virtual/rolldown_runtime.mjs.map +1 -0
- package/dist/esm/types/dist/esm/locales.mjs +1128 -0
- package/dist/esm/types/dist/esm/locales.mjs.map +1 -0
- package/dist/esm/types/dist/esm/nodeType.mjs +24 -0
- package/dist/esm/types/dist/esm/nodeType.mjs.map +1 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/_virtual/rolldown_runtime.mjs +11 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/_virtual/rolldown_runtime.mjs.map +1 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/_virtual/rolldown_runtime.mjs +11 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/_virtual/rolldown_runtime.mjs.map +1 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/built.mjs +8 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/built.mjs.map +1 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/configFile/buildConfigurationFields.mjs +118 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/configFile/buildConfigurationFields.mjs.map +1 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/configFile/getConfiguration.mjs +67 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/configFile/getConfiguration.mjs.map +1 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/configFile/loadConfigurationFile.mjs +26 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/configFile/loadConfigurationFile.mjs.map +1 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/configFile/searchConfigurationFile.mjs +50 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/configFile/searchConfigurationFile.mjs.map +1 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/build.mjs +10 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/build.mjs.map +1 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/content.mjs +40 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/content.mjs.map +1 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/dictionary.mjs +6 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/dictionary.mjs.map +1 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/editor.mjs +14 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/editor.mjs.map +1 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/internationalization.mjs +11 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/internationalization.mjs.map +1 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/log.mjs +9 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/log.mjs.map +1 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/routing.mjs +8 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/routing.mjs.map +1 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/loadEnvFile.mjs +24 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/loadEnvFile.mjs.map +1 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/bundleFile.mjs +23 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/bundleFile.mjs.map +1 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/loadExternalFile.mjs +47 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/loadExternalFile.mjs.map +1 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/parseFileContent.mjs +63 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/parseFileContent.mjs.map +1 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/transpileTSToMJS.mjs +44 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/transpileTSToMJS.mjs.map +1 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/logger.mjs +45 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/logger.mjs.map +1 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.mjs +14 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.mjs.map +1 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/types/dist/esm/locales.mjs +1128 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/types/dist/esm/locales.mjs.map +1 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/utils/ESMxCJSHelpers.mjs +25 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/utils/ESMxCJSHelpers.mjs.map +1 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/utils/cache.mjs +263 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/utils/cache.mjs.map +1 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/utils/getPackageJsonPath.mjs +33 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/utils/getPackageJsonPath.mjs.map +1 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/utils/normalizePath.mjs +16 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/utils/normalizePath.mjs.map +1 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/index.mjs +25 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/index.mjs.map +1 -0
- package/dist/esm/utils/camelCaseToSentence.mjs +10 -0
- package/dist/esm/utils/camelCaseToSentence.mjs.map +1 -0
- package/dist/esm/utils/cammelCaseToSentense.mjs +10 -0
- package/dist/esm/utils/cammelCaseToSentense.mjs.map +1 -0
- package/dist/esm/writeContentDeclaration/transformJSFile.mjs +47 -47
- package/dist/esm/writeContentDeclaration/transformJSFile.mjs.map +1 -1
- package/dist/esm/writeContentDeclaration/writeContentDeclaration.mjs +9 -6
- package/dist/esm/writeContentDeclaration/writeContentDeclaration.mjs.map +1 -1
- package/dist/esm/writeContentDeclaration/writeJSFile.mjs +1 -0
- package/dist/esm/writeContentDeclaration/writeJSFile.mjs.map +1 -1
- package/dist/types/buildIntlayerDictionary/buildIntlayerDictionary.d.ts +2 -2
- package/dist/types/buildIntlayerDictionary/writeDynamicDictionary.d.ts +3 -3
- package/dist/types/buildIntlayerDictionary/writeFetchDictionary.d.ts +3 -3
- package/dist/types/buildIntlayerDictionary/writeMergedDictionary.d.ts +2 -2
- package/dist/types/buildIntlayerDictionary/writeRemoteDictionary.d.ts +8 -4
- package/dist/types/buildIntlayerDictionary/writeRemoteDictionary.d.ts.map +1 -1
- package/dist/types/buildIntlayerDictionary/writeUnmergedDictionary.d.ts +2 -1
- package/dist/types/buildIntlayerDictionary/writeUnmergedDictionary.d.ts.map +1 -1
- package/dist/types/createDictionaryEntryPoint/createDictionaryEntryPoint.d.ts +2 -2
- package/dist/types/createDictionaryEntryPoint/generateDictionaryListContent.d.ts +2 -2
- package/dist/types/createType/createModuleAugmentation.d.ts.map +1 -1
- package/dist/types/index.d.ts +1 -3
- package/dist/types/loadDictionaries/loadRemoteDictionaries.d.ts +1 -1
- package/dist/types/loadDictionaries/loadRemoteDictionaries.d.ts.map +1 -1
- package/dist/types/processContentDeclarationContent.d.ts +13 -0
- package/dist/types/processContentDeclarationContent.d.ts.map +1 -0
- package/dist/types/utils/camelCaseToSentence.d.ts +5 -0
- package/dist/types/utils/camelCaseToSentence.d.ts.map +1 -0
- package/dist/types/utils/cammelCaseToSentense.d.ts +5 -0
- package/dist/types/utils/cammelCaseToSentense.d.ts.map +1 -0
- package/dist/types/writeContentDeclaration/transformJSFile.d.ts.map +1 -1
- package/dist/types/writeContentDeclaration/writeContentDeclaration.d.ts.map +1 -1
- package/package.json +24 -21
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
import { fetcher } from "../fetcher.mjs";
|
|
2
|
+
import { built_default } from "../config/dist/esm/built.mjs";
|
|
3
|
+
|
|
4
|
+
//#region ../api/dist/esm/getIntlayerAPI/ai.mjs
|
|
5
|
+
const getAiAPI = (authAPIOptions = {}, intlayerConfig) => {
|
|
6
|
+
const backendURL = intlayerConfig?.editor?.backendURL ?? built_default?.editor?.backendURL;
|
|
7
|
+
if (!backendURL) throw new Error("Backend URL is not defined in the Intlayer configuration.");
|
|
8
|
+
const AI_API_ROUTE = `${backendURL}/api/ai`;
|
|
9
|
+
/**
|
|
10
|
+
* Custom query
|
|
11
|
+
* @param body - Custom query parameters.
|
|
12
|
+
* @returns Custom query result.
|
|
13
|
+
*/
|
|
14
|
+
const customQuery = async (body, otherOptions = {}) => await fetcher(AI_API_ROUTE, authAPIOptions, otherOptions, {
|
|
15
|
+
method: "POST",
|
|
16
|
+
body
|
|
17
|
+
});
|
|
18
|
+
/**
|
|
19
|
+
* Translate a JSON
|
|
20
|
+
* @param body - Audit file parameters.
|
|
21
|
+
* @returns Audited file content.
|
|
22
|
+
*/
|
|
23
|
+
const translateJSON = async (body, otherOptions = {}) => await fetcher(`${AI_API_ROUTE}/translate/json`, authAPIOptions, otherOptions, {
|
|
24
|
+
method: "POST",
|
|
25
|
+
body
|
|
26
|
+
});
|
|
27
|
+
/**
|
|
28
|
+
* Audits a content declaration file
|
|
29
|
+
* @param body - Audit file parameters.
|
|
30
|
+
* @returns Audited file content.
|
|
31
|
+
*/
|
|
32
|
+
const auditContentDeclaration = async (body, otherOptions = {}) => await fetcher(`${AI_API_ROUTE}/audit/dictionary`, authAPIOptions, otherOptions, {
|
|
33
|
+
method: "POST",
|
|
34
|
+
body
|
|
35
|
+
});
|
|
36
|
+
/**
|
|
37
|
+
* Audits a content declaration field
|
|
38
|
+
* @param body - Audit file parameters.
|
|
39
|
+
* @returns Audited file content.
|
|
40
|
+
*/
|
|
41
|
+
const auditContentDeclarationField = async (body, otherOptions = {}) => await fetcher(`${AI_API_ROUTE}/audit/dictionary/field`, authAPIOptions, otherOptions, {
|
|
42
|
+
method: "POST",
|
|
43
|
+
body
|
|
44
|
+
});
|
|
45
|
+
/**
|
|
46
|
+
* Audits a content declaration file to retrieve title, description and tags
|
|
47
|
+
* @param body - Audit file parameters.
|
|
48
|
+
* @returns Audited file content.
|
|
49
|
+
*/
|
|
50
|
+
const auditContentDeclarationMetadata = async (body, otherOptions = {}) => await fetcher(`${AI_API_ROUTE}/audit/dictionary/metadata`, authAPIOptions, otherOptions, {
|
|
51
|
+
method: "POST",
|
|
52
|
+
body
|
|
53
|
+
});
|
|
54
|
+
/**
|
|
55
|
+
* Audits a tag
|
|
56
|
+
* @param body - Audit tag parameters.
|
|
57
|
+
* @returns Audited tag content.
|
|
58
|
+
*/
|
|
59
|
+
const auditTag = async (body, otherOptions = {}) => await fetcher(`${AI_API_ROUTE}/audit/tag`, authAPIOptions, otherOptions, {
|
|
60
|
+
method: "POST",
|
|
61
|
+
body
|
|
62
|
+
});
|
|
63
|
+
/**
|
|
64
|
+
* Asks a question to the AI related to the documentation **and streams the
|
|
65
|
+
* answer as Server‑Sent Events (SSE)**.
|
|
66
|
+
*
|
|
67
|
+
* The function **returns immediately** with a handle exposing:
|
|
68
|
+
* - `promise` → resolves when the stream completes (or rejects on error)
|
|
69
|
+
* - `abort()` → allows canceling the request on demand
|
|
70
|
+
*
|
|
71
|
+
* Usage example:
|
|
72
|
+
* ```ts
|
|
73
|
+
* const { promise, abort } = ai.askDocQuestion({
|
|
74
|
+
* ...body,
|
|
75
|
+
* onMessage: console.log,
|
|
76
|
+
* onDone: (full) => console.log("✔", full),
|
|
77
|
+
* });
|
|
78
|
+
* // later → abort();
|
|
79
|
+
* await promise; // waits for completion if desired
|
|
80
|
+
* ```
|
|
81
|
+
*/
|
|
82
|
+
const askDocQuestion = async (body, otherOptions = {}) => {
|
|
83
|
+
if (!body) return;
|
|
84
|
+
const { onMessage, onDone,...rest } = body;
|
|
85
|
+
const abortController = new AbortController();
|
|
86
|
+
try {
|
|
87
|
+
const response = await fetch(`${AI_API_ROUTE}/ask`, {
|
|
88
|
+
method: "POST",
|
|
89
|
+
headers: {
|
|
90
|
+
"Content-Type": "application/json",
|
|
91
|
+
...authAPIOptions.headers,
|
|
92
|
+
...otherOptions.headers
|
|
93
|
+
},
|
|
94
|
+
body: JSON.stringify({
|
|
95
|
+
...rest,
|
|
96
|
+
...authAPIOptions.body,
|
|
97
|
+
...otherOptions.body
|
|
98
|
+
}),
|
|
99
|
+
signal: abortController.signal,
|
|
100
|
+
credentials: "include"
|
|
101
|
+
});
|
|
102
|
+
if (!response.ok) {
|
|
103
|
+
let errorMessage = "An error occurred";
|
|
104
|
+
try {
|
|
105
|
+
const errorData = await response.json();
|
|
106
|
+
errorMessage = JSON.stringify(errorData.error) ?? "An error occurred";
|
|
107
|
+
} catch {
|
|
108
|
+
try {
|
|
109
|
+
const errorText = await response.text();
|
|
110
|
+
if (errorText) errorMessage = errorText;
|
|
111
|
+
} catch {}
|
|
112
|
+
}
|
|
113
|
+
throw new Error(errorMessage);
|
|
114
|
+
}
|
|
115
|
+
const reader = response.body?.getReader();
|
|
116
|
+
if (!reader) throw new Error("No reader available");
|
|
117
|
+
const decoder = new TextDecoder();
|
|
118
|
+
let buffer = "";
|
|
119
|
+
while (true) {
|
|
120
|
+
const { done, value } = await reader.read();
|
|
121
|
+
if (done) break;
|
|
122
|
+
buffer += decoder.decode(value, { stream: true });
|
|
123
|
+
const lines = buffer.split("\n");
|
|
124
|
+
buffer = lines.pop() ?? "";
|
|
125
|
+
for (const line of lines) if (line.startsWith("data: ")) try {
|
|
126
|
+
const data = JSON.parse(line.slice(6));
|
|
127
|
+
if (data.chunk) onMessage?.(data.chunk);
|
|
128
|
+
if (data.done && data.response) onDone?.(data.response);
|
|
129
|
+
} catch (e) {
|
|
130
|
+
console.error("Failed to parse SSE data:", e);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
} catch (error) {
|
|
134
|
+
console.error("Error in askDocQuestion:", error);
|
|
135
|
+
throw error;
|
|
136
|
+
}
|
|
137
|
+
};
|
|
138
|
+
const autocomplete = async (body, otherOptions = {}) => await fetcher(`${AI_API_ROUTE}/autocomplete`, authAPIOptions, otherOptions, {
|
|
139
|
+
method: "POST",
|
|
140
|
+
body
|
|
141
|
+
});
|
|
142
|
+
/**
|
|
143
|
+
* Retrieves discussions with filters and pagination. Only user or admin can access.
|
|
144
|
+
*/
|
|
145
|
+
const getDiscussions = async (params, otherOptions = {}) => await fetcher(`${AI_API_ROUTE}/discussions`, authAPIOptions, otherOptions, {
|
|
146
|
+
method: "GET",
|
|
147
|
+
params
|
|
148
|
+
});
|
|
149
|
+
return {
|
|
150
|
+
customQuery,
|
|
151
|
+
translateJSON,
|
|
152
|
+
auditContentDeclaration,
|
|
153
|
+
auditContentDeclarationField,
|
|
154
|
+
auditContentDeclarationMetadata,
|
|
155
|
+
auditTag,
|
|
156
|
+
askDocQuestion,
|
|
157
|
+
autocomplete,
|
|
158
|
+
getDiscussions
|
|
159
|
+
};
|
|
160
|
+
};
|
|
161
|
+
|
|
162
|
+
//#endregion
|
|
163
|
+
export { getAiAPI };
|
|
164
|
+
//# sourceMappingURL=ai.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ai.mjs","names":[],"sources":["../../../../../../../api/dist/esm/getIntlayerAPI/ai.mjs"],"sourcesContent":["import { fetcher } from \"../fetcher.mjs\";\nimport { built_default } from \"../config/dist/esm/built.mjs\";\n\n//#region src/getIntlayerAPI/ai.ts\nconst getAiAPI = (authAPIOptions = {}, intlayerConfig) => {\n\tconst backendURL = intlayerConfig?.editor?.backendURL ?? built_default?.editor?.backendURL;\n\tif (!backendURL) throw new Error(\"Backend URL is not defined in the Intlayer configuration.\");\n\tconst AI_API_ROUTE = `${backendURL}/api/ai`;\n\t/**\n\t* Custom query\n\t* @param body - Custom query parameters.\n\t* @returns Custom query result.\n\t*/\n\tconst customQuery = async (body, otherOptions = {}) => await fetcher(AI_API_ROUTE, authAPIOptions, otherOptions, {\n\t\tmethod: \"POST\",\n\t\tbody\n\t});\n\t/**\n\t* Translate a JSON\n\t* @param body - Audit file parameters.\n\t* @returns Audited file content.\n\t*/\n\tconst translateJSON = async (body, otherOptions = {}) => await fetcher(`${AI_API_ROUTE}/translate/json`, authAPIOptions, otherOptions, {\n\t\tmethod: \"POST\",\n\t\tbody\n\t});\n\t/**\n\t* Audits a content declaration file\n\t* @param body - Audit file parameters.\n\t* @returns Audited file content.\n\t*/\n\tconst auditContentDeclaration = async (body, otherOptions = {}) => await fetcher(`${AI_API_ROUTE}/audit/dictionary`, authAPIOptions, otherOptions, {\n\t\tmethod: \"POST\",\n\t\tbody\n\t});\n\t/**\n\t* Audits a content declaration field\n\t* @param body - Audit file parameters.\n\t* @returns Audited file content.\n\t*/\n\tconst auditContentDeclarationField = async (body, otherOptions = {}) => await fetcher(`${AI_API_ROUTE}/audit/dictionary/field`, authAPIOptions, otherOptions, {\n\t\tmethod: \"POST\",\n\t\tbody\n\t});\n\t/**\n\t* Audits a content declaration file to retrieve title, description and tags\n\t* @param body - Audit file parameters.\n\t* @returns Audited file content.\n\t*/\n\tconst auditContentDeclarationMetadata = async (body, otherOptions = {}) => await fetcher(`${AI_API_ROUTE}/audit/dictionary/metadata`, authAPIOptions, otherOptions, {\n\t\tmethod: \"POST\",\n\t\tbody\n\t});\n\t/**\n\t* Audits a tag\n\t* @param body - Audit tag parameters.\n\t* @returns Audited tag content.\n\t*/\n\tconst auditTag = async (body, otherOptions = {}) => await fetcher(`${AI_API_ROUTE}/audit/tag`, authAPIOptions, otherOptions, {\n\t\tmethod: \"POST\",\n\t\tbody\n\t});\n\t/**\n\t* Asks a question to the AI related to the documentation **and streams the\n\t* answer as Server‑Sent Events (SSE)**.\n\t*\n\t* The function **returns immediately** with a handle exposing:\n\t* - `promise` → resolves when the stream completes (or rejects on error)\n\t* - `abort()` → allows canceling the request on demand\n\t*\n\t* Usage example:\n\t* ```ts\n\t* const { promise, abort } = ai.askDocQuestion({\n\t* ...body,\n\t* onMessage: console.log,\n\t* onDone: (full) => console.log(\"✔\", full),\n\t* });\n\t* // later → abort();\n\t* await promise; // waits for completion if desired\n\t* ```\n\t*/\n\tconst askDocQuestion = async (body, otherOptions = {}) => {\n\t\tif (!body) return;\n\t\tconst { onMessage, onDone,...rest } = body;\n\t\tconst abortController = new AbortController();\n\t\ttry {\n\t\t\tconst response = await fetch(`${AI_API_ROUTE}/ask`, {\n\t\t\t\tmethod: \"POST\",\n\t\t\t\theaders: {\n\t\t\t\t\t\"Content-Type\": \"application/json\",\n\t\t\t\t\t...authAPIOptions.headers,\n\t\t\t\t\t...otherOptions.headers\n\t\t\t\t},\n\t\t\t\tbody: JSON.stringify({\n\t\t\t\t\t...rest,\n\t\t\t\t\t...authAPIOptions.body,\n\t\t\t\t\t...otherOptions.body\n\t\t\t\t}),\n\t\t\t\tsignal: abortController.signal,\n\t\t\t\tcredentials: \"include\"\n\t\t\t});\n\t\t\tif (!response.ok) {\n\t\t\t\tlet errorMessage = \"An error occurred\";\n\t\t\t\ttry {\n\t\t\t\t\tconst errorData = await response.json();\n\t\t\t\t\terrorMessage = JSON.stringify(errorData.error) ?? \"An error occurred\";\n\t\t\t\t} catch {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tconst errorText = await response.text();\n\t\t\t\t\t\tif (errorText) errorMessage = errorText;\n\t\t\t\t\t} catch {}\n\t\t\t\t}\n\t\t\t\tthrow new Error(errorMessage);\n\t\t\t}\n\t\t\tconst reader = response.body?.getReader();\n\t\t\tif (!reader) throw new Error(\"No reader available\");\n\t\t\tconst decoder = new TextDecoder();\n\t\t\tlet buffer = \"\";\n\t\t\twhile (true) {\n\t\t\t\tconst { done, value } = await reader.read();\n\t\t\t\tif (done) break;\n\t\t\t\tbuffer += decoder.decode(value, { stream: true });\n\t\t\t\tconst lines = buffer.split(\"\\n\");\n\t\t\t\tbuffer = lines.pop() ?? \"\";\n\t\t\t\tfor (const line of lines) if (line.startsWith(\"data: \")) try {\n\t\t\t\t\tconst data = JSON.parse(line.slice(6));\n\t\t\t\t\tif (data.chunk) onMessage?.(data.chunk);\n\t\t\t\t\tif (data.done && data.response) onDone?.(data.response);\n\t\t\t\t} catch (e) {\n\t\t\t\t\tconsole.error(\"Failed to parse SSE data:\", e);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (error) {\n\t\t\tconsole.error(\"Error in askDocQuestion:\", error);\n\t\t\tthrow error;\n\t\t}\n\t};\n\tconst autocomplete = async (body, otherOptions = {}) => await fetcher(`${AI_API_ROUTE}/autocomplete`, authAPIOptions, otherOptions, {\n\t\tmethod: \"POST\",\n\t\tbody\n\t});\n\t/**\n\t* Retrieves discussions with filters and pagination. Only user or admin can access.\n\t*/\n\tconst getDiscussions = async (params, otherOptions = {}) => await fetcher(`${AI_API_ROUTE}/discussions`, authAPIOptions, otherOptions, {\n\t\tmethod: \"GET\",\n\t\tparams\n\t});\n\treturn {\n\t\tcustomQuery,\n\t\ttranslateJSON,\n\t\tauditContentDeclaration,\n\t\tauditContentDeclarationField,\n\t\tauditContentDeclarationMetadata,\n\t\tauditTag,\n\t\taskDocQuestion,\n\t\tautocomplete,\n\t\tgetDiscussions\n\t};\n};\n\n//#endregion\nexport { getAiAPI };\n//# sourceMappingURL=ai.mjs.map"],"mappings":";;;;AAIA,MAAM,YAAY,iBAAiB,EAAE,EAAE,mBAAmB;CACzD,MAAM,aAAa,gBAAgB,QAAQ,cAAc,eAAe,QAAQ;AAChF,KAAI,CAAC,WAAY,OAAM,IAAI,MAAM,4DAA4D;CAC7F,MAAM,eAAe,GAAG,WAAW;;;;;;CAMnC,MAAM,cAAc,OAAO,MAAM,eAAe,EAAE,KAAK,MAAM,QAAQ,cAAc,gBAAgB,cAAc;EAChH,QAAQ;EACR;EACA,CAAC;;;;;;CAMF,MAAM,gBAAgB,OAAO,MAAM,eAAe,EAAE,KAAK,MAAM,QAAQ,GAAG,aAAa,kBAAkB,gBAAgB,cAAc;EACtI,QAAQ;EACR;EACA,CAAC;;;;;;CAMF,MAAM,0BAA0B,OAAO,MAAM,eAAe,EAAE,KAAK,MAAM,QAAQ,GAAG,aAAa,oBAAoB,gBAAgB,cAAc;EAClJ,QAAQ;EACR;EACA,CAAC;;;;;;CAMF,MAAM,+BAA+B,OAAO,MAAM,eAAe,EAAE,KAAK,MAAM,QAAQ,GAAG,aAAa,0BAA0B,gBAAgB,cAAc;EAC7J,QAAQ;EACR;EACA,CAAC;;;;;;CAMF,MAAM,kCAAkC,OAAO,MAAM,eAAe,EAAE,KAAK,MAAM,QAAQ,GAAG,aAAa,6BAA6B,gBAAgB,cAAc;EACnK,QAAQ;EACR;EACA,CAAC;;;;;;CAMF,MAAM,WAAW,OAAO,MAAM,eAAe,EAAE,KAAK,MAAM,QAAQ,GAAG,aAAa,aAAa,gBAAgB,cAAc;EAC5H,QAAQ;EACR;EACA,CAAC;;;;;;;;;;;;;;;;;;;;CAoBF,MAAM,iBAAiB,OAAO,MAAM,eAAe,EAAE,KAAK;AACzD,MAAI,CAAC,KAAM;EACX,MAAM,EAAE,WAAW,OAAO,GAAG,SAAS;EACtC,MAAM,kBAAkB,IAAI,iBAAiB;AAC7C,MAAI;GACH,MAAM,WAAW,MAAM,MAAM,GAAG,aAAa,OAAO;IACnD,QAAQ;IACR,SAAS;KACR,gBAAgB;KAChB,GAAG,eAAe;KAClB,GAAG,aAAa;KAChB;IACD,MAAM,KAAK,UAAU;KACpB,GAAG;KACH,GAAG,eAAe;KAClB,GAAG,aAAa;KAChB,CAAC;IACF,QAAQ,gBAAgB;IACxB,aAAa;IACb,CAAC;AACF,OAAI,CAAC,SAAS,IAAI;IACjB,IAAI,eAAe;AACnB,QAAI;KACH,MAAM,YAAY,MAAM,SAAS,MAAM;AACvC,oBAAe,KAAK,UAAU,UAAU,MAAM,IAAI;YAC3C;AACP,SAAI;MACH,MAAM,YAAY,MAAM,SAAS,MAAM;AACvC,UAAI,UAAW,gBAAe;aACvB;;AAET,UAAM,IAAI,MAAM,aAAa;;GAE9B,MAAM,SAAS,SAAS,MAAM,WAAW;AACzC,OAAI,CAAC,OAAQ,OAAM,IAAI,MAAM,sBAAsB;GACnD,MAAM,UAAU,IAAI,aAAa;GACjC,IAAI,SAAS;AACb,UAAO,MAAM;IACZ,MAAM,EAAE,MAAM,UAAU,MAAM,OAAO,MAAM;AAC3C,QAAI,KAAM;AACV,cAAU,QAAQ,OAAO,OAAO,EAAE,QAAQ,MAAM,CAAC;IACjD,MAAM,QAAQ,OAAO,MAAM,KAAK;AAChC,aAAS,MAAM,KAAK,IAAI;AACxB,SAAK,MAAM,QAAQ,MAAO,KAAI,KAAK,WAAW,SAAS,CAAE,KAAI;KAC5D,MAAM,OAAO,KAAK,MAAM,KAAK,MAAM,EAAE,CAAC;AACtC,SAAI,KAAK,MAAO,aAAY,KAAK,MAAM;AACvC,SAAI,KAAK,QAAQ,KAAK,SAAU,UAAS,KAAK,SAAS;aAC/C,GAAG;AACX,aAAQ,MAAM,6BAA6B,EAAE;;;WAGvC,OAAO;AACf,WAAQ,MAAM,4BAA4B,MAAM;AAChD,SAAM;;;CAGR,MAAM,eAAe,OAAO,MAAM,eAAe,EAAE,KAAK,MAAM,QAAQ,GAAG,aAAa,gBAAgB,gBAAgB,cAAc;EACnI,QAAQ;EACR;EACA,CAAC;;;;CAIF,MAAM,iBAAiB,OAAO,QAAQ,eAAe,EAAE,KAAK,MAAM,QAAQ,GAAG,aAAa,eAAe,gBAAgB,cAAc;EACtI,QAAQ;EACR;EACA,CAAC;AACF,QAAO;EACN;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { fetcher } from "../fetcher.mjs";
|
|
2
|
+
import { built_default } from "../config/dist/esm/built.mjs";
|
|
3
|
+
|
|
4
|
+
//#region ../api/dist/esm/getIntlayerAPI/audit.mjs
|
|
5
|
+
const getAuditAPI = (authAPIOptions = {}, intlayerConfig) => {
|
|
6
|
+
const backendURL = intlayerConfig?.editor?.backendURL ?? built_default?.editor?.backendURL;
|
|
7
|
+
if (!backendURL) throw new Error("Backend URL is not defined in the Intlayer configuration.");
|
|
8
|
+
const AUDIT_API_ROUTE = `${backendURL}/api/audit`;
|
|
9
|
+
/**
|
|
10
|
+
* Creates a new audit in the database.
|
|
11
|
+
* @param audit - Audit data.
|
|
12
|
+
*/
|
|
13
|
+
const createAudit = async (audit, otherOptions = {}) => await fetcher(`${AUDIT_API_ROUTE}`, authAPIOptions, otherOptions, {
|
|
14
|
+
method: "POST",
|
|
15
|
+
body: audit
|
|
16
|
+
});
|
|
17
|
+
/**
|
|
18
|
+
* Retrieves audits for the current user or project.
|
|
19
|
+
* @param params - Query parameters (page, pageSize).
|
|
20
|
+
*/
|
|
21
|
+
const getAudits = async (params, otherOptions = {}) => await fetcher(AUDIT_API_ROUTE, authAPIOptions, otherOptions, {
|
|
22
|
+
cache: "no-store",
|
|
23
|
+
params
|
|
24
|
+
});
|
|
25
|
+
/**
|
|
26
|
+
* Retrieves an audit by its ID.
|
|
27
|
+
* @param auditId - Audit ID.
|
|
28
|
+
*/
|
|
29
|
+
const getAuditById = async (auditId, otherOptions = {}) => await fetcher(`${AUDIT_API_ROUTE}/${String(auditId)}`, authAPIOptions, otherOptions, { cache: "no-store" });
|
|
30
|
+
return {
|
|
31
|
+
createAudit,
|
|
32
|
+
getAudits,
|
|
33
|
+
getAuditById
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
//#endregion
|
|
38
|
+
export { getAuditAPI };
|
|
39
|
+
//# sourceMappingURL=audit.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audit.mjs","names":[],"sources":["../../../../../../../api/dist/esm/getIntlayerAPI/audit.mjs"],"sourcesContent":["import { fetcher } from \"../fetcher.mjs\";\nimport { built_default } from \"../config/dist/esm/built.mjs\";\n\n//#region src/getIntlayerAPI/audit.ts\nconst getAuditAPI = (authAPIOptions = {}, intlayerConfig) => {\n\tconst backendURL = intlayerConfig?.editor?.backendURL ?? built_default?.editor?.backendURL;\n\tif (!backendURL) throw new Error(\"Backend URL is not defined in the Intlayer configuration.\");\n\tconst AUDIT_API_ROUTE = `${backendURL}/api/audit`;\n\t/**\n\t* Creates a new audit in the database.\n\t* @param audit - Audit data.\n\t*/\n\tconst createAudit = async (audit, otherOptions = {}) => await fetcher(`${AUDIT_API_ROUTE}`, authAPIOptions, otherOptions, {\n\t\tmethod: \"POST\",\n\t\tbody: audit\n\t});\n\t/**\n\t* Retrieves audits for the current user or project.\n\t* @param params - Query parameters (page, pageSize).\n\t*/\n\tconst getAudits = async (params, otherOptions = {}) => await fetcher(AUDIT_API_ROUTE, authAPIOptions, otherOptions, {\n\t\tcache: \"no-store\",\n\t\tparams\n\t});\n\t/**\n\t* Retrieves an audit by its ID.\n\t* @param auditId - Audit ID.\n\t*/\n\tconst getAuditById = async (auditId, otherOptions = {}) => await fetcher(`${AUDIT_API_ROUTE}/${String(auditId)}`, authAPIOptions, otherOptions, { cache: \"no-store\" });\n\treturn {\n\t\tcreateAudit,\n\t\tgetAudits,\n\t\tgetAuditById\n\t};\n};\n\n//#endregion\nexport { getAuditAPI };\n//# sourceMappingURL=audit.mjs.map"],"mappings":";;;;AAIA,MAAM,eAAe,iBAAiB,EAAE,EAAE,mBAAmB;CAC5D,MAAM,aAAa,gBAAgB,QAAQ,cAAc,eAAe,QAAQ;AAChF,KAAI,CAAC,WAAY,OAAM,IAAI,MAAM,4DAA4D;CAC7F,MAAM,kBAAkB,GAAG,WAAW;;;;;CAKtC,MAAM,cAAc,OAAO,OAAO,eAAe,EAAE,KAAK,MAAM,QAAQ,GAAG,mBAAmB,gBAAgB,cAAc;EACzH,QAAQ;EACR,MAAM;EACN,CAAC;;;;;CAKF,MAAM,YAAY,OAAO,QAAQ,eAAe,EAAE,KAAK,MAAM,QAAQ,iBAAiB,gBAAgB,cAAc;EACnH,OAAO;EACP;EACA,CAAC;;;;;CAKF,MAAM,eAAe,OAAO,SAAS,eAAe,EAAE,KAAK,MAAM,QAAQ,GAAG,gBAAgB,GAAG,OAAO,QAAQ,IAAI,gBAAgB,cAAc,EAAE,OAAO,YAAY,CAAC;AACtK,QAAO;EACN;EACA;EACA;EACA"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { fetcher } from "../fetcher.mjs";
|
|
2
|
+
import { built_default } from "../config/dist/esm/built.mjs";
|
|
3
|
+
|
|
4
|
+
//#region ../api/dist/esm/getIntlayerAPI/dictionary.mjs
|
|
5
|
+
const getDictionaryAPI = (authAPIOptions = {}, intlayerConfig) => {
|
|
6
|
+
const backendURL = intlayerConfig?.editor?.backendURL ?? built_default?.editor?.backendURL;
|
|
7
|
+
if (!backendURL) throw new Error("Backend URL is not defined in the Intlayer configuration.");
|
|
8
|
+
const PROJECT_API_ROUTE = `${backendURL}/api/dictionary`;
|
|
9
|
+
/**
|
|
10
|
+
* Retrieves a list of dictionaries based on filters and pagination.
|
|
11
|
+
* @param filters - Filters and pagination options.
|
|
12
|
+
*/
|
|
13
|
+
const getDictionaries = async (filters, otherOptions = {}) => await fetcher(PROJECT_API_ROUTE, authAPIOptions, otherOptions, {
|
|
14
|
+
cache: "no-store",
|
|
15
|
+
params: filters
|
|
16
|
+
});
|
|
17
|
+
/**
|
|
18
|
+
* Retrieves a list of dictionary keys related to the project.
|
|
19
|
+
*/
|
|
20
|
+
const getDictionariesKeys = async (otherOptions = {}) => await fetcher(`${PROJECT_API_ROUTE}/keys`, authAPIOptions, otherOptions, { cache: "no-store" });
|
|
21
|
+
/**
|
|
22
|
+
* Retrieves a list of dictionary keys related to the project.
|
|
23
|
+
*/
|
|
24
|
+
const getDictionariesUpdateTimestamp = async (otherOptions = {}) => await fetcher(`${PROJECT_API_ROUTE}/update`, authAPIOptions, otherOptions, { cache: "no-store" });
|
|
25
|
+
/**
|
|
26
|
+
* Retrieves a dictionary by its key and version.
|
|
27
|
+
* @param dictionaryKey - Dictionary key.
|
|
28
|
+
* @param version - Dictionary version of content.
|
|
29
|
+
*/
|
|
30
|
+
const getDictionary = async (dictionaryKey, version, otherOptions = {}) => await fetcher(`${PROJECT_API_ROUTE}/${dictionaryKey}`, authAPIOptions, otherOptions, { params: version ? { version: version.toString() } : void 0 });
|
|
31
|
+
/**
|
|
32
|
+
* Adds a new dictionary to the database.
|
|
33
|
+
* @param dictionary - Dictionary data.
|
|
34
|
+
*/
|
|
35
|
+
const addDictionary = async (body, otherOptions = {}) => await fetcher(`${PROJECT_API_ROUTE}`, authAPIOptions, otherOptions, {
|
|
36
|
+
method: "POST",
|
|
37
|
+
body
|
|
38
|
+
});
|
|
39
|
+
const pushDictionaries = async (dictionaries, otherOptions = {}) => await fetcher(`${PROJECT_API_ROUTE}`, authAPIOptions, otherOptions, {
|
|
40
|
+
method: "PATCH",
|
|
41
|
+
body: { dictionaries }
|
|
42
|
+
});
|
|
43
|
+
/**
|
|
44
|
+
* Updates an existing dictionary in the database.
|
|
45
|
+
* @param dictionary - Updated dictionary data.
|
|
46
|
+
*/
|
|
47
|
+
const updateDictionary = async (dictionary, otherOptions = {}) => await fetcher(`${PROJECT_API_ROUTE}/${dictionary.id}`, authAPIOptions, otherOptions, {
|
|
48
|
+
method: "PUT",
|
|
49
|
+
body: dictionary
|
|
50
|
+
});
|
|
51
|
+
/**
|
|
52
|
+
* Deletes a dictionary from the database by its ID.
|
|
53
|
+
* @param id - Dictionary ID.
|
|
54
|
+
*/
|
|
55
|
+
const deleteDictionary = async (id, otherOptions = {}) => await fetcher(`${PROJECT_API_ROUTE}/${id}`, authAPIOptions, otherOptions, { method: "DELETE" });
|
|
56
|
+
return {
|
|
57
|
+
getDictionaries,
|
|
58
|
+
getDictionariesKeys,
|
|
59
|
+
getDictionariesUpdateTimestamp,
|
|
60
|
+
getDictionary,
|
|
61
|
+
pushDictionaries,
|
|
62
|
+
addDictionary,
|
|
63
|
+
updateDictionary,
|
|
64
|
+
deleteDictionary
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
//#endregion
|
|
69
|
+
export { getDictionaryAPI };
|
|
70
|
+
//# sourceMappingURL=dictionary.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dictionary.mjs","names":[],"sources":["../../../../../../../api/dist/esm/getIntlayerAPI/dictionary.mjs"],"sourcesContent":["import { fetcher } from \"../fetcher.mjs\";\nimport { built_default } from \"../config/dist/esm/built.mjs\";\n\n//#region src/getIntlayerAPI/dictionary.ts\nconst getDictionaryAPI = (authAPIOptions = {}, intlayerConfig) => {\n\tconst backendURL = intlayerConfig?.editor?.backendURL ?? built_default?.editor?.backendURL;\n\tif (!backendURL) throw new Error(\"Backend URL is not defined in the Intlayer configuration.\");\n\tconst PROJECT_API_ROUTE = `${backendURL}/api/dictionary`;\n\t/**\n\t* Retrieves a list of dictionaries based on filters and pagination.\n\t* @param filters - Filters and pagination options.\n\t*/\n\tconst getDictionaries = async (filters, otherOptions = {}) => await fetcher(PROJECT_API_ROUTE, authAPIOptions, otherOptions, {\n\t\tcache: \"no-store\",\n\t\tparams: filters\n\t});\n\t/**\n\t* Retrieves a list of dictionary keys related to the project.\n\t*/\n\tconst getDictionariesKeys = async (otherOptions = {}) => await fetcher(`${PROJECT_API_ROUTE}/keys`, authAPIOptions, otherOptions, { cache: \"no-store\" });\n\t/**\n\t* Retrieves a list of dictionary keys related to the project.\n\t*/\n\tconst getDictionariesUpdateTimestamp = async (otherOptions = {}) => await fetcher(`${PROJECT_API_ROUTE}/update`, authAPIOptions, otherOptions, { cache: \"no-store\" });\n\t/**\n\t* Retrieves a dictionary by its key and version.\n\t* @param dictionaryKey - Dictionary key.\n\t* @param version - Dictionary version of content.\n\t*/\n\tconst getDictionary = async (dictionaryKey, version, otherOptions = {}) => await fetcher(`${PROJECT_API_ROUTE}/${dictionaryKey}`, authAPIOptions, otherOptions, { params: version ? { version: version.toString() } : void 0 });\n\t/**\n\t* Adds a new dictionary to the database.\n\t* @param dictionary - Dictionary data.\n\t*/\n\tconst addDictionary = async (body, otherOptions = {}) => await fetcher(`${PROJECT_API_ROUTE}`, authAPIOptions, otherOptions, {\n\t\tmethod: \"POST\",\n\t\tbody\n\t});\n\tconst pushDictionaries = async (dictionaries, otherOptions = {}) => await fetcher(`${PROJECT_API_ROUTE}`, authAPIOptions, otherOptions, {\n\t\tmethod: \"PATCH\",\n\t\tbody: { dictionaries }\n\t});\n\t/**\n\t* Updates an existing dictionary in the database.\n\t* @param dictionary - Updated dictionary data.\n\t*/\n\tconst updateDictionary = async (dictionary, otherOptions = {}) => await fetcher(`${PROJECT_API_ROUTE}/${dictionary.id}`, authAPIOptions, otherOptions, {\n\t\tmethod: \"PUT\",\n\t\tbody: dictionary\n\t});\n\t/**\n\t* Deletes a dictionary from the database by its ID.\n\t* @param id - Dictionary ID.\n\t*/\n\tconst deleteDictionary = async (id, otherOptions = {}) => await fetcher(`${PROJECT_API_ROUTE}/${id}`, authAPIOptions, otherOptions, { method: \"DELETE\" });\n\treturn {\n\t\tgetDictionaries,\n\t\tgetDictionariesKeys,\n\t\tgetDictionariesUpdateTimestamp,\n\t\tgetDictionary,\n\t\tpushDictionaries,\n\t\taddDictionary,\n\t\tupdateDictionary,\n\t\tdeleteDictionary\n\t};\n};\n\n//#endregion\nexport { getDictionaryAPI };\n//# sourceMappingURL=dictionary.mjs.map"],"mappings":";;;;AAIA,MAAM,oBAAoB,iBAAiB,EAAE,EAAE,mBAAmB;CACjE,MAAM,aAAa,gBAAgB,QAAQ,cAAc,eAAe,QAAQ;AAChF,KAAI,CAAC,WAAY,OAAM,IAAI,MAAM,4DAA4D;CAC7F,MAAM,oBAAoB,GAAG,WAAW;;;;;CAKxC,MAAM,kBAAkB,OAAO,SAAS,eAAe,EAAE,KAAK,MAAM,QAAQ,mBAAmB,gBAAgB,cAAc;EAC5H,OAAO;EACP,QAAQ;EACR,CAAC;;;;CAIF,MAAM,sBAAsB,OAAO,eAAe,EAAE,KAAK,MAAM,QAAQ,GAAG,kBAAkB,QAAQ,gBAAgB,cAAc,EAAE,OAAO,YAAY,CAAC;;;;CAIxJ,MAAM,iCAAiC,OAAO,eAAe,EAAE,KAAK,MAAM,QAAQ,GAAG,kBAAkB,UAAU,gBAAgB,cAAc,EAAE,OAAO,YAAY,CAAC;;;;;;CAMrK,MAAM,gBAAgB,OAAO,eAAe,SAAS,eAAe,EAAE,KAAK,MAAM,QAAQ,GAAG,kBAAkB,GAAG,iBAAiB,gBAAgB,cAAc,EAAE,QAAQ,UAAU,EAAE,SAAS,QAAQ,UAAU,EAAE,GAAG,KAAK,GAAG,CAAC;;;;;CAK/N,MAAM,gBAAgB,OAAO,MAAM,eAAe,EAAE,KAAK,MAAM,QAAQ,GAAG,qBAAqB,gBAAgB,cAAc;EAC5H,QAAQ;EACR;EACA,CAAC;CACF,MAAM,mBAAmB,OAAO,cAAc,eAAe,EAAE,KAAK,MAAM,QAAQ,GAAG,qBAAqB,gBAAgB,cAAc;EACvI,QAAQ;EACR,MAAM,EAAE,cAAc;EACtB,CAAC;;;;;CAKF,MAAM,mBAAmB,OAAO,YAAY,eAAe,EAAE,KAAK,MAAM,QAAQ,GAAG,kBAAkB,GAAG,WAAW,MAAM,gBAAgB,cAAc;EACtJ,QAAQ;EACR,MAAM;EACN,CAAC;;;;;CAKF,MAAM,mBAAmB,OAAO,IAAI,eAAe,EAAE,KAAK,MAAM,QAAQ,GAAG,kBAAkB,GAAG,MAAM,gBAAgB,cAAc,EAAE,QAAQ,UAAU,CAAC;AACzJ,QAAO;EACN;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { fetcher } from "../fetcher.mjs";
|
|
2
|
+
import { built_default } from "../config/dist/esm/built.mjs";
|
|
3
|
+
|
|
4
|
+
//#region ../api/dist/esm/getIntlayerAPI/editor.mjs
|
|
5
|
+
const getEditorAPI = (authAPIOptions = {}, intlayerConfig) => {
|
|
6
|
+
const editorURL = intlayerConfig?.editor?.editorURL ?? built_default?.editor?.editorURL;
|
|
7
|
+
if (!editorURL) throw new Error("Editor URL is not defined in the Intlayer configuration.");
|
|
8
|
+
const EDITOR_API_ROUTE = `${editorURL}/api`;
|
|
9
|
+
/**
|
|
10
|
+
* Get the Intlayer configuration
|
|
11
|
+
*/
|
|
12
|
+
const getConfiguration = async (otherOptions = {}) => {
|
|
13
|
+
return (await fetcher(`${EDITOR_API_ROUTE}/config`, authAPIOptions, otherOptions)).data;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Get the Intlayer configuration
|
|
17
|
+
*/
|
|
18
|
+
const getDictionaries = async (otherOptions = {}) => {
|
|
19
|
+
return (await fetcher(`${EDITOR_API_ROUTE}/dictionary`, authAPIOptions, otherOptions)).data;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Adds a new dictionary to the database.
|
|
23
|
+
* @param dictionary - Dictionary data.
|
|
24
|
+
*/
|
|
25
|
+
const writeDictionary = async (body, otherOptions = {}) => await fetcher(`${EDITOR_API_ROUTE}/dictionary`, authAPIOptions, otherOptions, {
|
|
26
|
+
method: "POST",
|
|
27
|
+
body
|
|
28
|
+
});
|
|
29
|
+
return {
|
|
30
|
+
getDictionaries,
|
|
31
|
+
getConfiguration,
|
|
32
|
+
writeDictionary
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
//#endregion
|
|
37
|
+
export { getEditorAPI };
|
|
38
|
+
//# sourceMappingURL=editor.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"editor.mjs","names":[],"sources":["../../../../../../../api/dist/esm/getIntlayerAPI/editor.mjs"],"sourcesContent":["import { fetcher } from \"../fetcher.mjs\";\nimport { built_default } from \"../config/dist/esm/built.mjs\";\n\n//#region src/getIntlayerAPI/editor.ts\nconst getEditorAPI = (authAPIOptions = {}, intlayerConfig) => {\n\tconst editorURL = intlayerConfig?.editor?.editorURL ?? built_default?.editor?.editorURL;\n\tif (!editorURL) throw new Error(\"Editor URL is not defined in the Intlayer configuration.\");\n\tconst EDITOR_API_ROUTE = `${editorURL}/api`;\n\t/**\n\t* Get the Intlayer configuration\n\t*/\n\tconst getConfiguration = async (otherOptions = {}) => {\n\t\treturn (await fetcher(`${EDITOR_API_ROUTE}/config`, authAPIOptions, otherOptions)).data;\n\t};\n\t/**\n\t* Get the Intlayer configuration\n\t*/\n\tconst getDictionaries = async (otherOptions = {}) => {\n\t\treturn (await fetcher(`${EDITOR_API_ROUTE}/dictionary`, authAPIOptions, otherOptions)).data;\n\t};\n\t/**\n\t* Adds a new dictionary to the database.\n\t* @param dictionary - Dictionary data.\n\t*/\n\tconst writeDictionary = async (body, otherOptions = {}) => await fetcher(`${EDITOR_API_ROUTE}/dictionary`, authAPIOptions, otherOptions, {\n\t\tmethod: \"POST\",\n\t\tbody\n\t});\n\treturn {\n\t\tgetDictionaries,\n\t\tgetConfiguration,\n\t\twriteDictionary\n\t};\n};\n\n//#endregion\nexport { getEditorAPI };\n//# sourceMappingURL=editor.mjs.map"],"mappings":";;;;AAIA,MAAM,gBAAgB,iBAAiB,EAAE,EAAE,mBAAmB;CAC7D,MAAM,YAAY,gBAAgB,QAAQ,aAAa,eAAe,QAAQ;AAC9E,KAAI,CAAC,UAAW,OAAM,IAAI,MAAM,2DAA2D;CAC3F,MAAM,mBAAmB,GAAG,UAAU;;;;CAItC,MAAM,mBAAmB,OAAO,eAAe,EAAE,KAAK;AACrD,UAAQ,MAAM,QAAQ,GAAG,iBAAiB,UAAU,gBAAgB,aAAa,EAAE;;;;;CAKpF,MAAM,kBAAkB,OAAO,eAAe,EAAE,KAAK;AACpD,UAAQ,MAAM,QAAQ,GAAG,iBAAiB,cAAc,gBAAgB,aAAa,EAAE;;;;;;CAMxF,MAAM,kBAAkB,OAAO,MAAM,eAAe,EAAE,KAAK,MAAM,QAAQ,GAAG,iBAAiB,cAAc,gBAAgB,cAAc;EACxI,QAAQ;EACR;EACA,CAAC;AACF,QAAO;EACN;EACA;EACA;EACA"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { getAiAPI } from "./ai.mjs";
|
|
2
|
+
import { getAuditAPI } from "./audit.mjs";
|
|
3
|
+
import { getDictionaryAPI } from "./dictionary.mjs";
|
|
4
|
+
import { getEditorAPI } from "./editor.mjs";
|
|
5
|
+
import { getOAuthAPI } from "./oAuth.mjs";
|
|
6
|
+
import { getOrganizationAPI } from "./organization.mjs";
|
|
7
|
+
import { getProjectAPI } from "./project.mjs";
|
|
8
|
+
import { getStripeAPI } from "./stripe.mjs";
|
|
9
|
+
import { getTagAPI } from "./tag.mjs";
|
|
10
|
+
import { getUserAPI } from "./user.mjs";
|
|
11
|
+
import { getNewsletterAPI } from "./newsletter.mjs";
|
|
12
|
+
import { getSearchAPI } from "./search.mjs";
|
|
13
|
+
|
|
14
|
+
//#region ../api/dist/esm/getIntlayerAPI/index.mjs
|
|
15
|
+
const getIntlayerAPI = (authAPIOptions = {}, intlayerConfig) => ({
|
|
16
|
+
organization: getOrganizationAPI(authAPIOptions, intlayerConfig),
|
|
17
|
+
project: getProjectAPI(authAPIOptions, intlayerConfig),
|
|
18
|
+
user: getUserAPI(authAPIOptions, intlayerConfig),
|
|
19
|
+
oAuth: getOAuthAPI(intlayerConfig),
|
|
20
|
+
dictionary: getDictionaryAPI(authAPIOptions, intlayerConfig),
|
|
21
|
+
stripe: getStripeAPI(authAPIOptions, intlayerConfig),
|
|
22
|
+
ai: getAiAPI(authAPIOptions, intlayerConfig),
|
|
23
|
+
tag: getTagAPI(authAPIOptions, intlayerConfig),
|
|
24
|
+
search: getSearchAPI(authAPIOptions, intlayerConfig),
|
|
25
|
+
editor: getEditorAPI(authAPIOptions, intlayerConfig),
|
|
26
|
+
newsletter: getNewsletterAPI(authAPIOptions, intlayerConfig),
|
|
27
|
+
audit: getAuditAPI(authAPIOptions, intlayerConfig)
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
//#endregion
|
|
31
|
+
export { getIntlayerAPI };
|
|
32
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../../../../../../../api/dist/esm/getIntlayerAPI/index.mjs"],"sourcesContent":["import { getAiAPI } from \"./ai.mjs\";\nimport { getAuditAPI } from \"./audit.mjs\";\nimport { getDictionaryAPI } from \"./dictionary.mjs\";\nimport { getEditorAPI } from \"./editor.mjs\";\nimport { getNewsletterAPI } from \"./newsletter.mjs\";\nimport { getOAuthAPI } from \"./oAuth.mjs\";\nimport { getOrganizationAPI } from \"./organization.mjs\";\nimport { getProjectAPI } from \"./project.mjs\";\nimport { getSearchAPI } from \"./search.mjs\";\nimport { getStripeAPI } from \"./stripe.mjs\";\nimport { getTagAPI } from \"./tag.mjs\";\nimport { getUserAPI } from \"./user.mjs\";\n\n//#region src/getIntlayerAPI/index.ts\nconst getIntlayerAPI = (authAPIOptions = {}, intlayerConfig) => ({\n\torganization: getOrganizationAPI(authAPIOptions, intlayerConfig),\n\tproject: getProjectAPI(authAPIOptions, intlayerConfig),\n\tuser: getUserAPI(authAPIOptions, intlayerConfig),\n\toAuth: getOAuthAPI(intlayerConfig),\n\tdictionary: getDictionaryAPI(authAPIOptions, intlayerConfig),\n\tstripe: getStripeAPI(authAPIOptions, intlayerConfig),\n\tai: getAiAPI(authAPIOptions, intlayerConfig),\n\ttag: getTagAPI(authAPIOptions, intlayerConfig),\n\tsearch: getSearchAPI(authAPIOptions, intlayerConfig),\n\teditor: getEditorAPI(authAPIOptions, intlayerConfig),\n\tnewsletter: getNewsletterAPI(authAPIOptions, intlayerConfig),\n\taudit: getAuditAPI(authAPIOptions, intlayerConfig)\n});\n\n//#endregion\nexport { getIntlayerAPI };\n//# sourceMappingURL=index.mjs.map"],"mappings":";;;;;;;;;;;;;;AAcA,MAAM,kBAAkB,iBAAiB,EAAE,EAAE,oBAAoB;CAChE,cAAc,mBAAmB,gBAAgB,eAAe;CAChE,SAAS,cAAc,gBAAgB,eAAe;CACtD,MAAM,WAAW,gBAAgB,eAAe;CAChD,OAAO,YAAY,eAAe;CAClC,YAAY,iBAAiB,gBAAgB,eAAe;CAC5D,QAAQ,aAAa,gBAAgB,eAAe;CACpD,IAAI,SAAS,gBAAgB,eAAe;CAC5C,KAAK,UAAU,gBAAgB,eAAe;CAC9C,QAAQ,aAAa,gBAAgB,eAAe;CACpD,QAAQ,aAAa,gBAAgB,eAAe;CACpD,YAAY,iBAAiB,gBAAgB,eAAe;CAC5D,OAAO,YAAY,gBAAgB,eAAe;CAClD"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { fetcher } from "../fetcher.mjs";
|
|
2
|
+
import { built_default } from "../config/dist/esm/built.mjs";
|
|
3
|
+
|
|
4
|
+
//#region ../api/dist/esm/getIntlayerAPI/newsletter.mjs
|
|
5
|
+
const getNewsletterAPI = (authAPIOptions = {}, intlayerConfig) => {
|
|
6
|
+
const backendURL = intlayerConfig?.editor?.backendURL ?? built_default?.editor?.backendURL;
|
|
7
|
+
if (!backendURL) throw new Error("Backend URL is not defined in the Intlayer configuration.");
|
|
8
|
+
const NEWSLETTER_API_ROUTE = `${backendURL}/api/newsletter`;
|
|
9
|
+
/**
|
|
10
|
+
* Subscribe a user to newsletter(s)
|
|
11
|
+
* @param body - Newsletter subscription parameters.
|
|
12
|
+
* @returns Newsletter subscription result.
|
|
13
|
+
*/
|
|
14
|
+
const subscribeToNewsletter = async (body, otherOptions = {}) => await fetcher(`${NEWSLETTER_API_ROUTE}/subscribe`, authAPIOptions, otherOptions, {
|
|
15
|
+
method: "POST",
|
|
16
|
+
body
|
|
17
|
+
});
|
|
18
|
+
/**
|
|
19
|
+
* Unsubscribe a user from newsletter(s)
|
|
20
|
+
* @param body - Newsletter unsubscription parameters.
|
|
21
|
+
* @returns Newsletter unsubscription result.
|
|
22
|
+
*/
|
|
23
|
+
const unsubscribeFromNewsletter = async (body, otherOptions = {}) => await fetcher(`${NEWSLETTER_API_ROUTE}/unsubscribe`, authAPIOptions, otherOptions, {
|
|
24
|
+
method: "POST",
|
|
25
|
+
body
|
|
26
|
+
});
|
|
27
|
+
/**
|
|
28
|
+
* Get newsletter subscription status for the authenticated user
|
|
29
|
+
* @returns Newsletter subscription status.
|
|
30
|
+
*/
|
|
31
|
+
const getNewsletterStatus = async (otherOptions = {}) => await fetcher(`${NEWSLETTER_API_ROUTE}/status`, authAPIOptions, otherOptions, { method: "GET" });
|
|
32
|
+
return {
|
|
33
|
+
subscribeToNewsletter,
|
|
34
|
+
unsubscribeFromNewsletter,
|
|
35
|
+
getNewsletterStatus
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
//#endregion
|
|
40
|
+
export { getNewsletterAPI };
|
|
41
|
+
//# sourceMappingURL=newsletter.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"newsletter.mjs","names":[],"sources":["../../../../../../../api/dist/esm/getIntlayerAPI/newsletter.mjs"],"sourcesContent":["import { fetcher } from \"../fetcher.mjs\";\nimport { built_default } from \"../config/dist/esm/built.mjs\";\n\n//#region src/getIntlayerAPI/newsletter.ts\nconst getNewsletterAPI = (authAPIOptions = {}, intlayerConfig) => {\n\tconst backendURL = intlayerConfig?.editor?.backendURL ?? built_default?.editor?.backendURL;\n\tif (!backendURL) throw new Error(\"Backend URL is not defined in the Intlayer configuration.\");\n\tconst NEWSLETTER_API_ROUTE = `${backendURL}/api/newsletter`;\n\t/**\n\t* Subscribe a user to newsletter(s)\n\t* @param body - Newsletter subscription parameters.\n\t* @returns Newsletter subscription result.\n\t*/\n\tconst subscribeToNewsletter = async (body, otherOptions = {}) => await fetcher(`${NEWSLETTER_API_ROUTE}/subscribe`, authAPIOptions, otherOptions, {\n\t\tmethod: \"POST\",\n\t\tbody\n\t});\n\t/**\n\t* Unsubscribe a user from newsletter(s)\n\t* @param body - Newsletter unsubscription parameters.\n\t* @returns Newsletter unsubscription result.\n\t*/\n\tconst unsubscribeFromNewsletter = async (body, otherOptions = {}) => await fetcher(`${NEWSLETTER_API_ROUTE}/unsubscribe`, authAPIOptions, otherOptions, {\n\t\tmethod: \"POST\",\n\t\tbody\n\t});\n\t/**\n\t* Get newsletter subscription status for the authenticated user\n\t* @returns Newsletter subscription status.\n\t*/\n\tconst getNewsletterStatus = async (otherOptions = {}) => await fetcher(`${NEWSLETTER_API_ROUTE}/status`, authAPIOptions, otherOptions, { method: \"GET\" });\n\treturn {\n\t\tsubscribeToNewsletter,\n\t\tunsubscribeFromNewsletter,\n\t\tgetNewsletterStatus\n\t};\n};\n\n//#endregion\nexport { getNewsletterAPI };\n//# sourceMappingURL=newsletter.mjs.map"],"mappings":";;;;AAIA,MAAM,oBAAoB,iBAAiB,EAAE,EAAE,mBAAmB;CACjE,MAAM,aAAa,gBAAgB,QAAQ,cAAc,eAAe,QAAQ;AAChF,KAAI,CAAC,WAAY,OAAM,IAAI,MAAM,4DAA4D;CAC7F,MAAM,uBAAuB,GAAG,WAAW;;;;;;CAM3C,MAAM,wBAAwB,OAAO,MAAM,eAAe,EAAE,KAAK,MAAM,QAAQ,GAAG,qBAAqB,aAAa,gBAAgB,cAAc;EACjJ,QAAQ;EACR;EACA,CAAC;;;;;;CAMF,MAAM,4BAA4B,OAAO,MAAM,eAAe,EAAE,KAAK,MAAM,QAAQ,GAAG,qBAAqB,eAAe,gBAAgB,cAAc;EACvJ,QAAQ;EACR;EACA,CAAC;;;;;CAKF,MAAM,sBAAsB,OAAO,eAAe,EAAE,KAAK,MAAM,QAAQ,GAAG,qBAAqB,UAAU,gBAAgB,cAAc,EAAE,QAAQ,OAAO,CAAC;AACzJ,QAAO;EACN;EACA;EACA;EACA"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { fetcher } from "../fetcher.mjs";
|
|
2
|
+
import { built_default } from "../config/dist/esm/built.mjs";
|
|
3
|
+
|
|
4
|
+
//#region ../api/dist/esm/getIntlayerAPI/oAuth.mjs
|
|
5
|
+
const getOAuthAPI = (intlayerConfig) => {
|
|
6
|
+
const backendURL = intlayerConfig?.editor?.backendURL ?? built_default?.editor?.backendURL;
|
|
7
|
+
const { clientId, clientSecret } = intlayerConfig?.editor ?? {};
|
|
8
|
+
if (!backendURL) throw new Error("Backend URL is not defined in the Intlayer configuration.");
|
|
9
|
+
/**
|
|
10
|
+
* Gets an oAuth2 accessToken
|
|
11
|
+
* @return The token information
|
|
12
|
+
*/
|
|
13
|
+
const getOAuth2AccessToken = async (otherOptions = {}) => await fetcher(`${backendURL}/oauth2/token`, {}, otherOptions, {
|
|
14
|
+
method: "POST",
|
|
15
|
+
headers: { "Content-Type": "application/x-www-form-urlencoded" },
|
|
16
|
+
body: {
|
|
17
|
+
grant_type: "client_credentials",
|
|
18
|
+
client_id: clientId,
|
|
19
|
+
client_secret: clientSecret
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
return { getOAuth2AccessToken };
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
//#endregion
|
|
26
|
+
export { getOAuthAPI };
|
|
27
|
+
//# sourceMappingURL=oAuth.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oAuth.mjs","names":[],"sources":["../../../../../../../api/dist/esm/getIntlayerAPI/oAuth.mjs"],"sourcesContent":["import { fetcher } from \"../fetcher.mjs\";\nimport { built_default } from \"../config/dist/esm/built.mjs\";\n\n//#region src/getIntlayerAPI/oAuth.ts\nconst getOAuthAPI = (intlayerConfig) => {\n\tconst backendURL = intlayerConfig?.editor?.backendURL ?? built_default?.editor?.backendURL;\n\tconst { clientId, clientSecret } = intlayerConfig?.editor ?? {};\n\tif (!backendURL) throw new Error(\"Backend URL is not defined in the Intlayer configuration.\");\n\t/**\n\t* Gets an oAuth2 accessToken\n\t* @return The token information\n\t*/\n\tconst getOAuth2AccessToken = async (otherOptions = {}) => await fetcher(`${backendURL}/oauth2/token`, {}, otherOptions, {\n\t\tmethod: \"POST\",\n\t\theaders: { \"Content-Type\": \"application/x-www-form-urlencoded\" },\n\t\tbody: {\n\t\t\tgrant_type: \"client_credentials\",\n\t\t\tclient_id: clientId,\n\t\t\tclient_secret: clientSecret\n\t\t}\n\t});\n\treturn { getOAuth2AccessToken };\n};\n\n//#endregion\nexport { getOAuthAPI };\n//# sourceMappingURL=oAuth.mjs.map"],"mappings":";;;;AAIA,MAAM,eAAe,mBAAmB;CACvC,MAAM,aAAa,gBAAgB,QAAQ,cAAc,eAAe,QAAQ;CAChF,MAAM,EAAE,UAAU,iBAAiB,gBAAgB,UAAU,EAAE;AAC/D,KAAI,CAAC,WAAY,OAAM,IAAI,MAAM,4DAA4D;;;;;CAK7F,MAAM,uBAAuB,OAAO,eAAe,EAAE,KAAK,MAAM,QAAQ,GAAG,WAAW,gBAAgB,EAAE,EAAE,cAAc;EACvH,QAAQ;EACR,SAAS,EAAE,gBAAgB,qCAAqC;EAChE,MAAM;GACL,YAAY;GACZ,WAAW;GACX,eAAe;GACf;EACD,CAAC;AACF,QAAO,EAAE,sBAAsB"}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { fetcher } from "../fetcher.mjs";
|
|
2
|
+
import { built_default } from "../config/dist/esm/built.mjs";
|
|
3
|
+
|
|
4
|
+
//#region ../api/dist/esm/getIntlayerAPI/organization.mjs
|
|
5
|
+
const getOrganizationAPI = (authAPIOptions = {}, intlayerConfig) => {
|
|
6
|
+
const backendURL = intlayerConfig?.editor?.backendURL ?? built_default?.editor?.backendURL;
|
|
7
|
+
if (!backendURL) throw new Error("Backend URL is not defined in the Intlayer configuration--.");
|
|
8
|
+
const ORGANIZATION_API_ROUTE = `${backendURL}/api/organization`;
|
|
9
|
+
/**
|
|
10
|
+
* Retrieves a list of organizations based on filters and pagination.
|
|
11
|
+
* @param filters - Filters and pagination options.
|
|
12
|
+
*/
|
|
13
|
+
const getOrganizations = async (filters, otherOptions = {}) => await fetcher(ORGANIZATION_API_ROUTE, authAPIOptions, otherOptions, {
|
|
14
|
+
cache: "no-store",
|
|
15
|
+
params: filters
|
|
16
|
+
});
|
|
17
|
+
/**
|
|
18
|
+
* Retrieves an organization by its ID.
|
|
19
|
+
* @param organizationId - Organization ID.
|
|
20
|
+
*/
|
|
21
|
+
const getOrganization = async (organizationId, otherOptions = {}) => await fetcher(`${ORGANIZATION_API_ROUTE}/${String(organizationId)}`, authAPIOptions, otherOptions);
|
|
22
|
+
/**
|
|
23
|
+
* Adds a new organization to the database.
|
|
24
|
+
* @param organization - Organization data.
|
|
25
|
+
*/
|
|
26
|
+
const addOrganization = async (organization, otherOptions = {}) => await fetcher(ORGANIZATION_API_ROUTE, authAPIOptions, otherOptions, {
|
|
27
|
+
method: "POST",
|
|
28
|
+
body: organization
|
|
29
|
+
});
|
|
30
|
+
/**
|
|
31
|
+
* Updates an existing organization in the database.
|
|
32
|
+
* @param organization - Updated organization data.
|
|
33
|
+
*/
|
|
34
|
+
const updateOrganization = async (organization, otherOptions = {}) => fetcher(ORGANIZATION_API_ROUTE, authAPIOptions, otherOptions, {
|
|
35
|
+
method: "PUT",
|
|
36
|
+
body: organization
|
|
37
|
+
});
|
|
38
|
+
/**
|
|
39
|
+
* Update members to the organization in the database.
|
|
40
|
+
* @param body - Updated organization members data.
|
|
41
|
+
*/
|
|
42
|
+
const updateOrganizationMembers = async (body, otherOptions = {}) => fetcher(`${ORGANIZATION_API_ROUTE}/members`, authAPIOptions, otherOptions, {
|
|
43
|
+
method: "PUT",
|
|
44
|
+
body
|
|
45
|
+
});
|
|
46
|
+
/**
|
|
47
|
+
* Admin-only: Update members of any organization by ID
|
|
48
|
+
* @param organizationId - Organization ID
|
|
49
|
+
* @param body - Updated organization members data.
|
|
50
|
+
*/
|
|
51
|
+
const updateOrganizationMembersById = async (organizationId, body, otherOptions = {}) => fetcher(`${ORGANIZATION_API_ROUTE}/${organizationId}/members`, authAPIOptions, otherOptions, {
|
|
52
|
+
method: "PUT",
|
|
53
|
+
body
|
|
54
|
+
});
|
|
55
|
+
/**
|
|
56
|
+
* Add member to the organization in the database.
|
|
57
|
+
* @param body - Updated organization members data.
|
|
58
|
+
*/
|
|
59
|
+
const addOrganizationMember = async (body, otherOptions = {}) => fetcher(`${ORGANIZATION_API_ROUTE}/member`, authAPIOptions, otherOptions, {
|
|
60
|
+
method: "POST",
|
|
61
|
+
body
|
|
62
|
+
});
|
|
63
|
+
/**
|
|
64
|
+
* Deletes an organization from the database by its ID.
|
|
65
|
+
* @param organizationId - Organization ID.
|
|
66
|
+
*/
|
|
67
|
+
const deleteOrganization = async (otherOptions = {}) => await fetcher(ORGANIZATION_API_ROUTE, authAPIOptions, otherOptions, { method: "DELETE" });
|
|
68
|
+
/**
|
|
69
|
+
* Select an organization from the database by its ID.
|
|
70
|
+
* @param organizationId - Organization ID.
|
|
71
|
+
*/
|
|
72
|
+
const selectOrganization = async (organizationId, otherOptions = {}) => await fetcher(`${ORGANIZATION_API_ROUTE}/${String(organizationId)}`, authAPIOptions, otherOptions, { method: "PUT" });
|
|
73
|
+
/**
|
|
74
|
+
* Unselect an organization from the database by its ID.
|
|
75
|
+
* @param organizationId - Organization ID.
|
|
76
|
+
*/
|
|
77
|
+
const unselectOrganization = async (otherOptions = {}) => await fetcher(`${ORGANIZATION_API_ROUTE}/logout`, authAPIOptions, otherOptions, { method: "POST" });
|
|
78
|
+
return {
|
|
79
|
+
getOrganizations,
|
|
80
|
+
getOrganization,
|
|
81
|
+
addOrganization,
|
|
82
|
+
addOrganizationMember,
|
|
83
|
+
updateOrganization,
|
|
84
|
+
updateOrganizationMembers,
|
|
85
|
+
updateOrganizationMembersById,
|
|
86
|
+
deleteOrganization,
|
|
87
|
+
selectOrganization,
|
|
88
|
+
unselectOrganization
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
//#endregion
|
|
93
|
+
export { getOrganizationAPI };
|
|
94
|
+
//# sourceMappingURL=organization.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organization.mjs","names":[],"sources":["../../../../../../../api/dist/esm/getIntlayerAPI/organization.mjs"],"sourcesContent":["import { fetcher } from \"../fetcher.mjs\";\nimport { built_default } from \"../config/dist/esm/built.mjs\";\n\n//#region src/getIntlayerAPI/organization.ts\nconst getOrganizationAPI = (authAPIOptions = {}, intlayerConfig) => {\n\tconst backendURL = intlayerConfig?.editor?.backendURL ?? built_default?.editor?.backendURL;\n\tif (!backendURL) throw new Error(\"Backend URL is not defined in the Intlayer configuration--.\");\n\tconst ORGANIZATION_API_ROUTE = `${backendURL}/api/organization`;\n\t/**\n\t* Retrieves a list of organizations based on filters and pagination.\n\t* @param filters - Filters and pagination options.\n\t*/\n\tconst getOrganizations = async (filters, otherOptions = {}) => await fetcher(ORGANIZATION_API_ROUTE, authAPIOptions, otherOptions, {\n\t\tcache: \"no-store\",\n\t\tparams: filters\n\t});\n\t/**\n\t* Retrieves an organization by its ID.\n\t* @param organizationId - Organization ID.\n\t*/\n\tconst getOrganization = async (organizationId, otherOptions = {}) => await fetcher(`${ORGANIZATION_API_ROUTE}/${String(organizationId)}`, authAPIOptions, otherOptions);\n\t/**\n\t* Adds a new organization to the database.\n\t* @param organization - Organization data.\n\t*/\n\tconst addOrganization = async (organization, otherOptions = {}) => await fetcher(ORGANIZATION_API_ROUTE, authAPIOptions, otherOptions, {\n\t\tmethod: \"POST\",\n\t\tbody: organization\n\t});\n\t/**\n\t* Updates an existing organization in the database.\n\t* @param organization - Updated organization data.\n\t*/\n\tconst updateOrganization = async (organization, otherOptions = {}) => fetcher(ORGANIZATION_API_ROUTE, authAPIOptions, otherOptions, {\n\t\tmethod: \"PUT\",\n\t\tbody: organization\n\t});\n\t/**\n\t* Update members to the organization in the database.\n\t* @param body - Updated organization members data.\n\t*/\n\tconst updateOrganizationMembers = async (body, otherOptions = {}) => fetcher(`${ORGANIZATION_API_ROUTE}/members`, authAPIOptions, otherOptions, {\n\t\tmethod: \"PUT\",\n\t\tbody\n\t});\n\t/**\n\t* Admin-only: Update members of any organization by ID\n\t* @param organizationId - Organization ID\n\t* @param body - Updated organization members data.\n\t*/\n\tconst updateOrganizationMembersById = async (organizationId, body, otherOptions = {}) => fetcher(`${ORGANIZATION_API_ROUTE}/${organizationId}/members`, authAPIOptions, otherOptions, {\n\t\tmethod: \"PUT\",\n\t\tbody\n\t});\n\t/**\n\t* Add member to the organization in the database.\n\t* @param body - Updated organization members data.\n\t*/\n\tconst addOrganizationMember = async (body, otherOptions = {}) => fetcher(`${ORGANIZATION_API_ROUTE}/member`, authAPIOptions, otherOptions, {\n\t\tmethod: \"POST\",\n\t\tbody\n\t});\n\t/**\n\t* Deletes an organization from the database by its ID.\n\t* @param organizationId - Organization ID.\n\t*/\n\tconst deleteOrganization = async (otherOptions = {}) => await fetcher(ORGANIZATION_API_ROUTE, authAPIOptions, otherOptions, { method: \"DELETE\" });\n\t/**\n\t* Select an organization from the database by its ID.\n\t* @param organizationId - Organization ID.\n\t*/\n\tconst selectOrganization = async (organizationId, otherOptions = {}) => await fetcher(`${ORGANIZATION_API_ROUTE}/${String(organizationId)}`, authAPIOptions, otherOptions, { method: \"PUT\" });\n\t/**\n\t* Unselect an organization from the database by its ID.\n\t* @param organizationId - Organization ID.\n\t*/\n\tconst unselectOrganization = async (otherOptions = {}) => await fetcher(`${ORGANIZATION_API_ROUTE}/logout`, authAPIOptions, otherOptions, { method: \"POST\" });\n\treturn {\n\t\tgetOrganizations,\n\t\tgetOrganization,\n\t\taddOrganization,\n\t\taddOrganizationMember,\n\t\tupdateOrganization,\n\t\tupdateOrganizationMembers,\n\t\tupdateOrganizationMembersById,\n\t\tdeleteOrganization,\n\t\tselectOrganization,\n\t\tunselectOrganization\n\t};\n};\n\n//#endregion\nexport { getOrganizationAPI };\n//# sourceMappingURL=organization.mjs.map"],"mappings":";;;;AAIA,MAAM,sBAAsB,iBAAiB,EAAE,EAAE,mBAAmB;CACnE,MAAM,aAAa,gBAAgB,QAAQ,cAAc,eAAe,QAAQ;AAChF,KAAI,CAAC,WAAY,OAAM,IAAI,MAAM,8DAA8D;CAC/F,MAAM,yBAAyB,GAAG,WAAW;;;;;CAK7C,MAAM,mBAAmB,OAAO,SAAS,eAAe,EAAE,KAAK,MAAM,QAAQ,wBAAwB,gBAAgB,cAAc;EAClI,OAAO;EACP,QAAQ;EACR,CAAC;;;;;CAKF,MAAM,kBAAkB,OAAO,gBAAgB,eAAe,EAAE,KAAK,MAAM,QAAQ,GAAG,uBAAuB,GAAG,OAAO,eAAe,IAAI,gBAAgB,aAAa;;;;;CAKvK,MAAM,kBAAkB,OAAO,cAAc,eAAe,EAAE,KAAK,MAAM,QAAQ,wBAAwB,gBAAgB,cAAc;EACtI,QAAQ;EACR,MAAM;EACN,CAAC;;;;;CAKF,MAAM,qBAAqB,OAAO,cAAc,eAAe,EAAE,KAAK,QAAQ,wBAAwB,gBAAgB,cAAc;EACnI,QAAQ;EACR,MAAM;EACN,CAAC;;;;;CAKF,MAAM,4BAA4B,OAAO,MAAM,eAAe,EAAE,KAAK,QAAQ,GAAG,uBAAuB,WAAW,gBAAgB,cAAc;EAC/I,QAAQ;EACR;EACA,CAAC;;;;;;CAMF,MAAM,gCAAgC,OAAO,gBAAgB,MAAM,eAAe,EAAE,KAAK,QAAQ,GAAG,uBAAuB,GAAG,eAAe,WAAW,gBAAgB,cAAc;EACrL,QAAQ;EACR;EACA,CAAC;;;;;CAKF,MAAM,wBAAwB,OAAO,MAAM,eAAe,EAAE,KAAK,QAAQ,GAAG,uBAAuB,UAAU,gBAAgB,cAAc;EAC1I,QAAQ;EACR;EACA,CAAC;;;;;CAKF,MAAM,qBAAqB,OAAO,eAAe,EAAE,KAAK,MAAM,QAAQ,wBAAwB,gBAAgB,cAAc,EAAE,QAAQ,UAAU,CAAC;;;;;CAKjJ,MAAM,qBAAqB,OAAO,gBAAgB,eAAe,EAAE,KAAK,MAAM,QAAQ,GAAG,uBAAuB,GAAG,OAAO,eAAe,IAAI,gBAAgB,cAAc,EAAE,QAAQ,OAAO,CAAC;;;;;CAK7L,MAAM,uBAAuB,OAAO,eAAe,EAAE,KAAK,MAAM,QAAQ,GAAG,uBAAuB,UAAU,gBAAgB,cAAc,EAAE,QAAQ,QAAQ,CAAC;AAC7J,QAAO;EACN;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA"}
|