@rakun-kit/core 1.1.1 → 1.2.0
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 +1 -1
- package/dist/cjs/bootstrapState.js.map +1 -1
- package/dist/cjs/client.js +3 -2
- package/dist/cjs/client.js.map +1 -1
- package/dist/cjs/index.js +0 -14
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/lib/ContentType.js +106 -74
- package/dist/cjs/lib/ContentType.js.map +1 -1
- package/dist/cjs/lib/Logger.js +56 -0
- package/dist/cjs/lib/Logger.js.map +1 -1
- package/dist/cjs/lib/Registry.js +35 -22
- package/dist/cjs/lib/Registry.js.map +1 -1
- package/dist/cjs/lib/fields/Boolean.js +14 -9
- package/dist/cjs/lib/fields/Boolean.js.map +1 -1
- package/dist/cjs/lib/fields/ContentReference.js +29 -17
- package/dist/cjs/lib/fields/ContentReference.js.map +1 -1
- package/dist/cjs/lib/fields/Date.js +26 -22
- package/dist/cjs/lib/fields/Date.js.map +1 -1
- package/dist/cjs/lib/fields/Field.js +79 -59
- package/dist/cjs/lib/fields/Field.js.map +1 -1
- package/dist/cjs/lib/fields/Fields.js +32 -0
- package/dist/cjs/lib/fields/Fields.js.map +1 -0
- package/dist/cjs/lib/fields/File.js +60 -85
- package/dist/cjs/lib/fields/File.js.map +1 -1
- package/dist/cjs/lib/fields/Iterator.js +8 -10
- package/dist/cjs/lib/fields/Iterator.js.map +1 -1
- package/dist/cjs/lib/fields/Link.js +20 -15
- package/dist/cjs/lib/fields/Link.js.map +1 -1
- package/dist/cjs/lib/fields/List.js +47 -16
- package/dist/cjs/lib/fields/List.js.map +1 -1
- package/dist/cjs/lib/fields/Number.js +35 -17
- package/dist/cjs/lib/fields/Number.js.map +1 -1
- package/dist/cjs/lib/fields/Relation.js +73 -66
- package/dist/cjs/lib/fields/Relation.js.map +1 -1
- package/dist/cjs/lib/fields/Select.js +28 -17
- package/dist/cjs/lib/fields/Select.js.map +1 -1
- package/dist/cjs/lib/fields/SelfRelation.js +30 -21
- package/dist/cjs/lib/fields/SelfRelation.js.map +1 -1
- package/dist/cjs/lib/fields/SimpleList.js +38 -21
- package/dist/cjs/lib/fields/SimpleList.js.map +1 -1
- package/dist/cjs/lib/fields/String.js +54 -40
- package/dist/cjs/lib/fields/String.js.map +1 -1
- package/dist/cjs/lib/fields/index.js +29 -37
- package/dist/cjs/lib/fields/index.js.map +1 -1
- package/dist/cjs/orm/operations/findDependencies.js +4 -2
- package/dist/cjs/orm/operations/findDependencies.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 +56 -57
- package/dist/esm/api/operations/index.d.ts.map +1 -1
- package/dist/esm/api/operations/index.js +7 -7
- package/dist/esm/api/operations/manager-contract.d.ts +37 -36
- package/dist/esm/api/operations/manager-contract.d.ts.map +1 -1
- package/dist/esm/api/operations/manager-contract.js +4 -4
- package/dist/esm/api/operations/manager.d.ts +38 -37
- package/dist/esm/api/operations/manager.d.ts.map +1 -1
- package/dist/esm/api/operations/manager.js +35 -35
- package/dist/esm/api/operations/types.d.ts +1 -1
- package/dist/esm/api/operations/web-contract.d.ts +11 -13
- package/dist/esm/api/operations/web-contract.d.ts.map +1 -1
- package/dist/esm/api/operations/web-contract.js +3 -3
- package/dist/esm/api/operations/web.d.ts +12 -14
- package/dist/esm/api/operations/web.d.ts.map +1 -1
- 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 +9 -5
- package/dist/esm/api/proxies/index.d.ts.map +1 -1
- 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/media/createFolder.d.ts +2 -2
- package/dist/esm/api/routes/manager/media/createFolder.js +7 -7
- package/dist/esm/api/routes/manager/media/finalizeUpload.d.ts +2 -2
- package/dist/esm/api/routes/manager/media/finalizeUpload.js +9 -9
- package/dist/esm/api/routes/manager/media/getMediaUrl.d.ts +2 -2
- package/dist/esm/api/routes/manager/media/getMediaUrl.js +3 -3
- 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 +2 -2
- package/dist/esm/api/routes/manager/media/prepareUpload.js +4 -4
- package/dist/esm/api/routes/manager/media/uploadBinary.d.ts +1 -1
- package/dist/esm/api/routes/manager/media/uploadBinary.js +6 -6
- 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.d.ts +2 -6
- package/dist/esm/api/utils/getLanguages.d.ts.map +1 -1
- 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 +7 -3
- 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/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 +5 -5
- 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.js +4 -4
- 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 +11 -10
- 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.d.ts.map +1 -1
- package/dist/esm/client.js +25 -25
- package/dist/esm/client.js.map +1 -1
- package/dist/esm/contracts.d.ts +26 -26
- package/dist/esm/contracts.js +26 -26
- package/dist/esm/index.d.ts +29 -43
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +25 -39
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/internal-content-types/HelloWorld.d.ts +55 -3
- package/dist/esm/internal-content-types/HelloWorld.d.ts.map +1 -1
- package/dist/esm/internal-content-types/HelloWorld.js +2 -2
- package/dist/esm/internal-content-types/Language.d.ts +70 -6
- package/dist/esm/internal-content-types/Language.d.ts.map +1 -1
- package/dist/esm/internal-content-types/Language.js +2 -2
- package/dist/esm/internal-content-types/LiteralTranslation.d.ts +109 -5
- package/dist/esm/internal-content-types/LiteralTranslation.d.ts.map +1 -1
- package/dist/esm/internal-content-types/LiteralTranslation.js +2 -2
- package/dist/esm/internal-content-types/ManagerRole.d.ts +56 -4
- package/dist/esm/internal-content-types/ManagerRole.d.ts.map +1 -1
- package/dist/esm/internal-content-types/ManagerRole.js +3 -3
- package/dist/esm/internal-content-types/ManagerUser.d.ts +350 -21
- 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/Media.d.ts +472 -55
- package/dist/esm/internal-content-types/Media.d.ts.map +1 -1
- package/dist/esm/internal-content-types/Media.js +3 -3
- package/dist/esm/internal-content-types/MediaFolder.d.ts +163 -7
- package/dist/esm/internal-content-types/MediaFolder.d.ts.map +1 -1
- package/dist/esm/internal-content-types/MediaFolder.js +2 -2
- package/dist/esm/internal-content-types/MfaChallenge.d.ts +963 -55
- 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/Page.d.ts +243 -27
- package/dist/esm/internal-content-types/Page.d.ts.map +1 -1
- package/dist/esm/internal-content-types/Page.js +3 -3
- package/dist/esm/internal-content-types/Redirect.d.ts +272 -14
- package/dist/esm/internal-content-types/Redirect.d.ts.map +1 -1
- package/dist/esm/internal-content-types/Redirect.js +2 -2
- package/dist/esm/internal-content-types/Route.d.ts +282 -11
- package/dist/esm/internal-content-types/Route.d.ts.map +1 -1
- package/dist/esm/internal-content-types/Route.js +2 -2
- package/dist/esm/internal-content-types/RouteLayoutModule.d.ts +308 -9
- package/dist/esm/internal-content-types/RouteLayoutModule.d.ts.map +1 -1
- package/dist/esm/internal-content-types/RouteLayoutModule.js +2 -2
- package/dist/esm/internal-content-types/RouteLayoutModuleOverride.d.ts +268 -8
- package/dist/esm/internal-content-types/RouteLayoutModuleOverride.d.ts.map +1 -1
- package/dist/esm/internal-content-types/RouteLayoutModuleOverride.js +2 -2
- package/dist/esm/internal-content-types/RouteMap.d.ts +267 -7
- package/dist/esm/internal-content-types/RouteMap.d.ts.map +1 -1
- package/dist/esm/internal-content-types/RouteMap.js +2 -2
- package/dist/esm/internal-content-types/RouteSettings.d.ts +299 -79
- package/dist/esm/internal-content-types/RouteSettings.d.ts.map +1 -1
- package/dist/esm/internal-content-types/RouteSettings.js +3 -3
- package/dist/esm/internal-content-types/Seo.d.ts +56 -4
- package/dist/esm/internal-content-types/Seo.d.ts.map +1 -1
- package/dist/esm/internal-content-types/Seo.js +2 -2
- package/dist/esm/internal-content-types/Session.d.ts +894 -51
- 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 +831 -54
- 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 +1066 -54
- 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 +948 -53
- 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 +20 -20
- package/dist/esm/internal-content-types/index.js +20 -20
- package/dist/esm/lib/ContentType.d.ts +87 -49
- package/dist/esm/lib/ContentType.d.ts.map +1 -1
- package/dist/esm/lib/ContentType.js +94 -65
- package/dist/esm/lib/ContentType.js.map +1 -1
- package/dist/esm/lib/Logger.d.ts.map +1 -1
- package/dist/esm/lib/Logger.js +56 -0
- package/dist/esm/lib/Logger.js.map +1 -1
- package/dist/esm/lib/Permissions.d.ts +1 -1
- package/dist/esm/lib/Registry.d.ts +29 -7
- package/dist/esm/lib/Registry.d.ts.map +1 -1
- package/dist/esm/lib/Registry.js +35 -22
- 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 +8 -10
- package/dist/esm/lib/fields/Boolean.d.ts.map +1 -1
- package/dist/esm/lib/fields/Boolean.js +14 -8
- package/dist/esm/lib/fields/Boolean.js.map +1 -1
- package/dist/esm/lib/fields/ContentReference.d.ts +15 -15
- package/dist/esm/lib/fields/ContentReference.d.ts.map +1 -1
- package/dist/esm/lib/fields/ContentReference.js +30 -17
- package/dist/esm/lib/fields/ContentReference.js.map +1 -1
- package/dist/esm/lib/fields/Date.d.ts +14 -17
- package/dist/esm/lib/fields/Date.d.ts.map +1 -1
- package/dist/esm/lib/fields/Date.js +25 -21
- package/dist/esm/lib/fields/Date.js.map +1 -1
- package/dist/esm/lib/fields/Field.d.ts +122 -59
- package/dist/esm/lib/fields/Field.d.ts.map +1 -1
- package/dist/esm/lib/fields/Field.js +70 -55
- package/dist/esm/lib/fields/Field.js.map +1 -1
- package/dist/esm/lib/fields/Fields.d.ts +29 -0
- package/dist/esm/lib/fields/Fields.d.ts.map +1 -0
- package/dist/esm/lib/fields/Fields.js +29 -0
- package/dist/esm/lib/fields/Fields.js.map +1 -0
- package/dist/esm/lib/fields/File.d.ts +26 -51
- package/dist/esm/lib/fields/File.d.ts.map +1 -1
- package/dist/esm/lib/fields/File.js +60 -85
- package/dist/esm/lib/fields/File.js.map +1 -1
- package/dist/esm/lib/fields/Iterator.d.ts +13 -25
- package/dist/esm/lib/fields/Iterator.d.ts.map +1 -1
- package/dist/esm/lib/fields/Iterator.js +9 -10
- package/dist/esm/lib/fields/Iterator.js.map +1 -1
- package/dist/esm/lib/fields/Link.d.ts +13 -15
- package/dist/esm/lib/fields/Link.d.ts.map +1 -1
- package/dist/esm/lib/fields/Link.js +21 -15
- package/dist/esm/lib/fields/Link.js.map +1 -1
- package/dist/esm/lib/fields/List.d.ts +34 -34
- package/dist/esm/lib/fields/List.d.ts.map +1 -1
- package/dist/esm/lib/fields/List.js +46 -15
- package/dist/esm/lib/fields/List.js.map +1 -1
- package/dist/esm/lib/fields/Number.d.ts +12 -12
- package/dist/esm/lib/fields/Number.d.ts.map +1 -1
- package/dist/esm/lib/fields/Number.js +35 -16
- package/dist/esm/lib/fields/Number.js.map +1 -1
- package/dist/esm/lib/fields/Relation.d.ts +45 -39
- package/dist/esm/lib/fields/Relation.d.ts.map +1 -1
- package/dist/esm/lib/fields/Relation.js +75 -67
- package/dist/esm/lib/fields/Relation.js.map +1 -1
- package/dist/esm/lib/fields/Select.d.ts +14 -13
- package/dist/esm/lib/fields/Select.d.ts.map +1 -1
- package/dist/esm/lib/fields/Select.js +28 -16
- package/dist/esm/lib/fields/Select.js.map +1 -1
- package/dist/esm/lib/fields/SelfRelation.d.ts +19 -18
- package/dist/esm/lib/fields/SelfRelation.d.ts.map +1 -1
- package/dist/esm/lib/fields/SelfRelation.js +31 -21
- package/dist/esm/lib/fields/SelfRelation.js.map +1 -1
- package/dist/esm/lib/fields/SimpleList.d.ts +16 -20
- package/dist/esm/lib/fields/SimpleList.d.ts.map +1 -1
- package/dist/esm/lib/fields/SimpleList.js +38 -20
- package/dist/esm/lib/fields/SimpleList.js.map +1 -1
- package/dist/esm/lib/fields/String.d.ts +18 -25
- package/dist/esm/lib/fields/String.d.ts.map +1 -1
- package/dist/esm/lib/fields/String.js +55 -41
- package/dist/esm/lib/fields/String.js.map +1 -1
- package/dist/esm/lib/fields/index.d.ts +15 -83
- package/dist/esm/lib/fields/index.d.ts.map +1 -1
- package/dist/esm/lib/fields/index.js +15 -36
- package/dist/esm/lib/fields/index.js.map +1 -1
- package/dist/esm/lib/types/index.d.ts +8 -4
- package/dist/esm/lib/types/index.d.ts.map +1 -1
- 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 +152 -148
- package/dist/esm/manager.d.ts.map +1 -1
- 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.d.ts.map +1 -1
- package/dist/esm/orm/operations/findDependencies.js +8 -6
- package/dist/esm/orm/operations/findDependencies.js.map +1 -1
- 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 +2 -2
- package/dist/esm/orm/utils/parseId.d.ts.map +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.d.ts +66 -18
- package/dist/esm/schemas/web/page.d.ts.map +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 +4 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const createManagerOperationContracts: () => {
|
|
2
|
-
"manager.contentTypes": import("./types
|
|
2
|
+
"manager.contentTypes": import("./types").RakunOperationContractWithoutInput<{
|
|
3
3
|
name: string;
|
|
4
4
|
fields: Record<string, unknown>;
|
|
5
5
|
uniques: string[][];
|
|
@@ -11,39 +11,37 @@ export declare const createManagerOperationContracts: () => {
|
|
|
11
11
|
listFields?: string[] | undefined;
|
|
12
12
|
isHiddenFromManager?: boolean | undefined;
|
|
13
13
|
}[], "query", "get", "auth">;
|
|
14
|
-
"manager.languages": import("./types
|
|
14
|
+
"manager.languages": import("./types").RakunOperationContractWithoutInput<{
|
|
15
15
|
code: string;
|
|
16
16
|
name: string;
|
|
17
17
|
default: boolean;
|
|
18
18
|
_type: "Language";
|
|
19
19
|
_id: string;
|
|
20
|
-
parent?:
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
contentType: string;
|
|
24
|
-
} | undefined;
|
|
20
|
+
parent?: import("../..").SelfRelationValue<string> | undefined;
|
|
21
|
+
createdAt?: Date | undefined;
|
|
22
|
+
updatedAt?: Date | undefined;
|
|
25
23
|
}[], "query", "get", "auth">;
|
|
26
|
-
"manager.regenerateRoutes": import("./types
|
|
24
|
+
"manager.regenerateRoutes": import("./types").RakunOperationContractWithoutInput<{
|
|
27
25
|
ok: boolean;
|
|
28
26
|
}, "mutation", "post", "auth">;
|
|
29
|
-
"manager.create": import("./types
|
|
27
|
+
"manager.create": import("./types").RakunOperationContractWithInput<{
|
|
30
28
|
contentType: string;
|
|
31
29
|
data: any;
|
|
32
30
|
}, any, "mutation", "post", "auth">;
|
|
33
|
-
"manager.update": import("./types
|
|
31
|
+
"manager.update": import("./types").RakunOperationContractWithInput<{
|
|
34
32
|
contentType: string;
|
|
35
33
|
id: string;
|
|
36
34
|
data: any;
|
|
37
35
|
}, any, "mutation", "post", "auth">;
|
|
38
|
-
"manager.delete": import("./types
|
|
36
|
+
"manager.delete": import("./types").RakunOperationContractWithInput<{
|
|
39
37
|
contentType: string;
|
|
40
38
|
id: string;
|
|
41
39
|
}, any, "mutation", "post", "auth">;
|
|
42
|
-
"manager.get": import("./types
|
|
40
|
+
"manager.get": import("./types").RakunOperationContractWithInput<{
|
|
43
41
|
contentType: string;
|
|
44
42
|
id: string;
|
|
45
43
|
}, any, "query", "post", "auth">;
|
|
46
|
-
"manager.list": import("./types
|
|
44
|
+
"manager.list": import("./types").RakunOperationContractWithInput<{
|
|
47
45
|
contentType: string;
|
|
48
46
|
query: {
|
|
49
47
|
filter?: Record<string, any> | undefined;
|
|
@@ -61,13 +59,13 @@ export declare const createManagerOperationContracts: () => {
|
|
|
61
59
|
_id: string;
|
|
62
60
|
}[];
|
|
63
61
|
}, "query", "post", "auth">;
|
|
64
|
-
"manager.setDefaultLanguage": import("./types
|
|
62
|
+
"manager.setDefaultLanguage": import("./types").RakunOperationContractWithInput<{
|
|
65
63
|
language: string;
|
|
66
64
|
}, {
|
|
67
65
|
ok: boolean;
|
|
68
66
|
}, "mutation", "post", "auth">;
|
|
69
|
-
"manager.permissions": import("./types
|
|
70
|
-
"manager.media.prepareUpload": import("./types
|
|
67
|
+
"manager.permissions": import("./types").RakunOperationContractWithoutInput<string[], "query", "get", "auth">;
|
|
68
|
+
"manager.media.prepareUpload": import("./types").RakunOperationContractWithInput<{
|
|
71
69
|
fileName: string;
|
|
72
70
|
mime: string;
|
|
73
71
|
size: number;
|
|
@@ -80,7 +78,7 @@ export declare const createManagerOperationContracts: () => {
|
|
|
80
78
|
access: "public" | "private";
|
|
81
79
|
headers?: Record<string, string> | undefined;
|
|
82
80
|
}, "mutation", "post", "auth">;
|
|
83
|
-
"manager.media.finalizeUpload": import("./types
|
|
81
|
+
"manager.media.finalizeUpload": import("./types").RakunOperationContractWithInput<{
|
|
84
82
|
key: string;
|
|
85
83
|
access?: "public" | "private" | undefined;
|
|
86
84
|
fileName?: string | undefined;
|
|
@@ -147,7 +145,7 @@ export declare const createManagerOperationContracts: () => {
|
|
|
147
145
|
path: string;
|
|
148
146
|
} | undefined;
|
|
149
147
|
}, "mutation", "post", "auth">;
|
|
150
|
-
"manager.media.getUrl": import("./types
|
|
148
|
+
"manager.media.getUrl": import("./types").RakunOperationContractWithInput<{
|
|
151
149
|
key: string;
|
|
152
150
|
access?: "public" | "private" | undefined;
|
|
153
151
|
expiresInSeconds?: number | undefined;
|
|
@@ -158,7 +156,7 @@ export declare const createManagerOperationContracts: () => {
|
|
|
158
156
|
expiresAt: Date | null;
|
|
159
157
|
isPublic: boolean;
|
|
160
158
|
}, "query", "post", "auth">;
|
|
161
|
-
"manager.media.createFolder": import("./types
|
|
159
|
+
"manager.media.createFolder": import("./types").RakunOperationContractWithInput<{
|
|
162
160
|
name: string;
|
|
163
161
|
parentId?: string | undefined;
|
|
164
162
|
description?: string | undefined;
|
|
@@ -170,7 +168,7 @@ export declare const createManagerOperationContracts: () => {
|
|
|
170
168
|
parentId?: string | undefined;
|
|
171
169
|
description?: string | undefined;
|
|
172
170
|
}, "mutation", "post", "auth">;
|
|
173
|
-
"manager.media.listFolders": import("./types
|
|
171
|
+
"manager.media.listFolders": import("./types").RakunOperationContractWithInput<{
|
|
174
172
|
parentId?: string | undefined;
|
|
175
173
|
}, {
|
|
176
174
|
items: {
|
|
@@ -182,7 +180,7 @@ export declare const createManagerOperationContracts: () => {
|
|
|
182
180
|
description?: string | undefined;
|
|
183
181
|
}[];
|
|
184
182
|
}, "query", "post", "auth">;
|
|
185
|
-
"manager.literals.list": import("./types
|
|
183
|
+
"manager.literals.list": import("./types").RakunOperationContractWithInput<{
|
|
186
184
|
locale?: string | undefined;
|
|
187
185
|
}, {
|
|
188
186
|
defaultLocale: string;
|
|
@@ -211,7 +209,7 @@ export declare const createManagerOperationContracts: () => {
|
|
|
211
209
|
translation?: string | undefined;
|
|
212
210
|
}[];
|
|
213
211
|
}, "query", "post", "auth">;
|
|
214
|
-
"manager.literals.upsert": import("./types
|
|
212
|
+
"manager.literals.upsert": import("./types").RakunOperationContractWithInput<{
|
|
215
213
|
key: string;
|
|
216
214
|
locale: string;
|
|
217
215
|
message: string;
|
|
@@ -227,13 +225,13 @@ export declare const createManagerOperationContracts: () => {
|
|
|
227
225
|
extra: string[];
|
|
228
226
|
};
|
|
229
227
|
}, "mutation", "post", "auth">;
|
|
230
|
-
"manager.auth.updatePassword": import("./types
|
|
228
|
+
"manager.auth.updatePassword": import("./types").RakunOperationContractWithInput<{
|
|
231
229
|
currentPassword: string;
|
|
232
230
|
newPassword: string;
|
|
233
231
|
}, {
|
|
234
232
|
ok: boolean;
|
|
235
233
|
}, "mutation", "post", "auth">;
|
|
236
|
-
"manager.auth.login": import("./types
|
|
234
|
+
"manager.auth.login": import("./types").RakunOperationContractWithInput<{
|
|
237
235
|
username: string;
|
|
238
236
|
password: string;
|
|
239
237
|
}, {
|
|
@@ -243,10 +241,10 @@ export declare const createManagerOperationContracts: () => {
|
|
|
243
241
|
expiresAt: string;
|
|
244
242
|
method: string;
|
|
245
243
|
}, "mutation", "post", "public">;
|
|
246
|
-
"manager.auth.logout": import("./types
|
|
244
|
+
"manager.auth.logout": import("./types").RakunOperationContractWithoutInput<{
|
|
247
245
|
token: string;
|
|
248
246
|
}, "mutation", "post", "auth">;
|
|
249
|
-
"manager.auth.getSession": import("./types
|
|
247
|
+
"manager.auth.getSession": import("./types").RakunOperationContractWithoutInput<{
|
|
250
248
|
user: string;
|
|
251
249
|
email: string;
|
|
252
250
|
role: {
|
|
@@ -254,13 +252,16 @@ export declare const createManagerOperationContracts: () => {
|
|
|
254
252
|
permissions: ("manager.users.readAny" | "manager.users.updateAny" | "manager.users.deleteAny" | "manager.roles.readAny" | "manager.roles.updateAny" | "manager.roles.deleteAny" | "manager.routes.readAny" | "manager.routes.updateAny" | "manager.routes.deleteAny" | "manager.languages.readAny" | "manager.languages.updateAny" | "manager.languages.deleteAny" | "content.Media.readAny" | "content.Media.own" | "content.Media.updateAny" | "content.Media.deleteAny" | "content.Redirect.readAny" | "content.Redirect.own" | "content.Redirect.updateAny" | "content.Redirect.deleteAny" | "manager.literals.readAny" | "manager.literals.updateAny")[];
|
|
255
253
|
_type: "ManagerRole";
|
|
256
254
|
_id: string;
|
|
255
|
+
createdAt?: Date | undefined;
|
|
256
|
+
updatedAt?: Date | undefined;
|
|
257
257
|
};
|
|
258
258
|
twoFactorEnabled: boolean;
|
|
259
259
|
_type: "ManagerUser";
|
|
260
260
|
_id: string;
|
|
261
|
-
|
|
261
|
+
createdAt?: Date | undefined;
|
|
262
|
+
updatedAt?: Date | undefined;
|
|
262
263
|
} | null, "query", "get", "public">;
|
|
263
|
-
"manager.auth.accountInfo": import("./types
|
|
264
|
+
"manager.auth.accountInfo": import("./types").RakunOperationContractWithoutInput<{
|
|
264
265
|
has2FA: boolean;
|
|
265
266
|
enabled2FA: boolean;
|
|
266
267
|
method2FA: "totp" | "webauthn";
|
|
@@ -271,21 +272,21 @@ export declare const createManagerOperationContracts: () => {
|
|
|
271
272
|
}[];
|
|
272
273
|
currentSession: string;
|
|
273
274
|
}, "query", "get", "auth">;
|
|
274
|
-
"manager.auth.deleteSession": import("./types
|
|
275
|
+
"manager.auth.deleteSession": import("./types").RakunOperationContractWithInput<{
|
|
275
276
|
token: string;
|
|
276
277
|
}, {
|
|
277
278
|
ok: boolean;
|
|
278
279
|
}, "mutation", "post", "auth">;
|
|
279
|
-
"manager.auth.totp.enroll": import("./types
|
|
280
|
+
"manager.auth.totp.enroll": import("./types").RakunOperationContractWithoutInput<{
|
|
280
281
|
qrDataURL: string;
|
|
281
282
|
otpauthURL: string;
|
|
282
283
|
}, "query", "get", "auth">;
|
|
283
|
-
"manager.auth.totp.confirm": import("./types
|
|
284
|
+
"manager.auth.totp.confirm": import("./types").RakunOperationContractWithInput<{
|
|
284
285
|
code: string;
|
|
285
286
|
}, {
|
|
286
287
|
ok: boolean;
|
|
287
288
|
}, "mutation", "post", "auth">;
|
|
288
|
-
"manager.auth.totp.verify": import("./types
|
|
289
|
+
"manager.auth.totp.verify": import("./types").RakunOperationContractWithInput<{
|
|
289
290
|
code: string;
|
|
290
291
|
challenge: string;
|
|
291
292
|
}, {
|
|
@@ -293,25 +294,25 @@ export declare const createManagerOperationContracts: () => {
|
|
|
293
294
|
} | {
|
|
294
295
|
error: string;
|
|
295
296
|
}, "mutation", "post", "public">;
|
|
296
|
-
"manager.auth.webauthn.register.options": import("./types
|
|
297
|
+
"manager.auth.webauthn.register.options": import("./types").RakunOperationContractWithInput<{
|
|
297
298
|
deviceName: string;
|
|
298
299
|
}, {
|
|
299
300
|
token: string;
|
|
300
301
|
options: any;
|
|
301
302
|
}, "query", "post", "auth">;
|
|
302
|
-
"manager.auth.webauthn.register.verify": import("./types
|
|
303
|
+
"manager.auth.webauthn.register.verify": import("./types").RakunOperationContractWithInput<{
|
|
303
304
|
token: string;
|
|
304
305
|
deviceName: string;
|
|
305
306
|
response: any;
|
|
306
307
|
}, {
|
|
307
308
|
ok: boolean;
|
|
308
309
|
}, "mutation", "post", "auth">;
|
|
309
|
-
"manager.auth.webauthn.auth.options": import("./types
|
|
310
|
+
"manager.auth.webauthn.auth.options": import("./types").RakunOperationContractWithInput<{
|
|
310
311
|
challengeToken: string;
|
|
311
312
|
}, {
|
|
312
313
|
options: any;
|
|
313
314
|
}, "query", "post", "public">;
|
|
314
|
-
"manager.auth.webauthn.auth.verify": import("./types
|
|
315
|
+
"manager.auth.webauthn.auth.verify": import("./types").RakunOperationContractWithInput<{
|
|
315
316
|
challengeToken: string;
|
|
316
317
|
response: any;
|
|
317
318
|
}, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manager-contract.d.ts","sourceRoot":"","sources":["../../../../src/api/operations/manager-contract.ts"],"names":[],"mappings":"AAkDA,eAAO,MAAM,+BAA+B
|
|
1
|
+
{"version":3,"file":"manager-contract.d.ts","sourceRoot":"","sources":["../../../../src/api/operations/manager-contract.ts"],"names":[],"mappings":"AAkDA,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2OJ,CAAC"}
|
|
@@ -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";
|
|
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";
|
|
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
|
|
2
|
+
"manager.contentTypes": import("./types").RakunOperationWithoutInput<{
|
|
3
3
|
name: string;
|
|
4
4
|
fields: Record<string, unknown>;
|
|
5
5
|
uniques: string[][];
|
|
@@ -11,39 +11,37 @@ export declare const createManagerOperationDefinitions: () => {
|
|
|
11
11
|
listFields?: string[] | undefined;
|
|
12
12
|
isHiddenFromManager?: boolean | undefined;
|
|
13
13
|
}[], "query", "get", "auth">;
|
|
14
|
-
"manager.languages": import("./types
|
|
14
|
+
"manager.languages": import("./types").RakunOperationWithoutInput<{
|
|
15
15
|
code: string;
|
|
16
16
|
name: string;
|
|
17
17
|
default: boolean;
|
|
18
18
|
_type: "Language";
|
|
19
19
|
_id: string;
|
|
20
|
-
parent?:
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
contentType: string;
|
|
24
|
-
} | undefined;
|
|
20
|
+
parent?: import("../..").SelfRelationValue<string> | undefined;
|
|
21
|
+
createdAt?: Date | undefined;
|
|
22
|
+
updatedAt?: Date | undefined;
|
|
25
23
|
}[], "query", "get", "auth">;
|
|
26
|
-
"manager.regenerateRoutes": import("./types
|
|
24
|
+
"manager.regenerateRoutes": import("./types").RakunOperationWithoutInput<{
|
|
27
25
|
ok: boolean;
|
|
28
26
|
}, "mutation", "post", "auth">;
|
|
29
|
-
"manager.create": import("./types
|
|
27
|
+
"manager.create": import("./types").RakunOperationWithInput<{
|
|
30
28
|
contentType: string;
|
|
31
29
|
data: any;
|
|
32
30
|
}, any, "mutation", "post", "auth">;
|
|
33
|
-
"manager.update": import("./types
|
|
31
|
+
"manager.update": import("./types").RakunOperationWithInput<{
|
|
34
32
|
contentType: string;
|
|
35
33
|
id: string;
|
|
36
34
|
data: any;
|
|
37
35
|
}, any, "mutation", "post", "auth">;
|
|
38
|
-
"manager.delete": import("./types
|
|
36
|
+
"manager.delete": import("./types").RakunOperationWithInput<{
|
|
39
37
|
contentType: string;
|
|
40
38
|
id: string;
|
|
41
39
|
}, any, "mutation", "post", "auth">;
|
|
42
|
-
"manager.get": import("./types
|
|
40
|
+
"manager.get": import("./types").RakunOperationWithInput<{
|
|
43
41
|
contentType: string;
|
|
44
42
|
id: string;
|
|
45
43
|
}, any, "query", "post", "auth">;
|
|
46
|
-
"manager.list": import("./types
|
|
44
|
+
"manager.list": import("./types").RakunOperationWithInput<{
|
|
47
45
|
contentType: string;
|
|
48
46
|
query: {
|
|
49
47
|
filter?: Record<string, any> | undefined;
|
|
@@ -61,13 +59,13 @@ export declare const createManagerOperationDefinitions: () => {
|
|
|
61
59
|
_id: string;
|
|
62
60
|
}[];
|
|
63
61
|
}, "query", "post", "auth">;
|
|
64
|
-
"manager.setDefaultLanguage": import("./types
|
|
62
|
+
"manager.setDefaultLanguage": import("./types").RakunOperationWithInput<{
|
|
65
63
|
language: string;
|
|
66
64
|
}, {
|
|
67
65
|
ok: boolean;
|
|
68
66
|
}, "mutation", "post", "auth">;
|
|
69
|
-
"manager.permissions": import("./types
|
|
70
|
-
"manager.media.prepareUpload": import("./types
|
|
67
|
+
"manager.permissions": import("./types").RakunOperationWithoutInput<string[], "query", "get", "auth">;
|
|
68
|
+
"manager.media.prepareUpload": import("./types").RakunOperationWithInput<{
|
|
71
69
|
fileName: string;
|
|
72
70
|
mime: string;
|
|
73
71
|
size: number;
|
|
@@ -80,7 +78,7 @@ export declare const createManagerOperationDefinitions: () => {
|
|
|
80
78
|
access: "public" | "private";
|
|
81
79
|
headers?: Record<string, string> | undefined;
|
|
82
80
|
}, "mutation", "post", "auth">;
|
|
83
|
-
"manager.media.finalizeUpload": import("./types
|
|
81
|
+
"manager.media.finalizeUpload": import("./types").RakunOperationWithInput<{
|
|
84
82
|
key: string;
|
|
85
83
|
access?: "public" | "private" | undefined;
|
|
86
84
|
fileName?: string | undefined;
|
|
@@ -147,7 +145,7 @@ export declare const createManagerOperationDefinitions: () => {
|
|
|
147
145
|
path: string;
|
|
148
146
|
} | undefined;
|
|
149
147
|
}, "mutation", "post", "auth">;
|
|
150
|
-
"manager.media.getUrl": import("./types
|
|
148
|
+
"manager.media.getUrl": import("./types").RakunOperationWithInput<{
|
|
151
149
|
key: string;
|
|
152
150
|
access?: "public" | "private" | undefined;
|
|
153
151
|
expiresInSeconds?: number | undefined;
|
|
@@ -158,7 +156,7 @@ export declare const createManagerOperationDefinitions: () => {
|
|
|
158
156
|
expiresAt: Date | null;
|
|
159
157
|
isPublic: boolean;
|
|
160
158
|
}, "query", "post", "auth">;
|
|
161
|
-
"manager.media.createFolder": import("./types
|
|
159
|
+
"manager.media.createFolder": import("./types").RakunOperationWithInput<{
|
|
162
160
|
name: string;
|
|
163
161
|
parentId?: string | undefined;
|
|
164
162
|
description?: string | undefined;
|
|
@@ -170,7 +168,7 @@ export declare const createManagerOperationDefinitions: () => {
|
|
|
170
168
|
parentId?: string | undefined;
|
|
171
169
|
description?: string | undefined;
|
|
172
170
|
}, "mutation", "post", "auth">;
|
|
173
|
-
"manager.media.listFolders": import("./types
|
|
171
|
+
"manager.media.listFolders": import("./types").RakunOperationWithInput<{
|
|
174
172
|
parentId?: string | undefined;
|
|
175
173
|
}, {
|
|
176
174
|
items: {
|
|
@@ -182,7 +180,7 @@ export declare const createManagerOperationDefinitions: () => {
|
|
|
182
180
|
description?: string | undefined;
|
|
183
181
|
}[];
|
|
184
182
|
}, "query", "post", "auth">;
|
|
185
|
-
"manager.literals.list": import("./types
|
|
183
|
+
"manager.literals.list": import("./types").RakunOperationWithInput<{
|
|
186
184
|
locale?: string | undefined;
|
|
187
185
|
}, {
|
|
188
186
|
defaultLocale: string;
|
|
@@ -211,7 +209,7 @@ export declare const createManagerOperationDefinitions: () => {
|
|
|
211
209
|
translation?: string | undefined;
|
|
212
210
|
}[];
|
|
213
211
|
}, "query", "post", "auth">;
|
|
214
|
-
"manager.literals.upsert": import("./types
|
|
212
|
+
"manager.literals.upsert": import("./types").RakunOperationWithInput<{
|
|
215
213
|
key: string;
|
|
216
214
|
locale: string;
|
|
217
215
|
message: string;
|
|
@@ -227,13 +225,13 @@ export declare const createManagerOperationDefinitions: () => {
|
|
|
227
225
|
extra: string[];
|
|
228
226
|
};
|
|
229
227
|
}, "mutation", "post", "auth">;
|
|
230
|
-
"manager.auth.updatePassword": import("./types
|
|
228
|
+
"manager.auth.updatePassword": import("./types").RakunOperationWithInput<{
|
|
231
229
|
currentPassword: string;
|
|
232
230
|
newPassword: string;
|
|
233
231
|
}, {
|
|
234
232
|
ok: boolean;
|
|
235
233
|
}, "mutation", "post", "auth">;
|
|
236
|
-
"manager.auth.login": import("./types
|
|
234
|
+
"manager.auth.login": import("./types").RakunOperationWithInput<{
|
|
237
235
|
username: string;
|
|
238
236
|
password: string;
|
|
239
237
|
}, {
|
|
@@ -243,10 +241,10 @@ export declare const createManagerOperationDefinitions: () => {
|
|
|
243
241
|
expiresAt: string;
|
|
244
242
|
method: string;
|
|
245
243
|
}, "mutation", "post", "public">;
|
|
246
|
-
"manager.auth.logout": import("./types
|
|
244
|
+
"manager.auth.logout": import("./types").RakunOperationWithoutInput<{
|
|
247
245
|
token: string;
|
|
248
246
|
}, "mutation", "post", "auth">;
|
|
249
|
-
"manager.auth.getSession": import("./types
|
|
247
|
+
"manager.auth.getSession": import("./types").RakunOperationWithoutInput<{
|
|
250
248
|
user: string;
|
|
251
249
|
email: string;
|
|
252
250
|
role: {
|
|
@@ -254,13 +252,16 @@ export declare const createManagerOperationDefinitions: () => {
|
|
|
254
252
|
permissions: ("manager.users.readAny" | "manager.users.updateAny" | "manager.users.deleteAny" | "manager.roles.readAny" | "manager.roles.updateAny" | "manager.roles.deleteAny" | "manager.routes.readAny" | "manager.routes.updateAny" | "manager.routes.deleteAny" | "manager.languages.readAny" | "manager.languages.updateAny" | "manager.languages.deleteAny" | "content.Media.readAny" | "content.Media.own" | "content.Media.updateAny" | "content.Media.deleteAny" | "content.Redirect.readAny" | "content.Redirect.own" | "content.Redirect.updateAny" | "content.Redirect.deleteAny" | "manager.literals.readAny" | "manager.literals.updateAny")[];
|
|
255
253
|
_type: "ManagerRole";
|
|
256
254
|
_id: string;
|
|
255
|
+
createdAt?: Date | undefined;
|
|
256
|
+
updatedAt?: Date | undefined;
|
|
257
257
|
};
|
|
258
258
|
twoFactorEnabled: boolean;
|
|
259
259
|
_type: "ManagerUser";
|
|
260
260
|
_id: string;
|
|
261
|
-
|
|
261
|
+
createdAt?: Date | undefined;
|
|
262
|
+
updatedAt?: Date | undefined;
|
|
262
263
|
} | null, "query", "get", "public">;
|
|
263
|
-
"manager.auth.accountInfo": import("./types
|
|
264
|
+
"manager.auth.accountInfo": import("./types").RakunOperationWithoutInput<{
|
|
264
265
|
has2FA: boolean;
|
|
265
266
|
enabled2FA: boolean;
|
|
266
267
|
method2FA: "totp" | "webauthn";
|
|
@@ -271,21 +272,21 @@ export declare const createManagerOperationDefinitions: () => {
|
|
|
271
272
|
}[];
|
|
272
273
|
currentSession: string;
|
|
273
274
|
}, "query", "get", "auth">;
|
|
274
|
-
"manager.auth.deleteSession": import("./types
|
|
275
|
+
"manager.auth.deleteSession": import("./types").RakunOperationWithInput<{
|
|
275
276
|
token: string;
|
|
276
277
|
}, {
|
|
277
278
|
ok: boolean;
|
|
278
279
|
}, "mutation", "post", "auth">;
|
|
279
|
-
"manager.auth.totp.enroll": import("./types
|
|
280
|
+
"manager.auth.totp.enroll": import("./types").RakunOperationWithoutInput<{
|
|
280
281
|
qrDataURL: string;
|
|
281
282
|
otpauthURL: string;
|
|
282
283
|
}, "query", "get", "auth">;
|
|
283
|
-
"manager.auth.totp.confirm": import("./types
|
|
284
|
+
"manager.auth.totp.confirm": import("./types").RakunOperationWithInput<{
|
|
284
285
|
code: string;
|
|
285
286
|
}, {
|
|
286
287
|
ok: boolean;
|
|
287
288
|
}, "mutation", "post", "auth">;
|
|
288
|
-
"manager.auth.totp.verify": import("./types
|
|
289
|
+
"manager.auth.totp.verify": import("./types").RakunOperationWithInput<{
|
|
289
290
|
code: string;
|
|
290
291
|
challenge: string;
|
|
291
292
|
}, {
|
|
@@ -293,29 +294,29 @@ export declare const createManagerOperationDefinitions: () => {
|
|
|
293
294
|
} | {
|
|
294
295
|
error: string;
|
|
295
296
|
}, "mutation", "post", "public">;
|
|
296
|
-
"manager.auth.webauthn.register.options": import("./types
|
|
297
|
+
"manager.auth.webauthn.register.options": import("./types").RakunOperationWithInput<{
|
|
297
298
|
deviceName: string;
|
|
298
299
|
}, {
|
|
299
300
|
token: string;
|
|
300
301
|
options: any;
|
|
301
302
|
}, "query", "post", "auth">;
|
|
302
|
-
"manager.auth.webauthn.register.verify": import("./types
|
|
303
|
+
"manager.auth.webauthn.register.verify": import("./types").RakunOperationWithInput<{
|
|
303
304
|
token: string;
|
|
304
305
|
deviceName: string;
|
|
305
306
|
response: any;
|
|
306
307
|
}, {
|
|
307
308
|
ok: boolean;
|
|
308
309
|
}, "mutation", "post", "auth">;
|
|
309
|
-
"manager.auth.webauthn.auth.options": import("./types
|
|
310
|
+
"manager.auth.webauthn.auth.options": import("./types").RakunOperationWithInput<{
|
|
310
311
|
challengeToken: string;
|
|
311
312
|
}, {
|
|
312
313
|
options: any;
|
|
313
314
|
}, "query", "post", "public">;
|
|
314
|
-
"manager.auth.webauthn.auth.verify": import("./types
|
|
315
|
+
"manager.auth.webauthn.auth.verify": import("./types").RakunOperationWithInput<{
|
|
315
316
|
challengeToken: string;
|
|
316
317
|
response: any;
|
|
317
318
|
}, {
|
|
318
319
|
token: string;
|
|
319
320
|
}, "mutation", "post", "public">;
|
|
320
|
-
} & import("./types
|
|
321
|
+
} & import("./types").RakunOperationMap;
|
|
321
322
|
//# sourceMappingURL=manager.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manager.d.ts","sourceRoot":"","sources":["../../../../src/api/operations/manager.ts"],"names":[],"mappings":"AAsCA,eAAO,MAAM,iCAAiC
|
|
1
|
+
{"version":3,"file":"manager.d.ts","sourceRoot":"","sources":["../../../../src/api/operations/manager.ts"],"names":[],"mappings":"AAsCA,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uCA4L7C,CAAC"}
|
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import { mergeOperationContracts } from "./types
|
|
2
|
-
import { createManagerOperationContracts } from "./manager-contract
|
|
3
|
-
import { getCustomApiOperationDefinitions, mergeOperationMaps } from "./custom
|
|
4
|
-
import { setSessionCookie } from "../sessionCookie
|
|
5
|
-
import { throwAppError } from "../../lib/errors
|
|
6
|
-
import { Logger } from "../../lib/Logger
|
|
7
|
-
import { getPermissionList } from "../../lib/Permissions
|
|
8
|
-
import { getContentTypesForManager } from "../../lib/Registry
|
|
9
|
-
import { getLanguages } from "../utils/getLanguages
|
|
10
|
-
import { regenerateAllRoutesMap } from "../utils/routes/updateRoutesMap
|
|
11
|
-
import { createHandler } from "../routes/manager/create
|
|
12
|
-
import { deleteHandler } from "../routes/manager/delete
|
|
13
|
-
import { getHandler } from "../routes/manager/get
|
|
14
|
-
import { listHandler } from "../routes/manager/list
|
|
15
|
-
import { setDefaultLanguageHandler } from "../routes/manager/setDefaultLanguage
|
|
16
|
-
import { updateHandler } from "../routes/manager/update
|
|
17
|
-
import { loginHandler } from "../routes/manager/auth/login
|
|
18
|
-
import { enrollTotpHandler } from "../routes/manager/auth/totp/enrollTotp
|
|
19
|
-
import { logoutHandler } from "../routes/manager/auth/logout
|
|
20
|
-
import { updatePasswordHandler } from "../routes/manager/auth/updatePassword
|
|
21
|
-
import { confirmTotpHandler } from "../routes/manager/auth/totp/confirmTotp
|
|
22
|
-
import { verifyTotpHandler } from "../routes/manager/auth/totp/verifyTotp
|
|
23
|
-
import { webauthnRegisterOptionsHandler } from "../routes/manager/auth/webauthn/webauthnRegisterOptions
|
|
24
|
-
import { webauthnRegisterVerifyHandler } from "../routes/manager/auth/webauthn/webauthnRegisterVerify
|
|
25
|
-
import { webauthnAuthOptionsHandler } from "../routes/manager/auth/webauthn/webauthnAuthOptions
|
|
26
|
-
import { webauthnAuthVerifyHandler } from "../routes/manager/auth/webauthn/webauthnAuthVerify
|
|
27
|
-
import { accountInfoHandler } from "../routes/manager/auth/accountInfo
|
|
28
|
-
import { deleteSessionHandler } from "../routes/manager/auth/deleteSession
|
|
29
|
-
import { prepareUploadHandler } from "../routes/manager/media/prepareUpload
|
|
30
|
-
import { finalizeUploadHandler } from "../routes/manager/media/finalizeUpload
|
|
31
|
-
import { getMediaUrlHandler } from "../routes/manager/media/getMediaUrl
|
|
32
|
-
import { createFolderHandler } from "../routes/manager/media/createFolder
|
|
33
|
-
import { listFoldersHandler } from "../routes/manager/media/listFolders
|
|
34
|
-
import { listLiteralsHandler } from "../routes/manager/literals/list
|
|
35
|
-
import { upsertLiteralHandler } from "../routes/manager/literals/upsert
|
|
1
|
+
import { mergeOperationContracts } from "./types";
|
|
2
|
+
import { createManagerOperationContracts } from "./manager-contract";
|
|
3
|
+
import { getCustomApiOperationDefinitions, mergeOperationMaps } from "./custom";
|
|
4
|
+
import { setSessionCookie } from "../sessionCookie";
|
|
5
|
+
import { throwAppError } from "../../lib/errors";
|
|
6
|
+
import { Logger } from "../../lib/Logger";
|
|
7
|
+
import { getPermissionList } from "../../lib/Permissions";
|
|
8
|
+
import { getContentTypesForManager } from "../../lib/Registry";
|
|
9
|
+
import { getLanguages } from "../utils/getLanguages";
|
|
10
|
+
import { regenerateAllRoutesMap } from "../utils/routes/updateRoutesMap";
|
|
11
|
+
import { createHandler } from "../routes/manager/create";
|
|
12
|
+
import { deleteHandler } from "../routes/manager/delete";
|
|
13
|
+
import { getHandler } from "../routes/manager/get";
|
|
14
|
+
import { listHandler } from "../routes/manager/list";
|
|
15
|
+
import { setDefaultLanguageHandler } from "../routes/manager/setDefaultLanguage";
|
|
16
|
+
import { updateHandler } from "../routes/manager/update";
|
|
17
|
+
import { loginHandler } from "../routes/manager/auth/login";
|
|
18
|
+
import { enrollTotpHandler } from "../routes/manager/auth/totp/enrollTotp";
|
|
19
|
+
import { logoutHandler } from "../routes/manager/auth/logout";
|
|
20
|
+
import { updatePasswordHandler } from "../routes/manager/auth/updatePassword";
|
|
21
|
+
import { confirmTotpHandler } from "../routes/manager/auth/totp/confirmTotp";
|
|
22
|
+
import { verifyTotpHandler } from "../routes/manager/auth/totp/verifyTotp";
|
|
23
|
+
import { webauthnRegisterOptionsHandler } from "../routes/manager/auth/webauthn/webauthnRegisterOptions";
|
|
24
|
+
import { webauthnRegisterVerifyHandler } from "../routes/manager/auth/webauthn/webauthnRegisterVerify";
|
|
25
|
+
import { webauthnAuthOptionsHandler } from "../routes/manager/auth/webauthn/webauthnAuthOptions";
|
|
26
|
+
import { webauthnAuthVerifyHandler } from "../routes/manager/auth/webauthn/webauthnAuthVerify";
|
|
27
|
+
import { accountInfoHandler } from "../routes/manager/auth/accountInfo";
|
|
28
|
+
import { deleteSessionHandler } from "../routes/manager/auth/deleteSession";
|
|
29
|
+
import { prepareUploadHandler } from "../routes/manager/media/prepareUpload";
|
|
30
|
+
import { finalizeUploadHandler } from "../routes/manager/media/finalizeUpload";
|
|
31
|
+
import { getMediaUrlHandler } from "../routes/manager/media/getMediaUrl";
|
|
32
|
+
import { createFolderHandler } from "../routes/manager/media/createFolder";
|
|
33
|
+
import { listFoldersHandler } from "../routes/manager/media/listFolders";
|
|
34
|
+
import { listLiteralsHandler } from "../routes/manager/literals/list";
|
|
35
|
+
import { upsertLiteralHandler } from "../routes/manager/literals/upsert";
|
|
36
36
|
export const createManagerOperationDefinitions = () => {
|
|
37
37
|
const contracts = createManagerOperationContracts();
|
|
38
38
|
const implementations = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ZodType } from "zod";
|
|
2
|
-
import type { RakunRequestContext } from "../context
|
|
2
|
+
import type { RakunRequestContext } from "../context";
|
|
3
3
|
export type RakunOperationAccess = "public" | "auth";
|
|
4
4
|
export type RakunOperationKind = "query" | "mutation";
|
|
5
5
|
export type RakunOperationHttpMethod = "get" | "post";
|
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
export declare const createWebOperationContracts: () => {
|
|
2
|
-
"web.languages": import("./types
|
|
2
|
+
"web.languages": import("./types").RakunOperationContractWithoutInput<{
|
|
3
3
|
code: string;
|
|
4
4
|
name: string;
|
|
5
5
|
default: boolean;
|
|
6
6
|
_type: "Language";
|
|
7
7
|
_id: string;
|
|
8
|
-
parent?:
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
contentType: string;
|
|
12
|
-
} | undefined;
|
|
8
|
+
parent?: import("../..").SelfRelationValue<string> | undefined;
|
|
9
|
+
createdAt?: Date | undefined;
|
|
10
|
+
updatedAt?: Date | undefined;
|
|
13
11
|
}[], "query", "get", "public">;
|
|
14
|
-
"web.page": import("./types
|
|
12
|
+
"web.page": import("./types").RakunOperationContractWithInput<{
|
|
15
13
|
path: string;
|
|
16
14
|
search?: string | undefined;
|
|
17
15
|
headers?: Record<string, string> | undefined;
|
|
@@ -44,6 +42,8 @@ export declare const createWebOperationContracts: () => {
|
|
|
44
42
|
_id: string;
|
|
45
43
|
title?: string | undefined;
|
|
46
44
|
description?: string | undefined;
|
|
45
|
+
createdAt?: Date | undefined;
|
|
46
|
+
updatedAt?: Date | undefined;
|
|
47
47
|
} | undefined;
|
|
48
48
|
language?: {
|
|
49
49
|
code: string;
|
|
@@ -51,11 +51,9 @@ export declare const createWebOperationContracts: () => {
|
|
|
51
51
|
default: boolean;
|
|
52
52
|
_type: "Language";
|
|
53
53
|
_id: string;
|
|
54
|
-
parent?:
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
contentType: string;
|
|
58
|
-
} | undefined;
|
|
54
|
+
parent?: import("../..").SelfRelationValue<string> | undefined;
|
|
55
|
+
createdAt?: Date | undefined;
|
|
56
|
+
updatedAt?: Date | undefined;
|
|
59
57
|
} | undefined;
|
|
60
58
|
info?: Record<string, unknown> | undefined;
|
|
61
59
|
redirect?: {
|
|
@@ -63,7 +61,7 @@ export declare const createWebOperationContracts: () => {
|
|
|
63
61
|
status: number;
|
|
64
62
|
} | undefined;
|
|
65
63
|
}, "query", "get", "public">;
|
|
66
|
-
"web.test": import("./types
|
|
64
|
+
"web.test": import("./types").RakunOperationContractWithoutInput<{
|
|
67
65
|
ok: boolean;
|
|
68
66
|
}, "query", "get", "public">;
|
|
69
67
|
};
|