@keystrokehq/erpnext 0.1.1 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/add-comment.cjs +6 -6
- package/dist/actions/add-comment.cjs.map +1 -1
- package/dist/actions/add-comment.d.cts +7 -19
- package/dist/actions/add-comment.d.mts +7 -19
- package/dist/actions/add-comment.mjs +6 -6
- package/dist/actions/add-comment.mjs.map +1 -1
- package/dist/actions/add-tag.cjs +1 -1
- package/dist/actions/add-tag.cjs.map +1 -1
- package/dist/actions/add-tag.d.cts +3 -5
- package/dist/actions/add-tag.d.mts +3 -5
- package/dist/actions/add-tag.mjs +1 -1
- package/dist/actions/add-tag.mjs.map +1 -1
- package/dist/actions/apply-workflow.cjs +5 -5
- package/dist/actions/apply-workflow.cjs.map +1 -1
- package/dist/actions/apply-workflow.d.cts +5 -9
- package/dist/actions/apply-workflow.d.cts.map +1 -1
- package/dist/actions/apply-workflow.d.mts +5 -9
- package/dist/actions/apply-workflow.d.mts.map +1 -1
- package/dist/actions/apply-workflow.mjs +5 -5
- package/dist/actions/apply-workflow.mjs.map +1 -1
- package/dist/actions/cancel-document.cjs +3 -3
- package/dist/actions/cancel-document.cjs.map +1 -1
- package/dist/actions/cancel-document.d.cts +4 -7
- package/dist/actions/cancel-document.d.cts.map +1 -1
- package/dist/actions/cancel-document.d.mts +4 -7
- package/dist/actions/cancel-document.d.mts.map +1 -1
- package/dist/actions/cancel-document.mjs +3 -3
- package/dist/actions/cancel-document.mjs.map +1 -1
- package/dist/actions/create-document.cjs +9 -9
- package/dist/actions/create-document.cjs.map +1 -1
- package/dist/actions/create-document.d.cts +11 -22
- package/dist/actions/create-document.d.mts +11 -22
- package/dist/actions/create-document.mjs +9 -9
- package/dist/actions/create-document.mjs.map +1 -1
- package/dist/actions/create-timesheet.cjs +3 -3
- package/dist/actions/create-timesheet.cjs.map +1 -1
- package/dist/actions/create-timesheet.d.cts +5 -14
- package/dist/actions/create-timesheet.d.mts +5 -14
- package/dist/actions/create-timesheet.mjs +3 -3
- package/dist/actions/create-timesheet.mjs.map +1 -1
- package/dist/actions/delete-document.cjs +1 -1
- package/dist/actions/delete-document.cjs.map +1 -1
- package/dist/actions/delete-document.d.cts +2 -4
- package/dist/actions/delete-document.d.mts +2 -4
- package/dist/actions/delete-document.mjs +1 -1
- package/dist/actions/delete-document.mjs.map +1 -1
- package/dist/actions/download-file.cjs +2 -2
- package/dist/actions/download-file.cjs.map +1 -1
- package/dist/actions/download-file.d.cts +3 -9
- package/dist/actions/download-file.d.mts +3 -9
- package/dist/actions/download-file.mjs +2 -2
- package/dist/actions/download-file.mjs.map +1 -1
- package/dist/actions/download-pdf.cjs +2 -2
- package/dist/actions/download-pdf.cjs.map +1 -1
- package/dist/actions/download-pdf.d.cts +3 -9
- package/dist/actions/download-pdf.d.mts +3 -9
- package/dist/actions/download-pdf.mjs +2 -2
- package/dist/actions/download-pdf.mjs.map +1 -1
- package/dist/actions/get-all-languages.cjs +4 -4
- package/dist/actions/get-all-languages.cjs.map +1 -1
- package/dist/actions/get-all-languages.d.cts +5 -10
- package/dist/actions/get-all-languages.d.mts +5 -10
- package/dist/actions/get-all-languages.mjs +4 -4
- package/dist/actions/get-all-languages.mjs.map +1 -1
- package/dist/actions/get-all-roles.cjs +1 -1
- package/dist/actions/get-all-roles.cjs.map +1 -1
- package/dist/actions/get-all-roles.d.cts +2 -4
- package/dist/actions/get-all-roles.d.cts.map +1 -1
- package/dist/actions/get-all-roles.d.mts +2 -4
- package/dist/actions/get-all-roles.d.mts.map +1 -1
- package/dist/actions/get-all-roles.mjs +1 -1
- package/dist/actions/get-all-roles.mjs.map +1 -1
- package/dist/actions/get-client.cjs +9 -9
- package/dist/actions/get-client.cjs.map +1 -1
- package/dist/actions/get-client.d.cts +11 -23
- package/dist/actions/get-client.d.mts +11 -23
- package/dist/actions/get-client.mjs +9 -9
- package/dist/actions/get-client.mjs.map +1 -1
- package/dist/actions/get-count.cjs +2 -2
- package/dist/actions/get-count.cjs.map +1 -1
- package/dist/actions/get-count.d.cts +4 -6
- package/dist/actions/get-count.d.mts +4 -6
- package/dist/actions/get-count.mjs +2 -2
- package/dist/actions/get-count.mjs.map +1 -1
- package/dist/actions/get-doc-with-meta.cjs +22 -22
- package/dist/actions/get-doc-with-meta.cjs.map +1 -1
- package/dist/actions/get-doc-with-meta.d.cts +23 -45
- package/dist/actions/get-doc-with-meta.d.mts +23 -45
- package/dist/actions/get-doc-with-meta.mjs +22 -22
- package/dist/actions/get-doc-with-meta.mjs.map +1 -1
- package/dist/actions/get-doctype-meta.cjs +4 -4
- package/dist/actions/get-doctype-meta.cjs.map +1 -1
- package/dist/actions/get-doctype-meta.d.cts +5 -9
- package/dist/actions/get-doctype-meta.d.cts.map +1 -1
- package/dist/actions/get-doctype-meta.d.mts +5 -9
- package/dist/actions/get-doctype-meta.d.mts.map +1 -1
- package/dist/actions/get-doctype-meta.mjs +4 -4
- package/dist/actions/get-doctype-meta.mjs.map +1 -1
- package/dist/actions/get-document.cjs +8 -8
- package/dist/actions/get-document.cjs.map +1 -1
- package/dist/actions/get-document.d.cts +9 -20
- package/dist/actions/get-document.d.mts +9 -20
- package/dist/actions/get-document.mjs +8 -8
- package/dist/actions/get-document.mjs.map +1 -1
- package/dist/actions/get-exchange-rate.cjs +1 -1
- package/dist/actions/get-exchange-rate.cjs.map +1 -1
- package/dist/actions/get-exchange-rate.d.cts +2 -4
- package/dist/actions/get-exchange-rate.d.mts +2 -4
- package/dist/actions/get-exchange-rate.mjs +1 -1
- package/dist/actions/get-exchange-rate.mjs.map +1 -1
- package/dist/actions/get-fiscal-year.cjs +2 -2
- package/dist/actions/get-fiscal-year.cjs.map +1 -1
- package/dist/actions/get-fiscal-year.d.cts +3 -9
- package/dist/actions/get-fiscal-year.d.mts +3 -9
- package/dist/actions/get-fiscal-year.mjs +2 -2
- package/dist/actions/get-fiscal-year.mjs.map +1 -1
- package/dist/actions/get-framework-version.cjs +1 -1
- package/dist/actions/get-framework-version.cjs.map +1 -1
- package/dist/actions/get-framework-version.d.cts +3 -5
- package/dist/actions/get-framework-version.d.cts.map +1 -1
- package/dist/actions/get-framework-version.d.mts +3 -5
- package/dist/actions/get-framework-version.d.mts.map +1 -1
- package/dist/actions/get-framework-version.mjs +1 -1
- package/dist/actions/get-framework-version.mjs.map +1 -1
- package/dist/actions/get-item-details.cjs +28 -28
- package/dist/actions/get-item-details.cjs.map +1 -1
- package/dist/actions/get-item-details.d.cts +29 -60
- package/dist/actions/get-item-details.d.mts +29 -60
- package/dist/actions/get-item-details.mjs +28 -28
- package/dist/actions/get-item-details.mjs.map +1 -1
- package/dist/actions/get-list.cjs +2 -2
- package/dist/actions/get-list.cjs.map +1 -1
- package/dist/actions/get-list.d.cts +5 -7
- package/dist/actions/get-list.d.cts.map +1 -1
- package/dist/actions/get-list.d.mts +5 -7
- package/dist/actions/get-list.d.mts.map +1 -1
- package/dist/actions/get-list.mjs +2 -2
- package/dist/actions/get-list.mjs.map +1 -1
- package/dist/actions/get-logged-user.cjs +1 -1
- package/dist/actions/get-logged-user.cjs.map +1 -1
- package/dist/actions/get-logged-user.d.cts +2 -4
- package/dist/actions/get-logged-user.d.cts.map +1 -1
- package/dist/actions/get-logged-user.d.mts +2 -4
- package/dist/actions/get-logged-user.d.mts.map +1 -1
- package/dist/actions/get-logged-user.mjs +1 -1
- package/dist/actions/get-logged-user.mjs.map +1 -1
- package/dist/actions/get-party-details.cjs +37 -37
- package/dist/actions/get-party-details.cjs.map +1 -1
- package/dist/actions/get-party-details.d.cts +38 -78
- package/dist/actions/get-party-details.d.mts +38 -78
- package/dist/actions/get-party-details.mjs +37 -37
- package/dist/actions/get-party-details.mjs.map +1 -1
- package/dist/actions/get-payment-entry.cjs +27 -27
- package/dist/actions/get-payment-entry.cjs.map +1 -1
- package/dist/actions/get-payment-entry.d.cts +28 -60
- package/dist/actions/get-payment-entry.d.mts +28 -60
- package/dist/actions/get-payment-entry.mjs +27 -27
- package/dist/actions/get-payment-entry.mjs.map +1 -1
- package/dist/actions/get-stock-balance.cjs +1 -1
- package/dist/actions/get-stock-balance.cjs.map +1 -1
- package/dist/actions/get-stock-balance.d.cts +2 -4
- package/dist/actions/get-stock-balance.d.mts +2 -4
- package/dist/actions/get-stock-balance.mjs +1 -1
- package/dist/actions/get-stock-balance.mjs.map +1 -1
- package/dist/actions/get-timezones.cjs +2 -2
- package/dist/actions/get-timezones.cjs.map +1 -1
- package/dist/actions/get-timezones.d.cts +3 -7
- package/dist/actions/get-timezones.d.cts.map +1 -1
- package/dist/actions/get-timezones.d.mts +3 -7
- package/dist/actions/get-timezones.d.mts.map +1 -1
- package/dist/actions/get-timezones.mjs +2 -2
- package/dist/actions/get-timezones.mjs.map +1 -1
- package/dist/actions/get-user-roles.cjs +1 -1
- package/dist/actions/get-user-roles.cjs.map +1 -1
- package/dist/actions/get-user-roles.d.cts +2 -4
- package/dist/actions/get-user-roles.d.mts +2 -4
- package/dist/actions/get-user-roles.mjs +1 -1
- package/dist/actions/get-user-roles.mjs.map +1 -1
- package/dist/actions/get-value.cjs +2 -2
- package/dist/actions/get-value.cjs.map +1 -1
- package/dist/actions/get-value.d.cts +3 -5
- package/dist/actions/get-value.d.cts.map +1 -1
- package/dist/actions/get-value.d.mts +3 -5
- package/dist/actions/get-value.d.mts.map +1 -1
- package/dist/actions/get-value.mjs +2 -2
- package/dist/actions/get-value.mjs.map +1 -1
- package/dist/actions/get-workflow-transitions.cjs +8 -8
- package/dist/actions/get-workflow-transitions.cjs.map +1 -1
- package/dist/actions/get-workflow-transitions.d.cts +10 -19
- package/dist/actions/get-workflow-transitions.d.mts +10 -19
- package/dist/actions/get-workflow-transitions.mjs +8 -8
- package/dist/actions/get-workflow-transitions.mjs.map +1 -1
- package/dist/actions/insert-document.cjs +1 -1
- package/dist/actions/insert-document.cjs.map +1 -1
- package/dist/actions/insert-document.d.cts +2 -4
- package/dist/actions/insert-document.d.cts.map +1 -1
- package/dist/actions/insert-document.d.mts +2 -4
- package/dist/actions/insert-document.d.mts.map +1 -1
- package/dist/actions/insert-document.mjs +1 -1
- package/dist/actions/insert-document.mjs.map +1 -1
- package/dist/actions/insert-many.cjs +4 -4
- package/dist/actions/insert-many.cjs.map +1 -1
- package/dist/actions/insert-many.d.cts +5 -11
- package/dist/actions/insert-many.d.mts +5 -11
- package/dist/actions/insert-many.mjs +4 -4
- package/dist/actions/insert-many.mjs.map +1 -1
- package/dist/actions/list-doctypes.cjs +1 -1
- package/dist/actions/list-doctypes.cjs.map +1 -1
- package/dist/actions/list-doctypes.d.cts +3 -5
- package/dist/actions/list-doctypes.d.cts.map +1 -1
- package/dist/actions/list-doctypes.d.mts +3 -5
- package/dist/actions/list-doctypes.d.mts.map +1 -1
- package/dist/actions/list-doctypes.mjs +1 -1
- package/dist/actions/list-doctypes.mjs.map +1 -1
- package/dist/actions/list-documents.cjs +1 -1
- package/dist/actions/list-documents.cjs.map +1 -1
- package/dist/actions/list-documents.d.cts +3 -5
- package/dist/actions/list-documents.d.cts.map +1 -1
- package/dist/actions/list-documents.d.mts +3 -5
- package/dist/actions/list-documents.d.mts.map +1 -1
- package/dist/actions/list-documents.mjs +1 -1
- package/dist/actions/list-documents.mjs.map +1 -1
- package/dist/actions/list-employees.cjs +1 -1
- package/dist/actions/list-employees.cjs.map +1 -1
- package/dist/actions/list-employees.d.cts +2 -7
- package/dist/actions/list-employees.d.mts +2 -7
- package/dist/actions/list-employees.mjs +1 -1
- package/dist/actions/list-employees.mjs.map +1 -1
- package/dist/actions/list-projects.cjs +1 -1
- package/dist/actions/list-projects.cjs.map +1 -1
- package/dist/actions/list-projects.d.cts +3 -5
- package/dist/actions/list-projects.d.cts.map +1 -1
- package/dist/actions/list-projects.d.mts +3 -5
- package/dist/actions/list-projects.d.mts.map +1 -1
- package/dist/actions/list-projects.mjs +1 -1
- package/dist/actions/list-projects.mjs.map +1 -1
- package/dist/actions/list-timesheets.cjs +1 -1
- package/dist/actions/list-timesheets.cjs.map +1 -1
- package/dist/actions/list-timesheets.d.cts +3 -5
- package/dist/actions/list-timesheets.d.cts.map +1 -1
- package/dist/actions/list-timesheets.d.mts +3 -5
- package/dist/actions/list-timesheets.d.mts.map +1 -1
- package/dist/actions/list-timesheets.mjs +1 -1
- package/dist/actions/list-timesheets.mjs.map +1 -1
- package/dist/actions/list-webhooks.cjs +5 -5
- package/dist/actions/list-webhooks.cjs.map +1 -1
- package/dist/actions/list-webhooks.d.cts +6 -15
- package/dist/actions/list-webhooks.d.mts +6 -15
- package/dist/actions/list-webhooks.mjs +5 -5
- package/dist/actions/list-webhooks.mjs.map +1 -1
- package/dist/actions/make-delivery-note.cjs +12 -12
- package/dist/actions/make-delivery-note.cjs.map +1 -1
- package/dist/actions/make-delivery-note.d.cts +13 -28
- package/dist/actions/make-delivery-note.d.cts.map +1 -1
- package/dist/actions/make-delivery-note.d.mts +13 -28
- package/dist/actions/make-delivery-note.d.mts.map +1 -1
- package/dist/actions/make-delivery-note.mjs +12 -12
- package/dist/actions/make-delivery-note.mjs.map +1 -1
- package/dist/actions/make-purchase-order.cjs +23 -23
- package/dist/actions/make-purchase-order.cjs.map +1 -1
- package/dist/actions/make-purchase-order.d.cts +24 -52
- package/dist/actions/make-purchase-order.d.mts +24 -52
- package/dist/actions/make-purchase-order.mjs +23 -23
- package/dist/actions/make-purchase-order.mjs.map +1 -1
- package/dist/actions/make-sales-invoice.cjs +14 -14
- package/dist/actions/make-sales-invoice.cjs.map +1 -1
- package/dist/actions/make-sales-invoice.d.cts +15 -32
- package/dist/actions/make-sales-invoice.d.cts.map +1 -1
- package/dist/actions/make-sales-invoice.d.mts +15 -32
- package/dist/actions/make-sales-invoice.d.mts.map +1 -1
- package/dist/actions/make-sales-invoice.mjs +14 -14
- package/dist/actions/make-sales-invoice.mjs.map +1 -1
- package/dist/actions/make-stock-entry.cjs +11 -11
- package/dist/actions/make-stock-entry.cjs.map +1 -1
- package/dist/actions/make-stock-entry.d.cts +12 -24
- package/dist/actions/make-stock-entry.d.mts +12 -24
- package/dist/actions/make-stock-entry.mjs +11 -11
- package/dist/actions/make-stock-entry.mjs.map +1 -1
- package/dist/actions/ping.cjs +1 -1
- package/dist/actions/ping.cjs.map +1 -1
- package/dist/actions/ping.d.cts +2 -4
- package/dist/actions/ping.d.cts.map +1 -1
- package/dist/actions/ping.d.mts +2 -4
- package/dist/actions/ping.d.mts.map +1 -1
- package/dist/actions/ping.mjs +1 -1
- package/dist/actions/ping.mjs.map +1 -1
- package/dist/actions/rename-doc.cjs +1 -1
- package/dist/actions/rename-doc.cjs.map +1 -1
- package/dist/actions/rename-doc.d.cts +2 -4
- package/dist/actions/rename-doc.d.mts +2 -4
- package/dist/actions/rename-doc.mjs +1 -1
- package/dist/actions/rename-doc.mjs.map +1 -1
- package/dist/actions/save-docs.cjs +6 -6
- package/dist/actions/save-docs.cjs.map +1 -1
- package/dist/actions/save-docs.d.cts +7 -13
- package/dist/actions/save-docs.d.cts.map +1 -1
- package/dist/actions/save-docs.d.mts +7 -13
- package/dist/actions/save-docs.d.mts.map +1 -1
- package/dist/actions/save-docs.mjs +6 -6
- package/dist/actions/save-docs.mjs.map +1 -1
- package/dist/actions/save-document.cjs +3 -3
- package/dist/actions/save-document.cjs.map +1 -1
- package/dist/actions/save-document.d.cts +4 -10
- package/dist/actions/save-document.d.mts +4 -10
- package/dist/actions/save-document.mjs +3 -3
- package/dist/actions/save-document.mjs.map +1 -1
- package/dist/actions/search-global.cjs +8 -8
- package/dist/actions/search-global.cjs.map +1 -1
- package/dist/actions/search-global.d.cts +10 -19
- package/dist/actions/search-global.d.mts +10 -19
- package/dist/actions/search-global.mjs +8 -8
- package/dist/actions/search-global.mjs.map +1 -1
- package/dist/actions/search-link.cjs +3 -3
- package/dist/actions/search-link.cjs.map +1 -1
- package/dist/actions/search-link.d.cts +4 -10
- package/dist/actions/search-link.d.mts +4 -10
- package/dist/actions/search-link.mjs +3 -3
- package/dist/actions/search-link.mjs.map +1 -1
- package/dist/actions/set-value.cjs +9 -9
- package/dist/actions/set-value.cjs.map +1 -1
- package/dist/actions/set-value.d.cts +16 -35
- package/dist/actions/set-value.d.mts +16 -35
- package/dist/actions/set-value.mjs +9 -9
- package/dist/actions/set-value.mjs.map +1 -1
- package/dist/actions/submit-document.cjs +2 -2
- package/dist/actions/submit-document.cjs.map +1 -1
- package/dist/actions/submit-document.d.cts +3 -14
- package/dist/actions/submit-document.d.mts +3 -14
- package/dist/actions/submit-document.mjs +2 -2
- package/dist/actions/submit-document.mjs.map +1 -1
- package/dist/actions/update-document.cjs +10 -10
- package/dist/actions/update-document.cjs.map +1 -1
- package/dist/actions/update-document.d.cts +13 -23
- package/dist/actions/update-document.d.mts +13 -23
- package/dist/actions/update-document.mjs +10 -10
- package/dist/actions/update-document.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-document.cjs","names":["z","action"],"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.
|
|
1
|
+
{"version":3,"file":"get-document.cjs","names":["z","action"],"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}).passthrough().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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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,uDAAuD;AACjF,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,EAC/C,MAAM,sCAAsC,SAAS,EACvD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wDAAwD;AAElF,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -9,32 +9,21 @@ 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.
|
|
13
|
-
owner: z.
|
|
14
|
-
doctype: z.
|
|
15
|
-
creation: z.
|
|
16
|
-
modified: z.
|
|
17
|
-
docstatus: z.
|
|
18
|
-
modified_by: z.
|
|
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
|
-
}, z.core.$
|
|
20
|
+
}, z.core.$loose>;
|
|
21
21
|
declare const erpnextGetDocument: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
22
22
|
name: string;
|
|
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.cts.map
|
|
@@ -9,32 +9,21 @@ 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.
|
|
13
|
-
owner: z.
|
|
14
|
-
doctype: z.
|
|
15
|
-
creation: z.
|
|
16
|
-
modified: z.
|
|
17
|
-
docstatus: z.
|
|
18
|
-
modified_by: z.
|
|
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
|
-
}, z.core.$
|
|
20
|
+
}, z.core.$loose>;
|
|
21
21
|
declare const erpnextGetDocument: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
22
22
|
name: string;
|
|
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,20 +13,20 @@ 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.
|
|
17
|
-
owner: z.
|
|
18
|
-
doctype: z.
|
|
19
|
-
creation: z.
|
|
20
|
-
modified: z.
|
|
21
|
-
docstatus: z.
|
|
22
|
-
modified_by: z.
|
|
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",
|
|
26
26
|
name: "Get Document",
|
|
27
27
|
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.",
|
|
28
28
|
input: ErpnextGetDocumentInput,
|
|
29
|
-
output: z.object({ data: ErpnextGetDocument_DocumentDataSchema.nullable() }).describe("Response model for retrieving a document from ERPNext.")
|
|
29
|
+
output: z.object({ data: ErpnextGetDocument_DocumentDataSchema.nullable() }).passthrough().describe("Response model for retrieving a document from ERPNext.")
|
|
30
30
|
});
|
|
31
31
|
//#endregion
|
|
32
32
|
export { erpnextGetDocument };
|
|
@@ -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.
|
|
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}).passthrough().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,YAAY,CAAC,CAAC,SAAS,wDAOhB;AACV,CAAC"}
|
|
@@ -6,7 +6,7 @@ const ErpnextGetExchangeRateInput = zod.z.object({
|
|
|
6
6
|
from_currency: zod.z.string().describe("Source currency code in ISO 4217 format (e.g., 'USD', 'EUR', 'GBP'). This is the currency you are converting from."),
|
|
7
7
|
transaction_date: zod.z.string().describe("Optional date for the exchange rate in YYYY-MM-DD format. If not provided, the current date's exchange rate will be used.").optional()
|
|
8
8
|
}).describe("Request model for getting currency exchange rate between two currencies.");
|
|
9
|
-
const ErpnextGetExchangeRateOutput = zod.z.object({ message: zod.z.number().describe("The exchange rate from source currency to target currency. This represents how much 1 unit of from_currency equals in to_currency.").nullable() }).describe("Response model containing the exchange rate.");
|
|
9
|
+
const ErpnextGetExchangeRateOutput = zod.z.object({ message: zod.z.number().describe("The exchange rate from source currency to target currency. This represents how much 1 unit of from_currency equals in to_currency.").nullable() }).passthrough().describe("Response model containing the exchange rate.");
|
|
10
10
|
const erpnextGetExchangeRate = require_action.action("ERPNEXT_GET_EXCHANGE_RATE", {
|
|
11
11
|
slug: "erpnext-get-exchange-rate",
|
|
12
12
|
name: "Get Exchange Rate",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-exchange-rate.cjs","names":["z","action"],"sources":["../../src/actions/get-exchange-rate.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetExchangeRateInput = z.object({\n to_currency: z.string().describe(\"Target currency code in ISO 4217 format (e.g., 'EUR', 'USD', 'JPY'). This is the currency you are converting to.\"),\n from_currency: z.string().describe(\"Source currency code in ISO 4217 format (e.g., 'USD', 'EUR', 'GBP'). This is the currency you are converting from.\"),\n transaction_date: z.string().describe(\"Optional date for the exchange rate in YYYY-MM-DD format. If not provided, the current date's exchange rate will be used.\").optional(),\n}).describe(\"Request model for getting currency exchange rate between two currencies.\");\nexport const ErpnextGetExchangeRateOutput = z.object({\n message: z.number().describe(\"The exchange rate from source currency to target currency. This represents how much 1 unit of from_currency equals in to_currency.\").nullable(),\n}).describe(\"Response model containing the exchange rate.\");\n\nexport const erpnextGetExchangeRate = action(\"ERPNEXT_GET_EXCHANGE_RATE\", {\n slug: \"erpnext-get-exchange-rate\",\n name: \"Get Exchange Rate\",\n description: \"Tool to get the currency exchange rate between two currencies in ERPNext. Use when you need to convert amounts between different currencies or check current exchange rates.\",\n input: ErpnextGetExchangeRateInput,\n output: ErpnextGetExchangeRateOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kHAAkH;CACnJ,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH;CACvJ,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2HAA2H,CAAC,CAAC,SAAS;AAC9K,CAAC,CAAC,CAAC,SAAS,0EAA0E;AACtF,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oIAAoI,CAAC,CAAC,SAAS,EAC9K,CAAC,CAAC,CAAC,SAAS,8CAA8C;
|
|
1
|
+
{"version":3,"file":"get-exchange-rate.cjs","names":["z","action"],"sources":["../../src/actions/get-exchange-rate.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetExchangeRateInput = z.object({\n to_currency: z.string().describe(\"Target currency code in ISO 4217 format (e.g., 'EUR', 'USD', 'JPY'). This is the currency you are converting to.\"),\n from_currency: z.string().describe(\"Source currency code in ISO 4217 format (e.g., 'USD', 'EUR', 'GBP'). This is the currency you are converting from.\"),\n transaction_date: z.string().describe(\"Optional date for the exchange rate in YYYY-MM-DD format. If not provided, the current date's exchange rate will be used.\").optional(),\n}).describe(\"Request model for getting currency exchange rate between two currencies.\");\nexport const ErpnextGetExchangeRateOutput = z.object({\n message: z.number().describe(\"The exchange rate from source currency to target currency. This represents how much 1 unit of from_currency equals in to_currency.\").nullable(),\n}).passthrough().describe(\"Response model containing the exchange rate.\");\n\nexport const erpnextGetExchangeRate = action(\"ERPNEXT_GET_EXCHANGE_RATE\", {\n slug: \"erpnext-get-exchange-rate\",\n name: \"Get Exchange Rate\",\n description: \"Tool to get the currency exchange rate between two currencies in ERPNext. Use when you need to convert amounts between different currencies or check current exchange rates.\",\n input: ErpnextGetExchangeRateInput,\n output: ErpnextGetExchangeRateOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kHAAkH;CACnJ,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH;CACvJ,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2HAA2H,CAAC,CAAC,SAAS;AAC9K,CAAC,CAAC,CAAC,SAAS,0EAA0E;AACtF,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oIAAoI,CAAC,CAAC,SAAS,EAC9K,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAA8C;AAExE,MAAa,yBAAyBC,eAAAA,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -8,14 +8,12 @@ declare const ErpnextGetExchangeRateInput: z.ZodObject<{
|
|
|
8
8
|
}, z.core.$strip>;
|
|
9
9
|
declare const ErpnextGetExchangeRateOutput: z.ZodObject<{
|
|
10
10
|
message: z.ZodNullable<z.ZodNumber>;
|
|
11
|
-
}, z.core.$
|
|
11
|
+
}, z.core.$loose>;
|
|
12
12
|
declare const erpnextGetExchangeRate: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
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
|
|
@@ -8,14 +8,12 @@ declare const ErpnextGetExchangeRateInput: z.ZodObject<{
|
|
|
8
8
|
}, z.core.$strip>;
|
|
9
9
|
declare const ErpnextGetExchangeRateOutput: z.ZodObject<{
|
|
10
10
|
message: z.ZodNullable<z.ZodNumber>;
|
|
11
|
-
}, z.core.$
|
|
11
|
+
}, z.core.$loose>;
|
|
12
12
|
declare const erpnextGetExchangeRate: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
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
|
|
@@ -9,7 +9,7 @@ const erpnextGetExchangeRate = action("ERPNEXT_GET_EXCHANGE_RATE", {
|
|
|
9
9
|
from_currency: z.string().describe("Source currency code in ISO 4217 format (e.g., 'USD', 'EUR', 'GBP'). This is the currency you are converting from."),
|
|
10
10
|
transaction_date: z.string().describe("Optional date for the exchange rate in YYYY-MM-DD format. If not provided, the current date's exchange rate will be used.").optional()
|
|
11
11
|
}).describe("Request model for getting currency exchange rate between two currencies."),
|
|
12
|
-
output: z.object({ message: z.number().describe("The exchange rate from source currency to target currency. This represents how much 1 unit of from_currency equals in to_currency.").nullable() }).describe("Response model containing the exchange rate.")
|
|
12
|
+
output: z.object({ message: z.number().describe("The exchange rate from source currency to target currency. This represents how much 1 unit of from_currency equals in to_currency.").nullable() }).passthrough().describe("Response model containing the exchange rate.")
|
|
13
13
|
});
|
|
14
14
|
//#endregion
|
|
15
15
|
export { erpnextGetExchangeRate };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-exchange-rate.mjs","names":[],"sources":["../../src/actions/get-exchange-rate.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetExchangeRateInput = z.object({\n to_currency: z.string().describe(\"Target currency code in ISO 4217 format (e.g., 'EUR', 'USD', 'JPY'). This is the currency you are converting to.\"),\n from_currency: z.string().describe(\"Source currency code in ISO 4217 format (e.g., 'USD', 'EUR', 'GBP'). This is the currency you are converting from.\"),\n transaction_date: z.string().describe(\"Optional date for the exchange rate in YYYY-MM-DD format. If not provided, the current date's exchange rate will be used.\").optional(),\n}).describe(\"Request model for getting currency exchange rate between two currencies.\");\nexport const ErpnextGetExchangeRateOutput = z.object({\n message: z.number().describe(\"The exchange rate from source currency to target currency. This represents how much 1 unit of from_currency equals in to_currency.\").nullable(),\n}).describe(\"Response model containing the exchange rate.\");\n\nexport const erpnextGetExchangeRate = action(\"ERPNEXT_GET_EXCHANGE_RATE\", {\n slug: \"erpnext-get-exchange-rate\",\n name: \"Get Exchange Rate\",\n description: \"Tool to get the currency exchange rate between two currencies in ERPNext. Use when you need to convert amounts between different currencies or check current exchange rates.\",\n input: ErpnextGetExchangeRateInput,\n output: ErpnextGetExchangeRateOutput,\n});\n"],"mappings":";;AAaA,MAAa,yBAAyB,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAbyC,EAAE,OAAO;EAClD,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,kHAAkH;EACnJ,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH;EACvJ,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,2HAA2H,CAAC,CAAC,SAAS;CAC9K,CAAC,CAAC,CAAC,SAAS,0EASH;CACP,QAT0C,EAAE,OAAO,EACnD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,oIAAoI,CAAC,CAAC,SAAS,EAC9K,CAAC,CAAC,CAAC,SAAS,
|
|
1
|
+
{"version":3,"file":"get-exchange-rate.mjs","names":[],"sources":["../../src/actions/get-exchange-rate.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetExchangeRateInput = z.object({\n to_currency: z.string().describe(\"Target currency code in ISO 4217 format (e.g., 'EUR', 'USD', 'JPY'). This is the currency you are converting to.\"),\n from_currency: z.string().describe(\"Source currency code in ISO 4217 format (e.g., 'USD', 'EUR', 'GBP'). This is the currency you are converting from.\"),\n transaction_date: z.string().describe(\"Optional date for the exchange rate in YYYY-MM-DD format. If not provided, the current date's exchange rate will be used.\").optional(),\n}).describe(\"Request model for getting currency exchange rate between two currencies.\");\nexport const ErpnextGetExchangeRateOutput = z.object({\n message: z.number().describe(\"The exchange rate from source currency to target currency. This represents how much 1 unit of from_currency equals in to_currency.\").nullable(),\n}).passthrough().describe(\"Response model containing the exchange rate.\");\n\nexport const erpnextGetExchangeRate = action(\"ERPNEXT_GET_EXCHANGE_RATE\", {\n slug: \"erpnext-get-exchange-rate\",\n name: \"Get Exchange Rate\",\n description: \"Tool to get the currency exchange rate between two currencies in ERPNext. Use when you need to convert amounts between different currencies or check current exchange rates.\",\n input: ErpnextGetExchangeRateInput,\n output: ErpnextGetExchangeRateOutput,\n});\n"],"mappings":";;AAaA,MAAa,yBAAyB,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAbyC,EAAE,OAAO;EAClD,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,kHAAkH;EACnJ,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH;EACvJ,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,2HAA2H,CAAC,CAAC,SAAS;CAC9K,CAAC,CAAC,CAAC,SAAS,0EASH;CACP,QAT0C,EAAE,OAAO,EACnD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,oIAAoI,CAAC,CAAC,SAAS,EAC9K,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAOhB;AACV,CAAC"}
|
|
@@ -9,8 +9,8 @@ const ErpnextGetFiscalYear_FiscalYearInfoSchema = zod.z.object({
|
|
|
9
9
|
name: zod.z.string().describe("Fiscal year name (e.g., '2026', 'FY 2023-24')").nullable(),
|
|
10
10
|
year_end_date: zod.z.string().describe("End date of the fiscal year in YYYY-MM-DD format").nullable(),
|
|
11
11
|
year_start_date: zod.z.string().describe("Start date of the fiscal year in YYYY-MM-DD format").nullable()
|
|
12
|
-
}).describe("Fiscal year information.");
|
|
13
|
-
const ErpnextGetFiscalYearOutput = zod.z.object({ message: zod.z.union([ErpnextGetFiscalYear_FiscalYearInfoSchema, zod.z.array(zod.z.string())]) }).describe("Response model containing fiscal year information.");
|
|
12
|
+
}).passthrough().describe("Fiscal year information.");
|
|
13
|
+
const ErpnextGetFiscalYearOutput = zod.z.object({ message: zod.z.union([ErpnextGetFiscalYear_FiscalYearInfoSchema, zod.z.array(zod.z.string())]) }).passthrough().describe("Response model containing fiscal year information.");
|
|
14
14
|
const erpnextGetFiscalYear = require_action.action("ERPNEXT_GET_FISCAL_YEAR", {
|
|
15
15
|
slug: "erpnext-get-fiscal-year",
|
|
16
16
|
name: "Get Fiscal Year",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-fiscal-year.cjs","names":["z","action"],"sources":["../../src/actions/get-fiscal-year.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetFiscalYearInput = z.object({\n date: z.string().describe(\"Date to check for fiscal year in YYYY-MM-DD format. If not provided, the current date will be used.\").optional(),\n company: z.string().describe(\"Company name to get fiscal year for. If not provided, the default company will be used.\").optional(),\n}).describe(\"Request model for getting fiscal year information for a given date.\");\nconst ErpnextGetFiscalYear_FiscalYearInfoSchema = z.object({\n name: z.string().describe(\"Fiscal year name (e.g., '2026', 'FY 2023-24')\").nullable(),\n year_end_date: z.string().describe(\"End date of the fiscal year in YYYY-MM-DD format\").nullable(),\n year_start_date: z.string().describe(\"Start date of the fiscal year in YYYY-MM-DD format\").nullable(),\n}).describe(\"Fiscal year information.\");\nexport const ErpnextGetFiscalYearOutput = z.object({\n message: z.union([ErpnextGetFiscalYear_FiscalYearInfoSchema, z.array(z.string())]),\n}).describe(\"Response model containing fiscal year information.\");\n\nexport const erpnextGetFiscalYear = action(\"ERPNEXT_GET_FISCAL_YEAR\", {\n slug: \"erpnext-get-fiscal-year\",\n name: \"Get Fiscal Year\",\n description: \"Tool to get fiscal year information for a given date in ERPNext. Use when you need to determine which fiscal year a specific date falls into or retrieve fiscal year boundaries.\",\n input: ErpnextGetFiscalYearInput,\n output: ErpnextGetFiscalYearOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS;CAC1I,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS;AACnI,CAAC,CAAC,CAAC,SAAS,qEAAqE;AACjF,MAAM,4CAA4CA,IAAAA,EAAE,OAAO;CACzD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACpF,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CAChG,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,SAAS,0BAA0B;
|
|
1
|
+
{"version":3,"file":"get-fiscal-year.cjs","names":["z","action"],"sources":["../../src/actions/get-fiscal-year.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetFiscalYearInput = z.object({\n date: z.string().describe(\"Date to check for fiscal year in YYYY-MM-DD format. If not provided, the current date will be used.\").optional(),\n company: z.string().describe(\"Company name to get fiscal year for. If not provided, the default company will be used.\").optional(),\n}).describe(\"Request model for getting fiscal year information for a given date.\");\nconst ErpnextGetFiscalYear_FiscalYearInfoSchema = z.object({\n name: z.string().describe(\"Fiscal year name (e.g., '2026', 'FY 2023-24')\").nullable(),\n year_end_date: z.string().describe(\"End date of the fiscal year in YYYY-MM-DD format\").nullable(),\n year_start_date: z.string().describe(\"Start date of the fiscal year in YYYY-MM-DD format\").nullable(),\n}).passthrough().describe(\"Fiscal year information.\");\nexport const ErpnextGetFiscalYearOutput = z.object({\n message: z.union([ErpnextGetFiscalYear_FiscalYearInfoSchema, z.array(z.string())]),\n}).passthrough().describe(\"Response model containing fiscal year information.\");\n\nexport const erpnextGetFiscalYear = action(\"ERPNEXT_GET_FISCAL_YEAR\", {\n slug: \"erpnext-get-fiscal-year\",\n name: \"Get Fiscal Year\",\n description: \"Tool to get fiscal year information for a given date in ERPNext. Use when you need to determine which fiscal year a specific date falls into or retrieve fiscal year boundaries.\",\n input: ErpnextGetFiscalYearInput,\n output: ErpnextGetFiscalYearOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS;CAC1I,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS;AACnI,CAAC,CAAC,CAAC,SAAS,qEAAqE;AACjF,MAAM,4CAA4CA,IAAAA,EAAE,OAAO;CACzD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACpF,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CAChG,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0BAA0B;AACpD,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,SAASA,IAAAA,EAAE,MAAM,CAAC,2CAA2CA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,EACnF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAAoD;AAE9E,MAAa,uBAAuBC,eAAAA,OAAO,2BAA2B;CACpE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -10,18 +10,12 @@ declare const ErpnextGetFiscalYearOutput: z.ZodObject<{
|
|
|
10
10
|
name: z.ZodNullable<z.ZodString>;
|
|
11
11
|
year_end_date: z.ZodNullable<z.ZodString>;
|
|
12
12
|
year_start_date: z.ZodNullable<z.ZodString>;
|
|
13
|
-
}, z.core.$
|
|
14
|
-
}, z.core.$
|
|
13
|
+
}, z.core.$loose>, z.ZodArray<z.ZodString>]>;
|
|
14
|
+
}, z.core.$loose>;
|
|
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
|
|
@@ -10,18 +10,12 @@ declare const ErpnextGetFiscalYearOutput: z.ZodObject<{
|
|
|
10
10
|
name: z.ZodNullable<z.ZodString>;
|
|
11
11
|
year_end_date: z.ZodNullable<z.ZodString>;
|
|
12
12
|
year_start_date: z.ZodNullable<z.ZodString>;
|
|
13
|
-
}, z.core.$
|
|
14
|
-
}, z.core.$
|
|
13
|
+
}, z.core.$loose>, z.ZodArray<z.ZodString>]>;
|
|
14
|
+
}, z.core.$loose>;
|
|
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
|
|
@@ -9,13 +9,13 @@ const ErpnextGetFiscalYear_FiscalYearInfoSchema = z.object({
|
|
|
9
9
|
name: z.string().describe("Fiscal year name (e.g., '2026', 'FY 2023-24')").nullable(),
|
|
10
10
|
year_end_date: z.string().describe("End date of the fiscal year in YYYY-MM-DD format").nullable(),
|
|
11
11
|
year_start_date: z.string().describe("Start date of the fiscal year in YYYY-MM-DD format").nullable()
|
|
12
|
-
}).describe("Fiscal year information.");
|
|
12
|
+
}).passthrough().describe("Fiscal year information.");
|
|
13
13
|
const erpnextGetFiscalYear = action("ERPNEXT_GET_FISCAL_YEAR", {
|
|
14
14
|
slug: "erpnext-get-fiscal-year",
|
|
15
15
|
name: "Get Fiscal Year",
|
|
16
16
|
description: "Tool to get fiscal year information for a given date in ERPNext. Use when you need to determine which fiscal year a specific date falls into or retrieve fiscal year boundaries.",
|
|
17
17
|
input: ErpnextGetFiscalYearInput,
|
|
18
|
-
output: z.object({ message: z.union([ErpnextGetFiscalYear_FiscalYearInfoSchema, z.array(z.string())]) }).describe("Response model containing fiscal year information.")
|
|
18
|
+
output: z.object({ message: z.union([ErpnextGetFiscalYear_FiscalYearInfoSchema, z.array(z.string())]) }).passthrough().describe("Response model containing fiscal year information.")
|
|
19
19
|
});
|
|
20
20
|
//#endregion
|
|
21
21
|
export { erpnextGetFiscalYear };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-fiscal-year.mjs","names":[],"sources":["../../src/actions/get-fiscal-year.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetFiscalYearInput = z.object({\n date: z.string().describe(\"Date to check for fiscal year in YYYY-MM-DD format. If not provided, the current date will be used.\").optional(),\n company: z.string().describe(\"Company name to get fiscal year for. If not provided, the default company will be used.\").optional(),\n}).describe(\"Request model for getting fiscal year information for a given date.\");\nconst ErpnextGetFiscalYear_FiscalYearInfoSchema = z.object({\n name: z.string().describe(\"Fiscal year name (e.g., '2026', 'FY 2023-24')\").nullable(),\n year_end_date: z.string().describe(\"End date of the fiscal year in YYYY-MM-DD format\").nullable(),\n year_start_date: z.string().describe(\"Start date of the fiscal year in YYYY-MM-DD format\").nullable(),\n}).describe(\"Fiscal year information.\");\nexport const ErpnextGetFiscalYearOutput = z.object({\n message: z.union([ErpnextGetFiscalYear_FiscalYearInfoSchema, z.array(z.string())]),\n}).describe(\"Response model containing fiscal year information.\");\n\nexport const erpnextGetFiscalYear = action(\"ERPNEXT_GET_FISCAL_YEAR\", {\n slug: \"erpnext-get-fiscal-year\",\n name: \"Get Fiscal Year\",\n description: \"Tool to get fiscal year information for a given date in ERPNext. Use when you need to determine which fiscal year a specific date falls into or retrieve fiscal year boundaries.\",\n input: ErpnextGetFiscalYearInput,\n output: ErpnextGetFiscalYearOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4B,EAAE,OAAO;CAChD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS;CAC1I,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS;AACnI,CAAC,CAAC,CAAC,SAAS,qEAAqE;AACjF,MAAM,4CAA4C,EAAE,OAAO;CACzD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACpF,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CAChG,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,SAAS,0BAA0B;
|
|
1
|
+
{"version":3,"file":"get-fiscal-year.mjs","names":[],"sources":["../../src/actions/get-fiscal-year.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetFiscalYearInput = z.object({\n date: z.string().describe(\"Date to check for fiscal year in YYYY-MM-DD format. If not provided, the current date will be used.\").optional(),\n company: z.string().describe(\"Company name to get fiscal year for. If not provided, the default company will be used.\").optional(),\n}).describe(\"Request model for getting fiscal year information for a given date.\");\nconst ErpnextGetFiscalYear_FiscalYearInfoSchema = z.object({\n name: z.string().describe(\"Fiscal year name (e.g., '2026', 'FY 2023-24')\").nullable(),\n year_end_date: z.string().describe(\"End date of the fiscal year in YYYY-MM-DD format\").nullable(),\n year_start_date: z.string().describe(\"Start date of the fiscal year in YYYY-MM-DD format\").nullable(),\n}).passthrough().describe(\"Fiscal year information.\");\nexport const ErpnextGetFiscalYearOutput = z.object({\n message: z.union([ErpnextGetFiscalYear_FiscalYearInfoSchema, z.array(z.string())]),\n}).passthrough().describe(\"Response model containing fiscal year information.\");\n\nexport const erpnextGetFiscalYear = action(\"ERPNEXT_GET_FISCAL_YEAR\", {\n slug: \"erpnext-get-fiscal-year\",\n name: \"Get Fiscal Year\",\n description: \"Tool to get fiscal year information for a given date in ERPNext. Use when you need to determine which fiscal year a specific date falls into or retrieve fiscal year boundaries.\",\n input: ErpnextGetFiscalYearInput,\n output: ErpnextGetFiscalYearOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4B,EAAE,OAAO;CAChD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS;CAC1I,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS;AACnI,CAAC,CAAC,CAAC,SAAS,qEAAqE;AACjF,MAAM,4CAA4C,EAAE,OAAO;CACzD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACpF,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CAChG,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0BAA0B;AAKpD,MAAa,uBAAuB,OAAO,2BAA2B;CACpE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATwC,EAAE,OAAO,EACjD,SAAS,EAAE,MAAM,CAAC,2CAA2C,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,EACnF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAOhB;AACV,CAAC"}
|
|
@@ -2,7 +2,7 @@ const require_action = require("../action.cjs");
|
|
|
2
2
|
let zod = require("zod");
|
|
3
3
|
//#region src/actions/get-framework-version.ts
|
|
4
4
|
const ErpnextGetFrameworkVersionInput = zod.z.object({}).describe("Request model for getting Frappe framework version.\nThis action requires no parameters.");
|
|
5
|
-
const ErpnextGetFrameworkVersionOutput = zod.z.object({ message: zod.z.
|
|
5
|
+
const ErpnextGetFrameworkVersionOutput = zod.z.object({ message: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Dictionary mapping app names to their version information. Always includes 'frappe' and may include 'erpnext' and other installed apps.") }).passthrough().describe("Response model containing version information for all installed apps.");
|
|
6
6
|
const erpnextGetFrameworkVersion = require_action.action("ERPNEXT_GET_FRAMEWORK_VERSION", {
|
|
7
7
|
slug: "erpnext-get-framework-version",
|
|
8
8
|
name: "Get Framework Version",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-framework-version.cjs","names":["z","action"],"sources":["../../src/actions/get-framework-version.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetFrameworkVersionInput = z.object({}).describe(\"Request model for getting Frappe framework version.\\nThis action requires no parameters.\");\nexport const ErpnextGetFrameworkVersionOutput = z.object({\n message: z.
|
|
1
|
+
{"version":3,"file":"get-framework-version.cjs","names":["z","action"],"sources":["../../src/actions/get-framework-version.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetFrameworkVersionInput = z.object({}).describe(\"Request model for getting Frappe framework version.\\nThis action requires no parameters.\");\nexport const ErpnextGetFrameworkVersionOutput = z.object({\n message: z.record(z.string(), z.unknown()).describe(\"Dictionary mapping app names to their version information. Always includes 'frappe' and may include 'erpnext' and other installed apps.\"),\n}).passthrough().describe(\"Response model containing version information for all installed apps.\");\n\nexport const erpnextGetFrameworkVersion = action(\"ERPNEXT_GET_FRAMEWORK_VERSION\", {\n slug: \"erpnext-get-framework-version\",\n name: \"Get Framework Version\",\n description: \"Tool to get the Frappe framework version and all installed app versions. Use when you need to check the ERPNext/Frappe system version for compatibility or debugging purposes.\",\n input: ErpnextGetFrameworkVersionInput,\n output: ErpnextGetFrameworkVersionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,0FAA0F;AAC/J,MAAa,mCAAmCA,IAAAA,EAAE,OAAO,EACvD,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yIAAyI,EAC/L,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uEAAuE;AAEjG,MAAa,6BAA6BC,eAAAA,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -3,11 +3,9 @@ import { z } from "zod";
|
|
|
3
3
|
//#region src/actions/get-framework-version.d.ts
|
|
4
4
|
declare const ErpnextGetFrameworkVersionInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
5
|
declare const ErpnextGetFrameworkVersionOutput: z.ZodObject<{
|
|
6
|
-
message: z.
|
|
7
|
-
}, z.core.$
|
|
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]>;
|
|
6
|
+
message: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
7
|
+
}, z.core.$loose>;
|
|
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
|
|
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"}
|
|
@@ -3,11 +3,9 @@ import { z } from "zod";
|
|
|
3
3
|
//#region src/actions/get-framework-version.d.ts
|
|
4
4
|
declare const ErpnextGetFrameworkVersionInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
5
|
declare const ErpnextGetFrameworkVersionOutput: z.ZodObject<{
|
|
6
|
-
message: z.
|
|
7
|
-
}, z.core.$
|
|
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]>;
|
|
6
|
+
message: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
7
|
+
}, z.core.$loose>;
|
|
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
|
|
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"}
|
|
@@ -5,7 +5,7 @@ const erpnextGetFrameworkVersion = action("ERPNEXT_GET_FRAMEWORK_VERSION", {
|
|
|
5
5
|
name: "Get Framework Version",
|
|
6
6
|
description: "Tool to get the Frappe framework version and all installed app versions. Use when you need to check the ERPNext/Frappe system version for compatibility or debugging purposes.",
|
|
7
7
|
input: z.object({}).describe("Request model for getting Frappe framework version.\nThis action requires no parameters."),
|
|
8
|
-
output: z.object({ message: z.
|
|
8
|
+
output: z.object({ message: z.record(z.string(), z.unknown()).describe("Dictionary mapping app names to their version information. Always includes 'frappe' and may include 'erpnext' and other installed apps.") }).passthrough().describe("Response model containing version information for all installed apps.")
|
|
9
9
|
});
|
|
10
10
|
//#endregion
|
|
11
11
|
export { erpnextGetFrameworkVersion };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-framework-version.mjs","names":[],"sources":["../../src/actions/get-framework-version.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetFrameworkVersionInput = z.object({}).describe(\"Request model for getting Frappe framework version.\\nThis action requires no parameters.\");\nexport const ErpnextGetFrameworkVersionOutput = z.object({\n message: z.
|
|
1
|
+
{"version":3,"file":"get-framework-version.mjs","names":[],"sources":["../../src/actions/get-framework-version.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetFrameworkVersionInput = z.object({}).describe(\"Request model for getting Frappe framework version.\\nThis action requires no parameters.\");\nexport const ErpnextGetFrameworkVersionOutput = z.object({\n message: z.record(z.string(), z.unknown()).describe(\"Dictionary mapping app names to their version information. Always includes 'frappe' and may include 'erpnext' and other installed apps.\"),\n}).passthrough().describe(\"Response model containing version information for all installed apps.\");\n\nexport const erpnextGetFrameworkVersion = action(\"ERPNEXT_GET_FRAMEWORK_VERSION\", {\n slug: \"erpnext-get-framework-version\",\n name: \"Get Framework Version\",\n description: \"Tool to get the Frappe framework version and all installed app versions. Use when you need to check the ERPNext/Frappe system version for compatibility or debugging purposes.\",\n input: ErpnextGetFrameworkVersionInput,\n output: ErpnextGetFrameworkVersionOutput,\n});\n"],"mappings":";;AASA,MAAa,6BAA6B,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAT6C,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,0FAS5D;CACP,QAT8C,EAAE,OAAO,EACvD,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yIAAyI,EAC/L,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uEAOhB;AACV,CAAC"}
|
|
@@ -14,35 +14,35 @@ 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.
|
|
18
|
-
rate: zod.z.
|
|
19
|
-
brand: zod.z.
|
|
20
|
-
amount: zod.z.
|
|
21
|
-
base_rate: zod.z.
|
|
22
|
-
item_code: zod.z.
|
|
23
|
-
item_name: zod.z.
|
|
24
|
-
stock_qty: zod.z.
|
|
25
|
-
stock_uom: zod.z.
|
|
26
|
-
warehouse: zod.z.
|
|
27
|
-
actual_qty: zod.z.
|
|
28
|
-
item_group: zod.z.
|
|
29
|
-
weight_uom: zod.z.
|
|
30
|
-
base_amount: zod.z.
|
|
31
|
-
cost_center: zod.z.
|
|
32
|
-
description: zod.z.
|
|
33
|
-
has_batch_no: zod.z.
|
|
34
|
-
tax_category: zod.z.
|
|
35
|
-
total_weight: zod.z.
|
|
36
|
-
has_serial_no: zod.z.
|
|
37
|
-
projected_qty: zod.z.
|
|
38
|
-
income_account: zod.z.
|
|
39
|
-
expense_account: zod.z.
|
|
40
|
-
price_list_rate: zod.z.
|
|
41
|
-
weight_per_unit: zod.z.
|
|
42
|
-
conversion_factor: zod.z.
|
|
43
|
-
item_tax_template: zod.z.
|
|
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
|
-
const ErpnextGetItemDetailsOutput = zod.z.object({ message: ErpnextGetItemDetails_ItemDetailsDataSchema.nullable() }).describe("Response model containing detailed item information.");
|
|
45
|
+
const ErpnextGetItemDetailsOutput = zod.z.object({ message: ErpnextGetItemDetails_ItemDetailsDataSchema.nullable() }).passthrough().describe("Response model containing detailed item information.");
|
|
46
46
|
const erpnextGetItemDetails = require_action.action("ERPNEXT_GET_ITEM_DETAILS", {
|
|
47
47
|
slug: "erpnext-get-item-details",
|
|
48
48
|
name: "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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AAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS,CAAC;CAC9H,iBAAiBA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS,CAAC;CAChI,iBAAiBA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS,CAAC;CAChI,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}).passthrough().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,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