@keystrokehq/optimoroute 0.1.2 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (113) hide show
  1. package/dist/actions/create-or-update-orders.cjs +4 -4
  2. package/dist/actions/create-or-update-orders.cjs.map +1 -1
  3. package/dist/actions/create-or-update-orders.d.cts +6 -4
  4. package/dist/actions/create-or-update-orders.d.cts.map +1 -1
  5. package/dist/actions/create-or-update-orders.d.mts +6 -4
  6. package/dist/actions/create-or-update-orders.d.mts.map +1 -1
  7. package/dist/actions/create-or-update-orders.mjs +4 -4
  8. package/dist/actions/create-or-update-orders.mjs.map +1 -1
  9. package/dist/actions/create-order.cjs +3 -3
  10. package/dist/actions/create-order.cjs.map +1 -1
  11. package/dist/actions/create-order.d.cts +4 -3
  12. package/dist/actions/create-order.d.cts.map +1 -1
  13. package/dist/actions/create-order.d.mts +4 -3
  14. package/dist/actions/create-order.d.mts.map +1 -1
  15. package/dist/actions/create-order.mjs +3 -3
  16. package/dist/actions/create-order.mjs.map +1 -1
  17. package/dist/actions/delete-all-orders.cjs +1 -1
  18. package/dist/actions/delete-all-orders.cjs.map +1 -1
  19. package/dist/actions/delete-all-orders.d.cts +1 -1
  20. package/dist/actions/delete-all-orders.d.mts +1 -1
  21. package/dist/actions/delete-all-orders.mjs +1 -1
  22. package/dist/actions/delete-all-orders.mjs.map +1 -1
  23. package/dist/actions/delete-order.cjs +1 -1
  24. package/dist/actions/delete-order.cjs.map +1 -1
  25. package/dist/actions/delete-order.d.cts +1 -1
  26. package/dist/actions/delete-order.d.mts +1 -1
  27. package/dist/actions/delete-order.mjs +1 -1
  28. package/dist/actions/delete-order.mjs.map +1 -1
  29. package/dist/actions/delete-orders.cjs +3 -3
  30. package/dist/actions/delete-orders.cjs.map +1 -1
  31. package/dist/actions/delete-orders.d.cts +4 -3
  32. package/dist/actions/delete-orders.d.mts +4 -3
  33. package/dist/actions/delete-orders.mjs +3 -3
  34. package/dist/actions/delete-orders.mjs.map +1 -1
  35. package/dist/actions/get-completion-details.cjs +6 -6
  36. package/dist/actions/get-completion-details.cjs.map +1 -1
  37. package/dist/actions/get-completion-details.d.cts +8 -7
  38. package/dist/actions/get-completion-details.d.mts +8 -7
  39. package/dist/actions/get-completion-details.mjs +6 -6
  40. package/dist/actions/get-completion-details.mjs.map +1 -1
  41. package/dist/actions/get-drivers.cjs +2 -2
  42. package/dist/actions/get-drivers.cjs.map +1 -1
  43. package/dist/actions/get-drivers.d.cts +2 -2
  44. package/dist/actions/get-drivers.d.mts +2 -2
  45. package/dist/actions/get-drivers.mjs +2 -2
  46. package/dist/actions/get-drivers.mjs.map +1 -1
  47. package/dist/actions/get-events.cjs +3 -3
  48. package/dist/actions/get-events.cjs.map +1 -1
  49. package/dist/actions/get-events.d.cts +3 -3
  50. package/dist/actions/get-events.d.mts +3 -3
  51. package/dist/actions/get-events.mjs +3 -3
  52. package/dist/actions/get-events.mjs.map +1 -1
  53. package/dist/actions/get-orders.cjs +9 -9
  54. package/dist/actions/get-orders.cjs.map +1 -1
  55. package/dist/actions/get-orders.d.cts +10 -9
  56. package/dist/actions/get-orders.d.mts +10 -9
  57. package/dist/actions/get-orders.mjs +9 -9
  58. package/dist/actions/get-orders.mjs.map +1 -1
  59. package/dist/actions/get-planning-status.cjs +1 -1
  60. package/dist/actions/get-planning-status.cjs.map +1 -1
  61. package/dist/actions/get-planning-status.d.cts +1 -1
  62. package/dist/actions/get-planning-status.d.mts +1 -1
  63. package/dist/actions/get-planning-status.mjs +1 -1
  64. package/dist/actions/get-planning-status.mjs.map +1 -1
  65. package/dist/actions/get-routes.cjs +4 -4
  66. package/dist/actions/get-routes.cjs.map +1 -1
  67. package/dist/actions/get-routes.d.cts +5 -5
  68. package/dist/actions/get-routes.d.mts +5 -5
  69. package/dist/actions/get-routes.mjs +4 -4
  70. package/dist/actions/get-routes.mjs.map +1 -1
  71. package/dist/actions/get-scheduling-info.cjs +2 -2
  72. package/dist/actions/get-scheduling-info.cjs.map +1 -1
  73. package/dist/actions/get-scheduling-info.d.cts +2 -2
  74. package/dist/actions/get-scheduling-info.d.mts +2 -2
  75. package/dist/actions/get-scheduling-info.mjs +2 -2
  76. package/dist/actions/get-scheduling-info.mjs.map +1 -1
  77. package/dist/actions/search-orders.cjs +6 -6
  78. package/dist/actions/search-orders.cjs.map +1 -1
  79. package/dist/actions/search-orders.d.cts +7 -6
  80. package/dist/actions/search-orders.d.mts +7 -6
  81. package/dist/actions/search-orders.mjs +6 -6
  82. package/dist/actions/search-orders.mjs.map +1 -1
  83. package/dist/actions/start-planning.cjs +3 -3
  84. package/dist/actions/start-planning.cjs.map +1 -1
  85. package/dist/actions/start-planning.d.cts +5 -3
  86. package/dist/actions/start-planning.d.mts +5 -3
  87. package/dist/actions/start-planning.mjs +3 -3
  88. package/dist/actions/start-planning.mjs.map +1 -1
  89. package/dist/actions/stop-planning.cjs +1 -1
  90. package/dist/actions/stop-planning.cjs.map +1 -1
  91. package/dist/actions/stop-planning.d.cts +1 -1
  92. package/dist/actions/stop-planning.d.mts +1 -1
  93. package/dist/actions/stop-planning.mjs +1 -1
  94. package/dist/actions/stop-planning.mjs.map +1 -1
  95. package/dist/actions/update-driver-parameters.cjs +1 -1
  96. package/dist/actions/update-driver-parameters.cjs.map +1 -1
  97. package/dist/actions/update-driver-parameters.d.cts +1 -1
  98. package/dist/actions/update-driver-parameters.d.mts +1 -1
  99. package/dist/actions/update-driver-parameters.mjs +1 -1
  100. package/dist/actions/update-driver-parameters.mjs.map +1 -1
  101. package/dist/actions/update-drivers-parameters.cjs +4 -4
  102. package/dist/actions/update-drivers-parameters.cjs.map +1 -1
  103. package/dist/actions/update-drivers-parameters.d.cts +5 -4
  104. package/dist/actions/update-drivers-parameters.d.mts +5 -4
  105. package/dist/actions/update-drivers-parameters.mjs +4 -4
  106. package/dist/actions/update-drivers-parameters.mjs.map +1 -1
  107. package/dist/catalog.cjs +1 -1
  108. package/dist/catalog.cjs.map +1 -1
  109. package/dist/catalog.d.cts +1 -1
  110. package/dist/catalog.d.mts +1 -1
  111. package/dist/catalog.mjs +1 -1
  112. package/dist/catalog.mjs.map +1 -1
  113. package/package.json +1 -1
@@ -10,7 +10,7 @@ declare const OptimorouteDeleteOrderOutput: z.ZodObject<{
10
10
  message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
11
  success: z.ZodNullable<z.ZodBoolean>;
12
12
  planningId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
13
- }, z.core.$strip>;
13
+ }, z.core.$loose>;
14
14
  declare const optimorouteDeleteOrder: import("@keystrokehq/action").WorkflowActionDefinition<{
15
15
  orderNo: string;
16
16
  forceDelete?: boolean | undefined;
@@ -10,7 +10,7 @@ declare const OptimorouteDeleteOrderOutput: z.ZodObject<{
10
10
  message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
11
  success: z.ZodNullable<z.ZodBoolean>;
12
12
  planningId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
13
- }, z.core.$strip>;
13
+ }, z.core.$loose>;
14
14
  declare const optimorouteDeleteOrder: import("@keystrokehq/action").WorkflowActionDefinition<{
15
15
  orderNo: string;
16
16
  forceDelete?: boolean | undefined;
@@ -13,7 +13,7 @@ const optimorouteDeleteOrder = action("OPTIMOROUTE_DELETE_ORDER", {
13
13
  message: z.string().describe("Error or warning description; omitted if operation succeeds").nullable().optional(),
14
14
  success: z.boolean().describe("Indicates whether the deletion succeeded (true) or encountered an error (false)").nullable(),
15
15
  planningId: z.number().int().describe("The optimization process ID if one is running for this order").nullable().optional()
16
- }).describe("Response schema for delete order operation.")
16
+ }).passthrough().describe("Response schema for delete order operation.")
17
17
  });
18
18
  //#endregion
19
19
  export { optimorouteDeleteOrder };
@@ -1 +1 @@
1
- {"version":3,"file":"delete-order.mjs","names":[],"sources":["../../src/actions/delete-order.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OptimorouteDeleteOrderInput = z.object({\n orderNo: z.string().describe(\"The user-specified identifier of the order to be deleted\"),\n forceDelete: z.boolean().describe(\"If true, typical restrictions on removing orders from active plans are bypassed. Defaults to false\").optional(),\n}).describe(\"Request parameters for deleting a single order.\");\nexport const OptimorouteDeleteOrderOutput = z.object({\n code: z.string().describe(\"Error or warning code; omitted if operation succeeds. Common codes: ERR_ORD_NOT_FOUND (order not found), ERR_MULTIPLE_ORD_FOUND (multiple orders with same orderNo), ERR_OPT_RUNNING (active optimization prevents deletion)\").nullable().optional(),\n message: z.string().describe(\"Error or warning description; omitted if operation succeeds\").nullable().optional(),\n success: z.boolean().describe(\"Indicates whether the deletion succeeded (true) or encountered an error (false)\").nullable(),\n planningId: z.number().int().describe(\"The optimization process ID if one is running for this order\").nullable().optional(),\n}).describe(\"Response schema for delete order operation.\");\n\nexport const optimorouteDeleteOrder = action(\"OPTIMOROUTE_DELETE_ORDER\", {\n slug: \"optimoroute-delete-order\",\n name: \"Delete Order\",\n description: \"Tool to remove a single order from the OptimoRoute system. Use when you need to delete a specific order by its orderNo.\",\n input: OptimorouteDeleteOrderInput,\n output: OptimorouteDeleteOrderOutput,\n});\n"],"mappings":";;AAeA,MAAa,yBAAyB,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAfyC,EAAE,OAAO;EAClD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D;EACvF,aAAa,EAAE,QAAQ,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;CACnJ,CAAC,CAAC,CAAC,SAAS,iDAYH;CACP,QAZ0C,EAAE,OAAO;EACnD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8NAA8N,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9Q,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChH,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;EAC1H,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5H,CAAC,CAAC,CAAC,SAAS,6CAOF;AACV,CAAC"}
1
+ {"version":3,"file":"delete-order.mjs","names":[],"sources":["../../src/actions/delete-order.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OptimorouteDeleteOrderInput = z.object({\n orderNo: z.string().describe(\"The user-specified identifier of the order to be deleted\"),\n forceDelete: z.boolean().describe(\"If true, typical restrictions on removing orders from active plans are bypassed. Defaults to false\").optional(),\n}).describe(\"Request parameters for deleting a single order.\");\nexport const OptimorouteDeleteOrderOutput = z.object({\n code: z.string().describe(\"Error or warning code; omitted if operation succeeds. Common codes: ERR_ORD_NOT_FOUND (order not found), ERR_MULTIPLE_ORD_FOUND (multiple orders with same orderNo), ERR_OPT_RUNNING (active optimization prevents deletion)\").nullable().optional(),\n message: z.string().describe(\"Error or warning description; omitted if operation succeeds\").nullable().optional(),\n success: z.boolean().describe(\"Indicates whether the deletion succeeded (true) or encountered an error (false)\").nullable(),\n planningId: z.number().int().describe(\"The optimization process ID if one is running for this order\").nullable().optional(),\n}).passthrough().describe(\"Response schema for delete order operation.\");\n\nexport const optimorouteDeleteOrder = action(\"OPTIMOROUTE_DELETE_ORDER\", {\n slug: \"optimoroute-delete-order\",\n name: \"Delete Order\",\n description: \"Tool to remove a single order from the OptimoRoute system. Use when you need to delete a specific order by its orderNo.\",\n input: OptimorouteDeleteOrderInput,\n output: OptimorouteDeleteOrderOutput,\n});\n"],"mappings":";;AAeA,MAAa,yBAAyB,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAfyC,EAAE,OAAO;EAClD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D;EACvF,aAAa,EAAE,QAAQ,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;CACnJ,CAAC,CAAC,CAAC,SAAS,iDAYH;CACP,QAZ0C,EAAE,OAAO;EACnD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8NAA8N,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9Q,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChH,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;EAC1H,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAOhB;AACV,CAAC"}
@@ -5,7 +5,7 @@ const OptimorouteDeleteOrdersInput = zod.z.object({
5
5
  orders: zod.z.array(zod.z.object({
6
6
  id: zod.z.string().describe("OptimoRoute-assigned unique identifier. Either orderNo or id must be provided.").optional(),
7
7
  orderNo: zod.z.string().describe("User-specified order identifier. Either orderNo or id must be provided.").optional()
8
- }).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."),
8
+ }).passthrough().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."),
9
9
  forceDelete: zod.z.boolean().default(false).describe("If true, ignores restrictions on deleting orders from live plans. Default: false.").optional(),
10
10
  deleteMultiple: zod.z.boolean().default(false).describe("If true, deletes all matches when multiple orders share the same identifier. Default: false.").optional()
11
11
  }).describe("Request parameters for deleting one or more orders from the system.");
@@ -16,11 +16,11 @@ const OptimorouteDeleteOrders_DeletedOrderSchema = zod.z.object({
16
16
  orderNo: zod.z.string().describe("The identifier of the deleted order or failed deletion").nullable().optional(),
17
17
  success: zod.z.boolean().describe("Whether the deletion was successful").nullable().optional(),
18
18
  planningId: zod.z.number().int().describe("ID of running optimization process, if applicable").nullable().optional()
19
- }).describe("Result of a single order deletion attempt.");
19
+ }).passthrough().describe("Result of a single order deletion attempt.");
20
20
  const OptimorouteDeleteOrdersOutput = zod.z.object({
21
21
  orders: zod.z.array(OptimorouteDeleteOrders_DeletedOrderSchema).describe("Array of delete response objects, one per requested order"),
22
22
  success: zod.z.boolean().describe("True if at least one order was deleted; false if all deletions failed").nullable()
23
- }).describe("Response schema for deleting orders.");
23
+ }).passthrough().describe("Response schema for deleting orders.");
24
24
  const optimorouteDeleteOrders = require_action.action("OPTIMOROUTE_DELETE_ORDERS", {
25
25
  slug: "optimoroute-delete-orders",
26
26
  name: "Delete Orders",
@@ -1 +1 @@
1
- {"version":3,"file":"delete-orders.cjs","names":["z","action"],"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+BA,IAAAA,EAAE,OAAO;CACnD,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EACzB,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;EACnH,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;CACnH,CAAC,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,CAAC,SAAS,4FAA4F;CAC5J,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS;CAC/I,gBAAgBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,8FAA8F,CAAC,CAAC,SAAS;AAC/J,CAAC,CAAC,CAAC,SAAS,qEAAqE;AACjF,MAAM,6CAA6CA,IAAAA,EAAE,OAAO;CAC1D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClI,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjH,CAAC,CAAC,CAAC,SAAS,4CAA4C;AACxD,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,QAAQA,IAAAA,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,2DAA2D;CAChI,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;AAClH,CAAC,CAAC,CAAC,SAAS,sCAAsC;AAElD,MAAa,0BAA0BC,eAAAA,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"delete-orders.cjs","names":["z","action"],"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}).passthrough().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}).passthrough().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}).passthrough().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+BA,IAAAA,EAAE,OAAO;CACnD,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EACzB,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;EACnH,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;CACnH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,CAAC,SAAS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6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -5,7 +5,7 @@ declare const OptimorouteDeleteOrdersInput: z.ZodObject<{
5
5
  orders: z.ZodArray<z.ZodObject<{
6
6
  id: z.ZodOptional<z.ZodString>;
7
7
  orderNo: z.ZodOptional<z.ZodString>;
8
- }, z.core.$strip>>;
8
+ }, z.core.$loose>>;
9
9
  forceDelete: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
10
10
  deleteMultiple: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
11
11
  }, z.core.$strip>;
@@ -17,11 +17,12 @@ declare const OptimorouteDeleteOrdersOutput: z.ZodObject<{
17
17
  orderNo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
18
  success: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
19
19
  planningId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
20
- }, z.core.$strip>>;
20
+ }, z.core.$loose>>;
21
21
  success: z.ZodNullable<z.ZodBoolean>;
22
- }, z.core.$strip>;
22
+ }, z.core.$loose>;
23
23
  declare const optimorouteDeleteOrders: import("@keystrokehq/action").WorkflowActionDefinition<{
24
24
  orders: {
25
+ [x: string]: unknown;
25
26
  id?: string | undefined;
26
27
  orderNo?: string | undefined;
27
28
  }[];
@@ -5,7 +5,7 @@ declare const OptimorouteDeleteOrdersInput: z.ZodObject<{
5
5
  orders: z.ZodArray<z.ZodObject<{
6
6
  id: z.ZodOptional<z.ZodString>;
7
7
  orderNo: z.ZodOptional<z.ZodString>;
8
- }, z.core.$strip>>;
8
+ }, z.core.$loose>>;
9
9
  forceDelete: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
10
10
  deleteMultiple: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
11
11
  }, z.core.$strip>;
@@ -17,11 +17,12 @@ declare const OptimorouteDeleteOrdersOutput: z.ZodObject<{
17
17
  orderNo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
18
  success: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
19
19
  planningId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
20
- }, z.core.$strip>>;
20
+ }, z.core.$loose>>;
21
21
  success: z.ZodNullable<z.ZodBoolean>;
22
- }, z.core.$strip>;
22
+ }, z.core.$loose>;
23
23
  declare const optimorouteDeleteOrders: import("@keystrokehq/action").WorkflowActionDefinition<{
24
24
  orders: {
25
+ [x: string]: unknown;
25
26
  id?: string | undefined;
26
27
  orderNo?: string | undefined;
27
28
  }[];
@@ -5,7 +5,7 @@ const OptimorouteDeleteOrdersInput = z.object({
5
5
  orders: z.array(z.object({
6
6
  id: z.string().describe("OptimoRoute-assigned unique identifier. Either orderNo or id must be provided.").optional(),
7
7
  orderNo: z.string().describe("User-specified order identifier. Either orderNo or id must be provided.").optional()
8
- }).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."),
8
+ }).passthrough().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."),
9
9
  forceDelete: z.boolean().default(false).describe("If true, ignores restrictions on deleting orders from live plans. Default: false.").optional(),
10
10
  deleteMultiple: z.boolean().default(false).describe("If true, deletes all matches when multiple orders share the same identifier. Default: false.").optional()
11
11
  }).describe("Request parameters for deleting one or more orders from the system.");
@@ -16,7 +16,7 @@ const OptimorouteDeleteOrders_DeletedOrderSchema = z.object({
16
16
  orderNo: z.string().describe("The identifier of the deleted order or failed deletion").nullable().optional(),
17
17
  success: z.boolean().describe("Whether the deletion was successful").nullable().optional(),
18
18
  planningId: z.number().int().describe("ID of running optimization process, if applicable").nullable().optional()
19
- }).describe("Result of a single order deletion attempt.");
19
+ }).passthrough().describe("Result of a single order deletion attempt.");
20
20
  const optimorouteDeleteOrders = action("OPTIMOROUTE_DELETE_ORDERS", {
21
21
  slug: "optimoroute-delete-orders",
22
22
  name: "Delete Orders",
@@ -25,7 +25,7 @@ const optimorouteDeleteOrders = action("OPTIMOROUTE_DELETE_ORDERS", {
25
25
  output: z.object({
26
26
  orders: z.array(OptimorouteDeleteOrders_DeletedOrderSchema).describe("Array of delete response objects, one per requested order"),
27
27
  success: z.boolean().describe("True if at least one order was deleted; false if all deletions failed").nullable()
28
- }).describe("Response schema for deleting orders.")
28
+ }).passthrough().describe("Response schema for deleting orders.")
29
29
  });
30
30
  //#endregion
31
31
  export { optimorouteDeleteOrders };
@@ -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.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,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,6CAA6C,EAAE,OAAO;CAC1D,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,QAV2C,EAAE,OAAO;EACpD,QAAQ,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,2DAA2D;EAChI,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;CAClH,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}).passthrough().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}).passthrough().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}).passthrough().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,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;EACnH,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;CACnH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,CAAC,SAAS,4FAA4F;CAC1K,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,6CAA6C,EAAE,OAAO;CAC1D,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,YAAY,CAAC,CAAC,SAAS,4CAA4C;AAMtE,MAAa,0BAA0B,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV2C,EAAE,OAAO;EACpD,QAAQ,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,2DAA2D;EAChI,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;CAClH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAOhB;AACV,CAAC"}
@@ -4,20 +4,20 @@ let zod = require("zod");
4
4
  const OptimorouteGetCompletionDetailsInput = zod.z.object({ orders: zod.z.array(zod.z.object({
5
5
  id: zod.z.string().describe("OptimoRoute-assigned unique order 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 identifiers to retrieve completion details for. Maximum 500 orders per request. Each order must contain either orderNo or id.") }).describe("Request parameters for retrieving completion details for one or more orders.");
8
- const OptimorouteGetCompletionDetails_FormDataSchema = zod.z.object({ note: zod.z.string().describe("Notes entered during completion").nullable().optional() }).describe("Captured form data from order completion.");
7
+ }).passthrough().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.") }).describe("Request parameters for retrieving completion details for one or more orders.");
8
+ const OptimorouteGetCompletionDetails_FormDataSchema = zod.z.object({ note: zod.z.string().describe("Notes entered during completion").nullable().optional() }).passthrough().describe("Captured form data from order completion.");
9
9
  const OptimorouteGetCompletionDetails_TimeInfoSchema = zod.z.object({
10
10
  utcTime: zod.z.string().describe("ISO 8601 formatted UTC time").nullable().optional(),
11
11
  localTime: zod.z.string().describe("ISO 8601 formatted local time").nullable().optional(),
12
12
  unixTimestamp: zod.z.number().int().describe("Unix timestamp").nullable().optional()
13
- }).describe("Time information with multiple representations.");
13
+ }).passthrough().describe("Time information with multiple representations.");
14
14
  const OptimorouteGetCompletionDetails_CompletionDataSchema = zod.z.object({
15
15
  form: OptimorouteGetCompletionDetails_FormDataSchema.nullable().optional(),
16
16
  status: zod.z.string().describe("Order outcome status. Possible values: success, failed, rejected, in_progress, scheduled, unscheduled").nullable().optional(),
17
17
  endTime: OptimorouteGetCompletionDetails_TimeInfoSchema.nullable().optional(),
18
18
  startTime: OptimorouteGetCompletionDetails_TimeInfoSchema.nullable().optional(),
19
19
  tracking_url: zod.z.string().describe("URL for order tracking information").nullable().optional()
20
- }).describe("Detailed completion information for an order.");
20
+ }).passthrough().describe("Detailed completion information for an order.");
21
21
  const OptimorouteGetCompletionDetails_OrderCompletionResultSchema = zod.z.object({
22
22
  id: zod.z.string().describe("OptimoRoute-assigned unique order identifier").nullable().optional(),
23
23
  code: zod.z.string().describe("Error code (present when success is false)").nullable().optional(),
@@ -25,11 +25,11 @@ const OptimorouteGetCompletionDetails_OrderCompletionResultSchema = zod.z.object
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
27
  success: zod.z.boolean().describe("Indicates if completion data was retrieved for this specific order").nullable()
28
- }).describe("Completion result for a single order.");
28
+ }).passthrough().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
31
  success: zod.z.boolean().describe("Indicates overall request success").nullable()
32
- }).describe("Response schema for retrieving completion details.");
32
+ }).passthrough().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",
35
35
  name: "Get Order 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.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,C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AAE,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,CAAC,CAAC,SAAS;AAC/G,CAAC,CAAC,CAAC,SAAS,uCAAuC;AACnD,MAAa,wCAAwCA,IAAAA,EAAE,OAAO;CAC5D,QAAQA,IAAAA,EAAE,MAAM,2DAA2D,CAAC,CAAC,SAAS,mEAAmE;CACzJ,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,mCAAmC,CAAC,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
+ {"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}).passthrough().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}).passthrough().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}).passthrough().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}).passthrough().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}).passthrough().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}).passthrough().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,YAAY,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,CAAC,SAAS,6IAA6I,EACjP,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,YAAY,CAAC,CAAC,SAAS,2CAA2C;AACrE,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,CAAC,SAAS,CAAC,CAAC,SAAS;AACjF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAC3E,MAAM,uDAAuDA,IAAAA,EAAE,OAAO;CACpE,MAAM,+CAA+C,SAAS,CAAC,CAAC,SAAS;CACzE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAA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 -5,7 +5,7 @@ declare const OptimorouteGetCompletionDetailsInput: z.ZodObject<{
5
5
  orders: z.ZodArray<z.ZodObject<{
6
6
  id: z.ZodOptional<z.ZodString>;
7
7
  orderNo: z.ZodOptional<z.ZodString>;
8
- }, z.core.$strip>>;
8
+ }, z.core.$loose>>;
9
9
  }, z.core.$strip>;
10
10
  declare const OptimorouteGetCompletionDetailsOutput: z.ZodObject<{
11
11
  orders: z.ZodArray<z.ZodObject<{
@@ -14,28 +14,29 @@ declare const OptimorouteGetCompletionDetailsOutput: z.ZodObject<{
14
14
  data: z.ZodOptional<z.ZodNullable<z.ZodObject<{
15
15
  form: z.ZodOptional<z.ZodNullable<z.ZodObject<{
16
16
  note: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
- }, z.core.$strip>>>;
17
+ }, z.core.$loose>>>;
18
18
  status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
19
  endTime: z.ZodOptional<z.ZodNullable<z.ZodObject<{
20
20
  utcTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
21
  localTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
22
  unixTimestamp: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
23
- }, z.core.$strip>>>;
23
+ }, z.core.$loose>>>;
24
24
  startTime: z.ZodOptional<z.ZodNullable<z.ZodObject<{
25
25
  utcTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
26
  localTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
27
  unixTimestamp: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
28
- }, z.core.$strip>>>;
28
+ }, z.core.$loose>>>;
29
29
  tracking_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
- }, z.core.$strip>>>;
30
+ }, z.core.$loose>>>;
31
31
  message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
32
  orderNo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
33
  success: z.ZodNullable<z.ZodBoolean>;
34
- }, z.core.$strip>>;
34
+ }, z.core.$loose>>;
35
35
  success: z.ZodNullable<z.ZodBoolean>;
36
- }, z.core.$strip>;
36
+ }, z.core.$loose>;
37
37
  declare const optimorouteGetCompletionDetails: import("@keystrokehq/action").WorkflowActionDefinition<{
38
38
  orders: {
39
+ [x: string]: unknown;
39
40
  id?: string | undefined;
40
41
  orderNo?: string | undefined;
41
42
  }[];
@@ -5,7 +5,7 @@ declare const OptimorouteGetCompletionDetailsInput: z.ZodObject<{
5
5
  orders: z.ZodArray<z.ZodObject<{
6
6
  id: z.ZodOptional<z.ZodString>;
7
7
  orderNo: z.ZodOptional<z.ZodString>;
8
- }, z.core.$strip>>;
8
+ }, z.core.$loose>>;
9
9
  }, z.core.$strip>;
10
10
  declare const OptimorouteGetCompletionDetailsOutput: z.ZodObject<{
11
11
  orders: z.ZodArray<z.ZodObject<{
@@ -14,28 +14,29 @@ declare const OptimorouteGetCompletionDetailsOutput: z.ZodObject<{
14
14
  data: z.ZodOptional<z.ZodNullable<z.ZodObject<{
15
15
  form: z.ZodOptional<z.ZodNullable<z.ZodObject<{
16
16
  note: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
- }, z.core.$strip>>>;
17
+ }, z.core.$loose>>>;
18
18
  status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
19
  endTime: z.ZodOptional<z.ZodNullable<z.ZodObject<{
20
20
  utcTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
21
  localTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
22
  unixTimestamp: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
23
- }, z.core.$strip>>>;
23
+ }, z.core.$loose>>>;
24
24
  startTime: z.ZodOptional<z.ZodNullable<z.ZodObject<{
25
25
  utcTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
26
  localTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
27
  unixTimestamp: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
28
- }, z.core.$strip>>>;
28
+ }, z.core.$loose>>>;
29
29
  tracking_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
- }, z.core.$strip>>>;
30
+ }, z.core.$loose>>>;
31
31
  message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
32
  orderNo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
33
  success: z.ZodNullable<z.ZodBoolean>;
34
- }, z.core.$strip>>;
34
+ }, z.core.$loose>>;
35
35
  success: z.ZodNullable<z.ZodBoolean>;
36
- }, z.core.$strip>;
36
+ }, z.core.$loose>;
37
37
  declare const optimorouteGetCompletionDetails: import("@keystrokehq/action").WorkflowActionDefinition<{
38
38
  orders: {
39
+ [x: string]: unknown;
39
40
  id?: string | undefined;
40
41
  orderNo?: string | undefined;
41
42
  }[];
@@ -4,20 +4,20 @@ import { z } from "zod";
4
4
  const OptimorouteGetCompletionDetailsInput = z.object({ orders: z.array(z.object({
5
5
  id: z.string().describe("OptimoRoute-assigned unique order 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 identifiers to retrieve completion details for. Maximum 500 orders per request. Each order must contain either orderNo or id.") }).describe("Request parameters for retrieving completion details for one or more orders.");
8
- const OptimorouteGetCompletionDetails_FormDataSchema = z.object({ note: z.string().describe("Notes entered during completion").nullable().optional() }).describe("Captured form data from order completion.");
7
+ }).passthrough().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.") }).describe("Request parameters for retrieving completion details for one or more orders.");
8
+ const OptimorouteGetCompletionDetails_FormDataSchema = z.object({ note: z.string().describe("Notes entered during completion").nullable().optional() }).passthrough().describe("Captured form data from order completion.");
9
9
  const OptimorouteGetCompletionDetails_TimeInfoSchema = z.object({
10
10
  utcTime: z.string().describe("ISO 8601 formatted UTC time").nullable().optional(),
11
11
  localTime: z.string().describe("ISO 8601 formatted local time").nullable().optional(),
12
12
  unixTimestamp: z.number().int().describe("Unix timestamp").nullable().optional()
13
- }).describe("Time information with multiple representations.");
13
+ }).passthrough().describe("Time information with multiple representations.");
14
14
  const OptimorouteGetCompletionDetails_CompletionDataSchema = z.object({
15
15
  form: OptimorouteGetCompletionDetails_FormDataSchema.nullable().optional(),
16
16
  status: z.string().describe("Order outcome status. Possible values: success, failed, rejected, in_progress, scheduled, unscheduled").nullable().optional(),
17
17
  endTime: OptimorouteGetCompletionDetails_TimeInfoSchema.nullable().optional(),
18
18
  startTime: OptimorouteGetCompletionDetails_TimeInfoSchema.nullable().optional(),
19
19
  tracking_url: z.string().describe("URL for order tracking information").nullable().optional()
20
- }).describe("Detailed completion information for an order.");
20
+ }).passthrough().describe("Detailed completion information for an order.");
21
21
  const OptimorouteGetCompletionDetails_OrderCompletionResultSchema = z.object({
22
22
  id: z.string().describe("OptimoRoute-assigned unique order identifier").nullable().optional(),
23
23
  code: z.string().describe("Error code (present when success is false)").nullable().optional(),
@@ -25,7 +25,7 @@ const OptimorouteGetCompletionDetails_OrderCompletionResultSchema = z.object({
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
27
  success: z.boolean().describe("Indicates if completion data was retrieved for this specific order").nullable()
28
- }).describe("Completion result for a single order.");
28
+ }).passthrough().describe("Completion result for a single order.");
29
29
  const optimorouteGetCompletionDetails = action("OPTIMOROUTE_GET_COMPLETION_DETAILS", {
30
30
  slug: "optimoroute-get-completion-details",
31
31
  name: "Get Order Completion Details",
@@ -34,7 +34,7 @@ const optimorouteGetCompletionDetails = action("OPTIMOROUTE_GET_COMPLETION_DETAI
34
34
  output: z.object({
35
35
  orders: z.array(OptimorouteGetCompletionDetails_OrderCompletionResultSchema).describe("Array of completion objects corresponding to each requested order"),
36
36
  success: z.boolean().describe("Indicates overall request success").nullable()
37
- }).describe("Response schema for retrieving completion details.")
37
+ }).passthrough().describe("Response schema for retrieving completion details.")
38
38
  });
39
39
  //#endregion
40
40
  export { optimorouteGetCompletionDetails };
@@ -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.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,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACjF,SAAS,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,iDAAiD,EAAE,OAAO,EAC9D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACnF,CAAC,CAAC,CAAC,SAAS,2CAA2C;AACvD,MAAM,iDAAiD,EAAE,OAAO;CAC9D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,C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M,2DAA2D,CAAC,CAAC,SAAS,mEAAmE;EACzJ,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC9E,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}).passthrough().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}).passthrough().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}).passthrough().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}).passthrough().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}).passthrough().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}).passthrough().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,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACjF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;AAC3E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,CAAC,SAAS,6IAA6I,EACjP,CAAC,CAAC,CAAC,SAAS,8EAA8E;AAC1F,MAAM,iDAAiD,EAAE,OAAO,EAC9D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACnF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C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CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;AAC/G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AAMjE,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,YAAY,CAAC,CAAC,SAAS,oDAOhB;AACV,CAAC"}
@@ -14,13 +14,13 @@ const OptimorouteGetDrivers_DriverSchema = zod.z.object({
14
14
  phoneNumber: zod.z.string().describe("Driver's phone number").nullable().optional(),
15
15
  vehicleType: zod.z.string().describe("Vehicle type for the driver").nullable().optional(),
16
16
  driverNumber: zod.z.string().describe("Driver's number").nullable().optional()
17
- });
17
+ }).passthrough();
18
18
  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
22
  success: zod.z.boolean().describe("Whether the API call was successful").nullable()
23
- });
23
+ }).passthrough();
24
24
  const optimorouteGetDrivers = require_action.action("OPTIMOROUTE_GET_DRIVERS", {
25
25
  slug: "optimoroute-get-drivers",
26
26
  name: "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.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,6BAA6BA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,4DAA4D;AAC5H,MAAM,qCAAqCA,IAAAA,EAAE,OAAO;CAClD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;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O,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}).passthrough();\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}).passthrough();\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,6BAA6BA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,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A+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,CAAC,CAAC,YAAY;AAEf,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -16,10 +16,10 @@ declare const OptimorouteGetDriversOutput: z.ZodObject<{
16
16
  phoneNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
17
  vehicleType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
18
  driverNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
- }, z.core.$strip>>>>;
19
+ }, z.core.$loose>>>>;
20
20
  message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
21
  success: z.ZodNullable<z.ZodBoolean>;
22
- }, z.core.$strip>;
22
+ }, z.core.$loose>;
23
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]>;
24
24
  //#endregion
25
25
  export { optimorouteGetDrivers };
@@ -16,10 +16,10 @@ declare const OptimorouteGetDriversOutput: z.ZodObject<{
16
16
  phoneNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
17
  vehicleType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
18
  driverNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
- }, z.core.$strip>>>>;
19
+ }, z.core.$loose>>>>;
20
20
  message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
21
  success: z.ZodNullable<z.ZodBoolean>;
22
- }, z.core.$strip>;
22
+ }, z.core.$loose>;
23
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]>;
24
24
  //#endregion
25
25
  export { optimorouteGetDrivers };
@@ -14,7 +14,7 @@ const OptimorouteGetDrivers_DriverSchema = z.object({
14
14
  phoneNumber: z.string().describe("Driver's phone number").nullable().optional(),
15
15
  vehicleType: z.string().describe("Vehicle type for the driver").nullable().optional(),
16
16
  driverNumber: z.string().describe("Driver's number").nullable().optional()
17
- });
17
+ }).passthrough();
18
18
  const optimorouteGetDrivers = action("OPTIMOROUTE_GET_DRIVERS", {
19
19
  slug: "optimoroute-get-drivers",
20
20
  name: "Get Drivers",
@@ -25,7 +25,7 @@ const optimorouteGetDrivers = action("OPTIMOROUTE_GET_DRIVERS", {
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
27
  success: z.boolean().describe("Whether the API call was successful").nullable()
28
- })
28
+ }).passthrough()
29
29
  });
30
30
  //#endregion
31
31
  export { optimorouteGetDrivers };
@@ -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.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,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,QAZyC,EAAE,OAAO;EAClD,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,CAAC,CAAC,SAAS;CAChF,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}).passthrough();\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}).passthrough();\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,CAA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AACV,CAAC"}
@@ -6,7 +6,7 @@ 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
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(),
@@ -18,7 +18,7 @@ const OptimorouteGetEvents_EventSchema = zod.z.object({
18
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(),
@@ -26,7 +26,7 @@ const OptimorouteGetEventsOutput = zod.z.object({
26
26
  message: zod.z.string().describe("Error or status message from the API").nullable().optional(),
27
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.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,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0HAA0H,CAAC,CAAC,SAAS;CAChK,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,S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AAA,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,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,YAAY,CAAC,CAAC,SAAS,gFAAgF;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