@rakun-kit/core 1.4.5 → 1.4.6
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 +9 -0
- package/dist/cjs/api/operations/manager-contract.js +9 -0
- package/dist/cjs/api/operations/manager-contract.js.map +1 -1
- package/dist/cjs/api/operations/manager-manifest.js +5 -0
- package/dist/cjs/api/operations/manager-manifest.js.map +1 -1
- package/dist/cjs/api/operations/manager.js +4 -0
- package/dist/cjs/api/operations/manager.js.map +1 -1
- package/dist/cjs/api/routes/manager/create.js +79 -2
- package/dist/cjs/api/routes/manager/create.js.map +1 -1
- package/dist/cjs/api/routes/manager/delete.js +2 -0
- package/dist/cjs/api/routes/manager/delete.js.map +1 -1
- package/dist/cjs/api/routes/manager/duplicate.js +2 -0
- package/dist/cjs/api/routes/manager/duplicate.js.map +1 -1
- package/dist/cjs/api/routes/manager/get.js +4 -1
- package/dist/cjs/api/routes/manager/get.js.map +1 -1
- package/dist/cjs/api/routes/manager/linkedIterator.js +69 -0
- package/dist/cjs/api/routes/manager/linkedIterator.js.map +1 -0
- package/dist/cjs/api/routes/manager/list.js +2 -0
- package/dist/cjs/api/routes/manager/list.js.map +1 -1
- package/dist/cjs/api/routes/manager/translateDocument.js +46 -2
- package/dist/cjs/api/routes/manager/translateDocument.js.map +1 -1
- package/dist/cjs/api/routes/manager/trash.js +2 -0
- package/dist/cjs/api/routes/manager/trash.js.map +1 -1
- package/dist/cjs/api/routes/manager/update.js +74 -2
- package/dist/cjs/api/routes/manager/update.js.map +1 -1
- package/dist/cjs/api/routes/web/page.js +14 -4
- package/dist/cjs/api/routes/web/page.js.map +1 -1
- package/dist/cjs/api/routes/web/previewPage.js +1 -0
- package/dist/cjs/api/routes/web/previewPage.js.map +1 -1
- package/dist/cjs/api/utils/dynamicData.js +6 -3
- package/dist/cjs/api/utils/dynamicData.js.map +1 -1
- package/dist/cjs/api/utils/index.js +2 -1
- package/dist/cjs/api/utils/index.js.map +1 -1
- package/dist/cjs/api/utils/linkedIterator.js +167 -0
- package/dist/cjs/api/utils/linkedIterator.js.map +1 -0
- package/dist/cjs/api/utils/routes/revalidatePath.js +9 -0
- package/dist/cjs/api/utils/routes/revalidatePath.js.map +1 -1
- package/dist/cjs/client.js +2 -1
- package/dist/cjs/client.js.map +1 -1
- package/dist/cjs/index.js +3 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/internal-content-types/LinkedIteratorTemplate.js +20 -0
- package/dist/cjs/internal-content-types/LinkedIteratorTemplate.js.map +1 -0
- package/dist/cjs/internal-content-types/index.js +1 -0
- package/dist/cjs/internal-content-types/index.js.map +1 -1
- package/dist/cjs/lib/ContentType.js +24 -0
- package/dist/cjs/lib/ContentType.js.map +1 -1
- package/dist/cjs/lib/Registry.js +1 -0
- package/dist/cjs/lib/Registry.js.map +1 -1
- package/dist/cjs/lib/systemFields.js +2 -1
- package/dist/cjs/lib/systemFields.js.map +1 -1
- package/dist/cjs/schemas/manager/create.js +2 -0
- package/dist/cjs/schemas/manager/create.js.map +1 -1
- package/dist/cjs/schemas/manager/linkedIterator.js +27 -0
- package/dist/cjs/schemas/manager/linkedIterator.js.map +1 -0
- package/dist/cjs/schemas/manager/update.js +2 -0
- package/dist/cjs/schemas/manager/update.js.map +1 -1
- package/dist/esm/api/context.d.ts +1 -1
- package/dist/esm/api/context.js +3 -3
- package/dist/esm/api/hooks/context.d.ts +1 -1
- package/dist/esm/api/hooks/runContentHooks.d.ts +4 -4
- package/dist/esm/api/hooks/runContentHooks.js +1 -1
- package/dist/esm/api/operations/catalog.d.ts +2 -2
- package/dist/esm/api/operations/catalog.js +1 -1
- package/dist/esm/api/operations/custom.d.ts +1 -1
- package/dist/esm/api/operations/custom.js +1 -1
- package/dist/esm/api/operations/index.d.ts +172 -149
- package/dist/esm/api/operations/index.d.ts.map +1 -1
- package/dist/esm/api/operations/index.js +8 -8
- package/dist/esm/api/operations/manager-contract.d.ts +140 -117
- package/dist/esm/api/operations/manager-contract.d.ts.map +1 -1
- package/dist/esm/api/operations/manager-contract.js +14 -5
- package/dist/esm/api/operations/manager-contract.js.map +1 -1
- package/dist/esm/api/operations/manager-manifest.d.ts +5 -0
- package/dist/esm/api/operations/manager-manifest.d.ts.map +1 -1
- package/dist/esm/api/operations/manager-manifest.js +5 -0
- package/dist/esm/api/operations/manager-manifest.js.map +1 -1
- package/dist/esm/api/operations/manager.d.ts +141 -118
- package/dist/esm/api/operations/manager.d.ts.map +1 -1
- package/dist/esm/api/operations/manager.js +60 -56
- package/dist/esm/api/operations/manager.js.map +1 -1
- package/dist/esm/api/operations/tracing.d.ts +1 -1
- package/dist/esm/api/operations/tracing.js +1 -1
- package/dist/esm/api/operations/types.d.ts +1 -1
- package/dist/esm/api/operations/web-contract.d.ts +24 -24
- package/dist/esm/api/operations/web-contract.js +3 -3
- package/dist/esm/api/operations/web.d.ts +25 -25
- package/dist/esm/api/operations/web.js +9 -9
- package/dist/esm/api/routes/manager/apiOperations.d.ts +3 -3
- package/dist/esm/api/routes/manager/apiOperations.js +5 -5
- package/dist/esm/api/routes/manager/auth/accountInfo.d.ts +2 -2
- package/dist/esm/api/routes/manager/auth/accountInfo.js +3 -3
- package/dist/esm/api/routes/manager/auth/deleteSession.d.ts +2 -2
- package/dist/esm/api/routes/manager/auth/deleteSession.js +3 -3
- package/dist/esm/api/routes/manager/auth/getSession.d.ts +7 -7
- package/dist/esm/api/routes/manager/auth/login.d.ts +2 -2
- package/dist/esm/api/routes/manager/auth/login.js +6 -6
- package/dist/esm/api/routes/manager/auth/logout.d.ts +1 -1
- package/dist/esm/api/routes/manager/auth/logout.js +3 -3
- package/dist/esm/api/routes/manager/auth/markTourSeen.d.ts +10 -8
- package/dist/esm/api/routes/manager/auth/markTourSeen.d.ts.map +1 -1
- package/dist/esm/api/routes/manager/auth/markTourSeen.js +3 -3
- package/dist/esm/api/routes/manager/auth/totp/confirmTotp.d.ts +2 -2
- package/dist/esm/api/routes/manager/auth/totp/confirmTotp.js +2 -2
- package/dist/esm/api/routes/manager/auth/totp/enrollTotp.d.ts +1 -1
- package/dist/esm/api/routes/manager/auth/totp/enrollTotp.js +3 -3
- package/dist/esm/api/routes/manager/auth/totp/verifyTotp.d.ts +1 -1
- package/dist/esm/api/routes/manager/auth/totp/verifyTotp.js +5 -5
- package/dist/esm/api/routes/manager/auth/updateAccount.d.ts +10 -8
- package/dist/esm/api/routes/manager/auth/updateAccount.d.ts.map +1 -1
- package/dist/esm/api/routes/manager/auth/updateAccount.js +3 -3
- package/dist/esm/api/routes/manager/auth/updatePassword.d.ts +2 -2
- package/dist/esm/api/routes/manager/auth/updatePassword.js +5 -5
- package/dist/esm/api/routes/manager/auth/updateTutorialPreferences.d.ts +10 -8
- package/dist/esm/api/routes/manager/auth/updateTutorialPreferences.d.ts.map +1 -1
- package/dist/esm/api/routes/manager/auth/updateTutorialPreferences.js +3 -3
- package/dist/esm/api/routes/manager/auth/webauthn/webauthnAuthOptions.js +4 -4
- package/dist/esm/api/routes/manager/auth/webauthn/webauthnAuthVerify.js +6 -6
- package/dist/esm/api/routes/manager/auth/webauthn/webauthnRegisterOptions.d.ts +2 -2
- package/dist/esm/api/routes/manager/auth/webauthn/webauthnRegisterOptions.js +3 -3
- package/dist/esm/api/routes/manager/auth/webauthn/webauthnRegisterVerify.d.ts +1 -1
- package/dist/esm/api/routes/manager/auth/webauthn/webauthnRegisterVerify.js +4 -4
- package/dist/esm/api/routes/manager/backups/create.d.ts +2 -2
- package/dist/esm/api/routes/manager/backups/create.js +2 -2
- package/dist/esm/api/routes/manager/backups/list.d.ts +2 -2
- package/dist/esm/api/routes/manager/backups/list.js +2 -2
- package/dist/esm/api/routes/manager/backups/restore.d.ts +2 -2
- package/dist/esm/api/routes/manager/backups/restore.js +4 -4
- package/dist/esm/api/routes/manager/comments.d.ts +2 -2
- package/dist/esm/api/routes/manager/comments.js +6 -6
- package/dist/esm/api/routes/manager/contentType.d.ts +11 -10
- package/dist/esm/api/routes/manager/contentType.d.ts.map +1 -1
- package/dist/esm/api/routes/manager/contentType.js +3 -3
- package/dist/esm/api/routes/manager/contentTypes.d.ts +9 -8
- package/dist/esm/api/routes/manager/contentTypes.d.ts.map +1 -1
- package/dist/esm/api/routes/manager/contentTypes.js +1 -1
- package/dist/esm/api/routes/manager/create.d.ts +6 -5
- package/dist/esm/api/routes/manager/create.d.ts.map +1 -1
- package/dist/esm/api/routes/manager/create.js +88 -11
- package/dist/esm/api/routes/manager/create.js.map +1 -1
- package/dist/esm/api/routes/manager/delete.d.ts +2 -2
- package/dist/esm/api/routes/manager/delete.d.ts.map +1 -1
- package/dist/esm/api/routes/manager/delete.js +11 -9
- package/dist/esm/api/routes/manager/delete.js.map +1 -1
- package/dist/esm/api/routes/manager/duplicate.d.ts +6 -5
- package/dist/esm/api/routes/manager/duplicate.d.ts.map +1 -1
- package/dist/esm/api/routes/manager/duplicate.js +7 -5
- package/dist/esm/api/routes/manager/duplicate.js.map +1 -1
- package/dist/esm/api/routes/manager/favorites.d.ts +2 -2
- package/dist/esm/api/routes/manager/favorites.js +5 -5
- package/dist/esm/api/routes/manager/get.d.ts +2 -2
- package/dist/esm/api/routes/manager/get.d.ts.map +1 -1
- package/dist/esm/api/routes/manager/get.js +13 -10
- package/dist/esm/api/routes/manager/get.js.map +1 -1
- package/dist/esm/api/routes/manager/languages.d.ts +5 -4
- package/dist/esm/api/routes/manager/languages.d.ts.map +1 -1
- package/dist/esm/api/routes/manager/languages.js +1 -1
- package/dist/esm/api/routes/manager/linkedIterator.d.ts +11 -0
- package/dist/esm/api/routes/manager/linkedIterator.d.ts.map +1 -0
- package/dist/esm/api/routes/manager/linkedIterator.js +62 -0
- package/dist/esm/api/routes/manager/linkedIterator.js.map +1 -0
- package/dist/esm/api/routes/manager/list.d.ts +2 -2
- package/dist/esm/api/routes/manager/list.d.ts.map +1 -1
- package/dist/esm/api/routes/manager/list.js +15 -13
- package/dist/esm/api/routes/manager/list.js.map +1 -1
- package/dist/esm/api/routes/manager/literals/list.d.ts +2 -2
- package/dist/esm/api/routes/manager/literals/list.js +5 -5
- package/dist/esm/api/routes/manager/literals/upsert.d.ts +2 -2
- package/dist/esm/api/routes/manager/literals/upsert.js +6 -6
- package/dist/esm/api/routes/manager/localeVariants.d.ts +18 -18
- package/dist/esm/api/routes/manager/localeVariants.js +15 -15
- package/dist/esm/api/routes/manager/media/createFolder.d.ts +2 -2
- package/dist/esm/api/routes/manager/media/createFolder.js +7 -7
- package/dist/esm/api/routes/manager/media/deleteFolder.d.ts +2 -2
- package/dist/esm/api/routes/manager/media/deleteFolder.js +7 -7
- package/dist/esm/api/routes/manager/media/deleteMediaStorage.js +2 -2
- package/dist/esm/api/routes/manager/media/finalizeUpload.d.ts +2 -2
- package/dist/esm/api/routes/manager/media/finalizeUpload.js +11 -11
- package/dist/esm/api/routes/manager/media/getMediaUrl.d.ts +2 -2
- package/dist/esm/api/routes/manager/media/getMediaUrl.js +6 -6
- package/dist/esm/api/routes/manager/media/listFolders.d.ts +2 -2
- package/dist/esm/api/routes/manager/media/listFolders.js +4 -4
- package/dist/esm/api/routes/manager/media/prepareUpload.d.ts +3 -3
- package/dist/esm/api/routes/manager/media/prepareUpload.js +5 -5
- package/dist/esm/api/routes/manager/media/resolveMediaRecordUrls.js +1 -1
- package/dist/esm/api/routes/manager/media/uploadBinary.d.ts +1 -1
- package/dist/esm/api/routes/manager/media/uploadBinary.js +7 -7
- package/dist/esm/api/routes/manager/migrations/list.d.ts +2 -2
- package/dist/esm/api/routes/manager/migrations/list.js +2 -2
- package/dist/esm/api/routes/manager/permissions.d.ts +1 -1
- package/dist/esm/api/routes/manager/permissions.js +2 -2
- package/dist/esm/api/routes/manager/preview/create.d.ts +2 -2
- package/dist/esm/api/routes/manager/preview/create.js +14 -14
- package/dist/esm/api/routes/manager/regenerateRoutes.d.ts +1 -1
- package/dist/esm/api/routes/manager/regenerateRoutes.js +2 -2
- package/dist/esm/api/routes/manager/setDefaultLanguage.d.ts +2 -2
- package/dist/esm/api/routes/manager/setDefaultLanguage.js +5 -5
- package/dist/esm/api/routes/manager/translateDocument.d.ts +2 -2
- package/dist/esm/api/routes/manager/translateDocument.d.ts.map +1 -1
- package/dist/esm/api/routes/manager/translateDocument.js +55 -11
- package/dist/esm/api/routes/manager/translateDocument.js.map +1 -1
- package/dist/esm/api/routes/manager/trash.d.ts +2 -2
- package/dist/esm/api/routes/manager/trash.d.ts.map +1 -1
- package/dist/esm/api/routes/manager/trash.js +9 -7
- package/dist/esm/api/routes/manager/trash.js.map +1 -1
- package/dist/esm/api/routes/manager/update.d.ts +6 -5
- package/dist/esm/api/routes/manager/update.d.ts.map +1 -1
- package/dist/esm/api/routes/manager/update.js +82 -10
- package/dist/esm/api/routes/manager/update.js.map +1 -1
- package/dist/esm/api/routes/manager/users.d.ts +2 -2
- package/dist/esm/api/routes/manager/users.js +2 -2
- package/dist/esm/api/routes/manager/versions/get.d.ts +2 -2
- package/dist/esm/api/routes/manager/versions/get.js +2 -2
- package/dist/esm/api/routes/manager/versions/list.d.ts +2 -2
- package/dist/esm/api/routes/manager/versions/list.js +2 -2
- package/dist/esm/api/routes/manager/versions/restore.d.ts +2 -2
- package/dist/esm/api/routes/manager/versions/restore.js +4 -4
- package/dist/esm/api/routes/web/page.d.ts +6 -5
- package/dist/esm/api/routes/web/page.d.ts.map +1 -1
- package/dist/esm/api/routes/web/page.js +30 -20
- package/dist/esm/api/routes/web/page.js.map +1 -1
- package/dist/esm/api/routes/web/previewPage.d.ts +8 -8
- package/dist/esm/api/routes/web/previewPage.d.ts.map +1 -1
- package/dist/esm/api/routes/web/previewPage.js +10 -9
- package/dist/esm/api/routes/web/previewPage.js.map +1 -1
- package/dist/esm/api/routes/web/robots.d.ts +1 -1
- package/dist/esm/api/routes/web/robots.js +2 -2
- package/dist/esm/api/routes/web/seo.d.ts +1 -1
- package/dist/esm/api/routes/web/sitemap.d.ts +1 -1
- package/dist/esm/api/routes/web/sitemap.js +3 -3
- package/dist/esm/api/sessionCookie.d.ts +1 -1
- package/dist/esm/api/utils/authRateLimit.d.ts +1 -1
- package/dist/esm/api/utils/authRateLimit.js +1 -1
- package/dist/esm/api/utils/checkFailureCase.d.ts +1 -1
- package/dist/esm/api/utils/checkFailureCase.js +1 -1
- package/dist/esm/api/utils/checkOwnership.d.ts +2 -2
- package/dist/esm/api/utils/checkOwnership.js +5 -5
- package/dist/esm/api/utils/checkPermissions.d.ts +2 -2
- package/dist/esm/api/utils/checkPermissions.js +3 -3
- package/dist/esm/api/utils/dynamicData.d.ts +6 -5
- package/dist/esm/api/utils/dynamicData.d.ts.map +1 -1
- package/dist/esm/api/utils/dynamicData.js +13 -11
- package/dist/esm/api/utils/dynamicData.js.map +1 -1
- package/dist/esm/api/utils/getLanguages.d.ts +2 -2
- package/dist/esm/api/utils/getLanguages.js +2 -2
- package/dist/esm/api/utils/getLink.d.ts +2 -2
- package/dist/esm/api/utils/getLink.js +5 -5
- package/dist/esm/api/utils/getUser.d.ts +9 -7
- package/dist/esm/api/utils/getUser.d.ts.map +1 -1
- package/dist/esm/api/utils/getUser.js +4 -4
- package/dist/esm/api/utils/index.d.ts +24 -24
- package/dist/esm/api/utils/index.d.ts.map +1 -1
- package/dist/esm/api/utils/index.js +24 -24
- package/dist/esm/api/utils/index.js.map +1 -1
- package/dist/esm/api/utils/linkedIterator.d.ts +41 -0
- package/dist/esm/api/utils/linkedIterator.d.ts.map +1 -0
- package/dist/esm/api/utils/linkedIterator.js +157 -0
- package/dist/esm/api/utils/linkedIterator.js.map +1 -0
- package/dist/esm/api/utils/localeVariants.d.ts +1 -1
- package/dist/esm/api/utils/localeVariants.js +5 -5
- package/dist/esm/api/utils/mediaUploadToken.d.ts +1 -1
- package/dist/esm/api/utils/parseId.d.ts +1 -1
- package/dist/esm/api/utils/parseId.js +1 -1
- package/dist/esm/api/utils/passwords.js +1 -1
- package/dist/esm/api/utils/populates/populateLinks.d.ts +2 -2
- package/dist/esm/api/utils/populates/populateLinks.js +4 -4
- package/dist/esm/api/utils/populates/populateRelations.d.ts +2 -2
- package/dist/esm/api/utils/populates/populateRelations.js +6 -6
- package/dist/esm/api/utils/redirects/resolveRedirect.js +2 -2
- package/dist/esm/api/utils/requireContentType.d.ts +1 -1
- package/dist/esm/api/utils/requireContentType.js +2 -2
- package/dist/esm/api/utils/routes/revalidatePath.d.ts +1 -0
- package/dist/esm/api/utils/routes/revalidatePath.d.ts.map +1 -1
- package/dist/esm/api/utils/routes/revalidatePath.js +13 -5
- package/dist/esm/api/utils/routes/revalidatePath.js.map +1 -1
- package/dist/esm/api/utils/routes/routeDefinitions.d.ts +1 -1
- package/dist/esm/api/utils/routes/routeMapHelpers.d.ts +7 -6
- package/dist/esm/api/utils/routes/routeMapHelpers.d.ts.map +1 -1
- package/dist/esm/api/utils/routes/routeMapHelpers.js +8 -8
- package/dist/esm/api/utils/routes/syncConfiguredRoutes.d.ts +2 -2
- package/dist/esm/api/utils/routes/syncConfiguredRoutes.js +5 -5
- package/dist/esm/api/utils/routes/updateRoutesMap.d.ts +2 -2
- package/dist/esm/api/utils/routes/updateRoutesMap.js +5 -5
- package/dist/esm/api/utils/safeManagerQuery.d.ts +2 -2
- package/dist/esm/api/utils/safeManagerQuery.js +1 -1
- package/dist/esm/api/utils/sanitizeManagerOutput.d.ts +1 -1
- package/dist/esm/api/utils/sanitizeManagerOutput.js +1 -1
- package/dist/esm/api/utils/transformObjectIdsToStrings.js +1 -1
- package/dist/esm/api/utils/transformStringToObjectIds.js +1 -1
- package/dist/esm/api/utils/translate.d.ts +1 -1
- package/dist/esm/api/utils/translate.js +3 -3
- package/dist/esm/api/utils/validateModule.d.ts +1 -1
- package/dist/esm/api/utils/validateModule.js +2 -2
- package/dist/esm/bootstrapState.d.ts +9 -9
- package/dist/esm/client.d.ts +51 -50
- package/dist/esm/client.d.ts.map +1 -1
- package/dist/esm/client.js +30 -30
- package/dist/esm/client.js.map +1 -1
- package/dist/esm/contracts.d.ts +43 -43
- package/dist/esm/contracts.js +43 -43
- package/dist/esm/index.d.ts +41 -41
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +42 -42
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/internal-content-types/ApiOperation.d.ts +114 -114
- package/dist/esm/internal-content-types/ApiOperation.js +2 -2
- package/dist/esm/internal-content-types/Backup.d.ts +57 -57
- package/dist/esm/internal-content-types/Backup.js +2 -2
- package/dist/esm/internal-content-types/BackupDocument.d.ts +114 -114
- package/dist/esm/internal-content-types/BackupDocument.js +2 -2
- package/dist/esm/internal-content-types/ContentComment.d.ts +793 -788
- package/dist/esm/internal-content-types/ContentComment.d.ts.map +1 -1
- package/dist/esm/internal-content-types/ContentComment.js +3 -3
- package/dist/esm/internal-content-types/ContentVersion.d.ts +139 -139
- package/dist/esm/internal-content-types/ContentVersion.js +2 -2
- package/dist/esm/internal-content-types/HelloWorld.d.ts +30 -30
- package/dist/esm/internal-content-types/HelloWorld.js +2 -2
- package/dist/esm/internal-content-types/Language.d.ts +39 -39
- package/dist/esm/internal-content-types/Language.js +2 -2
- package/dist/esm/internal-content-types/LinkedIteratorTemplate.d.ts +551 -0
- package/dist/esm/internal-content-types/LinkedIteratorTemplate.d.ts.map +1 -0
- package/dist/esm/internal-content-types/LinkedIteratorTemplate.js +14 -0
- package/dist/esm/internal-content-types/LinkedIteratorTemplate.js.map +1 -0
- package/dist/esm/internal-content-types/LiteralTranslation.d.ts +59 -59
- package/dist/esm/internal-content-types/LiteralTranslation.js +2 -2
- package/dist/esm/internal-content-types/ManagerFavorite.d.ts +551 -547
- package/dist/esm/internal-content-types/ManagerFavorite.d.ts.map +1 -1
- package/dist/esm/internal-content-types/ManagerFavorite.js +3 -3
- package/dist/esm/internal-content-types/ManagerRole.d.ts +33 -33
- package/dist/esm/internal-content-types/ManagerRole.js +2 -2
- package/dist/esm/internal-content-types/ManagerRoleHooks.d.ts +2 -2
- package/dist/esm/internal-content-types/ManagerRoleHooks.js +3 -3
- package/dist/esm/internal-content-types/ManagerUser.d.ts +213 -212
- package/dist/esm/internal-content-types/ManagerUser.d.ts.map +1 -1
- package/dist/esm/internal-content-types/ManagerUser.js +3 -3
- package/dist/esm/internal-content-types/ManagerUserHooks.d.ts +2 -2
- package/dist/esm/internal-content-types/ManagerUserHooks.js +3 -3
- package/dist/esm/internal-content-types/Media.d.ts +261 -261
- package/dist/esm/internal-content-types/Media.js +3 -3
- package/dist/esm/internal-content-types/MediaFolder.d.ts +88 -88
- package/dist/esm/internal-content-types/MediaFolder.js +2 -2
- package/dist/esm/internal-content-types/MfaChallenge.d.ts +574 -570
- package/dist/esm/internal-content-types/MfaChallenge.d.ts.map +1 -1
- package/dist/esm/internal-content-types/MfaChallenge.js +3 -3
- package/dist/esm/internal-content-types/Migration.d.ts +133 -133
- package/dist/esm/internal-content-types/Migration.js +2 -2
- package/dist/esm/internal-content-types/MigrationLock.d.ts +16 -16
- package/dist/esm/internal-content-types/MigrationLock.js +2 -2
- package/dist/esm/internal-content-types/Page.d.ts +85 -85
- package/dist/esm/internal-content-types/Page.js +3 -3
- package/dist/esm/internal-content-types/PreviewSnapshot.d.ts +213 -213
- package/dist/esm/internal-content-types/PreviewSnapshot.js +2 -2
- package/dist/esm/internal-content-types/Redirect.d.ts +146 -146
- package/dist/esm/internal-content-types/Redirect.js +2 -2
- package/dist/esm/internal-content-types/RobotsRule.d.ts +103 -103
- package/dist/esm/internal-content-types/RobotsRule.js +2 -2
- package/dist/esm/internal-content-types/Route.d.ts +123 -123
- package/dist/esm/internal-content-types/Route.js +2 -2
- package/dist/esm/internal-content-types/RouteLayoutModule.d.ts +164 -164
- package/dist/esm/internal-content-types/RouteLayoutModule.js +2 -2
- package/dist/esm/internal-content-types/RouteLayoutModuleOverride.d.ts +143 -143
- package/dist/esm/internal-content-types/RouteLayoutModuleOverride.js +2 -2
- package/dist/esm/internal-content-types/RouteLocaleVariant.d.ts +170 -170
- package/dist/esm/internal-content-types/RouteLocaleVariant.js +2 -2
- package/dist/esm/internal-content-types/RouteMap.d.ts +144 -144
- package/dist/esm/internal-content-types/RouteMap.js +2 -2
- package/dist/esm/internal-content-types/RouteSettings.d.ts +116 -116
- package/dist/esm/internal-content-types/RouteSettings.js +3 -3
- package/dist/esm/internal-content-types/SchemaState.d.ts +65 -65
- package/dist/esm/internal-content-types/SchemaState.js +2 -2
- package/dist/esm/internal-content-types/Seo.d.ts +430 -430
- package/dist/esm/internal-content-types/Seo.js +2 -2
- package/dist/esm/internal-content-types/SeoSettings.d.ts +518 -518
- package/dist/esm/internal-content-types/SeoSettings.js +3 -3
- package/dist/esm/internal-content-types/Session.d.ts +537 -533
- package/dist/esm/internal-content-types/Session.d.ts.map +1 -1
- package/dist/esm/internal-content-types/Session.js +3 -3
- package/dist/esm/internal-content-types/UserMfa.d.ts +506 -502
- package/dist/esm/internal-content-types/UserMfa.d.ts.map +1 -1
- package/dist/esm/internal-content-types/UserMfa.js +3 -3
- package/dist/esm/internal-content-types/WebAuthnCredential.d.ts +628 -624
- package/dist/esm/internal-content-types/WebAuthnCredential.d.ts.map +1 -1
- package/dist/esm/internal-content-types/WebAuthnCredential.js +3 -3
- package/dist/esm/internal-content-types/WebAuthnRegChallenge.d.ts +566 -562
- package/dist/esm/internal-content-types/WebAuthnRegChallenge.d.ts.map +1 -1
- package/dist/esm/internal-content-types/WebAuthnRegChallenge.js +3 -3
- package/dist/esm/internal-content-types/index.d.ts +34 -33
- package/dist/esm/internal-content-types/index.d.ts.map +1 -1
- package/dist/esm/internal-content-types/index.js +34 -33
- package/dist/esm/internal-content-types/index.js.map +1 -1
- package/dist/esm/internal-content-types/syncAdminRole.d.ts +5 -4
- package/dist/esm/internal-content-types/syncAdminRole.d.ts.map +1 -1
- package/dist/esm/internal-content-types/syncAdminRole.js +4 -4
- package/dist/esm/lib/ContentType.d.ts +25 -11
- package/dist/esm/lib/ContentType.d.ts.map +1 -1
- package/dist/esm/lib/ContentType.js +29 -5
- package/dist/esm/lib/ContentType.js.map +1 -1
- package/dist/esm/lib/Permissions.d.ts +2 -2
- package/dist/esm/lib/Permissions.js +3 -3
- package/dist/esm/lib/Registry.d.ts +8 -6
- package/dist/esm/lib/Registry.d.ts.map +1 -1
- package/dist/esm/lib/Registry.js +2 -1
- package/dist/esm/lib/Registry.js.map +1 -1
- package/dist/esm/lib/errors/AppError.d.ts +1 -1
- package/dist/esm/lib/errors/AppError.js +1 -1
- package/dist/esm/lib/errors/index.d.ts +4 -4
- package/dist/esm/lib/errors/index.js +3 -3
- package/dist/esm/lib/errors/throwAppError.d.ts +1 -1
- package/dist/esm/lib/errors/throwAppError.js +3 -3
- package/dist/esm/lib/fields/Boolean.d.ts +1 -1
- package/dist/esm/lib/fields/Boolean.js +1 -1
- package/dist/esm/lib/fields/ContentReference.d.ts +2 -2
- package/dist/esm/lib/fields/ContentReference.js +2 -2
- package/dist/esm/lib/fields/Date.d.ts +1 -1
- package/dist/esm/lib/fields/Date.js +1 -1
- package/dist/esm/lib/fields/Field.d.ts +12 -12
- package/dist/esm/lib/fields/Fields.d.ts +13 -13
- package/dist/esm/lib/fields/Fields.js +13 -13
- package/dist/esm/lib/fields/File.d.ts +1 -1
- package/dist/esm/lib/fields/File.js +2 -2
- package/dist/esm/lib/fields/Iterator.d.ts +2 -2
- package/dist/esm/lib/fields/Iterator.js +3 -3
- package/dist/esm/lib/fields/Link.d.ts +1 -1
- package/dist/esm/lib/fields/Link.js +2 -2
- package/dist/esm/lib/fields/List.d.ts +1 -1
- package/dist/esm/lib/fields/List.js +2 -2
- package/dist/esm/lib/fields/Number.d.ts +1 -1
- package/dist/esm/lib/fields/Number.js +1 -1
- package/dist/esm/lib/fields/Relation.d.ts +3 -3
- package/dist/esm/lib/fields/Relation.js +3 -3
- package/dist/esm/lib/fields/Select.d.ts +1 -1
- package/dist/esm/lib/fields/Select.js +1 -1
- package/dist/esm/lib/fields/SelfRelation.d.ts +1 -1
- package/dist/esm/lib/fields/SelfRelation.js +2 -2
- package/dist/esm/lib/fields/SimpleList.d.ts +1 -1
- package/dist/esm/lib/fields/SimpleList.js +1 -1
- package/dist/esm/lib/fields/String.d.ts +1 -1
- package/dist/esm/lib/fields/String.js +3 -3
- package/dist/esm/lib/fields/index.d.ts +15 -15
- package/dist/esm/lib/fields/index.js +15 -15
- package/dist/esm/lib/hooks.d.ts +3 -3
- package/dist/esm/lib/routeableContent.js +1 -1
- package/dist/esm/lib/systemFields.d.ts +1 -0
- package/dist/esm/lib/systemFields.d.ts.map +1 -1
- package/dist/esm/lib/systemFields.js +1 -0
- package/dist/esm/lib/systemFields.js.map +1 -1
- package/dist/esm/lib/types/index.d.ts +2 -2
- package/dist/esm/lib/utils/getListField.d.ts +1 -1
- package/dist/esm/lib/utils/getSchemas.d.ts +1 -1
- package/dist/esm/lib/utils/getTranslation.d.ts +2 -2
- package/dist/esm/lib/utils/getTranslation.js +1 -1
- package/dist/esm/lib/utils/isTranslatableObject.d.ts +1 -1
- package/dist/esm/lib/utils/translateObject.d.ts +2 -2
- package/dist/esm/lib/utils/translateObject.js +3 -3
- package/dist/esm/literals/definitions.d.ts +1 -1
- package/dist/esm/literals/definitions.js +1 -1
- package/dist/esm/literals/index.d.ts +3 -3
- package/dist/esm/literals/index.js +3 -3
- package/dist/esm/literals/manager.d.ts +1 -1
- package/dist/esm/literals/manager.js +1 -1
- package/dist/esm/manager.d.ts +8 -3
- package/dist/esm/manager.d.ts.map +1 -1
- package/dist/esm/manager.js +1 -1
- package/dist/esm/media/imageOptimization.d.ts +1 -1
- package/dist/esm/media/imageOptimization.js +2 -2
- package/dist/esm/media/index.d.ts +4 -4
- package/dist/esm/media/index.js +3 -3
- package/dist/esm/media/mediaService.d.ts +1 -1
- package/dist/esm/orm/backups.js +5 -5
- package/dist/esm/orm/createIndexes.js +3 -3
- package/dist/esm/orm/database.js +3 -3
- package/dist/esm/orm/dbService.d.ts +6 -6
- package/dist/esm/orm/index.d.ts +2 -2
- package/dist/esm/orm/index.js +16 -16
- package/dist/esm/orm/migrations.d.ts +1 -1
- package/dist/esm/orm/migrations.js +4 -4
- package/dist/esm/orm/mongodbPeer.js +1 -1
- package/dist/esm/orm/operations/clear.d.ts +2 -2
- package/dist/esm/orm/operations/clear.js +1 -1
- package/dist/esm/orm/operations/create.d.ts +4 -4
- package/dist/esm/orm/operations/create.js +7 -7
- package/dist/esm/orm/operations/delete.d.ts +3 -3
- package/dist/esm/orm/operations/delete.js +5 -5
- package/dist/esm/orm/operations/find.d.ts +2 -2
- package/dist/esm/orm/operations/find.js +3 -3
- package/dist/esm/orm/operations/findDependencies.d.ts +2 -2
- package/dist/esm/orm/operations/findDependencies.js +4 -4
- package/dist/esm/orm/operations/get.d.ts +3 -3
- package/dist/esm/orm/operations/get.js +3 -3
- package/dist/esm/orm/operations/getAll.d.ts +2 -2
- package/dist/esm/orm/operations/getAll.js +2 -2
- package/dist/esm/orm/operations/list.d.ts +2 -2
- package/dist/esm/orm/operations/list.js +3 -3
- package/dist/esm/orm/operations/update.d.ts +5 -5
- package/dist/esm/orm/operations/update.js +8 -8
- package/dist/esm/orm/operations/updateMany.d.ts +4 -4
- package/dist/esm/orm/operations/updateMany.js +4 -4
- package/dist/esm/orm/operations/upsert.d.ts +3 -3
- package/dist/esm/orm/operations/upsert.js +4 -4
- package/dist/esm/orm/utils/deepDeleteNulls.js +1 -1
- package/dist/esm/orm/utils/parseId.d.ts +1 -1
- package/dist/esm/orm/utils/parseId.js +1 -1
- package/dist/esm/orm/utils/transformObjectIdsToStrings.js +1 -1
- package/dist/esm/orm/utils/transformStringToObjectIds.js +1 -1
- package/dist/esm/orm/versions.d.ts +1 -1
- package/dist/esm/orm/versions.js +7 -7
- package/dist/esm/plugins.d.ts +9 -9
- package/dist/esm/schemas/manager/comments.js +1 -1
- package/dist/esm/schemas/manager/create.d.ts +11 -0
- package/dist/esm/schemas/manager/create.d.ts.map +1 -1
- package/dist/esm/schemas/manager/create.js +2 -0
- package/dist/esm/schemas/manager/create.js.map +1 -1
- package/dist/esm/schemas/manager/linkedIterator.d.ts +41 -0
- package/dist/esm/schemas/manager/linkedIterator.d.ts.map +1 -0
- package/dist/esm/schemas/manager/linkedIterator.js +21 -0
- package/dist/esm/schemas/manager/linkedIterator.js.map +1 -0
- package/dist/esm/schemas/manager/literals/upsert.js +1 -1
- package/dist/esm/schemas/manager/localeVariants.d.ts +96 -96
- package/dist/esm/schemas/manager/localeVariants.js +1 -1
- package/dist/esm/schemas/manager/media/finalizeUpload.js +1 -1
- package/dist/esm/schemas/manager/media/getMediaUrl.js +1 -1
- package/dist/esm/schemas/manager/media/listFolders.js +1 -1
- package/dist/esm/schemas/manager/update.d.ts +11 -0
- package/dist/esm/schemas/manager/update.d.ts.map +1 -1
- package/dist/esm/schemas/manager/update.js +2 -0
- package/dist/esm/schemas/manager/update.js.map +1 -1
- package/dist/esm/schemas/web/page.d.ts +40 -40
- package/dist/esm/schemas/web/page.js +1 -1
- package/dist/esm/schemas/web/previewPage.d.ts +28 -28
- package/dist/esm/schemas/web/previewPage.js +1 -1
- package/dist/esm/translation/document.d.ts +3 -3
- package/dist/esm/translation/index.d.ts +4 -4
- package/dist/esm/translation/index.js +3 -3
- package/dist/esm/translation/translationService.d.ts +1 -1
- package/dist/esm/web/client.d.ts +1 -1
- package/dist/esm/web/client.js +1 -1
- package/dist/esm/web/index.d.ts +2 -2
- package/dist/esm/web/index.js +2 -2
- package/dist/esm/web/page.d.ts +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { LoginInput, LoginOutput } from "../../../../schemas/manager/auth/login
|
|
2
|
-
import type { RakunRequestContext } from "../../../context
|
|
1
|
+
import { LoginInput, LoginOutput } from "../../../../schemas/manager/auth/login";
|
|
2
|
+
import type { RakunRequestContext } from "../../../context";
|
|
3
3
|
export declare const loginHandler: ({ input, ctx, }: {
|
|
4
4
|
input: LoginInput;
|
|
5
5
|
ctx?: RakunRequestContext;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { randomBytes } from "crypto";
|
|
2
|
-
import { ManagerUser, UserMfa, MfaChallenge, Session, } from "../../../../internal-content-types
|
|
3
|
-
import { throwAppError } from "../../../../lib/errors
|
|
4
|
-
import { getMongoService } from "../../../../orm
|
|
5
|
-
import { SESSION_MAX_AGE_MS } from "../../../sessionCookie
|
|
6
|
-
import { assertAuthRateLimit, getRequestRateLimitIdentifier, resetAuthRateLimit, } from "../../../utils/authRateLimit
|
|
7
|
-
import { hashPassword, verifyStoredPassword } from "../../../utils/passwords
|
|
2
|
+
import { ManagerUser, UserMfa, MfaChallenge, Session, } from "../../../../internal-content-types";
|
|
3
|
+
import { throwAppError } from "../../../../lib/errors";
|
|
4
|
+
import { getMongoService } from "../../../../orm";
|
|
5
|
+
import { SESSION_MAX_AGE_MS } from "../../../sessionCookie";
|
|
6
|
+
import { assertAuthRateLimit, getRequestRateLimitIdentifier, resetAuthRateLimit, } from "../../../utils/authRateLimit";
|
|
7
|
+
import { hashPassword, verifyStoredPassword } from "../../../utils/passwords";
|
|
8
8
|
export const loginHandler = async ({ input, ctx, }) => {
|
|
9
9
|
const { username, password } = input;
|
|
10
10
|
const db = await getMongoService();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Session } from "../../../../internal-content-types
|
|
2
|
-
import { getMongoService } from "../../../../orm
|
|
3
|
-
import { getSessionCookie } from "../../../sessionCookie
|
|
1
|
+
import { Session } from "../../../../internal-content-types";
|
|
2
|
+
import { getMongoService } from "../../../../orm";
|
|
3
|
+
import { getSessionCookie } from "../../../sessionCookie";
|
|
4
4
|
const emptyToken = { token: "" };
|
|
5
5
|
export const logoutHandler = async ({ ctx }) => {
|
|
6
6
|
if (!ctx?.req?.cookies)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { MarkTourSeenInput } from "../../../../schemas/manager/auth/tutorials
|
|
2
|
-
import { RakunRequestContext } from "../../../context
|
|
1
|
+
import type { MarkTourSeenInput } from "../../../../schemas/manager/auth/tutorials";
|
|
2
|
+
import { RakunRequestContext } from "../../../context";
|
|
3
3
|
export declare const markTourSeenHandler: ({ input, ctx, }: {
|
|
4
4
|
input: MarkTourSeenInput;
|
|
5
5
|
ctx: RakunRequestContext;
|
|
@@ -13,18 +13,19 @@ export declare const markTourSeenHandler: ({ input, ctx, }: {
|
|
|
13
13
|
_type: "ManagerRole";
|
|
14
14
|
_id: string;
|
|
15
15
|
_schemaVersion?: number | undefined;
|
|
16
|
-
_visibility?: import("
|
|
17
|
-
_visibilityBeforeTrash?: Exclude<import("
|
|
16
|
+
_visibility?: import("../../../..").DocumentVisibility | undefined;
|
|
17
|
+
_visibilityBeforeTrash?: Exclude<import("../../../..").DocumentVisibility, "trash"> | undefined;
|
|
18
18
|
_trashed?: boolean | undefined;
|
|
19
19
|
_revision?: number | undefined;
|
|
20
20
|
_localeVariantGroupId?: string | undefined;
|
|
21
|
-
_localeVariantRole?: import("zod").infer<typeof import("
|
|
21
|
+
_localeVariantRole?: import("zod").infer<typeof import("../../../..").LocaleVariantRole> | undefined;
|
|
22
22
|
trashedAt?: Date | undefined;
|
|
23
23
|
trashedBy?: string | undefined;
|
|
24
24
|
createdAt?: Date | undefined;
|
|
25
25
|
updatedAt?: Date | undefined;
|
|
26
26
|
createdBy?: string | undefined;
|
|
27
27
|
updatedBy?: string | undefined;
|
|
28
|
+
_iteratorUnlinked?: boolean | undefined;
|
|
28
29
|
};
|
|
29
30
|
twoFactorEnabled: boolean;
|
|
30
31
|
_type: "ManagerUser";
|
|
@@ -39,18 +40,19 @@ export declare const markTourSeenHandler: ({ input, ctx, }: {
|
|
|
39
40
|
tutorialsPromptedAt?: Date | undefined;
|
|
40
41
|
seenTours?: (string | undefined)[] | undefined;
|
|
41
42
|
_schemaVersion?: number | undefined;
|
|
42
|
-
_visibility?: import("
|
|
43
|
-
_visibilityBeforeTrash?: Exclude<import("
|
|
43
|
+
_visibility?: import("../../../..").DocumentVisibility | undefined;
|
|
44
|
+
_visibilityBeforeTrash?: Exclude<import("../../../..").DocumentVisibility, "trash"> | undefined;
|
|
44
45
|
_trashed?: boolean | undefined;
|
|
45
46
|
_revision?: number | undefined;
|
|
46
47
|
_localeVariantGroupId?: string | undefined;
|
|
47
|
-
_localeVariantRole?: import("zod").infer<typeof import("
|
|
48
|
+
_localeVariantRole?: import("zod").infer<typeof import("../../../..").LocaleVariantRole> | undefined;
|
|
48
49
|
trashedAt?: Date | undefined;
|
|
49
50
|
trashedBy?: string | undefined;
|
|
50
51
|
createdAt?: Date | undefined;
|
|
51
52
|
updatedAt?: Date | undefined;
|
|
52
53
|
createdBy?: string | undefined;
|
|
53
54
|
updatedBy?: string | undefined;
|
|
55
|
+
_iteratorUnlinked?: boolean | undefined;
|
|
54
56
|
}>;
|
|
55
57
|
export declare const getUpdatedSeenTours: (seenTours: (string | undefined)[] | undefined, tourId: string) => (string | undefined)[];
|
|
56
58
|
//# sourceMappingURL=markTourSeen.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"markTourSeen.d.ts","sourceRoot":"","sources":["../../../../../../src/api/routes/manager/auth/markTourSeen.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4CAA4C,CAAC;AACpF,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAGvD,eAAO,MAAM,mBAAmB,GAAU,iBAGvC;IACD,KAAK,EAAE,iBAAiB,CAAC;IACzB,GAAG,EAAE,mBAAmB,CAAC;CAC1B
|
|
1
|
+
{"version":3,"file":"markTourSeen.d.ts","sourceRoot":"","sources":["../../../../../../src/api/routes/manager/auth/markTourSeen.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4CAA4C,CAAC;AACpF,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAGvD,eAAO,MAAM,mBAAmB,GAAU,iBAGvC;IACD,KAAK,EAAE,iBAAiB,CAAC;IACzB,GAAG,EAAE,mBAAmB,CAAC;CAC1B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWA,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAC9B,WAAW,CAAC,MAAM,GAAG,SAAS,CAAC,EAAE,GAAG,SAAS,EAC7C,QAAQ,MAAM,2BACwD,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ManagerUser } from "../../../../internal-content-types
|
|
2
|
-
import { getMongoService } from "../../../../orm
|
|
3
|
-
import { populateRelations } from "../../../utils/populates/populateRelations
|
|
1
|
+
import { ManagerUser } from "../../../../internal-content-types";
|
|
2
|
+
import { getMongoService } from "../../../../orm";
|
|
3
|
+
import { populateRelations } from "../../../utils/populates/populateRelations";
|
|
4
4
|
export const markTourSeenHandler = async ({ input, ctx, }) => {
|
|
5
5
|
const user = ctx.getUser();
|
|
6
6
|
const db = await getMongoService();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { RakunRequestContext } from "../../../../context
|
|
2
|
-
import { ConfirmTotpInput } from "../../../../../schemas/manager/auth/totp/confirmTotp
|
|
1
|
+
import { RakunRequestContext } from "../../../../context";
|
|
2
|
+
import { ConfirmTotpInput } from "../../../../../schemas/manager/auth/totp/confirmTotp";
|
|
3
3
|
export declare const confirmTotpHandler: ({ input, ctx, }: {
|
|
4
4
|
input: ConfirmTotpInput;
|
|
5
5
|
ctx: RakunRequestContext;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { UserMfa, ManagerUser } from "../../../../../internal-content-types
|
|
2
|
-
import { getMongoService } from "../../../../../orm
|
|
1
|
+
import { UserMfa, ManagerUser } from "../../../../../internal-content-types";
|
|
2
|
+
import { getMongoService } from "../../../../../orm";
|
|
3
3
|
import * as OTPAuth from "otpauth";
|
|
4
4
|
export const confirmTotpHandler = async ({ input, ctx, }) => {
|
|
5
5
|
const db = await getMongoService();
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { randomBytes } from "crypto";
|
|
2
2
|
import * as OTPAuth from "otpauth";
|
|
3
3
|
import QRCode from "qrcode";
|
|
4
|
-
import { UserMfa, ManagerUser } from "../../../../../internal-content-types
|
|
5
|
-
import { throwAppError } from "../../../../../lib/errors
|
|
6
|
-
import { getMongoService } from "../../../../../orm
|
|
4
|
+
import { UserMfa, ManagerUser } from "../../../../../internal-content-types";
|
|
5
|
+
import { throwAppError } from "../../../../../lib/errors";
|
|
6
|
+
import { getMongoService } from "../../../../../orm";
|
|
7
7
|
export const enrollTotpHandler = async ({ ctx, }) => {
|
|
8
8
|
const db = await getMongoService();
|
|
9
9
|
const user = ctx.getUser();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { VerifyTotpInput } from "../../../../../schemas/manager/auth/totp/verifyTotp
|
|
1
|
+
import { VerifyTotpInput } from "../../../../../schemas/manager/auth/totp/verifyTotp";
|
|
2
2
|
export declare const verifyTotpHandler: ({ input, }: {
|
|
3
3
|
input: VerifyTotpInput;
|
|
4
4
|
}) => Promise<{
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as OTPAuth from "otpauth";
|
|
2
|
-
import { MfaChallenge, ManagerUser, UserMfa, Session, } from "../../../../../internal-content-types
|
|
3
|
-
import { throwAppError } from "../../../../../lib/errors
|
|
4
|
-
import { getMongoService } from "../../../../../orm
|
|
5
|
-
import { SESSION_MAX_AGE_MS } from "../../../../sessionCookie
|
|
6
|
-
import { assertAuthRateLimit, resetAuthRateLimit, } from "../../../../utils/authRateLimit
|
|
2
|
+
import { MfaChallenge, ManagerUser, UserMfa, Session, } from "../../../../../internal-content-types";
|
|
3
|
+
import { throwAppError } from "../../../../../lib/errors";
|
|
4
|
+
import { getMongoService } from "../../../../../orm";
|
|
5
|
+
import { SESSION_MAX_AGE_MS } from "../../../../sessionCookie";
|
|
6
|
+
import { assertAuthRateLimit, resetAuthRateLimit, } from "../../../../utils/authRateLimit";
|
|
7
7
|
export const verifyTotpHandler = async ({ input, }) => {
|
|
8
8
|
const db = await getMongoService();
|
|
9
9
|
const { challenge, code } = input;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { UpdateAccountInput } from "../../../../schemas/manager/auth/accountInfo
|
|
2
|
-
import { RakunRequestContext } from "../../../context
|
|
1
|
+
import { UpdateAccountInput } from "../../../../schemas/manager/auth/accountInfo";
|
|
2
|
+
import { RakunRequestContext } from "../../../context";
|
|
3
3
|
export declare const updateAccountHandler: ({ input, ctx, }: {
|
|
4
4
|
input: UpdateAccountInput;
|
|
5
5
|
ctx: RakunRequestContext;
|
|
@@ -13,18 +13,19 @@ export declare const updateAccountHandler: ({ input, ctx, }: {
|
|
|
13
13
|
_type: "ManagerRole";
|
|
14
14
|
_id: string;
|
|
15
15
|
_schemaVersion?: number | undefined;
|
|
16
|
-
_visibility?: import("
|
|
17
|
-
_visibilityBeforeTrash?: Exclude<import("
|
|
16
|
+
_visibility?: import("../../../..").DocumentVisibility | undefined;
|
|
17
|
+
_visibilityBeforeTrash?: Exclude<import("../../../..").DocumentVisibility, "trash"> | undefined;
|
|
18
18
|
_trashed?: boolean | undefined;
|
|
19
19
|
_revision?: number | undefined;
|
|
20
20
|
_localeVariantGroupId?: string | undefined;
|
|
21
|
-
_localeVariantRole?: import("zod").infer<typeof import("
|
|
21
|
+
_localeVariantRole?: import("zod").infer<typeof import("../../../..").LocaleVariantRole> | undefined;
|
|
22
22
|
trashedAt?: Date | undefined;
|
|
23
23
|
trashedBy?: string | undefined;
|
|
24
24
|
createdAt?: Date | undefined;
|
|
25
25
|
updatedAt?: Date | undefined;
|
|
26
26
|
createdBy?: string | undefined;
|
|
27
27
|
updatedBy?: string | undefined;
|
|
28
|
+
_iteratorUnlinked?: boolean | undefined;
|
|
28
29
|
};
|
|
29
30
|
twoFactorEnabled: boolean;
|
|
30
31
|
_type: "ManagerUser";
|
|
@@ -39,17 +40,18 @@ export declare const updateAccountHandler: ({ input, ctx, }: {
|
|
|
39
40
|
tutorialsPromptedAt?: Date | undefined;
|
|
40
41
|
seenTours?: (string | undefined)[] | undefined;
|
|
41
42
|
_schemaVersion?: number | undefined;
|
|
42
|
-
_visibility?: import("
|
|
43
|
-
_visibilityBeforeTrash?: Exclude<import("
|
|
43
|
+
_visibility?: import("../../../..").DocumentVisibility | undefined;
|
|
44
|
+
_visibilityBeforeTrash?: Exclude<import("../../../..").DocumentVisibility, "trash"> | undefined;
|
|
44
45
|
_trashed?: boolean | undefined;
|
|
45
46
|
_revision?: number | undefined;
|
|
46
47
|
_localeVariantGroupId?: string | undefined;
|
|
47
|
-
_localeVariantRole?: import("zod").infer<typeof import("
|
|
48
|
+
_localeVariantRole?: import("zod").infer<typeof import("../../../..").LocaleVariantRole> | undefined;
|
|
48
49
|
trashedAt?: Date | undefined;
|
|
49
50
|
trashedBy?: string | undefined;
|
|
50
51
|
createdAt?: Date | undefined;
|
|
51
52
|
updatedAt?: Date | undefined;
|
|
52
53
|
createdBy?: string | undefined;
|
|
53
54
|
updatedBy?: string | undefined;
|
|
55
|
+
_iteratorUnlinked?: boolean | undefined;
|
|
54
56
|
}>;
|
|
55
57
|
//# sourceMappingURL=updateAccount.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updateAccount.d.ts","sourceRoot":"","sources":["../../../../../../src/api/routes/manager/auth/updateAccount.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,kBAAkB,EACnB,MAAM,8CAA8C,CAAC;AACtD,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAGvD,eAAO,MAAM,oBAAoB,GAAU,iBAGxC;IACD,KAAK,EAAE,kBAAkB,CAAC;IAC1B,GAAG,EAAE,mBAAmB,CAAC;CAC1B
|
|
1
|
+
{"version":3,"file":"updateAccount.d.ts","sourceRoot":"","sources":["../../../../../../src/api/routes/manager/auth/updateAccount.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,kBAAkB,EACnB,MAAM,8CAA8C,CAAC;AACtD,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAGvD,eAAO,MAAM,oBAAoB,GAAU,iBAGxC;IACD,KAAK,EAAE,kBAAkB,CAAC;IAC1B,GAAG,EAAE,mBAAmB,CAAC;CAC1B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuBA,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ManagerUser, Media } from "../../../../internal-content-types
|
|
2
|
-
import { getMongoService } from "../../../../orm
|
|
3
|
-
import { populateRelations } from "../../../utils/populates/populateRelations
|
|
1
|
+
import { ManagerUser, Media } from "../../../../internal-content-types";
|
|
2
|
+
import { getMongoService } from "../../../../orm";
|
|
3
|
+
import { populateRelations } from "../../../utils/populates/populateRelations";
|
|
4
4
|
export const updateAccountHandler = async ({ input, ctx, }) => {
|
|
5
5
|
const user = ctx.getUser();
|
|
6
6
|
const db = await getMongoService();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { RakunRequestContext } from "../../../context
|
|
2
|
-
import { UpdatePasswordInput } from "../../../../schemas/manager/updatePassword
|
|
1
|
+
import { RakunRequestContext } from "../../../context";
|
|
2
|
+
import { UpdatePasswordInput } from "../../../../schemas/manager/updatePassword";
|
|
3
3
|
export declare const updatePasswordHandler: ({ input, ctx, }: {
|
|
4
4
|
input: UpdatePasswordInput;
|
|
5
5
|
ctx: RakunRequestContext;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ManagerUser, Session } from "../../../../internal-content-types
|
|
2
|
-
import { throwAppError } from "../../../../lib/errors
|
|
3
|
-
import { getMongoService } from "../../../../orm
|
|
4
|
-
import { getSessionCookie } from "../../../sessionCookie
|
|
5
|
-
import { verifyStoredPassword } from "../../../utils/passwords
|
|
1
|
+
import { ManagerUser, Session } from "../../../../internal-content-types";
|
|
2
|
+
import { throwAppError } from "../../../../lib/errors";
|
|
3
|
+
import { getMongoService } from "../../../../orm";
|
|
4
|
+
import { getSessionCookie } from "../../../sessionCookie";
|
|
5
|
+
import { verifyStoredPassword } from "../../../utils/passwords";
|
|
6
6
|
export const updatePasswordHandler = async ({ input, ctx, }) => {
|
|
7
7
|
const db = await getMongoService();
|
|
8
8
|
const user = ctx.getUser();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { UpdateTutorialPreferencesInput } from "../../../../schemas/manager/auth/tutorials
|
|
2
|
-
import { RakunRequestContext } from "../../../context
|
|
1
|
+
import type { UpdateTutorialPreferencesInput } from "../../../../schemas/manager/auth/tutorials";
|
|
2
|
+
import { RakunRequestContext } from "../../../context";
|
|
3
3
|
export declare const updateTutorialPreferencesHandler: ({ input, ctx, }: {
|
|
4
4
|
input: UpdateTutorialPreferencesInput;
|
|
5
5
|
ctx: RakunRequestContext;
|
|
@@ -13,18 +13,19 @@ export declare const updateTutorialPreferencesHandler: ({ input, ctx, }: {
|
|
|
13
13
|
_type: "ManagerRole";
|
|
14
14
|
_id: string;
|
|
15
15
|
_schemaVersion?: number | undefined;
|
|
16
|
-
_visibility?: import("
|
|
17
|
-
_visibilityBeforeTrash?: Exclude<import("
|
|
16
|
+
_visibility?: import("../../../..").DocumentVisibility | undefined;
|
|
17
|
+
_visibilityBeforeTrash?: Exclude<import("../../../..").DocumentVisibility, "trash"> | undefined;
|
|
18
18
|
_trashed?: boolean | undefined;
|
|
19
19
|
_revision?: number | undefined;
|
|
20
20
|
_localeVariantGroupId?: string | undefined;
|
|
21
|
-
_localeVariantRole?: import("zod").infer<typeof import("
|
|
21
|
+
_localeVariantRole?: import("zod").infer<typeof import("../../../..").LocaleVariantRole> | undefined;
|
|
22
22
|
trashedAt?: Date | undefined;
|
|
23
23
|
trashedBy?: string | undefined;
|
|
24
24
|
createdAt?: Date | undefined;
|
|
25
25
|
updatedAt?: Date | undefined;
|
|
26
26
|
createdBy?: string | undefined;
|
|
27
27
|
updatedBy?: string | undefined;
|
|
28
|
+
_iteratorUnlinked?: boolean | undefined;
|
|
28
29
|
};
|
|
29
30
|
twoFactorEnabled: boolean;
|
|
30
31
|
_type: "ManagerUser";
|
|
@@ -39,18 +40,19 @@ export declare const updateTutorialPreferencesHandler: ({ input, ctx, }: {
|
|
|
39
40
|
tutorialsPromptedAt?: Date | undefined;
|
|
40
41
|
seenTours?: (string | undefined)[] | undefined;
|
|
41
42
|
_schemaVersion?: number | undefined;
|
|
42
|
-
_visibility?: import("
|
|
43
|
-
_visibilityBeforeTrash?: Exclude<import("
|
|
43
|
+
_visibility?: import("../../../..").DocumentVisibility | undefined;
|
|
44
|
+
_visibilityBeforeTrash?: Exclude<import("../../../..").DocumentVisibility, "trash"> | undefined;
|
|
44
45
|
_trashed?: boolean | undefined;
|
|
45
46
|
_revision?: number | undefined;
|
|
46
47
|
_localeVariantGroupId?: string | undefined;
|
|
47
|
-
_localeVariantRole?: import("zod").infer<typeof import("
|
|
48
|
+
_localeVariantRole?: import("zod").infer<typeof import("../../../..").LocaleVariantRole> | undefined;
|
|
48
49
|
trashedAt?: Date | undefined;
|
|
49
50
|
trashedBy?: string | undefined;
|
|
50
51
|
createdAt?: Date | undefined;
|
|
51
52
|
updatedAt?: Date | undefined;
|
|
52
53
|
createdBy?: string | undefined;
|
|
53
54
|
updatedBy?: string | undefined;
|
|
55
|
+
_iteratorUnlinked?: boolean | undefined;
|
|
54
56
|
}>;
|
|
55
57
|
export declare const createTutorialPreferencesUpdate: (input: UpdateTutorialPreferencesInput, now?: Date) => {
|
|
56
58
|
tutorialsEnabled: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updateTutorialPreferences.d.ts","sourceRoot":"","sources":["../../../../../../src/api/routes/manager/auth/updateTutorialPreferences.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,4CAA4C,CAAC;AACjG,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAGvD,eAAO,MAAM,gCAAgC,GAAU,iBAGpD;IACD,KAAK,EAAE,8BAA8B,CAAC;IACtC,GAAG,EAAE,mBAAmB,CAAC;CAC1B
|
|
1
|
+
{"version":3,"file":"updateTutorialPreferences.d.ts","sourceRoot":"","sources":["../../../../../../src/api/routes/manager/auth/updateTutorialPreferences.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,4CAA4C,CAAC;AACjG,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAGvD,eAAO,MAAM,gCAAgC,GAAU,iBAGpD;IACD,KAAK,EAAE,8BAA8B,CAAC;IACtC,GAAG,EAAE,mBAAmB,CAAC;CAC1B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAaA,CAAC;AAEF,eAAO,MAAM,+BAA+B,GAC1C,OAAO,8BAA8B,EACrC,UAAgB;;;CAIhB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ManagerUser } from "../../../../internal-content-types
|
|
2
|
-
import { getMongoService } from "../../../../orm
|
|
3
|
-
import { populateRelations } from "../../../utils/populates/populateRelations
|
|
1
|
+
import { ManagerUser } from "../../../../internal-content-types";
|
|
2
|
+
import { getMongoService } from "../../../../orm";
|
|
3
|
+
import { populateRelations } from "../../../utils/populates/populateRelations";
|
|
4
4
|
export const updateTutorialPreferencesHandler = async ({ input, ctx, }) => {
|
|
5
5
|
const user = ctx.getUser();
|
|
6
6
|
const db = await getMongoService();
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { generateAuthenticationOptions } from "@simplewebauthn/server";
|
|
2
|
-
import { MfaChallenge, WebAuthnCredential, } from "../../../../../internal-content-types
|
|
3
|
-
import { throwAppError } from "../../../../../lib/errors
|
|
4
|
-
import { getMongoService } from "../../../../../orm
|
|
5
|
-
import { RP_ID, toBase64URL } from "./share
|
|
2
|
+
import { MfaChallenge, WebAuthnCredential, } from "../../../../../internal-content-types";
|
|
3
|
+
import { throwAppError } from "../../../../../lib/errors";
|
|
4
|
+
import { getMongoService } from "../../../../../orm";
|
|
5
|
+
import { RP_ID, toBase64URL } from "./share";
|
|
6
6
|
export const webauthnAuthOptionsHandler = async ({ input, }) => {
|
|
7
7
|
const db = await getMongoService();
|
|
8
8
|
const ch = await db.find(MfaChallenge, { token: input.challengeToken });
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { verifyAuthenticationResponse, } from "@simplewebauthn/server";
|
|
2
|
-
import { ORIGIN, RP_ID, toBase64URL } from "./share
|
|
3
|
-
import { MfaChallenge, WebAuthnCredential, ManagerUser, Session, } from "../../../../../internal-content-types
|
|
4
|
-
import { throwAppError } from "../../../../../lib/errors
|
|
5
|
-
import { getMongoService } from "../../../../../orm
|
|
6
|
-
import { SESSION_MAX_AGE_MS } from "../../../../sessionCookie
|
|
7
|
-
import { assertAuthRateLimit, resetAuthRateLimit, } from "../../../../utils/authRateLimit
|
|
2
|
+
import { ORIGIN, RP_ID, toBase64URL } from "./share";
|
|
3
|
+
import { MfaChallenge, WebAuthnCredential, ManagerUser, Session, } from "../../../../../internal-content-types";
|
|
4
|
+
import { throwAppError } from "../../../../../lib/errors";
|
|
5
|
+
import { getMongoService } from "../../../../../orm";
|
|
6
|
+
import { SESSION_MAX_AGE_MS } from "../../../../sessionCookie";
|
|
7
|
+
import { assertAuthRateLimit, resetAuthRateLimit, } from "../../../../utils/authRateLimit";
|
|
8
8
|
export const webauthnAuthVerifyHandler = async ({ input, }) => {
|
|
9
9
|
const db = await getMongoService();
|
|
10
10
|
const rateLimitKey = `mfa:webauthn:${input.challengeToken}`;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { RakunRequestContext } from "../../../../context
|
|
2
|
-
import { WebauthnRegisterOptionsInput } from "../../../../../schemas/manager/auth/webauthn/webauthnRegisterOptions
|
|
1
|
+
import { RakunRequestContext } from "../../../../context";
|
|
2
|
+
import { WebauthnRegisterOptionsInput } from "../../../../../schemas/manager/auth/webauthn/webauthnRegisterOptions";
|
|
3
3
|
export declare const webauthnRegisterOptionsHandler: ({ ctx, input, }: {
|
|
4
4
|
ctx: RakunRequestContext;
|
|
5
5
|
input: WebauthnRegisterOptionsInput;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { randomBytes } from "crypto";
|
|
2
2
|
import { generateRegistrationOptions } from "@simplewebauthn/server";
|
|
3
|
-
import { RP_ID, toBase64URL } from "./share
|
|
4
|
-
import { WebAuthnCredential, WebAuthnRegChallenge, ManagerUser, } from "../../../../../internal-content-types
|
|
5
|
-
import { getMongoService } from "../../../../../orm
|
|
3
|
+
import { RP_ID, toBase64URL } from "./share";
|
|
4
|
+
import { WebAuthnCredential, WebAuthnRegChallenge, ManagerUser, } from "../../../../../internal-content-types";
|
|
5
|
+
import { getMongoService } from "../../../../../orm";
|
|
6
6
|
const RP_NAME = "CMS";
|
|
7
7
|
export const webauthnRegisterOptionsHandler = async ({ ctx, input, }) => {
|
|
8
8
|
const db = await getMongoService();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RegistrationResponseJSON } from "@simplewebauthn/server";
|
|
2
|
-
import { RakunRequestContext } from "../../../../context
|
|
2
|
+
import { RakunRequestContext } from "../../../../context";
|
|
3
3
|
export declare const webauthnRegisterVerifyHandler: ({ ctx, input, }: {
|
|
4
4
|
ctx: RakunRequestContext;
|
|
5
5
|
input: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { verifyRegistrationResponse, } from "@simplewebauthn/server";
|
|
2
|
-
import { ORIGIN, RP_ID, toB64 } from "./share
|
|
3
|
-
import { WebAuthnRegChallenge, WebAuthnCredential, ManagerUser, UserMfa, } from "../../../../../internal-content-types
|
|
4
|
-
import { throwAppError } from "../../../../../lib/errors
|
|
5
|
-
import { getMongoService } from "../../../../../orm
|
|
2
|
+
import { ORIGIN, RP_ID, toB64 } from "./share";
|
|
3
|
+
import { WebAuthnRegChallenge, WebAuthnCredential, ManagerUser, UserMfa, } from "../../../../../internal-content-types";
|
|
4
|
+
import { throwAppError } from "../../../../../lib/errors";
|
|
5
|
+
import { getMongoService } from "../../../../../orm";
|
|
6
6
|
const toBase64URL = (buf) => buf.toString("base64url");
|
|
7
7
|
export const webauthnRegisterVerifyHandler = async ({ ctx, input, }) => {
|
|
8
8
|
const db = await getMongoService();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { RakunRequestContext } from "../../../context
|
|
2
|
-
import { BackupRecord, CreateBackupInput } from "../../../../schemas/manager/backups
|
|
1
|
+
import { RakunRequestContext } from "../../../context";
|
|
2
|
+
import { BackupRecord, CreateBackupInput } from "../../../../schemas/manager/backups";
|
|
3
3
|
export declare const createBackupHandler: ({ input, ctx, }: {
|
|
4
4
|
input: CreateBackupInput;
|
|
5
5
|
ctx: RakunRequestContext;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { getMongoService } from "../../../../orm
|
|
2
|
-
import { checkPermissions } from "../../../utils/checkPermissions
|
|
1
|
+
import { getMongoService } from "../../../../orm";
|
|
2
|
+
import { checkPermissions } from "../../../utils/checkPermissions";
|
|
3
3
|
export const createBackupHandler = async ({ input, ctx, }) => {
|
|
4
4
|
const user = ctx.getUser();
|
|
5
5
|
checkPermissions(user, ["content.Backup.updateAny"]);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { RakunRequestContext } from "../../../context
|
|
2
|
-
import { ListBackupsOutput } from "../../../../schemas/manager/backups
|
|
1
|
+
import { RakunRequestContext } from "../../../context";
|
|
2
|
+
import { ListBackupsOutput } from "../../../../schemas/manager/backups";
|
|
3
3
|
export declare const listBackupsHandler: ({ ctx, }: {
|
|
4
4
|
ctx: RakunRequestContext;
|
|
5
5
|
}) => Promise<ListBackupsOutput>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { getMongoService } from "../../../../orm
|
|
2
|
-
import { checkPermissions } from "../../../utils/checkPermissions
|
|
1
|
+
import { getMongoService } from "../../../../orm";
|
|
2
|
+
import { checkPermissions } from "../../../utils/checkPermissions";
|
|
3
3
|
export const listBackupsHandler = async ({ ctx, }) => {
|
|
4
4
|
const user = ctx.getUser();
|
|
5
5
|
checkPermissions(user, ["content.Backup.readAny"]);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { RakunRequestContext } from "../../../context
|
|
2
|
-
import { RestoreBackupInput, RestoreBackupOutput } from "../../../../schemas/manager/backups
|
|
1
|
+
import { RakunRequestContext } from "../../../context";
|
|
2
|
+
import { RestoreBackupInput, RestoreBackupOutput } from "../../../../schemas/manager/backups";
|
|
3
3
|
export declare const restoreBackupHandler: ({ input, ctx, }: {
|
|
4
4
|
input: RestoreBackupInput;
|
|
5
5
|
ctx: RakunRequestContext;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Logger } from "../../../../lib/Logger
|
|
2
|
-
import { syncAdminRole } from "../../../../internal-content-types/syncAdminRole
|
|
3
|
-
import { getMongoService } from "../../../../orm
|
|
4
|
-
import { checkPermissions } from "../../../utils/checkPermissions
|
|
1
|
+
import { Logger } from "../../../../lib/Logger";
|
|
2
|
+
import { syncAdminRole } from "../../../../internal-content-types/syncAdminRole";
|
|
3
|
+
import { getMongoService } from "../../../../orm";
|
|
4
|
+
import { checkPermissions } from "../../../utils/checkPermissions";
|
|
5
5
|
export const restoreBackupHandler = async ({ input, ctx, }) => {
|
|
6
6
|
const user = ctx.getUser();
|
|
7
7
|
checkPermissions(user, ["content.Backup.updateAny"]);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { CreateCommentInput, CreateCommentOutput, ListCommentsInput, ListCommentsOutput, ToggleCommentReactionInput, ToggleCommentReactionOutput } from "../../../schemas/manager/comments
|
|
2
|
-
import type { RakunRequestContext } from "../../context
|
|
1
|
+
import type { CreateCommentInput, CreateCommentOutput, ListCommentsInput, ListCommentsOutput, ToggleCommentReactionInput, ToggleCommentReactionOutput } from "../../../schemas/manager/comments";
|
|
2
|
+
import type { RakunRequestContext } from "../../context";
|
|
3
3
|
export declare const listCommentsHandler: ({ input, ctx, }: {
|
|
4
4
|
input: ListCommentsInput;
|
|
5
5
|
ctx: RakunRequestContext;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ContentComment, ManagerUser } from "../../../internal-content-types
|
|
2
|
-
import { throwAppError } from "../../../lib/errors
|
|
3
|
-
import { getMongoService } from "../../../orm
|
|
4
|
-
import { checkOwnership } from "../../utils/checkOwnership
|
|
5
|
-
import { requireContentType } from "../../utils/requireContentType
|
|
6
|
-
import { fallbackMentionUser, toMentionUser, } from "./users
|
|
1
|
+
import { ContentComment, ManagerUser } from "../../../internal-content-types";
|
|
2
|
+
import { throwAppError } from "../../../lib/errors";
|
|
3
|
+
import { getMongoService } from "../../../orm";
|
|
4
|
+
import { checkOwnership } from "../../utils/checkOwnership";
|
|
5
|
+
import { requireContentType } from "../../utils/requireContentType";
|
|
6
|
+
import { fallbackMentionUser, toMentionUser, } from "./users";
|
|
7
7
|
const DEFAULT_COMMENT_LIMIT = 100;
|
|
8
8
|
const MAX_COMMENT_LIMIT = 200;
|
|
9
9
|
const REACTION_KEY_SEPARATOR = ":";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ContentTypeInput } from "../../../schemas/manager/contentType
|
|
2
|
-
import type { RakunRequestContext } from "../../context
|
|
1
|
+
import type { ContentTypeInput } from "../../../schemas/manager/contentType";
|
|
2
|
+
import type { RakunRequestContext } from "../../context";
|
|
3
3
|
export declare const contentTypeHandler: ({ input, ctx, }: {
|
|
4
4
|
input: ContentTypeInput;
|
|
5
5
|
ctx: RakunRequestContext;
|
|
@@ -21,9 +21,9 @@ export declare const contentTypeHandler: ({ input, ctx, }: {
|
|
|
21
21
|
listFields: string[] | undefined;
|
|
22
22
|
isHiddenFromManager: boolean | undefined;
|
|
23
23
|
schemaVersion: number | undefined;
|
|
24
|
-
versioning: boolean | import("
|
|
24
|
+
versioning: boolean | import("../../..").VersioningOptions | undefined;
|
|
25
25
|
documentVisibility: boolean | undefined;
|
|
26
|
-
permissions: import("../../../lib/ContentType
|
|
26
|
+
permissions: import("../../../lib/ContentType").ContentTypePermissions | undefined;
|
|
27
27
|
dynamicData: boolean | {
|
|
28
28
|
fields?: string[] | undefined;
|
|
29
29
|
lists?: string[] | undefined;
|
|
@@ -31,6 +31,7 @@ export declare const contentTypeHandler: ({ input, ctx, }: {
|
|
|
31
31
|
dynamicDataSource: boolean | undefined;
|
|
32
32
|
comments: boolean | undefined;
|
|
33
33
|
hasIterator: boolean;
|
|
34
|
+
linkedIterator: boolean;
|
|
34
35
|
hasSeo: boolean;
|
|
35
36
|
routes: {
|
|
36
37
|
key: string;
|
|
@@ -40,12 +41,12 @@ export declare const contentTypeHandler: ({ input, ctx, }: {
|
|
|
40
41
|
fields: {
|
|
41
42
|
[k: string]: {
|
|
42
43
|
schema: undefined;
|
|
43
|
-
config: ReturnType<import("
|
|
44
|
-
isRequired: ReturnType<import("
|
|
45
|
-
isTranslatable: ReturnType<import("
|
|
46
|
-
visibility: ReturnType<import("
|
|
47
|
-
isDynamic: ReturnType<import("
|
|
48
|
-
condition: ReturnType<import("
|
|
44
|
+
config: ReturnType<import("../../..").AnyField["getConfig"]>;
|
|
45
|
+
isRequired: ReturnType<import("../../..").AnyField["getIsRequired"]>;
|
|
46
|
+
isTranslatable: ReturnType<import("../../..").AnyField["getIsTranslatable"]>;
|
|
47
|
+
visibility: ReturnType<import("../../..").AnyField["getVisibility"]>;
|
|
48
|
+
isDynamic: ReturnType<import("../../..").AnyField["getIsDynamic"]>;
|
|
49
|
+
condition: ReturnType<import("../../..").AnyField["getCondition"]>;
|
|
49
50
|
} & Record<string, unknown>;
|
|
50
51
|
};
|
|
51
52
|
} | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contentType.d.ts","sourceRoot":"","sources":["../../../../../src/api/routes/manager/contentType.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAM7E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAGzD,eAAO,MAAM,kBAAkB,GAAI,iBAGhC;IACD,KAAK,EAAE,gBAAgB,CAAC;IACxB,GAAG,EAAE,mBAAmB,CAAC;CAC1B
|
|
1
|
+
{"version":3,"file":"contentType.d.ts","sourceRoot":"","sources":["../../../../../src/api/routes/manager/contentType.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAM7E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAGzD,eAAO,MAAM,kBAAkB,GAAI,iBAGhC;IACD,KAAK,EAAE,gBAAgB,CAAC;IACxB,GAAG,EAAE,mBAAmB,CAAC;CAC1B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAaA,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { encodeContentTypeForManager, getContentTypeByName, } from "../../../lib/Registry
|
|
2
|
-
import { getContentPermission } from "../../../lib/Permissions
|
|
3
|
-
import { checkAnyPermissions } from "../../utils/checkPermissions
|
|
1
|
+
import { encodeContentTypeForManager, getContentTypeByName, } from "../../../lib/Registry";
|
|
2
|
+
import { getContentPermission } from "../../../lib/Permissions";
|
|
3
|
+
import { checkAnyPermissions } from "../../utils/checkPermissions";
|
|
4
4
|
export const contentTypeHandler = ({ input, ctx, }) => {
|
|
5
5
|
const contentType = getContentTypeByName(input.contentType);
|
|
6
6
|
if (!contentType) {
|