@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
|
@@ -7,11 +7,7 @@ declare const ErpnextGetTimezonesOutput: z.ZodObject<{
|
|
|
7
7
|
timezones: z.ZodArray<z.ZodString>;
|
|
8
8
|
}, z.core.$strip>>;
|
|
9
9
|
}, z.core.$strip>;
|
|
10
|
-
declare const erpnextGetTimezones: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>,
|
|
11
|
-
message: {
|
|
12
|
-
timezones: string[];
|
|
13
|
-
} | null;
|
|
14
|
-
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
10
|
+
declare const erpnextGetTimezones: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
15
11
|
//#endregion
|
|
16
12
|
export { erpnextGetTimezones };
|
|
17
13
|
//# sourceMappingURL=get-timezones.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-timezones.d.cts","names":[],"sources":["../../src/actions/get-timezones.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAIxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;cAIzB,mBAAA,gCAAmB,wBAAA,CAAA,MAAA"}
|
|
1
|
+
{"version":3,"file":"get-timezones.d.cts","names":[],"sources":["../../src/actions/get-timezones.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAIxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;cAIzB,mBAAA,gCAAmB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -7,11 +7,7 @@ declare const ErpnextGetTimezonesOutput: z.ZodObject<{
|
|
|
7
7
|
timezones: z.ZodArray<z.ZodString>;
|
|
8
8
|
}, z.core.$strip>>;
|
|
9
9
|
}, z.core.$strip>;
|
|
10
|
-
declare const erpnextGetTimezones: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>,
|
|
11
|
-
message: {
|
|
12
|
-
timezones: string[];
|
|
13
|
-
} | null;
|
|
14
|
-
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
10
|
+
declare const erpnextGetTimezones: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
15
11
|
//#endregion
|
|
16
12
|
export { erpnextGetTimezones };
|
|
17
13
|
//# sourceMappingURL=get-timezones.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-timezones.d.mts","names":[],"sources":["../../src/actions/get-timezones.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAIxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;cAIzB,mBAAA,gCAAmB,wBAAA,CAAA,MAAA"}
|
|
1
|
+
{"version":3,"file":"get-timezones.d.mts","names":[],"sources":["../../src/actions/get-timezones.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAIxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;cAIzB,mBAAA,gCAAmB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -9,9 +9,7 @@ declare const ErpnextGetUserRolesOutput: z.ZodObject<{
|
|
|
9
9
|
}, z.core.$strip>;
|
|
10
10
|
declare const erpnextGetUserRoles: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
11
11
|
uid?: string | undefined;
|
|
12
|
-
},
|
|
13
|
-
message: string[];
|
|
14
|
-
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
12
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
15
13
|
//#endregion
|
|
16
14
|
export { erpnextGetUserRoles };
|
|
17
15
|
//# sourceMappingURL=get-user-roles.d.cts.map
|
|
@@ -9,9 +9,7 @@ declare const ErpnextGetUserRolesOutput: z.ZodObject<{
|
|
|
9
9
|
}, z.core.$strip>;
|
|
10
10
|
declare const erpnextGetUserRoles: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
11
11
|
uid?: string | undefined;
|
|
12
|
-
},
|
|
13
|
-
message: string[];
|
|
14
|
-
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
12
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
15
13
|
//#endregion
|
|
16
14
|
export { erpnextGetUserRoles };
|
|
17
15
|
//# sourceMappingURL=get-user-roles.d.mts.map
|
|
@@ -15,9 +15,7 @@ declare const erpnextGetValue: import("@keystrokehq/action").WorkflowActionDefin
|
|
|
15
15
|
fieldname: string;
|
|
16
16
|
name?: string | undefined;
|
|
17
17
|
filters?: string | undefined;
|
|
18
|
-
},
|
|
19
|
-
message: string | number | boolean | 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 { erpnextGetValue };
|
|
23
21
|
//# sourceMappingURL=get-value.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-value.d.cts","names":[],"sources":["../../src/actions/get-value.ts"],"mappings":";;;cAIa,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;cAMpB,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;cAIrB,eAAA,gCAAe,wBAAA
|
|
1
|
+
{"version":3,"file":"get-value.d.cts","names":[],"sources":["../../src/actions/get-value.ts"],"mappings":";;;cAIa,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;cAMpB,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;cAIrB,eAAA,gCAAe,wBAAA"}
|
|
@@ -15,9 +15,7 @@ declare const erpnextGetValue: import("@keystrokehq/action").WorkflowActionDefin
|
|
|
15
15
|
fieldname: string;
|
|
16
16
|
name?: string | undefined;
|
|
17
17
|
filters?: string | undefined;
|
|
18
|
-
},
|
|
19
|
-
message: string | number | boolean | 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 { erpnextGetValue };
|
|
23
21
|
//# sourceMappingURL=get-value.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-value.d.mts","names":[],"sources":["../../src/actions/get-value.ts"],"mappings":";;;cAIa,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;cAMpB,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;cAIrB,eAAA,gCAAe,wBAAA
|
|
1
|
+
{"version":3,"file":"get-value.d.mts","names":[],"sources":["../../src/actions/get-value.ts"],"mappings":";;;cAIa,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;cAMpB,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;cAIrB,eAAA,gCAAe,wBAAA"}
|
|
@@ -6,14 +6,14 @@ const ErpnextGetWorkflowTransitionsInput = zod.z.object({
|
|
|
6
6
|
doctype: zod.z.string().describe("The DocType name of the document to get workflow transitions for.")
|
|
7
7
|
});
|
|
8
8
|
const ErpnextGetWorkflowTransitions_WorkflowTransitionSchema = zod.z.object({
|
|
9
|
-
state: zod.z.
|
|
10
|
-
action: zod.z.
|
|
11
|
-
allowed: zod.z.
|
|
12
|
-
condition: zod.z.
|
|
13
|
-
next_state: zod.z.
|
|
14
|
-
allow_self_approval: zod.z.
|
|
9
|
+
state: zod.z.string().describe("The current workflow state from which this transition can be made.").nullable().optional(),
|
|
10
|
+
action: zod.z.string().describe("The action name for this transition (e.g., 'Approve', 'Reject', 'Submit').").nullable().optional(),
|
|
11
|
+
allowed: zod.z.string().describe("The role that is allowed to perform this transition.").nullable().optional(),
|
|
12
|
+
condition: zod.z.string().describe("Optional condition that must be satisfied for this transition.").nullable().optional(),
|
|
13
|
+
next_state: zod.z.string().describe("The next workflow state after performing this transition.").nullable().optional(),
|
|
14
|
+
allow_self_approval: zod.z.number().int().describe("Whether self-approval is allowed (1 for yes, 0 for no).").nullable().optional()
|
|
15
15
|
}).describe("Individual workflow transition details.");
|
|
16
|
-
const ErpnextGetWorkflowTransitionsOutput = zod.z.object({ message: zod.z.
|
|
16
|
+
const ErpnextGetWorkflowTransitionsOutput = zod.z.object({ message: zod.z.array(ErpnextGetWorkflowTransitions_WorkflowTransitionSchema).describe("List of available workflow transitions for the document based on current state and user permissions. Returns empty list if no transitions are available or if the document has no workflow configured.").nullable().optional() }).describe("Response containing available workflow transitions for a document.");
|
|
17
17
|
const erpnextGetWorkflowTransitions = require_action.action("ERPNEXT_GET_WORKFLOW_TRANSITIONS", {
|
|
18
18
|
slug: "erpnext-get-workflow-transitions",
|
|
19
19
|
name: "Get Workflow Transitions",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-workflow-transitions.cjs","names":["z","action"],"sources":["../../src/actions/get-workflow-transitions.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetWorkflowTransitionsInput = z.object({\n name: z.string().describe(\"The name/ID of the specific document to get workflow transitions for.\"),\n doctype: z.string().describe(\"The DocType name of the document to get workflow transitions for.\"),\n});\nconst ErpnextGetWorkflowTransitions_WorkflowTransitionSchema = z.object({\n state: z.
|
|
1
|
+
{"version":3,"file":"get-workflow-transitions.cjs","names":["z","action"],"sources":["../../src/actions/get-workflow-transitions.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetWorkflowTransitionsInput = z.object({\n name: z.string().describe(\"The name/ID of the specific document to get workflow transitions for.\"),\n doctype: z.string().describe(\"The DocType name of the document to get workflow transitions for.\"),\n});\nconst ErpnextGetWorkflowTransitions_WorkflowTransitionSchema = z.object({\n state: z.string().describe(\"The current workflow state from which this transition can be made.\").nullable().optional(),\n action: z.string().describe(\"The action name for this transition (e.g., 'Approve', 'Reject', 'Submit').\").nullable().optional(),\n allowed: z.string().describe(\"The role that is allowed to perform this transition.\").nullable().optional(),\n condition: z.string().describe(\"Optional condition that must be satisfied for this transition.\").nullable().optional(),\n next_state: z.string().describe(\"The next workflow state after performing this transition.\").nullable().optional(),\n allow_self_approval: z.number().int().describe(\"Whether self-approval is allowed (1 for yes, 0 for no).\").nullable().optional(),\n}).describe(\"Individual workflow transition details.\");\nexport const ErpnextGetWorkflowTransitionsOutput = z.object({\n message: z.array(ErpnextGetWorkflowTransitions_WorkflowTransitionSchema).describe(\"List of available workflow transitions for the document based on current state and user permissions. Returns empty list if no transitions are available or if the document has no workflow configured.\").nullable().optional(),\n}).describe(\"Response containing available workflow transitions for a document.\");\n\nexport const erpnextGetWorkflowTransitions = action(\"ERPNEXT_GET_WORKFLOW_TRANSITIONS\", {\n slug: \"erpnext-get-workflow-transitions\",\n name: \"Get Workflow Transitions\",\n description: \"Tool to get available workflow transitions for a document. Use when you need to check what workflow actions are available for a specific document based on its current state and user permissions.\",\n input: ErpnextGetWorkflowTransitionsInput,\n output: ErpnextGetWorkflowTransitionsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE;CACjG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE;AAClG,CAAC;AACD,MAAM,yDAAyDA,IAAAA,EAAE,OAAO;CACtE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrH,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9H,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjH,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChI,CAAC,CAAC,CAAC,SAAS,yCAAyC;AACrD,MAAa,sCAAsCA,IAAAA,EAAE,OAAO,EAC1D,SAASA,IAAAA,EAAE,MAAM,sDAAsD,CAAC,CAAC,SAAS,wMAAwM,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAClT,CAAC,CAAC,CAAC,SAAS,oEAAoE;AAEhF,MAAa,gCAAgCC,eAAAA,OAAO,oCAAoC;CACtF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -6,28 +6,19 @@ declare const ErpnextGetWorkflowTransitionsInput: z.ZodObject<{
|
|
|
6
6
|
doctype: z.ZodString;
|
|
7
7
|
}, z.core.$strip>;
|
|
8
8
|
declare const ErpnextGetWorkflowTransitionsOutput: z.ZodObject<{
|
|
9
|
-
message: z.
|
|
10
|
-
state: z.
|
|
11
|
-
action: z.
|
|
12
|
-
allowed: z.
|
|
13
|
-
condition: z.
|
|
14
|
-
next_state: z.
|
|
15
|
-
allow_self_approval: z.
|
|
9
|
+
message: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
10
|
+
state: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
+
action: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
allowed: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
condition: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
next_state: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
allow_self_approval: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
16
16
|
}, z.core.$strip>>>>;
|
|
17
17
|
}, z.core.$strip>;
|
|
18
18
|
declare const erpnextGetWorkflowTransitions: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
19
19
|
name: string;
|
|
20
20
|
doctype: string;
|
|
21
|
-
},
|
|
22
|
-
message?: {
|
|
23
|
-
state?: string | undefined;
|
|
24
|
-
action?: string | undefined;
|
|
25
|
-
allowed?: string | undefined;
|
|
26
|
-
condition?: string | undefined;
|
|
27
|
-
next_state?: string | undefined;
|
|
28
|
-
allow_self_approval?: number | undefined;
|
|
29
|
-
}[] | undefined;
|
|
30
|
-
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
21
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
31
22
|
//#endregion
|
|
32
23
|
export { erpnextGetWorkflowTransitions };
|
|
33
24
|
//# sourceMappingURL=get-workflow-transitions.d.cts.map
|
|
@@ -6,28 +6,19 @@ declare const ErpnextGetWorkflowTransitionsInput: z.ZodObject<{
|
|
|
6
6
|
doctype: z.ZodString;
|
|
7
7
|
}, z.core.$strip>;
|
|
8
8
|
declare const ErpnextGetWorkflowTransitionsOutput: z.ZodObject<{
|
|
9
|
-
message: z.
|
|
10
|
-
state: z.
|
|
11
|
-
action: z.
|
|
12
|
-
allowed: z.
|
|
13
|
-
condition: z.
|
|
14
|
-
next_state: z.
|
|
15
|
-
allow_self_approval: z.
|
|
9
|
+
message: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
10
|
+
state: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
+
action: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
allowed: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
condition: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
next_state: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
allow_self_approval: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
16
16
|
}, z.core.$strip>>>>;
|
|
17
17
|
}, z.core.$strip>;
|
|
18
18
|
declare const erpnextGetWorkflowTransitions: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
19
19
|
name: string;
|
|
20
20
|
doctype: string;
|
|
21
|
-
},
|
|
22
|
-
message?: {
|
|
23
|
-
state?: string | undefined;
|
|
24
|
-
action?: string | undefined;
|
|
25
|
-
allowed?: string | undefined;
|
|
26
|
-
condition?: string | undefined;
|
|
27
|
-
next_state?: string | undefined;
|
|
28
|
-
allow_self_approval?: number | undefined;
|
|
29
|
-
}[] | undefined;
|
|
30
|
-
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
21
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
31
22
|
//#endregion
|
|
32
23
|
export { erpnextGetWorkflowTransitions };
|
|
33
24
|
//# sourceMappingURL=get-workflow-transitions.d.mts.map
|
|
@@ -6,19 +6,19 @@ const ErpnextGetWorkflowTransitionsInput = z.object({
|
|
|
6
6
|
doctype: z.string().describe("The DocType name of the document to get workflow transitions for.")
|
|
7
7
|
});
|
|
8
8
|
const ErpnextGetWorkflowTransitions_WorkflowTransitionSchema = z.object({
|
|
9
|
-
state: z.
|
|
10
|
-
action: z.
|
|
11
|
-
allowed: z.
|
|
12
|
-
condition: z.
|
|
13
|
-
next_state: z.
|
|
14
|
-
allow_self_approval: z.
|
|
9
|
+
state: z.string().describe("The current workflow state from which this transition can be made.").nullable().optional(),
|
|
10
|
+
action: z.string().describe("The action name for this transition (e.g., 'Approve', 'Reject', 'Submit').").nullable().optional(),
|
|
11
|
+
allowed: z.string().describe("The role that is allowed to perform this transition.").nullable().optional(),
|
|
12
|
+
condition: z.string().describe("Optional condition that must be satisfied for this transition.").nullable().optional(),
|
|
13
|
+
next_state: z.string().describe("The next workflow state after performing this transition.").nullable().optional(),
|
|
14
|
+
allow_self_approval: z.number().int().describe("Whether self-approval is allowed (1 for yes, 0 for no).").nullable().optional()
|
|
15
15
|
}).describe("Individual workflow transition details.");
|
|
16
16
|
const erpnextGetWorkflowTransitions = action("ERPNEXT_GET_WORKFLOW_TRANSITIONS", {
|
|
17
17
|
slug: "erpnext-get-workflow-transitions",
|
|
18
18
|
name: "Get Workflow Transitions",
|
|
19
19
|
description: "Tool to get available workflow transitions for a document. Use when you need to check what workflow actions are available for a specific document based on its current state and user permissions.",
|
|
20
20
|
input: ErpnextGetWorkflowTransitionsInput,
|
|
21
|
-
output: z.object({ message: z.
|
|
21
|
+
output: z.object({ message: z.array(ErpnextGetWorkflowTransitions_WorkflowTransitionSchema).describe("List of available workflow transitions for the document based on current state and user permissions. Returns empty list if no transitions are available or if the document has no workflow configured.").nullable().optional() }).describe("Response containing available workflow transitions for a document.")
|
|
22
22
|
});
|
|
23
23
|
//#endregion
|
|
24
24
|
export { erpnextGetWorkflowTransitions };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-workflow-transitions.mjs","names":[],"sources":["../../src/actions/get-workflow-transitions.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetWorkflowTransitionsInput = z.object({\n name: z.string().describe(\"The name/ID of the specific document to get workflow transitions for.\"),\n doctype: z.string().describe(\"The DocType name of the document to get workflow transitions for.\"),\n});\nconst ErpnextGetWorkflowTransitions_WorkflowTransitionSchema = z.object({\n state: z.
|
|
1
|
+
{"version":3,"file":"get-workflow-transitions.mjs","names":[],"sources":["../../src/actions/get-workflow-transitions.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextGetWorkflowTransitionsInput = z.object({\n name: z.string().describe(\"The name/ID of the specific document to get workflow transitions for.\"),\n doctype: z.string().describe(\"The DocType name of the document to get workflow transitions for.\"),\n});\nconst ErpnextGetWorkflowTransitions_WorkflowTransitionSchema = z.object({\n state: z.string().describe(\"The current workflow state from which this transition can be made.\").nullable().optional(),\n action: z.string().describe(\"The action name for this transition (e.g., 'Approve', 'Reject', 'Submit').\").nullable().optional(),\n allowed: z.string().describe(\"The role that is allowed to perform this transition.\").nullable().optional(),\n condition: z.string().describe(\"Optional condition that must be satisfied for this transition.\").nullable().optional(),\n next_state: z.string().describe(\"The next workflow state after performing this transition.\").nullable().optional(),\n allow_self_approval: z.number().int().describe(\"Whether self-approval is allowed (1 for yes, 0 for no).\").nullable().optional(),\n}).describe(\"Individual workflow transition details.\");\nexport const ErpnextGetWorkflowTransitionsOutput = z.object({\n message: z.array(ErpnextGetWorkflowTransitions_WorkflowTransitionSchema).describe(\"List of available workflow transitions for the document based on current state and user permissions. Returns empty list if no transitions are available or if the document has no workflow configured.\").nullable().optional(),\n}).describe(\"Response containing available workflow transitions for a document.\");\n\nexport const erpnextGetWorkflowTransitions = action(\"ERPNEXT_GET_WORKFLOW_TRANSITIONS\", {\n slug: \"erpnext-get-workflow-transitions\",\n name: \"Get Workflow Transitions\",\n description: \"Tool to get available workflow transitions for a document. Use when you need to check what workflow actions are available for a specific document based on its current state and user permissions.\",\n input: ErpnextGetWorkflowTransitionsInput,\n output: ErpnextGetWorkflowTransitionsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqC,EAAE,OAAO;CACzD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE;CACjG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE;AAClG,CAAC;AACD,MAAM,yDAAyD,EAAE,OAAO;CACtE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrH,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9H,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrH,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjH,qBAAqB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChI,CAAC,CAAC,CAAC,SAAS,yCAAyC;AAKrD,MAAa,gCAAgC,OAAO,oCAAoC;CACtF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATiD,EAAE,OAAO,EAC1D,SAAS,EAAE,MAAM,sDAAsD,CAAC,CAAC,SAAS,wMAAwM,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAClT,CAAC,CAAC,CAAC,SAAS,oEAOF;AACV,CAAC"}
|
|
@@ -9,9 +9,7 @@ declare const ErpnextInsertDocumentOutput: z.ZodObject<{
|
|
|
9
9
|
}, z.core.$strip>;
|
|
10
10
|
declare const erpnextInsertDocument: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
11
11
|
doc: Record<string, unknown>;
|
|
12
|
-
},
|
|
13
|
-
data: Record<string, unknown>;
|
|
14
|
-
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
12
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
15
13
|
//#endregion
|
|
16
14
|
export { erpnextInsertDocument };
|
|
17
15
|
//# sourceMappingURL=insert-document.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"insert-document.d.cts","names":[],"sources":["../../src/actions/insert-document.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cAG1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAI3B,qBAAA,gCAAqB,wBAAA;OAMhC,MAAA;AAAA
|
|
1
|
+
{"version":3,"file":"insert-document.d.cts","names":[],"sources":["../../src/actions/insert-document.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cAG1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAI3B,qBAAA,gCAAqB,wBAAA;OAMhC,MAAA;AAAA"}
|
|
@@ -9,9 +9,7 @@ declare const ErpnextInsertDocumentOutput: z.ZodObject<{
|
|
|
9
9
|
}, z.core.$strip>;
|
|
10
10
|
declare const erpnextInsertDocument: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
11
11
|
doc: Record<string, unknown>;
|
|
12
|
-
},
|
|
13
|
-
data: Record<string, unknown>;
|
|
14
|
-
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
12
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
15
13
|
//#endregion
|
|
16
14
|
export { erpnextInsertDocument };
|
|
17
15
|
//# sourceMappingURL=insert-document.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"insert-document.d.mts","names":[],"sources":["../../src/actions/insert-document.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cAG1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAI3B,qBAAA,gCAAqB,wBAAA;OAMhC,MAAA;AAAA
|
|
1
|
+
{"version":3,"file":"insert-document.d.mts","names":[],"sources":["../../src/actions/insert-document.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cAG1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAI3B,qBAAA,gCAAqB,wBAAA;OAMhC,MAAA;AAAA"}
|
|
@@ -3,14 +3,14 @@ let zod = require("zod");
|
|
|
3
3
|
//#region src/actions/insert-many.ts
|
|
4
4
|
const ErpnextInsertManyInput = zod.z.object({ docs: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Array of document objects to insert. Each document must have a 'doctype' field that specifies the type of document (e.g., 'Note', 'Customer', 'Item'). Additional fields depend on the specific doctype requirements. For example, a Note requires 'title' and 'content' fields.") }).describe("Request model for inserting multiple documents at once.");
|
|
5
5
|
const ErpnextInsertMany_InsertedDocumentModelSchema = zod.z.object({
|
|
6
|
-
name: zod.z.
|
|
7
|
-
doctype: zod.z.
|
|
6
|
+
name: zod.z.string().describe("The unique identifier (name) of the inserted document.").nullable().optional(),
|
|
7
|
+
doctype: zod.z.string().describe("The type of document that was inserted.").nullable().optional()
|
|
8
8
|
}).passthrough().describe("Model for a successfully inserted document in the response.");
|
|
9
|
-
const ErpnextInsertManyOutput = zod.z.object({ message: zod.z.
|
|
9
|
+
const ErpnextInsertManyOutput = zod.z.object({ message: zod.z.union([
|
|
10
10
|
zod.z.array(ErpnextInsertMany_InsertedDocumentModelSchema),
|
|
11
11
|
zod.z.array(zod.z.string()),
|
|
12
12
|
zod.z.string()
|
|
13
|
-
]).optional()
|
|
13
|
+
]).nullable().optional() }).describe("Response model for the insert_many operation.");
|
|
14
14
|
const erpnextInsertMany = require_action.action("ERPNEXT_INSERT_MANY", {
|
|
15
15
|
slug: "erpnext-insert-many",
|
|
16
16
|
name: "Insert Multiple Documents",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"insert-many.cjs","names":["z","action"],"sources":["../../src/actions/insert-many.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextInsertManyInput = z.object({\n docs: z.array(z.record(z.string(), z.unknown())).describe(\"Array of document objects to insert. Each document must have a 'doctype' field that specifies the type of document (e.g., 'Note', 'Customer', 'Item'). Additional fields depend on the specific doctype requirements. For example, a Note requires 'title' and 'content' fields.\"),\n}).describe(\"Request model for inserting multiple documents at once.\");\nconst ErpnextInsertMany_InsertedDocumentModelSchema = z.object({\n name: z.
|
|
1
|
+
{"version":3,"file":"insert-many.cjs","names":["z","action"],"sources":["../../src/actions/insert-many.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextInsertManyInput = z.object({\n docs: z.array(z.record(z.string(), z.unknown())).describe(\"Array of document objects to insert. Each document must have a 'doctype' field that specifies the type of document (e.g., 'Note', 'Customer', 'Item'). Additional fields depend on the specific doctype requirements. For example, a Note requires 'title' and 'content' fields.\"),\n}).describe(\"Request model for inserting multiple documents at once.\");\nconst ErpnextInsertMany_InsertedDocumentModelSchema = z.object({\n name: z.string().describe(\"The unique identifier (name) of the inserted document.\").nullable().optional(),\n doctype: z.string().describe(\"The type of document that was inserted.\").nullable().optional(),\n}).passthrough().describe(\"Model for a successfully inserted document in the response.\");\nexport const ErpnextInsertManyOutput = z.object({\n message: z.union([z.array(ErpnextInsertMany_InsertedDocumentModelSchema), z.array(z.string()), z.string()]).nullable().optional(),\n}).describe(\"Response model for the insert_many operation.\");\n\nexport const erpnextInsertMany = action(\"ERPNEXT_INSERT_MANY\", {\n slug: \"erpnext-insert-many\",\n name: \"Insert Multiple Documents\",\n description: \"Tool to insert multiple documents at once into ERPNext/Frappe. Use when you need to create multiple records (Notes, Customers, Items, etc.) in a single API call for better efficiency.\",\n input: ErpnextInsertManyInput,\n output: ErpnextInsertManyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyBA,IAAAA,EAAE,OAAO,EAC7C,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,kRAAkR,EAC9U,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAM,gDAAgDA,IAAAA,EAAE,OAAO;CAC7D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6DAA6D;AACvF,MAAa,0BAA0BA,IAAAA,EAAE,OAAO,EAC9C,SAASA,IAAAA,EAAE,MAAM;CAACA,IAAAA,EAAE,MAAM,6CAA6C;CAAGA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC;CAAGA,IAAAA,EAAE,OAAO;AAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAClI,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAE3D,MAAa,oBAAoBC,eAAAA,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -5,20 +5,14 @@ declare const ErpnextInsertManyInput: z.ZodObject<{
|
|
|
5
5
|
docs: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
6
6
|
}, z.core.$strip>;
|
|
7
7
|
declare const ErpnextInsertManyOutput: z.ZodObject<{
|
|
8
|
-
message: z.
|
|
9
|
-
name: z.
|
|
10
|
-
doctype: z.
|
|
8
|
+
message: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
|
|
9
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
+
doctype: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
11
|
}, z.core.$loose>>, z.ZodArray<z.ZodString>, z.ZodString]>>>;
|
|
12
12
|
}, z.core.$strip>;
|
|
13
13
|
declare const erpnextInsertMany: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
14
14
|
docs: Record<string, unknown>[];
|
|
15
|
-
},
|
|
16
|
-
message?: string | string[] | {
|
|
17
|
-
[x: string]: unknown;
|
|
18
|
-
name?: string | undefined;
|
|
19
|
-
doctype?: string | undefined;
|
|
20
|
-
}[] | undefined;
|
|
21
|
-
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
15
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
22
16
|
//#endregion
|
|
23
17
|
export { erpnextInsertMany };
|
|
24
18
|
//# sourceMappingURL=insert-many.d.cts.map
|
|
@@ -5,20 +5,14 @@ declare const ErpnextInsertManyInput: z.ZodObject<{
|
|
|
5
5
|
docs: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
6
6
|
}, z.core.$strip>;
|
|
7
7
|
declare const ErpnextInsertManyOutput: z.ZodObject<{
|
|
8
|
-
message: z.
|
|
9
|
-
name: z.
|
|
10
|
-
doctype: z.
|
|
8
|
+
message: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
|
|
9
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
+
doctype: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
11
|
}, z.core.$loose>>, z.ZodArray<z.ZodString>, z.ZodString]>>>;
|
|
12
12
|
}, z.core.$strip>;
|
|
13
13
|
declare const erpnextInsertMany: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
14
14
|
docs: Record<string, unknown>[];
|
|
15
|
-
},
|
|
16
|
-
message?: string | string[] | {
|
|
17
|
-
[x: string]: unknown;
|
|
18
|
-
name?: string | undefined;
|
|
19
|
-
doctype?: string | undefined;
|
|
20
|
-
}[] | undefined;
|
|
21
|
-
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
15
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
22
16
|
//#endregion
|
|
23
17
|
export { erpnextInsertMany };
|
|
24
18
|
//# sourceMappingURL=insert-many.d.mts.map
|
|
@@ -3,19 +3,19 @@ import { z } from "zod";
|
|
|
3
3
|
//#region src/actions/insert-many.ts
|
|
4
4
|
const ErpnextInsertManyInput = z.object({ docs: z.array(z.record(z.string(), z.unknown())).describe("Array of document objects to insert. Each document must have a 'doctype' field that specifies the type of document (e.g., 'Note', 'Customer', 'Item'). Additional fields depend on the specific doctype requirements. For example, a Note requires 'title' and 'content' fields.") }).describe("Request model for inserting multiple documents at once.");
|
|
5
5
|
const ErpnextInsertMany_InsertedDocumentModelSchema = z.object({
|
|
6
|
-
name: z.
|
|
7
|
-
doctype: z.
|
|
6
|
+
name: z.string().describe("The unique identifier (name) of the inserted document.").nullable().optional(),
|
|
7
|
+
doctype: z.string().describe("The type of document that was inserted.").nullable().optional()
|
|
8
8
|
}).passthrough().describe("Model for a successfully inserted document in the response.");
|
|
9
9
|
const erpnextInsertMany = action("ERPNEXT_INSERT_MANY", {
|
|
10
10
|
slug: "erpnext-insert-many",
|
|
11
11
|
name: "Insert Multiple Documents",
|
|
12
12
|
description: "Tool to insert multiple documents at once into ERPNext/Frappe. Use when you need to create multiple records (Notes, Customers, Items, etc.) in a single API call for better efficiency.",
|
|
13
13
|
input: ErpnextInsertManyInput,
|
|
14
|
-
output: z.object({ message: z.
|
|
14
|
+
output: z.object({ message: z.union([
|
|
15
15
|
z.array(ErpnextInsertMany_InsertedDocumentModelSchema),
|
|
16
16
|
z.array(z.string()),
|
|
17
17
|
z.string()
|
|
18
|
-
]).optional()
|
|
18
|
+
]).nullable().optional() }).describe("Response model for the insert_many operation.")
|
|
19
19
|
});
|
|
20
20
|
//#endregion
|
|
21
21
|
export { erpnextInsertMany };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"insert-many.mjs","names":[],"sources":["../../src/actions/insert-many.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextInsertManyInput = z.object({\n docs: z.array(z.record(z.string(), z.unknown())).describe(\"Array of document objects to insert. Each document must have a 'doctype' field that specifies the type of document (e.g., 'Note', 'Customer', 'Item'). Additional fields depend on the specific doctype requirements. For example, a Note requires 'title' and 'content' fields.\"),\n}).describe(\"Request model for inserting multiple documents at once.\");\nconst ErpnextInsertMany_InsertedDocumentModelSchema = z.object({\n name: z.
|
|
1
|
+
{"version":3,"file":"insert-many.mjs","names":[],"sources":["../../src/actions/insert-many.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ErpnextInsertManyInput = z.object({\n docs: z.array(z.record(z.string(), z.unknown())).describe(\"Array of document objects to insert. Each document must have a 'doctype' field that specifies the type of document (e.g., 'Note', 'Customer', 'Item'). Additional fields depend on the specific doctype requirements. For example, a Note requires 'title' and 'content' fields.\"),\n}).describe(\"Request model for inserting multiple documents at once.\");\nconst ErpnextInsertMany_InsertedDocumentModelSchema = z.object({\n name: z.string().describe(\"The unique identifier (name) of the inserted document.\").nullable().optional(),\n doctype: z.string().describe(\"The type of document that was inserted.\").nullable().optional(),\n}).passthrough().describe(\"Model for a successfully inserted document in the response.\");\nexport const ErpnextInsertManyOutput = z.object({\n message: z.union([z.array(ErpnextInsertMany_InsertedDocumentModelSchema), z.array(z.string()), z.string()]).nullable().optional(),\n}).describe(\"Response model for the insert_many operation.\");\n\nexport const erpnextInsertMany = action(\"ERPNEXT_INSERT_MANY\", {\n slug: \"erpnext-insert-many\",\n name: \"Insert Multiple Documents\",\n description: \"Tool to insert multiple documents at once into ERPNext/Frappe. Use when you need to create multiple records (Notes, Customers, Items, etc.) in a single API call for better efficiency.\",\n input: ErpnextInsertManyInput,\n output: ErpnextInsertManyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyB,EAAE,OAAO,EAC7C,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,kRAAkR,EAC9U,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAM,gDAAgD,EAAE,OAAO;CAC7D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6DAA6D;AAKvF,MAAa,oBAAoB,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATqC,EAAE,OAAO,EAC9C,SAAS,EAAE,MAAM;EAAC,EAAE,MAAM,6CAA6C;EAAG,EAAE,MAAM,EAAE,OAAO,CAAC;EAAG,EAAE,OAAO;CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAClI,CAAC,CAAC,CAAC,SAAS,+CAOF;AACV,CAAC"}
|
|
@@ -12,7 +12,7 @@ const ErpnextListDoctypesInput = zod.z.object({
|
|
|
12
12
|
limit_start: zod.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(),
|
|
13
13
|
limit_page_length: zod.z.number().int().describe("Number of items to return per page. By default, listings are paginated with 20 items per page.").optional()
|
|
14
14
|
}).describe("Request model for listing DocTypes in ERPNext.");
|
|
15
|
-
const ErpnextListDoctypesOutput = zod.z.object({ data: zod.z.
|
|
15
|
+
const ErpnextListDoctypesOutput = zod.z.object({ data: zod.z.array(zod.z.object({})).describe("List of DocType objects. Each object contains the requested fields (at minimum, the 'name' field).").nullable().optional() }).describe("Response model for listing DocTypes in ERPNext.");
|
|
16
16
|
const erpnextListDoctypes = require_action.action("ERPNEXT_LIST_DOCTYPES", {
|
|
17
17
|
slug: "erpnext-list-doctypes",
|
|
18
18
|
name: "List DocTypes",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-doctypes.cjs","names":["z","action"],"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.
|
|
1
|
+
{"version":3,"file":"list-doctypes.cjs","names":["z","action"],"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.object({})).describe(\"List of DocType objects. Each object contains the requested fields (at minimum, the 'name' field).\").nullable().optional(),\n}).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":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,iLAAiL,CAAC,CAAC,SAAS;CACjO,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,2MAA2M,CAAC,CAAC,SAAS;CAC3T,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uMAAuM,CAAC,CAAC,SAAS;CACzP,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS;AAC1J,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAC5D,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACjK,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAE7D,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -8,16 +8,14 @@ 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.
|
|
11
|
+
data: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{}, z.core.$strip>>>>;
|
|
12
12
|
}, z.core.$strip>;
|
|
13
13
|
declare const erpnextListDoctypes: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
14
14
|
fields?: string[] | undefined;
|
|
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>[] | undefined;
|
|
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 { erpnextListDoctypes };
|
|
23
21
|
//# sourceMappingURL=list-doctypes.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-doctypes.d.cts","names":[],"sources":["../../src/actions/list-doctypes.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;cAMxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;cAIzB,mBAAA,gCAAmB,wBAAA
|
|
1
|
+
{"version":3,"file":"list-doctypes.d.cts","names":[],"sources":["../../src/actions/list-doctypes.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;cAMxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;cAIzB,mBAAA,gCAAmB,wBAAA"}
|
|
@@ -8,16 +8,14 @@ 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.
|
|
11
|
+
data: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{}, z.core.$strip>>>>;
|
|
12
12
|
}, z.core.$strip>;
|
|
13
13
|
declare const erpnextListDoctypes: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
14
14
|
fields?: string[] | undefined;
|
|
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>[] | undefined;
|
|
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 { erpnextListDoctypes };
|
|
23
21
|
//# sourceMappingURL=list-doctypes.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-doctypes.d.mts","names":[],"sources":["../../src/actions/list-doctypes.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;cAMxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;cAIzB,mBAAA,gCAAmB,wBAAA
|
|
1
|
+
{"version":3,"file":"list-doctypes.d.mts","names":[],"sources":["../../src/actions/list-doctypes.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;cAMxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;cAIzB,mBAAA,gCAAmB,wBAAA"}
|
|
@@ -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.
|
|
18
|
+
output: z.object({ data: z.array(z.object({})).describe("List of DocType objects. Each object contains the requested fields (at minimum, the 'name' field).").nullable().optional() }).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.
|
|
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.object({})).describe(\"List of DocType objects. Each object contains the requested fields (at minimum, the 'name' field).\").nullable().optional(),\n}).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,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACjK,CAAC,CAAC,CAAC,SAAS,iDAOF;AACV,CAAC"}
|
|
@@ -17,9 +17,7 @@ declare const erpnextListDocuments: 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: Record<string, never>[];
|
|
22
|
-
}, 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]>;
|
|
23
21
|
//#endregion
|
|
24
22
|
export { erpnextListDocuments };
|
|
25
23
|
//# sourceMappingURL=list-documents.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-documents.d.cts","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.cts","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,9 +17,7 @@ declare const erpnextListDocuments: 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: Record<string, never>[];
|
|
22
|
-
}, 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]>;
|
|
23
21
|
//#endregion
|
|
24
22
|
export { erpnextListDocuments };
|
|
25
23
|
//# sourceMappingURL=list-documents.d.mts.map
|