@keystrokehq/erpnext 0.1.0 → 0.1.1
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 +11 -11
- package/dist/actions/add-comment.cjs.map +1 -1
- package/dist/actions/add-comment.d.cts +39 -3
- package/dist/actions/add-comment.d.cts.map +1 -1
- package/dist/actions/add-comment.d.mts +39 -3
- package/dist/actions/add-comment.d.mts.map +1 -1
- package/dist/actions/add-comment.mjs +11 -11
- 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 +15 -3
- package/dist/actions/add-tag.d.cts.map +1 -1
- package/dist/actions/add-tag.d.mts +15 -3
- package/dist/actions/add-tag.d.mts.map +1 -1
- package/dist/actions/add-tag.mjs +1 -1
- package/dist/actions/add-tag.mjs.map +1 -1
- package/dist/actions/apply-workflow.cjs +4 -4
- package/dist/actions/apply-workflow.cjs.map +1 -1
- package/dist/actions/apply-workflow.d.cts +17 -3
- package/dist/actions/apply-workflow.d.cts.map +1 -1
- package/dist/actions/apply-workflow.d.mts +17 -3
- package/dist/actions/apply-workflow.d.mts.map +1 -1
- package/dist/actions/apply-workflow.mjs +4 -4
- package/dist/actions/apply-workflow.mjs.map +1 -1
- package/dist/actions/cancel-document.cjs +2 -2
- package/dist/actions/cancel-document.cjs.map +1 -1
- package/dist/actions/cancel-document.d.cts +15 -3
- package/dist/actions/cancel-document.d.cts.map +1 -1
- package/dist/actions/cancel-document.d.mts +15 -3
- package/dist/actions/cancel-document.d.mts.map +1 -1
- package/dist/actions/cancel-document.mjs +2 -2
- package/dist/actions/cancel-document.mjs.map +1 -1
- package/dist/actions/create-document.cjs +7 -7
- package/dist/actions/create-document.cjs.map +1 -1
- package/dist/actions/create-document.d.cts +30 -3
- package/dist/actions/create-document.d.cts.map +1 -1
- package/dist/actions/create-document.d.mts +30 -3
- package/dist/actions/create-document.d.mts.map +1 -1
- package/dist/actions/create-document.mjs +7 -7
- package/dist/actions/create-document.mjs.map +1 -1
- package/dist/actions/create-timesheet.cjs +7 -7
- package/dist/actions/create-timesheet.cjs.map +1 -1
- package/dist/actions/create-timesheet.d.cts +43 -3
- package/dist/actions/create-timesheet.d.cts.map +1 -1
- package/dist/actions/create-timesheet.d.mts +43 -3
- package/dist/actions/create-timesheet.d.mts.map +1 -1
- package/dist/actions/create-timesheet.mjs +7 -7
- 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 +13 -3
- package/dist/actions/delete-document.d.cts.map +1 -1
- package/dist/actions/delete-document.d.mts +13 -3
- package/dist/actions/delete-document.d.mts.map +1 -1
- package/dist/actions/delete-document.mjs +1 -1
- package/dist/actions/delete-document.mjs.map +1 -1
- package/dist/actions/download-file.cjs +3 -3
- package/dist/actions/download-file.cjs.map +1 -1
- package/dist/actions/download-file.d.cts +19 -3
- package/dist/actions/download-file.d.cts.map +1 -1
- package/dist/actions/download-file.d.mts +19 -3
- package/dist/actions/download-file.d.mts.map +1 -1
- package/dist/actions/download-file.mjs +3 -3
- package/dist/actions/download-file.mjs.map +1 -1
- package/dist/actions/download-pdf.cjs +3 -3
- package/dist/actions/download-pdf.cjs.map +1 -1
- package/dist/actions/download-pdf.d.cts +25 -3
- package/dist/actions/download-pdf.d.cts.map +1 -1
- package/dist/actions/download-pdf.d.mts +25 -3
- package/dist/actions/download-pdf.d.mts.map +1 -1
- package/dist/actions/download-pdf.mjs +3 -3
- package/dist/actions/download-pdf.mjs.map +1 -1
- package/dist/actions/get-all-languages.cjs +2 -2
- package/dist/actions/get-all-languages.cjs.map +1 -1
- package/dist/actions/get-all-languages.d.cts +17 -3
- package/dist/actions/get-all-languages.d.cts.map +1 -1
- package/dist/actions/get-all-languages.d.mts +17 -3
- package/dist/actions/get-all-languages.d.mts.map +1 -1
- package/dist/actions/get-all-languages.mjs +2 -2
- package/dist/actions/get-all-languages.mjs.map +1 -1
- package/dist/actions/get-all-roles.cjs.map +1 -1
- package/dist/actions/get-all-roles.d.cts +7 -3
- package/dist/actions/get-all-roles.d.cts.map +1 -1
- package/dist/actions/get-all-roles.d.mts +7 -3
- package/dist/actions/get-all-roles.d.mts.map +1 -1
- package/dist/actions/get-all-roles.mjs.map +1 -1
- package/dist/actions/get-client.cjs +8 -8
- package/dist/actions/get-client.cjs.map +1 -1
- package/dist/actions/get-client.d.cts +34 -3
- package/dist/actions/get-client.d.cts.map +1 -1
- package/dist/actions/get-client.d.mts +34 -3
- package/dist/actions/get-client.d.mts.map +1 -1
- package/dist/actions/get-client.mjs +8 -8
- package/dist/actions/get-client.mjs.map +1 -1
- package/dist/actions/get-count.cjs +1 -1
- package/dist/actions/get-count.cjs.map +1 -1
- package/dist/actions/get-count.d.cts +13 -3
- package/dist/actions/get-count.d.cts.map +1 -1
- package/dist/actions/get-count.d.mts +13 -3
- package/dist/actions/get-count.d.mts.map +1 -1
- package/dist/actions/get-count.mjs +1 -1
- package/dist/actions/get-count.mjs.map +1 -1
- package/dist/actions/get-doc-with-meta.cjs +20 -20
- package/dist/actions/get-doc-with-meta.cjs.map +1 -1
- package/dist/actions/get-doc-with-meta.d.cts +53 -3
- package/dist/actions/get-doc-with-meta.d.cts.map +1 -1
- package/dist/actions/get-doc-with-meta.d.mts +53 -3
- package/dist/actions/get-doc-with-meta.d.mts.map +1 -1
- package/dist/actions/get-doc-with-meta.mjs +20 -20
- package/dist/actions/get-doc-with-meta.mjs.map +1 -1
- package/dist/actions/get-doctype-meta.cjs +3 -3
- package/dist/actions/get-doctype-meta.cjs.map +1 -1
- package/dist/actions/get-doctype-meta.d.cts +17 -3
- package/dist/actions/get-doctype-meta.d.cts.map +1 -1
- package/dist/actions/get-doctype-meta.d.mts +17 -3
- package/dist/actions/get-doctype-meta.d.mts.map +1 -1
- package/dist/actions/get-doctype-meta.mjs +3 -3
- package/dist/actions/get-doctype-meta.mjs.map +1 -1
- package/dist/actions/get-document.cjs +7 -7
- package/dist/actions/get-document.cjs.map +1 -1
- package/dist/actions/get-document.d.cts +34 -3
- package/dist/actions/get-document.d.cts.map +1 -1
- package/dist/actions/get-document.d.mts +34 -3
- package/dist/actions/get-document.d.mts.map +1 -1
- package/dist/actions/get-document.mjs +7 -7
- 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 +15 -3
- package/dist/actions/get-exchange-rate.d.cts.map +1 -1
- package/dist/actions/get-exchange-rate.d.mts +15 -3
- package/dist/actions/get-exchange-rate.d.mts.map +1 -1
- 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 +3 -3
- package/dist/actions/get-fiscal-year.cjs.map +1 -1
- package/dist/actions/get-fiscal-year.d.cts +21 -3
- package/dist/actions/get-fiscal-year.d.cts.map +1 -1
- package/dist/actions/get-fiscal-year.d.mts +21 -3
- package/dist/actions/get-fiscal-year.d.mts.map +1 -1
- package/dist/actions/get-fiscal-year.mjs +3 -3
- package/dist/actions/get-fiscal-year.mjs.map +1 -1
- package/dist/actions/get-framework-version.cjs.map +1 -1
- package/dist/actions/get-framework-version.d.cts +7 -3
- package/dist/actions/get-framework-version.d.cts.map +1 -1
- package/dist/actions/get-framework-version.d.mts +7 -3
- package/dist/actions/get-framework-version.d.mts.map +1 -1
- package/dist/actions/get-framework-version.mjs.map +1 -1
- package/dist/actions/get-item-details.cjs +27 -27
- package/dist/actions/get-item-details.cjs.map +1 -1
- package/dist/actions/get-item-details.d.cts +90 -3
- package/dist/actions/get-item-details.d.cts.map +1 -1
- package/dist/actions/get-item-details.d.mts +90 -3
- package/dist/actions/get-item-details.d.mts.map +1 -1
- package/dist/actions/get-item-details.mjs +27 -27
- package/dist/actions/get-item-details.mjs.map +1 -1
- package/dist/actions/get-list.cjs.map +1 -1
- package/dist/actions/get-list.d.cts +21 -3
- package/dist/actions/get-list.d.cts.map +1 -1
- package/dist/actions/get-list.d.mts +21 -3
- package/dist/actions/get-list.d.mts.map +1 -1
- 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 +7 -3
- package/dist/actions/get-logged-user.d.cts.map +1 -1
- package/dist/actions/get-logged-user.d.mts +7 -3
- 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 +36 -36
- package/dist/actions/get-party-details.cjs.map +1 -1
- package/dist/actions/get-party-details.d.cts +90 -3
- package/dist/actions/get-party-details.d.cts.map +1 -1
- package/dist/actions/get-party-details.d.mts +90 -3
- package/dist/actions/get-party-details.d.mts.map +1 -1
- package/dist/actions/get-party-details.mjs +36 -36
- package/dist/actions/get-party-details.mjs.map +1 -1
- package/dist/actions/get-payment-entry.cjs +26 -26
- package/dist/actions/get-payment-entry.cjs.map +1 -1
- package/dist/actions/get-payment-entry.d.cts +71 -3
- package/dist/actions/get-payment-entry.d.cts.map +1 -1
- package/dist/actions/get-payment-entry.d.mts +71 -3
- package/dist/actions/get-payment-entry.d.mts.map +1 -1
- package/dist/actions/get-payment-entry.mjs +26 -26
- 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 +15 -3
- package/dist/actions/get-stock-balance.d.cts.map +1 -1
- package/dist/actions/get-stock-balance.d.mts +15 -3
- package/dist/actions/get-stock-balance.d.mts.map +1 -1
- 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.map +1 -1
- package/dist/actions/get-timezones.d.cts +11 -3
- package/dist/actions/get-timezones.d.cts.map +1 -1
- package/dist/actions/get-timezones.d.mts +11 -3
- package/dist/actions/get-timezones.d.mts.map +1 -1
- package/dist/actions/get-timezones.mjs.map +1 -1
- package/dist/actions/get-user-roles.cjs.map +1 -1
- package/dist/actions/get-user-roles.d.cts +11 -3
- package/dist/actions/get-user-roles.d.cts.map +1 -1
- package/dist/actions/get-user-roles.d.mts +11 -3
- package/dist/actions/get-user-roles.d.mts.map +1 -1
- package/dist/actions/get-user-roles.mjs.map +1 -1
- package/dist/actions/get-value.cjs.map +1 -1
- package/dist/actions/get-value.d.cts +17 -3
- package/dist/actions/get-value.d.cts.map +1 -1
- package/dist/actions/get-value.d.mts +17 -3
- package/dist/actions/get-value.d.mts.map +1 -1
- package/dist/actions/get-value.mjs.map +1 -1
- package/dist/actions/get-workflow-transitions.cjs +7 -7
- package/dist/actions/get-workflow-transitions.cjs.map +1 -1
- package/dist/actions/get-workflow-transitions.d.cts +27 -3
- package/dist/actions/get-workflow-transitions.d.cts.map +1 -1
- package/dist/actions/get-workflow-transitions.d.mts +27 -3
- package/dist/actions/get-workflow-transitions.d.mts.map +1 -1
- package/dist/actions/get-workflow-transitions.mjs +7 -7
- package/dist/actions/get-workflow-transitions.mjs.map +1 -1
- package/dist/actions/insert-document.cjs.map +1 -1
- package/dist/actions/insert-document.d.cts +11 -3
- package/dist/actions/insert-document.d.cts.map +1 -1
- package/dist/actions/insert-document.d.mts +11 -3
- package/dist/actions/insert-document.d.mts.map +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 +18 -3
- package/dist/actions/insert-many.d.cts.map +1 -1
- package/dist/actions/insert-many.d.mts +18 -3
- package/dist/actions/insert-many.d.mts.map +1 -1
- 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 +17 -3
- package/dist/actions/list-doctypes.d.cts.map +1 -1
- package/dist/actions/list-doctypes.d.mts +17 -3
- 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.map +1 -1
- package/dist/actions/list-documents.d.cts +19 -3
- package/dist/actions/list-documents.d.cts.map +1 -1
- package/dist/actions/list-documents.d.mts +19 -3
- package/dist/actions/list-documents.d.mts.map +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 +22 -3
- package/dist/actions/list-employees.d.cts.map +1 -1
- package/dist/actions/list-employees.d.mts +22 -3
- package/dist/actions/list-employees.d.mts.map +1 -1
- package/dist/actions/list-employees.mjs +1 -1
- package/dist/actions/list-employees.mjs.map +1 -1
- package/dist/actions/list-projects.cjs.map +1 -1
- package/dist/actions/list-projects.d.cts +17 -3
- package/dist/actions/list-projects.d.cts.map +1 -1
- package/dist/actions/list-projects.d.mts +17 -3
- package/dist/actions/list-projects.d.mts.map +1 -1
- package/dist/actions/list-projects.mjs.map +1 -1
- package/dist/actions/list-timesheets.cjs.map +1 -1
- package/dist/actions/list-timesheets.d.cts +17 -3
- package/dist/actions/list-timesheets.d.cts.map +1 -1
- package/dist/actions/list-timesheets.d.mts +17 -3
- package/dist/actions/list-timesheets.d.mts.map +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 +30 -3
- package/dist/actions/list-webhooks.d.cts.map +1 -1
- package/dist/actions/list-webhooks.d.mts +30 -3
- package/dist/actions/list-webhooks.d.mts.map +1 -1
- package/dist/actions/list-webhooks.mjs +5 -5
- package/dist/actions/list-webhooks.mjs.map +1 -1
- package/dist/actions/make-delivery-note.cjs +11 -11
- package/dist/actions/make-delivery-note.cjs.map +1 -1
- package/dist/actions/make-delivery-note.d.cts +36 -3
- package/dist/actions/make-delivery-note.d.cts.map +1 -1
- package/dist/actions/make-delivery-note.d.mts +36 -3
- package/dist/actions/make-delivery-note.d.mts.map +1 -1
- package/dist/actions/make-delivery-note.mjs +11 -11
- package/dist/actions/make-delivery-note.mjs.map +1 -1
- package/dist/actions/make-purchase-order.cjs +22 -22
- package/dist/actions/make-purchase-order.cjs.map +1 -1
- package/dist/actions/make-purchase-order.d.cts +61 -3
- package/dist/actions/make-purchase-order.d.cts.map +1 -1
- package/dist/actions/make-purchase-order.d.mts +61 -3
- package/dist/actions/make-purchase-order.d.mts.map +1 -1
- package/dist/actions/make-purchase-order.mjs +22 -22
- package/dist/actions/make-purchase-order.mjs.map +1 -1
- package/dist/actions/make-sales-invoice.cjs +13 -13
- package/dist/actions/make-sales-invoice.cjs.map +1 -1
- package/dist/actions/make-sales-invoice.d.cts +40 -3
- package/dist/actions/make-sales-invoice.d.cts.map +1 -1
- package/dist/actions/make-sales-invoice.d.mts +40 -3
- package/dist/actions/make-sales-invoice.d.mts.map +1 -1
- package/dist/actions/make-sales-invoice.mjs +13 -13
- package/dist/actions/make-sales-invoice.mjs.map +1 -1
- package/dist/actions/make-stock-entry.cjs +9 -9
- package/dist/actions/make-stock-entry.cjs.map +1 -1
- package/dist/actions/make-stock-entry.d.cts +50 -3
- package/dist/actions/make-stock-entry.d.cts.map +1 -1
- package/dist/actions/make-stock-entry.d.mts +50 -3
- package/dist/actions/make-stock-entry.d.mts.map +1 -1
- package/dist/actions/make-stock-entry.mjs +9 -9
- 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 +7 -3
- package/dist/actions/ping.d.cts.map +1 -1
- package/dist/actions/ping.d.mts +7 -3
- 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.map +1 -1
- package/dist/actions/rename-doc.d.cts +17 -3
- package/dist/actions/rename-doc.d.cts.map +1 -1
- package/dist/actions/rename-doc.d.mts +17 -3
- package/dist/actions/rename-doc.d.mts.map +1 -1
- package/dist/actions/rename-doc.mjs.map +1 -1
- package/dist/actions/save-docs.cjs +5 -5
- package/dist/actions/save-docs.cjs.map +1 -1
- package/dist/actions/save-docs.d.cts +26 -3
- package/dist/actions/save-docs.d.cts.map +1 -1
- package/dist/actions/save-docs.d.mts +26 -3
- package/dist/actions/save-docs.d.mts.map +1 -1
- package/dist/actions/save-docs.mjs +5 -5
- package/dist/actions/save-docs.mjs.map +1 -1
- package/dist/actions/save-document.cjs +2 -2
- package/dist/actions/save-document.cjs.map +1 -1
- package/dist/actions/save-document.d.cts +37 -3
- package/dist/actions/save-document.d.cts.map +1 -1
- package/dist/actions/save-document.d.mts +37 -3
- package/dist/actions/save-document.d.mts.map +1 -1
- package/dist/actions/save-document.mjs +2 -2
- package/dist/actions/save-document.mjs.map +1 -1
- package/dist/actions/search-global.cjs +7 -7
- package/dist/actions/search-global.cjs.map +1 -1
- package/dist/actions/search-global.d.cts +31 -3
- package/dist/actions/search-global.d.cts.map +1 -1
- package/dist/actions/search-global.d.mts +31 -3
- package/dist/actions/search-global.d.mts.map +1 -1
- package/dist/actions/search-global.mjs +7 -7
- 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 +35 -3
- package/dist/actions/search-link.d.cts.map +1 -1
- package/dist/actions/search-link.d.mts +35 -3
- package/dist/actions/search-link.d.mts.map +1 -1
- package/dist/actions/search-link.mjs +3 -3
- package/dist/actions/search-link.mjs.map +1 -1
- package/dist/actions/set-value.cjs +8 -8
- package/dist/actions/set-value.cjs.map +1 -1
- package/dist/actions/set-value.d.cts +49 -3
- package/dist/actions/set-value.d.cts.map +1 -1
- package/dist/actions/set-value.d.mts +49 -3
- package/dist/actions/set-value.d.mts.map +1 -1
- package/dist/actions/set-value.mjs +8 -8
- package/dist/actions/set-value.mjs.map +1 -1
- package/dist/actions/submit-document.cjs +8 -8
- package/dist/actions/submit-document.cjs.map +1 -1
- package/dist/actions/submit-document.d.cts +29 -3
- package/dist/actions/submit-document.d.cts.map +1 -1
- package/dist/actions/submit-document.d.mts +29 -3
- package/dist/actions/submit-document.d.mts.map +1 -1
- package/dist/actions/submit-document.mjs +8 -8
- package/dist/actions/submit-document.mjs.map +1 -1
- package/dist/actions/update-document.cjs +8 -8
- package/dist/actions/update-document.cjs.map +1 -1
- package/dist/actions/update-document.d.cts +31 -3
- package/dist/actions/update-document.d.cts.map +1 -1
- package/dist/actions/update-document.d.mts +31 -3
- package/dist/actions/update-document.d.mts.map +1 -1
- package/dist/actions/update-document.mjs +8 -8
- package/dist/actions/update-document.mjs.map +1 -1
- package/dist/catalog.cjs +18 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +17 -0
- package/dist/catalog.d.mts +17 -0
- package/dist/catalog.mjs +18 -1
- package/dist/catalog.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1,9 +1,25 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/download-file.d.ts
|
|
4
|
-
declare const ErpnextDownloadFileInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ErpnextDownloadFileInput: z.ZodObject<{
|
|
5
|
+
file_url: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const ErpnextDownloadFileOutput: z.ZodObject<{
|
|
8
|
+
file: z.ZodNullable<z.ZodObject<{
|
|
9
|
+
name: z.ZodNullable<z.ZodString>;
|
|
10
|
+
s3url: z.ZodNullable<z.ZodString>;
|
|
11
|
+
mimetype: z.ZodNullable<z.ZodString>;
|
|
12
|
+
}, z.core.$strip>>;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
declare const erpnextDownloadFile: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
15
|
+
file_url: string;
|
|
16
|
+
}, {
|
|
17
|
+
file: {
|
|
18
|
+
name: string | null;
|
|
19
|
+
s3url: string | null;
|
|
20
|
+
mimetype: string | null;
|
|
21
|
+
} | null;
|
|
22
|
+
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
23
|
//#endregion
|
|
8
24
|
export { erpnextDownloadFile };
|
|
9
25
|
//# sourceMappingURL=download-file.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"download-file.d.mts","names":[],"sources":["../../src/actions/download-file.ts"],"mappings":";;;cAIa,wBAAA,
|
|
1
|
+
{"version":3,"file":"download-file.d.mts","names":[],"sources":["../../src/actions/download-file.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;cAQxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;cAIzB,mBAAA,gCAAmB,wBAAA"}
|
|
@@ -3,9 +3,9 @@ import { z } from "zod";
|
|
|
3
3
|
//#region src/actions/download-file.ts
|
|
4
4
|
const ErpnextDownloadFileInput = z.object({ file_url: z.string().describe("URL of the file to download. This should be a relative path starting with /files/ or /private/files/ (e.g., '/files/test_file.txt'). The file must exist on the ERPNext instance.") });
|
|
5
5
|
const ErpnextDownloadFile_FileDownloadableSchema = z.object({
|
|
6
|
-
name: z.string().describe("Name of the file"),
|
|
7
|
-
s3url: z.string().describe("S3 URL of the downloaded file."),
|
|
8
|
-
mimetype: z.string().describe("Mime type of the file.")
|
|
6
|
+
name: z.string().describe("Name of the file").nullable(),
|
|
7
|
+
s3url: z.string().describe("S3 URL of the downloaded file.").nullable(),
|
|
8
|
+
mimetype: z.string().describe("Mime type of the file.").nullable()
|
|
9
9
|
});
|
|
10
10
|
const erpnextDownloadFile = action("ERPNEXT_DOWNLOAD_FILE", {
|
|
11
11
|
slug: "erpnext-download-file",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"download-file.mjs","names":[],"sources":["../../src/actions/download-file.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextDownloadFileInput
|
|
1
|
+
{"version":3,"file":"download-file.mjs","names":[],"sources":["../../src/actions/download-file.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextDownloadFileInput = z.object({\n file_url: z.string().describe(\"URL of the file to download. This should be a relative path starting with /files/ or /private/files/ (e.g., '/files/test_file.txt'). The file must exist on the ERPNext instance.\"),\n});\nconst ErpnextDownloadFile_FileDownloadableSchema = z.object({\n name: z.string().describe(\"Name of the file\").nullable(),\n s3url: z.string().describe(\"S3 URL of the downloaded file.\").nullable(),\n mimetype: z.string().describe(\"Mime type of the file.\").nullable(),\n});\nexport const ErpnextDownloadFileOutput = z.object({\n file: ErpnextDownloadFile_FileDownloadableSchema.nullable(),\n});\n\nexport const erpnextDownloadFile = action(\"ERPNEXT_DOWNLOAD_FILE\", {\n slug: \"erpnext-download-file\",\n name: \"Download file from ERPNext\",\n description: \"Tool to download a file from ERPNext by its URL. Use when you need to retrieve file content from the ERPNext instance using the file's URL path.\",\n input: ErpnextDownloadFileInput,\n output: ErpnextDownloadFileOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2B,EAAE,OAAO,EAC/C,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,mLAAmL,EACnN,CAAC;AACD,MAAM,6CAA6C,EAAE,OAAO;CAC1D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACvD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACtE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;AACnE,CAAC;AAKD,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATuC,EAAE,OAAO,EAChD,MAAM,2CAA2C,SAAS,EAC5D,CAOU;AACV,CAAC"}
|
|
@@ -8,9 +8,9 @@ const ErpnextDownloadPdfInput = zod.z.object({
|
|
|
8
8
|
no_letterhead: zod.z.number().int().describe("Set to 1 to exclude letterhead from the PDF, set to 0 or omit to include letterhead").optional()
|
|
9
9
|
}).describe("Request model for downloading a document as PDF from ERPNext.");
|
|
10
10
|
const ErpnextDownloadPdf_FileDownloadableSchema = zod.z.object({
|
|
11
|
-
name: zod.z.string().describe("Name of the file"),
|
|
12
|
-
s3url: zod.z.string().describe("S3 URL of the downloaded file."),
|
|
13
|
-
mimetype: zod.z.string().describe("Mime type of the file.")
|
|
11
|
+
name: zod.z.string().describe("Name of the file").nullable(),
|
|
12
|
+
s3url: zod.z.string().describe("S3 URL of the downloaded file.").nullable(),
|
|
13
|
+
mimetype: zod.z.string().describe("Mime type of the file.").nullable()
|
|
14
14
|
});
|
|
15
15
|
const ErpnextDownloadPdfOutput = zod.z.object({ content: ErpnextDownloadPdf_FileDownloadableSchema.nullable() }).describe("Response model containing the downloaded PDF file.");
|
|
16
16
|
const erpnextDownloadPdf = require_action.action("ERPNEXT_DOWNLOAD_PDF", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"download-pdf.cjs","names":["z","action"],"sources":["../../src/actions/download-pdf.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextDownloadPdfInput
|
|
1
|
+
{"version":3,"file":"download-pdf.cjs","names":["z","action"],"sources":["../../src/actions/download-pdf.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextDownloadPdfInput = z.object({\n name: z.string().describe(\"Document name/ID to download\"),\n format: z.string().describe(\"Print format name to use for the PDF. If not specified, the default print format for the DocType will be used.\").optional(),\n doctype: z.string().describe(\"DocType of the document to download (e.g., 'User', 'Sales Invoice', 'Purchase Order')\"),\n no_letterhead: z.number().int().describe(\"Set to 1 to exclude letterhead from the PDF, set to 0 or omit to include letterhead\").optional(),\n}).describe(\"Request model for downloading a document as PDF from ERPNext.\");\nconst ErpnextDownloadPdf_FileDownloadableSchema = z.object({\n name: z.string().describe(\"Name of the file\").nullable(),\n s3url: z.string().describe(\"S3 URL of the downloaded file.\").nullable(),\n mimetype: z.string().describe(\"Mime type of the file.\").nullable(),\n});\nexport const ErpnextDownloadPdfOutput = z.object({\n content: ErpnextDownloadPdf_FileDownloadableSchema.nullable(),\n}).describe(\"Response model containing the downloaded PDF file.\");\n\nexport const erpnextDownloadPdf = action(\"ERPNEXT_DOWNLOAD_PDF\", {\n slug: \"erpnext-download-pdf\",\n name: \"Download PDF Document\",\n description: \"Tool to download a document as PDF from ERPNext with optional print format. Use when you need to retrieve a document in PDF format, optionally specifying a custom print format or excluding letterhead.\",\n input: ErpnextDownloadPdfInput,\n output: ErpnextDownloadPdfOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;CACxD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gHAAgH,CAAC,CAAC,SAAS;CACvJ,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uFAAuF;CACpH,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;AAC3I,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,4CAA4CA,IAAAA,EAAE,OAAO;CACzD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACvD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACtE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;AACnE,CAAC;AACD,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,EAC/C,SAAS,0CAA0C,SAAS,EAC9D,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAEhE,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,31 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/download-pdf.d.ts
|
|
4
|
-
declare const ErpnextDownloadPdfInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ErpnextDownloadPdfInput: z.ZodObject<{
|
|
5
|
+
name: z.ZodString;
|
|
6
|
+
format: z.ZodOptional<z.ZodString>;
|
|
7
|
+
doctype: z.ZodString;
|
|
8
|
+
no_letterhead: z.ZodOptional<z.ZodNumber>;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
declare const ErpnextDownloadPdfOutput: z.ZodObject<{
|
|
11
|
+
content: z.ZodNullable<z.ZodObject<{
|
|
12
|
+
name: z.ZodNullable<z.ZodString>;
|
|
13
|
+
s3url: z.ZodNullable<z.ZodString>;
|
|
14
|
+
mimetype: z.ZodNullable<z.ZodString>;
|
|
15
|
+
}, z.core.$strip>>;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
declare const erpnextDownloadPdf: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
18
|
+
name: string;
|
|
19
|
+
doctype: string;
|
|
20
|
+
format?: string | undefined;
|
|
21
|
+
no_letterhead?: number | undefined;
|
|
22
|
+
}, {
|
|
23
|
+
content: {
|
|
24
|
+
name: string | null;
|
|
25
|
+
s3url: string | null;
|
|
26
|
+
mimetype: string | null;
|
|
27
|
+
} | null;
|
|
28
|
+
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
29
|
//#endregion
|
|
8
30
|
export { erpnextDownloadPdf };
|
|
9
31
|
//# sourceMappingURL=download-pdf.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"download-pdf.d.cts","names":[],"sources":["../../src/actions/download-pdf.ts"],"mappings":";;;cAIa,uBAAA,
|
|
1
|
+
{"version":3,"file":"download-pdf.d.cts","names":[],"sources":["../../src/actions/download-pdf.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;cAWvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;cAIxB,kBAAA,gCAAkB,wBAAA"}
|
|
@@ -1,9 +1,31 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/download-pdf.d.ts
|
|
4
|
-
declare const ErpnextDownloadPdfInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ErpnextDownloadPdfInput: z.ZodObject<{
|
|
5
|
+
name: z.ZodString;
|
|
6
|
+
format: z.ZodOptional<z.ZodString>;
|
|
7
|
+
doctype: z.ZodString;
|
|
8
|
+
no_letterhead: z.ZodOptional<z.ZodNumber>;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
declare const ErpnextDownloadPdfOutput: z.ZodObject<{
|
|
11
|
+
content: z.ZodNullable<z.ZodObject<{
|
|
12
|
+
name: z.ZodNullable<z.ZodString>;
|
|
13
|
+
s3url: z.ZodNullable<z.ZodString>;
|
|
14
|
+
mimetype: z.ZodNullable<z.ZodString>;
|
|
15
|
+
}, z.core.$strip>>;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
declare const erpnextDownloadPdf: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
18
|
+
name: string;
|
|
19
|
+
doctype: string;
|
|
20
|
+
format?: string | undefined;
|
|
21
|
+
no_letterhead?: number | undefined;
|
|
22
|
+
}, {
|
|
23
|
+
content: {
|
|
24
|
+
name: string | null;
|
|
25
|
+
s3url: string | null;
|
|
26
|
+
mimetype: string | null;
|
|
27
|
+
} | null;
|
|
28
|
+
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
29
|
//#endregion
|
|
8
30
|
export { erpnextDownloadPdf };
|
|
9
31
|
//# sourceMappingURL=download-pdf.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"download-pdf.d.mts","names":[],"sources":["../../src/actions/download-pdf.ts"],"mappings":";;;cAIa,uBAAA,
|
|
1
|
+
{"version":3,"file":"download-pdf.d.mts","names":[],"sources":["../../src/actions/download-pdf.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;cAWvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;cAIxB,kBAAA,gCAAkB,wBAAA"}
|
|
@@ -8,9 +8,9 @@ const ErpnextDownloadPdfInput = z.object({
|
|
|
8
8
|
no_letterhead: z.number().int().describe("Set to 1 to exclude letterhead from the PDF, set to 0 or omit to include letterhead").optional()
|
|
9
9
|
}).describe("Request model for downloading a document as PDF from ERPNext.");
|
|
10
10
|
const ErpnextDownloadPdf_FileDownloadableSchema = z.object({
|
|
11
|
-
name: z.string().describe("Name of the file"),
|
|
12
|
-
s3url: z.string().describe("S3 URL of the downloaded file."),
|
|
13
|
-
mimetype: z.string().describe("Mime type of the file.")
|
|
11
|
+
name: z.string().describe("Name of the file").nullable(),
|
|
12
|
+
s3url: z.string().describe("S3 URL of the downloaded file.").nullable(),
|
|
13
|
+
mimetype: z.string().describe("Mime type of the file.").nullable()
|
|
14
14
|
});
|
|
15
15
|
const erpnextDownloadPdf = action("ERPNEXT_DOWNLOAD_PDF", {
|
|
16
16
|
slug: "erpnext-download-pdf",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"download-pdf.mjs","names":[],"sources":["../../src/actions/download-pdf.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextDownloadPdfInput
|
|
1
|
+
{"version":3,"file":"download-pdf.mjs","names":[],"sources":["../../src/actions/download-pdf.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextDownloadPdfInput = z.object({\n name: z.string().describe(\"Document name/ID to download\"),\n format: z.string().describe(\"Print format name to use for the PDF. If not specified, the default print format for the DocType will be used.\").optional(),\n doctype: z.string().describe(\"DocType of the document to download (e.g., 'User', 'Sales Invoice', 'Purchase Order')\"),\n no_letterhead: z.number().int().describe(\"Set to 1 to exclude letterhead from the PDF, set to 0 or omit to include letterhead\").optional(),\n}).describe(\"Request model for downloading a document as PDF from ERPNext.\");\nconst ErpnextDownloadPdf_FileDownloadableSchema = z.object({\n name: z.string().describe(\"Name of the file\").nullable(),\n s3url: z.string().describe(\"S3 URL of the downloaded file.\").nullable(),\n mimetype: z.string().describe(\"Mime type of the file.\").nullable(),\n});\nexport const ErpnextDownloadPdfOutput = z.object({\n content: ErpnextDownloadPdf_FileDownloadableSchema.nullable(),\n}).describe(\"Response model containing the downloaded PDF file.\");\n\nexport const erpnextDownloadPdf = action(\"ERPNEXT_DOWNLOAD_PDF\", {\n slug: \"erpnext-download-pdf\",\n name: \"Download PDF Document\",\n description: \"Tool to download a document as PDF from ERPNext with optional print format. Use when you need to retrieve a document in PDF format, optionally specifying a custom print format or excluding letterhead.\",\n input: ErpnextDownloadPdfInput,\n output: ErpnextDownloadPdfOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0B,EAAE,OAAO;CAC9C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;CACxD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,gHAAgH,CAAC,CAAC,SAAS;CACvJ,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,uFAAuF;CACpH,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;AAC3I,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,4CAA4C,EAAE,OAAO;CACzD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACvD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACtE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;AACnE,CAAC;AAKD,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATsC,EAAE,OAAO,EAC/C,SAAS,0CAA0C,SAAS,EAC9D,CAAC,CAAC,CAAC,SAAS,oDAOF;AACV,CAAC"}
|
|
@@ -3,8 +3,8 @@ let zod = require("zod");
|
|
|
3
3
|
//#region src/actions/get-all-languages.ts
|
|
4
4
|
const ErpnextGetAllLanguagesInput = zod.z.object({ with_language_name: zod.z.boolean().describe("Include language names along with language codes. When false or omitted, returns only an array of language codes (e.g., ['en', 'es']). When true, returns an array of objects with both language_code and language_name fields (e.g., [{'language_code': 'en', 'language_name': 'English'}]).").optional() }).describe("Request model for getting all available languages.");
|
|
5
5
|
const ErpnextGetAllLanguages_LanguageInfoSchema = zod.z.object({
|
|
6
|
-
language_code: zod.z.string().describe("ISO language code (e.g., 'en', 'es', 'fr').").
|
|
7
|
-
language_name: zod.z.string().describe("Human-readable language name (e.g., 'English', 'Spanish', 'French').").
|
|
6
|
+
language_code: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("ISO language code (e.g., 'en', 'es', 'fr').").optional()),
|
|
7
|
+
language_name: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Human-readable language name (e.g., 'English', 'Spanish', 'French').").optional())
|
|
8
8
|
}).describe("Language information with code and name.");
|
|
9
9
|
const ErpnextGetAllLanguagesOutput = zod.z.object({ message: zod.z.union([zod.z.array(zod.z.string()), zod.z.array(ErpnextGetAllLanguages_LanguageInfoSchema)]) }).describe("Response model containing all available languages.");
|
|
10
10
|
const erpnextGetAllLanguages = require_action.action("ERPNEXT_GET_ALL_LANGUAGES", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-all-languages.cjs","names":["z","action"],"sources":["../../src/actions/get-all-languages.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetAllLanguagesInput
|
|
1
|
+
{"version":3,"file":"get-all-languages.cjs","names":["z","action"],"sources":["../../src/actions/get-all-languages.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetAllLanguagesInput = z.object({\n with_language_name: z.boolean().describe(\"Include language names along with language codes. When false or omitted, returns only an array of language codes (e.g., ['en', 'es']). When true, returns an array of objects with both language_code and language_name fields (e.g., [{'language_code': 'en', 'language_name': 'English'}]).\").optional(),\n}).describe(\"Request model for getting all available languages.\");\nconst ErpnextGetAllLanguages_LanguageInfoSchema = z.object({\n language_code: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"ISO language code (e.g., 'en', 'es', 'fr').\").optional()),\n language_name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Human-readable language name (e.g., 'English', 'Spanish', 'French').\").optional()),\n}).describe(\"Language information with code and name.\");\nexport const ErpnextGetAllLanguagesOutput = z.object({\n message: z.union([z.array(z.string()), z.array(ErpnextGetAllLanguages_LanguageInfoSchema)]),\n}).describe(\"Response model containing all available languages.\");\n\nexport const erpnextGetAllLanguages = action(\"ERPNEXT_GET_ALL_LANGUAGES\", {\n slug: \"erpnext-get-all-languages\",\n name: \"Get All Languages\",\n description: \"Tool to get a list of all available languages in the ERPNext/Frappe system. Use when you need to retrieve supported languages for translation or localization purposes.\",\n input: ErpnextGetAllLanguagesInput,\n output: ErpnextGetAllLanguagesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,oBAAoBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,+RAA+R,CAAC,CAAC,SAAS,EACrV,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAChE,MAAM,4CAA4CA,IAAAA,EAAE,OAAO;CACzD,eAAeA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC;CAC1J,eAAeA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS,CAAC;AACrL,CAAC,CAAC,CAAC,SAAS,0CAA0C;AACtD,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,SAASA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,GAAGA,IAAAA,EAAE,MAAM,yCAAyC,CAAC,CAAC,EAC5F,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAEhE,MAAa,yBAAyBC,eAAAA,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,23 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-all-languages.d.ts
|
|
4
|
-
declare const ErpnextGetAllLanguagesInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ErpnextGetAllLanguagesInput: z.ZodObject<{
|
|
5
|
+
with_language_name: z.ZodOptional<z.ZodBoolean>;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const ErpnextGetAllLanguagesOutput: z.ZodObject<{
|
|
8
|
+
message: z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodArray<z.ZodObject<{
|
|
9
|
+
language_code: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
10
|
+
language_name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
11
|
+
}, z.core.$strip>>]>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
declare const erpnextGetAllLanguages: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
14
|
+
with_language_name?: boolean | undefined;
|
|
15
|
+
}, {
|
|
16
|
+
message: string[] | {
|
|
17
|
+
language_code?: string | undefined;
|
|
18
|
+
language_name?: string | undefined;
|
|
19
|
+
}[];
|
|
20
|
+
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
21
|
//#endregion
|
|
8
22
|
export { erpnextGetAllLanguages };
|
|
9
23
|
//# sourceMappingURL=get-all-languages.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-all-languages.d.cts","names":[],"sources":["../../src/actions/get-all-languages.ts"],"mappings":";;;cAIa,2BAAA,
|
|
1
|
+
{"version":3,"file":"get-all-languages.d.cts","names":[],"sources":["../../src/actions/get-all-languages.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAO3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;cAI5B,sBAAA,gCAAsB,wBAAA"}
|
|
@@ -1,9 +1,23 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-all-languages.d.ts
|
|
4
|
-
declare const ErpnextGetAllLanguagesInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ErpnextGetAllLanguagesInput: z.ZodObject<{
|
|
5
|
+
with_language_name: z.ZodOptional<z.ZodBoolean>;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const ErpnextGetAllLanguagesOutput: z.ZodObject<{
|
|
8
|
+
message: z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodArray<z.ZodObject<{
|
|
9
|
+
language_code: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
10
|
+
language_name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
11
|
+
}, z.core.$strip>>]>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
declare const erpnextGetAllLanguages: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
14
|
+
with_language_name?: boolean | undefined;
|
|
15
|
+
}, {
|
|
16
|
+
message: string[] | {
|
|
17
|
+
language_code?: string | undefined;
|
|
18
|
+
language_name?: string | undefined;
|
|
19
|
+
}[];
|
|
20
|
+
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
21
|
//#endregion
|
|
8
22
|
export { erpnextGetAllLanguages };
|
|
9
23
|
//# sourceMappingURL=get-all-languages.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-all-languages.d.mts","names":[],"sources":["../../src/actions/get-all-languages.ts"],"mappings":";;;cAIa,2BAAA,
|
|
1
|
+
{"version":3,"file":"get-all-languages.d.mts","names":[],"sources":["../../src/actions/get-all-languages.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAO3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;cAI5B,sBAAA,gCAAsB,wBAAA"}
|
|
@@ -3,8 +3,8 @@ import { z } from "zod";
|
|
|
3
3
|
//#region src/actions/get-all-languages.ts
|
|
4
4
|
const ErpnextGetAllLanguagesInput = z.object({ with_language_name: z.boolean().describe("Include language names along with language codes. When false or omitted, returns only an array of language codes (e.g., ['en', 'es']). When true, returns an array of objects with both language_code and language_name fields (e.g., [{'language_code': 'en', 'language_name': 'English'}]).").optional() }).describe("Request model for getting all available languages.");
|
|
5
5
|
const ErpnextGetAllLanguages_LanguageInfoSchema = z.object({
|
|
6
|
-
language_code: z.string().describe("ISO language code (e.g., 'en', 'es', 'fr').").
|
|
7
|
-
language_name: z.string().describe("Human-readable language name (e.g., 'English', 'Spanish', 'French').").
|
|
6
|
+
language_code: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("ISO language code (e.g., 'en', 'es', 'fr').").optional()),
|
|
7
|
+
language_name: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Human-readable language name (e.g., 'English', 'Spanish', 'French').").optional())
|
|
8
8
|
}).describe("Language information with code and name.");
|
|
9
9
|
const erpnextGetAllLanguages = action("ERPNEXT_GET_ALL_LANGUAGES", {
|
|
10
10
|
slug: "erpnext-get-all-languages",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-all-languages.mjs","names":[],"sources":["../../src/actions/get-all-languages.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetAllLanguagesInput
|
|
1
|
+
{"version":3,"file":"get-all-languages.mjs","names":[],"sources":["../../src/actions/get-all-languages.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetAllLanguagesInput = z.object({\n with_language_name: z.boolean().describe(\"Include language names along with language codes. When false or omitted, returns only an array of language codes (e.g., ['en', 'es']). When true, returns an array of objects with both language_code and language_name fields (e.g., [{'language_code': 'en', 'language_name': 'English'}]).\").optional(),\n}).describe(\"Request model for getting all available languages.\");\nconst ErpnextGetAllLanguages_LanguageInfoSchema = z.object({\n language_code: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"ISO language code (e.g., 'en', 'es', 'fr').\").optional()),\n language_name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Human-readable language name (e.g., 'English', 'Spanish', 'French').\").optional()),\n}).describe(\"Language information with code and name.\");\nexport const ErpnextGetAllLanguagesOutput = z.object({\n message: z.union([z.array(z.string()), z.array(ErpnextGetAllLanguages_LanguageInfoSchema)]),\n}).describe(\"Response model containing all available languages.\");\n\nexport const erpnextGetAllLanguages = action(\"ERPNEXT_GET_ALL_LANGUAGES\", {\n slug: \"erpnext-get-all-languages\",\n name: \"Get All Languages\",\n description: \"Tool to get a list of all available languages in the ERPNext/Frappe system. Use when you need to retrieve supported languages for translation or localization purposes.\",\n input: ErpnextGetAllLanguagesInput,\n output: ErpnextGetAllLanguagesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8B,EAAE,OAAO,EAClD,oBAAoB,EAAE,QAAQ,CAAC,CAAC,SAAS,+RAA+R,CAAC,CAAC,SAAS,EACrV,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAChE,MAAM,4CAA4C,EAAE,OAAO;CACzD,eAAe,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC;CAC1J,eAAe,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS,CAAC;AACrL,CAAC,CAAC,CAAC,SAAS,0CAA0C;AAKtD,MAAa,yBAAyB,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT0C,EAAE,OAAO,EACnD,SAAS,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,GAAG,EAAE,MAAM,yCAAyC,CAAC,CAAC,EAC5F,CAAC,CAAC,CAAC,SAAS,oDAOF;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-all-roles.cjs","names":["z","action"],"sources":["../../src/actions/get-all-roles.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetAllRolesInput
|
|
1
|
+
{"version":3,"file":"get-all-roles.cjs","names":["z","action"],"sources":["../../src/actions/get-all-roles.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetAllRolesInput = z.object({}).describe(\"Request model for getting all roles available in the system.\\nThis endpoint requires no parameters.\");\nexport const ErpnextGetAllRolesOutput = z.object({\n message: z.array(z.string()).describe(\"List of all role names available in the system, sorted alphabetically. Excludes automatic roles (Administrator, Guest, All) and disabled roles.\"),\n}).describe(\"Response model containing a list of all available roles in the system.\");\n\nexport const erpnextGetAllRoles = action(\"ERPNEXT_GET_ALL_ROLES\", {\n slug: \"erpnext-get-all-roles\",\n name: \"Get All Roles\",\n description: \"Tool to get a list of all roles available in the ERPNext system. Use when you need to retrieve all available roles for assignment or reference.\",\n input: ErpnextGetAllRolesInput,\n output: ErpnextGetAllRolesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,qGAAqG;AAClK,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,EAC/C,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,iJAAiJ,EACzL,CAAC,CAAC,CAAC,SAAS,wEAAwE;AAEpF,MAAa,qBAAqBC,eAAAA,OAAO,yBAAyB;CAChE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-all-roles.d.ts
|
|
4
|
-
declare const ErpnextGetAllRolesInput: z.
|
|
5
|
-
declare const ErpnextGetAllRolesOutput: z.
|
|
6
|
-
|
|
4
|
+
declare const ErpnextGetAllRolesInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
declare const ErpnextGetAllRolesOutput: z.ZodObject<{
|
|
6
|
+
message: z.ZodArray<z.ZodString>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const erpnextGetAllRoles: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, {
|
|
9
|
+
message: string[];
|
|
10
|
+
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
11
|
//#endregion
|
|
8
12
|
export { erpnextGetAllRoles };
|
|
9
13
|
//# sourceMappingURL=get-all-roles.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-all-roles.d.cts","names":[],"sources":["../../src/actions/get-all-roles.ts"],"mappings":";;;cAIa,uBAAA,
|
|
1
|
+
{"version":3,"file":"get-all-roles.d.cts","names":[],"sources":["../../src/actions/get-all-roles.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cACvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;cAIxB,kBAAA,gCAAkB,wBAAA,CAAA,MAAA"}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-all-roles.d.ts
|
|
4
|
-
declare const ErpnextGetAllRolesInput: z.
|
|
5
|
-
declare const ErpnextGetAllRolesOutput: z.
|
|
6
|
-
|
|
4
|
+
declare const ErpnextGetAllRolesInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
declare const ErpnextGetAllRolesOutput: z.ZodObject<{
|
|
6
|
+
message: z.ZodArray<z.ZodString>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const erpnextGetAllRoles: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, {
|
|
9
|
+
message: string[];
|
|
10
|
+
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
11
|
//#endregion
|
|
8
12
|
export { erpnextGetAllRoles };
|
|
9
13
|
//# sourceMappingURL=get-all-roles.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-all-roles.d.mts","names":[],"sources":["../../src/actions/get-all-roles.ts"],"mappings":";;;cAIa,uBAAA,
|
|
1
|
+
{"version":3,"file":"get-all-roles.d.mts","names":[],"sources":["../../src/actions/get-all-roles.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cACvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;cAIxB,kBAAA,gCAAkB,wBAAA,CAAA,MAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-all-roles.mjs","names":[],"sources":["../../src/actions/get-all-roles.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetAllRolesInput
|
|
1
|
+
{"version":3,"file":"get-all-roles.mjs","names":[],"sources":["../../src/actions/get-all-roles.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetAllRolesInput = z.object({}).describe(\"Request model for getting all roles available in the system.\\nThis endpoint requires no parameters.\");\nexport const ErpnextGetAllRolesOutput = z.object({\n message: z.array(z.string()).describe(\"List of all role names available in the system, sorted alphabetically. Excludes automatic roles (Administrator, Guest, All) and disabled roles.\"),\n}).describe(\"Response model containing a list of all available roles in the system.\");\n\nexport const erpnextGetAllRoles = action(\"ERPNEXT_GET_ALL_ROLES\", {\n slug: \"erpnext-get-all-roles\",\n name: \"Get All Roles\",\n description: \"Tool to get a list of all roles available in the ERPNext system. Use when you need to retrieve all available roles for assignment or reference.\",\n input: ErpnextGetAllRolesInput,\n output: ErpnextGetAllRolesOutput,\n});\n"],"mappings":";;AASA,MAAa,qBAAqB,OAAO,yBAAyB;CAChE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OATqC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,qGASpD;CACP,QATsC,EAAE,OAAO,EAC/C,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,iJAAiJ,EACzL,CAAC,CAAC,CAAC,SAAS,wEAOF;AACV,CAAC"}
|
|
@@ -7,14 +7,14 @@ const ErpnextGetClientInput = zod.z.object({
|
|
|
7
7
|
filters: zod.z.object({}).describe("Filter conditions to find the document when name is not provided. Should be a dictionary of field-value pairs. Example: {'email': 'user@example.com'}").optional()
|
|
8
8
|
}).describe("Request model for getting a single document by DocType and name or filters.");
|
|
9
9
|
const ErpnextGetClient_DocumentDataSchema = zod.z.object({
|
|
10
|
-
idx: zod.z.number().int().describe("Index number").
|
|
11
|
-
name: zod.z.string().describe("Unique identifier of the document"),
|
|
12
|
-
owner: zod.z.string().describe("User who created the document").
|
|
13
|
-
doctype: zod.z.string().describe("Type of the document").
|
|
14
|
-
creation: zod.z.string().describe("Document creation timestamp").
|
|
15
|
-
modified: zod.z.string().describe("Last modification timestamp").
|
|
16
|
-
docstatus: zod.z.number().int().describe("Document status (0=Draft, 1=Submitted, 2=Cancelled)").
|
|
17
|
-
modified_by: zod.z.string().describe("User who last modified the document").
|
|
10
|
+
idx: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().int().describe("Index number").optional()),
|
|
11
|
+
name: zod.z.string().describe("Unique identifier of the document").nullable(),
|
|
12
|
+
owner: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("User who created the document").optional()),
|
|
13
|
+
doctype: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Type of the document").optional()),
|
|
14
|
+
creation: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Document creation timestamp").optional()),
|
|
15
|
+
modified: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Last modification timestamp").optional()),
|
|
16
|
+
docstatus: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().int().describe("Document status (0=Draft, 1=Submitted, 2=Cancelled)").optional()),
|
|
17
|
+
modified_by: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("User who last modified the document").optional())
|
|
18
18
|
}).passthrough().describe("Document object with metadata and doctype-specific fields.");
|
|
19
19
|
const ErpnextGetClientOutput = zod.z.object({ message: ErpnextGetClient_DocumentDataSchema.nullable() }).describe("Response model containing the retrieved document data.");
|
|
20
20
|
const erpnextGetClient = require_action.action("ERPNEXT_GET_CLIENT", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-client.cjs","names":["z","action"],"sources":["../../src/actions/get-client.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetClientInput
|
|
1
|
+
{"version":3,"file":"get-client.cjs","names":["z","action"],"sources":["../../src/actions/get-client.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetClientInput = z.object({\n name: z.string().describe(\"The unique name/identifier of the specific document to retrieve. If provided, this takes precedence over filters.\").optional(),\n doctype: z.string().describe(\"The DocType to query (e.g., 'User', 'Customer', 'Item'). DocTypes are the document types defined in your Frappe/ERPNext instance.\"),\n filters: z.object({}).describe(\"Filter conditions to find the document when name is not provided. Should be a dictionary of field-value pairs. Example: {'email': 'user@example.com'}\").optional(),\n}).describe(\"Request model for getting a single document by DocType and name or filters.\");\nconst ErpnextGetClient_DocumentDataSchema = z.object({\n idx: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Index number\").optional()),\n name: z.string().describe(\"Unique identifier of the document\").nullable(),\n owner: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"User who created the document\").optional()),\n doctype: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Type of the document\").optional()),\n creation: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Document creation timestamp\").optional()),\n modified: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Last modification timestamp\").optional()),\n docstatus: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Document status (0=Draft, 1=Submitted, 2=Cancelled)\").optional()),\n modified_by: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"User who last modified the document\").optional()),\n}).passthrough().describe(\"Document object with metadata and doctype-specific fields.\");\nexport const ErpnextGetClientOutput = z.object({\n message: ErpnextGetClient_DocumentDataSchema.nullable(),\n}).describe(\"Response model containing the retrieved document data.\");\n\nexport const erpnextGetClient = action(\"ERPNEXT_GET_CLIENT\", {\n slug: \"erpnext-get-client\",\n name: \"Get Document\",\n description: \"Tool to get a single document by DocType and name or filters from Frappe/ERPNext. Use when you need to retrieve a specific document's complete details.\",\n input: ErpnextGetClientInput,\n output: ErpnextGetClientOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAwBA,IAAAA,EAAE,OAAO;CAC5C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mHAAmH,CAAC,CAAC,SAAS;CACxJ,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mIAAmI;CAChK,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,uJAAuJ,CAAC,CAAC,SAAS;AACnM,CAAC,CAAC,CAAC,SAAS,6EAA6E;AACzF,MAAM,sCAAsCA,IAAAA,EAAE,OAAO;CACnD,KAAKA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS,CAAC;CACvH,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACxE,OAAOA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC;CACpI,SAASA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC;CAC7H,UAAUA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC;CACrI,UAAUA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC;CACrI,WAAWA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC;CACpK,aAAaA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC;AAClJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4DAA4D;AACtF,MAAa,yBAAyBA,IAAAA,EAAE,OAAO,EAC7C,SAAS,oCAAoC,SAAS,EACxD,CAAC,CAAC,CAAC,SAAS,wDAAwD;AAEpE,MAAa,mBAAmBC,eAAAA,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,40 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-client.d.ts
|
|
4
|
-
declare const ErpnextGetClientInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ErpnextGetClientInput: z.ZodObject<{
|
|
5
|
+
name: z.ZodOptional<z.ZodString>;
|
|
6
|
+
doctype: z.ZodString;
|
|
7
|
+
filters: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
declare const ErpnextGetClientOutput: z.ZodObject<{
|
|
10
|
+
message: z.ZodNullable<z.ZodObject<{
|
|
11
|
+
idx: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
|
|
12
|
+
name: z.ZodNullable<z.ZodString>;
|
|
13
|
+
owner: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
14
|
+
doctype: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
15
|
+
creation: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
16
|
+
modified: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
17
|
+
docstatus: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
|
|
18
|
+
modified_by: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
19
|
+
}, z.core.$loose>>;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
declare const erpnextGetClient: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
22
|
+
doctype: string;
|
|
23
|
+
name?: string | undefined;
|
|
24
|
+
filters?: Record<string, never> | undefined;
|
|
25
|
+
}, {
|
|
26
|
+
message: {
|
|
27
|
+
[x: string]: unknown;
|
|
28
|
+
name: string | null;
|
|
29
|
+
idx?: number | undefined;
|
|
30
|
+
owner?: string | undefined;
|
|
31
|
+
doctype?: string | undefined;
|
|
32
|
+
creation?: string | undefined;
|
|
33
|
+
modified?: string | undefined;
|
|
34
|
+
docstatus?: number | undefined;
|
|
35
|
+
modified_by?: string | undefined;
|
|
36
|
+
} | null;
|
|
37
|
+
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
38
|
//#endregion
|
|
8
39
|
export { erpnextGetClient };
|
|
9
40
|
//# sourceMappingURL=get-client.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-client.d.cts","names":[],"sources":["../../src/actions/get-client.ts"],"mappings":";;;cAIa,qBAAA,
|
|
1
|
+
{"version":3,"file":"get-client.d.cts","names":[],"sources":["../../src/actions/get-client.ts"],"mappings":";;;cAIa,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;;cAerB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;cAItB,gBAAA,gCAAgB,wBAAA;;;YAM3B,MAAA;AAAA"}
|
|
@@ -1,9 +1,40 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-client.d.ts
|
|
4
|
-
declare const ErpnextGetClientInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ErpnextGetClientInput: z.ZodObject<{
|
|
5
|
+
name: z.ZodOptional<z.ZodString>;
|
|
6
|
+
doctype: z.ZodString;
|
|
7
|
+
filters: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
declare const ErpnextGetClientOutput: z.ZodObject<{
|
|
10
|
+
message: z.ZodNullable<z.ZodObject<{
|
|
11
|
+
idx: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
|
|
12
|
+
name: z.ZodNullable<z.ZodString>;
|
|
13
|
+
owner: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
14
|
+
doctype: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
15
|
+
creation: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
16
|
+
modified: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
17
|
+
docstatus: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
|
|
18
|
+
modified_by: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
19
|
+
}, z.core.$loose>>;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
declare const erpnextGetClient: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
22
|
+
doctype: string;
|
|
23
|
+
name?: string | undefined;
|
|
24
|
+
filters?: Record<string, never> | undefined;
|
|
25
|
+
}, {
|
|
26
|
+
message: {
|
|
27
|
+
[x: string]: unknown;
|
|
28
|
+
name: string | null;
|
|
29
|
+
idx?: number | undefined;
|
|
30
|
+
owner?: string | undefined;
|
|
31
|
+
doctype?: string | undefined;
|
|
32
|
+
creation?: string | undefined;
|
|
33
|
+
modified?: string | undefined;
|
|
34
|
+
docstatus?: number | undefined;
|
|
35
|
+
modified_by?: string | undefined;
|
|
36
|
+
} | null;
|
|
37
|
+
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
38
|
//#endregion
|
|
8
39
|
export { erpnextGetClient };
|
|
9
40
|
//# sourceMappingURL=get-client.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-client.d.mts","names":[],"sources":["../../src/actions/get-client.ts"],"mappings":";;;cAIa,qBAAA,
|
|
1
|
+
{"version":3,"file":"get-client.d.mts","names":[],"sources":["../../src/actions/get-client.ts"],"mappings":";;;cAIa,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;;cAerB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;cAItB,gBAAA,gCAAgB,wBAAA;;;YAM3B,MAAA;AAAA"}
|
|
@@ -7,14 +7,14 @@ const ErpnextGetClientInput = z.object({
|
|
|
7
7
|
filters: z.object({}).describe("Filter conditions to find the document when name is not provided. Should be a dictionary of field-value pairs. Example: {'email': 'user@example.com'}").optional()
|
|
8
8
|
}).describe("Request model for getting a single document by DocType and name or filters.");
|
|
9
9
|
const ErpnextGetClient_DocumentDataSchema = z.object({
|
|
10
|
-
idx: z.number().int().describe("Index number").
|
|
11
|
-
name: z.string().describe("Unique identifier of the document"),
|
|
12
|
-
owner: z.string().describe("User who created the document").
|
|
13
|
-
doctype: z.string().describe("Type of the document").
|
|
14
|
-
creation: z.string().describe("Document creation timestamp").
|
|
15
|
-
modified: z.string().describe("Last modification timestamp").
|
|
16
|
-
docstatus: z.number().int().describe("Document status (0=Draft, 1=Submitted, 2=Cancelled)").
|
|
17
|
-
modified_by: z.string().describe("User who last modified the document").
|
|
10
|
+
idx: z.preprocess((value) => value === null ? void 0 : value, z.number().int().describe("Index number").optional()),
|
|
11
|
+
name: z.string().describe("Unique identifier of the document").nullable(),
|
|
12
|
+
owner: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("User who created the document").optional()),
|
|
13
|
+
doctype: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Type of the document").optional()),
|
|
14
|
+
creation: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Document creation timestamp").optional()),
|
|
15
|
+
modified: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Last modification timestamp").optional()),
|
|
16
|
+
docstatus: z.preprocess((value) => value === null ? void 0 : value, z.number().int().describe("Document status (0=Draft, 1=Submitted, 2=Cancelled)").optional()),
|
|
17
|
+
modified_by: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("User who last modified the document").optional())
|
|
18
18
|
}).passthrough().describe("Document object with metadata and doctype-specific fields.");
|
|
19
19
|
const erpnextGetClient = action("ERPNEXT_GET_CLIENT", {
|
|
20
20
|
slug: "erpnext-get-client",
|