@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,9 +1,67 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/make-purchase-order.d.ts
4
- declare const ErpnextMakePurchaseOrderInput: z.ZodTypeAny;
5
- declare const ErpnextMakePurchaseOrderOutput: z.ZodTypeAny;
6
- declare const erpnextMakePurchaseOrder: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const ErpnextMakePurchaseOrderInput: z.ZodObject<{
5
+ source_name: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const ErpnextMakePurchaseOrderOutput: z.ZodObject<{
8
+ message: z.ZodNullable<z.ZodObject<{
9
+ name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
10
+ items: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodObject<{
11
+ qty: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
12
+ uom: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
13
+ rate: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
14
+ amount: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
15
+ item_code: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
16
+ item_name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
17
+ warehouse: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
18
+ description: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
19
+ schedule_date: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
20
+ material_request: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
21
+ material_request_item: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
22
+ }, z.core.$loose>>>>;
23
+ owner: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
24
+ company: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
25
+ doctype: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
26
+ creation: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
27
+ modified: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
28
+ supplier: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
29
+ docstatus: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
30
+ schedule_date: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
31
+ transaction_date: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
32
+ }, z.core.$loose>>;
33
+ }, z.core.$strip>;
34
+ declare const erpnextMakePurchaseOrder: import("@keystrokehq/action").WorkflowActionDefinition<{
35
+ source_name: string;
36
+ }, {
37
+ message: {
38
+ [x: string]: unknown;
39
+ name?: string | undefined;
40
+ items?: {
41
+ [x: string]: unknown;
42
+ qty?: number | undefined;
43
+ uom?: string | undefined;
44
+ rate?: number | undefined;
45
+ amount?: number | undefined;
46
+ item_code?: string | undefined;
47
+ item_name?: string | undefined;
48
+ warehouse?: string | undefined;
49
+ description?: string | undefined;
50
+ schedule_date?: string | undefined;
51
+ material_request?: string | undefined;
52
+ material_request_item?: string | undefined;
53
+ }[] | undefined;
54
+ owner?: string | undefined;
55
+ company?: string | undefined;
56
+ doctype?: string | undefined;
57
+ creation?: string | undefined;
58
+ modified?: string | undefined;
59
+ supplier?: string | undefined;
60
+ docstatus?: number | undefined;
61
+ schedule_date?: string | undefined;
62
+ transaction_date?: string | undefined;
63
+ } | null;
64
+ }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
65
  //#endregion
8
66
  export { erpnextMakePurchaseOrder };
9
67
  //# sourceMappingURL=make-purchase-order.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"make-purchase-order.d.mts","names":[],"sources":["../../src/actions/make-purchase-order.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAE4B;AAAA,cA2B7D,8BAAA,EAAgC,CAAA,CAAE,UAE8B;AAAA,cAEhE,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"make-purchase-order.d.mts","names":[],"sources":["../../src/actions/make-purchase-order.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;cA6B7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;cAI9B,wBAAA,gCAAwB,wBAAA"}
@@ -3,30 +3,30 @@ import { z } from "zod";
3
3
  //#region src/actions/make-purchase-order.ts
4
4
  const ErpnextMakePurchaseOrderInput = z.object({ source_name: z.string().describe("Material Request name/ID from which to create the Purchase Order. The Material Request must exist and be of type 'Purchase' with submitted state (docstatus=1). Example: 'MAT-MR-2026-00001', 'MR-00123'.") }).describe("Request to create a Purchase Order from a Material Request.");
5
5
  const ErpnextMakePurchaseOrder_PurchaseOrderItemSchema = z.object({
6
- qty: z.number().describe("Quantity to purchase.").nullable().optional(),
7
- uom: z.string().describe("Unit of measurement (e.g., 'Nos', 'Kg').").nullable().optional(),
8
- rate: z.number().describe("Price per unit.").nullable().optional(),
9
- amount: z.number().describe("Total amount for this item (qty * rate).").nullable().optional(),
10
- item_code: z.string().describe("Item code/SKU from the Material Request.").nullable().optional(),
11
- item_name: z.string().describe("Display name of the item.").nullable().optional(),
12
- warehouse: z.string().describe("Target warehouse for delivery.").nullable().optional(),
13
- description: z.string().describe("Item description.").nullable().optional(),
14
- schedule_date: z.string().describe("Expected delivery date for this item.").nullable().optional(),
15
- material_request: z.string().describe("Reference to the source Material Request.").nullable().optional(),
16
- material_request_item: z.string().describe("Reference to the specific Material Request item line.").nullable().optional()
6
+ qty: z.preprocess((value) => value === null ? void 0 : value, z.number().describe("Quantity to purchase.").optional()),
7
+ uom: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Unit of measurement (e.g., 'Nos', 'Kg').").optional()),
8
+ rate: z.preprocess((value) => value === null ? void 0 : value, z.number().describe("Price per unit.").optional()),
9
+ amount: z.preprocess((value) => value === null ? void 0 : value, z.number().describe("Total amount for this item (qty * rate).").optional()),
10
+ item_code: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Item code/SKU from the Material Request.").optional()),
11
+ item_name: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Display name of the item.").optional()),
12
+ warehouse: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Target warehouse for delivery.").optional()),
13
+ description: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Item description.").optional()),
14
+ schedule_date: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Expected delivery date for this item.").optional()),
15
+ material_request: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Reference to the source Material Request.").optional()),
16
+ material_request_item: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Reference to the specific Material Request item line.").optional())
17
17
  }).passthrough().describe("Item entry in a Purchase Order.");
18
18
  const ErpnextMakePurchaseOrder_PurchaseOrderDocumentSchema = z.object({
19
- name: z.string().describe("Purchase Order name/ID (e.g., 'PO-2026-00001').").nullable().optional(),
20
- items: z.array(ErpnextMakePurchaseOrder_PurchaseOrderItemSchema).describe("List of items in the Purchase Order.").nullable().optional(),
21
- owner: z.string().describe("User who created the document.").nullable().optional(),
22
- company: z.string().describe("Company making the purchase.").nullable().optional(),
23
- doctype: z.string().describe("Document type, always 'Purchase Order'.").nullable().optional(),
24
- creation: z.string().describe("ISO timestamp when document was created.").nullable().optional(),
25
- modified: z.string().describe("ISO timestamp when document was last modified.").nullable().optional(),
26
- supplier: z.string().describe("Supplier name to purchase from.").nullable().optional(),
27
- docstatus: z.number().int().describe("Document status: 0=Draft, 1=Submitted, 2=Cancelled.").nullable().optional(),
28
- schedule_date: z.string().describe("Expected delivery date for the order.").nullable().optional(),
29
- transaction_date: z.string().describe("Date of the purchase order transaction.").nullable().optional()
19
+ name: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Purchase Order name/ID (e.g., 'PO-2026-00001').").optional()),
20
+ items: z.preprocess((value) => value === null ? void 0 : value, z.array(ErpnextMakePurchaseOrder_PurchaseOrderItemSchema).describe("List of items in the Purchase Order.").optional()),
21
+ owner: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("User who created the document.").optional()),
22
+ company: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Company making the purchase.").optional()),
23
+ doctype: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Document type, always 'Purchase Order'.").optional()),
24
+ creation: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("ISO timestamp when document was created.").optional()),
25
+ modified: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("ISO timestamp when document was last modified.").optional()),
26
+ supplier: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Supplier name to purchase from.").optional()),
27
+ docstatus: z.preprocess((value) => value === null ? void 0 : value, z.number().int().describe("Document status: 0=Draft, 1=Submitted, 2=Cancelled.").optional()),
28
+ schedule_date: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Expected delivery date for the order.").optional()),
29
+ transaction_date: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Date of the purchase order transaction.").optional())
30
30
  }).passthrough().describe("Purchase Order document structure returned by the API.");
31
31
  const erpnextMakePurchaseOrder = action("ERPNEXT_MAKE_PURCHASE_ORDER", {
32
32
  slug: "erpnext-make-purchase-order",
@@ -1 +1 @@
1
- {"version":3,"file":"make-purchase-order.mjs","names":[],"sources":["../../src/actions/make-purchase-order.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextMakePurchaseOrderInput: z.ZodTypeAny = z.object({\n source_name: z.string().describe(\"Material Request name/ID from which to create the Purchase Order. The Material Request must exist and be of type 'Purchase' with submitted state (docstatus=1). Example: 'MAT-MR-2026-00001', 'MR-00123'.\"),\n}).describe(\"Request to create a Purchase Order from a Material Request.\");\nconst ErpnextMakePurchaseOrder_PurchaseOrderItemSchema: z.ZodTypeAny = z.object({\n qty: z.number().describe(\"Quantity to purchase.\").nullable().optional(),\n uom: z.string().describe(\"Unit of measurement (e.g., 'Nos', 'Kg').\").nullable().optional(),\n rate: z.number().describe(\"Price per unit.\").nullable().optional(),\n amount: z.number().describe(\"Total amount for this item (qty * rate).\").nullable().optional(),\n item_code: z.string().describe(\"Item code/SKU from the Material Request.\").nullable().optional(),\n item_name: z.string().describe(\"Display name of the item.\").nullable().optional(),\n warehouse: z.string().describe(\"Target warehouse for delivery.\").nullable().optional(),\n description: z.string().describe(\"Item description.\").nullable().optional(),\n schedule_date: z.string().describe(\"Expected delivery date for this item.\").nullable().optional(),\n material_request: z.string().describe(\"Reference to the source Material Request.\").nullable().optional(),\n material_request_item: z.string().describe(\"Reference to the specific Material Request item line.\").nullable().optional(),\n}).passthrough().describe(\"Item entry in a Purchase Order.\");\nconst ErpnextMakePurchaseOrder_PurchaseOrderDocumentSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Purchase Order name/ID (e.g., 'PO-2026-00001').\").nullable().optional(),\n items: z.array(ErpnextMakePurchaseOrder_PurchaseOrderItemSchema).describe(\"List of items in the Purchase Order.\").nullable().optional(),\n owner: z.string().describe(\"User who created the document.\").nullable().optional(),\n company: z.string().describe(\"Company making the purchase.\").nullable().optional(),\n doctype: z.string().describe(\"Document type, always 'Purchase Order'.\").nullable().optional(),\n creation: z.string().describe(\"ISO timestamp when document was created.\").nullable().optional(),\n modified: z.string().describe(\"ISO timestamp when document was last modified.\").nullable().optional(),\n supplier: z.string().describe(\"Supplier name to purchase from.\").nullable().optional(),\n docstatus: z.number().int().describe(\"Document status: 0=Draft, 1=Submitted, 2=Cancelled.\").nullable().optional(),\n schedule_date: z.string().describe(\"Expected delivery date for the order.\").nullable().optional(),\n transaction_date: z.string().describe(\"Date of the purchase order transaction.\").nullable().optional(),\n}).passthrough().describe(\"Purchase Order document structure returned by the API.\");\nexport const ErpnextMakePurchaseOrderOutput: z.ZodTypeAny = z.object({\n message: ErpnextMakePurchaseOrder_PurchaseOrderDocumentSchema.nullable(),\n}).describe(\"Response containing the created Purchase Order draft document.\");\n\nexport const erpnextMakePurchaseOrder = action(\"ERPNEXT_MAKE_PURCHASE_ORDER\", {\n slug: \"erpnext-make-purchase-order\",\n name: \"Make Purchase Order\",\n description: \"Create a draft Purchase Order from an existing Material Request in ERPNext. Use when you need to initiate procurement of items from an approved material request. The created Purchase Order will be in draft state and can be modified before submission.\",\n input: ErpnextMakePurchaseOrderInput,\n output: ErpnextMakePurchaseOrderOutput,\n});\n"],"mappings":"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"}
1
+ {"version":3,"file":"make-purchase-order.mjs","names":[],"sources":["../../src/actions/make-purchase-order.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextMakePurchaseOrderInput = z.object({\n source_name: z.string().describe(\"Material Request name/ID from which to create the Purchase Order. The Material Request must exist and be of type 'Purchase' with submitted state (docstatus=1). Example: 'MAT-MR-2026-00001', 'MR-00123'.\"),\n}).describe(\"Request to create a Purchase Order from a Material Request.\");\nconst ErpnextMakePurchaseOrder_PurchaseOrderItemSchema = z.object({\n qty: z.preprocess((value) => (value === null ? undefined : value), z.number().describe(\"Quantity to purchase.\").optional()),\n uom: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Unit of measurement (e.g., 'Nos', 'Kg').\").optional()),\n rate: z.preprocess((value) => (value === null ? undefined : value), z.number().describe(\"Price per unit.\").optional()),\n amount: z.preprocess((value) => (value === null ? undefined : value), z.number().describe(\"Total amount for this item (qty * rate).\").optional()),\n item_code: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Item code/SKU from the Material Request.\").optional()),\n item_name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Display name of the item.\").optional()),\n warehouse: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Target warehouse for delivery.\").optional()),\n description: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Item description.\").optional()),\n schedule_date: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Expected delivery date for this item.\").optional()),\n material_request: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Reference to the source Material Request.\").optional()),\n material_request_item: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Reference to the specific Material Request item line.\").optional()),\n}).passthrough().describe(\"Item entry in a Purchase Order.\");\nconst ErpnextMakePurchaseOrder_PurchaseOrderDocumentSchema = z.object({\n name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Purchase Order name/ID (e.g., 'PO-2026-00001').\").optional()),\n items: z.preprocess((value) => (value === null ? undefined : value), z.array(ErpnextMakePurchaseOrder_PurchaseOrderItemSchema).describe(\"List of items in the Purchase Order.\").optional()),\n owner: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"User who created the document.\").optional()),\n company: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Company making the purchase.\").optional()),\n doctype: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Document type, always 'Purchase Order'.\").optional()),\n creation: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"ISO timestamp when document was created.\").optional()),\n modified: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"ISO timestamp when document was last modified.\").optional()),\n supplier: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Supplier name to purchase from.\").optional()),\n docstatus: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Document status: 0=Draft, 1=Submitted, 2=Cancelled.\").optional()),\n schedule_date: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Expected delivery date for the order.\").optional()),\n transaction_date: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Date of the purchase order transaction.\").optional()),\n}).passthrough().describe(\"Purchase Order document structure returned by the API.\");\nexport const ErpnextMakePurchaseOrderOutput = z.object({\n message: ErpnextMakePurchaseOrder_PurchaseOrderDocumentSchema.nullable(),\n}).describe(\"Response containing the created Purchase Order draft document.\");\n\nexport const erpnextMakePurchaseOrder = action(\"ERPNEXT_MAKE_PURCHASE_ORDER\", {\n slug: \"erpnext-make-purchase-order\",\n name: \"Make Purchase Order\",\n description: \"Create a draft Purchase Order from an existing Material Request in ERPNext. Use when you need to initiate procurement of items from an approved material request. The created Purchase Order will be in draft state and can be modified before submission.\",\n input: ErpnextMakePurchaseOrderInput,\n output: ErpnextMakePurchaseOrderOutput,\n});\n"],"mappings":"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"}
@@ -3,19 +3,19 @@ let zod = require("zod");
3
3
  //#region src/actions/make-sales-invoice.ts
4
4
  const ErpnextMakeSalesInvoiceInput = zod.z.object({ source_name: zod.z.string().describe("Sales Order name/ID to convert into a Sales Invoice. Must be a valid Sales Order identifier (e.g., 'SAL-ORD-2026-00001'). The Sales Order should exist in the system and be in a valid state for invoice creation.") }).describe("Request parameters for creating a Sales Invoice from a Sales Order.");
5
5
  const ErpnextMakeSalesInvoice_SalesInvoiceDataSchema = zod.z.object({
6
- name: zod.z.string().describe("Unique identifier/name of the created Sales Invoice document.").nullable().optional(),
7
- items: zod.z.array(zod.z.object({})).describe("List of items in the Sales Invoice with details like item_code, qty, rate, amount.").nullable().optional(),
8
- owner: zod.z.string().describe("User who created the Sales Invoice.").nullable().optional(),
9
- company: zod.z.string().describe("Company name for which the Sales Invoice is created.").nullable().optional(),
10
- doctype: zod.z.string().describe("Document type, typically 'Sales Invoice'.").nullable().optional(),
11
- creation: zod.z.string().describe("ISO timestamp when the Sales Invoice was created.").nullable().optional(),
12
- customer: zod.z.string().describe("Customer name associated with the Sales Invoice.").nullable().optional(),
13
- due_date: zod.z.string().describe("Payment due date for the Sales Invoice.").nullable().optional(),
14
- modified: zod.z.string().describe("ISO timestamp when the Sales Invoice was last modified.").nullable().optional(),
15
- docstatus: zod.z.number().int().describe("Document status: 0=Draft, 1=Submitted, 2=Cancelled.").nullable().optional(),
16
- grand_total: zod.z.number().describe("Total amount of the Sales Invoice including taxes.").nullable().optional(),
17
- modified_by: zod.z.string().describe("User who last modified the Sales Invoice.").nullable().optional(),
18
- posting_date: zod.z.string().describe("Date when the Sales Invoice is posted.").nullable().optional()
6
+ name: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Unique identifier/name of the created Sales Invoice document.").optional()),
7
+ items: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.array(zod.z.object({})).describe("List of items in the Sales Invoice with details like item_code, qty, rate, amount.").optional()),
8
+ owner: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("User who created the Sales Invoice.").optional()),
9
+ company: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Company name for which the Sales Invoice is created.").optional()),
10
+ doctype: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Document type, typically 'Sales Invoice'.").optional()),
11
+ creation: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("ISO timestamp when the Sales Invoice was created.").optional()),
12
+ customer: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Customer name associated with the Sales Invoice.").optional()),
13
+ due_date: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Payment due date for the Sales Invoice.").optional()),
14
+ modified: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("ISO timestamp when the Sales Invoice was last modified.").optional()),
15
+ docstatus: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().int().describe("Document status: 0=Draft, 1=Submitted, 2=Cancelled.").optional()),
16
+ grand_total: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().describe("Total amount of the Sales Invoice including taxes.").optional()),
17
+ modified_by: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("User who last modified the Sales Invoice.").optional()),
18
+ posting_date: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Date when the Sales Invoice is posted.").optional())
19
19
  }).passthrough().describe("Sales Invoice document data returned by ERPNext.");
20
20
  const ErpnextMakeSalesInvoiceOutput = zod.z.object({ message: ErpnextMakeSalesInvoice_SalesInvoiceDataSchema.nullable() }).describe("Response containing the created Sales Invoice document.");
21
21
  const erpnextMakeSalesInvoice = require_action.action("ERPNEXT_MAKE_SALES_INVOICE", {
@@ -1 +1 @@
1
- {"version":3,"file":"make-sales-invoice.cjs","names":["z","action"],"sources":["../../src/actions/make-sales-invoice.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextMakeSalesInvoiceInput: z.ZodTypeAny = z.object({\n source_name: z.string().describe(\"Sales Order name/ID to convert into a Sales Invoice. Must be a valid Sales Order identifier (e.g., 'SAL-ORD-2026-00001'). The Sales Order should exist in the system and be in a valid state for invoice creation.\"),\n}).describe(\"Request parameters for creating a Sales Invoice from a Sales Order.\");\nconst ErpnextMakeSalesInvoice_SalesInvoiceDataSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Unique identifier/name of the created Sales Invoice document.\").nullable().optional(),\n items: z.array(z.object({})).describe(\"List of items in the Sales Invoice with details like item_code, qty, rate, amount.\").nullable().optional(),\n owner: z.string().describe(\"User who created the Sales Invoice.\").nullable().optional(),\n company: z.string().describe(\"Company name for which the Sales Invoice is created.\").nullable().optional(),\n doctype: z.string().describe(\"Document type, typically 'Sales Invoice'.\").nullable().optional(),\n creation: z.string().describe(\"ISO timestamp when the Sales Invoice was created.\").nullable().optional(),\n customer: z.string().describe(\"Customer name associated with the Sales Invoice.\").nullable().optional(),\n due_date: z.string().describe(\"Payment due date for the Sales Invoice.\").nullable().optional(),\n modified: z.string().describe(\"ISO timestamp when the Sales Invoice was last modified.\").nullable().optional(),\n docstatus: z.number().int().describe(\"Document status: 0=Draft, 1=Submitted, 2=Cancelled.\").nullable().optional(),\n grand_total: z.number().describe(\"Total amount of the Sales Invoice including taxes.\").nullable().optional(),\n modified_by: z.string().describe(\"User who last modified the Sales Invoice.\").nullable().optional(),\n posting_date: z.string().describe(\"Date when the Sales Invoice is posted.\").nullable().optional(),\n}).passthrough().describe(\"Sales Invoice document data returned by ERPNext.\");\nexport const ErpnextMakeSalesInvoiceOutput: z.ZodTypeAny = z.object({\n message: ErpnextMakeSalesInvoice_SalesInvoiceDataSchema.nullable(),\n}).describe(\"Response containing the created Sales Invoice document.\");\n\nexport const erpnextMakeSalesInvoice = action(\"ERPNEXT_MAKE_SALES_INVOICE\", {\n slug: \"erpnext-make-sales-invoice\",\n name: \"Make Sales Invoice\",\n description: \"Tool to create a Sales Invoice from an existing Sales Order in ERPNext. Use when you need to generate an invoice for a confirmed sales order. The created invoice will be in draft state and can be submitted separately if needed.\",\n input: ErpnextMakeSalesInvoiceInput,\n output: ErpnextMakeSalesInvoiceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA6CA,IAAAA,EAAE,OAAO,EACjE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oNAAoN,EACvP,CAAC,CAAC,CAAC,SAAS,qEAAqE;AACjF,MAAM,iDAA+DA,IAAAA,EAAE,OAAO;CAC5E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,OAAOA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChJ,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAAkD;AAC5E,MAAa,gCAA8CA,IAAAA,EAAE,OAAO,EAClE,SAAS,+CAA+C,SAAS,EACnE,CAAC,CAAC,CAAC,SAAS,yDAAyD;AAErE,MAAa,0BAA0BC,eAAAA,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"make-sales-invoice.cjs","names":["z","action"],"sources":["../../src/actions/make-sales-invoice.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextMakeSalesInvoiceInput = z.object({\n source_name: z.string().describe(\"Sales Order name/ID to convert into a Sales Invoice. Must be a valid Sales Order identifier (e.g., 'SAL-ORD-2026-00001'). The Sales Order should exist in the system and be in a valid state for invoice creation.\"),\n}).describe(\"Request parameters for creating a Sales Invoice from a Sales Order.\");\nconst ErpnextMakeSalesInvoice_SalesInvoiceDataSchema = z.object({\n name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Unique identifier/name of the created Sales Invoice document.\").optional()),\n items: z.preprocess((value) => (value === null ? undefined : value), z.array(z.object({})).describe(\"List of items in the Sales Invoice with details like item_code, qty, rate, amount.\").optional()),\n owner: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"User who created the Sales Invoice.\").optional()),\n company: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Company name for which the Sales Invoice is created.\").optional()),\n doctype: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Document type, typically 'Sales Invoice'.\").optional()),\n creation: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"ISO timestamp when the Sales Invoice was created.\").optional()),\n customer: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Customer name associated with the Sales Invoice.\").optional()),\n due_date: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Payment due date for the Sales Invoice.\").optional()),\n modified: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"ISO timestamp when the Sales Invoice was last modified.\").optional()),\n docstatus: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Document status: 0=Draft, 1=Submitted, 2=Cancelled.\").optional()),\n grand_total: z.preprocess((value) => (value === null ? undefined : value), z.number().describe(\"Total amount of the Sales Invoice including taxes.\").optional()),\n modified_by: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"User who last modified the Sales Invoice.\").optional()),\n posting_date: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Date when the Sales Invoice is posted.\").optional()),\n}).passthrough().describe(\"Sales Invoice document data returned by ERPNext.\");\nexport const ErpnextMakeSalesInvoiceOutput = z.object({\n message: ErpnextMakeSalesInvoice_SalesInvoiceDataSchema.nullable(),\n}).describe(\"Response containing the created Sales Invoice document.\");\n\nexport const erpnextMakeSalesInvoice = action(\"ERPNEXT_MAKE_SALES_INVOICE\", {\n slug: \"erpnext-make-sales-invoice\",\n name: \"Make Sales Invoice\",\n description: \"Tool to create a Sales Invoice from an existing Sales Order in ERPNext. Use when you need to generate an invoice for a confirmed sales order. The created invoice will be in draft state and can be submitted separately if needed.\",\n input: ErpnextMakeSalesInvoiceInput,\n output: ErpnextMakeSalesInvoiceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oNAAoN,EACvP,CAAC,CAAC,CAAC,SAAS,qEAAqE;AACjF,MAAM,iDAAiDA,IAAAA,EAAE,OAAO;CAC9D,MAAMA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC;CACnK,OAAOA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS,CAAC;CACpM,OAAOA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC;CAC1I,SAASA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC;CAC7J,SAASA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC;CAClJ,UAAUA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC;CAC3J,UAAUA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC;CAC1J,UAAUA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC;CACjJ,UAAUA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC;CACjK,WAAWA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC;CACpK,aAAaA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC;CAC/J,aAAaA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC;CACtJ,cAAcA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC;AACtJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAAkD;AAC5E,MAAa,gCAAgCA,IAAAA,EAAE,OAAO,EACpD,SAAS,+CAA+C,SAAS,EACnE,CAAC,CAAC,CAAC,SAAS,yDAAyD;AAErE,MAAa,0BAA0BC,eAAAA,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,46 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/make-sales-invoice.d.ts
4
- declare const ErpnextMakeSalesInvoiceInput: z.ZodTypeAny;
5
- declare const ErpnextMakeSalesInvoiceOutput: z.ZodTypeAny;
6
- declare const erpnextMakeSalesInvoice: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const ErpnextMakeSalesInvoiceInput: z.ZodObject<{
5
+ source_name: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const ErpnextMakeSalesInvoiceOutput: z.ZodObject<{
8
+ message: z.ZodNullable<z.ZodObject<{
9
+ name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
10
+ items: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodObject<{}, z.core.$strip>>>>;
11
+ owner: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
12
+ company: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
13
+ doctype: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
14
+ creation: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
15
+ customer: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
16
+ due_date: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
17
+ modified: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
18
+ docstatus: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
19
+ grand_total: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
20
+ modified_by: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
21
+ posting_date: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
22
+ }, z.core.$loose>>;
23
+ }, z.core.$strip>;
24
+ declare const erpnextMakeSalesInvoice: import("@keystrokehq/action").WorkflowActionDefinition<{
25
+ source_name: string;
26
+ }, {
27
+ message: {
28
+ [x: string]: unknown;
29
+ name?: string | undefined;
30
+ items?: Record<string, never>[] | undefined;
31
+ owner?: string | undefined;
32
+ company?: string | undefined;
33
+ doctype?: string | undefined;
34
+ creation?: string | undefined;
35
+ customer?: string | undefined;
36
+ due_date?: string | undefined;
37
+ modified?: string | undefined;
38
+ docstatus?: number | undefined;
39
+ grand_total?: number | undefined;
40
+ modified_by?: string | undefined;
41
+ posting_date?: string | undefined;
42
+ } | null;
43
+ }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
44
  //#endregion
8
45
  export { erpnextMakeSalesInvoice };
9
46
  //# sourceMappingURL=make-sales-invoice.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"make-sales-invoice.d.cts","names":[],"sources":["../../src/actions/make-sales-invoice.ts"],"mappings":";;;cAIa,4BAAA,EAA8B,CAAA,CAAE,UAEqC;AAAA,cAgBrE,6BAAA,EAA+B,CAAA,CAAE,UAEwB;AAAA,cAEzD,uBAAA,gCAAuB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"make-sales-invoice.d.cts","names":[],"sources":["../../src/actions/make-sales-invoice.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAkB5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAI7B,uBAAA,gCAAuB,wBAAA;;;;;;YAMlC,MAAA"}
@@ -1,9 +1,46 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/make-sales-invoice.d.ts
4
- declare const ErpnextMakeSalesInvoiceInput: z.ZodTypeAny;
5
- declare const ErpnextMakeSalesInvoiceOutput: z.ZodTypeAny;
6
- declare const erpnextMakeSalesInvoice: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const ErpnextMakeSalesInvoiceInput: z.ZodObject<{
5
+ source_name: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const ErpnextMakeSalesInvoiceOutput: z.ZodObject<{
8
+ message: z.ZodNullable<z.ZodObject<{
9
+ name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
10
+ items: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodObject<{}, z.core.$strip>>>>;
11
+ owner: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
12
+ company: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
13
+ doctype: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
14
+ creation: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
15
+ customer: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
16
+ due_date: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
17
+ modified: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
18
+ docstatus: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
19
+ grand_total: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
20
+ modified_by: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
21
+ posting_date: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
22
+ }, z.core.$loose>>;
23
+ }, z.core.$strip>;
24
+ declare const erpnextMakeSalesInvoice: import("@keystrokehq/action").WorkflowActionDefinition<{
25
+ source_name: string;
26
+ }, {
27
+ message: {
28
+ [x: string]: unknown;
29
+ name?: string | undefined;
30
+ items?: Record<string, never>[] | undefined;
31
+ owner?: string | undefined;
32
+ company?: string | undefined;
33
+ doctype?: string | undefined;
34
+ creation?: string | undefined;
35
+ customer?: string | undefined;
36
+ due_date?: string | undefined;
37
+ modified?: string | undefined;
38
+ docstatus?: number | undefined;
39
+ grand_total?: number | undefined;
40
+ modified_by?: string | undefined;
41
+ posting_date?: string | undefined;
42
+ } | null;
43
+ }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
44
  //#endregion
8
45
  export { erpnextMakeSalesInvoice };
9
46
  //# sourceMappingURL=make-sales-invoice.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"make-sales-invoice.d.mts","names":[],"sources":["../../src/actions/make-sales-invoice.ts"],"mappings":";;;cAIa,4BAAA,EAA8B,CAAA,CAAE,UAEqC;AAAA,cAgBrE,6BAAA,EAA+B,CAAA,CAAE,UAEwB;AAAA,cAEzD,uBAAA,gCAAuB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"make-sales-invoice.d.mts","names":[],"sources":["../../src/actions/make-sales-invoice.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAkB5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAI7B,uBAAA,gCAAuB,wBAAA;;;;;;YAMlC,MAAA"}
@@ -3,19 +3,19 @@ import { z } from "zod";
3
3
  //#region src/actions/make-sales-invoice.ts
4
4
  const ErpnextMakeSalesInvoiceInput = z.object({ source_name: z.string().describe("Sales Order name/ID to convert into a Sales Invoice. Must be a valid Sales Order identifier (e.g., 'SAL-ORD-2026-00001'). The Sales Order should exist in the system and be in a valid state for invoice creation.") }).describe("Request parameters for creating a Sales Invoice from a Sales Order.");
5
5
  const ErpnextMakeSalesInvoice_SalesInvoiceDataSchema = z.object({
6
- name: z.string().describe("Unique identifier/name of the created Sales Invoice document.").nullable().optional(),
7
- items: z.array(z.object({})).describe("List of items in the Sales Invoice with details like item_code, qty, rate, amount.").nullable().optional(),
8
- owner: z.string().describe("User who created the Sales Invoice.").nullable().optional(),
9
- company: z.string().describe("Company name for which the Sales Invoice is created.").nullable().optional(),
10
- doctype: z.string().describe("Document type, typically 'Sales Invoice'.").nullable().optional(),
11
- creation: z.string().describe("ISO timestamp when the Sales Invoice was created.").nullable().optional(),
12
- customer: z.string().describe("Customer name associated with the Sales Invoice.").nullable().optional(),
13
- due_date: z.string().describe("Payment due date for the Sales Invoice.").nullable().optional(),
14
- modified: z.string().describe("ISO timestamp when the Sales Invoice was last modified.").nullable().optional(),
15
- docstatus: z.number().int().describe("Document status: 0=Draft, 1=Submitted, 2=Cancelled.").nullable().optional(),
16
- grand_total: z.number().describe("Total amount of the Sales Invoice including taxes.").nullable().optional(),
17
- modified_by: z.string().describe("User who last modified the Sales Invoice.").nullable().optional(),
18
- posting_date: z.string().describe("Date when the Sales Invoice is posted.").nullable().optional()
6
+ name: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Unique identifier/name of the created Sales Invoice document.").optional()),
7
+ items: z.preprocess((value) => value === null ? void 0 : value, z.array(z.object({})).describe("List of items in the Sales Invoice with details like item_code, qty, rate, amount.").optional()),
8
+ owner: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("User who created the Sales Invoice.").optional()),
9
+ company: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Company name for which the Sales Invoice is created.").optional()),
10
+ doctype: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Document type, typically 'Sales Invoice'.").optional()),
11
+ creation: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("ISO timestamp when the Sales Invoice was created.").optional()),
12
+ customer: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Customer name associated with the Sales Invoice.").optional()),
13
+ due_date: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Payment due date for the Sales Invoice.").optional()),
14
+ modified: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("ISO timestamp when the Sales Invoice was last modified.").optional()),
15
+ docstatus: z.preprocess((value) => value === null ? void 0 : value, z.number().int().describe("Document status: 0=Draft, 1=Submitted, 2=Cancelled.").optional()),
16
+ grand_total: z.preprocess((value) => value === null ? void 0 : value, z.number().describe("Total amount of the Sales Invoice including taxes.").optional()),
17
+ modified_by: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("User who last modified the Sales Invoice.").optional()),
18
+ posting_date: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Date when the Sales Invoice is posted.").optional())
19
19
  }).passthrough().describe("Sales Invoice document data returned by ERPNext.");
20
20
  const erpnextMakeSalesInvoice = action("ERPNEXT_MAKE_SALES_INVOICE", {
21
21
  slug: "erpnext-make-sales-invoice",
@@ -1 +1 @@
1
- {"version":3,"file":"make-sales-invoice.mjs","names":[],"sources":["../../src/actions/make-sales-invoice.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextMakeSalesInvoiceInput: z.ZodTypeAny = z.object({\n source_name: z.string().describe(\"Sales Order name/ID to convert into a Sales Invoice. Must be a valid Sales Order identifier (e.g., 'SAL-ORD-2026-00001'). The Sales Order should exist in the system and be in a valid state for invoice creation.\"),\n}).describe(\"Request parameters for creating a Sales Invoice from a Sales Order.\");\nconst ErpnextMakeSalesInvoice_SalesInvoiceDataSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Unique identifier/name of the created Sales Invoice document.\").nullable().optional(),\n items: z.array(z.object({})).describe(\"List of items in the Sales Invoice with details like item_code, qty, rate, amount.\").nullable().optional(),\n owner: z.string().describe(\"User who created the Sales Invoice.\").nullable().optional(),\n company: z.string().describe(\"Company name for which the Sales Invoice is created.\").nullable().optional(),\n doctype: z.string().describe(\"Document type, typically 'Sales Invoice'.\").nullable().optional(),\n creation: z.string().describe(\"ISO timestamp when the Sales Invoice was created.\").nullable().optional(),\n customer: z.string().describe(\"Customer name associated with the Sales Invoice.\").nullable().optional(),\n due_date: z.string().describe(\"Payment due date for the Sales Invoice.\").nullable().optional(),\n modified: z.string().describe(\"ISO timestamp when the Sales Invoice was last modified.\").nullable().optional(),\n docstatus: z.number().int().describe(\"Document status: 0=Draft, 1=Submitted, 2=Cancelled.\").nullable().optional(),\n grand_total: z.number().describe(\"Total amount of the Sales Invoice including taxes.\").nullable().optional(),\n modified_by: z.string().describe(\"User who last modified the Sales Invoice.\").nullable().optional(),\n posting_date: z.string().describe(\"Date when the Sales Invoice is posted.\").nullable().optional(),\n}).passthrough().describe(\"Sales Invoice document data returned by ERPNext.\");\nexport const ErpnextMakeSalesInvoiceOutput: z.ZodTypeAny = z.object({\n message: ErpnextMakeSalesInvoice_SalesInvoiceDataSchema.nullable(),\n}).describe(\"Response containing the created Sales Invoice document.\");\n\nexport const erpnextMakeSalesInvoice = action(\"ERPNEXT_MAKE_SALES_INVOICE\", {\n slug: \"erpnext-make-sales-invoice\",\n name: \"Make Sales Invoice\",\n description: \"Tool to create a Sales Invoice from an existing Sales Order in ERPNext. Use when you need to generate an invoice for a confirmed sales order. The created invoice will be in draft state and can be submitted separately if needed.\",\n input: ErpnextMakeSalesInvoiceInput,\n output: ErpnextMakeSalesInvoiceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA6C,EAAE,OAAO,EACjE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,oNAAoN,EACvP,CAAC,CAAC,CAAC,SAAS,qEAAqE;AACjF,MAAM,iDAA+D,EAAE,OAAO;CAC5E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChJ,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAAkD;AAK5E,MAAa,0BAA0B,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATyD,EAAE,OAAO,EAClE,SAAS,+CAA+C,SAAS,EACnE,CAAC,CAAC,CAAC,SAAS,yDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"make-sales-invoice.mjs","names":[],"sources":["../../src/actions/make-sales-invoice.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextMakeSalesInvoiceInput = z.object({\n source_name: z.string().describe(\"Sales Order name/ID to convert into a Sales Invoice. Must be a valid Sales Order identifier (e.g., 'SAL-ORD-2026-00001'). The Sales Order should exist in the system and be in a valid state for invoice creation.\"),\n}).describe(\"Request parameters for creating a Sales Invoice from a Sales Order.\");\nconst ErpnextMakeSalesInvoice_SalesInvoiceDataSchema = z.object({\n name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Unique identifier/name of the created Sales Invoice document.\").optional()),\n items: z.preprocess((value) => (value === null ? undefined : value), z.array(z.object({})).describe(\"List of items in the Sales Invoice with details like item_code, qty, rate, amount.\").optional()),\n owner: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"User who created the Sales Invoice.\").optional()),\n company: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Company name for which the Sales Invoice is created.\").optional()),\n doctype: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Document type, typically 'Sales Invoice'.\").optional()),\n creation: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"ISO timestamp when the Sales Invoice was created.\").optional()),\n customer: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Customer name associated with the Sales Invoice.\").optional()),\n due_date: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Payment due date for the Sales Invoice.\").optional()),\n modified: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"ISO timestamp when the Sales Invoice was last modified.\").optional()),\n docstatus: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Document status: 0=Draft, 1=Submitted, 2=Cancelled.\").optional()),\n grand_total: z.preprocess((value) => (value === null ? undefined : value), z.number().describe(\"Total amount of the Sales Invoice including taxes.\").optional()),\n modified_by: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"User who last modified the Sales Invoice.\").optional()),\n posting_date: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Date when the Sales Invoice is posted.\").optional()),\n}).passthrough().describe(\"Sales Invoice document data returned by ERPNext.\");\nexport const ErpnextMakeSalesInvoiceOutput = z.object({\n message: ErpnextMakeSalesInvoice_SalesInvoiceDataSchema.nullable(),\n}).describe(\"Response containing the created Sales Invoice document.\");\n\nexport const erpnextMakeSalesInvoice = action(\"ERPNEXT_MAKE_SALES_INVOICE\", {\n slug: \"erpnext-make-sales-invoice\",\n name: \"Make Sales Invoice\",\n description: \"Tool to create a Sales Invoice from an existing Sales Order in ERPNext. Use when you need to generate an invoice for a confirmed sales order. The created invoice will be in draft state and can be submitted separately if needed.\",\n input: ErpnextMakeSalesInvoiceInput,\n output: ErpnextMakeSalesInvoiceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+B,EAAE,OAAO,EACnD,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,oNAAoN,EACvP,CAAC,CAAC,CAAC,SAAS,qEAAqE;AACjF,MAAM,iDAAiD,EAAE,OAAO;CAC9D,MAAM,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC;CACnK,OAAO,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS,CAAC;CACpM,OAAO,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC;CAC1I,SAAS,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC;CAC7J,SAAS,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC;CAClJ,UAAU,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC;CAC3J,UAAU,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC;CAC1J,UAAU,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC;CACjJ,UAAU,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC;CACjK,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,oDAAoD,CAAC,CAAC,SAAS,CAAC;CAC/J,aAAa,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC;CACtJ,cAAc,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC;AACtJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAAkD;AAK5E,MAAa,0BAA0B,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT2C,EAAE,OAAO,EACpD,SAAS,+CAA+C,SAAS,EACnE,CAAC,CAAC,CAAC,SAAS,yDAOF;AACV,CAAC"}
@@ -19,15 +19,15 @@ const ErpnextMakeStockEntryInput = zod.z.object({
19
19
  basic_rate: zod.z.number().describe("Valuation rate per unit of the item. Required for Material Receipt when the item has no valuation rate defined to avoid validation errors.").optional()
20
20
  }).describe("Request model for creating a Stock Entry in ERPNext.");
21
21
  const ErpnextMakeStockEntry_StockEntryDataSchema = zod.z.object({
22
- name: zod.z.string().describe("Unique identifier of the created Stock Entry document.").nullable().optional(),
23
- owner: zod.z.string().describe("User who created the Stock Entry.").nullable().optional(),
24
- doctype: zod.z.string().describe("Document type, should be 'Stock Entry'.").nullable().optional(),
25
- purpose: zod.z.string().describe("Purpose of the stock entry as set during creation.").nullable().optional(),
26
- creation: zod.z.string().describe("Timestamp when the Stock Entry was created.").nullable().optional(),
27
- modified: zod.z.string().describe("Timestamp when the Stock Entry was last modified.").nullable().optional(),
28
- docstatus: zod.z.number().int().describe("Document status: 0 = Draft, 1 = Submitted, 2 = Cancelled.").nullable().optional(),
29
- modified_by: zod.z.string().describe("User who last modified the Stock Entry.").nullable().optional(),
30
- stock_entry_type: zod.z.string().describe("Type of stock entry created.").nullable().optional()
22
+ name: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Unique identifier of the created Stock Entry document.").optional()),
23
+ owner: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("User who created the Stock Entry.").optional()),
24
+ doctype: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Document type, should be 'Stock Entry'.").optional()),
25
+ purpose: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Purpose of the stock entry as set during creation.").optional()),
26
+ creation: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Timestamp when the Stock Entry was created.").optional()),
27
+ modified: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Timestamp when the Stock Entry was last modified.").optional()),
28
+ docstatus: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().int().describe("Document status: 0 = Draft, 1 = Submitted, 2 = Cancelled.").optional()),
29
+ modified_by: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("User who last modified the Stock Entry.").optional()),
30
+ stock_entry_type: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Type of stock entry created.").optional())
31
31
  }).describe("Response data containing the created Stock Entry details.");
32
32
  const ErpnextMakeStockEntryOutput = zod.z.object({ message: ErpnextMakeStockEntry_StockEntryDataSchema.nullable() }).describe("Response containing the created Stock Entry document.");
33
33
  const erpnextMakeStockEntry = require_action.action("ERPNEXT_MAKE_STOCK_ENTRY", {
@@ -1 +1 @@
1
- {"version":3,"file":"make-stock-entry.cjs","names":["z","action"],"sources":["../../src/actions/make-stock-entry.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextMakeStockEntryInput: z.ZodTypeAny = z.object({\n qty: z.number().describe(\"Quantity of the item to be transferred, received, or issued. Must be a positive number.\"),\n source: z.string().describe(\"Source warehouse from which the item is being transferred or issued. Required for Material Transfer and Material Issue purposes.\").optional(),\n target: z.string().describe(\"Target warehouse to which the item is being transferred or received. Required for Material Transfer and Material Receipt purposes.\").optional(),\n purpose: z.enum([\"Material Receipt\", \"Material Issue\", \"Material Transfer\", \"Material Transfer for Manufacture\", \"Material Consumption for Manufacture\", \"Manufacture\", \"Repack\", \"Send to Subcontractor\"]).describe(\"Enumeration of stock entry purposes.\").optional(),\n item_code: z.string().describe(\"Item code for the stock entry. Must be a valid Item in the ERPNext system.\"),\n basic_rate: z.number().describe(\"Valuation rate per unit of the item. Required for Material Receipt when the item has no valuation rate defined to avoid validation errors.\").optional(),\n}).describe(\"Request model for creating a Stock Entry in ERPNext.\");\nconst ErpnextMakeStockEntry_StockEntryDataSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Unique identifier of the created Stock Entry document.\").nullable().optional(),\n owner: z.string().describe(\"User who created the Stock Entry.\").nullable().optional(),\n doctype: z.string().describe(\"Document type, should be 'Stock Entry'.\").nullable().optional(),\n purpose: z.string().describe(\"Purpose of the stock entry as set during creation.\").nullable().optional(),\n creation: z.string().describe(\"Timestamp when the Stock Entry was created.\").nullable().optional(),\n modified: z.string().describe(\"Timestamp when the Stock Entry was last modified.\").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 Stock Entry.\").nullable().optional(),\n stock_entry_type: z.string().describe(\"Type of stock entry created.\").nullable().optional(),\n}).describe(\"Response data containing the created Stock Entry details.\");\nexport const ErpnextMakeStockEntryOutput: z.ZodTypeAny = z.object({\n message: ErpnextMakeStockEntry_StockEntryDataSchema.nullable(),\n}).describe(\"Response containing the created Stock Entry document.\");\n\nexport const erpnextMakeStockEntry = action(\"ERPNEXT_MAKE_STOCK_ENTRY\", {\n slug: \"erpnext-make-stock-entry\",\n name: \"Make Stock Entry\",\n description: \"Tool to create a Stock Entry for material transfer, receipt, or issue in ERPNext. Use when you need to record inventory movements between warehouses or add/remove stock. For Material Receipt, include target warehouse and basic_rate. For Material Issue, include source warehouse. For Material Transfer, include both source and target warehouses.\",\n input: ErpnextMakeStockEntryInput,\n output: ErpnextMakeStockEntryOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2CA,IAAAA,EAAE,OAAO;CAC/D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF;CAClH,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kIAAkI,CAAC,CAAC,SAAS;CACzK,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oIAAoI,CAAC,CAAC,SAAS;CAC3K,SAASA,IAAAA,EAAE,KAAK;EAAC;EAAoB;EAAkB;EAAqB;EAAqC;EAAwC;EAAe;EAAU;CAAuB,CAAC,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CACtQ,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E;CAC3G,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4IAA4I,CAAC,CAAC,SAAS;AACzL,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAM,6CAA2DA,IAAAA,EAAE,OAAO;CACxE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAa,8BAA4CA,IAAAA,EAAE,OAAO,EAChE,SAAS,2CAA2C,SAAS,EAC/D,CAAC,CAAC,CAAC,SAAS,uDAAuD;AAEnE,MAAa,wBAAwBC,eAAAA,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"make-stock-entry.cjs","names":["z","action"],"sources":["../../src/actions/make-stock-entry.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextMakeStockEntryInput = z.object({\n qty: z.number().describe(\"Quantity of the item to be transferred, received, or issued. Must be a positive number.\"),\n source: z.string().describe(\"Source warehouse from which the item is being transferred or issued. Required for Material Transfer and Material Issue purposes.\").optional(),\n target: z.string().describe(\"Target warehouse to which the item is being transferred or received. Required for Material Transfer and Material Receipt purposes.\").optional(),\n purpose: z.enum([\"Material Receipt\", \"Material Issue\", \"Material Transfer\", \"Material Transfer for Manufacture\", \"Material Consumption for Manufacture\", \"Manufacture\", \"Repack\", \"Send to Subcontractor\"]).describe(\"Enumeration of stock entry purposes.\").optional(),\n item_code: z.string().describe(\"Item code for the stock entry. Must be a valid Item in the ERPNext system.\"),\n basic_rate: z.number().describe(\"Valuation rate per unit of the item. Required for Material Receipt when the item has no valuation rate defined to avoid validation errors.\").optional(),\n}).describe(\"Request model for creating a Stock Entry in ERPNext.\");\nconst ErpnextMakeStockEntry_StockEntryDataSchema = z.object({\n name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Unique identifier of the created Stock Entry document.\").optional()),\n owner: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"User who created the Stock Entry.\").optional()),\n doctype: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Document type, should be 'Stock Entry'.\").optional()),\n purpose: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Purpose of the stock entry as set during creation.\").optional()),\n creation: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Timestamp when the Stock Entry was created.\").optional()),\n modified: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Timestamp when the Stock Entry was last modified.\").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 Stock Entry.\").optional()),\n stock_entry_type: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Type of stock entry created.\").optional()),\n}).describe(\"Response data containing the created Stock Entry details.\");\nexport const ErpnextMakeStockEntryOutput = z.object({\n message: ErpnextMakeStockEntry_StockEntryDataSchema.nullable(),\n}).describe(\"Response containing the created Stock Entry document.\");\n\nexport const erpnextMakeStockEntry = action(\"ERPNEXT_MAKE_STOCK_ENTRY\", {\n slug: \"erpnext-make-stock-entry\",\n name: \"Make Stock Entry\",\n description: \"Tool to create a Stock Entry for material transfer, receipt, or issue in ERPNext. Use when you need to record inventory movements between warehouses or add/remove stock. For Material Receipt, include target warehouse and basic_rate. For Material Issue, include source warehouse. For Material Transfer, include both source and target warehouses.\",\n input: ErpnextMakeStockEntryInput,\n output: ErpnextMakeStockEntryOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF;CAClH,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kIAAkI,CAAC,CAAC,SAAS;CACzK,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oIAAoI,CAAC,CAAC,SAAS;CAC3K,SAASA,IAAAA,EAAE,KAAK;EAAC;EAAoB;EAAkB;EAAqB;EAAqC;EAAwC;EAAe;EAAU;CAAuB,CAAC,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CACtQ,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E;CAC3G,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4IAA4I,CAAC,CAAC,SAAS;AACzL,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAM,6CAA6CA,IAAAA,EAAE,OAAO;CAC1D,MAAMA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC;CAC5J,OAAOA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC;CACxI,SAASA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC;CAChJ,SAASA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC;CAC3J,UAAUA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC;CACrJ,UAAUA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC;CAC3J,WAAWA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC;CAC1K,aAAaA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC;CACpJ,kBAAkBA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC;AAChJ,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,SAAS,2CAA2C,SAAS,EAC/D,CAAC,CAAC,CAAC,SAAS,uDAAuD;AAEnE,MAAa,wBAAwBC,eAAAA,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,56 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/make-stock-entry.d.ts
4
- declare const ErpnextMakeStockEntryInput: z.ZodTypeAny;
5
- declare const ErpnextMakeStockEntryOutput: z.ZodTypeAny;
6
- declare const erpnextMakeStockEntry: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const ErpnextMakeStockEntryInput: z.ZodObject<{
5
+ qty: z.ZodNumber;
6
+ source: z.ZodOptional<z.ZodString>;
7
+ target: z.ZodOptional<z.ZodString>;
8
+ purpose: z.ZodOptional<z.ZodEnum<{
9
+ "Material Receipt": "Material Receipt";
10
+ "Material Issue": "Material Issue";
11
+ "Material Transfer": "Material Transfer";
12
+ "Material Transfer for Manufacture": "Material Transfer for Manufacture";
13
+ "Material Consumption for Manufacture": "Material Consumption for Manufacture";
14
+ Manufacture: "Manufacture";
15
+ Repack: "Repack";
16
+ "Send to Subcontractor": "Send to Subcontractor";
17
+ }>>;
18
+ item_code: z.ZodString;
19
+ basic_rate: z.ZodOptional<z.ZodNumber>;
20
+ }, z.core.$strip>;
21
+ declare const ErpnextMakeStockEntryOutput: z.ZodObject<{
22
+ message: z.ZodNullable<z.ZodObject<{
23
+ name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
24
+ owner: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
25
+ doctype: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
26
+ purpose: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
27
+ creation: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
28
+ modified: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
29
+ docstatus: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
30
+ modified_by: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
31
+ stock_entry_type: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
32
+ }, z.core.$strip>>;
33
+ }, z.core.$strip>;
34
+ declare const erpnextMakeStockEntry: import("@keystrokehq/action").WorkflowActionDefinition<{
35
+ qty: number;
36
+ item_code: string;
37
+ source?: string | undefined;
38
+ target?: string | undefined;
39
+ purpose?: "Material Receipt" | "Material Issue" | "Material Transfer" | "Material Transfer for Manufacture" | "Material Consumption for Manufacture" | "Manufacture" | "Repack" | "Send to Subcontractor" | undefined;
40
+ basic_rate?: number | undefined;
41
+ }, {
42
+ message: {
43
+ name?: string | undefined;
44
+ owner?: string | undefined;
45
+ doctype?: string | undefined;
46
+ purpose?: string | undefined;
47
+ creation?: string | undefined;
48
+ modified?: string | undefined;
49
+ docstatus?: number | undefined;
50
+ modified_by?: string | undefined;
51
+ stock_entry_type?: string | undefined;
52
+ } | null;
53
+ }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
54
  //#endregion
8
55
  export { erpnextMakeStockEntry };
9
56
  //# sourceMappingURL=make-stock-entry.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"make-stock-entry.d.cts","names":[],"sources":["../../src/actions/make-stock-entry.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAOwB;AAAA,cAYtD,2BAAA,EAA6B,CAAA,CAAE,UAEwB;AAAA,cAEvD,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"make-stock-entry.d.cts","names":[],"sources":["../../src/actions/make-stock-entry.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAmB1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAI3B,qBAAA,gCAAqB,wBAAA"}