@keystrokehq/erpnext 0.1.2 → 0.1.4
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/dist/catalog.cjs +3 -3
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +3 -3
- package/dist/catalog.d.mts +3 -3
- package/dist/catalog.mjs +3 -3
- package/dist/catalog.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -8,8 +8,8 @@ declare const ErpnextListDoctypesInput: z.ZodObject<{
|
|
|
8
8
|
limit_page_length: z.ZodOptional<z.ZodNumber>;
|
|
9
9
|
}, z.core.$strip>;
|
|
10
10
|
declare const ErpnextListDoctypesOutput: z.ZodObject<{
|
|
11
|
-
data: z.ZodOptional<z.ZodNullable<z.ZodArray<z.
|
|
12
|
-
}, z.core.$
|
|
11
|
+
data: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
12
|
+
}, z.core.$loose>;
|
|
13
13
|
declare const erpnextListDoctypes: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
14
14
|
fields?: string[] | undefined;
|
|
15
15
|
filters?: (string | number | boolean)[][] | undefined;
|
|
@@ -15,7 +15,7 @@ const erpnextListDoctypes = action("ERPNEXT_LIST_DOCTYPES", {
|
|
|
15
15
|
limit_start: z.number().int().describe("Starting offset for pagination. To request successive pages, pass a multiple of your limit_page_length. For example, to request the second page, pass limit_start as 20 (if limit_page_length is 20).").optional(),
|
|
16
16
|
limit_page_length: z.number().int().describe("Number of items to return per page. By default, listings are paginated with 20 items per page.").optional()
|
|
17
17
|
}).describe("Request model for listing DocTypes in ERPNext."),
|
|
18
|
-
output: z.object({ data: z.array(z.
|
|
18
|
+
output: z.object({ data: z.array(z.record(z.string(), z.unknown())).describe("List of DocType objects. Each object contains the requested fields (at minimum, the 'name' field).").nullable().optional() }).passthrough().describe("Response model for listing DocTypes in ERPNext.")
|
|
19
19
|
});
|
|
20
20
|
//#endregion
|
|
21
21
|
export { erpnextListDoctypes };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-doctypes.mjs","names":[],"sources":["../../src/actions/list-doctypes.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextListDoctypesInput = z.object({\n fields: z.array(z.string()).describe(\"Fields to include in the listing. By default, only the \\\"name\\\" field is included. Pass a list of field names to include additional fields, for example [\\\"name\\\", \\\"module\\\"].\").optional(),\n filters: z.array(z.array(z.union([z.string(), z.number().int(), z.number(), z.boolean()]))).describe(\"SQL conditions to filter the listing. Each condition is an array of the format [doctype, field, operator, value]. For example, [[\\\"DocType\\\", \\\"module\\\", \\\"=\\\", \\\"Core\\\"]] to filter DocTypes by module.\").optional(),\n limit_start: z.number().int().describe(\"Starting offset for pagination. To request successive pages, pass a multiple of your limit_page_length. For example, to request the second page, pass limit_start as 20 (if limit_page_length is 20).\").optional(),\n limit_page_length: z.number().int().describe(\"Number of items to return per page. By default, listings are paginated with 20 items per page.\").optional(),\n}).describe(\"Request model for listing DocTypes in ERPNext.\");\nexport const ErpnextListDoctypesOutput = z.object({\n data: z.array(z.
|
|
1
|
+
{"version":3,"file":"list-doctypes.mjs","names":[],"sources":["../../src/actions/list-doctypes.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextListDoctypesInput = z.object({\n fields: z.array(z.string()).describe(\"Fields to include in the listing. By default, only the \\\"name\\\" field is included. Pass a list of field names to include additional fields, for example [\\\"name\\\", \\\"module\\\"].\").optional(),\n filters: z.array(z.array(z.union([z.string(), z.number().int(), z.number(), z.boolean()]))).describe(\"SQL conditions to filter the listing. Each condition is an array of the format [doctype, field, operator, value]. For example, [[\\\"DocType\\\", \\\"module\\\", \\\"=\\\", \\\"Core\\\"]] to filter DocTypes by module.\").optional(),\n limit_start: z.number().int().describe(\"Starting offset for pagination. To request successive pages, pass a multiple of your limit_page_length. For example, to request the second page, pass limit_start as 20 (if limit_page_length is 20).\").optional(),\n limit_page_length: z.number().int().describe(\"Number of items to return per page. By default, listings are paginated with 20 items per page.\").optional(),\n}).describe(\"Request model for listing DocTypes in ERPNext.\");\nexport const ErpnextListDoctypesOutput = z.object({\n data: z.array(z.record(z.string(), z.unknown())).describe(\"List of DocType objects. Each object contains the requested fields (at minimum, the 'name' field).\").nullable().optional(),\n}).passthrough().describe(\"Response model for listing DocTypes in ERPNext.\");\n\nexport const erpnextListDoctypes = action(\"ERPNEXT_LIST_DOCTYPES\", {\n slug: \"erpnext-list-doctypes\",\n name: \"List DocTypes\",\n description: \"Tool to get a list of all DocTypes available in the ERPNext system. Use when you need to retrieve available DocTypes with optional filtering and pagination.\",\n input: ErpnextListDoctypesInput,\n output: ErpnextListDoctypesOutput,\n});\n"],"mappings":";;AAcA,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAdsC,EAAE,OAAO;EAC/C,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,iLAAiL,CAAC,CAAC,SAAS;EACjO,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;GAAC,EAAE,OAAO;GAAG,EAAE,OAAO,CAAC,CAAC,IAAI;GAAG,EAAE,OAAO;GAAG,EAAE,QAAQ;EAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,2MAA2M,CAAC,CAAC,SAAS;EAC3T,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uMAAuM,CAAC,CAAC,SAAS;EACzP,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS;CAC1J,CAAC,CAAC,CAAC,SAAS,gDASH;CACP,QATuC,EAAE,OAAO,EAChD,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACtL,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAOhB;AACV,CAAC"}
|
|
@@ -12,7 +12,7 @@ const ErpnextListDocumentsInput = zod.z.object({
|
|
|
12
12
|
limit_start: zod.z.number().int().default(0).describe("Offset for pagination. Pass a multiple of limit_page_length to request successive pages. For example, to request the second page with page length 20, pass 20.").optional(),
|
|
13
13
|
limit_page_length: zod.z.number().int().default(20).describe("Number of items to return per page. Default is 20.").optional()
|
|
14
14
|
}).describe("Request model for listing documents of a specific DocType.");
|
|
15
|
-
const ErpnextListDocumentsOutput = zod.z.object({ data: zod.z.array(zod.z.
|
|
15
|
+
const ErpnextListDocumentsOutput = zod.z.object({ data: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("List of documents. Each document contains at least the 'name' field, plus any additional fields requested via the 'fields' parameter.") }).passthrough().describe("Response model for listing documents.");
|
|
16
16
|
const erpnextListDocuments = require_action.action("ERPNEXT_LIST_DOCUMENTS", {
|
|
17
17
|
slug: "erpnext-list-documents",
|
|
18
18
|
name: "List ERPNext Documents",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-documents.cjs","names":["z","action"],"sources":["../../src/actions/list-documents.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextListDocumentsInput = z.object({\n fields: z.array(z.string()).describe(\"Fields to include in the response. By default, only the 'name' field is included. Pass a list of field names to retrieve additional fields. 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()]))).describe(\"SQL conditions to filter the listing. Each condition is an array of the format: [doctype, field, operator, value]. For example: [['Customer', 'country', '=', 'India']]\").optional(),\n limit_start: z.number().int().default(0).describe(\"Offset for pagination. Pass a multiple of limit_page_length to request successive pages. For example, to request the second page with page length 20, pass 20.\").optional(),\n limit_page_length: z.number().int().default(20).describe(\"Number of items to return per page. Default is 20.\").optional(),\n}).describe(\"Request model for listing documents of a specific DocType.\");\nexport const ErpnextListDocumentsOutput = z.object({\n data: z.array(z.
|
|
1
|
+
{"version":3,"file":"list-documents.cjs","names":["z","action"],"sources":["../../src/actions/list-documents.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextListDocumentsInput = z.object({\n fields: z.array(z.string()).describe(\"Fields to include in the response. By default, only the 'name' field is included. Pass a list of field names to retrieve additional fields. 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()]))).describe(\"SQL conditions to filter the listing. Each condition is an array of the format: [doctype, field, operator, value]. For example: [['Customer', 'country', '=', 'India']]\").optional(),\n limit_start: z.number().int().default(0).describe(\"Offset for pagination. Pass a multiple of limit_page_length to request successive pages. For example, to request the second page with page length 20, pass 20.\").optional(),\n limit_page_length: z.number().int().default(20).describe(\"Number of items to return per page. Default is 20.\").optional(),\n}).describe(\"Request model for listing documents of a specific DocType.\");\nexport const ErpnextListDocumentsOutput = z.object({\n data: z.array(z.record(z.string(), z.unknown())).describe(\"List of documents. Each document contains at least the 'name' field, plus any additional fields requested via the 'fields' parameter.\"),\n}).passthrough().describe(\"Response model for listing documents.\");\n\nexport const erpnextListDocuments = action(\"ERPNEXT_LIST_DOCUMENTS\", {\n slug: \"erpnext-list-documents\",\n name: \"List ERPNext Documents\",\n description: \"Tool to list documents of a specific DocType from ERPNext. Returns paginated results (default 20 items). Use when you need to retrieve multiple documents, with support for filtering, field selection, and pagination.\",\n input: ErpnextListDocumentsInput,\n output: ErpnextListDocumentsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8KAA8K,CAAC,CAAC,SAAS;CAC9N,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0JAA0J;CACvL,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;CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,yKAAyK,CAAC,CAAC,SAAS;CAC5Q,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,gKAAgK,CAAC,CAAC,SAAS;CAC7N,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;AAC1H,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,uIAAuI,EACnM,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AAEjE,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -9,8 +9,8 @@ declare const ErpnextListDocumentsInput: z.ZodObject<{
|
|
|
9
9
|
limit_page_length: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
10
10
|
}, z.core.$strip>;
|
|
11
11
|
declare const ErpnextListDocumentsOutput: z.ZodObject<{
|
|
12
|
-
data: z.ZodArray<z.
|
|
13
|
-
}, z.core.$
|
|
12
|
+
data: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
13
|
+
}, z.core.$loose>;
|
|
14
14
|
declare const erpnextListDocuments: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
15
15
|
doctype: string;
|
|
16
16
|
fields?: string[] | undefined;
|
|
@@ -9,8 +9,8 @@ declare const ErpnextListDocumentsInput: z.ZodObject<{
|
|
|
9
9
|
limit_page_length: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
10
10
|
}, z.core.$strip>;
|
|
11
11
|
declare const ErpnextListDocumentsOutput: z.ZodObject<{
|
|
12
|
-
data: z.ZodArray<z.
|
|
13
|
-
}, z.core.$
|
|
12
|
+
data: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
13
|
+
}, z.core.$loose>;
|
|
14
14
|
declare const erpnextListDocuments: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
15
15
|
doctype: string;
|
|
16
16
|
fields?: string[] | undefined;
|
|
@@ -15,7 +15,7 @@ const erpnextListDocuments = action("ERPNEXT_LIST_DOCUMENTS", {
|
|
|
15
15
|
limit_start: z.number().int().default(0).describe("Offset for pagination. Pass a multiple of limit_page_length to request successive pages. For example, to request the second page with page length 20, pass 20.").optional(),
|
|
16
16
|
limit_page_length: z.number().int().default(20).describe("Number of items to return per page. Default is 20.").optional()
|
|
17
17
|
}).describe("Request model for listing documents of a specific DocType."),
|
|
18
|
-
output: z.object({ data: z.array(z.
|
|
18
|
+
output: z.object({ data: z.array(z.record(z.string(), z.unknown())).describe("List of documents. Each document contains at least the 'name' field, plus any additional fields requested via the 'fields' parameter.") }).passthrough().describe("Response model for listing documents.")
|
|
19
19
|
});
|
|
20
20
|
//#endregion
|
|
21
21
|
export { erpnextListDocuments };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-documents.mjs","names":[],"sources":["../../src/actions/list-documents.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextListDocumentsInput = z.object({\n fields: z.array(z.string()).describe(\"Fields to include in the response. By default, only the 'name' field is included. Pass a list of field names to retrieve additional fields. 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()]))).describe(\"SQL conditions to filter the listing. Each condition is an array of the format: [doctype, field, operator, value]. For example: [['Customer', 'country', '=', 'India']]\").optional(),\n limit_start: z.number().int().default(0).describe(\"Offset for pagination. Pass a multiple of limit_page_length to request successive pages. For example, to request the second page with page length 20, pass 20.\").optional(),\n limit_page_length: z.number().int().default(20).describe(\"Number of items to return per page. Default is 20.\").optional(),\n}).describe(\"Request model for listing documents of a specific DocType.\");\nexport const ErpnextListDocumentsOutput = z.object({\n data: z.array(z.
|
|
1
|
+
{"version":3,"file":"list-documents.mjs","names":[],"sources":["../../src/actions/list-documents.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextListDocumentsInput = z.object({\n fields: z.array(z.string()).describe(\"Fields to include in the response. By default, only the 'name' field is included. Pass a list of field names to retrieve additional fields. 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()]))).describe(\"SQL conditions to filter the listing. Each condition is an array of the format: [doctype, field, operator, value]. For example: [['Customer', 'country', '=', 'India']]\").optional(),\n limit_start: z.number().int().default(0).describe(\"Offset for pagination. Pass a multiple of limit_page_length to request successive pages. For example, to request the second page with page length 20, pass 20.\").optional(),\n limit_page_length: z.number().int().default(20).describe(\"Number of items to return per page. Default is 20.\").optional(),\n}).describe(\"Request model for listing documents of a specific DocType.\");\nexport const ErpnextListDocumentsOutput = z.object({\n data: z.array(z.record(z.string(), z.unknown())).describe(\"List of documents. Each document contains at least the 'name' field, plus any additional fields requested via the 'fields' parameter.\"),\n}).passthrough().describe(\"Response model for listing documents.\");\n\nexport const erpnextListDocuments = action(\"ERPNEXT_LIST_DOCUMENTS\", {\n slug: \"erpnext-list-documents\",\n name: \"List ERPNext Documents\",\n description: \"Tool to list documents of a specific DocType from ERPNext. Returns paginated results (default 20 items). Use when you need to retrieve multiple documents, with support for filtering, field selection, and pagination.\",\n input: ErpnextListDocumentsInput,\n output: ErpnextListDocumentsOutput,\n});\n"],"mappings":";;AAeA,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAfuC,EAAE,OAAO;EAChD,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8KAA8K,CAAC,CAAC,SAAS;EAC9N,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,0JAA0J;EACvL,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;GAAC,EAAE,OAAO;GAAG,EAAE,OAAO,CAAC,CAAC,IAAI;GAAG,EAAE,OAAO;EAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,yKAAyK,CAAC,CAAC,SAAS;EAC5Q,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,gKAAgK,CAAC,CAAC,SAAS;EAC7N,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC1H,CAAC,CAAC,CAAC,SAAS,4DASH;CACP,QATwC,EAAE,OAAO,EACjD,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,uIAAuI,EACnM,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAOhB;AACV,CAAC"}
|
|
@@ -12,7 +12,7 @@ const ErpnextListEmployeesInput = zod.z.object({
|
|
|
12
12
|
limit_page_length: zod.z.number().int().default(20).describe("Number of records to return per page. Default is 20.").optional()
|
|
13
13
|
}).describe("Request model for listing Employee records from ERPNext.");
|
|
14
14
|
const ErpnextListEmployees_EmployeeRecordSchema = zod.z.object({ name: zod.z.string().describe("The unique identifier/name of the employee record").nullable() }).passthrough().describe("Model representing a single Employee record with dynamic fields.");
|
|
15
|
-
const ErpnextListEmployeesOutput = zod.z.object({ data: zod.z.array(ErpnextListEmployees_EmployeeRecordSchema).describe("List of employee records. Each record contains at minimum the 'name' field, and may include additional fields as requested.") }).describe("Response model for listing Employee records.");
|
|
15
|
+
const ErpnextListEmployeesOutput = zod.z.object({ data: zod.z.array(ErpnextListEmployees_EmployeeRecordSchema).describe("List of employee records. Each record contains at minimum the 'name' field, and may include additional fields as requested.") }).passthrough().describe("Response model for listing Employee records.");
|
|
16
16
|
const erpnextListEmployees = require_action.action("ERPNEXT_LIST_EMPLOYEES", {
|
|
17
17
|
slug: "erpnext-list-employees",
|
|
18
18
|
name: "List Employees",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-employees.cjs","names":["z","action"],"sources":["../../src/actions/list-employees.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextListEmployeesInput = z.object({\n fields: z.array(z.string()).describe(\"List of fields to include in the response. By default, only the 'name' field is included. Pass field names as a list to retrieve additional fields. For example: ['name', 'employee_name', 'department', 'designation']\").optional(),\n filters: z.array(z.array(z.union([z.string(), z.number().int(), z.number()]))).describe(\"SQL conditions to filter the listing. Each condition is an array of the format [doctype, field, operator, value]. For example: [['Employee', 'status', '=', 'Active']] to filter active employees only.\").optional(),\n limit_start: z.number().int().default(0).describe(\"Starting position for pagination. To request successive pages, pass a multiple of limit_page_length. For example, to request the second page with page size 20, pass limit_start=20.\").optional(),\n limit_page_length: z.number().int().default(20).describe(\"Number of records to return per page. Default is 20.\").optional(),\n}).describe(\"Request model for listing Employee records from ERPNext.\");\nconst ErpnextListEmployees_EmployeeRecordSchema = z.object({\n name: z.string().describe(\"The unique identifier/name of the employee record\").nullable(),\n}).passthrough().describe(\"Model representing a single Employee record with dynamic fields.\");\nexport const ErpnextListEmployeesOutput = z.object({\n data: z.array(ErpnextListEmployees_EmployeeRecordSchema).describe(\"List of employee records. Each record contains at minimum the 'name' field, and may include additional fields as requested.\"),\n}).describe(\"Response model for listing Employee records.\");\n\nexport const erpnextListEmployees = action(\"ERPNEXT_LIST_EMPLOYEES\", {\n slug: \"erpnext-list-employees\",\n name: \"List Employees\",\n description: \"Tool to retrieve a list of Employee records from ERPNext. Use when you need to fetch employee information with optional filtering and pagination.\",\n input: ErpnextListEmployeesInput,\n output: ErpnextListEmployeesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,yNAAyN,CAAC,CAAC,SAAS;CACzQ,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;CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,yMAAyM,CAAC,CAAC,SAAS;CAC5S,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,sLAAsL,CAAC,CAAC,SAAS;CACnP,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;AAC5H,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACtE,MAAM,4CAA4CA,IAAAA,EAAE,OAAO,EACzD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,EAC1F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kEAAkE;AAC5F,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,MAAMA,IAAAA,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,6HAA6H,EACjM,CAAC,CAAC,CAAC,SAAS,8CAA8C;
|
|
1
|
+
{"version":3,"file":"list-employees.cjs","names":["z","action"],"sources":["../../src/actions/list-employees.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextListEmployeesInput = z.object({\n fields: z.array(z.string()).describe(\"List of fields to include in the response. By default, only the 'name' field is included. Pass field names as a list to retrieve additional fields. For example: ['name', 'employee_name', 'department', 'designation']\").optional(),\n filters: z.array(z.array(z.union([z.string(), z.number().int(), z.number()]))).describe(\"SQL conditions to filter the listing. Each condition is an array of the format [doctype, field, operator, value]. For example: [['Employee', 'status', '=', 'Active']] to filter active employees only.\").optional(),\n limit_start: z.number().int().default(0).describe(\"Starting position for pagination. To request successive pages, pass a multiple of limit_page_length. For example, to request the second page with page size 20, pass limit_start=20.\").optional(),\n limit_page_length: z.number().int().default(20).describe(\"Number of records to return per page. Default is 20.\").optional(),\n}).describe(\"Request model for listing Employee records from ERPNext.\");\nconst ErpnextListEmployees_EmployeeRecordSchema = z.object({\n name: z.string().describe(\"The unique identifier/name of the employee record\").nullable(),\n}).passthrough().describe(\"Model representing a single Employee record with dynamic fields.\");\nexport const ErpnextListEmployeesOutput = z.object({\n data: z.array(ErpnextListEmployees_EmployeeRecordSchema).describe(\"List of employee records. Each record contains at minimum the 'name' field, and may include additional fields as requested.\"),\n}).passthrough().describe(\"Response model for listing Employee records.\");\n\nexport const erpnextListEmployees = action(\"ERPNEXT_LIST_EMPLOYEES\", {\n slug: \"erpnext-list-employees\",\n name: \"List Employees\",\n description: \"Tool to retrieve a list of Employee records from ERPNext. Use when you need to fetch employee information with optional filtering and pagination.\",\n input: ErpnextListEmployeesInput,\n output: ErpnextListEmployeesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,yNAAyN,CAAC,CAAC,SAAS;CACzQ,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;CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,yMAAyM,CAAC,CAAC,SAAS;CAC5S,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,sLAAsL,CAAC,CAAC,SAAS;CACnP,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;AAC5H,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACtE,MAAM,4CAA4CA,IAAAA,EAAE,OAAO,EACzD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,EAC1F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kEAAkE;AAC5F,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,MAAMA,IAAAA,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,6HAA6H,EACjM,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAA8C;AAExE,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -11,7 +11,7 @@ declare const ErpnextListEmployeesOutput: z.ZodObject<{
|
|
|
11
11
|
data: z.ZodArray<z.ZodObject<{
|
|
12
12
|
name: z.ZodNullable<z.ZodString>;
|
|
13
13
|
}, z.core.$loose>>;
|
|
14
|
-
}, z.core.$
|
|
14
|
+
}, z.core.$loose>;
|
|
15
15
|
declare const erpnextListEmployees: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
16
16
|
fields?: string[] | undefined;
|
|
17
17
|
filters?: (string | number)[][] | undefined;
|
|
@@ -11,7 +11,7 @@ declare const ErpnextListEmployeesOutput: z.ZodObject<{
|
|
|
11
11
|
data: z.ZodArray<z.ZodObject<{
|
|
12
12
|
name: z.ZodNullable<z.ZodString>;
|
|
13
13
|
}, z.core.$loose>>;
|
|
14
|
-
}, z.core.$
|
|
14
|
+
}, z.core.$loose>;
|
|
15
15
|
declare const erpnextListEmployees: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
16
16
|
fields?: string[] | undefined;
|
|
17
17
|
filters?: (string | number)[][] | undefined;
|
|
@@ -17,7 +17,7 @@ const erpnextListEmployees = action("ERPNEXT_LIST_EMPLOYEES", {
|
|
|
17
17
|
name: "List Employees",
|
|
18
18
|
description: "Tool to retrieve a list of Employee records from ERPNext. Use when you need to fetch employee information with optional filtering and pagination.",
|
|
19
19
|
input: ErpnextListEmployeesInput,
|
|
20
|
-
output: z.object({ data: z.array(ErpnextListEmployees_EmployeeRecordSchema).describe("List of employee records. Each record contains at minimum the 'name' field, and may include additional fields as requested.") }).describe("Response model for listing Employee records.")
|
|
20
|
+
output: z.object({ data: z.array(ErpnextListEmployees_EmployeeRecordSchema).describe("List of employee records. Each record contains at minimum the 'name' field, and may include additional fields as requested.") }).passthrough().describe("Response model for listing Employee records.")
|
|
21
21
|
});
|
|
22
22
|
//#endregion
|
|
23
23
|
export { erpnextListEmployees };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-employees.mjs","names":[],"sources":["../../src/actions/list-employees.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextListEmployeesInput = z.object({\n fields: z.array(z.string()).describe(\"List of fields to include in the response. By default, only the 'name' field is included. Pass field names as a list to retrieve additional fields. For example: ['name', 'employee_name', 'department', 'designation']\").optional(),\n filters: z.array(z.array(z.union([z.string(), z.number().int(), z.number()]))).describe(\"SQL conditions to filter the listing. Each condition is an array of the format [doctype, field, operator, value]. For example: [['Employee', 'status', '=', 'Active']] to filter active employees only.\").optional(),\n limit_start: z.number().int().default(0).describe(\"Starting position for pagination. To request successive pages, pass a multiple of limit_page_length. For example, to request the second page with page size 20, pass limit_start=20.\").optional(),\n limit_page_length: z.number().int().default(20).describe(\"Number of records to return per page. Default is 20.\").optional(),\n}).describe(\"Request model for listing Employee records from ERPNext.\");\nconst ErpnextListEmployees_EmployeeRecordSchema = z.object({\n name: z.string().describe(\"The unique identifier/name of the employee record\").nullable(),\n}).passthrough().describe(\"Model representing a single Employee record with dynamic fields.\");\nexport const ErpnextListEmployeesOutput = z.object({\n data: z.array(ErpnextListEmployees_EmployeeRecordSchema).describe(\"List of employee records. Each record contains at minimum the 'name' field, and may include additional fields as requested.\"),\n}).describe(\"Response model for listing Employee records.\");\n\nexport const erpnextListEmployees = action(\"ERPNEXT_LIST_EMPLOYEES\", {\n slug: \"erpnext-list-employees\",\n name: \"List Employees\",\n description: \"Tool to retrieve a list of Employee records from ERPNext. Use when you need to fetch employee information with optional filtering and pagination.\",\n input: ErpnextListEmployeesInput,\n output: ErpnextListEmployeesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4B,EAAE,OAAO;CAChD,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,yNAAyN,CAAC,CAAC,SAAS;CACzQ,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;EAAC,EAAE,OAAO;EAAG,EAAE,OAAO,CAAC,CAAC,IAAI;EAAG,EAAE,OAAO;CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,yMAAyM,CAAC,CAAC,SAAS;CAC5S,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,sLAAsL,CAAC,CAAC,SAAS;CACnP,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;AAC5H,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACtE,MAAM,4CAA4C,EAAE,OAAO,EACzD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,EAC1F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kEAAkE;AAK5F,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATwC,EAAE,OAAO,EACjD,MAAM,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,6HAA6H,EACjM,CAAC,CAAC,CAAC,SAAS,
|
|
1
|
+
{"version":3,"file":"list-employees.mjs","names":[],"sources":["../../src/actions/list-employees.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextListEmployeesInput = z.object({\n fields: z.array(z.string()).describe(\"List of fields to include in the response. By default, only the 'name' field is included. Pass field names as a list to retrieve additional fields. For example: ['name', 'employee_name', 'department', 'designation']\").optional(),\n filters: z.array(z.array(z.union([z.string(), z.number().int(), z.number()]))).describe(\"SQL conditions to filter the listing. Each condition is an array of the format [doctype, field, operator, value]. For example: [['Employee', 'status', '=', 'Active']] to filter active employees only.\").optional(),\n limit_start: z.number().int().default(0).describe(\"Starting position for pagination. To request successive pages, pass a multiple of limit_page_length. For example, to request the second page with page size 20, pass limit_start=20.\").optional(),\n limit_page_length: z.number().int().default(20).describe(\"Number of records to return per page. Default is 20.\").optional(),\n}).describe(\"Request model for listing Employee records from ERPNext.\");\nconst ErpnextListEmployees_EmployeeRecordSchema = z.object({\n name: z.string().describe(\"The unique identifier/name of the employee record\").nullable(),\n}).passthrough().describe(\"Model representing a single Employee record with dynamic fields.\");\nexport const ErpnextListEmployeesOutput = z.object({\n data: z.array(ErpnextListEmployees_EmployeeRecordSchema).describe(\"List of employee records. Each record contains at minimum the 'name' field, and may include additional fields as requested.\"),\n}).passthrough().describe(\"Response model for listing Employee records.\");\n\nexport const erpnextListEmployees = action(\"ERPNEXT_LIST_EMPLOYEES\", {\n slug: \"erpnext-list-employees\",\n name: \"List Employees\",\n description: \"Tool to retrieve a list of Employee records from ERPNext. Use when you need to fetch employee information with optional filtering and pagination.\",\n input: ErpnextListEmployeesInput,\n output: ErpnextListEmployeesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4B,EAAE,OAAO;CAChD,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,yNAAyN,CAAC,CAAC,SAAS;CACzQ,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;EAAC,EAAE,OAAO;EAAG,EAAE,OAAO,CAAC,CAAC,IAAI;EAAG,EAAE,OAAO;CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,yMAAyM,CAAC,CAAC,SAAS;CAC5S,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,sLAAsL,CAAC,CAAC,SAAS;CACnP,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;AAC5H,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACtE,MAAM,4CAA4C,EAAE,OAAO,EACzD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,EAC1F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kEAAkE;AAK5F,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATwC,EAAE,OAAO,EACjD,MAAM,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,6HAA6H,EACjM,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAOhB;AACV,CAAC"}
|
|
@@ -12,7 +12,7 @@ const ErpnextListProjectsInput = zod.z.object({
|
|
|
12
12
|
limit_start: zod.z.number().int().default(0).describe("Offset for pagination. Pass a multiple of limit_page_length to request successive pages. For example, pass 20 to request the second page when limit_page_length is 20.").optional(),
|
|
13
13
|
limit_page_length: zod.z.number().int().default(20).describe("Number of items to return per page. Controls pagination size.").optional()
|
|
14
14
|
});
|
|
15
|
-
const ErpnextListProjectsOutput = zod.z.object({ data: zod.z.array(zod.z.
|
|
15
|
+
const ErpnextListProjectsOutput = zod.z.object({ data: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("List of project records matching the query criteria") }).passthrough();
|
|
16
16
|
const erpnextListProjects = require_action.action("ERPNEXT_LIST_PROJECTS", {
|
|
17
17
|
slug: "erpnext-list-projects",
|
|
18
18
|
name: "List Projects",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-projects.cjs","names":["z","action"],"sources":["../../src/actions/list-projects.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextListProjectsInput = z.object({\n fields: z.array(z.string()).describe(\"Fields to include in the response. By default, only the \\\"name\\\" field is included. Pass a list of field names to include additional fields.\").optional(),\n filters: z.array(z.array(z.union([z.string(), z.number().int(), z.number(), z.boolean()]))).describe(\"SQL conditions to filter the listing. Each condition is an array of the format: [doctype, field, operator, value]. For example: [[\\\"Project\\\", \\\"status\\\", \\\"=\\\", \\\"Open\\\"]]\").optional(),\n limit_start: z.number().int().default(0).describe(\"Offset for pagination. Pass a multiple of limit_page_length to request successive pages. For example, pass 20 to request the second page when limit_page_length is 20.\").optional(),\n limit_page_length: z.number().int().default(20).describe(\"Number of items to return per page. Controls pagination size.\").optional(),\n});\nexport const ErpnextListProjectsOutput = z.object({\n data: z.array(z.
|
|
1
|
+
{"version":3,"file":"list-projects.cjs","names":["z","action"],"sources":["../../src/actions/list-projects.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextListProjectsInput = z.object({\n fields: z.array(z.string()).describe(\"Fields to include in the response. By default, only the \\\"name\\\" field is included. Pass a list of field names to include additional fields.\").optional(),\n filters: z.array(z.array(z.union([z.string(), z.number().int(), z.number(), z.boolean()]))).describe(\"SQL conditions to filter the listing. Each condition is an array of the format: [doctype, field, operator, value]. For example: [[\\\"Project\\\", \\\"status\\\", \\\"=\\\", \\\"Open\\\"]]\").optional(),\n limit_start: z.number().int().default(0).describe(\"Offset for pagination. Pass a multiple of limit_page_length to request successive pages. For example, pass 20 to request the second page when limit_page_length is 20.\").optional(),\n limit_page_length: z.number().int().default(20).describe(\"Number of items to return per page. Controls pagination size.\").optional(),\n});\nexport const ErpnextListProjectsOutput = z.object({\n data: z.array(z.record(z.string(), z.unknown())).describe(\"List of project records matching the query criteria\"),\n}).passthrough();\n\nexport const erpnextListProjects = action(\"ERPNEXT_LIST_PROJECTS\", {\n slug: \"erpnext-list-projects\",\n name: \"List Projects\",\n description: \"Tool to retrieve a list of Project records from ERPNext. Use when you need to get projects, optionally filtered and paginated.\",\n input: ErpnextListProjectsInput,\n output: ErpnextListProjectsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8IAA8I,CAAC,CAAC,SAAS;CAC9L,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,8KAA8K,CAAC,CAAC,SAAS;CAC9R,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,wKAAwK,CAAC,CAAC,SAAS;CACrO,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;AACrI,CAAC;AACD,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,qDAAqD,EACjH,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -8,8 +8,8 @@ declare const ErpnextListProjectsInput: z.ZodObject<{
|
|
|
8
8
|
limit_page_length: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
9
9
|
}, z.core.$strip>;
|
|
10
10
|
declare const ErpnextListProjectsOutput: z.ZodObject<{
|
|
11
|
-
data: z.ZodArray<z.
|
|
12
|
-
}, z.core.$
|
|
11
|
+
data: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
12
|
+
}, z.core.$loose>;
|
|
13
13
|
declare const erpnextListProjects: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
14
14
|
fields?: string[] | undefined;
|
|
15
15
|
filters?: (string | number | boolean)[][] | undefined;
|
|
@@ -8,8 +8,8 @@ declare const ErpnextListProjectsInput: z.ZodObject<{
|
|
|
8
8
|
limit_page_length: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
9
9
|
}, z.core.$strip>;
|
|
10
10
|
declare const ErpnextListProjectsOutput: z.ZodObject<{
|
|
11
|
-
data: z.ZodArray<z.
|
|
12
|
-
}, z.core.$
|
|
11
|
+
data: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
12
|
+
}, z.core.$loose>;
|
|
13
13
|
declare const erpnextListProjects: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
14
14
|
fields?: string[] | undefined;
|
|
15
15
|
filters?: (string | number | boolean)[][] | undefined;
|
|
@@ -15,7 +15,7 @@ const erpnextListProjects = action("ERPNEXT_LIST_PROJECTS", {
|
|
|
15
15
|
limit_start: z.number().int().default(0).describe("Offset for pagination. Pass a multiple of limit_page_length to request successive pages. For example, pass 20 to request the second page when limit_page_length is 20.").optional(),
|
|
16
16
|
limit_page_length: z.number().int().default(20).describe("Number of items to return per page. Controls pagination size.").optional()
|
|
17
17
|
}),
|
|
18
|
-
output: z.object({ data: z.array(z.
|
|
18
|
+
output: z.object({ data: z.array(z.record(z.string(), z.unknown())).describe("List of project records matching the query criteria") }).passthrough()
|
|
19
19
|
});
|
|
20
20
|
//#endregion
|
|
21
21
|
export { erpnextListProjects };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-projects.mjs","names":[],"sources":["../../src/actions/list-projects.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextListProjectsInput = z.object({\n fields: z.array(z.string()).describe(\"Fields to include in the response. By default, only the \\\"name\\\" field is included. Pass a list of field names to include additional fields.\").optional(),\n filters: z.array(z.array(z.union([z.string(), z.number().int(), z.number(), z.boolean()]))).describe(\"SQL conditions to filter the listing. Each condition is an array of the format: [doctype, field, operator, value]. For example: [[\\\"Project\\\", \\\"status\\\", \\\"=\\\", \\\"Open\\\"]]\").optional(),\n limit_start: z.number().int().default(0).describe(\"Offset for pagination. Pass a multiple of limit_page_length to request successive pages. For example, pass 20 to request the second page when limit_page_length is 20.\").optional(),\n limit_page_length: z.number().int().default(20).describe(\"Number of items to return per page. Controls pagination size.\").optional(),\n});\nexport const ErpnextListProjectsOutput = z.object({\n data: z.array(z.
|
|
1
|
+
{"version":3,"file":"list-projects.mjs","names":[],"sources":["../../src/actions/list-projects.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextListProjectsInput = z.object({\n fields: z.array(z.string()).describe(\"Fields to include in the response. By default, only the \\\"name\\\" field is included. Pass a list of field names to include additional fields.\").optional(),\n filters: z.array(z.array(z.union([z.string(), z.number().int(), z.number(), z.boolean()]))).describe(\"SQL conditions to filter the listing. Each condition is an array of the format: [doctype, field, operator, value]. For example: [[\\\"Project\\\", \\\"status\\\", \\\"=\\\", \\\"Open\\\"]]\").optional(),\n limit_start: z.number().int().default(0).describe(\"Offset for pagination. Pass a multiple of limit_page_length to request successive pages. For example, pass 20 to request the second page when limit_page_length is 20.\").optional(),\n limit_page_length: z.number().int().default(20).describe(\"Number of items to return per page. Controls pagination size.\").optional(),\n});\nexport const ErpnextListProjectsOutput = z.object({\n data: z.array(z.record(z.string(), z.unknown())).describe(\"List of project records matching the query criteria\"),\n}).passthrough();\n\nexport const erpnextListProjects = action(\"ERPNEXT_LIST_PROJECTS\", {\n slug: \"erpnext-list-projects\",\n name: \"List Projects\",\n description: \"Tool to retrieve a list of Project records from ERPNext. Use when you need to get projects, optionally filtered and paginated.\",\n input: ErpnextListProjectsInput,\n output: ErpnextListProjectsOutput,\n});\n"],"mappings":";;AAcA,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAdsC,EAAE,OAAO;EAC/C,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8IAA8I,CAAC,CAAC,SAAS;EAC9L,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;GAAC,EAAE,OAAO;GAAG,EAAE,OAAO,CAAC,CAAC,IAAI;GAAG,EAAE,OAAO;GAAG,EAAE,QAAQ;EAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,8KAA8K,CAAC,CAAC,SAAS;EAC9R,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,wKAAwK,CAAC,CAAC,SAAS;EACrO,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CACrI,CASS;CACP,QATuC,EAAE,OAAO,EAChD,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,qDAAqD,EACjH,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
|
@@ -12,7 +12,7 @@ const ErpnextListTimesheetsInput = zod.z.object({
|
|
|
12
12
|
limit_start: zod.z.number().int().default(0).describe("Starting position for pagination. To request successive pages, pass a multiple of your limit_page_length. For example, to request the second page with page length 20, pass limit_start=20.").optional(),
|
|
13
13
|
limit_page_length: zod.z.number().int().default(20).describe("Number of records to return per page. Controls the page size for pagination. Default is 20 records. Maximum is 1000.").optional()
|
|
14
14
|
}).describe("Request model for listing timesheet records.");
|
|
15
|
-
const ErpnextListTimesheetsOutput = zod.z.object({ data: zod.z.array(zod.z.
|
|
15
|
+
const ErpnextListTimesheetsOutput = zod.z.object({ data: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("List of timesheet records. Each record contains at least the 'name' field, plus any additional fields specified in the request.") }).passthrough().describe("Response model for listing timesheet records.");
|
|
16
16
|
const erpnextListTimesheets = require_action.action("ERPNEXT_LIST_TIMESHEETS", {
|
|
17
17
|
slug: "erpnext-list-timesheets",
|
|
18
18
|
name: "List Timesheets",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-timesheets.cjs","names":["z","action"],"sources":["../../src/actions/list-timesheets.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextListTimesheetsInput = z.object({\n fields: z.array(z.string()).describe(\"List of fields to include in the response. By default, only the 'name' field is included. To add more fields, specify them in this list. For example: ['name', 'employee', 'total_hours', 'status']\").optional(),\n filters: z.array(z.array(z.union([z.string(), z.number().int(), z.number(), z.boolean()]))).describe(\"SQL-style conditions to filter the listing. Each condition is an array of the format: [doctype, field, operator, value]. For example: [['Timesheet', 'status', '=', 'Submitted']] to get only submitted timesheets. Multiple filters can be combined: [['Timesheet', 'employee', '=', 'EMP-001'], ['Timesheet', 'status', '=', 'Draft']]\").optional(),\n limit_start: z.number().int().default(0).describe(\"Starting position for pagination. To request successive pages, pass a multiple of your limit_page_length. For example, to request the second page with page length 20, pass limit_start=20.\").optional(),\n limit_page_length: z.number().int().default(20).describe(\"Number of records to return per page. Controls the page size for pagination. Default is 20 records. Maximum is 1000.\").optional(),\n}).describe(\"Request model for listing timesheet records.\");\nexport const ErpnextListTimesheetsOutput = z.object({\n data: z.array(z.
|
|
1
|
+
{"version":3,"file":"list-timesheets.cjs","names":["z","action"],"sources":["../../src/actions/list-timesheets.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextListTimesheetsInput = z.object({\n fields: z.array(z.string()).describe(\"List of fields to include in the response. By default, only the 'name' field is included. To add more fields, specify them in this list. For example: ['name', 'employee', 'total_hours', 'status']\").optional(),\n filters: z.array(z.array(z.union([z.string(), z.number().int(), z.number(), z.boolean()]))).describe(\"SQL-style conditions to filter the listing. Each condition is an array of the format: [doctype, field, operator, value]. For example: [['Timesheet', 'status', '=', 'Submitted']] to get only submitted timesheets. Multiple filters can be combined: [['Timesheet', 'employee', '=', 'EMP-001'], ['Timesheet', 'status', '=', 'Draft']]\").optional(),\n limit_start: z.number().int().default(0).describe(\"Starting position for pagination. To request successive pages, pass a multiple of your limit_page_length. For example, to request the second page with page length 20, pass limit_start=20.\").optional(),\n limit_page_length: z.number().int().default(20).describe(\"Number of records to return per page. Controls the page size for pagination. Default is 20 records. Maximum is 1000.\").optional(),\n}).describe(\"Request model for listing timesheet records.\");\nexport const ErpnextListTimesheetsOutput = z.object({\n data: z.array(z.record(z.string(), z.unknown())).describe(\"List of timesheet records. Each record contains at least the 'name' field, plus any additional fields specified in the request.\"),\n}).passthrough().describe(\"Response model for listing timesheet records.\");\n\nexport const erpnextListTimesheets = action(\"ERPNEXT_LIST_TIMESHEETS\", {\n slug: \"erpnext-list-timesheets\",\n name: \"List Timesheets\",\n description: \"Tool to get a list of Timesheet records from ERPNext. Use when you need to retrieve, search, or filter timesheets. Supports pagination and flexible field selection.\",\n input: ErpnextListTimesheetsInput,\n output: ErpnextListTimesheetsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qMAAqM,CAAC,CAAC,SAAS;CACrP,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAM;EAACA,IAAAA,EAAE,OAAO;EAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI;EAAGA,IAAAA,EAAE,OAAO;EAAGA,IAAAA,EAAE,QAAQ;CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,0UAA0U,CAAC,CAAC,SAAS;CAC1b,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,6LAA6L,CAAC,CAAC,SAAS;CAC1P,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,sHAAsH,CAAC,CAAC,SAAS;AAC5L,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,iIAAiI,EAC7L,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAA+C;AAEzE,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -8,8 +8,8 @@ declare const ErpnextListTimesheetsInput: z.ZodObject<{
|
|
|
8
8
|
limit_page_length: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
9
9
|
}, z.core.$strip>;
|
|
10
10
|
declare const ErpnextListTimesheetsOutput: z.ZodObject<{
|
|
11
|
-
data: z.ZodArray<z.
|
|
12
|
-
}, z.core.$
|
|
11
|
+
data: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
12
|
+
}, z.core.$loose>;
|
|
13
13
|
declare const erpnextListTimesheets: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
14
14
|
fields?: string[] | undefined;
|
|
15
15
|
filters?: (string | number | boolean)[][] | undefined;
|
|
@@ -8,8 +8,8 @@ declare const ErpnextListTimesheetsInput: z.ZodObject<{
|
|
|
8
8
|
limit_page_length: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
9
9
|
}, z.core.$strip>;
|
|
10
10
|
declare const ErpnextListTimesheetsOutput: z.ZodObject<{
|
|
11
|
-
data: z.ZodArray<z.
|
|
12
|
-
}, z.core.$
|
|
11
|
+
data: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
12
|
+
}, z.core.$loose>;
|
|
13
13
|
declare const erpnextListTimesheets: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
14
14
|
fields?: string[] | undefined;
|
|
15
15
|
filters?: (string | number | boolean)[][] | undefined;
|
|
@@ -15,7 +15,7 @@ const erpnextListTimesheets = action("ERPNEXT_LIST_TIMESHEETS", {
|
|
|
15
15
|
limit_start: z.number().int().default(0).describe("Starting position for pagination. To request successive pages, pass a multiple of your limit_page_length. For example, to request the second page with page length 20, pass limit_start=20.").optional(),
|
|
16
16
|
limit_page_length: z.number().int().default(20).describe("Number of records to return per page. Controls the page size for pagination. Default is 20 records. Maximum is 1000.").optional()
|
|
17
17
|
}).describe("Request model for listing timesheet records."),
|
|
18
|
-
output: z.object({ data: z.array(z.
|
|
18
|
+
output: z.object({ data: z.array(z.record(z.string(), z.unknown())).describe("List of timesheet records. Each record contains at least the 'name' field, plus any additional fields specified in the request.") }).passthrough().describe("Response model for listing timesheet records.")
|
|
19
19
|
});
|
|
20
20
|
//#endregion
|
|
21
21
|
export { erpnextListTimesheets };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-timesheets.mjs","names":[],"sources":["../../src/actions/list-timesheets.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextListTimesheetsInput = z.object({\n fields: z.array(z.string()).describe(\"List of fields to include in the response. By default, only the 'name' field is included. To add more fields, specify them in this list. For example: ['name', 'employee', 'total_hours', 'status']\").optional(),\n filters: z.array(z.array(z.union([z.string(), z.number().int(), z.number(), z.boolean()]))).describe(\"SQL-style conditions to filter the listing. Each condition is an array of the format: [doctype, field, operator, value]. For example: [['Timesheet', 'status', '=', 'Submitted']] to get only submitted timesheets. Multiple filters can be combined: [['Timesheet', 'employee', '=', 'EMP-001'], ['Timesheet', 'status', '=', 'Draft']]\").optional(),\n limit_start: z.number().int().default(0).describe(\"Starting position for pagination. To request successive pages, pass a multiple of your limit_page_length. For example, to request the second page with page length 20, pass limit_start=20.\").optional(),\n limit_page_length: z.number().int().default(20).describe(\"Number of records to return per page. Controls the page size for pagination. Default is 20 records. Maximum is 1000.\").optional(),\n}).describe(\"Request model for listing timesheet records.\");\nexport const ErpnextListTimesheetsOutput = z.object({\n data: z.array(z.
|
|
1
|
+
{"version":3,"file":"list-timesheets.mjs","names":[],"sources":["../../src/actions/list-timesheets.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextListTimesheetsInput = z.object({\n fields: z.array(z.string()).describe(\"List of fields to include in the response. By default, only the 'name' field is included. To add more fields, specify them in this list. For example: ['name', 'employee', 'total_hours', 'status']\").optional(),\n filters: z.array(z.array(z.union([z.string(), z.number().int(), z.number(), z.boolean()]))).describe(\"SQL-style conditions to filter the listing. Each condition is an array of the format: [doctype, field, operator, value]. For example: [['Timesheet', 'status', '=', 'Submitted']] to get only submitted timesheets. Multiple filters can be combined: [['Timesheet', 'employee', '=', 'EMP-001'], ['Timesheet', 'status', '=', 'Draft']]\").optional(),\n limit_start: z.number().int().default(0).describe(\"Starting position for pagination. To request successive pages, pass a multiple of your limit_page_length. For example, to request the second page with page length 20, pass limit_start=20.\").optional(),\n limit_page_length: z.number().int().default(20).describe(\"Number of records to return per page. Controls the page size for pagination. Default is 20 records. Maximum is 1000.\").optional(),\n}).describe(\"Request model for listing timesheet records.\");\nexport const ErpnextListTimesheetsOutput = z.object({\n data: z.array(z.record(z.string(), z.unknown())).describe(\"List of timesheet records. Each record contains at least the 'name' field, plus any additional fields specified in the request.\"),\n}).passthrough().describe(\"Response model for listing timesheet records.\");\n\nexport const erpnextListTimesheets = action(\"ERPNEXT_LIST_TIMESHEETS\", {\n slug: \"erpnext-list-timesheets\",\n name: \"List Timesheets\",\n description: \"Tool to get a list of Timesheet records from ERPNext. Use when you need to retrieve, search, or filter timesheets. Supports pagination and flexible field selection.\",\n input: ErpnextListTimesheetsInput,\n output: ErpnextListTimesheetsOutput,\n});\n"],"mappings":";;AAcA,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAdwC,EAAE,OAAO;EACjD,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qMAAqM,CAAC,CAAC,SAAS;EACrP,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;GAAC,EAAE,OAAO;GAAG,EAAE,OAAO,CAAC,CAAC,IAAI;GAAG,EAAE,OAAO;GAAG,EAAE,QAAQ;EAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,0UAA0U,CAAC,CAAC,SAAS;EAC1b,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,6LAA6L,CAAC,CAAC,SAAS;EAC1P,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,sHAAsH,CAAC,CAAC,SAAS;CAC5L,CAAC,CAAC,CAAC,SAAS,8CASH;CACP,QATyC,EAAE,OAAO,EAClD,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,iIAAiI,EAC7L,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAOhB;AACV,CAAC"}
|
|
@@ -14,7 +14,7 @@ const ErpnextListWebhooks_WebhookItemSchema = zod.z.object({
|
|
|
14
14
|
webhook_doctype: zod.z.string().describe("The document type that triggers this webhook").nullable().optional(),
|
|
15
15
|
webhook_docevent: zod.z.string().describe("The document event that triggers this webhook").nullable().optional()
|
|
16
16
|
}).passthrough().describe("Represents a single webhook configuration. Accepts additional fields\nbeyond 'name' since the request supports custom field selection.");
|
|
17
|
-
const ErpnextListWebhooksOutput = zod.z.object({ data: zod.z.array(ErpnextListWebhooks_WebhookItemSchema).describe("List of webhook configurations returned by the API") }).describe("Response model for listing webhooks.");
|
|
17
|
+
const ErpnextListWebhooksOutput = zod.z.object({ data: zod.z.array(ErpnextListWebhooks_WebhookItemSchema).describe("List of webhook configurations returned by the API") }).passthrough().describe("Response model for listing webhooks.");
|
|
18
18
|
const erpnextListWebhooks = require_action.action("ERPNEXT_LIST_WEBHOOKS", {
|
|
19
19
|
slug: "erpnext-list-webhooks",
|
|
20
20
|
name: "List Webhooks",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-webhooks.cjs","names":["z","action"],"sources":["../../src/actions/list-webhooks.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextListWebhooksInput = z.object({\n fields: z.array(z.string()).describe(\"List of fields to include in the response. By default, only the 'name' field is included. Pass additional fields like ['name', 'webhook_doctype', 'webhook_docevent'] to get more data.\").optional(),\n filters: z.array(z.array(z.union([z.string(), z.number().int()]))).describe(\"SQL conditions to filter the listing. Each condition is an array of the format [doctype, field, operator, value]. For example: [['Webhook', 'enabled', '=', 1]]\").optional(),\n limit_start: z.number().int().describe(\"Starting index for pagination. Pass a multiple of limit_page_length to get successive pages. For example, to get the second page with page size 20, pass 20.\").optional(),\n limit_page_length: z.number().int().describe(\"Number of items to return per page. By default, the API returns 20 items.\").optional(),\n}).describe(\"Request model for listing webhook configurations in ERPNext.\");\nconst ErpnextListWebhooks_WebhookItemSchema = z.object({\n name: z.string().describe(\"Name/ID of the webhook configuration\").nullable(),\n enabled: z.number().int().describe(\"Whether the webhook is enabled (1) or disabled (0)\").nullable().optional(),\n request_url: z.string().describe(\"The URL that the webhook sends requests to\").nullable().optional(),\n webhook_doctype: z.string().describe(\"The document type that triggers this webhook\").nullable().optional(),\n webhook_docevent: z.string().describe(\"The document event that triggers this webhook\").nullable().optional(),\n}).passthrough().describe(\"Represents a single webhook configuration. Accepts additional fields\\nbeyond 'name' since the request supports custom field selection.\");\nexport const ErpnextListWebhooksOutput = z.object({\n data: z.array(ErpnextListWebhooks_WebhookItemSchema).describe(\"List of webhook configurations returned by the API\"),\n}).describe(\"Response model for listing webhooks.\");\n\nexport const erpnextListWebhooks = action(\"ERPNEXT_LIST_WEBHOOKS\", {\n slug: \"erpnext-list-webhooks\",\n name: \"List Webhooks\",\n description: \"Tool to list webhook configurations in ERPNext. Use when you need to retrieve all configured webhooks or search for specific webhooks using filters.\",\n input: ErpnextListWebhooksInput,\n output: ErpnextListWebhooksOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,yLAAyL,CAAC,CAAC,SAAS;CACzO,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,iKAAiK,CAAC,CAAC,SAAS;CACxP,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8JAA8J,CAAC,CAAC,SAAS;CAChN,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;AACrI,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAM,wCAAwCA,IAAAA,EAAE,OAAO;CACrD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC3E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wIAAwI;AAClK,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,MAAMA,IAAAA,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,oDAAoD,EACpH,CAAC,CAAC,CAAC,SAAS,sCAAsC;
|
|
1
|
+
{"version":3,"file":"list-webhooks.cjs","names":["z","action"],"sources":["../../src/actions/list-webhooks.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextListWebhooksInput = z.object({\n fields: z.array(z.string()).describe(\"List of fields to include in the response. By default, only the 'name' field is included. Pass additional fields like ['name', 'webhook_doctype', 'webhook_docevent'] to get more data.\").optional(),\n filters: z.array(z.array(z.union([z.string(), z.number().int()]))).describe(\"SQL conditions to filter the listing. Each condition is an array of the format [doctype, field, operator, value]. For example: [['Webhook', 'enabled', '=', 1]]\").optional(),\n limit_start: z.number().int().describe(\"Starting index for pagination. Pass a multiple of limit_page_length to get successive pages. For example, to get the second page with page size 20, pass 20.\").optional(),\n limit_page_length: z.number().int().describe(\"Number of items to return per page. By default, the API returns 20 items.\").optional(),\n}).describe(\"Request model for listing webhook configurations in ERPNext.\");\nconst ErpnextListWebhooks_WebhookItemSchema = z.object({\n name: z.string().describe(\"Name/ID of the webhook configuration\").nullable(),\n enabled: z.number().int().describe(\"Whether the webhook is enabled (1) or disabled (0)\").nullable().optional(),\n request_url: z.string().describe(\"The URL that the webhook sends requests to\").nullable().optional(),\n webhook_doctype: z.string().describe(\"The document type that triggers this webhook\").nullable().optional(),\n webhook_docevent: z.string().describe(\"The document event that triggers this webhook\").nullable().optional(),\n}).passthrough().describe(\"Represents a single webhook configuration. Accepts additional fields\\nbeyond 'name' since the request supports custom field selection.\");\nexport const ErpnextListWebhooksOutput = z.object({\n data: z.array(ErpnextListWebhooks_WebhookItemSchema).describe(\"List of webhook configurations returned by the API\"),\n}).passthrough().describe(\"Response model for listing webhooks.\");\n\nexport const erpnextListWebhooks = action(\"ERPNEXT_LIST_WEBHOOKS\", {\n slug: \"erpnext-list-webhooks\",\n name: \"List Webhooks\",\n description: \"Tool to list webhook configurations in ERPNext. Use when you need to retrieve all configured webhooks or search for specific webhooks using filters.\",\n input: ErpnextListWebhooksInput,\n output: ErpnextListWebhooksOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,yLAAyL,CAAC,CAAC,SAAS;CACzO,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,iKAAiK,CAAC,CAAC,SAAS;CACxP,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8JAA8J,CAAC,CAAC,SAAS;CAChN,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;AACrI,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAM,wCAAwCA,IAAAA,EAAE,OAAO;CACrD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC3E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wIAAwI;AAClK,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,MAAMA,IAAAA,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,oDAAoD,EACpH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAAsC;AAEhE,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -15,7 +15,7 @@ declare const ErpnextListWebhooksOutput: z.ZodObject<{
|
|
|
15
15
|
webhook_doctype: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
16
|
webhook_docevent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
17
|
}, z.core.$loose>>;
|
|
18
|
-
}, z.core.$
|
|
18
|
+
}, z.core.$loose>;
|
|
19
19
|
declare const erpnextListWebhooks: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
20
20
|
fields?: string[] | undefined;
|
|
21
21
|
filters?: (string | number)[][] | undefined;
|
|
@@ -15,7 +15,7 @@ declare const ErpnextListWebhooksOutput: z.ZodObject<{
|
|
|
15
15
|
webhook_doctype: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
16
|
webhook_docevent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
17
|
}, z.core.$loose>>;
|
|
18
|
-
}, z.core.$
|
|
18
|
+
}, z.core.$loose>;
|
|
19
19
|
declare const erpnextListWebhooks: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
20
20
|
fields?: string[] | undefined;
|
|
21
21
|
filters?: (string | number)[][] | undefined;
|
|
@@ -19,7 +19,7 @@ const erpnextListWebhooks = action("ERPNEXT_LIST_WEBHOOKS", {
|
|
|
19
19
|
name: "List Webhooks",
|
|
20
20
|
description: "Tool to list webhook configurations in ERPNext. Use when you need to retrieve all configured webhooks or search for specific webhooks using filters.",
|
|
21
21
|
input: ErpnextListWebhooksInput,
|
|
22
|
-
output: z.object({ data: z.array(ErpnextListWebhooks_WebhookItemSchema).describe("List of webhook configurations returned by the API") }).describe("Response model for listing webhooks.")
|
|
22
|
+
output: z.object({ data: z.array(ErpnextListWebhooks_WebhookItemSchema).describe("List of webhook configurations returned by the API") }).passthrough().describe("Response model for listing webhooks.")
|
|
23
23
|
});
|
|
24
24
|
//#endregion
|
|
25
25
|
export { erpnextListWebhooks };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-webhooks.mjs","names":[],"sources":["../../src/actions/list-webhooks.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextListWebhooksInput = z.object({\n fields: z.array(z.string()).describe(\"List of fields to include in the response. By default, only the 'name' field is included. Pass additional fields like ['name', 'webhook_doctype', 'webhook_docevent'] to get more data.\").optional(),\n filters: z.array(z.array(z.union([z.string(), z.number().int()]))).describe(\"SQL conditions to filter the listing. Each condition is an array of the format [doctype, field, operator, value]. For example: [['Webhook', 'enabled', '=', 1]]\").optional(),\n limit_start: z.number().int().describe(\"Starting index for pagination. Pass a multiple of limit_page_length to get successive pages. For example, to get the second page with page size 20, pass 20.\").optional(),\n limit_page_length: z.number().int().describe(\"Number of items to return per page. By default, the API returns 20 items.\").optional(),\n}).describe(\"Request model for listing webhook configurations in ERPNext.\");\nconst ErpnextListWebhooks_WebhookItemSchema = z.object({\n name: z.string().describe(\"Name/ID of the webhook configuration\").nullable(),\n enabled: z.number().int().describe(\"Whether the webhook is enabled (1) or disabled (0)\").nullable().optional(),\n request_url: z.string().describe(\"The URL that the webhook sends requests to\").nullable().optional(),\n webhook_doctype: z.string().describe(\"The document type that triggers this webhook\").nullable().optional(),\n webhook_docevent: z.string().describe(\"The document event that triggers this webhook\").nullable().optional(),\n}).passthrough().describe(\"Represents a single webhook configuration. Accepts additional fields\\nbeyond 'name' since the request supports custom field selection.\");\nexport const ErpnextListWebhooksOutput = z.object({\n data: z.array(ErpnextListWebhooks_WebhookItemSchema).describe(\"List of webhook configurations returned by the API\"),\n}).describe(\"Response model for listing webhooks.\");\n\nexport const erpnextListWebhooks = action(\"ERPNEXT_LIST_WEBHOOKS\", {\n slug: \"erpnext-list-webhooks\",\n name: \"List Webhooks\",\n description: \"Tool to list webhook configurations in ERPNext. Use when you need to retrieve all configured webhooks or search for specific webhooks using filters.\",\n input: ErpnextListWebhooksInput,\n output: ErpnextListWebhooksOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2B,EAAE,OAAO;CAC/C,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,yLAAyL,CAAC,CAAC,SAAS;CACzO,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,iKAAiK,CAAC,CAAC,SAAS;CACxP,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8JAA8J,CAAC,CAAC,SAAS;CAChN,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;AACrI,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAM,wCAAwC,EAAE,OAAO;CACrD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC3E,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wIAAwI;AAKlK,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATuC,EAAE,OAAO,EAChD,MAAM,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,oDAAoD,EACpH,CAAC,CAAC,CAAC,SAAS,
|
|
1
|
+
{"version":3,"file":"list-webhooks.mjs","names":[],"sources":["../../src/actions/list-webhooks.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextListWebhooksInput = z.object({\n fields: z.array(z.string()).describe(\"List of fields to include in the response. By default, only the 'name' field is included. Pass additional fields like ['name', 'webhook_doctype', 'webhook_docevent'] to get more data.\").optional(),\n filters: z.array(z.array(z.union([z.string(), z.number().int()]))).describe(\"SQL conditions to filter the listing. Each condition is an array of the format [doctype, field, operator, value]. For example: [['Webhook', 'enabled', '=', 1]]\").optional(),\n limit_start: z.number().int().describe(\"Starting index for pagination. Pass a multiple of limit_page_length to get successive pages. For example, to get the second page with page size 20, pass 20.\").optional(),\n limit_page_length: z.number().int().describe(\"Number of items to return per page. By default, the API returns 20 items.\").optional(),\n}).describe(\"Request model for listing webhook configurations in ERPNext.\");\nconst ErpnextListWebhooks_WebhookItemSchema = z.object({\n name: z.string().describe(\"Name/ID of the webhook configuration\").nullable(),\n enabled: z.number().int().describe(\"Whether the webhook is enabled (1) or disabled (0)\").nullable().optional(),\n request_url: z.string().describe(\"The URL that the webhook sends requests to\").nullable().optional(),\n webhook_doctype: z.string().describe(\"The document type that triggers this webhook\").nullable().optional(),\n webhook_docevent: z.string().describe(\"The document event that triggers this webhook\").nullable().optional(),\n}).passthrough().describe(\"Represents a single webhook configuration. Accepts additional fields\\nbeyond 'name' since the request supports custom field selection.\");\nexport const ErpnextListWebhooksOutput = z.object({\n data: z.array(ErpnextListWebhooks_WebhookItemSchema).describe(\"List of webhook configurations returned by the API\"),\n}).passthrough().describe(\"Response model for listing webhooks.\");\n\nexport const erpnextListWebhooks = action(\"ERPNEXT_LIST_WEBHOOKS\", {\n slug: \"erpnext-list-webhooks\",\n name: \"List Webhooks\",\n description: \"Tool to list webhook configurations in ERPNext. Use when you need to retrieve all configured webhooks or search for specific webhooks using filters.\",\n input: ErpnextListWebhooksInput,\n output: ErpnextListWebhooksOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2B,EAAE,OAAO;CAC/C,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,yLAAyL,CAAC,CAAC,SAAS;CACzO,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,iKAAiK,CAAC,CAAC,SAAS;CACxP,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8JAA8J,CAAC,CAAC,SAAS;CAChN,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;AACrI,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAM,wCAAwC,EAAE,OAAO;CACrD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC3E,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wIAAwI;AAKlK,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATuC,EAAE,OAAO,EAChD,MAAM,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,oDAAoD,EACpH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAOhB;AACV,CAAC"}
|
|
@@ -4,7 +4,7 @@ let zod = require("zod");
|
|
|
4
4
|
const ErpnextMakeDeliveryNoteInput = zod.z.object({ source_name: zod.z.string().describe("Sales Order name/ID from which to create the Delivery Note. The Sales Order must exist and be in a submitted state (docstatus=1). Example: 'SAL-ORD-2026-00002', 'SO-00123'.") }).describe("Request to create a Delivery Note from a Sales Order.");
|
|
5
5
|
const ErpnextMakeDeliveryNote_DeliveryNoteDocumentSchema = zod.z.object({
|
|
6
6
|
name: zod.z.string().describe("Unique identifier/name of the Delivery Note.").nullable().optional(),
|
|
7
|
-
items: zod.z.array(zod.z.
|
|
7
|
+
items: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("List of items to deliver, mapped from the Sales Order items.").nullable().optional(),
|
|
8
8
|
owner: zod.z.string().describe("User who created the document.").nullable().optional(),
|
|
9
9
|
company: zod.z.string().describe("Company issuing the delivery note.").nullable().optional(),
|
|
10
10
|
doctype: zod.z.string().describe("Document type, always 'Delivery Note'.").nullable().optional(),
|
|
@@ -15,7 +15,7 @@ const ErpnextMakeDeliveryNote_DeliveryNoteDocumentSchema = zod.z.object({
|
|
|
15
15
|
posting_date: zod.z.string().describe("Date when the delivery note is posted.").nullable().optional(),
|
|
16
16
|
customer_name: zod.z.string().describe("Display name of the customer.").nullable().optional()
|
|
17
17
|
}).passthrough().describe("Delivery Note document structure.");
|
|
18
|
-
const ErpnextMakeDeliveryNoteOutput = zod.z.object({ message: ErpnextMakeDeliveryNote_DeliveryNoteDocumentSchema.nullable() }).describe("Response containing the created Delivery Note draft document.");
|
|
18
|
+
const ErpnextMakeDeliveryNoteOutput = zod.z.object({ message: ErpnextMakeDeliveryNote_DeliveryNoteDocumentSchema.nullable() }).passthrough().describe("Response containing the created Delivery Note draft document.");
|
|
19
19
|
const erpnextMakeDeliveryNote = require_action.action("ERPNEXT_MAKE_DELIVERY_NOTE", {
|
|
20
20
|
slug: "erpnext-make-delivery-note",
|
|
21
21
|
name: "Make Delivery Note",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"make-delivery-note.cjs","names":["z","action"],"sources":["../../src/actions/make-delivery-note.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextMakeDeliveryNoteInput = z.object({\n source_name: z.string().describe(\"Sales Order name/ID from which to create the Delivery Note. The Sales Order must exist and be in a submitted state (docstatus=1). Example: 'SAL-ORD-2026-00002', 'SO-00123'.\"),\n}).describe(\"Request to create a Delivery Note from a Sales Order.\");\nconst ErpnextMakeDeliveryNote_DeliveryNoteDocumentSchema = z.object({\n name: z.string().describe(\"Unique identifier/name of the Delivery Note.\").nullable().optional(),\n items: z.array(z.
|
|
1
|
+
{"version":3,"file":"make-delivery-note.cjs","names":["z","action"],"sources":["../../src/actions/make-delivery-note.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextMakeDeliveryNoteInput = z.object({\n source_name: z.string().describe(\"Sales Order name/ID from which to create the Delivery Note. The Sales Order must exist and be in a submitted state (docstatus=1). Example: 'SAL-ORD-2026-00002', 'SO-00123'.\"),\n}).describe(\"Request to create a Delivery Note from a Sales Order.\");\nconst ErpnextMakeDeliveryNote_DeliveryNoteDocumentSchema = z.object({\n name: z.string().describe(\"Unique identifier/name of the Delivery Note.\").nullable().optional(),\n items: z.array(z.record(z.string(), z.unknown())).describe(\"List of items to deliver, mapped from the Sales Order items.\").nullable().optional(),\n owner: z.string().describe(\"User who created the document.\").nullable().optional(),\n company: z.string().describe(\"Company issuing the delivery note.\").nullable().optional(),\n doctype: z.string().describe(\"Document type, always 'Delivery Note'.\").nullable().optional(),\n creation: z.string().describe(\"Timestamp when the document was created.\").nullable().optional(),\n customer: z.string().describe(\"Customer name from the Sales Order.\").nullable().optional(),\n modified: z.string().describe(\"Timestamp when the document was last modified.\").nullable().optional(),\n docstatus: z.number().int().describe(\"Document status: 0 = Draft, 1 = Submitted, 2 = Cancelled. Will be 0 for newly created delivery notes.\").nullable().optional(),\n posting_date: z.string().describe(\"Date when the delivery note is posted.\").nullable().optional(),\n customer_name: z.string().describe(\"Display name of the customer.\").nullable().optional(),\n}).passthrough().describe(\"Delivery Note document structure.\");\nexport const ErpnextMakeDeliveryNoteOutput = z.object({\n message: ErpnextMakeDeliveryNote_DeliveryNoteDocumentSchema.nullable(),\n}).passthrough().describe(\"Response containing the created Delivery Note draft document.\");\n\nexport const erpnextMakeDeliveryNote = action(\"ERPNEXT_MAKE_DELIVERY_NOTE\", {\n slug: \"erpnext-make-delivery-note\",\n name: \"Make Delivery Note\",\n description: \"Create a draft Delivery Note from an existing Sales Order in ERPNext. Use when you need to initiate shipment/delivery of items from a confirmed sales order. The created Delivery Note will be in draft state and can be modified before submission.\",\n input: ErpnextMakeDeliveryNoteInput,\n output: ErpnextMakeDeliveryNoteOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8KAA8K,EACjN,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,MAAM,qDAAqDA,IAAAA,EAAE,OAAO;CAClE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,OAAOA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/I,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClK,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mCAAmC;AAC7D,MAAa,gCAAgCA,IAAAA,EAAE,OAAO,EACpD,SAAS,mDAAmD,SAAS,EACvE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+DAA+D;AAEzF,MAAa,0BAA0BC,eAAAA,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -7,7 +7,7 @@ declare const ErpnextMakeDeliveryNoteInput: z.ZodObject<{
|
|
|
7
7
|
declare const ErpnextMakeDeliveryNoteOutput: z.ZodObject<{
|
|
8
8
|
message: z.ZodNullable<z.ZodObject<{
|
|
9
9
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
-
items: z.ZodOptional<z.ZodNullable<z.ZodArray<z.
|
|
10
|
+
items: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
11
11
|
owner: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
12
|
company: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
13
|
doctype: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -18,7 +18,7 @@ declare const ErpnextMakeDeliveryNoteOutput: z.ZodObject<{
|
|
|
18
18
|
posting_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
19
|
customer_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
20
|
}, z.core.$loose>>;
|
|
21
|
-
}, z.core.$
|
|
21
|
+
}, z.core.$loose>;
|
|
22
22
|
declare const erpnextMakeDeliveryNote: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
23
23
|
source_name: string;
|
|
24
24
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -7,7 +7,7 @@ declare const ErpnextMakeDeliveryNoteInput: z.ZodObject<{
|
|
|
7
7
|
declare const ErpnextMakeDeliveryNoteOutput: z.ZodObject<{
|
|
8
8
|
message: z.ZodNullable<z.ZodObject<{
|
|
9
9
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
-
items: z.ZodOptional<z.ZodNullable<z.ZodArray<z.
|
|
10
|
+
items: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
11
11
|
owner: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
12
|
company: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
13
|
doctype: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -18,7 +18,7 @@ declare const ErpnextMakeDeliveryNoteOutput: z.ZodObject<{
|
|
|
18
18
|
posting_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
19
|
customer_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
20
|
}, z.core.$loose>>;
|
|
21
|
-
}, z.core.$
|
|
21
|
+
}, z.core.$loose>;
|
|
22
22
|
declare const erpnextMakeDeliveryNote: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
23
23
|
source_name: string;
|
|
24
24
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -4,7 +4,7 @@ import { z } from "zod";
|
|
|
4
4
|
const ErpnextMakeDeliveryNoteInput = z.object({ source_name: z.string().describe("Sales Order name/ID from which to create the Delivery Note. The Sales Order must exist and be in a submitted state (docstatus=1). Example: 'SAL-ORD-2026-00002', 'SO-00123'.") }).describe("Request to create a Delivery Note from a Sales Order.");
|
|
5
5
|
const ErpnextMakeDeliveryNote_DeliveryNoteDocumentSchema = z.object({
|
|
6
6
|
name: z.string().describe("Unique identifier/name of the Delivery Note.").nullable().optional(),
|
|
7
|
-
items: z.array(z.
|
|
7
|
+
items: z.array(z.record(z.string(), z.unknown())).describe("List of items to deliver, mapped from the Sales Order items.").nullable().optional(),
|
|
8
8
|
owner: z.string().describe("User who created the document.").nullable().optional(),
|
|
9
9
|
company: z.string().describe("Company issuing the delivery note.").nullable().optional(),
|
|
10
10
|
doctype: z.string().describe("Document type, always 'Delivery Note'.").nullable().optional(),
|
|
@@ -20,7 +20,7 @@ const erpnextMakeDeliveryNote = action("ERPNEXT_MAKE_DELIVERY_NOTE", {
|
|
|
20
20
|
name: "Make Delivery Note",
|
|
21
21
|
description: "Create a draft Delivery Note from an existing Sales Order in ERPNext. Use when you need to initiate shipment/delivery of items from a confirmed sales order. The created Delivery Note will be in draft state and can be modified before submission.",
|
|
22
22
|
input: ErpnextMakeDeliveryNoteInput,
|
|
23
|
-
output: z.object({ message: ErpnextMakeDeliveryNote_DeliveryNoteDocumentSchema.nullable() }).describe("Response containing the created Delivery Note draft document.")
|
|
23
|
+
output: z.object({ message: ErpnextMakeDeliveryNote_DeliveryNoteDocumentSchema.nullable() }).passthrough().describe("Response containing the created Delivery Note draft document.")
|
|
24
24
|
});
|
|
25
25
|
//#endregion
|
|
26
26
|
export { erpnextMakeDeliveryNote };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"make-delivery-note.mjs","names":[],"sources":["../../src/actions/make-delivery-note.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextMakeDeliveryNoteInput = z.object({\n source_name: z.string().describe(\"Sales Order name/ID from which to create the Delivery Note. The Sales Order must exist and be in a submitted state (docstatus=1). Example: 'SAL-ORD-2026-00002', 'SO-00123'.\"),\n}).describe(\"Request to create a Delivery Note from a Sales Order.\");\nconst ErpnextMakeDeliveryNote_DeliveryNoteDocumentSchema = z.object({\n name: z.string().describe(\"Unique identifier/name of the Delivery Note.\").nullable().optional(),\n items: z.array(z.
|
|
1
|
+
{"version":3,"file":"make-delivery-note.mjs","names":[],"sources":["../../src/actions/make-delivery-note.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextMakeDeliveryNoteInput = z.object({\n source_name: z.string().describe(\"Sales Order name/ID from which to create the Delivery Note. The Sales Order must exist and be in a submitted state (docstatus=1). Example: 'SAL-ORD-2026-00002', 'SO-00123'.\"),\n}).describe(\"Request to create a Delivery Note from a Sales Order.\");\nconst ErpnextMakeDeliveryNote_DeliveryNoteDocumentSchema = z.object({\n name: z.string().describe(\"Unique identifier/name of the Delivery Note.\").nullable().optional(),\n items: z.array(z.record(z.string(), z.unknown())).describe(\"List of items to deliver, mapped from the Sales Order items.\").nullable().optional(),\n owner: z.string().describe(\"User who created the document.\").nullable().optional(),\n company: z.string().describe(\"Company issuing the delivery note.\").nullable().optional(),\n doctype: z.string().describe(\"Document type, always 'Delivery Note'.\").nullable().optional(),\n creation: z.string().describe(\"Timestamp when the document was created.\").nullable().optional(),\n customer: z.string().describe(\"Customer name from the Sales Order.\").nullable().optional(),\n modified: z.string().describe(\"Timestamp when the document was last modified.\").nullable().optional(),\n docstatus: z.number().int().describe(\"Document status: 0 = Draft, 1 = Submitted, 2 = Cancelled. Will be 0 for newly created delivery notes.\").nullable().optional(),\n posting_date: z.string().describe(\"Date when the delivery note is posted.\").nullable().optional(),\n customer_name: z.string().describe(\"Display name of the customer.\").nullable().optional(),\n}).passthrough().describe(\"Delivery Note document structure.\");\nexport const ErpnextMakeDeliveryNoteOutput = z.object({\n message: ErpnextMakeDeliveryNote_DeliveryNoteDocumentSchema.nullable(),\n}).passthrough().describe(\"Response containing the created Delivery Note draft document.\");\n\nexport const erpnextMakeDeliveryNote = action(\"ERPNEXT_MAKE_DELIVERY_NOTE\", {\n slug: \"erpnext-make-delivery-note\",\n name: \"Make Delivery Note\",\n description: \"Create a draft Delivery Note from an existing Sales Order in ERPNext. Use when you need to initiate shipment/delivery of items from a confirmed sales order. The created Delivery Note will be in draft state and can be modified before submission.\",\n input: ErpnextMakeDeliveryNoteInput,\n output: ErpnextMakeDeliveryNoteOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+B,EAAE,OAAO,EACnD,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,8KAA8K,EACjN,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,MAAM,qDAAqD,EAAE,OAAO;CAClE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/I,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClK,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mCAAmC;AAK7D,MAAa,0BAA0B,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT2C,EAAE,OAAO,EACpD,SAAS,mDAAmD,SAAS,EACvE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+DAOhB;AACV,CAAC"}
|