@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
@@ -8,16 +8,14 @@ declare const ErpnextListTimesheetsInput: z.ZodObject<{
8
8
  limit_page_length: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
9
9
  }, z.core.$strip>;
10
10
  declare const ErpnextListTimesheetsOutput: z.ZodObject<{
11
- data: z.ZodArray<z.ZodObject<{}, z.core.$strip>>;
12
- }, z.core.$strip>;
11
+ data: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
12
+ }, z.core.$loose>;
13
13
  declare const erpnextListTimesheets: import("@keystrokehq/action").WorkflowActionDefinition<{
14
14
  fields?: string[] | undefined;
15
15
  filters?: (string | number | boolean)[][] | undefined;
16
16
  limit_start?: number | undefined;
17
17
  limit_page_length?: number | undefined;
18
- }, {
19
- data: Record<string, never>[];
20
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
18
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
21
19
  //#endregion
22
20
  export { erpnextListTimesheets };
23
21
  //# sourceMappingURL=list-timesheets.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-timesheets.d.mts","names":[],"sources":["../../src/actions/list-timesheets.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;cAM1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAI3B,qBAAA,gCAAqB,wBAAA;;;;;;QAMhC,MAAA;AAAA"}
1
+ {"version":3,"file":"list-timesheets.d.mts","names":[],"sources":["../../src/actions/list-timesheets.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;cAM1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAI3B,qBAAA,gCAAqB,wBAAA"}
@@ -15,7 +15,7 @@ const erpnextListTimesheets = action("ERPNEXT_LIST_TIMESHEETS", {
15
15
  limit_start: z.number().int().default(0).describe("Starting position for pagination. To request successive pages, pass a multiple of your limit_page_length. For example, to request the second page with page length 20, pass limit_start=20.").optional(),
16
16
  limit_page_length: z.number().int().default(20).describe("Number of records to return per page. Controls the page size for pagination. Default is 20 records. Maximum is 1000.").optional()
17
17
  }).describe("Request model for listing timesheet records."),
18
- output: z.object({ data: z.array(z.object({})).describe("List of timesheet records. Each record contains at least the 'name' field, plus any additional fields specified in the request.") }).describe("Response model for listing timesheet records.")
18
+ output: z.object({ data: z.array(z.record(z.string(), z.unknown())).describe("List of timesheet records. Each record contains at least the 'name' field, plus any additional fields specified in the request.") }).passthrough().describe("Response model for listing timesheet records.")
19
19
  });
20
20
  //#endregion
21
21
  export { erpnextListTimesheets };
@@ -1 +1 @@
1
- {"version":3,"file":"list-timesheets.mjs","names":[],"sources":["../../src/actions/list-timesheets.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextListTimesheetsInput = z.object({\n fields: z.array(z.string()).describe(\"List of fields to include in the response. By default, only the 'name' field is included. To add more fields, specify them in this list. For example: ['name', 'employee', 'total_hours', 'status']\").optional(),\n filters: z.array(z.array(z.union([z.string(), z.number().int(), z.number(), z.boolean()]))).describe(\"SQL-style conditions to filter the listing. Each condition is an array of the format: [doctype, field, operator, value]. For example: [['Timesheet', 'status', '=', 'Submitted']] to get only submitted timesheets. Multiple filters can be combined: [['Timesheet', 'employee', '=', 'EMP-001'], ['Timesheet', 'status', '=', 'Draft']]\").optional(),\n limit_start: z.number().int().default(0).describe(\"Starting position for pagination. To request successive pages, pass a multiple of your limit_page_length. For example, to request the second page with page length 20, pass limit_start=20.\").optional(),\n limit_page_length: z.number().int().default(20).describe(\"Number of records to return per page. Controls the page size for pagination. Default is 20 records. Maximum is 1000.\").optional(),\n}).describe(\"Request model for listing timesheet records.\");\nexport const ErpnextListTimesheetsOutput = z.object({\n data: z.array(z.object({})).describe(\"List of timesheet records. Each record contains at least the 'name' field, plus any additional fields specified in the request.\"),\n}).describe(\"Response model for listing timesheet records.\");\n\nexport const erpnextListTimesheets = action(\"ERPNEXT_LIST_TIMESHEETS\", {\n slug: \"erpnext-list-timesheets\",\n name: \"List Timesheets\",\n description: \"Tool to get a list of Timesheet records from ERPNext. Use when you need to retrieve, search, or filter timesheets. Supports pagination and flexible field selection.\",\n input: ErpnextListTimesheetsInput,\n output: ErpnextListTimesheetsOutput,\n});\n"],"mappings":";;AAcA,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAdwC,EAAE,OAAO;EACjD,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qMAAqM,CAAC,CAAC,SAAS;EACrP,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;GAAC,EAAE,OAAO;GAAG,EAAE,OAAO,CAAC,CAAC,IAAI;GAAG,EAAE,OAAO;GAAG,EAAE,QAAQ;EAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,0UAA0U,CAAC,CAAC,SAAS;EAC1b,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,6LAA6L,CAAC,CAAC,SAAS;EAC1P,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,sHAAsH,CAAC,CAAC,SAAS;CAC5L,CAAC,CAAC,CAAC,SAAS,8CASH;CACP,QATyC,EAAE,OAAO,EAClD,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,iIAAiI,EACxK,CAAC,CAAC,CAAC,SAAS,+CAOF;AACV,CAAC"}
1
+ {"version":3,"file":"list-timesheets.mjs","names":[],"sources":["../../src/actions/list-timesheets.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextListTimesheetsInput = z.object({\n fields: z.array(z.string()).describe(\"List of fields to include in the response. By default, only the 'name' field is included. To add more fields, specify them in this list. For example: ['name', 'employee', 'total_hours', 'status']\").optional(),\n filters: z.array(z.array(z.union([z.string(), z.number().int(), z.number(), z.boolean()]))).describe(\"SQL-style conditions to filter the listing. Each condition is an array of the format: [doctype, field, operator, value]. For example: [['Timesheet', 'status', '=', 'Submitted']] to get only submitted timesheets. Multiple filters can be combined: [['Timesheet', 'employee', '=', 'EMP-001'], ['Timesheet', 'status', '=', 'Draft']]\").optional(),\n limit_start: z.number().int().default(0).describe(\"Starting position for pagination. To request successive pages, pass a multiple of your limit_page_length. For example, to request the second page with page length 20, pass limit_start=20.\").optional(),\n limit_page_length: z.number().int().default(20).describe(\"Number of records to return per page. Controls the page size for pagination. Default is 20 records. Maximum is 1000.\").optional(),\n}).describe(\"Request model for listing timesheet records.\");\nexport const ErpnextListTimesheetsOutput = z.object({\n data: z.array(z.record(z.string(), z.unknown())).describe(\"List of timesheet records. Each record contains at least the 'name' field, plus any additional fields specified in the request.\"),\n}).passthrough().describe(\"Response model for listing timesheet records.\");\n\nexport const erpnextListTimesheets = action(\"ERPNEXT_LIST_TIMESHEETS\", {\n slug: \"erpnext-list-timesheets\",\n name: \"List Timesheets\",\n description: \"Tool to get a list of Timesheet records from ERPNext. Use when you need to retrieve, search, or filter timesheets. Supports pagination and flexible field selection.\",\n input: ErpnextListTimesheetsInput,\n output: ErpnextListTimesheetsOutput,\n});\n"],"mappings":";;AAcA,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAdwC,EAAE,OAAO;EACjD,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qMAAqM,CAAC,CAAC,SAAS;EACrP,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;GAAC,EAAE,OAAO;GAAG,EAAE,OAAO,CAAC,CAAC,IAAI;GAAG,EAAE,OAAO;GAAG,EAAE,QAAQ;EAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,0UAA0U,CAAC,CAAC,SAAS;EAC1b,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,6LAA6L,CAAC,CAAC,SAAS;EAC1P,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,sHAAsH,CAAC,CAAC,SAAS;CAC5L,CAAC,CAAC,CAAC,SAAS,8CASH;CACP,QATyC,EAAE,OAAO,EAClD,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,iIAAiI,EAC7L,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAOhB;AACV,CAAC"}
@@ -9,12 +9,12 @@ const ErpnextListWebhooksInput = zod.z.object({
9
9
  }).describe("Request model for listing webhook configurations in ERPNext.");
10
10
  const ErpnextListWebhooks_WebhookItemSchema = zod.z.object({
11
11
  name: zod.z.string().describe("Name/ID of the webhook configuration").nullable(),
12
- enabled: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().int().describe("Whether the webhook is enabled (1) or disabled (0)").optional()),
13
- request_url: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("The URL that the webhook sends requests to").optional()),
14
- webhook_doctype: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("The document type that triggers this webhook").optional()),
15
- webhook_docevent: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("The document event that triggers this webhook").optional())
12
+ enabled: zod.z.number().int().describe("Whether the webhook is enabled (1) or disabled (0)").nullable().optional(),
13
+ request_url: zod.z.string().describe("The URL that the webhook sends requests to").nullable().optional(),
14
+ webhook_doctype: zod.z.string().describe("The document type that triggers this webhook").nullable().optional(),
15
+ webhook_docevent: zod.z.string().describe("The document event that triggers this webhook").nullable().optional()
16
16
  }).passthrough().describe("Represents a single webhook configuration. Accepts additional fields\nbeyond 'name' since the request supports custom field selection.");
17
- const ErpnextListWebhooksOutput = zod.z.object({ data: zod.z.array(ErpnextListWebhooks_WebhookItemSchema).describe("List of webhook configurations returned by the API") }).describe("Response model for listing webhooks.");
17
+ const ErpnextListWebhooksOutput = zod.z.object({ data: zod.z.array(ErpnextListWebhooks_WebhookItemSchema).describe("List of webhook configurations returned by the API") }).passthrough().describe("Response model for listing webhooks.");
18
18
  const erpnextListWebhooks = require_action.action("ERPNEXT_LIST_WEBHOOKS", {
19
19
  slug: "erpnext-list-webhooks",
20
20
  name: "List Webhooks",
@@ -1 +1 @@
1
- {"version":3,"file":"list-webhooks.cjs","names":["z","action"],"sources":["../../src/actions/list-webhooks.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextListWebhooksInput = z.object({\n fields: z.array(z.string()).describe(\"List of fields to include in the response. By default, only the 'name' field is included. Pass additional fields like ['name', 'webhook_doctype', 'webhook_docevent'] to get more data.\").optional(),\n filters: z.array(z.array(z.union([z.string(), z.number().int()]))).describe(\"SQL conditions to filter the listing. Each condition is an array of the format [doctype, field, operator, value]. For example: [['Webhook', 'enabled', '=', 1]]\").optional(),\n limit_start: z.number().int().describe(\"Starting index for pagination. Pass a multiple of limit_page_length to get successive pages. For example, to get the second page with page size 20, pass 20.\").optional(),\n limit_page_length: z.number().int().describe(\"Number of items to return per page. By default, the API returns 20 items.\").optional(),\n}).describe(\"Request model for listing webhook configurations in ERPNext.\");\nconst ErpnextListWebhooks_WebhookItemSchema = z.object({\n name: z.string().describe(\"Name/ID of the webhook configuration\").nullable(),\n enabled: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Whether the webhook is enabled (1) or disabled (0)\").optional()),\n request_url: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"The URL that the webhook sends requests to\").optional()),\n webhook_doctype: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"The document type that triggers this webhook\").optional()),\n webhook_docevent: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"The document event that triggers this webhook\").optional()),\n}).passthrough().describe(\"Represents a single webhook configuration. Accepts additional fields\\nbeyond 'name' since the request supports custom field selection.\");\nexport const ErpnextListWebhooksOutput = z.object({\n data: z.array(ErpnextListWebhooks_WebhookItemSchema).describe(\"List of webhook configurations returned by the API\"),\n}).describe(\"Response model for listing webhooks.\");\n\nexport const erpnextListWebhooks = action(\"ERPNEXT_LIST_WEBHOOKS\", {\n slug: \"erpnext-list-webhooks\",\n name: \"List Webhooks\",\n description: \"Tool to list webhook configurations in ERPNext. Use when you need to retrieve all configured webhooks or search for specific webhooks using filters.\",\n input: ErpnextListWebhooksInput,\n output: ErpnextListWebhooksOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,yLAAyL,CAAC,CAAC,SAAS;CACzO,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,iKAAiK,CAAC,CAAC,SAAS;CACxP,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8JAA8J,CAAC,CAAC,SAAS;CAChN,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;AACrI,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAM,wCAAwCA,IAAAA,EAAE,OAAO;CACrD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC3E,SAASA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC;CACjK,aAAaA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC;CACvJ,iBAAiBA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC;CAC7J,kBAAkBA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC;AACjK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wIAAwI;AAClK,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,MAAMA,IAAAA,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,oDAAoD,EACpH,CAAC,CAAC,CAAC,SAAS,sCAAsC;AAElD,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-webhooks.cjs","names":["z","action"],"sources":["../../src/actions/list-webhooks.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextListWebhooksInput = z.object({\n fields: z.array(z.string()).describe(\"List of fields to include in the response. By default, only the 'name' field is included. Pass additional fields like ['name', 'webhook_doctype', 'webhook_docevent'] to get more data.\").optional(),\n filters: z.array(z.array(z.union([z.string(), z.number().int()]))).describe(\"SQL conditions to filter the listing. Each condition is an array of the format [doctype, field, operator, value]. For example: [['Webhook', 'enabled', '=', 1]]\").optional(),\n limit_start: z.number().int().describe(\"Starting index for pagination. Pass a multiple of limit_page_length to get successive pages. For example, to get the second page with page size 20, pass 20.\").optional(),\n limit_page_length: z.number().int().describe(\"Number of items to return per page. By default, the API returns 20 items.\").optional(),\n}).describe(\"Request model for listing webhook configurations in ERPNext.\");\nconst ErpnextListWebhooks_WebhookItemSchema = z.object({\n name: z.string().describe(\"Name/ID of the webhook configuration\").nullable(),\n enabled: z.number().int().describe(\"Whether the webhook is enabled (1) or disabled (0)\").nullable().optional(),\n request_url: z.string().describe(\"The URL that the webhook sends requests to\").nullable().optional(),\n webhook_doctype: z.string().describe(\"The document type that triggers this webhook\").nullable().optional(),\n webhook_docevent: z.string().describe(\"The document event that triggers this webhook\").nullable().optional(),\n}).passthrough().describe(\"Represents a single webhook configuration. Accepts additional fields\\nbeyond 'name' since the request supports custom field selection.\");\nexport const ErpnextListWebhooksOutput = z.object({\n data: z.array(ErpnextListWebhooks_WebhookItemSchema).describe(\"List of webhook configurations returned by the API\"),\n}).passthrough().describe(\"Response model for listing webhooks.\");\n\nexport const erpnextListWebhooks = action(\"ERPNEXT_LIST_WEBHOOKS\", {\n slug: \"erpnext-list-webhooks\",\n name: \"List Webhooks\",\n description: \"Tool to list webhook configurations in ERPNext. Use when you need to retrieve all configured webhooks or search for specific webhooks using filters.\",\n input: ErpnextListWebhooksInput,\n output: ErpnextListWebhooksOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,yLAAyL,CAAC,CAAC,SAAS;CACzO,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,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ksInput: z.ZodObject<{
10
10
  declare const ErpnextListWebhooksOutput: z.ZodObject<{
11
11
  data: z.ZodArray<z.ZodObject<{
12
12
  name: z.ZodNullable<z.ZodString>;
13
- enabled: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
14
- request_url: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
15
- webhook_doctype: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
16
- webhook_docevent: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
13
+ enabled: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
14
+ request_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ webhook_doctype: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ webhook_docevent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
17
  }, z.core.$loose>>;
18
- }, z.core.$strip>;
18
+ }, z.core.$loose>;
19
19
  declare const erpnextListWebhooks: import("@keystrokehq/action").WorkflowActionDefinition<{
20
20
  fields?: string[] | undefined;
21
21
  filters?: (string | number)[][] | undefined;
22
22
  limit_start?: number | undefined;
23
23
  limit_page_length?: number | undefined;
24
- }, {
25
- data: {
26
- [x: string]: unknown;
27
- name: string | null;
28
- enabled?: number | undefined;
29
- request_url?: string | undefined;
30
- webhook_doctype?: string | undefined;
31
- webhook_docevent?: string | undefined;
32
- }[];
33
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
24
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
34
25
  //#endregion
35
26
  export { erpnextListWebhooks };
36
27
  //# sourceMappingURL=list-webhooks.d.cts.map
@@ -10,27 +10,18 @@ declare const ErpnextListWebhooksInput: z.ZodObject<{
10
10
  declare const ErpnextListWebhooksOutput: z.ZodObject<{
11
11
  data: z.ZodArray<z.ZodObject<{
12
12
  name: z.ZodNullable<z.ZodString>;
13
- enabled: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
14
- request_url: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
15
- webhook_doctype: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
16
- webhook_docevent: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
13
+ enabled: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
14
+ request_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ webhook_doctype: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ webhook_docevent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
17
  }, z.core.$loose>>;
18
- }, z.core.$strip>;
18
+ }, z.core.$loose>;
19
19
  declare const erpnextListWebhooks: import("@keystrokehq/action").WorkflowActionDefinition<{
20
20
  fields?: string[] | undefined;
21
21
  filters?: (string | number)[][] | undefined;
22
22
  limit_start?: number | undefined;
23
23
  limit_page_length?: number | undefined;
24
- }, {
25
- data: {
26
- [x: string]: unknown;
27
- name: string | null;
28
- enabled?: number | undefined;
29
- request_url?: string | undefined;
30
- webhook_doctype?: string | undefined;
31
- webhook_docevent?: string | undefined;
32
- }[];
33
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
24
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
34
25
  //#endregion
35
26
  export { erpnextListWebhooks };
36
27
  //# sourceMappingURL=list-webhooks.d.mts.map
@@ -9,17 +9,17 @@ const ErpnextListWebhooksInput = z.object({
9
9
  }).describe("Request model for listing webhook configurations in ERPNext.");
10
10
  const ErpnextListWebhooks_WebhookItemSchema = z.object({
11
11
  name: z.string().describe("Name/ID of the webhook configuration").nullable(),
12
- enabled: z.preprocess((value) => value === null ? void 0 : value, z.number().int().describe("Whether the webhook is enabled (1) or disabled (0)").optional()),
13
- request_url: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("The URL that the webhook sends requests to").optional()),
14
- webhook_doctype: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("The document type that triggers this webhook").optional()),
15
- webhook_docevent: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("The document event that triggers this webhook").optional())
12
+ enabled: z.number().int().describe("Whether the webhook is enabled (1) or disabled (0)").nullable().optional(),
13
+ request_url: z.string().describe("The URL that the webhook sends requests to").nullable().optional(),
14
+ webhook_doctype: z.string().describe("The document type that triggers this webhook").nullable().optional(),
15
+ webhook_docevent: z.string().describe("The document event that triggers this webhook").nullable().optional()
16
16
  }).passthrough().describe("Represents a single webhook configuration. Accepts additional fields\nbeyond 'name' since the request supports custom field selection.");
17
17
  const erpnextListWebhooks = action("ERPNEXT_LIST_WEBHOOKS", {
18
18
  slug: "erpnext-list-webhooks",
19
19
  name: "List Webhooks",
20
20
  description: "Tool to list webhook configurations in ERPNext. Use when you need to retrieve all configured webhooks or search for specific webhooks using filters.",
21
21
  input: ErpnextListWebhooksInput,
22
- output: z.object({ data: z.array(ErpnextListWebhooks_WebhookItemSchema).describe("List of webhook configurations returned by the API") }).describe("Response model for listing webhooks.")
22
+ output: z.object({ data: z.array(ErpnextListWebhooks_WebhookItemSchema).describe("List of webhook configurations returned by the API") }).passthrough().describe("Response model for listing webhooks.")
23
23
  });
24
24
  //#endregion
25
25
  export { erpnextListWebhooks };
@@ -1 +1 @@
1
- {"version":3,"file":"list-webhooks.mjs","names":[],"sources":["../../src/actions/list-webhooks.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextListWebhooksInput = z.object({\n fields: z.array(z.string()).describe(\"List of fields to include in the response. By default, only the 'name' field is included. Pass additional fields like ['name', 'webhook_doctype', 'webhook_docevent'] to get more data.\").optional(),\n filters: z.array(z.array(z.union([z.string(), z.number().int()]))).describe(\"SQL conditions to filter the listing. Each condition is an array of the format [doctype, field, operator, value]. For example: [['Webhook', 'enabled', '=', 1]]\").optional(),\n limit_start: z.number().int().describe(\"Starting index for pagination. Pass a multiple of limit_page_length to get successive pages. For example, to get the second page with page size 20, pass 20.\").optional(),\n limit_page_length: z.number().int().describe(\"Number of items to return per page. By default, the API returns 20 items.\").optional(),\n}).describe(\"Request model for listing webhook configurations in ERPNext.\");\nconst ErpnextListWebhooks_WebhookItemSchema = z.object({\n name: z.string().describe(\"Name/ID of the webhook configuration\").nullable(),\n enabled: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Whether the webhook is enabled (1) or disabled (0)\").optional()),\n request_url: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"The URL that the webhook sends requests to\").optional()),\n webhook_doctype: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"The document type that triggers this webhook\").optional()),\n webhook_docevent: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"The document event that triggers this webhook\").optional()),\n}).passthrough().describe(\"Represents a single webhook configuration. Accepts additional fields\\nbeyond 'name' since the request supports custom field selection.\");\nexport const ErpnextListWebhooksOutput = z.object({\n data: z.array(ErpnextListWebhooks_WebhookItemSchema).describe(\"List of webhook configurations returned by the API\"),\n}).describe(\"Response model for listing webhooks.\");\n\nexport const erpnextListWebhooks = action(\"ERPNEXT_LIST_WEBHOOKS\", {\n slug: \"erpnext-list-webhooks\",\n name: \"List Webhooks\",\n description: \"Tool to list webhook configurations in ERPNext. Use when you need to retrieve all configured webhooks or search for specific webhooks using filters.\",\n input: ErpnextListWebhooksInput,\n output: ErpnextListWebhooksOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2B,EAAE,OAAO;CAC/C,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,yLAAyL,CAAC,CAAC,SAAS;CACzO,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,iKAAiK,CAAC,CAAC,SAAS;CACxP,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8JAA8J,CAAC,CAAC,SAAS;CAChN,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;AACrI,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAM,wCAAwC,EAAE,OAAO;CACrD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC3E,SAAS,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC;CACjK,aAAa,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC;CACvJ,iBAAiB,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC;CAC7J,kBAAkB,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC;AACjK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wIAAwI;AAKlK,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATuC,EAAE,OAAO,EAChD,MAAM,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,oDAAoD,EACpH,CAAC,CAAC,CAAC,SAAS,sCAOF;AACV,CAAC"}
1
+ {"version":3,"file":"list-webhooks.mjs","names":[],"sources":["../../src/actions/list-webhooks.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextListWebhooksInput = z.object({\n fields: z.array(z.string()).describe(\"List of fields to include in the response. By default, only the 'name' field is included. Pass additional fields like ['name', 'webhook_doctype', 'webhook_docevent'] to get more data.\").optional(),\n filters: z.array(z.array(z.union([z.string(), z.number().int()]))).describe(\"SQL conditions to filter the listing. Each condition is an array of the format [doctype, field, operator, value]. For example: [['Webhook', 'enabled', '=', 1]]\").optional(),\n limit_start: z.number().int().describe(\"Starting index for pagination. Pass a multiple of limit_page_length to get successive pages. For example, to get the second page with page size 20, pass 20.\").optional(),\n limit_page_length: z.number().int().describe(\"Number of items to return per page. By default, the API returns 20 items.\").optional(),\n}).describe(\"Request model for listing webhook configurations in ERPNext.\");\nconst ErpnextListWebhooks_WebhookItemSchema = z.object({\n name: z.string().describe(\"Name/ID of the webhook configuration\").nullable(),\n enabled: z.number().int().describe(\"Whether the webhook is enabled (1) or disabled (0)\").nullable().optional(),\n request_url: z.string().describe(\"The URL that the webhook sends requests to\").nullable().optional(),\n webhook_doctype: z.string().describe(\"The document type that triggers this webhook\").nullable().optional(),\n webhook_docevent: z.string().describe(\"The document event that triggers this webhook\").nullable().optional(),\n}).passthrough().describe(\"Represents a single webhook configuration. Accepts additional fields\\nbeyond 'name' since the request supports custom field selection.\");\nexport const ErpnextListWebhooksOutput = z.object({\n data: z.array(ErpnextListWebhooks_WebhookItemSchema).describe(\"List of webhook configurations returned by the API\"),\n}).passthrough().describe(\"Response model for listing webhooks.\");\n\nexport const erpnextListWebhooks = action(\"ERPNEXT_LIST_WEBHOOKS\", {\n slug: \"erpnext-list-webhooks\",\n name: \"List Webhooks\",\n description: \"Tool to list webhook configurations in ERPNext. Use when you need to retrieve all configured webhooks or search for specific webhooks using filters.\",\n input: ErpnextListWebhooksInput,\n output: ErpnextListWebhooksOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2B,EAAE,OAAO;CAC/C,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,yLA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4
4
  const ErpnextMakeDeliveryNoteInput = zod.z.object({ source_name: zod.z.string().describe("Sales Order name/ID from which to create the Delivery Note. The Sales Order must exist and be in a submitted state (docstatus=1). Example: 'SAL-ORD-2026-00002', 'SO-00123'.") }).describe("Request to create a Delivery Note from a Sales Order.");
5
5
  const ErpnextMakeDeliveryNote_DeliveryNoteDocumentSchema = zod.z.object({
6
- name: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Unique identifier/name of the Delivery Note.").optional()),
7
- items: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.array(zod.z.object({})).describe("List of items to deliver, mapped from the Sales Order items.").optional()),
8
- owner: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("User who created the document.").optional()),
9
- company: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Company issuing the delivery note.").optional()),
10
- doctype: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Document type, always 'Delivery Note'.").optional()),
11
- creation: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Timestamp when the document was created.").optional()),
12
- customer: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Customer name from the Sales Order.").optional()),
13
- modified: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Timestamp when the document was last modified.").optional()),
14
- docstatus: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().int().describe("Document status: 0 = Draft, 1 = Submitted, 2 = Cancelled. Will be 0 for newly created delivery notes.").optional()),
15
- posting_date: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Date when the delivery note is posted.").optional()),
16
- customer_name: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Display name of the customer.").optional())
6
+ name: zod.z.string().describe("Unique identifier/name of the Delivery Note.").nullable().optional(),
7
+ items: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("List of items to deliver, mapped from the Sales Order items.").nullable().optional(),
8
+ owner: zod.z.string().describe("User who created the document.").nullable().optional(),
9
+ company: zod.z.string().describe("Company issuing the delivery note.").nullable().optional(),
10
+ doctype: zod.z.string().describe("Document type, always 'Delivery Note'.").nullable().optional(),
11
+ creation: zod.z.string().describe("Timestamp when the document was created.").nullable().optional(),
12
+ customer: zod.z.string().describe("Customer name from the Sales Order.").nullable().optional(),
13
+ modified: zod.z.string().describe("Timestamp when the document was last modified.").nullable().optional(),
14
+ docstatus: zod.z.number().int().describe("Document status: 0 = Draft, 1 = Submitted, 2 = Cancelled. Will be 0 for newly created delivery notes.").nullable().optional(),
15
+ posting_date: zod.z.string().describe("Date when the delivery note is posted.").nullable().optional(),
16
+ customer_name: zod.z.string().describe("Display name of the customer.").nullable().optional()
17
17
  }).passthrough().describe("Delivery Note document structure.");
18
- const ErpnextMakeDeliveryNoteOutput = zod.z.object({ message: ErpnextMakeDeliveryNote_DeliveryNoteDocumentSchema.nullable() }).describe("Response containing the created Delivery Note draft document.");
18
+ const ErpnextMakeDeliveryNoteOutput = zod.z.object({ message: ErpnextMakeDeliveryNote_DeliveryNoteDocumentSchema.nullable() }).passthrough().describe("Response containing the created Delivery Note draft document.");
19
19
  const erpnextMakeDeliveryNote = require_action.action("ERPNEXT_MAKE_DELIVERY_NOTE", {
20
20
  slug: "erpnext-make-delivery-note",
21
21
  name: "Make Delivery Note",
@@ -1 +1 @@
1
- {"version":3,"file":"make-delivery-note.cjs","names":["z","action"],"sources":["../../src/actions/make-delivery-note.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextMakeDeliveryNoteInput = z.object({\n source_name: z.string().describe(\"Sales Order name/ID from which to create the Delivery Note. The Sales Order must exist and be in a submitted state (docstatus=1). Example: 'SAL-ORD-2026-00002', 'SO-00123'.\"),\n}).describe(\"Request to create a Delivery Note from a Sales Order.\");\nconst ErpnextMakeDeliveryNote_DeliveryNoteDocumentSchema = z.object({\n name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Unique identifier/name of the Delivery Note.\").optional()),\n items: z.preprocess((value) => (value === null ? undefined : value), z.array(z.object({})).describe(\"List of items to deliver, mapped from the Sales Order items.\").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 issuing the delivery note.\").optional()),\n doctype: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Document type, always 'Delivery Note'.\").optional()),\n creation: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Timestamp when the document was created.\").optional()),\n customer: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Customer name from the Sales Order.\").optional()),\n modified: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Timestamp when the document 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. Will be 0 for newly created delivery notes.\").optional()),\n posting_date: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Date when the delivery note is posted.\").optional()),\n customer_name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Display name of the customer.\").optional()),\n}).passthrough().describe(\"Delivery Note document structure.\");\nexport const ErpnextMakeDeliveryNoteOutput = z.object({\n message: ErpnextMakeDeliveryNote_DeliveryNoteDocumentSchema.nullable(),\n}).describe(\"Response containing the created Delivery Note draft document.\");\n\nexport const erpnextMakeDeliveryNote = action(\"ERPNEXT_MAKE_DELIVERY_NOTE\", {\n slug: \"erpnext-make-delivery-note\",\n name: \"Make Delivery Note\",\n description: \"Create a draft Delivery Note from an existing Sales Order in ERPNext. Use when you need to initiate shipment/delivery of items from a confirmed sales order. The created Delivery Note will be in draft state and can be modified before submission.\",\n input: ErpnextMakeDeliveryNoteInput,\n output: ErpnextMakeDeliveryNoteOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,aAAaA,IAAAA,EAAE,OA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WA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS,CAAC;CACtN,cAAcA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC;CACpJ,eAAeA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC;AAC9I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mCAAmC;AAC7D,MAAa,gCAAgCA,IAAAA,EAAE,OAAO,EACpD,SAAS,mDAAmD,SAAS,EACvE,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAE3E,MAAa,0BAA0BC,eAAAA,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"make-delivery-note.cjs","names":["z","action"],"sources":["../../src/actions/make-delivery-note.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextMakeDeliveryNoteInput = z.object({\n source_name: z.string().describe(\"Sales Order name/ID from which to create the Delivery Note. The Sales Order must exist and be in a submitted state (docstatus=1). Example: 'SAL-ORD-2026-00002', 'SO-00123'.\"),\n}).describe(\"Request to create a Delivery Note from a Sales Order.\");\nconst ErpnextMakeDeliveryNote_DeliveryNoteDocumentSchema = z.object({\n name: z.string().describe(\"Unique identifier/name of the Delivery Note.\").nullable().optional(),\n items: z.array(z.record(z.string(), z.unknown())).describe(\"List of items to deliver, mapped from the Sales Order items.\").nullable().optional(),\n owner: z.string().describe(\"User who created the document.\").nullable().optional(),\n company: z.string().describe(\"Company issuing the delivery note.\").nullable().optional(),\n doctype: z.string().describe(\"Document type, always 'Delivery Note'.\").nullable().optional(),\n creation: z.string().describe(\"Timestamp when the document was created.\").nullable().optional(),\n customer: z.string().describe(\"Customer name from the Sales Order.\").nullable().optional(),\n modified: z.string().describe(\"Timestamp when the document was last modified.\").nullable().optional(),\n docstatus: z.number().int().describe(\"Document status: 0 = Draft, 1 = Submitted, 2 = Cancelled. Will be 0 for newly created delivery notes.\").nullable().optional(),\n posting_date: z.string().describe(\"Date when the delivery note is posted.\").nullable().optional(),\n customer_name: z.string().describe(\"Display name of the customer.\").nullable().optional(),\n}).passthrough().describe(\"Delivery Note document structure.\");\nexport const ErpnextMakeDeliveryNoteOutput = z.object({\n message: ErpnextMakeDeliveryNote_DeliveryNoteDocumentSchema.nullable(),\n}).passthrough().describe(\"Response containing the created Delivery Note draft document.\");\n\nexport const erpnextMakeDeliveryNote = action(\"ERPNEXT_MAKE_DELIVERY_NOTE\", {\n slug: \"erpnext-make-delivery-note\",\n name: \"Make Delivery Note\",\n description: \"Create a draft Delivery Note from an existing Sales Order in ERPNext. Use when you need to initiate shipment/delivery of items from a confirmed sales order. The created Delivery Note will be in draft state and can be modified before submission.\",\n input: ErpnextMakeDeliveryNoteInput,\n output: ErpnextMakeDeliveryNoteOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8KAA8K,EACjN,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,MAAM,qDAAqDA,IAAAA,EAAE,OAAO;CAClE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,OAAOA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC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z.ZodObject<{
6
6
  }, z.core.$strip>;
7
7
  declare const ErpnextMakeDeliveryNoteOutput: 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
- modified: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
17
- docstatus: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
18
- posting_date: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
19
- customer_name: 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
+ modified: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ docstatus: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
18
+ posting_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ customer_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
20
  }, z.core.$loose>>;
21
- }, z.core.$strip>;
21
+ }, z.core.$loose>;
22
22
  declare const erpnextMakeDeliveryNote: import("@keystrokehq/action").WorkflowActionDefinition<{
23
23
  source_name: string;
24
- }, {
25
- message: {
26
- [x: string]: unknown;
27
- name?: string | undefined;
28
- items?: Record<string, never>[] | undefined;
29
- owner?: string | undefined;
30
- company?: string | undefined;
31
- doctype?: string | undefined;
32
- creation?: string | undefined;
33
- customer?: string | undefined;
34
- modified?: string | undefined;
35
- docstatus?: number | undefined;
36
- posting_date?: string | undefined;
37
- customer_name?: string | undefined;
38
- } | null;
39
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
24
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
40
25
  //#endregion
41
26
  export { erpnextMakeDeliveryNote };
42
27
  //# sourceMappingURL=make-delivery-note.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"make-delivery-note.d.cts","names":[],"sources":["../../src/actions/make-delivery-note.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAgB5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAI7B,uBAAA,gCAAuB,wBAAA;;;;;;YAMlC,MAAA"}
1
+ {"version":3,"file":"make-delivery-note.d.cts","names":[],"sources":["../../src/actions/make-delivery-note.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAgB5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAI7B,uBAAA,gCAAuB,wBAAA"}
@@ -6,37 +6,22 @@ declare const ErpnextMakeDeliveryNoteInput: z.ZodObject<{
6
6
  }, z.core.$strip>;
7
7
  declare const ErpnextMakeDeliveryNoteOutput: 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
- modified: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
17
- docstatus: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
18
- posting_date: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
19
- customer_name: 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
+ modified: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ docstatus: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
18
+ posting_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ customer_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
20
  }, z.core.$loose>>;
21
- }, z.core.$strip>;
21
+ }, z.core.$loose>;
22
22
  declare const erpnextMakeDeliveryNote: import("@keystrokehq/action").WorkflowActionDefinition<{
23
23
  source_name: string;
24
- }, {
25
- message: {
26
- [x: string]: unknown;
27
- name?: string | undefined;
28
- items?: Record<string, never>[] | undefined;
29
- owner?: string | undefined;
30
- company?: string | undefined;
31
- doctype?: string | undefined;
32
- creation?: string | undefined;
33
- customer?: string | undefined;
34
- modified?: string | undefined;
35
- docstatus?: number | undefined;
36
- posting_date?: string | undefined;
37
- customer_name?: string | undefined;
38
- } | null;
39
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
24
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
40
25
  //#endregion
41
26
  export { erpnextMakeDeliveryNote };
42
27
  //# sourceMappingURL=make-delivery-note.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"make-delivery-note.d.mts","names":[],"sources":["../../src/actions/make-delivery-note.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAgB5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAI7B,uBAAA,gCAAuB,wBAAA;;;;;;YAMlC,MAAA"}
1
+ {"version":3,"file":"make-delivery-note.d.mts","names":[],"sources":["../../src/actions/make-delivery-note.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAgB5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAI7B,uBAAA,gCAAuB,wBAAA"}
@@ -3,24 +3,24 @@ import { z } from "zod";
3
3
  //#region src/actions/make-delivery-note.ts
4
4
  const ErpnextMakeDeliveryNoteInput = z.object({ source_name: z.string().describe("Sales Order name/ID from which to create the Delivery Note. The Sales Order must exist and be in a submitted state (docstatus=1). Example: 'SAL-ORD-2026-00002', 'SO-00123'.") }).describe("Request to create a Delivery Note from a Sales Order.");
5
5
  const ErpnextMakeDeliveryNote_DeliveryNoteDocumentSchema = z.object({
6
- name: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Unique identifier/name of the Delivery Note.").optional()),
7
- items: z.preprocess((value) => value === null ? void 0 : value, z.array(z.object({})).describe("List of items to deliver, mapped from the Sales Order items.").optional()),
8
- owner: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("User who created the document.").optional()),
9
- company: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Company issuing the delivery note.").optional()),
10
- doctype: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Document type, always 'Delivery Note'.").optional()),
11
- creation: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Timestamp when the document was created.").optional()),
12
- customer: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Customer name from the Sales Order.").optional()),
13
- modified: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Timestamp when the document was last modified.").optional()),
14
- docstatus: z.preprocess((value) => value === null ? void 0 : value, z.number().int().describe("Document status: 0 = Draft, 1 = Submitted, 2 = Cancelled. Will be 0 for newly created delivery notes.").optional()),
15
- posting_date: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Date when the delivery note is posted.").optional()),
16
- customer_name: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Display name of the customer.").optional())
6
+ name: z.string().describe("Unique identifier/name of the Delivery Note.").nullable().optional(),
7
+ items: z.array(z.record(z.string(), z.unknown())).describe("List of items to deliver, mapped from the Sales Order items.").nullable().optional(),
8
+ owner: z.string().describe("User who created the document.").nullable().optional(),
9
+ company: z.string().describe("Company issuing the delivery note.").nullable().optional(),
10
+ doctype: z.string().describe("Document type, always 'Delivery Note'.").nullable().optional(),
11
+ creation: z.string().describe("Timestamp when the document was created.").nullable().optional(),
12
+ customer: z.string().describe("Customer name from the Sales Order.").nullable().optional(),
13
+ modified: z.string().describe("Timestamp when the document was last modified.").nullable().optional(),
14
+ docstatus: z.number().int().describe("Document status: 0 = Draft, 1 = Submitted, 2 = Cancelled. Will be 0 for newly created delivery notes.").nullable().optional(),
15
+ posting_date: z.string().describe("Date when the delivery note is posted.").nullable().optional(),
16
+ customer_name: z.string().describe("Display name of the customer.").nullable().optional()
17
17
  }).passthrough().describe("Delivery Note document structure.");
18
18
  const erpnextMakeDeliveryNote = action("ERPNEXT_MAKE_DELIVERY_NOTE", {
19
19
  slug: "erpnext-make-delivery-note",
20
20
  name: "Make Delivery Note",
21
21
  description: "Create a draft Delivery Note from an existing Sales Order in ERPNext. Use when you need to initiate shipment/delivery of items from a confirmed sales order. The created Delivery Note will be in draft state and can be modified before submission.",
22
22
  input: ErpnextMakeDeliveryNoteInput,
23
- output: z.object({ message: ErpnextMakeDeliveryNote_DeliveryNoteDocumentSchema.nullable() }).describe("Response containing the created Delivery Note draft document.")
23
+ output: z.object({ message: ErpnextMakeDeliveryNote_DeliveryNoteDocumentSchema.nullable() }).passthrough().describe("Response containing the created Delivery Note draft document.")
24
24
  });
25
25
  //#endregion
26
26
  export { erpnextMakeDeliveryNote };
@@ -1 +1 @@
1
- {"version":3,"file":"make-delivery-note.mjs","names":[],"sources":["../../src/actions/make-delivery-note.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextMakeDeliveryNoteInput = z.object({\n source_name: z.string().describe(\"Sales Order name/ID from which to create the Delivery Note. The Sales Order must exist and be in a submitted state (docstatus=1). Example: 'SAL-ORD-2026-00002', 'SO-00123'.\"),\n}).describe(\"Request to create a Delivery Note from a Sales Order.\");\nconst ErpnextMakeDeliveryNote_DeliveryNoteDocumentSchema = z.object({\n name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Unique identifier/name of the Delivery Note.\").optional()),\n items: z.preprocess((value) => (value === null ? undefined : value), z.array(z.object({})).describe(\"List of items to deliver, mapped from the Sales Order items.\").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 issuing the delivery note.\").optional()),\n doctype: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Document type, always 'Delivery Note'.\").optional()),\n creation: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Timestamp when the document was created.\").optional()),\n customer: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Customer name from the Sales Order.\").optional()),\n modified: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Timestamp when the document 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. Will be 0 for newly created delivery notes.\").optional()),\n posting_date: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Date when the delivery note is posted.\").optional()),\n customer_name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Display name of the customer.\").optional()),\n}).passthrough().describe(\"Delivery Note document structure.\");\nexport const ErpnextMakeDeliveryNoteOutput = z.object({\n message: ErpnextMakeDeliveryNote_DeliveryNoteDocumentSchema.nullable(),\n}).describe(\"Response containing the created Delivery Note draft document.\");\n\nexport const erpnextMakeDeliveryNote = action(\"ERPNEXT_MAKE_DELIVERY_NOTE\", {\n slug: \"erpnext-make-delivery-note\",\n name: \"Make Delivery Note\",\n description: \"Create a draft Delivery Note from an existing Sales Order in ERPNext. Use when you need to initiate shipment/delivery of items from a confirmed sales order. The created Delivery Note will be in draft state and can be modified before submission.\",\n input: ErpnextMakeDeliveryNoteInput,\n output: ErpnextMakeDeliveryNoteOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+B,EAAE,OAAO,EACnD,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,8KAA8K,EACjN,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,MAAM,qDAAqD,EAAE,OAAO;CAClE,MAAM,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC;CAClJ,OAAO,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC;CAC9K,OAAO,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO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C,SAAS,+DAOF;AACV,CAAC"}
1
+ {"version":3,"file":"make-delivery-note.mjs","names":[],"sources":["../../src/actions/make-delivery-note.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextMakeDeliveryNoteInput = z.object({\n source_name: z.string().describe(\"Sales Order name/ID from which to create the Delivery Note. The Sales Order must exist and be in a submitted state (docstatus=1). Example: 'SAL-ORD-2026-00002', 'SO-00123'.\"),\n}).describe(\"Request to create a Delivery Note from a Sales Order.\");\nconst ErpnextMakeDeliveryNote_DeliveryNoteDocumentSchema = z.object({\n name: z.string().describe(\"Unique identifier/name of the Delivery Note.\").nullable().optional(),\n items: z.array(z.record(z.string(), z.unknown())).describe(\"List of items to deliver, mapped from the Sales Order items.\").nullable().optional(),\n owner: z.string().describe(\"User who created the document.\").nullable().optional(),\n company: z.string().describe(\"Company issuing the delivery note.\").nullable().optional(),\n doctype: z.string().describe(\"Document type, always 'Delivery Note'.\").nullable().optional(),\n creation: z.string().describe(\"Timestamp when the document was created.\").nullable().optional(),\n customer: z.string().describe(\"Customer name from the Sales Order.\").nullable().optional(),\n modified: z.string().describe(\"Timestamp when the document was last modified.\").nullable().optional(),\n docstatus: z.number().int().describe(\"Document status: 0 = Draft, 1 = Submitted, 2 = Cancelled. Will be 0 for newly created delivery notes.\").nullable().optional(),\n posting_date: z.string().describe(\"Date when the delivery note is posted.\").nullable().optional(),\n customer_name: z.string().describe(\"Display name of the customer.\").nullable().optional(),\n}).passthrough().describe(\"Delivery Note document structure.\");\nexport const ErpnextMakeDeliveryNoteOutput = z.object({\n message: ErpnextMakeDeliveryNote_DeliveryNoteDocumentSchema.nullable(),\n}).passthrough().describe(\"Response containing the created Delivery Note draft document.\");\n\nexport const erpnextMakeDeliveryNote = action(\"ERPNEXT_MAKE_DELIVERY_NOTE\", {\n slug: \"erpnext-make-delivery-note\",\n name: \"Make Delivery Note\",\n description: \"Create a draft Delivery Note from an existing Sales Order in ERPNext. Use when you need to initiate shipment/delivery of items from a confirmed sales order. The created Delivery Note will be in draft state and can be modified before submission.\",\n input: ErpnextMakeDeliveryNoteInput,\n output: ErpnextMakeDeliveryNoteOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+B,EAAE,OAAO,EACnD,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,8KAA8K,EACjN,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,MAAM,qDAAqD,EAAE,OAAO;CAClE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/I,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClK,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mCAAmC;AAK7D,MAAa,0BAA0B,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT2C,EAAE,OAAO,EACpD,SAAS,mDAAmD,SAAS,EACvE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+DAOhB;AACV,CAAC"}
@@ -3,32 +3,32 @@ let zod = require("zod");
3
3
  //#region src/actions/make-purchase-order.ts
4
4
  const ErpnextMakePurchaseOrderInput = zod.z.object({ source_name: zod.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 = zod.z.object({
6
- qty: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().describe("Quantity to purchase.").optional()),
7
- uom: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Unit of measurement (e.g., 'Nos', 'Kg').").optional()),
8
- rate: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().describe("Price per unit.").optional()),
9
- amount: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().describe("Total amount for this item (qty * rate).").optional()),
10
- item_code: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Item code/SKU from the Material Request.").optional()),
11
- item_name: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Display name of the item.").optional()),
12
- warehouse: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Target warehouse for delivery.").optional()),
13
- description: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Item description.").optional()),
14
- schedule_date: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Expected delivery date for this item.").optional()),
15
- material_request: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Reference to the source Material Request.").optional()),
16
- material_request_item: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Reference to the specific Material Request item line.").optional())
6
+ qty: zod.z.number().describe("Quantity to purchase.").nullable().optional(),
7
+ uom: zod.z.string().describe("Unit of measurement (e.g., 'Nos', 'Kg').").nullable().optional(),
8
+ rate: zod.z.number().describe("Price per unit.").nullable().optional(),
9
+ amount: zod.z.number().describe("Total amount for this item (qty * rate).").nullable().optional(),
10
+ item_code: zod.z.string().describe("Item code/SKU from the Material Request.").nullable().optional(),
11
+ item_name: zod.z.string().describe("Display name of the item.").nullable().optional(),
12
+ warehouse: zod.z.string().describe("Target warehouse for delivery.").nullable().optional(),
13
+ description: zod.z.string().describe("Item description.").nullable().optional(),
14
+ schedule_date: zod.z.string().describe("Expected delivery date for this item.").nullable().optional(),
15
+ material_request: zod.z.string().describe("Reference to the source Material Request.").nullable().optional(),
16
+ material_request_item: zod.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 = zod.z.object({
19
- name: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Purchase Order name/ID (e.g., 'PO-2026-00001').").optional()),
20
- items: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.array(ErpnextMakePurchaseOrder_PurchaseOrderItemSchema).describe("List of items in the Purchase Order.").optional()),
21
- owner: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("User who created the document.").optional()),
22
- company: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Company making the purchase.").optional()),
23
- doctype: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Document type, always 'Purchase Order'.").optional()),
24
- creation: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("ISO timestamp when document was created.").optional()),
25
- modified: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("ISO timestamp when document was last modified.").optional()),
26
- supplier: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Supplier name to purchase from.").optional()),
27
- docstatus: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().int().describe("Document status: 0=Draft, 1=Submitted, 2=Cancelled.").optional()),
28
- schedule_date: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Expected delivery date for the order.").optional()),
29
- transaction_date: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Date of the purchase order transaction.").optional())
19
+ name: zod.z.string().describe("Purchase Order name/ID (e.g., 'PO-2026-00001').").nullable().optional(),
20
+ items: zod.z.array(ErpnextMakePurchaseOrder_PurchaseOrderItemSchema).describe("List of items in the Purchase Order.").nullable().optional(),
21
+ owner: zod.z.string().describe("User who created the document.").nullable().optional(),
22
+ company: zod.z.string().describe("Company making the purchase.").nullable().optional(),
23
+ doctype: zod.z.string().describe("Document type, always 'Purchase Order'.").nullable().optional(),
24
+ creation: zod.z.string().describe("ISO timestamp when document was created.").nullable().optional(),
25
+ modified: zod.z.string().describe("ISO timestamp when document was last modified.").nullable().optional(),
26
+ supplier: zod.z.string().describe("Supplier name to purchase from.").nullable().optional(),
27
+ docstatus: zod.z.number().int().describe("Document status: 0=Draft, 1=Submitted, 2=Cancelled.").nullable().optional(),
28
+ schedule_date: zod.z.string().describe("Expected delivery date for the order.").nullable().optional(),
29
+ transaction_date: zod.z.string().describe("Date of the purchase order transaction.").nullable().optional()
30
30
  }).passthrough().describe("Purchase Order document structure returned by the API.");
31
- const ErpnextMakePurchaseOrderOutput = zod.z.object({ message: ErpnextMakePurchaseOrder_PurchaseOrderDocumentSchema.nullable() }).describe("Response containing the created Purchase Order draft document.");
31
+ const ErpnextMakePurchaseOrderOutput = zod.z.object({ message: ErpnextMakePurchaseOrder_PurchaseOrderDocumentSchema.nullable() }).passthrough().describe("Response containing the created Purchase Order draft document.");
32
32
  const erpnextMakePurchaseOrder = require_action.action("ERPNEXT_MAKE_PURCHASE_ORDER", {
33
33
  slug: "erpnext-make-purchase-order",
34
34
  name: "Make Purchase Order",
@@ -1 +1 @@
1
- {"version":3,"file":"make-purchase-order.cjs","names":["z","action"],"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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{ 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,gCAAgCA,IAAAA,EAAE,OAAO,EACpD,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2MAA2M,EAC9O,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAM,mDAAmDA,IAAAA,EAAE,OAAO;CAChE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SA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