@keystrokehq/erpnext 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (387) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/add-comment.cjs +11 -11
  4. package/dist/actions/add-comment.cjs.map +1 -1
  5. package/dist/actions/add-comment.d.cts +39 -3
  6. package/dist/actions/add-comment.d.cts.map +1 -1
  7. package/dist/actions/add-comment.d.mts +39 -3
  8. package/dist/actions/add-comment.d.mts.map +1 -1
  9. package/dist/actions/add-comment.mjs +11 -11
  10. package/dist/actions/add-comment.mjs.map +1 -1
  11. package/dist/actions/add-tag.cjs +1 -1
  12. package/dist/actions/add-tag.cjs.map +1 -1
  13. package/dist/actions/add-tag.d.cts +15 -3
  14. package/dist/actions/add-tag.d.cts.map +1 -1
  15. package/dist/actions/add-tag.d.mts +15 -3
  16. package/dist/actions/add-tag.d.mts.map +1 -1
  17. package/dist/actions/add-tag.mjs +1 -1
  18. package/dist/actions/add-tag.mjs.map +1 -1
  19. package/dist/actions/apply-workflow.cjs +4 -4
  20. package/dist/actions/apply-workflow.cjs.map +1 -1
  21. package/dist/actions/apply-workflow.d.cts +17 -3
  22. package/dist/actions/apply-workflow.d.cts.map +1 -1
  23. package/dist/actions/apply-workflow.d.mts +17 -3
  24. package/dist/actions/apply-workflow.d.mts.map +1 -1
  25. package/dist/actions/apply-workflow.mjs +4 -4
  26. package/dist/actions/apply-workflow.mjs.map +1 -1
  27. package/dist/actions/cancel-document.cjs +2 -2
  28. package/dist/actions/cancel-document.cjs.map +1 -1
  29. package/dist/actions/cancel-document.d.cts +15 -3
  30. package/dist/actions/cancel-document.d.cts.map +1 -1
  31. package/dist/actions/cancel-document.d.mts +15 -3
  32. package/dist/actions/cancel-document.d.mts.map +1 -1
  33. package/dist/actions/cancel-document.mjs +2 -2
  34. package/dist/actions/cancel-document.mjs.map +1 -1
  35. package/dist/actions/create-document.cjs +7 -7
  36. package/dist/actions/create-document.cjs.map +1 -1
  37. package/dist/actions/create-document.d.cts +30 -3
  38. package/dist/actions/create-document.d.cts.map +1 -1
  39. package/dist/actions/create-document.d.mts +30 -3
  40. package/dist/actions/create-document.d.mts.map +1 -1
  41. package/dist/actions/create-document.mjs +7 -7
  42. package/dist/actions/create-document.mjs.map +1 -1
  43. package/dist/actions/create-timesheet.cjs +7 -7
  44. package/dist/actions/create-timesheet.cjs.map +1 -1
  45. package/dist/actions/create-timesheet.d.cts +43 -3
  46. package/dist/actions/create-timesheet.d.cts.map +1 -1
  47. package/dist/actions/create-timesheet.d.mts +43 -3
  48. package/dist/actions/create-timesheet.d.mts.map +1 -1
  49. package/dist/actions/create-timesheet.mjs +7 -7
  50. package/dist/actions/create-timesheet.mjs.map +1 -1
  51. package/dist/actions/delete-document.cjs +1 -1
  52. package/dist/actions/delete-document.cjs.map +1 -1
  53. package/dist/actions/delete-document.d.cts +13 -3
  54. package/dist/actions/delete-document.d.cts.map +1 -1
  55. package/dist/actions/delete-document.d.mts +13 -3
  56. package/dist/actions/delete-document.d.mts.map +1 -1
  57. package/dist/actions/delete-document.mjs +1 -1
  58. package/dist/actions/delete-document.mjs.map +1 -1
  59. package/dist/actions/download-file.cjs +3 -3
  60. package/dist/actions/download-file.cjs.map +1 -1
  61. package/dist/actions/download-file.d.cts +19 -3
  62. package/dist/actions/download-file.d.cts.map +1 -1
  63. package/dist/actions/download-file.d.mts +19 -3
  64. package/dist/actions/download-file.d.mts.map +1 -1
  65. package/dist/actions/download-file.mjs +3 -3
  66. package/dist/actions/download-file.mjs.map +1 -1
  67. package/dist/actions/download-pdf.cjs +3 -3
  68. package/dist/actions/download-pdf.cjs.map +1 -1
  69. package/dist/actions/download-pdf.d.cts +25 -3
  70. package/dist/actions/download-pdf.d.cts.map +1 -1
  71. package/dist/actions/download-pdf.d.mts +25 -3
  72. package/dist/actions/download-pdf.d.mts.map +1 -1
  73. package/dist/actions/download-pdf.mjs +3 -3
  74. package/dist/actions/download-pdf.mjs.map +1 -1
  75. package/dist/actions/get-all-languages.cjs +2 -2
  76. package/dist/actions/get-all-languages.cjs.map +1 -1
  77. package/dist/actions/get-all-languages.d.cts +17 -3
  78. package/dist/actions/get-all-languages.d.cts.map +1 -1
  79. package/dist/actions/get-all-languages.d.mts +17 -3
  80. package/dist/actions/get-all-languages.d.mts.map +1 -1
  81. package/dist/actions/get-all-languages.mjs +2 -2
  82. package/dist/actions/get-all-languages.mjs.map +1 -1
  83. package/dist/actions/get-all-roles.cjs.map +1 -1
  84. package/dist/actions/get-all-roles.d.cts +7 -3
  85. package/dist/actions/get-all-roles.d.cts.map +1 -1
  86. package/dist/actions/get-all-roles.d.mts +7 -3
  87. package/dist/actions/get-all-roles.d.mts.map +1 -1
  88. package/dist/actions/get-all-roles.mjs.map +1 -1
  89. package/dist/actions/get-client.cjs +8 -8
  90. package/dist/actions/get-client.cjs.map +1 -1
  91. package/dist/actions/get-client.d.cts +34 -3
  92. package/dist/actions/get-client.d.cts.map +1 -1
  93. package/dist/actions/get-client.d.mts +34 -3
  94. package/dist/actions/get-client.d.mts.map +1 -1
  95. package/dist/actions/get-client.mjs +8 -8
  96. package/dist/actions/get-client.mjs.map +1 -1
  97. package/dist/actions/get-count.cjs +1 -1
  98. package/dist/actions/get-count.cjs.map +1 -1
  99. package/dist/actions/get-count.d.cts +13 -3
  100. package/dist/actions/get-count.d.cts.map +1 -1
  101. package/dist/actions/get-count.d.mts +13 -3
  102. package/dist/actions/get-count.d.mts.map +1 -1
  103. package/dist/actions/get-count.mjs +1 -1
  104. package/dist/actions/get-count.mjs.map +1 -1
  105. package/dist/actions/get-doc-with-meta.cjs +20 -20
  106. package/dist/actions/get-doc-with-meta.cjs.map +1 -1
  107. package/dist/actions/get-doc-with-meta.d.cts +53 -3
  108. package/dist/actions/get-doc-with-meta.d.cts.map +1 -1
  109. package/dist/actions/get-doc-with-meta.d.mts +53 -3
  110. package/dist/actions/get-doc-with-meta.d.mts.map +1 -1
  111. package/dist/actions/get-doc-with-meta.mjs +20 -20
  112. package/dist/actions/get-doc-with-meta.mjs.map +1 -1
  113. package/dist/actions/get-doctype-meta.cjs +3 -3
  114. package/dist/actions/get-doctype-meta.cjs.map +1 -1
  115. package/dist/actions/get-doctype-meta.d.cts +17 -3
  116. package/dist/actions/get-doctype-meta.d.cts.map +1 -1
  117. package/dist/actions/get-doctype-meta.d.mts +17 -3
  118. package/dist/actions/get-doctype-meta.d.mts.map +1 -1
  119. package/dist/actions/get-doctype-meta.mjs +3 -3
  120. package/dist/actions/get-doctype-meta.mjs.map +1 -1
  121. package/dist/actions/get-document.cjs +7 -7
  122. package/dist/actions/get-document.cjs.map +1 -1
  123. package/dist/actions/get-document.d.cts +34 -3
  124. package/dist/actions/get-document.d.cts.map +1 -1
  125. package/dist/actions/get-document.d.mts +34 -3
  126. package/dist/actions/get-document.d.mts.map +1 -1
  127. package/dist/actions/get-document.mjs +7 -7
  128. package/dist/actions/get-document.mjs.map +1 -1
  129. package/dist/actions/get-exchange-rate.cjs +1 -1
  130. package/dist/actions/get-exchange-rate.cjs.map +1 -1
  131. package/dist/actions/get-exchange-rate.d.cts +15 -3
  132. package/dist/actions/get-exchange-rate.d.cts.map +1 -1
  133. package/dist/actions/get-exchange-rate.d.mts +15 -3
  134. package/dist/actions/get-exchange-rate.d.mts.map +1 -1
  135. package/dist/actions/get-exchange-rate.mjs +1 -1
  136. package/dist/actions/get-exchange-rate.mjs.map +1 -1
  137. package/dist/actions/get-fiscal-year.cjs +3 -3
  138. package/dist/actions/get-fiscal-year.cjs.map +1 -1
  139. package/dist/actions/get-fiscal-year.d.cts +21 -3
  140. package/dist/actions/get-fiscal-year.d.cts.map +1 -1
  141. package/dist/actions/get-fiscal-year.d.mts +21 -3
  142. package/dist/actions/get-fiscal-year.d.mts.map +1 -1
  143. package/dist/actions/get-fiscal-year.mjs +3 -3
  144. package/dist/actions/get-fiscal-year.mjs.map +1 -1
  145. package/dist/actions/get-framework-version.cjs.map +1 -1
  146. package/dist/actions/get-framework-version.d.cts +7 -3
  147. package/dist/actions/get-framework-version.d.cts.map +1 -1
  148. package/dist/actions/get-framework-version.d.mts +7 -3
  149. package/dist/actions/get-framework-version.d.mts.map +1 -1
  150. package/dist/actions/get-framework-version.mjs.map +1 -1
  151. package/dist/actions/get-item-details.cjs +27 -27
  152. package/dist/actions/get-item-details.cjs.map +1 -1
  153. package/dist/actions/get-item-details.d.cts +90 -3
  154. package/dist/actions/get-item-details.d.cts.map +1 -1
  155. package/dist/actions/get-item-details.d.mts +90 -3
  156. package/dist/actions/get-item-details.d.mts.map +1 -1
  157. package/dist/actions/get-item-details.mjs +27 -27
  158. package/dist/actions/get-item-details.mjs.map +1 -1
  159. package/dist/actions/get-list.cjs.map +1 -1
  160. package/dist/actions/get-list.d.cts +21 -3
  161. package/dist/actions/get-list.d.cts.map +1 -1
  162. package/dist/actions/get-list.d.mts +21 -3
  163. package/dist/actions/get-list.d.mts.map +1 -1
  164. package/dist/actions/get-list.mjs.map +1 -1
  165. package/dist/actions/get-logged-user.cjs +1 -1
  166. package/dist/actions/get-logged-user.cjs.map +1 -1
  167. package/dist/actions/get-logged-user.d.cts +7 -3
  168. package/dist/actions/get-logged-user.d.cts.map +1 -1
  169. package/dist/actions/get-logged-user.d.mts +7 -3
  170. package/dist/actions/get-logged-user.d.mts.map +1 -1
  171. package/dist/actions/get-logged-user.mjs +1 -1
  172. package/dist/actions/get-logged-user.mjs.map +1 -1
  173. package/dist/actions/get-party-details.cjs +36 -36
  174. package/dist/actions/get-party-details.cjs.map +1 -1
  175. package/dist/actions/get-party-details.d.cts +90 -3
  176. package/dist/actions/get-party-details.d.cts.map +1 -1
  177. package/dist/actions/get-party-details.d.mts +90 -3
  178. package/dist/actions/get-party-details.d.mts.map +1 -1
  179. package/dist/actions/get-party-details.mjs +36 -36
  180. package/dist/actions/get-party-details.mjs.map +1 -1
  181. package/dist/actions/get-payment-entry.cjs +26 -26
  182. package/dist/actions/get-payment-entry.cjs.map +1 -1
  183. package/dist/actions/get-payment-entry.d.cts +71 -3
  184. package/dist/actions/get-payment-entry.d.cts.map +1 -1
  185. package/dist/actions/get-payment-entry.d.mts +71 -3
  186. package/dist/actions/get-payment-entry.d.mts.map +1 -1
  187. package/dist/actions/get-payment-entry.mjs +26 -26
  188. package/dist/actions/get-payment-entry.mjs.map +1 -1
  189. package/dist/actions/get-stock-balance.cjs +1 -1
  190. package/dist/actions/get-stock-balance.cjs.map +1 -1
  191. package/dist/actions/get-stock-balance.d.cts +15 -3
  192. package/dist/actions/get-stock-balance.d.cts.map +1 -1
  193. package/dist/actions/get-stock-balance.d.mts +15 -3
  194. package/dist/actions/get-stock-balance.d.mts.map +1 -1
  195. package/dist/actions/get-stock-balance.mjs +1 -1
  196. package/dist/actions/get-stock-balance.mjs.map +1 -1
  197. package/dist/actions/get-timezones.cjs.map +1 -1
  198. package/dist/actions/get-timezones.d.cts +11 -3
  199. package/dist/actions/get-timezones.d.cts.map +1 -1
  200. package/dist/actions/get-timezones.d.mts +11 -3
  201. package/dist/actions/get-timezones.d.mts.map +1 -1
  202. package/dist/actions/get-timezones.mjs.map +1 -1
  203. package/dist/actions/get-user-roles.cjs.map +1 -1
  204. package/dist/actions/get-user-roles.d.cts +11 -3
  205. package/dist/actions/get-user-roles.d.cts.map +1 -1
  206. package/dist/actions/get-user-roles.d.mts +11 -3
  207. package/dist/actions/get-user-roles.d.mts.map +1 -1
  208. package/dist/actions/get-user-roles.mjs.map +1 -1
  209. package/dist/actions/get-value.cjs.map +1 -1
  210. package/dist/actions/get-value.d.cts +17 -3
  211. package/dist/actions/get-value.d.cts.map +1 -1
  212. package/dist/actions/get-value.d.mts +17 -3
  213. package/dist/actions/get-value.d.mts.map +1 -1
  214. package/dist/actions/get-value.mjs.map +1 -1
  215. package/dist/actions/get-workflow-transitions.cjs +7 -7
  216. package/dist/actions/get-workflow-transitions.cjs.map +1 -1
  217. package/dist/actions/get-workflow-transitions.d.cts +27 -3
  218. package/dist/actions/get-workflow-transitions.d.cts.map +1 -1
  219. package/dist/actions/get-workflow-transitions.d.mts +27 -3
  220. package/dist/actions/get-workflow-transitions.d.mts.map +1 -1
  221. package/dist/actions/get-workflow-transitions.mjs +7 -7
  222. package/dist/actions/get-workflow-transitions.mjs.map +1 -1
  223. package/dist/actions/insert-document.cjs.map +1 -1
  224. package/dist/actions/insert-document.d.cts +11 -3
  225. package/dist/actions/insert-document.d.cts.map +1 -1
  226. package/dist/actions/insert-document.d.mts +11 -3
  227. package/dist/actions/insert-document.d.mts.map +1 -1
  228. package/dist/actions/insert-document.mjs.map +1 -1
  229. package/dist/actions/insert-many.cjs +4 -4
  230. package/dist/actions/insert-many.cjs.map +1 -1
  231. package/dist/actions/insert-many.d.cts +18 -3
  232. package/dist/actions/insert-many.d.cts.map +1 -1
  233. package/dist/actions/insert-many.d.mts +18 -3
  234. package/dist/actions/insert-many.d.mts.map +1 -1
  235. package/dist/actions/insert-many.mjs +4 -4
  236. package/dist/actions/insert-many.mjs.map +1 -1
  237. package/dist/actions/list-doctypes.cjs +1 -1
  238. package/dist/actions/list-doctypes.cjs.map +1 -1
  239. package/dist/actions/list-doctypes.d.cts +17 -3
  240. package/dist/actions/list-doctypes.d.cts.map +1 -1
  241. package/dist/actions/list-doctypes.d.mts +17 -3
  242. package/dist/actions/list-doctypes.d.mts.map +1 -1
  243. package/dist/actions/list-doctypes.mjs +1 -1
  244. package/dist/actions/list-doctypes.mjs.map +1 -1
  245. package/dist/actions/list-documents.cjs.map +1 -1
  246. package/dist/actions/list-documents.d.cts +19 -3
  247. package/dist/actions/list-documents.d.cts.map +1 -1
  248. package/dist/actions/list-documents.d.mts +19 -3
  249. package/dist/actions/list-documents.d.mts.map +1 -1
  250. package/dist/actions/list-documents.mjs.map +1 -1
  251. package/dist/actions/list-employees.cjs +1 -1
  252. package/dist/actions/list-employees.cjs.map +1 -1
  253. package/dist/actions/list-employees.d.cts +22 -3
  254. package/dist/actions/list-employees.d.cts.map +1 -1
  255. package/dist/actions/list-employees.d.mts +22 -3
  256. package/dist/actions/list-employees.d.mts.map +1 -1
  257. package/dist/actions/list-employees.mjs +1 -1
  258. package/dist/actions/list-employees.mjs.map +1 -1
  259. package/dist/actions/list-projects.cjs.map +1 -1
  260. package/dist/actions/list-projects.d.cts +17 -3
  261. package/dist/actions/list-projects.d.cts.map +1 -1
  262. package/dist/actions/list-projects.d.mts +17 -3
  263. package/dist/actions/list-projects.d.mts.map +1 -1
  264. package/dist/actions/list-projects.mjs.map +1 -1
  265. package/dist/actions/list-timesheets.cjs.map +1 -1
  266. package/dist/actions/list-timesheets.d.cts +17 -3
  267. package/dist/actions/list-timesheets.d.cts.map +1 -1
  268. package/dist/actions/list-timesheets.d.mts +17 -3
  269. package/dist/actions/list-timesheets.d.mts.map +1 -1
  270. package/dist/actions/list-timesheets.mjs.map +1 -1
  271. package/dist/actions/list-webhooks.cjs +5 -5
  272. package/dist/actions/list-webhooks.cjs.map +1 -1
  273. package/dist/actions/list-webhooks.d.cts +30 -3
  274. package/dist/actions/list-webhooks.d.cts.map +1 -1
  275. package/dist/actions/list-webhooks.d.mts +30 -3
  276. package/dist/actions/list-webhooks.d.mts.map +1 -1
  277. package/dist/actions/list-webhooks.mjs +5 -5
  278. package/dist/actions/list-webhooks.mjs.map +1 -1
  279. package/dist/actions/make-delivery-note.cjs +11 -11
  280. package/dist/actions/make-delivery-note.cjs.map +1 -1
  281. package/dist/actions/make-delivery-note.d.cts +36 -3
  282. package/dist/actions/make-delivery-note.d.cts.map +1 -1
  283. package/dist/actions/make-delivery-note.d.mts +36 -3
  284. package/dist/actions/make-delivery-note.d.mts.map +1 -1
  285. package/dist/actions/make-delivery-note.mjs +11 -11
  286. package/dist/actions/make-delivery-note.mjs.map +1 -1
  287. package/dist/actions/make-purchase-order.cjs +22 -22
  288. package/dist/actions/make-purchase-order.cjs.map +1 -1
  289. package/dist/actions/make-purchase-order.d.cts +61 -3
  290. package/dist/actions/make-purchase-order.d.cts.map +1 -1
  291. package/dist/actions/make-purchase-order.d.mts +61 -3
  292. package/dist/actions/make-purchase-order.d.mts.map +1 -1
  293. package/dist/actions/make-purchase-order.mjs +22 -22
  294. package/dist/actions/make-purchase-order.mjs.map +1 -1
  295. package/dist/actions/make-sales-invoice.cjs +13 -13
  296. package/dist/actions/make-sales-invoice.cjs.map +1 -1
  297. package/dist/actions/make-sales-invoice.d.cts +40 -3
  298. package/dist/actions/make-sales-invoice.d.cts.map +1 -1
  299. package/dist/actions/make-sales-invoice.d.mts +40 -3
  300. package/dist/actions/make-sales-invoice.d.mts.map +1 -1
  301. package/dist/actions/make-sales-invoice.mjs +13 -13
  302. package/dist/actions/make-sales-invoice.mjs.map +1 -1
  303. package/dist/actions/make-stock-entry.cjs +9 -9
  304. package/dist/actions/make-stock-entry.cjs.map +1 -1
  305. package/dist/actions/make-stock-entry.d.cts +50 -3
  306. package/dist/actions/make-stock-entry.d.cts.map +1 -1
  307. package/dist/actions/make-stock-entry.d.mts +50 -3
  308. package/dist/actions/make-stock-entry.d.mts.map +1 -1
  309. package/dist/actions/make-stock-entry.mjs +9 -9
  310. package/dist/actions/make-stock-entry.mjs.map +1 -1
  311. package/dist/actions/ping.cjs +1 -1
  312. package/dist/actions/ping.cjs.map +1 -1
  313. package/dist/actions/ping.d.cts +7 -3
  314. package/dist/actions/ping.d.cts.map +1 -1
  315. package/dist/actions/ping.d.mts +7 -3
  316. package/dist/actions/ping.d.mts.map +1 -1
  317. package/dist/actions/ping.mjs +1 -1
  318. package/dist/actions/ping.mjs.map +1 -1
  319. package/dist/actions/rename-doc.cjs.map +1 -1
  320. package/dist/actions/rename-doc.d.cts +17 -3
  321. package/dist/actions/rename-doc.d.cts.map +1 -1
  322. package/dist/actions/rename-doc.d.mts +17 -3
  323. package/dist/actions/rename-doc.d.mts.map +1 -1
  324. package/dist/actions/rename-doc.mjs.map +1 -1
  325. package/dist/actions/save-docs.cjs +5 -5
  326. package/dist/actions/save-docs.cjs.map +1 -1
  327. package/dist/actions/save-docs.d.cts +26 -3
  328. package/dist/actions/save-docs.d.cts.map +1 -1
  329. package/dist/actions/save-docs.d.mts +26 -3
  330. package/dist/actions/save-docs.d.mts.map +1 -1
  331. package/dist/actions/save-docs.mjs +5 -5
  332. package/dist/actions/save-docs.mjs.map +1 -1
  333. package/dist/actions/save-document.cjs +2 -2
  334. package/dist/actions/save-document.cjs.map +1 -1
  335. package/dist/actions/save-document.d.cts +37 -3
  336. package/dist/actions/save-document.d.cts.map +1 -1
  337. package/dist/actions/save-document.d.mts +37 -3
  338. package/dist/actions/save-document.d.mts.map +1 -1
  339. package/dist/actions/save-document.mjs +2 -2
  340. package/dist/actions/save-document.mjs.map +1 -1
  341. package/dist/actions/search-global.cjs +7 -7
  342. package/dist/actions/search-global.cjs.map +1 -1
  343. package/dist/actions/search-global.d.cts +31 -3
  344. package/dist/actions/search-global.d.cts.map +1 -1
  345. package/dist/actions/search-global.d.mts +31 -3
  346. package/dist/actions/search-global.d.mts.map +1 -1
  347. package/dist/actions/search-global.mjs +7 -7
  348. package/dist/actions/search-global.mjs.map +1 -1
  349. package/dist/actions/search-link.cjs +3 -3
  350. package/dist/actions/search-link.cjs.map +1 -1
  351. package/dist/actions/search-link.d.cts +35 -3
  352. package/dist/actions/search-link.d.cts.map +1 -1
  353. package/dist/actions/search-link.d.mts +35 -3
  354. package/dist/actions/search-link.d.mts.map +1 -1
  355. package/dist/actions/search-link.mjs +3 -3
  356. package/dist/actions/search-link.mjs.map +1 -1
  357. package/dist/actions/set-value.cjs +8 -8
  358. package/dist/actions/set-value.cjs.map +1 -1
  359. package/dist/actions/set-value.d.cts +49 -3
  360. package/dist/actions/set-value.d.cts.map +1 -1
  361. package/dist/actions/set-value.d.mts +49 -3
  362. package/dist/actions/set-value.d.mts.map +1 -1
  363. package/dist/actions/set-value.mjs +8 -8
  364. package/dist/actions/set-value.mjs.map +1 -1
  365. package/dist/actions/submit-document.cjs +8 -8
  366. package/dist/actions/submit-document.cjs.map +1 -1
  367. package/dist/actions/submit-document.d.cts +29 -3
  368. package/dist/actions/submit-document.d.cts.map +1 -1
  369. package/dist/actions/submit-document.d.mts +29 -3
  370. package/dist/actions/submit-document.d.mts.map +1 -1
  371. package/dist/actions/submit-document.mjs +8 -8
  372. package/dist/actions/submit-document.mjs.map +1 -1
  373. package/dist/actions/update-document.cjs +8 -8
  374. package/dist/actions/update-document.cjs.map +1 -1
  375. package/dist/actions/update-document.d.cts +31 -3
  376. package/dist/actions/update-document.d.cts.map +1 -1
  377. package/dist/actions/update-document.d.mts +31 -3
  378. package/dist/actions/update-document.d.mts.map +1 -1
  379. package/dist/actions/update-document.mjs +8 -8
  380. package/dist/actions/update-document.mjs.map +1 -1
  381. package/dist/catalog.cjs +18 -1
  382. package/dist/catalog.cjs.map +1 -1
  383. package/dist/catalog.d.cts +17 -0
  384. package/dist/catalog.d.mts +17 -0
  385. package/dist/catalog.mjs +18 -1
  386. package/dist/catalog.mjs.map +1 -1
  387. package/package.json +2 -2
@@ -1,9 +1,23 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-doctypes.d.ts
4
- declare const ErpnextListDoctypesInput: z.ZodTypeAny;
5
- declare const ErpnextListDoctypesOutput: z.ZodTypeAny;
6
- declare const erpnextListDoctypes: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const ErpnextListDoctypesInput: z.ZodObject<{
5
+ fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
6
+ filters: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNumber, z.ZodBoolean]>>>>;
7
+ limit_start: z.ZodOptional<z.ZodNumber>;
8
+ limit_page_length: z.ZodOptional<z.ZodNumber>;
9
+ }, z.core.$strip>;
10
+ declare const ErpnextListDoctypesOutput: z.ZodObject<{
11
+ data: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodObject<{}, z.core.$strip>>>>;
12
+ }, z.core.$strip>;
13
+ declare const erpnextListDoctypes: import("@keystrokehq/action").WorkflowActionDefinition<{
14
+ fields?: string[] | undefined;
15
+ filters?: (string | number | boolean)[][] | undefined;
16
+ limit_start?: number | undefined;
17
+ limit_page_length?: number | undefined;
18
+ }, {
19
+ data?: Record<string, never>[] | undefined;
20
+ }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
21
  //#endregion
8
22
  export { erpnextListDoctypes };
9
23
  //# sourceMappingURL=list-doctypes.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-doctypes.d.mts","names":[],"sources":["../../src/actions/list-doctypes.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAKoB;AAAA,cAChD,yBAAA,EAA2B,CAAA,CAAE,UAEoB;AAAA,cAEjD,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-doctypes.d.mts","names":[],"sources":["../../src/actions/list-doctypes.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;cAMxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;cAIzB,mBAAA,gCAAmB,wBAAA;;;;;;SAM9B,MAAA;AAAA"}
@@ -15,7 +15,7 @@ const erpnextListDoctypes = action("ERPNEXT_LIST_DOCTYPES", {
15
15
  limit_start: z.number().int().describe("Starting offset for pagination. To request successive pages, pass a multiple of your limit_page_length. For example, to request the second page, pass limit_start as 20 (if limit_page_length is 20).").optional(),
16
16
  limit_page_length: z.number().int().describe("Number of items to return per page. By default, listings are paginated with 20 items per page.").optional()
17
17
  }).describe("Request model for listing DocTypes in ERPNext."),
18
- output: z.object({ data: z.array(z.object({})).describe("List of DocType objects. Each object contains the requested fields (at minimum, the 'name' field).").nullable().optional() }).describe("Response model for listing DocTypes in ERPNext.")
18
+ output: z.object({ data: z.preprocess((value) => value === null ? void 0 : value, z.array(z.object({})).describe("List of DocType objects. Each object contains the requested fields (at minimum, the 'name' field).").optional()) }).describe("Response model for listing DocTypes in ERPNext.")
19
19
  });
20
20
  //#endregion
21
21
  export { erpnextListDoctypes };
@@ -1 +1 @@
1
- {"version":3,"file":"list-doctypes.mjs","names":[],"sources":["../../src/actions/list-doctypes.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextListDoctypesInput: z.ZodTypeAny = z.object({\n fields: z.array(z.string()).describe(\"Fields to include in the listing. By default, only the \\\"name\\\" field is included. Pass a list of field names to include additional fields, for example [\\\"name\\\", \\\"module\\\"].\").optional(),\n filters: z.array(z.array(z.union([z.string(), z.number().int(), z.number(), z.boolean()]))).describe(\"SQL conditions to filter the listing. Each condition is an array of the format [doctype, field, operator, value]. For example, [[\\\"DocType\\\", \\\"module\\\", \\\"=\\\", \\\"Core\\\"]] to filter DocTypes by module.\").optional(),\n limit_start: z.number().int().describe(\"Starting offset for pagination. To request successive pages, pass a multiple of your limit_page_length. For example, to request the second page, pass limit_start as 20 (if limit_page_length is 20).\").optional(),\n limit_page_length: z.number().int().describe(\"Number of items to return per page. By default, listings are paginated with 20 items per page.\").optional(),\n}).describe(\"Request model for listing DocTypes in ERPNext.\");\nexport const ErpnextListDoctypesOutput: z.ZodTypeAny = z.object({\n data: z.array(z.object({})).describe(\"List of DocType objects. Each object contains the requested fields (at minimum, the 'name' field).\").nullable().optional(),\n}).describe(\"Response model for listing DocTypes in ERPNext.\");\n\nexport const erpnextListDoctypes = action(\"ERPNEXT_LIST_DOCTYPES\", {\n slug: \"erpnext-list-doctypes\",\n name: \"List DocTypes\",\n description: \"Tool to get a list of all DocTypes available in the ERPNext system. Use when you need to retrieve available DocTypes with optional filtering and pagination.\",\n input: ErpnextListDoctypesInput,\n output: ErpnextListDoctypesOutput,\n});\n"],"mappings":";;AAcA,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAdoD,EAAE,OAAO;EAC7D,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,iLAAiL,CAAC,CAAC,SAAS;EACjO,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;GAAC,EAAE,OAAO;GAAG,EAAE,OAAO,CAAC,CAAC,IAAI;GAAG,EAAE,OAAO;GAAG,EAAE,QAAQ;EAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,2MAA2M,CAAC,CAAC,SAAS;EAC3T,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uMAAuM,CAAC,CAAC,SAAS;EACzP,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS;CAC1J,CAAC,CAAC,CAAC,SAAS,gDASH;CACP,QATqD,EAAE,OAAO,EAC9D,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACjK,CAAC,CAAC,CAAC,SAAS,iDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"list-doctypes.mjs","names":[],"sources":["../../src/actions/list-doctypes.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextListDoctypesInput = z.object({\n fields: z.array(z.string()).describe(\"Fields to include in the listing. By default, only the \\\"name\\\" field is included. Pass a list of field names to include additional fields, for example [\\\"name\\\", \\\"module\\\"].\").optional(),\n filters: z.array(z.array(z.union([z.string(), z.number().int(), z.number(), z.boolean()]))).describe(\"SQL conditions to filter the listing. Each condition is an array of the format [doctype, field, operator, value]. For example, [[\\\"DocType\\\", \\\"module\\\", \\\"=\\\", \\\"Core\\\"]] to filter DocTypes by module.\").optional(),\n limit_start: z.number().int().describe(\"Starting offset for pagination. To request successive pages, pass a multiple of your limit_page_length. For example, to request the second page, pass limit_start as 20 (if limit_page_length is 20).\").optional(),\n limit_page_length: z.number().int().describe(\"Number of items to return per page. By default, listings are paginated with 20 items per page.\").optional(),\n}).describe(\"Request model for listing DocTypes in ERPNext.\");\nexport const ErpnextListDoctypesOutput = z.object({\n data: z.preprocess((value) => (value === null ? undefined : value), z.array(z.object({})).describe(\"List of DocType objects. Each object contains the requested fields (at minimum, the 'name' field).\").optional()),\n}).describe(\"Response model for listing DocTypes in ERPNext.\");\n\nexport const erpnextListDoctypes = action(\"ERPNEXT_LIST_DOCTYPES\", {\n slug: \"erpnext-list-doctypes\",\n name: \"List DocTypes\",\n description: \"Tool to get a list of all DocTypes available in the ERPNext system. Use when you need to retrieve available DocTypes with optional filtering and pagination.\",\n input: ErpnextListDoctypesInput,\n output: ErpnextListDoctypesOutput,\n});\n"],"mappings":";;AAcA,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAdsC,EAAE,OAAO;EAC/C,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,iLAAiL,CAAC,CAAC,SAAS;EACjO,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;GAAC,EAAE,OAAO;GAAG,EAAE,OAAO,CAAC,CAAC,IAAI;GAAG,EAAE,OAAO;GAAG,EAAE,QAAQ;EAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,2MAA2M,CAAC,CAAC,SAAS;EAC3T,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uMAAuM,CAAC,CAAC,SAAS;EACzP,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS;CAC1J,CAAC,CAAC,CAAC,SAAS,gDASH;CACP,QATuC,EAAE,OAAO,EAChD,MAAM,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS,CAAC,EACrN,CAAC,CAAC,CAAC,SAAS,iDAOF;AACV,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"list-documents.cjs","names":["z","action"],"sources":["../../src/actions/list-documents.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextListDocumentsInput: z.ZodTypeAny = z.object({\n fields: z.array(z.string()).describe(\"Fields to include in the response. By default, only the 'name' field is included. Pass a list of field names to retrieve additional fields. 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()]))).describe(\"SQL conditions to filter the listing. Each condition is an array of the format: [doctype, field, operator, value]. For example: [['Customer', 'country', '=', 'India']]\").optional(),\n limit_start: z.number().int().default(0).describe(\"Offset for pagination. Pass a multiple of limit_page_length to request successive pages. For example, to request the second page with page length 20, pass 20.\").optional(),\n limit_page_length: z.number().int().default(20).describe(\"Number of items to return per page. Default is 20.\").optional(),\n}).describe(\"Request model for listing documents of a specific DocType.\");\nexport const ErpnextListDocumentsOutput: z.ZodTypeAny = z.object({\n data: z.array(z.object({})).describe(\"List of documents. Each document contains at least the 'name' field, plus any additional fields requested via the 'fields' parameter.\"),\n}).describe(\"Response model for listing documents.\");\n\nexport const erpnextListDocuments = action(\"ERPNEXT_LIST_DOCUMENTS\", {\n slug: \"erpnext-list-documents\",\n name: \"List ERPNext Documents\",\n description: \"Tool to list documents of a specific DocType from ERPNext. Returns paginated results (default 20 items). Use when you need to retrieve multiple documents, with support for filtering, field selection, and pagination.\",\n input: ErpnextListDocumentsInput,\n output: ErpnextListDocumentsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0CA,IAAAA,EAAE,OAAO;CAC9D,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8KAA8K,CAAC,CAAC,SAAS;CAC9N,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0JAA0J;CACvL,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;CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,yKAAyK,CAAC,CAAC,SAAS;CAC5Q,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,gKAAgK,CAAC,CAAC,SAAS;CAC7N,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;AAC1H,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAa,6BAA2CA,IAAAA,EAAE,OAAO,EAC/D,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,uIAAuI,EAC9K,CAAC,CAAC,CAAC,SAAS,uCAAuC;AAEnD,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-documents.cjs","names":["z","action"],"sources":["../../src/actions/list-documents.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextListDocumentsInput = z.object({\n fields: z.array(z.string()).describe(\"Fields to include in the response. By default, only the 'name' field is included. Pass a list of field names to retrieve additional fields. 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()]))).describe(\"SQL conditions to filter the listing. Each condition is an array of the format: [doctype, field, operator, value]. For example: [['Customer', 'country', '=', 'India']]\").optional(),\n limit_start: z.number().int().default(0).describe(\"Offset for pagination. Pass a multiple of limit_page_length to request successive pages. For example, to request the second page with page length 20, pass 20.\").optional(),\n limit_page_length: z.number().int().default(20).describe(\"Number of items to return per page. Default is 20.\").optional(),\n}).describe(\"Request model for listing documents of a specific DocType.\");\nexport const ErpnextListDocumentsOutput = z.object({\n data: z.array(z.object({})).describe(\"List of documents. Each document contains at least the 'name' field, plus any additional fields requested via the 'fields' parameter.\"),\n}).describe(\"Response model for listing documents.\");\n\nexport const erpnextListDocuments = action(\"ERPNEXT_LIST_DOCUMENTS\", {\n slug: \"erpnext-list-documents\",\n name: \"List ERPNext Documents\",\n description: \"Tool to list documents of a specific DocType from ERPNext. Returns paginated results (default 20 items). Use when you need to retrieve multiple documents, with support for filtering, field selection, and pagination.\",\n input: ErpnextListDocumentsInput,\n output: ErpnextListDocumentsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8KAA8K,CAAC,CAAC,SAAS;CAC9N,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0JAA0J;CACvL,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;CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,yKAAyK,CAAC,CAAC,SAAS;CAC5Q,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,gKAAgK,CAAC,CAAC,SAAS;CAC7N,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;AAC1H,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,uIAAuI,EAC9K,CAAC,CAAC,CAAC,SAAS,uCAAuC;AAEnD,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,25 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-documents.d.ts
4
- declare const ErpnextListDocumentsInput: z.ZodTypeAny;
5
- declare const ErpnextListDocumentsOutput: z.ZodTypeAny;
6
- declare const erpnextListDocuments: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const ErpnextListDocumentsInput: z.ZodObject<{
5
+ fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
6
+ doctype: z.ZodString;
7
+ filters: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNumber]>>>>;
8
+ limit_start: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
9
+ limit_page_length: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
10
+ }, z.core.$strip>;
11
+ declare const ErpnextListDocumentsOutput: z.ZodObject<{
12
+ data: z.ZodArray<z.ZodObject<{}, z.core.$strip>>;
13
+ }, z.core.$strip>;
14
+ declare const erpnextListDocuments: import("@keystrokehq/action").WorkflowActionDefinition<{
15
+ doctype: string;
16
+ fields?: string[] | undefined;
17
+ filters?: (string | number)[][] | undefined;
18
+ limit_start?: number | undefined;
19
+ limit_page_length?: number | undefined;
20
+ }, {
21
+ data: Record<string, never>[];
22
+ }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
23
  //#endregion
8
24
  export { erpnextListDocuments };
9
25
  //# sourceMappingURL=list-documents.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-documents.d.cts","names":[],"sources":["../../src/actions/list-documents.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAM+B;AAAA,cAC5D,0BAAA,EAA4B,CAAA,CAAE,UAES;AAAA,cAEvC,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-documents.d.cts","names":[],"sources":["../../src/actions/list-documents.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;cAOzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cAI1B,oBAAA,gCAAoB,wBAAA;;;;;;;QAM/B,MAAA;AAAA"}
@@ -1,9 +1,25 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-documents.d.ts
4
- declare const ErpnextListDocumentsInput: z.ZodTypeAny;
5
- declare const ErpnextListDocumentsOutput: z.ZodTypeAny;
6
- declare const erpnextListDocuments: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const ErpnextListDocumentsInput: z.ZodObject<{
5
+ fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
6
+ doctype: z.ZodString;
7
+ filters: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNumber]>>>>;
8
+ limit_start: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
9
+ limit_page_length: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
10
+ }, z.core.$strip>;
11
+ declare const ErpnextListDocumentsOutput: z.ZodObject<{
12
+ data: z.ZodArray<z.ZodObject<{}, z.core.$strip>>;
13
+ }, z.core.$strip>;
14
+ declare const erpnextListDocuments: import("@keystrokehq/action").WorkflowActionDefinition<{
15
+ doctype: string;
16
+ fields?: string[] | undefined;
17
+ filters?: (string | number)[][] | undefined;
18
+ limit_start?: number | undefined;
19
+ limit_page_length?: number | undefined;
20
+ }, {
21
+ data: Record<string, never>[];
22
+ }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
23
  //#endregion
8
24
  export { erpnextListDocuments };
9
25
  //# sourceMappingURL=list-documents.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-documents.d.mts","names":[],"sources":["../../src/actions/list-documents.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAM+B;AAAA,cAC5D,0BAAA,EAA4B,CAAA,CAAE,UAES;AAAA,cAEvC,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-documents.d.mts","names":[],"sources":["../../src/actions/list-documents.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;cAOzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cAI1B,oBAAA,gCAAoB,wBAAA;;;;;;;QAM/B,MAAA;AAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"list-documents.mjs","names":[],"sources":["../../src/actions/list-documents.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextListDocumentsInput: z.ZodTypeAny = z.object({\n fields: z.array(z.string()).describe(\"Fields to include in the response. By default, only the 'name' field is included. Pass a list of field names to retrieve additional fields. 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()]))).describe(\"SQL conditions to filter the listing. Each condition is an array of the format: [doctype, field, operator, value]. For example: [['Customer', 'country', '=', 'India']]\").optional(),\n limit_start: z.number().int().default(0).describe(\"Offset for pagination. Pass a multiple of limit_page_length to request successive pages. For example, to request the second page with page length 20, pass 20.\").optional(),\n limit_page_length: z.number().int().default(20).describe(\"Number of items to return per page. Default is 20.\").optional(),\n}).describe(\"Request model for listing documents of a specific DocType.\");\nexport const ErpnextListDocumentsOutput: z.ZodTypeAny = z.object({\n data: z.array(z.object({})).describe(\"List of documents. Each document contains at least the 'name' field, plus any additional fields requested via the 'fields' parameter.\"),\n}).describe(\"Response model for listing documents.\");\n\nexport const erpnextListDocuments = action(\"ERPNEXT_LIST_DOCUMENTS\", {\n slug: \"erpnext-list-documents\",\n name: \"List ERPNext Documents\",\n description: \"Tool to list documents of a specific DocType from ERPNext. Returns paginated results (default 20 items). Use when you need to retrieve multiple documents, with support for filtering, field selection, and pagination.\",\n input: ErpnextListDocumentsInput,\n output: ErpnextListDocumentsOutput,\n});\n"],"mappings":";;AAeA,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAfqD,EAAE,OAAO;EAC9D,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8KAA8K,CAAC,CAAC,SAAS;EAC9N,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,0JAA0J;EACvL,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;GAAC,EAAE,OAAO;GAAG,EAAE,OAAO,CAAC,CAAC,IAAI;GAAG,EAAE,OAAO;EAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,yKAAyK,CAAC,CAAC,SAAS;EAC5Q,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,gKAAgK,CAAC,CAAC,SAAS;EAC7N,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC1H,CAAC,CAAC,CAAC,SAAS,4DASH;CACP,QATsD,EAAE,OAAO,EAC/D,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,uIAAuI,EAC9K,CAAC,CAAC,CAAC,SAAS,uCAOF;AACV,CAAC"}
1
+ {"version":3,"file":"list-documents.mjs","names":[],"sources":["../../src/actions/list-documents.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextListDocumentsInput = z.object({\n fields: z.array(z.string()).describe(\"Fields to include in the response. By default, only the 'name' field is included. Pass a list of field names to retrieve additional fields. 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()]))).describe(\"SQL conditions to filter the listing. Each condition is an array of the format: [doctype, field, operator, value]. For example: [['Customer', 'country', '=', 'India']]\").optional(),\n limit_start: z.number().int().default(0).describe(\"Offset for pagination. Pass a multiple of limit_page_length to request successive pages. For example, to request the second page with page length 20, pass 20.\").optional(),\n limit_page_length: z.number().int().default(20).describe(\"Number of items to return per page. Default is 20.\").optional(),\n}).describe(\"Request model for listing documents of a specific DocType.\");\nexport const ErpnextListDocumentsOutput = z.object({\n data: z.array(z.object({})).describe(\"List of documents. Each document contains at least the 'name' field, plus any additional fields requested via the 'fields' parameter.\"),\n}).describe(\"Response model for listing documents.\");\n\nexport const erpnextListDocuments = action(\"ERPNEXT_LIST_DOCUMENTS\", {\n slug: \"erpnext-list-documents\",\n name: \"List ERPNext Documents\",\n description: \"Tool to list documents of a specific DocType from ERPNext. Returns paginated results (default 20 items). Use when you need to retrieve multiple documents, with support for filtering, field selection, and pagination.\",\n input: ErpnextListDocumentsInput,\n output: ErpnextListDocumentsOutput,\n});\n"],"mappings":";;AAeA,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAfuC,EAAE,OAAO;EAChD,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8KAA8K,CAAC,CAAC,SAAS;EAC9N,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,0JAA0J;EACvL,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;GAAC,EAAE,OAAO;GAAG,EAAE,OAAO,CAAC,CAAC,IAAI;GAAG,EAAE,OAAO;EAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,yKAAyK,CAAC,CAAC,SAAS;EAC5Q,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,gKAAgK,CAAC,CAAC,SAAS;EAC7N,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC1H,CAAC,CAAC,CAAC,SAAS,4DASH;CACP,QATwC,EAAE,OAAO,EACjD,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,uIAAuI,EAC9K,CAAC,CAAC,CAAC,SAAS,uCAOF;AACV,CAAC"}
@@ -11,7 +11,7 @@ const ErpnextListEmployeesInput = zod.z.object({
11
11
  limit_start: zod.z.number().int().default(0).describe("Starting position for pagination. To request successive pages, pass a multiple of limit_page_length. For example, to request the second page with page size 20, pass limit_start=20.").optional(),
12
12
  limit_page_length: zod.z.number().int().default(20).describe("Number of records to return per page. Default is 20.").optional()
13
13
  }).describe("Request model for listing Employee records from ERPNext.");
14
- const ErpnextListEmployees_EmployeeRecordSchema = zod.z.object({ name: zod.z.string().describe("The unique identifier/name of the employee record") }).passthrough().describe("Model representing a single Employee record with dynamic fields.");
14
+ const ErpnextListEmployees_EmployeeRecordSchema = zod.z.object({ name: zod.z.string().describe("The unique identifier/name of the employee record").nullable() }).passthrough().describe("Model representing a single Employee record with dynamic fields.");
15
15
  const ErpnextListEmployeesOutput = zod.z.object({ data: zod.z.array(ErpnextListEmployees_EmployeeRecordSchema).describe("List of employee records. Each record contains at minimum the 'name' field, and may include additional fields as requested.") }).describe("Response model for listing Employee records.");
16
16
  const erpnextListEmployees = require_action.action("ERPNEXT_LIST_EMPLOYEES", {
17
17
  slug: "erpnext-list-employees",
@@ -1 +1 @@
1
- {"version":3,"file":"list-employees.cjs","names":["z","action"],"sources":["../../src/actions/list-employees.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextListEmployeesInput: z.ZodTypeAny = z.object({\n fields: z.array(z.string()).describe(\"List of fields to include in the response. By default, only the 'name' field is included. Pass field names as a list to retrieve additional fields. For example: ['name', 'employee_name', 'department', 'designation']\").optional(),\n filters: z.array(z.array(z.union([z.string(), z.number().int(), z.number()]))).describe(\"SQL conditions to filter the listing. Each condition is an array of the format [doctype, field, operator, value]. For example: [['Employee', 'status', '=', 'Active']] to filter active employees only.\").optional(),\n limit_start: z.number().int().default(0).describe(\"Starting position for pagination. To request successive pages, pass a multiple of limit_page_length. For example, to request the second page with page size 20, pass limit_start=20.\").optional(),\n limit_page_length: z.number().int().default(20).describe(\"Number of records to return per page. Default is 20.\").optional(),\n}).describe(\"Request model for listing Employee records from ERPNext.\");\nconst ErpnextListEmployees_EmployeeRecordSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"The unique identifier/name of the employee record\"),\n}).passthrough().describe(\"Model representing a single Employee record with dynamic fields.\");\nexport const ErpnextListEmployeesOutput: z.ZodTypeAny = z.object({\n data: z.array(ErpnextListEmployees_EmployeeRecordSchema).describe(\"List of employee records. Each record contains at minimum the 'name' field, and may include additional fields as requested.\"),\n}).describe(\"Response model for listing Employee records.\");\n\nexport const erpnextListEmployees = action(\"ERPNEXT_LIST_EMPLOYEES\", {\n slug: \"erpnext-list-employees\",\n name: \"List Employees\",\n description: \"Tool to retrieve a list of Employee records from ERPNext. Use when you need to fetch employee information with optional filtering and pagination.\",\n input: ErpnextListEmployeesInput,\n output: ErpnextListEmployeesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0CA,IAAAA,EAAE,OAAO;CAC9D,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,yNAAyN,CAAC,CAAC,SAAS;CACzQ,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;CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,yMAAyM,CAAC,CAAC,SAAS;CAC5S,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,sLAAsL,CAAC,CAAC,SAAS;CACnP,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;AAC5H,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACtE,MAAM,4CAA0DA,IAAAA,EAAE,OAAO,EACvE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,EAC/E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kEAAkE;AAC5F,MAAa,6BAA2CA,IAAAA,EAAE,OAAO,EAC/D,MAAMA,IAAAA,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,6HAA6H,EACjM,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAE1D,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-employees.cjs","names":["z","action"],"sources":["../../src/actions/list-employees.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextListEmployeesInput = z.object({\n fields: z.array(z.string()).describe(\"List of fields to include in the response. By default, only the 'name' field is included. Pass field names as a list to retrieve additional fields. For example: ['name', 'employee_name', 'department', 'designation']\").optional(),\n filters: z.array(z.array(z.union([z.string(), z.number().int(), z.number()]))).describe(\"SQL conditions to filter the listing. Each condition is an array of the format [doctype, field, operator, value]. For example: [['Employee', 'status', '=', 'Active']] to filter active employees only.\").optional(),\n limit_start: z.number().int().default(0).describe(\"Starting position for pagination. To request successive pages, pass a multiple of limit_page_length. For example, to request the second page with page size 20, pass limit_start=20.\").optional(),\n limit_page_length: z.number().int().default(20).describe(\"Number of records to return per page. Default is 20.\").optional(),\n}).describe(\"Request model for listing Employee records from ERPNext.\");\nconst ErpnextListEmployees_EmployeeRecordSchema = z.object({\n name: z.string().describe(\"The unique identifier/name of the employee record\").nullable(),\n}).passthrough().describe(\"Model representing a single Employee record with dynamic fields.\");\nexport const ErpnextListEmployeesOutput = z.object({\n data: z.array(ErpnextListEmployees_EmployeeRecordSchema).describe(\"List of employee records. Each record contains at minimum the 'name' field, and may include additional fields as requested.\"),\n}).describe(\"Response model for listing Employee records.\");\n\nexport const erpnextListEmployees = action(\"ERPNEXT_LIST_EMPLOYEES\", {\n slug: \"erpnext-list-employees\",\n name: \"List Employees\",\n description: \"Tool to retrieve a list of Employee records from ERPNext. Use when you need to fetch employee information with optional filtering and pagination.\",\n input: ErpnextListEmployeesInput,\n output: ErpnextListEmployeesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,yNAAyN,CAAC,CAAC,SAAS;CACzQ,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;CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,yMAAyM,CAAC,CAAC,SAAS;CAC5S,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,sLAAsL,CAAC,CAAC,SAAS;CACnP,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;AAC5H,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACtE,MAAM,4CAA4CA,IAAAA,EAAE,OAAO,EACzD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,EAC1F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kEAAkE;AAC5F,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,MAAMA,IAAAA,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,6HAA6H,EACjM,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAE1D,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,28 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-employees.d.ts
4
- declare const ErpnextListEmployeesInput: z.ZodTypeAny;
5
- declare const ErpnextListEmployeesOutput: z.ZodTypeAny;
6
- declare const erpnextListEmployees: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const ErpnextListEmployeesInput: z.ZodObject<{
5
+ fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
6
+ filters: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNumber]>>>>;
7
+ limit_start: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
8
+ limit_page_length: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
9
+ }, z.core.$strip>;
10
+ declare const ErpnextListEmployeesOutput: z.ZodObject<{
11
+ data: z.ZodArray<z.ZodObject<{
12
+ name: z.ZodNullable<z.ZodString>;
13
+ }, z.core.$loose>>;
14
+ }, z.core.$strip>;
15
+ declare const erpnextListEmployees: import("@keystrokehq/action").WorkflowActionDefinition<{
16
+ fields?: string[] | undefined;
17
+ filters?: (string | number)[][] | undefined;
18
+ limit_start?: number | undefined;
19
+ limit_page_length?: number | undefined;
20
+ }, {
21
+ data: {
22
+ [x: string]: unknown;
23
+ name: string | null;
24
+ }[];
25
+ }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
26
  //#endregion
8
27
  export { erpnextListEmployees };
9
28
  //# sourceMappingURL=list-employees.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-employees.d.cts","names":[],"sources":["../../src/actions/list-employees.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAK6B;AAAA,cAI1D,0BAAA,EAA4B,CAAA,CAAE,UAEgB;AAAA,cAE9C,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-employees.d.cts","names":[],"sources":["../../src/actions/list-employees.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;cASzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;cAI1B,oBAAA,gCAAoB,wBAAA"}
@@ -1,9 +1,28 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-employees.d.ts
4
- declare const ErpnextListEmployeesInput: z.ZodTypeAny;
5
- declare const ErpnextListEmployeesOutput: z.ZodTypeAny;
6
- declare const erpnextListEmployees: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const ErpnextListEmployeesInput: z.ZodObject<{
5
+ fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
6
+ filters: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNumber]>>>>;
7
+ limit_start: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
8
+ limit_page_length: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
9
+ }, z.core.$strip>;
10
+ declare const ErpnextListEmployeesOutput: z.ZodObject<{
11
+ data: z.ZodArray<z.ZodObject<{
12
+ name: z.ZodNullable<z.ZodString>;
13
+ }, z.core.$loose>>;
14
+ }, z.core.$strip>;
15
+ declare const erpnextListEmployees: import("@keystrokehq/action").WorkflowActionDefinition<{
16
+ fields?: string[] | undefined;
17
+ filters?: (string | number)[][] | undefined;
18
+ limit_start?: number | undefined;
19
+ limit_page_length?: number | undefined;
20
+ }, {
21
+ data: {
22
+ [x: string]: unknown;
23
+ name: string | null;
24
+ }[];
25
+ }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
26
  //#endregion
8
27
  export { erpnextListEmployees };
9
28
  //# sourceMappingURL=list-employees.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-employees.d.mts","names":[],"sources":["../../src/actions/list-employees.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAK6B;AAAA,cAI1D,0BAAA,EAA4B,CAAA,CAAE,UAEgB;AAAA,cAE9C,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-employees.d.mts","names":[],"sources":["../../src/actions/list-employees.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;cASzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;cAI1B,oBAAA,gCAAoB,wBAAA"}
@@ -11,7 +11,7 @@ const ErpnextListEmployeesInput = z.object({
11
11
  limit_start: z.number().int().default(0).describe("Starting position for pagination. To request successive pages, pass a multiple of limit_page_length. For example, to request the second page with page size 20, pass limit_start=20.").optional(),
12
12
  limit_page_length: z.number().int().default(20).describe("Number of records to return per page. Default is 20.").optional()
13
13
  }).describe("Request model for listing Employee records from ERPNext.");
14
- const ErpnextListEmployees_EmployeeRecordSchema = z.object({ name: z.string().describe("The unique identifier/name of the employee record") }).passthrough().describe("Model representing a single Employee record with dynamic fields.");
14
+ const ErpnextListEmployees_EmployeeRecordSchema = z.object({ name: z.string().describe("The unique identifier/name of the employee record").nullable() }).passthrough().describe("Model representing a single Employee record with dynamic fields.");
15
15
  const erpnextListEmployees = action("ERPNEXT_LIST_EMPLOYEES", {
16
16
  slug: "erpnext-list-employees",
17
17
  name: "List Employees",
@@ -1 +1 @@
1
- {"version":3,"file":"list-employees.mjs","names":[],"sources":["../../src/actions/list-employees.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextListEmployeesInput: z.ZodTypeAny = z.object({\n fields: z.array(z.string()).describe(\"List of fields to include in the response. By default, only the 'name' field is included. Pass field names as a list to retrieve additional fields. For example: ['name', 'employee_name', 'department', 'designation']\").optional(),\n filters: z.array(z.array(z.union([z.string(), z.number().int(), z.number()]))).describe(\"SQL conditions to filter the listing. Each condition is an array of the format [doctype, field, operator, value]. For example: [['Employee', 'status', '=', 'Active']] to filter active employees only.\").optional(),\n limit_start: z.number().int().default(0).describe(\"Starting position for pagination. To request successive pages, pass a multiple of limit_page_length. For example, to request the second page with page size 20, pass limit_start=20.\").optional(),\n limit_page_length: z.number().int().default(20).describe(\"Number of records to return per page. Default is 20.\").optional(),\n}).describe(\"Request model for listing Employee records from ERPNext.\");\nconst ErpnextListEmployees_EmployeeRecordSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"The unique identifier/name of the employee record\"),\n}).passthrough().describe(\"Model representing a single Employee record with dynamic fields.\");\nexport const ErpnextListEmployeesOutput: z.ZodTypeAny = z.object({\n data: z.array(ErpnextListEmployees_EmployeeRecordSchema).describe(\"List of employee records. Each record contains at minimum the 'name' field, and may include additional fields as requested.\"),\n}).describe(\"Response model for listing Employee records.\");\n\nexport const erpnextListEmployees = action(\"ERPNEXT_LIST_EMPLOYEES\", {\n slug: \"erpnext-list-employees\",\n name: \"List Employees\",\n description: \"Tool to retrieve a list of Employee records from ERPNext. Use when you need to fetch employee information with optional filtering and pagination.\",\n input: ErpnextListEmployeesInput,\n output: ErpnextListEmployeesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0C,EAAE,OAAO;CAC9D,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,yNAAyN,CAAC,CAAC,SAAS;CACzQ,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;EAAC,EAAE,OAAO;EAAG,EAAE,OAAO,CAAC,CAAC,IAAI;EAAG,EAAE,OAAO;CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,yMAAyM,CAAC,CAAC,SAAS;CAC5S,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,sLAAsL,CAAC,CAAC,SAAS;CACnP,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;AAC5H,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACtE,MAAM,4CAA0D,EAAE,OAAO,EACvE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,EAC/E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kEAAkE;AAK5F,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATsD,EAAE,OAAO,EAC/D,MAAM,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,6HAA6H,EACjM,CAAC,CAAC,CAAC,SAAS,8CAOF;AACV,CAAC"}
1
+ {"version":3,"file":"list-employees.mjs","names":[],"sources":["../../src/actions/list-employees.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextListEmployeesInput = z.object({\n fields: z.array(z.string()).describe(\"List of fields to include in the response. By default, only the 'name' field is included. Pass field names as a list to retrieve additional fields. For example: ['name', 'employee_name', 'department', 'designation']\").optional(),\n filters: z.array(z.array(z.union([z.string(), z.number().int(), z.number()]))).describe(\"SQL conditions to filter the listing. Each condition is an array of the format [doctype, field, operator, value]. For example: [['Employee', 'status', '=', 'Active']] to filter active employees only.\").optional(),\n limit_start: z.number().int().default(0).describe(\"Starting position for pagination. To request successive pages, pass a multiple of limit_page_length. For example, to request the second page with page size 20, pass limit_start=20.\").optional(),\n limit_page_length: z.number().int().default(20).describe(\"Number of records to return per page. Default is 20.\").optional(),\n}).describe(\"Request model for listing Employee records from ERPNext.\");\nconst ErpnextListEmployees_EmployeeRecordSchema = z.object({\n name: z.string().describe(\"The unique identifier/name of the employee record\").nullable(),\n}).passthrough().describe(\"Model representing a single Employee record with dynamic fields.\");\nexport const ErpnextListEmployeesOutput = z.object({\n data: z.array(ErpnextListEmployees_EmployeeRecordSchema).describe(\"List of employee records. Each record contains at minimum the 'name' field, and may include additional fields as requested.\"),\n}).describe(\"Response model for listing Employee records.\");\n\nexport const erpnextListEmployees = action(\"ERPNEXT_LIST_EMPLOYEES\", {\n slug: \"erpnext-list-employees\",\n name: \"List Employees\",\n description: \"Tool to retrieve a list of Employee records from ERPNext. Use when you need to fetch employee information with optional filtering and pagination.\",\n input: ErpnextListEmployeesInput,\n output: ErpnextListEmployeesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4B,EAAE,OAAO;CAChD,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,yNAAyN,CAAC,CAAC,SAAS;CACzQ,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;EAAC,EAAE,OAAO;EAAG,EAAE,OAAO,CAAC,CAAC,IAAI;EAAG,EAAE,OAAO;CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,yMAAyM,CAAC,CAAC,SAAS;CAC5S,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,sLAAsL,CAAC,CAAC,SAAS;CACnP,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;AAC5H,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACtE,MAAM,4CAA4C,EAAE,OAAO,EACzD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,EAC1F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kEAAkE;AAK5F,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATwC,EAAE,OAAO,EACjD,MAAM,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,6HAA6H,EACjM,CAAC,CAAC,CAAC,SAAS,8CAOF;AACV,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"list-projects.cjs","names":["z","action"],"sources":["../../src/actions/list-projects.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextListProjectsInput: z.ZodTypeAny = z.object({\n fields: z.array(z.string()).describe(\"Fields to include in the response. By default, only the \\\"name\\\" field is included. Pass a list of field names to include additional fields.\").optional(),\n filters: z.array(z.array(z.union([z.string(), z.number().int(), z.number(), z.boolean()]))).describe(\"SQL conditions to filter the listing. Each condition is an array of the format: [doctype, field, operator, value]. For example: [[\\\"Project\\\", \\\"status\\\", \\\"=\\\", \\\"Open\\\"]]\").optional(),\n limit_start: z.number().int().default(0).describe(\"Offset for pagination. Pass a multiple of limit_page_length to request successive pages. For example, pass 20 to request the second page when limit_page_length is 20.\").optional(),\n limit_page_length: z.number().int().default(20).describe(\"Number of items to return per page. Controls pagination size.\").optional(),\n});\nexport const ErpnextListProjectsOutput: z.ZodTypeAny = z.object({\n data: z.array(z.object({})).describe(\"List of project records matching the query criteria\"),\n});\n\nexport const erpnextListProjects = action(\"ERPNEXT_LIST_PROJECTS\", {\n slug: \"erpnext-list-projects\",\n name: \"List Projects\",\n description: \"Tool to retrieve a list of Project records from ERPNext. Use when you need to get projects, optionally filtered and paginated.\",\n input: ErpnextListProjectsInput,\n output: ErpnextListProjectsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyCA,IAAAA,EAAE,OAAO;CAC7D,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8IAA8I,CAAC,CAAC,SAAS;CAC9L,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,8KAA8K,CAAC,CAAC,SAAS;CAC9R,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,wKAAwK,CAAC,CAAC,SAAS;CACrO,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;AACrI,CAAC;AACD,MAAa,4BAA0CA,IAAAA,EAAE,OAAO,EAC9D,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,qDAAqD,EAC5F,CAAC;AAED,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-projects.cjs","names":["z","action"],"sources":["../../src/actions/list-projects.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextListProjectsInput = z.object({\n fields: z.array(z.string()).describe(\"Fields to include in the response. By default, only the \\\"name\\\" field is included. Pass a list of field names to include additional fields.\").optional(),\n filters: z.array(z.array(z.union([z.string(), z.number().int(), z.number(), z.boolean()]))).describe(\"SQL conditions to filter the listing. Each condition is an array of the format: [doctype, field, operator, value]. For example: [[\\\"Project\\\", \\\"status\\\", \\\"=\\\", \\\"Open\\\"]]\").optional(),\n limit_start: z.number().int().default(0).describe(\"Offset for pagination. Pass a multiple of limit_page_length to request successive pages. For example, pass 20 to request the second page when limit_page_length is 20.\").optional(),\n limit_page_length: z.number().int().default(20).describe(\"Number of items to return per page. Controls pagination size.\").optional(),\n});\nexport const ErpnextListProjectsOutput = z.object({\n data: z.array(z.object({})).describe(\"List of project records matching the query criteria\"),\n});\n\nexport const erpnextListProjects = action(\"ERPNEXT_LIST_PROJECTS\", {\n slug: \"erpnext-list-projects\",\n name: \"List Projects\",\n description: \"Tool to retrieve a list of Project records from ERPNext. Use when you need to get projects, optionally filtered and paginated.\",\n input: ErpnextListProjectsInput,\n output: ErpnextListProjectsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8IAA8I,CAAC,CAAC,SAAS;CAC9L,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,8KAA8K,CAAC,CAAC,SAAS;CAC9R,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,wKAAwK,CAAC,CAAC,SAAS;CACrO,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;AACrI,CAAC;AACD,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,qDAAqD,EAC5F,CAAC;AAED,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,23 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-projects.d.ts
4
- declare const ErpnextListProjectsInput: z.ZodTypeAny;
5
- declare const ErpnextListProjectsOutput: z.ZodTypeAny;
6
- declare const erpnextListProjects: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const ErpnextListProjectsInput: z.ZodObject<{
5
+ fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
6
+ filters: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNumber, z.ZodBoolean]>>>>;
7
+ limit_start: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
8
+ limit_page_length: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
9
+ }, z.core.$strip>;
10
+ declare const ErpnextListProjectsOutput: z.ZodObject<{
11
+ data: z.ZodArray<z.ZodObject<{}, z.core.$strip>>;
12
+ }, z.core.$strip>;
13
+ declare const erpnextListProjects: import("@keystrokehq/action").WorkflowActionDefinition<{
14
+ fields?: string[] | undefined;
15
+ filters?: (string | number | boolean)[][] | undefined;
16
+ limit_start?: number | undefined;
17
+ limit_page_length?: number | undefined;
18
+ }, {
19
+ data: Record<string, never>[];
20
+ }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
21
  //#endregion
8
22
  export { erpnextListProjects };
9
23
  //# sourceMappingURL=list-projects.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-projects.d.cts","names":[],"sources":["../../src/actions/list-projects.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAKvC;AAAA,cACW,yBAAA,EAA2B,CAAA,CAAE,UAExC;AAAA,cAEW,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-projects.d.cts","names":[],"sources":["../../src/actions/list-projects.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;cAMxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;cAIzB,mBAAA,gCAAmB,wBAAA;;;;;;QAM9B,MAAA;AAAA"}
@@ -1,9 +1,23 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-projects.d.ts
4
- declare const ErpnextListProjectsInput: z.ZodTypeAny;
5
- declare const ErpnextListProjectsOutput: z.ZodTypeAny;
6
- declare const erpnextListProjects: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const ErpnextListProjectsInput: z.ZodObject<{
5
+ fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
6
+ filters: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNumber, z.ZodBoolean]>>>>;
7
+ limit_start: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
8
+ limit_page_length: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
9
+ }, z.core.$strip>;
10
+ declare const ErpnextListProjectsOutput: z.ZodObject<{
11
+ data: z.ZodArray<z.ZodObject<{}, z.core.$strip>>;
12
+ }, z.core.$strip>;
13
+ declare const erpnextListProjects: import("@keystrokehq/action").WorkflowActionDefinition<{
14
+ fields?: string[] | undefined;
15
+ filters?: (string | number | boolean)[][] | undefined;
16
+ limit_start?: number | undefined;
17
+ limit_page_length?: number | undefined;
18
+ }, {
19
+ data: Record<string, never>[];
20
+ }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
21
  //#endregion
8
22
  export { erpnextListProjects };
9
23
  //# sourceMappingURL=list-projects.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-projects.d.mts","names":[],"sources":["../../src/actions/list-projects.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAKvC;AAAA,cACW,yBAAA,EAA2B,CAAA,CAAE,UAExC;AAAA,cAEW,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-projects.d.mts","names":[],"sources":["../../src/actions/list-projects.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;cAMxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;cAIzB,mBAAA,gCAAmB,wBAAA;;;;;;QAM9B,MAAA;AAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"list-projects.mjs","names":[],"sources":["../../src/actions/list-projects.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextListProjectsInput: z.ZodTypeAny = z.object({\n fields: z.array(z.string()).describe(\"Fields to include in the response. By default, only the \\\"name\\\" field is included. Pass a list of field names to include additional fields.\").optional(),\n filters: z.array(z.array(z.union([z.string(), z.number().int(), z.number(), z.boolean()]))).describe(\"SQL conditions to filter the listing. Each condition is an array of the format: [doctype, field, operator, value]. For example: [[\\\"Project\\\", \\\"status\\\", \\\"=\\\", \\\"Open\\\"]]\").optional(),\n limit_start: z.number().int().default(0).describe(\"Offset for pagination. Pass a multiple of limit_page_length to request successive pages. For example, pass 20 to request the second page when limit_page_length is 20.\").optional(),\n limit_page_length: z.number().int().default(20).describe(\"Number of items to return per page. Controls pagination size.\").optional(),\n});\nexport const ErpnextListProjectsOutput: z.ZodTypeAny = z.object({\n data: z.array(z.object({})).describe(\"List of project records matching the query criteria\"),\n});\n\nexport const erpnextListProjects = action(\"ERPNEXT_LIST_PROJECTS\", {\n slug: \"erpnext-list-projects\",\n name: \"List Projects\",\n description: \"Tool to retrieve a list of Project records from ERPNext. Use when you need to get projects, optionally filtered and paginated.\",\n input: ErpnextListProjectsInput,\n output: ErpnextListProjectsOutput,\n});\n"],"mappings":";;AAcA,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAdoD,EAAE,OAAO;EAC7D,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8IAA8I,CAAC,CAAC,SAAS;EAC9L,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;GAAC,EAAE,OAAO;GAAG,EAAE,OAAO,CAAC,CAAC,IAAI;GAAG,EAAE,OAAO;GAAG,EAAE,QAAQ;EAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,8KAA8K,CAAC,CAAC,SAAS;EAC9R,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,wKAAwK,CAAC,CAAC,SAAS;EACrO,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CACrI,CASS;CACP,QATqD,EAAE,OAAO,EAC9D,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,qDAAqD,EAC5F,CAOU;AACV,CAAC"}
1
+ {"version":3,"file":"list-projects.mjs","names":[],"sources":["../../src/actions/list-projects.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextListProjectsInput = z.object({\n fields: z.array(z.string()).describe(\"Fields to include in the response. By default, only the \\\"name\\\" field is included. Pass a list of field names to include additional fields.\").optional(),\n filters: z.array(z.array(z.union([z.string(), z.number().int(), z.number(), z.boolean()]))).describe(\"SQL conditions to filter the listing. Each condition is an array of the format: [doctype, field, operator, value]. For example: [[\\\"Project\\\", \\\"status\\\", \\\"=\\\", \\\"Open\\\"]]\").optional(),\n limit_start: z.number().int().default(0).describe(\"Offset for pagination. Pass a multiple of limit_page_length to request successive pages. For example, pass 20 to request the second page when limit_page_length is 20.\").optional(),\n limit_page_length: z.number().int().default(20).describe(\"Number of items to return per page. Controls pagination size.\").optional(),\n});\nexport const ErpnextListProjectsOutput = z.object({\n data: z.array(z.object({})).describe(\"List of project records matching the query criteria\"),\n});\n\nexport const erpnextListProjects = action(\"ERPNEXT_LIST_PROJECTS\", {\n slug: \"erpnext-list-projects\",\n name: \"List Projects\",\n description: \"Tool to retrieve a list of Project records from ERPNext. Use when you need to get projects, optionally filtered and paginated.\",\n input: ErpnextListProjectsInput,\n output: ErpnextListProjectsOutput,\n});\n"],"mappings":";;AAcA,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAdsC,EAAE,OAAO;EAC/C,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8IAA8I,CAAC,CAAC,SAAS;EAC9L,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;GAAC,EAAE,OAAO;GAAG,EAAE,OAAO,CAAC,CAAC,IAAI;GAAG,EAAE,OAAO;GAAG,EAAE,QAAQ;EAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,8KAA8K,CAAC,CAAC,SAAS;EAC9R,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,wKAAwK,CAAC,CAAC,SAAS;EACrO,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CACrI,CASS;CACP,QATuC,EAAE,OAAO,EAChD,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,qDAAqD,EAC5F,CAOU;AACV,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"list-timesheets.cjs","names":["z","action"],"sources":["../../src/actions/list-timesheets.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextListTimesheetsInput: z.ZodTypeAny = z.object({\n fields: z.array(z.string()).describe(\"List of fields to include in the response. By default, only the 'name' field is included. To add more fields, specify them in this list. For example: ['name', 'employee', 'total_hours', 'status']\").optional(),\n filters: z.array(z.array(z.union([z.string(), z.number().int(), z.number(), z.boolean()]))).describe(\"SQL-style conditions to filter the listing. Each condition is an array of the format: [doctype, field, operator, value]. For example: [['Timesheet', 'status', '=', 'Submitted']] to get only submitted timesheets. Multiple filters can be combined: [['Timesheet', 'employee', '=', 'EMP-001'], ['Timesheet', 'status', '=', 'Draft']]\").optional(),\n limit_start: z.number().int().default(0).describe(\"Starting position for pagination. To request successive pages, pass a multiple of your limit_page_length. For example, to request the second page with page length 20, pass limit_start=20.\").optional(),\n limit_page_length: z.number().int().default(20).describe(\"Number of records to return per page. Controls the page size for pagination. Default is 20 records. Maximum is 1000.\").optional(),\n}).describe(\"Request model for listing timesheet records.\");\nexport const ErpnextListTimesheetsOutput: z.ZodTypeAny = z.object({\n data: z.array(z.object({})).describe(\"List of timesheet records. Each record contains at least the 'name' field, plus any additional fields specified in the request.\"),\n}).describe(\"Response model for listing timesheet records.\");\n\nexport const erpnextListTimesheets = action(\"ERPNEXT_LIST_TIMESHEETS\", {\n slug: \"erpnext-list-timesheets\",\n name: \"List Timesheets\",\n description: \"Tool to get a list of Timesheet records from ERPNext. Use when you need to retrieve, search, or filter timesheets. Supports pagination and flexible field selection.\",\n input: ErpnextListTimesheetsInput,\n output: ErpnextListTimesheetsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2CA,IAAAA,EAAE,OAAO;CAC/D,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qMAAqM,CAAC,CAAC,SAAS;CACrP,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,0UAA0U,CAAC,CAAC,SAAS;CAC1b,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,6LAA6L,CAAC,CAAC,SAAS;CAC1P,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,sHAAsH,CAAC,CAAC,SAAS;AAC5L,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAa,8BAA4CA,IAAAA,EAAE,OAAO,EAChE,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,iIAAiI,EACxK,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAE3D,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-timesheets.cjs","names":["z","action"],"sources":["../../src/actions/list-timesheets.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextListTimesheetsInput = z.object({\n fields: z.array(z.string()).describe(\"List of fields to include in the response. By default, only the 'name' field is included. To add more fields, specify them in this list. For example: ['name', 'employee', 'total_hours', 'status']\").optional(),\n filters: z.array(z.array(z.union([z.string(), z.number().int(), z.number(), z.boolean()]))).describe(\"SQL-style conditions to filter the listing. Each condition is an array of the format: [doctype, field, operator, value]. For example: [['Timesheet', 'status', '=', 'Submitted']] to get only submitted timesheets. Multiple filters can be combined: [['Timesheet', 'employee', '=', 'EMP-001'], ['Timesheet', 'status', '=', 'Draft']]\").optional(),\n limit_start: z.number().int().default(0).describe(\"Starting position for pagination. To request successive pages, pass a multiple of your limit_page_length. For example, to request the second page with page length 20, pass limit_start=20.\").optional(),\n limit_page_length: z.number().int().default(20).describe(\"Number of records to return per page. Controls the page size for pagination. Default is 20 records. Maximum is 1000.\").optional(),\n}).describe(\"Request model for listing timesheet records.\");\nexport const ErpnextListTimesheetsOutput = z.object({\n data: z.array(z.object({})).describe(\"List of timesheet records. Each record contains at least the 'name' field, plus any additional fields specified in the request.\"),\n}).describe(\"Response model for listing timesheet records.\");\n\nexport const erpnextListTimesheets = action(\"ERPNEXT_LIST_TIMESHEETS\", {\n slug: \"erpnext-list-timesheets\",\n name: \"List Timesheets\",\n description: \"Tool to get a list of Timesheet records from ERPNext. Use when you need to retrieve, search, or filter timesheets. Supports pagination and flexible field selection.\",\n input: ErpnextListTimesheetsInput,\n output: ErpnextListTimesheetsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qMAAqM,CAAC,CAAC,SAAS;CACrP,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,0UAA0U,CAAC,CAAC,SAAS;CAC1b,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,6LAA6L,CAAC,CAAC,SAAS;CAC1P,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,sHAAsH,CAAC,CAAC,SAAS;AAC5L,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,iIAAiI,EACxK,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAE3D,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,23 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-timesheets.d.ts
4
- declare const ErpnextListTimesheetsInput: z.ZodTypeAny;
5
- declare const ErpnextListTimesheetsOutput: z.ZodTypeAny;
6
- declare const erpnextListTimesheets: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const ErpnextListTimesheetsInput: z.ZodObject<{
5
+ fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
6
+ filters: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNumber, z.ZodBoolean]>>>>;
7
+ limit_start: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
8
+ limit_page_length: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
9
+ }, z.core.$strip>;
10
+ declare const ErpnextListTimesheetsOutput: z.ZodObject<{
11
+ data: z.ZodArray<z.ZodObject<{}, z.core.$strip>>;
12
+ }, z.core.$strip>;
13
+ declare const erpnextListTimesheets: import("@keystrokehq/action").WorkflowActionDefinition<{
14
+ fields?: string[] | undefined;
15
+ filters?: (string | number | boolean)[][] | undefined;
16
+ limit_start?: number | undefined;
17
+ limit_page_length?: number | undefined;
18
+ }, {
19
+ data: Record<string, never>[];
20
+ }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
21
  //#endregion
8
22
  export { erpnextListTimesheets };
9
23
  //# sourceMappingURL=list-timesheets.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-timesheets.d.cts","names":[],"sources":["../../src/actions/list-timesheets.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAKgB;AAAA,cAC9C,2BAAA,EAA6B,CAAA,CAAE,UAEgB;AAAA,cAE/C,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-timesheets.d.cts","names":[],"sources":["../../src/actions/list-timesheets.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;cAM1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAI3B,qBAAA,gCAAqB,wBAAA;;;;;;QAMhC,MAAA;AAAA"}
@@ -1,9 +1,23 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-timesheets.d.ts
4
- declare const ErpnextListTimesheetsInput: z.ZodTypeAny;
5
- declare const ErpnextListTimesheetsOutput: z.ZodTypeAny;
6
- declare const erpnextListTimesheets: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const ErpnextListTimesheetsInput: z.ZodObject<{
5
+ fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
6
+ filters: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNumber, z.ZodBoolean]>>>>;
7
+ limit_start: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
8
+ limit_page_length: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
9
+ }, z.core.$strip>;
10
+ declare const ErpnextListTimesheetsOutput: z.ZodObject<{
11
+ data: z.ZodArray<z.ZodObject<{}, z.core.$strip>>;
12
+ }, z.core.$strip>;
13
+ declare const erpnextListTimesheets: import("@keystrokehq/action").WorkflowActionDefinition<{
14
+ fields?: string[] | undefined;
15
+ filters?: (string | number | boolean)[][] | undefined;
16
+ limit_start?: number | undefined;
17
+ limit_page_length?: number | undefined;
18
+ }, {
19
+ data: Record<string, never>[];
20
+ }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
21
  //#endregion
8
22
  export { erpnextListTimesheets };
9
23
  //# sourceMappingURL=list-timesheets.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-timesheets.d.mts","names":[],"sources":["../../src/actions/list-timesheets.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAKgB;AAAA,cAC9C,2BAAA,EAA6B,CAAA,CAAE,UAEgB;AAAA,cAE/C,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-timesheets.d.mts","names":[],"sources":["../../src/actions/list-timesheets.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;cAM1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAI3B,qBAAA,gCAAqB,wBAAA;;;;;;QAMhC,MAAA;AAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"list-timesheets.mjs","names":[],"sources":["../../src/actions/list-timesheets.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextListTimesheetsInput: z.ZodTypeAny = z.object({\n fields: z.array(z.string()).describe(\"List of fields to include in the response. By default, only the 'name' field is included. To add more fields, specify them in this list. For example: ['name', 'employee', 'total_hours', 'status']\").optional(),\n filters: z.array(z.array(z.union([z.string(), z.number().int(), z.number(), z.boolean()]))).describe(\"SQL-style conditions to filter the listing. Each condition is an array of the format: [doctype, field, operator, value]. For example: [['Timesheet', 'status', '=', 'Submitted']] to get only submitted timesheets. Multiple filters can be combined: [['Timesheet', 'employee', '=', 'EMP-001'], ['Timesheet', 'status', '=', 'Draft']]\").optional(),\n limit_start: z.number().int().default(0).describe(\"Starting position for pagination. To request successive pages, pass a multiple of your limit_page_length. For example, to request the second page with page length 20, pass limit_start=20.\").optional(),\n limit_page_length: z.number().int().default(20).describe(\"Number of records to return per page. Controls the page size for pagination. Default is 20 records. Maximum is 1000.\").optional(),\n}).describe(\"Request model for listing timesheet records.\");\nexport const ErpnextListTimesheetsOutput: z.ZodTypeAny = z.object({\n data: z.array(z.object({})).describe(\"List of timesheet records. Each record contains at least the 'name' field, plus any additional fields specified in the request.\"),\n}).describe(\"Response model for listing timesheet records.\");\n\nexport const erpnextListTimesheets = action(\"ERPNEXT_LIST_TIMESHEETS\", {\n slug: \"erpnext-list-timesheets\",\n name: \"List Timesheets\",\n description: \"Tool to get a list of Timesheet records from ERPNext. Use when you need to retrieve, search, or filter timesheets. Supports pagination and flexible field selection.\",\n input: ErpnextListTimesheetsInput,\n output: ErpnextListTimesheetsOutput,\n});\n"],"mappings":";;AAcA,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAdsD,EAAE,OAAO;EAC/D,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qMAAqM,CAAC,CAAC,SAAS;EACrP,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;GAAC,EAAE,OAAO;GAAG,EAAE,OAAO,CAAC,CAAC,IAAI;GAAG,EAAE,OAAO;GAAG,EAAE,QAAQ;EAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,0UAA0U,CAAC,CAAC,SAAS;EAC1b,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,6LAA6L,CAAC,CAAC,SAAS;EAC1P,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,sHAAsH,CAAC,CAAC,SAAS;CAC5L,CAAC,CAAC,CAAC,SAAS,8CASH;CACP,QATuD,EAAE,OAAO,EAChE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,iIAAiI,EACxK,CAAC,CAAC,CAAC,SAAS,+CAOF;AACV,CAAC"}
1
+ {"version":3,"file":"list-timesheets.mjs","names":[],"sources":["../../src/actions/list-timesheets.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextListTimesheetsInput = z.object({\n fields: z.array(z.string()).describe(\"List of fields to include in the response. By default, only the 'name' field is included. To add more fields, specify them in this list. For example: ['name', 'employee', 'total_hours', 'status']\").optional(),\n filters: z.array(z.array(z.union([z.string(), z.number().int(), z.number(), z.boolean()]))).describe(\"SQL-style conditions to filter the listing. Each condition is an array of the format: [doctype, field, operator, value]. For example: [['Timesheet', 'status', '=', 'Submitted']] to get only submitted timesheets. Multiple filters can be combined: [['Timesheet', 'employee', '=', 'EMP-001'], ['Timesheet', 'status', '=', 'Draft']]\").optional(),\n limit_start: z.number().int().default(0).describe(\"Starting position for pagination. To request successive pages, pass a multiple of your limit_page_length. For example, to request the second page with page length 20, pass limit_start=20.\").optional(),\n limit_page_length: z.number().int().default(20).describe(\"Number of records to return per page. Controls the page size for pagination. Default is 20 records. Maximum is 1000.\").optional(),\n}).describe(\"Request model for listing timesheet records.\");\nexport const ErpnextListTimesheetsOutput = z.object({\n data: z.array(z.object({})).describe(\"List of timesheet records. Each record contains at least the 'name' field, plus any additional fields specified in the request.\"),\n}).describe(\"Response model for listing timesheet records.\");\n\nexport const erpnextListTimesheets = action(\"ERPNEXT_LIST_TIMESHEETS\", {\n slug: \"erpnext-list-timesheets\",\n name: \"List Timesheets\",\n description: \"Tool to get a list of Timesheet records from ERPNext. Use when you need to retrieve, search, or filter timesheets. Supports pagination and flexible field selection.\",\n input: ErpnextListTimesheetsInput,\n output: ErpnextListTimesheetsOutput,\n});\n"],"mappings":";;AAcA,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAdwC,EAAE,OAAO;EACjD,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qMAAqM,CAAC,CAAC,SAAS;EACrP,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;GAAC,EAAE,OAAO;GAAG,EAAE,OAAO,CAAC,CAAC,IAAI;GAAG,EAAE,OAAO;GAAG,EAAE,QAAQ;EAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,0UAA0U,CAAC,CAAC,SAAS;EAC1b,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,6LAA6L,CAAC,CAAC,SAAS;EAC1P,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,sHAAsH,CAAC,CAAC,SAAS;CAC5L,CAAC,CAAC,CAAC,SAAS,8CASH;CACP,QATyC,EAAE,OAAO,EAClD,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,iIAAiI,EACxK,CAAC,CAAC,CAAC,SAAS,+CAOF;AACV,CAAC"}
@@ -8,11 +8,11 @@ const ErpnextListWebhooksInput = zod.z.object({
8
8
  limit_page_length: zod.z.number().int().describe("Number of items to return per page. By default, the API returns 20 items.").optional()
9
9
  }).describe("Request model for listing webhook configurations in ERPNext.");
10
10
  const ErpnextListWebhooks_WebhookItemSchema = zod.z.object({
11
- name: zod.z.string().describe("Name/ID of the webhook configuration"),
12
- enabled: zod.z.number().int().describe("Whether the webhook is enabled (1) or disabled (0)").nullable().optional(),
13
- request_url: zod.z.string().describe("The URL that the webhook sends requests to").nullable().optional(),
14
- webhook_doctype: zod.z.string().describe("The document type that triggers this webhook").nullable().optional(),
15
- webhook_docevent: zod.z.string().describe("The document event that triggers this webhook").nullable().optional()
11
+ name: zod.z.string().describe("Name/ID of the webhook configuration").nullable(),
12
+ enabled: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().int().describe("Whether the webhook is enabled (1) or disabled (0)").optional()),
13
+ request_url: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("The URL that the webhook sends requests to").optional()),
14
+ webhook_doctype: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("The document type that triggers this webhook").optional()),
15
+ webhook_docevent: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("The document event that triggers this webhook").optional())
16
16
  }).passthrough().describe("Represents a single webhook configuration. Accepts additional fields\nbeyond 'name' since the request supports custom field selection.");
17
17
  const ErpnextListWebhooksOutput = zod.z.object({ data: zod.z.array(ErpnextListWebhooks_WebhookItemSchema).describe("List of webhook configurations returned by the API") }).describe("Response model for listing webhooks.");
18
18
  const erpnextListWebhooks = require_action.action("ERPNEXT_LIST_WEBHOOKS", {
@@ -1 +1 @@
1
- {"version":3,"file":"list-webhooks.cjs","names":["z","action"],"sources":["../../src/actions/list-webhooks.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextListWebhooksInput: z.ZodTypeAny = z.object({\n fields: z.array(z.string()).describe(\"List of fields to include in the response. By default, only the 'name' field is included. Pass additional fields like ['name', 'webhook_doctype', 'webhook_docevent'] to get more data.\").optional(),\n filters: z.array(z.array(z.union([z.string(), z.number().int()]))).describe(\"SQL conditions to filter the listing. Each condition is an array of the format [doctype, field, operator, value]. For example: [['Webhook', 'enabled', '=', 1]]\").optional(),\n limit_start: z.number().int().describe(\"Starting index for pagination. Pass a multiple of limit_page_length to get successive pages. For example, to get the second page with page size 20, pass 20.\").optional(),\n limit_page_length: z.number().int().describe(\"Number of items to return per page. By default, the API returns 20 items.\").optional(),\n}).describe(\"Request model for listing webhook configurations in ERPNext.\");\nconst ErpnextListWebhooks_WebhookItemSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name/ID of the webhook configuration\"),\n enabled: z.number().int().describe(\"Whether the webhook is enabled (1) or disabled (0)\").nullable().optional(),\n request_url: z.string().describe(\"The URL that the webhook sends requests to\").nullable().optional(),\n webhook_doctype: z.string().describe(\"The document type that triggers this webhook\").nullable().optional(),\n webhook_docevent: z.string().describe(\"The document event that triggers this webhook\").nullable().optional(),\n}).passthrough().describe(\"Represents a single webhook configuration. Accepts additional fields\\nbeyond 'name' since the request supports custom field selection.\");\nexport const ErpnextListWebhooksOutput: z.ZodTypeAny = z.object({\n data: z.array(ErpnextListWebhooks_WebhookItemSchema).describe(\"List of webhook configurations returned by the API\"),\n}).describe(\"Response model for listing webhooks.\");\n\nexport const erpnextListWebhooks = action(\"ERPNEXT_LIST_WEBHOOKS\", {\n slug: \"erpnext-list-webhooks\",\n name: \"List Webhooks\",\n description: \"Tool to list webhook configurations in ERPNext. Use when you need to retrieve all configured webhooks or search for specific webhooks using filters.\",\n input: ErpnextListWebhooksInput,\n output: ErpnextListWebhooksOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyCA,IAAAA,EAAE,OAAO;CAC7D,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,yLAAyL,CAAC,CAAC,SAAS;CACzO,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,iKAAiK,CAAC,CAAC,SAAS;CACxP,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8JAA8J,CAAC,CAAC,SAAS;CAChN,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;AACrI,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAM,wCAAsDA,IAAAA,EAAE,OAAO;CACnE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CAChE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wIAAwI;AAClK,MAAa,4BAA0CA,IAAAA,EAAE,OAAO,EAC9D,MAAMA,IAAAA,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,oDAAoD,EACpH,CAAC,CAAC,CAAC,SAAS,sCAAsC;AAElD,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-webhooks.cjs","names":["z","action"],"sources":["../../src/actions/list-webhooks.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextListWebhooksInput = z.object({\n fields: z.array(z.string()).describe(\"List of fields to include in the response. By default, only the 'name' field is included. Pass additional fields like ['name', 'webhook_doctype', 'webhook_docevent'] to get more data.\").optional(),\n filters: z.array(z.array(z.union([z.string(), z.number().int()]))).describe(\"SQL conditions to filter the listing. Each condition is an array of the format [doctype, field, operator, value]. For example: [['Webhook', 'enabled', '=', 1]]\").optional(),\n limit_start: z.number().int().describe(\"Starting index for pagination. Pass a multiple of limit_page_length to get successive pages. For example, to get the second page with page size 20, pass 20.\").optional(),\n limit_page_length: z.number().int().describe(\"Number of items to return per page. By default, the API returns 20 items.\").optional(),\n}).describe(\"Request model for listing webhook configurations in ERPNext.\");\nconst ErpnextListWebhooks_WebhookItemSchema = z.object({\n name: z.string().describe(\"Name/ID of the webhook configuration\").nullable(),\n enabled: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Whether the webhook is enabled (1) or disabled (0)\").optional()),\n request_url: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"The URL that the webhook sends requests to\").optional()),\n webhook_doctype: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"The document type that triggers this webhook\").optional()),\n webhook_docevent: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"The document event that triggers this webhook\").optional()),\n}).passthrough().describe(\"Represents a single webhook configuration. Accepts additional fields\\nbeyond 'name' since the request supports custom field selection.\");\nexport const ErpnextListWebhooksOutput = z.object({\n data: z.array(ErpnextListWebhooks_WebhookItemSchema).describe(\"List of webhook configurations returned by the API\"),\n}).describe(\"Response model for listing webhooks.\");\n\nexport const erpnextListWebhooks = action(\"ERPNEXT_LIST_WEBHOOKS\", {\n slug: \"erpnext-list-webhooks\",\n name: \"List Webhooks\",\n description: \"Tool to list webhook configurations in ERPNext. Use when you need to retrieve all configured webhooks or search for specific webhooks using filters.\",\n input: ErpnextListWebhooksInput,\n output: ErpnextListWebhooksOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,yLAAyL,CAAC,CAAC,SAAS;CACzO,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,iKAAiK,CAAC,CAAC,SAAS;CACxP,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8JAA8J,CAAC,CAAC,SAAS;CAChN,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;AACrI,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAM,wCAAwCA,IAAAA,EAAE,OAAO;CACrD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC3E,SAASA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC;CACjK,aAAaA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC;CACvJ,iBAAiBA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC;CAC7J,kBAAkBA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC;AACjK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wIAAwI;AAClK,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,MAAMA,IAAAA,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,oDAAoD,EACpH,CAAC,CAAC,CAAC,SAAS,sCAAsC;AAElD,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}