payload 4.0.0-internal.fa183d3 → 4.0.0-internal.fec2230

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 (999) hide show
  1. package/bin.js +14 -10
  2. package/dist/admin/RichText.d.ts +1 -1
  3. package/dist/admin/RichText.d.ts.map +1 -1
  4. package/dist/admin/RichText.js.map +1 -1
  5. package/dist/admin/adapters/devReload.d.ts +13 -0
  6. package/dist/admin/adapters/devReload.d.ts.map +1 -1
  7. package/dist/admin/adapters/devReload.js +14 -1
  8. package/dist/admin/adapters/devReload.js.map +1 -1
  9. package/dist/admin/functions/index.d.ts +11 -9
  10. package/dist/admin/functions/index.d.ts.map +1 -1
  11. package/dist/admin/functions/index.js.map +1 -1
  12. package/dist/admin/types.d.ts +3 -3
  13. package/dist/admin/types.d.ts.map +1 -1
  14. package/dist/admin/types.js.map +1 -1
  15. package/dist/admin/views/index.d.ts +2 -2
  16. package/dist/admin/views/index.d.ts.map +1 -1
  17. package/dist/admin/views/index.js.map +1 -1
  18. package/dist/auth/baseFields/apiKey.d.ts.map +1 -1
  19. package/dist/auth/baseFields/apiKey.js +16 -1
  20. package/dist/auth/baseFields/apiKey.js.map +1 -1
  21. package/dist/auth/crypto.d.ts +73 -2
  22. package/dist/auth/crypto.d.ts.map +1 -1
  23. package/dist/auth/crypto.js +90 -13
  24. package/dist/auth/crypto.js.map +1 -1
  25. package/dist/auth/endpoints/login.d.ts.map +1 -1
  26. package/dist/auth/endpoints/login.js +2 -11
  27. package/dist/auth/endpoints/login.js.map +1 -1
  28. package/dist/auth/endpoints/refresh.d.ts.map +1 -1
  29. package/dist/auth/endpoints/refresh.js +4 -6
  30. package/dist/auth/endpoints/refresh.js.map +1 -1
  31. package/dist/auth/executeAccess.d.ts +2 -1
  32. package/dist/auth/executeAccess.d.ts.map +1 -1
  33. package/dist/auth/executeAccess.js +2 -1
  34. package/dist/auth/executeAccess.js.map +1 -1
  35. package/dist/auth/getAccessResults.js +1 -0
  36. package/dist/auth/getAccessResults.js.map +1 -1
  37. package/dist/auth/getLoginOptions.js.map +1 -1
  38. package/dist/auth/loginWithCookie.d.ts +33 -0
  39. package/dist/auth/loginWithCookie.d.ts.map +1 -0
  40. package/dist/auth/loginWithCookie.js +34 -0
  41. package/dist/auth/loginWithCookie.js.map +1 -0
  42. package/dist/auth/operations/access.d.ts.map +1 -1
  43. package/dist/auth/operations/access.js +3 -9
  44. package/dist/auth/operations/access.js.map +1 -1
  45. package/dist/auth/operations/auth.d.ts.map +1 -1
  46. package/dist/auth/operations/auth.js +15 -21
  47. package/dist/auth/operations/auth.js.map +1 -1
  48. package/dist/auth/operations/me.d.ts +0 -7
  49. package/dist/auth/operations/me.d.ts.map +1 -1
  50. package/dist/auth/operations/me.js +0 -6
  51. package/dist/auth/operations/me.js.map +1 -1
  52. package/dist/auth/operations/refresh.d.ts +0 -7
  53. package/dist/auth/operations/refresh.d.ts.map +1 -1
  54. package/dist/auth/operations/refresh.js +0 -6
  55. package/dist/auth/operations/refresh.js.map +1 -1
  56. package/dist/auth/operations/unlock.d.ts.map +1 -1
  57. package/dist/auth/operations/unlock.js +1 -0
  58. package/dist/auth/operations/unlock.js.map +1 -1
  59. package/dist/auth/rotateSecret.d.ts +51 -0
  60. package/dist/auth/rotateSecret.d.ts.map +1 -0
  61. package/dist/auth/rotateSecret.js +131 -0
  62. package/dist/auth/rotateSecret.js.map +1 -0
  63. package/dist/auth/serverFunctions/cookies.d.ts +47 -0
  64. package/dist/auth/serverFunctions/cookies.d.ts.map +1 -0
  65. package/dist/auth/serverFunctions/cookies.js +52 -0
  66. package/dist/auth/serverFunctions/cookies.js.map +1 -0
  67. package/dist/auth/serverFunctions/login.d.ts +29 -0
  68. package/dist/auth/serverFunctions/login.d.ts.map +1 -0
  69. package/dist/auth/serverFunctions/login.js +63 -0
  70. package/dist/auth/serverFunctions/login.js.map +1 -0
  71. package/dist/auth/serverFunctions/logout.d.ts +17 -0
  72. package/dist/auth/serverFunctions/logout.d.ts.map +1 -0
  73. package/dist/auth/serverFunctions/logout.js +58 -0
  74. package/dist/auth/serverFunctions/logout.js.map +1 -0
  75. package/dist/auth/serverFunctions/refresh.d.ts +17 -0
  76. package/dist/auth/serverFunctions/refresh.d.ts.map +1 -0
  77. package/dist/auth/serverFunctions/refresh.js +61 -0
  78. package/dist/auth/serverFunctions/refresh.js.map +1 -0
  79. package/dist/auth/strategies/apiKey.d.ts.map +1 -1
  80. package/dist/auth/strategies/apiKey.js +5 -3
  81. package/dist/auth/strategies/apiKey.js.map +1 -1
  82. package/dist/auth/strategies/jwt.d.ts.map +1 -1
  83. package/dist/auth/strategies/jwt.js +23 -2
  84. package/dist/auth/strategies/jwt.js.map +1 -1
  85. package/dist/auth/types.d.ts +9 -14
  86. package/dist/auth/types.d.ts.map +1 -1
  87. package/dist/auth/types.js.map +1 -1
  88. package/dist/auth/withBaseAccess.d.ts +22 -0
  89. package/dist/auth/withBaseAccess.d.ts.map +1 -0
  90. package/dist/auth/withBaseAccess.js +61 -0
  91. package/dist/auth/withBaseAccess.js.map +1 -0
  92. package/dist/{bin → cli/commands/build}/build.d.ts +8 -13
  93. package/dist/cli/commands/build/build.d.ts.map +1 -0
  94. package/dist/{bin → cli/commands/build}/build.js +26 -27
  95. package/dist/cli/commands/build/build.js.map +1 -0
  96. package/dist/{bin → cli/commands/build}/build.spec.js +73 -85
  97. package/dist/cli/commands/build/build.spec.js.map +1 -0
  98. package/dist/cli/commands/build/index.d.ts +2 -0
  99. package/dist/cli/commands/build/index.d.ts.map +1 -0
  100. package/dist/cli/commands/build/index.js +26 -0
  101. package/dist/cli/commands/build/index.js.map +1 -0
  102. package/dist/cli/commands/collections/countDocuments.d.ts +2 -0
  103. package/dist/cli/commands/collections/countDocuments.d.ts.map +1 -0
  104. package/dist/cli/commands/collections/countDocuments.js +37 -0
  105. package/dist/cli/commands/collections/countDocuments.js.map +1 -0
  106. package/dist/cli/commands/collections/countVersions.d.ts +2 -0
  107. package/dist/cli/commands/collections/countVersions.d.ts.map +1 -0
  108. package/dist/cli/commands/collections/countVersions.js +36 -0
  109. package/dist/cli/commands/collections/countVersions.js.map +1 -0
  110. package/dist/cli/commands/collections/createDocuments.d.ts +2 -0
  111. package/dist/cli/commands/collections/createDocuments.d.ts.map +1 -0
  112. package/dist/cli/commands/collections/createDocuments.js +130 -0
  113. package/dist/cli/commands/collections/createDocuments.js.map +1 -0
  114. package/dist/cli/commands/collections/deleteDocuments.d.ts +2 -0
  115. package/dist/cli/commands/collections/deleteDocuments.d.ts.map +1 -0
  116. package/dist/cli/commands/collections/deleteDocuments.js +64 -0
  117. package/dist/cli/commands/collections/deleteDocuments.js.map +1 -0
  118. package/dist/cli/commands/collections/duplicateDocument.d.ts +2 -0
  119. package/dist/cli/commands/collections/duplicateDocument.d.ts.map +1 -0
  120. package/dist/cli/commands/collections/duplicateDocument.js +107 -0
  121. package/dist/cli/commands/collections/duplicateDocument.js.map +1 -0
  122. package/dist/cli/commands/collections/findDistinct.d.ts +2 -0
  123. package/dist/cli/commands/collections/findDistinct.d.ts.map +1 -0
  124. package/dist/cli/commands/collections/findDistinct.js +52 -0
  125. package/dist/cli/commands/collections/findDistinct.js.map +1 -0
  126. package/dist/cli/commands/collections/findDocuments.d.ts +2 -0
  127. package/dist/cli/commands/collections/findDocuments.d.ts.map +1 -0
  128. package/dist/cli/commands/collections/findDocuments.js +79 -0
  129. package/dist/cli/commands/collections/findDocuments.js.map +1 -0
  130. package/dist/cli/commands/collections/findVersionByID.d.ts +2 -0
  131. package/dist/cli/commands/collections/findVersionByID.d.ts.map +1 -0
  132. package/dist/cli/commands/collections/findVersionByID.js +48 -0
  133. package/dist/cli/commands/collections/findVersionByID.js.map +1 -0
  134. package/dist/cli/commands/collections/findVersions.d.ts +2 -0
  135. package/dist/cli/commands/collections/findVersions.d.ts.map +1 -0
  136. package/dist/cli/commands/collections/findVersions.js +57 -0
  137. package/dist/cli/commands/collections/findVersions.js.map +1 -0
  138. package/dist/cli/commands/collections/getCollectionSchema.d.ts +2 -0
  139. package/dist/cli/commands/collections/getCollectionSchema.d.ts.map +1 -0
  140. package/dist/cli/commands/collections/getCollectionSchema.js +49 -0
  141. package/dist/cli/commands/collections/getCollectionSchema.js.map +1 -0
  142. package/dist/cli/commands/collections/restoreVersion.d.ts +2 -0
  143. package/dist/cli/commands/collections/restoreVersion.d.ts.map +1 -0
  144. package/dist/cli/commands/collections/restoreVersion.js +47 -0
  145. package/dist/cli/commands/collections/restoreVersion.js.map +1 -0
  146. package/dist/cli/commands/collections/updateDocument.d.ts +2 -0
  147. package/dist/cli/commands/collections/updateDocument.d.ts.map +1 -0
  148. package/dist/cli/commands/collections/updateDocument.js +190 -0
  149. package/dist/cli/commands/collections/updateDocument.js.map +1 -0
  150. package/dist/cli/commands/data/input.d.ts +28 -0
  151. package/dist/cli/commands/data/input.d.ts.map +1 -0
  152. package/dist/cli/commands/data/input.js +76 -0
  153. package/dist/cli/commands/data/input.js.map +1 -0
  154. package/dist/cli/commands/data/utilities.d.ts +65 -0
  155. package/dist/cli/commands/data/utilities.d.ts.map +1 -0
  156. package/dist/cli/commands/data/utilities.js +67 -0
  157. package/dist/cli/commands/data/utilities.js.map +1 -0
  158. package/dist/cli/commands/generateDBSchema.d.ts +2 -0
  159. package/dist/cli/commands/generateDBSchema.d.ts.map +1 -0
  160. package/dist/cli/commands/generateDBSchema.js +29 -0
  161. package/dist/cli/commands/generateDBSchema.js.map +1 -0
  162. package/dist/cli/commands/generateImportMap/frameworkConventions.d.ts.map +1 -0
  163. package/dist/cli/commands/generateImportMap/frameworkConventions.js.map +1 -0
  164. package/dist/{bin/generateImportMap/index.d.ts → cli/commands/generateImportMap/generateImportMap.d.ts} +8 -4
  165. package/dist/cli/commands/generateImportMap/generateImportMap.d.ts.map +1 -0
  166. package/dist/{bin/generateImportMap/index.js → cli/commands/generateImportMap/generateImportMap.js} +9 -4
  167. package/dist/cli/commands/generateImportMap/generateImportMap.js.map +1 -0
  168. package/dist/cli/commands/generateImportMap/generateImportMap.spec.js.map +1 -0
  169. package/dist/cli/commands/generateImportMap/index.d.ts +2 -0
  170. package/dist/cli/commands/generateImportMap/index.d.ts.map +1 -0
  171. package/dist/cli/commands/generateImportMap/index.js +18 -0
  172. package/dist/cli/commands/generateImportMap/index.js.map +1 -0
  173. package/dist/{bin → cli/commands}/generateImportMap/iterateCollections.d.ts +3 -3
  174. package/dist/cli/commands/generateImportMap/iterateCollections.d.ts.map +1 -0
  175. package/dist/cli/commands/generateImportMap/iterateCollections.js.map +1 -0
  176. package/dist/{bin → cli/commands}/generateImportMap/iterateConfig.d.ts +2 -2
  177. package/dist/cli/commands/generateImportMap/iterateConfig.d.ts.map +1 -0
  178. package/dist/{bin → cli/commands}/generateImportMap/iterateConfig.js +1 -1
  179. package/dist/cli/commands/generateImportMap/iterateConfig.js.map +1 -0
  180. package/dist/{bin → cli/commands}/generateImportMap/iterateFields.d.ts +3 -3
  181. package/dist/cli/commands/generateImportMap/iterateFields.d.ts.map +1 -0
  182. package/dist/cli/commands/generateImportMap/iterateFields.js.map +1 -0
  183. package/dist/{bin → cli/commands}/generateImportMap/iterateGlobals.d.ts +3 -3
  184. package/dist/cli/commands/generateImportMap/iterateGlobals.d.ts.map +1 -0
  185. package/dist/cli/commands/generateImportMap/iterateGlobals.js.map +1 -0
  186. package/dist/{bin → cli/commands}/generateImportMap/utilities/addPayloadComponentToImportMap.d.ts +2 -2
  187. package/dist/cli/commands/generateImportMap/utilities/addPayloadComponentToImportMap.d.ts.map +1 -0
  188. package/dist/cli/commands/generateImportMap/utilities/addPayloadComponentToImportMap.js.map +1 -0
  189. package/dist/{bin → cli/commands}/generateImportMap/utilities/getFromImportMap.d.ts +2 -2
  190. package/dist/cli/commands/generateImportMap/utilities/getFromImportMap.d.ts.map +1 -0
  191. package/dist/cli/commands/generateImportMap/utilities/getFromImportMap.js.map +1 -0
  192. package/dist/cli/commands/generateImportMap/utilities/getImportMapToBaseDirPath.d.ts.map +1 -0
  193. package/dist/cli/commands/generateImportMap/utilities/getImportMapToBaseDirPath.js.map +1 -0
  194. package/dist/{bin → cli/commands}/generateImportMap/utilities/parsePayloadComponent.d.ts +1 -1
  195. package/dist/cli/commands/generateImportMap/utilities/parsePayloadComponent.d.ts.map +1 -0
  196. package/dist/cli/commands/generateImportMap/utilities/parsePayloadComponent.js.map +1 -0
  197. package/dist/cli/commands/generateImportMap/utilities/resolveImportMapFilePath.d.ts.map +1 -0
  198. package/dist/{bin → cli/commands}/generateImportMap/utilities/resolveImportMapFilePath.js +1 -1
  199. package/dist/cli/commands/generateImportMap/utilities/resolveImportMapFilePath.js.map +1 -0
  200. package/dist/cli/commands/generateTypes.d.ts +12 -0
  201. package/dist/cli/commands/generateTypes.d.ts.map +1 -0
  202. package/dist/{bin → cli/commands}/generateTypes.js +33 -7
  203. package/dist/cli/commands/generateTypes.js.map +1 -0
  204. package/dist/cli/commands/getConfigInfo.d.ts +2 -0
  205. package/dist/cli/commands/getConfigInfo.d.ts.map +1 -0
  206. package/dist/cli/commands/getConfigInfo.js +23 -0
  207. package/dist/cli/commands/getConfigInfo.js.map +1 -0
  208. package/dist/cli/commands/globals/countGlobalVersions.d.ts +2 -0
  209. package/dist/cli/commands/globals/countGlobalVersions.d.ts.map +1 -0
  210. package/dist/cli/commands/globals/countGlobalVersions.js +36 -0
  211. package/dist/cli/commands/globals/countGlobalVersions.js.map +1 -0
  212. package/dist/cli/commands/globals/findGlobal.d.ts +2 -0
  213. package/dist/cli/commands/globals/findGlobal.d.ts.map +1 -0
  214. package/dist/cli/commands/globals/findGlobal.js +42 -0
  215. package/dist/cli/commands/globals/findGlobal.js.map +1 -0
  216. package/dist/cli/commands/globals/findGlobalVersionByID.d.ts +2 -0
  217. package/dist/cli/commands/globals/findGlobalVersionByID.d.ts.map +1 -0
  218. package/dist/cli/commands/globals/findGlobalVersionByID.js +46 -0
  219. package/dist/cli/commands/globals/findGlobalVersionByID.js.map +1 -0
  220. package/dist/cli/commands/globals/findGlobalVersions.d.ts +2 -0
  221. package/dist/cli/commands/globals/findGlobalVersions.d.ts.map +1 -0
  222. package/dist/cli/commands/globals/findGlobalVersions.js +55 -0
  223. package/dist/cli/commands/globals/findGlobalVersions.js.map +1 -0
  224. package/dist/cli/commands/globals/getGlobalSchema.d.ts +2 -0
  225. package/dist/cli/commands/globals/getGlobalSchema.d.ts.map +1 -0
  226. package/dist/cli/commands/globals/getGlobalSchema.js +34 -0
  227. package/dist/cli/commands/globals/getGlobalSchema.js.map +1 -0
  228. package/dist/cli/commands/globals/restoreGlobalVersion.d.ts +2 -0
  229. package/dist/cli/commands/globals/restoreGlobalVersion.d.ts.map +1 -0
  230. package/dist/cli/commands/globals/restoreGlobalVersion.js +46 -0
  231. package/dist/cli/commands/globals/restoreGlobalVersion.js.map +1 -0
  232. package/dist/cli/commands/globals/updateGlobal.d.ts +2 -0
  233. package/dist/cli/commands/globals/updateGlobal.d.ts.map +1 -0
  234. package/dist/cli/commands/globals/updateGlobal.js +93 -0
  235. package/dist/cli/commands/globals/updateGlobal.js.map +1 -0
  236. package/dist/cli/commands/help.d.ts +2 -0
  237. package/dist/cli/commands/help.d.ts.map +1 -0
  238. package/dist/cli/commands/help.js +42 -0
  239. package/dist/cli/commands/help.js.map +1 -0
  240. package/dist/cli/commands/info.d.ts +2 -0
  241. package/dist/cli/commands/info.d.ts.map +1 -0
  242. package/dist/cli/commands/info.js +78 -0
  243. package/dist/cli/commands/info.js.map +1 -0
  244. package/dist/cli/commands/jobs/handleSchedules.d.ts +2 -0
  245. package/dist/cli/commands/jobs/handleSchedules.d.ts.map +1 -0
  246. package/dist/cli/commands/jobs/handleSchedules.js +17 -0
  247. package/dist/cli/commands/jobs/handleSchedules.js.map +1 -0
  248. package/dist/cli/commands/jobs/run.d.ts +2 -0
  249. package/dist/cli/commands/jobs/run.d.ts.map +1 -0
  250. package/dist/cli/commands/jobs/run.js +29 -0
  251. package/dist/cli/commands/jobs/run.js.map +1 -0
  252. package/dist/cli/commands/migrate/create.d.ts +2 -0
  253. package/dist/cli/commands/migrate/create.d.ts.map +1 -0
  254. package/dist/cli/commands/migrate/create.js +44 -0
  255. package/dist/cli/commands/migrate/create.js.map +1 -0
  256. package/dist/cli/commands/migrate/down.d.ts +2 -0
  257. package/dist/cli/commands/migrate/down.d.ts.map +1 -0
  258. package/dist/cli/commands/migrate/down.js +22 -0
  259. package/dist/cli/commands/migrate/down.js.map +1 -0
  260. package/dist/cli/commands/migrate/fresh.d.ts +2 -0
  261. package/dist/cli/commands/migrate/fresh.d.ts.map +1 -0
  262. package/dist/cli/commands/migrate/fresh.js +28 -0
  263. package/dist/cli/commands/migrate/fresh.js.map +1 -0
  264. package/dist/cli/commands/migrate/initialize.d.ts +11 -0
  265. package/dist/cli/commands/migrate/initialize.d.ts.map +1 -0
  266. package/dist/cli/commands/migrate/initialize.js +17 -0
  267. package/dist/cli/commands/migrate/initialize.js.map +1 -0
  268. package/dist/cli/commands/migrate/refresh.d.ts +2 -0
  269. package/dist/cli/commands/migrate/refresh.d.ts.map +1 -0
  270. package/dist/cli/commands/migrate/refresh.js +22 -0
  271. package/dist/cli/commands/migrate/refresh.js.map +1 -0
  272. package/dist/cli/commands/migrate/reset.d.ts +2 -0
  273. package/dist/cli/commands/migrate/reset.d.ts.map +1 -0
  274. package/dist/cli/commands/migrate/reset.js +22 -0
  275. package/dist/cli/commands/migrate/reset.js.map +1 -0
  276. package/dist/cli/commands/migrate/run.d.ts +2 -0
  277. package/dist/cli/commands/migrate/run.d.ts.map +1 -0
  278. package/dist/cli/commands/migrate/run.js +28 -0
  279. package/dist/cli/commands/migrate/run.js.map +1 -0
  280. package/dist/cli/commands/migrate/status.d.ts +2 -0
  281. package/dist/cli/commands/migrate/status.d.ts.map +1 -0
  282. package/dist/cli/commands/migrate/status.js +22 -0
  283. package/dist/cli/commands/migrate/status.js.map +1 -0
  284. package/dist/cli/commands/run.d.ts +2 -0
  285. package/dist/cli/commands/run.d.ts.map +1 -0
  286. package/dist/cli/commands/run.js +45 -0
  287. package/dist/cli/commands/run.js.map +1 -0
  288. package/dist/cli/defineCLICommand.d.ts +32 -0
  289. package/dist/cli/defineCLICommand.d.ts.map +1 -0
  290. package/dist/cli/defineCLICommand.js +26 -0
  291. package/dist/cli/defineCLICommand.js.map +1 -0
  292. package/dist/cli/index.d.ts +7 -0
  293. package/dist/cli/index.d.ts.map +1 -0
  294. package/dist/cli/index.js +95 -0
  295. package/dist/cli/index.js.map +1 -0
  296. package/dist/cli/index.spec.js +402 -0
  297. package/dist/cli/index.spec.js.map +1 -0
  298. package/dist/cli/program/createHelp.d.ts +8 -0
  299. package/dist/cli/program/createHelp.d.ts.map +1 -0
  300. package/dist/cli/program/createHelp.js +26 -0
  301. package/dist/cli/program/createHelp.js.map +1 -0
  302. package/dist/cli/program/loadCommands.d.ts +12 -0
  303. package/dist/cli/program/loadCommands.d.ts.map +1 -0
  304. package/dist/cli/program/loadCommands.js +62 -0
  305. package/dist/cli/program/loadCommands.js.map +1 -0
  306. package/dist/cli/program/normalizeHelpArguments.d.ts +12 -0
  307. package/dist/cli/program/normalizeHelpArguments.d.ts.map +1 -0
  308. package/dist/cli/program/normalizeHelpArguments.js +34 -0
  309. package/dist/cli/program/normalizeHelpArguments.js.map +1 -0
  310. package/dist/cli/program/registerCommand.d.ts +10 -0
  311. package/dist/cli/program/registerCommand.d.ts.map +1 -0
  312. package/dist/cli/program/registerCommand.js +185 -0
  313. package/dist/cli/program/registerCommand.js.map +1 -0
  314. package/dist/cli/runtime/createRuntime.d.ts +9 -0
  315. package/dist/cli/runtime/createRuntime.d.ts.map +1 -0
  316. package/dist/cli/runtime/createRuntime.js +81 -0
  317. package/dist/cli/runtime/createRuntime.js.map +1 -0
  318. package/dist/cli/runtime/getCommandInput.d.ts +17 -0
  319. package/dist/cli/runtime/getCommandInput.d.ts.map +1 -0
  320. package/dist/cli/runtime/getCommandInput.js +86 -0
  321. package/dist/cli/runtime/getCommandInput.js.map +1 -0
  322. package/dist/cli/runtime/getCommandInput.spec.js +74 -0
  323. package/dist/cli/runtime/getCommandInput.spec.js.map +1 -0
  324. package/dist/cli/runtime/invokeCommand.d.ts +23 -0
  325. package/dist/cli/runtime/invokeCommand.d.ts.map +1 -0
  326. package/dist/cli/runtime/invokeCommand.js +107 -0
  327. package/dist/cli/runtime/invokeCommand.js.map +1 -0
  328. package/dist/cli/runtime/loadEnv.d.ts.map +1 -0
  329. package/dist/{bin → cli/runtime}/loadEnv.js +1 -1
  330. package/dist/cli/runtime/loadEnv.js.map +1 -0
  331. package/dist/cli/runtime/output.d.ts +50 -0
  332. package/dist/cli/runtime/output.d.ts.map +1 -0
  333. package/dist/cli/runtime/output.js +125 -0
  334. package/dist/cli/runtime/output.js.map +1 -0
  335. package/dist/cli/runtime/redirectOutputToStderr.d.ts +8 -0
  336. package/dist/cli/runtime/redirectOutputToStderr.d.ts.map +1 -0
  337. package/dist/cli/runtime/redirectOutputToStderr.js +31 -0
  338. package/dist/cli/runtime/redirectOutputToStderr.js.map +1 -0
  339. package/dist/collections/config/client.d.ts +9 -3
  340. package/dist/collections/config/client.d.ts.map +1 -1
  341. package/dist/collections/config/client.js +6 -1
  342. package/dist/collections/config/client.js.map +1 -1
  343. package/dist/collections/config/defaults.d.ts +4 -4
  344. package/dist/collections/config/defaults.d.ts.map +1 -1
  345. package/dist/collections/config/defaults.js +37 -32
  346. package/dist/collections/config/defaults.js.map +1 -1
  347. package/dist/collections/config/sanitize.d.ts +4 -8
  348. package/dist/collections/config/sanitize.d.ts.map +1 -1
  349. package/dist/collections/config/sanitize.js +31 -21
  350. package/dist/collections/config/sanitize.js.map +1 -1
  351. package/dist/collections/config/sanitize.spec.js +363 -1
  352. package/dist/collections/config/sanitize.spec.js.map +1 -1
  353. package/dist/collections/config/types.d.ts +54 -49
  354. package/dist/collections/config/types.d.ts.map +1 -1
  355. package/dist/collections/config/types.js.map +1 -1
  356. package/dist/collections/config/useAsTitle.spec.js +27 -27
  357. package/dist/collections/config/useAsTitle.spec.js.map +1 -1
  358. package/dist/collections/operations/count.d.ts.map +1 -1
  359. package/dist/collections/operations/count.js +65 -70
  360. package/dist/collections/operations/count.js.map +1 -1
  361. package/dist/collections/operations/countVersions.d.ts.map +1 -1
  362. package/dist/collections/operations/countVersions.js +61 -66
  363. package/dist/collections/operations/countVersions.js.map +1 -1
  364. package/dist/collections/operations/create.d.ts.map +1 -1
  365. package/dist/collections/operations/create.js +22 -0
  366. package/dist/collections/operations/create.js.map +1 -1
  367. package/dist/collections/operations/delete.d.ts.map +1 -1
  368. package/dist/collections/operations/delete.js +215 -129
  369. package/dist/collections/operations/delete.js.map +1 -1
  370. package/dist/collections/operations/deleteByID.d.ts.map +1 -1
  371. package/dist/collections/operations/deleteByID.js +1 -0
  372. package/dist/collections/operations/deleteByID.js.map +1 -1
  373. package/dist/collections/operations/docAccess.d.ts.map +1 -1
  374. package/dist/collections/operations/docAccess.js +19 -25
  375. package/dist/collections/operations/docAccess.js.map +1 -1
  376. package/dist/collections/operations/find.d.ts.map +1 -1
  377. package/dist/collections/operations/find.js +248 -246
  378. package/dist/collections/operations/find.js.map +1 -1
  379. package/dist/collections/operations/findByID.d.ts.map +1 -1
  380. package/dist/collections/operations/findByID.js +215 -220
  381. package/dist/collections/operations/findByID.js.map +1 -1
  382. package/dist/collections/operations/findDistinct.d.ts.map +1 -1
  383. package/dist/collections/operations/findDistinct.js +161 -159
  384. package/dist/collections/operations/findDistinct.js.map +1 -1
  385. package/dist/collections/operations/findVersionByID.d.ts.map +1 -1
  386. package/dist/collections/operations/findVersionByID.js +131 -136
  387. package/dist/collections/operations/findVersionByID.js.map +1 -1
  388. package/dist/collections/operations/findVersions.d.ts.map +1 -1
  389. package/dist/collections/operations/findVersions.js +152 -149
  390. package/dist/collections/operations/findVersions.js.map +1 -1
  391. package/dist/collections/operations/inputSchemas.d.ts +877 -0
  392. package/dist/collections/operations/inputSchemas.d.ts.map +1 -0
  393. package/dist/collections/operations/inputSchemas.js +217 -0
  394. package/dist/collections/operations/inputSchemas.js.map +1 -0
  395. package/dist/collections/operations/restoreVersion.d.ts.map +1 -1
  396. package/dist/collections/operations/restoreVersion.js +8 -4
  397. package/dist/collections/operations/restoreVersion.js.map +1 -1
  398. package/dist/collections/operations/update.d.ts.map +1 -1
  399. package/dist/collections/operations/update.js +20 -1
  400. package/dist/collections/operations/update.js.map +1 -1
  401. package/dist/collections/operations/updateByID.d.ts.map +1 -1
  402. package/dist/collections/operations/updateByID.js +13 -0
  403. package/dist/collections/operations/updateByID.js.map +1 -1
  404. package/dist/config/build.js +1 -1
  405. package/dist/config/build.js.map +1 -1
  406. package/dist/config/client.d.ts +2 -2
  407. package/dist/config/client.d.ts.map +1 -1
  408. package/dist/config/client.js +2 -1
  409. package/dist/config/client.js.map +1 -1
  410. package/dist/config/client.spec.js +20 -0
  411. package/dist/config/client.spec.js.map +1 -0
  412. package/dist/config/defaults.d.ts.map +1 -1
  413. package/dist/config/defaults.js +95 -42
  414. package/dist/config/defaults.js.map +1 -1
  415. package/dist/config/orderable/index.d.ts +1 -1
  416. package/dist/config/orderable/index.d.ts.map +1 -1
  417. package/dist/config/orderable/index.js +3 -2
  418. package/dist/config/orderable/index.js.map +1 -1
  419. package/dist/config/sanitize.d.ts +1 -1
  420. package/dist/config/sanitize.d.ts.map +1 -1
  421. package/dist/config/sanitize.js +42 -32
  422. package/dist/config/sanitize.js.map +1 -1
  423. package/dist/config/sanitize.spec.js +105 -0
  424. package/dist/config/sanitize.spec.js.map +1 -0
  425. package/dist/config/types.d.ts +495 -422
  426. package/dist/config/types.d.ts.map +1 -1
  427. package/dist/config/types.js.map +1 -1
  428. package/dist/database/createDatabaseAdapter.d.ts +1 -1
  429. package/dist/database/createDatabaseAdapter.d.ts.map +1 -1
  430. package/dist/database/createDatabaseAdapter.js +0 -2
  431. package/dist/database/createDatabaseAdapter.js.map +1 -1
  432. package/dist/database/isNestedRelationshipQuery.d.ts +14 -0
  433. package/dist/database/isNestedRelationshipQuery.d.ts.map +1 -0
  434. package/dist/database/isNestedRelationshipQuery.js +19 -0
  435. package/dist/database/isNestedRelationshipQuery.js.map +1 -0
  436. package/dist/database/migrations/createMigration.d.ts.map +1 -1
  437. package/dist/database/migrations/createMigration.js +4 -0
  438. package/dist/database/migrations/createMigration.js.map +1 -1
  439. package/dist/database/migrations/getPredefinedMigration.js +2 -2
  440. package/dist/database/migrations/getPredefinedMigration.js.map +1 -1
  441. package/dist/database/migrations/migrate.d.ts.map +1 -1
  442. package/dist/database/migrations/migrate.js +9 -0
  443. package/dist/database/migrations/migrate.js.map +1 -1
  444. package/dist/database/migrations/migrateDown.d.ts +2 -2
  445. package/dist/database/migrations/migrateDown.d.ts.map +1 -1
  446. package/dist/database/migrations/migrateDown.js +12 -2
  447. package/dist/database/migrations/migrateDown.js.map +1 -1
  448. package/dist/database/migrations/migrateRefresh.d.ts +2 -2
  449. package/dist/database/migrations/migrateRefresh.d.ts.map +1 -1
  450. package/dist/database/migrations/migrateRefresh.js +10 -2
  451. package/dist/database/migrations/migrateRefresh.js.map +1 -1
  452. package/dist/database/migrations/migrateReset.d.ts +2 -2
  453. package/dist/database/migrations/migrateReset.d.ts.map +1 -1
  454. package/dist/database/migrations/migrateReset.js +11 -1
  455. package/dist/database/migrations/migrateReset.js.map +1 -1
  456. package/dist/database/migrations/migrateStatus.d.ts +2 -2
  457. package/dist/database/migrations/migrateStatus.d.ts.map +1 -1
  458. package/dist/database/migrations/migrateStatus.js +11 -6
  459. package/dist/database/migrations/migrateStatus.js.map +1 -1
  460. package/dist/database/queryValidation/validateQueryPaths.d.ts.map +1 -1
  461. package/dist/database/queryValidation/validateQueryPaths.js +8 -1
  462. package/dist/database/queryValidation/validateQueryPaths.js.map +1 -1
  463. package/dist/database/queryValidation/validateSearchParams.d.ts.map +1 -1
  464. package/dist/database/queryValidation/validateSearchParams.js +21 -4
  465. package/dist/database/queryValidation/validateSearchParams.js.map +1 -1
  466. package/dist/database/queryValidation/validateSortQuery.d.ts +23 -0
  467. package/dist/database/queryValidation/validateSortQuery.d.ts.map +1 -0
  468. package/dist/database/queryValidation/validateSortQuery.js +54 -0
  469. package/dist/database/queryValidation/validateSortQuery.js.map +1 -0
  470. package/dist/database/sanitizeJoinQuery.d.ts.map +1 -1
  471. package/dist/database/sanitizeJoinQuery.js +7 -0
  472. package/dist/database/sanitizeJoinQuery.js.map +1 -1
  473. package/dist/database/sanitizeWhereQuery.d.ts +1 -1
  474. package/dist/database/sanitizeWhereQuery.d.ts.map +1 -1
  475. package/dist/database/sanitizeWhereQuery.js +44 -1
  476. package/dist/database/sanitizeWhereQuery.js.map +1 -1
  477. package/dist/database/types.d.ts +36 -8
  478. package/dist/database/types.d.ts.map +1 -1
  479. package/dist/database/types.js.map +1 -1
  480. package/dist/duplicateDocument/index.js +1 -0
  481. package/dist/duplicateDocument/index.js.map +1 -1
  482. package/dist/exports/auth.d.ts +5 -0
  483. package/dist/exports/auth.d.ts.map +1 -0
  484. package/dist/exports/auth.js +6 -0
  485. package/dist/exports/auth.js.map +1 -0
  486. package/dist/exports/cli.d.ts +4 -0
  487. package/dist/exports/cli.d.ts.map +1 -0
  488. package/dist/exports/cli.js +4 -0
  489. package/dist/exports/cli.js.map +1 -0
  490. package/dist/exports/cliBuiltin.d.ts +37 -0
  491. package/dist/exports/cliBuiltin.d.ts.map +1 -0
  492. package/dist/exports/cliBuiltin.js +38 -0
  493. package/dist/exports/cliBuiltin.js.map +1 -0
  494. package/dist/exports/internal.d.ts +7 -1
  495. package/dist/exports/internal.d.ts.map +1 -1
  496. package/dist/exports/internal.js +6 -1
  497. package/dist/exports/internal.js.map +1 -1
  498. package/dist/exports/node.d.ts +2 -2
  499. package/dist/exports/node.d.ts.map +1 -1
  500. package/dist/exports/node.js +2 -2
  501. package/dist/exports/node.js.map +1 -1
  502. package/dist/exports/shared.d.ts +5 -3
  503. package/dist/exports/shared.d.ts.map +1 -1
  504. package/dist/exports/shared.js +4 -3
  505. package/dist/exports/shared.js.map +1 -1
  506. package/dist/fields/baseFields/slug/duplicateContext.d.ts +11 -0
  507. package/dist/fields/baseFields/slug/duplicateContext.d.ts.map +1 -0
  508. package/dist/fields/baseFields/slug/duplicateContext.js +21 -0
  509. package/dist/fields/baseFields/slug/duplicateContext.js.map +1 -0
  510. package/dist/fields/baseFields/slug/fillEmptyLocalizedSlugs.d.ts +23 -0
  511. package/dist/fields/baseFields/slug/fillEmptyLocalizedSlugs.d.ts.map +1 -0
  512. package/dist/fields/baseFields/slug/fillEmptyLocalizedSlugs.js +65 -0
  513. package/dist/fields/baseFields/slug/fillEmptyLocalizedSlugs.js.map +1 -0
  514. package/dist/fields/baseFields/slug/generateSlug.d.ts +13 -8
  515. package/dist/fields/baseFields/slug/generateSlug.d.ts.map +1 -1
  516. package/dist/fields/baseFields/slug/generateSlug.js +102 -45
  517. package/dist/fields/baseFields/slug/generateSlug.js.map +1 -1
  518. package/dist/fields/baseFields/slug/generateSlugBeforeDuplicate.d.ts +18 -0
  519. package/dist/fields/baseFields/slug/generateSlugBeforeDuplicate.d.ts.map +1 -0
  520. package/dist/fields/baseFields/slug/generateSlugBeforeDuplicate.js +20 -0
  521. package/dist/fields/baseFields/slug/generateSlugBeforeDuplicate.js.map +1 -0
  522. package/dist/fields/baseFields/slug/getSlugFallbackValue.d.ts +23 -0
  523. package/dist/fields/baseFields/slug/getSlugFallbackValue.d.ts.map +1 -0
  524. package/dist/fields/baseFields/slug/getSlugFallbackValue.js +24 -0
  525. package/dist/fields/baseFields/slug/getSlugFallbackValue.js.map +1 -0
  526. package/dist/fields/baseFields/slug/hasValue.d.ts +3 -0
  527. package/dist/fields/baseFields/slug/hasValue.d.ts.map +1 -0
  528. package/dist/fields/baseFields/slug/hasValue.js +3 -0
  529. package/dist/fields/baseFields/slug/hasValue.js.map +1 -0
  530. package/dist/fields/config/client.d.ts +1 -1
  531. package/dist/fields/config/client.d.ts.map +1 -1
  532. package/dist/fields/config/client.js +1 -1
  533. package/dist/fields/config/client.js.map +1 -1
  534. package/dist/fields/config/reservedFieldNames.spec.js +18 -18
  535. package/dist/fields/config/reservedFieldNames.spec.js.map +1 -1
  536. package/dist/fields/config/sanitize.d.ts +6 -6
  537. package/dist/fields/config/sanitize.d.ts.map +1 -1
  538. package/dist/fields/config/sanitize.js +32 -22
  539. package/dist/fields/config/sanitize.js.map +1 -1
  540. package/dist/fields/config/sanitize.spec.js +105 -105
  541. package/dist/fields/config/sanitize.spec.js.map +1 -1
  542. package/dist/fields/config/types.d.ts +4 -3
  543. package/dist/fields/config/types.d.ts.map +1 -1
  544. package/dist/fields/config/types.js +1 -1
  545. package/dist/fields/config/types.js.map +1 -1
  546. package/dist/fields/hooks/beforeChange/promise.d.ts.map +1 -1
  547. package/dist/fields/hooks/beforeChange/promise.js +1 -0
  548. package/dist/fields/hooks/beforeChange/promise.js.map +1 -1
  549. package/dist/fields/hooks/beforeValidate/traverseFields.d.ts.map +1 -1
  550. package/dist/fields/hooks/beforeValidate/traverseFields.js +2 -0
  551. package/dist/fields/hooks/beforeValidate/traverseFields.js.map +1 -1
  552. package/dist/fields/validations.d.ts.map +1 -1
  553. package/dist/fields/validations.js +7 -8
  554. package/dist/fields/validations.js.map +1 -1
  555. package/dist/fields/validations.spec.js +61 -37
  556. package/dist/fields/validations.spec.js.map +1 -1
  557. package/dist/globals/config/client.d.ts +1 -1
  558. package/dist/globals/config/client.d.ts.map +1 -1
  559. package/dist/globals/config/client.js.map +1 -1
  560. package/dist/globals/config/sanitize.d.ts +3 -7
  561. package/dist/globals/config/sanitize.d.ts.map +1 -1
  562. package/dist/globals/config/sanitize.js +26 -6
  563. package/dist/globals/config/sanitize.js.map +1 -1
  564. package/dist/globals/config/sanitize.spec.js +227 -8
  565. package/dist/globals/config/sanitize.spec.js.map +1 -1
  566. package/dist/globals/config/types.d.ts +21 -16
  567. package/dist/globals/config/types.d.ts.map +1 -1
  568. package/dist/globals/config/types.js.map +1 -1
  569. package/dist/globals/operations/countGlobalVersions.d.ts.map +1 -1
  570. package/dist/globals/operations/countGlobalVersions.js +51 -55
  571. package/dist/globals/operations/countGlobalVersions.js.map +1 -1
  572. package/dist/globals/operations/docAccess.d.ts.map +1 -1
  573. package/dist/globals/operations/docAccess.js +19 -25
  574. package/dist/globals/operations/docAccess.js.map +1 -1
  575. package/dist/globals/operations/findOne.d.ts.map +1 -1
  576. package/dist/globals/operations/findOne.js +169 -174
  577. package/dist/globals/operations/findOne.js.map +1 -1
  578. package/dist/globals/operations/findVersionByID.d.ts.map +1 -1
  579. package/dist/globals/operations/findVersionByID.js +104 -109
  580. package/dist/globals/operations/findVersionByID.js.map +1 -1
  581. package/dist/globals/operations/findVersions.d.ts.map +1 -1
  582. package/dist/globals/operations/findVersions.js +112 -109
  583. package/dist/globals/operations/findVersions.js.map +1 -1
  584. package/dist/globals/operations/inputSchemas.d.ts +365 -0
  585. package/dist/globals/operations/inputSchemas.d.ts.map +1 -0
  586. package/dist/globals/operations/inputSchemas.js +104 -0
  587. package/dist/globals/operations/inputSchemas.js.map +1 -0
  588. package/dist/globals/operations/restoreVersion.js +1 -0
  589. package/dist/globals/operations/restoreVersion.js.map +1 -1
  590. package/dist/globals/operations/update.d.ts.map +1 -1
  591. package/dist/globals/operations/update.js +1 -0
  592. package/dist/globals/operations/update.js.map +1 -1
  593. package/dist/hierarchy/addHierarchyToCollection.js +2 -0
  594. package/dist/hierarchy/addHierarchyToCollection.js.map +1 -1
  595. package/dist/index.bundled.d.ts +5837 -4141
  596. package/dist/index.d.ts +97 -38
  597. package/dist/index.d.ts.map +1 -1
  598. package/dist/index.js +84 -63
  599. package/dist/index.js.map +1 -1
  600. package/dist/query-presets/constraints.js +1 -1
  601. package/dist/query-presets/constraints.js.map +1 -1
  602. package/dist/queues/config/collection.d.ts.map +1 -1
  603. package/dist/queues/config/collection.js +43 -43
  604. package/dist/queues/config/collection.js.map +1 -1
  605. package/dist/queues/config/global.d.ts +5 -6
  606. package/dist/queues/config/global.d.ts.map +1 -1
  607. package/dist/queues/config/global.js +1 -1
  608. package/dist/queues/config/global.js.map +1 -1
  609. package/dist/queues/config/types/index.d.ts +31 -24
  610. package/dist/queues/config/types/index.d.ts.map +1 -1
  611. package/dist/queues/config/types/index.js.map +1 -1
  612. package/dist/queues/config/types/taskTypes.d.ts +4 -7
  613. package/dist/queues/config/types/taskTypes.d.ts.map +1 -1
  614. package/dist/queues/config/types/taskTypes.js.map +1 -1
  615. package/dist/queues/config/types/workflowJSONTypes.d.ts +10 -9
  616. package/dist/queues/config/types/workflowJSONTypes.d.ts.map +1 -1
  617. package/dist/queues/config/types/workflowJSONTypes.js.map +1 -1
  618. package/dist/queues/config/types/workflowTypes.d.ts +11 -58
  619. package/dist/queues/config/types/workflowTypes.d.ts.map +1 -1
  620. package/dist/queues/config/types/workflowTypes.js.map +1 -1
  621. package/dist/queues/endpoints/handleSchedules.d.ts.map +1 -1
  622. package/dist/queues/endpoints/handleSchedules.js +3 -2
  623. package/dist/queues/endpoints/handleSchedules.js.map +1 -1
  624. package/dist/queues/endpoints/run.d.ts.map +1 -1
  625. package/dist/queues/endpoints/run.js +2 -1
  626. package/dist/queues/endpoints/run.js.map +1 -1
  627. package/dist/queues/errors/handleTaskError.js +4 -4
  628. package/dist/queues/errors/handleTaskError.js.map +1 -1
  629. package/dist/queues/errors/handleWorkflowError.js +1 -1
  630. package/dist/queues/errors/handleWorkflowError.js.map +1 -1
  631. package/dist/queues/errors/index.d.ts +6 -0
  632. package/dist/queues/errors/index.d.ts.map +1 -1
  633. package/dist/queues/errors/index.js +5 -0
  634. package/dist/queues/errors/index.js.map +1 -1
  635. package/dist/queues/localAPI.d.ts +4 -4
  636. package/dist/queues/localAPI.d.ts.map +1 -1
  637. package/dist/queues/localAPI.js +63 -66
  638. package/dist/queues/localAPI.js.map +1 -1
  639. package/dist/queues/operations/handleSchedules/countRunnableOrActiveJobsForQueue.d.ts +4 -4
  640. package/dist/queues/operations/handleSchedules/countRunnableOrActiveJobsForQueue.d.ts.map +1 -1
  641. package/dist/queues/operations/handleSchedules/countRunnableOrActiveJobsForQueue.js.map +1 -1
  642. package/dist/queues/operations/handleSchedules/index.d.ts +1 -1
  643. package/dist/queues/operations/handleSchedules/index.d.ts.map +1 -1
  644. package/dist/queues/operations/handleSchedules/index.js +1 -1
  645. package/dist/queues/operations/handleSchedules/index.js.map +1 -1
  646. package/dist/queues/operations/runJobs/heartbeat.d.ts +13 -0
  647. package/dist/queues/operations/runJobs/heartbeat.d.ts.map +1 -0
  648. package/dist/queues/operations/runJobs/heartbeat.js +66 -0
  649. package/dist/queues/operations/runJobs/heartbeat.js.map +1 -0
  650. package/dist/queues/operations/runJobs/index.d.ts.map +1 -1
  651. package/dist/queues/operations/runJobs/index.js +133 -84
  652. package/dist/queues/operations/runJobs/index.js.map +1 -1
  653. package/dist/queues/operations/runJobs/runJSONJob/index.d.ts.map +1 -1
  654. package/dist/queues/operations/runJobs/runJSONJob/index.js +6 -3
  655. package/dist/queues/operations/runJobs/runJSONJob/index.js.map +1 -1
  656. package/dist/queues/operations/runJobs/runJob/getRunTaskFunction.js +5 -5
  657. package/dist/queues/operations/runJobs/runJob/getRunTaskFunction.js.map +1 -1
  658. package/dist/queues/operations/runJobs/runJob/getUpdateJobFunction.d.ts +2 -1
  659. package/dist/queues/operations/runJobs/runJob/getUpdateJobFunction.d.ts.map +1 -1
  660. package/dist/queues/operations/runJobs/runJob/getUpdateJobFunction.js +39 -8
  661. package/dist/queues/operations/runJobs/runJob/getUpdateJobFunction.js.map +1 -1
  662. package/dist/queues/operations/runJobs/runJob/importHandlerPath.js.map +1 -1
  663. package/dist/queues/operations/runJobs/runJob/index.d.ts.map +1 -1
  664. package/dist/queues/operations/runJobs/runJob/index.js +4 -4
  665. package/dist/queues/operations/runJobs/runJob/index.js.map +1 -1
  666. package/dist/queues/utilities/updateJob.d.ts.map +1 -1
  667. package/dist/queues/utilities/updateJob.js +3 -0
  668. package/dist/queues/utilities/updateJob.js.map +1 -1
  669. package/dist/types/constants.d.ts +21 -0
  670. package/dist/types/constants.d.ts.map +1 -1
  671. package/dist/types/constants.js +23 -0
  672. package/dist/types/constants.js.map +1 -1
  673. package/dist/types/index.d.ts +4 -7
  674. package/dist/types/index.d.ts.map +1 -1
  675. package/dist/types/index.js.map +1 -1
  676. package/dist/uploads/checkFileAccess.js +1 -0
  677. package/dist/uploads/checkFileAccess.js.map +1 -1
  678. package/dist/uploads/checkFileRestrictions.d.ts +1 -1
  679. package/dist/uploads/checkFileRestrictions.d.ts.map +1 -1
  680. package/dist/uploads/checkFileRestrictions.js +15 -1
  681. package/dist/uploads/checkFileRestrictions.js.map +1 -1
  682. package/dist/uploads/cropImage.d.ts +1 -1
  683. package/dist/uploads/cropImage.d.ts.map +1 -1
  684. package/dist/uploads/cropImage.js +2 -5
  685. package/dist/uploads/cropImage.js.map +1 -1
  686. package/dist/uploads/cropImage.spec.js +71 -0
  687. package/dist/uploads/cropImage.spec.js.map +1 -0
  688. package/dist/uploads/downloadFileToBuffer.d.ts +11 -0
  689. package/dist/uploads/downloadFileToBuffer.d.ts.map +1 -0
  690. package/dist/uploads/downloadFileToBuffer.js +41 -0
  691. package/dist/uploads/downloadFileToBuffer.js.map +1 -0
  692. package/dist/uploads/endpoints/index.js +2 -2
  693. package/dist/uploads/endpoints/index.js.map +1 -1
  694. package/dist/uploads/endpoints/pasteURL.d.ts +3 -0
  695. package/dist/uploads/endpoints/pasteURL.d.ts.map +1 -0
  696. package/dist/uploads/endpoints/{getFileFromURL.js → pasteURL.js} +19 -55
  697. package/dist/uploads/endpoints/pasteURL.js.map +1 -0
  698. package/dist/uploads/endpoints/uploadInstructions.d.ts +15 -0
  699. package/dist/uploads/endpoints/uploadInstructions.d.ts.map +1 -0
  700. package/dist/uploads/endpoints/uploadInstructions.js +84 -0
  701. package/dist/uploads/endpoints/uploadInstructions.js.map +1 -0
  702. package/dist/uploads/fetchAPI-multipart/isEligibleRequest.js +1 -2
  703. package/dist/uploads/fetchAPI-multipart/isEligibleRequest.js.map +1 -1
  704. package/dist/uploads/fetchAPI-multipart/isEligibleRequest.spec.js +28 -0
  705. package/dist/uploads/fetchAPI-multipart/isEligibleRequest.spec.js.map +1 -1
  706. package/dist/uploads/fetchWithRedirects.d.ts +17 -0
  707. package/dist/uploads/fetchWithRedirects.d.ts.map +1 -0
  708. package/dist/uploads/fetchWithRedirects.js +39 -0
  709. package/dist/uploads/fetchWithRedirects.js.map +1 -0
  710. package/dist/uploads/generateFileData.d.ts +9 -0
  711. package/dist/uploads/generateFileData.d.ts.map +1 -1
  712. package/dist/uploads/generateFileData.js +62 -48
  713. package/dist/uploads/generateFileData.js.map +1 -1
  714. package/dist/uploads/generateFileData.spec.js +207 -0
  715. package/dist/uploads/generateFileData.spec.js.map +1 -0
  716. package/dist/uploads/generateFileData.tempFileBuffering.spec.js +81 -0
  717. package/dist/uploads/generateFileData.tempFileBuffering.spec.js.map +1 -0
  718. package/dist/uploads/getFileContentRequirement.d.ts +32 -0
  719. package/dist/uploads/getFileContentRequirement.d.ts.map +1 -0
  720. package/dist/uploads/getFileContentRequirement.js +40 -0
  721. package/dist/uploads/getFileContentRequirement.js.map +1 -0
  722. package/dist/uploads/getFileContentRequirement.spec.js +125 -0
  723. package/dist/uploads/getFileContentRequirement.spec.js.map +1 -0
  724. package/dist/uploads/getFileFromUploadInstructions.d.ts +8 -0
  725. package/dist/uploads/getFileFromUploadInstructions.d.ts.map +1 -0
  726. package/dist/uploads/getFileFromUploadInstructions.js +232 -0
  727. package/dist/uploads/getFileFromUploadInstructions.js.map +1 -0
  728. package/dist/uploads/getFileFromUploadInstructions.spec.js +387 -0
  729. package/dist/uploads/getFileFromUploadInstructions.spec.js.map +1 -0
  730. package/dist/uploads/getImageSize.d.ts +12 -1
  731. package/dist/uploads/getImageSize.d.ts.map +1 -1
  732. package/dist/uploads/getImageSize.js +20 -18
  733. package/dist/uploads/getImageSize.js.map +1 -1
  734. package/dist/uploads/getImageSize.spec.js +298 -0
  735. package/dist/uploads/getImageSize.spec.js.map +1 -0
  736. package/dist/uploads/image-resizing/createImageSizes.d.ts.map +1 -1
  737. package/dist/uploads/image-resizing/createImageSizes.js +2 -5
  738. package/dist/uploads/image-resizing/createImageSizes.js.map +1 -1
  739. package/dist/uploads/image-resizing/createImageSizes.spec.js +80 -0
  740. package/dist/uploads/image-resizing/createImageSizes.spec.js.map +1 -0
  741. package/dist/uploads/isAnimatedImage.d.ts +8 -0
  742. package/dist/uploads/isAnimatedImage.d.ts.map +1 -0
  743. package/dist/uploads/isAnimatedImage.js +22 -0
  744. package/dist/uploads/isAnimatedImage.js.map +1 -0
  745. package/dist/uploads/isAnimatedImage.spec.js +19 -0
  746. package/dist/uploads/isAnimatedImage.spec.js.map +1 -0
  747. package/dist/uploads/probeImageSize.d.ts +39 -0
  748. package/dist/uploads/probeImageSize.d.ts.map +1 -0
  749. package/dist/uploads/probeImageSize.js +374 -0
  750. package/dist/uploads/probeImageSize.js.map +1 -0
  751. package/dist/uploads/probeImageSize.spec.js +366 -0
  752. package/dist/uploads/probeImageSize.spec.js.map +1 -0
  753. package/dist/uploads/resolveURLUploadInput.d.ts +25 -0
  754. package/dist/uploads/resolveURLUploadInput.d.ts.map +1 -0
  755. package/dist/uploads/resolveURLUploadInput.js +53 -0
  756. package/dist/uploads/resolveURLUploadInput.js.map +1 -0
  757. package/dist/uploads/stagedUpload.d.ts +27 -0
  758. package/dist/uploads/stagedUpload.d.ts.map +1 -0
  759. package/dist/uploads/stagedUpload.js +197 -0
  760. package/dist/uploads/stagedUpload.js.map +1 -0
  761. package/dist/uploads/types.d.ts +91 -7
  762. package/dist/uploads/types.d.ts.map +1 -1
  763. package/dist/uploads/types.js.map +1 -1
  764. package/dist/uploads/unlinkTempFiles.d.ts.map +1 -1
  765. package/dist/uploads/unlinkTempFiles.js +6 -2
  766. package/dist/uploads/unlinkTempFiles.js.map +1 -1
  767. package/dist/uploads/unlinkTempFiles.spec.js +71 -0
  768. package/dist/uploads/unlinkTempFiles.spec.js.map +1 -0
  769. package/dist/uploads/uploadFiles.d.ts.map +1 -1
  770. package/dist/uploads/uploadFiles.js +7 -2
  771. package/dist/uploads/uploadFiles.js.map +1 -1
  772. package/dist/uploads/uploadFiles.spec.js +44 -0
  773. package/dist/uploads/uploadFiles.spec.js.map +1 -0
  774. package/dist/uploads/validateUploadURL.d.ts +13 -0
  775. package/dist/uploads/validateUploadURL.d.ts.map +1 -0
  776. package/dist/uploads/validateUploadURL.js +37 -0
  777. package/dist/uploads/validateUploadURL.js.map +1 -0
  778. package/dist/utilities/addDataAndFileToRequest.d.ts.map +1 -1
  779. package/dist/utilities/addDataAndFileToRequest.js +12 -45
  780. package/dist/utilities/addDataAndFileToRequest.js.map +1 -1
  781. package/dist/utilities/appendNonTrashedFilter.d.ts +1 -1
  782. package/dist/utilities/appendNonTrashedFilter.d.ts.map +1 -1
  783. package/dist/utilities/appendNonTrashedFilter.js.map +1 -1
  784. package/dist/utilities/canAccessAdmin.js +1 -0
  785. package/dist/utilities/canAccessAdmin.js.map +1 -1
  786. package/dist/utilities/checkDocumentLockStatus.d.ts +19 -0
  787. package/dist/utilities/checkDocumentLockStatus.d.ts.map +1 -1
  788. package/dist/utilities/checkDocumentLockStatus.js +74 -0
  789. package/dist/utilities/checkDocumentLockStatus.js.map +1 -1
  790. package/dist/utilities/configToJSONSchema.spec.js +33 -33
  791. package/dist/utilities/configToJSONSchema.spec.js.map +1 -1
  792. package/dist/utilities/entityInputSchema/filterFieldsByAccess.d.ts +30 -0
  793. package/dist/utilities/entityInputSchema/filterFieldsByAccess.d.ts.map +1 -0
  794. package/dist/utilities/entityInputSchema/filterFieldsByAccess.js +71 -0
  795. package/dist/utilities/entityInputSchema/filterFieldsByAccess.js.map +1 -0
  796. package/dist/utilities/entityInputSchema/getEntityInputSchema.d.ts +13 -0
  797. package/dist/utilities/entityInputSchema/getEntityInputSchema.d.ts.map +1 -0
  798. package/dist/utilities/entityInputSchema/getEntityInputSchema.js +66 -0
  799. package/dist/utilities/entityInputSchema/getEntityInputSchema.js.map +1 -0
  800. package/dist/utilities/entityInputSchema/sanitizeEntitySchema.d.ts +10 -0
  801. package/dist/utilities/entityInputSchema/sanitizeEntitySchema.d.ts.map +1 -0
  802. package/dist/utilities/entityInputSchema/sanitizeEntitySchema.js +384 -0
  803. package/dist/utilities/entityInputSchema/sanitizeEntitySchema.js.map +1 -0
  804. package/dist/utilities/entityInputSchema/sanitizeEntitySchema.spec.js +133 -0
  805. package/dist/utilities/entityInputSchema/sanitizeEntitySchema.spec.js.map +1 -0
  806. package/dist/utilities/entityInputSchema/types.d.ts +16 -0
  807. package/dist/utilities/entityInputSchema/types.d.ts.map +1 -0
  808. package/dist/utilities/entityInputSchema/types.js +3 -0
  809. package/dist/utilities/entityInputSchema/types.js.map +1 -0
  810. package/dist/utilities/entityInputSchema/validateEntityData.d.ts +13 -0
  811. package/dist/utilities/entityInputSchema/validateEntityData.d.ts.map +1 -0
  812. package/dist/utilities/entityInputSchema/validateEntityData.js +138 -0
  813. package/dist/utilities/entityInputSchema/validateEntityData.js.map +1 -0
  814. package/dist/utilities/fieldValueExists.d.ts +29 -0
  815. package/dist/utilities/fieldValueExists.d.ts.map +1 -0
  816. package/dist/utilities/fieldValueExists.js +37 -0
  817. package/dist/utilities/fieldValueExists.js.map +1 -0
  818. package/dist/utilities/getEntityPermissions/getEntityPermissions.d.ts.map +1 -1
  819. package/dist/utilities/getEntityPermissions/getEntityPermissions.js +1 -0
  820. package/dist/utilities/getEntityPermissions/getEntityPermissions.js.map +1 -1
  821. package/dist/utilities/getNextVersion.d.ts +7 -0
  822. package/dist/utilities/getNextVersion.d.ts.map +1 -0
  823. package/dist/utilities/getNextVersion.js +20 -0
  824. package/dist/utilities/getNextVersion.js.map +1 -0
  825. package/dist/utilities/getNextVersion.spec.js +16 -0
  826. package/dist/utilities/getNextVersion.spec.js.map +1 -0
  827. package/dist/utilities/getRequestOrigin.d.ts.map +1 -1
  828. package/dist/utilities/getRequestOrigin.js.map +1 -1
  829. package/dist/utilities/getSafeRedirect.d.ts.map +1 -1
  830. package/dist/utilities/getSafeRedirect.js +16 -9
  831. package/dist/utilities/getSafeRedirect.js.map +1 -1
  832. package/dist/utilities/getSafeRedirect.spec.js +96 -2
  833. package/dist/utilities/getSafeRedirect.spec.js.map +1 -1
  834. package/dist/utilities/getUniqueFieldValue.d.ts +28 -0
  835. package/dist/utilities/getUniqueFieldValue.d.ts.map +1 -0
  836. package/dist/utilities/getUniqueFieldValue.js +27 -0
  837. package/dist/utilities/getUniqueFieldValue.js.map +1 -0
  838. package/dist/utilities/getVirtualFieldNames.d.ts +14 -0
  839. package/dist/utilities/getVirtualFieldNames.d.ts.map +1 -0
  840. package/dist/utilities/getVirtualFieldNames.js +35 -0
  841. package/dist/utilities/getVirtualFieldNames.js.map +1 -0
  842. package/dist/utilities/headersWithCors.js +1 -1
  843. package/dist/utilities/headersWithCors.js.map +1 -1
  844. package/dist/utilities/killTransaction.d.ts +7 -0
  845. package/dist/utilities/killTransaction.d.ts.map +1 -1
  846. package/dist/utilities/killTransaction.js +7 -0
  847. package/dist/utilities/killTransaction.js.map +1 -1
  848. package/dist/utilities/logError.d.ts.map +1 -1
  849. package/dist/utilities/logError.js +5 -2
  850. package/dist/utilities/logError.js.map +1 -1
  851. package/dist/utilities/nextJsDevReloadStrategy.d.ts +7 -0
  852. package/dist/utilities/nextJsDevReloadStrategy.d.ts.map +1 -0
  853. package/dist/utilities/nextJsDevReloadStrategy.js +59 -0
  854. package/dist/utilities/nextJsDevReloadStrategy.js.map +1 -0
  855. package/dist/utilities/nextJsDevReloadStrategy.spec.js +123 -0
  856. package/dist/utilities/nextJsDevReloadStrategy.spec.js.map +1 -0
  857. package/dist/utilities/parseDocumentID.d.ts +4 -1
  858. package/dist/utilities/parseDocumentID.d.ts.map +1 -1
  859. package/dist/utilities/parseDocumentID.js +7 -1
  860. package/dist/utilities/parseDocumentID.js.map +1 -1
  861. package/dist/utilities/sharedInputSchemas.d.ts +52 -0
  862. package/dist/utilities/sharedInputSchemas.d.ts.map +1 -0
  863. package/dist/utilities/sharedInputSchemas.js +101 -0
  864. package/dist/utilities/sharedInputSchemas.js.map +1 -0
  865. package/dist/utilities/telemetry/featureInfo/getFeatureInfo.d.ts +4 -0
  866. package/dist/utilities/telemetry/featureInfo/getFeatureInfo.d.ts.map +1 -0
  867. package/dist/utilities/telemetry/featureInfo/getFeatureInfo.js +261 -0
  868. package/dist/utilities/telemetry/featureInfo/getFeatureInfo.js.map +1 -0
  869. package/dist/utilities/telemetry/featureInfo/getFeatureInfo.spec.js +117 -0
  870. package/dist/utilities/telemetry/featureInfo/getFeatureInfo.spec.js.map +1 -0
  871. package/dist/utilities/telemetry/featureInfo/types.d.ts +63 -0
  872. package/dist/utilities/telemetry/featureInfo/types.d.ts.map +1 -0
  873. package/dist/utilities/telemetry/featureInfo/types.js +3 -0
  874. package/dist/utilities/telemetry/featureInfo/types.js.map +1 -0
  875. package/dist/utilities/telemetry/getProjectContext.d.ts +16 -0
  876. package/dist/utilities/telemetry/getProjectContext.d.ts.map +1 -0
  877. package/dist/utilities/telemetry/getProjectContext.js +43 -0
  878. package/dist/utilities/telemetry/getProjectContext.js.map +1 -0
  879. package/dist/utilities/telemetry/index.d.ts +6 -1
  880. package/dist/utilities/telemetry/index.d.ts.map +1 -1
  881. package/dist/utilities/telemetry/index.js +21 -1
  882. package/dist/utilities/telemetry/index.js.map +1 -1
  883. package/dist/utilities/transformPointDataToPayload.d.ts +7 -0
  884. package/dist/utilities/transformPointDataToPayload.d.ts.map +1 -0
  885. package/dist/utilities/transformPointDataToPayload.js +28 -0
  886. package/dist/utilities/transformPointDataToPayload.js.map +1 -0
  887. package/dist/utilities/traverseFields.d.ts.map +1 -1
  888. package/dist/utilities/traverseFields.js +20 -22
  889. package/dist/utilities/traverseFields.js.map +1 -1
  890. package/dist/utilities/traverseFields.spec.js +112 -0
  891. package/dist/utilities/traverseFields.spec.js.map +1 -1
  892. package/dist/utilities/unflattenData.d.ts +3 -0
  893. package/dist/utilities/unflattenData.d.ts.map +1 -0
  894. package/dist/utilities/unflattenData.js +14 -0
  895. package/dist/utilities/unflattenData.js.map +1 -0
  896. package/dist/utilities/zod.d.ts +5 -0
  897. package/dist/utilities/zod.d.ts.map +1 -0
  898. package/dist/utilities/zod.js +21 -0
  899. package/dist/utilities/zod.js.map +1 -0
  900. package/dist/versions/deleteCollectionVersions.d.ts +11 -1
  901. package/dist/versions/deleteCollectionVersions.d.ts.map +1 -1
  902. package/dist/versions/deleteCollectionVersions.js +10 -3
  903. package/dist/versions/deleteCollectionVersions.js.map +1 -1
  904. package/dist/versions/deleteScheduledPublishJobs.d.ts +5 -1
  905. package/dist/versions/deleteScheduledPublishJobs.d.ts.map +1 -1
  906. package/dist/versions/deleteScheduledPublishJobs.js +11 -5
  907. package/dist/versions/deleteScheduledPublishJobs.js.map +1 -1
  908. package/dist/versions/drafts/appendVersionToQueryKey.js +1 -3
  909. package/dist/versions/drafts/appendVersionToQueryKey.js.map +1 -1
  910. package/dist/versions/drafts/appendVersionToQueryKey.spec.js +28 -0
  911. package/dist/versions/drafts/appendVersionToQueryKey.spec.js.map +1 -0
  912. package/package.json +24 -7
  913. package/skills/payload/SKILL.md +526 -0
  914. package/skills/payload/reference/ACCESS-CONTROL-ADVANCED.md +704 -0
  915. package/skills/payload/reference/ACCESS-CONTROL.md +696 -0
  916. package/skills/payload/reference/ADAPTERS.md +305 -0
  917. package/skills/payload/reference/ADVANCED.md +386 -0
  918. package/skills/payload/reference/COLLECTIONS.md +333 -0
  919. package/skills/payload/reference/ENDPOINTS.md +634 -0
  920. package/skills/payload/reference/FIELD-TYPE-GUARDS.md +553 -0
  921. package/skills/payload/reference/FIELDS.md +745 -0
  922. package/skills/payload/reference/HOOKS.md +186 -0
  923. package/skills/payload/reference/PLUGIN-DEVELOPMENT.md +1436 -0
  924. package/skills/payload/reference/QUERIES.md +274 -0
  925. package/dist/bin/build.d.ts.map +0 -1
  926. package/dist/bin/build.js.map +0 -1
  927. package/dist/bin/build.spec.js.map +0 -1
  928. package/dist/bin/frameworkConventions.d.ts.map +0 -1
  929. package/dist/bin/frameworkConventions.js.map +0 -1
  930. package/dist/bin/generateImportMap/generateImportMap.spec.js.map +0 -1
  931. package/dist/bin/generateImportMap/index.d.ts.map +0 -1
  932. package/dist/bin/generateImportMap/index.js.map +0 -1
  933. package/dist/bin/generateImportMap/iterateCollections.d.ts.map +0 -1
  934. package/dist/bin/generateImportMap/iterateCollections.js.map +0 -1
  935. package/dist/bin/generateImportMap/iterateConfig.d.ts.map +0 -1
  936. package/dist/bin/generateImportMap/iterateConfig.js.map +0 -1
  937. package/dist/bin/generateImportMap/iterateFields.d.ts.map +0 -1
  938. package/dist/bin/generateImportMap/iterateFields.js.map +0 -1
  939. package/dist/bin/generateImportMap/iterateGlobals.d.ts.map +0 -1
  940. package/dist/bin/generateImportMap/iterateGlobals.js.map +0 -1
  941. package/dist/bin/generateImportMap/utilities/addPayloadComponentToImportMap.d.ts.map +0 -1
  942. package/dist/bin/generateImportMap/utilities/addPayloadComponentToImportMap.js.map +0 -1
  943. package/dist/bin/generateImportMap/utilities/getFromImportMap.d.ts.map +0 -1
  944. package/dist/bin/generateImportMap/utilities/getFromImportMap.js.map +0 -1
  945. package/dist/bin/generateImportMap/utilities/getImportMapToBaseDirPath.d.ts.map +0 -1
  946. package/dist/bin/generateImportMap/utilities/getImportMapToBaseDirPath.js.map +0 -1
  947. package/dist/bin/generateImportMap/utilities/parsePayloadComponent.d.ts.map +0 -1
  948. package/dist/bin/generateImportMap/utilities/parsePayloadComponent.js.map +0 -1
  949. package/dist/bin/generateImportMap/utilities/resolveImportMapFilePath.d.ts.map +0 -1
  950. package/dist/bin/generateImportMap/utilities/resolveImportMapFilePath.js.map +0 -1
  951. package/dist/bin/generateTypes.d.ts +0 -6
  952. package/dist/bin/generateTypes.d.ts.map +0 -1
  953. package/dist/bin/generateTypes.js.map +0 -1
  954. package/dist/bin/index.d.ts +0 -2
  955. package/dist/bin/index.d.ts.map +0 -1
  956. package/dist/bin/index.js +0 -200
  957. package/dist/bin/index.js.map +0 -1
  958. package/dist/bin/info.d.ts +0 -2
  959. package/dist/bin/info.d.ts.map +0 -1
  960. package/dist/bin/info.js +0 -56
  961. package/dist/bin/info.js.map +0 -1
  962. package/dist/bin/loadEnv.d.ts.map +0 -1
  963. package/dist/bin/loadEnv.js.map +0 -1
  964. package/dist/bin/migrate.d.ts +0 -15
  965. package/dist/bin/migrate.d.ts.map +0 -1
  966. package/dist/bin/migrate.js +0 -102
  967. package/dist/bin/migrate.js.map +0 -1
  968. package/dist/database/defaultUpdateJobs.d.ts +0 -3
  969. package/dist/database/defaultUpdateJobs.d.ts.map +0 -1
  970. package/dist/database/defaultUpdateJobs.js +0 -41
  971. package/dist/database/defaultUpdateJobs.js.map +0 -1
  972. package/dist/fields/baseFields/slug/countVersions.d.ts +0 -13
  973. package/dist/fields/baseFields/slug/countVersions.d.ts.map +0 -1
  974. package/dist/fields/baseFields/slug/countVersions.js +0 -27
  975. package/dist/fields/baseFields/slug/countVersions.js.map +0 -1
  976. package/dist/uploads/endpoints/getFileFromURL.d.ts +0 -3
  977. package/dist/uploads/endpoints/getFileFromURL.d.ts.map +0 -1
  978. package/dist/uploads/endpoints/getFileFromURL.js.map +0 -1
  979. package/dist/uploads/getExternalFile.d.ts +0 -10
  980. package/dist/uploads/getExternalFile.d.ts.map +0 -1
  981. package/dist/uploads/getExternalFile.js +0 -73
  982. package/dist/uploads/getExternalFile.js.map +0 -1
  983. package/dist/uploads/tempFile.d.ts +0 -7
  984. package/dist/uploads/tempFile.d.ts.map +0 -1
  985. package/dist/uploads/tempFile.js +0 -39
  986. package/dist/uploads/tempFile.js.map +0 -1
  987. /package/dist/{bin → cli/commands/generateImportMap}/frameworkConventions.d.ts +0 -0
  988. /package/dist/{bin → cli/commands/generateImportMap}/frameworkConventions.js +0 -0
  989. /package/dist/{bin → cli/commands}/generateImportMap/generateImportMap.spec.js +0 -0
  990. /package/dist/{bin → cli/commands}/generateImportMap/iterateCollections.js +0 -0
  991. /package/dist/{bin → cli/commands}/generateImportMap/iterateFields.js +0 -0
  992. /package/dist/{bin → cli/commands}/generateImportMap/iterateGlobals.js +0 -0
  993. /package/dist/{bin → cli/commands}/generateImportMap/utilities/addPayloadComponentToImportMap.js +0 -0
  994. /package/dist/{bin → cli/commands}/generateImportMap/utilities/getFromImportMap.js +0 -0
  995. /package/dist/{bin → cli/commands}/generateImportMap/utilities/getImportMapToBaseDirPath.d.ts +0 -0
  996. /package/dist/{bin → cli/commands}/generateImportMap/utilities/getImportMapToBaseDirPath.js +0 -0
  997. /package/dist/{bin → cli/commands}/generateImportMap/utilities/parsePayloadComponent.js +0 -0
  998. /package/dist/{bin → cli/commands}/generateImportMap/utilities/resolveImportMapFilePath.d.ts +0 -0
  999. /package/dist/{bin → cli/runtime}/loadEnv.d.ts +0 -0
package/bin.js CHANGED
@@ -1,17 +1,23 @@
1
1
  #!/usr/bin/env node
2
2
 
3
+ import { Command } from 'commander'
3
4
  import path from 'node:path'
4
5
  import { fileURLToPath, pathToFileURL } from 'node:url'
5
6
 
6
- const useSwc = process.argv.includes('--use-swc')
7
- const disableTranspile = process.argv.includes('--disable-transpile')
7
+ const bootstrap = new Command()
8
+ .helpOption(false)
9
+ .allowUnknownOption()
10
+ .argument('[args...]')
11
+ .option('--disable-transpile')
12
+ .option('--use-swc')
13
+ .parse(process.argv)
14
+ const { disableTranspile, useSwc } = bootstrap.opts()
8
15
 
9
- if (disableTranspile) {
10
- // Remove --disable-transpile from arguments
11
- process.argv = process.argv.filter((arg) => arg !== '--disable-transpile')
16
+ process.argv = [...process.argv.slice(0, 2), ...bootstrap.args]
12
17
 
18
+ if (disableTranspile) {
13
19
  const start = async () => {
14
- const { bin } = await import('./dist/bin/index.js')
20
+ const { bin } = await import('./dist/cli/index.js')
15
21
  await bin()
16
22
  }
17
23
 
@@ -37,15 +43,13 @@ if (disableTranspile) {
37
43
  // Use tsx
38
44
  let tsImport = (await import('tsx/esm/api')).tsImport
39
45
 
40
- const { bin } = await tsImport('./dist/bin/index.js', url)
46
+ const { bin } = await tsImport('./dist/cli/index.js', url)
41
47
  await bin()
42
48
  }
43
49
 
44
50
  void start()
45
51
  } else if (useSwc) {
46
52
  const { register } = await import('node:module')
47
- // Remove --use-swc from arguments
48
- process.argv = process.argv.filter((arg) => arg !== '--use-swc')
49
53
 
50
54
  try {
51
55
  register('@swc-node/register/esm', url)
@@ -56,7 +60,7 @@ if (disableTranspile) {
56
60
  }
57
61
 
58
62
  const start = async () => {
59
- const { bin } = await import('./dist/bin/index.js')
63
+ const { bin } = await import('./dist/cli/index.js')
60
64
  await bin()
61
65
  }
62
66
 
@@ -199,6 +199,6 @@ export type RichTextAdapterProvider<Value extends object = object, AdapterProps
199
199
  */
200
200
  isRoot?: boolean;
201
201
  parentIsLocalized: boolean;
202
- }) => Promise<RichTextAdapter<Value, AdapterProps, ExtraFieldProperties>> | RichTextAdapter<Value, AdapterProps, ExtraFieldProperties>;
202
+ }) => RichTextAdapter<Value, AdapterProps, ExtraFieldProperties>;
203
203
  export {};
204
204
  //# sourceMappingURL=RichText.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RichText.d.ts","sourceRoot":"","sources":["../../src/admin/RichText.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAA;AACpD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAE9C,OAAO,KAAK,EAAE,yBAAyB,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAA;AAC3F,OAAO,KAAK,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AAChG,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAA;AACxE,OAAO,KAAK,EACV,kBAAkB,EAClB,aAAa,EACb,mBAAmB,EACnB,QAAQ,EACT,MAAM,2BAA2B,CAAA;AAClC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAA;AACvE,OAAO,KAAK,EAAE,cAAc,E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;;OAKG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,iBAAiB,EAAE,OAAO,CAAA;CAC3B,KAAK,eAAe,CAAC,KAAK,EAAE,YAAY,EAAE,oBAAoB,CAAC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/admin/RichText.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\nimport type { I18n } from '@payloadcms/translations'\nimport type { JSONSchema4 } from 'json-schema'\n\nimport type { SanitizedCollectionConfig, TypeWithID } from '../collections/config/types.js'\nimport type { ImportMapGenerators, PayloadComponent, SanitizedConfig } from '../config/types.js'\nimport type { ValidationFieldError } from '../errors/ValidationError.js'\nimport type {\n FieldAffectingData,\n RichTextField,\n RichTextFieldClient,\n Validate,\n} from '../fields/config/types.js'\nimport type { SanitizedGlobalConfig } from '../globals/config/types.js'\nimport type { RequestContext, TypedFallbackLocale } from '../index.js'\nimport type { JsonObject, PayloadRequest, PopulateType } from '../types/index.js'\nimport type { FieldsToJSONSchemaArgs } from '../utilities/configToJSONSchema.js'\nimport type { RichTextFieldClientProps, RichTextFieldServerProps } from './fields/RichText.js'\nimport type { FieldDiffClientProps, FieldDiffServerProps, FieldSchemaMap } from './types.js'\n\nexport type AfterReadRichTextHookArgs<\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n TData extends TypeWithID = any,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n TValue = any,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n TSiblingData = any,\n> = {\n currentDepth?: number\n\n depth?: number\n\n draft?: boolean\n\n fallbackLocale?: TypedFallbackLocale\n fieldPromises?: Promise<void>[]\n\n /** Boolean to denote if this hook is running against finding one, or finding many within the afterRead hook. */\n findMany?: boolean\n\n flattenLocales?: boolean\n\n locale?: string\n\n /** A string relating to which operation the field type is currently executing within. */\n operation?: 'create' | 'delete' | 'read' | 'update'\n\n overrideAccess?: boolean\n\n populate?: PopulateType\n\n populationPromises?: Promise<void>[]\n showHiddenFields?: boolean\n triggerAccessControl?: boolean\n triggerHooks?: boolean\n}\n\nexport type AfterChangeRichTextHookArgs<\n TData extends TypeWithID = any,\n TValue = any,\n TSiblingData = any,\n> = {\n /** A string relating to which operation the field type is currently executing within. */\n operation: 'create' | 'update'\n /** The document before changes were applied. */\n previousDoc?: TData\n /** The sibling data of the document before changes being applied. */\n previousSiblingDoc?: TSiblingData\n /** The previous value of the field, before changes */\n previousValue?: TValue\n}\n\nexport type BeforeValidateRichTextHookArgs<\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n TData extends TypeWithID = any,\n TValue = any,\n TSiblingData = any,\n> = {\n /** A string relating to which operation the field type is currently executing within. */\n operation: 'create' | 'update'\n overrideAccess?: boolean\n /** The sibling data of the document before changes being applied. */\n previousSiblingDoc?: TSiblingData\n /** The previous value of the field, before changes */\n previousValue?: TValue\n}\n\nexport type BeforeChangeRichTextHookArgs<\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n TData extends TypeWithID = any,\n TValue = any,\n TSiblingData = any,\n> = {\n /**\n * The original data with locales (not modified by any hooks). Only available in `beforeChange` and `beforeDuplicate` field hooks.\n */\n docWithLocales?: JsonObject\n\n duplicate?: boolean\n\n errors?: ValidationFieldError[]\n /**\n * Built up field label\n *\n * @example \"Group Field > Tab Field > Rich Text Field\"\n */\n fieldLabelPath: string\n /** Only available in `beforeChange` field hooks */\n mergeLocaleActions?: (() => Promise<void> | void)[]\n /** A string relating to which operation the field type is currently executing within. */\n operation?: 'create' | 'delete' | 'read' | 'update'\n overrideAccess: boolean\n /** The sibling data of the document before changes being applied. */\n previousSiblingDoc?: TSiblingData\n /** The previous value of the field, before changes */\n previousValue?: TValue\n /**\n * The original siblingData with locales (not modified by any hooks).\n */\n siblingDocWithLocales?: JsonObject\n skipValidation?: boolean\n}\n\nexport type BaseRichTextHookArgs<\n TData extends TypeWithID = any,\n TValue = any,\n TSiblingData = any,\n> = {\n /** The collection which the field belongs to. If the field belongs to a global, this will be null. */\n collection: null | SanitizedCollectionConfig\n context: RequestContext\n /** The data passed to update the document within create and update operations, and the full document itself in the afterRead hook. */\n data?: Partial<TData>\n /** The field which the hook is running against. */\n field: FieldAffectingData\n /** The global which the field belongs to. If the field belongs to a collection, this will be null. */\n global: null | SanitizedGlobalConfig\n indexPath: number[]\n /** The full original document in `update` operations. In the `afterChange` hook, this is the resulting document of the operation. */\n originalDoc?: TData\n parentIsLocalized: boolean\n /**\n * The path of the field, e.g. [\"group\", \"myArray\", 1, \"textField\"]. The path is the schemaPath but with indexes and would be used in the context of field data, not field schemas.\n */\n path: (number | string)[]\n /** The Express request object. It is mocked for Local API operations. */\n req: PayloadRequest\n /**\n * The schemaPath of the field, e.g. [\"group\", \"myArray\", \"textField\"]. The schemaPath is the path but without indexes and would be used in the context of field schemas, not field data.\n */\n schemaPath: string[]\n /** The sibling data passed to a field that the hook is running against. */\n siblingData: Partial<TSiblingData>\n /** The value of the field. */\n value?: TValue\n}\n\nexport type AfterReadRichTextHook<\n TData extends TypeWithID = any,\n TValue = any,\n TSiblingData = any,\n> = (\n args: AfterReadRichTextHookArgs<TData, TValue, TSiblingData> &\n BaseRichTextHookArgs<TData, TValue, TSiblingData>,\n) => Promise<TValue> | TValue\n\nexport type AfterChangeRichTextHook<\n TData extends TypeWithID = any,\n TValue = any,\n TSiblingData = any,\n> = (\n args: AfterChangeRichTextHookArgs<TData, TValue, TSiblingData> &\n BaseRichTextHookArgs<TData, TValue, TSiblingData>,\n) => Promise<TValue> | TValue\n\nexport type BeforeChangeRichTextHook<\n TData extends TypeWithID = any,\n TValue = any,\n TSiblingData = any,\n> = (\n args: BaseRichTextHookArgs<TData, TValue, TSiblingData> &\n BeforeChangeRichTextHookArgs<TData, TValue, TSiblingData>,\n) => Promise<TValue> | TValue\n\nexport type BeforeValidateRichTextHook<\n TData extends TypeWithID = any,\n TValue = any,\n TSiblingData = any,\n> = (\n args: BaseRichTextHookArgs<TData, TValue, TSiblingData> &\n BeforeValidateRichTextHookArgs<TData, TValue, TSiblingData>,\n) => Promise<TValue> | TValue\n\nexport type RichTextHooks = {\n afterChange?: AfterChangeRichTextHook[]\n afterRead?: AfterReadRichTextHook[]\n beforeChange?: BeforeChangeRichTextHook[]\n beforeValidate?: BeforeValidateRichTextHook[]\n}\n\ntype RichTextAdapterBase<\n Value extends object = object,\n AdapterProps = any,\n ExtraFieldProperties = {},\n> = {\n /**\n * Provide a function that can be used to add items to the import map. This is useful for\n * making modules available to the client.\n */\n generateImportMap?: ImportMapGenerators[0]\n /**\n * Provide a function that can be used to add items to the schema map. This is useful for\n * richtext sub-fields the server needs to \"know\" about in order to do things like calculate form state.\n *\n * This function is run within `buildFieldSchemaMap`.\n */\n generateSchemaMap?: (args: {\n config: SanitizedConfig\n field: RichTextField\n i18n: I18n<any, any>\n schemaMap: FieldSchemaMap\n schemaPath: string\n }) => FieldSchemaMap\n /**\n * Like an afterRead hook, but runs only for the GraphQL resolver. For populating data, this should be used, as afterRead hooks do not have a depth in graphQL.\n *\n * To populate stuff / resolve field hooks, mutate the incoming populationPromises or fieldPromises array. They will then be awaited in the correct order within payload itself.\n * @param data\n */\n graphQLPopulationPromises?: (data: {\n context: RequestContext\n currentDepth?: number\n depth: number\n draft: boolean\n field: RichTextField<Value, AdapterProps, ExtraFieldProperties>\n fieldPromises: Promise<void>[]\n findMany: boolean\n flattenLocales: boolean\n overrideAccess?: boolean\n parentIsLocalized: boolean\n populateArg?: PopulateType\n populationPromises: Promise<void>[]\n req: PayloadRequest\n showHiddenFields: boolean\n siblingDoc: JsonObject\n }) => void\n hooks?: RichTextHooks\n /**\n * Return the JSON schema for the field value. The JSON schema is read by\n * `json-schema-to-typescript` which is used to generate types for this richtext field\n * payload-types.ts)\n */\n jsonSchema?: (\n args: {\n field: RichTextField<Value, AdapterProps, ExtraFieldProperties>\n isRequired: boolean\n } & Pick<\n FieldsToJSONSchemaArgs,\n | 'collectionIDFieldTypes'\n | 'config'\n | 'i18n'\n | 'interfaceNameDefinitions'\n | 'typeStringDefinitions'\n | 'variant'\n >,\n ) => JSONSchema4\n /**\n * Provide validation function for the richText field. This function is run the same way\n * as other field validation functions.\n */\n validate: Validate<\n Value,\n Value,\n unknown,\n RichTextField<Value, AdapterProps, ExtraFieldProperties>\n >\n}\n\nexport type RichTextAdapter<\n Value extends object = any,\n AdapterProps = any,\n ExtraFieldProperties = any,\n> = {\n /**\n * Component that will be displayed in the list view. Can be typed as\n * `DefaultCellComponentProps` or `DefaultServerCellComponentProps`.\n */\n CellComponent: PayloadComponent<never>\n /**\n * Component that will be displayed in the version diff view.\n * If not provided, richtext content will be diffed as JSON.\n */\n DiffComponent?: PayloadComponent<\n FieldDiffServerProps<RichTextField, RichTextFieldClient>,\n FieldDiffClientProps<RichTextFieldClient>\n >\n /**\n * Component that will be displayed in the edit view.\n */\n FieldComponent: PayloadComponent<RichTextFieldServerProps, RichTextFieldClientProps>\n} & RichTextAdapterBase<Value, AdapterProps, ExtraFieldProperties>\n\nexport type RichTextAdapterProvider<\n Value extends object = object,\n AdapterProps = any,\n ExtraFieldProperties = {},\n> = ({\n config,\n isRoot,\n parentIsLocalized,\n}: {\n config: SanitizedConfig\n /**\n * Whether or not this is the root richText editor, defined in the top-level `editor` property\n * of the Payload Config.\n *\n * @default false\n */\n isRoot?: boolean\n parentIsLocalized: boolean\n}) =>\n | Promise<RichTextAdapter<Value, AdapterProps, ExtraFieldProperties>>\n | RichTextAdapter<Value, AdapterProps, ExtraFieldProperties>\n"],"names":[],"mappings":"AAAA,qDAAqD,GA8SrD,WAoB8D"}
1
+ {"version":3,"sources":["../../src/admin/RichText.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\nimport type { I18n } from '@payloadcms/translations'\nimport type { JSONSchema4 } from 'json-schema'\n\nimport type { SanitizedCollectionConfig, TypeWithID } from '../collections/config/types.js'\nimport type { ImportMapGenerators, PayloadComponent, SanitizedConfig } from '../config/types.js'\nimport type { ValidationFieldError } from '../errors/ValidationError.js'\nimport type {\n FieldAffectingData,\n RichTextField,\n RichTextFieldClient,\n Validate,\n} from '../fields/config/types.js'\nimport type { SanitizedGlobalConfig } from '../globals/config/types.js'\nimport type { RequestContext, TypedFallbackLocale } from '../index.js'\nimport type { JsonObject, PayloadRequest, PopulateType } from '../types/index.js'\nimport type { FieldsToJSONSchemaArgs } from '../utilities/configToJSONSchema.js'\nimport type { RichTextFieldClientProps, RichTextFieldServerProps } from './fields/RichText.js'\nimport type { FieldDiffClientProps, FieldDiffServerProps, FieldSchemaMap } from './types.js'\n\nexport type AfterReadRichTextHookArgs<\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n TData extends TypeWithID = any,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n TValue = any,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n TSiblingData = any,\n> = {\n currentDepth?: number\n\n depth?: number\n\n draft?: boolean\n\n fallbackLocale?: TypedFallbackLocale\n fieldPromises?: Promise<void>[]\n\n /** Boolean to denote if this hook is running against finding one, or finding many within the afterRead hook. */\n findMany?: boolean\n\n flattenLocales?: boolean\n\n locale?: string\n\n /** A string relating to which operation the field type is currently executing within. */\n operation?: 'create' | 'delete' | 'read' | 'update'\n\n overrideAccess?: boolean\n\n populate?: PopulateType\n\n populationPromises?: Promise<void>[]\n showHiddenFields?: boolean\n triggerAccessControl?: boolean\n triggerHooks?: boolean\n}\n\nexport type AfterChangeRichTextHookArgs<\n TData extends TypeWithID = any,\n TValue = any,\n TSiblingData = any,\n> = {\n /** A string relating to which operation the field type is currently executing within. */\n operation: 'create' | 'update'\n /** The document before changes were applied. */\n previousDoc?: TData\n /** The sibling data of the document before changes being applied. */\n previousSiblingDoc?: TSiblingData\n /** The previous value of the field, before changes */\n previousValue?: TValue\n}\n\nexport type BeforeValidateRichTextHookArgs<\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n TData extends TypeWithID = any,\n TValue = any,\n TSiblingData = any,\n> = {\n /** A string relating to which operation the field type is currently executing within. */\n operation: 'create' | 'update'\n overrideAccess?: boolean\n /** The sibling data of the document before changes being applied. */\n previousSiblingDoc?: TSiblingData\n /** The previous value of the field, before changes */\n previousValue?: TValue\n}\n\nexport type BeforeChangeRichTextHookArgs<\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n TData extends TypeWithID = any,\n TValue = any,\n TSiblingData = any,\n> = {\n /**\n * The original data with locales (not modified by any hooks). Only available in `beforeChange` and `beforeDuplicate` field hooks.\n */\n docWithLocales?: JsonObject\n\n duplicate?: boolean\n\n errors?: ValidationFieldError[]\n /**\n * Built up field label\n *\n * @example \"Group Field > Tab Field > Rich Text Field\"\n */\n fieldLabelPath: string\n /** Only available in `beforeChange` field hooks */\n mergeLocaleActions?: (() => Promise<void> | void)[]\n /** A string relating to which operation the field type is currently executing within. */\n operation?: 'create' | 'delete' | 'read' | 'update'\n overrideAccess: boolean\n /** The sibling data of the document before changes being applied. */\n previousSiblingDoc?: TSiblingData\n /** The previous value of the field, before changes */\n previousValue?: TValue\n /**\n * The original siblingData with locales (not modified by any hooks).\n */\n siblingDocWithLocales?: JsonObject\n skipValidation?: boolean\n}\n\nexport type BaseRichTextHookArgs<\n TData extends TypeWithID = any,\n TValue = any,\n TSiblingData = any,\n> = {\n /** The collection which the field belongs to. If the field belongs to a global, this will be null. */\n collection: null | SanitizedCollectionConfig\n context: RequestContext\n /** The data passed to update the document within create and update operations, and the full document itself in the afterRead hook. */\n data?: Partial<TData>\n /** The field which the hook is running against. */\n field: FieldAffectingData\n /** The global which the field belongs to. If the field belongs to a collection, this will be null. */\n global: null | SanitizedGlobalConfig\n indexPath: number[]\n /** The full original document in `update` operations. In the `afterChange` hook, this is the resulting document of the operation. */\n originalDoc?: TData\n parentIsLocalized: boolean\n /**\n * The path of the field, e.g. [\"group\", \"myArray\", 1, \"textField\"]. The path is the schemaPath but with indexes and would be used in the context of field data, not field schemas.\n */\n path: (number | string)[]\n /** The Express request object. It is mocked for Local API operations. */\n req: PayloadRequest\n /**\n * The schemaPath of the field, e.g. [\"group\", \"myArray\", \"textField\"]. The schemaPath is the path but without indexes and would be used in the context of field schemas, not field data.\n */\n schemaPath: string[]\n /** The sibling data passed to a field that the hook is running against. */\n siblingData: Partial<TSiblingData>\n /** The value of the field. */\n value?: TValue\n}\n\nexport type AfterReadRichTextHook<\n TData extends TypeWithID = any,\n TValue = any,\n TSiblingData = any,\n> = (\n args: AfterReadRichTextHookArgs<TData, TValue, TSiblingData> &\n BaseRichTextHookArgs<TData, TValue, TSiblingData>,\n) => Promise<TValue> | TValue\n\nexport type AfterChangeRichTextHook<\n TData extends TypeWithID = any,\n TValue = any,\n TSiblingData = any,\n> = (\n args: AfterChangeRichTextHookArgs<TData, TValue, TSiblingData> &\n BaseRichTextHookArgs<TData, TValue, TSiblingData>,\n) => Promise<TValue> | TValue\n\nexport type BeforeChangeRichTextHook<\n TData extends TypeWithID = any,\n TValue = any,\n TSiblingData = any,\n> = (\n args: BaseRichTextHookArgs<TData, TValue, TSiblingData> &\n BeforeChangeRichTextHookArgs<TData, TValue, TSiblingData>,\n) => Promise<TValue> | TValue\n\nexport type BeforeValidateRichTextHook<\n TData extends TypeWithID = any,\n TValue = any,\n TSiblingData = any,\n> = (\n args: BaseRichTextHookArgs<TData, TValue, TSiblingData> &\n BeforeValidateRichTextHookArgs<TData, TValue, TSiblingData>,\n) => Promise<TValue> | TValue\n\nexport type RichTextHooks = {\n afterChange?: AfterChangeRichTextHook[]\n afterRead?: AfterReadRichTextHook[]\n beforeChange?: BeforeChangeRichTextHook[]\n beforeValidate?: BeforeValidateRichTextHook[]\n}\n\ntype RichTextAdapterBase<\n Value extends object = object,\n AdapterProps = any,\n ExtraFieldProperties = {},\n> = {\n /**\n * Provide a function that can be used to add items to the import map. This is useful for\n * making modules available to the client.\n */\n generateImportMap?: ImportMapGenerators[0]\n /**\n * Provide a function that can be used to add items to the schema map. This is useful for\n * richtext sub-fields the server needs to \"know\" about in order to do things like calculate form state.\n *\n * This function is run within `buildFieldSchemaMap`.\n */\n generateSchemaMap?: (args: {\n config: SanitizedConfig\n field: RichTextField\n i18n: I18n<any, any>\n schemaMap: FieldSchemaMap\n schemaPath: string\n }) => FieldSchemaMap\n /**\n * Like an afterRead hook, but runs only for the GraphQL resolver. For populating data, this should be used, as afterRead hooks do not have a depth in graphQL.\n *\n * To populate stuff / resolve field hooks, mutate the incoming populationPromises or fieldPromises array. They will then be awaited in the correct order within payload itself.\n * @param data\n */\n graphQLPopulationPromises?: (data: {\n context: RequestContext\n currentDepth?: number\n depth: number\n draft: boolean\n field: RichTextField<Value, AdapterProps, ExtraFieldProperties>\n fieldPromises: Promise<void>[]\n findMany: boolean\n flattenLocales: boolean\n overrideAccess?: boolean\n parentIsLocalized: boolean\n populateArg?: PopulateType\n populationPromises: Promise<void>[]\n req: PayloadRequest\n showHiddenFields: boolean\n siblingDoc: JsonObject\n }) => void\n hooks?: RichTextHooks\n /**\n * Return the JSON schema for the field value. The JSON schema is read by\n * `json-schema-to-typescript` which is used to generate types for this richtext field\n * payload-types.ts)\n */\n jsonSchema?: (\n args: {\n field: RichTextField<Value, AdapterProps, ExtraFieldProperties>\n isRequired: boolean\n } & Pick<\n FieldsToJSONSchemaArgs,\n | 'collectionIDFieldTypes'\n | 'config'\n | 'i18n'\n | 'interfaceNameDefinitions'\n | 'typeStringDefinitions'\n | 'variant'\n >,\n ) => JSONSchema4\n /**\n * Provide validation function for the richText field. This function is run the same way\n * as other field validation functions.\n */\n validate: Validate<\n Value,\n Value,\n unknown,\n RichTextField<Value, AdapterProps, ExtraFieldProperties>\n >\n}\n\nexport type RichTextAdapter<\n Value extends object = any,\n AdapterProps = any,\n ExtraFieldProperties = any,\n> = {\n /**\n * Component that will be displayed in the list view. Can be typed as\n * `DefaultCellComponentProps` or `DefaultServerCellComponentProps`.\n */\n CellComponent: PayloadComponent<never>\n /**\n * Component that will be displayed in the version diff view.\n * If not provided, richtext content will be diffed as JSON.\n */\n DiffComponent?: PayloadComponent<\n FieldDiffServerProps<RichTextField, RichTextFieldClient>,\n FieldDiffClientProps<RichTextFieldClient>\n >\n /**\n * Component that will be displayed in the edit view.\n */\n FieldComponent: PayloadComponent<RichTextFieldServerProps, RichTextFieldClientProps>\n} & RichTextAdapterBase<Value, AdapterProps, ExtraFieldProperties>\n\nexport type RichTextAdapterProvider<\n Value extends object = object,\n AdapterProps = any,\n ExtraFieldProperties = {},\n> = ({\n config,\n isRoot,\n parentIsLocalized,\n}: {\n config: SanitizedConfig\n /**\n * Whether or not this is the root richText editor, defined in the top-level `editor` property\n * of the Payload Config.\n *\n * @default false\n */\n isRoot?: boolean\n parentIsLocalized: boolean\n}) => RichTextAdapter<Value, AdapterProps, ExtraFieldProperties>\n"],"names":[],"mappings":"AAAA,qDAAqD,GA8SrD,WAkBgE"}
@@ -6,4 +6,17 @@ export type DevReloadStrategy = {
6
6
  connect: (onReload: () => void) => DevReloadCleanup;
7
7
  };
8
8
  export type DevReloadCleanup = () => void;
9
+ /**
10
+ * Registers the strategy `getPayload` uses to learn the config changed on disk.
11
+ * Covers callers that never see `InitOptions`, such as `handleEndpoints`.
12
+ * Pass `null` to unregister.
13
+ *
14
+ * Scoped to this module instance rather than `globalThis`, so the registrar has
15
+ * to run in the same module graph as the `getPayload` calls it should affect.
16
+ * Framework adapters register from their server runtime, which resolves the
17
+ * same copy of `payload` as the app.
18
+ */
19
+ export declare const registerDevReloadStrategy: (strategy: DevReloadStrategy | null) => void;
20
+ /** The strategy set by {@link registerDevReloadStrategy}, or `null` if none is registered. */
21
+ export declare const getRegisteredDevReloadStrategy: () => DevReloadStrategy | null;
9
22
  //# sourceMappingURL=devReload.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"devReload.d.ts","sourceRoot":"","sources":["../../../src/admin/adapters/devReload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,OAAO,EAAE,CAAC,QAAQ,EAAE,MAAM,IAAI,KAAK,gBAAgB,CAAA;CACpD,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG,MAAM,IAAI,CAAA"}
1
+ {"version":3,"file":"devReload.d.ts","sourceRoot":"","sources":["../../../src/admin/adapters/devReload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,OAAO,EAAE,CAAC,QAAQ,EAAE,MAAM,IAAI,KAAK,gBAAgB,CAAA;CACpD,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG,MAAM,IAAI,CAAA;AAIzC;;;;;;;;;GASG;AACH,eAAO,MAAM,yBAAyB,aAAc,iBAAiB,GAAG,IAAI,KAAG,IAE9E,CAAA;AAED,8FAA8F;AAC9F,eAAO,MAAM,8BAA8B,QAAO,iBAAiB,GAAG,IAA0B,CAAA"}
@@ -1,6 +1,19 @@
1
1
  /**
2
2
  * Strategy for dev-mode HMR/reload detection.
3
3
  * Each framework adapter provides its own implementation.
4
- */ export { };
4
+ */ let registeredStrategy = null;
5
+ /**
6
+ * Registers the strategy `getPayload` uses to learn the config changed on disk.
7
+ * Covers callers that never see `InitOptions`, such as `handleEndpoints`.
8
+ * Pass `null` to unregister.
9
+ *
10
+ * Scoped to this module instance rather than `globalThis`, so the registrar has
11
+ * to run in the same module graph as the `getPayload` calls it should affect.
12
+ * Framework adapters register from their server runtime, which resolves the
13
+ * same copy of `payload` as the app.
14
+ */ export const registerDevReloadStrategy = (strategy)=>{
15
+ registeredStrategy = strategy;
16
+ };
17
+ /** The strategy set by {@link registerDevReloadStrategy}, or `null` if none is registered. */ export const getRegisteredDevReloadStrategy = ()=>registeredStrategy;
5
18
 
6
19
  //# sourceMappingURL=devReload.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/admin/adapters/devReload.ts"],"sourcesContent":["/**\n * Strategy for dev-mode HMR/reload detection.\n * Each framework adapter provides its own implementation.\n */\nexport type DevReloadStrategy = {\n connect: (onReload: () => void) => DevReloadCleanup\n}\n\nexport type DevReloadCleanup = () => void\n"],"names":[],"mappings":"AAAA;;;CAGC,GAKD,WAAyC"}
1
+ {"version":3,"sources":["../../../src/admin/adapters/devReload.ts"],"sourcesContent":["/**\n * Strategy for dev-mode HMR/reload detection.\n * Each framework adapter provides its own implementation.\n */\nexport type DevReloadStrategy = {\n connect: (onReload: () => void) => DevReloadCleanup\n}\n\nexport type DevReloadCleanup = () => void\n\nlet registeredStrategy: DevReloadStrategy | null = null\n\n/**\n * Registers the strategy `getPayload` uses to learn the config changed on disk.\n * Covers callers that never see `InitOptions`, such as `handleEndpoints`.\n * Pass `null` to unregister.\n *\n * Scoped to this module instance rather than `globalThis`, so the registrar has\n * to run in the same module graph as the `getPayload` calls it should affect.\n * Framework adapters register from their server runtime, which resolves the\n * same copy of `payload` as the app.\n */\nexport const registerDevReloadStrategy = (strategy: DevReloadStrategy | null): void => {\n registeredStrategy = strategy\n}\n\n/** The strategy set by {@link registerDevReloadStrategy}, or `null` if none is registered. */\nexport const getRegisteredDevReloadStrategy = (): DevReloadStrategy | null => registeredStrategy\n"],"names":["registeredStrategy","registerDevReloadStrategy","strategy","getRegisteredDevReloadStrategy"],"mappings":"AAAA;;;CAGC,GAOD,IAAIA,qBAA+C;AAEnD;;;;;;;;;CASC,GACD,OAAO,MAAMC,4BAA4B,CAACC;IACxCF,qBAAqBE;AACvB,EAAC;AAED,4FAA4F,GAC5F,OAAO,MAAMC,iCAAiC,IAAgCH,mBAAkB"}
@@ -1,9 +1,9 @@
1
1
  import type { AcceptedLanguages } from '@payloadcms/translations';
2
- import type { ImportMap } from '../../bin/generateImportMap/index.js';
2
+ import type { ImportMap } from '../../cli/commands/generateImportMap/generateImportMap.js';
3
3
  import type { Locale, SanitizedConfig } from '../../config/types.js';
4
4
  import type { PaginatedDocs } from '../../database/types.js';
5
5
  import type { Slugify } from '../../fields/baseFields/slug/types.js';
6
- import type { CollectionSlug, ColumnPreference, FieldPaths, GlobalSlug, SanitizedPermissions } from '../../index.js';
6
+ import type { CollectionSlug, ColumnPreference, DefaultDocumentIDType, FieldPaths, GlobalSlug, SanitizedPermissions } from '../../index.js';
7
7
  import type { PayloadRequest, Sort, Where } from '../../types/index.js';
8
8
  import type { ColumnsFromURL } from '../../utilities/transformColumnPreferences.js';
9
9
  import type { ComponentRenderer } from '../adapters/render.js';
@@ -15,15 +15,8 @@ export type InitReqResult = {
15
15
  permissions: SanitizedPermissions;
16
16
  req: PayloadRequest;
17
17
  };
18
- /**
19
- * Determines how server function handlers serialize their return values.
20
- * - `'rsc'`: Return React nodes (JSX) — requires RSC flight serialization (Next.js)
21
- * - `'data-only'`: Return JSON-serializable data — for non-RSC adapters (TanStack Start)
22
- */
23
- export type ServerFunctionMode = 'data-only' | 'rsc';
24
18
  export type DefaultServerFunctionArgs = {
25
19
  importMap: ImportMap;
26
- mode?: ServerFunctionMode;
27
20
  renderComponent?: ComponentRenderer;
28
21
  } & Pick<InitReqResult, 'cookies' | 'locale' | 'permissions' | 'req'>;
29
22
  export type ServerFunctionArgs = {
@@ -105,6 +98,15 @@ export type BuildTableStateArgs = {
105
98
  export type SlugifyServerFunctionArgs = {
106
99
  collectionSlug?: CollectionSlug;
107
100
  globalSlug?: GlobalSlug;
101
+ /**
102
+ * Current doc ID, needed to exclude this doc from uniqueness checks.
103
+ * This ensures that this doc can reuse its own slug rather than bumping past itself when regenerating.
104
+ */
105
+ id?: DefaultDocumentIDType;
106
+ /**
107
+ * Active admin locale, so a localized slug's fallback is deduped within the right locale.
108
+ */
109
+ locale?: Locale['code'];
108
110
  path?: FieldPaths['path'];
109
111
  } & Omit<Parameters<Slugify>[0], 'req'>;
110
112
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/admin/functions/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAA;AAEjE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AACrE,OAAO,KAAK,EAAE,MAAM,EAAE,eAAe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a,CAAC,MAAM,CAAC,CAAA;IAC5B,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,kBAAkB,EAAE,MAAM,CAAA;IAC1B,MAAM,CAAC,EAAE;QACP,cAAc,EAAE,cAAc,CAAA;QAC9B,EAAE,EAAE,MAAM,GAAG,MAAM,CAAA;QACnB,QAAQ,EAAE,MAAM,CAAA;KACjB,CAAA;IACD,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,eAAe,CAAC,EAAE,WAAW,GAAG,SAAS,CAAA;CAC1C,CAAA;AAED,MAAM,MAAM,yBAAyB,GAAG;IACtC,cAAc,CAAC,EAAE,cAAc,CAAA;IAC/B,UAAU,CAAC,EAAE,UAAU,CAAA;IACvB;;;OAGG;IACH,EAAE,CAAC,EAAE,qBAAqB,CAAA;IAC1B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,CAAC,CAAA;IACvB,IAAI,CAAC,EAAE,UAAU,CAAC,MAAM,CAAC,CAAA;CAC1B,GAAG,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/admin/functions/index.ts"],"sourcesContent":["import type { AcceptedLanguages } from '@payloadcms/translations'\n\nimport type { ImportMap } from '../../bin/generateImportMap/index.js'\nimport type { Locale, SanitizedConfig } from '../../config/types.js'\nimport type { PaginatedDocs } from '../../database/types.js'\nimport type { Slugify } from '../../fields/baseFields/slug/types.js'\nimport type {\n CollectionSlug,\n ColumnPreference,\n FieldPaths,\n GlobalSlug,\n SanitizedPermissions,\n} from '../../index.js'\nimport type { PayloadRequest, Sort, Where } from '../../types/index.js'\nimport type { ColumnsFromURL } from '../../utilities/transformColumnPreferences.js'\nimport type { ComponentRenderer } from '../adapters/render.js'\n\nexport type InitReqResult = {\n cookies: Map<string, string>\n // TODO: Remove in 4.0. Duplicative, already available in req.headers\n headers: Headers\n // TODO: Remove in 4.0. Duplicative, already available in req.i18n.language\n languageCode: AcceptedLanguages\n locale?: Locale\n permissions: SanitizedPermissions\n req: PayloadRequest\n}\n\n/**\n * Determines how server function handlers serialize their return values.\n * - `'rsc'`: Return React nodes (JSX) — requires RSC flight serialization (Next.js)\n * - `'data-only'`: Return JSON-serializable data — for non-RSC adapters (TanStack Start)\n */\nexport type ServerFunctionMode = 'data-only' | 'rsc'\n\nexport type DefaultServerFunctionArgs = {\n importMap: ImportMap\n mode?: ServerFunctionMode\n renderComponent?: ComponentRenderer\n} & Pick<InitReqResult, 'cookies' | 'locale' | 'permissions' | 'req'>\n\nexport type ServerFunctionArgs = {\n args: Record<string, unknown>\n name: string\n}\n\nexport type ServerFunctionClientArgs = {\n args: Record<string, unknown>\n name: string\n}\n\nexport type ServerFunctionClient = (args: ServerFunctionClientArgs) => Promise<unknown> | unknown\n\nexport type ServerFunction<\n TArgs extends object = Record<string, unknown>,\n TReturnType = Promise<unknown> | unknown,\n> = (args: DefaultServerFunctionArgs & TArgs) => TReturnType\n\nexport type ServerFunctionConfig = {\n fn: ServerFunction\n name: string\n}\n\nexport type ServerFunctionHandler = (\n args: {\n config: Promise<SanitizedConfig> | SanitizedConfig\n importMap: ImportMap\n /**\n * A map of server function names to their implementations. These are\n * registered alongside the base server functions and can be called\n * using the useServerFunctions() hook.\n *\n * @example\n * const { serverFunction } = useServerFunctions()\n *\n * const callServerFunction = useCallback(() => {\n *\n * async function call() {\n * const result = (await serverFunction({\n * name: 'record-key',\n * args: {\n * // Your args\n * },\n * }))\n *\n * // Do someting with the result\n * }\n *\n * void call()\n * }, [serverFunction])\n */\n serverFunctions?: Record<string, ServerFunction<any, any>>\n } & ServerFunctionClientArgs,\n) => Promise<unknown>\n\nexport type ListQuery = {\n /*\n * This is an of strings, i.e. `['title', '-slug']`\n * Use `transformColumnsToPreferences` and `transformColumnsToSearchParams` to convert it back and forth\n */\n columns?: ColumnsFromURL\n /*\n * A string representing the field to group by, e.g. `category`\n * A leading hyphen represents descending order, e.g. `-category`\n */\n groupBy?: string\n limit?: number\n page?: number\n preset?: number | string\n queryByGroup?: Record<string, ListQuery>\n /*\n When provided, is automatically injected into the `where` object\n */\n search?: string\n sort?: Sort\n where?: Where\n} & Record<string, unknown>\n\nexport type BuildTableStateArgs = {\n /**\n * If an array is provided, the table will be built to support polymorphic collections.\n */\n collectionSlug: string | string[]\n columns?: ColumnPreference[]\n data?: PaginatedDocs\n /**\n * @deprecated Use `data` instead\n */\n docs?: PaginatedDocs['docs']\n enableRowSelections?: boolean\n orderableFieldName: string\n parent?: {\n collectionSlug: CollectionSlug\n id: number | string\n joinPath: string\n }\n query?: ListQuery\n renderRowTypes?: boolean\n tableAppearance?: 'condensed' | 'default'\n}\n\nexport type SlugifyServerFunctionArgs = {\n collectionSlug?: CollectionSlug\n globalSlug?: GlobalSlug\n path?: FieldPaths['path']\n} & Omit<Parameters<Slugify>[0], 'req'>\n"],"names":[],"mappings":"AA6IA,WAIuC"}
1
+ {"version":3,"sources":["../../../src/admin/functions/index.ts"],"sourcesContent":["import type { AcceptedLanguages } from '@payloadcms/translations'\n\nimport type { ImportMap } from '../../cli/commands/generateImportMap/generateImportMap.js'\nimport type { Locale, SanitizedConfig } from '../../config/types.js'\nimport type { PaginatedDocs } from '../../database/types.js'\nimport type { Slugify } from '../../fields/baseFields/slug/types.js'\nimport type {\n CollectionSlug,\n ColumnPreference,\n DefaultDocumentIDType,\n FieldPaths,\n GlobalSlug,\n SanitizedPermissions,\n} from '../../index.js'\nimport type { PayloadRequest, Sort, Where } from '../../types/index.js'\nimport type { ColumnsFromURL } from '../../utilities/transformColumnPreferences.js'\nimport type { ComponentRenderer } from '../adapters/render.js'\n\nexport type InitReqResult = {\n cookies: Map<string, string>\n // TODO: Remove in 4.0. Duplicative, already available in req.headers\n headers: Headers\n // TODO: Remove in 4.0. Duplicative, already available in req.i18n.language\n languageCode: AcceptedLanguages\n locale?: Locale\n permissions: SanitizedPermissions\n req: PayloadRequest\n}\n\nexport type DefaultServerFunctionArgs = {\n importMap: ImportMap\n renderComponent?: ComponentRenderer\n} & Pick<InitReqResult, 'cookies' | 'locale' | 'permissions' | 'req'>\n\nexport type ServerFunctionArgs = {\n args: Record<string, unknown>\n name: string\n}\n\nexport type ServerFunctionClientArgs = {\n args: Record<string, unknown>\n name: string\n}\n\nexport type ServerFunctionClient = (args: ServerFunctionClientArgs) => Promise<unknown> | unknown\n\nexport type ServerFunction<\n TArgs extends object = Record<string, unknown>,\n TReturnType = Promise<unknown> | unknown,\n> = (args: DefaultServerFunctionArgs & TArgs) => TReturnType\n\nexport type ServerFunctionConfig = {\n fn: ServerFunction\n name: string\n}\n\nexport type ServerFunctionHandler = (\n args: {\n config: Promise<SanitizedConfig> | SanitizedConfig\n importMap: ImportMap\n /**\n * A map of server function names to their implementations. These are\n * registered alongside the base server functions and can be called\n * using the useServerFunctions() hook.\n *\n * @example\n * const { serverFunction } = useServerFunctions()\n *\n * const callServerFunction = useCallback(() => {\n *\n * async function call() {\n * const result = (await serverFunction({\n * name: 'record-key',\n * args: {\n * // Your args\n * },\n * }))\n *\n * // Do someting with the result\n * }\n *\n * void call()\n * }, [serverFunction])\n */\n serverFunctions?: Record<string, ServerFunction<any, any>>\n } & ServerFunctionClientArgs,\n) => Promise<unknown>\n\nexport type ListQuery = {\n /*\n * This is an of strings, i.e. `['title', '-slug']`\n * Use `transformColumnsToPreferences` and `transformColumnsToSearchParams` to convert it back and forth\n */\n columns?: ColumnsFromURL\n /*\n * A string representing the field to group by, e.g. `category`\n * A leading hyphen represents descending order, e.g. `-category`\n */\n groupBy?: string\n limit?: number\n page?: number\n preset?: number | string\n queryByGroup?: Record<string, ListQuery>\n /*\n When provided, is automatically injected into the `where` object\n */\n search?: string\n sort?: Sort\n where?: Where\n} & Record<string, unknown>\n\nexport type BuildTableStateArgs = {\n /**\n * If an array is provided, the table will be built to support polymorphic collections.\n */\n collectionSlug: string | string[]\n columns?: ColumnPreference[]\n data?: PaginatedDocs\n /**\n * @deprecated Use `data` instead\n */\n docs?: PaginatedDocs['docs']\n enableRowSelections?: boolean\n orderableFieldName: string\n parent?: {\n collectionSlug: CollectionSlug\n id: number | string\n joinPath: string\n }\n query?: ListQuery\n renderRowTypes?: boolean\n tableAppearance?: 'condensed' | 'default'\n}\n\nexport type SlugifyServerFunctionArgs = {\n collectionSlug?: CollectionSlug\n globalSlug?: GlobalSlug\n /**\n * Current doc ID, needed to exclude this doc from uniqueness checks.\n * This ensures that this doc can reuse its own slug rather than bumping past itself when regenerating.\n */\n id?: DefaultDocumentIDType\n /**\n * Active admin locale, so a localized slug's fallback is deduped within the right locale.\n */\n locale?: Locale['code']\n path?: FieldPaths['path']\n} & Omit<Parameters<Slugify>[0], 'req'>\n"],"names":[],"mappings":"AAsIA,WAauC"}
@@ -1,6 +1,6 @@
1
1
  import type { AcceptedLanguages, I18nClient } from '@payloadcms/translations';
2
2
  import type React from 'react';
3
- import type { ImportMap } from '../bin/generateImportMap/index.js';
3
+ import type { ImportMap } from '../cli/commands/generateImportMap/generateImportMap.js';
4
4
  import type { TypeWithID } from '../collections/config/types.js';
5
5
  import type { SanitizedConfig } from '../config/types.js';
6
6
  import type { Block, ClientBlock, ClientField, Field, FieldTypes, Tab } from '../fields/config/types.js';
@@ -153,7 +153,7 @@ export type DocumentSlots = {
153
153
  UploadControls?: React.ReactNode;
154
154
  UploadFilePreview?: React.ReactNode;
155
155
  };
156
- export type { BuildTableStateArgs, DefaultServerFunctionArgs, InitReqResult, ListQuery, ServerFunction, ServerFunctionArgs, ServerFunctionClient, ServerFunctionClientArgs, ServerFunctionConfig, ServerFunctionHandler, ServerFunctionMode, SlugifyServerFunctionArgs, } from './functions/index.js';
156
+ export type { BuildTableStateArgs, DefaultServerFunctionArgs, InitReqResult, ListQuery, ServerFunction, ServerFunctionArgs, ServerFunctionClient, ServerFunctionClientArgs, ServerFunctionConfig, ServerFunctionHandler, SlugifyServerFunctionArgs, } from './functions/index.js';
157
157
  export type { LanguageOptions } from './LanguageOptions.js';
158
158
  export type { RichTextAdapter, RichTextAdapterProvider, RichTextHooks } from './RichText.js';
159
159
  export { type WidgetServerProps } from './views/dashboard.js';
@@ -209,7 +209,7 @@ export type DocumentEvent = {
209
209
  drawerSlug?: string;
210
210
  entitySlug: string;
211
211
  id?: number | string;
212
- operation: 'create' | 'update';
212
+ operation: 'create' | 'delete' | 'update';
213
213
  updatedAt: string;
214
214
  };
215
215
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/admin/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAA;AAC7E,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAA;AAClE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAA;AAChE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AACzD,OAAO,KAAK,EACV,KAAK,EACL,WAAW,EACX,WAAW,EACX,KAAK,EACL,UAAU,EACV,GAAG,EACJ,MAAM,2BAA2B,CAAA;AAClC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,KAAK,EACV,kBAAkB,EAClB,IAAI,EACJ,UAAU,EACV,2BAA2B,EAC3B,mBAAmB,EACnB,SAAS,EACT,0BAA0B,EAC1B,GAAG,EACJ,MAAM,iBAAiB,CAAA;AAExB,YAAY;AACV;;;;GAIG;AACH,eAAe,IAAI,mBAAmB;AACtC;;;;GAIG;AACH,eAAe,IAAI,mBAAmB;AACtC;;;;GAIG;AACH,eAAe,IAAI,gBAAgB;AACnC;;;;GAIG;AACH,eAAe,IAAI,qBAAqB,GAC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B,MAAM,MAAM,cAAc,GAAG,GAAG,CAC9B,UAAU,EACR;IACE,MAAM,EAAE,KAAK,EAAE,CAAA;CAChB,GACD,KAAK,GACL,KAAK,GACL,GAAG,CACN,CAAA;AAED,MAAM,MAAM,oBAAoB,GAAG,GAAG,CACpC,UAAU,EACR;IACE,MAAM,EAAE,WAAW,EAAE,CAAA;CACtB,GACD,WAAW,GACX,WAAW,GACX,SAAS,CACZ,CAAA;AAED,MAAM,MAAM,aAAa,GAAG;IAC1B,GAAG,CAAC,EAAE,UAAU,CAAA;IAChB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,UAAU,EAAE,MAAM,CAAA;IAClB,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACpB,SAAS,EAAE,QAAQ,GAAG,QAAQ,GAAG,QAAQ,CAAA;IACzC,SAAS,EAAE,MAAM,CAAA;CAClB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/admin/types.ts"],"sourcesContent":["import type { AcceptedLanguages, I18nClient } from '@payloadcms/translations'\nimport type React from 'react'\n\nimport type { ImportMap } from '../bin/generateImportMap/index.js'\nimport type { TypeWithID } from '../collections/config/types.js'\nimport type { SanitizedConfig } from '../config/types.js'\nimport type {\n Block,\n ClientBlock,\n ClientField,\n Field,\n FieldTypes,\n Tab,\n} from '../fields/config/types.js'\nimport type { JsonObject } from '../types/index.js'\nimport type { ClientTab } from './fields/Tabs.js'\nimport type {\n BuildFormStateArgs,\n Data,\n FieldState,\n FieldStateWithoutComponents,\n FilterOptionsResult,\n FormState,\n FormStateWithoutComponents,\n Row,\n} from './forms/Form.js'\n\nexport type {\n /**\n * @deprecated\n * The `CustomPreviewButton` type is deprecated and will be removed in the next major version.\n * This type is only used for the Payload Config. Use `PreviewButtonClientProps` instead.\n */\n CustomComponent as CustomPreviewButton,\n /**\n * @deprecated\n * The `CustomPublishButton` type is deprecated and will be removed in the next major version.\n * This type is only used for the Payload Config. Use `PreviewButtonClientProps` instead.\n */\n CustomComponent as CustomPublishButton,\n /**\n * @deprecated\n * The `CustomSaveButton` type is deprecated and will be removed in the next major version.\n * This type is only used for the Payload Config. Use `PreviewButtonClientProps` instead.\n */\n CustomComponent as CustomSaveButton,\n /**\n * @deprecated\n * The `CustomSaveDraftButton` type is deprecated and will be removed in the next major version.\n * This type is only used for the Payload Config. Use `PreviewButtonClientProps` instead.\n */\n CustomComponent as CustomSaveDraftButton,\n} from '../config/types.js'\nexport type { DefaultCellComponentProps, DefaultServerCellComponentProps } from './elements/Cell.js'\nexport type { ConditionalDateProps } from './elements/DatePicker.js'\nexport type { DayPickerProps, SharedProps, TimePickerProps } from './elements/DatePicker.js'\nexport type {\n EditMenuItemsClientProps,\n EditMenuItemsServerProps,\n EditMenuItemsServerPropsOnly,\n} from './elements/EditMenuItems.js'\nexport type {\n NavGroupPreferences,\n NavPreferences,\n SidebarTabClientProps,\n SidebarTabServerProps,\n SidebarTabServerPropsOnly,\n} from './elements/Nav.js'\nexport type {\n PreviewButtonClientProps,\n PreviewButtonServerProps,\n PreviewButtonServerPropsOnly,\n} from './elements/PreviewButton.js'\nexport type {\n PublishButtonClientProps,\n PublishButtonServerProps,\n PublishButtonServerPropsOnly,\n} from './elements/PublishButton.js'\nexport type {\n SaveButtonClientProps,\n SaveButtonServerProps,\n SaveButtonServerPropsOnly,\n} from './elements/SaveButton.js'\nexport type {\n SaveDraftButtonClientProps,\n SaveDraftButtonServerProps,\n SaveDraftButtonServerPropsOnly,\n} from './elements/SaveDraftButton.js'\nexport type { CustomStatus } from './elements/Status.js'\n\nexport type { Column } from './elements/Table.js'\n\nexport type {\n UnpublishButtonClientProps,\n UnpublishButtonServerProps,\n UnpublishButtonServerPropsOnly,\n} from './elements/UnpublishButton.js'\n\nexport type { CustomUpload } from './elements/Upload.js'\n\nexport type {\n WithServerSidePropsComponent,\n WithServerSidePropsComponentProps,\n} from './elements/WithServerSideProps.js'\n\nexport type {\n ArrayFieldClientComponent,\n ArrayFieldClientProps,\n ArrayFieldDescriptionClientComponent,\n ArrayFieldDescriptionServerComponent,\n ArrayFieldDiffClientComponent,\n ArrayFieldDiffServerComponent,\n ArrayFieldErrorClientComponent,\n ArrayFieldErrorServerComponent,\n ArrayFieldLabelClientComponent,\n ArrayFieldLabelServerComponent,\n ArrayFieldServerComponent,\n ArrayFieldServerProps,\n} from './fields/Array.js'\n\nexport type {\n BlockRowLabelClientComponent,\n BlockRowLabelServerComponent,\n BlocksFieldClientComponent,\n BlocksFieldClientProps,\n BlocksFieldDescriptionClientComponent,\n BlocksFieldDescriptionServerComponent,\n BlocksFieldDiffClientComponent,\n BlocksFieldDiffServerComponent,\n BlocksFieldErrorClientComponent,\n BlocksFieldErrorServerComponent,\n BlocksFieldLabelClientComponent,\n BlocksFieldLabelServerComponent,\n BlocksFieldServerComponent,\n BlocksFieldServerProps,\n} from './fields/Blocks.js'\n\nexport type {\n CheckboxFieldClientComponent,\n CheckboxFieldClientProps,\n CheckboxFieldDescriptionClientComponent,\n CheckboxFieldDescriptionServerComponent,\n CheckboxFieldDiffClientComponent,\n CheckboxFieldDiffServerComponent,\n CheckboxFieldErrorClientComponent,\n CheckboxFieldErrorServerComponent,\n CheckboxFieldLabelClientComponent,\n CheckboxFieldLabelServerComponent,\n CheckboxFieldServerComponent,\n CheckboxFieldServerProps,\n} from './fields/Checkbox.js'\n\nexport type {\n CodeFieldClientComponent,\n CodeFieldClientProps,\n CodeFieldDescriptionClientComponent,\n CodeFieldDescriptionServerComponent,\n CodeFieldDiffClientComponent,\n CodeFieldDiffServerComponent,\n CodeFieldErrorClientComponent,\n CodeFieldErrorServerComponent,\n CodeFieldLabelClientComponent,\n CodeFieldLabelServerComponent,\n CodeFieldServerComponent,\n CodeFieldServerProps,\n} from './fields/Code.js'\n\nexport type {\n CollapsibleFieldClientComponent,\n CollapsibleFieldClientProps,\n CollapsibleFieldDescriptionClientComponent,\n CollapsibleFieldDescriptionServerComponent,\n CollapsibleFieldDiffClientComponent,\n CollapsibleFieldDiffServerComponent,\n CollapsibleFieldErrorClientComponent,\n CollapsibleFieldErrorServerComponent,\n CollapsibleFieldLabelClientComponent,\n CollapsibleFieldLabelServerComponent,\n CollapsibleFieldServerComponent,\n CollapsibleFieldServerProps,\n} from './fields/Collapsible.js'\n\nexport type {\n DateFieldClientComponent,\n DateFieldClientProps,\n DateFieldDescriptionClientComponent,\n DateFieldDescriptionServerComponent,\n DateFieldDiffClientComponent,\n DateFieldDiffServerComponent,\n DateFieldErrorClientComponent,\n DateFieldErrorServerComponent,\n DateFieldLabelClientComponent,\n DateFieldLabelServerComponent,\n DateFieldServerComponent,\n DateFieldServerProps,\n} from './fields/Date.js'\n\nexport type {\n EmailFieldClientComponent,\n EmailFieldClientProps,\n EmailFieldDescriptionClientComponent,\n EmailFieldDescriptionServerComponent,\n EmailFieldDiffClientComponent,\n EmailFieldDiffServerComponent,\n EmailFieldErrorClientComponent,\n EmailFieldErrorServerComponent,\n EmailFieldLabelClientComponent,\n EmailFieldLabelServerComponent,\n EmailFieldServerComponent,\n EmailFieldServerProps,\n} from './fields/Email.js'\n\nexport type {\n GroupFieldClientComponent,\n GroupFieldClientProps,\n GroupFieldDescriptionClientComponent,\n GroupFieldDescriptionServerComponent,\n GroupFieldDiffClientComponent,\n GroupFieldDiffServerComponent,\n GroupFieldErrorClientComponent,\n GroupFieldErrorServerComponent,\n GroupFieldLabelClientComponent,\n GroupFieldLabelServerComponent,\n GroupFieldServerComponent,\n GroupFieldServerProps,\n} from './fields/Group.js'\n\nexport type { HiddenFieldProps } from './fields/Hidden.js'\n\nexport type {\n JoinFieldClientComponent,\n JoinFieldClientProps,\n JoinFieldDescriptionClientComponent,\n JoinFieldDescriptionServerComponent,\n JoinFieldDiffClientComponent,\n JoinFieldDiffServerComponent,\n JoinFieldErrorClientComponent,\n JoinFieldErrorServerComponent,\n JoinFieldLabelClientComponent,\n JoinFieldLabelServerComponent,\n JoinFieldServerComponent,\n JoinFieldServerProps,\n} from './fields/Join.js'\n\nexport type {\n JSONFieldClientComponent,\n JSONFieldClientProps,\n JSONFieldDescriptionClientComponent,\n JSONFieldDescriptionServerComponent,\n JSONFieldDiffClientComponent,\n JSONFieldDiffServerComponent,\n JSONFieldErrorClientComponent,\n JSONFieldErrorServerComponent,\n JSONFieldLabelClientComponent,\n JSONFieldLabelServerComponent,\n JSONFieldServerComponent,\n JSONFieldServerProps,\n} from './fields/JSON.js'\n\nexport type {\n NumberFieldClientComponent,\n NumberFieldClientProps,\n NumberFieldDescriptionClientComponent,\n NumberFieldDescriptionServerComponent,\n NumberFieldDiffClientComponent,\n NumberFieldDiffServerComponent,\n NumberFieldErrorClientComponent,\n NumberFieldErrorServerComponent,\n NumberFieldLabelClientComponent,\n NumberFieldLabelServerComponent,\n NumberFieldServerComponent,\n NumberFieldServerProps,\n} from './fields/Number.js'\n\nexport type {\n PointFieldClientComponent,\n PointFieldClientProps,\n PointFieldDescriptionClientComponent,\n PointFieldDescriptionServerComponent,\n PointFieldDiffClientComponent,\n PointFieldDiffServerComponent,\n PointFieldErrorClientComponent,\n PointFieldErrorServerComponent,\n PointFieldLabelClientComponent,\n PointFieldLabelServerComponent,\n PointFieldServerComponent,\n PointFieldServerProps,\n} from './fields/Point.js'\n\nexport type {\n RadioFieldClientComponent,\n RadioFieldClientProps,\n RadioFieldDescriptionClientComponent,\n RadioFieldDescriptionServerComponent,\n RadioFieldDiffClientComponent,\n RadioFieldDiffServerComponent,\n RadioFieldErrorClientComponent,\n RadioFieldErrorServerComponent,\n RadioFieldLabelClientComponent,\n RadioFieldLabelServerComponent,\n RadioFieldServerComponent,\n RadioFieldServerProps,\n} from './fields/Radio.js'\n\nexport type {\n RelationshipFieldClientComponent,\n RelationshipFieldClientProps,\n RelationshipFieldDescriptionClientComponent,\n RelationshipFieldDescriptionServerComponent,\n RelationshipFieldDiffClientComponent,\n RelationshipFieldDiffServerComponent,\n RelationshipFieldErrorClientComponent,\n RelationshipFieldErrorServerComponent,\n RelationshipFieldLabelClientComponent,\n RelationshipFieldLabelServerComponent,\n RelationshipFieldServerComponent,\n RelationshipFieldServerProps,\n} from './fields/Relationship.js'\n\nexport type {\n RichTextFieldClientComponent,\n RichTextFieldClientProps,\n RichTextFieldDescriptionClientComponent,\n RichTextFieldDescriptionServerComponent,\n RichTextFieldDiffClientComponent,\n RichTextFieldDiffServerComponent,\n RichTextFieldErrorClientComponent,\n RichTextFieldErrorServerComponent,\n RichTextFieldLabelClientComponent,\n RichTextFieldLabelServerComponent,\n RichTextFieldServerComponent,\n RichTextFieldServerProps,\n} from './fields/RichText.js'\n\nexport type {\n RowFieldClientComponent,\n RowFieldClientProps,\n RowFieldDescriptionClientComponent,\n RowFieldDescriptionServerComponent,\n RowFieldDiffClientComponent,\n RowFieldDiffServerComponent,\n RowFieldErrorClientComponent,\n RowFieldErrorServerComponent,\n RowFieldLabelClientComponent,\n RowFieldLabelServerComponent,\n RowFieldServerComponent,\n RowFieldServerProps,\n} from './fields/Row.js'\n\nexport type {\n SelectFieldClientComponent,\n SelectFieldClientProps,\n SelectFieldDescriptionClientComponent,\n SelectFieldDescriptionServerComponent,\n SelectFieldDiffClientComponent,\n SelectFieldDiffServerComponent,\n SelectFieldErrorClientComponent,\n SelectFieldErrorServerComponent,\n SelectFieldLabelClientComponent,\n SelectFieldLabelServerComponent,\n SelectFieldServerComponent,\n SelectFieldServerProps,\n} from './fields/Select.js'\n\nexport type {\n ClientTab,\n TabsFieldClientComponent,\n TabsFieldClientProps,\n TabsFieldDescriptionClientComponent,\n TabsFieldDescriptionServerComponent,\n TabsFieldDiffClientComponent,\n TabsFieldDiffServerComponent,\n TabsFieldErrorClientComponent,\n TabsFieldErrorServerComponent,\n TabsFieldLabelClientComponent,\n TabsFieldLabelServerComponent,\n TabsFieldServerComponent,\n TabsFieldServerProps,\n} from './fields/Tabs.js'\n\nexport type {\n TextFieldClientComponent,\n TextFieldClientProps,\n TextFieldDescriptionClientComponent,\n TextFieldDescriptionServerComponent,\n TextFieldDiffClientComponent,\n TextFieldDiffServerComponent,\n TextFieldErrorClientComponent,\n TextFieldErrorServerComponent,\n TextFieldLabelClientComponent,\n TextFieldLabelServerComponent,\n TextFieldServerComponent,\n TextFieldServerProps,\n} from './fields/Text.js'\n\nexport type {\n TextareaFieldClientComponent,\n TextareaFieldClientProps,\n TextareaFieldDescriptionClientComponent,\n TextareaFieldDescriptionServerComponent,\n TextareaFieldDiffClientComponent,\n TextareaFieldDiffServerComponent,\n TextareaFieldErrorClientComponent,\n TextareaFieldErrorServerComponent,\n TextareaFieldLabelClientComponent,\n TextareaFieldLabelServerComponent,\n TextareaFieldServerComponent,\n TextareaFieldServerProps,\n} from './fields/Textarea.js'\n\nexport type {\n UIFieldClientComponent,\n UIFieldClientProps,\n UIFieldDiffClientComponent,\n UIFieldDiffServerComponent,\n UIFieldServerComponent,\n UIFieldServerProps,\n} from './fields/UI.js'\n\nexport type {\n UploadFieldClientComponent,\n UploadFieldClientProps,\n UploadFieldDescriptionClientComponent,\n UploadFieldDescriptionServerComponent,\n UploadFieldDiffClientComponent,\n UploadFieldDiffServerComponent,\n UploadFieldErrorClientComponent,\n UploadFieldErrorServerComponent,\n UploadFieldLabelClientComponent,\n UploadFieldLabelServerComponent,\n UploadFieldServerComponent,\n UploadFieldServerProps,\n} from './fields/Upload.js'\n\nexport type {\n Description,\n DescriptionFunction,\n FieldDescriptionClientComponent,\n FieldDescriptionClientProps,\n FieldDescriptionServerComponent,\n FieldDescriptionServerProps,\n GenericDescriptionProps,\n StaticDescription,\n} from './forms/Description.js'\n\nexport type {\n BaseVersionField,\n DiffMethod,\n FieldDiffClientComponent,\n FieldDiffClientProps,\n FieldDiffServerComponent,\n FieldDiffServerProps,\n VersionField,\n VersionTab,\n} from './forms/Diff.js'\n\nexport type {\n BuildFormStateArgs,\n Data,\n FieldState as FormField,\n FieldStateWithoutComponents as FormFieldWithoutComponents,\n FilterOptionsResult,\n FormState,\n FormStateWithoutComponents,\n Row,\n}\n\nexport type {\n FieldErrorClientComponent,\n FieldErrorClientProps,\n FieldErrorServerComponent,\n FieldErrorServerProps,\n GenericErrorProps,\n} from './forms/Error.js'\n\nexport type {\n ClientComponentProps,\n ClientFieldBase,\n ClientFieldWithOptionalType,\n FieldClientComponent,\n FieldPaths,\n FieldServerComponent,\n ServerComponentProps,\n ServerFieldBase,\n} from './forms/Field.js'\n\nexport type {\n FieldLabelClientComponent,\n FieldLabelClientProps,\n FieldLabelServerComponent,\n FieldLabelServerProps,\n GenericLabelProps,\n SanitizedLabelProps,\n} from './forms/Label.js'\n\nexport type { RowLabel, RowLabelComponent } from './forms/RowLabel.js'\n\nexport type MappedServerComponent<TComponentClientProps extends JsonObject = JsonObject> = {\n Component?: React.ComponentType<TComponentClientProps>\n props?: Partial<any>\n RenderedComponent: React.ReactNode\n type: 'server'\n}\n\nexport type MappedClientComponent<TComponentClientProps extends JsonObject = JsonObject> = {\n Component?: React.ComponentType<TComponentClientProps>\n props?: Partial<TComponentClientProps>\n RenderedComponent?: React.ReactNode\n type: 'client'\n}\n\nexport type MappedEmptyComponent = {\n type: 'empty'\n}\n\nexport enum Action {\n RenderConfig = 'render-config',\n}\n\nexport type RenderEntityConfigArgs = {\n collectionSlug?: string\n data?: Data\n globalSlug?: string\n}\n\nexport type RenderRootConfigArgs = {}\n\nexport type RenderFieldConfigArgs = {\n collectionSlug?: string\n formState?: FormState\n globalSlug?: string\n schemaPath: string\n}\n\nexport type RenderConfigArgs = {\n action: Action.RenderConfig\n config: Promise<SanitizedConfig> | SanitizedConfig\n i18n: I18nClient\n importMap: ImportMap\n languageCode: AcceptedLanguages\n serverProps?: any\n} & (RenderEntityConfigArgs | RenderFieldConfigArgs | RenderRootConfigArgs)\n\nexport type PayloadServerAction = (\n args:\n | {\n [key: string]: any\n action: Action\n i18n: I18nClient\n }\n | RenderConfigArgs,\n) => Promise<string>\n\nexport type RenderedField = {\n Field: React.ReactNode\n indexPath?: string\n initialSchemaPath?: string\n /**\n * @deprecated\n * This is a legacy property that will be removed in v4.\n * Please use `fieldIsSidebar(field)` from `payload` instead.\n * Or check `field.admin.position === 'sidebar'` directly.\n */\n isSidebar: boolean\n path: string\n schemaPath: string\n type: FieldTypes\n}\n\nexport type FieldRow = {\n RowLabel?: React.ReactNode\n}\n\nexport type DocumentSlots = {\n BeforeDocumentControls?: React.ReactNode\n BeforeDocumentMeta?: React.ReactNode\n Description?: React.ReactNode\n EditMenuItems?: React.ReactNode\n LivePreview?: React.ReactNode\n PreviewButton?: React.ReactNode\n PublishButton?: React.ReactNode\n SaveButton?: React.ReactNode\n SaveDraftButton?: React.ReactNode\n Status?: React.ReactNode\n UnpublishButton?: React.ReactNode\n Upload?: React.ReactNode\n UploadControls?: React.ReactNode\n UploadFilePreview?: React.ReactNode\n}\n\nexport type {\n BuildTableStateArgs,\n DefaultServerFunctionArgs,\n InitReqResult,\n ListQuery,\n ServerFunction,\n ServerFunctionArgs,\n ServerFunctionClient,\n ServerFunctionClientArgs,\n ServerFunctionConfig,\n ServerFunctionHandler,\n ServerFunctionMode,\n SlugifyServerFunctionArgs,\n} from './functions/index.js'\n\nexport type { LanguageOptions } from './LanguageOptions.js'\n\nexport type { RichTextAdapter, RichTextAdapterProvider, RichTextHooks } from './RichText.js'\n\nexport { type WidgetServerProps } from './views/dashboard.js'\n\nexport type {\n BeforeDocumentControlsClientProps,\n BeforeDocumentControlsServerProps,\n BeforeDocumentControlsServerPropsOnly,\n DocumentSubViewTypes,\n DocumentTabClientProps,\n /**\n * @deprecated\n * The `DocumentTabComponent` type is deprecated and will be removed in the next major version.\n * Use `DocumentTabServerProps`or `DocumentTabClientProps` instead.\n */\n DocumentTabComponent,\n DocumentTabCondition,\n DocumentTabConfig,\n /**\n * @deprecated\n * The `DocumentTabProps` type is deprecated and will be removed in the next major version.\n * Use `DocumentTabServerProps` instead.\n */\n DocumentTabServerProps as DocumentTabProps,\n DocumentTabServerProps,\n DocumentTabServerPropsOnly,\n /**\n * @deprecated\n * The `ClientSideEditViewProps` type is deprecated and will be removed in the next major version.\n * Use `DocumentViewClientProps` instead.\n */\n DocumentViewClientProps as ClientSideEditViewProps,\n DocumentViewClientProps,\n /**\n * @deprecated\n * The `ServerSideEditViewProps` is deprecated and will be removed in the next major version.\n * Use `DocumentViewServerProps` instead.\n */\n DocumentViewServerProps as ServerSideEditViewProps,\n DocumentViewServerProps,\n DocumentViewServerPropsOnly,\n EditViewProps,\n RenderDocumentVersionsProperties,\n} from './views/document.js'\n\nexport type { RelatedDocumentsGrouped } from './views/hierarchyList.js'\n\nexport type {\n AdminViewClientProps,\n /**\n * @deprecated\n * The `AdminViewComponent` type is deprecated and will be removed in the next major version.\n * Type your component props directly instead.\n */\n AdminViewComponent,\n AdminViewConfig,\n /**\n * @deprecated\n * The `AdminViewProps` type is deprecated and will be removed in the next major version.\n * Use `AdminViewServerProps` instead.\n */\n AdminViewServerProps as AdminViewProps,\n AdminViewServerProps,\n AdminViewServerPropsOnly,\n InitPageResult,\n ServerPropsFromView,\n ViewDescriptionClientProps,\n ViewDescriptionServerProps,\n ViewDescriptionServerPropsOnly,\n ViewTypes,\n VisibleEntities,\n} from './views/index.js'\n\nexport type {\n AfterListClientProps,\n AfterListServerProps,\n AfterListServerPropsOnly,\n AfterListTableClientProps,\n AfterListTableServerProps,\n AfterListTableServerPropsOnly,\n BeforeListClientProps,\n BeforeListServerProps,\n BeforeListServerPropsOnly,\n BeforeListTableClientProps,\n BeforeListTableServerProps,\n BeforeListTableServerPropsOnly,\n HierarchyViewData,\n ListViewClientProps,\n ListViewServerProps,\n ListViewServerPropsOnly,\n ListViewSlots,\n ListViewSlotSharedClientProps,\n NoResultsClientProps,\n NoResultsServerProps,\n NoResultsServerPropsOnly,\n} from './views/list.js'\n\ntype SchemaPath = {} & string\nexport type FieldSchemaMap = Map<\n SchemaPath,\n | {\n fields: Field[]\n }\n | Block\n | Field\n | Tab\n>\n\nexport type ClientFieldSchemaMap = Map<\n SchemaPath,\n | {\n fields: ClientField[]\n }\n | ClientBlock\n | ClientField\n | ClientTab\n>\n\nexport type DocumentEvent = {\n doc?: TypeWithID\n drawerSlug?: string\n entitySlug: string\n id?: number | string\n operation: 'create' | 'update'\n updatedAt: string\n}\n"],"names":["Action"],"mappings":"AAmgBA,OAAO,IAAA,AAAKA,gCAAAA;;WAAAA;MAEX"}
1
+ {"version":3,"sources":["../../src/admin/types.ts"],"sourcesContent":["import type { AcceptedLanguages, I18nClient } from '@payloadcms/translations'\nimport type React from 'react'\n\nimport type { ImportMap } from '../cli/commands/generateImportMap/generateImportMap.js'\nimport type { TypeWithID } from '../collections/config/types.js'\nimport type { SanitizedConfig } from '../config/types.js'\nimport type {\n Block,\n ClientBlock,\n ClientField,\n Field,\n FieldTypes,\n Tab,\n} from '../fields/config/types.js'\nimport type { JsonObject } from '../types/index.js'\nimport type { ClientTab } from './fields/Tabs.js'\nimport type {\n BuildFormStateArgs,\n Data,\n FieldState,\n FieldStateWithoutComponents,\n FilterOptionsResult,\n FormState,\n FormStateWithoutComponents,\n Row,\n} from './forms/Form.js'\n\nexport type {\n /**\n * @deprecated\n * The `CustomPreviewButton` type is deprecated and will be removed in the next major version.\n * This type is only used for the Payload Config. Use `PreviewButtonClientProps` instead.\n */\n CustomComponent as CustomPreviewButton,\n /**\n * @deprecated\n * The `CustomPublishButton` type is deprecated and will be removed in the next major version.\n * This type is only used for the Payload Config. Use `PreviewButtonClientProps` instead.\n */\n CustomComponent as CustomPublishButton,\n /**\n * @deprecated\n * The `CustomSaveButton` type is deprecated and will be removed in the next major version.\n * This type is only used for the Payload Config. Use `PreviewButtonClientProps` instead.\n */\n CustomComponent as CustomSaveButton,\n /**\n * @deprecated\n * The `CustomSaveDraftButton` type is deprecated and will be removed in the next major version.\n * This type is only used for the Payload Config. Use `PreviewButtonClientProps` instead.\n */\n CustomComponent as CustomSaveDraftButton,\n} from '../config/types.js'\nexport type { DefaultCellComponentProps, DefaultServerCellComponentProps } from './elements/Cell.js'\nexport type { ConditionalDateProps } from './elements/DatePicker.js'\nexport type { DayPickerProps, SharedProps, TimePickerProps } from './elements/DatePicker.js'\nexport type {\n EditMenuItemsClientProps,\n EditMenuItemsServerProps,\n EditMenuItemsServerPropsOnly,\n} from './elements/EditMenuItems.js'\nexport type {\n NavGroupPreferences,\n NavPreferences,\n SidebarTabClientProps,\n SidebarTabServerProps,\n SidebarTabServerPropsOnly,\n} from './elements/Nav.js'\nexport type {\n PreviewButtonClientProps,\n PreviewButtonServerProps,\n PreviewButtonServerPropsOnly,\n} from './elements/PreviewButton.js'\nexport type {\n PublishButtonClientProps,\n PublishButtonServerProps,\n PublishButtonServerPropsOnly,\n} from './elements/PublishButton.js'\nexport type {\n SaveButtonClientProps,\n SaveButtonServerProps,\n SaveButtonServerPropsOnly,\n} from './elements/SaveButton.js'\nexport type {\n SaveDraftButtonClientProps,\n SaveDraftButtonServerProps,\n SaveDraftButtonServerPropsOnly,\n} from './elements/SaveDraftButton.js'\nexport type { CustomStatus } from './elements/Status.js'\n\nexport type { Column } from './elements/Table.js'\n\nexport type {\n UnpublishButtonClientProps,\n UnpublishButtonServerProps,\n UnpublishButtonServerPropsOnly,\n} from './elements/UnpublishButton.js'\n\nexport type { CustomUpload } from './elements/Upload.js'\n\nexport type {\n WithServerSidePropsComponent,\n WithServerSidePropsComponentProps,\n} from './elements/WithServerSideProps.js'\n\nexport type {\n ArrayFieldClientComponent,\n ArrayFieldClientProps,\n ArrayFieldDescriptionClientComponent,\n ArrayFieldDescriptionServerComponent,\n ArrayFieldDiffClientComponent,\n ArrayFieldDiffServerComponent,\n ArrayFieldErrorClientComponent,\n ArrayFieldErrorServerComponent,\n ArrayFieldLabelClientComponent,\n ArrayFieldLabelServerComponent,\n ArrayFieldServerComponent,\n ArrayFieldServerProps,\n} from './fields/Array.js'\n\nexport type {\n BlockRowLabelClientComponent,\n BlockRowLabelServerComponent,\n BlocksFieldClientComponent,\n BlocksFieldClientProps,\n BlocksFieldDescriptionClientComponent,\n BlocksFieldDescriptionServerComponent,\n BlocksFieldDiffClientComponent,\n BlocksFieldDiffServerComponent,\n BlocksFieldErrorClientComponent,\n BlocksFieldErrorServerComponent,\n BlocksFieldLabelClientComponent,\n BlocksFieldLabelServerComponent,\n BlocksFieldServerComponent,\n BlocksFieldServerProps,\n} from './fields/Blocks.js'\n\nexport type {\n CheckboxFieldClientComponent,\n CheckboxFieldClientProps,\n CheckboxFieldDescriptionClientComponent,\n CheckboxFieldDescriptionServerComponent,\n CheckboxFieldDiffClientComponent,\n CheckboxFieldDiffServerComponent,\n CheckboxFieldErrorClientComponent,\n CheckboxFieldErrorServerComponent,\n CheckboxFieldLabelClientComponent,\n CheckboxFieldLabelServerComponent,\n CheckboxFieldServerComponent,\n CheckboxFieldServerProps,\n} from './fields/Checkbox.js'\n\nexport type {\n CodeFieldClientComponent,\n CodeFieldClientProps,\n CodeFieldDescriptionClientComponent,\n CodeFieldDescriptionServerComponent,\n CodeFieldDiffClientComponent,\n CodeFieldDiffServerComponent,\n CodeFieldErrorClientComponent,\n CodeFieldErrorServerComponent,\n CodeFieldLabelClientComponent,\n CodeFieldLabelServerComponent,\n CodeFieldServerComponent,\n CodeFieldServerProps,\n} from './fields/Code.js'\n\nexport type {\n CollapsibleFieldClientComponent,\n CollapsibleFieldClientProps,\n CollapsibleFieldDescriptionClientComponent,\n CollapsibleFieldDescriptionServerComponent,\n CollapsibleFieldDiffClientComponent,\n CollapsibleFieldDiffServerComponent,\n CollapsibleFieldErrorClientComponent,\n CollapsibleFieldErrorServerComponent,\n CollapsibleFieldLabelClientComponent,\n CollapsibleFieldLabelServerComponent,\n CollapsibleFieldServerComponent,\n CollapsibleFieldServerProps,\n} from './fields/Collapsible.js'\n\nexport type {\n DateFieldClientComponent,\n DateFieldClientProps,\n DateFieldDescriptionClientComponent,\n DateFieldDescriptionServerComponent,\n DateFieldDiffClientComponent,\n DateFieldDiffServerComponent,\n DateFieldErrorClientComponent,\n DateFieldErrorServerComponent,\n DateFieldLabelClientComponent,\n DateFieldLabelServerComponent,\n DateFieldServerComponent,\n DateFieldServerProps,\n} from './fields/Date.js'\n\nexport type {\n EmailFieldClientComponent,\n EmailFieldClientProps,\n EmailFieldDescriptionClientComponent,\n EmailFieldDescriptionServerComponent,\n EmailFieldDiffClientComponent,\n EmailFieldDiffServerComponent,\n EmailFieldErrorClientComponent,\n EmailFieldErrorServerComponent,\n EmailFieldLabelClientComponent,\n EmailFieldLabelServerComponent,\n EmailFieldServerComponent,\n EmailFieldServerProps,\n} from './fields/Email.js'\n\nexport type {\n GroupFieldClientComponent,\n GroupFieldClientProps,\n GroupFieldDescriptionClientComponent,\n GroupFieldDescriptionServerComponent,\n GroupFieldDiffClientComponent,\n GroupFieldDiffServerComponent,\n GroupFieldErrorClientComponent,\n GroupFieldErrorServerComponent,\n GroupFieldLabelClientComponent,\n GroupFieldLabelServerComponent,\n GroupFieldServerComponent,\n GroupFieldServerProps,\n} from './fields/Group.js'\n\nexport type { HiddenFieldProps } from './fields/Hidden.js'\n\nexport type {\n JoinFieldClientComponent,\n JoinFieldClientProps,\n JoinFieldDescriptionClientComponent,\n JoinFieldDescriptionServerComponent,\n JoinFieldDiffClientComponent,\n JoinFieldDiffServerComponent,\n JoinFieldErrorClientComponent,\n JoinFieldErrorServerComponent,\n JoinFieldLabelClientComponent,\n JoinFieldLabelServerComponent,\n JoinFieldServerComponent,\n JoinFieldServerProps,\n} from './fields/Join.js'\n\nexport type {\n JSONFieldClientComponent,\n JSONFieldClientProps,\n JSONFieldDescriptionClientComponent,\n JSONFieldDescriptionServerComponent,\n JSONFieldDiffClientComponent,\n JSONFieldDiffServerComponent,\n JSONFieldErrorClientComponent,\n JSONFieldErrorServerComponent,\n JSONFieldLabelClientComponent,\n JSONFieldLabelServerComponent,\n JSONFieldServerComponent,\n JSONFieldServerProps,\n} from './fields/JSON.js'\n\nexport type {\n NumberFieldClientComponent,\n NumberFieldClientProps,\n NumberFieldDescriptionClientComponent,\n NumberFieldDescriptionServerComponent,\n NumberFieldDiffClientComponent,\n NumberFieldDiffServerComponent,\n NumberFieldErrorClientComponent,\n NumberFieldErrorServerComponent,\n NumberFieldLabelClientComponent,\n NumberFieldLabelServerComponent,\n NumberFieldServerComponent,\n NumberFieldServerProps,\n} from './fields/Number.js'\n\nexport type {\n PointFieldClientComponent,\n PointFieldClientProps,\n PointFieldDescriptionClientComponent,\n PointFieldDescriptionServerComponent,\n PointFieldDiffClientComponent,\n PointFieldDiffServerComponent,\n PointFieldErrorClientComponent,\n PointFieldErrorServerComponent,\n PointFieldLabelClientComponent,\n PointFieldLabelServerComponent,\n PointFieldServerComponent,\n PointFieldServerProps,\n} from './fields/Point.js'\n\nexport type {\n RadioFieldClientComponent,\n RadioFieldClientProps,\n RadioFieldDescriptionClientComponent,\n RadioFieldDescriptionServerComponent,\n RadioFieldDiffClientComponent,\n RadioFieldDiffServerComponent,\n RadioFieldErrorClientComponent,\n RadioFieldErrorServerComponent,\n RadioFieldLabelClientComponent,\n RadioFieldLabelServerComponent,\n RadioFieldServerComponent,\n RadioFieldServerProps,\n} from './fields/Radio.js'\n\nexport type {\n RelationshipFieldClientComponent,\n RelationshipFieldClientProps,\n RelationshipFieldDescriptionClientComponent,\n RelationshipFieldDescriptionServerComponent,\n RelationshipFieldDiffClientComponent,\n RelationshipFieldDiffServerComponent,\n RelationshipFieldErrorClientComponent,\n RelationshipFieldErrorServerComponent,\n RelationshipFieldLabelClientComponent,\n RelationshipFieldLabelServerComponent,\n RelationshipFieldServerComponent,\n RelationshipFieldServerProps,\n} from './fields/Relationship.js'\n\nexport type {\n RichTextFieldClientComponent,\n RichTextFieldClientProps,\n RichTextFieldDescriptionClientComponent,\n RichTextFieldDescriptionServerComponent,\n RichTextFieldDiffClientComponent,\n RichTextFieldDiffServerComponent,\n RichTextFieldErrorClientComponent,\n RichTextFieldErrorServerComponent,\n RichTextFieldLabelClientComponent,\n RichTextFieldLabelServerComponent,\n RichTextFieldServerComponent,\n RichTextFieldServerProps,\n} from './fields/RichText.js'\n\nexport type {\n RowFieldClientComponent,\n RowFieldClientProps,\n RowFieldDescriptionClientComponent,\n RowFieldDescriptionServerComponent,\n RowFieldDiffClientComponent,\n RowFieldDiffServerComponent,\n RowFieldErrorClientComponent,\n RowFieldErrorServerComponent,\n RowFieldLabelClientComponent,\n RowFieldLabelServerComponent,\n RowFieldServerComponent,\n RowFieldServerProps,\n} from './fields/Row.js'\n\nexport type {\n SelectFieldClientComponent,\n SelectFieldClientProps,\n SelectFieldDescriptionClientComponent,\n SelectFieldDescriptionServerComponent,\n SelectFieldDiffClientComponent,\n SelectFieldDiffServerComponent,\n SelectFieldErrorClientComponent,\n SelectFieldErrorServerComponent,\n SelectFieldLabelClientComponent,\n SelectFieldLabelServerComponent,\n SelectFieldServerComponent,\n SelectFieldServerProps,\n} from './fields/Select.js'\n\nexport type {\n ClientTab,\n TabsFieldClientComponent,\n TabsFieldClientProps,\n TabsFieldDescriptionClientComponent,\n TabsFieldDescriptionServerComponent,\n TabsFieldDiffClientComponent,\n TabsFieldDiffServerComponent,\n TabsFieldErrorClientComponent,\n TabsFieldErrorServerComponent,\n TabsFieldLabelClientComponent,\n TabsFieldLabelServerComponent,\n TabsFieldServerComponent,\n TabsFieldServerProps,\n} from './fields/Tabs.js'\n\nexport type {\n TextFieldClientComponent,\n TextFieldClientProps,\n TextFieldDescriptionClientComponent,\n TextFieldDescriptionServerComponent,\n TextFieldDiffClientComponent,\n TextFieldDiffServerComponent,\n TextFieldErrorClientComponent,\n TextFieldErrorServerComponent,\n TextFieldLabelClientComponent,\n TextFieldLabelServerComponent,\n TextFieldServerComponent,\n TextFieldServerProps,\n} from './fields/Text.js'\n\nexport type {\n TextareaFieldClientComponent,\n TextareaFieldClientProps,\n TextareaFieldDescriptionClientComponent,\n TextareaFieldDescriptionServerComponent,\n TextareaFieldDiffClientComponent,\n TextareaFieldDiffServerComponent,\n TextareaFieldErrorClientComponent,\n TextareaFieldErrorServerComponent,\n TextareaFieldLabelClientComponent,\n TextareaFieldLabelServerComponent,\n TextareaFieldServerComponent,\n TextareaFieldServerProps,\n} from './fields/Textarea.js'\n\nexport type {\n UIFieldClientComponent,\n UIFieldClientProps,\n UIFieldDiffClientComponent,\n UIFieldDiffServerComponent,\n UIFieldServerComponent,\n UIFieldServerProps,\n} from './fields/UI.js'\n\nexport type {\n UploadFieldClientComponent,\n UploadFieldClientProps,\n UploadFieldDescriptionClientComponent,\n UploadFieldDescriptionServerComponent,\n UploadFieldDiffClientComponent,\n UploadFieldDiffServerComponent,\n UploadFieldErrorClientComponent,\n UploadFieldErrorServerComponent,\n UploadFieldLabelClientComponent,\n UploadFieldLabelServerComponent,\n UploadFieldServerComponent,\n UploadFieldServerProps,\n} from './fields/Upload.js'\n\nexport type {\n Description,\n DescriptionFunction,\n FieldDescriptionClientComponent,\n FieldDescriptionClientProps,\n FieldDescriptionServerComponent,\n FieldDescriptionServerProps,\n GenericDescriptionProps,\n StaticDescription,\n} from './forms/Description.js'\n\nexport type {\n BaseVersionField,\n DiffMethod,\n FieldDiffClientComponent,\n FieldDiffClientProps,\n FieldDiffServerComponent,\n FieldDiffServerProps,\n VersionField,\n VersionTab,\n} from './forms/Diff.js'\n\nexport type {\n BuildFormStateArgs,\n Data,\n FieldState as FormField,\n FieldStateWithoutComponents as FormFieldWithoutComponents,\n FilterOptionsResult,\n FormState,\n FormStateWithoutComponents,\n Row,\n}\n\nexport type {\n FieldErrorClientComponent,\n FieldErrorClientProps,\n FieldErrorServerComponent,\n FieldErrorServerProps,\n GenericErrorProps,\n} from './forms/Error.js'\n\nexport type {\n ClientComponentProps,\n ClientFieldBase,\n ClientFieldWithOptionalType,\n FieldClientComponent,\n FieldPaths,\n FieldServerComponent,\n ServerComponentProps,\n ServerFieldBase,\n} from './forms/Field.js'\n\nexport type {\n FieldLabelClientComponent,\n FieldLabelClientProps,\n FieldLabelServerComponent,\n FieldLabelServerProps,\n GenericLabelProps,\n SanitizedLabelProps,\n} from './forms/Label.js'\n\nexport type { RowLabel, RowLabelComponent } from './forms/RowLabel.js'\n\nexport type MappedServerComponent<TComponentClientProps extends JsonObject = JsonObject> = {\n Component?: React.ComponentType<TComponentClientProps>\n props?: Partial<any>\n RenderedComponent: React.ReactNode\n type: 'server'\n}\n\nexport type MappedClientComponent<TComponentClientProps extends JsonObject = JsonObject> = {\n Component?: React.ComponentType<TComponentClientProps>\n props?: Partial<TComponentClientProps>\n RenderedComponent?: React.ReactNode\n type: 'client'\n}\n\nexport type MappedEmptyComponent = {\n type: 'empty'\n}\n\nexport enum Action {\n RenderConfig = 'render-config',\n}\n\nexport type RenderEntityConfigArgs = {\n collectionSlug?: string\n data?: Data\n globalSlug?: string\n}\n\nexport type RenderRootConfigArgs = {}\n\nexport type RenderFieldConfigArgs = {\n collectionSlug?: string\n formState?: FormState\n globalSlug?: string\n schemaPath: string\n}\n\nexport type RenderConfigArgs = {\n action: Action.RenderConfig\n config: Promise<SanitizedConfig> | SanitizedConfig\n i18n: I18nClient\n importMap: ImportMap\n languageCode: AcceptedLanguages\n serverProps?: any\n} & (RenderEntityConfigArgs | RenderFieldConfigArgs | RenderRootConfigArgs)\n\nexport type PayloadServerAction = (\n args:\n | {\n [key: string]: any\n action: Action\n i18n: I18nClient\n }\n | RenderConfigArgs,\n) => Promise<string>\n\nexport type RenderedField = {\n Field: React.ReactNode\n indexPath?: string\n initialSchemaPath?: string\n /**\n * @deprecated\n * This is a legacy property that will be removed in v4.\n * Please use `fieldIsSidebar(field)` from `payload` instead.\n * Or check `field.admin.position === 'sidebar'` directly.\n */\n isSidebar: boolean\n path: string\n schemaPath: string\n type: FieldTypes\n}\n\nexport type FieldRow = {\n RowLabel?: React.ReactNode\n}\n\nexport type DocumentSlots = {\n BeforeDocumentControls?: React.ReactNode\n BeforeDocumentMeta?: React.ReactNode\n Description?: React.ReactNode\n EditMenuItems?: React.ReactNode\n LivePreview?: React.ReactNode\n PreviewButton?: React.ReactNode\n PublishButton?: React.ReactNode\n SaveButton?: React.ReactNode\n SaveDraftButton?: React.ReactNode\n Status?: React.ReactNode\n UnpublishButton?: React.ReactNode\n Upload?: React.ReactNode\n UploadControls?: React.ReactNode\n UploadFilePreview?: React.ReactNode\n}\n\nexport type {\n BuildTableStateArgs,\n DefaultServerFunctionArgs,\n InitReqResult,\n ListQuery,\n ServerFunction,\n ServerFunctionArgs,\n ServerFunctionClient,\n ServerFunctionClientArgs,\n ServerFunctionConfig,\n ServerFunctionHandler,\n SlugifyServerFunctionArgs,\n} from './functions/index.js'\n\nexport type { LanguageOptions } from './LanguageOptions.js'\n\nexport type { RichTextAdapter, RichTextAdapterProvider, RichTextHooks } from './RichText.js'\n\nexport { type WidgetServerProps } from './views/dashboard.js'\n\nexport type {\n BeforeDocumentControlsClientProps,\n BeforeDocumentControlsServerProps,\n BeforeDocumentControlsServerPropsOnly,\n DocumentSubViewTypes,\n DocumentTabClientProps,\n /**\n * @deprecated\n * The `DocumentTabComponent` type is deprecated and will be removed in the next major version.\n * Use `DocumentTabServerProps`or `DocumentTabClientProps` instead.\n */\n DocumentTabComponent,\n DocumentTabCondition,\n DocumentTabConfig,\n /**\n * @deprecated\n * The `DocumentTabProps` type is deprecated and will be removed in the next major version.\n * Use `DocumentTabServerProps` instead.\n */\n DocumentTabServerProps as DocumentTabProps,\n DocumentTabServerProps,\n DocumentTabServerPropsOnly,\n /**\n * @deprecated\n * The `ClientSideEditViewProps` type is deprecated and will be removed in the next major version.\n * Use `DocumentViewClientProps` instead.\n */\n DocumentViewClientProps as ClientSideEditViewProps,\n DocumentViewClientProps,\n /**\n * @deprecated\n * The `ServerSideEditViewProps` is deprecated and will be removed in the next major version.\n * Use `DocumentViewServerProps` instead.\n */\n DocumentViewServerProps as ServerSideEditViewProps,\n DocumentViewServerProps,\n DocumentViewServerPropsOnly,\n EditViewProps,\n RenderDocumentVersionsProperties,\n} from './views/document.js'\n\nexport type { RelatedDocumentsGrouped } from './views/hierarchyList.js'\n\nexport type {\n AdminViewClientProps,\n /**\n * @deprecated\n * The `AdminViewComponent` type is deprecated and will be removed in the next major version.\n * Type your component props directly instead.\n */\n AdminViewComponent,\n AdminViewConfig,\n /**\n * @deprecated\n * The `AdminViewProps` type is deprecated and will be removed in the next major version.\n * Use `AdminViewServerProps` instead.\n */\n AdminViewServerProps as AdminViewProps,\n AdminViewServerProps,\n AdminViewServerPropsOnly,\n InitPageResult,\n ServerPropsFromView,\n ViewDescriptionClientProps,\n ViewDescriptionServerProps,\n ViewDescriptionServerPropsOnly,\n ViewTypes,\n VisibleEntities,\n} from './views/index.js'\n\nexport type {\n AfterListClientProps,\n AfterListServerProps,\n AfterListServerPropsOnly,\n AfterListTableClientProps,\n AfterListTableServerProps,\n AfterListTableServerPropsOnly,\n BeforeListClientProps,\n BeforeListServerProps,\n BeforeListServerPropsOnly,\n BeforeListTableClientProps,\n BeforeListTableServerProps,\n BeforeListTableServerPropsOnly,\n HierarchyViewData,\n ListViewClientProps,\n ListViewServerProps,\n ListViewServerPropsOnly,\n ListViewSlots,\n ListViewSlotSharedClientProps,\n NoResultsClientProps,\n NoResultsServerProps,\n NoResultsServerPropsOnly,\n} from './views/list.js'\n\ntype SchemaPath = {} & string\nexport type FieldSchemaMap = Map<\n SchemaPath,\n | {\n fields: Field[]\n }\n | Block\n | Field\n | Tab\n>\n\nexport type ClientFieldSchemaMap = Map<\n SchemaPath,\n | {\n fields: ClientField[]\n }\n | ClientBlock\n | ClientField\n | ClientTab\n>\n\nexport type DocumentEvent = {\n doc?: TypeWithID\n drawerSlug?: string\n entitySlug: string\n id?: number | string\n operation: 'create' | 'delete' | 'update'\n updatedAt: string\n}\n"],"names":["Action"],"mappings":"AAmgBA,OAAO,IAAA,AAAKA,gCAAAA;;WAAAA;MAEX"}
@@ -1,6 +1,6 @@
1
1
  import type { ClientTranslationsObject } from '@payloadcms/translations';
2
2
  import type { SanitizedPermissions } from '../../auth/index.js';
3
- import type { ImportMap } from '../../bin/generateImportMap/index.js';
3
+ import type { ImportMap } from '../../cli/commands/generateImportMap/generateImportMap.js';
4
4
  import type { SanitizedCollectionConfig } from '../../collections/config/types.js';
5
5
  import type { ClientConfig } from '../../config/client.js';
6
6
  import type { CustomComponent, Locale, MetaConfig, PayloadComponent, SanitizedConfig, ServerProps } from '../../config/types.js';
@@ -10,7 +10,7 @@ import type { LanguageOptions } from '../LanguageOptions.js';
10
10
  import type { Data, StaticDescription } from '../types.js';
11
11
  import type { DocumentSubViewTypes } from './document.js';
12
12
  export type AdminViewConfig = {
13
- Component: PayloadComponent;
13
+ Component: PayloadComponent<AdminViewServerProps>;
14
14
  /** Whether the path should be matched exactly or as a prefix */
15
15
  exact?: boolean;
16
16
  meta?: MetaConfig;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/admin/views/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,0BAA0B,CAAA;AAExE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAA;AAC/D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AACrE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAA;AAClF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AAC1D,OAAO,KAAK,EACV,eAAe,EACf,MAAM,EACN,UAAU,EACV,gBAAgB,EAChB,eAAe,EACf,WAAW,EACZ,MAAM,uBAAuB,CAAA;AAC9B,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAA;AAC1E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC1D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAC5D,OAAO,KAAK,EAAE,IAAI,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAA;AAC1D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAA;AAEzD,MAAM,MAAM,eAAe,GAAG;IAC5B,SAAS,EAAE,gBAAgB,CAAA;IAC3B,gEAAgE;IAChE,KAAK,CAAC,EAAE,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AE,eAAe,CAAC,aAAa,CAAC,CAAC,MAAM,CAAC,CAAA;IACzD,YAAY,CAAC,EAAE,eAAe,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAA;IACjD,WAAW,EAAE,eAAe,EAAE,CAAA;CAC/B,CAAA;AAGD,MAAM,MAAM,0BAA0B,GAAG;IACvC,cAAc,CAAC,EAAE,yBAAyB,CAAC,MAAM,CAAC,CAAA;IAClD,WAAW,EAAE,iBAAiB,CAAA;CAC/B,CAAA;AAED,MAAM,MAAM,8BAA8B,GAAG,EAAE,GAAG,WAAW,CAAA;AAE7D,MAAM,MAAM,0BAA0B,GAAG,0BAA0B,GAAG,8BAA8B,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/admin/views/index.ts"],"sourcesContent":["import type { ClientTranslationsObject } from '@payloadcms/translations'\n\nimport type { SanitizedPermissions } from '../../auth/index.js'\nimport type { ImportMap } from '../../bin/generateImportMap/index.js'\nimport type { SanitizedCollectionConfig } from '../../collections/config/types.js'\nimport type { ClientConfig } from '../../config/client.js'\nimport type {\n CustomComponent,\n Locale,\n MetaConfig,\n PayloadComponent,\n SanitizedConfig,\n ServerProps,\n} from '../../config/types.js'\nimport type { SanitizedGlobalConfig } from '../../globals/config/types.js'\nimport type { PayloadRequest } from '../../types/index.js'\nimport type { LanguageOptions } from '../LanguageOptions.js'\nimport type { Data, StaticDescription } from '../types.js'\nimport type { DocumentSubViewTypes } from './document.js'\n\nexport type AdminViewConfig = {\n Component: PayloadComponent\n /** Whether the path should be matched exactly or as a prefix */\n exact?: boolean\n meta?: MetaConfig\n /**\n * Any valid URL path or array of paths that [`path-to-regexp`](https://www.npmjs.com/package/path-to-regex) understands. Must begin with a forward slash (`/`).\n */\n path?: `/${string}`\n sensitive?: boolean\n strict?: boolean\n}\n\nexport type AdminViewClientProps = {\n clientConfig: ClientConfig\n collectionSlug?: SanitizedCollectionConfig['slug']\n docID?: number | string\n documentSubViewType?: DocumentSubViewTypes\n folderID?: number | string\n globalSlug?: SanitizedGlobalConfig['slug']\n viewType: ViewTypes\n}\n\nexport type AdminViewServerPropsOnly = {\n readonly clientConfig: ClientConfig\n readonly collectionConfig?: SanitizedCollectionConfig\n readonly disableActions?: boolean\n /**\n * @todo remove `docID` here as it is already contained in `initPageResult`\n */\n readonly docID?: number | string\n readonly globalConfig?: SanitizedGlobalConfig\n readonly importMap: ImportMap\n readonly initialData?: Data\n readonly initPageResult: InitPageResult\n readonly params?: { [key: string]: string | string[] | undefined }\n readonly redirectAfterCreate?: boolean\n readonly redirectAfterDelete?: boolean\n readonly redirectAfterDuplicate?: boolean\n readonly redirectAfterRestore?: boolean\n readonly viewActions?: CustomComponent[]\n} & ServerProps\n\nexport type AdminViewServerProps = AdminViewClientProps & AdminViewServerPropsOnly\n\n/**\n * @deprecated This should be removed in favor of direct props\n */\nexport type AdminViewComponent = PayloadComponent<AdminViewServerProps>\n\nexport type VisibleEntities = {\n collections: SanitizedCollectionConfig['slug'][]\n globals: SanitizedGlobalConfig['slug'][]\n}\n\nexport type InitPageResult = {\n collectionConfig?: SanitizedCollectionConfig\n cookies: Map<string, string>\n docID?: number | string\n globalConfig?: SanitizedGlobalConfig\n languageOptions: LanguageOptions\n locale?: Locale\n permissions: SanitizedPermissions\n redirectTo?: string\n req: PayloadRequest\n translations: ClientTranslationsObject\n visibleEntities: VisibleEntities\n}\n\n/**\n * @todo This should be renamed to `ViewType` (singular)\n */\nexport type ViewTypes =\n | 'account'\n | 'createFirstUser'\n | 'dashboard'\n | 'document'\n | 'hierarchy'\n | 'list'\n | 'reset'\n | 'trash'\n | 'verify'\n | 'version'\n | ({} & string)\n\nexport type ServerPropsFromView = {\n collectionConfig?: SanitizedConfig['collections'][number]\n globalConfig?: SanitizedConfig['globals'][number]\n viewActions: CustomComponent[]\n}\n\n// Description\nexport type ViewDescriptionClientProps = {\n collectionSlug?: SanitizedCollectionConfig['slug']\n description: StaticDescription\n}\n\nexport type ViewDescriptionServerPropsOnly = {} & ServerProps\n\nexport type ViewDescriptionServerProps = ViewDescriptionClientProps & ViewDescriptionServerPropsOnly\n"],"names":[],"mappings":"AAuHA,WAAoG"}
1
+ {"version":3,"sources":["../../../src/admin/views/index.ts"],"sourcesContent":["import type { ClientTranslationsObject } from '@payloadcms/translations'\n\nimport type { SanitizedPermissions } from '../../auth/index.js'\nimport type { ImportMap } from '../../cli/commands/generateImportMap/generateImportMap.js'\nimport type { SanitizedCollectionConfig } from '../../collections/config/types.js'\nimport type { ClientConfig } from '../../config/client.js'\nimport type {\n CustomComponent,\n Locale,\n MetaConfig,\n PayloadComponent,\n SanitizedConfig,\n ServerProps,\n} from '../../config/types.js'\nimport type { SanitizedGlobalConfig } from '../../globals/config/types.js'\nimport type { PayloadRequest } from '../../types/index.js'\nimport type { LanguageOptions } from '../LanguageOptions.js'\nimport type { Data, StaticDescription } from '../types.js'\nimport type { DocumentSubViewTypes } from './document.js'\n\nexport type AdminViewConfig = {\n Component: PayloadComponent<AdminViewServerProps>\n /** Whether the path should be matched exactly or as a prefix */\n exact?: boolean\n meta?: MetaConfig\n /**\n * Any valid URL path or array of paths that [`path-to-regexp`](https://www.npmjs.com/package/path-to-regex) understands. Must begin with a forward slash (`/`).\n */\n path?: `/${string}`\n sensitive?: boolean\n strict?: boolean\n}\n\nexport type AdminViewClientProps = {\n clientConfig: ClientConfig\n collectionSlug?: SanitizedCollectionConfig['slug']\n docID?: number | string\n documentSubViewType?: DocumentSubViewTypes\n folderID?: number | string\n globalSlug?: SanitizedGlobalConfig['slug']\n viewType: ViewTypes\n}\n\nexport type AdminViewServerPropsOnly = {\n readonly clientConfig: ClientConfig\n readonly collectionConfig?: SanitizedCollectionConfig\n readonly disableActions?: boolean\n /**\n * @todo remove `docID` here as it is already contained in `initPageResult`\n */\n readonly docID?: number | string\n readonly globalConfig?: SanitizedGlobalConfig\n readonly importMap: ImportMap\n readonly initialData?: Data\n readonly initPageResult: InitPageResult\n readonly params?: { [key: string]: string | string[] | undefined }\n readonly redirectAfterCreate?: boolean\n readonly redirectAfterDelete?: boolean\n readonly redirectAfterDuplicate?: boolean\n readonly redirectAfterRestore?: boolean\n readonly viewActions?: CustomComponent[]\n} & ServerProps\n\nexport type AdminViewServerProps = AdminViewClientProps & AdminViewServerPropsOnly\n\n/**\n * @deprecated This should be removed in favor of direct props\n */\nexport type AdminViewComponent = PayloadComponent<AdminViewServerProps>\n\nexport type VisibleEntities = {\n collections: SanitizedCollectionConfig['slug'][]\n globals: SanitizedGlobalConfig['slug'][]\n}\n\nexport type InitPageResult = {\n collectionConfig?: SanitizedCollectionConfig\n cookies: Map<string, string>\n docID?: number | string\n globalConfig?: SanitizedGlobalConfig\n languageOptions: LanguageOptions\n locale?: Locale\n permissions: SanitizedPermissions\n redirectTo?: string\n req: PayloadRequest\n translations: ClientTranslationsObject\n visibleEntities: VisibleEntities\n}\n\n/**\n * @todo This should be renamed to `ViewType` (singular)\n */\nexport type ViewTypes =\n | 'account'\n | 'createFirstUser'\n | 'dashboard'\n | 'document'\n | 'hierarchy'\n | 'list'\n | 'reset'\n | 'trash'\n | 'verify'\n | 'version'\n | ({} & string)\n\nexport type ServerPropsFromView = {\n collectionConfig?: SanitizedConfig['collections'][number]\n globalConfig?: SanitizedConfig['globals'][number]\n viewActions: CustomComponent[]\n}\n\n// Description\nexport type ViewDescriptionClientProps = {\n collectionSlug?: SanitizedCollectionConfig['slug']\n description: StaticDescription\n}\n\nexport type ViewDescriptionServerPropsOnly = {} & ServerProps\n\nexport type ViewDescriptionServerProps = ViewDescriptionClientProps & ViewDescriptionServerPropsOnly\n"],"names":[],"mappings":"AAuHA,WAAoG"}
@@ -1 +1 @@
1
- {"version":3,"file":"apiKey.d.ts","sourceRoot":"","sources":["../../../src/auth/baseFields/apiKey.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,KAAK,EAAa,SAAS,EAAE,MAAM,8BAA8B,CAAA;AAO9F,KAAK,2BAA2B,GAAG,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC,CAAA;AAChF,KAAK,uBAAuB,GAAG,IAAI,CACjC,OAAO,CAAC,SAAS,CAAC,EAClB,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,UAAU,CACjE,CAAA;AAED,eAAO,MAAM,kBAAkB,gFAK5B;IACD,WAAW,CAAC,EAAE,uBAAuB,CAAA;IACrC,gBAAgB,CAAC,EAAE,uBAAuB,CAAA;IAC1C,iBAAiB,CAAC,EAAE,2BAA2B,CAAA;IAC/C,mBAAmB,CAAC,EAAE,OAAO,CAAA;CAC9B,KAAQ,KAAK,EAwEb,CAAA"}
1
+ {"version":3,"file":"apiKey.d.ts","sourceRoot":"","sources":["../../../src/auth/baseFields/apiKey.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,KAAK,EAAa,SAAS,EAAE,MAAM,8BAA8B,CAAA;AAqB9F,KAAK,2BAA2B,GAAG,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC,CAAA;AAChF,KAAK,uBAAuB,GAAG,IAAI,CACjC,OAAO,CAAC,SAAS,CAAC,EAClB,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,UAAU,CACjE,CAAA;AAED,eAAO,MAAM,kBAAkB,gFAK5B;IACD,WAAW,CAAC,EAAE,uBAAuB,CAAA;IACrC,gBAAgB,CAAC,EAAE,uBAAuB,CAAA;IAC1C,iBAAiB,CAAC,EAAE,2BAA2B,CAAA;IAC/C,mBAAmB,CAAC,EAAE,OAAO,CAAA;CAC9B,KAAQ,KAAK,EAwEb,CAAA"}
@@ -1,6 +1,21 @@
1
1
  import crypto from 'crypto';
2
2
  const encryptKey = ({ req, value })=>value ? req.payload.encrypt(value) : null;
3
- const decryptKey = ({ req, value })=>value ? req.payload.decrypt(value) : undefined;
3
+ const decryptKey = ({ req, value })=>{
4
+ if (!value) {
5
+ return undefined;
6
+ }
7
+ try {
8
+ return req.payload.decrypt(value);
9
+ } catch {
10
+ // The value was encrypted under a secret no longer in the keyring (e.g. a
11
+ // previousSecret was removed before rotateSecret re-keyed this row). Mask the
12
+ // field (return null, since an undefined afterRead result is treated as "no
13
+ // change" and would leak the ciphertext) rather than failing the whole
14
+ // document read; API key auth is unaffected (it matches the apiKeyIndex), and
15
+ // running rotateSecret restores the displayed value.
16
+ return null;
17
+ }
18
+ };
4
19
  export const createAPIKeyFields = ({ apiKeyField, apiKeyIndexField, enableAPIKeyField, includeEnableAPIKey = true } = {})=>{
5
20
  const fields = [];
6
21
  if (includeEnableAPIKey) {