@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
@@ -7,30 +7,19 @@ declare const ErpnextCreateDocumentInput: z.ZodObject<{
7
7
  }, z.core.$strip>;
8
8
  declare const ErpnextCreateDocumentOutput: z.ZodObject<{
9
9
  data: z.ZodNullable<z.ZodObject<{
10
- name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
11
- owner: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
12
- doctype: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
13
- creation: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
14
- modified: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
15
- docstatus: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
16
- modified_by: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
10
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
+ owner: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
+ doctype: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ creation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ modified: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ docstatus: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
16
+ modified_by: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
17
  }, z.core.$loose>>;
18
18
  }, z.core.$strip>;
19
19
  declare const erpnextCreateDocument: import("@keystrokehq/action").WorkflowActionDefinition<{
20
20
  data: Record<string, never>;
21
21
  doctype: string;
22
- }, {
23
- data: {
24
- [x: string]: unknown;
25
- name?: string | undefined;
26
- owner?: string | undefined;
27
- doctype?: string | undefined;
28
- creation?: string | undefined;
29
- modified?: string | undefined;
30
- docstatus?: number | undefined;
31
- modified_by?: string | undefined;
32
- } | null;
33
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
22
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
34
23
  //#endregion
35
24
  export { erpnextCreateDocument };
36
25
  //# sourceMappingURL=create-document.d.cts.map
@@ -7,30 +7,19 @@ declare const ErpnextCreateDocumentInput: z.ZodObject<{
7
7
  }, z.core.$strip>;
8
8
  declare const ErpnextCreateDocumentOutput: z.ZodObject<{
9
9
  data: z.ZodNullable<z.ZodObject<{
10
- name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
11
- owner: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
12
- doctype: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
13
- creation: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
14
- modified: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
15
- docstatus: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
16
- modified_by: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
10
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
+ owner: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
+ doctype: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ creation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ modified: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ docstatus: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
16
+ modified_by: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
17
  }, z.core.$loose>>;
18
18
  }, z.core.$strip>;
19
19
  declare const erpnextCreateDocument: import("@keystrokehq/action").WorkflowActionDefinition<{
20
20
  data: Record<string, never>;
21
21
  doctype: string;
22
- }, {
23
- data: {
24
- [x: string]: unknown;
25
- name?: string | undefined;
26
- owner?: string | undefined;
27
- doctype?: string | undefined;
28
- creation?: string | undefined;
29
- modified?: string | undefined;
30
- docstatus?: number | undefined;
31
- modified_by?: string | undefined;
32
- } | null;
33
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
22
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
34
23
  //#endregion
35
24
  export { erpnextCreateDocument };
36
25
  //# sourceMappingURL=create-document.d.mts.map
@@ -6,13 +6,13 @@ const ErpnextCreateDocumentInput = z.object({
6
6
  doctype: z.string().describe("The DocType you'd like to create. For example: Customer, Supplier, Employee, Account, Lead, Company, Sales Invoice, Purchase Invoice, Stock Entry, ToDo, etc. This must be a valid DocType name in your ERPNext instance.")
7
7
  }).describe("Request to create a new document in ERPNext.");
8
8
  const ErpnextCreateDocument_DocumentDataSchema = z.object({
9
- name: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Unique identifier/name of the created document.").optional()),
10
- owner: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("User who created the document.").optional()),
11
- doctype: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("The DocType of the created document.").optional()),
12
- creation: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Timestamp when the document was created.").optional()),
13
- modified: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Timestamp when the document was last modified.").optional()),
14
- docstatus: z.preprocess((value) => value === null ? void 0 : value, z.number().int().describe("Document status: 0 = Draft, 1 = Submitted, 2 = Cancelled.").optional()),
15
- modified_by: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("User who last modified the document.").optional())
9
+ name: z.string().describe("Unique identifier/name of the created document.").nullable().optional(),
10
+ owner: z.string().describe("User who created the document.").nullable().optional(),
11
+ doctype: z.string().describe("The DocType of the created document.").nullable().optional(),
12
+ creation: z.string().describe("Timestamp when the document was created.").nullable().optional(),
13
+ modified: z.string().describe("Timestamp when the document was last modified.").nullable().optional(),
14
+ docstatus: z.number().int().describe("Document status: 0 = Draft, 1 = Submitted, 2 = Cancelled.").nullable().optional(),
15
+ modified_by: z.string().describe("User who last modified the document.").nullable().optional()
16
16
  }).passthrough().describe("The created document data returned by ERPNext with standard fields.");
17
17
  const erpnextCreateDocument = action("ERPNEXT_CREATE_DOCUMENT", {
18
18
  slug: "erpnext-create-document",
@@ -1 +1 @@
1
- {"version":3,"file":"create-document.mjs","names":[],"sources":["../../src/actions/create-document.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextCreateDocumentInput = z.object({\n data: z.object({}).describe(\"Document data as a dictionary of field names and values. The required fields depend on the specific DocType. Common fields include: name, description, title, status, etc. Refer to ERPNext documentation for specific DocType field requirements.\"),\n doctype: z.string().describe(\"The DocType you'd like to create. For example: Customer, Supplier, Employee, Account, Lead, Company, Sales Invoice, Purchase Invoice, Stock Entry, ToDo, etc. This must be a valid DocType name in your ERPNext instance.\"),\n}).describe(\"Request to create a new document in ERPNext.\");\nconst ErpnextCreateDocument_DocumentDataSchema = z.object({\n name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Unique identifier/name of the created document.\").optional()),\n owner: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"User who created the document.\").optional()),\n doctype: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"The DocType of the created document.\").optional()),\n creation: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Timestamp when the document was created.\").optional()),\n modified: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Timestamp when the document was last modified.\").optional()),\n docstatus: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Document status: 0 = Draft, 1 = Submitted, 2 = Cancelled.\").optional()),\n modified_by: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"User who last modified the document.\").optional()),\n}).passthrough().describe(\"The created document data returned by ERPNext with standard fields.\");\nexport const ErpnextCreateDocumentOutput = z.object({\n data: ErpnextCreateDocument_DocumentDataSchema.nullable(),\n}).describe(\"Response containing the created document.\");\n\nexport const erpnextCreateDocument = action(\"ERPNEXT_CREATE_DOCUMENT\", {\n slug: \"erpnext-create-document\",\n name: \"Create Document\",\n description: \"Tool to create a new document of a specific DocType in ERPNext. Use when you need to create records like ToDo, Customer, Lead, Sales Invoice, etc. The document data should include all required fields for the specific DocType. Standard fields like creation, modified, and owner are automatically set by ERPNext.\",\n input: ErpnextCreateDocumentInput,\n output: ErpnextCreateDocumentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6B,EAAE,OAAO;CACjD,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,oPAAoP;CAChR,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,2NAA2N;AAC1P,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAM,2CAA2C,EAAE,OAAO;CACxD,MAAM,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC;CACrJ,OAAO,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC;CACrI,SAAS,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC;CAC7I,UAAU,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC;CAClJ,UAAU,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC;CACxJ,WAAW,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC;CAC1K,aAAa,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC;AACnJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qEAAqE;AAK/F,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATyC,EAAE,OAAO,EAClD,MAAM,yCAAyC,SAAS,EAC1D,CAAC,CAAC,CAAC,SAAS,2CAOF;AACV,CAAC"}
1
+ {"version":3,"file":"create-document.mjs","names":[],"sources":["../../src/actions/create-document.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextCreateDocumentInput = z.object({\n data: z.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,6BAA6B,EAAE,OAAO;CACjD,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,oPAAoP;CAChR,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,2NAA2N;AAC1P,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAM,2CAA2C,EAAE,OAAO;CACxD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qEAAqE;AAK/F,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATyC,EAAE,OAAO,EAClD,MAAM,yCAAyC,SAAS,EAC1D,CAAC,CAAC,CAAC,SAAS,2CAOF;AACV,CAAC"}
@@ -33,17 +33,7 @@ declare const erpnextCreateTimesheet: import("@keystrokehq/action").WorkflowActi
33
33
  }[];
34
34
  note?: string | undefined;
35
35
  employee?: string | undefined;
36
- }, {
37
- data: {
38
- name: string | null;
39
- owner: string | null;
40
- doctype: string | null;
41
- creation: string | null;
42
- modified: string | null;
43
- docstatus: number | null;
44
- modified_by: string | null;
45
- } | null;
46
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
36
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
47
37
  //#endregion
48
38
  export { erpnextCreateTimesheet };
49
39
  //# sourceMappingURL=create-timesheet.d.cts.map
@@ -33,17 +33,7 @@ declare const erpnextCreateTimesheet: import("@keystrokehq/action").WorkflowActi
33
33
  }[];
34
34
  note?: string | undefined;
35
35
  employee?: string | undefined;
36
- }, {
37
- data: {
38
- name: string | null;
39
- owner: string | null;
40
- doctype: string | null;
41
- creation: string | null;
42
- modified: string | null;
43
- docstatus: number | null;
44
- modified_by: string | null;
45
- } | null;
46
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
36
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
47
37
  //#endregion
48
38
  export { erpnextCreateTimesheet };
49
39
  //# sourceMappingURL=create-timesheet.d.mts.map
@@ -11,9 +11,7 @@ declare const ErpnextDeleteDocumentOutput: z.ZodObject<{
11
11
  declare const erpnextDeleteDocument: import("@keystrokehq/action").WorkflowActionDefinition<{
12
12
  doctype: string;
13
13
  document_name: string;
14
- }, {
15
- message: string | null;
16
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
14
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
17
15
  //#endregion
18
16
  export { erpnextDeleteDocument };
19
17
  //# sourceMappingURL=delete-document.d.cts.map
@@ -11,9 +11,7 @@ declare const ErpnextDeleteDocumentOutput: z.ZodObject<{
11
11
  declare const erpnextDeleteDocument: import("@keystrokehq/action").WorkflowActionDefinition<{
12
12
  doctype: string;
13
13
  document_name: string;
14
- }, {
15
- message: string | null;
16
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
14
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
17
15
  //#endregion
18
16
  export { erpnextDeleteDocument };
19
17
  //# sourceMappingURL=delete-document.d.mts.map
@@ -13,13 +13,7 @@ declare const ErpnextDownloadFileOutput: z.ZodObject<{
13
13
  }, z.core.$strip>;
14
14
  declare const erpnextDownloadFile: import("@keystrokehq/action").WorkflowActionDefinition<{
15
15
  file_url: string;
16
- }, {
17
- file: {
18
- name: string | null;
19
- s3url: string | null;
20
- mimetype: string | null;
21
- } | null;
22
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
16
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
23
17
  //#endregion
24
18
  export { erpnextDownloadFile };
25
19
  //# sourceMappingURL=download-file.d.cts.map
@@ -13,13 +13,7 @@ declare const ErpnextDownloadFileOutput: z.ZodObject<{
13
13
  }, z.core.$strip>;
14
14
  declare const erpnextDownloadFile: import("@keystrokehq/action").WorkflowActionDefinition<{
15
15
  file_url: string;
16
- }, {
17
- file: {
18
- name: string | null;
19
- s3url: string | null;
20
- mimetype: string | null;
21
- } | null;
22
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
16
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
23
17
  //#endregion
24
18
  export { erpnextDownloadFile };
25
19
  //# sourceMappingURL=download-file.d.mts.map
@@ -19,13 +19,7 @@ declare const erpnextDownloadPdf: import("@keystrokehq/action").WorkflowActionDe
19
19
  doctype: string;
20
20
  format?: string | undefined;
21
21
  no_letterhead?: number | undefined;
22
- }, {
23
- content: {
24
- name: string | null;
25
- s3url: string | null;
26
- mimetype: string | null;
27
- } | null;
28
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
22
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
29
23
  //#endregion
30
24
  export { erpnextDownloadPdf };
31
25
  //# sourceMappingURL=download-pdf.d.cts.map
@@ -19,13 +19,7 @@ declare const erpnextDownloadPdf: import("@keystrokehq/action").WorkflowActionDe
19
19
  doctype: string;
20
20
  format?: string | undefined;
21
21
  no_letterhead?: number | undefined;
22
- }, {
23
- content: {
24
- name: string | null;
25
- s3url: string | null;
26
- mimetype: string | null;
27
- } | null;
28
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
22
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
29
23
  //#endregion
30
24
  export { erpnextDownloadPdf };
31
25
  //# sourceMappingURL=download-pdf.d.mts.map
@@ -3,8 +3,8 @@ let zod = require("zod");
3
3
  //#region src/actions/get-all-languages.ts
4
4
  const ErpnextGetAllLanguagesInput = zod.z.object({ with_language_name: zod.z.boolean().describe("Include language names along with language codes. When false or omitted, returns only an array of language codes (e.g., ['en', 'es']). When true, returns an array of objects with both language_code and language_name fields (e.g., [{'language_code': 'en', 'language_name': 'English'}]).").optional() }).describe("Request model for getting all available languages.");
5
5
  const ErpnextGetAllLanguages_LanguageInfoSchema = zod.z.object({
6
- language_code: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("ISO language code (e.g., 'en', 'es', 'fr').").optional()),
7
- language_name: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Human-readable language name (e.g., 'English', 'Spanish', 'French').").optional())
6
+ language_code: zod.z.string().describe("ISO language code (e.g., 'en', 'es', 'fr').").nullable().optional(),
7
+ language_name: zod.z.string().describe("Human-readable language name (e.g., 'English', 'Spanish', 'French').").nullable().optional()
8
8
  }).describe("Language information with code and name.");
9
9
  const ErpnextGetAllLanguagesOutput = zod.z.object({ message: zod.z.union([zod.z.array(zod.z.string()), zod.z.array(ErpnextGetAllLanguages_LanguageInfoSchema)]) }).describe("Response model containing all available languages.");
10
10
  const erpnextGetAllLanguages = require_action.action("ERPNEXT_GET_ALL_LANGUAGES", {
@@ -1 +1 @@
1
- {"version":3,"file":"get-all-languages.cjs","names":["z","action"],"sources":["../../src/actions/get-all-languages.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetAllLanguagesInput = z.object({\n with_language_name: z.boolean().describe(\"Include language names along with language codes. When false or omitted, returns only an array of language codes (e.g., ['en', 'es']). When true, returns an array of objects with both language_code and language_name fields (e.g., [{'language_code': 'en', 'language_name': 'English'}]).\").optional(),\n}).describe(\"Request model for getting all available languages.\");\nconst ErpnextGetAllLanguages_LanguageInfoSchema = z.object({\n language_code: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"ISO language code (e.g., 'en', 'es', 'fr').\").optional()),\n language_name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Human-readable language name (e.g., 'English', 'Spanish', 'French').\").optional()),\n}).describe(\"Language information with code and name.\");\nexport const ErpnextGetAllLanguagesOutput = z.object({\n message: z.union([z.array(z.string()), z.array(ErpnextGetAllLanguages_LanguageInfoSchema)]),\n}).describe(\"Response model containing all available languages.\");\n\nexport const erpnextGetAllLanguages = action(\"ERPNEXT_GET_ALL_LANGUAGES\", {\n slug: \"erpnext-get-all-languages\",\n name: \"Get All Languages\",\n description: \"Tool to get a list of all available languages in the ERPNext/Frappe system. Use when you need to retrieve supported languages for translation or localization purposes.\",\n input: ErpnextGetAllLanguagesInput,\n output: ErpnextGetAllLanguagesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,oBAAoBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,+RAA+R,CAAC,CAAC,SAAS,EACrV,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAChE,MAAM,4CAA4CA,IAAAA,EAAE,OAAO;CACzD,eAAeA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC;CAC1J,eAAeA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS,CAAC;AACrL,CAAC,CAAC,CAAC,SAAS,0CAA0C;AACtD,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,SAASA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,GAAGA,IAAAA,EAAE,MAAM,yCAAyC,CAAC,CAAC,EAC5F,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAEhE,MAAa,yBAAyBC,eAAAA,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-all-languages.cjs","names":["z","action"],"sources":["../../src/actions/get-all-languages.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetAllLanguagesInput = z.object({\n with_language_name: z.boolean().describe(\"Include language names along with language codes. When false or omitted, returns only an array of language codes (e.g., ['en', 'es']). When true, returns an array of objects with both language_code and language_name fields (e.g., [{'language_code': 'en', 'language_name': 'English'}]).\").optional(),\n}).describe(\"Request model for getting all available languages.\");\nconst ErpnextGetAllLanguages_LanguageInfoSchema = z.object({\n language_code: z.string().describe(\"ISO language code (e.g., 'en', 'es', 'fr').\").nullable().optional(),\n language_name: z.string().describe(\"Human-readable language name (e.g., 'English', 'Spanish', 'French').\").nullable().optional(),\n}).describe(\"Language information with code and name.\");\nexport const ErpnextGetAllLanguagesOutput = z.object({\n message: z.union([z.array(z.string()), z.array(ErpnextGetAllLanguages_LanguageInfoSchema)]),\n}).describe(\"Response model containing all available languages.\");\n\nexport const erpnextGetAllLanguages = action(\"ERPNEXT_GET_ALL_LANGUAGES\", {\n slug: \"erpnext-get-all-languages\",\n name: \"Get All Languages\",\n description: \"Tool to get a list of all available languages in the ERPNext/Frappe system. Use when you need to retrieve supported languages for translation or localization purposes.\",\n input: ErpnextGetAllLanguagesInput,\n output: ErpnextGetAllLanguagesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,oBAAoBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,+RAA+R,CAAC,CAAC,SAAS,EACrV,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAChE,MAAM,4CAA4CA,IAAAA,EAAE,OAAO;CACzD,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjI,CAAC,CAAC,CAAC,SAAS,0CAA0C;AACtD,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,SAASA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,GAAGA,IAAAA,EAAE,MAAM,yCAAyC,CAAC,CAAC,EAC5F,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAEhE,MAAa,yBAAyBC,eAAAA,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -6,18 +6,13 @@ declare const ErpnextGetAllLanguagesInput: z.ZodObject<{
6
6
  }, z.core.$strip>;
7
7
  declare const ErpnextGetAllLanguagesOutput: z.ZodObject<{
8
8
  message: z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodArray<z.ZodObject<{
9
- language_code: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
10
- language_name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
9
+ language_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
+ language_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
11
  }, z.core.$strip>>]>;
12
12
  }, z.core.$strip>;
13
13
  declare const erpnextGetAllLanguages: import("@keystrokehq/action").WorkflowActionDefinition<{
14
14
  with_language_name?: boolean | undefined;
15
- }, {
16
- message: string[] | {
17
- language_code?: string | undefined;
18
- language_name?: string | undefined;
19
- }[];
20
- }, 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]>;
21
16
  //#endregion
22
17
  export { erpnextGetAllLanguages };
23
18
  //# sourceMappingURL=get-all-languages.d.cts.map
@@ -6,18 +6,13 @@ declare const ErpnextGetAllLanguagesInput: z.ZodObject<{
6
6
  }, z.core.$strip>;
7
7
  declare const ErpnextGetAllLanguagesOutput: z.ZodObject<{
8
8
  message: z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodArray<z.ZodObject<{
9
- language_code: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
10
- language_name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
9
+ language_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
+ language_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
11
  }, z.core.$strip>>]>;
12
12
  }, z.core.$strip>;
13
13
  declare const erpnextGetAllLanguages: import("@keystrokehq/action").WorkflowActionDefinition<{
14
14
  with_language_name?: boolean | undefined;
15
- }, {
16
- message: string[] | {
17
- language_code?: string | undefined;
18
- language_name?: string | undefined;
19
- }[];
20
- }, 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]>;
21
16
  //#endregion
22
17
  export { erpnextGetAllLanguages };
23
18
  //# sourceMappingURL=get-all-languages.d.mts.map
@@ -3,8 +3,8 @@ import { z } from "zod";
3
3
  //#region src/actions/get-all-languages.ts
4
4
  const ErpnextGetAllLanguagesInput = z.object({ with_language_name: z.boolean().describe("Include language names along with language codes. When false or omitted, returns only an array of language codes (e.g., ['en', 'es']). When true, returns an array of objects with both language_code and language_name fields (e.g., [{'language_code': 'en', 'language_name': 'English'}]).").optional() }).describe("Request model for getting all available languages.");
5
5
  const ErpnextGetAllLanguages_LanguageInfoSchema = z.object({
6
- language_code: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("ISO language code (e.g., 'en', 'es', 'fr').").optional()),
7
- language_name: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Human-readable language name (e.g., 'English', 'Spanish', 'French').").optional())
6
+ language_code: z.string().describe("ISO language code (e.g., 'en', 'es', 'fr').").nullable().optional(),
7
+ language_name: z.string().describe("Human-readable language name (e.g., 'English', 'Spanish', 'French').").nullable().optional()
8
8
  }).describe("Language information with code and name.");
9
9
  const erpnextGetAllLanguages = action("ERPNEXT_GET_ALL_LANGUAGES", {
10
10
  slug: "erpnext-get-all-languages",
@@ -1 +1 @@
1
- {"version":3,"file":"get-all-languages.mjs","names":[],"sources":["../../src/actions/get-all-languages.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetAllLanguagesInput = z.object({\n with_language_name: z.boolean().describe(\"Include language names along with language codes. When false or omitted, returns only an array of language codes (e.g., ['en', 'es']). When true, returns an array of objects with both language_code and language_name fields (e.g., [{'language_code': 'en', 'language_name': 'English'}]).\").optional(),\n}).describe(\"Request model for getting all available languages.\");\nconst ErpnextGetAllLanguages_LanguageInfoSchema = z.object({\n language_code: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"ISO language code (e.g., 'en', 'es', 'fr').\").optional()),\n language_name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Human-readable language name (e.g., 'English', 'Spanish', 'French').\").optional()),\n}).describe(\"Language information with code and name.\");\nexport const ErpnextGetAllLanguagesOutput = z.object({\n message: z.union([z.array(z.string()), z.array(ErpnextGetAllLanguages_LanguageInfoSchema)]),\n}).describe(\"Response model containing all available languages.\");\n\nexport const erpnextGetAllLanguages = action(\"ERPNEXT_GET_ALL_LANGUAGES\", {\n slug: \"erpnext-get-all-languages\",\n name: \"Get All Languages\",\n description: \"Tool to get a list of all available languages in the ERPNext/Frappe system. Use when you need to retrieve supported languages for translation or localization purposes.\",\n input: ErpnextGetAllLanguagesInput,\n output: ErpnextGetAllLanguagesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8B,EAAE,OAAO,EAClD,oBAAoB,EAAE,QAAQ,CAAC,CAAC,SAAS,+RAA+R,CAAC,CAAC,SAAS,EACrV,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAChE,MAAM,4CAA4C,EAAE,OAAO;CACzD,eAAe,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC;CAC1J,eAAe,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS,CAAC;AACrL,CAAC,CAAC,CAAC,SAAS,0CAA0C;AAKtD,MAAa,yBAAyB,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT0C,EAAE,OAAO,EACnD,SAAS,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,GAAG,EAAE,MAAM,yCAAyC,CAAC,CAAC,EAC5F,CAAC,CAAC,CAAC,SAAS,oDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"get-all-languages.mjs","names":[],"sources":["../../src/actions/get-all-languages.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetAllLanguagesInput = z.object({\n with_language_name: z.boolean().describe(\"Include language names along with language codes. When false or omitted, returns only an array of language codes (e.g., ['en', 'es']). When true, returns an array of objects with both language_code and language_name fields (e.g., [{'language_code': 'en', 'language_name': 'English'}]).\").optional(),\n}).describe(\"Request model for getting all available languages.\");\nconst ErpnextGetAllLanguages_LanguageInfoSchema = z.object({\n language_code: z.string().describe(\"ISO language code (e.g., 'en', 'es', 'fr').\").nullable().optional(),\n language_name: z.string().describe(\"Human-readable language name (e.g., 'English', 'Spanish', 'French').\").nullable().optional(),\n}).describe(\"Language information with code and name.\");\nexport const ErpnextGetAllLanguagesOutput = z.object({\n message: z.union([z.array(z.string()), z.array(ErpnextGetAllLanguages_LanguageInfoSchema)]),\n}).describe(\"Response model containing all available languages.\");\n\nexport const erpnextGetAllLanguages = action(\"ERPNEXT_GET_ALL_LANGUAGES\", {\n slug: \"erpnext-get-all-languages\",\n name: \"Get All Languages\",\n description: \"Tool to get a list of all available languages in the ERPNext/Frappe system. Use when you need to retrieve supported languages for translation or localization purposes.\",\n input: ErpnextGetAllLanguagesInput,\n output: ErpnextGetAllLanguagesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8B,EAAE,OAAO,EAClD,oBAAoB,EAAE,QAAQ,CAAC,CAAC,SAAS,+RAA+R,CAAC,CAAC,SAAS,EACrV,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAChE,MAAM,4CAA4C,EAAE,OAAO;CACzD,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjI,CAAC,CAAC,CAAC,SAAS,0CAA0C;AAKtD,MAAa,yBAAyB,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT0C,EAAE,OAAO,EACnD,SAAS,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,GAAG,EAAE,MAAM,yCAAyC,CAAC,CAAC,EAC5F,CAAC,CAAC,CAAC,SAAS,oDAOF;AACV,CAAC"}
@@ -5,9 +5,7 @@ declare const ErpnextGetAllRolesInput: z.ZodObject<{}, z.core.$strip>;
5
5
  declare const ErpnextGetAllRolesOutput: z.ZodObject<{
6
6
  message: z.ZodArray<z.ZodString>;
7
7
  }, z.core.$strip>;
8
- declare const erpnextGetAllRoles: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, {
9
- message: string[];
10
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
8
+ declare const erpnextGetAllRoles: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
11
9
  //#endregion
12
10
  export { erpnextGetAllRoles };
13
11
  //# sourceMappingURL=get-all-roles.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-all-roles.d.cts","names":[],"sources":["../../src/actions/get-all-roles.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cACvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;cAIxB,kBAAA,gCAAkB,wBAAA,CAAA,MAAA"}
1
+ {"version":3,"file":"get-all-roles.d.cts","names":[],"sources":["../../src/actions/get-all-roles.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cACvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;cAIxB,kBAAA,gCAAkB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -5,9 +5,7 @@ declare const ErpnextGetAllRolesInput: z.ZodObject<{}, z.core.$strip>;
5
5
  declare const ErpnextGetAllRolesOutput: z.ZodObject<{
6
6
  message: z.ZodArray<z.ZodString>;
7
7
  }, z.core.$strip>;
8
- declare const erpnextGetAllRoles: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, {
9
- message: string[];
10
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
8
+ declare const erpnextGetAllRoles: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
11
9
  //#endregion
12
10
  export { erpnextGetAllRoles };
13
11
  //# sourceMappingURL=get-all-roles.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-all-roles.d.mts","names":[],"sources":["../../src/actions/get-all-roles.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cACvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;cAIxB,kBAAA,gCAAkB,wBAAA,CAAA,MAAA"}
1
+ {"version":3,"file":"get-all-roles.d.mts","names":[],"sources":["../../src/actions/get-all-roles.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cACvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;cAIxB,kBAAA,gCAAkB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -7,14 +7,14 @@ const ErpnextGetClientInput = zod.z.object({
7
7
  filters: zod.z.object({}).describe("Filter conditions to find the document when name is not provided. Should be a dictionary of field-value pairs. Example: {'email': 'user@example.com'}").optional()
8
8
  }).describe("Request model for getting a single document by DocType and name or filters.");
9
9
  const ErpnextGetClient_DocumentDataSchema = zod.z.object({
10
- idx: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().int().describe("Index number").optional()),
10
+ idx: zod.z.number().int().describe("Index number").nullable().optional(),
11
11
  name: zod.z.string().describe("Unique identifier of the document").nullable(),
12
- owner: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("User who created the document").optional()),
13
- doctype: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Type of the document").optional()),
14
- creation: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Document creation timestamp").optional()),
15
- modified: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Last modification timestamp").optional()),
16
- docstatus: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().int().describe("Document status (0=Draft, 1=Submitted, 2=Cancelled)").optional()),
17
- modified_by: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("User who last modified the document").optional())
12
+ owner: zod.z.string().describe("User who created the document").nullable().optional(),
13
+ doctype: zod.z.string().describe("Type of the document").nullable().optional(),
14
+ creation: zod.z.string().describe("Document creation timestamp").nullable().optional(),
15
+ modified: zod.z.string().describe("Last modification timestamp").nullable().optional(),
16
+ docstatus: zod.z.number().int().describe("Document status (0=Draft, 1=Submitted, 2=Cancelled)").nullable().optional(),
17
+ modified_by: zod.z.string().describe("User who last modified the document").nullable().optional()
18
18
  }).passthrough().describe("Document object with metadata and doctype-specific fields.");
19
19
  const ErpnextGetClientOutput = zod.z.object({ message: ErpnextGetClient_DocumentDataSchema.nullable() }).describe("Response model containing the retrieved document data.");
20
20
  const erpnextGetClient = require_action.action("ERPNEXT_GET_CLIENT", {
@@ -1 +1 @@
1
- {"version":3,"file":"get-client.cjs","names":["z","action"],"sources":["../../src/actions/get-client.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetClientInput = z.object({\n name: z.string().describe(\"The unique name/identifier of the specific document to retrieve. If provided, this takes precedence over filters.\").optional(),\n doctype: z.string().describe(\"The DocType to query (e.g., 'User', 'Customer', 'Item'). DocTypes are the document types defined in your Frappe/ERPNext instance.\"),\n filters: z.object({}).describe(\"Filter conditions to find the document when name is not provided. Should be a dictionary of field-value pairs. Example: {'email': 'user@example.com'}\").optional(),\n}).describe(\"Request model for getting a single document by DocType and name or filters.\");\nconst ErpnextGetClient_DocumentDataSchema = z.object({\n idx: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Index number\").optional()),\n name: z.string().describe(\"Unique identifier of the document\").nullable(),\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(\"Type of the document\").optional()),\n creation: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Document creation timestamp\").optional()),\n modified: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Last modification timestamp\").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(\"Document object with metadata and doctype-specific fields.\");\nexport const ErpnextGetClientOutput = z.object({\n message: ErpnextGetClient_DocumentDataSchema.nullable(),\n}).describe(\"Response model containing the retrieved document data.\");\n\nexport const erpnextGetClient = action(\"ERPNEXT_GET_CLIENT\", {\n slug: \"erpnext-get-client\",\n name: \"Get Document\",\n description: \"Tool to get a single document by DocType and name or filters from Frappe/ERPNext. Use when you need to retrieve a specific document's complete details.\",\n input: ErpnextGetClientInput,\n output: ErpnextGetClientOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAwBA,IAAAA,EAAE,OAAO;CAC5C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mHAAmH,CAAC,CAAC,SAAS;CACxJ,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mIAAmI;CAChK,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,uJAAuJ,CAAC,CAAC,SAAS;AACnM,CAAC,CAAC,CAAC,SAAS,6EAA6E;AACzF,MAAM,sCAAsCA,IAAAA,EAAE,OAAO;CACnD,KAAKA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS,CAAC;CACvH,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACxE,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,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC;CAC7H,UAAUA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC;CACrI,UAAUA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC;CACrI,WAAWA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC;CACpK,aAAaA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC;AAClJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4DAA4D;AACtF,MAAa,yBAAyBA,IAAAA,EAAE,OAAO,EAC7C,SAAS,oCAAoC,SAAS,EACxD,CAAC,CAAC,CAAC,SAAS,wDAAwD;AAEpE,MAAa,mBAAmBC,eAAAA,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-client.cjs","names":["z","action"],"sources":["../../src/actions/get-client.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetClientInput = z.object({\n name: z.string().describe(\"The unique name/identifier of the specific document to retrieve. If provided, this takes precedence over filters.\").optional(),\n doctype: z.string().describe(\"The DocType to query (e.g., 'User', 'Customer', 'Item'). DocTypes are the document types defined in your Frappe/ERPNext instance.\"),\n filters: z.object({}).describe(\"Filter conditions to find the document when name is not provided. Should be a dictionary of field-value pairs. Example: {'email': 'user@example.com'}\").optional(),\n}).describe(\"Request model for getting a single document by DocType and name or filters.\");\nconst ErpnextGetClient_DocumentDataSchema = z.object({\n idx: z.number().int().describe(\"Index number\").nullable().optional(),\n name: z.string().describe(\"Unique identifier of the document\").nullable(),\n owner: z.string().describe(\"User who created the document\").nullable().optional(),\n doctype: z.string().describe(\"Type of the document\").nullable().optional(),\n creation: z.string().describe(\"Document creation timestamp\").nullable().optional(),\n modified: z.string().describe(\"Last modification timestamp\").nullable().optional(),\n docstatus: z.number().int().describe(\"Document status (0=Draft, 1=Submitted, 2=Cancelled)\").nullable().optional(),\n modified_by: z.string().describe(\"User who last modified the document\").nullable().optional(),\n}).passthrough().describe(\"Document object with metadata and doctype-specific fields.\");\nexport const ErpnextGetClientOutput = z.object({\n message: ErpnextGetClient_DocumentDataSchema.nullable(),\n}).describe(\"Response model containing the retrieved document data.\");\n\nexport const erpnextGetClient = action(\"ERPNEXT_GET_CLIENT\", {\n slug: \"erpnext-get-client\",\n name: \"Get Document\",\n description: \"Tool to get a single document by DocType and name or filters from Frappe/ERPNext. Use when you need to retrieve a specific document's complete details.\",\n input: ErpnextGetClientInput,\n output: ErpnextGetClientOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAwBA,IAAAA,EAAE,OAAO;CAC5C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mHAAmH,CAAC,CAAC,SAAS;CACxJ,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mIAAmI;CAChK,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,uJAAuJ,CAAC,CAAC,SAAS;AACnM,CAAC,CAAC,CAAC,SAAS,6EAA6E;AACzF,MAAM,sCAAsCA,IAAAA,EAAE,OAAO;CACnD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACxE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4DAA4D;AACtF,MAAa,yBAAyBA,IAAAA,EAAE,OAAO,EAC7C,SAAS,oCAAoC,SAAS,EACxD,CAAC,CAAC,CAAC,SAAS,wDAAwD;AAEpE,MAAa,mBAAmBC,eAAAA,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -8,33 +8,21 @@ declare const ErpnextGetClientInput: z.ZodObject<{
8
8
  }, z.core.$strip>;
9
9
  declare const ErpnextGetClientOutput: z.ZodObject<{
10
10
  message: z.ZodNullable<z.ZodObject<{
11
- idx: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
11
+ idx: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
12
12
  name: z.ZodNullable<z.ZodString>;
13
- owner: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
14
- doctype: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
15
- creation: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
16
- modified: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
17
- docstatus: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
18
- modified_by: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
13
+ owner: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ doctype: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ creation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ modified: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ docstatus: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
18
+ modified_by: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
19
  }, z.core.$loose>>;
20
20
  }, z.core.$strip>;
21
21
  declare const erpnextGetClient: import("@keystrokehq/action").WorkflowActionDefinition<{
22
22
  doctype: string;
23
23
  name?: string | undefined;
24
24
  filters?: Record<string, never> | undefined;
25
- }, {
26
- message: {
27
- [x: string]: unknown;
28
- name: string | null;
29
- idx?: number | undefined;
30
- owner?: string | undefined;
31
- doctype?: string | undefined;
32
- creation?: string | undefined;
33
- modified?: string | undefined;
34
- docstatus?: number | undefined;
35
- modified_by?: string | undefined;
36
- } | null;
37
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
25
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
38
26
  //#endregion
39
27
  export { erpnextGetClient };
40
28
  //# sourceMappingURL=get-client.d.cts.map
@@ -8,33 +8,21 @@ declare const ErpnextGetClientInput: z.ZodObject<{
8
8
  }, z.core.$strip>;
9
9
  declare const ErpnextGetClientOutput: z.ZodObject<{
10
10
  message: z.ZodNullable<z.ZodObject<{
11
- idx: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
11
+ idx: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
12
12
  name: z.ZodNullable<z.ZodString>;
13
- owner: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
14
- doctype: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
15
- creation: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
16
- modified: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
17
- docstatus: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
18
- modified_by: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
13
+ owner: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ doctype: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ creation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ modified: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ docstatus: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
18
+ modified_by: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
19
  }, z.core.$loose>>;
20
20
  }, z.core.$strip>;
21
21
  declare const erpnextGetClient: import("@keystrokehq/action").WorkflowActionDefinition<{
22
22
  doctype: string;
23
23
  name?: string | undefined;
24
24
  filters?: Record<string, never> | undefined;
25
- }, {
26
- message: {
27
- [x: string]: unknown;
28
- name: string | null;
29
- idx?: number | undefined;
30
- owner?: string | undefined;
31
- doctype?: string | undefined;
32
- creation?: string | undefined;
33
- modified?: string | undefined;
34
- docstatus?: number | undefined;
35
- modified_by?: string | undefined;
36
- } | null;
37
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
25
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
38
26
  //#endregion
39
27
  export { erpnextGetClient };
40
28
  //# sourceMappingURL=get-client.d.mts.map
@@ -7,14 +7,14 @@ const ErpnextGetClientInput = z.object({
7
7
  filters: z.object({}).describe("Filter conditions to find the document when name is not provided. Should be a dictionary of field-value pairs. Example: {'email': 'user@example.com'}").optional()
8
8
  }).describe("Request model for getting a single document by DocType and name or filters.");
9
9
  const ErpnextGetClient_DocumentDataSchema = z.object({
10
- idx: z.preprocess((value) => value === null ? void 0 : value, z.number().int().describe("Index number").optional()),
10
+ idx: z.number().int().describe("Index number").nullable().optional(),
11
11
  name: z.string().describe("Unique identifier of the document").nullable(),
12
- owner: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("User who created the document").optional()),
13
- doctype: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Type of the document").optional()),
14
- creation: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Document creation timestamp").optional()),
15
- modified: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Last modification timestamp").optional()),
16
- docstatus: z.preprocess((value) => value === null ? void 0 : value, z.number().int().describe("Document status (0=Draft, 1=Submitted, 2=Cancelled)").optional()),
17
- modified_by: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("User who last modified the document").optional())
12
+ owner: z.string().describe("User who created the document").nullable().optional(),
13
+ doctype: z.string().describe("Type of the document").nullable().optional(),
14
+ creation: z.string().describe("Document creation timestamp").nullable().optional(),
15
+ modified: z.string().describe("Last modification timestamp").nullable().optional(),
16
+ docstatus: z.number().int().describe("Document status (0=Draft, 1=Submitted, 2=Cancelled)").nullable().optional(),
17
+ modified_by: z.string().describe("User who last modified the document").nullable().optional()
18
18
  }).passthrough().describe("Document object with metadata and doctype-specific fields.");
19
19
  const erpnextGetClient = action("ERPNEXT_GET_CLIENT", {
20
20
  slug: "erpnext-get-client",
@@ -1 +1 @@
1
- {"version":3,"file":"get-client.mjs","names":[],"sources":["../../src/actions/get-client.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetClientInput = z.object({\n name: z.string().describe(\"The unique name/identifier of the specific document to retrieve. If provided, this takes precedence over filters.\").optional(),\n doctype: z.string().describe(\"The DocType to query (e.g., 'User', 'Customer', 'Item'). DocTypes are the document types defined in your Frappe/ERPNext instance.\"),\n filters: z.object({}).describe(\"Filter conditions to find the document when name is not provided. Should be a dictionary of field-value pairs. Example: {'email': 'user@example.com'}\").optional(),\n}).describe(\"Request model for getting a single document by DocType and name or filters.\");\nconst ErpnextGetClient_DocumentDataSchema = z.object({\n idx: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Index number\").optional()),\n name: z.string().describe(\"Unique identifier of the document\").nullable(),\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(\"Type of the document\").optional()),\n creation: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Document creation timestamp\").optional()),\n modified: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Last modification timestamp\").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(\"Document object with metadata and doctype-specific fields.\");\nexport const ErpnextGetClientOutput = z.object({\n message: ErpnextGetClient_DocumentDataSchema.nullable(),\n}).describe(\"Response model containing the retrieved document data.\");\n\nexport const erpnextGetClient = action(\"ERPNEXT_GET_CLIENT\", {\n slug: \"erpnext-get-client\",\n name: \"Get Document\",\n description: \"Tool to get a single document by DocType and name or filters from Frappe/ERPNext. Use when you need to retrieve a specific document's complete details.\",\n input: ErpnextGetClientInput,\n output: ErpnextGetClientOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAwB,EAAE,OAAO;CAC5C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mHAAmH,CAAC,CAAC,SAAS;CACxJ,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,mIAAmI;CAChK,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,uJAAuJ,CAAC,CAAC,SAAS;AACnM,CAAC,CAAC,CAAC,SAAS,6EAA6E;AACzF,MAAM,sCAAsC,EAAE,OAAO;CACnD,KAAK,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS,CAAC;CACvH,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACxE,OAAO,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC;CACpI,SAAS,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC;CAC7H,UAAU,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC;CACrI,UAAU,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC;CACrI,WAAW,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC;CACpK,aAAa,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC;AAClJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4DAA4D;AAKtF,MAAa,mBAAmB,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAToC,EAAE,OAAO,EAC7C,SAAS,oCAAoC,SAAS,EACxD,CAAC,CAAC,CAAC,SAAS,wDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"get-client.mjs","names":[],"sources":["../../src/actions/get-client.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetClientInput = z.object({\n name: z.string().describe(\"The unique name/identifier of the specific document to retrieve. If provided, this takes precedence over filters.\").optional(),\n doctype: z.string().describe(\"The DocType to query (e.g., 'User', 'Customer', 'Item'). DocTypes are the document types defined in your Frappe/ERPNext instance.\"),\n filters: z.object({}).describe(\"Filter conditions to find the document when name is not provided. Should be a dictionary of field-value pairs. Example: {'email': 'user@example.com'}\").optional(),\n}).describe(\"Request model for getting a single document by DocType and name or filters.\");\nconst ErpnextGetClient_DocumentDataSchema = z.object({\n idx: z.number().int().describe(\"Index number\").nullable().optional(),\n name: z.string().describe(\"Unique identifier of the document\").nullable(),\n owner: z.string().describe(\"User who created the document\").nullable().optional(),\n doctype: z.string().describe(\"Type of the document\").nullable().optional(),\n creation: z.string().describe(\"Document creation timestamp\").nullable().optional(),\n modified: z.string().describe(\"Last modification timestamp\").nullable().optional(),\n docstatus: z.number().int().describe(\"Document status (0=Draft, 1=Submitted, 2=Cancelled)\").nullable().optional(),\n modified_by: z.string().describe(\"User who last modified the document\").nullable().optional(),\n}).passthrough().describe(\"Document object with metadata and doctype-specific fields.\");\nexport const ErpnextGetClientOutput = z.object({\n message: ErpnextGetClient_DocumentDataSchema.nullable(),\n}).describe(\"Response model containing the retrieved document data.\");\n\nexport const erpnextGetClient = action(\"ERPNEXT_GET_CLIENT\", {\n slug: \"erpnext-get-client\",\n name: \"Get Document\",\n description: \"Tool to get a single document by DocType and name or filters from Frappe/ERPNext. Use when you need to retrieve a specific document's complete details.\",\n input: ErpnextGetClientInput,\n output: ErpnextGetClientOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAwB,EAAE,OAAO;CAC5C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mHAAmH,CAAC,CAAC,SAAS;CACxJ,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,mIAAmI;CAChK,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,uJAAuJ,CAAC,CAAC,SAAS;AACnM,CAAC,CAAC,CAAC,SAAS,6EAA6E;AACzF,MAAM,sCAAsC,EAAE,OAAO;CACnD,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACxE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4DAA4D;AAKtF,MAAa,mBAAmB,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAToC,EAAE,OAAO,EAC7C,SAAS,oCAAoC,SAAS,EACxD,CAAC,CAAC,CAAC,SAAS,wDAOF;AACV,CAAC"}
@@ -11,9 +11,7 @@ declare const ErpnextGetCountOutput: z.ZodObject<{
11
11
  declare const erpnextGetCount: import("@keystrokehq/action").WorkflowActionDefinition<{
12
12
  doctype: string;
13
13
  filters?: Record<string, never> | undefined;
14
- }, {
15
- message: number | null;
16
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
14
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
17
15
  //#endregion
18
16
  export { erpnextGetCount };
19
17
  //# sourceMappingURL=get-count.d.cts.map