@intlayer/api 9.5.0 → 9.5.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/dist/types/apps/backend/dist/types/controllers/ai.controller.d.ts +78 -0
- package/dist/types/apps/backend/dist/types/controllers/ai.controller.d.ts.map +1 -0
- package/dist/types/apps/backend/dist/types/controllers/analytics.controller.d.ts +31 -0
- package/dist/types/apps/backend/dist/types/controllers/analytics.controller.d.ts.map +1 -0
- package/dist/types/apps/backend/dist/types/controllers/asset.controller.d.ts +12 -0
- package/dist/types/apps/backend/dist/types/controllers/asset.controller.d.ts.map +1 -0
- package/dist/types/apps/backend/dist/types/controllers/audit.controller.d.ts +1 -0
- package/dist/types/apps/backend/dist/types/controllers/bitbucket.controller.d.ts +1 -0
- package/dist/types/apps/backend/dist/types/controllers/cliSessionToken.controller.d.ts +14 -0
- package/dist/types/apps/backend/dist/types/controllers/cliSessionToken.controller.d.ts.map +1 -0
- package/dist/types/apps/backend/dist/types/controllers/dictionary.controller.d.ts +62 -0
- package/dist/types/apps/backend/dist/types/controllers/dictionary.controller.d.ts.map +1 -0
- package/dist/types/apps/backend/dist/types/controllers/environment.controller.d.ts +26 -0
- package/dist/types/apps/backend/dist/types/controllers/environment.controller.d.ts.map +1 -0
- package/dist/types/apps/backend/dist/types/controllers/eventListener.controller.d.ts +2 -0
- package/dist/types/apps/backend/dist/types/controllers/github.controller.d.ts +2 -0
- package/dist/types/apps/backend/dist/types/controllers/gitlab.controller.d.ts +1 -0
- package/dist/types/apps/backend/dist/types/controllers/newsletter.controller.d.ts +16 -0
- package/dist/types/apps/backend/dist/types/controllers/newsletter.controller.d.ts.map +1 -0
- package/dist/types/apps/backend/dist/types/controllers/oAuth2.controller.d.ts +7 -0
- package/dist/types/apps/backend/dist/types/controllers/oAuth2.controller.d.ts.map +1 -0
- package/dist/types/apps/backend/dist/types/controllers/organization.controller.d.ts +38 -0
- package/dist/types/apps/backend/dist/types/controllers/organization.controller.d.ts.map +1 -0
- package/dist/types/apps/backend/dist/types/controllers/project.controller.d.ts +50 -0
- package/dist/types/apps/backend/dist/types/controllers/project.controller.d.ts.map +1 -0
- package/dist/types/apps/backend/dist/types/controllers/projectAccessKey.controller.d.ts +17 -0
- package/dist/types/apps/backend/dist/types/controllers/projectAccessKey.controller.d.ts.map +1 -0
- package/dist/types/apps/backend/dist/types/controllers/projectMemberAccess.controller.d.ts +13 -0
- package/dist/types/apps/backend/dist/types/controllers/projectMemberAccess.controller.d.ts.map +1 -0
- package/dist/types/apps/backend/dist/types/controllers/publicDictionary.controller.d.ts +2 -0
- package/dist/types/apps/backend/dist/types/controllers/publicToken.controller.d.ts +1 -0
- package/dist/types/apps/backend/dist/types/controllers/recursiveAudit.controller.d.ts +31 -0
- package/dist/types/apps/backend/dist/types/controllers/recursiveAudit.controller.d.ts.map +1 -0
- package/dist/types/apps/backend/dist/types/controllers/reviewer.controller.d.ts +69 -0
- package/dist/types/apps/backend/dist/types/controllers/reviewer.controller.d.ts.map +1 -0
- package/dist/types/apps/backend/dist/types/controllers/searchDoc.controller.d.ts +19 -0
- package/dist/types/apps/backend/dist/types/controllers/searchDoc.controller.d.ts.map +1 -0
- package/dist/types/apps/backend/dist/types/controllers/showcaseProject.controller.d.ts +50 -0
- package/dist/types/apps/backend/dist/types/controllers/showcaseProject.controller.d.ts.map +1 -0
- package/dist/types/apps/backend/dist/types/controllers/stripe.controller.d.ts +91 -0
- package/dist/types/apps/backend/dist/types/controllers/stripe.controller.d.ts.map +1 -0
- package/dist/types/apps/backend/dist/types/controllers/tag.controller.d.ts +22 -0
- package/dist/types/apps/backend/dist/types/controllers/tag.controller.d.ts.map +1 -0
- package/dist/types/apps/backend/dist/types/controllers/translation.controller.d.ts +15 -0
- package/dist/types/apps/backend/dist/types/controllers/translation.controller.d.ts.map +1 -0
- package/dist/types/apps/backend/dist/types/controllers/user.controller.d.ts +30 -0
- package/dist/types/apps/backend/dist/types/controllers/user.controller.d.ts.map +1 -0
- package/dist/types/apps/backend/dist/types/export.d.ts +67 -0
- package/dist/types/apps/backend/dist/types/routes/ai.routes.d.ts +1 -0
- package/dist/types/apps/backend/dist/types/routes/analytics.routes.d.ts +1 -0
- package/dist/types/apps/backend/dist/types/routes/asset.routes.d.ts +1 -0
- package/dist/types/apps/backend/dist/types/routes/audit.routes.d.ts +1 -0
- package/dist/types/apps/backend/dist/types/routes/bitbucket.routes.d.ts +1 -0
- package/dist/types/apps/backend/dist/types/routes/dictionary.routes.d.ts +1 -0
- package/dist/types/apps/backend/dist/types/routes/environment.routes.d.ts +1 -0
- package/dist/types/apps/backend/dist/types/routes/github.routes.d.ts +1 -0
- package/dist/types/apps/backend/dist/types/routes/gitlab.routes.d.ts +1 -0
- package/dist/types/apps/backend/dist/types/routes/newsletter.routes.d.ts +1 -0
- package/dist/types/apps/backend/dist/types/routes/organization.routes.d.ts +1 -0
- package/dist/types/apps/backend/dist/types/routes/project.routes.d.ts +1 -0
- package/dist/types/apps/backend/dist/types/routes/reviewer.routes.d.ts +1 -0
- package/dist/types/apps/backend/dist/types/routes/showcaseProject.routes.d.ts +1 -0
- package/dist/types/apps/backend/dist/types/routes/stripe.routes.d.ts +1 -0
- package/dist/types/apps/backend/dist/types/routes/translate.routes.d.ts +1 -0
- package/dist/types/apps/backend/dist/types/routes/user.routes.d.ts +1 -0
- package/dist/types/apps/backend/dist/types/services/audit/types.d.ts +52 -0
- package/dist/types/apps/backend/dist/types/services/audit/types.d.ts.map +1 -0
- package/dist/types/apps/backend/dist/types/services/ci.service.d.ts +2 -0
- package/dist/types/apps/backend/dist/types/services/github.service.d.ts +2 -0
- package/dist/types/apps/backend/dist/types/services/subscription.service.d.ts +14 -0
- package/dist/types/apps/backend/dist/types/services/subscription.service.d.ts.map +1 -0
- package/dist/types/apps/backend/dist/types/types/affiliate.types.d.ts +40 -0
- package/dist/types/apps/backend/dist/types/types/affiliate.types.d.ts.map +1 -0
- package/dist/types/apps/backend/dist/types/types/affiliateInvitation.types.d.ts +25 -0
- package/dist/types/apps/backend/dist/types/types/affiliateInvitation.types.d.ts.map +1 -0
- package/dist/types/apps/backend/dist/types/types/aiStats.types.d.ts +35 -0
- package/dist/types/apps/backend/dist/types/types/aiStats.types.d.ts.map +1 -0
- package/dist/types/apps/backend/dist/types/types/analytics.types.d.ts +128 -0
- package/dist/types/apps/backend/dist/types/types/analytics.types.d.ts.map +1 -0
- package/dist/types/apps/backend/dist/types/types/asset.types.d.ts +30 -0
- package/dist/types/apps/backend/dist/types/types/asset.types.d.ts.map +1 -0
- package/dist/types/apps/backend/dist/types/types/dictionary.types.d.ts +67 -0
- package/dist/types/apps/backend/dist/types/types/dictionary.types.d.ts.map +1 -0
- package/dist/types/apps/backend/dist/types/types/discussion.types.d.ts +41 -0
- package/dist/types/apps/backend/dist/types/types/discussion.types.d.ts.map +1 -0
- package/dist/types/apps/backend/dist/types/types/oAuth2.types.d.ts +14 -0
- package/dist/types/apps/backend/dist/types/types/oAuth2.types.d.ts.map +1 -0
- package/dist/types/apps/backend/dist/types/types/organization.types.d.ts +105 -0
- package/dist/types/apps/backend/dist/types/types/organization.types.d.ts.map +1 -0
- package/dist/types/apps/backend/dist/types/types/plan.types.d.ts +22 -0
- package/dist/types/apps/backend/dist/types/types/plan.types.d.ts.map +1 -0
- package/dist/types/apps/backend/dist/types/types/project.types.d.ts +127 -0
- package/dist/types/apps/backend/dist/types/types/project.types.d.ts.map +1 -0
- package/dist/types/apps/backend/dist/types/types/projectInsights.types.d.ts +79 -0
- package/dist/types/apps/backend/dist/types/types/projectInsights.types.d.ts.map +1 -0
- package/dist/types/apps/backend/dist/types/types/promoCode.types.d.ts +25 -0
- package/dist/types/apps/backend/dist/types/types/promoCode.types.d.ts.map +1 -0
- package/dist/types/apps/backend/dist/types/types/reviewer.types.d.ts +60 -0
- package/dist/types/apps/backend/dist/types/types/reviewer.types.d.ts.map +1 -0
- package/dist/types/apps/backend/dist/types/types/session.types.d.ts +8 -0
- package/dist/types/apps/backend/dist/types/types/showcaseProject.types.d.ts +57 -0
- package/dist/types/apps/backend/dist/types/types/showcaseProject.types.d.ts.map +1 -0
- package/dist/types/apps/backend/dist/types/types/tag.types.d.ts +30 -0
- package/dist/types/apps/backend/dist/types/types/tag.types.d.ts.map +1 -0
- package/dist/types/apps/backend/dist/types/types/user.types.d.ts +31 -0
- package/dist/types/apps/backend/dist/types/types/user.types.d.ts.map +1 -0
- package/dist/types/apps/backend/dist/types/utils/AI/askDocQuestion/askDocQuestion.d.ts +8 -0
- package/dist/types/apps/backend/dist/types/utils/AI/askDocQuestion/askDocQuestion.d.ts.map +1 -0
- package/dist/types/apps/backend/dist/types/utils/AI/auditDictionary/index.d.ts +14 -0
- package/dist/types/apps/backend/dist/types/utils/AI/auditDictionary/index.d.ts.map +1 -0
- package/dist/types/apps/backend/dist/types/utils/AI/auditDictionaryField/index.d.ts +11 -0
- package/dist/types/apps/backend/dist/types/utils/AI/auditDictionaryField/index.d.ts.map +1 -0
- package/dist/types/apps/backend/dist/types/utils/AI/auditDictionaryMetadata/index.d.ts +4 -0
- package/dist/types/apps/backend/dist/types/utils/AI/auditTag/index.d.ts +10 -0
- package/dist/types/apps/backend/dist/types/utils/AI/auditTag/index.d.ts.map +1 -0
- package/dist/types/apps/backend/dist/types/utils/AI/chat/index.d.ts +16 -0
- package/dist/types/apps/backend/dist/types/utils/AI/chat/index.d.ts.map +1 -0
- package/dist/types/apps/backend/dist/types/utils/AI/customQuery/index.d.ts +11 -0
- package/dist/types/apps/backend/dist/types/utils/AI/customQuery/index.d.ts.map +1 -0
- package/dist/types/apps/backend/dist/types/utils/AI/translateJSON/index.d.ts +20 -0
- package/dist/types/apps/backend/dist/types/utils/AI/translateJSON/index.d.ts.map +1 -0
- package/dist/types/apps/backend/dist/types/utils/auth/getAuth.d.ts +3 -0
- package/dist/types/apps/backend/dist/types/utils/filtersAndPagination/getDictionaryFiltersAndPagination.d.ts +42 -0
- package/dist/types/apps/backend/dist/types/utils/filtersAndPagination/getDictionaryFiltersAndPagination.d.ts.map +1 -0
- package/dist/types/apps/backend/dist/types/utils/filtersAndPagination/getDiscussionFiltersAndPagination.d.ts +20 -0
- package/dist/types/apps/backend/dist/types/utils/filtersAndPagination/getDiscussionFiltersAndPagination.d.ts.map +1 -0
- package/dist/types/apps/backend/dist/types/utils/filtersAndPagination/getFiltersAndPaginationFromBody.d.ts +11 -0
- package/dist/types/apps/backend/dist/types/utils/filtersAndPagination/getFiltersAndPaginationFromBody.d.ts.map +1 -0
- package/dist/types/apps/backend/dist/types/utils/filtersAndPagination/getOrganizationFiltersAndPagination.d.ts +28 -0
- package/dist/types/apps/backend/dist/types/utils/filtersAndPagination/getOrganizationFiltersAndPagination.d.ts.map +1 -0
- package/dist/types/apps/backend/dist/types/utils/filtersAndPagination/getProjectFiltersAndPagination.d.ts +21 -0
- package/dist/types/apps/backend/dist/types/utils/filtersAndPagination/getProjectFiltersAndPagination.d.ts.map +1 -0
- package/dist/types/apps/backend/dist/types/utils/filtersAndPagination/getTagFiltersAndPagination.d.ts +19 -0
- package/dist/types/apps/backend/dist/types/utils/filtersAndPagination/getTagFiltersAndPagination.d.ts.map +1 -0
- package/dist/types/apps/backend/dist/types/utils/filtersAndPagination/getUserFiltersAndPagination.d.ts +23 -0
- package/dist/types/apps/backend/dist/types/utils/filtersAndPagination/getUserFiltersAndPagination.d.ts.map +1 -0
- package/dist/types/apps/backend/dist/types/utils/httpStatusCodes.d.ts +408 -0
- package/dist/types/apps/backend/dist/types/utils/httpStatusCodes.d.ts.map +1 -0
- package/dist/types/apps/backend/dist/types/utils/mongoDB/types.d.ts +9 -0
- package/dist/types/apps/backend/dist/types/utils/mongoDB/types.d.ts.map +1 -0
- package/dist/types/apps/backend/dist/types/utils/permissions.d.ts +7 -0
- package/dist/types/apps/backend/dist/types/utils/responseData.d.ts +25 -0
- package/dist/types/apps/backend/dist/types/utils/responseData.d.ts.map +1 -0
- package/dist/types/distantDictionary/fetchDistantDictionaries.d.ts +2 -1
- package/dist/types/distantDictionary/fetchDistantDictionaries.d.ts.map +1 -1
- package/dist/types/distantDictionary/fetchDistantDictionary.d.ts +2 -1
- package/dist/types/distantDictionary/fetchDistantDictionary.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/ai.d.ts +3 -1
- package/dist/types/getIntlayerAPI/ai.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/analytics.d.ts +3 -1
- package/dist/types/getIntlayerAPI/analytics.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/asset.d.ts +2 -0
- package/dist/types/getIntlayerAPI/asset.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/audit.d.ts +3 -1
- package/dist/types/getIntlayerAPI/audit.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/dictionary.d.ts +2 -1
- package/dist/types/getIntlayerAPI/dictionary.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/editor.d.ts +3 -3
- package/dist/types/getIntlayerAPI/environment.d.ts +2 -1
- package/dist/types/getIntlayerAPI/environment.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/newsletter.d.ts +2 -1
- package/dist/types/getIntlayerAPI/newsletter.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/oAuth.d.ts +3 -0
- package/dist/types/getIntlayerAPI/oAuth.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/organization.d.ts +2 -1
- package/dist/types/getIntlayerAPI/organization.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/project.d.ts +5 -1
- package/dist/types/getIntlayerAPI/project.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/reviewer.d.ts +636 -31
- package/dist/types/getIntlayerAPI/reviewer.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/search.d.ts +2 -1
- package/dist/types/getIntlayerAPI/search.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/showcaseProject.d.ts +2 -1
- package/dist/types/getIntlayerAPI/showcaseProject.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/status.d.ts +2 -0
- package/dist/types/getIntlayerAPI/status.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/stripe.d.ts +2 -1
- package/dist/types/getIntlayerAPI/stripe.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/tag.d.ts +2 -1
- package/dist/types/getIntlayerAPI/tag.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/translate.d.ts +2 -1
- package/dist/types/getIntlayerAPI/translate.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/user.d.ts +7 -3
- package/dist/types/getIntlayerAPI/user.d.ts.map +1 -1
- package/dist/types/index.d.ts +9 -4
- package/dist/types/packages/@intlayer/ai/dist/types/aiSdk.d.ts +119 -0
- package/dist/types/packages/@intlayer/ai/dist/types/aiSdk.d.ts.map +1 -0
- package/dist/types/packages/@intlayer/ai/dist/types/auditDictionaryMetadata/index.d.ts +12 -0
- package/dist/types/packages/@intlayer/ai/dist/types/auditDictionaryMetadata/index.d.ts.map +1 -0
- package/dist/types/packages/@intlayer/ai/dist/types/customQuery.d.ts +9 -0
- package/dist/types/packages/@intlayer/ai/dist/types/customQuery.d.ts.map +1 -0
- package/dist/types/packages/@intlayer/ai/dist/types/index.d.ts +30 -0
- package/dist/types/packages/@intlayer/ai/dist/types/index.d.ts.map +1 -0
- package/dist/types/packages/@intlayer/ai/dist/types/translateJSON/index.d.ts +9 -0
- package/dist/types/packages/@intlayer/ai/dist/types/translateJSON/index.d.ts.map +1 -0
- package/dist/types/packages/@intlayer/core/dist/types/dictionaryManipulator/plainDynamicLoader.d.ts +2 -0
- package/dist/types/packages/@intlayer/core/dist/types/dictionaryManipulator/qualifiedDynamicLoader.d.ts +2 -0
- package/dist/types/packages/@intlayer/core/dist/types/formatters/compact.d.ts +1 -0
- package/dist/types/packages/@intlayer/core/dist/types/formatters/currency.d.ts +1 -0
- package/dist/types/packages/@intlayer/core/dist/types/formatters/date.d.ts +1 -0
- package/dist/types/packages/@intlayer/core/dist/types/formatters/index.d.ts +9 -0
- package/dist/types/packages/@intlayer/core/dist/types/formatters/list.d.ts +1 -0
- package/dist/types/packages/@intlayer/core/dist/types/formatters/number.d.ts +1 -0
- package/dist/types/packages/@intlayer/core/dist/types/formatters/percentage.d.ts +1 -0
- package/dist/types/packages/@intlayer/core/dist/types/formatters/relativeTime.d.ts +1 -0
- package/dist/types/packages/@intlayer/core/dist/types/formatters/units.d.ts +1 -0
- package/dist/types/packages/@intlayer/core/dist/types/interpreter/dictionaryTransformCache.d.ts +4 -0
- package/dist/types/packages/@intlayer/core/dist/types/interpreter/getCondition.d.ts +2 -0
- package/dist/types/packages/@intlayer/core/dist/types/interpreter/getContent/deepTransform.d.ts +1 -0
- package/dist/types/packages/@intlayer/core/dist/types/interpreter/getContent/getContent.d.ts +3 -0
- package/dist/types/packages/@intlayer/core/dist/types/interpreter/getContent/index.d.ts +3 -0
- package/dist/types/packages/@intlayer/core/dist/types/interpreter/getContent/plugins.d.ts +7 -0
- package/dist/types/packages/@intlayer/core/dist/types/interpreter/getDictionary.d.ts +4 -0
- package/dist/types/packages/@intlayer/core/dist/types/interpreter/getDictionaryAsync.d.ts +6 -0
- package/dist/types/packages/@intlayer/core/dist/types/interpreter/getEnumeration.d.ts +2 -0
- package/dist/types/packages/@intlayer/core/dist/types/interpreter/getGender.d.ts +2 -0
- package/dist/types/packages/@intlayer/core/dist/types/interpreter/getInsertion.d.ts +2 -0
- package/dist/types/packages/@intlayer/core/dist/types/interpreter/getIntlayer.d.ts +4 -0
- package/dist/types/packages/@intlayer/core/dist/types/interpreter/getIntlayerAsync.d.ts +4 -0
- package/dist/types/packages/@intlayer/core/dist/types/interpreter/getNesting.d.ts +6 -0
- package/dist/types/packages/@intlayer/core/dist/types/interpreter/getPlural.d.ts +3 -0
- package/dist/types/packages/@intlayer/core/dist/types/interpreter/getSelect.d.ts +2 -0
- package/dist/types/packages/@intlayer/core/dist/types/interpreter/getTranslation.d.ts +1 -0
- package/dist/types/packages/@intlayer/core/dist/types/interpreter/index.d.ts +18 -0
- package/dist/types/packages/@intlayer/core/dist/types/interpreter/interpolableNode.d.ts +2 -0
- package/dist/types/packages/@intlayer/core/dist/types/localization/comparePaths.d.ts +1 -0
- package/dist/types/packages/@intlayer/core/dist/types/localization/domainUtils.d.ts +2 -0
- package/dist/types/packages/@intlayer/core/dist/types/localization/generateSitemap.d.ts +2 -0
- package/dist/types/packages/@intlayer/core/dist/types/localization/getBrowserLocale.d.ts +1 -0
- package/dist/types/packages/@intlayer/core/dist/types/localization/getCanonicalPath.d.ts +2 -0
- package/dist/types/packages/@intlayer/core/dist/types/localization/getHTMLTextDir.d.ts +1 -0
- package/dist/types/packages/@intlayer/core/dist/types/localization/getLocale.d.ts +1 -0
- package/dist/types/packages/@intlayer/core/dist/types/localization/getLocaleFromPath.d.ts +2 -0
- package/dist/types/packages/@intlayer/core/dist/types/localization/getLocaleLang.d.ts +1 -0
- package/dist/types/packages/@intlayer/core/dist/types/localization/getLocaleName.d.ts +1 -0
- package/dist/types/packages/@intlayer/core/dist/types/localization/getLocalizedPath.d.ts +2 -0
- package/dist/types/packages/@intlayer/core/dist/types/localization/getLocalizedUrl.d.ts +2 -0
- package/dist/types/packages/@intlayer/core/dist/types/localization/getMultilingualUrls.d.ts +2 -0
- package/dist/types/packages/@intlayer/core/dist/types/localization/getPathWithoutLocale.d.ts +1 -0
- package/dist/types/packages/@intlayer/core/dist/types/localization/getPrefix.d.ts +2 -0
- package/dist/types/packages/@intlayer/core/dist/types/localization/index.d.ts +22 -0
- package/dist/types/packages/@intlayer/core/dist/types/localization/localeDetector.d.ts +2 -0
- package/dist/types/packages/@intlayer/core/dist/types/localization/localeMapper.d.ts +1 -0
- package/dist/types/packages/@intlayer/core/dist/types/localization/localeResolver.d.ts +1 -0
- package/dist/types/packages/@intlayer/core/dist/types/localization/resolveBrowserLocale.d.ts +2 -0
- package/dist/types/packages/@intlayer/core/dist/types/localization/rewriteMatch.d.ts +1 -0
- package/dist/types/packages/@intlayer/core/dist/types/localization/rewriteUtils.d.ts +2 -0
- package/dist/types/packages/@intlayer/core/dist/types/localization/validatePrefix.d.ts +2 -0
- package/dist/types/packages/@intlayer/core/dist/types/markdown/index.d.ts +2 -0
- package/dist/types/packages/@intlayer/core/dist/types/messageFormat/ICU.d.ts +1 -0
- package/dist/types/packages/@intlayer/core/dist/types/messageFormat/i18next.d.ts +2 -0
- package/dist/types/packages/@intlayer/core/dist/types/messageFormat/index.d.ts +5 -0
- package/dist/types/packages/@intlayer/core/dist/types/messageFormat/po.d.ts +2 -0
- package/dist/types/packages/@intlayer/core/dist/types/messageFormat/resolveMessage.d.ts +1 -0
- package/dist/types/packages/@intlayer/core/dist/types/messageFormat/vue-i18n.d.ts +2 -0
- package/dist/types/packages/@intlayer/core/dist/types/transpiler/condition/condition.d.ts +1 -0
- package/dist/types/packages/@intlayer/core/dist/types/transpiler/condition/index.d.ts +1 -0
- package/dist/types/packages/@intlayer/core/dist/types/transpiler/enumeration/enumeration.d.ts +1 -0
- package/dist/types/packages/@intlayer/core/dist/types/transpiler/enumeration/index.d.ts +1 -0
- package/dist/types/packages/@intlayer/core/dist/types/transpiler/file/file.d.ts +1 -0
- package/dist/types/packages/@intlayer/core/dist/types/transpiler/file/index.d.ts +1 -0
- package/dist/types/packages/@intlayer/core/dist/types/transpiler/gender/gender.d.ts +1 -0
- package/dist/types/packages/@intlayer/core/dist/types/transpiler/gender/index.d.ts +1 -0
- package/dist/types/packages/@intlayer/core/dist/types/transpiler/html/html.d.ts +1 -0
- package/dist/types/packages/@intlayer/core/dist/types/transpiler/html/index.d.ts +1 -0
- package/dist/types/packages/@intlayer/core/dist/types/transpiler/index.d.ts +22 -0
- package/dist/types/packages/@intlayer/core/dist/types/transpiler/insertion/index.d.ts +1 -0
- package/dist/types/packages/@intlayer/core/dist/types/transpiler/insertion/insertion.d.ts +1 -0
- package/dist/types/packages/@intlayer/core/dist/types/transpiler/markdown/index.d.ts +1 -0
- package/dist/types/packages/@intlayer/core/dist/types/transpiler/markdown/markdown.d.ts +1 -0
- package/dist/types/packages/@intlayer/core/dist/types/transpiler/nesting/index.d.ts +1 -0
- package/dist/types/packages/@intlayer/core/dist/types/transpiler/nesting/nesting.d.ts +4 -0
- package/dist/types/packages/@intlayer/core/dist/types/transpiler/plural/index.d.ts +1 -0
- package/dist/types/packages/@intlayer/core/dist/types/transpiler/plural/plural.d.ts +1 -0
- package/dist/types/packages/@intlayer/core/dist/types/transpiler/select/index.d.ts +1 -0
- package/dist/types/packages/@intlayer/core/dist/types/transpiler/select/select.d.ts +1 -0
- package/dist/types/packages/@intlayer/core/dist/types/transpiler/translation/index.d.ts +1 -0
- package/dist/types/packages/@intlayer/core/dist/types/transpiler/translation/translation.d.ts +2 -0
- package/dist/types/packages/@intlayer/core/dist/types/utils/index.d.ts +3 -0
- package/dist/types/packages/@intlayer/core/dist/types/utils/intl.d.ts +1 -0
- package/dist/types/packages/@intlayer/core/dist/types/utils/isSameKeyPath.d.ts +1 -0
- package/dist/types/packages/@intlayer/core/dist/types/utils/localeStorage.d.ts +2 -0
- package/dist/types/packages/@intlayer/engine/dist/types/build.d.ts +27 -0
- package/dist/types/packages/@intlayer/engine/dist/types/buildIntlayerDictionary/buildIntlayerDictionary.d.ts +6 -0
- package/dist/types/packages/@intlayer/engine/dist/types/buildIntlayerDictionary/index.d.ts +2 -0
- package/dist/types/packages/@intlayer/engine/dist/types/buildIntlayerDictionary/processContentDeclaration.d.ts +2 -0
- package/dist/types/packages/@intlayer/engine/dist/types/buildIntlayerDictionary/writeDynamicDictionary.d.ts +4 -0
- package/dist/types/packages/@intlayer/engine/dist/types/buildIntlayerDictionary/writeMergedDictionary.d.ts +3 -0
- package/dist/types/packages/@intlayer/engine/dist/types/buildIntlayerDictionary/writeUnmergedDictionary.d.ts +2 -0
- package/dist/types/packages/@intlayer/engine/dist/types/cleanOutputDir.d.ts +1 -0
- package/dist/types/packages/@intlayer/engine/dist/types/createDictionaryEntryPoint/getBuiltDictionariesPath.d.ts +1 -0
- package/dist/types/packages/@intlayer/engine/dist/types/createDictionaryEntryPoint/getBuiltDynamicDictionariesPath.d.ts +1 -0
- package/dist/types/packages/@intlayer/engine/dist/types/createDictionaryEntryPoint/getBuiltFetchDictionariesPath.d.ts +1 -0
- package/dist/types/packages/@intlayer/engine/dist/types/createDictionaryEntryPoint/getBuiltRemoteDictionariesPath.d.ts +1 -0
- package/dist/types/packages/@intlayer/engine/dist/types/createDictionaryEntryPoint/getBuiltUnmergedDictionariesPath.d.ts +1 -0
- package/dist/types/packages/@intlayer/engine/dist/types/createDictionaryEntryPoint/index.d.ts +5 -0
- package/dist/types/packages/@intlayer/engine/dist/types/createType/createModuleAugmentation.d.ts +1 -0
- package/dist/types/packages/@intlayer/engine/dist/types/createType/createType.d.ts +2 -0
- package/dist/types/packages/@intlayer/engine/dist/types/createType/index.d.ts +2 -0
- package/dist/types/packages/@intlayer/engine/dist/types/formatDictionary.d.ts +3 -0
- package/dist/types/packages/@intlayer/engine/dist/types/intlayer/dist/types/index.d.ts +11 -0
- package/dist/types/packages/@intlayer/engine/dist/types/loadDictionaries/index.d.ts +4 -0
- package/dist/types/packages/@intlayer/engine/dist/types/loadDictionaries/loadContentDeclaration.d.ts +3 -0
- package/dist/types/packages/@intlayer/engine/dist/types/loadDictionaries/loadDictionaries.d.ts +2 -0
- package/dist/types/packages/@intlayer/engine/dist/types/loadDictionaries/loadLocalDictionaries.d.ts +2 -0
- package/dist/types/packages/@intlayer/engine/dist/types/loadDictionaries/loadRemoteDictionaries.d.ts +3 -0
- package/dist/types/packages/@intlayer/engine/dist/types/prepareIntlayer.d.ts +1 -0
- package/dist/types/packages/@intlayer/engine/dist/types/writeConfiguration/index.d.ts +1 -0
- package/dist/types/packages/@intlayer/engine/dist/types/writeContentDeclaration/dictionaryStatus.d.ts +6 -0
- package/dist/types/packages/@intlayer/engine/dist/types/writeContentDeclaration/dictionaryStatus.d.ts.map +1 -0
- package/dist/types/packages/@intlayer/engine/dist/types/writeContentDeclaration/index.d.ts +4 -0
- package/dist/types/packages/@intlayer/engine/dist/types/writeContentDeclaration/transformJSFile.d.ts +2 -0
- package/dist/types/packages/@intlayer/engine/dist/types/writeContentDeclaration/writeContentDeclaration.d.ts +4 -0
- package/dist/types/packages/@intlayer/engine/dist/types/writeContentDeclaration/writeJSFile.d.ts +2 -0
- package/dist/types/packages/@intlayer/unmerged-dictionaries-entry/dist/types/index.d.ts +8 -0
- package/dist/types/packages/@intlayer/unmerged-dictionaries-entry/dist/types/index.d.ts.map +1 -0
- package/dist/types/packages/intlayer/dist/types/index.d.ts +13 -0
- package/dist/types/packages/intlayer-editor/server/dist/controllers/configuration.controller.d.ts +8 -0
- package/dist/types/packages/intlayer-editor/server/dist/controllers/configuration.controller.d.ts.map +1 -0
- package/dist/types/packages/intlayer-editor/server/dist/controllers/dictionary.controller.d.ts +19 -0
- package/dist/types/packages/intlayer-editor/server/dist/controllers/dictionary.controller.d.ts.map +1 -0
- package/dist/types/packages/intlayer-editor/server/dist/export.d.ts +3 -0
- package/dist/types/packages/intlayer-editor/server/dist/utils/httpStatusCodes.d.ts +408 -0
- package/dist/types/packages/intlayer-editor/server/dist/utils/httpStatusCodes.d.ts.map +1 -0
- package/dist/types/packages/intlayer-editor/server/dist/utils/responseData.d.ts +18 -0
- package/dist/types/packages/intlayer-editor/server/dist/utils/responseData.d.ts.map +1 -0
- package/dist/types/public/createPublicClient.d.ts +2 -1
- package/dist/types/public/createPublicClient.d.ts.map +1 -1
- package/dist/types/types.d.ts +2 -1
- package/package.json +4 -4
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import "../utils/mongoDB/types.js";
|
|
2
|
+
import { Document, Types } from "/Users/aymericpineau/Documents/intlayer_/node_modules/.bun/mongoose@9.10.0+7f93886e57f5bac2/node_modules/mongoose/index.js";
|
|
3
|
+
//#region ../../../apps/backend/dist/types/types/analytics.types.d.ts
|
|
4
|
+
//#region src/types/analytics.types.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* The kind of signal an ingested analytics event carries. Mirrors the wire
|
|
7
|
+
* contract emitted by `@intlayer/analytics`.
|
|
8
|
+
*/
|
|
9
|
+
export type AnalyticsEventType = 'page_view' | 'content_exposure' | 'conversion';
|
|
10
|
+
/**
|
|
11
|
+
* A single event as sent by the client SDK (short keys keep the payload small).
|
|
12
|
+
*/
|
|
13
|
+
export type IncomingAnalyticsEvent = {
|
|
14
|
+
type: AnalyticsEventType;
|
|
15
|
+
/** Client timestamp (ms since epoch). */
|
|
16
|
+
t: number;
|
|
17
|
+
/** Current locale being displayed. */
|
|
18
|
+
locale: string;
|
|
19
|
+
/** Page pathname. */
|
|
20
|
+
url: string;
|
|
21
|
+
/** Referrer host (page views). */
|
|
22
|
+
ref?: string;
|
|
23
|
+
/** Dictionary key (content exposures). */
|
|
24
|
+
dictionaryKey?: string;
|
|
25
|
+
/** Serialized key path (content exposures). */
|
|
26
|
+
keyPath?: string;
|
|
27
|
+
/** Interpreter node type (content exposures). */
|
|
28
|
+
nodeType?: string;
|
|
29
|
+
/** A/B variant (content exposures + conversions). */
|
|
30
|
+
variant?: string;
|
|
31
|
+
/** Coalesced exposure count. */
|
|
32
|
+
count?: number;
|
|
33
|
+
/** Experiment key (conversions). */
|
|
34
|
+
experimentKey?: string;
|
|
35
|
+
/** Conversion goal name. */
|
|
36
|
+
goal?: string;
|
|
37
|
+
/** Optional numeric conversion value. */
|
|
38
|
+
value?: number;
|
|
39
|
+
};
|
|
40
|
+
/** Selectable rolling windows for the audience report. */
|
|
41
|
+
export type AudienceRange = '1h' | '24h' | '7d' | '30d' | '90d' | '6mo' | '1y' | '3y';
|
|
42
|
+
/**
|
|
43
|
+
* Bucket size of the evolution series. Derived from the requested range so a
|
|
44
|
+
* three-year window does not return a thousand daily points.
|
|
45
|
+
*/
|
|
46
|
+
export type AudienceGranularity = 'minute' | 'hour' | 'day' | 'week' | 'month';
|
|
47
|
+
/** One point of the audience evolution series. */
|
|
48
|
+
export type AudienceSeriesPoint = {
|
|
49
|
+
/**
|
|
50
|
+
* UTC start of the bucket. `YYYY-MM-DDTHH:mm` for the `minute` and `hour`
|
|
51
|
+
* granularities, `YYYY-MM-DD` for `day`, `week`, and `month`.
|
|
52
|
+
*/
|
|
53
|
+
bucket: string;
|
|
54
|
+
/** Distinct visitors first seen in this bucket. */
|
|
55
|
+
users: number;
|
|
56
|
+
/** Page views in this bucket. */
|
|
57
|
+
views: number;
|
|
58
|
+
};
|
|
59
|
+
/** A ranked audience breakdown row (by locale, by country, or by page). */
|
|
60
|
+
export type AudienceBreakdownRow = {
|
|
61
|
+
/** The locale code, country code, or page pathname. */
|
|
62
|
+
key: string;
|
|
63
|
+
/** Distinct visitors for this bucket. */
|
|
64
|
+
users: number;
|
|
65
|
+
/** Page views for this bucket. */
|
|
66
|
+
views: number;
|
|
67
|
+
};
|
|
68
|
+
/** The full audience report backing the dashboard overview. */
|
|
69
|
+
export type AudienceStats = {
|
|
70
|
+
/** Distinct visitors today (UTC). */
|
|
71
|
+
usersToday: number;
|
|
72
|
+
/** Distinct visitors over the last 7 days. */
|
|
73
|
+
usersLast7Days: number;
|
|
74
|
+
/** Distinct visitors over the requested window. */
|
|
75
|
+
usersInRange: number;
|
|
76
|
+
/** Page views over the requested window. */
|
|
77
|
+
viewsInRange: number;
|
|
78
|
+
/** The window this report covers. */
|
|
79
|
+
range: AudienceRange;
|
|
80
|
+
/** Number of hours covered by the window. */
|
|
81
|
+
rangeHours: number;
|
|
82
|
+
/** Bucket size of `series`. */
|
|
83
|
+
granularity: AudienceGranularity;
|
|
84
|
+
/** Evolution over the requested window, oldest bucket first. */
|
|
85
|
+
series: AudienceSeriesPoint[];
|
|
86
|
+
/** Most-consulted locales, highest first. */
|
|
87
|
+
byLocale: AudienceBreakdownRow[];
|
|
88
|
+
/** Visitor location breakdown, highest first. */
|
|
89
|
+
byCountry: AudienceBreakdownRow[];
|
|
90
|
+
/**
|
|
91
|
+
* Most-consulted pages, highest first. Keyed by pathname, so a localized
|
|
92
|
+
* route contributes one row per locale prefix (`/en/pricing`, `/fr/pricing`).
|
|
93
|
+
* Visitors are not attributed per page — only `views` is populated.
|
|
94
|
+
*/
|
|
95
|
+
byPage: AudienceBreakdownRow[];
|
|
96
|
+
};
|
|
97
|
+
/** Aggregated page/locale totals for the dashboard overview. */
|
|
98
|
+
export type AnalyticsOverviewRow = {
|
|
99
|
+
url: string;
|
|
100
|
+
locale: string;
|
|
101
|
+
views: number;
|
|
102
|
+
};
|
|
103
|
+
/** Aggregated per-content exposure totals. */
|
|
104
|
+
export type ContentStatRow = {
|
|
105
|
+
dictionaryKey: string;
|
|
106
|
+
keyPath: string;
|
|
107
|
+
locale: string;
|
|
108
|
+
exposures: number;
|
|
109
|
+
};
|
|
110
|
+
/** Per-variant A/B result with significance. */
|
|
111
|
+
export type ExperimentVariantResult = {
|
|
112
|
+
variant: string;
|
|
113
|
+
exposures: number;
|
|
114
|
+
conversions: number;
|
|
115
|
+
conversionRate: number;
|
|
116
|
+
};
|
|
117
|
+
/** Full A/B experiment result set. */
|
|
118
|
+
export type ExperimentResult = {
|
|
119
|
+
experimentKey: string;
|
|
120
|
+
variants: ExperimentVariantResult[];
|
|
121
|
+
/** Two-proportion z-test p-value of the best variant vs. the control. */
|
|
122
|
+
pValue: number | null;
|
|
123
|
+
/** The best-performing variant, when there is enough data to pick one. */
|
|
124
|
+
winner: string | null;
|
|
125
|
+
};
|
|
126
|
+
//#endregion
|
|
127
|
+
//#endregion
|
|
128
|
+
//# sourceMappingURL=analytics.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"analytics.types.d.ts","names":[],"sources":["../../../../../../../../../../apps/backend/dist/types/types/analytics.types.d.ts"],"mappings":";;;;;;;;YAOY;;;;YAIA;EACV,MAAM;;EAEN;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;YAgFU;;;;;YAKA;;YAEA;;;;;EAKV;;EAEA;;EAEA;;;YAGU;;EAEV;;EAEA;;EAEA;;;YAGU;;EAEV;;EAEA;;EAEA;;EAEA;;EAEA,OAAO;;EAEP;;EAEA,aAAa;;EAEb,QAAQ;;EAER,UAAU;;EAEV,WAAW;;;;;;EAMX,QAAQ;;;YAGE;EACV;EACA;EACA;;;YAGU;EACV;EACA;EACA;EACA;;;YAGU;EACV;EACA;EACA;EACA;;;YAGU;EACV;EACA,UAAU;;EAEV;;EAEA"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import "../utils/mongoDB/types.js";
|
|
2
|
+
import { Document, ObjectIdToString, Types } from "/Users/aymericpineau/Documents/intlayer_/node_modules/.bun/mongoose@9.10.0+7f93886e57f5bac2/node_modules/mongoose/index.js";
|
|
3
|
+
//#region ../../../apps/backend/dist/types/types/asset.types.d.ts
|
|
4
|
+
//#region src/types/asset.types.d.ts
|
|
5
|
+
export interface Asset extends Document {
|
|
6
|
+
id: Types.ObjectId;
|
|
7
|
+
/** Project this asset belongs to. */
|
|
8
|
+
projectId: Types.ObjectId;
|
|
9
|
+
/** Original file name as provided by the uploader. */
|
|
10
|
+
originalName: string;
|
|
11
|
+
/** MIME type (e.g. "image/jpeg"). */
|
|
12
|
+
mimeType: string;
|
|
13
|
+
/** File size in bytes. */
|
|
14
|
+
size: number;
|
|
15
|
+
/** S3 object key (used for deletion). */
|
|
16
|
+
s3Key: string;
|
|
17
|
+
/** Publicly accessible CDN URL. */
|
|
18
|
+
publicUrl: string;
|
|
19
|
+
/** Optional alt text for accessibility. */
|
|
20
|
+
alt?: string;
|
|
21
|
+
/** Optional caption displayed below the image. */
|
|
22
|
+
caption?: string;
|
|
23
|
+
/** User who uploaded the asset. */
|
|
24
|
+
uploadedBy: Types.ObjectId;
|
|
25
|
+
createdAt: Date;
|
|
26
|
+
updatedAt: Date;
|
|
27
|
+
}
|
|
28
|
+
export type AssetAPI = ObjectIdToString<Asset>;
|
|
29
|
+
//#endregion
|
|
30
|
+
//# sourceMappingURL=asset.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"asset.types.d.ts","names":[],"sources":["../../../../../../../../../../apps/backend/dist/types/types/asset.types.d.ts"],"mappings":";;;;iBAGiB,cAAc;EAC7B,IAAI,MAAM;;EAEV,WAAW,MAAM;;EAEjB;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA,YAAY,MAAM;EAClB,WAAW;EACX,WAAW;;YAED,WAAW,iBAAiB"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import "../utils/mongoDB/types.js";
|
|
2
|
+
import { User } from "./user.types.js";
|
|
3
|
+
import { Project } from "./project.types.js";
|
|
4
|
+
import { Document, ObjectIdToString, Types } from "/Users/aymericpineau/Documents/intlayer_/node_modules/.bun/mongoose@9.10.0+7f93886e57f5bac2/node_modules/mongoose/index.js";
|
|
5
|
+
import { ContentNode, Dictionary } from "@intlayer/types/dictionary";
|
|
6
|
+
//#region ../../../apps/backend/dist/types/types/dictionary.types.d.ts
|
|
7
|
+
//#region src/types/dictionary.types.d.ts
|
|
8
|
+
/**
|
|
9
|
+
* Qualifier coordinates of a dictionary (collections / variants).
|
|
10
|
+
*
|
|
11
|
+
* Pushed dictionaries are unmerged: sibling declarations sharing a `key` are
|
|
12
|
+
* distinguished by these coordinates. Persisting them lets the build re-merge
|
|
13
|
+
* remote dictionaries into a `QualifiedDictionaryGroup` on pull. A plain
|
|
14
|
+
* dictionary leaves all of them undefined.
|
|
15
|
+
*/
|
|
16
|
+
export type DictionaryQualifiers = {
|
|
17
|
+
/**
|
|
18
|
+
* Variant discriminator — a named string (A/B testing, seasonal banners…) or
|
|
19
|
+
* a structured object (CMS records, user-specific copy…).
|
|
20
|
+
*/
|
|
21
|
+
variant?: string | Record<string, string | number>;
|
|
22
|
+
/** Ordered collection item index. */
|
|
23
|
+
item?: number;
|
|
24
|
+
};
|
|
25
|
+
export type DictionaryCreationData = DictionaryQualifiers & {
|
|
26
|
+
projectIds: (Project['id'] | string)[];
|
|
27
|
+
key: string;
|
|
28
|
+
content?: ContentNode;
|
|
29
|
+
title?: string;
|
|
30
|
+
description?: string;
|
|
31
|
+
priority?: number;
|
|
32
|
+
importMode?: 'static' | 'dynamic' | 'fetch';
|
|
33
|
+
tags?: string[];
|
|
34
|
+
environmentId?: string;
|
|
35
|
+
};
|
|
36
|
+
export type VersionedContentEl = {
|
|
37
|
+
name?: string;
|
|
38
|
+
description?: string;
|
|
39
|
+
content: ContentNode;
|
|
40
|
+
};
|
|
41
|
+
export type VersionedContent = Map<string, VersionedContentEl>;
|
|
42
|
+
export type DictionaryData = DictionaryQualifiers & {
|
|
43
|
+
key: string;
|
|
44
|
+
content: VersionedContent;
|
|
45
|
+
projectIds: (Project['id'] | string)[];
|
|
46
|
+
creatorId: User['id'];
|
|
47
|
+
title?: string;
|
|
48
|
+
description?: string;
|
|
49
|
+
priority?: number;
|
|
50
|
+
importMode?: 'static' | 'dynamic' | 'fetch';
|
|
51
|
+
tags?: string[];
|
|
52
|
+
/** If set, this dictionary belongs to a specific project environment. Null means shared (visible in all envs). */
|
|
53
|
+
environmentId?: Types.ObjectId | string | null;
|
|
54
|
+
};
|
|
55
|
+
type Dictionary$1 = DictionaryData & {
|
|
56
|
+
id: Types.ObjectId;
|
|
57
|
+
createdAt: number;
|
|
58
|
+
updatedAt: number;
|
|
59
|
+
};
|
|
60
|
+
export type DictionaryAPI = ObjectIdToString<Dictionary & {
|
|
61
|
+
projectIds: (Project['id'] | string)[];
|
|
62
|
+
updatedAt: number;
|
|
63
|
+
createdAt: number;
|
|
64
|
+
}>;
|
|
65
|
+
//#endregion
|
|
66
|
+
export { Dictionary$1 as Dictionary };
|
|
67
|
+
//# sourceMappingURL=dictionary.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dictionary.types.d.ts","names":[],"sources":["../../../../../../../../../../apps/backend/dist/types/types/dictionary.types.d.ts"],"mappings":";;;;;;;;;;;;;;;YAcY;;;;;EAKV,mBAAmB;;EAEnB;;YAEU,yBAAyB;EACnC,aAAa;EACb;EACA,UAAU;EACV;EACA;EACA;EACA;EACA;EACA;;YAEU;EACV;EACA;EACA,SAAS;;YAGC,mBAAmB,YAAY;YAC/B,iBAAiB;EAC3B;EACA,SAAS;EACT,aAAa;EACb,WAAW;EACX;EACA;EACA;EACA;EACA;;EAEA,gBAAgB,MAAM;;KAEZ,eAAa;EACvB,IAAI,MAAM;EACV;EACA;;YAEU,gBAAgB,iBAAiB;EAC3C,aAAa;EACb;EACA"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import "../utils/mongoDB/types.js";
|
|
2
|
+
import { Document, ObjectIdToString, Types } from "/Users/aymericpineau/Documents/intlayer_/node_modules/.bun/mongoose@9.10.0+7f93886e57f5bac2/node_modules/mongoose/index.js";
|
|
3
|
+
//#region ../../../apps/backend/dist/types/types/discussion.types.d.ts
|
|
4
|
+
//#region src/types/discussion.types.d.ts
|
|
5
|
+
export interface Message {
|
|
6
|
+
role: 'user' | 'assistant' | 'system';
|
|
7
|
+
content: string;
|
|
8
|
+
relatedFiles?: string[];
|
|
9
|
+
timestamp: Date;
|
|
10
|
+
}
|
|
11
|
+
export type DiscussionType = 'doc' | 'dashboard';
|
|
12
|
+
export interface TokenUsage {
|
|
13
|
+
/** Tokens consumed by the input/prompt. */
|
|
14
|
+
inputTokens: number;
|
|
15
|
+
/** Tokens produced in the model output. */
|
|
16
|
+
outputTokens: number;
|
|
17
|
+
/** Sum of inputTokens and outputTokens. */
|
|
18
|
+
totalTokens: number;
|
|
19
|
+
}
|
|
20
|
+
export interface Discussion extends Document {
|
|
21
|
+
id: Types.ObjectId;
|
|
22
|
+
discussionId: string;
|
|
23
|
+
messages: Message[];
|
|
24
|
+
userId?: Types.ObjectId;
|
|
25
|
+
projectId?: Types.ObjectId;
|
|
26
|
+
organizationId?: Types.ObjectId;
|
|
27
|
+
title?: string;
|
|
28
|
+
type?: DiscussionType;
|
|
29
|
+
isArchived: boolean;
|
|
30
|
+
/** AI model identifier used for the last completion in this discussion. */
|
|
31
|
+
aiModel?: string;
|
|
32
|
+
/** Token consumption recorded for the last AI call in this discussion. */
|
|
33
|
+
tokenUsage?: TokenUsage;
|
|
34
|
+
createdAt: Date;
|
|
35
|
+
updatedAt: Date;
|
|
36
|
+
}
|
|
37
|
+
export type DiscussionAPI = ObjectIdToString<Discussion & {
|
|
38
|
+
numberOfMessages: number;
|
|
39
|
+
}>;
|
|
40
|
+
//#endregion
|
|
41
|
+
//# sourceMappingURL=discussion.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"discussion.types.d.ts","names":[],"sources":["../../../../../../../../../../apps/backend/dist/types/types/discussion.types.d.ts"],"mappings":";;;;iBAGiB;EACf;EACA;EACA;EACA,WAAW;;YAED;iBACK;;EAEf;;EAEA;;EAEA;;iBAEe,mBAAmB;EAClC,IAAI,MAAM;EACV;EACA,UAAU;EACV,SAAS,MAAM;EACf,YAAY,MAAM;EAClB,iBAAiB,MAAM;EACvB;EACA,OAAO;EACP;;EAEA;;EAEA,aAAa;EACb,WAAW;EACX,WAAW;;YAED,gBAAgB,iBAAiB;EAC3C"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { UserAPI } from "./user.types.js";
|
|
2
|
+
import { OrganizationAPI } from "./organization.types.js";
|
|
3
|
+
import { ProjectAPI } from "./project.types.js";
|
|
4
|
+
import { Document } from "/Users/aymericpineau/Documents/intlayer_/node_modules/.bun/mongoose@9.10.0+7f93886e57f5bac2/node_modules/mongoose/index.js";
|
|
5
|
+
import { Token } from "/Users/aymericpineau/Documents/intlayer_/node_modules/.bun/@node-oauth+oauth2-server@5.3.0/node_modules/@node-oauth/oauth2-server/index.js";
|
|
6
|
+
//#region ../../../apps/backend/dist/types/types/oAuth2.types.d.ts
|
|
7
|
+
//#region src/types/oAuth2.types.d.ts
|
|
8
|
+
export type OAuth2Token = Token & {
|
|
9
|
+
organization: OrganizationAPI;
|
|
10
|
+
project: ProjectAPI;
|
|
11
|
+
user: UserAPI;
|
|
12
|
+
};
|
|
13
|
+
//#endregion
|
|
14
|
+
//# sourceMappingURL=oAuth2.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oAuth2.types.d.ts","names":[],"sources":["../../../../../../../../../../apps/backend/dist/types/types/oAuth2.types.d.ts"],"mappings":";;;;;;;YAMY,cAAc;EACxB,cAAc;EACd,SAAS;EACT,MAAM"}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import "../utils/mongoDB/types.js";
|
|
2
|
+
import { User } from "./user.types.js";
|
|
3
|
+
import { Plan } from "./plan.types.js";
|
|
4
|
+
import { Document, ObjectIdToString, Types } from "/Users/aymericpineau/Documents/intlayer_/node_modules/.bun/mongoose@9.10.0+7f93886e57f5bac2/node_modules/mongoose/index.js";
|
|
5
|
+
//#region ../../../apps/backend/dist/types/types/organization.types.d.ts
|
|
6
|
+
//#region src/types/organization.types.d.ts
|
|
7
|
+
/**
|
|
8
|
+
* Note: SSO configuration is managed entirely by better-auth's SSO plugin.
|
|
9
|
+
* The organization only stores a reference to whether SSO is enabled
|
|
10
|
+
* and the domain for SSO provider lookup.
|
|
11
|
+
* See: https://www.better-auth.com/docs/plugins/sso
|
|
12
|
+
*/
|
|
13
|
+
export type OrganizationCreationData = {
|
|
14
|
+
name: Organization['name'];
|
|
15
|
+
};
|
|
16
|
+
/** Supported transactional email providers for a per-organization mailer. */
|
|
17
|
+
export type MailerProvider = 'resend' | 'smtp';
|
|
18
|
+
/**
|
|
19
|
+
* Per-organization mailer configuration.
|
|
20
|
+
*
|
|
21
|
+
* The same shape is used both for the stored document and for API responses,
|
|
22
|
+
* which keeps `Organization` structurally assignable to `OrganizationAPI`.
|
|
23
|
+
* The two representations differ only in which optional fields are populated:
|
|
24
|
+
*
|
|
25
|
+
* - Stored: secrets (`resend.apiKey`, `smtp.password`) hold the encrypted value
|
|
26
|
+
* (see `@utils/crypto/encryption`); the `has*` flags are absent.
|
|
27
|
+
* - API: `mapOrganizationToAPI` strips the secrets and sets the `has*` flags so
|
|
28
|
+
* the dashboard can indicate that a value is configured without exposing it.
|
|
29
|
+
*/
|
|
30
|
+
export type OrganizationMailerConfig = {
|
|
31
|
+
/** Whether org-scoped emails should use this mailer instead of the default. */
|
|
32
|
+
isActive: boolean;
|
|
33
|
+
/** Which provider to send through. */
|
|
34
|
+
provider: MailerProvider;
|
|
35
|
+
/** Display name used in the `From` header (e.g. "Acme"). */
|
|
36
|
+
fromName?: string;
|
|
37
|
+
/** Sender address used in the `From` header (e.g. "no-reply@acme.com"). */
|
|
38
|
+
fromEmail?: string;
|
|
39
|
+
/** Resend-specific settings. */
|
|
40
|
+
resend?: {
|
|
41
|
+
/** Encrypted API key. Present only on the stored document, never in API responses. */
|
|
42
|
+
apiKey?: string;
|
|
43
|
+
/** API-only flag: whether a Resend API key is currently stored. */
|
|
44
|
+
hasApiKey?: boolean;
|
|
45
|
+
};
|
|
46
|
+
/** SMTP-specific settings. */
|
|
47
|
+
smtp?: {
|
|
48
|
+
host?: string;
|
|
49
|
+
port?: number;
|
|
50
|
+
/** Whether to use an implicit TLS connection (usually port 465). */
|
|
51
|
+
secure?: boolean;
|
|
52
|
+
user?: string;
|
|
53
|
+
/** Encrypted password. Present only on the stored document, never in API responses. */
|
|
54
|
+
password?: string;
|
|
55
|
+
/** API-only flag: whether an SMTP password is currently stored. */
|
|
56
|
+
hasPassword?: boolean;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
/**
|
|
60
|
+
* Payload accepted when updating a mailer configuration.
|
|
61
|
+
*
|
|
62
|
+
* Secrets are plaintext and optional: an omitted or empty secret means "keep
|
|
63
|
+
* the value already stored", so the dashboard never has to round-trip it.
|
|
64
|
+
*/
|
|
65
|
+
export type OrganizationMailerConfigInput = {
|
|
66
|
+
isActive: boolean;
|
|
67
|
+
provider: MailerProvider;
|
|
68
|
+
fromName?: string;
|
|
69
|
+
fromEmail?: string;
|
|
70
|
+
resend?: {
|
|
71
|
+
apiKey?: string;
|
|
72
|
+
};
|
|
73
|
+
smtp?: {
|
|
74
|
+
host?: string;
|
|
75
|
+
port?: number;
|
|
76
|
+
secure?: boolean;
|
|
77
|
+
user?: string;
|
|
78
|
+
password?: string;
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
export type OrganizationData = {
|
|
82
|
+
name: string;
|
|
83
|
+
membersIds: User['id'][];
|
|
84
|
+
adminsIds: User['id'][];
|
|
85
|
+
/** Whether SSO is configured for this organization (managed by better-auth) */
|
|
86
|
+
ssoEnabled: boolean;
|
|
87
|
+
/** Primary domain for this organization (used for SSO provider lookup) */
|
|
88
|
+
domain: string;
|
|
89
|
+
/**
|
|
90
|
+
* Optional per-organization transactional mailer. When active, org-scoped
|
|
91
|
+
* emails (invites, access keys, reviewer, subscription…) are sent through it.
|
|
92
|
+
* Secrets are stored encrypted; see {@link OrganizationMailerConfig}.
|
|
93
|
+
*/
|
|
94
|
+
mailerConfig?: OrganizationMailerConfig;
|
|
95
|
+
};
|
|
96
|
+
export type Organization = OrganizationData & {
|
|
97
|
+
id: Types.ObjectId;
|
|
98
|
+
creatorId: User['id'];
|
|
99
|
+
plan?: Plan;
|
|
100
|
+
createdAt: number;
|
|
101
|
+
updatedAt: number;
|
|
102
|
+
};
|
|
103
|
+
export type OrganizationAPI = ObjectIdToString<Organization>;
|
|
104
|
+
//#endregion
|
|
105
|
+
//# sourceMappingURL=organization.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organization.types.d.ts","names":[],"sources":["../../../../../../../../../../apps/backend/dist/types/types/organization.types.d.ts"],"mappings":";;;;;;;;;;;;YAWY;EACV,MAAM;;;YAGI;;;;;;;;;;;;;YAaA;;EAEV;;EAEA,UAAU;;EAEV;;EAEA;;EAEA;;IAEE;;IAEA;;;EAGF;IACE;IACA;;IAEA;IACA;;IAEA;;IAEA;;;;;;;;;YAeQ;EACV;EACA,UAAU;EACV;EACA;EACA;IACE;;EAEF;IACE;IACA;IACA;IACA;IACA;;;YAGQ;EACV;EACA,YAAY;EACZ,WAAW;;EAEX;;EAEA;;;;;;EAMA,eAAe;;YAEL,eAAe;EACzB,IAAI,MAAM;EACV,WAAW;EACX,OAAO;EACP;EACA;;YAEU,kBAAkB,iBAAiB"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import "../utils/mongoDB/types.js";
|
|
2
|
+
import { User } from "./user.types.js";
|
|
3
|
+
import { Document, ObjectIdToString, Types } from "/Users/aymericpineau/Documents/intlayer_/node_modules/.bun/mongoose@9.10.0+7f93886e57f5bac2/node_modules/mongoose/index.js";
|
|
4
|
+
//#region ../../../apps/backend/dist/types/types/plan.types.d.ts
|
|
5
|
+
//#region src/types/plan.types.d.ts
|
|
6
|
+
export type PlanType = 'FREE' | 'PREMIUM' | 'ENTERPRISE' | 'LIFETIME';
|
|
7
|
+
export type PlanData = {
|
|
8
|
+
type: PlanType;
|
|
9
|
+
creatorId?: User['id'];
|
|
10
|
+
subscriptionId?: string;
|
|
11
|
+
customerId?: string;
|
|
12
|
+
priceId?: string;
|
|
13
|
+
status?: 'active' | 'canceled' | 'past_due' | 'unpaid' | 'incomplete' | 'incomplete_expired' | 'paused' | 'trialing';
|
|
14
|
+
period?: 'MONTHLY' | 'YEARLY' | 'LIFETIME';
|
|
15
|
+
};
|
|
16
|
+
export type Plan = PlanData & {
|
|
17
|
+
id: Types.ObjectId;
|
|
18
|
+
createdAt: number;
|
|
19
|
+
updatedAt: number;
|
|
20
|
+
};
|
|
21
|
+
//#endregion
|
|
22
|
+
//# sourceMappingURL=plan.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plan.types.d.ts","names":[],"sources":["../../../../../../../../../../apps/backend/dist/types/types/plan.types.d.ts"],"mappings":";;;;;YAIY;YACA;EACV,MAAM;EACN,YAAY;EACZ;EACA;EACA;EACA;EACA;;YAEU,OAAO;EACjB,IAAI,MAAM;EACV;EACA"}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import "../utils/mongoDB/types.js";
|
|
2
|
+
import { User } from "./user.types.js";
|
|
3
|
+
import { Organization } from "./organization.types.js";
|
|
4
|
+
import { IntlayerConfig } from "@intlayer/types/config";
|
|
5
|
+
import { Document, ObjectIdToString, Types } from "/Users/aymericpineau/Documents/intlayer_/node_modules/.bun/mongoose@9.10.0+7f93886e57f5bac2/node_modules/mongoose/index.js";
|
|
6
|
+
import { Locale } from "@intlayer/types/allLocales";
|
|
7
|
+
import { Token } from "/Users/aymericpineau/Documents/intlayer_/node_modules/.bun/@node-oauth+oauth2-server@5.3.0/node_modules/@node-oauth/oauth2-server/index.js";
|
|
8
|
+
//#region ../../../apps/backend/dist/types/types/project.types.d.ts
|
|
9
|
+
//#region src/types/project.types.d.ts
|
|
10
|
+
export type ProjectCreationData = {
|
|
11
|
+
name: Project['name'];
|
|
12
|
+
};
|
|
13
|
+
export type EnvironmentData = {
|
|
14
|
+
name: string;
|
|
15
|
+
isDefault: boolean;
|
|
16
|
+
configuration?: ProjectConfiguration;
|
|
17
|
+
};
|
|
18
|
+
export type Environment = EnvironmentData & {
|
|
19
|
+
id: Types.ObjectId;
|
|
20
|
+
createdAt: number;
|
|
21
|
+
updatedAt: number;
|
|
22
|
+
};
|
|
23
|
+
export type EnvironmentAPI = ObjectIdToString<Environment>;
|
|
24
|
+
type ProjectConfigInternationalization = Partial<Pick<IntlayerConfig['internationalization'], 'locales' | 'defaultLocale'>>;
|
|
25
|
+
type ProjectConfigEditor = Partial<Pick<IntlayerConfig['editor'], 'applicationURL' | 'cmsURL'>>;
|
|
26
|
+
type ProjectConfigAI = Partial<IntlayerConfig['ai']> & {
|
|
27
|
+
apiKey?: string;
|
|
28
|
+
apiKeyConfigured?: boolean;
|
|
29
|
+
};
|
|
30
|
+
export type Webhook = {
|
|
31
|
+
id?: string;
|
|
32
|
+
name: string;
|
|
33
|
+
url: string;
|
|
34
|
+
enabled: boolean;
|
|
35
|
+
secret?: string;
|
|
36
|
+
};
|
|
37
|
+
export type ProjectConfigCI = {
|
|
38
|
+
autoTriggerBuilds?: boolean;
|
|
39
|
+
webhooks?: Webhook[];
|
|
40
|
+
};
|
|
41
|
+
export type ProjectConfiguration = {
|
|
42
|
+
internationalization?: ProjectConfigInternationalization;
|
|
43
|
+
editor?: ProjectConfigEditor;
|
|
44
|
+
ai?: ProjectConfigAI;
|
|
45
|
+
};
|
|
46
|
+
export type RepositoryProvider = 'github' | 'gitlab' | 'bitbucket';
|
|
47
|
+
export type BaseRepository = {
|
|
48
|
+
provider: RepositoryProvider;
|
|
49
|
+
owner: string;
|
|
50
|
+
repository: string;
|
|
51
|
+
branch: string;
|
|
52
|
+
url: string;
|
|
53
|
+
configFilePath: string;
|
|
54
|
+
/** Repo-scoped OAuth token used for CI operations (write access to the repo) */
|
|
55
|
+
token?: string;
|
|
56
|
+
};
|
|
57
|
+
export type GitHubRepository = BaseRepository & {
|
|
58
|
+
provider: 'github';
|
|
59
|
+
installationId?: number;
|
|
60
|
+
};
|
|
61
|
+
export type GitLabRepository = BaseRepository & {
|
|
62
|
+
provider: 'gitlab';
|
|
63
|
+
projectId?: number;
|
|
64
|
+
/** Custom GitLab instance URL (e.g., https://gitlab.company.com) */
|
|
65
|
+
instanceUrl?: string;
|
|
66
|
+
};
|
|
67
|
+
export type BitbucketRepository = BaseRepository & {
|
|
68
|
+
provider: 'bitbucket';
|
|
69
|
+
workspace: string;
|
|
70
|
+
};
|
|
71
|
+
export type RepositoryConnection = GitHubRepository | GitLabRepository | BitbucketRepository;
|
|
72
|
+
export type ProjectData = {
|
|
73
|
+
organizationId: Organization['id'];
|
|
74
|
+
name: string;
|
|
75
|
+
membersIds: User['id'][];
|
|
76
|
+
adminsIds: User['id'][];
|
|
77
|
+
viewersIds?: User['id'][];
|
|
78
|
+
/** Granular per-member access constraints, additive overlay on the role system. */
|
|
79
|
+
memberAccess?: ProjectMemberGranularAccess[];
|
|
80
|
+
creatorId: User['id'];
|
|
81
|
+
configuration?: ProjectConfiguration;
|
|
82
|
+
repository?: RepositoryConnection;
|
|
83
|
+
webhooks?: ProjectConfigCI;
|
|
84
|
+
autoFill?: boolean;
|
|
85
|
+
/** Screenshot of the application URL, generated automatically when applicationURL is set */
|
|
86
|
+
imageUrl?: string;
|
|
87
|
+
environments?: Environment[];
|
|
88
|
+
};
|
|
89
|
+
export type AccessKeyData = {
|
|
90
|
+
name: string;
|
|
91
|
+
grants: string[];
|
|
92
|
+
expiresAt?: Date;
|
|
93
|
+
/** null = unrestricted (all environments). null item in array = production env. */
|
|
94
|
+
allowedEnvironmentIds?: (string | null)[] | null;
|
|
95
|
+
/** null = unrestricted (all locales). */
|
|
96
|
+
allowedLocales?: Locale[] | null;
|
|
97
|
+
};
|
|
98
|
+
export type OAuth2AccessData = AccessKeyData & {
|
|
99
|
+
clientId: string;
|
|
100
|
+
clientSecret: string;
|
|
101
|
+
accessToken: string[];
|
|
102
|
+
userId: User['id'];
|
|
103
|
+
};
|
|
104
|
+
/**
|
|
105
|
+
* Granular per-member access constraints, overlaid on top of the member's role.
|
|
106
|
+
* null = unrestricted; [] = no access; array = restricted to listed items.
|
|
107
|
+
*/
|
|
108
|
+
export type ProjectMemberGranularAccess = {
|
|
109
|
+
userId: Types.ObjectId;
|
|
110
|
+
allowedEnvironmentIds: (Types.ObjectId | null)[] | null;
|
|
111
|
+
allowedLocales: Locale[] | null;
|
|
112
|
+
};
|
|
113
|
+
export type ProjectMemberGranularAccessAPI = ObjectIdToString<ProjectMemberGranularAccess>;
|
|
114
|
+
export type OAuth2Access = OAuth2AccessData & {
|
|
115
|
+
id: Types.ObjectId;
|
|
116
|
+
createdAt: number;
|
|
117
|
+
updatedAt: number;
|
|
118
|
+
};
|
|
119
|
+
export type Project = ProjectData & {
|
|
120
|
+
id: Types.ObjectId;
|
|
121
|
+
createdAt: number;
|
|
122
|
+
updatedAt: number;
|
|
123
|
+
oAuth2Access: OAuth2Access[];
|
|
124
|
+
};
|
|
125
|
+
export type ProjectAPI = ObjectIdToString<Project>;
|
|
126
|
+
//#endregion
|
|
127
|
+
//# sourceMappingURL=project.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"project.types.d.ts","names":[],"sources":["../../../../../../../../../../apps/backend/dist/types/types/project.types.d.ts"],"mappings":";;;;;;;;;YAQY;EACV,MAAM;;YAEI;EACV;EACA;EACA,gBAAgB;;YAEN,cAAc;EACxB,IAAI,MAAM;EACV;EACA;;YAEU,iBAAiB,iBAAiB;KACzC,oCAAoC,QAAQ,KAAK;KACjD,sBAAsB,QAAQ,KAAK;KACnC,kBAAkB,QAAQ;EAC7B;EACA;;YAEU;EACV;EACA;EACA;EACA;EACA;;YAEU;EACV;EACA,WAAW;;YAED;EACV,uBAAuB;EACvB,SAAS;EACT,KAAK;;YAEK;YACA;EACV,UAAU;EACV;EACA;EACA;EACA;EACA;;EAEA;;YAEU,mBAAmB;EAC7B;EACA;;YAEU,mBAAmB;EAC7B;EACA;;EAEA;;YAEU,sBAAsB;EAChC;EACA;;YAEU,uBAAuB,mBAAmB,mBAAmB;YAC7D;EACV,gBAAgB;EAChB;EACA,YAAY;EACZ,WAAW;EACX,aAAa;;EAEb,eAAe;EACf,WAAW;EACX,gBAAgB;EAChB,aAAa;EACb,WAAW;EACX;;EAEA;EACA,eAAe;;YAEL;EACV;EACA;EACA,YAAY;;EAEZ;;EAEA,iBAAiB;;YAEP,mBAAmB;EAC7B;EACA;EACA;EACA,QAAQ;;;;;;YAeE;EACV,QAAQ,MAAM;EACd,wBAAwB,MAAM;EAC9B,gBAAgB;;YAEN,iCAAiC,iBAAiB;YAClD,eAAe;EACzB,IAAI,MAAM;EACV;EACA;;YAGU,UAAU;EACpB,IAAI,MAAM;EACV;EACA;EACA,cAAc;;YAEJ,aAAa,iBAAiB"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { RepositoryProvider } from "./project.types.js";
|
|
2
|
+
import { Locale } from "@intlayer/types/allLocales";
|
|
3
|
+
//#region ../../../apps/backend/dist/types/types/projectInsights.types.d.ts
|
|
4
|
+
//#region src/types/projectInsights.types.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Translation health for a single locale of a project, computed at key
|
|
7
|
+
* (translation-node) granularity.
|
|
8
|
+
*/
|
|
9
|
+
export type LocaleInsight = {
|
|
10
|
+
/** The locale code (e.g. `en`, `fr`). */
|
|
11
|
+
locale: Locale;
|
|
12
|
+
/** Whether this is the project's default (source) locale. */
|
|
13
|
+
isDefault: boolean;
|
|
14
|
+
/** Number of keys that have a non-empty value for this locale. */
|
|
15
|
+
translatedKeys: number;
|
|
16
|
+
/** Total number of keys in the project. */
|
|
17
|
+
totalKeys: number;
|
|
18
|
+
/** Keys still missing a value for this locale (`totalKeys - translatedKeys`). */
|
|
19
|
+
missingKeys: number;
|
|
20
|
+
/** Completion ratio in the `[0, 1]` range (`translatedKeys / totalKeys`). */
|
|
21
|
+
completionRate: number;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Aggregated, project-wide localization insights surfaced on the dashboard
|
|
25
|
+
* overview page. Computed server-side from the project configuration and the
|
|
26
|
+
* latest content of every dictionary attached to the project.
|
|
27
|
+
*/
|
|
28
|
+
export type ProjectInsights = {
|
|
29
|
+
/** The project the insights were computed for. */
|
|
30
|
+
projectId: string;
|
|
31
|
+
/** Unix epoch (ms) at which the snapshot was computed. */
|
|
32
|
+
generatedAt: number;
|
|
33
|
+
/** The project's default (source) locale, or `null` when not configured. */
|
|
34
|
+
defaultLocale: Locale | null;
|
|
35
|
+
/** Number of locales configured for the project. */
|
|
36
|
+
localeCount: number;
|
|
37
|
+
/** Number of dictionaries attached to the project. */
|
|
38
|
+
dictionaryCount: number;
|
|
39
|
+
/** Total number of translatable keys (translation nodes) across dictionaries. */
|
|
40
|
+
keyCount: number;
|
|
41
|
+
/** Target translation units: `keyCount × (number of non-default locales)`. */
|
|
42
|
+
translationUnitCount: number;
|
|
43
|
+
/** Translation units (non-default locales) that are filled. */
|
|
44
|
+
translatedUnitCount: number;
|
|
45
|
+
/** Overall completion ratio in the `[0, 1]` range. */
|
|
46
|
+
overallCompletionRate: number;
|
|
47
|
+
/** Number of locales that are 100% translated. */
|
|
48
|
+
fullyTranslatedLocaleCount: number;
|
|
49
|
+
/** Number of dictionaries missing at least one translation. */
|
|
50
|
+
dictionariesWithMissingTranslations: number;
|
|
51
|
+
/** Total missing translation units across all non-default locales. */
|
|
52
|
+
missingTranslationCount: number;
|
|
53
|
+
/** Per-locale completion breakdown (ordered with the default locale first). */
|
|
54
|
+
localeInsights: LocaleInsight[];
|
|
55
|
+
/** Most recently updated dictionaries (key + timestamp), newest first. */
|
|
56
|
+
recentlyUpdated: {
|
|
57
|
+
key: string;
|
|
58
|
+
updatedAt: number;
|
|
59
|
+
}[];
|
|
60
|
+
/** Timestamp of the most recently updated dictionary, or `null` when none. */
|
|
61
|
+
lastUpdatedAt: number | null;
|
|
62
|
+
/** Number of members on the project. */
|
|
63
|
+
memberCount: number;
|
|
64
|
+
/** Number of admins on the project. */
|
|
65
|
+
adminCount: number;
|
|
66
|
+
/** Number of environments configured for the project. */
|
|
67
|
+
environmentCount: number;
|
|
68
|
+
/** Whether auto-fill (auto-translation on push) is enabled. */
|
|
69
|
+
autoFill: boolean;
|
|
70
|
+
/** Whether an AI provider/API key is configured for the project. */
|
|
71
|
+
aiConfigured: boolean;
|
|
72
|
+
/** Connected git provider, or `null` when no repository is linked. */
|
|
73
|
+
repositoryProvider: RepositoryProvider | null;
|
|
74
|
+
/** The configured application URL (enables the scanner), or `null`. */
|
|
75
|
+
applicationURL: string | null;
|
|
76
|
+
};
|
|
77
|
+
//#endregion
|
|
78
|
+
//#endregion
|
|
79
|
+
//# sourceMappingURL=projectInsights.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"projectInsights.types.d.ts","names":[],"sources":["../../../../../../../../../../apps/backend/dist/types/types/projectInsights.types.d.ts"],"mappings":";;;;;;;;YAOY;;EAEV,QAAQ;;EAER;;EAEA;;EAEA;;EAEA;;EAEA;;;;;;;YAOU;;EAEV;;EAEA;;EAEA,eAAe;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA,gBAAgB;;EAEhB;IACE;IACA;;;EAGF;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA,oBAAoB;;EAEpB"}
|