@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
package/dist/esm/manager.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type AnyRakunOperationContract, type RakunOperationHttpMethod, type RakunOperationKind } from "./api/operations/types
|
|
2
|
-
import { createManagerOperationContracts } from "./api/operations/manager-contract
|
|
1
|
+
import { type AnyRakunOperationContract, type RakunOperationHttpMethod, type RakunOperationKind } from "./api/operations/types";
|
|
2
|
+
import { createManagerOperationContracts } from "./api/operations/manager-contract";
|
|
3
3
|
export type ManagerOperationContracts = ReturnType<typeof createManagerOperationContracts>;
|
|
4
4
|
export type ManagerOperationDefinitions = ManagerOperationContracts;
|
|
5
5
|
export type ManagerOperationName = keyof ManagerOperationContracts & string;
|
|
@@ -30,7 +30,7 @@ export type ManagerOperationMeta = {
|
|
|
30
30
|
};
|
|
31
31
|
export declare const toManagerOperationPath: (name: string) => string;
|
|
32
32
|
declare const managerOperationContracts: {
|
|
33
|
-
"manager.contentTypes": import("./api/operations/types
|
|
33
|
+
"manager.contentTypes": import("./api/operations/types").RakunOperationContractWithoutInput<{
|
|
34
34
|
name: string;
|
|
35
35
|
fields: Record<string, unknown>;
|
|
36
36
|
uniques: string[][];
|
|
@@ -42,39 +42,37 @@ declare const managerOperationContracts: {
|
|
|
42
42
|
listFields?: string[] | undefined;
|
|
43
43
|
isHiddenFromManager?: boolean | undefined;
|
|
44
44
|
}[], "query", "get", "auth">;
|
|
45
|
-
"manager.languages": import("./api/operations/types
|
|
45
|
+
"manager.languages": import("./api/operations/types").RakunOperationContractWithoutInput<{
|
|
46
46
|
code: string;
|
|
47
47
|
name: string;
|
|
48
48
|
default: boolean;
|
|
49
49
|
_type: "Language";
|
|
50
50
|
_id: string;
|
|
51
|
-
parent?:
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
contentType: string;
|
|
55
|
-
} | undefined;
|
|
51
|
+
parent?: import("./client").SelfRelationValue<string> | undefined;
|
|
52
|
+
createdAt?: Date | undefined;
|
|
53
|
+
updatedAt?: Date | undefined;
|
|
56
54
|
}[], "query", "get", "auth">;
|
|
57
|
-
"manager.regenerateRoutes": import("./api/operations/types
|
|
55
|
+
"manager.regenerateRoutes": import("./api/operations/types").RakunOperationContractWithoutInput<{
|
|
58
56
|
ok: boolean;
|
|
59
57
|
}, "mutation", "post", "auth">;
|
|
60
|
-
"manager.create": import("./api/operations/types
|
|
58
|
+
"manager.create": import("./api/operations/types").RakunOperationContractWithInput<{
|
|
61
59
|
contentType: string;
|
|
62
60
|
data: any;
|
|
63
61
|
}, any, "mutation", "post", "auth">;
|
|
64
|
-
"manager.update": import("./api/operations/types
|
|
62
|
+
"manager.update": import("./api/operations/types").RakunOperationContractWithInput<{
|
|
65
63
|
contentType: string;
|
|
66
64
|
id: string;
|
|
67
65
|
data: any;
|
|
68
66
|
}, any, "mutation", "post", "auth">;
|
|
69
|
-
"manager.delete": import("./api/operations/types
|
|
67
|
+
"manager.delete": import("./api/operations/types").RakunOperationContractWithInput<{
|
|
70
68
|
contentType: string;
|
|
71
69
|
id: string;
|
|
72
70
|
}, any, "mutation", "post", "auth">;
|
|
73
|
-
"manager.get": import("./api/operations/types
|
|
71
|
+
"manager.get": import("./api/operations/types").RakunOperationContractWithInput<{
|
|
74
72
|
contentType: string;
|
|
75
73
|
id: string;
|
|
76
74
|
}, any, "query", "post", "auth">;
|
|
77
|
-
"manager.list": import("./api/operations/types
|
|
75
|
+
"manager.list": import("./api/operations/types").RakunOperationContractWithInput<{
|
|
78
76
|
contentType: string;
|
|
79
77
|
query: {
|
|
80
78
|
filter?: Record<string, any> | undefined;
|
|
@@ -92,13 +90,13 @@ declare const managerOperationContracts: {
|
|
|
92
90
|
_id: string;
|
|
93
91
|
}[];
|
|
94
92
|
}, "query", "post", "auth">;
|
|
95
|
-
"manager.setDefaultLanguage": import("./api/operations/types
|
|
93
|
+
"manager.setDefaultLanguage": import("./api/operations/types").RakunOperationContractWithInput<{
|
|
96
94
|
language: string;
|
|
97
95
|
}, {
|
|
98
96
|
ok: boolean;
|
|
99
97
|
}, "mutation", "post", "auth">;
|
|
100
|
-
"manager.permissions": import("./api/operations/types
|
|
101
|
-
"manager.media.prepareUpload": import("./api/operations/types
|
|
98
|
+
"manager.permissions": import("./api/operations/types").RakunOperationContractWithoutInput<string[], "query", "get", "auth">;
|
|
99
|
+
"manager.media.prepareUpload": import("./api/operations/types").RakunOperationContractWithInput<{
|
|
102
100
|
fileName: string;
|
|
103
101
|
mime: string;
|
|
104
102
|
size: number;
|
|
@@ -111,7 +109,7 @@ declare const managerOperationContracts: {
|
|
|
111
109
|
access: "public" | "private";
|
|
112
110
|
headers?: Record<string, string> | undefined;
|
|
113
111
|
}, "mutation", "post", "auth">;
|
|
114
|
-
"manager.media.finalizeUpload": import("./api/operations/types
|
|
112
|
+
"manager.media.finalizeUpload": import("./api/operations/types").RakunOperationContractWithInput<{
|
|
115
113
|
key: string;
|
|
116
114
|
access?: "public" | "private" | undefined;
|
|
117
115
|
fileName?: string | undefined;
|
|
@@ -178,7 +176,7 @@ declare const managerOperationContracts: {
|
|
|
178
176
|
path: string;
|
|
179
177
|
} | undefined;
|
|
180
178
|
}, "mutation", "post", "auth">;
|
|
181
|
-
"manager.media.getUrl": import("./api/operations/types
|
|
179
|
+
"manager.media.getUrl": import("./api/operations/types").RakunOperationContractWithInput<{
|
|
182
180
|
key: string;
|
|
183
181
|
access?: "public" | "private" | undefined;
|
|
184
182
|
expiresInSeconds?: number | undefined;
|
|
@@ -189,7 +187,7 @@ declare const managerOperationContracts: {
|
|
|
189
187
|
expiresAt: Date | null;
|
|
190
188
|
isPublic: boolean;
|
|
191
189
|
}, "query", "post", "auth">;
|
|
192
|
-
"manager.media.createFolder": import("./api/operations/types
|
|
190
|
+
"manager.media.createFolder": import("./api/operations/types").RakunOperationContractWithInput<{
|
|
193
191
|
name: string;
|
|
194
192
|
parentId?: string | undefined;
|
|
195
193
|
description?: string | undefined;
|
|
@@ -201,7 +199,7 @@ declare const managerOperationContracts: {
|
|
|
201
199
|
parentId?: string | undefined;
|
|
202
200
|
description?: string | undefined;
|
|
203
201
|
}, "mutation", "post", "auth">;
|
|
204
|
-
"manager.media.listFolders": import("./api/operations/types
|
|
202
|
+
"manager.media.listFolders": import("./api/operations/types").RakunOperationContractWithInput<{
|
|
205
203
|
parentId?: string | undefined;
|
|
206
204
|
}, {
|
|
207
205
|
items: {
|
|
@@ -213,7 +211,7 @@ declare const managerOperationContracts: {
|
|
|
213
211
|
description?: string | undefined;
|
|
214
212
|
}[];
|
|
215
213
|
}, "query", "post", "auth">;
|
|
216
|
-
"manager.literals.list": import("./api/operations/types
|
|
214
|
+
"manager.literals.list": import("./api/operations/types").RakunOperationContractWithInput<{
|
|
217
215
|
locale?: string | undefined;
|
|
218
216
|
}, {
|
|
219
217
|
defaultLocale: string;
|
|
@@ -242,7 +240,7 @@ declare const managerOperationContracts: {
|
|
|
242
240
|
translation?: string | undefined;
|
|
243
241
|
}[];
|
|
244
242
|
}, "query", "post", "auth">;
|
|
245
|
-
"manager.literals.upsert": import("./api/operations/types
|
|
243
|
+
"manager.literals.upsert": import("./api/operations/types").RakunOperationContractWithInput<{
|
|
246
244
|
key: string;
|
|
247
245
|
locale: string;
|
|
248
246
|
message: string;
|
|
@@ -258,13 +256,13 @@ declare const managerOperationContracts: {
|
|
|
258
256
|
extra: string[];
|
|
259
257
|
};
|
|
260
258
|
}, "mutation", "post", "auth">;
|
|
261
|
-
"manager.auth.updatePassword": import("./api/operations/types
|
|
259
|
+
"manager.auth.updatePassword": import("./api/operations/types").RakunOperationContractWithInput<{
|
|
262
260
|
currentPassword: string;
|
|
263
261
|
newPassword: string;
|
|
264
262
|
}, {
|
|
265
263
|
ok: boolean;
|
|
266
264
|
}, "mutation", "post", "auth">;
|
|
267
|
-
"manager.auth.login": import("./api/operations/types
|
|
265
|
+
"manager.auth.login": import("./api/operations/types").RakunOperationContractWithInput<{
|
|
268
266
|
username: string;
|
|
269
267
|
password: string;
|
|
270
268
|
}, {
|
|
@@ -274,10 +272,10 @@ declare const managerOperationContracts: {
|
|
|
274
272
|
expiresAt: string;
|
|
275
273
|
method: string;
|
|
276
274
|
}, "mutation", "post", "public">;
|
|
277
|
-
"manager.auth.logout": import("./api/operations/types
|
|
275
|
+
"manager.auth.logout": import("./api/operations/types").RakunOperationContractWithoutInput<{
|
|
278
276
|
token: string;
|
|
279
277
|
}, "mutation", "post", "auth">;
|
|
280
|
-
"manager.auth.getSession": import("./api/operations/types
|
|
278
|
+
"manager.auth.getSession": import("./api/operations/types").RakunOperationContractWithoutInput<{
|
|
281
279
|
user: string;
|
|
282
280
|
email: string;
|
|
283
281
|
role: {
|
|
@@ -285,13 +283,16 @@ declare const managerOperationContracts: {
|
|
|
285
283
|
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")[];
|
|
286
284
|
_type: "ManagerRole";
|
|
287
285
|
_id: string;
|
|
286
|
+
createdAt?: Date | undefined;
|
|
287
|
+
updatedAt?: Date | undefined;
|
|
288
288
|
};
|
|
289
289
|
twoFactorEnabled: boolean;
|
|
290
290
|
_type: "ManagerUser";
|
|
291
291
|
_id: string;
|
|
292
|
-
|
|
292
|
+
createdAt?: Date | undefined;
|
|
293
|
+
updatedAt?: Date | undefined;
|
|
293
294
|
} | null, "query", "get", "public">;
|
|
294
|
-
"manager.auth.accountInfo": import("./api/operations/types
|
|
295
|
+
"manager.auth.accountInfo": import("./api/operations/types").RakunOperationContractWithoutInput<{
|
|
295
296
|
has2FA: boolean;
|
|
296
297
|
enabled2FA: boolean;
|
|
297
298
|
method2FA: "totp" | "webauthn";
|
|
@@ -302,21 +303,21 @@ declare const managerOperationContracts: {
|
|
|
302
303
|
}[];
|
|
303
304
|
currentSession: string;
|
|
304
305
|
}, "query", "get", "auth">;
|
|
305
|
-
"manager.auth.deleteSession": import("./api/operations/types
|
|
306
|
+
"manager.auth.deleteSession": import("./api/operations/types").RakunOperationContractWithInput<{
|
|
306
307
|
token: string;
|
|
307
308
|
}, {
|
|
308
309
|
ok: boolean;
|
|
309
310
|
}, "mutation", "post", "auth">;
|
|
310
|
-
"manager.auth.totp.enroll": import("./api/operations/types
|
|
311
|
+
"manager.auth.totp.enroll": import("./api/operations/types").RakunOperationContractWithoutInput<{
|
|
311
312
|
qrDataURL: string;
|
|
312
313
|
otpauthURL: string;
|
|
313
314
|
}, "query", "get", "auth">;
|
|
314
|
-
"manager.auth.totp.confirm": import("./api/operations/types
|
|
315
|
+
"manager.auth.totp.confirm": import("./api/operations/types").RakunOperationContractWithInput<{
|
|
315
316
|
code: string;
|
|
316
317
|
}, {
|
|
317
318
|
ok: boolean;
|
|
318
319
|
}, "mutation", "post", "auth">;
|
|
319
|
-
"manager.auth.totp.verify": import("./api/operations/types
|
|
320
|
+
"manager.auth.totp.verify": import("./api/operations/types").RakunOperationContractWithInput<{
|
|
320
321
|
code: string;
|
|
321
322
|
challenge: string;
|
|
322
323
|
}, {
|
|
@@ -324,25 +325,25 @@ declare const managerOperationContracts: {
|
|
|
324
325
|
} | {
|
|
325
326
|
error: string;
|
|
326
327
|
}, "mutation", "post", "public">;
|
|
327
|
-
"manager.auth.webauthn.register.options": import("./api/operations/types
|
|
328
|
+
"manager.auth.webauthn.register.options": import("./api/operations/types").RakunOperationContractWithInput<{
|
|
328
329
|
deviceName: string;
|
|
329
330
|
}, {
|
|
330
331
|
token: string;
|
|
331
332
|
options: any;
|
|
332
333
|
}, "query", "post", "auth">;
|
|
333
|
-
"manager.auth.webauthn.register.verify": import("./api/operations/types
|
|
334
|
+
"manager.auth.webauthn.register.verify": import("./api/operations/types").RakunOperationContractWithInput<{
|
|
334
335
|
token: string;
|
|
335
336
|
deviceName: string;
|
|
336
337
|
response: any;
|
|
337
338
|
}, {
|
|
338
339
|
ok: boolean;
|
|
339
340
|
}, "mutation", "post", "auth">;
|
|
340
|
-
"manager.auth.webauthn.auth.options": import("./api/operations/types
|
|
341
|
+
"manager.auth.webauthn.auth.options": import("./api/operations/types").RakunOperationContractWithInput<{
|
|
341
342
|
challengeToken: string;
|
|
342
343
|
}, {
|
|
343
344
|
options: any;
|
|
344
345
|
}, "query", "post", "public">;
|
|
345
|
-
"manager.auth.webauthn.auth.verify": import("./api/operations/types
|
|
346
|
+
"manager.auth.webauthn.auth.verify": import("./api/operations/types").RakunOperationContractWithInput<{
|
|
346
347
|
challengeToken: string;
|
|
347
348
|
response: any;
|
|
348
349
|
}, {
|
|
@@ -350,8 +351,8 @@ declare const managerOperationContracts: {
|
|
|
350
351
|
}, "mutation", "post", "public">;
|
|
351
352
|
};
|
|
352
353
|
export { managerOperationContracts };
|
|
353
|
-
export declare const managerOperationManifest: import("
|
|
354
|
-
"manager.contentTypes": import("./api/operations/types
|
|
354
|
+
export declare const managerOperationManifest: import(".").RakunOperationManifestFromContracts<{
|
|
355
|
+
"manager.contentTypes": import("./api/operations/types").RakunOperationContractWithoutInput<{
|
|
355
356
|
name: string;
|
|
356
357
|
fields: Record<string, unknown>;
|
|
357
358
|
uniques: string[][];
|
|
@@ -363,39 +364,37 @@ export declare const managerOperationManifest: import("./index.js").RakunOperati
|
|
|
363
364
|
listFields?: string[] | undefined;
|
|
364
365
|
isHiddenFromManager?: boolean | undefined;
|
|
365
366
|
}[], "query", "get", "auth">;
|
|
366
|
-
"manager.languages": import("./api/operations/types
|
|
367
|
+
"manager.languages": import("./api/operations/types").RakunOperationContractWithoutInput<{
|
|
367
368
|
code: string;
|
|
368
369
|
name: string;
|
|
369
370
|
default: boolean;
|
|
370
371
|
_type: "Language";
|
|
371
372
|
_id: string;
|
|
372
|
-
parent?:
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
contentType: string;
|
|
376
|
-
} | undefined;
|
|
373
|
+
parent?: import("./client").SelfRelationValue<string> | undefined;
|
|
374
|
+
createdAt?: Date | undefined;
|
|
375
|
+
updatedAt?: Date | undefined;
|
|
377
376
|
}[], "query", "get", "auth">;
|
|
378
|
-
"manager.regenerateRoutes": import("./api/operations/types
|
|
377
|
+
"manager.regenerateRoutes": import("./api/operations/types").RakunOperationContractWithoutInput<{
|
|
379
378
|
ok: boolean;
|
|
380
379
|
}, "mutation", "post", "auth">;
|
|
381
|
-
"manager.create": import("./api/operations/types
|
|
380
|
+
"manager.create": import("./api/operations/types").RakunOperationContractWithInput<{
|
|
382
381
|
contentType: string;
|
|
383
382
|
data: any;
|
|
384
383
|
}, any, "mutation", "post", "auth">;
|
|
385
|
-
"manager.update": import("./api/operations/types
|
|
384
|
+
"manager.update": import("./api/operations/types").RakunOperationContractWithInput<{
|
|
386
385
|
contentType: string;
|
|
387
386
|
id: string;
|
|
388
387
|
data: any;
|
|
389
388
|
}, any, "mutation", "post", "auth">;
|
|
390
|
-
"manager.delete": import("./api/operations/types
|
|
389
|
+
"manager.delete": import("./api/operations/types").RakunOperationContractWithInput<{
|
|
391
390
|
contentType: string;
|
|
392
391
|
id: string;
|
|
393
392
|
}, any, "mutation", "post", "auth">;
|
|
394
|
-
"manager.get": import("./api/operations/types
|
|
393
|
+
"manager.get": import("./api/operations/types").RakunOperationContractWithInput<{
|
|
395
394
|
contentType: string;
|
|
396
395
|
id: string;
|
|
397
396
|
}, any, "query", "post", "auth">;
|
|
398
|
-
"manager.list": import("./api/operations/types
|
|
397
|
+
"manager.list": import("./api/operations/types").RakunOperationContractWithInput<{
|
|
399
398
|
contentType: string;
|
|
400
399
|
query: {
|
|
401
400
|
filter?: Record<string, any> | undefined;
|
|
@@ -413,13 +412,13 @@ export declare const managerOperationManifest: import("./index.js").RakunOperati
|
|
|
413
412
|
_id: string;
|
|
414
413
|
}[];
|
|
415
414
|
}, "query", "post", "auth">;
|
|
416
|
-
"manager.setDefaultLanguage": import("./api/operations/types
|
|
415
|
+
"manager.setDefaultLanguage": import("./api/operations/types").RakunOperationContractWithInput<{
|
|
417
416
|
language: string;
|
|
418
417
|
}, {
|
|
419
418
|
ok: boolean;
|
|
420
419
|
}, "mutation", "post", "auth">;
|
|
421
|
-
"manager.permissions": import("./api/operations/types
|
|
422
|
-
"manager.media.prepareUpload": import("./api/operations/types
|
|
420
|
+
"manager.permissions": import("./api/operations/types").RakunOperationContractWithoutInput<string[], "query", "get", "auth">;
|
|
421
|
+
"manager.media.prepareUpload": import("./api/operations/types").RakunOperationContractWithInput<{
|
|
423
422
|
fileName: string;
|
|
424
423
|
mime: string;
|
|
425
424
|
size: number;
|
|
@@ -432,7 +431,7 @@ export declare const managerOperationManifest: import("./index.js").RakunOperati
|
|
|
432
431
|
access: "public" | "private";
|
|
433
432
|
headers?: Record<string, string> | undefined;
|
|
434
433
|
}, "mutation", "post", "auth">;
|
|
435
|
-
"manager.media.finalizeUpload": import("./api/operations/types
|
|
434
|
+
"manager.media.finalizeUpload": import("./api/operations/types").RakunOperationContractWithInput<{
|
|
436
435
|
key: string;
|
|
437
436
|
access?: "public" | "private" | undefined;
|
|
438
437
|
fileName?: string | undefined;
|
|
@@ -499,7 +498,7 @@ export declare const managerOperationManifest: import("./index.js").RakunOperati
|
|
|
499
498
|
path: string;
|
|
500
499
|
} | undefined;
|
|
501
500
|
}, "mutation", "post", "auth">;
|
|
502
|
-
"manager.media.getUrl": import("./api/operations/types
|
|
501
|
+
"manager.media.getUrl": import("./api/operations/types").RakunOperationContractWithInput<{
|
|
503
502
|
key: string;
|
|
504
503
|
access?: "public" | "private" | undefined;
|
|
505
504
|
expiresInSeconds?: number | undefined;
|
|
@@ -510,7 +509,7 @@ export declare const managerOperationManifest: import("./index.js").RakunOperati
|
|
|
510
509
|
expiresAt: Date | null;
|
|
511
510
|
isPublic: boolean;
|
|
512
511
|
}, "query", "post", "auth">;
|
|
513
|
-
"manager.media.createFolder": import("./api/operations/types
|
|
512
|
+
"manager.media.createFolder": import("./api/operations/types").RakunOperationContractWithInput<{
|
|
514
513
|
name: string;
|
|
515
514
|
parentId?: string | undefined;
|
|
516
515
|
description?: string | undefined;
|
|
@@ -522,7 +521,7 @@ export declare const managerOperationManifest: import("./index.js").RakunOperati
|
|
|
522
521
|
parentId?: string | undefined;
|
|
523
522
|
description?: string | undefined;
|
|
524
523
|
}, "mutation", "post", "auth">;
|
|
525
|
-
"manager.media.listFolders": import("./api/operations/types
|
|
524
|
+
"manager.media.listFolders": import("./api/operations/types").RakunOperationContractWithInput<{
|
|
526
525
|
parentId?: string | undefined;
|
|
527
526
|
}, {
|
|
528
527
|
items: {
|
|
@@ -534,7 +533,7 @@ export declare const managerOperationManifest: import("./index.js").RakunOperati
|
|
|
534
533
|
description?: string | undefined;
|
|
535
534
|
}[];
|
|
536
535
|
}, "query", "post", "auth">;
|
|
537
|
-
"manager.literals.list": import("./api/operations/types
|
|
536
|
+
"manager.literals.list": import("./api/operations/types").RakunOperationContractWithInput<{
|
|
538
537
|
locale?: string | undefined;
|
|
539
538
|
}, {
|
|
540
539
|
defaultLocale: string;
|
|
@@ -563,7 +562,7 @@ export declare const managerOperationManifest: import("./index.js").RakunOperati
|
|
|
563
562
|
translation?: string | undefined;
|
|
564
563
|
}[];
|
|
565
564
|
}, "query", "post", "auth">;
|
|
566
|
-
"manager.literals.upsert": import("./api/operations/types
|
|
565
|
+
"manager.literals.upsert": import("./api/operations/types").RakunOperationContractWithInput<{
|
|
567
566
|
key: string;
|
|
568
567
|
locale: string;
|
|
569
568
|
message: string;
|
|
@@ -579,13 +578,13 @@ export declare const managerOperationManifest: import("./index.js").RakunOperati
|
|
|
579
578
|
extra: string[];
|
|
580
579
|
};
|
|
581
580
|
}, "mutation", "post", "auth">;
|
|
582
|
-
"manager.auth.updatePassword": import("./api/operations/types
|
|
581
|
+
"manager.auth.updatePassword": import("./api/operations/types").RakunOperationContractWithInput<{
|
|
583
582
|
currentPassword: string;
|
|
584
583
|
newPassword: string;
|
|
585
584
|
}, {
|
|
586
585
|
ok: boolean;
|
|
587
586
|
}, "mutation", "post", "auth">;
|
|
588
|
-
"manager.auth.login": import("./api/operations/types
|
|
587
|
+
"manager.auth.login": import("./api/operations/types").RakunOperationContractWithInput<{
|
|
589
588
|
username: string;
|
|
590
589
|
password: string;
|
|
591
590
|
}, {
|
|
@@ -595,10 +594,10 @@ export declare const managerOperationManifest: import("./index.js").RakunOperati
|
|
|
595
594
|
expiresAt: string;
|
|
596
595
|
method: string;
|
|
597
596
|
}, "mutation", "post", "public">;
|
|
598
|
-
"manager.auth.logout": import("./api/operations/types
|
|
597
|
+
"manager.auth.logout": import("./api/operations/types").RakunOperationContractWithoutInput<{
|
|
599
598
|
token: string;
|
|
600
599
|
}, "mutation", "post", "auth">;
|
|
601
|
-
"manager.auth.getSession": import("./api/operations/types
|
|
600
|
+
"manager.auth.getSession": import("./api/operations/types").RakunOperationContractWithoutInput<{
|
|
602
601
|
user: string;
|
|
603
602
|
email: string;
|
|
604
603
|
role: {
|
|
@@ -606,13 +605,16 @@ export declare const managerOperationManifest: import("./index.js").RakunOperati
|
|
|
606
605
|
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")[];
|
|
607
606
|
_type: "ManagerRole";
|
|
608
607
|
_id: string;
|
|
608
|
+
createdAt?: Date | undefined;
|
|
609
|
+
updatedAt?: Date | undefined;
|
|
609
610
|
};
|
|
610
611
|
twoFactorEnabled: boolean;
|
|
611
612
|
_type: "ManagerUser";
|
|
612
613
|
_id: string;
|
|
613
|
-
|
|
614
|
+
createdAt?: Date | undefined;
|
|
615
|
+
updatedAt?: Date | undefined;
|
|
614
616
|
} | null, "query", "get", "public">;
|
|
615
|
-
"manager.auth.accountInfo": import("./api/operations/types
|
|
617
|
+
"manager.auth.accountInfo": import("./api/operations/types").RakunOperationContractWithoutInput<{
|
|
616
618
|
has2FA: boolean;
|
|
617
619
|
enabled2FA: boolean;
|
|
618
620
|
method2FA: "totp" | "webauthn";
|
|
@@ -623,21 +625,21 @@ export declare const managerOperationManifest: import("./index.js").RakunOperati
|
|
|
623
625
|
}[];
|
|
624
626
|
currentSession: string;
|
|
625
627
|
}, "query", "get", "auth">;
|
|
626
|
-
"manager.auth.deleteSession": import("./api/operations/types
|
|
628
|
+
"manager.auth.deleteSession": import("./api/operations/types").RakunOperationContractWithInput<{
|
|
627
629
|
token: string;
|
|
628
630
|
}, {
|
|
629
631
|
ok: boolean;
|
|
630
632
|
}, "mutation", "post", "auth">;
|
|
631
|
-
"manager.auth.totp.enroll": import("./api/operations/types
|
|
633
|
+
"manager.auth.totp.enroll": import("./api/operations/types").RakunOperationContractWithoutInput<{
|
|
632
634
|
qrDataURL: string;
|
|
633
635
|
otpauthURL: string;
|
|
634
636
|
}, "query", "get", "auth">;
|
|
635
|
-
"manager.auth.totp.confirm": import("./api/operations/types
|
|
637
|
+
"manager.auth.totp.confirm": import("./api/operations/types").RakunOperationContractWithInput<{
|
|
636
638
|
code: string;
|
|
637
639
|
}, {
|
|
638
640
|
ok: boolean;
|
|
639
641
|
}, "mutation", "post", "auth">;
|
|
640
|
-
"manager.auth.totp.verify": import("./api/operations/types
|
|
642
|
+
"manager.auth.totp.verify": import("./api/operations/types").RakunOperationContractWithInput<{
|
|
641
643
|
code: string;
|
|
642
644
|
challenge: string;
|
|
643
645
|
}, {
|
|
@@ -645,25 +647,25 @@ export declare const managerOperationManifest: import("./index.js").RakunOperati
|
|
|
645
647
|
} | {
|
|
646
648
|
error: string;
|
|
647
649
|
}, "mutation", "post", "public">;
|
|
648
|
-
"manager.auth.webauthn.register.options": import("./api/operations/types
|
|
650
|
+
"manager.auth.webauthn.register.options": import("./api/operations/types").RakunOperationContractWithInput<{
|
|
649
651
|
deviceName: string;
|
|
650
652
|
}, {
|
|
651
653
|
token: string;
|
|
652
654
|
options: any;
|
|
653
655
|
}, "query", "post", "auth">;
|
|
654
|
-
"manager.auth.webauthn.register.verify": import("./api/operations/types
|
|
656
|
+
"manager.auth.webauthn.register.verify": import("./api/operations/types").RakunOperationContractWithInput<{
|
|
655
657
|
token: string;
|
|
656
658
|
deviceName: string;
|
|
657
659
|
response: any;
|
|
658
660
|
}, {
|
|
659
661
|
ok: boolean;
|
|
660
662
|
}, "mutation", "post", "auth">;
|
|
661
|
-
"manager.auth.webauthn.auth.options": import("./api/operations/types
|
|
663
|
+
"manager.auth.webauthn.auth.options": import("./api/operations/types").RakunOperationContractWithInput<{
|
|
662
664
|
challengeToken: string;
|
|
663
665
|
}, {
|
|
664
666
|
options: any;
|
|
665
667
|
}, "query", "post", "public">;
|
|
666
|
-
"manager.auth.webauthn.auth.verify": import("./api/operations/types
|
|
668
|
+
"manager.auth.webauthn.auth.verify": import("./api/operations/types").RakunOperationContractWithInput<{
|
|
667
669
|
challengeToken: string;
|
|
668
670
|
response: any;
|
|
669
671
|
}, {
|
|
@@ -677,8 +679,8 @@ export type ManagerQueryOperationName = {
|
|
|
677
679
|
export type ManagerMutationOperationName = {
|
|
678
680
|
[TName in keyof ManagerManifest]: ManagerManifest[TName]["kind"] extends "mutation" ? TName : never;
|
|
679
681
|
}[keyof ManagerManifest];
|
|
680
|
-
export declare const getManagerOperationMeta: <TName extends ManagerOperationName>(name: TName) => import("
|
|
681
|
-
"manager.contentTypes": import("./api/operations/types
|
|
682
|
+
export declare const getManagerOperationMeta: <TName extends ManagerOperationName>(name: TName) => import(".").RakunOperationManifestFromContracts<{
|
|
683
|
+
"manager.contentTypes": import("./api/operations/types").RakunOperationContractWithoutInput<{
|
|
682
684
|
name: string;
|
|
683
685
|
fields: Record<string, unknown>;
|
|
684
686
|
uniques: string[][];
|
|
@@ -690,39 +692,37 @@ export declare const getManagerOperationMeta: <TName extends ManagerOperationNam
|
|
|
690
692
|
listFields?: string[] | undefined;
|
|
691
693
|
isHiddenFromManager?: boolean | undefined;
|
|
692
694
|
}[], "query", "get", "auth">;
|
|
693
|
-
"manager.languages": import("./api/operations/types
|
|
695
|
+
"manager.languages": import("./api/operations/types").RakunOperationContractWithoutInput<{
|
|
694
696
|
code: string;
|
|
695
697
|
name: string;
|
|
696
698
|
default: boolean;
|
|
697
699
|
_type: "Language";
|
|
698
700
|
_id: string;
|
|
699
|
-
parent?:
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
contentType: string;
|
|
703
|
-
} | undefined;
|
|
701
|
+
parent?: import("./client").SelfRelationValue<string> | undefined;
|
|
702
|
+
createdAt?: Date | undefined;
|
|
703
|
+
updatedAt?: Date | undefined;
|
|
704
704
|
}[], "query", "get", "auth">;
|
|
705
|
-
"manager.regenerateRoutes": import("./api/operations/types
|
|
705
|
+
"manager.regenerateRoutes": import("./api/operations/types").RakunOperationContractWithoutInput<{
|
|
706
706
|
ok: boolean;
|
|
707
707
|
}, "mutation", "post", "auth">;
|
|
708
|
-
"manager.create": import("./api/operations/types
|
|
708
|
+
"manager.create": import("./api/operations/types").RakunOperationContractWithInput<{
|
|
709
709
|
contentType: string;
|
|
710
710
|
data: any;
|
|
711
711
|
}, any, "mutation", "post", "auth">;
|
|
712
|
-
"manager.update": import("./api/operations/types
|
|
712
|
+
"manager.update": import("./api/operations/types").RakunOperationContractWithInput<{
|
|
713
713
|
contentType: string;
|
|
714
714
|
id: string;
|
|
715
715
|
data: any;
|
|
716
716
|
}, any, "mutation", "post", "auth">;
|
|
717
|
-
"manager.delete": import("./api/operations/types
|
|
717
|
+
"manager.delete": import("./api/operations/types").RakunOperationContractWithInput<{
|
|
718
718
|
contentType: string;
|
|
719
719
|
id: string;
|
|
720
720
|
}, any, "mutation", "post", "auth">;
|
|
721
|
-
"manager.get": import("./api/operations/types
|
|
721
|
+
"manager.get": import("./api/operations/types").RakunOperationContractWithInput<{
|
|
722
722
|
contentType: string;
|
|
723
723
|
id: string;
|
|
724
724
|
}, any, "query", "post", "auth">;
|
|
725
|
-
"manager.list": import("./api/operations/types
|
|
725
|
+
"manager.list": import("./api/operations/types").RakunOperationContractWithInput<{
|
|
726
726
|
contentType: string;
|
|
727
727
|
query: {
|
|
728
728
|
filter?: Record<string, any> | undefined;
|
|
@@ -740,13 +740,13 @@ export declare const getManagerOperationMeta: <TName extends ManagerOperationNam
|
|
|
740
740
|
_id: string;
|
|
741
741
|
}[];
|
|
742
742
|
}, "query", "post", "auth">;
|
|
743
|
-
"manager.setDefaultLanguage": import("./api/operations/types
|
|
743
|
+
"manager.setDefaultLanguage": import("./api/operations/types").RakunOperationContractWithInput<{
|
|
744
744
|
language: string;
|
|
745
745
|
}, {
|
|
746
746
|
ok: boolean;
|
|
747
747
|
}, "mutation", "post", "auth">;
|
|
748
|
-
"manager.permissions": import("./api/operations/types
|
|
749
|
-
"manager.media.prepareUpload": import("./api/operations/types
|
|
748
|
+
"manager.permissions": import("./api/operations/types").RakunOperationContractWithoutInput<string[], "query", "get", "auth">;
|
|
749
|
+
"manager.media.prepareUpload": import("./api/operations/types").RakunOperationContractWithInput<{
|
|
750
750
|
fileName: string;
|
|
751
751
|
mime: string;
|
|
752
752
|
size: number;
|
|
@@ -759,7 +759,7 @@ export declare const getManagerOperationMeta: <TName extends ManagerOperationNam
|
|
|
759
759
|
access: "public" | "private";
|
|
760
760
|
headers?: Record<string, string> | undefined;
|
|
761
761
|
}, "mutation", "post", "auth">;
|
|
762
|
-
"manager.media.finalizeUpload": import("./api/operations/types
|
|
762
|
+
"manager.media.finalizeUpload": import("./api/operations/types").RakunOperationContractWithInput<{
|
|
763
763
|
key: string;
|
|
764
764
|
access?: "public" | "private" | undefined;
|
|
765
765
|
fileName?: string | undefined;
|
|
@@ -826,7 +826,7 @@ export declare const getManagerOperationMeta: <TName extends ManagerOperationNam
|
|
|
826
826
|
path: string;
|
|
827
827
|
} | undefined;
|
|
828
828
|
}, "mutation", "post", "auth">;
|
|
829
|
-
"manager.media.getUrl": import("./api/operations/types
|
|
829
|
+
"manager.media.getUrl": import("./api/operations/types").RakunOperationContractWithInput<{
|
|
830
830
|
key: string;
|
|
831
831
|
access?: "public" | "private" | undefined;
|
|
832
832
|
expiresInSeconds?: number | undefined;
|
|
@@ -837,7 +837,7 @@ export declare const getManagerOperationMeta: <TName extends ManagerOperationNam
|
|
|
837
837
|
expiresAt: Date | null;
|
|
838
838
|
isPublic: boolean;
|
|
839
839
|
}, "query", "post", "auth">;
|
|
840
|
-
"manager.media.createFolder": import("./api/operations/types
|
|
840
|
+
"manager.media.createFolder": import("./api/operations/types").RakunOperationContractWithInput<{
|
|
841
841
|
name: string;
|
|
842
842
|
parentId?: string | undefined;
|
|
843
843
|
description?: string | undefined;
|
|
@@ -849,7 +849,7 @@ export declare const getManagerOperationMeta: <TName extends ManagerOperationNam
|
|
|
849
849
|
parentId?: string | undefined;
|
|
850
850
|
description?: string | undefined;
|
|
851
851
|
}, "mutation", "post", "auth">;
|
|
852
|
-
"manager.media.listFolders": import("./api/operations/types
|
|
852
|
+
"manager.media.listFolders": import("./api/operations/types").RakunOperationContractWithInput<{
|
|
853
853
|
parentId?: string | undefined;
|
|
854
854
|
}, {
|
|
855
855
|
items: {
|
|
@@ -861,7 +861,7 @@ export declare const getManagerOperationMeta: <TName extends ManagerOperationNam
|
|
|
861
861
|
description?: string | undefined;
|
|
862
862
|
}[];
|
|
863
863
|
}, "query", "post", "auth">;
|
|
864
|
-
"manager.literals.list": import("./api/operations/types
|
|
864
|
+
"manager.literals.list": import("./api/operations/types").RakunOperationContractWithInput<{
|
|
865
865
|
locale?: string | undefined;
|
|
866
866
|
}, {
|
|
867
867
|
defaultLocale: string;
|
|
@@ -890,7 +890,7 @@ export declare const getManagerOperationMeta: <TName extends ManagerOperationNam
|
|
|
890
890
|
translation?: string | undefined;
|
|
891
891
|
}[];
|
|
892
892
|
}, "query", "post", "auth">;
|
|
893
|
-
"manager.literals.upsert": import("./api/operations/types
|
|
893
|
+
"manager.literals.upsert": import("./api/operations/types").RakunOperationContractWithInput<{
|
|
894
894
|
key: string;
|
|
895
895
|
locale: string;
|
|
896
896
|
message: string;
|
|
@@ -906,13 +906,13 @@ export declare const getManagerOperationMeta: <TName extends ManagerOperationNam
|
|
|
906
906
|
extra: string[];
|
|
907
907
|
};
|
|
908
908
|
}, "mutation", "post", "auth">;
|
|
909
|
-
"manager.auth.updatePassword": import("./api/operations/types
|
|
909
|
+
"manager.auth.updatePassword": import("./api/operations/types").RakunOperationContractWithInput<{
|
|
910
910
|
currentPassword: string;
|
|
911
911
|
newPassword: string;
|
|
912
912
|
}, {
|
|
913
913
|
ok: boolean;
|
|
914
914
|
}, "mutation", "post", "auth">;
|
|
915
|
-
"manager.auth.login": import("./api/operations/types
|
|
915
|
+
"manager.auth.login": import("./api/operations/types").RakunOperationContractWithInput<{
|
|
916
916
|
username: string;
|
|
917
917
|
password: string;
|
|
918
918
|
}, {
|
|
@@ -922,10 +922,10 @@ export declare const getManagerOperationMeta: <TName extends ManagerOperationNam
|
|
|
922
922
|
expiresAt: string;
|
|
923
923
|
method: string;
|
|
924
924
|
}, "mutation", "post", "public">;
|
|
925
|
-
"manager.auth.logout": import("./api/operations/types
|
|
925
|
+
"manager.auth.logout": import("./api/operations/types").RakunOperationContractWithoutInput<{
|
|
926
926
|
token: string;
|
|
927
927
|
}, "mutation", "post", "auth">;
|
|
928
|
-
"manager.auth.getSession": import("./api/operations/types
|
|
928
|
+
"manager.auth.getSession": import("./api/operations/types").RakunOperationContractWithoutInput<{
|
|
929
929
|
user: string;
|
|
930
930
|
email: string;
|
|
931
931
|
role: {
|
|
@@ -933,13 +933,16 @@ export declare const getManagerOperationMeta: <TName extends ManagerOperationNam
|
|
|
933
933
|
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")[];
|
|
934
934
|
_type: "ManagerRole";
|
|
935
935
|
_id: string;
|
|
936
|
+
createdAt?: Date | undefined;
|
|
937
|
+
updatedAt?: Date | undefined;
|
|
936
938
|
};
|
|
937
939
|
twoFactorEnabled: boolean;
|
|
938
940
|
_type: "ManagerUser";
|
|
939
941
|
_id: string;
|
|
940
|
-
|
|
942
|
+
createdAt?: Date | undefined;
|
|
943
|
+
updatedAt?: Date | undefined;
|
|
941
944
|
} | null, "query", "get", "public">;
|
|
942
|
-
"manager.auth.accountInfo": import("./api/operations/types
|
|
945
|
+
"manager.auth.accountInfo": import("./api/operations/types").RakunOperationContractWithoutInput<{
|
|
943
946
|
has2FA: boolean;
|
|
944
947
|
enabled2FA: boolean;
|
|
945
948
|
method2FA: "totp" | "webauthn";
|
|
@@ -950,21 +953,21 @@ export declare const getManagerOperationMeta: <TName extends ManagerOperationNam
|
|
|
950
953
|
}[];
|
|
951
954
|
currentSession: string;
|
|
952
955
|
}, "query", "get", "auth">;
|
|
953
|
-
"manager.auth.deleteSession": import("./api/operations/types
|
|
956
|
+
"manager.auth.deleteSession": import("./api/operations/types").RakunOperationContractWithInput<{
|
|
954
957
|
token: string;
|
|
955
958
|
}, {
|
|
956
959
|
ok: boolean;
|
|
957
960
|
}, "mutation", "post", "auth">;
|
|
958
|
-
"manager.auth.totp.enroll": import("./api/operations/types
|
|
961
|
+
"manager.auth.totp.enroll": import("./api/operations/types").RakunOperationContractWithoutInput<{
|
|
959
962
|
qrDataURL: string;
|
|
960
963
|
otpauthURL: string;
|
|
961
964
|
}, "query", "get", "auth">;
|
|
962
|
-
"manager.auth.totp.confirm": import("./api/operations/types
|
|
965
|
+
"manager.auth.totp.confirm": import("./api/operations/types").RakunOperationContractWithInput<{
|
|
963
966
|
code: string;
|
|
964
967
|
}, {
|
|
965
968
|
ok: boolean;
|
|
966
969
|
}, "mutation", "post", "auth">;
|
|
967
|
-
"manager.auth.totp.verify": import("./api/operations/types
|
|
970
|
+
"manager.auth.totp.verify": import("./api/operations/types").RakunOperationContractWithInput<{
|
|
968
971
|
code: string;
|
|
969
972
|
challenge: string;
|
|
970
973
|
}, {
|
|
@@ -972,25 +975,25 @@ export declare const getManagerOperationMeta: <TName extends ManagerOperationNam
|
|
|
972
975
|
} | {
|
|
973
976
|
error: string;
|
|
974
977
|
}, "mutation", "post", "public">;
|
|
975
|
-
"manager.auth.webauthn.register.options": import("./api/operations/types
|
|
978
|
+
"manager.auth.webauthn.register.options": import("./api/operations/types").RakunOperationContractWithInput<{
|
|
976
979
|
deviceName: string;
|
|
977
980
|
}, {
|
|
978
981
|
token: string;
|
|
979
982
|
options: any;
|
|
980
983
|
}, "query", "post", "auth">;
|
|
981
|
-
"manager.auth.webauthn.register.verify": import("./api/operations/types
|
|
984
|
+
"manager.auth.webauthn.register.verify": import("./api/operations/types").RakunOperationContractWithInput<{
|
|
982
985
|
token: string;
|
|
983
986
|
deviceName: string;
|
|
984
987
|
response: any;
|
|
985
988
|
}, {
|
|
986
989
|
ok: boolean;
|
|
987
990
|
}, "mutation", "post", "auth">;
|
|
988
|
-
"manager.auth.webauthn.auth.options": import("./api/operations/types
|
|
991
|
+
"manager.auth.webauthn.auth.options": import("./api/operations/types").RakunOperationContractWithInput<{
|
|
989
992
|
challengeToken: string;
|
|
990
993
|
}, {
|
|
991
994
|
options: any;
|
|
992
995
|
}, "query", "post", "public">;
|
|
993
|
-
"manager.auth.webauthn.auth.verify": import("./api/operations/types
|
|
996
|
+
"manager.auth.webauthn.auth.verify": import("./api/operations/types").RakunOperationContractWithInput<{
|
|
994
997
|
challengeToken: string;
|
|
995
998
|
response: any;
|
|
996
999
|
}, {
|
|
@@ -998,7 +1001,7 @@ export declare const getManagerOperationMeta: <TName extends ManagerOperationNam
|
|
|
998
1001
|
}, "mutation", "post", "public">;
|
|
999
1002
|
}>[TName];
|
|
1000
1003
|
export declare const getManagerOperationContract: <TName extends ManagerOperationName>(name: TName) => {
|
|
1001
|
-
"manager.contentTypes": import("./api/operations/types
|
|
1004
|
+
"manager.contentTypes": import("./api/operations/types").RakunOperationContractWithoutInput<{
|
|
1002
1005
|
name: string;
|
|
1003
1006
|
fields: Record<string, unknown>;
|
|
1004
1007
|
uniques: string[][];
|
|
@@ -1010,39 +1013,37 @@ export declare const getManagerOperationContract: <TName extends ManagerOperatio
|
|
|
1010
1013
|
listFields?: string[] | undefined;
|
|
1011
1014
|
isHiddenFromManager?: boolean | undefined;
|
|
1012
1015
|
}[], "query", "get", "auth">;
|
|
1013
|
-
"manager.languages": import("./api/operations/types
|
|
1016
|
+
"manager.languages": import("./api/operations/types").RakunOperationContractWithoutInput<{
|
|
1014
1017
|
code: string;
|
|
1015
1018
|
name: string;
|
|
1016
1019
|
default: boolean;
|
|
1017
1020
|
_type: "Language";
|
|
1018
1021
|
_id: string;
|
|
1019
|
-
parent?:
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
contentType: string;
|
|
1023
|
-
} | undefined;
|
|
1022
|
+
parent?: import("./client").SelfRelationValue<string> | undefined;
|
|
1023
|
+
createdAt?: Date | undefined;
|
|
1024
|
+
updatedAt?: Date | undefined;
|
|
1024
1025
|
}[], "query", "get", "auth">;
|
|
1025
|
-
"manager.regenerateRoutes": import("./api/operations/types
|
|
1026
|
+
"manager.regenerateRoutes": import("./api/operations/types").RakunOperationContractWithoutInput<{
|
|
1026
1027
|
ok: boolean;
|
|
1027
1028
|
}, "mutation", "post", "auth">;
|
|
1028
|
-
"manager.create": import("./api/operations/types
|
|
1029
|
+
"manager.create": import("./api/operations/types").RakunOperationContractWithInput<{
|
|
1029
1030
|
contentType: string;
|
|
1030
1031
|
data: any;
|
|
1031
1032
|
}, any, "mutation", "post", "auth">;
|
|
1032
|
-
"manager.update": import("./api/operations/types
|
|
1033
|
+
"manager.update": import("./api/operations/types").RakunOperationContractWithInput<{
|
|
1033
1034
|
contentType: string;
|
|
1034
1035
|
id: string;
|
|
1035
1036
|
data: any;
|
|
1036
1037
|
}, any, "mutation", "post", "auth">;
|
|
1037
|
-
"manager.delete": import("./api/operations/types
|
|
1038
|
+
"manager.delete": import("./api/operations/types").RakunOperationContractWithInput<{
|
|
1038
1039
|
contentType: string;
|
|
1039
1040
|
id: string;
|
|
1040
1041
|
}, any, "mutation", "post", "auth">;
|
|
1041
|
-
"manager.get": import("./api/operations/types
|
|
1042
|
+
"manager.get": import("./api/operations/types").RakunOperationContractWithInput<{
|
|
1042
1043
|
contentType: string;
|
|
1043
1044
|
id: string;
|
|
1044
1045
|
}, any, "query", "post", "auth">;
|
|
1045
|
-
"manager.list": import("./api/operations/types
|
|
1046
|
+
"manager.list": import("./api/operations/types").RakunOperationContractWithInput<{
|
|
1046
1047
|
contentType: string;
|
|
1047
1048
|
query: {
|
|
1048
1049
|
filter?: Record<string, any> | undefined;
|
|
@@ -1060,13 +1061,13 @@ export declare const getManagerOperationContract: <TName extends ManagerOperatio
|
|
|
1060
1061
|
_id: string;
|
|
1061
1062
|
}[];
|
|
1062
1063
|
}, "query", "post", "auth">;
|
|
1063
|
-
"manager.setDefaultLanguage": import("./api/operations/types
|
|
1064
|
+
"manager.setDefaultLanguage": import("./api/operations/types").RakunOperationContractWithInput<{
|
|
1064
1065
|
language: string;
|
|
1065
1066
|
}, {
|
|
1066
1067
|
ok: boolean;
|
|
1067
1068
|
}, "mutation", "post", "auth">;
|
|
1068
|
-
"manager.permissions": import("./api/operations/types
|
|
1069
|
-
"manager.media.prepareUpload": import("./api/operations/types
|
|
1069
|
+
"manager.permissions": import("./api/operations/types").RakunOperationContractWithoutInput<string[], "query", "get", "auth">;
|
|
1070
|
+
"manager.media.prepareUpload": import("./api/operations/types").RakunOperationContractWithInput<{
|
|
1070
1071
|
fileName: string;
|
|
1071
1072
|
mime: string;
|
|
1072
1073
|
size: number;
|
|
@@ -1079,7 +1080,7 @@ export declare const getManagerOperationContract: <TName extends ManagerOperatio
|
|
|
1079
1080
|
access: "public" | "private";
|
|
1080
1081
|
headers?: Record<string, string> | undefined;
|
|
1081
1082
|
}, "mutation", "post", "auth">;
|
|
1082
|
-
"manager.media.finalizeUpload": import("./api/operations/types
|
|
1083
|
+
"manager.media.finalizeUpload": import("./api/operations/types").RakunOperationContractWithInput<{
|
|
1083
1084
|
key: string;
|
|
1084
1085
|
access?: "public" | "private" | undefined;
|
|
1085
1086
|
fileName?: string | undefined;
|
|
@@ -1146,7 +1147,7 @@ export declare const getManagerOperationContract: <TName extends ManagerOperatio
|
|
|
1146
1147
|
path: string;
|
|
1147
1148
|
} | undefined;
|
|
1148
1149
|
}, "mutation", "post", "auth">;
|
|
1149
|
-
"manager.media.getUrl": import("./api/operations/types
|
|
1150
|
+
"manager.media.getUrl": import("./api/operations/types").RakunOperationContractWithInput<{
|
|
1150
1151
|
key: string;
|
|
1151
1152
|
access?: "public" | "private" | undefined;
|
|
1152
1153
|
expiresInSeconds?: number | undefined;
|
|
@@ -1157,7 +1158,7 @@ export declare const getManagerOperationContract: <TName extends ManagerOperatio
|
|
|
1157
1158
|
expiresAt: Date | null;
|
|
1158
1159
|
isPublic: boolean;
|
|
1159
1160
|
}, "query", "post", "auth">;
|
|
1160
|
-
"manager.media.createFolder": import("./api/operations/types
|
|
1161
|
+
"manager.media.createFolder": import("./api/operations/types").RakunOperationContractWithInput<{
|
|
1161
1162
|
name: string;
|
|
1162
1163
|
parentId?: string | undefined;
|
|
1163
1164
|
description?: string | undefined;
|
|
@@ -1169,7 +1170,7 @@ export declare const getManagerOperationContract: <TName extends ManagerOperatio
|
|
|
1169
1170
|
parentId?: string | undefined;
|
|
1170
1171
|
description?: string | undefined;
|
|
1171
1172
|
}, "mutation", "post", "auth">;
|
|
1172
|
-
"manager.media.listFolders": import("./api/operations/types
|
|
1173
|
+
"manager.media.listFolders": import("./api/operations/types").RakunOperationContractWithInput<{
|
|
1173
1174
|
parentId?: string | undefined;
|
|
1174
1175
|
}, {
|
|
1175
1176
|
items: {
|
|
@@ -1181,7 +1182,7 @@ export declare const getManagerOperationContract: <TName extends ManagerOperatio
|
|
|
1181
1182
|
description?: string | undefined;
|
|
1182
1183
|
}[];
|
|
1183
1184
|
}, "query", "post", "auth">;
|
|
1184
|
-
"manager.literals.list": import("./api/operations/types
|
|
1185
|
+
"manager.literals.list": import("./api/operations/types").RakunOperationContractWithInput<{
|
|
1185
1186
|
locale?: string | undefined;
|
|
1186
1187
|
}, {
|
|
1187
1188
|
defaultLocale: string;
|
|
@@ -1210,7 +1211,7 @@ export declare const getManagerOperationContract: <TName extends ManagerOperatio
|
|
|
1210
1211
|
translation?: string | undefined;
|
|
1211
1212
|
}[];
|
|
1212
1213
|
}, "query", "post", "auth">;
|
|
1213
|
-
"manager.literals.upsert": import("./api/operations/types
|
|
1214
|
+
"manager.literals.upsert": import("./api/operations/types").RakunOperationContractWithInput<{
|
|
1214
1215
|
key: string;
|
|
1215
1216
|
locale: string;
|
|
1216
1217
|
message: string;
|
|
@@ -1226,13 +1227,13 @@ export declare const getManagerOperationContract: <TName extends ManagerOperatio
|
|
|
1226
1227
|
extra: string[];
|
|
1227
1228
|
};
|
|
1228
1229
|
}, "mutation", "post", "auth">;
|
|
1229
|
-
"manager.auth.updatePassword": import("./api/operations/types
|
|
1230
|
+
"manager.auth.updatePassword": import("./api/operations/types").RakunOperationContractWithInput<{
|
|
1230
1231
|
currentPassword: string;
|
|
1231
1232
|
newPassword: string;
|
|
1232
1233
|
}, {
|
|
1233
1234
|
ok: boolean;
|
|
1234
1235
|
}, "mutation", "post", "auth">;
|
|
1235
|
-
"manager.auth.login": import("./api/operations/types
|
|
1236
|
+
"manager.auth.login": import("./api/operations/types").RakunOperationContractWithInput<{
|
|
1236
1237
|
username: string;
|
|
1237
1238
|
password: string;
|
|
1238
1239
|
}, {
|
|
@@ -1242,10 +1243,10 @@ export declare const getManagerOperationContract: <TName extends ManagerOperatio
|
|
|
1242
1243
|
expiresAt: string;
|
|
1243
1244
|
method: string;
|
|
1244
1245
|
}, "mutation", "post", "public">;
|
|
1245
|
-
"manager.auth.logout": import("./api/operations/types
|
|
1246
|
+
"manager.auth.logout": import("./api/operations/types").RakunOperationContractWithoutInput<{
|
|
1246
1247
|
token: string;
|
|
1247
1248
|
}, "mutation", "post", "auth">;
|
|
1248
|
-
"manager.auth.getSession": import("./api/operations/types
|
|
1249
|
+
"manager.auth.getSession": import("./api/operations/types").RakunOperationContractWithoutInput<{
|
|
1249
1250
|
user: string;
|
|
1250
1251
|
email: string;
|
|
1251
1252
|
role: {
|
|
@@ -1253,13 +1254,16 @@ export declare const getManagerOperationContract: <TName extends ManagerOperatio
|
|
|
1253
1254
|
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")[];
|
|
1254
1255
|
_type: "ManagerRole";
|
|
1255
1256
|
_id: string;
|
|
1257
|
+
createdAt?: Date | undefined;
|
|
1258
|
+
updatedAt?: Date | undefined;
|
|
1256
1259
|
};
|
|
1257
1260
|
twoFactorEnabled: boolean;
|
|
1258
1261
|
_type: "ManagerUser";
|
|
1259
1262
|
_id: string;
|
|
1260
|
-
|
|
1263
|
+
createdAt?: Date | undefined;
|
|
1264
|
+
updatedAt?: Date | undefined;
|
|
1261
1265
|
} | null, "query", "get", "public">;
|
|
1262
|
-
"manager.auth.accountInfo": import("./api/operations/types
|
|
1266
|
+
"manager.auth.accountInfo": import("./api/operations/types").RakunOperationContractWithoutInput<{
|
|
1263
1267
|
has2FA: boolean;
|
|
1264
1268
|
enabled2FA: boolean;
|
|
1265
1269
|
method2FA: "totp" | "webauthn";
|
|
@@ -1270,21 +1274,21 @@ export declare const getManagerOperationContract: <TName extends ManagerOperatio
|
|
|
1270
1274
|
}[];
|
|
1271
1275
|
currentSession: string;
|
|
1272
1276
|
}, "query", "get", "auth">;
|
|
1273
|
-
"manager.auth.deleteSession": import("./api/operations/types
|
|
1277
|
+
"manager.auth.deleteSession": import("./api/operations/types").RakunOperationContractWithInput<{
|
|
1274
1278
|
token: string;
|
|
1275
1279
|
}, {
|
|
1276
1280
|
ok: boolean;
|
|
1277
1281
|
}, "mutation", "post", "auth">;
|
|
1278
|
-
"manager.auth.totp.enroll": import("./api/operations/types
|
|
1282
|
+
"manager.auth.totp.enroll": import("./api/operations/types").RakunOperationContractWithoutInput<{
|
|
1279
1283
|
qrDataURL: string;
|
|
1280
1284
|
otpauthURL: string;
|
|
1281
1285
|
}, "query", "get", "auth">;
|
|
1282
|
-
"manager.auth.totp.confirm": import("./api/operations/types
|
|
1286
|
+
"manager.auth.totp.confirm": import("./api/operations/types").RakunOperationContractWithInput<{
|
|
1283
1287
|
code: string;
|
|
1284
1288
|
}, {
|
|
1285
1289
|
ok: boolean;
|
|
1286
1290
|
}, "mutation", "post", "auth">;
|
|
1287
|
-
"manager.auth.totp.verify": import("./api/operations/types
|
|
1291
|
+
"manager.auth.totp.verify": import("./api/operations/types").RakunOperationContractWithInput<{
|
|
1288
1292
|
code: string;
|
|
1289
1293
|
challenge: string;
|
|
1290
1294
|
}, {
|
|
@@ -1292,25 +1296,25 @@ export declare const getManagerOperationContract: <TName extends ManagerOperatio
|
|
|
1292
1296
|
} | {
|
|
1293
1297
|
error: string;
|
|
1294
1298
|
}, "mutation", "post", "public">;
|
|
1295
|
-
"manager.auth.webauthn.register.options": import("./api/operations/types
|
|
1299
|
+
"manager.auth.webauthn.register.options": import("./api/operations/types").RakunOperationContractWithInput<{
|
|
1296
1300
|
deviceName: string;
|
|
1297
1301
|
}, {
|
|
1298
1302
|
token: string;
|
|
1299
1303
|
options: any;
|
|
1300
1304
|
}, "query", "post", "auth">;
|
|
1301
|
-
"manager.auth.webauthn.register.verify": import("./api/operations/types
|
|
1305
|
+
"manager.auth.webauthn.register.verify": import("./api/operations/types").RakunOperationContractWithInput<{
|
|
1302
1306
|
token: string;
|
|
1303
1307
|
deviceName: string;
|
|
1304
1308
|
response: any;
|
|
1305
1309
|
}, {
|
|
1306
1310
|
ok: boolean;
|
|
1307
1311
|
}, "mutation", "post", "auth">;
|
|
1308
|
-
"manager.auth.webauthn.auth.options": import("./api/operations/types
|
|
1312
|
+
"manager.auth.webauthn.auth.options": import("./api/operations/types").RakunOperationContractWithInput<{
|
|
1309
1313
|
challengeToken: string;
|
|
1310
1314
|
}, {
|
|
1311
1315
|
options: any;
|
|
1312
1316
|
}, "query", "post", "public">;
|
|
1313
|
-
"manager.auth.webauthn.auth.verify": import("./api/operations/types
|
|
1317
|
+
"manager.auth.webauthn.auth.verify": import("./api/operations/types").RakunOperationContractWithInput<{
|
|
1314
1318
|
challengeToken: string;
|
|
1315
1319
|
response: any;
|
|
1316
1320
|
}, {
|