@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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-routes.mjs","names":[],"sources":["../../src/actions/get-routes.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OptimorouteGetRoutesInput = 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.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}).passthrough().describe(\"Details of a single stop in a route.\");\nconst OptimorouteGetRoutes_RouteStartEndSchema = 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}).passthrough().describe(\"Route start or end location details.\");\nconst OptimorouteGetRoutes_RouteSchema = 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}).passthrough().describe(\"Represents a planned route for a given date.\");\nexport const OptimorouteGetRoutesOutput = 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\").nullable(),\n}).passthrough().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":"
|
|
1
|
+
{"version":3,"file":"get-routes.mjs","names":[],"sources":["../../src/actions/get-routes.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 OptimorouteGetRoutesInput = 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.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}).passthrough().describe(\"Details of a single stop in a route.\");\nconst OptimorouteGetRoutes_RouteStartEndSchema = 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}).passthrough().describe(\"Route start or end location details.\");\nconst OptimorouteGetRoutes_RouteSchema = 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}).passthrough().describe(\"Represents a planned route for a given date.\");\nexport const OptimorouteGetRoutesOutput = 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\").nullable(),\n}).passthrough().describe(\"Response schema for retrieving routes.\");\n\nexport const optimorouteGetRoutes: AppAction<\n typeof OptimorouteGetRoutesInput,\n typeof OptimorouteGetRoutesOutput,\n typeof optimoroute.credential\n> = 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: Optimorou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ACP,QAhBwC,EAAE,OAAO;EACjD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5F,QAAQ,EAAE,MAAM,gCAAgC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/H,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpG,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACpF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-scheduling-info.cjs","names":["z","action"],"sources":["../../src/actions/get-scheduling-info.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OptimorouteGetSchedulingInfoInput = z.object({\n id: z.string().describe(\"The unique OptimoRoute-assigned order identifier. Either orderNo or id must be provided.\").optional(),\n orderNo: z.string().describe(\"The user-specified order identifier. Either orderNo or id must be provided.\").optional(),\n}).describe(\"Request parameters for retrieving scheduling information for an order.\\nEither orderNo or id must be provided.\");\nconst OptimorouteGetSchedulingInfo_ScheduleInformationSchema = z.object({\n distance: z.number().int().describe(\"Distance in meters from previous stop\").nullable().optional(),\n driverName: z.string().describe(\"Driver's name\").nullable().optional(),\n stopNumber: z.number().int().describe(\"Position in route (starts at 1)\").nullable().optional(),\n travelTime: z.number().int().describe(\"Travel time in seconds from previous stop\").nullable().optional(),\n scheduledAt: z.string().describe(\"Planned service start time (HH:MM format)\").nullable().optional(),\n driverSerial: z.string().describe(\"Driver's serial number\").nullable().optional(),\n vehicleLabel: z.string().describe(\"Vehicle identifier\").nullable().optional(),\n arrivalTimeDt: z.string().describe(\"Actual/expected arrival time (YYYY-MM-DD HH:MM:SS format)\").nullable().optional(),\n scheduledAtDt: z.string().describe(\"Planned service start (YYYY-MM-DD HH:MM:SS format)\").nullable().optional(),\n driverExternalId: z.string().describe(\"Driver's external identifier\").nullable().optional(),\n vehicleRegistration: z.string().describe(\"Vehicle registration\").nullable().optional(),\n}).passthrough().describe(\"Detailed scheduling information when an order is scheduled in a route.\");\nexport const OptimorouteGetSchedulingInfoOutput = z.object({\n code: z.string().describe(\"Error code if applicable\").nullable().optional(),\n message: z.string().describe(\"Error description if applicable\").nullable().optional(),\n success: z.boolean().describe(\"Indicates successful query execution\").nullable(),\n orderScheduled: z.boolean().describe(\"Whether the order appears in a route\").nullable(),\n scheduleInformation: OptimorouteGetSchedulingInfo_ScheduleInformationSchema.nullable().optional(),\n}).passthrough().describe(\"Response schema for retrieving order scheduling information.\");\n\nexport const optimorouteGetSchedulingInfo = action(\"OPTIMOROUTE_GET_SCHEDULING_INFO\", {\n slug: \"optimoroute-get-scheduling-info\",\n name: \"Get Order Scheduling Info\",\n description: \"Tool to retrieve scheduling information for a specific order. Use when you need to check if an order is scheduled and get details like driver assignment, timing, and position.\",\n input: OptimorouteGetSchedulingInfoInput,\n output: OptimorouteGetSchedulingInfoOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-scheduling-info.cjs","names":["z","action"],"sources":["../../src/actions/get-scheduling-info.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 OptimorouteGetSchedulingInfoInput = z.object({\n id: z.string().describe(\"The unique OptimoRoute-assigned order identifier. Either orderNo or id must be provided.\").optional(),\n orderNo: z.string().describe(\"The user-specified order identifier. Either orderNo or id must be provided.\").optional(),\n}).describe(\"Request parameters for retrieving scheduling information for an order.\\nEither orderNo or id must be provided.\");\nconst OptimorouteGetSchedulingInfo_ScheduleInformationSchema = z.object({\n distance: z.number().int().describe(\"Distance in meters from previous stop\").nullable().optional(),\n driverName: z.string().describe(\"Driver's name\").nullable().optional(),\n stopNumber: z.number().int().describe(\"Position in route (starts at 1)\").nullable().optional(),\n travelTime: z.number().int().describe(\"Travel time in seconds from previous stop\").nullable().optional(),\n scheduledAt: z.string().describe(\"Planned service start time (HH:MM format)\").nullable().optional(),\n driverSerial: z.string().describe(\"Driver's serial number\").nullable().optional(),\n vehicleLabel: z.string().describe(\"Vehicle identifier\").nullable().optional(),\n arrivalTimeDt: z.string().describe(\"Actual/expected arrival time (YYYY-MM-DD HH:MM:SS format)\").nullable().optional(),\n scheduledAtDt: z.string().describe(\"Planned service start (YYYY-MM-DD HH:MM:SS format)\").nullable().optional(),\n driverExternalId: z.string().describe(\"Driver's external identifier\").nullable().optional(),\n vehicleRegistration: z.string().describe(\"Vehicle registration\").nullable().optional(),\n}).passthrough().describe(\"Detailed scheduling information when an order is scheduled in a route.\");\nexport const OptimorouteGetSchedulingInfoOutput = z.object({\n code: z.string().describe(\"Error code if applicable\").nullable().optional(),\n message: z.string().describe(\"Error description if applicable\").nullable().optional(),\n success: z.boolean().describe(\"Indicates successful query execution\").nullable(),\n orderScheduled: z.boolean().describe(\"Whether the order appears in a route\").nullable(),\n scheduleInformation: OptimorouteGetSchedulingInfo_ScheduleInformationSchema.nullable().optional(),\n}).passthrough().describe(\"Response schema for retrieving order scheduling information.\");\n\nexport const optimorouteGetSchedulingInfo: AppAction<\n typeof OptimorouteGetSchedulingInfoInput,\n typeof OptimorouteGetSchedulingInfoOutput,\n typeof optimoroute.credential\n> = action(\"OPTIMOROUTE_GET_SCHEDULING_INFO\", {\n slug: \"optimoroute-get-scheduling-info\",\n name: \"Get Order Scheduling Info\",\n description: \"Tool to retrieve scheduling information for a specific order. Use when you need to check if an order is scheduled and get details like driver assignment, timing, and position.\",\n input: OptimorouteGetSchedulingInfoInput,\n output: OptimorouteGetSchedulingInfoOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,oCAAoCA,IAAAA,EAAE,OAAO;CACxD,IAAIA,IAAAA,EAAE,OAAO,CAAC,C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,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wEAAwE;AAClG,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC/E,gBAAgBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CACtF,qBAAqB,uDAAuD,SAAS,CAAC,CAAC,SAAS;AAClG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8DAA8D;AAExF,MAAa,+BAITC,eAAAA,OAAO,mCAAmC;CAC5C,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-scheduling-info.d.ts
|
|
@@ -24,22 +26,7 @@ declare const OptimorouteGetSchedulingInfoOutput: z.ZodObject<{
|
|
|
24
26
|
vehicleRegistration: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
27
|
}, z.core.$loose>>>;
|
|
26
28
|
}, z.core.$loose>;
|
|
27
|
-
declare const optimorouteGetSchedulingInfo:
|
|
28
|
-
id?: string | undefined;
|
|
29
|
-
orderNo?: string | undefined;
|
|
30
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"optimoroute", z.ZodObject<{
|
|
31
|
-
connectionId: z.ZodString;
|
|
32
|
-
entityId: z.ZodString;
|
|
33
|
-
instanceId: z.ZodString;
|
|
34
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
35
|
-
generic_api_key: z.ZodString;
|
|
36
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"optimoroute", z.ZodObject<{
|
|
37
|
-
connectionId: z.ZodString;
|
|
38
|
-
entityId: z.ZodString;
|
|
39
|
-
instanceId: z.ZodString;
|
|
40
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
41
|
-
generic_api_key: z.ZodString;
|
|
42
|
-
}, z.core.$strip>>]>;
|
|
29
|
+
declare const optimorouteGetSchedulingInfo: AppAction<typeof OptimorouteGetSchedulingInfoInput, typeof OptimorouteGetSchedulingInfoOutput, typeof optimoroute.credential>;
|
|
43
30
|
//#endregion
|
|
44
31
|
export { optimorouteGetSchedulingInfo };
|
|
45
32
|
//# sourceMappingURL=get-scheduling-info.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-scheduling-info.d.cts","names":[],"sources":["../../src/actions/get-scheduling-info.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-scheduling-info.d.cts","names":[],"sources":["../../src/actions/get-scheduling-info.ts"],"mappings":";;;;;cAMa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;cAiBjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;cAQlC,4BAAA,EAA8B,SAAA,QAClC,iCAAA,SACA,kCAAA,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-scheduling-info.d.ts
|
|
@@ -24,22 +26,7 @@ declare const OptimorouteGetSchedulingInfoOutput: z.ZodObject<{
|
|
|
24
26
|
vehicleRegistration: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
27
|
}, z.core.$loose>>>;
|
|
26
28
|
}, z.core.$loose>;
|
|
27
|
-
declare const optimorouteGetSchedulingInfo:
|
|
28
|
-
id?: string | undefined;
|
|
29
|
-
orderNo?: string | undefined;
|
|
30
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"optimoroute", z.ZodObject<{
|
|
31
|
-
connectionId: z.ZodString;
|
|
32
|
-
entityId: z.ZodString;
|
|
33
|
-
instanceId: z.ZodString;
|
|
34
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
35
|
-
generic_api_key: z.ZodString;
|
|
36
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"optimoroute", z.ZodObject<{
|
|
37
|
-
connectionId: z.ZodString;
|
|
38
|
-
entityId: z.ZodString;
|
|
39
|
-
instanceId: z.ZodString;
|
|
40
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
41
|
-
generic_api_key: z.ZodString;
|
|
42
|
-
}, z.core.$strip>>]>;
|
|
29
|
+
declare const optimorouteGetSchedulingInfo: AppAction<typeof OptimorouteGetSchedulingInfoInput, typeof OptimorouteGetSchedulingInfoOutput, typeof optimoroute.credential>;
|
|
43
30
|
//#endregion
|
|
44
31
|
export { optimorouteGetSchedulingInfo };
|
|
45
32
|
//# sourceMappingURL=get-scheduling-info.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-scheduling-info.d.mts","names":[],"sources":["../../src/actions/get-scheduling-info.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-scheduling-info.d.mts","names":[],"sources":["../../src/actions/get-scheduling-info.ts"],"mappings":";;;;;cAMa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;cAiBjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;cAQlC,4BAAA,EAA8B,SAAA,QAClC,iCAAA,SACA,kCAAA,SACA,WAAA,CAAY,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-scheduling-info.mjs","names":[],"sources":["../../src/actions/get-scheduling-info.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OptimorouteGetSchedulingInfoInput = z.object({\n id: z.string().describe(\"The unique OptimoRoute-assigned order identifier. Either orderNo or id must be provided.\").optional(),\n orderNo: z.string().describe(\"The user-specified order identifier. Either orderNo or id must be provided.\").optional(),\n}).describe(\"Request parameters for retrieving scheduling information for an order.\\nEither orderNo or id must be provided.\");\nconst OptimorouteGetSchedulingInfo_ScheduleInformationSchema = z.object({\n distance: z.number().int().describe(\"Distance in meters from previous stop\").nullable().optional(),\n driverName: z.string().describe(\"Driver's name\").nullable().optional(),\n stopNumber: z.number().int().describe(\"Position in route (starts at 1)\").nullable().optional(),\n travelTime: z.number().int().describe(\"Travel time in seconds from previous stop\").nullable().optional(),\n scheduledAt: z.string().describe(\"Planned service start time (HH:MM format)\").nullable().optional(),\n driverSerial: z.string().describe(\"Driver's serial number\").nullable().optional(),\n vehicleLabel: z.string().describe(\"Vehicle identifier\").nullable().optional(),\n arrivalTimeDt: z.string().describe(\"Actual/expected arrival time (YYYY-MM-DD HH:MM:SS format)\").nullable().optional(),\n scheduledAtDt: z.string().describe(\"Planned service start (YYYY-MM-DD HH:MM:SS format)\").nullable().optional(),\n driverExternalId: z.string().describe(\"Driver's external identifier\").nullable().optional(),\n vehicleRegistration: z.string().describe(\"Vehicle registration\").nullable().optional(),\n}).passthrough().describe(\"Detailed scheduling information when an order is scheduled in a route.\");\nexport const OptimorouteGetSchedulingInfoOutput = z.object({\n code: z.string().describe(\"Error code if applicable\").nullable().optional(),\n message: z.string().describe(\"Error description if applicable\").nullable().optional(),\n success: z.boolean().describe(\"Indicates successful query execution\").nullable(),\n orderScheduled: z.boolean().describe(\"Whether the order appears in a route\").nullable(),\n scheduleInformation: OptimorouteGetSchedulingInfo_ScheduleInformationSchema.nullable().optional(),\n}).passthrough().describe(\"Response schema for retrieving order scheduling information.\");\n\nexport const optimorouteGetSchedulingInfo = action(\"OPTIMOROUTE_GET_SCHEDULING_INFO\", {\n slug: \"optimoroute-get-scheduling-info\",\n name: \"Get Order Scheduling Info\",\n description: \"Tool to retrieve scheduling information for a specific order. Use when you need to check if an order is scheduled and get details like driver assignment, timing, and position.\",\n input: OptimorouteGetSchedulingInfoInput,\n output: OptimorouteGetSchedulingInfoOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-scheduling-info.mjs","names":[],"sources":["../../src/actions/get-scheduling-info.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 OptimorouteGetSchedulingInfoInput = z.object({\n id: z.string().describe(\"The unique OptimoRoute-assigned order identifier. Either orderNo or id must be provided.\").optional(),\n orderNo: z.string().describe(\"The user-specified order identifier. Either orderNo or id must be provided.\").optional(),\n}).describe(\"Request parameters for retrieving scheduling information for an order.\\nEither orderNo or id must be provided.\");\nconst OptimorouteGetSchedulingInfo_ScheduleInformationSchema = z.object({\n distance: z.number().int().describe(\"Distance in meters from previous stop\").nullable().optional(),\n driverName: z.string().describe(\"Driver's name\").nullable().optional(),\n stopNumber: z.number().int().describe(\"Position in route (starts at 1)\").nullable().optional(),\n travelTime: z.number().int().describe(\"Travel time in seconds from previous stop\").nullable().optional(),\n scheduledAt: z.string().describe(\"Planned service start time (HH:MM format)\").nullable().optional(),\n driverSerial: z.string().describe(\"Driver's serial number\").nullable().optional(),\n vehicleLabel: z.string().describe(\"Vehicle identifier\").nullable().optional(),\n arrivalTimeDt: z.string().describe(\"Actual/expected arrival time (YYYY-MM-DD HH:MM:SS format)\").nullable().optional(),\n scheduledAtDt: z.string().describe(\"Planned service start (YYYY-MM-DD HH:MM:SS format)\").nullable().optional(),\n driverExternalId: z.string().describe(\"Driver's external identifier\").nullable().optional(),\n vehicleRegistration: z.string().describe(\"Vehicle registration\").nullable().optional(),\n}).passthrough().describe(\"Detailed scheduling information when an order is scheduled in a route.\");\nexport const OptimorouteGetSchedulingInfoOutput = z.object({\n code: z.string().describe(\"Error code if applicable\").nullable().optional(),\n message: z.string().describe(\"Error description if applicable\").nullable().optional(),\n success: z.boolean().describe(\"Indicates successful query execution\").nullable(),\n orderScheduled: z.boolean().describe(\"Whether the order appears in a route\").nullable(),\n scheduleInformation: OptimorouteGetSchedulingInfo_ScheduleInformationSchema.nullable().optional(),\n}).passthrough().describe(\"Response schema for retrieving order scheduling information.\");\n\nexport const optimorouteGetSchedulingInfo: AppAction<\n typeof OptimorouteGetSchedulingInfoInput,\n typeof OptimorouteGetSchedulingInfoOutput,\n typeof optimoroute.credential\n> = action(\"OPTIMOROUTE_GET_SCHEDULING_INFO\", {\n slug: \"optimoroute-get-scheduling-info\",\n name: \"Get Order Scheduling Info\",\n description: \"Tool to retrieve scheduling information for a specific order. Use when you need to check if an order is scheduled and get details like driver assignment, timing, and position.\",\n input: OptimorouteGetSchedulingInfoInput,\n output: OptimorouteGetSchedulingInfoOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,oCAAoC,EAAE,OAAO;CACxD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS;CAC7H,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;AACvH,CAAC,CAAC,CAAC,SAAS,gHAAgH;AAC5H,MAAM,yDAAyD,EAAE,OAAO;CACtE,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrE,Y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BAAgB,EAAE,QAAQ,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;EACtF,qBAAqB,uDAAuD,SAAS,CAAC,CAAC,SAAS;CAClG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8DAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-orders.cjs","names":["z","action"],"sources":["../../src/actions/search-orders.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OptimorouteSearchOrdersInput = z.object({\n limit: z.number().int().describe(\"Maximum number of orders to return per request. Use with after_tag for paginated retrieval.\").optional(),\n orders: z.array(z.object({\n id: z.string().describe(\"OptimoRoute-assigned unique identifier to search for\").optional(),\n orderNo: z.string().describe(\"User-specified order identifier to search for\").optional(),\n}).passthrough().describe(\"Order identifier object for search criteria.\")).describe(\"List of order identifier objects to search for. Each object can contain either 'orderNo' or 'id' field.\").optional(),\n afterTag: z.string().describe(\"Cursor for pagination. Pass the 'afterTag' value from a previous response to retrieve the next page of results.\").optional(),\n dateRange: z.object({\n to: z.string().describe(\"End date in YYYY-MM-DD format\"),\n from: z.string().describe(\"Start date in YYYY-MM-DD format\"),\n}).describe(\"Date range criteria for searching orders.\").optional(),\n orderStatus: z.array(z.string()).describe(\"Filter by order status values (e.g., 'failed', 'rejected')\").optional(),\n includeOrderData: z.boolean().describe(\"When true, includes full order data in the response. Default: false.\").optional(),\n includeScheduleInformation: z.boolean().describe(\"When true, includes scheduling information in the response. Default: false.\").optional(),\n}).describe(\"Request parameters for searching orders in the system. At least one of 'orders' or 'date_range' must be provided.\");\nconst OptimorouteSearchOrders_LocationSchema = 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 locationNo: z.string().describe(\"Location identifier\").nullable().optional(),\n locationName: z.string().describe(\"Location name\").nullable().optional(),\n}).passthrough().describe(\"Location details for an order.\");\nconst OptimorouteSearchOrders_AssignedToSchema = z.object({\n serial: z.string().describe(\"Driver serial identifier\").nullable().optional(),\n externalId: z.string().describe(\"Driver external identifier\").nullable().optional(),\n}).passthrough().describe(\"Driver assignment details.\");\nconst OptimorouteSearchOrders_TimeWindowSchema = z.object({\n twTo: z.string().describe(\"End time\").nullable().optional(),\n twFrom: z.string().describe(\"Start time\").nullable().optional(),\n}).passthrough().describe(\"Time window for order service.\");\nconst OptimorouteSearchOrders_OrderDataSchema = 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 status: z.string().describe(\"Order status\").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: OptimorouteSearchOrders_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: OptimorouteSearchOrders_AssignedToSchema.nullable().optional(),\n timeWindows: z.array(OptimorouteSearchOrders_TimeWindowSchema).describe(\"Time windows for service\").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 notificationPreference: z.string().describe(\"Notification preference: 'dont_notify', 'email', 'sms', 'both'\").nullable().optional(),\n}).passthrough().describe(\"Complete order details returned in search results.\");\nexport const OptimorouteSearchOrdersOutput = z.object({\n code: z.string().describe(\"Error code if search failed\").nullable().optional(),\n orders: z.array(OptimorouteSearchOrders_OrderDataSchema).describe(\"Array of order objects matching the search criteria\"),\n message: z.string().describe(\"Error description if search failed\").nullable().optional(),\n success: z.boolean().describe(\"Indicates if the search was successful\").nullable(),\n afterTag: z.string().describe(\"Pagination cursor. If present, pass this value as 'after_tag' in the next request to retrieve additional results.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for searching orders.\");\n\nexport const optimorouteSearchOrders = action(\"OPTIMOROUTE_SEARCH_ORDERS\", {\n slug: \"optimoroute-search-orders\",\n name: \"Search Orders\",\n description: \"Tool to search for orders in OptimoRoute based on criteria. Use when you need to find orders by date range, order identifiers, or order status. At least one of 'orders' or 'date_range' must be provided.\",\n input: OptimorouteSearchOrdersInput,\n output: OptimorouteSearchOrdersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,OAAOA,IAAAA,EAAE,OAAO,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,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,iBAAiBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClH,iBAAiBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,wBAAwBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAAoD;AAC9E,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,QAAQA,IAAAA,EAAE,MAAM,uCAAuC,CAAC,CAAC,SAAS,qDAAqD;CACvH,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACjF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mHAAmH,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AAEjE,MAAa,0BAA0BC,eAAAA,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"search-orders.cjs","names":["z","action"],"sources":["../../src/actions/search-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 OptimorouteSearchOrdersInput = z.object({\n limit: z.number().int().describe(\"Maximum number of orders to return per request. Use with after_tag for paginated retrieval.\").optional(),\n orders: z.array(z.object({\n id: z.string().describe(\"OptimoRoute-assigned unique identifier to search for\").optional(),\n orderNo: z.string().describe(\"User-specified order identifier to search for\").optional(),\n}).passthrough().describe(\"Order identifier object for search criteria.\")).describe(\"List of order identifier objects to search for. Each object can contain either 'orderNo' or 'id' field.\").optional(),\n afterTag: z.string().describe(\"Cursor for pagination. Pass the 'afterTag' value from a previous response to retrieve the next page of results.\").optional(),\n dateRange: z.object({\n to: z.string().describe(\"End date in YYYY-MM-DD format\"),\n from: z.string().describe(\"Start date in YYYY-MM-DD format\"),\n}).describe(\"Date range criteria for searching orders.\").optional(),\n orderStatus: z.array(z.string()).describe(\"Filter by order status values (e.g., 'failed', 'rejected')\").optional(),\n includeOrderData: z.boolean().describe(\"When true, includes full order data in the response. Default: false.\").optional(),\n includeScheduleInformation: z.boolean().describe(\"When true, includes scheduling information in the response. Default: false.\").optional(),\n}).describe(\"Request parameters for searching orders in the system. At least one of 'orders' or 'date_range' must be provided.\");\nconst OptimorouteSearchOrders_LocationSchema = 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 locationNo: z.string().describe(\"Location identifier\").nullable().optional(),\n locationName: z.string().describe(\"Location name\").nullable().optional(),\n}).passthrough().describe(\"Location details for an order.\");\nconst OptimorouteSearchOrders_AssignedToSchema = z.object({\n serial: z.string().describe(\"Driver serial identifier\").nullable().optional(),\n externalId: z.string().describe(\"Driver external identifier\").nullable().optional(),\n}).passthrough().describe(\"Driver assignment details.\");\nconst OptimorouteSearchOrders_TimeWindowSchema = z.object({\n twTo: z.string().describe(\"End time\").nullable().optional(),\n twFrom: z.string().describe(\"Start time\").nullable().optional(),\n}).passthrough().describe(\"Time window for order service.\");\nconst OptimorouteSearchOrders_OrderDataSchema = 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 status: z.string().describe(\"Order status\").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: OptimorouteSearchOrders_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: OptimorouteSearchOrders_AssignedToSchema.nullable().optional(),\n timeWindows: z.array(OptimorouteSearchOrders_TimeWindowSchema).describe(\"Time windows for service\").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 notificationPreference: z.string().describe(\"Notification preference: 'dont_notify', 'email', 'sms', 'both'\").nullable().optional(),\n}).passthrough().describe(\"Complete order details returned in search results.\");\nexport const OptimorouteSearchOrdersOutput = z.object({\n code: z.string().describe(\"Error code if search failed\").nullable().optional(),\n orders: z.array(OptimorouteSearchOrders_OrderDataSchema).describe(\"Array of order objects matching the search criteria\"),\n message: z.string().describe(\"Error description if search failed\").nullable().optional(),\n success: z.boolean().describe(\"Indicates if the search was successful\").nullable(),\n afterTag: z.string().describe(\"Pagination cursor. If present, pass this value as 'after_tag' in the next request to retrieve additional results.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for searching orders.\");\n\nexport const optimorouteSearchOrders: AppAction<\n typeof OptimorouteSearchOrdersInput,\n typeof OptimorouteSearchOrdersOutput,\n typeof optimoroute.credential\n> = action(\"OPTIMOROUTE_SEARCH_ORDERS\", {\n slug: \"optimoroute-search-orders\",\n name: \"Search Orders\",\n description: \"Tool to search for orders in OptimoRoute based on criteria. Use when you need to find orders by date range, order identifiers, or order status. At least one of 'orders' or 'date_range' must be provided.\",\n input: OptimorouteSearchOrdersInput,\n output: OptimorouteSearchOrdersOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS;CACzI,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EACzB,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CA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AAC,SAAS;CAClH,iBAAiBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,wBAAwBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAAoD;AAC9E,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,QAAQA,IAAAA,EAAE,MAAM,uCAAuC,CAAC,CAAC,SAAS,qDAAqD;CACvH,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACjF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mHAAmH,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AAEjE,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/search-orders.d.ts
|
|
@@ -69,34 +71,7 @@ declare const OptimorouteSearchOrdersOutput: z.ZodObject<{
|
|
|
69
71
|
success: z.ZodNullable<z.ZodBoolean>;
|
|
70
72
|
afterTag: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
71
73
|
}, z.core.$loose>;
|
|
72
|
-
declare const optimorouteSearchOrders:
|
|
73
|
-
limit?: number | undefined;
|
|
74
|
-
orders?: {
|
|
75
|
-
[x: string]: unknown;
|
|
76
|
-
id?: string | undefined;
|
|
77
|
-
orderNo?: string | undefined;
|
|
78
|
-
}[] | undefined;
|
|
79
|
-
afterTag?: string | undefined;
|
|
80
|
-
dateRange?: {
|
|
81
|
-
to: string;
|
|
82
|
-
from: string;
|
|
83
|
-
} | undefined;
|
|
84
|
-
orderStatus?: string[] | undefined;
|
|
85
|
-
includeOrderData?: boolean | undefined;
|
|
86
|
-
includeScheduleInformation?: boolean | undefined;
|
|
87
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"optimoroute", z.ZodObject<{
|
|
88
|
-
connectionId: z.ZodString;
|
|
89
|
-
entityId: z.ZodString;
|
|
90
|
-
instanceId: z.ZodString;
|
|
91
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
92
|
-
generic_api_key: z.ZodString;
|
|
93
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"optimoroute", z.ZodObject<{
|
|
94
|
-
connectionId: z.ZodString;
|
|
95
|
-
entityId: z.ZodString;
|
|
96
|
-
instanceId: z.ZodString;
|
|
97
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
98
|
-
generic_api_key: z.ZodString;
|
|
99
|
-
}, z.core.$strip>>]>;
|
|
74
|
+
declare const optimorouteSearchOrders: AppAction<typeof OptimorouteSearchOrdersInput, typeof OptimorouteSearchOrdersOutput, typeof optimoroute.credential>;
|
|
100
75
|
//#endregion
|
|
101
76
|
export { optimorouteSearchOrders };
|
|
102
77
|
//# sourceMappingURL=search-orders.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-orders.d.cts","names":[],"sources":["../../src/actions/search-orders.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"search-orders.d.cts","names":[],"sources":["../../src/actions/search-orders.ts"],"mappings":";;;;;cAMa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAiE5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAQ7B,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/search-orders.d.ts
|
|
@@ -69,34 +71,7 @@ declare const OptimorouteSearchOrdersOutput: z.ZodObject<{
|
|
|
69
71
|
success: z.ZodNullable<z.ZodBoolean>;
|
|
70
72
|
afterTag: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
71
73
|
}, z.core.$loose>;
|
|
72
|
-
declare const optimorouteSearchOrders:
|
|
73
|
-
limit?: number | undefined;
|
|
74
|
-
orders?: {
|
|
75
|
-
[x: string]: unknown;
|
|
76
|
-
id?: string | undefined;
|
|
77
|
-
orderNo?: string | undefined;
|
|
78
|
-
}[] | undefined;
|
|
79
|
-
afterTag?: string | undefined;
|
|
80
|
-
dateRange?: {
|
|
81
|
-
to: string;
|
|
82
|
-
from: string;
|
|
83
|
-
} | undefined;
|
|
84
|
-
orderStatus?: string[] | undefined;
|
|
85
|
-
includeOrderData?: boolean | undefined;
|
|
86
|
-
includeScheduleInformation?: boolean | undefined;
|
|
87
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"optimoroute", z.ZodObject<{
|
|
88
|
-
connectionId: z.ZodString;
|
|
89
|
-
entityId: z.ZodString;
|
|
90
|
-
instanceId: z.ZodString;
|
|
91
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
92
|
-
generic_api_key: z.ZodString;
|
|
93
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"optimoroute", z.ZodObject<{
|
|
94
|
-
connectionId: z.ZodString;
|
|
95
|
-
entityId: z.ZodString;
|
|
96
|
-
instanceId: z.ZodString;
|
|
97
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
98
|
-
generic_api_key: z.ZodString;
|
|
99
|
-
}, z.core.$strip>>]>;
|
|
74
|
+
declare const optimorouteSearchOrders: AppAction<typeof OptimorouteSearchOrdersInput, typeof OptimorouteSearchOrdersOutput, typeof optimoroute.credential>;
|
|
100
75
|
//#endregion
|
|
101
76
|
export { optimorouteSearchOrders };
|
|
102
77
|
//# sourceMappingURL=search-orders.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-orders.d.mts","names":[],"sources":["../../src/actions/search-orders.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"search-orders.d.mts","names":[],"sources":["../../src/actions/search-orders.ts"],"mappings":";;;;;cAMa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAiE5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAQ7B,uBAAA,EAAyB,SAAA,QAC7B,4BAAA,SACA,6BAAA,SACA,WAAA,CAAY,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-orders.mjs","names":[],"sources":["../../src/actions/search-orders.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OptimorouteSearchOrdersInput = z.object({\n limit: z.number().int().describe(\"Maximum number of orders to return per request. Use with after_tag for paginated retrieval.\").optional(),\n orders: z.array(z.object({\n id: z.string().describe(\"OptimoRoute-assigned unique identifier to search for\").optional(),\n orderNo: z.string().describe(\"User-specified order identifier to search for\").optional(),\n}).passthrough().describe(\"Order identifier object for search criteria.\")).describe(\"List of order identifier objects to search for. Each object can contain either 'orderNo' or 'id' field.\").optional(),\n afterTag: z.string().describe(\"Cursor for pagination. Pass the 'afterTag' value from a previous response to retrieve the next page of results.\").optional(),\n dateRange: z.object({\n to: z.string().describe(\"End date in YYYY-MM-DD format\"),\n from: z.string().describe(\"Start date in YYYY-MM-DD format\"),\n}).describe(\"Date range criteria for searching orders.\").optional(),\n orderStatus: z.array(z.string()).describe(\"Filter by order status values (e.g., 'failed', 'rejected')\").optional(),\n includeOrderData: z.boolean().describe(\"When true, includes full order data in the response. Default: false.\").optional(),\n includeScheduleInformation: z.boolean().describe(\"When true, includes scheduling information in the response. Default: false.\").optional(),\n}).describe(\"Request parameters for searching orders in the system. At least one of 'orders' or 'date_range' must be provided.\");\nconst OptimorouteSearchOrders_LocationSchema = 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 locationNo: z.string().describe(\"Location identifier\").nullable().optional(),\n locationName: z.string().describe(\"Location name\").nullable().optional(),\n}).passthrough().describe(\"Location details for an order.\");\nconst OptimorouteSearchOrders_AssignedToSchema = z.object({\n serial: z.string().describe(\"Driver serial identifier\").nullable().optional(),\n externalId: z.string().describe(\"Driver external identifier\").nullable().optional(),\n}).passthrough().describe(\"Driver assignment details.\");\nconst OptimorouteSearchOrders_TimeWindowSchema = z.object({\n twTo: z.string().describe(\"End time\").nullable().optional(),\n twFrom: z.string().describe(\"Start time\").nullable().optional(),\n}).passthrough().describe(\"Time window for order service.\");\nconst OptimorouteSearchOrders_OrderDataSchema = 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 status: z.string().describe(\"Order status\").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: OptimorouteSearchOrders_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: OptimorouteSearchOrders_AssignedToSchema.nullable().optional(),\n timeWindows: z.array(OptimorouteSearchOrders_TimeWindowSchema).describe(\"Time windows for service\").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 notificationPreference: z.string().describe(\"Notification preference: 'dont_notify', 'email', 'sms', 'both'\").nullable().optional(),\n}).passthrough().describe(\"Complete order details returned in search results.\");\nexport const OptimorouteSearchOrdersOutput = z.object({\n code: z.string().describe(\"Error code if search failed\").nullable().optional(),\n orders: z.array(OptimorouteSearchOrders_OrderDataSchema).describe(\"Array of order objects matching the search criteria\"),\n message: z.string().describe(\"Error description if search failed\").nullable().optional(),\n success: z.boolean().describe(\"Indicates if the search was successful\").nullable(),\n afterTag: z.string().describe(\"Pagination cursor. If present, pass this value as 'after_tag' in the next request to retrieve additional results.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for searching orders.\");\n\nexport const optimorouteSearchOrders = action(\"OPTIMOROUTE_SEARCH_ORDERS\", {\n slug: \"optimoroute-search-orders\",\n name: \"Search Orders\",\n description: \"Tool to search for orders in OptimoRoute based on criteria. Use when you need to find orders by date range, order identifiers, or order status. At least one of 'orders' or 'date_range' must be provided.\",\n input: OptimorouteSearchOrdersInput,\n output: OptimorouteSearchOrdersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+B,EAAE,OAAO;CACnD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS;CACzI,QAAQ,EAAE,MAAM,EAAE,OAAO;EACzB,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;EACzF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACzF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,CAAC,SAAS,yGAAyG,CAAC,CAAC,SAAS;CACtM,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,iHAAiH,CAAC,CAAC,SAAS;CAC1J,WAAW,EAAE,OAAO;EACpB,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;EACvD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAi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
|
1
|
+
{"version":3,"file":"search-orders.mjs","names":[],"sources":["../../src/actions/search-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 OptimorouteSearchOrdersInput = z.object({\n limit: z.number().int().describe(\"Maximum number of orders to return per request. Use with after_tag for paginated retrieval.\").optional(),\n orders: z.array(z.object({\n id: z.string().describe(\"OptimoRoute-assigned unique identifier to search for\").optional(),\n orderNo: z.string().describe(\"User-specified order identifier to search for\").optional(),\n}).passthrough().describe(\"Order identifier object for search criteria.\")).describe(\"List of order identifier objects to search for. Each object can contain either 'orderNo' or 'id' field.\").optional(),\n afterTag: z.string().describe(\"Cursor for pagination. Pass the 'afterTag' value from a previous response to retrieve the next page of results.\").optional(),\n dateRange: z.object({\n to: z.string().describe(\"End date in YYYY-MM-DD format\"),\n from: z.string().describe(\"Start date in YYYY-MM-DD format\"),\n}).describe(\"Date range criteria for searching orders.\").optional(),\n orderStatus: z.array(z.string()).describe(\"Filter by order status values (e.g., 'failed', 'rejected')\").optional(),\n includeOrderData: z.boolean().describe(\"When true, includes full order data in the response. Default: false.\").optional(),\n includeScheduleInformation: z.boolean().describe(\"When true, includes scheduling information in the response. Default: false.\").optional(),\n}).describe(\"Request parameters for searching orders in the system. At least one of 'orders' or 'date_range' must be provided.\");\nconst OptimorouteSearchOrders_LocationSchema = 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 locationNo: z.string().describe(\"Location identifier\").nullable().optional(),\n locationName: z.string().describe(\"Location name\").nullable().optional(),\n}).passthrough().describe(\"Location details for an order.\");\nconst OptimorouteSearchOrders_AssignedToSchema = z.object({\n serial: z.string().describe(\"Driver serial identifier\").nullable().optional(),\n externalId: z.string().describe(\"Driver external identifier\").nullable().optional(),\n}).passthrough().describe(\"Driver assignment details.\");\nconst OptimorouteSearchOrders_TimeWindowSchema = z.object({\n twTo: z.string().describe(\"End time\").nullable().optional(),\n twFrom: z.string().describe(\"Start time\").nullable().optional(),\n}).passthrough().describe(\"Time window for order service.\");\nconst OptimorouteSearchOrders_OrderDataSchema = 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 status: z.string().describe(\"Order status\").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: OptimorouteSearchOrders_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: OptimorouteSearchOrders_AssignedToSchema.nullable().optional(),\n timeWindows: z.array(OptimorouteSearchOrders_TimeWindowSchema).describe(\"Time windows for service\").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 notificationPreference: z.string().describe(\"Notification preference: 'dont_notify', 'email', 'sms', 'both'\").nullable().optional(),\n}).passthrough().describe(\"Complete order details returned in search results.\");\nexport const OptimorouteSearchOrdersOutput = z.object({\n code: z.string().describe(\"Error code if search failed\").nullable().optional(),\n orders: z.array(OptimorouteSearchOrders_OrderDataSchema).describe(\"Array of order objects matching the search criteria\"),\n message: z.string().describe(\"Error description if search failed\").nullable().optional(),\n success: z.boolean().describe(\"Indicates if the search was successful\").nullable(),\n afterTag: z.string().describe(\"Pagination cursor. If present, pass this value as 'after_tag' in the next request to retrieve additional results.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for searching orders.\");\n\nexport const optimorouteSearchOrders: AppAction<\n typeof OptimorouteSearchOrdersInput,\n typeof OptimorouteSearchOrdersOutput,\n typeof optimoroute.credential\n> = action(\"OPTIMOROUTE_SEARCH_ORDERS\", {\n slug: \"optimoroute-search-orders\",\n name: \"Search Orders\",\n description: \"Tool to search for orders in OptimoRoute based on criteria. Use when you need to find orders by date range, order identifiers, or order status. At least one of 'orders' or 'date_range' must be provided.\",\n input: OptimorouteSearchOrdersInput,\n output: OptimorouteSearchOrdersOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,+BAA+B,EAAE,OAAO;CACnD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS;CACzI,QAAQ,EAAE,MAAM,E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AE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7E,QAAQ,EAAE,MAAM,uCAAuC,CAAC,CAAC,SAAS,qDAAqD;EACvH,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvF,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;EACjF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,mHAAmH,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"start-planning.cjs","names":["z","action"],"sources":["../../src/actions/start-planning.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OptimorouteStartPlanningInput = z.object({\n date: z.string().describe(\"Target date for planning in YYYY-MM-DD format. Required if dateRange is not specified\").optional(),\n lockType: z.enum([\"NONE\", \"ROUTES\", \"RESOURCES\"]).describe(\"Constrains route modifications - NONE (no constraints), ROUTES (lock routes), or RESOURCES (lock resources). Default: NONE. Only applicable when startWith is CURRENT\").optional(),\n balanceBy: z.enum([\"WT\", \"NUM\"]).describe(\"Balancing criteria - WT (working time) or NUM (order count). Default: WT\").optional(),\n balancing: z.enum([\"OFF\", \"ON\", \"ON_FORCE\"]).describe(\"Route balancing mode - OFF (no balancing), ON (balanced routes), or ON_FORCE (force balancing). Default: OFF\").optional(),\n dateRange: z.object({\n to: z.string().describe(\"End date of the planning range in YYYY-MM-DD format\"),\n from: z.string().describe(\"Start date of the planning range in YYYY-MM-DD format\"),\n}).describe(\"Date range for weekly planning.\").optional(),\n startWith: z.enum([\"EMPTY\", \"CURRENT\"]).describe(\"EMPTY starts fresh planning, CURRENT uses existing routes. Default: EMPTY\").optional(),\n useOrders: z.array(z.string()).describe(\"Deprecated - use useOrderObjects instead. List of order identifiers\").optional(),\n clustering: z.boolean().describe(\"Minimizes route overlap when enabled. Default: false\").optional(),\n depotTrips: z.boolean().describe(\"Enables warehouse reload scheduling. Default: false\").optional(),\n useDrivers: z.array(z.object({\n driverSerial: z.string().describe(\"Serial number identifier for the driver\").optional(),\n driverExternalId: z.string().describe(\"External identifier for the driver\").optional(),\n}).passthrough().describe(\"Driver selection for planning.\")).describe(\"Selected drivers to include in planning. Empty array uses all available drivers\").optional(),\n balancingFactor: z.number().describe(\"Weighting for balanced routes, range 0.0-1.0. Default: 0.3\").optional(),\n useOrderObjects: z.array(z.object({\n id: z.string().describe(\"OptimoRoute-assigned order identifier\").optional(),\n orderNo: z.string().describe(\"User-specified order identifier\").optional(),\n}).passthrough().describe(\"Order identifier for selective planning.\")).describe(\"Orders to optimize (maximum 500 orders per request). Each object contains either orderNo or id. Empty includes all valid orders\").optional(),\n depotVisitDuration: z.number().int().describe(\"Reload time at depot in minutes. Default: 0\").optional(),\n includeScheduledOrders: z.boolean().describe(\"Determines handling of pre-scheduled orders. Default: true\").optional(),\n}).describe(\"Request parameters for starting route optimization.\");\nexport const OptimorouteStartPlanningOutput = z.object({\n code: z.string().describe(\"Error code if operation failed (e.g., ERR_OPT_NO_REQUESTS, ERR_NO_DRIVERS)\").nullable().optional(),\n success: z.boolean().describe(\"Indicates whether the planning process was successfully initiated\").nullable(),\n planningId: z.number().int().describe(\"Job identifier for tracking or stopping the optimization process. Null if planning failed\").nullable().optional(),\n missingOrders: z.array(z.string()).describe(\"Order identifiers that were not found in the system\").nullable().optional(),\n missingDrivers: z.array(z.string()).describe(\"Driver identifiers that were not found in the system\").nullable().optional(),\n ordersWithInvalidLocation: z.array(z.string()).describe(\"Orders lacking valid geocoded locations\").nullable().optional(),\n}).passthrough().describe(\"Response schema for starting route optimization.\");\n\nexport const optimorouteStartPlanning = action(\"OPTIMOROUTE_START_PLANNING\", {\n slug: \"optimoroute-start-planning\",\n name: \"Start Planning\",\n description: \"Tool to start the planning/optimization process for a specified date or date range. Use when you need to generate optimized routes for orders and drivers. Requires orders to be created before planning can begin.\",\n input: OptimorouteStartPlanningInput,\n output: OptimorouteStartPlanningOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"start-planning.cjs","names":["z","action"],"sources":["../../src/actions/start-planning.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 OptimorouteStartPlanningInput = z.object({\n date: z.string().describe(\"Target date for planning in YYYY-MM-DD format. Required if dateRange is not specified\").optional(),\n lockType: z.enum([\"NONE\", \"ROUTES\", \"RESOURCES\"]).describe(\"Constrains route modifications - NONE (no constraints), ROUTES (lock routes), or RESOURCES (lock resources). Default: NONE. Only applicable when startWith is CURRENT\").optional(),\n balanceBy: z.enum([\"WT\", \"NUM\"]).describe(\"Balancing criteria - WT (working time) or NUM (order count). Default: WT\").optional(),\n balancing: z.enum([\"OFF\", \"ON\", \"ON_FORCE\"]).describe(\"Route balancing mode - OFF (no balancing), ON (balanced routes), or ON_FORCE (force balancing). Default: OFF\").optional(),\n dateRange: z.object({\n to: z.string().describe(\"End date of the planning range in YYYY-MM-DD format\"),\n from: z.string().describe(\"Start date of the planning range in YYYY-MM-DD format\"),\n}).describe(\"Date range for weekly planning.\").optional(),\n startWith: z.enum([\"EMPTY\", \"CURRENT\"]).describe(\"EMPTY starts fresh planning, CURRENT uses existing routes. Default: EMPTY\").optional(),\n useOrders: z.array(z.string()).describe(\"Deprecated - use useOrderObjects instead. List of order identifiers\").optional(),\n clustering: z.boolean().describe(\"Minimizes route overlap when enabled. Default: false\").optional(),\n depotTrips: z.boolean().describe(\"Enables warehouse reload scheduling. Default: false\").optional(),\n useDrivers: z.array(z.object({\n driverSerial: z.string().describe(\"Serial number identifier for the driver\").optional(),\n driverExternalId: z.string().describe(\"External identifier for the driver\").optional(),\n}).passthrough().describe(\"Driver selection for planning.\")).describe(\"Selected drivers to include in planning. Empty array uses all available drivers\").optional(),\n balancingFactor: z.number().describe(\"Weighting for balanced routes, range 0.0-1.0. Default: 0.3\").optional(),\n useOrderObjects: z.array(z.object({\n id: z.string().describe(\"OptimoRoute-assigned order identifier\").optional(),\n orderNo: z.string().describe(\"User-specified order identifier\").optional(),\n}).passthrough().describe(\"Order identifier for selective planning.\")).describe(\"Orders to optimize (maximum 500 orders per request). Each object contains either orderNo or id. Empty includes all valid orders\").optional(),\n depotVisitDuration: z.number().int().describe(\"Reload time at depot in minutes. Default: 0\").optional(),\n includeScheduledOrders: z.boolean().describe(\"Determines handling of pre-scheduled orders. Default: true\").optional(),\n}).describe(\"Request parameters for starting route optimization.\");\nexport const OptimorouteStartPlanningOutput = z.object({\n code: z.string().describe(\"Error code if operation failed (e.g., ERR_OPT_NO_REQUESTS, ERR_NO_DRIVERS)\").nullable().optional(),\n success: z.boolean().describe(\"Indicates whether the planning process was successfully initiated\").nullable(),\n planningId: z.number().int().describe(\"Job identifier for tracking or stopping the optimization process. Null if planning failed\").nullable().optional(),\n missingOrders: z.array(z.string()).describe(\"Order identifiers that were not found in the system\").nullable().optional(),\n missingDrivers: z.array(z.string()).describe(\"Driver identifiers that were not found in the system\").nullable().optional(),\n ordersWithInvalidLocation: z.array(z.string()).describe(\"Orders lacking valid geocoded locations\").nullable().optional(),\n}).passthrough().describe(\"Response schema for starting route optimization.\");\n\nexport const optimorouteStartPlanning: AppAction<\n typeof OptimorouteStartPlanningInput,\n typeof OptimorouteStartPlanningOutput,\n typeof optimoroute.credential\n> = action(\"OPTIMOROUTE_START_PLANNING\", {\n slug: \"optimoroute-start-planning\",\n name: \"Start Planning\",\n description: \"Tool to start the planning/optimization process for a specified date or date range. Use when you need to generate optimized routes for orders and drivers. Requires orders to be created before planning can begin.\",\n input: OptimorouteStartPlanningInput,\n output: OptimorouteStartPlanningOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,gCAAgCA,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,CAAC,SAAS,CAAC,CAAC,SAAS;CACzH,2BAA2BA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAAkD;AAE5E,MAAa,2BAITC,eAAAA,OAAO,8BAA8B;CACvC,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/start-planning.d.ts
|
|
@@ -48,45 +50,7 @@ declare const OptimorouteStartPlanningOutput: z.ZodObject<{
|
|
|
48
50
|
missingDrivers: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
49
51
|
ordersWithInvalidLocation: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
50
52
|
}, z.core.$loose>;
|
|
51
|
-
declare const optimorouteStartPlanning:
|
|
52
|
-
date?: string | undefined;
|
|
53
|
-
lockType?: "NONE" | "ROUTES" | "RESOURCES" | undefined;
|
|
54
|
-
balanceBy?: "WT" | "NUM" | undefined;
|
|
55
|
-
balancing?: "OFF" | "ON" | "ON_FORCE" | undefined;
|
|
56
|
-
dateRange?: {
|
|
57
|
-
to: string;
|
|
58
|
-
from: string;
|
|
59
|
-
} | undefined;
|
|
60
|
-
startWith?: "EMPTY" | "CURRENT" | undefined;
|
|
61
|
-
useOrders?: string[] | undefined;
|
|
62
|
-
clustering?: boolean | undefined;
|
|
63
|
-
depotTrips?: boolean | undefined;
|
|
64
|
-
useDrivers?: {
|
|
65
|
-
[x: string]: unknown;
|
|
66
|
-
driverSerial?: string | undefined;
|
|
67
|
-
driverExternalId?: string | undefined;
|
|
68
|
-
}[] | undefined;
|
|
69
|
-
balancingFactor?: number | undefined;
|
|
70
|
-
useOrderObjects?: {
|
|
71
|
-
[x: string]: unknown;
|
|
72
|
-
id?: string | undefined;
|
|
73
|
-
orderNo?: string | undefined;
|
|
74
|
-
}[] | undefined;
|
|
75
|
-
depotVisitDuration?: number | undefined;
|
|
76
|
-
includeScheduledOrders?: boolean | undefined;
|
|
77
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"optimoroute", z.ZodObject<{
|
|
78
|
-
connectionId: z.ZodString;
|
|
79
|
-
entityId: z.ZodString;
|
|
80
|
-
instanceId: z.ZodString;
|
|
81
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
82
|
-
generic_api_key: z.ZodString;
|
|
83
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"optimoroute", z.ZodObject<{
|
|
84
|
-
connectionId: z.ZodString;
|
|
85
|
-
entityId: z.ZodString;
|
|
86
|
-
instanceId: z.ZodString;
|
|
87
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
88
|
-
generic_api_key: z.ZodString;
|
|
89
|
-
}, z.core.$strip>>]>;
|
|
53
|
+
declare const optimorouteStartPlanning: AppAction<typeof OptimorouteStartPlanningInput, typeof OptimorouteStartPlanningOutput, typeof optimoroute.credential>;
|
|
90
54
|
//#endregion
|
|
91
55
|
export { optimorouteStartPlanning };
|
|
92
56
|
//# sourceMappingURL=start-planning.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"start-planning.d.cts","names":[],"sources":["../../src/actions/start-planning.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"start-planning.d.cts","names":[],"sources":["../../src/actions/start-planning.ts"],"mappings":";;;;;cAMa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAyB7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;cAS9B,wBAAA,EAA0B,SAAA,QAC9B,6BAAA,SACA,8BAAA,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/start-planning.d.ts
|
|
@@ -48,45 +50,7 @@ declare const OptimorouteStartPlanningOutput: z.ZodObject<{
|
|
|
48
50
|
missingDrivers: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
49
51
|
ordersWithInvalidLocation: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
50
52
|
}, z.core.$loose>;
|
|
51
|
-
declare const optimorouteStartPlanning:
|
|
52
|
-
date?: string | undefined;
|
|
53
|
-
lockType?: "NONE" | "ROUTES" | "RESOURCES" | undefined;
|
|
54
|
-
balanceBy?: "WT" | "NUM" | undefined;
|
|
55
|
-
balancing?: "OFF" | "ON" | "ON_FORCE" | undefined;
|
|
56
|
-
dateRange?: {
|
|
57
|
-
to: string;
|
|
58
|
-
from: string;
|
|
59
|
-
} | undefined;
|
|
60
|
-
startWith?: "EMPTY" | "CURRENT" | undefined;
|
|
61
|
-
useOrders?: string[] | undefined;
|
|
62
|
-
clustering?: boolean | undefined;
|
|
63
|
-
depotTrips?: boolean | undefined;
|
|
64
|
-
useDrivers?: {
|
|
65
|
-
[x: string]: unknown;
|
|
66
|
-
driverSerial?: string | undefined;
|
|
67
|
-
driverExternalId?: string | undefined;
|
|
68
|
-
}[] | undefined;
|
|
69
|
-
balancingFactor?: number | undefined;
|
|
70
|
-
useOrderObjects?: {
|
|
71
|
-
[x: string]: unknown;
|
|
72
|
-
id?: string | undefined;
|
|
73
|
-
orderNo?: string | undefined;
|
|
74
|
-
}[] | undefined;
|
|
75
|
-
depotVisitDuration?: number | undefined;
|
|
76
|
-
includeScheduledOrders?: boolean | undefined;
|
|
77
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"optimoroute", z.ZodObject<{
|
|
78
|
-
connectionId: z.ZodString;
|
|
79
|
-
entityId: z.ZodString;
|
|
80
|
-
instanceId: z.ZodString;
|
|
81
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
82
|
-
generic_api_key: z.ZodString;
|
|
83
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"optimoroute", z.ZodObject<{
|
|
84
|
-
connectionId: z.ZodString;
|
|
85
|
-
entityId: z.ZodString;
|
|
86
|
-
instanceId: z.ZodString;
|
|
87
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
88
|
-
generic_api_key: z.ZodString;
|
|
89
|
-
}, z.core.$strip>>]>;
|
|
53
|
+
declare const optimorouteStartPlanning: AppAction<typeof OptimorouteStartPlanningInput, typeof OptimorouteStartPlanningOutput, typeof optimoroute.credential>;
|
|
90
54
|
//#endregion
|
|
91
55
|
export { optimorouteStartPlanning };
|
|
92
56
|
//# sourceMappingURL=start-planning.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"start-planning.d.mts","names":[],"sources":["../../src/actions/start-planning.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"start-planning.d.mts","names":[],"sources":["../../src/actions/start-planning.ts"],"mappings":";;;;;cAMa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAyB7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;cAS9B,wBAAA,EAA0B,SAAA,QAC9B,6BAAA,SACA,8BAAA,SACA,WAAA,CAAY,UAAA"}
|