@keystrokehq/erpnext 0.1.1 → 0.1.3

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 (339) 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 +6 -6
  4. package/dist/actions/add-comment.cjs.map +1 -1
  5. package/dist/actions/add-comment.d.cts +7 -19
  6. package/dist/actions/add-comment.d.mts +7 -19
  7. package/dist/actions/add-comment.mjs +6 -6
  8. package/dist/actions/add-comment.mjs.map +1 -1
  9. package/dist/actions/add-tag.cjs +1 -1
  10. package/dist/actions/add-tag.cjs.map +1 -1
  11. package/dist/actions/add-tag.d.cts +3 -5
  12. package/dist/actions/add-tag.d.mts +3 -5
  13. package/dist/actions/add-tag.mjs +1 -1
  14. package/dist/actions/add-tag.mjs.map +1 -1
  15. package/dist/actions/apply-workflow.cjs +5 -5
  16. package/dist/actions/apply-workflow.cjs.map +1 -1
  17. package/dist/actions/apply-workflow.d.cts +5 -9
  18. package/dist/actions/apply-workflow.d.cts.map +1 -1
  19. package/dist/actions/apply-workflow.d.mts +5 -9
  20. package/dist/actions/apply-workflow.d.mts.map +1 -1
  21. package/dist/actions/apply-workflow.mjs +5 -5
  22. package/dist/actions/apply-workflow.mjs.map +1 -1
  23. package/dist/actions/cancel-document.cjs +3 -3
  24. package/dist/actions/cancel-document.cjs.map +1 -1
  25. package/dist/actions/cancel-document.d.cts +4 -7
  26. package/dist/actions/cancel-document.d.cts.map +1 -1
  27. package/dist/actions/cancel-document.d.mts +4 -7
  28. package/dist/actions/cancel-document.d.mts.map +1 -1
  29. package/dist/actions/cancel-document.mjs +3 -3
  30. package/dist/actions/cancel-document.mjs.map +1 -1
  31. package/dist/actions/create-document.cjs +9 -9
  32. package/dist/actions/create-document.cjs.map +1 -1
  33. package/dist/actions/create-document.d.cts +11 -22
  34. package/dist/actions/create-document.d.mts +11 -22
  35. package/dist/actions/create-document.mjs +9 -9
  36. package/dist/actions/create-document.mjs.map +1 -1
  37. package/dist/actions/create-timesheet.cjs +3 -3
  38. package/dist/actions/create-timesheet.cjs.map +1 -1
  39. package/dist/actions/create-timesheet.d.cts +5 -14
  40. package/dist/actions/create-timesheet.d.mts +5 -14
  41. package/dist/actions/create-timesheet.mjs +3 -3
  42. package/dist/actions/create-timesheet.mjs.map +1 -1
  43. package/dist/actions/delete-document.cjs +1 -1
  44. package/dist/actions/delete-document.cjs.map +1 -1
  45. package/dist/actions/delete-document.d.cts +2 -4
  46. package/dist/actions/delete-document.d.mts +2 -4
  47. package/dist/actions/delete-document.mjs +1 -1
  48. package/dist/actions/delete-document.mjs.map +1 -1
  49. package/dist/actions/download-file.cjs +2 -2
  50. package/dist/actions/download-file.cjs.map +1 -1
  51. package/dist/actions/download-file.d.cts +3 -9
  52. package/dist/actions/download-file.d.mts +3 -9
  53. package/dist/actions/download-file.mjs +2 -2
  54. package/dist/actions/download-file.mjs.map +1 -1
  55. package/dist/actions/download-pdf.cjs +2 -2
  56. package/dist/actions/download-pdf.cjs.map +1 -1
  57. package/dist/actions/download-pdf.d.cts +3 -9
  58. package/dist/actions/download-pdf.d.mts +3 -9
  59. package/dist/actions/download-pdf.mjs +2 -2
  60. package/dist/actions/download-pdf.mjs.map +1 -1
  61. package/dist/actions/get-all-languages.cjs +4 -4
  62. package/dist/actions/get-all-languages.cjs.map +1 -1
  63. package/dist/actions/get-all-languages.d.cts +5 -10
  64. package/dist/actions/get-all-languages.d.mts +5 -10
  65. package/dist/actions/get-all-languages.mjs +4 -4
  66. package/dist/actions/get-all-languages.mjs.map +1 -1
  67. package/dist/actions/get-all-roles.cjs +1 -1
  68. package/dist/actions/get-all-roles.cjs.map +1 -1
  69. package/dist/actions/get-all-roles.d.cts +2 -4
  70. package/dist/actions/get-all-roles.d.cts.map +1 -1
  71. package/dist/actions/get-all-roles.d.mts +2 -4
  72. package/dist/actions/get-all-roles.d.mts.map +1 -1
  73. package/dist/actions/get-all-roles.mjs +1 -1
  74. package/dist/actions/get-all-roles.mjs.map +1 -1
  75. package/dist/actions/get-client.cjs +9 -9
  76. package/dist/actions/get-client.cjs.map +1 -1
  77. package/dist/actions/get-client.d.cts +11 -23
  78. package/dist/actions/get-client.d.mts +11 -23
  79. package/dist/actions/get-client.mjs +9 -9
  80. package/dist/actions/get-client.mjs.map +1 -1
  81. package/dist/actions/get-count.cjs +2 -2
  82. package/dist/actions/get-count.cjs.map +1 -1
  83. package/dist/actions/get-count.d.cts +4 -6
  84. package/dist/actions/get-count.d.mts +4 -6
  85. package/dist/actions/get-count.mjs +2 -2
  86. package/dist/actions/get-count.mjs.map +1 -1
  87. package/dist/actions/get-doc-with-meta.cjs +22 -22
  88. package/dist/actions/get-doc-with-meta.cjs.map +1 -1
  89. package/dist/actions/get-doc-with-meta.d.cts +23 -45
  90. package/dist/actions/get-doc-with-meta.d.mts +23 -45
  91. package/dist/actions/get-doc-with-meta.mjs +22 -22
  92. package/dist/actions/get-doc-with-meta.mjs.map +1 -1
  93. package/dist/actions/get-doctype-meta.cjs +4 -4
  94. package/dist/actions/get-doctype-meta.cjs.map +1 -1
  95. package/dist/actions/get-doctype-meta.d.cts +5 -9
  96. package/dist/actions/get-doctype-meta.d.cts.map +1 -1
  97. package/dist/actions/get-doctype-meta.d.mts +5 -9
  98. package/dist/actions/get-doctype-meta.d.mts.map +1 -1
  99. package/dist/actions/get-doctype-meta.mjs +4 -4
  100. package/dist/actions/get-doctype-meta.mjs.map +1 -1
  101. package/dist/actions/get-document.cjs +8 -8
  102. package/dist/actions/get-document.cjs.map +1 -1
  103. package/dist/actions/get-document.d.cts +9 -20
  104. package/dist/actions/get-document.d.mts +9 -20
  105. package/dist/actions/get-document.mjs +8 -8
  106. package/dist/actions/get-document.mjs.map +1 -1
  107. package/dist/actions/get-exchange-rate.cjs +1 -1
  108. package/dist/actions/get-exchange-rate.cjs.map +1 -1
  109. package/dist/actions/get-exchange-rate.d.cts +2 -4
  110. package/dist/actions/get-exchange-rate.d.mts +2 -4
  111. package/dist/actions/get-exchange-rate.mjs +1 -1
  112. package/dist/actions/get-exchange-rate.mjs.map +1 -1
  113. package/dist/actions/get-fiscal-year.cjs +2 -2
  114. package/dist/actions/get-fiscal-year.cjs.map +1 -1
  115. package/dist/actions/get-fiscal-year.d.cts +3 -9
  116. package/dist/actions/get-fiscal-year.d.mts +3 -9
  117. package/dist/actions/get-fiscal-year.mjs +2 -2
  118. package/dist/actions/get-fiscal-year.mjs.map +1 -1
  119. package/dist/actions/get-framework-version.cjs +1 -1
  120. package/dist/actions/get-framework-version.cjs.map +1 -1
  121. package/dist/actions/get-framework-version.d.cts +3 -5
  122. package/dist/actions/get-framework-version.d.cts.map +1 -1
  123. package/dist/actions/get-framework-version.d.mts +3 -5
  124. package/dist/actions/get-framework-version.d.mts.map +1 -1
  125. package/dist/actions/get-framework-version.mjs +1 -1
  126. package/dist/actions/get-framework-version.mjs.map +1 -1
  127. package/dist/actions/get-item-details.cjs +28 -28
  128. package/dist/actions/get-item-details.cjs.map +1 -1
  129. package/dist/actions/get-item-details.d.cts +29 -60
  130. package/dist/actions/get-item-details.d.mts +29 -60
  131. package/dist/actions/get-item-details.mjs +28 -28
  132. package/dist/actions/get-item-details.mjs.map +1 -1
  133. package/dist/actions/get-list.cjs +2 -2
  134. package/dist/actions/get-list.cjs.map +1 -1
  135. package/dist/actions/get-list.d.cts +5 -7
  136. package/dist/actions/get-list.d.cts.map +1 -1
  137. package/dist/actions/get-list.d.mts +5 -7
  138. package/dist/actions/get-list.d.mts.map +1 -1
  139. package/dist/actions/get-list.mjs +2 -2
  140. package/dist/actions/get-list.mjs.map +1 -1
  141. package/dist/actions/get-logged-user.cjs +1 -1
  142. package/dist/actions/get-logged-user.cjs.map +1 -1
  143. package/dist/actions/get-logged-user.d.cts +2 -4
  144. package/dist/actions/get-logged-user.d.cts.map +1 -1
  145. package/dist/actions/get-logged-user.d.mts +2 -4
  146. package/dist/actions/get-logged-user.d.mts.map +1 -1
  147. package/dist/actions/get-logged-user.mjs +1 -1
  148. package/dist/actions/get-logged-user.mjs.map +1 -1
  149. package/dist/actions/get-party-details.cjs +37 -37
  150. package/dist/actions/get-party-details.cjs.map +1 -1
  151. package/dist/actions/get-party-details.d.cts +38 -78
  152. package/dist/actions/get-party-details.d.mts +38 -78
  153. package/dist/actions/get-party-details.mjs +37 -37
  154. package/dist/actions/get-party-details.mjs.map +1 -1
  155. package/dist/actions/get-payment-entry.cjs +27 -27
  156. package/dist/actions/get-payment-entry.cjs.map +1 -1
  157. package/dist/actions/get-payment-entry.d.cts +28 -60
  158. package/dist/actions/get-payment-entry.d.mts +28 -60
  159. package/dist/actions/get-payment-entry.mjs +27 -27
  160. package/dist/actions/get-payment-entry.mjs.map +1 -1
  161. package/dist/actions/get-stock-balance.cjs +1 -1
  162. package/dist/actions/get-stock-balance.cjs.map +1 -1
  163. package/dist/actions/get-stock-balance.d.cts +2 -4
  164. package/dist/actions/get-stock-balance.d.mts +2 -4
  165. package/dist/actions/get-stock-balance.mjs +1 -1
  166. package/dist/actions/get-stock-balance.mjs.map +1 -1
  167. package/dist/actions/get-timezones.cjs +2 -2
  168. package/dist/actions/get-timezones.cjs.map +1 -1
  169. package/dist/actions/get-timezones.d.cts +3 -7
  170. package/dist/actions/get-timezones.d.cts.map +1 -1
  171. package/dist/actions/get-timezones.d.mts +3 -7
  172. package/dist/actions/get-timezones.d.mts.map +1 -1
  173. package/dist/actions/get-timezones.mjs +2 -2
  174. package/dist/actions/get-timezones.mjs.map +1 -1
  175. package/dist/actions/get-user-roles.cjs +1 -1
  176. package/dist/actions/get-user-roles.cjs.map +1 -1
  177. package/dist/actions/get-user-roles.d.cts +2 -4
  178. package/dist/actions/get-user-roles.d.mts +2 -4
  179. package/dist/actions/get-user-roles.mjs +1 -1
  180. package/dist/actions/get-user-roles.mjs.map +1 -1
  181. package/dist/actions/get-value.cjs +2 -2
  182. package/dist/actions/get-value.cjs.map +1 -1
  183. package/dist/actions/get-value.d.cts +3 -5
  184. package/dist/actions/get-value.d.cts.map +1 -1
  185. package/dist/actions/get-value.d.mts +3 -5
  186. package/dist/actions/get-value.d.mts.map +1 -1
  187. package/dist/actions/get-value.mjs +2 -2
  188. package/dist/actions/get-value.mjs.map +1 -1
  189. package/dist/actions/get-workflow-transitions.cjs +8 -8
  190. package/dist/actions/get-workflow-transitions.cjs.map +1 -1
  191. package/dist/actions/get-workflow-transitions.d.cts +10 -19
  192. package/dist/actions/get-workflow-transitions.d.mts +10 -19
  193. package/dist/actions/get-workflow-transitions.mjs +8 -8
  194. package/dist/actions/get-workflow-transitions.mjs.map +1 -1
  195. package/dist/actions/insert-document.cjs +1 -1
  196. package/dist/actions/insert-document.cjs.map +1 -1
  197. package/dist/actions/insert-document.d.cts +2 -4
  198. package/dist/actions/insert-document.d.cts.map +1 -1
  199. package/dist/actions/insert-document.d.mts +2 -4
  200. package/dist/actions/insert-document.d.mts.map +1 -1
  201. package/dist/actions/insert-document.mjs +1 -1
  202. package/dist/actions/insert-document.mjs.map +1 -1
  203. package/dist/actions/insert-many.cjs +4 -4
  204. package/dist/actions/insert-many.cjs.map +1 -1
  205. package/dist/actions/insert-many.d.cts +5 -11
  206. package/dist/actions/insert-many.d.mts +5 -11
  207. package/dist/actions/insert-many.mjs +4 -4
  208. package/dist/actions/insert-many.mjs.map +1 -1
  209. package/dist/actions/list-doctypes.cjs +1 -1
  210. package/dist/actions/list-doctypes.cjs.map +1 -1
  211. package/dist/actions/list-doctypes.d.cts +3 -5
  212. package/dist/actions/list-doctypes.d.cts.map +1 -1
  213. package/dist/actions/list-doctypes.d.mts +3 -5
  214. package/dist/actions/list-doctypes.d.mts.map +1 -1
  215. package/dist/actions/list-doctypes.mjs +1 -1
  216. package/dist/actions/list-doctypes.mjs.map +1 -1
  217. package/dist/actions/list-documents.cjs +1 -1
  218. package/dist/actions/list-documents.cjs.map +1 -1
  219. package/dist/actions/list-documents.d.cts +3 -5
  220. package/dist/actions/list-documents.d.cts.map +1 -1
  221. package/dist/actions/list-documents.d.mts +3 -5
  222. package/dist/actions/list-documents.d.mts.map +1 -1
  223. package/dist/actions/list-documents.mjs +1 -1
  224. package/dist/actions/list-documents.mjs.map +1 -1
  225. package/dist/actions/list-employees.cjs +1 -1
  226. package/dist/actions/list-employees.cjs.map +1 -1
  227. package/dist/actions/list-employees.d.cts +2 -7
  228. package/dist/actions/list-employees.d.mts +2 -7
  229. package/dist/actions/list-employees.mjs +1 -1
  230. package/dist/actions/list-employees.mjs.map +1 -1
  231. package/dist/actions/list-projects.cjs +1 -1
  232. package/dist/actions/list-projects.cjs.map +1 -1
  233. package/dist/actions/list-projects.d.cts +3 -5
  234. package/dist/actions/list-projects.d.cts.map +1 -1
  235. package/dist/actions/list-projects.d.mts +3 -5
  236. package/dist/actions/list-projects.d.mts.map +1 -1
  237. package/dist/actions/list-projects.mjs +1 -1
  238. package/dist/actions/list-projects.mjs.map +1 -1
  239. package/dist/actions/list-timesheets.cjs +1 -1
  240. package/dist/actions/list-timesheets.cjs.map +1 -1
  241. package/dist/actions/list-timesheets.d.cts +3 -5
  242. package/dist/actions/list-timesheets.d.cts.map +1 -1
  243. package/dist/actions/list-timesheets.d.mts +3 -5
  244. package/dist/actions/list-timesheets.d.mts.map +1 -1
  245. package/dist/actions/list-timesheets.mjs +1 -1
  246. package/dist/actions/list-timesheets.mjs.map +1 -1
  247. package/dist/actions/list-webhooks.cjs +5 -5
  248. package/dist/actions/list-webhooks.cjs.map +1 -1
  249. package/dist/actions/list-webhooks.d.cts +6 -15
  250. package/dist/actions/list-webhooks.d.mts +6 -15
  251. package/dist/actions/list-webhooks.mjs +5 -5
  252. package/dist/actions/list-webhooks.mjs.map +1 -1
  253. package/dist/actions/make-delivery-note.cjs +12 -12
  254. package/dist/actions/make-delivery-note.cjs.map +1 -1
  255. package/dist/actions/make-delivery-note.d.cts +13 -28
  256. package/dist/actions/make-delivery-note.d.cts.map +1 -1
  257. package/dist/actions/make-delivery-note.d.mts +13 -28
  258. package/dist/actions/make-delivery-note.d.mts.map +1 -1
  259. package/dist/actions/make-delivery-note.mjs +12 -12
  260. package/dist/actions/make-delivery-note.mjs.map +1 -1
  261. package/dist/actions/make-purchase-order.cjs +23 -23
  262. package/dist/actions/make-purchase-order.cjs.map +1 -1
  263. package/dist/actions/make-purchase-order.d.cts +24 -52
  264. package/dist/actions/make-purchase-order.d.mts +24 -52
  265. package/dist/actions/make-purchase-order.mjs +23 -23
  266. package/dist/actions/make-purchase-order.mjs.map +1 -1
  267. package/dist/actions/make-sales-invoice.cjs +14 -14
  268. package/dist/actions/make-sales-invoice.cjs.map +1 -1
  269. package/dist/actions/make-sales-invoice.d.cts +15 -32
  270. package/dist/actions/make-sales-invoice.d.cts.map +1 -1
  271. package/dist/actions/make-sales-invoice.d.mts +15 -32
  272. package/dist/actions/make-sales-invoice.d.mts.map +1 -1
  273. package/dist/actions/make-sales-invoice.mjs +14 -14
  274. package/dist/actions/make-sales-invoice.mjs.map +1 -1
  275. package/dist/actions/make-stock-entry.cjs +11 -11
  276. package/dist/actions/make-stock-entry.cjs.map +1 -1
  277. package/dist/actions/make-stock-entry.d.cts +12 -24
  278. package/dist/actions/make-stock-entry.d.mts +12 -24
  279. package/dist/actions/make-stock-entry.mjs +11 -11
  280. package/dist/actions/make-stock-entry.mjs.map +1 -1
  281. package/dist/actions/ping.cjs +1 -1
  282. package/dist/actions/ping.cjs.map +1 -1
  283. package/dist/actions/ping.d.cts +2 -4
  284. package/dist/actions/ping.d.cts.map +1 -1
  285. package/dist/actions/ping.d.mts +2 -4
  286. package/dist/actions/ping.d.mts.map +1 -1
  287. package/dist/actions/ping.mjs +1 -1
  288. package/dist/actions/ping.mjs.map +1 -1
  289. package/dist/actions/rename-doc.cjs +1 -1
  290. package/dist/actions/rename-doc.cjs.map +1 -1
  291. package/dist/actions/rename-doc.d.cts +2 -4
  292. package/dist/actions/rename-doc.d.mts +2 -4
  293. package/dist/actions/rename-doc.mjs +1 -1
  294. package/dist/actions/rename-doc.mjs.map +1 -1
  295. package/dist/actions/save-docs.cjs +6 -6
  296. package/dist/actions/save-docs.cjs.map +1 -1
  297. package/dist/actions/save-docs.d.cts +7 -13
  298. package/dist/actions/save-docs.d.cts.map +1 -1
  299. package/dist/actions/save-docs.d.mts +7 -13
  300. package/dist/actions/save-docs.d.mts.map +1 -1
  301. package/dist/actions/save-docs.mjs +6 -6
  302. package/dist/actions/save-docs.mjs.map +1 -1
  303. package/dist/actions/save-document.cjs +3 -3
  304. package/dist/actions/save-document.cjs.map +1 -1
  305. package/dist/actions/save-document.d.cts +4 -10
  306. package/dist/actions/save-document.d.mts +4 -10
  307. package/dist/actions/save-document.mjs +3 -3
  308. package/dist/actions/save-document.mjs.map +1 -1
  309. package/dist/actions/search-global.cjs +8 -8
  310. package/dist/actions/search-global.cjs.map +1 -1
  311. package/dist/actions/search-global.d.cts +10 -19
  312. package/dist/actions/search-global.d.mts +10 -19
  313. package/dist/actions/search-global.mjs +8 -8
  314. package/dist/actions/search-global.mjs.map +1 -1
  315. package/dist/actions/search-link.cjs +3 -3
  316. package/dist/actions/search-link.cjs.map +1 -1
  317. package/dist/actions/search-link.d.cts +4 -10
  318. package/dist/actions/search-link.d.mts +4 -10
  319. package/dist/actions/search-link.mjs +3 -3
  320. package/dist/actions/search-link.mjs.map +1 -1
  321. package/dist/actions/set-value.cjs +9 -9
  322. package/dist/actions/set-value.cjs.map +1 -1
  323. package/dist/actions/set-value.d.cts +16 -35
  324. package/dist/actions/set-value.d.mts +16 -35
  325. package/dist/actions/set-value.mjs +9 -9
  326. package/dist/actions/set-value.mjs.map +1 -1
  327. package/dist/actions/submit-document.cjs +2 -2
  328. package/dist/actions/submit-document.cjs.map +1 -1
  329. package/dist/actions/submit-document.d.cts +3 -14
  330. package/dist/actions/submit-document.d.mts +3 -14
  331. package/dist/actions/submit-document.mjs +2 -2
  332. package/dist/actions/submit-document.mjs.map +1 -1
  333. package/dist/actions/update-document.cjs +10 -10
  334. package/dist/actions/update-document.cjs.map +1 -1
  335. package/dist/actions/update-document.d.cts +13 -23
  336. package/dist/actions/update-document.d.mts +13 -23
  337. package/dist/actions/update-document.mjs +10 -10
  338. package/dist/actions/update-document.mjs.map +1 -1
  339. package/package.json +1 -1
@@ -6,62 +6,34 @@ declare const ErpnextMakePurchaseOrderInput: z.ZodObject<{
6
6
  }, z.core.$strip>;
7
7
  declare const ErpnextMakePurchaseOrderOutput: z.ZodObject<{
8
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>>;
9
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
+ items: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
11
+ qty: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
12
+ uom: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ rate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
14
+ amount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
15
+ item_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ item_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ warehouse: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ schedule_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ material_request: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ material_request_item: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
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>>;
23
+ owner: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
+ company: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ doctype: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ creation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
+ modified: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
+ supplier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
+ docstatus: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
30
+ schedule_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31
+ transaction_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
32
  }, z.core.$loose>>;
33
- }, z.core.$strip>;
33
+ }, z.core.$loose>;
34
34
  declare const erpnextMakePurchaseOrder: import("@keystrokehq/action").WorkflowActionDefinition<{
35
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]>;
36
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
65
37
  //#endregion
66
38
  export { erpnextMakePurchaseOrder };
67
39
  //# sourceMappingURL=make-purchase-order.d.cts.map
@@ -6,62 +6,34 @@ declare const ErpnextMakePurchaseOrderInput: z.ZodObject<{
6
6
  }, z.core.$strip>;
7
7
  declare const ErpnextMakePurchaseOrderOutput: z.ZodObject<{
8
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>>;
9
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
+ items: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
11
+ qty: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
12
+ uom: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ rate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
14
+ amount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
15
+ item_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ item_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ warehouse: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ schedule_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ material_request: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ material_request_item: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
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>>;
23
+ owner: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
+ company: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ doctype: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ creation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
+ modified: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
+ supplier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
+ docstatus: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
30
+ schedule_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31
+ transaction_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
32
  }, z.core.$loose>>;
33
- }, z.core.$strip>;
33
+ }, z.core.$loose>;
34
34
  declare const erpnextMakePurchaseOrder: import("@keystrokehq/action").WorkflowActionDefinition<{
35
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]>;
36
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
65
37
  //#endregion
66
38
  export { erpnextMakePurchaseOrder };
67
39
  //# sourceMappingURL=make-purchase-order.d.mts.map
@@ -3,37 +3,37 @@ 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.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())
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()
17
17
  }).passthrough().describe("Item entry in a Purchase Order.");
18
18
  const ErpnextMakePurchaseOrder_PurchaseOrderDocumentSchema = z.object({
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())
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()
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",
33
33
  name: "Make Purchase Order",
34
34
  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.",
35
35
  input: ErpnextMakePurchaseOrderInput,
36
- output: z.object({ message: ErpnextMakePurchaseOrder_PurchaseOrderDocumentSchema.nullable() }).describe("Response containing the created Purchase Order draft document.")
36
+ output: z.object({ message: ErpnextMakePurchaseOrder_PurchaseOrderDocumentSchema.nullable() }).passthrough().describe("Response containing the created Purchase Order draft document.")
37
37
  });
38
38
  //#endregion
39
39
  export { erpnextMakePurchaseOrder };
@@ -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.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":";;;AAIA,MAAa,gCAAgC,EAAE,OAAO,EACpD,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,2MAA2M,EAC9O,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAM,mDAAmD,EAAE,OAAO;CAChE,KAAK,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC;CAC1H,KAAK,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC;CAC7I,MAAM,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OA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C,CAAC,YAAY,CAAC,CAAC,SAAS,wDAAwD;AAKlF,MAAa,2BAA2B,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT4C,EAAE,OAAO,EACrD,SAAS,qDAAqD,SAAS,EACzE,CAAC,CAAC,CAAC,SAAS,gEAOF;AACV,CAAC"}
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.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.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.object({\n message: ErpnextMakePurchaseOrder_PurchaseOrderDocumentSchema.nullable(),\n}).passthrough().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":";;;AAIA,MAAa,gCAAgC,EAAE,OAAO,EACpD,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,2MAA2M,EAC9O,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAM,mDAAmD,EAAE,OAAO;CAChE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,MAAM,EAAE,OAAO,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AO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wDAAwD;AAKlF,MAAa,2BAA2B,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT4C,EAAE,OAAO,EACrD,SAAS,qDAAqD,SAAS,EACzE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gEAOhB;AACV,CAAC"}
@@ -3,21 +3,21 @@ 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.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())
6
+ name: zod.z.string().describe("Unique identifier/name of the created Sales Invoice document.").nullable().optional(),
7
+ items: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).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()
19
19
  }).passthrough().describe("Sales Invoice document data returned by ERPNext.");
20
- const ErpnextMakeSalesInvoiceOutput = zod.z.object({ message: ErpnextMakeSalesInvoice_SalesInvoiceDataSchema.nullable() }).describe("Response containing the created Sales Invoice document.");
20
+ const ErpnextMakeSalesInvoiceOutput = zod.z.object({ message: ErpnextMakeSalesInvoice_SalesInvoiceDataSchema.nullable() }).passthrough().describe("Response containing the created Sales Invoice document.");
21
21
  const erpnextMakeSalesInvoice = require_action.action("ERPNEXT_MAKE_SALES_INVOICE", {
22
22
  slug: "erpnext-make-sales-invoice",
23
23
  name: "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.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,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":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.string().describe(\"Unique identifier/name of the created Sales Invoice document.\").nullable().optional(),\n items: z.array(z.record(z.string(), z.unknown())).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.object({\n message: ErpnextMakeSalesInvoice_SalesInvoiceDataSchema.nullable(),\n}).passthrough().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,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,OAAOA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrK,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,gCAAgCA,IAAAA,EAAE,OAAO,EACpD,SAAS,+CAA+C,SAAS,EACnE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yDAAyD;AAEnF,MAAa,0BAA0BC,eAAAA,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -6,41 +6,24 @@ declare const ErpnextMakeSalesInvoiceInput: z.ZodObject<{
6
6
  }, z.core.$strip>;
7
7
  declare const ErpnextMakeSalesInvoiceOutput: z.ZodObject<{
8
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>>;
9
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
+ items: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
11
+ owner: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
+ company: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ doctype: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ creation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ customer: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ due_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ modified: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ docstatus: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
19
+ grand_total: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
20
+ modified_by: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ posting_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
22
  }, z.core.$loose>>;
23
- }, z.core.$strip>;
23
+ }, z.core.$loose>;
24
24
  declare const erpnextMakeSalesInvoice: import("@keystrokehq/action").WorkflowActionDefinition<{
25
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]>;
26
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
44
27
  //#endregion
45
28
  export { erpnextMakeSalesInvoice };
46
29
  //# 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,EAA4B,CAAA,CAAA,SAAA;;;cAkB5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAI7B,uBAAA,gCAAuB,wBAAA;;;;;;YAMlC,MAAA"}
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"}
@@ -6,41 +6,24 @@ declare const ErpnextMakeSalesInvoiceInput: z.ZodObject<{
6
6
  }, z.core.$strip>;
7
7
  declare const ErpnextMakeSalesInvoiceOutput: z.ZodObject<{
8
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>>;
9
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
+ items: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
11
+ owner: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
+ company: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ doctype: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ creation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ customer: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ due_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ modified: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ docstatus: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
19
+ grand_total: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
20
+ modified_by: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ posting_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
22
  }, z.core.$loose>>;
23
- }, z.core.$strip>;
23
+ }, z.core.$loose>;
24
24
  declare const erpnextMakeSalesInvoice: import("@keystrokehq/action").WorkflowActionDefinition<{
25
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]>;
26
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
44
27
  //#endregion
45
28
  export { erpnextMakeSalesInvoice };
46
29
  //# 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,EAA4B,CAAA,CAAA,SAAA;;;cAkB5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAI7B,uBAAA,gCAAuB,wBAAA;;;;;;YAMlC,MAAA"}
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"}
@@ -3,26 +3,26 @@ 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.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())
6
+ name: z.string().describe("Unique identifier/name of the created Sales Invoice document.").nullable().optional(),
7
+ items: z.array(z.record(z.string(), z.unknown())).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()
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",
22
22
  name: "Make Sales Invoice",
23
23
  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.",
24
24
  input: ErpnextMakeSalesInvoiceInput,
25
- output: z.object({ message: ErpnextMakeSalesInvoice_SalesInvoiceDataSchema.nullable() }).describe("Response containing the created Sales Invoice document.")
25
+ output: z.object({ message: ErpnextMakeSalesInvoice_SalesInvoiceDataSchema.nullable() }).passthrough().describe("Response containing the created Sales Invoice document.")
26
26
  });
27
27
  //#endregion
28
28
  export { erpnextMakeSalesInvoice };
@@ -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.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"}
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.string().describe(\"Unique identifier/name of the created Sales Invoice document.\").nullable().optional(),\n items: z.array(z.record(z.string(), z.unknown())).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.object({\n message: ErpnextMakeSalesInvoice_SalesInvoiceDataSchema.nullable(),\n}).passthrough().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,EA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,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,QAT2C,EAAE,OAAO,EACpD,SAAS,+CAA+C,SAAS,EACnE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yDAOhB;AACV,CAAC"}
@@ -19,17 +19,17 @@ 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.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
- }).describe("Response data containing the created Stock Entry details.");
32
- const ErpnextMakeStockEntryOutput = zod.z.object({ message: ErpnextMakeStockEntry_StockEntryDataSchema.nullable() }).describe("Response containing the created Stock Entry document.");
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()
31
+ }).passthrough().describe("Response data containing the created Stock Entry details.");
32
+ const ErpnextMakeStockEntryOutput = zod.z.object({ message: ErpnextMakeStockEntry_StockEntryDataSchema.nullable() }).passthrough().describe("Response containing the created Stock Entry document.");
33
33
  const erpnextMakeStockEntry = require_action.action("ERPNEXT_MAKE_STOCK_ENTRY", {
34
34
  slug: "erpnext-make-stock-entry",
35
35
  name: "Make Stock Entry",