@keystrokehq/erpnext 0.1.4 → 0.1.6

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 (413) 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 +1 -0
  4. package/dist/actions/add-comment.cjs.map +1 -1
  5. package/dist/actions/add-comment.d.cts +3 -7
  6. package/dist/actions/add-comment.d.cts.map +1 -1
  7. package/dist/actions/add-comment.d.mts +3 -7
  8. package/dist/actions/add-comment.d.mts.map +1 -1
  9. package/dist/actions/add-comment.mjs +1 -0
  10. package/dist/actions/add-comment.mjs.map +1 -1
  11. package/dist/actions/add-tag.cjs +1 -0
  12. package/dist/actions/add-tag.cjs.map +1 -1
  13. package/dist/actions/add-tag.d.cts +3 -5
  14. package/dist/actions/add-tag.d.cts.map +1 -1
  15. package/dist/actions/add-tag.d.mts +3 -5
  16. package/dist/actions/add-tag.d.mts.map +1 -1
  17. package/dist/actions/add-tag.mjs +1 -0
  18. package/dist/actions/add-tag.mjs.map +1 -1
  19. package/dist/actions/apply-workflow.cjs +1 -0
  20. package/dist/actions/apply-workflow.cjs.map +1 -1
  21. package/dist/actions/apply-workflow.d.cts +3 -4
  22. package/dist/actions/apply-workflow.d.cts.map +1 -1
  23. package/dist/actions/apply-workflow.d.mts +3 -4
  24. package/dist/actions/apply-workflow.d.mts.map +1 -1
  25. package/dist/actions/apply-workflow.mjs +1 -0
  26. package/dist/actions/apply-workflow.mjs.map +1 -1
  27. package/dist/actions/cancel-document.cjs +1 -0
  28. package/dist/actions/cancel-document.cjs.map +1 -1
  29. package/dist/actions/cancel-document.d.cts +3 -4
  30. package/dist/actions/cancel-document.d.cts.map +1 -1
  31. package/dist/actions/cancel-document.d.mts +3 -4
  32. package/dist/actions/cancel-document.d.mts.map +1 -1
  33. package/dist/actions/cancel-document.mjs +1 -0
  34. package/dist/actions/cancel-document.mjs.map +1 -1
  35. package/dist/actions/create-document.cjs +1 -0
  36. package/dist/actions/create-document.cjs.map +1 -1
  37. package/dist/actions/create-document.d.cts +3 -4
  38. package/dist/actions/create-document.d.cts.map +1 -1
  39. package/dist/actions/create-document.d.mts +3 -4
  40. package/dist/actions/create-document.d.mts.map +1 -1
  41. package/dist/actions/create-document.mjs +1 -0
  42. package/dist/actions/create-document.mjs.map +1 -1
  43. package/dist/actions/create-timesheet.cjs +1 -0
  44. package/dist/actions/create-timesheet.cjs.map +1 -1
  45. package/dist/actions/create-timesheet.d.cts +3 -12
  46. package/dist/actions/create-timesheet.d.cts.map +1 -1
  47. package/dist/actions/create-timesheet.d.mts +3 -12
  48. package/dist/actions/create-timesheet.d.mts.map +1 -1
  49. package/dist/actions/create-timesheet.mjs +1 -0
  50. package/dist/actions/create-timesheet.mjs.map +1 -1
  51. package/dist/actions/delete-document.cjs +1 -0
  52. package/dist/actions/delete-document.cjs.map +1 -1
  53. package/dist/actions/delete-document.d.cts +3 -4
  54. package/dist/actions/delete-document.d.cts.map +1 -1
  55. package/dist/actions/delete-document.d.mts +3 -4
  56. package/dist/actions/delete-document.d.mts.map +1 -1
  57. package/dist/actions/delete-document.mjs +1 -0
  58. package/dist/actions/delete-document.mjs.map +1 -1
  59. package/dist/actions/download-file.cjs +1 -0
  60. package/dist/actions/download-file.cjs.map +1 -1
  61. package/dist/actions/download-file.d.cts +3 -3
  62. package/dist/actions/download-file.d.cts.map +1 -1
  63. package/dist/actions/download-file.d.mts +3 -3
  64. package/dist/actions/download-file.d.mts.map +1 -1
  65. package/dist/actions/download-file.mjs +1 -0
  66. package/dist/actions/download-file.mjs.map +1 -1
  67. package/dist/actions/download-pdf.cjs +1 -0
  68. package/dist/actions/download-pdf.cjs.map +1 -1
  69. package/dist/actions/download-pdf.d.cts +3 -6
  70. package/dist/actions/download-pdf.d.cts.map +1 -1
  71. package/dist/actions/download-pdf.d.mts +3 -6
  72. package/dist/actions/download-pdf.d.mts.map +1 -1
  73. package/dist/actions/download-pdf.mjs +1 -0
  74. package/dist/actions/download-pdf.mjs.map +1 -1
  75. package/dist/actions/get-all-languages.cjs +1 -0
  76. package/dist/actions/get-all-languages.cjs.map +1 -1
  77. package/dist/actions/get-all-languages.d.cts +3 -3
  78. package/dist/actions/get-all-languages.d.cts.map +1 -1
  79. package/dist/actions/get-all-languages.d.mts +3 -3
  80. package/dist/actions/get-all-languages.d.mts.map +1 -1
  81. package/dist/actions/get-all-languages.mjs +1 -0
  82. package/dist/actions/get-all-languages.mjs.map +1 -1
  83. package/dist/actions/get-all-roles.cjs +1 -0
  84. package/dist/actions/get-all-roles.cjs.map +1 -1
  85. package/dist/actions/get-all-roles.d.cts +3 -1
  86. package/dist/actions/get-all-roles.d.cts.map +1 -1
  87. package/dist/actions/get-all-roles.d.mts +3 -1
  88. package/dist/actions/get-all-roles.d.mts.map +1 -1
  89. package/dist/actions/get-all-roles.mjs +1 -0
  90. package/dist/actions/get-all-roles.mjs.map +1 -1
  91. package/dist/actions/get-client.cjs +1 -0
  92. package/dist/actions/get-client.cjs.map +1 -1
  93. package/dist/actions/get-client.d.cts +3 -5
  94. package/dist/actions/get-client.d.cts.map +1 -1
  95. package/dist/actions/get-client.d.mts +3 -5
  96. package/dist/actions/get-client.d.mts.map +1 -1
  97. package/dist/actions/get-client.mjs +1 -0
  98. package/dist/actions/get-client.mjs.map +1 -1
  99. package/dist/actions/get-count.cjs +1 -0
  100. package/dist/actions/get-count.cjs.map +1 -1
  101. package/dist/actions/get-count.d.cts +3 -4
  102. package/dist/actions/get-count.d.cts.map +1 -1
  103. package/dist/actions/get-count.d.mts +3 -4
  104. package/dist/actions/get-count.d.mts.map +1 -1
  105. package/dist/actions/get-count.mjs +1 -0
  106. package/dist/actions/get-count.mjs.map +1 -1
  107. package/dist/actions/get-doc-with-meta.cjs +1 -0
  108. package/dist/actions/get-doc-with-meta.cjs.map +1 -1
  109. package/dist/actions/get-doc-with-meta.d.cts +3 -4
  110. package/dist/actions/get-doc-with-meta.d.cts.map +1 -1
  111. package/dist/actions/get-doc-with-meta.d.mts +3 -4
  112. package/dist/actions/get-doc-with-meta.d.mts.map +1 -1
  113. package/dist/actions/get-doc-with-meta.mjs +1 -0
  114. package/dist/actions/get-doc-with-meta.mjs.map +1 -1
  115. package/dist/actions/get-doctype-meta.cjs +1 -0
  116. package/dist/actions/get-doctype-meta.cjs.map +1 -1
  117. package/dist/actions/get-doctype-meta.d.cts +3 -4
  118. package/dist/actions/get-doctype-meta.d.cts.map +1 -1
  119. package/dist/actions/get-doctype-meta.d.mts +3 -4
  120. package/dist/actions/get-doctype-meta.d.mts.map +1 -1
  121. package/dist/actions/get-doctype-meta.mjs +1 -0
  122. package/dist/actions/get-doctype-meta.mjs.map +1 -1
  123. package/dist/actions/get-document.cjs +1 -0
  124. package/dist/actions/get-document.cjs.map +1 -1
  125. package/dist/actions/get-document.d.cts +3 -6
  126. package/dist/actions/get-document.d.cts.map +1 -1
  127. package/dist/actions/get-document.d.mts +3 -6
  128. package/dist/actions/get-document.d.mts.map +1 -1
  129. package/dist/actions/get-document.mjs +1 -0
  130. package/dist/actions/get-document.mjs.map +1 -1
  131. package/dist/actions/get-exchange-rate.cjs +1 -0
  132. package/dist/actions/get-exchange-rate.cjs.map +1 -1
  133. package/dist/actions/get-exchange-rate.d.cts +3 -5
  134. package/dist/actions/get-exchange-rate.d.cts.map +1 -1
  135. package/dist/actions/get-exchange-rate.d.mts +3 -5
  136. package/dist/actions/get-exchange-rate.d.mts.map +1 -1
  137. package/dist/actions/get-exchange-rate.mjs +1 -0
  138. package/dist/actions/get-exchange-rate.mjs.map +1 -1
  139. package/dist/actions/get-fiscal-year.cjs +1 -0
  140. package/dist/actions/get-fiscal-year.cjs.map +1 -1
  141. package/dist/actions/get-fiscal-year.d.cts +3 -4
  142. package/dist/actions/get-fiscal-year.d.cts.map +1 -1
  143. package/dist/actions/get-fiscal-year.d.mts +3 -4
  144. package/dist/actions/get-fiscal-year.d.mts.map +1 -1
  145. package/dist/actions/get-fiscal-year.mjs +1 -0
  146. package/dist/actions/get-fiscal-year.mjs.map +1 -1
  147. package/dist/actions/get-framework-version.cjs +1 -0
  148. package/dist/actions/get-framework-version.cjs.map +1 -1
  149. package/dist/actions/get-framework-version.d.cts +3 -1
  150. package/dist/actions/get-framework-version.d.cts.map +1 -1
  151. package/dist/actions/get-framework-version.d.mts +3 -1
  152. package/dist/actions/get-framework-version.d.mts.map +1 -1
  153. package/dist/actions/get-framework-version.mjs +1 -0
  154. package/dist/actions/get-framework-version.mjs.map +1 -1
  155. package/dist/actions/get-item-details.cjs +1 -0
  156. package/dist/actions/get-item-details.cjs.map +1 -1
  157. package/dist/actions/get-item-details.d.cts +3 -14
  158. package/dist/actions/get-item-details.d.cts.map +1 -1
  159. package/dist/actions/get-item-details.d.mts +3 -14
  160. package/dist/actions/get-item-details.d.mts.map +1 -1
  161. package/dist/actions/get-item-details.mjs +1 -0
  162. package/dist/actions/get-item-details.mjs.map +1 -1
  163. package/dist/actions/get-list.cjs +1 -0
  164. package/dist/actions/get-list.cjs.map +1 -1
  165. package/dist/actions/get-list.d.cts +3 -8
  166. package/dist/actions/get-list.d.cts.map +1 -1
  167. package/dist/actions/get-list.d.mts +3 -8
  168. package/dist/actions/get-list.d.mts.map +1 -1
  169. package/dist/actions/get-list.mjs +1 -0
  170. package/dist/actions/get-list.mjs.map +1 -1
  171. package/dist/actions/get-logged-user.cjs +1 -0
  172. package/dist/actions/get-logged-user.cjs.map +1 -1
  173. package/dist/actions/get-logged-user.d.cts +3 -1
  174. package/dist/actions/get-logged-user.d.cts.map +1 -1
  175. package/dist/actions/get-logged-user.d.mts +3 -1
  176. package/dist/actions/get-logged-user.d.mts.map +1 -1
  177. package/dist/actions/get-logged-user.mjs +1 -0
  178. package/dist/actions/get-logged-user.mjs.map +1 -1
  179. package/dist/actions/get-party-details.cjs +1 -0
  180. package/dist/actions/get-party-details.cjs.map +1 -1
  181. package/dist/actions/get-party-details.d.cts +3 -5
  182. package/dist/actions/get-party-details.d.cts.map +1 -1
  183. package/dist/actions/get-party-details.d.mts +3 -5
  184. package/dist/actions/get-party-details.d.mts.map +1 -1
  185. package/dist/actions/get-party-details.mjs +1 -0
  186. package/dist/actions/get-party-details.mjs.map +1 -1
  187. package/dist/actions/get-payment-entry.cjs +1 -0
  188. package/dist/actions/get-payment-entry.cjs.map +1 -1
  189. package/dist/actions/get-payment-entry.d.cts +3 -4
  190. package/dist/actions/get-payment-entry.d.cts.map +1 -1
  191. package/dist/actions/get-payment-entry.d.mts +3 -4
  192. package/dist/actions/get-payment-entry.d.mts.map +1 -1
  193. package/dist/actions/get-payment-entry.mjs +1 -0
  194. package/dist/actions/get-payment-entry.mjs.map +1 -1
  195. package/dist/actions/get-stock-balance.cjs +1 -0
  196. package/dist/actions/get-stock-balance.cjs.map +1 -1
  197. package/dist/actions/get-stock-balance.d.cts +3 -5
  198. package/dist/actions/get-stock-balance.d.cts.map +1 -1
  199. package/dist/actions/get-stock-balance.d.mts +3 -5
  200. package/dist/actions/get-stock-balance.d.mts.map +1 -1
  201. package/dist/actions/get-stock-balance.mjs +1 -0
  202. package/dist/actions/get-stock-balance.mjs.map +1 -1
  203. package/dist/actions/get-timezones.cjs +1 -0
  204. package/dist/actions/get-timezones.cjs.map +1 -1
  205. package/dist/actions/get-timezones.d.cts +3 -1
  206. package/dist/actions/get-timezones.d.cts.map +1 -1
  207. package/dist/actions/get-timezones.d.mts +3 -1
  208. package/dist/actions/get-timezones.d.mts.map +1 -1
  209. package/dist/actions/get-timezones.mjs +1 -0
  210. package/dist/actions/get-timezones.mjs.map +1 -1
  211. package/dist/actions/get-user-roles.cjs +1 -0
  212. package/dist/actions/get-user-roles.cjs.map +1 -1
  213. package/dist/actions/get-user-roles.d.cts +3 -3
  214. package/dist/actions/get-user-roles.d.cts.map +1 -1
  215. package/dist/actions/get-user-roles.d.mts +3 -3
  216. package/dist/actions/get-user-roles.d.mts.map +1 -1
  217. package/dist/actions/get-user-roles.mjs +1 -0
  218. package/dist/actions/get-user-roles.mjs.map +1 -1
  219. package/dist/actions/get-value.cjs +1 -0
  220. package/dist/actions/get-value.cjs.map +1 -1
  221. package/dist/actions/get-value.d.cts +3 -6
  222. package/dist/actions/get-value.d.cts.map +1 -1
  223. package/dist/actions/get-value.d.mts +3 -6
  224. package/dist/actions/get-value.d.mts.map +1 -1
  225. package/dist/actions/get-value.mjs +1 -0
  226. package/dist/actions/get-value.mjs.map +1 -1
  227. package/dist/actions/get-workflow-transitions.cjs +1 -0
  228. package/dist/actions/get-workflow-transitions.cjs.map +1 -1
  229. package/dist/actions/get-workflow-transitions.d.cts +3 -4
  230. package/dist/actions/get-workflow-transitions.d.cts.map +1 -1
  231. package/dist/actions/get-workflow-transitions.d.mts +3 -4
  232. package/dist/actions/get-workflow-transitions.d.mts.map +1 -1
  233. package/dist/actions/get-workflow-transitions.mjs +1 -0
  234. package/dist/actions/get-workflow-transitions.mjs.map +1 -1
  235. package/dist/actions/insert-document.cjs +1 -0
  236. package/dist/actions/insert-document.cjs.map +1 -1
  237. package/dist/actions/insert-document.d.cts +3 -3
  238. package/dist/actions/insert-document.d.cts.map +1 -1
  239. package/dist/actions/insert-document.d.mts +3 -3
  240. package/dist/actions/insert-document.d.mts.map +1 -1
  241. package/dist/actions/insert-document.mjs +1 -0
  242. package/dist/actions/insert-document.mjs.map +1 -1
  243. package/dist/actions/insert-many.cjs +1 -0
  244. package/dist/actions/insert-many.cjs.map +1 -1
  245. package/dist/actions/insert-many.d.cts +3 -3
  246. package/dist/actions/insert-many.d.cts.map +1 -1
  247. package/dist/actions/insert-many.d.mts +3 -3
  248. package/dist/actions/insert-many.d.mts.map +1 -1
  249. package/dist/actions/insert-many.mjs +1 -0
  250. package/dist/actions/insert-many.mjs.map +1 -1
  251. package/dist/actions/list-doctypes.cjs +1 -0
  252. package/dist/actions/list-doctypes.cjs.map +1 -1
  253. package/dist/actions/list-doctypes.d.cts +3 -6
  254. package/dist/actions/list-doctypes.d.cts.map +1 -1
  255. package/dist/actions/list-doctypes.d.mts +3 -6
  256. package/dist/actions/list-doctypes.d.mts.map +1 -1
  257. package/dist/actions/list-doctypes.mjs +1 -0
  258. package/dist/actions/list-doctypes.mjs.map +1 -1
  259. package/dist/actions/list-documents.cjs +1 -0
  260. package/dist/actions/list-documents.cjs.map +1 -1
  261. package/dist/actions/list-documents.d.cts +3 -7
  262. package/dist/actions/list-documents.d.cts.map +1 -1
  263. package/dist/actions/list-documents.d.mts +3 -7
  264. package/dist/actions/list-documents.d.mts.map +1 -1
  265. package/dist/actions/list-documents.mjs +1 -0
  266. package/dist/actions/list-documents.mjs.map +1 -1
  267. package/dist/actions/list-employees.cjs +1 -0
  268. package/dist/actions/list-employees.cjs.map +1 -1
  269. package/dist/actions/list-employees.d.cts +3 -6
  270. package/dist/actions/list-employees.d.cts.map +1 -1
  271. package/dist/actions/list-employees.d.mts +3 -6
  272. package/dist/actions/list-employees.d.mts.map +1 -1
  273. package/dist/actions/list-employees.mjs +1 -0
  274. package/dist/actions/list-employees.mjs.map +1 -1
  275. package/dist/actions/list-projects.cjs +1 -0
  276. package/dist/actions/list-projects.cjs.map +1 -1
  277. package/dist/actions/list-projects.d.cts +3 -6
  278. package/dist/actions/list-projects.d.cts.map +1 -1
  279. package/dist/actions/list-projects.d.mts +3 -6
  280. package/dist/actions/list-projects.d.mts.map +1 -1
  281. package/dist/actions/list-projects.mjs +1 -0
  282. package/dist/actions/list-projects.mjs.map +1 -1
  283. package/dist/actions/list-timesheets.cjs +1 -0
  284. package/dist/actions/list-timesheets.cjs.map +1 -1
  285. package/dist/actions/list-timesheets.d.cts +3 -6
  286. package/dist/actions/list-timesheets.d.cts.map +1 -1
  287. package/dist/actions/list-timesheets.d.mts +3 -6
  288. package/dist/actions/list-timesheets.d.mts.map +1 -1
  289. package/dist/actions/list-timesheets.mjs +1 -0
  290. package/dist/actions/list-timesheets.mjs.map +1 -1
  291. package/dist/actions/list-webhooks.cjs +1 -0
  292. package/dist/actions/list-webhooks.cjs.map +1 -1
  293. package/dist/actions/list-webhooks.d.cts +3 -6
  294. package/dist/actions/list-webhooks.d.cts.map +1 -1
  295. package/dist/actions/list-webhooks.d.mts +3 -6
  296. package/dist/actions/list-webhooks.d.mts.map +1 -1
  297. package/dist/actions/list-webhooks.mjs +1 -0
  298. package/dist/actions/list-webhooks.mjs.map +1 -1
  299. package/dist/actions/make-delivery-note.cjs +1 -0
  300. package/dist/actions/make-delivery-note.cjs.map +1 -1
  301. package/dist/actions/make-delivery-note.d.cts +3 -3
  302. package/dist/actions/make-delivery-note.d.cts.map +1 -1
  303. package/dist/actions/make-delivery-note.d.mts +3 -3
  304. package/dist/actions/make-delivery-note.d.mts.map +1 -1
  305. package/dist/actions/make-delivery-note.mjs +1 -0
  306. package/dist/actions/make-delivery-note.mjs.map +1 -1
  307. package/dist/actions/make-purchase-order.cjs +1 -0
  308. package/dist/actions/make-purchase-order.cjs.map +1 -1
  309. package/dist/actions/make-purchase-order.d.cts +3 -3
  310. package/dist/actions/make-purchase-order.d.cts.map +1 -1
  311. package/dist/actions/make-purchase-order.d.mts +3 -3
  312. package/dist/actions/make-purchase-order.d.mts.map +1 -1
  313. package/dist/actions/make-purchase-order.mjs +1 -0
  314. package/dist/actions/make-purchase-order.mjs.map +1 -1
  315. package/dist/actions/make-sales-invoice.cjs +1 -0
  316. package/dist/actions/make-sales-invoice.cjs.map +1 -1
  317. package/dist/actions/make-sales-invoice.d.cts +3 -3
  318. package/dist/actions/make-sales-invoice.d.cts.map +1 -1
  319. package/dist/actions/make-sales-invoice.d.mts +3 -3
  320. package/dist/actions/make-sales-invoice.d.mts.map +1 -1
  321. package/dist/actions/make-sales-invoice.mjs +1 -0
  322. package/dist/actions/make-sales-invoice.mjs.map +1 -1
  323. package/dist/actions/make-stock-entry.cjs +1 -0
  324. package/dist/actions/make-stock-entry.cjs.map +1 -1
  325. package/dist/actions/make-stock-entry.d.cts +3 -8
  326. package/dist/actions/make-stock-entry.d.cts.map +1 -1
  327. package/dist/actions/make-stock-entry.d.mts +3 -8
  328. package/dist/actions/make-stock-entry.d.mts.map +1 -1
  329. package/dist/actions/make-stock-entry.mjs +1 -0
  330. package/dist/actions/make-stock-entry.mjs.map +1 -1
  331. package/dist/actions/ping.cjs +1 -0
  332. package/dist/actions/ping.cjs.map +1 -1
  333. package/dist/actions/ping.d.cts +3 -1
  334. package/dist/actions/ping.d.cts.map +1 -1
  335. package/dist/actions/ping.d.mts +3 -1
  336. package/dist/actions/ping.d.mts.map +1 -1
  337. package/dist/actions/ping.mjs +1 -0
  338. package/dist/actions/ping.mjs.map +1 -1
  339. package/dist/actions/rename-doc.cjs +1 -0
  340. package/dist/actions/rename-doc.cjs.map +1 -1
  341. package/dist/actions/rename-doc.d.cts +3 -6
  342. package/dist/actions/rename-doc.d.cts.map +1 -1
  343. package/dist/actions/rename-doc.d.mts +3 -6
  344. package/dist/actions/rename-doc.d.mts.map +1 -1
  345. package/dist/actions/rename-doc.mjs +1 -0
  346. package/dist/actions/rename-doc.mjs.map +1 -1
  347. package/dist/actions/save-docs.cjs +1 -0
  348. package/dist/actions/save-docs.cjs.map +1 -1
  349. package/dist/actions/save-docs.d.cts +3 -4
  350. package/dist/actions/save-docs.d.cts.map +1 -1
  351. package/dist/actions/save-docs.d.mts +3 -4
  352. package/dist/actions/save-docs.d.mts.map +1 -1
  353. package/dist/actions/save-docs.mjs +1 -0
  354. package/dist/actions/save-docs.mjs.map +1 -1
  355. package/dist/actions/save-document.cjs +1 -0
  356. package/dist/actions/save-document.cjs.map +1 -1
  357. package/dist/actions/save-document.d.cts +3 -13
  358. package/dist/actions/save-document.d.cts.map +1 -1
  359. package/dist/actions/save-document.d.mts +3 -13
  360. package/dist/actions/save-document.d.mts.map +1 -1
  361. package/dist/actions/save-document.mjs +1 -0
  362. package/dist/actions/save-document.mjs.map +1 -1
  363. package/dist/actions/search-global.cjs +1 -0
  364. package/dist/actions/search-global.cjs.map +1 -1
  365. package/dist/actions/search-global.d.cts +3 -6
  366. package/dist/actions/search-global.d.cts.map +1 -1
  367. package/dist/actions/search-global.d.mts +3 -6
  368. package/dist/actions/search-global.d.mts.map +1 -1
  369. package/dist/actions/search-global.mjs +1 -0
  370. package/dist/actions/search-global.mjs.map +1 -1
  371. package/dist/actions/search-link.cjs +1 -0
  372. package/dist/actions/search-link.cjs.map +1 -1
  373. package/dist/actions/search-link.d.cts +3 -11
  374. package/dist/actions/search-link.d.cts.map +1 -1
  375. package/dist/actions/search-link.d.mts +3 -11
  376. package/dist/actions/search-link.d.mts.map +1 -1
  377. package/dist/actions/search-link.mjs +1 -0
  378. package/dist/actions/search-link.mjs.map +1 -1
  379. package/dist/actions/set-value.cjs +1 -0
  380. package/dist/actions/set-value.cjs.map +1 -1
  381. package/dist/actions/set-value.d.cts +3 -6
  382. package/dist/actions/set-value.d.cts.map +1 -1
  383. package/dist/actions/set-value.d.mts +3 -6
  384. package/dist/actions/set-value.d.mts.map +1 -1
  385. package/dist/actions/set-value.mjs +1 -0
  386. package/dist/actions/set-value.mjs.map +1 -1
  387. package/dist/actions/submit-document.cjs +1 -0
  388. package/dist/actions/submit-document.cjs.map +1 -1
  389. package/dist/actions/submit-document.d.cts +3 -3
  390. package/dist/actions/submit-document.d.cts.map +1 -1
  391. package/dist/actions/submit-document.d.mts +3 -3
  392. package/dist/actions/submit-document.d.mts.map +1 -1
  393. package/dist/actions/submit-document.mjs +1 -0
  394. package/dist/actions/submit-document.mjs.map +1 -1
  395. package/dist/actions/update-document.cjs +1 -0
  396. package/dist/actions/update-document.cjs.map +1 -1
  397. package/dist/actions/update-document.d.cts +3 -5
  398. package/dist/actions/update-document.d.cts.map +1 -1
  399. package/dist/actions/update-document.d.mts +3 -5
  400. package/dist/actions/update-document.d.mts.map +1 -1
  401. package/dist/actions/update-document.mjs +1 -0
  402. package/dist/actions/update-document.mjs.map +1 -1
  403. package/dist/app.cjs +10 -2
  404. package/dist/app.cjs.map +1 -1
  405. package/dist/app.d.cts +9 -1
  406. package/dist/app.d.cts.map +1 -1
  407. package/dist/app.d.mts +9 -1
  408. package/dist/app.d.mts.map +1 -1
  409. package/dist/app.mjs +7 -2
  410. package/dist/app.mjs.map +1 -1
  411. package/dist/index.d.cts +1 -1
  412. package/dist/index.d.mts +1 -1
  413. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"get-client.mjs","names":[],"sources":["../../src/actions/get-client.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetClientInput = z.object({\n name: z.string().describe(\"The unique name/identifier of the specific document to retrieve. If provided, this takes precedence over filters.\").optional(),\n doctype: z.string().describe(\"The DocType to query (e.g., 'User', 'Customer', 'Item'). DocTypes are the document types defined in your Frappe/ERPNext instance.\"),\n filters: z.record(z.string(), z.unknown()).describe(\"Filter conditions to find the document when name is not provided. Should be a dictionary of field-value pairs. Example: {'email': 'user@example.com'}\").optional(),\n}).describe(\"Request model for getting a single document by DocType and name or filters.\");\nconst ErpnextGetClient_DocumentDataSchema = z.object({\n idx: z.number().int().describe(\"Index number\").nullable().optional(),\n name: z.string().describe(\"Unique identifier of the document\").nullable(),\n owner: z.string().describe(\"User who created the document\").nullable().optional(),\n doctype: z.string().describe(\"Type of the document\").nullable().optional(),\n creation: z.string().describe(\"Document creation timestamp\").nullable().optional(),\n modified: z.string().describe(\"Last modification timestamp\").nullable().optional(),\n docstatus: z.number().int().describe(\"Document status (0=Draft, 1=Submitted, 2=Cancelled)\").nullable().optional(),\n modified_by: z.string().describe(\"User who last modified the document\").nullable().optional(),\n}).passthrough().describe(\"Document object with metadata and doctype-specific fields.\");\nexport const ErpnextGetClientOutput = z.object({\n message: ErpnextGetClient_DocumentDataSchema.nullable(),\n}).passthrough().describe(\"Response model containing the retrieved document data.\");\n\nexport const erpnextGetClient = action(\"ERPNEXT_GET_CLIENT\", {\n slug: \"erpnext-get-client\",\n name: \"Get Document\",\n description: \"Tool to get a single document by DocType and name or filters from Frappe/ERPNext. Use when you need to retrieve a specific document's complete details.\",\n input: ErpnextGetClient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,EAAE,OAAO,EAC7C,SAAS,oCAAoC,SAAS,EACxD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wDAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"get-client.mjs","names":[],"sources":["../../src/actions/get-client.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { erpnext } from \"../app\";\n\nexport const ErpnextGetClientInput = z.object({\n name: z.string().describe(\"The unique name/identifier of the specific document to retrieve. If provided, this takes precedence over filters.\").optional(),\n doctype: z.string().describe(\"The DocType to query (e.g., 'User', 'Customer', 'Item'). DocTypes are the document types defined in your Frappe/ERPNext instance.\"),\n filters: z.record(z.string(), z.unknown()).describe(\"Filter conditions to find the document when name is not provided. Should be a dictionary of field-value pairs. Example: {'email': 'user@example.com'}\").optional(),\n}).describe(\"Request model for getting a single document by DocType and name or filters.\");\nconst ErpnextGetClient_DocumentDataSchema = z.object({\n idx: z.number().int().describe(\"Index number\").nullable().optional(),\n name: z.string().describe(\"Unique identifier of the document\").nullable(),\n owner: z.string().describe(\"User who created the document\").nullable().optional(),\n doctype: z.string().describe(\"Type of the document\").nullable().optional(),\n creation: z.string().describe(\"Document creation timestamp\").nullable().optional(),\n modified: z.string().describe(\"Last modification timestamp\").nullable().optional(),\n docstatus: z.number().int().describe(\"Document status (0=Draft, 1=Submitted, 2=Cancelled)\").nullable().optional(),\n modified_by: z.string().describe(\"User who last modified the document\").nullable().optional(),\n}).passthrough().describe(\"Document object with metadata and doctype-specific fields.\");\nexport const ErpnextGetClientOutput = z.object({\n message: ErpnextGetClient_DocumentDataSchema.nullable(),\n}).passthrough().describe(\"Response model containing the retrieved document data.\");\n\nexport const erpnextGetClient: AppAction<\n typeof ErpnextGetClientInput,\n typeof ErpnextGetClientOutput,\n typeof erpnext.credential\n> = action(\"ERPNEXT_GET_CLIENT\", {\n slug: \"erpnext-get-client\",\n name: \"Get Document\",\n description: \"Tool to get a single document by DocType and name or filters from Frappe/ERPNext. Use when you need to retrieve a specific document's complete details.\",\n input: ErpnextGetClientInput,\n output: ErpnextGetClientOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,wBAAwB,EAAE,OAAO;CAC5C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mHAAmH,CAAC,CAAC,SAAS;CACxJ,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,mIAAmI;CAChK,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,uJAAuJ,CAAC,CAAC,SAAS;AACxN,CAAC,CAAC,CAAC,SAAS,6EAA6E;AACzF,MAAM,sCAAsC,EAAE,OAAO;CACnD,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACxE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4DAA4D;AAKtF,MAAa,mBAIT,OAAO,sBAAsB;CAC/B,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAboC,EAAE,OAAO,EAC7C,SAAS,oCAAoC,SAAS,EACxD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wDAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/get-count.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-count.cjs","names":["z","action"],"sources":["../../src/actions/get-count.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetCountInput = z.object({\n doctype: z.string().describe(\"The DocType name to count documents for (e.g., 'User', 'Task', 'Project'). Must be a valid DocType in the ERPNext/Frappe system.\"),\n filters: z.record(z.string(), z.unknown()).describe(\"Optional filter conditions to apply when counting documents. Format: {field_name: value} or {field_name: ['operator', value]}. Example: {'status': 'Open'} or {'creation': ['>', '2024-01-01']}.\").optional(),\n}).describe(\"Request model for getting the count of documents matching filters.\");\nexport const ErpnextGetCountOutput = z.object({\n message: z.number().int().describe(\"The count of documents matching the specified DocType and filters.\").nullable(),\n}).passthrough().describe(\"Response model for document count query.\");\n\nexport const erpnextGetCount = action(\"ERPNEXT_GET_COUNT\", {\n slug: \"erpnext-get-count\",\n name: \"Get Document Count\",\n description: \"Tool to get the count of documents matching specified filters in ERPNext/Frappe. Use when you need to know how many records exist for a specific DocType, optionally filtered by conditions.\",\n input: ErpnextGetCountInput,\n output: ErpnextGetCountOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uBAAuBA,IAAAA,EAAE,OAAO;CAC3C,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kIAAkI;CAC/J,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kMAAkM,CAAC,CAAC,SAAS;AACnQ,CAAC,CAAC,CAAC,SAAS,oEAAoE;AAChF,MAAa,wBAAwBA,IAAAA,EAAE,OAAO,EAC5C,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS,EACpH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAA0C;AAEpE,MAAa,kBAAkBC,eAAAA,OAAO,qBAAqB;CACzD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-count.cjs","names":["z","action"],"sources":["../../src/actions/get-count.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { erpnext } from \"../app\";\n\nexport const ErpnextGetCountInput = z.object({\n doctype: z.string().describe(\"The DocType name to count documents for (e.g., 'User', 'Task', 'Project'). Must be a valid DocType in the ERPNext/Frappe system.\"),\n filters: z.record(z.string(), z.unknown()).describe(\"Optional filter conditions to apply when counting documents. Format: {field_name: value} or {field_name: ['operator', value]}. Example: {'status': 'Open'} or {'creation': ['>', '2024-01-01']}.\").optional(),\n}).describe(\"Request model for getting the count of documents matching filters.\");\nexport const ErpnextGetCountOutput = z.object({\n message: z.number().int().describe(\"The count of documents matching the specified DocType and filters.\").nullable(),\n}).passthrough().describe(\"Response model for document count query.\");\n\nexport const erpnextGetCount: AppAction<\n typeof ErpnextGetCountInput,\n typeof ErpnextGetCountOutput,\n typeof erpnext.credential\n> = action(\"ERPNEXT_GET_COUNT\", {\n slug: \"erpnext-get-count\",\n name: \"Get Document Count\",\n description: \"Tool to get the count of documents matching specified filters in ERPNext/Frappe. Use when you need to know how many records exist for a specific DocType, optionally filtered by conditions.\",\n input: ErpnextGetCountInput,\n output: ErpnextGetCountOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,uBAAuBA,IAAAA,EAAE,OAAO;CAC3C,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kIAAkI;CAC/J,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kMAAkM,CAAC,CAAC,SAAS;AACnQ,CAAC,CAAC,CAAC,SAAS,oEAAoE;AAChF,MAAa,wBAAwBA,IAAAA,EAAE,OAAO,EAC5C,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS,EACpH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAA0C;AAEpE,MAAa,kBAITC,eAAAA,OAAO,qBAAqB;CAC9B,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { erpnext } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-count.d.ts
@@ -8,10 +10,7 @@ declare const ErpnextGetCountInput: z.ZodObject<{
8
10
  declare const ErpnextGetCountOutput: z.ZodObject<{
9
11
  message: z.ZodNullable<z.ZodNumber>;
10
12
  }, z.core.$loose>;
11
- declare const erpnextGetCount: import("@keystrokehq/action").WorkflowActionDefinition<{
12
- doctype: string;
13
- filters?: Record<string, unknown> | undefined;
14
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
13
+ declare const erpnextGetCount: AppAction<typeof ErpnextGetCountInput, typeof ErpnextGetCountOutput, typeof erpnext.credential>;
15
14
  //#endregion
16
15
  export { erpnextGetCount };
17
16
  //# sourceMappingURL=get-count.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-count.d.cts","names":[],"sources":["../../src/actions/get-count.ts"],"mappings":";;;cAIa,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;cAIpB,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;cAIrB,eAAA,gCAAe,wBAAA;;YAM1B,MAAA;AAAA"}
1
+ {"version":3,"file":"get-count.d.cts","names":[],"sources":["../../src/actions/get-count.ts"],"mappings":";;;;;cAMa,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;cAIpB,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;cAIrB,eAAA,EAAiB,SAAA,QACrB,oBAAA,SACA,qBAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { erpnext } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-count.d.ts
@@ -8,10 +10,7 @@ declare const ErpnextGetCountInput: z.ZodObject<{
8
10
  declare const ErpnextGetCountOutput: z.ZodObject<{
9
11
  message: z.ZodNullable<z.ZodNumber>;
10
12
  }, z.core.$loose>;
11
- declare const erpnextGetCount: import("@keystrokehq/action").WorkflowActionDefinition<{
12
- doctype: string;
13
- filters?: Record<string, unknown> | undefined;
14
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
13
+ declare const erpnextGetCount: AppAction<typeof ErpnextGetCountInput, typeof ErpnextGetCountOutput, typeof erpnext.credential>;
15
14
  //#endregion
16
15
  export { erpnextGetCount };
17
16
  //# sourceMappingURL=get-count.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-count.d.mts","names":[],"sources":["../../src/actions/get-count.ts"],"mappings":";;;cAIa,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;cAIpB,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;cAIrB,eAAA,gCAAe,wBAAA;;YAM1B,MAAA;AAAA"}
1
+ {"version":3,"file":"get-count.d.mts","names":[],"sources":["../../src/actions/get-count.ts"],"mappings":";;;;;cAMa,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;cAIpB,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;cAIrB,eAAA,EAAiB,SAAA,QACrB,oBAAA,SACA,qBAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const erpnextGetCount = action("ERPNEXT_GET_COUNT", {
@@ -1 +1 @@
1
- {"version":3,"file":"get-count.mjs","names":[],"sources":["../../src/actions/get-count.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetCountInput = z.object({\n doctype: z.string().describe(\"The DocType name to count documents for (e.g., 'User', 'Task', 'Project'). Must be a valid DocType in the ERPNext/Frappe system.\"),\n filters: z.record(z.string(), z.unknown()).describe(\"Optional filter conditions to apply when counting documents. Format: {field_name: value} or {field_name: ['operator', value]}. Example: {'status': 'Open'} or {'creation': ['>', '2024-01-01']}.\").optional(),\n}).describe(\"Request model for getting the count of documents matching filters.\");\nexport const ErpnextGetCountOutput = z.object({\n message: z.number().int().describe(\"The count of documents matching the specified DocType and filters.\").nullable(),\n}).passthrough().describe(\"Response model for document count query.\");\n\nexport const erpnextGetCount = action(\"ERPNEXT_GET_COUNT\", {\n slug: \"erpnext-get-count\",\n name: \"Get Document Count\",\n description: \"Tool to get the count of documents matching specified filters in ERPNext/Frappe. Use when you need to know how many records exist for a specific DocType, optionally filtered by conditions.\",\n input: ErpnextGetCountInput,\n output: ErpnextGetCountOutput,\n});\n"],"mappings":";;AAYA,MAAa,kBAAkB,OAAO,qBAAqB;CACzD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZkC,EAAE,OAAO;EAC3C,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,kIAAkI;EAC/J,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kMAAkM,CAAC,CAAC,SAAS;CACnQ,CAAC,CAAC,CAAC,SAAS,oEASH;CACP,QATmC,EAAE,OAAO,EAC5C,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS,EACpH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"get-count.mjs","names":[],"sources":["../../src/actions/get-count.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { erpnext } from \"../app\";\n\nexport const ErpnextGetCountInput = z.object({\n doctype: z.string().describe(\"The DocType name to count documents for (e.g., 'User', 'Task', 'Project'). Must be a valid DocType in the ERPNext/Frappe system.\"),\n filters: z.record(z.string(), z.unknown()).describe(\"Optional filter conditions to apply when counting documents. Format: {field_name: value} or {field_name: ['operator', value]}. Example: {'status': 'Open'} or {'creation': ['>', '2024-01-01']}.\").optional(),\n}).describe(\"Request model for getting the count of documents matching filters.\");\nexport const ErpnextGetCountOutput = z.object({\n message: z.number().int().describe(\"The count of documents matching the specified DocType and filters.\").nullable(),\n}).passthrough().describe(\"Response model for document count query.\");\n\nexport const erpnextGetCount: AppAction<\n typeof ErpnextGetCountInput,\n typeof ErpnextGetCountOutput,\n typeof erpnext.credential\n> = action(\"ERPNEXT_GET_COUNT\", {\n slug: \"erpnext-get-count\",\n name: \"Get Document Count\",\n description: \"Tool to get the count of documents matching specified filters in ERPNext/Frappe. Use when you need to know how many records exist for a specific DocType, optionally filtered by conditions.\",\n input: ErpnextGetCountInput,\n output: ErpnextGetCountOutput,\n});\n"],"mappings":";;;AAcA,MAAa,kBAIT,OAAO,qBAAqB;CAC9B,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhBkC,EAAE,OAAO;EAC3C,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,kIAAkI;EAC/J,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kMAAkM,CAAC,CAAC,SAAS;CACnQ,CAAC,CAAC,CAAC,SAAS,oEAaH;CACP,QAbmC,EAAE,OAAO,EAC5C,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS,EACpH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/get-doc-with-meta.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-doc-with-meta.cjs","names":["z","action"],"sources":["../../src/actions/get-doc-with-meta.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetDocWithMetaInput = z.object({\n name: z.string().describe(\"The unique name/identifier of the document to retrieve\"),\n doctype: z.string().describe(\"The DocType name (e.g., 'Account', 'Customer', 'Sales Order')\"),\n}).describe(\"Request model for retrieving a document with full metadata.\");\nconst ErpnextGetDocWithMeta_DocInfoSchema = z.object({\n tags: z.string().describe(\"Comma-separated tags associated with the document\").nullable().optional(),\n views: z.array(z.record(z.string(), z.unknown())).describe(\"Document view logs\").nullable().optional(),\n shared: z.array(z.record(z.string(), z.unknown())).describe(\"Document sharing information\").nullable().optional(),\n ratings: z.array(z.record(z.string(), z.unknown())).describe(\"Document ratings\").nullable().optional(),\n comments: z.array(z.record(z.string(), z.unknown())).describe(\"Comments on the document\").nullable().optional(),\n versions: z.array(z.record(z.string(), z.unknown())).describe(\"Version history information\").nullable().optional(),\n milestones: z.array(z.record(z.string(), z.unknown())).describe(\"Milestone information\").nullable().optional(),\n assignments: z.array(z.record(z.string(), z.unknown())).describe(\"User assignments for the document\").nullable().optional(),\n attachments: z.array(z.record(z.string(), z.unknown())).describe(\"List of file attachments linked to the document\").nullable().optional(),\n permissions: z.record(z.string(), z.unknown()).describe(\"Permission information for the current user\").nullable().optional(),\n total_views: z.number().int().describe(\"Total number of views for the document\").nullable().optional(),\n communications: z.array(z.record(z.string(), z.unknown())).describe(\"Related communication records\").nullable().optional(),\n document_email: z.string().describe(\"Email address associated with the document\").nullable().optional(),\n total_comments: z.number().int().describe(\"Total number of comments on the document\").nullable().optional(),\n energy_point_logs: z.array(z.record(z.string(), z.unknown())).describe(\"Energy point logs related to the document\").nullable().optional(),\n is_document_followed: z.number().int().describe(\"Whether the document is followed by the current user (0 or 1)\").nullable().optional(),\n additional_timeline_content: z.union([z.string(), z.array(z.unknown())]).nullable().optional(),\n}).passthrough().describe(\"Document metadata including attachments, comments, and activity information.\");\nexport const ErpnextGetDocWithMetaOutput = z.object({\n docs: z.array(z.record(z.string(), z.unknown())).describe(\"List of document objects including the main document and any child tables with their fields\").nullable().optional(),\n docinfo: ErpnextGetDocWithMeta_DocInfoSchema.nullable().optional(),\n user_info: z.record(z.string(), z.unknown()).describe(\"User information and permissions related to the document\").nullable().optional(),\n}).passthrough().describe(\"Response model containing document data with full metadata.\");\n\nexport const erpnextGetDocWithMeta = action(\"ERPNEXT_GET_DOC_WITH_META\", {\n slug: \"erpnext-get-doc-with-meta\",\n name: \"Get Document with Metadata\",\n description: \"Tool to retrieve a document with full metadata including attachments, comments, activity logs, and related information. Use when you need complete document details beyond the basic fields returned by standard GET requests.\",\n input: ErpnextGetDocWithMetaInput,\n output: ErpnextGetDocWithMetaOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD;CAClF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D;AAC9F,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAM,sCAAsCA,IAAAA,EAAE,OAAO;CACnD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAA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E,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8EAA8E;AACxG,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7K,SAAS,oCAAoC,SAAS,CAAC,CAAC,SAAS;CACjE,WAAWA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6DAA6D;AAEvF,MAAa,wBAAwBC,eAAAA,OAAO,6BAA6B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-doc-with-meta.cjs","names":["z","action"],"sources":["../../src/actions/get-doc-with-meta.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { erpnext } from \"../app\";\n\nexport const ErpnextGetDocWithMetaInput = z.object({\n name: z.string().describe(\"The unique name/identifier of the document to retrieve\"),\n doctype: z.string().describe(\"The DocType name (e.g., 'Account', 'Customer', 'Sales Order')\"),\n}).describe(\"Request model for retrieving a document with full metadata.\");\nconst ErpnextGetDocWithMeta_DocInfoSchema = z.object({\n tags: z.string().describe(\"Comma-separated tags associated with the document\").nullable().optional(),\n views: z.array(z.record(z.string(), z.unknown())).describe(\"Document view logs\").nullable().optional(),\n shared: z.array(z.record(z.string(), z.unknown())).describe(\"Document sharing information\").nullable().optional(),\n ratings: z.array(z.record(z.string(), z.unknown())).describe(\"Document ratings\").nullable().optional(),\n comments: z.array(z.record(z.string(), z.unknown())).describe(\"Comments on the document\").nullable().optional(),\n versions: z.array(z.record(z.string(), z.unknown())).describe(\"Version history information\").nullable().optional(),\n milestones: z.array(z.record(z.string(), z.unknown())).describe(\"Milestone information\").nullable().optional(),\n assignments: z.array(z.record(z.string(), z.unknown())).describe(\"User assignments for the document\").nullable().optional(),\n attachments: z.array(z.record(z.string(), z.unknown())).describe(\"List of file attachments linked to the document\").nullable().optional(),\n permissions: z.record(z.string(), z.unknown()).describe(\"Permission information for the current user\").nullable().optional(),\n total_views: z.number().int().describe(\"Total number of views for the document\").nullable().optional(),\n communications: z.array(z.record(z.string(), z.unknown())).describe(\"Related communication records\").nullable().optional(),\n document_email: z.string().describe(\"Email address associated with the document\").nullable().optional(),\n total_comments: z.number().int().describe(\"Total number of comments on the document\").nullable().optional(),\n energy_point_logs: z.array(z.record(z.string(), z.unknown())).describe(\"Energy point logs related to the document\").nullable().optional(),\n is_document_followed: z.number().int().describe(\"Whether the document is followed by the current user (0 or 1)\").nullable().optional(),\n additional_timeline_content: z.union([z.string(), z.array(z.unknown())]).nullable().optional(),\n}).passthrough().describe(\"Document metadata including attachments, comments, and activity information.\");\nexport const ErpnextGetDocWithMetaOutput = z.object({\n docs: z.array(z.record(z.string(), z.unknown())).describe(\"List of document objects including the main document and any child tables with their fields\").nullable().optional(),\n docinfo: ErpnextGetDocWithMeta_DocInfoSchema.nullable().optional(),\n user_info: z.record(z.string(), z.unknown()).describe(\"User information and permissions related to the document\").nullable().optional(),\n}).passthrough().describe(\"Response model containing document data with full metadata.\");\n\nexport const erpnextGetDocWithMeta: AppAction<\n typeof ErpnextGetDocWithMetaInput,\n typeof ErpnextGetDocWithMetaOutput,\n typeof erpnext.credential\n> = action(\"ERPNEXT_GET_DOC_WITH_META\", {\n slug: \"erpnext-get-doc-with-meta\",\n name: \"Get Document with Metadata\",\n description: \"Tool to retrieve a document with full metadata including attachments, comments, activity logs, and related information. Use when you need complete document details beyond the basic fields returned by standard GET requests.\",\n input: ErpnextGetDocWithMetaInput,\n output: ErpnextGetDocWithMetaOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD;CAClF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D;AAC9F,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAM,sCAAsCA,IAAAA,EAAE,OAAO;CACnD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,OAAOA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9G,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EA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ke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-doc-with-meta.d.ts
@@ -28,10 +30,7 @@ declare const ErpnextGetDocWithMetaOutput: z.ZodObject<{
28
30
  }, z.core.$loose>>>;
29
31
  user_info: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
30
32
  }, z.core.$loose>;
31
- declare const erpnextGetDocWithMeta: import("@keystrokehq/action").WorkflowActionDefinition<{
32
- name: string;
33
- doctype: string;
34
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
33
+ declare const erpnextGetDocWithMeta: AppAction<typeof ErpnextGetDocWithMetaInput, typeof ErpnextGetDocWithMetaOutput, typeof erpnext.credential>;
35
34
  //#endregion
36
35
  export { erpnextGetDocWithMeta };
37
36
  //# sourceMappingURL=get-doc-with-meta.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-doc-with-meta.d.cts","names":[],"sources":["../../src/actions/get-doc-with-meta.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;cAuB1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;cAM3B,qBAAA,gCAAqB,wBAAA"}
1
+ {"version":3,"file":"get-doc-with-meta.d.cts","names":[],"sources":["../../src/actions/get-doc-with-meta.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;cAuB1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;cAM3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { erpnext } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-doc-with-meta.d.ts
@@ -28,10 +30,7 @@ declare const ErpnextGetDocWithMetaOutput: z.ZodObject<{
28
30
  }, z.core.$loose>>>;
29
31
  user_info: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
30
32
  }, z.core.$loose>;
31
- declare const erpnextGetDocWithMeta: import("@keystrokehq/action").WorkflowActionDefinition<{
32
- name: string;
33
- doctype: string;
34
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
33
+ declare const erpnextGetDocWithMeta: AppAction<typeof ErpnextGetDocWithMetaInput, typeof ErpnextGetDocWithMetaOutput, typeof erpnext.credential>;
35
34
  //#endregion
36
35
  export { erpnextGetDocWithMeta };
37
36
  //# sourceMappingURL=get-doc-with-meta.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-doc-with-meta.d.mts","names":[],"sources":["../../src/actions/get-doc-with-meta.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;cAuB1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;cAM3B,qBAAA,gCAAqB,wBAAA"}
1
+ {"version":3,"file":"get-doc-with-meta.d.mts","names":[],"sources":["../../src/actions/get-doc-with-meta.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;cAuB1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;cAM3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/get-doc-with-meta.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-doc-with-meta.mjs","names":[],"sources":["../../src/actions/get-doc-with-meta.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetDocWithMetaInput = z.object({\n name: z.string().describe(\"The unique name/identifier of the document to retrieve\"),\n doctype: z.string().describe(\"The DocType name (e.g., 'Account', 'Customer', 'Sales Order')\"),\n}).describe(\"Request model for retrieving a document with full metadata.\");\nconst ErpnextGetDocWithMeta_DocInfoSchema = z.object({\n tags: z.string().describe(\"Comma-separated tags associated with the document\").nullable().optional(),\n views: z.array(z.record(z.string(), z.unknown())).describe(\"Document view logs\").nullable().optional(),\n shared: z.array(z.record(z.string(), z.unknown())).describe(\"Document sharing information\").nullable().optional(),\n ratings: z.array(z.record(z.string(), z.unknown())).describe(\"Document ratings\").nullable().optional(),\n comments: z.array(z.record(z.string(), z.unknown())).describe(\"Comments on the document\").nullable().optional(),\n versions: z.array(z.record(z.string(), z.unknown())).describe(\"Version history information\").nullable().optional(),\n milestones: z.array(z.record(z.string(), z.unknown())).describe(\"Milestone information\").nullable().optional(),\n assignments: z.array(z.record(z.string(), z.unknown())).describe(\"User assignments for the document\").nullable().optional(),\n attachments: z.array(z.record(z.string(), z.unknown())).describe(\"List of file attachments linked to the document\").nullable().optional(),\n permissions: z.record(z.string(), z.unknown()).describe(\"Permission information for the current user\").nullable().optional(),\n total_views: z.number().int().describe(\"Total number of views for the document\").nullable().optional(),\n communications: z.array(z.record(z.string(), z.unknown())).describe(\"Related communication records\").nullable().optional(),\n document_email: z.string().describe(\"Email address associated with the document\").nullable().optional(),\n total_comments: z.number().int().describe(\"Total number of comments on the document\").nullable().optional(),\n energy_point_logs: z.array(z.record(z.string(), z.unknown())).describe(\"Energy point logs related to the document\").nullable().optional(),\n is_document_followed: z.number().int().describe(\"Whether the document is followed by the current user (0 or 1)\").nullable().optional(),\n additional_timeline_content: z.union([z.string(), z.array(z.unknown())]).nullable().optional(),\n}).passthrough().describe(\"Document metadata including attachments, comments, and activity information.\");\nexport const ErpnextGetDocWithMetaOutput = z.object({\n docs: z.array(z.record(z.string(), z.unknown())).describe(\"List of document objects including the main document and any child tables with their fields\").nullable().optional(),\n docinfo: ErpnextGetDocWithMeta_DocInfoSchema.nullable().optional(),\n user_info: z.record(z.string(), z.unknown()).describe(\"User information and permissions related to the document\").nullable().optional(),\n}).passthrough().describe(\"Response model containing document data with full metadata.\");\n\nexport const erpnextGetDocWithMeta = action(\"ERPNEXT_GET_DOC_WITH_META\", {\n slug: \"erpnext-get-doc-with-meta\",\n name: \"Get Document with Metadata\",\n description: \"Tool to retrieve a document with full metadata including attachments, comments, activity logs, and related information. Use when you need complete document details beyond the basic fields returned by standard GET requests.\",\n input: ErpnextGetDocWithMetaInput,\n output: ErpnextGetDocWithMetaOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6B,EAAE,OAAO;CACjD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD;CAClF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D;AAC9F,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAM,sCAAsC,EAAE,OAAO;CACnD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAA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E,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxI,sBAAsB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrI,6BAA6B,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8EAA8E;AAOxG,MAAa,wBAAwB,OAAO,6BAA6B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXyC,EAAE,OAAO;EAClD,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7K,SAAS,oCAAoC,SAAS,CAAC,CAAC,SAAS;EACjE,WAAW,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6DAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"get-doc-with-meta.mjs","names":[],"sources":["../../src/actions/get-doc-with-meta.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { erpnext } from \"../app\";\n\nexport const ErpnextGetDocWithMetaInput = z.object({\n name: z.string().describe(\"The unique name/identifier of the document to retrieve\"),\n doctype: z.string().describe(\"The DocType name (e.g., 'Account', 'Customer', 'Sales Order')\"),\n}).describe(\"Request model for retrieving a document with full metadata.\");\nconst ErpnextGetDocWithMeta_DocInfoSchema = z.object({\n tags: z.string().describe(\"Comma-separated tags associated with the document\").nullable().optional(),\n views: z.array(z.record(z.string(), z.unknown())).describe(\"Document view logs\").nullable().optional(),\n shared: z.array(z.record(z.string(), z.unknown())).describe(\"Document sharing information\").nullable().optional(),\n ratings: z.array(z.record(z.string(), z.unknown())).describe(\"Document ratings\").nullable().optional(),\n comments: z.array(z.record(z.string(), z.unknown())).describe(\"Comments on the document\").nullable().optional(),\n versions: z.array(z.record(z.string(), z.unknown())).describe(\"Version history information\").nullable().optional(),\n milestones: z.array(z.record(z.string(), z.unknown())).describe(\"Milestone information\").nullable().optional(),\n assignments: z.array(z.record(z.string(), z.unknown())).describe(\"User assignments for the document\").nullable().optional(),\n attachments: z.array(z.record(z.string(), z.unknown())).describe(\"List of file attachments linked to the document\").nullable().optional(),\n permissions: z.record(z.string(), z.unknown()).describe(\"Permission information for the current user\").nullable().optional(),\n total_views: z.number().int().describe(\"Total number of views for the document\").nullable().optional(),\n communications: z.array(z.record(z.string(), z.unknown())).describe(\"Related communication records\").nullable().optional(),\n document_email: z.string().describe(\"Email address associated with the document\").nullable().optional(),\n total_comments: z.number().int().describe(\"Total number of comments on the document\").nullable().optional(),\n energy_point_logs: z.array(z.record(z.string(), z.unknown())).describe(\"Energy point logs related to the document\").nullable().optional(),\n is_document_followed: z.number().int().describe(\"Whether the document is followed by the current user (0 or 1)\").nullable().optional(),\n additional_timeline_content: z.union([z.string(), z.array(z.unknown())]).nullable().optional(),\n}).passthrough().describe(\"Document metadata including attachments, comments, and activity information.\");\nexport const ErpnextGetDocWithMetaOutput = z.object({\n docs: z.array(z.record(z.string(), z.unknown())).describe(\"List of document objects including the main document and any child tables with their fields\").nullable().optional(),\n docinfo: ErpnextGetDocWithMeta_DocInfoSchema.nullable().optional(),\n user_info: z.record(z.string(), z.unknown()).describe(\"User information and permissions related to the document\").nullable().optional(),\n}).passthrough().describe(\"Response model containing document data with full metadata.\");\n\nexport const erpnextGetDocWithMeta: AppAction<\n typeof ErpnextGetDocWithMetaInput,\n typeof ErpnextGetDocWithMetaOutput,\n typeof erpnext.credential\n> = action(\"ERPNEXT_GET_DOC_WITH_META\", {\n slug: \"erpnext-get-doc-with-meta\",\n name: \"Get Document with Metadata\",\n description: \"Tool to retrieve a document with full metadata including attachments, comments, activity logs, and related information. Use when you need complete document details beyond the basic fields returned by standard GET requests.\",\n input: ErpnextGetDocWithMetaInput,\n output: ErpnextGetDocWithMetaOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,6BAA6B,EAAE,OAAO;CACjD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD;CAClF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D;AAC9F,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAM,sCAAsC,EAAE,OAAO;CACnD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9G,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GA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AS;CACxI,sBAAsB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrI,6BAA6B,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8EAA8E;AAOxG,MAAa,wBAIT,OAAO,6BAA6B;CACtC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAfyC,EAAE,OAAO;EAClD,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7K,SAAS,oCAAoC,SAAS,CAAC,CAAC,SAAS;EACjE,WAAW,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6DAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/get-doctype-meta.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-doctype-meta.cjs","names":["z","action"],"sources":["../../src/actions/get-doctype-meta.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetDoctypeMetaInput = z.object({\n doctype: z.string().describe(\"The DocType name to retrieve metadata for (e.g., 'Customer', 'Sales Order', 'Item')\"),\n with_parent: z.boolean().describe(\"Include parent DocType metadata if this DocType is a child table. Useful when retrieving metadata for child tables in reports.\").optional(),\n}).describe(\"Request model for retrieving DocType metadata/schema.\");\nexport const ErpnextGetDoctypeMetaOutput = z.object({\n docs: z.array(z.record(z.string(), z.unknown())).describe(\"List of DocType metadata objects. The first object contains the main DocType definition with all fields, the subsequent objects contain metadata for any child table DocTypes referenced.\").nullable().optional(),\n parent_dt: z.string().describe(\"Parent DocType name if with_parent was True and this DocType has a parent\").nullable().optional(),\n user_settings: z.record(z.string(), z.unknown()).describe(\"User-specific settings and preferences for the DocType, including custom field order, column widths, and other UI preferences\").nullable().optional(),\n}).passthrough().describe(\"Response model containing DocType metadata including fields, permissions, and configurations.\");\n\nexport const erpnextGetDoctypeMeta = action(\"ERPNEXT_GET_DOCTYPE_META\", {\n slug: \"erpnext-get-doctype-meta\",\n name: \"Get DocType Metadata\",\n description: \"Tool to retrieve complete DocType metadata/schema including field definitions, field types, permissions, and configurations. Use when you need to understand the structure of a DocType, its fields, validation rules, or permissions before creating or querying documents.\",\n input: ErpnextGetDoctypeMetaInput,\n output: ErpnextGetDoctypeMetaOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF;CAClH,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gIAAgI,CAAC,CAAC,SAAS;AAC/K,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,2LAA2L,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3Q,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChI,eAAeA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+HAA+H,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjN,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+FAA+F;AAEzH,MAAa,wBAAwBC,eAAAA,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-doctype-meta.cjs","names":["z","action"],"sources":["../../src/actions/get-doctype-meta.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { erpnext } from \"../app\";\n\nexport const ErpnextGetDoctypeMetaInput = z.object({\n doctype: z.string().describe(\"The DocType name to retrieve metadata for (e.g., 'Customer', 'Sales Order', 'Item')\"),\n with_parent: z.boolean().describe(\"Include parent DocType metadata if this DocType is a child table. Useful when retrieving metadata for child tables in reports.\").optional(),\n}).describe(\"Request model for retrieving DocType metadata/schema.\");\nexport const ErpnextGetDoctypeMetaOutput = z.object({\n docs: z.array(z.record(z.string(), z.unknown())).describe(\"List of DocType metadata objects. The first object contains the main DocType definition with all fields, the subsequent objects contain metadata for any child table DocTypes referenced.\").nullable().optional(),\n parent_dt: z.string().describe(\"Parent DocType name if with_parent was True and this DocType has a parent\").nullable().optional(),\n user_settings: z.record(z.string(), z.unknown()).describe(\"User-specific settings and preferences for the DocType, including custom field order, column widths, and other UI preferences\").nullable().optional(),\n}).passthrough().describe(\"Response model containing DocType metadata including fields, permissions, and configurations.\");\n\nexport const erpnextGetDoctypeMeta: AppAction<\n typeof ErpnextGetDoctypeMetaInput,\n typeof ErpnextGetDoctypeMetaOutput,\n typeof erpnext.credential\n> = action(\"ERPNEXT_GET_DOCTYPE_META\", {\n slug: \"erpnext-get-doctype-meta\",\n name: \"Get DocType Metadata\",\n description: \"Tool to retrieve complete DocType metadata/schema including field definitions, field types, permissions, and configurations. Use when you need to understand the structure of a DocType, its fields, validation rules, or permissions before creating or querying documents.\",\n input: ErpnextGetDoctypeMetaInput,\n output: ErpnextGetDoctypeMetaOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF;CAClH,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gIAAgI,CAAC,CAAC,SAAS;AAC/K,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,2LAA2L,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3Q,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChI,eAAeA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+HAA+H,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjN,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+FAA+F;AAEzH,MAAa,wBAITC,eAAAA,OAAO,4BAA4B;CACrC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { erpnext } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-doctype-meta.d.ts
@@ -10,10 +12,7 @@ declare const ErpnextGetDoctypeMetaOutput: z.ZodObject<{
10
12
  parent_dt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
13
  user_settings: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
12
14
  }, z.core.$loose>;
13
- declare const erpnextGetDoctypeMeta: import("@keystrokehq/action").WorkflowActionDefinition<{
14
- doctype: string;
15
- with_parent?: boolean | undefined;
16
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
15
+ declare const erpnextGetDoctypeMeta: AppAction<typeof ErpnextGetDoctypeMetaInput, typeof ErpnextGetDoctypeMetaOutput, typeof erpnext.credential>;
17
16
  //#endregion
18
17
  export { erpnextGetDoctypeMeta };
19
18
  //# sourceMappingURL=get-doctype-meta.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-doctype-meta.d.cts","names":[],"sources":["../../src/actions/get-doctype-meta.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;cAI1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;cAM3B,qBAAA,gCAAqB,wBAAA"}
1
+ {"version":3,"file":"get-doctype-meta.d.cts","names":[],"sources":["../../src/actions/get-doctype-meta.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;cAI1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;cAM3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { erpnext } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-doctype-meta.d.ts
@@ -10,10 +12,7 @@ declare const ErpnextGetDoctypeMetaOutput: z.ZodObject<{
10
12
  parent_dt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
13
  user_settings: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
12
14
  }, z.core.$loose>;
13
- declare const erpnextGetDoctypeMeta: import("@keystrokehq/action").WorkflowActionDefinition<{
14
- doctype: string;
15
- with_parent?: boolean | undefined;
16
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
15
+ declare const erpnextGetDoctypeMeta: AppAction<typeof ErpnextGetDoctypeMetaInput, typeof ErpnextGetDoctypeMetaOutput, typeof erpnext.credential>;
17
16
  //#endregion
18
17
  export { erpnextGetDoctypeMeta };
19
18
  //# sourceMappingURL=get-doctype-meta.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-doctype-meta.d.mts","names":[],"sources":["../../src/actions/get-doctype-meta.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;cAI1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;cAM3B,qBAAA,gCAAqB,wBAAA"}
1
+ {"version":3,"file":"get-doctype-meta.d.mts","names":[],"sources":["../../src/actions/get-doctype-meta.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;cAI1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;cAM3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const erpnextGetDoctypeMeta = action("ERPNEXT_GET_DOCTYPE_META", {
@@ -1 +1 @@
1
- {"version":3,"file":"get-doctype-meta.mjs","names":[],"sources":["../../src/actions/get-doctype-meta.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetDoctypeMetaInput = z.object({\n doctype: z.string().describe(\"The DocType name to retrieve metadata for (e.g., 'Customer', 'Sales Order', 'Item')\"),\n with_parent: z.boolean().describe(\"Include parent DocType metadata if this DocType is a child table. Useful when retrieving metadata for child tables in reports.\").optional(),\n}).describe(\"Request model for retrieving DocType metadata/schema.\");\nexport const ErpnextGetDoctypeMetaOutput = z.object({\n docs: z.array(z.record(z.string(), z.unknown())).describe(\"List of DocType metadata objects. The first object contains the main DocType definition with all fields, the subsequent objects contain metadata for any child table DocTypes referenced.\").nullable().optional(),\n parent_dt: z.string().describe(\"Parent DocType name if with_parent was True and this DocType has a parent\").nullable().optional(),\n user_settings: z.record(z.string(), z.unknown()).describe(\"User-specific settings and preferences for the DocType, including custom field order, column widths, and other UI preferences\").nullable().optional(),\n}).passthrough().describe(\"Response model containing DocType metadata including fields, permissions, and configurations.\");\n\nexport const erpnextGetDoctypeMeta = action(\"ERPNEXT_GET_DOCTYPE_META\", {\n slug: \"erpnext-get-doctype-meta\",\n name: \"Get DocType Metadata\",\n description: \"Tool to retrieve complete DocType metadata/schema including field definitions, field types, permissions, and configurations. Use when you need to understand the structure of a DocType, its fields, validation rules, or permissions before creating or querying documents.\",\n input: ErpnextGetDoctypeMetaInput,\n output: ErpnextGetDoctypeMetaOutput,\n});\n"],"mappings":";;AAcA,MAAa,wBAAwB,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAdwC,EAAE,OAAO;EACjD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF;EAClH,aAAa,EAAE,QAAQ,CAAC,CAAC,SAAS,gIAAgI,CAAC,CAAC,SAAS;CAC/K,CAAC,CAAC,CAAC,SAAS,uDAWH;CACP,QAXyC,EAAE,OAAO;EAClD,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,2LAA2L,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3Q,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChI,eAAe,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+HAA+H,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjN,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+FAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"get-doctype-meta.mjs","names":[],"sources":["../../src/actions/get-doctype-meta.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { erpnext } from \"../app\";\n\nexport const ErpnextGetDoctypeMetaInput = z.object({\n doctype: z.string().describe(\"The DocType name to retrieve metadata for (e.g., 'Customer', 'Sales Order', 'Item')\"),\n with_parent: z.boolean().describe(\"Include parent DocType metadata if this DocType is a child table. Useful when retrieving metadata for child tables in reports.\").optional(),\n}).describe(\"Request model for retrieving DocType metadata/schema.\");\nexport const ErpnextGetDoctypeMetaOutput = z.object({\n docs: z.array(z.record(z.string(), z.unknown())).describe(\"List of DocType metadata objects. The first object contains the main DocType definition with all fields, the subsequent objects contain metadata for any child table DocTypes referenced.\").nullable().optional(),\n parent_dt: z.string().describe(\"Parent DocType name if with_parent was True and this DocType has a parent\").nullable().optional(),\n user_settings: z.record(z.string(), z.unknown()).describe(\"User-specific settings and preferences for the DocType, including custom field order, column widths, and other UI preferences\").nullable().optional(),\n}).passthrough().describe(\"Response model containing DocType metadata including fields, permissions, and configurations.\");\n\nexport const erpnextGetDoctypeMeta: AppAction<\n typeof ErpnextGetDoctypeMetaInput,\n typeof ErpnextGetDoctypeMetaOutput,\n typeof erpnext.credential\n> = action(\"ERPNEXT_GET_DOCTYPE_META\", {\n slug: \"erpnext-get-doctype-meta\",\n name: \"Get DocType Metadata\",\n description: \"Tool to retrieve complete DocType metadata/schema including field definitions, field types, permissions, and configurations. Use when you need to understand the structure of a DocType, its fields, validation rules, or permissions before creating or querying documents.\",\n input: ErpnextGetDoctypeMetaInput,\n output: ErpnextGetDoctypeMetaOutput,\n});\n"],"mappings":";;;AAgBA,MAAa,wBAIT,OAAO,4BAA4B;CACrC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlBwC,EAAE,OAAO;EACjD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF;EAClH,aAAa,EAAE,QAAQ,CAAC,CAAC,SAAS,gIAAgI,CAAC,CAAC,SAAS;CAC/K,CAAC,CAAC,CAAC,SAAS,uDAeH;CACP,QAfyC,EAAE,OAAO;EAClD,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,2LAA2L,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3Q,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChI,eAAe,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+HAA+H,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjN,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+FAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/get-document.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-document.cjs","names":["z","action"],"sources":["../../src/actions/get-document.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetDocumentInput = z.object({\n name: z.string().describe(\"The name (ID) of the document you'd like to receive. For example EMP001 (of type Employee).\"),\n fields: z.array(z.string()).describe(\"By default, only the \\\"name\\\" field is included in the listing. To add more fields, you can pass the fields param. For example, [\\\"name\\\", \\\"country\\\"]\").optional(),\n doctype: z.string().describe(\"The DocType you'd like to receive. For example Customer, Supplier, Employee, Account, Lead, Company, Sales Invoice, Purchase Invoice, Stock Entry, etc.\"),\n filters: z.array(z.array(z.union([z.string(), z.number().int(), z.number(), z.boolean()]))).describe(\"You can filter the listing using sql conditions. Each condition is an array of the format, [doctype, field, operator, value]. For example, [[\\\"Customer\\\", \\\"country\\\", \\\"=\\\", \\\"India\\\"]]\").optional(),\n}).describe(\"Request model for retrieving a specific document by DocType and name.\");\nconst ErpnextGetDocument_DocumentDataSchema = z.object({\n name: z.string().describe(\"Document name (ID)\").nullable().optional(),\n owner: z.string().describe(\"Owner of the document\").nullable().optional(),\n doctype: z.string().describe(\"Document type\").nullable().optional(),\n creation: z.string().describe(\"ISO timestamp when document was created\").nullable().optional(),\n modified: z.string().describe(\"ISO timestamp when document was last modified\").nullable().optional(),\n docstatus: z.number().int().describe(\"Document status (0=Draft, 1=Submitted, 2=Cancelled)\").nullable().optional(),\n modified_by: z.string().describe(\"User who last modified the document\").nullable().optional(),\n}).passthrough().describe(\"Represents the document data returned by ERPNext API.\");\nexport const ErpnextGetDocumentOutput = z.object({\n data: ErpnextGetDocument_DocumentDataSchema.nullable(),\n}).passthrough().describe(\"Response model for retrieving a document from ERPNext.\");\n\nexport const erpnextGetDocument = action(\"ERPNEXT_GET_DOCUMENT\", {\n slug: \"erpnext-get-document\",\n name: \"Get Document\",\n description: \"Tool to retrieve a specific document by its DocType and name (ID). Returns the complete document with all fields. Use when you need to fetch details of a specific ERPNext document like Customer, Employee, Account, Sales Invoice, etc.\",\n input: ErpnextGetDocumentInput,\n output: ErpnextGetDocumentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6FAA6F;CACvH,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,yJAAyJ,CAAC,CAAC,SAAS;CACzM,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yJAAyJ;CACtL,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAM;EAACA,IAAAA,EAAE,OAAO;EAAGA,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file":"get-document.cjs","names":["z","action"],"sources":["../../src/actions/get-document.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { erpnext } from \"../app\";\n\nexport const ErpnextGetDocumentInput = z.object({\n name: z.string().describe(\"The name (ID) of the document you'd like to receive. For example EMP001 (of type Employee).\"),\n fields: z.array(z.string()).describe(\"By default, only the \\\"name\\\" field is included in the listing. To add more fields, you can pass the fields param. For example, [\\\"name\\\", \\\"country\\\"]\").optional(),\n doctype: z.string().describe(\"The DocType you'd like to receive. For example Customer, Supplier, Employee, Account, Lead, Company, Sales Invoice, Purchase Invoice, Stock Entry, etc.\"),\n filters: z.array(z.array(z.union([z.string(), z.number().int(), z.number(), z.boolean()]))).describe(\"You can filter the listing using sql conditions. Each condition is an array of the format, [doctype, field, operator, value]. For example, [[\\\"Customer\\\", \\\"country\\\", \\\"=\\\", \\\"India\\\"]]\").optional(),\n}).describe(\"Request model for retrieving a specific document by DocType and name.\");\nconst ErpnextGetDocument_DocumentDataSchema = z.object({\n name: z.string().describe(\"Document name (ID)\").nullable().optional(),\n owner: z.string().describe(\"Owner of the document\").nullable().optional(),\n doctype: z.string().describe(\"Document type\").nullable().optional(),\n creation: z.string().describe(\"ISO timestamp when document was created\").nullable().optional(),\n modified: z.string().describe(\"ISO timestamp when document was last modified\").nullable().optional(),\n docstatus: z.number().int().describe(\"Document status (0=Draft, 1=Submitted, 2=Cancelled)\").nullable().optional(),\n modified_by: z.string().describe(\"User who last modified the document\").nullable().optional(),\n}).passthrough().describe(\"Represents the document data returned by ERPNext API.\");\nexport const ErpnextGetDocumentOutput = z.object({\n data: ErpnextGetDocument_DocumentDataSchema.nullable(),\n}).passthrough().describe(\"Response model for retrieving a document from ERPNext.\");\n\nexport const erpnextGetDocument: AppAction<\n typeof ErpnextGetDocumentInput,\n typeof ErpnextGetDocumentOutput,\n typeof erpnext.credential\n> = action(\"ERPNEXT_GET_DOCUMENT\", {\n slug: \"erpnext-get-document\",\n name: \"Get Document\",\n description: \"Tool to retrieve a specific document by its DocType and name (ID). Returns the complete document with all fields. Use when you need to fetch details of a specific ERPNext document like Customer, Employee, Account, Sales Invoice, etc.\",\n input: ErpnextGetDocumentInput,\n output: ErpnextGetDocumentOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6FAA6F;CACvH,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,yJAAyJ,CAAC,CAAC,SAAS;CACzM,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yJAAyJ;CACtL,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAM;EAACA,IAAAA,EAAE,OAAO;EAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI;EAAGA,IAAAA,EAAE,OAAO;EAAGA,IAAAA,EAAE,QAAQ;CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,4LAA4L,CAAC,CAAC,SAAS;AAC9S,CAAC,CAAC,CAAC,SAAS,uEAAuE;AACnF,MAAM,wCAAwCA,IAAAA,EAAE,OAAO;CACrD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAAuD;AACjF,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,EAC/C,MAAM,sCAAsC,SAAS,EACvD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wDAAwD;AAElF,MAAa,qBAITC,eAAAA,OAAO,wBAAwB;CACjC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { erpnext } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-document.d.ts
@@ -18,12 +20,7 @@ declare const ErpnextGetDocumentOutput: z.ZodObject<{
18
20
  modified_by: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
21
  }, z.core.$loose>>;
20
22
  }, z.core.$loose>;
21
- declare const erpnextGetDocument: import("@keystrokehq/action").WorkflowActionDefinition<{
22
- name: string;
23
- doctype: string;
24
- fields?: string[] | undefined;
25
- filters?: (string | number | boolean)[][] | undefined;
26
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
23
+ declare const erpnextGetDocument: AppAction<typeof ErpnextGetDocumentInput, typeof ErpnextGetDocumentOutput, typeof erpnext.credential>;
27
24
  //#endregion
28
25
  export { erpnextGetDocument };
29
26
  //# sourceMappingURL=get-document.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-document.d.cts","names":[],"sources":["../../src/actions/get-document.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;cAevB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;cAIxB,kBAAA,gCAAkB,wBAAA"}
1
+ {"version":3,"file":"get-document.d.cts","names":[],"sources":["../../src/actions/get-document.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;cAevB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;cAIxB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { erpnext } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-document.d.ts
@@ -18,12 +20,7 @@ declare const ErpnextGetDocumentOutput: z.ZodObject<{
18
20
  modified_by: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
21
  }, z.core.$loose>>;
20
22
  }, z.core.$loose>;
21
- declare const erpnextGetDocument: import("@keystrokehq/action").WorkflowActionDefinition<{
22
- name: string;
23
- doctype: string;
24
- fields?: string[] | undefined;
25
- filters?: (string | number | boolean)[][] | undefined;
26
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
23
+ declare const erpnextGetDocument: AppAction<typeof ErpnextGetDocumentInput, typeof ErpnextGetDocumentOutput, typeof erpnext.credential>;
27
24
  //#endregion
28
25
  export { erpnextGetDocument };
29
26
  //# sourceMappingURL=get-document.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-document.d.mts","names":[],"sources":["../../src/actions/get-document.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;cAevB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;cAIxB,kBAAA,gCAAkB,wBAAA"}
1
+ {"version":3,"file":"get-document.d.mts","names":[],"sources":["../../src/actions/get-document.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;cAevB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;cAIxB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/get-document.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-document.mjs","names":[],"sources":["../../src/actions/get-document.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetDocumentInput = z.object({\n name: z.string().describe(\"The name (ID) of the document you'd like to receive. For example EMP001 (of type Employee).\"),\n fields: z.array(z.string()).describe(\"By default, only the \\\"name\\\" field is included in the listing. To add more fields, you can pass the fields param. For example, [\\\"name\\\", \\\"country\\\"]\").optional(),\n doctype: z.string().describe(\"The DocType you'd like to receive. For example Customer, Supplier, Employee, Account, Lead, Company, Sales Invoice, Purchase Invoice, Stock Entry, etc.\"),\n filters: z.array(z.array(z.union([z.string(), z.number().int(), z.number(), z.boolean()]))).describe(\"You can filter the listing using sql conditions. Each condition is an array of the format, [doctype, field, operator, value]. For example, [[\\\"Customer\\\", \\\"country\\\", \\\"=\\\", \\\"India\\\"]]\").optional(),\n}).describe(\"Request model for retrieving a specific document by DocType and name.\");\nconst ErpnextGetDocument_DocumentDataSchema = z.object({\n name: z.string().describe(\"Document name (ID)\").nullable().optional(),\n owner: z.string().describe(\"Owner of the document\").nullable().optional(),\n doctype: z.string().describe(\"Document type\").nullable().optional(),\n creation: z.string().describe(\"ISO timestamp when document was created\").nullable().optional(),\n modified: z.string().describe(\"ISO timestamp when document was last modified\").nullable().optional(),\n docstatus: z.number().int().describe(\"Document status (0=Draft, 1=Submitted, 2=Cancelled)\").nullable().optional(),\n modified_by: z.string().describe(\"User who last modified the document\").nullable().optional(),\n}).passthrough().describe(\"Represents the document data returned by ERPNext API.\");\nexport const ErpnextGetDocumentOutput = z.object({\n data: ErpnextGetDocument_DocumentDataSchema.nullable(),\n}).passthrough().describe(\"Response model for retrieving a document from ERPNext.\");\n\nexport const erpnextGetDocument = action(\"ERPNEXT_GET_DOCUMENT\", {\n slug: \"erpnext-get-document\",\n name: \"Get Document\",\n description: \"Tool to retrieve a specific document by its DocType and name (ID). Returns the complete document with all fields. Use when you need to fetch details of a specific ERPNext document like Customer, Employee, Account, Sales Invoice, etc.\",\n input: ErpnextGetDocumentInput,\n output: ErpnextGetDocumentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0B,EAAE,OAAO;CAC9C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6FAA6F;CACvH,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,yJAAyJ,CAAC,CAAC,SAAS;CACzM,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yJAAyJ;CACtL,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;EAAC,EAAE,OAAO;EAAG,EAAE,OAAO,CAAC,CAAC,IAAI;EAAG,EAAE,OAAO;EAAG,EAAE,QAAQ;CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,4LAA4L,CAAC,CAAC,SAAS;AAC9S,CAAC,CAAC,CAAC,SAAS,uEAAuE;AACnF,MAAM,wCAAwC,EAAE,OAAO;CACrD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAAuD;AAKjF,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATsC,EAAE,OAAO,EAC/C,MAAM,sCAAsC,SAAS,EACvD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wDAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"get-document.mjs","names":[],"sources":["../../src/actions/get-document.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { erpnext } from \"../app\";\n\nexport const ErpnextGetDocumentInput = z.object({\n name: z.string().describe(\"The name (ID) of the document you'd like to receive. For example EMP001 (of type Employee).\"),\n fields: z.array(z.string()).describe(\"By default, only the \\\"name\\\" field is included in the listing. To add more fields, you can pass the fields param. For example, [\\\"name\\\", \\\"country\\\"]\").optional(),\n doctype: z.string().describe(\"The DocType you'd like to receive. For example Customer, Supplier, Employee, Account, Lead, Company, Sales Invoice, Purchase Invoice, Stock Entry, etc.\"),\n filters: z.array(z.array(z.union([z.string(), z.number().int(), z.number(), z.boolean()]))).describe(\"You can filter the listing using sql conditions. Each condition is an array of the format, [doctype, field, operator, value]. For example, [[\\\"Customer\\\", \\\"country\\\", \\\"=\\\", \\\"India\\\"]]\").optional(),\n}).describe(\"Request model for retrieving a specific document by DocType and name.\");\nconst ErpnextGetDocument_DocumentDataSchema = z.object({\n name: z.string().describe(\"Document name (ID)\").nullable().optional(),\n owner: z.string().describe(\"Owner of the document\").nullable().optional(),\n doctype: z.string().describe(\"Document type\").nullable().optional(),\n creation: z.string().describe(\"ISO timestamp when document was created\").nullable().optional(),\n modified: z.string().describe(\"ISO timestamp when document was last modified\").nullable().optional(),\n docstatus: z.number().int().describe(\"Document status (0=Draft, 1=Submitted, 2=Cancelled)\").nullable().optional(),\n modified_by: z.string().describe(\"User who last modified the document\").nullable().optional(),\n}).passthrough().describe(\"Represents the document data returned by ERPNext API.\");\nexport const ErpnextGetDocumentOutput = z.object({\n data: ErpnextGetDocument_DocumentDataSchema.nullable(),\n}).passthrough().describe(\"Response model for retrieving a document from ERPNext.\");\n\nexport const erpnextGetDocument: AppAction<\n typeof ErpnextGetDocumentInput,\n typeof ErpnextGetDocumentOutput,\n typeof erpnext.credential\n> = action(\"ERPNEXT_GET_DOCUMENT\", {\n slug: \"erpnext-get-document\",\n name: \"Get Document\",\n description: \"Tool to retrieve a specific document by its DocType and name (ID). Returns the complete document with all fields. Use when you need to fetch details of a specific ERPNext document like Customer, Employee, Account, Sales Invoice, etc.\",\n input: ErpnextGetDocumentInput,\n output: ErpnextGetDocumentOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,0BAA0B,EAAE,OAAO;CAC9C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6FAA6F;CACvH,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,yJAAyJ,CAAC,CAAC,SAAS;CACzM,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yJAAyJ;CACtL,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;EAAC,EAAE,OAAO;EAAG,EAAE,OAAO,CAAC,CAAC,IAAI;EAAG,EAAE,OAAO;EAAG,EAAE,QAAQ;CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,4LAA4L,CAAC,CAAC,SAAS;AAC9S,CAAC,CAAC,CAAC,SAAS,uEAAuE;AACnF,MAAM,wCAAwC,EAAE,OAAO;CACrD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAAuD;AAKjF,MAAa,qBAIT,OAAO,wBAAwB;CACjC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAbsC,EAAE,OAAO,EAC/C,MAAM,sCAAsC,SAAS,EACvD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wDAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/get-exchange-rate.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-exchange-rate.cjs","names":["z","action"],"sources":["../../src/actions/get-exchange-rate.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetExchangeRateInput = z.object({\n to_currency: z.string().describe(\"Target currency code in ISO 4217 format (e.g., 'EUR', 'USD', 'JPY'). This is the currency you are converting to.\"),\n from_currency: z.string().describe(\"Source currency code in ISO 4217 format (e.g., 'USD', 'EUR', 'GBP'). This is the currency you are converting from.\"),\n transaction_date: z.string().describe(\"Optional date for the exchange rate in YYYY-MM-DD format. If not provided, the current date's exchange rate will be used.\").optional(),\n}).describe(\"Request model for getting currency exchange rate between two currencies.\");\nexport const ErpnextGetExchangeRateOutput = z.object({\n message: z.number().describe(\"The exchange rate from source currency to target currency. This represents how much 1 unit of from_currency equals in to_currency.\").nullable(),\n}).passthrough().describe(\"Response model containing the exchange rate.\");\n\nexport const erpnextGetExchangeRate = action(\"ERPNEXT_GET_EXCHANGE_RATE\", {\n slug: \"erpnext-get-exchange-rate\",\n name: \"Get Exchange Rate\",\n description: \"Tool to get the currency exchange rate between two currencies in ERPNext. Use when you need to convert amounts between different currencies or check current exchange rates.\",\n input: ErpnextGetExchangeRateInput,\n output: ErpnextGetExchangeRateOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kHAAkH;CACnJ,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH;CACvJ,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2HAA2H,CAAC,CAAC,SAAS;AAC9K,CAAC,CAAC,CAAC,SAAS,0EAA0E;AACtF,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oIAAoI,CAAC,CAAC,SAAS,EAC9K,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAA8C;AAExE,MAAa,yBAAyBC,eAAAA,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-exchange-rate.cjs","names":["z","action"],"sources":["../../src/actions/get-exchange-rate.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { erpnext } from \"../app\";\n\nexport const ErpnextGetExchangeRateInput = z.object({\n to_currency: z.string().describe(\"Target currency code in ISO 4217 format (e.g., 'EUR', 'USD', 'JPY'). This is the currency you are converting to.\"),\n from_currency: z.string().describe(\"Source currency code in ISO 4217 format (e.g., 'USD', 'EUR', 'GBP'). This is the currency you are converting from.\"),\n transaction_date: z.string().describe(\"Optional date for the exchange rate in YYYY-MM-DD format. If not provided, the current date's exchange rate will be used.\").optional(),\n}).describe(\"Request model for getting currency exchange rate between two currencies.\");\nexport const ErpnextGetExchangeRateOutput = z.object({\n message: z.number().describe(\"The exchange rate from source currency to target currency. This represents how much 1 unit of from_currency equals in to_currency.\").nullable(),\n}).passthrough().describe(\"Response model containing the exchange rate.\");\n\nexport const erpnextGetExchangeRate: AppAction<\n typeof ErpnextGetExchangeRateInput,\n typeof ErpnextGetExchangeRateOutput,\n typeof erpnext.credential\n> = action(\"ERPNEXT_GET_EXCHANGE_RATE\", {\n slug: \"erpnext-get-exchange-rate\",\n name: \"Get Exchange Rate\",\n description: \"Tool to get the currency exchange rate between two currencies in ERPNext. Use when you need to convert amounts between different currencies or check current exchange rates.\",\n input: ErpnextGetExchangeRateInput,\n output: ErpnextGetExchangeRateOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kHAAkH;CACnJ,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH;CACvJ,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2HAA2H,CAAC,CAAC,SAAS;AAC9K,CAAC,CAAC,CAAC,SAAS,0EAA0E;AACtF,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oIAAoI,CAAC,CAAC,SAAS,EAC9K,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAA8C;AAExE,MAAa,yBAITC,eAAAA,OAAO,6BAA6B;CACtC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { erpnext } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-exchange-rate.d.ts
@@ -9,11 +11,7 @@ declare const ErpnextGetExchangeRateInput: z.ZodObject<{
9
11
  declare const ErpnextGetExchangeRateOutput: z.ZodObject<{
10
12
  message: z.ZodNullable<z.ZodNumber>;
11
13
  }, z.core.$loose>;
12
- declare const erpnextGetExchangeRate: import("@keystrokehq/action").WorkflowActionDefinition<{
13
- to_currency: string;
14
- from_currency: string;
15
- transaction_date?: string | undefined;
16
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
14
+ declare const erpnextGetExchangeRate: AppAction<typeof ErpnextGetExchangeRateInput, typeof ErpnextGetExchangeRateOutput, typeof erpnext.credential>;
17
15
  //#endregion
18
16
  export { erpnextGetExchangeRate };
19
17
  //# sourceMappingURL=get-exchange-rate.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-exchange-rate.d.cts","names":[],"sources":["../../src/actions/get-exchange-rate.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;cAK3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAI5B,sBAAA,gCAAsB,wBAAA"}
1
+ {"version":3,"file":"get-exchange-rate.d.cts","names":[],"sources":["../../src/actions/get-exchange-rate.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;cAK3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAI5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { erpnext } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-exchange-rate.d.ts
@@ -9,11 +11,7 @@ declare const ErpnextGetExchangeRateInput: z.ZodObject<{
9
11
  declare const ErpnextGetExchangeRateOutput: z.ZodObject<{
10
12
  message: z.ZodNullable<z.ZodNumber>;
11
13
  }, z.core.$loose>;
12
- declare const erpnextGetExchangeRate: import("@keystrokehq/action").WorkflowActionDefinition<{
13
- to_currency: string;
14
- from_currency: string;
15
- transaction_date?: string | undefined;
16
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
14
+ declare const erpnextGetExchangeRate: AppAction<typeof ErpnextGetExchangeRateInput, typeof ErpnextGetExchangeRateOutput, typeof erpnext.credential>;
17
15
  //#endregion
18
16
  export { erpnextGetExchangeRate };
19
17
  //# sourceMappingURL=get-exchange-rate.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-exchange-rate.d.mts","names":[],"sources":["../../src/actions/get-exchange-rate.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;cAK3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAI5B,sBAAA,gCAAsB,wBAAA"}
1
+ {"version":3,"file":"get-exchange-rate.d.mts","names":[],"sources":["../../src/actions/get-exchange-rate.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;cAK3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAI5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const erpnextGetExchangeRate = action("ERPNEXT_GET_EXCHANGE_RATE", {
@@ -1 +1 @@
1
- {"version":3,"file":"get-exchange-rate.mjs","names":[],"sources":["../../src/actions/get-exchange-rate.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetExchangeRateInput = z.object({\n to_currency: z.string().describe(\"Target currency code in ISO 4217 format (e.g., 'EUR', 'USD', 'JPY'). This is the currency you are converting to.\"),\n from_currency: z.string().describe(\"Source currency code in ISO 4217 format (e.g., 'USD', 'EUR', 'GBP'). This is the currency you are converting from.\"),\n transaction_date: z.string().describe(\"Optional date for the exchange rate in YYYY-MM-DD format. If not provided, the current date's exchange rate will be used.\").optional(),\n}).describe(\"Request model for getting currency exchange rate between two currencies.\");\nexport const ErpnextGetExchangeRateOutput = z.object({\n message: z.number().describe(\"The exchange rate from source currency to target currency. This represents how much 1 unit of from_currency equals in to_currency.\").nullable(),\n}).passthrough().describe(\"Response model containing the exchange rate.\");\n\nexport const erpnextGetExchangeRate = action(\"ERPNEXT_GET_EXCHANGE_RATE\", {\n slug: \"erpnext-get-exchange-rate\",\n name: \"Get Exchange Rate\",\n description: \"Tool to get the currency exchange rate between two currencies in ERPNext. Use when you need to convert amounts between different currencies or check current exchange rates.\",\n input: ErpnextGetExchangeRateInput,\n output: ErpnextGetExchangeRateOutput,\n});\n"],"mappings":";;AAaA,MAAa,yBAAyB,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAbyC,EAAE,OAAO;EAClD,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,kHAAkH;EACnJ,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH;EACvJ,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,2HAA2H,CAAC,CAAC,SAAS;CAC9K,CAAC,CAAC,CAAC,SAAS,0EASH;CACP,QAT0C,EAAE,OAAO,EACnD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,oIAAoI,CAAC,CAAC,SAAS,EAC9K,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"get-exchange-rate.mjs","names":[],"sources":["../../src/actions/get-exchange-rate.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { erpnext } from \"../app\";\n\nexport const ErpnextGetExchangeRateInput = z.object({\n to_currency: z.string().describe(\"Target currency code in ISO 4217 format (e.g., 'EUR', 'USD', 'JPY'). This is the currency you are converting to.\"),\n from_currency: z.string().describe(\"Source currency code in ISO 4217 format (e.g., 'USD', 'EUR', 'GBP'). This is the currency you are converting from.\"),\n transaction_date: z.string().describe(\"Optional date for the exchange rate in YYYY-MM-DD format. If not provided, the current date's exchange rate will be used.\").optional(),\n}).describe(\"Request model for getting currency exchange rate between two currencies.\");\nexport const ErpnextGetExchangeRateOutput = z.object({\n message: z.number().describe(\"The exchange rate from source currency to target currency. This represents how much 1 unit of from_currency equals in to_currency.\").nullable(),\n}).passthrough().describe(\"Response model containing the exchange rate.\");\n\nexport const erpnextGetExchangeRate: AppAction<\n typeof ErpnextGetExchangeRateInput,\n typeof ErpnextGetExchangeRateOutput,\n typeof erpnext.credential\n> = action(\"ERPNEXT_GET_EXCHANGE_RATE\", {\n slug: \"erpnext-get-exchange-rate\",\n name: \"Get Exchange Rate\",\n description: \"Tool to get the currency exchange rate between two currencies in ERPNext. Use when you need to convert amounts between different currencies or check current exchange rates.\",\n input: ErpnextGetExchangeRateInput,\n output: ErpnextGetExchangeRateOutput,\n});\n"],"mappings":";;;AAeA,MAAa,yBAIT,OAAO,6BAA6B;CACtC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAjByC,EAAE,OAAO;EAClD,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,kHAAkH;EACnJ,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH;EACvJ,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,2HAA2H,CAAC,CAAC,SAAS;CAC9K,CAAC,CAAC,CAAC,SAAS,0EAaH;CACP,QAb0C,EAAE,OAAO,EACnD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,oIAAoI,CAAC,CAAC,SAAS,EAC9K,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/get-fiscal-year.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-fiscal-year.cjs","names":["z","action"],"sources":["../../src/actions/get-fiscal-year.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetFiscalYearInput = z.object({\n date: z.string().describe(\"Date to check for fiscal year in YYYY-MM-DD format. If not provided, the current date will be used.\").optional(),\n company: z.string().describe(\"Company name to get fiscal year for. If not provided, the default company will be used.\").optional(),\n}).describe(\"Request model for getting fiscal year information for a given date.\");\nconst ErpnextGetFiscalYear_FiscalYearInfoSchema = z.object({\n name: z.string().describe(\"Fiscal year name (e.g., '2026', 'FY 2023-24')\").nullable(),\n year_end_date: z.string().describe(\"End date of the fiscal year in YYYY-MM-DD format\").nullable(),\n year_start_date: z.string().describe(\"Start date of the fiscal year in YYYY-MM-DD format\").nullable(),\n}).passthrough().describe(\"Fiscal year information.\");\nexport const ErpnextGetFiscalYearOutput = z.object({\n message: z.union([ErpnextGetFiscalYear_FiscalYearInfoSchema, z.array(z.string())]),\n}).passthrough().describe(\"Response model containing fiscal year information.\");\n\nexport const erpnextGetFiscalYear = action(\"ERPNEXT_GET_FISCAL_YEAR\", {\n slug: \"erpnext-get-fiscal-year\",\n name: \"Get Fiscal Year\",\n description: \"Tool to get fiscal year information for a given date in ERPNext. Use when you need to determine which fiscal year a specific date falls into or retrieve fiscal year boundaries.\",\n input: ErpnextGetFiscalYearInput,\n output: ErpnextGetFiscalYearOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS;CAC1I,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS;AACnI,CAAC,CAAC,CAAC,SAAS,qEAAqE;AACjF,MAAM,4CAA4CA,IAAAA,EAAE,OAAO;CACzD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACpF,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CAChG,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0BAA0B;AACpD,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,SAASA,IAAAA,EAAE,MAAM,CAAC,2CAA2CA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,EACnF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAAoD;AAE9E,MAAa,uBAAuBC,eAAAA,OAAO,2BAA2B;CACpE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-fiscal-year.cjs","names":["z","action"],"sources":["../../src/actions/get-fiscal-year.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { erpnext } from \"../app\";\n\nexport const ErpnextGetFiscalYearInput = z.object({\n date: z.string().describe(\"Date to check for fiscal year in YYYY-MM-DD format. If not provided, the current date will be used.\").optional(),\n company: z.string().describe(\"Company name to get fiscal year for. If not provided, the default company will be used.\").optional(),\n}).describe(\"Request model for getting fiscal year information for a given date.\");\nconst ErpnextGetFiscalYear_FiscalYearInfoSchema = z.object({\n name: z.string().describe(\"Fiscal year name (e.g., '2026', 'FY 2023-24')\").nullable(),\n year_end_date: z.string().describe(\"End date of the fiscal year in YYYY-MM-DD format\").nullable(),\n year_start_date: z.string().describe(\"Start date of the fiscal year in YYYY-MM-DD format\").nullable(),\n}).passthrough().describe(\"Fiscal year information.\");\nexport const ErpnextGetFiscalYearOutput = z.object({\n message: z.union([ErpnextGetFiscalYear_FiscalYearInfoSchema, z.array(z.string())]),\n}).passthrough().describe(\"Response model containing fiscal year information.\");\n\nexport const erpnextGetFiscalYear: AppAction<\n typeof ErpnextGetFiscalYearInput,\n typeof ErpnextGetFiscalYearOutput,\n typeof erpnext.credential\n> = action(\"ERPNEXT_GET_FISCAL_YEAR\", {\n slug: \"erpnext-get-fiscal-year\",\n name: \"Get Fiscal Year\",\n description: \"Tool to get fiscal year information for a given date in ERPNext. Use when you need to determine which fiscal year a specific date falls into or retrieve fiscal year boundaries.\",\n input: ErpnextGetFiscalYearInput,\n output: ErpnextGetFiscalYearOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS;CAC1I,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS;AACnI,CAAC,CAAC,CAAC,SAAS,qEAAqE;AACjF,MAAM,4CAA4CA,IAAAA,EAAE,OAAO;CACzD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACpF,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CAChG,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0BAA0B;AACpD,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,SAASA,IAAAA,EAAE,MAAM,CAAC,2CAA2CA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,EACnF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAAoD;AAE9E,MAAa,uBAITC,eAAAA,OAAO,2BAA2B;CACpC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { erpnext } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-fiscal-year.d.ts
@@ -12,10 +14,7 @@ declare const ErpnextGetFiscalYearOutput: z.ZodObject<{
12
14
  year_start_date: z.ZodNullable<z.ZodString>;
13
15
  }, z.core.$loose>, z.ZodArray<z.ZodString>]>;
14
16
  }, z.core.$loose>;
15
- declare const erpnextGetFiscalYear: import("@keystrokehq/action").WorkflowActionDefinition<{
16
- date?: string | undefined;
17
- company?: string | undefined;
18
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
17
+ declare const erpnextGetFiscalYear: AppAction<typeof ErpnextGetFiscalYearInput, typeof ErpnextGetFiscalYearOutput, typeof erpnext.credential>;
19
18
  //#endregion
20
19
  export { erpnextGetFiscalYear };
21
20
  //# sourceMappingURL=get-fiscal-year.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-fiscal-year.d.cts","names":[],"sources":["../../src/actions/get-fiscal-year.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;cASzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;cAI1B,oBAAA,gCAAoB,wBAAA"}
1
+ {"version":3,"file":"get-fiscal-year.d.cts","names":[],"sources":["../../src/actions/get-fiscal-year.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;cASzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;cAI1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,OAAA,CAAQ,UAAA"}