@keystrokehq/erpnext 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/add-comment.cjs +5 -5
- package/dist/actions/add-comment.cjs.map +1 -1
- package/dist/actions/add-comment.d.cts +6 -18
- package/dist/actions/add-comment.d.mts +6 -18
- package/dist/actions/add-comment.mjs +5 -5
- 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 +2 -4
- package/dist/actions/add-tag.d.mts +2 -4
- package/dist/actions/add-tag.mjs +1 -1
- package/dist/actions/add-tag.mjs.map +1 -1
- package/dist/actions/apply-workflow.cjs +4 -4
- package/dist/actions/apply-workflow.cjs.map +1 -1
- package/dist/actions/apply-workflow.d.cts +4 -8
- package/dist/actions/apply-workflow.d.cts.map +1 -1
- package/dist/actions/apply-workflow.d.mts +4 -8
- package/dist/actions/apply-workflow.d.mts.map +1 -1
- package/dist/actions/apply-workflow.mjs +4 -4
- package/dist/actions/apply-workflow.mjs.map +1 -1
- package/dist/actions/cancel-document.cjs +2 -2
- package/dist/actions/cancel-document.cjs.map +1 -1
- package/dist/actions/cancel-document.d.cts +3 -6
- package/dist/actions/cancel-document.d.cts.map +1 -1
- package/dist/actions/cancel-document.d.mts +3 -6
- package/dist/actions/cancel-document.d.mts.map +1 -1
- package/dist/actions/cancel-document.mjs +2 -2
- package/dist/actions/cancel-document.mjs.map +1 -1
- package/dist/actions/create-document.cjs +7 -7
- package/dist/actions/create-document.cjs.map +1 -1
- package/dist/actions/create-document.d.cts +8 -19
- package/dist/actions/create-document.d.mts +8 -19
- package/dist/actions/create-document.mjs +7 -7
- package/dist/actions/create-document.mjs.map +1 -1
- package/dist/actions/create-timesheet.d.cts +1 -11
- package/dist/actions/create-timesheet.d.mts +1 -11
- package/dist/actions/delete-document.d.cts +1 -3
- package/dist/actions/delete-document.d.mts +1 -3
- package/dist/actions/download-file.d.cts +1 -7
- package/dist/actions/download-file.d.mts +1 -7
- package/dist/actions/download-pdf.d.cts +1 -7
- package/dist/actions/download-pdf.d.mts +1 -7
- 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 +3 -8
- package/dist/actions/get-all-languages.d.mts +3 -8
- 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.d.cts +1 -3
- package/dist/actions/get-all-roles.d.cts.map +1 -1
- package/dist/actions/get-all-roles.d.mts +1 -3
- package/dist/actions/get-all-roles.d.mts.map +1 -1
- package/dist/actions/get-client.cjs +7 -7
- package/dist/actions/get-client.cjs.map +1 -1
- package/dist/actions/get-client.d.cts +8 -20
- package/dist/actions/get-client.d.mts +8 -20
- package/dist/actions/get-client.mjs +7 -7
- package/dist/actions/get-client.mjs.map +1 -1
- package/dist/actions/get-count.d.cts +1 -3
- package/dist/actions/get-count.d.mts +1 -3
- package/dist/actions/get-doc-with-meta.cjs +20 -20
- package/dist/actions/get-doc-with-meta.cjs.map +1 -1
- package/dist/actions/get-doc-with-meta.d.cts +21 -43
- package/dist/actions/get-doc-with-meta.d.mts +21 -43
- package/dist/actions/get-doc-with-meta.mjs +20 -20
- 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 +4 -8
- package/dist/actions/get-doctype-meta.d.cts.map +1 -1
- package/dist/actions/get-doctype-meta.d.mts +4 -8
- package/dist/actions/get-doctype-meta.d.mts.map +1 -1
- 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 +7 -7
- package/dist/actions/get-document.cjs.map +1 -1
- package/dist/actions/get-document.d.cts +8 -19
- package/dist/actions/get-document.d.mts +8 -19
- package/dist/actions/get-document.mjs +7 -7
- package/dist/actions/get-document.mjs.map +1 -1
- package/dist/actions/get-exchange-rate.d.cts +1 -3
- package/dist/actions/get-exchange-rate.d.mts +1 -3
- package/dist/actions/get-fiscal-year.d.cts +1 -7
- package/dist/actions/get-fiscal-year.d.mts +1 -7
- package/dist/actions/get-framework-version.d.cts +1 -3
- package/dist/actions/get-framework-version.d.cts.map +1 -1
- package/dist/actions/get-framework-version.d.mts +1 -3
- package/dist/actions/get-framework-version.d.mts.map +1 -1
- package/dist/actions/get-item-details.cjs +27 -27
- package/dist/actions/get-item-details.cjs.map +1 -1
- package/dist/actions/get-item-details.d.cts +28 -59
- package/dist/actions/get-item-details.d.mts +28 -59
- package/dist/actions/get-item-details.mjs +27 -27
- package/dist/actions/get-item-details.mjs.map +1 -1
- package/dist/actions/get-list.d.cts +1 -3
- package/dist/actions/get-list.d.cts.map +1 -1
- package/dist/actions/get-list.d.mts +1 -3
- package/dist/actions/get-list.d.mts.map +1 -1
- package/dist/actions/get-logged-user.d.cts +1 -3
- package/dist/actions/get-logged-user.d.cts.map +1 -1
- package/dist/actions/get-logged-user.d.mts +1 -3
- package/dist/actions/get-logged-user.d.mts.map +1 -1
- package/dist/actions/get-party-details.cjs +36 -36
- package/dist/actions/get-party-details.cjs.map +1 -1
- package/dist/actions/get-party-details.d.cts +37 -77
- package/dist/actions/get-party-details.d.mts +37 -77
- package/dist/actions/get-party-details.mjs +36 -36
- package/dist/actions/get-party-details.mjs.map +1 -1
- package/dist/actions/get-payment-entry.cjs +26 -26
- package/dist/actions/get-payment-entry.cjs.map +1 -1
- package/dist/actions/get-payment-entry.d.cts +27 -59
- package/dist/actions/get-payment-entry.d.mts +27 -59
- package/dist/actions/get-payment-entry.mjs +26 -26
- package/dist/actions/get-payment-entry.mjs.map +1 -1
- package/dist/actions/get-stock-balance.d.cts +1 -3
- package/dist/actions/get-stock-balance.d.mts +1 -3
- package/dist/actions/get-timezones.d.cts +1 -5
- package/dist/actions/get-timezones.d.cts.map +1 -1
- package/dist/actions/get-timezones.d.mts +1 -5
- package/dist/actions/get-timezones.d.mts.map +1 -1
- package/dist/actions/get-user-roles.d.cts +1 -3
- package/dist/actions/get-user-roles.d.mts +1 -3
- package/dist/actions/get-value.d.cts +1 -3
- package/dist/actions/get-value.d.cts.map +1 -1
- package/dist/actions/get-value.d.mts +1 -3
- package/dist/actions/get-value.d.mts.map +1 -1
- package/dist/actions/get-workflow-transitions.cjs +7 -7
- package/dist/actions/get-workflow-transitions.cjs.map +1 -1
- package/dist/actions/get-workflow-transitions.d.cts +8 -17
- package/dist/actions/get-workflow-transitions.d.mts +8 -17
- package/dist/actions/get-workflow-transitions.mjs +7 -7
- package/dist/actions/get-workflow-transitions.mjs.map +1 -1
- package/dist/actions/insert-document.d.cts +1 -3
- package/dist/actions/insert-document.d.cts.map +1 -1
- package/dist/actions/insert-document.d.mts +1 -3
- package/dist/actions/insert-document.d.mts.map +1 -1
- package/dist/actions/insert-many.cjs +4 -4
- package/dist/actions/insert-many.cjs.map +1 -1
- package/dist/actions/insert-many.d.cts +4 -10
- package/dist/actions/insert-many.d.mts +4 -10
- package/dist/actions/insert-many.mjs +4 -4
- 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 -4
- package/dist/actions/list-doctypes.d.cts.map +1 -1
- package/dist/actions/list-doctypes.d.mts +2 -4
- package/dist/actions/list-doctypes.d.mts.map +1 -1
- package/dist/actions/list-doctypes.mjs +1 -1
- package/dist/actions/list-doctypes.mjs.map +1 -1
- package/dist/actions/list-documents.d.cts +1 -3
- package/dist/actions/list-documents.d.cts.map +1 -1
- package/dist/actions/list-documents.d.mts +1 -3
- package/dist/actions/list-documents.d.mts.map +1 -1
- package/dist/actions/list-employees.d.cts +1 -6
- package/dist/actions/list-employees.d.mts +1 -6
- package/dist/actions/list-projects.d.cts +1 -3
- package/dist/actions/list-projects.d.cts.map +1 -1
- package/dist/actions/list-projects.d.mts +1 -3
- package/dist/actions/list-projects.d.mts.map +1 -1
- package/dist/actions/list-timesheets.d.cts +1 -3
- package/dist/actions/list-timesheets.d.cts.map +1 -1
- package/dist/actions/list-timesheets.d.mts +1 -3
- package/dist/actions/list-timesheets.d.mts.map +1 -1
- package/dist/actions/list-webhooks.cjs +4 -4
- package/dist/actions/list-webhooks.cjs.map +1 -1
- package/dist/actions/list-webhooks.d.cts +5 -14
- package/dist/actions/list-webhooks.d.mts +5 -14
- package/dist/actions/list-webhooks.mjs +4 -4
- package/dist/actions/list-webhooks.mjs.map +1 -1
- package/dist/actions/make-delivery-note.cjs +11 -11
- package/dist/actions/make-delivery-note.cjs.map +1 -1
- package/dist/actions/make-delivery-note.d.cts +12 -27
- package/dist/actions/make-delivery-note.d.cts.map +1 -1
- package/dist/actions/make-delivery-note.d.mts +12 -27
- package/dist/actions/make-delivery-note.d.mts.map +1 -1
- package/dist/actions/make-delivery-note.mjs +11 -11
- package/dist/actions/make-delivery-note.mjs.map +1 -1
- package/dist/actions/make-purchase-order.cjs +22 -22
- package/dist/actions/make-purchase-order.cjs.map +1 -1
- package/dist/actions/make-purchase-order.d.cts +23 -51
- package/dist/actions/make-purchase-order.d.mts +23 -51
- package/dist/actions/make-purchase-order.mjs +22 -22
- package/dist/actions/make-purchase-order.mjs.map +1 -1
- package/dist/actions/make-sales-invoice.cjs +13 -13
- package/dist/actions/make-sales-invoice.cjs.map +1 -1
- package/dist/actions/make-sales-invoice.d.cts +14 -31
- package/dist/actions/make-sales-invoice.d.cts.map +1 -1
- package/dist/actions/make-sales-invoice.d.mts +14 -31
- package/dist/actions/make-sales-invoice.d.mts.map +1 -1
- package/dist/actions/make-sales-invoice.mjs +13 -13
- package/dist/actions/make-sales-invoice.mjs.map +1 -1
- package/dist/actions/make-stock-entry.cjs +9 -9
- package/dist/actions/make-stock-entry.cjs.map +1 -1
- package/dist/actions/make-stock-entry.d.cts +10 -22
- package/dist/actions/make-stock-entry.d.mts +10 -22
- package/dist/actions/make-stock-entry.mjs +9 -9
- package/dist/actions/make-stock-entry.mjs.map +1 -1
- package/dist/actions/ping.d.cts +1 -3
- package/dist/actions/ping.d.cts.map +1 -1
- package/dist/actions/ping.d.mts +1 -3
- package/dist/actions/ping.d.mts.map +1 -1
- package/dist/actions/rename-doc.d.cts +1 -3
- package/dist/actions/rename-doc.d.mts +1 -3
- package/dist/actions/save-docs.cjs +5 -5
- package/dist/actions/save-docs.cjs.map +1 -1
- package/dist/actions/save-docs.d.cts +6 -12
- package/dist/actions/save-docs.d.cts.map +1 -1
- package/dist/actions/save-docs.d.mts +6 -12
- package/dist/actions/save-docs.d.mts.map +1 -1
- package/dist/actions/save-docs.mjs +5 -5
- package/dist/actions/save-docs.mjs.map +1 -1
- package/dist/actions/save-document.cjs +2 -2
- package/dist/actions/save-document.cjs.map +1 -1
- package/dist/actions/save-document.d.cts +3 -9
- package/dist/actions/save-document.d.mts +3 -9
- package/dist/actions/save-document.mjs +2 -2
- package/dist/actions/save-document.mjs.map +1 -1
- package/dist/actions/search-global.cjs +7 -7
- package/dist/actions/search-global.cjs.map +1 -1
- package/dist/actions/search-global.d.cts +8 -17
- package/dist/actions/search-global.d.mts +8 -17
- package/dist/actions/search-global.mjs +7 -7
- package/dist/actions/search-global.mjs.map +1 -1
- package/dist/actions/search-link.cjs +1 -1
- package/dist/actions/search-link.cjs.map +1 -1
- package/dist/actions/search-link.d.cts +2 -8
- package/dist/actions/search-link.d.mts +2 -8
- package/dist/actions/search-link.mjs +1 -1
- package/dist/actions/search-link.mjs.map +1 -1
- package/dist/actions/set-value.cjs +8 -8
- package/dist/actions/set-value.cjs.map +1 -1
- package/dist/actions/set-value.d.cts +15 -34
- package/dist/actions/set-value.d.mts +15 -34
- package/dist/actions/set-value.mjs +8 -8
- package/dist/actions/set-value.mjs.map +1 -1
- package/dist/actions/submit-document.d.cts +1 -12
- package/dist/actions/submit-document.d.mts +1 -12
- package/dist/actions/update-document.cjs +8 -8
- package/dist/actions/update-document.cjs.map +1 -1
- package/dist/actions/update-document.d.cts +9 -19
- package/dist/actions/update-document.d.mts +9 -19
- package/dist/actions/update-document.mjs +8 -8
- package/dist/actions/update-document.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-documents.d.mts","names":[],"sources":["../../src/actions/list-documents.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;cAOzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cAI1B,oBAAA,gCAAoB,wBAAA
|
|
1
|
+
{"version":3,"file":"list-documents.d.mts","names":[],"sources":["../../src/actions/list-documents.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;cAOzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cAI1B,oBAAA,gCAAoB,wBAAA"}
|
|
@@ -17,12 +17,7 @@ declare const erpnextListEmployees: import("@keystrokehq/action").WorkflowAction
|
|
|
17
17
|
filters?: (string | number)[][] | undefined;
|
|
18
18
|
limit_start?: number | undefined;
|
|
19
19
|
limit_page_length?: number | undefined;
|
|
20
|
-
},
|
|
21
|
-
data: {
|
|
22
|
-
[x: string]: unknown;
|
|
23
|
-
name: string | null;
|
|
24
|
-
}[];
|
|
25
|
-
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
20
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
26
21
|
//#endregion
|
|
27
22
|
export { erpnextListEmployees };
|
|
28
23
|
//# sourceMappingURL=list-employees.d.cts.map
|
|
@@ -17,12 +17,7 @@ declare const erpnextListEmployees: import("@keystrokehq/action").WorkflowAction
|
|
|
17
17
|
filters?: (string | number)[][] | undefined;
|
|
18
18
|
limit_start?: number | undefined;
|
|
19
19
|
limit_page_length?: number | undefined;
|
|
20
|
-
},
|
|
21
|
-
data: {
|
|
22
|
-
[x: string]: unknown;
|
|
23
|
-
name: string | null;
|
|
24
|
-
}[];
|
|
25
|
-
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
20
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
26
21
|
//#endregion
|
|
27
22
|
export { erpnextListEmployees };
|
|
28
23
|
//# sourceMappingURL=list-employees.d.mts.map
|
|
@@ -15,9 +15,7 @@ declare const erpnextListProjects: import("@keystrokehq/action").WorkflowActionD
|
|
|
15
15
|
filters?: (string | number | boolean)[][] | undefined;
|
|
16
16
|
limit_start?: number | undefined;
|
|
17
17
|
limit_page_length?: number | undefined;
|
|
18
|
-
},
|
|
19
|
-
data: Record<string, never>[];
|
|
20
|
-
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
18
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
21
19
|
//#endregion
|
|
22
20
|
export { erpnextListProjects };
|
|
23
21
|
//# sourceMappingURL=list-projects.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-projects.d.cts","names":[],"sources":["../../src/actions/list-projects.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;cAMxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;cAIzB,mBAAA,gCAAmB,wBAAA
|
|
1
|
+
{"version":3,"file":"list-projects.d.cts","names":[],"sources":["../../src/actions/list-projects.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;cAMxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;cAIzB,mBAAA,gCAAmB,wBAAA"}
|
|
@@ -15,9 +15,7 @@ declare const erpnextListProjects: import("@keystrokehq/action").WorkflowActionD
|
|
|
15
15
|
filters?: (string | number | boolean)[][] | undefined;
|
|
16
16
|
limit_start?: number | undefined;
|
|
17
17
|
limit_page_length?: number | undefined;
|
|
18
|
-
},
|
|
19
|
-
data: Record<string, never>[];
|
|
20
|
-
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
18
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
21
19
|
//#endregion
|
|
22
20
|
export { erpnextListProjects };
|
|
23
21
|
//# sourceMappingURL=list-projects.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-projects.d.mts","names":[],"sources":["../../src/actions/list-projects.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;cAMxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;cAIzB,mBAAA,gCAAmB,wBAAA
|
|
1
|
+
{"version":3,"file":"list-projects.d.mts","names":[],"sources":["../../src/actions/list-projects.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;cAMxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;cAIzB,mBAAA,gCAAmB,wBAAA"}
|
|
@@ -15,9 +15,7 @@ declare const erpnextListTimesheets: import("@keystrokehq/action").WorkflowActio
|
|
|
15
15
|
filters?: (string | number | boolean)[][] | undefined;
|
|
16
16
|
limit_start?: number | undefined;
|
|
17
17
|
limit_page_length?: number | undefined;
|
|
18
|
-
},
|
|
19
|
-
data: Record<string, never>[];
|
|
20
|
-
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
18
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
21
19
|
//#endregion
|
|
22
20
|
export { erpnextListTimesheets };
|
|
23
21
|
//# sourceMappingURL=list-timesheets.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-timesheets.d.cts","names":[],"sources":["../../src/actions/list-timesheets.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;cAM1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAI3B,qBAAA,gCAAqB,wBAAA
|
|
1
|
+
{"version":3,"file":"list-timesheets.d.cts","names":[],"sources":["../../src/actions/list-timesheets.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;cAM1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAI3B,qBAAA,gCAAqB,wBAAA"}
|
|
@@ -15,9 +15,7 @@ declare const erpnextListTimesheets: import("@keystrokehq/action").WorkflowActio
|
|
|
15
15
|
filters?: (string | number | boolean)[][] | undefined;
|
|
16
16
|
limit_start?: number | undefined;
|
|
17
17
|
limit_page_length?: number | undefined;
|
|
18
|
-
},
|
|
19
|
-
data: Record<string, never>[];
|
|
20
|
-
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
18
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
21
19
|
//#endregion
|
|
22
20
|
export { erpnextListTimesheets };
|
|
23
21
|
//# sourceMappingURL=list-timesheets.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-timesheets.d.mts","names":[],"sources":["../../src/actions/list-timesheets.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;cAM1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAI3B,qBAAA,gCAAqB,wBAAA
|
|
1
|
+
{"version":3,"file":"list-timesheets.d.mts","names":[],"sources":["../../src/actions/list-timesheets.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;cAM1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAI3B,qBAAA,gCAAqB,wBAAA"}
|
|
@@ -9,10 +9,10 @@ const ErpnextListWebhooksInput = zod.z.object({
|
|
|
9
9
|
}).describe("Request model for listing webhook configurations in ERPNext.");
|
|
10
10
|
const ErpnextListWebhooks_WebhookItemSchema = zod.z.object({
|
|
11
11
|
name: zod.z.string().describe("Name/ID of the webhook configuration").nullable(),
|
|
12
|
-
enabled: zod.z.
|
|
13
|
-
request_url: zod.z.
|
|
14
|
-
webhook_doctype: zod.z.
|
|
15
|
-
webhook_docevent: zod.z.
|
|
12
|
+
enabled: zod.z.number().int().describe("Whether the webhook is enabled (1) or disabled (0)").nullable().optional(),
|
|
13
|
+
request_url: zod.z.string().describe("The URL that the webhook sends requests to").nullable().optional(),
|
|
14
|
+
webhook_doctype: zod.z.string().describe("The document type that triggers this webhook").nullable().optional(),
|
|
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
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.");
|
|
18
18
|
const erpnextListWebhooks = require_action.action("ERPNEXT_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.
|
|
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;AAElD,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -10,10 +10,10 @@ declare const ErpnextListWebhooksInput: z.ZodObject<{
|
|
|
10
10
|
declare const ErpnextListWebhooksOutput: z.ZodObject<{
|
|
11
11
|
data: z.ZodArray<z.ZodObject<{
|
|
12
12
|
name: z.ZodNullable<z.ZodString>;
|
|
13
|
-
enabled: z.
|
|
14
|
-
request_url: z.
|
|
15
|
-
webhook_doctype: z.
|
|
16
|
-
webhook_docevent: z.
|
|
13
|
+
enabled: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
14
|
+
request_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
webhook_doctype: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
webhook_docevent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
17
|
}, z.core.$loose>>;
|
|
18
18
|
}, z.core.$strip>;
|
|
19
19
|
declare const erpnextListWebhooks: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
@@ -21,16 +21,7 @@ declare const erpnextListWebhooks: import("@keystrokehq/action").WorkflowActionD
|
|
|
21
21
|
filters?: (string | number)[][] | undefined;
|
|
22
22
|
limit_start?: number | undefined;
|
|
23
23
|
limit_page_length?: number | undefined;
|
|
24
|
-
},
|
|
25
|
-
data: {
|
|
26
|
-
[x: string]: unknown;
|
|
27
|
-
name: string | null;
|
|
28
|
-
enabled?: number | undefined;
|
|
29
|
-
request_url?: string | undefined;
|
|
30
|
-
webhook_doctype?: string | undefined;
|
|
31
|
-
webhook_docevent?: string | undefined;
|
|
32
|
-
}[];
|
|
33
|
-
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
24
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
34
25
|
//#endregion
|
|
35
26
|
export { erpnextListWebhooks };
|
|
36
27
|
//# sourceMappingURL=list-webhooks.d.cts.map
|
|
@@ -10,10 +10,10 @@ declare const ErpnextListWebhooksInput: z.ZodObject<{
|
|
|
10
10
|
declare const ErpnextListWebhooksOutput: z.ZodObject<{
|
|
11
11
|
data: z.ZodArray<z.ZodObject<{
|
|
12
12
|
name: z.ZodNullable<z.ZodString>;
|
|
13
|
-
enabled: z.
|
|
14
|
-
request_url: z.
|
|
15
|
-
webhook_doctype: z.
|
|
16
|
-
webhook_docevent: z.
|
|
13
|
+
enabled: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
14
|
+
request_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
webhook_doctype: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
webhook_docevent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
17
|
}, z.core.$loose>>;
|
|
18
18
|
}, z.core.$strip>;
|
|
19
19
|
declare const erpnextListWebhooks: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
@@ -21,16 +21,7 @@ declare const erpnextListWebhooks: import("@keystrokehq/action").WorkflowActionD
|
|
|
21
21
|
filters?: (string | number)[][] | undefined;
|
|
22
22
|
limit_start?: number | undefined;
|
|
23
23
|
limit_page_length?: number | undefined;
|
|
24
|
-
},
|
|
25
|
-
data: {
|
|
26
|
-
[x: string]: unknown;
|
|
27
|
-
name: string | null;
|
|
28
|
-
enabled?: number | undefined;
|
|
29
|
-
request_url?: string | undefined;
|
|
30
|
-
webhook_doctype?: string | undefined;
|
|
31
|
-
webhook_docevent?: string | undefined;
|
|
32
|
-
}[];
|
|
33
|
-
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
24
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
34
25
|
//#endregion
|
|
35
26
|
export { erpnextListWebhooks };
|
|
36
27
|
//# sourceMappingURL=list-webhooks.d.mts.map
|
|
@@ -9,10 +9,10 @@ const ErpnextListWebhooksInput = z.object({
|
|
|
9
9
|
}).describe("Request model for listing webhook configurations in ERPNext.");
|
|
10
10
|
const ErpnextListWebhooks_WebhookItemSchema = z.object({
|
|
11
11
|
name: z.string().describe("Name/ID of the webhook configuration").nullable(),
|
|
12
|
-
enabled: z.
|
|
13
|
-
request_url: z.
|
|
14
|
-
webhook_doctype: z.
|
|
15
|
-
webhook_docevent: z.
|
|
12
|
+
enabled: z.number().int().describe("Whether the webhook is enabled (1) or disabled (0)").nullable().optional(),
|
|
13
|
+
request_url: z.string().describe("The URL that the webhook sends requests to").nullable().optional(),
|
|
14
|
+
webhook_doctype: z.string().describe("The document type that triggers this webhook").nullable().optional(),
|
|
15
|
+
webhook_docevent: 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
17
|
const erpnextListWebhooks = action("ERPNEXT_LIST_WEBHOOKS", {
|
|
18
18
|
slug: "erpnext-list-webhooks",
|
|
@@ -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.
|
|
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,sCAOF;AACV,CAAC"}
|
|
@@ -3,17 +3,17 @@ let zod = require("zod");
|
|
|
3
3
|
//#region src/actions/make-delivery-note.ts
|
|
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
|
-
name: zod.z.
|
|
7
|
-
items: zod.z.
|
|
8
|
-
owner: zod.z.
|
|
9
|
-
company: zod.z.
|
|
10
|
-
doctype: zod.z.
|
|
11
|
-
creation: zod.z.
|
|
12
|
-
customer: zod.z.
|
|
13
|
-
modified: zod.z.
|
|
14
|
-
docstatus: zod.z.
|
|
15
|
-
posting_date: zod.z.
|
|
16
|
-
customer_name: zod.z.
|
|
6
|
+
name: zod.z.string().describe("Unique identifier/name of the Delivery Note.").nullable().optional(),
|
|
7
|
+
items: zod.z.array(zod.z.object({})).describe("List of items to deliver, mapped from the Sales Order items.").nullable().optional(),
|
|
8
|
+
owner: zod.z.string().describe("User who created the document.").nullable().optional(),
|
|
9
|
+
company: zod.z.string().describe("Company issuing the delivery note.").nullable().optional(),
|
|
10
|
+
doctype: zod.z.string().describe("Document type, always 'Delivery Note'.").nullable().optional(),
|
|
11
|
+
creation: zod.z.string().describe("Timestamp when the document was created.").nullable().optional(),
|
|
12
|
+
customer: zod.z.string().describe("Customer name from the Sales Order.").nullable().optional(),
|
|
13
|
+
modified: zod.z.string().describe("Timestamp when the document was last modified.").nullable().optional(),
|
|
14
|
+
docstatus: zod.z.number().int().describe("Document status: 0 = Draft, 1 = Submitted, 2 = Cancelled. Will be 0 for newly created delivery notes.").nullable().optional(),
|
|
15
|
+
posting_date: zod.z.string().describe("Date when the delivery note is posted.").nullable().optional(),
|
|
16
|
+
customer_name: zod.z.string().describe("Display name of the customer.").nullable().optional()
|
|
17
17
|
}).passthrough().describe("Delivery Note document structure.");
|
|
18
18
|
const ErpnextMakeDeliveryNoteOutput = zod.z.object({ message: ErpnextMakeDeliveryNote_DeliveryNoteDocumentSchema.nullable() }).describe("Response containing the created Delivery Note draft document.");
|
|
19
19
|
const erpnextMakeDeliveryNote = require_action.action("ERPNEXT_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.
|
|
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.object({})).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}).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,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1H,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,SAAS,+DAA+D;AAE3E,MAAa,0BAA0BC,eAAAA,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -6,37 +6,22 @@ declare const ErpnextMakeDeliveryNoteInput: z.ZodObject<{
|
|
|
6
6
|
}, z.core.$strip>;
|
|
7
7
|
declare const ErpnextMakeDeliveryNoteOutput: z.ZodObject<{
|
|
8
8
|
message: z.ZodNullable<z.ZodObject<{
|
|
9
|
-
name: z.
|
|
10
|
-
items: z.
|
|
11
|
-
owner: z.
|
|
12
|
-
company: z.
|
|
13
|
-
doctype: z.
|
|
14
|
-
creation: z.
|
|
15
|
-
customer: z.
|
|
16
|
-
modified: z.
|
|
17
|
-
docstatus: z.
|
|
18
|
-
posting_date: z.
|
|
19
|
-
customer_name: z.
|
|
9
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
+
items: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{}, z.core.$strip>>>>;
|
|
11
|
+
owner: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
company: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
doctype: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
creation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
customer: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
modified: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
docstatus: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
18
|
+
posting_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
customer_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
20
|
}, z.core.$loose>>;
|
|
21
21
|
}, z.core.$strip>;
|
|
22
22
|
declare const erpnextMakeDeliveryNote: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
23
23
|
source_name: string;
|
|
24
|
-
},
|
|
25
|
-
message: {
|
|
26
|
-
[x: string]: unknown;
|
|
27
|
-
name?: string | undefined;
|
|
28
|
-
items?: Record<string, never>[] | undefined;
|
|
29
|
-
owner?: string | undefined;
|
|
30
|
-
company?: string | undefined;
|
|
31
|
-
doctype?: string | undefined;
|
|
32
|
-
creation?: string | undefined;
|
|
33
|
-
customer?: string | undefined;
|
|
34
|
-
modified?: string | undefined;
|
|
35
|
-
docstatus?: number | undefined;
|
|
36
|
-
posting_date?: string | undefined;
|
|
37
|
-
customer_name?: string | undefined;
|
|
38
|
-
} | null;
|
|
39
|
-
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
24
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
40
25
|
//#endregion
|
|
41
26
|
export { erpnextMakeDeliveryNote };
|
|
42
27
|
//# sourceMappingURL=make-delivery-note.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"make-delivery-note.d.cts","names":[],"sources":["../../src/actions/make-delivery-note.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAgB5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAI7B,uBAAA,gCAAuB,wBAAA
|
|
1
|
+
{"version":3,"file":"make-delivery-note.d.cts","names":[],"sources":["../../src/actions/make-delivery-note.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAgB5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAI7B,uBAAA,gCAAuB,wBAAA"}
|
|
@@ -6,37 +6,22 @@ declare const ErpnextMakeDeliveryNoteInput: z.ZodObject<{
|
|
|
6
6
|
}, z.core.$strip>;
|
|
7
7
|
declare const ErpnextMakeDeliveryNoteOutput: z.ZodObject<{
|
|
8
8
|
message: z.ZodNullable<z.ZodObject<{
|
|
9
|
-
name: z.
|
|
10
|
-
items: z.
|
|
11
|
-
owner: z.
|
|
12
|
-
company: z.
|
|
13
|
-
doctype: z.
|
|
14
|
-
creation: z.
|
|
15
|
-
customer: z.
|
|
16
|
-
modified: z.
|
|
17
|
-
docstatus: z.
|
|
18
|
-
posting_date: z.
|
|
19
|
-
customer_name: z.
|
|
9
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
+
items: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{}, z.core.$strip>>>>;
|
|
11
|
+
owner: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
company: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
doctype: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
creation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
customer: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
modified: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
docstatus: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
18
|
+
posting_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
customer_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
20
|
}, z.core.$loose>>;
|
|
21
21
|
}, z.core.$strip>;
|
|
22
22
|
declare const erpnextMakeDeliveryNote: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
23
23
|
source_name: string;
|
|
24
|
-
},
|
|
25
|
-
message: {
|
|
26
|
-
[x: string]: unknown;
|
|
27
|
-
name?: string | undefined;
|
|
28
|
-
items?: Record<string, never>[] | undefined;
|
|
29
|
-
owner?: string | undefined;
|
|
30
|
-
company?: string | undefined;
|
|
31
|
-
doctype?: string | undefined;
|
|
32
|
-
creation?: string | undefined;
|
|
33
|
-
customer?: string | undefined;
|
|
34
|
-
modified?: string | undefined;
|
|
35
|
-
docstatus?: number | undefined;
|
|
36
|
-
posting_date?: string | undefined;
|
|
37
|
-
customer_name?: string | undefined;
|
|
38
|
-
} | null;
|
|
39
|
-
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
24
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
40
25
|
//#endregion
|
|
41
26
|
export { erpnextMakeDeliveryNote };
|
|
42
27
|
//# sourceMappingURL=make-delivery-note.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"make-delivery-note.d.mts","names":[],"sources":["../../src/actions/make-delivery-note.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAgB5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAI7B,uBAAA,gCAAuB,wBAAA
|
|
1
|
+
{"version":3,"file":"make-delivery-note.d.mts","names":[],"sources":["../../src/actions/make-delivery-note.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAgB5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAI7B,uBAAA,gCAAuB,wBAAA"}
|
|
@@ -3,17 +3,17 @@ import { z } from "zod";
|
|
|
3
3
|
//#region src/actions/make-delivery-note.ts
|
|
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
|
-
name: z.
|
|
7
|
-
items: z.
|
|
8
|
-
owner: z.
|
|
9
|
-
company: z.
|
|
10
|
-
doctype: z.
|
|
11
|
-
creation: z.
|
|
12
|
-
customer: z.
|
|
13
|
-
modified: z.
|
|
14
|
-
docstatus: z.
|
|
15
|
-
posting_date: z.
|
|
16
|
-
customer_name: z.
|
|
6
|
+
name: z.string().describe("Unique identifier/name of the Delivery Note.").nullable().optional(),
|
|
7
|
+
items: z.array(z.object({})).describe("List of items to deliver, mapped from the Sales Order items.").nullable().optional(),
|
|
8
|
+
owner: z.string().describe("User who created the document.").nullable().optional(),
|
|
9
|
+
company: z.string().describe("Company issuing the delivery note.").nullable().optional(),
|
|
10
|
+
doctype: z.string().describe("Document type, always 'Delivery Note'.").nullable().optional(),
|
|
11
|
+
creation: z.string().describe("Timestamp when the document was created.").nullable().optional(),
|
|
12
|
+
customer: z.string().describe("Customer name from the Sales Order.").nullable().optional(),
|
|
13
|
+
modified: z.string().describe("Timestamp when the document was last modified.").nullable().optional(),
|
|
14
|
+
docstatus: z.number().int().describe("Document status: 0 = Draft, 1 = Submitted, 2 = Cancelled. Will be 0 for newly created delivery notes.").nullable().optional(),
|
|
15
|
+
posting_date: z.string().describe("Date when the delivery note is posted.").nullable().optional(),
|
|
16
|
+
customer_name: z.string().describe("Display name of the customer.").nullable().optional()
|
|
17
17
|
}).passthrough().describe("Delivery Note document structure.");
|
|
18
18
|
const erpnextMakeDeliveryNote = action("ERPNEXT_MAKE_DELIVERY_NOTE", {
|
|
19
19
|
slug: "erpnext-make-delivery-note",
|
|
@@ -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.
|
|
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.object({})).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}).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,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1H,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,SAAS,+DAOF;AACV,CAAC"}
|
|
@@ -3,30 +3,30 @@ let zod = require("zod");
|
|
|
3
3
|
//#region src/actions/make-purchase-order.ts
|
|
4
4
|
const ErpnextMakePurchaseOrderInput = zod.z.object({ source_name: zod.z.string().describe("Material Request name/ID from which to create the Purchase Order. The Material Request must exist and be of type 'Purchase' with submitted state (docstatus=1). Example: 'MAT-MR-2026-00001', 'MR-00123'.") }).describe("Request to create a Purchase Order from a Material Request.");
|
|
5
5
|
const ErpnextMakePurchaseOrder_PurchaseOrderItemSchema = zod.z.object({
|
|
6
|
-
qty: zod.z.
|
|
7
|
-
uom: zod.z.
|
|
8
|
-
rate: zod.z.
|
|
9
|
-
amount: zod.z.
|
|
10
|
-
item_code: zod.z.
|
|
11
|
-
item_name: zod.z.
|
|
12
|
-
warehouse: zod.z.
|
|
13
|
-
description: zod.z.
|
|
14
|
-
schedule_date: zod.z.
|
|
15
|
-
material_request: zod.z.
|
|
16
|
-
material_request_item: zod.z.
|
|
6
|
+
qty: zod.z.number().describe("Quantity to purchase.").nullable().optional(),
|
|
7
|
+
uom: zod.z.string().describe("Unit of measurement (e.g., 'Nos', 'Kg').").nullable().optional(),
|
|
8
|
+
rate: zod.z.number().describe("Price per unit.").nullable().optional(),
|
|
9
|
+
amount: zod.z.number().describe("Total amount for this item (qty * rate).").nullable().optional(),
|
|
10
|
+
item_code: zod.z.string().describe("Item code/SKU from the Material Request.").nullable().optional(),
|
|
11
|
+
item_name: zod.z.string().describe("Display name of the item.").nullable().optional(),
|
|
12
|
+
warehouse: zod.z.string().describe("Target warehouse for delivery.").nullable().optional(),
|
|
13
|
+
description: zod.z.string().describe("Item description.").nullable().optional(),
|
|
14
|
+
schedule_date: zod.z.string().describe("Expected delivery date for this item.").nullable().optional(),
|
|
15
|
+
material_request: zod.z.string().describe("Reference to the source Material Request.").nullable().optional(),
|
|
16
|
+
material_request_item: zod.z.string().describe("Reference to the specific Material Request item line.").nullable().optional()
|
|
17
17
|
}).passthrough().describe("Item entry in a Purchase Order.");
|
|
18
18
|
const ErpnextMakePurchaseOrder_PurchaseOrderDocumentSchema = zod.z.object({
|
|
19
|
-
name: zod.z.
|
|
20
|
-
items: zod.z.
|
|
21
|
-
owner: zod.z.
|
|
22
|
-
company: zod.z.
|
|
23
|
-
doctype: zod.z.
|
|
24
|
-
creation: zod.z.
|
|
25
|
-
modified: zod.z.
|
|
26
|
-
supplier: zod.z.
|
|
27
|
-
docstatus: zod.z.
|
|
28
|
-
schedule_date: zod.z.
|
|
29
|
-
transaction_date: zod.z.
|
|
19
|
+
name: zod.z.string().describe("Purchase Order name/ID (e.g., 'PO-2026-00001').").nullable().optional(),
|
|
20
|
+
items: zod.z.array(ErpnextMakePurchaseOrder_PurchaseOrderItemSchema).describe("List of items in the Purchase Order.").nullable().optional(),
|
|
21
|
+
owner: zod.z.string().describe("User who created the document.").nullable().optional(),
|
|
22
|
+
company: zod.z.string().describe("Company making the purchase.").nullable().optional(),
|
|
23
|
+
doctype: zod.z.string().describe("Document type, always 'Purchase Order'.").nullable().optional(),
|
|
24
|
+
creation: zod.z.string().describe("ISO timestamp when document was created.").nullable().optional(),
|
|
25
|
+
modified: zod.z.string().describe("ISO timestamp when document was last modified.").nullable().optional(),
|
|
26
|
+
supplier: zod.z.string().describe("Supplier name to purchase from.").nullable().optional(),
|
|
27
|
+
docstatus: zod.z.number().int().describe("Document status: 0=Draft, 1=Submitted, 2=Cancelled.").nullable().optional(),
|
|
28
|
+
schedule_date: zod.z.string().describe("Expected delivery date for the order.").nullable().optional(),
|
|
29
|
+
transaction_date: zod.z.string().describe("Date of the purchase order transaction.").nullable().optional()
|
|
30
30
|
}).passthrough().describe("Purchase Order document structure returned by the API.");
|
|
31
31
|
const ErpnextMakePurchaseOrderOutput = zod.z.object({ message: ErpnextMakePurchaseOrder_PurchaseOrderDocumentSchema.nullable() }).describe("Response containing the created Purchase Order draft document.");
|
|
32
32
|
const erpnextMakePurchaseOrder = require_action.action("ERPNEXT_MAKE_PURCHASE_ORDER", {
|