@keystrokehq/erpnext 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (387) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/add-comment.cjs +11 -11
  4. package/dist/actions/add-comment.cjs.map +1 -1
  5. package/dist/actions/add-comment.d.cts +39 -3
  6. package/dist/actions/add-comment.d.cts.map +1 -1
  7. package/dist/actions/add-comment.d.mts +39 -3
  8. package/dist/actions/add-comment.d.mts.map +1 -1
  9. package/dist/actions/add-comment.mjs +11 -11
  10. package/dist/actions/add-comment.mjs.map +1 -1
  11. package/dist/actions/add-tag.cjs +1 -1
  12. package/dist/actions/add-tag.cjs.map +1 -1
  13. package/dist/actions/add-tag.d.cts +15 -3
  14. package/dist/actions/add-tag.d.cts.map +1 -1
  15. package/dist/actions/add-tag.d.mts +15 -3
  16. package/dist/actions/add-tag.d.mts.map +1 -1
  17. package/dist/actions/add-tag.mjs +1 -1
  18. package/dist/actions/add-tag.mjs.map +1 -1
  19. package/dist/actions/apply-workflow.cjs +4 -4
  20. package/dist/actions/apply-workflow.cjs.map +1 -1
  21. package/dist/actions/apply-workflow.d.cts +17 -3
  22. package/dist/actions/apply-workflow.d.cts.map +1 -1
  23. package/dist/actions/apply-workflow.d.mts +17 -3
  24. package/dist/actions/apply-workflow.d.mts.map +1 -1
  25. package/dist/actions/apply-workflow.mjs +4 -4
  26. package/dist/actions/apply-workflow.mjs.map +1 -1
  27. package/dist/actions/cancel-document.cjs +2 -2
  28. package/dist/actions/cancel-document.cjs.map +1 -1
  29. package/dist/actions/cancel-document.d.cts +15 -3
  30. package/dist/actions/cancel-document.d.cts.map +1 -1
  31. package/dist/actions/cancel-document.d.mts +15 -3
  32. package/dist/actions/cancel-document.d.mts.map +1 -1
  33. package/dist/actions/cancel-document.mjs +2 -2
  34. package/dist/actions/cancel-document.mjs.map +1 -1
  35. package/dist/actions/create-document.cjs +7 -7
  36. package/dist/actions/create-document.cjs.map +1 -1
  37. package/dist/actions/create-document.d.cts +30 -3
  38. package/dist/actions/create-document.d.cts.map +1 -1
  39. package/dist/actions/create-document.d.mts +30 -3
  40. package/dist/actions/create-document.d.mts.map +1 -1
  41. package/dist/actions/create-document.mjs +7 -7
  42. package/dist/actions/create-document.mjs.map +1 -1
  43. package/dist/actions/create-timesheet.cjs +7 -7
  44. package/dist/actions/create-timesheet.cjs.map +1 -1
  45. package/dist/actions/create-timesheet.d.cts +43 -3
  46. package/dist/actions/create-timesheet.d.cts.map +1 -1
  47. package/dist/actions/create-timesheet.d.mts +43 -3
  48. package/dist/actions/create-timesheet.d.mts.map +1 -1
  49. package/dist/actions/create-timesheet.mjs +7 -7
  50. package/dist/actions/create-timesheet.mjs.map +1 -1
  51. package/dist/actions/delete-document.cjs +1 -1
  52. package/dist/actions/delete-document.cjs.map +1 -1
  53. package/dist/actions/delete-document.d.cts +13 -3
  54. package/dist/actions/delete-document.d.cts.map +1 -1
  55. package/dist/actions/delete-document.d.mts +13 -3
  56. package/dist/actions/delete-document.d.mts.map +1 -1
  57. package/dist/actions/delete-document.mjs +1 -1
  58. package/dist/actions/delete-document.mjs.map +1 -1
  59. package/dist/actions/download-file.cjs +3 -3
  60. package/dist/actions/download-file.cjs.map +1 -1
  61. package/dist/actions/download-file.d.cts +19 -3
  62. package/dist/actions/download-file.d.cts.map +1 -1
  63. package/dist/actions/download-file.d.mts +19 -3
  64. package/dist/actions/download-file.d.mts.map +1 -1
  65. package/dist/actions/download-file.mjs +3 -3
  66. package/dist/actions/download-file.mjs.map +1 -1
  67. package/dist/actions/download-pdf.cjs +3 -3
  68. package/dist/actions/download-pdf.cjs.map +1 -1
  69. package/dist/actions/download-pdf.d.cts +25 -3
  70. package/dist/actions/download-pdf.d.cts.map +1 -1
  71. package/dist/actions/download-pdf.d.mts +25 -3
  72. package/dist/actions/download-pdf.d.mts.map +1 -1
  73. package/dist/actions/download-pdf.mjs +3 -3
  74. package/dist/actions/download-pdf.mjs.map +1 -1
  75. package/dist/actions/get-all-languages.cjs +2 -2
  76. package/dist/actions/get-all-languages.cjs.map +1 -1
  77. package/dist/actions/get-all-languages.d.cts +17 -3
  78. package/dist/actions/get-all-languages.d.cts.map +1 -1
  79. package/dist/actions/get-all-languages.d.mts +17 -3
  80. package/dist/actions/get-all-languages.d.mts.map +1 -1
  81. package/dist/actions/get-all-languages.mjs +2 -2
  82. package/dist/actions/get-all-languages.mjs.map +1 -1
  83. package/dist/actions/get-all-roles.cjs.map +1 -1
  84. package/dist/actions/get-all-roles.d.cts +7 -3
  85. package/dist/actions/get-all-roles.d.cts.map +1 -1
  86. package/dist/actions/get-all-roles.d.mts +7 -3
  87. package/dist/actions/get-all-roles.d.mts.map +1 -1
  88. package/dist/actions/get-all-roles.mjs.map +1 -1
  89. package/dist/actions/get-client.cjs +8 -8
  90. package/dist/actions/get-client.cjs.map +1 -1
  91. package/dist/actions/get-client.d.cts +34 -3
  92. package/dist/actions/get-client.d.cts.map +1 -1
  93. package/dist/actions/get-client.d.mts +34 -3
  94. package/dist/actions/get-client.d.mts.map +1 -1
  95. package/dist/actions/get-client.mjs +8 -8
  96. package/dist/actions/get-client.mjs.map +1 -1
  97. package/dist/actions/get-count.cjs +1 -1
  98. package/dist/actions/get-count.cjs.map +1 -1
  99. package/dist/actions/get-count.d.cts +13 -3
  100. package/dist/actions/get-count.d.cts.map +1 -1
  101. package/dist/actions/get-count.d.mts +13 -3
  102. package/dist/actions/get-count.d.mts.map +1 -1
  103. package/dist/actions/get-count.mjs +1 -1
  104. package/dist/actions/get-count.mjs.map +1 -1
  105. package/dist/actions/get-doc-with-meta.cjs +20 -20
  106. package/dist/actions/get-doc-with-meta.cjs.map +1 -1
  107. package/dist/actions/get-doc-with-meta.d.cts +53 -3
  108. package/dist/actions/get-doc-with-meta.d.cts.map +1 -1
  109. package/dist/actions/get-doc-with-meta.d.mts +53 -3
  110. package/dist/actions/get-doc-with-meta.d.mts.map +1 -1
  111. package/dist/actions/get-doc-with-meta.mjs +20 -20
  112. package/dist/actions/get-doc-with-meta.mjs.map +1 -1
  113. package/dist/actions/get-doctype-meta.cjs +3 -3
  114. package/dist/actions/get-doctype-meta.cjs.map +1 -1
  115. package/dist/actions/get-doctype-meta.d.cts +17 -3
  116. package/dist/actions/get-doctype-meta.d.cts.map +1 -1
  117. package/dist/actions/get-doctype-meta.d.mts +17 -3
  118. package/dist/actions/get-doctype-meta.d.mts.map +1 -1
  119. package/dist/actions/get-doctype-meta.mjs +3 -3
  120. package/dist/actions/get-doctype-meta.mjs.map +1 -1
  121. package/dist/actions/get-document.cjs +7 -7
  122. package/dist/actions/get-document.cjs.map +1 -1
  123. package/dist/actions/get-document.d.cts +34 -3
  124. package/dist/actions/get-document.d.cts.map +1 -1
  125. package/dist/actions/get-document.d.mts +34 -3
  126. package/dist/actions/get-document.d.mts.map +1 -1
  127. package/dist/actions/get-document.mjs +7 -7
  128. package/dist/actions/get-document.mjs.map +1 -1
  129. package/dist/actions/get-exchange-rate.cjs +1 -1
  130. package/dist/actions/get-exchange-rate.cjs.map +1 -1
  131. package/dist/actions/get-exchange-rate.d.cts +15 -3
  132. package/dist/actions/get-exchange-rate.d.cts.map +1 -1
  133. package/dist/actions/get-exchange-rate.d.mts +15 -3
  134. package/dist/actions/get-exchange-rate.d.mts.map +1 -1
  135. package/dist/actions/get-exchange-rate.mjs +1 -1
  136. package/dist/actions/get-exchange-rate.mjs.map +1 -1
  137. package/dist/actions/get-fiscal-year.cjs +3 -3
  138. package/dist/actions/get-fiscal-year.cjs.map +1 -1
  139. package/dist/actions/get-fiscal-year.d.cts +21 -3
  140. package/dist/actions/get-fiscal-year.d.cts.map +1 -1
  141. package/dist/actions/get-fiscal-year.d.mts +21 -3
  142. package/dist/actions/get-fiscal-year.d.mts.map +1 -1
  143. package/dist/actions/get-fiscal-year.mjs +3 -3
  144. package/dist/actions/get-fiscal-year.mjs.map +1 -1
  145. package/dist/actions/get-framework-version.cjs.map +1 -1
  146. package/dist/actions/get-framework-version.d.cts +7 -3
  147. package/dist/actions/get-framework-version.d.cts.map +1 -1
  148. package/dist/actions/get-framework-version.d.mts +7 -3
  149. package/dist/actions/get-framework-version.d.mts.map +1 -1
  150. package/dist/actions/get-framework-version.mjs.map +1 -1
  151. package/dist/actions/get-item-details.cjs +27 -27
  152. package/dist/actions/get-item-details.cjs.map +1 -1
  153. package/dist/actions/get-item-details.d.cts +90 -3
  154. package/dist/actions/get-item-details.d.cts.map +1 -1
  155. package/dist/actions/get-item-details.d.mts +90 -3
  156. package/dist/actions/get-item-details.d.mts.map +1 -1
  157. package/dist/actions/get-item-details.mjs +27 -27
  158. package/dist/actions/get-item-details.mjs.map +1 -1
  159. package/dist/actions/get-list.cjs.map +1 -1
  160. package/dist/actions/get-list.d.cts +21 -3
  161. package/dist/actions/get-list.d.cts.map +1 -1
  162. package/dist/actions/get-list.d.mts +21 -3
  163. package/dist/actions/get-list.d.mts.map +1 -1
  164. package/dist/actions/get-list.mjs.map +1 -1
  165. package/dist/actions/get-logged-user.cjs +1 -1
  166. package/dist/actions/get-logged-user.cjs.map +1 -1
  167. package/dist/actions/get-logged-user.d.cts +7 -3
  168. package/dist/actions/get-logged-user.d.cts.map +1 -1
  169. package/dist/actions/get-logged-user.d.mts +7 -3
  170. package/dist/actions/get-logged-user.d.mts.map +1 -1
  171. package/dist/actions/get-logged-user.mjs +1 -1
  172. package/dist/actions/get-logged-user.mjs.map +1 -1
  173. package/dist/actions/get-party-details.cjs +36 -36
  174. package/dist/actions/get-party-details.cjs.map +1 -1
  175. package/dist/actions/get-party-details.d.cts +90 -3
  176. package/dist/actions/get-party-details.d.cts.map +1 -1
  177. package/dist/actions/get-party-details.d.mts +90 -3
  178. package/dist/actions/get-party-details.d.mts.map +1 -1
  179. package/dist/actions/get-party-details.mjs +36 -36
  180. package/dist/actions/get-party-details.mjs.map +1 -1
  181. package/dist/actions/get-payment-entry.cjs +26 -26
  182. package/dist/actions/get-payment-entry.cjs.map +1 -1
  183. package/dist/actions/get-payment-entry.d.cts +71 -3
  184. package/dist/actions/get-payment-entry.d.cts.map +1 -1
  185. package/dist/actions/get-payment-entry.d.mts +71 -3
  186. package/dist/actions/get-payment-entry.d.mts.map +1 -1
  187. package/dist/actions/get-payment-entry.mjs +26 -26
  188. package/dist/actions/get-payment-entry.mjs.map +1 -1
  189. package/dist/actions/get-stock-balance.cjs +1 -1
  190. package/dist/actions/get-stock-balance.cjs.map +1 -1
  191. package/dist/actions/get-stock-balance.d.cts +15 -3
  192. package/dist/actions/get-stock-balance.d.cts.map +1 -1
  193. package/dist/actions/get-stock-balance.d.mts +15 -3
  194. package/dist/actions/get-stock-balance.d.mts.map +1 -1
  195. package/dist/actions/get-stock-balance.mjs +1 -1
  196. package/dist/actions/get-stock-balance.mjs.map +1 -1
  197. package/dist/actions/get-timezones.cjs.map +1 -1
  198. package/dist/actions/get-timezones.d.cts +11 -3
  199. package/dist/actions/get-timezones.d.cts.map +1 -1
  200. package/dist/actions/get-timezones.d.mts +11 -3
  201. package/dist/actions/get-timezones.d.mts.map +1 -1
  202. package/dist/actions/get-timezones.mjs.map +1 -1
  203. package/dist/actions/get-user-roles.cjs.map +1 -1
  204. package/dist/actions/get-user-roles.d.cts +11 -3
  205. package/dist/actions/get-user-roles.d.cts.map +1 -1
  206. package/dist/actions/get-user-roles.d.mts +11 -3
  207. package/dist/actions/get-user-roles.d.mts.map +1 -1
  208. package/dist/actions/get-user-roles.mjs.map +1 -1
  209. package/dist/actions/get-value.cjs.map +1 -1
  210. package/dist/actions/get-value.d.cts +17 -3
  211. package/dist/actions/get-value.d.cts.map +1 -1
  212. package/dist/actions/get-value.d.mts +17 -3
  213. package/dist/actions/get-value.d.mts.map +1 -1
  214. package/dist/actions/get-value.mjs.map +1 -1
  215. package/dist/actions/get-workflow-transitions.cjs +7 -7
  216. package/dist/actions/get-workflow-transitions.cjs.map +1 -1
  217. package/dist/actions/get-workflow-transitions.d.cts +27 -3
  218. package/dist/actions/get-workflow-transitions.d.cts.map +1 -1
  219. package/dist/actions/get-workflow-transitions.d.mts +27 -3
  220. package/dist/actions/get-workflow-transitions.d.mts.map +1 -1
  221. package/dist/actions/get-workflow-transitions.mjs +7 -7
  222. package/dist/actions/get-workflow-transitions.mjs.map +1 -1
  223. package/dist/actions/insert-document.cjs.map +1 -1
  224. package/dist/actions/insert-document.d.cts +11 -3
  225. package/dist/actions/insert-document.d.cts.map +1 -1
  226. package/dist/actions/insert-document.d.mts +11 -3
  227. package/dist/actions/insert-document.d.mts.map +1 -1
  228. package/dist/actions/insert-document.mjs.map +1 -1
  229. package/dist/actions/insert-many.cjs +4 -4
  230. package/dist/actions/insert-many.cjs.map +1 -1
  231. package/dist/actions/insert-many.d.cts +18 -3
  232. package/dist/actions/insert-many.d.cts.map +1 -1
  233. package/dist/actions/insert-many.d.mts +18 -3
  234. package/dist/actions/insert-many.d.mts.map +1 -1
  235. package/dist/actions/insert-many.mjs +4 -4
  236. package/dist/actions/insert-many.mjs.map +1 -1
  237. package/dist/actions/list-doctypes.cjs +1 -1
  238. package/dist/actions/list-doctypes.cjs.map +1 -1
  239. package/dist/actions/list-doctypes.d.cts +17 -3
  240. package/dist/actions/list-doctypes.d.cts.map +1 -1
  241. package/dist/actions/list-doctypes.d.mts +17 -3
  242. package/dist/actions/list-doctypes.d.mts.map +1 -1
  243. package/dist/actions/list-doctypes.mjs +1 -1
  244. package/dist/actions/list-doctypes.mjs.map +1 -1
  245. package/dist/actions/list-documents.cjs.map +1 -1
  246. package/dist/actions/list-documents.d.cts +19 -3
  247. package/dist/actions/list-documents.d.cts.map +1 -1
  248. package/dist/actions/list-documents.d.mts +19 -3
  249. package/dist/actions/list-documents.d.mts.map +1 -1
  250. package/dist/actions/list-documents.mjs.map +1 -1
  251. package/dist/actions/list-employees.cjs +1 -1
  252. package/dist/actions/list-employees.cjs.map +1 -1
  253. package/dist/actions/list-employees.d.cts +22 -3
  254. package/dist/actions/list-employees.d.cts.map +1 -1
  255. package/dist/actions/list-employees.d.mts +22 -3
  256. package/dist/actions/list-employees.d.mts.map +1 -1
  257. package/dist/actions/list-employees.mjs +1 -1
  258. package/dist/actions/list-employees.mjs.map +1 -1
  259. package/dist/actions/list-projects.cjs.map +1 -1
  260. package/dist/actions/list-projects.d.cts +17 -3
  261. package/dist/actions/list-projects.d.cts.map +1 -1
  262. package/dist/actions/list-projects.d.mts +17 -3
  263. package/dist/actions/list-projects.d.mts.map +1 -1
  264. package/dist/actions/list-projects.mjs.map +1 -1
  265. package/dist/actions/list-timesheets.cjs.map +1 -1
  266. package/dist/actions/list-timesheets.d.cts +17 -3
  267. package/dist/actions/list-timesheets.d.cts.map +1 -1
  268. package/dist/actions/list-timesheets.d.mts +17 -3
  269. package/dist/actions/list-timesheets.d.mts.map +1 -1
  270. package/dist/actions/list-timesheets.mjs.map +1 -1
  271. package/dist/actions/list-webhooks.cjs +5 -5
  272. package/dist/actions/list-webhooks.cjs.map +1 -1
  273. package/dist/actions/list-webhooks.d.cts +30 -3
  274. package/dist/actions/list-webhooks.d.cts.map +1 -1
  275. package/dist/actions/list-webhooks.d.mts +30 -3
  276. package/dist/actions/list-webhooks.d.mts.map +1 -1
  277. package/dist/actions/list-webhooks.mjs +5 -5
  278. package/dist/actions/list-webhooks.mjs.map +1 -1
  279. package/dist/actions/make-delivery-note.cjs +11 -11
  280. package/dist/actions/make-delivery-note.cjs.map +1 -1
  281. package/dist/actions/make-delivery-note.d.cts +36 -3
  282. package/dist/actions/make-delivery-note.d.cts.map +1 -1
  283. package/dist/actions/make-delivery-note.d.mts +36 -3
  284. package/dist/actions/make-delivery-note.d.mts.map +1 -1
  285. package/dist/actions/make-delivery-note.mjs +11 -11
  286. package/dist/actions/make-delivery-note.mjs.map +1 -1
  287. package/dist/actions/make-purchase-order.cjs +22 -22
  288. package/dist/actions/make-purchase-order.cjs.map +1 -1
  289. package/dist/actions/make-purchase-order.d.cts +61 -3
  290. package/dist/actions/make-purchase-order.d.cts.map +1 -1
  291. package/dist/actions/make-purchase-order.d.mts +61 -3
  292. package/dist/actions/make-purchase-order.d.mts.map +1 -1
  293. package/dist/actions/make-purchase-order.mjs +22 -22
  294. package/dist/actions/make-purchase-order.mjs.map +1 -1
  295. package/dist/actions/make-sales-invoice.cjs +13 -13
  296. package/dist/actions/make-sales-invoice.cjs.map +1 -1
  297. package/dist/actions/make-sales-invoice.d.cts +40 -3
  298. package/dist/actions/make-sales-invoice.d.cts.map +1 -1
  299. package/dist/actions/make-sales-invoice.d.mts +40 -3
  300. package/dist/actions/make-sales-invoice.d.mts.map +1 -1
  301. package/dist/actions/make-sales-invoice.mjs +13 -13
  302. package/dist/actions/make-sales-invoice.mjs.map +1 -1
  303. package/dist/actions/make-stock-entry.cjs +9 -9
  304. package/dist/actions/make-stock-entry.cjs.map +1 -1
  305. package/dist/actions/make-stock-entry.d.cts +50 -3
  306. package/dist/actions/make-stock-entry.d.cts.map +1 -1
  307. package/dist/actions/make-stock-entry.d.mts +50 -3
  308. package/dist/actions/make-stock-entry.d.mts.map +1 -1
  309. package/dist/actions/make-stock-entry.mjs +9 -9
  310. package/dist/actions/make-stock-entry.mjs.map +1 -1
  311. package/dist/actions/ping.cjs +1 -1
  312. package/dist/actions/ping.cjs.map +1 -1
  313. package/dist/actions/ping.d.cts +7 -3
  314. package/dist/actions/ping.d.cts.map +1 -1
  315. package/dist/actions/ping.d.mts +7 -3
  316. package/dist/actions/ping.d.mts.map +1 -1
  317. package/dist/actions/ping.mjs +1 -1
  318. package/dist/actions/ping.mjs.map +1 -1
  319. package/dist/actions/rename-doc.cjs.map +1 -1
  320. package/dist/actions/rename-doc.d.cts +17 -3
  321. package/dist/actions/rename-doc.d.cts.map +1 -1
  322. package/dist/actions/rename-doc.d.mts +17 -3
  323. package/dist/actions/rename-doc.d.mts.map +1 -1
  324. package/dist/actions/rename-doc.mjs.map +1 -1
  325. package/dist/actions/save-docs.cjs +5 -5
  326. package/dist/actions/save-docs.cjs.map +1 -1
  327. package/dist/actions/save-docs.d.cts +26 -3
  328. package/dist/actions/save-docs.d.cts.map +1 -1
  329. package/dist/actions/save-docs.d.mts +26 -3
  330. package/dist/actions/save-docs.d.mts.map +1 -1
  331. package/dist/actions/save-docs.mjs +5 -5
  332. package/dist/actions/save-docs.mjs.map +1 -1
  333. package/dist/actions/save-document.cjs +2 -2
  334. package/dist/actions/save-document.cjs.map +1 -1
  335. package/dist/actions/save-document.d.cts +37 -3
  336. package/dist/actions/save-document.d.cts.map +1 -1
  337. package/dist/actions/save-document.d.mts +37 -3
  338. package/dist/actions/save-document.d.mts.map +1 -1
  339. package/dist/actions/save-document.mjs +2 -2
  340. package/dist/actions/save-document.mjs.map +1 -1
  341. package/dist/actions/search-global.cjs +7 -7
  342. package/dist/actions/search-global.cjs.map +1 -1
  343. package/dist/actions/search-global.d.cts +31 -3
  344. package/dist/actions/search-global.d.cts.map +1 -1
  345. package/dist/actions/search-global.d.mts +31 -3
  346. package/dist/actions/search-global.d.mts.map +1 -1
  347. package/dist/actions/search-global.mjs +7 -7
  348. package/dist/actions/search-global.mjs.map +1 -1
  349. package/dist/actions/search-link.cjs +3 -3
  350. package/dist/actions/search-link.cjs.map +1 -1
  351. package/dist/actions/search-link.d.cts +35 -3
  352. package/dist/actions/search-link.d.cts.map +1 -1
  353. package/dist/actions/search-link.d.mts +35 -3
  354. package/dist/actions/search-link.d.mts.map +1 -1
  355. package/dist/actions/search-link.mjs +3 -3
  356. package/dist/actions/search-link.mjs.map +1 -1
  357. package/dist/actions/set-value.cjs +8 -8
  358. package/dist/actions/set-value.cjs.map +1 -1
  359. package/dist/actions/set-value.d.cts +49 -3
  360. package/dist/actions/set-value.d.cts.map +1 -1
  361. package/dist/actions/set-value.d.mts +49 -3
  362. package/dist/actions/set-value.d.mts.map +1 -1
  363. package/dist/actions/set-value.mjs +8 -8
  364. package/dist/actions/set-value.mjs.map +1 -1
  365. package/dist/actions/submit-document.cjs +8 -8
  366. package/dist/actions/submit-document.cjs.map +1 -1
  367. package/dist/actions/submit-document.d.cts +29 -3
  368. package/dist/actions/submit-document.d.cts.map +1 -1
  369. package/dist/actions/submit-document.d.mts +29 -3
  370. package/dist/actions/submit-document.d.mts.map +1 -1
  371. package/dist/actions/submit-document.mjs +8 -8
  372. package/dist/actions/submit-document.mjs.map +1 -1
  373. package/dist/actions/update-document.cjs +8 -8
  374. package/dist/actions/update-document.cjs.map +1 -1
  375. package/dist/actions/update-document.d.cts +31 -3
  376. package/dist/actions/update-document.d.cts.map +1 -1
  377. package/dist/actions/update-document.d.mts +31 -3
  378. package/dist/actions/update-document.d.mts.map +1 -1
  379. package/dist/actions/update-document.mjs +8 -8
  380. package/dist/actions/update-document.mjs.map +1 -1
  381. package/dist/catalog.cjs +18 -1
  382. package/dist/catalog.cjs.map +1 -1
  383. package/dist/catalog.d.cts +17 -0
  384. package/dist/catalog.d.mts +17 -0
  385. package/dist/catalog.mjs +18 -1
  386. package/dist/catalog.mjs.map +1 -1
  387. package/package.json +2 -2
@@ -1,9 +1,13 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-logged-user.d.ts
4
- declare const ErpnextGetLoggedUserInput: z.ZodTypeAny;
5
- declare const ErpnextGetLoggedUserOutput: z.ZodTypeAny;
6
- declare const erpnextGetLoggedUser: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const ErpnextGetLoggedUserInput: z.ZodObject<{}, z.core.$strip>;
5
+ declare const ErpnextGetLoggedUserOutput: z.ZodObject<{
6
+ message: z.ZodNullable<z.ZodString>;
7
+ }, z.core.$strip>;
8
+ declare const erpnextGetLoggedUser: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, {
9
+ message: string | null;
10
+ }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
11
  //#endregion
8
12
  export { erpnextGetLoggedUser };
9
13
  //# sourceMappingURL=get-logged-user.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-logged-user.d.mts","names":[],"sources":["../../src/actions/get-logged-user.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAAwI;AAAA,cACrK,0BAAA,EAA4B,CAAA,CAAE,UAEgC;AAAA,cAE9D,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-logged-user.d.mts","names":[],"sources":["../../src/actions/get-logged-user.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cACzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cAI1B,oBAAA,gCAAoB,wBAAA,CAAA,MAAA"}
@@ -5,7 +5,7 @@ const erpnextGetLoggedUser = action("ERPNEXT_GET_LOGGED_USER", {
5
5
  name: "Get Logged User",
6
6
  description: "Tool to get the email/ID of the currently authenticated user. Use to verify authentication is working.",
7
7
  input: z.object({}).describe("Request model for getting the currently authenticated user.\nThis endpoint requires no parameters."),
8
- output: z.object({ message: z.string().describe("The email address or ID of the currently authenticated user.") }).describe("Response model containing the authenticated user's email/ID.")
8
+ output: z.object({ message: z.string().describe("The email address or ID of the currently authenticated user.").nullable() }).describe("Response model containing the authenticated user's email/ID.")
9
9
  });
10
10
  //#endregion
11
11
  export { erpnextGetLoggedUser };
@@ -1 +1 @@
1
- {"version":3,"file":"get-logged-user.mjs","names":[],"sources":["../../src/actions/get-logged-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetLoggedUserInput: z.ZodTypeAny = z.object({}).describe(\"Request model for getting the currently authenticated user.\\nThis endpoint requires no parameters.\");\nexport const ErpnextGetLoggedUserOutput: z.ZodTypeAny = z.object({\n message: z.string().describe(\"The email address or ID of the currently authenticated user.\"),\n}).describe(\"Response model containing the authenticated user's email/ID.\");\n\nexport const erpnextGetLoggedUser = action(\"ERPNEXT_GET_LOGGED_USER\", {\n slug: \"erpnext-get-logged-user\",\n name: \"Get Logged User\",\n description: \"Tool to get the email/ID of the currently authenticated user. Use to verify authentication is working.\",\n input: ErpnextGetLoggedUserInput,\n output: ErpnextGetLoggedUserOutput,\n});\n"],"mappings":";;AASA,MAAa,uBAAuB,OAAO,2BAA2B;CACpE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OATqD,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,oGASpE;CACP,QATsD,EAAE,OAAO,EAC/D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,EAC7F,CAAC,CAAC,CAAC,SAAS,8DAOF;AACV,CAAC"}
1
+ {"version":3,"file":"get-logged-user.mjs","names":[],"sources":["../../src/actions/get-logged-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetLoggedUserInput = z.object({}).describe(\"Request model for getting the currently authenticated user.\\nThis endpoint requires no parameters.\");\nexport const ErpnextGetLoggedUserOutput = z.object({\n message: z.string().describe(\"The email address or ID of the currently authenticated user.\").nullable(),\n}).describe(\"Response model containing the authenticated user's email/ID.\");\n\nexport const erpnextGetLoggedUser = action(\"ERPNEXT_GET_LOGGED_USER\", {\n slug: \"erpnext-get-logged-user\",\n name: \"Get Logged User\",\n description: \"Tool to get the email/ID of the currently authenticated user. Use to verify authentication is working.\",\n input: ErpnextGetLoggedUserInput,\n output: ErpnextGetLoggedUserOutput,\n});\n"],"mappings":";;AASA,MAAa,uBAAuB,OAAO,2BAA2B;CACpE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OATuC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,oGAStD;CACP,QATwC,EAAE,OAAO,EACjD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,EACxG,CAAC,CAAC,CAAC,SAAS,8DAOF;AACV,CAAC"}
@@ -7,42 +7,42 @@ const ErpnextGetPartyDetailsInput = zod.z.object({
7
7
  party_type: zod.z.string().describe("Type of party - either 'Customer' or 'Supplier'")
8
8
  }).describe("Request model for retrieving customer or supplier details.");
9
9
  const ErpnextGetPartyDetails_PartyDetailsDataSchema = zod.z.object({
10
- currency: zod.z.string().describe("Transaction currency").nullable().optional(),
11
- customer: zod.z.string().describe("Customer name (for Customer party type)").nullable().optional(),
12
- debit_to: zod.z.string().describe("Debit account (for customers)").nullable().optional(),
13
- due_date: zod.z.string().describe("Payment due date").nullable().optional(),
14
- language: zod.z.string().describe("Preferred language").nullable().optional(),
15
- supplier: zod.z.string().describe("Supplier name (for Supplier party type)").nullable().optional(),
16
- credit_to: zod.z.string().describe("Credit account (for suppliers)").nullable().optional(),
17
- territory: zod.z.string().describe("Customer territory").nullable().optional(),
18
- price_list: zod.z.string().describe("Default price list").nullable().optional(),
19
- supplier_tds: zod.z.string().describe("Supplier TDS category").nullable().optional(),
20
- tax_category: zod.z.string().describe("Tax category").nullable().optional(),
21
- contact_email: zod.z.string().describe("Contact email address").nullable().optional(),
22
- contact_phone: zod.z.string().describe("Contact phone number").nullable().optional(),
23
- customer_name: zod.z.string().describe("Full customer name").nullable().optional(),
24
- supplier_name: zod.z.string().describe("Full supplier name").nullable().optional(),
25
- contact_mobile: zod.z.string().describe("Contact mobile number").nullable().optional(),
26
- contact_person: zod.z.string().describe("Contact person ID").nullable().optional(),
27
- customer_group: zod.z.string().describe("Customer group").nullable().optional(),
28
- supplier_group: zod.z.string().describe("Supplier group").nullable().optional(),
29
- address_display: zod.z.string().describe("Formatted billing address").nullable().optional(),
30
- company_address: zod.z.string().describe("Company address ID").nullable().optional(),
31
- contact_display: zod.z.string().describe("Contact person full name").nullable().optional(),
32
- customer_address: zod.z.string().describe("Customer address ID").nullable().optional(),
33
- dispatch_address: zod.z.string().describe("Formatted dispatch address").nullable().optional(),
34
- shipping_address: zod.z.string().describe("Formatted shipping address").nullable().optional(),
35
- supplier_address: zod.z.string().describe("Supplier address ID").nullable().optional(),
36
- buying_price_list: zod.z.string().describe("Buying price list").nullable().optional(),
37
- taxes_and_charges: zod.z.string().describe("Default taxes and charges template").nullable().optional(),
38
- contact_department: zod.z.string().describe("Contact department").nullable().optional(),
39
- selling_price_list: zod.z.string().describe("Selling price list").nullable().optional(),
40
- contact_designation: zod.z.string().describe("Contact designation").nullable().optional(),
41
- dispatch_address_name: zod.z.string().describe("Dispatch address ID").nullable().optional(),
42
- shipping_address_name: zod.z.string().describe("Shipping address ID").nullable().optional(),
43
- payment_terms_template: zod.z.string().describe("Payment terms template").nullable().optional(),
44
- company_address_display: zod.z.string().describe("Formatted company address").nullable().optional(),
45
- tax_withholding_category: zod.z.string().describe("Tax withholding category").nullable().optional()
10
+ currency: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Transaction currency").optional()),
11
+ customer: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Customer name (for Customer party type)").optional()),
12
+ debit_to: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Debit account (for customers)").optional()),
13
+ due_date: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Payment due date").optional()),
14
+ language: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Preferred language").optional()),
15
+ supplier: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Supplier name (for Supplier party type)").optional()),
16
+ credit_to: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Credit account (for suppliers)").optional()),
17
+ territory: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Customer territory").optional()),
18
+ price_list: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Default price list").optional()),
19
+ supplier_tds: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Supplier TDS category").optional()),
20
+ tax_category: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Tax category").optional()),
21
+ contact_email: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Contact email address").optional()),
22
+ contact_phone: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Contact phone number").optional()),
23
+ customer_name: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Full customer name").optional()),
24
+ supplier_name: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Full supplier name").optional()),
25
+ contact_mobile: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Contact mobile number").optional()),
26
+ contact_person: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Contact person ID").optional()),
27
+ customer_group: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Customer group").optional()),
28
+ supplier_group: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Supplier group").optional()),
29
+ address_display: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Formatted billing address").optional()),
30
+ company_address: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Company address ID").optional()),
31
+ contact_display: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Contact person full name").optional()),
32
+ customer_address: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Customer address ID").optional()),
33
+ dispatch_address: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Formatted dispatch address").optional()),
34
+ shipping_address: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Formatted shipping address").optional()),
35
+ supplier_address: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Supplier address ID").optional()),
36
+ buying_price_list: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Buying price list").optional()),
37
+ taxes_and_charges: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Default taxes and charges template").optional()),
38
+ contact_department: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Contact department").optional()),
39
+ selling_price_list: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Selling price list").optional()),
40
+ contact_designation: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Contact designation").optional()),
41
+ dispatch_address_name: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Dispatch address ID").optional()),
42
+ shipping_address_name: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Shipping address ID").optional()),
43
+ payment_terms_template: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Payment terms template").optional()),
44
+ company_address_display: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Formatted company address").optional()),
45
+ tax_withholding_category: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Tax withholding category").optional())
46
46
  }).passthrough().describe("Detailed party information returned by the API.");
47
47
  const ErpnextGetPartyDetailsOutput = zod.z.object({ message: ErpnextGetPartyDetails_PartyDetailsDataSchema.nullable() }).describe("Response model containing comprehensive party details.");
48
48
  const erpnextGetPartyDetails = require_action.action("ERPNEXT_GET_PARTY_DETAILS", {
@@ -1 +1 @@
1
- {"version":3,"file":"get-party-details.cjs","names":["z","action"],"sources":["../../src/actions/get-party-details.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetPartyDetailsInput: z.ZodTypeAny = z.object({\n party: z.string().describe(\"Name (ID) of the customer or supplier\"),\n company: z.string().describe(\"Company name for which to fetch party details. If not specified, default company is used.\").optional(),\n party_type: z.string().describe(\"Type of party - either 'Customer' or 'Supplier'\"),\n}).describe(\"Request model for retrieving customer or supplier details.\");\nconst ErpnextGetPartyDetails_PartyDetailsDataSchema: z.ZodTypeAny = z.object({\n currency: z.string().describe(\"Transaction currency\").nullable().optional(),\n customer: z.string().describe(\"Customer name (for Customer party type)\").nullable().optional(),\n debit_to: z.string().describe(\"Debit account (for customers)\").nullable().optional(),\n due_date: z.string().describe(\"Payment due date\").nullable().optional(),\n language: z.string().describe(\"Preferred language\").nullable().optional(),\n supplier: z.string().describe(\"Supplier name (for Supplier party type)\").nullable().optional(),\n credit_to: z.string().describe(\"Credit account (for suppliers)\").nullable().optional(),\n territory: z.string().describe(\"Customer territory\").nullable().optional(),\n price_list: z.string().describe(\"Default price list\").nullable().optional(),\n supplier_tds: z.string().describe(\"Supplier TDS category\").nullable().optional(),\n tax_category: z.string().describe(\"Tax category\").nullable().optional(),\n contact_email: z.string().describe(\"Contact email address\").nullable().optional(),\n contact_phone: z.string().describe(\"Contact phone number\").nullable().optional(),\n customer_name: z.string().describe(\"Full customer name\").nullable().optional(),\n supplier_name: z.string().describe(\"Full supplier name\").nullable().optional(),\n contact_mobile: z.string().describe(\"Contact mobile number\").nullable().optional(),\n contact_person: z.string().describe(\"Contact person ID\").nullable().optional(),\n customer_group: z.string().describe(\"Customer group\").nullable().optional(),\n supplier_group: z.string().describe(\"Supplier group\").nullable().optional(),\n address_display: z.string().describe(\"Formatted billing address\").nullable().optional(),\n company_address: z.string().describe(\"Company address ID\").nullable().optional(),\n contact_display: z.string().describe(\"Contact person full name\").nullable().optional(),\n customer_address: z.string().describe(\"Customer address ID\").nullable().optional(),\n dispatch_address: z.string().describe(\"Formatted dispatch address\").nullable().optional(),\n shipping_address: z.string().describe(\"Formatted shipping address\").nullable().optional(),\n supplier_address: z.string().describe(\"Supplier address ID\").nullable().optional(),\n buying_price_list: z.string().describe(\"Buying price list\").nullable().optional(),\n taxes_and_charges: z.string().describe(\"Default taxes and charges template\").nullable().optional(),\n contact_department: z.string().describe(\"Contact department\").nullable().optional(),\n selling_price_list: z.string().describe(\"Selling price list\").nullable().optional(),\n contact_designation: z.string().describe(\"Contact designation\").nullable().optional(),\n dispatch_address_name: z.string().describe(\"Dispatch address ID\").nullable().optional(),\n shipping_address_name: z.string().describe(\"Shipping address ID\").nullable().optional(),\n payment_terms_template: z.string().describe(\"Payment terms template\").nullable().optional(),\n company_address_display: z.string().describe(\"Formatted company address\").nullable().optional(),\n tax_withholding_category: z.string().describe(\"Tax withholding category\").nullable().optional(),\n}).passthrough().describe(\"Detailed party information returned by the API.\");\nexport const ErpnextGetPartyDetailsOutput: z.ZodTypeAny = z.object({\n message: ErpnextGetPartyDetails_PartyDetailsDataSchema.nullable(),\n}).describe(\"Response model containing comprehensive party details.\");\n\nexport const erpnextGetPartyDetails = action(\"ERPNEXT_GET_PARTY_DETAILS\", {\n slug: \"erpnext-get-party-details\",\n name: \"Get Party Details\",\n description: \"Tool to get comprehensive customer or supplier details including addresses, contacts, and default financial settings. Use when creating transactions or updating party information in ERPNext.\",\n input: ErpnextGetPartyDetailsInput,\n output: ErpnextGetPartyDetailsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CAClE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS;CACnI,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;AACnF,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAM,gDAA8DA,IAAAA,EAAE,OAAO;CAC3E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,S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,SAAS;CAClF,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,wBAAwBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,yBAAyBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,0BAA0BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAC3E,MAAa,+BAA6CA,IAAAA,EAAE,OAAO,EACjE,SAAS,8CAA8C,SAAS,EAClE,CAAC,CAAC,CAAC,SAAS,wDAAwD;AAEpE,MAAa,yBAAyBC,eAAAA,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-party-details.cjs","names":["z","action"],"sources":["../../src/actions/get-party-details.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetPartyDetailsInput = z.object({\n party: z.string().describe(\"Name (ID) of the customer or supplier\"),\n company: z.string().describe(\"Company name for which to fetch party details. If not specified, default company is used.\").optional(),\n party_type: z.string().describe(\"Type of party - either 'Customer' or 'Supplier'\"),\n}).describe(\"Request model for retrieving customer or supplier details.\");\nconst ErpnextGetPartyDetails_PartyDetailsDataSchema = z.object({\n currency: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Transaction currency\").optional()),\n customer: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Customer name (for Customer party type)\").optional()),\n debit_to: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Debit account (for customers)\").optional()),\n due_date: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Payment due date\").optional()),\n language: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Preferred language\").optional()),\n supplier: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Supplier name (for Supplier party type)\").optional()),\n credit_to: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Credit account (for suppliers)\").optional()),\n territory: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Customer territory\").optional()),\n price_list: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Default price list\").optional()),\n supplier_tds: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Supplier TDS category\").optional()),\n tax_category: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Tax category\").optional()),\n contact_email: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Contact email address\").optional()),\n contact_phone: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Contact phone number\").optional()),\n customer_name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Full customer name\").optional()),\n supplier_name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Full supplier name\").optional()),\n contact_mobile: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Contact mobile number\").optional()),\n contact_person: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Contact person ID\").optional()),\n customer_group: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Customer group\").optional()),\n supplier_group: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Supplier group\").optional()),\n address_display: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Formatted billing address\").optional()),\n company_address: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Company address ID\").optional()),\n contact_display: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Contact person full name\").optional()),\n customer_address: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Customer address ID\").optional()),\n dispatch_address: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Formatted dispatch address\").optional()),\n shipping_address: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Formatted shipping address\").optional()),\n supplier_address: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Supplier address ID\").optional()),\n buying_price_list: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Buying price list\").optional()),\n taxes_and_charges: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Default taxes and charges template\").optional()),\n contact_department: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Contact department\").optional()),\n selling_price_list: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Selling price list\").optional()),\n contact_designation: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Contact designation\").optional()),\n dispatch_address_name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Dispatch address ID\").optional()),\n shipping_address_name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Shipping address ID\").optional()),\n payment_terms_template: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Payment terms template\").optional()),\n company_address_display: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Formatted company address\").optional()),\n tax_withholding_category: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Tax withholding category\").optional()),\n}).passthrough().describe(\"Detailed party information returned by the API.\");\nexport const ErpnextGetPartyDetailsOutput = z.object({\n message: ErpnextGetPartyDetails_PartyDetailsDataSchema.nullable(),\n}).describe(\"Response model containing comprehensive party details.\");\n\nexport const erpnextGetPartyDetails = action(\"ERPNEXT_GET_PARTY_DETAILS\", {\n slug: \"erpnext-get-party-details\",\n name: \"Get Party Details\",\n description: \"Tool to get comprehensive customer or supplier details including addresses, contacts, and default financial settings. Use when creating transactions or updating party information in ERPNext.\",\n input: ErpnextGetPartyDetailsInput,\n output: ErpnextGetPartyDetailsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CAClE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS;CACnI,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;AACnF,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAM,gDAAgDA,IAAAA,EAAE,OAAO;CAC7D,UAAUA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC;CAC9H,UAAUA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC;CACjJ,UAAUA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC;CACvI,UAAUA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC;CAC1H,UAAUA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC;CAC5H,UAAUA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAA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E,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC;CAC9I,yBAAyBA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC;CAClJ,0BAA0BA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC;AACpJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAC3E,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,SAAS,8CAA8C,SAAS,EAClE,CAAC,CAAC,CAAC,SAAS,wDAAwD;AAEpE,MAAa,yBAAyBC,eAAAA,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,96 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-party-details.d.ts
4
- declare const ErpnextGetPartyDetailsInput: z.ZodTypeAny;
5
- declare const ErpnextGetPartyDetailsOutput: z.ZodTypeAny;
6
- declare const erpnextGetPartyDetails: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const ErpnextGetPartyDetailsInput: z.ZodObject<{
5
+ party: z.ZodString;
6
+ company: z.ZodOptional<z.ZodString>;
7
+ party_type: z.ZodString;
8
+ }, z.core.$strip>;
9
+ declare const ErpnextGetPartyDetailsOutput: z.ZodObject<{
10
+ message: z.ZodNullable<z.ZodObject<{
11
+ currency: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
12
+ customer: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
13
+ debit_to: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
14
+ due_date: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
15
+ language: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
16
+ supplier: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
17
+ credit_to: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
18
+ territory: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
19
+ price_list: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
20
+ supplier_tds: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
21
+ tax_category: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
22
+ contact_email: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
23
+ contact_phone: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
24
+ customer_name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
25
+ supplier_name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
26
+ contact_mobile: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
27
+ contact_person: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
28
+ customer_group: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
29
+ supplier_group: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
30
+ address_display: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
31
+ company_address: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
32
+ contact_display: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
33
+ customer_address: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
34
+ dispatch_address: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
35
+ shipping_address: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
36
+ supplier_address: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
37
+ buying_price_list: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
38
+ taxes_and_charges: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
39
+ contact_department: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
40
+ selling_price_list: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
41
+ contact_designation: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
42
+ dispatch_address_name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
43
+ shipping_address_name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
44
+ payment_terms_template: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
45
+ company_address_display: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
46
+ tax_withholding_category: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
47
+ }, z.core.$loose>>;
48
+ }, z.core.$strip>;
49
+ declare const erpnextGetPartyDetails: import("@keystrokehq/action").WorkflowActionDefinition<{
50
+ party: string;
51
+ party_type: string;
52
+ company?: string | undefined;
53
+ }, {
54
+ message: {
55
+ [x: string]: unknown;
56
+ currency?: string | undefined;
57
+ customer?: string | undefined;
58
+ debit_to?: string | undefined;
59
+ due_date?: string | undefined;
60
+ language?: string | undefined;
61
+ supplier?: string | undefined;
62
+ credit_to?: string | undefined;
63
+ territory?: string | undefined;
64
+ price_list?: string | undefined;
65
+ supplier_tds?: string | undefined;
66
+ tax_category?: string | undefined;
67
+ contact_email?: string | undefined;
68
+ contact_phone?: string | undefined;
69
+ customer_name?: string | undefined;
70
+ supplier_name?: string | undefined;
71
+ contact_mobile?: string | undefined;
72
+ contact_person?: string | undefined;
73
+ customer_group?: string | undefined;
74
+ supplier_group?: string | undefined;
75
+ address_display?: string | undefined;
76
+ company_address?: string | undefined;
77
+ contact_display?: string | undefined;
78
+ customer_address?: string | undefined;
79
+ dispatch_address?: string | undefined;
80
+ shipping_address?: string | undefined;
81
+ supplier_address?: string | undefined;
82
+ buying_price_list?: string | undefined;
83
+ taxes_and_charges?: string | undefined;
84
+ contact_department?: string | undefined;
85
+ selling_price_list?: string | undefined;
86
+ contact_designation?: string | undefined;
87
+ dispatch_address_name?: string | undefined;
88
+ shipping_address_name?: string | undefined;
89
+ payment_terms_template?: string | undefined;
90
+ company_address_display?: string | undefined;
91
+ tax_withholding_category?: string | undefined;
92
+ } | null;
93
+ }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
94
  //#endregion
8
95
  export { erpnextGetPartyDetails };
9
96
  //# sourceMappingURL=get-party-details.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-party-details.d.cts","names":[],"sources":["../../src/actions/get-party-details.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAI6B;AAAA,cAuC5D,4BAAA,EAA8B,CAAA,CAAE,UAEwB;AAAA,cAExD,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-party-details.d.cts","names":[],"sources":["../../src/actions/get-party-details.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;cA2C3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAI5B,sBAAA,gCAAsB,wBAAA"}
@@ -1,9 +1,96 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-party-details.d.ts
4
- declare const ErpnextGetPartyDetailsInput: z.ZodTypeAny;
5
- declare const ErpnextGetPartyDetailsOutput: z.ZodTypeAny;
6
- declare const erpnextGetPartyDetails: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const ErpnextGetPartyDetailsInput: z.ZodObject<{
5
+ party: z.ZodString;
6
+ company: z.ZodOptional<z.ZodString>;
7
+ party_type: z.ZodString;
8
+ }, z.core.$strip>;
9
+ declare const ErpnextGetPartyDetailsOutput: z.ZodObject<{
10
+ message: z.ZodNullable<z.ZodObject<{
11
+ currency: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
12
+ customer: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
13
+ debit_to: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
14
+ due_date: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
15
+ language: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
16
+ supplier: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
17
+ credit_to: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
18
+ territory: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
19
+ price_list: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
20
+ supplier_tds: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
21
+ tax_category: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
22
+ contact_email: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
23
+ contact_phone: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
24
+ customer_name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
25
+ supplier_name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
26
+ contact_mobile: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
27
+ contact_person: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
28
+ customer_group: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
29
+ supplier_group: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
30
+ address_display: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
31
+ company_address: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
32
+ contact_display: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
33
+ customer_address: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
34
+ dispatch_address: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
35
+ shipping_address: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
36
+ supplier_address: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
37
+ buying_price_list: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
38
+ taxes_and_charges: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
39
+ contact_department: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
40
+ selling_price_list: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
41
+ contact_designation: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
42
+ dispatch_address_name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
43
+ shipping_address_name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
44
+ payment_terms_template: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
45
+ company_address_display: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
46
+ tax_withholding_category: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
47
+ }, z.core.$loose>>;
48
+ }, z.core.$strip>;
49
+ declare const erpnextGetPartyDetails: import("@keystrokehq/action").WorkflowActionDefinition<{
50
+ party: string;
51
+ party_type: string;
52
+ company?: string | undefined;
53
+ }, {
54
+ message: {
55
+ [x: string]: unknown;
56
+ currency?: string | undefined;
57
+ customer?: string | undefined;
58
+ debit_to?: string | undefined;
59
+ due_date?: string | undefined;
60
+ language?: string | undefined;
61
+ supplier?: string | undefined;
62
+ credit_to?: string | undefined;
63
+ territory?: string | undefined;
64
+ price_list?: string | undefined;
65
+ supplier_tds?: string | undefined;
66
+ tax_category?: string | undefined;
67
+ contact_email?: string | undefined;
68
+ contact_phone?: string | undefined;
69
+ customer_name?: string | undefined;
70
+ supplier_name?: string | undefined;
71
+ contact_mobile?: string | undefined;
72
+ contact_person?: string | undefined;
73
+ customer_group?: string | undefined;
74
+ supplier_group?: string | undefined;
75
+ address_display?: string | undefined;
76
+ company_address?: string | undefined;
77
+ contact_display?: string | undefined;
78
+ customer_address?: string | undefined;
79
+ dispatch_address?: string | undefined;
80
+ shipping_address?: string | undefined;
81
+ supplier_address?: string | undefined;
82
+ buying_price_list?: string | undefined;
83
+ taxes_and_charges?: string | undefined;
84
+ contact_department?: string | undefined;
85
+ selling_price_list?: string | undefined;
86
+ contact_designation?: string | undefined;
87
+ dispatch_address_name?: string | undefined;
88
+ shipping_address_name?: string | undefined;
89
+ payment_terms_template?: string | undefined;
90
+ company_address_display?: string | undefined;
91
+ tax_withholding_category?: string | undefined;
92
+ } | null;
93
+ }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
94
  //#endregion
8
95
  export { erpnextGetPartyDetails };
9
96
  //# sourceMappingURL=get-party-details.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-party-details.d.mts","names":[],"sources":["../../src/actions/get-party-details.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAI6B;AAAA,cAuC5D,4BAAA,EAA8B,CAAA,CAAE,UAEwB;AAAA,cAExD,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-party-details.d.mts","names":[],"sources":["../../src/actions/get-party-details.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;cA2C3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAI5B,sBAAA,gCAAsB,wBAAA"}
@@ -7,42 +7,42 @@ const ErpnextGetPartyDetailsInput = z.object({
7
7
  party_type: z.string().describe("Type of party - either 'Customer' or 'Supplier'")
8
8
  }).describe("Request model for retrieving customer or supplier details.");
9
9
  const ErpnextGetPartyDetails_PartyDetailsDataSchema = z.object({
10
- currency: z.string().describe("Transaction currency").nullable().optional(),
11
- customer: z.string().describe("Customer name (for Customer party type)").nullable().optional(),
12
- debit_to: z.string().describe("Debit account (for customers)").nullable().optional(),
13
- due_date: z.string().describe("Payment due date").nullable().optional(),
14
- language: z.string().describe("Preferred language").nullable().optional(),
15
- supplier: z.string().describe("Supplier name (for Supplier party type)").nullable().optional(),
16
- credit_to: z.string().describe("Credit account (for suppliers)").nullable().optional(),
17
- territory: z.string().describe("Customer territory").nullable().optional(),
18
- price_list: z.string().describe("Default price list").nullable().optional(),
19
- supplier_tds: z.string().describe("Supplier TDS category").nullable().optional(),
20
- tax_category: z.string().describe("Tax category").nullable().optional(),
21
- contact_email: z.string().describe("Contact email address").nullable().optional(),
22
- contact_phone: z.string().describe("Contact phone number").nullable().optional(),
23
- customer_name: z.string().describe("Full customer name").nullable().optional(),
24
- supplier_name: z.string().describe("Full supplier name").nullable().optional(),
25
- contact_mobile: z.string().describe("Contact mobile number").nullable().optional(),
26
- contact_person: z.string().describe("Contact person ID").nullable().optional(),
27
- customer_group: z.string().describe("Customer group").nullable().optional(),
28
- supplier_group: z.string().describe("Supplier group").nullable().optional(),
29
- address_display: z.string().describe("Formatted billing address").nullable().optional(),
30
- company_address: z.string().describe("Company address ID").nullable().optional(),
31
- contact_display: z.string().describe("Contact person full name").nullable().optional(),
32
- customer_address: z.string().describe("Customer address ID").nullable().optional(),
33
- dispatch_address: z.string().describe("Formatted dispatch address").nullable().optional(),
34
- shipping_address: z.string().describe("Formatted shipping address").nullable().optional(),
35
- supplier_address: z.string().describe("Supplier address ID").nullable().optional(),
36
- buying_price_list: z.string().describe("Buying price list").nullable().optional(),
37
- taxes_and_charges: z.string().describe("Default taxes and charges template").nullable().optional(),
38
- contact_department: z.string().describe("Contact department").nullable().optional(),
39
- selling_price_list: z.string().describe("Selling price list").nullable().optional(),
40
- contact_designation: z.string().describe("Contact designation").nullable().optional(),
41
- dispatch_address_name: z.string().describe("Dispatch address ID").nullable().optional(),
42
- shipping_address_name: z.string().describe("Shipping address ID").nullable().optional(),
43
- payment_terms_template: z.string().describe("Payment terms template").nullable().optional(),
44
- company_address_display: z.string().describe("Formatted company address").nullable().optional(),
45
- tax_withholding_category: z.string().describe("Tax withholding category").nullable().optional()
10
+ currency: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Transaction currency").optional()),
11
+ customer: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Customer name (for Customer party type)").optional()),
12
+ debit_to: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Debit account (for customers)").optional()),
13
+ due_date: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Payment due date").optional()),
14
+ language: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Preferred language").optional()),
15
+ supplier: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Supplier name (for Supplier party type)").optional()),
16
+ credit_to: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Credit account (for suppliers)").optional()),
17
+ territory: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Customer territory").optional()),
18
+ price_list: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Default price list").optional()),
19
+ supplier_tds: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Supplier TDS category").optional()),
20
+ tax_category: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Tax category").optional()),
21
+ contact_email: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Contact email address").optional()),
22
+ contact_phone: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Contact phone number").optional()),
23
+ customer_name: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Full customer name").optional()),
24
+ supplier_name: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Full supplier name").optional()),
25
+ contact_mobile: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Contact mobile number").optional()),
26
+ contact_person: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Contact person ID").optional()),
27
+ customer_group: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Customer group").optional()),
28
+ supplier_group: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Supplier group").optional()),
29
+ address_display: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Formatted billing address").optional()),
30
+ company_address: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Company address ID").optional()),
31
+ contact_display: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Contact person full name").optional()),
32
+ customer_address: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Customer address ID").optional()),
33
+ dispatch_address: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Formatted dispatch address").optional()),
34
+ shipping_address: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Formatted shipping address").optional()),
35
+ supplier_address: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Supplier address ID").optional()),
36
+ buying_price_list: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Buying price list").optional()),
37
+ taxes_and_charges: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Default taxes and charges template").optional()),
38
+ contact_department: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Contact department").optional()),
39
+ selling_price_list: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Selling price list").optional()),
40
+ contact_designation: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Contact designation").optional()),
41
+ dispatch_address_name: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Dispatch address ID").optional()),
42
+ shipping_address_name: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Shipping address ID").optional()),
43
+ payment_terms_template: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Payment terms template").optional()),
44
+ company_address_display: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Formatted company address").optional()),
45
+ tax_withholding_category: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Tax withholding category").optional())
46
46
  }).passthrough().describe("Detailed party information returned by the API.");
47
47
  const erpnextGetPartyDetails = action("ERPNEXT_GET_PARTY_DETAILS", {
48
48
  slug: "erpnext-get-party-details",
@@ -1 +1 @@
1
- {"version":3,"file":"get-party-details.mjs","names":[],"sources":["../../src/actions/get-party-details.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetPartyDetailsInput: z.ZodTypeAny = z.object({\n party: z.string().describe(\"Name (ID) of the customer or supplier\"),\n company: z.string().describe(\"Company name for which to fetch party details. If not specified, default company is used.\").optional(),\n party_type: z.string().describe(\"Type of party - either 'Customer' or 'Supplier'\"),\n}).describe(\"Request model for retrieving customer or supplier details.\");\nconst ErpnextGetPartyDetails_PartyDetailsDataSchema: z.ZodTypeAny = z.object({\n currency: z.string().describe(\"Transaction currency\").nullable().optional(),\n customer: z.string().describe(\"Customer name (for Customer party type)\").nullable().optional(),\n debit_to: z.string().describe(\"Debit account (for customers)\").nullable().optional(),\n due_date: z.string().describe(\"Payment due date\").nullable().optional(),\n language: z.string().describe(\"Preferred language\").nullable().optional(),\n supplier: z.string().describe(\"Supplier name (for Supplier party type)\").nullable().optional(),\n credit_to: z.string().describe(\"Credit account (for suppliers)\").nullable().optional(),\n territory: z.string().describe(\"Customer territory\").nullable().optional(),\n price_list: z.string().describe(\"Default price list\").nullable().optional(),\n supplier_tds: z.string().describe(\"Supplier TDS category\").nullable().optional(),\n tax_category: z.string().describe(\"Tax category\").nullable().optional(),\n contact_email: z.string().describe(\"Contact email address\").nullable().optional(),\n contact_phone: z.string().describe(\"Contact phone number\").nullable().optional(),\n customer_name: z.string().describe(\"Full customer name\").nullable().optional(),\n supplier_name: z.string().describe(\"Full supplier name\").nullable().optional(),\n contact_mobile: z.string().describe(\"Contact mobile number\").nullable().optional(),\n contact_person: z.string().describe(\"Contact person ID\").nullable().optional(),\n customer_group: z.string().describe(\"Customer group\").nullable().optional(),\n supplier_group: z.string().describe(\"Supplier group\").nullable().optional(),\n address_display: z.string().describe(\"Formatted billing address\").nullable().optional(),\n company_address: z.string().describe(\"Company address ID\").nullable().optional(),\n contact_display: z.string().describe(\"Contact person full name\").nullable().optional(),\n customer_address: z.string().describe(\"Customer address ID\").nullable().optional(),\n dispatch_address: z.string().describe(\"Formatted dispatch address\").nullable().optional(),\n shipping_address: z.string().describe(\"Formatted shipping address\").nullable().optional(),\n supplier_address: z.string().describe(\"Supplier address ID\").nullable().optional(),\n buying_price_list: z.string().describe(\"Buying price list\").nullable().optional(),\n taxes_and_charges: z.string().describe(\"Default taxes and charges template\").nullable().optional(),\n contact_department: z.string().describe(\"Contact department\").nullable().optional(),\n selling_price_list: z.string().describe(\"Selling price list\").nullable().optional(),\n contact_designation: z.string().describe(\"Contact designation\").nullable().optional(),\n dispatch_address_name: z.string().describe(\"Dispatch address ID\").nullable().optional(),\n shipping_address_name: z.string().describe(\"Shipping address ID\").nullable().optional(),\n payment_terms_template: z.string().describe(\"Payment terms template\").nullable().optional(),\n company_address_display: z.string().describe(\"Formatted company address\").nullable().optional(),\n tax_withholding_category: z.string().describe(\"Tax withholding category\").nullable().optional(),\n}).passthrough().describe(\"Detailed party information returned by the API.\");\nexport const ErpnextGetPartyDetailsOutput: z.ZodTypeAny = z.object({\n message: ErpnextGetPartyDetails_PartyDetailsDataSchema.nullable(),\n}).describe(\"Response model containing comprehensive party details.\");\n\nexport const erpnextGetPartyDetails = action(\"ERPNEXT_GET_PARTY_DETAILS\", {\n slug: \"erpnext-get-party-details\",\n name: \"Get Party Details\",\n description: \"Tool to get comprehensive customer or supplier details including addresses, contacts, and default financial settings. Use when creating transactions or updating party information in ERPNext.\",\n input: ErpnextGetPartyDetailsInput,\n output: ErpnextGetPartyDetailsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA4C,EAAE,OAAO;CAChE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CAClE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS;CACnI,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;AACnF,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAM,gDAA8D,EAAE,OAAO;CAC3E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1E,UAAU,EAAE,OAAO,CAAC,C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,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,uBAAuB,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,uBAAuB,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,wBAAwB,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,yBAAyB,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,0BAA0B,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAK3E,MAAa,yBAAyB,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATwD,EAAE,OAAO,EACjE,SAAS,8CAA8C,SAAS,EAClE,CAAC,CAAC,CAAC,SAAS,wDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"get-party-details.mjs","names":[],"sources":["../../src/actions/get-party-details.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetPartyDetailsInput = z.object({\n party: z.string().describe(\"Name (ID) of the customer or supplier\"),\n company: z.string().describe(\"Company name for which to fetch party details. If not specified, default company is used.\").optional(),\n party_type: z.string().describe(\"Type of party - either 'Customer' or 'Supplier'\"),\n}).describe(\"Request model for retrieving customer or supplier details.\");\nconst ErpnextGetPartyDetails_PartyDetailsDataSchema = z.object({\n currency: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Transaction currency\").optional()),\n customer: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Customer name (for Customer party type)\").optional()),\n debit_to: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Debit account (for customers)\").optional()),\n due_date: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Payment due date\").optional()),\n language: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Preferred language\").optional()),\n supplier: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Supplier name (for Supplier party type)\").optional()),\n credit_to: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Credit account (for suppliers)\").optional()),\n territory: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Customer territory\").optional()),\n price_list: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Default price list\").optional()),\n supplier_tds: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Supplier TDS category\").optional()),\n tax_category: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Tax category\").optional()),\n contact_email: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Contact email address\").optional()),\n contact_phone: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Contact phone number\").optional()),\n customer_name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Full customer name\").optional()),\n supplier_name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Full supplier name\").optional()),\n contact_mobile: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Contact mobile number\").optional()),\n contact_person: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Contact person ID\").optional()),\n customer_group: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Customer group\").optional()),\n supplier_group: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Supplier group\").optional()),\n address_display: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Formatted billing address\").optional()),\n company_address: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Company address ID\").optional()),\n contact_display: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Contact person full name\").optional()),\n customer_address: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Customer address ID\").optional()),\n dispatch_address: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Formatted dispatch address\").optional()),\n shipping_address: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Formatted shipping address\").optional()),\n supplier_address: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Supplier address ID\").optional()),\n buying_price_list: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Buying price list\").optional()),\n taxes_and_charges: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Default taxes and charges template\").optional()),\n contact_department: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Contact department\").optional()),\n selling_price_list: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Selling price list\").optional()),\n contact_designation: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Contact designation\").optional()),\n dispatch_address_name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Dispatch address ID\").optional()),\n shipping_address_name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Shipping address ID\").optional()),\n payment_terms_template: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Payment terms template\").optional()),\n company_address_display: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Formatted company address\").optional()),\n tax_withholding_category: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Tax withholding category\").optional()),\n}).passthrough().describe(\"Detailed party information returned by the API.\");\nexport const ErpnextGetPartyDetailsOutput = z.object({\n message: ErpnextGetPartyDetails_PartyDetailsDataSchema.nullable(),\n}).describe(\"Response model containing comprehensive party details.\");\n\nexport const erpnextGetPartyDetails = action(\"ERPNEXT_GET_PARTY_DETAILS\", {\n slug: \"erpnext-get-party-details\",\n name: \"Get Party Details\",\n description: \"Tool to get comprehensive customer or supplier details including addresses, contacts, and default financial settings. Use when creating transactions or updating party information in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ErpnextGetPaymentEntryInput = zod.z.object({
6
6
  dt: zod.z.string().describe("DocType for which to get payment entry details. Common values include 'Sales Invoice', 'Purchase Invoice', 'Sales Order', 'Purchase Order'.")
7
7
  }).describe("Request model for retrieving payment entry details for an invoice or order.");
8
8
  const ErpnextGetPaymentEntry_PaymentReferenceSchema = zod.z.object({
9
- total_amount: zod.z.number().describe("Total amount").nullable().optional(),
10
- reference_name: zod.z.string().describe("Reference document name").nullable().optional(),
11
- allocated_amount: zod.z.number().describe("Allocated amount").nullable().optional(),
12
- reference_doctype: zod.z.string().describe("Reference document type").nullable().optional(),
13
- outstanding_amount: zod.z.number().describe("Outstanding amount").nullable().optional()
9
+ total_amount: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().describe("Total amount").optional()),
10
+ reference_name: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Reference document name").optional()),
11
+ allocated_amount: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().describe("Allocated amount").optional()),
12
+ reference_doctype: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Reference document type").optional()),
13
+ outstanding_amount: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().describe("Outstanding amount").optional())
14
14
  }).passthrough().describe("Payment reference details.");
15
15
  const ErpnextGetPaymentEntry_PaymentEntryDataSchema = zod.z.object({
16
- party: zod.z.string().describe("Party name or ID").nullable().optional(),
17
- company: zod.z.string().describe("Company name").nullable().optional(),
18
- doctype: zod.z.string().describe("Document type (Payment Entry)").nullable().optional(),
19
- paid_to: zod.z.string().describe("Account paid to").nullable().optional(),
20
- paid_from: zod.z.string().describe("Account paid from").nullable().optional(),
21
- party_name: zod.z.string().describe("Full party name").nullable().optional(),
22
- party_type: zod.z.string().describe("Party type (Customer, Supplier, etc.)").nullable().optional(),
23
- references: zod.z.array(ErpnextGetPaymentEntry_PaymentReferenceSchema).describe("List of payment references").nullable().optional(),
24
- paid_amount: zod.z.number().describe("Amount paid").nullable().optional(),
25
- payment_type: zod.z.string().describe("Type of payment: 'Receive', 'Pay', or 'Internal Transfer'").nullable().optional(),
26
- posting_date: zod.z.string().describe("Posting date").nullable().optional(),
27
- reference_no: zod.z.string().describe("Reference number").nullable().optional(),
28
- reference_date: zod.z.string().describe("Reference date").nullable().optional(),
29
- mode_of_payment: zod.z.string().describe("Mode of payment (Cash, Bank, Wire Transfer, etc.)").nullable().optional(),
30
- received_amount: zod.z.number().describe("Amount received").nullable().optional(),
31
- base_paid_amount: zod.z.number().describe("Paid amount in base currency").nullable().optional(),
32
- base_received_amount: zod.z.number().describe("Received amount in base currency").nullable().optional(),
33
- source_exchange_rate: zod.z.number().describe("Source currency exchange rate").nullable().optional(),
34
- target_exchange_rate: zod.z.number().describe("Target currency exchange rate").nullable().optional(),
35
- paid_to_account_currency: zod.z.string().describe("Currency of paid to account").nullable().optional(),
36
- paid_from_account_currency: zod.z.string().describe("Currency of paid from account").nullable().optional()
16
+ party: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Party name or ID").optional()),
17
+ company: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Company name").optional()),
18
+ doctype: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Document type (Payment Entry)").optional()),
19
+ paid_to: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Account paid to").optional()),
20
+ paid_from: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Account paid from").optional()),
21
+ party_name: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Full party name").optional()),
22
+ party_type: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Party type (Customer, Supplier, etc.)").optional()),
23
+ references: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.array(ErpnextGetPaymentEntry_PaymentReferenceSchema).describe("List of payment references").optional()),
24
+ paid_amount: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().describe("Amount paid").optional()),
25
+ payment_type: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Type of payment: 'Receive', 'Pay', or 'Internal Transfer'").optional()),
26
+ posting_date: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Posting date").optional()),
27
+ reference_no: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Reference number").optional()),
28
+ reference_date: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Reference date").optional()),
29
+ mode_of_payment: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Mode of payment (Cash, Bank, Wire Transfer, etc.)").optional()),
30
+ received_amount: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().describe("Amount received").optional()),
31
+ base_paid_amount: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().describe("Paid amount in base currency").optional()),
32
+ base_received_amount: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().describe("Received amount in base currency").optional()),
33
+ source_exchange_rate: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().describe("Source currency exchange rate").optional()),
34
+ target_exchange_rate: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().describe("Target currency exchange rate").optional()),
35
+ paid_to_account_currency: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Currency of paid to account").optional()),
36
+ paid_from_account_currency: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Currency of paid from account").optional())
37
37
  }).passthrough().describe("Payment Entry document structure.");
38
38
  const ErpnextGetPaymentEntryOutput = zod.z.object({ message: ErpnextGetPaymentEntry_PaymentEntryDataSchema.nullable() }).describe("Response model containing payment entry details.");
39
39
  const erpnextGetPaymentEntry = require_action.action("ERPNEXT_GET_PAYMENT_ENTRY", {