@keystrokehq/optimoroute 0.1.0 → 0.1.2

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 +2 -2
  4. package/dist/actions/create-or-update-orders.cjs.map +1 -1
  5. package/dist/actions/create-or-update-orders.d.cts +140 -3
  6. package/dist/actions/create-or-update-orders.d.cts.map +1 -1
  7. package/dist/actions/create-or-update-orders.d.mts +140 -3
  8. package/dist/actions/create-or-update-orders.d.mts.map +1 -1
  9. package/dist/actions/create-or-update-orders.mjs +2 -2
  10. package/dist/actions/create-or-update-orders.mjs.map +1 -1
  11. package/dist/actions/create-order.cjs +1 -1
  12. package/dist/actions/create-order.cjs.map +1 -1
  13. package/dist/actions/create-order.d.cts +95 -3
  14. package/dist/actions/create-order.d.cts.map +1 -1
  15. package/dist/actions/create-order.d.mts +95 -3
  16. package/dist/actions/create-order.d.mts.map +1 -1
  17. package/dist/actions/create-order.mjs +1 -1
  18. package/dist/actions/create-order.mjs.map +1 -1
  19. package/dist/actions/delete-all-orders.cjs +1 -1
  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 +1 -1
  26. package/dist/actions/delete-all-orders.mjs.map +1 -1
  27. package/dist/actions/delete-order.cjs +1 -1
  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 +1 -1
  34. package/dist/actions/delete-order.mjs.map +1 -1
  35. package/dist/actions/delete-orders.cjs +1 -1
  36. package/dist/actions/delete-orders.cjs.map +1 -1
  37. package/dist/actions/delete-orders.d.cts +27 -3
  38. package/dist/actions/delete-orders.d.cts.map +1 -1
  39. package/dist/actions/delete-orders.d.mts +27 -3
  40. package/dist/actions/delete-orders.d.mts.map +1 -1
  41. package/dist/actions/delete-orders.mjs +1 -1
  42. package/dist/actions/delete-orders.mjs.map +1 -1
  43. package/dist/actions/get-completion-details.cjs +2 -2
  44. package/dist/actions/get-completion-details.cjs.map +1 -1
  45. package/dist/actions/get-completion-details.d.cts +39 -3
  46. package/dist/actions/get-completion-details.d.cts.map +1 -1
  47. package/dist/actions/get-completion-details.d.mts +39 -3
  48. package/dist/actions/get-completion-details.d.mts.map +1 -1
  49. package/dist/actions/get-completion-details.mjs +2 -2
  50. package/dist/actions/get-completion-details.mjs.map +1 -1
  51. package/dist/actions/get-drivers.cjs +1 -1
  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 +1 -1
  58. package/dist/actions/get-drivers.mjs.map +1 -1
  59. package/dist/actions/get-events.cjs +5 -5
  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 +5 -5
  66. package/dist/actions/get-events.mjs.map +1 -1
  67. package/dist/actions/get-orders.cjs +2 -2
  68. package/dist/actions/get-orders.cjs.map +1 -1
  69. package/dist/actions/get-orders.d.cts +75 -3
  70. package/dist/actions/get-orders.d.cts.map +1 -1
  71. package/dist/actions/get-orders.d.mts +75 -3
  72. package/dist/actions/get-orders.d.mts.map +1 -1
  73. package/dist/actions/get-orders.mjs +2 -2
  74. package/dist/actions/get-orders.mjs.map +1 -1
  75. package/dist/actions/get-planning-status.cjs +1 -1
  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 +1 -1
  82. package/dist/actions/get-planning-status.mjs.map +1 -1
  83. package/dist/actions/get-routes.cjs +1 -1
  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 +1 -1
  90. package/dist/actions/get-routes.mjs.map +1 -1
  91. package/dist/actions/get-scheduling-info.cjs +2 -2
  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 +2 -2
  98. package/dist/actions/get-scheduling-info.mjs.map +1 -1
  99. package/dist/actions/search-orders.cjs +1 -1
  100. package/dist/actions/search-orders.cjs.map +1 -1
  101. package/dist/actions/search-orders.d.cts +83 -3
  102. package/dist/actions/search-orders.d.cts.map +1 -1
  103. package/dist/actions/search-orders.d.mts +83 -3
  104. package/dist/actions/search-orders.d.mts.map +1 -1
  105. package/dist/actions/search-orders.mjs +1 -1
  106. package/dist/actions/search-orders.mjs.map +1 -1
  107. package/dist/actions/start-planning.cjs +1 -1
  108. package/dist/actions/start-planning.cjs.map +1 -1
  109. package/dist/actions/start-planning.d.cts +72 -3
  110. package/dist/actions/start-planning.d.cts.map +1 -1
  111. package/dist/actions/start-planning.d.mts +72 -3
  112. package/dist/actions/start-planning.d.mts.map +1 -1
  113. package/dist/actions/start-planning.mjs +1 -1
  114. package/dist/actions/start-planning.mjs.map +1 -1
  115. package/dist/actions/stop-planning.cjs +1 -1
  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 +1 -1
  122. package/dist/actions/stop-planning.mjs.map +1 -1
  123. package/dist/actions/update-driver-parameters.cjs +1 -1
  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 +1 -1
  130. package/dist/actions/update-driver-parameters.mjs.map +1 -1
  131. package/dist/actions/update-drivers-parameters.cjs +2 -2
  132. package/dist/actions/update-drivers-parameters.cjs.map +1 -1
  133. package/dist/actions/update-drivers-parameters.d.cts +81 -3
  134. package/dist/actions/update-drivers-parameters.d.cts.map +1 -1
  135. package/dist/actions/update-drivers-parameters.d.mts +81 -3
  136. package/dist/actions/update-drivers-parameters.d.mts.map +1 -1
  137. package/dist/actions/update-drivers-parameters.mjs +2 -2
  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
@@ -1 +1 @@
1
- {"version":3,"file":"delete-orders.d.mts","names":[],"sources":["../../src/actions/delete-orders.ts"],"mappings":";;;cAIa,4BAAA,EAA8B,CAAA,CAAE,UAOqC;AAAA,cASrE,6BAAA,EAA+B,CAAA,CAAE,UAGK;AAAA,cAEtC,uBAAA,gCAAuB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"delete-orders.d.mts","names":[],"sources":["../../src/actions/delete-orders.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;cAgB5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;cAK7B,uBAAA,gCAAuB,wBAAA"}
@@ -24,7 +24,7 @@ const optimorouteDeleteOrders = action("OPTIMOROUTE_DELETE_ORDERS", {
24
24
  input: OptimorouteDeleteOrdersInput,
25
25
  output: z.object({
26
26
  orders: z.array(OptimorouteDeleteOrders_DeletedOrderSchema).describe("Array of delete response objects, one per requested order"),
27
- success: z.boolean().describe("True if at least one order was deleted; false if all deletions failed")
27
+ success: z.boolean().describe("True if at least one order was deleted; false if all deletions failed").nullable()
28
28
  }).describe("Response schema for deleting orders.")
29
29
  });
30
30
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"delete-orders.mjs","names":[],"sources":["../../src/actions/delete-orders.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OptimorouteDeleteOrdersInput: z.ZodTypeAny = z.object({\n orders: z.array(z.object({\n id: z.string().describe(\"OptimoRoute-assigned unique identifier. Either orderNo or id must be provided.\").optional(),\n orderNo: z.string().describe(\"User-specified order identifier. Either orderNo or id must be provided.\").optional(),\n}).describe(\"Represents a single order to be deleted.\")).describe(\"List of orders to delete (max 500 per request). Each order must have either orderNo or id.\"),\n forceDelete: z.boolean().default(false).describe(\"If true, ignores restrictions on deleting orders from live plans. Default: false.\").optional(),\n deleteMultiple: z.boolean().default(false).describe(\"If true, deletes all matches when multiple orders share the same identifier. Default: false.\").optional(),\n}).describe(\"Request parameters for deleting one or more orders from the system.\");\nconst OptimorouteDeleteOrders_DeletedOrderSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique OptimoRoute-assigned identifier if used in request\").nullable().optional(),\n code: z.string().describe(\"Error code if operation failed (e.g., ERR_ORD_NOT_FOUND, ERR_MULTIPLE_ORD_FOUND)\").nullable().optional(),\n message: z.string().describe(\"Error description if operation failed\").nullable().optional(),\n orderNo: z.string().describe(\"The identifier of the deleted order or failed deletion\").nullable().optional(),\n success: z.boolean().describe(\"Whether the deletion was successful\").nullable().optional(),\n planningId: z.number().int().describe(\"ID of running optimization process, if applicable\").nullable().optional(),\n}).describe(\"Result of a single order deletion attempt.\");\nexport const OptimorouteDeleteOrdersOutput: z.ZodTypeAny = z.object({\n orders: z.array(OptimorouteDeleteOrders_DeletedOrderSchema).describe(\"Array of delete response objects, one per requested order\"),\n success: z.boolean().describe(\"True if at least one order was deleted; false if all deletions failed\"),\n}).describe(\"Response schema for deleting orders.\");\n\nexport const optimorouteDeleteOrders = action(\"OPTIMOROUTE_DELETE_ORDERS\", {\n slug: \"optimoroute-delete-orders\",\n name: \"Delete Orders\",\n description: \"Tool to delete one or more orders from the system in bulk (max 500 per request). Use when you need to remove orders, either individually or in batch operations.\",\n input: OptimorouteDeleteOrdersInput,\n output: OptimorouteDeleteOrdersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA6C,EAAE,OAAO;CACjE,QAAQ,EAAE,MAAM,EAAE,OAAO;EACzB,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;EACnH,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;CACnH,CAAC,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,CAAC,SAAS,4FAA4F;CAC5J,aAAa,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS;CAC/I,gBAAgB,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,8FAA8F,CAAC,CAAC,SAAS;AAC/J,CAAC,CAAC,CAAC,SAAS,qEAAqE;AACjF,MAAM,6CAA2D,EAAE,OAAO;CACxE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClI,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjH,CAAC,CAAC,CAAC,SAAS,4CAA4C;AAMxD,MAAa,0BAA0B,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVyD,EAAE,OAAO;EAClE,QAAQ,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,2DAA2D;EAChI,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,uEAAuE;CACvG,CAAC,CAAC,CAAC,SAAS,sCAOF;AACV,CAAC"}
1
+ {"version":3,"file":"delete-orders.mjs","names":[],"sources":["../../src/actions/delete-orders.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OptimorouteDeleteOrdersInput = z.object({\n orders: z.array(z.object({\n id: z.string().describe(\"OptimoRoute-assigned unique identifier. Either orderNo or id must be provided.\").optional(),\n orderNo: z.string().describe(\"User-specified order identifier. Either orderNo or id must be provided.\").optional(),\n}).describe(\"Represents a single order to be deleted.\")).describe(\"List of orders to delete (max 500 per request). Each order must have either orderNo or id.\"),\n forceDelete: z.boolean().default(false).describe(\"If true, ignores restrictions on deleting orders from live plans. Default: false.\").optional(),\n deleteMultiple: z.boolean().default(false).describe(\"If true, deletes all matches when multiple orders share the same identifier. Default: false.\").optional(),\n}).describe(\"Request parameters for deleting one or more orders from the system.\");\nconst OptimorouteDeleteOrders_DeletedOrderSchema = z.object({\n id: z.string().describe(\"The unique OptimoRoute-assigned identifier if used in request\").nullable().optional(),\n code: z.string().describe(\"Error code if operation failed (e.g., ERR_ORD_NOT_FOUND, ERR_MULTIPLE_ORD_FOUND)\").nullable().optional(),\n message: z.string().describe(\"Error description if operation failed\").nullable().optional(),\n orderNo: z.string().describe(\"The identifier of the deleted order or failed deletion\").nullable().optional(),\n success: z.boolean().describe(\"Whether the deletion was successful\").nullable().optional(),\n planningId: z.number().int().describe(\"ID of running optimization process, if applicable\").nullable().optional(),\n}).describe(\"Result of a single order deletion attempt.\");\nexport const OptimorouteDeleteOrdersOutput = z.object({\n orders: z.array(OptimorouteDeleteOrders_DeletedOrderSchema).describe(\"Array of delete response objects, one per requested order\"),\n success: z.boolean().describe(\"True if at least one order was deleted; false if all deletions failed\").nullable(),\n}).describe(\"Response schema for deleting orders.\");\n\nexport const optimorouteDeleteOrders = action(\"OPTIMOROUTE_DELETE_ORDERS\", {\n slug: \"optimoroute-delete-orders\",\n name: \"Delete Orders\",\n description: \"Tool to delete one or more orders from the system in bulk (max 500 per request). Use when you need to remove orders, either individually or in batch operations.\",\n input: OptimorouteDeleteOrdersInput,\n output: OptimorouteDeleteOrdersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+B,EAAE,OAAO;CACnD,QAAQ,EAAE,MAAM,EAAE,OAAO;EACzB,IAAI,EAAE,OAAO,CAA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SAAS,uEAAuE,CAAC,CAAC,SAAS;CAClH,CAAC,CAAC,CAAC,SAAS,sCAOF;AACV,CAAC"}
@@ -24,11 +24,11 @@ const OptimorouteGetCompletionDetails_OrderCompletionResultSchema = zod.z.object
24
24
  data: OptimorouteGetCompletionDetails_CompletionDataSchema.nullable().optional(),
25
25
  message: zod.z.string().describe("Error message (present when success is false)").nullable().optional(),
26
26
  orderNo: zod.z.string().describe("User-specified order identifier").nullable().optional(),
27
- success: zod.z.boolean().describe("Indicates if completion data was retrieved for this specific order")
27
+ success: zod.z.boolean().describe("Indicates if completion data was retrieved for this specific order").nullable()
28
28
  }).describe("Completion result for a single order.");
29
29
  const OptimorouteGetCompletionDetailsOutput = zod.z.object({
30
30
  orders: zod.z.array(OptimorouteGetCompletionDetails_OrderCompletionResultSchema).describe("Array of completion objects corresponding to each requested order"),
31
- success: zod.z.boolean().describe("Indicates overall request success")
31
+ success: zod.z.boolean().describe("Indicates overall request success").nullable()
32
32
  }).describe("Response schema for retrieving completion details.");
33
33
  const optimorouteGetCompletionDetails = require_action.action("OPTIMOROUTE_GET_COMPLETION_DETAILS", {
34
34
  slug: "optimoroute-get-completion-details",
@@ -1 +1 @@
1
- {"version":3,"file":"get-completion-details.cjs","names":["z","action"],"sources":["../../src/actions/get-completion-details.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OptimorouteGetCompletionDetailsInput: z.ZodTypeAny = z.object({\n orders: z.array(z.object({\n id: z.string().describe(\"OptimoRoute-assigned unique order identifier\").optional(),\n orderNo: z.string().describe(\"User-specified order identifier\").optional(),\n}).describe(\"Order identifier object - must contain either orderNo or id.\")).describe(\"List of order identifiers to retrieve completion details for. Maximum 500 orders per request. Each order must contain either orderNo or id.\"),\n}).describe(\"Request parameters for retrieving completion details for one or more orders.\");\nconst OptimorouteGetCompletionDetails_FormDataSchema: z.ZodTypeAny = z.object({\n note: z.string().describe(\"Notes entered during completion\").nullable().optional(),\n}).describe(\"Captured form data from order completion.\");\nconst OptimorouteGetCompletionDetails_TimeInfoSchema: z.ZodTypeAny = z.object({\n utcTime: z.string().describe(\"ISO 8601 formatted UTC time\").nullable().optional(),\n localTime: z.string().describe(\"ISO 8601 formatted local time\").nullable().optional(),\n unixTimestamp: z.number().int().describe(\"Unix timestamp\").nullable().optional(),\n}).describe(\"Time information with multiple representations.\");\nconst OptimorouteGetCompletionDetails_CompletionDataSchema: z.ZodTypeAny = z.object({\n form: OptimorouteGetCompletionDetails_FormDataSchema.nullable().optional(),\n status: z.string().describe(\"Order outcome status. Possible values: success, failed, rejected, in_progress, scheduled, unscheduled\").nullable().optional(),\n endTime: OptimorouteGetCompletionDetails_TimeInfoSchema.nullable().optional(),\n startTime: OptimorouteGetCompletionDetails_TimeInfoSchema.nullable().optional(),\n tracking_url: z.string().describe(\"URL for order tracking information\").nullable().optional(),\n}).describe(\"Detailed completion information for an order.\");\nconst OptimorouteGetCompletionDetails_OrderCompletionResultSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"OptimoRoute-assigned unique order identifier\").nullable().optional(),\n code: z.string().describe(\"Error code (present when success is false)\").nullable().optional(),\n data: OptimorouteGetCompletionDetails_CompletionDataSchema.nullable().optional(),\n message: z.string().describe(\"Error message (present when success is false)\").nullable().optional(),\n orderNo: z.string().describe(\"User-specified order identifier\").nullable().optional(),\n success: z.boolean().describe(\"Indicates if completion data was retrieved for this specific order\"),\n}).describe(\"Completion result for a single order.\");\nexport const OptimorouteGetCompletionDetailsOutput: z.ZodTypeAny = z.object({\n orders: z.array(OptimorouteGetCompletionDetails_OrderCompletionResultSchema).describe(\"Array of completion objects corresponding to each requested order\"),\n success: z.boolean().describe(\"Indicates overall request success\"),\n}).describe(\"Response schema for retrieving completion details.\");\n\nexport const optimorouteGetCompletionDetails = action(\"OPTIMOROUTE_GET_COMPLETION_DETAILS\", {\n slug: \"optimoroute-get-completion-details\",\n name: \"Get Order Completion Details\",\n description: \"Tool to retrieve completion details for one or more orders including proof of delivery data. Use when you need to check order completion status, timing details, and form data.\",\n input: OptimorouteGetCompletionDetailsInput,\n output: OptimorouteGetCompletionDetailsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uCAAqDA,IAAAA,EAAE,OAAO,EACzE,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;CACzB,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACjF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;AAC3E,CAAC,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,CAAC,SAAS,6IAA6I,EACnO,CAAC,CAAC,CAAC,SAAS,8EAA8E;AAC1F,MAAM,iDAA+DA,IAAAA,EAAE,OAAO,EAC5E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACnF,CAAC,CAAC,CAAC,SAAS,2CAA2C;AACvD,MAAM,iDAA+DA,IAAAA,EAAE,OAAO;CAC5E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjF,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAM,uDAAqEA,IAAAA,EAAE,OAAO;CAClF,MAAM,+CAA+C,SAAS,CAAC,CAAC,SAAS;CACzE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzJ,SAAS,+CAA+C,SAAS,CAAC,CAAC,SAAS;CAC5E,WAAW,+CAA+C,SAAS,CAAC,CAAC,SAAS;CAC9E,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAC3D,MAAM,8DAA4EA,IAAAA,EAAE,OAAO;CACzF,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,MAAM,qDAAqD,SAAS,CAAC,CAAC,SAAS;CAC/E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,oEAAoE;AACpG,CAAC,CAAC,CAAC,SAAS,uCAAuC;AACnD,MAAa,wCAAsDA,IAAAA,EAAE,OAAO;CAC1E,QAAQA,IAAAA,EAAE,MAAM,2DAA2D,CAAC,CAAC,SAAS,mEAAmE;CACzJ,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,mCAAmC;AACnE,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAEhE,MAAa,kCAAkCC,eAAAA,OAAO,sCAAsC;CAC1F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-completion-details.cjs","names":["z","action"],"sources":["../../src/actions/get-completion-details.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OptimorouteGetCompletionDetailsInput = z.object({\n orders: z.array(z.object({\n id: z.string().describe(\"OptimoRoute-assigned unique order identifier\").optional(),\n orderNo: z.string().describe(\"User-specified order identifier\").optional(),\n}).describe(\"Order identifier object - must contain either orderNo or id.\")).describe(\"List of order identifiers to retrieve completion details for. Maximum 500 orders per request. Each order must contain either orderNo or id.\"),\n}).describe(\"Request parameters for retrieving completion details for one or more orders.\");\nconst OptimorouteGetCompletionDetails_FormDataSchema = z.object({\n note: z.string().describe(\"Notes entered during completion\").nullable().optional(),\n}).describe(\"Captured form data from order completion.\");\nconst OptimorouteGetCompletionDetails_TimeInfoSchema = z.object({\n utcTime: z.string().describe(\"ISO 8601 formatted UTC time\").nullable().optional(),\n localTime: z.string().describe(\"ISO 8601 formatted local time\").nullable().optional(),\n unixTimestamp: z.number().int().describe(\"Unix timestamp\").nullable().optional(),\n}).describe(\"Time information with multiple representations.\");\nconst OptimorouteGetCompletionDetails_CompletionDataSchema = z.object({\n form: OptimorouteGetCompletionDetails_FormDataSchema.nullable().optional(),\n status: z.string().describe(\"Order outcome status. Possible values: success, failed, rejected, in_progress, scheduled, unscheduled\").nullable().optional(),\n endTime: OptimorouteGetCompletionDetails_TimeInfoSchema.nullable().optional(),\n startTime: OptimorouteGetCompletionDetails_TimeInfoSchema.nullable().optional(),\n tracking_url: z.string().describe(\"URL for order tracking information\").nullable().optional(),\n}).describe(\"Detailed completion information for an order.\");\nconst OptimorouteGetCompletionDetails_OrderCompletionResultSchema = z.object({\n id: z.string().describe(\"OptimoRoute-assigned unique order identifier\").nullable().optional(),\n code: z.string().describe(\"Error code (present when success is false)\").nullable().optional(),\n data: OptimorouteGetCompletionDetails_CompletionDataSchema.nullable().optional(),\n message: z.string().describe(\"Error message (present when success is false)\").nullable().optional(),\n orderNo: z.string().describe(\"User-specified order identifier\").nullable().optional(),\n success: z.boolean().describe(\"Indicates if completion data was retrieved for this specific order\").nullable(),\n}).describe(\"Completion result for a single order.\");\nexport const OptimorouteGetCompletionDetailsOutput = z.object({\n orders: z.array(OptimorouteGetCompletionDetails_OrderCompletionResultSchema).describe(\"Array of completion objects corresponding to each requested order\"),\n success: z.boolean().describe(\"Indicates overall request success\").nullable(),\n}).describe(\"Response schema for retrieving completion details.\");\n\nexport const optimorouteGetCompletionDetails = action(\"OPTIMOROUTE_GET_COMPLETION_DETAILS\", {\n slug: \"optimoroute-get-completion-details\",\n name: \"Get Order Completion Details\",\n description: \"Tool to retrieve completion details for one or more orders including proof of delivery data. Use when you need to check order completion status, timing details, and form data.\",\n input: OptimorouteGetCompletionDetailsInput,\n output: OptimorouteGetCompletionDetailsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uCAAuCA,IAAAA,EAAE,OAAO,EAC3D,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;CACzB,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACjF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;AAC3E,CAAC,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,CAAC,SAAS,6IAA6I,EACnO,CAAC,CAAC,CAAC,SAAS,8EAA8E;AAC1F,MAAM,iDAAiDA,IAAAA,EAAE,OAAO,EAC9D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACnF,CAAC,CAAC,CAAC,SAAS,2CAA2C;AACvD,MAAM,iDAAiDA,IAAAA,EAAE,OAAO;CAC9D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gBAAgB,CAAC,CA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AAC,CAAC,SAAS;AAC9E,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAEhE,MAAa,kCAAkCC,eAAAA,OAAO,sCAAsC;CAC1F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,45 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-completion-details.d.ts
4
- declare const OptimorouteGetCompletionDetailsInput: z.ZodTypeAny;
5
- declare const OptimorouteGetCompletionDetailsOutput: z.ZodTypeAny;
6
- declare const optimorouteGetCompletionDetails: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const OptimorouteGetCompletionDetailsInput: z.ZodObject<{
5
+ orders: z.ZodArray<z.ZodObject<{
6
+ id: z.ZodOptional<z.ZodString>;
7
+ orderNo: z.ZodOptional<z.ZodString>;
8
+ }, z.core.$strip>>;
9
+ }, z.core.$strip>;
10
+ declare const OptimorouteGetCompletionDetailsOutput: 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
+ form: z.ZodOptional<z.ZodNullable<z.ZodObject<{
16
+ note: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ }, z.core.$strip>>>;
18
+ status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ endTime: z.ZodOptional<z.ZodNullable<z.ZodObject<{
20
+ utcTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ localTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ unixTimestamp: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
23
+ }, z.core.$strip>>>;
24
+ startTime: z.ZodOptional<z.ZodNullable<z.ZodObject<{
25
+ utcTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ localTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
+ unixTimestamp: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
28
+ }, z.core.$strip>>>;
29
+ tracking_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
+ }, z.core.$strip>>>;
31
+ message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
+ orderNo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
+ success: z.ZodNullable<z.ZodBoolean>;
34
+ }, z.core.$strip>>;
35
+ success: z.ZodNullable<z.ZodBoolean>;
36
+ }, z.core.$strip>;
37
+ declare const optimorouteGetCompletionDetails: import("@keystrokehq/action").WorkflowActionDefinition<{
38
+ orders: {
39
+ id?: string | undefined;
40
+ orderNo?: string | undefined;
41
+ }[];
42
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
43
  //#endregion
8
44
  export { optimorouteGetCompletionDetails };
9
45
  //# sourceMappingURL=get-completion-details.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-completion-details.d.cts","names":[],"sources":["../../src/actions/get-completion-details.ts"],"mappings":";;;cAIa,oCAAA,EAAsC,CAAA,CAAE,UAKsC;AAAA,cAwB9E,qCAAA,EAAuC,CAAA,CAAE,UAGW;AAAA,cAEpD,+BAAA,gCAA+B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-completion-details.d.cts","names":[],"sources":["../../src/actions/get-completion-details.ts"],"mappings":";;;cAIa,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;;;cA6BpC,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKrC,+BAAA,gCAA+B,wBAAA"}
@@ -1,9 +1,45 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-completion-details.d.ts
4
- declare const OptimorouteGetCompletionDetailsInput: z.ZodTypeAny;
5
- declare const OptimorouteGetCompletionDetailsOutput: z.ZodTypeAny;
6
- declare const optimorouteGetCompletionDetails: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const OptimorouteGetCompletionDetailsInput: z.ZodObject<{
5
+ orders: z.ZodArray<z.ZodObject<{
6
+ id: z.ZodOptional<z.ZodString>;
7
+ orderNo: z.ZodOptional<z.ZodString>;
8
+ }, z.core.$strip>>;
9
+ }, z.core.$strip>;
10
+ declare const OptimorouteGetCompletionDetailsOutput: 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
+ form: z.ZodOptional<z.ZodNullable<z.ZodObject<{
16
+ note: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ }, z.core.$strip>>>;
18
+ status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ endTime: z.ZodOptional<z.ZodNullable<z.ZodObject<{
20
+ utcTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ localTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ unixTimestamp: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
23
+ }, z.core.$strip>>>;
24
+ startTime: z.ZodOptional<z.ZodNullable<z.ZodObject<{
25
+ utcTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ localTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
+ unixTimestamp: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
28
+ }, z.core.$strip>>>;
29
+ tracking_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
+ }, z.core.$strip>>>;
31
+ message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
+ orderNo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
+ success: z.ZodNullable<z.ZodBoolean>;
34
+ }, z.core.$strip>>;
35
+ success: z.ZodNullable<z.ZodBoolean>;
36
+ }, z.core.$strip>;
37
+ declare const optimorouteGetCompletionDetails: import("@keystrokehq/action").WorkflowActionDefinition<{
38
+ orders: {
39
+ id?: string | undefined;
40
+ orderNo?: string | undefined;
41
+ }[];
42
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
43
  //#endregion
8
44
  export { optimorouteGetCompletionDetails };
9
45
  //# sourceMappingURL=get-completion-details.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-completion-details.d.mts","names":[],"sources":["../../src/actions/get-completion-details.ts"],"mappings":";;;cAIa,oCAAA,EAAsC,CAAA,CAAE,UAKsC;AAAA,cAwB9E,qCAAA,EAAuC,CAAA,CAAE,UAGW;AAAA,cAEpD,+BAAA,gCAA+B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-completion-details.d.mts","names":[],"sources":["../../src/actions/get-completion-details.ts"],"mappings":";;;cAIa,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;;;cA6BpC,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKrC,+BAAA,gCAA+B,wBAAA"}
@@ -24,7 +24,7 @@ const OptimorouteGetCompletionDetails_OrderCompletionResultSchema = z.object({
24
24
  data: OptimorouteGetCompletionDetails_CompletionDataSchema.nullable().optional(),
25
25
  message: z.string().describe("Error message (present when success is false)").nullable().optional(),
26
26
  orderNo: z.string().describe("User-specified order identifier").nullable().optional(),
27
- success: z.boolean().describe("Indicates if completion data was retrieved for this specific order")
27
+ success: z.boolean().describe("Indicates if completion data was retrieved for this specific order").nullable()
28
28
  }).describe("Completion result for a single order.");
29
29
  const optimorouteGetCompletionDetails = action("OPTIMOROUTE_GET_COMPLETION_DETAILS", {
30
30
  slug: "optimoroute-get-completion-details",
@@ -33,7 +33,7 @@ const optimorouteGetCompletionDetails = action("OPTIMOROUTE_GET_COMPLETION_DETAI
33
33
  input: OptimorouteGetCompletionDetailsInput,
34
34
  output: z.object({
35
35
  orders: z.array(OptimorouteGetCompletionDetails_OrderCompletionResultSchema).describe("Array of completion objects corresponding to each requested order"),
36
- success: z.boolean().describe("Indicates overall request success")
36
+ success: z.boolean().describe("Indicates overall request success").nullable()
37
37
  }).describe("Response schema for retrieving completion details.")
38
38
  });
39
39
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"get-completion-details.mjs","names":[],"sources":["../../src/actions/get-completion-details.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OptimorouteGetCompletionDetailsInput: z.ZodTypeAny = z.object({\n orders: z.array(z.object({\n id: z.string().describe(\"OptimoRoute-assigned unique order identifier\").optional(),\n orderNo: z.string().describe(\"User-specified order identifier\").optional(),\n}).describe(\"Order identifier object - must contain either orderNo or id.\")).describe(\"List of order identifiers to retrieve completion details for. Maximum 500 orders per request. Each order must contain either orderNo or id.\"),\n}).describe(\"Request parameters for retrieving completion details for one or more orders.\");\nconst OptimorouteGetCompletionDetails_FormDataSchema: z.ZodTypeAny = z.object({\n note: z.string().describe(\"Notes entered during completion\").nullable().optional(),\n}).describe(\"Captured form data from order completion.\");\nconst OptimorouteGetCompletionDetails_TimeInfoSchema: z.ZodTypeAny = z.object({\n utcTime: z.string().describe(\"ISO 8601 formatted UTC time\").nullable().optional(),\n localTime: z.string().describe(\"ISO 8601 formatted local time\").nullable().optional(),\n unixTimestamp: z.number().int().describe(\"Unix timestamp\").nullable().optional(),\n}).describe(\"Time information with multiple representations.\");\nconst OptimorouteGetCompletionDetails_CompletionDataSchema: z.ZodTypeAny = z.object({\n form: OptimorouteGetCompletionDetails_FormDataSchema.nullable().optional(),\n status: z.string().describe(\"Order outcome status. Possible values: success, failed, rejected, in_progress, scheduled, unscheduled\").nullable().optional(),\n endTime: OptimorouteGetCompletionDetails_TimeInfoSchema.nullable().optional(),\n startTime: OptimorouteGetCompletionDetails_TimeInfoSchema.nullable().optional(),\n tracking_url: z.string().describe(\"URL for order tracking information\").nullable().optional(),\n}).describe(\"Detailed completion information for an order.\");\nconst OptimorouteGetCompletionDetails_OrderCompletionResultSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"OptimoRoute-assigned unique order identifier\").nullable().optional(),\n code: z.string().describe(\"Error code (present when success is false)\").nullable().optional(),\n data: OptimorouteGetCompletionDetails_CompletionDataSchema.nullable().optional(),\n message: z.string().describe(\"Error message (present when success is false)\").nullable().optional(),\n orderNo: z.string().describe(\"User-specified order identifier\").nullable().optional(),\n success: z.boolean().describe(\"Indicates if completion data was retrieved for this specific order\"),\n}).describe(\"Completion result for a single order.\");\nexport const OptimorouteGetCompletionDetailsOutput: z.ZodTypeAny = z.object({\n orders: z.array(OptimorouteGetCompletionDetails_OrderCompletionResultSchema).describe(\"Array of completion objects corresponding to each requested order\"),\n success: z.boolean().describe(\"Indicates overall request success\"),\n}).describe(\"Response schema for retrieving completion details.\");\n\nexport const optimorouteGetCompletionDetails = action(\"OPTIMOROUTE_GET_COMPLETION_DETAILS\", {\n slug: \"optimoroute-get-completion-details\",\n name: \"Get Order Completion Details\",\n description: \"Tool to retrieve completion details for one or more orders including proof of delivery data. Use when you need to check order completion status, timing details, and form data.\",\n input: OptimorouteGetCompletionDetailsInput,\n output: OptimorouteGetCompletionDetailsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uCAAqD,EAAE,OAAO,EACzE,QAAQ,EAAE,MAAM,EAAE,OAAO;CACzB,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACjF,SAAS,EAAE,OAA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AAC,SAAS,CAAC,CAAC,SAAS;CAC5F,MAAM,qDAAqD,SAAS,CAAC,CAAC,SAAS;CAC/E,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,oEAAoE;AACpG,CAAC,CAAC,CAAC,SAAS,uCAAuC;AAMnD,MAAa,kCAAkC,OAAO,sCAAsC;CAC1F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAViE,EAAE,OAAO;EAC1E,QAAQ,EAAE,MAAM,2DAA2D,CAAC,CAAC,SAAS,mEAAmE;EACzJ,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,mCAAmC;CACnE,CAAC,CAAC,CAAC,SAAS,oDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"get-completion-details.mjs","names":[],"sources":["../../src/actions/get-completion-details.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OptimorouteGetCompletionDetailsInput = z.object({\n orders: z.array(z.object({\n id: z.string().describe(\"OptimoRoute-assigned unique order identifier\").optional(),\n orderNo: z.string().describe(\"User-specified order identifier\").optional(),\n}).describe(\"Order identifier object - must contain either orderNo or id.\")).describe(\"List of order identifiers to retrieve completion details for. Maximum 500 orders per request. Each order must contain either orderNo or id.\"),\n}).describe(\"Request parameters for retrieving completion details for one or more orders.\");\nconst OptimorouteGetCompletionDetails_FormDataSchema = z.object({\n note: z.string().describe(\"Notes entered during completion\").nullable().optional(),\n}).describe(\"Captured form data from order completion.\");\nconst OptimorouteGetCompletionDetails_TimeInfoSchema = z.object({\n utcTime: z.string().describe(\"ISO 8601 formatted UTC time\").nullable().optional(),\n localTime: z.string().describe(\"ISO 8601 formatted local time\").nullable().optional(),\n unixTimestamp: z.number().int().describe(\"Unix timestamp\").nullable().optional(),\n}).describe(\"Time information with multiple representations.\");\nconst OptimorouteGetCompletionDetails_CompletionDataSchema = z.object({\n form: OptimorouteGetCompletionDetails_FormDataSchema.nullable().optional(),\n status: z.string().describe(\"Order outcome status. Possible values: success, failed, rejected, in_progress, scheduled, unscheduled\").nullable().optional(),\n endTime: OptimorouteGetCompletionDetails_TimeInfoSchema.nullable().optional(),\n startTime: OptimorouteGetCompletionDetails_TimeInfoSchema.nullable().optional(),\n tracking_url: z.string().describe(\"URL for order tracking information\").nullable().optional(),\n}).describe(\"Detailed completion information for an order.\");\nconst OptimorouteGetCompletionDetails_OrderCompletionResultSchema = z.object({\n id: z.string().describe(\"OptimoRoute-assigned unique order identifier\").nullable().optional(),\n code: z.string().describe(\"Error code (present when success is false)\").nullable().optional(),\n data: OptimorouteGetCompletionDetails_CompletionDataSchema.nullable().optional(),\n message: z.string().describe(\"Error message (present when success is false)\").nullable().optional(),\n orderNo: z.string().describe(\"User-specified order identifier\").nullable().optional(),\n success: z.boolean().describe(\"Indicates if completion data was retrieved for this specific order\").nullable(),\n}).describe(\"Completion result for a single order.\");\nexport const OptimorouteGetCompletionDetailsOutput = z.object({\n orders: z.array(OptimorouteGetCompletionDetails_OrderCompletionResultSchema).describe(\"Array of completion objects corresponding to each requested order\"),\n success: z.boolean().describe(\"Indicates overall request success\").nullable(),\n}).describe(\"Response schema for retrieving completion details.\");\n\nexport const optimorouteGetCompletionDetails = action(\"OPTIMOROUTE_GET_COMPLETION_DETAILS\", {\n slug: \"optimoroute-get-completion-details\",\n name: \"Get Order Completion Details\",\n description: \"Tool to retrieve completion details for one or more orders including proof of delivery data. Use when you need to check order completion status, timing details, and form data.\",\n input: OptimorouteGetCompletionDetailsInput,\n output: OptimorouteGetCompletionDetailsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uCAAuC,EAAE,OAAO,EAC3D,QAAQ,EAAE,MAAM,EAAE,OAAO;CACzB,IAAI,EAAE,OAAO,CAAC,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S;CAC5F,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,MAAM,qDAAqD,SAAS,CAAC,CAAC,SAAS;CAC/E,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;AAC/G,CAAC,CAAC,CAAC,SAAS,uCAAuC;AAMnD,MAAa,kCAAkC,OAAO,sCAAsC;CAC1F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVmD,EAAE,OAAO;EAC5D,QAAQ,EAAE,MAAM,2DAA2D,CAAC,CAAC,SAAS,mEAAmE;EACzJ,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC9E,CAAC,CAAC,CAAC,SAAS,oDAOF;AACV,CAAC"}
@@ -19,7 +19,7 @@ const OptimorouteGetDriversOutput = zod.z.object({
19
19
  code: zod.z.string().describe("Error code if the call failed").nullable().optional(),
20
20
  drivers: zod.z.array(OptimorouteGetDrivers_DriverSchema).describe("List of drivers (present on success)").nullable().optional(),
21
21
  message: zod.z.string().describe("Error or status message from the API").nullable().optional(),
22
- success: zod.z.boolean().describe("Whether the API call was successful")
22
+ success: zod.z.boolean().describe("Whether the API call was successful").nullable()
23
23
  });
24
24
  const optimorouteGetDrivers = require_action.action("OPTIMOROUTE_GET_DRIVERS", {
25
25
  slug: "optimoroute-get-drivers",
@@ -1 +1 @@
1
- {"version":3,"file":"get-drivers.cjs","names":["z","action"],"sources":["../../src/actions/get-drivers.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OptimorouteGetDriversInput: z.ZodTypeAny = z.object({}).describe(\"Request model for GET_DRIVERS: no input parameters needed.\");\nconst OptimorouteGetDrivers_DriverSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the driver\").nullable().optional(),\n name: z.string().describe(\"Name of the driver\").nullable().optional(),\n color: z.string().describe(\"Color assigned to the driver\").nullable().optional(),\n email: z.string().describe(\"Driver's email address\").nullable().optional(),\n active: z.boolean().describe(\"Whether the driver is active\").nullable().optional(),\n serial: z.string().describe(\"Serial identifier for the driver\").nullable().optional(),\n externalId: z.string().describe(\"External identifier for the driver\").nullable().optional(),\n workAreaId: z.string().describe(\"Work area ID for the driver\").nullable().optional(),\n phoneNumber: z.string().describe(\"Driver's phone number\").nullable().optional(),\n vehicleType: z.string().describe(\"Vehicle type for the driver\").nullable().optional(),\n driverNumber: z.string().describe(\"Driver's number\").nullable().optional(),\n});\nexport const OptimorouteGetDriversOutput: z.ZodTypeAny = z.object({\n code: z.string().describe(\"Error code if the call failed\").nullable().optional(),\n drivers: z.array(OptimorouteGetDrivers_DriverSchema).describe(\"List of drivers (present on success)\").nullable().optional(),\n message: z.string().describe(\"Error or status message from the API\").nullable().optional(),\n success: z.boolean().describe(\"Whether the API call was successful\"),\n});\n\nexport const optimorouteGetDrivers = action(\"OPTIMOROUTE_GET_DRIVERS\", {\n slug: \"optimoroute-get-drivers\",\n name: \"Get Drivers\",\n description: \"Tool to retrieve all drivers in the system. Use when you need up-to-date driver data including status and contact information.\",\n input: OptimorouteGetDriversInput,\n output: OptimorouteGetDriversOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2CA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,4DAA4D;AAC1I,MAAM,qCAAmDA,IAAAA,EAAE,OAAO;CAChE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS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S,CAAC,CAAC,SAAS;CACzF,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,qCAAqC;AACrE,CAAC;AAED,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-drivers.cjs","names":["z","action"],"sources":["../../src/actions/get-drivers.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OptimorouteGetDriversInput = z.object({}).describe(\"Request model for GET_DRIVERS: no input parameters needed.\");\nconst OptimorouteGetDrivers_DriverSchema = z.object({\n id: z.string().describe(\"Unique identifier for the driver\").nullable().optional(),\n name: z.string().describe(\"Name of the driver\").nullable().optional(),\n color: z.string().describe(\"Color assigned to the driver\").nullable().optional(),\n email: z.string().describe(\"Driver's email address\").nullable().optional(),\n active: z.boolean().describe(\"Whether the driver is active\").nullable().optional(),\n serial: z.string().describe(\"Serial identifier for the driver\").nullable().optional(),\n externalId: z.string().describe(\"External identifier for the driver\").nullable().optional(),\n workAreaId: z.string().describe(\"Work area ID for the driver\").nullable().optional(),\n phoneNumber: z.string().describe(\"Driver's phone number\").nullable().optional(),\n vehicleType: z.string().describe(\"Vehicle type for the driver\").nullable().optional(),\n driverNumber: z.string().describe(\"Driver's number\").nullable().optional(),\n});\nexport const OptimorouteGetDriversOutput = z.object({\n code: z.string().describe(\"Error code if the call failed\").nullable().optional(),\n drivers: z.array(OptimorouteGetDrivers_DriverSchema).describe(\"List of drivers (present on success)\").nullable().optional(),\n message: z.string().describe(\"Error or status message from the API\").nullable().optional(),\n success: z.boolean().describe(\"Whether the API call was successful\").nullable(),\n});\n\nexport const optimorouteGetDrivers = action(\"OPTIMOROUTE_GET_DRIVERS\", {\n slug: \"optimoroute-get-drivers\",\n name: \"Get Drivers\",\n description: \"Tool to retrieve all drivers in the system. Use when you need up-to-date driver data including status and contact information.\",\n input: OptimorouteGetDriversIn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,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,SAASA,IAAAA,EAAE,MAAM,kCAAkC,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1H,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;AAChF,CAAC;AAED,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,26 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-drivers.d.ts
4
- declare const OptimorouteGetDriversInput: z.ZodTypeAny;
5
- declare const OptimorouteGetDriversOutput: z.ZodTypeAny;
6
- declare const optimorouteGetDrivers: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const OptimorouteGetDriversInput: z.ZodObject<{}, z.core.$strip>;
5
+ declare const OptimorouteGetDriversOutput: z.ZodObject<{
6
+ code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
+ drivers: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
8
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
+ color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
+ active: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
13
+ serial: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ workAreaId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ phoneNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ vehicleType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ driverNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ }, z.core.$strip>>>>;
20
+ message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ success: z.ZodNullable<z.ZodBoolean>;
22
+ }, z.core.$strip>;
23
+ declare const optimorouteGetDrivers: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
24
  //#endregion
8
25
  export { optimorouteGetDrivers };
9
26
  //# sourceMappingURL=get-drivers.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-drivers.d.cts","names":[],"sources":["../../src/actions/get-drivers.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAAgG;AAAA,cAc9H,2BAAA,EAA6B,CAAA,CAAE,UAK1C;AAAA,cAEW,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-drivers.d.cts","names":[],"sources":["../../src/actions/get-drivers.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAc1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAO3B,qBAAA,gCAAqB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -1,9 +1,26 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-drivers.d.ts
4
- declare const OptimorouteGetDriversInput: z.ZodTypeAny;
5
- declare const OptimorouteGetDriversOutput: z.ZodTypeAny;
6
- declare const optimorouteGetDrivers: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const OptimorouteGetDriversInput: z.ZodObject<{}, z.core.$strip>;
5
+ declare const OptimorouteGetDriversOutput: z.ZodObject<{
6
+ code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
+ drivers: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
8
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
+ color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
+ active: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
13
+ serial: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ workAreaId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ phoneNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ vehicleType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ driverNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ }, z.core.$strip>>>>;
20
+ message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ success: z.ZodNullable<z.ZodBoolean>;
22
+ }, z.core.$strip>;
23
+ declare const optimorouteGetDrivers: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
24
  //#endregion
8
25
  export { optimorouteGetDrivers };
9
26
  //# sourceMappingURL=get-drivers.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-drivers.d.mts","names":[],"sources":["../../src/actions/get-drivers.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAAgG;AAAA,cAc9H,2BAAA,EAA6B,CAAA,CAAE,UAK1C;AAAA,cAEW,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-drivers.d.mts","names":[],"sources":["../../src/actions/get-drivers.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAc1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAO3B,qBAAA,gCAAqB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -24,7 +24,7 @@ const optimorouteGetDrivers = action("OPTIMOROUTE_GET_DRIVERS", {
24
24
  code: z.string().describe("Error code if the call failed").nullable().optional(),
25
25
  drivers: z.array(OptimorouteGetDrivers_DriverSchema).describe("List of drivers (present on success)").nullable().optional(),
26
26
  message: z.string().describe("Error or status message from the API").nullable().optional(),
27
- success: z.boolean().describe("Whether the API call was successful")
27
+ success: z.boolean().describe("Whether the API call was successful").nullable()
28
28
  })
29
29
  });
30
30
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"get-drivers.mjs","names":[],"sources":["../../src/actions/get-drivers.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OptimorouteGetDriversInput: z.ZodTypeAny = z.object({}).describe(\"Request model for GET_DRIVERS: no input parameters needed.\");\nconst OptimorouteGetDrivers_DriverSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the driver\").nullable().optional(),\n name: z.string().describe(\"Name of the driver\").nullable().optional(),\n color: z.string().describe(\"Color assigned to the driver\").nullable().optional(),\n email: z.string().describe(\"Driver's email address\").nullable().optional(),\n active: z.boolean().describe(\"Whether the driver is active\").nullable().optional(),\n serial: z.string().describe(\"Serial identifier for the driver\").nullable().optional(),\n externalId: z.string().describe(\"External identifier for the driver\").nullable().optional(),\n workAreaId: z.string().describe(\"Work area ID for the driver\").nullable().optional(),\n phoneNumber: z.string().describe(\"Driver's phone number\").nullable().optional(),\n vehicleType: z.string().describe(\"Vehicle type for the driver\").nullable().optional(),\n driverNumber: z.string().describe(\"Driver's number\").nullable().optional(),\n});\nexport const OptimorouteGetDriversOutput: z.ZodTypeAny = z.object({\n code: z.string().describe(\"Error code if the call failed\").nullable().optional(),\n drivers: z.array(OptimorouteGetDrivers_DriverSchema).describe(\"List of drivers (present on success)\").nullable().optional(),\n message: z.string().describe(\"Error or status message from the API\").nullable().optional(),\n success: z.boolean().describe(\"Whether the API call was successful\"),\n});\n\nexport const optimorouteGetDrivers = action(\"OPTIMOROUTE_GET_DRIVERS\", {\n slug: \"optimoroute-get-drivers\",\n name: \"Get Drivers\",\n description: \"Tool to retrieve all drivers in the system. Use when you need up-to-date driver data including status and contact information.\",\n input: OptimorouteGetDriversInput,\n output: OptimorouteGetDriversOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2C,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,4DAA4D;AAC1I,MAAM,qCAAmD,EAAE,OAAO;CAChE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3E,CAAC;AAQD,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZuD,EAAE,OAAO;EAChE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/E,SAAS,EAAE,MAAM,kCAAkC,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1H,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzF,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,qCAAqC;CACrE,CAOU;AACV,CAAC"}
1
+ {"version":3,"file":"get-drivers.mjs","names":[],"sources":["../../src/actions/get-drivers.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OptimorouteGetDriversInput = z.object({}).describe(\"Request model for GET_DRIVERS: no input parameters needed.\");\nconst OptimorouteGetDrivers_DriverSchema = z.object({\n id: z.string().describe(\"Unique identifier for the driver\").nullable().optional(),\n name: z.string().describe(\"Name of the driver\").nullable().optional(),\n color: z.string().describe(\"Color assigned to the driver\").nullable().optional(),\n email: z.string().describe(\"Driver's email address\").nullable().optional(),\n active: z.boolean().describe(\"Whether the driver is active\").nullable().optional(),\n serial: z.string().describe(\"Serial identifier for the driver\").nullable().optional(),\n externalId: z.string().describe(\"External identifier for the driver\").nullable().optional(),\n workAreaId: z.string().describe(\"Work area ID for the driver\").nullable().optional(),\n phoneNumber: z.string().describe(\"Driver's phone number\").nullable().optional(),\n vehicleType: z.string().describe(\"Vehicle type for the driver\").nullable().optional(),\n driverNumber: z.string().describe(\"Driver's number\").nullable().optional(),\n});\nexport const OptimorouteGetDriversOutput = z.object({\n code: z.string().describe(\"Error code if the call failed\").nullable().optional(),\n drivers: z.array(OptimorouteGetDrivers_DriverSchema).describe(\"List of drivers (present on success)\").nullable().optional(),\n message: z.string().describe(\"Error or status message from the API\").nullable().optional(),\n success: z.boolean().describe(\"Whether the API call was successful\").nullable(),\n});\n\nexport const optimorouteGetDrivers = action(\"OPTIMOROUTE_GET_DRIVERS\", {\n slug: \"optimoroute-get-drivers\",\n name: \"Get Drivers\",\n description: \"Tool to retrieve all drivers in the system. Use when you need up-to-date driver data including status and contact information.\",\n input: OptimorouteGetDriversInput,\n output: OptimorouteGetDriversOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6B,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,4DAA4D;AAC5H,MAAM,qCAAqC,EAAE,OAAO;CAClD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,OAAO,EAAE,OAAO,CAAC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z.number().int().describe("Unix timestamp (seconds since January 1, 1970 UTC)").nullable().optional()
9
9
  }).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
21
  }).describe("Represents a single mobile event from field operations.");
@@ -24,7 +24,7 @@ const OptimorouteGetEventsOutput = zod.z.object({
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
29
  }).describe("Response schema for retrieving mobile events.");
30
30
  const optimorouteGetEvents = require_action.action("OPTIMOROUTE_GET_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;CAC3E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrH,CAAC,CAAC,CAAC,SAAS,gFAAgF;AAC5F,MAAM,mCAAiDA,IAAAA,EAAE,OAAO;CAC9D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0HAA0H;CACrJ,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAA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AO,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}).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}).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}).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,8CAA8CA,IAAAA,EAAE,OAAO;CAC3D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrH,CAAC,CAAC,CAAC,SAAS,gFAAgF;AAC5F,MAAM,mCAAmCA,IAAAA,EAAE,OAAO;CAChD,O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,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,SAAS,+CAA+C;AAE3D,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.$strip>>>;
25
+ }, z.core.$strip>>>>;
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.$strip>;
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.$strip>>>;
25
+ }, z.core.$strip>>>>;
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.$strip>;
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"}
@@ -8,14 +8,14 @@ const OptimorouteGetEvents_PlannedStartTimeSchema = z.object({
8
8
  unixTimestamp: z.number().int().describe("Unix timestamp (seconds since January 1, 1970 UTC)").nullable().optional()
9
9
  }).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
21
  }).describe("Represents a single mobile event from field operations.");
@@ -29,7 +29,7 @@ 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
34
  }).describe("Response schema for retrieving mobile events.")
35
35
  });
@@ -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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AAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAdsD,EAAE,OAAO;EAC/D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrI,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChF,QAAQ,EAAE,MAAM,gCAAgC,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrI,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzF,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,gCAAgC;EAC9D,iBAAiB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzI,CAAC,CAAC,CAAC,SAAS,+CAOF;AACV,CAAC"}
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}).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}).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}).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;CA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