@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
package/dist/action.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.cjs","names":["erpnext","executeErpnextTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { erpnext } from \"./app\";\nimport { executeErpnextTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output:
|
|
1
|
+
{"version":3,"file":"action.cjs","names":["erpnext","executeErpnextTool"],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { erpnext } from \"./app\";\nimport { executeErpnextTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof erpnext.credential> {\n return erpnext.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeErpnextTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAOA,SAAgB,OACd,MACA,KAOuD;CACvD,OAAOA,YAAAA,QAAQ,OAAO;EACpB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,mBAAmB,MAAM,KAAgC,CAAC;EAC1F;CACF,CAAC;AACH"}
|
package/dist/action.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { erpnext } from \"./app\";\nimport { executeErpnextTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output:
|
|
1
|
+
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { erpnext } from \"./app\";\nimport { executeErpnextTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof erpnext.credential> {\n return erpnext.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeErpnextTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAOA,SAAgB,OACd,MACA,KAOuD;CACvD,OAAO,QAAQ,OAAO;EACpB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,mBAAmB,MAAM,KAAgC,CAAC;EAC1F;CACF,CAAC;AACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-comment.cjs","names":["z","action"],"sources":["../../src/actions/add-comment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextAddCommentInput = z.object({\n content: z.string().describe(\"The comment content/text to be added to the document\"),\n comment_by: z.string().describe(\"Name or identifier of the person making the comment (typically same as comment_email)\"),\n comment_email: z.string().describe(\"Email address of the person making the comment\"),\n reference_name: z.string().describe(\"The name/ID of the specific document to add the comment to\"),\n reference_doctype: z.string().describe(\"The DocType of the document to add comment to (e.g., 'ToDo', 'Issue', 'Task')\"),\n}).describe(\"Request model for adding a comment to a document.\");\nexport const ErpnextAddCommentOutput = z.object({\n name: z.string().describe(\"Unique name/ID of the created comment\").nullable(),\n owner: z.string().describe(\"Owner of the comment document\").nullable().optional(),\n content: z.string().describe(\"The comment content that was added\").nullable(),\n creation: z.string().describe(\"Timestamp when the comment was created\").nullable().optional(),\n modified: z.string().describe(\"Timestamp when the comment was last modified\").nullable().optional(),\n comment_by: z.string().describe(\"Name/identifier of the person who made the comment\").nullable(),\n modified_by: z.string().describe(\"User who last modified the comment\").nullable().optional(),\n comment_type: z.string().describe(\"Type of the comment (typically 'Comment')\").nullable().optional(),\n comment_email: z.string().describe(\"Email address of the person who made the comment\").nullable(),\n reference_name: z.string().describe(\"The name/ID of the document the comment was added to\").nullable(),\n reference_doctype: z.string().describe(\"The DocType of the document the comment was added to\").nullable(),\n}).passthrough().describe(\"Response model for added comment.\");\n\nexport const erpnextAddComment = action(\"ERPNEXT_ADD_COMMENT\", {\n slug: \"erpnext-add-comment\",\n name: \"Add Comment\",\n description: \"Tool to add a comment to a document in ERPNext/Frappe. Use when you need to add comments or notes to any document type like ToDo, Issue, Task, or custom DocTypes.\",\n input: ErpnextAddCommentInput,\n output: ErpnextAddCommentOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"add-comment.cjs","names":["z","action"],"sources":["../../src/actions/add-comment.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 ErpnextAddCommentInput = z.object({\n content: z.string().describe(\"The comment content/text to be added to the document\"),\n comment_by: z.string().describe(\"Name or identifier of the person making the comment (typically same as comment_email)\"),\n comment_email: z.string().describe(\"Email address of the person making the comment\"),\n reference_name: z.string().describe(\"The name/ID of the specific document to add the comment to\"),\n reference_doctype: z.string().describe(\"The DocType of the document to add comment to (e.g., 'ToDo', 'Issue', 'Task')\"),\n}).describe(\"Request model for adding a comment to a document.\");\nexport const ErpnextAddCommentOutput = z.object({\n name: z.string().describe(\"Unique name/ID of the created comment\").nullable(),\n owner: z.string().describe(\"Owner of the comment document\").nullable().optional(),\n content: z.string().describe(\"The comment content that was added\").nullable(),\n creation: z.string().describe(\"Timestamp when the comment was created\").nullable().optional(),\n modified: z.string().describe(\"Timestamp when the comment was last modified\").nullable().optional(),\n comment_by: z.string().describe(\"Name/identifier of the person who made the comment\").nullable(),\n modified_by: z.string().describe(\"User who last modified the comment\").nullable().optional(),\n comment_type: z.string().describe(\"Type of the comment (typically 'Comment')\").nullable().optional(),\n comment_email: z.string().describe(\"Email address of the person who made the comment\").nullable(),\n reference_name: z.string().describe(\"The name/ID of the document the comment was added to\").nullable(),\n reference_doctype: z.string().describe(\"The DocType of the document the comment was added to\").nullable(),\n}).passthrough().describe(\"Response model for added comment.\");\n\nexport const erpnextAddComment: AppAction<\n typeof ErpnextAddCommentInput,\n typeof ErpnextAddCommentOutput,\n typeof erpnext.credential\n> = action(\"ERPNEXT_ADD_COMMENT\", {\n slug: \"erpnext-add-comment\",\n name: \"Add Comment\",\n description: \"Tool to add a comment to a document in ERPNext/Frappe. Use when you need to add comments or notes to any document type like ToDo, Issue, Task, or custom DocTypes.\",\n input: ErpnextAddCommentInput,\n output: ErpnextAddCommentOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,yBAAyBA,IAAAA,EAAE,OAAO;CAC7C,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;CACnF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uFAAuF;CACvH,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;CACnF,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;CAChG,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E;AACxH,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC5E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC5E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC/F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CAChG,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CACrG,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mCAAmC;AAE7D,MAAa,oBAITC,eAAAA,OAAO,uBAAuB;CAChC,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/add-comment.d.ts
|
|
@@ -21,13 +23,7 @@ declare const ErpnextAddCommentOutput: z.ZodObject<{
|
|
|
21
23
|
reference_name: z.ZodNullable<z.ZodString>;
|
|
22
24
|
reference_doctype: z.ZodNullable<z.ZodString>;
|
|
23
25
|
}, z.core.$loose>;
|
|
24
|
-
declare const erpnextAddComment:
|
|
25
|
-
content: string;
|
|
26
|
-
comment_by: string;
|
|
27
|
-
comment_email: string;
|
|
28
|
-
reference_name: string;
|
|
29
|
-
reference_doctype: string;
|
|
30
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
26
|
+
declare const erpnextAddComment: AppAction<typeof ErpnextAddCommentInput, typeof ErpnextAddCommentOutput, typeof erpnext.credential>;
|
|
31
27
|
//#endregion
|
|
32
28
|
export { erpnextAddComment };
|
|
33
29
|
//# sourceMappingURL=add-comment.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-comment.d.cts","names":[],"sources":["../../src/actions/add-comment.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"add-comment.d.cts","names":[],"sources":["../../src/actions/add-comment.ts"],"mappings":";;;;;cAMa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;cAOtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAcvB,iBAAA,EAAmB,SAAA,QACvB,sBAAA,SACA,uBAAA,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/add-comment.d.ts
|
|
@@ -21,13 +23,7 @@ declare const ErpnextAddCommentOutput: z.ZodObject<{
|
|
|
21
23
|
reference_name: z.ZodNullable<z.ZodString>;
|
|
22
24
|
reference_doctype: z.ZodNullable<z.ZodString>;
|
|
23
25
|
}, z.core.$loose>;
|
|
24
|
-
declare const erpnextAddComment:
|
|
25
|
-
content: string;
|
|
26
|
-
comment_by: string;
|
|
27
|
-
comment_email: string;
|
|
28
|
-
reference_name: string;
|
|
29
|
-
reference_doctype: string;
|
|
30
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
26
|
+
declare const erpnextAddComment: AppAction<typeof ErpnextAddCommentInput, typeof ErpnextAddCommentOutput, typeof erpnext.credential>;
|
|
31
27
|
//#endregion
|
|
32
28
|
export { erpnextAddComment };
|
|
33
29
|
//# sourceMappingURL=add-comment.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-comment.d.mts","names":[],"sources":["../../src/actions/add-comment.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"add-comment.d.mts","names":[],"sources":["../../src/actions/add-comment.ts"],"mappings":";;;;;cAMa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;cAOtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAcvB,iBAAA,EAAmB,SAAA,QACvB,sBAAA,SACA,uBAAA,SACA,OAAA,CAAQ,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-comment.mjs","names":[],"sources":["../../src/actions/add-comment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextAddCommentInput = z.object({\n content: z.string().describe(\"The comment content/text to be added to the document\"),\n comment_by: z.string().describe(\"Name or identifier of the person making the comment (typically same as comment_email)\"),\n comment_email: z.string().describe(\"Email address of the person making the comment\"),\n reference_name: z.string().describe(\"The name/ID of the specific document to add the comment to\"),\n reference_doctype: z.string().describe(\"The DocType of the document to add comment to (e.g., 'ToDo', 'Issue', 'Task')\"),\n}).describe(\"Request model for adding a comment to a document.\");\nexport const ErpnextAddCommentOutput = z.object({\n name: z.string().describe(\"Unique name/ID of the created comment\").nullable(),\n owner: z.string().describe(\"Owner of the comment document\").nullable().optional(),\n content: z.string().describe(\"The comment content that was added\").nullable(),\n creation: z.string().describe(\"Timestamp when the comment was created\").nullable().optional(),\n modified: z.string().describe(\"Timestamp when the comment was last modified\").nullable().optional(),\n comment_by: z.string().describe(\"Name/identifier of the person who made the comment\").nullable(),\n modified_by: z.string().describe(\"User who last modified the comment\").nullable().optional(),\n comment_type: z.string().describe(\"Type of the comment (typically 'Comment')\").nullable().optional(),\n comment_email: z.string().describe(\"Email address of the person who made the comment\").nullable(),\n reference_name: z.string().describe(\"The name/ID of the document the comment was added to\").nullable(),\n reference_doctype: z.string().describe(\"The DocType of the document the comment was added to\").nullable(),\n}).passthrough().describe(\"Response model for added comment.\");\n\nexport const erpnextAddComment = action(\"ERPNEXT_ADD_COMMENT\", {\n slug: \"erpnext-add-comment\",\n name: \"Add Comment\",\n description: \"Tool to add a comment to a document in ERPNext/Frappe. Use when you need to add comments or notes to any document type like ToDo, Issue, Task, or custom DocTypes.\",\n input: ErpnextAddCommentInput,\n output: ErpnextAddCommentOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"add-comment.mjs","names":[],"sources":["../../src/actions/add-comment.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 ErpnextAddCommentInput = z.object({\n content: z.string().describe(\"The comment content/text to be added to the document\"),\n comment_by: z.string().describe(\"Name or identifier of the person making the comment (typically same as comment_email)\"),\n comment_email: z.string().describe(\"Email address of the person making the comment\"),\n reference_name: z.string().describe(\"The name/ID of the specific document to add the comment to\"),\n reference_doctype: z.string().describe(\"The DocType of the document to add comment to (e.g., 'ToDo', 'Issue', 'Task')\"),\n}).describe(\"Request model for adding a comment to a document.\");\nexport const ErpnextAddCommentOutput = z.object({\n name: z.string().describe(\"Unique name/ID of the created comment\").nullable(),\n owner: z.string().describe(\"Owner of the comment document\").nullable().optional(),\n content: z.string().describe(\"The comment content that was added\").nullable(),\n creation: z.string().describe(\"Timestamp when the comment was created\").nullable().optional(),\n modified: z.string().describe(\"Timestamp when the comment was last modified\").nullable().optional(),\n comment_by: z.string().describe(\"Name/identifier of the person who made the comment\").nullable(),\n modified_by: z.string().describe(\"User who last modified the comment\").nullable().optional(),\n comment_type: z.string().describe(\"Type of the comment (typically 'Comment')\").nullable().optional(),\n comment_email: z.string().describe(\"Email address of the person who made the comment\").nullable(),\n reference_name: z.string().describe(\"The name/ID of the document the comment was added to\").nullable(),\n reference_doctype: z.string().describe(\"The DocType of the document the comment was added to\").nullable(),\n}).passthrough().describe(\"Response model for added comment.\");\n\nexport const erpnextAddComment: AppAction<\n typeof ErpnextAddCommentInput,\n typeof ErpnextAddCommentOutput,\n typeof erpnext.credential\n> = action(\"ERPNEXT_ADD_COMMENT\", {\n slug: \"erpnext-add-comment\",\n name: \"Add Comment\",\n description: \"Tool to add a comment to a document in ERPNext/Frappe. Use when you need to add comments or notes to any document type like ToDo, Issue, Task, or custom DocTypes.\",\n input: ErpnextAddCommentInput,\n output: ErpnextAddCommentOutput,\n});\n"],"mappings":";;;AA2BA,MAAa,oBAIT,OAAO,uBAAuB;CAChC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA7BoC,EAAE,OAAO;EAC7C,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;EACnF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uFAAuF;EACvH,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;EACnF,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;EAChG,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E;CACxH,CAAC,CAAC,CAAC,SAAS,mDAuBH;CACP,QAvBqC,EAAE,OAAO;EAC9C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;EAC5E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;EAC5E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5F,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;EAC/F,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3F,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnG,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;EAChG,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;EACrG,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC1G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mCAWhB;AACV,CAAC"}
|
package/dist/actions/add-tag.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-tag.cjs","names":["z","action"],"sources":["../../src/actions/add-tag.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextAddTagInput = z.object({\n dn: z.string().describe(\"Target document name (unique identifier) of the document to tag. This is the specific document instance within the DocType.\"),\n dt: z.string().describe(\"Target DocType (document type) to which the tag will be added. Examples include 'ToDo', 'Sales Invoice', 'Customer', etc.\"),\n tag: z.string().describe(\"Tag to add to the document. Can be any string value.\"),\n}).describe(\"Request model for adding a tag to a document in ERPNext.\");\nexport const ErpnextAddTagOutput = z.object({\n message: z.string().describe(\"Response message from the API indicating success or failure details.\").nullable().optional(),\n}).passthrough().describe(\"Response model returned after adding a tag to a document.\");\n\nexport const erpnextAddTag = action(\"ERPNEXT_ADD_TAG\", {\n slug: \"erpnext-add-tag\",\n name: \"Add Tag\",\n description: \"Tool to add a tag to a document in ERPNext. Use when you need to categorize or label documents for organization and filtering purposes.\",\n input: ErpnextAddTagInput,\n output: ErpnextAddTagOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"add-tag.cjs","names":["z","action"],"sources":["../../src/actions/add-tag.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 ErpnextAddTagInput = z.object({\n dn: z.string().describe(\"Target document name (unique identifier) of the document to tag. This is the specific document instance within the DocType.\"),\n dt: z.string().describe(\"Target DocType (document type) to which the tag will be added. Examples include 'ToDo', 'Sales Invoice', 'Customer', etc.\"),\n tag: z.string().describe(\"Tag to add to the document. Can be any string value.\"),\n}).describe(\"Request model for adding a tag to a document in ERPNext.\");\nexport const ErpnextAddTagOutput = z.object({\n message: z.string().describe(\"Response message from the API indicating success or failure details.\").nullable().optional(),\n}).passthrough().describe(\"Response model returned after adding a tag to a document.\");\n\nexport const erpnextAddTag: AppAction<\n typeof ErpnextAddTagInput,\n typeof ErpnextAddTagOutput,\n typeof erpnext.credential\n> = action(\"ERPNEXT_ADD_TAG\", {\n slug: \"erpnext-add-tag\",\n name: \"Add Tag\",\n description: \"Tool to add a tag to a document in ERPNext. Use when you need to categorize or label documents for organization and filtering purposes.\",\n input: ErpnextAddTagInput,\n output: ErpnextAddTagOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,qBAAqBA,IAAAA,EAAE,OAAO;CACzC,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6HAA6H;CACrJ,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2HAA2H;CACnJ,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;AACjF,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACtE,MAAa,sBAAsBA,IAAAA,EAAE,OAAO,EAC1C,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC3H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2DAA2D;AAErF,MAAa,gBAITC,eAAAA,OAAO,mBAAmB;CAC5B,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/add-tag.d.ts
|
|
@@ -9,11 +11,7 @@ declare const ErpnextAddTagInput: z.ZodObject<{
|
|
|
9
11
|
declare const ErpnextAddTagOutput: z.ZodObject<{
|
|
10
12
|
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
13
|
}, z.core.$loose>;
|
|
12
|
-
declare const erpnextAddTag:
|
|
13
|
-
dn: string;
|
|
14
|
-
dt: string;
|
|
15
|
-
tag: string;
|
|
16
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
14
|
+
declare const erpnextAddTag: AppAction<typeof ErpnextAddTagInput, typeof ErpnextAddTagOutput, typeof erpnext.credential>;
|
|
17
15
|
//#endregion
|
|
18
16
|
export { erpnextAddTag };
|
|
19
17
|
//# sourceMappingURL=add-tag.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-tag.d.cts","names":[],"sources":["../../src/actions/add-tag.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"add-tag.d.cts","names":[],"sources":["../../src/actions/add-tag.ts"],"mappings":";;;;;cAMa,kBAAA,EAAkB,CAAA,CAAA,SAAA;;;;;cAKlB,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;cAInB,aAAA,EAAe,SAAA,QACnB,kBAAA,SACA,mBAAA,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/add-tag.d.ts
|
|
@@ -9,11 +11,7 @@ declare const ErpnextAddTagInput: z.ZodObject<{
|
|
|
9
11
|
declare const ErpnextAddTagOutput: z.ZodObject<{
|
|
10
12
|
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
13
|
}, z.core.$loose>;
|
|
12
|
-
declare const erpnextAddTag:
|
|
13
|
-
dn: string;
|
|
14
|
-
dt: string;
|
|
15
|
-
tag: string;
|
|
16
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
14
|
+
declare const erpnextAddTag: AppAction<typeof ErpnextAddTagInput, typeof ErpnextAddTagOutput, typeof erpnext.credential>;
|
|
17
15
|
//#endregion
|
|
18
16
|
export { erpnextAddTag };
|
|
19
17
|
//# sourceMappingURL=add-tag.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-tag.d.mts","names":[],"sources":["../../src/actions/add-tag.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"add-tag.d.mts","names":[],"sources":["../../src/actions/add-tag.ts"],"mappings":";;;;;cAMa,kBAAA,EAAkB,CAAA,CAAA,SAAA;;;;;cAKlB,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;cAInB,aAAA,EAAe,SAAA,QACnB,kBAAA,SACA,mBAAA,SACA,OAAA,CAAQ,UAAA"}
|
package/dist/actions/add-tag.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-tag.mjs","names":[],"sources":["../../src/actions/add-tag.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextAddTagInput = z.object({\n dn: z.string().describe(\"Target document name (unique identifier) of the document to tag. This is the specific document instance within the DocType.\"),\n dt: z.string().describe(\"Target DocType (document type) to which the tag will be added. Examples include 'ToDo', 'Sales Invoice', 'Customer', etc.\"),\n tag: z.string().describe(\"Tag to add to the document. Can be any string value.\"),\n}).describe(\"Request model for adding a tag to a document in ERPNext.\");\nexport const ErpnextAddTagOutput = z.object({\n message: z.string().describe(\"Response message from the API indicating success or failure details.\").nullable().optional(),\n}).passthrough().describe(\"Response model returned after adding a tag to a document.\");\n\nexport const erpnextAddTag = action(\"ERPNEXT_ADD_TAG\", {\n slug: \"erpnext-add-tag\",\n name: \"Add Tag\",\n description: \"Tool to add a tag to a document in ERPNext. Use when you need to categorize or label documents for organization and filtering purposes.\",\n input: ErpnextAddTagInput,\n output: ErpnextAddTagOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"add-tag.mjs","names":[],"sources":["../../src/actions/add-tag.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 ErpnextAddTagInput = z.object({\n dn: z.string().describe(\"Target document name (unique identifier) of the document to tag. This is the specific document instance within the DocType.\"),\n dt: z.string().describe(\"Target DocType (document type) to which the tag will be added. Examples include 'ToDo', 'Sales Invoice', 'Customer', etc.\"),\n tag: z.string().describe(\"Tag to add to the document. Can be any string value.\"),\n}).describe(\"Request model for adding a tag to a document in ERPNext.\");\nexport const ErpnextAddTagOutput = z.object({\n message: z.string().describe(\"Response message from the API indicating success or failure details.\").nullable().optional(),\n}).passthrough().describe(\"Response model returned after adding a tag to a document.\");\n\nexport const erpnextAddTag: AppAction<\n typeof ErpnextAddTagInput,\n typeof ErpnextAddTagOutput,\n typeof erpnext.credential\n> = action(\"ERPNEXT_ADD_TAG\", {\n slug: \"erpnext-add-tag\",\n name: \"Add Tag\",\n description: \"Tool to add a tag to a document in ERPNext. Use when you need to categorize or label documents for organization and filtering purposes.\",\n input: ErpnextAddTagInput,\n output: ErpnextAddTagOutput,\n});\n"],"mappings":";;;AAeA,MAAa,gBAIT,OAAO,mBAAmB;CAC5B,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAjBgC,EAAE,OAAO;EACzC,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,6HAA6H;EACrJ,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,2HAA2H;EACnJ,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;CACjF,CAAC,CAAC,CAAC,SAAS,0DAaH;CACP,QAbiC,EAAE,OAAO,EAC1C,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC3H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2DAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apply-workflow.cjs","names":["z","action"],"sources":["../../src/actions/apply-workflow.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextApplyWorkflowInput = z.object({\n doc: z.record(z.string(), z.unknown()).describe(\"Document object to apply the workflow action to. Must include required fields like 'name', 'doctype', and other document-specific fields.\"),\n action: z.string().describe(\"Workflow action name to apply (e.g., 'Approve', 'Reject', 'Submit'). Must be a valid action defined in the document's workflow.\"),\n}).describe(\"Request model for applying a workflow action to a document.\");\nexport const ErpnextApplyWorkflowOutput = z.object({\n exc: z.string().describe(\"Exception or error message if the operation failed\").nullable().optional(),\n docs: z.array(z.record(z.string(), z.unknown())).describe(\"List of documents affected by the workflow action\").nullable().optional(),\n message: z.union([z.string(), z.record(z.string(), z.unknown()), z.array(z.record(z.string(), z.unknown()))]).nullable().optional(),\n}).passthrough().describe(\"Response model returned after applying a workflow action.\");\n\nexport const erpnextApplyWorkflow = action(\"ERPNEXT_APPLY_WORKFLOW\", {\n slug: \"erpnext-apply-workflow\",\n name: \"Apply Workflow\",\n description: \"Tool to apply a workflow action to a document in ERPNext/Frappe. Use when you need to transition a document through workflow states (e.g., approve, reject, submit). The document must have a workflow configured for its doctype.\",\n input: ErpnextApplyWorkflowInput,\n output: ErpnextApplyWorkflowOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"apply-workflow.cjs","names":["z","action"],"sources":["../../src/actions/apply-workflow.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 ErpnextApplyWorkflowInput = z.object({\n doc: z.record(z.string(), z.unknown()).describe(\"Document object to apply the workflow action to. Must include required fields like 'name', 'doctype', and other document-specific fields.\"),\n action: z.string().describe(\"Workflow action name to apply (e.g., 'Approve', 'Reject', 'Submit'). Must be a valid action defined in the document's workflow.\"),\n}).describe(\"Request model for applying a workflow action to a document.\");\nexport const ErpnextApplyWorkflowOutput = z.object({\n exc: z.string().describe(\"Exception or error message if the operation failed\").nullable().optional(),\n docs: z.array(z.record(z.string(), z.unknown())).describe(\"List of documents affected by the workflow action\").nullable().optional(),\n message: z.union([z.string(), z.record(z.string(), z.unknown()), z.array(z.record(z.string(), z.unknown()))]).nullable().optional(),\n}).passthrough().describe(\"Response model returned after applying a workflow action.\");\n\nexport const erpnextApplyWorkflow: AppAction<\n typeof ErpnextApplyWorkflowInput,\n typeof ErpnextApplyWorkflowOutput,\n typeof erpnext.credential\n> = action(\"ERPNEXT_APPLY_WORKFLOW\", {\n slug: \"erpnext-apply-workflow\",\n name: \"Apply Workflow\",\n description: \"Tool to apply a workflow action to a document in ERPNext/Frappe. Use when you need to transition a document through workflow states (e.g., approve, reject, submit). The document must have a workflow configured for its doctype.\",\n input: ErpnextApplyWorkflowInput,\n output: ErpnextApplyWorkflowOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,KAAKA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2IAA2I;CAC3L,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iIAAiI;AAC/J,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnI,SAASA,IAAAA,EAAE,MAAM;EAACA,IAAAA,EAAE,OAAO;EAAGA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC;EAAGA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC;CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2DAA2D;AAErF,MAAa,uBAITC,eAAAA,OAAO,0BAA0B;CACnC,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/apply-workflow.d.ts
|
|
@@ -10,10 +12,7 @@ declare const ErpnextApplyWorkflowOutput: z.ZodObject<{
|
|
|
10
12
|
docs: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
11
13
|
message: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>]>>>;
|
|
12
14
|
}, z.core.$loose>;
|
|
13
|
-
declare const erpnextApplyWorkflow:
|
|
14
|
-
doc: Record<string, unknown>;
|
|
15
|
-
action: string;
|
|
16
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
15
|
+
declare const erpnextApplyWorkflow: AppAction<typeof ErpnextApplyWorkflowInput, typeof ErpnextApplyWorkflowOutput, typeof erpnext.credential>;
|
|
17
16
|
//#endregion
|
|
18
17
|
export { erpnextApplyWorkflow };
|
|
19
18
|
//# sourceMappingURL=apply-workflow.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apply-workflow.d.cts","names":[],"sources":["../../src/actions/apply-workflow.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"apply-workflow.d.cts","names":[],"sources":["../../src/actions/apply-workflow.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;cAIzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;cAM1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,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/apply-workflow.d.ts
|
|
@@ -10,10 +12,7 @@ declare const ErpnextApplyWorkflowOutput: z.ZodObject<{
|
|
|
10
12
|
docs: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
11
13
|
message: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>]>>>;
|
|
12
14
|
}, z.core.$loose>;
|
|
13
|
-
declare const erpnextApplyWorkflow:
|
|
14
|
-
doc: Record<string, unknown>;
|
|
15
|
-
action: string;
|
|
16
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
15
|
+
declare const erpnextApplyWorkflow: AppAction<typeof ErpnextApplyWorkflowInput, typeof ErpnextApplyWorkflowOutput, typeof erpnext.credential>;
|
|
17
16
|
//#endregion
|
|
18
17
|
export { erpnextApplyWorkflow };
|
|
19
18
|
//# sourceMappingURL=apply-workflow.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apply-workflow.d.mts","names":[],"sources":["../../src/actions/apply-workflow.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"apply-workflow.d.mts","names":[],"sources":["../../src/actions/apply-workflow.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;cAIzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;cAM1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,OAAA,CAAQ,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apply-workflow.mjs","names":[],"sources":["../../src/actions/apply-workflow.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextApplyWorkflowInput = z.object({\n doc: z.record(z.string(), z.unknown()).describe(\"Document object to apply the workflow action to. Must include required fields like 'name', 'doctype', and other document-specific fields.\"),\n action: z.string().describe(\"Workflow action name to apply (e.g., 'Approve', 'Reject', 'Submit'). Must be a valid action defined in the document's workflow.\"),\n}).describe(\"Request model for applying a workflow action to a document.\");\nexport const ErpnextApplyWorkflowOutput = z.object({\n exc: z.string().describe(\"Exception or error message if the operation failed\").nullable().optional(),\n docs: z.array(z.record(z.string(), z.unknown())).describe(\"List of documents affected by the workflow action\").nullable().optional(),\n message: z.union([z.string(), z.record(z.string(), z.unknown()), z.array(z.record(z.string(), z.unknown()))]).nullable().optional(),\n}).passthrough().describe(\"Response model returned after applying a workflow action.\");\n\nexport const erpnextApplyWorkflow = action(\"ERPNEXT_APPLY_WORKFLOW\", {\n slug: \"erpnext-apply-workflow\",\n name: \"Apply Workflow\",\n description: \"Tool to apply a workflow action to a document in ERPNext/Frappe. Use when you need to transition a document through workflow states (e.g., approve, reject, submit). The document must have a workflow configured for its doctype.\",\n input: ErpnextApplyWorkflowInput,\n output: ErpnextApplyWorkflowOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"apply-workflow.mjs","names":[],"sources":["../../src/actions/apply-workflow.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 ErpnextApplyWorkflowInput = z.object({\n doc: z.record(z.string(), z.unknown()).describe(\"Document object to apply the workflow action to. Must include required fields like 'name', 'doctype', and other document-specific fields.\"),\n action: z.string().describe(\"Workflow action name to apply (e.g., 'Approve', 'Reject', 'Submit'). Must be a valid action defined in the document's workflow.\"),\n}).describe(\"Request model for applying a workflow action to a document.\");\nexport const ErpnextApplyWorkflowOutput = z.object({\n exc: z.string().describe(\"Exception or error message if the operation failed\").nullable().optional(),\n docs: z.array(z.record(z.string(), z.unknown())).describe(\"List of documents affected by the workflow action\").nullable().optional(),\n message: z.union([z.string(), z.record(z.string(), z.unknown()), z.array(z.record(z.string(), z.unknown()))]).nullable().optional(),\n}).passthrough().describe(\"Response model returned after applying a workflow action.\");\n\nexport const erpnextApplyWorkflow: AppAction<\n typeof ErpnextApplyWorkflowInput,\n typeof ErpnextApplyWorkflowOutput,\n typeof erpnext.credential\n> = action(\"ERPNEXT_APPLY_WORKFLOW\", {\n slug: \"erpnext-apply-workflow\",\n name: \"Apply Workflow\",\n description: \"Tool to apply a workflow action to a document in ERPNext/Frappe. Use when you need to transition a document through workflow states (e.g., approve, reject, submit). The document must have a workflow configured for its doctype.\",\n input: ErpnextApplyWorkflowInput,\n output: ErpnextApplyWorkflowOutput,\n});\n"],"mappings":";;;AAgBA,MAAa,uBAIT,OAAO,0BAA0B;CACnC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlBuC,EAAE,OAAO;EAChD,KAAK,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2IAA2I;EAC3L,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,iIAAiI;CAC/J,CAAC,CAAC,CAAC,SAAS,6DAeH;CACP,QAfwC,EAAE,OAAO;EACjD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnG,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnI,SAAS,EAAE,MAAM;GAAC,EAAE,OAAO;GAAG,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC;GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC;EAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2DAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cancel-document.cjs","names":["z","action"],"sources":["../../src/actions/cancel-document.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextCancelDocumentInput = z.object({\n name: z.string().describe(\"The unique name/ID of the submitted document to cancel. This is the document's primary identifier within ERPNext. The document must exist and be in Submitted state.\"),\n doctype: z.string().describe(\"The DocType of the document to cancel. Only submittable DocTypes can be canceled. Examples: 'Journal Entry', 'Sales Invoice', 'Purchase Order', 'Delivery Note', 'Payment Entry', 'Stock Entry'. The document must be in Submitted state (docstatus=1).\"),\n}).describe(\"Request parameters for canceling a submitted document in ERPNext/Frappe.\");\nexport const ErpnextCancelDocumentOutput = z.object({\n docs: z.array(z.record(z.string(), z.unknown())).describe(\"Additional document data if returned by the API.\").nullable().optional(),\n message: z.record(z.string(), z.unknown()).describe(\"Canceled document object returned by the API. Contains document metadata including the updated docstatus field (2=Cancelled) and other core fields like name, doctype, modified timestamp, etc.\").nullable().optional(),\n}).passthrough().describe(\"Response from canceling a document in ERPNext/Frappe.\");\n\nexport const erpnextCancelDocument = action(\"ERPNEXT_CANCEL_DOCUMENT\", {\n slug: \"erpnext-cancel-document\",\n name: \"Cancel Document\",\n description: \"Cancel a submitted document in ERPNext/Frappe to change its status from Submitted to Cancelled. Use for submittable DocTypes when you need to reverse or cancel a submitted transaction. Document must be in Submitted state (docstatus=1) before cancellation.\",\n input: ErpnextCancelDocumentInput,\n output: ErpnextCancelDocumentOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"cancel-document.cjs","names":["z","action"],"sources":["../../src/actions/cancel-document.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 ErpnextCancelDocumentInput = z.object({\n name: z.string().describe(\"The unique name/ID of the submitted document to cancel. This is the document's primary identifier within ERPNext. The document must exist and be in Submitted state.\"),\n doctype: z.string().describe(\"The DocType of the document to cancel. Only submittable DocTypes can be canceled. Examples: 'Journal Entry', 'Sales Invoice', 'Purchase Order', 'Delivery Note', 'Payment Entry', 'Stock Entry'. The document must be in Submitted state (docstatus=1).\"),\n}).describe(\"Request parameters for canceling a submitted document in ERPNext/Frappe.\");\nexport const ErpnextCancelDocumentOutput = z.object({\n docs: z.array(z.record(z.string(), z.unknown())).describe(\"Additional document data if returned by the API.\").nullable().optional(),\n message: z.record(z.string(), z.unknown()).describe(\"Canceled document object returned by the API. Contains document metadata including the updated docstatus field (2=Cancelled) and other core fields like name, doctype, modified timestamp, etc.\").nullable().optional(),\n}).passthrough().describe(\"Response from canceling a document in ERPNext/Frappe.\");\n\nexport const erpnextCancelDocument: AppAction<\n typeof ErpnextCancelDocumentInput,\n typeof ErpnextCancelDocumentOutput,\n typeof erpnext.credential\n> = action(\"ERPNEXT_CANCEL_DOCUMENT\", {\n slug: \"erpnext-cancel-document\",\n name: \"Cancel Document\",\n description: \"Cancel a submitted document in ERPNext/Frappe to change its status from Submitted to Cancelled. Use for submittable DocTypes when you need to reverse or cancel a submitted transaction. Document must be in Submitted state (docstatus=1) before cancellation.\",\n input: ErpnextCancelDocumentInput,\n output: ErpnextCancelDocumentOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sKAAsK;CAChM,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yPAAyP;AACxR,CAAC,CAAC,CAAC,SAAS,0EAA0E;AACtF,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClI,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iMAAiM,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7Q,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAAuD;AAEjF,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/cancel-document.d.ts
|
|
@@ -9,10 +11,7 @@ declare const ErpnextCancelDocumentOutput: z.ZodObject<{
|
|
|
9
11
|
docs: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
10
12
|
message: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
11
13
|
}, z.core.$loose>;
|
|
12
|
-
declare const erpnextCancelDocument:
|
|
13
|
-
name: string;
|
|
14
|
-
doctype: string;
|
|
15
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
14
|
+
declare const erpnextCancelDocument: AppAction<typeof ErpnextCancelDocumentInput, typeof ErpnextCancelDocumentOutput, typeof erpnext.credential>;
|
|
16
15
|
//#endregion
|
|
17
16
|
export { erpnextCancelDocument };
|
|
18
17
|
//# sourceMappingURL=cancel-document.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cancel-document.d.cts","names":[],"sources":["../../src/actions/cancel-document.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"cancel-document.d.cts","names":[],"sources":["../../src/actions/cancel-document.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;cAI1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;cAK3B,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/cancel-document.d.ts
|
|
@@ -9,10 +11,7 @@ declare const ErpnextCancelDocumentOutput: z.ZodObject<{
|
|
|
9
11
|
docs: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
10
12
|
message: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
11
13
|
}, z.core.$loose>;
|
|
12
|
-
declare const erpnextCancelDocument:
|
|
13
|
-
name: string;
|
|
14
|
-
doctype: string;
|
|
15
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
14
|
+
declare const erpnextCancelDocument: AppAction<typeof ErpnextCancelDocumentInput, typeof ErpnextCancelDocumentOutput, typeof erpnext.credential>;
|
|
16
15
|
//#endregion
|
|
17
16
|
export { erpnextCancelDocument };
|
|
18
17
|
//# sourceMappingURL=cancel-document.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cancel-document.d.mts","names":[],"sources":["../../src/actions/cancel-document.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"cancel-document.d.mts","names":[],"sources":["../../src/actions/cancel-document.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;cAI1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;cAK3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,SACA,OAAA,CAAQ,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cancel-document.mjs","names":[],"sources":["../../src/actions/cancel-document.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextCancelDocumentInput = z.object({\n name: z.string().describe(\"The unique name/ID of the submitted document to cancel. This is the document's primary identifier within ERPNext. The document must exist and be in Submitted state.\"),\n doctype: z.string().describe(\"The DocType of the document to cancel. Only submittable DocTypes can be canceled. Examples: 'Journal Entry', 'Sales Invoice', 'Purchase Order', 'Delivery Note', 'Payment Entry', 'Stock Entry'. The document must be in Submitted state (docstatus=1).\"),\n}).describe(\"Request parameters for canceling a submitted document in ERPNext/Frappe.\");\nexport const ErpnextCancelDocumentOutput = z.object({\n docs: z.array(z.record(z.string(), z.unknown())).describe(\"Additional document data if returned by the API.\").nullable().optional(),\n message: z.record(z.string(), z.unknown()).describe(\"Canceled document object returned by the API. Contains document metadata including the updated docstatus field (2=Cancelled) and other core fields like name, doctype, modified timestamp, etc.\").nullable().optional(),\n}).passthrough().describe(\"Response from canceling a document in ERPNext/Frappe.\");\n\nexport const erpnextCancelDocument = action(\"ERPNEXT_CANCEL_DOCUMENT\", {\n slug: \"erpnext-cancel-document\",\n name: \"Cancel Document\",\n description: \"Cancel a submitted document in ERPNext/Frappe to change its status from Submitted to Cancelled. Use for submittable DocTypes when you need to reverse or cancel a submitted transaction. Document must be in Submitted state (docstatus=1) before cancellation.\",\n input: ErpnextCancelDocumentInput,\n output: ErpnextCancelDocumentOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"cancel-document.mjs","names":[],"sources":["../../src/actions/cancel-document.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 ErpnextCancelDocumentInput = z.object({\n name: z.string().describe(\"The unique name/ID of the submitted document to cancel. This is the document's primary identifier within ERPNext. The document must exist and be in Submitted state.\"),\n doctype: z.string().describe(\"The DocType of the document to cancel. Only submittable DocTypes can be canceled. Examples: 'Journal Entry', 'Sales Invoice', 'Purchase Order', 'Delivery Note', 'Payment Entry', 'Stock Entry'. The document must be in Submitted state (docstatus=1).\"),\n}).describe(\"Request parameters for canceling a submitted document in ERPNext/Frappe.\");\nexport const ErpnextCancelDocumentOutput = z.object({\n docs: z.array(z.record(z.string(), z.unknown())).describe(\"Additional document data if returned by the API.\").nullable().optional(),\n message: z.record(z.string(), z.unknown()).describe(\"Canceled document object returned by the API. Contains document metadata including the updated docstatus field (2=Cancelled) and other core fields like name, doctype, modified timestamp, etc.\").nullable().optional(),\n}).passthrough().describe(\"Response from canceling a document in ERPNext/Frappe.\");\n\nexport const erpnextCancelDocument: AppAction<\n typeof ErpnextCancelDocumentInput,\n typeof ErpnextCancelDocumentOutput,\n typeof erpnext.credential\n> = action(\"ERPNEXT_CANCEL_DOCUMENT\", {\n slug: \"erpnext-cancel-document\",\n name: \"Cancel Document\",\n description: \"Cancel a submitted document in ERPNext/Frappe to change its status from Submitted to Cancelled. Use for submittable DocTypes when you need to reverse or cancel a submitted transaction. Document must be in Submitted state (docstatus=1) before cancellation.\",\n input: ErpnextCancelDocumentInput,\n output: ErpnextCancelDocumentOutput,\n});\n"],"mappings":";;;AAeA,MAAa,wBAIT,OAAO,2BAA2B;CACpC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAjBwC,EAAE,OAAO;EACjD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sKAAsK;EAChM,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yPAAyP;CACxR,CAAC,CAAC,CAAC,SAAS,0EAcH;CACP,QAdyC,EAAE,OAAO;EAClD,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClI,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iMAAiM,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7Q,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-document.cjs","names":["z","action"],"sources":["../../src/actions/create-document.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextCreateDocumentInput = z.object({\n data: z.record(z.string(), z.unknown()).describe(\"Document data as a dictionary of field names and values. The required fields depend on the specific DocType. Common fields include: name, description, title, status, etc. Refer to ERPNext documentation for specific DocType field requirements.\"),\n doctype: z.string().describe(\"The DocType you'd like to create. For example: Customer, Supplier, Employee, Account, Lead, Company, Sales Invoice, Purchase Invoice, Stock Entry, ToDo, etc. This must be a valid DocType name in your ERPNext instance.\"),\n}).describe(\"Request to create a new document in ERPNext.\");\nconst ErpnextCreateDocument_DocumentDataSchema = z.object({\n name: z.string().describe(\"Unique identifier/name of the created document.\").nullable().optional(),\n owner: z.string().describe(\"User who created the document.\").nullable().optional(),\n doctype: z.string().describe(\"The DocType of the created document.\").nullable().optional(),\n creation: z.string().describe(\"Timestamp when the document was created.\").nullable().optional(),\n modified: z.string().describe(\"Timestamp when the document was last modified.\").nullable().optional(),\n docstatus: z.number().int().describe(\"Document status: 0 = Draft, 1 = Submitted, 2 = Cancelled.\").nullable().optional(),\n modified_by: z.string().describe(\"User who last modified the document.\").nullable().optional(),\n}).passthrough().describe(\"The created document data returned by ERPNext with standard fields.\");\nexport const ErpnextCreateDocumentOutput = z.object({\n data: ErpnextCreateDocument_DocumentDataSchema.nullable(),\n}).passthrough().describe(\"Response containing the created document.\");\n\nexport const erpnextCreateDocument = action(\"ERPNEXT_CREATE_DOCUMENT\", {\n slug: \"erpnext-create-document\",\n name: \"Create Document\",\n description: \"Tool to create a new document of a specific DocType in ERPNext. Use when you need to create records like ToDo, Customer, Lead, Sales Invoice, etc. The document data should include all required fields for the specific DocType. Standard fields like creation, modified, and owner are automatically set by ERPNext.\",\n input: ErpnextCreateDocumentInput,\n output: ErpnextCreateDocumentOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-document.cjs","names":["z","action"],"sources":["../../src/actions/create-document.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 ErpnextCreateDocumentInput = z.object({\n data: z.record(z.string(), z.unknown()).describe(\"Document data as a dictionary of field names and values. The required fields depend on the specific DocType. Common fields include: name, description, title, status, etc. Refer to ERPNext documentation for specific DocType field requirements.\"),\n doctype: z.string().describe(\"The DocType you'd like to create. For example: Customer, Supplier, Employee, Account, Lead, Company, Sales Invoice, Purchase Invoice, Stock Entry, ToDo, etc. This must be a valid DocType name in your ERPNext instance.\"),\n}).describe(\"Request to create a new document in ERPNext.\");\nconst ErpnextCreateDocument_DocumentDataSchema = z.object({\n name: z.string().describe(\"Unique identifier/name of the created document.\").nullable().optional(),\n owner: z.string().describe(\"User who created the document.\").nullable().optional(),\n doctype: z.string().describe(\"The DocType of the created document.\").nullable().optional(),\n creation: z.string().describe(\"Timestamp when the document was created.\").nullable().optional(),\n modified: z.string().describe(\"Timestamp when the document was last modified.\").nullable().optional(),\n docstatus: z.number().int().describe(\"Document status: 0 = Draft, 1 = Submitted, 2 = Cancelled.\").nullable().optional(),\n modified_by: z.string().describe(\"User who last modified the document.\").nullable().optional(),\n}).passthrough().describe(\"The created document data returned by ERPNext with standard fields.\");\nexport const ErpnextCreateDocumentOutput = z.object({\n data: ErpnextCreateDocument_DocumentDataSchema.nullable(),\n}).passthrough().describe(\"Response containing the created document.\");\n\nexport const erpnextCreateDocument: AppAction<\n typeof ErpnextCreateDocumentInput,\n typeof ErpnextCreateDocumentOutput,\n typeof erpnext.credential\n> = action(\"ERPNEXT_CREATE_DOCUMENT\", {\n slug: \"erpnext-create-document\",\n name: \"Create Document\",\n description: \"Tool to create a new document of a specific DocType in ERPNext. Use when you need to create records like ToDo, Customer, Lead, Sales Invoice, etc. The document data should include all required fields for the specific DocType. Standard fields like creation, modified, and owner are automatically set by ERPNext.\",\n input: ErpnextCreateDocumentInput,\n output: ErpnextCreateDocumentOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oPAAoP;CACrS,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2NAA2N;AAC1P,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAM,2CAA2CA,IAAAA,EAAE,OAAO;CACxD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,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,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qEAAqE;AAC/F,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,MAAM,yCAAyC,SAAS,EAC1D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AAErE,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/create-document.d.ts
|
|
@@ -16,10 +18,7 @@ declare const ErpnextCreateDocumentOutput: z.ZodObject<{
|
|
|
16
18
|
modified_by: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
19
|
}, z.core.$loose>>;
|
|
18
20
|
}, z.core.$loose>;
|
|
19
|
-
declare const erpnextCreateDocument:
|
|
20
|
-
data: Record<string, unknown>;
|
|
21
|
-
doctype: string;
|
|
22
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
21
|
+
declare const erpnextCreateDocument: AppAction<typeof ErpnextCreateDocumentInput, typeof ErpnextCreateDocumentOutput, typeof erpnext.credential>;
|
|
23
22
|
//#endregion
|
|
24
23
|
export { erpnextCreateDocument };
|
|
25
24
|
//# sourceMappingURL=create-document.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-document.d.cts","names":[],"sources":["../../src/actions/create-document.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-document.d.cts","names":[],"sources":["../../src/actions/create-document.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;cAa1B,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/create-document.d.ts
|
|
@@ -16,10 +18,7 @@ declare const ErpnextCreateDocumentOutput: z.ZodObject<{
|
|
|
16
18
|
modified_by: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
19
|
}, z.core.$loose>>;
|
|
18
20
|
}, z.core.$loose>;
|
|
19
|
-
declare const erpnextCreateDocument:
|
|
20
|
-
data: Record<string, unknown>;
|
|
21
|
-
doctype: string;
|
|
22
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
21
|
+
declare const erpnextCreateDocument: AppAction<typeof ErpnextCreateDocumentInput, typeof ErpnextCreateDocumentOutput, typeof erpnext.credential>;
|
|
23
22
|
//#endregion
|
|
24
23
|
export { erpnextCreateDocument };
|
|
25
24
|
//# sourceMappingURL=create-document.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-document.d.mts","names":[],"sources":["../../src/actions/create-document.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-document.d.mts","names":[],"sources":["../../src/actions/create-document.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;cAa1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;cAI3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,SACA,OAAA,CAAQ,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-document.mjs","names":[],"sources":["../../src/actions/create-document.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextCreateDocumentInput = z.object({\n data: z.record(z.string(), z.unknown()).describe(\"Document data as a dictionary of field names and values. The required fields depend on the specific DocType. Common fields include: name, description, title, status, etc. Refer to ERPNext documentation for specific DocType field requirements.\"),\n doctype: z.string().describe(\"The DocType you'd like to create. For example: Customer, Supplier, Employee, Account, Lead, Company, Sales Invoice, Purchase Invoice, Stock Entry, ToDo, etc. This must be a valid DocType name in your ERPNext instance.\"),\n}).describe(\"Request to create a new document in ERPNext.\");\nconst ErpnextCreateDocument_DocumentDataSchema = z.object({\n name: z.string().describe(\"Unique identifier/name of the created document.\").nullable().optional(),\n owner: z.string().describe(\"User who created the document.\").nullable().optional(),\n doctype: z.string().describe(\"The DocType of the created document.\").nullable().optional(),\n creation: z.string().describe(\"Timestamp when the document was created.\").nullable().optional(),\n modified: z.string().describe(\"Timestamp when the document was last modified.\").nullable().optional(),\n docstatus: z.number().int().describe(\"Document status: 0 = Draft, 1 = Submitted, 2 = Cancelled.\").nullable().optional(),\n modified_by: z.string().describe(\"User who last modified the document.\").nullable().optional(),\n}).passthrough().describe(\"The created document data returned by ERPNext with standard fields.\");\nexport const ErpnextCreateDocumentOutput = z.object({\n data: ErpnextCreateDocument_DocumentDataSchema.nullable(),\n}).passthrough().describe(\"Response containing the created document.\");\n\nexport const erpnextCreateDocument = action(\"ERPNEXT_CREATE_DOCUMENT\", {\n slug: \"erpnext-create-document\",\n name: \"Create Document\",\n description: \"Tool to create a new document of a specific DocType in ERPNext. Use when you need to create records like ToDo, Customer, Lead, Sales Invoice, etc. The document data should include all required fields for the specific DocType. Standard fields like creation, modified, and owner are automatically set by ERPNext.\",\n input: ErpnextCreateDocumentInput,\n output: ErpnextCreateDocumentOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-document.mjs","names":[],"sources":["../../src/actions/create-document.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 ErpnextCreateDocumentInput = z.object({\n data: z.record(z.string(), z.unknown()).describe(\"Document data as a dictionary of field names and values. The required fields depend on the specific DocType. Common fields include: name, description, title, status, etc. Refer to ERPNext documentation for specific DocType field requirements.\"),\n doctype: z.string().describe(\"The DocType you'd like to create. For example: Customer, Supplier, Employee, Account, Lead, Company, Sales Invoice, Purchase Invoice, Stock Entry, ToDo, etc. This must be a valid DocType name in your ERPNext instance.\"),\n}).describe(\"Request to create a new document in ERPNext.\");\nconst ErpnextCreateDocument_DocumentDataSchema = z.object({\n name: z.string().describe(\"Unique identifier/name of the created document.\").nullable().optional(),\n owner: z.string().describe(\"User who created the document.\").nullable().optional(),\n doctype: z.string().describe(\"The DocType of the created document.\").nullable().optional(),\n creation: z.string().describe(\"Timestamp when the document was created.\").nullable().optional(),\n modified: z.string().describe(\"Timestamp when the document was last modified.\").nullable().optional(),\n docstatus: z.number().int().describe(\"Document status: 0 = Draft, 1 = Submitted, 2 = Cancelled.\").nullable().optional(),\n modified_by: z.string().describe(\"User who last modified the document.\").nullable().optional(),\n}).passthrough().describe(\"The created document data returned by ERPNext with standard fields.\");\nexport const ErpnextCreateDocumentOutput = z.object({\n data: ErpnextCreateDocument_DocumentDataSchema.nullable(),\n}).passthrough().describe(\"Response containing the created document.\");\n\nexport const erpnextCreateDocument: AppAction<\n typeof ErpnextCreateDocumentInput,\n typeof ErpnextCreateDocumentOutput,\n typeof erpnext.credential\n> = action(\"ERPNEXT_CREATE_DOCUMENT\", {\n slug: \"erpnext-create-document\",\n name: \"Create Document\",\n description: \"Tool to create a new document of a specific DocType in ERPNext. Use when you need to create records like ToDo, Customer, Lead, Sales Invoice, etc. The document data should include all required fields for the specific DocType. Standard fields like creation, modified, and owner are automatically set by ERPNext.\",\n input: ErpnextCreateDocumentInput,\n output: ErpnextCreateDocumentOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,6BAA6B,EAAE,OAAO;CACjD,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oPAAoP;CACrS,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,2NAA2N;AAC1P,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAM,2CAA2C,EAAE,OAAO;CACxD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qEAAqE;AAK/F,MAAa,wBAIT,OAAO,2BAA2B;CACpC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAbyC,EAAE,OAAO,EAClD,MAAM,yCAAyC,SAAS,EAC1D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-timesheet.cjs","names":["z","action"],"sources":["../../src/actions/create-timesheet.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextCreateTimesheetInput = z.object({\n note: z.string().describe(\"Additional notes or comments for the timesheet\").optional(),\n company: z.string().describe(\"Company name for which the timesheet is being created\"),\n employee: z.string().describe(\"Employee ID or name for the timesheet (optional)\").optional(),\n time_logs: z.array(z.object({\n project: z.string().describe(\"Project name or ID associated with this time entry\").optional(),\n to_time: z.string().describe(\"End time of the activity in 'YYYY-MM-DD HH:MM:SS' format\"),\n from_time: z.string().describe(\"Start time of the activity in 'YYYY-MM-DD HH:MM:SS' format\"),\n activity_type: z.string().describe(\"Type of activity performed (e.g., 'Planning', 'Development', 'Testing')\"),\n}).passthrough().describe(\"Individual time log entry within a timesheet.\")).describe(\"List of time log entries for the timesheet. Each entry must have activity_type, from_time, and to_time\"),\n});\nconst ErpnextCreateTimesheet_TimesheetDataSchema = z.object({\n name: z.string().describe(\"Unique identifier for the created timesheet\").nullable(),\n owner: z.string().describe(\"User who created the timesheet\").nullable(),\n doctype: z.string().describe(\"Document type (should be 'Timesheet')\").nullable(),\n creation: z.string().describe(\"Timestamp when the timesheet was created\").nullable(),\n modified: z.string().describe(\"Timestamp when the timesheet was last modified\").nullable(),\n docstatus: z.number().int().describe(\"Document status (0=Draft, 1=Submitted, 2=Cancelled)\").nullable(),\n modified_by: z.string().describe(\"User who last modified the timesheet\").nullable(),\n}).passthrough().describe(\"Timesheet data returned from the API.\");\nexport const ErpnextCreateTimesheetOutput = z.object({\n data: ErpnextCreateTimesheet_TimesheetDataSchema.nullable(),\n}).passthrough();\n\nexport const erpnextCreateTimesheet = action(\"ERPNEXT_CREATE_TIMESHEET\", {\n slug: \"erpnext-create-timesheet\",\n name: \"Create Timesheet\",\n description: \"Tool to create a new Timesheet record in ERPNext. Use when you need to log time entries for employees or projects.\",\n input: ErpnextCreateTimesheetInput,\n output: ErpnextCreateTimesheetOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-timesheet.cjs","names":["z","action"],"sources":["../../src/actions/create-timesheet.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 ErpnextCreateTimesheetInput = z.object({\n note: z.string().describe(\"Additional notes or comments for the timesheet\").optional(),\n company: z.string().describe(\"Company name for which the timesheet is being created\"),\n employee: z.string().describe(\"Employee ID or name for the timesheet (optional)\").optional(),\n time_logs: z.array(z.object({\n project: z.string().describe(\"Project name or ID associated with this time entry\").optional(),\n to_time: z.string().describe(\"End time of the activity in 'YYYY-MM-DD HH:MM:SS' format\"),\n from_time: z.string().describe(\"Start time of the activity in 'YYYY-MM-DD HH:MM:SS' format\"),\n activity_type: z.string().describe(\"Type of activity performed (e.g., 'Planning', 'Development', 'Testing')\"),\n}).passthrough().describe(\"Individual time log entry within a timesheet.\")).describe(\"List of time log entries for the timesheet. Each entry must have activity_type, from_time, and to_time\"),\n});\nconst ErpnextCreateTimesheet_TimesheetDataSchema = z.object({\n name: z.string().describe(\"Unique identifier for the created timesheet\").nullable(),\n owner: z.string().describe(\"User who created the timesheet\").nullable(),\n doctype: z.string().describe(\"Document type (should be 'Timesheet')\").nullable(),\n creation: z.string().describe(\"Timestamp when the timesheet was created\").nullable(),\n modified: z.string().describe(\"Timestamp when the timesheet was last modified\").nullable(),\n docstatus: z.number().int().describe(\"Document status (0=Draft, 1=Submitted, 2=Cancelled)\").nullable(),\n modified_by: z.string().describe(\"User who last modified the timesheet\").nullable(),\n}).passthrough().describe(\"Timesheet data returned from the API.\");\nexport const ErpnextCreateTimesheetOutput = z.object({\n data: ErpnextCreateTimesheet_TimesheetDataSchema.nullable(),\n}).passthrough();\n\nexport const erpnextCreateTimesheet: AppAction<\n typeof ErpnextCreateTimesheetInput,\n typeof ErpnextCreateTimesheetOutput,\n typeof erpnext.credential\n> = action(\"ERPNEXT_CREATE_TIMESHEET\", {\n slug: \"erpnext-create-timesheet\",\n name: \"Create Timesheet\",\n description: \"Tool to create a new Timesheet record in ERPNext. Use when you need to log time entries for employees or projects.\",\n input: ErpnextCreateTimesheetInput,\n output: ErpnextCreateTimesheetOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACrF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;CACpF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CAC3F,WAAWA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC5B,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;EAC5F,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D;EACvF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;EAC3F,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE;CAC9G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,CAAC,SAAS,wGAAwG;AAC7L,CAAC;AACD,MAAM,6CAA6CA,IAAAA,EAAE,OAAO;CAC1D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAClF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACtE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC/E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACnF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACzF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CACrG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;AACpF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AACjE,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,MAAM,2CAA2C,SAAS,EAC5D,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,yBAITC,eAAAA,OAAO,4BAA4B;CACrC,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/create-timesheet.d.ts
|
|
@@ -23,18 +25,7 @@ declare const ErpnextCreateTimesheetOutput: z.ZodObject<{
|
|
|
23
25
|
modified_by: z.ZodNullable<z.ZodString>;
|
|
24
26
|
}, z.core.$loose>>;
|
|
25
27
|
}, z.core.$loose>;
|
|
26
|
-
declare const erpnextCreateTimesheet:
|
|
27
|
-
company: string;
|
|
28
|
-
time_logs: {
|
|
29
|
-
[x: string]: unknown;
|
|
30
|
-
to_time: string;
|
|
31
|
-
from_time: string;
|
|
32
|
-
activity_type: string;
|
|
33
|
-
project?: string | undefined;
|
|
34
|
-
}[];
|
|
35
|
-
note?: string | undefined;
|
|
36
|
-
employee?: string | undefined;
|
|
37
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
28
|
+
declare const erpnextCreateTimesheet: AppAction<typeof ErpnextCreateTimesheetInput, typeof ErpnextCreateTimesheetOutput, typeof erpnext.credential>;
|
|
38
29
|
//#endregion
|
|
39
30
|
export { erpnextCreateTimesheet };
|
|
40
31
|
//# sourceMappingURL=create-timesheet.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-timesheet.d.cts","names":[],"sources":["../../src/actions/create-timesheet.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-timesheet.d.cts","names":[],"sources":["../../src/actions/create-timesheet.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;cAoB3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;cAI5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,OAAA,CAAQ,UAAA"}
|