@keystrokehq/erpnext 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (301) hide show
  1. package/dist/actions/add-comment.cjs +1 -1
  2. package/dist/actions/add-comment.cjs.map +1 -1
  3. package/dist/actions/add-comment.d.cts +1 -1
  4. package/dist/actions/add-comment.d.mts +1 -1
  5. package/dist/actions/add-comment.mjs +1 -1
  6. package/dist/actions/add-comment.mjs.map +1 -1
  7. package/dist/actions/add-tag.cjs +1 -1
  8. package/dist/actions/add-tag.cjs.map +1 -1
  9. package/dist/actions/add-tag.d.cts +1 -1
  10. package/dist/actions/add-tag.d.mts +1 -1
  11. package/dist/actions/add-tag.mjs +1 -1
  12. package/dist/actions/add-tag.mjs.map +1 -1
  13. package/dist/actions/apply-workflow.cjs +1 -1
  14. package/dist/actions/apply-workflow.cjs.map +1 -1
  15. package/dist/actions/apply-workflow.d.cts +1 -1
  16. package/dist/actions/apply-workflow.d.mts +1 -1
  17. package/dist/actions/apply-workflow.mjs +1 -1
  18. package/dist/actions/apply-workflow.mjs.map +1 -1
  19. package/dist/actions/cancel-document.cjs +3 -3
  20. package/dist/actions/cancel-document.cjs.map +1 -1
  21. package/dist/actions/cancel-document.d.cts +3 -3
  22. package/dist/actions/cancel-document.d.mts +3 -3
  23. package/dist/actions/cancel-document.mjs +3 -3
  24. package/dist/actions/cancel-document.mjs.map +1 -1
  25. package/dist/actions/create-document.cjs +2 -2
  26. package/dist/actions/create-document.cjs.map +1 -1
  27. package/dist/actions/create-document.d.cts +3 -3
  28. package/dist/actions/create-document.d.mts +3 -3
  29. package/dist/actions/create-document.mjs +2 -2
  30. package/dist/actions/create-document.mjs.map +1 -1
  31. package/dist/actions/create-timesheet.cjs +3 -3
  32. package/dist/actions/create-timesheet.cjs.map +1 -1
  33. package/dist/actions/create-timesheet.d.cts +4 -3
  34. package/dist/actions/create-timesheet.d.mts +4 -3
  35. package/dist/actions/create-timesheet.mjs +3 -3
  36. package/dist/actions/create-timesheet.mjs.map +1 -1
  37. package/dist/actions/delete-document.cjs +1 -1
  38. package/dist/actions/delete-document.cjs.map +1 -1
  39. package/dist/actions/delete-document.d.cts +1 -1
  40. package/dist/actions/delete-document.d.mts +1 -1
  41. package/dist/actions/delete-document.mjs +1 -1
  42. package/dist/actions/delete-document.mjs.map +1 -1
  43. package/dist/actions/download-file.cjs +2 -2
  44. package/dist/actions/download-file.cjs.map +1 -1
  45. package/dist/actions/download-file.d.cts +2 -2
  46. package/dist/actions/download-file.d.mts +2 -2
  47. package/dist/actions/download-file.mjs +2 -2
  48. package/dist/actions/download-file.mjs.map +1 -1
  49. package/dist/actions/download-pdf.cjs +2 -2
  50. package/dist/actions/download-pdf.cjs.map +1 -1
  51. package/dist/actions/download-pdf.d.cts +2 -2
  52. package/dist/actions/download-pdf.d.mts +2 -2
  53. package/dist/actions/download-pdf.mjs +2 -2
  54. package/dist/actions/download-pdf.mjs.map +1 -1
  55. package/dist/actions/get-all-languages.cjs +2 -2
  56. package/dist/actions/get-all-languages.cjs.map +1 -1
  57. package/dist/actions/get-all-languages.d.cts +2 -2
  58. package/dist/actions/get-all-languages.d.mts +2 -2
  59. package/dist/actions/get-all-languages.mjs +2 -2
  60. package/dist/actions/get-all-languages.mjs.map +1 -1
  61. package/dist/actions/get-all-roles.cjs +1 -1
  62. package/dist/actions/get-all-roles.cjs.map +1 -1
  63. package/dist/actions/get-all-roles.d.cts +1 -1
  64. package/dist/actions/get-all-roles.d.mts +1 -1
  65. package/dist/actions/get-all-roles.mjs +1 -1
  66. package/dist/actions/get-all-roles.mjs.map +1 -1
  67. package/dist/actions/get-client.cjs +2 -2
  68. package/dist/actions/get-client.cjs.map +1 -1
  69. package/dist/actions/get-client.d.cts +3 -3
  70. package/dist/actions/get-client.d.mts +3 -3
  71. package/dist/actions/get-client.mjs +2 -2
  72. package/dist/actions/get-client.mjs.map +1 -1
  73. package/dist/actions/get-count.cjs +2 -2
  74. package/dist/actions/get-count.cjs.map +1 -1
  75. package/dist/actions/get-count.d.cts +3 -3
  76. package/dist/actions/get-count.d.mts +3 -3
  77. package/dist/actions/get-count.mjs +2 -2
  78. package/dist/actions/get-count.mjs.map +1 -1
  79. package/dist/actions/get-doc-with-meta.cjs +3 -3
  80. package/dist/actions/get-doc-with-meta.cjs.map +1 -1
  81. package/dist/actions/get-doc-with-meta.d.cts +3 -3
  82. package/dist/actions/get-doc-with-meta.d.mts +3 -3
  83. package/dist/actions/get-doc-with-meta.mjs +3 -3
  84. package/dist/actions/get-doc-with-meta.mjs.map +1 -1
  85. package/dist/actions/get-doctype-meta.cjs +3 -3
  86. package/dist/actions/get-doctype-meta.cjs.map +1 -1
  87. package/dist/actions/get-doctype-meta.d.cts +3 -3
  88. package/dist/actions/get-doctype-meta.d.mts +3 -3
  89. package/dist/actions/get-doctype-meta.mjs +3 -3
  90. package/dist/actions/get-doctype-meta.mjs.map +1 -1
  91. package/dist/actions/get-document.cjs +1 -1
  92. package/dist/actions/get-document.cjs.map +1 -1
  93. package/dist/actions/get-document.d.cts +1 -1
  94. package/dist/actions/get-document.d.mts +1 -1
  95. package/dist/actions/get-document.mjs +1 -1
  96. package/dist/actions/get-document.mjs.map +1 -1
  97. package/dist/actions/get-exchange-rate.cjs +1 -1
  98. package/dist/actions/get-exchange-rate.cjs.map +1 -1
  99. package/dist/actions/get-exchange-rate.d.cts +1 -1
  100. package/dist/actions/get-exchange-rate.d.mts +1 -1
  101. package/dist/actions/get-exchange-rate.mjs +1 -1
  102. package/dist/actions/get-exchange-rate.mjs.map +1 -1
  103. package/dist/actions/get-fiscal-year.cjs +2 -2
  104. package/dist/actions/get-fiscal-year.cjs.map +1 -1
  105. package/dist/actions/get-fiscal-year.d.cts +2 -2
  106. package/dist/actions/get-fiscal-year.d.mts +2 -2
  107. package/dist/actions/get-fiscal-year.mjs +2 -2
  108. package/dist/actions/get-fiscal-year.mjs.map +1 -1
  109. package/dist/actions/get-framework-version.cjs +1 -1
  110. package/dist/actions/get-framework-version.cjs.map +1 -1
  111. package/dist/actions/get-framework-version.d.cts +2 -2
  112. package/dist/actions/get-framework-version.d.mts +2 -2
  113. package/dist/actions/get-framework-version.mjs +1 -1
  114. package/dist/actions/get-framework-version.mjs.map +1 -1
  115. package/dist/actions/get-item-details.cjs +1 -1
  116. package/dist/actions/get-item-details.cjs.map +1 -1
  117. package/dist/actions/get-item-details.d.cts +1 -1
  118. package/dist/actions/get-item-details.d.mts +1 -1
  119. package/dist/actions/get-item-details.mjs +1 -1
  120. package/dist/actions/get-item-details.mjs.map +1 -1
  121. package/dist/actions/get-list.cjs +2 -2
  122. package/dist/actions/get-list.cjs.map +1 -1
  123. package/dist/actions/get-list.d.cts +4 -4
  124. package/dist/actions/get-list.d.mts +4 -4
  125. package/dist/actions/get-list.mjs +2 -2
  126. package/dist/actions/get-list.mjs.map +1 -1
  127. package/dist/actions/get-logged-user.cjs +1 -1
  128. package/dist/actions/get-logged-user.cjs.map +1 -1
  129. package/dist/actions/get-logged-user.d.cts +1 -1
  130. package/dist/actions/get-logged-user.d.mts +1 -1
  131. package/dist/actions/get-logged-user.mjs +1 -1
  132. package/dist/actions/get-logged-user.mjs.map +1 -1
  133. package/dist/actions/get-party-details.cjs +1 -1
  134. package/dist/actions/get-party-details.cjs.map +1 -1
  135. package/dist/actions/get-party-details.d.cts +1 -1
  136. package/dist/actions/get-party-details.d.mts +1 -1
  137. package/dist/actions/get-party-details.mjs +1 -1
  138. package/dist/actions/get-party-details.mjs.map +1 -1
  139. package/dist/actions/get-payment-entry.cjs +1 -1
  140. package/dist/actions/get-payment-entry.cjs.map +1 -1
  141. package/dist/actions/get-payment-entry.d.cts +1 -1
  142. package/dist/actions/get-payment-entry.d.mts +1 -1
  143. package/dist/actions/get-payment-entry.mjs +1 -1
  144. package/dist/actions/get-payment-entry.mjs.map +1 -1
  145. package/dist/actions/get-stock-balance.cjs +1 -1
  146. package/dist/actions/get-stock-balance.cjs.map +1 -1
  147. package/dist/actions/get-stock-balance.d.cts +1 -1
  148. package/dist/actions/get-stock-balance.d.mts +1 -1
  149. package/dist/actions/get-stock-balance.mjs +1 -1
  150. package/dist/actions/get-stock-balance.mjs.map +1 -1
  151. package/dist/actions/get-timezones.cjs +2 -2
  152. package/dist/actions/get-timezones.cjs.map +1 -1
  153. package/dist/actions/get-timezones.d.cts +2 -2
  154. package/dist/actions/get-timezones.d.mts +2 -2
  155. package/dist/actions/get-timezones.mjs +2 -2
  156. package/dist/actions/get-timezones.mjs.map +1 -1
  157. package/dist/actions/get-user-roles.cjs +1 -1
  158. package/dist/actions/get-user-roles.cjs.map +1 -1
  159. package/dist/actions/get-user-roles.d.cts +1 -1
  160. package/dist/actions/get-user-roles.d.mts +1 -1
  161. package/dist/actions/get-user-roles.mjs +1 -1
  162. package/dist/actions/get-user-roles.mjs.map +1 -1
  163. package/dist/actions/get-value.cjs +2 -2
  164. package/dist/actions/get-value.cjs.map +1 -1
  165. package/dist/actions/get-value.d.cts +2 -2
  166. package/dist/actions/get-value.d.mts +2 -2
  167. package/dist/actions/get-value.mjs +2 -2
  168. package/dist/actions/get-value.mjs.map +1 -1
  169. package/dist/actions/get-workflow-transitions.cjs +2 -2
  170. package/dist/actions/get-workflow-transitions.cjs.map +1 -1
  171. package/dist/actions/get-workflow-transitions.d.cts +2 -2
  172. package/dist/actions/get-workflow-transitions.d.mts +2 -2
  173. package/dist/actions/get-workflow-transitions.mjs +2 -2
  174. package/dist/actions/get-workflow-transitions.mjs.map +1 -1
  175. package/dist/actions/insert-document.cjs +1 -1
  176. package/dist/actions/insert-document.cjs.map +1 -1
  177. package/dist/actions/insert-document.d.cts +1 -1
  178. package/dist/actions/insert-document.d.mts +1 -1
  179. package/dist/actions/insert-document.mjs +1 -1
  180. package/dist/actions/insert-document.mjs.map +1 -1
  181. package/dist/actions/insert-many.cjs +1 -1
  182. package/dist/actions/insert-many.cjs.map +1 -1
  183. package/dist/actions/insert-many.d.cts +1 -1
  184. package/dist/actions/insert-many.d.mts +1 -1
  185. package/dist/actions/insert-many.mjs +1 -1
  186. package/dist/actions/insert-many.mjs.map +1 -1
  187. package/dist/actions/list-doctypes.cjs +1 -1
  188. package/dist/actions/list-doctypes.cjs.map +1 -1
  189. package/dist/actions/list-doctypes.d.cts +2 -2
  190. package/dist/actions/list-doctypes.d.mts +2 -2
  191. package/dist/actions/list-doctypes.mjs +1 -1
  192. package/dist/actions/list-doctypes.mjs.map +1 -1
  193. package/dist/actions/list-documents.cjs +1 -1
  194. package/dist/actions/list-documents.cjs.map +1 -1
  195. package/dist/actions/list-documents.d.cts +2 -2
  196. package/dist/actions/list-documents.d.mts +2 -2
  197. package/dist/actions/list-documents.mjs +1 -1
  198. package/dist/actions/list-documents.mjs.map +1 -1
  199. package/dist/actions/list-employees.cjs +1 -1
  200. package/dist/actions/list-employees.cjs.map +1 -1
  201. package/dist/actions/list-employees.d.cts +1 -1
  202. package/dist/actions/list-employees.d.mts +1 -1
  203. package/dist/actions/list-employees.mjs +1 -1
  204. package/dist/actions/list-employees.mjs.map +1 -1
  205. package/dist/actions/list-projects.cjs +1 -1
  206. package/dist/actions/list-projects.cjs.map +1 -1
  207. package/dist/actions/list-projects.d.cts +2 -2
  208. package/dist/actions/list-projects.d.mts +2 -2
  209. package/dist/actions/list-projects.mjs +1 -1
  210. package/dist/actions/list-projects.mjs.map +1 -1
  211. package/dist/actions/list-timesheets.cjs +1 -1
  212. package/dist/actions/list-timesheets.cjs.map +1 -1
  213. package/dist/actions/list-timesheets.d.cts +2 -2
  214. package/dist/actions/list-timesheets.d.mts +2 -2
  215. package/dist/actions/list-timesheets.mjs +1 -1
  216. package/dist/actions/list-timesheets.mjs.map +1 -1
  217. package/dist/actions/list-webhooks.cjs +1 -1
  218. package/dist/actions/list-webhooks.cjs.map +1 -1
  219. package/dist/actions/list-webhooks.d.cts +1 -1
  220. package/dist/actions/list-webhooks.d.mts +1 -1
  221. package/dist/actions/list-webhooks.mjs +1 -1
  222. package/dist/actions/list-webhooks.mjs.map +1 -1
  223. package/dist/actions/make-delivery-note.cjs +2 -2
  224. package/dist/actions/make-delivery-note.cjs.map +1 -1
  225. package/dist/actions/make-delivery-note.d.cts +2 -2
  226. package/dist/actions/make-delivery-note.d.mts +2 -2
  227. package/dist/actions/make-delivery-note.mjs +2 -2
  228. package/dist/actions/make-delivery-note.mjs.map +1 -1
  229. package/dist/actions/make-purchase-order.cjs +1 -1
  230. package/dist/actions/make-purchase-order.cjs.map +1 -1
  231. package/dist/actions/make-purchase-order.d.cts +1 -1
  232. package/dist/actions/make-purchase-order.d.mts +1 -1
  233. package/dist/actions/make-purchase-order.mjs +1 -1
  234. package/dist/actions/make-purchase-order.mjs.map +1 -1
  235. package/dist/actions/make-sales-invoice.cjs +2 -2
  236. package/dist/actions/make-sales-invoice.cjs.map +1 -1
  237. package/dist/actions/make-sales-invoice.d.cts +2 -2
  238. package/dist/actions/make-sales-invoice.d.mts +2 -2
  239. package/dist/actions/make-sales-invoice.mjs +2 -2
  240. package/dist/actions/make-sales-invoice.mjs.map +1 -1
  241. package/dist/actions/make-stock-entry.cjs +2 -2
  242. package/dist/actions/make-stock-entry.cjs.map +1 -1
  243. package/dist/actions/make-stock-entry.d.cts +2 -2
  244. package/dist/actions/make-stock-entry.d.mts +2 -2
  245. package/dist/actions/make-stock-entry.mjs +2 -2
  246. package/dist/actions/make-stock-entry.mjs.map +1 -1
  247. package/dist/actions/ping.cjs +1 -1
  248. package/dist/actions/ping.cjs.map +1 -1
  249. package/dist/actions/ping.d.cts +1 -1
  250. package/dist/actions/ping.d.mts +1 -1
  251. package/dist/actions/ping.mjs +1 -1
  252. package/dist/actions/ping.mjs.map +1 -1
  253. package/dist/actions/rename-doc.cjs +1 -1
  254. package/dist/actions/rename-doc.cjs.map +1 -1
  255. package/dist/actions/rename-doc.d.cts +1 -1
  256. package/dist/actions/rename-doc.d.mts +1 -1
  257. package/dist/actions/rename-doc.mjs +1 -1
  258. package/dist/actions/rename-doc.mjs.map +1 -1
  259. package/dist/actions/save-docs.cjs +1 -1
  260. package/dist/actions/save-docs.cjs.map +1 -1
  261. package/dist/actions/save-docs.d.cts +1 -1
  262. package/dist/actions/save-docs.d.mts +1 -1
  263. package/dist/actions/save-docs.mjs +1 -1
  264. package/dist/actions/save-docs.mjs.map +1 -1
  265. package/dist/actions/save-document.cjs +1 -1
  266. package/dist/actions/save-document.cjs.map +1 -1
  267. package/dist/actions/save-document.d.cts +1 -1
  268. package/dist/actions/save-document.d.mts +1 -1
  269. package/dist/actions/save-document.mjs +1 -1
  270. package/dist/actions/save-document.mjs.map +1 -1
  271. package/dist/actions/search-global.cjs +2 -2
  272. package/dist/actions/search-global.cjs.map +1 -1
  273. package/dist/actions/search-global.d.cts +2 -2
  274. package/dist/actions/search-global.d.mts +2 -2
  275. package/dist/actions/search-global.mjs +2 -2
  276. package/dist/actions/search-global.mjs.map +1 -1
  277. package/dist/actions/search-link.cjs +2 -2
  278. package/dist/actions/search-link.cjs.map +1 -1
  279. package/dist/actions/search-link.d.cts +2 -2
  280. package/dist/actions/search-link.d.mts +2 -2
  281. package/dist/actions/search-link.mjs +2 -2
  282. package/dist/actions/search-link.mjs.map +1 -1
  283. package/dist/actions/set-value.cjs +1 -1
  284. package/dist/actions/set-value.cjs.map +1 -1
  285. package/dist/actions/set-value.d.cts +1 -1
  286. package/dist/actions/set-value.d.mts +1 -1
  287. package/dist/actions/set-value.mjs +1 -1
  288. package/dist/actions/set-value.mjs.map +1 -1
  289. package/dist/actions/submit-document.cjs +2 -2
  290. package/dist/actions/submit-document.cjs.map +1 -1
  291. package/dist/actions/submit-document.d.cts +2 -2
  292. package/dist/actions/submit-document.d.mts +2 -2
  293. package/dist/actions/submit-document.mjs +2 -2
  294. package/dist/actions/submit-document.mjs.map +1 -1
  295. package/dist/actions/update-document.cjs +3 -3
  296. package/dist/actions/update-document.cjs.map +1 -1
  297. package/dist/actions/update-document.d.cts +4 -4
  298. package/dist/actions/update-document.d.mts +4 -4
  299. package/dist/actions/update-document.mjs +3 -3
  300. package/dist/actions/update-document.mjs.map +1 -1
  301. package/package.json +1 -1
@@ -6,7 +6,7 @@ const ErpnextGetStockBalanceInput = zod.z.object({
6
6
  warehouse: zod.z.string().describe("The name of the warehouse to check stock balance in."),
7
7
  posting_date: zod.z.string().describe("Date for balance calculation in YYYY-MM-DD format. If not provided, current date is used.").optional()
8
8
  }).describe("Request model for getting stock balance of an item in a warehouse.");
9
- const ErpnextGetStockBalanceOutput = zod.z.object({ message: zod.z.number().describe("The stock balance quantity for the item in the specified warehouse.").nullable() }).describe("Response model for stock balance query.");
9
+ const ErpnextGetStockBalanceOutput = zod.z.object({ message: zod.z.number().describe("The stock balance quantity for the item in the specified warehouse.").nullable() }).passthrough().describe("Response model for stock balance query.");
10
10
  const erpnextGetStockBalance = require_action.action("ERPNEXT_GET_STOCK_BALANCE", {
11
11
  slug: "erpnext-get-stock-balance",
12
12
  name: "Get Stock Balance",
@@ -1 +1 @@
1
- {"version":3,"file":"get-stock-balance.cjs","names":["z","action"],"sources":["../../src/actions/get-stock-balance.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetStockBalanceInput = z.object({\n item_code: z.string().describe(\"The unique code/identifier of the item to check stock balance for.\"),\n warehouse: z.string().describe(\"The name of the warehouse to check stock balance in.\"),\n posting_date: z.string().describe(\"Date for balance calculation in YYYY-MM-DD format. If not provided, current date is used.\").optional(),\n}).describe(\"Request model for getting stock balance of an item in a warehouse.\");\nexport const ErpnextGetStockBalanceOutput = z.object({\n message: z.number().describe(\"The stock balance quantity for the item in the specified warehouse.\").nullable(),\n}).describe(\"Response model for stock balance query.\");\n\nexport const erpnextGetStockBalance = action(\"ERPNEXT_GET_STOCK_BALANCE\", {\n slug: \"erpnext-get-stock-balance\",\n name: \"Get Stock Balance\",\n description: \"Tool to retrieve the current stock balance for a specific item in a warehouse. Use when you need to check inventory levels or available quantity.\",\n input: ErpnextGetStockBalanceInput,\n output: ErpnextGetStockBalanceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE;CACnG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;CACrF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS;AAC1I,CAAC,CAAC,CAAC,SAAS,oEAAoE;AAChF,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS,EAC/G,CAAC,CAAC,CAAC,SAAS,yCAAyC;AAErD,MAAa,yBAAyBC,eAAAA,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-stock-balance.cjs","names":["z","action"],"sources":["../../src/actions/get-stock-balance.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetStockBalanceInput = z.object({\n item_code: z.string().describe(\"The unique code/identifier of the item to check stock balance for.\"),\n warehouse: z.string().describe(\"The name of the warehouse to check stock balance in.\"),\n posting_date: z.string().describe(\"Date for balance calculation in YYYY-MM-DD format. If not provided, current date is used.\").optional(),\n}).describe(\"Request model for getting stock balance of an item in a warehouse.\");\nexport const ErpnextGetStockBalanceOutput = z.object({\n message: z.number().describe(\"The stock balance quantity for the item in the specified warehouse.\").nullable(),\n}).passthrough().describe(\"Response model for stock balance query.\");\n\nexport const erpnextGetStockBalance = action(\"ERPNEXT_GET_STOCK_BALANCE\", {\n slug: \"erpnext-get-stock-balance\",\n name: \"Get Stock Balance\",\n description: \"Tool to retrieve the current stock balance for a specific item in a warehouse. Use when you need to check inventory levels or available quantity.\",\n input: ErpnextGetStockBalanceInput,\n output: ErpnextGetStockBalanceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE;CACnG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;CACrF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS;AAC1I,CAAC,CAAC,CAAC,SAAS,oEAAoE;AAChF,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS,EAC/G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AAEnE,MAAa,yBAAyBC,eAAAA,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -8,7 +8,7 @@ declare const ErpnextGetStockBalanceInput: z.ZodObject<{
8
8
  }, z.core.$strip>;
9
9
  declare const ErpnextGetStockBalanceOutput: z.ZodObject<{
10
10
  message: z.ZodNullable<z.ZodNumber>;
11
- }, z.core.$strip>;
11
+ }, z.core.$loose>;
12
12
  declare const erpnextGetStockBalance: import("@keystrokehq/action").WorkflowActionDefinition<{
13
13
  item_code: string;
14
14
  warehouse: string;
@@ -8,7 +8,7 @@ declare const ErpnextGetStockBalanceInput: z.ZodObject<{
8
8
  }, z.core.$strip>;
9
9
  declare const ErpnextGetStockBalanceOutput: z.ZodObject<{
10
10
  message: z.ZodNullable<z.ZodNumber>;
11
- }, z.core.$strip>;
11
+ }, z.core.$loose>;
12
12
  declare const erpnextGetStockBalance: import("@keystrokehq/action").WorkflowActionDefinition<{
13
13
  item_code: string;
14
14
  warehouse: string;
@@ -9,7 +9,7 @@ const erpnextGetStockBalance = action("ERPNEXT_GET_STOCK_BALANCE", {
9
9
  warehouse: z.string().describe("The name of the warehouse to check stock balance in."),
10
10
  posting_date: z.string().describe("Date for balance calculation in YYYY-MM-DD format. If not provided, current date is used.").optional()
11
11
  }).describe("Request model for getting stock balance of an item in a warehouse."),
12
- output: z.object({ message: z.number().describe("The stock balance quantity for the item in the specified warehouse.").nullable() }).describe("Response model for stock balance query.")
12
+ output: z.object({ message: z.number().describe("The stock balance quantity for the item in the specified warehouse.").nullable() }).passthrough().describe("Response model for stock balance query.")
13
13
  });
14
14
  //#endregion
15
15
  export { erpnextGetStockBalance };
@@ -1 +1 @@
1
- {"version":3,"file":"get-stock-balance.mjs","names":[],"sources":["../../src/actions/get-stock-balance.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetStockBalanceInput = z.object({\n item_code: z.string().describe(\"The unique code/identifier of the item to check stock balance for.\"),\n warehouse: z.string().describe(\"The name of the warehouse to check stock balance in.\"),\n posting_date: z.string().describe(\"Date for balance calculation in YYYY-MM-DD format. If not provided, current date is used.\").optional(),\n}).describe(\"Request model for getting stock balance of an item in a warehouse.\");\nexport const ErpnextGetStockBalanceOutput = z.object({\n message: z.number().describe(\"The stock balance quantity for the item in the specified warehouse.\").nullable(),\n}).describe(\"Response model for stock balance query.\");\n\nexport const erpnextGetStockBalance = action(\"ERPNEXT_GET_STOCK_BALANCE\", {\n slug: \"erpnext-get-stock-balance\",\n name: \"Get Stock Balance\",\n description: \"Tool to retrieve the current stock balance for a specific item in a warehouse. Use when you need to check inventory levels or available quantity.\",\n input: ErpnextGetStockBalanceInput,\n output: ErpnextGetStockBalanceOutput,\n});\n"],"mappings":";;AAaA,MAAa,yBAAyB,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAbyC,EAAE,OAAO;EAClD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE;EACnG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;EACrF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS;CAC1I,CAAC,CAAC,CAAC,SAAS,oEASH;CACP,QAT0C,EAAE,OAAO,EACnD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS,EAC/G,CAAC,CAAC,CAAC,SAAS,yCAOF;AACV,CAAC"}
1
+ {"version":3,"file":"get-stock-balance.mjs","names":[],"sources":["../../src/actions/get-stock-balance.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetStockBalanceInput = z.object({\n item_code: z.string().describe(\"The unique code/identifier of the item to check stock balance for.\"),\n warehouse: z.string().describe(\"The name of the warehouse to check stock balance in.\"),\n posting_date: z.string().describe(\"Date for balance calculation in YYYY-MM-DD format. If not provided, current date is used.\").optional(),\n}).describe(\"Request model for getting stock balance of an item in a warehouse.\");\nexport const ErpnextGetStockBalanceOutput = z.object({\n message: z.number().describe(\"The stock balance quantity for the item in the specified warehouse.\").nullable(),\n}).passthrough().describe(\"Response model for stock balance query.\");\n\nexport const erpnextGetStockBalance = action(\"ERPNEXT_GET_STOCK_BALANCE\", {\n slug: \"erpnext-get-stock-balance\",\n name: \"Get Stock Balance\",\n description: \"Tool to retrieve the current stock balance for a specific item in a warehouse. Use when you need to check inventory levels or available quantity.\",\n input: ErpnextGetStockBalanceInput,\n output: ErpnextGetStockBalanceOutput,\n});\n"],"mappings":";;AAaA,MAAa,yBAAyB,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAbyC,EAAE,OAAO;EAClD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE;EACnG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;EACrF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS;CAC1I,CAAC,CAAC,CAAC,SAAS,oEASH;CACP,QAT0C,EAAE,OAAO,EACnD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS,EAC/G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAOhB;AACV,CAAC"}
@@ -2,8 +2,8 @@ const require_action = require("../action.cjs");
2
2
  let zod = require("zod");
3
3
  //#region src/actions/get-timezones.ts
4
4
  const ErpnextGetTimezonesInput = zod.z.object({}).describe("Request model for getting all available timezones.\n\nThis endpoint requires no parameters and returns a list of all timezone strings.");
5
- const ErpnextGetTimezones_TimezonesDataSchema = zod.z.object({ timezones: zod.z.array(zod.z.string()).describe("Array of timezone strings in standard IANA format (e.g., 'America/New_York', 'Europe/London', 'Asia/Tokyo')") }).describe("Data model containing the list of timezones.");
6
- const ErpnextGetTimezonesOutput = zod.z.object({ message: ErpnextGetTimezones_TimezonesDataSchema.nullable() }).describe("Response model for the get timezones endpoint.");
5
+ const ErpnextGetTimezones_TimezonesDataSchema = zod.z.object({ timezones: zod.z.array(zod.z.string()).describe("Array of timezone strings in standard IANA format (e.g., 'America/New_York', 'Europe/London', 'Asia/Tokyo')") }).passthrough().describe("Data model containing the list of timezones.");
6
+ const ErpnextGetTimezonesOutput = zod.z.object({ message: ErpnextGetTimezones_TimezonesDataSchema.nullable() }).passthrough().describe("Response model for the get timezones endpoint.");
7
7
  const erpnextGetTimezones = require_action.action("ERPNEXT_GET_TIMEZONES", {
8
8
  slug: "erpnext-get-timezones",
9
9
  name: "Get Timezones",
@@ -1 +1 @@
1
- {"version":3,"file":"get-timezones.cjs","names":["z","action"],"sources":["../../src/actions/get-timezones.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetTimezonesInput = z.object({}).describe(\"Request model for getting all available timezones.\\n\\nThis endpoint requires no parameters and returns a list of all timezone strings.\");\nconst ErpnextGetTimezones_TimezonesDataSchema = z.object({\n timezones: z.array(z.string()).describe(\"Array of timezone strings in standard IANA format (e.g., 'America/New_York', 'Europe/London', 'Asia/Tokyo')\"),\n}).describe(\"Data model containing the list of timezones.\");\nexport const ErpnextGetTimezonesOutput = z.object({\n message: ErpnextGetTimezones_TimezonesDataSchema.nullable(),\n}).describe(\"Response model for the get timezones endpoint.\");\n\nexport const erpnextGetTimezones = action(\"ERPNEXT_GET_TIMEZONES\", {\n slug: \"erpnext-get-timezones\",\n name: \"Get Timezones\",\n description: \"Tool to get a list of all available timezones in the ERPNext system. Use when you need to retrieve timezone options for user configuration or scheduling.\",\n input: ErpnextGetTimezonesInput,\n output: ErpnextGetTimezonesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,wIAAwI;AACtM,MAAM,0CAA0CA,IAAAA,EAAE,OAAO,EACvD,WAAWA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,6GAA6G,EACvJ,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,SAAS,wCAAwC,SAAS,EAC5D,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAE5D,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-timezones.cjs","names":["z","action"],"sources":["../../src/actions/get-timezones.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetTimezonesInput = z.object({}).describe(\"Request model for getting all available timezones.\\n\\nThis endpoint requires no parameters and returns a list of all timezone strings.\");\nconst ErpnextGetTimezones_TimezonesDataSchema = z.object({\n timezones: z.array(z.string()).describe(\"Array of timezone strings in standard IANA format (e.g., 'America/New_York', 'Europe/London', 'Asia/Tokyo')\"),\n}).passthrough().describe(\"Data model containing the list of timezones.\");\nexport const ErpnextGetTimezonesOutput = z.object({\n message: ErpnextGetTimezones_TimezonesDataSchema.nullable(),\n}).passthrough().describe(\"Response model for the get timezones endpoint.\");\n\nexport const erpnextGetTimezones = action(\"ERPNEXT_GET_TIMEZONES\", {\n slug: \"erpnext-get-timezones\",\n name: \"Get Timezones\",\n description: \"Tool to get a list of all available timezones in the ERPNext system. Use when you need to retrieve timezone options for user configuration or scheduling.\",\n input: ErpnextGetTimezonesInput,\n output: ErpnextGetTimezonesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,wIAAwI;AACtM,MAAM,0CAA0CA,IAAAA,EAAE,OAAO,EACvD,WAAWA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,6GAA6G,EACvJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAA8C;AACxE,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,SAAS,wCAAwC,SAAS,EAC5D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAAgD;AAE1E,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -5,8 +5,8 @@ declare const ErpnextGetTimezonesInput: z.ZodObject<{}, z.core.$strip>;
5
5
  declare const ErpnextGetTimezonesOutput: z.ZodObject<{
6
6
  message: z.ZodNullable<z.ZodObject<{
7
7
  timezones: z.ZodArray<z.ZodString>;
8
- }, z.core.$strip>>;
9
- }, z.core.$strip>;
8
+ }, z.core.$loose>>;
9
+ }, z.core.$loose>;
10
10
  declare const erpnextGetTimezones: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
11
11
  //#endregion
12
12
  export { erpnextGetTimezones };
@@ -5,8 +5,8 @@ declare const ErpnextGetTimezonesInput: z.ZodObject<{}, z.core.$strip>;
5
5
  declare const ErpnextGetTimezonesOutput: z.ZodObject<{
6
6
  message: z.ZodNullable<z.ZodObject<{
7
7
  timezones: z.ZodArray<z.ZodString>;
8
- }, z.core.$strip>>;
9
- }, z.core.$strip>;
8
+ }, z.core.$loose>>;
9
+ }, z.core.$loose>;
10
10
  declare const erpnextGetTimezones: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
11
11
  //#endregion
12
12
  export { erpnextGetTimezones };
@@ -2,13 +2,13 @@ import { action } from "../action.mjs";
2
2
  import { z } from "zod";
3
3
  //#region src/actions/get-timezones.ts
4
4
  const ErpnextGetTimezonesInput = z.object({}).describe("Request model for getting all available timezones.\n\nThis endpoint requires no parameters and returns a list of all timezone strings.");
5
- const ErpnextGetTimezones_TimezonesDataSchema = z.object({ timezones: z.array(z.string()).describe("Array of timezone strings in standard IANA format (e.g., 'America/New_York', 'Europe/London', 'Asia/Tokyo')") }).describe("Data model containing the list of timezones.");
5
+ const ErpnextGetTimezones_TimezonesDataSchema = z.object({ timezones: z.array(z.string()).describe("Array of timezone strings in standard IANA format (e.g., 'America/New_York', 'Europe/London', 'Asia/Tokyo')") }).passthrough().describe("Data model containing the list of timezones.");
6
6
  const erpnextGetTimezones = action("ERPNEXT_GET_TIMEZONES", {
7
7
  slug: "erpnext-get-timezones",
8
8
  name: "Get Timezones",
9
9
  description: "Tool to get a list of all available timezones in the ERPNext system. Use when you need to retrieve timezone options for user configuration or scheduling.",
10
10
  input: ErpnextGetTimezonesInput,
11
- output: z.object({ message: ErpnextGetTimezones_TimezonesDataSchema.nullable() }).describe("Response model for the get timezones endpoint.")
11
+ output: z.object({ message: ErpnextGetTimezones_TimezonesDataSchema.nullable() }).passthrough().describe("Response model for the get timezones endpoint.")
12
12
  });
13
13
  //#endregion
14
14
  export { erpnextGetTimezones };
@@ -1 +1 @@
1
- {"version":3,"file":"get-timezones.mjs","names":[],"sources":["../../src/actions/get-timezones.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetTimezonesInput = z.object({}).describe(\"Request model for getting all available timezones.\\n\\nThis endpoint requires no parameters and returns a list of all timezone strings.\");\nconst ErpnextGetTimezones_TimezonesDataSchema = z.object({\n timezones: z.array(z.string()).describe(\"Array of timezone strings in standard IANA format (e.g., 'America/New_York', 'Europe/London', 'Asia/Tokyo')\"),\n}).describe(\"Data model containing the list of timezones.\");\nexport const ErpnextGetTimezonesOutput = z.object({\n message: ErpnextGetTimezones_TimezonesDataSchema.nullable(),\n}).describe(\"Response model for the get timezones endpoint.\");\n\nexport const erpnextGetTimezones = action(\"ERPNEXT_GET_TIMEZONES\", {\n slug: \"erpnext-get-timezones\",\n name: \"Get Timezones\",\n description: \"Tool to get a list of all available timezones in the ERPNext system. Use when you need to retrieve timezone options for user configuration or scheduling.\",\n input: ErpnextGetTimezonesInput,\n output: ErpnextGetTimezonesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2B,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,wIAAwI;AACtM,MAAM,0CAA0C,EAAE,OAAO,EACvD,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,6GAA6G,EACvJ,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAK1D,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATuC,EAAE,OAAO,EAChD,SAAS,wCAAwC,SAAS,EAC5D,CAAC,CAAC,CAAC,SAAS,gDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"get-timezones.mjs","names":[],"sources":["../../src/actions/get-timezones.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetTimezonesInput = z.object({}).describe(\"Request model for getting all available timezones.\\n\\nThis endpoint requires no parameters and returns a list of all timezone strings.\");\nconst ErpnextGetTimezones_TimezonesDataSchema = z.object({\n timezones: z.array(z.string()).describe(\"Array of timezone strings in standard IANA format (e.g., 'America/New_York', 'Europe/London', 'Asia/Tokyo')\"),\n}).passthrough().describe(\"Data model containing the list of timezones.\");\nexport const ErpnextGetTimezonesOutput = z.object({\n message: ErpnextGetTimezones_TimezonesDataSchema.nullable(),\n}).passthrough().describe(\"Response model for the get timezones endpoint.\");\n\nexport const erpnextGetTimezones = action(\"ERPNEXT_GET_TIMEZONES\", {\n slug: \"erpnext-get-timezones\",\n name: \"Get Timezones\",\n description: \"Tool to get a list of all available timezones in the ERPNext system. Use when you need to retrieve timezone options for user configuration or scheduling.\",\n input: ErpnextGetTimezonesInput,\n output: ErpnextGetTimezonesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2B,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,wIAAwI;AACtM,MAAM,0CAA0C,EAAE,OAAO,EACvD,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,6GAA6G,EACvJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAA8C;AAKxE,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATuC,EAAE,OAAO,EAChD,SAAS,wCAAwC,SAAS,EAC5D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAOhB;AACV,CAAC"}
@@ -2,7 +2,7 @@ const require_action = require("../action.cjs");
2
2
  let zod = require("zod");
3
3
  //#region src/actions/get-user-roles.ts
4
4
  const ErpnextGetUserRolesInput = zod.z.object({ uid: zod.z.string().describe("User ID to get roles for. If not provided, returns roles for the currently authenticated user.").optional() }).describe("Request model for getting roles assigned to a user.");
5
- const ErpnextGetUserRolesOutput = zod.z.object({ message: zod.z.array(zod.z.string()).describe("Array of role names assigned to the user.") }).describe("Response model containing the list of roles assigned to a user.");
5
+ const ErpnextGetUserRolesOutput = zod.z.object({ message: zod.z.array(zod.z.string()).describe("Array of role names assigned to the user.") }).passthrough().describe("Response model containing the list of roles assigned to a user.");
6
6
  const erpnextGetUserRoles = require_action.action("ERPNEXT_GET_USER_ROLES", {
7
7
  slug: "erpnext-get-user-roles",
8
8
  name: "Get User Roles",
@@ -1 +1 @@
1
- {"version":3,"file":"get-user-roles.cjs","names":["z","action"],"sources":["../../src/actions/get-user-roles.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetUserRolesInput = z.object({\n uid: z.string().describe(\"User ID to get roles for. If not provided, returns roles for the currently authenticated user.\").optional(),\n}).describe(\"Request model for getting roles assigned to a user.\");\nexport const ErpnextGetUserRolesOutput = z.object({\n message: z.array(z.string()).describe(\"Array of role names assigned to the user.\"),\n}).describe(\"Response model containing the list of roles assigned to a user.\");\n\nexport const erpnextGetUserRoles = action(\"ERPNEXT_GET_USER_ROLES\", {\n slug: \"erpnext-get-user-roles\",\n name: \"Get User Roles\",\n description: \"Tool to get roles assigned to a user. Use when you need to check user permissions or access levels in ERPNext/Frappe.\",\n input: ErpnextGetUserRolesInput,\n output: ErpnextGetUserRolesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,EAC/C,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS,EACtI,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2CAA2C,EACnF,CAAC,CAAC,CAAC,SAAS,iEAAiE;AAE7E,MAAa,sBAAsBC,eAAAA,OAAO,0BAA0B;CAClE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-user-roles.cjs","names":["z","action"],"sources":["../../src/actions/get-user-roles.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetUserRolesInput = z.object({\n uid: z.string().describe(\"User ID to get roles for. If not provided, returns roles for the currently authenticated user.\").optional(),\n}).describe(\"Request model for getting roles assigned to a user.\");\nexport const ErpnextGetUserRolesOutput = z.object({\n message: z.array(z.string()).describe(\"Array of role names assigned to the user.\"),\n}).passthrough().describe(\"Response model containing the list of roles assigned to a user.\");\n\nexport const erpnextGetUserRoles = action(\"ERPNEXT_GET_USER_ROLES\", {\n slug: \"erpnext-get-user-roles\",\n name: \"Get User Roles\",\n description: \"Tool to get roles assigned to a user. Use when you need to check user permissions or access levels in ERPNext/Frappe.\",\n input: ErpnextGetUserRolesInput,\n output: ErpnextGetUserRolesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,EAC/C,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS,EACtI,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2CAA2C,EACnF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iEAAiE;AAE3F,MAAa,sBAAsBC,eAAAA,OAAO,0BAA0B;CAClE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -6,7 +6,7 @@ declare const ErpnextGetUserRolesInput: z.ZodObject<{
6
6
  }, z.core.$strip>;
7
7
  declare const ErpnextGetUserRolesOutput: z.ZodObject<{
8
8
  message: z.ZodArray<z.ZodString>;
9
- }, z.core.$strip>;
9
+ }, z.core.$loose>;
10
10
  declare const erpnextGetUserRoles: import("@keystrokehq/action").WorkflowActionDefinition<{
11
11
  uid?: string | undefined;
12
12
  }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
@@ -6,7 +6,7 @@ declare const ErpnextGetUserRolesInput: z.ZodObject<{
6
6
  }, z.core.$strip>;
7
7
  declare const ErpnextGetUserRolesOutput: z.ZodObject<{
8
8
  message: z.ZodArray<z.ZodString>;
9
- }, z.core.$strip>;
9
+ }, z.core.$loose>;
10
10
  declare const erpnextGetUserRoles: import("@keystrokehq/action").WorkflowActionDefinition<{
11
11
  uid?: string | undefined;
12
12
  }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
@@ -5,7 +5,7 @@ const erpnextGetUserRoles = action("ERPNEXT_GET_USER_ROLES", {
5
5
  name: "Get User Roles",
6
6
  description: "Tool to get roles assigned to a user. Use when you need to check user permissions or access levels in ERPNext/Frappe.",
7
7
  input: z.object({ uid: z.string().describe("User ID to get roles for. If not provided, returns roles for the currently authenticated user.").optional() }).describe("Request model for getting roles assigned to a user."),
8
- output: z.object({ message: z.array(z.string()).describe("Array of role names assigned to the user.") }).describe("Response model containing the list of roles assigned to a user.")
8
+ output: z.object({ message: z.array(z.string()).describe("Array of role names assigned to the user.") }).passthrough().describe("Response model containing the list of roles assigned to a user.")
9
9
  });
10
10
  //#endregion
11
11
  export { erpnextGetUserRoles };
@@ -1 +1 @@
1
- {"version":3,"file":"get-user-roles.mjs","names":[],"sources":["../../src/actions/get-user-roles.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetUserRolesInput = z.object({\n uid: z.string().describe(\"User ID to get roles for. If not provided, returns roles for the currently authenticated user.\").optional(),\n}).describe(\"Request model for getting roles assigned to a user.\");\nexport const ErpnextGetUserRolesOutput = z.object({\n message: z.array(z.string()).describe(\"Array of role names assigned to the user.\"),\n}).describe(\"Response model containing the list of roles assigned to a user.\");\n\nexport const erpnextGetUserRoles = action(\"ERPNEXT_GET_USER_ROLES\", {\n slug: \"erpnext-get-user-roles\",\n name: \"Get User Roles\",\n description: \"Tool to get roles assigned to a user. Use when you need to check user permissions or access levels in ERPNext/Frappe.\",\n input: ErpnextGetUserRolesInput,\n output: ErpnextGetUserRolesOutput,\n});\n"],"mappings":";;AAWA,MAAa,sBAAsB,OAAO,0BAA0B;CAClE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAXsC,EAAE,OAAO,EAC/C,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS,EACtI,CAAC,CAAC,CAAC,SAAS,qDASH;CACP,QATuC,EAAE,OAAO,EAChD,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2CAA2C,EACnF,CAAC,CAAC,CAAC,SAAS,iEAOF;AACV,CAAC"}
1
+ {"version":3,"file":"get-user-roles.mjs","names":[],"sources":["../../src/actions/get-user-roles.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetUserRolesInput = z.object({\n uid: z.string().describe(\"User ID to get roles for. If not provided, returns roles for the currently authenticated user.\").optional(),\n}).describe(\"Request model for getting roles assigned to a user.\");\nexport const ErpnextGetUserRolesOutput = z.object({\n message: z.array(z.string()).describe(\"Array of role names assigned to the user.\"),\n}).passthrough().describe(\"Response model containing the list of roles assigned to a user.\");\n\nexport const erpnextGetUserRoles = action(\"ERPNEXT_GET_USER_ROLES\", {\n slug: \"erpnext-get-user-roles\",\n name: \"Get User Roles\",\n description: \"Tool to get roles assigned to a user. Use when you need to check user permissions or access levels in ERPNext/Frappe.\",\n input: ErpnextGetUserRolesInput,\n output: ErpnextGetUserRolesOutput,\n});\n"],"mappings":";;AAWA,MAAa,sBAAsB,OAAO,0BAA0B;CAClE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAXsC,EAAE,OAAO,EAC/C,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS,EACtI,CAAC,CAAC,CAAC,SAAS,qDASH;CACP,QATuC,EAAE,OAAO,EAChD,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2CAA2C,EACnF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iEAOhB;AACV,CAAC"}
@@ -12,8 +12,8 @@ const ErpnextGetValueOutput = zod.z.object({ message: zod.z.union([
12
12
  zod.z.number().int(),
13
13
  zod.z.number(),
14
14
  zod.z.boolean(),
15
- zod.z.object({})
16
- ]) }).describe("Response model containing the requested field value(s).");
15
+ zod.z.record(zod.z.string(), zod.z.unknown())
16
+ ]) }).passthrough().describe("Response model containing the requested field value(s).");
17
17
  const erpnextGetValue = require_action.action("ERPNEXT_GET_VALUE", {
18
18
  slug: "erpnext-get-value",
19
19
  name: "Get Field Value",
@@ -1 +1 @@
1
- {"version":3,"file":"get-value.cjs","names":["z","action"],"sources":["../../src/actions/get-value.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetValueInput = z.object({\n name: z.string().describe(\"The specific document name/ID to retrieve. Use this when you know the exact document identifier. Cannot be used together with filters parameter.\").optional(),\n doctype: z.string().describe(\"The DocType (document type) to query. Examples include 'User', 'Customer', 'Sales Invoice', 'Item', etc.\"),\n filters: z.string().describe(\"Filter conditions as JSON string to match documents (e.g., '{\\\"status\\\": \\\"Open\\\"}' or '{\\\"email\\\": \\\"user@example.com\\\"}'). Returns the first matching document. Cannot be used together with name parameter.\").optional(),\n fieldname: z.string().describe(\"The field name(s) to retrieve. For multiple fields, provide a comma-separated list (e.g., 'full_name,email').\"),\n}).describe(\"Request model for getting a specific field value from a document in ERPNext.\");\nexport const ErpnextGetValueOutput = z.object({\n message: z.union([z.string(), z.number().int(), z.number(), z.boolean(), z.object({})]),\n}).describe(\"Response model containing the requested field value(s).\");\n\nexport const erpnextGetValue = action(\"ERPNEXT_GET_VALUE\", {\n slug: \"erpnext-get-value\",\n name: \"Get Field Value\",\n description: \"Tool to get specific field value(s) from a document in ERPNext. Use when you need to retrieve one or more field values without loading the entire document.\",\n input: ErpnextGetValueInput,\n output: ErpnextGetValueOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uBAAuBA,IAAAA,EAAE,OAAO;CAC3C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kJAAkJ,CAAC,CAAC,SAAS;CACvL,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0GAA0G;CACvI,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gNAAgN,CAAC,CAAC,SAAS;CACxP,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+GAA+G;AAChJ,CAAC,CAAC,CAAC,SAAS,8EAA8E;AAC1F,MAAa,wBAAwBA,IAAAA,EAAE,OAAO,EAC5C,SAASA,IAAAA,EAAE,MAAM;CAACA,IAAAA,EAAE,OAAO;CAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI;CAAGA,IAAAA,EAAE,OAAO;CAAGA,IAAAA,EAAE,QAAQ;CAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC;AAAC,CAAC,EACxF,CAAC,CAAC,CAAC,SAAS,yDAAyD;AAErE,MAAa,kBAAkBC,eAAAA,OAAO,qBAAqB;CACzD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-value.cjs","names":["z","action"],"sources":["../../src/actions/get-value.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetValueInput = z.object({\n name: z.string().describe(\"The specific document name/ID to retrieve. Use this when you know the exact document identifier. Cannot be used together with filters parameter.\").optional(),\n doctype: z.string().describe(\"The DocType (document type) to query. Examples include 'User', 'Customer', 'Sales Invoice', 'Item', etc.\"),\n filters: z.string().describe(\"Filter conditions as JSON string to match documents (e.g., '{\\\"status\\\": \\\"Open\\\"}' or '{\\\"email\\\": \\\"user@example.com\\\"}'). Returns the first matching document. Cannot be used together with name parameter.\").optional(),\n fieldname: z.string().describe(\"The field name(s) to retrieve. For multiple fields, provide a comma-separated list (e.g., 'full_name,email').\"),\n}).describe(\"Request model for getting a specific field value from a document in ERPNext.\");\nexport const ErpnextGetValueOutput = z.object({\n message: z.union([z.string(), z.number().int(), z.number(), z.boolean(), z.record(z.string(), z.unknown())]),\n}).passthrough().describe(\"Response model containing the requested field value(s).\");\n\nexport const erpnextGetValue = action(\"ERPNEXT_GET_VALUE\", {\n slug: \"erpnext-get-value\",\n name: \"Get Field Value\",\n description: \"Tool to get specific field value(s) from a document in ERPNext. Use when you need to retrieve one or more field values without loading the entire document.\",\n input: ErpnextGetValueInput,\n output: ErpnextGetValueOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uBAAuBA,IAAAA,EAAE,OAAO;CAC3C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kJAAkJ,CAAC,CAAC,SAAS;CACvL,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0GAA0G;CACvI,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gNAAgN,CAAC,CAAC,SAAS;CACxP,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+GAA+G;AAChJ,CAAC,CAAC,CAAC,SAAS,8EAA8E;AAC1F,MAAa,wBAAwBA,IAAAA,EAAE,OAAO,EAC5C,SAASA,IAAAA,EAAE,MAAM;CAACA,IAAAA,EAAE,OAAO;CAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI;CAAGA,IAAAA,EAAE,OAAO;CAAGA,IAAAA,EAAE,QAAQ;CAAGA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC;AAAC,CAAC,EAC7G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yDAAyD;AAEnF,MAAa,kBAAkBC,eAAAA,OAAO,qBAAqB;CACzD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -8,8 +8,8 @@ declare const ErpnextGetValueInput: z.ZodObject<{
8
8
  fieldname: z.ZodString;
9
9
  }, z.core.$strip>;
10
10
  declare const ErpnextGetValueOutput: z.ZodObject<{
11
- message: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNumber, z.ZodBoolean, z.ZodObject<{}, z.core.$strip>]>;
12
- }, z.core.$strip>;
11
+ message: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNumber, z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
12
+ }, z.core.$loose>;
13
13
  declare const erpnextGetValue: import("@keystrokehq/action").WorkflowActionDefinition<{
14
14
  doctype: string;
15
15
  fieldname: string;
@@ -8,8 +8,8 @@ declare const ErpnextGetValueInput: z.ZodObject<{
8
8
  fieldname: z.ZodString;
9
9
  }, z.core.$strip>;
10
10
  declare const ErpnextGetValueOutput: z.ZodObject<{
11
- message: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNumber, z.ZodBoolean, z.ZodObject<{}, z.core.$strip>]>;
12
- }, z.core.$strip>;
11
+ message: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNumber, z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
12
+ }, z.core.$loose>;
13
13
  declare const erpnextGetValue: import("@keystrokehq/action").WorkflowActionDefinition<{
14
14
  doctype: string;
15
15
  fieldname: string;
@@ -15,8 +15,8 @@ const erpnextGetValue = action("ERPNEXT_GET_VALUE", {
15
15
  z.number().int(),
16
16
  z.number(),
17
17
  z.boolean(),
18
- z.object({})
19
- ]) }).describe("Response model containing the requested field value(s).")
18
+ z.record(z.string(), z.unknown())
19
+ ]) }).passthrough().describe("Response model containing the requested field value(s).")
20
20
  });
21
21
  //#endregion
22
22
  export { erpnextGetValue };
@@ -1 +1 @@
1
- {"version":3,"file":"get-value.mjs","names":[],"sources":["../../src/actions/get-value.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetValueInput = z.object({\n name: z.string().describe(\"The specific document name/ID to retrieve. Use this when you know the exact document identifier. Cannot be used together with filters parameter.\").optional(),\n doctype: z.string().describe(\"The DocType (document type) to query. Examples include 'User', 'Customer', 'Sales Invoice', 'Item', etc.\"),\n filters: z.string().describe(\"Filter conditions as JSON string to match documents (e.g., '{\\\"status\\\": \\\"Open\\\"}' or '{\\\"email\\\": \\\"user@example.com\\\"}'). Returns the first matching document. Cannot be used together with name parameter.\").optional(),\n fieldname: z.string().describe(\"The field name(s) to retrieve. For multiple fields, provide a comma-separated list (e.g., 'full_name,email').\"),\n}).describe(\"Request model for getting a specific field value from a document in ERPNext.\");\nexport const ErpnextGetValueOutput = z.object({\n message: z.union([z.string(), z.number().int(), z.number(), z.boolean(), z.object({})]),\n}).describe(\"Response model containing the requested field value(s).\");\n\nexport const erpnextGetValue = action(\"ERPNEXT_GET_VALUE\", {\n slug: \"erpnext-get-value\",\n name: \"Get Field Value\",\n description: \"Tool to get specific field value(s) from a document in ERPNext. Use when you need to retrieve one or more field values without loading the entire document.\",\n input: ErpnextGetValueInput,\n output: ErpnextGetValueOutput,\n});\n"],"mappings":";;AAcA,MAAa,kBAAkB,OAAO,qBAAqB;CACzD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAdkC,EAAE,OAAO;EAC3C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kJAAkJ,CAAC,CAAC,SAAS;EACvL,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,0GAA0G;EACvI,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,gNAAgN,CAAC,CAAC,SAAS;EACxP,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,+GAA+G;CAChJ,CAAC,CAAC,CAAC,SAAS,8EASH;CACP,QATmC,EAAE,OAAO,EAC5C,SAAS,EAAE,MAAM;EAAC,EAAE,OAAO;EAAG,EAAE,OAAO,CAAC,CAAC,IAAI;EAAG,EAAE,OAAO;EAAG,EAAE,QAAQ;EAAG,EAAE,OAAO,CAAC,CAAC;CAAC,CAAC,EACxF,CAAC,CAAC,CAAC,SAAS,yDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"get-value.mjs","names":[],"sources":["../../src/actions/get-value.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetValueInput = z.object({\n name: z.string().describe(\"The specific document name/ID to retrieve. Use this when you know the exact document identifier. Cannot be used together with filters parameter.\").optional(),\n doctype: z.string().describe(\"The DocType (document type) to query. Examples include 'User', 'Customer', 'Sales Invoice', 'Item', etc.\"),\n filters: z.string().describe(\"Filter conditions as JSON string to match documents (e.g., '{\\\"status\\\": \\\"Open\\\"}' or '{\\\"email\\\": \\\"user@example.com\\\"}'). Returns the first matching document. Cannot be used together with name parameter.\").optional(),\n fieldname: z.string().describe(\"The field name(s) to retrieve. For multiple fields, provide a comma-separated list (e.g., 'full_name,email').\"),\n}).describe(\"Request model for getting a specific field value from a document in ERPNext.\");\nexport const ErpnextGetValueOutput = z.object({\n message: z.union([z.string(), z.number().int(), z.number(), z.boolean(), z.record(z.string(), z.unknown())]),\n}).passthrough().describe(\"Response model containing the requested field value(s).\");\n\nexport const erpnextGetValue = action(\"ERPNEXT_GET_VALUE\", {\n slug: \"erpnext-get-value\",\n name: \"Get Field Value\",\n description: \"Tool to get specific field value(s) from a document in ERPNext. Use when you need to retrieve one or more field values without loading the entire document.\",\n input: ErpnextGetValueInput,\n output: ErpnextGetValueOutput,\n});\n"],"mappings":";;AAcA,MAAa,kBAAkB,OAAO,qBAAqB;CACzD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAdkC,EAAE,OAAO;EAC3C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kJAAkJ,CAAC,CAAC,SAAS;EACvL,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,0GAA0G;EACvI,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,gNAAgN,CAAC,CAAC,SAAS;EACxP,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,+GAA+G;CAChJ,CAAC,CAAC,CAAC,SAAS,8EASH;CACP,QATmC,EAAE,OAAO,EAC5C,SAAS,EAAE,MAAM;EAAC,EAAE,OAAO;EAAG,EAAE,OAAO,CAAC,CAAC,IAAI;EAAG,EAAE,OAAO;EAAG,EAAE,QAAQ;EAAG,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC;CAAC,CAAC,EAC7G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yDAOhB;AACV,CAAC"}
@@ -12,8 +12,8 @@ const ErpnextGetWorkflowTransitions_WorkflowTransitionSchema = zod.z.object({
12
12
  condition: zod.z.string().describe("Optional condition that must be satisfied for this transition.").nullable().optional(),
13
13
  next_state: zod.z.string().describe("The next workflow state after performing this transition.").nullable().optional(),
14
14
  allow_self_approval: zod.z.number().int().describe("Whether self-approval is allowed (1 for yes, 0 for no).").nullable().optional()
15
- }).describe("Individual workflow transition details.");
16
- const ErpnextGetWorkflowTransitionsOutput = zod.z.object({ message: zod.z.array(ErpnextGetWorkflowTransitions_WorkflowTransitionSchema).describe("List of available workflow transitions for the document based on current state and user permissions. Returns empty list if no transitions are available or if the document has no workflow configured.").nullable().optional() }).describe("Response containing available workflow transitions for a document.");
15
+ }).passthrough().describe("Individual workflow transition details.");
16
+ const ErpnextGetWorkflowTransitionsOutput = zod.z.object({ message: zod.z.array(ErpnextGetWorkflowTransitions_WorkflowTransitionSchema).describe("List of available workflow transitions for the document based on current state and user permissions. Returns empty list if no transitions are available or if the document has no workflow configured.").nullable().optional() }).passthrough().describe("Response containing available workflow transitions for a document.");
17
17
  const erpnextGetWorkflowTransitions = require_action.action("ERPNEXT_GET_WORKFLOW_TRANSITIONS", {
18
18
  slug: "erpnext-get-workflow-transitions",
19
19
  name: "Get Workflow Transitions",
@@ -1 +1 @@
1
- {"version":3,"file":"get-workflow-transitions.cjs","names":["z","action"],"sources":["../../src/actions/get-workflow-transitions.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetWorkflowTransitionsInput = z.object({\n name: z.string().describe(\"The name/ID of the specific document to get workflow transitions for.\"),\n doctype: z.string().describe(\"The DocType name of the document to get workflow transitions for.\"),\n});\nconst ErpnextGetWorkflowTransitions_WorkflowTransitionSchema = z.object({\n state: z.string().describe(\"The current workflow state from which this transition can be made.\").nullable().optional(),\n action: z.string().describe(\"The action name for this transition (e.g., 'Approve', 'Reject', 'Submit').\").nullable().optional(),\n allowed: z.string().describe(\"The role that is allowed to perform this transition.\").nullable().optional(),\n condition: z.string().describe(\"Optional condition that must be satisfied for this transition.\").nullable().optional(),\n next_state: z.string().describe(\"The next workflow state after performing this transition.\").nullable().optional(),\n allow_self_approval: z.number().int().describe(\"Whether self-approval is allowed (1 for yes, 0 for no).\").nullable().optional(),\n}).describe(\"Individual workflow transition details.\");\nexport const ErpnextGetWorkflowTransitionsOutput = z.object({\n message: z.array(ErpnextGetWorkflowTransitions_WorkflowTransitionSchema).describe(\"List of available workflow transitions for the document based on current state and user permissions. Returns empty list if no transitions are available or if the document has no workflow configured.\").nullable().optional(),\n}).describe(\"Response containing available workflow transitions for a document.\");\n\nexport const erpnextGetWorkflowTransitions = action(\"ERPNEXT_GET_WORKFLOW_TRANSITIONS\", {\n slug: \"erpnext-get-workflow-transitions\",\n name: \"Get Workflow Transitions\",\n description: \"Tool to get available workflow transitions for a document. Use when you need to check what workflow actions are available for a specific document based on its current state and user permissions.\",\n input: ErpnextGetWorkflowTransitionsInput,\n output: ErpnextGetWorkflowTransitionsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE;CACjG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE;AAClG,CAAC;AACD,MAAM,yDAAyDA,IAAAA,EAAE,OAAO;CACtE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrH,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9H,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjH,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChI,CAAC,CAAC,CAAC,SAAS,yCAAyC;AACrD,MAAa,sCAAsCA,IAAAA,EAAE,OAAO,EAC1D,SAASA,IAAAA,EAAE,MAAM,sDAAsD,CAAC,CAAC,SAAS,wMAAwM,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAClT,CAAC,CAAC,CAAC,SAAS,oEAAoE;AAEhF,MAAa,gCAAgCC,eAAAA,OAAO,oCAAoC;CACtF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-workflow-transitions.cjs","names":["z","action"],"sources":["../../src/actions/get-workflow-transitions.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetWorkflowTransitionsInput = z.object({\n name: z.string().describe(\"The name/ID of the specific document to get workflow transitions for.\"),\n doctype: z.string().describe(\"The DocType name of the document to get workflow transitions for.\"),\n});\nconst ErpnextGetWorkflowTransitions_WorkflowTransitionSchema = z.object({\n state: z.string().describe(\"The current workflow state from which this transition can be made.\").nullable().optional(),\n action: z.string().describe(\"The action name for this transition (e.g., 'Approve', 'Reject', 'Submit').\").nullable().optional(),\n allowed: z.string().describe(\"The role that is allowed to perform this transition.\").nullable().optional(),\n condition: z.string().describe(\"Optional condition that must be satisfied for this transition.\").nullable().optional(),\n next_state: z.string().describe(\"The next workflow state after performing this transition.\").nullable().optional(),\n allow_self_approval: z.number().int().describe(\"Whether self-approval is allowed (1 for yes, 0 for no).\").nullable().optional(),\n}).passthrough().describe(\"Individual workflow transition details.\");\nexport const ErpnextGetWorkflowTransitionsOutput = z.object({\n message: z.array(ErpnextGetWorkflowTransitions_WorkflowTransitionSchema).describe(\"List of available workflow transitions for the document based on current state and user permissions. Returns empty list if no transitions are available or if the document has no workflow configured.\").nullable().optional(),\n}).passthrough().describe(\"Response containing available workflow transitions for a document.\");\n\nexport const erpnextGetWorkflowTransitions = action(\"ERPNEXT_GET_WORKFLOW_TRANSITIONS\", {\n slug: \"erpnext-get-workflow-transitions\",\n name: \"Get Workflow Transitions\",\n description: \"Tool to get available workflow transitions for a document. Use when you need to check what workflow actions are available for a specific document based on its current state and user permissions.\",\n input: ErpnextGetWorkflowTransitionsInput,\n output: ErpnextGetWorkflowTransitionsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE;CACjG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE;AAClG,CAAC;AACD,MAAM,yDAAyDA,IAAAA,EAAE,OAAO;CACtE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrH,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9H,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjH,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AACnE,MAAa,sCAAsCA,IAAAA,EAAE,OAAO,EAC1D,SAASA,IAAAA,EAAE,MAAM,sDAAsD,CAAC,CAAC,SAAS,wMAAwM,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAClT,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oEAAoE;AAE9F,MAAa,gCAAgCC,eAAAA,OAAO,oCAAoC;CACtF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -13,8 +13,8 @@ declare const ErpnextGetWorkflowTransitionsOutput: z.ZodObject<{
13
13
  condition: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
14
  next_state: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
15
  allow_self_approval: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
16
- }, z.core.$strip>>>>;
17
- }, z.core.$strip>;
16
+ }, z.core.$loose>>>>;
17
+ }, z.core.$loose>;
18
18
  declare const erpnextGetWorkflowTransitions: import("@keystrokehq/action").WorkflowActionDefinition<{
19
19
  name: string;
20
20
  doctype: string;
@@ -13,8 +13,8 @@ declare const ErpnextGetWorkflowTransitionsOutput: z.ZodObject<{
13
13
  condition: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
14
  next_state: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
15
  allow_self_approval: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
16
- }, z.core.$strip>>>>;
17
- }, z.core.$strip>;
16
+ }, z.core.$loose>>>>;
17
+ }, z.core.$loose>;
18
18
  declare const erpnextGetWorkflowTransitions: import("@keystrokehq/action").WorkflowActionDefinition<{
19
19
  name: string;
20
20
  doctype: string;
@@ -12,13 +12,13 @@ const ErpnextGetWorkflowTransitions_WorkflowTransitionSchema = z.object({
12
12
  condition: z.string().describe("Optional condition that must be satisfied for this transition.").nullable().optional(),
13
13
  next_state: z.string().describe("The next workflow state after performing this transition.").nullable().optional(),
14
14
  allow_self_approval: z.number().int().describe("Whether self-approval is allowed (1 for yes, 0 for no).").nullable().optional()
15
- }).describe("Individual workflow transition details.");
15
+ }).passthrough().describe("Individual workflow transition details.");
16
16
  const erpnextGetWorkflowTransitions = action("ERPNEXT_GET_WORKFLOW_TRANSITIONS", {
17
17
  slug: "erpnext-get-workflow-transitions",
18
18
  name: "Get Workflow Transitions",
19
19
  description: "Tool to get available workflow transitions for a document. Use when you need to check what workflow actions are available for a specific document based on its current state and user permissions.",
20
20
  input: ErpnextGetWorkflowTransitionsInput,
21
- output: z.object({ message: z.array(ErpnextGetWorkflowTransitions_WorkflowTransitionSchema).describe("List of available workflow transitions for the document based on current state and user permissions. Returns empty list if no transitions are available or if the document has no workflow configured.").nullable().optional() }).describe("Response containing available workflow transitions for a document.")
21
+ output: z.object({ message: z.array(ErpnextGetWorkflowTransitions_WorkflowTransitionSchema).describe("List of available workflow transitions for the document based on current state and user permissions. Returns empty list if no transitions are available or if the document has no workflow configured.").nullable().optional() }).passthrough().describe("Response containing available workflow transitions for a document.")
22
22
  });
23
23
  //#endregion
24
24
  export { erpnextGetWorkflowTransitions };
@@ -1 +1 @@
1
- {"version":3,"file":"get-workflow-transitions.mjs","names":[],"sources":["../../src/actions/get-workflow-transitions.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetWorkflowTransitionsInput = z.object({\n name: z.string().describe(\"The name/ID of the specific document to get workflow transitions for.\"),\n doctype: z.string().describe(\"The DocType name of the document to get workflow transitions for.\"),\n});\nconst ErpnextGetWorkflowTransitions_WorkflowTransitionSchema = z.object({\n state: z.string().describe(\"The current workflow state from which this transition can be made.\").nullable().optional(),\n action: z.string().describe(\"The action name for this transition (e.g., 'Approve', 'Reject', 'Submit').\").nullable().optional(),\n allowed: z.string().describe(\"The role that is allowed to perform this transition.\").nullable().optional(),\n condition: z.string().describe(\"Optional condition that must be satisfied for this transition.\").nullable().optional(),\n next_state: z.string().describe(\"The next workflow state after performing this transition.\").nullable().optional(),\n allow_self_approval: z.number().int().describe(\"Whether self-approval is allowed (1 for yes, 0 for no).\").nullable().optional(),\n}).describe(\"Individual workflow transition details.\");\nexport const ErpnextGetWorkflowTransitionsOutput = z.object({\n message: z.array(ErpnextGetWorkflowTransitions_WorkflowTransitionSchema).describe(\"List of available workflow transitions for the document based on current state and user permissions. Returns empty list if no transitions are available or if the document has no workflow configured.\").nullable().optional(),\n}).describe(\"Response containing available workflow transitions for a document.\");\n\nexport const erpnextGetWorkflowTransitions = action(\"ERPNEXT_GET_WORKFLOW_TRANSITIONS\", {\n slug: \"erpnext-get-workflow-transitions\",\n name: \"Get Workflow Transitions\",\n description: \"Tool to get available workflow transitions for a document. Use when you need to check what workflow actions are available for a specific document based on its current state and user permissions.\",\n input: ErpnextGetWorkflowTransitionsInput,\n output: ErpnextGetWorkflowTransitionsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqC,EAAE,OAAO;CACzD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE;CACjG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE;AAClG,CAAC;AACD,MAAM,yDAAyD,EAAE,OAAO;CACtE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrH,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9H,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrH,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjH,qBAAqB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChI,CAAC,CAAC,CAAC,SAAS,yCAAyC;AAKrD,MAAa,gCAAgC,OAAO,oCAAoC;CACtF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATiD,EAAE,OAAO,EAC1D,SAAS,EAAE,MAAM,sDAAsD,CAAC,CAAC,SAAS,wMAAwM,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAClT,CAAC,CAAC,CAAC,SAAS,oEAOF;AACV,CAAC"}
1
+ {"version":3,"file":"get-workflow-transitions.mjs","names":[],"sources":["../../src/actions/get-workflow-transitions.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetWorkflowTransitionsInput = z.object({\n name: z.string().describe(\"The name/ID of the specific document to get workflow transitions for.\"),\n doctype: z.string().describe(\"The DocType name of the document to get workflow transitions for.\"),\n});\nconst ErpnextGetWorkflowTransitions_WorkflowTransitionSchema = z.object({\n state: z.string().describe(\"The current workflow state from which this transition can be made.\").nullable().optional(),\n action: z.string().describe(\"The action name for this transition (e.g., 'Approve', 'Reject', 'Submit').\").nullable().optional(),\n allowed: z.string().describe(\"The role that is allowed to perform this transition.\").nullable().optional(),\n condition: z.string().describe(\"Optional condition that must be satisfied for this transition.\").nullable().optional(),\n next_state: z.string().describe(\"The next workflow state after performing this transition.\").nullable().optional(),\n allow_self_approval: z.number().int().describe(\"Whether self-approval is allowed (1 for yes, 0 for no).\").nullable().optional(),\n}).passthrough().describe(\"Individual workflow transition details.\");\nexport const ErpnextGetWorkflowTransitionsOutput = z.object({\n message: z.array(ErpnextGetWorkflowTransitions_WorkflowTransitionSchema).describe(\"List of available workflow transitions for the document based on current state and user permissions. Returns empty list if no transitions are available or if the document has no workflow configured.\").nullable().optional(),\n}).passthrough().describe(\"Response containing available workflow transitions for a document.\");\n\nexport const erpnextGetWorkflowTransitions = action(\"ERPNEXT_GET_WORKFLOW_TRANSITIONS\", {\n slug: \"erpnext-get-workflow-transitions\",\n name: \"Get Workflow Transitions\",\n description: \"Tool to get available workflow transitions for a document. Use when you need to check what workflow actions are available for a specific document based on its current state and user permissions.\",\n input: ErpnextGetWorkflowTransitionsInput,\n output: ErpnextGetWorkflowTransitionsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqC,EAAE,OAAO;CACzD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE;CACjG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE;AAClG,CAAC;AACD,MAAM,yDAAyD,EAAE,OAAO;CACtE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrH,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9H,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrH,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjH,qBAAqB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AAKnE,MAAa,gCAAgC,OAAO,oCAAoC;CACtF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATiD,EAAE,OAAO,EAC1D,SAAS,EAAE,MAAM,sDAAsD,CAAC,CAAC,SAAS,wMAAwM,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAClT,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oEAOhB;AACV,CAAC"}
@@ -2,7 +2,7 @@ const require_action = require("../action.cjs");
2
2
  let zod = require("zod");
3
3
  //#region src/actions/insert-document.ts
4
4
  const ErpnextInsertDocumentInput = zod.z.object({ doc: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Document object containing doctype field (required) and document-specific fields. The doctype must be a valid DocType name in your ERPNext instance (e.g., 'ToDo', 'Customer', 'Item'). Additional fields depend on the specific DocType schema.") }).describe("Request schema for inserting a new document in ERPNext/Frappe.");
5
- const ErpnextInsertDocumentOutput = zod.z.object({ data: zod.z.record(zod.z.string(), zod.z.unknown()).describe("The created document object with all fields including system metadata (name, creation, modified, owner, docstatus) and custom fields from the request") }).describe("Response schema containing the newly created document data.");
5
+ const ErpnextInsertDocumentOutput = zod.z.object({ data: zod.z.record(zod.z.string(), zod.z.unknown()).describe("The created document object with all fields including system metadata (name, creation, modified, owner, docstatus) and custom fields from the request") }).passthrough().describe("Response schema containing the newly created document data.");
6
6
  const erpnextInsertDocument = require_action.action("ERPNEXT_INSERT_DOCUMENT", {
7
7
  slug: "erpnext-insert-document",
8
8
  name: "Insert Document",
@@ -1 +1 @@
1
- {"version":3,"file":"insert-document.cjs","names":["z","action"],"sources":["../../src/actions/insert-document.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextInsertDocumentInput = z.object({\n doc: z.record(z.string(), z.unknown()).describe(\"Document object containing doctype field (required) and document-specific fields. The doctype must be a valid DocType name in your ERPNext instance (e.g., 'ToDo', 'Customer', 'Item'). Additional fields depend on the specific DocType schema.\"),\n}).describe(\"Request schema for inserting a new document in ERPNext/Frappe.\");\nexport const ErpnextInsertDocumentOutput = z.object({\n data: z.record(z.string(), z.unknown()).describe(\"The created document object with all fields including system metadata (name, creation, modified, owner, docstatus) and custom fields from the request\"),\n}).describe(\"Response schema containing the newly created document data.\");\n\nexport const erpnextInsertDocument = action(\"ERPNEXT_INSERT_DOCUMENT\", {\n slug: \"erpnext-insert-document\",\n name: \"Insert Document\",\n description: \"Tool to insert a new document in ERPNext/Frappe using the client API. Use when you need to create any type of document (ToDo, Customer, Item, etc.) by providing the doctype and required fields.\",\n input: ErpnextInsertDocumentInput,\n output: ErpnextInsertDocumentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,KAAKA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kPAAkP,EACpS,CAAC,CAAC,CAAC,SAAS,gEAAgE;AAC5E,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,uJAAuJ,EAC1M,CAAC,CAAC,CAAC,SAAS,6DAA6D;AAEzE,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"insert-document.cjs","names":["z","action"],"sources":["../../src/actions/insert-document.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextInsertDocumentInput = z.object({\n doc: z.record(z.string(), z.unknown()).describe(\"Document object containing doctype field (required) and document-specific fields. The doctype must be a valid DocType name in your ERPNext instance (e.g., 'ToDo', 'Customer', 'Item'). Additional fields depend on the specific DocType schema.\"),\n}).describe(\"Request schema for inserting a new document in ERPNext/Frappe.\");\nexport const ErpnextInsertDocumentOutput = z.object({\n data: z.record(z.string(), z.unknown()).describe(\"The created document object with all fields including system metadata (name, creation, modified, owner, docstatus) and custom fields from the request\"),\n}).passthrough().describe(\"Response schema containing the newly created document data.\");\n\nexport const erpnextInsertDocument = action(\"ERPNEXT_INSERT_DOCUMENT\", {\n slug: \"erpnext-insert-document\",\n name: \"Insert Document\",\n description: \"Tool to insert a new document in ERPNext/Frappe using the client API. Use when you need to create any type of document (ToDo, Customer, Item, etc.) by providing the doctype and required fields.\",\n input: ErpnextInsertDocumentInput,\n output: ErpnextInsertDocumentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,KAAKA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kPAAkP,EACpS,CAAC,CAAC,CAAC,SAAS,gEAAgE;AAC5E,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,uJAAuJ,EAC1M,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6DAA6D;AAEvF,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -6,7 +6,7 @@ declare const ErpnextInsertDocumentInput: z.ZodObject<{
6
6
  }, z.core.$strip>;
7
7
  declare const ErpnextInsertDocumentOutput: z.ZodObject<{
8
8
  data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
9
- }, z.core.$strip>;
9
+ }, z.core.$loose>;
10
10
  declare const erpnextInsertDocument: import("@keystrokehq/action").WorkflowActionDefinition<{
11
11
  doc: Record<string, unknown>;
12
12
  }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
@@ -6,7 +6,7 @@ declare const ErpnextInsertDocumentInput: z.ZodObject<{
6
6
  }, z.core.$strip>;
7
7
  declare const ErpnextInsertDocumentOutput: z.ZodObject<{
8
8
  data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
9
- }, z.core.$strip>;
9
+ }, z.core.$loose>;
10
10
  declare const erpnextInsertDocument: import("@keystrokehq/action").WorkflowActionDefinition<{
11
11
  doc: Record<string, unknown>;
12
12
  }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
@@ -5,7 +5,7 @@ const erpnextInsertDocument = action("ERPNEXT_INSERT_DOCUMENT", {
5
5
  name: "Insert Document",
6
6
  description: "Tool to insert a new document in ERPNext/Frappe using the client API. Use when you need to create any type of document (ToDo, Customer, Item, etc.) by providing the doctype and required fields.",
7
7
  input: z.object({ doc: z.record(z.string(), z.unknown()).describe("Document object containing doctype field (required) and document-specific fields. The doctype must be a valid DocType name in your ERPNext instance (e.g., 'ToDo', 'Customer', 'Item'). Additional fields depend on the specific DocType schema.") }).describe("Request schema for inserting a new document in ERPNext/Frappe."),
8
- output: z.object({ data: z.record(z.string(), z.unknown()).describe("The created document object with all fields including system metadata (name, creation, modified, owner, docstatus) and custom fields from the request") }).describe("Response schema containing the newly created document data.")
8
+ output: z.object({ data: z.record(z.string(), z.unknown()).describe("The created document object with all fields including system metadata (name, creation, modified, owner, docstatus) and custom fields from the request") }).passthrough().describe("Response schema containing the newly created document data.")
9
9
  });
10
10
  //#endregion
11
11
  export { erpnextInsertDocument };
@@ -1 +1 @@
1
- {"version":3,"file":"insert-document.mjs","names":[],"sources":["../../src/actions/insert-document.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextInsertDocumentInput = z.object({\n doc: z.record(z.string(), z.unknown()).describe(\"Document object containing doctype field (required) and document-specific fields. The doctype must be a valid DocType name in your ERPNext instance (e.g., 'ToDo', 'Customer', 'Item'). Additional fields depend on the specific DocType schema.\"),\n}).describe(\"Request schema for inserting a new document in ERPNext/Frappe.\");\nexport const ErpnextInsertDocumentOutput = z.object({\n data: z.record(z.string(), z.unknown()).describe(\"The created document object with all fields including system metadata (name, creation, modified, owner, docstatus) and custom fields from the request\"),\n}).describe(\"Response schema containing the newly created document data.\");\n\nexport const erpnextInsertDocument = action(\"ERPNEXT_INSERT_DOCUMENT\", {\n slug: \"erpnext-insert-document\",\n name: \"Insert Document\",\n description: \"Tool to insert a new document in ERPNext/Frappe using the client API. Use when you need to create any type of document (ToDo, Customer, Item, etc.) by providing the doctype and required fields.\",\n input: ErpnextInsertDocumentInput,\n output: ErpnextInsertDocumentOutput,\n});\n"],"mappings":";;AAWA,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAXwC,EAAE,OAAO,EACjD,KAAK,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kPAAkP,EACpS,CAAC,CAAC,CAAC,SAAS,gEASH;CACP,QATyC,EAAE,OAAO,EAClD,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,uJAAuJ,EAC1M,CAAC,CAAC,CAAC,SAAS,6DAOF;AACV,CAAC"}
1
+ {"version":3,"file":"insert-document.mjs","names":[],"sources":["../../src/actions/insert-document.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextInsertDocumentInput = z.object({\n doc: z.record(z.string(), z.unknown()).describe(\"Document object containing doctype field (required) and document-specific fields. The doctype must be a valid DocType name in your ERPNext instance (e.g., 'ToDo', 'Customer', 'Item'). Additional fields depend on the specific DocType schema.\"),\n}).describe(\"Request schema for inserting a new document in ERPNext/Frappe.\");\nexport const ErpnextInsertDocumentOutput = z.object({\n data: z.record(z.string(), z.unknown()).describe(\"The created document object with all fields including system metadata (name, creation, modified, owner, docstatus) and custom fields from the request\"),\n}).passthrough().describe(\"Response schema containing the newly created document data.\");\n\nexport const erpnextInsertDocument = action(\"ERPNEXT_INSERT_DOCUMENT\", {\n slug: \"erpnext-insert-document\",\n name: \"Insert Document\",\n description: \"Tool to insert a new document in ERPNext/Frappe using the client API. Use when you need to create any type of document (ToDo, Customer, Item, etc.) by providing the doctype and required fields.\",\n input: ErpnextInsertDocumentInput,\n output: ErpnextInsertDocumentOutput,\n});\n"],"mappings":";;AAWA,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAXwC,EAAE,OAAO,EACjD,KAAK,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kPAAkP,EACpS,CAAC,CAAC,CAAC,SAAS,gEASH;CACP,QATyC,EAAE,OAAO,EAClD,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,uJAAuJ,EAC1M,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6DAOhB;AACV,CAAC"}
@@ -10,7 +10,7 @@ const ErpnextInsertManyOutput = zod.z.object({ message: zod.z.union([
10
10
  zod.z.array(ErpnextInsertMany_InsertedDocumentModelSchema),
11
11
  zod.z.array(zod.z.string()),
12
12
  zod.z.string()
13
- ]).nullable().optional() }).describe("Response model for the insert_many operation.");
13
+ ]).nullable().optional() }).passthrough().describe("Response model for the insert_many operation.");
14
14
  const erpnextInsertMany = require_action.action("ERPNEXT_INSERT_MANY", {
15
15
  slug: "erpnext-insert-many",
16
16
  name: "Insert Multiple Documents",
@@ -1 +1 @@
1
- {"version":3,"file":"insert-many.cjs","names":["z","action"],"sources":["../../src/actions/insert-many.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextInsertManyInput = z.object({\n docs: z.array(z.record(z.string(), z.unknown())).describe(\"Array of document objects to insert. Each document must have a 'doctype' field that specifies the type of document (e.g., 'Note', 'Customer', 'Item'). Additional fields depend on the specific doctype requirements. For example, a Note requires 'title' and 'content' fields.\"),\n}).describe(\"Request model for inserting multiple documents at once.\");\nconst ErpnextInsertMany_InsertedDocumentModelSchema = z.object({\n name: z.string().describe(\"The unique identifier (name) of the inserted document.\").nullable().optional(),\n doctype: z.string().describe(\"The type of document that was inserted.\").nullable().optional(),\n}).passthrough().describe(\"Model for a successfully inserted document in the response.\");\nexport const ErpnextInsertManyOutput = z.object({\n message: z.union([z.array(ErpnextInsertMany_InsertedDocumentModelSchema), z.array(z.string()), z.string()]).nullable().optional(),\n}).describe(\"Response model for the insert_many operation.\");\n\nexport const erpnextInsertMany = action(\"ERPNEXT_INSERT_MANY\", {\n slug: \"erpnext-insert-many\",\n name: \"Insert Multiple Documents\",\n description: \"Tool to insert multiple documents at once into ERPNext/Frappe. Use when you need to create multiple records (Notes, Customers, Items, etc.) in a single API call for better efficiency.\",\n input: ErpnextInsertManyInput,\n output: ErpnextInsertManyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyBA,IAAAA,EAAE,OAAO,EAC7C,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,kRAAkR,EAC9U,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAM,gDAAgDA,IAAAA,EAAE,OAAO;CAC7D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6DAA6D;AACvF,MAAa,0BAA0BA,IAAAA,EAAE,OAAO,EAC9C,SAASA,IAAAA,EAAE,MAAM;CAACA,IAAAA,EAAE,MAAM,6CAA6C;CAAGA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC;CAAGA,IAAAA,EAAE,OAAO;AAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAClI,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAE3D,MAAa,oBAAoBC,eAAAA,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"insert-many.cjs","names":["z","action"],"sources":["../../src/actions/insert-many.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextInsertManyInput = z.object({\n docs: z.array(z.record(z.string(), z.unknown())).describe(\"Array of document objects to insert. Each document must have a 'doctype' field that specifies the type of document (e.g., 'Note', 'Customer', 'Item'). Additional fields depend on the specific doctype requirements. For example, a Note requires 'title' and 'content' fields.\"),\n}).describe(\"Request model for inserting multiple documents at once.\");\nconst ErpnextInsertMany_InsertedDocumentModelSchema = z.object({\n name: z.string().describe(\"The unique identifier (name) of the inserted document.\").nullable().optional(),\n doctype: z.string().describe(\"The type of document that was inserted.\").nullable().optional(),\n}).passthrough().describe(\"Model for a successfully inserted document in the response.\");\nexport const ErpnextInsertManyOutput = z.object({\n message: z.union([z.array(ErpnextInsertMany_InsertedDocumentModelSchema), z.array(z.string()), z.string()]).nullable().optional(),\n}).passthrough().describe(\"Response model for the insert_many operation.\");\n\nexport const erpnextInsertMany = action(\"ERPNEXT_INSERT_MANY\", {\n slug: \"erpnext-insert-many\",\n name: \"Insert Multiple Documents\",\n description: \"Tool to insert multiple documents at once into ERPNext/Frappe. Use when you need to create multiple records (Notes, Customers, Items, etc.) in a single API call for better efficiency.\",\n input: ErpnextInsertManyInput,\n output: ErpnextInsertManyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyBA,IAAAA,EAAE,OAAO,EAC7C,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,kRAAkR,EAC9U,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAM,gDAAgDA,IAAAA,EAAE,OAAO;CAC7D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6DAA6D;AACvF,MAAa,0BAA0BA,IAAAA,EAAE,OAAO,EAC9C,SAASA,IAAAA,EAAE,MAAM;CAACA,IAAAA,EAAE,MAAM,6CAA6C;CAAGA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC;CAAGA,IAAAA,EAAE,OAAO;AAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAClI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAA+C;AAEzE,MAAa,oBAAoBC,eAAAA,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -9,7 +9,7 @@ declare const ErpnextInsertManyOutput: z.ZodObject<{
9
9
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
10
  doctype: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
11
  }, z.core.$loose>>, z.ZodArray<z.ZodString>, z.ZodString]>>>;
12
- }, z.core.$strip>;
12
+ }, z.core.$loose>;
13
13
  declare const erpnextInsertMany: import("@keystrokehq/action").WorkflowActionDefinition<{
14
14
  docs: Record<string, unknown>[];
15
15
  }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
@@ -9,7 +9,7 @@ declare const ErpnextInsertManyOutput: z.ZodObject<{
9
9
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
10
  doctype: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
11
  }, z.core.$loose>>, z.ZodArray<z.ZodString>, z.ZodString]>>>;
12
- }, z.core.$strip>;
12
+ }, z.core.$loose>;
13
13
  declare const erpnextInsertMany: import("@keystrokehq/action").WorkflowActionDefinition<{
14
14
  docs: Record<string, unknown>[];
15
15
  }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
@@ -15,7 +15,7 @@ const erpnextInsertMany = action("ERPNEXT_INSERT_MANY", {
15
15
  z.array(ErpnextInsertMany_InsertedDocumentModelSchema),
16
16
  z.array(z.string()),
17
17
  z.string()
18
- ]).nullable().optional() }).describe("Response model for the insert_many operation.")
18
+ ]).nullable().optional() }).passthrough().describe("Response model for the insert_many operation.")
19
19
  });
20
20
  //#endregion
21
21
  export { erpnextInsertMany };
@@ -1 +1 @@
1
- {"version":3,"file":"insert-many.mjs","names":[],"sources":["../../src/actions/insert-many.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextInsertManyInput = z.object({\n docs: z.array(z.record(z.string(), z.unknown())).describe(\"Array of document objects to insert. Each document must have a 'doctype' field that specifies the type of document (e.g., 'Note', 'Customer', 'Item'). Additional fields depend on the specific doctype requirements. For example, a Note requires 'title' and 'content' fields.\"),\n}).describe(\"Request model for inserting multiple documents at once.\");\nconst ErpnextInsertMany_InsertedDocumentModelSchema = z.object({\n name: z.string().describe(\"The unique identifier (name) of the inserted document.\").nullable().optional(),\n doctype: z.string().describe(\"The type of document that was inserted.\").nullable().optional(),\n}).passthrough().describe(\"Model for a successfully inserted document in the response.\");\nexport const ErpnextInsertManyOutput = z.object({\n message: z.union([z.array(ErpnextInsertMany_InsertedDocumentModelSchema), z.array(z.string()), z.string()]).nullable().optional(),\n}).describe(\"Response model for the insert_many operation.\");\n\nexport const erpnextInsertMany = action(\"ERPNEXT_INSERT_MANY\", {\n slug: \"erpnext-insert-many\",\n name: \"Insert Multiple Documents\",\n description: \"Tool to insert multiple documents at once into ERPNext/Frappe. Use when you need to create multiple records (Notes, Customers, Items, etc.) in a single API call for better efficiency.\",\n input: ErpnextInsertManyInput,\n output: ErpnextInsertManyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyB,EAAE,OAAO,EAC7C,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,kRAAkR,EAC9U,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAM,gDAAgD,EAAE,OAAO;CAC7D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6DAA6D;AAKvF,MAAa,oBAAoB,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATqC,EAAE,OAAO,EAC9C,SAAS,EAAE,MAAM;EAAC,EAAE,MAAM,6CAA6C;EAAG,EAAE,MAAM,EAAE,OAAO,CAAC;EAAG,EAAE,OAAO;CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAClI,CAAC,CAAC,CAAC,SAAS,+CAOF;AACV,CAAC"}
1
+ {"version":3,"file":"insert-many.mjs","names":[],"sources":["../../src/actions/insert-many.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextInsertManyInput = z.object({\n docs: z.array(z.record(z.string(), z.unknown())).describe(\"Array of document objects to insert. Each document must have a 'doctype' field that specifies the type of document (e.g., 'Note', 'Customer', 'Item'). Additional fields depend on the specific doctype requirements. For example, a Note requires 'title' and 'content' fields.\"),\n}).describe(\"Request model for inserting multiple documents at once.\");\nconst ErpnextInsertMany_InsertedDocumentModelSchema = z.object({\n name: z.string().describe(\"The unique identifier (name) of the inserted document.\").nullable().optional(),\n doctype: z.string().describe(\"The type of document that was inserted.\").nullable().optional(),\n}).passthrough().describe(\"Model for a successfully inserted document in the response.\");\nexport const ErpnextInsertManyOutput = z.object({\n message: z.union([z.array(ErpnextInsertMany_InsertedDocumentModelSchema), z.array(z.string()), z.string()]).nullable().optional(),\n}).passthrough().describe(\"Response model for the insert_many operation.\");\n\nexport const erpnextInsertMany = action(\"ERPNEXT_INSERT_MANY\", {\n slug: \"erpnext-insert-many\",\n name: \"Insert Multiple Documents\",\n description: \"Tool to insert multiple documents at once into ERPNext/Frappe. Use when you need to create multiple records (Notes, Customers, Items, etc.) in a single API call for better efficiency.\",\n input: ErpnextInsertManyInput,\n output: ErpnextInsertManyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyB,EAAE,OAAO,EAC7C,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,kRAAkR,EAC9U,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAM,gDAAgD,EAAE,OAAO;CAC7D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6DAA6D;AAKvF,MAAa,oBAAoB,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATqC,EAAE,OAAO,EAC9C,SAAS,EAAE,MAAM;EAAC,EAAE,MAAM,6CAA6C;EAAG,EAAE,MAAM,EAAE,OAAO,CAAC;EAAG,EAAE,OAAO;CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAClI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAOhB;AACV,CAAC"}
@@ -12,7 +12,7 @@ const ErpnextListDoctypesInput = zod.z.object({
12
12
  limit_start: zod.z.number().int().describe("Starting offset for pagination. To request successive pages, pass a multiple of your limit_page_length. For example, to request the second page, pass limit_start as 20 (if limit_page_length is 20).").optional(),
13
13
  limit_page_length: zod.z.number().int().describe("Number of items to return per page. By default, listings are paginated with 20 items per page.").optional()
14
14
  }).describe("Request model for listing DocTypes in ERPNext.");
15
- const ErpnextListDoctypesOutput = zod.z.object({ data: zod.z.array(zod.z.object({})).describe("List of DocType objects. Each object contains the requested fields (at minimum, the 'name' field).").nullable().optional() }).describe("Response model for listing DocTypes in ERPNext.");
15
+ const ErpnextListDoctypesOutput = zod.z.object({ data: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("List of DocType objects. Each object contains the requested fields (at minimum, the 'name' field).").nullable().optional() }).passthrough().describe("Response model for listing DocTypes in ERPNext.");
16
16
  const erpnextListDoctypes = require_action.action("ERPNEXT_LIST_DOCTYPES", {
17
17
  slug: "erpnext-list-doctypes",
18
18
  name: "List DocTypes",
@@ -1 +1 @@
1
- {"version":3,"file":"list-doctypes.cjs","names":["z","action"],"sources":["../../src/actions/list-doctypes.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextListDoctypesInput = z.object({\n fields: z.array(z.string()).describe(\"Fields to include in the listing. By default, only the \\\"name\\\" field is included. Pass a list of field names to include additional fields, for example [\\\"name\\\", \\\"module\\\"].\").optional(),\n filters: z.array(z.array(z.union([z.string(), z.number().int(), z.number(), z.boolean()]))).describe(\"SQL conditions to filter the listing. Each condition is an array of the format [doctype, field, operator, value]. For example, [[\\\"DocType\\\", \\\"module\\\", \\\"=\\\", \\\"Core\\\"]] to filter DocTypes by module.\").optional(),\n limit_start: z.number().int().describe(\"Starting offset for pagination. To request successive pages, pass a multiple of your limit_page_length. For example, to request the second page, pass limit_start as 20 (if limit_page_length is 20).\").optional(),\n limit_page_length: z.number().int().describe(\"Number of items to return per page. By default, listings are paginated with 20 items per page.\").optional(),\n}).describe(\"Request model for listing DocTypes in ERPNext.\");\nexport const ErpnextListDoctypesOutput = z.object({\n data: z.array(z.object({})).describe(\"List of DocType objects. Each object contains the requested fields (at minimum, the 'name' field).\").nullable().optional(),\n}).describe(\"Response model for listing DocTypes in ERPNext.\");\n\nexport const erpnextListDoctypes = action(\"ERPNEXT_LIST_DOCTYPES\", {\n slug: \"erpnext-list-doctypes\",\n name: \"List DocTypes\",\n description: \"Tool to get a list of all DocTypes available in the ERPNext system. Use when you need to retrieve available DocTypes with optional filtering and pagination.\",\n input: ErpnextListDoctypesInput,\n output: ErpnextListDoctypesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,iLAAiL,CAAC,CAAC,SAAS;CACjO,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,2MAA2M,CAAC,CAAC,SAAS;CAC3T,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uMAAuM,CAAC,CAAC,SAAS;CACzP,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS;AAC1J,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAC5D,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACjK,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAE7D,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-doctypes.cjs","names":["z","action"],"sources":["../../src/actions/list-doctypes.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextListDoctypesInput = z.object({\n fields: z.array(z.string()).describe(\"Fields to include in the listing. By default, only the \\\"name\\\" field is included. Pass a list of field names to include additional fields, for example [\\\"name\\\", \\\"module\\\"].\").optional(),\n filters: z.array(z.array(z.union([z.string(), z.number().int(), z.number(), z.boolean()]))).describe(\"SQL conditions to filter the listing. Each condition is an array of the format [doctype, field, operator, value]. For example, [[\\\"DocType\\\", \\\"module\\\", \\\"=\\\", \\\"Core\\\"]] to filter DocTypes by module.\").optional(),\n limit_start: z.number().int().describe(\"Starting offset for pagination. To request successive pages, pass a multiple of your limit_page_length. For example, to request the second page, pass limit_start as 20 (if limit_page_length is 20).\").optional(),\n limit_page_length: z.number().int().describe(\"Number of items to return per page. By default, listings are paginated with 20 items per page.\").optional(),\n}).describe(\"Request model for listing DocTypes in ERPNext.\");\nexport const ErpnextListDoctypesOutput = z.object({\n data: z.array(z.record(z.string(), z.unknown())).describe(\"List of DocType objects. Each object contains the requested fields (at minimum, the 'name' field).\").nullable().optional(),\n}).passthrough().describe(\"Response model for listing DocTypes in ERPNext.\");\n\nexport const erpnextListDoctypes = action(\"ERPNEXT_LIST_DOCTYPES\", {\n slug: \"erpnext-list-doctypes\",\n name: \"List DocTypes\",\n description: \"Tool to get a list of all DocTypes available in the ERPNext system. Use when you need to retrieve available DocTypes with optional filtering and pagination.\",\n input: ErpnextListDoctypesInput,\n output: ErpnextListDoctypesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,iLAAiL,CAAC,CAAC,SAAS;CACjO,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,2MAA2M,CAAC,CAAC,SAAS;CAC3T,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uMAAuM,CAAC,CAAC,SAAS;CACzP,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS;AAC1J,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAC5D,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACtL,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAE3E,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -8,8 +8,8 @@ declare const ErpnextListDoctypesInput: z.ZodObject<{
8
8
  limit_page_length: z.ZodOptional<z.ZodNumber>;
9
9
  }, z.core.$strip>;
10
10
  declare const ErpnextListDoctypesOutput: z.ZodObject<{
11
- data: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{}, z.core.$strip>>>>;
12
- }, z.core.$strip>;
11
+ data: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
12
+ }, z.core.$loose>;
13
13
  declare const erpnextListDoctypes: import("@keystrokehq/action").WorkflowActionDefinition<{
14
14
  fields?: string[] | undefined;
15
15
  filters?: (string | number | boolean)[][] | undefined;