@keystrokehq/erpnext 0.1.1 → 0.1.2

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 (247) 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 +5 -5
  4. package/dist/actions/add-comment.cjs.map +1 -1
  5. package/dist/actions/add-comment.d.cts +6 -18
  6. package/dist/actions/add-comment.d.mts +6 -18
  7. package/dist/actions/add-comment.mjs +5 -5
  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 +2 -4
  12. package/dist/actions/add-tag.d.mts +2 -4
  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 +4 -4
  16. package/dist/actions/apply-workflow.cjs.map +1 -1
  17. package/dist/actions/apply-workflow.d.cts +4 -8
  18. package/dist/actions/apply-workflow.d.cts.map +1 -1
  19. package/dist/actions/apply-workflow.d.mts +4 -8
  20. package/dist/actions/apply-workflow.d.mts.map +1 -1
  21. package/dist/actions/apply-workflow.mjs +4 -4
  22. package/dist/actions/apply-workflow.mjs.map +1 -1
  23. package/dist/actions/cancel-document.cjs +2 -2
  24. package/dist/actions/cancel-document.cjs.map +1 -1
  25. package/dist/actions/cancel-document.d.cts +3 -6
  26. package/dist/actions/cancel-document.d.cts.map +1 -1
  27. package/dist/actions/cancel-document.d.mts +3 -6
  28. package/dist/actions/cancel-document.d.mts.map +1 -1
  29. package/dist/actions/cancel-document.mjs +2 -2
  30. package/dist/actions/cancel-document.mjs.map +1 -1
  31. package/dist/actions/create-document.cjs +7 -7
  32. package/dist/actions/create-document.cjs.map +1 -1
  33. package/dist/actions/create-document.d.cts +8 -19
  34. package/dist/actions/create-document.d.mts +8 -19
  35. package/dist/actions/create-document.mjs +7 -7
  36. package/dist/actions/create-document.mjs.map +1 -1
  37. package/dist/actions/create-timesheet.d.cts +1 -11
  38. package/dist/actions/create-timesheet.d.mts +1 -11
  39. package/dist/actions/delete-document.d.cts +1 -3
  40. package/dist/actions/delete-document.d.mts +1 -3
  41. package/dist/actions/download-file.d.cts +1 -7
  42. package/dist/actions/download-file.d.mts +1 -7
  43. package/dist/actions/download-pdf.d.cts +1 -7
  44. package/dist/actions/download-pdf.d.mts +1 -7
  45. package/dist/actions/get-all-languages.cjs +2 -2
  46. package/dist/actions/get-all-languages.cjs.map +1 -1
  47. package/dist/actions/get-all-languages.d.cts +3 -8
  48. package/dist/actions/get-all-languages.d.mts +3 -8
  49. package/dist/actions/get-all-languages.mjs +2 -2
  50. package/dist/actions/get-all-languages.mjs.map +1 -1
  51. package/dist/actions/get-all-roles.d.cts +1 -3
  52. package/dist/actions/get-all-roles.d.cts.map +1 -1
  53. package/dist/actions/get-all-roles.d.mts +1 -3
  54. package/dist/actions/get-all-roles.d.mts.map +1 -1
  55. package/dist/actions/get-client.cjs +7 -7
  56. package/dist/actions/get-client.cjs.map +1 -1
  57. package/dist/actions/get-client.d.cts +8 -20
  58. package/dist/actions/get-client.d.mts +8 -20
  59. package/dist/actions/get-client.mjs +7 -7
  60. package/dist/actions/get-client.mjs.map +1 -1
  61. package/dist/actions/get-count.d.cts +1 -3
  62. package/dist/actions/get-count.d.mts +1 -3
  63. package/dist/actions/get-doc-with-meta.cjs +20 -20
  64. package/dist/actions/get-doc-with-meta.cjs.map +1 -1
  65. package/dist/actions/get-doc-with-meta.d.cts +21 -43
  66. package/dist/actions/get-doc-with-meta.d.mts +21 -43
  67. package/dist/actions/get-doc-with-meta.mjs +20 -20
  68. package/dist/actions/get-doc-with-meta.mjs.map +1 -1
  69. package/dist/actions/get-doctype-meta.cjs +3 -3
  70. package/dist/actions/get-doctype-meta.cjs.map +1 -1
  71. package/dist/actions/get-doctype-meta.d.cts +4 -8
  72. package/dist/actions/get-doctype-meta.d.cts.map +1 -1
  73. package/dist/actions/get-doctype-meta.d.mts +4 -8
  74. package/dist/actions/get-doctype-meta.d.mts.map +1 -1
  75. package/dist/actions/get-doctype-meta.mjs +3 -3
  76. package/dist/actions/get-doctype-meta.mjs.map +1 -1
  77. package/dist/actions/get-document.cjs +7 -7
  78. package/dist/actions/get-document.cjs.map +1 -1
  79. package/dist/actions/get-document.d.cts +8 -19
  80. package/dist/actions/get-document.d.mts +8 -19
  81. package/dist/actions/get-document.mjs +7 -7
  82. package/dist/actions/get-document.mjs.map +1 -1
  83. package/dist/actions/get-exchange-rate.d.cts +1 -3
  84. package/dist/actions/get-exchange-rate.d.mts +1 -3
  85. package/dist/actions/get-fiscal-year.d.cts +1 -7
  86. package/dist/actions/get-fiscal-year.d.mts +1 -7
  87. package/dist/actions/get-framework-version.d.cts +1 -3
  88. package/dist/actions/get-framework-version.d.cts.map +1 -1
  89. package/dist/actions/get-framework-version.d.mts +1 -3
  90. package/dist/actions/get-framework-version.d.mts.map +1 -1
  91. package/dist/actions/get-item-details.cjs +27 -27
  92. package/dist/actions/get-item-details.cjs.map +1 -1
  93. package/dist/actions/get-item-details.d.cts +28 -59
  94. package/dist/actions/get-item-details.d.mts +28 -59
  95. package/dist/actions/get-item-details.mjs +27 -27
  96. package/dist/actions/get-item-details.mjs.map +1 -1
  97. package/dist/actions/get-list.d.cts +1 -3
  98. package/dist/actions/get-list.d.cts.map +1 -1
  99. package/dist/actions/get-list.d.mts +1 -3
  100. package/dist/actions/get-list.d.mts.map +1 -1
  101. package/dist/actions/get-logged-user.d.cts +1 -3
  102. package/dist/actions/get-logged-user.d.cts.map +1 -1
  103. package/dist/actions/get-logged-user.d.mts +1 -3
  104. package/dist/actions/get-logged-user.d.mts.map +1 -1
  105. package/dist/actions/get-party-details.cjs +36 -36
  106. package/dist/actions/get-party-details.cjs.map +1 -1
  107. package/dist/actions/get-party-details.d.cts +37 -77
  108. package/dist/actions/get-party-details.d.mts +37 -77
  109. package/dist/actions/get-party-details.mjs +36 -36
  110. package/dist/actions/get-party-details.mjs.map +1 -1
  111. package/dist/actions/get-payment-entry.cjs +26 -26
  112. package/dist/actions/get-payment-entry.cjs.map +1 -1
  113. package/dist/actions/get-payment-entry.d.cts +27 -59
  114. package/dist/actions/get-payment-entry.d.mts +27 -59
  115. package/dist/actions/get-payment-entry.mjs +26 -26
  116. package/dist/actions/get-payment-entry.mjs.map +1 -1
  117. package/dist/actions/get-stock-balance.d.cts +1 -3
  118. package/dist/actions/get-stock-balance.d.mts +1 -3
  119. package/dist/actions/get-timezones.d.cts +1 -5
  120. package/dist/actions/get-timezones.d.cts.map +1 -1
  121. package/dist/actions/get-timezones.d.mts +1 -5
  122. package/dist/actions/get-timezones.d.mts.map +1 -1
  123. package/dist/actions/get-user-roles.d.cts +1 -3
  124. package/dist/actions/get-user-roles.d.mts +1 -3
  125. package/dist/actions/get-value.d.cts +1 -3
  126. package/dist/actions/get-value.d.cts.map +1 -1
  127. package/dist/actions/get-value.d.mts +1 -3
  128. package/dist/actions/get-value.d.mts.map +1 -1
  129. package/dist/actions/get-workflow-transitions.cjs +7 -7
  130. package/dist/actions/get-workflow-transitions.cjs.map +1 -1
  131. package/dist/actions/get-workflow-transitions.d.cts +8 -17
  132. package/dist/actions/get-workflow-transitions.d.mts +8 -17
  133. package/dist/actions/get-workflow-transitions.mjs +7 -7
  134. package/dist/actions/get-workflow-transitions.mjs.map +1 -1
  135. package/dist/actions/insert-document.d.cts +1 -3
  136. package/dist/actions/insert-document.d.cts.map +1 -1
  137. package/dist/actions/insert-document.d.mts +1 -3
  138. package/dist/actions/insert-document.d.mts.map +1 -1
  139. package/dist/actions/insert-many.cjs +4 -4
  140. package/dist/actions/insert-many.cjs.map +1 -1
  141. package/dist/actions/insert-many.d.cts +4 -10
  142. package/dist/actions/insert-many.d.mts +4 -10
  143. package/dist/actions/insert-many.mjs +4 -4
  144. package/dist/actions/insert-many.mjs.map +1 -1
  145. package/dist/actions/list-doctypes.cjs +1 -1
  146. package/dist/actions/list-doctypes.cjs.map +1 -1
  147. package/dist/actions/list-doctypes.d.cts +2 -4
  148. package/dist/actions/list-doctypes.d.cts.map +1 -1
  149. package/dist/actions/list-doctypes.d.mts +2 -4
  150. package/dist/actions/list-doctypes.d.mts.map +1 -1
  151. package/dist/actions/list-doctypes.mjs +1 -1
  152. package/dist/actions/list-doctypes.mjs.map +1 -1
  153. package/dist/actions/list-documents.d.cts +1 -3
  154. package/dist/actions/list-documents.d.cts.map +1 -1
  155. package/dist/actions/list-documents.d.mts +1 -3
  156. package/dist/actions/list-documents.d.mts.map +1 -1
  157. package/dist/actions/list-employees.d.cts +1 -6
  158. package/dist/actions/list-employees.d.mts +1 -6
  159. package/dist/actions/list-projects.d.cts +1 -3
  160. package/dist/actions/list-projects.d.cts.map +1 -1
  161. package/dist/actions/list-projects.d.mts +1 -3
  162. package/dist/actions/list-projects.d.mts.map +1 -1
  163. package/dist/actions/list-timesheets.d.cts +1 -3
  164. package/dist/actions/list-timesheets.d.cts.map +1 -1
  165. package/dist/actions/list-timesheets.d.mts +1 -3
  166. package/dist/actions/list-timesheets.d.mts.map +1 -1
  167. package/dist/actions/list-webhooks.cjs +4 -4
  168. package/dist/actions/list-webhooks.cjs.map +1 -1
  169. package/dist/actions/list-webhooks.d.cts +5 -14
  170. package/dist/actions/list-webhooks.d.mts +5 -14
  171. package/dist/actions/list-webhooks.mjs +4 -4
  172. package/dist/actions/list-webhooks.mjs.map +1 -1
  173. package/dist/actions/make-delivery-note.cjs +11 -11
  174. package/dist/actions/make-delivery-note.cjs.map +1 -1
  175. package/dist/actions/make-delivery-note.d.cts +12 -27
  176. package/dist/actions/make-delivery-note.d.cts.map +1 -1
  177. package/dist/actions/make-delivery-note.d.mts +12 -27
  178. package/dist/actions/make-delivery-note.d.mts.map +1 -1
  179. package/dist/actions/make-delivery-note.mjs +11 -11
  180. package/dist/actions/make-delivery-note.mjs.map +1 -1
  181. package/dist/actions/make-purchase-order.cjs +22 -22
  182. package/dist/actions/make-purchase-order.cjs.map +1 -1
  183. package/dist/actions/make-purchase-order.d.cts +23 -51
  184. package/dist/actions/make-purchase-order.d.mts +23 -51
  185. package/dist/actions/make-purchase-order.mjs +22 -22
  186. package/dist/actions/make-purchase-order.mjs.map +1 -1
  187. package/dist/actions/make-sales-invoice.cjs +13 -13
  188. package/dist/actions/make-sales-invoice.cjs.map +1 -1
  189. package/dist/actions/make-sales-invoice.d.cts +14 -31
  190. package/dist/actions/make-sales-invoice.d.cts.map +1 -1
  191. package/dist/actions/make-sales-invoice.d.mts +14 -31
  192. package/dist/actions/make-sales-invoice.d.mts.map +1 -1
  193. package/dist/actions/make-sales-invoice.mjs +13 -13
  194. package/dist/actions/make-sales-invoice.mjs.map +1 -1
  195. package/dist/actions/make-stock-entry.cjs +9 -9
  196. package/dist/actions/make-stock-entry.cjs.map +1 -1
  197. package/dist/actions/make-stock-entry.d.cts +10 -22
  198. package/dist/actions/make-stock-entry.d.mts +10 -22
  199. package/dist/actions/make-stock-entry.mjs +9 -9
  200. package/dist/actions/make-stock-entry.mjs.map +1 -1
  201. package/dist/actions/ping.d.cts +1 -3
  202. package/dist/actions/ping.d.cts.map +1 -1
  203. package/dist/actions/ping.d.mts +1 -3
  204. package/dist/actions/ping.d.mts.map +1 -1
  205. package/dist/actions/rename-doc.d.cts +1 -3
  206. package/dist/actions/rename-doc.d.mts +1 -3
  207. package/dist/actions/save-docs.cjs +5 -5
  208. package/dist/actions/save-docs.cjs.map +1 -1
  209. package/dist/actions/save-docs.d.cts +6 -12
  210. package/dist/actions/save-docs.d.cts.map +1 -1
  211. package/dist/actions/save-docs.d.mts +6 -12
  212. package/dist/actions/save-docs.d.mts.map +1 -1
  213. package/dist/actions/save-docs.mjs +5 -5
  214. package/dist/actions/save-docs.mjs.map +1 -1
  215. package/dist/actions/save-document.cjs +2 -2
  216. package/dist/actions/save-document.cjs.map +1 -1
  217. package/dist/actions/save-document.d.cts +3 -9
  218. package/dist/actions/save-document.d.mts +3 -9
  219. package/dist/actions/save-document.mjs +2 -2
  220. package/dist/actions/save-document.mjs.map +1 -1
  221. package/dist/actions/search-global.cjs +7 -7
  222. package/dist/actions/search-global.cjs.map +1 -1
  223. package/dist/actions/search-global.d.cts +8 -17
  224. package/dist/actions/search-global.d.mts +8 -17
  225. package/dist/actions/search-global.mjs +7 -7
  226. package/dist/actions/search-global.mjs.map +1 -1
  227. package/dist/actions/search-link.cjs +1 -1
  228. package/dist/actions/search-link.cjs.map +1 -1
  229. package/dist/actions/search-link.d.cts +2 -8
  230. package/dist/actions/search-link.d.mts +2 -8
  231. package/dist/actions/search-link.mjs +1 -1
  232. package/dist/actions/search-link.mjs.map +1 -1
  233. package/dist/actions/set-value.cjs +8 -8
  234. package/dist/actions/set-value.cjs.map +1 -1
  235. package/dist/actions/set-value.d.cts +15 -34
  236. package/dist/actions/set-value.d.mts +15 -34
  237. package/dist/actions/set-value.mjs +8 -8
  238. package/dist/actions/set-value.mjs.map +1 -1
  239. package/dist/actions/submit-document.d.cts +1 -12
  240. package/dist/actions/submit-document.d.mts +1 -12
  241. package/dist/actions/update-document.cjs +8 -8
  242. package/dist/actions/update-document.cjs.map +1 -1
  243. package/dist/actions/update-document.d.cts +9 -19
  244. package/dist/actions/update-document.d.mts +9 -19
  245. package/dist/actions/update-document.mjs +8 -8
  246. package/dist/actions/update-document.mjs.map +1 -1
  247. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"action.cjs","names":["erpnext","executeErpnextTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { erpnext } from \"./app\";\nimport { executeErpnextTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<\n TInput extends z.ZodType,\n TOutput extends z.ZodType,\n>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n) {\n return erpnext.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeErpnextTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OAId,MACA,KAOA;CACA,OAAOA,YAAAA,QAAQ,OAAO;EACpB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,mBAAmB,MAAM,KAAgC,CAAC;EAC1F;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"action.cjs","names":["erpnext","executeErpnextTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { erpnext } from \"./app\";\nimport { executeErpnextTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return erpnext.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeErpnextTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,QAAQ,OAAO;EACpB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,mBAAmB,MAAM,KAAgC,CAAC;EAC1F;CACF,CAAC;AACH"}
@@ -1 +1 @@
1
- {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { erpnext } from \"./app\";\nimport { executeErpnextTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<\n TInput extends z.ZodType,\n TOutput extends z.ZodType,\n>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n) {\n return erpnext.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeErpnextTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OAId,MACA,KAOA;CACA,OAAO,QAAQ,OAAO;EACpB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,mBAAmB,MAAM,KAAgC,CAAC;EAC1F;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { erpnext } from \"./app\";\nimport { executeErpnextTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return erpnext.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeErpnextTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,QAAQ,OAAO;EACpB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,mBAAmB,MAAM,KAAgC,CAAC;EAC1F;CACF,CAAC;AACH"}
@@ -10,13 +10,13 @@ const ErpnextAddCommentInput = zod.z.object({
10
10
  }).describe("Request model for adding a comment to a document.");
11
11
  const ErpnextAddCommentOutput = zod.z.object({
12
12
  name: zod.z.string().describe("Unique name/ID of the created comment").nullable(),
13
- owner: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Owner of the comment document").optional()),
13
+ owner: zod.z.string().describe("Owner of the comment document").nullable().optional(),
14
14
  content: zod.z.string().describe("The comment content that was added").nullable(),
15
- creation: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Timestamp when the comment was created").optional()),
16
- modified: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Timestamp when the comment was last modified").optional()),
15
+ creation: zod.z.string().describe("Timestamp when the comment was created").nullable().optional(),
16
+ modified: zod.z.string().describe("Timestamp when the comment was last modified").nullable().optional(),
17
17
  comment_by: zod.z.string().describe("Name/identifier of the person who made the comment").nullable(),
18
- modified_by: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("User who last modified the comment").optional()),
19
- comment_type: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Type of the comment (typically 'Comment')").optional()),
18
+ modified_by: zod.z.string().describe("User who last modified the comment").nullable().optional(),
19
+ comment_type: zod.z.string().describe("Type of the comment (typically 'Comment')").nullable().optional(),
20
20
  comment_email: zod.z.string().describe("Email address of the person who made the comment").nullable(),
21
21
  reference_name: zod.z.string().describe("The name/ID of the document the comment was added to").nullable(),
22
22
  reference_doctype: zod.z.string().describe("The DocType of the document the comment was added to").nullable()
@@ -1 +1 @@
1
- {"version":3,"file":"add-comment.cjs","names":["z","action"],"sources":["../../src/actions/add-comment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextAddCommentInput = z.object({\n content: z.string().describe(\"The comment content/text to be added to the document\"),\n comment_by: z.string().describe(\"Name or identifier of the person making the comment (typically same as comment_email)\"),\n comment_email: z.string().describe(\"Email address of the person making the comment\"),\n reference_name: z.string().describe(\"The name/ID of the specific document to add the comment to\"),\n reference_doctype: z.string().describe(\"The DocType of the document to add comment to (e.g., 'ToDo', 'Issue', 'Task')\"),\n}).describe(\"Request model for adding a comment to a document.\");\nexport const ErpnextAddCommentOutput = z.object({\n name: z.string().describe(\"Unique name/ID of the created comment\").nullable(),\n owner: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Owner of the comment document\").optional()),\n content: z.string().describe(\"The comment content that was added\").nullable(),\n creation: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Timestamp when the comment was created\").optional()),\n modified: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Timestamp when the comment was last modified\").optional()),\n comment_by: z.string().describe(\"Name/identifier of the person who made the comment\").nullable(),\n modified_by: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"User who last modified the comment\").optional()),\n comment_type: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Type of the comment (typically 'Comment')\").optional()),\n comment_email: z.string().describe(\"Email address of the person who made the comment\").nullable(),\n reference_name: z.string().describe(\"The name/ID of the document the comment was added to\").nullable(),\n reference_doctype: z.string().describe(\"The DocType of the document the comment was added to\").nullable(),\n}).describe(\"Response model for added comment.\");\n\nexport const erpnextAddComment = action(\"ERPNEXT_ADD_COMMENT\", {\n slug: \"erpnext-add-comment\",\n name: \"Add Comment\",\n description: \"Tool to add a comment to a document in ERPNext/Frappe. Use when you need to add comments or notes to any document type like ToDo, Issue, Task, or custom DocTypes.\",\n input: ErpnextAddCommentInput,\n output: ErpnextAddCommentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyBA,IAAAA,EAAE,OAAO;CAC7C,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;CACnF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uFAAuF;CACvH,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;CACnF,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;CAChG,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E;AACxH,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC5E,OAAOA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC;CACpI,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC5E,UAAUA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC;CAChJ,UAAUA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC;CACtJ,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC/F,aAAaA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC;CAC/I,cAAcA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC;CACvJ,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CAChG,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CACrG,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,SAAS,mCAAmC;AAE/C,MAAa,oBAAoBC,eAAAA,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"add-comment.cjs","names":["z","action"],"sources":["../../src/actions/add-comment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextAddCommentInput = z.object({\n content: z.string().describe(\"The comment content/text to be added to the document\"),\n comment_by: z.string().describe(\"Name or identifier of the person making the comment (typically same as comment_email)\"),\n comment_email: z.string().describe(\"Email address of the person making the comment\"),\n reference_name: z.string().describe(\"The name/ID of the specific document to add the comment to\"),\n reference_doctype: z.string().describe(\"The DocType of the document to add comment to (e.g., 'ToDo', 'Issue', 'Task')\"),\n}).describe(\"Request model for adding a comment to a document.\");\nexport const ErpnextAddCommentOutput = z.object({\n name: z.string().describe(\"Unique name/ID of the created comment\").nullable(),\n owner: z.string().describe(\"Owner of the comment document\").nullable().optional(),\n content: z.string().describe(\"The comment content that was added\").nullable(),\n creation: z.string().describe(\"Timestamp when the comment was created\").nullable().optional(),\n modified: z.string().describe(\"Timestamp when the comment was last modified\").nullable().optional(),\n comment_by: z.string().describe(\"Name/identifier of the person who made the comment\").nullable(),\n modified_by: z.string().describe(\"User who last modified the comment\").nullable().optional(),\n comment_type: z.string().describe(\"Type of the comment (typically 'Comment')\").nullable().optional(),\n comment_email: z.string().describe(\"Email address of the person who made the comment\").nullable(),\n reference_name: z.string().describe(\"The name/ID of the document the comment was added to\").nullable(),\n reference_doctype: z.string().describe(\"The DocType of the document the comment was added to\").nullable(),\n}).describe(\"Response model for added comment.\");\n\nexport const erpnextAddComment = action(\"ERPNEXT_ADD_COMMENT\", {\n slug: \"erpnext-add-comment\",\n name: \"Add Comment\",\n description: \"Tool to add a comment to a document in ERPNext/Frappe. Use when you need to add comments or notes to any document type like ToDo, Issue, Task, or custom DocTypes.\",\n input: ErpnextAddCommentInput,\n output: ErpnextAddCommentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyBA,IAAAA,EAAE,OAAO;CAC7C,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;CACnF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uFAAuF;CACvH,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;CACnF,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;CAChG,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E;AACxH,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC5E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC5E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC/F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CAChG,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CACrG,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,SAAS,mCAAmC;AAE/C,MAAa,oBAAoBC,eAAAA,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -10,13 +10,13 @@ declare const ErpnextAddCommentInput: z.ZodObject<{
10
10
  }, z.core.$strip>;
11
11
  declare const ErpnextAddCommentOutput: z.ZodObject<{
12
12
  name: z.ZodNullable<z.ZodString>;
13
- owner: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
13
+ owner: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
14
  content: z.ZodNullable<z.ZodString>;
15
- creation: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
16
- modified: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
15
+ creation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ modified: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
17
  comment_by: z.ZodNullable<z.ZodString>;
18
- modified_by: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
19
- comment_type: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
18
+ modified_by: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ comment_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
20
  comment_email: z.ZodNullable<z.ZodString>;
21
21
  reference_name: z.ZodNullable<z.ZodString>;
22
22
  reference_doctype: z.ZodNullable<z.ZodString>;
@@ -27,19 +27,7 @@ declare const erpnextAddComment: import("@keystrokehq/action").WorkflowActionDef
27
27
  comment_email: string;
28
28
  reference_name: string;
29
29
  reference_doctype: string;
30
- }, {
31
- name: string | null;
32
- content: string | null;
33
- comment_by: string | null;
34
- comment_email: string | null;
35
- reference_name: string | null;
36
- reference_doctype: string | null;
37
- owner?: string | undefined;
38
- creation?: string | undefined;
39
- modified?: string | undefined;
40
- modified_by?: string | undefined;
41
- comment_type?: string | undefined;
42
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
30
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
43
31
  //#endregion
44
32
  export { erpnextAddComment };
45
33
  //# sourceMappingURL=add-comment.d.cts.map
@@ -10,13 +10,13 @@ declare const ErpnextAddCommentInput: z.ZodObject<{
10
10
  }, z.core.$strip>;
11
11
  declare const ErpnextAddCommentOutput: z.ZodObject<{
12
12
  name: z.ZodNullable<z.ZodString>;
13
- owner: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
13
+ owner: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
14
  content: z.ZodNullable<z.ZodString>;
15
- creation: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
16
- modified: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
15
+ creation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ modified: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
17
  comment_by: z.ZodNullable<z.ZodString>;
18
- modified_by: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
19
- comment_type: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
18
+ modified_by: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ comment_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
20
  comment_email: z.ZodNullable<z.ZodString>;
21
21
  reference_name: z.ZodNullable<z.ZodString>;
22
22
  reference_doctype: z.ZodNullable<z.ZodString>;
@@ -27,19 +27,7 @@ declare const erpnextAddComment: import("@keystrokehq/action").WorkflowActionDef
27
27
  comment_email: string;
28
28
  reference_name: string;
29
29
  reference_doctype: string;
30
- }, {
31
- name: string | null;
32
- content: string | null;
33
- comment_by: string | null;
34
- comment_email: string | null;
35
- reference_name: string | null;
36
- reference_doctype: string | null;
37
- owner?: string | undefined;
38
- creation?: string | undefined;
39
- modified?: string | undefined;
40
- modified_by?: string | undefined;
41
- comment_type?: string | undefined;
42
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
30
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
43
31
  //#endregion
44
32
  export { erpnextAddComment };
45
33
  //# sourceMappingURL=add-comment.d.mts.map
@@ -13,13 +13,13 @@ const erpnextAddComment = action("ERPNEXT_ADD_COMMENT", {
13
13
  }).describe("Request model for adding a comment to a document."),
14
14
  output: z.object({
15
15
  name: z.string().describe("Unique name/ID of the created comment").nullable(),
16
- owner: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Owner of the comment document").optional()),
16
+ owner: z.string().describe("Owner of the comment document").nullable().optional(),
17
17
  content: z.string().describe("The comment content that was added").nullable(),
18
- creation: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Timestamp when the comment was created").optional()),
19
- modified: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Timestamp when the comment was last modified").optional()),
18
+ creation: z.string().describe("Timestamp when the comment was created").nullable().optional(),
19
+ modified: z.string().describe("Timestamp when the comment was last modified").nullable().optional(),
20
20
  comment_by: z.string().describe("Name/identifier of the person who made the comment").nullable(),
21
- modified_by: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("User who last modified the comment").optional()),
22
- comment_type: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Type of the comment (typically 'Comment')").optional()),
21
+ modified_by: z.string().describe("User who last modified the comment").nullable().optional(),
22
+ comment_type: z.string().describe("Type of the comment (typically 'Comment')").nullable().optional(),
23
23
  comment_email: z.string().describe("Email address of the person who made the comment").nullable(),
24
24
  reference_name: z.string().describe("The name/ID of the document the comment was added to").nullable(),
25
25
  reference_doctype: z.string().describe("The DocType of the document the comment was added to").nullable()
@@ -1 +1 @@
1
- {"version":3,"file":"add-comment.mjs","names":[],"sources":["../../src/actions/add-comment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextAddCommentInput = z.object({\n content: z.string().describe(\"The comment content/text to be added to the document\"),\n comment_by: z.string().describe(\"Name or identifier of the person making the comment (typically same as comment_email)\"),\n comment_email: z.string().describe(\"Email address of the person making the comment\"),\n reference_name: z.string().describe(\"The name/ID of the specific document to add the comment to\"),\n reference_doctype: z.string().describe(\"The DocType of the document to add comment to (e.g., 'ToDo', 'Issue', 'Task')\"),\n}).describe(\"Request model for adding a comment to a document.\");\nexport const ErpnextAddCommentOutput = z.object({\n name: z.string().describe(\"Unique name/ID of the created comment\").nullable(),\n owner: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Owner of the comment document\").optional()),\n content: z.string().describe(\"The comment content that was added\").nullable(),\n creation: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Timestamp when the comment was created\").optional()),\n modified: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Timestamp when the comment was last modified\").optional()),\n comment_by: z.string().describe(\"Name/identifier of the person who made the comment\").nullable(),\n modified_by: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"User who last modified the comment\").optional()),\n comment_type: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Type of the comment (typically 'Comment')\").optional()),\n comment_email: z.string().describe(\"Email address of the person who made the comment\").nullable(),\n reference_name: z.string().describe(\"The name/ID of the document the comment was added to\").nullable(),\n reference_doctype: z.string().describe(\"The DocType of the document the comment was added to\").nullable(),\n}).describe(\"Response model for added comment.\");\n\nexport const erpnextAddComment = action(\"ERPNEXT_ADD_COMMENT\", {\n slug: \"erpnext-add-comment\",\n name: \"Add Comment\",\n description: \"Tool to add a comment to a document in ERPNext/Frappe. Use when you need to add comments or notes to any document type like ToDo, Issue, Task, or custom DocTypes.\",\n input: ErpnextAddCommentInput,\n output: ErpnextAddCommentOutput,\n});\n"],"mappings":";;AAyBA,MAAa,oBAAoB,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAzBoC,EAAE,OAAO;EAC7C,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;EACnF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uFAAuF;EACvH,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;EACnF,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;EAChG,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E;CACxH,CAAC,CAAC,CAAC,SAAS,mDAmBH;CACP,QAnBqC,EAAE,OAAO;EAC9C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;EAC5E,OAAO,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC;EACpI,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;EAC5E,UAAU,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC;EAChJ,UAAU,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC;EACtJ,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;EAC/F,aAAa,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC;EAC/I,cAAc,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC;EACvJ,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;EAChG,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;EACrG,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC1G,CAAC,CAAC,CAAC,SAAS,mCAOF;AACV,CAAC"}
1
+ {"version":3,"file":"add-comment.mjs","names":[],"sources":["../../src/actions/add-comment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextAddCommentInput = z.object({\n content: z.string().describe(\"The comment content/text to be added to the document\"),\n comment_by: z.string().describe(\"Name or identifier of the person making the comment (typically same as comment_email)\"),\n comment_email: z.string().describe(\"Email address of the person making the comment\"),\n reference_name: z.string().describe(\"The name/ID of the specific document to add the comment to\"),\n reference_doctype: z.string().describe(\"The DocType of the document to add comment to (e.g., 'ToDo', 'Issue', 'Task')\"),\n}).describe(\"Request model for adding a comment to a document.\");\nexport const ErpnextAddCommentOutput = z.object({\n name: z.string().describe(\"Unique name/ID of the created comment\").nullable(),\n owner: z.string().describe(\"Owner of the comment document\").nullable().optional(),\n content: z.string().describe(\"The comment content that was added\").nullable(),\n creation: z.string().describe(\"Timestamp when the comment was created\").nullable().optional(),\n modified: z.string().describe(\"Timestamp when the comment was last modified\").nullable().optional(),\n comment_by: z.string().describe(\"Name/identifier of the person who made the comment\").nullable(),\n modified_by: z.string().describe(\"User who last modified the comment\").nullable().optional(),\n comment_type: z.string().describe(\"Type of the comment (typically 'Comment')\").nullable().optional(),\n comment_email: z.string().describe(\"Email address of the person who made the comment\").nullable(),\n reference_name: z.string().describe(\"The name/ID of the document the comment was added to\").nullable(),\n reference_doctype: z.string().describe(\"The DocType of the document the comment was added to\").nullable(),\n}).describe(\"Response model for added comment.\");\n\nexport const erpnextAddComment = action(\"ERPNEXT_ADD_COMMENT\", {\n slug: \"erpnext-add-comment\",\n name: \"Add Comment\",\n description: \"Tool to add a comment to a document in ERPNext/Frappe. Use when you need to add comments or notes to any document type like ToDo, Issue, Task, or custom DocTypes.\",\n input: ErpnextAddCommentInput,\n output: ErpnextAddCommentOutput,\n});\n"],"mappings":";;AAyBA,MAAa,oBAAoB,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAzBoC,EAAE,OAAO;EAC7C,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;EACnF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uFAAuF;EACvH,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;EACnF,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;EAChG,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E;CACxH,CAAC,CAAC,CAAC,SAAS,mDAmBH;CACP,QAnBqC,EAAE,OAAO;EAC9C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;EAC5E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;EAC5E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5F,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;EAC/F,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3F,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnG,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;EAChG,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;EACrG,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC1G,CAAC,CAAC,CAAC,SAAS,mCAOF;AACV,CAAC"}
@@ -6,7 +6,7 @@ const ErpnextAddTagInput = zod.z.object({
6
6
  dt: zod.z.string().describe("Target DocType (document type) to which the tag will be added. Examples include 'ToDo', 'Sales Invoice', 'Customer', etc."),
7
7
  tag: zod.z.string().describe("Tag to add to the document. Can be any string value.")
8
8
  }).describe("Request model for adding a tag to a document in ERPNext.");
9
- const ErpnextAddTagOutput = zod.z.object({ message: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Response message from the API indicating success or failure details.").optional()) }).describe("Response model returned after adding a tag to a document.");
9
+ const ErpnextAddTagOutput = zod.z.object({ message: zod.z.string().describe("Response message from the API indicating success or failure details.").nullable().optional() }).describe("Response model returned after adding a tag to a document.");
10
10
  const erpnextAddTag = require_action.action("ERPNEXT_ADD_TAG", {
11
11
  slug: "erpnext-add-tag",
12
12
  name: "Add Tag",
@@ -1 +1 @@
1
- {"version":3,"file":"add-tag.cjs","names":["z","action"],"sources":["../../src/actions/add-tag.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextAddTagInput = z.object({\n dn: z.string().describe(\"Target document name (unique identifier) of the document to tag. This is the specific document instance within the DocType.\"),\n dt: z.string().describe(\"Target DocType (document type) to which the tag will be added. Examples include 'ToDo', 'Sales Invoice', 'Customer', etc.\"),\n tag: z.string().describe(\"Tag to add to the document. Can be any string value.\"),\n}).describe(\"Request model for adding a tag to a document in ERPNext.\");\nexport const ErpnextAddTagOutput = z.object({\n message: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Response message from the API indicating success or failure details.\").optional()),\n}).describe(\"Response model returned after adding a tag to a document.\");\n\nexport const erpnextAddTag = action(\"ERPNEXT_ADD_TAG\", {\n slug: \"erpnext-add-tag\",\n name: \"Add Tag\",\n description: \"Tool to add a tag to a document in ERPNext. Use when you need to categorize or label documents for organization and filtering purposes.\",\n input: ErpnextAddTagInput,\n output: ErpnextAddTagOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qBAAqBA,IAAAA,EAAE,OAAO;CACzC,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6HAA6H;CACrJ,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2HAA2H;CACnJ,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;AACjF,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACtE,MAAa,sBAAsBA,IAAAA,EAAE,OAAO,EAC1C,SAASA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS,CAAC,EAC/K,CAAC,CAAC,CAAC,SAAS,2DAA2D;AAEvE,MAAa,gBAAgBC,eAAAA,OAAO,mBAAmB;CACrD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"add-tag.cjs","names":["z","action"],"sources":["../../src/actions/add-tag.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextAddTagInput = z.object({\n dn: z.string().describe(\"Target document name (unique identifier) of the document to tag. This is the specific document instance within the DocType.\"),\n dt: z.string().describe(\"Target DocType (document type) to which the tag will be added. Examples include 'ToDo', 'Sales Invoice', 'Customer', etc.\"),\n tag: z.string().describe(\"Tag to add to the document. Can be any string value.\"),\n}).describe(\"Request model for adding a tag to a document in ERPNext.\");\nexport const ErpnextAddTagOutput = z.object({\n message: z.string().describe(\"Response message from the API indicating success or failure details.\").nullable().optional(),\n}).describe(\"Response model returned after adding a tag to a document.\");\n\nexport const erpnextAddTag = action(\"ERPNEXT_ADD_TAG\", {\n slug: \"erpnext-add-tag\",\n name: \"Add Tag\",\n description: \"Tool to add a tag to a document in ERPNext. Use when you need to categorize or label documents for organization and filtering purposes.\",\n input: ErpnextAddTagInput,\n output: ErpnextAddTagOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qBAAqBA,IAAAA,EAAE,OAAO;CACzC,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6HAA6H;CACrJ,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2HAA2H;CACnJ,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;AACjF,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACtE,MAAa,sBAAsBA,IAAAA,EAAE,OAAO,EAC1C,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC3H,CAAC,CAAC,CAAC,SAAS,2DAA2D;AAEvE,MAAa,gBAAgBC,eAAAA,OAAO,mBAAmB;CACrD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -7,15 +7,13 @@ declare const ErpnextAddTagInput: z.ZodObject<{
7
7
  tag: z.ZodString;
8
8
  }, z.core.$strip>;
9
9
  declare const ErpnextAddTagOutput: z.ZodObject<{
10
- message: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
10
+ message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
11
  }, z.core.$strip>;
12
12
  declare const erpnextAddTag: import("@keystrokehq/action").WorkflowActionDefinition<{
13
13
  dn: string;
14
14
  dt: string;
15
15
  tag: string;
16
- }, {
17
- message?: string | undefined;
18
- }, 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]>;
19
17
  //#endregion
20
18
  export { erpnextAddTag };
21
19
  //# sourceMappingURL=add-tag.d.cts.map
@@ -7,15 +7,13 @@ declare const ErpnextAddTagInput: z.ZodObject<{
7
7
  tag: z.ZodString;
8
8
  }, z.core.$strip>;
9
9
  declare const ErpnextAddTagOutput: z.ZodObject<{
10
- message: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
10
+ message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
11
  }, z.core.$strip>;
12
12
  declare const erpnextAddTag: import("@keystrokehq/action").WorkflowActionDefinition<{
13
13
  dn: string;
14
14
  dt: string;
15
15
  tag: string;
16
- }, {
17
- message?: string | undefined;
18
- }, 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]>;
19
17
  //#endregion
20
18
  export { erpnextAddTag };
21
19
  //# sourceMappingURL=add-tag.d.mts.map
@@ -9,7 +9,7 @@ const erpnextAddTag = action("ERPNEXT_ADD_TAG", {
9
9
  dt: z.string().describe("Target DocType (document type) to which the tag will be added. Examples include 'ToDo', 'Sales Invoice', 'Customer', etc."),
10
10
  tag: z.string().describe("Tag to add to the document. Can be any string value.")
11
11
  }).describe("Request model for adding a tag to a document in ERPNext."),
12
- output: z.object({ message: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Response message from the API indicating success or failure details.").optional()) }).describe("Response model returned after adding a tag to a document.")
12
+ output: z.object({ message: z.string().describe("Response message from the API indicating success or failure details.").nullable().optional() }).describe("Response model returned after adding a tag to a document.")
13
13
  });
14
14
  //#endregion
15
15
  export { erpnextAddTag };
@@ -1 +1 @@
1
- {"version":3,"file":"add-tag.mjs","names":[],"sources":["../../src/actions/add-tag.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextAddTagInput = z.object({\n dn: z.string().describe(\"Target document name (unique identifier) of the document to tag. This is the specific document instance within the DocType.\"),\n dt: z.string().describe(\"Target DocType (document type) to which the tag will be added. Examples include 'ToDo', 'Sales Invoice', 'Customer', etc.\"),\n tag: z.string().describe(\"Tag to add to the document. Can be any string value.\"),\n}).describe(\"Request model for adding a tag to a document in ERPNext.\");\nexport const ErpnextAddTagOutput = z.object({\n message: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Response message from the API indicating success or failure details.\").optional()),\n}).describe(\"Response model returned after adding a tag to a document.\");\n\nexport const erpnextAddTag = action(\"ERPNEXT_ADD_TAG\", {\n slug: \"erpnext-add-tag\",\n name: \"Add Tag\",\n description: \"Tool to add a tag to a document in ERPNext. Use when you need to categorize or label documents for organization and filtering purposes.\",\n input: ErpnextAddTagInput,\n output: ErpnextAddTagOutput,\n});\n"],"mappings":";;AAaA,MAAa,gBAAgB,OAAO,mBAAmB;CACrD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAbgC,EAAE,OAAO;EACzC,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,6HAA6H;EACrJ,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,2HAA2H;EACnJ,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;CACjF,CAAC,CAAC,CAAC,SAAS,0DASH;CACP,QATiC,EAAE,OAAO,EAC1C,SAAS,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS,CAAC,EAC/K,CAAC,CAAC,CAAC,SAAS,2DAOF;AACV,CAAC"}
1
+ {"version":3,"file":"add-tag.mjs","names":[],"sources":["../../src/actions/add-tag.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextAddTagInput = z.object({\n dn: z.string().describe(\"Target document name (unique identifier) of the document to tag. This is the specific document instance within the DocType.\"),\n dt: z.string().describe(\"Target DocType (document type) to which the tag will be added. Examples include 'ToDo', 'Sales Invoice', 'Customer', etc.\"),\n tag: z.string().describe(\"Tag to add to the document. Can be any string value.\"),\n}).describe(\"Request model for adding a tag to a document in ERPNext.\");\nexport const ErpnextAddTagOutput = z.object({\n message: z.string().describe(\"Response message from the API indicating success or failure details.\").nullable().optional(),\n}).describe(\"Response model returned after adding a tag to a document.\");\n\nexport const erpnextAddTag = action(\"ERPNEXT_ADD_TAG\", {\n slug: \"erpnext-add-tag\",\n name: \"Add Tag\",\n description: \"Tool to add a tag to a document in ERPNext. Use when you need to categorize or label documents for organization and filtering purposes.\",\n input: ErpnextAddTagInput,\n output: ErpnextAddTagOutput,\n});\n"],"mappings":";;AAaA,MAAa,gBAAgB,OAAO,mBAAmB;CACrD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAbgC,EAAE,OAAO;EACzC,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,6HAA6H;EACrJ,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,2HAA2H;EACnJ,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;CACjF,CAAC,CAAC,CAAC,SAAS,0DASH;CACP,QATiC,EAAE,OAAO,EAC1C,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC3H,CAAC,CAAC,CAAC,SAAS,2DAOF;AACV,CAAC"}
@@ -6,13 +6,13 @@ const ErpnextApplyWorkflowInput = zod.z.object({
6
6
  action: zod.z.string().describe("Workflow action name to apply (e.g., 'Approve', 'Reject', 'Submit'). Must be a valid action defined in the document's workflow.")
7
7
  }).describe("Request model for applying a workflow action to a document.");
8
8
  const ErpnextApplyWorkflowOutput = zod.z.object({
9
- exc: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Exception or error message if the operation failed").optional()),
10
- docs: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("List of documents affected by the workflow action").optional()),
11
- message: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.union([
9
+ exc: zod.z.string().describe("Exception or error message if the operation failed").nullable().optional(),
10
+ docs: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("List of documents affected by the workflow action").nullable().optional(),
11
+ message: zod.z.union([
12
12
  zod.z.string(),
13
13
  zod.z.record(zod.z.string(), zod.z.unknown()),
14
14
  zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown()))
15
- ]).optional())
15
+ ]).nullable().optional()
16
16
  }).describe("Response model returned after applying a workflow action.");
17
17
  const erpnextApplyWorkflow = require_action.action("ERPNEXT_APPLY_WORKFLOW", {
18
18
  slug: "erpnext-apply-workflow",
@@ -1 +1 @@
1
- {"version":3,"file":"apply-workflow.cjs","names":["z","action"],"sources":["../../src/actions/apply-workflow.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextApplyWorkflowInput = z.object({\n doc: z.record(z.string(), z.unknown()).describe(\"Document object to apply the workflow action to. Must include required fields like 'name', 'doctype', and other document-specific fields.\"),\n action: z.string().describe(\"Workflow action name to apply (e.g., 'Approve', 'Reject', 'Submit'). Must be a valid action defined in the document's workflow.\"),\n}).describe(\"Request model for applying a workflow action to a document.\");\nexport const ErpnextApplyWorkflowOutput = z.object({\n exc: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Exception or error message if the operation failed\").optional()),\n docs: z.preprocess((value) => (value === null ? undefined : value), z.array(z.record(z.string(), z.unknown())).describe(\"List of documents affected by the workflow action\").optional()),\n message: z.preprocess((value) => (value === null ? undefined : value), z.union([z.string(), z.record(z.string(), z.unknown()), z.array(z.record(z.string(), z.unknown()))]).optional()),\n}).describe(\"Response model returned after applying a workflow action.\");\n\nexport const erpnextApplyWorkflow = action(\"ERPNEXT_APPLY_WORKFLOW\", {\n slug: \"erpnext-apply-workflow\",\n name: \"Apply Workflow\",\n description: \"Tool to apply a workflow action to a document in ERPNext/Frappe. Use when you need to transition a document through workflow states (e.g., approve, reject, submit). The document must have a workflow configured for its doctype.\",\n input: ErpnextApplyWorkflowInput,\n output: ErpnextApplyWorkflowOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,KAAKA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2IAA2I;CAC3L,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iIAAiI;AAC/J,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,KAAKA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC;CACvJ,MAAMA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC;CACvL,SAASA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,MAAM;EAACA,IAAAA,EAAE,OAAO;EAAGA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC;EAAGA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC;CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;AACxL,CAAC,CAAC,CAAC,SAAS,2DAA2D;AAEvE,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"apply-workflow.cjs","names":["z","action"],"sources":["../../src/actions/apply-workflow.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextApplyWorkflowInput = z.object({\n doc: z.record(z.string(), z.unknown()).describe(\"Document object to apply the workflow action to. Must include required fields like 'name', 'doctype', and other document-specific fields.\"),\n action: z.string().describe(\"Workflow action name to apply (e.g., 'Approve', 'Reject', 'Submit'). Must be a valid action defined in the document's workflow.\"),\n}).describe(\"Request model for applying a workflow action to a document.\");\nexport const ErpnextApplyWorkflowOutput = z.object({\n exc: z.string().describe(\"Exception or error message if the operation failed\").nullable().optional(),\n docs: z.array(z.record(z.string(), z.unknown())).describe(\"List of documents affected by the workflow action\").nullable().optional(),\n message: z.union([z.string(), z.record(z.string(), z.unknown()), z.array(z.record(z.string(), z.unknown()))]).nullable().optional(),\n}).describe(\"Response model returned after applying a workflow action.\");\n\nexport const erpnextApplyWorkflow = action(\"ERPNEXT_APPLY_WORKFLOW\", {\n slug: \"erpnext-apply-workflow\",\n name: \"Apply Workflow\",\n description: \"Tool to apply a workflow action to a document in ERPNext/Frappe. Use when you need to transition a document through workflow states (e.g., approve, reject, submit). The document must have a workflow configured for its doctype.\",\n input: ErpnextApplyWorkflowInput,\n output: ErpnextApplyWorkflowOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,KAAKA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2IAA2I;CAC3L,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iIAAiI;AAC/J,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnI,SAASA,IAAAA,EAAE,MAAM;EAACA,IAAAA,EAAE,OAAO;EAAGA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC;EAAGA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC;CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpI,CAAC,CAAC,CAAC,SAAS,2DAA2D;AAEvE,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -6,18 +6,14 @@ declare const ErpnextApplyWorkflowInput: z.ZodObject<{
6
6
  action: z.ZodString;
7
7
  }, z.core.$strip>;
8
8
  declare const ErpnextApplyWorkflowOutput: z.ZodObject<{
9
- exc: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
10
- docs: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
11
- message: z.ZodPreprocess<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>]>>>;
9
+ exc: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
+ docs: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
11
+ message: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>]>>>;
12
12
  }, z.core.$strip>;
13
13
  declare const erpnextApplyWorkflow: import("@keystrokehq/action").WorkflowActionDefinition<{
14
14
  doc: Record<string, unknown>;
15
15
  action: string;
16
- }, {
17
- exc?: string | undefined;
18
- docs?: Record<string, unknown>[] | undefined;
19
- message?: string | Record<string, unknown> | Record<string, unknown>[] | undefined;
20
- }, 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]>;
21
17
  //#endregion
22
18
  export { erpnextApplyWorkflow };
23
19
  //# sourceMappingURL=apply-workflow.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"apply-workflow.d.cts","names":[],"sources":["../../src/actions/apply-workflow.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;cAIzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;cAM1B,oBAAA,gCAAoB,wBAAA"}
1
+ {"version":3,"file":"apply-workflow.d.cts","names":[],"sources":["../../src/actions/apply-workflow.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;cAIzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;cAM1B,oBAAA,gCAAoB,wBAAA;OAM/B,MAAA"}
@@ -6,18 +6,14 @@ declare const ErpnextApplyWorkflowInput: z.ZodObject<{
6
6
  action: z.ZodString;
7
7
  }, z.core.$strip>;
8
8
  declare const ErpnextApplyWorkflowOutput: z.ZodObject<{
9
- exc: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
10
- docs: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
11
- message: z.ZodPreprocess<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>]>>>;
9
+ exc: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
+ docs: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
11
+ message: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>]>>>;
12
12
  }, z.core.$strip>;
13
13
  declare const erpnextApplyWorkflow: import("@keystrokehq/action").WorkflowActionDefinition<{
14
14
  doc: Record<string, unknown>;
15
15
  action: string;
16
- }, {
17
- exc?: string | undefined;
18
- docs?: Record<string, unknown>[] | undefined;
19
- message?: string | Record<string, unknown> | Record<string, unknown>[] | undefined;
20
- }, 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]>;
21
17
  //#endregion
22
18
  export { erpnextApplyWorkflow };
23
19
  //# sourceMappingURL=apply-workflow.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"apply-workflow.d.mts","names":[],"sources":["../../src/actions/apply-workflow.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;cAIzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;cAM1B,oBAAA,gCAAoB,wBAAA"}
1
+ {"version":3,"file":"apply-workflow.d.mts","names":[],"sources":["../../src/actions/apply-workflow.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;cAIzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;cAM1B,oBAAA,gCAAoB,wBAAA;OAM/B,MAAA"}
@@ -9,13 +9,13 @@ const erpnextApplyWorkflow = action("ERPNEXT_APPLY_WORKFLOW", {
9
9
  action: z.string().describe("Workflow action name to apply (e.g., 'Approve', 'Reject', 'Submit'). Must be a valid action defined in the document's workflow.")
10
10
  }).describe("Request model for applying a workflow action to a document."),
11
11
  output: z.object({
12
- exc: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Exception or error message if the operation failed").optional()),
13
- docs: z.preprocess((value) => value === null ? void 0 : value, z.array(z.record(z.string(), z.unknown())).describe("List of documents affected by the workflow action").optional()),
14
- message: z.preprocess((value) => value === null ? void 0 : value, z.union([
12
+ exc: z.string().describe("Exception or error message if the operation failed").nullable().optional(),
13
+ docs: z.array(z.record(z.string(), z.unknown())).describe("List of documents affected by the workflow action").nullable().optional(),
14
+ message: z.union([
15
15
  z.string(),
16
16
  z.record(z.string(), z.unknown()),
17
17
  z.array(z.record(z.string(), z.unknown()))
18
- ]).optional())
18
+ ]).nullable().optional()
19
19
  }).describe("Response model returned after applying a workflow action.")
20
20
  });
21
21
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"apply-workflow.mjs","names":[],"sources":["../../src/actions/apply-workflow.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextApplyWorkflowInput = z.object({\n doc: z.record(z.string(), z.unknown()).describe(\"Document object to apply the workflow action to. Must include required fields like 'name', 'doctype', and other document-specific fields.\"),\n action: z.string().describe(\"Workflow action name to apply (e.g., 'Approve', 'Reject', 'Submit'). Must be a valid action defined in the document's workflow.\"),\n}).describe(\"Request model for applying a workflow action to a document.\");\nexport const ErpnextApplyWorkflowOutput = z.object({\n exc: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Exception or error message if the operation failed\").optional()),\n docs: z.preprocess((value) => (value === null ? undefined : value), z.array(z.record(z.string(), z.unknown())).describe(\"List of documents affected by the workflow action\").optional()),\n message: z.preprocess((value) => (value === null ? undefined : value), z.union([z.string(), z.record(z.string(), z.unknown()), z.array(z.record(z.string(), z.unknown()))]).optional()),\n}).describe(\"Response model returned after applying a workflow action.\");\n\nexport const erpnextApplyWorkflow = action(\"ERPNEXT_APPLY_WORKFLOW\", {\n slug: \"erpnext-apply-workflow\",\n name: \"Apply Workflow\",\n description: \"Tool to apply a workflow action to a document in ERPNext/Frappe. Use when you need to transition a document through workflow states (e.g., approve, reject, submit). The document must have a workflow configured for its doctype.\",\n input: ErpnextApplyWorkflowInput,\n output: ErpnextApplyWorkflowOutput,\n});\n"],"mappings":";;AAcA,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAduC,EAAE,OAAO;EAChD,KAAK,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2IAA2I;EAC3L,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,iIAAiI;CAC/J,CAAC,CAAC,CAAC,SAAS,6DAWH;CACP,QAXwC,EAAE,OAAO;EACjD,KAAK,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC;EACvJ,MAAM,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC;EACvL,SAAS,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,MAAM;GAAC,EAAE,OAAO;GAAG,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC;GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC;EAAC,CAAC,CAAC,CAAC,SAAS,CAAC;CACxL,CAAC,CAAC,CAAC,SAAS,2DAOF;AACV,CAAC"}
1
+ {"version":3,"file":"apply-workflow.mjs","names":[],"sources":["../../src/actions/apply-workflow.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextApplyWorkflowInput = z.object({\n doc: z.record(z.string(), z.unknown()).describe(\"Document object to apply the workflow action to. Must include required fields like 'name', 'doctype', and other document-specific fields.\"),\n action: z.string().describe(\"Workflow action name to apply (e.g., 'Approve', 'Reject', 'Submit'). Must be a valid action defined in the document's workflow.\"),\n}).describe(\"Request model for applying a workflow action to a document.\");\nexport const ErpnextApplyWorkflowOutput = z.object({\n exc: z.string().describe(\"Exception or error message if the operation failed\").nullable().optional(),\n docs: z.array(z.record(z.string(), z.unknown())).describe(\"List of documents affected by the workflow action\").nullable().optional(),\n message: z.union([z.string(), z.record(z.string(), z.unknown()), z.array(z.record(z.string(), z.unknown()))]).nullable().optional(),\n}).describe(\"Response model returned after applying a workflow action.\");\n\nexport const erpnextApplyWorkflow = action(\"ERPNEXT_APPLY_WORKFLOW\", {\n slug: \"erpnext-apply-workflow\",\n name: \"Apply Workflow\",\n description: \"Tool to apply a workflow action to a document in ERPNext/Frappe. Use when you need to transition a document through workflow states (e.g., approve, reject, submit). The document must have a workflow configured for its doctype.\",\n input: ErpnextApplyWorkflowInput,\n output: ErpnextApplyWorkflowOutput,\n});\n"],"mappings":";;AAcA,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAduC,EAAE,OAAO;EAChD,KAAK,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2IAA2I;EAC3L,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,iIAAiI;CAC/J,CAAC,CAAC,CAAC,SAAS,6DAWH;CACP,QAXwC,EAAE,OAAO;EACjD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnG,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnI,SAAS,EAAE,MAAM;GAAC,EAAE,OAAO;GAAG,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC;GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC;EAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpI,CAAC,CAAC,CAAC,SAAS,2DAOF;AACV,CAAC"}
@@ -6,8 +6,8 @@ const ErpnextCancelDocumentInput = zod.z.object({
6
6
  doctype: zod.z.string().describe("The DocType of the document to cancel. Only submittable DocTypes can be canceled. Examples: 'Journal Entry', 'Sales Invoice', 'Purchase Order', 'Delivery Note', 'Payment Entry', 'Stock Entry'. The document must be in Submitted state (docstatus=1).")
7
7
  }).describe("Request parameters for canceling a submitted document in ERPNext/Frappe.");
8
8
  const ErpnextCancelDocumentOutput = zod.z.object({
9
- docs: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.array(zod.z.object({})).describe("Additional document data if returned by the API.").optional()),
10
- message: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.object({}).describe("Canceled document object returned by the API. Contains document metadata including the updated docstatus field (2=Cancelled) and other core fields like name, doctype, modified timestamp, etc.").optional())
9
+ docs: zod.z.array(zod.z.object({})).describe("Additional document data if returned by the API.").nullable().optional(),
10
+ message: zod.z.object({}).describe("Canceled document object returned by the API. Contains document metadata including the updated docstatus field (2=Cancelled) and other core fields like name, doctype, modified timestamp, etc.").nullable().optional()
11
11
  }).describe("Response from canceling a document in ERPNext/Frappe.");
12
12
  const erpnextCancelDocument = require_action.action("ERPNEXT_CANCEL_DOCUMENT", {
13
13
  slug: "erpnext-cancel-document",
@@ -1 +1 @@
1
- {"version":3,"file":"cancel-document.cjs","names":["z","action"],"sources":["../../src/actions/cancel-document.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextCancelDocumentInput = z.object({\n name: z.string().describe(\"The unique name/ID of the submitted document to cancel. This is the document's primary identifier within ERPNext. The document must exist and be in Submitted state.\"),\n doctype: z.string().describe(\"The DocType of the document to cancel. Only submittable DocTypes can be canceled. Examples: 'Journal Entry', 'Sales Invoice', 'Purchase Order', 'Delivery Note', 'Payment Entry', 'Stock Entry'. The document must be in Submitted state (docstatus=1).\"),\n}).describe(\"Request parameters for canceling a submitted document in ERPNext/Frappe.\");\nexport const ErpnextCancelDocumentOutput = z.object({\n docs: z.preprocess((value) => (value === null ? undefined : value), z.array(z.object({})).describe(\"Additional document data if returned by the API.\").optional()),\n message: z.preprocess((value) => (value === null ? undefined : value), z.object({}).describe(\"Canceled document object returned by the API. Contains document metadata including the updated docstatus field (2=Cancelled) and other core fields like name, doctype, modified timestamp, etc.\").optional()),\n}).describe(\"Response from canceling a document in ERPNext/Frappe.\");\n\nexport const erpnextCancelDocument = action(\"ERPNEXT_CANCEL_DOCUMENT\", {\n slug: \"erpnext-cancel-document\",\n name: \"Cancel Document\",\n description: \"Cancel a submitted document in ERPNext/Frappe to change its status from Submitted to Cancelled. Use for submittable DocTypes when you need to reverse or cancel a submitted transaction. Document must be in Submitted state (docstatus=1) before cancellation.\",\n input: ErpnextCancelDocumentInput,\n output: ErpnextCancelDocumentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sKAAsK;CAChM,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yPAAyP;AACxR,CAAC,CAAC,CAAC,SAAS,0EAA0E;AACtF,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC;CACjK,SAASA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,iMAAiM,CAAC,CAAC,SAAS,CAAC;AAC5S,CAAC,CAAC,CAAC,SAAS,uDAAuD;AAEnE,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"cancel-document.cjs","names":["z","action"],"sources":["../../src/actions/cancel-document.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextCancelDocumentInput = z.object({\n name: z.string().describe(\"The unique name/ID of the submitted document to cancel. This is the document's primary identifier within ERPNext. The document must exist and be in Submitted state.\"),\n doctype: z.string().describe(\"The DocType of the document to cancel. Only submittable DocTypes can be canceled. Examples: 'Journal Entry', 'Sales Invoice', 'Purchase Order', 'Delivery Note', 'Payment Entry', 'Stock Entry'. The document must be in Submitted state (docstatus=1).\"),\n}).describe(\"Request parameters for canceling a submitted document in ERPNext/Frappe.\");\nexport const ErpnextCancelDocumentOutput = z.object({\n docs: z.array(z.object({})).describe(\"Additional document data if returned by the API.\").nullable().optional(),\n message: z.object({}).describe(\"Canceled document object returned by the API. Contains document metadata including the updated docstatus field (2=Cancelled) and other core fields like name, doctype, modified timestamp, etc.\").nullable().optional(),\n}).describe(\"Response from canceling a document in ERPNext/Frappe.\");\n\nexport const erpnextCancelDocument = action(\"ERPNEXT_CANCEL_DOCUMENT\", {\n slug: \"erpnext-cancel-document\",\n name: \"Cancel Document\",\n description: \"Cancel a submitted document in ERPNext/Frappe to change its status from Submitted to Cancelled. Use for submittable DocTypes when you need to reverse or cancel a submitted transaction. Document must be in Submitted state (docstatus=1) before cancellation.\",\n input: ErpnextCancelDocumentInput,\n output: ErpnextCancelDocumentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sKAAsK;CAChM,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yPAAyP;AACxR,CAAC,CAAC,CAAC,SAAS,0EAA0E;AACtF,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,iMAAiM,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxP,CAAC,CAAC,CAAC,SAAS,uDAAuD;AAEnE,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -6,16 +6,13 @@ declare const ErpnextCancelDocumentInput: z.ZodObject<{
6
6
  doctype: z.ZodString;
7
7
  }, z.core.$strip>;
8
8
  declare const ErpnextCancelDocumentOutput: z.ZodObject<{
9
- docs: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodObject<{}, z.core.$strip>>>>;
10
- message: z.ZodPreprocess<z.ZodOptional<z.ZodObject<{}, z.core.$strip>>>;
9
+ docs: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{}, z.core.$strip>>>>;
10
+ message: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
11
11
  }, z.core.$strip>;
12
12
  declare const erpnextCancelDocument: import("@keystrokehq/action").WorkflowActionDefinition<{
13
13
  name: string;
14
14
  doctype: string;
15
- }, {
16
- docs?: Record<string, never>[] | undefined;
17
- message?: Record<string, never> | undefined;
18
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
15
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
19
16
  //#endregion
20
17
  export { erpnextCancelDocument };
21
18
  //# sourceMappingURL=cancel-document.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"cancel-document.d.cts","names":[],"sources":["../../src/actions/cancel-document.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;cAI1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;cAK3B,qBAAA,gCAAqB,wBAAA;;;;SAMhC,MAAA;YAAA,MAAA;AAAA"}
1
+ {"version":3,"file":"cancel-document.d.cts","names":[],"sources":["../../src/actions/cancel-document.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;cAI1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;cAK3B,qBAAA,gCAAqB,wBAAA"}
@@ -6,16 +6,13 @@ declare const ErpnextCancelDocumentInput: z.ZodObject<{
6
6
  doctype: z.ZodString;
7
7
  }, z.core.$strip>;
8
8
  declare const ErpnextCancelDocumentOutput: z.ZodObject<{
9
- docs: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodObject<{}, z.core.$strip>>>>;
10
- message: z.ZodPreprocess<z.ZodOptional<z.ZodObject<{}, z.core.$strip>>>;
9
+ docs: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{}, z.core.$strip>>>>;
10
+ message: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
11
11
  }, z.core.$strip>;
12
12
  declare const erpnextCancelDocument: import("@keystrokehq/action").WorkflowActionDefinition<{
13
13
  name: string;
14
14
  doctype: string;
15
- }, {
16
- docs?: Record<string, never>[] | undefined;
17
- message?: Record<string, never> | undefined;
18
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
15
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
19
16
  //#endregion
20
17
  export { erpnextCancelDocument };
21
18
  //# sourceMappingURL=cancel-document.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"cancel-document.d.mts","names":[],"sources":["../../src/actions/cancel-document.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;cAI1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;cAK3B,qBAAA,gCAAqB,wBAAA;;;;SAMhC,MAAA;YAAA,MAAA;AAAA"}
1
+ {"version":3,"file":"cancel-document.d.mts","names":[],"sources":["../../src/actions/cancel-document.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;cAI1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;cAK3B,qBAAA,gCAAqB,wBAAA"}
@@ -9,8 +9,8 @@ const erpnextCancelDocument = action("ERPNEXT_CANCEL_DOCUMENT", {
9
9
  doctype: z.string().describe("The DocType of the document to cancel. Only submittable DocTypes can be canceled. Examples: 'Journal Entry', 'Sales Invoice', 'Purchase Order', 'Delivery Note', 'Payment Entry', 'Stock Entry'. The document must be in Submitted state (docstatus=1).")
10
10
  }).describe("Request parameters for canceling a submitted document in ERPNext/Frappe."),
11
11
  output: z.object({
12
- docs: z.preprocess((value) => value === null ? void 0 : value, z.array(z.object({})).describe("Additional document data if returned by the API.").optional()),
13
- message: z.preprocess((value) => value === null ? void 0 : value, z.object({}).describe("Canceled document object returned by the API. Contains document metadata including the updated docstatus field (2=Cancelled) and other core fields like name, doctype, modified timestamp, etc.").optional())
12
+ docs: z.array(z.object({})).describe("Additional document data if returned by the API.").nullable().optional(),
13
+ message: z.object({}).describe("Canceled document object returned by the API. Contains document metadata including the updated docstatus field (2=Cancelled) and other core fields like name, doctype, modified timestamp, etc.").nullable().optional()
14
14
  }).describe("Response from canceling a document in ERPNext/Frappe.")
15
15
  });
16
16
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"cancel-document.mjs","names":[],"sources":["../../src/actions/cancel-document.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextCancelDocumentInput = z.object({\n name: z.string().describe(\"The unique name/ID of the submitted document to cancel. This is the document's primary identifier within ERPNext. The document must exist and be in Submitted state.\"),\n doctype: z.string().describe(\"The DocType of the document to cancel. Only submittable DocTypes can be canceled. Examples: 'Journal Entry', 'Sales Invoice', 'Purchase Order', 'Delivery Note', 'Payment Entry', 'Stock Entry'. The document must be in Submitted state (docstatus=1).\"),\n}).describe(\"Request parameters for canceling a submitted document in ERPNext/Frappe.\");\nexport const ErpnextCancelDocumentOutput = z.object({\n docs: z.preprocess((value) => (value === null ? undefined : value), z.array(z.object({})).describe(\"Additional document data if returned by the API.\").optional()),\n message: z.preprocess((value) => (value === null ? undefined : value), z.object({}).describe(\"Canceled document object returned by the API. Contains document metadata including the updated docstatus field (2=Cancelled) and other core fields like name, doctype, modified timestamp, etc.\").optional()),\n}).describe(\"Response from canceling a document in ERPNext/Frappe.\");\n\nexport const erpnextCancelDocument = action(\"ERPNEXT_CANCEL_DOCUMENT\", {\n slug: \"erpnext-cancel-document\",\n name: \"Cancel Document\",\n description: \"Cancel a submitted document in ERPNext/Frappe to change its status from Submitted to Cancelled. Use for submittable DocTypes when you need to reverse or cancel a submitted transaction. Document must be in Submitted state (docstatus=1) before cancellation.\",\n input: ErpnextCancelDocumentInput,\n output: ErpnextCancelDocumentOutput,\n});\n"],"mappings":";;AAaA,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAbwC,EAAE,OAAO;EACjD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sKAAsK;EAChM,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yPAAyP;CACxR,CAAC,CAAC,CAAC,SAAS,0EAUH;CACP,QAVyC,EAAE,OAAO;EAClD,MAAM,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC;EACjK,SAAS,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,iMAAiM,CAAC,CAAC,SAAS,CAAC;CAC5S,CAAC,CAAC,CAAC,SAAS,uDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"cancel-document.mjs","names":[],"sources":["../../src/actions/cancel-document.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextCancelDocumentInput = z.object({\n name: z.string().describe(\"The unique name/ID of the submitted document to cancel. This is the document's primary identifier within ERPNext. The document must exist and be in Submitted state.\"),\n doctype: z.string().describe(\"The DocType of the document to cancel. Only submittable DocTypes can be canceled. Examples: 'Journal Entry', 'Sales Invoice', 'Purchase Order', 'Delivery Note', 'Payment Entry', 'Stock Entry'. The document must be in Submitted state (docstatus=1).\"),\n}).describe(\"Request parameters for canceling a submitted document in ERPNext/Frappe.\");\nexport const ErpnextCancelDocumentOutput = z.object({\n docs: z.array(z.object({})).describe(\"Additional document data if returned by the API.\").nullable().optional(),\n message: z.object({}).describe(\"Canceled document object returned by the API. Contains document metadata including the updated docstatus field (2=Cancelled) and other core fields like name, doctype, modified timestamp, etc.\").nullable().optional(),\n}).describe(\"Response from canceling a document in ERPNext/Frappe.\");\n\nexport const erpnextCancelDocument = action(\"ERPNEXT_CANCEL_DOCUMENT\", {\n slug: \"erpnext-cancel-document\",\n name: \"Cancel Document\",\n description: \"Cancel a submitted document in ERPNext/Frappe to change its status from Submitted to Cancelled. Use for submittable DocTypes when you need to reverse or cancel a submitted transaction. Document must be in Submitted state (docstatus=1) before cancellation.\",\n input: ErpnextCancelDocumentInput,\n output: ErpnextCancelDocumentOutput,\n});\n"],"mappings":";;AAaA,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAbwC,EAAE,OAAO;EACjD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sKAAsK;EAChM,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yPAAyP;CACxR,CAAC,CAAC,CAAC,SAAS,0EAUH;CACP,QAVyC,EAAE,OAAO;EAClD,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7G,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,iMAAiM,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxP,CAAC,CAAC,CAAC,SAAS,uDAOF;AACV,CAAC"}
@@ -6,13 +6,13 @@ const ErpnextCreateDocumentInput = zod.z.object({
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
17
  const ErpnextCreateDocumentOutput = zod.z.object({ data: ErpnextCreateDocument_DocumentDataSchema.nullable() }).describe("Response containing the created document.");
18
18
  const erpnextCreateDocument = require_action.action("ERPNEXT_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.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.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}).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,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,SAAS,2CAA2C;AAEvD,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}