@rakun-kit/core 1.0.8 → 1.1.1
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/cjs/api/operations/manager.js +8 -5
- package/dist/cjs/api/operations/manager.js.map +1 -1
- package/dist/cjs/api/routes/manager/{auth/media → media}/createFolder.js +7 -7
- package/dist/cjs/api/routes/manager/media/createFolder.js.map +1 -0
- package/dist/cjs/api/routes/manager/{auth/media → media}/finalizeUpload.js +50 -8
- package/dist/cjs/api/routes/manager/media/finalizeUpload.js.map +1 -0
- package/dist/cjs/api/routes/manager/{auth/media → media}/getMediaUrl.js +3 -3
- package/dist/cjs/api/routes/manager/media/getMediaUrl.js.map +1 -0
- package/dist/cjs/api/routes/manager/{auth/media → media}/listFolders.js +4 -4
- package/dist/cjs/api/routes/manager/media/listFolders.js.map +1 -0
- package/dist/cjs/api/routes/manager/media/prepareUpload.js +59 -0
- package/dist/cjs/api/routes/manager/media/prepareUpload.js.map +1 -0
- package/dist/cjs/api/routes/manager/{auth/media → media}/uploadBinary.js +45 -5
- package/dist/cjs/api/routes/manager/media/uploadBinary.js.map +1 -0
- package/dist/cjs/api/utils/routes/revalidatePath.js +7 -7
- package/dist/cjs/api/utils/routes/revalidatePath.js.map +1 -1
- package/dist/cjs/api/utils/routes/updateRoutesMap.js +77 -0
- package/dist/cjs/api/utils/routes/updateRoutesMap.js.map +1 -1
- package/dist/cjs/bootstrapState.js.map +1 -1
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/context.d.ts +1 -1
- package/dist/esm/api/context.js +2 -2
- 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 +41 -41
- package/dist/esm/api/operations/index.js +7 -7
- package/dist/esm/api/operations/manager-contract.d.ts +30 -30
- package/dist/esm/api/operations/manager-contract.js +4 -4
- package/dist/esm/api/operations/manager.d.ts +31 -31
- package/dist/esm/api/operations/manager.d.ts.map +1 -1
- package/dist/esm/api/operations/manager.js +37 -34
- package/dist/esm/api/operations/manager.js.map +1 -1
- package/dist/esm/api/operations/types.d.ts +1 -1
- package/dist/esm/api/operations/web-contract.d.ts +3 -3
- package/dist/esm/api/operations/web-contract.js +3 -3
- package/dist/esm/api/operations/web.d.ts +4 -4
- package/dist/esm/api/operations/web.js +5 -5
- package/dist/esm/api/proxies/context.d.ts +2 -2
- package/dist/esm/api/proxies/index.d.ts +4 -4
- package/dist/esm/api/proxies/index.js +1 -1
- 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/login.d.ts +1 -1
- package/dist/esm/api/routes/manager/auth/login.js +4 -4
- 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/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 +3 -3
- package/dist/esm/api/routes/manager/auth/updatePassword.d.ts +2 -2
- package/dist/esm/api/routes/manager/auth/updatePassword.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 +4 -4
- 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/create.d.ts +2 -2
- package/dist/esm/api/routes/manager/create.js +8 -8
- package/dist/esm/api/routes/manager/delete.d.ts +2 -2
- package/dist/esm/api/routes/manager/delete.js +8 -8
- package/dist/esm/api/routes/manager/get.d.ts +2 -2
- package/dist/esm/api/routes/manager/get.js +6 -6
- package/dist/esm/api/routes/manager/list.d.ts +2 -2
- package/dist/esm/api/routes/manager/list.js +8 -8
- 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/{auth/media → media}/createFolder.d.ts +2 -2
- package/dist/esm/api/routes/manager/media/createFolder.d.ts.map +1 -0
- package/dist/esm/api/routes/manager/{auth/media → media}/createFolder.js +7 -7
- package/dist/esm/api/routes/manager/media/createFolder.js.map +1 -0
- package/dist/esm/api/routes/manager/{auth/media → media}/finalizeUpload.d.ts +2 -2
- package/dist/esm/api/routes/manager/media/finalizeUpload.d.ts.map +1 -0
- package/dist/esm/api/routes/manager/{auth/media → media}/finalizeUpload.js +50 -8
- package/dist/esm/api/routes/manager/media/finalizeUpload.js.map +1 -0
- package/dist/esm/api/routes/manager/{auth/media → media}/getMediaUrl.d.ts +2 -2
- package/dist/esm/api/routes/manager/media/getMediaUrl.d.ts.map +1 -0
- package/dist/esm/api/routes/manager/{auth/media → media}/getMediaUrl.js +3 -3
- package/dist/esm/api/routes/manager/media/getMediaUrl.js.map +1 -0
- package/dist/esm/api/routes/manager/{auth/media → media}/listFolders.d.ts +2 -2
- package/dist/esm/api/routes/manager/media/listFolders.d.ts.map +1 -0
- package/dist/esm/api/routes/manager/{auth/media → media}/listFolders.js +4 -4
- package/dist/esm/api/routes/manager/media/listFolders.js.map +1 -0
- package/dist/esm/api/routes/manager/{auth/media → media}/prepareUpload.d.ts +2 -2
- package/dist/esm/api/routes/manager/media/prepareUpload.d.ts.map +1 -0
- package/dist/esm/api/routes/manager/media/prepareUpload.js +55 -0
- package/dist/esm/api/routes/manager/media/prepareUpload.js.map +1 -0
- package/dist/esm/api/routes/manager/{auth/media → media}/uploadBinary.d.ts +1 -1
- package/dist/esm/api/routes/manager/media/uploadBinary.d.ts.map +1 -0
- package/dist/esm/api/routes/manager/{auth/media → media}/uploadBinary.js +45 -5
- package/dist/esm/api/routes/manager/media/uploadBinary.js.map +1 -0
- package/dist/esm/api/routes/manager/setDefaultLanguage.d.ts +2 -2
- package/dist/esm/api/routes/manager/setDefaultLanguage.js +4 -4
- package/dist/esm/api/routes/manager/update.d.ts +2 -2
- package/dist/esm/api/routes/manager/update.js +8 -8
- package/dist/esm/api/routes/web/page.d.ts +1 -1
- package/dist/esm/api/routes/web/page.js +13 -13
- package/dist/esm/api/sessionCookie.d.ts +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 +3 -3
- package/dist/esm/api/utils/checkPermissions.d.ts +2 -2
- package/dist/esm/api/utils/checkPermissions.js +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 +4 -4
- package/dist/esm/api/utils/getUser.d.ts +1 -1
- package/dist/esm/api/utils/getUser.js +4 -4
- 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/routes/revalidatePath.js +11 -11
- 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 +3 -3
- package/dist/esm/api/utils/routes/routeMapHelpers.js +6 -6
- 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.d.ts.map +1 -1
- package/dist/esm/api/utils/routes/updateRoutesMap.js +80 -3
- package/dist/esm/api/utils/routes/updateRoutesMap.js.map +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 +13 -8
- package/dist/esm/bootstrapState.d.ts.map +1 -1
- package/dist/esm/bootstrapState.js.map +1 -1
- package/dist/esm/client.d.ts +34 -34
- package/dist/esm/client.js +25 -25
- package/dist/esm/contracts.d.ts +26 -26
- package/dist/esm/contracts.js +26 -26
- package/dist/esm/index.d.ts +43 -43
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +40 -40
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/internal-content-types/HelloWorld.d.ts +3 -3
- package/dist/esm/internal-content-types/HelloWorld.js +2 -2
- package/dist/esm/internal-content-types/Language.d.ts +6 -6
- package/dist/esm/internal-content-types/Language.js +2 -2
- package/dist/esm/internal-content-types/LiteralTranslation.d.ts +5 -5
- package/dist/esm/internal-content-types/LiteralTranslation.js +2 -2
- package/dist/esm/internal-content-types/ManagerRole.d.ts +4 -4
- package/dist/esm/internal-content-types/ManagerRole.js +3 -3
- package/dist/esm/internal-content-types/ManagerUser.d.ts +9 -9
- package/dist/esm/internal-content-types/ManagerUser.js +3 -3
- package/dist/esm/internal-content-types/Media.d.ts +29 -29
- package/dist/esm/internal-content-types/Media.js +3 -3
- package/dist/esm/internal-content-types/MediaFolder.d.ts +7 -7
- package/dist/esm/internal-content-types/MediaFolder.js +2 -2
- package/dist/esm/internal-content-types/MfaChallenge.d.ts +16 -16
- package/dist/esm/internal-content-types/MfaChallenge.js +3 -3
- package/dist/esm/internal-content-types/Page.d.ts +5 -5
- package/dist/esm/internal-content-types/Page.js +3 -3
- package/dist/esm/internal-content-types/Redirect.d.ts +14 -14
- package/dist/esm/internal-content-types/Redirect.js +2 -2
- package/dist/esm/internal-content-types/Route.d.ts +11 -11
- package/dist/esm/internal-content-types/Route.js +2 -2
- package/dist/esm/internal-content-types/RouteLayoutModule.d.ts +9 -9
- package/dist/esm/internal-content-types/RouteLayoutModule.js +2 -2
- package/dist/esm/internal-content-types/RouteLayoutModuleOverride.d.ts +8 -8
- package/dist/esm/internal-content-types/RouteLayoutModuleOverride.js +2 -2
- package/dist/esm/internal-content-types/RouteMap.d.ts +7 -7
- package/dist/esm/internal-content-types/RouteMap.js +2 -2
- package/dist/esm/internal-content-types/RouteSettings.d.ts +8 -8
- package/dist/esm/internal-content-types/RouteSettings.js +3 -3
- package/dist/esm/internal-content-types/Seo.d.ts +4 -4
- package/dist/esm/internal-content-types/Seo.js +2 -2
- package/dist/esm/internal-content-types/Session.d.ts +12 -12
- package/dist/esm/internal-content-types/Session.js +3 -3
- package/dist/esm/internal-content-types/UserMfa.d.ts +15 -15
- package/dist/esm/internal-content-types/UserMfa.js +3 -3
- package/dist/esm/internal-content-types/WebAuthnCredential.d.ts +15 -15
- package/dist/esm/internal-content-types/WebAuthnCredential.js +3 -3
- package/dist/esm/internal-content-types/WebAuthnRegChallenge.d.ts +14 -14
- package/dist/esm/internal-content-types/WebAuthnRegChallenge.js +3 -3
- package/dist/esm/internal-content-types/index.d.ts +20 -20
- package/dist/esm/internal-content-types/index.js +20 -20
- package/dist/esm/lib/ContentType.d.ts +3 -3
- package/dist/esm/lib/ContentType.js +4 -4
- package/dist/esm/lib/Permissions.d.ts +1 -1
- package/dist/esm/lib/Registry.d.ts +2 -2
- package/dist/esm/lib/Registry.js +4 -4
- 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 +3 -3
- package/dist/esm/lib/fields/Boolean.js +1 -1
- package/dist/esm/lib/fields/ContentReference.d.ts +5 -5
- package/dist/esm/lib/fields/ContentReference.js +2 -2
- package/dist/esm/lib/fields/Date.d.ts +3 -3
- package/dist/esm/lib/fields/Date.js +1 -1
- package/dist/esm/lib/fields/Field.d.ts +19 -19
- package/dist/esm/lib/fields/Field.js +1 -1
- package/dist/esm/lib/fields/File.d.ts +3 -3
- package/dist/esm/lib/fields/File.js +3 -3
- package/dist/esm/lib/fields/Iterator.d.ts +4 -4
- package/dist/esm/lib/fields/Iterator.js +2 -2
- package/dist/esm/lib/fields/Link.d.ts +4 -4
- package/dist/esm/lib/fields/Link.js +3 -3
- package/dist/esm/lib/fields/List.d.ts +3 -3
- package/dist/esm/lib/fields/List.js +1 -1
- package/dist/esm/lib/fields/Number.d.ts +3 -3
- package/dist/esm/lib/fields/Number.js +1 -1
- package/dist/esm/lib/fields/Relation.d.ts +6 -6
- package/dist/esm/lib/fields/Relation.js +5 -5
- package/dist/esm/lib/fields/Select.d.ts +3 -3
- package/dist/esm/lib/fields/Select.js +1 -1
- package/dist/esm/lib/fields/SelfRelation.d.ts +4 -4
- package/dist/esm/lib/fields/SelfRelation.js +2 -2
- package/dist/esm/lib/fields/SimpleList.d.ts +4 -4
- package/dist/esm/lib/fields/SimpleList.js +2 -2
- package/dist/esm/lib/fields/String.d.ts +3 -3
- package/dist/esm/lib/fields/String.js +3 -3
- package/dist/esm/lib/fields/index.d.ts +19 -19
- package/dist/esm/lib/fields/index.js +13 -13
- 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 +124 -124
- package/dist/esm/manager.js +2 -2
- 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/createIndexes.js +1 -1
- package/dist/esm/orm/database.js +3 -3
- package/dist/esm/orm/dbService.d.ts +3 -3
- package/dist/esm/orm/index.d.ts +2 -2
- package/dist/esm/orm/index.js +12 -12
- package/dist/esm/orm/mongodbPeer.js +1 -1
- package/dist/esm/orm/operations/clear.d.ts +1 -1
- package/dist/esm/orm/operations/clear.js +1 -1
- package/dist/esm/orm/operations/create.d.ts +2 -2
- package/dist/esm/orm/operations/create.js +4 -4
- package/dist/esm/orm/operations/delete.d.ts +2 -2
- package/dist/esm/orm/operations/delete.js +2 -2
- 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 +3 -3
- package/dist/esm/orm/operations/update.js +5 -5
- package/dist/esm/orm/operations/updateMany.d.ts +2 -2
- package/dist/esm/orm/operations/updateMany.js +3 -3
- package/dist/esm/orm/operations/upsert.d.ts +2 -2
- 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/schemas/manager/literals/upsert.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/web/page.js +1 -1
- package/dist/esm/web/index.d.ts +1 -1
- package/dist/esm/web/index.js +1 -1
- package/dist/esm/web/page.d.ts +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/cjs/api/routes/manager/auth/media/createFolder.js.map +0 -1
- package/dist/cjs/api/routes/manager/auth/media/finalizeUpload.js.map +0 -1
- package/dist/cjs/api/routes/manager/auth/media/getMediaUrl.js.map +0 -1
- package/dist/cjs/api/routes/manager/auth/media/listFolders.js.map +0 -1
- package/dist/cjs/api/routes/manager/auth/media/prepareUpload.js +0 -34
- package/dist/cjs/api/routes/manager/auth/media/prepareUpload.js.map +0 -1
- package/dist/cjs/api/routes/manager/auth/media/uploadBinary.js.map +0 -1
- package/dist/cjs/lib/Env.js +0 -85
- package/dist/cjs/lib/Env.js.map +0 -1
- package/dist/esm/api/routes/manager/auth/media/createFolder.d.ts.map +0 -1
- package/dist/esm/api/routes/manager/auth/media/createFolder.js.map +0 -1
- package/dist/esm/api/routes/manager/auth/media/finalizeUpload.d.ts.map +0 -1
- package/dist/esm/api/routes/manager/auth/media/finalizeUpload.js.map +0 -1
- package/dist/esm/api/routes/manager/auth/media/getMediaUrl.d.ts.map +0 -1
- package/dist/esm/api/routes/manager/auth/media/getMediaUrl.js.map +0 -1
- package/dist/esm/api/routes/manager/auth/media/listFolders.d.ts.map +0 -1
- package/dist/esm/api/routes/manager/auth/media/listFolders.js.map +0 -1
- package/dist/esm/api/routes/manager/auth/media/prepareUpload.d.ts.map +0 -1
- package/dist/esm/api/routes/manager/auth/media/prepareUpload.js +0 -30
- package/dist/esm/api/routes/manager/auth/media/prepareUpload.js.map +0 -1
- package/dist/esm/api/routes/manager/auth/media/uploadBinary.d.ts.map +0 -1
- package/dist/esm/api/routes/manager/auth/media/uploadBinary.js.map +0 -1
- package/dist/esm/lib/Env.d.ts +0 -33
- package/dist/esm/lib/Env.d.ts.map +0 -1
- package/dist/esm/lib/Env.js +0 -78
- package/dist/esm/lib/Env.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const createManagerOperationContracts: () => {
|
|
2
|
-
"manager.contentTypes": import("./types").RakunOperationContractWithoutInput<{
|
|
2
|
+
"manager.contentTypes": import("./types.js").RakunOperationContractWithoutInput<{
|
|
3
3
|
name: string;
|
|
4
4
|
fields: Record<string, unknown>;
|
|
5
5
|
uniques: string[][];
|
|
@@ -11,7 +11,7 @@ export declare const createManagerOperationContracts: () => {
|
|
|
11
11
|
listFields?: string[] | undefined;
|
|
12
12
|
isHiddenFromManager?: boolean | undefined;
|
|
13
13
|
}[], "query", "get", "auth">;
|
|
14
|
-
"manager.languages": import("./types").RakunOperationContractWithoutInput<{
|
|
14
|
+
"manager.languages": import("./types.js").RakunOperationContractWithoutInput<{
|
|
15
15
|
code: string;
|
|
16
16
|
name: string;
|
|
17
17
|
default: boolean;
|
|
@@ -23,27 +23,27 @@ export declare const createManagerOperationContracts: () => {
|
|
|
23
23
|
contentType: string;
|
|
24
24
|
} | undefined;
|
|
25
25
|
}[], "query", "get", "auth">;
|
|
26
|
-
"manager.regenerateRoutes": import("./types").RakunOperationContractWithoutInput<{
|
|
26
|
+
"manager.regenerateRoutes": import("./types.js").RakunOperationContractWithoutInput<{
|
|
27
27
|
ok: boolean;
|
|
28
28
|
}, "mutation", "post", "auth">;
|
|
29
|
-
"manager.create": import("./types").RakunOperationContractWithInput<{
|
|
29
|
+
"manager.create": import("./types.js").RakunOperationContractWithInput<{
|
|
30
30
|
contentType: string;
|
|
31
31
|
data: any;
|
|
32
32
|
}, any, "mutation", "post", "auth">;
|
|
33
|
-
"manager.update": import("./types").RakunOperationContractWithInput<{
|
|
33
|
+
"manager.update": import("./types.js").RakunOperationContractWithInput<{
|
|
34
34
|
contentType: string;
|
|
35
35
|
id: string;
|
|
36
36
|
data: any;
|
|
37
37
|
}, any, "mutation", "post", "auth">;
|
|
38
|
-
"manager.delete": import("./types").RakunOperationContractWithInput<{
|
|
38
|
+
"manager.delete": import("./types.js").RakunOperationContractWithInput<{
|
|
39
39
|
contentType: string;
|
|
40
40
|
id: string;
|
|
41
41
|
}, any, "mutation", "post", "auth">;
|
|
42
|
-
"manager.get": import("./types").RakunOperationContractWithInput<{
|
|
42
|
+
"manager.get": import("./types.js").RakunOperationContractWithInput<{
|
|
43
43
|
contentType: string;
|
|
44
44
|
id: string;
|
|
45
45
|
}, any, "query", "post", "auth">;
|
|
46
|
-
"manager.list": import("./types").RakunOperationContractWithInput<{
|
|
46
|
+
"manager.list": import("./types.js").RakunOperationContractWithInput<{
|
|
47
47
|
contentType: string;
|
|
48
48
|
query: {
|
|
49
49
|
filter?: Record<string, any> | undefined;
|
|
@@ -61,13 +61,13 @@ export declare const createManagerOperationContracts: () => {
|
|
|
61
61
|
_id: string;
|
|
62
62
|
}[];
|
|
63
63
|
}, "query", "post", "auth">;
|
|
64
|
-
"manager.setDefaultLanguage": import("./types").RakunOperationContractWithInput<{
|
|
64
|
+
"manager.setDefaultLanguage": import("./types.js").RakunOperationContractWithInput<{
|
|
65
65
|
language: string;
|
|
66
66
|
}, {
|
|
67
67
|
ok: boolean;
|
|
68
68
|
}, "mutation", "post", "auth">;
|
|
69
|
-
"manager.permissions": import("./types").RakunOperationContractWithoutInput<string[], "query", "get", "auth">;
|
|
70
|
-
"manager.media.prepareUpload": import("./types").RakunOperationContractWithInput<{
|
|
69
|
+
"manager.permissions": import("./types.js").RakunOperationContractWithoutInput<string[], "query", "get", "auth">;
|
|
70
|
+
"manager.media.prepareUpload": import("./types.js").RakunOperationContractWithInput<{
|
|
71
71
|
fileName: string;
|
|
72
72
|
mime: string;
|
|
73
73
|
size: number;
|
|
@@ -80,7 +80,7 @@ export declare const createManagerOperationContracts: () => {
|
|
|
80
80
|
access: "public" | "private";
|
|
81
81
|
headers?: Record<string, string> | undefined;
|
|
82
82
|
}, "mutation", "post", "auth">;
|
|
83
|
-
"manager.media.finalizeUpload": import("./types").RakunOperationContractWithInput<{
|
|
83
|
+
"manager.media.finalizeUpload": import("./types.js").RakunOperationContractWithInput<{
|
|
84
84
|
key: string;
|
|
85
85
|
access?: "public" | "private" | undefined;
|
|
86
86
|
fileName?: string | undefined;
|
|
@@ -147,7 +147,7 @@ export declare const createManagerOperationContracts: () => {
|
|
|
147
147
|
path: string;
|
|
148
148
|
} | undefined;
|
|
149
149
|
}, "mutation", "post", "auth">;
|
|
150
|
-
"manager.media.getUrl": import("./types").RakunOperationContractWithInput<{
|
|
150
|
+
"manager.media.getUrl": import("./types.js").RakunOperationContractWithInput<{
|
|
151
151
|
key: string;
|
|
152
152
|
access?: "public" | "private" | undefined;
|
|
153
153
|
expiresInSeconds?: number | undefined;
|
|
@@ -158,7 +158,7 @@ export declare const createManagerOperationContracts: () => {
|
|
|
158
158
|
expiresAt: Date | null;
|
|
159
159
|
isPublic: boolean;
|
|
160
160
|
}, "query", "post", "auth">;
|
|
161
|
-
"manager.media.createFolder": import("./types").RakunOperationContractWithInput<{
|
|
161
|
+
"manager.media.createFolder": import("./types.js").RakunOperationContractWithInput<{
|
|
162
162
|
name: string;
|
|
163
163
|
parentId?: string | undefined;
|
|
164
164
|
description?: string | undefined;
|
|
@@ -170,7 +170,7 @@ export declare const createManagerOperationContracts: () => {
|
|
|
170
170
|
parentId?: string | undefined;
|
|
171
171
|
description?: string | undefined;
|
|
172
172
|
}, "mutation", "post", "auth">;
|
|
173
|
-
"manager.media.listFolders": import("./types").RakunOperationContractWithInput<{
|
|
173
|
+
"manager.media.listFolders": import("./types.js").RakunOperationContractWithInput<{
|
|
174
174
|
parentId?: string | undefined;
|
|
175
175
|
}, {
|
|
176
176
|
items: {
|
|
@@ -182,7 +182,7 @@ export declare const createManagerOperationContracts: () => {
|
|
|
182
182
|
description?: string | undefined;
|
|
183
183
|
}[];
|
|
184
184
|
}, "query", "post", "auth">;
|
|
185
|
-
"manager.literals.list": import("./types").RakunOperationContractWithInput<{
|
|
185
|
+
"manager.literals.list": import("./types.js").RakunOperationContractWithInput<{
|
|
186
186
|
locale?: string | undefined;
|
|
187
187
|
}, {
|
|
188
188
|
defaultLocale: string;
|
|
@@ -211,7 +211,7 @@ export declare const createManagerOperationContracts: () => {
|
|
|
211
211
|
translation?: string | undefined;
|
|
212
212
|
}[];
|
|
213
213
|
}, "query", "post", "auth">;
|
|
214
|
-
"manager.literals.upsert": import("./types").RakunOperationContractWithInput<{
|
|
214
|
+
"manager.literals.upsert": import("./types.js").RakunOperationContractWithInput<{
|
|
215
215
|
key: string;
|
|
216
216
|
locale: string;
|
|
217
217
|
message: string;
|
|
@@ -227,13 +227,13 @@ export declare const createManagerOperationContracts: () => {
|
|
|
227
227
|
extra: string[];
|
|
228
228
|
};
|
|
229
229
|
}, "mutation", "post", "auth">;
|
|
230
|
-
"manager.auth.updatePassword": import("./types").RakunOperationContractWithInput<{
|
|
230
|
+
"manager.auth.updatePassword": import("./types.js").RakunOperationContractWithInput<{
|
|
231
231
|
currentPassword: string;
|
|
232
232
|
newPassword: string;
|
|
233
233
|
}, {
|
|
234
234
|
ok: boolean;
|
|
235
235
|
}, "mutation", "post", "auth">;
|
|
236
|
-
"manager.auth.login": import("./types").RakunOperationContractWithInput<{
|
|
236
|
+
"manager.auth.login": import("./types.js").RakunOperationContractWithInput<{
|
|
237
237
|
username: string;
|
|
238
238
|
password: string;
|
|
239
239
|
}, {
|
|
@@ -243,10 +243,10 @@ export declare const createManagerOperationContracts: () => {
|
|
|
243
243
|
expiresAt: string;
|
|
244
244
|
method: string;
|
|
245
245
|
}, "mutation", "post", "public">;
|
|
246
|
-
"manager.auth.logout": import("./types").RakunOperationContractWithoutInput<{
|
|
246
|
+
"manager.auth.logout": import("./types.js").RakunOperationContractWithoutInput<{
|
|
247
247
|
token: string;
|
|
248
248
|
}, "mutation", "post", "auth">;
|
|
249
|
-
"manager.auth.getSession": import("./types").RakunOperationContractWithoutInput<{
|
|
249
|
+
"manager.auth.getSession": import("./types.js").RakunOperationContractWithoutInput<{
|
|
250
250
|
user: string;
|
|
251
251
|
email: string;
|
|
252
252
|
role: {
|
|
@@ -260,7 +260,7 @@ export declare const createManagerOperationContracts: () => {
|
|
|
260
260
|
_id: string;
|
|
261
261
|
password?: undefined;
|
|
262
262
|
} | null, "query", "get", "public">;
|
|
263
|
-
"manager.auth.accountInfo": import("./types").RakunOperationContractWithoutInput<{
|
|
263
|
+
"manager.auth.accountInfo": import("./types.js").RakunOperationContractWithoutInput<{
|
|
264
264
|
has2FA: boolean;
|
|
265
265
|
enabled2FA: boolean;
|
|
266
266
|
method2FA: "totp" | "webauthn";
|
|
@@ -271,21 +271,21 @@ export declare const createManagerOperationContracts: () => {
|
|
|
271
271
|
}[];
|
|
272
272
|
currentSession: string;
|
|
273
273
|
}, "query", "get", "auth">;
|
|
274
|
-
"manager.auth.deleteSession": import("./types").RakunOperationContractWithInput<{
|
|
274
|
+
"manager.auth.deleteSession": import("./types.js").RakunOperationContractWithInput<{
|
|
275
275
|
token: string;
|
|
276
276
|
}, {
|
|
277
277
|
ok: boolean;
|
|
278
278
|
}, "mutation", "post", "auth">;
|
|
279
|
-
"manager.auth.totp.enroll": import("./types").RakunOperationContractWithoutInput<{
|
|
279
|
+
"manager.auth.totp.enroll": import("./types.js").RakunOperationContractWithoutInput<{
|
|
280
280
|
qrDataURL: string;
|
|
281
281
|
otpauthURL: string;
|
|
282
282
|
}, "query", "get", "auth">;
|
|
283
|
-
"manager.auth.totp.confirm": import("./types").RakunOperationContractWithInput<{
|
|
283
|
+
"manager.auth.totp.confirm": import("./types.js").RakunOperationContractWithInput<{
|
|
284
284
|
code: string;
|
|
285
285
|
}, {
|
|
286
286
|
ok: boolean;
|
|
287
287
|
}, "mutation", "post", "auth">;
|
|
288
|
-
"manager.auth.totp.verify": import("./types").RakunOperationContractWithInput<{
|
|
288
|
+
"manager.auth.totp.verify": import("./types.js").RakunOperationContractWithInput<{
|
|
289
289
|
code: string;
|
|
290
290
|
challenge: string;
|
|
291
291
|
}, {
|
|
@@ -293,25 +293,25 @@ export declare const createManagerOperationContracts: () => {
|
|
|
293
293
|
} | {
|
|
294
294
|
error: string;
|
|
295
295
|
}, "mutation", "post", "public">;
|
|
296
|
-
"manager.auth.webauthn.register.options": import("./types").RakunOperationContractWithInput<{
|
|
296
|
+
"manager.auth.webauthn.register.options": import("./types.js").RakunOperationContractWithInput<{
|
|
297
297
|
deviceName: string;
|
|
298
298
|
}, {
|
|
299
299
|
token: string;
|
|
300
300
|
options: any;
|
|
301
301
|
}, "query", "post", "auth">;
|
|
302
|
-
"manager.auth.webauthn.register.verify": import("./types").RakunOperationContractWithInput<{
|
|
302
|
+
"manager.auth.webauthn.register.verify": import("./types.js").RakunOperationContractWithInput<{
|
|
303
303
|
token: string;
|
|
304
304
|
deviceName: string;
|
|
305
305
|
response: any;
|
|
306
306
|
}, {
|
|
307
307
|
ok: boolean;
|
|
308
308
|
}, "mutation", "post", "auth">;
|
|
309
|
-
"manager.auth.webauthn.auth.options": import("./types").RakunOperationContractWithInput<{
|
|
309
|
+
"manager.auth.webauthn.auth.options": import("./types.js").RakunOperationContractWithInput<{
|
|
310
310
|
challengeToken: string;
|
|
311
311
|
}, {
|
|
312
312
|
options: any;
|
|
313
313
|
}, "query", "post", "public">;
|
|
314
|
-
"manager.auth.webauthn.auth.verify": import("./types").RakunOperationContractWithInput<{
|
|
314
|
+
"manager.auth.webauthn.auth.verify": import("./types.js").RakunOperationContractWithInput<{
|
|
315
315
|
challengeToken: string;
|
|
316
316
|
response: any;
|
|
317
317
|
}, {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
2
|
import z from "zod";
|
|
3
|
-
import { defineOperationContract } from "./types";
|
|
4
|
-
import { Language, ManagerUser } from "../../internal-content-types";
|
|
5
|
-
import { EncodedContentTypeSchema } from "../../lib/ContentType";
|
|
6
|
-
import { accountInfoOutput, confirmTotpInput, createFolderInput, createFolderOutput, createInput, deleteInput, deleteSessionInput, enrollTotpOutput, finalizeUploadInput, finalizeUploadOutput, getInput, getMediaUrlInput, getMediaUrlOutput, listFoldersInput, listFoldersOutput, listInput, listLiteralsInput, listLiteralsOutput, listOutput, loginInput, loginOutput, logoutOutput, prepareUploadInput, prepareUploadOutput, setDefaultLanguageInput, updateInput, updatePasswordInput, upsertLiteralInput, upsertLiteralOutput, verifyTotpInput, verifyTotpOutput, webauthnAuthOptionsInput, webauthnAuthOptionsOutput, webauthnAuthVerifyInput, webauthnAuthVerifyOutput, webauthnRegisterOptionsInput, webauthnRegisterOptionsOutput, webauthnRegisterVerifyInput, } from "../../contracts";
|
|
3
|
+
import { defineOperationContract } from "./types.js";
|
|
4
|
+
import { Language, ManagerUser } from "../../internal-content-types/index.js";
|
|
5
|
+
import { EncodedContentTypeSchema } from "../../lib/ContentType.js";
|
|
6
|
+
import { accountInfoOutput, confirmTotpInput, createFolderInput, createFolderOutput, createInput, deleteInput, deleteSessionInput, enrollTotpOutput, finalizeUploadInput, finalizeUploadOutput, getInput, getMediaUrlInput, getMediaUrlOutput, listFoldersInput, listFoldersOutput, listInput, listLiteralsInput, listLiteralsOutput, listOutput, loginInput, loginOutput, logoutOutput, prepareUploadInput, prepareUploadOutput, setDefaultLanguageInput, updateInput, updatePasswordInput, upsertLiteralInput, upsertLiteralOutput, verifyTotpInput, verifyTotpOutput, webauthnAuthOptionsInput, webauthnAuthOptionsOutput, webauthnAuthVerifyInput, webauthnAuthVerifyOutput, webauthnRegisterOptionsInput, webauthnRegisterOptionsOutput, webauthnRegisterVerifyInput, } from "../../contracts.js";
|
|
7
7
|
const okOutput = z.object({ ok: z.boolean() });
|
|
8
8
|
export const createManagerOperationContracts = () => ({
|
|
9
9
|
"manager.contentTypes": defineOperationContract({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const createManagerOperationDefinitions: () => {
|
|
2
|
-
"manager.contentTypes": import("./types").RakunOperationWithoutInput<{
|
|
2
|
+
"manager.contentTypes": import("./types.js").RakunOperationWithoutInput<{
|
|
3
3
|
name: string;
|
|
4
4
|
fields: Record<string, unknown>;
|
|
5
5
|
uniques: string[][];
|
|
@@ -11,7 +11,7 @@ export declare const createManagerOperationDefinitions: () => {
|
|
|
11
11
|
listFields?: string[] | undefined;
|
|
12
12
|
isHiddenFromManager?: boolean | undefined;
|
|
13
13
|
}[], "query", "get", "auth">;
|
|
14
|
-
"manager.languages": import("./types").RakunOperationWithoutInput<{
|
|
14
|
+
"manager.languages": import("./types.js").RakunOperationWithoutInput<{
|
|
15
15
|
code: string;
|
|
16
16
|
name: string;
|
|
17
17
|
default: boolean;
|
|
@@ -23,27 +23,27 @@ export declare const createManagerOperationDefinitions: () => {
|
|
|
23
23
|
contentType: string;
|
|
24
24
|
} | undefined;
|
|
25
25
|
}[], "query", "get", "auth">;
|
|
26
|
-
"manager.regenerateRoutes": import("./types").RakunOperationWithoutInput<{
|
|
26
|
+
"manager.regenerateRoutes": import("./types.js").RakunOperationWithoutInput<{
|
|
27
27
|
ok: boolean;
|
|
28
28
|
}, "mutation", "post", "auth">;
|
|
29
|
-
"manager.create": import("./types").RakunOperationWithInput<{
|
|
29
|
+
"manager.create": import("./types.js").RakunOperationWithInput<{
|
|
30
30
|
contentType: string;
|
|
31
31
|
data: any;
|
|
32
32
|
}, any, "mutation", "post", "auth">;
|
|
33
|
-
"manager.update": import("./types").RakunOperationWithInput<{
|
|
33
|
+
"manager.update": import("./types.js").RakunOperationWithInput<{
|
|
34
34
|
contentType: string;
|
|
35
35
|
id: string;
|
|
36
36
|
data: any;
|
|
37
37
|
}, any, "mutation", "post", "auth">;
|
|
38
|
-
"manager.delete": import("./types").RakunOperationWithInput<{
|
|
38
|
+
"manager.delete": import("./types.js").RakunOperationWithInput<{
|
|
39
39
|
contentType: string;
|
|
40
40
|
id: string;
|
|
41
41
|
}, any, "mutation", "post", "auth">;
|
|
42
|
-
"manager.get": import("./types").RakunOperationWithInput<{
|
|
42
|
+
"manager.get": import("./types.js").RakunOperationWithInput<{
|
|
43
43
|
contentType: string;
|
|
44
44
|
id: string;
|
|
45
45
|
}, any, "query", "post", "auth">;
|
|
46
|
-
"manager.list": import("./types").RakunOperationWithInput<{
|
|
46
|
+
"manager.list": import("./types.js").RakunOperationWithInput<{
|
|
47
47
|
contentType: string;
|
|
48
48
|
query: {
|
|
49
49
|
filter?: Record<string, any> | undefined;
|
|
@@ -61,13 +61,13 @@ export declare const createManagerOperationDefinitions: () => {
|
|
|
61
61
|
_id: string;
|
|
62
62
|
}[];
|
|
63
63
|
}, "query", "post", "auth">;
|
|
64
|
-
"manager.setDefaultLanguage": import("./types").RakunOperationWithInput<{
|
|
64
|
+
"manager.setDefaultLanguage": import("./types.js").RakunOperationWithInput<{
|
|
65
65
|
language: string;
|
|
66
66
|
}, {
|
|
67
67
|
ok: boolean;
|
|
68
68
|
}, "mutation", "post", "auth">;
|
|
69
|
-
"manager.permissions": import("./types").RakunOperationWithoutInput<string[], "query", "get", "auth">;
|
|
70
|
-
"manager.media.prepareUpload": import("./types").RakunOperationWithInput<{
|
|
69
|
+
"manager.permissions": import("./types.js").RakunOperationWithoutInput<string[], "query", "get", "auth">;
|
|
70
|
+
"manager.media.prepareUpload": import("./types.js").RakunOperationWithInput<{
|
|
71
71
|
fileName: string;
|
|
72
72
|
mime: string;
|
|
73
73
|
size: number;
|
|
@@ -80,7 +80,7 @@ export declare const createManagerOperationDefinitions: () => {
|
|
|
80
80
|
access: "public" | "private";
|
|
81
81
|
headers?: Record<string, string> | undefined;
|
|
82
82
|
}, "mutation", "post", "auth">;
|
|
83
|
-
"manager.media.finalizeUpload": import("./types").RakunOperationWithInput<{
|
|
83
|
+
"manager.media.finalizeUpload": import("./types.js").RakunOperationWithInput<{
|
|
84
84
|
key: string;
|
|
85
85
|
access?: "public" | "private" | undefined;
|
|
86
86
|
fileName?: string | undefined;
|
|
@@ -147,7 +147,7 @@ export declare const createManagerOperationDefinitions: () => {
|
|
|
147
147
|
path: string;
|
|
148
148
|
} | undefined;
|
|
149
149
|
}, "mutation", "post", "auth">;
|
|
150
|
-
"manager.media.getUrl": import("./types").RakunOperationWithInput<{
|
|
150
|
+
"manager.media.getUrl": import("./types.js").RakunOperationWithInput<{
|
|
151
151
|
key: string;
|
|
152
152
|
access?: "public" | "private" | undefined;
|
|
153
153
|
expiresInSeconds?: number | undefined;
|
|
@@ -158,7 +158,7 @@ export declare const createManagerOperationDefinitions: () => {
|
|
|
158
158
|
expiresAt: Date | null;
|
|
159
159
|
isPublic: boolean;
|
|
160
160
|
}, "query", "post", "auth">;
|
|
161
|
-
"manager.media.createFolder": import("./types").RakunOperationWithInput<{
|
|
161
|
+
"manager.media.createFolder": import("./types.js").RakunOperationWithInput<{
|
|
162
162
|
name: string;
|
|
163
163
|
parentId?: string | undefined;
|
|
164
164
|
description?: string | undefined;
|
|
@@ -170,7 +170,7 @@ export declare const createManagerOperationDefinitions: () => {
|
|
|
170
170
|
parentId?: string | undefined;
|
|
171
171
|
description?: string | undefined;
|
|
172
172
|
}, "mutation", "post", "auth">;
|
|
173
|
-
"manager.media.listFolders": import("./types").RakunOperationWithInput<{
|
|
173
|
+
"manager.media.listFolders": import("./types.js").RakunOperationWithInput<{
|
|
174
174
|
parentId?: string | undefined;
|
|
175
175
|
}, {
|
|
176
176
|
items: {
|
|
@@ -182,7 +182,7 @@ export declare const createManagerOperationDefinitions: () => {
|
|
|
182
182
|
description?: string | undefined;
|
|
183
183
|
}[];
|
|
184
184
|
}, "query", "post", "auth">;
|
|
185
|
-
"manager.literals.list": import("./types").RakunOperationWithInput<{
|
|
185
|
+
"manager.literals.list": import("./types.js").RakunOperationWithInput<{
|
|
186
186
|
locale?: string | undefined;
|
|
187
187
|
}, {
|
|
188
188
|
defaultLocale: string;
|
|
@@ -211,7 +211,7 @@ export declare const createManagerOperationDefinitions: () => {
|
|
|
211
211
|
translation?: string | undefined;
|
|
212
212
|
}[];
|
|
213
213
|
}, "query", "post", "auth">;
|
|
214
|
-
"manager.literals.upsert": import("./types").RakunOperationWithInput<{
|
|
214
|
+
"manager.literals.upsert": import("./types.js").RakunOperationWithInput<{
|
|
215
215
|
key: string;
|
|
216
216
|
locale: string;
|
|
217
217
|
message: string;
|
|
@@ -227,13 +227,13 @@ export declare const createManagerOperationDefinitions: () => {
|
|
|
227
227
|
extra: string[];
|
|
228
228
|
};
|
|
229
229
|
}, "mutation", "post", "auth">;
|
|
230
|
-
"manager.auth.updatePassword": import("./types").RakunOperationWithInput<{
|
|
230
|
+
"manager.auth.updatePassword": import("./types.js").RakunOperationWithInput<{
|
|
231
231
|
currentPassword: string;
|
|
232
232
|
newPassword: string;
|
|
233
233
|
}, {
|
|
234
234
|
ok: boolean;
|
|
235
235
|
}, "mutation", "post", "auth">;
|
|
236
|
-
"manager.auth.login": import("./types").RakunOperationWithInput<{
|
|
236
|
+
"manager.auth.login": import("./types.js").RakunOperationWithInput<{
|
|
237
237
|
username: string;
|
|
238
238
|
password: string;
|
|
239
239
|
}, {
|
|
@@ -243,10 +243,10 @@ export declare const createManagerOperationDefinitions: () => {
|
|
|
243
243
|
expiresAt: string;
|
|
244
244
|
method: string;
|
|
245
245
|
}, "mutation", "post", "public">;
|
|
246
|
-
"manager.auth.logout": import("./types").RakunOperationWithoutInput<{
|
|
246
|
+
"manager.auth.logout": import("./types.js").RakunOperationWithoutInput<{
|
|
247
247
|
token: string;
|
|
248
248
|
}, "mutation", "post", "auth">;
|
|
249
|
-
"manager.auth.getSession": import("./types").RakunOperationWithoutInput<{
|
|
249
|
+
"manager.auth.getSession": import("./types.js").RakunOperationWithoutInput<{
|
|
250
250
|
user: string;
|
|
251
251
|
email: string;
|
|
252
252
|
role: {
|
|
@@ -260,7 +260,7 @@ export declare const createManagerOperationDefinitions: () => {
|
|
|
260
260
|
_id: string;
|
|
261
261
|
password?: undefined;
|
|
262
262
|
} | null, "query", "get", "public">;
|
|
263
|
-
"manager.auth.accountInfo": import("./types").RakunOperationWithoutInput<{
|
|
263
|
+
"manager.auth.accountInfo": import("./types.js").RakunOperationWithoutInput<{
|
|
264
264
|
has2FA: boolean;
|
|
265
265
|
enabled2FA: boolean;
|
|
266
266
|
method2FA: "totp" | "webauthn";
|
|
@@ -271,21 +271,21 @@ export declare const createManagerOperationDefinitions: () => {
|
|
|
271
271
|
}[];
|
|
272
272
|
currentSession: string;
|
|
273
273
|
}, "query", "get", "auth">;
|
|
274
|
-
"manager.auth.deleteSession": import("./types").RakunOperationWithInput<{
|
|
274
|
+
"manager.auth.deleteSession": import("./types.js").RakunOperationWithInput<{
|
|
275
275
|
token: string;
|
|
276
276
|
}, {
|
|
277
277
|
ok: boolean;
|
|
278
278
|
}, "mutation", "post", "auth">;
|
|
279
|
-
"manager.auth.totp.enroll": import("./types").RakunOperationWithoutInput<{
|
|
279
|
+
"manager.auth.totp.enroll": import("./types.js").RakunOperationWithoutInput<{
|
|
280
280
|
qrDataURL: string;
|
|
281
281
|
otpauthURL: string;
|
|
282
282
|
}, "query", "get", "auth">;
|
|
283
|
-
"manager.auth.totp.confirm": import("./types").RakunOperationWithInput<{
|
|
283
|
+
"manager.auth.totp.confirm": import("./types.js").RakunOperationWithInput<{
|
|
284
284
|
code: string;
|
|
285
285
|
}, {
|
|
286
286
|
ok: boolean;
|
|
287
287
|
}, "mutation", "post", "auth">;
|
|
288
|
-
"manager.auth.totp.verify": import("./types").RakunOperationWithInput<{
|
|
288
|
+
"manager.auth.totp.verify": import("./types.js").RakunOperationWithInput<{
|
|
289
289
|
code: string;
|
|
290
290
|
challenge: string;
|
|
291
291
|
}, {
|
|
@@ -293,29 +293,29 @@ export declare const createManagerOperationDefinitions: () => {
|
|
|
293
293
|
} | {
|
|
294
294
|
error: string;
|
|
295
295
|
}, "mutation", "post", "public">;
|
|
296
|
-
"manager.auth.webauthn.register.options": import("./types").RakunOperationWithInput<{
|
|
296
|
+
"manager.auth.webauthn.register.options": import("./types.js").RakunOperationWithInput<{
|
|
297
297
|
deviceName: string;
|
|
298
298
|
}, {
|
|
299
299
|
token: string;
|
|
300
300
|
options: any;
|
|
301
301
|
}, "query", "post", "auth">;
|
|
302
|
-
"manager.auth.webauthn.register.verify": import("./types").RakunOperationWithInput<{
|
|
302
|
+
"manager.auth.webauthn.register.verify": import("./types.js").RakunOperationWithInput<{
|
|
303
303
|
token: string;
|
|
304
304
|
deviceName: string;
|
|
305
305
|
response: any;
|
|
306
306
|
}, {
|
|
307
307
|
ok: boolean;
|
|
308
308
|
}, "mutation", "post", "auth">;
|
|
309
|
-
"manager.auth.webauthn.auth.options": import("./types").RakunOperationWithInput<{
|
|
309
|
+
"manager.auth.webauthn.auth.options": import("./types.js").RakunOperationWithInput<{
|
|
310
310
|
challengeToken: string;
|
|
311
311
|
}, {
|
|
312
312
|
options: any;
|
|
313
313
|
}, "query", "post", "public">;
|
|
314
|
-
"manager.auth.webauthn.auth.verify": import("./types").RakunOperationWithInput<{
|
|
314
|
+
"manager.auth.webauthn.auth.verify": import("./types.js").RakunOperationWithInput<{
|
|
315
315
|
challengeToken: string;
|
|
316
316
|
response: any;
|
|
317
317
|
}, {
|
|
318
318
|
token: string;
|
|
319
319
|
}, "mutation", "post", "public">;
|
|
320
|
-
} & import("./types").RakunOperationMap;
|
|
320
|
+
} & import("./types.js").RakunOperationMap;
|
|
321
321
|
//# sourceMappingURL=manager.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manager.d.ts","sourceRoot":"","sources":["../../../../src/api/operations/manager.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"manager.d.ts","sourceRoot":"","sources":["../../../../src/api/operations/manager.ts"],"names":[],"mappings":"AAsCA,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uCA4L7C,CAAC"}
|
|
@@ -1,37 +1,38 @@
|
|
|
1
|
-
import { mergeOperationContracts } from "./types";
|
|
2
|
-
import { createManagerOperationContracts } from "./manager-contract";
|
|
3
|
-
import { getCustomApiOperationDefinitions, mergeOperationMaps
|
|
4
|
-
import { setSessionCookie } from "../sessionCookie";
|
|
5
|
-
import { throwAppError } from "../../lib/errors";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
1
|
+
import { mergeOperationContracts } from "./types.js";
|
|
2
|
+
import { createManagerOperationContracts } from "./manager-contract.js";
|
|
3
|
+
import { getCustomApiOperationDefinitions, mergeOperationMaps } from "./custom.js";
|
|
4
|
+
import { setSessionCookie } from "../sessionCookie.js";
|
|
5
|
+
import { throwAppError } from "../../lib/errors/index.js";
|
|
6
|
+
import { Logger } from "../../lib/Logger.js";
|
|
7
|
+
import { getPermissionList } from "../../lib/Permissions.js";
|
|
8
|
+
import { getContentTypesForManager } from "../../lib/Registry.js";
|
|
9
|
+
import { getLanguages } from "../utils/getLanguages.js";
|
|
10
|
+
import { regenerateAllRoutesMap } from "../utils/routes/updateRoutesMap.js";
|
|
11
|
+
import { createHandler } from "../routes/manager/create.js";
|
|
12
|
+
import { deleteHandler } from "../routes/manager/delete.js";
|
|
13
|
+
import { getHandler } from "../routes/manager/get.js";
|
|
14
|
+
import { listHandler } from "../routes/manager/list.js";
|
|
15
|
+
import { setDefaultLanguageHandler } from "../routes/manager/setDefaultLanguage.js";
|
|
16
|
+
import { updateHandler } from "../routes/manager/update.js";
|
|
17
|
+
import { loginHandler } from "../routes/manager/auth/login.js";
|
|
18
|
+
import { enrollTotpHandler } from "../routes/manager/auth/totp/enrollTotp.js";
|
|
19
|
+
import { logoutHandler } from "../routes/manager/auth/logout.js";
|
|
20
|
+
import { updatePasswordHandler } from "../routes/manager/auth/updatePassword.js";
|
|
21
|
+
import { confirmTotpHandler } from "../routes/manager/auth/totp/confirmTotp.js";
|
|
22
|
+
import { verifyTotpHandler } from "../routes/manager/auth/totp/verifyTotp.js";
|
|
23
|
+
import { webauthnRegisterOptionsHandler } from "../routes/manager/auth/webauthn/webauthnRegisterOptions.js";
|
|
24
|
+
import { webauthnRegisterVerifyHandler } from "../routes/manager/auth/webauthn/webauthnRegisterVerify.js";
|
|
25
|
+
import { webauthnAuthOptionsHandler } from "../routes/manager/auth/webauthn/webauthnAuthOptions.js";
|
|
26
|
+
import { webauthnAuthVerifyHandler } from "../routes/manager/auth/webauthn/webauthnAuthVerify.js";
|
|
27
|
+
import { accountInfoHandler } from "../routes/manager/auth/accountInfo.js";
|
|
28
|
+
import { deleteSessionHandler } from "../routes/manager/auth/deleteSession.js";
|
|
29
|
+
import { prepareUploadHandler } from "../routes/manager/media/prepareUpload.js";
|
|
30
|
+
import { finalizeUploadHandler } from "../routes/manager/media/finalizeUpload.js";
|
|
31
|
+
import { getMediaUrlHandler } from "../routes/manager/media/getMediaUrl.js";
|
|
32
|
+
import { createFolderHandler } from "../routes/manager/media/createFolder.js";
|
|
33
|
+
import { listFoldersHandler } from "../routes/manager/media/listFolders.js";
|
|
34
|
+
import { listLiteralsHandler } from "../routes/manager/literals/list.js";
|
|
35
|
+
import { upsertLiteralHandler } from "../routes/manager/literals/upsert.js";
|
|
35
36
|
export const createManagerOperationDefinitions = () => {
|
|
36
37
|
const contracts = createManagerOperationContracts();
|
|
37
38
|
const implementations = {
|
|
@@ -43,7 +44,9 @@ export const createManagerOperationDefinitions = () => {
|
|
|
43
44
|
},
|
|
44
45
|
"manager.regenerateRoutes": {
|
|
45
46
|
resolve: async () => {
|
|
47
|
+
Logger.addTrace("manager.regenerateRoutes: handler start");
|
|
46
48
|
await regenerateAllRoutesMap();
|
|
49
|
+
Logger.addTrace("manager.regenerateRoutes: handler success");
|
|
47
50
|
return { ok: true };
|
|
48
51
|
},
|
|
49
52
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manager.js","sourceRoot":"","sources":["../../../../src/api/operations/manager.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAClD,OAAO,EAAE,+BAA+B,EAAE,MAAM,oBAAoB,CAAC;AACrE,OAAO,
|
|
1
|
+
{"version":3,"file":"manager.js","sourceRoot":"","sources":["../../../../src/api/operations/manager.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAClD,OAAO,EAAE,+BAA+B,EAAE,MAAM,oBAAoB,CAAC;AACrE,OAAO,EAAE,gCAAgC,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAChF,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AACzE,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,yBAAyB,EAAE,MAAM,sCAAsC,CAAC;AACjF,OAAO,EAAE,aAAa,EAAE,MAAM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AE,MAAM,CAAC,KAAK,CAAC,CAAC;gBACtC,CAAC;YACH,CAAC;SACF;KACF,CAAC;IAEF,OAAO,kBAAkB,CACvB,uBAAuB,CAAC,SAAS,EAAE,eAAe,CAAC,EACnD,gCAAgC,CAAC,SAAS,CAAC,CAC5C,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ZodType } from "zod";
|
|
2
|
-
import type { RakunRequestContext } from "../context";
|
|
2
|
+
import type { RakunRequestContext } from "../context.js";
|
|
3
3
|
export type RakunOperationAccess = "public" | "auth";
|
|
4
4
|
export type RakunOperationKind = "query" | "mutation";
|
|
5
5
|
export type RakunOperationHttpMethod = "get" | "post";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const createWebOperationContracts: () => {
|
|
2
|
-
"web.languages": import("./types").RakunOperationContractWithoutInput<{
|
|
2
|
+
"web.languages": import("./types.js").RakunOperationContractWithoutInput<{
|
|
3
3
|
code: string;
|
|
4
4
|
name: string;
|
|
5
5
|
default: boolean;
|
|
@@ -11,7 +11,7 @@ export declare const createWebOperationContracts: () => {
|
|
|
11
11
|
contentType: string;
|
|
12
12
|
} | undefined;
|
|
13
13
|
}[], "query", "get", "public">;
|
|
14
|
-
"web.page": import("./types").RakunOperationContractWithInput<{
|
|
14
|
+
"web.page": import("./types.js").RakunOperationContractWithInput<{
|
|
15
15
|
path: string;
|
|
16
16
|
search?: string | undefined;
|
|
17
17
|
headers?: Record<string, string> | undefined;
|
|
@@ -63,7 +63,7 @@ export declare const createWebOperationContracts: () => {
|
|
|
63
63
|
status: number;
|
|
64
64
|
} | undefined;
|
|
65
65
|
}, "query", "get", "public">;
|
|
66
|
-
"web.test": import("./types").RakunOperationContractWithoutInput<{
|
|
66
|
+
"web.test": import("./types.js").RakunOperationContractWithoutInput<{
|
|
67
67
|
ok: boolean;
|
|
68
68
|
}, "query", "get", "public">;
|
|
69
69
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import z from "zod";
|
|
2
|
-
import { defineOperationContract } from "./types";
|
|
3
|
-
import { Language } from "../../internal-content-types";
|
|
4
|
-
import { pageInput, pageOutput } from "../../contracts";
|
|
2
|
+
import { defineOperationContract } from "./types.js";
|
|
3
|
+
import { Language } from "../../internal-content-types/index.js";
|
|
4
|
+
import { pageInput, pageOutput } from "../../contracts.js";
|
|
5
5
|
export const createWebOperationContracts = () => ({
|
|
6
6
|
"web.languages": defineOperationContract({
|
|
7
7
|
access: "public",
|