@keystrokehq/erpnext 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions/add-comment.cjs +1 -1
- package/dist/actions/add-comment.cjs.map +1 -1
- package/dist/actions/add-comment.d.cts +1 -1
- package/dist/actions/add-comment.d.mts +1 -1
- package/dist/actions/add-comment.mjs +1 -1
- package/dist/actions/add-comment.mjs.map +1 -1
- package/dist/actions/add-tag.cjs +1 -1
- package/dist/actions/add-tag.cjs.map +1 -1
- package/dist/actions/add-tag.d.cts +1 -1
- package/dist/actions/add-tag.d.mts +1 -1
- package/dist/actions/add-tag.mjs +1 -1
- package/dist/actions/add-tag.mjs.map +1 -1
- package/dist/actions/apply-workflow.cjs +1 -1
- package/dist/actions/apply-workflow.cjs.map +1 -1
- package/dist/actions/apply-workflow.d.cts +1 -1
- package/dist/actions/apply-workflow.d.mts +1 -1
- package/dist/actions/apply-workflow.mjs +1 -1
- package/dist/actions/apply-workflow.mjs.map +1 -1
- package/dist/actions/cancel-document.cjs +3 -3
- package/dist/actions/cancel-document.cjs.map +1 -1
- package/dist/actions/cancel-document.d.cts +3 -3
- package/dist/actions/cancel-document.d.mts +3 -3
- package/dist/actions/cancel-document.mjs +3 -3
- package/dist/actions/cancel-document.mjs.map +1 -1
- package/dist/actions/create-document.cjs +2 -2
- package/dist/actions/create-document.cjs.map +1 -1
- package/dist/actions/create-document.d.cts +3 -3
- package/dist/actions/create-document.d.mts +3 -3
- package/dist/actions/create-document.mjs +2 -2
- package/dist/actions/create-document.mjs.map +1 -1
- package/dist/actions/create-timesheet.cjs +3 -3
- package/dist/actions/create-timesheet.cjs.map +1 -1
- package/dist/actions/create-timesheet.d.cts +4 -3
- package/dist/actions/create-timesheet.d.mts +4 -3
- package/dist/actions/create-timesheet.mjs +3 -3
- package/dist/actions/create-timesheet.mjs.map +1 -1
- package/dist/actions/delete-document.cjs +1 -1
- package/dist/actions/delete-document.cjs.map +1 -1
- package/dist/actions/delete-document.d.cts +1 -1
- package/dist/actions/delete-document.d.mts +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 +2 -2
- package/dist/actions/download-file.cjs.map +1 -1
- package/dist/actions/download-file.d.cts +2 -2
- package/dist/actions/download-file.d.mts +2 -2
- package/dist/actions/download-file.mjs +2 -2
- package/dist/actions/download-file.mjs.map +1 -1
- package/dist/actions/download-pdf.cjs +2 -2
- package/dist/actions/download-pdf.cjs.map +1 -1
- package/dist/actions/download-pdf.d.cts +2 -2
- package/dist/actions/download-pdf.d.mts +2 -2
- package/dist/actions/download-pdf.mjs +2 -2
- package/dist/actions/download-pdf.mjs.map +1 -1
- package/dist/actions/get-all-languages.cjs +2 -2
- package/dist/actions/get-all-languages.cjs.map +1 -1
- package/dist/actions/get-all-languages.d.cts +2 -2
- package/dist/actions/get-all-languages.d.mts +2 -2
- package/dist/actions/get-all-languages.mjs +2 -2
- package/dist/actions/get-all-languages.mjs.map +1 -1
- package/dist/actions/get-all-roles.cjs +1 -1
- package/dist/actions/get-all-roles.cjs.map +1 -1
- package/dist/actions/get-all-roles.d.cts +1 -1
- package/dist/actions/get-all-roles.d.mts +1 -1
- package/dist/actions/get-all-roles.mjs +1 -1
- package/dist/actions/get-all-roles.mjs.map +1 -1
- package/dist/actions/get-client.cjs +2 -2
- package/dist/actions/get-client.cjs.map +1 -1
- package/dist/actions/get-client.d.cts +3 -3
- package/dist/actions/get-client.d.mts +3 -3
- package/dist/actions/get-client.mjs +2 -2
- package/dist/actions/get-client.mjs.map +1 -1
- package/dist/actions/get-count.cjs +2 -2
- package/dist/actions/get-count.cjs.map +1 -1
- package/dist/actions/get-count.d.cts +3 -3
- package/dist/actions/get-count.d.mts +3 -3
- package/dist/actions/get-count.mjs +2 -2
- package/dist/actions/get-count.mjs.map +1 -1
- package/dist/actions/get-doc-with-meta.cjs +3 -3
- package/dist/actions/get-doc-with-meta.cjs.map +1 -1
- package/dist/actions/get-doc-with-meta.d.cts +3 -3
- package/dist/actions/get-doc-with-meta.d.mts +3 -3
- package/dist/actions/get-doc-with-meta.mjs +3 -3
- package/dist/actions/get-doc-with-meta.mjs.map +1 -1
- package/dist/actions/get-doctype-meta.cjs +3 -3
- package/dist/actions/get-doctype-meta.cjs.map +1 -1
- package/dist/actions/get-doctype-meta.d.cts +3 -3
- package/dist/actions/get-doctype-meta.d.mts +3 -3
- package/dist/actions/get-doctype-meta.mjs +3 -3
- package/dist/actions/get-doctype-meta.mjs.map +1 -1
- package/dist/actions/get-document.cjs +1 -1
- package/dist/actions/get-document.cjs.map +1 -1
- package/dist/actions/get-document.d.cts +1 -1
- package/dist/actions/get-document.d.mts +1 -1
- package/dist/actions/get-document.mjs +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 +1 -1
- package/dist/actions/get-exchange-rate.d.mts +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 +2 -2
- package/dist/actions/get-fiscal-year.cjs.map +1 -1
- package/dist/actions/get-fiscal-year.d.cts +2 -2
- package/dist/actions/get-fiscal-year.d.mts +2 -2
- package/dist/actions/get-fiscal-year.mjs +2 -2
- package/dist/actions/get-fiscal-year.mjs.map +1 -1
- package/dist/actions/get-framework-version.cjs +1 -1
- package/dist/actions/get-framework-version.cjs.map +1 -1
- package/dist/actions/get-framework-version.d.cts +2 -2
- package/dist/actions/get-framework-version.d.mts +2 -2
- package/dist/actions/get-framework-version.mjs +1 -1
- package/dist/actions/get-framework-version.mjs.map +1 -1
- package/dist/actions/get-item-details.cjs +1 -1
- package/dist/actions/get-item-details.cjs.map +1 -1
- package/dist/actions/get-item-details.d.cts +1 -1
- package/dist/actions/get-item-details.d.mts +1 -1
- package/dist/actions/get-item-details.mjs +1 -1
- package/dist/actions/get-item-details.mjs.map +1 -1
- package/dist/actions/get-list.cjs +2 -2
- package/dist/actions/get-list.cjs.map +1 -1
- package/dist/actions/get-list.d.cts +4 -4
- package/dist/actions/get-list.d.mts +4 -4
- package/dist/actions/get-list.mjs +2 -2
- package/dist/actions/get-list.mjs.map +1 -1
- package/dist/actions/get-logged-user.cjs +1 -1
- package/dist/actions/get-logged-user.cjs.map +1 -1
- package/dist/actions/get-logged-user.d.cts +1 -1
- package/dist/actions/get-logged-user.d.mts +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 +1 -1
- package/dist/actions/get-party-details.cjs.map +1 -1
- package/dist/actions/get-party-details.d.cts +1 -1
- package/dist/actions/get-party-details.d.mts +1 -1
- package/dist/actions/get-party-details.mjs +1 -1
- package/dist/actions/get-party-details.mjs.map +1 -1
- package/dist/actions/get-payment-entry.cjs +1 -1
- package/dist/actions/get-payment-entry.cjs.map +1 -1
- package/dist/actions/get-payment-entry.d.cts +1 -1
- package/dist/actions/get-payment-entry.d.mts +1 -1
- package/dist/actions/get-payment-entry.mjs +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 +1 -1
- package/dist/actions/get-stock-balance.d.mts +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 +2 -2
- package/dist/actions/get-timezones.cjs.map +1 -1
- package/dist/actions/get-timezones.d.cts +2 -2
- package/dist/actions/get-timezones.d.mts +2 -2
- package/dist/actions/get-timezones.mjs +2 -2
- package/dist/actions/get-timezones.mjs.map +1 -1
- package/dist/actions/get-user-roles.cjs +1 -1
- package/dist/actions/get-user-roles.cjs.map +1 -1
- package/dist/actions/get-user-roles.d.cts +1 -1
- package/dist/actions/get-user-roles.d.mts +1 -1
- package/dist/actions/get-user-roles.mjs +1 -1
- package/dist/actions/get-user-roles.mjs.map +1 -1
- package/dist/actions/get-value.cjs +2 -2
- package/dist/actions/get-value.cjs.map +1 -1
- package/dist/actions/get-value.d.cts +2 -2
- package/dist/actions/get-value.d.mts +2 -2
- package/dist/actions/get-value.mjs +2 -2
- package/dist/actions/get-value.mjs.map +1 -1
- package/dist/actions/get-workflow-transitions.cjs +2 -2
- package/dist/actions/get-workflow-transitions.cjs.map +1 -1
- package/dist/actions/get-workflow-transitions.d.cts +2 -2
- package/dist/actions/get-workflow-transitions.d.mts +2 -2
- package/dist/actions/get-workflow-transitions.mjs +2 -2
- package/dist/actions/get-workflow-transitions.mjs.map +1 -1
- package/dist/actions/insert-document.cjs +1 -1
- package/dist/actions/insert-document.cjs.map +1 -1
- package/dist/actions/insert-document.d.cts +1 -1
- package/dist/actions/insert-document.d.mts +1 -1
- package/dist/actions/insert-document.mjs +1 -1
- package/dist/actions/insert-document.mjs.map +1 -1
- package/dist/actions/insert-many.cjs +1 -1
- package/dist/actions/insert-many.cjs.map +1 -1
- package/dist/actions/insert-many.d.cts +1 -1
- package/dist/actions/insert-many.d.mts +1 -1
- package/dist/actions/insert-many.mjs +1 -1
- package/dist/actions/insert-many.mjs.map +1 -1
- package/dist/actions/list-doctypes.cjs +1 -1
- package/dist/actions/list-doctypes.cjs.map +1 -1
- package/dist/actions/list-doctypes.d.cts +2 -2
- package/dist/actions/list-doctypes.d.mts +2 -2
- package/dist/actions/list-doctypes.mjs +1 -1
- package/dist/actions/list-doctypes.mjs.map +1 -1
- package/dist/actions/list-documents.cjs +1 -1
- package/dist/actions/list-documents.cjs.map +1 -1
- package/dist/actions/list-documents.d.cts +2 -2
- package/dist/actions/list-documents.d.mts +2 -2
- package/dist/actions/list-documents.mjs +1 -1
- package/dist/actions/list-documents.mjs.map +1 -1
- package/dist/actions/list-employees.cjs +1 -1
- package/dist/actions/list-employees.cjs.map +1 -1
- package/dist/actions/list-employees.d.cts +1 -1
- package/dist/actions/list-employees.d.mts +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 +1 -1
- package/dist/actions/list-projects.cjs.map +1 -1
- package/dist/actions/list-projects.d.cts +2 -2
- package/dist/actions/list-projects.d.mts +2 -2
- package/dist/actions/list-projects.mjs +1 -1
- package/dist/actions/list-projects.mjs.map +1 -1
- package/dist/actions/list-timesheets.cjs +1 -1
- package/dist/actions/list-timesheets.cjs.map +1 -1
- package/dist/actions/list-timesheets.d.cts +2 -2
- package/dist/actions/list-timesheets.d.mts +2 -2
- package/dist/actions/list-timesheets.mjs +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 +1 -1
- package/dist/actions/list-webhooks.d.mts +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 +2 -2
- package/dist/actions/make-delivery-note.cjs.map +1 -1
- package/dist/actions/make-delivery-note.d.cts +2 -2
- package/dist/actions/make-delivery-note.d.mts +2 -2
- package/dist/actions/make-delivery-note.mjs +2 -2
- package/dist/actions/make-delivery-note.mjs.map +1 -1
- package/dist/actions/make-purchase-order.cjs +1 -1
- package/dist/actions/make-purchase-order.cjs.map +1 -1
- package/dist/actions/make-purchase-order.d.cts +1 -1
- package/dist/actions/make-purchase-order.d.mts +1 -1
- package/dist/actions/make-purchase-order.mjs +1 -1
- package/dist/actions/make-purchase-order.mjs.map +1 -1
- package/dist/actions/make-sales-invoice.cjs +2 -2
- package/dist/actions/make-sales-invoice.cjs.map +1 -1
- package/dist/actions/make-sales-invoice.d.cts +2 -2
- package/dist/actions/make-sales-invoice.d.mts +2 -2
- package/dist/actions/make-sales-invoice.mjs +2 -2
- package/dist/actions/make-sales-invoice.mjs.map +1 -1
- package/dist/actions/make-stock-entry.cjs +2 -2
- package/dist/actions/make-stock-entry.cjs.map +1 -1
- package/dist/actions/make-stock-entry.d.cts +2 -2
- package/dist/actions/make-stock-entry.d.mts +2 -2
- package/dist/actions/make-stock-entry.mjs +2 -2
- 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 +1 -1
- package/dist/actions/ping.d.mts +1 -1
- package/dist/actions/ping.mjs +1 -1
- package/dist/actions/ping.mjs.map +1 -1
- package/dist/actions/rename-doc.cjs +1 -1
- package/dist/actions/rename-doc.cjs.map +1 -1
- package/dist/actions/rename-doc.d.cts +1 -1
- package/dist/actions/rename-doc.d.mts +1 -1
- package/dist/actions/rename-doc.mjs +1 -1
- package/dist/actions/rename-doc.mjs.map +1 -1
- package/dist/actions/save-docs.cjs +1 -1
- package/dist/actions/save-docs.cjs.map +1 -1
- package/dist/actions/save-docs.d.cts +1 -1
- package/dist/actions/save-docs.d.mts +1 -1
- package/dist/actions/save-docs.mjs +1 -1
- package/dist/actions/save-docs.mjs.map +1 -1
- package/dist/actions/save-document.cjs +1 -1
- package/dist/actions/save-document.cjs.map +1 -1
- package/dist/actions/save-document.d.cts +1 -1
- package/dist/actions/save-document.d.mts +1 -1
- package/dist/actions/save-document.mjs +1 -1
- package/dist/actions/save-document.mjs.map +1 -1
- package/dist/actions/search-global.cjs +2 -2
- package/dist/actions/search-global.cjs.map +1 -1
- package/dist/actions/search-global.d.cts +2 -2
- package/dist/actions/search-global.d.mts +2 -2
- package/dist/actions/search-global.mjs +2 -2
- 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 +2 -2
- package/dist/actions/search-link.d.mts +2 -2
- package/dist/actions/search-link.mjs +2 -2
- package/dist/actions/search-link.mjs.map +1 -1
- package/dist/actions/set-value.cjs +1 -1
- package/dist/actions/set-value.cjs.map +1 -1
- package/dist/actions/set-value.d.cts +1 -1
- package/dist/actions/set-value.d.mts +1 -1
- package/dist/actions/set-value.mjs +1 -1
- package/dist/actions/set-value.mjs.map +1 -1
- package/dist/actions/submit-document.cjs +2 -2
- package/dist/actions/submit-document.cjs.map +1 -1
- package/dist/actions/submit-document.d.cts +2 -2
- package/dist/actions/submit-document.d.mts +2 -2
- package/dist/actions/submit-document.mjs +2 -2
- package/dist/actions/submit-document.mjs.map +1 -1
- package/dist/actions/update-document.cjs +3 -3
- package/dist/actions/update-document.cjs.map +1 -1
- package/dist/actions/update-document.d.cts +4 -4
- package/dist/actions/update-document.d.mts +4 -4
- package/dist/actions/update-document.mjs +3 -3
- package/dist/actions/update-document.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -6,9 +6,9 @@ const erpnextGetCount = action("ERPNEXT_GET_COUNT", {
|
|
|
6
6
|
description: "Tool to get the count of documents matching specified filters in ERPNext/Frappe. Use when you need to know how many records exist for a specific DocType, optionally filtered by conditions.",
|
|
7
7
|
input: z.object({
|
|
8
8
|
doctype: z.string().describe("The DocType name to count documents for (e.g., 'User', 'Task', 'Project'). Must be a valid DocType in the ERPNext/Frappe system."),
|
|
9
|
-
filters: z.
|
|
9
|
+
filters: z.record(z.string(), z.unknown()).describe("Optional filter conditions to apply when counting documents. Format: {field_name: value} or {field_name: ['operator', value]}. Example: {'status': 'Open'} or {'creation': ['>', '2024-01-01']}.").optional()
|
|
10
10
|
}).describe("Request model for getting the count of documents matching filters."),
|
|
11
|
-
output: z.object({ message: z.number().int().describe("The count of documents matching the specified DocType and filters.").nullable() }).describe("Response model for document count query.")
|
|
11
|
+
output: z.object({ message: z.number().int().describe("The count of documents matching the specified DocType and filters.").nullable() }).passthrough().describe("Response model for document count query.")
|
|
12
12
|
});
|
|
13
13
|
//#endregion
|
|
14
14
|
export { erpnextGetCount };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-count.mjs","names":[],"sources":["../../src/actions/get-count.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetCountInput = z.object({\n doctype: z.string().describe(\"The DocType name to count documents for (e.g., 'User', 'Task', 'Project'). Must be a valid DocType in the ERPNext/Frappe system.\"),\n filters: z.
|
|
1
|
+
{"version":3,"file":"get-count.mjs","names":[],"sources":["../../src/actions/get-count.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetCountInput = z.object({\n doctype: z.string().describe(\"The DocType name to count documents for (e.g., 'User', 'Task', 'Project'). Must be a valid DocType in the ERPNext/Frappe system.\"),\n filters: z.record(z.string(), z.unknown()).describe(\"Optional filter conditions to apply when counting documents. Format: {field_name: value} or {field_name: ['operator', value]}. Example: {'status': 'Open'} or {'creation': ['>', '2024-01-01']}.\").optional(),\n}).describe(\"Request model for getting the count of documents matching filters.\");\nexport const ErpnextGetCountOutput = z.object({\n message: z.number().int().describe(\"The count of documents matching the specified DocType and filters.\").nullable(),\n}).passthrough().describe(\"Response model for document count query.\");\n\nexport const erpnextGetCount = action(\"ERPNEXT_GET_COUNT\", {\n slug: \"erpnext-get-count\",\n name: \"Get Document Count\",\n description: \"Tool to get the count of documents matching specified filters in ERPNext/Frappe. Use when you need to know how many records exist for a specific DocType, optionally filtered by conditions.\",\n input: ErpnextGetCountInput,\n output: ErpnextGetCountOutput,\n});\n"],"mappings":";;AAYA,MAAa,kBAAkB,OAAO,qBAAqB;CACzD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZkC,EAAE,OAAO;EAC3C,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,kIAAkI;EAC/J,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kMAAkM,CAAC,CAAC,SAAS;CACnQ,CAAC,CAAC,CAAC,SAAS,oEASH;CACP,QATmC,EAAE,OAAO,EAC5C,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS,EACpH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAOhB;AACV,CAAC"}
|
|
@@ -23,12 +23,12 @@ const ErpnextGetDocWithMeta_DocInfoSchema = zod.z.object({
|
|
|
23
23
|
energy_point_logs: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Energy point logs related to the document").nullable().optional(),
|
|
24
24
|
is_document_followed: zod.z.number().int().describe("Whether the document is followed by the current user (0 or 1)").nullable().optional(),
|
|
25
25
|
additional_timeline_content: zod.z.union([zod.z.string(), zod.z.array(zod.z.unknown())]).nullable().optional()
|
|
26
|
-
}).describe("Document metadata including attachments, comments, and activity information.");
|
|
26
|
+
}).passthrough().describe("Document metadata including attachments, comments, and activity information.");
|
|
27
27
|
const ErpnextGetDocWithMetaOutput = zod.z.object({
|
|
28
|
-
docs: zod.z.array(zod.z.
|
|
28
|
+
docs: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("List of document objects including the main document and any child tables with their fields").nullable().optional(),
|
|
29
29
|
docinfo: ErpnextGetDocWithMeta_DocInfoSchema.nullable().optional(),
|
|
30
30
|
user_info: zod.z.record(zod.z.string(), zod.z.unknown()).describe("User information and permissions related to the document").nullable().optional()
|
|
31
|
-
}).describe("Response model containing document data with full metadata.");
|
|
31
|
+
}).passthrough().describe("Response model containing document data with full metadata.");
|
|
32
32
|
const erpnextGetDocWithMeta = require_action.action("ERPNEXT_GET_DOC_WITH_META", {
|
|
33
33
|
slug: "erpnext-get-doc-with-meta",
|
|
34
34
|
name: "Get Document with Metadata",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-doc-with-meta.cjs","names":["z","action"],"sources":["../../src/actions/get-doc-with-meta.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetDocWithMetaInput = z.object({\n name: z.string().describe(\"The unique name/identifier of the document to retrieve\"),\n doctype: z.string().describe(\"The DocType name (e.g., 'Account', 'Customer', 'Sales Order')\"),\n}).describe(\"Request model for retrieving a document with full metadata.\");\nconst ErpnextGetDocWithMeta_DocInfoSchema = z.object({\n tags: z.string().describe(\"Comma-separated tags associated with the document\").nullable().optional(),\n views: z.array(z.record(z.string(), z.unknown())).describe(\"Document view logs\").nullable().optional(),\n shared: z.array(z.record(z.string(), z.unknown())).describe(\"Document sharing information\").nullable().optional(),\n ratings: z.array(z.record(z.string(), z.unknown())).describe(\"Document ratings\").nullable().optional(),\n comments: z.array(z.record(z.string(), z.unknown())).describe(\"Comments on the document\").nullable().optional(),\n versions: z.array(z.record(z.string(), z.unknown())).describe(\"Version history information\").nullable().optional(),\n milestones: z.array(z.record(z.string(), z.unknown())).describe(\"Milestone information\").nullable().optional(),\n assignments: z.array(z.record(z.string(), z.unknown())).describe(\"User assignments for the document\").nullable().optional(),\n attachments: z.array(z.record(z.string(), z.unknown())).describe(\"List of file attachments linked to the document\").nullable().optional(),\n permissions: z.record(z.string(), z.unknown()).describe(\"Permission information for the current user\").nullable().optional(),\n total_views: z.number().int().describe(\"Total number of views for the document\").nullable().optional(),\n communications: z.array(z.record(z.string(), z.unknown())).describe(\"Related communication records\").nullable().optional(),\n document_email: z.string().describe(\"Email address associated with the document\").nullable().optional(),\n total_comments: z.number().int().describe(\"Total number of comments on the document\").nullable().optional(),\n energy_point_logs: z.array(z.record(z.string(), z.unknown())).describe(\"Energy point logs related to the document\").nullable().optional(),\n is_document_followed: z.number().int().describe(\"Whether the document is followed by the current user (0 or 1)\").nullable().optional(),\n additional_timeline_content: z.union([z.string(), z.array(z.unknown())]).nullable().optional(),\n}).describe(\"Document metadata including attachments, comments, and activity information.\");\nexport const ErpnextGetDocWithMetaOutput = z.object({\n docs: z.array(z.
|
|
1
|
+
{"version":3,"file":"get-doc-with-meta.cjs","names":["z","action"],"sources":["../../src/actions/get-doc-with-meta.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetDocWithMetaInput = z.object({\n name: z.string().describe(\"The unique name/identifier of the document to retrieve\"),\n doctype: z.string().describe(\"The DocType name (e.g., 'Account', 'Customer', 'Sales Order')\"),\n}).describe(\"Request model for retrieving a document with full metadata.\");\nconst ErpnextGetDocWithMeta_DocInfoSchema = z.object({\n tags: z.string().describe(\"Comma-separated tags associated with the document\").nullable().optional(),\n views: z.array(z.record(z.string(), z.unknown())).describe(\"Document view logs\").nullable().optional(),\n shared: z.array(z.record(z.string(), z.unknown())).describe(\"Document sharing information\").nullable().optional(),\n ratings: z.array(z.record(z.string(), z.unknown())).describe(\"Document ratings\").nullable().optional(),\n comments: z.array(z.record(z.string(), z.unknown())).describe(\"Comments on the document\").nullable().optional(),\n versions: z.array(z.record(z.string(), z.unknown())).describe(\"Version history information\").nullable().optional(),\n milestones: z.array(z.record(z.string(), z.unknown())).describe(\"Milestone information\").nullable().optional(),\n assignments: z.array(z.record(z.string(), z.unknown())).describe(\"User assignments for the document\").nullable().optional(),\n attachments: z.array(z.record(z.string(), z.unknown())).describe(\"List of file attachments linked to the document\").nullable().optional(),\n permissions: z.record(z.string(), z.unknown()).describe(\"Permission information for the current user\").nullable().optional(),\n total_views: z.number().int().describe(\"Total number of views for the document\").nullable().optional(),\n communications: z.array(z.record(z.string(), z.unknown())).describe(\"Related communication records\").nullable().optional(),\n document_email: z.string().describe(\"Email address associated with the document\").nullable().optional(),\n total_comments: z.number().int().describe(\"Total number of comments on the document\").nullable().optional(),\n energy_point_logs: z.array(z.record(z.string(), z.unknown())).describe(\"Energy point logs related to the document\").nullable().optional(),\n is_document_followed: z.number().int().describe(\"Whether the document is followed by the current user (0 or 1)\").nullable().optional(),\n additional_timeline_content: z.union([z.string(), z.array(z.unknown())]).nullable().optional(),\n}).passthrough().describe(\"Document metadata including attachments, comments, and activity information.\");\nexport const ErpnextGetDocWithMetaOutput = z.object({\n docs: z.array(z.record(z.string(), z.unknown())).describe(\"List of document objects including the main document and any child tables with their fields\").nullable().optional(),\n docinfo: ErpnextGetDocWithMeta_DocInfoSchema.nullable().optional(),\n user_info: z.record(z.string(), z.unknown()).describe(\"User information and permissions related to the document\").nullable().optional(),\n}).passthrough().describe(\"Response model containing document data with full metadata.\");\n\nexport const erpnextGetDocWithMeta = action(\"ERPNEXT_GET_DOC_WITH_META\", {\n slug: \"erpnext-get-doc-with-meta\",\n name: \"Get Document with Metadata\",\n description: \"Tool to retrieve a document with full metadata including attachments, comments, activity logs, and related information. Use when you need complete document details beyond the basic fields returned by standard GET requests.\",\n input: ErpnextGetDocWithMetaInput,\n output: ErpnextGetDocWithMetaOutput,\n});\n"],"mappings":"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"}
|
|
@@ -6,7 +6,7 @@ declare const ErpnextGetDocWithMetaInput: z.ZodObject<{
|
|
|
6
6
|
doctype: z.ZodString;
|
|
7
7
|
}, z.core.$strip>;
|
|
8
8
|
declare const ErpnextGetDocWithMetaOutput: z.ZodObject<{
|
|
9
|
-
docs: z.ZodOptional<z.ZodNullable<z.ZodArray<z.
|
|
9
|
+
docs: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
10
10
|
docinfo: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
11
11
|
tags: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
12
|
views: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
@@ -25,9 +25,9 @@ declare const ErpnextGetDocWithMetaOutput: z.ZodObject<{
|
|
|
25
25
|
energy_point_logs: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
26
26
|
is_document_followed: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
27
27
|
additional_timeline_content: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnknown>]>>>;
|
|
28
|
-
}, z.core.$
|
|
28
|
+
}, z.core.$loose>>>;
|
|
29
29
|
user_info: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
30
|
-
}, z.core.$
|
|
30
|
+
}, z.core.$loose>;
|
|
31
31
|
declare const erpnextGetDocWithMeta: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
32
32
|
name: string;
|
|
33
33
|
doctype: string;
|
|
@@ -6,7 +6,7 @@ declare const ErpnextGetDocWithMetaInput: z.ZodObject<{
|
|
|
6
6
|
doctype: z.ZodString;
|
|
7
7
|
}, z.core.$strip>;
|
|
8
8
|
declare const ErpnextGetDocWithMetaOutput: z.ZodObject<{
|
|
9
|
-
docs: z.ZodOptional<z.ZodNullable<z.ZodArray<z.
|
|
9
|
+
docs: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
10
10
|
docinfo: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
11
11
|
tags: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
12
|
views: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
@@ -25,9 +25,9 @@ declare const ErpnextGetDocWithMetaOutput: z.ZodObject<{
|
|
|
25
25
|
energy_point_logs: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
26
26
|
is_document_followed: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
27
27
|
additional_timeline_content: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnknown>]>>>;
|
|
28
|
-
}, z.core.$
|
|
28
|
+
}, z.core.$loose>>>;
|
|
29
29
|
user_info: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
30
|
-
}, z.core.$
|
|
30
|
+
}, z.core.$loose>;
|
|
31
31
|
declare const erpnextGetDocWithMeta: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
32
32
|
name: string;
|
|
33
33
|
doctype: string;
|
|
@@ -23,17 +23,17 @@ const ErpnextGetDocWithMeta_DocInfoSchema = z.object({
|
|
|
23
23
|
energy_point_logs: z.array(z.record(z.string(), z.unknown())).describe("Energy point logs related to the document").nullable().optional(),
|
|
24
24
|
is_document_followed: z.number().int().describe("Whether the document is followed by the current user (0 or 1)").nullable().optional(),
|
|
25
25
|
additional_timeline_content: z.union([z.string(), z.array(z.unknown())]).nullable().optional()
|
|
26
|
-
}).describe("Document metadata including attachments, comments, and activity information.");
|
|
26
|
+
}).passthrough().describe("Document metadata including attachments, comments, and activity information.");
|
|
27
27
|
const erpnextGetDocWithMeta = action("ERPNEXT_GET_DOC_WITH_META", {
|
|
28
28
|
slug: "erpnext-get-doc-with-meta",
|
|
29
29
|
name: "Get Document with Metadata",
|
|
30
30
|
description: "Tool to retrieve a document with full metadata including attachments, comments, activity logs, and related information. Use when you need complete document details beyond the basic fields returned by standard GET requests.",
|
|
31
31
|
input: ErpnextGetDocWithMetaInput,
|
|
32
32
|
output: z.object({
|
|
33
|
-
docs: z.array(z.
|
|
33
|
+
docs: z.array(z.record(z.string(), z.unknown())).describe("List of document objects including the main document and any child tables with their fields").nullable().optional(),
|
|
34
34
|
docinfo: ErpnextGetDocWithMeta_DocInfoSchema.nullable().optional(),
|
|
35
35
|
user_info: z.record(z.string(), z.unknown()).describe("User information and permissions related to the document").nullable().optional()
|
|
36
|
-
}).describe("Response model containing document data with full metadata.")
|
|
36
|
+
}).passthrough().describe("Response model containing document data with full metadata.")
|
|
37
37
|
});
|
|
38
38
|
//#endregion
|
|
39
39
|
export { erpnextGetDocWithMeta };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-doc-with-meta.mjs","names":[],"sources":["../../src/actions/get-doc-with-meta.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetDocWithMetaInput = z.object({\n name: z.string().describe(\"The unique name/identifier of the document to retrieve\"),\n doctype: z.string().describe(\"The DocType name (e.g., 'Account', 'Customer', 'Sales Order')\"),\n}).describe(\"Request model for retrieving a document with full metadata.\");\nconst ErpnextGetDocWithMeta_DocInfoSchema = z.object({\n tags: z.string().describe(\"Comma-separated tags associated with the document\").nullable().optional(),\n views: z.array(z.record(z.string(), z.unknown())).describe(\"Document view logs\").nullable().optional(),\n shared: z.array(z.record(z.string(), z.unknown())).describe(\"Document sharing information\").nullable().optional(),\n ratings: z.array(z.record(z.string(), z.unknown())).describe(\"Document ratings\").nullable().optional(),\n comments: z.array(z.record(z.string(), z.unknown())).describe(\"Comments on the document\").nullable().optional(),\n versions: z.array(z.record(z.string(), z.unknown())).describe(\"Version history information\").nullable().optional(),\n milestones: z.array(z.record(z.string(), z.unknown())).describe(\"Milestone information\").nullable().optional(),\n assignments: z.array(z.record(z.string(), z.unknown())).describe(\"User assignments for the document\").nullable().optional(),\n attachments: z.array(z.record(z.string(), z.unknown())).describe(\"List of file attachments linked to the document\").nullable().optional(),\n permissions: z.record(z.string(), z.unknown()).describe(\"Permission information for the current user\").nullable().optional(),\n total_views: z.number().int().describe(\"Total number of views for the document\").nullable().optional(),\n communications: z.array(z.record(z.string(), z.unknown())).describe(\"Related communication records\").nullable().optional(),\n document_email: z.string().describe(\"Email address associated with the document\").nullable().optional(),\n total_comments: z.number().int().describe(\"Total number of comments on the document\").nullable().optional(),\n energy_point_logs: z.array(z.record(z.string(), z.unknown())).describe(\"Energy point logs related to the document\").nullable().optional(),\n is_document_followed: z.number().int().describe(\"Whether the document is followed by the current user (0 or 1)\").nullable().optional(),\n additional_timeline_content: z.union([z.string(), z.array(z.unknown())]).nullable().optional(),\n}).describe(\"Document metadata including attachments, comments, and activity information.\");\nexport const ErpnextGetDocWithMetaOutput = z.object({\n docs: z.array(z.
|
|
1
|
+
{"version":3,"file":"get-doc-with-meta.mjs","names":[],"sources":["../../src/actions/get-doc-with-meta.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetDocWithMetaInput = z.object({\n name: z.string().describe(\"The unique name/identifier of the document to retrieve\"),\n doctype: z.string().describe(\"The DocType name (e.g., 'Account', 'Customer', 'Sales Order')\"),\n}).describe(\"Request model for retrieving a document with full metadata.\");\nconst ErpnextGetDocWithMeta_DocInfoSchema = z.object({\n tags: z.string().describe(\"Comma-separated tags associated with the document\").nullable().optional(),\n views: z.array(z.record(z.string(), z.unknown())).describe(\"Document view logs\").nullable().optional(),\n shared: z.array(z.record(z.string(), z.unknown())).describe(\"Document sharing information\").nullable().optional(),\n ratings: z.array(z.record(z.string(), z.unknown())).describe(\"Document ratings\").nullable().optional(),\n comments: z.array(z.record(z.string(), z.unknown())).describe(\"Comments on the document\").nullable().optional(),\n versions: z.array(z.record(z.string(), z.unknown())).describe(\"Version history information\").nullable().optional(),\n milestones: z.array(z.record(z.string(), z.unknown())).describe(\"Milestone information\").nullable().optional(),\n assignments: z.array(z.record(z.string(), z.unknown())).describe(\"User assignments for the document\").nullable().optional(),\n attachments: z.array(z.record(z.string(), z.unknown())).describe(\"List of file attachments linked to the document\").nullable().optional(),\n permissions: z.record(z.string(), z.unknown()).describe(\"Permission information for the current user\").nullable().optional(),\n total_views: z.number().int().describe(\"Total number of views for the document\").nullable().optional(),\n communications: z.array(z.record(z.string(), z.unknown())).describe(\"Related communication records\").nullable().optional(),\n document_email: z.string().describe(\"Email address associated with the document\").nullable().optional(),\n total_comments: z.number().int().describe(\"Total number of comments on the document\").nullable().optional(),\n energy_point_logs: z.array(z.record(z.string(), z.unknown())).describe(\"Energy point logs related to the document\").nullable().optional(),\n is_document_followed: z.number().int().describe(\"Whether the document is followed by the current user (0 or 1)\").nullable().optional(),\n additional_timeline_content: z.union([z.string(), z.array(z.unknown())]).nullable().optional(),\n}).passthrough().describe(\"Document metadata including attachments, comments, and activity information.\");\nexport const ErpnextGetDocWithMetaOutput = z.object({\n docs: z.array(z.record(z.string(), z.unknown())).describe(\"List of document objects including the main document and any child tables with their fields\").nullable().optional(),\n docinfo: ErpnextGetDocWithMeta_DocInfoSchema.nullable().optional(),\n user_info: z.record(z.string(), z.unknown()).describe(\"User information and permissions related to the document\").nullable().optional(),\n}).passthrough().describe(\"Response model containing document data with full metadata.\");\n\nexport const erpnextGetDocWithMeta = action(\"ERPNEXT_GET_DOC_WITH_META\", {\n slug: \"erpnext-get-doc-with-meta\",\n name: \"Get Document with Metadata\",\n description: \"Tool to retrieve a document with full metadata including attachments, comments, activity logs, and related information. Use when you need complete document details beyond the basic fields returned by standard GET requests.\",\n input: ErpnextGetDocWithMetaInput,\n output: ErpnextGetDocWithMetaOutput,\n});\n"],"mappings":"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"}
|
|
@@ -6,10 +6,10 @@ const ErpnextGetDoctypeMetaInput = zod.z.object({
|
|
|
6
6
|
with_parent: zod.z.boolean().describe("Include parent DocType metadata if this DocType is a child table. Useful when retrieving metadata for child tables in reports.").optional()
|
|
7
7
|
}).describe("Request model for retrieving DocType metadata/schema.");
|
|
8
8
|
const ErpnextGetDoctypeMetaOutput = zod.z.object({
|
|
9
|
-
docs: zod.z.array(zod.z.
|
|
9
|
+
docs: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("List of DocType metadata objects. The first object contains the main DocType definition with all fields, the subsequent objects contain metadata for any child table DocTypes referenced.").nullable().optional(),
|
|
10
10
|
parent_dt: zod.z.string().describe("Parent DocType name if with_parent was True and this DocType has a parent").nullable().optional(),
|
|
11
|
-
user_settings: zod.z.
|
|
12
|
-
}).describe("Response model containing DocType metadata including fields, permissions, and configurations.");
|
|
11
|
+
user_settings: zod.z.record(zod.z.string(), zod.z.unknown()).describe("User-specific settings and preferences for the DocType, including custom field order, column widths, and other UI preferences").nullable().optional()
|
|
12
|
+
}).passthrough().describe("Response model containing DocType metadata including fields, permissions, and configurations.");
|
|
13
13
|
const erpnextGetDoctypeMeta = require_action.action("ERPNEXT_GET_DOCTYPE_META", {
|
|
14
14
|
slug: "erpnext-get-doctype-meta",
|
|
15
15
|
name: "Get DocType Metadata",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-doctype-meta.cjs","names":["z","action"],"sources":["../../src/actions/get-doctype-meta.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetDoctypeMetaInput = z.object({\n doctype: z.string().describe(\"The DocType name to retrieve metadata for (e.g., 'Customer', 'Sales Order', 'Item')\"),\n with_parent: z.boolean().describe(\"Include parent DocType metadata if this DocType is a child table. Useful when retrieving metadata for child tables in reports.\").optional(),\n}).describe(\"Request model for retrieving DocType metadata/schema.\");\nexport const ErpnextGetDoctypeMetaOutput = z.object({\n docs: z.array(z.
|
|
1
|
+
{"version":3,"file":"get-doctype-meta.cjs","names":["z","action"],"sources":["../../src/actions/get-doctype-meta.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetDoctypeMetaInput = z.object({\n doctype: z.string().describe(\"The DocType name to retrieve metadata for (e.g., 'Customer', 'Sales Order', 'Item')\"),\n with_parent: z.boolean().describe(\"Include parent DocType metadata if this DocType is a child table. Useful when retrieving metadata for child tables in reports.\").optional(),\n}).describe(\"Request model for retrieving DocType metadata/schema.\");\nexport const ErpnextGetDoctypeMetaOutput = z.object({\n docs: z.array(z.record(z.string(), z.unknown())).describe(\"List of DocType metadata objects. The first object contains the main DocType definition with all fields, the subsequent objects contain metadata for any child table DocTypes referenced.\").nullable().optional(),\n parent_dt: z.string().describe(\"Parent DocType name if with_parent was True and this DocType has a parent\").nullable().optional(),\n user_settings: z.record(z.string(), z.unknown()).describe(\"User-specific settings and preferences for the DocType, including custom field order, column widths, and other UI preferences\").nullable().optional(),\n}).passthrough().describe(\"Response model containing DocType metadata including fields, permissions, and configurations.\");\n\nexport const erpnextGetDoctypeMeta = action(\"ERPNEXT_GET_DOCTYPE_META\", {\n slug: \"erpnext-get-doctype-meta\",\n name: \"Get DocType Metadata\",\n description: \"Tool to retrieve complete DocType metadata/schema including field definitions, field types, permissions, and configurations. Use when you need to understand the structure of a DocType, its fields, validation rules, or permissions before creating or querying documents.\",\n input: ErpnextGetDoctypeMetaInput,\n output: ErpnextGetDoctypeMetaOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF;CAClH,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gIAAgI,CAAC,CAAC,SAAS;AAC/K,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,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,2LAA2L,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3Q,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChI,eAAeA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+HAA+H,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjN,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+FAA+F;AAEzH,MAAa,wBAAwBC,eAAAA,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -6,10 +6,10 @@ declare const ErpnextGetDoctypeMetaInput: z.ZodObject<{
|
|
|
6
6
|
with_parent: z.ZodOptional<z.ZodBoolean>;
|
|
7
7
|
}, z.core.$strip>;
|
|
8
8
|
declare const ErpnextGetDoctypeMetaOutput: z.ZodObject<{
|
|
9
|
-
docs: z.ZodOptional<z.ZodNullable<z.ZodArray<z.
|
|
9
|
+
docs: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
10
10
|
parent_dt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
-
user_settings: z.ZodOptional<z.ZodNullable<z.
|
|
12
|
-
}, z.core.$
|
|
11
|
+
user_settings: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
12
|
+
}, z.core.$loose>;
|
|
13
13
|
declare const erpnextGetDoctypeMeta: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
14
14
|
doctype: string;
|
|
15
15
|
with_parent?: boolean | undefined;
|
|
@@ -6,10 +6,10 @@ declare const ErpnextGetDoctypeMetaInput: z.ZodObject<{
|
|
|
6
6
|
with_parent: z.ZodOptional<z.ZodBoolean>;
|
|
7
7
|
}, z.core.$strip>;
|
|
8
8
|
declare const ErpnextGetDoctypeMetaOutput: z.ZodObject<{
|
|
9
|
-
docs: z.ZodOptional<z.ZodNullable<z.ZodArray<z.
|
|
9
|
+
docs: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
10
10
|
parent_dt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
-
user_settings: z.ZodOptional<z.ZodNullable<z.
|
|
12
|
-
}, z.core.$
|
|
11
|
+
user_settings: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
12
|
+
}, z.core.$loose>;
|
|
13
13
|
declare const erpnextGetDoctypeMeta: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
14
14
|
doctype: string;
|
|
15
15
|
with_parent?: boolean | undefined;
|
|
@@ -9,10 +9,10 @@ const erpnextGetDoctypeMeta = action("ERPNEXT_GET_DOCTYPE_META", {
|
|
|
9
9
|
with_parent: z.boolean().describe("Include parent DocType metadata if this DocType is a child table. Useful when retrieving metadata for child tables in reports.").optional()
|
|
10
10
|
}).describe("Request model for retrieving DocType metadata/schema."),
|
|
11
11
|
output: z.object({
|
|
12
|
-
docs: z.array(z.
|
|
12
|
+
docs: z.array(z.record(z.string(), z.unknown())).describe("List of DocType metadata objects. The first object contains the main DocType definition with all fields, the subsequent objects contain metadata for any child table DocTypes referenced.").nullable().optional(),
|
|
13
13
|
parent_dt: z.string().describe("Parent DocType name if with_parent was True and this DocType has a parent").nullable().optional(),
|
|
14
|
-
user_settings: z.
|
|
15
|
-
}).describe("Response model containing DocType metadata including fields, permissions, and configurations.")
|
|
14
|
+
user_settings: z.record(z.string(), z.unknown()).describe("User-specific settings and preferences for the DocType, including custom field order, column widths, and other UI preferences").nullable().optional()
|
|
15
|
+
}).passthrough().describe("Response model containing DocType metadata including fields, permissions, and configurations.")
|
|
16
16
|
});
|
|
17
17
|
//#endregion
|
|
18
18
|
export { erpnextGetDoctypeMeta };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-doctype-meta.mjs","names":[],"sources":["../../src/actions/get-doctype-meta.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetDoctypeMetaInput = z.object({\n doctype: z.string().describe(\"The DocType name to retrieve metadata for (e.g., 'Customer', 'Sales Order', 'Item')\"),\n with_parent: z.boolean().describe(\"Include parent DocType metadata if this DocType is a child table. Useful when retrieving metadata for child tables in reports.\").optional(),\n}).describe(\"Request model for retrieving DocType metadata/schema.\");\nexport const ErpnextGetDoctypeMetaOutput = z.object({\n docs: z.array(z.
|
|
1
|
+
{"version":3,"file":"get-doctype-meta.mjs","names":[],"sources":["../../src/actions/get-doctype-meta.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetDoctypeMetaInput = z.object({\n doctype: z.string().describe(\"The DocType name to retrieve metadata for (e.g., 'Customer', 'Sales Order', 'Item')\"),\n with_parent: z.boolean().describe(\"Include parent DocType metadata if this DocType is a child table. Useful when retrieving metadata for child tables in reports.\").optional(),\n}).describe(\"Request model for retrieving DocType metadata/schema.\");\nexport const ErpnextGetDoctypeMetaOutput = z.object({\n docs: z.array(z.record(z.string(), z.unknown())).describe(\"List of DocType metadata objects. The first object contains the main DocType definition with all fields, the subsequent objects contain metadata for any child table DocTypes referenced.\").nullable().optional(),\n parent_dt: z.string().describe(\"Parent DocType name if with_parent was True and this DocType has a parent\").nullable().optional(),\n user_settings: z.record(z.string(), z.unknown()).describe(\"User-specific settings and preferences for the DocType, including custom field order, column widths, and other UI preferences\").nullable().optional(),\n}).passthrough().describe(\"Response model containing DocType metadata including fields, permissions, and configurations.\");\n\nexport const erpnextGetDoctypeMeta = action(\"ERPNEXT_GET_DOCTYPE_META\", {\n slug: \"erpnext-get-doctype-meta\",\n name: \"Get DocType Metadata\",\n description: \"Tool to retrieve complete DocType metadata/schema including field definitions, field types, permissions, and configurations. Use when you need to understand the structure of a DocType, its fields, validation rules, or permissions before creating or querying documents.\",\n input: ErpnextGetDoctypeMetaInput,\n output: ErpnextGetDoctypeMetaOutput,\n});\n"],"mappings":";;AAcA,MAAa,wBAAwB,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAdwC,EAAE,OAAO;EACjD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF;EAClH,aAAa,EAAE,QAAQ,CAAC,CAAC,SAAS,gIAAgI,CAAC,CAAC,SAAS;CAC/K,CAAC,CAAC,CAAC,SAAS,uDAWH;CACP,QAXyC,EAAE,OAAO;EAClD,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,2LAA2L,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3Q,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChI,eAAe,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+HAA+H,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjN,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+FAOhB;AACV,CAAC"}
|
|
@@ -21,7 +21,7 @@ const ErpnextGetDocument_DocumentDataSchema = zod.z.object({
|
|
|
21
21
|
docstatus: zod.z.number().int().describe("Document status (0=Draft, 1=Submitted, 2=Cancelled)").nullable().optional(),
|
|
22
22
|
modified_by: zod.z.string().describe("User who last modified the document").nullable().optional()
|
|
23
23
|
}).passthrough().describe("Represents the document data returned by ERPNext API.");
|
|
24
|
-
const ErpnextGetDocumentOutput = zod.z.object({ data: ErpnextGetDocument_DocumentDataSchema.nullable() }).describe("Response model for retrieving a document from ERPNext.");
|
|
24
|
+
const ErpnextGetDocumentOutput = zod.z.object({ data: ErpnextGetDocument_DocumentDataSchema.nullable() }).passthrough().describe("Response model for retrieving a document from ERPNext.");
|
|
25
25
|
const erpnextGetDocument = require_action.action("ERPNEXT_GET_DOCUMENT", {
|
|
26
26
|
slug: "erpnext-get-document",
|
|
27
27
|
name: "Get Document",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-document.cjs","names":["z","action"],"sources":["../../src/actions/get-document.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetDocumentInput = z.object({\n name: z.string().describe(\"The name (ID) of the document you'd like to receive. For example EMP001 (of type Employee).\"),\n fields: z.array(z.string()).describe(\"By default, only the \\\"name\\\" field is included in the listing. To add more fields, you can pass the fields param. For example, [\\\"name\\\", \\\"country\\\"]\").optional(),\n doctype: z.string().describe(\"The DocType you'd like to receive. For example Customer, Supplier, Employee, Account, Lead, Company, Sales Invoice, Purchase Invoice, Stock Entry, etc.\"),\n filters: z.array(z.array(z.union([z.string(), z.number().int(), z.number(), z.boolean()]))).describe(\"You can filter the listing using sql conditions. Each condition is an array of the format, [doctype, field, operator, value]. For example, [[\\\"Customer\\\", \\\"country\\\", \\\"=\\\", \\\"India\\\"]]\").optional(),\n}).describe(\"Request model for retrieving a specific document by DocType and name.\");\nconst ErpnextGetDocument_DocumentDataSchema = z.object({\n name: z.string().describe(\"Document name (ID)\").nullable().optional(),\n owner: z.string().describe(\"Owner of the document\").nullable().optional(),\n doctype: z.string().describe(\"Document type\").nullable().optional(),\n creation: z.string().describe(\"ISO timestamp when document was created\").nullable().optional(),\n modified: z.string().describe(\"ISO timestamp when document was last modified\").nullable().optional(),\n docstatus: z.number().int().describe(\"Document status (0=Draft, 1=Submitted, 2=Cancelled)\").nullable().optional(),\n modified_by: z.string().describe(\"User who last modified the document\").nullable().optional(),\n}).passthrough().describe(\"Represents the document data returned by ERPNext API.\");\nexport const ErpnextGetDocumentOutput = z.object({\n data: ErpnextGetDocument_DocumentDataSchema.nullable(),\n}).describe(\"Response model for retrieving a document from ERPNext.\");\n\nexport const erpnextGetDocument = action(\"ERPNEXT_GET_DOCUMENT\", {\n slug: \"erpnext-get-document\",\n name: \"Get Document\",\n description: \"Tool to retrieve a specific document by its DocType and name (ID). Returns the complete document with all fields. Use when you need to fetch details of a specific ERPNext document like Customer, Employee, Account, Sales Invoice, etc.\",\n input: ErpnextGetDocumentInput,\n output: ErpnextGetDocumentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6FAA6F;CACvH,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,yJAAyJ,CAAC,CAAC,SAAS;CACzM,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yJAAyJ;CACtL,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAM;EAACA,IAAAA,EAAE,OAAO;EAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI;EAAGA,IAAAA,EAAE,OAAO;EAAGA,IAAAA,EAAE,QAAQ;CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,4LAA4L,CAAC,CAAC,SAAS;AAC9S,CAAC,CAAC,CAAC,SAAS,uEAAuE;AACnF,MAAM,wCAAwCA,IAAAA,EAAE,OAAO;CACrD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAAuD;AACjF,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,EAC/C,MAAM,sCAAsC,SAAS,EACvD,CAAC,CAAC,CAAC,SAAS,wDAAwD;
|
|
1
|
+
{"version":3,"file":"get-document.cjs","names":["z","action"],"sources":["../../src/actions/get-document.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetDocumentInput = z.object({\n name: z.string().describe(\"The name (ID) of the document you'd like to receive. For example EMP001 (of type Employee).\"),\n fields: z.array(z.string()).describe(\"By default, only the \\\"name\\\" field is included in the listing. To add more fields, you can pass the fields param. For example, [\\\"name\\\", \\\"country\\\"]\").optional(),\n doctype: z.string().describe(\"The DocType you'd like to receive. For example Customer, Supplier, Employee, Account, Lead, Company, Sales Invoice, Purchase Invoice, Stock Entry, etc.\"),\n filters: z.array(z.array(z.union([z.string(), z.number().int(), z.number(), z.boolean()]))).describe(\"You can filter the listing using sql conditions. Each condition is an array of the format, [doctype, field, operator, value]. For example, [[\\\"Customer\\\", \\\"country\\\", \\\"=\\\", \\\"India\\\"]]\").optional(),\n}).describe(\"Request model for retrieving a specific document by DocType and name.\");\nconst ErpnextGetDocument_DocumentDataSchema = z.object({\n name: z.string().describe(\"Document name (ID)\").nullable().optional(),\n owner: z.string().describe(\"Owner of the document\").nullable().optional(),\n doctype: z.string().describe(\"Document type\").nullable().optional(),\n creation: z.string().describe(\"ISO timestamp when document was created\").nullable().optional(),\n modified: z.string().describe(\"ISO timestamp when document was last modified\").nullable().optional(),\n docstatus: z.number().int().describe(\"Document status (0=Draft, 1=Submitted, 2=Cancelled)\").nullable().optional(),\n modified_by: z.string().describe(\"User who last modified the document\").nullable().optional(),\n}).passthrough().describe(\"Represents the document data returned by ERPNext API.\");\nexport const ErpnextGetDocumentOutput = z.object({\n data: ErpnextGetDocument_DocumentDataSchema.nullable(),\n}).passthrough().describe(\"Response model for retrieving a document from ERPNext.\");\n\nexport const erpnextGetDocument = action(\"ERPNEXT_GET_DOCUMENT\", {\n slug: \"erpnext-get-document\",\n name: \"Get Document\",\n description: \"Tool to retrieve a specific document by its DocType and name (ID). Returns the complete document with all fields. Use when you need to fetch details of a specific ERPNext document like Customer, Employee, Account, Sales Invoice, etc.\",\n input: ErpnextGetDocumentInput,\n output: ErpnextGetDocumentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6FAA6F;CACvH,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,yJAAyJ,CAAC,CAAC,SAAS;CACzM,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yJAAyJ;CACtL,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAM;EAACA,IAAAA,EAAE,OAAO;EAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI;EAAGA,IAAAA,EAAE,OAAO;EAAGA,IAAAA,EAAE,QAAQ;CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,4LAA4L,CAAC,CAAC,SAAS;AAC9S,CAAC,CAAC,CAAC,SAAS,uEAAuE;AACnF,MAAM,wCAAwCA,IAAAA,EAAE,OAAO;CACrD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAAuD;AACjF,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,EAC/C,MAAM,sCAAsC,SAAS,EACvD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wDAAwD;AAElF,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -17,7 +17,7 @@ declare const ErpnextGetDocumentOutput: z.ZodObject<{
|
|
|
17
17
|
docstatus: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
18
18
|
modified_by: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
19
|
}, z.core.$loose>>;
|
|
20
|
-
}, z.core.$
|
|
20
|
+
}, z.core.$loose>;
|
|
21
21
|
declare const erpnextGetDocument: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
22
22
|
name: string;
|
|
23
23
|
doctype: string;
|
|
@@ -17,7 +17,7 @@ declare const ErpnextGetDocumentOutput: z.ZodObject<{
|
|
|
17
17
|
docstatus: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
18
18
|
modified_by: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
19
|
}, z.core.$loose>>;
|
|
20
|
-
}, z.core.$
|
|
20
|
+
}, z.core.$loose>;
|
|
21
21
|
declare const erpnextGetDocument: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
22
22
|
name: string;
|
|
23
23
|
doctype: string;
|
|
@@ -26,7 +26,7 @@ const erpnextGetDocument = action("ERPNEXT_GET_DOCUMENT", {
|
|
|
26
26
|
name: "Get Document",
|
|
27
27
|
description: "Tool to retrieve a specific document by its DocType and name (ID). Returns the complete document with all fields. Use when you need to fetch details of a specific ERPNext document like Customer, Employee, Account, Sales Invoice, etc.",
|
|
28
28
|
input: ErpnextGetDocumentInput,
|
|
29
|
-
output: z.object({ data: ErpnextGetDocument_DocumentDataSchema.nullable() }).describe("Response model for retrieving a document from ERPNext.")
|
|
29
|
+
output: z.object({ data: ErpnextGetDocument_DocumentDataSchema.nullable() }).passthrough().describe("Response model for retrieving a document from ERPNext.")
|
|
30
30
|
});
|
|
31
31
|
//#endregion
|
|
32
32
|
export { erpnextGetDocument };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-document.mjs","names":[],"sources":["../../src/actions/get-document.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetDocumentInput = z.object({\n name: z.string().describe(\"The name (ID) of the document you'd like to receive. For example EMP001 (of type Employee).\"),\n fields: z.array(z.string()).describe(\"By default, only the \\\"name\\\" field is included in the listing. To add more fields, you can pass the fields param. For example, [\\\"name\\\", \\\"country\\\"]\").optional(),\n doctype: z.string().describe(\"The DocType you'd like to receive. For example Customer, Supplier, Employee, Account, Lead, Company, Sales Invoice, Purchase Invoice, Stock Entry, etc.\"),\n filters: z.array(z.array(z.union([z.string(), z.number().int(), z.number(), z.boolean()]))).describe(\"You can filter the listing using sql conditions. Each condition is an array of the format, [doctype, field, operator, value]. For example, [[\\\"Customer\\\", \\\"country\\\", \\\"=\\\", \\\"India\\\"]]\").optional(),\n}).describe(\"Request model for retrieving a specific document by DocType and name.\");\nconst ErpnextGetDocument_DocumentDataSchema = z.object({\n name: z.string().describe(\"Document name (ID)\").nullable().optional(),\n owner: z.string().describe(\"Owner of the document\").nullable().optional(),\n doctype: z.string().describe(\"Document type\").nullable().optional(),\n creation: z.string().describe(\"ISO timestamp when document was created\").nullable().optional(),\n modified: z.string().describe(\"ISO timestamp when document was last modified\").nullable().optional(),\n docstatus: z.number().int().describe(\"Document status (0=Draft, 1=Submitted, 2=Cancelled)\").nullable().optional(),\n modified_by: z.string().describe(\"User who last modified the document\").nullable().optional(),\n}).passthrough().describe(\"Represents the document data returned by ERPNext API.\");\nexport const ErpnextGetDocumentOutput = z.object({\n data: ErpnextGetDocument_DocumentDataSchema.nullable(),\n}).describe(\"Response model for retrieving a document from ERPNext.\");\n\nexport const erpnextGetDocument = action(\"ERPNEXT_GET_DOCUMENT\", {\n slug: \"erpnext-get-document\",\n name: \"Get Document\",\n description: \"Tool to retrieve a specific document by its DocType and name (ID). Returns the complete document with all fields. Use when you need to fetch details of a specific ERPNext document like Customer, Employee, Account, Sales Invoice, etc.\",\n input: ErpnextGetDocumentInput,\n output: ErpnextGetDocumentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0B,EAAE,OAAO;CAC9C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6FAA6F;CACvH,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,yJAAyJ,CAAC,CAAC,SAAS;CACzM,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yJAAyJ;CACtL,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;EAAC,EAAE,OAAO;EAAG,EAAE,OAAO,CAAC,CAAC,IAAI;EAAG,EAAE,OAAO;EAAG,EAAE,QAAQ;CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,4LAA4L,CAAC,CAAC,SAAS;AAC9S,CAAC,CAAC,CAAC,SAAS,uEAAuE;AACnF,MAAM,wCAAwC,EAAE,OAAO;CACrD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAAuD;AAKjF,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATsC,EAAE,OAAO,EAC/C,MAAM,sCAAsC,SAAS,EACvD,CAAC,CAAC,CAAC,SAAS,
|
|
1
|
+
{"version":3,"file":"get-document.mjs","names":[],"sources":["../../src/actions/get-document.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetDocumentInput = z.object({\n name: z.string().describe(\"The name (ID) of the document you'd like to receive. For example EMP001 (of type Employee).\"),\n fields: z.array(z.string()).describe(\"By default, only the \\\"name\\\" field is included in the listing. To add more fields, you can pass the fields param. For example, [\\\"name\\\", \\\"country\\\"]\").optional(),\n doctype: z.string().describe(\"The DocType you'd like to receive. For example Customer, Supplier, Employee, Account, Lead, Company, Sales Invoice, Purchase Invoice, Stock Entry, etc.\"),\n filters: z.array(z.array(z.union([z.string(), z.number().int(), z.number(), z.boolean()]))).describe(\"You can filter the listing using sql conditions. Each condition is an array of the format, [doctype, field, operator, value]. For example, [[\\\"Customer\\\", \\\"country\\\", \\\"=\\\", \\\"India\\\"]]\").optional(),\n}).describe(\"Request model for retrieving a specific document by DocType and name.\");\nconst ErpnextGetDocument_DocumentDataSchema = z.object({\n name: z.string().describe(\"Document name (ID)\").nullable().optional(),\n owner: z.string().describe(\"Owner of the document\").nullable().optional(),\n doctype: z.string().describe(\"Document type\").nullable().optional(),\n creation: z.string().describe(\"ISO timestamp when document was created\").nullable().optional(),\n modified: z.string().describe(\"ISO timestamp when document was last modified\").nullable().optional(),\n docstatus: z.number().int().describe(\"Document status (0=Draft, 1=Submitted, 2=Cancelled)\").nullable().optional(),\n modified_by: z.string().describe(\"User who last modified the document\").nullable().optional(),\n}).passthrough().describe(\"Represents the document data returned by ERPNext API.\");\nexport const ErpnextGetDocumentOutput = z.object({\n data: ErpnextGetDocument_DocumentDataSchema.nullable(),\n}).passthrough().describe(\"Response model for retrieving a document from ERPNext.\");\n\nexport const erpnextGetDocument = action(\"ERPNEXT_GET_DOCUMENT\", {\n slug: \"erpnext-get-document\",\n name: \"Get Document\",\n description: \"Tool to retrieve a specific document by its DocType and name (ID). Returns the complete document with all fields. Use when you need to fetch details of a specific ERPNext document like Customer, Employee, Account, Sales Invoice, etc.\",\n input: ErpnextGetDocumentInput,\n output: ErpnextGetDocumentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0B,EAAE,OAAO;CAC9C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6FAA6F;CACvH,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,yJAAyJ,CAAC,CAAC,SAAS;CACzM,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yJAAyJ;CACtL,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;EAAC,EAAE,OAAO;EAAG,EAAE,OAAO,CAAC,CAAC,IAAI;EAAG,EAAE,OAAO;EAAG,EAAE,QAAQ;CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,4LAA4L,CAAC,CAAC,SAAS;AAC9S,CAAC,CAAC,CAAC,SAAS,uEAAuE;AACnF,MAAM,wCAAwC,EAAE,OAAO;CACrD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAAuD;AAKjF,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATsC,EAAE,OAAO,EAC/C,MAAM,sCAAsC,SAAS,EACvD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wDAOhB;AACV,CAAC"}
|
|
@@ -6,7 +6,7 @@ const ErpnextGetExchangeRateInput = zod.z.object({
|
|
|
6
6
|
from_currency: zod.z.string().describe("Source currency code in ISO 4217 format (e.g., 'USD', 'EUR', 'GBP'). This is the currency you are converting from."),
|
|
7
7
|
transaction_date: zod.z.string().describe("Optional date for the exchange rate in YYYY-MM-DD format. If not provided, the current date's exchange rate will be used.").optional()
|
|
8
8
|
}).describe("Request model for getting currency exchange rate between two currencies.");
|
|
9
|
-
const ErpnextGetExchangeRateOutput = zod.z.object({ message: zod.z.number().describe("The exchange rate from source currency to target currency. This represents how much 1 unit of from_currency equals in to_currency.").nullable() }).describe("Response model containing the exchange rate.");
|
|
9
|
+
const ErpnextGetExchangeRateOutput = zod.z.object({ message: zod.z.number().describe("The exchange rate from source currency to target currency. This represents how much 1 unit of from_currency equals in to_currency.").nullable() }).passthrough().describe("Response model containing the exchange rate.");
|
|
10
10
|
const erpnextGetExchangeRate = require_action.action("ERPNEXT_GET_EXCHANGE_RATE", {
|
|
11
11
|
slug: "erpnext-get-exchange-rate",
|
|
12
12
|
name: "Get Exchange Rate",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-exchange-rate.cjs","names":["z","action"],"sources":["../../src/actions/get-exchange-rate.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetExchangeRateInput = z.object({\n to_currency: z.string().describe(\"Target currency code in ISO 4217 format (e.g., 'EUR', 'USD', 'JPY'). This is the currency you are converting to.\"),\n from_currency: z.string().describe(\"Source currency code in ISO 4217 format (e.g., 'USD', 'EUR', 'GBP'). This is the currency you are converting from.\"),\n transaction_date: z.string().describe(\"Optional date for the exchange rate in YYYY-MM-DD format. If not provided, the current date's exchange rate will be used.\").optional(),\n}).describe(\"Request model for getting currency exchange rate between two currencies.\");\nexport const ErpnextGetExchangeRateOutput = z.object({\n message: z.number().describe(\"The exchange rate from source currency to target currency. This represents how much 1 unit of from_currency equals in to_currency.\").nullable(),\n}).describe(\"Response model containing the exchange rate.\");\n\nexport const erpnextGetExchangeRate = action(\"ERPNEXT_GET_EXCHANGE_RATE\", {\n slug: \"erpnext-get-exchange-rate\",\n name: \"Get Exchange Rate\",\n description: \"Tool to get the currency exchange rate between two currencies in ERPNext. Use when you need to convert amounts between different currencies or check current exchange rates.\",\n input: ErpnextGetExchangeRateInput,\n output: ErpnextGetExchangeRateOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kHAAkH;CACnJ,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH;CACvJ,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2HAA2H,CAAC,CAAC,SAAS;AAC9K,CAAC,CAAC,CAAC,SAAS,0EAA0E;AACtF,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oIAAoI,CAAC,CAAC,SAAS,EAC9K,CAAC,CAAC,CAAC,SAAS,8CAA8C;
|
|
1
|
+
{"version":3,"file":"get-exchange-rate.cjs","names":["z","action"],"sources":["../../src/actions/get-exchange-rate.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetExchangeRateInput = z.object({\n to_currency: z.string().describe(\"Target currency code in ISO 4217 format (e.g., 'EUR', 'USD', 'JPY'). This is the currency you are converting to.\"),\n from_currency: z.string().describe(\"Source currency code in ISO 4217 format (e.g., 'USD', 'EUR', 'GBP'). This is the currency you are converting from.\"),\n transaction_date: z.string().describe(\"Optional date for the exchange rate in YYYY-MM-DD format. If not provided, the current date's exchange rate will be used.\").optional(),\n}).describe(\"Request model for getting currency exchange rate between two currencies.\");\nexport const ErpnextGetExchangeRateOutput = z.object({\n message: z.number().describe(\"The exchange rate from source currency to target currency. This represents how much 1 unit of from_currency equals in to_currency.\").nullable(),\n}).passthrough().describe(\"Response model containing the exchange rate.\");\n\nexport const erpnextGetExchangeRate = action(\"ERPNEXT_GET_EXCHANGE_RATE\", {\n slug: \"erpnext-get-exchange-rate\",\n name: \"Get Exchange Rate\",\n description: \"Tool to get the currency exchange rate between two currencies in ERPNext. Use when you need to convert amounts between different currencies or check current exchange rates.\",\n input: ErpnextGetExchangeRateInput,\n output: ErpnextGetExchangeRateOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kHAAkH;CACnJ,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH;CACvJ,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2HAA2H,CAAC,CAAC,SAAS;AAC9K,CAAC,CAAC,CAAC,SAAS,0EAA0E;AACtF,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oIAAoI,CAAC,CAAC,SAAS,EAC9K,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAA8C;AAExE,MAAa,yBAAyBC,eAAAA,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -8,7 +8,7 @@ declare const ErpnextGetExchangeRateInput: z.ZodObject<{
|
|
|
8
8
|
}, z.core.$strip>;
|
|
9
9
|
declare const ErpnextGetExchangeRateOutput: z.ZodObject<{
|
|
10
10
|
message: z.ZodNullable<z.ZodNumber>;
|
|
11
|
-
}, z.core.$
|
|
11
|
+
}, z.core.$loose>;
|
|
12
12
|
declare const erpnextGetExchangeRate: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
13
13
|
to_currency: string;
|
|
14
14
|
from_currency: string;
|
|
@@ -8,7 +8,7 @@ declare const ErpnextGetExchangeRateInput: z.ZodObject<{
|
|
|
8
8
|
}, z.core.$strip>;
|
|
9
9
|
declare const ErpnextGetExchangeRateOutput: z.ZodObject<{
|
|
10
10
|
message: z.ZodNullable<z.ZodNumber>;
|
|
11
|
-
}, z.core.$
|
|
11
|
+
}, z.core.$loose>;
|
|
12
12
|
declare const erpnextGetExchangeRate: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
13
13
|
to_currency: string;
|
|
14
14
|
from_currency: string;
|
|
@@ -9,7 +9,7 @@ const erpnextGetExchangeRate = action("ERPNEXT_GET_EXCHANGE_RATE", {
|
|
|
9
9
|
from_currency: z.string().describe("Source currency code in ISO 4217 format (e.g., 'USD', 'EUR', 'GBP'). This is the currency you are converting from."),
|
|
10
10
|
transaction_date: z.string().describe("Optional date for the exchange rate in YYYY-MM-DD format. If not provided, the current date's exchange rate will be used.").optional()
|
|
11
11
|
}).describe("Request model for getting currency exchange rate between two currencies."),
|
|
12
|
-
output: z.object({ message: z.number().describe("The exchange rate from source currency to target currency. This represents how much 1 unit of from_currency equals in to_currency.").nullable() }).describe("Response model containing the exchange rate.")
|
|
12
|
+
output: z.object({ message: z.number().describe("The exchange rate from source currency to target currency. This represents how much 1 unit of from_currency equals in to_currency.").nullable() }).passthrough().describe("Response model containing the exchange rate.")
|
|
13
13
|
});
|
|
14
14
|
//#endregion
|
|
15
15
|
export { erpnextGetExchangeRate };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-exchange-rate.mjs","names":[],"sources":["../../src/actions/get-exchange-rate.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetExchangeRateInput = z.object({\n to_currency: z.string().describe(\"Target currency code in ISO 4217 format (e.g., 'EUR', 'USD', 'JPY'). This is the currency you are converting to.\"),\n from_currency: z.string().describe(\"Source currency code in ISO 4217 format (e.g., 'USD', 'EUR', 'GBP'). This is the currency you are converting from.\"),\n transaction_date: z.string().describe(\"Optional date for the exchange rate in YYYY-MM-DD format. If not provided, the current date's exchange rate will be used.\").optional(),\n}).describe(\"Request model for getting currency exchange rate between two currencies.\");\nexport const ErpnextGetExchangeRateOutput = z.object({\n message: z.number().describe(\"The exchange rate from source currency to target currency. This represents how much 1 unit of from_currency equals in to_currency.\").nullable(),\n}).describe(\"Response model containing the exchange rate.\");\n\nexport const erpnextGetExchangeRate = action(\"ERPNEXT_GET_EXCHANGE_RATE\", {\n slug: \"erpnext-get-exchange-rate\",\n name: \"Get Exchange Rate\",\n description: \"Tool to get the currency exchange rate between two currencies in ERPNext. Use when you need to convert amounts between different currencies or check current exchange rates.\",\n input: ErpnextGetExchangeRateInput,\n output: ErpnextGetExchangeRateOutput,\n});\n"],"mappings":";;AAaA,MAAa,yBAAyB,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAbyC,EAAE,OAAO;EAClD,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,kHAAkH;EACnJ,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH;EACvJ,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,2HAA2H,CAAC,CAAC,SAAS;CAC9K,CAAC,CAAC,CAAC,SAAS,0EASH;CACP,QAT0C,EAAE,OAAO,EACnD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,oIAAoI,CAAC,CAAC,SAAS,EAC9K,CAAC,CAAC,CAAC,SAAS,
|
|
1
|
+
{"version":3,"file":"get-exchange-rate.mjs","names":[],"sources":["../../src/actions/get-exchange-rate.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetExchangeRateInput = z.object({\n to_currency: z.string().describe(\"Target currency code in ISO 4217 format (e.g., 'EUR', 'USD', 'JPY'). This is the currency you are converting to.\"),\n from_currency: z.string().describe(\"Source currency code in ISO 4217 format (e.g., 'USD', 'EUR', 'GBP'). This is the currency you are converting from.\"),\n transaction_date: z.string().describe(\"Optional date for the exchange rate in YYYY-MM-DD format. If not provided, the current date's exchange rate will be used.\").optional(),\n}).describe(\"Request model for getting currency exchange rate between two currencies.\");\nexport const ErpnextGetExchangeRateOutput = z.object({\n message: z.number().describe(\"The exchange rate from source currency to target currency. This represents how much 1 unit of from_currency equals in to_currency.\").nullable(),\n}).passthrough().describe(\"Response model containing the exchange rate.\");\n\nexport const erpnextGetExchangeRate = action(\"ERPNEXT_GET_EXCHANGE_RATE\", {\n slug: \"erpnext-get-exchange-rate\",\n name: \"Get Exchange Rate\",\n description: \"Tool to get the currency exchange rate between two currencies in ERPNext. Use when you need to convert amounts between different currencies or check current exchange rates.\",\n input: ErpnextGetExchangeRateInput,\n output: ErpnextGetExchangeRateOutput,\n});\n"],"mappings":";;AAaA,MAAa,yBAAyB,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAbyC,EAAE,OAAO;EAClD,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,kHAAkH;EACnJ,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH;EACvJ,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,2HAA2H,CAAC,CAAC,SAAS;CAC9K,CAAC,CAAC,CAAC,SAAS,0EASH;CACP,QAT0C,EAAE,OAAO,EACnD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,oIAAoI,CAAC,CAAC,SAAS,EAC9K,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAOhB;AACV,CAAC"}
|
|
@@ -9,8 +9,8 @@ const ErpnextGetFiscalYear_FiscalYearInfoSchema = zod.z.object({
|
|
|
9
9
|
name: zod.z.string().describe("Fiscal year name (e.g., '2026', 'FY 2023-24')").nullable(),
|
|
10
10
|
year_end_date: zod.z.string().describe("End date of the fiscal year in YYYY-MM-DD format").nullable(),
|
|
11
11
|
year_start_date: zod.z.string().describe("Start date of the fiscal year in YYYY-MM-DD format").nullable()
|
|
12
|
-
}).describe("Fiscal year information.");
|
|
13
|
-
const ErpnextGetFiscalYearOutput = zod.z.object({ message: zod.z.union([ErpnextGetFiscalYear_FiscalYearInfoSchema, zod.z.array(zod.z.string())]) }).describe("Response model containing fiscal year information.");
|
|
12
|
+
}).passthrough().describe("Fiscal year information.");
|
|
13
|
+
const ErpnextGetFiscalYearOutput = zod.z.object({ message: zod.z.union([ErpnextGetFiscalYear_FiscalYearInfoSchema, zod.z.array(zod.z.string())]) }).passthrough().describe("Response model containing fiscal year information.");
|
|
14
14
|
const erpnextGetFiscalYear = require_action.action("ERPNEXT_GET_FISCAL_YEAR", {
|
|
15
15
|
slug: "erpnext-get-fiscal-year",
|
|
16
16
|
name: "Get Fiscal Year",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-fiscal-year.cjs","names":["z","action"],"sources":["../../src/actions/get-fiscal-year.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetFiscalYearInput = z.object({\n date: z.string().describe(\"Date to check for fiscal year in YYYY-MM-DD format. If not provided, the current date will be used.\").optional(),\n company: z.string().describe(\"Company name to get fiscal year for. If not provided, the default company will be used.\").optional(),\n}).describe(\"Request model for getting fiscal year information for a given date.\");\nconst ErpnextGetFiscalYear_FiscalYearInfoSchema = z.object({\n name: z.string().describe(\"Fiscal year name (e.g., '2026', 'FY 2023-24')\").nullable(),\n year_end_date: z.string().describe(\"End date of the fiscal year in YYYY-MM-DD format\").nullable(),\n year_start_date: z.string().describe(\"Start date of the fiscal year in YYYY-MM-DD format\").nullable(),\n}).describe(\"Fiscal year information.\");\nexport const ErpnextGetFiscalYearOutput = z.object({\n message: z.union([ErpnextGetFiscalYear_FiscalYearInfoSchema, z.array(z.string())]),\n}).describe(\"Response model containing fiscal year information.\");\n\nexport const erpnextGetFiscalYear = action(\"ERPNEXT_GET_FISCAL_YEAR\", {\n slug: \"erpnext-get-fiscal-year\",\n name: \"Get Fiscal Year\",\n description: \"Tool to get fiscal year information for a given date in ERPNext. Use when you need to determine which fiscal year a specific date falls into or retrieve fiscal year boundaries.\",\n input: ErpnextGetFiscalYearInput,\n output: ErpnextGetFiscalYearOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS;CAC1I,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS;AACnI,CAAC,CAAC,CAAC,SAAS,qEAAqE;AACjF,MAAM,4CAA4CA,IAAAA,EAAE,OAAO;CACzD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACpF,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CAChG,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,SAAS,0BAA0B;
|
|
1
|
+
{"version":3,"file":"get-fiscal-year.cjs","names":["z","action"],"sources":["../../src/actions/get-fiscal-year.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetFiscalYearInput = z.object({\n date: z.string().describe(\"Date to check for fiscal year in YYYY-MM-DD format. If not provided, the current date will be used.\").optional(),\n company: z.string().describe(\"Company name to get fiscal year for. If not provided, the default company will be used.\").optional(),\n}).describe(\"Request model for getting fiscal year information for a given date.\");\nconst ErpnextGetFiscalYear_FiscalYearInfoSchema = z.object({\n name: z.string().describe(\"Fiscal year name (e.g., '2026', 'FY 2023-24')\").nullable(),\n year_end_date: z.string().describe(\"End date of the fiscal year in YYYY-MM-DD format\").nullable(),\n year_start_date: z.string().describe(\"Start date of the fiscal year in YYYY-MM-DD format\").nullable(),\n}).passthrough().describe(\"Fiscal year information.\");\nexport const ErpnextGetFiscalYearOutput = z.object({\n message: z.union([ErpnextGetFiscalYear_FiscalYearInfoSchema, z.array(z.string())]),\n}).passthrough().describe(\"Response model containing fiscal year information.\");\n\nexport const erpnextGetFiscalYear = action(\"ERPNEXT_GET_FISCAL_YEAR\", {\n slug: \"erpnext-get-fiscal-year\",\n name: \"Get Fiscal Year\",\n description: \"Tool to get fiscal year information for a given date in ERPNext. Use when you need to determine which fiscal year a specific date falls into or retrieve fiscal year boundaries.\",\n input: ErpnextGetFiscalYearInput,\n output: ErpnextGetFiscalYearOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS;CAC1I,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS;AACnI,CAAC,CAAC,CAAC,SAAS,qEAAqE;AACjF,MAAM,4CAA4CA,IAAAA,EAAE,OAAO;CACzD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACpF,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CAChG,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0BAA0B;AACpD,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,SAASA,IAAAA,EAAE,MAAM,CAAC,2CAA2CA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,EACnF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAAoD;AAE9E,MAAa,uBAAuBC,eAAAA,OAAO,2BAA2B;CACpE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -10,8 +10,8 @@ declare const ErpnextGetFiscalYearOutput: z.ZodObject<{
|
|
|
10
10
|
name: z.ZodNullable<z.ZodString>;
|
|
11
11
|
year_end_date: z.ZodNullable<z.ZodString>;
|
|
12
12
|
year_start_date: z.ZodNullable<z.ZodString>;
|
|
13
|
-
}, z.core.$
|
|
14
|
-
}, z.core.$
|
|
13
|
+
}, z.core.$loose>, z.ZodArray<z.ZodString>]>;
|
|
14
|
+
}, z.core.$loose>;
|
|
15
15
|
declare const erpnextGetFiscalYear: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
16
16
|
date?: string | undefined;
|
|
17
17
|
company?: string | undefined;
|
|
@@ -10,8 +10,8 @@ declare const ErpnextGetFiscalYearOutput: z.ZodObject<{
|
|
|
10
10
|
name: z.ZodNullable<z.ZodString>;
|
|
11
11
|
year_end_date: z.ZodNullable<z.ZodString>;
|
|
12
12
|
year_start_date: z.ZodNullable<z.ZodString>;
|
|
13
|
-
}, z.core.$
|
|
14
|
-
}, z.core.$
|
|
13
|
+
}, z.core.$loose>, z.ZodArray<z.ZodString>]>;
|
|
14
|
+
}, z.core.$loose>;
|
|
15
15
|
declare const erpnextGetFiscalYear: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
16
16
|
date?: string | undefined;
|
|
17
17
|
company?: string | undefined;
|
|
@@ -9,13 +9,13 @@ const ErpnextGetFiscalYear_FiscalYearInfoSchema = z.object({
|
|
|
9
9
|
name: z.string().describe("Fiscal year name (e.g., '2026', 'FY 2023-24')").nullable(),
|
|
10
10
|
year_end_date: z.string().describe("End date of the fiscal year in YYYY-MM-DD format").nullable(),
|
|
11
11
|
year_start_date: z.string().describe("Start date of the fiscal year in YYYY-MM-DD format").nullable()
|
|
12
|
-
}).describe("Fiscal year information.");
|
|
12
|
+
}).passthrough().describe("Fiscal year information.");
|
|
13
13
|
const erpnextGetFiscalYear = action("ERPNEXT_GET_FISCAL_YEAR", {
|
|
14
14
|
slug: "erpnext-get-fiscal-year",
|
|
15
15
|
name: "Get Fiscal Year",
|
|
16
16
|
description: "Tool to get fiscal year information for a given date in ERPNext. Use when you need to determine which fiscal year a specific date falls into or retrieve fiscal year boundaries.",
|
|
17
17
|
input: ErpnextGetFiscalYearInput,
|
|
18
|
-
output: z.object({ message: z.union([ErpnextGetFiscalYear_FiscalYearInfoSchema, z.array(z.string())]) }).describe("Response model containing fiscal year information.")
|
|
18
|
+
output: z.object({ message: z.union([ErpnextGetFiscalYear_FiscalYearInfoSchema, z.array(z.string())]) }).passthrough().describe("Response model containing fiscal year information.")
|
|
19
19
|
});
|
|
20
20
|
//#endregion
|
|
21
21
|
export { erpnextGetFiscalYear };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-fiscal-year.mjs","names":[],"sources":["../../src/actions/get-fiscal-year.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetFiscalYearInput = z.object({\n date: z.string().describe(\"Date to check for fiscal year in YYYY-MM-DD format. If not provided, the current date will be used.\").optional(),\n company: z.string().describe(\"Company name to get fiscal year for. If not provided, the default company will be used.\").optional(),\n}).describe(\"Request model for getting fiscal year information for a given date.\");\nconst ErpnextGetFiscalYear_FiscalYearInfoSchema = z.object({\n name: z.string().describe(\"Fiscal year name (e.g., '2026', 'FY 2023-24')\").nullable(),\n year_end_date: z.string().describe(\"End date of the fiscal year in YYYY-MM-DD format\").nullable(),\n year_start_date: z.string().describe(\"Start date of the fiscal year in YYYY-MM-DD format\").nullable(),\n}).describe(\"Fiscal year information.\");\nexport const ErpnextGetFiscalYearOutput = z.object({\n message: z.union([ErpnextGetFiscalYear_FiscalYearInfoSchema, z.array(z.string())]),\n}).describe(\"Response model containing fiscal year information.\");\n\nexport const erpnextGetFiscalYear = action(\"ERPNEXT_GET_FISCAL_YEAR\", {\n slug: \"erpnext-get-fiscal-year\",\n name: \"Get Fiscal Year\",\n description: \"Tool to get fiscal year information for a given date in ERPNext. Use when you need to determine which fiscal year a specific date falls into or retrieve fiscal year boundaries.\",\n input: ErpnextGetFiscalYearInput,\n output: ErpnextGetFiscalYearOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4B,EAAE,OAAO;CAChD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS;CAC1I,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS;AACnI,CAAC,CAAC,CAAC,SAAS,qEAAqE;AACjF,MAAM,4CAA4C,EAAE,OAAO;CACzD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACpF,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CAChG,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,SAAS,0BAA0B;
|
|
1
|
+
{"version":3,"file":"get-fiscal-year.mjs","names":[],"sources":["../../src/actions/get-fiscal-year.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetFiscalYearInput = z.object({\n date: z.string().describe(\"Date to check for fiscal year in YYYY-MM-DD format. If not provided, the current date will be used.\").optional(),\n company: z.string().describe(\"Company name to get fiscal year for. If not provided, the default company will be used.\").optional(),\n}).describe(\"Request model for getting fiscal year information for a given date.\");\nconst ErpnextGetFiscalYear_FiscalYearInfoSchema = z.object({\n name: z.string().describe(\"Fiscal year name (e.g., '2026', 'FY 2023-24')\").nullable(),\n year_end_date: z.string().describe(\"End date of the fiscal year in YYYY-MM-DD format\").nullable(),\n year_start_date: z.string().describe(\"Start date of the fiscal year in YYYY-MM-DD format\").nullable(),\n}).passthrough().describe(\"Fiscal year information.\");\nexport const ErpnextGetFiscalYearOutput = z.object({\n message: z.union([ErpnextGetFiscalYear_FiscalYearInfoSchema, z.array(z.string())]),\n}).passthrough().describe(\"Response model containing fiscal year information.\");\n\nexport const erpnextGetFiscalYear = action(\"ERPNEXT_GET_FISCAL_YEAR\", {\n slug: \"erpnext-get-fiscal-year\",\n name: \"Get Fiscal Year\",\n description: \"Tool to get fiscal year information for a given date in ERPNext. Use when you need to determine which fiscal year a specific date falls into or retrieve fiscal year boundaries.\",\n input: ErpnextGetFiscalYearInput,\n output: ErpnextGetFiscalYearOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4B,EAAE,OAAO;CAChD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS;CAC1I,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS;AACnI,CAAC,CAAC,CAAC,SAAS,qEAAqE;AACjF,MAAM,4CAA4C,EAAE,OAAO;CACzD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACpF,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CAChG,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0BAA0B;AAKpD,MAAa,uBAAuB,OAAO,2BAA2B;CACpE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATwC,EAAE,OAAO,EACjD,SAAS,EAAE,MAAM,CAAC,2CAA2C,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,EACnF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAOhB;AACV,CAAC"}
|
|
@@ -2,7 +2,7 @@ const require_action = require("../action.cjs");
|
|
|
2
2
|
let zod = require("zod");
|
|
3
3
|
//#region src/actions/get-framework-version.ts
|
|
4
4
|
const ErpnextGetFrameworkVersionInput = zod.z.object({}).describe("Request model for getting Frappe framework version.\nThis action requires no parameters.");
|
|
5
|
-
const ErpnextGetFrameworkVersionOutput = zod.z.object({ message: zod.z.
|
|
5
|
+
const ErpnextGetFrameworkVersionOutput = zod.z.object({ message: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Dictionary mapping app names to their version information. Always includes 'frappe' and may include 'erpnext' and other installed apps.") }).passthrough().describe("Response model containing version information for all installed apps.");
|
|
6
6
|
const erpnextGetFrameworkVersion = require_action.action("ERPNEXT_GET_FRAMEWORK_VERSION", {
|
|
7
7
|
slug: "erpnext-get-framework-version",
|
|
8
8
|
name: "Get Framework Version",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-framework-version.cjs","names":["z","action"],"sources":["../../src/actions/get-framework-version.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetFrameworkVersionInput = z.object({}).describe(\"Request model for getting Frappe framework version.\\nThis action requires no parameters.\");\nexport const ErpnextGetFrameworkVersionOutput = z.object({\n message: z.
|
|
1
|
+
{"version":3,"file":"get-framework-version.cjs","names":["z","action"],"sources":["../../src/actions/get-framework-version.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetFrameworkVersionInput = z.object({}).describe(\"Request model for getting Frappe framework version.\\nThis action requires no parameters.\");\nexport const ErpnextGetFrameworkVersionOutput = z.object({\n message: z.record(z.string(), z.unknown()).describe(\"Dictionary mapping app names to their version information. Always includes 'frappe' and may include 'erpnext' and other installed apps.\"),\n}).passthrough().describe(\"Response model containing version information for all installed apps.\");\n\nexport const erpnextGetFrameworkVersion = action(\"ERPNEXT_GET_FRAMEWORK_VERSION\", {\n slug: \"erpnext-get-framework-version\",\n name: \"Get Framework Version\",\n description: \"Tool to get the Frappe framework version and all installed app versions. Use when you need to check the ERPNext/Frappe system version for compatibility or debugging purposes.\",\n input: ErpnextGetFrameworkVersionInput,\n output: ErpnextGetFrameworkVersionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,0FAA0F;AAC/J,MAAa,mCAAmCA,IAAAA,EAAE,OAAO,EACvD,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yIAAyI,EAC/L,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uEAAuE;AAEjG,MAAa,6BAA6BC,eAAAA,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -3,8 +3,8 @@ import { z } from "zod";
|
|
|
3
3
|
//#region src/actions/get-framework-version.d.ts
|
|
4
4
|
declare const ErpnextGetFrameworkVersionInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
5
|
declare const ErpnextGetFrameworkVersionOutput: z.ZodObject<{
|
|
6
|
-
message: z.
|
|
7
|
-
}, z.core.$
|
|
6
|
+
message: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
7
|
+
}, z.core.$loose>;
|
|
8
8
|
declare const erpnextGetFrameworkVersion: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { erpnextGetFrameworkVersion };
|
|
@@ -3,8 +3,8 @@ import { z } from "zod";
|
|
|
3
3
|
//#region src/actions/get-framework-version.d.ts
|
|
4
4
|
declare const ErpnextGetFrameworkVersionInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
5
|
declare const ErpnextGetFrameworkVersionOutput: z.ZodObject<{
|
|
6
|
-
message: z.
|
|
7
|
-
}, z.core.$
|
|
6
|
+
message: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
7
|
+
}, z.core.$loose>;
|
|
8
8
|
declare const erpnextGetFrameworkVersion: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { erpnextGetFrameworkVersion };
|