@keystrokehq/erpnext 0.1.4 → 0.1.6
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 +1 -0
- package/dist/actions/add-comment.cjs.map +1 -1
- package/dist/actions/add-comment.d.cts +3 -7
- package/dist/actions/add-comment.d.cts.map +1 -1
- package/dist/actions/add-comment.d.mts +3 -7
- package/dist/actions/add-comment.d.mts.map +1 -1
- package/dist/actions/add-comment.mjs +1 -0
- package/dist/actions/add-comment.mjs.map +1 -1
- package/dist/actions/add-tag.cjs +1 -0
- package/dist/actions/add-tag.cjs.map +1 -1
- package/dist/actions/add-tag.d.cts +3 -5
- package/dist/actions/add-tag.d.cts.map +1 -1
- package/dist/actions/add-tag.d.mts +3 -5
- package/dist/actions/add-tag.d.mts.map +1 -1
- package/dist/actions/add-tag.mjs +1 -0
- package/dist/actions/add-tag.mjs.map +1 -1
- package/dist/actions/apply-workflow.cjs +1 -0
- package/dist/actions/apply-workflow.cjs.map +1 -1
- package/dist/actions/apply-workflow.d.cts +3 -4
- package/dist/actions/apply-workflow.d.cts.map +1 -1
- package/dist/actions/apply-workflow.d.mts +3 -4
- package/dist/actions/apply-workflow.d.mts.map +1 -1
- package/dist/actions/apply-workflow.mjs +1 -0
- package/dist/actions/apply-workflow.mjs.map +1 -1
- package/dist/actions/cancel-document.cjs +1 -0
- package/dist/actions/cancel-document.cjs.map +1 -1
- package/dist/actions/cancel-document.d.cts +3 -4
- package/dist/actions/cancel-document.d.cts.map +1 -1
- package/dist/actions/cancel-document.d.mts +3 -4
- package/dist/actions/cancel-document.d.mts.map +1 -1
- package/dist/actions/cancel-document.mjs +1 -0
- package/dist/actions/cancel-document.mjs.map +1 -1
- package/dist/actions/create-document.cjs +1 -0
- package/dist/actions/create-document.cjs.map +1 -1
- package/dist/actions/create-document.d.cts +3 -4
- package/dist/actions/create-document.d.cts.map +1 -1
- package/dist/actions/create-document.d.mts +3 -4
- package/dist/actions/create-document.d.mts.map +1 -1
- package/dist/actions/create-document.mjs +1 -0
- package/dist/actions/create-document.mjs.map +1 -1
- package/dist/actions/create-timesheet.cjs +1 -0
- package/dist/actions/create-timesheet.cjs.map +1 -1
- package/dist/actions/create-timesheet.d.cts +3 -12
- package/dist/actions/create-timesheet.d.cts.map +1 -1
- package/dist/actions/create-timesheet.d.mts +3 -12
- package/dist/actions/create-timesheet.d.mts.map +1 -1
- package/dist/actions/create-timesheet.mjs +1 -0
- package/dist/actions/create-timesheet.mjs.map +1 -1
- package/dist/actions/delete-document.cjs +1 -0
- package/dist/actions/delete-document.cjs.map +1 -1
- package/dist/actions/delete-document.d.cts +3 -4
- package/dist/actions/delete-document.d.cts.map +1 -1
- package/dist/actions/delete-document.d.mts +3 -4
- package/dist/actions/delete-document.d.mts.map +1 -1
- package/dist/actions/delete-document.mjs +1 -0
- package/dist/actions/delete-document.mjs.map +1 -1
- package/dist/actions/download-file.cjs +1 -0
- package/dist/actions/download-file.cjs.map +1 -1
- package/dist/actions/download-file.d.cts +3 -3
- package/dist/actions/download-file.d.cts.map +1 -1
- package/dist/actions/download-file.d.mts +3 -3
- package/dist/actions/download-file.d.mts.map +1 -1
- package/dist/actions/download-file.mjs +1 -0
- package/dist/actions/download-file.mjs.map +1 -1
- package/dist/actions/download-pdf.cjs +1 -0
- package/dist/actions/download-pdf.cjs.map +1 -1
- package/dist/actions/download-pdf.d.cts +3 -6
- package/dist/actions/download-pdf.d.cts.map +1 -1
- package/dist/actions/download-pdf.d.mts +3 -6
- package/dist/actions/download-pdf.d.mts.map +1 -1
- package/dist/actions/download-pdf.mjs +1 -0
- package/dist/actions/download-pdf.mjs.map +1 -1
- package/dist/actions/get-all-languages.cjs +1 -0
- package/dist/actions/get-all-languages.cjs.map +1 -1
- package/dist/actions/get-all-languages.d.cts +3 -3
- package/dist/actions/get-all-languages.d.cts.map +1 -1
- package/dist/actions/get-all-languages.d.mts +3 -3
- package/dist/actions/get-all-languages.d.mts.map +1 -1
- package/dist/actions/get-all-languages.mjs +1 -0
- package/dist/actions/get-all-languages.mjs.map +1 -1
- package/dist/actions/get-all-roles.cjs +1 -0
- package/dist/actions/get-all-roles.cjs.map +1 -1
- package/dist/actions/get-all-roles.d.cts +3 -1
- package/dist/actions/get-all-roles.d.cts.map +1 -1
- package/dist/actions/get-all-roles.d.mts +3 -1
- package/dist/actions/get-all-roles.d.mts.map +1 -1
- package/dist/actions/get-all-roles.mjs +1 -0
- package/dist/actions/get-all-roles.mjs.map +1 -1
- package/dist/actions/get-client.cjs +1 -0
- package/dist/actions/get-client.cjs.map +1 -1
- package/dist/actions/get-client.d.cts +3 -5
- package/dist/actions/get-client.d.cts.map +1 -1
- package/dist/actions/get-client.d.mts +3 -5
- package/dist/actions/get-client.d.mts.map +1 -1
- package/dist/actions/get-client.mjs +1 -0
- package/dist/actions/get-client.mjs.map +1 -1
- package/dist/actions/get-count.cjs +1 -0
- package/dist/actions/get-count.cjs.map +1 -1
- package/dist/actions/get-count.d.cts +3 -4
- package/dist/actions/get-count.d.cts.map +1 -1
- package/dist/actions/get-count.d.mts +3 -4
- package/dist/actions/get-count.d.mts.map +1 -1
- package/dist/actions/get-count.mjs +1 -0
- package/dist/actions/get-count.mjs.map +1 -1
- package/dist/actions/get-doc-with-meta.cjs +1 -0
- package/dist/actions/get-doc-with-meta.cjs.map +1 -1
- package/dist/actions/get-doc-with-meta.d.cts +3 -4
- package/dist/actions/get-doc-with-meta.d.cts.map +1 -1
- package/dist/actions/get-doc-with-meta.d.mts +3 -4
- package/dist/actions/get-doc-with-meta.d.mts.map +1 -1
- package/dist/actions/get-doc-with-meta.mjs +1 -0
- package/dist/actions/get-doc-with-meta.mjs.map +1 -1
- package/dist/actions/get-doctype-meta.cjs +1 -0
- package/dist/actions/get-doctype-meta.cjs.map +1 -1
- package/dist/actions/get-doctype-meta.d.cts +3 -4
- package/dist/actions/get-doctype-meta.d.cts.map +1 -1
- package/dist/actions/get-doctype-meta.d.mts +3 -4
- package/dist/actions/get-doctype-meta.d.mts.map +1 -1
- package/dist/actions/get-doctype-meta.mjs +1 -0
- package/dist/actions/get-doctype-meta.mjs.map +1 -1
- package/dist/actions/get-document.cjs +1 -0
- package/dist/actions/get-document.cjs.map +1 -1
- package/dist/actions/get-document.d.cts +3 -6
- package/dist/actions/get-document.d.cts.map +1 -1
- package/dist/actions/get-document.d.mts +3 -6
- package/dist/actions/get-document.d.mts.map +1 -1
- package/dist/actions/get-document.mjs +1 -0
- package/dist/actions/get-document.mjs.map +1 -1
- package/dist/actions/get-exchange-rate.cjs +1 -0
- package/dist/actions/get-exchange-rate.cjs.map +1 -1
- package/dist/actions/get-exchange-rate.d.cts +3 -5
- package/dist/actions/get-exchange-rate.d.cts.map +1 -1
- package/dist/actions/get-exchange-rate.d.mts +3 -5
- package/dist/actions/get-exchange-rate.d.mts.map +1 -1
- package/dist/actions/get-exchange-rate.mjs +1 -0
- package/dist/actions/get-exchange-rate.mjs.map +1 -1
- package/dist/actions/get-fiscal-year.cjs +1 -0
- package/dist/actions/get-fiscal-year.cjs.map +1 -1
- package/dist/actions/get-fiscal-year.d.cts +3 -4
- package/dist/actions/get-fiscal-year.d.cts.map +1 -1
- package/dist/actions/get-fiscal-year.d.mts +3 -4
- package/dist/actions/get-fiscal-year.d.mts.map +1 -1
- package/dist/actions/get-fiscal-year.mjs +1 -0
- package/dist/actions/get-fiscal-year.mjs.map +1 -1
- package/dist/actions/get-framework-version.cjs +1 -0
- package/dist/actions/get-framework-version.cjs.map +1 -1
- package/dist/actions/get-framework-version.d.cts +3 -1
- package/dist/actions/get-framework-version.d.cts.map +1 -1
- package/dist/actions/get-framework-version.d.mts +3 -1
- package/dist/actions/get-framework-version.d.mts.map +1 -1
- package/dist/actions/get-framework-version.mjs +1 -0
- package/dist/actions/get-framework-version.mjs.map +1 -1
- package/dist/actions/get-item-details.cjs +1 -0
- package/dist/actions/get-item-details.cjs.map +1 -1
- package/dist/actions/get-item-details.d.cts +3 -14
- package/dist/actions/get-item-details.d.cts.map +1 -1
- package/dist/actions/get-item-details.d.mts +3 -14
- package/dist/actions/get-item-details.d.mts.map +1 -1
- package/dist/actions/get-item-details.mjs +1 -0
- package/dist/actions/get-item-details.mjs.map +1 -1
- package/dist/actions/get-list.cjs +1 -0
- package/dist/actions/get-list.cjs.map +1 -1
- package/dist/actions/get-list.d.cts +3 -8
- package/dist/actions/get-list.d.cts.map +1 -1
- package/dist/actions/get-list.d.mts +3 -8
- package/dist/actions/get-list.d.mts.map +1 -1
- package/dist/actions/get-list.mjs +1 -0
- package/dist/actions/get-list.mjs.map +1 -1
- package/dist/actions/get-logged-user.cjs +1 -0
- package/dist/actions/get-logged-user.cjs.map +1 -1
- package/dist/actions/get-logged-user.d.cts +3 -1
- package/dist/actions/get-logged-user.d.cts.map +1 -1
- package/dist/actions/get-logged-user.d.mts +3 -1
- package/dist/actions/get-logged-user.d.mts.map +1 -1
- package/dist/actions/get-logged-user.mjs +1 -0
- package/dist/actions/get-logged-user.mjs.map +1 -1
- package/dist/actions/get-party-details.cjs +1 -0
- package/dist/actions/get-party-details.cjs.map +1 -1
- package/dist/actions/get-party-details.d.cts +3 -5
- package/dist/actions/get-party-details.d.cts.map +1 -1
- package/dist/actions/get-party-details.d.mts +3 -5
- package/dist/actions/get-party-details.d.mts.map +1 -1
- package/dist/actions/get-party-details.mjs +1 -0
- package/dist/actions/get-party-details.mjs.map +1 -1
- package/dist/actions/get-payment-entry.cjs +1 -0
- package/dist/actions/get-payment-entry.cjs.map +1 -1
- package/dist/actions/get-payment-entry.d.cts +3 -4
- package/dist/actions/get-payment-entry.d.cts.map +1 -1
- package/dist/actions/get-payment-entry.d.mts +3 -4
- package/dist/actions/get-payment-entry.d.mts.map +1 -1
- package/dist/actions/get-payment-entry.mjs +1 -0
- package/dist/actions/get-payment-entry.mjs.map +1 -1
- package/dist/actions/get-stock-balance.cjs +1 -0
- package/dist/actions/get-stock-balance.cjs.map +1 -1
- package/dist/actions/get-stock-balance.d.cts +3 -5
- package/dist/actions/get-stock-balance.d.cts.map +1 -1
- package/dist/actions/get-stock-balance.d.mts +3 -5
- package/dist/actions/get-stock-balance.d.mts.map +1 -1
- package/dist/actions/get-stock-balance.mjs +1 -0
- package/dist/actions/get-stock-balance.mjs.map +1 -1
- package/dist/actions/get-timezones.cjs +1 -0
- package/dist/actions/get-timezones.cjs.map +1 -1
- package/dist/actions/get-timezones.d.cts +3 -1
- package/dist/actions/get-timezones.d.cts.map +1 -1
- package/dist/actions/get-timezones.d.mts +3 -1
- package/dist/actions/get-timezones.d.mts.map +1 -1
- package/dist/actions/get-timezones.mjs +1 -0
- package/dist/actions/get-timezones.mjs.map +1 -1
- package/dist/actions/get-user-roles.cjs +1 -0
- package/dist/actions/get-user-roles.cjs.map +1 -1
- package/dist/actions/get-user-roles.d.cts +3 -3
- package/dist/actions/get-user-roles.d.cts.map +1 -1
- package/dist/actions/get-user-roles.d.mts +3 -3
- package/dist/actions/get-user-roles.d.mts.map +1 -1
- package/dist/actions/get-user-roles.mjs +1 -0
- package/dist/actions/get-user-roles.mjs.map +1 -1
- package/dist/actions/get-value.cjs +1 -0
- package/dist/actions/get-value.cjs.map +1 -1
- package/dist/actions/get-value.d.cts +3 -6
- package/dist/actions/get-value.d.cts.map +1 -1
- package/dist/actions/get-value.d.mts +3 -6
- package/dist/actions/get-value.d.mts.map +1 -1
- package/dist/actions/get-value.mjs +1 -0
- package/dist/actions/get-value.mjs.map +1 -1
- package/dist/actions/get-workflow-transitions.cjs +1 -0
- package/dist/actions/get-workflow-transitions.cjs.map +1 -1
- package/dist/actions/get-workflow-transitions.d.cts +3 -4
- package/dist/actions/get-workflow-transitions.d.cts.map +1 -1
- package/dist/actions/get-workflow-transitions.d.mts +3 -4
- package/dist/actions/get-workflow-transitions.d.mts.map +1 -1
- package/dist/actions/get-workflow-transitions.mjs +1 -0
- package/dist/actions/get-workflow-transitions.mjs.map +1 -1
- package/dist/actions/insert-document.cjs +1 -0
- package/dist/actions/insert-document.cjs.map +1 -1
- package/dist/actions/insert-document.d.cts +3 -3
- package/dist/actions/insert-document.d.cts.map +1 -1
- package/dist/actions/insert-document.d.mts +3 -3
- package/dist/actions/insert-document.d.mts.map +1 -1
- package/dist/actions/insert-document.mjs +1 -0
- package/dist/actions/insert-document.mjs.map +1 -1
- package/dist/actions/insert-many.cjs +1 -0
- package/dist/actions/insert-many.cjs.map +1 -1
- package/dist/actions/insert-many.d.cts +3 -3
- package/dist/actions/insert-many.d.cts.map +1 -1
- package/dist/actions/insert-many.d.mts +3 -3
- package/dist/actions/insert-many.d.mts.map +1 -1
- package/dist/actions/insert-many.mjs +1 -0
- package/dist/actions/insert-many.mjs.map +1 -1
- package/dist/actions/list-doctypes.cjs +1 -0
- package/dist/actions/list-doctypes.cjs.map +1 -1
- package/dist/actions/list-doctypes.d.cts +3 -6
- package/dist/actions/list-doctypes.d.cts.map +1 -1
- package/dist/actions/list-doctypes.d.mts +3 -6
- package/dist/actions/list-doctypes.d.mts.map +1 -1
- package/dist/actions/list-doctypes.mjs +1 -0
- package/dist/actions/list-doctypes.mjs.map +1 -1
- package/dist/actions/list-documents.cjs +1 -0
- package/dist/actions/list-documents.cjs.map +1 -1
- package/dist/actions/list-documents.d.cts +3 -7
- package/dist/actions/list-documents.d.cts.map +1 -1
- package/dist/actions/list-documents.d.mts +3 -7
- package/dist/actions/list-documents.d.mts.map +1 -1
- package/dist/actions/list-documents.mjs +1 -0
- package/dist/actions/list-documents.mjs.map +1 -1
- package/dist/actions/list-employees.cjs +1 -0
- package/dist/actions/list-employees.cjs.map +1 -1
- package/dist/actions/list-employees.d.cts +3 -6
- package/dist/actions/list-employees.d.cts.map +1 -1
- package/dist/actions/list-employees.d.mts +3 -6
- package/dist/actions/list-employees.d.mts.map +1 -1
- package/dist/actions/list-employees.mjs +1 -0
- package/dist/actions/list-employees.mjs.map +1 -1
- package/dist/actions/list-projects.cjs +1 -0
- package/dist/actions/list-projects.cjs.map +1 -1
- package/dist/actions/list-projects.d.cts +3 -6
- package/dist/actions/list-projects.d.cts.map +1 -1
- package/dist/actions/list-projects.d.mts +3 -6
- package/dist/actions/list-projects.d.mts.map +1 -1
- package/dist/actions/list-projects.mjs +1 -0
- package/dist/actions/list-projects.mjs.map +1 -1
- package/dist/actions/list-timesheets.cjs +1 -0
- package/dist/actions/list-timesheets.cjs.map +1 -1
- package/dist/actions/list-timesheets.d.cts +3 -6
- package/dist/actions/list-timesheets.d.cts.map +1 -1
- package/dist/actions/list-timesheets.d.mts +3 -6
- package/dist/actions/list-timesheets.d.mts.map +1 -1
- package/dist/actions/list-timesheets.mjs +1 -0
- package/dist/actions/list-timesheets.mjs.map +1 -1
- package/dist/actions/list-webhooks.cjs +1 -0
- package/dist/actions/list-webhooks.cjs.map +1 -1
- package/dist/actions/list-webhooks.d.cts +3 -6
- package/dist/actions/list-webhooks.d.cts.map +1 -1
- package/dist/actions/list-webhooks.d.mts +3 -6
- package/dist/actions/list-webhooks.d.mts.map +1 -1
- package/dist/actions/list-webhooks.mjs +1 -0
- package/dist/actions/list-webhooks.mjs.map +1 -1
- package/dist/actions/make-delivery-note.cjs +1 -0
- package/dist/actions/make-delivery-note.cjs.map +1 -1
- package/dist/actions/make-delivery-note.d.cts +3 -3
- package/dist/actions/make-delivery-note.d.cts.map +1 -1
- package/dist/actions/make-delivery-note.d.mts +3 -3
- package/dist/actions/make-delivery-note.d.mts.map +1 -1
- package/dist/actions/make-delivery-note.mjs +1 -0
- package/dist/actions/make-delivery-note.mjs.map +1 -1
- package/dist/actions/make-purchase-order.cjs +1 -0
- package/dist/actions/make-purchase-order.cjs.map +1 -1
- package/dist/actions/make-purchase-order.d.cts +3 -3
- package/dist/actions/make-purchase-order.d.cts.map +1 -1
- package/dist/actions/make-purchase-order.d.mts +3 -3
- package/dist/actions/make-purchase-order.d.mts.map +1 -1
- package/dist/actions/make-purchase-order.mjs +1 -0
- package/dist/actions/make-purchase-order.mjs.map +1 -1
- package/dist/actions/make-sales-invoice.cjs +1 -0
- package/dist/actions/make-sales-invoice.cjs.map +1 -1
- package/dist/actions/make-sales-invoice.d.cts +3 -3
- package/dist/actions/make-sales-invoice.d.cts.map +1 -1
- package/dist/actions/make-sales-invoice.d.mts +3 -3
- package/dist/actions/make-sales-invoice.d.mts.map +1 -1
- package/dist/actions/make-sales-invoice.mjs +1 -0
- package/dist/actions/make-sales-invoice.mjs.map +1 -1
- package/dist/actions/make-stock-entry.cjs +1 -0
- package/dist/actions/make-stock-entry.cjs.map +1 -1
- package/dist/actions/make-stock-entry.d.cts +3 -8
- package/dist/actions/make-stock-entry.d.cts.map +1 -1
- package/dist/actions/make-stock-entry.d.mts +3 -8
- package/dist/actions/make-stock-entry.d.mts.map +1 -1
- package/dist/actions/make-stock-entry.mjs +1 -0
- package/dist/actions/make-stock-entry.mjs.map +1 -1
- package/dist/actions/ping.cjs +1 -0
- package/dist/actions/ping.cjs.map +1 -1
- package/dist/actions/ping.d.cts +3 -1
- package/dist/actions/ping.d.cts.map +1 -1
- package/dist/actions/ping.d.mts +3 -1
- package/dist/actions/ping.d.mts.map +1 -1
- package/dist/actions/ping.mjs +1 -0
- package/dist/actions/ping.mjs.map +1 -1
- package/dist/actions/rename-doc.cjs +1 -0
- package/dist/actions/rename-doc.cjs.map +1 -1
- package/dist/actions/rename-doc.d.cts +3 -6
- package/dist/actions/rename-doc.d.cts.map +1 -1
- package/dist/actions/rename-doc.d.mts +3 -6
- package/dist/actions/rename-doc.d.mts.map +1 -1
- package/dist/actions/rename-doc.mjs +1 -0
- package/dist/actions/rename-doc.mjs.map +1 -1
- package/dist/actions/save-docs.cjs +1 -0
- package/dist/actions/save-docs.cjs.map +1 -1
- package/dist/actions/save-docs.d.cts +3 -4
- package/dist/actions/save-docs.d.cts.map +1 -1
- package/dist/actions/save-docs.d.mts +3 -4
- package/dist/actions/save-docs.d.mts.map +1 -1
- package/dist/actions/save-docs.mjs +1 -0
- package/dist/actions/save-docs.mjs.map +1 -1
- package/dist/actions/save-document.cjs +1 -0
- package/dist/actions/save-document.cjs.map +1 -1
- package/dist/actions/save-document.d.cts +3 -13
- package/dist/actions/save-document.d.cts.map +1 -1
- package/dist/actions/save-document.d.mts +3 -13
- package/dist/actions/save-document.d.mts.map +1 -1
- package/dist/actions/save-document.mjs +1 -0
- package/dist/actions/save-document.mjs.map +1 -1
- package/dist/actions/search-global.cjs +1 -0
- package/dist/actions/search-global.cjs.map +1 -1
- package/dist/actions/search-global.d.cts +3 -6
- package/dist/actions/search-global.d.cts.map +1 -1
- package/dist/actions/search-global.d.mts +3 -6
- package/dist/actions/search-global.d.mts.map +1 -1
- package/dist/actions/search-global.mjs +1 -0
- package/dist/actions/search-global.mjs.map +1 -1
- package/dist/actions/search-link.cjs +1 -0
- package/dist/actions/search-link.cjs.map +1 -1
- package/dist/actions/search-link.d.cts +3 -11
- package/dist/actions/search-link.d.cts.map +1 -1
- package/dist/actions/search-link.d.mts +3 -11
- package/dist/actions/search-link.d.mts.map +1 -1
- package/dist/actions/search-link.mjs +1 -0
- package/dist/actions/search-link.mjs.map +1 -1
- package/dist/actions/set-value.cjs +1 -0
- package/dist/actions/set-value.cjs.map +1 -1
- package/dist/actions/set-value.d.cts +3 -6
- package/dist/actions/set-value.d.cts.map +1 -1
- package/dist/actions/set-value.d.mts +3 -6
- package/dist/actions/set-value.d.mts.map +1 -1
- package/dist/actions/set-value.mjs +1 -0
- package/dist/actions/set-value.mjs.map +1 -1
- package/dist/actions/submit-document.cjs +1 -0
- package/dist/actions/submit-document.cjs.map +1 -1
- package/dist/actions/submit-document.d.cts +3 -3
- package/dist/actions/submit-document.d.cts.map +1 -1
- package/dist/actions/submit-document.d.mts +3 -3
- package/dist/actions/submit-document.d.mts.map +1 -1
- package/dist/actions/submit-document.mjs +1 -0
- package/dist/actions/submit-document.mjs.map +1 -1
- package/dist/actions/update-document.cjs +1 -0
- package/dist/actions/update-document.cjs.map +1 -1
- package/dist/actions/update-document.d.cts +3 -5
- package/dist/actions/update-document.d.cts.map +1 -1
- package/dist/actions/update-document.d.mts +3 -5
- package/dist/actions/update-document.d.mts.map +1 -1
- package/dist/actions/update-document.mjs +1 -0
- package/dist/actions/update-document.mjs.map +1 -1
- package/dist/app.cjs +10 -2
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +9 -1
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +9 -1
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +7 -2
- package/dist/app.mjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/package.json +2 -2
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { erpnext } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/list-projects.d.ts
|
|
@@ -10,12 +12,7 @@ declare const ErpnextListProjectsInput: z.ZodObject<{
|
|
|
10
12
|
declare const ErpnextListProjectsOutput: z.ZodObject<{
|
|
11
13
|
data: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
12
14
|
}, z.core.$loose>;
|
|
13
|
-
declare const erpnextListProjects:
|
|
14
|
-
fields?: string[] | undefined;
|
|
15
|
-
filters?: (string | number | boolean)[][] | undefined;
|
|
16
|
-
limit_start?: number | undefined;
|
|
17
|
-
limit_page_length?: number | undefined;
|
|
18
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
15
|
+
declare const erpnextListProjects: AppAction<typeof ErpnextListProjectsInput, typeof ErpnextListProjectsOutput, typeof erpnext.credential>;
|
|
19
16
|
//#endregion
|
|
20
17
|
export { erpnextListProjects };
|
|
21
18
|
//# sourceMappingURL=list-projects.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-projects.d.mts","names":[],"sources":["../../src/actions/list-projects.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-projects.d.mts","names":[],"sources":["../../src/actions/list-projects.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;cAMxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;cAIzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,OAAA,CAAQ,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-projects.mjs","names":[],"sources":["../../src/actions/list-projects.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextListProjectsInput = z.object({\n fields: z.array(z.string()).describe(\"Fields to include in the response. By default, only the \\\"name\\\" field is included. Pass a list of field names to include additional fields.\").optional(),\n filters: z.array(z.array(z.union([z.string(), z.number().int(), z.number(), z.boolean()]))).describe(\"SQL conditions to filter the listing. Each condition is an array of the format: [doctype, field, operator, value]. For example: [[\\\"Project\\\", \\\"status\\\", \\\"=\\\", \\\"Open\\\"]]\").optional(),\n limit_start: z.number().int().default(0).describe(\"Offset for pagination. Pass a multiple of limit_page_length to request successive pages. For example, pass 20 to request the second page when limit_page_length is 20.\").optional(),\n limit_page_length: z.number().int().default(20).describe(\"Number of items to return per page. Controls pagination size.\").optional(),\n});\nexport const ErpnextListProjectsOutput = z.object({\n data: z.array(z.record(z.string(), z.unknown())).describe(\"List of project records matching the query criteria\"),\n}).passthrough();\n\nexport const erpnextListProjects = action(\"ERPNEXT_LIST_PROJECTS\", {\n slug: \"erpnext-list-projects\",\n name: \"List Projects\",\n description: \"Tool to retrieve a list of Project records from ERPNext. Use when you need to get projects, optionally filtered and paginated.\",\n input: ErpnextListProjectsInput,\n output: ErpnextListProjectsOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-projects.mjs","names":[],"sources":["../../src/actions/list-projects.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { erpnext } from \"../app\";\n\nexport const ErpnextListProjectsInput = z.object({\n fields: z.array(z.string()).describe(\"Fields to include in the response. By default, only the \\\"name\\\" field is included. Pass a list of field names to include additional fields.\").optional(),\n filters: z.array(z.array(z.union([z.string(), z.number().int(), z.number(), z.boolean()]))).describe(\"SQL conditions to filter the listing. Each condition is an array of the format: [doctype, field, operator, value]. For example: [[\\\"Project\\\", \\\"status\\\", \\\"=\\\", \\\"Open\\\"]]\").optional(),\n limit_start: z.number().int().default(0).describe(\"Offset for pagination. Pass a multiple of limit_page_length to request successive pages. For example, pass 20 to request the second page when limit_page_length is 20.\").optional(),\n limit_page_length: z.number().int().default(20).describe(\"Number of items to return per page. Controls pagination size.\").optional(),\n});\nexport const ErpnextListProjectsOutput = z.object({\n data: z.array(z.record(z.string(), z.unknown())).describe(\"List of project records matching the query criteria\"),\n}).passthrough();\n\nexport const erpnextListProjects: AppAction<\n typeof ErpnextListProjectsInput,\n typeof ErpnextListProjectsOutput,\n typeof erpnext.credential\n> = action(\"ERPNEXT_LIST_PROJECTS\", {\n slug: \"erpnext-list-projects\",\n name: \"List Projects\",\n description: \"Tool to retrieve a list of Project records from ERPNext. Use when you need to get projects, optionally filtered and paginated.\",\n input: ErpnextListProjectsInput,\n output: ErpnextListProjectsOutput,\n});\n"],"mappings":";;;AAgBA,MAAa,sBAIT,OAAO,yBAAyB;CAClC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlBsC,EAAE,OAAO;EAC/C,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8IAA8I,CAAC,CAAC,SAAS;EAC9L,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;GAAC,EAAE,OAAO;GAAG,EAAE,OAAO,CAAC,CAAC,IAAI;GAAG,EAAE,OAAO;GAAG,EAAE,QAAQ;EAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,8KAA8K,CAAC,CAAC,SAAS;EAC9R,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,wKAAwK,CAAC,CAAC,SAAS;EACrO,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CACrI,CAaS;CACP,QAbuC,EAAE,OAAO,EAChD,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,qDAAqD,EACjH,CAAC,CAAC,CAAC,YAWO;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-timesheets.cjs","names":["z","action"],"sources":["../../src/actions/list-timesheets.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextListTimesheetsInput = z.object({\n fields: z.array(z.string()).describe(\"List of fields to include in the response. By default, only the 'name' field is included. To add more fields, specify them in this list. For example: ['name', 'employee', 'total_hours', 'status']\").optional(),\n filters: z.array(z.array(z.union([z.string(), z.number().int(), z.number(), z.boolean()]))).describe(\"SQL-style conditions to filter the listing. Each condition is an array of the format: [doctype, field, operator, value]. For example: [['Timesheet', 'status', '=', 'Submitted']] to get only submitted timesheets. Multiple filters can be combined: [['Timesheet', 'employee', '=', 'EMP-001'], ['Timesheet', 'status', '=', 'Draft']]\").optional(),\n limit_start: z.number().int().default(0).describe(\"Starting position for pagination. To request successive pages, pass a multiple of your limit_page_length. For example, to request the second page with page length 20, pass limit_start=20.\").optional(),\n limit_page_length: z.number().int().default(20).describe(\"Number of records to return per page. Controls the page size for pagination. Default is 20 records. Maximum is 1000.\").optional(),\n}).describe(\"Request model for listing timesheet records.\");\nexport const ErpnextListTimesheetsOutput = z.object({\n data: z.array(z.record(z.string(), z.unknown())).describe(\"List of timesheet records. Each record contains at least the 'name' field, plus any additional fields specified in the request.\"),\n}).passthrough().describe(\"Response model for listing timesheet records.\");\n\nexport const erpnextListTimesheets = action(\"ERPNEXT_LIST_TIMESHEETS\", {\n slug: \"erpnext-list-timesheets\",\n name: \"List Timesheets\",\n description: \"Tool to get a list of Timesheet records from ERPNext. Use when you need to retrieve, search, or filter timesheets. Supports pagination and flexible field selection.\",\n input: ErpnextListTimesheetsInput,\n output: ErpnextListTimesheetsOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-timesheets.cjs","names":["z","action"],"sources":["../../src/actions/list-timesheets.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { erpnext } from \"../app\";\n\nexport const ErpnextListTimesheetsInput = z.object({\n fields: z.array(z.string()).describe(\"List of fields to include in the response. By default, only the 'name' field is included. To add more fields, specify them in this list. For example: ['name', 'employee', 'total_hours', 'status']\").optional(),\n filters: z.array(z.array(z.union([z.string(), z.number().int(), z.number(), z.boolean()]))).describe(\"SQL-style conditions to filter the listing. Each condition is an array of the format: [doctype, field, operator, value]. For example: [['Timesheet', 'status', '=', 'Submitted']] to get only submitted timesheets. Multiple filters can be combined: [['Timesheet', 'employee', '=', 'EMP-001'], ['Timesheet', 'status', '=', 'Draft']]\").optional(),\n limit_start: z.number().int().default(0).describe(\"Starting position for pagination. To request successive pages, pass a multiple of your limit_page_length. For example, to request the second page with page length 20, pass limit_start=20.\").optional(),\n limit_page_length: z.number().int().default(20).describe(\"Number of records to return per page. Controls the page size for pagination. Default is 20 records. Maximum is 1000.\").optional(),\n}).describe(\"Request model for listing timesheet records.\");\nexport const ErpnextListTimesheetsOutput = z.object({\n data: z.array(z.record(z.string(), z.unknown())).describe(\"List of timesheet records. Each record contains at least the 'name' field, plus any additional fields specified in the request.\"),\n}).passthrough().describe(\"Response model for listing timesheet records.\");\n\nexport const erpnextListTimesheets: AppAction<\n typeof ErpnextListTimesheetsInput,\n typeof ErpnextListTimesheetsOutput,\n typeof erpnext.credential\n> = action(\"ERPNEXT_LIST_TIMESHEETS\", {\n slug: \"erpnext-list-timesheets\",\n name: \"List Timesheets\",\n description: \"Tool to get a list of Timesheet records from ERPNext. Use when you need to retrieve, search, or filter timesheets. Supports pagination and flexible field selection.\",\n input: ErpnextListTimesheetsInput,\n output: ErpnextListTimesheetsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qMAAqM,CAAC,CAAC,SAAS;CACrP,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAM;EAACA,IAAAA,EAAE,OAAO;EAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI;EAAGA,IAAAA,EAAE,OAAO;EAAGA,IAAAA,EAAE,QAAQ;CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,0UAA0U,CAAC,CAAC,SAAS;CAC1b,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,6LAA6L,CAAC,CAAC,SAAS;CAC1P,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,sHAAsH,CAAC,CAAC,SAAS;AAC5L,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,iIAAiI,EAC7L,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAA+C;AAEzE,MAAa,wBAITC,eAAAA,OAAO,2BAA2B;CACpC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { erpnext } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/list-timesheets.d.ts
|
|
@@ -10,12 +12,7 @@ declare const ErpnextListTimesheetsInput: z.ZodObject<{
|
|
|
10
12
|
declare const ErpnextListTimesheetsOutput: z.ZodObject<{
|
|
11
13
|
data: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
12
14
|
}, z.core.$loose>;
|
|
13
|
-
declare const erpnextListTimesheets:
|
|
14
|
-
fields?: string[] | undefined;
|
|
15
|
-
filters?: (string | number | boolean)[][] | undefined;
|
|
16
|
-
limit_start?: number | undefined;
|
|
17
|
-
limit_page_length?: number | undefined;
|
|
18
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
15
|
+
declare const erpnextListTimesheets: AppAction<typeof ErpnextListTimesheetsInput, typeof ErpnextListTimesheetsOutput, typeof erpnext.credential>;
|
|
19
16
|
//#endregion
|
|
20
17
|
export { erpnextListTimesheets };
|
|
21
18
|
//# sourceMappingURL=list-timesheets.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-timesheets.d.cts","names":[],"sources":["../../src/actions/list-timesheets.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-timesheets.d.cts","names":[],"sources":["../../src/actions/list-timesheets.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;cAM1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAI3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,SACA,OAAA,CAAQ,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { erpnext } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/list-timesheets.d.ts
|
|
@@ -10,12 +12,7 @@ declare const ErpnextListTimesheetsInput: z.ZodObject<{
|
|
|
10
12
|
declare const ErpnextListTimesheetsOutput: z.ZodObject<{
|
|
11
13
|
data: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
12
14
|
}, z.core.$loose>;
|
|
13
|
-
declare const erpnextListTimesheets:
|
|
14
|
-
fields?: string[] | undefined;
|
|
15
|
-
filters?: (string | number | boolean)[][] | undefined;
|
|
16
|
-
limit_start?: number | undefined;
|
|
17
|
-
limit_page_length?: number | undefined;
|
|
18
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
15
|
+
declare const erpnextListTimesheets: AppAction<typeof ErpnextListTimesheetsInput, typeof ErpnextListTimesheetsOutput, typeof erpnext.credential>;
|
|
19
16
|
//#endregion
|
|
20
17
|
export { erpnextListTimesheets };
|
|
21
18
|
//# sourceMappingURL=list-timesheets.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-timesheets.d.mts","names":[],"sources":["../../src/actions/list-timesheets.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-timesheets.d.mts","names":[],"sources":["../../src/actions/list-timesheets.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;cAM1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAI3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,SACA,OAAA,CAAQ,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-timesheets.mjs","names":[],"sources":["../../src/actions/list-timesheets.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextListTimesheetsInput = z.object({\n fields: z.array(z.string()).describe(\"List of fields to include in the response. By default, only the 'name' field is included. To add more fields, specify them in this list. For example: ['name', 'employee', 'total_hours', 'status']\").optional(),\n filters: z.array(z.array(z.union([z.string(), z.number().int(), z.number(), z.boolean()]))).describe(\"SQL-style conditions to filter the listing. Each condition is an array of the format: [doctype, field, operator, value]. For example: [['Timesheet', 'status', '=', 'Submitted']] to get only submitted timesheets. Multiple filters can be combined: [['Timesheet', 'employee', '=', 'EMP-001'], ['Timesheet', 'status', '=', 'Draft']]\").optional(),\n limit_start: z.number().int().default(0).describe(\"Starting position for pagination. To request successive pages, pass a multiple of your limit_page_length. For example, to request the second page with page length 20, pass limit_start=20.\").optional(),\n limit_page_length: z.number().int().default(20).describe(\"Number of records to return per page. Controls the page size for pagination. Default is 20 records. Maximum is 1000.\").optional(),\n}).describe(\"Request model for listing timesheet records.\");\nexport const ErpnextListTimesheetsOutput = z.object({\n data: z.array(z.record(z.string(), z.unknown())).describe(\"List of timesheet records. Each record contains at least the 'name' field, plus any additional fields specified in the request.\"),\n}).passthrough().describe(\"Response model for listing timesheet records.\");\n\nexport const erpnextListTimesheets = action(\"ERPNEXT_LIST_TIMESHEETS\", {\n slug: \"erpnext-list-timesheets\",\n name: \"List Timesheets\",\n description: \"Tool to get a list of Timesheet records from ERPNext. Use when you need to retrieve, search, or filter timesheets. Supports pagination and flexible field selection.\",\n input: ErpnextListTimesheetsInput,\n output: ErpnextListTimesheetsOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-timesheets.mjs","names":[],"sources":["../../src/actions/list-timesheets.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { erpnext } from \"../app\";\n\nexport const ErpnextListTimesheetsInput = z.object({\n fields: z.array(z.string()).describe(\"List of fields to include in the response. By default, only the 'name' field is included. To add more fields, specify them in this list. For example: ['name', 'employee', 'total_hours', 'status']\").optional(),\n filters: z.array(z.array(z.union([z.string(), z.number().int(), z.number(), z.boolean()]))).describe(\"SQL-style conditions to filter the listing. Each condition is an array of the format: [doctype, field, operator, value]. For example: [['Timesheet', 'status', '=', 'Submitted']] to get only submitted timesheets. Multiple filters can be combined: [['Timesheet', 'employee', '=', 'EMP-001'], ['Timesheet', 'status', '=', 'Draft']]\").optional(),\n limit_start: z.number().int().default(0).describe(\"Starting position for pagination. To request successive pages, pass a multiple of your limit_page_length. For example, to request the second page with page length 20, pass limit_start=20.\").optional(),\n limit_page_length: z.number().int().default(20).describe(\"Number of records to return per page. Controls the page size for pagination. Default is 20 records. Maximum is 1000.\").optional(),\n}).describe(\"Request model for listing timesheet records.\");\nexport const ErpnextListTimesheetsOutput = z.object({\n data: z.array(z.record(z.string(), z.unknown())).describe(\"List of timesheet records. Each record contains at least the 'name' field, plus any additional fields specified in the request.\"),\n}).passthrough().describe(\"Response model for listing timesheet records.\");\n\nexport const erpnextListTimesheets: AppAction<\n typeof ErpnextListTimesheetsInput,\n typeof ErpnextListTimesheetsOutput,\n typeof erpnext.credential\n> = action(\"ERPNEXT_LIST_TIMESHEETS\", {\n slug: \"erpnext-list-timesheets\",\n name: \"List Timesheets\",\n description: \"Tool to get a list of Timesheet records from ERPNext. Use when you need to retrieve, search, or filter timesheets. Supports pagination and flexible field selection.\",\n input: ErpnextListTimesheetsInput,\n output: ErpnextListTimesheetsOutput,\n});\n"],"mappings":";;;AAgBA,MAAa,wBAIT,OAAO,2BAA2B;CACpC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlBwC,EAAE,OAAO;EACjD,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qMAAqM,CAAC,CAAC,SAAS;EACrP,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;GAAC,EAAE,OAAO;GAAG,EAAE,OAAO,CAAC,CAAC,IAAI;GAAG,EAAE,OAAO;GAAG,EAAE,QAAQ;EAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,0UAA0U,CAAC,CAAC,SAAS;EAC1b,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,6LAA6L,CAAC,CAAC,SAAS;EAC1P,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,sHAAsH,CAAC,CAAC,SAAS;CAC5L,CAAC,CAAC,CAAC,SAAS,8CAaH;CACP,QAbyC,EAAE,OAAO,EAClD,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,iIAAiI,EAC7L,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-webhooks.cjs","names":["z","action"],"sources":["../../src/actions/list-webhooks.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextListWebhooksInput = z.object({\n fields: z.array(z.string()).describe(\"List of fields to include in the response. By default, only the 'name' field is included. Pass additional fields like ['name', 'webhook_doctype', 'webhook_docevent'] to get more data.\").optional(),\n filters: z.array(z.array(z.union([z.string(), z.number().int()]))).describe(\"SQL conditions to filter the listing. Each condition is an array of the format [doctype, field, operator, value]. For example: [['Webhook', 'enabled', '=', 1]]\").optional(),\n limit_start: z.number().int().describe(\"Starting index for pagination. Pass a multiple of limit_page_length to get successive pages. For example, to get the second page with page size 20, pass 20.\").optional(),\n limit_page_length: z.number().int().describe(\"Number of items to return per page. By default, the API returns 20 items.\").optional(),\n}).describe(\"Request model for listing webhook configurations in ERPNext.\");\nconst ErpnextListWebhooks_WebhookItemSchema = z.object({\n name: z.string().describe(\"Name/ID of the webhook configuration\").nullable(),\n enabled: z.number().int().describe(\"Whether the webhook is enabled (1) or disabled (0)\").nullable().optional(),\n request_url: z.string().describe(\"The URL that the webhook sends requests to\").nullable().optional(),\n webhook_doctype: z.string().describe(\"The document type that triggers this webhook\").nullable().optional(),\n webhook_docevent: z.string().describe(\"The document event that triggers this webhook\").nullable().optional(),\n}).passthrough().describe(\"Represents a single webhook configuration. Accepts additional fields\\nbeyond 'name' since the request supports custom field selection.\");\nexport const ErpnextListWebhooksOutput = z.object({\n data: z.array(ErpnextListWebhooks_WebhookItemSchema).describe(\"List of webhook configurations returned by the API\"),\n}).passthrough().describe(\"Response model for listing webhooks.\");\n\nexport const erpnextListWebhooks = action(\"ERPNEXT_LIST_WEBHOOKS\", {\n slug: \"erpnext-list-webhooks\",\n name: \"List Webhooks\",\n description: \"Tool to list webhook configurations in ERPNext. Use when you need to retrieve all configured webhooks or search for specific webhooks using filters.\",\n input: ErpnextListWebhooksInput,\n output: ErpnextListWebhooksOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-webhooks.cjs","names":["z","action"],"sources":["../../src/actions/list-webhooks.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { erpnext } from \"../app\";\n\nexport const ErpnextListWebhooksInput = z.object({\n fields: z.array(z.string()).describe(\"List of fields to include in the response. By default, only the 'name' field is included. Pass additional fields like ['name', 'webhook_doctype', 'webhook_docevent'] to get more data.\").optional(),\n filters: z.array(z.array(z.union([z.string(), z.number().int()]))).describe(\"SQL conditions to filter the listing. Each condition is an array of the format [doctype, field, operator, value]. For example: [['Webhook', 'enabled', '=', 1]]\").optional(),\n limit_start: z.number().int().describe(\"Starting index for pagination. Pass a multiple of limit_page_length to get successive pages. For example, to get the second page with page size 20, pass 20.\").optional(),\n limit_page_length: z.number().int().describe(\"Number of items to return per page. By default, the API returns 20 items.\").optional(),\n}).describe(\"Request model for listing webhook configurations in ERPNext.\");\nconst ErpnextListWebhooks_WebhookItemSchema = z.object({\n name: z.string().describe(\"Name/ID of the webhook configuration\").nullable(),\n enabled: z.number().int().describe(\"Whether the webhook is enabled (1) or disabled (0)\").nullable().optional(),\n request_url: z.string().describe(\"The URL that the webhook sends requests to\").nullable().optional(),\n webhook_doctype: z.string().describe(\"The document type that triggers this webhook\").nullable().optional(),\n webhook_docevent: z.string().describe(\"The document event that triggers this webhook\").nullable().optional(),\n}).passthrough().describe(\"Represents a single webhook configuration. Accepts additional fields\\nbeyond 'name' since the request supports custom field selection.\");\nexport const ErpnextListWebhooksOutput = z.object({\n data: z.array(ErpnextListWebhooks_WebhookItemSchema).describe(\"List of webhook configurations returned by the API\"),\n}).passthrough().describe(\"Response model for listing webhooks.\");\n\nexport const erpnextListWebhooks: AppAction<\n typeof ErpnextListWebhooksInput,\n typeof ErpnextListWebhooksOutput,\n typeof erpnext.credential\n> = action(\"ERPNEXT_LIST_WEBHOOKS\", {\n slug: \"erpnext-list-webhooks\",\n name: \"List Webhooks\",\n description: \"Tool to list webhook configurations in ERPNext. Use when you need to retrieve all configured webhooks or search for specific webhooks using filters.\",\n input: ErpnextListWebhooksInput,\n output: ErpnextListWebhooksOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,yLAAyL,CAAC,CAAC,SAAS;CACzO,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,iKAAiK,CAAC,CAAC,SAAS;CACxP,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8JAA8J,CAAC,CAAC,SAAS;CAChN,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;AACrI,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAM,wCAAwCA,IAAAA,EAAE,OAAO;CACrD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC3E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wIAAwI;AAClK,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,MAAMA,IAAAA,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,oDAAoD,EACpH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAAsC;AAEhE,MAAa,sBAITC,eAAAA,OAAO,yBAAyB;CAClC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { erpnext } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/list-webhooks.d.ts
|
|
@@ -16,12 +18,7 @@ declare const ErpnextListWebhooksOutput: z.ZodObject<{
|
|
|
16
18
|
webhook_docevent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
19
|
}, z.core.$loose>>;
|
|
18
20
|
}, z.core.$loose>;
|
|
19
|
-
declare const erpnextListWebhooks:
|
|
20
|
-
fields?: string[] | undefined;
|
|
21
|
-
filters?: (string | number)[][] | undefined;
|
|
22
|
-
limit_start?: number | undefined;
|
|
23
|
-
limit_page_length?: number | undefined;
|
|
24
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
21
|
+
declare const erpnextListWebhooks: AppAction<typeof ErpnextListWebhooksInput, typeof ErpnextListWebhooksOutput, typeof erpnext.credential>;
|
|
25
22
|
//#endregion
|
|
26
23
|
export { erpnextListWebhooks };
|
|
27
24
|
//# sourceMappingURL=list-webhooks.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-webhooks.d.cts","names":[],"sources":["../../src/actions/list-webhooks.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-webhooks.d.cts","names":[],"sources":["../../src/actions/list-webhooks.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;cAaxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;cAIzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,OAAA,CAAQ,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { erpnext } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/list-webhooks.d.ts
|
|
@@ -16,12 +18,7 @@ declare const ErpnextListWebhooksOutput: z.ZodObject<{
|
|
|
16
18
|
webhook_docevent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
19
|
}, z.core.$loose>>;
|
|
18
20
|
}, z.core.$loose>;
|
|
19
|
-
declare const erpnextListWebhooks:
|
|
20
|
-
fields?: string[] | undefined;
|
|
21
|
-
filters?: (string | number)[][] | undefined;
|
|
22
|
-
limit_start?: number | undefined;
|
|
23
|
-
limit_page_length?: number | undefined;
|
|
24
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
21
|
+
declare const erpnextListWebhooks: AppAction<typeof ErpnextListWebhooksInput, typeof ErpnextListWebhooksOutput, typeof erpnext.credential>;
|
|
25
22
|
//#endregion
|
|
26
23
|
export { erpnextListWebhooks };
|
|
27
24
|
//# sourceMappingURL=list-webhooks.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-webhooks.d.mts","names":[],"sources":["../../src/actions/list-webhooks.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-webhooks.d.mts","names":[],"sources":["../../src/actions/list-webhooks.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;cAaxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;cAIzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,OAAA,CAAQ,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-webhooks.mjs","names":[],"sources":["../../src/actions/list-webhooks.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextListWebhooksInput = z.object({\n fields: z.array(z.string()).describe(\"List of fields to include in the response. By default, only the 'name' field is included. Pass additional fields like ['name', 'webhook_doctype', 'webhook_docevent'] to get more data.\").optional(),\n filters: z.array(z.array(z.union([z.string(), z.number().int()]))).describe(\"SQL conditions to filter the listing. Each condition is an array of the format [doctype, field, operator, value]. For example: [['Webhook', 'enabled', '=', 1]]\").optional(),\n limit_start: z.number().int().describe(\"Starting index for pagination. Pass a multiple of limit_page_length to get successive pages. For example, to get the second page with page size 20, pass 20.\").optional(),\n limit_page_length: z.number().int().describe(\"Number of items to return per page. By default, the API returns 20 items.\").optional(),\n}).describe(\"Request model for listing webhook configurations in ERPNext.\");\nconst ErpnextListWebhooks_WebhookItemSchema = z.object({\n name: z.string().describe(\"Name/ID of the webhook configuration\").nullable(),\n enabled: z.number().int().describe(\"Whether the webhook is enabled (1) or disabled (0)\").nullable().optional(),\n request_url: z.string().describe(\"The URL that the webhook sends requests to\").nullable().optional(),\n webhook_doctype: z.string().describe(\"The document type that triggers this webhook\").nullable().optional(),\n webhook_docevent: z.string().describe(\"The document event that triggers this webhook\").nullable().optional(),\n}).passthrough().describe(\"Represents a single webhook configuration. Accepts additional fields\\nbeyond 'name' since the request supports custom field selection.\");\nexport const ErpnextListWebhooksOutput = z.object({\n data: z.array(ErpnextListWebhooks_WebhookItemSchema).describe(\"List of webhook configurations returned by the API\"),\n}).passthrough().describe(\"Response model for listing webhooks.\");\n\nexport const erpnextListWebhooks = action(\"ERPNEXT_LIST_WEBHOOKS\", {\n slug: \"erpnext-list-webhooks\",\n name: \"List Webhooks\",\n description: \"Tool to list webhook configurations in ERPNext. Use when you need to retrieve all configured webhooks or search for specific webhooks using filters.\",\n input: ErpnextListWebhooksInput,\n output: ErpnextListWebhooksOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-webhooks.mjs","names":[],"sources":["../../src/actions/list-webhooks.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { erpnext } from \"../app\";\n\nexport const ErpnextListWebhooksInput = z.object({\n fields: z.array(z.string()).describe(\"List of fields to include in the response. By default, only the 'name' field is included. Pass additional fields like ['name', 'webhook_doctype', 'webhook_docevent'] to get more data.\").optional(),\n filters: z.array(z.array(z.union([z.string(), z.number().int()]))).describe(\"SQL conditions to filter the listing. Each condition is an array of the format [doctype, field, operator, value]. For example: [['Webhook', 'enabled', '=', 1]]\").optional(),\n limit_start: z.number().int().describe(\"Starting index for pagination. Pass a multiple of limit_page_length to get successive pages. For example, to get the second page with page size 20, pass 20.\").optional(),\n limit_page_length: z.number().int().describe(\"Number of items to return per page. By default, the API returns 20 items.\").optional(),\n}).describe(\"Request model for listing webhook configurations in ERPNext.\");\nconst ErpnextListWebhooks_WebhookItemSchema = z.object({\n name: z.string().describe(\"Name/ID of the webhook configuration\").nullable(),\n enabled: z.number().int().describe(\"Whether the webhook is enabled (1) or disabled (0)\").nullable().optional(),\n request_url: z.string().describe(\"The URL that the webhook sends requests to\").nullable().optional(),\n webhook_doctype: z.string().describe(\"The document type that triggers this webhook\").nullable().optional(),\n webhook_docevent: z.string().describe(\"The document event that triggers this webhook\").nullable().optional(),\n}).passthrough().describe(\"Represents a single webhook configuration. Accepts additional fields\\nbeyond 'name' since the request supports custom field selection.\");\nexport const ErpnextListWebhooksOutput = z.object({\n data: z.array(ErpnextListWebhooks_WebhookItemSchema).describe(\"List of webhook configurations returned by the API\"),\n}).passthrough().describe(\"Response model for listing webhooks.\");\n\nexport const erpnextListWebhooks: AppAction<\n typeof ErpnextListWebhooksInput,\n typeof ErpnextListWebhooksOutput,\n typeof erpnext.credential\n> = action(\"ERPNEXT_LIST_WEBHOOKS\", {\n slug: \"erpnext-list-webhooks\",\n name: \"List Webhooks\",\n description: \"Tool to list webhook configurations in ERPNext. Use when you need to retrieve all configured webhooks or search for specific webhooks using filters.\",\n input: ErpnextListWebhooksInput,\n output: ErpnextListWebhooksOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,2BAA2B,EAAE,OAAO;CAC/C,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,yLAAyL,CAAC,CAAC,SAAS;CACzO,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,iKAAiK,CAAC,CAAC,SAAS;CACxP,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8JAA8J,CAAC,CAAC,SAAS;CAChN,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;AACrI,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAM,wCAAwC,EAAE,OAAO;CACrD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC3E,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wIAAwI;AAKlK,MAAa,sBAIT,OAAO,yBAAyB;CAClC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAbuC,EAAE,OAAO,EAChD,MAAM,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,oDAAoD,EACpH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"make-delivery-note.cjs","names":["z","action"],"sources":["../../src/actions/make-delivery-note.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextMakeDeliveryNoteInput = z.object({\n source_name: z.string().describe(\"Sales Order name/ID from which to create the Delivery Note. The Sales Order must exist and be in a submitted state (docstatus=1). Example: 'SAL-ORD-2026-00002', 'SO-00123'.\"),\n}).describe(\"Request to create a Delivery Note from a Sales Order.\");\nconst ErpnextMakeDeliveryNote_DeliveryNoteDocumentSchema = z.object({\n name: z.string().describe(\"Unique identifier/name of the Delivery Note.\").nullable().optional(),\n items: z.array(z.record(z.string(), z.unknown())).describe(\"List of items to deliver, mapped from the Sales Order items.\").nullable().optional(),\n owner: z.string().describe(\"User who created the document.\").nullable().optional(),\n company: z.string().describe(\"Company issuing the delivery note.\").nullable().optional(),\n doctype: z.string().describe(\"Document type, always 'Delivery Note'.\").nullable().optional(),\n creation: z.string().describe(\"Timestamp when the document was created.\").nullable().optional(),\n customer: z.string().describe(\"Customer name from the Sales Order.\").nullable().optional(),\n modified: z.string().describe(\"Timestamp when the document was last modified.\").nullable().optional(),\n docstatus: z.number().int().describe(\"Document status: 0 = Draft, 1 = Submitted, 2 = Cancelled. Will be 0 for newly created delivery notes.\").nullable().optional(),\n posting_date: z.string().describe(\"Date when the delivery note is posted.\").nullable().optional(),\n customer_name: z.string().describe(\"Display name of the customer.\").nullable().optional(),\n}).passthrough().describe(\"Delivery Note document structure.\");\nexport const ErpnextMakeDeliveryNoteOutput = z.object({\n message: ErpnextMakeDeliveryNote_DeliveryNoteDocumentSchema.nullable(),\n}).passthrough().describe(\"Response containing the created Delivery Note draft document.\");\n\nexport const erpnextMakeDeliveryNote = action(\"ERPNEXT_MAKE_DELIVERY_NOTE\", {\n slug: \"erpnext-make-delivery-note\",\n name: \"Make Delivery Note\",\n description: \"Create a draft Delivery Note from an existing Sales Order in ERPNext. Use when you need to initiate shipment/delivery of items from a confirmed sales order. The created Delivery Note will be in draft state and can be modified before submission.\",\n input: ErpnextMakeDeliveryNoteInput,\n output: ErpnextMakeDeliveryNoteOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"make-delivery-note.cjs","names":["z","action"],"sources":["../../src/actions/make-delivery-note.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { erpnext } from \"../app\";\n\nexport const ErpnextMakeDeliveryNoteInput = z.object({\n source_name: z.string().describe(\"Sales Order name/ID from which to create the Delivery Note. The Sales Order must exist and be in a submitted state (docstatus=1). Example: 'SAL-ORD-2026-00002', 'SO-00123'.\"),\n}).describe(\"Request to create a Delivery Note from a Sales Order.\");\nconst ErpnextMakeDeliveryNote_DeliveryNoteDocumentSchema = z.object({\n name: z.string().describe(\"Unique identifier/name of the Delivery Note.\").nullable().optional(),\n items: z.array(z.record(z.string(), z.unknown())).describe(\"List of items to deliver, mapped from the Sales Order items.\").nullable().optional(),\n owner: z.string().describe(\"User who created the document.\").nullable().optional(),\n company: z.string().describe(\"Company issuing the delivery note.\").nullable().optional(),\n doctype: z.string().describe(\"Document type, always 'Delivery Note'.\").nullable().optional(),\n creation: z.string().describe(\"Timestamp when the document was created.\").nullable().optional(),\n customer: z.string().describe(\"Customer name from the Sales Order.\").nullable().optional(),\n modified: z.string().describe(\"Timestamp when the document was last modified.\").nullable().optional(),\n docstatus: z.number().int().describe(\"Document status: 0 = Draft, 1 = Submitted, 2 = Cancelled. Will be 0 for newly created delivery notes.\").nullable().optional(),\n posting_date: z.string().describe(\"Date when the delivery note is posted.\").nullable().optional(),\n customer_name: z.string().describe(\"Display name of the customer.\").nullable().optional(),\n}).passthrough().describe(\"Delivery Note document structure.\");\nexport const ErpnextMakeDeliveryNoteOutput = z.object({\n message: ErpnextMakeDeliveryNote_DeliveryNoteDocumentSchema.nullable(),\n}).passthrough().describe(\"Response containing the created Delivery Note draft document.\");\n\nexport const erpnextMakeDeliveryNote: AppAction<\n typeof ErpnextMakeDeliveryNoteInput,\n typeof ErpnextMakeDeliveryNoteOutput,\n typeof erpnext.credential\n> = action(\"ERPNEXT_MAKE_DELIVERY_NOTE\", {\n slug: \"erpnext-make-delivery-note\",\n name: \"Make Delivery Note\",\n description: \"Create a draft Delivery Note from an existing Sales Order in ERPNext. Use when you need to initiate shipment/delivery of items from a confirmed sales order. The created Delivery Note will be in draft state and can be modified before submission.\",\n input: ErpnextMakeDeliveryNoteInput,\n output: ErpnextMakeDeliveryNoteOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8KAA8K,EACjN,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,MAAM,qDAAqDA,IAAAA,EAAE,OAAO;CAClE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,OAAOA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/I,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClK,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mCAAmC;AAC7D,MAAa,gCAAgCA,IAAAA,EAAE,OAAO,EACpD,SAAS,mDAAmD,SAAS,EACvE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+DAA+D;AAEzF,MAAa,0BAITC,eAAAA,OAAO,8BAA8B;CACvC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { erpnext } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/make-delivery-note.d.ts
|
|
@@ -19,9 +21,7 @@ declare const ErpnextMakeDeliveryNoteOutput: z.ZodObject<{
|
|
|
19
21
|
customer_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
22
|
}, z.core.$loose>>;
|
|
21
23
|
}, z.core.$loose>;
|
|
22
|
-
declare const erpnextMakeDeliveryNote:
|
|
23
|
-
source_name: string;
|
|
24
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
24
|
+
declare const erpnextMakeDeliveryNote: AppAction<typeof ErpnextMakeDeliveryNoteInput, typeof ErpnextMakeDeliveryNoteOutput, typeof erpnext.credential>;
|
|
25
25
|
//#endregion
|
|
26
26
|
export { erpnextMakeDeliveryNote };
|
|
27
27
|
//# sourceMappingURL=make-delivery-note.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"make-delivery-note.d.cts","names":[],"sources":["../../src/actions/make-delivery-note.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"make-delivery-note.d.cts","names":[],"sources":["../../src/actions/make-delivery-note.ts"],"mappings":";;;;;cAMa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAgB5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAI7B,uBAAA,EAAyB,SAAA,QAC7B,4BAAA,SACA,6BAAA,SACA,OAAA,CAAQ,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { erpnext } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/make-delivery-note.d.ts
|
|
@@ -19,9 +21,7 @@ declare const ErpnextMakeDeliveryNoteOutput: z.ZodObject<{
|
|
|
19
21
|
customer_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
22
|
}, z.core.$loose>>;
|
|
21
23
|
}, z.core.$loose>;
|
|
22
|
-
declare const erpnextMakeDeliveryNote:
|
|
23
|
-
source_name: string;
|
|
24
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
24
|
+
declare const erpnextMakeDeliveryNote: AppAction<typeof ErpnextMakeDeliveryNoteInput, typeof ErpnextMakeDeliveryNoteOutput, typeof erpnext.credential>;
|
|
25
25
|
//#endregion
|
|
26
26
|
export { erpnextMakeDeliveryNote };
|
|
27
27
|
//# sourceMappingURL=make-delivery-note.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"make-delivery-note.d.mts","names":[],"sources":["../../src/actions/make-delivery-note.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"make-delivery-note.d.mts","names":[],"sources":["../../src/actions/make-delivery-note.ts"],"mappings":";;;;;cAMa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAgB5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAI7B,uBAAA,EAAyB,SAAA,QAC7B,4BAAA,SACA,6BAAA,SACA,OAAA,CAAQ,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"make-delivery-note.mjs","names":[],"sources":["../../src/actions/make-delivery-note.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextMakeDeliveryNoteInput = z.object({\n source_name: z.string().describe(\"Sales Order name/ID from which to create the Delivery Note. The Sales Order must exist and be in a submitted state (docstatus=1). Example: 'SAL-ORD-2026-00002', 'SO-00123'.\"),\n}).describe(\"Request to create a Delivery Note from a Sales Order.\");\nconst ErpnextMakeDeliveryNote_DeliveryNoteDocumentSchema = z.object({\n name: z.string().describe(\"Unique identifier/name of the Delivery Note.\").nullable().optional(),\n items: z.array(z.record(z.string(), z.unknown())).describe(\"List of items to deliver, mapped from the Sales Order items.\").nullable().optional(),\n owner: z.string().describe(\"User who created the document.\").nullable().optional(),\n company: z.string().describe(\"Company issuing the delivery note.\").nullable().optional(),\n doctype: z.string().describe(\"Document type, always 'Delivery Note'.\").nullable().optional(),\n creation: z.string().describe(\"Timestamp when the document was created.\").nullable().optional(),\n customer: z.string().describe(\"Customer name from the Sales Order.\").nullable().optional(),\n modified: z.string().describe(\"Timestamp when the document was last modified.\").nullable().optional(),\n docstatus: z.number().int().describe(\"Document status: 0 = Draft, 1 = Submitted, 2 = Cancelled. Will be 0 for newly created delivery notes.\").nullable().optional(),\n posting_date: z.string().describe(\"Date when the delivery note is posted.\").nullable().optional(),\n customer_name: z.string().describe(\"Display name of the customer.\").nullable().optional(),\n}).passthrough().describe(\"Delivery Note document structure.\");\nexport const ErpnextMakeDeliveryNoteOutput = z.object({\n message: ErpnextMakeDeliveryNote_DeliveryNoteDocumentSchema.nullable(),\n}).passthrough().describe(\"Response containing the created Delivery Note draft document.\");\n\nexport const erpnextMakeDeliveryNote = action(\"ERPNEXT_MAKE_DELIVERY_NOTE\", {\n slug: \"erpnext-make-delivery-note\",\n name: \"Make Delivery Note\",\n description: \"Create a draft Delivery Note from an existing Sales Order in ERPNext. Use when you need to initiate shipment/delivery of items from a confirmed sales order. The created Delivery Note will be in draft state and can be modified before submission.\",\n input: ErpnextMakeDeliveryNoteInput,\n output: ErpnextMakeDeliveryNoteOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"make-delivery-note.mjs","names":[],"sources":["../../src/actions/make-delivery-note.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { erpnext } from \"../app\";\n\nexport const ErpnextMakeDeliveryNoteInput = z.object({\n source_name: z.string().describe(\"Sales Order name/ID from which to create the Delivery Note. The Sales Order must exist and be in a submitted state (docstatus=1). Example: 'SAL-ORD-2026-00002', 'SO-00123'.\"),\n}).describe(\"Request to create a Delivery Note from a Sales Order.\");\nconst ErpnextMakeDeliveryNote_DeliveryNoteDocumentSchema = z.object({\n name: z.string().describe(\"Unique identifier/name of the Delivery Note.\").nullable().optional(),\n items: z.array(z.record(z.string(), z.unknown())).describe(\"List of items to deliver, mapped from the Sales Order items.\").nullable().optional(),\n owner: z.string().describe(\"User who created the document.\").nullable().optional(),\n company: z.string().describe(\"Company issuing the delivery note.\").nullable().optional(),\n doctype: z.string().describe(\"Document type, always 'Delivery Note'.\").nullable().optional(),\n creation: z.string().describe(\"Timestamp when the document was created.\").nullable().optional(),\n customer: z.string().describe(\"Customer name from the Sales Order.\").nullable().optional(),\n modified: z.string().describe(\"Timestamp when the document was last modified.\").nullable().optional(),\n docstatus: z.number().int().describe(\"Document status: 0 = Draft, 1 = Submitted, 2 = Cancelled. Will be 0 for newly created delivery notes.\").nullable().optional(),\n posting_date: z.string().describe(\"Date when the delivery note is posted.\").nullable().optional(),\n customer_name: z.string().describe(\"Display name of the customer.\").nullable().optional(),\n}).passthrough().describe(\"Delivery Note document structure.\");\nexport const ErpnextMakeDeliveryNoteOutput = z.object({\n message: ErpnextMakeDeliveryNote_DeliveryNoteDocumentSchema.nullable(),\n}).passthrough().describe(\"Response containing the created Delivery Note draft document.\");\n\nexport const erpnextMakeDeliveryNote: AppAction<\n typeof ErpnextMakeDeliveryNoteInput,\n typeof ErpnextMakeDeliveryNoteOutput,\n typeof erpnext.credential\n> = action(\"ERPNEXT_MAKE_DELIVERY_NOTE\", {\n slug: \"erpnext-make-delivery-note\",\n name: \"Make Delivery Note\",\n description: \"Create a draft Delivery Note from an existing Sales Order in ERPNext. Use when you need to initiate shipment/delivery of items from a confirmed sales order. The created Delivery Note will be in draft state and can be modified before submission.\",\n input: ErpnextMakeDeliveryNoteInput,\n output: ErpnextMakeDeliveryNoteOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,+BAA+B,EAAE,OAAO,EACnD,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,8KAA8K,EACjN,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,MAAM,qDAAqD,EAAE,OAAO;CAClE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/I,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClK,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mCAAmC;AAK7D,MAAa,0BAIT,OAAO,8BAA8B;CACvC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAb2C,EAAE,OAAO,EACpD,SAAS,mDAAmD,SAAS,EACvE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+DAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"make-purchase-order.cjs","names":["z","action"],"sources":["../../src/actions/make-purchase-order.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextMakePurchaseOrderInput = z.object({\n source_name: z.string().describe(\"Material Request name/ID from which to create the Purchase Order. The Material Request must exist and be of type 'Purchase' with submitted state (docstatus=1). Example: 'MAT-MR-2026-00001', 'MR-00123'.\"),\n}).describe(\"Request to create a Purchase Order from a Material Request.\");\nconst ErpnextMakePurchaseOrder_PurchaseOrderItemSchema = z.object({\n qty: z.number().describe(\"Quantity to purchase.\").nullable().optional(),\n uom: z.string().describe(\"Unit of measurement (e.g., 'Nos', 'Kg').\").nullable().optional(),\n rate: z.number().describe(\"Price per unit.\").nullable().optional(),\n amount: z.number().describe(\"Total amount for this item (qty * rate).\").nullable().optional(),\n item_code: z.string().describe(\"Item code/SKU from the Material Request.\").nullable().optional(),\n item_name: z.string().describe(\"Display name of the item.\").nullable().optional(),\n warehouse: z.string().describe(\"Target warehouse for delivery.\").nullable().optional(),\n description: z.string().describe(\"Item description.\").nullable().optional(),\n schedule_date: z.string().describe(\"Expected delivery date for this item.\").nullable().optional(),\n material_request: z.string().describe(\"Reference to the source Material Request.\").nullable().optional(),\n material_request_item: z.string().describe(\"Reference to the specific Material Request item line.\").nullable().optional(),\n}).passthrough().describe(\"Item entry in a Purchase Order.\");\nconst ErpnextMakePurchaseOrder_PurchaseOrderDocumentSchema = z.object({\n name: z.string().describe(\"Purchase Order name/ID (e.g., 'PO-2026-00001').\").nullable().optional(),\n items: z.array(ErpnextMakePurchaseOrder_PurchaseOrderItemSchema).describe(\"List of items in the Purchase Order.\").nullable().optional(),\n owner: z.string().describe(\"User who created the document.\").nullable().optional(),\n company: z.string().describe(\"Company making the purchase.\").nullable().optional(),\n doctype: z.string().describe(\"Document type, always 'Purchase Order'.\").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 supplier: z.string().describe(\"Supplier name to purchase from.\").nullable().optional(),\n docstatus: z.number().int().describe(\"Document status: 0=Draft, 1=Submitted, 2=Cancelled.\").nullable().optional(),\n schedule_date: z.string().describe(\"Expected delivery date for the order.\").nullable().optional(),\n transaction_date: z.string().describe(\"Date of the purchase order transaction.\").nullable().optional(),\n}).passthrough().describe(\"Purchase Order document structure returned by the API.\");\nexport const ErpnextMakePurchaseOrderOutput = z.object({\n message: ErpnextMakePurchaseOrder_PurchaseOrderDocumentSchema.nullable(),\n}).passthrough().describe(\"Response containing the created Purchase Order draft document.\");\n\nexport const erpnextMakePurchaseOrder = action(\"ERPNEXT_MAKE_PURCHASE_ORDER\", {\n slug: \"erpnext-make-purchase-order\",\n name: \"Make Purchase Order\",\n description: \"Create a draft Purchase Order from an existing Material Request in ERPNext. Use when you need to initiate procurement of items from an approved material request. The created Purchase Order will be in draft state and can be modified before submission.\",\n input: ErpnextMakePurchaseOrderInput,\n output: ErpnextMakePurchaseOrderOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"make-purchase-order.cjs","names":["z","action"],"sources":["../../src/actions/make-purchase-order.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { erpnext } from \"../app\";\n\nexport const ErpnextMakePurchaseOrderInput = z.object({\n source_name: z.string().describe(\"Material Request name/ID from which to create the Purchase Order. The Material Request must exist and be of type 'Purchase' with submitted state (docstatus=1). Example: 'MAT-MR-2026-00001', 'MR-00123'.\"),\n}).describe(\"Request to create a Purchase Order from a Material Request.\");\nconst ErpnextMakePurchaseOrder_PurchaseOrderItemSchema = z.object({\n qty: z.number().describe(\"Quantity to purchase.\").nullable().optional(),\n uom: z.string().describe(\"Unit of measurement (e.g., 'Nos', 'Kg').\").nullable().optional(),\n rate: z.number().describe(\"Price per unit.\").nullable().optional(),\n amount: z.number().describe(\"Total amount for this item (qty * rate).\").nullable().optional(),\n item_code: z.string().describe(\"Item code/SKU from the Material Request.\").nullable().optional(),\n item_name: z.string().describe(\"Display name of the item.\").nullable().optional(),\n warehouse: z.string().describe(\"Target warehouse for delivery.\").nullable().optional(),\n description: z.string().describe(\"Item description.\").nullable().optional(),\n schedule_date: z.string().describe(\"Expected delivery date for this item.\").nullable().optional(),\n material_request: z.string().describe(\"Reference to the source Material Request.\").nullable().optional(),\n material_request_item: z.string().describe(\"Reference to the specific Material Request item line.\").nullable().optional(),\n}).passthrough().describe(\"Item entry in a Purchase Order.\");\nconst ErpnextMakePurchaseOrder_PurchaseOrderDocumentSchema = z.object({\n name: z.string().describe(\"Purchase Order name/ID (e.g., 'PO-2026-00001').\").nullable().optional(),\n items: z.array(ErpnextMakePurchaseOrder_PurchaseOrderItemSchema).describe(\"List of items in the Purchase Order.\").nullable().optional(),\n owner: z.string().describe(\"User who created the document.\").nullable().optional(),\n company: z.string().describe(\"Company making the purchase.\").nullable().optional(),\n doctype: z.string().describe(\"Document type, always 'Purchase Order'.\").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 supplier: z.string().describe(\"Supplier name to purchase from.\").nullable().optional(),\n docstatus: z.number().int().describe(\"Document status: 0=Draft, 1=Submitted, 2=Cancelled.\").nullable().optional(),\n schedule_date: z.string().describe(\"Expected delivery date for the order.\").nullable().optional(),\n transaction_date: z.string().describe(\"Date of the purchase order transaction.\").nullable().optional(),\n}).passthrough().describe(\"Purchase Order document structure returned by the API.\");\nexport const ErpnextMakePurchaseOrderOutput = z.object({\n message: ErpnextMakePurchaseOrder_PurchaseOrderDocumentSchema.nullable(),\n}).passthrough().describe(\"Response containing the created Purchase Order draft document.\");\n\nexport const erpnextMakePurchaseOrder: AppAction<\n typeof ErpnextMakePurchaseOrderInput,\n typeof ErpnextMakePurchaseOrderOutput,\n typeof erpnext.credential\n> = action(\"ERPNEXT_MAKE_PURCHASE_ORDER\", {\n slug: \"erpnext-make-purchase-order\",\n name: \"Make Purchase Order\",\n description: \"Create a draft Purchase Order from an existing Material Request in ERPNext. Use when you need to initiate procurement of items from an approved material request. The created Purchase Order will be in draft state and can be modified before submission.\",\n input: ErpnextMakePurchaseOrderInput,\n output: ErpnextMakePurchaseOrderOutput,\n});\n"],"mappings":"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"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { erpnext } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/make-purchase-order.d.ts
|
|
@@ -31,9 +33,7 @@ declare const ErpnextMakePurchaseOrderOutput: z.ZodObject<{
|
|
|
31
33
|
transaction_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32
34
|
}, z.core.$loose>>;
|
|
33
35
|
}, z.core.$loose>;
|
|
34
|
-
declare const erpnextMakePurchaseOrder:
|
|
35
|
-
source_name: string;
|
|
36
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
36
|
+
declare const erpnextMakePurchaseOrder: AppAction<typeof ErpnextMakePurchaseOrderInput, typeof ErpnextMakePurchaseOrderOutput, typeof erpnext.credential>;
|
|
37
37
|
//#endregion
|
|
38
38
|
export { erpnextMakePurchaseOrder };
|
|
39
39
|
//# sourceMappingURL=make-purchase-order.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"make-purchase-order.d.cts","names":[],"sources":["../../src/actions/make-purchase-order.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"make-purchase-order.d.cts","names":[],"sources":["../../src/actions/make-purchase-order.ts"],"mappings":";;;;;cAMa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;cA6B7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;cAI9B,wBAAA,EAA0B,SAAA,QAC9B,6BAAA,SACA,8BAAA,SACA,OAAA,CAAQ,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { erpnext } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/make-purchase-order.d.ts
|
|
@@ -31,9 +33,7 @@ declare const ErpnextMakePurchaseOrderOutput: z.ZodObject<{
|
|
|
31
33
|
transaction_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32
34
|
}, z.core.$loose>>;
|
|
33
35
|
}, z.core.$loose>;
|
|
34
|
-
declare const erpnextMakePurchaseOrder:
|
|
35
|
-
source_name: string;
|
|
36
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
36
|
+
declare const erpnextMakePurchaseOrder: AppAction<typeof ErpnextMakePurchaseOrderInput, typeof ErpnextMakePurchaseOrderOutput, typeof erpnext.credential>;
|
|
37
37
|
//#endregion
|
|
38
38
|
export { erpnextMakePurchaseOrder };
|
|
39
39
|
//# sourceMappingURL=make-purchase-order.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"make-purchase-order.d.mts","names":[],"sources":["../../src/actions/make-purchase-order.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"make-purchase-order.d.mts","names":[],"sources":["../../src/actions/make-purchase-order.ts"],"mappings":";;;;;cAMa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;cA6B7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;cAI9B,wBAAA,EAA0B,SAAA,QAC9B,6BAAA,SACA,8BAAA,SACA,OAAA,CAAQ,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"make-purchase-order.mjs","names":[],"sources":["../../src/actions/make-purchase-order.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextMakePurchaseOrderInput = z.object({\n source_name: z.string().describe(\"Material Request name/ID from which to create the Purchase Order. The Material Request must exist and be of type 'Purchase' with submitted state (docstatus=1). Example: 'MAT-MR-2026-00001', 'MR-00123'.\"),\n}).describe(\"Request to create a Purchase Order from a Material Request.\");\nconst ErpnextMakePurchaseOrder_PurchaseOrderItemSchema = z.object({\n qty: z.number().describe(\"Quantity to purchase.\").nullable().optional(),\n uom: z.string().describe(\"Unit of measurement (e.g., 'Nos', 'Kg').\").nullable().optional(),\n rate: z.number().describe(\"Price per unit.\").nullable().optional(),\n amount: z.number().describe(\"Total amount for this item (qty * rate).\").nullable().optional(),\n item_code: z.string().describe(\"Item code/SKU from the Material Request.\").nullable().optional(),\n item_name: z.string().describe(\"Display name of the item.\").nullable().optional(),\n warehouse: z.string().describe(\"Target warehouse for delivery.\").nullable().optional(),\n description: z.string().describe(\"Item description.\").nullable().optional(),\n schedule_date: z.string().describe(\"Expected delivery date for this item.\").nullable().optional(),\n material_request: z.string().describe(\"Reference to the source Material Request.\").nullable().optional(),\n material_request_item: z.string().describe(\"Reference to the specific Material Request item line.\").nullable().optional(),\n}).passthrough().describe(\"Item entry in a Purchase Order.\");\nconst ErpnextMakePurchaseOrder_PurchaseOrderDocumentSchema = z.object({\n name: z.string().describe(\"Purchase Order name/ID (e.g., 'PO-2026-00001').\").nullable().optional(),\n items: z.array(ErpnextMakePurchaseOrder_PurchaseOrderItemSchema).describe(\"List of items in the Purchase Order.\").nullable().optional(),\n owner: z.string().describe(\"User who created the document.\").nullable().optional(),\n company: z.string().describe(\"Company making the purchase.\").nullable().optional(),\n doctype: z.string().describe(\"Document type, always 'Purchase Order'.\").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 supplier: z.string().describe(\"Supplier name to purchase from.\").nullable().optional(),\n docstatus: z.number().int().describe(\"Document status: 0=Draft, 1=Submitted, 2=Cancelled.\").nullable().optional(),\n schedule_date: z.string().describe(\"Expected delivery date for the order.\").nullable().optional(),\n transaction_date: z.string().describe(\"Date of the purchase order transaction.\").nullable().optional(),\n}).passthrough().describe(\"Purchase Order document structure returned by the API.\");\nexport const ErpnextMakePurchaseOrderOutput = z.object({\n message: ErpnextMakePurchaseOrder_PurchaseOrderDocumentSchema.nullable(),\n}).passthrough().describe(\"Response containing the created Purchase Order draft document.\");\n\nexport const erpnextMakePurchaseOrder = action(\"ERPNEXT_MAKE_PURCHASE_ORDER\", {\n slug: \"erpnext-make-purchase-order\",\n name: \"Make Purchase Order\",\n description: \"Create a draft Purchase Order from an existing Material Request in ERPNext. Use when you need to initiate procurement of items from an approved material request. The created Purchase Order will be in draft state and can be modified before submission.\",\n input: ErpnextMakePurchaseOrderInput,\n output: ErpnextMakePurchaseOrderOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"make-purchase-order.mjs","names":[],"sources":["../../src/actions/make-purchase-order.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { erpnext } from \"../app\";\n\nexport const ErpnextMakePurchaseOrderInput = z.object({\n source_name: z.string().describe(\"Material Request name/ID from which to create the Purchase Order. The Material Request must exist and be of type 'Purchase' with submitted state (docstatus=1). Example: 'MAT-MR-2026-00001', 'MR-00123'.\"),\n}).describe(\"Request to create a Purchase Order from a Material Request.\");\nconst ErpnextMakePurchaseOrder_PurchaseOrderItemSchema = z.object({\n qty: z.number().describe(\"Quantity to purchase.\").nullable().optional(),\n uom: z.string().describe(\"Unit of measurement (e.g., 'Nos', 'Kg').\").nullable().optional(),\n rate: z.number().describe(\"Price per unit.\").nullable().optional(),\n amount: z.number().describe(\"Total amount for this item (qty * rate).\").nullable().optional(),\n item_code: z.string().describe(\"Item code/SKU from the Material Request.\").nullable().optional(),\n item_name: z.string().describe(\"Display name of the item.\").nullable().optional(),\n warehouse: z.string().describe(\"Target warehouse for delivery.\").nullable().optional(),\n description: z.string().describe(\"Item description.\").nullable().optional(),\n schedule_date: z.string().describe(\"Expected delivery date for this item.\").nullable().optional(),\n material_request: z.string().describe(\"Reference to the source Material Request.\").nullable().optional(),\n material_request_item: z.string().describe(\"Reference to the specific Material Request item line.\").nullable().optional(),\n}).passthrough().describe(\"Item entry in a Purchase Order.\");\nconst ErpnextMakePurchaseOrder_PurchaseOrderDocumentSchema = z.object({\n name: z.string().describe(\"Purchase Order name/ID (e.g., 'PO-2026-00001').\").nullable().optional(),\n items: z.array(ErpnextMakePurchaseOrder_PurchaseOrderItemSchema).describe(\"List of items in the Purchase Order.\").nullable().optional(),\n owner: z.string().describe(\"User who created the document.\").nullable().optional(),\n company: z.string().describe(\"Company making the purchase.\").nullable().optional(),\n doctype: z.string().describe(\"Document type, always 'Purchase Order'.\").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 supplier: z.string().describe(\"Supplier name to purchase from.\").nullable().optional(),\n docstatus: z.number().int().describe(\"Document status: 0=Draft, 1=Submitted, 2=Cancelled.\").nullable().optional(),\n schedule_date: z.string().describe(\"Expected delivery date for the order.\").nullable().optional(),\n transaction_date: z.string().describe(\"Date of the purchase order transaction.\").nullable().optional(),\n}).passthrough().describe(\"Purchase Order document structure returned by the API.\");\nexport const ErpnextMakePurchaseOrderOutput = z.object({\n message: ErpnextMakePurchaseOrder_PurchaseOrderDocumentSchema.nullable(),\n}).passthrough().describe(\"Response containing the created Purchase Order draft document.\");\n\nexport const erpnextMakePurchaseOrder: AppAction<\n typeof ErpnextMakePurchaseOrderInput,\n typeof ErpnextMakePurchaseOrderOutput,\n typeof erpnext.credential\n> = action(\"ERPNEXT_MAKE_PURCHASE_ORDER\", {\n slug: \"erpnext-make-purchase-order\",\n name: \"Make Purchase Order\",\n description: \"Create a draft Purchase Order from an existing Material Request in ERPNext. Use when you need to initiate procurement of items from an approved material request. The created Purchase Order will be in draft state and can be modified before submission.\",\n input: ErpnextMakePurchaseOrderInput,\n output: ErpnextMakePurchaseOrderOutput,\n});\n"],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"make-sales-invoice.cjs","names":["z","action"],"sources":["../../src/actions/make-sales-invoice.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextMakeSalesInvoiceInput = z.object({\n source_name: z.string().describe(\"Sales Order name/ID to convert into a Sales Invoice. Must be a valid Sales Order identifier (e.g., 'SAL-ORD-2026-00001'). The Sales Order should exist in the system and be in a valid state for invoice creation.\"),\n}).describe(\"Request parameters for creating a Sales Invoice from a Sales Order.\");\nconst ErpnextMakeSalesInvoice_SalesInvoiceDataSchema = z.object({\n name: z.string().describe(\"Unique identifier/name of the created Sales Invoice document.\").nullable().optional(),\n items: z.array(z.record(z.string(), z.unknown())).describe(\"List of items in the Sales Invoice with details like item_code, qty, rate, amount.\").nullable().optional(),\n owner: z.string().describe(\"User who created the Sales Invoice.\").nullable().optional(),\n company: z.string().describe(\"Company name for which the Sales Invoice is created.\").nullable().optional(),\n doctype: z.string().describe(\"Document type, typically 'Sales Invoice'.\").nullable().optional(),\n creation: z.string().describe(\"ISO timestamp when the Sales Invoice was created.\").nullable().optional(),\n customer: z.string().describe(\"Customer name associated with the Sales Invoice.\").nullable().optional(),\n due_date: z.string().describe(\"Payment due date for the Sales Invoice.\").nullable().optional(),\n modified: z.string().describe(\"ISO timestamp when the Sales Invoice was last modified.\").nullable().optional(),\n docstatus: z.number().int().describe(\"Document status: 0=Draft, 1=Submitted, 2=Cancelled.\").nullable().optional(),\n grand_total: z.number().describe(\"Total amount of the Sales Invoice including taxes.\").nullable().optional(),\n modified_by: z.string().describe(\"User who last modified the Sales Invoice.\").nullable().optional(),\n posting_date: z.string().describe(\"Date when the Sales Invoice is posted.\").nullable().optional(),\n}).passthrough().describe(\"Sales Invoice document data returned by ERPNext.\");\nexport const ErpnextMakeSalesInvoiceOutput = z.object({\n message: ErpnextMakeSalesInvoice_SalesInvoiceDataSchema.nullable(),\n}).passthrough().describe(\"Response containing the created Sales Invoice document.\");\n\nexport const erpnextMakeSalesInvoice = action(\"ERPNEXT_MAKE_SALES_INVOICE\", {\n slug: \"erpnext-make-sales-invoice\",\n name: \"Make Sales Invoice\",\n description: \"Tool to create a Sales Invoice from an existing Sales Order in ERPNext. Use when you need to generate an invoice for a confirmed sales order. The created invoice will be in draft state and can be submitted separately if needed.\",\n input: ErpnextMakeSalesInvoiceInput,\n output: ErpnextMakeSalesInvoiceOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"make-sales-invoice.cjs","names":["z","action"],"sources":["../../src/actions/make-sales-invoice.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { erpnext } from \"../app\";\n\nexport const ErpnextMakeSalesInvoiceInput = z.object({\n source_name: z.string().describe(\"Sales Order name/ID to convert into a Sales Invoice. Must be a valid Sales Order identifier (e.g., 'SAL-ORD-2026-00001'). The Sales Order should exist in the system and be in a valid state for invoice creation.\"),\n}).describe(\"Request parameters for creating a Sales Invoice from a Sales Order.\");\nconst ErpnextMakeSalesInvoice_SalesInvoiceDataSchema = z.object({\n name: z.string().describe(\"Unique identifier/name of the created Sales Invoice document.\").nullable().optional(),\n items: z.array(z.record(z.string(), z.unknown())).describe(\"List of items in the Sales Invoice with details like item_code, qty, rate, amount.\").nullable().optional(),\n owner: z.string().describe(\"User who created the Sales Invoice.\").nullable().optional(),\n company: z.string().describe(\"Company name for which the Sales Invoice is created.\").nullable().optional(),\n doctype: z.string().describe(\"Document type, typically 'Sales Invoice'.\").nullable().optional(),\n creation: z.string().describe(\"ISO timestamp when the Sales Invoice was created.\").nullable().optional(),\n customer: z.string().describe(\"Customer name associated with the Sales Invoice.\").nullable().optional(),\n due_date: z.string().describe(\"Payment due date for the Sales Invoice.\").nullable().optional(),\n modified: z.string().describe(\"ISO timestamp when the Sales Invoice was last modified.\").nullable().optional(),\n docstatus: z.number().int().describe(\"Document status: 0=Draft, 1=Submitted, 2=Cancelled.\").nullable().optional(),\n grand_total: z.number().describe(\"Total amount of the Sales Invoice including taxes.\").nullable().optional(),\n modified_by: z.string().describe(\"User who last modified the Sales Invoice.\").nullable().optional(),\n posting_date: z.string().describe(\"Date when the Sales Invoice is posted.\").nullable().optional(),\n}).passthrough().describe(\"Sales Invoice document data returned by ERPNext.\");\nexport const ErpnextMakeSalesInvoiceOutput = z.object({\n message: ErpnextMakeSalesInvoice_SalesInvoiceDataSchema.nullable(),\n}).passthrough().describe(\"Response containing the created Sales Invoice document.\");\n\nexport const erpnextMakeSalesInvoice: AppAction<\n typeof ErpnextMakeSalesInvoiceInput,\n typeof ErpnextMakeSalesInvoiceOutput,\n typeof erpnext.credential\n> = action(\"ERPNEXT_MAKE_SALES_INVOICE\", {\n slug: \"erpnext-make-sales-invoice\",\n name: \"Make Sales Invoice\",\n description: \"Tool to create a Sales Invoice from an existing Sales Order in ERPNext. Use when you need to generate an invoice for a confirmed sales order. The created invoice will be in draft state and can be submitted separately if needed.\",\n input: ErpnextMakeSalesInvoiceInput,\n output: ErpnextMakeSalesInvoiceOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oNAAoN,EACvP,CAAC,CAAC,CAAC,SAAS,qEAAqE;AACjF,MAAM,iDAAiDA,IAAAA,EAAE,OAAO;CAC9D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,OAAOA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrK,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAAkD;AAC5E,MAAa,gCAAgCA,IAAAA,EAAE,OAAO,EACpD,SAAS,+CAA+C,SAAS,EACnE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yDAAyD;AAEnF,MAAa,0BAITC,eAAAA,OAAO,8BAA8B;CACvC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { erpnext } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/make-sales-invoice.d.ts
|
|
@@ -21,9 +23,7 @@ declare const ErpnextMakeSalesInvoiceOutput: z.ZodObject<{
|
|
|
21
23
|
posting_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
24
|
}, z.core.$loose>>;
|
|
23
25
|
}, z.core.$loose>;
|
|
24
|
-
declare const erpnextMakeSalesInvoice:
|
|
25
|
-
source_name: string;
|
|
26
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
26
|
+
declare const erpnextMakeSalesInvoice: AppAction<typeof ErpnextMakeSalesInvoiceInput, typeof ErpnextMakeSalesInvoiceOutput, typeof erpnext.credential>;
|
|
27
27
|
//#endregion
|
|
28
28
|
export { erpnextMakeSalesInvoice };
|
|
29
29
|
//# sourceMappingURL=make-sales-invoice.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"make-sales-invoice.d.cts","names":[],"sources":["../../src/actions/make-sales-invoice.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"make-sales-invoice.d.cts","names":[],"sources":["../../src/actions/make-sales-invoice.ts"],"mappings":";;;;;cAMa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAkB5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAI7B,uBAAA,EAAyB,SAAA,QAC7B,4BAAA,SACA,6BAAA,SACA,OAAA,CAAQ,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { erpnext } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/make-sales-invoice.d.ts
|
|
@@ -21,9 +23,7 @@ declare const ErpnextMakeSalesInvoiceOutput: z.ZodObject<{
|
|
|
21
23
|
posting_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
24
|
}, z.core.$loose>>;
|
|
23
25
|
}, z.core.$loose>;
|
|
24
|
-
declare const erpnextMakeSalesInvoice:
|
|
25
|
-
source_name: string;
|
|
26
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
26
|
+
declare const erpnextMakeSalesInvoice: AppAction<typeof ErpnextMakeSalesInvoiceInput, typeof ErpnextMakeSalesInvoiceOutput, typeof erpnext.credential>;
|
|
27
27
|
//#endregion
|
|
28
28
|
export { erpnextMakeSalesInvoice };
|
|
29
29
|
//# sourceMappingURL=make-sales-invoice.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"make-sales-invoice.d.mts","names":[],"sources":["../../src/actions/make-sales-invoice.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"make-sales-invoice.d.mts","names":[],"sources":["../../src/actions/make-sales-invoice.ts"],"mappings":";;;;;cAMa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAkB5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAI7B,uBAAA,EAAyB,SAAA,QAC7B,4BAAA,SACA,6BAAA,SACA,OAAA,CAAQ,UAAA"}
|