@rakun-kit/core 1.4.0 → 1.4.2

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.
Files changed (432) hide show
  1. package/dist/cjs/api/routes/manager/backups/restore.js +2 -0
  2. package/dist/cjs/api/routes/manager/backups/restore.js.map +1 -1
  3. package/dist/cjs/client.js +4 -1
  4. package/dist/cjs/client.js.map +1 -1
  5. package/dist/cjs/index.js +4 -0
  6. package/dist/cjs/index.js.map +1 -1
  7. package/dist/cjs/internal-content-types/ManagerRoleHooks.js +47 -0
  8. package/dist/cjs/internal-content-types/ManagerRoleHooks.js.map +1 -0
  9. package/dist/cjs/internal-content-types/Page.js +1 -1
  10. package/dist/cjs/internal-content-types/Page.js.map +1 -1
  11. package/dist/cjs/internal-content-types/syncAdminRole.js +16 -0
  12. package/dist/cjs/internal-content-types/syncAdminRole.js.map +1 -0
  13. package/dist/cjs/lib/ManagerRolePolicy.js +7 -0
  14. package/dist/cjs/lib/ManagerRolePolicy.js.map +1 -0
  15. package/dist/cjs/lib/Permissions.js +4 -0
  16. package/dist/cjs/lib/Permissions.js.map +1 -1
  17. package/dist/cjs/orm/index.js +1 -1
  18. package/dist/cjs/orm/index.js.map +1 -1
  19. package/dist/cjs/orm/operations/clear.js +3 -4
  20. package/dist/cjs/orm/operations/clear.js.map +1 -1
  21. package/dist/esm/api/context.d.ts +1 -1
  22. package/dist/esm/api/context.js +3 -3
  23. package/dist/esm/api/hooks/context.d.ts +1 -1
  24. package/dist/esm/api/hooks/runContentHooks.d.ts +4 -4
  25. package/dist/esm/api/hooks/runContentHooks.js +1 -1
  26. package/dist/esm/api/operations/catalog.d.ts +2 -2
  27. package/dist/esm/api/operations/catalog.js +1 -1
  28. package/dist/esm/api/operations/custom.d.ts +1 -1
  29. package/dist/esm/api/operations/custom.js +1 -1
  30. package/dist/esm/api/operations/index.d.ts +149 -149
  31. package/dist/esm/api/operations/index.js +8 -8
  32. package/dist/esm/api/operations/manager-contract.d.ts +117 -117
  33. package/dist/esm/api/operations/manager-contract.js +5 -5
  34. package/dist/esm/api/operations/manager.d.ts +118 -118
  35. package/dist/esm/api/operations/manager.js +56 -56
  36. package/dist/esm/api/operations/tracing.d.ts +1 -1
  37. package/dist/esm/api/operations/tracing.js +1 -1
  38. package/dist/esm/api/operations/types.d.ts +1 -1
  39. package/dist/esm/api/operations/web-contract.d.ts +24 -24
  40. package/dist/esm/api/operations/web-contract.js +3 -3
  41. package/dist/esm/api/operations/web.d.ts +25 -25
  42. package/dist/esm/api/operations/web.js +9 -9
  43. package/dist/esm/api/routes/manager/apiOperations.d.ts +3 -3
  44. package/dist/esm/api/routes/manager/apiOperations.js +5 -5
  45. package/dist/esm/api/routes/manager/auth/accountInfo.d.ts +2 -2
  46. package/dist/esm/api/routes/manager/auth/accountInfo.js +3 -3
  47. package/dist/esm/api/routes/manager/auth/deleteSession.d.ts +2 -2
  48. package/dist/esm/api/routes/manager/auth/deleteSession.js +3 -3
  49. package/dist/esm/api/routes/manager/auth/getSession.d.ts +7 -7
  50. package/dist/esm/api/routes/manager/auth/login.d.ts +2 -2
  51. package/dist/esm/api/routes/manager/auth/login.js +6 -6
  52. package/dist/esm/api/routes/manager/auth/logout.d.ts +1 -1
  53. package/dist/esm/api/routes/manager/auth/logout.js +3 -3
  54. package/dist/esm/api/routes/manager/auth/markTourSeen.d.ts +8 -8
  55. package/dist/esm/api/routes/manager/auth/markTourSeen.js +3 -3
  56. package/dist/esm/api/routes/manager/auth/totp/confirmTotp.d.ts +2 -2
  57. package/dist/esm/api/routes/manager/auth/totp/confirmTotp.js +2 -2
  58. package/dist/esm/api/routes/manager/auth/totp/enrollTotp.d.ts +1 -1
  59. package/dist/esm/api/routes/manager/auth/totp/enrollTotp.js +3 -3
  60. package/dist/esm/api/routes/manager/auth/totp/verifyTotp.d.ts +1 -1
  61. package/dist/esm/api/routes/manager/auth/totp/verifyTotp.js +5 -5
  62. package/dist/esm/api/routes/manager/auth/updateAccount.d.ts +8 -8
  63. package/dist/esm/api/routes/manager/auth/updateAccount.js +3 -3
  64. package/dist/esm/api/routes/manager/auth/updatePassword.d.ts +2 -2
  65. package/dist/esm/api/routes/manager/auth/updatePassword.js +5 -5
  66. package/dist/esm/api/routes/manager/auth/updateTutorialPreferences.d.ts +8 -8
  67. package/dist/esm/api/routes/manager/auth/updateTutorialPreferences.js +3 -3
  68. package/dist/esm/api/routes/manager/auth/webauthn/webauthnAuthOptions.js +4 -4
  69. package/dist/esm/api/routes/manager/auth/webauthn/webauthnAuthVerify.js +6 -6
  70. package/dist/esm/api/routes/manager/auth/webauthn/webauthnRegisterOptions.d.ts +2 -2
  71. package/dist/esm/api/routes/manager/auth/webauthn/webauthnRegisterOptions.js +3 -3
  72. package/dist/esm/api/routes/manager/auth/webauthn/webauthnRegisterVerify.d.ts +1 -1
  73. package/dist/esm/api/routes/manager/auth/webauthn/webauthnRegisterVerify.js +4 -4
  74. package/dist/esm/api/routes/manager/backups/create.d.ts +2 -2
  75. package/dist/esm/api/routes/manager/backups/create.js +2 -2
  76. package/dist/esm/api/routes/manager/backups/list.d.ts +2 -2
  77. package/dist/esm/api/routes/manager/backups/list.js +2 -2
  78. package/dist/esm/api/routes/manager/backups/restore.d.ts +2 -2
  79. package/dist/esm/api/routes/manager/backups/restore.d.ts.map +1 -1
  80. package/dist/esm/api/routes/manager/backups/restore.js +5 -3
  81. package/dist/esm/api/routes/manager/backups/restore.js.map +1 -1
  82. package/dist/esm/api/routes/manager/comments.d.ts +2 -2
  83. package/dist/esm/api/routes/manager/comments.js +6 -6
  84. package/dist/esm/api/routes/manager/contentType.d.ts +10 -10
  85. package/dist/esm/api/routes/manager/contentType.js +3 -3
  86. package/dist/esm/api/routes/manager/contentTypes.d.ts +8 -8
  87. package/dist/esm/api/routes/manager/contentTypes.js +1 -1
  88. package/dist/esm/api/routes/manager/create.d.ts +5 -5
  89. package/dist/esm/api/routes/manager/create.js +9 -9
  90. package/dist/esm/api/routes/manager/delete.d.ts +2 -2
  91. package/dist/esm/api/routes/manager/delete.js +9 -9
  92. package/dist/esm/api/routes/manager/duplicate.d.ts +5 -5
  93. package/dist/esm/api/routes/manager/duplicate.js +5 -5
  94. package/dist/esm/api/routes/manager/favorites.d.ts +2 -2
  95. package/dist/esm/api/routes/manager/favorites.js +5 -5
  96. package/dist/esm/api/routes/manager/get.d.ts +2 -2
  97. package/dist/esm/api/routes/manager/get.js +9 -9
  98. package/dist/esm/api/routes/manager/languages.d.ts +4 -4
  99. package/dist/esm/api/routes/manager/languages.js +1 -1
  100. package/dist/esm/api/routes/manager/list.d.ts +2 -2
  101. package/dist/esm/api/routes/manager/list.js +13 -13
  102. package/dist/esm/api/routes/manager/literals/list.d.ts +2 -2
  103. package/dist/esm/api/routes/manager/literals/list.js +5 -5
  104. package/dist/esm/api/routes/manager/literals/upsert.d.ts +2 -2
  105. package/dist/esm/api/routes/manager/literals/upsert.js +6 -6
  106. package/dist/esm/api/routes/manager/localeVariants.d.ts +18 -18
  107. package/dist/esm/api/routes/manager/localeVariants.js +15 -15
  108. package/dist/esm/api/routes/manager/media/createFolder.d.ts +2 -2
  109. package/dist/esm/api/routes/manager/media/createFolder.js +7 -7
  110. package/dist/esm/api/routes/manager/media/deleteFolder.d.ts +2 -2
  111. package/dist/esm/api/routes/manager/media/deleteFolder.js +7 -7
  112. package/dist/esm/api/routes/manager/media/deleteMediaStorage.js +2 -2
  113. package/dist/esm/api/routes/manager/media/finalizeUpload.d.ts +2 -2
  114. package/dist/esm/api/routes/manager/media/finalizeUpload.js +11 -11
  115. package/dist/esm/api/routes/manager/media/getMediaUrl.d.ts +2 -2
  116. package/dist/esm/api/routes/manager/media/getMediaUrl.js +6 -6
  117. package/dist/esm/api/routes/manager/media/listFolders.d.ts +2 -2
  118. package/dist/esm/api/routes/manager/media/listFolders.js +4 -4
  119. package/dist/esm/api/routes/manager/media/prepareUpload.d.ts +3 -3
  120. package/dist/esm/api/routes/manager/media/prepareUpload.js +5 -5
  121. package/dist/esm/api/routes/manager/media/resolveMediaRecordUrls.js +1 -1
  122. package/dist/esm/api/routes/manager/media/uploadBinary.d.ts +1 -1
  123. package/dist/esm/api/routes/manager/media/uploadBinary.js +7 -7
  124. package/dist/esm/api/routes/manager/migrations/list.d.ts +2 -2
  125. package/dist/esm/api/routes/manager/migrations/list.js +2 -2
  126. package/dist/esm/api/routes/manager/permissions.d.ts +1 -1
  127. package/dist/esm/api/routes/manager/permissions.js +2 -2
  128. package/dist/esm/api/routes/manager/preview/create.d.ts +2 -2
  129. package/dist/esm/api/routes/manager/preview/create.js +14 -14
  130. package/dist/esm/api/routes/manager/regenerateRoutes.d.ts +1 -1
  131. package/dist/esm/api/routes/manager/regenerateRoutes.js +2 -2
  132. package/dist/esm/api/routes/manager/setDefaultLanguage.d.ts +2 -2
  133. package/dist/esm/api/routes/manager/setDefaultLanguage.js +5 -5
  134. package/dist/esm/api/routes/manager/translateDocument.d.ts +2 -2
  135. package/dist/esm/api/routes/manager/translateDocument.js +9 -9
  136. package/dist/esm/api/routes/manager/trash.d.ts +2 -2
  137. package/dist/esm/api/routes/manager/trash.js +7 -7
  138. package/dist/esm/api/routes/manager/update.d.ts +5 -5
  139. package/dist/esm/api/routes/manager/update.js +8 -8
  140. package/dist/esm/api/routes/manager/users.d.ts +2 -2
  141. package/dist/esm/api/routes/manager/users.js +2 -2
  142. package/dist/esm/api/routes/manager/versions/get.d.ts +2 -2
  143. package/dist/esm/api/routes/manager/versions/get.js +2 -2
  144. package/dist/esm/api/routes/manager/versions/list.d.ts +2 -2
  145. package/dist/esm/api/routes/manager/versions/list.js +2 -2
  146. package/dist/esm/api/routes/manager/versions/restore.d.ts +2 -2
  147. package/dist/esm/api/routes/manager/versions/restore.js +4 -4
  148. package/dist/esm/api/routes/web/page.d.ts +4 -4
  149. package/dist/esm/api/routes/web/page.js +16 -16
  150. package/dist/esm/api/routes/web/previewPage.d.ts +8 -8
  151. package/dist/esm/api/routes/web/previewPage.js +8 -8
  152. package/dist/esm/api/routes/web/robots.d.ts +1 -1
  153. package/dist/esm/api/routes/web/robots.js +2 -2
  154. package/dist/esm/api/routes/web/seo.d.ts +1 -1
  155. package/dist/esm/api/routes/web/sitemap.d.ts +1 -1
  156. package/dist/esm/api/routes/web/sitemap.js +3 -3
  157. package/dist/esm/api/sessionCookie.d.ts +1 -1
  158. package/dist/esm/api/utils/authRateLimit.d.ts +1 -1
  159. package/dist/esm/api/utils/authRateLimit.js +1 -1
  160. package/dist/esm/api/utils/checkFailureCase.d.ts +1 -1
  161. package/dist/esm/api/utils/checkFailureCase.js +1 -1
  162. package/dist/esm/api/utils/checkOwnership.d.ts +2 -2
  163. package/dist/esm/api/utils/checkOwnership.js +5 -5
  164. package/dist/esm/api/utils/checkPermissions.d.ts +2 -2
  165. package/dist/esm/api/utils/checkPermissions.js +3 -3
  166. package/dist/esm/api/utils/dynamicData.d.ts +4 -4
  167. package/dist/esm/api/utils/dynamicData.js +9 -9
  168. package/dist/esm/api/utils/getLanguages.d.ts +2 -2
  169. package/dist/esm/api/utils/getLanguages.js +2 -2
  170. package/dist/esm/api/utils/getLink.d.ts +2 -2
  171. package/dist/esm/api/utils/getLink.js +5 -5
  172. package/dist/esm/api/utils/getUser.d.ts +7 -7
  173. package/dist/esm/api/utils/getUser.js +4 -4
  174. package/dist/esm/api/utils/index.d.ts +24 -24
  175. package/dist/esm/api/utils/index.js +24 -24
  176. package/dist/esm/api/utils/localeVariants.d.ts +1 -1
  177. package/dist/esm/api/utils/localeVariants.js +5 -5
  178. package/dist/esm/api/utils/mediaUploadToken.d.ts +1 -1
  179. package/dist/esm/api/utils/parseId.d.ts +1 -1
  180. package/dist/esm/api/utils/parseId.js +1 -1
  181. package/dist/esm/api/utils/passwords.js +1 -1
  182. package/dist/esm/api/utils/populates/populateLinks.d.ts +2 -2
  183. package/dist/esm/api/utils/populates/populateLinks.js +4 -4
  184. package/dist/esm/api/utils/populates/populateRelations.d.ts +2 -2
  185. package/dist/esm/api/utils/populates/populateRelations.js +6 -6
  186. package/dist/esm/api/utils/redirects/resolveRedirect.js +2 -2
  187. package/dist/esm/api/utils/requireContentType.d.ts +1 -1
  188. package/dist/esm/api/utils/requireContentType.js +2 -2
  189. package/dist/esm/api/utils/routes/revalidatePath.js +5 -5
  190. package/dist/esm/api/utils/routes/routeDefinitions.d.ts +1 -1
  191. package/dist/esm/api/utils/routes/routeMapHelpers.d.ts +6 -6
  192. package/dist/esm/api/utils/routes/routeMapHelpers.js +8 -8
  193. package/dist/esm/api/utils/routes/syncConfiguredRoutes.d.ts +2 -2
  194. package/dist/esm/api/utils/routes/syncConfiguredRoutes.js +5 -5
  195. package/dist/esm/api/utils/routes/updateRoutesMap.d.ts +2 -2
  196. package/dist/esm/api/utils/routes/updateRoutesMap.js +5 -5
  197. package/dist/esm/api/utils/safeManagerQuery.d.ts +2 -2
  198. package/dist/esm/api/utils/safeManagerQuery.js +1 -1
  199. package/dist/esm/api/utils/sanitizeManagerOutput.d.ts +1 -1
  200. package/dist/esm/api/utils/sanitizeManagerOutput.js +1 -1
  201. package/dist/esm/api/utils/transformObjectIdsToStrings.js +1 -1
  202. package/dist/esm/api/utils/transformStringToObjectIds.js +1 -1
  203. package/dist/esm/api/utils/translate.d.ts +1 -1
  204. package/dist/esm/api/utils/translate.js +3 -3
  205. package/dist/esm/api/utils/validateModule.d.ts +1 -1
  206. package/dist/esm/api/utils/validateModule.js +2 -2
  207. package/dist/esm/bootstrapState.d.ts +9 -9
  208. package/dist/esm/client.d.ts +50 -49
  209. package/dist/esm/client.d.ts.map +1 -1
  210. package/dist/esm/client.js +30 -29
  211. package/dist/esm/client.js.map +1 -1
  212. package/dist/esm/contracts.d.ts +43 -43
  213. package/dist/esm/contracts.js +43 -43
  214. package/dist/esm/index.d.ts +41 -41
  215. package/dist/esm/index.d.ts.map +1 -1
  216. package/dist/esm/index.js +44 -40
  217. package/dist/esm/index.js.map +1 -1
  218. package/dist/esm/internal-content-types/ApiOperation.d.ts +114 -114
  219. package/dist/esm/internal-content-types/ApiOperation.js +2 -2
  220. package/dist/esm/internal-content-types/Backup.d.ts +57 -57
  221. package/dist/esm/internal-content-types/Backup.js +2 -2
  222. package/dist/esm/internal-content-types/BackupDocument.d.ts +114 -114
  223. package/dist/esm/internal-content-types/BackupDocument.js +2 -2
  224. package/dist/esm/internal-content-types/ContentComment.d.ts +788 -788
  225. package/dist/esm/internal-content-types/ContentComment.js +3 -3
  226. package/dist/esm/internal-content-types/ContentVersion.d.ts +139 -139
  227. package/dist/esm/internal-content-types/ContentVersion.js +2 -2
  228. package/dist/esm/internal-content-types/HelloWorld.d.ts +30 -30
  229. package/dist/esm/internal-content-types/HelloWorld.js +2 -2
  230. package/dist/esm/internal-content-types/Language.d.ts +39 -39
  231. package/dist/esm/internal-content-types/Language.js +2 -2
  232. package/dist/esm/internal-content-types/LiteralTranslation.d.ts +59 -59
  233. package/dist/esm/internal-content-types/LiteralTranslation.js +2 -2
  234. package/dist/esm/internal-content-types/ManagerFavorite.d.ts +547 -547
  235. package/dist/esm/internal-content-types/ManagerFavorite.js +3 -3
  236. package/dist/esm/internal-content-types/ManagerRole.d.ts +33 -33
  237. package/dist/esm/internal-content-types/ManagerRole.js +2 -2
  238. package/dist/esm/internal-content-types/ManagerRoleHooks.d.ts +6 -0
  239. package/dist/esm/internal-content-types/ManagerRoleHooks.d.ts.map +1 -0
  240. package/dist/esm/internal-content-types/ManagerRoleHooks.js +43 -0
  241. package/dist/esm/internal-content-types/ManagerRoleHooks.js.map +1 -0
  242. package/dist/esm/internal-content-types/ManagerUser.d.ts +212 -212
  243. package/dist/esm/internal-content-types/ManagerUser.js +3 -3
  244. package/dist/esm/internal-content-types/ManagerUserHooks.d.ts +2 -2
  245. package/dist/esm/internal-content-types/ManagerUserHooks.js +3 -3
  246. package/dist/esm/internal-content-types/Media.d.ts +261 -261
  247. package/dist/esm/internal-content-types/Media.js +3 -3
  248. package/dist/esm/internal-content-types/MediaFolder.d.ts +88 -88
  249. package/dist/esm/internal-content-types/MediaFolder.js +2 -2
  250. package/dist/esm/internal-content-types/MfaChallenge.d.ts +570 -570
  251. package/dist/esm/internal-content-types/MfaChallenge.js +3 -3
  252. package/dist/esm/internal-content-types/Migration.d.ts +133 -133
  253. package/dist/esm/internal-content-types/Migration.js +2 -2
  254. package/dist/esm/internal-content-types/MigrationLock.d.ts +16 -16
  255. package/dist/esm/internal-content-types/MigrationLock.js +2 -2
  256. package/dist/esm/internal-content-types/Page.d.ts +85 -85
  257. package/dist/esm/internal-content-types/Page.js +4 -4
  258. package/dist/esm/internal-content-types/Page.js.map +1 -1
  259. package/dist/esm/internal-content-types/PreviewSnapshot.d.ts +213 -213
  260. package/dist/esm/internal-content-types/PreviewSnapshot.js +2 -2
  261. package/dist/esm/internal-content-types/Redirect.d.ts +146 -146
  262. package/dist/esm/internal-content-types/Redirect.js +2 -2
  263. package/dist/esm/internal-content-types/RobotsRule.d.ts +103 -103
  264. package/dist/esm/internal-content-types/RobotsRule.js +2 -2
  265. package/dist/esm/internal-content-types/Route.d.ts +123 -123
  266. package/dist/esm/internal-content-types/Route.js +2 -2
  267. package/dist/esm/internal-content-types/RouteLayoutModule.d.ts +164 -164
  268. package/dist/esm/internal-content-types/RouteLayoutModule.js +2 -2
  269. package/dist/esm/internal-content-types/RouteLayoutModuleOverride.d.ts +143 -143
  270. package/dist/esm/internal-content-types/RouteLayoutModuleOverride.js +2 -2
  271. package/dist/esm/internal-content-types/RouteLocaleVariant.d.ts +170 -170
  272. package/dist/esm/internal-content-types/RouteLocaleVariant.js +2 -2
  273. package/dist/esm/internal-content-types/RouteMap.d.ts +144 -144
  274. package/dist/esm/internal-content-types/RouteMap.js +2 -2
  275. package/dist/esm/internal-content-types/RouteSettings.d.ts +116 -116
  276. package/dist/esm/internal-content-types/RouteSettings.js +3 -3
  277. package/dist/esm/internal-content-types/SchemaState.d.ts +65 -65
  278. package/dist/esm/internal-content-types/SchemaState.js +2 -2
  279. package/dist/esm/internal-content-types/Seo.d.ts +430 -430
  280. package/dist/esm/internal-content-types/Seo.js +2 -2
  281. package/dist/esm/internal-content-types/SeoSettings.d.ts +518 -518
  282. package/dist/esm/internal-content-types/SeoSettings.js +3 -3
  283. package/dist/esm/internal-content-types/Session.d.ts +533 -533
  284. package/dist/esm/internal-content-types/Session.js +3 -3
  285. package/dist/esm/internal-content-types/UserMfa.d.ts +502 -502
  286. package/dist/esm/internal-content-types/UserMfa.js +3 -3
  287. package/dist/esm/internal-content-types/WebAuthnCredential.d.ts +624 -624
  288. package/dist/esm/internal-content-types/WebAuthnCredential.js +3 -3
  289. package/dist/esm/internal-content-types/WebAuthnRegChallenge.d.ts +562 -562
  290. package/dist/esm/internal-content-types/WebAuthnRegChallenge.js +3 -3
  291. package/dist/esm/internal-content-types/index.d.ts +33 -33
  292. package/dist/esm/internal-content-types/index.js +33 -33
  293. package/dist/esm/internal-content-types/syncAdminRole.d.ts +21 -0
  294. package/dist/esm/internal-content-types/syncAdminRole.d.ts.map +1 -0
  295. package/dist/esm/internal-content-types/syncAdminRole.js +12 -0
  296. package/dist/esm/internal-content-types/syncAdminRole.js.map +1 -0
  297. package/dist/esm/lib/ContentType.d.ts +7 -7
  298. package/dist/esm/lib/ContentType.js +5 -5
  299. package/dist/esm/lib/ManagerRolePolicy.d.ts +5 -0
  300. package/dist/esm/lib/ManagerRolePolicy.d.ts.map +1 -0
  301. package/dist/esm/lib/ManagerRolePolicy.js +3 -0
  302. package/dist/esm/lib/ManagerRolePolicy.js.map +1 -0
  303. package/dist/esm/lib/Permissions.d.ts +2 -2
  304. package/dist/esm/lib/Permissions.d.ts.map +1 -1
  305. package/dist/esm/lib/Permissions.js +6 -2
  306. package/dist/esm/lib/Permissions.js.map +1 -1
  307. package/dist/esm/lib/Registry.d.ts +6 -6
  308. package/dist/esm/lib/Registry.js +1 -1
  309. package/dist/esm/lib/errors/AppError.d.ts +1 -1
  310. package/dist/esm/lib/errors/AppError.js +1 -1
  311. package/dist/esm/lib/errors/index.d.ts +4 -4
  312. package/dist/esm/lib/errors/index.js +3 -3
  313. package/dist/esm/lib/errors/throwAppError.d.ts +1 -1
  314. package/dist/esm/lib/errors/throwAppError.js +3 -3
  315. package/dist/esm/lib/fields/Boolean.d.ts +1 -1
  316. package/dist/esm/lib/fields/Boolean.js +1 -1
  317. package/dist/esm/lib/fields/ContentReference.d.ts +2 -2
  318. package/dist/esm/lib/fields/ContentReference.js +2 -2
  319. package/dist/esm/lib/fields/Date.d.ts +1 -1
  320. package/dist/esm/lib/fields/Date.js +1 -1
  321. package/dist/esm/lib/fields/Field.d.ts +12 -12
  322. package/dist/esm/lib/fields/Fields.d.ts +13 -13
  323. package/dist/esm/lib/fields/Fields.js +13 -13
  324. package/dist/esm/lib/fields/File.d.ts +1 -1
  325. package/dist/esm/lib/fields/File.js +2 -2
  326. package/dist/esm/lib/fields/Iterator.d.ts +2 -2
  327. package/dist/esm/lib/fields/Iterator.js +3 -3
  328. package/dist/esm/lib/fields/Link.d.ts +1 -1
  329. package/dist/esm/lib/fields/Link.js +2 -2
  330. package/dist/esm/lib/fields/List.d.ts +1 -1
  331. package/dist/esm/lib/fields/List.js +2 -2
  332. package/dist/esm/lib/fields/Number.d.ts +1 -1
  333. package/dist/esm/lib/fields/Number.js +1 -1
  334. package/dist/esm/lib/fields/Relation.d.ts +3 -3
  335. package/dist/esm/lib/fields/Relation.js +3 -3
  336. package/dist/esm/lib/fields/Select.d.ts +1 -1
  337. package/dist/esm/lib/fields/Select.js +1 -1
  338. package/dist/esm/lib/fields/SelfRelation.d.ts +1 -1
  339. package/dist/esm/lib/fields/SelfRelation.js +2 -2
  340. package/dist/esm/lib/fields/SimpleList.d.ts +1 -1
  341. package/dist/esm/lib/fields/SimpleList.js +1 -1
  342. package/dist/esm/lib/fields/String.d.ts +1 -1
  343. package/dist/esm/lib/fields/String.js +3 -3
  344. package/dist/esm/lib/fields/index.d.ts +15 -15
  345. package/dist/esm/lib/fields/index.js +15 -15
  346. package/dist/esm/lib/hooks.d.ts +3 -3
  347. package/dist/esm/lib/routeableContent.js +1 -1
  348. package/dist/esm/lib/types/index.d.ts +2 -2
  349. package/dist/esm/lib/utils/getListField.d.ts +1 -1
  350. package/dist/esm/lib/utils/getSchemas.d.ts +1 -1
  351. package/dist/esm/lib/utils/getTranslation.d.ts +2 -2
  352. package/dist/esm/lib/utils/getTranslation.js +1 -1
  353. package/dist/esm/lib/utils/isTranslatableObject.d.ts +1 -1
  354. package/dist/esm/lib/utils/translateObject.d.ts +2 -2
  355. package/dist/esm/lib/utils/translateObject.js +3 -3
  356. package/dist/esm/literals/definitions.d.ts +1 -1
  357. package/dist/esm/literals/definitions.js +1 -1
  358. package/dist/esm/literals/index.d.ts +3 -3
  359. package/dist/esm/literals/index.js +3 -3
  360. package/dist/esm/literals/manager.d.ts +1 -1
  361. package/dist/esm/literals/manager.js +1 -1
  362. package/dist/esm/manager.d.ts +3 -3
  363. package/dist/esm/manager.js +1 -1
  364. package/dist/esm/media/imageOptimization.d.ts +1 -1
  365. package/dist/esm/media/imageOptimization.js +2 -2
  366. package/dist/esm/media/index.d.ts +4 -4
  367. package/dist/esm/media/index.js +3 -3
  368. package/dist/esm/media/mediaService.d.ts +1 -1
  369. package/dist/esm/orm/backups.js +5 -5
  370. package/dist/esm/orm/createIndexes.js +3 -3
  371. package/dist/esm/orm/database.js +3 -3
  372. package/dist/esm/orm/dbService.d.ts +6 -6
  373. package/dist/esm/orm/index.d.ts +2 -2
  374. package/dist/esm/orm/index.js +17 -17
  375. package/dist/esm/orm/index.js.map +1 -1
  376. package/dist/esm/orm/migrations.d.ts +1 -1
  377. package/dist/esm/orm/migrations.js +4 -4
  378. package/dist/esm/orm/mongodbPeer.js +1 -1
  379. package/dist/esm/orm/operations/clear.d.ts +3 -2
  380. package/dist/esm/orm/operations/clear.d.ts.map +1 -1
  381. package/dist/esm/orm/operations/clear.js +3 -4
  382. package/dist/esm/orm/operations/clear.js.map +1 -1
  383. package/dist/esm/orm/operations/create.d.ts +4 -4
  384. package/dist/esm/orm/operations/create.js +7 -7
  385. package/dist/esm/orm/operations/delete.d.ts +3 -3
  386. package/dist/esm/orm/operations/delete.js +5 -5
  387. package/dist/esm/orm/operations/find.d.ts +2 -2
  388. package/dist/esm/orm/operations/find.js +3 -3
  389. package/dist/esm/orm/operations/findDependencies.d.ts +2 -2
  390. package/dist/esm/orm/operations/findDependencies.js +4 -4
  391. package/dist/esm/orm/operations/get.d.ts +3 -3
  392. package/dist/esm/orm/operations/get.js +3 -3
  393. package/dist/esm/orm/operations/getAll.d.ts +2 -2
  394. package/dist/esm/orm/operations/getAll.js +2 -2
  395. package/dist/esm/orm/operations/list.d.ts +2 -2
  396. package/dist/esm/orm/operations/list.js +3 -3
  397. package/dist/esm/orm/operations/update.d.ts +5 -5
  398. package/dist/esm/orm/operations/update.js +8 -8
  399. package/dist/esm/orm/operations/updateMany.d.ts +4 -4
  400. package/dist/esm/orm/operations/updateMany.js +4 -4
  401. package/dist/esm/orm/operations/upsert.d.ts +3 -3
  402. package/dist/esm/orm/operations/upsert.js +4 -4
  403. package/dist/esm/orm/utils/deepDeleteNulls.js +1 -1
  404. package/dist/esm/orm/utils/parseId.d.ts +1 -1
  405. package/dist/esm/orm/utils/parseId.js +1 -1
  406. package/dist/esm/orm/utils/transformObjectIdsToStrings.js +1 -1
  407. package/dist/esm/orm/utils/transformStringToObjectIds.js +1 -1
  408. package/dist/esm/orm/versions.d.ts +1 -1
  409. package/dist/esm/orm/versions.js +7 -7
  410. package/dist/esm/plugins.d.ts +9 -9
  411. package/dist/esm/schemas/manager/comments.js +1 -1
  412. package/dist/esm/schemas/manager/literals/upsert.js +1 -1
  413. package/dist/esm/schemas/manager/localeVariants.d.ts +96 -96
  414. package/dist/esm/schemas/manager/localeVariants.js +1 -1
  415. package/dist/esm/schemas/manager/media/finalizeUpload.js +1 -1
  416. package/dist/esm/schemas/manager/media/getMediaUrl.js +1 -1
  417. package/dist/esm/schemas/manager/media/listFolders.js +1 -1
  418. package/dist/esm/schemas/web/page.d.ts +40 -40
  419. package/dist/esm/schemas/web/page.js +1 -1
  420. package/dist/esm/schemas/web/previewPage.d.ts +28 -28
  421. package/dist/esm/schemas/web/previewPage.js +1 -1
  422. package/dist/esm/translation/document.d.ts +3 -3
  423. package/dist/esm/translation/index.d.ts +4 -4
  424. package/dist/esm/translation/index.js +3 -3
  425. package/dist/esm/translation/translationService.d.ts +1 -1
  426. package/dist/esm/web/client.d.ts +1 -1
  427. package/dist/esm/web/client.js +1 -1
  428. package/dist/esm/web/index.d.ts +2 -2
  429. package/dist/esm/web/index.js +2 -2
  430. package/dist/esm/web/page.d.ts +1 -1
  431. package/dist/tsconfig.build.tsbuildinfo +1 -1
  432. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
- import type { TranslatableValue } from "../../lib/types";
2
- import type { RouteKeys } from "./routes/routeDefinitions";
1
+ import type { TranslatableValue } from "../../lib/types/index.js";
2
+ import type { RouteKeys } from "./routes/routeDefinitions.js";
3
3
  export declare const getLink: (key: RouteKeys, id: string) => Promise<TranslatableValue<string>>;
4
4
  export declare const getTranslatedLink: (key: RouteKeys, id: string, locale: string) => Promise<string>;
5
5
  //# sourceMappingURL=getLink.d.ts.map
@@ -1,8 +1,8 @@
1
- import { Route, RouteMap } from "../../internal-content-types";
2
- import { getRakunBootstrapOptions } from "../../bootstrapState";
3
- import { throwAppError } from "../../lib/errors";
4
- import { getMongoService } from "../../orm";
5
- import { getLanguages } from "./getLanguages";
1
+ import { Route, RouteMap } from "../../internal-content-types/index.js";
2
+ import { getRakunBootstrapOptions } from "../../bootstrapState.js";
3
+ import { throwAppError } from "../../lib/errors/index.js";
4
+ import { getMongoService } from "../../orm/index.js";
5
+ import { getLanguages } from "./getLanguages.js";
6
6
  export const getLink = async (key, id) => {
7
7
  const db = await getMongoService();
8
8
  const languages = await getLanguages();
@@ -1,4 +1,4 @@
1
- import { RakunRequestContext } from "../context";
1
+ import { RakunRequestContext } from "../context.js";
2
2
  export declare const getUser: (ctx: RakunRequestContext) => Promise<{
3
3
  user: string;
4
4
  email: string;
@@ -9,12 +9,12 @@ export declare const getUser: (ctx: RakunRequestContext) => Promise<{
9
9
  _type: "ManagerRole";
10
10
  _id: string;
11
11
  _schemaVersion?: number | undefined;
12
- _visibility?: import("../..").DocumentVisibility | undefined;
13
- _visibilityBeforeTrash?: Exclude<import("../..").DocumentVisibility, "trash"> | undefined;
12
+ _visibility?: import("../../index.js").DocumentVisibility | undefined;
13
+ _visibilityBeforeTrash?: Exclude<import("../../index.js").DocumentVisibility, "trash"> | undefined;
14
14
  _trashed?: boolean | undefined;
15
15
  _revision?: number | undefined;
16
16
  _localeVariantGroupId?: string | undefined;
17
- _localeVariantRole?: import("zod").infer<typeof import("../..").LocaleVariantRole> | undefined;
17
+ _localeVariantRole?: import("zod").infer<typeof import("../../index.js").LocaleVariantRole> | undefined;
18
18
  trashedAt?: Date | undefined;
19
19
  trashedBy?: string | undefined;
20
20
  createdAt?: Date | undefined;
@@ -35,12 +35,12 @@ export declare const getUser: (ctx: RakunRequestContext) => Promise<{
35
35
  tutorialsPromptedAt?: Date | undefined;
36
36
  seenTours?: (string | undefined)[] | undefined;
37
37
  _schemaVersion?: number | undefined;
38
- _visibility?: import("../..").DocumentVisibility | undefined;
39
- _visibilityBeforeTrash?: Exclude<import("../..").DocumentVisibility, "trash"> | undefined;
38
+ _visibility?: import("../../index.js").DocumentVisibility | undefined;
39
+ _visibilityBeforeTrash?: Exclude<import("../../index.js").DocumentVisibility, "trash"> | undefined;
40
40
  _trashed?: boolean | undefined;
41
41
  _revision?: number | undefined;
42
42
  _localeVariantGroupId?: string | undefined;
43
- _localeVariantRole?: import("zod").infer<typeof import("../..").LocaleVariantRole> | undefined;
43
+ _localeVariantRole?: import("zod").infer<typeof import("../../index.js").LocaleVariantRole> | undefined;
44
44
  trashedAt?: Date | undefined;
45
45
  trashedBy?: string | undefined;
46
46
  createdAt?: Date | undefined;
@@ -1,7 +1,7 @@
1
- import { getSessionCookie } from "../sessionCookie";
2
- import { ManagerUser, Session } from "../../internal-content-types";
3
- import { getMongoService } from "../../orm";
4
- import { populateRelations } from "./populates/populateRelations";
1
+ import { getSessionCookie } from "../sessionCookie.js";
2
+ import { ManagerUser, Session } from "../../internal-content-types/index.js";
3
+ import { getMongoService } from "../../orm/index.js";
4
+ import { populateRelations } from "./populates/populateRelations.js";
5
5
  export const getUser = async (ctx) => {
6
6
  const token = getSessionCookie(ctx);
7
7
  if (!token)
@@ -1,25 +1,25 @@
1
- export { checkFailureCase } from "./checkFailureCase";
2
- export { checkAnyPermissions, checkPermissions } from "./checkPermissions";
3
- export { checkOwnership } from "./checkOwnership";
4
- export { resolveContentOutput, resolveDynamicData, stripDynamicBindings, } from "./dynamicData";
5
- export { getLanguages } from "./getLanguages";
6
- export { getLink, getTranslatedLink } from "./getLink";
7
- export { getUser } from "./getUser";
8
- export { parseId } from "./parseId";
9
- export { hashPassword, isBcryptHash, verifyPassword, verifyStoredPassword, } from "./passwords";
10
- export { parsePreviewData, serializePreviewData } from "./previewData";
11
- export { hashPreviewToken } from "./previewToken";
12
- export { requireContentType } from "./requireContentType";
13
- export { transformObjectIdsToStrings } from "./transformObjectIdsToStrings";
14
- export { transformStringToObjectIds } from "./transformStringToObjectIds";
15
- export { translate } from "./translate";
16
- export { validateModule } from "./validateModule";
17
- export { populateLinks } from "./populates/populateLinks";
18
- export { populateRelations } from "./populates/populateRelations";
19
- export { resolveRedirect } from "./redirects/resolveRedirect";
20
- export { checkRevalidatePath, revalidatePath } from "./routes/revalidatePath";
21
- export * from "./routes/routeDefinitions";
22
- export { buildRoutePath, generateRouteMapItems, getParentPath, getRouteFields, getRouteMapLastModified, isHomePageRouteItem, isVisibleForRouteMap, loadRouteData, revalidateRoutePaths, updateRouteMapEntries, type RouteMapItemInput, type UnknownItem, } from "./routes/routeMapHelpers";
23
- export { syncConfiguredRoutes } from "./routes/syncConfiguredRoutes";
24
- export { regenerateAllRoutesMap, updateLanguageRoutesMap, updateRouteRouteMap, updateSingleRouteMap, } from "./routes/updateRoutesMap";
1
+ export { checkFailureCase } from "./checkFailureCase.js";
2
+ export { checkAnyPermissions, checkPermissions } from "./checkPermissions.js";
3
+ export { checkOwnership } from "./checkOwnership.js";
4
+ export { resolveContentOutput, resolveDynamicData, stripDynamicBindings, } from "./dynamicData.js";
5
+ export { getLanguages } from "./getLanguages.js";
6
+ export { getLink, getTranslatedLink } from "./getLink.js";
7
+ export { getUser } from "./getUser.js";
8
+ export { parseId } from "./parseId.js";
9
+ export { hashPassword, isBcryptHash, verifyPassword, verifyStoredPassword, } from "./passwords.js";
10
+ export { parsePreviewData, serializePreviewData } from "./previewData.js";
11
+ export { hashPreviewToken } from "./previewToken.js";
12
+ export { requireContentType } from "./requireContentType.js";
13
+ export { transformObjectIdsToStrings } from "./transformObjectIdsToStrings.js";
14
+ export { transformStringToObjectIds } from "./transformStringToObjectIds.js";
15
+ export { translate } from "./translate.js";
16
+ export { validateModule } from "./validateModule.js";
17
+ export { populateLinks } from "./populates/populateLinks.js";
18
+ export { populateRelations } from "./populates/populateRelations.js";
19
+ export { resolveRedirect } from "./redirects/resolveRedirect.js";
20
+ export { checkRevalidatePath, revalidatePath } from "./routes/revalidatePath.js";
21
+ export * from "./routes/routeDefinitions.js";
22
+ export { buildRoutePath, generateRouteMapItems, getParentPath, getRouteFields, getRouteMapLastModified, isHomePageRouteItem, isVisibleForRouteMap, loadRouteData, revalidateRoutePaths, updateRouteMapEntries, type RouteMapItemInput, type UnknownItem, } from "./routes/routeMapHelpers.js";
23
+ export { syncConfiguredRoutes } from "./routes/syncConfiguredRoutes.js";
24
+ export { regenerateAllRoutesMap, updateLanguageRoutesMap, updateRouteRouteMap, updateSingleRouteMap, } from "./routes/updateRoutesMap.js";
25
25
  //# sourceMappingURL=index.d.ts.map
@@ -1,25 +1,25 @@
1
- export { checkFailureCase } from "./checkFailureCase";
2
- export { checkAnyPermissions, checkPermissions } from "./checkPermissions";
3
- export { checkOwnership } from "./checkOwnership";
4
- export { resolveContentOutput, resolveDynamicData, stripDynamicBindings, } from "./dynamicData";
5
- export { getLanguages } from "./getLanguages";
6
- export { getLink, getTranslatedLink } from "./getLink";
7
- export { getUser } from "./getUser";
8
- export { parseId } from "./parseId";
9
- export { hashPassword, isBcryptHash, verifyPassword, verifyStoredPassword, } from "./passwords";
10
- export { parsePreviewData, serializePreviewData } from "./previewData";
11
- export { hashPreviewToken } from "./previewToken";
12
- export { requireContentType } from "./requireContentType";
13
- export { transformObjectIdsToStrings } from "./transformObjectIdsToStrings";
14
- export { transformStringToObjectIds } from "./transformStringToObjectIds";
15
- export { translate } from "./translate";
16
- export { validateModule } from "./validateModule";
17
- export { populateLinks } from "./populates/populateLinks";
18
- export { populateRelations } from "./populates/populateRelations";
19
- export { resolveRedirect } from "./redirects/resolveRedirect";
20
- export { checkRevalidatePath, revalidatePath } from "./routes/revalidatePath";
21
- export * from "./routes/routeDefinitions";
22
- export { buildRoutePath, generateRouteMapItems, getParentPath, getRouteFields, getRouteMapLastModified, isHomePageRouteItem, isVisibleForRouteMap, loadRouteData, revalidateRoutePaths, updateRouteMapEntries, } from "./routes/routeMapHelpers";
23
- export { syncConfiguredRoutes } from "./routes/syncConfiguredRoutes";
24
- export { regenerateAllRoutesMap, updateLanguageRoutesMap, updateRouteRouteMap, updateSingleRouteMap, } from "./routes/updateRoutesMap";
1
+ export { checkFailureCase } from "./checkFailureCase.js";
2
+ export { checkAnyPermissions, checkPermissions } from "./checkPermissions.js";
3
+ export { checkOwnership } from "./checkOwnership.js";
4
+ export { resolveContentOutput, resolveDynamicData, stripDynamicBindings, } from "./dynamicData.js";
5
+ export { getLanguages } from "./getLanguages.js";
6
+ export { getLink, getTranslatedLink } from "./getLink.js";
7
+ export { getUser } from "./getUser.js";
8
+ export { parseId } from "./parseId.js";
9
+ export { hashPassword, isBcryptHash, verifyPassword, verifyStoredPassword, } from "./passwords.js";
10
+ export { parsePreviewData, serializePreviewData } from "./previewData.js";
11
+ export { hashPreviewToken } from "./previewToken.js";
12
+ export { requireContentType } from "./requireContentType.js";
13
+ export { transformObjectIdsToStrings } from "./transformObjectIdsToStrings.js";
14
+ export { transformStringToObjectIds } from "./transformStringToObjectIds.js";
15
+ export { translate } from "./translate.js";
16
+ export { validateModule } from "./validateModule.js";
17
+ export { populateLinks } from "./populates/populateLinks.js";
18
+ export { populateRelations } from "./populates/populateRelations.js";
19
+ export { resolveRedirect } from "./redirects/resolveRedirect.js";
20
+ export { checkRevalidatePath, revalidatePath } from "./routes/revalidatePath.js";
21
+ export * from "./routes/routeDefinitions.js";
22
+ export { buildRoutePath, generateRouteMapItems, getParentPath, getRouteFields, getRouteMapLastModified, isHomePageRouteItem, isVisibleForRouteMap, loadRouteData, revalidateRoutePaths, updateRouteMapEntries, } from "./routes/routeMapHelpers.js";
23
+ export { syncConfiguredRoutes } from "./routes/syncConfiguredRoutes.js";
24
+ export { regenerateAllRoutesMap, updateLanguageRoutesMap, updateRouteRouteMap, updateSingleRouteMap, } from "./routes/updateRoutesMap.js";
25
25
  //# sourceMappingURL=index.js.map
@@ -1,4 +1,4 @@
1
- import type ContentType from "../../lib/ContentType";
1
+ import type ContentType from "../../lib/ContentType.js";
2
2
  export declare const prepareLocaleVariantRemoval: ({ contentType, id, }: {
3
3
  contentType: ContentType;
4
4
  id: string;
@@ -1,8 +1,8 @@
1
- import { RouteLocaleVariant } from "../../internal-content-types";
2
- import { getRakunBootstrapOptions } from "../../bootstrapState";
3
- import { throwAppError } from "../../lib/errors";
4
- import { getLocaleVariantGroupId, getLocaleVariantRole, LOCALE_VARIANT_GROUP_FIELD, } from "../../lib/localeVariants";
5
- import { getMongoService } from "../../orm";
1
+ import { RouteLocaleVariant } from "../../internal-content-types/index.js";
2
+ import { getRakunBootstrapOptions } from "../../bootstrapState.js";
3
+ import { throwAppError } from "../../lib/errors/index.js";
4
+ import { getLocaleVariantGroupId, getLocaleVariantRole, LOCALE_VARIANT_GROUP_FIELD, } from "../../lib/localeVariants.js";
5
+ import { getMongoService } from "../../orm/index.js";
6
6
  export const prepareLocaleVariantRemoval = async ({ contentType, id, }) => {
7
7
  const db = await getMongoService();
8
8
  const hasPageRoute = getRakunBootstrapOptions()?.routes?.some((route) => route.contentType === contentType.name && route.hasPage) ?? false;
@@ -1,4 +1,4 @@
1
- import type { MediaAccess } from "../../media";
1
+ import type { MediaAccess } from "../../media/index.js";
2
2
  export type MediaUploadTokenPayload = {
3
3
  key: string;
4
4
  access: MediaAccess;
@@ -1,4 +1,4 @@
1
1
  import type { ObjectId } from "mongodb";
2
- import { Id } from "../../lib/utils/id";
2
+ import { Id } from "../../lib/utils/id.js";
3
3
  export declare function parseId(id: Id): ObjectId;
4
4
  //# sourceMappingURL=parseId.d.ts.map
@@ -1,4 +1,4 @@
1
- import { getMongoDB } from "../../orm/mongodbPeer";
1
+ import { getMongoDB } from "../../orm/mongodbPeer.js";
2
2
  export function parseId(id) {
3
3
  const { ObjectId } = getMongoDB();
4
4
  return new ObjectId(id);
@@ -1,4 +1,4 @@
1
- import { requirePeerDependency } from "../../lib/utils/peerDependencies";
1
+ import { requirePeerDependency } from "../../lib/utils/peerDependencies.js";
2
2
  const getBcrypt = () => requirePeerDependency("bcrypt", "npm install bcrypt", "Rakun uses bcrypt to verify and hash manager passwords.");
3
3
  export const verifyPassword = (password, hash) => {
4
4
  if (!isBcryptHash(hash))
@@ -1,4 +1,4 @@
1
- import ContentType from "../../../lib/ContentType";
2
- import { DBOutput, DataFront } from "../../../lib/types";
1
+ import ContentType from "../../../lib/ContentType.js";
2
+ import { DBOutput, DataFront } from "../../../lib/types/index.js";
3
3
  export declare const populateLinks: <T extends ContentType>(data: DBOutput<T>) => Promise<DataFront<T>>;
4
4
  //# sourceMappingURL=populateLinks.d.ts.map
@@ -1,7 +1,7 @@
1
- import { RouteMap } from "../../../internal-content-types";
2
- import { hasKeys } from "../../../lib/utils/hasKeys";
3
- import { getMongoService } from "../../../orm";
4
- import { getLanguages } from "../getLanguages";
1
+ import { RouteMap } from "../../../internal-content-types/index.js";
2
+ import { hasKeys } from "../../../lib/utils/hasKeys.js";
3
+ import { getMongoService } from "../../../orm/index.js";
4
+ import { getLanguages } from "../getLanguages.js";
5
5
  export const populateLinks = async (data) => {
6
6
  const db = await getMongoService();
7
7
  const languages = await getLanguages();
@@ -1,5 +1,5 @@
1
- import ContentType from "../../../lib/ContentType";
2
- import { DBOutput, DataPopulated } from "../../../lib/types";
1
+ import ContentType from "../../../lib/ContentType.js";
2
+ import { DBOutput, DataPopulated } from "../../../lib/types/index.js";
3
3
  type PopulateRelationsOptions = {
4
4
  exposePrivateMedia?: boolean;
5
5
  };
@@ -1,9 +1,9 @@
1
- import { Media } from "../../../internal-content-types";
2
- import { getContentTypeByName } from "../../../lib/Registry";
3
- import { hasKeys } from "../../../lib/utils/hasKeys";
4
- import { getMediaService } from "../../../media";
5
- import { getMongoService } from "../../../orm";
6
- import { getMongoDB } from "../../../orm/mongodbPeer";
1
+ import { Media } from "../../../internal-content-types/index.js";
2
+ import { getContentTypeByName } from "../../../lib/Registry.js";
3
+ import { hasKeys } from "../../../lib/utils/hasKeys.js";
4
+ import { getMediaService } from "../../../media/index.js";
5
+ import { getMongoService } from "../../../orm/index.js";
6
+ import { getMongoDB } from "../../../orm/mongodbPeer.js";
7
7
  const toMediaSizeRecords = (value) => {
8
8
  if (!Array.isArray(value))
9
9
  return [];
@@ -1,5 +1,5 @@
1
- import { Redirect } from "../../../internal-content-types";
2
- import { getMongoService } from "../../../orm";
1
+ import { Redirect } from "../../../internal-content-types/index.js";
2
+ import { getMongoService } from "../../../orm/index.js";
3
3
  const DEFAULT_STATUS = 302;
4
4
  const TOKEN_REGEX = /\{([a-zA-Z0-9_]+)\}/g;
5
5
  const MAX_HEADER_REGEX_LENGTH = 120;
@@ -1,3 +1,3 @@
1
- import type ContentType from "../../lib/ContentType";
1
+ import type ContentType from "../../lib/ContentType.js";
2
2
  export declare const requireContentType: (contentTypeName: string) => ContentType;
3
3
  //# sourceMappingURL=requireContentType.d.ts.map
@@ -1,5 +1,5 @@
1
- import { throwAppError } from "../../lib/errors";
2
- import { getContentTypeByName } from "../../lib/Registry";
1
+ import { throwAppError } from "../../lib/errors/index.js";
2
+ import { getContentTypeByName } from "../../lib/Registry.js";
3
3
  export const requireContentType = (contentTypeName) => {
4
4
  const contentType = getContentTypeByName(contentTypeName);
5
5
  if (!contentType) {
@@ -1,8 +1,8 @@
1
- import { Route, Language, RouteMap } from "../../../internal-content-types";
2
- import { getRakunBootstrapOptions } from "../../../bootstrapState";
3
- import { Logger } from "../../../lib/Logger";
4
- import { getMongoService } from "../../../orm";
5
- import { regenerateAllRoutesMap, updateLanguageRoutesMap, updateRouteRouteMap, updateSingleRouteMap, } from "./updateRoutesMap";
1
+ import { Route, Language, RouteMap } from "../../../internal-content-types/index.js";
2
+ import { getRakunBootstrapOptions } from "../../../bootstrapState.js";
3
+ import { Logger } from "../../../lib/Logger.js";
4
+ import { getMongoService } from "../../../orm/index.js";
5
+ import { regenerateAllRoutesMap, updateLanguageRoutesMap, updateRouteRouteMap, updateSingleRouteMap, } from "./updateRoutesMap.js";
6
6
  const normalizePath = (value) => {
7
7
  const trimmed = value.trim();
8
8
  if (!trimmed)
@@ -1,5 +1,5 @@
1
1
  import z from "zod";
2
- import { TranslatableValue } from "../../../lib/types";
2
+ import { TranslatableValue } from "../../../lib/types/index.js";
3
3
  export type RouteDefinition = {
4
4
  key: string;
5
5
  contentType: string;
@@ -1,6 +1,6 @@
1
- import { RouteMap, Route, Language, RouteSettings, RouteLocaleVariant } from "../../../internal-content-types";
2
- import { DataInput, DBOutput } from "../../../lib/types";
3
- import { type DBService } from "../../../orm/dbService";
1
+ import { RouteMap, Route, Language, RouteSettings, RouteLocaleVariant } from "../../../internal-content-types/index.js";
2
+ import { DataInput, DBOutput } from "../../../lib/types/index.js";
3
+ import { type DBService } from "../../../orm/dbService.js";
4
4
  export type UnknownItem = {
5
5
  [x: string]: unknown;
6
6
  _id: string;
@@ -45,12 +45,12 @@ export declare const generateRouteMapItems: (items: readonly UnknownItem[], rout
45
45
  variantGroupId?: string | null | undefined;
46
46
  lastModified?: Date | null | undefined;
47
47
  _schemaVersion?: number | undefined;
48
- _visibility?: import("../../..").DocumentVisibility | undefined;
49
- _visibilityBeforeTrash?: Exclude<import("../../..").DocumentVisibility, "trash"> | undefined;
48
+ _visibility?: import("../../../index.js").DocumentVisibility | undefined;
49
+ _visibilityBeforeTrash?: Exclude<import("../../../index.js").DocumentVisibility, "trash"> | undefined;
50
50
  _trashed?: boolean | undefined;
51
51
  _revision?: number | undefined;
52
52
  _localeVariantGroupId?: string | undefined;
53
- _localeVariantRole?: import("zod").infer<typeof import("../../..").LocaleVariantRole> | undefined;
53
+ _localeVariantRole?: import("zod").infer<typeof import("../../../index.js").LocaleVariantRole> | undefined;
54
54
  createdBy?: string | undefined;
55
55
  updatedBy?: string | undefined;
56
56
  }[]>;
@@ -1,11 +1,11 @@
1
- import { revalidatePath } from "./revalidatePath";
2
- import { getLanguages } from "../getLanguages";
3
- import { syncConfiguredRoutes } from "./syncConfiguredRoutes";
4
- import { RouteMap, RouteSettings, } from "../../../internal-content-types";
5
- import { getContentTypeByName } from "../../../lib/Registry";
6
- import { getLocaleVariantGroupId, getLocaleVariantRole, LOCALE_VARIANT_GROUP_FIELD, LOCALE_VARIANT_ROLE_FIELD, } from "../../../lib/localeVariants";
7
- import { getMongoService } from "../../../orm";
8
- import { DbErrorConflict } from "../../../orm/dbService";
1
+ import { revalidatePath } from "./revalidatePath.js";
2
+ import { getLanguages } from "../getLanguages.js";
3
+ import { syncConfiguredRoutes } from "./syncConfiguredRoutes.js";
4
+ import { RouteMap, RouteSettings, } from "../../../internal-content-types/index.js";
5
+ import { getContentTypeByName } from "../../../lib/Registry.js";
6
+ import { getLocaleVariantGroupId, getLocaleVariantRole, LOCALE_VARIANT_GROUP_FIELD, LOCALE_VARIANT_ROLE_FIELD, } from "../../../lib/localeVariants.js";
7
+ import { getMongoService } from "../../../orm/index.js";
8
+ import { DbErrorConflict } from "../../../orm/dbService.js";
9
9
  export const isVisibleForRouteMap = (item) => item._trashed !== true &&
10
10
  item._visibility !== "draft" &&
11
11
  item._visibility !== "trash";
@@ -1,4 +1,4 @@
1
- import { Route } from "../../../internal-content-types";
2
- import { DBOutput } from "../../../lib/types";
1
+ import { Route } from "../../../internal-content-types/index.js";
2
+ import { DBOutput } from "../../../lib/types/index.js";
3
3
  export declare function syncConfiguredRoutes(): Promise<DBOutput<typeof Route>[]>;
4
4
  //# sourceMappingURL=syncConfiguredRoutes.d.ts.map
@@ -1,8 +1,8 @@
1
- import { Route, RouteLayoutModule, RouteLayoutModuleOverride, RouteMap, } from "../../../internal-content-types";
2
- import { getRakunBootstrapOptions } from "../../../bootstrapState";
3
- import { getMongoService } from "../../../orm";
4
- import { getLanguages } from "../getLanguages";
5
- import { createTranslatableBasePath, getRouteLayoutContentOrder, getRouteLayoutModules, routeSignature, } from "./routeDefinitions";
1
+ import { Route, RouteLayoutModule, RouteLayoutModuleOverride, RouteMap, } from "../../../internal-content-types/index.js";
2
+ import { getRakunBootstrapOptions } from "../../../bootstrapState.js";
3
+ import { getMongoService } from "../../../orm/index.js";
4
+ import { getLanguages } from "../getLanguages.js";
5
+ import { createTranslatableBasePath, getRouteLayoutContentOrder, getRouteLayoutModules, routeSignature, } from "./routeDefinitions.js";
6
6
  const buildRoutePayload = ({ definition, existingRoute, localeCodes, }) => ({
7
7
  _type: "Route",
8
8
  basePath: existingRoute?.basePath ??
@@ -1,5 +1,5 @@
1
- import { Language, Route } from "../../../internal-content-types";
2
- import { DBOutput } from "../../../lib/types";
1
+ import { Language, Route } from "../../../internal-content-types/index.js";
2
+ import { DBOutput } from "../../../lib/types/index.js";
3
3
  export declare const regenerateAllRoutesMap: () => Promise<void>;
4
4
  export declare function updateSingleRouteMap({ contentType, contentTypeId, }: {
5
5
  contentType: string;
@@ -1,8 +1,8 @@
1
- import { RouteMap, Route, RouteLocaleVariant, } from "../../../internal-content-types";
2
- import { Logger } from "../../../lib/Logger";
3
- import { getContentTypeByName } from "../../../lib/Registry";
4
- import { getLocaleVariantGroupId, LOCALE_VARIANT_GROUP_FIELD, } from "../../../lib/localeVariants";
5
- import { deleteMissingRouteMapEntries, generateRouteMapItems, getRouteFields, loadRouteData, revalidateRoutePaths, updateRouteMapEntries, } from "./routeMapHelpers";
1
+ import { RouteMap, Route, RouteLocaleVariant, } from "../../../internal-content-types/index.js";
2
+ import { Logger } from "../../../lib/Logger.js";
3
+ import { getContentTypeByName } from "../../../lib/Registry.js";
4
+ import { getLocaleVariantGroupId, LOCALE_VARIANT_GROUP_FIELD, } from "../../../lib/localeVariants.js";
5
+ import { deleteMissingRouteMapEntries, generateRouteMapItems, getRouteFields, loadRouteData, revalidateRoutePaths, updateRouteMapEntries, } from "./routeMapHelpers.js";
6
6
  const activeContentFilter = {
7
7
  _trashed: { $ne: true },
8
8
  };
@@ -1,4 +1,4 @@
1
- import type ContentType from "../../lib/ContentType";
2
- import type { Query } from "../../lib/types";
1
+ import type ContentType from "../../lib/ContentType.js";
2
+ import type { Query } from "../../lib/types/index.js";
3
3
  export declare const parseSafeManagerQuery: (contentType: ContentType, query: Query) => Query;
4
4
  //# sourceMappingURL=safeManagerQuery.d.ts.map
@@ -1,4 +1,4 @@
1
- import { throwAppError } from "../../lib/errors";
1
+ import { throwAppError } from "../../lib/errors/index.js";
2
2
  const MAX_LIMIT = 100;
3
3
  const MAX_ALL_LIMIT = 1000;
4
4
  const MAX_CONTAINS_LENGTH = 120;
@@ -1,3 +1,3 @@
1
- import type ContentType from "../../lib/ContentType";
1
+ import type ContentType from "../../lib/ContentType.js";
2
2
  export declare const sanitizeManagerOutput: <T>(value: T, contentType?: ContentType) => T;
3
3
  //# sourceMappingURL=sanitizeManagerOutput.d.ts.map
@@ -1,4 +1,4 @@
1
- import { getContentTypeByName } from "../../lib/Registry";
1
+ import { getContentTypeByName } from "../../lib/Registry.js";
2
2
  const sensitiveKeyPattern = /(password|token|secret|totp|mfa|challenge|credential|recoveryCode)/i;
3
3
  const isRecord = (value) => !!value && typeof value === "object" && !Array.isArray(value);
4
4
  const isWriteOnlyField = (field) => {
@@ -1,4 +1,4 @@
1
- import { getMongoDB } from '../../orm/mongodbPeer';
1
+ import { getMongoDB } from '../../orm/mongodbPeer.js';
2
2
  /**
3
3
  * Transform MongoDB ObjectIds to strings recursively in an object
4
4
  */
@@ -1,4 +1,4 @@
1
- import { getMongoDB } from '../../orm/mongodbPeer';
1
+ import { getMongoDB } from '../../orm/mongodbPeer.js';
2
2
  /**
3
3
  * Transform string IDs to MongoDB ObjectIds recursively in an object
4
4
  */
@@ -1,3 +1,3 @@
1
- import { MaybeTranslatableValue, FlattenTranslate } from "../../lib/types";
1
+ import { MaybeTranslatableValue, FlattenTranslate } from "../../lib/types/index.js";
2
2
  export declare const translate: <T extends Record<string, MaybeTranslatableValue<unknown>>>(obj: T, lang: string) => Promise<FlattenTranslate<T>>;
3
3
  //# sourceMappingURL=translate.d.ts.map
@@ -1,6 +1,6 @@
1
- import { throwAppError } from "../../lib/errors";
2
- import { translateObject } from "../../lib/utils/translateObject";
3
- import { getLanguages } from "./getLanguages";
1
+ import { throwAppError } from "../../lib/errors/index.js";
2
+ import { translateObject } from "../../lib/utils/translateObject.js";
3
+ import { getLanguages } from "./getLanguages.js";
4
4
  export const translate = async (obj, lang) => {
5
5
  const languages = await getLanguages();
6
6
  const language = languages.find((l) => l.code === lang);
@@ -1,3 +1,3 @@
1
- import { PageModule } from "../../schemas/web/page";
1
+ import { PageModule } from "../../schemas/web/page.js";
2
2
  export declare const validateModule: (module: PageModule) => PageModule;
3
3
  //# sourceMappingURL=validateModule.d.ts.map
@@ -1,6 +1,6 @@
1
1
  import z, { ZodError } from "zod";
2
- import { Logger } from "../../lib/Logger";
3
- import { getContentTypeByName } from "../../lib/Registry";
2
+ import { Logger } from "../../lib/Logger.js";
3
+ import { getContentTypeByName } from "../../lib/Registry.js";
4
4
  export const validateModule = (module) => {
5
5
  const ct = getContentTypeByName(module._type);
6
6
  try {
@@ -1,12 +1,12 @@
1
- import type ContentType from "./lib/ContentType";
2
- import type { createLogger } from "./lib/Logger";
3
- import type { LiteralCatalogInput } from "./literals/definitions";
4
- import type { MediaServiceConfig } from "./media";
5
- import type { TranslationServiceConfig } from "./translation";
6
- import type { MongoConfig } from "./orm/database";
7
- import type { RouteDefinition } from "./api/utils/routes/routeDefinitions";
8
- import type { RakunOperationMap } from "./api/operations/types";
9
- import type { RakunPluginDefinition, RakunPluginFieldDefinition, RakunResolvedPluginContributions } from './plugins';
1
+ import type ContentType from "./lib/ContentType.js";
2
+ import type { createLogger } from "./lib/Logger.js";
3
+ import type { LiteralCatalogInput } from "./literals/definitions.js";
4
+ import type { MediaServiceConfig } from "./media/index.js";
5
+ import type { TranslationServiceConfig } from "./translation/index.js";
6
+ import type { MongoConfig } from "./orm/database.js";
7
+ import type { RouteDefinition } from "./api/utils/routes/routeDefinitions.js";
8
+ import type { RakunOperationMap } from "./api/operations/types.js";
9
+ import type { RakunPluginDefinition, RakunPluginFieldDefinition, RakunResolvedPluginContributions } from './plugins.js';
10
10
  export interface RakunBootstrapOptions {
11
11
  literals: LiteralCatalogInput;
12
12
  contentTypes: RakunContentType[];