@keystrokehq/erpnext 0.1.0 → 0.1.1

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 (387) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/add-comment.cjs +11 -11
  4. package/dist/actions/add-comment.cjs.map +1 -1
  5. package/dist/actions/add-comment.d.cts +39 -3
  6. package/dist/actions/add-comment.d.cts.map +1 -1
  7. package/dist/actions/add-comment.d.mts +39 -3
  8. package/dist/actions/add-comment.d.mts.map +1 -1
  9. package/dist/actions/add-comment.mjs +11 -11
  10. package/dist/actions/add-comment.mjs.map +1 -1
  11. package/dist/actions/add-tag.cjs +1 -1
  12. package/dist/actions/add-tag.cjs.map +1 -1
  13. package/dist/actions/add-tag.d.cts +15 -3
  14. package/dist/actions/add-tag.d.cts.map +1 -1
  15. package/dist/actions/add-tag.d.mts +15 -3
  16. package/dist/actions/add-tag.d.mts.map +1 -1
  17. package/dist/actions/add-tag.mjs +1 -1
  18. package/dist/actions/add-tag.mjs.map +1 -1
  19. package/dist/actions/apply-workflow.cjs +4 -4
  20. package/dist/actions/apply-workflow.cjs.map +1 -1
  21. package/dist/actions/apply-workflow.d.cts +17 -3
  22. package/dist/actions/apply-workflow.d.cts.map +1 -1
  23. package/dist/actions/apply-workflow.d.mts +17 -3
  24. package/dist/actions/apply-workflow.d.mts.map +1 -1
  25. package/dist/actions/apply-workflow.mjs +4 -4
  26. package/dist/actions/apply-workflow.mjs.map +1 -1
  27. package/dist/actions/cancel-document.cjs +2 -2
  28. package/dist/actions/cancel-document.cjs.map +1 -1
  29. package/dist/actions/cancel-document.d.cts +15 -3
  30. package/dist/actions/cancel-document.d.cts.map +1 -1
  31. package/dist/actions/cancel-document.d.mts +15 -3
  32. package/dist/actions/cancel-document.d.mts.map +1 -1
  33. package/dist/actions/cancel-document.mjs +2 -2
  34. package/dist/actions/cancel-document.mjs.map +1 -1
  35. package/dist/actions/create-document.cjs +7 -7
  36. package/dist/actions/create-document.cjs.map +1 -1
  37. package/dist/actions/create-document.d.cts +30 -3
  38. package/dist/actions/create-document.d.cts.map +1 -1
  39. package/dist/actions/create-document.d.mts +30 -3
  40. package/dist/actions/create-document.d.mts.map +1 -1
  41. package/dist/actions/create-document.mjs +7 -7
  42. package/dist/actions/create-document.mjs.map +1 -1
  43. package/dist/actions/create-timesheet.cjs +7 -7
  44. package/dist/actions/create-timesheet.cjs.map +1 -1
  45. package/dist/actions/create-timesheet.d.cts +43 -3
  46. package/dist/actions/create-timesheet.d.cts.map +1 -1
  47. package/dist/actions/create-timesheet.d.mts +43 -3
  48. package/dist/actions/create-timesheet.d.mts.map +1 -1
  49. package/dist/actions/create-timesheet.mjs +7 -7
  50. package/dist/actions/create-timesheet.mjs.map +1 -1
  51. package/dist/actions/delete-document.cjs +1 -1
  52. package/dist/actions/delete-document.cjs.map +1 -1
  53. package/dist/actions/delete-document.d.cts +13 -3
  54. package/dist/actions/delete-document.d.cts.map +1 -1
  55. package/dist/actions/delete-document.d.mts +13 -3
  56. package/dist/actions/delete-document.d.mts.map +1 -1
  57. package/dist/actions/delete-document.mjs +1 -1
  58. package/dist/actions/delete-document.mjs.map +1 -1
  59. package/dist/actions/download-file.cjs +3 -3
  60. package/dist/actions/download-file.cjs.map +1 -1
  61. package/dist/actions/download-file.d.cts +19 -3
  62. package/dist/actions/download-file.d.cts.map +1 -1
  63. package/dist/actions/download-file.d.mts +19 -3
  64. package/dist/actions/download-file.d.mts.map +1 -1
  65. package/dist/actions/download-file.mjs +3 -3
  66. package/dist/actions/download-file.mjs.map +1 -1
  67. package/dist/actions/download-pdf.cjs +3 -3
  68. package/dist/actions/download-pdf.cjs.map +1 -1
  69. package/dist/actions/download-pdf.d.cts +25 -3
  70. package/dist/actions/download-pdf.d.cts.map +1 -1
  71. package/dist/actions/download-pdf.d.mts +25 -3
  72. package/dist/actions/download-pdf.d.mts.map +1 -1
  73. package/dist/actions/download-pdf.mjs +3 -3
  74. package/dist/actions/download-pdf.mjs.map +1 -1
  75. package/dist/actions/get-all-languages.cjs +2 -2
  76. package/dist/actions/get-all-languages.cjs.map +1 -1
  77. package/dist/actions/get-all-languages.d.cts +17 -3
  78. package/dist/actions/get-all-languages.d.cts.map +1 -1
  79. package/dist/actions/get-all-languages.d.mts +17 -3
  80. package/dist/actions/get-all-languages.d.mts.map +1 -1
  81. package/dist/actions/get-all-languages.mjs +2 -2
  82. package/dist/actions/get-all-languages.mjs.map +1 -1
  83. package/dist/actions/get-all-roles.cjs.map +1 -1
  84. package/dist/actions/get-all-roles.d.cts +7 -3
  85. package/dist/actions/get-all-roles.d.cts.map +1 -1
  86. package/dist/actions/get-all-roles.d.mts +7 -3
  87. package/dist/actions/get-all-roles.d.mts.map +1 -1
  88. package/dist/actions/get-all-roles.mjs.map +1 -1
  89. package/dist/actions/get-client.cjs +8 -8
  90. package/dist/actions/get-client.cjs.map +1 -1
  91. package/dist/actions/get-client.d.cts +34 -3
  92. package/dist/actions/get-client.d.cts.map +1 -1
  93. package/dist/actions/get-client.d.mts +34 -3
  94. package/dist/actions/get-client.d.mts.map +1 -1
  95. package/dist/actions/get-client.mjs +8 -8
  96. package/dist/actions/get-client.mjs.map +1 -1
  97. package/dist/actions/get-count.cjs +1 -1
  98. package/dist/actions/get-count.cjs.map +1 -1
  99. package/dist/actions/get-count.d.cts +13 -3
  100. package/dist/actions/get-count.d.cts.map +1 -1
  101. package/dist/actions/get-count.d.mts +13 -3
  102. package/dist/actions/get-count.d.mts.map +1 -1
  103. package/dist/actions/get-count.mjs +1 -1
  104. package/dist/actions/get-count.mjs.map +1 -1
  105. package/dist/actions/get-doc-with-meta.cjs +20 -20
  106. package/dist/actions/get-doc-with-meta.cjs.map +1 -1
  107. package/dist/actions/get-doc-with-meta.d.cts +53 -3
  108. package/dist/actions/get-doc-with-meta.d.cts.map +1 -1
  109. package/dist/actions/get-doc-with-meta.d.mts +53 -3
  110. package/dist/actions/get-doc-with-meta.d.mts.map +1 -1
  111. package/dist/actions/get-doc-with-meta.mjs +20 -20
  112. package/dist/actions/get-doc-with-meta.mjs.map +1 -1
  113. package/dist/actions/get-doctype-meta.cjs +3 -3
  114. package/dist/actions/get-doctype-meta.cjs.map +1 -1
  115. package/dist/actions/get-doctype-meta.d.cts +17 -3
  116. package/dist/actions/get-doctype-meta.d.cts.map +1 -1
  117. package/dist/actions/get-doctype-meta.d.mts +17 -3
  118. package/dist/actions/get-doctype-meta.d.mts.map +1 -1
  119. package/dist/actions/get-doctype-meta.mjs +3 -3
  120. package/dist/actions/get-doctype-meta.mjs.map +1 -1
  121. package/dist/actions/get-document.cjs +7 -7
  122. package/dist/actions/get-document.cjs.map +1 -1
  123. package/dist/actions/get-document.d.cts +34 -3
  124. package/dist/actions/get-document.d.cts.map +1 -1
  125. package/dist/actions/get-document.d.mts +34 -3
  126. package/dist/actions/get-document.d.mts.map +1 -1
  127. package/dist/actions/get-document.mjs +7 -7
  128. package/dist/actions/get-document.mjs.map +1 -1
  129. package/dist/actions/get-exchange-rate.cjs +1 -1
  130. package/dist/actions/get-exchange-rate.cjs.map +1 -1
  131. package/dist/actions/get-exchange-rate.d.cts +15 -3
  132. package/dist/actions/get-exchange-rate.d.cts.map +1 -1
  133. package/dist/actions/get-exchange-rate.d.mts +15 -3
  134. package/dist/actions/get-exchange-rate.d.mts.map +1 -1
  135. package/dist/actions/get-exchange-rate.mjs +1 -1
  136. package/dist/actions/get-exchange-rate.mjs.map +1 -1
  137. package/dist/actions/get-fiscal-year.cjs +3 -3
  138. package/dist/actions/get-fiscal-year.cjs.map +1 -1
  139. package/dist/actions/get-fiscal-year.d.cts +21 -3
  140. package/dist/actions/get-fiscal-year.d.cts.map +1 -1
  141. package/dist/actions/get-fiscal-year.d.mts +21 -3
  142. package/dist/actions/get-fiscal-year.d.mts.map +1 -1
  143. package/dist/actions/get-fiscal-year.mjs +3 -3
  144. package/dist/actions/get-fiscal-year.mjs.map +1 -1
  145. package/dist/actions/get-framework-version.cjs.map +1 -1
  146. package/dist/actions/get-framework-version.d.cts +7 -3
  147. package/dist/actions/get-framework-version.d.cts.map +1 -1
  148. package/dist/actions/get-framework-version.d.mts +7 -3
  149. package/dist/actions/get-framework-version.d.mts.map +1 -1
  150. package/dist/actions/get-framework-version.mjs.map +1 -1
  151. package/dist/actions/get-item-details.cjs +27 -27
  152. package/dist/actions/get-item-details.cjs.map +1 -1
  153. package/dist/actions/get-item-details.d.cts +90 -3
  154. package/dist/actions/get-item-details.d.cts.map +1 -1
  155. package/dist/actions/get-item-details.d.mts +90 -3
  156. package/dist/actions/get-item-details.d.mts.map +1 -1
  157. package/dist/actions/get-item-details.mjs +27 -27
  158. package/dist/actions/get-item-details.mjs.map +1 -1
  159. package/dist/actions/get-list.cjs.map +1 -1
  160. package/dist/actions/get-list.d.cts +21 -3
  161. package/dist/actions/get-list.d.cts.map +1 -1
  162. package/dist/actions/get-list.d.mts +21 -3
  163. package/dist/actions/get-list.d.mts.map +1 -1
  164. package/dist/actions/get-list.mjs.map +1 -1
  165. package/dist/actions/get-logged-user.cjs +1 -1
  166. package/dist/actions/get-logged-user.cjs.map +1 -1
  167. package/dist/actions/get-logged-user.d.cts +7 -3
  168. package/dist/actions/get-logged-user.d.cts.map +1 -1
  169. package/dist/actions/get-logged-user.d.mts +7 -3
  170. package/dist/actions/get-logged-user.d.mts.map +1 -1
  171. package/dist/actions/get-logged-user.mjs +1 -1
  172. package/dist/actions/get-logged-user.mjs.map +1 -1
  173. package/dist/actions/get-party-details.cjs +36 -36
  174. package/dist/actions/get-party-details.cjs.map +1 -1
  175. package/dist/actions/get-party-details.d.cts +90 -3
  176. package/dist/actions/get-party-details.d.cts.map +1 -1
  177. package/dist/actions/get-party-details.d.mts +90 -3
  178. package/dist/actions/get-party-details.d.mts.map +1 -1
  179. package/dist/actions/get-party-details.mjs +36 -36
  180. package/dist/actions/get-party-details.mjs.map +1 -1
  181. package/dist/actions/get-payment-entry.cjs +26 -26
  182. package/dist/actions/get-payment-entry.cjs.map +1 -1
  183. package/dist/actions/get-payment-entry.d.cts +71 -3
  184. package/dist/actions/get-payment-entry.d.cts.map +1 -1
  185. package/dist/actions/get-payment-entry.d.mts +71 -3
  186. package/dist/actions/get-payment-entry.d.mts.map +1 -1
  187. package/dist/actions/get-payment-entry.mjs +26 -26
  188. package/dist/actions/get-payment-entry.mjs.map +1 -1
  189. package/dist/actions/get-stock-balance.cjs +1 -1
  190. package/dist/actions/get-stock-balance.cjs.map +1 -1
  191. package/dist/actions/get-stock-balance.d.cts +15 -3
  192. package/dist/actions/get-stock-balance.d.cts.map +1 -1
  193. package/dist/actions/get-stock-balance.d.mts +15 -3
  194. package/dist/actions/get-stock-balance.d.mts.map +1 -1
  195. package/dist/actions/get-stock-balance.mjs +1 -1
  196. package/dist/actions/get-stock-balance.mjs.map +1 -1
  197. package/dist/actions/get-timezones.cjs.map +1 -1
  198. package/dist/actions/get-timezones.d.cts +11 -3
  199. package/dist/actions/get-timezones.d.cts.map +1 -1
  200. package/dist/actions/get-timezones.d.mts +11 -3
  201. package/dist/actions/get-timezones.d.mts.map +1 -1
  202. package/dist/actions/get-timezones.mjs.map +1 -1
  203. package/dist/actions/get-user-roles.cjs.map +1 -1
  204. package/dist/actions/get-user-roles.d.cts +11 -3
  205. package/dist/actions/get-user-roles.d.cts.map +1 -1
  206. package/dist/actions/get-user-roles.d.mts +11 -3
  207. package/dist/actions/get-user-roles.d.mts.map +1 -1
  208. package/dist/actions/get-user-roles.mjs.map +1 -1
  209. package/dist/actions/get-value.cjs.map +1 -1
  210. package/dist/actions/get-value.d.cts +17 -3
  211. package/dist/actions/get-value.d.cts.map +1 -1
  212. package/dist/actions/get-value.d.mts +17 -3
  213. package/dist/actions/get-value.d.mts.map +1 -1
  214. package/dist/actions/get-value.mjs.map +1 -1
  215. package/dist/actions/get-workflow-transitions.cjs +7 -7
  216. package/dist/actions/get-workflow-transitions.cjs.map +1 -1
  217. package/dist/actions/get-workflow-transitions.d.cts +27 -3
  218. package/dist/actions/get-workflow-transitions.d.cts.map +1 -1
  219. package/dist/actions/get-workflow-transitions.d.mts +27 -3
  220. package/dist/actions/get-workflow-transitions.d.mts.map +1 -1
  221. package/dist/actions/get-workflow-transitions.mjs +7 -7
  222. package/dist/actions/get-workflow-transitions.mjs.map +1 -1
  223. package/dist/actions/insert-document.cjs.map +1 -1
  224. package/dist/actions/insert-document.d.cts +11 -3
  225. package/dist/actions/insert-document.d.cts.map +1 -1
  226. package/dist/actions/insert-document.d.mts +11 -3
  227. package/dist/actions/insert-document.d.mts.map +1 -1
  228. package/dist/actions/insert-document.mjs.map +1 -1
  229. package/dist/actions/insert-many.cjs +4 -4
  230. package/dist/actions/insert-many.cjs.map +1 -1
  231. package/dist/actions/insert-many.d.cts +18 -3
  232. package/dist/actions/insert-many.d.cts.map +1 -1
  233. package/dist/actions/insert-many.d.mts +18 -3
  234. package/dist/actions/insert-many.d.mts.map +1 -1
  235. package/dist/actions/insert-many.mjs +4 -4
  236. package/dist/actions/insert-many.mjs.map +1 -1
  237. package/dist/actions/list-doctypes.cjs +1 -1
  238. package/dist/actions/list-doctypes.cjs.map +1 -1
  239. package/dist/actions/list-doctypes.d.cts +17 -3
  240. package/dist/actions/list-doctypes.d.cts.map +1 -1
  241. package/dist/actions/list-doctypes.d.mts +17 -3
  242. package/dist/actions/list-doctypes.d.mts.map +1 -1
  243. package/dist/actions/list-doctypes.mjs +1 -1
  244. package/dist/actions/list-doctypes.mjs.map +1 -1
  245. package/dist/actions/list-documents.cjs.map +1 -1
  246. package/dist/actions/list-documents.d.cts +19 -3
  247. package/dist/actions/list-documents.d.cts.map +1 -1
  248. package/dist/actions/list-documents.d.mts +19 -3
  249. package/dist/actions/list-documents.d.mts.map +1 -1
  250. package/dist/actions/list-documents.mjs.map +1 -1
  251. package/dist/actions/list-employees.cjs +1 -1
  252. package/dist/actions/list-employees.cjs.map +1 -1
  253. package/dist/actions/list-employees.d.cts +22 -3
  254. package/dist/actions/list-employees.d.cts.map +1 -1
  255. package/dist/actions/list-employees.d.mts +22 -3
  256. package/dist/actions/list-employees.d.mts.map +1 -1
  257. package/dist/actions/list-employees.mjs +1 -1
  258. package/dist/actions/list-employees.mjs.map +1 -1
  259. package/dist/actions/list-projects.cjs.map +1 -1
  260. package/dist/actions/list-projects.d.cts +17 -3
  261. package/dist/actions/list-projects.d.cts.map +1 -1
  262. package/dist/actions/list-projects.d.mts +17 -3
  263. package/dist/actions/list-projects.d.mts.map +1 -1
  264. package/dist/actions/list-projects.mjs.map +1 -1
  265. package/dist/actions/list-timesheets.cjs.map +1 -1
  266. package/dist/actions/list-timesheets.d.cts +17 -3
  267. package/dist/actions/list-timesheets.d.cts.map +1 -1
  268. package/dist/actions/list-timesheets.d.mts +17 -3
  269. package/dist/actions/list-timesheets.d.mts.map +1 -1
  270. package/dist/actions/list-timesheets.mjs.map +1 -1
  271. package/dist/actions/list-webhooks.cjs +5 -5
  272. package/dist/actions/list-webhooks.cjs.map +1 -1
  273. package/dist/actions/list-webhooks.d.cts +30 -3
  274. package/dist/actions/list-webhooks.d.cts.map +1 -1
  275. package/dist/actions/list-webhooks.d.mts +30 -3
  276. package/dist/actions/list-webhooks.d.mts.map +1 -1
  277. package/dist/actions/list-webhooks.mjs +5 -5
  278. package/dist/actions/list-webhooks.mjs.map +1 -1
  279. package/dist/actions/make-delivery-note.cjs +11 -11
  280. package/dist/actions/make-delivery-note.cjs.map +1 -1
  281. package/dist/actions/make-delivery-note.d.cts +36 -3
  282. package/dist/actions/make-delivery-note.d.cts.map +1 -1
  283. package/dist/actions/make-delivery-note.d.mts +36 -3
  284. package/dist/actions/make-delivery-note.d.mts.map +1 -1
  285. package/dist/actions/make-delivery-note.mjs +11 -11
  286. package/dist/actions/make-delivery-note.mjs.map +1 -1
  287. package/dist/actions/make-purchase-order.cjs +22 -22
  288. package/dist/actions/make-purchase-order.cjs.map +1 -1
  289. package/dist/actions/make-purchase-order.d.cts +61 -3
  290. package/dist/actions/make-purchase-order.d.cts.map +1 -1
  291. package/dist/actions/make-purchase-order.d.mts +61 -3
  292. package/dist/actions/make-purchase-order.d.mts.map +1 -1
  293. package/dist/actions/make-purchase-order.mjs +22 -22
  294. package/dist/actions/make-purchase-order.mjs.map +1 -1
  295. package/dist/actions/make-sales-invoice.cjs +13 -13
  296. package/dist/actions/make-sales-invoice.cjs.map +1 -1
  297. package/dist/actions/make-sales-invoice.d.cts +40 -3
  298. package/dist/actions/make-sales-invoice.d.cts.map +1 -1
  299. package/dist/actions/make-sales-invoice.d.mts +40 -3
  300. package/dist/actions/make-sales-invoice.d.mts.map +1 -1
  301. package/dist/actions/make-sales-invoice.mjs +13 -13
  302. package/dist/actions/make-sales-invoice.mjs.map +1 -1
  303. package/dist/actions/make-stock-entry.cjs +9 -9
  304. package/dist/actions/make-stock-entry.cjs.map +1 -1
  305. package/dist/actions/make-stock-entry.d.cts +50 -3
  306. package/dist/actions/make-stock-entry.d.cts.map +1 -1
  307. package/dist/actions/make-stock-entry.d.mts +50 -3
  308. package/dist/actions/make-stock-entry.d.mts.map +1 -1
  309. package/dist/actions/make-stock-entry.mjs +9 -9
  310. package/dist/actions/make-stock-entry.mjs.map +1 -1
  311. package/dist/actions/ping.cjs +1 -1
  312. package/dist/actions/ping.cjs.map +1 -1
  313. package/dist/actions/ping.d.cts +7 -3
  314. package/dist/actions/ping.d.cts.map +1 -1
  315. package/dist/actions/ping.d.mts +7 -3
  316. package/dist/actions/ping.d.mts.map +1 -1
  317. package/dist/actions/ping.mjs +1 -1
  318. package/dist/actions/ping.mjs.map +1 -1
  319. package/dist/actions/rename-doc.cjs.map +1 -1
  320. package/dist/actions/rename-doc.d.cts +17 -3
  321. package/dist/actions/rename-doc.d.cts.map +1 -1
  322. package/dist/actions/rename-doc.d.mts +17 -3
  323. package/dist/actions/rename-doc.d.mts.map +1 -1
  324. package/dist/actions/rename-doc.mjs.map +1 -1
  325. package/dist/actions/save-docs.cjs +5 -5
  326. package/dist/actions/save-docs.cjs.map +1 -1
  327. package/dist/actions/save-docs.d.cts +26 -3
  328. package/dist/actions/save-docs.d.cts.map +1 -1
  329. package/dist/actions/save-docs.d.mts +26 -3
  330. package/dist/actions/save-docs.d.mts.map +1 -1
  331. package/dist/actions/save-docs.mjs +5 -5
  332. package/dist/actions/save-docs.mjs.map +1 -1
  333. package/dist/actions/save-document.cjs +2 -2
  334. package/dist/actions/save-document.cjs.map +1 -1
  335. package/dist/actions/save-document.d.cts +37 -3
  336. package/dist/actions/save-document.d.cts.map +1 -1
  337. package/dist/actions/save-document.d.mts +37 -3
  338. package/dist/actions/save-document.d.mts.map +1 -1
  339. package/dist/actions/save-document.mjs +2 -2
  340. package/dist/actions/save-document.mjs.map +1 -1
  341. package/dist/actions/search-global.cjs +7 -7
  342. package/dist/actions/search-global.cjs.map +1 -1
  343. package/dist/actions/search-global.d.cts +31 -3
  344. package/dist/actions/search-global.d.cts.map +1 -1
  345. package/dist/actions/search-global.d.mts +31 -3
  346. package/dist/actions/search-global.d.mts.map +1 -1
  347. package/dist/actions/search-global.mjs +7 -7
  348. package/dist/actions/search-global.mjs.map +1 -1
  349. package/dist/actions/search-link.cjs +3 -3
  350. package/dist/actions/search-link.cjs.map +1 -1
  351. package/dist/actions/search-link.d.cts +35 -3
  352. package/dist/actions/search-link.d.cts.map +1 -1
  353. package/dist/actions/search-link.d.mts +35 -3
  354. package/dist/actions/search-link.d.mts.map +1 -1
  355. package/dist/actions/search-link.mjs +3 -3
  356. package/dist/actions/search-link.mjs.map +1 -1
  357. package/dist/actions/set-value.cjs +8 -8
  358. package/dist/actions/set-value.cjs.map +1 -1
  359. package/dist/actions/set-value.d.cts +49 -3
  360. package/dist/actions/set-value.d.cts.map +1 -1
  361. package/dist/actions/set-value.d.mts +49 -3
  362. package/dist/actions/set-value.d.mts.map +1 -1
  363. package/dist/actions/set-value.mjs +8 -8
  364. package/dist/actions/set-value.mjs.map +1 -1
  365. package/dist/actions/submit-document.cjs +8 -8
  366. package/dist/actions/submit-document.cjs.map +1 -1
  367. package/dist/actions/submit-document.d.cts +29 -3
  368. package/dist/actions/submit-document.d.cts.map +1 -1
  369. package/dist/actions/submit-document.d.mts +29 -3
  370. package/dist/actions/submit-document.d.mts.map +1 -1
  371. package/dist/actions/submit-document.mjs +8 -8
  372. package/dist/actions/submit-document.mjs.map +1 -1
  373. package/dist/actions/update-document.cjs +8 -8
  374. package/dist/actions/update-document.cjs.map +1 -1
  375. package/dist/actions/update-document.d.cts +31 -3
  376. package/dist/actions/update-document.d.cts.map +1 -1
  377. package/dist/actions/update-document.d.mts +31 -3
  378. package/dist/actions/update-document.d.mts.map +1 -1
  379. package/dist/actions/update-document.mjs +8 -8
  380. package/dist/actions/update-document.mjs.map +1 -1
  381. package/dist/catalog.cjs +18 -1
  382. package/dist/catalog.cjs.map +1 -1
  383. package/dist/catalog.d.cts +17 -0
  384. package/dist/catalog.d.mts +17 -0
  385. package/dist/catalog.mjs +18 -1
  386. package/dist/catalog.mjs.map +1 -1
  387. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"get-client.mjs","names":[],"sources":["../../src/actions/get-client.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetClientInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"The unique name/identifier of the specific document to retrieve. If provided, this takes precedence over filters.\").optional(),\n doctype: z.string().describe(\"The DocType to query (e.g., 'User', 'Customer', 'Item'). DocTypes are the document types defined in your Frappe/ERPNext instance.\"),\n filters: z.object({}).describe(\"Filter conditions to find the document when name is not provided. Should be a dictionary of field-value pairs. Example: {'email': 'user@example.com'}\").optional(),\n}).describe(\"Request model for getting a single document by DocType and name or filters.\");\nconst ErpnextGetClient_DocumentDataSchema: z.ZodTypeAny = z.object({\n idx: z.number().int().describe(\"Index number\").nullable().optional(),\n name: z.string().describe(\"Unique identifier of the document\"),\n owner: z.string().describe(\"User who created the document\").nullable().optional(),\n doctype: z.string().describe(\"Type of the document\").nullable().optional(),\n creation: z.string().describe(\"Document creation timestamp\").nullable().optional(),\n modified: z.string().describe(\"Last modification timestamp\").nullable().optional(),\n docstatus: z.number().int().describe(\"Document status (0=Draft, 1=Submitted, 2=Cancelled)\").nullable().optional(),\n modified_by: z.string().describe(\"User who last modified the document\").nullable().optional(),\n}).passthrough().describe(\"Document object with metadata and doctype-specific fields.\");\nexport const ErpnextGetClientOutput: z.ZodTypeAny = z.object({\n message: ErpnextGetClient_DocumentDataSchema.nullable(),\n}).describe(\"Response model containing the retrieved document data.\");\n\nexport const erpnextGetClient = action(\"ERPNEXT_GET_CLIENT\", {\n slug: \"erpnext-get-client\",\n name: \"Get Document\",\n description: \"Tool to get a single document by DocType and name or filters from Frappe/ERPNext. Use when you need to retrieve a specific document's complete details.\",\n input: ErpnextGetClientInput,\n output: ErpnextGetClientOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAsC,EAAE,OAAO;CAC1D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mHAAmH,CAAC,CAAC,SAAS;CACxJ,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,mIAAmI;CAChK,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,uJAAuJ,CAAC,CAAC,SAAS;AACnM,CAAC,CAAC,CAAC,SAAS,6EAA6E;AACzF,MAAM,sCAAoD,EAAE,OAAO;CACjE,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;CAC7D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4DAA4D;AAKtF,MAAa,mBAAmB,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATkD,EAAE,OAAO,EAC3D,SAAS,oCAAoC,SAAS,EACxD,CAAC,CAAC,CAAC,SAAS,wDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"get-client.mjs","names":[],"sources":["../../src/actions/get-client.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetClientInput = z.object({\n name: z.string().describe(\"The unique name/identifier of the specific document to retrieve. If provided, this takes precedence over filters.\").optional(),\n doctype: z.string().describe(\"The DocType to query (e.g., 'User', 'Customer', 'Item'). DocTypes are the document types defined in your Frappe/ERPNext instance.\"),\n filters: z.object({}).describe(\"Filter conditions to find the document when name is not provided. Should be a dictionary of field-value pairs. Example: {'email': 'user@example.com'}\").optional(),\n}).describe(\"Request model for getting a single document by DocType and name or filters.\");\nconst ErpnextGetClient_DocumentDataSchema = z.object({\n idx: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Index number\").optional()),\n name: z.string().describe(\"Unique identifier of the document\").nullable(),\n owner: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"User who created the document\").optional()),\n doctype: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Type of the document\").optional()),\n creation: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Document creation timestamp\").optional()),\n modified: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Last modification timestamp\").optional()),\n docstatus: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Document status (0=Draft, 1=Submitted, 2=Cancelled)\").optional()),\n modified_by: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"User who last modified the document\").optional()),\n}).passthrough().describe(\"Document object with metadata and doctype-specific fields.\");\nexport const ErpnextGetClientOutput = z.object({\n message: ErpnextGetClient_DocumentDataSchema.nullable(),\n}).describe(\"Response model containing the retrieved document data.\");\n\nexport const erpnextGetClient = action(\"ERPNEXT_GET_CLIENT\", {\n slug: \"erpnext-get-client\",\n name: \"Get Document\",\n description: \"Tool to get a single document by DocType and name or filters from Frappe/ERPNext. Use when you need to retrieve a specific document's complete details.\",\n input: ErpnextGetClientInput,\n output: ErpnextGetClientOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAwB,EAAE,OAAO;CAC5C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mHAAmH,CAAC,CAAC,SAAS;CACxJ,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,mIAAmI;CAChK,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,uJAAuJ,CAAC,CAAC,SAAS;AACnM,CAAC,CAAC,CAAC,SAAS,6EAA6E;AACzF,MAAM,sCAAsC,EAAE,OAAO;CACnD,KAAK,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS,CAAC;CACvH,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACxE,OAAO,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC;CACpI,SAAS,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC;CAC7H,UAAU,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC;CACrI,UAAU,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC;CACrI,WAAW,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC;CACpK,aAAa,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC;AAClJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4DAA4D;AAKtF,MAAa,mBAAmB,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAToC,EAAE,OAAO,EAC7C,SAAS,oCAAoC,SAAS,EACxD,CAAC,CAAC,CAAC,SAAS,wDAOF;AACV,CAAC"}
@@ -5,7 +5,7 @@ const ErpnextGetCountInput = zod.z.object({
5
5
  doctype: zod.z.string().describe("The DocType name to count documents for (e.g., 'User', 'Task', 'Project'). Must be a valid DocType in the ERPNext/Frappe system."),
6
6
  filters: zod.z.object({}).describe("Optional filter conditions to apply when counting documents. Format: {field_name: value} or {field_name: ['operator', value]}. Example: {'status': 'Open'} or {'creation': ['>', '2024-01-01']}.").optional()
7
7
  }).describe("Request model for getting the count of documents matching filters.");
8
- const ErpnextGetCountOutput = zod.z.object({ message: zod.z.number().int().describe("The count of documents matching the specified DocType and filters.") }).describe("Response model for document count query.");
8
+ const ErpnextGetCountOutput = zod.z.object({ message: zod.z.number().int().describe("The count of documents matching the specified DocType and filters.").nullable() }).describe("Response model for document count query.");
9
9
  const erpnextGetCount = require_action.action("ERPNEXT_GET_COUNT", {
10
10
  slug: "erpnext-get-count",
11
11
  name: "Get Document Count",
@@ -1 +1 @@
1
- {"version":3,"file":"get-count.cjs","names":["z","action"],"sources":["../../src/actions/get-count.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetCountInput: z.ZodTypeAny = z.object({\n doctype: z.string().describe(\"The DocType name to count documents for (e.g., 'User', 'Task', 'Project'). Must be a valid DocType in the ERPNext/Frappe system.\"),\n filters: z.object({}).describe(\"Optional filter conditions to apply when counting documents. Format: {field_name: value} or {field_name: ['operator', value]}. Example: {'status': 'Open'} or {'creation': ['>', '2024-01-01']}.\").optional(),\n}).describe(\"Request model for getting the count of documents matching filters.\");\nexport const ErpnextGetCountOutput: z.ZodTypeAny = z.object({\n message: z.number().int().describe(\"The count of documents matching the specified DocType and filters.\"),\n}).describe(\"Response model for document count query.\");\n\nexport const erpnextGetCount = action(\"ERPNEXT_GET_COUNT\", {\n slug: \"erpnext-get-count\",\n name: \"Get Document Count\",\n description: \"Tool to get the count of documents matching specified filters in ERPNext/Frappe. Use when you need to know how many records exist for a specific DocType, optionally filtered by conditions.\",\n input: ErpnextGetCountInput,\n output: ErpnextGetCountOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uBAAqCA,IAAAA,EAAE,OAAO;CACzD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kIAAkI;CAC/J,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,kMAAkM,CAAC,CAAC,SAAS;AAC9O,CAAC,CAAC,CAAC,SAAS,oEAAoE;AAChF,MAAa,wBAAsCA,IAAAA,EAAE,OAAO,EAC1D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oEAAoE,EACzG,CAAC,CAAC,CAAC,SAAS,0CAA0C;AAEtD,MAAa,kBAAkBC,eAAAA,OAAO,qBAAqB;CACzD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-count.cjs","names":["z","action"],"sources":["../../src/actions/get-count.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetCountInput = z.object({\n doctype: z.string().describe(\"The DocType name to count documents for (e.g., 'User', 'Task', 'Project'). Must be a valid DocType in the ERPNext/Frappe system.\"),\n filters: z.object({}).describe(\"Optional filter conditions to apply when counting documents. Format: {field_name: value} or {field_name: ['operator', value]}. Example: {'status': 'Open'} or {'creation': ['>', '2024-01-01']}.\").optional(),\n}).describe(\"Request model for getting the count of documents matching filters.\");\nexport const ErpnextGetCountOutput = z.object({\n message: z.number().int().describe(\"The count of documents matching the specified DocType and filters.\").nullable(),\n}).describe(\"Response model for document count query.\");\n\nexport const erpnextGetCount = action(\"ERPNEXT_GET_COUNT\", {\n slug: \"erpnext-get-count\",\n name: \"Get Document Count\",\n description: \"Tool to get the count of documents matching specified filters in ERPNext/Frappe. Use when you need to know how many records exist for a specific DocType, optionally filtered by conditions.\",\n input: ErpnextGetCountInput,\n output: ErpnextGetCountOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uBAAuBA,IAAAA,EAAE,OAAO;CAC3C,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kIAAkI;CAC/J,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,kMAAkM,CAAC,CAAC,SAAS;AAC9O,CAAC,CAAC,CAAC,SAAS,oEAAoE;AAChF,MAAa,wBAAwBA,IAAAA,EAAE,OAAO,EAC5C,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS,EACpH,CAAC,CAAC,CAAC,SAAS,0CAA0C;AAEtD,MAAa,kBAAkBC,eAAAA,OAAO,qBAAqB;CACzD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,19 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-count.d.ts
4
- declare const ErpnextGetCountInput: z.ZodTypeAny;
5
- declare const ErpnextGetCountOutput: z.ZodTypeAny;
6
- declare const erpnextGetCount: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const ErpnextGetCountInput: z.ZodObject<{
5
+ doctype: z.ZodString;
6
+ filters: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
7
+ }, z.core.$strip>;
8
+ declare const ErpnextGetCountOutput: z.ZodObject<{
9
+ message: z.ZodNullable<z.ZodNumber>;
10
+ }, z.core.$strip>;
11
+ declare const erpnextGetCount: import("@keystrokehq/action").WorkflowActionDefinition<{
12
+ doctype: string;
13
+ filters?: Record<string, never> | undefined;
14
+ }, {
15
+ message: number | null;
16
+ }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
17
  //#endregion
8
18
  export { erpnextGetCount };
9
19
  //# sourceMappingURL=get-count.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-count.d.cts","names":[],"sources":["../../src/actions/get-count.ts"],"mappings":";;;cAIa,oBAAA,EAAsB,CAAA,CAAE,UAG4C;AAAA,cACpE,qBAAA,EAAuB,CAAA,CAAE,UAEiB;AAAA,cAE1C,eAAA,gCAAe,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-count.d.cts","names":[],"sources":["../../src/actions/get-count.ts"],"mappings":";;;cAIa,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;cAIpB,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;cAIrB,eAAA,gCAAe,wBAAA;;YAM1B,MAAA;AAAA"}
@@ -1,9 +1,19 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-count.d.ts
4
- declare const ErpnextGetCountInput: z.ZodTypeAny;
5
- declare const ErpnextGetCountOutput: z.ZodTypeAny;
6
- declare const erpnextGetCount: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const ErpnextGetCountInput: z.ZodObject<{
5
+ doctype: z.ZodString;
6
+ filters: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
7
+ }, z.core.$strip>;
8
+ declare const ErpnextGetCountOutput: z.ZodObject<{
9
+ message: z.ZodNullable<z.ZodNumber>;
10
+ }, z.core.$strip>;
11
+ declare const erpnextGetCount: import("@keystrokehq/action").WorkflowActionDefinition<{
12
+ doctype: string;
13
+ filters?: Record<string, never> | undefined;
14
+ }, {
15
+ message: number | null;
16
+ }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
17
  //#endregion
8
18
  export { erpnextGetCount };
9
19
  //# sourceMappingURL=get-count.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-count.d.mts","names":[],"sources":["../../src/actions/get-count.ts"],"mappings":";;;cAIa,oBAAA,EAAsB,CAAA,CAAE,UAG4C;AAAA,cACpE,qBAAA,EAAuB,CAAA,CAAE,UAEiB;AAAA,cAE1C,eAAA,gCAAe,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-count.d.mts","names":[],"sources":["../../src/actions/get-count.ts"],"mappings":";;;cAIa,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;cAIpB,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;cAIrB,eAAA,gCAAe,wBAAA;;YAM1B,MAAA;AAAA"}
@@ -8,7 +8,7 @@ const erpnextGetCount = action("ERPNEXT_GET_COUNT", {
8
8
  doctype: z.string().describe("The DocType name to count documents for (e.g., 'User', 'Task', 'Project'). Must be a valid DocType in the ERPNext/Frappe system."),
9
9
  filters: z.object({}).describe("Optional filter conditions to apply when counting documents. Format: {field_name: value} or {field_name: ['operator', value]}. Example: {'status': 'Open'} or {'creation': ['>', '2024-01-01']}.").optional()
10
10
  }).describe("Request model for getting the count of documents matching filters."),
11
- output: z.object({ message: z.number().int().describe("The count of documents matching the specified DocType and filters.") }).describe("Response model for document count query.")
11
+ output: z.object({ message: z.number().int().describe("The count of documents matching the specified DocType and filters.").nullable() }).describe("Response model for document count query.")
12
12
  });
13
13
  //#endregion
14
14
  export { erpnextGetCount };
@@ -1 +1 @@
1
- {"version":3,"file":"get-count.mjs","names":[],"sources":["../../src/actions/get-count.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetCountInput: z.ZodTypeAny = z.object({\n doctype: z.string().describe(\"The DocType name to count documents for (e.g., 'User', 'Task', 'Project'). Must be a valid DocType in the ERPNext/Frappe system.\"),\n filters: z.object({}).describe(\"Optional filter conditions to apply when counting documents. Format: {field_name: value} or {field_name: ['operator', value]}. Example: {'status': 'Open'} or {'creation': ['>', '2024-01-01']}.\").optional(),\n}).describe(\"Request model for getting the count of documents matching filters.\");\nexport const ErpnextGetCountOutput: z.ZodTypeAny = z.object({\n message: z.number().int().describe(\"The count of documents matching the specified DocType and filters.\"),\n}).describe(\"Response model for document count query.\");\n\nexport const erpnextGetCount = action(\"ERPNEXT_GET_COUNT\", {\n slug: \"erpnext-get-count\",\n name: \"Get Document Count\",\n description: \"Tool to get the count of documents matching specified filters in ERPNext/Frappe. Use when you need to know how many records exist for a specific DocType, optionally filtered by conditions.\",\n input: ErpnextGetCountInput,\n output: ErpnextGetCountOutput,\n});\n"],"mappings":";;AAYA,MAAa,kBAAkB,OAAO,qBAAqB;CACzD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZgD,EAAE,OAAO;EACzD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,kIAAkI;EAC/J,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,kMAAkM,CAAC,CAAC,SAAS;CAC9O,CAAC,CAAC,CAAC,SAAS,oEASH;CACP,QATiD,EAAE,OAAO,EAC1D,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oEAAoE,EACzG,CAAC,CAAC,CAAC,SAAS,0CAOF;AACV,CAAC"}
1
+ {"version":3,"file":"get-count.mjs","names":[],"sources":["../../src/actions/get-count.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetCountInput = z.object({\n doctype: z.string().describe(\"The DocType name to count documents for (e.g., 'User', 'Task', 'Project'). Must be a valid DocType in the ERPNext/Frappe system.\"),\n filters: z.object({}).describe(\"Optional filter conditions to apply when counting documents. Format: {field_name: value} or {field_name: ['operator', value]}. Example: {'status': 'Open'} or {'creation': ['>', '2024-01-01']}.\").optional(),\n}).describe(\"Request model for getting the count of documents matching filters.\");\nexport const ErpnextGetCountOutput = z.object({\n message: z.number().int().describe(\"The count of documents matching the specified DocType and filters.\").nullable(),\n}).describe(\"Response model for document count query.\");\n\nexport const erpnextGetCount = action(\"ERPNEXT_GET_COUNT\", {\n slug: \"erpnext-get-count\",\n name: \"Get Document Count\",\n description: \"Tool to get the count of documents matching specified filters in ERPNext/Frappe. Use when you need to know how many records exist for a specific DocType, optionally filtered by conditions.\",\n input: ErpnextGetCountInput,\n output: ErpnextGetCountOutput,\n});\n"],"mappings":";;AAYA,MAAa,kBAAkB,OAAO,qBAAqB;CACzD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZkC,EAAE,OAAO;EAC3C,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,kIAAkI;EAC/J,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,kMAAkM,CAAC,CAAC,SAAS;CAC9O,CAAC,CAAC,CAAC,SAAS,oEASH;CACP,QATmC,EAAE,OAAO,EAC5C,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS,EACpH,CAAC,CAAC,CAAC,SAAS,0CAOF;AACV,CAAC"}
@@ -6,28 +6,28 @@ const ErpnextGetDocWithMetaInput = zod.z.object({
6
6
  doctype: zod.z.string().describe("The DocType name (e.g., 'Account', 'Customer', 'Sales Order')")
7
7
  }).describe("Request model for retrieving a document with full metadata.");
8
8
  const ErpnextGetDocWithMeta_DocInfoSchema = zod.z.object({
9
- tags: zod.z.string().describe("Comma-separated tags associated with the document").nullable().optional(),
10
- views: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Document view logs").nullable().optional(),
11
- shared: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Document sharing information").nullable().optional(),
12
- ratings: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Document ratings").nullable().optional(),
13
- comments: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Comments on the document").nullable().optional(),
14
- versions: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Version history information").nullable().optional(),
15
- milestones: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Milestone information").nullable().optional(),
16
- assignments: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("User assignments for the document").nullable().optional(),
17
- attachments: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("List of file attachments linked to the document").nullable().optional(),
18
- permissions: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Permission information for the current user").nullable().optional(),
19
- total_views: zod.z.number().int().describe("Total number of views for the document").nullable().optional(),
20
- communications: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Related communication records").nullable().optional(),
21
- document_email: zod.z.string().describe("Email address associated with the document").nullable().optional(),
22
- total_comments: zod.z.number().int().describe("Total number of comments on the document").nullable().optional(),
23
- energy_point_logs: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Energy point logs related to the document").nullable().optional(),
24
- is_document_followed: zod.z.number().int().describe("Whether the document is followed by the current user (0 or 1)").nullable().optional(),
25
- additional_timeline_content: zod.z.union([zod.z.string(), zod.z.array(zod.z.unknown())]).nullable().optional()
9
+ tags: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Comma-separated tags associated with the document").optional()),
10
+ views: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Document view logs").optional()),
11
+ shared: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Document sharing information").optional()),
12
+ ratings: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Document ratings").optional()),
13
+ comments: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Comments on the document").optional()),
14
+ versions: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Version history information").optional()),
15
+ milestones: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Milestone information").optional()),
16
+ assignments: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("User assignments for the document").optional()),
17
+ attachments: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("List of file attachments linked to the document").optional()),
18
+ permissions: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.record(zod.z.string(), zod.z.unknown()).describe("Permission information for the current user").optional()),
19
+ total_views: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().int().describe("Total number of views for the document").optional()),
20
+ communications: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Related communication records").optional()),
21
+ document_email: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Email address associated with the document").optional()),
22
+ total_comments: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().int().describe("Total number of comments on the document").optional()),
23
+ energy_point_logs: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Energy point logs related to the document").optional()),
24
+ is_document_followed: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().int().describe("Whether the document is followed by the current user (0 or 1)").optional()),
25
+ additional_timeline_content: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.union([zod.z.string(), zod.z.array(zod.z.unknown())]).optional())
26
26
  }).describe("Document metadata including attachments, comments, and activity information.");
27
27
  const ErpnextGetDocWithMetaOutput = zod.z.object({
28
- docs: zod.z.array(zod.z.object({})).describe("List of document objects including the main document and any child tables with their fields").nullable().optional(),
29
- docinfo: ErpnextGetDocWithMeta_DocInfoSchema.nullable().optional(),
30
- user_info: zod.z.record(zod.z.string(), zod.z.unknown()).describe("User information and permissions related to the document").nullable().optional()
28
+ docs: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.array(zod.z.object({})).describe("List of document objects including the main document and any child tables with their fields").optional()),
29
+ docinfo: zod.z.preprocess((value) => value === null ? void 0 : value, ErpnextGetDocWithMeta_DocInfoSchema.optional()),
30
+ user_info: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.record(zod.z.string(), zod.z.unknown()).describe("User information and permissions related to the document").optional())
31
31
  }).describe("Response model containing document data with full metadata.");
32
32
  const erpnextGetDocWithMeta = require_action.action("ERPNEXT_GET_DOC_WITH_META", {
33
33
  slug: "erpnext-get-doc-with-meta",
@@ -1 +1 @@
1
- {"version":3,"file":"get-doc-with-meta.cjs","names":["z","action"],"sources":["../../src/actions/get-doc-with-meta.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetDocWithMetaInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"The unique name/identifier of the document to retrieve\"),\n doctype: z.string().describe(\"The DocType name (e.g., 'Account', 'Customer', 'Sales Order')\"),\n}).describe(\"Request model for retrieving a document with full metadata.\");\nconst ErpnextGetDocWithMeta_DocInfoSchema: z.ZodTypeAny = z.object({\n tags: z.string().describe(\"Comma-separated tags associated with the document\").nullable().optional(),\n views: z.array(z.record(z.string(), z.unknown())).describe(\"Document view logs\").nullable().optional(),\n shared: z.array(z.record(z.string(), z.unknown())).describe(\"Document sharing information\").nullable().optional(),\n ratings: z.array(z.record(z.string(), z.unknown())).describe(\"Document ratings\").nullable().optional(),\n comments: z.array(z.record(z.string(), z.unknown())).describe(\"Comments on the document\").nullable().optional(),\n versions: z.array(z.record(z.string(), z.unknown())).describe(\"Version history information\").nullable().optional(),\n milestones: z.array(z.record(z.string(), z.unknown())).describe(\"Milestone information\").nullable().optional(),\n assignments: z.array(z.record(z.string(), z.unknown())).describe(\"User assignments for the document\").nullable().optional(),\n attachments: z.array(z.record(z.string(), z.unknown())).describe(\"List of file attachments linked to the document\").nullable().optional(),\n permissions: z.record(z.string(), z.unknown()).describe(\"Permission information for the current user\").nullable().optional(),\n total_views: z.number().int().describe(\"Total number of views for the document\").nullable().optional(),\n communications: z.array(z.record(z.string(), z.unknown())).describe(\"Related communication records\").nullable().optional(),\n document_email: z.string().describe(\"Email address associated with the document\").nullable().optional(),\n total_comments: z.number().int().describe(\"Total number of comments on the document\").nullable().optional(),\n energy_point_logs: z.array(z.record(z.string(), z.unknown())).describe(\"Energy point logs related to the document\").nullable().optional(),\n is_document_followed: z.number().int().describe(\"Whether the document is followed by the current user (0 or 1)\").nullable().optional(),\n additional_timeline_content: z.union([z.string(), z.array(z.unknown())]).nullable().optional(),\n}).describe(\"Document metadata including attachments, comments, and activity information.\");\nexport const ErpnextGetDocWithMetaOutput: z.ZodTypeAny = z.object({\n docs: z.array(z.object({})).describe(\"List of document objects including the main document and any child tables with their fields\").nullable().optional(),\n docinfo: ErpnextGetDocWithMeta_DocInfoSchema.nullable().optional(),\n user_info: z.record(z.string(), z.unknown()).describe(\"User information and permissions related to the document\").nullable().optional(),\n}).describe(\"Response model containing document data with full metadata.\");\n\nexport const erpnextGetDocWithMeta = action(\"ERPNEXT_GET_DOC_WITH_META\", {\n slug: \"erpnext-get-doc-with-meta\",\n name: \"Get Document with Metadata\",\n description: \"Tool to retrieve a document with full metadata including attachments, comments, activity logs, and related information. Use when you need complete document details beyond the basic fields returned by standard GET requests.\",\n input: ErpnextGetDocWithMetaInput,\n output: ErpnextGetDocWithMetaOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2CA,IAAAA,EAAE,OAAO;CAC/D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD;CAClF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D;AAC9F,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAM,sCAAoDA,IAAAA,EAAE,OAAO;CACjE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,OAAOA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,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AAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxI,CAAC,CAAC,CAAC,SAAS,6DAA6D;AAEzE,MAAa,wBAAwBC,eAAAA,OAAO,6BAA6B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-doc-with-meta.cjs","names":["z","action"],"sources":["../../src/actions/get-doc-with-meta.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetDocWithMetaInput = z.object({\n name: z.string().describe(\"The unique name/identifier of the document to retrieve\"),\n doctype: z.string().describe(\"The DocType name (e.g., 'Account', 'Customer', 'Sales Order')\"),\n}).describe(\"Request model for retrieving a document with full metadata.\");\nconst ErpnextGetDocWithMeta_DocInfoSchema = z.object({\n tags: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Comma-separated tags associated with the document\").optional()),\n views: z.preprocess((value) => (value === null ? undefined : value), z.array(z.record(z.string(), z.unknown())).describe(\"Document view logs\").optional()),\n shared: z.preprocess((value) => (value === null ? undefined : value), z.array(z.record(z.string(), z.unknown())).describe(\"Document sharing information\").optional()),\n ratings: z.preprocess((value) => (value === null ? undefined : value), z.array(z.record(z.string(), z.unknown())).describe(\"Document ratings\").optional()),\n comments: z.preprocess((value) => (value === null ? undefined : value), z.array(z.record(z.string(), z.unknown())).describe(\"Comments on the document\").optional()),\n versions: z.preprocess((value) => (value === null ? undefined : value), z.array(z.record(z.string(), z.unknown())).describe(\"Version history information\").optional()),\n milestones: z.preprocess((value) => (value === null ? undefined : value), z.array(z.record(z.string(), z.unknown())).describe(\"Milestone information\").optional()),\n assignments: z.preprocess((value) => (value === null ? undefined : value), z.array(z.record(z.string(), z.unknown())).describe(\"User assignments for the document\").optional()),\n attachments: z.preprocess((value) => (value === null ? undefined : value), z.array(z.record(z.string(), z.unknown())).describe(\"List of file attachments linked to the document\").optional()),\n permissions: z.preprocess((value) => (value === null ? undefined : value), z.record(z.string(), z.unknown()).describe(\"Permission information for the current user\").optional()),\n total_views: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Total number of views for the document\").optional()),\n communications: z.preprocess((value) => (value === null ? undefined : value), z.array(z.record(z.string(), z.unknown())).describe(\"Related communication records\").optional()),\n document_email: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Email address associated with the document\").optional()),\n total_comments: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Total number of comments on the document\").optional()),\n energy_point_logs: z.preprocess((value) => (value === null ? undefined : value), z.array(z.record(z.string(), z.unknown())).describe(\"Energy point logs related to the document\").optional()),\n is_document_followed: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Whether the document is followed by the current user (0 or 1)\").optional()),\n additional_timeline_content: z.preprocess((value) => (value === null ? undefined : value), z.union([z.string(), z.array(z.unknown())]).optional()),\n}).describe(\"Document metadata including attachments, comments, and activity information.\");\nexport const ErpnextGetDocWithMetaOutput = z.object({\n docs: z.preprocess((value) => (value === null ? undefined : value), z.array(z.object({})).describe(\"List of document objects including the main document and any child tables with their fields\").optional()),\n docinfo: z.preprocess((value) => (value === null ? undefined : value), ErpnextGetDocWithMeta_DocInfoSchema.optional()),\n user_info: z.preprocess((value) => (value === null ? undefined : value), z.record(z.string(), z.unknown()).describe(\"User information and permissions related to the document\").optional()),\n}).describe(\"Response model containing document data with full metadata.\");\n\nexport const erpnextGetDocWithMeta = action(\"ERPNEXT_GET_DOC_WITH_META\", {\n slug: \"erpnext-get-doc-with-meta\",\n name: \"Get Document with Metadata\",\n description: \"Tool to retrieve a document with full metadata including attachments, comments, activity logs, and related information. Use when you need complete document details beyond the basic fields returned by standard GET requests.\",\n input: ErpnextGetDocWithMetaInput,\n output: ErpnextGetDocWithMetaOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,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IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,oCAAoC,SAAS,CAAC;CACrH,WAAWA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC;AAC5L,CAAC,CAAC,CAAC,SAAS,6DAA6D;AAEzE,MAAa,wBAAwBC,eAAAA,OAAO,6BAA6B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,59 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-doc-with-meta.d.ts
4
- declare const ErpnextGetDocWithMetaInput: z.ZodTypeAny;
5
- declare const ErpnextGetDocWithMetaOutput: z.ZodTypeAny;
6
- declare const erpnextGetDocWithMeta: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const ErpnextGetDocWithMetaInput: z.ZodObject<{
5
+ name: z.ZodString;
6
+ doctype: z.ZodString;
7
+ }, z.core.$strip>;
8
+ declare const ErpnextGetDocWithMetaOutput: z.ZodObject<{
9
+ docs: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodObject<{}, z.core.$strip>>>>;
10
+ docinfo: z.ZodPreprocess<z.ZodOptional<z.ZodObject<{
11
+ tags: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
12
+ views: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
13
+ shared: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
14
+ ratings: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
15
+ comments: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
16
+ versions: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
17
+ milestones: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
18
+ assignments: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
19
+ attachments: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
20
+ permissions: z.ZodPreprocess<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
21
+ total_views: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
22
+ communications: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
23
+ document_email: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
24
+ total_comments: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
25
+ energy_point_logs: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
26
+ is_document_followed: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
27
+ additional_timeline_content: z.ZodPreprocess<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnknown>]>>>;
28
+ }, z.core.$strip>>>;
29
+ user_info: z.ZodPreprocess<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
30
+ }, z.core.$strip>;
31
+ declare const erpnextGetDocWithMeta: import("@keystrokehq/action").WorkflowActionDefinition<{
32
+ name: string;
33
+ doctype: string;
34
+ }, {
35
+ docs?: Record<string, never>[] | undefined;
36
+ docinfo?: {
37
+ tags?: string | undefined;
38
+ views?: Record<string, unknown>[] | undefined;
39
+ shared?: Record<string, unknown>[] | undefined;
40
+ ratings?: Record<string, unknown>[] | undefined;
41
+ comments?: Record<string, unknown>[] | undefined;
42
+ versions?: Record<string, unknown>[] | undefined;
43
+ milestones?: Record<string, unknown>[] | undefined;
44
+ assignments?: Record<string, unknown>[] | undefined;
45
+ attachments?: Record<string, unknown>[] | undefined;
46
+ permissions?: Record<string, unknown> | undefined;
47
+ total_views?: number | undefined;
48
+ communications?: Record<string, unknown>[] | undefined;
49
+ document_email?: string | undefined;
50
+ total_comments?: number | undefined;
51
+ energy_point_logs?: Record<string, unknown>[] | undefined;
52
+ is_document_followed?: number | undefined;
53
+ additional_timeline_content?: string | unknown[] | undefined;
54
+ } | undefined;
55
+ user_info?: Record<string, unknown> | undefined;
56
+ }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
57
  //#endregion
8
58
  export { erpnextGetDocWithMeta };
9
59
  //# sourceMappingURL=get-doc-with-meta.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-doc-with-meta.d.cts","names":[],"sources":["../../src/actions/get-doc-with-meta.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAG+B;AAAA,cAoB7D,2BAAA,EAA6B,CAAA,CAAE,UAI8B;AAAA,cAE7D,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-doc-with-meta.d.cts","names":[],"sources":["../../src/actions/get-doc-with-meta.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;cAuB1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;cAM3B,qBAAA,gCAAqB,wBAAA"}
@@ -1,9 +1,59 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-doc-with-meta.d.ts
4
- declare const ErpnextGetDocWithMetaInput: z.ZodTypeAny;
5
- declare const ErpnextGetDocWithMetaOutput: z.ZodTypeAny;
6
- declare const erpnextGetDocWithMeta: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const ErpnextGetDocWithMetaInput: z.ZodObject<{
5
+ name: z.ZodString;
6
+ doctype: z.ZodString;
7
+ }, z.core.$strip>;
8
+ declare const ErpnextGetDocWithMetaOutput: z.ZodObject<{
9
+ docs: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodObject<{}, z.core.$strip>>>>;
10
+ docinfo: z.ZodPreprocess<z.ZodOptional<z.ZodObject<{
11
+ tags: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
12
+ views: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
13
+ shared: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
14
+ ratings: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
15
+ comments: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
16
+ versions: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
17
+ milestones: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
18
+ assignments: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
19
+ attachments: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
20
+ permissions: z.ZodPreprocess<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
21
+ total_views: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
22
+ communications: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
23
+ document_email: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
24
+ total_comments: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
25
+ energy_point_logs: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
26
+ is_document_followed: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
27
+ additional_timeline_content: z.ZodPreprocess<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnknown>]>>>;
28
+ }, z.core.$strip>>>;
29
+ user_info: z.ZodPreprocess<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
30
+ }, z.core.$strip>;
31
+ declare const erpnextGetDocWithMeta: import("@keystrokehq/action").WorkflowActionDefinition<{
32
+ name: string;
33
+ doctype: string;
34
+ }, {
35
+ docs?: Record<string, never>[] | undefined;
36
+ docinfo?: {
37
+ tags?: string | undefined;
38
+ views?: Record<string, unknown>[] | undefined;
39
+ shared?: Record<string, unknown>[] | undefined;
40
+ ratings?: Record<string, unknown>[] | undefined;
41
+ comments?: Record<string, unknown>[] | undefined;
42
+ versions?: Record<string, unknown>[] | undefined;
43
+ milestones?: Record<string, unknown>[] | undefined;
44
+ assignments?: Record<string, unknown>[] | undefined;
45
+ attachments?: Record<string, unknown>[] | undefined;
46
+ permissions?: Record<string, unknown> | undefined;
47
+ total_views?: number | undefined;
48
+ communications?: Record<string, unknown>[] | undefined;
49
+ document_email?: string | undefined;
50
+ total_comments?: number | undefined;
51
+ energy_point_logs?: Record<string, unknown>[] | undefined;
52
+ is_document_followed?: number | undefined;
53
+ additional_timeline_content?: string | unknown[] | undefined;
54
+ } | undefined;
55
+ user_info?: Record<string, unknown> | undefined;
56
+ }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
57
  //#endregion
8
58
  export { erpnextGetDocWithMeta };
9
59
  //# sourceMappingURL=get-doc-with-meta.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-doc-with-meta.d.mts","names":[],"sources":["../../src/actions/get-doc-with-meta.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAG+B;AAAA,cAoB7D,2BAAA,EAA6B,CAAA,CAAE,UAI8B;AAAA,cAE7D,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-doc-with-meta.d.mts","names":[],"sources":["../../src/actions/get-doc-with-meta.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;cAuB1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;cAM3B,qBAAA,gCAAqB,wBAAA"}
@@ -6,23 +6,23 @@ const ErpnextGetDocWithMetaInput = z.object({
6
6
  doctype: z.string().describe("The DocType name (e.g., 'Account', 'Customer', 'Sales Order')")
7
7
  }).describe("Request model for retrieving a document with full metadata.");
8
8
  const ErpnextGetDocWithMeta_DocInfoSchema = z.object({
9
- tags: z.string().describe("Comma-separated tags associated with the document").nullable().optional(),
10
- views: z.array(z.record(z.string(), z.unknown())).describe("Document view logs").nullable().optional(),
11
- shared: z.array(z.record(z.string(), z.unknown())).describe("Document sharing information").nullable().optional(),
12
- ratings: z.array(z.record(z.string(), z.unknown())).describe("Document ratings").nullable().optional(),
13
- comments: z.array(z.record(z.string(), z.unknown())).describe("Comments on the document").nullable().optional(),
14
- versions: z.array(z.record(z.string(), z.unknown())).describe("Version history information").nullable().optional(),
15
- milestones: z.array(z.record(z.string(), z.unknown())).describe("Milestone information").nullable().optional(),
16
- assignments: z.array(z.record(z.string(), z.unknown())).describe("User assignments for the document").nullable().optional(),
17
- attachments: z.array(z.record(z.string(), z.unknown())).describe("List of file attachments linked to the document").nullable().optional(),
18
- permissions: z.record(z.string(), z.unknown()).describe("Permission information for the current user").nullable().optional(),
19
- total_views: z.number().int().describe("Total number of views for the document").nullable().optional(),
20
- communications: z.array(z.record(z.string(), z.unknown())).describe("Related communication records").nullable().optional(),
21
- document_email: z.string().describe("Email address associated with the document").nullable().optional(),
22
- total_comments: z.number().int().describe("Total number of comments on the document").nullable().optional(),
23
- energy_point_logs: z.array(z.record(z.string(), z.unknown())).describe("Energy point logs related to the document").nullable().optional(),
24
- is_document_followed: z.number().int().describe("Whether the document is followed by the current user (0 or 1)").nullable().optional(),
25
- additional_timeline_content: z.union([z.string(), z.array(z.unknown())]).nullable().optional()
9
+ tags: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Comma-separated tags associated with the document").optional()),
10
+ views: z.preprocess((value) => value === null ? void 0 : value, z.array(z.record(z.string(), z.unknown())).describe("Document view logs").optional()),
11
+ shared: z.preprocess((value) => value === null ? void 0 : value, z.array(z.record(z.string(), z.unknown())).describe("Document sharing information").optional()),
12
+ ratings: z.preprocess((value) => value === null ? void 0 : value, z.array(z.record(z.string(), z.unknown())).describe("Document ratings").optional()),
13
+ comments: z.preprocess((value) => value === null ? void 0 : value, z.array(z.record(z.string(), z.unknown())).describe("Comments on the document").optional()),
14
+ versions: z.preprocess((value) => value === null ? void 0 : value, z.array(z.record(z.string(), z.unknown())).describe("Version history information").optional()),
15
+ milestones: z.preprocess((value) => value === null ? void 0 : value, z.array(z.record(z.string(), z.unknown())).describe("Milestone information").optional()),
16
+ assignments: z.preprocess((value) => value === null ? void 0 : value, z.array(z.record(z.string(), z.unknown())).describe("User assignments for the document").optional()),
17
+ attachments: z.preprocess((value) => value === null ? void 0 : value, z.array(z.record(z.string(), z.unknown())).describe("List of file attachments linked to the document").optional()),
18
+ permissions: z.preprocess((value) => value === null ? void 0 : value, z.record(z.string(), z.unknown()).describe("Permission information for the current user").optional()),
19
+ total_views: z.preprocess((value) => value === null ? void 0 : value, z.number().int().describe("Total number of views for the document").optional()),
20
+ communications: z.preprocess((value) => value === null ? void 0 : value, z.array(z.record(z.string(), z.unknown())).describe("Related communication records").optional()),
21
+ document_email: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Email address associated with the document").optional()),
22
+ total_comments: z.preprocess((value) => value === null ? void 0 : value, z.number().int().describe("Total number of comments on the document").optional()),
23
+ energy_point_logs: z.preprocess((value) => value === null ? void 0 : value, z.array(z.record(z.string(), z.unknown())).describe("Energy point logs related to the document").optional()),
24
+ is_document_followed: z.preprocess((value) => value === null ? void 0 : value, z.number().int().describe("Whether the document is followed by the current user (0 or 1)").optional()),
25
+ additional_timeline_content: z.preprocess((value) => value === null ? void 0 : value, z.union([z.string(), z.array(z.unknown())]).optional())
26
26
  }).describe("Document metadata including attachments, comments, and activity information.");
27
27
  const erpnextGetDocWithMeta = action("ERPNEXT_GET_DOC_WITH_META", {
28
28
  slug: "erpnext-get-doc-with-meta",
@@ -30,9 +30,9 @@ const erpnextGetDocWithMeta = action("ERPNEXT_GET_DOC_WITH_META", {
30
30
  description: "Tool to retrieve a document with full metadata including attachments, comments, activity logs, and related information. Use when you need complete document details beyond the basic fields returned by standard GET requests.",
31
31
  input: ErpnextGetDocWithMetaInput,
32
32
  output: z.object({
33
- docs: z.array(z.object({})).describe("List of document objects including the main document and any child tables with their fields").nullable().optional(),
34
- docinfo: ErpnextGetDocWithMeta_DocInfoSchema.nullable().optional(),
35
- user_info: z.record(z.string(), z.unknown()).describe("User information and permissions related to the document").nullable().optional()
33
+ docs: z.preprocess((value) => value === null ? void 0 : value, z.array(z.object({})).describe("List of document objects including the main document and any child tables with their fields").optional()),
34
+ docinfo: z.preprocess((value) => value === null ? void 0 : value, ErpnextGetDocWithMeta_DocInfoSchema.optional()),
35
+ user_info: z.preprocess((value) => value === null ? void 0 : value, z.record(z.string(), z.unknown()).describe("User information and permissions related to the document").optional())
36
36
  }).describe("Response model containing document data with full metadata.")
37
37
  });
38
38
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"get-doc-with-meta.mjs","names":[],"sources":["../../src/actions/get-doc-with-meta.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetDocWithMetaInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"The unique name/identifier of the document to retrieve\"),\n doctype: z.string().describe(\"The DocType name (e.g., 'Account', 'Customer', 'Sales Order')\"),\n}).describe(\"Request model for retrieving a document with full metadata.\");\nconst ErpnextGetDocWithMeta_DocInfoSchema: z.ZodTypeAny = z.object({\n tags: z.string().describe(\"Comma-separated tags associated with the document\").nullable().optional(),\n views: z.array(z.record(z.string(), z.unknown())).describe(\"Document view logs\").nullable().optional(),\n shared: z.array(z.record(z.string(), z.unknown())).describe(\"Document sharing information\").nullable().optional(),\n ratings: z.array(z.record(z.string(), z.unknown())).describe(\"Document ratings\").nullable().optional(),\n comments: z.array(z.record(z.string(), z.unknown())).describe(\"Comments on the document\").nullable().optional(),\n versions: z.array(z.record(z.string(), z.unknown())).describe(\"Version history information\").nullable().optional(),\n milestones: z.array(z.record(z.string(), z.unknown())).describe(\"Milestone information\").nullable().optional(),\n assignments: z.array(z.record(z.string(), z.unknown())).describe(\"User assignments for the document\").nullable().optional(),\n attachments: z.array(z.record(z.string(), z.unknown())).describe(\"List of file attachments linked to the document\").nullable().optional(),\n permissions: z.record(z.string(), z.unknown()).describe(\"Permission information for the current user\").nullable().optional(),\n total_views: z.number().int().describe(\"Total number of views for the document\").nullable().optional(),\n communications: z.array(z.record(z.string(), z.unknown())).describe(\"Related communication records\").nullable().optional(),\n document_email: z.string().describe(\"Email address associated with the document\").nullable().optional(),\n total_comments: z.number().int().describe(\"Total number of comments on the document\").nullable().optional(),\n energy_point_logs: z.array(z.record(z.string(), z.unknown())).describe(\"Energy point logs related to the document\").nullable().optional(),\n is_document_followed: z.number().int().describe(\"Whether the document is followed by the current user (0 or 1)\").nullable().optional(),\n additional_timeline_content: z.union([z.string(), z.array(z.unknown())]).nullable().optional(),\n}).describe(\"Document metadata including attachments, comments, and activity information.\");\nexport const ErpnextGetDocWithMetaOutput: z.ZodTypeAny = z.object({\n docs: z.array(z.object({})).describe(\"List of document objects including the main document and any child tables with their fields\").nullable().optional(),\n docinfo: ErpnextGetDocWithMeta_DocInfoSchema.nullable().optional(),\n user_info: z.record(z.string(), z.unknown()).describe(\"User information and permissions related to the document\").nullable().optional(),\n}).describe(\"Response model containing document data with full metadata.\");\n\nexport const erpnextGetDocWithMeta = action(\"ERPNEXT_GET_DOC_WITH_META\", {\n slug: \"erpnext-get-doc-with-meta\",\n name: \"Get Document with Metadata\",\n description: \"Tool to retrieve a document with full metadata including attachments, comments, activity logs, and related information. Use when you need complete document details beyond the basic fields returned by standard GET requests.\",\n input: ErpnextGetDocWithMetaInput,\n output: ErpnextGetDocWithMetaOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2C,EAAE,OAAO;CAC/D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD;CAClF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D;AAC9F,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAM,sCAAoD,EAAE,OAAO;CACjE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAA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AAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,mBAAmB,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxI,sBAAsB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrI,6BAA6B,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,SAAS,8EAA8E;AAO1F,MAAa,wBAAwB,OAAO,6BAA6B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXuD,EAAE,OAAO;EAChE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxJ,SAAS,oCAAoC,SAAS,CAAC,CAAC,SAAS;EACjE,WAAW,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxI,CAAC,CAAC,CAAC,SAAS,6DAOF;AACV,CAAC"}
1
+ {"version":3,"file":"get-doc-with-meta.mjs","names":[],"sources":["../../src/actions/get-doc-with-meta.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetDocWithMetaInput = z.object({\n name: z.string().describe(\"The unique name/identifier of the document to retrieve\"),\n doctype: z.string().describe(\"The DocType name (e.g., 'Account', 'Customer', 'Sales Order')\"),\n}).describe(\"Request model for retrieving a document with full metadata.\");\nconst ErpnextGetDocWithMeta_DocInfoSchema = z.object({\n tags: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Comma-separated tags associated with the document\").optional()),\n views: z.preprocess((value) => (value === null ? undefined : value), z.array(z.record(z.string(), z.unknown())).describe(\"Document view logs\").optional()),\n shared: z.preprocess((value) => (value === null ? undefined : value), z.array(z.record(z.string(), z.unknown())).describe(\"Document sharing information\").optional()),\n ratings: z.preprocess((value) => (value === null ? undefined : value), z.array(z.record(z.string(), z.unknown())).describe(\"Document ratings\").optional()),\n comments: z.preprocess((value) => (value === null ? undefined : value), z.array(z.record(z.string(), z.unknown())).describe(\"Comments on the document\").optional()),\n versions: z.preprocess((value) => (value === null ? undefined : value), z.array(z.record(z.string(), z.unknown())).describe(\"Version history information\").optional()),\n milestones: z.preprocess((value) => (value === null ? undefined : value), z.array(z.record(z.string(), z.unknown())).describe(\"Milestone information\").optional()),\n assignments: z.preprocess((value) => (value === null ? undefined : value), z.array(z.record(z.string(), z.unknown())).describe(\"User assignments for the document\").optional()),\n attachments: z.preprocess((value) => (value === null ? undefined : value), z.array(z.record(z.string(), z.unknown())).describe(\"List of file attachments linked to the document\").optional()),\n permissions: z.preprocess((value) => (value === null ? undefined : value), z.record(z.string(), z.unknown()).describe(\"Permission information for the current user\").optional()),\n total_views: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Total number of views for the document\").optional()),\n communications: z.preprocess((value) => (value === null ? undefined : value), z.array(z.record(z.string(), z.unknown())).describe(\"Related communication records\").optional()),\n document_email: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Email address associated with the document\").optional()),\n total_comments: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Total number of comments on the document\").optional()),\n energy_point_logs: z.preprocess((value) => (value === null ? undefined : value), z.array(z.record(z.string(), z.unknown())).describe(\"Energy point logs related to the document\").optional()),\n is_document_followed: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Whether the document is followed by the current user (0 or 1)\").optional()),\n additional_timeline_content: z.preprocess((value) => (value === null ? undefined : value), z.union([z.string(), z.array(z.unknown())]).optional()),\n}).describe(\"Document metadata including attachments, comments, and activity information.\");\nexport const ErpnextGetDocWithMetaOutput = z.object({\n docs: z.preprocess((value) => (value === null ? undefined : value), z.array(z.object({})).describe(\"List of document objects including the main document and any child tables with their fields\").optional()),\n docinfo: z.preprocess((value) => (value === null ? undefined : value), ErpnextGetDocWithMeta_DocInfoSchema.optional()),\n user_info: z.preprocess((value) => (value === null ? undefined : value), z.record(z.string(), z.unknown()).describe(\"User information and permissions related to the document\").optional()),\n}).describe(\"Response model containing document data with full metadata.\");\n\nexport const erpnextGetDocWithMeta = action(\"ERPNEXT_GET_DOC_WITH_META\", {\n slug: \"erpnext-get-doc-with-meta\",\n name: \"Get Document with Metadata\",\n description: \"Tool to retrieve a document with full metadata including attachments, comments, activity logs, and related information. Use when you need complete document details beyond the basic fields returned by standard GET requests.\",\n input: ErpnextGetDocWithMetaInput,\n output: ErpnextGetDocWithMetaOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6B,EAAE,OAAO;CACjD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD;CAClF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D;AAC9F,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAM,sCAAsC,EAAE,OAAO;CACnD,MAAM,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC;CACvJ,OAAO,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC;CACzJ,QAAQ,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,MAAM,EAAE,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,OAAO;CACP,QAXyC,EAAE,OAAO;EAClD,MAAM,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS,CAAC;EAC5M,SAAS,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,oCAAoC,SAAS,CAAC;EACrH,WAAW,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC;CAC5L,CAAC,CAAC,CAAC,SAAS,6DAOF;AACV,CAAC"}
@@ -6,9 +6,9 @@ const ErpnextGetDoctypeMetaInput = zod.z.object({
6
6
  with_parent: zod.z.boolean().describe("Include parent DocType metadata if this DocType is a child table. Useful when retrieving metadata for child tables in reports.").optional()
7
7
  }).describe("Request model for retrieving DocType metadata/schema.");
8
8
  const ErpnextGetDoctypeMetaOutput = zod.z.object({
9
- docs: zod.z.array(zod.z.object({})).describe("List of DocType metadata objects. The first object contains the main DocType definition with all fields, the subsequent objects contain metadata for any child table DocTypes referenced.").nullable().optional(),
10
- parent_dt: zod.z.string().describe("Parent DocType name if with_parent was True and this DocType has a parent").nullable().optional(),
11
- user_settings: zod.z.object({}).describe("User-specific settings and preferences for the DocType, including custom field order, column widths, and other UI preferences").nullable().optional()
9
+ docs: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.array(zod.z.object({})).describe("List of DocType metadata objects. The first object contains the main DocType definition with all fields, the subsequent objects contain metadata for any child table DocTypes referenced.").optional()),
10
+ parent_dt: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Parent DocType name if with_parent was True and this DocType has a parent").optional()),
11
+ user_settings: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.object({}).describe("User-specific settings and preferences for the DocType, including custom field order, column widths, and other UI preferences").optional())
12
12
  }).describe("Response model containing DocType metadata including fields, permissions, and configurations.");
13
13
  const erpnextGetDoctypeMeta = require_action.action("ERPNEXT_GET_DOCTYPE_META", {
14
14
  slug: "erpnext-get-doctype-meta",
@@ -1 +1 @@
1
- {"version":3,"file":"get-doctype-meta.cjs","names":["z","action"],"sources":["../../src/actions/get-doctype-meta.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetDoctypeMetaInput: z.ZodTypeAny = z.object({\n doctype: z.string().describe(\"The DocType name to retrieve metadata for (e.g., 'Customer', 'Sales Order', 'Item')\"),\n with_parent: z.boolean().describe(\"Include parent DocType metadata if this DocType is a child table. Useful when retrieving metadata for child tables in reports.\").optional(),\n}).describe(\"Request model for retrieving DocType metadata/schema.\");\nexport const ErpnextGetDoctypeMetaOutput: z.ZodTypeAny = z.object({\n docs: z.array(z.object({})).describe(\"List of DocType metadata objects. The first object contains the main DocType definition with all fields, the subsequent objects contain metadata for any child table DocTypes referenced.\").nullable().optional(),\n parent_dt: z.string().describe(\"Parent DocType name if with_parent was True and this DocType has a parent\").nullable().optional(),\n user_settings: z.object({}).describe(\"User-specific settings and preferences for the DocType, including custom field order, column widths, and other UI preferences\").nullable().optional(),\n}).describe(\"Response model containing DocType metadata including fields, permissions, and configurations.\");\n\nexport const erpnextGetDoctypeMeta = action(\"ERPNEXT_GET_DOCTYPE_META\", {\n slug: \"erpnext-get-doctype-meta\",\n name: \"Get DocType Metadata\",\n description: \"Tool to retrieve complete DocType metadata/schema including field definitions, field types, permissions, and configurations. Use when you need to understand the structure of a DocType, its fields, validation rules, or permissions before creating or querying documents.\",\n input: ErpnextGetDoctypeMetaInput,\n output: ErpnextGetDoctypeMetaOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2CA,IAAAA,EAAE,OAAO;CAC/D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF;CAClH,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gIAAgI,CAAC,CAAC,SAAS;AAC/K,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,MAAa,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,2LAA2L,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtP,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChI,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,+HAA+H,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5L,CAAC,CAAC,CAAC,SAAS,+FAA+F;AAE3G,MAAa,wBAAwBC,eAAAA,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-doctype-meta.cjs","names":["z","action"],"sources":["../../src/actions/get-doctype-meta.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetDoctypeMetaInput = z.object({\n doctype: z.string().describe(\"The DocType name to retrieve metadata for (e.g., 'Customer', 'Sales Order', 'Item')\"),\n with_parent: z.boolean().describe(\"Include parent DocType metadata if this DocType is a child table. Useful when retrieving metadata for child tables in reports.\").optional(),\n}).describe(\"Request model for retrieving DocType metadata/schema.\");\nexport const ErpnextGetDoctypeMetaOutput = z.object({\n docs: z.preprocess((value) => (value === null ? undefined : value), z.array(z.object({})).describe(\"List of DocType metadata objects. The first object contains the main DocType definition with all fields, the subsequent objects contain metadata for any child table DocTypes referenced.\").optional()),\n parent_dt: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Parent DocType name if with_parent was True and this DocType has a parent\").optional()),\n user_settings: z.preprocess((value) => (value === null ? undefined : value), z.object({}).describe(\"User-specific settings and preferences for the DocType, including custom field order, column widths, and other UI preferences\").optional()),\n}).describe(\"Response model containing DocType metadata including fields, permissions, and configurations.\");\n\nexport const erpnextGetDoctypeMeta = action(\"ERPNEXT_GET_DOCTYPE_META\", {\n slug: \"erpnext-get-doctype-meta\",\n name: \"Get DocType Metadata\",\n description: \"Tool to retrieve complete DocType metadata/schema including field definitions, field types, permissions, and configurations. Use when you need to understand the structure of a DocType, its fields, validation rules, or permissions before creating or querying documents.\",\n input: ErpnextGetDoctypeMetaInput,\n output: ErpnextGetDoctypeMetaOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF;CAClH,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gIAAgI,CAAC,CAAC,SAAS;AAC/K,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,2LAA2L,CAAC,CAAC,SAAS,CAAC;CAC1S,WAAWA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS,CAAC;CACpL,eAAeA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,+HAA+H,CAAC,CAAC,SAAS,CAAC;AAChP,CAAC,CAAC,CAAC,SAAS,+FAA+F;AAE3G,MAAa,wBAAwBC,eAAAA,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,23 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-doctype-meta.d.ts
4
- declare const ErpnextGetDoctypeMetaInput: z.ZodTypeAny;
5
- declare const ErpnextGetDoctypeMetaOutput: z.ZodTypeAny;
6
- declare const erpnextGetDoctypeMeta: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const ErpnextGetDoctypeMetaInput: z.ZodObject<{
5
+ doctype: z.ZodString;
6
+ with_parent: z.ZodOptional<z.ZodBoolean>;
7
+ }, z.core.$strip>;
8
+ declare const ErpnextGetDoctypeMetaOutput: z.ZodObject<{
9
+ docs: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodObject<{}, z.core.$strip>>>>;
10
+ parent_dt: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
11
+ user_settings: z.ZodPreprocess<z.ZodOptional<z.ZodObject<{}, z.core.$strip>>>;
12
+ }, z.core.$strip>;
13
+ declare const erpnextGetDoctypeMeta: import("@keystrokehq/action").WorkflowActionDefinition<{
14
+ doctype: string;
15
+ with_parent?: boolean | undefined;
16
+ }, {
17
+ docs?: Record<string, never>[] | undefined;
18
+ parent_dt?: string | undefined;
19
+ user_settings?: Record<string, never> | undefined;
20
+ }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
21
  //#endregion
8
22
  export { erpnextGetDoctypeMeta };
9
23
  //# sourceMappingURL=get-doctype-meta.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-doctype-meta.d.cts","names":[],"sources":["../../src/actions/get-doctype-meta.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAGyB;AAAA,cACvD,2BAAA,EAA6B,CAAA,CAAE,UAIgE;AAAA,cAE/F,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-doctype-meta.d.cts","names":[],"sources":["../../src/actions/get-doctype-meta.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;cAI1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;cAM3B,qBAAA,gCAAqB,wBAAA;;;;SAMhC,MAAA;;kBAAA,MAAA;AAAA"}
@@ -1,9 +1,23 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-doctype-meta.d.ts
4
- declare const ErpnextGetDoctypeMetaInput: z.ZodTypeAny;
5
- declare const ErpnextGetDoctypeMetaOutput: z.ZodTypeAny;
6
- declare const erpnextGetDoctypeMeta: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const ErpnextGetDoctypeMetaInput: z.ZodObject<{
5
+ doctype: z.ZodString;
6
+ with_parent: z.ZodOptional<z.ZodBoolean>;
7
+ }, z.core.$strip>;
8
+ declare const ErpnextGetDoctypeMetaOutput: z.ZodObject<{
9
+ docs: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodObject<{}, z.core.$strip>>>>;
10
+ parent_dt: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
11
+ user_settings: z.ZodPreprocess<z.ZodOptional<z.ZodObject<{}, z.core.$strip>>>;
12
+ }, z.core.$strip>;
13
+ declare const erpnextGetDoctypeMeta: import("@keystrokehq/action").WorkflowActionDefinition<{
14
+ doctype: string;
15
+ with_parent?: boolean | undefined;
16
+ }, {
17
+ docs?: Record<string, never>[] | undefined;
18
+ parent_dt?: string | undefined;
19
+ user_settings?: Record<string, never> | undefined;
20
+ }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
21
  //#endregion
8
22
  export { erpnextGetDoctypeMeta };
9
23
  //# sourceMappingURL=get-doctype-meta.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-doctype-meta.d.mts","names":[],"sources":["../../src/actions/get-doctype-meta.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAGyB;AAAA,cACvD,2BAAA,EAA6B,CAAA,CAAE,UAIgE;AAAA,cAE/F,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-doctype-meta.d.mts","names":[],"sources":["../../src/actions/get-doctype-meta.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;cAI1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;cAM3B,qBAAA,gCAAqB,wBAAA;;;;SAMhC,MAAA;;kBAAA,MAAA;AAAA"}
@@ -9,9 +9,9 @@ const erpnextGetDoctypeMeta = action("ERPNEXT_GET_DOCTYPE_META", {
9
9
  with_parent: z.boolean().describe("Include parent DocType metadata if this DocType is a child table. Useful when retrieving metadata for child tables in reports.").optional()
10
10
  }).describe("Request model for retrieving DocType metadata/schema."),
11
11
  output: z.object({
12
- docs: z.array(z.object({})).describe("List of DocType metadata objects. The first object contains the main DocType definition with all fields, the subsequent objects contain metadata for any child table DocTypes referenced.").nullable().optional(),
13
- parent_dt: z.string().describe("Parent DocType name if with_parent was True and this DocType has a parent").nullable().optional(),
14
- user_settings: z.object({}).describe("User-specific settings and preferences for the DocType, including custom field order, column widths, and other UI preferences").nullable().optional()
12
+ docs: z.preprocess((value) => value === null ? void 0 : value, z.array(z.object({})).describe("List of DocType metadata objects. The first object contains the main DocType definition with all fields, the subsequent objects contain metadata for any child table DocTypes referenced.").optional()),
13
+ parent_dt: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Parent DocType name if with_parent was True and this DocType has a parent").optional()),
14
+ user_settings: z.preprocess((value) => value === null ? void 0 : value, z.object({}).describe("User-specific settings and preferences for the DocType, including custom field order, column widths, and other UI preferences").optional())
15
15
  }).describe("Response model containing DocType metadata including fields, permissions, and configurations.")
16
16
  });
17
17
  //#endregion