@keystrokehq/erpnext 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (387) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/add-comment.cjs +11 -11
  4. package/dist/actions/add-comment.cjs.map +1 -1
  5. package/dist/actions/add-comment.d.cts +39 -3
  6. package/dist/actions/add-comment.d.cts.map +1 -1
  7. package/dist/actions/add-comment.d.mts +39 -3
  8. package/dist/actions/add-comment.d.mts.map +1 -1
  9. package/dist/actions/add-comment.mjs +11 -11
  10. package/dist/actions/add-comment.mjs.map +1 -1
  11. package/dist/actions/add-tag.cjs +1 -1
  12. package/dist/actions/add-tag.cjs.map +1 -1
  13. package/dist/actions/add-tag.d.cts +15 -3
  14. package/dist/actions/add-tag.d.cts.map +1 -1
  15. package/dist/actions/add-tag.d.mts +15 -3
  16. package/dist/actions/add-tag.d.mts.map +1 -1
  17. package/dist/actions/add-tag.mjs +1 -1
  18. package/dist/actions/add-tag.mjs.map +1 -1
  19. package/dist/actions/apply-workflow.cjs +4 -4
  20. package/dist/actions/apply-workflow.cjs.map +1 -1
  21. package/dist/actions/apply-workflow.d.cts +17 -3
  22. package/dist/actions/apply-workflow.d.cts.map +1 -1
  23. package/dist/actions/apply-workflow.d.mts +17 -3
  24. package/dist/actions/apply-workflow.d.mts.map +1 -1
  25. package/dist/actions/apply-workflow.mjs +4 -4
  26. package/dist/actions/apply-workflow.mjs.map +1 -1
  27. package/dist/actions/cancel-document.cjs +2 -2
  28. package/dist/actions/cancel-document.cjs.map +1 -1
  29. package/dist/actions/cancel-document.d.cts +15 -3
  30. package/dist/actions/cancel-document.d.cts.map +1 -1
  31. package/dist/actions/cancel-document.d.mts +15 -3
  32. package/dist/actions/cancel-document.d.mts.map +1 -1
  33. package/dist/actions/cancel-document.mjs +2 -2
  34. package/dist/actions/cancel-document.mjs.map +1 -1
  35. package/dist/actions/create-document.cjs +7 -7
  36. package/dist/actions/create-document.cjs.map +1 -1
  37. package/dist/actions/create-document.d.cts +30 -3
  38. package/dist/actions/create-document.d.cts.map +1 -1
  39. package/dist/actions/create-document.d.mts +30 -3
  40. package/dist/actions/create-document.d.mts.map +1 -1
  41. package/dist/actions/create-document.mjs +7 -7
  42. package/dist/actions/create-document.mjs.map +1 -1
  43. package/dist/actions/create-timesheet.cjs +7 -7
  44. package/dist/actions/create-timesheet.cjs.map +1 -1
  45. package/dist/actions/create-timesheet.d.cts +43 -3
  46. package/dist/actions/create-timesheet.d.cts.map +1 -1
  47. package/dist/actions/create-timesheet.d.mts +43 -3
  48. package/dist/actions/create-timesheet.d.mts.map +1 -1
  49. package/dist/actions/create-timesheet.mjs +7 -7
  50. package/dist/actions/create-timesheet.mjs.map +1 -1
  51. package/dist/actions/delete-document.cjs +1 -1
  52. package/dist/actions/delete-document.cjs.map +1 -1
  53. package/dist/actions/delete-document.d.cts +13 -3
  54. package/dist/actions/delete-document.d.cts.map +1 -1
  55. package/dist/actions/delete-document.d.mts +13 -3
  56. package/dist/actions/delete-document.d.mts.map +1 -1
  57. package/dist/actions/delete-document.mjs +1 -1
  58. package/dist/actions/delete-document.mjs.map +1 -1
  59. package/dist/actions/download-file.cjs +3 -3
  60. package/dist/actions/download-file.cjs.map +1 -1
  61. package/dist/actions/download-file.d.cts +19 -3
  62. package/dist/actions/download-file.d.cts.map +1 -1
  63. package/dist/actions/download-file.d.mts +19 -3
  64. package/dist/actions/download-file.d.mts.map +1 -1
  65. package/dist/actions/download-file.mjs +3 -3
  66. package/dist/actions/download-file.mjs.map +1 -1
  67. package/dist/actions/download-pdf.cjs +3 -3
  68. package/dist/actions/download-pdf.cjs.map +1 -1
  69. package/dist/actions/download-pdf.d.cts +25 -3
  70. package/dist/actions/download-pdf.d.cts.map +1 -1
  71. package/dist/actions/download-pdf.d.mts +25 -3
  72. package/dist/actions/download-pdf.d.mts.map +1 -1
  73. package/dist/actions/download-pdf.mjs +3 -3
  74. package/dist/actions/download-pdf.mjs.map +1 -1
  75. package/dist/actions/get-all-languages.cjs +2 -2
  76. package/dist/actions/get-all-languages.cjs.map +1 -1
  77. package/dist/actions/get-all-languages.d.cts +17 -3
  78. package/dist/actions/get-all-languages.d.cts.map +1 -1
  79. package/dist/actions/get-all-languages.d.mts +17 -3
  80. package/dist/actions/get-all-languages.d.mts.map +1 -1
  81. package/dist/actions/get-all-languages.mjs +2 -2
  82. package/dist/actions/get-all-languages.mjs.map +1 -1
  83. package/dist/actions/get-all-roles.cjs.map +1 -1
  84. package/dist/actions/get-all-roles.d.cts +7 -3
  85. package/dist/actions/get-all-roles.d.cts.map +1 -1
  86. package/dist/actions/get-all-roles.d.mts +7 -3
  87. package/dist/actions/get-all-roles.d.mts.map +1 -1
  88. package/dist/actions/get-all-roles.mjs.map +1 -1
  89. package/dist/actions/get-client.cjs +8 -8
  90. package/dist/actions/get-client.cjs.map +1 -1
  91. package/dist/actions/get-client.d.cts +34 -3
  92. package/dist/actions/get-client.d.cts.map +1 -1
  93. package/dist/actions/get-client.d.mts +34 -3
  94. package/dist/actions/get-client.d.mts.map +1 -1
  95. package/dist/actions/get-client.mjs +8 -8
  96. package/dist/actions/get-client.mjs.map +1 -1
  97. package/dist/actions/get-count.cjs +1 -1
  98. package/dist/actions/get-count.cjs.map +1 -1
  99. package/dist/actions/get-count.d.cts +13 -3
  100. package/dist/actions/get-count.d.cts.map +1 -1
  101. package/dist/actions/get-count.d.mts +13 -3
  102. package/dist/actions/get-count.d.mts.map +1 -1
  103. package/dist/actions/get-count.mjs +1 -1
  104. package/dist/actions/get-count.mjs.map +1 -1
  105. package/dist/actions/get-doc-with-meta.cjs +20 -20
  106. package/dist/actions/get-doc-with-meta.cjs.map +1 -1
  107. package/dist/actions/get-doc-with-meta.d.cts +53 -3
  108. package/dist/actions/get-doc-with-meta.d.cts.map +1 -1
  109. package/dist/actions/get-doc-with-meta.d.mts +53 -3
  110. package/dist/actions/get-doc-with-meta.d.mts.map +1 -1
  111. package/dist/actions/get-doc-with-meta.mjs +20 -20
  112. package/dist/actions/get-doc-with-meta.mjs.map +1 -1
  113. package/dist/actions/get-doctype-meta.cjs +3 -3
  114. package/dist/actions/get-doctype-meta.cjs.map +1 -1
  115. package/dist/actions/get-doctype-meta.d.cts +17 -3
  116. package/dist/actions/get-doctype-meta.d.cts.map +1 -1
  117. package/dist/actions/get-doctype-meta.d.mts +17 -3
  118. package/dist/actions/get-doctype-meta.d.mts.map +1 -1
  119. package/dist/actions/get-doctype-meta.mjs +3 -3
  120. package/dist/actions/get-doctype-meta.mjs.map +1 -1
  121. package/dist/actions/get-document.cjs +7 -7
  122. package/dist/actions/get-document.cjs.map +1 -1
  123. package/dist/actions/get-document.d.cts +34 -3
  124. package/dist/actions/get-document.d.cts.map +1 -1
  125. package/dist/actions/get-document.d.mts +34 -3
  126. package/dist/actions/get-document.d.mts.map +1 -1
  127. package/dist/actions/get-document.mjs +7 -7
  128. package/dist/actions/get-document.mjs.map +1 -1
  129. package/dist/actions/get-exchange-rate.cjs +1 -1
  130. package/dist/actions/get-exchange-rate.cjs.map +1 -1
  131. package/dist/actions/get-exchange-rate.d.cts +15 -3
  132. package/dist/actions/get-exchange-rate.d.cts.map +1 -1
  133. package/dist/actions/get-exchange-rate.d.mts +15 -3
  134. package/dist/actions/get-exchange-rate.d.mts.map +1 -1
  135. package/dist/actions/get-exchange-rate.mjs +1 -1
  136. package/dist/actions/get-exchange-rate.mjs.map +1 -1
  137. package/dist/actions/get-fiscal-year.cjs +3 -3
  138. package/dist/actions/get-fiscal-year.cjs.map +1 -1
  139. package/dist/actions/get-fiscal-year.d.cts +21 -3
  140. package/dist/actions/get-fiscal-year.d.cts.map +1 -1
  141. package/dist/actions/get-fiscal-year.d.mts +21 -3
  142. package/dist/actions/get-fiscal-year.d.mts.map +1 -1
  143. package/dist/actions/get-fiscal-year.mjs +3 -3
  144. package/dist/actions/get-fiscal-year.mjs.map +1 -1
  145. package/dist/actions/get-framework-version.cjs.map +1 -1
  146. package/dist/actions/get-framework-version.d.cts +7 -3
  147. package/dist/actions/get-framework-version.d.cts.map +1 -1
  148. package/dist/actions/get-framework-version.d.mts +7 -3
  149. package/dist/actions/get-framework-version.d.mts.map +1 -1
  150. package/dist/actions/get-framework-version.mjs.map +1 -1
  151. package/dist/actions/get-item-details.cjs +27 -27
  152. package/dist/actions/get-item-details.cjs.map +1 -1
  153. package/dist/actions/get-item-details.d.cts +90 -3
  154. package/dist/actions/get-item-details.d.cts.map +1 -1
  155. package/dist/actions/get-item-details.d.mts +90 -3
  156. package/dist/actions/get-item-details.d.mts.map +1 -1
  157. package/dist/actions/get-item-details.mjs +27 -27
  158. package/dist/actions/get-item-details.mjs.map +1 -1
  159. package/dist/actions/get-list.cjs.map +1 -1
  160. package/dist/actions/get-list.d.cts +21 -3
  161. package/dist/actions/get-list.d.cts.map +1 -1
  162. package/dist/actions/get-list.d.mts +21 -3
  163. package/dist/actions/get-list.d.mts.map +1 -1
  164. package/dist/actions/get-list.mjs.map +1 -1
  165. package/dist/actions/get-logged-user.cjs +1 -1
  166. package/dist/actions/get-logged-user.cjs.map +1 -1
  167. package/dist/actions/get-logged-user.d.cts +7 -3
  168. package/dist/actions/get-logged-user.d.cts.map +1 -1
  169. package/dist/actions/get-logged-user.d.mts +7 -3
  170. package/dist/actions/get-logged-user.d.mts.map +1 -1
  171. package/dist/actions/get-logged-user.mjs +1 -1
  172. package/dist/actions/get-logged-user.mjs.map +1 -1
  173. package/dist/actions/get-party-details.cjs +36 -36
  174. package/dist/actions/get-party-details.cjs.map +1 -1
  175. package/dist/actions/get-party-details.d.cts +90 -3
  176. package/dist/actions/get-party-details.d.cts.map +1 -1
  177. package/dist/actions/get-party-details.d.mts +90 -3
  178. package/dist/actions/get-party-details.d.mts.map +1 -1
  179. package/dist/actions/get-party-details.mjs +36 -36
  180. package/dist/actions/get-party-details.mjs.map +1 -1
  181. package/dist/actions/get-payment-entry.cjs +26 -26
  182. package/dist/actions/get-payment-entry.cjs.map +1 -1
  183. package/dist/actions/get-payment-entry.d.cts +71 -3
  184. package/dist/actions/get-payment-entry.d.cts.map +1 -1
  185. package/dist/actions/get-payment-entry.d.mts +71 -3
  186. package/dist/actions/get-payment-entry.d.mts.map +1 -1
  187. package/dist/actions/get-payment-entry.mjs +26 -26
  188. package/dist/actions/get-payment-entry.mjs.map +1 -1
  189. package/dist/actions/get-stock-balance.cjs +1 -1
  190. package/dist/actions/get-stock-balance.cjs.map +1 -1
  191. package/dist/actions/get-stock-balance.d.cts +15 -3
  192. package/dist/actions/get-stock-balance.d.cts.map +1 -1
  193. package/dist/actions/get-stock-balance.d.mts +15 -3
  194. package/dist/actions/get-stock-balance.d.mts.map +1 -1
  195. package/dist/actions/get-stock-balance.mjs +1 -1
  196. package/dist/actions/get-stock-balance.mjs.map +1 -1
  197. package/dist/actions/get-timezones.cjs.map +1 -1
  198. package/dist/actions/get-timezones.d.cts +11 -3
  199. package/dist/actions/get-timezones.d.cts.map +1 -1
  200. package/dist/actions/get-timezones.d.mts +11 -3
  201. package/dist/actions/get-timezones.d.mts.map +1 -1
  202. package/dist/actions/get-timezones.mjs.map +1 -1
  203. package/dist/actions/get-user-roles.cjs.map +1 -1
  204. package/dist/actions/get-user-roles.d.cts +11 -3
  205. package/dist/actions/get-user-roles.d.cts.map +1 -1
  206. package/dist/actions/get-user-roles.d.mts +11 -3
  207. package/dist/actions/get-user-roles.d.mts.map +1 -1
  208. package/dist/actions/get-user-roles.mjs.map +1 -1
  209. package/dist/actions/get-value.cjs.map +1 -1
  210. package/dist/actions/get-value.d.cts +17 -3
  211. package/dist/actions/get-value.d.cts.map +1 -1
  212. package/dist/actions/get-value.d.mts +17 -3
  213. package/dist/actions/get-value.d.mts.map +1 -1
  214. package/dist/actions/get-value.mjs.map +1 -1
  215. package/dist/actions/get-workflow-transitions.cjs +7 -7
  216. package/dist/actions/get-workflow-transitions.cjs.map +1 -1
  217. package/dist/actions/get-workflow-transitions.d.cts +27 -3
  218. package/dist/actions/get-workflow-transitions.d.cts.map +1 -1
  219. package/dist/actions/get-workflow-transitions.d.mts +27 -3
  220. package/dist/actions/get-workflow-transitions.d.mts.map +1 -1
  221. package/dist/actions/get-workflow-transitions.mjs +7 -7
  222. package/dist/actions/get-workflow-transitions.mjs.map +1 -1
  223. package/dist/actions/insert-document.cjs.map +1 -1
  224. package/dist/actions/insert-document.d.cts +11 -3
  225. package/dist/actions/insert-document.d.cts.map +1 -1
  226. package/dist/actions/insert-document.d.mts +11 -3
  227. package/dist/actions/insert-document.d.mts.map +1 -1
  228. package/dist/actions/insert-document.mjs.map +1 -1
  229. package/dist/actions/insert-many.cjs +4 -4
  230. package/dist/actions/insert-many.cjs.map +1 -1
  231. package/dist/actions/insert-many.d.cts +18 -3
  232. package/dist/actions/insert-many.d.cts.map +1 -1
  233. package/dist/actions/insert-many.d.mts +18 -3
  234. package/dist/actions/insert-many.d.mts.map +1 -1
  235. package/dist/actions/insert-many.mjs +4 -4
  236. package/dist/actions/insert-many.mjs.map +1 -1
  237. package/dist/actions/list-doctypes.cjs +1 -1
  238. package/dist/actions/list-doctypes.cjs.map +1 -1
  239. package/dist/actions/list-doctypes.d.cts +17 -3
  240. package/dist/actions/list-doctypes.d.cts.map +1 -1
  241. package/dist/actions/list-doctypes.d.mts +17 -3
  242. package/dist/actions/list-doctypes.d.mts.map +1 -1
  243. package/dist/actions/list-doctypes.mjs +1 -1
  244. package/dist/actions/list-doctypes.mjs.map +1 -1
  245. package/dist/actions/list-documents.cjs.map +1 -1
  246. package/dist/actions/list-documents.d.cts +19 -3
  247. package/dist/actions/list-documents.d.cts.map +1 -1
  248. package/dist/actions/list-documents.d.mts +19 -3
  249. package/dist/actions/list-documents.d.mts.map +1 -1
  250. package/dist/actions/list-documents.mjs.map +1 -1
  251. package/dist/actions/list-employees.cjs +1 -1
  252. package/dist/actions/list-employees.cjs.map +1 -1
  253. package/dist/actions/list-employees.d.cts +22 -3
  254. package/dist/actions/list-employees.d.cts.map +1 -1
  255. package/dist/actions/list-employees.d.mts +22 -3
  256. package/dist/actions/list-employees.d.mts.map +1 -1
  257. package/dist/actions/list-employees.mjs +1 -1
  258. package/dist/actions/list-employees.mjs.map +1 -1
  259. package/dist/actions/list-projects.cjs.map +1 -1
  260. package/dist/actions/list-projects.d.cts +17 -3
  261. package/dist/actions/list-projects.d.cts.map +1 -1
  262. package/dist/actions/list-projects.d.mts +17 -3
  263. package/dist/actions/list-projects.d.mts.map +1 -1
  264. package/dist/actions/list-projects.mjs.map +1 -1
  265. package/dist/actions/list-timesheets.cjs.map +1 -1
  266. package/dist/actions/list-timesheets.d.cts +17 -3
  267. package/dist/actions/list-timesheets.d.cts.map +1 -1
  268. package/dist/actions/list-timesheets.d.mts +17 -3
  269. package/dist/actions/list-timesheets.d.mts.map +1 -1
  270. package/dist/actions/list-timesheets.mjs.map +1 -1
  271. package/dist/actions/list-webhooks.cjs +5 -5
  272. package/dist/actions/list-webhooks.cjs.map +1 -1
  273. package/dist/actions/list-webhooks.d.cts +30 -3
  274. package/dist/actions/list-webhooks.d.cts.map +1 -1
  275. package/dist/actions/list-webhooks.d.mts +30 -3
  276. package/dist/actions/list-webhooks.d.mts.map +1 -1
  277. package/dist/actions/list-webhooks.mjs +5 -5
  278. package/dist/actions/list-webhooks.mjs.map +1 -1
  279. package/dist/actions/make-delivery-note.cjs +11 -11
  280. package/dist/actions/make-delivery-note.cjs.map +1 -1
  281. package/dist/actions/make-delivery-note.d.cts +36 -3
  282. package/dist/actions/make-delivery-note.d.cts.map +1 -1
  283. package/dist/actions/make-delivery-note.d.mts +36 -3
  284. package/dist/actions/make-delivery-note.d.mts.map +1 -1
  285. package/dist/actions/make-delivery-note.mjs +11 -11
  286. package/dist/actions/make-delivery-note.mjs.map +1 -1
  287. package/dist/actions/make-purchase-order.cjs +22 -22
  288. package/dist/actions/make-purchase-order.cjs.map +1 -1
  289. package/dist/actions/make-purchase-order.d.cts +61 -3
  290. package/dist/actions/make-purchase-order.d.cts.map +1 -1
  291. package/dist/actions/make-purchase-order.d.mts +61 -3
  292. package/dist/actions/make-purchase-order.d.mts.map +1 -1
  293. package/dist/actions/make-purchase-order.mjs +22 -22
  294. package/dist/actions/make-purchase-order.mjs.map +1 -1
  295. package/dist/actions/make-sales-invoice.cjs +13 -13
  296. package/dist/actions/make-sales-invoice.cjs.map +1 -1
  297. package/dist/actions/make-sales-invoice.d.cts +40 -3
  298. package/dist/actions/make-sales-invoice.d.cts.map +1 -1
  299. package/dist/actions/make-sales-invoice.d.mts +40 -3
  300. package/dist/actions/make-sales-invoice.d.mts.map +1 -1
  301. package/dist/actions/make-sales-invoice.mjs +13 -13
  302. package/dist/actions/make-sales-invoice.mjs.map +1 -1
  303. package/dist/actions/make-stock-entry.cjs +9 -9
  304. package/dist/actions/make-stock-entry.cjs.map +1 -1
  305. package/dist/actions/make-stock-entry.d.cts +50 -3
  306. package/dist/actions/make-stock-entry.d.cts.map +1 -1
  307. package/dist/actions/make-stock-entry.d.mts +50 -3
  308. package/dist/actions/make-stock-entry.d.mts.map +1 -1
  309. package/dist/actions/make-stock-entry.mjs +9 -9
  310. package/dist/actions/make-stock-entry.mjs.map +1 -1
  311. package/dist/actions/ping.cjs +1 -1
  312. package/dist/actions/ping.cjs.map +1 -1
  313. package/dist/actions/ping.d.cts +7 -3
  314. package/dist/actions/ping.d.cts.map +1 -1
  315. package/dist/actions/ping.d.mts +7 -3
  316. package/dist/actions/ping.d.mts.map +1 -1
  317. package/dist/actions/ping.mjs +1 -1
  318. package/dist/actions/ping.mjs.map +1 -1
  319. package/dist/actions/rename-doc.cjs.map +1 -1
  320. package/dist/actions/rename-doc.d.cts +17 -3
  321. package/dist/actions/rename-doc.d.cts.map +1 -1
  322. package/dist/actions/rename-doc.d.mts +17 -3
  323. package/dist/actions/rename-doc.d.mts.map +1 -1
  324. package/dist/actions/rename-doc.mjs.map +1 -1
  325. package/dist/actions/save-docs.cjs +5 -5
  326. package/dist/actions/save-docs.cjs.map +1 -1
  327. package/dist/actions/save-docs.d.cts +26 -3
  328. package/dist/actions/save-docs.d.cts.map +1 -1
  329. package/dist/actions/save-docs.d.mts +26 -3
  330. package/dist/actions/save-docs.d.mts.map +1 -1
  331. package/dist/actions/save-docs.mjs +5 -5
  332. package/dist/actions/save-docs.mjs.map +1 -1
  333. package/dist/actions/save-document.cjs +2 -2
  334. package/dist/actions/save-document.cjs.map +1 -1
  335. package/dist/actions/save-document.d.cts +37 -3
  336. package/dist/actions/save-document.d.cts.map +1 -1
  337. package/dist/actions/save-document.d.mts +37 -3
  338. package/dist/actions/save-document.d.mts.map +1 -1
  339. package/dist/actions/save-document.mjs +2 -2
  340. package/dist/actions/save-document.mjs.map +1 -1
  341. package/dist/actions/search-global.cjs +7 -7
  342. package/dist/actions/search-global.cjs.map +1 -1
  343. package/dist/actions/search-global.d.cts +31 -3
  344. package/dist/actions/search-global.d.cts.map +1 -1
  345. package/dist/actions/search-global.d.mts +31 -3
  346. package/dist/actions/search-global.d.mts.map +1 -1
  347. package/dist/actions/search-global.mjs +7 -7
  348. package/dist/actions/search-global.mjs.map +1 -1
  349. package/dist/actions/search-link.cjs +3 -3
  350. package/dist/actions/search-link.cjs.map +1 -1
  351. package/dist/actions/search-link.d.cts +35 -3
  352. package/dist/actions/search-link.d.cts.map +1 -1
  353. package/dist/actions/search-link.d.mts +35 -3
  354. package/dist/actions/search-link.d.mts.map +1 -1
  355. package/dist/actions/search-link.mjs +3 -3
  356. package/dist/actions/search-link.mjs.map +1 -1
  357. package/dist/actions/set-value.cjs +8 -8
  358. package/dist/actions/set-value.cjs.map +1 -1
  359. package/dist/actions/set-value.d.cts +49 -3
  360. package/dist/actions/set-value.d.cts.map +1 -1
  361. package/dist/actions/set-value.d.mts +49 -3
  362. package/dist/actions/set-value.d.mts.map +1 -1
  363. package/dist/actions/set-value.mjs +8 -8
  364. package/dist/actions/set-value.mjs.map +1 -1
  365. package/dist/actions/submit-document.cjs +8 -8
  366. package/dist/actions/submit-document.cjs.map +1 -1
  367. package/dist/actions/submit-document.d.cts +29 -3
  368. package/dist/actions/submit-document.d.cts.map +1 -1
  369. package/dist/actions/submit-document.d.mts +29 -3
  370. package/dist/actions/submit-document.d.mts.map +1 -1
  371. package/dist/actions/submit-document.mjs +8 -8
  372. package/dist/actions/submit-document.mjs.map +1 -1
  373. package/dist/actions/update-document.cjs +8 -8
  374. package/dist/actions/update-document.cjs.map +1 -1
  375. package/dist/actions/update-document.d.cts +31 -3
  376. package/dist/actions/update-document.d.cts.map +1 -1
  377. package/dist/actions/update-document.d.mts +31 -3
  378. package/dist/actions/update-document.d.mts.map +1 -1
  379. package/dist/actions/update-document.mjs +8 -8
  380. package/dist/actions/update-document.mjs.map +1 -1
  381. package/dist/catalog.cjs +18 -1
  382. package/dist/catalog.cjs.map +1 -1
  383. package/dist/catalog.d.cts +17 -0
  384. package/dist/catalog.d.mts +17 -0
  385. package/dist/catalog.mjs +18 -1
  386. package/dist/catalog.mjs.map +1 -1
  387. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"get-doctype-meta.mjs","names":[],"sources":["../../src/actions/get-doctype-meta.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetDoctypeMetaInput: z.ZodTypeAny = z.object({\n doctype: z.string().describe(\"The DocType name to retrieve metadata for (e.g., 'Customer', 'Sales Order', 'Item')\"),\n with_parent: z.boolean().describe(\"Include parent DocType metadata if this DocType is a child table. Useful when retrieving metadata for child tables in reports.\").optional(),\n}).describe(\"Request model for retrieving DocType metadata/schema.\");\nexport const ErpnextGetDoctypeMetaOutput: z.ZodTypeAny = z.object({\n docs: z.array(z.object({})).describe(\"List of DocType metadata objects. The first object contains the main DocType definition with all fields, the subsequent objects contain metadata for any child table DocTypes referenced.\").nullable().optional(),\n parent_dt: z.string().describe(\"Parent DocType name if with_parent was True and this DocType has a parent\").nullable().optional(),\n user_settings: z.object({}).describe(\"User-specific settings and preferences for the DocType, including custom field order, column widths, and other UI preferences\").nullable().optional(),\n}).describe(\"Response model containing DocType metadata including fields, permissions, and configurations.\");\n\nexport const erpnextGetDoctypeMeta = action(\"ERPNEXT_GET_DOCTYPE_META\", {\n slug: \"erpnext-get-doctype-meta\",\n name: \"Get DocType Metadata\",\n description: \"Tool to retrieve complete DocType metadata/schema including field definitions, field types, permissions, and configurations. Use when you need to understand the structure of a DocType, its fields, validation rules, or permissions before creating or querying documents.\",\n input: ErpnextGetDoctypeMetaInput,\n output: ErpnextGetDoctypeMetaOutput,\n});\n"],"mappings":";;AAcA,MAAa,wBAAwB,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAdsD,EAAE,OAAO;EAC/D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF;EAClH,aAAa,EAAE,QAAQ,CAAC,CAAC,SAAS,gIAAgI,CAAC,CAAC,SAAS;CAC/K,CAAC,CAAC,CAAC,SAAS,uDAWH;CACP,QAXuD,EAAE,OAAO;EAChE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,2LAA2L,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtP,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChI,eAAe,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,+HAA+H,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5L,CAAC,CAAC,CAAC,SAAS,+FAOF;AACV,CAAC"}
1
+ {"version":3,"file":"get-doctype-meta.mjs","names":[],"sources":["../../src/actions/get-doctype-meta.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetDoctypeMetaInput = z.object({\n doctype: z.string().describe(\"The DocType name to retrieve metadata for (e.g., 'Customer', 'Sales Order', 'Item')\"),\n with_parent: z.boolean().describe(\"Include parent DocType metadata if this DocType is a child table. Useful when retrieving metadata for child tables in reports.\").optional(),\n}).describe(\"Request model for retrieving DocType metadata/schema.\");\nexport const ErpnextGetDoctypeMetaOutput = z.object({\n docs: z.preprocess((value) => (value === null ? undefined : value), z.array(z.object({})).describe(\"List of DocType metadata objects. The first object contains the main DocType definition with all fields, the subsequent objects contain metadata for any child table DocTypes referenced.\").optional()),\n parent_dt: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Parent DocType name if with_parent was True and this DocType has a parent\").optional()),\n user_settings: z.preprocess((value) => (value === null ? undefined : value), z.object({}).describe(\"User-specific settings and preferences for the DocType, including custom field order, column widths, and other UI preferences\").optional()),\n}).describe(\"Response model containing DocType metadata including fields, permissions, and configurations.\");\n\nexport const erpnextGetDoctypeMeta = action(\"ERPNEXT_GET_DOCTYPE_META\", {\n slug: \"erpnext-get-doctype-meta\",\n name: \"Get DocType Metadata\",\n description: \"Tool to retrieve complete DocType metadata/schema including field definitions, field types, permissions, and configurations. Use when you need to understand the structure of a DocType, its fields, validation rules, or permissions before creating or querying documents.\",\n input: ErpnextGetDoctypeMetaInput,\n output: ErpnextGetDoctypeMetaOutput,\n});\n"],"mappings":";;AAcA,MAAa,wBAAwB,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAdwC,EAAE,OAAO;EACjD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF;EAClH,aAAa,EAAE,QAAQ,CAAC,CAAC,SAAS,gIAAgI,CAAC,CAAC,SAAS;CAC/K,CAAC,CAAC,CAAC,SAAS,uDAWH;CACP,QAXyC,EAAE,OAAO;EAClD,MAAM,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,2LAA2L,CAAC,CAAC,SAAS,CAAC;EAC1S,WAAW,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS,CAAC;EACpL,eAAe,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,+HAA+H,CAAC,CAAC,SAAS,CAAC;CAChP,CAAC,CAAC,CAAC,SAAS,+FAOF;AACV,CAAC"}
@@ -13,13 +13,13 @@ const ErpnextGetDocumentInput = zod.z.object({
13
13
  ]))).describe("You can filter the listing using sql conditions. Each condition is an array of the format, [doctype, field, operator, value]. For example, [[\"Customer\", \"country\", \"=\", \"India\"]]").optional()
14
14
  }).describe("Request model for retrieving a specific document by DocType and name.");
15
15
  const ErpnextGetDocument_DocumentDataSchema = zod.z.object({
16
- name: zod.z.string().describe("Document name (ID)").nullable().optional(),
17
- owner: zod.z.string().describe("Owner of the document").nullable().optional(),
18
- doctype: zod.z.string().describe("Document type").nullable().optional(),
19
- creation: zod.z.string().describe("ISO timestamp when document was created").nullable().optional(),
20
- modified: zod.z.string().describe("ISO timestamp when document was last modified").nullable().optional(),
21
- docstatus: zod.z.number().int().describe("Document status (0=Draft, 1=Submitted, 2=Cancelled)").nullable().optional(),
22
- modified_by: zod.z.string().describe("User who last modified the document").nullable().optional()
16
+ name: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Document name (ID)").optional()),
17
+ owner: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Owner of the document").optional()),
18
+ doctype: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Document type").optional()),
19
+ creation: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("ISO timestamp when document was created").optional()),
20
+ modified: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("ISO timestamp when document was last modified").optional()),
21
+ docstatus: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().int().describe("Document status (0=Draft, 1=Submitted, 2=Cancelled)").optional()),
22
+ modified_by: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("User who last modified the document").optional())
23
23
  }).passthrough().describe("Represents the document data returned by ERPNext API.");
24
24
  const ErpnextGetDocumentOutput = zod.z.object({ data: ErpnextGetDocument_DocumentDataSchema.nullable() }).describe("Response model for retrieving a document from ERPNext.");
25
25
  const erpnextGetDocument = require_action.action("ERPNEXT_GET_DOCUMENT", {
@@ -1 +1 @@
1
- {"version":3,"file":"get-document.cjs","names":["z","action"],"sources":["../../src/actions/get-document.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetDocumentInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"The name (ID) of the document you'd like to receive. For example EMP001 (of type Employee).\"),\n fields: z.array(z.string()).describe(\"By default, only the \\\"name\\\" field is included in the listing. To add more fields, you can pass the fields param. For example, [\\\"name\\\", \\\"country\\\"]\").optional(),\n doctype: z.string().describe(\"The DocType you'd like to receive. For example Customer, Supplier, Employee, Account, Lead, Company, Sales Invoice, Purchase Invoice, Stock Entry, etc.\"),\n filters: z.array(z.array(z.union([z.string(), z.number().int(), z.number(), z.boolean()]))).describe(\"You can filter the listing using sql conditions. Each condition is an array of the format, [doctype, field, operator, value]. For example, [[\\\"Customer\\\", \\\"country\\\", \\\"=\\\", \\\"India\\\"]]\").optional(),\n}).describe(\"Request model for retrieving a specific document by DocType and name.\");\nconst ErpnextGetDocument_DocumentDataSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Document name (ID)\").nullable().optional(),\n owner: z.string().describe(\"Owner of the document\").nullable().optional(),\n doctype: z.string().describe(\"Document type\").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 docstatus: z.number().int().describe(\"Document status (0=Draft, 1=Submitted, 2=Cancelled)\").nullable().optional(),\n modified_by: z.string().describe(\"User who last modified the document\").nullable().optional(),\n}).passthrough().describe(\"Represents the document data returned by ERPNext API.\");\nexport const ErpnextGetDocumentOutput: z.ZodTypeAny = z.object({\n data: ErpnextGetDocument_DocumentDataSchema.nullable(),\n}).describe(\"Response model for retrieving a document from ERPNext.\");\n\nexport const erpnextGetDocument = action(\"ERPNEXT_GET_DOCUMENT\", {\n slug: \"erpnext-get-document\",\n name: \"Get Document\",\n description: \"Tool to retrieve a specific document by its DocType and name (ID). Returns the complete document with all fields. Use when you need to fetch details of a specific ERPNext document like Customer, Employee, Account, Sales Invoice, etc.\",\n input: ErpnextGetDocumentInput,\n output: ErpnextGetDocumentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAAwCA,IAAAA,EAAE,OAAO;CAC5D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6FAA6F;CACvH,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,yJAAyJ,CAAC,CAAC,SAAS;CACzM,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yJAAyJ;CACtL,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAM;EAACA,IAAAA,EAAE,OAAO;EAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI;EAAGA,IAAAA,EAAE,OAAO;EAAGA,IAAAA,EAAE,QAAQ;CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,4LAA4L,CAAC,CAAC,SAAS;AAC9S,CAAC,CAAC,CAAC,SAAS,uEAAuE;AACnF,MAAM,wCAAsDA,IAAAA,EAAE,OAAO;CACnE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAAuD;AACjF,MAAa,2BAAyCA,IAAAA,EAAE,OAAO,EAC7D,MAAM,sCAAsC,SAAS,EACvD,CAAC,CAAC,CAAC,SAAS,wDAAwD;AAEpE,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-document.cjs","names":["z","action"],"sources":["../../src/actions/get-document.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetDocumentInput = z.object({\n name: z.string().describe(\"The name (ID) of the document you'd like to receive. For example EMP001 (of type Employee).\"),\n fields: z.array(z.string()).describe(\"By default, only the \\\"name\\\" field is included in the listing. To add more fields, you can pass the fields param. For example, [\\\"name\\\", \\\"country\\\"]\").optional(),\n doctype: z.string().describe(\"The DocType you'd like to receive. For example Customer, Supplier, Employee, Account, Lead, Company, Sales Invoice, Purchase Invoice, Stock Entry, etc.\"),\n filters: z.array(z.array(z.union([z.string(), z.number().int(), z.number(), z.boolean()]))).describe(\"You can filter the listing using sql conditions. Each condition is an array of the format, [doctype, field, operator, value]. For example, [[\\\"Customer\\\", \\\"country\\\", \\\"=\\\", \\\"India\\\"]]\").optional(),\n}).describe(\"Request model for retrieving a specific document by DocType and name.\");\nconst ErpnextGetDocument_DocumentDataSchema = z.object({\n name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Document name (ID)\").optional()),\n owner: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Owner of the document\").optional()),\n doctype: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Document type\").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 docstatus: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Document status (0=Draft, 1=Submitted, 2=Cancelled)\").optional()),\n modified_by: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"User who last modified the document\").optional()),\n}).passthrough().describe(\"Represents the document data returned by ERPNext API.\");\nexport const ErpnextGetDocumentOutput = z.object({\n data: ErpnextGetDocument_DocumentDataSchema.nullable(),\n}).describe(\"Response model for retrieving a document from ERPNext.\");\n\nexport const erpnextGetDocument = action(\"ERPNEXT_GET_DOCUMENT\", {\n slug: \"erpnext-get-document\",\n name: \"Get Document\",\n description: \"Tool to retrieve a specific document by its DocType and name (ID). Returns the complete document with all fields. Use when you need to fetch details of a specific ERPNext document like Customer, Employee, Account, Sales Invoice, etc.\",\n input: ErpnextGetDocumentInput,\n output: ErpnextGetDocumentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6FAA6F;CACvH,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,yJAAyJ,CAAC,CAAC,SAAS;CACzM,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yJAAyJ;CACtL,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAM;EAACA,IAAAA,EAAE,OAAO;EAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI;EAAGA,IAAAA,EAAE,OAAO;EAAGA,IAAAA,EAAE,QAAQ;CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,4LAA4L,CAAC,CAAC,SAAS;AAC9S,CAAC,CAAC,CAAC,SAAS,uEAAuE;AACnF,MAAM,wCAAwCA,IAAAA,EAAE,OAAO;CACrD,MAAMA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC;CACxH,OAAOA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC;CAC5H,SAASA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS,CAAC;CACtH,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,+CAA+C,CAAC,CAAC,SAAS,CAAC;CACvJ,WAAWA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC;CACpK,aAAaA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC;AAClJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAAuD;AACjF,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,EAC/C,MAAM,sCAAsC,SAAS,EACvD,CAAC,CAAC,CAAC,SAAS,wDAAwD;AAEpE,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,40 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-document.d.ts
4
- declare const ErpnextGetDocumentInput: z.ZodTypeAny;
5
- declare const ErpnextGetDocumentOutput: z.ZodTypeAny;
6
- declare const erpnextGetDocument: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const ErpnextGetDocumentInput: z.ZodObject<{
5
+ name: z.ZodString;
6
+ fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
7
+ doctype: z.ZodString;
8
+ filters: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNumber, z.ZodBoolean]>>>>;
9
+ }, z.core.$strip>;
10
+ declare const ErpnextGetDocumentOutput: z.ZodObject<{
11
+ data: z.ZodNullable<z.ZodObject<{
12
+ name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
13
+ owner: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
14
+ doctype: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
15
+ creation: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
16
+ modified: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
17
+ docstatus: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
18
+ modified_by: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
19
+ }, z.core.$loose>>;
20
+ }, z.core.$strip>;
21
+ declare const erpnextGetDocument: import("@keystrokehq/action").WorkflowActionDefinition<{
22
+ name: string;
23
+ doctype: string;
24
+ fields?: string[] | undefined;
25
+ filters?: (string | number | boolean)[][] | undefined;
26
+ }, {
27
+ data: {
28
+ [x: string]: unknown;
29
+ name?: string | undefined;
30
+ owner?: string | undefined;
31
+ doctype?: string | undefined;
32
+ creation?: string | undefined;
33
+ modified?: string | undefined;
34
+ docstatus?: number | undefined;
35
+ modified_by?: string | undefined;
36
+ } | null;
37
+ }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
38
  //#endregion
8
39
  export { erpnextGetDocument };
9
40
  //# sourceMappingURL=get-document.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-document.d.cts","names":[],"sources":["../../src/actions/get-document.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAK4C;AAAA,cAUvE,wBAAA,EAA0B,CAAA,CAAE,UAE4B;AAAA,cAExD,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-document.d.cts","names":[],"sources":["../../src/actions/get-document.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;cAevB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;cAIxB,kBAAA,gCAAkB,wBAAA"}
@@ -1,9 +1,40 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-document.d.ts
4
- declare const ErpnextGetDocumentInput: z.ZodTypeAny;
5
- declare const ErpnextGetDocumentOutput: z.ZodTypeAny;
6
- declare const erpnextGetDocument: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const ErpnextGetDocumentInput: z.ZodObject<{
5
+ name: z.ZodString;
6
+ fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
7
+ doctype: z.ZodString;
8
+ filters: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNumber, z.ZodBoolean]>>>>;
9
+ }, z.core.$strip>;
10
+ declare const ErpnextGetDocumentOutput: z.ZodObject<{
11
+ data: z.ZodNullable<z.ZodObject<{
12
+ name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
13
+ owner: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
14
+ doctype: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
15
+ creation: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
16
+ modified: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
17
+ docstatus: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
18
+ modified_by: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
19
+ }, z.core.$loose>>;
20
+ }, z.core.$strip>;
21
+ declare const erpnextGetDocument: import("@keystrokehq/action").WorkflowActionDefinition<{
22
+ name: string;
23
+ doctype: string;
24
+ fields?: string[] | undefined;
25
+ filters?: (string | number | boolean)[][] | undefined;
26
+ }, {
27
+ data: {
28
+ [x: string]: unknown;
29
+ name?: string | undefined;
30
+ owner?: string | undefined;
31
+ doctype?: string | undefined;
32
+ creation?: string | undefined;
33
+ modified?: string | undefined;
34
+ docstatus?: number | undefined;
35
+ modified_by?: string | undefined;
36
+ } | null;
37
+ }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
38
  //#endregion
8
39
  export { erpnextGetDocument };
9
40
  //# sourceMappingURL=get-document.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-document.d.mts","names":[],"sources":["../../src/actions/get-document.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAK4C;AAAA,cAUvE,wBAAA,EAA0B,CAAA,CAAE,UAE4B;AAAA,cAExD,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-document.d.mts","names":[],"sources":["../../src/actions/get-document.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;cAevB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;cAIxB,kBAAA,gCAAkB,wBAAA"}
@@ -13,13 +13,13 @@ const ErpnextGetDocumentInput = z.object({
13
13
  ]))).describe("You can filter the listing using sql conditions. Each condition is an array of the format, [doctype, field, operator, value]. For example, [[\"Customer\", \"country\", \"=\", \"India\"]]").optional()
14
14
  }).describe("Request model for retrieving a specific document by DocType and name.");
15
15
  const ErpnextGetDocument_DocumentDataSchema = z.object({
16
- name: z.string().describe("Document name (ID)").nullable().optional(),
17
- owner: z.string().describe("Owner of the document").nullable().optional(),
18
- doctype: z.string().describe("Document type").nullable().optional(),
19
- creation: z.string().describe("ISO timestamp when document was created").nullable().optional(),
20
- modified: z.string().describe("ISO timestamp when document was last modified").nullable().optional(),
21
- docstatus: z.number().int().describe("Document status (0=Draft, 1=Submitted, 2=Cancelled)").nullable().optional(),
22
- modified_by: z.string().describe("User who last modified the document").nullable().optional()
16
+ name: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Document name (ID)").optional()),
17
+ owner: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Owner of the document").optional()),
18
+ doctype: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Document type").optional()),
19
+ creation: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("ISO timestamp when document was created").optional()),
20
+ modified: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("ISO timestamp when document was last modified").optional()),
21
+ docstatus: z.preprocess((value) => value === null ? void 0 : value, z.number().int().describe("Document status (0=Draft, 1=Submitted, 2=Cancelled)").optional()),
22
+ modified_by: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("User who last modified the document").optional())
23
23
  }).passthrough().describe("Represents the document data returned by ERPNext API.");
24
24
  const erpnextGetDocument = action("ERPNEXT_GET_DOCUMENT", {
25
25
  slug: "erpnext-get-document",
@@ -1 +1 @@
1
- {"version":3,"file":"get-document.mjs","names":[],"sources":["../../src/actions/get-document.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetDocumentInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"The name (ID) of the document you'd like to receive. For example EMP001 (of type Employee).\"),\n fields: z.array(z.string()).describe(\"By default, only the \\\"name\\\" field is included in the listing. To add more fields, you can pass the fields param. For example, [\\\"name\\\", \\\"country\\\"]\").optional(),\n doctype: z.string().describe(\"The DocType you'd like to receive. For example Customer, Supplier, Employee, Account, Lead, Company, Sales Invoice, Purchase Invoice, Stock Entry, etc.\"),\n filters: z.array(z.array(z.union([z.string(), z.number().int(), z.number(), z.boolean()]))).describe(\"You can filter the listing using sql conditions. Each condition is an array of the format, [doctype, field, operator, value]. For example, [[\\\"Customer\\\", \\\"country\\\", \\\"=\\\", \\\"India\\\"]]\").optional(),\n}).describe(\"Request model for retrieving a specific document by DocType and name.\");\nconst ErpnextGetDocument_DocumentDataSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Document name (ID)\").nullable().optional(),\n owner: z.string().describe(\"Owner of the document\").nullable().optional(),\n doctype: z.string().describe(\"Document type\").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 docstatus: z.number().int().describe(\"Document status (0=Draft, 1=Submitted, 2=Cancelled)\").nullable().optional(),\n modified_by: z.string().describe(\"User who last modified the document\").nullable().optional(),\n}).passthrough().describe(\"Represents the document data returned by ERPNext API.\");\nexport const ErpnextGetDocumentOutput: z.ZodTypeAny = z.object({\n data: ErpnextGetDocument_DocumentDataSchema.nullable(),\n}).describe(\"Response model for retrieving a document from ERPNext.\");\n\nexport const erpnextGetDocument = action(\"ERPNEXT_GET_DOCUMENT\", {\n slug: \"erpnext-get-document\",\n name: \"Get Document\",\n description: \"Tool to retrieve a specific document by its DocType and name (ID). Returns the complete document with all fields. Use when you need to fetch details of a specific ERPNext document like Customer, Employee, Account, Sales Invoice, etc.\",\n input: ErpnextGetDocumentInput,\n output: ErpnextGetDocumentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAAwC,EAAE,OAAO;CAC5D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6FAA6F;CACvH,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,yJAAyJ,CAAC,CAAC,SAAS;CACzM,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yJAAyJ;CACtL,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;EAAC,EAAE,OAAO;EAAG,EAAE,OAAO,CAAC,CAAC,IAAI;EAAG,EAAE,OAAO;EAAG,EAAE,QAAQ;CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,4LAA4L,CAAC,CAAC,SAAS;AAC9S,CAAC,CAAC,CAAC,SAAS,uEAAuE;AACnF,MAAM,wCAAsD,EAAE,OAAO;CACnE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAAuD;AAKjF,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAToD,EAAE,OAAO,EAC7D,MAAM,sCAAsC,SAAS,EACvD,CAAC,CAAC,CAAC,SAAS,wDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"get-document.mjs","names":[],"sources":["../../src/actions/get-document.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetDocumentInput = z.object({\n name: z.string().describe(\"The name (ID) of the document you'd like to receive. For example EMP001 (of type Employee).\"),\n fields: z.array(z.string()).describe(\"By default, only the \\\"name\\\" field is included in the listing. To add more fields, you can pass the fields param. For example, [\\\"name\\\", \\\"country\\\"]\").optional(),\n doctype: z.string().describe(\"The DocType you'd like to receive. For example Customer, Supplier, Employee, Account, Lead, Company, Sales Invoice, Purchase Invoice, Stock Entry, etc.\"),\n filters: z.array(z.array(z.union([z.string(), z.number().int(), z.number(), z.boolean()]))).describe(\"You can filter the listing using sql conditions. Each condition is an array of the format, [doctype, field, operator, value]. For example, [[\\\"Customer\\\", \\\"country\\\", \\\"=\\\", \\\"India\\\"]]\").optional(),\n}).describe(\"Request model for retrieving a specific document by DocType and name.\");\nconst ErpnextGetDocument_DocumentDataSchema = z.object({\n name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Document name (ID)\").optional()),\n owner: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Owner of the document\").optional()),\n doctype: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Document type\").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 docstatus: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Document status (0=Draft, 1=Submitted, 2=Cancelled)\").optional()),\n modified_by: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"User who last modified the document\").optional()),\n}).passthrough().describe(\"Represents the document data returned by ERPNext API.\");\nexport const ErpnextGetDocumentOutput = z.object({\n data: ErpnextGetDocument_DocumentDataSchema.nullable(),\n}).describe(\"Response model for retrieving a document from ERPNext.\");\n\nexport const erpnextGetDocument = action(\"ERPNEXT_GET_DOCUMENT\", {\n slug: \"erpnext-get-document\",\n name: \"Get Document\",\n description: \"Tool to retrieve a specific document by its DocType and name (ID). Returns the complete document with all fields. Use when you need to fetch details of a specific ERPNext document like Customer, Employee, Account, Sales Invoice, etc.\",\n input: ErpnextGetDocumentInput,\n output: ErpnextGetDocumentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0B,EAAE,OAAO;CAC9C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6FAA6F;CACvH,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,yJAAyJ,CAAC,CAAC,SAAS;CACzM,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yJAAyJ;CACtL,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;EAAC,EAAE,OAAO;EAAG,EAAE,OAAO,CAAC,CAAC,IAAI;EAAG,EAAE,OAAO;EAAG,EAAE,QAAQ;CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,4LAA4L,CAAC,CAAC,SAAS;AAC9S,CAAC,CAAC,CAAC,SAAS,uEAAuE;AACnF,MAAM,wCAAwC,EAAE,OAAO;CACrD,MAAM,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC;CACxH,OAAO,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC;CAC5H,SAAS,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS,CAAC;CACtH,UAAU,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC;CACjJ,UAAU,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC;CACvJ,WAAW,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC;CACpK,aAAa,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC;AAClJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAAuD;AAKjF,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATsC,EAAE,OAAO,EAC/C,MAAM,sCAAsC,SAAS,EACvD,CAAC,CAAC,CAAC,SAAS,wDAOF;AACV,CAAC"}
@@ -6,7 +6,7 @@ const ErpnextGetExchangeRateInput = zod.z.object({
6
6
  from_currency: zod.z.string().describe("Source currency code in ISO 4217 format (e.g., 'USD', 'EUR', 'GBP'). This is the currency you are converting from."),
7
7
  transaction_date: zod.z.string().describe("Optional date for the exchange rate in YYYY-MM-DD format. If not provided, the current date's exchange rate will be used.").optional()
8
8
  }).describe("Request model for getting currency exchange rate between two currencies.");
9
- const ErpnextGetExchangeRateOutput = zod.z.object({ message: zod.z.number().describe("The exchange rate from source currency to target currency. This represents how much 1 unit of from_currency equals in to_currency.") }).describe("Response model containing the exchange rate.");
9
+ const ErpnextGetExchangeRateOutput = zod.z.object({ message: zod.z.number().describe("The exchange rate from source currency to target currency. This represents how much 1 unit of from_currency equals in to_currency.").nullable() }).describe("Response model containing the exchange rate.");
10
10
  const erpnextGetExchangeRate = require_action.action("ERPNEXT_GET_EXCHANGE_RATE", {
11
11
  slug: "erpnext-get-exchange-rate",
12
12
  name: "Get Exchange Rate",
@@ -1 +1 @@
1
- {"version":3,"file":"get-exchange-rate.cjs","names":["z","action"],"sources":["../../src/actions/get-exchange-rate.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetExchangeRateInput: z.ZodTypeAny = z.object({\n to_currency: z.string().describe(\"Target currency code in ISO 4217 format (e.g., 'EUR', 'USD', 'JPY'). This is the currency you are converting to.\"),\n from_currency: z.string().describe(\"Source currency code in ISO 4217 format (e.g., 'USD', 'EUR', 'GBP'). This is the currency you are converting from.\"),\n transaction_date: z.string().describe(\"Optional date for the exchange rate in YYYY-MM-DD format. If not provided, the current date's exchange rate will be used.\").optional(),\n}).describe(\"Request model for getting currency exchange rate between two currencies.\");\nexport const ErpnextGetExchangeRateOutput: z.ZodTypeAny = z.object({\n message: z.number().describe(\"The exchange rate from source currency to target currency. This represents how much 1 unit of from_currency equals in to_currency.\"),\n}).describe(\"Response model containing the exchange rate.\");\n\nexport const erpnextGetExchangeRate = action(\"ERPNEXT_GET_EXCHANGE_RATE\", {\n slug: \"erpnext-get-exchange-rate\",\n name: \"Get Exchange Rate\",\n description: \"Tool to get the currency exchange rate between two currencies in ERPNext. Use when you need to convert amounts between different currencies or check current exchange rates.\",\n input: ErpnextGetExchangeRateInput,\n output: ErpnextGetExchangeRateOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kHAAkH;CACnJ,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH;CACvJ,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2HAA2H,CAAC,CAAC,SAAS;AAC9K,CAAC,CAAC,CAAC,SAAS,0EAA0E;AACtF,MAAa,+BAA6CA,IAAAA,EAAE,OAAO,EACjE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oIAAoI,EACnK,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAE1D,MAAa,yBAAyBC,eAAAA,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-exchange-rate.cjs","names":["z","action"],"sources":["../../src/actions/get-exchange-rate.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetExchangeRateInput = z.object({\n to_currency: z.string().describe(\"Target currency code in ISO 4217 format (e.g., 'EUR', 'USD', 'JPY'). This is the currency you are converting to.\"),\n from_currency: z.string().describe(\"Source currency code in ISO 4217 format (e.g., 'USD', 'EUR', 'GBP'). This is the currency you are converting from.\"),\n transaction_date: z.string().describe(\"Optional date for the exchange rate in YYYY-MM-DD format. If not provided, the current date's exchange rate will be used.\").optional(),\n}).describe(\"Request model for getting currency exchange rate between two currencies.\");\nexport const ErpnextGetExchangeRateOutput = z.object({\n message: z.number().describe(\"The exchange rate from source currency to target currency. This represents how much 1 unit of from_currency equals in to_currency.\").nullable(),\n}).describe(\"Response model containing the exchange rate.\");\n\nexport const erpnextGetExchangeRate = action(\"ERPNEXT_GET_EXCHANGE_RATE\", {\n slug: \"erpnext-get-exchange-rate\",\n name: \"Get Exchange Rate\",\n description: \"Tool to get the currency exchange rate between two currencies in ERPNext. Use when you need to convert amounts between different currencies or check current exchange rates.\",\n input: ErpnextGetExchangeRateInput,\n output: ErpnextGetExchangeRateOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kHAAkH;CACnJ,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH;CACvJ,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2HAA2H,CAAC,CAAC,SAAS;AAC9K,CAAC,CAAC,CAAC,SAAS,0EAA0E;AACtF,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oIAAoI,CAAC,CAAC,SAAS,EAC9K,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAE1D,MAAa,yBAAyBC,eAAAA,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,21 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-exchange-rate.d.ts
4
- declare const ErpnextGetExchangeRateInput: z.ZodTypeAny;
5
- declare const ErpnextGetExchangeRateOutput: z.ZodTypeAny;
6
- declare const erpnextGetExchangeRate: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const ErpnextGetExchangeRateInput: z.ZodObject<{
5
+ to_currency: z.ZodString;
6
+ from_currency: z.ZodString;
7
+ transaction_date: z.ZodOptional<z.ZodString>;
8
+ }, z.core.$strip>;
9
+ declare const ErpnextGetExchangeRateOutput: z.ZodObject<{
10
+ message: z.ZodNullable<z.ZodNumber>;
11
+ }, z.core.$strip>;
12
+ declare const erpnextGetExchangeRate: import("@keystrokehq/action").WorkflowActionDefinition<{
13
+ to_currency: string;
14
+ from_currency: string;
15
+ transaction_date?: string | undefined;
16
+ }, {
17
+ message: number | null;
18
+ }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
19
  //#endregion
8
20
  export { erpnextGetExchangeRate };
9
21
  //# sourceMappingURL=get-exchange-rate.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-exchange-rate.d.cts","names":[],"sources":["../../src/actions/get-exchange-rate.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAI2C;AAAA,cAC1E,4BAAA,EAA8B,CAAA,CAAE,UAEc;AAAA,cAE9C,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-exchange-rate.d.cts","names":[],"sources":["../../src/actions/get-exchange-rate.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;cAK3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAI5B,sBAAA,gCAAsB,wBAAA"}
@@ -1,9 +1,21 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-exchange-rate.d.ts
4
- declare const ErpnextGetExchangeRateInput: z.ZodTypeAny;
5
- declare const ErpnextGetExchangeRateOutput: z.ZodTypeAny;
6
- declare const erpnextGetExchangeRate: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const ErpnextGetExchangeRateInput: z.ZodObject<{
5
+ to_currency: z.ZodString;
6
+ from_currency: z.ZodString;
7
+ transaction_date: z.ZodOptional<z.ZodString>;
8
+ }, z.core.$strip>;
9
+ declare const ErpnextGetExchangeRateOutput: z.ZodObject<{
10
+ message: z.ZodNullable<z.ZodNumber>;
11
+ }, z.core.$strip>;
12
+ declare const erpnextGetExchangeRate: import("@keystrokehq/action").WorkflowActionDefinition<{
13
+ to_currency: string;
14
+ from_currency: string;
15
+ transaction_date?: string | undefined;
16
+ }, {
17
+ message: number | null;
18
+ }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
19
  //#endregion
8
20
  export { erpnextGetExchangeRate };
9
21
  //# sourceMappingURL=get-exchange-rate.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-exchange-rate.d.mts","names":[],"sources":["../../src/actions/get-exchange-rate.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAI2C;AAAA,cAC1E,4BAAA,EAA8B,CAAA,CAAE,UAEc;AAAA,cAE9C,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-exchange-rate.d.mts","names":[],"sources":["../../src/actions/get-exchange-rate.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;cAK3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAI5B,sBAAA,gCAAsB,wBAAA"}
@@ -9,7 +9,7 @@ const erpnextGetExchangeRate = action("ERPNEXT_GET_EXCHANGE_RATE", {
9
9
  from_currency: z.string().describe("Source currency code in ISO 4217 format (e.g., 'USD', 'EUR', 'GBP'). This is the currency you are converting from."),
10
10
  transaction_date: z.string().describe("Optional date for the exchange rate in YYYY-MM-DD format. If not provided, the current date's exchange rate will be used.").optional()
11
11
  }).describe("Request model for getting currency exchange rate between two currencies."),
12
- output: z.object({ message: z.number().describe("The exchange rate from source currency to target currency. This represents how much 1 unit of from_currency equals in to_currency.") }).describe("Response model containing the exchange rate.")
12
+ output: z.object({ message: z.number().describe("The exchange rate from source currency to target currency. This represents how much 1 unit of from_currency equals in to_currency.").nullable() }).describe("Response model containing the exchange rate.")
13
13
  });
14
14
  //#endregion
15
15
  export { erpnextGetExchangeRate };
@@ -1 +1 @@
1
- {"version":3,"file":"get-exchange-rate.mjs","names":[],"sources":["../../src/actions/get-exchange-rate.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetExchangeRateInput: z.ZodTypeAny = z.object({\n to_currency: z.string().describe(\"Target currency code in ISO 4217 format (e.g., 'EUR', 'USD', 'JPY'). This is the currency you are converting to.\"),\n from_currency: z.string().describe(\"Source currency code in ISO 4217 format (e.g., 'USD', 'EUR', 'GBP'). This is the currency you are converting from.\"),\n transaction_date: z.string().describe(\"Optional date for the exchange rate in YYYY-MM-DD format. If not provided, the current date's exchange rate will be used.\").optional(),\n}).describe(\"Request model for getting currency exchange rate between two currencies.\");\nexport const ErpnextGetExchangeRateOutput: z.ZodTypeAny = z.object({\n message: z.number().describe(\"The exchange rate from source currency to target currency. This represents how much 1 unit of from_currency equals in to_currency.\"),\n}).describe(\"Response model containing the exchange rate.\");\n\nexport const erpnextGetExchangeRate = action(\"ERPNEXT_GET_EXCHANGE_RATE\", {\n slug: \"erpnext-get-exchange-rate\",\n name: \"Get Exchange Rate\",\n description: \"Tool to get the currency exchange rate between two currencies in ERPNext. Use when you need to convert amounts between different currencies or check current exchange rates.\",\n input: ErpnextGetExchangeRateInput,\n output: ErpnextGetExchangeRateOutput,\n});\n"],"mappings":";;AAaA,MAAa,yBAAyB,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAbuD,EAAE,OAAO;EAChE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,kHAAkH;EACnJ,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH;EACvJ,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,2HAA2H,CAAC,CAAC,SAAS;CAC9K,CAAC,CAAC,CAAC,SAAS,0EASH;CACP,QATwD,EAAE,OAAO,EACjE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,oIAAoI,EACnK,CAAC,CAAC,CAAC,SAAS,8CAOF;AACV,CAAC"}
1
+ {"version":3,"file":"get-exchange-rate.mjs","names":[],"sources":["../../src/actions/get-exchange-rate.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetExchangeRateInput = z.object({\n to_currency: z.string().describe(\"Target currency code in ISO 4217 format (e.g., 'EUR', 'USD', 'JPY'). This is the currency you are converting to.\"),\n from_currency: z.string().describe(\"Source currency code in ISO 4217 format (e.g., 'USD', 'EUR', 'GBP'). This is the currency you are converting from.\"),\n transaction_date: z.string().describe(\"Optional date for the exchange rate in YYYY-MM-DD format. If not provided, the current date's exchange rate will be used.\").optional(),\n}).describe(\"Request model for getting currency exchange rate between two currencies.\");\nexport const ErpnextGetExchangeRateOutput = z.object({\n message: z.number().describe(\"The exchange rate from source currency to target currency. This represents how much 1 unit of from_currency equals in to_currency.\").nullable(),\n}).describe(\"Response model containing the exchange rate.\");\n\nexport const erpnextGetExchangeRate = action(\"ERPNEXT_GET_EXCHANGE_RATE\", {\n slug: \"erpnext-get-exchange-rate\",\n name: \"Get Exchange Rate\",\n description: \"Tool to get the currency exchange rate between two currencies in ERPNext. Use when you need to convert amounts between different currencies or check current exchange rates.\",\n input: ErpnextGetExchangeRateInput,\n output: ErpnextGetExchangeRateOutput,\n});\n"],"mappings":";;AAaA,MAAa,yBAAyB,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAbyC,EAAE,OAAO;EAClD,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,kHAAkH;EACnJ,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH;EACvJ,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,2HAA2H,CAAC,CAAC,SAAS;CAC9K,CAAC,CAAC,CAAC,SAAS,0EASH;CACP,QAT0C,EAAE,OAAO,EACnD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,oIAAoI,CAAC,CAAC,SAAS,EAC9K,CAAC,CAAC,CAAC,SAAS,8CAOF;AACV,CAAC"}
@@ -6,9 +6,9 @@ const ErpnextGetFiscalYearInput = zod.z.object({
6
6
  company: zod.z.string().describe("Company name to get fiscal year for. If not provided, the default company will be used.").optional()
7
7
  }).describe("Request model for getting fiscal year information for a given date.");
8
8
  const ErpnextGetFiscalYear_FiscalYearInfoSchema = zod.z.object({
9
- name: zod.z.string().describe("Fiscal year name (e.g., '2026', 'FY 2023-24')"),
10
- year_end_date: zod.z.string().describe("End date of the fiscal year in YYYY-MM-DD format"),
11
- year_start_date: zod.z.string().describe("Start date of the fiscal year in YYYY-MM-DD format")
9
+ name: zod.z.string().describe("Fiscal year name (e.g., '2026', 'FY 2023-24')").nullable(),
10
+ year_end_date: zod.z.string().describe("End date of the fiscal year in YYYY-MM-DD format").nullable(),
11
+ year_start_date: zod.z.string().describe("Start date of the fiscal year in YYYY-MM-DD format").nullable()
12
12
  }).describe("Fiscal year information.");
13
13
  const ErpnextGetFiscalYearOutput = zod.z.object({ message: zod.z.union([ErpnextGetFiscalYear_FiscalYearInfoSchema, zod.z.array(zod.z.string())]) }).describe("Response model containing fiscal year information.");
14
14
  const erpnextGetFiscalYear = require_action.action("ERPNEXT_GET_FISCAL_YEAR", {
@@ -1 +1 @@
1
- {"version":3,"file":"get-fiscal-year.cjs","names":["z","action"],"sources":["../../src/actions/get-fiscal-year.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetFiscalYearInput: z.ZodTypeAny = z.object({\n date: z.string().describe(\"Date to check for fiscal year in YYYY-MM-DD format. If not provided, the current date will be used.\").optional(),\n company: z.string().describe(\"Company name to get fiscal year for. If not provided, the default company will be used.\").optional(),\n}).describe(\"Request model for getting fiscal year information for a given date.\");\nconst ErpnextGetFiscalYear_FiscalYearInfoSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Fiscal year name (e.g., '2026', 'FY 2023-24')\"),\n year_end_date: z.string().describe(\"End date of the fiscal year in YYYY-MM-DD format\"),\n year_start_date: z.string().describe(\"Start date of the fiscal year in YYYY-MM-DD format\"),\n}).describe(\"Fiscal year information.\");\nexport const ErpnextGetFiscalYearOutput: z.ZodTypeAny = z.object({\n message: z.union([ErpnextGetFiscalYear_FiscalYearInfoSchema, z.array(z.string())]),\n}).describe(\"Response model containing fiscal year information.\");\n\nexport const erpnextGetFiscalYear = action(\"ERPNEXT_GET_FISCAL_YEAR\", {\n slug: \"erpnext-get-fiscal-year\",\n name: \"Get Fiscal Year\",\n description: \"Tool to get fiscal year information for a given date in ERPNext. Use when you need to determine which fiscal year a specific date falls into or retrieve fiscal year boundaries.\",\n input: ErpnextGetFiscalYearInput,\n output: ErpnextGetFiscalYearOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0CA,IAAAA,EAAE,OAAO;CAC9D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS;CAC1I,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS;AACnI,CAAC,CAAC,CAAC,SAAS,qEAAqE;AACjF,MAAM,4CAA0DA,IAAAA,EAAE,OAAO;CACvE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CACzE,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD;CACrF,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;AAC3F,CAAC,CAAC,CAAC,SAAS,0BAA0B;AACtC,MAAa,6BAA2CA,IAAAA,EAAE,OAAO,EAC/D,SAASA,IAAAA,EAAE,MAAM,CAAC,2CAA2CA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,EACnF,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAEhE,MAAa,uBAAuBC,eAAAA,OAAO,2BAA2B;CACpE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-fiscal-year.cjs","names":["z","action"],"sources":["../../src/actions/get-fiscal-year.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetFiscalYearInput = z.object({\n date: z.string().describe(\"Date to check for fiscal year in YYYY-MM-DD format. If not provided, the current date will be used.\").optional(),\n company: z.string().describe(\"Company name to get fiscal year for. If not provided, the default company will be used.\").optional(),\n}).describe(\"Request model for getting fiscal year information for a given date.\");\nconst ErpnextGetFiscalYear_FiscalYearInfoSchema = z.object({\n name: z.string().describe(\"Fiscal year name (e.g., '2026', 'FY 2023-24')\").nullable(),\n year_end_date: z.string().describe(\"End date of the fiscal year in YYYY-MM-DD format\").nullable(),\n year_start_date: z.string().describe(\"Start date of the fiscal year in YYYY-MM-DD format\").nullable(),\n}).describe(\"Fiscal year information.\");\nexport const ErpnextGetFiscalYearOutput = z.object({\n message: z.union([ErpnextGetFiscalYear_FiscalYearInfoSchema, z.array(z.string())]),\n}).describe(\"Response model containing fiscal year information.\");\n\nexport const erpnextGetFiscalYear = action(\"ERPNEXT_GET_FISCAL_YEAR\", {\n slug: \"erpnext-get-fiscal-year\",\n name: \"Get Fiscal Year\",\n description: \"Tool to get fiscal year information for a given date in ERPNext. Use when you need to determine which fiscal year a specific date falls into or retrieve fiscal year boundaries.\",\n input: ErpnextGetFiscalYearInput,\n output: ErpnextGetFiscalYearOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS;CAC1I,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS;AACnI,CAAC,CAAC,CAAC,SAAS,qEAAqE;AACjF,MAAM,4CAA4CA,IAAAA,EAAE,OAAO;CACzD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACpF,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CAChG,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,SAAS,0BAA0B;AACtC,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,SAASA,IAAAA,EAAE,MAAM,CAAC,2CAA2CA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,EACnF,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAEhE,MAAa,uBAAuBC,eAAAA,OAAO,2BAA2B;CACpE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,27 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-fiscal-year.d.ts
4
- declare const ErpnextGetFiscalYearInput: z.ZodTypeAny;
5
- declare const ErpnextGetFiscalYearOutput: z.ZodTypeAny;
6
- declare const erpnextGetFiscalYear: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const ErpnextGetFiscalYearInput: z.ZodObject<{
5
+ date: z.ZodOptional<z.ZodString>;
6
+ company: z.ZodOptional<z.ZodString>;
7
+ }, z.core.$strip>;
8
+ declare const ErpnextGetFiscalYearOutput: z.ZodObject<{
9
+ message: z.ZodUnion<readonly [z.ZodObject<{
10
+ name: z.ZodNullable<z.ZodString>;
11
+ year_end_date: z.ZodNullable<z.ZodString>;
12
+ year_start_date: z.ZodNullable<z.ZodString>;
13
+ }, z.core.$strip>, z.ZodArray<z.ZodString>]>;
14
+ }, z.core.$strip>;
15
+ declare const erpnextGetFiscalYear: import("@keystrokehq/action").WorkflowActionDefinition<{
16
+ date?: string | undefined;
17
+ company?: string | undefined;
18
+ }, {
19
+ message: string[] | {
20
+ name: string | null;
21
+ year_end_date: string | null;
22
+ year_start_date: string | null;
23
+ };
24
+ }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
25
  //#endregion
8
26
  export { erpnextGetFiscalYear };
9
27
  //# sourceMappingURL=get-fiscal-year.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-fiscal-year.d.cts","names":[],"sources":["../../src/actions/get-fiscal-year.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAGwC;AAAA,cAMrE,0BAAA,EAA4B,CAAA,CAAE,UAEsB;AAAA,cAEpD,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-fiscal-year.d.cts","names":[],"sources":["../../src/actions/get-fiscal-year.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;cASzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;cAI1B,oBAAA,gCAAoB,wBAAA"}
@@ -1,9 +1,27 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-fiscal-year.d.ts
4
- declare const ErpnextGetFiscalYearInput: z.ZodTypeAny;
5
- declare const ErpnextGetFiscalYearOutput: z.ZodTypeAny;
6
- declare const erpnextGetFiscalYear: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const ErpnextGetFiscalYearInput: z.ZodObject<{
5
+ date: z.ZodOptional<z.ZodString>;
6
+ company: z.ZodOptional<z.ZodString>;
7
+ }, z.core.$strip>;
8
+ declare const ErpnextGetFiscalYearOutput: z.ZodObject<{
9
+ message: z.ZodUnion<readonly [z.ZodObject<{
10
+ name: z.ZodNullable<z.ZodString>;
11
+ year_end_date: z.ZodNullable<z.ZodString>;
12
+ year_start_date: z.ZodNullable<z.ZodString>;
13
+ }, z.core.$strip>, z.ZodArray<z.ZodString>]>;
14
+ }, z.core.$strip>;
15
+ declare const erpnextGetFiscalYear: import("@keystrokehq/action").WorkflowActionDefinition<{
16
+ date?: string | undefined;
17
+ company?: string | undefined;
18
+ }, {
19
+ message: string[] | {
20
+ name: string | null;
21
+ year_end_date: string | null;
22
+ year_start_date: string | null;
23
+ };
24
+ }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
25
  //#endregion
8
26
  export { erpnextGetFiscalYear };
9
27
  //# sourceMappingURL=get-fiscal-year.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-fiscal-year.d.mts","names":[],"sources":["../../src/actions/get-fiscal-year.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAGwC;AAAA,cAMrE,0BAAA,EAA4B,CAAA,CAAE,UAEsB;AAAA,cAEpD,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-fiscal-year.d.mts","names":[],"sources":["../../src/actions/get-fiscal-year.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;cASzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;cAI1B,oBAAA,gCAAoB,wBAAA"}
@@ -6,9 +6,9 @@ const ErpnextGetFiscalYearInput = z.object({
6
6
  company: z.string().describe("Company name to get fiscal year for. If not provided, the default company will be used.").optional()
7
7
  }).describe("Request model for getting fiscal year information for a given date.");
8
8
  const ErpnextGetFiscalYear_FiscalYearInfoSchema = z.object({
9
- name: z.string().describe("Fiscal year name (e.g., '2026', 'FY 2023-24')"),
10
- year_end_date: z.string().describe("End date of the fiscal year in YYYY-MM-DD format"),
11
- year_start_date: z.string().describe("Start date of the fiscal year in YYYY-MM-DD format")
9
+ name: z.string().describe("Fiscal year name (e.g., '2026', 'FY 2023-24')").nullable(),
10
+ year_end_date: z.string().describe("End date of the fiscal year in YYYY-MM-DD format").nullable(),
11
+ year_start_date: z.string().describe("Start date of the fiscal year in YYYY-MM-DD format").nullable()
12
12
  }).describe("Fiscal year information.");
13
13
  const erpnextGetFiscalYear = action("ERPNEXT_GET_FISCAL_YEAR", {
14
14
  slug: "erpnext-get-fiscal-year",
@@ -1 +1 @@
1
- {"version":3,"file":"get-fiscal-year.mjs","names":[],"sources":["../../src/actions/get-fiscal-year.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetFiscalYearInput: z.ZodTypeAny = z.object({\n date: z.string().describe(\"Date to check for fiscal year in YYYY-MM-DD format. If not provided, the current date will be used.\").optional(),\n company: z.string().describe(\"Company name to get fiscal year for. If not provided, the default company will be used.\").optional(),\n}).describe(\"Request model for getting fiscal year information for a given date.\");\nconst ErpnextGetFiscalYear_FiscalYearInfoSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Fiscal year name (e.g., '2026', 'FY 2023-24')\"),\n year_end_date: z.string().describe(\"End date of the fiscal year in YYYY-MM-DD format\"),\n year_start_date: z.string().describe(\"Start date of the fiscal year in YYYY-MM-DD format\"),\n}).describe(\"Fiscal year information.\");\nexport const ErpnextGetFiscalYearOutput: z.ZodTypeAny = z.object({\n message: z.union([ErpnextGetFiscalYear_FiscalYearInfoSchema, z.array(z.string())]),\n}).describe(\"Response model containing fiscal year information.\");\n\nexport const erpnextGetFiscalYear = action(\"ERPNEXT_GET_FISCAL_YEAR\", {\n slug: \"erpnext-get-fiscal-year\",\n name: \"Get Fiscal Year\",\n description: \"Tool to get fiscal year information for a given date in ERPNext. Use when you need to determine which fiscal year a specific date falls into or retrieve fiscal year boundaries.\",\n input: ErpnextGetFiscalYearInput,\n output: ErpnextGetFiscalYearOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0C,EAAE,OAAO;CAC9D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS;CAC1I,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS;AACnI,CAAC,CAAC,CAAC,SAAS,qEAAqE;AACjF,MAAM,4CAA0D,EAAE,OAAO;CACvE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CACzE,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD;CACrF,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;AAC3F,CAAC,CAAC,CAAC,SAAS,0BAA0B;AAKtC,MAAa,uBAAuB,OAAO,2BAA2B;CACpE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATsD,EAAE,OAAO,EAC/D,SAAS,EAAE,MAAM,CAAC,2CAA2C,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,EACnF,CAAC,CAAC,CAAC,SAAS,oDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"get-fiscal-year.mjs","names":[],"sources":["../../src/actions/get-fiscal-year.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetFiscalYearInput = z.object({\n date: z.string().describe(\"Date to check for fiscal year in YYYY-MM-DD format. If not provided, the current date will be used.\").optional(),\n company: z.string().describe(\"Company name to get fiscal year for. If not provided, the default company will be used.\").optional(),\n}).describe(\"Request model for getting fiscal year information for a given date.\");\nconst ErpnextGetFiscalYear_FiscalYearInfoSchema = z.object({\n name: z.string().describe(\"Fiscal year name (e.g., '2026', 'FY 2023-24')\").nullable(),\n year_end_date: z.string().describe(\"End date of the fiscal year in YYYY-MM-DD format\").nullable(),\n year_start_date: z.string().describe(\"Start date of the fiscal year in YYYY-MM-DD format\").nullable(),\n}).describe(\"Fiscal year information.\");\nexport const ErpnextGetFiscalYearOutput = z.object({\n message: z.union([ErpnextGetFiscalYear_FiscalYearInfoSchema, z.array(z.string())]),\n}).describe(\"Response model containing fiscal year information.\");\n\nexport const erpnextGetFiscalYear = action(\"ERPNEXT_GET_FISCAL_YEAR\", {\n slug: \"erpnext-get-fiscal-year\",\n name: \"Get Fiscal Year\",\n description: \"Tool to get fiscal year information for a given date in ERPNext. Use when you need to determine which fiscal year a specific date falls into or retrieve fiscal year boundaries.\",\n input: ErpnextGetFiscalYearInput,\n output: ErpnextGetFiscalYearOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4B,EAAE,OAAO;CAChD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS;CAC1I,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS;AACnI,CAAC,CAAC,CAAC,SAAS,qEAAqE;AACjF,MAAM,4CAA4C,EAAE,OAAO;CACzD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACpF,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CAChG,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,SAAS,0BAA0B;AAKtC,MAAa,uBAAuB,OAAO,2BAA2B;CACpE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATwC,EAAE,OAAO,EACjD,SAAS,EAAE,MAAM,CAAC,2CAA2C,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,EACnF,CAAC,CAAC,CAAC,SAAS,oDAOF;AACV,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"get-framework-version.cjs","names":["z","action"],"sources":["../../src/actions/get-framework-version.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetFrameworkVersionInput: z.ZodTypeAny = z.object({}).describe(\"Request model for getting Frappe framework version.\\nThis action requires no parameters.\");\nexport const ErpnextGetFrameworkVersionOutput: z.ZodTypeAny = z.object({\n message: z.object({}).describe(\"Dictionary mapping app names to their version information. Always includes 'frappe' and may include 'erpnext' and other installed apps.\"),\n}).describe(\"Response model containing version information for all installed apps.\");\n\nexport const erpnextGetFrameworkVersion = action(\"ERPNEXT_GET_FRAMEWORK_VERSION\", {\n slug: \"erpnext-get-framework-version\",\n name: \"Get Framework Version\",\n description: \"Tool to get the Frappe framework version and all installed app versions. Use when you need to check the ERPNext/Frappe system version for compatibility or debugging purposes.\",\n input: ErpnextGetFrameworkVersionInput,\n output: ErpnextGetFrameworkVersionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAgDA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,0FAA0F;AAC7K,MAAa,mCAAiDA,IAAAA,EAAE,OAAO,EACrE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,yIAAyI,EAC1K,CAAC,CAAC,CAAC,SAAS,uEAAuE;AAEnF,MAAa,6BAA6BC,eAAAA,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-framework-version.cjs","names":["z","action"],"sources":["../../src/actions/get-framework-version.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetFrameworkVersionInput = z.object({}).describe(\"Request model for getting Frappe framework version.\\nThis action requires no parameters.\");\nexport const ErpnextGetFrameworkVersionOutput = z.object({\n message: z.object({}).describe(\"Dictionary mapping app names to their version information. Always includes 'frappe' and may include 'erpnext' and other installed apps.\"),\n}).describe(\"Response model containing version information for all installed apps.\");\n\nexport const erpnextGetFrameworkVersion = action(\"ERPNEXT_GET_FRAMEWORK_VERSION\", {\n slug: \"erpnext-get-framework-version\",\n name: \"Get Framework Version\",\n description: \"Tool to get the Frappe framework version and all installed app versions. Use when you need to check the ERPNext/Frappe system version for compatibility or debugging purposes.\",\n input: ErpnextGetFrameworkVersionInput,\n output: ErpnextGetFrameworkVersionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,0FAA0F;AAC/J,MAAa,mCAAmCA,IAAAA,EAAE,OAAO,EACvD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,yIAAyI,EAC1K,CAAC,CAAC,CAAC,SAAS,uEAAuE;AAEnF,MAAa,6BAA6BC,eAAAA,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,13 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-framework-version.d.ts
4
- declare const ErpnextGetFrameworkVersionInput: z.ZodTypeAny;
5
- declare const ErpnextGetFrameworkVersionOutput: z.ZodTypeAny;
6
- declare const erpnextGetFrameworkVersion: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const ErpnextGetFrameworkVersionInput: z.ZodObject<{}, z.core.$strip>;
5
+ declare const ErpnextGetFrameworkVersionOutput: z.ZodObject<{
6
+ message: z.ZodObject<{}, z.core.$strip>;
7
+ }, z.core.$strip>;
8
+ declare const erpnextGetFrameworkVersion: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, {
9
+ message: Record<string, never>;
10
+ }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
11
  //#endregion
8
12
  export { erpnextGetFrameworkVersion };
9
13
  //# sourceMappingURL=get-framework-version.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-framework-version.d.cts","names":[],"sources":["../../src/actions/get-framework-version.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UAA8H;AAAA,cACjK,gCAAA,EAAkC,CAAA,CAAE,UAEmC;AAAA,cAEvE,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-framework-version.d.cts","names":[],"sources":["../../src/actions/get-framework-version.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAC/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;cAIhC,0BAAA,gCAA0B,wBAAA,CAAA,MAAA;WAAA,MAAA;AAAA"}
@@ -1,9 +1,13 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-framework-version.d.ts
4
- declare const ErpnextGetFrameworkVersionInput: z.ZodTypeAny;
5
- declare const ErpnextGetFrameworkVersionOutput: z.ZodTypeAny;
6
- declare const erpnextGetFrameworkVersion: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const ErpnextGetFrameworkVersionInput: z.ZodObject<{}, z.core.$strip>;
5
+ declare const ErpnextGetFrameworkVersionOutput: z.ZodObject<{
6
+ message: z.ZodObject<{}, z.core.$strip>;
7
+ }, z.core.$strip>;
8
+ declare const erpnextGetFrameworkVersion: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, {
9
+ message: Record<string, never>;
10
+ }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
11
  //#endregion
8
12
  export { erpnextGetFrameworkVersion };
9
13
  //# sourceMappingURL=get-framework-version.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-framework-version.d.mts","names":[],"sources":["../../src/actions/get-framework-version.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UAA8H;AAAA,cACjK,gCAAA,EAAkC,CAAA,CAAE,UAEmC;AAAA,cAEvE,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-framework-version.d.mts","names":[],"sources":["../../src/actions/get-framework-version.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAC/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;cAIhC,0BAAA,gCAA0B,wBAAA,CAAA,MAAA;WAAA,MAAA;AAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"get-framework-version.mjs","names":[],"sources":["../../src/actions/get-framework-version.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetFrameworkVersionInput: z.ZodTypeAny = z.object({}).describe(\"Request model for getting Frappe framework version.\\nThis action requires no parameters.\");\nexport const ErpnextGetFrameworkVersionOutput: z.ZodTypeAny = z.object({\n message: z.object({}).describe(\"Dictionary mapping app names to their version information. Always includes 'frappe' and may include 'erpnext' and other installed apps.\"),\n}).describe(\"Response model containing version information for all installed apps.\");\n\nexport const erpnextGetFrameworkVersion = action(\"ERPNEXT_GET_FRAMEWORK_VERSION\", {\n slug: \"erpnext-get-framework-version\",\n name: \"Get Framework Version\",\n description: \"Tool to get the Frappe framework version and all installed app versions. Use when you need to check the ERPNext/Frappe system version for compatibility or debugging purposes.\",\n input: ErpnextGetFrameworkVersionInput,\n output: ErpnextGetFrameworkVersionOutput,\n});\n"],"mappings":";;AASA,MAAa,6BAA6B,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAT2D,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,0FAS1E;CACP,QAT4D,EAAE,OAAO,EACrE,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,yIAAyI,EAC1K,CAAC,CAAC,CAAC,SAAS,uEAOF;AACV,CAAC"}
1
+ {"version":3,"file":"get-framework-version.mjs","names":[],"sources":["../../src/actions/get-framework-version.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetFrameworkVersionInput = z.object({}).describe(\"Request model for getting Frappe framework version.\\nThis action requires no parameters.\");\nexport const ErpnextGetFrameworkVersionOutput = z.object({\n message: z.object({}).describe(\"Dictionary mapping app names to their version information. Always includes 'frappe' and may include 'erpnext' and other installed apps.\"),\n}).describe(\"Response model containing version information for all installed apps.\");\n\nexport const erpnextGetFrameworkVersion = action(\"ERPNEXT_GET_FRAMEWORK_VERSION\", {\n slug: \"erpnext-get-framework-version\",\n name: \"Get Framework Version\",\n description: \"Tool to get the Frappe framework version and all installed app versions. Use when you need to check the ERPNext/Frappe system version for compatibility or debugging purposes.\",\n input: ErpnextGetFrameworkVersionInput,\n output: ErpnextGetFrameworkVersionOutput,\n});\n"],"mappings":";;AASA,MAAa,6BAA6B,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAT6C,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,0FAS5D;CACP,QAT8C,EAAE,OAAO,EACvD,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,yIAAyI,EAC1K,CAAC,CAAC,CAAC,SAAS,uEAOF;AACV,CAAC"}