@keystrokehq/optimoroute 0.1.0 → 0.1.3

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 (145) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/create-or-update-orders.cjs +6 -6
  4. package/dist/actions/create-or-update-orders.cjs.map +1 -1
  5. package/dist/actions/create-or-update-orders.d.cts +142 -3
  6. package/dist/actions/create-or-update-orders.d.cts.map +1 -1
  7. package/dist/actions/create-or-update-orders.d.mts +142 -3
  8. package/dist/actions/create-or-update-orders.d.mts.map +1 -1
  9. package/dist/actions/create-or-update-orders.mjs +6 -6
  10. package/dist/actions/create-or-update-orders.mjs.map +1 -1
  11. package/dist/actions/create-order.cjs +4 -4
  12. package/dist/actions/create-order.cjs.map +1 -1
  13. package/dist/actions/create-order.d.cts +96 -3
  14. package/dist/actions/create-order.d.cts.map +1 -1
  15. package/dist/actions/create-order.d.mts +96 -3
  16. package/dist/actions/create-order.d.mts.map +1 -1
  17. package/dist/actions/create-order.mjs +4 -4
  18. package/dist/actions/create-order.mjs.map +1 -1
  19. package/dist/actions/delete-all-orders.cjs +2 -2
  20. package/dist/actions/delete-all-orders.cjs.map +1 -1
  21. package/dist/actions/delete-all-orders.d.cts +12 -3
  22. package/dist/actions/delete-all-orders.d.cts.map +1 -1
  23. package/dist/actions/delete-all-orders.d.mts +12 -3
  24. package/dist/actions/delete-all-orders.d.mts.map +1 -1
  25. package/dist/actions/delete-all-orders.mjs +2 -2
  26. package/dist/actions/delete-all-orders.mjs.map +1 -1
  27. package/dist/actions/delete-order.cjs +2 -2
  28. package/dist/actions/delete-order.cjs.map +1 -1
  29. package/dist/actions/delete-order.d.cts +14 -3
  30. package/dist/actions/delete-order.d.cts.map +1 -1
  31. package/dist/actions/delete-order.d.mts +14 -3
  32. package/dist/actions/delete-order.d.mts.map +1 -1
  33. package/dist/actions/delete-order.mjs +2 -2
  34. package/dist/actions/delete-order.mjs.map +1 -1
  35. package/dist/actions/delete-orders.cjs +4 -4
  36. package/dist/actions/delete-orders.cjs.map +1 -1
  37. package/dist/actions/delete-orders.d.cts +28 -3
  38. package/dist/actions/delete-orders.d.cts.map +1 -1
  39. package/dist/actions/delete-orders.d.mts +28 -3
  40. package/dist/actions/delete-orders.d.mts.map +1 -1
  41. package/dist/actions/delete-orders.mjs +4 -4
  42. package/dist/actions/delete-orders.mjs.map +1 -1
  43. package/dist/actions/get-completion-details.cjs +8 -8
  44. package/dist/actions/get-completion-details.cjs.map +1 -1
  45. package/dist/actions/get-completion-details.d.cts +40 -3
  46. package/dist/actions/get-completion-details.d.cts.map +1 -1
  47. package/dist/actions/get-completion-details.d.mts +40 -3
  48. package/dist/actions/get-completion-details.d.mts.map +1 -1
  49. package/dist/actions/get-completion-details.mjs +8 -8
  50. package/dist/actions/get-completion-details.mjs.map +1 -1
  51. package/dist/actions/get-drivers.cjs +3 -3
  52. package/dist/actions/get-drivers.cjs.map +1 -1
  53. package/dist/actions/get-drivers.d.cts +20 -3
  54. package/dist/actions/get-drivers.d.cts.map +1 -1
  55. package/dist/actions/get-drivers.d.mts +20 -3
  56. package/dist/actions/get-drivers.d.mts.map +1 -1
  57. package/dist/actions/get-drivers.mjs +3 -3
  58. package/dist/actions/get-drivers.mjs.map +1 -1
  59. package/dist/actions/get-events.cjs +8 -8
  60. package/dist/actions/get-events.cjs.map +1 -1
  61. package/dist/actions/get-events.d.cts +29 -3
  62. package/dist/actions/get-events.d.cts.map +1 -1
  63. package/dist/actions/get-events.d.mts +29 -3
  64. package/dist/actions/get-events.d.mts.map +1 -1
  65. package/dist/actions/get-events.mjs +8 -8
  66. package/dist/actions/get-events.mjs.map +1 -1
  67. package/dist/actions/get-orders.cjs +11 -11
  68. package/dist/actions/get-orders.cjs.map +1 -1
  69. package/dist/actions/get-orders.d.cts +76 -3
  70. package/dist/actions/get-orders.d.cts.map +1 -1
  71. package/dist/actions/get-orders.d.mts +76 -3
  72. package/dist/actions/get-orders.d.mts.map +1 -1
  73. package/dist/actions/get-orders.mjs +11 -11
  74. package/dist/actions/get-orders.mjs.map +1 -1
  75. package/dist/actions/get-planning-status.cjs +2 -2
  76. package/dist/actions/get-planning-status.cjs.map +1 -1
  77. package/dist/actions/get-planning-status.d.cts +13 -3
  78. package/dist/actions/get-planning-status.d.cts.map +1 -1
  79. package/dist/actions/get-planning-status.d.mts +13 -3
  80. package/dist/actions/get-planning-status.d.mts.map +1 -1
  81. package/dist/actions/get-planning-status.mjs +2 -2
  82. package/dist/actions/get-planning-status.mjs.map +1 -1
  83. package/dist/actions/get-routes.cjs +5 -5
  84. package/dist/actions/get-routes.cjs.map +1 -1
  85. package/dist/actions/get-routes.d.cts +61 -3
  86. package/dist/actions/get-routes.d.cts.map +1 -1
  87. package/dist/actions/get-routes.d.mts +61 -3
  88. package/dist/actions/get-routes.d.mts.map +1 -1
  89. package/dist/actions/get-routes.mjs +5 -5
  90. package/dist/actions/get-routes.mjs.map +1 -1
  91. package/dist/actions/get-scheduling-info.cjs +4 -4
  92. package/dist/actions/get-scheduling-info.cjs.map +1 -1
  93. package/dist/actions/get-scheduling-info.d.cts +27 -3
  94. package/dist/actions/get-scheduling-info.d.cts.map +1 -1
  95. package/dist/actions/get-scheduling-info.d.mts +27 -3
  96. package/dist/actions/get-scheduling-info.d.mts.map +1 -1
  97. package/dist/actions/get-scheduling-info.mjs +4 -4
  98. package/dist/actions/get-scheduling-info.mjs.map +1 -1
  99. package/dist/actions/search-orders.cjs +7 -7
  100. package/dist/actions/search-orders.cjs.map +1 -1
  101. package/dist/actions/search-orders.d.cts +84 -3
  102. package/dist/actions/search-orders.d.cts.map +1 -1
  103. package/dist/actions/search-orders.d.mts +84 -3
  104. package/dist/actions/search-orders.d.mts.map +1 -1
  105. package/dist/actions/search-orders.mjs +7 -7
  106. package/dist/actions/search-orders.mjs.map +1 -1
  107. package/dist/actions/start-planning.cjs +4 -4
  108. package/dist/actions/start-planning.cjs.map +1 -1
  109. package/dist/actions/start-planning.d.cts +74 -3
  110. package/dist/actions/start-planning.d.cts.map +1 -1
  111. package/dist/actions/start-planning.d.mts +74 -3
  112. package/dist/actions/start-planning.d.mts.map +1 -1
  113. package/dist/actions/start-planning.mjs +4 -4
  114. package/dist/actions/start-planning.mjs.map +1 -1
  115. package/dist/actions/stop-planning.cjs +2 -2
  116. package/dist/actions/stop-planning.cjs.map +1 -1
  117. package/dist/actions/stop-planning.d.cts +11 -3
  118. package/dist/actions/stop-planning.d.cts.map +1 -1
  119. package/dist/actions/stop-planning.d.mts +11 -3
  120. package/dist/actions/stop-planning.d.mts.map +1 -1
  121. package/dist/actions/stop-planning.mjs +2 -2
  122. package/dist/actions/stop-planning.mjs.map +1 -1
  123. package/dist/actions/update-driver-parameters.cjs +2 -2
  124. package/dist/actions/update-driver-parameters.cjs.map +1 -1
  125. package/dist/actions/update-driver-parameters.d.cts +41 -3
  126. package/dist/actions/update-driver-parameters.d.cts.map +1 -1
  127. package/dist/actions/update-driver-parameters.d.mts +41 -3
  128. package/dist/actions/update-driver-parameters.d.mts.map +1 -1
  129. package/dist/actions/update-driver-parameters.mjs +2 -2
  130. package/dist/actions/update-driver-parameters.mjs.map +1 -1
  131. package/dist/actions/update-drivers-parameters.cjs +6 -6
  132. package/dist/actions/update-drivers-parameters.cjs.map +1 -1
  133. package/dist/actions/update-drivers-parameters.d.cts +82 -3
  134. package/dist/actions/update-drivers-parameters.d.cts.map +1 -1
  135. package/dist/actions/update-drivers-parameters.d.mts +82 -3
  136. package/dist/actions/update-drivers-parameters.d.mts.map +1 -1
  137. package/dist/actions/update-drivers-parameters.mjs +6 -6
  138. package/dist/actions/update-drivers-parameters.mjs.map +1 -1
  139. package/dist/catalog.cjs +7 -1
  140. package/dist/catalog.cjs.map +1 -1
  141. package/dist/catalog.d.cts +8 -0
  142. package/dist/catalog.d.mts +8 -0
  143. package/dist/catalog.mjs +7 -1
  144. package/dist/catalog.mjs.map +1 -1
  145. package/package.json +2 -2
@@ -6,27 +6,27 @@ const OptimorouteGetEvents_PlannedStartTimeSchema = zod.z.object({
6
6
  utcTime: zod.z.string().describe("ISO 8601 UTC timestamp").nullable().optional(),
7
7
  localTime: zod.z.string().describe("ISO 8601 timestamp in order location timezone").nullable().optional(),
8
8
  unixTimestamp: zod.z.number().int().describe("Unix timestamp (seconds since January 1, 1970 UTC)").nullable().optional()
9
- }).describe("Time object for planned route start time (used with start_time_changed event).");
9
+ }).passthrough().describe("Time object for planned route start time (used with start_time_changed event).");
10
10
  const OptimorouteGetEvents_EventSchema = zod.z.object({
11
- event: zod.z.string().describe("Event type code: on_duty, off_duty, start_service, success, failed, rejected, start_route, end_route, start_time_changed"),
11
+ event: zod.z.string().describe("Event type code: on_duty, off_duty, start_service, success, failed, rejected, start_route, end_route, start_time_changed").nullable(),
12
12
  orderId: zod.z.string().describe("OptimoRoute-assigned order ID").nullable().optional(),
13
13
  orderNo: zod.z.string().describe("Order identifier").nullable().optional(),
14
- utcTime: zod.z.string().describe("ISO 8601 UTC timestamp"),
15
- localTime: zod.z.string().describe("ISO 8601 timestamp in order location timezone"),
14
+ utcTime: zod.z.string().describe("ISO 8601 UTC timestamp").nullable(),
15
+ localTime: zod.z.string().describe("ISO 8601 timestamp in order location timezone").nullable(),
16
16
  driverName: zod.z.string().describe("Driver identifier").nullable().optional(),
17
17
  driverSerial: zod.z.string().describe("Driver serial number").nullable().optional(),
18
- unixTimestamp: zod.z.number().int().describe("Unix timestamp (seconds since January 1, 1970 UTC)"),
18
+ unixTimestamp: zod.z.number().int().describe("Unix timestamp (seconds since January 1, 1970 UTC)").nullable(),
19
19
  driverExternalId: zod.z.string().describe("External driver identifier").nullable().optional(),
20
20
  plannedStartTime: OptimorouteGetEvents_PlannedStartTimeSchema.nullable().optional()
21
- }).describe("Represents a single mobile event from field operations.");
21
+ }).passthrough().describe("Represents a single mobile event from field operations.");
22
22
  const OptimorouteGetEventsOutput = zod.z.object({
23
23
  tag: zod.z.string().describe("Marker for the final event in this response; use as after_tag in subsequent requests").nullable().optional(),
24
24
  code: zod.z.string().describe("Error code if operation failed").nullable().optional(),
25
25
  events: zod.z.array(OptimorouteGetEvents_EventSchema).describe("Collection of event objects in chronological order").nullable().optional(),
26
26
  message: zod.z.string().describe("Error or status message from the API").nullable().optional(),
27
- success: zod.z.boolean().describe("Indicates successful operation"),
27
+ success: zod.z.boolean().describe("Indicates successful operation").nullable(),
28
28
  remainingEvents: zod.z.number().int().describe("Count of undelivered events; indicates whether more calls are needed").nullable().optional()
29
- }).describe("Response schema for retrieving mobile events.");
29
+ }).passthrough().describe("Response schema for retrieving mobile events.");
30
30
  const optimorouteGetEvents = require_action.action("OPTIMOROUTE_GET_EVENTS", {
31
31
  slug: "optimoroute-get-events",
32
32
  name: "Get Mobile Events",
@@ -1 +1 @@
1
- {"version":3,"file":"get-events.cjs","names":["z","action"],"sources":["../../src/actions/get-events.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OptimorouteGetEventsInput: z.ZodTypeAny = z.object({\n after_tag: z.string().describe(\"Marker for a prior point in time. Submit this value to retrieve only events occurring after the previous call. Leave empty for initial requests to get all events.\").optional(),\n}).describe(\"Request parameters for retrieving mobile events from drivers' field operations.\");\nconst OptimorouteGetEvents_PlannedStartTimeSchema: z.ZodTypeAny = z.object({\n utcTime: z.string().describe(\"ISO 8601 UTC timestamp\").nullable().optional(),\n localTime: z.string().describe(\"ISO 8601 timestamp in order location timezone\").nullable().optional(),\n unixTimestamp: z.number().int().describe(\"Unix timestamp (seconds since January 1, 1970 UTC)\").nullable().optional(),\n}).describe(\"Time object for planned route start time (used with start_time_changed event).\");\nconst OptimorouteGetEvents_EventSchema: z.ZodTypeAny = z.object({\n event: z.string().describe(\"Event type code: on_duty, off_duty, start_service, success, failed, rejected, start_route, end_route, start_time_changed\"),\n orderId: z.string().describe(\"OptimoRoute-assigned order ID\").nullable().optional(),\n orderNo: z.string().describe(\"Order identifier\").nullable().optional(),\n utcTime: z.string().describe(\"ISO 8601 UTC timestamp\"),\n localTime: z.string().describe(\"ISO 8601 timestamp in order location timezone\"),\n driverName: z.string().describe(\"Driver identifier\").nullable().optional(),\n driverSerial: z.string().describe(\"Driver serial number\").nullable().optional(),\n unixTimestamp: z.number().int().describe(\"Unix timestamp (seconds since January 1, 1970 UTC)\"),\n driverExternalId: z.string().describe(\"External driver identifier\").nullable().optional(),\n plannedStartTime: OptimorouteGetEvents_PlannedStartTimeSchema.nullable().optional(),\n}).describe(\"Represents a single mobile event from field operations.\");\nexport const OptimorouteGetEventsOutput: z.ZodTypeAny = z.object({\n tag: z.string().describe(\"Marker for the final event in this response; use as after_tag in subsequent requests\").nullable().optional(),\n code: z.string().describe(\"Error code if operation failed\").nullable().optional(),\n events: z.array(OptimorouteGetEvents_EventSchema).describe(\"Collection of event objects in chronological order\").nullable().optional(),\n message: z.string().describe(\"Error or status message from the API\").nullable().optional(),\n success: z.boolean().describe(\"Indicates successful operation\"),\n remainingEvents: z.number().int().describe(\"Count of undelivered events; indicates whether more calls are needed\").nullable().optional(),\n}).describe(\"Response schema for retrieving mobile events.\");\n\nexport const optimorouteGetEvents = action(\"OPTIMOROUTE_GET_EVENTS\", {\n slug: \"optimoroute-get-events\",\n name: \"Get Mobile Events\",\n description: \"Tool to retrieve mobile events from drivers' field operations. Use when you need to track order completions, status changes (success, failed, on_duty, off_duty), and other field events for the currently active plan.\",\n input: OptimorouteGetEventsInput,\n output: OptimorouteGetEventsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0CA,IAAAA,EAAE,OAAO,EAC9D,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oKAAoK,CAAC,CAAC,SAAS,EAChN,CAAC,CAAC,CAAC,SAAS,iFAAiF;AAC7F,MAAM,8CAA4DA,IAAAA,EAAE,OAAO;CACzE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CA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CAAC,SAAS;CACrI,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,QAAQA,IAAAA,EAAE,MAAM,gCAAgC,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrI,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gCAAgC;CAC9D,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzI,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAE3D,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-events.cjs","names":["z","action"],"sources":["../../src/actions/get-events.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OptimorouteGetEventsInput = z.object({\n after_tag: z.string().describe(\"Marker for a prior point in time. Submit this value to retrieve only events occurring after the previous call. Leave empty for initial requests to get all events.\").optional(),\n}).describe(\"Request parameters for retrieving mobile events from drivers' field operations.\");\nconst OptimorouteGetEvents_PlannedStartTimeSchema = z.object({\n utcTime: z.string().describe(\"ISO 8601 UTC timestamp\").nullable().optional(),\n localTime: z.string().describe(\"ISO 8601 timestamp in order location timezone\").nullable().optional(),\n unixTimestamp: z.number().int().describe(\"Unix timestamp (seconds since January 1, 1970 UTC)\").nullable().optional(),\n}).passthrough().describe(\"Time object for planned route start time (used with start_time_changed event).\");\nconst OptimorouteGetEvents_EventSchema = z.object({\n event: z.string().describe(\"Event type code: on_duty, off_duty, start_service, success, failed, rejected, start_route, end_route, start_time_changed\").nullable(),\n orderId: z.string().describe(\"OptimoRoute-assigned order ID\").nullable().optional(),\n orderNo: z.string().describe(\"Order identifier\").nullable().optional(),\n utcTime: z.string().describe(\"ISO 8601 UTC timestamp\").nullable(),\n localTime: z.string().describe(\"ISO 8601 timestamp in order location timezone\").nullable(),\n driverName: z.string().describe(\"Driver identifier\").nullable().optional(),\n driverSerial: z.string().describe(\"Driver serial number\").nullable().optional(),\n unixTimestamp: z.number().int().describe(\"Unix timestamp (seconds since January 1, 1970 UTC)\").nullable(),\n driverExternalId: z.string().describe(\"External driver identifier\").nullable().optional(),\n plannedStartTime: OptimorouteGetEvents_PlannedStartTimeSchema.nullable().optional(),\n}).passthrough().describe(\"Represents a single mobile event from field operations.\");\nexport const OptimorouteGetEventsOutput = z.object({\n tag: z.string().describe(\"Marker for the final event in this response; use as after_tag in subsequent requests\").nullable().optional(),\n code: z.string().describe(\"Error code if operation failed\").nullable().optional(),\n events: z.array(OptimorouteGetEvents_EventSchema).describe(\"Collection of event objects in chronological order\").nullable().optional(),\n message: z.string().describe(\"Error or status message from the API\").nullable().optional(),\n success: z.boolean().describe(\"Indicates successful operation\").nullable(),\n remainingEvents: z.number().int().describe(\"Count of undelivered events; indicates whether more calls are needed\").nullable().optional(),\n}).passthrough().describe(\"Response schema for retrieving mobile events.\");\n\nexport const optimorouteGetEvents = action(\"OPTIMOROUTE_GET_EVENTS\", {\n slug: \"optimoroute-get-events\",\n name: \"Get Mobile Events\",\n description: \"Tool to retrieve mobile events from drivers' field operations. Use when you need to track order completions, status changes (success, failed, on_duty, off_duty), and other field events for the currently active plan.\",\n input: OptimorouteGetEventsInput,\n output: OptimorouteGetEventsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oKAAoK,CAAC,CAAC,SAAS,EAChN,CAAC,CAAC,CAAC,SAAS,iFAAiF;AAC7F,MAAM,8CAA8C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kBAAkB,4CAA4C,SAAS,CAAC,CAAC,SAAS;AACpF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yDAAyD;AACnF,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrI,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,QAAQA,IAAAA,EAAE,MAAM,gCAAgC,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrI,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACzE,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAA+C;AAEzE,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,35 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-events.d.ts
4
- declare const OptimorouteGetEventsInput: z.ZodTypeAny;
5
- declare const OptimorouteGetEventsOutput: z.ZodTypeAny;
6
- declare const optimorouteGetEvents: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const OptimorouteGetEventsInput: z.ZodObject<{
5
+ after_tag: z.ZodOptional<z.ZodString>;
6
+ }, z.core.$strip>;
7
+ declare const OptimorouteGetEventsOutput: z.ZodObject<{
8
+ tag: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
+ code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
+ events: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
11
+ event: z.ZodNullable<z.ZodString>;
12
+ orderId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ orderNo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ utcTime: z.ZodNullable<z.ZodString>;
15
+ localTime: z.ZodNullable<z.ZodString>;
16
+ driverName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ driverSerial: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ unixTimestamp: z.ZodNullable<z.ZodNumber>;
19
+ driverExternalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ plannedStartTime: z.ZodOptional<z.ZodNullable<z.ZodObject<{
21
+ utcTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ localTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
+ unixTimestamp: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
24
+ }, z.core.$loose>>>;
25
+ }, z.core.$loose>>>>;
26
+ message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
+ success: z.ZodNullable<z.ZodBoolean>;
28
+ remainingEvents: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
29
+ }, z.core.$loose>;
30
+ declare const optimorouteGetEvents: import("@keystrokehq/action").WorkflowActionDefinition<{
31
+ after_tag?: string | undefined;
32
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
33
  //#endregion
8
34
  export { optimorouteGetEvents };
9
35
  //# sourceMappingURL=get-events.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-events.d.cts","names":[],"sources":["../../src/actions/get-events.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAEoD;AAAA,cAkBjF,0BAAA,EAA4B,CAAA,CAAE,UAOiB;AAAA,cAE/C,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-events.d.cts","names":[],"sources":["../../src/actions/get-events.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;cAoBzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;cAS1B,oBAAA,gCAAoB,wBAAA"}
@@ -1,9 +1,35 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-events.d.ts
4
- declare const OptimorouteGetEventsInput: z.ZodTypeAny;
5
- declare const OptimorouteGetEventsOutput: z.ZodTypeAny;
6
- declare const optimorouteGetEvents: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const OptimorouteGetEventsInput: z.ZodObject<{
5
+ after_tag: z.ZodOptional<z.ZodString>;
6
+ }, z.core.$strip>;
7
+ declare const OptimorouteGetEventsOutput: z.ZodObject<{
8
+ tag: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
+ code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
+ events: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
11
+ event: z.ZodNullable<z.ZodString>;
12
+ orderId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ orderNo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ utcTime: z.ZodNullable<z.ZodString>;
15
+ localTime: z.ZodNullable<z.ZodString>;
16
+ driverName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ driverSerial: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ unixTimestamp: z.ZodNullable<z.ZodNumber>;
19
+ driverExternalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ plannedStartTime: z.ZodOptional<z.ZodNullable<z.ZodObject<{
21
+ utcTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ localTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
+ unixTimestamp: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
24
+ }, z.core.$loose>>>;
25
+ }, z.core.$loose>>>>;
26
+ message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
+ success: z.ZodNullable<z.ZodBoolean>;
28
+ remainingEvents: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
29
+ }, z.core.$loose>;
30
+ declare const optimorouteGetEvents: import("@keystrokehq/action").WorkflowActionDefinition<{
31
+ after_tag?: string | undefined;
32
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
33
  //#endregion
8
34
  export { optimorouteGetEvents };
9
35
  //# sourceMappingURL=get-events.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-events.d.mts","names":[],"sources":["../../src/actions/get-events.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAEoD;AAAA,cAkBjF,0BAAA,EAA4B,CAAA,CAAE,UAOiB;AAAA,cAE/C,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-events.d.mts","names":[],"sources":["../../src/actions/get-events.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;cAoBzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;cAS1B,oBAAA,gCAAoB,wBAAA"}
@@ -6,19 +6,19 @@ const OptimorouteGetEvents_PlannedStartTimeSchema = z.object({
6
6
  utcTime: z.string().describe("ISO 8601 UTC timestamp").nullable().optional(),
7
7
  localTime: z.string().describe("ISO 8601 timestamp in order location timezone").nullable().optional(),
8
8
  unixTimestamp: z.number().int().describe("Unix timestamp (seconds since January 1, 1970 UTC)").nullable().optional()
9
- }).describe("Time object for planned route start time (used with start_time_changed event).");
9
+ }).passthrough().describe("Time object for planned route start time (used with start_time_changed event).");
10
10
  const OptimorouteGetEvents_EventSchema = z.object({
11
- event: z.string().describe("Event type code: on_duty, off_duty, start_service, success, failed, rejected, start_route, end_route, start_time_changed"),
11
+ event: z.string().describe("Event type code: on_duty, off_duty, start_service, success, failed, rejected, start_route, end_route, start_time_changed").nullable(),
12
12
  orderId: z.string().describe("OptimoRoute-assigned order ID").nullable().optional(),
13
13
  orderNo: z.string().describe("Order identifier").nullable().optional(),
14
- utcTime: z.string().describe("ISO 8601 UTC timestamp"),
15
- localTime: z.string().describe("ISO 8601 timestamp in order location timezone"),
14
+ utcTime: z.string().describe("ISO 8601 UTC timestamp").nullable(),
15
+ localTime: z.string().describe("ISO 8601 timestamp in order location timezone").nullable(),
16
16
  driverName: z.string().describe("Driver identifier").nullable().optional(),
17
17
  driverSerial: z.string().describe("Driver serial number").nullable().optional(),
18
- unixTimestamp: z.number().int().describe("Unix timestamp (seconds since January 1, 1970 UTC)"),
18
+ unixTimestamp: z.number().int().describe("Unix timestamp (seconds since January 1, 1970 UTC)").nullable(),
19
19
  driverExternalId: z.string().describe("External driver identifier").nullable().optional(),
20
20
  plannedStartTime: OptimorouteGetEvents_PlannedStartTimeSchema.nullable().optional()
21
- }).describe("Represents a single mobile event from field operations.");
21
+ }).passthrough().describe("Represents a single mobile event from field operations.");
22
22
  const optimorouteGetEvents = action("OPTIMOROUTE_GET_EVENTS", {
23
23
  slug: "optimoroute-get-events",
24
24
  name: "Get Mobile Events",
@@ -29,9 +29,9 @@ const optimorouteGetEvents = action("OPTIMOROUTE_GET_EVENTS", {
29
29
  code: z.string().describe("Error code if operation failed").nullable().optional(),
30
30
  events: z.array(OptimorouteGetEvents_EventSchema).describe("Collection of event objects in chronological order").nullable().optional(),
31
31
  message: z.string().describe("Error or status message from the API").nullable().optional(),
32
- success: z.boolean().describe("Indicates successful operation"),
32
+ success: z.boolean().describe("Indicates successful operation").nullable(),
33
33
  remainingEvents: z.number().int().describe("Count of undelivered events; indicates whether more calls are needed").nullable().optional()
34
- }).describe("Response schema for retrieving mobile events.")
34
+ }).passthrough().describe("Response schema for retrieving mobile events.")
35
35
  });
36
36
  //#endregion
37
37
  export { optimorouteGetEvents };
@@ -1 +1 @@
1
- {"version":3,"file":"get-events.mjs","names":[],"sources":["../../src/actions/get-events.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OptimorouteGetEventsInput: z.ZodTypeAny = z.object({\n after_tag: z.string().describe(\"Marker for a prior point in time. Submit this value to retrieve only events occurring after the previous call. Leave empty for initial requests to get all events.\").optional(),\n}).describe(\"Request parameters for retrieving mobile events from drivers' field operations.\");\nconst OptimorouteGetEvents_PlannedStartTimeSchema: z.ZodTypeAny = z.object({\n utcTime: z.string().describe(\"ISO 8601 UTC timestamp\").nullable().optional(),\n localTime: z.string().describe(\"ISO 8601 timestamp in order location timezone\").nullable().optional(),\n unixTimestamp: z.number().int().describe(\"Unix timestamp (seconds since January 1, 1970 UTC)\").nullable().optional(),\n}).describe(\"Time object for planned route start time (used with start_time_changed event).\");\nconst OptimorouteGetEvents_EventSchema: z.ZodTypeAny = z.object({\n event: z.string().describe(\"Event type code: on_duty, off_duty, start_service, success, failed, rejected, start_route, end_route, start_time_changed\"),\n orderId: z.string().describe(\"OptimoRoute-assigned order ID\").nullable().optional(),\n orderNo: z.string().describe(\"Order identifier\").nullable().optional(),\n utcTime: z.string().describe(\"ISO 8601 UTC timestamp\"),\n localTime: z.string().describe(\"ISO 8601 timestamp in order location timezone\"),\n driverName: z.string().describe(\"Driver identifier\").nullable().optional(),\n driverSerial: z.string().describe(\"Driver serial number\").nullable().optional(),\n unixTimestamp: z.number().int().describe(\"Unix timestamp (seconds since January 1, 1970 UTC)\"),\n driverExternalId: z.string().describe(\"External driver identifier\").nullable().optional(),\n plannedStartTime: OptimorouteGetEvents_PlannedStartTimeSchema.nullable().optional(),\n}).describe(\"Represents a single mobile event from field operations.\");\nexport const OptimorouteGetEventsOutput: z.ZodTypeAny = z.object({\n tag: z.string().describe(\"Marker for the final event in this response; use as after_tag in subsequent requests\").nullable().optional(),\n code: z.string().describe(\"Error code if operation failed\").nullable().optional(),\n events: z.array(OptimorouteGetEvents_EventSchema).describe(\"Collection of event objects in chronological order\").nullable().optional(),\n message: z.string().describe(\"Error or status message from the API\").nullable().optional(),\n success: z.boolean().describe(\"Indicates successful operation\"),\n remainingEvents: z.number().int().describe(\"Count of undelivered events; indicates whether more calls are needed\").nullable().optional(),\n}).describe(\"Response schema for retrieving mobile events.\");\n\nexport const optimorouteGetEvents = action(\"OPTIMOROUTE_GET_EVENTS\", {\n slug: \"optimoroute-get-events\",\n name: \"Get Mobile Events\",\n description: \"Tool to retrieve mobile events from drivers' field operations. Use when you need to track order completions, status changes (success, failed, on_duty, off_duty), and other field events for the currently active plan.\",\n input: OptimorouteGetEventsInput,\n output: OptimorouteGetEventsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0C,EAAE,OAAO,EAC9D,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,oKAAoK,CAAC,CAAC,SAAS,EAChN,CAAC,CAAC,CAAC,SAAS,iFAAiF;AAC7F,MAAM,8CAA4D,EAAE,OAAO;CACzE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrH,CAAC,CAAC,CAAC,SA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AAS,CAAC,CAAC,SAAS;EACzF,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,gCAAgC;EAC9D,iBAAiB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzI,CAAC,CAAC,CAAC,SAAS,+CAOF;AACV,CAAC"}
1
+ {"version":3,"file":"get-events.mjs","names":[],"sources":["../../src/actions/get-events.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OptimorouteGetEventsInput = z.object({\n after_tag: z.string().describe(\"Marker for a prior point in time. Submit this value to retrieve only events occurring after the previous call. Leave empty for initial requests to get all events.\").optional(),\n}).describe(\"Request parameters for retrieving mobile events from drivers' field operations.\");\nconst OptimorouteGetEvents_PlannedStartTimeSchema = z.object({\n utcTime: z.string().describe(\"ISO 8601 UTC timestamp\").nullable().optional(),\n localTime: z.string().describe(\"ISO 8601 timestamp in order location timezone\").nullable().optional(),\n unixTimestamp: z.number().int().describe(\"Unix timestamp (seconds since January 1, 1970 UTC)\").nullable().optional(),\n}).passthrough().describe(\"Time object for planned route start time (used with start_time_changed event).\");\nconst OptimorouteGetEvents_EventSchema = z.object({\n event: z.string().describe(\"Event type code: on_duty, off_duty, start_service, success, failed, rejected, start_route, end_route, start_time_changed\").nullable(),\n orderId: z.string().describe(\"OptimoRoute-assigned order ID\").nullable().optional(),\n orderNo: z.string().describe(\"Order identifier\").nullable().optional(),\n utcTime: z.string().describe(\"ISO 8601 UTC timestamp\").nullable(),\n localTime: z.string().describe(\"ISO 8601 timestamp in order location timezone\").nullable(),\n driverName: z.string().describe(\"Driver identifier\").nullable().optional(),\n driverSerial: z.string().describe(\"Driver serial number\").nullable().optional(),\n unixTimestamp: z.number().int().describe(\"Unix timestamp (seconds since January 1, 1970 UTC)\").nullable(),\n driverExternalId: z.string().describe(\"External driver identifier\").nullable().optional(),\n plannedStartTime: OptimorouteGetEvents_PlannedStartTimeSchema.nullable().optional(),\n}).passthrough().describe(\"Represents a single mobile event from field operations.\");\nexport const OptimorouteGetEventsOutput = z.object({\n tag: z.string().describe(\"Marker for the final event in this response; use as after_tag in subsequent requests\").nullable().optional(),\n code: z.string().describe(\"Error code if operation failed\").nullable().optional(),\n events: z.array(OptimorouteGetEvents_EventSchema).describe(\"Collection of event objects in chronological order\").nullable().optional(),\n message: z.string().describe(\"Error or status message from the API\").nullable().optional(),\n success: z.boolean().describe(\"Indicates successful operation\").nullable(),\n remainingEvents: z.number().int().describe(\"Count of undelivered events; indicates whether more calls are needed\").nullable().optional(),\n}).passthrough().describe(\"Response schema for retrieving mobile events.\");\n\nexport const optimorouteGetEvents = action(\"OPTIMOROUTE_GET_EVENTS\", {\n slug: \"optimoroute-get-events\",\n name: \"Get Mobile Events\",\n description: \"Tool to retrieve mobile events from drivers' field operations. Use when you need to track order completions, status changes (success, failed, on_duty, off_duty), and other field events for the currently active plan.\",\n input: OptimorouteGetEventsInput,\n output: OptimorouteGetEventsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4B,EAAE,OAAO,EAChD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,oKAAoK,CAAC,CAAC,SAAS,EAChN,CAAC,CAAC,CAAC,SAAS,iFAAiF;AAC7F,MAAM,8CAA8C,EAAE,OAAO;CAC3D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gFAAgF;AAC1G,MAAM,mCAAmC,EAAE,OAAO;CAChD,OAAO,EAAE,OAAO,CAAC,CAAC,S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SAAS,CAAC,CAAC,SAAS;EACzF,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;EACzE,iBAAiB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAOhB;AACV,CAAC"}
@@ -4,11 +4,11 @@ let zod = require("zod");
4
4
  const OptimorouteGetOrdersInput = zod.z.object({ orders: zod.z.array(zod.z.object({
5
5
  id: zod.z.string().describe("OptimoRoute-assigned unique identifier").optional(),
6
6
  orderNo: zod.z.string().describe("User-specified order identifier").optional()
7
- }).describe("Order identifier object - must contain either orderNo or id.")).describe("List of order identifier objects (max 500). Each object must contain either 'orderNo' or 'id' field.") }).describe("Request parameters for retrieving one or more orders from the system.");
7
+ }).passthrough().describe("Order identifier object - must contain either orderNo or id.")).describe("List of order identifier objects (max 500). Each object must contain either 'orderNo' or 'id' field.") }).describe("Request parameters for retrieving one or more orders from the system.");
8
8
  const OptimorouteGetOrders_BarcodeSchema = zod.z.object({
9
9
  type: zod.z.string().describe("Barcode type").nullable().optional(),
10
10
  barcode: zod.z.string().describe("Barcode value").nullable().optional()
11
- }).describe("Barcode information for order.");
11
+ }).passthrough().describe("Barcode information for order.");
12
12
  const OptimorouteGetOrders_LocationSchema = zod.z.object({
13
13
  lat: zod.z.number().describe("Latitude coordinate").nullable().optional(),
14
14
  lng: zod.z.number().describe("Longitude coordinate").nullable().optional(),
@@ -17,19 +17,19 @@ const OptimorouteGetOrders_LocationSchema = zod.z.object({
17
17
  state: zod.z.string().describe("State or province").nullable().optional(),
18
18
  address: zod.z.string().describe("Street address").nullable().optional(),
19
19
  country: zod.z.string().describe("Country code").nullable().optional()
20
- }).describe("Location details for an order.");
20
+ }).passthrough().describe("Location details for an order.");
21
21
  const OptimorouteGetOrders_AssignedToSchema = zod.z.object({
22
22
  serial: zod.z.string().describe("Driver serial identifier").nullable().optional(),
23
23
  externalId: zod.z.string().describe("Driver external identifier").nullable().optional()
24
- }).describe("Driver assignment details.");
24
+ }).passthrough().describe("Driver assignment details.");
25
25
  const OptimorouteGetOrders_TimeWindowSchema = zod.z.object({
26
26
  to_time: zod.z.string().describe("End time").nullable().optional(),
27
27
  from_time: zod.z.string().describe("Start time").nullable().optional()
28
- }).describe("Time window for order service.");
28
+ }).passthrough().describe("Time window for order service.");
29
29
  const OptimorouteGetOrders_AllowedDatesSchema = zod.z.object({
30
30
  to_date: zod.z.string().describe("End date in YYYY-MM-DD format").nullable().optional(),
31
31
  from_date: zod.z.string().describe("Start date in YYYY-MM-DD format").nullable().optional()
32
- }).describe("Date range restrictions for order.");
32
+ }).passthrough().describe("Date range restrictions for order.");
33
33
  const OptimorouteGetOrders_OrderDataSchema = zod.z.object({
34
34
  id: zod.z.string().describe("OptimoRoute's unique order identifier").nullable().optional(),
35
35
  date: zod.z.string().describe("Order date in YYYY-MM-DD format").nullable().optional(),
@@ -62,19 +62,19 @@ const OptimorouteGetOrders_OrderDataSchema = zod.z.object({
62
62
  vehicleFeatures: zod.z.array(zod.z.string()).describe("Required vehicle features").nullable().optional(),
63
63
  allowedDateTimes: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Datetime windows").nullable().optional(),
64
64
  notificationPreference: zod.z.string().describe("Notification preference: 'dont_notify', 'email', 'sms', 'both'").nullable().optional()
65
- }).describe("Complete order details returned in successful responses.");
65
+ }).passthrough().describe("Complete order details returned in successful responses.");
66
66
  const OptimorouteGetOrders_OrderResponseSchema = zod.z.object({
67
67
  id: zod.z.string().describe("OptimoRoute's unique order identifier").nullable().optional(),
68
68
  code: zod.z.string().describe("Error code if retrieval failed").nullable().optional(),
69
69
  data: OptimorouteGetOrders_OrderDataSchema.nullable().optional(),
70
70
  message: zod.z.string().describe("Error description if retrieval failed").nullable().optional(),
71
71
  orderNo: zod.z.string().describe("Order number from request (for error tracking)").nullable().optional(),
72
- success: zod.z.boolean().describe("Whether this specific order was retrieved")
73
- }).describe("Response object for each individual order retrieval.");
72
+ success: zod.z.boolean().describe("Whether this specific order was retrieved").nullable()
73
+ }).passthrough().describe("Response object for each individual order retrieval.");
74
74
  const OptimorouteGetOrdersOutput = zod.z.object({
75
75
  orders: zod.z.array(OptimorouteGetOrders_OrderResponseSchema).describe("Array of order response objects"),
76
- success: zod.z.boolean().describe("Indicates if at least one order retrieval succeeded")
77
- }).describe("Response schema for retrieving orders.");
76
+ success: zod.z.boolean().describe("Indicates if at least one order retrieval succeeded").nullable()
77
+ }).passthrough().describe("Response schema for retrieving orders.");
78
78
  const optimorouteGetOrders = require_action.action("OPTIMOROUTE_GET_ORDERS", {
79
79
  slug: "optimoroute-get-orders",
80
80
  name: "Get Orders",
@@ -1 +1 @@
1
- {"version":3,"file":"get-orders.cjs","names":["z","action"],"sources":["../../src/actions/get-orders.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OptimorouteGetOrdersInput: z.ZodTypeAny = z.object({\n orders: z.array(z.object({\n id: z.string().describe(\"OptimoRoute-assigned unique identifier\").optional(),\n orderNo: z.string().describe(\"User-specified order identifier\").optional(),\n}).describe(\"Order identifier object - must contain either orderNo or id.\")).describe(\"List of order identifier objects (max 500). Each object must contain either 'orderNo' or 'id' field.\"),\n}).describe(\"Request parameters for retrieving one or more orders from the system.\");\nconst OptimorouteGetOrders_BarcodeSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Barcode type\").nullable().optional(),\n barcode: z.string().describe(\"Barcode value\").nullable().optional(),\n}).describe(\"Barcode information for order.\");\nconst OptimorouteGetOrders_LocationSchema: z.ZodTypeAny = z.object({\n lat: z.number().describe(\"Latitude coordinate\").nullable().optional(),\n lng: z.number().describe(\"Longitude coordinate\").nullable().optional(),\n zip: z.string().describe(\"Postal code\").nullable().optional(),\n city: z.string().describe(\"City name\").nullable().optional(),\n state: z.string().describe(\"State or province\").nullable().optional(),\n address: z.string().describe(\"Street address\").nullable().optional(),\n country: z.string().describe(\"Country code\").nullable().optional(),\n}).describe(\"Location details for an order.\");\nconst OptimorouteGetOrders_AssignedToSchema: z.ZodTypeAny = z.object({\n serial: z.string().describe(\"Driver serial identifier\").nullable().optional(),\n externalId: z.string().describe(\"Driver external identifier\").nullable().optional(),\n}).describe(\"Driver assignment details.\");\nconst OptimorouteGetOrders_TimeWindowSchema: z.ZodTypeAny = z.object({\n to_time: z.string().describe(\"End time\").nullable().optional(),\n from_time: z.string().describe(\"Start time\").nullable().optional(),\n}).describe(\"Time window for order service.\");\nconst OptimorouteGetOrders_AllowedDatesSchema: z.ZodTypeAny = z.object({\n to_date: z.string().describe(\"End date in YYYY-MM-DD format\").nullable().optional(),\n from_date: z.string().describe(\"Start date in YYYY-MM-DD format\").nullable().optional(),\n}).describe(\"Date range restrictions for order.\");\nconst OptimorouteGetOrders_OrderDataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"OptimoRoute's unique order identifier\").nullable().optional(),\n date: z.string().describe(\"Order date in YYYY-MM-DD format\").nullable().optional(),\n type: z.string().describe(\"Order type: 'D' (delivery), 'P' (pickup), 'T' (task), 'break', 'depot'\").nullable().optional(),\n email: z.string().describe(\"Customer email\").nullable().optional(),\n load1: z.number().describe(\"Load requirement type 1\").nullable().optional(),\n load2: z.number().describe(\"Load requirement type 2\").nullable().optional(),\n load3: z.number().describe(\"Load requirement type 3\").nullable().optional(),\n load4: z.number().describe(\"Load requirement type 4\").nullable().optional(),\n notes: z.string().describe(\"Delivery instructions\").nullable().optional(),\n phone: z.string().describe(\"Customer phone\").nullable().optional(),\n skills: z.array(z.string()).describe(\"Required driver skills\").nullable().optional(),\n barcode: z.array(OptimorouteGetOrders_BarcodeSchema).describe(\"Barcode objects\").nullable().optional(),\n orderNo: z.string().describe(\"User-specified order identifier\").nullable().optional(),\n duration: z.number().describe(\"Service time in minutes\").nullable().optional(),\n location: OptimorouteGetOrders_LocationSchema.nullable().optional(),\n priority: z.string().describe(\"Priority level: 'L' (low), 'M' (medium), 'H' (high), 'C' (critical)\").nullable().optional(),\n relatedId: z.string().describe(\"ID-based related order reference\").nullable().optional(),\n assignedTo: OptimorouteGetOrders_AssignedToSchema.nullable().optional(),\n timeWindows: z.array(OptimorouteGetOrders_TimeWindowSchema).describe(\"Time windows for service\").nullable().optional(),\n allowedDates: OptimorouteGetOrders_AllowedDatesSchema.nullable().optional(),\n customField1: z.string().describe(\"Legacy custom field 1\").nullable().optional(),\n customField2: z.string().describe(\"Legacy custom field 2\").nullable().optional(),\n customField3: z.string().describe(\"Legacy custom field 3\").nullable().optional(),\n customField4: z.string().describe(\"Legacy custom field 4\").nullable().optional(),\n customField5: z.string().describe(\"Legacy custom field 5\").nullable().optional(),\n customFields: z.record(z.string(), z.unknown()).describe(\"Modern custom fields\").nullable().optional(),\n relatedOrderNo: z.string().describe(\"Links pickup/delivery pairs\").nullable().optional(),\n allowedWeekdays: z.array(z.string()).describe(\"Restricted days: ['mon', 'tue', 'wed', etc.]\").nullable().optional(),\n vehicleFeatures: z.array(z.string()).describe(\"Required vehicle features\").nullable().optional(),\n allowedDateTimes: z.array(z.record(z.string(), z.unknown())).describe(\"Datetime windows\").nullable().optional(),\n notificationPreference: z.string().describe(\"Notification preference: 'dont_notify', 'email', 'sms', 'both'\").nullable().optional(),\n}).describe(\"Complete order details returned in successful responses.\");\nconst OptimorouteGetOrders_OrderResponseSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"OptimoRoute's unique order identifier\").nullable().optional(),\n code: z.string().describe(\"Error code if retrieval failed\").nullable().optional(),\n data: OptimorouteGetOrders_OrderDataSchema.nullable().optional(),\n message: z.string().describe(\"Error description if retrieval failed\").nullable().optional(),\n orderNo: z.string().describe(\"Order number from request (for error tracking)\").nullable().optional(),\n success: z.boolean().describe(\"Whether this specific order was retrieved\"),\n}).describe(\"Response object for each individual order retrieval.\");\nexport const OptimorouteGetOrdersOutput: z.ZodTypeAny = z.object({\n orders: z.array(OptimorouteGetOrders_OrderResponseSchema).describe(\"Array of order response objects\"),\n success: z.boolean().describe(\"Indicates if at least one order retrieval succeeded\"),\n}).describe(\"Response schema for retrieving orders.\");\n\nexport const optimorouteGetOrders = action(\"OPTIMOROUTE_GET_ORDERS\", {\n slug: \"optimoroute-get-orders\",\n name: \"Get Orders\",\n description: \"Tool to retrieve one or more orders from OptimoRoute. Use when you need detailed order information including location, time windows, and assignment details.\",\n input: OptimorouteGetOrdersInput,\n output: OptimorouteGetOrdersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0CA,IAAAA,EAAE,OAAO,EAC9D,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;CACzB,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC3E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;AAC3E,CAAC,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,CAAC,SAAS,sGAAsG,EAC5L,CAAC,CAAC,CAAC,SAAS,uEAAuE;AACnF,MAAM,qCAAmDA,IAAAA,EAAE,OAAO;CAChE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpE,CAAC,CAAC,CAAC,SAAS,gCAAgC;AAC5C,MAAM,sCAAoDA,IAAAA,EAAE,OAAO;CACjE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrE,KAAKA,IAAAA,EAAE,OAAO,CA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A2C;AAC3E,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAa,6BAA2CA,IAAAA,EAAE,OAAO;CAC/D,QAAQA,IAAAA,EAAE,MAAM,wCAAwC,CAAC,CAAC,SAAS,iCAAiC;CACpG,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,qDAAqD;AACrF,CAAC,CAAC,CAAC,SAAS,wCAAwC;AAEpD,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-orders.cjs","names":["z","action"],"sources":["../../src/actions/get-orders.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OptimorouteGetOrdersInput = z.object({\n orders: z.array(z.object({\n id: z.string().describe(\"OptimoRoute-assigned unique identifier\").optional(),\n orderNo: z.string().describe(\"User-specified order identifier\").optional(),\n}).passthrough().describe(\"Order identifier object - must contain either orderNo or id.\")).describe(\"List of order identifier objects (max 500). Each object must contain either 'orderNo' or 'id' field.\"),\n}).describe(\"Request parameters for retrieving one or more orders from the system.\");\nconst OptimorouteGetOrders_BarcodeSchema = z.object({\n type: z.string().describe(\"Barcode type\").nullable().optional(),\n barcode: z.string().describe(\"Barcode value\").nullable().optional(),\n}).passthrough().describe(\"Barcode information for order.\");\nconst OptimorouteGetOrders_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}).passthrough().describe(\"Location details for an order.\");\nconst OptimorouteGetOrders_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 OptimorouteGetOrders_TimeWindowSchema = z.object({\n to_time: z.string().describe(\"End time\").nullable().optional(),\n from_time: z.string().describe(\"Start time\").nullable().optional(),\n}).passthrough().describe(\"Time window for order service.\");\nconst OptimorouteGetOrders_AllowedDatesSchema = z.object({\n to_date: z.string().describe(\"End date in YYYY-MM-DD format\").nullable().optional(),\n from_date: z.string().describe(\"Start date in YYYY-MM-DD format\").nullable().optional(),\n}).passthrough().describe(\"Date range restrictions for order.\");\nconst OptimorouteGetOrders_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 barcode: z.array(OptimorouteGetOrders_BarcodeSchema).describe(\"Barcode objects\").nullable().optional(),\n orderNo: z.string().describe(\"User-specified order identifier\").nullable().optional(),\n duration: z.number().describe(\"Service time in minutes\").nullable().optional(),\n location: OptimorouteGetOrders_LocationSchema.nullable().optional(),\n priority: z.string().describe(\"Priority level: 'L' (low), 'M' (medium), 'H' (high), 'C' (critical)\").nullable().optional(),\n relatedId: z.string().describe(\"ID-based related order reference\").nullable().optional(),\n assignedTo: OptimorouteGetOrders_AssignedToSchema.nullable().optional(),\n timeWindows: z.array(OptimorouteGetOrders_TimeWindowSchema).describe(\"Time windows for service\").nullable().optional(),\n allowedDates: OptimorouteGetOrders_AllowedDatesSchema.nullable().optional(),\n customField1: z.string().describe(\"Legacy custom field 1\").nullable().optional(),\n customField2: z.string().describe(\"Legacy custom field 2\").nullable().optional(),\n customField3: z.string().describe(\"Legacy custom field 3\").nullable().optional(),\n customField4: z.string().describe(\"Legacy custom field 4\").nullable().optional(),\n customField5: z.string().describe(\"Legacy custom field 5\").nullable().optional(),\n customFields: z.record(z.string(), z.unknown()).describe(\"Modern custom fields\").nullable().optional(),\n relatedOrderNo: z.string().describe(\"Links pickup/delivery pairs\").nullable().optional(),\n allowedWeekdays: z.array(z.string()).describe(\"Restricted days: ['mon', 'tue', 'wed', etc.]\").nullable().optional(),\n vehicleFeatures: z.array(z.string()).describe(\"Required vehicle features\").nullable().optional(),\n allowedDateTimes: z.array(z.record(z.string(), z.unknown())).describe(\"Datetime windows\").nullable().optional(),\n notificationPreference: z.string().describe(\"Notification preference: 'dont_notify', 'email', 'sms', 'both'\").nullable().optional(),\n}).passthrough().describe(\"Complete order details returned in successful responses.\");\nconst OptimorouteGetOrders_OrderResponseSchema = z.object({\n id: z.string().describe(\"OptimoRoute's unique order identifier\").nullable().optional(),\n code: z.string().describe(\"Error code if retrieval failed\").nullable().optional(),\n data: OptimorouteGetOrders_OrderDataSchema.nullable().optional(),\n message: z.string().describe(\"Error description if retrieval failed\").nullable().optional(),\n orderNo: z.string().describe(\"Order number from request (for error tracking)\").nullable().optional(),\n success: z.boolean().describe(\"Whether this specific order was retrieved\").nullable(),\n}).passthrough().describe(\"Response object for each individual order retrieval.\");\nexport const OptimorouteGetOrdersOutput = z.object({\n orders: z.array(OptimorouteGetOrders_OrderResponseSchema).describe(\"Array of order response objects\"),\n success: z.boolean().describe(\"Indicates if at least one order retrieval succeeded\").nullable(),\n}).passthrough().describe(\"Response schema for retrieving orders.\");\n\nexport const optimorouteGetOrders = action(\"OPTIMOROUTE_GET_ORDERS\", {\n slug: \"optimoroute-get-orders\",\n name: \"Get Orders\",\n description: \"Tool to retrieve one or more orders from OptimoRoute. Use when you need detailed order information including location, time windows, and assignment details.\",\n input: OptimorouteGetOrdersInput,\n output: OptimorouteGetOrdersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;CACzB,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC3E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;AAC3E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,CAAC,SAAS,sGAAsG,EAC1M,CAAC,CAAC,CAAC,SAAS,uEAAuE;AACnF,MAAM,qCAAqCA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gCAAgC;AAC1D,MAAM,sCAAsCA,IAAAA,EAAE,OAAO;CACnD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,WAAW,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3D,OAAO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DAAsD;AAChF,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,QAAQA,IAAAA,EAAE,MAAM,wCAAwC,CAAC,CAAC,SAAS,iCAAiC;CACpG,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;AAChG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC;AAElE,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,82 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-orders.d.ts
4
- declare const OptimorouteGetOrdersInput: z.ZodTypeAny;
5
- declare const OptimorouteGetOrdersOutput: z.ZodTypeAny;
6
- declare const optimorouteGetOrders: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const OptimorouteGetOrdersInput: z.ZodObject<{
5
+ orders: z.ZodArray<z.ZodObject<{
6
+ id: z.ZodOptional<z.ZodString>;
7
+ orderNo: z.ZodOptional<z.ZodString>;
8
+ }, z.core.$loose>>;
9
+ }, z.core.$strip>;
10
+ declare const OptimorouteGetOrdersOutput: z.ZodObject<{
11
+ orders: z.ZodArray<z.ZodObject<{
12
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ data: z.ZodOptional<z.ZodNullable<z.ZodObject<{
15
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ load1: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
20
+ load2: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
21
+ load3: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
22
+ load4: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
23
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ skills: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
26
+ barcode: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
27
+ type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
+ barcode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
+ }, z.core.$loose>>>>;
30
+ orderNo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31
+ duration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
32
+ location: z.ZodOptional<z.ZodNullable<z.ZodObject<{
33
+ lat: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
34
+ lng: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
35
+ zip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
+ city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37
+ state: z.ZodOptional<z.ZodNullable<z.ZodString>>;
38
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39
+ country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
+ }, z.core.$loose>>>;
41
+ priority: z.ZodOptional<z.ZodNullable<z.ZodString>>;
42
+ relatedId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
43
+ assignedTo: z.ZodOptional<z.ZodNullable<z.ZodObject<{
44
+ serial: z.ZodOptional<z.ZodNullable<z.ZodString>>;
45
+ externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
46
+ }, z.core.$loose>>>;
47
+ timeWindows: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
48
+ to_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
49
+ from_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
50
+ }, z.core.$loose>>>>;
51
+ allowedDates: z.ZodOptional<z.ZodNullable<z.ZodObject<{
52
+ to_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
53
+ from_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
54
+ }, z.core.$loose>>>;
55
+ customField1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
56
+ customField2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
57
+ customField3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
58
+ customField4: z.ZodOptional<z.ZodNullable<z.ZodString>>;
59
+ customField5: z.ZodOptional<z.ZodNullable<z.ZodString>>;
60
+ customFields: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
61
+ relatedOrderNo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
62
+ allowedWeekdays: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
63
+ vehicleFeatures: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
64
+ allowedDateTimes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
65
+ notificationPreference: z.ZodOptional<z.ZodNullable<z.ZodString>>;
66
+ }, z.core.$loose>>>;
67
+ message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
68
+ orderNo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
69
+ success: z.ZodNullable<z.ZodBoolean>;
70
+ }, z.core.$loose>>;
71
+ success: z.ZodNullable<z.ZodBoolean>;
72
+ }, z.core.$loose>;
73
+ declare const optimorouteGetOrders: import("@keystrokehq/action").WorkflowActionDefinition<{
74
+ orders: {
75
+ [x: string]: unknown;
76
+ id?: string | undefined;
77
+ orderNo?: string | undefined;
78
+ }[];
79
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
80
  //#endregion
8
81
  export { optimorouteGetOrders };
9
82
  //# sourceMappingURL=get-orders.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-orders.d.cts","names":[],"sources":["../../src/actions/get-orders.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAK0C;AAAA,cAmEvE,0BAAA,EAA4B,CAAA,CAAE,UAGU;AAAA,cAExC,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-orders.d.cts","names":[],"sources":["../../src/actions/get-orders.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;cAwEzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAK1B,oBAAA,gCAAoB,wBAAA"}
@@ -1,9 +1,82 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-orders.d.ts
4
- declare const OptimorouteGetOrdersInput: z.ZodTypeAny;
5
- declare const OptimorouteGetOrdersOutput: z.ZodTypeAny;
6
- declare const optimorouteGetOrders: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const OptimorouteGetOrdersInput: z.ZodObject<{
5
+ orders: z.ZodArray<z.ZodObject<{
6
+ id: z.ZodOptional<z.ZodString>;
7
+ orderNo: z.ZodOptional<z.ZodString>;
8
+ }, z.core.$loose>>;
9
+ }, z.core.$strip>;
10
+ declare const OptimorouteGetOrdersOutput: z.ZodObject<{
11
+ orders: z.ZodArray<z.ZodObject<{
12
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ data: z.ZodOptional<z.ZodNullable<z.ZodObject<{
15
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ load1: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
20
+ load2: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
21
+ load3: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
22
+ load4: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
23
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ skills: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
26
+ barcode: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
27
+ type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
+ barcode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
+ }, z.core.$loose>>>>;
30
+ orderNo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31
+ duration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
32
+ location: z.ZodOptional<z.ZodNullable<z.ZodObject<{
33
+ lat: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
34
+ lng: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
35
+ zip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
+ city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37
+ state: z.ZodOptional<z.ZodNullable<z.ZodString>>;
38
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39
+ country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
+ }, z.core.$loose>>>;
41
+ priority: z.ZodOptional<z.ZodNullable<z.ZodString>>;
42
+ relatedId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
43
+ assignedTo: z.ZodOptional<z.ZodNullable<z.ZodObject<{
44
+ serial: z.ZodOptional<z.ZodNullable<z.ZodString>>;
45
+ externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
46
+ }, z.core.$loose>>>;
47
+ timeWindows: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
48
+ to_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
49
+ from_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
50
+ }, z.core.$loose>>>>;
51
+ allowedDates: z.ZodOptional<z.ZodNullable<z.ZodObject<{
52
+ to_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
53
+ from_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
54
+ }, z.core.$loose>>>;
55
+ customField1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
56
+ customField2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
57
+ customField3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
58
+ customField4: z.ZodOptional<z.ZodNullable<z.ZodString>>;
59
+ customField5: z.ZodOptional<z.ZodNullable<z.ZodString>>;
60
+ customFields: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
61
+ relatedOrderNo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
62
+ allowedWeekdays: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
63
+ vehicleFeatures: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
64
+ allowedDateTimes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
65
+ notificationPreference: z.ZodOptional<z.ZodNullable<z.ZodString>>;
66
+ }, z.core.$loose>>>;
67
+ message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
68
+ orderNo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
69
+ success: z.ZodNullable<z.ZodBoolean>;
70
+ }, z.core.$loose>>;
71
+ success: z.ZodNullable<z.ZodBoolean>;
72
+ }, z.core.$loose>;
73
+ declare const optimorouteGetOrders: import("@keystrokehq/action").WorkflowActionDefinition<{
74
+ orders: {
75
+ [x: string]: unknown;
76
+ id?: string | undefined;
77
+ orderNo?: string | undefined;
78
+ }[];
79
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
80
  //#endregion
8
81
  export { optimorouteGetOrders };
9
82
  //# sourceMappingURL=get-orders.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-orders.d.mts","names":[],"sources":["../../src/actions/get-orders.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAK0C;AAAA,cAmEvE,0BAAA,EAA4B,CAAA,CAAE,UAGU;AAAA,cAExC,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-orders.d.mts","names":[],"sources":["../../src/actions/get-orders.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;cAwEzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAK1B,oBAAA,gCAAoB,wBAAA"}
@@ -4,11 +4,11 @@ import { z } from "zod";
4
4
  const OptimorouteGetOrdersInput = z.object({ orders: z.array(z.object({
5
5
  id: z.string().describe("OptimoRoute-assigned unique identifier").optional(),
6
6
  orderNo: z.string().describe("User-specified order identifier").optional()
7
- }).describe("Order identifier object - must contain either orderNo or id.")).describe("List of order identifier objects (max 500). Each object must contain either 'orderNo' or 'id' field.") }).describe("Request parameters for retrieving one or more orders from the system.");
7
+ }).passthrough().describe("Order identifier object - must contain either orderNo or id.")).describe("List of order identifier objects (max 500). Each object must contain either 'orderNo' or 'id' field.") }).describe("Request parameters for retrieving one or more orders from the system.");
8
8
  const OptimorouteGetOrders_BarcodeSchema = z.object({
9
9
  type: z.string().describe("Barcode type").nullable().optional(),
10
10
  barcode: z.string().describe("Barcode value").nullable().optional()
11
- }).describe("Barcode information for order.");
11
+ }).passthrough().describe("Barcode information for order.");
12
12
  const OptimorouteGetOrders_LocationSchema = z.object({
13
13
  lat: z.number().describe("Latitude coordinate").nullable().optional(),
14
14
  lng: z.number().describe("Longitude coordinate").nullable().optional(),
@@ -17,19 +17,19 @@ const OptimorouteGetOrders_LocationSchema = z.object({
17
17
  state: z.string().describe("State or province").nullable().optional(),
18
18
  address: z.string().describe("Street address").nullable().optional(),
19
19
  country: z.string().describe("Country code").nullable().optional()
20
- }).describe("Location details for an order.");
20
+ }).passthrough().describe("Location details for an order.");
21
21
  const OptimorouteGetOrders_AssignedToSchema = z.object({
22
22
  serial: z.string().describe("Driver serial identifier").nullable().optional(),
23
23
  externalId: z.string().describe("Driver external identifier").nullable().optional()
24
- }).describe("Driver assignment details.");
24
+ }).passthrough().describe("Driver assignment details.");
25
25
  const OptimorouteGetOrders_TimeWindowSchema = z.object({
26
26
  to_time: z.string().describe("End time").nullable().optional(),
27
27
  from_time: z.string().describe("Start time").nullable().optional()
28
- }).describe("Time window for order service.");
28
+ }).passthrough().describe("Time window for order service.");
29
29
  const OptimorouteGetOrders_AllowedDatesSchema = z.object({
30
30
  to_date: z.string().describe("End date in YYYY-MM-DD format").nullable().optional(),
31
31
  from_date: z.string().describe("Start date in YYYY-MM-DD format").nullable().optional()
32
- }).describe("Date range restrictions for order.");
32
+ }).passthrough().describe("Date range restrictions for order.");
33
33
  const OptimorouteGetOrders_OrderDataSchema = z.object({
34
34
  id: z.string().describe("OptimoRoute's unique order identifier").nullable().optional(),
35
35
  date: z.string().describe("Order date in YYYY-MM-DD format").nullable().optional(),
@@ -62,15 +62,15 @@ const OptimorouteGetOrders_OrderDataSchema = z.object({
62
62
  vehicleFeatures: z.array(z.string()).describe("Required vehicle features").nullable().optional(),
63
63
  allowedDateTimes: z.array(z.record(z.string(), z.unknown())).describe("Datetime windows").nullable().optional(),
64
64
  notificationPreference: z.string().describe("Notification preference: 'dont_notify', 'email', 'sms', 'both'").nullable().optional()
65
- }).describe("Complete order details returned in successful responses.");
65
+ }).passthrough().describe("Complete order details returned in successful responses.");
66
66
  const OptimorouteGetOrders_OrderResponseSchema = z.object({
67
67
  id: z.string().describe("OptimoRoute's unique order identifier").nullable().optional(),
68
68
  code: z.string().describe("Error code if retrieval failed").nullable().optional(),
69
69
  data: OptimorouteGetOrders_OrderDataSchema.nullable().optional(),
70
70
  message: z.string().describe("Error description if retrieval failed").nullable().optional(),
71
71
  orderNo: z.string().describe("Order number from request (for error tracking)").nullable().optional(),
72
- success: z.boolean().describe("Whether this specific order was retrieved")
73
- }).describe("Response object for each individual order retrieval.");
72
+ success: z.boolean().describe("Whether this specific order was retrieved").nullable()
73
+ }).passthrough().describe("Response object for each individual order retrieval.");
74
74
  const optimorouteGetOrders = action("OPTIMOROUTE_GET_ORDERS", {
75
75
  slug: "optimoroute-get-orders",
76
76
  name: "Get Orders",
@@ -78,8 +78,8 @@ const optimorouteGetOrders = action("OPTIMOROUTE_GET_ORDERS", {
78
78
  input: OptimorouteGetOrdersInput,
79
79
  output: z.object({
80
80
  orders: z.array(OptimorouteGetOrders_OrderResponseSchema).describe("Array of order response objects"),
81
- success: z.boolean().describe("Indicates if at least one order retrieval succeeded")
82
- }).describe("Response schema for retrieving orders.")
81
+ success: z.boolean().describe("Indicates if at least one order retrieval succeeded").nullable()
82
+ }).passthrough().describe("Response schema for retrieving orders.")
83
83
  });
84
84
  //#endregion
85
85
  export { optimorouteGetOrders };