@keystrokehq/optimoroute 0.1.2 → 0.1.4

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.
Files changed (113) hide show
  1. package/dist/actions/create-or-update-orders.cjs +4 -4
  2. package/dist/actions/create-or-update-orders.cjs.map +1 -1
  3. package/dist/actions/create-or-update-orders.d.cts +6 -4
  4. package/dist/actions/create-or-update-orders.d.cts.map +1 -1
  5. package/dist/actions/create-or-update-orders.d.mts +6 -4
  6. package/dist/actions/create-or-update-orders.d.mts.map +1 -1
  7. package/dist/actions/create-or-update-orders.mjs +4 -4
  8. package/dist/actions/create-or-update-orders.mjs.map +1 -1
  9. package/dist/actions/create-order.cjs +3 -3
  10. package/dist/actions/create-order.cjs.map +1 -1
  11. package/dist/actions/create-order.d.cts +4 -3
  12. package/dist/actions/create-order.d.cts.map +1 -1
  13. package/dist/actions/create-order.d.mts +4 -3
  14. package/dist/actions/create-order.d.mts.map +1 -1
  15. package/dist/actions/create-order.mjs +3 -3
  16. package/dist/actions/create-order.mjs.map +1 -1
  17. package/dist/actions/delete-all-orders.cjs +1 -1
  18. package/dist/actions/delete-all-orders.cjs.map +1 -1
  19. package/dist/actions/delete-all-orders.d.cts +1 -1
  20. package/dist/actions/delete-all-orders.d.mts +1 -1
  21. package/dist/actions/delete-all-orders.mjs +1 -1
  22. package/dist/actions/delete-all-orders.mjs.map +1 -1
  23. package/dist/actions/delete-order.cjs +1 -1
  24. package/dist/actions/delete-order.cjs.map +1 -1
  25. package/dist/actions/delete-order.d.cts +1 -1
  26. package/dist/actions/delete-order.d.mts +1 -1
  27. package/dist/actions/delete-order.mjs +1 -1
  28. package/dist/actions/delete-order.mjs.map +1 -1
  29. package/dist/actions/delete-orders.cjs +3 -3
  30. package/dist/actions/delete-orders.cjs.map +1 -1
  31. package/dist/actions/delete-orders.d.cts +4 -3
  32. package/dist/actions/delete-orders.d.mts +4 -3
  33. package/dist/actions/delete-orders.mjs +3 -3
  34. package/dist/actions/delete-orders.mjs.map +1 -1
  35. package/dist/actions/get-completion-details.cjs +6 -6
  36. package/dist/actions/get-completion-details.cjs.map +1 -1
  37. package/dist/actions/get-completion-details.d.cts +8 -7
  38. package/dist/actions/get-completion-details.d.mts +8 -7
  39. package/dist/actions/get-completion-details.mjs +6 -6
  40. package/dist/actions/get-completion-details.mjs.map +1 -1
  41. package/dist/actions/get-drivers.cjs +2 -2
  42. package/dist/actions/get-drivers.cjs.map +1 -1
  43. package/dist/actions/get-drivers.d.cts +2 -2
  44. package/dist/actions/get-drivers.d.mts +2 -2
  45. package/dist/actions/get-drivers.mjs +2 -2
  46. package/dist/actions/get-drivers.mjs.map +1 -1
  47. package/dist/actions/get-events.cjs +3 -3
  48. package/dist/actions/get-events.cjs.map +1 -1
  49. package/dist/actions/get-events.d.cts +3 -3
  50. package/dist/actions/get-events.d.mts +3 -3
  51. package/dist/actions/get-events.mjs +3 -3
  52. package/dist/actions/get-events.mjs.map +1 -1
  53. package/dist/actions/get-orders.cjs +9 -9
  54. package/dist/actions/get-orders.cjs.map +1 -1
  55. package/dist/actions/get-orders.d.cts +10 -9
  56. package/dist/actions/get-orders.d.mts +10 -9
  57. package/dist/actions/get-orders.mjs +9 -9
  58. package/dist/actions/get-orders.mjs.map +1 -1
  59. package/dist/actions/get-planning-status.cjs +1 -1
  60. package/dist/actions/get-planning-status.cjs.map +1 -1
  61. package/dist/actions/get-planning-status.d.cts +1 -1
  62. package/dist/actions/get-planning-status.d.mts +1 -1
  63. package/dist/actions/get-planning-status.mjs +1 -1
  64. package/dist/actions/get-planning-status.mjs.map +1 -1
  65. package/dist/actions/get-routes.cjs +4 -4
  66. package/dist/actions/get-routes.cjs.map +1 -1
  67. package/dist/actions/get-routes.d.cts +5 -5
  68. package/dist/actions/get-routes.d.mts +5 -5
  69. package/dist/actions/get-routes.mjs +4 -4
  70. package/dist/actions/get-routes.mjs.map +1 -1
  71. package/dist/actions/get-scheduling-info.cjs +2 -2
  72. package/dist/actions/get-scheduling-info.cjs.map +1 -1
  73. package/dist/actions/get-scheduling-info.d.cts +2 -2
  74. package/dist/actions/get-scheduling-info.d.mts +2 -2
  75. package/dist/actions/get-scheduling-info.mjs +2 -2
  76. package/dist/actions/get-scheduling-info.mjs.map +1 -1
  77. package/dist/actions/search-orders.cjs +6 -6
  78. package/dist/actions/search-orders.cjs.map +1 -1
  79. package/dist/actions/search-orders.d.cts +7 -6
  80. package/dist/actions/search-orders.d.mts +7 -6
  81. package/dist/actions/search-orders.mjs +6 -6
  82. package/dist/actions/search-orders.mjs.map +1 -1
  83. package/dist/actions/start-planning.cjs +3 -3
  84. package/dist/actions/start-planning.cjs.map +1 -1
  85. package/dist/actions/start-planning.d.cts +5 -3
  86. package/dist/actions/start-planning.d.mts +5 -3
  87. package/dist/actions/start-planning.mjs +3 -3
  88. package/dist/actions/start-planning.mjs.map +1 -1
  89. package/dist/actions/stop-planning.cjs +1 -1
  90. package/dist/actions/stop-planning.cjs.map +1 -1
  91. package/dist/actions/stop-planning.d.cts +1 -1
  92. package/dist/actions/stop-planning.d.mts +1 -1
  93. package/dist/actions/stop-planning.mjs +1 -1
  94. package/dist/actions/stop-planning.mjs.map +1 -1
  95. package/dist/actions/update-driver-parameters.cjs +1 -1
  96. package/dist/actions/update-driver-parameters.cjs.map +1 -1
  97. package/dist/actions/update-driver-parameters.d.cts +1 -1
  98. package/dist/actions/update-driver-parameters.d.mts +1 -1
  99. package/dist/actions/update-driver-parameters.mjs +1 -1
  100. package/dist/actions/update-driver-parameters.mjs.map +1 -1
  101. package/dist/actions/update-drivers-parameters.cjs +4 -4
  102. package/dist/actions/update-drivers-parameters.cjs.map +1 -1
  103. package/dist/actions/update-drivers-parameters.d.cts +5 -4
  104. package/dist/actions/update-drivers-parameters.d.mts +5 -4
  105. package/dist/actions/update-drivers-parameters.mjs +4 -4
  106. package/dist/actions/update-drivers-parameters.mjs.map +1 -1
  107. package/dist/catalog.cjs +1 -1
  108. package/dist/catalog.cjs.map +1 -1
  109. package/dist/catalog.d.cts +1 -1
  110. package/dist/catalog.d.mts +1 -1
  111. package/dist/catalog.mjs +1 -1
  112. package/dist/catalog.mjs.map +1 -1
  113. package/package.json +1 -1
@@ -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}).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}).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}).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}).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}).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}).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,CA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ACvH,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,SAAS,uCAOF;AACV,CAAC"}
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":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AY,CAAC,CAAC,SAAS,oDAAoD;AAS9E,MAAa,0BAA0B,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAb2C,EAAE,OAAO;EACpD,MAAM,EAAE,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,uCAOhB;AACV,CAAC"}
@@ -25,12 +25,12 @@ const OptimorouteStartPlanningInput = zod.z.object({
25
25
  useDrivers: zod.z.array(zod.z.object({
26
26
  driverSerial: zod.z.string().describe("Serial number identifier for the driver").optional(),
27
27
  driverExternalId: zod.z.string().describe("External identifier for the driver").optional()
28
- }).describe("Driver selection for planning.")).describe("Selected drivers to include in planning. Empty array uses all available drivers").optional(),
28
+ }).passthrough().describe("Driver selection for planning.")).describe("Selected drivers to include in planning. Empty array uses all available drivers").optional(),
29
29
  balancingFactor: zod.z.number().describe("Weighting for balanced routes, range 0.0-1.0. Default: 0.3").optional(),
30
30
  useOrderObjects: zod.z.array(zod.z.object({
31
31
  id: zod.z.string().describe("OptimoRoute-assigned order identifier").optional(),
32
32
  orderNo: zod.z.string().describe("User-specified order identifier").optional()
33
- }).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(),
33
+ }).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(),
34
34
  depotVisitDuration: zod.z.number().int().describe("Reload time at depot in minutes. Default: 0").optional(),
35
35
  includeScheduledOrders: zod.z.boolean().describe("Determines handling of pre-scheduled orders. Default: true").optional()
36
36
  }).describe("Request parameters for starting route optimization.");
@@ -41,7 +41,7 @@ const OptimorouteStartPlanningOutput = zod.z.object({
41
41
  missingOrders: zod.z.array(zod.z.string()).describe("Order identifiers that were not found in the system").nullable().optional(),
42
42
  missingDrivers: zod.z.array(zod.z.string()).describe("Driver identifiers that were not found in the system").nullable().optional(),
43
43
  ordersWithInvalidLocation: zod.z.array(zod.z.string()).describe("Orders lacking valid geocoded locations").nullable().optional()
44
- }).describe("Response schema for starting route optimization.");
44
+ }).passthrough().describe("Response schema for starting route optimization.");
45
45
  const optimorouteStartPlanning = require_action.action("OPTIMOROUTE_START_PLANNING", {
46
46
  slug: "optimoroute-start-planning",
47
47
  name: "Start Planning",
@@ -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}).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}).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}).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":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uFAAuF,CAAC,CAAC,SAAS;CAC5H,UAAUA,IAAAA,EAAE,KAAK;EAAC;EAAQ;EAAU;CAAW,CAAC,CAAC,CAAC,SAAS,uKAAuK,CAAC,CAAC,SAAS;CAC7O,WAAWA,IAAAA,EAAE,KAAK,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CAC/H,WAAWA,IAAAA,EAAE,KAAK;EAAC;EAAO;EAAM;CAAU,CAAC,CAAC,CAAC,SAAS,8GAA8G,CAAC,CAAC,SAAS;CAC/K,WAAWA,IAAAA,EAAE,OAAO;EACpB,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD;EAC7E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;CACnF,CAAC,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CACtD,WAAWA,IAAAA,EAAE,KAAK,CAAC,SAAS,SAAS,CAAC,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;CACvI,WAAWA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CACxH,YAAYA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAClG,YAAYA,IAAAA,EAAE,QAAQ,CAAC,C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C,CAAC,SAAS,CAAC,CAAC,SAAS;CACvJ,eAAeA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvH,gBAAgBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,sDAAsD,CAAC,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,SAAS,kDAAkD;AAE9D,MAAa,2BAA2BC,eAAAA,OAAO,8BAA8B;CAC3E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
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":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uFAAuF,CAAC,CAAC,SAAS;CAC5H,UAAUA,IAAAA,EAAE,KAAK;EAAC;EAAQ;EAAU;CAAW,CAAC,CAAC,CAAC,SAAS,uKAAuK,CAAC,CAAC,SAAS;CAC7O,WAAWA,IAAAA,EAAE,KAAK,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CAC/H,WAAWA,IAAAA,EAAE,KAAK;EAAC;EAAO;EAAM;CAAU,CAAC,CAAC,CAAC,SAAS,8GAA8G,CAAC,CAAC,SAAS;CAC/K,WAAWA,IAAAA,EAAE,OAAO;EACpB,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD;EAC7E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;CACnF,CAAC,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CACtD,WAAWA,IAAAA,EAAE,KAAK,CAAC,SAAS,SAAS,CAAC,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;CACvI,WAAWA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CACxH,YAAYA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAClG,YAAYA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,qDAAqD,CAA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2FAA2F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvJ,eAAeA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvH,gBAAgBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,sDAAsD,CAAC,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,2BAA2BC,eAAAA,OAAO,8BAA8B;CAC3E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -31,12 +31,12 @@ declare const OptimorouteStartPlanningInput: z.ZodObject<{
31
31
  useDrivers: z.ZodOptional<z.ZodArray<z.ZodObject<{
32
32
  driverSerial: z.ZodOptional<z.ZodString>;
33
33
  driverExternalId: z.ZodOptional<z.ZodString>;
34
- }, z.core.$strip>>>;
34
+ }, z.core.$loose>>>;
35
35
  balancingFactor: z.ZodOptional<z.ZodNumber>;
36
36
  useOrderObjects: z.ZodOptional<z.ZodArray<z.ZodObject<{
37
37
  id: z.ZodOptional<z.ZodString>;
38
38
  orderNo: z.ZodOptional<z.ZodString>;
39
- }, z.core.$strip>>>;
39
+ }, z.core.$loose>>>;
40
40
  depotVisitDuration: z.ZodOptional<z.ZodNumber>;
41
41
  includeScheduledOrders: z.ZodOptional<z.ZodBoolean>;
42
42
  }, z.core.$strip>;
@@ -47,7 +47,7 @@ declare const OptimorouteStartPlanningOutput: z.ZodObject<{
47
47
  missingOrders: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
48
48
  missingDrivers: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
49
49
  ordersWithInvalidLocation: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
50
- }, z.core.$strip>;
50
+ }, z.core.$loose>;
51
51
  declare const optimorouteStartPlanning: import("@keystrokehq/action").WorkflowActionDefinition<{
52
52
  date?: string | undefined;
53
53
  lockType?: "NONE" | "ROUTES" | "RESOURCES" | undefined;
@@ -62,11 +62,13 @@ declare const optimorouteStartPlanning: import("@keystrokehq/action").WorkflowAc
62
62
  clustering?: boolean | undefined;
63
63
  depotTrips?: boolean | undefined;
64
64
  useDrivers?: {
65
+ [x: string]: unknown;
65
66
  driverSerial?: string | undefined;
66
67
  driverExternalId?: string | undefined;
67
68
  }[] | undefined;
68
69
  balancingFactor?: number | undefined;
69
70
  useOrderObjects?: {
71
+ [x: string]: unknown;
70
72
  id?: string | undefined;
71
73
  orderNo?: string | undefined;
72
74
  }[] | undefined;
@@ -31,12 +31,12 @@ declare const OptimorouteStartPlanningInput: z.ZodObject<{
31
31
  useDrivers: z.ZodOptional<z.ZodArray<z.ZodObject<{
32
32
  driverSerial: z.ZodOptional<z.ZodString>;
33
33
  driverExternalId: z.ZodOptional<z.ZodString>;
34
- }, z.core.$strip>>>;
34
+ }, z.core.$loose>>>;
35
35
  balancingFactor: z.ZodOptional<z.ZodNumber>;
36
36
  useOrderObjects: z.ZodOptional<z.ZodArray<z.ZodObject<{
37
37
  id: z.ZodOptional<z.ZodString>;
38
38
  orderNo: z.ZodOptional<z.ZodString>;
39
- }, z.core.$strip>>>;
39
+ }, z.core.$loose>>>;
40
40
  depotVisitDuration: z.ZodOptional<z.ZodNumber>;
41
41
  includeScheduledOrders: z.ZodOptional<z.ZodBoolean>;
42
42
  }, z.core.$strip>;
@@ -47,7 +47,7 @@ declare const OptimorouteStartPlanningOutput: z.ZodObject<{
47
47
  missingOrders: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
48
48
  missingDrivers: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
49
49
  ordersWithInvalidLocation: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
50
- }, z.core.$strip>;
50
+ }, z.core.$loose>;
51
51
  declare const optimorouteStartPlanning: import("@keystrokehq/action").WorkflowActionDefinition<{
52
52
  date?: string | undefined;
53
53
  lockType?: "NONE" | "ROUTES" | "RESOURCES" | undefined;
@@ -62,11 +62,13 @@ declare const optimorouteStartPlanning: import("@keystrokehq/action").WorkflowAc
62
62
  clustering?: boolean | undefined;
63
63
  depotTrips?: boolean | undefined;
64
64
  useDrivers?: {
65
+ [x: string]: unknown;
65
66
  driverSerial?: string | undefined;
66
67
  driverExternalId?: string | undefined;
67
68
  }[] | undefined;
68
69
  balancingFactor?: number | undefined;
69
70
  useOrderObjects?: {
71
+ [x: string]: unknown;
70
72
  id?: string | undefined;
71
73
  orderNo?: string | undefined;
72
74
  }[] | undefined;
@@ -28,12 +28,12 @@ const optimorouteStartPlanning = action("OPTIMOROUTE_START_PLANNING", {
28
28
  useDrivers: z.array(z.object({
29
29
  driverSerial: z.string().describe("Serial number identifier for the driver").optional(),
30
30
  driverExternalId: z.string().describe("External identifier for the driver").optional()
31
- }).describe("Driver selection for planning.")).describe("Selected drivers to include in planning. Empty array uses all available drivers").optional(),
31
+ }).passthrough().describe("Driver selection for planning.")).describe("Selected drivers to include in planning. Empty array uses all available drivers").optional(),
32
32
  balancingFactor: z.number().describe("Weighting for balanced routes, range 0.0-1.0. Default: 0.3").optional(),
33
33
  useOrderObjects: z.array(z.object({
34
34
  id: z.string().describe("OptimoRoute-assigned order identifier").optional(),
35
35
  orderNo: z.string().describe("User-specified order identifier").optional()
36
- }).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(),
36
+ }).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(),
37
37
  depotVisitDuration: z.number().int().describe("Reload time at depot in minutes. Default: 0").optional(),
38
38
  includeScheduledOrders: z.boolean().describe("Determines handling of pre-scheduled orders. Default: true").optional()
39
39
  }).describe("Request parameters for starting route optimization."),
@@ -44,7 +44,7 @@ const optimorouteStartPlanning = action("OPTIMOROUTE_START_PLANNING", {
44
44
  missingOrders: z.array(z.string()).describe("Order identifiers that were not found in the system").nullable().optional(),
45
45
  missingDrivers: z.array(z.string()).describe("Driver identifiers that were not found in the system").nullable().optional(),
46
46
  ordersWithInvalidLocation: z.array(z.string()).describe("Orders lacking valid geocoded locations").nullable().optional()
47
- }).describe("Response schema for starting route optimization.")
47
+ }).passthrough().describe("Response schema for starting route optimization.")
48
48
  });
49
49
  //#endregion
50
50
  export { optimorouteStartPlanning };
@@ -1 +1 @@
1
- {"version":3,"file":"start-planning.mjs","names":[],"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}).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}).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}).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":";;AAsCA,MAAa,2BAA2B,OAAO,8BAA8B;CAC3E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAtC2C,EAAE,OAAO;EACpD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uFAAuF,CAAC,CAAC,SAAS;EAC5H,UAAU,EAAE,KAAK;GAAC;GAAQ;GAAU;EAAW,CAAC,CAAC,CAAC,SAAS,uKAAuK,CAAC,CAAC,SAAS;EAC7O,WAAW,EAAE,KAAK,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;EAC/H,WAAW,EAAE,KAAK;GAAC;GAAO;GAAM;EAAU,CAAC,CAAC,CAAC,SAAS,8GAA8G,CAAC,CAAC,SAAS;EAC/K,WAAW,EAAE,OAAO;GACpB,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD;GAC7E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;EACnF,CAAC,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EACtD,WAAW,EAAE,KAAK,CAAC,SAAS,SAAS,CAAC,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;EACvI,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;EACxH,YAAY,EAAE,QAAQ,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;EAClG,YAAY,EAAE,QAAQ,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;EACjG,YAAY,EAAE,MAAM,EAAE,OAAO;GAC7B,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;GACtF,kBA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AC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzH,CAAC,CAAC,CAAC,SAAS,kDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"start-planning.mjs","names":[],"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":";;AAsCA,MAAa,2BAA2B,OAAO,8BAA8B;CAC3E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAtC2C,EAAE,OAAO;EACpD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uFAAuF,CAAC,CAAC,SAAS;EAC5H,UAAU,EAAE,KAAK;GAAC;GAAQ;GAAU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AAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EAC3E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,CAAC,SAAS,iIAAiI,CAAC,CAAC,SAAS;EAC1N,oBAAoB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;EACtG,wBAAwB,EAAE,QAAQ,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACtH,CAAC,CAAC,CAAC,SAAS,qDAcH;CACP,QAd4C,EAAE,OAAO;EACrD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5H,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;EAC5G,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvJ,eAAe,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvH,gBAAgB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzH,2BAA2B,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAOhB;AACV,CAAC"}
@@ -6,7 +6,7 @@ const OptimorouteStopPlanningOutput = zod.z.object({
6
6
  code: zod.z.string().describe("Error or warning code (not set if successful). Possible values: ERR_JOB_NOT_FOUND (Planning job not found), ERR_OPT_NOT_RUNNING (Planning job not actively running), ERR_OPT_COULD_NOT_STOP (Internal server error)").nullable().optional(),
7
7
  message: zod.z.string().describe("Error message if the request failed").nullable().optional(),
8
8
  success: zod.z.boolean().describe("Indicates if the optimization was stopped successfully").nullable()
9
- }).describe("Response schema for stopping a planning process.");
9
+ }).passthrough().describe("Response schema for stopping a planning process.");
10
10
  const optimorouteStopPlanning = require_action.action("OPTIMOROUTE_STOP_PLANNING", {
11
11
  slug: "optimoroute-stop-planning",
12
12
  name: "Stop Planning",
@@ -1 +1 @@
1
- {"version":3,"file":"stop-planning.cjs","names":["z","action"],"sources":["../../src/actions/stop-planning.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OptimorouteStopPlanningInput = z.object({\n planning_id: z.number().int().describe(\"The ID of the planning process to be stopped\"),\n}).describe(\"Request parameters for stopping a planning process.\");\nexport const OptimorouteStopPlanningOutput = z.object({\n code: z.string().describe(\"Error or warning code (not set if successful). Possible values: ERR_JOB_NOT_FOUND (Planning job not found), ERR_OPT_NOT_RUNNING (Planning job not actively running), ERR_OPT_COULD_NOT_STOP (Internal server error)\").nullable().optional(),\n message: z.string().describe(\"Error message if the request failed\").nullable().optional(),\n success: z.boolean().describe(\"Indicates if the optimization was stopped successfully\").nullable(),\n}).describe(\"Response schema for stopping a planning process.\");\n\nexport const optimorouteStopPlanning = action(\"OPTIMOROUTE_STOP_PLANNING\", {\n slug: \"optimoroute-stop-planning\",\n name: \"Stop Planning\",\n description: \"Tool to stop an active planning/optimization process. Use when you need to halt a running planning job by providing its ID.\",\n input: OptimorouteStopPlanningInput,\n output: OptimorouteStopPlanningOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,EACvF,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qNAAqN,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrQ,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAE9D,MAAa,0BAA0BC,eAAAA,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"stop-planning.cjs","names":["z","action"],"sources":["../../src/actions/stop-planning.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OptimorouteStopPlanningInput = z.object({\n planning_id: z.number().int().describe(\"The ID of the planning process to be stopped\"),\n}).describe(\"Request parameters for stopping a planning process.\");\nexport const OptimorouteStopPlanningOutput = z.object({\n code: z.string().describe(\"Error or warning code (not set if successful). Possible values: ERR_JOB_NOT_FOUND (Planning job not found), ERR_OPT_NOT_RUNNING (Planning job not actively running), ERR_OPT_COULD_NOT_STOP (Internal server error)\").nullable().optional(),\n message: z.string().describe(\"Error message if the request failed\").nullable().optional(),\n success: z.boolean().describe(\"Indicates if the optimization was stopped successfully\").nullable(),\n}).passthrough().describe(\"Response schema for stopping a planning process.\");\n\nexport const optimorouteStopPlanning = action(\"OPTIMOROUTE_STOP_PLANNING\", {\n slug: \"optimoroute-stop-planning\",\n name: \"Stop Planning\",\n description: \"Tool to stop an active planning/optimization process. Use when you need to halt a running planning job by providing its ID.\",\n input: OptimorouteStopPlanningInput,\n output: OptimorouteStopPlanningOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,EACvF,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qNAAqN,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrQ,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAAkD;AAE5E,MAAa,0BAA0BC,eAAAA,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -8,7 +8,7 @@ declare const OptimorouteStopPlanningOutput: z.ZodObject<{
8
8
  code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
9
  message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
10
  success: z.ZodNullable<z.ZodBoolean>;
11
- }, z.core.$strip>;
11
+ }, z.core.$loose>;
12
12
  declare const optimorouteStopPlanning: import("@keystrokehq/action").WorkflowActionDefinition<{
13
13
  planning_id: number;
14
14
  }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
@@ -8,7 +8,7 @@ declare const OptimorouteStopPlanningOutput: z.ZodObject<{
8
8
  code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
9
  message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
10
  success: z.ZodNullable<z.ZodBoolean>;
11
- }, z.core.$strip>;
11
+ }, z.core.$loose>;
12
12
  declare const optimorouteStopPlanning: import("@keystrokehq/action").WorkflowActionDefinition<{
13
13
  planning_id: number;
14
14
  }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
@@ -9,7 +9,7 @@ const optimorouteStopPlanning = action("OPTIMOROUTE_STOP_PLANNING", {
9
9
  code: z.string().describe("Error or warning code (not set if successful). Possible values: ERR_JOB_NOT_FOUND (Planning job not found), ERR_OPT_NOT_RUNNING (Planning job not actively running), ERR_OPT_COULD_NOT_STOP (Internal server error)").nullable().optional(),
10
10
  message: z.string().describe("Error message if the request failed").nullable().optional(),
11
11
  success: z.boolean().describe("Indicates if the optimization was stopped successfully").nullable()
12
- }).describe("Response schema for stopping a planning process.")
12
+ }).passthrough().describe("Response schema for stopping a planning process.")
13
13
  });
14
14
  //#endregion
15
15
  export { optimorouteStopPlanning };
@@ -1 +1 @@
1
- {"version":3,"file":"stop-planning.mjs","names":[],"sources":["../../src/actions/stop-planning.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OptimorouteStopPlanningInput = z.object({\n planning_id: z.number().int().describe(\"The ID of the planning process to be stopped\"),\n}).describe(\"Request parameters for stopping a planning process.\");\nexport const OptimorouteStopPlanningOutput = z.object({\n code: z.string().describe(\"Error or warning code (not set if successful). Possible values: ERR_JOB_NOT_FOUND (Planning job not found), ERR_OPT_NOT_RUNNING (Planning job not actively running), ERR_OPT_COULD_NOT_STOP (Internal server error)\").nullable().optional(),\n message: z.string().describe(\"Error message if the request failed\").nullable().optional(),\n success: z.boolean().describe(\"Indicates if the optimization was stopped successfully\").nullable(),\n}).describe(\"Response schema for stopping a planning process.\");\n\nexport const optimorouteStopPlanning = action(\"OPTIMOROUTE_STOP_PLANNING\", {\n slug: \"optimoroute-stop-planning\",\n name: \"Stop Planning\",\n description: \"Tool to stop an active planning/optimization process. Use when you need to halt a running planning job by providing its ID.\",\n input: OptimorouteStopPlanningInput,\n output: OptimorouteStopPlanningOutput,\n});\n"],"mappings":";;AAaA,MAAa,0BAA0B,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAb0C,EAAE,OAAO,EACnD,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,EACvF,CAAC,CAAC,CAAC,SAAS,qDAWH;CACP,QAX2C,EAAE,OAAO;EACpD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qNAAqN,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrQ,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxF,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CACnG,CAAC,CAAC,CAAC,SAAS,kDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"stop-planning.mjs","names":[],"sources":["../../src/actions/stop-planning.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OptimorouteStopPlanningInput = z.object({\n planning_id: z.number().int().describe(\"The ID of the planning process to be stopped\"),\n}).describe(\"Request parameters for stopping a planning process.\");\nexport const OptimorouteStopPlanningOutput = z.object({\n code: z.string().describe(\"Error or warning code (not set if successful). Possible values: ERR_JOB_NOT_FOUND (Planning job not found), ERR_OPT_NOT_RUNNING (Planning job not actively running), ERR_OPT_COULD_NOT_STOP (Internal server error)\").nullable().optional(),\n message: z.string().describe(\"Error message if the request failed\").nullable().optional(),\n success: z.boolean().describe(\"Indicates if the optimization was stopped successfully\").nullable(),\n}).passthrough().describe(\"Response schema for stopping a planning process.\");\n\nexport const optimorouteStopPlanning = action(\"OPTIMOROUTE_STOP_PLANNING\", {\n slug: \"optimoroute-stop-planning\",\n name: \"Stop Planning\",\n description: \"Tool to stop an active planning/optimization process. Use when you need to halt a running planning job by providing its ID.\",\n input: OptimorouteStopPlanningInput,\n output: OptimorouteStopPlanningOutput,\n});\n"],"mappings":";;AAaA,MAAa,0BAA0B,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAb0C,EAAE,OAAO,EACnD,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,EACvF,CAAC,CAAC,CAAC,SAAS,qDAWH;CACP,QAX2C,EAAE,OAAO;EACpD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qNAAqN,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrQ,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxF,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CACnG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAOhB;AACV,CAAC"}
@@ -23,7 +23,7 @@ const OptimorouteUpdateDriverParametersOutput = zod.z.object({
23
23
  code: zod.z.string().describe("Error code if the operation was unsuccessful (e.g., 'ERR_DRIVER_NOT_FOUND')").nullable().optional(),
24
24
  message: zod.z.string().describe("Error message providing details about the issue").nullable().optional(),
25
25
  success: zod.z.boolean().describe("Indicates whether the operation was successful").nullable()
26
- }).describe("Response schema for updating driver parameters.");
26
+ }).passthrough().describe("Response schema for updating driver parameters.");
27
27
  const optimorouteUpdateDriverParameters = require_action.action("OPTIMOROUTE_UPDATE_DRIVER_PARAMETERS", {
28
28
  slug: "optimoroute-update-driver-parameters",
29
29
  name: "Update Driver Parameters",
@@ -1 +1 @@
1
- {"version":3,"file":"update-driver-parameters.cjs","names":["z","action"],"sources":["../../src/actions/update-driver-parameters.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OptimorouteUpdateDriverParametersInput = z.object({\n date: z.string().describe(\"Target date in YYYY-MM-DD format\"),\n enabled: z.boolean().describe(\"Enable or disable driver for the specified date\").optional(),\n endAddress: z.string().describe(\"Ending location display address\").optional(),\n externalId: z.string().describe(\"Driver's external identifier from driver administration\"),\n workTimeTo: z.string().describe(\"End of work shift in HH:MM 24-hour format\").optional(),\n endLatitude: z.number().describe(\"Ending location latitude coordinate\").optional(),\n endLongitude: z.number().describe(\"Ending location longitude coordinate\").optional(),\n startAddress: z.string().describe(\"Starting location display address\").optional(),\n workTimeFrom: z.string().describe(\"Start of work shift in HH:MM 24-hour format\").optional(),\n startLatitude: z.number().describe(\"Starting location latitude coordinate\").optional(),\n startLongitude: z.number().describe(\"Starting location longitude coordinate\").optional(),\n assignedVehicle: z.string().describe(\"Vehicle external identifier to assign\").optional(),\n vehicleCapacity1: z.number().int().describe(\"Load capacity limit for dimension 1\").optional(),\n vehicleCapacity2: z.number().int().describe(\"Load capacity limit for dimension 2\").optional(),\n vehicleCapacity3: z.number().int().describe(\"Load capacity limit for dimension 3\").optional(),\n vehicleCapacity4: z.number().int().describe(\"Load capacity limit for dimension 4\").optional(),\n}).describe(\"Request parameters for updating driver parameters.\");\nexport const OptimorouteUpdateDriverParametersOutput = z.object({\n code: z.string().describe(\"Error code if the operation was unsuccessful (e.g., 'ERR_DRIVER_NOT_FOUND')\").nullable().optional(),\n message: z.string().describe(\"Error message providing details about the issue\").nullable().optional(),\n success: z.boolean().describe(\"Indicates whether the operation was successful\").nullable(),\n}).describe(\"Response schema for updating driver parameters.\");\n\nexport const optimorouteUpdateDriverParameters = action(\"OPTIMOROUTE_UPDATE_DRIVER_PARAMETERS\", {\n slug: \"optimoroute-update-driver-parameters\",\n name: \"Update Driver Parameters\",\n description: \"Tool to update driver parameters for a specific date including work times, vehicle assignment, and start/end locations. Use when you need to modify driver availability or routing constraints. Note that this unschedules existing routes for the driver on the specified date.\",\n input: OptimorouteUpdateDriverParametersInput,\n output: OptimorouteUpdateDriverParametersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yCAAyCA,IAAAA,EAAE,OAAO;CAC7D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CAC5D,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC1F,YAAYA,IAAAA,EAAE,OAAO,CAAC,C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,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7H,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;AAC3F,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAE7D,MAAa,oCAAoCC,eAAAA,OAAO,wCAAwC;CAC9F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"update-driver-parameters.cjs","names":["z","action"],"sources":["../../src/actions/update-driver-parameters.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OptimorouteUpdateDriverParametersInput = z.object({\n date: z.string().describe(\"Target date in YYYY-MM-DD format\"),\n enabled: z.boolean().describe(\"Enable or disable driver for the specified date\").optional(),\n endAddress: z.string().describe(\"Ending location display address\").optional(),\n externalId: z.string().describe(\"Driver's external identifier from driver administration\"),\n workTimeTo: z.string().describe(\"End of work shift in HH:MM 24-hour format\").optional(),\n endLatitude: z.number().describe(\"Ending location latitude coordinate\").optional(),\n endLongitude: z.number().describe(\"Ending location longitude coordinate\").optional(),\n startAddress: z.string().describe(\"Starting location display address\").optional(),\n workTimeFrom: z.string().describe(\"Start of work shift in HH:MM 24-hour format\").optional(),\n startLatitude: z.number().describe(\"Starting location latitude coordinate\").optional(),\n startLongitude: z.number().describe(\"Starting location longitude coordinate\").optional(),\n assignedVehicle: z.string().describe(\"Vehicle external identifier to assign\").optional(),\n vehicleCapacity1: z.number().int().describe(\"Load capacity limit for dimension 1\").optional(),\n vehicleCapacity2: z.number().int().describe(\"Load capacity limit for dimension 2\").optional(),\n vehicleCapacity3: z.number().int().describe(\"Load capacity limit for dimension 3\").optional(),\n vehicleCapacity4: z.number().int().describe(\"Load capacity limit for dimension 4\").optional(),\n}).describe(\"Request parameters for updating driver parameters.\");\nexport const OptimorouteUpdateDriverParametersOutput = z.object({\n code: z.string().describe(\"Error code if the operation was unsuccessful (e.g., 'ERR_DRIVER_NOT_FOUND')\").nullable().optional(),\n message: z.string().describe(\"Error message providing details about the issue\").nullable().optional(),\n success: z.boolean().describe(\"Indicates whether the operation was successful\").nullable(),\n}).passthrough().describe(\"Response schema for updating driver parameters.\");\n\nexport const optimorouteUpdateDriverParameters = action(\"OPTIMOROUTE_UPDATE_DRIVER_PARAMETERS\", {\n slug: \"optimoroute-update-driver-parameters\",\n name: \"Update Driver Parameters\",\n description: \"Tool to update driver parameters for a specific date including work times, vehicle assignment, and start/end locations. Use when you need to modify driver availability or routing constraints. Note that this unschedules existing routes for the driver on the specified date.\",\n input: OptimorouteUpdateDriverParametersInput,\n output: OptimorouteUpdateDriverParametersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yCAAyCA,IAAAA,EAAE,OAAO;CAC7D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CAC5D,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC1F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC5E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;CACzF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACtF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACjF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CACnF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAChF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CA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{
23
23
  code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
24
  message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
25
  success: z.ZodNullable<z.ZodBoolean>;
26
- }, z.core.$strip>;
26
+ }, z.core.$loose>;
27
27
  declare const optimorouteUpdateDriverParameters: import("@keystrokehq/action").WorkflowActionDefinition<{
28
28
  date: string;
29
29
  externalId: string;
@@ -23,7 +23,7 @@ declare const OptimorouteUpdateDriverParametersOutput: z.ZodObject<{
23
23
  code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
24
  message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
25
  success: z.ZodNullable<z.ZodBoolean>;
26
- }, z.core.$strip>;
26
+ }, z.core.$loose>;
27
27
  declare const optimorouteUpdateDriverParameters: import("@keystrokehq/action").WorkflowActionDefinition<{
28
28
  date: string;
29
29
  externalId: string;
@@ -26,7 +26,7 @@ const optimorouteUpdateDriverParameters = action("OPTIMOROUTE_UPDATE_DRIVER_PARA
26
26
  code: z.string().describe("Error code if the operation was unsuccessful (e.g., 'ERR_DRIVER_NOT_FOUND')").nullable().optional(),
27
27
  message: z.string().describe("Error message providing details about the issue").nullable().optional(),
28
28
  success: z.boolean().describe("Indicates whether the operation was successful").nullable()
29
- }).describe("Response schema for updating driver parameters.")
29
+ }).passthrough().describe("Response schema for updating driver parameters.")
30
30
  });
31
31
  //#endregion
32
32
  export { optimorouteUpdateDriverParameters };
@@ -1 +1 @@
1
- {"version":3,"file":"update-driver-parameters.mjs","names":[],"sources":["../../src/actions/update-driver-parameters.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OptimorouteUpdateDriverParametersInput = z.object({\n date: z.string().describe(\"Target date in YYYY-MM-DD format\"),\n enabled: z.boolean().describe(\"Enable or disable driver for the specified date\").optional(),\n endAddress: z.string().describe(\"Ending location display address\").optional(),\n externalId: z.string().describe(\"Driver's external identifier from driver administration\"),\n workTimeTo: z.string().describe(\"End of work shift in HH:MM 24-hour format\").optional(),\n endLatitude: z.number().describe(\"Ending location latitude coordinate\").optional(),\n endLongitude: z.number().describe(\"Ending location longitude coordinate\").optional(),\n startAddress: z.string().describe(\"Starting location display address\").optional(),\n workTimeFrom: z.string().describe(\"Start of work shift in HH:MM 24-hour format\").optional(),\n startLatitude: z.number().describe(\"Starting location latitude coordinate\").optional(),\n startLongitude: z.number().describe(\"Starting location longitude coordinate\").optional(),\n assignedVehicle: z.string().describe(\"Vehicle external identifier to assign\").optional(),\n vehicleCapacity1: z.number().int().describe(\"Load capacity limit for dimension 1\").optional(),\n vehicleCapacity2: z.number().int().describe(\"Load capacity limit for dimension 2\").optional(),\n vehicleCapacity3: z.number().int().describe(\"Load capacity limit for dimension 3\").optional(),\n vehicleCapacity4: z.number().int().describe(\"Load capacity limit for dimension 4\").optional(),\n}).describe(\"Request parameters for updating driver parameters.\");\nexport const OptimorouteUpdateDriverParametersOutput = z.object({\n code: z.string().describe(\"Error code if the operation was unsuccessful (e.g., 'ERR_DRIVER_NOT_FOUND')\").nullable().optional(),\n message: z.string().describe(\"Error message providing details about the issue\").nullable().optional(),\n success: z.boolean().describe(\"Indicates whether the operation was successful\").nullable(),\n}).describe(\"Response schema for updating driver parameters.\");\n\nexport const optimorouteUpdateDriverParameters = action(\"OPTIMOROUTE_UPDATE_DRIVER_PARAMETERS\", {\n slug: \"optimoroute-update-driver-parameters\",\n name: \"Update Driver Parameters\",\n description: \"Tool to update driver parameters for a specific date including work times, vehicle assignment, and start/end locations. Use when you need to modify driver availability or routing constraints. Note that this unschedules existing routes for the driver on the specified date.\",\n input: OptimorouteUpdateDriverParametersInput,\n output: OptimorouteUpdateDriverParametersOutput,\n});\n"],"mappings":";;AA4BA,MAAa,oCAAoC,OAAO,wCAAwC;CAC9F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA5BoD,EAAE,OAAO;EAC7D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;EAC5D,SAAS,EAAE,QAAQ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;EAC7H,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpG,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CAC3F,CAAC,CAAC,CAAC,SAAS,iDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"update-driver-parameters.mjs","names":[],"sources":["../../src/actions/update-driver-parameters.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OptimorouteUpdateDriverParametersInput = z.object({\n date: z.string().describe(\"Target date in YYYY-MM-DD format\"),\n enabled: z.boolean().describe(\"Enable or disable driver for the specified date\").optional(),\n endAddress: z.string().describe(\"Ending location display address\").optional(),\n externalId: z.string().describe(\"Driver's external identifier from driver administration\"),\n workTimeTo: z.string().describe(\"End of work shift in HH:MM 24-hour format\").optional(),\n endLatitude: z.number().describe(\"Ending location latitude coordinate\").optional(),\n endLongitude: z.number().describe(\"Ending location longitude coordinate\").optional(),\n startAddress: z.string().describe(\"Starting location display address\").optional(),\n workTimeFrom: z.string().describe(\"Start of work shift in HH:MM 24-hour format\").optional(),\n startLatitude: z.number().describe(\"Starting location latitude coordinate\").optional(),\n startLongitude: z.number().describe(\"Starting location longitude coordinate\").optional(),\n assignedVehicle: z.string().describe(\"Vehicle external identifier to assign\").optional(),\n vehicleCapacity1: z.number().int().describe(\"Load capacity limit for dimension 1\").optional(),\n vehicleCapacity2: z.number().int().describe(\"Load capacity limit for dimension 2\").optional(),\n vehicleCapacity3: z.number().int().describe(\"Load capacity limit for dimension 3\").optional(),\n vehicleCapacity4: z.number().int().describe(\"Load capacity limit for dimension 4\").optional(),\n}).describe(\"Request parameters for updating driver parameters.\");\nexport const OptimorouteUpdateDriverParametersOutput = z.object({\n code: z.string().describe(\"Error code if the operation was unsuccessful (e.g., 'ERR_DRIVER_NOT_FOUND')\").nullable().optional(),\n message: z.string().describe(\"Error message providing details about the issue\").nullable().optional(),\n success: z.boolean().describe(\"Indicates whether the operation was successful\").nullable(),\n}).passthrough().describe(\"Response schema for updating driver parameters.\");\n\nexport const optimorouteUpdateDriverParameters = action(\"OPTIMOROUTE_UPDATE_DRIVER_PARAMETERS\", {\n slug: \"optimoroute-update-driver-parameters\",\n name: \"Update Driver Parameters\",\n description: \"Tool to update driver parameters for a specific date including work times, vehicle assignment, and start/end locations. Use when you need to modify driver availability or routing constraints. Note that this unschedules existing routes for the driver on the specified date.\",\n input: OptimorouteUpdateDriverParametersInput,\n output: OptimorouteUpdateDriverParametersOutput,\n});\n"],"mappings":";;AA4BA,MAAa,oCAAoC,OAAO,wCAAwC;CAC9F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA5BoD,EAAE,OAAO;EAC7D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;EAC5D,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;EAC1F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EAC5E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;EACzF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;EACtF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EACjF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;EACnF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EAChF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;EAC1F,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;EACrF,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;EACvF,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;EACvF,kBAAkB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EAC5F,kBAAkB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EAC5F,kBAAkB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EAC5F,kBAAkB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC9F,CAAC,CAAC,CAAC,SAAS,oDAWH;CACP,QAXqD,EAAE,OAAO;EAC9D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7H,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpG,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CAC3F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAOhB;AACV,CAAC"}
@@ -32,22 +32,22 @@ const OptimorouteUpdateDriversParametersInput = zod.z.object({ updates: zod.z.ar
32
32
  vehicleCapacity2: zod.z.number().int().describe("Load capacity value 2 for the vehicle").optional(),
33
33
  vehicleCapacity3: zod.z.number().int().describe("Load capacity value 3 for the vehicle").optional(),
34
34
  vehicleCapacity4: zod.z.number().int().describe("Load capacity value 4 for the vehicle").optional()
35
- }).describe("Parameters to update for a single driver on a specific date.")).describe("Array of driver parameter update objects (max 500)") }).describe("Request parameters for updating multiple drivers' parameters in bulk.");
35
+ }).passthrough().describe("Parameters to update for a single driver on a specific date.")).describe("Array of driver parameter update objects (max 500)") }).describe("Request parameters for updating multiple drivers' parameters in bulk.");
36
36
  const OptimorouteUpdateDriversParameters_DriverIdentifierSchema = zod.z.object({
37
37
  serial: zod.z.string().describe("OptimoRoute-assigned driver serial number").nullable().optional(),
38
38
  externalId: zod.z.string().describe("User-assigned external identifier for the driver").nullable().optional()
39
- }).describe("Identifier for a driver using either serial or externalId.");
39
+ }).passthrough().describe("Identifier for a driver using either serial or externalId.");
40
40
  const OptimorouteUpdateDriversParameters_DriverUpdateResultSchema = zod.z.object({
41
41
  code: zod.z.string().describe("Error code if the update was unsuccessful (e.g., ERR_DRIVER_NOT_FOUND)").nullable().optional(),
42
42
  date: zod.z.string().describe("Associated date in YYYY-MM-DD format").nullable().optional(),
43
43
  driver: OptimorouteUpdateDriversParameters_DriverIdentifierSchema.nullable().optional(),
44
44
  message: zod.z.string().describe("Error description if the update was unsuccessful").nullable().optional(),
45
45
  success: zod.z.boolean().describe("Success status for this specific driver update").nullable()
46
- }).describe("Result of a single driver parameter update attempt.");
46
+ }).passthrough().describe("Result of a single driver parameter update attempt.");
47
47
  const OptimorouteUpdateDriversParametersOutput = zod.z.object({
48
48
  success: zod.z.boolean().describe("True if at least one update operation succeeded").nullable(),
49
49
  parameters: zod.z.array(OptimorouteUpdateDriversParameters_DriverUpdateResultSchema).describe("Array of driver update result objects")
50
- }).describe("Response schema for updating drivers' parameters.");
50
+ }).passthrough().describe("Response schema for updating drivers' parameters.");
51
51
  const optimorouteUpdateDriversParameters = require_action.action("OPTIMOROUTE_UPDATE_DRIVERS_PARAMETERS", {
52
52
  slug: "optimoroute-update-drivers-parameters",
53
53
  name: "Update Drivers Parameters",
@@ -1 +1 @@
1
- {"version":3,"file":"update-drivers-parameters.cjs","names":["z","action"],"sources":["../../src/actions/update-drivers-parameters.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OptimorouteUpdateDriversParametersInput = z.object({\n updates: z.array(z.object({\n date: z.string().describe(\"Date in YYYY-MM-DD format\"),\n driver: z.object({\n serial: z.string().describe(\"OptimoRoute-assigned driver serial number\").optional(),\n externalId: z.string().describe(\"User-assigned external identifier for the driver\").optional(),\n}).describe(\"Driver identifier (serial or externalId must be provided)\"),\n enabled: z.boolean().describe(\"Enable or disable driver for the specified date\").optional(),\n workTime: z.object({\n to: z.string().describe(\"End time in 24-hour format (HH:MM)\"),\n from: z.string().describe(\"Start time in 24-hour format (HH:MM)\"),\n}).describe(\"Driver's work hours configuration for the specified date.\").optional(),\n endLocation: z.object({\n type: z.string().describe(\"Location type: 'custom', 'employeeDefault', or 'startLocation'\"),\n address: z.string().describe(\"Location address for reports\").optional(),\n latitude: z.number().describe(\"GPS latitude (required when type is 'custom')\").optional(),\n longitude: z.number().describe(\"GPS longitude (required when type is 'custom')\").optional(),\n}).describe(\"Location configuration for driver start or end location.\").optional(),\n startLocation: z.object({\n type: z.string().describe(\"Location type: 'custom', 'employeeDefault', or 'startLocation'\"),\n address: z.string().describe(\"Location address for reports\").optional(),\n latitude: z.number().describe(\"GPS latitude (required when type is 'custom')\").optional(),\n longitude: z.number().describe(\"GPS longitude (required when type is 'custom')\").optional(),\n}).describe(\"Location configuration for driver start or end location.\").optional(),\n assignedVehicle: z.object({\n externalId: z.string().describe(\"User-assigned external identifier for the vehicle\").optional(),\n registration: z.string().describe(\"Vehicle registration number\").optional(),\n}).describe(\"Identifier for a vehicle using registration or externalId.\").optional(),\n vehicleCapacity1: z.number().int().describe(\"Load capacity value 1 for the vehicle\").optional(),\n vehicleCapacity2: z.number().int().describe(\"Load capacity value 2 for the vehicle\").optional(),\n vehicleCapacity3: z.number().int().describe(\"Load capacity value 3 for the vehicle\").optional(),\n vehicleCapacity4: z.number().int().describe(\"Load capacity value 4 for the vehicle\").optional(),\n}).describe(\"Parameters to update for a single driver on a specific date.\")).describe(\"Array of driver parameter update objects (max 500)\"),\n}).describe(\"Request parameters for updating multiple drivers' parameters in bulk.\");\nconst OptimorouteUpdateDriversParameters_DriverIdentifierSchema = z.object({\n serial: z.string().describe(\"OptimoRoute-assigned driver serial number\").nullable().optional(),\n externalId: z.string().describe(\"User-assigned external identifier for the driver\").nullable().optional(),\n}).describe(\"Identifier for a driver using either serial or externalId.\");\nconst OptimorouteUpdateDriversParameters_DriverUpdateResultSchema = z.object({\n code: z.string().describe(\"Error code if the update was unsuccessful (e.g., ERR_DRIVER_NOT_FOUND)\").nullable().optional(),\n date: z.string().describe(\"Associated date in YYYY-MM-DD format\").nullable().optional(),\n driver: OptimorouteUpdateDriversParameters_DriverIdentifierSchema.nullable().optional(),\n message: z.string().describe(\"Error description if the update was unsuccessful\").nullable().optional(),\n success: z.boolean().describe(\"Success status for this specific driver update\").nullable(),\n}).describe(\"Result of a single driver parameter update attempt.\");\nexport const OptimorouteUpdateDriversParametersOutput = z.object({\n success: z.boolean().describe(\"True if at least one update operation succeeded\").nullable(),\n parameters: z.array(OptimorouteUpdateDriversParameters_DriverUpdateResultSchema).describe(\"Array of driver update result objects\"),\n}).describe(\"Response schema for updating drivers' parameters.\");\n\nexport const optimorouteUpdateDriversParameters = action(\"OPTIMOROUTE_UPDATE_DRIVERS_PARAMETERS\", {\n slug: \"optimoroute-update-drivers-parameters\",\n name: \"Update Drivers Parameters\",\n description: \"Tool to update parameters of multiple drivers for specified dates in bulk (max 500 per request). Use when you need to modify driver configuration including work hours, vehicle assignments, and location settings. Note: Existing routes for the specified drivers and dates will be unscheduled.\",\n input: OptimorouteUpdateDriversParametersInput,\n output: OptimorouteUpdateDriversParametersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0CAA0CA,IAAAA,EAAE,OAAO,EAC9D,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;CAC1B,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CACrD,QAAQA,IAAAA,EAAE,OAAO;EACjB,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;EAClF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CAC/F,CAA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AAC,SAAS;CACrG,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;AAC3F,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAa,2CAA2CA,IAAAA,EAAE,OAAO;CAC/D,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC1F,YAAYA,IAAAA,EAAE,MAAM,2DAA2D,CAAC,CAAC,SAAS,uCAAuC;AACnI,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAE/D,MAAa,qCAAqCC,eAAAA,OAAO,yCAAyC;CAChG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"update-drivers-parameters.cjs","names":["z","action"],"sources":["../../src/actions/update-drivers-parameters.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OptimorouteUpdateDriversParametersInput = z.object({\n updates: z.array(z.object({\n date: z.string().describe(\"Date in YYYY-MM-DD format\"),\n driver: z.object({\n serial: z.string().describe(\"OptimoRoute-assigned driver serial number\").optional(),\n externalId: z.string().describe(\"User-assigned external identifier for the driver\").optional(),\n}).describe(\"Driver identifier (serial or externalId must be provided)\"),\n enabled: z.boolean().describe(\"Enable or disable driver for the specified date\").optional(),\n workTime: z.object({\n to: z.string().describe(\"End time in 24-hour format (HH:MM)\"),\n from: z.string().describe(\"Start time in 24-hour format (HH:MM)\"),\n}).describe(\"Driver's work hours configuration for the specified date.\").optional(),\n endLocation: z.object({\n type: z.string().describe(\"Location type: 'custom', 'employeeDefault', or 'startLocation'\"),\n address: z.string().describe(\"Location address for reports\").optional(),\n latitude: z.number().describe(\"GPS latitude (required when type is 'custom')\").optional(),\n longitude: z.number().describe(\"GPS longitude (required when type is 'custom')\").optional(),\n}).describe(\"Location configuration for driver start or end location.\").optional(),\n startLocation: z.object({\n type: z.string().describe(\"Location type: 'custom', 'employeeDefault', or 'startLocation'\"),\n address: z.string().describe(\"Location address for reports\").optional(),\n latitude: z.number().describe(\"GPS latitude (required when type is 'custom')\").optional(),\n longitude: z.number().describe(\"GPS longitude (required when type is 'custom')\").optional(),\n}).describe(\"Location configuration for driver start or end location.\").optional(),\n assignedVehicle: z.object({\n externalId: z.string().describe(\"User-assigned external identifier for the vehicle\").optional(),\n registration: z.string().describe(\"Vehicle registration number\").optional(),\n}).describe(\"Identifier for a vehicle using registration or externalId.\").optional(),\n vehicleCapacity1: z.number().int().describe(\"Load capacity value 1 for the vehicle\").optional(),\n vehicleCapacity2: z.number().int().describe(\"Load capacity value 2 for the vehicle\").optional(),\n vehicleCapacity3: z.number().int().describe(\"Load capacity value 3 for the vehicle\").optional(),\n vehicleCapacity4: z.number().int().describe(\"Load capacity value 4 for the vehicle\").optional(),\n}).passthrough().describe(\"Parameters to update for a single driver on a specific date.\")).describe(\"Array of driver parameter update objects (max 500)\"),\n}).describe(\"Request parameters for updating multiple drivers' parameters in bulk.\");\nconst OptimorouteUpdateDriversParameters_DriverIdentifierSchema = z.object({\n serial: z.string().describe(\"OptimoRoute-assigned driver serial number\").nullable().optional(),\n externalId: z.string().describe(\"User-assigned external identifier for the driver\").nullable().optional(),\n}).passthrough().describe(\"Identifier for a driver using either serial or externalId.\");\nconst OptimorouteUpdateDriversParameters_DriverUpdateResultSchema = z.object({\n code: z.string().describe(\"Error code if the update was unsuccessful (e.g., ERR_DRIVER_NOT_FOUND)\").nullable().optional(),\n date: z.string().describe(\"Associated date in YYYY-MM-DD format\").nullable().optional(),\n driver: OptimorouteUpdateDriversParameters_DriverIdentifierSchema.nullable().optional(),\n message: z.string().describe(\"Error description if the update was unsuccessful\").nullable().optional(),\n success: z.boolean().describe(\"Success status for this specific driver update\").nullable(),\n}).passthrough().describe(\"Result of a single driver parameter update attempt.\");\nexport const OptimorouteUpdateDriversParametersOutput = z.object({\n success: z.boolean().describe(\"True if at least one update operation succeeded\").nullable(),\n parameters: z.array(OptimorouteUpdateDriversParameters_DriverUpdateResultSchema).describe(\"Array of driver update result objects\"),\n}).passthrough().describe(\"Response schema for updating drivers' parameters.\");\n\nexport const optimorouteUpdateDriversParameters = action(\"OPTIMOROUTE_UPDATE_DRIVERS_PARAMETERS\", {\n slug: \"optimoroute-update-drivers-parameters\",\n name: \"Update Drivers Parameters\",\n description: \"Tool to update parameters of multiple drivers for specified dates in bulk (max 500 per request). Use when you need to modify driver configuration including work hours, vehicle assignments, and location settings. Note: Existing routes for the specified drivers and dates will be unscheduled.\",\n input: OptimorouteUpdateDriversParametersInput,\n output: OptimorouteUpdateDriversParametersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0CAA0CA,IAAAA,EAAE,OAAO,EAC9D,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;CAC1B,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CACrD,QAAQA,IAAAA,EAAE,OAAO;EACjB,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;EAClF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CAC/F,CAAC,CAAC,CAAC,SAAS,2DAA2D;CACrE,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC1F,UAAUA,IAAAA,EAAE,OAAO;EACnB,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;EAC5D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CAClE,CAAC,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CAChF,aAAaA,IAAAA,EAAE,OAAO;EACtB,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE;EAC1F,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC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;CAChG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -33,7 +33,7 @@ declare const OptimorouteUpdateDriversParametersInput: z.ZodObject<{
33
33
  vehicleCapacity2: z.ZodOptional<z.ZodNumber>;
34
34
  vehicleCapacity3: z.ZodOptional<z.ZodNumber>;
35
35
  vehicleCapacity4: z.ZodOptional<z.ZodNumber>;
36
- }, z.core.$strip>>;
36
+ }, z.core.$loose>>;
37
37
  }, z.core.$strip>;
38
38
  declare const OptimorouteUpdateDriversParametersOutput: z.ZodObject<{
39
39
  success: z.ZodNullable<z.ZodBoolean>;
@@ -43,13 +43,14 @@ declare const OptimorouteUpdateDriversParametersOutput: z.ZodObject<{
43
43
  driver: z.ZodOptional<z.ZodNullable<z.ZodObject<{
44
44
  serial: z.ZodOptional<z.ZodNullable<z.ZodString>>;
45
45
  externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
46
- }, z.core.$strip>>>;
46
+ }, z.core.$loose>>>;
47
47
  message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
48
48
  success: z.ZodNullable<z.ZodBoolean>;
49
- }, z.core.$strip>>;
50
- }, z.core.$strip>;
49
+ }, z.core.$loose>>;
50
+ }, z.core.$loose>;
51
51
  declare const optimorouteUpdateDriversParameters: import("@keystrokehq/action").WorkflowActionDefinition<{
52
52
  updates: {
53
+ [x: string]: unknown;
53
54
  date: string;
54
55
  driver: {
55
56
  serial?: string | undefined;
@@ -33,7 +33,7 @@ declare const OptimorouteUpdateDriversParametersInput: z.ZodObject<{
33
33
  vehicleCapacity2: z.ZodOptional<z.ZodNumber>;
34
34
  vehicleCapacity3: z.ZodOptional<z.ZodNumber>;
35
35
  vehicleCapacity4: z.ZodOptional<z.ZodNumber>;
36
- }, z.core.$strip>>;
36
+ }, z.core.$loose>>;
37
37
  }, z.core.$strip>;
38
38
  declare const OptimorouteUpdateDriversParametersOutput: z.ZodObject<{
39
39
  success: z.ZodNullable<z.ZodBoolean>;
@@ -43,13 +43,14 @@ declare const OptimorouteUpdateDriversParametersOutput: z.ZodObject<{
43
43
  driver: z.ZodOptional<z.ZodNullable<z.ZodObject<{
44
44
  serial: z.ZodOptional<z.ZodNullable<z.ZodString>>;
45
45
  externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
46
- }, z.core.$strip>>>;
46
+ }, z.core.$loose>>>;
47
47
  message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
48
48
  success: z.ZodNullable<z.ZodBoolean>;
49
- }, z.core.$strip>>;
50
- }, z.core.$strip>;
49
+ }, z.core.$loose>>;
50
+ }, z.core.$loose>;
51
51
  declare const optimorouteUpdateDriversParameters: import("@keystrokehq/action").WorkflowActionDefinition<{
52
52
  updates: {
53
+ [x: string]: unknown;
53
54
  date: string;
54
55
  driver: {
55
56
  serial?: string | undefined;
@@ -32,18 +32,18 @@ const OptimorouteUpdateDriversParametersInput = z.object({ updates: z.array(z.ob
32
32
  vehicleCapacity2: z.number().int().describe("Load capacity value 2 for the vehicle").optional(),
33
33
  vehicleCapacity3: z.number().int().describe("Load capacity value 3 for the vehicle").optional(),
34
34
  vehicleCapacity4: z.number().int().describe("Load capacity value 4 for the vehicle").optional()
35
- }).describe("Parameters to update for a single driver on a specific date.")).describe("Array of driver parameter update objects (max 500)") }).describe("Request parameters for updating multiple drivers' parameters in bulk.");
35
+ }).passthrough().describe("Parameters to update for a single driver on a specific date.")).describe("Array of driver parameter update objects (max 500)") }).describe("Request parameters for updating multiple drivers' parameters in bulk.");
36
36
  const OptimorouteUpdateDriversParameters_DriverIdentifierSchema = z.object({
37
37
  serial: z.string().describe("OptimoRoute-assigned driver serial number").nullable().optional(),
38
38
  externalId: z.string().describe("User-assigned external identifier for the driver").nullable().optional()
39
- }).describe("Identifier for a driver using either serial or externalId.");
39
+ }).passthrough().describe("Identifier for a driver using either serial or externalId.");
40
40
  const OptimorouteUpdateDriversParameters_DriverUpdateResultSchema = z.object({
41
41
  code: z.string().describe("Error code if the update was unsuccessful (e.g., ERR_DRIVER_NOT_FOUND)").nullable().optional(),
42
42
  date: z.string().describe("Associated date in YYYY-MM-DD format").nullable().optional(),
43
43
  driver: OptimorouteUpdateDriversParameters_DriverIdentifierSchema.nullable().optional(),
44
44
  message: z.string().describe("Error description if the update was unsuccessful").nullable().optional(),
45
45
  success: z.boolean().describe("Success status for this specific driver update").nullable()
46
- }).describe("Result of a single driver parameter update attempt.");
46
+ }).passthrough().describe("Result of a single driver parameter update attempt.");
47
47
  const optimorouteUpdateDriversParameters = action("OPTIMOROUTE_UPDATE_DRIVERS_PARAMETERS", {
48
48
  slug: "optimoroute-update-drivers-parameters",
49
49
  name: "Update Drivers Parameters",
@@ -52,7 +52,7 @@ const optimorouteUpdateDriversParameters = action("OPTIMOROUTE_UPDATE_DRIVERS_PA
52
52
  output: z.object({
53
53
  success: z.boolean().describe("True if at least one update operation succeeded").nullable(),
54
54
  parameters: z.array(OptimorouteUpdateDriversParameters_DriverUpdateResultSchema).describe("Array of driver update result objects")
55
- }).describe("Response schema for updating drivers' parameters.")
55
+ }).passthrough().describe("Response schema for updating drivers' parameters.")
56
56
  });
57
57
  //#endregion
58
58
  export { optimorouteUpdateDriversParameters };