@rakun-kit/core 1.4.5 → 1.4.6

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 (541) hide show
  1. package/README.md +9 -0
  2. package/dist/cjs/api/operations/manager-contract.js +9 -0
  3. package/dist/cjs/api/operations/manager-contract.js.map +1 -1
  4. package/dist/cjs/api/operations/manager-manifest.js +5 -0
  5. package/dist/cjs/api/operations/manager-manifest.js.map +1 -1
  6. package/dist/cjs/api/operations/manager.js +4 -0
  7. package/dist/cjs/api/operations/manager.js.map +1 -1
  8. package/dist/cjs/api/routes/manager/create.js +79 -2
  9. package/dist/cjs/api/routes/manager/create.js.map +1 -1
  10. package/dist/cjs/api/routes/manager/delete.js +2 -0
  11. package/dist/cjs/api/routes/manager/delete.js.map +1 -1
  12. package/dist/cjs/api/routes/manager/duplicate.js +2 -0
  13. package/dist/cjs/api/routes/manager/duplicate.js.map +1 -1
  14. package/dist/cjs/api/routes/manager/get.js +4 -1
  15. package/dist/cjs/api/routes/manager/get.js.map +1 -1
  16. package/dist/cjs/api/routes/manager/linkedIterator.js +69 -0
  17. package/dist/cjs/api/routes/manager/linkedIterator.js.map +1 -0
  18. package/dist/cjs/api/routes/manager/list.js +2 -0
  19. package/dist/cjs/api/routes/manager/list.js.map +1 -1
  20. package/dist/cjs/api/routes/manager/translateDocument.js +46 -2
  21. package/dist/cjs/api/routes/manager/translateDocument.js.map +1 -1
  22. package/dist/cjs/api/routes/manager/trash.js +2 -0
  23. package/dist/cjs/api/routes/manager/trash.js.map +1 -1
  24. package/dist/cjs/api/routes/manager/update.js +74 -2
  25. package/dist/cjs/api/routes/manager/update.js.map +1 -1
  26. package/dist/cjs/api/routes/web/page.js +14 -4
  27. package/dist/cjs/api/routes/web/page.js.map +1 -1
  28. package/dist/cjs/api/routes/web/previewPage.js +1 -0
  29. package/dist/cjs/api/routes/web/previewPage.js.map +1 -1
  30. package/dist/cjs/api/utils/dynamicData.js +6 -3
  31. package/dist/cjs/api/utils/dynamicData.js.map +1 -1
  32. package/dist/cjs/api/utils/index.js +2 -1
  33. package/dist/cjs/api/utils/index.js.map +1 -1
  34. package/dist/cjs/api/utils/linkedIterator.js +167 -0
  35. package/dist/cjs/api/utils/linkedIterator.js.map +1 -0
  36. package/dist/cjs/api/utils/routes/revalidatePath.js +9 -0
  37. package/dist/cjs/api/utils/routes/revalidatePath.js.map +1 -1
  38. package/dist/cjs/client.js +2 -1
  39. package/dist/cjs/client.js.map +1 -1
  40. package/dist/cjs/index.js +3 -2
  41. package/dist/cjs/index.js.map +1 -1
  42. package/dist/cjs/internal-content-types/LinkedIteratorTemplate.js +20 -0
  43. package/dist/cjs/internal-content-types/LinkedIteratorTemplate.js.map +1 -0
  44. package/dist/cjs/internal-content-types/index.js +1 -0
  45. package/dist/cjs/internal-content-types/index.js.map +1 -1
  46. package/dist/cjs/lib/ContentType.js +24 -0
  47. package/dist/cjs/lib/ContentType.js.map +1 -1
  48. package/dist/cjs/lib/Registry.js +1 -0
  49. package/dist/cjs/lib/Registry.js.map +1 -1
  50. package/dist/cjs/lib/systemFields.js +2 -1
  51. package/dist/cjs/lib/systemFields.js.map +1 -1
  52. package/dist/cjs/schemas/manager/create.js +2 -0
  53. package/dist/cjs/schemas/manager/create.js.map +1 -1
  54. package/dist/cjs/schemas/manager/linkedIterator.js +27 -0
  55. package/dist/cjs/schemas/manager/linkedIterator.js.map +1 -0
  56. package/dist/cjs/schemas/manager/update.js +2 -0
  57. package/dist/cjs/schemas/manager/update.js.map +1 -1
  58. package/dist/esm/api/context.d.ts +1 -1
  59. package/dist/esm/api/context.js +3 -3
  60. package/dist/esm/api/hooks/context.d.ts +1 -1
  61. package/dist/esm/api/hooks/runContentHooks.d.ts +4 -4
  62. package/dist/esm/api/hooks/runContentHooks.js +1 -1
  63. package/dist/esm/api/operations/catalog.d.ts +2 -2
  64. package/dist/esm/api/operations/catalog.js +1 -1
  65. package/dist/esm/api/operations/custom.d.ts +1 -1
  66. package/dist/esm/api/operations/custom.js +1 -1
  67. package/dist/esm/api/operations/index.d.ts +172 -149
  68. package/dist/esm/api/operations/index.d.ts.map +1 -1
  69. package/dist/esm/api/operations/index.js +8 -8
  70. package/dist/esm/api/operations/manager-contract.d.ts +140 -117
  71. package/dist/esm/api/operations/manager-contract.d.ts.map +1 -1
  72. package/dist/esm/api/operations/manager-contract.js +14 -5
  73. package/dist/esm/api/operations/manager-contract.js.map +1 -1
  74. package/dist/esm/api/operations/manager-manifest.d.ts +5 -0
  75. package/dist/esm/api/operations/manager-manifest.d.ts.map +1 -1
  76. package/dist/esm/api/operations/manager-manifest.js +5 -0
  77. package/dist/esm/api/operations/manager-manifest.js.map +1 -1
  78. package/dist/esm/api/operations/manager.d.ts +141 -118
  79. package/dist/esm/api/operations/manager.d.ts.map +1 -1
  80. package/dist/esm/api/operations/manager.js +60 -56
  81. package/dist/esm/api/operations/manager.js.map +1 -1
  82. package/dist/esm/api/operations/tracing.d.ts +1 -1
  83. package/dist/esm/api/operations/tracing.js +1 -1
  84. package/dist/esm/api/operations/types.d.ts +1 -1
  85. package/dist/esm/api/operations/web-contract.d.ts +24 -24
  86. package/dist/esm/api/operations/web-contract.js +3 -3
  87. package/dist/esm/api/operations/web.d.ts +25 -25
  88. package/dist/esm/api/operations/web.js +9 -9
  89. package/dist/esm/api/routes/manager/apiOperations.d.ts +3 -3
  90. package/dist/esm/api/routes/manager/apiOperations.js +5 -5
  91. package/dist/esm/api/routes/manager/auth/accountInfo.d.ts +2 -2
  92. package/dist/esm/api/routes/manager/auth/accountInfo.js +3 -3
  93. package/dist/esm/api/routes/manager/auth/deleteSession.d.ts +2 -2
  94. package/dist/esm/api/routes/manager/auth/deleteSession.js +3 -3
  95. package/dist/esm/api/routes/manager/auth/getSession.d.ts +7 -7
  96. package/dist/esm/api/routes/manager/auth/login.d.ts +2 -2
  97. package/dist/esm/api/routes/manager/auth/login.js +6 -6
  98. package/dist/esm/api/routes/manager/auth/logout.d.ts +1 -1
  99. package/dist/esm/api/routes/manager/auth/logout.js +3 -3
  100. package/dist/esm/api/routes/manager/auth/markTourSeen.d.ts +10 -8
  101. package/dist/esm/api/routes/manager/auth/markTourSeen.d.ts.map +1 -1
  102. package/dist/esm/api/routes/manager/auth/markTourSeen.js +3 -3
  103. package/dist/esm/api/routes/manager/auth/totp/confirmTotp.d.ts +2 -2
  104. package/dist/esm/api/routes/manager/auth/totp/confirmTotp.js +2 -2
  105. package/dist/esm/api/routes/manager/auth/totp/enrollTotp.d.ts +1 -1
  106. package/dist/esm/api/routes/manager/auth/totp/enrollTotp.js +3 -3
  107. package/dist/esm/api/routes/manager/auth/totp/verifyTotp.d.ts +1 -1
  108. package/dist/esm/api/routes/manager/auth/totp/verifyTotp.js +5 -5
  109. package/dist/esm/api/routes/manager/auth/updateAccount.d.ts +10 -8
  110. package/dist/esm/api/routes/manager/auth/updateAccount.d.ts.map +1 -1
  111. package/dist/esm/api/routes/manager/auth/updateAccount.js +3 -3
  112. package/dist/esm/api/routes/manager/auth/updatePassword.d.ts +2 -2
  113. package/dist/esm/api/routes/manager/auth/updatePassword.js +5 -5
  114. package/dist/esm/api/routes/manager/auth/updateTutorialPreferences.d.ts +10 -8
  115. package/dist/esm/api/routes/manager/auth/updateTutorialPreferences.d.ts.map +1 -1
  116. package/dist/esm/api/routes/manager/auth/updateTutorialPreferences.js +3 -3
  117. package/dist/esm/api/routes/manager/auth/webauthn/webauthnAuthOptions.js +4 -4
  118. package/dist/esm/api/routes/manager/auth/webauthn/webauthnAuthVerify.js +6 -6
  119. package/dist/esm/api/routes/manager/auth/webauthn/webauthnRegisterOptions.d.ts +2 -2
  120. package/dist/esm/api/routes/manager/auth/webauthn/webauthnRegisterOptions.js +3 -3
  121. package/dist/esm/api/routes/manager/auth/webauthn/webauthnRegisterVerify.d.ts +1 -1
  122. package/dist/esm/api/routes/manager/auth/webauthn/webauthnRegisterVerify.js +4 -4
  123. package/dist/esm/api/routes/manager/backups/create.d.ts +2 -2
  124. package/dist/esm/api/routes/manager/backups/create.js +2 -2
  125. package/dist/esm/api/routes/manager/backups/list.d.ts +2 -2
  126. package/dist/esm/api/routes/manager/backups/list.js +2 -2
  127. package/dist/esm/api/routes/manager/backups/restore.d.ts +2 -2
  128. package/dist/esm/api/routes/manager/backups/restore.js +4 -4
  129. package/dist/esm/api/routes/manager/comments.d.ts +2 -2
  130. package/dist/esm/api/routes/manager/comments.js +6 -6
  131. package/dist/esm/api/routes/manager/contentType.d.ts +11 -10
  132. package/dist/esm/api/routes/manager/contentType.d.ts.map +1 -1
  133. package/dist/esm/api/routes/manager/contentType.js +3 -3
  134. package/dist/esm/api/routes/manager/contentTypes.d.ts +9 -8
  135. package/dist/esm/api/routes/manager/contentTypes.d.ts.map +1 -1
  136. package/dist/esm/api/routes/manager/contentTypes.js +1 -1
  137. package/dist/esm/api/routes/manager/create.d.ts +6 -5
  138. package/dist/esm/api/routes/manager/create.d.ts.map +1 -1
  139. package/dist/esm/api/routes/manager/create.js +88 -11
  140. package/dist/esm/api/routes/manager/create.js.map +1 -1
  141. package/dist/esm/api/routes/manager/delete.d.ts +2 -2
  142. package/dist/esm/api/routes/manager/delete.d.ts.map +1 -1
  143. package/dist/esm/api/routes/manager/delete.js +11 -9
  144. package/dist/esm/api/routes/manager/delete.js.map +1 -1
  145. package/dist/esm/api/routes/manager/duplicate.d.ts +6 -5
  146. package/dist/esm/api/routes/manager/duplicate.d.ts.map +1 -1
  147. package/dist/esm/api/routes/manager/duplicate.js +7 -5
  148. package/dist/esm/api/routes/manager/duplicate.js.map +1 -1
  149. package/dist/esm/api/routes/manager/favorites.d.ts +2 -2
  150. package/dist/esm/api/routes/manager/favorites.js +5 -5
  151. package/dist/esm/api/routes/manager/get.d.ts +2 -2
  152. package/dist/esm/api/routes/manager/get.d.ts.map +1 -1
  153. package/dist/esm/api/routes/manager/get.js +13 -10
  154. package/dist/esm/api/routes/manager/get.js.map +1 -1
  155. package/dist/esm/api/routes/manager/languages.d.ts +5 -4
  156. package/dist/esm/api/routes/manager/languages.d.ts.map +1 -1
  157. package/dist/esm/api/routes/manager/languages.js +1 -1
  158. package/dist/esm/api/routes/manager/linkedIterator.d.ts +11 -0
  159. package/dist/esm/api/routes/manager/linkedIterator.d.ts.map +1 -0
  160. package/dist/esm/api/routes/manager/linkedIterator.js +62 -0
  161. package/dist/esm/api/routes/manager/linkedIterator.js.map +1 -0
  162. package/dist/esm/api/routes/manager/list.d.ts +2 -2
  163. package/dist/esm/api/routes/manager/list.d.ts.map +1 -1
  164. package/dist/esm/api/routes/manager/list.js +15 -13
  165. package/dist/esm/api/routes/manager/list.js.map +1 -1
  166. package/dist/esm/api/routes/manager/literals/list.d.ts +2 -2
  167. package/dist/esm/api/routes/manager/literals/list.js +5 -5
  168. package/dist/esm/api/routes/manager/literals/upsert.d.ts +2 -2
  169. package/dist/esm/api/routes/manager/literals/upsert.js +6 -6
  170. package/dist/esm/api/routes/manager/localeVariants.d.ts +18 -18
  171. package/dist/esm/api/routes/manager/localeVariants.js +15 -15
  172. package/dist/esm/api/routes/manager/media/createFolder.d.ts +2 -2
  173. package/dist/esm/api/routes/manager/media/createFolder.js +7 -7
  174. package/dist/esm/api/routes/manager/media/deleteFolder.d.ts +2 -2
  175. package/dist/esm/api/routes/manager/media/deleteFolder.js +7 -7
  176. package/dist/esm/api/routes/manager/media/deleteMediaStorage.js +2 -2
  177. package/dist/esm/api/routes/manager/media/finalizeUpload.d.ts +2 -2
  178. package/dist/esm/api/routes/manager/media/finalizeUpload.js +11 -11
  179. package/dist/esm/api/routes/manager/media/getMediaUrl.d.ts +2 -2
  180. package/dist/esm/api/routes/manager/media/getMediaUrl.js +6 -6
  181. package/dist/esm/api/routes/manager/media/listFolders.d.ts +2 -2
  182. package/dist/esm/api/routes/manager/media/listFolders.js +4 -4
  183. package/dist/esm/api/routes/manager/media/prepareUpload.d.ts +3 -3
  184. package/dist/esm/api/routes/manager/media/prepareUpload.js +5 -5
  185. package/dist/esm/api/routes/manager/media/resolveMediaRecordUrls.js +1 -1
  186. package/dist/esm/api/routes/manager/media/uploadBinary.d.ts +1 -1
  187. package/dist/esm/api/routes/manager/media/uploadBinary.js +7 -7
  188. package/dist/esm/api/routes/manager/migrations/list.d.ts +2 -2
  189. package/dist/esm/api/routes/manager/migrations/list.js +2 -2
  190. package/dist/esm/api/routes/manager/permissions.d.ts +1 -1
  191. package/dist/esm/api/routes/manager/permissions.js +2 -2
  192. package/dist/esm/api/routes/manager/preview/create.d.ts +2 -2
  193. package/dist/esm/api/routes/manager/preview/create.js +14 -14
  194. package/dist/esm/api/routes/manager/regenerateRoutes.d.ts +1 -1
  195. package/dist/esm/api/routes/manager/regenerateRoutes.js +2 -2
  196. package/dist/esm/api/routes/manager/setDefaultLanguage.d.ts +2 -2
  197. package/dist/esm/api/routes/manager/setDefaultLanguage.js +5 -5
  198. package/dist/esm/api/routes/manager/translateDocument.d.ts +2 -2
  199. package/dist/esm/api/routes/manager/translateDocument.d.ts.map +1 -1
  200. package/dist/esm/api/routes/manager/translateDocument.js +55 -11
  201. package/dist/esm/api/routes/manager/translateDocument.js.map +1 -1
  202. package/dist/esm/api/routes/manager/trash.d.ts +2 -2
  203. package/dist/esm/api/routes/manager/trash.d.ts.map +1 -1
  204. package/dist/esm/api/routes/manager/trash.js +9 -7
  205. package/dist/esm/api/routes/manager/trash.js.map +1 -1
  206. package/dist/esm/api/routes/manager/update.d.ts +6 -5
  207. package/dist/esm/api/routes/manager/update.d.ts.map +1 -1
  208. package/dist/esm/api/routes/manager/update.js +82 -10
  209. package/dist/esm/api/routes/manager/update.js.map +1 -1
  210. package/dist/esm/api/routes/manager/users.d.ts +2 -2
  211. package/dist/esm/api/routes/manager/users.js +2 -2
  212. package/dist/esm/api/routes/manager/versions/get.d.ts +2 -2
  213. package/dist/esm/api/routes/manager/versions/get.js +2 -2
  214. package/dist/esm/api/routes/manager/versions/list.d.ts +2 -2
  215. package/dist/esm/api/routes/manager/versions/list.js +2 -2
  216. package/dist/esm/api/routes/manager/versions/restore.d.ts +2 -2
  217. package/dist/esm/api/routes/manager/versions/restore.js +4 -4
  218. package/dist/esm/api/routes/web/page.d.ts +6 -5
  219. package/dist/esm/api/routes/web/page.d.ts.map +1 -1
  220. package/dist/esm/api/routes/web/page.js +30 -20
  221. package/dist/esm/api/routes/web/page.js.map +1 -1
  222. package/dist/esm/api/routes/web/previewPage.d.ts +8 -8
  223. package/dist/esm/api/routes/web/previewPage.d.ts.map +1 -1
  224. package/dist/esm/api/routes/web/previewPage.js +10 -9
  225. package/dist/esm/api/routes/web/previewPage.js.map +1 -1
  226. package/dist/esm/api/routes/web/robots.d.ts +1 -1
  227. package/dist/esm/api/routes/web/robots.js +2 -2
  228. package/dist/esm/api/routes/web/seo.d.ts +1 -1
  229. package/dist/esm/api/routes/web/sitemap.d.ts +1 -1
  230. package/dist/esm/api/routes/web/sitemap.js +3 -3
  231. package/dist/esm/api/sessionCookie.d.ts +1 -1
  232. package/dist/esm/api/utils/authRateLimit.d.ts +1 -1
  233. package/dist/esm/api/utils/authRateLimit.js +1 -1
  234. package/dist/esm/api/utils/checkFailureCase.d.ts +1 -1
  235. package/dist/esm/api/utils/checkFailureCase.js +1 -1
  236. package/dist/esm/api/utils/checkOwnership.d.ts +2 -2
  237. package/dist/esm/api/utils/checkOwnership.js +5 -5
  238. package/dist/esm/api/utils/checkPermissions.d.ts +2 -2
  239. package/dist/esm/api/utils/checkPermissions.js +3 -3
  240. package/dist/esm/api/utils/dynamicData.d.ts +6 -5
  241. package/dist/esm/api/utils/dynamicData.d.ts.map +1 -1
  242. package/dist/esm/api/utils/dynamicData.js +13 -11
  243. package/dist/esm/api/utils/dynamicData.js.map +1 -1
  244. package/dist/esm/api/utils/getLanguages.d.ts +2 -2
  245. package/dist/esm/api/utils/getLanguages.js +2 -2
  246. package/dist/esm/api/utils/getLink.d.ts +2 -2
  247. package/dist/esm/api/utils/getLink.js +5 -5
  248. package/dist/esm/api/utils/getUser.d.ts +9 -7
  249. package/dist/esm/api/utils/getUser.d.ts.map +1 -1
  250. package/dist/esm/api/utils/getUser.js +4 -4
  251. package/dist/esm/api/utils/index.d.ts +24 -24
  252. package/dist/esm/api/utils/index.d.ts.map +1 -1
  253. package/dist/esm/api/utils/index.js +24 -24
  254. package/dist/esm/api/utils/index.js.map +1 -1
  255. package/dist/esm/api/utils/linkedIterator.d.ts +41 -0
  256. package/dist/esm/api/utils/linkedIterator.d.ts.map +1 -0
  257. package/dist/esm/api/utils/linkedIterator.js +157 -0
  258. package/dist/esm/api/utils/linkedIterator.js.map +1 -0
  259. package/dist/esm/api/utils/localeVariants.d.ts +1 -1
  260. package/dist/esm/api/utils/localeVariants.js +5 -5
  261. package/dist/esm/api/utils/mediaUploadToken.d.ts +1 -1
  262. package/dist/esm/api/utils/parseId.d.ts +1 -1
  263. package/dist/esm/api/utils/parseId.js +1 -1
  264. package/dist/esm/api/utils/passwords.js +1 -1
  265. package/dist/esm/api/utils/populates/populateLinks.d.ts +2 -2
  266. package/dist/esm/api/utils/populates/populateLinks.js +4 -4
  267. package/dist/esm/api/utils/populates/populateRelations.d.ts +2 -2
  268. package/dist/esm/api/utils/populates/populateRelations.js +6 -6
  269. package/dist/esm/api/utils/redirects/resolveRedirect.js +2 -2
  270. package/dist/esm/api/utils/requireContentType.d.ts +1 -1
  271. package/dist/esm/api/utils/requireContentType.js +2 -2
  272. package/dist/esm/api/utils/routes/revalidatePath.d.ts +1 -0
  273. package/dist/esm/api/utils/routes/revalidatePath.d.ts.map +1 -1
  274. package/dist/esm/api/utils/routes/revalidatePath.js +13 -5
  275. package/dist/esm/api/utils/routes/revalidatePath.js.map +1 -1
  276. package/dist/esm/api/utils/routes/routeDefinitions.d.ts +1 -1
  277. package/dist/esm/api/utils/routes/routeMapHelpers.d.ts +7 -6
  278. package/dist/esm/api/utils/routes/routeMapHelpers.d.ts.map +1 -1
  279. package/dist/esm/api/utils/routes/routeMapHelpers.js +8 -8
  280. package/dist/esm/api/utils/routes/syncConfiguredRoutes.d.ts +2 -2
  281. package/dist/esm/api/utils/routes/syncConfiguredRoutes.js +5 -5
  282. package/dist/esm/api/utils/routes/updateRoutesMap.d.ts +2 -2
  283. package/dist/esm/api/utils/routes/updateRoutesMap.js +5 -5
  284. package/dist/esm/api/utils/safeManagerQuery.d.ts +2 -2
  285. package/dist/esm/api/utils/safeManagerQuery.js +1 -1
  286. package/dist/esm/api/utils/sanitizeManagerOutput.d.ts +1 -1
  287. package/dist/esm/api/utils/sanitizeManagerOutput.js +1 -1
  288. package/dist/esm/api/utils/transformObjectIdsToStrings.js +1 -1
  289. package/dist/esm/api/utils/transformStringToObjectIds.js +1 -1
  290. package/dist/esm/api/utils/translate.d.ts +1 -1
  291. package/dist/esm/api/utils/translate.js +3 -3
  292. package/dist/esm/api/utils/validateModule.d.ts +1 -1
  293. package/dist/esm/api/utils/validateModule.js +2 -2
  294. package/dist/esm/bootstrapState.d.ts +9 -9
  295. package/dist/esm/client.d.ts +51 -50
  296. package/dist/esm/client.d.ts.map +1 -1
  297. package/dist/esm/client.js +30 -30
  298. package/dist/esm/client.js.map +1 -1
  299. package/dist/esm/contracts.d.ts +43 -43
  300. package/dist/esm/contracts.js +43 -43
  301. package/dist/esm/index.d.ts +41 -41
  302. package/dist/esm/index.d.ts.map +1 -1
  303. package/dist/esm/index.js +42 -42
  304. package/dist/esm/index.js.map +1 -1
  305. package/dist/esm/internal-content-types/ApiOperation.d.ts +114 -114
  306. package/dist/esm/internal-content-types/ApiOperation.js +2 -2
  307. package/dist/esm/internal-content-types/Backup.d.ts +57 -57
  308. package/dist/esm/internal-content-types/Backup.js +2 -2
  309. package/dist/esm/internal-content-types/BackupDocument.d.ts +114 -114
  310. package/dist/esm/internal-content-types/BackupDocument.js +2 -2
  311. package/dist/esm/internal-content-types/ContentComment.d.ts +793 -788
  312. package/dist/esm/internal-content-types/ContentComment.d.ts.map +1 -1
  313. package/dist/esm/internal-content-types/ContentComment.js +3 -3
  314. package/dist/esm/internal-content-types/ContentVersion.d.ts +139 -139
  315. package/dist/esm/internal-content-types/ContentVersion.js +2 -2
  316. package/dist/esm/internal-content-types/HelloWorld.d.ts +30 -30
  317. package/dist/esm/internal-content-types/HelloWorld.js +2 -2
  318. package/dist/esm/internal-content-types/Language.d.ts +39 -39
  319. package/dist/esm/internal-content-types/Language.js +2 -2
  320. package/dist/esm/internal-content-types/LinkedIteratorTemplate.d.ts +551 -0
  321. package/dist/esm/internal-content-types/LinkedIteratorTemplate.d.ts.map +1 -0
  322. package/dist/esm/internal-content-types/LinkedIteratorTemplate.js +14 -0
  323. package/dist/esm/internal-content-types/LinkedIteratorTemplate.js.map +1 -0
  324. package/dist/esm/internal-content-types/LiteralTranslation.d.ts +59 -59
  325. package/dist/esm/internal-content-types/LiteralTranslation.js +2 -2
  326. package/dist/esm/internal-content-types/ManagerFavorite.d.ts +551 -547
  327. package/dist/esm/internal-content-types/ManagerFavorite.d.ts.map +1 -1
  328. package/dist/esm/internal-content-types/ManagerFavorite.js +3 -3
  329. package/dist/esm/internal-content-types/ManagerRole.d.ts +33 -33
  330. package/dist/esm/internal-content-types/ManagerRole.js +2 -2
  331. package/dist/esm/internal-content-types/ManagerRoleHooks.d.ts +2 -2
  332. package/dist/esm/internal-content-types/ManagerRoleHooks.js +3 -3
  333. package/dist/esm/internal-content-types/ManagerUser.d.ts +213 -212
  334. package/dist/esm/internal-content-types/ManagerUser.d.ts.map +1 -1
  335. package/dist/esm/internal-content-types/ManagerUser.js +3 -3
  336. package/dist/esm/internal-content-types/ManagerUserHooks.d.ts +2 -2
  337. package/dist/esm/internal-content-types/ManagerUserHooks.js +3 -3
  338. package/dist/esm/internal-content-types/Media.d.ts +261 -261
  339. package/dist/esm/internal-content-types/Media.js +3 -3
  340. package/dist/esm/internal-content-types/MediaFolder.d.ts +88 -88
  341. package/dist/esm/internal-content-types/MediaFolder.js +2 -2
  342. package/dist/esm/internal-content-types/MfaChallenge.d.ts +574 -570
  343. package/dist/esm/internal-content-types/MfaChallenge.d.ts.map +1 -1
  344. package/dist/esm/internal-content-types/MfaChallenge.js +3 -3
  345. package/dist/esm/internal-content-types/Migration.d.ts +133 -133
  346. package/dist/esm/internal-content-types/Migration.js +2 -2
  347. package/dist/esm/internal-content-types/MigrationLock.d.ts +16 -16
  348. package/dist/esm/internal-content-types/MigrationLock.js +2 -2
  349. package/dist/esm/internal-content-types/Page.d.ts +85 -85
  350. package/dist/esm/internal-content-types/Page.js +3 -3
  351. package/dist/esm/internal-content-types/PreviewSnapshot.d.ts +213 -213
  352. package/dist/esm/internal-content-types/PreviewSnapshot.js +2 -2
  353. package/dist/esm/internal-content-types/Redirect.d.ts +146 -146
  354. package/dist/esm/internal-content-types/Redirect.js +2 -2
  355. package/dist/esm/internal-content-types/RobotsRule.d.ts +103 -103
  356. package/dist/esm/internal-content-types/RobotsRule.js +2 -2
  357. package/dist/esm/internal-content-types/Route.d.ts +123 -123
  358. package/dist/esm/internal-content-types/Route.js +2 -2
  359. package/dist/esm/internal-content-types/RouteLayoutModule.d.ts +164 -164
  360. package/dist/esm/internal-content-types/RouteLayoutModule.js +2 -2
  361. package/dist/esm/internal-content-types/RouteLayoutModuleOverride.d.ts +143 -143
  362. package/dist/esm/internal-content-types/RouteLayoutModuleOverride.js +2 -2
  363. package/dist/esm/internal-content-types/RouteLocaleVariant.d.ts +170 -170
  364. package/dist/esm/internal-content-types/RouteLocaleVariant.js +2 -2
  365. package/dist/esm/internal-content-types/RouteMap.d.ts +144 -144
  366. package/dist/esm/internal-content-types/RouteMap.js +2 -2
  367. package/dist/esm/internal-content-types/RouteSettings.d.ts +116 -116
  368. package/dist/esm/internal-content-types/RouteSettings.js +3 -3
  369. package/dist/esm/internal-content-types/SchemaState.d.ts +65 -65
  370. package/dist/esm/internal-content-types/SchemaState.js +2 -2
  371. package/dist/esm/internal-content-types/Seo.d.ts +430 -430
  372. package/dist/esm/internal-content-types/Seo.js +2 -2
  373. package/dist/esm/internal-content-types/SeoSettings.d.ts +518 -518
  374. package/dist/esm/internal-content-types/SeoSettings.js +3 -3
  375. package/dist/esm/internal-content-types/Session.d.ts +537 -533
  376. package/dist/esm/internal-content-types/Session.d.ts.map +1 -1
  377. package/dist/esm/internal-content-types/Session.js +3 -3
  378. package/dist/esm/internal-content-types/UserMfa.d.ts +506 -502
  379. package/dist/esm/internal-content-types/UserMfa.d.ts.map +1 -1
  380. package/dist/esm/internal-content-types/UserMfa.js +3 -3
  381. package/dist/esm/internal-content-types/WebAuthnCredential.d.ts +628 -624
  382. package/dist/esm/internal-content-types/WebAuthnCredential.d.ts.map +1 -1
  383. package/dist/esm/internal-content-types/WebAuthnCredential.js +3 -3
  384. package/dist/esm/internal-content-types/WebAuthnRegChallenge.d.ts +566 -562
  385. package/dist/esm/internal-content-types/WebAuthnRegChallenge.d.ts.map +1 -1
  386. package/dist/esm/internal-content-types/WebAuthnRegChallenge.js +3 -3
  387. package/dist/esm/internal-content-types/index.d.ts +34 -33
  388. package/dist/esm/internal-content-types/index.d.ts.map +1 -1
  389. package/dist/esm/internal-content-types/index.js +34 -33
  390. package/dist/esm/internal-content-types/index.js.map +1 -1
  391. package/dist/esm/internal-content-types/syncAdminRole.d.ts +5 -4
  392. package/dist/esm/internal-content-types/syncAdminRole.d.ts.map +1 -1
  393. package/dist/esm/internal-content-types/syncAdminRole.js +4 -4
  394. package/dist/esm/lib/ContentType.d.ts +25 -11
  395. package/dist/esm/lib/ContentType.d.ts.map +1 -1
  396. package/dist/esm/lib/ContentType.js +29 -5
  397. package/dist/esm/lib/ContentType.js.map +1 -1
  398. package/dist/esm/lib/Permissions.d.ts +2 -2
  399. package/dist/esm/lib/Permissions.js +3 -3
  400. package/dist/esm/lib/Registry.d.ts +8 -6
  401. package/dist/esm/lib/Registry.d.ts.map +1 -1
  402. package/dist/esm/lib/Registry.js +2 -1
  403. package/dist/esm/lib/Registry.js.map +1 -1
  404. package/dist/esm/lib/errors/AppError.d.ts +1 -1
  405. package/dist/esm/lib/errors/AppError.js +1 -1
  406. package/dist/esm/lib/errors/index.d.ts +4 -4
  407. package/dist/esm/lib/errors/index.js +3 -3
  408. package/dist/esm/lib/errors/throwAppError.d.ts +1 -1
  409. package/dist/esm/lib/errors/throwAppError.js +3 -3
  410. package/dist/esm/lib/fields/Boolean.d.ts +1 -1
  411. package/dist/esm/lib/fields/Boolean.js +1 -1
  412. package/dist/esm/lib/fields/ContentReference.d.ts +2 -2
  413. package/dist/esm/lib/fields/ContentReference.js +2 -2
  414. package/dist/esm/lib/fields/Date.d.ts +1 -1
  415. package/dist/esm/lib/fields/Date.js +1 -1
  416. package/dist/esm/lib/fields/Field.d.ts +12 -12
  417. package/dist/esm/lib/fields/Fields.d.ts +13 -13
  418. package/dist/esm/lib/fields/Fields.js +13 -13
  419. package/dist/esm/lib/fields/File.d.ts +1 -1
  420. package/dist/esm/lib/fields/File.js +2 -2
  421. package/dist/esm/lib/fields/Iterator.d.ts +2 -2
  422. package/dist/esm/lib/fields/Iterator.js +3 -3
  423. package/dist/esm/lib/fields/Link.d.ts +1 -1
  424. package/dist/esm/lib/fields/Link.js +2 -2
  425. package/dist/esm/lib/fields/List.d.ts +1 -1
  426. package/dist/esm/lib/fields/List.js +2 -2
  427. package/dist/esm/lib/fields/Number.d.ts +1 -1
  428. package/dist/esm/lib/fields/Number.js +1 -1
  429. package/dist/esm/lib/fields/Relation.d.ts +3 -3
  430. package/dist/esm/lib/fields/Relation.js +3 -3
  431. package/dist/esm/lib/fields/Select.d.ts +1 -1
  432. package/dist/esm/lib/fields/Select.js +1 -1
  433. package/dist/esm/lib/fields/SelfRelation.d.ts +1 -1
  434. package/dist/esm/lib/fields/SelfRelation.js +2 -2
  435. package/dist/esm/lib/fields/SimpleList.d.ts +1 -1
  436. package/dist/esm/lib/fields/SimpleList.js +1 -1
  437. package/dist/esm/lib/fields/String.d.ts +1 -1
  438. package/dist/esm/lib/fields/String.js +3 -3
  439. package/dist/esm/lib/fields/index.d.ts +15 -15
  440. package/dist/esm/lib/fields/index.js +15 -15
  441. package/dist/esm/lib/hooks.d.ts +3 -3
  442. package/dist/esm/lib/routeableContent.js +1 -1
  443. package/dist/esm/lib/systemFields.d.ts +1 -0
  444. package/dist/esm/lib/systemFields.d.ts.map +1 -1
  445. package/dist/esm/lib/systemFields.js +1 -0
  446. package/dist/esm/lib/systemFields.js.map +1 -1
  447. package/dist/esm/lib/types/index.d.ts +2 -2
  448. package/dist/esm/lib/utils/getListField.d.ts +1 -1
  449. package/dist/esm/lib/utils/getSchemas.d.ts +1 -1
  450. package/dist/esm/lib/utils/getTranslation.d.ts +2 -2
  451. package/dist/esm/lib/utils/getTranslation.js +1 -1
  452. package/dist/esm/lib/utils/isTranslatableObject.d.ts +1 -1
  453. package/dist/esm/lib/utils/translateObject.d.ts +2 -2
  454. package/dist/esm/lib/utils/translateObject.js +3 -3
  455. package/dist/esm/literals/definitions.d.ts +1 -1
  456. package/dist/esm/literals/definitions.js +1 -1
  457. package/dist/esm/literals/index.d.ts +3 -3
  458. package/dist/esm/literals/index.js +3 -3
  459. package/dist/esm/literals/manager.d.ts +1 -1
  460. package/dist/esm/literals/manager.js +1 -1
  461. package/dist/esm/manager.d.ts +8 -3
  462. package/dist/esm/manager.d.ts.map +1 -1
  463. package/dist/esm/manager.js +1 -1
  464. package/dist/esm/media/imageOptimization.d.ts +1 -1
  465. package/dist/esm/media/imageOptimization.js +2 -2
  466. package/dist/esm/media/index.d.ts +4 -4
  467. package/dist/esm/media/index.js +3 -3
  468. package/dist/esm/media/mediaService.d.ts +1 -1
  469. package/dist/esm/orm/backups.js +5 -5
  470. package/dist/esm/orm/createIndexes.js +3 -3
  471. package/dist/esm/orm/database.js +3 -3
  472. package/dist/esm/orm/dbService.d.ts +6 -6
  473. package/dist/esm/orm/index.d.ts +2 -2
  474. package/dist/esm/orm/index.js +16 -16
  475. package/dist/esm/orm/migrations.d.ts +1 -1
  476. package/dist/esm/orm/migrations.js +4 -4
  477. package/dist/esm/orm/mongodbPeer.js +1 -1
  478. package/dist/esm/orm/operations/clear.d.ts +2 -2
  479. package/dist/esm/orm/operations/clear.js +1 -1
  480. package/dist/esm/orm/operations/create.d.ts +4 -4
  481. package/dist/esm/orm/operations/create.js +7 -7
  482. package/dist/esm/orm/operations/delete.d.ts +3 -3
  483. package/dist/esm/orm/operations/delete.js +5 -5
  484. package/dist/esm/orm/operations/find.d.ts +2 -2
  485. package/dist/esm/orm/operations/find.js +3 -3
  486. package/dist/esm/orm/operations/findDependencies.d.ts +2 -2
  487. package/dist/esm/orm/operations/findDependencies.js +4 -4
  488. package/dist/esm/orm/operations/get.d.ts +3 -3
  489. package/dist/esm/orm/operations/get.js +3 -3
  490. package/dist/esm/orm/operations/getAll.d.ts +2 -2
  491. package/dist/esm/orm/operations/getAll.js +2 -2
  492. package/dist/esm/orm/operations/list.d.ts +2 -2
  493. package/dist/esm/orm/operations/list.js +3 -3
  494. package/dist/esm/orm/operations/update.d.ts +5 -5
  495. package/dist/esm/orm/operations/update.js +8 -8
  496. package/dist/esm/orm/operations/updateMany.d.ts +4 -4
  497. package/dist/esm/orm/operations/updateMany.js +4 -4
  498. package/dist/esm/orm/operations/upsert.d.ts +3 -3
  499. package/dist/esm/orm/operations/upsert.js +4 -4
  500. package/dist/esm/orm/utils/deepDeleteNulls.js +1 -1
  501. package/dist/esm/orm/utils/parseId.d.ts +1 -1
  502. package/dist/esm/orm/utils/parseId.js +1 -1
  503. package/dist/esm/orm/utils/transformObjectIdsToStrings.js +1 -1
  504. package/dist/esm/orm/utils/transformStringToObjectIds.js +1 -1
  505. package/dist/esm/orm/versions.d.ts +1 -1
  506. package/dist/esm/orm/versions.js +7 -7
  507. package/dist/esm/plugins.d.ts +9 -9
  508. package/dist/esm/schemas/manager/comments.js +1 -1
  509. package/dist/esm/schemas/manager/create.d.ts +11 -0
  510. package/dist/esm/schemas/manager/create.d.ts.map +1 -1
  511. package/dist/esm/schemas/manager/create.js +2 -0
  512. package/dist/esm/schemas/manager/create.js.map +1 -1
  513. package/dist/esm/schemas/manager/linkedIterator.d.ts +41 -0
  514. package/dist/esm/schemas/manager/linkedIterator.d.ts.map +1 -0
  515. package/dist/esm/schemas/manager/linkedIterator.js +21 -0
  516. package/dist/esm/schemas/manager/linkedIterator.js.map +1 -0
  517. package/dist/esm/schemas/manager/literals/upsert.js +1 -1
  518. package/dist/esm/schemas/manager/localeVariants.d.ts +96 -96
  519. package/dist/esm/schemas/manager/localeVariants.js +1 -1
  520. package/dist/esm/schemas/manager/media/finalizeUpload.js +1 -1
  521. package/dist/esm/schemas/manager/media/getMediaUrl.js +1 -1
  522. package/dist/esm/schemas/manager/media/listFolders.js +1 -1
  523. package/dist/esm/schemas/manager/update.d.ts +11 -0
  524. package/dist/esm/schemas/manager/update.d.ts.map +1 -1
  525. package/dist/esm/schemas/manager/update.js +2 -0
  526. package/dist/esm/schemas/manager/update.js.map +1 -1
  527. package/dist/esm/schemas/web/page.d.ts +40 -40
  528. package/dist/esm/schemas/web/page.js +1 -1
  529. package/dist/esm/schemas/web/previewPage.d.ts +28 -28
  530. package/dist/esm/schemas/web/previewPage.js +1 -1
  531. package/dist/esm/translation/document.d.ts +3 -3
  532. package/dist/esm/translation/index.d.ts +4 -4
  533. package/dist/esm/translation/index.js +3 -3
  534. package/dist/esm/translation/translationService.d.ts +1 -1
  535. package/dist/esm/web/client.d.ts +1 -1
  536. package/dist/esm/web/client.js +1 -1
  537. package/dist/esm/web/index.d.ts +2 -2
  538. package/dist/esm/web/index.js +2 -2
  539. package/dist/esm/web/page.d.ts +1 -1
  540. package/dist/tsconfig.build.tsbuildinfo +1 -1
  541. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import z from "zod";
2
- import type { getTypeWithModifiers, Visibility, If, Extends, Or, getOutputTypeWithModifiers, getInputTypeWithModifiers } from "../types/index.js";
2
+ import type { getTypeWithModifiers, Visibility, If, Extends, Or, getOutputTypeWithModifiers, getInputTypeWithModifiers } from "../types";
3
3
  export declare function getDefaultInputSchema<S extends z.ZodTypeAny, TRequired extends boolean, TTranslatable extends boolean>(baseSchema: S, isRequired: boolean, isTranslatable: boolean): getInputTypeWithModifiers<S, TRequired, TTranslatable>;
4
4
  export declare function getDefaultSchema<S extends z.ZodTypeAny, TRequired extends boolean, TTranslatable extends boolean>(baseSchema: S, isRequired: boolean, isTranslatable: boolean): getTypeWithModifiers<S, TRequired, TTranslatable>;
5
5
  export declare function getDefaultOutputSchema<S extends z.ZodTypeAny, TRequired extends boolean>(baseSchema: S, isRequired: boolean): getOutputTypeWithModifiers<S, TRequired>;
@@ -1,4 +1,4 @@
1
- import { LanguageSchema } from "../../internal-content-types/index.js";
2
- import { MaybeTranslatableValue } from "../types/index.js";
1
+ import { LanguageSchema } from "../../internal-content-types";
2
+ import { MaybeTranslatableValue } from "../types";
3
3
  export declare const getTranslation: <T>(object: MaybeTranslatableValue<T>, language: LanguageSchema, languageList: LanguageSchema[]) => T;
4
4
  //# sourceMappingURL=getTranslation.d.ts.map
@@ -1,4 +1,4 @@
1
- import { isTranslatableObject } from "./isTranslatableObject.js";
1
+ import { isTranslatableObject } from "./isTranslatableObject";
2
2
  export const getTranslation = (object, language, languageList) => {
3
3
  if (!object)
4
4
  return object;
@@ -1,3 +1,3 @@
1
- import type { TranslatableValue } from "../types/index.js";
1
+ import type { TranslatableValue } from "../types";
2
2
  export declare const isTranslatableObject: <T>(obj: unknown) => obj is TranslatableValue<T>;
3
3
  //# sourceMappingURL=isTranslatableObject.d.ts.map
@@ -1,4 +1,4 @@
1
- import { LanguageSchema } from "../../internal-content-types/index.js";
2
- import { FlattenTranslate, MaybeTranslatableValue } from "../types/index.js";
1
+ import { LanguageSchema } from "../../internal-content-types";
2
+ import { FlattenTranslate, MaybeTranslatableValue } from "../types";
3
3
  export declare const translateObject: <T extends Record<string, MaybeTranslatableValue<unknown>>>(obj: T, language: LanguageSchema, languages: LanguageSchema[]) => FlattenTranslate<T>;
4
4
  //# sourceMappingURL=translateObject.d.ts.map
@@ -1,6 +1,6 @@
1
- import { getTranslation } from "./getTranslation.js";
2
- import { hasKeys } from "./hasKeys.js";
3
- import { isTranslatableObject } from "./isTranslatableObject.js";
1
+ import { getTranslation } from "./getTranslation";
2
+ import { hasKeys } from "./hasKeys";
3
+ import { isTranslatableObject } from "./isTranslatableObject";
4
4
  export const translateObject = (obj, language, languages) => {
5
5
  return Object.fromEntries(Object.entries(obj).map(([key, value]) => {
6
6
  if (isTranslatableObject(value)) {
@@ -1,4 +1,4 @@
1
- import { type IcuVariable } from "./icu.js";
1
+ import { type IcuVariable } from "./icu";
2
2
  export type LiteralDefinition = {
3
3
  key: string;
4
4
  defaultMessage: string;
@@ -1,4 +1,4 @@
1
- import { extractIcuVariables } from "./icu.js";
1
+ import { extractIcuVariables } from "./icu";
2
2
  const defineLiteralCatalog = (catalog) => {
3
3
  const keys = Object.keys(catalog);
4
4
  const definitions = keys.map((key) => ({
@@ -1,4 +1,4 @@
1
- export * from './icu.js';
2
- export * from './definitions.js';
3
- export * from './manager.js';
1
+ export * from './icu';
2
+ export * from './definitions';
3
+ export * from './manager';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,4 @@
1
- export * from './icu.js';
2
- export * from './definitions.js';
3
- export * from './manager.js';
1
+ export * from './icu';
2
+ export * from './definitions';
3
+ export * from './manager';
4
4
  //# sourceMappingURL=index.js.map
@@ -1,4 +1,4 @@
1
- import { managerLiteralCatalogInput } from './managerLiterals.js';
1
+ import { managerLiteralCatalogInput } from './managerLiterals';
2
2
  type ManagerLiteralParamSpecValue = 'string' | 'number' | 'boolean' | readonly string[];
3
3
  type ManagerLiteralInput = {
4
4
  defaultMessage: string;
@@ -1,4 +1,4 @@
1
- import { managerLiteralCatalogInput } from './managerLiterals.js';
1
+ import { managerLiteralCatalogInput } from './managerLiterals';
2
2
  const managerLiteralDefinitionsByKey = new Map(Object.entries(managerLiteralCatalogInput).map(([key, definition]) => [
3
3
  key,
4
4
  definition,
@@ -1,6 +1,6 @@
1
- import { type AnyRakunOperationContract, type RakunOperationHttpMethod, type RakunOperationKind } from "./api/operations/types.js";
2
- import type { createManagerOperationContracts } from "./api/operations/manager-contract.js";
3
- import { managerOperationManifest } from "./api/operations/manager-manifest.js";
1
+ import { type AnyRakunOperationContract, type RakunOperationHttpMethod, type RakunOperationKind } from "./api/operations/types";
2
+ import type { createManagerOperationContracts } from "./api/operations/manager-contract";
3
+ import { managerOperationManifest } from "./api/operations/manager-manifest";
4
4
  export { managerOperationManifest };
5
5
  export type ManagerOperationContracts = ReturnType<typeof createManagerOperationContracts>;
6
6
  export type ManagerOperationDefinitions = ManagerOperationContracts;
@@ -89,6 +89,11 @@ export declare const getManagerOperationMeta: <TName extends ManagerOperationNam
89
89
  method: "post";
90
90
  path: string;
91
91
  };
92
+ "manager.linkedIterator.get": {
93
+ kind: "query";
94
+ method: "post";
95
+ path: string;
96
+ };
92
97
  "manager.list": {
93
98
  kind: "query";
94
99
  method: "post";
@@ -1 +1 @@
1
- {"version":3,"file":"manager.d.ts","sourceRoot":"","sources":["../../src/manager.ts"],"names":[],"mappings":"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"}
1
+ {"version":3,"file":"manager.d.ts","sourceRoot":"","sources":["../../src/manager.ts"],"names":[],"mappings":"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"}
@@ -1,4 +1,4 @@
1
- import { managerOperationManifest } from "./api/operations/manager-manifest.js";
1
+ import { managerOperationManifest } from "./api/operations/manager-manifest";
2
2
  export { managerOperationManifest };
3
3
  export const toManagerOperationPath = (name) => `/${name.split(".").join("/")}`;
4
4
  export const getManagerOperationMeta = (name) => managerOperationManifest[name];
@@ -1,4 +1,4 @@
1
- import { FileOptimizeOptions } from "../lib/fields/File.js";
1
+ import { FileOptimizeOptions } from "../lib/fields/File";
2
2
  type UploadOptimizationInput = {
3
3
  buffer: Buffer;
4
4
  mime: string;
@@ -1,6 +1,6 @@
1
1
  import path from "path";
2
- import { FileOptimizeOptionsSchema, } from "../lib/fields/File.js";
3
- import { requirePeerDependency } from "../lib/utils/peerDependencies.js";
2
+ import { FileOptimizeOptionsSchema, } from "../lib/fields/File";
3
+ import { requirePeerDependency } from "../lib/utils/peerDependencies";
4
4
  const getSharp = () => {
5
5
  const sharp = requirePeerDependency("sharp", "npm install sharp", "Rakun uses sharp to read image dimensions and optimize media uploads.");
6
6
  return sharp.default ?? sharp;
@@ -1,5 +1,5 @@
1
- import type { MediaAccess, StorageAdapter } from "./adapters/index.js";
2
- import { type MediaService } from "./mediaService.js";
1
+ import type { MediaAccess, StorageAdapter } from "./adapters";
2
+ import { type MediaService } from "./mediaService";
3
3
  export type MediaServiceConfig = {
4
4
  adapter: StorageAdapter;
5
5
  defaultAccess?: MediaAccess;
@@ -9,6 +9,6 @@ export type MediaServiceConfig = {
9
9
  export declare const createMediaConnection: (config: MediaServiceConfig) => void;
10
10
  export declare function createMediaService(config: MediaServiceConfig): MediaService;
11
11
  export declare function getMediaService(): MediaService;
12
- export * from "./mediaService.js";
13
- export * from "./adapters/index.js";
12
+ export * from "./mediaService";
13
+ export * from "./adapters";
14
14
  //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,4 @@
1
- import { createMediaServiceFromAdapter, } from "./mediaService.js";
1
+ import { createMediaServiceFromAdapter, } from "./mediaService";
2
2
  let _mediaService;
3
3
  let _config;
4
4
  export const createMediaConnection = (config) => {
@@ -23,6 +23,6 @@ export function getMediaService() {
23
23
  }
24
24
  return _mediaService;
25
25
  }
26
- export * from "./mediaService.js";
27
- export * from "./adapters/index.js";
26
+ export * from "./mediaService";
27
+ export * from "./adapters";
28
28
  //# sourceMappingURL=index.js.map
@@ -1,4 +1,4 @@
1
- import type { MediaAccess, PresignedPut, StorageAdapter } from "./adapters/index.js";
1
+ import type { MediaAccess, PresignedPut, StorageAdapter } from "./adapters";
2
2
  type MediaErrorTag = "MediaError" | "MediaErrorUnknown" | "MediaErrorInvalidData" | "MediaErrorNotFound";
3
3
  export declare class MediaError extends Error {
4
4
  readonly message: string;
@@ -1,8 +1,8 @@
1
- import { Backup, BackupDocument } from "../internal-content-types/index.js";
2
- import { Logger } from "../lib/Logger.js";
3
- import { getContentTypes } from "../lib/Registry.js";
4
- import { parseId } from "./utils/parseId.js";
5
- import { transformObjectIdsToStrings } from "./utils/transformObjectIdsToStrings.js";
1
+ import { Backup, BackupDocument } from "../internal-content-types";
2
+ import { Logger } from "../lib/Logger";
3
+ import { getContentTypes } from "../lib/Registry";
4
+ import { parseId } from "./utils/parseId";
5
+ import { transformObjectIdsToStrings } from "./utils/transformObjectIdsToStrings";
6
6
  const BACKUPS = Backup.name;
7
7
  const BACKUP_DOCUMENTS = BackupDocument.name;
8
8
  const BACKUP_EXCLUDED_CONTENT_TYPES = new Set([
@@ -1,6 +1,6 @@
1
- import { Backup, BackupDocument, ContentComment, ContentVersion, Migration, PreviewSnapshot, SchemaState, } from "../internal-content-types/index.js";
2
- import { getContentTypes } from "../lib/Registry.js";
3
- import { getPersistedUniqueGroups } from "../lib/routeableContent.js";
1
+ import { Backup, BackupDocument, ContentComment, ContentVersion, Migration, PreviewSnapshot, SchemaState, } from "../internal-content-types";
2
+ import { getContentTypes } from "../lib/Registry";
3
+ import { getPersistedUniqueGroups } from "../lib/routeableContent";
4
4
  const LEGACY_INTERNAL_COLLECTIONS = [
5
5
  ["_rakun_backups", Backup.name],
6
6
  ["_rakun_backup_documents", BackupDocument.name],
@@ -1,6 +1,6 @@
1
- import { checkFailureCase, DbErrorUnknown } from './dbService.js';
2
- import { createIndexes } from './createIndexes.js';
3
- import { getMongoDB } from './mongodbPeer.js';
1
+ import { checkFailureCase, DbErrorUnknown } from './dbService';
2
+ import { createIndexes } from './createIndexes';
3
+ import { getMongoDB } from './mongodbPeer';
4
4
  const connections = new Map();
5
5
  let currentUri = null;
6
6
  const getConnection = (uri) => {
@@ -1,9 +1,9 @@
1
- import type { DataInput, DBOutput, FieldsQuery, Filter, GetAllInput, Query } from "../lib/types/index.js";
2
- import ContentType from "../lib/ContentType.js";
3
- import { Id } from "../lib/utils/id.js";
4
- import type { BackupAdapter } from "./backups.js";
5
- import type { MigrationAdapter } from "./migrations.js";
6
- import type { VersionAdapter } from "./versions.js";
1
+ import type { DataInput, DBOutput, FieldsQuery, Filter, GetAllInput, Query } from "../lib/types";
2
+ import ContentType from "../lib/ContentType";
3
+ import { Id } from "../lib/utils/id";
4
+ import type { BackupAdapter } from "./backups";
5
+ import type { MigrationAdapter } from "./migrations";
6
+ import type { VersionAdapter } from "./versions";
7
7
  type DbErrorTag = "DbError" | "DbErrorUnknown" | "DbErrorNotFound" | "DbErrorInvalidData" | "DbErrorSimulatedFailure" | "DbErrorConflict";
8
8
  export declare class DbError extends Error {
9
9
  readonly message: string;
@@ -1,5 +1,5 @@
1
- import type { DBService } from './dbService.js';
2
- import { type MongoConfig } from './database.js';
1
+ import type { DBService } from './dbService';
2
+ import { type MongoConfig } from './database';
3
3
  export declare const createMongoConnection: (config: MongoConfig) => void;
4
4
  export declare function createMongoService(config: MongoConfig): Promise<DBService>;
5
5
  export declare function getMongoService(config?: MongoConfig): Promise<DBService>;
@@ -1,19 +1,19 @@
1
- import { connectDatabase, closeDatabase as closeDatabaseConnection, } from './database.js';
2
- import { clearHandler } from './operations/clear.js';
3
- import { createHandler } from './operations/create.js';
4
- import { deleteHandler } from './operations/delete.js';
5
- import { findHandler } from './operations/find.js';
6
- import { findDependenciesHandler } from './operations/findDependencies.js';
7
- import { getHandler } from './operations/get.js';
8
- import { listhandler } from './operations/list.js';
9
- import { updateHandler } from './operations/update.js';
10
- import { updateManyHandler } from './operations/updateMany.js';
11
- import { upsertHandler } from './operations/upsert.js';
12
- import { getAllHandler } from './operations/getAll.js';
13
- import { createMongoBackupAdapter } from './backups.js';
14
- import { createMongoMigrationAdapter } from './migrations.js';
15
- import { createMongoVersionAdapter } from './versions.js';
16
- import { Logger } from '../lib/Logger.js';
1
+ import { connectDatabase, closeDatabase as closeDatabaseConnection, } from './database';
2
+ import { clearHandler } from './operations/clear';
3
+ import { createHandler } from './operations/create';
4
+ import { deleteHandler } from './operations/delete';
5
+ import { findHandler } from './operations/find';
6
+ import { findDependenciesHandler } from './operations/findDependencies';
7
+ import { getHandler } from './operations/get';
8
+ import { listhandler } from './operations/list';
9
+ import { updateHandler } from './operations/update';
10
+ import { updateManyHandler } from './operations/updateMany';
11
+ import { upsertHandler } from './operations/upsert';
12
+ import { getAllHandler } from './operations/getAll';
13
+ import { createMongoBackupAdapter } from './backups';
14
+ import { createMongoMigrationAdapter } from './migrations';
15
+ import { createMongoVersionAdapter } from './versions';
16
+ import { Logger } from '../lib/Logger';
17
17
  const dbServices = new Map();
18
18
  const dbServicePromises = new Map();
19
19
  let _config = null;
@@ -1,5 +1,5 @@
1
1
  import type { Db } from "mongodb";
2
- import type { DBService } from "./dbService.js";
2
+ import type { DBService } from "./dbService";
3
3
  export type MigrationStatus = "running" | "completed" | "failed";
4
4
  export type MigrationLedgerRecord = {
5
5
  _id: string;
@@ -1,7 +1,7 @@
1
- import { Migration, MigrationLock, SchemaState } from "../internal-content-types/index.js";
2
- import { Logger } from "../lib/Logger.js";
3
- import { getContentTypes } from "../lib/Registry.js";
4
- import { transformObjectIdsToStrings } from "./utils/transformObjectIdsToStrings.js";
1
+ import { Migration, MigrationLock, SchemaState } from "../internal-content-types";
2
+ import { Logger } from "../lib/Logger";
3
+ import { getContentTypes } from "../lib/Registry";
4
+ import { transformObjectIdsToStrings } from "./utils/transformObjectIdsToStrings";
5
5
  const MIGRATIONS = Migration.name;
6
6
  const SCHEMA_STATE = SchemaState.name;
7
7
  const MIGRATION_LOCK = MigrationLock.name;
@@ -1,3 +1,3 @@
1
- import { requirePeerDependency } from "../lib/utils/peerDependencies.js";
1
+ import { requirePeerDependency } from "../lib/utils/peerDependencies";
2
2
  export const getMongoDB = () => requirePeerDependency("mongodb", "npm install mongodb", "Rakun uses the official MongoDB driver for database access and ObjectId handling.");
3
3
  //# sourceMappingURL=mongodbPeer.js.map
@@ -1,5 +1,5 @@
1
1
  import type { Db } from "mongodb";
2
- import type { DBService } from "../dbService.js";
3
- import ContentType from "../../lib/ContentType.js";
2
+ import type { DBService } from "../dbService";
3
+ import ContentType from "../../lib/ContentType";
4
4
  export declare const clearHandler: (db: Db, getService: () => DBService) => <T extends ContentType>(contentType: T) => Promise<void>;
5
5
  //# sourceMappingURL=clear.d.ts.map
@@ -1,4 +1,4 @@
1
- import { deleteHandler } from "./delete.js";
1
+ import { deleteHandler } from "./delete";
2
2
  export const clearHandler = (db, getService) => async (contentType) => {
3
3
  await deleteHandler(db, getService)(contentType, {});
4
4
  };
@@ -1,7 +1,7 @@
1
1
  import type { Db } from "mongodb";
2
- import { type DBMutationOptions } from "../dbService.js";
3
- import type { DBService } from "../dbService.js";
4
- import ContentType from "../../lib/ContentType.js";
5
- import { DataInput, DBOutput } from "../../lib/types/index.js";
2
+ import { type DBMutationOptions } from "../dbService";
3
+ import type { DBService } from "../dbService";
4
+ import ContentType from "../../lib/ContentType";
5
+ import { DataInput, DBOutput } from "../../lib/types";
6
6
  export declare const createHandler: (db: Db, getService: () => DBService) => <T extends ContentType>(contentType: T, data: DataInput<T>, options?: DBMutationOptions) => Promise<DBOutput<T>>;
7
7
  //# sourceMappingURL=create.d.ts.map
@@ -1,11 +1,11 @@
1
1
  import { ZodError } from "zod";
2
- import { checkFailureCase, DbError, DbErrorConflict, DbErrorInvalidData, DbErrorNotFound, DbErrorUnknown, } from "../dbService.js";
3
- import { recordContentVersion } from "../versions.js";
4
- import { transformStringToObjectIds } from "../utils/transformStringToObjectIds.js";
5
- import { transformObjectIdsToStrings } from "../utils/transformObjectIdsToStrings.js";
6
- import { deepDeleteNulls } from "../utils/deepDeleteNulls.js";
7
- import { getPersistedUniqueGroups } from "../../lib/routeableContent.js";
8
- import { runAfterInsertHook, runBeforeInsertHook, } from "../../api/hooks/runContentHooks.js";
2
+ import { checkFailureCase, DbError, DbErrorConflict, DbErrorInvalidData, DbErrorNotFound, DbErrorUnknown, } from "../dbService";
3
+ import { recordContentVersion } from "../versions";
4
+ import { transformStringToObjectIds } from "../utils/transformStringToObjectIds";
5
+ import { transformObjectIdsToStrings } from "../utils/transformObjectIdsToStrings";
6
+ import { deepDeleteNulls } from "../utils/deepDeleteNulls";
7
+ import { getPersistedUniqueGroups } from "../../lib/routeableContent";
8
+ import { runAfterInsertHook, runBeforeInsertHook, } from "../../api/hooks/runContentHooks";
9
9
  export const createHandler = (db, getService) => async (contentType, data, options) => {
10
10
  checkFailureCase("CreationError");
11
11
  const hookDb = getService();
@@ -1,6 +1,6 @@
1
1
  import type { Db } from "mongodb";
2
- import { type DBMutationOptions, type DBService } from "../dbService.js";
3
- import ContentType from "../../lib/ContentType.js";
4
- import { Filter } from "../../lib/types/index.js";
2
+ import { type DBMutationOptions, type DBService } from "../dbService";
3
+ import ContentType from "../../lib/ContentType";
4
+ import { Filter } from "../../lib/types";
5
5
  export declare const deleteHandler: (db: Db, getService: () => DBService) => <T extends ContentType>(contentType: T, filter: Filter<T>, options?: DBMutationOptions) => Promise<void>;
6
6
  //# sourceMappingURL=delete.d.ts.map
@@ -1,8 +1,8 @@
1
- import { checkFailureCase, } from "../dbService.js";
2
- import { recordContentVersion } from "../versions.js";
3
- import { transformObjectIdsToStrings } from "../utils/transformObjectIdsToStrings.js";
4
- import { transformStringToObjectIds } from "../utils/transformStringToObjectIds.js";
5
- import { hasContentHooks, runAfterDeleteHook, runBeforeDeleteHook, } from "../../api/hooks/runContentHooks.js";
1
+ import { checkFailureCase, } from "../dbService";
2
+ import { recordContentVersion } from "../versions";
3
+ import { transformObjectIdsToStrings } from "../utils/transformObjectIdsToStrings";
4
+ import { transformStringToObjectIds } from "../utils/transformStringToObjectIds";
5
+ import { hasContentHooks, runAfterDeleteHook, runBeforeDeleteHook, } from "../../api/hooks/runContentHooks";
6
6
  export const deleteHandler = (db, getService) => async (contentType, filter, options) => {
7
7
  checkFailureCase("DeletionError");
8
8
  const hookDb = getService();
@@ -1,5 +1,5 @@
1
1
  import type { Db } from "mongodb";
2
- import ContentType from "../../lib/ContentType.js";
3
- import { DBOutput, FieldsQuery, Filter } from "../../lib/types/index.js";
2
+ import ContentType from "../../lib/ContentType";
3
+ import { DBOutput, FieldsQuery, Filter } from "../../lib/types";
4
4
  export declare const findHandler: (db: Db) => <T extends ContentType>(contentType: T, filter: Filter<T>, fields?: FieldsQuery<T>) => Promise<DBOutput<T> | null>;
5
5
  //# sourceMappingURL=find.d.ts.map
@@ -1,6 +1,6 @@
1
- import { checkFailureCase } from "../dbService.js";
2
- import { transformObjectIdsToStrings } from "../utils/transformObjectIdsToStrings.js";
3
- import { transformStringToObjectIds } from "../utils/transformStringToObjectIds.js";
1
+ import { checkFailureCase } from "../dbService";
2
+ import { transformObjectIdsToStrings } from "../utils/transformObjectIdsToStrings";
3
+ import { transformStringToObjectIds } from "../utils/transformStringToObjectIds";
4
4
  export const findHandler = (db) => async (contentType, filter, fields) => {
5
5
  checkFailureCase("FoundError");
6
6
  const document = transformObjectIdsToStrings(await db
@@ -1,6 +1,6 @@
1
1
  import type { Db } from "mongodb";
2
- import ContentType from "../../lib/ContentType.js";
3
- import { Id } from "../../lib/utils/id.js";
2
+ import ContentType from "../../lib/ContentType";
3
+ import { Id } from "../../lib/utils/id";
4
4
  /**
5
5
  *
6
6
  * @param db database instance
@@ -1,7 +1,7 @@
1
- import { checkFailureCase, DbErrorUnknown } from "../dbService.js";
2
- import { parseId } from "../utils/parseId.js";
3
- import { getMongoDB } from "../mongodbPeer.js";
4
- import { getContentTypes } from "../../lib/Registry.js";
1
+ import { checkFailureCase, DbErrorUnknown } from "../dbService";
2
+ import { parseId } from "../utils/parseId";
3
+ import { getMongoDB } from "../mongodbPeer";
4
+ import { getContentTypes } from "../../lib/Registry";
5
5
  const passiveDependencyContentTypes = new Set([
6
6
  "BackupDocument",
7
7
  "ContentVersion",
@@ -1,6 +1,6 @@
1
1
  import type { Db } from "mongodb";
2
- import ContentType from "../../lib/ContentType.js";
3
- import { DBOutput, FieldsQuery } from "../../lib/types/index.js";
4
- import { Id } from "../../lib/utils/id.js";
2
+ import ContentType from "../../lib/ContentType";
3
+ import { DBOutput, FieldsQuery } from "../../lib/types";
4
+ import { Id } from "../../lib/utils/id";
5
5
  export declare const getHandler: (db: Db) => <T extends ContentType>(contentType: T, id: Id, fields?: FieldsQuery<T>) => Promise<DBOutput<T>>;
6
6
  //# sourceMappingURL=get.d.ts.map
@@ -1,6 +1,6 @@
1
- import { checkFailureCase, DbErrorNotFound } from "../dbService.js";
2
- import { parseId } from "../utils/parseId.js";
3
- import { transformObjectIdsToStrings } from "../utils/transformObjectIdsToStrings.js";
1
+ import { checkFailureCase, DbErrorNotFound } from "../dbService";
2
+ import { parseId } from "../utils/parseId";
3
+ import { transformObjectIdsToStrings } from "../utils/transformObjectIdsToStrings";
4
4
  export const getHandler = (db) => async (contentType, id, fields) => {
5
5
  checkFailureCase("FoundError");
6
6
  const document = transformObjectIdsToStrings(await db
@@ -1,5 +1,5 @@
1
1
  import type { Db } from "mongodb";
2
- import ContentType from "../../lib/ContentType.js";
3
- import { DBOutput, GetAllInput } from "../../lib/types/index.js";
2
+ import ContentType from "../../lib/ContentType";
3
+ import { DBOutput, GetAllInput } from "../../lib/types";
4
4
  export declare const getAllHandler: (db: Db) => <T extends ContentType>(contentType: T, query?: GetAllInput<T>) => Promise<DBOutput<T>[]>;
5
5
  //# sourceMappingURL=getAll.d.ts.map
@@ -1,5 +1,5 @@
1
- import { checkFailureCase } from "../dbService.js";
2
- import { transformObjectIdsToStrings } from "../utils/transformObjectIdsToStrings.js";
1
+ import { checkFailureCase } from "../dbService";
2
+ import { transformObjectIdsToStrings } from "../utils/transformObjectIdsToStrings";
3
3
  export const getAllHandler = (db) => async (contentType, query) => {
4
4
  checkFailureCase("FoundError");
5
5
  const { fields, sort } = query || {};
@@ -1,6 +1,6 @@
1
1
  import type { Db } from "mongodb";
2
- import ContentType from "../../lib/ContentType.js";
3
- import { DBOutput, Query } from "../../lib/types/index.js";
2
+ import ContentType from "../../lib/ContentType";
3
+ import { DBOutput, Query } from "../../lib/types";
4
4
  export declare const listhandler: (db: Db) => <T extends ContentType>(contentType: T, query: Query<T>) => Promise<{
5
5
  totalItems: number;
6
6
  items: DBOutput<T>[];
@@ -1,6 +1,6 @@
1
- import { checkFailureCase } from "../dbService.js";
2
- import { transformObjectIdsToStrings } from "../utils/transformObjectIdsToStrings.js";
3
- import { transformStringToObjectIds } from "../utils/transformStringToObjectIds.js";
1
+ import { checkFailureCase } from "../dbService";
2
+ import { transformObjectIdsToStrings } from "../utils/transformObjectIdsToStrings";
3
+ import { transformStringToObjectIds } from "../utils/transformStringToObjectIds";
4
4
  export const listhandler = (db) => async (contentType, query) => {
5
5
  checkFailureCase("FoundError");
6
6
  const { filter, options } = query;
@@ -1,8 +1,8 @@
1
1
  import type { Db } from "mongodb";
2
- import { type DBMutationOptions } from "../dbService.js";
3
- import type { DBService } from "../dbService.js";
4
- import ContentType from "../../lib/ContentType.js";
5
- import { DataInput, DBOutput } from "../../lib/types/index.js";
6
- import { Id } from "../../lib/utils/id.js";
2
+ import { type DBMutationOptions } from "../dbService";
3
+ import type { DBService } from "../dbService";
4
+ import ContentType from "../../lib/ContentType";
5
+ import { DataInput, DBOutput } from "../../lib/types";
6
+ import { Id } from "../../lib/utils/id";
7
7
  export declare const updateHandler: (db: Db, getService: () => DBService) => <T extends ContentType>(contentType: T, id: Id, data: Partial<DataInput<T>> | DataInput<T>, options?: DBMutationOptions) => Promise<DBOutput<T>>;
8
8
  //# sourceMappingURL=update.d.ts.map
@@ -1,12 +1,12 @@
1
1
  import { ZodError } from "zod";
2
- import { checkFailureCase, DbError, DbErrorConflict, DbErrorInvalidData, DbErrorNotFound, DbErrorUnknown, } from "../dbService.js";
3
- import { recordContentVersion } from "../versions.js";
4
- import { parseId } from "../utils/parseId.js";
5
- import { transformObjectIdsToStrings } from "../utils/transformObjectIdsToStrings.js";
6
- import { transformStringToObjectIds } from "../utils/transformStringToObjectIds.js";
7
- import { deepDeleteNulls } from "../utils/deepDeleteNulls.js";
8
- import { getPersistedUniqueGroups } from "../../lib/routeableContent.js";
9
- import { hasContentHooks, runAfterUpdateHook, runBeforeUpdateHook, } from "../../api/hooks/runContentHooks.js";
2
+ import { checkFailureCase, DbError, DbErrorConflict, DbErrorInvalidData, DbErrorNotFound, DbErrorUnknown, } from "../dbService";
3
+ import { recordContentVersion } from "../versions";
4
+ import { parseId } from "../utils/parseId";
5
+ import { transformObjectIdsToStrings } from "../utils/transformObjectIdsToStrings";
6
+ import { transformStringToObjectIds } from "../utils/transformStringToObjectIds";
7
+ import { deepDeleteNulls } from "../utils/deepDeleteNulls";
8
+ import { getPersistedUniqueGroups } from "../../lib/routeableContent";
9
+ import { hasContentHooks, runAfterUpdateHook, runBeforeUpdateHook, } from "../../api/hooks/runContentHooks";
10
10
  export const updateHandler = (db, getService) => async (contentType, id, data, options) => {
11
11
  checkFailureCase("UpdateError");
12
12
  const hookDb = getService();
@@ -1,8 +1,8 @@
1
1
  import type { Db } from "mongodb";
2
- import { type DBMutationOptions } from "../dbService.js";
3
- import type { DBService } from "../dbService.js";
4
- import ContentType from "../../lib/ContentType.js";
5
- import { DataInput, Filter } from "../../lib/types/index.js";
2
+ import { type DBMutationOptions } from "../dbService";
3
+ import type { DBService } from "../dbService";
4
+ import ContentType from "../../lib/ContentType";
5
+ import { DataInput, Filter } from "../../lib/types";
6
6
  export declare const updateManyHandler: (db: Db, getService: () => DBService) => <T extends ContentType>(contentType: T, filter: Filter<T>, data: Partial<DataInput<T>>, options?: DBMutationOptions) => Promise<{
7
7
  updatedCount: number;
8
8
  }>;
@@ -1,8 +1,8 @@
1
1
  import { ZodError } from "zod";
2
- import { checkFailureCase, DbError, DbErrorConflict, DbErrorInvalidData, DbErrorUnknown, } from "../dbService.js";
3
- import { transformObjectIdsToStrings } from "../utils/transformObjectIdsToStrings.js";
4
- import { transformStringToObjectIds } from "../utils/transformStringToObjectIds.js";
5
- import { runAfterUpdateManyHook, runBeforeUpdateManyHook, } from "../../api/hooks/runContentHooks.js";
2
+ import { checkFailureCase, DbError, DbErrorConflict, DbErrorInvalidData, DbErrorUnknown, } from "../dbService";
3
+ import { transformObjectIdsToStrings } from "../utils/transformObjectIdsToStrings";
4
+ import { transformStringToObjectIds } from "../utils/transformStringToObjectIds";
5
+ import { runAfterUpdateManyHook, runBeforeUpdateManyHook, } from "../../api/hooks/runContentHooks";
6
6
  export const updateManyHandler = (db, getService) => async (contentType, filter, data, options) => {
7
7
  checkFailureCase("UpdateError");
8
8
  const hookDb = getService();
@@ -1,6 +1,6 @@
1
1
  import type { Db } from "mongodb";
2
- import { type DBMutationOptions, type DBService } from "../dbService.js";
3
- import ContentType from "../../lib/ContentType.js";
4
- import { DataInput, DBOutput, Filter } from "../../lib/types/index.js";
2
+ import { type DBMutationOptions, type DBService } from "../dbService";
3
+ import ContentType from "../../lib/ContentType";
4
+ import { DataInput, DBOutput, Filter } from "../../lib/types";
5
5
  export declare const upsertHandler: (db: Db, getService: () => DBService) => <T extends ContentType>(contentType: T, filter: Filter<T>, data: DataInput<T>, options?: DBMutationOptions) => Promise<DBOutput<T>>;
6
6
  //# sourceMappingURL=upsert.d.ts.map