@keystrokehq/erpnext 0.1.1 → 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 (339) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/add-comment.cjs +6 -6
  4. package/dist/actions/add-comment.cjs.map +1 -1
  5. package/dist/actions/add-comment.d.cts +7 -19
  6. package/dist/actions/add-comment.d.mts +7 -19
  7. package/dist/actions/add-comment.mjs +6 -6
  8. package/dist/actions/add-comment.mjs.map +1 -1
  9. package/dist/actions/add-tag.cjs +1 -1
  10. package/dist/actions/add-tag.cjs.map +1 -1
  11. package/dist/actions/add-tag.d.cts +3 -5
  12. package/dist/actions/add-tag.d.mts +3 -5
  13. package/dist/actions/add-tag.mjs +1 -1
  14. package/dist/actions/add-tag.mjs.map +1 -1
  15. package/dist/actions/apply-workflow.cjs +5 -5
  16. package/dist/actions/apply-workflow.cjs.map +1 -1
  17. package/dist/actions/apply-workflow.d.cts +5 -9
  18. package/dist/actions/apply-workflow.d.cts.map +1 -1
  19. package/dist/actions/apply-workflow.d.mts +5 -9
  20. package/dist/actions/apply-workflow.d.mts.map +1 -1
  21. package/dist/actions/apply-workflow.mjs +5 -5
  22. package/dist/actions/apply-workflow.mjs.map +1 -1
  23. package/dist/actions/cancel-document.cjs +3 -3
  24. package/dist/actions/cancel-document.cjs.map +1 -1
  25. package/dist/actions/cancel-document.d.cts +4 -7
  26. package/dist/actions/cancel-document.d.cts.map +1 -1
  27. package/dist/actions/cancel-document.d.mts +4 -7
  28. package/dist/actions/cancel-document.d.mts.map +1 -1
  29. package/dist/actions/cancel-document.mjs +3 -3
  30. package/dist/actions/cancel-document.mjs.map +1 -1
  31. package/dist/actions/create-document.cjs +9 -9
  32. package/dist/actions/create-document.cjs.map +1 -1
  33. package/dist/actions/create-document.d.cts +11 -22
  34. package/dist/actions/create-document.d.mts +11 -22
  35. package/dist/actions/create-document.mjs +9 -9
  36. package/dist/actions/create-document.mjs.map +1 -1
  37. package/dist/actions/create-timesheet.cjs +3 -3
  38. package/dist/actions/create-timesheet.cjs.map +1 -1
  39. package/dist/actions/create-timesheet.d.cts +5 -14
  40. package/dist/actions/create-timesheet.d.mts +5 -14
  41. package/dist/actions/create-timesheet.mjs +3 -3
  42. package/dist/actions/create-timesheet.mjs.map +1 -1
  43. package/dist/actions/delete-document.cjs +1 -1
  44. package/dist/actions/delete-document.cjs.map +1 -1
  45. package/dist/actions/delete-document.d.cts +2 -4
  46. package/dist/actions/delete-document.d.mts +2 -4
  47. package/dist/actions/delete-document.mjs +1 -1
  48. package/dist/actions/delete-document.mjs.map +1 -1
  49. package/dist/actions/download-file.cjs +2 -2
  50. package/dist/actions/download-file.cjs.map +1 -1
  51. package/dist/actions/download-file.d.cts +3 -9
  52. package/dist/actions/download-file.d.mts +3 -9
  53. package/dist/actions/download-file.mjs +2 -2
  54. package/dist/actions/download-file.mjs.map +1 -1
  55. package/dist/actions/download-pdf.cjs +2 -2
  56. package/dist/actions/download-pdf.cjs.map +1 -1
  57. package/dist/actions/download-pdf.d.cts +3 -9
  58. package/dist/actions/download-pdf.d.mts +3 -9
  59. package/dist/actions/download-pdf.mjs +2 -2
  60. package/dist/actions/download-pdf.mjs.map +1 -1
  61. package/dist/actions/get-all-languages.cjs +4 -4
  62. package/dist/actions/get-all-languages.cjs.map +1 -1
  63. package/dist/actions/get-all-languages.d.cts +5 -10
  64. package/dist/actions/get-all-languages.d.mts +5 -10
  65. package/dist/actions/get-all-languages.mjs +4 -4
  66. package/dist/actions/get-all-languages.mjs.map +1 -1
  67. package/dist/actions/get-all-roles.cjs +1 -1
  68. package/dist/actions/get-all-roles.cjs.map +1 -1
  69. package/dist/actions/get-all-roles.d.cts +2 -4
  70. package/dist/actions/get-all-roles.d.cts.map +1 -1
  71. package/dist/actions/get-all-roles.d.mts +2 -4
  72. package/dist/actions/get-all-roles.d.mts.map +1 -1
  73. package/dist/actions/get-all-roles.mjs +1 -1
  74. package/dist/actions/get-all-roles.mjs.map +1 -1
  75. package/dist/actions/get-client.cjs +9 -9
  76. package/dist/actions/get-client.cjs.map +1 -1
  77. package/dist/actions/get-client.d.cts +11 -23
  78. package/dist/actions/get-client.d.mts +11 -23
  79. package/dist/actions/get-client.mjs +9 -9
  80. package/dist/actions/get-client.mjs.map +1 -1
  81. package/dist/actions/get-count.cjs +2 -2
  82. package/dist/actions/get-count.cjs.map +1 -1
  83. package/dist/actions/get-count.d.cts +4 -6
  84. package/dist/actions/get-count.d.mts +4 -6
  85. package/dist/actions/get-count.mjs +2 -2
  86. package/dist/actions/get-count.mjs.map +1 -1
  87. package/dist/actions/get-doc-with-meta.cjs +22 -22
  88. package/dist/actions/get-doc-with-meta.cjs.map +1 -1
  89. package/dist/actions/get-doc-with-meta.d.cts +23 -45
  90. package/dist/actions/get-doc-with-meta.d.mts +23 -45
  91. package/dist/actions/get-doc-with-meta.mjs +22 -22
  92. package/dist/actions/get-doc-with-meta.mjs.map +1 -1
  93. package/dist/actions/get-doctype-meta.cjs +4 -4
  94. package/dist/actions/get-doctype-meta.cjs.map +1 -1
  95. package/dist/actions/get-doctype-meta.d.cts +5 -9
  96. package/dist/actions/get-doctype-meta.d.cts.map +1 -1
  97. package/dist/actions/get-doctype-meta.d.mts +5 -9
  98. package/dist/actions/get-doctype-meta.d.mts.map +1 -1
  99. package/dist/actions/get-doctype-meta.mjs +4 -4
  100. package/dist/actions/get-doctype-meta.mjs.map +1 -1
  101. package/dist/actions/get-document.cjs +8 -8
  102. package/dist/actions/get-document.cjs.map +1 -1
  103. package/dist/actions/get-document.d.cts +9 -20
  104. package/dist/actions/get-document.d.mts +9 -20
  105. package/dist/actions/get-document.mjs +8 -8
  106. package/dist/actions/get-document.mjs.map +1 -1
  107. package/dist/actions/get-exchange-rate.cjs +1 -1
  108. package/dist/actions/get-exchange-rate.cjs.map +1 -1
  109. package/dist/actions/get-exchange-rate.d.cts +2 -4
  110. package/dist/actions/get-exchange-rate.d.mts +2 -4
  111. package/dist/actions/get-exchange-rate.mjs +1 -1
  112. package/dist/actions/get-exchange-rate.mjs.map +1 -1
  113. package/dist/actions/get-fiscal-year.cjs +2 -2
  114. package/dist/actions/get-fiscal-year.cjs.map +1 -1
  115. package/dist/actions/get-fiscal-year.d.cts +3 -9
  116. package/dist/actions/get-fiscal-year.d.mts +3 -9
  117. package/dist/actions/get-fiscal-year.mjs +2 -2
  118. package/dist/actions/get-fiscal-year.mjs.map +1 -1
  119. package/dist/actions/get-framework-version.cjs +1 -1
  120. package/dist/actions/get-framework-version.cjs.map +1 -1
  121. package/dist/actions/get-framework-version.d.cts +3 -5
  122. package/dist/actions/get-framework-version.d.cts.map +1 -1
  123. package/dist/actions/get-framework-version.d.mts +3 -5
  124. package/dist/actions/get-framework-version.d.mts.map +1 -1
  125. package/dist/actions/get-framework-version.mjs +1 -1
  126. package/dist/actions/get-framework-version.mjs.map +1 -1
  127. package/dist/actions/get-item-details.cjs +28 -28
  128. package/dist/actions/get-item-details.cjs.map +1 -1
  129. package/dist/actions/get-item-details.d.cts +29 -60
  130. package/dist/actions/get-item-details.d.mts +29 -60
  131. package/dist/actions/get-item-details.mjs +28 -28
  132. package/dist/actions/get-item-details.mjs.map +1 -1
  133. package/dist/actions/get-list.cjs +2 -2
  134. package/dist/actions/get-list.cjs.map +1 -1
  135. package/dist/actions/get-list.d.cts +5 -7
  136. package/dist/actions/get-list.d.cts.map +1 -1
  137. package/dist/actions/get-list.d.mts +5 -7
  138. package/dist/actions/get-list.d.mts.map +1 -1
  139. package/dist/actions/get-list.mjs +2 -2
  140. package/dist/actions/get-list.mjs.map +1 -1
  141. package/dist/actions/get-logged-user.cjs +1 -1
  142. package/dist/actions/get-logged-user.cjs.map +1 -1
  143. package/dist/actions/get-logged-user.d.cts +2 -4
  144. package/dist/actions/get-logged-user.d.cts.map +1 -1
  145. package/dist/actions/get-logged-user.d.mts +2 -4
  146. package/dist/actions/get-logged-user.d.mts.map +1 -1
  147. package/dist/actions/get-logged-user.mjs +1 -1
  148. package/dist/actions/get-logged-user.mjs.map +1 -1
  149. package/dist/actions/get-party-details.cjs +37 -37
  150. package/dist/actions/get-party-details.cjs.map +1 -1
  151. package/dist/actions/get-party-details.d.cts +38 -78
  152. package/dist/actions/get-party-details.d.mts +38 -78
  153. package/dist/actions/get-party-details.mjs +37 -37
  154. package/dist/actions/get-party-details.mjs.map +1 -1
  155. package/dist/actions/get-payment-entry.cjs +27 -27
  156. package/dist/actions/get-payment-entry.cjs.map +1 -1
  157. package/dist/actions/get-payment-entry.d.cts +28 -60
  158. package/dist/actions/get-payment-entry.d.mts +28 -60
  159. package/dist/actions/get-payment-entry.mjs +27 -27
  160. package/dist/actions/get-payment-entry.mjs.map +1 -1
  161. package/dist/actions/get-stock-balance.cjs +1 -1
  162. package/dist/actions/get-stock-balance.cjs.map +1 -1
  163. package/dist/actions/get-stock-balance.d.cts +2 -4
  164. package/dist/actions/get-stock-balance.d.mts +2 -4
  165. package/dist/actions/get-stock-balance.mjs +1 -1
  166. package/dist/actions/get-stock-balance.mjs.map +1 -1
  167. package/dist/actions/get-timezones.cjs +2 -2
  168. package/dist/actions/get-timezones.cjs.map +1 -1
  169. package/dist/actions/get-timezones.d.cts +3 -7
  170. package/dist/actions/get-timezones.d.cts.map +1 -1
  171. package/dist/actions/get-timezones.d.mts +3 -7
  172. package/dist/actions/get-timezones.d.mts.map +1 -1
  173. package/dist/actions/get-timezones.mjs +2 -2
  174. package/dist/actions/get-timezones.mjs.map +1 -1
  175. package/dist/actions/get-user-roles.cjs +1 -1
  176. package/dist/actions/get-user-roles.cjs.map +1 -1
  177. package/dist/actions/get-user-roles.d.cts +2 -4
  178. package/dist/actions/get-user-roles.d.mts +2 -4
  179. package/dist/actions/get-user-roles.mjs +1 -1
  180. package/dist/actions/get-user-roles.mjs.map +1 -1
  181. package/dist/actions/get-value.cjs +2 -2
  182. package/dist/actions/get-value.cjs.map +1 -1
  183. package/dist/actions/get-value.d.cts +3 -5
  184. package/dist/actions/get-value.d.cts.map +1 -1
  185. package/dist/actions/get-value.d.mts +3 -5
  186. package/dist/actions/get-value.d.mts.map +1 -1
  187. package/dist/actions/get-value.mjs +2 -2
  188. package/dist/actions/get-value.mjs.map +1 -1
  189. package/dist/actions/get-workflow-transitions.cjs +8 -8
  190. package/dist/actions/get-workflow-transitions.cjs.map +1 -1
  191. package/dist/actions/get-workflow-transitions.d.cts +10 -19
  192. package/dist/actions/get-workflow-transitions.d.mts +10 -19
  193. package/dist/actions/get-workflow-transitions.mjs +8 -8
  194. package/dist/actions/get-workflow-transitions.mjs.map +1 -1
  195. package/dist/actions/insert-document.cjs +1 -1
  196. package/dist/actions/insert-document.cjs.map +1 -1
  197. package/dist/actions/insert-document.d.cts +2 -4
  198. package/dist/actions/insert-document.d.cts.map +1 -1
  199. package/dist/actions/insert-document.d.mts +2 -4
  200. package/dist/actions/insert-document.d.mts.map +1 -1
  201. package/dist/actions/insert-document.mjs +1 -1
  202. package/dist/actions/insert-document.mjs.map +1 -1
  203. package/dist/actions/insert-many.cjs +4 -4
  204. package/dist/actions/insert-many.cjs.map +1 -1
  205. package/dist/actions/insert-many.d.cts +5 -11
  206. package/dist/actions/insert-many.d.mts +5 -11
  207. package/dist/actions/insert-many.mjs +4 -4
  208. package/dist/actions/insert-many.mjs.map +1 -1
  209. package/dist/actions/list-doctypes.cjs +1 -1
  210. package/dist/actions/list-doctypes.cjs.map +1 -1
  211. package/dist/actions/list-doctypes.d.cts +3 -5
  212. package/dist/actions/list-doctypes.d.cts.map +1 -1
  213. package/dist/actions/list-doctypes.d.mts +3 -5
  214. package/dist/actions/list-doctypes.d.mts.map +1 -1
  215. package/dist/actions/list-doctypes.mjs +1 -1
  216. package/dist/actions/list-doctypes.mjs.map +1 -1
  217. package/dist/actions/list-documents.cjs +1 -1
  218. package/dist/actions/list-documents.cjs.map +1 -1
  219. package/dist/actions/list-documents.d.cts +3 -5
  220. package/dist/actions/list-documents.d.cts.map +1 -1
  221. package/dist/actions/list-documents.d.mts +3 -5
  222. package/dist/actions/list-documents.d.mts.map +1 -1
  223. package/dist/actions/list-documents.mjs +1 -1
  224. package/dist/actions/list-documents.mjs.map +1 -1
  225. package/dist/actions/list-employees.cjs +1 -1
  226. package/dist/actions/list-employees.cjs.map +1 -1
  227. package/dist/actions/list-employees.d.cts +2 -7
  228. package/dist/actions/list-employees.d.mts +2 -7
  229. package/dist/actions/list-employees.mjs +1 -1
  230. package/dist/actions/list-employees.mjs.map +1 -1
  231. package/dist/actions/list-projects.cjs +1 -1
  232. package/dist/actions/list-projects.cjs.map +1 -1
  233. package/dist/actions/list-projects.d.cts +3 -5
  234. package/dist/actions/list-projects.d.cts.map +1 -1
  235. package/dist/actions/list-projects.d.mts +3 -5
  236. package/dist/actions/list-projects.d.mts.map +1 -1
  237. package/dist/actions/list-projects.mjs +1 -1
  238. package/dist/actions/list-projects.mjs.map +1 -1
  239. package/dist/actions/list-timesheets.cjs +1 -1
  240. package/dist/actions/list-timesheets.cjs.map +1 -1
  241. package/dist/actions/list-timesheets.d.cts +3 -5
  242. package/dist/actions/list-timesheets.d.cts.map +1 -1
  243. package/dist/actions/list-timesheets.d.mts +3 -5
  244. package/dist/actions/list-timesheets.d.mts.map +1 -1
  245. package/dist/actions/list-timesheets.mjs +1 -1
  246. package/dist/actions/list-timesheets.mjs.map +1 -1
  247. package/dist/actions/list-webhooks.cjs +5 -5
  248. package/dist/actions/list-webhooks.cjs.map +1 -1
  249. package/dist/actions/list-webhooks.d.cts +6 -15
  250. package/dist/actions/list-webhooks.d.mts +6 -15
  251. package/dist/actions/list-webhooks.mjs +5 -5
  252. package/dist/actions/list-webhooks.mjs.map +1 -1
  253. package/dist/actions/make-delivery-note.cjs +12 -12
  254. package/dist/actions/make-delivery-note.cjs.map +1 -1
  255. package/dist/actions/make-delivery-note.d.cts +13 -28
  256. package/dist/actions/make-delivery-note.d.cts.map +1 -1
  257. package/dist/actions/make-delivery-note.d.mts +13 -28
  258. package/dist/actions/make-delivery-note.d.mts.map +1 -1
  259. package/dist/actions/make-delivery-note.mjs +12 -12
  260. package/dist/actions/make-delivery-note.mjs.map +1 -1
  261. package/dist/actions/make-purchase-order.cjs +23 -23
  262. package/dist/actions/make-purchase-order.cjs.map +1 -1
  263. package/dist/actions/make-purchase-order.d.cts +24 -52
  264. package/dist/actions/make-purchase-order.d.mts +24 -52
  265. package/dist/actions/make-purchase-order.mjs +23 -23
  266. package/dist/actions/make-purchase-order.mjs.map +1 -1
  267. package/dist/actions/make-sales-invoice.cjs +14 -14
  268. package/dist/actions/make-sales-invoice.cjs.map +1 -1
  269. package/dist/actions/make-sales-invoice.d.cts +15 -32
  270. package/dist/actions/make-sales-invoice.d.cts.map +1 -1
  271. package/dist/actions/make-sales-invoice.d.mts +15 -32
  272. package/dist/actions/make-sales-invoice.d.mts.map +1 -1
  273. package/dist/actions/make-sales-invoice.mjs +14 -14
  274. package/dist/actions/make-sales-invoice.mjs.map +1 -1
  275. package/dist/actions/make-stock-entry.cjs +11 -11
  276. package/dist/actions/make-stock-entry.cjs.map +1 -1
  277. package/dist/actions/make-stock-entry.d.cts +12 -24
  278. package/dist/actions/make-stock-entry.d.mts +12 -24
  279. package/dist/actions/make-stock-entry.mjs +11 -11
  280. package/dist/actions/make-stock-entry.mjs.map +1 -1
  281. package/dist/actions/ping.cjs +1 -1
  282. package/dist/actions/ping.cjs.map +1 -1
  283. package/dist/actions/ping.d.cts +2 -4
  284. package/dist/actions/ping.d.cts.map +1 -1
  285. package/dist/actions/ping.d.mts +2 -4
  286. package/dist/actions/ping.d.mts.map +1 -1
  287. package/dist/actions/ping.mjs +1 -1
  288. package/dist/actions/ping.mjs.map +1 -1
  289. package/dist/actions/rename-doc.cjs +1 -1
  290. package/dist/actions/rename-doc.cjs.map +1 -1
  291. package/dist/actions/rename-doc.d.cts +2 -4
  292. package/dist/actions/rename-doc.d.mts +2 -4
  293. package/dist/actions/rename-doc.mjs +1 -1
  294. package/dist/actions/rename-doc.mjs.map +1 -1
  295. package/dist/actions/save-docs.cjs +6 -6
  296. package/dist/actions/save-docs.cjs.map +1 -1
  297. package/dist/actions/save-docs.d.cts +7 -13
  298. package/dist/actions/save-docs.d.cts.map +1 -1
  299. package/dist/actions/save-docs.d.mts +7 -13
  300. package/dist/actions/save-docs.d.mts.map +1 -1
  301. package/dist/actions/save-docs.mjs +6 -6
  302. package/dist/actions/save-docs.mjs.map +1 -1
  303. package/dist/actions/save-document.cjs +3 -3
  304. package/dist/actions/save-document.cjs.map +1 -1
  305. package/dist/actions/save-document.d.cts +4 -10
  306. package/dist/actions/save-document.d.mts +4 -10
  307. package/dist/actions/save-document.mjs +3 -3
  308. package/dist/actions/save-document.mjs.map +1 -1
  309. package/dist/actions/search-global.cjs +8 -8
  310. package/dist/actions/search-global.cjs.map +1 -1
  311. package/dist/actions/search-global.d.cts +10 -19
  312. package/dist/actions/search-global.d.mts +10 -19
  313. package/dist/actions/search-global.mjs +8 -8
  314. package/dist/actions/search-global.mjs.map +1 -1
  315. package/dist/actions/search-link.cjs +3 -3
  316. package/dist/actions/search-link.cjs.map +1 -1
  317. package/dist/actions/search-link.d.cts +4 -10
  318. package/dist/actions/search-link.d.mts +4 -10
  319. package/dist/actions/search-link.mjs +3 -3
  320. package/dist/actions/search-link.mjs.map +1 -1
  321. package/dist/actions/set-value.cjs +9 -9
  322. package/dist/actions/set-value.cjs.map +1 -1
  323. package/dist/actions/set-value.d.cts +16 -35
  324. package/dist/actions/set-value.d.mts +16 -35
  325. package/dist/actions/set-value.mjs +9 -9
  326. package/dist/actions/set-value.mjs.map +1 -1
  327. package/dist/actions/submit-document.cjs +2 -2
  328. package/dist/actions/submit-document.cjs.map +1 -1
  329. package/dist/actions/submit-document.d.cts +3 -14
  330. package/dist/actions/submit-document.d.mts +3 -14
  331. package/dist/actions/submit-document.mjs +2 -2
  332. package/dist/actions/submit-document.mjs.map +1 -1
  333. package/dist/actions/update-document.cjs +10 -10
  334. package/dist/actions/update-document.cjs.map +1 -1
  335. package/dist/actions/update-document.d.cts +13 -23
  336. package/dist/actions/update-document.d.mts +13 -23
  337. package/dist/actions/update-document.mjs +10 -10
  338. package/dist/actions/update-document.mjs.map +1 -1
  339. package/package.json +1 -1
@@ -2,19 +2,19 @@ const require_action = require("../action.cjs");
2
2
  let zod = require("zod");
3
3
  //#region src/actions/create-document.ts
4
4
  const ErpnextCreateDocumentInput = zod.z.object({
5
- data: zod.z.object({}).describe("Document data as a dictionary of field names and values. The required fields depend on the specific DocType. Common fields include: name, description, title, status, etc. Refer to ERPNext documentation for specific DocType field requirements."),
5
+ data: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Document data as a dictionary of field names and values. The required fields depend on the specific DocType. Common fields include: name, description, title, status, etc. Refer to ERPNext documentation for specific DocType field requirements."),
6
6
  doctype: zod.z.string().describe("The DocType you'd like to create. For example: Customer, Supplier, Employee, Account, Lead, Company, Sales Invoice, Purchase Invoice, Stock Entry, ToDo, etc. This must be a valid DocType name in your ERPNext instance.")
7
7
  }).describe("Request to create a new document in ERPNext.");
8
8
  const ErpnextCreateDocument_DocumentDataSchema = zod.z.object({
9
- name: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Unique identifier/name of the created document.").optional()),
10
- owner: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("User who created the document.").optional()),
11
- doctype: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("The DocType of the created document.").optional()),
12
- creation: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Timestamp when the document was created.").optional()),
13
- modified: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Timestamp when the document was last modified.").optional()),
14
- docstatus: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().int().describe("Document status: 0 = Draft, 1 = Submitted, 2 = Cancelled.").optional()),
15
- modified_by: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("User who last modified the document.").optional())
9
+ name: zod.z.string().describe("Unique identifier/name of the created document.").nullable().optional(),
10
+ owner: zod.z.string().describe("User who created the document.").nullable().optional(),
11
+ doctype: zod.z.string().describe("The DocType of the created document.").nullable().optional(),
12
+ creation: zod.z.string().describe("Timestamp when the document was created.").nullable().optional(),
13
+ modified: zod.z.string().describe("Timestamp when the document was last modified.").nullable().optional(),
14
+ docstatus: zod.z.number().int().describe("Document status: 0 = Draft, 1 = Submitted, 2 = Cancelled.").nullable().optional(),
15
+ modified_by: zod.z.string().describe("User who last modified the document.").nullable().optional()
16
16
  }).passthrough().describe("The created document data returned by ERPNext with standard fields.");
17
- const ErpnextCreateDocumentOutput = zod.z.object({ data: ErpnextCreateDocument_DocumentDataSchema.nullable() }).describe("Response containing the created document.");
17
+ const ErpnextCreateDocumentOutput = zod.z.object({ data: ErpnextCreateDocument_DocumentDataSchema.nullable() }).passthrough().describe("Response containing the created document.");
18
18
  const erpnextCreateDocument = require_action.action("ERPNEXT_CREATE_DOCUMENT", {
19
19
  slug: "erpnext-create-document",
20
20
  name: "Create Document",
@@ -1 +1 @@
1
- {"version":3,"file":"create-document.cjs","names":["z","action"],"sources":["../../src/actions/create-document.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextCreateDocumentInput = z.object({\n data: z.object({}).describe(\"Document data as a dictionary of field names and values. The required fields depend on the specific DocType. Common fields include: name, description, title, status, etc. Refer to ERPNext documentation for specific DocType field requirements.\"),\n doctype: z.string().describe(\"The DocType you'd like to create. For example: Customer, Supplier, Employee, Account, Lead, Company, Sales Invoice, Purchase Invoice, Stock Entry, ToDo, etc. This must be a valid DocType name in your ERPNext instance.\"),\n}).describe(\"Request to create a new document in ERPNext.\");\nconst ErpnextCreateDocument_DocumentDataSchema = z.object({\n name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Unique identifier/name of the created document.\").optional()),\n owner: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"User who created the document.\").optional()),\n doctype: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"The DocType of the created document.\").optional()),\n creation: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Timestamp when the document was created.\").optional()),\n modified: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Timestamp when the document was last modified.\").optional()),\n docstatus: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Document status: 0 = Draft, 1 = Submitted, 2 = Cancelled.\").optional()),\n modified_by: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"User who last modified the document.\").optional()),\n}).passthrough().describe(\"The created document data returned by ERPNext with standard fields.\");\nexport const ErpnextCreateDocumentOutput = z.object({\n data: ErpnextCreateDocument_DocumentDataSchema.nullable(),\n}).describe(\"Response containing the created document.\");\n\nexport const erpnextCreateDocument = action(\"ERPNEXT_CREATE_DOCUMENT\", {\n slug: \"erpnext-create-document\",\n name: \"Create Document\",\n description: \"Tool to create a new document of a specific DocType in ERPNext. Use when you need to create records like ToDo, Customer, Lead, Sales Invoice, etc. The document data should include all required fields for the specific DocType. Standard fields like creation, modified, and owner are automatically set by ERPNext.\",\n input: ErpnextCreateDocumentInput,\n output: ErpnextCreateDocumentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,oPAAoP;CAChR,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2NAA2N;AAC1P,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAM,2CAA2CA,IAAAA,EAAE,OAAO;CACxD,MAAMA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC;CACrJ,OAAOA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC;CACrI,SAASA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC;CAC7I,UAAUA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC;CAClJ,UAAUA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC;CACxJ,WAAWA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC;CAC1K,aAAaA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC;AACnJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qEAAqE;AAC/F,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,MAAM,yCAAyC,SAAS,EAC1D,CAAC,CAAC,CAAC,SAAS,2CAA2C;AAEvD,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-document.cjs","names":["z","action"],"sources":["../../src/actions/create-document.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextCreateDocumentInput = z.object({\n data: z.record(z.string(), z.unknown()).describe(\"Document data as a dictionary of field names and values. The required fields depend on the specific DocType. Common fields include: name, description, title, status, etc. Refer to ERPNext documentation for specific DocType field requirements.\"),\n doctype: z.string().describe(\"The DocType you'd like to create. For example: Customer, Supplier, Employee, Account, Lead, Company, Sales Invoice, Purchase Invoice, Stock Entry, ToDo, etc. This must be a valid DocType name in your ERPNext instance.\"),\n}).describe(\"Request to create a new document in ERPNext.\");\nconst ErpnextCreateDocument_DocumentDataSchema = z.object({\n name: z.string().describe(\"Unique identifier/name of the created document.\").nullable().optional(),\n owner: z.string().describe(\"User who created the document.\").nullable().optional(),\n doctype: z.string().describe(\"The DocType of the created document.\").nullable().optional(),\n creation: z.string().describe(\"Timestamp when the document was created.\").nullable().optional(),\n modified: z.string().describe(\"Timestamp when the document was last modified.\").nullable().optional(),\n docstatus: z.number().int().describe(\"Document status: 0 = Draft, 1 = Submitted, 2 = Cancelled.\").nullable().optional(),\n modified_by: z.string().describe(\"User who last modified the document.\").nullable().optional(),\n}).passthrough().describe(\"The created document data returned by ERPNext with standard fields.\");\nexport const ErpnextCreateDocumentOutput = z.object({\n data: ErpnextCreateDocument_DocumentDataSchema.nullable(),\n}).passthrough().describe(\"Response containing the created document.\");\n\nexport const erpnextCreateDocument = action(\"ERPNEXT_CREATE_DOCUMENT\", {\n slug: \"erpnext-create-document\",\n name: \"Create Document\",\n description: \"Tool to create a new document of a specific DocType in ERPNext. Use when you need to create records like ToDo, Customer, Lead, Sales Invoice, etc. The document data should include all required fields for the specific DocType. Standard fields like creation, modified, and owner are automatically set by ERPNext.\",\n input: ErpnextCreateDocumentInput,\n output: ErpnextCreateDocumentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oPAAoP;CACrS,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2NAA2N;AAC1P,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAM,2CAA2CA,IAAAA,EAAE,OAAO;CACxD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qEAAqE;AAC/F,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,MAAM,yCAAyC,SAAS,EAC1D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AAErE,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -2,35 +2,24 @@ import { z } from "zod";
2
2
 
3
3
  //#region src/actions/create-document.d.ts
4
4
  declare const ErpnextCreateDocumentInput: z.ZodObject<{
5
- data: z.ZodObject<{}, z.core.$strip>;
5
+ data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
6
6
  doctype: z.ZodString;
7
7
  }, z.core.$strip>;
8
8
  declare const ErpnextCreateDocumentOutput: z.ZodObject<{
9
9
  data: z.ZodNullable<z.ZodObject<{
10
- name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
11
- owner: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
12
- doctype: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
13
- creation: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
14
- modified: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
15
- docstatus: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
16
- modified_by: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
10
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
+ owner: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
+ doctype: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ creation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ modified: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ docstatus: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
16
+ modified_by: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
17
  }, z.core.$loose>>;
18
- }, z.core.$strip>;
18
+ }, z.core.$loose>;
19
19
  declare const erpnextCreateDocument: import("@keystrokehq/action").WorkflowActionDefinition<{
20
- data: Record<string, never>;
20
+ data: Record<string, unknown>;
21
21
  doctype: string;
22
- }, {
23
- data: {
24
- [x: string]: unknown;
25
- name?: string | undefined;
26
- owner?: string | undefined;
27
- doctype?: string | undefined;
28
- creation?: string | undefined;
29
- modified?: string | undefined;
30
- docstatus?: number | undefined;
31
- modified_by?: string | undefined;
32
- } | null;
33
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
22
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
34
23
  //#endregion
35
24
  export { erpnextCreateDocument };
36
25
  //# sourceMappingURL=create-document.d.cts.map
@@ -2,35 +2,24 @@ import { z } from "zod";
2
2
 
3
3
  //#region src/actions/create-document.d.ts
4
4
  declare const ErpnextCreateDocumentInput: z.ZodObject<{
5
- data: z.ZodObject<{}, z.core.$strip>;
5
+ data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
6
6
  doctype: z.ZodString;
7
7
  }, z.core.$strip>;
8
8
  declare const ErpnextCreateDocumentOutput: z.ZodObject<{
9
9
  data: z.ZodNullable<z.ZodObject<{
10
- name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
11
- owner: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
12
- doctype: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
13
- creation: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
14
- modified: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
15
- docstatus: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
16
- modified_by: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
10
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
+ owner: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
+ doctype: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ creation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ modified: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ docstatus: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
16
+ modified_by: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
17
  }, z.core.$loose>>;
18
- }, z.core.$strip>;
18
+ }, z.core.$loose>;
19
19
  declare const erpnextCreateDocument: import("@keystrokehq/action").WorkflowActionDefinition<{
20
- data: Record<string, never>;
20
+ data: Record<string, unknown>;
21
21
  doctype: string;
22
- }, {
23
- data: {
24
- [x: string]: unknown;
25
- name?: string | undefined;
26
- owner?: string | undefined;
27
- doctype?: string | undefined;
28
- creation?: string | undefined;
29
- modified?: string | undefined;
30
- docstatus?: number | undefined;
31
- modified_by?: string | undefined;
32
- } | null;
33
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
22
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
34
23
  //#endregion
35
24
  export { erpnextCreateDocument };
36
25
  //# sourceMappingURL=create-document.d.mts.map
@@ -2,24 +2,24 @@ import { action } from "../action.mjs";
2
2
  import { z } from "zod";
3
3
  //#region src/actions/create-document.ts
4
4
  const ErpnextCreateDocumentInput = z.object({
5
- data: z.object({}).describe("Document data as a dictionary of field names and values. The required fields depend on the specific DocType. Common fields include: name, description, title, status, etc. Refer to ERPNext documentation for specific DocType field requirements."),
5
+ data: z.record(z.string(), z.unknown()).describe("Document data as a dictionary of field names and values. The required fields depend on the specific DocType. Common fields include: name, description, title, status, etc. Refer to ERPNext documentation for specific DocType field requirements."),
6
6
  doctype: z.string().describe("The DocType you'd like to create. For example: Customer, Supplier, Employee, Account, Lead, Company, Sales Invoice, Purchase Invoice, Stock Entry, ToDo, etc. This must be a valid DocType name in your ERPNext instance.")
7
7
  }).describe("Request to create a new document in ERPNext.");
8
8
  const ErpnextCreateDocument_DocumentDataSchema = z.object({
9
- name: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Unique identifier/name of the created document.").optional()),
10
- owner: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("User who created the document.").optional()),
11
- doctype: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("The DocType of the created document.").optional()),
12
- creation: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Timestamp when the document was created.").optional()),
13
- modified: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Timestamp when the document was last modified.").optional()),
14
- docstatus: z.preprocess((value) => value === null ? void 0 : value, z.number().int().describe("Document status: 0 = Draft, 1 = Submitted, 2 = Cancelled.").optional()),
15
- modified_by: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("User who last modified the document.").optional())
9
+ name: z.string().describe("Unique identifier/name of the created document.").nullable().optional(),
10
+ owner: z.string().describe("User who created the document.").nullable().optional(),
11
+ doctype: z.string().describe("The DocType of the created document.").nullable().optional(),
12
+ creation: z.string().describe("Timestamp when the document was created.").nullable().optional(),
13
+ modified: z.string().describe("Timestamp when the document was last modified.").nullable().optional(),
14
+ docstatus: z.number().int().describe("Document status: 0 = Draft, 1 = Submitted, 2 = Cancelled.").nullable().optional(),
15
+ modified_by: z.string().describe("User who last modified the document.").nullable().optional()
16
16
  }).passthrough().describe("The created document data returned by ERPNext with standard fields.");
17
17
  const erpnextCreateDocument = action("ERPNEXT_CREATE_DOCUMENT", {
18
18
  slug: "erpnext-create-document",
19
19
  name: "Create Document",
20
20
  description: "Tool to create a new document of a specific DocType in ERPNext. Use when you need to create records like ToDo, Customer, Lead, Sales Invoice, etc. The document data should include all required fields for the specific DocType. Standard fields like creation, modified, and owner are automatically set by ERPNext.",
21
21
  input: ErpnextCreateDocumentInput,
22
- output: z.object({ data: ErpnextCreateDocument_DocumentDataSchema.nullable() }).describe("Response containing the created document.")
22
+ output: z.object({ data: ErpnextCreateDocument_DocumentDataSchema.nullable() }).passthrough().describe("Response containing the created document.")
23
23
  });
24
24
  //#endregion
25
25
  export { erpnextCreateDocument };
@@ -1 +1 @@
1
- {"version":3,"file":"create-document.mjs","names":[],"sources":["../../src/actions/create-document.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextCreateDocumentInput = z.object({\n data: z.object({}).describe(\"Document data as a dictionary of field names and values. The required fields depend on the specific DocType. Common fields include: name, description, title, status, etc. Refer to ERPNext documentation for specific DocType field requirements.\"),\n doctype: z.string().describe(\"The DocType you'd like to create. For example: Customer, Supplier, Employee, Account, Lead, Company, Sales Invoice, Purchase Invoice, Stock Entry, ToDo, etc. This must be a valid DocType name in your ERPNext instance.\"),\n}).describe(\"Request to create a new document in ERPNext.\");\nconst ErpnextCreateDocument_DocumentDataSchema = z.object({\n name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Unique identifier/name of the created document.\").optional()),\n owner: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"User who created the document.\").optional()),\n doctype: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"The DocType of the created document.\").optional()),\n creation: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Timestamp when the document was created.\").optional()),\n modified: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Timestamp when the document was last modified.\").optional()),\n docstatus: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Document status: 0 = Draft, 1 = Submitted, 2 = Cancelled.\").optional()),\n modified_by: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"User who last modified the document.\").optional()),\n}).passthrough().describe(\"The created document data returned by ERPNext with standard fields.\");\nexport const ErpnextCreateDocumentOutput = z.object({\n data: ErpnextCreateDocument_DocumentDataSchema.nullable(),\n}).describe(\"Response containing the created document.\");\n\nexport const erpnextCreateDocument = action(\"ERPNEXT_CREATE_DOCUMENT\", {\n slug: \"erpnext-create-document\",\n name: \"Create Document\",\n description: \"Tool to create a new document of a specific DocType in ERPNext. Use when you need to create records like ToDo, Customer, Lead, Sales Invoice, etc. The document data should include all required fields for the specific DocType. Standard fields like creation, modified, and owner are automatically set by ERPNext.\",\n input: ErpnextCreateDocumentInput,\n output: ErpnextCreateDocumentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6B,EAAE,OAAO;CACjD,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,oPAAoP;CAChR,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,2NAA2N;AAC1P,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAM,2CAA2C,EAAE,OAAO;CACxD,MAAM,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC;CACrJ,OAAO,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC;CACrI,SAAS,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC;CAC7I,UAAU,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC;CAClJ,UAAU,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC;CACxJ,WAAW,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC;CAC1K,aAAa,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC;AACnJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qEAAqE;AAK/F,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATyC,EAAE,OAAO,EAClD,MAAM,yCAAyC,SAAS,EAC1D,CAAC,CAAC,CAAC,SAAS,2CAOF;AACV,CAAC"}
1
+ {"version":3,"file":"create-document.mjs","names":[],"sources":["../../src/actions/create-document.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextCreateDocumentInput = z.object({\n data: z.record(z.string(), z.unknown()).describe(\"Document data as a dictionary of field names and values. The required fields depend on the specific DocType. Common fields include: name, description, title, status, etc. Refer to ERPNext documentation for specific DocType field requirements.\"),\n doctype: z.string().describe(\"The DocType you'd like to create. For example: Customer, Supplier, Employee, Account, Lead, Company, Sales Invoice, Purchase Invoice, Stock Entry, ToDo, etc. This must be a valid DocType name in your ERPNext instance.\"),\n}).describe(\"Request to create a new document in ERPNext.\");\nconst ErpnextCreateDocument_DocumentDataSchema = z.object({\n name: z.string().describe(\"Unique identifier/name of the created document.\").nullable().optional(),\n owner: z.string().describe(\"User who created the document.\").nullable().optional(),\n doctype: z.string().describe(\"The DocType of the created document.\").nullable().optional(),\n creation: z.string().describe(\"Timestamp when the document was created.\").nullable().optional(),\n modified: z.string().describe(\"Timestamp when the document was last modified.\").nullable().optional(),\n docstatus: z.number().int().describe(\"Document status: 0 = Draft, 1 = Submitted, 2 = Cancelled.\").nullable().optional(),\n modified_by: z.string().describe(\"User who last modified the document.\").nullable().optional(),\n}).passthrough().describe(\"The created document data returned by ERPNext with standard fields.\");\nexport const ErpnextCreateDocumentOutput = z.object({\n data: ErpnextCreateDocument_DocumentDataSchema.nullable(),\n}).passthrough().describe(\"Response containing the created document.\");\n\nexport const erpnextCreateDocument = action(\"ERPNEXT_CREATE_DOCUMENT\", {\n slug: \"erpnext-create-document\",\n name: \"Create Document\",\n description: \"Tool to create a new document of a specific DocType in ERPNext. Use when you need to create records like ToDo, Customer, Lead, Sales Invoice, etc. The document data should include all required fields for the specific DocType. Standard fields like creation, modified, and owner are automatically set by ERPNext.\",\n input: ErpnextCreateDocumentInput,\n output: ErpnextCreateDocumentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6B,EAAE,OAAO;CACjD,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oPAAoP;CACrS,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,2NAA2N;AAC1P,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAM,2CAA2C,EAAE,OAAO;CACxD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qEAAqE;AAK/F,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATyC,EAAE,OAAO,EAClD,MAAM,yCAAyC,SAAS,EAC1D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAOhB;AACV,CAAC"}
@@ -10,7 +10,7 @@ const ErpnextCreateTimesheetInput = zod.z.object({
10
10
  to_time: zod.z.string().describe("End time of the activity in 'YYYY-MM-DD HH:MM:SS' format"),
11
11
  from_time: zod.z.string().describe("Start time of the activity in 'YYYY-MM-DD HH:MM:SS' format"),
12
12
  activity_type: zod.z.string().describe("Type of activity performed (e.g., 'Planning', 'Development', 'Testing')")
13
- }).describe("Individual time log entry within a timesheet.")).describe("List of time log entries for the timesheet. Each entry must have activity_type, from_time, and to_time")
13
+ }).passthrough().describe("Individual time log entry within a timesheet.")).describe("List of time log entries for the timesheet. Each entry must have activity_type, from_time, and to_time")
14
14
  });
15
15
  const ErpnextCreateTimesheet_TimesheetDataSchema = zod.z.object({
16
16
  name: zod.z.string().describe("Unique identifier for the created timesheet").nullable(),
@@ -20,8 +20,8 @@ const ErpnextCreateTimesheet_TimesheetDataSchema = zod.z.object({
20
20
  modified: zod.z.string().describe("Timestamp when the timesheet was last modified").nullable(),
21
21
  docstatus: zod.z.number().int().describe("Document status (0=Draft, 1=Submitted, 2=Cancelled)").nullable(),
22
22
  modified_by: zod.z.string().describe("User who last modified the timesheet").nullable()
23
- }).describe("Timesheet data returned from the API.");
24
- const ErpnextCreateTimesheetOutput = zod.z.object({ data: ErpnextCreateTimesheet_TimesheetDataSchema.nullable() });
23
+ }).passthrough().describe("Timesheet data returned from the API.");
24
+ const ErpnextCreateTimesheetOutput = zod.z.object({ data: ErpnextCreateTimesheet_TimesheetDataSchema.nullable() }).passthrough();
25
25
  const erpnextCreateTimesheet = require_action.action("ERPNEXT_CREATE_TIMESHEET", {
26
26
  slug: "erpnext-create-timesheet",
27
27
  name: "Create Timesheet",
@@ -1 +1 @@
1
- {"version":3,"file":"create-timesheet.cjs","names":["z","action"],"sources":["../../src/actions/create-timesheet.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextCreateTimesheetInput = z.object({\n note: z.string().describe(\"Additional notes or comments for the timesheet\").optional(),\n company: z.string().describe(\"Company name for which the timesheet is being created\"),\n employee: z.string().describe(\"Employee ID or name for the timesheet (optional)\").optional(),\n time_logs: z.array(z.object({\n project: z.string().describe(\"Project name or ID associated with this time entry\").optional(),\n to_time: z.string().describe(\"End time of the activity in 'YYYY-MM-DD HH:MM:SS' format\"),\n from_time: z.string().describe(\"Start time of the activity in 'YYYY-MM-DD HH:MM:SS' format\"),\n activity_type: z.string().describe(\"Type of activity performed (e.g., 'Planning', 'Development', 'Testing')\"),\n}).describe(\"Individual time log entry within a timesheet.\")).describe(\"List of time log entries for the timesheet. Each entry must have activity_type, from_time, and to_time\"),\n});\nconst ErpnextCreateTimesheet_TimesheetDataSchema = z.object({\n name: z.string().describe(\"Unique identifier for the created timesheet\").nullable(),\n owner: z.string().describe(\"User who created the timesheet\").nullable(),\n doctype: z.string().describe(\"Document type (should be 'Timesheet')\").nullable(),\n creation: z.string().describe(\"Timestamp when the timesheet was created\").nullable(),\n modified: z.string().describe(\"Timestamp when the timesheet was last modified\").nullable(),\n docstatus: z.number().int().describe(\"Document status (0=Draft, 1=Submitted, 2=Cancelled)\").nullable(),\n modified_by: z.string().describe(\"User who last modified the timesheet\").nullable(),\n}).describe(\"Timesheet data returned from the API.\");\nexport const ErpnextCreateTimesheetOutput = z.object({\n data: ErpnextCreateTimesheet_TimesheetDataSchema.nullable(),\n});\n\nexport const erpnextCreateTimesheet = action(\"ERPNEXT_CREATE_TIMESHEET\", {\n slug: \"erpnext-create-timesheet\",\n name: \"Create Timesheet\",\n description: \"Tool to create a new Timesheet record in ERPNext. Use when you need to log time entries for employees or projects.\",\n input: ErpnextCreateTimesheetInput,\n output: ErpnextCreateTimesheetOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACrF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;CACpF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CAC3F,WAAWA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC5B,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;EAC5F,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D;EACvF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;EAC3F,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE;CAC9G,CAAC,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,CAAC,SAAS,wGAAwG;AAC/K,CAAC;AACD,MAAM,6CAA6CA,IAAAA,EAAE,OAAO;CAC1D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAClF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACtE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC/E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACnF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACzF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CACrG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;AACpF,CAAC,CAAC,CAAC,SAAS,uCAAuC;AACnD,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,MAAM,2CAA2C,SAAS,EAC5D,CAAC;AAED,MAAa,yBAAyBC,eAAAA,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-timesheet.cjs","names":["z","action"],"sources":["../../src/actions/create-timesheet.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextCreateTimesheetInput = z.object({\n note: z.string().describe(\"Additional notes or comments for the timesheet\").optional(),\n company: z.string().describe(\"Company name for which the timesheet is being created\"),\n employee: z.string().describe(\"Employee ID or name for the timesheet (optional)\").optional(),\n time_logs: z.array(z.object({\n project: z.string().describe(\"Project name or ID associated with this time entry\").optional(),\n to_time: z.string().describe(\"End time of the activity in 'YYYY-MM-DD HH:MM:SS' format\"),\n from_time: z.string().describe(\"Start time of the activity in 'YYYY-MM-DD HH:MM:SS' format\"),\n activity_type: z.string().describe(\"Type of activity performed (e.g., 'Planning', 'Development', 'Testing')\"),\n}).passthrough().describe(\"Individual time log entry within a timesheet.\")).describe(\"List of time log entries for the timesheet. Each entry must have activity_type, from_time, and to_time\"),\n});\nconst ErpnextCreateTimesheet_TimesheetDataSchema = z.object({\n name: z.string().describe(\"Unique identifier for the created timesheet\").nullable(),\n owner: z.string().describe(\"User who created the timesheet\").nullable(),\n doctype: z.string().describe(\"Document type (should be 'Timesheet')\").nullable(),\n creation: z.string().describe(\"Timestamp when the timesheet was created\").nullable(),\n modified: z.string().describe(\"Timestamp when the timesheet was last modified\").nullable(),\n docstatus: z.number().int().describe(\"Document status (0=Draft, 1=Submitted, 2=Cancelled)\").nullable(),\n modified_by: z.string().describe(\"User who last modified the timesheet\").nullable(),\n}).passthrough().describe(\"Timesheet data returned from the API.\");\nexport const ErpnextCreateTimesheetOutput = z.object({\n data: ErpnextCreateTimesheet_TimesheetDataSchema.nullable(),\n}).passthrough();\n\nexport const erpnextCreateTimesheet = action(\"ERPNEXT_CREATE_TIMESHEET\", {\n slug: \"erpnext-create-timesheet\",\n name: \"Create Timesheet\",\n description: \"Tool to create a new Timesheet record in ERPNext. Use when you need to log time entries for employees or projects.\",\n input: ErpnextCreateTimesheetInput,\n output: ErpnextCreateTimesheetOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACrF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;CACpF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CAC3F,WAAWA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC5B,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;EAC5F,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D;EACvF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;EAC3F,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE;CAC9G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,CAAC,SAAS,wGAAwG;AAC7L,CAAC;AACD,MAAM,6CAA6CA,IAAAA,EAAE,OAAO;CAC1D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAClF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACtE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC/E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACnF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACzF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CACrG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;AACpF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AACjE,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,MAAM,2CAA2C,SAAS,EAC5D,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,yBAAyBC,eAAAA,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -10,7 +10,7 @@ declare const ErpnextCreateTimesheetInput: z.ZodObject<{
10
10
  to_time: z.ZodString;
11
11
  from_time: z.ZodString;
12
12
  activity_type: z.ZodString;
13
- }, z.core.$strip>>;
13
+ }, z.core.$loose>>;
14
14
  }, z.core.$strip>;
15
15
  declare const ErpnextCreateTimesheetOutput: z.ZodObject<{
16
16
  data: z.ZodNullable<z.ZodObject<{
@@ -21,11 +21,12 @@ declare const ErpnextCreateTimesheetOutput: z.ZodObject<{
21
21
  modified: z.ZodNullable<z.ZodString>;
22
22
  docstatus: z.ZodNullable<z.ZodNumber>;
23
23
  modified_by: z.ZodNullable<z.ZodString>;
24
- }, z.core.$strip>>;
25
- }, z.core.$strip>;
24
+ }, z.core.$loose>>;
25
+ }, z.core.$loose>;
26
26
  declare const erpnextCreateTimesheet: import("@keystrokehq/action").WorkflowActionDefinition<{
27
27
  company: string;
28
28
  time_logs: {
29
+ [x: string]: unknown;
29
30
  to_time: string;
30
31
  from_time: string;
31
32
  activity_type: string;
@@ -33,17 +34,7 @@ declare const erpnextCreateTimesheet: import("@keystrokehq/action").WorkflowActi
33
34
  }[];
34
35
  note?: string | undefined;
35
36
  employee?: string | undefined;
36
- }, {
37
- data: {
38
- name: string | null;
39
- owner: string | null;
40
- doctype: string | null;
41
- creation: string | null;
42
- modified: string | null;
43
- docstatus: number | null;
44
- modified_by: string | null;
45
- } | null;
46
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
37
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
47
38
  //#endregion
48
39
  export { erpnextCreateTimesheet };
49
40
  //# sourceMappingURL=create-timesheet.d.cts.map
@@ -10,7 +10,7 @@ declare const ErpnextCreateTimesheetInput: z.ZodObject<{
10
10
  to_time: z.ZodString;
11
11
  from_time: z.ZodString;
12
12
  activity_type: z.ZodString;
13
- }, z.core.$strip>>;
13
+ }, z.core.$loose>>;
14
14
  }, z.core.$strip>;
15
15
  declare const ErpnextCreateTimesheetOutput: z.ZodObject<{
16
16
  data: z.ZodNullable<z.ZodObject<{
@@ -21,11 +21,12 @@ declare const ErpnextCreateTimesheetOutput: z.ZodObject<{
21
21
  modified: z.ZodNullable<z.ZodString>;
22
22
  docstatus: z.ZodNullable<z.ZodNumber>;
23
23
  modified_by: z.ZodNullable<z.ZodString>;
24
- }, z.core.$strip>>;
25
- }, z.core.$strip>;
24
+ }, z.core.$loose>>;
25
+ }, z.core.$loose>;
26
26
  declare const erpnextCreateTimesheet: import("@keystrokehq/action").WorkflowActionDefinition<{
27
27
  company: string;
28
28
  time_logs: {
29
+ [x: string]: unknown;
29
30
  to_time: string;
30
31
  from_time: string;
31
32
  activity_type: string;
@@ -33,17 +34,7 @@ declare const erpnextCreateTimesheet: import("@keystrokehq/action").WorkflowActi
33
34
  }[];
34
35
  note?: string | undefined;
35
36
  employee?: string | undefined;
36
- }, {
37
- data: {
38
- name: string | null;
39
- owner: string | null;
40
- doctype: string | null;
41
- creation: string | null;
42
- modified: string | null;
43
- docstatus: number | null;
44
- modified_by: string | null;
45
- } | null;
46
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
37
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
47
38
  //#endregion
48
39
  export { erpnextCreateTimesheet };
49
40
  //# sourceMappingURL=create-timesheet.d.mts.map
@@ -10,7 +10,7 @@ const ErpnextCreateTimesheetInput = z.object({
10
10
  to_time: z.string().describe("End time of the activity in 'YYYY-MM-DD HH:MM:SS' format"),
11
11
  from_time: z.string().describe("Start time of the activity in 'YYYY-MM-DD HH:MM:SS' format"),
12
12
  activity_type: z.string().describe("Type of activity performed (e.g., 'Planning', 'Development', 'Testing')")
13
- }).describe("Individual time log entry within a timesheet.")).describe("List of time log entries for the timesheet. Each entry must have activity_type, from_time, and to_time")
13
+ }).passthrough().describe("Individual time log entry within a timesheet.")).describe("List of time log entries for the timesheet. Each entry must have activity_type, from_time, and to_time")
14
14
  });
15
15
  const ErpnextCreateTimesheet_TimesheetDataSchema = z.object({
16
16
  name: z.string().describe("Unique identifier for the created timesheet").nullable(),
@@ -20,13 +20,13 @@ const ErpnextCreateTimesheet_TimesheetDataSchema = z.object({
20
20
  modified: z.string().describe("Timestamp when the timesheet was last modified").nullable(),
21
21
  docstatus: z.number().int().describe("Document status (0=Draft, 1=Submitted, 2=Cancelled)").nullable(),
22
22
  modified_by: z.string().describe("User who last modified the timesheet").nullable()
23
- }).describe("Timesheet data returned from the API.");
23
+ }).passthrough().describe("Timesheet data returned from the API.");
24
24
  const erpnextCreateTimesheet = action("ERPNEXT_CREATE_TIMESHEET", {
25
25
  slug: "erpnext-create-timesheet",
26
26
  name: "Create Timesheet",
27
27
  description: "Tool to create a new Timesheet record in ERPNext. Use when you need to log time entries for employees or projects.",
28
28
  input: ErpnextCreateTimesheetInput,
29
- output: z.object({ data: ErpnextCreateTimesheet_TimesheetDataSchema.nullable() })
29
+ output: z.object({ data: ErpnextCreateTimesheet_TimesheetDataSchema.nullable() }).passthrough()
30
30
  });
31
31
  //#endregion
32
32
  export { erpnextCreateTimesheet };
@@ -1 +1 @@
1
- {"version":3,"file":"create-timesheet.mjs","names":[],"sources":["../../src/actions/create-timesheet.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextCreateTimesheetInput = z.object({\n note: z.string().describe(\"Additional notes or comments for the timesheet\").optional(),\n company: z.string().describe(\"Company name for which the timesheet is being created\"),\n employee: z.string().describe(\"Employee ID or name for the timesheet (optional)\").optional(),\n time_logs: z.array(z.object({\n project: z.string().describe(\"Project name or ID associated with this time entry\").optional(),\n to_time: z.string().describe(\"End time of the activity in 'YYYY-MM-DD HH:MM:SS' format\"),\n from_time: z.string().describe(\"Start time of the activity in 'YYYY-MM-DD HH:MM:SS' format\"),\n activity_type: z.string().describe(\"Type of activity performed (e.g., 'Planning', 'Development', 'Testing')\"),\n}).describe(\"Individual time log entry within a timesheet.\")).describe(\"List of time log entries for the timesheet. Each entry must have activity_type, from_time, and to_time\"),\n});\nconst ErpnextCreateTimesheet_TimesheetDataSchema = z.object({\n name: z.string().describe(\"Unique identifier for the created timesheet\").nullable(),\n owner: z.string().describe(\"User who created the timesheet\").nullable(),\n doctype: z.string().describe(\"Document type (should be 'Timesheet')\").nullable(),\n creation: z.string().describe(\"Timestamp when the timesheet was created\").nullable(),\n modified: z.string().describe(\"Timestamp when the timesheet was last modified\").nullable(),\n docstatus: z.number().int().describe(\"Document status (0=Draft, 1=Submitted, 2=Cancelled)\").nullable(),\n modified_by: z.string().describe(\"User who last modified the timesheet\").nullable(),\n}).describe(\"Timesheet data returned from the API.\");\nexport const ErpnextCreateTimesheetOutput = z.object({\n data: ErpnextCreateTimesheet_TimesheetDataSchema.nullable(),\n});\n\nexport const erpnextCreateTimesheet = action(\"ERPNEXT_CREATE_TIMESHEET\", {\n slug: \"erpnext-create-timesheet\",\n name: \"Create Timesheet\",\n description: \"Tool to create a new Timesheet record in ERPNext. Use when you need to log time entries for employees or projects.\",\n input: ErpnextCreateTimesheetInput,\n output: ErpnextCreateTimesheetOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8B,EAAE,OAAO;CAClD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACrF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;CACpF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CAC3F,WAAW,EAAE,MAAM,EAAE,OAAO;EAC5B,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;EAC5F,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D;EACvF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;EAC3F,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE;CAC9G,CAAC,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,CAAC,SAAS,wGAAwG;AAC/K,CAAC;AACD,MAAM,6CAA6C,EAAE,OAAO;CAC1D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAClF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACtE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC/E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACnF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACzF,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CACrG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;AACpF,CAAC,CAAC,CAAC,SAAS,uCAAuC;AAKnD,MAAa,yBAAyB,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT0C,EAAE,OAAO,EACnD,MAAM,2CAA2C,SAAS,EAC5D,CAOU;AACV,CAAC"}
1
+ {"version":3,"file":"create-timesheet.mjs","names":[],"sources":["../../src/actions/create-timesheet.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextCreateTimesheetInput = z.object({\n note: z.string().describe(\"Additional notes or comments for the timesheet\").optional(),\n company: z.string().describe(\"Company name for which the timesheet is being created\"),\n employee: z.string().describe(\"Employee ID or name for the timesheet (optional)\").optional(),\n time_logs: z.array(z.object({\n project: z.string().describe(\"Project name or ID associated with this time entry\").optional(),\n to_time: z.string().describe(\"End time of the activity in 'YYYY-MM-DD HH:MM:SS' format\"),\n from_time: z.string().describe(\"Start time of the activity in 'YYYY-MM-DD HH:MM:SS' format\"),\n activity_type: z.string().describe(\"Type of activity performed (e.g., 'Planning', 'Development', 'Testing')\"),\n}).passthrough().describe(\"Individual time log entry within a timesheet.\")).describe(\"List of time log entries for the timesheet. Each entry must have activity_type, from_time, and to_time\"),\n});\nconst ErpnextCreateTimesheet_TimesheetDataSchema = z.object({\n name: z.string().describe(\"Unique identifier for the created timesheet\").nullable(),\n owner: z.string().describe(\"User who created the timesheet\").nullable(),\n doctype: z.string().describe(\"Document type (should be 'Timesheet')\").nullable(),\n creation: z.string().describe(\"Timestamp when the timesheet was created\").nullable(),\n modified: z.string().describe(\"Timestamp when the timesheet was last modified\").nullable(),\n docstatus: z.number().int().describe(\"Document status (0=Draft, 1=Submitted, 2=Cancelled)\").nullable(),\n modified_by: z.string().describe(\"User who last modified the timesheet\").nullable(),\n}).passthrough().describe(\"Timesheet data returned from the API.\");\nexport const ErpnextCreateTimesheetOutput = z.object({\n data: ErpnextCreateTimesheet_TimesheetDataSchema.nullable(),\n}).passthrough();\n\nexport const erpnextCreateTimesheet = action(\"ERPNEXT_CREATE_TIMESHEET\", {\n slug: \"erpnext-create-timesheet\",\n name: \"Create Timesheet\",\n description: \"Tool to create a new Timesheet record in ERPNext. Use when you need to log time entries for employees or projects.\",\n input: ErpnextCreateTimesheetInput,\n output: ErpnextCreateTimesheetOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8B,EAAE,OAAO;CAClD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACrF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;CACpF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CAC3F,WAAW,EAAE,MAAM,EAAE,OAAO;EAC5B,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;EAC5F,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D;EACvF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;EAC3F,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE;CAC9G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,CAAC,SAAS,wGAAwG;AAC7L,CAAC;AACD,MAAM,6CAA6C,EAAE,OAAO;CAC1D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAClF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACtE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC/E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACnF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACzF,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CACrG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;AACpF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AAKjE,MAAa,yBAAyB,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT0C,EAAE,OAAO,EACnD,MAAM,2CAA2C,SAAS,EAC5D,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
@@ -5,7 +5,7 @@ const ErpnextDeleteDocumentInput = zod.z.object({
5
5
  doctype: zod.z.string().describe("The type of the document to delete. Examples: Customer, Supplier, Employee, Account, Lead, Company, Sales Invoice, Purchase Invoice, Stock Entry, Note, etc. The DocType must exist in your ERPNext instance and you must have delete permissions."),
6
6
  document_name: zod.z.string().describe("The unique name (ID) of the document to delete. This is the document's primary identifier, not the display title. Example: EMP001 (for Employee DocType) or a generated ID like 7l1epfhlls (for Note DocType).")
7
7
  });
8
- const ErpnextDeleteDocumentOutput = zod.z.object({ message: zod.z.string().describe("Confirmation message from the API, typically 'ok' when deletion succeeds").nullable() });
8
+ const ErpnextDeleteDocumentOutput = zod.z.object({ message: zod.z.string().describe("Confirmation message from the API, typically 'ok' when deletion succeeds").nullable() }).passthrough();
9
9
  const erpnextDeleteDocument = require_action.action("ERPNEXT_DELETE_DOCUMENT", {
10
10
  slug: "erpnext-delete-document",
11
11
  name: "Delete Document",
@@ -1 +1 @@
1
- {"version":3,"file":"delete-document.cjs","names":["z","action"],"sources":["../../src/actions/delete-document.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextDeleteDocumentInput = z.object({\n doctype: z.string().describe(\"The type of the document to delete. Examples: Customer, Supplier, Employee, Account, Lead, Company, Sales Invoice, Purchase Invoice, Stock Entry, Note, etc. The DocType must exist in your ERPNext instance and you must have delete permissions.\"),\n document_name: z.string().describe(\"The unique name (ID) of the document to delete. This is the document's primary identifier, not the display title. Example: EMP001 (for Employee DocType) or a generated ID like 7l1epfhlls (for Note DocType).\"),\n});\nexport const ErpnextDeleteDocumentOutput = z.object({\n message: z.string().describe(\"Confirmation message from the API, typically 'ok' when deletion succeeds\").nullable(),\n});\n\nexport const erpnextDeleteDocument = action(\"ERPNEXT_DELETE_DOCUMENT\", {\n slug: \"erpnext-delete-document\",\n name: \"Delete Document\",\n description: \"Tool to delete a specific document by DocType and name. Use when you need to remove a document from ERPNext. Requires delete permissions for the specified DocType.\",\n input: ErpnextDeleteDocumentInput,\n output: ErpnextDeleteDocumentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oPAAoP;CACjR,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gNAAgN;AACrP,CAAC;AACD,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS,EACpH,CAAC;AAED,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"delete-document.cjs","names":["z","action"],"sources":["../../src/actions/delete-document.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextDeleteDocumentInput = z.object({\n doctype: z.string().describe(\"The type of the document to delete. Examples: Customer, Supplier, Employee, Account, Lead, Company, Sales Invoice, Purchase Invoice, Stock Entry, Note, etc. The DocType must exist in your ERPNext instance and you must have delete permissions.\"),\n document_name: z.string().describe(\"The unique name (ID) of the document to delete. This is the document's primary identifier, not the display title. Example: EMP001 (for Employee DocType) or a generated ID like 7l1epfhlls (for Note DocType).\"),\n});\nexport const ErpnextDeleteDocumentOutput = z.object({\n message: z.string().describe(\"Confirmation message from the API, typically 'ok' when deletion succeeds\").nullable(),\n}).passthrough();\n\nexport const erpnextDeleteDocument = action(\"ERPNEXT_DELETE_DOCUMENT\", {\n slug: \"erpnext-delete-document\",\n name: \"Delete Document\",\n description: \"Tool to delete a specific document by DocType and name. Use when you need to remove a document from ERPNext. Requires delete permissions for the specified DocType.\",\n input: ErpnextDeleteDocumentInput,\n output: ErpnextDeleteDocumentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oPAAoP;CACjR,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gNAAgN;AACrP,CAAC;AACD,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS,EACpH,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -7,13 +7,11 @@ declare const ErpnextDeleteDocumentInput: z.ZodObject<{
7
7
  }, z.core.$strip>;
8
8
  declare const ErpnextDeleteDocumentOutput: z.ZodObject<{
9
9
  message: z.ZodNullable<z.ZodString>;
10
- }, z.core.$strip>;
10
+ }, z.core.$loose>;
11
11
  declare const erpnextDeleteDocument: import("@keystrokehq/action").WorkflowActionDefinition<{
12
12
  doctype: string;
13
13
  document_name: string;
14
- }, {
15
- message: string | null;
16
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
14
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
17
15
  //#endregion
18
16
  export { erpnextDeleteDocument };
19
17
  //# sourceMappingURL=delete-document.d.cts.map
@@ -7,13 +7,11 @@ declare const ErpnextDeleteDocumentInput: z.ZodObject<{
7
7
  }, z.core.$strip>;
8
8
  declare const ErpnextDeleteDocumentOutput: z.ZodObject<{
9
9
  message: z.ZodNullable<z.ZodString>;
10
- }, z.core.$strip>;
10
+ }, z.core.$loose>;
11
11
  declare const erpnextDeleteDocument: import("@keystrokehq/action").WorkflowActionDefinition<{
12
12
  doctype: string;
13
13
  document_name: string;
14
- }, {
15
- message: string | null;
16
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
14
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
17
15
  //#endregion
18
16
  export { erpnextDeleteDocument };
19
17
  //# sourceMappingURL=delete-document.d.mts.map
@@ -8,7 +8,7 @@ const erpnextDeleteDocument = action("ERPNEXT_DELETE_DOCUMENT", {
8
8
  doctype: z.string().describe("The type of the document to delete. Examples: Customer, Supplier, Employee, Account, Lead, Company, Sales Invoice, Purchase Invoice, Stock Entry, Note, etc. The DocType must exist in your ERPNext instance and you must have delete permissions."),
9
9
  document_name: z.string().describe("The unique name (ID) of the document to delete. This is the document's primary identifier, not the display title. Example: EMP001 (for Employee DocType) or a generated ID like 7l1epfhlls (for Note DocType).")
10
10
  }),
11
- output: z.object({ message: z.string().describe("Confirmation message from the API, typically 'ok' when deletion succeeds").nullable() })
11
+ output: z.object({ message: z.string().describe("Confirmation message from the API, typically 'ok' when deletion succeeds").nullable() }).passthrough()
12
12
  });
13
13
  //#endregion
14
14
  export { erpnextDeleteDocument };
@@ -1 +1 @@
1
- {"version":3,"file":"delete-document.mjs","names":[],"sources":["../../src/actions/delete-document.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextDeleteDocumentInput = z.object({\n doctype: z.string().describe(\"The type of the document to delete. Examples: Customer, Supplier, Employee, Account, Lead, Company, Sales Invoice, Purchase Invoice, Stock Entry, Note, etc. The DocType must exist in your ERPNext instance and you must have delete permissions.\"),\n document_name: z.string().describe(\"The unique name (ID) of the document to delete. This is the document's primary identifier, not the display title. Example: EMP001 (for Employee DocType) or a generated ID like 7l1epfhlls (for Note DocType).\"),\n});\nexport const ErpnextDeleteDocumentOutput = z.object({\n message: z.string().describe(\"Confirmation message from the API, typically 'ok' when deletion succeeds\").nullable(),\n});\n\nexport const erpnextDeleteDocument = action(\"ERPNEXT_DELETE_DOCUMENT\", {\n slug: \"erpnext-delete-document\",\n name: \"Delete Document\",\n description: \"Tool to delete a specific document by DocType and name. Use when you need to remove a document from ERPNext. Requires delete permissions for the specified DocType.\",\n input: ErpnextDeleteDocumentInput,\n output: ErpnextDeleteDocumentOutput,\n});\n"],"mappings":";;AAYA,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZwC,EAAE,OAAO;EACjD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,oPAAoP;EACjR,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,gNAAgN;CACrP,CASS;CACP,QATyC,EAAE,OAAO,EAClD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS,EACpH,CAOU;AACV,CAAC"}
1
+ {"version":3,"file":"delete-document.mjs","names":[],"sources":["../../src/actions/delete-document.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextDeleteDocumentInput = z.object({\n doctype: z.string().describe(\"The type of the document to delete. Examples: Customer, Supplier, Employee, Account, Lead, Company, Sales Invoice, Purchase Invoice, Stock Entry, Note, etc. The DocType must exist in your ERPNext instance and you must have delete permissions.\"),\n document_name: z.string().describe(\"The unique name (ID) of the document to delete. This is the document's primary identifier, not the display title. Example: EMP001 (for Employee DocType) or a generated ID like 7l1epfhlls (for Note DocType).\"),\n});\nexport const ErpnextDeleteDocumentOutput = z.object({\n message: z.string().describe(\"Confirmation message from the API, typically 'ok' when deletion succeeds\").nullable(),\n}).passthrough();\n\nexport const erpnextDeleteDocument = action(\"ERPNEXT_DELETE_DOCUMENT\", {\n slug: \"erpnext-delete-document\",\n name: \"Delete Document\",\n description: \"Tool to delete a specific document by DocType and name. Use when you need to remove a document from ERPNext. Requires delete permissions for the specified DocType.\",\n input: ErpnextDeleteDocumentInput,\n output: ErpnextDeleteDocumentOutput,\n});\n"],"mappings":";;AAYA,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZwC,EAAE,OAAO;EACjD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,oPAAoP;EACjR,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,gNAAgN;CACrP,CASS;CACP,QATyC,EAAE,OAAO,EAClD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS,EACpH,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
@@ -6,8 +6,8 @@ const ErpnextDownloadFile_FileDownloadableSchema = zod.z.object({
6
6
  name: zod.z.string().describe("Name of the file").nullable(),
7
7
  s3url: zod.z.string().describe("S3 URL of the downloaded file.").nullable(),
8
8
  mimetype: zod.z.string().describe("Mime type of the file.").nullable()
9
- });
10
- const ErpnextDownloadFileOutput = zod.z.object({ file: ErpnextDownloadFile_FileDownloadableSchema.nullable() });
9
+ }).passthrough();
10
+ const ErpnextDownloadFileOutput = zod.z.object({ file: ErpnextDownloadFile_FileDownloadableSchema.nullable() }).passthrough();
11
11
  const erpnextDownloadFile = require_action.action("ERPNEXT_DOWNLOAD_FILE", {
12
12
  slug: "erpnext-download-file",
13
13
  name: "Download file from ERPNext",
@@ -1 +1 @@
1
- {"version":3,"file":"download-file.cjs","names":["z","action"],"sources":["../../src/actions/download-file.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextDownloadFileInput = z.object({\n file_url: z.string().describe(\"URL of the file to download. This should be a relative path starting with /files/ or /private/files/ (e.g., '/files/test_file.txt'). The file must exist on the ERPNext instance.\"),\n});\nconst ErpnextDownloadFile_FileDownloadableSchema = z.object({\n name: z.string().describe(\"Name of the file\").nullable(),\n s3url: z.string().describe(\"S3 URL of the downloaded file.\").nullable(),\n mimetype: z.string().describe(\"Mime type of the file.\").nullable(),\n});\nexport const ErpnextDownloadFileOutput = z.object({\n file: ErpnextDownloadFile_FileDownloadableSchema.nullable(),\n});\n\nexport const erpnextDownloadFile = action(\"ERPNEXT_DOWNLOAD_FILE\", {\n slug: \"erpnext-download-file\",\n name: \"Download file from ERPNext\",\n description: \"Tool to download a file from ERPNext by its URL. Use when you need to retrieve file content from the ERPNext instance using the file's URL path.\",\n input: ErpnextDownloadFileInput,\n output: ErpnextDownloadFileOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,EAC/C,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mLAAmL,EACnN,CAAC;AACD,MAAM,6CAA6CA,IAAAA,EAAE,OAAO;CAC1D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACvD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACtE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;AACnE,CAAC;AACD,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,MAAM,2CAA2C,SAAS,EAC5D,CAAC;AAED,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"download-file.cjs","names":["z","action"],"sources":["../../src/actions/download-file.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextDownloadFileInput = z.object({\n file_url: z.string().describe(\"URL of the file to download. This should be a relative path starting with /files/ or /private/files/ (e.g., '/files/test_file.txt'). The file must exist on the ERPNext instance.\"),\n});\nconst ErpnextDownloadFile_FileDownloadableSchema = z.object({\n name: z.string().describe(\"Name of the file\").nullable(),\n s3url: z.string().describe(\"S3 URL of the downloaded file.\").nullable(),\n mimetype: z.string().describe(\"Mime type of the file.\").nullable(),\n}).passthrough();\nexport const ErpnextDownloadFileOutput = z.object({\n file: ErpnextDownloadFile_FileDownloadableSchema.nullable(),\n}).passthrough();\n\nexport const erpnextDownloadFile = action(\"ERPNEXT_DOWNLOAD_FILE\", {\n slug: \"erpnext-download-file\",\n name: \"Download file from ERPNext\",\n description: \"Tool to download a file from ERPNext by its URL. Use when you need to retrieve file content from the ERPNext instance using the file's URL path.\",\n input: ErpnextDownloadFileInput,\n output: ErpnextDownloadFileOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,EAC/C,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mLAAmL,EACnN,CAAC;AACD,MAAM,6CAA6CA,IAAAA,EAAE,OAAO;CAC1D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACvD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACtE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;AACnE,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,MAAM,2CAA2C,SAAS,EAC5D,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -9,17 +9,11 @@ declare const ErpnextDownloadFileOutput: z.ZodObject<{
9
9
  name: z.ZodNullable<z.ZodString>;
10
10
  s3url: z.ZodNullable<z.ZodString>;
11
11
  mimetype: z.ZodNullable<z.ZodString>;
12
- }, z.core.$strip>>;
13
- }, z.core.$strip>;
12
+ }, z.core.$loose>>;
13
+ }, z.core.$loose>;
14
14
  declare const erpnextDownloadFile: import("@keystrokehq/action").WorkflowActionDefinition<{
15
15
  file_url: string;
16
- }, {
17
- file: {
18
- name: string | null;
19
- s3url: string | null;
20
- mimetype: string | null;
21
- } | null;
22
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
16
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
23
17
  //#endregion
24
18
  export { erpnextDownloadFile };
25
19
  //# sourceMappingURL=download-file.d.cts.map
@@ -9,17 +9,11 @@ declare const ErpnextDownloadFileOutput: z.ZodObject<{
9
9
  name: z.ZodNullable<z.ZodString>;
10
10
  s3url: z.ZodNullable<z.ZodString>;
11
11
  mimetype: z.ZodNullable<z.ZodString>;
12
- }, z.core.$strip>>;
13
- }, z.core.$strip>;
12
+ }, z.core.$loose>>;
13
+ }, z.core.$loose>;
14
14
  declare const erpnextDownloadFile: import("@keystrokehq/action").WorkflowActionDefinition<{
15
15
  file_url: string;
16
- }, {
17
- file: {
18
- name: string | null;
19
- s3url: string | null;
20
- mimetype: string | null;
21
- } | null;
22
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
16
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
23
17
  //#endregion
24
18
  export { erpnextDownloadFile };
25
19
  //# sourceMappingURL=download-file.d.mts.map
@@ -6,13 +6,13 @@ const ErpnextDownloadFile_FileDownloadableSchema = z.object({
6
6
  name: z.string().describe("Name of the file").nullable(),
7
7
  s3url: z.string().describe("S3 URL of the downloaded file.").nullable(),
8
8
  mimetype: z.string().describe("Mime type of the file.").nullable()
9
- });
9
+ }).passthrough();
10
10
  const erpnextDownloadFile = action("ERPNEXT_DOWNLOAD_FILE", {
11
11
  slug: "erpnext-download-file",
12
12
  name: "Download file from ERPNext",
13
13
  description: "Tool to download a file from ERPNext by its URL. Use when you need to retrieve file content from the ERPNext instance using the file's URL path.",
14
14
  input: ErpnextDownloadFileInput,
15
- output: z.object({ file: ErpnextDownloadFile_FileDownloadableSchema.nullable() })
15
+ output: z.object({ file: ErpnextDownloadFile_FileDownloadableSchema.nullable() }).passthrough()
16
16
  });
17
17
  //#endregion
18
18
  export { erpnextDownloadFile };
@@ -1 +1 @@
1
- {"version":3,"file":"download-file.mjs","names":[],"sources":["../../src/actions/download-file.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextDownloadFileInput = z.object({\n file_url: z.string().describe(\"URL of the file to download. This should be a relative path starting with /files/ or /private/files/ (e.g., '/files/test_file.txt'). The file must exist on the ERPNext instance.\"),\n});\nconst ErpnextDownloadFile_FileDownloadableSchema = z.object({\n name: z.string().describe(\"Name of the file\").nullable(),\n s3url: z.string().describe(\"S3 URL of the downloaded file.\").nullable(),\n mimetype: z.string().describe(\"Mime type of the file.\").nullable(),\n});\nexport const ErpnextDownloadFileOutput = z.object({\n file: ErpnextDownloadFile_FileDownloadableSchema.nullable(),\n});\n\nexport const erpnextDownloadFile = action(\"ERPNEXT_DOWNLOAD_FILE\", {\n slug: \"erpnext-download-file\",\n name: \"Download file from ERPNext\",\n description: \"Tool to download a file from ERPNext by its URL. Use when you need to retrieve file content from the ERPNext instance using the file's URL path.\",\n input: ErpnextDownloadFileInput,\n output: ErpnextDownloadFileOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2B,EAAE,OAAO,EAC/C,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,mLAAmL,EACnN,CAAC;AACD,MAAM,6CAA6C,EAAE,OAAO;CAC1D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACvD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACtE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;AACnE,CAAC;AAKD,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATuC,EAAE,OAAO,EAChD,MAAM,2CAA2C,SAAS,EAC5D,CAOU;AACV,CAAC"}
1
+ {"version":3,"file":"download-file.mjs","names":[],"sources":["../../src/actions/download-file.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextDownloadFileInput = z.object({\n file_url: z.string().describe(\"URL of the file to download. This should be a relative path starting with /files/ or /private/files/ (e.g., '/files/test_file.txt'). The file must exist on the ERPNext instance.\"),\n});\nconst ErpnextDownloadFile_FileDownloadableSchema = z.object({\n name: z.string().describe(\"Name of the file\").nullable(),\n s3url: z.string().describe(\"S3 URL of the downloaded file.\").nullable(),\n mimetype: z.string().describe(\"Mime type of the file.\").nullable(),\n}).passthrough();\nexport const ErpnextDownloadFileOutput = z.object({\n file: ErpnextDownloadFile_FileDownloadableSchema.nullable(),\n}).passthrough();\n\nexport const erpnextDownloadFile = action(\"ERPNEXT_DOWNLOAD_FILE\", {\n slug: \"erpnext-download-file\",\n name: \"Download file from ERPNext\",\n description: \"Tool to download a file from ERPNext by its URL. Use when you need to retrieve file content from the ERPNext instance using the file's URL path.\",\n input: ErpnextDownloadFileInput,\n output: ErpnextDownloadFileOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2B,EAAE,OAAO,EAC/C,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,mLAAmL,EACnN,CAAC;AACD,MAAM,6CAA6C,EAAE,OAAO;CAC1D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACvD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACtE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;AACnE,CAAC,CAAC,CAAC,YAAY;AAKf,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATuC,EAAE,OAAO,EAChD,MAAM,2CAA2C,SAAS,EAC5D,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
@@ -11,8 +11,8 @@ const ErpnextDownloadPdf_FileDownloadableSchema = zod.z.object({
11
11
  name: zod.z.string().describe("Name of the file").nullable(),
12
12
  s3url: zod.z.string().describe("S3 URL of the downloaded file.").nullable(),
13
13
  mimetype: zod.z.string().describe("Mime type of the file.").nullable()
14
- });
15
- const ErpnextDownloadPdfOutput = zod.z.object({ content: ErpnextDownloadPdf_FileDownloadableSchema.nullable() }).describe("Response model containing the downloaded PDF file.");
14
+ }).passthrough();
15
+ const ErpnextDownloadPdfOutput = zod.z.object({ content: ErpnextDownloadPdf_FileDownloadableSchema.nullable() }).passthrough().describe("Response model containing the downloaded PDF file.");
16
16
  const erpnextDownloadPdf = require_action.action("ERPNEXT_DOWNLOAD_PDF", {
17
17
  slug: "erpnext-download-pdf",
18
18
  name: "Download PDF Document",
@@ -1 +1 @@
1
- {"version":3,"file":"download-pdf.cjs","names":["z","action"],"sources":["../../src/actions/download-pdf.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextDownloadPdfInput = z.object({\n name: z.string().describe(\"Document name/ID to download\"),\n format: z.string().describe(\"Print format name to use for the PDF. If not specified, the default print format for the DocType will be used.\").optional(),\n doctype: z.string().describe(\"DocType of the document to download (e.g., 'User', 'Sales Invoice', 'Purchase Order')\"),\n no_letterhead: z.number().int().describe(\"Set to 1 to exclude letterhead from the PDF, set to 0 or omit to include letterhead\").optional(),\n}).describe(\"Request model for downloading a document as PDF from ERPNext.\");\nconst ErpnextDownloadPdf_FileDownloadableSchema = z.object({\n name: z.string().describe(\"Name of the file\").nullable(),\n s3url: z.string().describe(\"S3 URL of the downloaded file.\").nullable(),\n mimetype: z.string().describe(\"Mime type of the file.\").nullable(),\n});\nexport const ErpnextDownloadPdfOutput = z.object({\n content: ErpnextDownloadPdf_FileDownloadableSchema.nullable(),\n}).describe(\"Response model containing the downloaded PDF file.\");\n\nexport const erpnextDownloadPdf = action(\"ERPNEXT_DOWNLOAD_PDF\", {\n slug: \"erpnext-download-pdf\",\n name: \"Download PDF Document\",\n description: \"Tool to download a document as PDF from ERPNext with optional print format. Use when you need to retrieve a document in PDF format, optionally specifying a custom print format or excluding letterhead.\",\n input: ErpnextDownloadPdfInput,\n output: ErpnextDownloadPdfOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;CACxD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gHAAgH,CAAC,CAAC,SAAS;CACvJ,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uFAAuF;CACpH,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;AAC3I,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,4CAA4CA,IAAAA,EAAE,OAAO;CACzD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACvD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACtE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;AACnE,CAAC;AACD,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,EAC/C,SAAS,0CAA0C,SAAS,EAC9D,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAEhE,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"download-pdf.cjs","names":["z","action"],"sources":["../../src/actions/download-pdf.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextDownloadPdfInput = z.object({\n name: z.string().describe(\"Document name/ID to download\"),\n format: z.string().describe(\"Print format name to use for the PDF. If not specified, the default print format for the DocType will be used.\").optional(),\n doctype: z.string().describe(\"DocType of the document to download (e.g., 'User', 'Sales Invoice', 'Purchase Order')\"),\n no_letterhead: z.number().int().describe(\"Set to 1 to exclude letterhead from the PDF, set to 0 or omit to include letterhead\").optional(),\n}).describe(\"Request model for downloading a document as PDF from ERPNext.\");\nconst ErpnextDownloadPdf_FileDownloadableSchema = z.object({\n name: z.string().describe(\"Name of the file\").nullable(),\n s3url: z.string().describe(\"S3 URL of the downloaded file.\").nullable(),\n mimetype: z.string().describe(\"Mime type of the file.\").nullable(),\n}).passthrough();\nexport const ErpnextDownloadPdfOutput = z.object({\n content: ErpnextDownloadPdf_FileDownloadableSchema.nullable(),\n}).passthrough().describe(\"Response model containing the downloaded PDF file.\");\n\nexport const erpnextDownloadPdf = action(\"ERPNEXT_DOWNLOAD_PDF\", {\n slug: \"erpnext-download-pdf\",\n name: \"Download PDF Document\",\n description: \"Tool to download a document as PDF from ERPNext with optional print format. Use when you need to retrieve a document in PDF format, optionally specifying a custom print format or excluding letterhead.\",\n input: ErpnextDownloadPdfInput,\n output: ErpnextDownloadPdfOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;CACxD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gHAAgH,CAAC,CAAC,SAAS;CACvJ,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uFAAuF;CACpH,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;AAC3I,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,4CAA4CA,IAAAA,EAAE,OAAO;CACzD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACvD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACtE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;AACnE,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,EAC/C,SAAS,0CAA0C,SAAS,EAC9D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAAoD;AAE9E,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}