payload 4.0.0-internal.ccea85d → 4.0.0-internal.cd47d20

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 (1552) 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/fields/Array.d.ts +11 -13
  10. package/dist/admin/fields/Array.d.ts.map +1 -1
  11. package/dist/admin/fields/Array.js.map +1 -1
  12. package/dist/admin/fields/Blocks.d.ts +13 -16
  13. package/dist/admin/fields/Blocks.d.ts.map +1 -1
  14. package/dist/admin/fields/Blocks.js.map +1 -1
  15. package/dist/admin/fields/Checkbox.d.ts +11 -13
  16. package/dist/admin/fields/Checkbox.d.ts.map +1 -1
  17. package/dist/admin/fields/Checkbox.js.map +1 -1
  18. package/dist/admin/fields/Code.d.ts +11 -13
  19. package/dist/admin/fields/Code.d.ts.map +1 -1
  20. package/dist/admin/fields/Code.js.map +1 -1
  21. package/dist/admin/fields/Collapsible.d.ts +11 -13
  22. package/dist/admin/fields/Collapsible.d.ts.map +1 -1
  23. package/dist/admin/fields/Collapsible.js.map +1 -1
  24. package/dist/admin/fields/Date.d.ts +11 -13
  25. package/dist/admin/fields/Date.d.ts.map +1 -1
  26. package/dist/admin/fields/Date.js.map +1 -1
  27. package/dist/admin/fields/Email.d.ts +11 -13
  28. package/dist/admin/fields/Email.d.ts.map +1 -1
  29. package/dist/admin/fields/Email.js.map +1 -1
  30. package/dist/admin/fields/Group.d.ts +11 -13
  31. package/dist/admin/fields/Group.d.ts.map +1 -1
  32. package/dist/admin/fields/Group.js.map +1 -1
  33. package/dist/admin/fields/JSON.d.ts +11 -13
  34. package/dist/admin/fields/JSON.d.ts.map +1 -1
  35. package/dist/admin/fields/JSON.js.map +1 -1
  36. package/dist/admin/fields/Join.d.ts +12 -14
  37. package/dist/admin/fields/Join.d.ts.map +1 -1
  38. package/dist/admin/fields/Join.js.map +1 -1
  39. package/dist/admin/fields/Number.d.ts +11 -13
  40. package/dist/admin/fields/Number.d.ts.map +1 -1
  41. package/dist/admin/fields/Number.js.map +1 -1
  42. package/dist/admin/fields/Point.d.ts +11 -13
  43. package/dist/admin/fields/Point.d.ts.map +1 -1
  44. package/dist/admin/fields/Point.js.map +1 -1
  45. package/dist/admin/fields/Radio.d.ts +11 -13
  46. package/dist/admin/fields/Radio.d.ts.map +1 -1
  47. package/dist/admin/fields/Radio.js.map +1 -1
  48. package/dist/admin/fields/Relationship.d.ts +11 -13
  49. package/dist/admin/fields/Relationship.d.ts.map +1 -1
  50. package/dist/admin/fields/Relationship.js.map +1 -1
  51. package/dist/admin/fields/RichText.d.ts +13 -15
  52. package/dist/admin/fields/RichText.d.ts.map +1 -1
  53. package/dist/admin/fields/RichText.js.map +1 -1
  54. package/dist/admin/fields/Row.d.ts +10 -12
  55. package/dist/admin/fields/Row.d.ts.map +1 -1
  56. package/dist/admin/fields/Row.js.map +1 -1
  57. package/dist/admin/fields/Select.d.ts +11 -13
  58. package/dist/admin/fields/Select.d.ts.map +1 -1
  59. package/dist/admin/fields/Select.js.map +1 -1
  60. package/dist/admin/fields/Tabs.d.ts +11 -13
  61. package/dist/admin/fields/Tabs.d.ts.map +1 -1
  62. package/dist/admin/fields/Tabs.js.map +1 -1
  63. package/dist/admin/fields/Text.d.ts +11 -13
  64. package/dist/admin/fields/Text.d.ts.map +1 -1
  65. package/dist/admin/fields/Text.js.map +1 -1
  66. package/dist/admin/fields/Textarea.d.ts +11 -13
  67. package/dist/admin/fields/Textarea.d.ts.map +1 -1
  68. package/dist/admin/fields/Textarea.js.map +1 -1
  69. package/dist/admin/fields/UI.d.ts +3 -5
  70. package/dist/admin/fields/UI.d.ts.map +1 -1
  71. package/dist/admin/fields/UI.js.map +1 -1
  72. package/dist/admin/fields/Upload.d.ts +11 -13
  73. package/dist/admin/fields/Upload.d.ts.map +1 -1
  74. package/dist/admin/fields/Upload.js.map +1 -1
  75. package/dist/admin/forms/Description.d.ts +0 -2
  76. package/dist/admin/forms/Description.d.ts.map +1 -1
  77. package/dist/admin/forms/Description.js.map +1 -1
  78. package/dist/admin/forms/Diff.d.ts +0 -2
  79. package/dist/admin/forms/Diff.d.ts.map +1 -1
  80. package/dist/admin/forms/Diff.js.map +1 -1
  81. package/dist/admin/forms/Error.d.ts +0 -2
  82. package/dist/admin/forms/Error.d.ts.map +1 -1
  83. package/dist/admin/forms/Error.js.map +1 -1
  84. package/dist/admin/forms/Field.d.ts +4 -2
  85. package/dist/admin/forms/Field.d.ts.map +1 -1
  86. package/dist/admin/forms/Field.js.map +1 -1
  87. package/dist/admin/forms/Form.d.ts +2 -0
  88. package/dist/admin/forms/Form.d.ts.map +1 -1
  89. package/dist/admin/forms/Form.js.map +1 -1
  90. package/dist/admin/forms/Label.d.ts +0 -2
  91. package/dist/admin/forms/Label.d.ts.map +1 -1
  92. package/dist/admin/forms/Label.js.map +1 -1
  93. package/dist/admin/functions/index.d.ts +15 -11
  94. package/dist/admin/functions/index.d.ts.map +1 -1
  95. package/dist/admin/functions/index.js.map +1 -1
  96. package/dist/admin/getRequestLocale.d.ts +6 -0
  97. package/dist/admin/getRequestLocale.d.ts.map +1 -0
  98. package/dist/admin/getRequestLocale.js +38 -0
  99. package/dist/admin/getRequestLocale.js.map +1 -0
  100. package/dist/admin/initAdminContext.d.ts +39 -0
  101. package/dist/admin/initAdminContext.d.ts.map +1 -0
  102. package/dist/admin/initAdminContext.js +154 -0
  103. package/dist/admin/initAdminContext.js.map +1 -0
  104. package/dist/admin/types.d.ts +30 -30
  105. package/dist/admin/types.d.ts.map +1 -1
  106. package/dist/admin/types.js.map +1 -1
  107. package/dist/admin/views/dashboard.d.ts +2 -2
  108. package/dist/admin/views/dashboard.d.ts.map +1 -1
  109. package/dist/admin/views/dashboard.js.map +1 -1
  110. package/dist/admin/views/index.d.ts +2 -2
  111. package/dist/admin/views/index.d.ts.map +1 -1
  112. package/dist/admin/views/index.js.map +1 -1
  113. package/dist/auth/applyUserReadAccess.d.ts +13 -0
  114. package/dist/auth/applyUserReadAccess.d.ts.map +1 -0
  115. package/dist/auth/applyUserReadAccess.js +41 -0
  116. package/dist/auth/applyUserReadAccess.js.map +1 -0
  117. package/dist/auth/baseFields/apiKey/canCreateOrUpdateAPIKey.d.ts +4 -0
  118. package/dist/auth/baseFields/apiKey/canCreateOrUpdateAPIKey.d.ts.map +1 -0
  119. package/dist/auth/baseFields/apiKey/canCreateOrUpdateAPIKey.js +20 -0
  120. package/dist/auth/baseFields/apiKey/canCreateOrUpdateAPIKey.js.map +1 -0
  121. package/dist/auth/baseFields/apiKey/encryptAPIKey.d.ts +4 -0
  122. package/dist/auth/baseFields/apiKey/encryptAPIKey.d.ts.map +1 -0
  123. package/dist/auth/baseFields/apiKey/encryptAPIKey.js +11 -0
  124. package/dist/auth/baseFields/apiKey/encryptAPIKey.js.map +1 -0
  125. package/dist/auth/baseFields/apiKey/getAPIKeyLast4.d.ts +3 -0
  126. package/dist/auth/baseFields/apiKey/getAPIKeyLast4.d.ts.map +1 -0
  127. package/dist/auth/baseFields/apiKey/getAPIKeyLast4.js +5 -0
  128. package/dist/auth/baseFields/apiKey/getAPIKeyLast4.js.map +1 -0
  129. package/dist/auth/baseFields/apiKey/omitAPIKey.d.ts +5 -0
  130. package/dist/auth/baseFields/apiKey/omitAPIKey.d.ts.map +1 -0
  131. package/dist/auth/baseFields/apiKey/omitAPIKey.js +11 -0
  132. package/dist/auth/baseFields/apiKey/omitAPIKey.js.map +1 -0
  133. package/dist/auth/baseFields/apiKey/omitAPIKeyIndex.d.ts +4 -0
  134. package/dist/auth/baseFields/apiKey/omitAPIKeyIndex.d.ts.map +1 -0
  135. package/dist/auth/baseFields/apiKey/omitAPIKeyIndex.js +5 -0
  136. package/dist/auth/baseFields/apiKey/omitAPIKeyIndex.js.map +1 -0
  137. package/dist/auth/baseFields/apiKey/omitEncryptedAPIKey.d.ts +4 -0
  138. package/dist/auth/baseFields/apiKey/omitEncryptedAPIKey.d.ts.map +1 -0
  139. package/dist/auth/baseFields/apiKey/omitEncryptedAPIKey.js +5 -0
  140. package/dist/auth/baseFields/apiKey/omitEncryptedAPIKey.js.map +1 -0
  141. package/dist/auth/baseFields/apiKey/setAPIKeyIndex.d.ts +4 -0
  142. package/dist/auth/baseFields/apiKey/setAPIKeyIndex.d.ts.map +1 -0
  143. package/dist/auth/baseFields/apiKey/setAPIKeyIndex.js +12 -0
  144. package/dist/auth/baseFields/apiKey/setAPIKeyIndex.js.map +1 -0
  145. package/dist/auth/baseFields/apiKey/setKeyLast4.d.ts +4 -0
  146. package/dist/auth/baseFields/apiKey/setKeyLast4.d.ts.map +1 -0
  147. package/dist/auth/baseFields/apiKey/setKeyLast4.js +12 -0
  148. package/dist/auth/baseFields/apiKey/setKeyLast4.js.map +1 -0
  149. package/dist/auth/baseFields/apiKey.d.ts +6 -6
  150. package/dist/auth/baseFields/apiKey.d.ts.map +1 -1
  151. package/dist/auth/baseFields/apiKey.js +88 -57
  152. package/dist/auth/baseFields/apiKey.js.map +1 -1
  153. package/dist/auth/baseFields/auth.d.ts +1 -0
  154. package/dist/auth/baseFields/auth.d.ts.map +1 -1
  155. package/dist/auth/baseFields/auth.js +9 -0
  156. package/dist/auth/baseFields/auth.js.map +1 -1
  157. package/dist/auth/crypto.d.ts +73 -2
  158. package/dist/auth/crypto.d.ts.map +1 -1
  159. package/dist/auth/crypto.js +90 -13
  160. package/dist/auth/crypto.js.map +1 -1
  161. package/dist/auth/defaultUnlockAccess.d.ts +3 -0
  162. package/dist/auth/defaultUnlockAccess.d.ts.map +1 -0
  163. package/dist/auth/defaultUnlockAccess.js +8 -0
  164. package/dist/auth/defaultUnlockAccess.js.map +1 -0
  165. package/dist/auth/endpoints/index.d.ts +1 -0
  166. package/dist/auth/endpoints/index.d.ts.map +1 -1
  167. package/dist/auth/endpoints/index.js +8 -0
  168. package/dist/auth/endpoints/index.js.map +1 -1
  169. package/dist/auth/endpoints/login.d.ts.map +1 -1
  170. package/dist/auth/endpoints/login.js +2 -11
  171. package/dist/auth/endpoints/login.js.map +1 -1
  172. package/dist/auth/endpoints/refresh.d.ts.map +1 -1
  173. package/dist/auth/endpoints/refresh.js +4 -6
  174. package/dist/auth/endpoints/refresh.js.map +1 -1
  175. package/dist/auth/endpoints/revealAPIKey.d.ts +7 -0
  176. package/dist/auth/endpoints/revealAPIKey.d.ts.map +1 -0
  177. package/dist/auth/endpoints/revealAPIKey.js +122 -0
  178. package/dist/auth/endpoints/revealAPIKey.js.map +1 -0
  179. package/dist/auth/executeAccess.d.ts +2 -1
  180. package/dist/auth/executeAccess.d.ts.map +1 -1
  181. package/dist/auth/executeAccess.js +2 -1
  182. package/dist/auth/executeAccess.js.map +1 -1
  183. package/dist/auth/getAccessResults.js +1 -0
  184. package/dist/auth/getAccessResults.js.map +1 -1
  185. package/dist/auth/getAuthFields.d.ts +1 -1
  186. package/dist/auth/getAuthFields.d.ts.map +1 -1
  187. package/dist/auth/getAuthFields.js +7 -4
  188. package/dist/auth/getAuthFields.js.map +1 -1
  189. package/dist/auth/getFieldsToSign.d.ts.map +1 -1
  190. package/dist/auth/getFieldsToSign.js +20 -10
  191. package/dist/auth/getFieldsToSign.js.map +1 -1
  192. package/dist/auth/getLoginOptions.js.map +1 -1
  193. package/dist/auth/jwt.d.ts.map +1 -1
  194. package/dist/auth/jwt.js +2 -0
  195. package/dist/auth/jwt.js.map +1 -1
  196. package/dist/auth/jwtAuth.d.ts +9 -0
  197. package/dist/auth/jwtAuth.d.ts.map +1 -0
  198. package/dist/auth/jwtAuth.js +8 -0
  199. package/dist/auth/jwtAuth.js.map +1 -0
  200. package/dist/auth/loginWithCookie.d.ts +33 -0
  201. package/dist/auth/loginWithCookie.d.ts.map +1 -0
  202. package/dist/auth/loginWithCookie.js +34 -0
  203. package/dist/auth/loginWithCookie.js.map +1 -0
  204. package/dist/auth/operations/access.d.ts.map +1 -1
  205. package/dist/auth/operations/access.js +3 -9
  206. package/dist/auth/operations/access.js.map +1 -1
  207. package/dist/auth/operations/auth.d.ts.map +1 -1
  208. package/dist/auth/operations/auth.js +16 -21
  209. package/dist/auth/operations/auth.js.map +1 -1
  210. package/dist/auth/operations/forgotPassword.d.ts.map +1 -1
  211. package/dist/auth/operations/forgotPassword.js +97 -14
  212. package/dist/auth/operations/forgotPassword.js.map +1 -1
  213. package/dist/auth/operations/local/auth.js +7 -4
  214. package/dist/auth/operations/local/auth.js.map +1 -1
  215. package/dist/auth/operations/local/forgotPassword.d.ts +2 -2
  216. package/dist/auth/operations/local/forgotPassword.d.ts.map +1 -1
  217. package/dist/auth/operations/local/forgotPassword.js +6 -3
  218. package/dist/auth/operations/local/forgotPassword.js.map +1 -1
  219. package/dist/auth/operations/local/login.d.ts +2 -2
  220. package/dist/auth/operations/local/login.d.ts.map +1 -1
  221. package/dist/auth/operations/local/login.js +6 -3
  222. package/dist/auth/operations/local/login.js.map +1 -1
  223. package/dist/auth/operations/local/resetPassword.js +5 -2
  224. package/dist/auth/operations/local/resetPassword.js.map +1 -1
  225. package/dist/auth/operations/local/unlock.d.ts +2 -2
  226. package/dist/auth/operations/local/unlock.d.ts.map +1 -1
  227. package/dist/auth/operations/local/unlock.js +6 -3
  228. package/dist/auth/operations/local/unlock.js.map +1 -1
  229. package/dist/auth/operations/local/verifyEmail.js +5 -2
  230. package/dist/auth/operations/local/verifyEmail.js.map +1 -1
  231. package/dist/auth/operations/login.d.ts.map +1 -1
  232. package/dist/auth/operations/login.js +48 -26
  233. package/dist/auth/operations/login.js.map +1 -1
  234. package/dist/auth/operations/me.d.ts +0 -7
  235. package/dist/auth/operations/me.d.ts.map +1 -1
  236. package/dist/auth/operations/me.js +0 -6
  237. package/dist/auth/operations/me.js.map +1 -1
  238. package/dist/auth/operations/refresh.d.ts +0 -7
  239. package/dist/auth/operations/refresh.d.ts.map +1 -1
  240. package/dist/auth/operations/refresh.js +32 -15
  241. package/dist/auth/operations/refresh.js.map +1 -1
  242. package/dist/auth/operations/registerFirstUser.d.ts.map +1 -1
  243. package/dist/auth/operations/registerFirstUser.js +4 -4
  244. package/dist/auth/operations/registerFirstUser.js.map +1 -1
  245. package/dist/auth/operations/resetPassword.d.ts.map +1 -1
  246. package/dist/auth/operations/resetPassword.js +31 -22
  247. package/dist/auth/operations/resetPassword.js.map +1 -1
  248. package/dist/auth/operations/unlock.d.ts.map +1 -1
  249. package/dist/auth/operations/unlock.js +1 -0
  250. package/dist/auth/operations/unlock.js.map +1 -1
  251. package/dist/auth/rotateSecret.d.ts +51 -0
  252. package/dist/auth/rotateSecret.d.ts.map +1 -0
  253. package/dist/auth/rotateSecret.js +131 -0
  254. package/dist/auth/rotateSecret.js.map +1 -0
  255. package/dist/auth/serverFunctions/cookies.d.ts +47 -0
  256. package/dist/auth/serverFunctions/cookies.d.ts.map +1 -0
  257. package/dist/auth/serverFunctions/cookies.js +52 -0
  258. package/dist/auth/serverFunctions/cookies.js.map +1 -0
  259. package/dist/auth/serverFunctions/login.d.ts +29 -0
  260. package/dist/auth/serverFunctions/login.d.ts.map +1 -0
  261. package/dist/auth/serverFunctions/login.js +65 -0
  262. package/dist/auth/serverFunctions/login.js.map +1 -0
  263. package/dist/auth/serverFunctions/logout.d.ts +17 -0
  264. package/dist/auth/serverFunctions/logout.d.ts.map +1 -0
  265. package/dist/auth/serverFunctions/logout.js +59 -0
  266. package/dist/auth/serverFunctions/logout.js.map +1 -0
  267. package/dist/auth/serverFunctions/refresh.d.ts +17 -0
  268. package/dist/auth/serverFunctions/refresh.d.ts.map +1 -0
  269. package/dist/auth/serverFunctions/refresh.js +62 -0
  270. package/dist/auth/serverFunctions/refresh.js.map +1 -0
  271. package/dist/auth/strategies/apiKey.d.ts.map +1 -1
  272. package/dist/auth/strategies/apiKey.js +42 -4
  273. package/dist/auth/strategies/apiKey.js.map +1 -1
  274. package/dist/auth/strategies/jwt.d.ts.map +1 -1
  275. package/dist/auth/strategies/jwt.js +83 -11
  276. package/dist/auth/strategies/jwt.js.map +1 -1
  277. package/dist/auth/strategies/local/authenticate.d.ts +5 -1
  278. package/dist/auth/strategies/local/authenticate.d.ts.map +1 -1
  279. package/dist/auth/strategies/local/authenticate.js +8 -3
  280. package/dist/auth/strategies/local/authenticate.js.map +1 -1
  281. package/dist/auth/strategies/local/generatePasswordSaltHash.d.ts +9 -1
  282. package/dist/auth/strategies/local/generatePasswordSaltHash.d.ts.map +1 -1
  283. package/dist/auth/strategies/local/generatePasswordSaltHash.js +61 -34
  284. package/dist/auth/strategies/local/generatePasswordSaltHash.js.map +1 -1
  285. package/dist/auth/strategies/local/register.d.ts.map +1 -1
  286. package/dist/auth/strategies/local/register.js +1 -0
  287. package/dist/auth/strategies/local/register.js.map +1 -1
  288. package/dist/auth/types.d.ts +26 -18
  289. package/dist/auth/types.d.ts.map +1 -1
  290. package/dist/auth/types.js.map +1 -1
  291. package/dist/auth/withBaseAccess.d.ts +22 -0
  292. package/dist/auth/withBaseAccess.d.ts.map +1 -0
  293. package/dist/auth/withBaseAccess.js +61 -0
  294. package/dist/auth/withBaseAccess.js.map +1 -0
  295. package/dist/{bin → cli/commands/build}/build.d.ts +8 -13
  296. package/dist/cli/commands/build/build.d.ts.map +1 -0
  297. package/dist/{bin → cli/commands/build}/build.js +26 -27
  298. package/dist/cli/commands/build/build.js.map +1 -0
  299. package/dist/cli/commands/build/index.d.ts +2 -0
  300. package/dist/cli/commands/build/index.d.ts.map +1 -0
  301. package/dist/cli/commands/build/index.js +26 -0
  302. package/dist/cli/commands/build/index.js.map +1 -0
  303. package/dist/cli/commands/collections/countDocuments.d.ts +2 -0
  304. package/dist/cli/commands/collections/countDocuments.d.ts.map +1 -0
  305. package/dist/cli/commands/collections/countDocuments.js +37 -0
  306. package/dist/cli/commands/collections/countDocuments.js.map +1 -0
  307. package/dist/cli/commands/collections/countVersions.d.ts +2 -0
  308. package/dist/cli/commands/collections/countVersions.d.ts.map +1 -0
  309. package/dist/cli/commands/collections/countVersions.js +36 -0
  310. package/dist/cli/commands/collections/countVersions.js.map +1 -0
  311. package/dist/cli/commands/collections/createDocuments.d.ts +2 -0
  312. package/dist/cli/commands/collections/createDocuments.d.ts.map +1 -0
  313. package/dist/cli/commands/collections/createDocuments.js +132 -0
  314. package/dist/cli/commands/collections/createDocuments.js.map +1 -0
  315. package/dist/cli/commands/collections/deleteDocuments.d.ts +2 -0
  316. package/dist/cli/commands/collections/deleteDocuments.d.ts.map +1 -0
  317. package/dist/cli/commands/collections/deleteDocuments.js +64 -0
  318. package/dist/cli/commands/collections/deleteDocuments.js.map +1 -0
  319. package/dist/cli/commands/collections/duplicateDocument.d.ts +2 -0
  320. package/dist/cli/commands/collections/duplicateDocument.d.ts.map +1 -0
  321. package/dist/cli/commands/collections/duplicateDocument.js +109 -0
  322. package/dist/cli/commands/collections/duplicateDocument.js.map +1 -0
  323. package/dist/cli/commands/collections/findDistinct.d.ts +2 -0
  324. package/dist/cli/commands/collections/findDistinct.d.ts.map +1 -0
  325. package/dist/cli/commands/collections/findDistinct.js +52 -0
  326. package/dist/cli/commands/collections/findDistinct.js.map +1 -0
  327. package/dist/cli/commands/collections/findDocuments.d.ts +2 -0
  328. package/dist/cli/commands/collections/findDocuments.d.ts.map +1 -0
  329. package/dist/cli/commands/collections/findDocuments.js +79 -0
  330. package/dist/cli/commands/collections/findDocuments.js.map +1 -0
  331. package/dist/cli/commands/collections/findVersionByID.d.ts +2 -0
  332. package/dist/cli/commands/collections/findVersionByID.d.ts.map +1 -0
  333. package/dist/cli/commands/collections/findVersionByID.js +48 -0
  334. package/dist/cli/commands/collections/findVersionByID.js.map +1 -0
  335. package/dist/cli/commands/collections/findVersions.d.ts +2 -0
  336. package/dist/cli/commands/collections/findVersions.d.ts.map +1 -0
  337. package/dist/cli/commands/collections/findVersions.js +57 -0
  338. package/dist/cli/commands/collections/findVersions.js.map +1 -0
  339. package/dist/cli/commands/collections/getCollectionSchema.d.ts +2 -0
  340. package/dist/cli/commands/collections/getCollectionSchema.d.ts.map +1 -0
  341. package/dist/cli/commands/collections/getCollectionSchema.js +51 -0
  342. package/dist/cli/commands/collections/getCollectionSchema.js.map +1 -0
  343. package/dist/cli/commands/collections/restoreVersion.d.ts +2 -0
  344. package/dist/cli/commands/collections/restoreVersion.d.ts.map +1 -0
  345. package/dist/cli/commands/collections/restoreVersion.js +47 -0
  346. package/dist/cli/commands/collections/restoreVersion.js.map +1 -0
  347. package/dist/cli/commands/collections/updateDocument.d.ts +2 -0
  348. package/dist/cli/commands/collections/updateDocument.d.ts.map +1 -0
  349. package/dist/cli/commands/collections/updateDocument.js +192 -0
  350. package/dist/cli/commands/collections/updateDocument.js.map +1 -0
  351. package/dist/cli/commands/data/input.d.ts +28 -0
  352. package/dist/cli/commands/data/input.d.ts.map +1 -0
  353. package/dist/cli/commands/data/input.js +76 -0
  354. package/dist/cli/commands/data/input.js.map +1 -0
  355. package/dist/cli/commands/data/utilities.d.ts +65 -0
  356. package/dist/cli/commands/data/utilities.d.ts.map +1 -0
  357. package/dist/cli/commands/data/utilities.js +67 -0
  358. package/dist/cli/commands/data/utilities.js.map +1 -0
  359. package/dist/cli/commands/generateDBSchema.d.ts +2 -0
  360. package/dist/cli/commands/generateDBSchema.d.ts.map +1 -0
  361. package/dist/cli/commands/generateDBSchema.js +29 -0
  362. package/dist/cli/commands/generateDBSchema.js.map +1 -0
  363. package/dist/cli/commands/generateImportMap/frameworkConventions.d.ts.map +1 -0
  364. package/dist/cli/commands/generateImportMap/frameworkConventions.js.map +1 -0
  365. package/dist/{bin/generateImportMap/index.d.ts → cli/commands/generateImportMap/generateImportMap.d.ts} +8 -4
  366. package/dist/cli/commands/generateImportMap/generateImportMap.d.ts.map +1 -0
  367. package/dist/{bin/generateImportMap/index.js → cli/commands/generateImportMap/generateImportMap.js} +9 -4
  368. package/dist/cli/commands/generateImportMap/generateImportMap.js.map +1 -0
  369. package/dist/cli/commands/generateImportMap/index.d.ts +2 -0
  370. package/dist/cli/commands/generateImportMap/index.d.ts.map +1 -0
  371. package/dist/cli/commands/generateImportMap/index.js +18 -0
  372. package/dist/cli/commands/generateImportMap/index.js.map +1 -0
  373. package/dist/{bin → cli/commands}/generateImportMap/iterateCollections.d.ts +3 -3
  374. package/dist/cli/commands/generateImportMap/iterateCollections.d.ts.map +1 -0
  375. package/dist/cli/commands/generateImportMap/iterateCollections.js.map +1 -0
  376. package/dist/{bin → cli/commands}/generateImportMap/iterateConfig.d.ts +2 -2
  377. package/dist/cli/commands/generateImportMap/iterateConfig.d.ts.map +1 -0
  378. package/dist/{bin → cli/commands}/generateImportMap/iterateConfig.js +1 -1
  379. package/dist/cli/commands/generateImportMap/iterateConfig.js.map +1 -0
  380. package/dist/{bin → cli/commands}/generateImportMap/iterateFields.d.ts +3 -3
  381. package/dist/cli/commands/generateImportMap/iterateFields.d.ts.map +1 -0
  382. package/dist/cli/commands/generateImportMap/iterateFields.js.map +1 -0
  383. package/dist/{bin → cli/commands}/generateImportMap/iterateGlobals.d.ts +3 -3
  384. package/dist/cli/commands/generateImportMap/iterateGlobals.d.ts.map +1 -0
  385. package/dist/cli/commands/generateImportMap/iterateGlobals.js.map +1 -0
  386. package/dist/{bin → cli/commands}/generateImportMap/utilities/addPayloadComponentToImportMap.d.ts +2 -2
  387. package/dist/cli/commands/generateImportMap/utilities/addPayloadComponentToImportMap.d.ts.map +1 -0
  388. package/dist/cli/commands/generateImportMap/utilities/addPayloadComponentToImportMap.js.map +1 -0
  389. package/dist/{bin → cli/commands}/generateImportMap/utilities/getFromImportMap.d.ts +2 -2
  390. package/dist/cli/commands/generateImportMap/utilities/getFromImportMap.d.ts.map +1 -0
  391. package/dist/cli/commands/generateImportMap/utilities/getFromImportMap.js.map +1 -0
  392. package/dist/cli/commands/generateImportMap/utilities/getImportMapToBaseDirPath.d.ts.map +1 -0
  393. package/dist/cli/commands/generateImportMap/utilities/getImportMapToBaseDirPath.js.map +1 -0
  394. package/dist/{bin → cli/commands}/generateImportMap/utilities/parsePayloadComponent.d.ts +1 -1
  395. package/dist/cli/commands/generateImportMap/utilities/parsePayloadComponent.d.ts.map +1 -0
  396. package/dist/cli/commands/generateImportMap/utilities/parsePayloadComponent.js.map +1 -0
  397. package/dist/cli/commands/generateImportMap/utilities/resolveImportMapFilePath.d.ts.map +1 -0
  398. package/dist/{bin → cli/commands}/generateImportMap/utilities/resolveImportMapFilePath.js +1 -1
  399. package/dist/cli/commands/generateImportMap/utilities/resolveImportMapFilePath.js.map +1 -0
  400. package/dist/cli/commands/generateTypes.d.ts +12 -0
  401. package/dist/cli/commands/generateTypes.d.ts.map +1 -0
  402. package/dist/{bin → cli/commands}/generateTypes.js +33 -7
  403. package/dist/cli/commands/generateTypes.js.map +1 -0
  404. package/dist/cli/commands/getConfigInfo.d.ts +2 -0
  405. package/dist/cli/commands/getConfigInfo.d.ts.map +1 -0
  406. package/dist/cli/commands/getConfigInfo.js +23 -0
  407. package/dist/cli/commands/getConfigInfo.js.map +1 -0
  408. package/dist/cli/commands/globals/countGlobalVersions.d.ts +2 -0
  409. package/dist/cli/commands/globals/countGlobalVersions.d.ts.map +1 -0
  410. package/dist/cli/commands/globals/countGlobalVersions.js +36 -0
  411. package/dist/cli/commands/globals/countGlobalVersions.js.map +1 -0
  412. package/dist/cli/commands/globals/findGlobal.d.ts +2 -0
  413. package/dist/cli/commands/globals/findGlobal.d.ts.map +1 -0
  414. package/dist/cli/commands/globals/findGlobal.js +42 -0
  415. package/dist/cli/commands/globals/findGlobal.js.map +1 -0
  416. package/dist/cli/commands/globals/findGlobalVersionByID.d.ts +2 -0
  417. package/dist/cli/commands/globals/findGlobalVersionByID.d.ts.map +1 -0
  418. package/dist/cli/commands/globals/findGlobalVersionByID.js +46 -0
  419. package/dist/cli/commands/globals/findGlobalVersionByID.js.map +1 -0
  420. package/dist/cli/commands/globals/findGlobalVersions.d.ts +2 -0
  421. package/dist/cli/commands/globals/findGlobalVersions.d.ts.map +1 -0
  422. package/dist/cli/commands/globals/findGlobalVersions.js +55 -0
  423. package/dist/cli/commands/globals/findGlobalVersions.js.map +1 -0
  424. package/dist/cli/commands/globals/getGlobalSchema.d.ts +2 -0
  425. package/dist/cli/commands/globals/getGlobalSchema.d.ts.map +1 -0
  426. package/dist/cli/commands/globals/getGlobalSchema.js +36 -0
  427. package/dist/cli/commands/globals/getGlobalSchema.js.map +1 -0
  428. package/dist/cli/commands/globals/restoreGlobalVersion.d.ts +2 -0
  429. package/dist/cli/commands/globals/restoreGlobalVersion.d.ts.map +1 -0
  430. package/dist/cli/commands/globals/restoreGlobalVersion.js +46 -0
  431. package/dist/cli/commands/globals/restoreGlobalVersion.js.map +1 -0
  432. package/dist/cli/commands/globals/updateGlobal.d.ts +2 -0
  433. package/dist/cli/commands/globals/updateGlobal.d.ts.map +1 -0
  434. package/dist/cli/commands/globals/updateGlobal.js +95 -0
  435. package/dist/cli/commands/globals/updateGlobal.js.map +1 -0
  436. package/dist/cli/commands/help.d.ts +2 -0
  437. package/dist/cli/commands/help.d.ts.map +1 -0
  438. package/dist/cli/commands/help.js +42 -0
  439. package/dist/cli/commands/help.js.map +1 -0
  440. package/dist/cli/commands/info.d.ts +2 -0
  441. package/dist/cli/commands/info.d.ts.map +1 -0
  442. package/dist/cli/commands/info.js +78 -0
  443. package/dist/cli/commands/info.js.map +1 -0
  444. package/dist/cli/commands/jobs/handleSchedules.d.ts +2 -0
  445. package/dist/cli/commands/jobs/handleSchedules.d.ts.map +1 -0
  446. package/dist/cli/commands/jobs/handleSchedules.js +17 -0
  447. package/dist/cli/commands/jobs/handleSchedules.js.map +1 -0
  448. package/dist/cli/commands/jobs/run.d.ts +2 -0
  449. package/dist/cli/commands/jobs/run.d.ts.map +1 -0
  450. package/dist/cli/commands/jobs/run.js +30 -0
  451. package/dist/cli/commands/jobs/run.js.map +1 -0
  452. package/dist/cli/commands/migrate/create.d.ts +2 -0
  453. package/dist/cli/commands/migrate/create.d.ts.map +1 -0
  454. package/dist/cli/commands/migrate/create.js +44 -0
  455. package/dist/cli/commands/migrate/create.js.map +1 -0
  456. package/dist/cli/commands/migrate/down.d.ts +2 -0
  457. package/dist/cli/commands/migrate/down.d.ts.map +1 -0
  458. package/dist/cli/commands/migrate/down.js +22 -0
  459. package/dist/cli/commands/migrate/down.js.map +1 -0
  460. package/dist/cli/commands/migrate/fresh.d.ts +2 -0
  461. package/dist/cli/commands/migrate/fresh.d.ts.map +1 -0
  462. package/dist/cli/commands/migrate/fresh.js +28 -0
  463. package/dist/cli/commands/migrate/fresh.js.map +1 -0
  464. package/dist/cli/commands/migrate/initialize.d.ts +11 -0
  465. package/dist/cli/commands/migrate/initialize.d.ts.map +1 -0
  466. package/dist/cli/commands/migrate/initialize.js +17 -0
  467. package/dist/cli/commands/migrate/initialize.js.map +1 -0
  468. package/dist/cli/commands/migrate/refresh.d.ts +2 -0
  469. package/dist/cli/commands/migrate/refresh.d.ts.map +1 -0
  470. package/dist/cli/commands/migrate/refresh.js +22 -0
  471. package/dist/cli/commands/migrate/refresh.js.map +1 -0
  472. package/dist/cli/commands/migrate/reset.d.ts +2 -0
  473. package/dist/cli/commands/migrate/reset.d.ts.map +1 -0
  474. package/dist/cli/commands/migrate/reset.js +22 -0
  475. package/dist/cli/commands/migrate/reset.js.map +1 -0
  476. package/dist/cli/commands/migrate/run.d.ts +2 -0
  477. package/dist/cli/commands/migrate/run.d.ts.map +1 -0
  478. package/dist/cli/commands/migrate/run.js +28 -0
  479. package/dist/cli/commands/migrate/run.js.map +1 -0
  480. package/dist/cli/commands/migrate/status.d.ts +2 -0
  481. package/dist/cli/commands/migrate/status.d.ts.map +1 -0
  482. package/dist/cli/commands/migrate/status.js +22 -0
  483. package/dist/cli/commands/migrate/status.js.map +1 -0
  484. package/dist/cli/commands/run.d.ts +2 -0
  485. package/dist/cli/commands/run.d.ts.map +1 -0
  486. package/dist/cli/commands/run.js +45 -0
  487. package/dist/cli/commands/run.js.map +1 -0
  488. package/dist/cli/defineCLICommand.d.ts +32 -0
  489. package/dist/cli/defineCLICommand.d.ts.map +1 -0
  490. package/dist/cli/defineCLICommand.js +26 -0
  491. package/dist/cli/defineCLICommand.js.map +1 -0
  492. package/dist/cli/index.d.ts +7 -0
  493. package/dist/cli/index.d.ts.map +1 -0
  494. package/dist/cli/index.js +95 -0
  495. package/dist/cli/index.js.map +1 -0
  496. package/dist/cli/program/createHelp.d.ts +8 -0
  497. package/dist/cli/program/createHelp.d.ts.map +1 -0
  498. package/dist/cli/program/createHelp.js +26 -0
  499. package/dist/cli/program/createHelp.js.map +1 -0
  500. package/dist/cli/program/loadCommands.d.ts +12 -0
  501. package/dist/cli/program/loadCommands.d.ts.map +1 -0
  502. package/dist/cli/program/loadCommands.js +62 -0
  503. package/dist/cli/program/loadCommands.js.map +1 -0
  504. package/dist/cli/program/normalizeHelpArguments.d.ts +12 -0
  505. package/dist/cli/program/normalizeHelpArguments.d.ts.map +1 -0
  506. package/dist/cli/program/normalizeHelpArguments.js +34 -0
  507. package/dist/cli/program/normalizeHelpArguments.js.map +1 -0
  508. package/dist/cli/program/registerCommand.d.ts +10 -0
  509. package/dist/cli/program/registerCommand.d.ts.map +1 -0
  510. package/dist/cli/program/registerCommand.js +185 -0
  511. package/dist/cli/program/registerCommand.js.map +1 -0
  512. package/dist/cli/runtime/createRuntime.d.ts +9 -0
  513. package/dist/cli/runtime/createRuntime.d.ts.map +1 -0
  514. package/dist/cli/runtime/createRuntime.js +81 -0
  515. package/dist/cli/runtime/createRuntime.js.map +1 -0
  516. package/dist/cli/runtime/getCommandInput.d.ts +17 -0
  517. package/dist/cli/runtime/getCommandInput.d.ts.map +1 -0
  518. package/dist/cli/runtime/getCommandInput.js +86 -0
  519. package/dist/cli/runtime/getCommandInput.js.map +1 -0
  520. package/dist/cli/runtime/invokeCommand.d.ts +23 -0
  521. package/dist/cli/runtime/invokeCommand.d.ts.map +1 -0
  522. package/dist/cli/runtime/invokeCommand.js +107 -0
  523. package/dist/cli/runtime/invokeCommand.js.map +1 -0
  524. package/dist/cli/runtime/loadEnv.d.ts.map +1 -0
  525. package/dist/{bin → cli/runtime}/loadEnv.js +1 -1
  526. package/dist/cli/runtime/loadEnv.js.map +1 -0
  527. package/dist/cli/runtime/output.d.ts +50 -0
  528. package/dist/cli/runtime/output.d.ts.map +1 -0
  529. package/dist/cli/runtime/output.js +125 -0
  530. package/dist/cli/runtime/output.js.map +1 -0
  531. package/dist/cli/runtime/redirectOutputToStderr.d.ts +8 -0
  532. package/dist/cli/runtime/redirectOutputToStderr.d.ts.map +1 -0
  533. package/dist/cli/runtime/redirectOutputToStderr.js +31 -0
  534. package/dist/cli/runtime/redirectOutputToStderr.js.map +1 -0
  535. package/dist/collections/config/client.d.ts +10 -3
  536. package/dist/collections/config/client.d.ts.map +1 -1
  537. package/dist/collections/config/client.js +9 -1
  538. package/dist/collections/config/client.js.map +1 -1
  539. package/dist/collections/config/defaults.d.ts +6 -4
  540. package/dist/collections/config/defaults.d.ts.map +1 -1
  541. package/dist/collections/config/defaults.js +49 -33
  542. package/dist/collections/config/defaults.js.map +1 -1
  543. package/dist/collections/config/sanitize.d.ts +4 -8
  544. package/dist/collections/config/sanitize.d.ts.map +1 -1
  545. package/dist/collections/config/sanitize.js +89 -27
  546. package/dist/collections/config/sanitize.js.map +1 -1
  547. package/dist/collections/config/types.d.ts +74 -61
  548. package/dist/collections/config/types.d.ts.map +1 -1
  549. package/dist/collections/config/types.js.map +1 -1
  550. package/dist/collections/endpoints/index.d.ts +1 -0
  551. package/dist/collections/endpoints/index.d.ts.map +1 -1
  552. package/dist/collections/endpoints/index.js +6 -5
  553. package/dist/collections/endpoints/index.js.map +1 -1
  554. package/dist/collections/operations/count.d.ts.map +1 -1
  555. package/dist/collections/operations/count.js +65 -70
  556. package/dist/collections/operations/count.js.map +1 -1
  557. package/dist/collections/operations/countVersions.d.ts.map +1 -1
  558. package/dist/collections/operations/countVersions.js +61 -66
  559. package/dist/collections/operations/countVersions.js.map +1 -1
  560. package/dist/collections/operations/create.d.ts.map +1 -1
  561. package/dist/collections/operations/create.js +144 -13
  562. package/dist/collections/operations/create.js.map +1 -1
  563. package/dist/collections/operations/delete.d.ts.map +1 -1
  564. package/dist/collections/operations/delete.js +215 -129
  565. package/dist/collections/operations/delete.js.map +1 -1
  566. package/dist/collections/operations/deleteByID.d.ts.map +1 -1
  567. package/dist/collections/operations/deleteByID.js +14 -13
  568. package/dist/collections/operations/deleteByID.js.map +1 -1
  569. package/dist/collections/operations/docAccess.d.ts.map +1 -1
  570. package/dist/collections/operations/docAccess.js +19 -25
  571. package/dist/collections/operations/docAccess.js.map +1 -1
  572. package/dist/collections/operations/find.d.ts.map +1 -1
  573. package/dist/collections/operations/find.js +248 -246
  574. package/dist/collections/operations/find.js.map +1 -1
  575. package/dist/collections/operations/findByID.d.ts.map +1 -1
  576. package/dist/collections/operations/findByID.js +258 -215
  577. package/dist/collections/operations/findByID.js.map +1 -1
  578. package/dist/collections/operations/findDistinct.d.ts.map +1 -1
  579. package/dist/collections/operations/findDistinct.js +235 -154
  580. package/dist/collections/operations/findDistinct.js.map +1 -1
  581. package/dist/collections/operations/findVersionByID.d.ts.map +1 -1
  582. package/dist/collections/operations/findVersionByID.js +145 -128
  583. package/dist/collections/operations/findVersionByID.js.map +1 -1
  584. package/dist/collections/operations/findVersions.d.ts.map +1 -1
  585. package/dist/collections/operations/findVersions.js +152 -149
  586. package/dist/collections/operations/findVersions.js.map +1 -1
  587. package/dist/collections/operations/inputSchemas.d.ts +877 -0
  588. package/dist/collections/operations/inputSchemas.d.ts.map +1 -0
  589. package/dist/collections/operations/inputSchemas.js +217 -0
  590. package/dist/collections/operations/inputSchemas.js.map +1 -0
  591. package/dist/collections/operations/local/count.d.ts +2 -7
  592. package/dist/collections/operations/local/count.d.ts.map +1 -1
  593. package/dist/collections/operations/local/count.js +6 -3
  594. package/dist/collections/operations/local/count.js.map +1 -1
  595. package/dist/collections/operations/local/countVersions.d.ts +2 -7
  596. package/dist/collections/operations/local/countVersions.d.ts.map +1 -1
  597. package/dist/collections/operations/local/countVersions.js +6 -3
  598. package/dist/collections/operations/local/countVersions.js.map +1 -1
  599. package/dist/collections/operations/local/create.d.ts +6 -38
  600. package/dist/collections/operations/local/create.d.ts.map +1 -1
  601. package/dist/collections/operations/local/create.js +6 -3
  602. package/dist/collections/operations/local/create.js.map +1 -1
  603. package/dist/collections/operations/local/delete.d.ts +2 -7
  604. package/dist/collections/operations/local/delete.d.ts.map +1 -1
  605. package/dist/collections/operations/local/delete.js +6 -3
  606. package/dist/collections/operations/local/delete.js.map +1 -1
  607. package/dist/collections/operations/local/duplicate.d.ts +2 -7
  608. package/dist/collections/operations/local/duplicate.d.ts.map +1 -1
  609. package/dist/collections/operations/local/duplicate.js +6 -3
  610. package/dist/collections/operations/local/duplicate.js.map +1 -1
  611. package/dist/collections/operations/local/find.d.ts +4 -11
  612. package/dist/collections/operations/local/find.d.ts.map +1 -1
  613. package/dist/collections/operations/local/find.js +6 -3
  614. package/dist/collections/operations/local/find.js.map +1 -1
  615. package/dist/collections/operations/local/findByID.d.ts +6 -9
  616. package/dist/collections/operations/local/findByID.d.ts.map +1 -1
  617. package/dist/collections/operations/local/findByID.js +6 -3
  618. package/dist/collections/operations/local/findByID.js.map +1 -1
  619. package/dist/collections/operations/local/findDistinct.d.ts +2 -7
  620. package/dist/collections/operations/local/findDistinct.d.ts.map +1 -1
  621. package/dist/collections/operations/local/findDistinct.js +6 -3
  622. package/dist/collections/operations/local/findDistinct.js.map +1 -1
  623. package/dist/collections/operations/local/findVersionByID.d.ts +2 -7
  624. package/dist/collections/operations/local/findVersionByID.d.ts.map +1 -1
  625. package/dist/collections/operations/local/findVersionByID.js +6 -3
  626. package/dist/collections/operations/local/findVersionByID.js.map +1 -1
  627. package/dist/collections/operations/local/findVersions.d.ts +2 -7
  628. package/dist/collections/operations/local/findVersions.d.ts.map +1 -1
  629. package/dist/collections/operations/local/findVersions.js +6 -3
  630. package/dist/collections/operations/local/findVersions.js.map +1 -1
  631. package/dist/collections/operations/local/restoreVersion.d.ts +2 -7
  632. package/dist/collections/operations/local/restoreVersion.d.ts.map +1 -1
  633. package/dist/collections/operations/local/restoreVersion.js +6 -3
  634. package/dist/collections/operations/local/restoreVersion.js.map +1 -1
  635. package/dist/collections/operations/local/update.d.ts +2 -7
  636. package/dist/collections/operations/local/update.d.ts.map +1 -1
  637. package/dist/collections/operations/local/update.js +6 -3
  638. package/dist/collections/operations/local/update.js.map +1 -1
  639. package/dist/collections/operations/restoreVersion.d.ts.map +1 -1
  640. package/dist/collections/operations/restoreVersion.js +48 -13
  641. package/dist/collections/operations/restoreVersion.js.map +1 -1
  642. package/dist/collections/operations/update.d.ts.map +1 -1
  643. package/dist/collections/operations/update.js +148 -24
  644. package/dist/collections/operations/update.js.map +1 -1
  645. package/dist/collections/operations/updateByID.d.ts.map +1 -1
  646. package/dist/collections/operations/updateByID.js +80 -2
  647. package/dist/collections/operations/updateByID.js.map +1 -1
  648. package/dist/collections/operations/utilities/prefetchVersionForInheritedReadAccess.d.ts +15 -0
  649. package/dist/collections/operations/utilities/prefetchVersionForInheritedReadAccess.d.ts.map +1 -0
  650. package/dist/collections/operations/utilities/prefetchVersionForInheritedReadAccess.js +54 -0
  651. package/dist/collections/operations/utilities/prefetchVersionForInheritedReadAccess.js.map +1 -0
  652. package/dist/collections/operations/utilities/update.d.ts +2 -2
  653. package/dist/collections/operations/utilities/update.d.ts.map +1 -1
  654. package/dist/collections/operations/utilities/update.js +83 -19
  655. package/dist/collections/operations/utilities/update.js.map +1 -1
  656. package/dist/config/build.js +1 -1
  657. package/dist/config/build.js.map +1 -1
  658. package/dist/config/client.d.ts +2 -2
  659. package/dist/config/client.d.ts.map +1 -1
  660. package/dist/config/client.js +2 -4
  661. package/dist/config/client.js.map +1 -1
  662. package/dist/config/defaults.d.ts.map +1 -1
  663. package/dist/config/defaults.js +95 -42
  664. package/dist/config/defaults.js.map +1 -1
  665. package/dist/config/orderable/index.d.ts +1 -1
  666. package/dist/config/orderable/index.d.ts.map +1 -1
  667. package/dist/config/orderable/index.js +73 -16
  668. package/dist/config/orderable/index.js.map +1 -1
  669. package/dist/config/orderable/utils/getJoinScopeContext.d.ts.map +1 -1
  670. package/dist/config/orderable/utils/getJoinScopeContext.js +1 -0
  671. package/dist/config/orderable/utils/getJoinScopeContext.js.map +1 -1
  672. package/dist/config/orderable/utils/resolvePendingTargetKey.d.ts.map +1 -1
  673. package/dist/config/orderable/utils/resolvePendingTargetKey.js +1 -0
  674. package/dist/config/orderable/utils/resolvePendingTargetKey.js.map +1 -1
  675. package/dist/config/sanitize.d.ts +1 -1
  676. package/dist/config/sanitize.d.ts.map +1 -1
  677. package/dist/config/sanitize.js +45 -34
  678. package/dist/config/sanitize.js.map +1 -1
  679. package/dist/config/types.d.ts +497 -431
  680. package/dist/config/types.d.ts.map +1 -1
  681. package/dist/config/types.js.map +1 -1
  682. package/dist/database/createDatabaseAdapter.d.ts +1 -1
  683. package/dist/database/createDatabaseAdapter.d.ts.map +1 -1
  684. package/dist/database/createDatabaseAdapter.js +0 -2
  685. package/dist/database/createDatabaseAdapter.js.map +1 -1
  686. package/dist/database/getLocalizedPaths.d.ts +2 -1
  687. package/dist/database/getLocalizedPaths.d.ts.map +1 -1
  688. package/dist/database/getLocalizedPaths.js +12 -3
  689. package/dist/database/getLocalizedPaths.js.map +1 -1
  690. package/dist/database/isNestedRelationshipQuery.d.ts +14 -0
  691. package/dist/database/isNestedRelationshipQuery.d.ts.map +1 -0
  692. package/dist/database/isNestedRelationshipQuery.js +19 -0
  693. package/dist/database/isNestedRelationshipQuery.js.map +1 -0
  694. package/dist/database/migrations/createMigration.d.ts.map +1 -1
  695. package/dist/database/migrations/createMigration.js +4 -0
  696. package/dist/database/migrations/createMigration.js.map +1 -1
  697. package/dist/database/migrations/getMigrations.d.ts.map +1 -1
  698. package/dist/database/migrations/getMigrations.js +1 -0
  699. package/dist/database/migrations/getMigrations.js.map +1 -1
  700. package/dist/database/migrations/getPredefinedMigration.js +2 -2
  701. package/dist/database/migrations/getPredefinedMigration.js.map +1 -1
  702. package/dist/database/migrations/migrate.d.ts.map +1 -1
  703. package/dist/database/migrations/migrate.js +14 -2
  704. package/dist/database/migrations/migrate.js.map +1 -1
  705. package/dist/database/migrations/migrateDown.d.ts +2 -2
  706. package/dist/database/migrations/migrateDown.d.ts.map +1 -1
  707. package/dist/database/migrations/migrateDown.js +17 -4
  708. package/dist/database/migrations/migrateDown.js.map +1 -1
  709. package/dist/database/migrations/migrateRefresh.d.ts +2 -2
  710. package/dist/database/migrations/migrateRefresh.d.ts.map +1 -1
  711. package/dist/database/migrations/migrateRefresh.js +16 -4
  712. package/dist/database/migrations/migrateRefresh.js.map +1 -1
  713. package/dist/database/migrations/migrateReset.d.ts +2 -2
  714. package/dist/database/migrations/migrateReset.d.ts.map +1 -1
  715. package/dist/database/migrations/migrateReset.js +17 -3
  716. package/dist/database/migrations/migrateReset.js.map +1 -1
  717. package/dist/database/migrations/migrateStatus.d.ts +2 -2
  718. package/dist/database/migrations/migrateStatus.d.ts.map +1 -1
  719. package/dist/database/migrations/migrateStatus.js +11 -6
  720. package/dist/database/migrations/migrateStatus.js.map +1 -1
  721. package/dist/database/migrations/migrationsCollection.d.ts.map +1 -1
  722. package/dist/database/migrations/migrationsCollection.js +1 -0
  723. package/dist/database/migrations/migrationsCollection.js.map +1 -1
  724. package/dist/database/prefixWherePaths.d.ts +6 -0
  725. package/dist/database/prefixWherePaths.d.ts.map +1 -0
  726. package/dist/database/prefixWherePaths.js +19 -0
  727. package/dist/database/prefixWherePaths.js.map +1 -0
  728. package/dist/database/queryValidation/validateQueryPaths.d.ts +2 -1
  729. package/dist/database/queryValidation/validateQueryPaths.d.ts.map +1 -1
  730. package/dist/database/queryValidation/validateQueryPaths.js +12 -2
  731. package/dist/database/queryValidation/validateQueryPaths.js.map +1 -1
  732. package/dist/database/queryValidation/validateSearchParams.d.ts +2 -1
  733. package/dist/database/queryValidation/validateSearchParams.d.ts.map +1 -1
  734. package/dist/database/queryValidation/validateSearchParams.js +88 -7
  735. package/dist/database/queryValidation/validateSearchParams.js.map +1 -1
  736. package/dist/database/queryValidation/validateSortQuery.d.ts +23 -0
  737. package/dist/database/queryValidation/validateSortQuery.d.ts.map +1 -0
  738. package/dist/database/queryValidation/validateSortQuery.js +54 -0
  739. package/dist/database/queryValidation/validateSortQuery.js.map +1 -0
  740. package/dist/database/sanitizeJoinQuery.d.ts.map +1 -1
  741. package/dist/database/sanitizeJoinQuery.js +7 -0
  742. package/dist/database/sanitizeJoinQuery.js.map +1 -1
  743. package/dist/database/sanitizeWhereQuery.d.ts +1 -1
  744. package/dist/database/sanitizeWhereQuery.d.ts.map +1 -1
  745. package/dist/database/sanitizeWhereQuery.js +44 -1
  746. package/dist/database/sanitizeWhereQuery.js.map +1 -1
  747. package/dist/database/types.d.ts +41 -8
  748. package/dist/database/types.d.ts.map +1 -1
  749. package/dist/database/types.js.map +1 -1
  750. package/dist/duplicateDocument/index.js +1 -0
  751. package/dist/duplicateDocument/index.js.map +1 -1
  752. package/dist/exports/auth.d.ts +5 -0
  753. package/dist/exports/auth.d.ts.map +1 -0
  754. package/dist/exports/auth.js +6 -0
  755. package/dist/exports/auth.js.map +1 -0
  756. package/dist/exports/cli.d.ts +4 -0
  757. package/dist/exports/cli.d.ts.map +1 -0
  758. package/dist/exports/cli.js +4 -0
  759. package/dist/exports/cli.js.map +1 -0
  760. package/dist/exports/cliBuiltin.d.ts +37 -0
  761. package/dist/exports/cliBuiltin.d.ts.map +1 -0
  762. package/dist/exports/cliBuiltin.js +38 -0
  763. package/dist/exports/cliBuiltin.js.map +1 -0
  764. package/dist/exports/internal.d.ts +14 -1
  765. package/dist/exports/internal.d.ts.map +1 -1
  766. package/dist/exports/internal.js +13 -1
  767. package/dist/exports/internal.js.map +1 -1
  768. package/dist/exports/node.d.ts +2 -2
  769. package/dist/exports/node.d.ts.map +1 -1
  770. package/dist/exports/node.js +2 -2
  771. package/dist/exports/node.js.map +1 -1
  772. package/dist/exports/shared.d.ts +9 -4
  773. package/dist/exports/shared.d.ts.map +1 -1
  774. package/dist/exports/shared.js +8 -4
  775. package/dist/exports/shared.js.map +1 -1
  776. package/dist/fields/baseFields/authorship/index.d.ts +30 -0
  777. package/dist/fields/baseFields/authorship/index.d.ts.map +1 -0
  778. package/dist/fields/baseFields/authorship/index.js +151 -0
  779. package/dist/fields/baseFields/authorship/index.js.map +1 -0
  780. package/dist/fields/baseFields/authorship/types.d.ts +28 -0
  781. package/dist/fields/baseFields/authorship/types.d.ts.map +1 -0
  782. package/dist/fields/baseFields/authorship/types.js +10 -0
  783. package/dist/fields/baseFields/authorship/types.js.map +1 -0
  784. package/dist/fields/baseFields/slug/duplicateContext.d.ts +11 -0
  785. package/dist/fields/baseFields/slug/duplicateContext.d.ts.map +1 -0
  786. package/dist/fields/baseFields/slug/duplicateContext.js +21 -0
  787. package/dist/fields/baseFields/slug/duplicateContext.js.map +1 -0
  788. package/dist/fields/baseFields/slug/fillEmptyLocalizedSlugs.d.ts +23 -0
  789. package/dist/fields/baseFields/slug/fillEmptyLocalizedSlugs.d.ts.map +1 -0
  790. package/dist/fields/baseFields/slug/fillEmptyLocalizedSlugs.js +65 -0
  791. package/dist/fields/baseFields/slug/fillEmptyLocalizedSlugs.js.map +1 -0
  792. package/dist/fields/baseFields/slug/generateSlug.d.ts +13 -8
  793. package/dist/fields/baseFields/slug/generateSlug.d.ts.map +1 -1
  794. package/dist/fields/baseFields/slug/generateSlug.js +102 -45
  795. package/dist/fields/baseFields/slug/generateSlug.js.map +1 -1
  796. package/dist/fields/baseFields/slug/generateSlugBeforeDuplicate.d.ts +18 -0
  797. package/dist/fields/baseFields/slug/generateSlugBeforeDuplicate.d.ts.map +1 -0
  798. package/dist/fields/baseFields/slug/generateSlugBeforeDuplicate.js +20 -0
  799. package/dist/fields/baseFields/slug/generateSlugBeforeDuplicate.js.map +1 -0
  800. package/dist/fields/baseFields/slug/getSlugFallbackValue.d.ts +23 -0
  801. package/dist/fields/baseFields/slug/getSlugFallbackValue.d.ts.map +1 -0
  802. package/dist/fields/baseFields/slug/getSlugFallbackValue.js +24 -0
  803. package/dist/fields/baseFields/slug/getSlugFallbackValue.js.map +1 -0
  804. package/dist/fields/baseFields/slug/hasValue.d.ts +3 -0
  805. package/dist/fields/baseFields/slug/hasValue.d.ts.map +1 -0
  806. package/dist/fields/baseFields/slug/hasValue.js +3 -0
  807. package/dist/fields/baseFields/slug/hasValue.js.map +1 -0
  808. package/dist/fields/config/client.d.ts +1 -1
  809. package/dist/fields/config/client.d.ts.map +1 -1
  810. package/dist/fields/config/client.js +1 -1
  811. package/dist/fields/config/client.js.map +1 -1
  812. package/dist/fields/config/reservedFieldNames.js.map +1 -1
  813. package/dist/fields/config/sanitize.d.ts +6 -6
  814. package/dist/fields/config/sanitize.d.ts.map +1 -1
  815. package/dist/fields/config/sanitize.js +32 -22
  816. package/dist/fields/config/sanitize.js.map +1 -1
  817. package/dist/fields/config/types.d.ts +53 -50
  818. package/dist/fields/config/types.d.ts.map +1 -1
  819. package/dist/fields/config/types.js +1 -1
  820. package/dist/fields/config/types.js.map +1 -1
  821. package/dist/fields/hooks/beforeChange/index.d.ts +7 -1
  822. package/dist/fields/hooks/beforeChange/index.d.ts.map +1 -1
  823. package/dist/fields/hooks/beforeChange/index.js +4 -2
  824. package/dist/fields/hooks/beforeChange/index.js.map +1 -1
  825. package/dist/fields/hooks/beforeChange/promise.d.ts +2 -1
  826. package/dist/fields/hooks/beforeChange/promise.d.ts.map +1 -1
  827. package/dist/fields/hooks/beforeChange/promise.js +52 -9
  828. package/dist/fields/hooks/beforeChange/promise.js.map +1 -1
  829. package/dist/fields/hooks/beforeChange/traverseFields.d.ts +2 -1
  830. package/dist/fields/hooks/beforeChange/traverseFields.d.ts.map +1 -1
  831. package/dist/fields/hooks/beforeChange/traverseFields.js +3 -2
  832. package/dist/fields/hooks/beforeChange/traverseFields.js.map +1 -1
  833. package/dist/fields/hooks/beforeDuplicate/promise.d.ts.map +1 -1
  834. package/dist/fields/hooks/beforeDuplicate/promise.js +4 -0
  835. package/dist/fields/hooks/beforeDuplicate/promise.js.map +1 -1
  836. package/dist/fields/hooks/beforeValidate/getFallbackValue.d.ts +2 -1
  837. package/dist/fields/hooks/beforeValidate/getFallbackValue.d.ts.map +1 -1
  838. package/dist/fields/hooks/beforeValidate/getFallbackValue.js +2 -2
  839. package/dist/fields/hooks/beforeValidate/getFallbackValue.js.map +1 -1
  840. package/dist/fields/hooks/beforeValidate/index.d.ts +6 -1
  841. package/dist/fields/hooks/beforeValidate/index.d.ts.map +1 -1
  842. package/dist/fields/hooks/beforeValidate/index.js +3 -1
  843. package/dist/fields/hooks/beforeValidate/index.js.map +1 -1
  844. package/dist/fields/hooks/beforeValidate/promise.d.ts +6 -1
  845. package/dist/fields/hooks/beforeValidate/promise.d.ts.map +1 -1
  846. package/dist/fields/hooks/beforeValidate/promise.js +24 -9
  847. package/dist/fields/hooks/beforeValidate/promise.js.map +1 -1
  848. package/dist/fields/hooks/beforeValidate/traverseFields.d.ts +6 -1
  849. package/dist/fields/hooks/beforeValidate/traverseFields.d.ts.map +1 -1
  850. package/dist/fields/hooks/beforeValidate/traverseFields.js +5 -1
  851. package/dist/fields/hooks/beforeValidate/traverseFields.js.map +1 -1
  852. package/dist/fields/validations.d.ts.map +1 -1
  853. package/dist/fields/validations.js +17 -15
  854. package/dist/fields/validations.js.map +1 -1
  855. package/dist/globals/config/client.d.ts +1 -1
  856. package/dist/globals/config/client.d.ts.map +1 -1
  857. package/dist/globals/config/client.js.map +1 -1
  858. package/dist/globals/config/sanitize.d.ts +3 -7
  859. package/dist/globals/config/sanitize.d.ts.map +1 -1
  860. package/dist/globals/config/sanitize.js +78 -9
  861. package/dist/globals/config/sanitize.js.map +1 -1
  862. package/dist/globals/config/types.d.ts +41 -28
  863. package/dist/globals/config/types.d.ts.map +1 -1
  864. package/dist/globals/config/types.js.map +1 -1
  865. package/dist/globals/operations/countGlobalVersions.d.ts.map +1 -1
  866. package/dist/globals/operations/countGlobalVersions.js +57 -55
  867. package/dist/globals/operations/countGlobalVersions.js.map +1 -1
  868. package/dist/globals/operations/docAccess.d.ts.map +1 -1
  869. package/dist/globals/operations/docAccess.js +19 -25
  870. package/dist/globals/operations/docAccess.js.map +1 -1
  871. package/dist/globals/operations/findOne.d.ts.map +1 -1
  872. package/dist/globals/operations/findOne.js +169 -174
  873. package/dist/globals/operations/findOne.js.map +1 -1
  874. package/dist/globals/operations/findVersionByID.d.ts.map +1 -1
  875. package/dist/globals/operations/findVersionByID.js +112 -108
  876. package/dist/globals/operations/findVersionByID.js.map +1 -1
  877. package/dist/globals/operations/findVersions.d.ts.map +1 -1
  878. package/dist/globals/operations/findVersions.js +118 -109
  879. package/dist/globals/operations/findVersions.js.map +1 -1
  880. package/dist/globals/operations/inputSchemas.d.ts +365 -0
  881. package/dist/globals/operations/inputSchemas.d.ts.map +1 -0
  882. package/dist/globals/operations/inputSchemas.js +104 -0
  883. package/dist/globals/operations/inputSchemas.js.map +1 -0
  884. package/dist/globals/operations/local/countVersions.d.ts +2 -7
  885. package/dist/globals/operations/local/countVersions.d.ts.map +1 -1
  886. package/dist/globals/operations/local/countVersions.js +6 -3
  887. package/dist/globals/operations/local/countVersions.js.map +1 -1
  888. package/dist/globals/operations/local/findOne.d.ts +8 -10
  889. package/dist/globals/operations/local/findOne.d.ts.map +1 -1
  890. package/dist/globals/operations/local/findOne.js +6 -3
  891. package/dist/globals/operations/local/findOne.js.map +1 -1
  892. package/dist/globals/operations/local/findVersionByID.d.ts +2 -7
  893. package/dist/globals/operations/local/findVersionByID.d.ts.map +1 -1
  894. package/dist/globals/operations/local/findVersionByID.js +6 -3
  895. package/dist/globals/operations/local/findVersionByID.js.map +1 -1
  896. package/dist/globals/operations/local/findVersions.d.ts +2 -7
  897. package/dist/globals/operations/local/findVersions.d.ts.map +1 -1
  898. package/dist/globals/operations/local/findVersions.js +6 -3
  899. package/dist/globals/operations/local/findVersions.js.map +1 -1
  900. package/dist/globals/operations/local/restoreVersion.d.ts +2 -7
  901. package/dist/globals/operations/local/restoreVersion.d.ts.map +1 -1
  902. package/dist/globals/operations/local/restoreVersion.js +6 -3
  903. package/dist/globals/operations/local/restoreVersion.js.map +1 -1
  904. package/dist/globals/operations/local/update.d.ts +2 -7
  905. package/dist/globals/operations/local/update.d.ts.map +1 -1
  906. package/dist/globals/operations/local/update.js +6 -3
  907. package/dist/globals/operations/local/update.js.map +1 -1
  908. package/dist/globals/operations/restoreVersion.d.ts.map +1 -1
  909. package/dist/globals/operations/restoreVersion.js +60 -14
  910. package/dist/globals/operations/restoreVersion.js.map +1 -1
  911. package/dist/globals/operations/update.d.ts.map +1 -1
  912. package/dist/globals/operations/update.js +106 -19
  913. package/dist/globals/operations/update.js.map +1 -1
  914. package/dist/hierarchy/addHierarchyToCollection.js +2 -0
  915. package/dist/hierarchy/addHierarchyToCollection.js.map +1 -1
  916. package/dist/hierarchy/hooks/collectionAfterDelete.d.ts.map +1 -1
  917. package/dist/hierarchy/hooks/collectionAfterDelete.js +1 -0
  918. package/dist/hierarchy/hooks/collectionAfterDelete.js.map +1 -1
  919. package/dist/hierarchy/hooks/collectionBeforeChange.js +1 -0
  920. package/dist/hierarchy/hooks/collectionBeforeChange.js.map +1 -1
  921. package/dist/hierarchy/hooks/collectionBeforeDelete.d.ts.map +1 -1
  922. package/dist/hierarchy/hooks/collectionBeforeDelete.js +1 -0
  923. package/dist/hierarchy/hooks/collectionBeforeDelete.js.map +1 -1
  924. package/dist/index.bundled.d.ts +6075 -4445
  925. package/dist/index.d.ts +122 -61
  926. package/dist/index.d.ts.map +1 -1
  927. package/dist/index.js +88 -65
  928. package/dist/index.js.map +1 -1
  929. package/dist/kv/adapters/DatabaseKVAdapter.d.ts.map +1 -1
  930. package/dist/kv/adapters/DatabaseKVAdapter.js +2 -1
  931. package/dist/kv/adapters/DatabaseKVAdapter.js.map +1 -1
  932. package/dist/locked-documents/config.d.ts.map +1 -1
  933. package/dist/locked-documents/config.js +1 -0
  934. package/dist/locked-documents/config.js.map +1 -1
  935. package/dist/preferences/config.d.ts.map +1 -1
  936. package/dist/preferences/config.js +3 -1
  937. package/dist/preferences/config.js.map +1 -1
  938. package/dist/query-presets/access.d.ts.map +1 -1
  939. package/dist/query-presets/access.js +2 -1
  940. package/dist/query-presets/access.js.map +1 -1
  941. package/dist/query-presets/config.d.ts.map +1 -1
  942. package/dist/query-presets/config.js +1 -0
  943. package/dist/query-presets/config.js.map +1 -1
  944. package/dist/query-presets/constraints.js +1 -1
  945. package/dist/query-presets/constraints.js.map +1 -1
  946. package/dist/query-presets/preventLockout.js +6 -3
  947. package/dist/query-presets/preventLockout.js.map +1 -1
  948. package/dist/queues/config/collection.d.ts.map +1 -1
  949. package/dist/queues/config/collection.js +44 -43
  950. package/dist/queues/config/collection.js.map +1 -1
  951. package/dist/queues/config/global.d.ts +5 -6
  952. package/dist/queues/config/global.d.ts.map +1 -1
  953. package/dist/queues/config/global.js +2 -1
  954. package/dist/queues/config/global.js.map +1 -1
  955. package/dist/queues/config/types/index.d.ts +33 -25
  956. package/dist/queues/config/types/index.d.ts.map +1 -1
  957. package/dist/queues/config/types/index.js.map +1 -1
  958. package/dist/queues/config/types/taskTypes.d.ts +4 -7
  959. package/dist/queues/config/types/taskTypes.d.ts.map +1 -1
  960. package/dist/queues/config/types/taskTypes.js.map +1 -1
  961. package/dist/queues/config/types/workflowJSONTypes.d.ts +10 -9
  962. package/dist/queues/config/types/workflowJSONTypes.d.ts.map +1 -1
  963. package/dist/queues/config/types/workflowJSONTypes.js.map +1 -1
  964. package/dist/queues/config/types/workflowTypes.d.ts +11 -58
  965. package/dist/queues/config/types/workflowTypes.d.ts.map +1 -1
  966. package/dist/queues/config/types/workflowTypes.js.map +1 -1
  967. package/dist/queues/endpoints/handleSchedules.d.ts.map +1 -1
  968. package/dist/queues/endpoints/handleSchedules.js +3 -2
  969. package/dist/queues/endpoints/handleSchedules.js.map +1 -1
  970. package/dist/queues/endpoints/run.d.ts.map +1 -1
  971. package/dist/queues/endpoints/run.js +2 -1
  972. package/dist/queues/endpoints/run.js.map +1 -1
  973. package/dist/queues/errors/handleTaskError.js +4 -4
  974. package/dist/queues/errors/handleTaskError.js.map +1 -1
  975. package/dist/queues/errors/handleWorkflowError.js +1 -1
  976. package/dist/queues/errors/handleWorkflowError.js.map +1 -1
  977. package/dist/queues/errors/index.d.ts +6 -0
  978. package/dist/queues/errors/index.d.ts.map +1 -1
  979. package/dist/queues/errors/index.js +5 -0
  980. package/dist/queues/errors/index.js.map +1 -1
  981. package/dist/queues/localAPI.d.ts +10 -63
  982. package/dist/queues/localAPI.d.ts.map +1 -1
  983. package/dist/queues/localAPI.js +87 -78
  984. package/dist/queues/localAPI.js.map +1 -1
  985. package/dist/queues/operations/handleSchedules/countRunnableOrActiveJobsForQueue.d.ts +4 -4
  986. package/dist/queues/operations/handleSchedules/countRunnableOrActiveJobsForQueue.d.ts.map +1 -1
  987. package/dist/queues/operations/handleSchedules/countRunnableOrActiveJobsForQueue.js.map +1 -1
  988. package/dist/queues/operations/handleSchedules/index.d.ts +1 -1
  989. package/dist/queues/operations/handleSchedules/index.d.ts.map +1 -1
  990. package/dist/queues/operations/handleSchedules/index.js +2 -1
  991. package/dist/queues/operations/handleSchedules/index.js.map +1 -1
  992. package/dist/queues/operations/runJobs/heartbeat.d.ts +13 -0
  993. package/dist/queues/operations/runJobs/heartbeat.d.ts.map +1 -0
  994. package/dist/queues/operations/runJobs/heartbeat.js +66 -0
  995. package/dist/queues/operations/runJobs/heartbeat.js.map +1 -0
  996. package/dist/queues/operations/runJobs/index.d.ts.map +1 -1
  997. package/dist/queues/operations/runJobs/index.js +133 -84
  998. package/dist/queues/operations/runJobs/index.js.map +1 -1
  999. package/dist/queues/operations/runJobs/runJSONJob/index.d.ts.map +1 -1
  1000. package/dist/queues/operations/runJobs/runJSONJob/index.js +6 -3
  1001. package/dist/queues/operations/runJobs/runJSONJob/index.js.map +1 -1
  1002. package/dist/queues/operations/runJobs/runJob/getRunTaskFunction.js +5 -5
  1003. package/dist/queues/operations/runJobs/runJob/getRunTaskFunction.js.map +1 -1
  1004. package/dist/queues/operations/runJobs/runJob/getUpdateJobFunction.d.ts +2 -1
  1005. package/dist/queues/operations/runJobs/runJob/getUpdateJobFunction.d.ts.map +1 -1
  1006. package/dist/queues/operations/runJobs/runJob/getUpdateJobFunction.js +39 -8
  1007. package/dist/queues/operations/runJobs/runJob/getUpdateJobFunction.js.map +1 -1
  1008. package/dist/queues/operations/runJobs/runJob/importHandlerPath.js.map +1 -1
  1009. package/dist/queues/operations/runJobs/runJob/index.d.ts.map +1 -1
  1010. package/dist/queues/operations/runJobs/runJob/index.js +4 -4
  1011. package/dist/queues/operations/runJobs/runJob/index.js.map +1 -1
  1012. package/dist/queues/utilities/updateJob.d.ts.map +1 -1
  1013. package/dist/queues/utilities/updateJob.js +3 -0
  1014. package/dist/queues/utilities/updateJob.js.map +1 -1
  1015. package/dist/types/constants.d.ts +21 -0
  1016. package/dist/types/constants.d.ts.map +1 -1
  1017. package/dist/types/constants.js +23 -0
  1018. package/dist/types/constants.js.map +1 -1
  1019. package/dist/types/index.d.ts +7 -7
  1020. package/dist/types/index.d.ts.map +1 -1
  1021. package/dist/types/index.js.map +1 -1
  1022. package/dist/types/operations.d.ts +9 -0
  1023. package/dist/types/operations.d.ts.map +1 -0
  1024. package/dist/types/operations.js +3 -0
  1025. package/dist/types/operations.js.map +1 -0
  1026. package/dist/uploads/assertClientUploadAccess.d.ts +7 -0
  1027. package/dist/uploads/assertClientUploadAccess.d.ts.map +1 -0
  1028. package/dist/uploads/assertClientUploadAccess.js +29 -0
  1029. package/dist/uploads/assertClientUploadAccess.js.map +1 -0
  1030. package/dist/uploads/assertClientUploadAllowed.d.ts +10 -0
  1031. package/dist/uploads/assertClientUploadAllowed.d.ts.map +1 -0
  1032. package/dist/uploads/assertClientUploadAllowed.js +41 -0
  1033. package/dist/uploads/assertClientUploadAllowed.js.map +1 -0
  1034. package/dist/uploads/checkFileAccess.js +1 -0
  1035. package/dist/uploads/checkFileAccess.js.map +1 -1
  1036. package/dist/uploads/checkFileRestrictions.d.ts +11 -1
  1037. package/dist/uploads/checkFileRestrictions.d.ts.map +1 -1
  1038. package/dist/uploads/checkFileRestrictions.js +91 -26
  1039. package/dist/uploads/checkFileRestrictions.js.map +1 -1
  1040. package/dist/uploads/clientUploadReceipt.d.ts +29 -0
  1041. package/dist/uploads/clientUploadReceipt.d.ts.map +1 -0
  1042. package/dist/uploads/clientUploadReceipt.js +76 -0
  1043. package/dist/uploads/clientUploadReceipt.js.map +1 -0
  1044. package/dist/uploads/cropImage.d.ts +1 -1
  1045. package/dist/uploads/cropImage.d.ts.map +1 -1
  1046. package/dist/uploads/cropImage.js +2 -5
  1047. package/dist/uploads/cropImage.js.map +1 -1
  1048. package/dist/uploads/deleteAssociatedFiles.d.ts.map +1 -1
  1049. package/dist/uploads/deleteAssociatedFiles.js +57 -9
  1050. package/dist/uploads/deleteAssociatedFiles.js.map +1 -1
  1051. package/dist/uploads/detectSvgFromXml.d.ts +1 -4
  1052. package/dist/uploads/detectSvgFromXml.d.ts.map +1 -1
  1053. package/dist/uploads/detectSvgFromXml.js +2 -41
  1054. package/dist/uploads/detectSvgFromXml.js.map +1 -1
  1055. package/dist/uploads/docWithFilenameExists.d.ts +2 -1
  1056. package/dist/uploads/docWithFilenameExists.d.ts.map +1 -1
  1057. package/dist/uploads/docWithFilenameExists.js +27 -10
  1058. package/dist/uploads/docWithFilenameExists.js.map +1 -1
  1059. package/dist/uploads/downloadFileToBuffer.d.ts +11 -0
  1060. package/dist/uploads/downloadFileToBuffer.d.ts.map +1 -0
  1061. package/dist/uploads/downloadFileToBuffer.js +72 -0
  1062. package/dist/uploads/downloadFileToBuffer.js.map +1 -0
  1063. package/dist/uploads/endpoints/getFile.d.ts.map +1 -1
  1064. package/dist/uploads/endpoints/getFile.js +5 -3
  1065. package/dist/uploads/endpoints/getFile.js.map +1 -1
  1066. package/dist/uploads/endpoints/index.js +2 -2
  1067. package/dist/uploads/endpoints/index.js.map +1 -1
  1068. package/dist/uploads/endpoints/pasteURL.d.ts +3 -0
  1069. package/dist/uploads/endpoints/pasteURL.d.ts.map +1 -0
  1070. package/dist/uploads/endpoints/{getFileFromURL.js → pasteURL.js} +19 -55
  1071. package/dist/uploads/endpoints/pasteURL.js.map +1 -0
  1072. package/dist/uploads/endpoints/uploadInstructions.d.ts +15 -0
  1073. package/dist/uploads/endpoints/uploadInstructions.d.ts.map +1 -0
  1074. package/dist/uploads/endpoints/uploadInstructions.js +87 -0
  1075. package/dist/uploads/endpoints/uploadInstructions.js.map +1 -0
  1076. package/dist/uploads/fetchAPI-multipart/handlers.d.ts +2 -2
  1077. package/dist/uploads/fetchAPI-multipart/handlers.d.ts.map +1 -1
  1078. package/dist/uploads/fetchAPI-multipart/handlers.js +18 -5
  1079. package/dist/uploads/fetchAPI-multipart/handlers.js.map +1 -1
  1080. package/dist/uploads/fetchAPI-multipart/index.d.ts.map +1 -1
  1081. package/dist/uploads/fetchAPI-multipart/index.js +24 -2
  1082. package/dist/uploads/fetchAPI-multipart/index.js.map +1 -1
  1083. package/dist/uploads/fetchAPI-multipart/isEligibleRequest.js +1 -2
  1084. package/dist/uploads/fetchAPI-multipart/isEligibleRequest.js.map +1 -1
  1085. package/dist/uploads/fetchAPI-multipart/processMultipart.d.ts +0 -6
  1086. package/dist/uploads/fetchAPI-multipart/processMultipart.d.ts.map +1 -1
  1087. package/dist/uploads/fetchAPI-multipart/processMultipart.js +146 -130
  1088. package/dist/uploads/fetchAPI-multipart/processMultipart.js.map +1 -1
  1089. package/dist/uploads/fetchWithRedirects.d.ts +19 -0
  1090. package/dist/uploads/fetchWithRedirects.d.ts.map +1 -0
  1091. package/dist/uploads/fetchWithRedirects.js +53 -0
  1092. package/dist/uploads/fetchWithRedirects.js.map +1 -0
  1093. package/dist/uploads/generateFileData.d.ts +31 -1
  1094. package/dist/uploads/generateFileData.d.ts.map +1 -1
  1095. package/dist/uploads/generateFileData.js +117 -65
  1096. package/dist/uploads/generateFileData.js.map +1 -1
  1097. package/dist/uploads/getBaseFields.d.ts.map +1 -1
  1098. package/dist/uploads/getBaseFields.js +3 -1
  1099. package/dist/uploads/getBaseFields.js.map +1 -1
  1100. package/dist/uploads/getFileContentRequirement.d.ts +32 -0
  1101. package/dist/uploads/getFileContentRequirement.d.ts.map +1 -0
  1102. package/dist/uploads/getFileContentRequirement.js +40 -0
  1103. package/dist/uploads/getFileContentRequirement.js.map +1 -0
  1104. package/dist/uploads/getFileFromUploadInstructions.d.ts +8 -0
  1105. package/dist/uploads/getFileFromUploadInstructions.d.ts.map +1 -0
  1106. package/dist/uploads/getFileFromUploadInstructions.js +279 -0
  1107. package/dist/uploads/getFileFromUploadInstructions.js.map +1 -0
  1108. package/dist/uploads/getFileTypeFallback.d.ts.map +1 -1
  1109. package/dist/uploads/getFileTypeFallback.js +3 -1
  1110. package/dist/uploads/getFileTypeFallback.js.map +1 -1
  1111. package/dist/uploads/getFileTypeIdentity.d.ts +19 -0
  1112. package/dist/uploads/getFileTypeIdentity.d.ts.map +1 -0
  1113. package/dist/uploads/getFileTypeIdentity.js +34 -0
  1114. package/dist/uploads/getFileTypeIdentity.js.map +1 -0
  1115. package/dist/uploads/getImageSize.d.ts +12 -1
  1116. package/dist/uploads/getImageSize.d.ts.map +1 -1
  1117. package/dist/uploads/getImageSize.js +20 -18
  1118. package/dist/uploads/getImageSize.js.map +1 -1
  1119. package/dist/uploads/hasCropOrResizeEdit.d.ts +7 -0
  1120. package/dist/uploads/hasCropOrResizeEdit.d.ts.map +1 -0
  1121. package/dist/uploads/hasCropOrResizeEdit.js +6 -0
  1122. package/dist/uploads/hasCropOrResizeEdit.js.map +1 -0
  1123. package/dist/uploads/hasFullFileContents.d.ts +13 -0
  1124. package/dist/uploads/hasFullFileContents.d.ts.map +1 -0
  1125. package/dist/uploads/hasFullFileContents.js +12 -0
  1126. package/dist/uploads/hasFullFileContents.js.map +1 -0
  1127. package/dist/uploads/image-resizing/createImageSizes.d.ts.map +1 -1
  1128. package/dist/uploads/image-resizing/createImageSizes.js +2 -5
  1129. package/dist/uploads/image-resizing/createImageSizes.js.map +1 -1
  1130. package/dist/uploads/isAnimatedImage.d.ts +8 -0
  1131. package/dist/uploads/isAnimatedImage.d.ts.map +1 -0
  1132. package/dist/uploads/isAnimatedImage.js +22 -0
  1133. package/dist/uploads/isAnimatedImage.js.map +1 -0
  1134. package/dist/uploads/isProcessableImage.d.ts +2 -0
  1135. package/dist/uploads/isProcessableImage.d.ts.map +1 -0
  1136. package/dist/uploads/isProcessableImage.js +7 -0
  1137. package/dist/uploads/isProcessableImage.js.map +1 -0
  1138. package/dist/uploads/probeImageSize.d.ts +39 -0
  1139. package/dist/uploads/probeImageSize.d.ts.map +1 -0
  1140. package/dist/uploads/probeImageSize.js +374 -0
  1141. package/dist/uploads/probeImageSize.js.map +1 -0
  1142. package/dist/uploads/resolveURLUploadInput.d.ts +25 -0
  1143. package/dist/uploads/resolveURLUploadInput.d.ts.map +1 -0
  1144. package/dist/uploads/resolveURLUploadInput.js +53 -0
  1145. package/dist/uploads/resolveURLUploadInput.js.map +1 -0
  1146. package/dist/uploads/safeFetch.d.ts.map +1 -1
  1147. package/dist/uploads/safeFetch.js +3 -2
  1148. package/dist/uploads/safeFetch.js.map +1 -1
  1149. package/dist/uploads/sanitizeUploadData.d.ts +26 -0
  1150. package/dist/uploads/sanitizeUploadData.d.ts.map +1 -0
  1151. package/dist/uploads/sanitizeUploadData.js +161 -0
  1152. package/dist/uploads/sanitizeUploadData.js.map +1 -0
  1153. package/dist/uploads/stagedUpload.d.ts +27 -0
  1154. package/dist/uploads/stagedUpload.d.ts.map +1 -0
  1155. package/dist/uploads/stagedUpload.js +197 -0
  1156. package/dist/uploads/stagedUpload.js.map +1 -0
  1157. package/dist/uploads/types.d.ts +101 -10
  1158. package/dist/uploads/types.d.ts.map +1 -1
  1159. package/dist/uploads/types.js.map +1 -1
  1160. package/dist/uploads/unlinkTempFiles.d.ts.map +1 -1
  1161. package/dist/uploads/unlinkTempFiles.js +6 -2
  1162. package/dist/uploads/unlinkTempFiles.js.map +1 -1
  1163. package/dist/uploads/uploadContentSecurityPolicy.d.ts +2 -0
  1164. package/dist/uploads/uploadContentSecurityPolicy.d.ts.map +1 -0
  1165. package/dist/uploads/uploadContentSecurityPolicy.js +3 -0
  1166. package/dist/uploads/uploadContentSecurityPolicy.js.map +1 -0
  1167. package/dist/uploads/uploadFiles.d.ts.map +1 -1
  1168. package/dist/uploads/uploadFiles.js +7 -2
  1169. package/dist/uploads/uploadFiles.js.map +1 -1
  1170. package/dist/uploads/validateISOBaseMediaFile.d.ts +4 -0
  1171. package/dist/uploads/validateISOBaseMediaFile.d.ts.map +1 -0
  1172. package/dist/uploads/validateISOBaseMediaFile.js +91 -0
  1173. package/dist/uploads/validateISOBaseMediaFile.js.map +1 -0
  1174. package/dist/uploads/validateSvg.d.ts +10 -4
  1175. package/dist/uploads/validateSvg.d.ts.map +1 -1
  1176. package/dist/uploads/validateSvg.js +280 -40
  1177. package/dist/uploads/validateSvg.js.map +1 -1
  1178. package/dist/uploads/validateUploadFilename.d.ts +3 -0
  1179. package/dist/uploads/validateUploadFilename.d.ts.map +1 -0
  1180. package/dist/uploads/validateUploadFilename.js +13 -0
  1181. package/dist/uploads/validateUploadFilename.js.map +1 -0
  1182. package/dist/uploads/validateUploadURL.d.ts +13 -0
  1183. package/dist/uploads/validateUploadURL.d.ts.map +1 -0
  1184. package/dist/uploads/validateUploadURL.js +37 -0
  1185. package/dist/uploads/validateUploadURL.js.map +1 -0
  1186. package/dist/utilities/addDataAndFileToRequest.d.ts.map +1 -1
  1187. package/dist/utilities/addDataAndFileToRequest.js +14 -45
  1188. package/dist/utilities/addDataAndFileToRequest.js.map +1 -1
  1189. package/dist/utilities/appendNonTrashedFilter.d.ts +1 -1
  1190. package/dist/utilities/appendNonTrashedFilter.d.ts.map +1 -1
  1191. package/dist/utilities/appendNonTrashedFilter.js.map +1 -1
  1192. package/dist/utilities/canAccessAdmin.d.ts.map +1 -1
  1193. package/dist/utilities/canAccessAdmin.js +2 -0
  1194. package/dist/utilities/canAccessAdmin.js.map +1 -1
  1195. package/dist/utilities/checkDocumentLockStatus.d.ts +19 -0
  1196. package/dist/utilities/checkDocumentLockStatus.d.ts.map +1 -1
  1197. package/dist/utilities/checkDocumentLockStatus.js +74 -0
  1198. package/dist/utilities/checkDocumentLockStatus.js.map +1 -1
  1199. package/dist/utilities/configToJSONSchema.d.ts.map +1 -1
  1200. package/dist/utilities/configToJSONSchema.js +0 -9
  1201. package/dist/utilities/configToJSONSchema.js.map +1 -1
  1202. package/dist/utilities/createPayloadRequest.d.ts +12 -10
  1203. package/dist/utilities/createPayloadRequest.d.ts.map +1 -1
  1204. package/dist/utilities/createPayloadRequest.js +98 -81
  1205. package/dist/utilities/createPayloadRequest.js.map +1 -1
  1206. package/dist/utilities/createPayloadRequestFromWebRequest.d.ts +14 -0
  1207. package/dist/utilities/createPayloadRequestFromWebRequest.d.ts.map +1 -0
  1208. package/dist/utilities/createPayloadRequestFromWebRequest.js +95 -0
  1209. package/dist/utilities/createPayloadRequestFromWebRequest.js.map +1 -0
  1210. package/dist/utilities/deepCopyObject.d.ts.map +1 -1
  1211. package/dist/utilities/deepCopyObject.js +110 -19
  1212. package/dist/utilities/deepCopyObject.js.map +1 -1
  1213. package/dist/utilities/entityInputSchema/filterFieldsByAccess.d.ts +30 -0
  1214. package/dist/utilities/entityInputSchema/filterFieldsByAccess.d.ts.map +1 -0
  1215. package/dist/utilities/entityInputSchema/filterFieldsByAccess.js +71 -0
  1216. package/dist/utilities/entityInputSchema/filterFieldsByAccess.js.map +1 -0
  1217. package/dist/utilities/entityInputSchema/getEntityInputSchema.d.ts +13 -0
  1218. package/dist/utilities/entityInputSchema/getEntityInputSchema.d.ts.map +1 -0
  1219. package/dist/utilities/entityInputSchema/getEntityInputSchema.js +66 -0
  1220. package/dist/utilities/entityInputSchema/getEntityInputSchema.js.map +1 -0
  1221. package/dist/utilities/entityInputSchema/sanitizeEntitySchema.d.ts +10 -0
  1222. package/dist/utilities/entityInputSchema/sanitizeEntitySchema.d.ts.map +1 -0
  1223. package/dist/utilities/entityInputSchema/sanitizeEntitySchema.js +384 -0
  1224. package/dist/utilities/entityInputSchema/sanitizeEntitySchema.js.map +1 -0
  1225. package/dist/utilities/entityInputSchema/types.d.ts +16 -0
  1226. package/dist/utilities/entityInputSchema/types.d.ts.map +1 -0
  1227. package/dist/utilities/entityInputSchema/types.js +3 -0
  1228. package/dist/utilities/entityInputSchema/types.js.map +1 -0
  1229. package/dist/utilities/entityInputSchema/validateEntityData.d.ts +13 -0
  1230. package/dist/utilities/entityInputSchema/validateEntityData.d.ts.map +1 -0
  1231. package/dist/utilities/entityInputSchema/validateEntityData.js +138 -0
  1232. package/dist/utilities/entityInputSchema/validateEntityData.js.map +1 -0
  1233. package/dist/utilities/fieldPath.d.ts +13 -0
  1234. package/dist/utilities/fieldPath.d.ts.map +1 -0
  1235. package/dist/utilities/fieldPath.js +51 -0
  1236. package/dist/utilities/fieldPath.js.map +1 -0
  1237. package/dist/utilities/fieldValueExists.d.ts +29 -0
  1238. package/dist/utilities/fieldValueExists.d.ts.map +1 -0
  1239. package/dist/utilities/fieldValueExists.js +37 -0
  1240. package/dist/utilities/fieldValueExists.js.map +1 -0
  1241. package/dist/utilities/formatAdminURL.d.ts +1 -0
  1242. package/dist/utilities/formatAdminURL.d.ts.map +1 -1
  1243. package/dist/utilities/formatAdminURL.js +22 -4
  1244. package/dist/utilities/formatAdminURL.js.map +1 -1
  1245. package/dist/utilities/getEntityPermissions/entityDocExists.d.ts.map +1 -1
  1246. package/dist/utilities/getEntityPermissions/entityDocExists.js +36 -5
  1247. package/dist/utilities/getEntityPermissions/entityDocExists.js.map +1 -1
  1248. package/dist/utilities/getEntityPermissions/getEntityPermissions.d.ts.map +1 -1
  1249. package/dist/utilities/getEntityPermissions/getEntityPermissions.js +1 -0
  1250. package/dist/utilities/getEntityPermissions/getEntityPermissions.js.map +1 -1
  1251. package/dist/utilities/getNextVersion.d.ts +7 -0
  1252. package/dist/utilities/getNextVersion.d.ts.map +1 -0
  1253. package/dist/utilities/getNextVersion.js +20 -0
  1254. package/dist/utilities/getNextVersion.js.map +1 -0
  1255. package/dist/utilities/getObjectDotNotation.d.ts.map +1 -1
  1256. package/dist/utilities/getObjectDotNotation.js +7 -1
  1257. package/dist/utilities/getObjectDotNotation.js.map +1 -1
  1258. package/dist/utilities/getRequestOrigin.d.ts.map +1 -1
  1259. package/dist/utilities/getRequestOrigin.js.map +1 -1
  1260. package/dist/utilities/getSafeRedirect.d.ts.map +1 -1
  1261. package/dist/utilities/getSafeRedirect.js +16 -9
  1262. package/dist/utilities/getSafeRedirect.js.map +1 -1
  1263. package/dist/utilities/getTopLevelFieldNames.d.ts +2 -0
  1264. package/dist/utilities/getTopLevelFieldNames.d.ts.map +1 -0
  1265. package/dist/utilities/getTopLevelFieldNames.js +3 -0
  1266. package/dist/utilities/getTopLevelFieldNames.js.map +1 -0
  1267. package/dist/utilities/getUniqueFieldValue.d.ts +28 -0
  1268. package/dist/utilities/getUniqueFieldValue.d.ts.map +1 -0
  1269. package/dist/utilities/getUniqueFieldValue.js +27 -0
  1270. package/dist/utilities/getUniqueFieldValue.js.map +1 -0
  1271. package/dist/utilities/getVirtualFieldNames.d.ts +14 -0
  1272. package/dist/utilities/getVirtualFieldNames.d.ts.map +1 -0
  1273. package/dist/utilities/getVirtualFieldNames.js +35 -0
  1274. package/dist/utilities/getVirtualFieldNames.js.map +1 -0
  1275. package/dist/utilities/handleEndpoints.d.ts.map +1 -1
  1276. package/dist/utilities/handleEndpoints.js +8 -7
  1277. package/dist/utilities/handleEndpoints.js.map +1 -1
  1278. package/dist/utilities/headersWithCors.js +1 -1
  1279. package/dist/utilities/headersWithCors.js.map +1 -1
  1280. package/dist/utilities/killTransaction.d.ts +7 -0
  1281. package/dist/utilities/killTransaction.d.ts.map +1 -1
  1282. package/dist/utilities/killTransaction.js +7 -0
  1283. package/dist/utilities/killTransaction.js.map +1 -1
  1284. package/dist/utilities/logError.d.ts.map +1 -1
  1285. package/dist/utilities/logError.js +5 -2
  1286. package/dist/utilities/logError.js.map +1 -1
  1287. package/dist/utilities/nextJsDevReloadStrategy.d.ts +7 -0
  1288. package/dist/utilities/nextJsDevReloadStrategy.d.ts.map +1 -0
  1289. package/dist/utilities/nextJsDevReloadStrategy.js +59 -0
  1290. package/dist/utilities/nextJsDevReloadStrategy.js.map +1 -0
  1291. package/dist/utilities/parseDocumentID.d.ts +4 -1
  1292. package/dist/utilities/parseDocumentID.d.ts.map +1 -1
  1293. package/dist/utilities/parseDocumentID.js +7 -1
  1294. package/dist/utilities/parseDocumentID.js.map +1 -1
  1295. package/dist/utilities/parseParams/index.d.ts.map +1 -1
  1296. package/dist/utilities/parseParams/index.js +3 -1
  1297. package/dist/utilities/parseParams/index.js.map +1 -1
  1298. package/dist/utilities/sanitizeUploadPrefix.d.ts +5 -0
  1299. package/dist/utilities/sanitizeUploadPrefix.d.ts.map +1 -0
  1300. package/dist/utilities/sanitizeUploadPrefix.js +18 -0
  1301. package/dist/utilities/sanitizeUploadPrefix.js.map +1 -0
  1302. package/dist/utilities/sharedInputSchemas.d.ts +52 -0
  1303. package/dist/utilities/sharedInputSchemas.d.ts.map +1 -0
  1304. package/dist/utilities/sharedInputSchemas.js +101 -0
  1305. package/dist/utilities/sharedInputSchemas.js.map +1 -0
  1306. package/dist/utilities/telemetry/featureInfo/getFeatureInfo.d.ts +4 -0
  1307. package/dist/utilities/telemetry/featureInfo/getFeatureInfo.d.ts.map +1 -0
  1308. package/dist/utilities/telemetry/featureInfo/getFeatureInfo.js +261 -0
  1309. package/dist/utilities/telemetry/featureInfo/getFeatureInfo.js.map +1 -0
  1310. package/dist/utilities/telemetry/featureInfo/types.d.ts +63 -0
  1311. package/dist/utilities/telemetry/featureInfo/types.d.ts.map +1 -0
  1312. package/dist/utilities/telemetry/featureInfo/types.js +3 -0
  1313. package/dist/utilities/telemetry/featureInfo/types.js.map +1 -0
  1314. package/dist/utilities/telemetry/getProjectContext.d.ts +16 -0
  1315. package/dist/utilities/telemetry/getProjectContext.d.ts.map +1 -0
  1316. package/dist/utilities/telemetry/getProjectContext.js +43 -0
  1317. package/dist/utilities/telemetry/getProjectContext.js.map +1 -0
  1318. package/dist/utilities/telemetry/index.d.ts +6 -1
  1319. package/dist/utilities/telemetry/index.d.ts.map +1 -1
  1320. package/dist/utilities/telemetry/index.js +21 -1
  1321. package/dist/utilities/telemetry/index.js.map +1 -1
  1322. package/dist/utilities/transformPointDataToPayload.d.ts +7 -0
  1323. package/dist/utilities/transformPointDataToPayload.d.ts.map +1 -0
  1324. package/dist/utilities/transformPointDataToPayload.js +28 -0
  1325. package/dist/utilities/transformPointDataToPayload.js.map +1 -0
  1326. package/dist/utilities/traverseFields.d.ts.map +1 -1
  1327. package/dist/utilities/traverseFields.js +25 -36
  1328. package/dist/utilities/traverseFields.js.map +1 -1
  1329. package/dist/utilities/unflatten.d.ts.map +1 -1
  1330. package/dist/utilities/unflatten.js +21 -9
  1331. package/dist/utilities/unflatten.js.map +1 -1
  1332. package/dist/utilities/unflattenData.d.ts +3 -0
  1333. package/dist/utilities/unflattenData.d.ts.map +1 -0
  1334. package/dist/utilities/unflattenData.js +14 -0
  1335. package/dist/utilities/unflattenData.js.map +1 -0
  1336. package/dist/utilities/zod.d.ts +5 -0
  1337. package/dist/utilities/zod.d.ts.map +1 -0
  1338. package/dist/utilities/zod.js +21 -0
  1339. package/dist/utilities/zod.js.map +1 -0
  1340. package/dist/versions/allLocalesPublicationStatus.d.ts +38 -0
  1341. package/dist/versions/allLocalesPublicationStatus.d.ts.map +1 -0
  1342. package/dist/versions/allLocalesPublicationStatus.js +57 -0
  1343. package/dist/versions/allLocalesPublicationStatus.js.map +1 -0
  1344. package/dist/versions/deleteCollectionVersions.d.ts +11 -1
  1345. package/dist/versions/deleteCollectionVersions.d.ts.map +1 -1
  1346. package/dist/versions/deleteCollectionVersions.js +10 -3
  1347. package/dist/versions/deleteCollectionVersions.js.map +1 -1
  1348. package/dist/versions/deleteScheduledPublishJobs.d.ts +5 -1
  1349. package/dist/versions/deleteScheduledPublishJobs.d.ts.map +1 -1
  1350. package/dist/versions/deleteScheduledPublishJobs.js +11 -5
  1351. package/dist/versions/deleteScheduledPublishJobs.js.map +1 -1
  1352. package/dist/versions/drafts/appendVersionToQueryKey.d.ts +1 -0
  1353. package/dist/versions/drafts/appendVersionToQueryKey.d.ts.map +1 -1
  1354. package/dist/versions/drafts/appendVersionToQueryKey.js +6 -12
  1355. package/dist/versions/drafts/appendVersionToQueryKey.js.map +1 -1
  1356. package/dist/versions/getLatestGlobalVersion.d.ts.map +1 -1
  1357. package/dist/versions/getLatestGlobalVersion.js +10 -2
  1358. package/dist/versions/getLatestGlobalVersion.js.map +1 -1
  1359. package/dist/versions/getRestoredStatusesToAuthorize.d.ts +9 -0
  1360. package/dist/versions/getRestoredStatusesToAuthorize.d.ts.map +1 -0
  1361. package/dist/versions/getRestoredStatusesToAuthorize.js +22 -0
  1362. package/dist/versions/getRestoredStatusesToAuthorize.js.map +1 -0
  1363. package/dist/versions/isInheritedReadVersionsAccess.d.ts +6 -0
  1364. package/dist/versions/isInheritedReadVersionsAccess.d.ts.map +1 -0
  1365. package/dist/versions/isInheritedReadVersionsAccess.js +30 -0
  1366. package/dist/versions/isInheritedReadVersionsAccess.js.map +1 -0
  1367. package/dist/versions/schedule/job.d.ts +2 -2
  1368. package/dist/versions/schedule/job.d.ts.map +1 -1
  1369. package/dist/versions/schedule/job.js +12 -8
  1370. package/dist/versions/schedule/job.js.map +1 -1
  1371. package/dist/versions/schedule/types.d.ts +5 -1
  1372. package/dist/versions/schedule/types.d.ts.map +1 -1
  1373. package/dist/versions/schedule/types.js.map +1 -1
  1374. package/package.json +28 -10
  1375. package/skills/payload/SKILL.md +544 -0
  1376. package/skills/payload/reference/ACCESS-CONTROL-ADVANCED.md +718 -0
  1377. package/skills/payload/reference/ACCESS-CONTROL.md +700 -0
  1378. package/skills/payload/reference/ADAPTERS.md +312 -0
  1379. package/skills/payload/reference/ADVANCED.md +393 -0
  1380. package/skills/payload/reference/COLLECTIONS.md +336 -0
  1381. package/skills/payload/reference/ENDPOINTS.md +650 -0
  1382. package/skills/payload/reference/FIELD-TYPE-GUARDS.md +553 -0
  1383. package/skills/payload/reference/FIELDS.md +748 -0
  1384. package/skills/payload/reference/HOOKS.md +186 -0
  1385. package/skills/payload/reference/PLUGIN-DEVELOPMENT.md +1445 -0
  1386. package/skills/payload/reference/QUERIES.md +282 -0
  1387. package/dist/auth/cookies.spec.js +0 -34
  1388. package/dist/auth/cookies.spec.js.map +0 -1
  1389. package/dist/auth/strategies/local/authenticate.spec.js +0 -83
  1390. package/dist/auth/strategies/local/authenticate.spec.js.map +0 -1
  1391. package/dist/bin/build.d.ts.map +0 -1
  1392. package/dist/bin/build.js.map +0 -1
  1393. package/dist/bin/build.spec.js +0 -594
  1394. package/dist/bin/build.spec.js.map +0 -1
  1395. package/dist/bin/frameworkConventions.d.ts.map +0 -1
  1396. package/dist/bin/frameworkConventions.js.map +0 -1
  1397. package/dist/bin/generateImportMap/generateImportMap.spec.js +0 -176
  1398. package/dist/bin/generateImportMap/generateImportMap.spec.js.map +0 -1
  1399. package/dist/bin/generateImportMap/index.d.ts.map +0 -1
  1400. package/dist/bin/generateImportMap/index.js.map +0 -1
  1401. package/dist/bin/generateImportMap/iterateCollections.d.ts.map +0 -1
  1402. package/dist/bin/generateImportMap/iterateCollections.js.map +0 -1
  1403. package/dist/bin/generateImportMap/iterateConfig.d.ts.map +0 -1
  1404. package/dist/bin/generateImportMap/iterateConfig.js.map +0 -1
  1405. package/dist/bin/generateImportMap/iterateFields.d.ts.map +0 -1
  1406. package/dist/bin/generateImportMap/iterateFields.js.map +0 -1
  1407. package/dist/bin/generateImportMap/iterateGlobals.d.ts.map +0 -1
  1408. package/dist/bin/generateImportMap/iterateGlobals.js.map +0 -1
  1409. package/dist/bin/generateImportMap/utilities/addPayloadComponentToImportMap.d.ts.map +0 -1
  1410. package/dist/bin/generateImportMap/utilities/addPayloadComponentToImportMap.js.map +0 -1
  1411. package/dist/bin/generateImportMap/utilities/getFromImportMap.d.ts.map +0 -1
  1412. package/dist/bin/generateImportMap/utilities/getFromImportMap.js.map +0 -1
  1413. package/dist/bin/generateImportMap/utilities/getImportMapToBaseDirPath.d.ts.map +0 -1
  1414. package/dist/bin/generateImportMap/utilities/getImportMapToBaseDirPath.js.map +0 -1
  1415. package/dist/bin/generateImportMap/utilities/parsePayloadComponent.d.ts.map +0 -1
  1416. package/dist/bin/generateImportMap/utilities/parsePayloadComponent.js.map +0 -1
  1417. package/dist/bin/generateImportMap/utilities/resolveImportMapFilePath.d.ts.map +0 -1
  1418. package/dist/bin/generateImportMap/utilities/resolveImportMapFilePath.js.map +0 -1
  1419. package/dist/bin/generateTypes.d.ts +0 -6
  1420. package/dist/bin/generateTypes.d.ts.map +0 -1
  1421. package/dist/bin/generateTypes.js.map +0 -1
  1422. package/dist/bin/index.d.ts +0 -2
  1423. package/dist/bin/index.d.ts.map +0 -1
  1424. package/dist/bin/index.js +0 -200
  1425. package/dist/bin/index.js.map +0 -1
  1426. package/dist/bin/info.d.ts +0 -2
  1427. package/dist/bin/info.d.ts.map +0 -1
  1428. package/dist/bin/info.js +0 -56
  1429. package/dist/bin/info.js.map +0 -1
  1430. package/dist/bin/loadEnv.d.ts.map +0 -1
  1431. package/dist/bin/loadEnv.js.map +0 -1
  1432. package/dist/bin/migrate.d.ts +0 -15
  1433. package/dist/bin/migrate.d.ts.map +0 -1
  1434. package/dist/bin/migrate.js +0 -102
  1435. package/dist/bin/migrate.js.map +0 -1
  1436. package/dist/collections/config/defaults.spec.js +0 -47
  1437. package/dist/collections/config/defaults.spec.js.map +0 -1
  1438. package/dist/collections/config/sanitize.spec.js +0 -120
  1439. package/dist/collections/config/sanitize.spec.js.map +0 -1
  1440. package/dist/collections/config/useAsTitle.spec.js +0 -187
  1441. package/dist/collections/config/useAsTitle.spec.js.map +0 -1
  1442. package/dist/database/defaultUpdateJobs.d.ts +0 -3
  1443. package/dist/database/defaultUpdateJobs.d.ts.map +0 -1
  1444. package/dist/database/defaultUpdateJobs.js +0 -41
  1445. package/dist/database/defaultUpdateJobs.js.map +0 -1
  1446. package/dist/database/migrations/findMigrationDir.spec.js +0 -47
  1447. package/dist/database/migrations/findMigrationDir.spec.js.map +0 -1
  1448. package/dist/fields/baseFields/slug/countVersions.d.ts +0 -13
  1449. package/dist/fields/baseFields/slug/countVersions.d.ts.map +0 -1
  1450. package/dist/fields/baseFields/slug/countVersions.js +0 -27
  1451. package/dist/fields/baseFields/slug/countVersions.js.map +0 -1
  1452. package/dist/fields/config/reservedFieldNames.spec.js +0 -149
  1453. package/dist/fields/config/reservedFieldNames.spec.js.map +0 -1
  1454. package/dist/fields/config/sanitize.spec.js +0 -745
  1455. package/dist/fields/config/sanitize.spec.js.map +0 -1
  1456. package/dist/fields/isFieldDisabled.spec.js +0 -134
  1457. package/dist/fields/isFieldDisabled.spec.js.map +0 -1
  1458. package/dist/fields/validations.spec.js +0 -990
  1459. package/dist/fields/validations.spec.js.map +0 -1
  1460. package/dist/globals/config/sanitize.spec.js +0 -43
  1461. package/dist/globals/config/sanitize.spec.js.map +0 -1
  1462. package/dist/hierarchy/utils/getLocalizedValue.spec.js +0 -250
  1463. package/dist/hierarchy/utils/getLocalizedValue.spec.js.map +0 -1
  1464. package/dist/locked-documents/config.spec.js +0 -298
  1465. package/dist/locked-documents/config.spec.js.map +0 -1
  1466. package/dist/uploads/checkFileAccess.spec.js +0 -109
  1467. package/dist/uploads/checkFileAccess.spec.js.map +0 -1
  1468. package/dist/uploads/endpoints/getFileFromURL.d.ts +0 -3
  1469. package/dist/uploads/endpoints/getFileFromURL.d.ts.map +0 -1
  1470. package/dist/uploads/endpoints/getFileFromURL.js.map +0 -1
  1471. package/dist/uploads/fetchAPI-multipart/isEligibleRequest.spec.js +0 -29
  1472. package/dist/uploads/fetchAPI-multipart/isEligibleRequest.spec.js.map +0 -1
  1473. package/dist/uploads/getExternalFile.d.ts +0 -10
  1474. package/dist/uploads/getExternalFile.d.ts.map +0 -1
  1475. package/dist/uploads/getExternalFile.js +0 -73
  1476. package/dist/uploads/getExternalFile.js.map +0 -1
  1477. package/dist/uploads/getSafeFilename.spec.js +0 -274
  1478. package/dist/uploads/getSafeFilename.spec.js.map +0 -1
  1479. package/dist/uploads/matchMimeType.spec.js +0 -66
  1480. package/dist/uploads/matchMimeType.spec.js.map +0 -1
  1481. package/dist/uploads/mimeTypeValidator.spec.js +0 -84
  1482. package/dist/uploads/mimeTypeValidator.spec.js.map +0 -1
  1483. package/dist/uploads/tempFile.d.ts +0 -7
  1484. package/dist/uploads/tempFile.d.ts.map +0 -1
  1485. package/dist/uploads/tempFile.js +0 -39
  1486. package/dist/uploads/tempFile.js.map +0 -1
  1487. package/dist/utilities/addDataAndFileToRequest.spec.js +0 -41
  1488. package/dist/utilities/addDataAndFileToRequest.spec.js.map +0 -1
  1489. package/dist/utilities/addSelectGenericsToGeneratedTypes.spec.js +0 -563
  1490. package/dist/utilities/addSelectGenericsToGeneratedTypes.spec.js.map +0 -1
  1491. package/dist/utilities/combineWhereConstraints.spec.js +0 -131
  1492. package/dist/utilities/combineWhereConstraints.spec.js.map +0 -1
  1493. package/dist/utilities/configToJSONSchema.spec.js +0 -1162
  1494. package/dist/utilities/configToJSONSchema.spec.js.map +0 -1
  1495. package/dist/utilities/createLocalReq.d.ts +0 -15
  1496. package/dist/utilities/createLocalReq.d.ts.map +0 -1
  1497. package/dist/utilities/createLocalReq.js +0 -110
  1498. package/dist/utilities/createLocalReq.js.map +0 -1
  1499. package/dist/utilities/createLocalReq.spec.js +0 -125
  1500. package/dist/utilities/createLocalReq.spec.js.map +0 -1
  1501. package/dist/utilities/filterDataToSelectedLocales.spec.js +0 -529
  1502. package/dist/utilities/filterDataToSelectedLocales.spec.js.map +0 -1
  1503. package/dist/utilities/flattenTopLevelFields.spec.js +0 -659
  1504. package/dist/utilities/flattenTopLevelFields.spec.js.map +0 -1
  1505. package/dist/utilities/formatAdminURL.spec.js +0 -168
  1506. package/dist/utilities/formatAdminURL.spec.js.map +0 -1
  1507. package/dist/utilities/formatErrors.spec.js +0 -101
  1508. package/dist/utilities/formatErrors.spec.js.map +0 -1
  1509. package/dist/utilities/formatLabels.spec.js +0 -38
  1510. package/dist/utilities/formatLabels.spec.js.map +0 -1
  1511. package/dist/utilities/getFieldByPath.spec.js +0 -157
  1512. package/dist/utilities/getFieldByPath.spec.js.map +0 -1
  1513. package/dist/utilities/getFieldPermissions.spec.js +0 -78
  1514. package/dist/utilities/getFieldPermissions.spec.js.map +0 -1
  1515. package/dist/utilities/getRequestOrigin.spec.js +0 -151
  1516. package/dist/utilities/getRequestOrigin.spec.js.map +0 -1
  1517. package/dist/utilities/getSafeRedirect.spec.js +0 -84
  1518. package/dist/utilities/getSafeRedirect.spec.js.map +0 -1
  1519. package/dist/utilities/isURLAllowed.spec.js +0 -78
  1520. package/dist/utilities/isURLAllowed.spec.js.map +0 -1
  1521. package/dist/utilities/isolateObjectProperty.spec.js +0 -120
  1522. package/dist/utilities/isolateObjectProperty.spec.js.map +0 -1
  1523. package/dist/utilities/mergeLocalizedData.spec.js +0 -1108
  1524. package/dist/utilities/mergeLocalizedData.spec.js.map +0 -1
  1525. package/dist/utilities/optionsAreEqual.spec.js +0 -319
  1526. package/dist/utilities/optionsAreEqual.spec.js.map +0 -1
  1527. package/dist/utilities/parseParams/index.spec.js +0 -384
  1528. package/dist/utilities/parseParams/index.spec.js.map +0 -1
  1529. package/dist/utilities/profiling.spec.js +0 -53
  1530. package/dist/utilities/profiling.spec.js.map +0 -1
  1531. package/dist/utilities/sanitizePermissions.spec.js +0 -1639
  1532. package/dist/utilities/sanitizePermissions.spec.js.map +0 -1
  1533. package/dist/utilities/sanitizeUserDataForEmail.spec.js +0 -134
  1534. package/dist/utilities/sanitizeUserDataForEmail.spec.js.map +0 -1
  1535. package/dist/utilities/telemetry/index.spec.js +0 -43
  1536. package/dist/utilities/telemetry/index.spec.js.map +0 -1
  1537. package/dist/utilities/traverseFields.spec.js +0 -53
  1538. package/dist/utilities/traverseFields.spec.js.map +0 -1
  1539. package/dist/utilities/validateTimezones.spec.js +0 -493
  1540. package/dist/utilities/validateTimezones.spec.js.map +0 -1
  1541. /package/dist/{bin → cli/commands/generateImportMap}/frameworkConventions.d.ts +0 -0
  1542. /package/dist/{bin → cli/commands/generateImportMap}/frameworkConventions.js +0 -0
  1543. /package/dist/{bin → cli/commands}/generateImportMap/iterateCollections.js +0 -0
  1544. /package/dist/{bin → cli/commands}/generateImportMap/iterateFields.js +0 -0
  1545. /package/dist/{bin → cli/commands}/generateImportMap/iterateGlobals.js +0 -0
  1546. /package/dist/{bin → cli/commands}/generateImportMap/utilities/addPayloadComponentToImportMap.js +0 -0
  1547. /package/dist/{bin → cli/commands}/generateImportMap/utilities/getFromImportMap.js +0 -0
  1548. /package/dist/{bin → cli/commands}/generateImportMap/utilities/getImportMapToBaseDirPath.d.ts +0 -0
  1549. /package/dist/{bin → cli/commands}/generateImportMap/utilities/getImportMapToBaseDirPath.js +0 -0
  1550. /package/dist/{bin → cli/commands}/generateImportMap/utilities/parsePayloadComponent.js +0 -0
  1551. /package/dist/{bin → cli/commands}/generateImportMap/utilities/resolveImportMapFilePath.d.ts +0 -0
  1552. /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,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;;OAGG;IACH,aAAa,CAAC,EAAE,gBAAgB,CAC9B,oBAAoB,CAAC,aAAa,EAAE,mBAAmB,CAAC,EACxD,oBAAoB,CAAC,mBAAmB,CAAC,CAC1C,CAAA;IACD;;OAEG;IACH,cAAc,EAAE,gBAAgB,CAAC,wBAAwB,EAAE,wBAAwB,CAAC,CAAA;CACrF,GAAG,mBAAmB,CAAC,KAAK,EAAE,YAAY,EAAE,oBAAoB,CAAC,CAAA;AAElE,MAAM,MAAM,uBAAuB,CACjC,KAAK,SAAS,MAAM,GAAG,MAAM,EAC7B,YAAY,GAAG,GAAG,EAClB,oBAAoB,GAAG,EAAE,IACvB,CAAC,EACH,MAAM,EACN,MAAM,EACN,iBAAiB,GAClB,EAAE;IACD,MAAM,EAAE,eAAe,CAAA;IACvB;;;;;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 { MarkOptional } from 'ts-essentials';
2
2
  import type { ArrayField, ArrayFieldClient } from '../../fields/config/types.js';
3
3
  import type { ArrayFieldValidation } from '../../fields/validations.js';
4
- import type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js';
5
- import type { ClientFieldBase, FieldClientComponent, FieldPaths, FieldServerComponent, ServerFieldBase } from '../forms/Field.js';
6
- import type { FieldDescriptionClientComponent, FieldDescriptionServerComponent, FieldDiffClientComponent, FieldDiffServerComponent, FieldLabelClientComponent, FieldLabelServerComponent } from '../types.js';
4
+ import type { FieldErrorClientProps, FieldErrorServerProps } from '../forms/Error.js';
5
+ import type { ClientFieldBase, FieldPaths, ServerFieldBase } from '../forms/Field.js';
6
+ import type { FieldDescriptionClientProps, FieldDescriptionServerProps, FieldDiffClientProps, FieldDiffServerProps, FieldLabelClientProps, FieldLabelServerProps } from '../types.js';
7
7
  type ArrayFieldClientWithoutType = MarkOptional<ArrayFieldClient, 'type'>;
8
8
  type ArrayFieldBaseClientProps = {
9
9
  readonly validate?: ArrayFieldValidation;
@@ -11,15 +11,13 @@ type ArrayFieldBaseClientProps = {
11
11
  type ArrayFieldBaseServerProps = Pick<FieldPaths, 'path'>;
12
12
  export type ArrayFieldClientProps = ArrayFieldBaseClientProps & ClientFieldBase<ArrayFieldClientWithoutType>;
13
13
  export type ArrayFieldServerProps = ArrayFieldBaseServerProps & ServerFieldBase<ArrayField, ArrayFieldClientWithoutType>;
14
- export type ArrayFieldServerComponent = FieldServerComponent<ArrayField, ArrayFieldClientWithoutType, ArrayFieldBaseServerProps>;
15
- export type ArrayFieldClientComponent = FieldClientComponent<ArrayFieldClientWithoutType, ArrayFieldBaseClientProps>;
16
- export type ArrayFieldLabelServerComponent = FieldLabelServerComponent<ArrayField, ArrayFieldClientWithoutType>;
17
- export type ArrayFieldLabelClientComponent = FieldLabelClientComponent<ArrayFieldClientWithoutType>;
18
- export type ArrayFieldDescriptionServerComponent = FieldDescriptionServerComponent<ArrayField, ArrayFieldClientWithoutType>;
19
- export type ArrayFieldDescriptionClientComponent = FieldDescriptionClientComponent<ArrayFieldClientWithoutType>;
20
- export type ArrayFieldErrorServerComponent = FieldErrorServerComponent<ArrayField, ArrayFieldClientWithoutType>;
21
- export type ArrayFieldErrorClientComponent = FieldErrorClientComponent<ArrayFieldClientWithoutType>;
22
- export type ArrayFieldDiffServerComponent = FieldDiffServerComponent<ArrayField, ArrayFieldClient>;
23
- export type ArrayFieldDiffClientComponent = FieldDiffClientComponent<ArrayFieldClient>;
14
+ export type ArrayFieldLabelServerProps = FieldLabelServerProps<ArrayField, ArrayFieldClientWithoutType>;
15
+ export type ArrayFieldLabelClientProps = FieldLabelClientProps<ArrayFieldClientWithoutType>;
16
+ export type ArrayFieldDescriptionServerProps = FieldDescriptionServerProps<ArrayField, ArrayFieldClientWithoutType>;
17
+ export type ArrayFieldDescriptionClientProps = FieldDescriptionClientProps<ArrayFieldClientWithoutType>;
18
+ export type ArrayFieldErrorServerProps = FieldErrorServerProps<ArrayField, ArrayFieldClientWithoutType>;
19
+ export type ArrayFieldErrorClientProps = FieldErrorClientProps<ArrayFieldClientWithoutType>;
20
+ export type ArrayFieldDiffServerProps = FieldDiffServerProps<ArrayField, ArrayFieldClient>;
21
+ export type ArrayFieldDiffClientProps = FieldDiffClientProps<ArrayFieldClient>;
24
22
  export {};
25
23
  //# sourceMappingURL=Array.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Array.d.ts","sourceRoot":"","sources":["../../../src/admin/fields/Array.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAEjD,OAAO,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAA;AAChF,OAA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yBAAyB,GAC3D,eAAe,CAAC,UAAU,EAAE,2BAA2B,CAAC,CAAA;AAC1D,MAAM,MAAM,0BAA0B,GAAG,qBAAqB,CAC5D,UAAU,EACV,2BAA2B,CAC5B,CAAA;AAED,MAAM,MAAM,0BAA0B,GAAG,qBAAqB,CAAC,2BAA2B,CAAC,CAAA;AAE3F,MAAM,MAAM,gCAAgC,GAAG,2BAA2B,CACxE,UAAU,EACV,2BAA2B,CAC5B,CAAA;AACD,MAAM,MAAM,gCAAgC,GAC1C,2BAA2B,CAAC,2BAA2B,CAAC,CAAA;AAE1D,MAAM,MAAM,0BAA0B,GAAG,qBAAqB,CAC5D,UAAU,EACV,2BAA2B,CAC5B,CAAA;AACD,MAAM,MAAM,0BAA0B,GAAG,qBAAqB,CAAC,2BAA2B,CAAC,CAAA;AAE3F,MAAM,MAAM,yBAAyB,GAAG,oBAAoB,CAAC,UAAU,EAAE,gBAAgB,CAAC,CAAA;AAC1F,MAAM,MAAM,yBAAyB,GAAG,oBAAoB,CAAC,gBAAgB,CAAC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/admin/fields/Array.ts"],"sourcesContent":["import type { MarkOptional } from 'ts-essentials'\n\nimport type { ArrayField, ArrayFieldClient } from '../../fields/config/types.js'\nimport type { ArrayFieldValidation } from '../../fields/validations.js'\nimport type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js'\nimport type {\n ClientFieldBase,\n FieldClientComponent,\n FieldPaths,\n FieldServerComponent,\n ServerFieldBase,\n} from '../forms/Field.js'\nimport type {\n FieldDescriptionClientComponent,\n FieldDescriptionServerComponent,\n FieldDiffClientComponent,\n FieldDiffServerComponent,\n FieldLabelClientComponent,\n FieldLabelServerComponent,\n} from '../types.js'\n\ntype ArrayFieldClientWithoutType = MarkOptional<ArrayFieldClient, 'type'>\n\ntype ArrayFieldBaseClientProps = {\n readonly validate?: ArrayFieldValidation\n} & FieldPaths\n\ntype ArrayFieldBaseServerProps = Pick<FieldPaths, 'path'>\n\nexport type ArrayFieldClientProps = ArrayFieldBaseClientProps &\n ClientFieldBase<ArrayFieldClientWithoutType>\n\nexport type ArrayFieldServerProps = ArrayFieldBaseServerProps &\n ServerFieldBase<ArrayField, ArrayFieldClientWithoutType>\n\nexport type ArrayFieldServerComponent = FieldServerComponent<\n ArrayField,\n ArrayFieldClientWithoutType,\n ArrayFieldBaseServerProps\n>\n\nexport type ArrayFieldClientComponent = FieldClientComponent<\n ArrayFieldClientWithoutType,\n ArrayFieldBaseClientProps\n>\n\nexport type ArrayFieldLabelServerComponent = FieldLabelServerComponent<\n ArrayField,\n ArrayFieldClientWithoutType\n>\n\nexport type ArrayFieldLabelClientComponent = FieldLabelClientComponent<ArrayFieldClientWithoutType>\n\nexport type ArrayFieldDescriptionServerComponent = FieldDescriptionServerComponent<\n ArrayField,\n ArrayFieldClientWithoutType\n>\nexport type ArrayFieldDescriptionClientComponent =\n FieldDescriptionClientComponent<ArrayFieldClientWithoutType>\n\nexport type ArrayFieldErrorServerComponent = FieldErrorServerComponent<\n ArrayField,\n ArrayFieldClientWithoutType\n>\nexport type ArrayFieldErrorClientComponent = FieldErrorClientComponent<ArrayFieldClientWithoutType>\n\nexport type ArrayFieldDiffServerComponent = FieldDiffServerComponent<ArrayField, ArrayFieldClient>\nexport type ArrayFieldDiffClientComponent = FieldDiffClientComponent<ArrayFieldClient>\n"],"names":[],"mappings":"AAmEA,WAAsF"}
1
+ {"version":3,"sources":["../../../src/admin/fields/Array.ts"],"sourcesContent":["import type { MarkOptional } from 'ts-essentials'\n\nimport type { ArrayField, ArrayFieldClient } from '../../fields/config/types.js'\nimport type { ArrayFieldValidation } from '../../fields/validations.js'\nimport type { FieldErrorClientProps, FieldErrorServerProps } from '../forms/Error.js'\nimport type { ClientFieldBase, FieldPaths, ServerFieldBase } from '../forms/Field.js'\nimport type {\n FieldDescriptionClientProps,\n FieldDescriptionServerProps,\n FieldDiffClientProps,\n FieldDiffServerProps,\n FieldLabelClientProps,\n FieldLabelServerProps,\n} from '../types.js'\n\ntype ArrayFieldClientWithoutType = MarkOptional<ArrayFieldClient, 'type'>\n\ntype ArrayFieldBaseClientProps = {\n readonly validate?: ArrayFieldValidation\n} & FieldPaths\n\ntype ArrayFieldBaseServerProps = Pick<FieldPaths, 'path'>\n\nexport type ArrayFieldClientProps = ArrayFieldBaseClientProps &\n ClientFieldBase<ArrayFieldClientWithoutType>\n\nexport type ArrayFieldServerProps = ArrayFieldBaseServerProps &\n ServerFieldBase<ArrayField, ArrayFieldClientWithoutType>\nexport type ArrayFieldLabelServerProps = FieldLabelServerProps<\n ArrayField,\n ArrayFieldClientWithoutType\n>\n\nexport type ArrayFieldLabelClientProps = FieldLabelClientProps<ArrayFieldClientWithoutType>\n\nexport type ArrayFieldDescriptionServerProps = FieldDescriptionServerProps<\n ArrayField,\n ArrayFieldClientWithoutType\n>\nexport type ArrayFieldDescriptionClientProps =\n FieldDescriptionClientProps<ArrayFieldClientWithoutType>\n\nexport type ArrayFieldErrorServerProps = FieldErrorServerProps<\n ArrayField,\n ArrayFieldClientWithoutType\n>\nexport type ArrayFieldErrorClientProps = FieldErrorClientProps<ArrayFieldClientWithoutType>\n\nexport type ArrayFieldDiffServerProps = FieldDiffServerProps<ArrayField, ArrayFieldClient>\nexport type ArrayFieldDiffClientProps = FieldDiffClientProps<ArrayFieldClient>\n"],"names":[],"mappings":"AAiDA,WAA8E"}
@@ -1,10 +1,9 @@
1
- import type React from 'react';
2
1
  import type { MarkOptional } from 'ts-essentials';
3
2
  import type { BlocksField, BlocksFieldClient } from '../../fields/config/types.js';
4
3
  import type { BlocksFieldValidation } from '../../fields/validations.js';
5
- import type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js';
6
- import type { ClientFieldBase, FieldClientComponent, FieldPaths, FieldServerComponent, ServerFieldBase } from '../forms/Field.js';
7
- import type { FieldDescriptionClientComponent, FieldDescriptionServerComponent, FieldDiffClientComponent, FieldDiffServerComponent, FieldLabelClientComponent, FieldLabelServerComponent } from '../types.js';
4
+ import type { FieldErrorClientProps, FieldErrorServerProps } from '../forms/Error.js';
5
+ import type { ClientFieldBase, FieldPaths, ServerFieldBase } from '../forms/Field.js';
6
+ import type { FieldDescriptionClientProps, FieldDescriptionServerProps, FieldDiffClientProps, FieldDiffServerProps, FieldLabelClientProps, FieldLabelServerProps } from '../types.js';
8
7
  type BlocksFieldClientWithoutType = MarkOptional<BlocksFieldClient, 'type'>;
9
8
  type BlocksFieldBaseClientProps = {
10
9
  readonly validate?: BlocksFieldValidation;
@@ -12,22 +11,20 @@ type BlocksFieldBaseClientProps = {
12
11
  type BlocksFieldBaseServerProps = Pick<FieldPaths, 'path'>;
13
12
  export type BlocksFieldClientProps = BlocksFieldBaseClientProps & ClientFieldBase<BlocksFieldClientWithoutType>;
14
13
  export type BlocksFieldServerProps = BlocksFieldBaseServerProps & ServerFieldBase<BlocksField, BlocksFieldClientWithoutType>;
15
- export type BlocksFieldServerComponent = FieldServerComponent<BlocksField, BlocksFieldClientWithoutType, BlocksFieldBaseServerProps>;
16
- export type BlocksFieldClientComponent = FieldClientComponent<BlocksFieldClientWithoutType, BlocksFieldBaseClientProps>;
17
- export type BlocksFieldLabelServerComponent = FieldLabelServerComponent<BlocksField, BlocksFieldClientWithoutType>;
18
- export type BlocksFieldLabelClientComponent = FieldLabelClientComponent<BlocksFieldClientWithoutType>;
14
+ export type BlocksFieldLabelServerProps = FieldLabelServerProps<BlocksField, BlocksFieldClientWithoutType>;
15
+ export type BlocksFieldLabelClientProps = FieldLabelClientProps<BlocksFieldClientWithoutType>;
19
16
  type BlockRowLabelBase = {
20
17
  blockType: string;
21
18
  rowLabel: string;
22
19
  rowNumber: number;
23
20
  };
24
- export type BlockRowLabelClientComponent = React.ComponentType<BlockRowLabelBase & ClientFieldBase<BlocksFieldClientWithoutType>>;
25
- export type BlockRowLabelServerComponent = React.ComponentType<BlockRowLabelBase & ServerFieldBase<BlocksField, BlocksFieldClientWithoutType>>;
26
- export type BlocksFieldDescriptionServerComponent = FieldDescriptionServerComponent<BlocksField, BlocksFieldClientWithoutType>;
27
- export type BlocksFieldDescriptionClientComponent = FieldDescriptionClientComponent<BlocksFieldClientWithoutType>;
28
- export type BlocksFieldErrorServerComponent = FieldErrorServerComponent<BlocksField, BlocksFieldClientWithoutType>;
29
- export type BlocksFieldErrorClientComponent = FieldErrorClientComponent<BlocksFieldClientWithoutType>;
30
- export type BlocksFieldDiffServerComponent = FieldDiffServerComponent<BlocksField, BlocksFieldClient>;
31
- export type BlocksFieldDiffClientComponent = FieldDiffClientComponent<BlocksFieldClient>;
21
+ export type BlockRowLabelClientProps = BlockRowLabelBase & ClientFieldBase<BlocksFieldClientWithoutType>;
22
+ export type BlockRowLabelServerProps = BlockRowLabelBase & ServerFieldBase<BlocksField, BlocksFieldClientWithoutType>;
23
+ export type BlocksFieldDescriptionServerProps = FieldDescriptionServerProps<BlocksField, BlocksFieldClientWithoutType>;
24
+ export type BlocksFieldDescriptionClientProps = FieldDescriptionClientProps<BlocksFieldClientWithoutType>;
25
+ export type BlocksFieldErrorServerProps = FieldErrorServerProps<BlocksField, BlocksFieldClientWithoutType>;
26
+ export type BlocksFieldErrorClientProps = FieldErrorClientProps<BlocksFieldClientWithoutType>;
27
+ export type BlocksFieldDiffServerProps = FieldDiffServerProps<BlocksField, BlocksFieldClient>;
28
+ export type BlocksFieldDiffClientProps = FieldDiffClientProps<BlocksFieldClient>;
32
29
  export {};
33
30
  //# sourceMappingURL=Blocks.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Blocks.d.ts","sourceRoot":"","sources":["../../../src/admin/fields/Blocks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAEjD,OAAO,KAAK,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AAClF,OAAO,KAAK,EAAE,qBAAqB,EAAE,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M,MAAM,0BAA0B,GAAG,oBAAoB,CAAC,iBAAiB,CAAC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/admin/fields/Blocks.ts"],"sourcesContent":["import type React from 'react'\nimport type { MarkOptional } from 'ts-essentials'\n\nimport type { BlocksField, BlocksFieldClient } from '../../fields/config/types.js'\nimport type { BlocksFieldValidation } from '../../fields/validations.js'\nimport type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js'\nimport type {\n ClientFieldBase,\n FieldClientComponent,\n FieldPaths,\n FieldServerComponent,\n ServerFieldBase,\n} from '../forms/Field.js'\nimport type {\n FieldDescriptionClientComponent,\n FieldDescriptionServerComponent,\n FieldDiffClientComponent,\n FieldDiffServerComponent,\n FieldLabelClientComponent,\n FieldLabelServerComponent,\n} from '../types.js'\n\ntype BlocksFieldClientWithoutType = MarkOptional<BlocksFieldClient, 'type'>\n\ntype BlocksFieldBaseClientProps = {\n readonly validate?: BlocksFieldValidation\n} & FieldPaths\n\ntype BlocksFieldBaseServerProps = Pick<FieldPaths, 'path'>\n\nexport type BlocksFieldClientProps = BlocksFieldBaseClientProps &\n ClientFieldBase<BlocksFieldClientWithoutType>\n\nexport type BlocksFieldServerProps = BlocksFieldBaseServerProps &\n ServerFieldBase<BlocksField, BlocksFieldClientWithoutType>\n\nexport type BlocksFieldServerComponent = FieldServerComponent<\n BlocksField,\n BlocksFieldClientWithoutType,\n BlocksFieldBaseServerProps\n>\n\nexport type BlocksFieldClientComponent = FieldClientComponent<\n BlocksFieldClientWithoutType,\n BlocksFieldBaseClientProps\n>\n\nexport type BlocksFieldLabelServerComponent = FieldLabelServerComponent<\n BlocksField,\n BlocksFieldClientWithoutType\n>\n\nexport type BlocksFieldLabelClientComponent =\n FieldLabelClientComponent<BlocksFieldClientWithoutType>\n\ntype BlockRowLabelBase = {\n blockType: string\n rowLabel: string\n rowNumber: number\n}\n\nexport type BlockRowLabelClientComponent = React.ComponentType<\n BlockRowLabelBase & ClientFieldBase<BlocksFieldClientWithoutType>\n>\n\nexport type BlockRowLabelServerComponent = React.ComponentType<\n BlockRowLabelBase & ServerFieldBase<BlocksField, BlocksFieldClientWithoutType>\n>\n\nexport type BlocksFieldDescriptionServerComponent = FieldDescriptionServerComponent<\n BlocksField,\n BlocksFieldClientWithoutType\n>\n\nexport type BlocksFieldDescriptionClientComponent =\n FieldDescriptionClientComponent<BlocksFieldClientWithoutType>\n\nexport type BlocksFieldErrorServerComponent = FieldErrorServerComponent<\n BlocksField,\n BlocksFieldClientWithoutType\n>\n\nexport type BlocksFieldErrorClientComponent =\n FieldErrorClientComponent<BlocksFieldClientWithoutType>\n\nexport type BlocksFieldDiffServerComponent = FieldDiffServerComponent<\n BlocksField,\n BlocksFieldClient\n>\n\nexport type BlocksFieldDiffClientComponent = FieldDiffClientComponent<BlocksFieldClient>\n"],"names":[],"mappings":"AA0FA,WAAwF"}
1
+ {"version":3,"sources":["../../../src/admin/fields/Blocks.ts"],"sourcesContent":["import type { MarkOptional } from 'ts-essentials'\n\nimport type { BlocksField, BlocksFieldClient } from '../../fields/config/types.js'\nimport type { BlocksFieldValidation } from '../../fields/validations.js'\nimport type { FieldErrorClientProps, FieldErrorServerProps } from '../forms/Error.js'\nimport type { ClientFieldBase, FieldPaths, ServerFieldBase } from '../forms/Field.js'\nimport type {\n FieldDescriptionClientProps,\n FieldDescriptionServerProps,\n FieldDiffClientProps,\n FieldDiffServerProps,\n FieldLabelClientProps,\n FieldLabelServerProps,\n} from '../types.js'\n\ntype BlocksFieldClientWithoutType = MarkOptional<BlocksFieldClient, 'type'>\n\ntype BlocksFieldBaseClientProps = {\n readonly validate?: BlocksFieldValidation\n} & FieldPaths\n\ntype BlocksFieldBaseServerProps = Pick<FieldPaths, 'path'>\n\nexport type BlocksFieldClientProps = BlocksFieldBaseClientProps &\n ClientFieldBase<BlocksFieldClientWithoutType>\n\nexport type BlocksFieldServerProps = BlocksFieldBaseServerProps &\n ServerFieldBase<BlocksField, BlocksFieldClientWithoutType>\nexport type BlocksFieldLabelServerProps = FieldLabelServerProps<\n BlocksField,\n BlocksFieldClientWithoutType\n>\n\nexport type BlocksFieldLabelClientProps = FieldLabelClientProps<BlocksFieldClientWithoutType>\n\ntype BlockRowLabelBase = {\n blockType: string\n rowLabel: string\n rowNumber: number\n}\n\nexport type BlockRowLabelClientProps = BlockRowLabelBase &\n ClientFieldBase<BlocksFieldClientWithoutType>\n\nexport type BlockRowLabelServerProps = BlockRowLabelBase &\n ServerFieldBase<BlocksField, BlocksFieldClientWithoutType>\n\nexport type BlocksFieldDescriptionServerProps = FieldDescriptionServerProps<\n BlocksField,\n BlocksFieldClientWithoutType\n>\n\nexport type BlocksFieldDescriptionClientProps =\n FieldDescriptionClientProps<BlocksFieldClientWithoutType>\n\nexport type BlocksFieldErrorServerProps = FieldErrorServerProps<\n BlocksField,\n BlocksFieldClientWithoutType\n>\n\nexport type BlocksFieldErrorClientProps = FieldErrorClientProps<BlocksFieldClientWithoutType>\n\nexport type BlocksFieldDiffServerProps = FieldDiffServerProps<BlocksField, BlocksFieldClient>\n\nexport type BlocksFieldDiffClientProps = FieldDiffClientProps<BlocksFieldClient>\n"],"names":[],"mappings":"AAgEA,WAAgF"}
@@ -1,9 +1,9 @@
1
1
  import type { MarkOptional } from 'ts-essentials';
2
2
  import type { CheckboxField, CheckboxFieldClient } from '../../fields/config/types.js';
3
3
  import type { CheckboxFieldValidation } from '../../fields/validations.js';
4
- import type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js';
5
- import type { ClientFieldBase, FieldClientComponent, FieldPaths, FieldServerComponent, ServerFieldBase } from '../forms/Field.js';
6
- import type { FieldDescriptionClientComponent, FieldDescriptionServerComponent, FieldDiffClientComponent, FieldDiffServerComponent, FieldLabelClientComponent, FieldLabelServerComponent } from '../types.js';
4
+ import type { FieldErrorClientProps, FieldErrorServerProps } from '../forms/Error.js';
5
+ import type { ClientFieldBase, FieldPaths, ServerFieldBase } from '../forms/Field.js';
6
+ import type { FieldDescriptionClientProps, FieldDescriptionServerProps, FieldDiffClientProps, FieldDiffServerProps, FieldLabelClientProps, FieldLabelServerProps } from '../types.js';
7
7
  type CheckboxFieldClientWithoutType = MarkOptional<CheckboxFieldClient, 'type'>;
8
8
  type CheckboxFieldBaseClientProps = {
9
9
  readonly checked?: boolean;
@@ -17,15 +17,13 @@ type CheckboxFieldBaseClientProps = {
17
17
  type CheckboxFieldBaseServerProps = Pick<FieldPaths, 'path'>;
18
18
  export type CheckboxFieldClientProps = CheckboxFieldBaseClientProps & ClientFieldBase<CheckboxFieldClientWithoutType>;
19
19
  export type CheckboxFieldServerProps = CheckboxFieldBaseServerProps & ServerFieldBase<CheckboxField, CheckboxFieldClientWithoutType>;
20
- export type CheckboxFieldServerComponent = FieldServerComponent<CheckboxField, CheckboxFieldClientWithoutType, CheckboxFieldBaseServerProps>;
21
- export type CheckboxFieldClientComponent = FieldClientComponent<CheckboxFieldClientWithoutType, CheckboxFieldBaseClientProps>;
22
- export type CheckboxFieldLabelServerComponent = FieldLabelServerComponent<CheckboxField, CheckboxFieldClientWithoutType>;
23
- export type CheckboxFieldLabelClientComponent = FieldLabelClientComponent<CheckboxFieldClientWithoutType>;
24
- export type CheckboxFieldDescriptionServerComponent = FieldDescriptionServerComponent<CheckboxField, CheckboxFieldClientWithoutType>;
25
- export type CheckboxFieldDescriptionClientComponent = FieldDescriptionClientComponent<CheckboxFieldClientWithoutType>;
26
- export type CheckboxFieldErrorServerComponent = FieldErrorServerComponent<CheckboxField, CheckboxFieldClientWithoutType>;
27
- export type CheckboxFieldErrorClientComponent = FieldErrorClientComponent<CheckboxFieldClientWithoutType>;
28
- export type CheckboxFieldDiffServerComponent = FieldDiffServerComponent<CheckboxField, CheckboxFieldClient>;
29
- export type CheckboxFieldDiffClientComponent = FieldDiffClientComponent<CheckboxFieldClient>;
20
+ export type CheckboxFieldLabelServerProps = FieldLabelServerProps<CheckboxField, CheckboxFieldClientWithoutType>;
21
+ export type CheckboxFieldLabelClientProps = FieldLabelClientProps<CheckboxFieldClientWithoutType>;
22
+ export type CheckboxFieldDescriptionServerProps = FieldDescriptionServerProps<CheckboxField, CheckboxFieldClientWithoutType>;
23
+ export type CheckboxFieldDescriptionClientProps = FieldDescriptionClientProps<CheckboxFieldClientWithoutType>;
24
+ export type CheckboxFieldErrorServerProps = FieldErrorServerProps<CheckboxField, CheckboxFieldClientWithoutType>;
25
+ export type CheckboxFieldErrorClientProps = FieldErrorClientProps<CheckboxFieldClientWithoutType>;
26
+ export type CheckboxFieldDiffServerProps = FieldDiffServerProps<CheckboxField, CheckboxFieldClient>;
27
+ export type CheckboxFieldDiffClientProps = FieldDiffClientProps<CheckboxFieldClient>;
30
28
  export {};
31
29
  //# sourceMappingURL=Checkbox.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../src/admin/fields/Checkbox.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAEjD,OAAO,KAAK,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAA;AACtF,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAA;AAC1E,OAAO,KAAK,EAAE,yBAAyB,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAA;AAC7F,OAAO,KAAK,EACV,eAAe,EACf,oBAAoB,EACpB,UAAU,EACV,oBAAoB,EACpB,eAAe,EAChB,MAAM,mBAAmB,CAAA;AAC1B,OAAO,KAAK,EACV,+BAA+B,EAC/B,+BAA+B,EAC/B,wBAAwB,EACxB,wBAAwB,EACxB,yBAAyB,EACzB,yBAAyB,EAC1B,MAAM,aAAa,CAAA;AAEpB,KAAK,8BAA8B,GAAG,YAAY,CAAC,mBAAmB,EAAE,MAAM,CAAC,CAAA;AAE/E,KAAK,4BAA4B,GAAG;IAClC,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAA;IAC1B,QAAQ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MAAM,wBAAwB,GAAG,4BAA4B,GACjE,eAAe,CAAC,8BAA8B,CAAC,CAAA;AAEjD,MAAM,MAAM,wBAAwB,GAAG,4BAA4B,GACjE,eAAe,CAAC,aAAa,EAAE,8BAA8B,CAAC,CAAA;AAChE,MAAM,MAAM,6BAA6B,GAAG,qBAAqB,CAC/D,aAAa,EACb,8BAA8B,CAC/B,CAAA;AAED,MAAM,MAAM,6BAA6B,GAAG,qBAAqB,CAAC,8BAA8B,CAAC,CAAA;AAEjG,MAAM,MAAM,mCAAmC,GAAG,2BAA2B,CAC3E,aAAa,EACb,8BAA8B,CAC/B,CAAA;AAED,MAAM,MAAM,mCAAmC,GAC7C,2BAA2B,CAAC,8BAA8B,CAAC,CAAA;AAE7D,MAAM,MAAM,6BAA6B,GAAG,qBAAqB,CAC/D,aAAa,EACb,8BAA8B,CAC/B,CAAA;AAED,MAAM,MAAM,6BAA6B,GAAG,qBAAqB,CAAC,8BAA8B,CAAC,CAAA;AAEjG,MAAM,MAAM,4BAA4B,GAAG,oBAAoB,CAAC,aAAa,EAAE,mBAAmB,CAAC,CAAA;AAEnG,MAAM,MAAM,4BAA4B,GAAG,oBAAoB,CAAC,mBAAmB,CAAC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/admin/fields/Checkbox.ts"],"sourcesContent":["import type { MarkOptional } from 'ts-essentials'\n\nimport type { CheckboxField, CheckboxFieldClient } from '../../fields/config/types.js'\nimport type { CheckboxFieldValidation } from '../../fields/validations.js'\nimport type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js'\nimport type {\n ClientFieldBase,\n FieldClientComponent,\n FieldPaths,\n FieldServerComponent,\n ServerFieldBase,\n} from '../forms/Field.js'\nimport type {\n FieldDescriptionClientComponent,\n FieldDescriptionServerComponent,\n FieldDiffClientComponent,\n FieldDiffServerComponent,\n FieldLabelClientComponent,\n FieldLabelServerComponent,\n} from '../types.js'\n\ntype CheckboxFieldClientWithoutType = MarkOptional<CheckboxFieldClient, 'type'>\n\ntype CheckboxFieldBaseClientProps = {\n readonly checked?: boolean\n readonly disableFormData?: boolean\n readonly id?: string\n readonly onChange?: (value: boolean) => void\n readonly partialChecked?: boolean\n readonly path: string\n readonly validate?: CheckboxFieldValidation\n}\n\ntype CheckboxFieldBaseServerProps = Pick<FieldPaths, 'path'>\n\nexport type CheckboxFieldClientProps = CheckboxFieldBaseClientProps &\n ClientFieldBase<CheckboxFieldClientWithoutType>\n\nexport type CheckboxFieldServerProps = CheckboxFieldBaseServerProps &\n ServerFieldBase<CheckboxField, CheckboxFieldClientWithoutType>\n\nexport type CheckboxFieldServerComponent = FieldServerComponent<\n CheckboxField,\n CheckboxFieldClientWithoutType,\n CheckboxFieldBaseServerProps\n>\n\nexport type CheckboxFieldClientComponent = FieldClientComponent<\n CheckboxFieldClientWithoutType,\n CheckboxFieldBaseClientProps\n>\n\nexport type CheckboxFieldLabelServerComponent = FieldLabelServerComponent<\n CheckboxField,\n CheckboxFieldClientWithoutType\n>\n\nexport type CheckboxFieldLabelClientComponent =\n FieldLabelClientComponent<CheckboxFieldClientWithoutType>\n\nexport type CheckboxFieldDescriptionServerComponent = FieldDescriptionServerComponent<\n CheckboxField,\n CheckboxFieldClientWithoutType\n>\n\nexport type CheckboxFieldDescriptionClientComponent =\n FieldDescriptionClientComponent<CheckboxFieldClientWithoutType>\n\nexport type CheckboxFieldErrorServerComponent = FieldErrorServerComponent<\n CheckboxField,\n CheckboxFieldClientWithoutType\n>\n\nexport type CheckboxFieldErrorClientComponent =\n FieldErrorClientComponent<CheckboxFieldClientWithoutType>\n\nexport type CheckboxFieldDiffServerComponent = FieldDiffServerComponent<\n CheckboxField,\n CheckboxFieldClient\n>\n\nexport type CheckboxFieldDiffClientComponent = FieldDiffClientComponent<CheckboxFieldClient>\n"],"names":[],"mappings":"AAiFA,WAA4F"}
1
+ {"version":3,"sources":["../../../src/admin/fields/Checkbox.ts"],"sourcesContent":["import type { MarkOptional } from 'ts-essentials'\n\nimport type { CheckboxField, CheckboxFieldClient } from '../../fields/config/types.js'\nimport type { CheckboxFieldValidation } from '../../fields/validations.js'\nimport type { FieldErrorClientProps, FieldErrorServerProps } from '../forms/Error.js'\nimport type { ClientFieldBase, FieldPaths, ServerFieldBase } from '../forms/Field.js'\nimport type {\n FieldDescriptionClientProps,\n FieldDescriptionServerProps,\n FieldDiffClientProps,\n FieldDiffServerProps,\n FieldLabelClientProps,\n FieldLabelServerProps,\n} from '../types.js'\n\ntype CheckboxFieldClientWithoutType = MarkOptional<CheckboxFieldClient, 'type'>\n\ntype CheckboxFieldBaseClientProps = {\n readonly checked?: boolean\n readonly disableFormData?: boolean\n readonly id?: string\n readonly onChange?: (value: boolean) => void\n readonly partialChecked?: boolean\n readonly path: string\n readonly validate?: CheckboxFieldValidation\n}\n\ntype CheckboxFieldBaseServerProps = Pick<FieldPaths, 'path'>\n\nexport type CheckboxFieldClientProps = CheckboxFieldBaseClientProps &\n ClientFieldBase<CheckboxFieldClientWithoutType>\n\nexport type CheckboxFieldServerProps = CheckboxFieldBaseServerProps &\n ServerFieldBase<CheckboxField, CheckboxFieldClientWithoutType>\nexport type CheckboxFieldLabelServerProps = FieldLabelServerProps<\n CheckboxField,\n CheckboxFieldClientWithoutType\n>\n\nexport type CheckboxFieldLabelClientProps = FieldLabelClientProps<CheckboxFieldClientWithoutType>\n\nexport type CheckboxFieldDescriptionServerProps = FieldDescriptionServerProps<\n CheckboxField,\n CheckboxFieldClientWithoutType\n>\n\nexport type CheckboxFieldDescriptionClientProps =\n FieldDescriptionClientProps<CheckboxFieldClientWithoutType>\n\nexport type CheckboxFieldErrorServerProps = FieldErrorServerProps<\n CheckboxField,\n CheckboxFieldClientWithoutType\n>\n\nexport type CheckboxFieldErrorClientProps = FieldErrorClientProps<CheckboxFieldClientWithoutType>\n\nexport type CheckboxFieldDiffServerProps = FieldDiffServerProps<CheckboxField, CheckboxFieldClient>\n\nexport type CheckboxFieldDiffClientProps = FieldDiffClientProps<CheckboxFieldClient>\n"],"names":[],"mappings":"AA0DA,WAAoF"}
@@ -2,9 +2,9 @@ import type { EditorProps } from '@monaco-editor/react';
2
2
  import type { MarkOptional } from 'ts-essentials';
3
3
  import type { CodeField, CodeFieldClient } from '../../fields/config/types.js';
4
4
  import type { CodeFieldValidation } from '../../fields/validations.js';
5
- import type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js';
6
- import type { ClientFieldBase, FieldClientComponent, FieldPaths, FieldServerComponent, ServerFieldBase } from '../forms/Field.js';
7
- import type { FieldDescriptionClientComponent, FieldDescriptionServerComponent, FieldDiffClientComponent, FieldDiffServerComponent, FieldLabelClientComponent, FieldLabelServerComponent } from '../types.js';
5
+ import type { FieldErrorClientProps, FieldErrorServerProps } from '../forms/Error.js';
6
+ import type { ClientFieldBase, FieldPaths, ServerFieldBase } from '../forms/Field.js';
7
+ import type { FieldDescriptionClientProps, FieldDescriptionServerProps, FieldDiffClientProps, FieldDiffServerProps, FieldLabelClientProps, FieldLabelServerProps } from '../types.js';
8
8
  type CodeFieldClientWithoutType = MarkOptional<CodeFieldClient, 'type'>;
9
9
  type CodeFieldBaseClientProps = {
10
10
  readonly autoComplete?: string;
@@ -15,15 +15,13 @@ type CodeFieldBaseClientProps = {
15
15
  type CodeFieldBaseServerProps = Pick<FieldPaths, 'path'>;
16
16
  export type CodeFieldClientProps = ClientFieldBase<CodeFieldClientWithoutType> & CodeFieldBaseClientProps;
17
17
  export type CodeFieldServerProps = CodeFieldBaseServerProps & ServerFieldBase<CodeField, CodeFieldClientWithoutType>;
18
- export type CodeFieldServerComponent = FieldServerComponent<CodeField, CodeFieldClientWithoutType, CodeFieldBaseServerProps>;
19
- export type CodeFieldClientComponent = FieldClientComponent<CodeFieldClientWithoutType, CodeFieldBaseClientProps>;
20
- export type CodeFieldLabelServerComponent = FieldLabelServerComponent<CodeField, CodeFieldClientWithoutType>;
21
- export type CodeFieldLabelClientComponent = FieldLabelClientComponent<CodeFieldClientWithoutType>;
22
- export type CodeFieldDescriptionServerComponent = FieldDescriptionServerComponent<CodeField, CodeFieldClientWithoutType>;
23
- export type CodeFieldDescriptionClientComponent = FieldDescriptionClientComponent<CodeFieldClientWithoutType>;
24
- export type CodeFieldErrorServerComponent = FieldErrorServerComponent<CodeField, CodeFieldClientWithoutType>;
25
- export type CodeFieldErrorClientComponent = FieldErrorClientComponent<CodeFieldClientWithoutType>;
26
- export type CodeFieldDiffServerComponent = FieldDiffServerComponent<CodeField, CodeFieldClient>;
27
- export type CodeFieldDiffClientComponent = FieldDiffClientComponent<CodeFieldClient>;
18
+ export type CodeFieldLabelServerProps = FieldLabelServerProps<CodeField, CodeFieldClientWithoutType>;
19
+ export type CodeFieldLabelClientProps = FieldLabelClientProps<CodeFieldClientWithoutType>;
20
+ export type CodeFieldDescriptionServerProps = FieldDescriptionServerProps<CodeField, CodeFieldClientWithoutType>;
21
+ export type CodeFieldDescriptionClientProps = FieldDescriptionClientProps<CodeFieldClientWithoutType>;
22
+ export type CodeFieldErrorServerProps = FieldErrorServerProps<CodeField, CodeFieldClientWithoutType>;
23
+ export type CodeFieldErrorClientProps = FieldErrorClientProps<CodeFieldClientWithoutType>;
24
+ export type CodeFieldDiffServerProps = FieldDiffServerProps<CodeField, CodeFieldClient>;
25
+ export type CodeFieldDiffClientProps = FieldDiffClientProps<CodeFieldClient>;
28
26
  export {};
29
27
  //# sourceMappingURL=Code.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Code.d.ts","sourceRoot":"","sources":["../../../src/admin/fields/Code.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AACvD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAEjD,OAAO,KAAK,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAA;AAC9E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAA;AACtE,OAAO,KAAK,EAAE,yBAAyB,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CAAA;IACrB,QAAQ,CAAC,QAAQ,CAAC,EAAE,mBAAmB,CAAA;CACxC,CAAA;AAED,KAAK,wBAAwB,GAAG,IAAI,CAAC,UAAU,EAAE,MAAM,CAAC,CAAA;AAExD,MAAM,MAAM,oBAAoB,GAAG,eAAe,CAAC,0BAA0B,CAAC,GAC5E,wBAAwB,CAAA;AAE1B,MAAM,MAAM,oBAAoB,GAAG,wBAAwB,GACzD,eAAe,CAAC,SAAS,EAAE,0BAA0B,CAAC,CAAA;AACxD,MAAM,MAAM,yBAAyB,GAAG,qBAAqB,CAAC,SAAS,EAAE,0BAA0B,CAAC,CAAA;AAEpG,MAAM,MAAM,yBAAyB,GAAG,qBAAqB,CAAC,0BAA0B,CAAC,CAAA;AAEzF,MAAM,MAAM,+BAA+B,GAAG,2BAA2B,CACvE,SAAS,EACT,0BAA0B,CAC3B,CAAA;AAED,MAAM,MAAM,+BAA+B,GACzC,2BAA2B,CAAC,0BAA0B,CAAC,CAAA;AAEzD,MAAM,MAAM,yBAAyB,GAAG,qBAAqB,CAAC,SAAS,EAAE,0BAA0B,CAAC,CAAA;AAEpG,MAAM,MAAM,yBAAyB,GAAG,qBAAqB,CAAC,0BAA0B,CAAC,CAAA;AAEzF,MAAM,MAAM,wBAAwB,GAAG,oBAAoB,CAAC,SAAS,EAAE,eAAe,CAAC,CAAA;AAEvF,MAAM,MAAM,wBAAwB,GAAG,oBAAoB,CAAC,eAAe,CAAC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/admin/fields/Code.ts"],"sourcesContent":["import type { EditorProps } from '@monaco-editor/react'\nimport type { MarkOptional } from 'ts-essentials'\n\nimport type { CodeField, CodeFieldClient } from '../../fields/config/types.js'\nimport type { CodeFieldValidation } from '../../fields/validations.js'\nimport type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js'\nimport type {\n ClientFieldBase,\n FieldClientComponent,\n FieldPaths,\n FieldServerComponent,\n ServerFieldBase,\n} from '../forms/Field.js'\nimport type {\n FieldDescriptionClientComponent,\n FieldDescriptionServerComponent,\n FieldDiffClientComponent,\n FieldDiffServerComponent,\n FieldLabelClientComponent,\n FieldLabelServerComponent,\n} from '../types.js'\n\ntype CodeFieldClientWithoutType = MarkOptional<CodeFieldClient, 'type'>\n\ntype CodeFieldBaseClientProps = {\n readonly autoComplete?: string\n readonly onMount?: EditorProps['onMount']\n readonly path: string\n readonly validate?: CodeFieldValidation\n}\n\ntype CodeFieldBaseServerProps = Pick<FieldPaths, 'path'>\n\nexport type CodeFieldClientProps = ClientFieldBase<CodeFieldClientWithoutType> &\n CodeFieldBaseClientProps\n\nexport type CodeFieldServerProps = CodeFieldBaseServerProps &\n ServerFieldBase<CodeField, CodeFieldClientWithoutType>\n\nexport type CodeFieldServerComponent = FieldServerComponent<\n CodeField,\n CodeFieldClientWithoutType,\n CodeFieldBaseServerProps\n>\n\nexport type CodeFieldClientComponent = FieldClientComponent<\n CodeFieldClientWithoutType,\n CodeFieldBaseClientProps\n>\n\nexport type CodeFieldLabelServerComponent = FieldLabelServerComponent<\n CodeField,\n CodeFieldClientWithoutType\n>\n\nexport type CodeFieldLabelClientComponent = FieldLabelClientComponent<CodeFieldClientWithoutType>\n\nexport type CodeFieldDescriptionServerComponent = FieldDescriptionServerComponent<\n CodeField,\n CodeFieldClientWithoutType\n>\n\nexport type CodeFieldDescriptionClientComponent =\n FieldDescriptionClientComponent<CodeFieldClientWithoutType>\n\nexport type CodeFieldErrorServerComponent = FieldErrorServerComponent<\n CodeField,\n CodeFieldClientWithoutType\n>\n\nexport type CodeFieldErrorClientComponent = FieldErrorClientComponent<CodeFieldClientWithoutType>\n\nexport type CodeFieldDiffServerComponent = FieldDiffServerComponent<CodeField, CodeFieldClient>\n\nexport type CodeFieldDiffClientComponent = FieldDiffClientComponent<CodeFieldClient>\n"],"names":[],"mappings":"AA0EA,WAAoF"}
1
+ {"version":3,"sources":["../../../src/admin/fields/Code.ts"],"sourcesContent":["import type { EditorProps } from '@monaco-editor/react'\nimport type { MarkOptional } from 'ts-essentials'\n\nimport type { CodeField, CodeFieldClient } from '../../fields/config/types.js'\nimport type { CodeFieldValidation } from '../../fields/validations.js'\nimport type { FieldErrorClientProps, FieldErrorServerProps } from '../forms/Error.js'\nimport type { ClientFieldBase, FieldPaths, ServerFieldBase } from '../forms/Field.js'\nimport type {\n FieldDescriptionClientProps,\n FieldDescriptionServerProps,\n FieldDiffClientProps,\n FieldDiffServerProps,\n FieldLabelClientProps,\n FieldLabelServerProps,\n} from '../types.js'\n\ntype CodeFieldClientWithoutType = MarkOptional<CodeFieldClient, 'type'>\n\ntype CodeFieldBaseClientProps = {\n readonly autoComplete?: string\n readonly onMount?: EditorProps['onMount']\n readonly path: string\n readonly validate?: CodeFieldValidation\n}\n\ntype CodeFieldBaseServerProps = Pick<FieldPaths, 'path'>\n\nexport type CodeFieldClientProps = ClientFieldBase<CodeFieldClientWithoutType> &\n CodeFieldBaseClientProps\n\nexport type CodeFieldServerProps = CodeFieldBaseServerProps &\n ServerFieldBase<CodeField, CodeFieldClientWithoutType>\nexport type CodeFieldLabelServerProps = FieldLabelServerProps<CodeField, CodeFieldClientWithoutType>\n\nexport type CodeFieldLabelClientProps = FieldLabelClientProps<CodeFieldClientWithoutType>\n\nexport type CodeFieldDescriptionServerProps = FieldDescriptionServerProps<\n CodeField,\n CodeFieldClientWithoutType\n>\n\nexport type CodeFieldDescriptionClientProps =\n FieldDescriptionClientProps<CodeFieldClientWithoutType>\n\nexport type CodeFieldErrorServerProps = FieldErrorServerProps<CodeField, CodeFieldClientWithoutType>\n\nexport type CodeFieldErrorClientProps = FieldErrorClientProps<CodeFieldClientWithoutType>\n\nexport type CodeFieldDiffServerProps = FieldDiffServerProps<CodeField, CodeFieldClient>\n\nexport type CodeFieldDiffClientProps = FieldDiffClientProps<CodeFieldClient>\n"],"names":[],"mappings":"AAkDA,WAA4E"}
@@ -1,21 +1,19 @@
1
1
  import type { MarkOptional } from 'ts-essentials';
2
2
  import type { CollapsibleField, CollapsibleFieldClient } from '../../fields/config/types.js';
3
- import type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js';
4
- import type { ClientFieldBase, FieldClientComponent, FieldPaths, FieldServerComponent, ServerFieldBase } from '../forms/Field.js';
5
- import type { FieldDescriptionClientComponent, FieldDescriptionServerComponent, FieldDiffClientComponent, FieldDiffServerComponent, FieldLabelClientComponent, FieldLabelServerComponent } from '../types.js';
3
+ import type { FieldErrorClientProps, FieldErrorServerProps } from '../forms/Error.js';
4
+ import type { ClientFieldBase, FieldPaths, ServerFieldBase } from '../forms/Field.js';
5
+ import type { FieldDescriptionClientProps, FieldDescriptionServerProps, FieldDiffClientProps, FieldDiffServerProps, FieldLabelClientProps, FieldLabelServerProps } from '../types.js';
6
6
  type CollapsibleFieldBaseClientProps = FieldPaths;
7
7
  type CollapsibleFieldClientWithoutType = MarkOptional<CollapsibleFieldClient, 'type'>;
8
8
  export type CollapsibleFieldClientProps = ClientFieldBase<CollapsibleFieldClientWithoutType> & CollapsibleFieldBaseClientProps;
9
9
  export type CollapsibleFieldServerProps = ServerFieldBase<CollapsibleField, CollapsibleFieldClientWithoutType>;
10
- export type CollapsibleFieldServerComponent = FieldServerComponent<CollapsibleField, CollapsibleFieldClientWithoutType>;
11
- export type CollapsibleFieldClientComponent = FieldClientComponent<CollapsibleFieldClientWithoutType, CollapsibleFieldBaseClientProps>;
12
- export type CollapsibleFieldLabelServerComponent = FieldLabelServerComponent<CollapsibleField, CollapsibleFieldClientWithoutType>;
13
- export type CollapsibleFieldLabelClientComponent = FieldLabelClientComponent<CollapsibleFieldClientWithoutType>;
14
- export type CollapsibleFieldDescriptionServerComponent = FieldDescriptionServerComponent<CollapsibleField, CollapsibleFieldClientWithoutType>;
15
- export type CollapsibleFieldDescriptionClientComponent = FieldDescriptionClientComponent<CollapsibleFieldClientWithoutType>;
16
- export type CollapsibleFieldErrorServerComponent = FieldErrorServerComponent<CollapsibleField, CollapsibleFieldClientWithoutType>;
17
- export type CollapsibleFieldErrorClientComponent = FieldErrorClientComponent<CollapsibleFieldClientWithoutType>;
18
- export type CollapsibleFieldDiffServerComponent = FieldDiffServerComponent<CollapsibleField, CollapsibleFieldClient>;
19
- export type CollapsibleFieldDiffClientComponent = FieldDiffClientComponent<CollapsibleFieldClient>;
10
+ export type CollapsibleFieldLabelServerProps = FieldLabelServerProps<CollapsibleField, CollapsibleFieldClientWithoutType>;
11
+ export type CollapsibleFieldLabelClientProps = FieldLabelClientProps<CollapsibleFieldClientWithoutType>;
12
+ export type CollapsibleFieldDescriptionServerProps = FieldDescriptionServerProps<CollapsibleField, CollapsibleFieldClientWithoutType>;
13
+ export type CollapsibleFieldDescriptionClientProps = FieldDescriptionClientProps<CollapsibleFieldClientWithoutType>;
14
+ export type CollapsibleFieldErrorServerProps = FieldErrorServerProps<CollapsibleField, CollapsibleFieldClientWithoutType>;
15
+ export type CollapsibleFieldErrorClientProps = FieldErrorClientProps<CollapsibleFieldClientWithoutType>;
16
+ export type CollapsibleFieldDiffServerProps = FieldDiffServerProps<CollapsibleField, CollapsibleFieldClient>;
17
+ export type CollapsibleFieldDiffClientProps = FieldDiffClientProps<CollapsibleFieldClient>;
20
18
  export {};
21
19
  //# sourceMappingURL=Collapsible.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Collapsible.d.ts","sourceRoot":"","sources":["../../../src/admin/fields/Collapsible.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAEjD,OAAO,KAAK,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAA;AAC5F,OAAO,KAAK,EAAE,yBAAyB,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAA;AAC7F,OAAO,KAAK,EACV,eAAe,EACf,oBAAoB,EACpB,UAAU,EACV,oBAAoB,EACpB,eAAe,EAChB,MAAM,mBAAmB,CAAA;AAC1B,OAAO,KAAK,EACV,+BAA+B,EAC/B,+BAA+B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CAAC,sBAAsB,CAAC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/admin/fields/Collapsible.ts"],"sourcesContent":["import type { MarkOptional } from 'ts-essentials'\n\nimport type { CollapsibleField, CollapsibleFieldClient } from '../../fields/config/types.js'\nimport type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js'\nimport type {\n ClientFieldBase,\n FieldClientComponent,\n FieldPaths,\n FieldServerComponent,\n ServerFieldBase,\n} from '../forms/Field.js'\nimport type {\n FieldDescriptionClientComponent,\n FieldDescriptionServerComponent,\n FieldDiffClientComponent,\n FieldDiffServerComponent,\n FieldLabelClientComponent,\n FieldLabelServerComponent,\n} from '../types.js'\n\ntype CollapsibleFieldBaseClientProps = FieldPaths\n\ntype CollapsibleFieldClientWithoutType = MarkOptional<CollapsibleFieldClient, 'type'>\n\nexport type CollapsibleFieldClientProps = ClientFieldBase<CollapsibleFieldClientWithoutType> &\n CollapsibleFieldBaseClientProps\n\nexport type CollapsibleFieldServerProps = ServerFieldBase<\n CollapsibleField,\n CollapsibleFieldClientWithoutType\n>\n\nexport type CollapsibleFieldServerComponent = FieldServerComponent<\n CollapsibleField,\n CollapsibleFieldClientWithoutType\n>\n\nexport type CollapsibleFieldClientComponent = FieldClientComponent<\n CollapsibleFieldClientWithoutType,\n CollapsibleFieldBaseClientProps\n>\n\nexport type CollapsibleFieldLabelServerComponent = FieldLabelServerComponent<\n CollapsibleField,\n CollapsibleFieldClientWithoutType\n>\n\nexport type CollapsibleFieldLabelClientComponent =\n FieldLabelClientComponent<CollapsibleFieldClientWithoutType>\n\nexport type CollapsibleFieldDescriptionServerComponent = FieldDescriptionServerComponent<\n CollapsibleField,\n CollapsibleFieldClientWithoutType\n>\n\nexport type CollapsibleFieldDescriptionClientComponent =\n FieldDescriptionClientComponent<CollapsibleFieldClientWithoutType>\n\nexport type CollapsibleFieldErrorServerComponent = FieldErrorServerComponent<\n CollapsibleField,\n CollapsibleFieldClientWithoutType\n>\n\nexport type CollapsibleFieldErrorClientComponent =\n FieldErrorClientComponent<CollapsibleFieldClientWithoutType>\n\nexport type CollapsibleFieldDiffServerComponent = FieldDiffServerComponent<\n CollapsibleField,\n CollapsibleFieldClient\n>\n\nexport type CollapsibleFieldDiffClientComponent = FieldDiffClientComponent<CollapsibleFieldClient>\n"],"names":[],"mappings":"AAuEA,WAAkG"}
1
+ {"version":3,"sources":["../../../src/admin/fields/Collapsible.ts"],"sourcesContent":["import type { MarkOptional } from 'ts-essentials'\n\nimport type { CollapsibleField, CollapsibleFieldClient } from '../../fields/config/types.js'\nimport type { FieldErrorClientProps, FieldErrorServerProps } from '../forms/Error.js'\nimport type { ClientFieldBase, FieldPaths, ServerFieldBase } from '../forms/Field.js'\nimport type {\n FieldDescriptionClientProps,\n FieldDescriptionServerProps,\n FieldDiffClientProps,\n FieldDiffServerProps,\n FieldLabelClientProps,\n FieldLabelServerProps,\n} from '../types.js'\n\ntype CollapsibleFieldBaseClientProps = FieldPaths\n\ntype CollapsibleFieldClientWithoutType = MarkOptional<CollapsibleFieldClient, 'type'>\n\nexport type CollapsibleFieldClientProps = ClientFieldBase<CollapsibleFieldClientWithoutType> &\n CollapsibleFieldBaseClientProps\n\nexport type CollapsibleFieldServerProps = ServerFieldBase<\n CollapsibleField,\n CollapsibleFieldClientWithoutType\n>\nexport type CollapsibleFieldLabelServerProps = FieldLabelServerProps<\n CollapsibleField,\n CollapsibleFieldClientWithoutType\n>\n\nexport type CollapsibleFieldLabelClientProps =\n FieldLabelClientProps<CollapsibleFieldClientWithoutType>\n\nexport type CollapsibleFieldDescriptionServerProps = FieldDescriptionServerProps<\n CollapsibleField,\n CollapsibleFieldClientWithoutType\n>\n\nexport type CollapsibleFieldDescriptionClientProps =\n FieldDescriptionClientProps<CollapsibleFieldClientWithoutType>\n\nexport type CollapsibleFieldErrorServerProps = FieldErrorServerProps<\n CollapsibleField,\n CollapsibleFieldClientWithoutType\n>\n\nexport type CollapsibleFieldErrorClientProps =\n FieldErrorClientProps<CollapsibleFieldClientWithoutType>\n\nexport type CollapsibleFieldDiffServerProps = FieldDiffServerProps<\n CollapsibleField,\n CollapsibleFieldClient\n>\n\nexport type CollapsibleFieldDiffClientProps = FieldDiffClientProps<CollapsibleFieldClient>\n"],"names":[],"mappings":"AAsDA,WAA0F"}