@keystrokehq/optimoroute 0.1.5 → 0.1.6
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/create-or-update-orders.cjs +1 -0
- package/dist/actions/create-or-update-orders.cjs.map +1 -1
- package/dist/actions/create-or-update-orders.d.cts +3 -65
- package/dist/actions/create-or-update-orders.d.cts.map +1 -1
- package/dist/actions/create-or-update-orders.d.mts +3 -65
- package/dist/actions/create-or-update-orders.d.mts.map +1 -1
- package/dist/actions/create-or-update-orders.mjs +1 -0
- package/dist/actions/create-or-update-orders.mjs.map +1 -1
- package/dist/actions/create-order.cjs +1 -0
- package/dist/actions/create-order.cjs.map +1 -1
- package/dist/actions/create-order.d.cts +3 -52
- package/dist/actions/create-order.d.cts.map +1 -1
- package/dist/actions/create-order.d.mts +3 -52
- package/dist/actions/create-order.d.mts.map +1 -1
- package/dist/actions/create-order.mjs +1 -0
- package/dist/actions/create-order.mjs.map +1 -1
- package/dist/actions/delete-all-orders.cjs +1 -0
- package/dist/actions/delete-all-orders.cjs.map +1 -1
- package/dist/actions/delete-all-orders.d.cts +3 -15
- package/dist/actions/delete-all-orders.d.cts.map +1 -1
- package/dist/actions/delete-all-orders.d.mts +3 -15
- package/dist/actions/delete-all-orders.d.mts.map +1 -1
- package/dist/actions/delete-all-orders.mjs +1 -0
- package/dist/actions/delete-all-orders.mjs.map +1 -1
- package/dist/actions/delete-order.cjs +1 -0
- package/dist/actions/delete-order.cjs.map +1 -1
- package/dist/actions/delete-order.d.cts +3 -16
- package/dist/actions/delete-order.d.cts.map +1 -1
- package/dist/actions/delete-order.d.mts +3 -16
- package/dist/actions/delete-order.d.mts.map +1 -1
- package/dist/actions/delete-order.mjs +1 -0
- package/dist/actions/delete-order.mjs.map +1 -1
- package/dist/actions/delete-orders.cjs +1 -0
- package/dist/actions/delete-orders.cjs.map +1 -1
- package/dist/actions/delete-orders.d.cts +3 -21
- package/dist/actions/delete-orders.d.cts.map +1 -1
- package/dist/actions/delete-orders.d.mts +3 -21
- package/dist/actions/delete-orders.d.mts.map +1 -1
- package/dist/actions/delete-orders.mjs +1 -0
- package/dist/actions/delete-orders.mjs.map +1 -1
- package/dist/actions/get-completion-details.cjs +1 -0
- package/dist/actions/get-completion-details.cjs.map +1 -1
- package/dist/actions/get-completion-details.d.cts +3 -19
- package/dist/actions/get-completion-details.d.cts.map +1 -1
- package/dist/actions/get-completion-details.d.mts +3 -19
- package/dist/actions/get-completion-details.d.mts.map +1 -1
- package/dist/actions/get-completion-details.mjs +1 -0
- package/dist/actions/get-completion-details.mjs.map +1 -1
- package/dist/actions/get-drivers.cjs +1 -0
- package/dist/actions/get-drivers.cjs.map +1 -1
- package/dist/actions/get-drivers.d.cts +3 -13
- package/dist/actions/get-drivers.d.cts.map +1 -1
- package/dist/actions/get-drivers.d.mts +3 -13
- package/dist/actions/get-drivers.d.mts.map +1 -1
- package/dist/actions/get-drivers.mjs +1 -0
- package/dist/actions/get-drivers.mjs.map +1 -1
- package/dist/actions/get-events.cjs +1 -0
- package/dist/actions/get-events.cjs.map +1 -1
- package/dist/actions/get-events.d.cts +3 -15
- package/dist/actions/get-events.d.cts.map +1 -1
- package/dist/actions/get-events.d.mts +3 -15
- package/dist/actions/get-events.d.mts.map +1 -1
- package/dist/actions/get-events.mjs +1 -0
- package/dist/actions/get-events.mjs.map +1 -1
- package/dist/actions/get-orders.cjs +1 -0
- package/dist/actions/get-orders.cjs.map +1 -1
- package/dist/actions/get-orders.d.cts +3 -19
- package/dist/actions/get-orders.d.cts.map +1 -1
- package/dist/actions/get-orders.d.mts +3 -19
- package/dist/actions/get-orders.d.mts.map +1 -1
- package/dist/actions/get-orders.mjs +1 -0
- package/dist/actions/get-orders.mjs.map +1 -1
- package/dist/actions/get-planning-status.cjs +1 -0
- package/dist/actions/get-planning-status.cjs.map +1 -1
- package/dist/actions/get-planning-status.d.cts +3 -15
- package/dist/actions/get-planning-status.d.cts.map +1 -1
- package/dist/actions/get-planning-status.d.mts +3 -15
- package/dist/actions/get-planning-status.d.mts.map +1 -1
- package/dist/actions/get-planning-status.mjs +1 -0
- package/dist/actions/get-planning-status.mjs.map +1 -1
- package/dist/actions/get-routes.cjs +1 -0
- package/dist/actions/get-routes.cjs.map +1 -1
- package/dist/actions/get-routes.d.cts +3 -20
- package/dist/actions/get-routes.d.cts.map +1 -1
- package/dist/actions/get-routes.d.mts +3 -20
- package/dist/actions/get-routes.d.mts.map +1 -1
- package/dist/actions/get-routes.mjs +1 -0
- package/dist/actions/get-routes.mjs.map +1 -1
- package/dist/actions/get-scheduling-info.cjs +1 -0
- package/dist/actions/get-scheduling-info.cjs.map +1 -1
- package/dist/actions/get-scheduling-info.d.cts +3 -16
- package/dist/actions/get-scheduling-info.d.cts.map +1 -1
- package/dist/actions/get-scheduling-info.d.mts +3 -16
- package/dist/actions/get-scheduling-info.d.mts.map +1 -1
- package/dist/actions/get-scheduling-info.mjs +1 -0
- package/dist/actions/get-scheduling-info.mjs.map +1 -1
- package/dist/actions/search-orders.cjs +1 -0
- package/dist/actions/search-orders.cjs.map +1 -1
- package/dist/actions/search-orders.d.cts +3 -28
- package/dist/actions/search-orders.d.cts.map +1 -1
- package/dist/actions/search-orders.d.mts +3 -28
- package/dist/actions/search-orders.d.mts.map +1 -1
- package/dist/actions/search-orders.mjs +1 -0
- package/dist/actions/search-orders.mjs.map +1 -1
- package/dist/actions/start-planning.cjs +1 -0
- package/dist/actions/start-planning.cjs.map +1 -1
- package/dist/actions/start-planning.d.cts +3 -39
- package/dist/actions/start-planning.d.cts.map +1 -1
- package/dist/actions/start-planning.d.mts +3 -39
- package/dist/actions/start-planning.d.mts.map +1 -1
- package/dist/actions/start-planning.mjs +1 -0
- package/dist/actions/start-planning.mjs.map +1 -1
- package/dist/actions/stop-planning.cjs +1 -0
- package/dist/actions/stop-planning.cjs.map +1 -1
- package/dist/actions/stop-planning.d.cts +3 -15
- package/dist/actions/stop-planning.d.cts.map +1 -1
- package/dist/actions/stop-planning.d.mts +3 -15
- package/dist/actions/stop-planning.d.mts.map +1 -1
- package/dist/actions/stop-planning.mjs +1 -0
- package/dist/actions/stop-planning.mjs.map +1 -1
- package/dist/actions/update-driver-parameters.cjs +1 -0
- package/dist/actions/update-driver-parameters.cjs.map +1 -1
- package/dist/actions/update-driver-parameters.d.cts +3 -30
- package/dist/actions/update-driver-parameters.d.cts.map +1 -1
- package/dist/actions/update-driver-parameters.d.mts +3 -30
- package/dist/actions/update-driver-parameters.d.mts.map +1 -1
- package/dist/actions/update-driver-parameters.mjs +1 -0
- package/dist/actions/update-driver-parameters.mjs.map +1 -1
- package/dist/actions/update-drivers-parameters.cjs +1 -0
- package/dist/actions/update-drivers-parameters.cjs.map +1 -1
- package/dist/actions/update-drivers-parameters.d.cts +3 -47
- package/dist/actions/update-drivers-parameters.d.cts.map +1 -1
- package/dist/actions/update-drivers-parameters.d.mts +3 -47
- package/dist/actions/update-drivers-parameters.d.mts.map +1 -1
- package/dist/actions/update-drivers-parameters.mjs +1 -0
- package/dist/actions/update-drivers-parameters.mjs.map +1 -1
- package/dist/app.cjs +2 -2
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +4 -6
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +4 -6
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +0 -1
- package/dist/app.mjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/package.json +2 -2
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { optimoroute } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/delete-all-orders.d.ts
|
|
@@ -10,21 +12,7 @@ declare const OptimorouteDeleteAllOrdersOutput: z.ZodObject<{
|
|
|
10
12
|
success: z.ZodNullable<z.ZodBoolean>;
|
|
11
13
|
planningId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
12
14
|
}, z.core.$loose>;
|
|
13
|
-
declare const optimorouteDeleteAllOrders:
|
|
14
|
-
date?: string | undefined;
|
|
15
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"optimoroute", z.ZodObject<{
|
|
16
|
-
connectionId: z.ZodString;
|
|
17
|
-
entityId: z.ZodString;
|
|
18
|
-
instanceId: z.ZodString;
|
|
19
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
20
|
-
generic_api_key: z.ZodString;
|
|
21
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"optimoroute", z.ZodObject<{
|
|
22
|
-
connectionId: z.ZodString;
|
|
23
|
-
entityId: z.ZodString;
|
|
24
|
-
instanceId: z.ZodString;
|
|
25
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
26
|
-
generic_api_key: z.ZodString;
|
|
27
|
-
}, z.core.$strip>>]>;
|
|
15
|
+
declare const optimorouteDeleteAllOrders: AppAction<typeof OptimorouteDeleteAllOrdersInput, typeof OptimorouteDeleteAllOrdersOutput, typeof optimoroute.credential>;
|
|
28
16
|
//#endregion
|
|
29
17
|
export { optimorouteDeleteAllOrders };
|
|
30
18
|
//# sourceMappingURL=delete-all-orders.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-all-orders.d.mts","names":[],"sources":["../../src/actions/delete-all-orders.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"delete-all-orders.d.mts","names":[],"sources":["../../src/actions/delete-all-orders.ts"],"mappings":";;;;;cAMa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;cAG/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;cAOhC,0BAAA,EAA4B,SAAA,QAChC,+BAAA,SACA,gCAAA,SACA,WAAA,CAAY,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-all-orders.mjs","names":[],"sources":["../../src/actions/delete-all-orders.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OptimorouteDeleteAllOrdersInput = z.object({\n date: z.string().describe(\"Optional date for which to remove orders and routes in YYYY-MM-DD format. If not provided, all orders system-wide will be deleted.\").optional(),\n}).describe(\"Request parameters for deleting all orders and planned routes.\");\nexport const OptimorouteDeleteAllOrdersOutput = z.object({\n code: z.string().describe(\"Error or warning code if operation unsuccessful\").nullable().optional(),\n message: z.string().describe(\"Human-readable error or warning description\").nullable().optional(),\n success: z.boolean().describe(\"Indicates successful deletion (true) or error occurrence (false)\").nullable(),\n planningId: z.number().int().describe(\"ID of ongoing optimization process if conflict exists\").nullable().optional(),\n}).passthrough().describe(\"Response schema for delete all orders operation.\");\n\nexport const optimorouteDeleteAllOrders = action(\"OPTIMOROUTE_DELETE_ALL_ORDERS\", {\n slug: \"optimoroute-delete-all-orders\",\n name: \"Delete All Orders\",\n description: \"Tool to remove all orders and planned routes for a specified date. Use when you need to clear orders for a specific date or delete all orders system-wide if no date is provided.\",\n input: OptimorouteDeleteAllOrdersInput,\n output: OptimorouteDeleteAllOrdersOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"delete-all-orders.mjs","names":[],"sources":["../../src/actions/delete-all-orders.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { optimoroute } from \"../app\";\n\nexport const OptimorouteDeleteAllOrdersInput = z.object({\n date: z.string().describe(\"Optional date for which to remove orders and routes in YYYY-MM-DD format. If not provided, all orders system-wide will be deleted.\").optional(),\n}).describe(\"Request parameters for deleting all orders and planned routes.\");\nexport const OptimorouteDeleteAllOrdersOutput = z.object({\n code: z.string().describe(\"Error or warning code if operation unsuccessful\").nullable().optional(),\n message: z.string().describe(\"Human-readable error or warning description\").nullable().optional(),\n success: z.boolean().describe(\"Indicates successful deletion (true) or error occurrence (false)\").nullable(),\n planningId: z.number().int().describe(\"ID of ongoing optimization process if conflict exists\").nullable().optional(),\n}).passthrough().describe(\"Response schema for delete all orders operation.\");\n\nexport const optimorouteDeleteAllOrders: AppAction<\n typeof OptimorouteDeleteAllOrdersInput,\n typeof OptimorouteDeleteAllOrdersOutput,\n typeof optimoroute.credential\n> = action(\"OPTIMOROUTE_DELETE_ALL_ORDERS\", {\n slug: \"optimoroute-delete-all-orders\",\n name: \"Delete All Orders\",\n description: \"Tool to remove all orders and planned routes for a specified date. Use when you need to clear orders for a specific date or delete all orders system-wide if no date is provided.\",\n input: OptimorouteDeleteAllOrdersInput,\n output: OptimorouteDeleteAllOrdersOutput,\n});\n"],"mappings":";;;AAgBA,MAAa,6BAIT,OAAO,iCAAiC;CAC1C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlB6C,EAAE,OAAO,EACtD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oIAAoI,CAAC,CAAC,SAAS,EAC3K,CAAC,CAAC,CAAC,SAAS,gEAgBH;CACP,QAhB8C,EAAE,OAAO;EACvD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChG,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;EAC3G,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-order.cjs","names":["z","action"],"sources":["../../src/actions/delete-order.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OptimorouteDeleteOrderInput = z.object({\n orderNo: z.string().describe(\"The user-specified identifier of the order to be deleted\"),\n forceDelete: z.boolean().describe(\"If true, typical restrictions on removing orders from active plans are bypassed. Defaults to false\").optional(),\n}).describe(\"Request parameters for deleting a single order.\");\nexport const OptimorouteDeleteOrderOutput = z.object({\n code: z.string().describe(\"Error or warning code; omitted if operation succeeds. Common codes: ERR_ORD_NOT_FOUND (order not found), ERR_MULTIPLE_ORD_FOUND (multiple orders with same orderNo), ERR_OPT_RUNNING (active optimization prevents deletion)\").nullable().optional(),\n message: z.string().describe(\"Error or warning description; omitted if operation succeeds\").nullable().optional(),\n success: z.boolean().describe(\"Indicates whether the deletion succeeded (true) or encountered an error (false)\").nullable(),\n planningId: z.number().int().describe(\"The optimization process ID if one is running for this order\").nullable().optional(),\n}).passthrough().describe(\"Response schema for delete order operation.\");\n\nexport const optimorouteDeleteOrder = action(\"OPTIMOROUTE_DELETE_ORDER\", {\n slug: \"optimoroute-delete-order\",\n name: \"Delete Order\",\n description: \"Tool to remove a single order from the OptimoRoute system. Use when you need to delete a specific order by its orderNo.\",\n input: OptimorouteDeleteOrderInput,\n output: OptimorouteDeleteOrderOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"delete-order.cjs","names":["z","action"],"sources":["../../src/actions/delete-order.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { optimoroute } from \"../app\";\n\nexport const OptimorouteDeleteOrderInput = z.object({\n orderNo: z.string().describe(\"The user-specified identifier of the order to be deleted\"),\n forceDelete: z.boolean().describe(\"If true, typical restrictions on removing orders from active plans are bypassed. Defaults to false\").optional(),\n}).describe(\"Request parameters for deleting a single order.\");\nexport const OptimorouteDeleteOrderOutput = z.object({\n code: z.string().describe(\"Error or warning code; omitted if operation succeeds. Common codes: ERR_ORD_NOT_FOUND (order not found), ERR_MULTIPLE_ORD_FOUND (multiple orders with same orderNo), ERR_OPT_RUNNING (active optimization prevents deletion)\").nullable().optional(),\n message: z.string().describe(\"Error or warning description; omitted if operation succeeds\").nullable().optional(),\n success: z.boolean().describe(\"Indicates whether the deletion succeeded (true) or encountered an error (false)\").nullable(),\n planningId: z.number().int().describe(\"The optimization process ID if one is running for this order\").nullable().optional(),\n}).passthrough().describe(\"Response schema for delete order operation.\");\n\nexport const optimorouteDeleteOrder: AppAction<\n typeof OptimorouteDeleteOrderInput,\n typeof OptimorouteDeleteOrderOutput,\n typeof optimoroute.credential\n> = action(\"OPTIMOROUTE_DELETE_ORDER\", {\n slug: \"optimoroute-delete-order\",\n name: \"Delete Order\",\n description: \"Tool to remove a single order from the OptimoRoute system. Use when you need to delete a specific order by its orderNo.\",\n input: OptimorouteDeleteOrderInput,\n output: OptimorouteDeleteOrderOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D;CACvF,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;AACnJ,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8NAA8N,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9Q,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;CAC1H,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AAEvE,MAAa,yBAITC,eAAAA,OAAO,4BAA4B;CACrC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { optimoroute } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/delete-order.d.ts
|
|
@@ -11,22 +13,7 @@ declare const OptimorouteDeleteOrderOutput: z.ZodObject<{
|
|
|
11
13
|
success: z.ZodNullable<z.ZodBoolean>;
|
|
12
14
|
planningId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
13
15
|
}, z.core.$loose>;
|
|
14
|
-
declare const optimorouteDeleteOrder:
|
|
15
|
-
orderNo: string;
|
|
16
|
-
forceDelete?: boolean | undefined;
|
|
17
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"optimoroute", z.ZodObject<{
|
|
18
|
-
connectionId: z.ZodString;
|
|
19
|
-
entityId: z.ZodString;
|
|
20
|
-
instanceId: z.ZodString;
|
|
21
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
22
|
-
generic_api_key: z.ZodString;
|
|
23
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"optimoroute", z.ZodObject<{
|
|
24
|
-
connectionId: z.ZodString;
|
|
25
|
-
entityId: z.ZodString;
|
|
26
|
-
instanceId: z.ZodString;
|
|
27
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
28
|
-
generic_api_key: z.ZodString;
|
|
29
|
-
}, z.core.$strip>>]>;
|
|
16
|
+
declare const optimorouteDeleteOrder: AppAction<typeof OptimorouteDeleteOrderInput, typeof OptimorouteDeleteOrderOutput, typeof optimoroute.credential>;
|
|
30
17
|
//#endregion
|
|
31
18
|
export { optimorouteDeleteOrder };
|
|
32
19
|
//# sourceMappingURL=delete-order.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-order.d.cts","names":[],"sources":["../../src/actions/delete-order.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"delete-order.d.cts","names":[],"sources":["../../src/actions/delete-order.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;cAI3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;cAO5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,WAAA,CAAY,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { optimoroute } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/delete-order.d.ts
|
|
@@ -11,22 +13,7 @@ declare const OptimorouteDeleteOrderOutput: z.ZodObject<{
|
|
|
11
13
|
success: z.ZodNullable<z.ZodBoolean>;
|
|
12
14
|
planningId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
13
15
|
}, z.core.$loose>;
|
|
14
|
-
declare const optimorouteDeleteOrder:
|
|
15
|
-
orderNo: string;
|
|
16
|
-
forceDelete?: boolean | undefined;
|
|
17
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"optimoroute", z.ZodObject<{
|
|
18
|
-
connectionId: z.ZodString;
|
|
19
|
-
entityId: z.ZodString;
|
|
20
|
-
instanceId: z.ZodString;
|
|
21
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
22
|
-
generic_api_key: z.ZodString;
|
|
23
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"optimoroute", z.ZodObject<{
|
|
24
|
-
connectionId: z.ZodString;
|
|
25
|
-
entityId: z.ZodString;
|
|
26
|
-
instanceId: z.ZodString;
|
|
27
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
28
|
-
generic_api_key: z.ZodString;
|
|
29
|
-
}, z.core.$strip>>]>;
|
|
16
|
+
declare const optimorouteDeleteOrder: AppAction<typeof OptimorouteDeleteOrderInput, typeof OptimorouteDeleteOrderOutput, typeof optimoroute.credential>;
|
|
30
17
|
//#endregion
|
|
31
18
|
export { optimorouteDeleteOrder };
|
|
32
19
|
//# sourceMappingURL=delete-order.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-order.d.mts","names":[],"sources":["../../src/actions/delete-order.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"delete-order.d.mts","names":[],"sources":["../../src/actions/delete-order.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;cAI3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;cAO5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,WAAA,CAAY,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-order.mjs","names":[],"sources":["../../src/actions/delete-order.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OptimorouteDeleteOrderInput = z.object({\n orderNo: z.string().describe(\"The user-specified identifier of the order to be deleted\"),\n forceDelete: z.boolean().describe(\"If true, typical restrictions on removing orders from active plans are bypassed. Defaults to false\").optional(),\n}).describe(\"Request parameters for deleting a single order.\");\nexport const OptimorouteDeleteOrderOutput = z.object({\n code: z.string().describe(\"Error or warning code; omitted if operation succeeds. Common codes: ERR_ORD_NOT_FOUND (order not found), ERR_MULTIPLE_ORD_FOUND (multiple orders with same orderNo), ERR_OPT_RUNNING (active optimization prevents deletion)\").nullable().optional(),\n message: z.string().describe(\"Error or warning description; omitted if operation succeeds\").nullable().optional(),\n success: z.boolean().describe(\"Indicates whether the deletion succeeded (true) or encountered an error (false)\").nullable(),\n planningId: z.number().int().describe(\"The optimization process ID if one is running for this order\").nullable().optional(),\n}).passthrough().describe(\"Response schema for delete order operation.\");\n\nexport const optimorouteDeleteOrder = action(\"OPTIMOROUTE_DELETE_ORDER\", {\n slug: \"optimoroute-delete-order\",\n name: \"Delete Order\",\n description: \"Tool to remove a single order from the OptimoRoute system. Use when you need to delete a specific order by its orderNo.\",\n input: OptimorouteDeleteOrderInput,\n output: OptimorouteDeleteOrderOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"delete-order.mjs","names":[],"sources":["../../src/actions/delete-order.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { optimoroute } from \"../app\";\n\nexport const OptimorouteDeleteOrderInput = z.object({\n orderNo: z.string().describe(\"The user-specified identifier of the order to be deleted\"),\n forceDelete: z.boolean().describe(\"If true, typical restrictions on removing orders from active plans are bypassed. Defaults to false\").optional(),\n}).describe(\"Request parameters for deleting a single order.\");\nexport const OptimorouteDeleteOrderOutput = z.object({\n code: z.string().describe(\"Error or warning code; omitted if operation succeeds. Common codes: ERR_ORD_NOT_FOUND (order not found), ERR_MULTIPLE_ORD_FOUND (multiple orders with same orderNo), ERR_OPT_RUNNING (active optimization prevents deletion)\").nullable().optional(),\n message: z.string().describe(\"Error or warning description; omitted if operation succeeds\").nullable().optional(),\n success: z.boolean().describe(\"Indicates whether the deletion succeeded (true) or encountered an error (false)\").nullable(),\n planningId: z.number().int().describe(\"The optimization process ID if one is running for this order\").nullable().optional(),\n}).passthrough().describe(\"Response schema for delete order operation.\");\n\nexport const optimorouteDeleteOrder: AppAction<\n typeof OptimorouteDeleteOrderInput,\n typeof OptimorouteDeleteOrderOutput,\n typeof optimoroute.credential\n> = action(\"OPTIMOROUTE_DELETE_ORDER\", {\n slug: \"optimoroute-delete-order\",\n name: \"Delete Order\",\n description: \"Tool to remove a single order from the OptimoRoute system. Use when you need to delete a specific order by its orderNo.\",\n input: OptimorouteDeleteOrderInput,\n output: OptimorouteDeleteOrderOutput,\n});\n"],"mappings":";;;AAiBA,MAAa,yBAIT,OAAO,4BAA4B;CACrC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAnByC,EAAE,OAAO;EAClD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D;EACvF,aAAa,EAAE,QAAQ,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;CACnJ,CAAC,CAAC,CAAC,SAAS,iDAgBH;CACP,QAhB0C,EAAE,OAAO;EACnD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8NAA8N,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9Q,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChH,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;EAC1H,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-orders.cjs","names":["z","action"],"sources":["../../src/actions/delete-orders.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OptimorouteDeleteOrdersInput = z.object({\n orders: z.array(z.object({\n id: z.string().describe(\"OptimoRoute-assigned unique identifier. Either orderNo or id must be provided.\").optional(),\n orderNo: z.string().describe(\"User-specified order identifier. Either orderNo or id must be provided.\").optional(),\n}).passthrough().describe(\"Represents a single order to be deleted.\")).describe(\"List of orders to delete (max 500 per request). Each order must have either orderNo or id.\"),\n forceDelete: z.boolean().default(false).describe(\"If true, ignores restrictions on deleting orders from live plans. Default: false.\").optional(),\n deleteMultiple: z.boolean().default(false).describe(\"If true, deletes all matches when multiple orders share the same identifier. Default: false.\").optional(),\n}).describe(\"Request parameters for deleting one or more orders from the system.\");\nconst OptimorouteDeleteOrders_DeletedOrderSchema = z.object({\n id: z.string().describe(\"The unique OptimoRoute-assigned identifier if used in request\").nullable().optional(),\n code: z.string().describe(\"Error code if operation failed (e.g., ERR_ORD_NOT_FOUND, ERR_MULTIPLE_ORD_FOUND)\").nullable().optional(),\n message: z.string().describe(\"Error description if operation failed\").nullable().optional(),\n orderNo: z.string().describe(\"The identifier of the deleted order or failed deletion\").nullable().optional(),\n success: z.boolean().describe(\"Whether the deletion was successful\").nullable().optional(),\n planningId: z.number().int().describe(\"ID of running optimization process, if applicable\").nullable().optional(),\n}).passthrough().describe(\"Result of a single order deletion attempt.\");\nexport const OptimorouteDeleteOrdersOutput = z.object({\n orders: z.array(OptimorouteDeleteOrders_DeletedOrderSchema).describe(\"Array of delete response objects, one per requested order\"),\n success: z.boolean().describe(\"True if at least one order was deleted; false if all deletions failed\").nullable(),\n}).passthrough().describe(\"Response schema for deleting orders.\");\n\nexport const optimorouteDeleteOrders = action(\"OPTIMOROUTE_DELETE_ORDERS\", {\n slug: \"optimoroute-delete-orders\",\n name: \"Delete Orders\",\n description: \"Tool to delete one or more orders from the system in bulk (max 500 per request). Use when you need to remove orders, either individually or in batch operations.\",\n input: OptimorouteDeleteOrdersInput,\n output: OptimorouteDeleteOrdersOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"delete-orders.cjs","names":["z","action"],"sources":["../../src/actions/delete-orders.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { optimoroute } from \"../app\";\n\nexport const OptimorouteDeleteOrdersInput = z.object({\n orders: z.array(z.object({\n id: z.string().describe(\"OptimoRoute-assigned unique identifier. Either orderNo or id must be provided.\").optional(),\n orderNo: z.string().describe(\"User-specified order identifier. Either orderNo or id must be provided.\").optional(),\n}).passthrough().describe(\"Represents a single order to be deleted.\")).describe(\"List of orders to delete (max 500 per request). Each order must have either orderNo or id.\"),\n forceDelete: z.boolean().default(false).describe(\"If true, ignores restrictions on deleting orders from live plans. Default: false.\").optional(),\n deleteMultiple: z.boolean().default(false).describe(\"If true, deletes all matches when multiple orders share the same identifier. Default: false.\").optional(),\n}).describe(\"Request parameters for deleting one or more orders from the system.\");\nconst OptimorouteDeleteOrders_DeletedOrderSchema = z.object({\n id: z.string().describe(\"The unique OptimoRoute-assigned identifier if used in request\").nullable().optional(),\n code: z.string().describe(\"Error code if operation failed (e.g., ERR_ORD_NOT_FOUND, ERR_MULTIPLE_ORD_FOUND)\").nullable().optional(),\n message: z.string().describe(\"Error description if operation failed\").nullable().optional(),\n orderNo: z.string().describe(\"The identifier of the deleted order or failed deletion\").nullable().optional(),\n success: z.boolean().describe(\"Whether the deletion was successful\").nullable().optional(),\n planningId: z.number().int().describe(\"ID of running optimization process, if applicable\").nullable().optional(),\n}).passthrough().describe(\"Result of a single order deletion attempt.\");\nexport const OptimorouteDeleteOrdersOutput = z.object({\n orders: z.array(OptimorouteDeleteOrders_DeletedOrderSchema).describe(\"Array of delete response objects, one per requested order\"),\n success: z.boolean().describe(\"True if at least one order was deleted; false if all deletions failed\").nullable(),\n}).passthrough().describe(\"Response schema for deleting orders.\");\n\nexport const optimorouteDeleteOrders: AppAction<\n typeof OptimorouteDeleteOrdersInput,\n typeof OptimorouteDeleteOrdersOutput,\n typeof optimoroute.credential\n> = action(\"OPTIMOROUTE_DELETE_ORDERS\", {\n slug: \"optimoroute-delete-orders\",\n name: \"Delete Orders\",\n description: \"Tool to delete one or more orders from the system in bulk (max 500 per request). Use when you need to remove orders, either individually or in batch operations.\",\n input: OptimorouteDeleteOrdersInput,\n output: OptimorouteDeleteOrdersOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EACzB,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF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CAChI,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;AAClH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAAsC;AAEhE,MAAa,0BAITC,eAAAA,OAAO,6BAA6B;CACtC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { optimoroute } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/delete-orders.d.ts
|
|
@@ -20,27 +22,7 @@ declare const OptimorouteDeleteOrdersOutput: z.ZodObject<{
|
|
|
20
22
|
}, z.core.$loose>>;
|
|
21
23
|
success: z.ZodNullable<z.ZodBoolean>;
|
|
22
24
|
}, z.core.$loose>;
|
|
23
|
-
declare const optimorouteDeleteOrders:
|
|
24
|
-
orders: {
|
|
25
|
-
[x: string]: unknown;
|
|
26
|
-
id?: string | undefined;
|
|
27
|
-
orderNo?: string | undefined;
|
|
28
|
-
}[];
|
|
29
|
-
forceDelete?: boolean | undefined;
|
|
30
|
-
deleteMultiple?: boolean | undefined;
|
|
31
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"optimoroute", z.ZodObject<{
|
|
32
|
-
connectionId: z.ZodString;
|
|
33
|
-
entityId: z.ZodString;
|
|
34
|
-
instanceId: z.ZodString;
|
|
35
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
36
|
-
generic_api_key: z.ZodString;
|
|
37
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"optimoroute", z.ZodObject<{
|
|
38
|
-
connectionId: z.ZodString;
|
|
39
|
-
entityId: z.ZodString;
|
|
40
|
-
instanceId: z.ZodString;
|
|
41
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
42
|
-
generic_api_key: z.ZodString;
|
|
43
|
-
}, z.core.$strip>>]>;
|
|
25
|
+
declare const optimorouteDeleteOrders: AppAction<typeof OptimorouteDeleteOrdersInput, typeof OptimorouteDeleteOrdersOutput, typeof optimoroute.credential>;
|
|
44
26
|
//#endregion
|
|
45
27
|
export { optimorouteDeleteOrders };
|
|
46
28
|
//# sourceMappingURL=delete-orders.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-orders.d.cts","names":[],"sources":["../../src/actions/delete-orders.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"delete-orders.d.cts","names":[],"sources":["../../src/actions/delete-orders.ts"],"mappings":";;;;;cAMa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;cAgB5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;cAK7B,uBAAA,EAAyB,SAAA,QAC7B,4BAAA,SACA,6BAAA,SACA,WAAA,CAAY,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { optimoroute } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/delete-orders.d.ts
|
|
@@ -20,27 +22,7 @@ declare const OptimorouteDeleteOrdersOutput: z.ZodObject<{
|
|
|
20
22
|
}, z.core.$loose>>;
|
|
21
23
|
success: z.ZodNullable<z.ZodBoolean>;
|
|
22
24
|
}, z.core.$loose>;
|
|
23
|
-
declare const optimorouteDeleteOrders:
|
|
24
|
-
orders: {
|
|
25
|
-
[x: string]: unknown;
|
|
26
|
-
id?: string | undefined;
|
|
27
|
-
orderNo?: string | undefined;
|
|
28
|
-
}[];
|
|
29
|
-
forceDelete?: boolean | undefined;
|
|
30
|
-
deleteMultiple?: boolean | undefined;
|
|
31
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"optimoroute", z.ZodObject<{
|
|
32
|
-
connectionId: z.ZodString;
|
|
33
|
-
entityId: z.ZodString;
|
|
34
|
-
instanceId: z.ZodString;
|
|
35
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
36
|
-
generic_api_key: z.ZodString;
|
|
37
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"optimoroute", z.ZodObject<{
|
|
38
|
-
connectionId: z.ZodString;
|
|
39
|
-
entityId: z.ZodString;
|
|
40
|
-
instanceId: z.ZodString;
|
|
41
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
42
|
-
generic_api_key: z.ZodString;
|
|
43
|
-
}, z.core.$strip>>]>;
|
|
25
|
+
declare const optimorouteDeleteOrders: AppAction<typeof OptimorouteDeleteOrdersInput, typeof OptimorouteDeleteOrdersOutput, typeof optimoroute.credential>;
|
|
44
26
|
//#endregion
|
|
45
27
|
export { optimorouteDeleteOrders };
|
|
46
28
|
//# sourceMappingURL=delete-orders.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-orders.d.mts","names":[],"sources":["../../src/actions/delete-orders.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"delete-orders.d.mts","names":[],"sources":["../../src/actions/delete-orders.ts"],"mappings":";;;;;cAMa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;cAgB5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;cAK7B,uBAAA,EAAyB,SAAA,QAC7B,4BAAA,SACA,6BAAA,SACA,WAAA,CAAY,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-orders.mjs","names":[],"sources":["../../src/actions/delete-orders.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OptimorouteDeleteOrdersInput = z.object({\n orders: z.array(z.object({\n id: z.string().describe(\"OptimoRoute-assigned unique identifier. Either orderNo or id must be provided.\").optional(),\n orderNo: z.string().describe(\"User-specified order identifier. Either orderNo or id must be provided.\").optional(),\n}).passthrough().describe(\"Represents a single order to be deleted.\")).describe(\"List of orders to delete (max 500 per request). Each order must have either orderNo or id.\"),\n forceDelete: z.boolean().default(false).describe(\"If true, ignores restrictions on deleting orders from live plans. Default: false.\").optional(),\n deleteMultiple: z.boolean().default(false).describe(\"If true, deletes all matches when multiple orders share the same identifier. Default: false.\").optional(),\n}).describe(\"Request parameters for deleting one or more orders from the system.\");\nconst OptimorouteDeleteOrders_DeletedOrderSchema = z.object({\n id: z.string().describe(\"The unique OptimoRoute-assigned identifier if used in request\").nullable().optional(),\n code: z.string().describe(\"Error code if operation failed (e.g., ERR_ORD_NOT_FOUND, ERR_MULTIPLE_ORD_FOUND)\").nullable().optional(),\n message: z.string().describe(\"Error description if operation failed\").nullable().optional(),\n orderNo: z.string().describe(\"The identifier of the deleted order or failed deletion\").nullable().optional(),\n success: z.boolean().describe(\"Whether the deletion was successful\").nullable().optional(),\n planningId: z.number().int().describe(\"ID of running optimization process, if applicable\").nullable().optional(),\n}).passthrough().describe(\"Result of a single order deletion attempt.\");\nexport const OptimorouteDeleteOrdersOutput = z.object({\n orders: z.array(OptimorouteDeleteOrders_DeletedOrderSchema).describe(\"Array of delete response objects, one per requested order\"),\n success: z.boolean().describe(\"True if at least one order was deleted; false if all deletions failed\").nullable(),\n}).passthrough().describe(\"Response schema for deleting orders.\");\n\nexport const optimorouteDeleteOrders = action(\"OPTIMOROUTE_DELETE_ORDERS\", {\n slug: \"optimoroute-delete-orders\",\n name: \"Delete Orders\",\n description: \"Tool to delete one or more orders from the system in bulk (max 500 per request). Use when you need to remove orders, either individually or in batch operations.\",\n input: OptimorouteDeleteOrdersInput,\n output: OptimorouteDeleteOrdersOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"delete-orders.mjs","names":[],"sources":["../../src/actions/delete-orders.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { optimoroute } from \"../app\";\n\nexport const OptimorouteDeleteOrdersInput = z.object({\n orders: z.array(z.object({\n id: z.string().describe(\"OptimoRoute-assigned unique identifier. Either orderNo or id must be provided.\").optional(),\n orderNo: z.string().describe(\"User-specified order identifier. Either orderNo or id must be provided.\").optional(),\n}).passthrough().describe(\"Represents a single order to be deleted.\")).describe(\"List of orders to delete (max 500 per request). Each order must have either orderNo or id.\"),\n forceDelete: z.boolean().default(false).describe(\"If true, ignores restrictions on deleting orders from live plans. Default: false.\").optional(),\n deleteMultiple: z.boolean().default(false).describe(\"If true, deletes all matches when multiple orders share the same identifier. Default: false.\").optional(),\n}).describe(\"Request parameters for deleting one or more orders from the system.\");\nconst OptimorouteDeleteOrders_DeletedOrderSchema = z.object({\n id: z.string().describe(\"The unique OptimoRoute-assigned identifier if used in request\").nullable().optional(),\n code: z.string().describe(\"Error code if operation failed (e.g., ERR_ORD_NOT_FOUND, ERR_MULTIPLE_ORD_FOUND)\").nullable().optional(),\n message: z.string().describe(\"Error description if operation failed\").nullable().optional(),\n orderNo: z.string().describe(\"The identifier of the deleted order or failed deletion\").nullable().optional(),\n success: z.boolean().describe(\"Whether the deletion was successful\").nullable().optional(),\n planningId: z.number().int().describe(\"ID of running optimization process, if applicable\").nullable().optional(),\n}).passthrough().describe(\"Result of a single order deletion attempt.\");\nexport const OptimorouteDeleteOrdersOutput = z.object({\n orders: z.array(OptimorouteDeleteOrders_DeletedOrderSchema).describe(\"Array of delete response objects, one per requested order\"),\n success: z.boolean().describe(\"True if at least one order was deleted; false if all deletions failed\").nullable(),\n}).passthrough().describe(\"Response schema for deleting orders.\");\n\nexport const optimorouteDeleteOrders: AppAction<\n typeof OptimorouteDeleteOrdersInput,\n typeof OptimorouteDeleteOrdersOutput,\n typeof optimoroute.credential\n> = action(\"OPTIMOROUTE_DELETE_ORDERS\", {\n slug: \"optimoroute-delete-orders\",\n name: \"Delete Orders\",\n description: \"Tool to delete one or more orders from the system in bulk (max 500 per request). Use when you need to remove or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AAC,SAAS,4CAA4C;AAMtE,MAAa,0BAIT,OAAO,6BAA6B;CACtC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAd2C,EAAE,OAAO;EACpD,QAAQ,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,2DAA2D;EAChI,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;CAClH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-completion-details.cjs","names":["z","action"],"sources":["../../src/actions/get-completion-details.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OptimorouteGetCompletionDetailsInput = z.object({\n orders: z.array(z.object({\n id: z.string().describe(\"OptimoRoute-assigned unique order identifier\").optional(),\n orderNo: z.string().describe(\"User-specified order identifier\").optional(),\n}).passthrough().describe(\"Order identifier object - must contain either orderNo or id.\")).describe(\"List of order identifiers to retrieve completion details for. Maximum 500 orders per request. Each order must contain either orderNo or id.\"),\n}).describe(\"Request parameters for retrieving completion details for one or more orders.\");\nconst OptimorouteGetCompletionDetails_FormDataSchema = z.object({\n note: z.string().describe(\"Notes entered during completion\").nullable().optional(),\n}).passthrough().describe(\"Captured form data from order completion.\");\nconst OptimorouteGetCompletionDetails_TimeInfoSchema = z.object({\n utcTime: z.string().describe(\"ISO 8601 formatted UTC time\").nullable().optional(),\n localTime: z.string().describe(\"ISO 8601 formatted local time\").nullable().optional(),\n unixTimestamp: z.number().int().describe(\"Unix timestamp\").nullable().optional(),\n}).passthrough().describe(\"Time information with multiple representations.\");\nconst OptimorouteGetCompletionDetails_CompletionDataSchema = z.object({\n form: OptimorouteGetCompletionDetails_FormDataSchema.nullable().optional(),\n status: z.string().describe(\"Order outcome status. Possible values: success, failed, rejected, in_progress, scheduled, unscheduled\").nullable().optional(),\n endTime: OptimorouteGetCompletionDetails_TimeInfoSchema.nullable().optional(),\n startTime: OptimorouteGetCompletionDetails_TimeInfoSchema.nullable().optional(),\n tracking_url: z.string().describe(\"URL for order tracking information\").nullable().optional(),\n}).passthrough().describe(\"Detailed completion information for an order.\");\nconst OptimorouteGetCompletionDetails_OrderCompletionResultSchema = z.object({\n id: z.string().describe(\"OptimoRoute-assigned unique order identifier\").nullable().optional(),\n code: z.string().describe(\"Error code (present when success is false)\").nullable().optional(),\n data: OptimorouteGetCompletionDetails_CompletionDataSchema.nullable().optional(),\n message: z.string().describe(\"Error message (present when success is false)\").nullable().optional(),\n orderNo: z.string().describe(\"User-specified order identifier\").nullable().optional(),\n success: z.boolean().describe(\"Indicates if completion data was retrieved for this specific order\").nullable(),\n}).passthrough().describe(\"Completion result for a single order.\");\nexport const OptimorouteGetCompletionDetailsOutput = z.object({\n orders: z.array(OptimorouteGetCompletionDetails_OrderCompletionResultSchema).describe(\"Array of completion objects corresponding to each requested order\"),\n success: z.boolean().describe(\"Indicates overall request success\").nullable(),\n}).passthrough().describe(\"Response schema for retrieving completion details.\");\n\nexport const optimorouteGetCompletionDetails = action(\"OPTIMOROUTE_GET_COMPLETION_DETAILS\", {\n slug: \"optimoroute-get-completion-details\",\n name: \"Get Order Completion Details\",\n description: \"Tool to retrieve completion details for one or more orders including proof of delivery data. Use when you need to check order completion status, timing details, and form data.\",\n input: OptimorouteGetCompletionDetailsInput,\n output: OptimorouteGetCompletionDetailsOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-completion-details.cjs","names":["z","action"],"sources":["../../src/actions/get-completion-details.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { optimoroute } from \"../app\";\n\nexport const OptimorouteGetCompletionDetailsInput = z.object({\n orders: z.array(z.object({\n id: z.string().describe(\"OptimoRoute-assigned unique order identifier\").optional(),\n orderNo: z.string().describe(\"User-specified order identifier\").optional(),\n}).passthrough().describe(\"Order identifier object - must contain either orderNo or id.\")).describe(\"List of order identifiers to retrieve completion details for. Maximum 500 orders per request. Each order must contain either orderNo or id.\"),\n}).describe(\"Request parameters for retrieving completion details for one or more orders.\");\nconst OptimorouteGetCompletionDetails_FormDataSchema = z.object({\n note: z.string().describe(\"Notes entered during completion\").nullable().optional(),\n}).passthrough().describe(\"Captured form data from order completion.\");\nconst OptimorouteGetCompletionDetails_TimeInfoSchema = z.object({\n utcTime: z.string().describe(\"ISO 8601 formatted UTC time\").nullable().optional(),\n localTime: z.string().describe(\"ISO 8601 formatted local time\").nullable().optional(),\n unixTimestamp: z.number().int().describe(\"Unix timestamp\").nullable().optional(),\n}).passthrough().describe(\"Time information with multiple representations.\");\nconst OptimorouteGetCompletionDetails_CompletionDataSchema = z.object({\n form: OptimorouteGetCompletionDetails_FormDataSchema.nullable().optional(),\n status: z.string().describe(\"Order outcome status. Possible values: success, failed, rejected, in_progress, scheduled, unscheduled\").nullable().optional(),\n endTime: OptimorouteGetCompletionDetails_TimeInfoSchema.nullable().optional(),\n startTime: OptimorouteGetCompletionDetails_TimeInfoSchema.nullable().optional(),\n tracking_url: z.string().describe(\"URL for order tracking information\").nullable().optional(),\n}).passthrough().describe(\"Detailed completion information for an order.\");\nconst OptimorouteGetCompletionDetails_OrderCompletionResultSchema = z.object({\n id: z.string().describe(\"OptimoRoute-assigned unique order identifier\").nullable().optional(),\n code: z.string().describe(\"Error code (present when success is false)\").nullable().optional(),\n data: OptimorouteGetCompletionDetails_CompletionDataSchema.nullable().optional(),\n message: z.string().describe(\"Error message (present when success is false)\").nullable().optional(),\n orderNo: z.string().describe(\"User-specified order identifier\").nullable().optional(),\n success: z.boolean().describe(\"Indicates if completion data was retrieved for this specific order\").nullable(),\n}).passthrough().describe(\"Completion result for a single order.\");\nexport const OptimorouteGetCompletionDetailsOutput = z.object({\n orders: z.array(OptimorouteGetCompletionDetails_OrderCompletionResultSchema).describe(\"Array of completion objects corresponding to each requested order\"),\n success: z.boolean().describe(\"Indicates overall request success\").nullable(),\n}).passthrough().describe(\"Response schema for retrieving completion details.\");\n\nexport const optimorouteGetCompletionDetails: AppAction<\n typeof OptimorouteGetCompletionDetailsInput,\n typeof OptimorouteGetCompletionDetailsOutput,\n typeof optimoroute.credential\n> = action(\"OPTIMOROUTE_GET_COMPLETION_DETAILS\", {\n slug: \"optimoroute-get-completion-details\",\n name: \"Get Order Completion Details\",\n description: \"Tool to retrieve completion details for one or more orders including proof of delivery data. Use when you need to check order completion status, timing details, and form data.\",\n input: OptimorouteGetCompletionDetailsInput,\n output: OptimorouteGetCompletionDetailsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,uCAAuCA,IAAAA,EAAE,OAAO,EAC3D,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;CACzB,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACjF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;AAC3E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,CAAC,SAAS,6IAA6I,EACjP,CAAC,CAAC,CAAC,SAAS,8EAA8E;AAC1F,MAAM,iDAAiDA,IAAAA,EAAE,OAAO,EAC9D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACnF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AACrE,MAAM,iDAAiDA,IAAAA,EAAE,OAAO;CAC9D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,eAAeA,IAAAA,EAAE,OAAO,C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E,MAAM,2DAA2D,CAAC,CAAC,SAAS,mEAAmE;CACzJ,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;AAC9E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAAoD;AAE9E,MAAa,kCAITC,eAAAA,OAAO,sCAAsC;CAC/C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { optimoroute } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-completion-details.d.ts
|
|
@@ -34,25 +36,7 @@ declare const OptimorouteGetCompletionDetailsOutput: z.ZodObject<{
|
|
|
34
36
|
}, z.core.$loose>>;
|
|
35
37
|
success: z.ZodNullable<z.ZodBoolean>;
|
|
36
38
|
}, z.core.$loose>;
|
|
37
|
-
declare const optimorouteGetCompletionDetails:
|
|
38
|
-
orders: {
|
|
39
|
-
[x: string]: unknown;
|
|
40
|
-
id?: string | undefined;
|
|
41
|
-
orderNo?: string | undefined;
|
|
42
|
-
}[];
|
|
43
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"optimoroute", z.ZodObject<{
|
|
44
|
-
connectionId: z.ZodString;
|
|
45
|
-
entityId: z.ZodString;
|
|
46
|
-
instanceId: z.ZodString;
|
|
47
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
48
|
-
generic_api_key: z.ZodString;
|
|
49
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"optimoroute", z.ZodObject<{
|
|
50
|
-
connectionId: z.ZodString;
|
|
51
|
-
entityId: z.ZodString;
|
|
52
|
-
instanceId: z.ZodString;
|
|
53
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
54
|
-
generic_api_key: z.ZodString;
|
|
55
|
-
}, z.core.$strip>>]>;
|
|
39
|
+
declare const optimorouteGetCompletionDetails: AppAction<typeof OptimorouteGetCompletionDetailsInput, typeof OptimorouteGetCompletionDetailsOutput, typeof optimoroute.credential>;
|
|
56
40
|
//#endregion
|
|
57
41
|
export { optimorouteGetCompletionDetails };
|
|
58
42
|
//# sourceMappingURL=get-completion-details.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-completion-details.d.cts","names":[],"sources":["../../src/actions/get-completion-details.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-completion-details.d.cts","names":[],"sources":["../../src/actions/get-completion-details.ts"],"mappings":";;;;;cAMa,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;;;cA6BpC,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKrC,+BAAA,EAAiC,SAAA,QACrC,oCAAA,SACA,qCAAA,SACA,WAAA,CAAY,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { optimoroute } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-completion-details.d.ts
|
|
@@ -34,25 +36,7 @@ declare const OptimorouteGetCompletionDetailsOutput: z.ZodObject<{
|
|
|
34
36
|
}, z.core.$loose>>;
|
|
35
37
|
success: z.ZodNullable<z.ZodBoolean>;
|
|
36
38
|
}, z.core.$loose>;
|
|
37
|
-
declare const optimorouteGetCompletionDetails:
|
|
38
|
-
orders: {
|
|
39
|
-
[x: string]: unknown;
|
|
40
|
-
id?: string | undefined;
|
|
41
|
-
orderNo?: string | undefined;
|
|
42
|
-
}[];
|
|
43
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"optimoroute", z.ZodObject<{
|
|
44
|
-
connectionId: z.ZodString;
|
|
45
|
-
entityId: z.ZodString;
|
|
46
|
-
instanceId: z.ZodString;
|
|
47
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
48
|
-
generic_api_key: z.ZodString;
|
|
49
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"optimoroute", z.ZodObject<{
|
|
50
|
-
connectionId: z.ZodString;
|
|
51
|
-
entityId: z.ZodString;
|
|
52
|
-
instanceId: z.ZodString;
|
|
53
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
54
|
-
generic_api_key: z.ZodString;
|
|
55
|
-
}, z.core.$strip>>]>;
|
|
39
|
+
declare const optimorouteGetCompletionDetails: AppAction<typeof OptimorouteGetCompletionDetailsInput, typeof OptimorouteGetCompletionDetailsOutput, typeof optimoroute.credential>;
|
|
56
40
|
//#endregion
|
|
57
41
|
export { optimorouteGetCompletionDetails };
|
|
58
42
|
//# sourceMappingURL=get-completion-details.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-completion-details.d.mts","names":[],"sources":["../../src/actions/get-completion-details.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-completion-details.d.mts","names":[],"sources":["../../src/actions/get-completion-details.ts"],"mappings":";;;;;cAMa,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;;;cA6BpC,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKrC,+BAAA,EAAiC,SAAA,QACrC,oCAAA,SACA,qCAAA,SACA,WAAA,CAAY,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-completion-details.mjs","names":[],"sources":["../../src/actions/get-completion-details.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OptimorouteGetCompletionDetailsInput = z.object({\n orders: z.array(z.object({\n id: z.string().describe(\"OptimoRoute-assigned unique order identifier\").optional(),\n orderNo: z.string().describe(\"User-specified order identifier\").optional(),\n}).passthrough().describe(\"Order identifier object - must contain either orderNo or id.\")).describe(\"List of order identifiers to retrieve completion details for. Maximum 500 orders per request. Each order must contain either orderNo or id.\"),\n}).describe(\"Request parameters for retrieving completion details for one or more orders.\");\nconst OptimorouteGetCompletionDetails_FormDataSchema = z.object({\n note: z.string().describe(\"Notes entered during completion\").nullable().optional(),\n}).passthrough().describe(\"Captured form data from order completion.\");\nconst OptimorouteGetCompletionDetails_TimeInfoSchema = z.object({\n utcTime: z.string().describe(\"ISO 8601 formatted UTC time\").nullable().optional(),\n localTime: z.string().describe(\"ISO 8601 formatted local time\").nullable().optional(),\n unixTimestamp: z.number().int().describe(\"Unix timestamp\").nullable().optional(),\n}).passthrough().describe(\"Time information with multiple representations.\");\nconst OptimorouteGetCompletionDetails_CompletionDataSchema = z.object({\n form: OptimorouteGetCompletionDetails_FormDataSchema.nullable().optional(),\n status: z.string().describe(\"Order outcome status. Possible values: success, failed, rejected, in_progress, scheduled, unscheduled\").nullable().optional(),\n endTime: OptimorouteGetCompletionDetails_TimeInfoSchema.nullable().optional(),\n startTime: OptimorouteGetCompletionDetails_TimeInfoSchema.nullable().optional(),\n tracking_url: z.string().describe(\"URL for order tracking information\").nullable().optional(),\n}).passthrough().describe(\"Detailed completion information for an order.\");\nconst OptimorouteGetCompletionDetails_OrderCompletionResultSchema = z.object({\n id: z.string().describe(\"OptimoRoute-assigned unique order identifier\").nullable().optional(),\n code: z.string().describe(\"Error code (present when success is false)\").nullable().optional(),\n data: OptimorouteGetCompletionDetails_CompletionDataSchema.nullable().optional(),\n message: z.string().describe(\"Error message (present when success is false)\").nullable().optional(),\n orderNo: z.string().describe(\"User-specified order identifier\").nullable().optional(),\n success: z.boolean().describe(\"Indicates if completion data was retrieved for this specific order\").nullable(),\n}).passthrough().describe(\"Completion result for a single order.\");\nexport const OptimorouteGetCompletionDetailsOutput = z.object({\n orders: z.array(OptimorouteGetCompletionDetails_OrderCompletionResultSchema).describe(\"Array of completion objects corresponding to each requested order\"),\n success: z.boolean().describe(\"Indicates overall request success\").nullable(),\n}).passthrough().describe(\"Response schema for retrieving completion details.\");\n\nexport const optimorouteGetCompletionDetails = action(\"OPTIMOROUTE_GET_COMPLETION_DETAILS\", {\n slug: \"optimoroute-get-completion-details\",\n name: \"Get Order Completion Details\",\n description: \"Tool to retrieve completion details for one or more orders including proof of delivery data. Use when you need to check order completion status, timing details, and form data.\",\n input: OptimorouteGetCompletionDetailsInput,\n output: OptimorouteGetCompletionDetailsOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-completion-details.mjs","names":[],"sources":["../../src/actions/get-completion-details.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { optimoroute } from \"../app\";\n\nexport const OptimorouteGetCompletionDetailsInput = z.object({\n orders: z.array(z.object({\n id: z.string().describe(\"OptimoRoute-assigned unique order identifier\").optional(),\n orderNo: z.string().describe(\"User-specified order identifier\").optional(),\n}).passthrough().describe(\"Order identifier object - must contain either orderNo or id.\")).describe(\"List of order identifiers to retrieve completion details for. Maximum 500 orders per request. Each order must contain either orderNo or id.\"),\n}).describe(\"Request parameters for retrieving completion details for one or more orders.\");\nconst OptimorouteGetCompletionDetails_FormDataSchema = z.object({\n note: z.string().describe(\"Notes entered during completion\").nullable().optional(),\n}).passthrough().describe(\"Captured form data from order completion.\");\nconst OptimorouteGetCompletionDetails_TimeInfoSchema = z.object({\n utcTime: z.string().describe(\"ISO 8601 formatted UTC time\").nullable().optional(),\n localTime: z.string().describe(\"ISO 8601 formatted local time\").nullable().optional(),\n unixTimestamp: z.number().int().describe(\"Unix timestamp\").nullable().optional(),\n}).passthrough().describe(\"Time information with multiple representations.\");\nconst OptimorouteGetCompletionDetails_CompletionDataSchema = z.object({\n form: OptimorouteGetCompletionDetails_FormDataSchema.nullable().optional(),\n status: z.string().describe(\"Order outcome status. Possible values: success, failed, rejected, in_progress, scheduled, unscheduled\").nullable().optional(),\n endTime: OptimorouteGetCompletionDetails_TimeInfoSchema.nullable().optional(),\n startTime: OptimorouteGetCompletionDetails_TimeInfoSchema.nullable().optional(),\n tracking_url: z.string().describe(\"URL for order tracking information\").nullable().optional(),\n}).passthrough().describe(\"Detailed completion information for an order.\");\nconst OptimorouteGetCompletionDetails_OrderCompletionResultSchema = z.object({\n id: z.string().describe(\"OptimoRoute-assigned unique order identifier\").nullable().optional(),\n code: z.string().describe(\"Error code (present when success is false)\").nullable().optional(),\n data: OptimorouteGetCompletionDetails_CompletionDataSchema.nullable().optional(),\n message: z.string().describe(\"Error message (present when success is false)\").nullable().optional(),\n orderNo: z.string().describe(\"User-specified order identifier\").nullable().optional(),\n success: z.boolean().describe(\"Indicates if completion data was retrieved for this specific order\").nullable(),\n}).passthrough().describe(\"Completion result for a single order.\");\nexport const OptimorouteGetCompletionDetailsOutput = z.object({\n orders: z.array(OptimorouteGetCompletionDetails_OrderCompletionResultSchema).describe(\"Array of completion objects corresponding to each requested order\"),\n success: z.boolean().describe(\"Indicates overall request success\").nullable(),\n}).passthrough().describe(\"Response schema for retrieving completion details.\");\n\nexport const optimorouteGetCompletionDetails: AppAction<\n typeof OptimorouteGetCompletionDetailsInput,\n typeof OptimorouteGetCompletionDetailsOutput,\n typeof optimoroute.credential\n> = action(\"OPTIMOROUTE_GET_COMPLETION_DETAILS\", {\n slug: \"optimoroute-get-completion-details\",\n name: \"Get Order Completion Details\",\n description: \"Tool to retrieve completion details for one or more orders including proof of delivery data. Use when you need to check order completion status, timing details, and form data.\",\n input: OptimorouteGetCompletionDetailsInput,\n output: OptimorouteGetCompletionDetailsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,uCAAuC,EAAE,OAAO,EAC3D,QAAQ,EAAE,MAAM,EAAE,OAAO;CACzB,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACjF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;AAC3E,C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,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,MAAM,qDAAqD,SAAS,CAAC,CAAC,SAAS;CAC/E,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;AAC/G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AAMjE,MAAa,kCAIT,OAAO,sCAAsC;CAC/C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAdmD,EAAE,OAAO;EAC5D,QAAQ,EAAE,MAAM,2DAA2D,CAAC,CAAC,SAAS,mEAAmE;EACzJ,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC9E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-drivers.cjs","names":["z","action"],"sources":["../../src/actions/get-drivers.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OptimorouteGetDriversInput = z.object({}).describe(\"Request model for GET_DRIVERS: no input parameters needed.\");\nconst OptimorouteGetDrivers_DriverSchema = z.object({\n id: z.string().describe(\"Unique identifier for the driver\").nullable().optional(),\n name: z.string().describe(\"Name of the driver\").nullable().optional(),\n color: z.string().describe(\"Color assigned to the driver\").nullable().optional(),\n email: z.string().describe(\"Driver's email address\").nullable().optional(),\n active: z.boolean().describe(\"Whether the driver is active\").nullable().optional(),\n serial: z.string().describe(\"Serial identifier for the driver\").nullable().optional(),\n externalId: z.string().describe(\"External identifier for the driver\").nullable().optional(),\n workAreaId: z.string().describe(\"Work area ID for the driver\").nullable().optional(),\n phoneNumber: z.string().describe(\"Driver's phone number\").nullable().optional(),\n vehicleType: z.string().describe(\"Vehicle type for the driver\").nullable().optional(),\n driverNumber: z.string().describe(\"Driver's number\").nullable().optional(),\n}).passthrough();\nexport const OptimorouteGetDriversOutput = z.object({\n code: z.string().describe(\"Error code if the call failed\").nullable().optional(),\n drivers: z.array(OptimorouteGetDrivers_DriverSchema).describe(\"List of drivers (present on success)\").nullable().optional(),\n message: z.string().describe(\"Error or status message from the API\").nullable().optional(),\n success: z.boolean().describe(\"Whether the API call was successful\").nullable(),\n}).passthrough();\n\nexport const optimorouteGetDrivers = action(\"OPTIMOROUTE_GET_DRIVERS\", {\n slug: \"optimoroute-get-drivers\",\n name: \"Get Drivers\",\n description: \"Tool to retrieve all drivers in the system. Use when you need up-to-date driver data including status and contact information.\",\n input: OptimorouteGetDriversInput,\n output: OptimorouteGetDriversOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-drivers.cjs","names":["z","action"],"sources":["../../src/actions/get-drivers.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { optimoroute } from \"../app\";\n\nexport const OptimorouteGetDriversInput = z.object({}).describe(\"Request model for GET_DRIVERS: no input parameters needed.\");\nconst OptimorouteGetDrivers_DriverSchema = z.object({\n id: z.string().describe(\"Unique identifier for the driver\").nullable().optional(),\n name: z.string().describe(\"Name of the driver\").nullable().optional(),\n color: z.string().describe(\"Color assigned to the driver\").nullable().optional(),\n email: z.string().describe(\"Driver's email address\").nullable().optional(),\n active: z.boolean().describe(\"Whether the driver is active\").nullable().optional(),\n serial: z.string().describe(\"Serial identifier for the driver\").nullable().optional(),\n externalId: z.string().describe(\"External identifier for the driver\").nullable().optional(),\n workAreaId: z.string().describe(\"Work area ID for the driver\").nullable().optional(),\n phoneNumber: z.string().describe(\"Driver's phone number\").nullable().optional(),\n vehicleType: z.string().describe(\"Vehicle type for the driver\").nullable().optional(),\n driverNumber: z.string().describe(\"Driver's number\").nullable().optional(),\n}).passthrough();\nexport const OptimorouteGetDriversOutput = z.object({\n code: z.string().describe(\"Error code if the call failed\").nullable().optional(),\n drivers: z.array(OptimorouteGetDrivers_DriverSchema).describe(\"List of drivers (present on success)\").nullable().optional(),\n message: z.string().describe(\"Error or status message from the API\").nullable().optional(),\n success: z.boolean().describe(\"Whether the API call was successful\").nullable(),\n}).passthrough();\n\nexport const optimorouteGetDrivers: AppAction<\n typeof OptimorouteGetDriversInput,\n typeof OptimorouteGetDriversOutput,\n typeof optimoroute.credential\n> = action(\"OPTIMOROUTE_GET_DRIVERS\", {\n slug: \"optimoroute-get-drivers\",\n name: \"Get Drivers\",\n description: \"Tool to retrieve all drivers in the system. Use when you need up-to-date driver data including status and contact information.\",\n input: OptimorouteGetDriversInput,\n output: OptimorouteGetDriversOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,4DAA4D;AAC5H,MAAM,qCAAqCA,IAAAA,EAAE,OAAO;CAClD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAA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
4
|
|
|
3
5
|
//#region src/actions/get-drivers.d.ts
|
|
@@ -20,19 +22,7 @@ declare const OptimorouteGetDriversOutput: z.ZodObject<{
|
|
|
20
22
|
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
23
|
success: z.ZodNullable<z.ZodBoolean>;
|
|
22
24
|
}, z.core.$loose>;
|
|
23
|
-
declare const optimorouteGetDrivers:
|
|
24
|
-
connectionId: z.ZodString;
|
|
25
|
-
entityId: z.ZodString;
|
|
26
|
-
instanceId: z.ZodString;
|
|
27
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
28
|
-
generic_api_key: z.ZodString;
|
|
29
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"optimoroute", z.ZodObject<{
|
|
30
|
-
connectionId: z.ZodString;
|
|
31
|
-
entityId: z.ZodString;
|
|
32
|
-
instanceId: z.ZodString;
|
|
33
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
34
|
-
generic_api_key: z.ZodString;
|
|
35
|
-
}, z.core.$strip>>]>;
|
|
25
|
+
declare const optimorouteGetDrivers: AppAction<typeof OptimorouteGetDriversInput, typeof OptimorouteGetDriversOutput, typeof optimoroute.credential>;
|
|
36
26
|
//#endregion
|
|
37
27
|
export { optimorouteGetDrivers };
|
|
38
28
|
//# sourceMappingURL=get-drivers.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-drivers.d.cts","names":[],"sources":["../../src/actions/get-drivers.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-drivers.d.cts","names":[],"sources":["../../src/actions/get-drivers.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAc1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAO3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,SACA,WAAA,CAAY,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { optimoroute } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-drivers.d.ts
|
|
@@ -20,19 +22,7 @@ declare const OptimorouteGetDriversOutput: z.ZodObject<{
|
|
|
20
22
|
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
23
|
success: z.ZodNullable<z.ZodBoolean>;
|
|
22
24
|
}, z.core.$loose>;
|
|
23
|
-
declare const optimorouteGetDrivers:
|
|
24
|
-
connectionId: z.ZodString;
|
|
25
|
-
entityId: z.ZodString;
|
|
26
|
-
instanceId: z.ZodString;
|
|
27
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
28
|
-
generic_api_key: z.ZodString;
|
|
29
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"optimoroute", z.ZodObject<{
|
|
30
|
-
connectionId: z.ZodString;
|
|
31
|
-
entityId: z.ZodString;
|
|
32
|
-
instanceId: z.ZodString;
|
|
33
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
34
|
-
generic_api_key: z.ZodString;
|
|
35
|
-
}, z.core.$strip>>]>;
|
|
25
|
+
declare const optimorouteGetDrivers: AppAction<typeof OptimorouteGetDriversInput, typeof OptimorouteGetDriversOutput, typeof optimoroute.credential>;
|
|
36
26
|
//#endregion
|
|
37
27
|
export { optimorouteGetDrivers };
|
|
38
28
|
//# sourceMappingURL=get-drivers.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-drivers.d.mts","names":[],"sources":["../../src/actions/get-drivers.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-drivers.d.mts","names":[],"sources":["../../src/actions/get-drivers.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAc1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAO3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,SACA,WAAA,CAAY,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-drivers.mjs","names":[],"sources":["../../src/actions/get-drivers.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OptimorouteGetDriversInput = z.object({}).describe(\"Request model for GET_DRIVERS: no input parameters needed.\");\nconst OptimorouteGetDrivers_DriverSchema = z.object({\n id: z.string().describe(\"Unique identifier for the driver\").nullable().optional(),\n name: z.string().describe(\"Name of the driver\").nullable().optional(),\n color: z.string().describe(\"Color assigned to the driver\").nullable().optional(),\n email: z.string().describe(\"Driver's email address\").nullable().optional(),\n active: z.boolean().describe(\"Whether the driver is active\").nullable().optional(),\n serial: z.string().describe(\"Serial identifier for the driver\").nullable().optional(),\n externalId: z.string().describe(\"External identifier for the driver\").nullable().optional(),\n workAreaId: z.string().describe(\"Work area ID for the driver\").nullable().optional(),\n phoneNumber: z.string().describe(\"Driver's phone number\").nullable().optional(),\n vehicleType: z.string().describe(\"Vehicle type for the driver\").nullable().optional(),\n driverNumber: z.string().describe(\"Driver's number\").nullable().optional(),\n}).passthrough();\nexport const OptimorouteGetDriversOutput = z.object({\n code: z.string().describe(\"Error code if the call failed\").nullable().optional(),\n drivers: z.array(OptimorouteGetDrivers_DriverSchema).describe(\"List of drivers (present on success)\").nullable().optional(),\n message: z.string().describe(\"Error or status message from the API\").nullable().optional(),\n success: z.boolean().describe(\"Whether the API call was successful\").nullable(),\n}).passthrough();\n\nexport const optimorouteGetDrivers = action(\"OPTIMOROUTE_GET_DRIVERS\", {\n slug: \"optimoroute-get-drivers\",\n name: \"Get Drivers\",\n description: \"Tool to retrieve all drivers in the system. Use when you need up-to-date driver data including status and contact information.\",\n input: OptimorouteGetDriversInput,\n output: OptimorouteGetDriversOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-drivers.mjs","names":[],"sources":["../../src/actions/get-drivers.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { optimoroute } from \"../app\";\n\nexport const OptimorouteGetDriversInput = z.object({}).describe(\"Request model for GET_DRIVERS: no input parameters needed.\");\nconst OptimorouteGetDrivers_DriverSchema = z.object({\n id: z.string().describe(\"Unique identifier for the driver\").nullable().optional(),\n name: z.string().describe(\"Name of the driver\").nullable().optional(),\n color: z.string().describe(\"Color assigned to the driver\").nullable().optional(),\n email: z.string().describe(\"Driver's email address\").nullable().optional(),\n active: z.boolean().describe(\"Whether the driver is active\").nullable().optional(),\n serial: z.string().describe(\"Serial identifier for the driver\").nullable().optional(),\n externalId: z.string().describe(\"External identifier for the driver\").nullable().optional(),\n workAreaId: z.string().describe(\"Work area ID for the driver\").nullable().optional(),\n phoneNumber: z.string().describe(\"Driver's phone number\").nullable().optional(),\n vehicleType: z.string().describe(\"Vehicle type for the driver\").nullable().optional(),\n driverNumber: z.string().describe(\"Driver's number\").nullable().optional(),\n}).passthrough();\nexport const OptimorouteGetDriversOutput = z.object({\n code: z.string().describe(\"Error code if the call failed\").nullable().optional(),\n drivers: z.array(OptimorouteGetDrivers_DriverSchema).describe(\"List of drivers (present on success)\").nullable().optional(),\n message: z.string().describe(\"Error or status message from the API\").nullable().optional(),\n success: z.boolean().describe(\"Whether the API call was successful\").nullable(),\n}).passthrough();\n\nexport const optimorouteGetDrivers: AppAction<\n typeof OptimorouteGetDriversInput,\n typeof OptimorouteGetDriversOutput,\n typeof optimoroute.credential\n> = action(\"OPTIMOROUTE_GET_DRIVERS\", {\n slug: \"optimoroute-get-drivers\",\n name: \"Get Drivers\",\n description: \"Tool to retrieve all drivers in the system. Use when you need up-to-date driver data including status and contact information.\",\n input: OptimorouteGetDriversInput,\n output: OptimorouteGetDriversOutput,\n});\n"],"mappings":";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