@keystrokehq/optimoroute 0.1.0
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/README.md +17 -0
- package/dist/action.cjs +21 -0
- package/dist/action.cjs.map +1 -0
- package/dist/action.mjs +21 -0
- package/dist/action.mjs.map +1 -0
- package/dist/actions/create-or-update-orders.cjs +102 -0
- package/dist/actions/create-or-update-orders.cjs.map +1 -0
- package/dist/actions/create-or-update-orders.d.cts +9 -0
- package/dist/actions/create-or-update-orders.d.cts.map +1 -0
- package/dist/actions/create-or-update-orders.d.mts +9 -0
- package/dist/actions/create-or-update-orders.d.mts.map +1 -0
- package/dist/actions/create-or-update-orders.mjs +101 -0
- package/dist/actions/create-or-update-orders.mjs.map +1 -0
- package/dist/actions/create-order.cjs +71 -0
- package/dist/actions/create-order.cjs.map +1 -0
- package/dist/actions/create-order.d.cts +9 -0
- package/dist/actions/create-order.d.cts.map +1 -0
- package/dist/actions/create-order.d.mts +9 -0
- package/dist/actions/create-order.d.mts.map +1 -0
- package/dist/actions/create-order.mjs +70 -0
- package/dist/actions/create-order.mjs.map +1 -0
- package/dist/actions/delete-all-orders.cjs +21 -0
- package/dist/actions/delete-all-orders.cjs.map +1 -0
- package/dist/actions/delete-all-orders.d.cts +9 -0
- package/dist/actions/delete-all-orders.d.cts.map +1 -0
- package/dist/actions/delete-all-orders.d.mts +9 -0
- package/dist/actions/delete-all-orders.d.mts.map +1 -0
- package/dist/actions/delete-all-orders.mjs +18 -0
- package/dist/actions/delete-all-orders.mjs.map +1 -0
- package/dist/actions/delete-order.cjs +24 -0
- package/dist/actions/delete-order.cjs.map +1 -0
- package/dist/actions/delete-order.d.cts +9 -0
- package/dist/actions/delete-order.d.cts.map +1 -0
- package/dist/actions/delete-order.d.mts +9 -0
- package/dist/actions/delete-order.d.mts.map +1 -0
- package/dist/actions/delete-order.mjs +21 -0
- package/dist/actions/delete-order.mjs.map +1 -0
- package/dist/actions/delete-orders.cjs +34 -0
- package/dist/actions/delete-orders.cjs.map +1 -0
- package/dist/actions/delete-orders.d.cts +9 -0
- package/dist/actions/delete-orders.d.cts.map +1 -0
- package/dist/actions/delete-orders.d.mts +9 -0
- package/dist/actions/delete-orders.d.mts.map +1 -0
- package/dist/actions/delete-orders.mjs +33 -0
- package/dist/actions/delete-orders.mjs.map +1 -0
- package/dist/actions/get-completion-details.cjs +43 -0
- package/dist/actions/get-completion-details.cjs.map +1 -0
- package/dist/actions/get-completion-details.d.cts +9 -0
- package/dist/actions/get-completion-details.d.cts.map +1 -0
- package/dist/actions/get-completion-details.d.mts +9 -0
- package/dist/actions/get-completion-details.d.mts.map +1 -0
- package/dist/actions/get-completion-details.mjs +42 -0
- package/dist/actions/get-completion-details.mjs.map +1 -0
- package/dist/actions/get-drivers.cjs +34 -0
- package/dist/actions/get-drivers.cjs.map +1 -0
- package/dist/actions/get-drivers.d.cts +9 -0
- package/dist/actions/get-drivers.d.cts.map +1 -0
- package/dist/actions/get-drivers.d.mts +9 -0
- package/dist/actions/get-drivers.d.mts.map +1 -0
- package/dist/actions/get-drivers.mjs +33 -0
- package/dist/actions/get-drivers.mjs.map +1 -0
- package/dist/actions/get-events.cjs +40 -0
- package/dist/actions/get-events.cjs.map +1 -0
- package/dist/actions/get-events.d.cts +9 -0
- package/dist/actions/get-events.d.cts.map +1 -0
- package/dist/actions/get-events.d.mts +9 -0
- package/dist/actions/get-events.d.mts.map +1 -0
- package/dist/actions/get-events.mjs +39 -0
- package/dist/actions/get-events.mjs.map +1 -0
- package/dist/actions/get-orders.cjs +88 -0
- package/dist/actions/get-orders.cjs.map +1 -0
- package/dist/actions/get-orders.d.cts +9 -0
- package/dist/actions/get-orders.d.cts.map +1 -0
- package/dist/actions/get-orders.d.mts +9 -0
- package/dist/actions/get-orders.d.mts.map +1 -0
- package/dist/actions/get-orders.mjs +87 -0
- package/dist/actions/get-orders.mjs.map +1 -0
- package/dist/actions/get-planning-status.cjs +22 -0
- package/dist/actions/get-planning-status.cjs.map +1 -0
- package/dist/actions/get-planning-status.d.cts +9 -0
- package/dist/actions/get-planning-status.d.cts.map +1 -0
- package/dist/actions/get-planning-status.d.mts +9 -0
- package/dist/actions/get-planning-status.d.mts.map +1 -0
- package/dist/actions/get-planning-status.mjs +19 -0
- package/dist/actions/get-planning-status.mjs.map +1 -0
- package/dist/actions/get-routes.cjs +66 -0
- package/dist/actions/get-routes.cjs.map +1 -0
- package/dist/actions/get-routes.d.cts +9 -0
- package/dist/actions/get-routes.d.cts.map +1 -0
- package/dist/actions/get-routes.d.mts +9 -0
- package/dist/actions/get-routes.d.mts.map +1 -0
- package/dist/actions/get-routes.mjs +65 -0
- package/dist/actions/get-routes.mjs.map +1 -0
- package/dist/actions/get-scheduling-info.cjs +38 -0
- package/dist/actions/get-scheduling-info.cjs.map +1 -0
- package/dist/actions/get-scheduling-info.d.cts +9 -0
- package/dist/actions/get-scheduling-info.d.cts.map +1 -0
- package/dist/actions/get-scheduling-info.d.mts +9 -0
- package/dist/actions/get-scheduling-info.d.mts.map +1 -0
- package/dist/actions/get-scheduling-info.mjs +37 -0
- package/dist/actions/get-scheduling-info.mjs.map +1 -0
- package/dist/actions/index.cjs +35 -0
- package/dist/actions/index.d.cts +18 -0
- package/dist/actions/index.d.mts +18 -0
- package/dist/actions/index.mjs +18 -0
- package/dist/actions/search-orders.cjs +86 -0
- package/dist/actions/search-orders.cjs.map +1 -0
- package/dist/actions/search-orders.d.cts +9 -0
- package/dist/actions/search-orders.d.cts.map +1 -0
- package/dist/actions/search-orders.d.mts +9 -0
- package/dist/actions/search-orders.d.mts.map +1 -0
- package/dist/actions/search-orders.mjs +85 -0
- package/dist/actions/search-orders.mjs.map +1 -0
- package/dist/actions/start-planning.cjs +55 -0
- package/dist/actions/start-planning.cjs.map +1 -0
- package/dist/actions/start-planning.d.cts +9 -0
- package/dist/actions/start-planning.d.cts.map +1 -0
- package/dist/actions/start-planning.d.mts +9 -0
- package/dist/actions/start-planning.d.mts.map +1 -0
- package/dist/actions/start-planning.mjs +52 -0
- package/dist/actions/start-planning.mjs.map +1 -0
- package/dist/actions/stop-planning.cjs +20 -0
- package/dist/actions/stop-planning.cjs.map +1 -0
- package/dist/actions/stop-planning.d.cts +9 -0
- package/dist/actions/stop-planning.d.cts.map +1 -0
- package/dist/actions/stop-planning.d.mts +9 -0
- package/dist/actions/stop-planning.d.mts.map +1 -0
- package/dist/actions/stop-planning.mjs +17 -0
- package/dist/actions/stop-planning.mjs.map +1 -0
- package/dist/actions/update-driver-parameters.cjs +37 -0
- package/dist/actions/update-driver-parameters.cjs.map +1 -0
- package/dist/actions/update-driver-parameters.d.cts +9 -0
- package/dist/actions/update-driver-parameters.d.cts.map +1 -0
- package/dist/actions/update-driver-parameters.d.mts +9 -0
- package/dist/actions/update-driver-parameters.d.mts.map +1 -0
- package/dist/actions/update-driver-parameters.mjs +34 -0
- package/dist/actions/update-driver-parameters.mjs.map +1 -0
- package/dist/actions/update-drivers-parameters.cjs +61 -0
- package/dist/actions/update-drivers-parameters.cjs.map +1 -0
- package/dist/actions/update-drivers-parameters.d.cts +9 -0
- package/dist/actions/update-drivers-parameters.d.cts.map +1 -0
- package/dist/actions/update-drivers-parameters.d.mts +9 -0
- package/dist/actions/update-drivers-parameters.d.mts.map +1 -0
- package/dist/actions/update-drivers-parameters.mjs +60 -0
- package/dist/actions/update-drivers-parameters.mjs.map +1 -0
- package/dist/app.cjs +9 -0
- package/dist/app.cjs.map +1 -0
- package/dist/app.d.cts +5 -0
- package/dist/app.d.cts.map +1 -0
- package/dist/app.d.mts +5 -0
- package/dist/app.d.mts.map +1 -0
- package/dist/app.mjs +10 -0
- package/dist/app.mjs.map +1 -0
- package/dist/catalog.cjs +15 -0
- package/dist/catalog.cjs.map +1 -0
- package/dist/catalog.d.cts +14 -0
- package/dist/catalog.d.cts.map +1 -0
- package/dist/catalog.d.mts +14 -0
- package/dist/catalog.d.mts.map +1 -0
- package/dist/catalog.mjs +15 -0
- package/dist/catalog.mjs.map +1 -0
- package/dist/execute.cjs +18 -0
- package/dist/execute.cjs.map +1 -0
- package/dist/execute.mjs +18 -0
- package/dist/execute.mjs.map +1 -0
- package/dist/index.cjs +40 -0
- package/dist/index.d.cts +20 -0
- package/dist/index.d.mts +20 -0
- package/dist/index.mjs +21 -0
- package/package.json +49 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/get-events.ts
|
|
4
|
+
const OptimorouteGetEventsInput = zod.z.object({ after_tag: zod.z.string().describe("Marker for a prior point in time. Submit this value to retrieve only events occurring after the previous call. Leave empty for initial requests to get all events.").optional() }).describe("Request parameters for retrieving mobile events from drivers' field operations.");
|
|
5
|
+
const OptimorouteGetEvents_PlannedStartTimeSchema = zod.z.object({
|
|
6
|
+
utcTime: zod.z.string().describe("ISO 8601 UTC timestamp").nullable().optional(),
|
|
7
|
+
localTime: zod.z.string().describe("ISO 8601 timestamp in order location timezone").nullable().optional(),
|
|
8
|
+
unixTimestamp: zod.z.number().int().describe("Unix timestamp (seconds since January 1, 1970 UTC)").nullable().optional()
|
|
9
|
+
}).describe("Time object for planned route start time (used with start_time_changed event).");
|
|
10
|
+
const OptimorouteGetEvents_EventSchema = zod.z.object({
|
|
11
|
+
event: zod.z.string().describe("Event type code: on_duty, off_duty, start_service, success, failed, rejected, start_route, end_route, start_time_changed"),
|
|
12
|
+
orderId: zod.z.string().describe("OptimoRoute-assigned order ID").nullable().optional(),
|
|
13
|
+
orderNo: zod.z.string().describe("Order identifier").nullable().optional(),
|
|
14
|
+
utcTime: zod.z.string().describe("ISO 8601 UTC timestamp"),
|
|
15
|
+
localTime: zod.z.string().describe("ISO 8601 timestamp in order location timezone"),
|
|
16
|
+
driverName: zod.z.string().describe("Driver identifier").nullable().optional(),
|
|
17
|
+
driverSerial: zod.z.string().describe("Driver serial number").nullable().optional(),
|
|
18
|
+
unixTimestamp: zod.z.number().int().describe("Unix timestamp (seconds since January 1, 1970 UTC)"),
|
|
19
|
+
driverExternalId: zod.z.string().describe("External driver identifier").nullable().optional(),
|
|
20
|
+
plannedStartTime: OptimorouteGetEvents_PlannedStartTimeSchema.nullable().optional()
|
|
21
|
+
}).describe("Represents a single mobile event from field operations.");
|
|
22
|
+
const OptimorouteGetEventsOutput = zod.z.object({
|
|
23
|
+
tag: zod.z.string().describe("Marker for the final event in this response; use as after_tag in subsequent requests").nullable().optional(),
|
|
24
|
+
code: zod.z.string().describe("Error code if operation failed").nullable().optional(),
|
|
25
|
+
events: zod.z.array(OptimorouteGetEvents_EventSchema).describe("Collection of event objects in chronological order").nullable().optional(),
|
|
26
|
+
message: zod.z.string().describe("Error or status message from the API").nullable().optional(),
|
|
27
|
+
success: zod.z.boolean().describe("Indicates successful operation"),
|
|
28
|
+
remainingEvents: zod.z.number().int().describe("Count of undelivered events; indicates whether more calls are needed").nullable().optional()
|
|
29
|
+
}).describe("Response schema for retrieving mobile events.");
|
|
30
|
+
const optimorouteGetEvents = require_action.action("OPTIMOROUTE_GET_EVENTS", {
|
|
31
|
+
slug: "optimoroute-get-events",
|
|
32
|
+
name: "Get Mobile Events",
|
|
33
|
+
description: "Tool to retrieve mobile events from drivers' field operations. Use when you need to track order completions, status changes (success, failed, on_duty, off_duty), and other field events for the currently active plan.",
|
|
34
|
+
input: OptimorouteGetEventsInput,
|
|
35
|
+
output: OptimorouteGetEventsOutput
|
|
36
|
+
});
|
|
37
|
+
//#endregion
|
|
38
|
+
exports.optimorouteGetEvents = optimorouteGetEvents;
|
|
39
|
+
|
|
40
|
+
//# sourceMappingURL=get-events.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-events.cjs","names":["z","action"],"sources":["../../src/actions/get-events.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OptimorouteGetEventsInput: z.ZodTypeAny = z.object({\n after_tag: z.string().describe(\"Marker for a prior point in time. Submit this value to retrieve only events occurring after the previous call. Leave empty for initial requests to get all events.\").optional(),\n}).describe(\"Request parameters for retrieving mobile events from drivers' field operations.\");\nconst OptimorouteGetEvents_PlannedStartTimeSchema: z.ZodTypeAny = z.object({\n utcTime: z.string().describe(\"ISO 8601 UTC timestamp\").nullable().optional(),\n localTime: z.string().describe(\"ISO 8601 timestamp in order location timezone\").nullable().optional(),\n unixTimestamp: z.number().int().describe(\"Unix timestamp (seconds since January 1, 1970 UTC)\").nullable().optional(),\n}).describe(\"Time object for planned route start time (used with start_time_changed event).\");\nconst OptimorouteGetEvents_EventSchema: z.ZodTypeAny = z.object({\n event: z.string().describe(\"Event type code: on_duty, off_duty, start_service, success, failed, rejected, start_route, end_route, start_time_changed\"),\n orderId: z.string().describe(\"OptimoRoute-assigned order ID\").nullable().optional(),\n orderNo: z.string().describe(\"Order identifier\").nullable().optional(),\n utcTime: z.string().describe(\"ISO 8601 UTC timestamp\"),\n localTime: z.string().describe(\"ISO 8601 timestamp in order location timezone\"),\n driverName: z.string().describe(\"Driver identifier\").nullable().optional(),\n driverSerial: z.string().describe(\"Driver serial number\").nullable().optional(),\n unixTimestamp: z.number().int().describe(\"Unix timestamp (seconds since January 1, 1970 UTC)\"),\n driverExternalId: z.string().describe(\"External driver identifier\").nullable().optional(),\n plannedStartTime: OptimorouteGetEvents_PlannedStartTimeSchema.nullable().optional(),\n}).describe(\"Represents a single mobile event from field operations.\");\nexport const OptimorouteGetEventsOutput: z.ZodTypeAny = z.object({\n tag: z.string().describe(\"Marker for the final event in this response; use as after_tag in subsequent requests\").nullable().optional(),\n code: z.string().describe(\"Error code if operation failed\").nullable().optional(),\n events: z.array(OptimorouteGetEvents_EventSchema).describe(\"Collection of event objects in chronological order\").nullable().optional(),\n message: z.string().describe(\"Error or status message from the API\").nullable().optional(),\n success: z.boolean().describe(\"Indicates successful operation\"),\n remainingEvents: z.number().int().describe(\"Count of undelivered events; indicates whether more calls are needed\").nullable().optional(),\n}).describe(\"Response schema for retrieving mobile events.\");\n\nexport const optimorouteGetEvents = action(\"OPTIMOROUTE_GET_EVENTS\", {\n slug: \"optimoroute-get-events\",\n name: \"Get Mobile Events\",\n description: \"Tool to retrieve mobile events from drivers' field operations. Use when you need to track order completions, status changes (success, failed, on_duty, off_duty), and other field events for the currently active plan.\",\n input: OptimorouteGetEventsInput,\n output: OptimorouteGetEventsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0CA,IAAAA,EAAE,OAAO,EAC9D,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oKAAoK,CAAC,CAAC,SAAS,EAChN,CAAC,CAAC,CAAC,SAAS,iFAAiF;AAC7F,MAAM,8CAA4DA,IAAAA,EAAE,OAAO;CACzE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrH,CAAC,CAAC,CAAC,SAAS,gFAAgF;AAC5F,MAAM,mCAAiDA,IAAAA,EAAE,OAAO;CAC9D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0HAA0H;CACrJ,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;CACrD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CAC9E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,S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3
|
+
//#region src/actions/get-events.d.ts
|
|
4
|
+
declare const OptimorouteGetEventsInput: z.ZodTypeAny;
|
|
5
|
+
declare const OptimorouteGetEventsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const optimorouteGetEvents: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { optimorouteGetEvents };
|
|
9
|
+
//# sourceMappingURL=get-events.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-events.d.cts","names":[],"sources":["../../src/actions/get-events.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAEoD;AAAA,cAkBjF,0BAAA,EAA4B,CAAA,CAAE,UAOiB;AAAA,cAE/C,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-events.d.ts
|
|
4
|
+
declare const OptimorouteGetEventsInput: z.ZodTypeAny;
|
|
5
|
+
declare const OptimorouteGetEventsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const optimorouteGetEvents: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { optimorouteGetEvents };
|
|
9
|
+
//# sourceMappingURL=get-events.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-events.d.mts","names":[],"sources":["../../src/actions/get-events.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAEoD;AAAA,cAkBjF,0BAAA,EAA4B,CAAA,CAAE,UAOiB;AAAA,cAE/C,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/get-events.ts
|
|
4
|
+
const OptimorouteGetEventsInput = z.object({ after_tag: z.string().describe("Marker for a prior point in time. Submit this value to retrieve only events occurring after the previous call. Leave empty for initial requests to get all events.").optional() }).describe("Request parameters for retrieving mobile events from drivers' field operations.");
|
|
5
|
+
const OptimorouteGetEvents_PlannedStartTimeSchema = z.object({
|
|
6
|
+
utcTime: z.string().describe("ISO 8601 UTC timestamp").nullable().optional(),
|
|
7
|
+
localTime: z.string().describe("ISO 8601 timestamp in order location timezone").nullable().optional(),
|
|
8
|
+
unixTimestamp: z.number().int().describe("Unix timestamp (seconds since January 1, 1970 UTC)").nullable().optional()
|
|
9
|
+
}).describe("Time object for planned route start time (used with start_time_changed event).");
|
|
10
|
+
const OptimorouteGetEvents_EventSchema = z.object({
|
|
11
|
+
event: z.string().describe("Event type code: on_duty, off_duty, start_service, success, failed, rejected, start_route, end_route, start_time_changed"),
|
|
12
|
+
orderId: z.string().describe("OptimoRoute-assigned order ID").nullable().optional(),
|
|
13
|
+
orderNo: z.string().describe("Order identifier").nullable().optional(),
|
|
14
|
+
utcTime: z.string().describe("ISO 8601 UTC timestamp"),
|
|
15
|
+
localTime: z.string().describe("ISO 8601 timestamp in order location timezone"),
|
|
16
|
+
driverName: z.string().describe("Driver identifier").nullable().optional(),
|
|
17
|
+
driverSerial: z.string().describe("Driver serial number").nullable().optional(),
|
|
18
|
+
unixTimestamp: z.number().int().describe("Unix timestamp (seconds since January 1, 1970 UTC)"),
|
|
19
|
+
driverExternalId: z.string().describe("External driver identifier").nullable().optional(),
|
|
20
|
+
plannedStartTime: OptimorouteGetEvents_PlannedStartTimeSchema.nullable().optional()
|
|
21
|
+
}).describe("Represents a single mobile event from field operations.");
|
|
22
|
+
const optimorouteGetEvents = action("OPTIMOROUTE_GET_EVENTS", {
|
|
23
|
+
slug: "optimoroute-get-events",
|
|
24
|
+
name: "Get Mobile Events",
|
|
25
|
+
description: "Tool to retrieve mobile events from drivers' field operations. Use when you need to track order completions, status changes (success, failed, on_duty, off_duty), and other field events for the currently active plan.",
|
|
26
|
+
input: OptimorouteGetEventsInput,
|
|
27
|
+
output: z.object({
|
|
28
|
+
tag: z.string().describe("Marker for the final event in this response; use as after_tag in subsequent requests").nullable().optional(),
|
|
29
|
+
code: z.string().describe("Error code if operation failed").nullable().optional(),
|
|
30
|
+
events: z.array(OptimorouteGetEvents_EventSchema).describe("Collection of event objects in chronological order").nullable().optional(),
|
|
31
|
+
message: z.string().describe("Error or status message from the API").nullable().optional(),
|
|
32
|
+
success: z.boolean().describe("Indicates successful operation"),
|
|
33
|
+
remainingEvents: z.number().int().describe("Count of undelivered events; indicates whether more calls are needed").nullable().optional()
|
|
34
|
+
}).describe("Response schema for retrieving mobile events.")
|
|
35
|
+
});
|
|
36
|
+
//#endregion
|
|
37
|
+
export { optimorouteGetEvents };
|
|
38
|
+
|
|
39
|
+
//# sourceMappingURL=get-events.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-events.mjs","names":[],"sources":["../../src/actions/get-events.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OptimorouteGetEventsInput: z.ZodTypeAny = z.object({\n after_tag: z.string().describe(\"Marker for a prior point in time. Submit this value to retrieve only events occurring after the previous call. Leave empty for initial requests to get all events.\").optional(),\n}).describe(\"Request parameters for retrieving mobile events from drivers' field operations.\");\nconst OptimorouteGetEvents_PlannedStartTimeSchema: z.ZodTypeAny = z.object({\n utcTime: z.string().describe(\"ISO 8601 UTC timestamp\").nullable().optional(),\n localTime: z.string().describe(\"ISO 8601 timestamp in order location timezone\").nullable().optional(),\n unixTimestamp: z.number().int().describe(\"Unix timestamp (seconds since January 1, 1970 UTC)\").nullable().optional(),\n}).describe(\"Time object for planned route start time (used with start_time_changed event).\");\nconst OptimorouteGetEvents_EventSchema: z.ZodTypeAny = z.object({\n event: z.string().describe(\"Event type code: on_duty, off_duty, start_service, success, failed, rejected, start_route, end_route, start_time_changed\"),\n orderId: z.string().describe(\"OptimoRoute-assigned order ID\").nullable().optional(),\n orderNo: z.string().describe(\"Order identifier\").nullable().optional(),\n utcTime: z.string().describe(\"ISO 8601 UTC timestamp\"),\n localTime: z.string().describe(\"ISO 8601 timestamp in order location timezone\"),\n driverName: z.string().describe(\"Driver identifier\").nullable().optional(),\n driverSerial: z.string().describe(\"Driver serial number\").nullable().optional(),\n unixTimestamp: z.number().int().describe(\"Unix timestamp (seconds since January 1, 1970 UTC)\"),\n driverExternalId: z.string().describe(\"External driver identifier\").nullable().optional(),\n plannedStartTime: OptimorouteGetEvents_PlannedStartTimeSchema.nullable().optional(),\n}).describe(\"Represents a single mobile event from field operations.\");\nexport const OptimorouteGetEventsOutput: z.ZodTypeAny = z.object({\n tag: z.string().describe(\"Marker for the final event in this response; use as after_tag in subsequent requests\").nullable().optional(),\n code: z.string().describe(\"Error code if operation failed\").nullable().optional(),\n events: z.array(OptimorouteGetEvents_EventSchema).describe(\"Collection of event objects in chronological order\").nullable().optional(),\n message: z.string().describe(\"Error or status message from the API\").nullable().optional(),\n success: z.boolean().describe(\"Indicates successful operation\"),\n remainingEvents: z.number().int().describe(\"Count of undelivered events; indicates whether more calls are needed\").nullable().optional(),\n}).describe(\"Response schema for retrieving mobile events.\");\n\nexport const optimorouteGetEvents = action(\"OPTIMOROUTE_GET_EVENTS\", {\n slug: \"optimoroute-get-events\",\n name: \"Get Mobile Events\",\n description: \"Tool to retrieve mobile events from drivers' field operations. Use when you need to track order completions, status changes (success, failed, on_duty, off_duty), and other field events for the currently active plan.\",\n input: OptimorouteGetEventsInput,\n output: OptimorouteGetEventsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0C,EAAE,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SAAS,yDAAyD;AAUrE,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAdsD,EAAE,OAAO;EAC/D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrI,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChF,QAAQ,EAAE,MAAM,gCAAgC,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrI,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzF,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,gCAAgC;EAC9D,iBAAiB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzI,CAAC,CAAC,CAAC,SAAS,+CAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/get-orders.ts
|
|
4
|
+
const OptimorouteGetOrdersInput = zod.z.object({ orders: zod.z.array(zod.z.object({
|
|
5
|
+
id: zod.z.string().describe("OptimoRoute-assigned unique identifier").optional(),
|
|
6
|
+
orderNo: zod.z.string().describe("User-specified order identifier").optional()
|
|
7
|
+
}).describe("Order identifier object - must contain either orderNo or id.")).describe("List of order identifier objects (max 500). Each object must contain either 'orderNo' or 'id' field.") }).describe("Request parameters for retrieving one or more orders from the system.");
|
|
8
|
+
const OptimorouteGetOrders_BarcodeSchema = zod.z.object({
|
|
9
|
+
type: zod.z.string().describe("Barcode type").nullable().optional(),
|
|
10
|
+
barcode: zod.z.string().describe("Barcode value").nullable().optional()
|
|
11
|
+
}).describe("Barcode information for order.");
|
|
12
|
+
const OptimorouteGetOrders_LocationSchema = zod.z.object({
|
|
13
|
+
lat: zod.z.number().describe("Latitude coordinate").nullable().optional(),
|
|
14
|
+
lng: zod.z.number().describe("Longitude coordinate").nullable().optional(),
|
|
15
|
+
zip: zod.z.string().describe("Postal code").nullable().optional(),
|
|
16
|
+
city: zod.z.string().describe("City name").nullable().optional(),
|
|
17
|
+
state: zod.z.string().describe("State or province").nullable().optional(),
|
|
18
|
+
address: zod.z.string().describe("Street address").nullable().optional(),
|
|
19
|
+
country: zod.z.string().describe("Country code").nullable().optional()
|
|
20
|
+
}).describe("Location details for an order.");
|
|
21
|
+
const OptimorouteGetOrders_AssignedToSchema = zod.z.object({
|
|
22
|
+
serial: zod.z.string().describe("Driver serial identifier").nullable().optional(),
|
|
23
|
+
externalId: zod.z.string().describe("Driver external identifier").nullable().optional()
|
|
24
|
+
}).describe("Driver assignment details.");
|
|
25
|
+
const OptimorouteGetOrders_TimeWindowSchema = zod.z.object({
|
|
26
|
+
to_time: zod.z.string().describe("End time").nullable().optional(),
|
|
27
|
+
from_time: zod.z.string().describe("Start time").nullable().optional()
|
|
28
|
+
}).describe("Time window for order service.");
|
|
29
|
+
const OptimorouteGetOrders_AllowedDatesSchema = zod.z.object({
|
|
30
|
+
to_date: zod.z.string().describe("End date in YYYY-MM-DD format").nullable().optional(),
|
|
31
|
+
from_date: zod.z.string().describe("Start date in YYYY-MM-DD format").nullable().optional()
|
|
32
|
+
}).describe("Date range restrictions for order.");
|
|
33
|
+
const OptimorouteGetOrders_OrderDataSchema = zod.z.object({
|
|
34
|
+
id: zod.z.string().describe("OptimoRoute's unique order identifier").nullable().optional(),
|
|
35
|
+
date: zod.z.string().describe("Order date in YYYY-MM-DD format").nullable().optional(),
|
|
36
|
+
type: zod.z.string().describe("Order type: 'D' (delivery), 'P' (pickup), 'T' (task), 'break', 'depot'").nullable().optional(),
|
|
37
|
+
email: zod.z.string().describe("Customer email").nullable().optional(),
|
|
38
|
+
load1: zod.z.number().describe("Load requirement type 1").nullable().optional(),
|
|
39
|
+
load2: zod.z.number().describe("Load requirement type 2").nullable().optional(),
|
|
40
|
+
load3: zod.z.number().describe("Load requirement type 3").nullable().optional(),
|
|
41
|
+
load4: zod.z.number().describe("Load requirement type 4").nullable().optional(),
|
|
42
|
+
notes: zod.z.string().describe("Delivery instructions").nullable().optional(),
|
|
43
|
+
phone: zod.z.string().describe("Customer phone").nullable().optional(),
|
|
44
|
+
skills: zod.z.array(zod.z.string()).describe("Required driver skills").nullable().optional(),
|
|
45
|
+
barcode: zod.z.array(OptimorouteGetOrders_BarcodeSchema).describe("Barcode objects").nullable().optional(),
|
|
46
|
+
orderNo: zod.z.string().describe("User-specified order identifier").nullable().optional(),
|
|
47
|
+
duration: zod.z.number().describe("Service time in minutes").nullable().optional(),
|
|
48
|
+
location: OptimorouteGetOrders_LocationSchema.nullable().optional(),
|
|
49
|
+
priority: zod.z.string().describe("Priority level: 'L' (low), 'M' (medium), 'H' (high), 'C' (critical)").nullable().optional(),
|
|
50
|
+
relatedId: zod.z.string().describe("ID-based related order reference").nullable().optional(),
|
|
51
|
+
assignedTo: OptimorouteGetOrders_AssignedToSchema.nullable().optional(),
|
|
52
|
+
timeWindows: zod.z.array(OptimorouteGetOrders_TimeWindowSchema).describe("Time windows for service").nullable().optional(),
|
|
53
|
+
allowedDates: OptimorouteGetOrders_AllowedDatesSchema.nullable().optional(),
|
|
54
|
+
customField1: zod.z.string().describe("Legacy custom field 1").nullable().optional(),
|
|
55
|
+
customField2: zod.z.string().describe("Legacy custom field 2").nullable().optional(),
|
|
56
|
+
customField3: zod.z.string().describe("Legacy custom field 3").nullable().optional(),
|
|
57
|
+
customField4: zod.z.string().describe("Legacy custom field 4").nullable().optional(),
|
|
58
|
+
customField5: zod.z.string().describe("Legacy custom field 5").nullable().optional(),
|
|
59
|
+
customFields: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Modern custom fields").nullable().optional(),
|
|
60
|
+
relatedOrderNo: zod.z.string().describe("Links pickup/delivery pairs").nullable().optional(),
|
|
61
|
+
allowedWeekdays: zod.z.array(zod.z.string()).describe("Restricted days: ['mon', 'tue', 'wed', etc.]").nullable().optional(),
|
|
62
|
+
vehicleFeatures: zod.z.array(zod.z.string()).describe("Required vehicle features").nullable().optional(),
|
|
63
|
+
allowedDateTimes: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Datetime windows").nullable().optional(),
|
|
64
|
+
notificationPreference: zod.z.string().describe("Notification preference: 'dont_notify', 'email', 'sms', 'both'").nullable().optional()
|
|
65
|
+
}).describe("Complete order details returned in successful responses.");
|
|
66
|
+
const OptimorouteGetOrders_OrderResponseSchema = zod.z.object({
|
|
67
|
+
id: zod.z.string().describe("OptimoRoute's unique order identifier").nullable().optional(),
|
|
68
|
+
code: zod.z.string().describe("Error code if retrieval failed").nullable().optional(),
|
|
69
|
+
data: OptimorouteGetOrders_OrderDataSchema.nullable().optional(),
|
|
70
|
+
message: zod.z.string().describe("Error description if retrieval failed").nullable().optional(),
|
|
71
|
+
orderNo: zod.z.string().describe("Order number from request (for error tracking)").nullable().optional(),
|
|
72
|
+
success: zod.z.boolean().describe("Whether this specific order was retrieved")
|
|
73
|
+
}).describe("Response object for each individual order retrieval.");
|
|
74
|
+
const OptimorouteGetOrdersOutput = zod.z.object({
|
|
75
|
+
orders: zod.z.array(OptimorouteGetOrders_OrderResponseSchema).describe("Array of order response objects"),
|
|
76
|
+
success: zod.z.boolean().describe("Indicates if at least one order retrieval succeeded")
|
|
77
|
+
}).describe("Response schema for retrieving orders.");
|
|
78
|
+
const optimorouteGetOrders = require_action.action("OPTIMOROUTE_GET_ORDERS", {
|
|
79
|
+
slug: "optimoroute-get-orders",
|
|
80
|
+
name: "Get Orders",
|
|
81
|
+
description: "Tool to retrieve one or more orders from OptimoRoute. Use when you need detailed order information including location, time windows, and assignment details.",
|
|
82
|
+
input: OptimorouteGetOrdersInput,
|
|
83
|
+
output: OptimorouteGetOrdersOutput
|
|
84
|
+
});
|
|
85
|
+
//#endregion
|
|
86
|
+
exports.optimorouteGetOrders = optimorouteGetOrders;
|
|
87
|
+
|
|
88
|
+
//# sourceMappingURL=get-orders.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-orders.cjs","names":["z","action"],"sources":["../../src/actions/get-orders.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OptimorouteGetOrdersInput: z.ZodTypeAny = z.object({\n orders: z.array(z.object({\n id: z.string().describe(\"OptimoRoute-assigned unique identifier\").optional(),\n orderNo: z.string().describe(\"User-specified order identifier\").optional(),\n}).describe(\"Order identifier object - must contain either orderNo or id.\")).describe(\"List of order identifier objects (max 500). Each object must contain either 'orderNo' or 'id' field.\"),\n}).describe(\"Request parameters for retrieving one or more orders from the system.\");\nconst OptimorouteGetOrders_BarcodeSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Barcode type\").nullable().optional(),\n barcode: z.string().describe(\"Barcode value\").nullable().optional(),\n}).describe(\"Barcode information for order.\");\nconst OptimorouteGetOrders_LocationSchema: z.ZodTypeAny = z.object({\n lat: z.number().describe(\"Latitude coordinate\").nullable().optional(),\n lng: z.number().describe(\"Longitude coordinate\").nullable().optional(),\n zip: z.string().describe(\"Postal code\").nullable().optional(),\n city: z.string().describe(\"City name\").nullable().optional(),\n state: z.string().describe(\"State or province\").nullable().optional(),\n address: z.string().describe(\"Street address\").nullable().optional(),\n country: z.string().describe(\"Country code\").nullable().optional(),\n}).describe(\"Location details for an order.\");\nconst OptimorouteGetOrders_AssignedToSchema: z.ZodTypeAny = z.object({\n serial: z.string().describe(\"Driver serial identifier\").nullable().optional(),\n externalId: z.string().describe(\"Driver external identifier\").nullable().optional(),\n}).describe(\"Driver assignment details.\");\nconst OptimorouteGetOrders_TimeWindowSchema: z.ZodTypeAny = z.object({\n to_time: z.string().describe(\"End time\").nullable().optional(),\n from_time: z.string().describe(\"Start time\").nullable().optional(),\n}).describe(\"Time window for order service.\");\nconst OptimorouteGetOrders_AllowedDatesSchema: z.ZodTypeAny = z.object({\n to_date: z.string().describe(\"End date in YYYY-MM-DD format\").nullable().optional(),\n from_date: z.string().describe(\"Start date in YYYY-MM-DD format\").nullable().optional(),\n}).describe(\"Date range restrictions for order.\");\nconst OptimorouteGetOrders_OrderDataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"OptimoRoute's unique order identifier\").nullable().optional(),\n date: z.string().describe(\"Order date in YYYY-MM-DD format\").nullable().optional(),\n type: z.string().describe(\"Order type: 'D' (delivery), 'P' (pickup), 'T' (task), 'break', 'depot'\").nullable().optional(),\n email: z.string().describe(\"Customer email\").nullable().optional(),\n load1: z.number().describe(\"Load requirement type 1\").nullable().optional(),\n load2: z.number().describe(\"Load requirement type 2\").nullable().optional(),\n load3: z.number().describe(\"Load requirement type 3\").nullable().optional(),\n load4: z.number().describe(\"Load requirement type 4\").nullable().optional(),\n notes: z.string().describe(\"Delivery instructions\").nullable().optional(),\n phone: z.string().describe(\"Customer phone\").nullable().optional(),\n skills: z.array(z.string()).describe(\"Required driver skills\").nullable().optional(),\n barcode: z.array(OptimorouteGetOrders_BarcodeSchema).describe(\"Barcode objects\").nullable().optional(),\n orderNo: z.string().describe(\"User-specified order identifier\").nullable().optional(),\n duration: z.number().describe(\"Service time in minutes\").nullable().optional(),\n location: OptimorouteGetOrders_LocationSchema.nullable().optional(),\n priority: z.string().describe(\"Priority level: 'L' (low), 'M' (medium), 'H' (high), 'C' (critical)\").nullable().optional(),\n relatedId: z.string().describe(\"ID-based related order reference\").nullable().optional(),\n assignedTo: OptimorouteGetOrders_AssignedToSchema.nullable().optional(),\n timeWindows: z.array(OptimorouteGetOrders_TimeWindowSchema).describe(\"Time windows for service\").nullable().optional(),\n allowedDates: OptimorouteGetOrders_AllowedDatesSchema.nullable().optional(),\n customField1: z.string().describe(\"Legacy custom field 1\").nullable().optional(),\n customField2: z.string().describe(\"Legacy custom field 2\").nullable().optional(),\n customField3: z.string().describe(\"Legacy custom field 3\").nullable().optional(),\n customField4: z.string().describe(\"Legacy custom field 4\").nullable().optional(),\n customField5: z.string().describe(\"Legacy custom field 5\").nullable().optional(),\n customFields: z.record(z.string(), z.unknown()).describe(\"Modern custom fields\").nullable().optional(),\n relatedOrderNo: z.string().describe(\"Links pickup/delivery pairs\").nullable().optional(),\n allowedWeekdays: z.array(z.string()).describe(\"Restricted days: ['mon', 'tue', 'wed', etc.]\").nullable().optional(),\n vehicleFeatures: z.array(z.string()).describe(\"Required vehicle features\").nullable().optional(),\n allowedDateTimes: z.array(z.record(z.string(), z.unknown())).describe(\"Datetime windows\").nullable().optional(),\n notificationPreference: z.string().describe(\"Notification preference: 'dont_notify', 'email', 'sms', 'both'\").nullable().optional(),\n}).describe(\"Complete order details returned in successful responses.\");\nconst OptimorouteGetOrders_OrderResponseSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"OptimoRoute's unique order identifier\").nullable().optional(),\n code: z.string().describe(\"Error code if retrieval failed\").nullable().optional(),\n data: OptimorouteGetOrders_OrderDataSchema.nullable().optional(),\n message: z.string().describe(\"Error description if retrieval failed\").nullable().optional(),\n orderNo: z.string().describe(\"Order number from request (for error tracking)\").nullable().optional(),\n success: z.boolean().describe(\"Whether this specific order was retrieved\"),\n}).describe(\"Response object for each individual order retrieval.\");\nexport const OptimorouteGetOrdersOutput: z.ZodTypeAny = z.object({\n orders: z.array(OptimorouteGetOrders_OrderResponseSchema).describe(\"Array of order response objects\"),\n success: z.boolean().describe(\"Indicates if at least one order retrieval succeeded\"),\n}).describe(\"Response schema for retrieving orders.\");\n\nexport const optimorouteGetOrders = action(\"OPTIMOROUTE_GET_ORDERS\", {\n slug: \"optimoroute-get-orders\",\n name: \"Get Orders\",\n description: \"Tool to retrieve one or more orders from OptimoRoute. Use when you need detailed order information including location, time windows, and assignment details.\",\n input: OptimorouteGetOrdersInput,\n output: OptimorouteGetOrdersOutput,\n});\n"],"mappings":";;;AAIA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,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-orders.d.ts
|
|
4
|
+
declare const OptimorouteGetOrdersInput: z.ZodTypeAny;
|
|
5
|
+
declare const OptimorouteGetOrdersOutput: z.ZodTypeAny;
|
|
6
|
+
declare const optimorouteGetOrders: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { optimorouteGetOrders };
|
|
9
|
+
//# sourceMappingURL=get-orders.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-orders.d.cts","names":[],"sources":["../../src/actions/get-orders.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAK0C;AAAA,cAmEvE,0BAAA,EAA4B,CAAA,CAAE,UAGU;AAAA,cAExC,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-orders.d.ts
|
|
4
|
+
declare const OptimorouteGetOrdersInput: z.ZodTypeAny;
|
|
5
|
+
declare const OptimorouteGetOrdersOutput: z.ZodTypeAny;
|
|
6
|
+
declare const optimorouteGetOrders: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { optimorouteGetOrders };
|
|
9
|
+
//# sourceMappingURL=get-orders.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-orders.d.mts","names":[],"sources":["../../src/actions/get-orders.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAK0C;AAAA,cAmEvE,0BAAA,EAA4B,CAAA,CAAE,UAGU;AAAA,cAExC,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/get-orders.ts
|
|
4
|
+
const OptimorouteGetOrdersInput = z.object({ orders: z.array(z.object({
|
|
5
|
+
id: z.string().describe("OptimoRoute-assigned unique identifier").optional(),
|
|
6
|
+
orderNo: z.string().describe("User-specified order identifier").optional()
|
|
7
|
+
}).describe("Order identifier object - must contain either orderNo or id.")).describe("List of order identifier objects (max 500). Each object must contain either 'orderNo' or 'id' field.") }).describe("Request parameters for retrieving one or more orders from the system.");
|
|
8
|
+
const OptimorouteGetOrders_BarcodeSchema = z.object({
|
|
9
|
+
type: z.string().describe("Barcode type").nullable().optional(),
|
|
10
|
+
barcode: z.string().describe("Barcode value").nullable().optional()
|
|
11
|
+
}).describe("Barcode information for order.");
|
|
12
|
+
const OptimorouteGetOrders_LocationSchema = z.object({
|
|
13
|
+
lat: z.number().describe("Latitude coordinate").nullable().optional(),
|
|
14
|
+
lng: z.number().describe("Longitude coordinate").nullable().optional(),
|
|
15
|
+
zip: z.string().describe("Postal code").nullable().optional(),
|
|
16
|
+
city: z.string().describe("City name").nullable().optional(),
|
|
17
|
+
state: z.string().describe("State or province").nullable().optional(),
|
|
18
|
+
address: z.string().describe("Street address").nullable().optional(),
|
|
19
|
+
country: z.string().describe("Country code").nullable().optional()
|
|
20
|
+
}).describe("Location details for an order.");
|
|
21
|
+
const OptimorouteGetOrders_AssignedToSchema = z.object({
|
|
22
|
+
serial: z.string().describe("Driver serial identifier").nullable().optional(),
|
|
23
|
+
externalId: z.string().describe("Driver external identifier").nullable().optional()
|
|
24
|
+
}).describe("Driver assignment details.");
|
|
25
|
+
const OptimorouteGetOrders_TimeWindowSchema = z.object({
|
|
26
|
+
to_time: z.string().describe("End time").nullable().optional(),
|
|
27
|
+
from_time: z.string().describe("Start time").nullable().optional()
|
|
28
|
+
}).describe("Time window for order service.");
|
|
29
|
+
const OptimorouteGetOrders_AllowedDatesSchema = z.object({
|
|
30
|
+
to_date: z.string().describe("End date in YYYY-MM-DD format").nullable().optional(),
|
|
31
|
+
from_date: z.string().describe("Start date in YYYY-MM-DD format").nullable().optional()
|
|
32
|
+
}).describe("Date range restrictions for order.");
|
|
33
|
+
const OptimorouteGetOrders_OrderDataSchema = z.object({
|
|
34
|
+
id: z.string().describe("OptimoRoute's unique order identifier").nullable().optional(),
|
|
35
|
+
date: z.string().describe("Order date in YYYY-MM-DD format").nullable().optional(),
|
|
36
|
+
type: z.string().describe("Order type: 'D' (delivery), 'P' (pickup), 'T' (task), 'break', 'depot'").nullable().optional(),
|
|
37
|
+
email: z.string().describe("Customer email").nullable().optional(),
|
|
38
|
+
load1: z.number().describe("Load requirement type 1").nullable().optional(),
|
|
39
|
+
load2: z.number().describe("Load requirement type 2").nullable().optional(),
|
|
40
|
+
load3: z.number().describe("Load requirement type 3").nullable().optional(),
|
|
41
|
+
load4: z.number().describe("Load requirement type 4").nullable().optional(),
|
|
42
|
+
notes: z.string().describe("Delivery instructions").nullable().optional(),
|
|
43
|
+
phone: z.string().describe("Customer phone").nullable().optional(),
|
|
44
|
+
skills: z.array(z.string()).describe("Required driver skills").nullable().optional(),
|
|
45
|
+
barcode: z.array(OptimorouteGetOrders_BarcodeSchema).describe("Barcode objects").nullable().optional(),
|
|
46
|
+
orderNo: z.string().describe("User-specified order identifier").nullable().optional(),
|
|
47
|
+
duration: z.number().describe("Service time in minutes").nullable().optional(),
|
|
48
|
+
location: OptimorouteGetOrders_LocationSchema.nullable().optional(),
|
|
49
|
+
priority: z.string().describe("Priority level: 'L' (low), 'M' (medium), 'H' (high), 'C' (critical)").nullable().optional(),
|
|
50
|
+
relatedId: z.string().describe("ID-based related order reference").nullable().optional(),
|
|
51
|
+
assignedTo: OptimorouteGetOrders_AssignedToSchema.nullable().optional(),
|
|
52
|
+
timeWindows: z.array(OptimorouteGetOrders_TimeWindowSchema).describe("Time windows for service").nullable().optional(),
|
|
53
|
+
allowedDates: OptimorouteGetOrders_AllowedDatesSchema.nullable().optional(),
|
|
54
|
+
customField1: z.string().describe("Legacy custom field 1").nullable().optional(),
|
|
55
|
+
customField2: z.string().describe("Legacy custom field 2").nullable().optional(),
|
|
56
|
+
customField3: z.string().describe("Legacy custom field 3").nullable().optional(),
|
|
57
|
+
customField4: z.string().describe("Legacy custom field 4").nullable().optional(),
|
|
58
|
+
customField5: z.string().describe("Legacy custom field 5").nullable().optional(),
|
|
59
|
+
customFields: z.record(z.string(), z.unknown()).describe("Modern custom fields").nullable().optional(),
|
|
60
|
+
relatedOrderNo: z.string().describe("Links pickup/delivery pairs").nullable().optional(),
|
|
61
|
+
allowedWeekdays: z.array(z.string()).describe("Restricted days: ['mon', 'tue', 'wed', etc.]").nullable().optional(),
|
|
62
|
+
vehicleFeatures: z.array(z.string()).describe("Required vehicle features").nullable().optional(),
|
|
63
|
+
allowedDateTimes: z.array(z.record(z.string(), z.unknown())).describe("Datetime windows").nullable().optional(),
|
|
64
|
+
notificationPreference: z.string().describe("Notification preference: 'dont_notify', 'email', 'sms', 'both'").nullable().optional()
|
|
65
|
+
}).describe("Complete order details returned in successful responses.");
|
|
66
|
+
const OptimorouteGetOrders_OrderResponseSchema = z.object({
|
|
67
|
+
id: z.string().describe("OptimoRoute's unique order identifier").nullable().optional(),
|
|
68
|
+
code: z.string().describe("Error code if retrieval failed").nullable().optional(),
|
|
69
|
+
data: OptimorouteGetOrders_OrderDataSchema.nullable().optional(),
|
|
70
|
+
message: z.string().describe("Error description if retrieval failed").nullable().optional(),
|
|
71
|
+
orderNo: z.string().describe("Order number from request (for error tracking)").nullable().optional(),
|
|
72
|
+
success: z.boolean().describe("Whether this specific order was retrieved")
|
|
73
|
+
}).describe("Response object for each individual order retrieval.");
|
|
74
|
+
const optimorouteGetOrders = action("OPTIMOROUTE_GET_ORDERS", {
|
|
75
|
+
slug: "optimoroute-get-orders",
|
|
76
|
+
name: "Get Orders",
|
|
77
|
+
description: "Tool to retrieve one or more orders from OptimoRoute. Use when you need detailed order information including location, time windows, and assignment details.",
|
|
78
|
+
input: OptimorouteGetOrdersInput,
|
|
79
|
+
output: z.object({
|
|
80
|
+
orders: z.array(OptimorouteGetOrders_OrderResponseSchema).describe("Array of order response objects"),
|
|
81
|
+
success: z.boolean().describe("Indicates if at least one order retrieval succeeded")
|
|
82
|
+
}).describe("Response schema for retrieving orders.")
|
|
83
|
+
});
|
|
84
|
+
//#endregion
|
|
85
|
+
export { optimorouteGetOrders };
|
|
86
|
+
|
|
87
|
+
//# sourceMappingURL=get-orders.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-orders.mjs","names":[],"sources":["../../src/actions/get-orders.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OptimorouteGetOrdersInput: z.ZodTypeAny = z.object({\n orders: z.array(z.object({\n id: z.string().describe(\"OptimoRoute-assigned unique identifier\").optional(),\n orderNo: z.string().describe(\"User-specified order identifier\").optional(),\n}).describe(\"Order identifier object - must contain either orderNo or id.\")).describe(\"List of order identifier objects (max 500). Each object must contain either 'orderNo' or 'id' field.\"),\n}).describe(\"Request parameters for retrieving one or more orders from the system.\");\nconst OptimorouteGetOrders_BarcodeSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Barcode type\").nullable().optional(),\n barcode: z.string().describe(\"Barcode value\").nullable().optional(),\n}).describe(\"Barcode information for order.\");\nconst OptimorouteGetOrders_LocationSchema: z.ZodTypeAny = z.object({\n lat: z.number().describe(\"Latitude coordinate\").nullable().optional(),\n lng: z.number().describe(\"Longitude coordinate\").nullable().optional(),\n zip: z.string().describe(\"Postal code\").nullable().optional(),\n city: z.string().describe(\"City name\").nullable().optional(),\n state: z.string().describe(\"State or province\").nullable().optional(),\n address: z.string().describe(\"Street address\").nullable().optional(),\n country: z.string().describe(\"Country code\").nullable().optional(),\n}).describe(\"Location details for an order.\");\nconst OptimorouteGetOrders_AssignedToSchema: z.ZodTypeAny = z.object({\n serial: z.string().describe(\"Driver serial identifier\").nullable().optional(),\n externalId: z.string().describe(\"Driver external identifier\").nullable().optional(),\n}).describe(\"Driver assignment details.\");\nconst OptimorouteGetOrders_TimeWindowSchema: z.ZodTypeAny = z.object({\n to_time: z.string().describe(\"End time\").nullable().optional(),\n from_time: z.string().describe(\"Start time\").nullable().optional(),\n}).describe(\"Time window for order service.\");\nconst OptimorouteGetOrders_AllowedDatesSchema: z.ZodTypeAny = z.object({\n to_date: z.string().describe(\"End date in YYYY-MM-DD format\").nullable().optional(),\n from_date: z.string().describe(\"Start date in YYYY-MM-DD format\").nullable().optional(),\n}).describe(\"Date range restrictions for order.\");\nconst OptimorouteGetOrders_OrderDataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"OptimoRoute's unique order identifier\").nullable().optional(),\n date: z.string().describe(\"Order date in YYYY-MM-DD format\").nullable().optional(),\n type: z.string().describe(\"Order type: 'D' (delivery), 'P' (pickup), 'T' (task), 'break', 'depot'\").nullable().optional(),\n email: z.string().describe(\"Customer email\").nullable().optional(),\n load1: z.number().describe(\"Load requirement type 1\").nullable().optional(),\n load2: z.number().describe(\"Load requirement type 2\").nullable().optional(),\n load3: z.number().describe(\"Load requirement type 3\").nullable().optional(),\n load4: z.number().describe(\"Load requirement type 4\").nullable().optional(),\n notes: z.string().describe(\"Delivery instructions\").nullable().optional(),\n phone: z.string().describe(\"Customer phone\").nullable().optional(),\n skills: z.array(z.string()).describe(\"Required driver skills\").nullable().optional(),\n barcode: z.array(OptimorouteGetOrders_BarcodeSchema).describe(\"Barcode objects\").nullable().optional(),\n orderNo: z.string().describe(\"User-specified order identifier\").nullable().optional(),\n duration: z.number().describe(\"Service time in minutes\").nullable().optional(),\n location: OptimorouteGetOrders_LocationSchema.nullable().optional(),\n priority: z.string().describe(\"Priority level: 'L' (low), 'M' (medium), 'H' (high), 'C' (critical)\").nullable().optional(),\n relatedId: z.string().describe(\"ID-based related order reference\").nullable().optional(),\n assignedTo: OptimorouteGetOrders_AssignedToSchema.nullable().optional(),\n timeWindows: z.array(OptimorouteGetOrders_TimeWindowSchema).describe(\"Time windows for service\").nullable().optional(),\n allowedDates: OptimorouteGetOrders_AllowedDatesSchema.nullable().optional(),\n customField1: z.string().describe(\"Legacy custom field 1\").nullable().optional(),\n customField2: z.string().describe(\"Legacy custom field 2\").nullable().optional(),\n customField3: z.string().describe(\"Legacy custom field 3\").nullable().optional(),\n customField4: z.string().describe(\"Legacy custom field 4\").nullable().optional(),\n customField5: z.string().describe(\"Legacy custom field 5\").nullable().optional(),\n customFields: z.record(z.string(), z.unknown()).describe(\"Modern custom fields\").nullable().optional(),\n relatedOrderNo: z.string().describe(\"Links pickup/delivery pairs\").nullable().optional(),\n allowedWeekdays: z.array(z.string()).describe(\"Restricted days: ['mon', 'tue', 'wed', etc.]\").nullable().optional(),\n vehicleFeatures: z.array(z.string()).describe(\"Required vehicle features\").nullable().optional(),\n allowedDateTimes: z.array(z.record(z.string(), z.unknown())).describe(\"Datetime windows\").nullable().optional(),\n notificationPreference: z.string().describe(\"Notification preference: 'dont_notify', 'email', 'sms', 'both'\").nullable().optional(),\n}).describe(\"Complete order details returned in successful responses.\");\nconst OptimorouteGetOrders_OrderResponseSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"OptimoRoute's unique order identifier\").nullable().optional(),\n code: z.string().describe(\"Error code if retrieval failed\").nullable().optional(),\n data: OptimorouteGetOrders_OrderDataSchema.nullable().optional(),\n message: z.string().describe(\"Error description if retrieval failed\").nullable().optional(),\n orderNo: z.string().describe(\"Order number from request (for error tracking)\").nullable().optional(),\n success: z.boolean().describe(\"Whether this specific order was retrieved\"),\n}).describe(\"Response object for each individual order retrieval.\");\nexport const OptimorouteGetOrdersOutput: z.ZodTypeAny = z.object({\n orders: z.array(OptimorouteGetOrders_OrderResponseSchema).describe(\"Array of order response objects\"),\n success: z.boolean().describe(\"Indicates if at least one order retrieval succeeded\"),\n}).describe(\"Response schema for retrieving orders.\");\n\nexport const optimorouteGetOrders = action(\"OPTIMOROUTE_GET_ORDERS\", {\n slug: \"optimoroute-get-orders\",\n name: \"Get Orders\",\n description: \"Tool to retrieve one or more orders from OptimoRoute. Use when you need detailed order information including location, time windows, and assignment details.\",\n input: OptimorouteGetOrdersInput,\n output: OptimorouteGetOrdersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0C,EAAE,OAAO,EAC9D,QAAQ,EAAE,MAAM,EAAE,OAAO;CACzB,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC3E,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;AAC3E,CAAC,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,CAAC,SAAS,sGAAsG,EAC5L,CAAC,CAAC,CAAC,SAAS,uEAAuE;AACnF,MAAM,qCAAmD,EAAE,OAAO;CAChE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpE,CAAC,CAAC,CAAC,SAAS,gCAAgC;AAC5C,MAAM,sCAAoD,EAAE,OAAO;CACjE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS,CAAC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AE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9G,wBAAwB,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpI,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACtE,MAAM,2CAAyD,EAAE,OAAO;CACtE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,MAAM,qCAAqC,SAAS,CAAC,CAAC,SAAS;CAC/D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,2CAA2C;AAC3E,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAMlE,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVsD,EAAE,OAAO;EAC/D,QAAQ,EAAE,MAAM,wCAAwC,CAAC,CAAC,SAAS,iCAAiC;EACpG,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,qDAAqD;CACrF,CAAC,CAAC,CAAC,SAAS,wCAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/get-planning-status.ts
|
|
4
|
+
const OptimorouteGetPlanningStatusInput = zod.z.object({ planning_id: zod.z.number().int().describe("The ID of the planning process whose status you want to retrieve") }).describe("Request parameters for retrieving the status of a planning process.");
|
|
5
|
+
const OptimorouteGetPlanningStatusOutput = zod.z.object({
|
|
6
|
+
code: zod.z.string().describe("Error or warning code (omitted if successful). Possible values include ERR_JOB_NOT_FOUND").nullable().optional(),
|
|
7
|
+
status: zod.z.string().describe("Current state of the planning process: N (New), R (Running), C (User-cancelled), F (Finished), E (Error occurred)").nullable().optional(),
|
|
8
|
+
message: zod.z.string().describe("Error message if the request failed").nullable().optional(),
|
|
9
|
+
success: zod.z.boolean().describe("Indicates if the request succeeded"),
|
|
10
|
+
percentageComplete: zod.z.number().int().describe("Progress indicator ranging from 0 to 100").nullable().optional()
|
|
11
|
+
}).describe("Response schema for retrieving planning status.");
|
|
12
|
+
const optimorouteGetPlanningStatus = require_action.action("OPTIMOROUTE_GET_PLANNING_STATUS", {
|
|
13
|
+
slug: "optimoroute-get-planning-status",
|
|
14
|
+
name: "Get Planning Status",
|
|
15
|
+
description: "Tool to retrieve the status of an active planning/optimization process. Use when you need to check the progress of a planning job by providing its ID.",
|
|
16
|
+
input: OptimorouteGetPlanningStatusInput,
|
|
17
|
+
output: OptimorouteGetPlanningStatusOutput
|
|
18
|
+
});
|
|
19
|
+
//#endregion
|
|
20
|
+
exports.optimorouteGetPlanningStatus = optimorouteGetPlanningStatus;
|
|
21
|
+
|
|
22
|
+
//# sourceMappingURL=get-planning-status.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-planning-status.cjs","names":["z","action"],"sources":["../../src/actions/get-planning-status.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OptimorouteGetPlanningStatusInput: z.ZodTypeAny = z.object({\n planning_id: z.number().int().describe(\"The ID of the planning process whose status you want to retrieve\"),\n}).describe(\"Request parameters for retrieving the status of a planning process.\");\nexport const OptimorouteGetPlanningStatusOutput: z.ZodTypeAny = z.object({\n code: z.string().describe(\"Error or warning code (omitted if successful). Possible values include ERR_JOB_NOT_FOUND\").nullable().optional(),\n status: z.string().describe(\"Current state of the planning process: N (New), R (Running), C (User-cancelled), F (Finished), E (Error occurred)\").nullable().optional(),\n message: z.string().describe(\"Error message if the request failed\").nullable().optional(),\n success: z.boolean().describe(\"Indicates if the request succeeded\"),\n percentageComplete: z.number().int().describe(\"Progress indicator ranging from 0 to 100\").nullable().optional(),\n}).describe(\"Response schema for retrieving planning status.\");\n\nexport const optimorouteGetPlanningStatus = action(\"OPTIMOROUTE_GET_PLANNING_STATUS\", {\n slug: \"optimoroute-get-planning-status\",\n name: \"Get Planning Status\",\n description: \"Tool to retrieve the status of an active planning/optimization process. Use when you need to check the progress of a planning job by providing its ID.\",\n input: OptimorouteGetPlanningStatusInput,\n output: OptimorouteGetPlanningStatusOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAkDA,IAAAA,EAAE,OAAO,EACtE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kEAAkE,EAC3G,CAAC,CAAC,CAAC,SAAS,qEAAqE;AACjF,MAAa,qCAAmDA,IAAAA,EAAE,OAAO;CACvE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1I,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mHAAmH,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrK,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,oCAAoC;CAClE,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChH,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAE7D,MAAa,+BAA+BC,eAAAA,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-planning-status.d.ts
|
|
4
|
+
declare const OptimorouteGetPlanningStatusInput: z.ZodTypeAny;
|
|
5
|
+
declare const OptimorouteGetPlanningStatusOutput: z.ZodTypeAny;
|
|
6
|
+
declare const optimorouteGetPlanningStatus: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { optimorouteGetPlanningStatus };
|
|
9
|
+
//# sourceMappingURL=get-planning-status.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-planning-status.d.cts","names":[],"sources":["../../src/actions/get-planning-status.ts"],"mappings":";;;cAIa,iCAAA,EAAmC,CAAA,CAAE,UAEgC;AAAA,cACrE,kCAAA,EAAoC,CAAA,CAAE,UAMW;AAAA,cAEjD,4BAAA,gCAA4B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-planning-status.d.ts
|
|
4
|
+
declare const OptimorouteGetPlanningStatusInput: z.ZodTypeAny;
|
|
5
|
+
declare const OptimorouteGetPlanningStatusOutput: z.ZodTypeAny;
|
|
6
|
+
declare const optimorouteGetPlanningStatus: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { optimorouteGetPlanningStatus };
|
|
9
|
+
//# sourceMappingURL=get-planning-status.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-planning-status.d.mts","names":[],"sources":["../../src/actions/get-planning-status.ts"],"mappings":";;;cAIa,iCAAA,EAAmC,CAAA,CAAE,UAEgC;AAAA,cACrE,kCAAA,EAAoC,CAAA,CAAE,UAMW;AAAA,cAEjD,4BAAA,gCAA4B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const optimorouteGetPlanningStatus = action("OPTIMOROUTE_GET_PLANNING_STATUS", {
|
|
4
|
+
slug: "optimoroute-get-planning-status",
|
|
5
|
+
name: "Get Planning Status",
|
|
6
|
+
description: "Tool to retrieve the status of an active planning/optimization process. Use when you need to check the progress of a planning job by providing its ID.",
|
|
7
|
+
input: z.object({ planning_id: z.number().int().describe("The ID of the planning process whose status you want to retrieve") }).describe("Request parameters for retrieving the status of a planning process."),
|
|
8
|
+
output: z.object({
|
|
9
|
+
code: z.string().describe("Error or warning code (omitted if successful). Possible values include ERR_JOB_NOT_FOUND").nullable().optional(),
|
|
10
|
+
status: z.string().describe("Current state of the planning process: N (New), R (Running), C (User-cancelled), F (Finished), E (Error occurred)").nullable().optional(),
|
|
11
|
+
message: z.string().describe("Error message if the request failed").nullable().optional(),
|
|
12
|
+
success: z.boolean().describe("Indicates if the request succeeded"),
|
|
13
|
+
percentageComplete: z.number().int().describe("Progress indicator ranging from 0 to 100").nullable().optional()
|
|
14
|
+
}).describe("Response schema for retrieving planning status.")
|
|
15
|
+
});
|
|
16
|
+
//#endregion
|
|
17
|
+
export { optimorouteGetPlanningStatus };
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=get-planning-status.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-planning-status.mjs","names":[],"sources":["../../src/actions/get-planning-status.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OptimorouteGetPlanningStatusInput: z.ZodTypeAny = z.object({\n planning_id: z.number().int().describe(\"The ID of the planning process whose status you want to retrieve\"),\n}).describe(\"Request parameters for retrieving the status of a planning process.\");\nexport const OptimorouteGetPlanningStatusOutput: z.ZodTypeAny = z.object({\n code: z.string().describe(\"Error or warning code (omitted if successful). Possible values include ERR_JOB_NOT_FOUND\").nullable().optional(),\n status: z.string().describe(\"Current state of the planning process: N (New), R (Running), C (User-cancelled), F (Finished), E (Error occurred)\").nullable().optional(),\n message: z.string().describe(\"Error message if the request failed\").nullable().optional(),\n success: z.boolean().describe(\"Indicates if the request succeeded\"),\n percentageComplete: z.number().int().describe(\"Progress indicator ranging from 0 to 100\").nullable().optional(),\n}).describe(\"Response schema for retrieving planning status.\");\n\nexport const optimorouteGetPlanningStatus = action(\"OPTIMOROUTE_GET_PLANNING_STATUS\", {\n slug: \"optimoroute-get-planning-status\",\n name: \"Get Planning Status\",\n description: \"Tool to retrieve the status of an active planning/optimization process. Use when you need to check the progress of a planning job by providing its ID.\",\n input: OptimorouteGetPlanningStatusInput,\n output: OptimorouteGetPlanningStatusOutput,\n});\n"],"mappings":";;AAeA,MAAa,+BAA+B,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAf6D,EAAE,OAAO,EACtE,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kEAAkE,EAC3G,CAAC,CAAC,CAAC,SAAS,qEAaH;CACP,QAb8D,EAAE,OAAO;EACvE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1I,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,mHAAmH,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrK,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxF,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,oCAAoC;EAClE,oBAAoB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,CAAC,CAAC,CAAC,SAAS,iDAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/get-routes.ts
|
|
4
|
+
const OptimorouteGetRoutesInput = zod.z.object({
|
|
5
|
+
route_date: zod.z.string().describe("Date for which to retrieve routes in YYYY-MM-DD format"),
|
|
6
|
+
driver_serial: zod.z.string().describe("Filter results by driver's serial number").optional(),
|
|
7
|
+
driver_external_id: zod.z.string().describe("Filter results by driver's external identifier").optional(),
|
|
8
|
+
vehicle_registration: zod.z.string().describe("Filter results by vehicle registration").optional(),
|
|
9
|
+
include_route_polyline: zod.z.boolean().default(false).describe("Include encoded route polyline for map display").optional(),
|
|
10
|
+
include_route_start_end: zod.z.boolean().default(false).describe("Include route's start and end locations").optional()
|
|
11
|
+
}).describe("Request parameters for retrieving routes for a specific date.");
|
|
12
|
+
const OptimorouteGetRoutes_StopSchema = zod.z.object({
|
|
13
|
+
id: zod.z.string().describe("OptimoRoute unique stop identifier").nullable().optional(),
|
|
14
|
+
type: zod.z.string().describe("Stop type (D=delivery, P=pickup, T=task, etc.)").nullable().optional(),
|
|
15
|
+
address: zod.z.string().describe("Full address for the stop").nullable().optional(),
|
|
16
|
+
orderNo: zod.z.string().describe("Order number associated with this stop").nullable().optional(),
|
|
17
|
+
distance: zod.z.number().describe("Distance to this stop in kilometers").nullable().optional(),
|
|
18
|
+
latitude: zod.z.number().describe("GPS latitude coordinate").nullable().optional(),
|
|
19
|
+
longitude: zod.z.number().describe("GPS longitude coordinate").nullable().optional(),
|
|
20
|
+
locationNo: zod.z.string().describe("Location identifier").nullable().optional(),
|
|
21
|
+
stopNumber: zod.z.number().int().describe("Stop sequence number in the route").nullable().optional(),
|
|
22
|
+
travelTime: zod.z.number().int().describe("Travel time to this stop in minutes").nullable().optional(),
|
|
23
|
+
scheduledAt: zod.z.string().describe("Scheduled time in HH:MM format").nullable().optional(),
|
|
24
|
+
locationName: zod.z.string().describe("Display name for the location").nullable().optional(),
|
|
25
|
+
arrivalTimeDt: zod.z.string().describe("Actual arrival datetime in YYYY-MM-DD HH:MM:SS format").nullable().optional(),
|
|
26
|
+
scheduledAtDt: zod.z.string().describe("Scheduled datetime in YYYY-MM-DD HH:MM:SS format").nullable().optional()
|
|
27
|
+
}).describe("Details of a single stop in a route.");
|
|
28
|
+
const OptimorouteGetRoutes_RouteStartEndSchema = zod.z.object({
|
|
29
|
+
address: zod.z.string().describe("Address of the location").nullable().optional(),
|
|
30
|
+
latitude: zod.z.number().describe("GPS latitude coordinate").nullable().optional(),
|
|
31
|
+
longitude: zod.z.number().describe("GPS longitude coordinate").nullable().optional()
|
|
32
|
+
}).describe("Route start or end location details.");
|
|
33
|
+
const OptimorouteGetRoutes_RouteSchema = zod.z.object({
|
|
34
|
+
load1: zod.z.number().describe("Load metric 1").nullable().optional(),
|
|
35
|
+
load2: zod.z.number().describe("Load metric 2").nullable().optional(),
|
|
36
|
+
load3: zod.z.number().describe("Load metric 3").nullable().optional(),
|
|
37
|
+
load4: zod.z.number().describe("Load metric 4").nullable().optional(),
|
|
38
|
+
stops: zod.z.array(OptimorouteGetRoutes_StopSchema).describe("List of stops in the route").nullable().optional(),
|
|
39
|
+
distance: zod.z.number().describe("Route distance in kilometers").nullable().optional(),
|
|
40
|
+
duration: zod.z.number().int().describe("Route duration in minutes").nullable().optional(),
|
|
41
|
+
routeEnd: OptimorouteGetRoutes_RouteStartEndSchema.nullable().optional(),
|
|
42
|
+
driverName: zod.z.string().describe("Driver's display name").nullable().optional(),
|
|
43
|
+
routeStart: OptimorouteGetRoutes_RouteStartEndSchema.nullable().optional(),
|
|
44
|
+
driverSerial: zod.z.string().describe("Driver's serial number").nullable().optional(),
|
|
45
|
+
vehicleLabel: zod.z.string().describe("Vehicle display label").nullable().optional(),
|
|
46
|
+
routePolyline: zod.z.string().describe("Encoded route polyline for map display").nullable().optional(),
|
|
47
|
+
driverExternalId: zod.z.string().describe("Driver's external identifier").nullable().optional(),
|
|
48
|
+
vehicleRegistration: zod.z.string().describe("Vehicle registration number").nullable().optional()
|
|
49
|
+
}).describe("Represents a planned route for a given date.");
|
|
50
|
+
const OptimorouteGetRoutesOutput = zod.z.object({
|
|
51
|
+
code: zod.z.string().describe("Error code if the request was unsuccessful").nullable().optional(),
|
|
52
|
+
routes: zod.z.array(OptimorouteGetRoutes_RouteSchema).describe("List of route objects for the specified date").nullable().optional(),
|
|
53
|
+
message: zod.z.string().describe("Error message providing details about the issue").nullable().optional(),
|
|
54
|
+
success: zod.z.boolean().describe("Indicates if the request was successful")
|
|
55
|
+
}).describe("Response schema for retrieving routes.");
|
|
56
|
+
const optimorouteGetRoutes = require_action.action("OPTIMOROUTE_GET_ROUTES", {
|
|
57
|
+
slug: "optimoroute-get-routes",
|
|
58
|
+
name: "Get Planned Routes",
|
|
59
|
+
description: "Tool to retrieve all planned routes for a given date. Use when you need a detailed view of routes including optional stops, route parameters, and unassigned orders.",
|
|
60
|
+
input: OptimorouteGetRoutesInput,
|
|
61
|
+
output: OptimorouteGetRoutesOutput
|
|
62
|
+
});
|
|
63
|
+
//#endregion
|
|
64
|
+
exports.optimorouteGetRoutes = optimorouteGetRoutes;
|
|
65
|
+
|
|
66
|
+
//# sourceMappingURL=get-routes.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-routes.cjs","names":["z","action"],"sources":["../../src/actions/get-routes.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OptimorouteGetRoutesInput: z.ZodTypeAny = z.object({\n route_date: z.string().describe(\"Date for which to retrieve routes in YYYY-MM-DD format\"),\n driver_serial: z.string().describe(\"Filter results by driver's serial number\").optional(),\n driver_external_id: z.string().describe(\"Filter results by driver's external identifier\").optional(),\n vehicle_registration: z.string().describe(\"Filter results by vehicle registration\").optional(),\n include_route_polyline: z.boolean().default(false).describe(\"Include encoded route polyline for map display\").optional(),\n include_route_start_end: z.boolean().default(false).describe(\"Include route's start and end locations\").optional(),\n}).describe(\"Request parameters for retrieving routes for a specific date.\");\nconst OptimorouteGetRoutes_StopSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"OptimoRoute unique stop identifier\").nullable().optional(),\n type: z.string().describe(\"Stop type (D=delivery, P=pickup, T=task, etc.)\").nullable().optional(),\n address: z.string().describe(\"Full address for the stop\").nullable().optional(),\n orderNo: z.string().describe(\"Order number associated with this stop\").nullable().optional(),\n distance: z.number().describe(\"Distance to this stop in kilometers\").nullable().optional(),\n latitude: z.number().describe(\"GPS latitude coordinate\").nullable().optional(),\n longitude: z.number().describe(\"GPS longitude coordinate\").nullable().optional(),\n locationNo: z.string().describe(\"Location identifier\").nullable().optional(),\n stopNumber: z.number().int().describe(\"Stop sequence number in the route\").nullable().optional(),\n travelTime: z.number().int().describe(\"Travel time to this stop in minutes\").nullable().optional(),\n scheduledAt: z.string().describe(\"Scheduled time in HH:MM format\").nullable().optional(),\n locationName: z.string().describe(\"Display name for the location\").nullable().optional(),\n arrivalTimeDt: z.string().describe(\"Actual arrival datetime in YYYY-MM-DD HH:MM:SS format\").nullable().optional(),\n scheduledAtDt: z.string().describe(\"Scheduled datetime in YYYY-MM-DD HH:MM:SS format\").nullable().optional(),\n}).describe(\"Details of a single stop in a route.\");\nconst OptimorouteGetRoutes_RouteStartEndSchema: z.ZodTypeAny = z.object({\n address: z.string().describe(\"Address of the location\").nullable().optional(),\n latitude: z.number().describe(\"GPS latitude coordinate\").nullable().optional(),\n longitude: z.number().describe(\"GPS longitude coordinate\").nullable().optional(),\n}).describe(\"Route start or end location details.\");\nconst OptimorouteGetRoutes_RouteSchema: z.ZodTypeAny = z.object({\n load1: z.number().describe(\"Load metric 1\").nullable().optional(),\n load2: z.number().describe(\"Load metric 2\").nullable().optional(),\n load3: z.number().describe(\"Load metric 3\").nullable().optional(),\n load4: z.number().describe(\"Load metric 4\").nullable().optional(),\n stops: z.array(OptimorouteGetRoutes_StopSchema).describe(\"List of stops in the route\").nullable().optional(),\n distance: z.number().describe(\"Route distance in kilometers\").nullable().optional(),\n duration: z.number().int().describe(\"Route duration in minutes\").nullable().optional(),\n routeEnd: OptimorouteGetRoutes_RouteStartEndSchema.nullable().optional(),\n driverName: z.string().describe(\"Driver's display name\").nullable().optional(),\n routeStart: OptimorouteGetRoutes_RouteStartEndSchema.nullable().optional(),\n driverSerial: z.string().describe(\"Driver's serial number\").nullable().optional(),\n vehicleLabel: z.string().describe(\"Vehicle display label\").nullable().optional(),\n routePolyline: z.string().describe(\"Encoded route polyline for map display\").nullable().optional(),\n driverExternalId: z.string().describe(\"Driver's external identifier\").nullable().optional(),\n vehicleRegistration: z.string().describe(\"Vehicle registration number\").nullable().optional(),\n}).describe(\"Represents a planned route for a given date.\");\nexport const OptimorouteGetRoutesOutput: z.ZodTypeAny = z.object({\n code: z.string().describe(\"Error code if the request was unsuccessful\").nullable().optional(),\n routes: z.array(OptimorouteGetRoutes_RouteSchema).describe(\"List of route objects for the specified date\").nullable().optional(),\n message: z.string().describe(\"Error message providing details about the issue\").nullable().optional(),\n success: z.boolean().describe(\"Indicates if the request was successful\"),\n}).describe(\"Response schema for retrieving routes.\");\n\nexport const optimorouteGetRoutes = action(\"OPTIMOROUTE_GET_ROUTES\", {\n slug: \"optimoroute-get-routes\",\n name: \"Get Planned Routes\",\n description: \"Tool to retrieve all planned routes for a given date. Use when you need a detailed view of routes including optional stops, route parameters, and unassigned orders.\",\n input: OptimorouteGetRoutesInput,\n output: OptimorouteGetRoutesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0CA,IAAAA,EAAE,OAAO;CAC9D,YAAYA,IAAAA,EAAE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