@keystrokehq/erpnext 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/add-comment.cjs +6 -6
- package/dist/actions/add-comment.cjs.map +1 -1
- package/dist/actions/add-comment.d.cts +27 -3
- package/dist/actions/add-comment.d.cts.map +1 -1
- package/dist/actions/add-comment.d.mts +27 -3
- package/dist/actions/add-comment.d.mts.map +1 -1
- package/dist/actions/add-comment.mjs +6 -6
- package/dist/actions/add-comment.mjs.map +1 -1
- package/dist/actions/add-tag.cjs.map +1 -1
- package/dist/actions/add-tag.d.cts +13 -3
- package/dist/actions/add-tag.d.cts.map +1 -1
- package/dist/actions/add-tag.d.mts +13 -3
- package/dist/actions/add-tag.d.mts.map +1 -1
- package/dist/actions/add-tag.mjs.map +1 -1
- package/dist/actions/apply-workflow.cjs.map +1 -1
- package/dist/actions/apply-workflow.d.cts +13 -3
- package/dist/actions/apply-workflow.d.cts.map +1 -1
- package/dist/actions/apply-workflow.d.mts +13 -3
- package/dist/actions/apply-workflow.d.mts.map +1 -1
- package/dist/actions/apply-workflow.mjs.map +1 -1
- package/dist/actions/cancel-document.cjs.map +1 -1
- package/dist/actions/cancel-document.d.cts +12 -3
- package/dist/actions/cancel-document.d.cts.map +1 -1
- package/dist/actions/cancel-document.d.mts +12 -3
- package/dist/actions/cancel-document.d.mts.map +1 -1
- package/dist/actions/cancel-document.mjs.map +1 -1
- package/dist/actions/create-document.cjs.map +1 -1
- package/dist/actions/create-document.d.cts +19 -3
- package/dist/actions/create-document.d.cts.map +1 -1
- package/dist/actions/create-document.d.mts +19 -3
- package/dist/actions/create-document.d.mts.map +1 -1
- package/dist/actions/create-document.mjs.map +1 -1
- package/dist/actions/create-timesheet.cjs +7 -7
- package/dist/actions/create-timesheet.cjs.map +1 -1
- package/dist/actions/create-timesheet.d.cts +33 -3
- package/dist/actions/create-timesheet.d.cts.map +1 -1
- package/dist/actions/create-timesheet.d.mts +33 -3
- package/dist/actions/create-timesheet.d.mts.map +1 -1
- package/dist/actions/create-timesheet.mjs +7 -7
- package/dist/actions/create-timesheet.mjs.map +1 -1
- package/dist/actions/delete-document.cjs +1 -1
- package/dist/actions/delete-document.cjs.map +1 -1
- package/dist/actions/delete-document.d.cts +11 -3
- package/dist/actions/delete-document.d.cts.map +1 -1
- package/dist/actions/delete-document.d.mts +11 -3
- package/dist/actions/delete-document.d.mts.map +1 -1
- package/dist/actions/delete-document.mjs +1 -1
- package/dist/actions/delete-document.mjs.map +1 -1
- package/dist/actions/download-file.cjs +3 -3
- package/dist/actions/download-file.cjs.map +1 -1
- package/dist/actions/download-file.d.cts +13 -3
- package/dist/actions/download-file.d.cts.map +1 -1
- package/dist/actions/download-file.d.mts +13 -3
- package/dist/actions/download-file.d.mts.map +1 -1
- package/dist/actions/download-file.mjs +3 -3
- package/dist/actions/download-file.mjs.map +1 -1
- package/dist/actions/download-pdf.cjs +3 -3
- package/dist/actions/download-pdf.cjs.map +1 -1
- package/dist/actions/download-pdf.d.cts +19 -3
- package/dist/actions/download-pdf.d.cts.map +1 -1
- package/dist/actions/download-pdf.d.mts +19 -3
- package/dist/actions/download-pdf.d.mts.map +1 -1
- package/dist/actions/download-pdf.mjs +3 -3
- package/dist/actions/download-pdf.mjs.map +1 -1
- package/dist/actions/get-all-languages.cjs.map +1 -1
- package/dist/actions/get-all-languages.d.cts +12 -3
- package/dist/actions/get-all-languages.d.cts.map +1 -1
- package/dist/actions/get-all-languages.d.mts +12 -3
- package/dist/actions/get-all-languages.d.mts.map +1 -1
- package/dist/actions/get-all-languages.mjs.map +1 -1
- package/dist/actions/get-all-roles.cjs.map +1 -1
- package/dist/actions/get-all-roles.d.cts +5 -3
- package/dist/actions/get-all-roles.d.cts.map +1 -1
- package/dist/actions/get-all-roles.d.mts +5 -3
- package/dist/actions/get-all-roles.d.mts.map +1 -1
- package/dist/actions/get-all-roles.mjs.map +1 -1
- package/dist/actions/get-client.cjs +1 -1
- package/dist/actions/get-client.cjs.map +1 -1
- package/dist/actions/get-client.d.cts +22 -3
- package/dist/actions/get-client.d.cts.map +1 -1
- package/dist/actions/get-client.d.mts +22 -3
- package/dist/actions/get-client.d.mts.map +1 -1
- package/dist/actions/get-client.mjs +1 -1
- package/dist/actions/get-client.mjs.map +1 -1
- package/dist/actions/get-count.cjs +1 -1
- package/dist/actions/get-count.cjs.map +1 -1
- package/dist/actions/get-count.d.cts +11 -3
- package/dist/actions/get-count.d.cts.map +1 -1
- package/dist/actions/get-count.d.mts +11 -3
- package/dist/actions/get-count.d.mts.map +1 -1
- package/dist/actions/get-count.mjs +1 -1
- package/dist/actions/get-count.mjs.map +1 -1
- package/dist/actions/get-doc-with-meta.cjs.map +1 -1
- package/dist/actions/get-doc-with-meta.d.cts +31 -3
- package/dist/actions/get-doc-with-meta.d.cts.map +1 -1
- package/dist/actions/get-doc-with-meta.d.mts +31 -3
- package/dist/actions/get-doc-with-meta.d.mts.map +1 -1
- package/dist/actions/get-doc-with-meta.mjs.map +1 -1
- package/dist/actions/get-doctype-meta.cjs.map +1 -1
- package/dist/actions/get-doctype-meta.d.cts +13 -3
- package/dist/actions/get-doctype-meta.d.cts.map +1 -1
- package/dist/actions/get-doctype-meta.d.mts +13 -3
- package/dist/actions/get-doctype-meta.d.mts.map +1 -1
- package/dist/actions/get-doctype-meta.mjs.map +1 -1
- package/dist/actions/get-document.cjs.map +1 -1
- package/dist/actions/get-document.d.cts +23 -3
- package/dist/actions/get-document.d.cts.map +1 -1
- package/dist/actions/get-document.d.mts +23 -3
- package/dist/actions/get-document.d.mts.map +1 -1
- package/dist/actions/get-document.mjs.map +1 -1
- package/dist/actions/get-exchange-rate.cjs +1 -1
- package/dist/actions/get-exchange-rate.cjs.map +1 -1
- package/dist/actions/get-exchange-rate.d.cts +13 -3
- package/dist/actions/get-exchange-rate.d.cts.map +1 -1
- package/dist/actions/get-exchange-rate.d.mts +13 -3
- package/dist/actions/get-exchange-rate.d.mts.map +1 -1
- package/dist/actions/get-exchange-rate.mjs +1 -1
- package/dist/actions/get-exchange-rate.mjs.map +1 -1
- package/dist/actions/get-fiscal-year.cjs +3 -3
- package/dist/actions/get-fiscal-year.cjs.map +1 -1
- package/dist/actions/get-fiscal-year.d.cts +15 -3
- package/dist/actions/get-fiscal-year.d.cts.map +1 -1
- package/dist/actions/get-fiscal-year.d.mts +15 -3
- package/dist/actions/get-fiscal-year.d.mts.map +1 -1
- package/dist/actions/get-fiscal-year.mjs +3 -3
- package/dist/actions/get-fiscal-year.mjs.map +1 -1
- package/dist/actions/get-framework-version.cjs.map +1 -1
- package/dist/actions/get-framework-version.d.cts +5 -3
- package/dist/actions/get-framework-version.d.cts.map +1 -1
- package/dist/actions/get-framework-version.d.mts +5 -3
- package/dist/actions/get-framework-version.d.mts.map +1 -1
- package/dist/actions/get-framework-version.mjs.map +1 -1
- package/dist/actions/get-item-details.cjs.map +1 -1
- package/dist/actions/get-item-details.d.cts +59 -3
- package/dist/actions/get-item-details.d.cts.map +1 -1
- package/dist/actions/get-item-details.d.mts +59 -3
- package/dist/actions/get-item-details.d.mts.map +1 -1
- package/dist/actions/get-item-details.mjs.map +1 -1
- package/dist/actions/get-list.cjs.map +1 -1
- package/dist/actions/get-list.d.cts +19 -3
- package/dist/actions/get-list.d.cts.map +1 -1
- package/dist/actions/get-list.d.mts +19 -3
- package/dist/actions/get-list.d.mts.map +1 -1
- package/dist/actions/get-list.mjs.map +1 -1
- package/dist/actions/get-logged-user.cjs +1 -1
- package/dist/actions/get-logged-user.cjs.map +1 -1
- package/dist/actions/get-logged-user.d.cts +5 -3
- package/dist/actions/get-logged-user.d.cts.map +1 -1
- package/dist/actions/get-logged-user.d.mts +5 -3
- package/dist/actions/get-logged-user.d.mts.map +1 -1
- package/dist/actions/get-logged-user.mjs +1 -1
- package/dist/actions/get-logged-user.mjs.map +1 -1
- package/dist/actions/get-party-details.cjs.map +1 -1
- package/dist/actions/get-party-details.d.cts +50 -3
- package/dist/actions/get-party-details.d.cts.map +1 -1
- package/dist/actions/get-party-details.d.mts +50 -3
- package/dist/actions/get-party-details.d.mts.map +1 -1
- package/dist/actions/get-party-details.mjs.map +1 -1
- package/dist/actions/get-payment-entry.cjs.map +1 -1
- package/dist/actions/get-payment-entry.d.cts +39 -3
- package/dist/actions/get-payment-entry.d.cts.map +1 -1
- package/dist/actions/get-payment-entry.d.mts +39 -3
- package/dist/actions/get-payment-entry.d.mts.map +1 -1
- package/dist/actions/get-payment-entry.mjs.map +1 -1
- package/dist/actions/get-stock-balance.cjs +1 -1
- package/dist/actions/get-stock-balance.cjs.map +1 -1
- package/dist/actions/get-stock-balance.d.cts +13 -3
- package/dist/actions/get-stock-balance.d.cts.map +1 -1
- package/dist/actions/get-stock-balance.d.mts +13 -3
- package/dist/actions/get-stock-balance.d.mts.map +1 -1
- package/dist/actions/get-stock-balance.mjs +1 -1
- package/dist/actions/get-stock-balance.mjs.map +1 -1
- package/dist/actions/get-timezones.cjs.map +1 -1
- package/dist/actions/get-timezones.d.cts +7 -3
- package/dist/actions/get-timezones.d.cts.map +1 -1
- package/dist/actions/get-timezones.d.mts +7 -3
- package/dist/actions/get-timezones.d.mts.map +1 -1
- package/dist/actions/get-timezones.mjs.map +1 -1
- package/dist/actions/get-user-roles.cjs.map +1 -1
- package/dist/actions/get-user-roles.d.cts +9 -3
- package/dist/actions/get-user-roles.d.cts.map +1 -1
- package/dist/actions/get-user-roles.d.mts +9 -3
- package/dist/actions/get-user-roles.d.mts.map +1 -1
- package/dist/actions/get-user-roles.mjs.map +1 -1
- package/dist/actions/get-value.cjs.map +1 -1
- package/dist/actions/get-value.d.cts +15 -3
- package/dist/actions/get-value.d.cts.map +1 -1
- package/dist/actions/get-value.d.mts +15 -3
- package/dist/actions/get-value.d.mts.map +1 -1
- package/dist/actions/get-value.mjs.map +1 -1
- package/dist/actions/get-workflow-transitions.cjs.map +1 -1
- package/dist/actions/get-workflow-transitions.d.cts +18 -3
- package/dist/actions/get-workflow-transitions.d.cts.map +1 -1
- package/dist/actions/get-workflow-transitions.d.mts +18 -3
- package/dist/actions/get-workflow-transitions.d.mts.map +1 -1
- package/dist/actions/get-workflow-transitions.mjs.map +1 -1
- package/dist/actions/insert-document.cjs.map +1 -1
- package/dist/actions/insert-document.d.cts +9 -3
- package/dist/actions/insert-document.d.cts.map +1 -1
- package/dist/actions/insert-document.d.mts +9 -3
- package/dist/actions/insert-document.d.mts.map +1 -1
- package/dist/actions/insert-document.mjs.map +1 -1
- package/dist/actions/insert-many.cjs.map +1 -1
- package/dist/actions/insert-many.d.cts +12 -3
- package/dist/actions/insert-many.d.cts.map +1 -1
- package/dist/actions/insert-many.d.mts +12 -3
- package/dist/actions/insert-many.d.mts.map +1 -1
- package/dist/actions/insert-many.mjs.map +1 -1
- package/dist/actions/list-doctypes.cjs.map +1 -1
- package/dist/actions/list-doctypes.d.cts +15 -3
- package/dist/actions/list-doctypes.d.cts.map +1 -1
- package/dist/actions/list-doctypes.d.mts +15 -3
- package/dist/actions/list-doctypes.d.mts.map +1 -1
- package/dist/actions/list-doctypes.mjs.map +1 -1
- package/dist/actions/list-documents.cjs.map +1 -1
- package/dist/actions/list-documents.d.cts +17 -3
- package/dist/actions/list-documents.d.cts.map +1 -1
- package/dist/actions/list-documents.d.mts +17 -3
- package/dist/actions/list-documents.d.mts.map +1 -1
- package/dist/actions/list-documents.mjs.map +1 -1
- package/dist/actions/list-employees.cjs +1 -1
- package/dist/actions/list-employees.cjs.map +1 -1
- package/dist/actions/list-employees.d.cts +17 -3
- package/dist/actions/list-employees.d.cts.map +1 -1
- package/dist/actions/list-employees.d.mts +17 -3
- package/dist/actions/list-employees.d.mts.map +1 -1
- package/dist/actions/list-employees.mjs +1 -1
- package/dist/actions/list-employees.mjs.map +1 -1
- package/dist/actions/list-projects.cjs.map +1 -1
- package/dist/actions/list-projects.d.cts +15 -3
- package/dist/actions/list-projects.d.cts.map +1 -1
- package/dist/actions/list-projects.d.mts +15 -3
- package/dist/actions/list-projects.d.mts.map +1 -1
- package/dist/actions/list-projects.mjs.map +1 -1
- package/dist/actions/list-timesheets.cjs.map +1 -1
- package/dist/actions/list-timesheets.d.cts +15 -3
- package/dist/actions/list-timesheets.d.cts.map +1 -1
- package/dist/actions/list-timesheets.d.mts +15 -3
- package/dist/actions/list-timesheets.d.mts.map +1 -1
- package/dist/actions/list-timesheets.mjs.map +1 -1
- package/dist/actions/list-webhooks.cjs +1 -1
- package/dist/actions/list-webhooks.cjs.map +1 -1
- package/dist/actions/list-webhooks.d.cts +21 -3
- package/dist/actions/list-webhooks.d.cts.map +1 -1
- package/dist/actions/list-webhooks.d.mts +21 -3
- package/dist/actions/list-webhooks.d.mts.map +1 -1
- package/dist/actions/list-webhooks.mjs +1 -1
- package/dist/actions/list-webhooks.mjs.map +1 -1
- package/dist/actions/make-delivery-note.cjs.map +1 -1
- package/dist/actions/make-delivery-note.d.cts +21 -3
- package/dist/actions/make-delivery-note.d.cts.map +1 -1
- package/dist/actions/make-delivery-note.d.mts +21 -3
- package/dist/actions/make-delivery-note.d.mts.map +1 -1
- package/dist/actions/make-delivery-note.mjs.map +1 -1
- package/dist/actions/make-purchase-order.cjs.map +1 -1
- package/dist/actions/make-purchase-order.d.cts +33 -3
- package/dist/actions/make-purchase-order.d.cts.map +1 -1
- package/dist/actions/make-purchase-order.d.mts +33 -3
- package/dist/actions/make-purchase-order.d.mts.map +1 -1
- package/dist/actions/make-purchase-order.mjs.map +1 -1
- package/dist/actions/make-sales-invoice.cjs.map +1 -1
- package/dist/actions/make-sales-invoice.d.cts +23 -3
- package/dist/actions/make-sales-invoice.d.cts.map +1 -1
- package/dist/actions/make-sales-invoice.d.mts +23 -3
- package/dist/actions/make-sales-invoice.d.mts.map +1 -1
- package/dist/actions/make-sales-invoice.mjs.map +1 -1
- package/dist/actions/make-stock-entry.cjs.map +1 -1
- package/dist/actions/make-stock-entry.d.cts +38 -3
- package/dist/actions/make-stock-entry.d.cts.map +1 -1
- package/dist/actions/make-stock-entry.d.mts +38 -3
- package/dist/actions/make-stock-entry.d.mts.map +1 -1
- package/dist/actions/make-stock-entry.mjs.map +1 -1
- package/dist/actions/ping.cjs +1 -1
- package/dist/actions/ping.cjs.map +1 -1
- package/dist/actions/ping.d.cts +5 -3
- package/dist/actions/ping.d.cts.map +1 -1
- package/dist/actions/ping.d.mts +5 -3
- package/dist/actions/ping.d.mts.map +1 -1
- package/dist/actions/ping.mjs +1 -1
- package/dist/actions/ping.mjs.map +1 -1
- package/dist/actions/rename-doc.cjs.map +1 -1
- package/dist/actions/rename-doc.d.cts +15 -3
- package/dist/actions/rename-doc.d.cts.map +1 -1
- package/dist/actions/rename-doc.d.mts +15 -3
- package/dist/actions/rename-doc.d.mts.map +1 -1
- package/dist/actions/rename-doc.mjs.map +1 -1
- package/dist/actions/save-docs.cjs.map +1 -1
- package/dist/actions/save-docs.d.cts +20 -3
- package/dist/actions/save-docs.d.cts.map +1 -1
- package/dist/actions/save-docs.d.mts +20 -3
- package/dist/actions/save-docs.d.mts.map +1 -1
- package/dist/actions/save-docs.mjs.map +1 -1
- package/dist/actions/save-document.cjs.map +1 -1
- package/dist/actions/save-document.d.cts +31 -3
- package/dist/actions/save-document.d.cts.map +1 -1
- package/dist/actions/save-document.d.mts +31 -3
- package/dist/actions/save-document.d.mts.map +1 -1
- package/dist/actions/save-document.mjs.map +1 -1
- package/dist/actions/search-global.cjs.map +1 -1
- package/dist/actions/search-global.d.cts +22 -3
- package/dist/actions/search-global.d.cts.map +1 -1
- package/dist/actions/search-global.d.mts +22 -3
- package/dist/actions/search-global.d.mts.map +1 -1
- package/dist/actions/search-global.mjs.map +1 -1
- package/dist/actions/search-link.cjs +2 -2
- package/dist/actions/search-link.cjs.map +1 -1
- package/dist/actions/search-link.d.cts +29 -3
- package/dist/actions/search-link.d.cts.map +1 -1
- package/dist/actions/search-link.d.mts +29 -3
- package/dist/actions/search-link.d.mts.map +1 -1
- package/dist/actions/search-link.mjs +2 -2
- package/dist/actions/search-link.mjs.map +1 -1
- package/dist/actions/set-value.cjs.map +1 -1
- package/dist/actions/set-value.d.cts +30 -3
- package/dist/actions/set-value.d.cts.map +1 -1
- package/dist/actions/set-value.d.mts +30 -3
- package/dist/actions/set-value.d.mts.map +1 -1
- package/dist/actions/set-value.mjs.map +1 -1
- package/dist/actions/submit-document.cjs +8 -8
- package/dist/actions/submit-document.cjs.map +1 -1
- package/dist/actions/submit-document.d.cts +18 -3
- package/dist/actions/submit-document.d.cts.map +1 -1
- package/dist/actions/submit-document.d.mts +18 -3
- package/dist/actions/submit-document.d.mts.map +1 -1
- package/dist/actions/submit-document.mjs +8 -8
- package/dist/actions/submit-document.mjs.map +1 -1
- package/dist/actions/update-document.cjs.map +1 -1
- package/dist/actions/update-document.d.cts +21 -3
- package/dist/actions/update-document.d.cts.map +1 -1
- package/dist/actions/update-document.d.mts +21 -3
- package/dist/actions/update-document.d.mts.map +1 -1
- package/dist/actions/update-document.mjs.map +1 -1
- package/dist/catalog.cjs +18 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +17 -0
- package/dist/catalog.d.mts +17 -0
- package/dist/catalog.mjs +18 -1
- package/dist/catalog.mjs.map +1 -1
- package/package.json +2 -2
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(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input:
|
|
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: z.ZodType;\n },\n) {\n return erpnext.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeErpnextTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,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(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input:
|
|
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: z.ZodType;\n },\n) {\n return erpnext.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeErpnextTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,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"}
|
|
@@ -9,17 +9,17 @@ const ErpnextAddCommentInput = zod.z.object({
|
|
|
9
9
|
reference_doctype: zod.z.string().describe("The DocType of the document to add comment to (e.g., 'ToDo', 'Issue', 'Task')")
|
|
10
10
|
}).describe("Request model for adding a comment to a document.");
|
|
11
11
|
const ErpnextAddCommentOutput = zod.z.object({
|
|
12
|
-
name: zod.z.string().describe("Unique name/ID of the created comment"),
|
|
12
|
+
name: zod.z.string().describe("Unique name/ID of the created comment").nullable(),
|
|
13
13
|
owner: zod.z.string().describe("Owner of the comment document").nullable().optional(),
|
|
14
|
-
content: zod.z.string().describe("The comment content that was added"),
|
|
14
|
+
content: zod.z.string().describe("The comment content that was added").nullable(),
|
|
15
15
|
creation: zod.z.string().describe("Timestamp when the comment was created").nullable().optional(),
|
|
16
16
|
modified: zod.z.string().describe("Timestamp when the comment was last modified").nullable().optional(),
|
|
17
|
-
comment_by: zod.z.string().describe("Name/identifier of the person who made the comment"),
|
|
17
|
+
comment_by: zod.z.string().describe("Name/identifier of the person who made the comment").nullable(),
|
|
18
18
|
modified_by: zod.z.string().describe("User who last modified the comment").nullable().optional(),
|
|
19
19
|
comment_type: zod.z.string().describe("Type of the comment (typically 'Comment')").nullable().optional(),
|
|
20
|
-
comment_email: zod.z.string().describe("Email address of the person who made the comment"),
|
|
21
|
-
reference_name: zod.z.string().describe("The name/ID of the document the comment was added to"),
|
|
22
|
-
reference_doctype: zod.z.string().describe("The DocType of the document the comment was added to")
|
|
20
|
+
comment_email: zod.z.string().describe("Email address of the person who made the comment").nullable(),
|
|
21
|
+
reference_name: zod.z.string().describe("The name/ID of the document the comment was added to").nullable(),
|
|
22
|
+
reference_doctype: zod.z.string().describe("The DocType of the document the comment was added to").nullable()
|
|
23
23
|
}).describe("Response model for added comment.");
|
|
24
24
|
const erpnextAddComment = require_action.action("ERPNEXT_ADD_COMMENT", {
|
|
25
25
|
slug: "erpnext-add-comment",
|
|
@@ -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
|
|
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}).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":";;;AAIA,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,SAAS,mCAAmC;AAE/C,MAAa,oBAAoBC,eAAAA,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,33 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/add-comment.d.ts
|
|
4
|
-
declare const ErpnextAddCommentInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ErpnextAddCommentInput: z.ZodObject<{
|
|
5
|
+
content: z.ZodString;
|
|
6
|
+
comment_by: z.ZodString;
|
|
7
|
+
comment_email: z.ZodString;
|
|
8
|
+
reference_name: z.ZodString;
|
|
9
|
+
reference_doctype: z.ZodString;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
declare const ErpnextAddCommentOutput: z.ZodObject<{
|
|
12
|
+
name: z.ZodNullable<z.ZodString>;
|
|
13
|
+
owner: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
content: z.ZodNullable<z.ZodString>;
|
|
15
|
+
creation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
modified: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
comment_by: z.ZodNullable<z.ZodString>;
|
|
18
|
+
modified_by: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
comment_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
comment_email: z.ZodNullable<z.ZodString>;
|
|
21
|
+
reference_name: z.ZodNullable<z.ZodString>;
|
|
22
|
+
reference_doctype: z.ZodNullable<z.ZodString>;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
declare const erpnextAddComment: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
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]>;
|
|
7
31
|
//#endregion
|
|
8
32
|
export { erpnextAddComment };
|
|
9
33
|
//# sourceMappingURL=add-comment.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-comment.d.cts","names":[],"sources":["../../src/actions/add-comment.ts"],"mappings":";;;cAIa,sBAAA,
|
|
1
|
+
{"version":3,"file":"add-comment.d.cts","names":[],"sources":["../../src/actions/add-comment.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;cAOtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAcvB,iBAAA,gCAAiB,wBAAA"}
|
|
@@ -1,9 +1,33 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/add-comment.d.ts
|
|
4
|
-
declare const ErpnextAddCommentInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ErpnextAddCommentInput: z.ZodObject<{
|
|
5
|
+
content: z.ZodString;
|
|
6
|
+
comment_by: z.ZodString;
|
|
7
|
+
comment_email: z.ZodString;
|
|
8
|
+
reference_name: z.ZodString;
|
|
9
|
+
reference_doctype: z.ZodString;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
declare const ErpnextAddCommentOutput: z.ZodObject<{
|
|
12
|
+
name: z.ZodNullable<z.ZodString>;
|
|
13
|
+
owner: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
content: z.ZodNullable<z.ZodString>;
|
|
15
|
+
creation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
modified: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
comment_by: z.ZodNullable<z.ZodString>;
|
|
18
|
+
modified_by: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
comment_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
comment_email: z.ZodNullable<z.ZodString>;
|
|
21
|
+
reference_name: z.ZodNullable<z.ZodString>;
|
|
22
|
+
reference_doctype: z.ZodNullable<z.ZodString>;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
declare const erpnextAddComment: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
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]>;
|
|
7
31
|
//#endregion
|
|
8
32
|
export { erpnextAddComment };
|
|
9
33
|
//# sourceMappingURL=add-comment.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-comment.d.mts","names":[],"sources":["../../src/actions/add-comment.ts"],"mappings":";;;cAIa,sBAAA,
|
|
1
|
+
{"version":3,"file":"add-comment.d.mts","names":[],"sources":["../../src/actions/add-comment.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;cAOtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAcvB,iBAAA,gCAAiB,wBAAA"}
|
|
@@ -12,17 +12,17 @@ const erpnextAddComment = action("ERPNEXT_ADD_COMMENT", {
|
|
|
12
12
|
reference_doctype: z.string().describe("The DocType of the document to add comment to (e.g., 'ToDo', 'Issue', 'Task')")
|
|
13
13
|
}).describe("Request model for adding a comment to a document."),
|
|
14
14
|
output: z.object({
|
|
15
|
-
name: z.string().describe("Unique name/ID of the created comment"),
|
|
15
|
+
name: z.string().describe("Unique name/ID of the created comment").nullable(),
|
|
16
16
|
owner: z.string().describe("Owner of the comment document").nullable().optional(),
|
|
17
|
-
content: z.string().describe("The comment content that was added"),
|
|
17
|
+
content: z.string().describe("The comment content that was added").nullable(),
|
|
18
18
|
creation: z.string().describe("Timestamp when the comment was created").nullable().optional(),
|
|
19
19
|
modified: z.string().describe("Timestamp when the comment was last modified").nullable().optional(),
|
|
20
|
-
comment_by: z.string().describe("Name/identifier of the person who made the comment"),
|
|
20
|
+
comment_by: z.string().describe("Name/identifier of the person who made the comment").nullable(),
|
|
21
21
|
modified_by: z.string().describe("User who last modified the comment").nullable().optional(),
|
|
22
22
|
comment_type: z.string().describe("Type of the comment (typically 'Comment')").nullable().optional(),
|
|
23
|
-
comment_email: z.string().describe("Email address of the person who made the comment"),
|
|
24
|
-
reference_name: z.string().describe("The name/ID of the document the comment was added to"),
|
|
25
|
-
reference_doctype: z.string().describe("The DocType of the document the comment was added to")
|
|
23
|
+
comment_email: z.string().describe("Email address of the person who made the comment").nullable(),
|
|
24
|
+
reference_name: z.string().describe("The name/ID of the document the comment was added to").nullable(),
|
|
25
|
+
reference_doctype: z.string().describe("The DocType of the document the comment was added to").nullable()
|
|
26
26
|
}).describe("Response model for added comment.")
|
|
27
27
|
});
|
|
28
28
|
//#endregion
|
|
@@ -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
|
|
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}).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":";;AAyBA,MAAa,oBAAoB,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAzBoC,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,mDAmBH;CACP,QAnBqC,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,SAAS,mCAOF;AACV,CAAC"}
|
|
@@ -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
|
|
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}).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":";;;AAIA,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,SAAS,2DAA2D;AAEvE,MAAa,gBAAgBC,eAAAA,OAAO,mBAAmB;CACrD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,19 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/add-tag.d.ts
|
|
4
|
-
declare const ErpnextAddTagInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ErpnextAddTagInput: z.ZodObject<{
|
|
5
|
+
dn: z.ZodString;
|
|
6
|
+
dt: z.ZodString;
|
|
7
|
+
tag: z.ZodString;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
declare const ErpnextAddTagOutput: z.ZodObject<{
|
|
10
|
+
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
declare const erpnextAddTag: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
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]>;
|
|
7
17
|
//#endregion
|
|
8
18
|
export { erpnextAddTag };
|
|
9
19
|
//# sourceMappingURL=add-tag.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-tag.d.cts","names":[],"sources":["../../src/actions/add-tag.ts"],"mappings":";;;cAIa,kBAAA,
|
|
1
|
+
{"version":3,"file":"add-tag.d.cts","names":[],"sources":["../../src/actions/add-tag.ts"],"mappings":";;;cAIa,kBAAA,EAAkB,CAAA,CAAA,SAAA;;;;;cAKlB,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;cAInB,aAAA,gCAAa,wBAAA"}
|
|
@@ -1,9 +1,19 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/add-tag.d.ts
|
|
4
|
-
declare const ErpnextAddTagInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ErpnextAddTagInput: z.ZodObject<{
|
|
5
|
+
dn: z.ZodString;
|
|
6
|
+
dt: z.ZodString;
|
|
7
|
+
tag: z.ZodString;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
declare const ErpnextAddTagOutput: z.ZodObject<{
|
|
10
|
+
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
declare const erpnextAddTag: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
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]>;
|
|
7
17
|
//#endregion
|
|
8
18
|
export { erpnextAddTag };
|
|
9
19
|
//# sourceMappingURL=add-tag.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-tag.d.mts","names":[],"sources":["../../src/actions/add-tag.ts"],"mappings":";;;cAIa,kBAAA,
|
|
1
|
+
{"version":3,"file":"add-tag.d.mts","names":[],"sources":["../../src/actions/add-tag.ts"],"mappings":";;;cAIa,kBAAA,EAAkB,CAAA,CAAA,SAAA;;;;;cAKlB,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;cAInB,aAAA,gCAAa,wBAAA"}
|
|
@@ -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
|
|
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}).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":";;AAaA,MAAa,gBAAgB,OAAO,mBAAmB;CACrD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAbgC,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,0DASH;CACP,QATiC,EAAE,OAAO,EAC1C,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC3H,CAAC,CAAC,CAAC,SAAS,2DAOF;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
|
|
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}).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":";;;AAIA,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,SAAS,2DAA2D;AAEvE,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,19 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/apply-workflow.d.ts
|
|
4
|
-
declare const ErpnextApplyWorkflowInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ErpnextApplyWorkflowInput: z.ZodObject<{
|
|
5
|
+
doc: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
6
|
+
action: z.ZodString;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const ErpnextApplyWorkflowOutput: z.ZodObject<{
|
|
9
|
+
exc: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
+
docs: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
11
|
+
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
|
+
}, z.core.$strip>;
|
|
13
|
+
declare const erpnextApplyWorkflow: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
14
|
+
doc: Record<string, unknown>;
|
|
15
|
+
action: string;
|
|
16
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
17
|
//#endregion
|
|
8
18
|
export { erpnextApplyWorkflow };
|
|
9
19
|
//# sourceMappingURL=apply-workflow.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apply-workflow.d.cts","names":[],"sources":["../../src/actions/apply-workflow.ts"],"mappings":";;;cAIa,yBAAA,
|
|
1
|
+
{"version":3,"file":"apply-workflow.d.cts","names":[],"sources":["../../src/actions/apply-workflow.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;cAIzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;cAM1B,oBAAA,gCAAoB,wBAAA;OAM/B,MAAA"}
|
|
@@ -1,9 +1,19 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/apply-workflow.d.ts
|
|
4
|
-
declare const ErpnextApplyWorkflowInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ErpnextApplyWorkflowInput: z.ZodObject<{
|
|
5
|
+
doc: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
6
|
+
action: z.ZodString;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const ErpnextApplyWorkflowOutput: z.ZodObject<{
|
|
9
|
+
exc: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
+
docs: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
11
|
+
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
|
+
}, z.core.$strip>;
|
|
13
|
+
declare const erpnextApplyWorkflow: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
14
|
+
doc: Record<string, unknown>;
|
|
15
|
+
action: string;
|
|
16
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
17
|
//#endregion
|
|
8
18
|
export { erpnextApplyWorkflow };
|
|
9
19
|
//# sourceMappingURL=apply-workflow.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apply-workflow.d.mts","names":[],"sources":["../../src/actions/apply-workflow.ts"],"mappings":";;;cAIa,yBAAA,
|
|
1
|
+
{"version":3,"file":"apply-workflow.d.mts","names":[],"sources":["../../src/actions/apply-workflow.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;cAIzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;cAM1B,oBAAA,gCAAoB,wBAAA;OAM/B,MAAA"}
|
|
@@ -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
|
|
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}).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":";;AAcA,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAduC,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,6DAWH;CACP,QAXwC,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,SAAS,2DAOF;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
|
|
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.object({})).describe(\"Additional document data if returned by the API.\").nullable().optional(),\n message: z.object({}).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}).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":";;;AAIA,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,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,iMAAiM,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxP,CAAC,CAAC,CAAC,SAAS,uDAAuD;AAEnE,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/cancel-document.d.ts
|
|
4
|
-
declare const ErpnextCancelDocumentInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ErpnextCancelDocumentInput: z.ZodObject<{
|
|
5
|
+
name: z.ZodString;
|
|
6
|
+
doctype: z.ZodString;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const ErpnextCancelDocumentOutput: z.ZodObject<{
|
|
9
|
+
docs: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{}, z.core.$strip>>>>;
|
|
10
|
+
message: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
declare const erpnextCancelDocument: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
13
|
+
name: string;
|
|
14
|
+
doctype: string;
|
|
15
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
16
|
//#endregion
|
|
8
17
|
export { erpnextCancelDocument };
|
|
9
18
|
//# sourceMappingURL=cancel-document.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cancel-document.d.cts","names":[],"sources":["../../src/actions/cancel-document.ts"],"mappings":";;;cAIa,0BAAA,
|
|
1
|
+
{"version":3,"file":"cancel-document.d.cts","names":[],"sources":["../../src/actions/cancel-document.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;cAI1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;cAK3B,qBAAA,gCAAqB,wBAAA"}
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/cancel-document.d.ts
|
|
4
|
-
declare const ErpnextCancelDocumentInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ErpnextCancelDocumentInput: z.ZodObject<{
|
|
5
|
+
name: z.ZodString;
|
|
6
|
+
doctype: z.ZodString;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const ErpnextCancelDocumentOutput: z.ZodObject<{
|
|
9
|
+
docs: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{}, z.core.$strip>>>>;
|
|
10
|
+
message: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
declare const erpnextCancelDocument: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
13
|
+
name: string;
|
|
14
|
+
doctype: string;
|
|
15
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
16
|
//#endregion
|
|
8
17
|
export { erpnextCancelDocument };
|
|
9
18
|
//# sourceMappingURL=cancel-document.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cancel-document.d.mts","names":[],"sources":["../../src/actions/cancel-document.ts"],"mappings":";;;cAIa,0BAAA,
|
|
1
|
+
{"version":3,"file":"cancel-document.d.mts","names":[],"sources":["../../src/actions/cancel-document.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;cAI1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;cAK3B,qBAAA,gCAAqB,wBAAA"}
|
|
@@ -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
|
|
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.object({})).describe(\"Additional document data if returned by the API.\").nullable().optional(),\n message: z.object({}).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}).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":";;AAaA,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAbwC,EAAE,OAAO;EACjD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sKAAsK;EAChM,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yPAAyP;CACxR,CAAC,CAAC,CAAC,SAAS,0EAUH;CACP,QAVyC,EAAE,OAAO;EAClD,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7G,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,iMAAiM,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxP,CAAC,CAAC,CAAC,SAAS,uDAOF;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
|
|
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.object({}).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}).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":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,oPAAoP;CAChR,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,SAAS,2CAA2C;AAEvD,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,25 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/create-document.d.ts
|
|
4
|
-
declare const ErpnextCreateDocumentInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ErpnextCreateDocumentInput: z.ZodObject<{
|
|
5
|
+
data: z.ZodObject<{}, z.core.$strip>;
|
|
6
|
+
doctype: z.ZodString;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const ErpnextCreateDocumentOutput: z.ZodObject<{
|
|
9
|
+
data: z.ZodNullable<z.ZodObject<{
|
|
10
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
+
owner: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
doctype: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
creation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
modified: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
docstatus: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
16
|
+
modified_by: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
}, z.core.$loose>>;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
declare const erpnextCreateDocument: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
20
|
+
data: Record<string, never>;
|
|
21
|
+
doctype: string;
|
|
22
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
23
|
//#endregion
|
|
8
24
|
export { erpnextCreateDocument };
|
|
9
25
|
//# sourceMappingURL=create-document.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-document.d.cts","names":[],"sources":["../../src/actions/create-document.ts"],"mappings":";;;cAIa,0BAAA,
|
|
1
|
+
{"version":3,"file":"create-document.d.cts","names":[],"sources":["../../src/actions/create-document.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;cAa1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;cAI3B,qBAAA,gCAAqB,wBAAA;QAMhC,MAAA"}
|
|
@@ -1,9 +1,25 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/create-document.d.ts
|
|
4
|
-
declare const ErpnextCreateDocumentInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ErpnextCreateDocumentInput: z.ZodObject<{
|
|
5
|
+
data: z.ZodObject<{}, z.core.$strip>;
|
|
6
|
+
doctype: z.ZodString;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const ErpnextCreateDocumentOutput: z.ZodObject<{
|
|
9
|
+
data: z.ZodNullable<z.ZodObject<{
|
|
10
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
+
owner: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
doctype: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
creation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
modified: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
docstatus: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
16
|
+
modified_by: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
}, z.core.$loose>>;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
declare const erpnextCreateDocument: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
20
|
+
data: Record<string, never>;
|
|
21
|
+
doctype: string;
|
|
22
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
23
|
//#endregion
|
|
8
24
|
export { erpnextCreateDocument };
|
|
9
25
|
//# sourceMappingURL=create-document.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-document.d.mts","names":[],"sources":["../../src/actions/create-document.ts"],"mappings":";;;cAIa,0BAAA,
|
|
1
|
+
{"version":3,"file":"create-document.d.mts","names":[],"sources":["../../src/actions/create-document.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;cAa1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;cAI3B,qBAAA,gCAAqB,wBAAA;QAMhC,MAAA"}
|
|
@@ -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
|
|
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.object({}).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}).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":";;;AAIA,MAAa,6BAA6B,EAAE,OAAO;CACjD,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,oPAAoP;CAChR,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,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATyC,EAAE,OAAO,EAClD,MAAM,yCAAyC,SAAS,EAC1D,CAAC,CAAC,CAAC,SAAS,2CAOF;AACV,CAAC"}
|