@rakun-kit/core 1.3.9 → 1.3.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/api/context.d.ts +1 -1
- package/dist/esm/api/context.js +3 -3
- package/dist/esm/api/operations/catalog.d.ts +2 -2
- package/dist/esm/api/operations/catalog.js +1 -1
- package/dist/esm/api/operations/custom.d.ts +1 -1
- package/dist/esm/api/operations/custom.js +1 -1
- package/dist/esm/api/operations/index.d.ts +92 -92
- package/dist/esm/api/operations/index.js +8 -8
- package/dist/esm/api/operations/manager-contract.d.ts +65 -65
- package/dist/esm/api/operations/manager-contract.js +5 -5
- package/dist/esm/api/operations/manager.d.ts +66 -66
- package/dist/esm/api/operations/manager.js +51 -51
- package/dist/esm/api/operations/tracing.d.ts +1 -1
- package/dist/esm/api/operations/tracing.js +1 -1
- package/dist/esm/api/operations/types.d.ts +1 -1
- package/dist/esm/api/operations/web-contract.d.ts +19 -19
- package/dist/esm/api/operations/web-contract.js +3 -3
- package/dist/esm/api/operations/web.d.ts +20 -20
- package/dist/esm/api/operations/web.js +9 -9
- package/dist/esm/api/proxies/context.d.ts +2 -2
- package/dist/esm/api/proxies/index.d.ts +8 -8
- package/dist/esm/api/proxies/index.js +1 -1
- package/dist/esm/api/routes/manager/apiOperations.d.ts +3 -3
- package/dist/esm/api/routes/manager/apiOperations.js +5 -5
- package/dist/esm/api/routes/manager/auth/accountInfo.d.ts +2 -2
- package/dist/esm/api/routes/manager/auth/accountInfo.js +3 -3
- package/dist/esm/api/routes/manager/auth/deleteSession.d.ts +2 -2
- package/dist/esm/api/routes/manager/auth/deleteSession.js +3 -3
- package/dist/esm/api/routes/manager/auth/getSession.d.ts +5 -5
- 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/markTourSeen.d.ts +6 -6
- package/dist/esm/api/routes/manager/auth/markTourSeen.js +3 -3
- package/dist/esm/api/routes/manager/auth/totp/confirmTotp.d.ts +2 -2
- package/dist/esm/api/routes/manager/auth/totp/confirmTotp.js +2 -2
- package/dist/esm/api/routes/manager/auth/totp/enrollTotp.d.ts +1 -1
- package/dist/esm/api/routes/manager/auth/totp/enrollTotp.js +3 -3
- package/dist/esm/api/routes/manager/auth/totp/verifyTotp.d.ts +1 -1
- package/dist/esm/api/routes/manager/auth/totp/verifyTotp.js +3 -3
- package/dist/esm/api/routes/manager/auth/updateAccount.d.ts +6 -6
- package/dist/esm/api/routes/manager/auth/updateAccount.js +3 -3
- package/dist/esm/api/routes/manager/auth/updatePassword.d.ts +2 -2
- package/dist/esm/api/routes/manager/auth/updatePassword.js +3 -3
- package/dist/esm/api/routes/manager/auth/updateTutorialPreferences.d.ts +6 -6
- package/dist/esm/api/routes/manager/auth/updateTutorialPreferences.js +3 -3
- package/dist/esm/api/routes/manager/auth/webauthn/webauthnAuthOptions.js +4 -4
- package/dist/esm/api/routes/manager/auth/webauthn/webauthnAuthVerify.js +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/backups/create.d.ts +2 -2
- package/dist/esm/api/routes/manager/backups/create.js +2 -2
- package/dist/esm/api/routes/manager/backups/list.d.ts +2 -2
- package/dist/esm/api/routes/manager/backups/list.js +2 -2
- package/dist/esm/api/routes/manager/backups/restore.d.ts +2 -2
- package/dist/esm/api/routes/manager/backups/restore.js +3 -3
- package/dist/esm/api/routes/manager/contentTypes.d.ts +6 -6
- package/dist/esm/api/routes/manager/contentTypes.js +1 -1
- package/dist/esm/api/routes/manager/create.d.ts +4 -4
- 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/duplicate.d.ts +4 -4
- package/dist/esm/api/routes/manager/duplicate.js +5 -5
- package/dist/esm/api/routes/manager/get.d.ts +2 -2
- package/dist/esm/api/routes/manager/get.js +8 -8
- package/dist/esm/api/routes/manager/languages.d.ts +3 -3
- package/dist/esm/api/routes/manager/languages.js +1 -1
- package/dist/esm/api/routes/manager/list.d.ts +2 -2
- package/dist/esm/api/routes/manager/list.js +9 -9
- 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/deleteFolder.d.ts +2 -2
- package/dist/esm/api/routes/manager/media/deleteFolder.js +7 -7
- package/dist/esm/api/routes/manager/media/deleteMediaStorage.js +2 -2
- package/dist/esm/api/routes/manager/media/finalizeUpload.d.ts +2 -2
- package/dist/esm/api/routes/manager/media/finalizeUpload.js +10 -10
- 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/resolveMediaRecordUrls.js +1 -1
- package/dist/esm/api/routes/manager/media/uploadBinary.d.ts +1 -1
- package/dist/esm/api/routes/manager/media/uploadBinary.js +6 -6
- package/dist/esm/api/routes/manager/migrations/list.d.ts +2 -2
- package/dist/esm/api/routes/manager/migrations/list.js +2 -2
- package/dist/esm/api/routes/manager/permissions.d.ts +1 -1
- package/dist/esm/api/routes/manager/permissions.js +2 -2
- package/dist/esm/api/routes/manager/preview/create.d.ts +2 -2
- package/dist/esm/api/routes/manager/preview/create.js +13 -13
- package/dist/esm/api/routes/manager/regenerateRoutes.d.ts +1 -1
- package/dist/esm/api/routes/manager/regenerateRoutes.js +2 -2
- package/dist/esm/api/routes/manager/setDefaultLanguage.d.ts +2 -2
- package/dist/esm/api/routes/manager/setDefaultLanguage.js +4 -4
- package/dist/esm/api/routes/manager/translateDocument.d.ts +2 -2
- package/dist/esm/api/routes/manager/translateDocument.js +10 -10
- package/dist/esm/api/routes/manager/trash.d.ts +2 -2
- package/dist/esm/api/routes/manager/trash.js +6 -6
- package/dist/esm/api/routes/manager/update.d.ts +4 -4
- package/dist/esm/api/routes/manager/update.js +8 -8
- package/dist/esm/api/routes/manager/versions/get.d.ts +2 -2
- package/dist/esm/api/routes/manager/versions/get.js +2 -2
- package/dist/esm/api/routes/manager/versions/list.d.ts +2 -2
- package/dist/esm/api/routes/manager/versions/list.js +2 -2
- package/dist/esm/api/routes/manager/versions/restore.d.ts +2 -2
- package/dist/esm/api/routes/manager/versions/restore.js +4 -4
- package/dist/esm/api/routes/web/page.d.ts +4 -4
- package/dist/esm/api/routes/web/page.js +15 -15
- package/dist/esm/api/routes/web/previewPage.d.ts +6 -6
- package/dist/esm/api/routes/web/previewPage.js +8 -8
- package/dist/esm/api/routes/web/robots.d.ts +1 -1
- package/dist/esm/api/routes/web/robots.js +2 -2
- package/dist/esm/api/routes/web/seo.d.ts +1 -1
- package/dist/esm/api/routes/web/sitemap.d.ts +1 -1
- package/dist/esm/api/routes/web/sitemap.js +3 -3
- package/dist/esm/api/sessionCookie.d.ts +1 -1
- package/dist/esm/api/utils/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 +4 -4
- package/dist/esm/api/utils/checkPermissions.d.ts +2 -2
- package/dist/esm/api/utils/checkPermissions.js +3 -3
- package/dist/esm/api/utils/getLanguages.d.ts +3 -3
- 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 +5 -5
- package/dist/esm/api/utils/getUser.js +4 -4
- package/dist/esm/api/utils/index.d.ts +23 -23
- package/dist/esm/api/utils/index.js +23 -23
- package/dist/esm/api/utils/parseId.d.ts +1 -1
- package/dist/esm/api/utils/parseId.js +1 -1
- package/dist/esm/api/utils/passwords.js +1 -1
- package/dist/esm/api/utils/populates/populateLinks.d.ts +2 -2
- package/dist/esm/api/utils/populates/populateLinks.js +4 -4
- package/dist/esm/api/utils/populates/populateRelations.d.ts +2 -2
- package/dist/esm/api/utils/populates/populateRelations.js +6 -6
- package/dist/esm/api/utils/redirects/resolveRedirect.js +2 -2
- package/dist/esm/api/utils/requireContentType.d.ts +1 -1
- package/dist/esm/api/utils/requireContentType.js +2 -2
- package/dist/esm/api/utils/routes/revalidatePath.js +5 -5
- package/dist/esm/api/utils/routes/routeDefinitions.d.ts +1 -1
- package/dist/esm/api/utils/routes/routeMapHelpers.d.ts +5 -5
- package/dist/esm/api/utils/routes/routeMapHelpers.js +7 -7
- 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 +9 -9
- package/dist/esm/client.d.ts +42 -42
- package/dist/esm/client.js +26 -26
- package/dist/esm/contracts.d.ts +38 -38
- package/dist/esm/contracts.js +38 -38
- package/dist/esm/index.d.ts +37 -37
- package/dist/esm/index.js +34 -34
- package/dist/esm/internal-content-types/Backup.d.ts +57 -57
- package/dist/esm/internal-content-types/Backup.js +2 -2
- package/dist/esm/internal-content-types/BackupDocument.d.ts +114 -114
- package/dist/esm/internal-content-types/BackupDocument.js +2 -2
- package/dist/esm/internal-content-types/ContentVersion.d.ts +139 -139
- package/dist/esm/internal-content-types/ContentVersion.js +2 -2
- package/dist/esm/internal-content-types/HelloWorld.d.ts +30 -30
- package/dist/esm/internal-content-types/HelloWorld.js +2 -2
- package/dist/esm/internal-content-types/Language.d.ts +39 -39
- package/dist/esm/internal-content-types/Language.js +2 -2
- package/dist/esm/internal-content-types/LiteralTranslation.d.ts +59 -59
- package/dist/esm/internal-content-types/LiteralTranslation.js +2 -2
- package/dist/esm/internal-content-types/ManagerRole.d.ts +31 -31
- package/dist/esm/internal-content-types/ManagerRole.js +3 -3
- package/dist/esm/internal-content-types/ManagerUser.d.ts +200 -200
- package/dist/esm/internal-content-types/ManagerUser.js +3 -3
- package/dist/esm/internal-content-types/Media.d.ts +261 -261
- package/dist/esm/internal-content-types/Media.js +3 -3
- package/dist/esm/internal-content-types/MediaFolder.d.ts +88 -88
- package/dist/esm/internal-content-types/MediaFolder.js +2 -2
- package/dist/esm/internal-content-types/MfaChallenge.d.ts +532 -532
- package/dist/esm/internal-content-types/MfaChallenge.js +3 -3
- package/dist/esm/internal-content-types/Migration.d.ts +133 -133
- package/dist/esm/internal-content-types/Migration.js +2 -2
- package/dist/esm/internal-content-types/MigrationLock.d.ts +16 -16
- package/dist/esm/internal-content-types/MigrationLock.js +2 -2
- package/dist/esm/internal-content-types/Page.d.ts +1267 -1267
- package/dist/esm/internal-content-types/Page.js +4 -4
- package/dist/esm/internal-content-types/PreviewSnapshot.d.ts +213 -213
- package/dist/esm/internal-content-types/PreviewSnapshot.js +2 -2
- package/dist/esm/internal-content-types/Redirect.d.ts +146 -146
- package/dist/esm/internal-content-types/Redirect.js +2 -2
- package/dist/esm/internal-content-types/RobotsRule.d.ts +103 -103
- package/dist/esm/internal-content-types/RobotsRule.js +2 -2
- package/dist/esm/internal-content-types/Route.d.ts +151 -151
- package/dist/esm/internal-content-types/Route.js +2 -2
- package/dist/esm/internal-content-types/RouteLayoutModule.d.ts +164 -164
- package/dist/esm/internal-content-types/RouteLayoutModule.js +2 -2
- package/dist/esm/internal-content-types/RouteLayoutModuleOverride.d.ts +143 -143
- package/dist/esm/internal-content-types/RouteLayoutModuleOverride.js +2 -2
- package/dist/esm/internal-content-types/RouteMap.d.ts +143 -143
- package/dist/esm/internal-content-types/RouteMap.js +2 -2
- package/dist/esm/internal-content-types/RouteSettings.d.ts +1298 -1298
- package/dist/esm/internal-content-types/RouteSettings.js +3 -3
- package/dist/esm/internal-content-types/SchemaState.d.ts +65 -65
- package/dist/esm/internal-content-types/SchemaState.js +2 -2
- package/dist/esm/internal-content-types/Seo.d.ts +430 -430
- package/dist/esm/internal-content-types/Seo.js +2 -2
- package/dist/esm/internal-content-types/SeoSettings.d.ts +491 -491
- package/dist/esm/internal-content-types/SeoSettings.js +3 -3
- package/dist/esm/internal-content-types/Session.d.ts +495 -495
- package/dist/esm/internal-content-types/Session.js +3 -3
- package/dist/esm/internal-content-types/UserMfa.d.ts +464 -464
- package/dist/esm/internal-content-types/UserMfa.js +3 -3
- package/dist/esm/internal-content-types/WebAuthnCredential.d.ts +586 -586
- package/dist/esm/internal-content-types/WebAuthnCredential.js +3 -3
- package/dist/esm/internal-content-types/WebAuthnRegChallenge.d.ts +524 -524
- package/dist/esm/internal-content-types/WebAuthnRegChallenge.js +3 -3
- package/dist/esm/internal-content-types/index.d.ts +29 -29
- package/dist/esm/internal-content-types/index.js +29 -29
- package/dist/esm/lib/ContentType.d.ts +2 -2
- package/dist/esm/lib/ContentType.js +1 -1
- package/dist/esm/lib/Permissions.d.ts +1 -1
- package/dist/esm/lib/Registry.d.ts +4 -4
- package/dist/esm/lib/Registry.js +1 -1
- package/dist/esm/lib/errors/AppError.d.ts +1 -1
- package/dist/esm/lib/errors/AppError.js +1 -1
- package/dist/esm/lib/errors/index.d.ts +4 -4
- package/dist/esm/lib/errors/index.js +3 -3
- package/dist/esm/lib/errors/throwAppError.d.ts +1 -1
- package/dist/esm/lib/errors/throwAppError.js +3 -3
- package/dist/esm/lib/fields/Boolean.d.ts +1 -1
- package/dist/esm/lib/fields/Boolean.js +1 -1
- package/dist/esm/lib/fields/ContentReference.d.ts +2 -2
- package/dist/esm/lib/fields/ContentReference.js +2 -2
- package/dist/esm/lib/fields/Date.d.ts +1 -1
- package/dist/esm/lib/fields/Date.js +1 -1
- package/dist/esm/lib/fields/Field.d.ts +12 -12
- package/dist/esm/lib/fields/Fields.d.ts +13 -13
- package/dist/esm/lib/fields/Fields.js +13 -13
- package/dist/esm/lib/fields/File.d.ts +1 -1
- package/dist/esm/lib/fields/File.js +2 -2
- package/dist/esm/lib/fields/Iterator.d.ts +2 -2
- package/dist/esm/lib/fields/Iterator.js +3 -3
- package/dist/esm/lib/fields/Link.d.ts +1 -1
- package/dist/esm/lib/fields/Link.js +2 -2
- package/dist/esm/lib/fields/List.d.ts +1 -1
- package/dist/esm/lib/fields/List.js +1 -1
- package/dist/esm/lib/fields/Number.d.ts +1 -1
- package/dist/esm/lib/fields/Number.js +1 -1
- package/dist/esm/lib/fields/Relation.d.ts +3 -3
- package/dist/esm/lib/fields/Relation.js +3 -3
- package/dist/esm/lib/fields/Select.d.ts +1 -1
- package/dist/esm/lib/fields/Select.js +1 -1
- package/dist/esm/lib/fields/SelfRelation.d.ts +1 -1
- package/dist/esm/lib/fields/SelfRelation.js +2 -2
- package/dist/esm/lib/fields/SimpleList.d.ts +1 -1
- package/dist/esm/lib/fields/SimpleList.js +1 -1
- package/dist/esm/lib/fields/String.d.ts +1 -1
- package/dist/esm/lib/fields/String.js +3 -3
- package/dist/esm/lib/fields/index.d.ts +15 -15
- package/dist/esm/lib/fields/index.js +15 -15
- package/dist/esm/lib/types/index.d.ts +2 -2
- package/dist/esm/lib/utils/getListField.d.ts +1 -1
- package/dist/esm/lib/utils/getSchemas.d.ts +1 -1
- package/dist/esm/lib/utils/getTranslation.d.ts +2 -2
- package/dist/esm/lib/utils/getTranslation.js +1 -1
- package/dist/esm/lib/utils/isTranslatableObject.d.ts +1 -1
- package/dist/esm/lib/utils/translateObject.d.ts +2 -2
- package/dist/esm/lib/utils/translateObject.js +3 -3
- package/dist/esm/literals/definitions.d.ts +1 -1
- package/dist/esm/literals/definitions.js +1 -1
- package/dist/esm/literals/index.d.ts +3 -3
- package/dist/esm/literals/index.js +3 -3
- package/dist/esm/literals/manager.d.ts +1 -1
- package/dist/esm/literals/manager.js +1 -1
- package/dist/esm/manager.d.ts +264 -264
- 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/backups.js +5 -5
- package/dist/esm/orm/createIndexes.js +2 -2
- package/dist/esm/orm/database.js +3 -3
- package/dist/esm/orm/dbService.d.ts +6 -6
- package/dist/esm/orm/index.d.ts +2 -2
- package/dist/esm/orm/index.js +16 -16
- package/dist/esm/orm/migrations.d.ts +1 -1
- package/dist/esm/orm/migrations.js +4 -4
- package/dist/esm/orm/mongodbPeer.js +1 -1
- package/dist/esm/orm/operations/clear.d.ts +1 -1
- package/dist/esm/orm/operations/clear.js +1 -1
- package/dist/esm/orm/operations/create.d.ts +3 -3
- package/dist/esm/orm/operations/create.js +5 -5
- package/dist/esm/orm/operations/delete.d.ts +3 -3
- package/dist/esm/orm/operations/delete.js +3 -3
- package/dist/esm/orm/operations/find.d.ts +2 -2
- package/dist/esm/orm/operations/find.js +3 -3
- package/dist/esm/orm/operations/findDependencies.d.ts +2 -2
- package/dist/esm/orm/operations/findDependencies.js +4 -4
- package/dist/esm/orm/operations/get.d.ts +3 -3
- package/dist/esm/orm/operations/get.js +3 -3
- package/dist/esm/orm/operations/getAll.d.ts +2 -2
- package/dist/esm/orm/operations/getAll.js +2 -2
- package/dist/esm/orm/operations/list.d.ts +2 -2
- package/dist/esm/orm/operations/list.js +3 -3
- package/dist/esm/orm/operations/update.d.ts +4 -4
- package/dist/esm/orm/operations/update.js +6 -6
- package/dist/esm/orm/operations/updateMany.d.ts +3 -3
- package/dist/esm/orm/operations/updateMany.js +3 -3
- package/dist/esm/orm/operations/upsert.d.ts +3 -3
- package/dist/esm/orm/operations/upsert.js +4 -4
- package/dist/esm/orm/utils/deepDeleteNulls.js +1 -1
- package/dist/esm/orm/utils/parseId.d.ts +1 -1
- package/dist/esm/orm/utils/parseId.js +1 -1
- package/dist/esm/orm/utils/transformObjectIdsToStrings.js +1 -1
- package/dist/esm/orm/utils/transformStringToObjectIds.js +1 -1
- package/dist/esm/orm/versions.d.ts +1 -1
- package/dist/esm/orm/versions.js +7 -7
- package/dist/esm/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 +28 -28
- package/dist/esm/schemas/web/page.js +1 -1
- package/dist/esm/schemas/web/previewPage.d.ts +20 -20
- package/dist/esm/schemas/web/previewPage.js +1 -1
- package/dist/esm/translation/document.d.ts +3 -3
- package/dist/esm/translation/index.d.ts +4 -4
- package/dist/esm/translation/index.js +3 -3
- package/dist/esm/translation/translationService.d.ts +1 -1
- package/dist/esm/web/client.d.ts +1 -1
- package/dist/esm/web/client.js +1 -1
- package/dist/esm/web/index.d.ts +2 -2
- package/dist/esm/web/index.js +2 -2
- package/dist/esm/web/page.d.ts +1 -1
- package/package.json +1 -1
package/dist/esm/api/context.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { throwAppError } from "../lib/errors
|
|
2
|
-
import { Logger } from "../lib/Logger
|
|
3
|
-
import { getUser } from "./utils/getUser
|
|
1
|
+
import { throwAppError } from "../lib/errors";
|
|
2
|
+
import { Logger } from "../lib/Logger";
|
|
3
|
+
import { getUser } from "./utils/getUser";
|
|
4
4
|
export const createRequestContext = async (input) => {
|
|
5
5
|
const ctx = {
|
|
6
6
|
req: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ApiOperationsOutput } from "../../schemas/manager/apiOperations
|
|
2
|
-
import { type RakunOperationMap } from "./types
|
|
1
|
+
import type { ApiOperationsOutput } from "../../schemas/manager/apiOperations";
|
|
2
|
+
import { type RakunOperationMap } from "./types";
|
|
3
3
|
export declare const createApiOperationCatalog: (operations: RakunOperationMap) => ApiOperationsOutput;
|
|
4
4
|
//# sourceMappingURL=catalog.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import z from "zod";
|
|
2
|
-
import { createOperationPath } from "./types
|
|
2
|
+
import { createOperationPath } from "./types";
|
|
3
3
|
const toJsonSchema = (schema) => z.toJSONSchema(schema, { unrepresentable: "any" });
|
|
4
4
|
export const createApiOperationCatalog = (operations) => Object.entries(operations)
|
|
5
5
|
.map(([name, operation]) => ({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { RakunOperationMap } from "./types
|
|
1
|
+
import type { RakunOperationMap } from "./types";
|
|
2
2
|
export type RakunOperationNamespace = "manager" | "web" | "unscoped";
|
|
3
3
|
export declare const getCustomApiOperationDefinitions: (namespace?: RakunOperationNamespace) => RakunOperationMap;
|
|
4
4
|
export declare const mergeOperationMaps: <TBase extends RakunOperationMap, TExtra extends RakunOperationMap>(base: TBase, extra: TExtra) => TBase & TExtra;
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
export { createManagerOperationContracts, } from "./manager-contract
|
|
2
|
-
import { createManagerOperationDefinitions } from "./manager
|
|
3
|
-
export { createWebOperationContracts } from "./web-contract
|
|
4
|
-
import { createWebOperationDefinitions } from "./web
|
|
1
|
+
export { createManagerOperationContracts, } from "./manager-contract";
|
|
2
|
+
import { createManagerOperationDefinitions } from "./manager";
|
|
3
|
+
export { createWebOperationContracts } from "./web-contract";
|
|
4
|
+
import { createWebOperationDefinitions } from "./web";
|
|
5
5
|
export declare const createRakunOperationDefinitions: () => {
|
|
6
|
-
[x: string]: import("./types
|
|
7
|
-
"web.languages": import("./types
|
|
6
|
+
[x: string]: import("./types").AnyRakunOperation;
|
|
7
|
+
"web.languages": import("./types").RakunOperationWithoutInput<{
|
|
8
8
|
code: string;
|
|
9
9
|
name: string;
|
|
10
10
|
default: boolean;
|
|
11
11
|
_type: "Language";
|
|
12
12
|
_id: string;
|
|
13
|
-
parent?: import("
|
|
13
|
+
parent?: import("../..").SelfRelationValue<string> | undefined;
|
|
14
14
|
_schemaVersion?: number | undefined;
|
|
15
|
-
_visibility?: import("
|
|
16
|
-
_visibilityBeforeTrash?: Exclude<import("
|
|
15
|
+
_visibility?: import("../..").DocumentVisibility | undefined;
|
|
16
|
+
_visibilityBeforeTrash?: Exclude<import("../..").DocumentVisibility, "trash"> | undefined;
|
|
17
17
|
_trashed?: boolean | undefined;
|
|
18
18
|
_revision?: number | undefined;
|
|
19
19
|
trashedAt?: Date | undefined;
|
|
20
20
|
createdAt?: Date | undefined;
|
|
21
21
|
updatedAt?: Date | undefined;
|
|
22
22
|
}[], "query", "get", "public">;
|
|
23
|
-
"web.page": import("./types
|
|
23
|
+
"web.page": import("./types").RakunOperationWithInput<{
|
|
24
24
|
path: string;
|
|
25
25
|
search?: string | undefined;
|
|
26
26
|
headers?: Record<string, string> | undefined;
|
|
@@ -141,8 +141,8 @@ export declare const createRakunOperationDefinitions: () => {
|
|
|
141
141
|
} | undefined;
|
|
142
142
|
twitterImageAlt?: string | undefined;
|
|
143
143
|
_schemaVersion?: number | undefined;
|
|
144
|
-
_visibility?: import("
|
|
145
|
-
_visibilityBeforeTrash?: Exclude<import("
|
|
144
|
+
_visibility?: import("../..").DocumentVisibility | undefined;
|
|
145
|
+
_visibilityBeforeTrash?: Exclude<import("../..").DocumentVisibility, "trash"> | undefined;
|
|
146
146
|
_trashed?: boolean | undefined;
|
|
147
147
|
_revision?: number | undefined;
|
|
148
148
|
trashedAt?: Date | undefined;
|
|
@@ -159,10 +159,10 @@ export declare const createRakunOperationDefinitions: () => {
|
|
|
159
159
|
default: boolean;
|
|
160
160
|
_type: "Language";
|
|
161
161
|
_id: string;
|
|
162
|
-
parent?: import("
|
|
162
|
+
parent?: import("../..").SelfRelationValue<string> | undefined;
|
|
163
163
|
_schemaVersion?: number | undefined;
|
|
164
|
-
_visibility?: import("
|
|
165
|
-
_visibilityBeforeTrash?: Exclude<import("
|
|
164
|
+
_visibility?: import("../..").DocumentVisibility | undefined;
|
|
165
|
+
_visibilityBeforeTrash?: Exclude<import("../..").DocumentVisibility, "trash"> | undefined;
|
|
166
166
|
_trashed?: boolean | undefined;
|
|
167
167
|
_revision?: number | undefined;
|
|
168
168
|
trashedAt?: Date | undefined;
|
|
@@ -175,7 +175,7 @@ export declare const createRakunOperationDefinitions: () => {
|
|
|
175
175
|
status: number;
|
|
176
176
|
} | undefined;
|
|
177
177
|
}, "query", "get", "public">;
|
|
178
|
-
"web.previewPage": import("./types
|
|
178
|
+
"web.previewPage": import("./types").RakunOperationWithInput<{
|
|
179
179
|
token: string;
|
|
180
180
|
path: string;
|
|
181
181
|
search?: string | undefined;
|
|
@@ -297,8 +297,8 @@ export declare const createRakunOperationDefinitions: () => {
|
|
|
297
297
|
} | undefined;
|
|
298
298
|
twitterImageAlt?: string | undefined;
|
|
299
299
|
_schemaVersion?: number | undefined;
|
|
300
|
-
_visibility?: import("
|
|
301
|
-
_visibilityBeforeTrash?: Exclude<import("
|
|
300
|
+
_visibility?: import("../..").DocumentVisibility | undefined;
|
|
301
|
+
_visibilityBeforeTrash?: Exclude<import("../..").DocumentVisibility, "trash"> | undefined;
|
|
302
302
|
_trashed?: boolean | undefined;
|
|
303
303
|
_revision?: number | undefined;
|
|
304
304
|
trashedAt?: Date | undefined;
|
|
@@ -315,10 +315,10 @@ export declare const createRakunOperationDefinitions: () => {
|
|
|
315
315
|
default: boolean;
|
|
316
316
|
_type: "Language";
|
|
317
317
|
_id: string;
|
|
318
|
-
parent?: import("
|
|
318
|
+
parent?: import("../..").SelfRelationValue<string> | undefined;
|
|
319
319
|
_schemaVersion?: number | undefined;
|
|
320
|
-
_visibility?: import("
|
|
321
|
-
_visibilityBeforeTrash?: Exclude<import("
|
|
320
|
+
_visibility?: import("../..").DocumentVisibility | undefined;
|
|
321
|
+
_visibilityBeforeTrash?: Exclude<import("../..").DocumentVisibility, "trash"> | undefined;
|
|
322
322
|
_trashed?: boolean | undefined;
|
|
323
323
|
_revision?: number | undefined;
|
|
324
324
|
trashedAt?: Date | undefined;
|
|
@@ -331,7 +331,7 @@ export declare const createRakunOperationDefinitions: () => {
|
|
|
331
331
|
status: number;
|
|
332
332
|
} | undefined;
|
|
333
333
|
}, "query", "get", "public">;
|
|
334
|
-
"web.sitemap": import("./types
|
|
334
|
+
"web.sitemap": import("./types").RakunOperationWithInput<{
|
|
335
335
|
language?: string | undefined;
|
|
336
336
|
}, {
|
|
337
337
|
languages: {
|
|
@@ -342,13 +342,13 @@ export declare const createRakunOperationDefinitions: () => {
|
|
|
342
342
|
lastModified?: Date | undefined;
|
|
343
343
|
}[];
|
|
344
344
|
}, "query", "get", "public">;
|
|
345
|
-
"web.robots": import("./types
|
|
345
|
+
"web.robots": import("./types").RakunOperationWithoutInput<{
|
|
346
346
|
content: string;
|
|
347
347
|
}, "query", "get", "public">;
|
|
348
|
-
"web.test": import("./types
|
|
348
|
+
"web.test": import("./types").RakunOperationWithoutInput<{
|
|
349
349
|
ok: boolean;
|
|
350
350
|
}, "query", "get", "public">;
|
|
351
|
-
"manager.contentTypes": import("./types
|
|
351
|
+
"manager.contentTypes": import("./types").RakunOperationWithoutInput<{
|
|
352
352
|
name: string;
|
|
353
353
|
fields: Record<string, unknown>;
|
|
354
354
|
uniques: string[][];
|
|
@@ -370,51 +370,51 @@ export declare const createRakunOperationDefinitions: () => {
|
|
|
370
370
|
}[] | undefined;
|
|
371
371
|
isInternal?: boolean | undefined;
|
|
372
372
|
}[], "query", "get", "auth">;
|
|
373
|
-
"manager.languages": import("./types
|
|
373
|
+
"manager.languages": import("./types").RakunOperationWithoutInput<{
|
|
374
374
|
code: string;
|
|
375
375
|
name: string;
|
|
376
376
|
default: boolean;
|
|
377
377
|
_type: "Language";
|
|
378
378
|
_id: string;
|
|
379
|
-
parent?: import("
|
|
379
|
+
parent?: import("../..").SelfRelationValue<string> | undefined;
|
|
380
380
|
_schemaVersion?: number | undefined;
|
|
381
|
-
_visibility?: import("
|
|
382
|
-
_visibilityBeforeTrash?: Exclude<import("
|
|
381
|
+
_visibility?: import("../..").DocumentVisibility | undefined;
|
|
382
|
+
_visibilityBeforeTrash?: Exclude<import("../..").DocumentVisibility, "trash"> | undefined;
|
|
383
383
|
_trashed?: boolean | undefined;
|
|
384
384
|
_revision?: number | undefined;
|
|
385
385
|
trashedAt?: Date | undefined;
|
|
386
386
|
createdAt?: Date | undefined;
|
|
387
387
|
updatedAt?: Date | undefined;
|
|
388
388
|
}[], "query", "get", "auth">;
|
|
389
|
-
"manager.regenerateRoutes": import("./types
|
|
389
|
+
"manager.regenerateRoutes": import("./types").RakunOperationWithoutInput<{
|
|
390
390
|
ok: boolean;
|
|
391
391
|
}, "mutation", "post", "auth">;
|
|
392
|
-
"manager.create": import("./types
|
|
392
|
+
"manager.create": import("./types").RakunOperationWithInput<{
|
|
393
393
|
contentType: string;
|
|
394
394
|
data: any;
|
|
395
395
|
}, any, "mutation", "post", "auth">;
|
|
396
|
-
"manager.duplicate": import("./types
|
|
396
|
+
"manager.duplicate": import("./types").RakunOperationWithInput<{
|
|
397
397
|
contentType: string;
|
|
398
398
|
id: string;
|
|
399
399
|
}, any, "mutation", "post", "auth">;
|
|
400
|
-
"manager.update": import("./types
|
|
400
|
+
"manager.update": import("./types").RakunOperationWithInput<{
|
|
401
401
|
contentType: string;
|
|
402
402
|
id: string;
|
|
403
403
|
data: any;
|
|
404
404
|
}, any, "mutation", "post", "auth">;
|
|
405
|
-
"manager.delete": import("./types
|
|
405
|
+
"manager.delete": import("./types").RakunOperationWithInput<{
|
|
406
406
|
contentType: string;
|
|
407
407
|
id: string;
|
|
408
408
|
}, any, "mutation", "post", "auth">;
|
|
409
|
-
"manager.trash": import("./types
|
|
409
|
+
"manager.trash": import("./types").RakunOperationWithInput<{
|
|
410
410
|
contentType: string;
|
|
411
411
|
id: string;
|
|
412
412
|
}, any, "mutation", "post", "auth">;
|
|
413
|
-
"manager.get": import("./types
|
|
413
|
+
"manager.get": import("./types").RakunOperationWithInput<{
|
|
414
414
|
contentType: string;
|
|
415
415
|
id: string;
|
|
416
416
|
}, any, "query", "post", "auth">;
|
|
417
|
-
"manager.list": import("./types
|
|
417
|
+
"manager.list": import("./types").RakunOperationWithInput<{
|
|
418
418
|
contentType: string;
|
|
419
419
|
query: {
|
|
420
420
|
filter?: Record<string, any> | undefined;
|
|
@@ -432,13 +432,13 @@ export declare const createRakunOperationDefinitions: () => {
|
|
|
432
432
|
_id: string;
|
|
433
433
|
}[];
|
|
434
434
|
}, "query", "post", "auth">;
|
|
435
|
-
"manager.setDefaultLanguage": import("./types
|
|
435
|
+
"manager.setDefaultLanguage": import("./types").RakunOperationWithInput<{
|
|
436
436
|
language: string;
|
|
437
437
|
}, {
|
|
438
438
|
ok: boolean;
|
|
439
439
|
}, "mutation", "post", "auth">;
|
|
440
|
-
"manager.permissions": import("./types
|
|
441
|
-
"manager.backups.list": import("./types
|
|
440
|
+
"manager.permissions": import("./types").RakunOperationWithoutInput<string[], "query", "get", "auth">;
|
|
441
|
+
"manager.backups.list": import("./types").RakunOperationWithoutInput<{
|
|
442
442
|
_id: string;
|
|
443
443
|
contentTypes: string[];
|
|
444
444
|
createdAt: string | Date;
|
|
@@ -448,7 +448,7 @@ export declare const createRakunOperationDefinitions: () => {
|
|
|
448
448
|
createdBy?: string | undefined;
|
|
449
449
|
error?: string | undefined;
|
|
450
450
|
}[], "query", "get", "auth">;
|
|
451
|
-
"manager.backups.create": import("./types
|
|
451
|
+
"manager.backups.create": import("./types").RakunOperationWithInput<{
|
|
452
452
|
contentTypes?: string[] | undefined;
|
|
453
453
|
reason?: string | undefined;
|
|
454
454
|
}, {
|
|
@@ -461,7 +461,7 @@ export declare const createRakunOperationDefinitions: () => {
|
|
|
461
461
|
createdBy?: string | undefined;
|
|
462
462
|
error?: string | undefined;
|
|
463
463
|
}, "mutation", "post", "auth">;
|
|
464
|
-
"manager.backups.restore": import("./types
|
|
464
|
+
"manager.backups.restore": import("./types").RakunOperationWithInput<{
|
|
465
465
|
backupId: string;
|
|
466
466
|
reason?: string | undefined;
|
|
467
467
|
}, {
|
|
@@ -487,7 +487,7 @@ export declare const createRakunOperationDefinitions: () => {
|
|
|
487
487
|
};
|
|
488
488
|
restoredCount: number;
|
|
489
489
|
}, "mutation", "post", "auth">;
|
|
490
|
-
"manager.migrations.list": import("./types
|
|
490
|
+
"manager.migrations.list": import("./types").RakunOperationWithoutInput<{
|
|
491
491
|
states: {
|
|
492
492
|
_id: string;
|
|
493
493
|
contentType: string;
|
|
@@ -516,7 +516,7 @@ export declare const createRakunOperationDefinitions: () => {
|
|
|
516
516
|
description?: string | undefined;
|
|
517
517
|
}[];
|
|
518
518
|
}, "query", "get", "auth">;
|
|
519
|
-
"manager.versions.list": import("./types
|
|
519
|
+
"manager.versions.list": import("./types").RakunOperationWithInput<{
|
|
520
520
|
contentType: string;
|
|
521
521
|
documentId: string;
|
|
522
522
|
}, {
|
|
@@ -547,7 +547,7 @@ export declare const createRakunOperationDefinitions: () => {
|
|
|
547
547
|
reason?: string | undefined;
|
|
548
548
|
schemaVersion?: number | undefined;
|
|
549
549
|
}[], "query", "post", "auth">;
|
|
550
|
-
"manager.versions.get": import("./types
|
|
550
|
+
"manager.versions.get": import("./types").RakunOperationWithInput<{
|
|
551
551
|
versionId: string;
|
|
552
552
|
}, {
|
|
553
553
|
_id: string;
|
|
@@ -577,7 +577,7 @@ export declare const createRakunOperationDefinitions: () => {
|
|
|
577
577
|
reason?: string | undefined;
|
|
578
578
|
schemaVersion?: number | undefined;
|
|
579
579
|
} | null, "query", "post", "auth">;
|
|
580
|
-
"manager.versions.restore": import("./types
|
|
580
|
+
"manager.versions.restore": import("./types").RakunOperationWithInput<{
|
|
581
581
|
versionId: string;
|
|
582
582
|
reason?: string | undefined;
|
|
583
583
|
}, {
|
|
@@ -611,7 +611,7 @@ export declare const createRakunOperationDefinitions: () => {
|
|
|
611
611
|
};
|
|
612
612
|
restored: Record<string, unknown>;
|
|
613
613
|
}, "mutation", "post", "auth">;
|
|
614
|
-
"manager.translateDocument": import("./types
|
|
614
|
+
"manager.translateDocument": import("./types").RakunOperationWithInput<{
|
|
615
615
|
contentType: string;
|
|
616
616
|
id: string;
|
|
617
617
|
from: string;
|
|
@@ -628,7 +628,7 @@ export declare const createRakunOperationDefinitions: () => {
|
|
|
628
628
|
translatedFields: string[];
|
|
629
629
|
};
|
|
630
630
|
}, "mutation", "post", "auth">;
|
|
631
|
-
"manager.preview.create": import("./types
|
|
631
|
+
"manager.preview.create": import("./types").RakunOperationWithInput<{
|
|
632
632
|
contentType: string;
|
|
633
633
|
data: Record<string, any>;
|
|
634
634
|
documentId?: string | undefined;
|
|
@@ -639,7 +639,7 @@ export declare const createRakunOperationDefinitions: () => {
|
|
|
639
639
|
path: string;
|
|
640
640
|
expiresAt: string;
|
|
641
641
|
}, "mutation", "post", "auth">;
|
|
642
|
-
"manager.apiOperations": import("./types
|
|
642
|
+
"manager.apiOperations": import("./types").RakunOperationWithoutInput<{
|
|
643
643
|
name: string;
|
|
644
644
|
path: string;
|
|
645
645
|
kind: "query" | "mutation";
|
|
@@ -649,7 +649,7 @@ export declare const createRakunOperationDefinitions: () => {
|
|
|
649
649
|
description?: string | undefined;
|
|
650
650
|
input?: Record<string, unknown> | undefined;
|
|
651
651
|
}[], "query", "get", "auth">;
|
|
652
|
-
"manager.media.prepareUpload": import("./types
|
|
652
|
+
"manager.media.prepareUpload": import("./types").RakunOperationWithInput<{
|
|
653
653
|
fileName: string;
|
|
654
654
|
mime: string;
|
|
655
655
|
size: number;
|
|
@@ -663,7 +663,7 @@ export declare const createRakunOperationDefinitions: () => {
|
|
|
663
663
|
access: "public" | "private";
|
|
664
664
|
headers?: Record<string, string> | undefined;
|
|
665
665
|
}, "mutation", "post", "auth">;
|
|
666
|
-
"manager.media.finalizeUpload": import("./types
|
|
666
|
+
"manager.media.finalizeUpload": import("./types").RakunOperationWithInput<{
|
|
667
667
|
key: string;
|
|
668
668
|
access?: "public" | "private" | undefined;
|
|
669
669
|
fileName?: string | undefined;
|
|
@@ -748,7 +748,7 @@ export declare const createRakunOperationDefinitions: () => {
|
|
|
748
748
|
path: string;
|
|
749
749
|
} | undefined;
|
|
750
750
|
}, "mutation", "post", "auth">;
|
|
751
|
-
"manager.media.getUrl": import("./types
|
|
751
|
+
"manager.media.getUrl": import("./types").RakunOperationWithInput<{
|
|
752
752
|
key: string;
|
|
753
753
|
access?: "public" | "private" | undefined;
|
|
754
754
|
expiresInSeconds?: number | undefined;
|
|
@@ -759,7 +759,7 @@ export declare const createRakunOperationDefinitions: () => {
|
|
|
759
759
|
expiresAt: Date | null;
|
|
760
760
|
isPublic: boolean;
|
|
761
761
|
}, "query", "post", "auth">;
|
|
762
|
-
"manager.media.createFolder": import("./types
|
|
762
|
+
"manager.media.createFolder": import("./types").RakunOperationWithInput<{
|
|
763
763
|
name: string;
|
|
764
764
|
parentId?: string | undefined;
|
|
765
765
|
description?: string | undefined;
|
|
@@ -771,7 +771,7 @@ export declare const createRakunOperationDefinitions: () => {
|
|
|
771
771
|
parentId?: string | undefined;
|
|
772
772
|
description?: string | undefined;
|
|
773
773
|
}, "mutation", "post", "auth">;
|
|
774
|
-
"manager.media.listFolders": import("./types
|
|
774
|
+
"manager.media.listFolders": import("./types").RakunOperationWithInput<{
|
|
775
775
|
parentId?: string | undefined;
|
|
776
776
|
}, {
|
|
777
777
|
items: {
|
|
@@ -783,7 +783,7 @@ export declare const createRakunOperationDefinitions: () => {
|
|
|
783
783
|
description?: string | undefined;
|
|
784
784
|
}[];
|
|
785
785
|
}, "query", "post", "auth">;
|
|
786
|
-
"manager.media.deleteFolder": import("./types
|
|
786
|
+
"manager.media.deleteFolder": import("./types").RakunOperationWithInput<{
|
|
787
787
|
id: string;
|
|
788
788
|
recursive: true;
|
|
789
789
|
}, {
|
|
@@ -791,7 +791,7 @@ export declare const createRakunOperationDefinitions: () => {
|
|
|
791
791
|
deletedFolders: number;
|
|
792
792
|
deletedMedia: number;
|
|
793
793
|
}, "mutation", "post", "auth">;
|
|
794
|
-
"manager.literals.list": import("./types
|
|
794
|
+
"manager.literals.list": import("./types").RakunOperationWithInput<{
|
|
795
795
|
locale?: string | undefined;
|
|
796
796
|
}, {
|
|
797
797
|
defaultLocale: string;
|
|
@@ -820,7 +820,7 @@ export declare const createRakunOperationDefinitions: () => {
|
|
|
820
820
|
translation?: string | undefined;
|
|
821
821
|
}[];
|
|
822
822
|
}, "query", "post", "auth">;
|
|
823
|
-
"manager.literals.upsert": import("./types
|
|
823
|
+
"manager.literals.upsert": import("./types").RakunOperationWithInput<{
|
|
824
824
|
key: string;
|
|
825
825
|
locale: string;
|
|
826
826
|
message: string;
|
|
@@ -836,13 +836,13 @@ export declare const createRakunOperationDefinitions: () => {
|
|
|
836
836
|
extra: string[];
|
|
837
837
|
};
|
|
838
838
|
}, "mutation", "post", "auth">;
|
|
839
|
-
"manager.auth.updatePassword": import("./types
|
|
839
|
+
"manager.auth.updatePassword": import("./types").RakunOperationWithInput<{
|
|
840
840
|
currentPassword: string;
|
|
841
841
|
newPassword: string;
|
|
842
842
|
}, {
|
|
843
843
|
ok: boolean;
|
|
844
844
|
}, "mutation", "post", "auth">;
|
|
845
|
-
"manager.auth.login": import("./types
|
|
845
|
+
"manager.auth.login": import("./types").RakunOperationWithInput<{
|
|
846
846
|
username: string;
|
|
847
847
|
password: string;
|
|
848
848
|
}, {
|
|
@@ -852,10 +852,10 @@ export declare const createRakunOperationDefinitions: () => {
|
|
|
852
852
|
expiresAt: string;
|
|
853
853
|
method: string;
|
|
854
854
|
}, "mutation", "post", "public">;
|
|
855
|
-
"manager.auth.logout": import("./types
|
|
855
|
+
"manager.auth.logout": import("./types").RakunOperationWithoutInput<{
|
|
856
856
|
token: string;
|
|
857
857
|
}, "mutation", "post", "auth">;
|
|
858
|
-
"manager.auth.getSession": import("./types
|
|
858
|
+
"manager.auth.getSession": import("./types").RakunOperationWithoutInput<{
|
|
859
859
|
user: string;
|
|
860
860
|
email: string;
|
|
861
861
|
role: {
|
|
@@ -864,8 +864,8 @@ export declare const createRakunOperationDefinitions: () => {
|
|
|
864
864
|
_type: "ManagerRole";
|
|
865
865
|
_id: string;
|
|
866
866
|
_schemaVersion?: number | undefined;
|
|
867
|
-
_visibility?: import("
|
|
868
|
-
_visibilityBeforeTrash?: Exclude<import("
|
|
867
|
+
_visibility?: import("../..").DocumentVisibility | undefined;
|
|
868
|
+
_visibilityBeforeTrash?: Exclude<import("../..").DocumentVisibility, "trash"> | undefined;
|
|
869
869
|
_trashed?: boolean | undefined;
|
|
870
870
|
_revision?: number | undefined;
|
|
871
871
|
trashedAt?: Date | undefined;
|
|
@@ -884,15 +884,15 @@ export declare const createRakunOperationDefinitions: () => {
|
|
|
884
884
|
tutorialsPromptedAt?: Date | undefined;
|
|
885
885
|
seenTours?: (string | undefined)[] | undefined;
|
|
886
886
|
_schemaVersion?: number | undefined;
|
|
887
|
-
_visibility?: import("
|
|
888
|
-
_visibilityBeforeTrash?: Exclude<import("
|
|
887
|
+
_visibility?: import("../..").DocumentVisibility | undefined;
|
|
888
|
+
_visibilityBeforeTrash?: Exclude<import("../..").DocumentVisibility, "trash"> | undefined;
|
|
889
889
|
_trashed?: boolean | undefined;
|
|
890
890
|
_revision?: number | undefined;
|
|
891
891
|
trashedAt?: Date | undefined;
|
|
892
892
|
createdAt?: Date | undefined;
|
|
893
893
|
updatedAt?: Date | undefined;
|
|
894
894
|
} | null, "query", "get", "public">;
|
|
895
|
-
"manager.auth.accountInfo": import("./types
|
|
895
|
+
"manager.auth.accountInfo": import("./types").RakunOperationWithoutInput<{
|
|
896
896
|
has2FA: boolean;
|
|
897
897
|
enabled2FA: boolean;
|
|
898
898
|
method2FA: "totp" | "webauthn";
|
|
@@ -903,7 +903,7 @@ export declare const createRakunOperationDefinitions: () => {
|
|
|
903
903
|
}[];
|
|
904
904
|
currentSession: string;
|
|
905
905
|
}, "query", "get", "auth">;
|
|
906
|
-
"manager.auth.updateAccount": import("./types
|
|
906
|
+
"manager.auth.updateAccount": import("./types").RakunOperationWithInput<{
|
|
907
907
|
user: string;
|
|
908
908
|
avatarId?: string | null | undefined;
|
|
909
909
|
}, {
|
|
@@ -915,8 +915,8 @@ export declare const createRakunOperationDefinitions: () => {
|
|
|
915
915
|
_type: "ManagerRole";
|
|
916
916
|
_id: string;
|
|
917
917
|
_schemaVersion?: number | undefined;
|
|
918
|
-
_visibility?: import("
|
|
919
|
-
_visibilityBeforeTrash?: Exclude<import("
|
|
918
|
+
_visibility?: import("../..").DocumentVisibility | undefined;
|
|
919
|
+
_visibilityBeforeTrash?: Exclude<import("../..").DocumentVisibility, "trash"> | undefined;
|
|
920
920
|
_trashed?: boolean | undefined;
|
|
921
921
|
_revision?: number | undefined;
|
|
922
922
|
trashedAt?: Date | undefined;
|
|
@@ -935,15 +935,15 @@ export declare const createRakunOperationDefinitions: () => {
|
|
|
935
935
|
tutorialsPromptedAt?: Date | undefined;
|
|
936
936
|
seenTours?: (string | undefined)[] | undefined;
|
|
937
937
|
_schemaVersion?: number | undefined;
|
|
938
|
-
_visibility?: import("
|
|
939
|
-
_visibilityBeforeTrash?: Exclude<import("
|
|
938
|
+
_visibility?: import("../..").DocumentVisibility | undefined;
|
|
939
|
+
_visibilityBeforeTrash?: Exclude<import("../..").DocumentVisibility, "trash"> | undefined;
|
|
940
940
|
_trashed?: boolean | undefined;
|
|
941
941
|
_revision?: number | undefined;
|
|
942
942
|
trashedAt?: Date | undefined;
|
|
943
943
|
createdAt?: Date | undefined;
|
|
944
944
|
updatedAt?: Date | undefined;
|
|
945
945
|
}, "mutation", "post", "auth">;
|
|
946
|
-
"manager.auth.updateTutorialPreferences": import("./types
|
|
946
|
+
"manager.auth.updateTutorialPreferences": import("./types").RakunOperationWithInput<{
|
|
947
947
|
enabled: boolean;
|
|
948
948
|
}, {
|
|
949
949
|
user: string;
|
|
@@ -954,8 +954,8 @@ export declare const createRakunOperationDefinitions: () => {
|
|
|
954
954
|
_type: "ManagerRole";
|
|
955
955
|
_id: string;
|
|
956
956
|
_schemaVersion?: number | undefined;
|
|
957
|
-
_visibility?: import("
|
|
958
|
-
_visibilityBeforeTrash?: Exclude<import("
|
|
957
|
+
_visibility?: import("../..").DocumentVisibility | undefined;
|
|
958
|
+
_visibilityBeforeTrash?: Exclude<import("../..").DocumentVisibility, "trash"> | undefined;
|
|
959
959
|
_trashed?: boolean | undefined;
|
|
960
960
|
_revision?: number | undefined;
|
|
961
961
|
trashedAt?: Date | undefined;
|
|
@@ -974,15 +974,15 @@ export declare const createRakunOperationDefinitions: () => {
|
|
|
974
974
|
tutorialsPromptedAt?: Date | undefined;
|
|
975
975
|
seenTours?: (string | undefined)[] | undefined;
|
|
976
976
|
_schemaVersion?: number | undefined;
|
|
977
|
-
_visibility?: import("
|
|
978
|
-
_visibilityBeforeTrash?: Exclude<import("
|
|
977
|
+
_visibility?: import("../..").DocumentVisibility | undefined;
|
|
978
|
+
_visibilityBeforeTrash?: Exclude<import("../..").DocumentVisibility, "trash"> | undefined;
|
|
979
979
|
_trashed?: boolean | undefined;
|
|
980
980
|
_revision?: number | undefined;
|
|
981
981
|
trashedAt?: Date | undefined;
|
|
982
982
|
createdAt?: Date | undefined;
|
|
983
983
|
updatedAt?: Date | undefined;
|
|
984
984
|
}, "mutation", "post", "auth">;
|
|
985
|
-
"manager.auth.markTourSeen": import("./types
|
|
985
|
+
"manager.auth.markTourSeen": import("./types").RakunOperationWithInput<{
|
|
986
986
|
tourId: string;
|
|
987
987
|
}, {
|
|
988
988
|
user: string;
|
|
@@ -993,8 +993,8 @@ export declare const createRakunOperationDefinitions: () => {
|
|
|
993
993
|
_type: "ManagerRole";
|
|
994
994
|
_id: string;
|
|
995
995
|
_schemaVersion?: number | undefined;
|
|
996
|
-
_visibility?: import("
|
|
997
|
-
_visibilityBeforeTrash?: Exclude<import("
|
|
996
|
+
_visibility?: import("../..").DocumentVisibility | undefined;
|
|
997
|
+
_visibilityBeforeTrash?: Exclude<import("../..").DocumentVisibility, "trash"> | undefined;
|
|
998
998
|
_trashed?: boolean | undefined;
|
|
999
999
|
_revision?: number | undefined;
|
|
1000
1000
|
trashedAt?: Date | undefined;
|
|
@@ -1013,29 +1013,29 @@ export declare const createRakunOperationDefinitions: () => {
|
|
|
1013
1013
|
tutorialsPromptedAt?: Date | undefined;
|
|
1014
1014
|
seenTours?: (string | undefined)[] | undefined;
|
|
1015
1015
|
_schemaVersion?: number | undefined;
|
|
1016
|
-
_visibility?: import("
|
|
1017
|
-
_visibilityBeforeTrash?: Exclude<import("
|
|
1016
|
+
_visibility?: import("../..").DocumentVisibility | undefined;
|
|
1017
|
+
_visibilityBeforeTrash?: Exclude<import("../..").DocumentVisibility, "trash"> | undefined;
|
|
1018
1018
|
_trashed?: boolean | undefined;
|
|
1019
1019
|
_revision?: number | undefined;
|
|
1020
1020
|
trashedAt?: Date | undefined;
|
|
1021
1021
|
createdAt?: Date | undefined;
|
|
1022
1022
|
updatedAt?: Date | undefined;
|
|
1023
1023
|
}, "mutation", "post", "auth">;
|
|
1024
|
-
"manager.auth.deleteSession": import("./types
|
|
1024
|
+
"manager.auth.deleteSession": import("./types").RakunOperationWithInput<{
|
|
1025
1025
|
token: string;
|
|
1026
1026
|
}, {
|
|
1027
1027
|
ok: boolean;
|
|
1028
1028
|
}, "mutation", "post", "auth">;
|
|
1029
|
-
"manager.auth.totp.enroll": import("./types
|
|
1029
|
+
"manager.auth.totp.enroll": import("./types").RakunOperationWithoutInput<{
|
|
1030
1030
|
qrDataURL: string;
|
|
1031
1031
|
otpauthURL: string;
|
|
1032
1032
|
}, "query", "get", "auth">;
|
|
1033
|
-
"manager.auth.totp.confirm": import("./types
|
|
1033
|
+
"manager.auth.totp.confirm": import("./types").RakunOperationWithInput<{
|
|
1034
1034
|
code: string;
|
|
1035
1035
|
}, {
|
|
1036
1036
|
ok: boolean;
|
|
1037
1037
|
}, "mutation", "post", "auth">;
|
|
1038
|
-
"manager.auth.totp.verify": import("./types
|
|
1038
|
+
"manager.auth.totp.verify": import("./types").RakunOperationWithInput<{
|
|
1039
1039
|
code: string;
|
|
1040
1040
|
challenge: string;
|
|
1041
1041
|
}, {
|
|
@@ -1043,32 +1043,32 @@ export declare const createRakunOperationDefinitions: () => {
|
|
|
1043
1043
|
} | {
|
|
1044
1044
|
error: string;
|
|
1045
1045
|
}, "mutation", "post", "public">;
|
|
1046
|
-
"manager.auth.webauthn.register.options": import("./types
|
|
1046
|
+
"manager.auth.webauthn.register.options": import("./types").RakunOperationWithInput<{
|
|
1047
1047
|
deviceName: string;
|
|
1048
1048
|
}, {
|
|
1049
1049
|
token: string;
|
|
1050
1050
|
options: any;
|
|
1051
1051
|
}, "query", "post", "auth">;
|
|
1052
|
-
"manager.auth.webauthn.register.verify": import("./types
|
|
1052
|
+
"manager.auth.webauthn.register.verify": import("./types").RakunOperationWithInput<{
|
|
1053
1053
|
token: string;
|
|
1054
1054
|
deviceName: string;
|
|
1055
1055
|
response: any;
|
|
1056
1056
|
}, {
|
|
1057
1057
|
ok: boolean;
|
|
1058
1058
|
}, "mutation", "post", "auth">;
|
|
1059
|
-
"manager.auth.webauthn.auth.options": import("./types
|
|
1059
|
+
"manager.auth.webauthn.auth.options": import("./types").RakunOperationWithInput<{
|
|
1060
1060
|
challengeToken: string;
|
|
1061
1061
|
}, {
|
|
1062
1062
|
options: any;
|
|
1063
1063
|
}, "query", "post", "public">;
|
|
1064
|
-
"manager.auth.webauthn.auth.verify": import("./types
|
|
1064
|
+
"manager.auth.webauthn.auth.verify": import("./types").RakunOperationWithInput<{
|
|
1065
1065
|
challengeToken: string;
|
|
1066
1066
|
response: any;
|
|
1067
1067
|
}, {
|
|
1068
1068
|
token: string;
|
|
1069
1069
|
}, "mutation", "post", "public">;
|
|
1070
|
-
} & import("./types
|
|
1070
|
+
} & import("./types").RakunOperationMap;
|
|
1071
1071
|
export { createManagerOperationDefinitions, createWebOperationDefinitions };
|
|
1072
|
-
export { getCustomApiOperationDefinitions, mergeOperationMaps, type RakunOperationNamespace, } from "./custom
|
|
1073
|
-
export { type AnyRakunOperation, type AnyRakunOperationContract, createOperationManifest, createOperationPath, defineOperation, defineOperationContract, mergeOperationContracts, type RakunOperationAccess, type RakunOperationContractDefinition, type RakunOperationContractMap, type RakunOperationDefinitionFromContract, type RakunOperationDefinition, type RakunOperationHttpMethod, type RakunOperationImplementationFromContract, type RakunOperationImplementationMap, type RakunOperationKind, type RakunOperationManifestFromContracts, type RakunOperationMeta, type RakunOperationMap, type RakunOperationSuccessArgs, } from "./types
|
|
1072
|
+
export { getCustomApiOperationDefinitions, mergeOperationMaps, type RakunOperationNamespace, } from "./custom";
|
|
1073
|
+
export { type AnyRakunOperation, type AnyRakunOperationContract, createOperationManifest, createOperationPath, defineOperation, defineOperationContract, mergeOperationContracts, type RakunOperationAccess, type RakunOperationContractDefinition, type RakunOperationContractMap, type RakunOperationDefinitionFromContract, type RakunOperationDefinition, type RakunOperationHttpMethod, type RakunOperationImplementationFromContract, type RakunOperationImplementationMap, type RakunOperationKind, type RakunOperationManifestFromContracts, type RakunOperationMeta, type RakunOperationMap, type RakunOperationSuccessArgs, } from "./types";
|
|
1074
1074
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { createManagerOperationContracts, } from "./manager-contract
|
|
2
|
-
import { createManagerOperationDefinitions } from "./manager
|
|
3
|
-
export { createWebOperationContracts } from "./web-contract
|
|
4
|
-
import { createWebOperationDefinitions } from "./web
|
|
5
|
-
import { getCustomApiOperationDefinitions, mergeOperationMaps, } from "./custom
|
|
6
|
-
import { traceOperationMap } from "./tracing
|
|
1
|
+
export { createManagerOperationContracts, } from "./manager-contract";
|
|
2
|
+
import { createManagerOperationDefinitions } from "./manager";
|
|
3
|
+
export { createWebOperationContracts } from "./web-contract";
|
|
4
|
+
import { createWebOperationDefinitions } from "./web";
|
|
5
|
+
import { getCustomApiOperationDefinitions, mergeOperationMaps, } from "./custom";
|
|
6
|
+
import { traceOperationMap } from "./tracing";
|
|
7
7
|
export const createRakunOperationDefinitions = () => {
|
|
8
8
|
const coreOperations = {
|
|
9
9
|
...createManagerOperationDefinitions(),
|
|
@@ -12,6 +12,6 @@ export const createRakunOperationDefinitions = () => {
|
|
|
12
12
|
return traceOperationMap(mergeOperationMaps(coreOperations, getCustomApiOperationDefinitions("unscoped")));
|
|
13
13
|
};
|
|
14
14
|
export { createManagerOperationDefinitions, createWebOperationDefinitions };
|
|
15
|
-
export { getCustomApiOperationDefinitions, mergeOperationMaps, } from "./custom
|
|
16
|
-
export { createOperationManifest, createOperationPath, defineOperation, defineOperationContract, mergeOperationContracts, } from "./types
|
|
15
|
+
export { getCustomApiOperationDefinitions, mergeOperationMaps, } from "./custom";
|
|
16
|
+
export { createOperationManifest, createOperationPath, defineOperation, defineOperationContract, mergeOperationContracts, } from "./types";
|
|
17
17
|
//# sourceMappingURL=index.js.map
|