@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
@@ -9,13 +9,13 @@ declare const ErpnextGetDocumentInput: z.ZodObject<{
9
9
  }, z.core.$strip>;
10
10
  declare const ErpnextGetDocumentOutput: z.ZodObject<{
11
11
  data: z.ZodNullable<z.ZodObject<{
12
- name: z.ZodPreprocess<z.ZodOptional<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>>;
12
+ name: z.ZodOptional<z.ZodNullable<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 erpnextGetDocument: import("@keystrokehq/action").WorkflowActionDefinition<{
@@ -23,18 +23,7 @@ declare const erpnextGetDocument: import("@keystrokehq/action").WorkflowActionDe
23
23
  doctype: string;
24
24
  fields?: string[] | undefined;
25
25
  filters?: (string | number | boolean)[][] | undefined;
26
- }, {
27
- data: {
28
- [x: string]: unknown;
29
- name?: string | 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]>;
26
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
38
27
  //#endregion
39
28
  export { erpnextGetDocument };
40
29
  //# sourceMappingURL=get-document.d.mts.map
@@ -13,13 +13,13 @@ const ErpnextGetDocumentInput = z.object({
13
13
  ]))).describe("You can filter the listing using sql conditions. Each condition is an array of the format, [doctype, field, operator, value]. For example, [[\"Customer\", \"country\", \"=\", \"India\"]]").optional()
14
14
  }).describe("Request model for retrieving a specific document by DocType and name.");
15
15
  const ErpnextGetDocument_DocumentDataSchema = z.object({
16
- name: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Document name (ID)").optional()),
17
- owner: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Owner of the document").optional()),
18
- doctype: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Document type").optional()),
19
- creation: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("ISO timestamp when document was created").optional()),
20
- modified: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("ISO timestamp when document was last modified").optional()),
21
- docstatus: z.preprocess((value) => value === null ? void 0 : value, z.number().int().describe("Document status (0=Draft, 1=Submitted, 2=Cancelled)").optional()),
22
- modified_by: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("User who last modified the document").optional())
16
+ name: z.string().describe("Document name (ID)").nullable().optional(),
17
+ owner: z.string().describe("Owner of the document").nullable().optional(),
18
+ doctype: z.string().describe("Document type").nullable().optional(),
19
+ creation: z.string().describe("ISO timestamp when document was created").nullable().optional(),
20
+ modified: z.string().describe("ISO timestamp when document was last modified").nullable().optional(),
21
+ docstatus: z.number().int().describe("Document status (0=Draft, 1=Submitted, 2=Cancelled)").nullable().optional(),
22
+ modified_by: z.string().describe("User who last modified the document").nullable().optional()
23
23
  }).passthrough().describe("Represents the document data returned by ERPNext API.");
24
24
  const erpnextGetDocument = action("ERPNEXT_GET_DOCUMENT", {
25
25
  slug: "erpnext-get-document",
@@ -1 +1 @@
1
- {"version":3,"file":"get-document.mjs","names":[],"sources":["../../src/actions/get-document.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetDocumentInput = z.object({\n name: z.string().describe(\"The name (ID) of the document you'd like to receive. For example EMP001 (of type Employee).\"),\n fields: z.array(z.string()).describe(\"By default, only the \\\"name\\\" field is included in the listing. To add more fields, you can pass the fields param. For example, [\\\"name\\\", \\\"country\\\"]\").optional(),\n doctype: z.string().describe(\"The DocType you'd like to receive. For example Customer, Supplier, Employee, Account, Lead, Company, Sales Invoice, Purchase Invoice, Stock Entry, etc.\"),\n filters: z.array(z.array(z.union([z.string(), z.number().int(), z.number(), z.boolean()]))).describe(\"You can filter the listing using sql conditions. Each condition is an array of the format, [doctype, field, operator, value]. For example, [[\\\"Customer\\\", \\\"country\\\", \\\"=\\\", \\\"India\\\"]]\").optional(),\n}).describe(\"Request model for retrieving a specific document by DocType and name.\");\nconst ErpnextGetDocument_DocumentDataSchema = z.object({\n name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Document name (ID)\").optional()),\n owner: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Owner of the document\").optional()),\n doctype: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Document type\").optional()),\n creation: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"ISO timestamp when document was created\").optional()),\n modified: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"ISO timestamp when 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(\"Represents the document data returned by ERPNext API.\");\nexport const ErpnextGetDocumentOutput = z.object({\n data: ErpnextGetDocument_DocumentDataSchema.nullable(),\n}).describe(\"Response model for retrieving a document from ERPNext.\");\n\nexport const erpnextGetDocument = action(\"ERPNEXT_GET_DOCUMENT\", {\n slug: \"erpnext-get-document\",\n name: \"Get Document\",\n description: \"Tool to retrieve a specific document by its DocType and name (ID). Returns the complete document with all fields. Use when you need to fetch details of a specific ERPNext document like Customer, Employee, Account, Sales Invoice, etc.\",\n input: ErpnextGetDocumentInput,\n output: ErpnextGetDocumentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0B,EAAE,OAAO;CAC9C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6FAA6F;CACvH,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC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AAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAAuD;AAKjF,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATsC,EAAE,OAAO,EAC/C,MAAM,sCAAsC,SAAS,EACvD,CAAC,CAAC,CAAC,SAAS,wDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"get-document.mjs","names":[],"sources":["../../src/actions/get-document.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetDocumentInput = z.object({\n name: z.string().describe(\"The name (ID) of the document you'd like to receive. For example EMP001 (of type Employee).\"),\n fields: z.array(z.string()).describe(\"By default, only the \\\"name\\\" field is included in the listing. To add more fields, you can pass the fields param. For example, [\\\"name\\\", \\\"country\\\"]\").optional(),\n doctype: z.string().describe(\"The DocType you'd like to receive. For example Customer, Supplier, Employee, Account, Lead, Company, Sales Invoice, Purchase Invoice, Stock Entry, etc.\"),\n filters: z.array(z.array(z.union([z.string(), z.number().int(), z.number(), z.boolean()]))).describe(\"You can filter the listing using sql conditions. Each condition is an array of the format, [doctype, field, operator, value]. For example, [[\\\"Customer\\\", \\\"country\\\", \\\"=\\\", \\\"India\\\"]]\").optional(),\n}).describe(\"Request model for retrieving a specific document by DocType and name.\");\nconst ErpnextGetDocument_DocumentDataSchema = z.object({\n name: z.string().describe(\"Document name (ID)\").nullable().optional(),\n owner: z.string().describe(\"Owner of the document\").nullable().optional(),\n doctype: z.string().describe(\"Document type\").nullable().optional(),\n creation: z.string().describe(\"ISO timestamp when document was created\").nullable().optional(),\n modified: z.string().describe(\"ISO timestamp when document was last modified\").nullable().optional(),\n docstatus: z.number().int().describe(\"Document status (0=Draft, 1=Submitted, 2=Cancelled)\").nullable().optional(),\n modified_by: z.string().describe(\"User who last modified the document\").nullable().optional(),\n}).passthrough().describe(\"Represents the document data returned by ERPNext API.\");\nexport const ErpnextGetDocumentOutput = z.object({\n data: ErpnextGetDocument_DocumentDataSchema.nullable(),\n}).describe(\"Response model for retrieving a document from ERPNext.\");\n\nexport const erpnextGetDocument = action(\"ERPNEXT_GET_DOCUMENT\", {\n slug: \"erpnext-get-document\",\n name: \"Get Document\",\n description: \"Tool to retrieve a specific document by its DocType and name (ID). Returns the complete document with all fields. Use when you need to fetch details of a specific ERPNext document like Customer, Employee, Account, Sales Invoice, etc.\",\n input: ErpnextGetDocumentInput,\n output: ErpnextGetDocumentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0B,EAAE,OAAO;CAC9C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6FAA6F;CACvH,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,yJAAyJ,CAAC,CAAC,SAAS;CACzM,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yJAAyJ;CACtL,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;EAAC,EAAE,OAAO;EAAG,EAAE,OAAO,CAAC,CAAC,IAAI;EAAG,EAAE,OAAO;EAAG,EAAE,QAAQ;CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,4LAA4L,CAAC,CAAC,SAAS;AAC9S,CAAC,CAAC,CAAC,SAAS,uEAAuE;AACnF,MAAM,wCAAwC,EAAE,OAAO;CACrD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAAuD;AAKjF,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATsC,EAAE,OAAO,EAC/C,MAAM,sCAAsC,SAAS,EACvD,CAAC,CAAC,CAAC,SAAS,wDAOF;AACV,CAAC"}
@@ -13,9 +13,7 @@ declare const erpnextGetExchangeRate: import("@keystrokehq/action").WorkflowActi
13
13
  to_currency: string;
14
14
  from_currency: string;
15
15
  transaction_date?: string | undefined;
16
- }, {
17
- message: number | null;
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 { erpnextGetExchangeRate };
21
19
  //# sourceMappingURL=get-exchange-rate.d.cts.map
@@ -13,9 +13,7 @@ declare const erpnextGetExchangeRate: import("@keystrokehq/action").WorkflowActi
13
13
  to_currency: string;
14
14
  from_currency: string;
15
15
  transaction_date?: string | undefined;
16
- }, {
17
- message: number | null;
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 { erpnextGetExchangeRate };
21
19
  //# sourceMappingURL=get-exchange-rate.d.mts.map
@@ -15,13 +15,7 @@ declare const ErpnextGetFiscalYearOutput: z.ZodObject<{
15
15
  declare const erpnextGetFiscalYear: import("@keystrokehq/action").WorkflowActionDefinition<{
16
16
  date?: string | undefined;
17
17
  company?: string | undefined;
18
- }, {
19
- message: string[] | {
20
- name: string | null;
21
- year_end_date: string | null;
22
- year_start_date: string | null;
23
- };
24
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
18
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
25
19
  //#endregion
26
20
  export { erpnextGetFiscalYear };
27
21
  //# sourceMappingURL=get-fiscal-year.d.cts.map
@@ -15,13 +15,7 @@ declare const ErpnextGetFiscalYearOutput: z.ZodObject<{
15
15
  declare const erpnextGetFiscalYear: import("@keystrokehq/action").WorkflowActionDefinition<{
16
16
  date?: string | undefined;
17
17
  company?: string | undefined;
18
- }, {
19
- message: string[] | {
20
- name: string | null;
21
- year_end_date: string | null;
22
- year_start_date: string | null;
23
- };
24
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
18
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
25
19
  //#endregion
26
20
  export { erpnextGetFiscalYear };
27
21
  //# sourceMappingURL=get-fiscal-year.d.mts.map
@@ -5,9 +5,7 @@ declare const ErpnextGetFrameworkVersionInput: z.ZodObject<{}, z.core.$strip>;
5
5
  declare const ErpnextGetFrameworkVersionOutput: z.ZodObject<{
6
6
  message: z.ZodObject<{}, z.core.$strip>;
7
7
  }, z.core.$strip>;
8
- declare const erpnextGetFrameworkVersion: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, {
9
- message: Record<string, never>;
10
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
8
+ declare const erpnextGetFrameworkVersion: 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 { erpnextGetFrameworkVersion };
13
11
  //# sourceMappingURL=get-framework-version.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-framework-version.d.cts","names":[],"sources":["../../src/actions/get-framework-version.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAC/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;cAIhC,0BAAA,gCAA0B,wBAAA,CAAA,MAAA;WAAA,MAAA;AAAA"}
1
+ {"version":3,"file":"get-framework-version.d.cts","names":[],"sources":["../../src/actions/get-framework-version.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAC/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;cAIhC,0BAAA,gCAA0B,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -5,9 +5,7 @@ declare const ErpnextGetFrameworkVersionInput: z.ZodObject<{}, z.core.$strip>;
5
5
  declare const ErpnextGetFrameworkVersionOutput: z.ZodObject<{
6
6
  message: z.ZodObject<{}, z.core.$strip>;
7
7
  }, z.core.$strip>;
8
- declare const erpnextGetFrameworkVersion: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, {
9
- message: Record<string, never>;
10
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
8
+ declare const erpnextGetFrameworkVersion: 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 { erpnextGetFrameworkVersion };
13
11
  //# sourceMappingURL=get-framework-version.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-framework-version.d.mts","names":[],"sources":["../../src/actions/get-framework-version.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAC/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;cAIhC,0BAAA,gCAA0B,wBAAA,CAAA,MAAA;WAAA,MAAA;AAAA"}
1
+ {"version":3,"file":"get-framework-version.d.mts","names":[],"sources":["../../src/actions/get-framework-version.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAC/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;cAIhC,0BAAA,gCAA0B,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -14,33 +14,33 @@ const ErpnextGetItemDetailsInput = zod.z.object({ ctx: zod.z.object({
14
14
  transaction_date: zod.z.string().describe("Transaction date in YYYY-MM-DD format for date-specific pricing and availability.").optional()
15
15
  }).describe("Context object containing all required parameters for retrieving item details.") }).describe("Request model for getting detailed item information including pricing, taxes, and stock details.");
16
16
  const ErpnextGetItemDetails_ItemDetailsDataSchema = zod.z.object({
17
- uom: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Unit of measure").optional()),
18
- rate: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().describe("Item rate/price").optional()),
19
- brand: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Brand").optional()),
20
- amount: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().describe("Total amount").optional()),
21
- base_rate: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().describe("Base rate").optional()),
22
- item_code: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Item code").optional()),
23
- item_name: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Item name").optional()),
24
- stock_qty: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().describe("Stock quantity").optional()),
25
- stock_uom: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Stock unit of measure").optional()),
26
- warehouse: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Warehouse").optional()),
27
- actual_qty: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().describe("Actual quantity in stock").optional()),
28
- item_group: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Item group").optional()),
29
- weight_uom: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Weight unit of measure").optional()),
30
- base_amount: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().describe("Base amount").optional()),
31
- cost_center: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Cost center").optional()),
32
- description: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Item description").optional()),
33
- has_batch_no: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().int().describe("Has batch number").optional()),
34
- tax_category: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Tax category").optional()),
35
- total_weight: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().describe("Total weight").optional()),
36
- has_serial_no: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().int().describe("Has serial number").optional()),
37
- projected_qty: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().describe("Projected quantity").optional()),
38
- income_account: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Income account").optional()),
39
- expense_account: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Expense account").optional()),
40
- price_list_rate: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().describe("Price list rate").optional()),
41
- weight_per_unit: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().describe("Weight per unit").optional()),
42
- conversion_factor: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().describe("Conversion factor").optional()),
43
- item_tax_template: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Item tax template").optional())
17
+ uom: zod.z.string().describe("Unit of measure").nullable().optional(),
18
+ rate: zod.z.number().describe("Item rate/price").nullable().optional(),
19
+ brand: zod.z.string().describe("Brand").nullable().optional(),
20
+ amount: zod.z.number().describe("Total amount").nullable().optional(),
21
+ base_rate: zod.z.number().describe("Base rate").nullable().optional(),
22
+ item_code: zod.z.string().describe("Item code").nullable().optional(),
23
+ item_name: zod.z.string().describe("Item name").nullable().optional(),
24
+ stock_qty: zod.z.number().describe("Stock quantity").nullable().optional(),
25
+ stock_uom: zod.z.string().describe("Stock unit of measure").nullable().optional(),
26
+ warehouse: zod.z.string().describe("Warehouse").nullable().optional(),
27
+ actual_qty: zod.z.number().describe("Actual quantity in stock").nullable().optional(),
28
+ item_group: zod.z.string().describe("Item group").nullable().optional(),
29
+ weight_uom: zod.z.string().describe("Weight unit of measure").nullable().optional(),
30
+ base_amount: zod.z.number().describe("Base amount").nullable().optional(),
31
+ cost_center: zod.z.string().describe("Cost center").nullable().optional(),
32
+ description: zod.z.string().describe("Item description").nullable().optional(),
33
+ has_batch_no: zod.z.number().int().describe("Has batch number").nullable().optional(),
34
+ tax_category: zod.z.string().describe("Tax category").nullable().optional(),
35
+ total_weight: zod.z.number().describe("Total weight").nullable().optional(),
36
+ has_serial_no: zod.z.number().int().describe("Has serial number").nullable().optional(),
37
+ projected_qty: zod.z.number().describe("Projected quantity").nullable().optional(),
38
+ income_account: zod.z.string().describe("Income account").nullable().optional(),
39
+ expense_account: zod.z.string().describe("Expense account").nullable().optional(),
40
+ price_list_rate: zod.z.number().describe("Price list rate").nullable().optional(),
41
+ weight_per_unit: zod.z.number().describe("Weight per unit").nullable().optional(),
42
+ conversion_factor: zod.z.number().describe("Conversion factor").nullable().optional(),
43
+ item_tax_template: zod.z.string().describe("Item tax template").nullable().optional()
44
44
  }).passthrough().describe("Item details data structure.");
45
45
  const ErpnextGetItemDetailsOutput = zod.z.object({ message: ErpnextGetItemDetails_ItemDetailsDataSchema.nullable() }).describe("Response model containing detailed item information.");
46
46
  const erpnextGetItemDetails = require_action.action("ERPNEXT_GET_ITEM_DETAILS", {
@@ -1 +1 @@
1
- {"version":3,"file":"get-item-details.cjs","names":["z","action"],"sources":["../../src/actions/get-item-details.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetItemDetailsInput = z.object({\n ctx: z.object({\n qty: z.number().describe(\"Quantity of the item for calculating pricing and availability.\").optional(),\n company: z.string().describe(\"The company name for which to retrieve item details (e.g., 'composio', 'My Company').\"),\n doctype: z.string().describe(\"The document type context for the item query (e.g., 'Sales Order', 'Purchase Order', 'Sales Invoice', 'Quotation').\"),\n currency: z.string().describe(\"Currency code for pricing (e.g., 'USD', 'EUR', 'INR').\"),\n customer: z.string().describe(\"Customer name or ID for customer-specific pricing and details.\").optional(),\n item_code: z.string().describe(\"The item code to retrieve details for (e.g., 'TEST-ITEM-001', 'PROD-SKU-123').\"),\n warehouse: z.string().describe(\"Warehouse name or ID to check stock availability.\").optional(),\n price_list: z.string().describe(\"Price list name to use for pricing (e.g., 'Standard Selling', 'Wholesale').\").optional(),\n conversion_rate: z.number().describe(\"Currency conversion rate to apply. Use 1.0 for base currency or the exchange rate for foreign currency transactions.\"),\n transaction_date: z.string().describe(\"Transaction date in YYYY-MM-DD format for date-specific pricing and availability.\").optional(),\n}).describe(\"Context object containing all required parameters for retrieving item details.\"),\n}).describe(\"Request model for getting detailed item information including pricing, taxes, and stock details.\");\nconst ErpnextGetItemDetails_ItemDetailsDataSchema = z.object({\n uom: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Unit of measure\").optional()),\n rate: z.preprocess((value) => (value === null ? undefined : value), z.number().describe(\"Item rate/price\").optional()),\n brand: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Brand\").optional()),\n amount: z.preprocess((value) => (value === null ? undefined : value), z.number().describe(\"Total amount\").optional()),\n base_rate: z.preprocess((value) => (value === null ? undefined : value), z.number().describe(\"Base rate\").optional()),\n item_code: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Item code\").optional()),\n item_name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Item name\").optional()),\n stock_qty: z.preprocess((value) => (value === null ? undefined : value), z.number().describe(\"Stock quantity\").optional()),\n stock_uom: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Stock unit of measure\").optional()),\n warehouse: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Warehouse\").optional()),\n actual_qty: z.preprocess((value) => (value === null ? undefined : value), z.number().describe(\"Actual quantity in stock\").optional()),\n item_group: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Item group\").optional()),\n weight_uom: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Weight unit of measure\").optional()),\n base_amount: z.preprocess((value) => (value === null ? undefined : value), z.number().describe(\"Base amount\").optional()),\n cost_center: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Cost center\").optional()),\n description: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Item description\").optional()),\n has_batch_no: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Has batch number\").optional()),\n tax_category: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Tax category\").optional()),\n total_weight: z.preprocess((value) => (value === null ? undefined : value), z.number().describe(\"Total weight\").optional()),\n has_serial_no: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Has serial number\").optional()),\n projected_qty: z.preprocess((value) => (value === null ? undefined : value), z.number().describe(\"Projected quantity\").optional()),\n income_account: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Income account\").optional()),\n expense_account: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Expense account\").optional()),\n price_list_rate: z.preprocess((value) => (value === null ? undefined : value), z.number().describe(\"Price list rate\").optional()),\n weight_per_unit: z.preprocess((value) => (value === null ? undefined : value), z.number().describe(\"Weight per unit\").optional()),\n conversion_factor: z.preprocess((value) => (value === null ? undefined : value), z.number().describe(\"Conversion factor\").optional()),\n item_tax_template: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Item tax template\").optional()),\n}).passthrough().describe(\"Item details data structure.\");\nexport const ErpnextGetItemDetailsOutput = z.object({\n message: ErpnextGetItemDetails_ItemDetailsDataSchema.nullable(),\n}).describe(\"Response model containing detailed item information.\");\n\nexport const erpnextGetItemDetails = action(\"ERPNEXT_GET_ITEM_DETAILS\", {\n slug: \"erpnext-get-item-details\",\n name: \"Get Item Details\",\n description: \"Tool to get detailed item information including pricing, taxes, and stock details from ERPNext. Use when you need comprehensive item data for transactions like Sales Orders, Purchase Orders, or Invoices. This action retrieves item-specific information based on the provided context including customer, price list, warehouse, and currency.\",\n input: ErpnextGetItemDetailsInput,\n output: ErpnextGetItemDetailsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,KAAKA,IAAAA,EAAE,OAAO;CACd,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CACpG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uFAAuF;CACpH,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qHAAqH;CAClJ,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD;CACtF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CACzG,WAAWA,IA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,iBAAiBA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS,CAAC;CAChI,mBAAmBA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC;CACpI,mBAAmBA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC;AACtI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8BAA8B;AACxD,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,SAAS,4CAA4C,SAAS,EAChE,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAElE,MAAa,wBAAwBC,eAAAA,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-item-details.cjs","names":["z","action"],"sources":["../../src/actions/get-item-details.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetItemDetailsInput = z.object({\n ctx: z.object({\n qty: z.number().describe(\"Quantity of the item for calculating pricing and availability.\").optional(),\n company: z.string().describe(\"The company name for which to retrieve item details (e.g., 'composio', 'My Company').\"),\n doctype: z.string().describe(\"The document type context for the item query (e.g., 'Sales Order', 'Purchase Order', 'Sales Invoice', 'Quotation').\"),\n currency: z.string().describe(\"Currency code for pricing (e.g., 'USD', 'EUR', 'INR').\"),\n customer: z.string().describe(\"Customer name or ID for customer-specific pricing and details.\").optional(),\n item_code: z.string().describe(\"The item code to retrieve details for (e.g., 'TEST-ITEM-001', 'PROD-SKU-123').\"),\n warehouse: z.string().describe(\"Warehouse name or ID to check stock availability.\").optional(),\n price_list: z.string().describe(\"Price list name to use for pricing (e.g., 'Standard Selling', 'Wholesale').\").optional(),\n conversion_rate: z.number().describe(\"Currency conversion rate to apply. Use 1.0 for base currency or the exchange rate for foreign currency transactions.\"),\n transaction_date: z.string().describe(\"Transaction date in YYYY-MM-DD format for date-specific pricing and availability.\").optional(),\n}).describe(\"Context object containing all required parameters for retrieving item details.\"),\n}).describe(\"Request model for getting detailed item information including pricing, taxes, and stock details.\");\nconst ErpnextGetItemDetails_ItemDetailsDataSchema = z.object({\n uom: z.string().describe(\"Unit of measure\").nullable().optional(),\n rate: z.number().describe(\"Item rate/price\").nullable().optional(),\n brand: z.string().describe(\"Brand\").nullable().optional(),\n amount: z.number().describe(\"Total amount\").nullable().optional(),\n base_rate: z.number().describe(\"Base rate\").nullable().optional(),\n item_code: z.string().describe(\"Item code\").nullable().optional(),\n item_name: z.string().describe(\"Item name\").nullable().optional(),\n stock_qty: z.number().describe(\"Stock quantity\").nullable().optional(),\n stock_uom: z.string().describe(\"Stock unit of measure\").nullable().optional(),\n warehouse: z.string().describe(\"Warehouse\").nullable().optional(),\n actual_qty: z.number().describe(\"Actual quantity in stock\").nullable().optional(),\n item_group: z.string().describe(\"Item group\").nullable().optional(),\n weight_uom: z.string().describe(\"Weight unit of measure\").nullable().optional(),\n base_amount: z.number().describe(\"Base amount\").nullable().optional(),\n cost_center: z.string().describe(\"Cost center\").nullable().optional(),\n description: z.string().describe(\"Item description\").nullable().optional(),\n has_batch_no: z.number().int().describe(\"Has batch number\").nullable().optional(),\n tax_category: z.string().describe(\"Tax category\").nullable().optional(),\n total_weight: z.number().describe(\"Total weight\").nullable().optional(),\n has_serial_no: z.number().int().describe(\"Has serial number\").nullable().optional(),\n projected_qty: z.number().describe(\"Projected quantity\").nullable().optional(),\n income_account: z.string().describe(\"Income account\").nullable().optional(),\n expense_account: z.string().describe(\"Expense account\").nullable().optional(),\n price_list_rate: z.number().describe(\"Price list rate\").nullable().optional(),\n weight_per_unit: z.number().describe(\"Weight per unit\").nullable().optional(),\n conversion_factor: z.number().describe(\"Conversion factor\").nullable().optional(),\n item_tax_template: z.string().describe(\"Item tax template\").nullable().optional(),\n}).passthrough().describe(\"Item details data structure.\");\nexport const ErpnextGetItemDetailsOutput = z.object({\n message: ErpnextGetItemDetails_ItemDetailsDataSchema.nullable(),\n}).describe(\"Response model containing detailed item information.\");\n\nexport const erpnextGetItemDetails = action(\"ERPNEXT_GET_ITEM_DETAILS\", {\n slug: \"erpnext-get-item-details\",\n name: \"Get Item Details\",\n description: \"Tool to get detailed item information including pricing, taxes, and stock details from ERPNext. Use when you need comprehensive item data for transactions like Sales Orders, Purchase Orders, or Invoices. This action retrieves item-specific information based on the provided context including customer, price list, warehouse, and currency.\",\n input: ErpnextGetItemDetailsInput,\n output: ErpnextGetItemDetailsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,KAAKA,IAAAA,EAAE,OAAO;CACd,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CACpG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uFAAuF;CACpH,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qHAAqH;CAClJ,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD;CACtF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CACzG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF;CAC/G,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAC7F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CACxH,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sHAAsH;CAC3J,kBAAkBA,IAAAA,EAAE,OAAO,C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AAS;CAC5E,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8BAA8B;AACxD,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,SAAS,4CAA4C,SAAS,EAChE,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAElE,MAAa,wBAAwBC,eAAAA,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -17,33 +17,33 @@ declare const ErpnextGetItemDetailsInput: z.ZodObject<{
17
17
  }, z.core.$strip>;
18
18
  declare const ErpnextGetItemDetailsOutput: z.ZodObject<{
19
19
  message: z.ZodNullable<z.ZodObject<{
20
- uom: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
21
- rate: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
22
- brand: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
23
- amount: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
24
- base_rate: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
25
- item_code: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
26
- item_name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
27
- stock_qty: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
28
- stock_uom: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
29
- warehouse: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
30
- actual_qty: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
31
- item_group: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
32
- weight_uom: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
33
- base_amount: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
34
- cost_center: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
35
- description: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
36
- has_batch_no: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
37
- tax_category: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
38
- total_weight: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
39
- has_serial_no: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
40
- projected_qty: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
41
- income_account: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
42
- expense_account: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
43
- price_list_rate: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
44
- weight_per_unit: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
45
- conversion_factor: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
46
- item_tax_template: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
20
+ uom: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ rate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
22
+ brand: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
+ amount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
24
+ base_rate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
25
+ item_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ item_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
+ stock_qty: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
28
+ stock_uom: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
+ warehouse: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
+ actual_qty: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
31
+ item_group: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
+ weight_uom: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
+ base_amount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
34
+ cost_center: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
+ has_batch_no: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
37
+ tax_category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
38
+ total_weight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
39
+ has_serial_no: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
40
+ projected_qty: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
41
+ income_account: z.ZodOptional<z.ZodNullable<z.ZodString>>;
42
+ expense_account: z.ZodOptional<z.ZodNullable<z.ZodString>>;
43
+ price_list_rate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
44
+ weight_per_unit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
45
+ conversion_factor: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
46
+ item_tax_template: z.ZodOptional<z.ZodNullable<z.ZodString>>;
47
47
  }, z.core.$loose>>;
48
48
  }, z.core.$strip>;
49
49
  declare const erpnextGetItemDetails: import("@keystrokehq/action").WorkflowActionDefinition<{
@@ -59,38 +59,7 @@ declare const erpnextGetItemDetails: import("@keystrokehq/action").WorkflowActio
59
59
  price_list?: string | undefined;
60
60
  transaction_date?: string | undefined;
61
61
  };
62
- }, {
63
- message: {
64
- [x: string]: unknown;
65
- uom?: string | undefined;
66
- rate?: number | undefined;
67
- brand?: string | undefined;
68
- amount?: number | undefined;
69
- base_rate?: number | undefined;
70
- item_code?: string | undefined;
71
- item_name?: string | undefined;
72
- stock_qty?: number | undefined;
73
- stock_uom?: string | undefined;
74
- warehouse?: string | undefined;
75
- actual_qty?: number | undefined;
76
- item_group?: string | undefined;
77
- weight_uom?: string | undefined;
78
- base_amount?: number | undefined;
79
- cost_center?: string | undefined;
80
- description?: string | undefined;
81
- has_batch_no?: number | undefined;
82
- tax_category?: string | undefined;
83
- total_weight?: number | undefined;
84
- has_serial_no?: number | undefined;
85
- projected_qty?: number | undefined;
86
- income_account?: string | undefined;
87
- expense_account?: string | undefined;
88
- price_list_rate?: number | undefined;
89
- weight_per_unit?: number | undefined;
90
- conversion_factor?: number | undefined;
91
- item_tax_template?: string | undefined;
92
- } | null;
93
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
62
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
94
63
  //#endregion
95
64
  export { erpnextGetItemDetails };
96
65
  //# sourceMappingURL=get-item-details.d.cts.map
@@ -17,33 +17,33 @@ declare const ErpnextGetItemDetailsInput: z.ZodObject<{
17
17
  }, z.core.$strip>;
18
18
  declare const ErpnextGetItemDetailsOutput: z.ZodObject<{
19
19
  message: z.ZodNullable<z.ZodObject<{
20
- uom: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
21
- rate: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
22
- brand: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
23
- amount: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
24
- base_rate: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
25
- item_code: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
26
- item_name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
27
- stock_qty: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
28
- stock_uom: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
29
- warehouse: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
30
- actual_qty: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
31
- item_group: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
32
- weight_uom: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
33
- base_amount: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
34
- cost_center: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
35
- description: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
36
- has_batch_no: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
37
- tax_category: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
38
- total_weight: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
39
- has_serial_no: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
40
- projected_qty: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
41
- income_account: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
42
- expense_account: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
43
- price_list_rate: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
44
- weight_per_unit: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
45
- conversion_factor: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
46
- item_tax_template: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
20
+ uom: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ rate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
22
+ brand: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
+ amount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
24
+ base_rate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
25
+ item_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ item_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
+ stock_qty: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
28
+ stock_uom: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
+ warehouse: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
+ actual_qty: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
31
+ item_group: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
+ weight_uom: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
+ base_amount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
34
+ cost_center: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
+ has_batch_no: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
37
+ tax_category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
38
+ total_weight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
39
+ has_serial_no: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
40
+ projected_qty: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
41
+ income_account: z.ZodOptional<z.ZodNullable<z.ZodString>>;
42
+ expense_account: z.ZodOptional<z.ZodNullable<z.ZodString>>;
43
+ price_list_rate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
44
+ weight_per_unit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
45
+ conversion_factor: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
46
+ item_tax_template: z.ZodOptional<z.ZodNullable<z.ZodString>>;
47
47
  }, z.core.$loose>>;
48
48
  }, z.core.$strip>;
49
49
  declare const erpnextGetItemDetails: import("@keystrokehq/action").WorkflowActionDefinition<{
@@ -59,38 +59,7 @@ declare const erpnextGetItemDetails: import("@keystrokehq/action").WorkflowActio
59
59
  price_list?: string | undefined;
60
60
  transaction_date?: string | undefined;
61
61
  };
62
- }, {
63
- message: {
64
- [x: string]: unknown;
65
- uom?: string | undefined;
66
- rate?: number | undefined;
67
- brand?: string | undefined;
68
- amount?: number | undefined;
69
- base_rate?: number | undefined;
70
- item_code?: string | undefined;
71
- item_name?: string | undefined;
72
- stock_qty?: number | undefined;
73
- stock_uom?: string | undefined;
74
- warehouse?: string | undefined;
75
- actual_qty?: number | undefined;
76
- item_group?: string | undefined;
77
- weight_uom?: string | undefined;
78
- base_amount?: number | undefined;
79
- cost_center?: string | undefined;
80
- description?: string | undefined;
81
- has_batch_no?: number | undefined;
82
- tax_category?: string | undefined;
83
- total_weight?: number | undefined;
84
- has_serial_no?: number | undefined;
85
- projected_qty?: number | undefined;
86
- income_account?: string | undefined;
87
- expense_account?: string | undefined;
88
- price_list_rate?: number | undefined;
89
- weight_per_unit?: number | undefined;
90
- conversion_factor?: number | undefined;
91
- item_tax_template?: string | undefined;
92
- } | null;
93
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
62
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
94
63
  //#endregion
95
64
  export { erpnextGetItemDetails };
96
65
  //# sourceMappingURL=get-item-details.d.mts.map
@@ -14,33 +14,33 @@ const ErpnextGetItemDetailsInput = z.object({ ctx: z.object({
14
14
  transaction_date: z.string().describe("Transaction date in YYYY-MM-DD format for date-specific pricing and availability.").optional()
15
15
  }).describe("Context object containing all required parameters for retrieving item details.") }).describe("Request model for getting detailed item information including pricing, taxes, and stock details.");
16
16
  const ErpnextGetItemDetails_ItemDetailsDataSchema = z.object({
17
- uom: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Unit of measure").optional()),
18
- rate: z.preprocess((value) => value === null ? void 0 : value, z.number().describe("Item rate/price").optional()),
19
- brand: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Brand").optional()),
20
- amount: z.preprocess((value) => value === null ? void 0 : value, z.number().describe("Total amount").optional()),
21
- base_rate: z.preprocess((value) => value === null ? void 0 : value, z.number().describe("Base rate").optional()),
22
- item_code: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Item code").optional()),
23
- item_name: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Item name").optional()),
24
- stock_qty: z.preprocess((value) => value === null ? void 0 : value, z.number().describe("Stock quantity").optional()),
25
- stock_uom: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Stock unit of measure").optional()),
26
- warehouse: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Warehouse").optional()),
27
- actual_qty: z.preprocess((value) => value === null ? void 0 : value, z.number().describe("Actual quantity in stock").optional()),
28
- item_group: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Item group").optional()),
29
- weight_uom: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Weight unit of measure").optional()),
30
- base_amount: z.preprocess((value) => value === null ? void 0 : value, z.number().describe("Base amount").optional()),
31
- cost_center: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Cost center").optional()),
32
- description: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Item description").optional()),
33
- has_batch_no: z.preprocess((value) => value === null ? void 0 : value, z.number().int().describe("Has batch number").optional()),
34
- tax_category: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Tax category").optional()),
35
- total_weight: z.preprocess((value) => value === null ? void 0 : value, z.number().describe("Total weight").optional()),
36
- has_serial_no: z.preprocess((value) => value === null ? void 0 : value, z.number().int().describe("Has serial number").optional()),
37
- projected_qty: z.preprocess((value) => value === null ? void 0 : value, z.number().describe("Projected quantity").optional()),
38
- income_account: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Income account").optional()),
39
- expense_account: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Expense account").optional()),
40
- price_list_rate: z.preprocess((value) => value === null ? void 0 : value, z.number().describe("Price list rate").optional()),
41
- weight_per_unit: z.preprocess((value) => value === null ? void 0 : value, z.number().describe("Weight per unit").optional()),
42
- conversion_factor: z.preprocess((value) => value === null ? void 0 : value, z.number().describe("Conversion factor").optional()),
43
- item_tax_template: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Item tax template").optional())
17
+ uom: z.string().describe("Unit of measure").nullable().optional(),
18
+ rate: z.number().describe("Item rate/price").nullable().optional(),
19
+ brand: z.string().describe("Brand").nullable().optional(),
20
+ amount: z.number().describe("Total amount").nullable().optional(),
21
+ base_rate: z.number().describe("Base rate").nullable().optional(),
22
+ item_code: z.string().describe("Item code").nullable().optional(),
23
+ item_name: z.string().describe("Item name").nullable().optional(),
24
+ stock_qty: z.number().describe("Stock quantity").nullable().optional(),
25
+ stock_uom: z.string().describe("Stock unit of measure").nullable().optional(),
26
+ warehouse: z.string().describe("Warehouse").nullable().optional(),
27
+ actual_qty: z.number().describe("Actual quantity in stock").nullable().optional(),
28
+ item_group: z.string().describe("Item group").nullable().optional(),
29
+ weight_uom: z.string().describe("Weight unit of measure").nullable().optional(),
30
+ base_amount: z.number().describe("Base amount").nullable().optional(),
31
+ cost_center: z.string().describe("Cost center").nullable().optional(),
32
+ description: z.string().describe("Item description").nullable().optional(),
33
+ has_batch_no: z.number().int().describe("Has batch number").nullable().optional(),
34
+ tax_category: z.string().describe("Tax category").nullable().optional(),
35
+ total_weight: z.number().describe("Total weight").nullable().optional(),
36
+ has_serial_no: z.number().int().describe("Has serial number").nullable().optional(),
37
+ projected_qty: z.number().describe("Projected quantity").nullable().optional(),
38
+ income_account: z.string().describe("Income account").nullable().optional(),
39
+ expense_account: z.string().describe("Expense account").nullable().optional(),
40
+ price_list_rate: z.number().describe("Price list rate").nullable().optional(),
41
+ weight_per_unit: z.number().describe("Weight per unit").nullable().optional(),
42
+ conversion_factor: z.number().describe("Conversion factor").nullable().optional(),
43
+ item_tax_template: z.string().describe("Item tax template").nullable().optional()
44
44
  }).passthrough().describe("Item details data structure.");
45
45
  const erpnextGetItemDetails = action("ERPNEXT_GET_ITEM_DETAILS", {
46
46
  slug: "erpnext-get-item-details",