@keystrokehq/optimoroute 0.1.5 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (149) 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 +1 -0
  4. package/dist/actions/create-or-update-orders.cjs.map +1 -1
  5. package/dist/actions/create-or-update-orders.d.cts +3 -65
  6. package/dist/actions/create-or-update-orders.d.cts.map +1 -1
  7. package/dist/actions/create-or-update-orders.d.mts +3 -65
  8. package/dist/actions/create-or-update-orders.d.mts.map +1 -1
  9. package/dist/actions/create-or-update-orders.mjs +1 -0
  10. package/dist/actions/create-or-update-orders.mjs.map +1 -1
  11. package/dist/actions/create-order.cjs +1 -0
  12. package/dist/actions/create-order.cjs.map +1 -1
  13. package/dist/actions/create-order.d.cts +3 -52
  14. package/dist/actions/create-order.d.cts.map +1 -1
  15. package/dist/actions/create-order.d.mts +3 -52
  16. package/dist/actions/create-order.d.mts.map +1 -1
  17. package/dist/actions/create-order.mjs +1 -0
  18. package/dist/actions/create-order.mjs.map +1 -1
  19. package/dist/actions/delete-all-orders.cjs +1 -0
  20. package/dist/actions/delete-all-orders.cjs.map +1 -1
  21. package/dist/actions/delete-all-orders.d.cts +3 -15
  22. package/dist/actions/delete-all-orders.d.cts.map +1 -1
  23. package/dist/actions/delete-all-orders.d.mts +3 -15
  24. package/dist/actions/delete-all-orders.d.mts.map +1 -1
  25. package/dist/actions/delete-all-orders.mjs +1 -0
  26. package/dist/actions/delete-all-orders.mjs.map +1 -1
  27. package/dist/actions/delete-order.cjs +1 -0
  28. package/dist/actions/delete-order.cjs.map +1 -1
  29. package/dist/actions/delete-order.d.cts +3 -16
  30. package/dist/actions/delete-order.d.cts.map +1 -1
  31. package/dist/actions/delete-order.d.mts +3 -16
  32. package/dist/actions/delete-order.d.mts.map +1 -1
  33. package/dist/actions/delete-order.mjs +1 -0
  34. package/dist/actions/delete-order.mjs.map +1 -1
  35. package/dist/actions/delete-orders.cjs +1 -0
  36. package/dist/actions/delete-orders.cjs.map +1 -1
  37. package/dist/actions/delete-orders.d.cts +3 -21
  38. package/dist/actions/delete-orders.d.cts.map +1 -1
  39. package/dist/actions/delete-orders.d.mts +3 -21
  40. package/dist/actions/delete-orders.d.mts.map +1 -1
  41. package/dist/actions/delete-orders.mjs +1 -0
  42. package/dist/actions/delete-orders.mjs.map +1 -1
  43. package/dist/actions/get-completion-details.cjs +1 -0
  44. package/dist/actions/get-completion-details.cjs.map +1 -1
  45. package/dist/actions/get-completion-details.d.cts +3 -19
  46. package/dist/actions/get-completion-details.d.cts.map +1 -1
  47. package/dist/actions/get-completion-details.d.mts +3 -19
  48. package/dist/actions/get-completion-details.d.mts.map +1 -1
  49. package/dist/actions/get-completion-details.mjs +1 -0
  50. package/dist/actions/get-completion-details.mjs.map +1 -1
  51. package/dist/actions/get-drivers.cjs +1 -0
  52. package/dist/actions/get-drivers.cjs.map +1 -1
  53. package/dist/actions/get-drivers.d.cts +3 -13
  54. package/dist/actions/get-drivers.d.cts.map +1 -1
  55. package/dist/actions/get-drivers.d.mts +3 -13
  56. package/dist/actions/get-drivers.d.mts.map +1 -1
  57. package/dist/actions/get-drivers.mjs +1 -0
  58. package/dist/actions/get-drivers.mjs.map +1 -1
  59. package/dist/actions/get-events.cjs +1 -0
  60. package/dist/actions/get-events.cjs.map +1 -1
  61. package/dist/actions/get-events.d.cts +3 -15
  62. package/dist/actions/get-events.d.cts.map +1 -1
  63. package/dist/actions/get-events.d.mts +3 -15
  64. package/dist/actions/get-events.d.mts.map +1 -1
  65. package/dist/actions/get-events.mjs +1 -0
  66. package/dist/actions/get-events.mjs.map +1 -1
  67. package/dist/actions/get-orders.cjs +1 -0
  68. package/dist/actions/get-orders.cjs.map +1 -1
  69. package/dist/actions/get-orders.d.cts +3 -19
  70. package/dist/actions/get-orders.d.cts.map +1 -1
  71. package/dist/actions/get-orders.d.mts +3 -19
  72. package/dist/actions/get-orders.d.mts.map +1 -1
  73. package/dist/actions/get-orders.mjs +1 -0
  74. package/dist/actions/get-orders.mjs.map +1 -1
  75. package/dist/actions/get-planning-status.cjs +1 -0
  76. package/dist/actions/get-planning-status.cjs.map +1 -1
  77. package/dist/actions/get-planning-status.d.cts +3 -15
  78. package/dist/actions/get-planning-status.d.cts.map +1 -1
  79. package/dist/actions/get-planning-status.d.mts +3 -15
  80. package/dist/actions/get-planning-status.d.mts.map +1 -1
  81. package/dist/actions/get-planning-status.mjs +1 -0
  82. package/dist/actions/get-planning-status.mjs.map +1 -1
  83. package/dist/actions/get-routes.cjs +1 -0
  84. package/dist/actions/get-routes.cjs.map +1 -1
  85. package/dist/actions/get-routes.d.cts +3 -20
  86. package/dist/actions/get-routes.d.cts.map +1 -1
  87. package/dist/actions/get-routes.d.mts +3 -20
  88. package/dist/actions/get-routes.d.mts.map +1 -1
  89. package/dist/actions/get-routes.mjs +1 -0
  90. package/dist/actions/get-routes.mjs.map +1 -1
  91. package/dist/actions/get-scheduling-info.cjs +1 -0
  92. package/dist/actions/get-scheduling-info.cjs.map +1 -1
  93. package/dist/actions/get-scheduling-info.d.cts +3 -16
  94. package/dist/actions/get-scheduling-info.d.cts.map +1 -1
  95. package/dist/actions/get-scheduling-info.d.mts +3 -16
  96. package/dist/actions/get-scheduling-info.d.mts.map +1 -1
  97. package/dist/actions/get-scheduling-info.mjs +1 -0
  98. package/dist/actions/get-scheduling-info.mjs.map +1 -1
  99. package/dist/actions/search-orders.cjs +1 -0
  100. package/dist/actions/search-orders.cjs.map +1 -1
  101. package/dist/actions/search-orders.d.cts +3 -28
  102. package/dist/actions/search-orders.d.cts.map +1 -1
  103. package/dist/actions/search-orders.d.mts +3 -28
  104. package/dist/actions/search-orders.d.mts.map +1 -1
  105. package/dist/actions/search-orders.mjs +1 -0
  106. package/dist/actions/search-orders.mjs.map +1 -1
  107. package/dist/actions/start-planning.cjs +1 -0
  108. package/dist/actions/start-planning.cjs.map +1 -1
  109. package/dist/actions/start-planning.d.cts +3 -39
  110. package/dist/actions/start-planning.d.cts.map +1 -1
  111. package/dist/actions/start-planning.d.mts +3 -39
  112. package/dist/actions/start-planning.d.mts.map +1 -1
  113. package/dist/actions/start-planning.mjs +1 -0
  114. package/dist/actions/start-planning.mjs.map +1 -1
  115. package/dist/actions/stop-planning.cjs +1 -0
  116. package/dist/actions/stop-planning.cjs.map +1 -1
  117. package/dist/actions/stop-planning.d.cts +3 -15
  118. package/dist/actions/stop-planning.d.cts.map +1 -1
  119. package/dist/actions/stop-planning.d.mts +3 -15
  120. package/dist/actions/stop-planning.d.mts.map +1 -1
  121. package/dist/actions/stop-planning.mjs +1 -0
  122. package/dist/actions/stop-planning.mjs.map +1 -1
  123. package/dist/actions/update-driver-parameters.cjs +1 -0
  124. package/dist/actions/update-driver-parameters.cjs.map +1 -1
  125. package/dist/actions/update-driver-parameters.d.cts +3 -30
  126. package/dist/actions/update-driver-parameters.d.cts.map +1 -1
  127. package/dist/actions/update-driver-parameters.d.mts +3 -30
  128. package/dist/actions/update-driver-parameters.d.mts.map +1 -1
  129. package/dist/actions/update-driver-parameters.mjs +1 -0
  130. package/dist/actions/update-driver-parameters.mjs.map +1 -1
  131. package/dist/actions/update-drivers-parameters.cjs +1 -0
  132. package/dist/actions/update-drivers-parameters.cjs.map +1 -1
  133. package/dist/actions/update-drivers-parameters.d.cts +3 -47
  134. package/dist/actions/update-drivers-parameters.d.cts.map +1 -1
  135. package/dist/actions/update-drivers-parameters.d.mts +3 -47
  136. package/dist/actions/update-drivers-parameters.d.mts.map +1 -1
  137. package/dist/actions/update-drivers-parameters.mjs +1 -0
  138. package/dist/actions/update-drivers-parameters.mjs.map +1 -1
  139. package/dist/app.cjs +2 -2
  140. package/dist/app.cjs.map +1 -1
  141. package/dist/app.d.cts +4 -6
  142. package/dist/app.d.cts.map +1 -1
  143. package/dist/app.d.mts +4 -6
  144. package/dist/app.d.mts.map +1 -1
  145. package/dist/app.mjs +0 -1
  146. package/dist/app.mjs.map +1 -1
  147. package/dist/index.d.cts +1 -1
  148. package/dist/index.d.mts +1 -1
  149. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"start-planning.mjs","names":[],"sources":["../../src/actions/start-planning.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OptimorouteStartPlanningInput = z.object({\n date: z.string().describe(\"Target date for planning in YYYY-MM-DD format. Required if dateRange is not specified\").optional(),\n lockType: z.enum([\"NONE\", \"ROUTES\", \"RESOURCES\"]).describe(\"Constrains route modifications - NONE (no constraints), ROUTES (lock routes), or RESOURCES (lock resources). Default: NONE. Only applicable when startWith is CURRENT\").optional(),\n balanceBy: z.enum([\"WT\", \"NUM\"]).describe(\"Balancing criteria - WT (working time) or NUM (order count). Default: WT\").optional(),\n balancing: z.enum([\"OFF\", \"ON\", \"ON_FORCE\"]).describe(\"Route balancing mode - OFF (no balancing), ON (balanced routes), or ON_FORCE (force balancing). Default: OFF\").optional(),\n dateRange: z.object({\n to: z.string().describe(\"End date of the planning range in YYYY-MM-DD format\"),\n from: z.string().describe(\"Start date of the planning range in YYYY-MM-DD format\"),\n}).describe(\"Date range for weekly planning.\").optional(),\n startWith: z.enum([\"EMPTY\", \"CURRENT\"]).describe(\"EMPTY starts fresh planning, CURRENT uses existing routes. Default: EMPTY\").optional(),\n useOrders: z.array(z.string()).describe(\"Deprecated - use useOrderObjects instead. List of order identifiers\").optional(),\n clustering: z.boolean().describe(\"Minimizes route overlap when enabled. Default: false\").optional(),\n depotTrips: z.boolean().describe(\"Enables warehouse reload scheduling. Default: false\").optional(),\n useDrivers: z.array(z.object({\n driverSerial: z.string().describe(\"Serial number identifier for the driver\").optional(),\n driverExternalId: z.string().describe(\"External identifier for the driver\").optional(),\n}).passthrough().describe(\"Driver selection for planning.\")).describe(\"Selected drivers to include in planning. Empty array uses all available drivers\").optional(),\n balancingFactor: z.number().describe(\"Weighting for balanced routes, range 0.0-1.0. Default: 0.3\").optional(),\n useOrderObjects: z.array(z.object({\n id: z.string().describe(\"OptimoRoute-assigned order identifier\").optional(),\n orderNo: z.string().describe(\"User-specified order identifier\").optional(),\n}).passthrough().describe(\"Order identifier for selective planning.\")).describe(\"Orders to optimize (maximum 500 orders per request). Each object contains either orderNo or id. Empty includes all valid orders\").optional(),\n depotVisitDuration: z.number().int().describe(\"Reload time at depot in minutes. Default: 0\").optional(),\n includeScheduledOrders: z.boolean().describe(\"Determines handling of pre-scheduled orders. Default: true\").optional(),\n}).describe(\"Request parameters for starting route optimization.\");\nexport const OptimorouteStartPlanningOutput = z.object({\n code: z.string().describe(\"Error code if operation failed (e.g., ERR_OPT_NO_REQUESTS, ERR_NO_DRIVERS)\").nullable().optional(),\n success: z.boolean().describe(\"Indicates whether the planning process was successfully initiated\").nullable(),\n planningId: z.number().int().describe(\"Job identifier for tracking or stopping the optimization process. Null if planning failed\").nullable().optional(),\n missingOrders: z.array(z.string()).describe(\"Order identifiers that were not found in the system\").nullable().optional(),\n missingDrivers: z.array(z.string()).describe(\"Driver identifiers that were not found in the system\").nullable().optional(),\n ordersWithInvalidLocation: z.array(z.string()).describe(\"Orders lacking valid geocoded locations\").nullable().optional(),\n}).passthrough().describe(\"Response schema for starting route optimization.\");\n\nexport const optimorouteStartPlanning = action(\"OPTIMOROUTE_START_PLANNING\", {\n slug: \"optimoroute-start-planning\",\n name: \"Start Planning\",\n description: \"Tool to start the planning/optimization process for a specified date or date range. Use when you need to generate optimized routes for orders and drivers. Requires orders to be created before planning can begin.\",\n input: OptimorouteStartPlanningInput,\n output: OptimorouteStartPlanningOutput,\n});\n"],"mappings":";;AAsCA,MAAa,2BAA2B,OAAO,8BAA8B;CAC3E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAtC2C,EAAE,OAAO;EACpD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uFAAuF,CAAC,CAAC,SAAS;EAC5H,UAAU,EAAE,KAAK;GAAC;GAAQ;GAAU;EAAW,CAAC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AAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EAC3E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,CAAC,SAAS,iIAAiI,CAAC,CAAC,SAAS;EAC1N,oBAAoB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;EACtG,wBAAwB,EAAE,QAAQ,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACtH,CAAC,CAAC,CAAC,SAAS,qDAcH;CACP,QAd4C,EAAE,OAAO;EACrD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5H,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;EAC5G,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvJ,eAAe,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvH,gBAAgB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzH,2BAA2B,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"start-planning.mjs","names":[],"sources":["../../src/actions/start-planning.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { optimoroute } from \"../app\";\n\nexport const OptimorouteStartPlanningInput = z.object({\n date: z.string().describe(\"Target date for planning in YYYY-MM-DD format. Required if dateRange is not specified\").optional(),\n lockType: z.enum([\"NONE\", \"ROUTES\", \"RESOURCES\"]).describe(\"Constrains route modifications - NONE (no constraints), ROUTES (lock routes), or RESOURCES (lock resources). Default: NONE. Only applicable when startWith is CURRENT\").optional(),\n balanceBy: z.enum([\"WT\", \"NUM\"]).describe(\"Balancing criteria - WT (working time) or NUM (order count). Default: WT\").optional(),\n balancing: z.enum([\"OFF\", \"ON\", \"ON_FORCE\"]).describe(\"Route balancing mode - OFF (no balancing), ON (balanced routes), or ON_FORCE (force balancing). Default: OFF\").optional(),\n dateRange: z.object({\n to: z.string().describe(\"End date of the planning range in YYYY-MM-DD format\"),\n from: z.string().describe(\"Start date of the planning range in YYYY-MM-DD format\"),\n}).describe(\"Date range for weekly planning.\").optional(),\n startWith: z.enum([\"EMPTY\", \"CURRENT\"]).describe(\"EMPTY starts fresh planning, CURRENT uses existing routes. Default: EMPTY\").optional(),\n useOrders: z.array(z.string()).describe(\"Deprecated - use useOrderObjects instead. List of order identifiers\").optional(),\n clustering: z.boolean().describe(\"Minimizes route overlap when enabled. Default: false\").optional(),\n depotTrips: z.boolean().describe(\"Enables warehouse reload scheduling. Default: false\").optional(),\n useDrivers: z.array(z.object({\n driverSerial: z.string().describe(\"Serial number identifier for the driver\").optional(),\n driverExternalId: z.string().describe(\"External identifier for the driver\").optional(),\n}).passthrough().describe(\"Driver selection for planning.\")).describe(\"Selected drivers to include in planning. Empty array uses all available drivers\").optional(),\n balancingFactor: z.number().describe(\"Weighting for balanced routes, range 0.0-1.0. Default: 0.3\").optional(),\n useOrderObjects: z.array(z.object({\n id: z.string().describe(\"OptimoRoute-assigned order identifier\").optional(),\n orderNo: z.string().describe(\"User-specified order identifier\").optional(),\n}).passthrough().describe(\"Order identifier for selective planning.\")).describe(\"Orders to optimize (maximum 500 orders per request). Each object contains either orderNo or id. Empty includes all valid orders\").optional(),\n depotVisitDuration: z.number().int().describe(\"Reload time at depot in minutes. Default: 0\").optional(),\n includeScheduledOrders: z.boolean().describe(\"Determines handling of pre-scheduled orders. Default: true\").optional(),\n}).describe(\"Request parameters for starting route optimization.\");\nexport const OptimorouteStartPlanningOutput = z.object({\n code: z.string().describe(\"Error code if operation failed (e.g., ERR_OPT_NO_REQUESTS, ERR_NO_DRIVERS)\").nullable().optional(),\n success: z.boolean().describe(\"Indicates whether the planning process was successfully initiated\").nullable(),\n planningId: z.number().int().describe(\"Job identifier for tracking or stopping the optimization process. Null if planning failed\").nullable().optional(),\n missingOrders: z.array(z.string()).describe(\"Order identifiers that were not found in the system\").nullable().optional(),\n missingDrivers: z.array(z.string()).describe(\"Driver identifiers that were not found in the system\").nullable().optional(),\n ordersWithInvalidLocation: z.array(z.string()).describe(\"Orders lacking valid geocoded locations\").nullable().optional(),\n}).passthrough().describe(\"Response schema for starting route optimization.\");\n\nexport const optimorouteStartPlanning: AppAction<\n typeof OptimorouteStartPlanningInput,\n typeof OptimorouteStartPlanningOutput,\n typeof optimoroute.credential\n> = action(\"OPTIMOROUTE_START_PLANNING\", {\n slug: \"optimoroute-start-planning\",\n name: \"Start Planning\",\n description: \"Tool to start the planning/optimization process for a specified date or date range. Use when you need to generate optimized routes for orders and drivers. Requires orders to be created before planning can begin.\",\n input: OptimorouteStartPlanningInput,\n output: OptimorouteStartPlanningOutput,\n});\n"],"mappings":";;;AAwCA,MAAa,2BAIT,OAAO,8BAA8B;CACvC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA1C2C,EAAE,OAAO;EACpD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uFAAuF,CAAC,CAAC,SAAS;EAC5H,UAAU,EAAE,KAAK;GAAC;GAAQ;GAAU;EAAW,CAAC,CAAC,CAAC,SAAS,uKAAuK,CAAC,CAAC,SAAS;EAC7O,WAAW,EAAE,KAAK,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;EAC/H,WAAW,EAAE,KAAK;GAAC;GAAO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AO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;EACtG,wBAAwB,EAAE,QAAQ,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACtH,CAAC,CAAC,CAAC,SAAS,qDAkBH;CACP,QAlB4C,EAAE,OAAO;EACrD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5H,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;EAC5G,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvJ,eAAe,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvH,gBAAgB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzH,2BAA2B,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/stop-planning.ts
@@ -1 +1 @@
1
- {"version":3,"file":"stop-planning.cjs","names":["z","action"],"sources":["../../src/actions/stop-planning.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OptimorouteStopPlanningInput = z.object({\n planning_id: z.number().int().describe(\"The ID of the planning process to be stopped\"),\n}).describe(\"Request parameters for stopping a planning process.\");\nexport const OptimorouteStopPlanningOutput = z.object({\n code: z.string().describe(\"Error or warning code (not set if successful). Possible values: ERR_JOB_NOT_FOUND (Planning job not found), ERR_OPT_NOT_RUNNING (Planning job not actively running), ERR_OPT_COULD_NOT_STOP (Internal server error)\").nullable().optional(),\n message: z.string().describe(\"Error message if the request failed\").nullable().optional(),\n success: z.boolean().describe(\"Indicates if the optimization was stopped successfully\").nullable(),\n}).passthrough().describe(\"Response schema for stopping a planning process.\");\n\nexport const optimorouteStopPlanning = action(\"OPTIMOROUTE_STOP_PLANNING\", {\n slug: \"optimoroute-stop-planning\",\n name: \"Stop Planning\",\n description: \"Tool to stop an active planning/optimization process. Use when you need to halt a running planning job by providing its ID.\",\n input: OptimorouteStopPlanningInput,\n output: OptimorouteStopPlanningOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,EACvF,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qNAAqN,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrQ,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAAkD;AAE5E,MAAa,0BAA0BC,eAAAA,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"stop-planning.cjs","names":["z","action"],"sources":["../../src/actions/stop-planning.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { optimoroute } from \"../app\";\n\nexport const OptimorouteStopPlanningInput = z.object({\n planning_id: z.number().int().describe(\"The ID of the planning process to be stopped\"),\n}).describe(\"Request parameters for stopping a planning process.\");\nexport const OptimorouteStopPlanningOutput = z.object({\n code: z.string().describe(\"Error or warning code (not set if successful). Possible values: ERR_JOB_NOT_FOUND (Planning job not found), ERR_OPT_NOT_RUNNING (Planning job not actively running), ERR_OPT_COULD_NOT_STOP (Internal server error)\").nullable().optional(),\n message: z.string().describe(\"Error message if the request failed\").nullable().optional(),\n success: z.boolean().describe(\"Indicates if the optimization was stopped successfully\").nullable(),\n}).passthrough().describe(\"Response schema for stopping a planning process.\");\n\nexport const optimorouteStopPlanning: AppAction<\n typeof OptimorouteStopPlanningInput,\n typeof OptimorouteStopPlanningOutput,\n typeof optimoroute.credential\n> = action(\"OPTIMOROUTE_STOP_PLANNING\", {\n slug: \"optimoroute-stop-planning\",\n name: \"Stop Planning\",\n description: \"Tool to stop an active planning/optimization process. Use when you need to halt a running planning job by providing its ID.\",\n input: OptimorouteStopPlanningInput,\n output: OptimorouteStopPlanningOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,EACvF,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qNAAqN,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrQ,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAAkD;AAE5E,MAAa,0BAITC,eAAAA,OAAO,6BAA6B;CACtC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { optimoroute } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/stop-planning.d.ts
@@ -9,21 +11,7 @@ declare const OptimorouteStopPlanningOutput: z.ZodObject<{
9
11
  message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
12
  success: z.ZodNullable<z.ZodBoolean>;
11
13
  }, z.core.$loose>;
12
- declare const optimorouteStopPlanning: import("@keystrokehq/action").WorkflowActionDefinition<{
13
- planning_id: number;
14
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"optimoroute", z.ZodObject<{
15
- connectionId: z.ZodString;
16
- entityId: z.ZodString;
17
- instanceId: z.ZodString;
18
- }, z.core.$strip>, z.ZodObject<{
19
- generic_api_key: z.ZodString;
20
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"optimoroute", z.ZodObject<{
21
- connectionId: z.ZodString;
22
- entityId: z.ZodString;
23
- instanceId: z.ZodString;
24
- }, z.core.$strip>, z.ZodObject<{
25
- generic_api_key: z.ZodString;
26
- }, z.core.$strip>>]>;
14
+ declare const optimorouteStopPlanning: AppAction<typeof OptimorouteStopPlanningInput, typeof OptimorouteStopPlanningOutput, typeof optimoroute.credential>;
27
15
  //#endregion
28
16
  export { optimorouteStopPlanning };
29
17
  //# sourceMappingURL=stop-planning.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"stop-planning.d.cts","names":[],"sources":["../../src/actions/stop-planning.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAG5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;cAM7B,uBAAA,gCAAuB,wBAAA"}
1
+ {"version":3,"file":"stop-planning.d.cts","names":[],"sources":["../../src/actions/stop-planning.ts"],"mappings":";;;;;cAMa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAG5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;cAM7B,uBAAA,EAAyB,SAAA,QAC7B,4BAAA,SACA,6BAAA,SACA,WAAA,CAAY,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { optimoroute } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/stop-planning.d.ts
@@ -9,21 +11,7 @@ declare const OptimorouteStopPlanningOutput: z.ZodObject<{
9
11
  message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
12
  success: z.ZodNullable<z.ZodBoolean>;
11
13
  }, z.core.$loose>;
12
- declare const optimorouteStopPlanning: import("@keystrokehq/action").WorkflowActionDefinition<{
13
- planning_id: number;
14
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"optimoroute", z.ZodObject<{
15
- connectionId: z.ZodString;
16
- entityId: z.ZodString;
17
- instanceId: z.ZodString;
18
- }, z.core.$strip>, z.ZodObject<{
19
- generic_api_key: z.ZodString;
20
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"optimoroute", z.ZodObject<{
21
- connectionId: z.ZodString;
22
- entityId: z.ZodString;
23
- instanceId: z.ZodString;
24
- }, z.core.$strip>, z.ZodObject<{
25
- generic_api_key: z.ZodString;
26
- }, z.core.$strip>>]>;
14
+ declare const optimorouteStopPlanning: AppAction<typeof OptimorouteStopPlanningInput, typeof OptimorouteStopPlanningOutput, typeof optimoroute.credential>;
27
15
  //#endregion
28
16
  export { optimorouteStopPlanning };
29
17
  //# sourceMappingURL=stop-planning.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"stop-planning.d.mts","names":[],"sources":["../../src/actions/stop-planning.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAG5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;cAM7B,uBAAA,gCAAuB,wBAAA"}
1
+ {"version":3,"file":"stop-planning.d.mts","names":[],"sources":["../../src/actions/stop-planning.ts"],"mappings":";;;;;cAMa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAG5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;cAM7B,uBAAA,EAAyB,SAAA,QAC7B,4BAAA,SACA,6BAAA,SACA,WAAA,CAAY,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const optimorouteStopPlanning = action("OPTIMOROUTE_STOP_PLANNING", {
@@ -1 +1 @@
1
- {"version":3,"file":"stop-planning.mjs","names":[],"sources":["../../src/actions/stop-planning.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OptimorouteStopPlanningInput = z.object({\n planning_id: z.number().int().describe(\"The ID of the planning process to be stopped\"),\n}).describe(\"Request parameters for stopping a planning process.\");\nexport const OptimorouteStopPlanningOutput = z.object({\n code: z.string().describe(\"Error or warning code (not set if successful). Possible values: ERR_JOB_NOT_FOUND (Planning job not found), ERR_OPT_NOT_RUNNING (Planning job not actively running), ERR_OPT_COULD_NOT_STOP (Internal server error)\").nullable().optional(),\n message: z.string().describe(\"Error message if the request failed\").nullable().optional(),\n success: z.boolean().describe(\"Indicates if the optimization was stopped successfully\").nullable(),\n}).passthrough().describe(\"Response schema for stopping a planning process.\");\n\nexport const optimorouteStopPlanning = action(\"OPTIMOROUTE_STOP_PLANNING\", {\n slug: \"optimoroute-stop-planning\",\n name: \"Stop Planning\",\n description: \"Tool to stop an active planning/optimization process. Use when you need to halt a running planning job by providing its ID.\",\n input: OptimorouteStopPlanningInput,\n output: OptimorouteStopPlanningOutput,\n});\n"],"mappings":";;AAaA,MAAa,0BAA0B,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAb0C,EAAE,OAAO,EACnD,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,EACvF,CAAC,CAAC,CAAC,SAAS,qDAWH;CACP,QAX2C,EAAE,OAAO;EACpD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qNAAqN,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrQ,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxF,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CACnG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"stop-planning.mjs","names":[],"sources":["../../src/actions/stop-planning.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { optimoroute } from \"../app\";\n\nexport const OptimorouteStopPlanningInput = z.object({\n planning_id: z.number().int().describe(\"The ID of the planning process to be stopped\"),\n}).describe(\"Request parameters for stopping a planning process.\");\nexport const OptimorouteStopPlanningOutput = z.object({\n code: z.string().describe(\"Error or warning code (not set if successful). Possible values: ERR_JOB_NOT_FOUND (Planning job not found), ERR_OPT_NOT_RUNNING (Planning job not actively running), ERR_OPT_COULD_NOT_STOP (Internal server error)\").nullable().optional(),\n message: z.string().describe(\"Error message if the request failed\").nullable().optional(),\n success: z.boolean().describe(\"Indicates if the optimization was stopped successfully\").nullable(),\n}).passthrough().describe(\"Response schema for stopping a planning process.\");\n\nexport const optimorouteStopPlanning: AppAction<\n typeof OptimorouteStopPlanningInput,\n typeof OptimorouteStopPlanningOutput,\n typeof optimoroute.credential\n> = action(\"OPTIMOROUTE_STOP_PLANNING\", {\n slug: \"optimoroute-stop-planning\",\n name: \"Stop Planning\",\n description: \"Tool to stop an active planning/optimization process. Use when you need to halt a running planning job by providing its ID.\",\n input: OptimorouteStopPlanningInput,\n output: OptimorouteStopPlanningOutput,\n});\n"],"mappings":";;;AAeA,MAAa,0BAIT,OAAO,6BAA6B;CACtC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAjB0C,EAAE,OAAO,EACnD,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,EACvF,CAAC,CAAC,CAAC,SAAS,qDAeH;CACP,QAf2C,EAAE,OAAO;EACpD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qNAAqN,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrQ,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxF,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CACnG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/update-driver-parameters.ts
@@ -1 +1 @@
1
- {"version":3,"file":"update-driver-parameters.cjs","names":["z","action"],"sources":["../../src/actions/update-driver-parameters.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OptimorouteUpdateDriverParametersInput = z.object({\n date: z.string().describe(\"Target date in YYYY-MM-DD format\"),\n enabled: z.boolean().describe(\"Enable or disable driver for the specified date\").optional(),\n endAddress: z.string().describe(\"Ending location display address\").optional(),\n externalId: z.string().describe(\"Driver's external identifier from driver administration\"),\n workTimeTo: z.string().describe(\"End of work shift in HH:MM 24-hour format\").optional(),\n endLatitude: z.number().describe(\"Ending location latitude coordinate\").optional(),\n endLongitude: z.number().describe(\"Ending location longitude coordinate\").optional(),\n startAddress: z.string().describe(\"Starting location display address\").optional(),\n workTimeFrom: z.string().describe(\"Start of work shift in HH:MM 24-hour format\").optional(),\n startLatitude: z.number().describe(\"Starting location latitude coordinate\").optional(),\n startLongitude: z.number().describe(\"Starting location longitude coordinate\").optional(),\n assignedVehicle: z.string().describe(\"Vehicle external identifier to assign\").optional(),\n vehicleCapacity1: z.number().int().describe(\"Load capacity limit for dimension 1\").optional(),\n vehicleCapacity2: z.number().int().describe(\"Load capacity limit for dimension 2\").optional(),\n vehicleCapacity3: z.number().int().describe(\"Load capacity limit for dimension 3\").optional(),\n vehicleCapacity4: z.number().int().describe(\"Load capacity limit for dimension 4\").optional(),\n}).describe(\"Request parameters for updating driver parameters.\");\nexport const OptimorouteUpdateDriverParametersOutput = z.object({\n code: z.string().describe(\"Error code if the operation was unsuccessful (e.g., 'ERR_DRIVER_NOT_FOUND')\").nullable().optional(),\n message: z.string().describe(\"Error message providing details about the issue\").nullable().optional(),\n success: z.boolean().describe(\"Indicates whether the operation was successful\").nullable(),\n}).passthrough().describe(\"Response schema for updating driver parameters.\");\n\nexport const optimorouteUpdateDriverParameters = action(\"OPTIMOROUTE_UPDATE_DRIVER_PARAMETERS\", {\n slug: \"optimoroute-update-driver-parameters\",\n name: \"Update Driver Parameters\",\n description: \"Tool to update driver parameters for a specific date including work times, vehicle assignment, and start/end locations. Use when you need to modify driver availability or routing constraints. Note that this unschedules existing routes for the driver on the specified date.\",\n input: OptimorouteUpdateDriverParametersInput,\n output: OptimorouteUpdateDriverParametersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yCAAyCA,IAAAA,EAAE,OAAO;CAC7D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CAC5D,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC1F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC5E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAA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C,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;AAC3F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAE3E,MAAa,oCAAoCC,eAAAA,OAAO,wCAAwC;CAC9F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"update-driver-parameters.cjs","names":["z","action"],"sources":["../../src/actions/update-driver-parameters.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { optimoroute } from \"../app\";\n\nexport const OptimorouteUpdateDriverParametersInput = z.object({\n date: z.string().describe(\"Target date in YYYY-MM-DD format\"),\n enabled: z.boolean().describe(\"Enable or disable driver for the specified date\").optional(),\n endAddress: z.string().describe(\"Ending location display address\").optional(),\n externalId: z.string().describe(\"Driver's external identifier from driver administration\"),\n workTimeTo: z.string().describe(\"End of work shift in HH:MM 24-hour format\").optional(),\n endLatitude: z.number().describe(\"Ending location latitude coordinate\").optional(),\n endLongitude: z.number().describe(\"Ending location longitude coordinate\").optional(),\n startAddress: z.string().describe(\"Starting location display address\").optional(),\n workTimeFrom: z.string().describe(\"Start of work shift in HH:MM 24-hour format\").optional(),\n startLatitude: z.number().describe(\"Starting location latitude coordinate\").optional(),\n startLongitude: z.number().describe(\"Starting location longitude coordinate\").optional(),\n assignedVehicle: z.string().describe(\"Vehicle external identifier to assign\").optional(),\n vehicleCapacity1: z.number().int().describe(\"Load capacity limit for dimension 1\").optional(),\n vehicleCapacity2: z.number().int().describe(\"Load capacity limit for dimension 2\").optional(),\n vehicleCapacity3: z.number().int().describe(\"Load capacity limit for dimension 3\").optional(),\n vehicleCapacity4: z.number().int().describe(\"Load capacity limit for dimension 4\").optional(),\n}).describe(\"Request parameters for updating driver parameters.\");\nexport const OptimorouteUpdateDriverParametersOutput = z.object({\n code: z.string().describe(\"Error code if the operation was unsuccessful (e.g., 'ERR_DRIVER_NOT_FOUND')\").nullable().optional(),\n message: z.string().describe(\"Error message providing details about the issue\").nullable().optional(),\n success: z.boolean().describe(\"Indicates whether the operation was successful\").nullable(),\n}).passthrough().describe(\"Response schema for updating driver parameters.\");\n\nexport const optimorouteUpdateDriverParameters: AppAction<\n typeof OptimorouteUpdateDriverParametersInput,\n typeof OptimorouteUpdateDriverParametersOutput,\n typeof optimoroute.credential\n> = action(\"OPTIMOROUTE_UPDATE_DRIVER_PARAMETERS\", {\n slug: \"optimoroute-update-driver-parameters\",\n name: \"Update Driver Parameters\",\n description: \"Tool to update driver parameters for a specific date including work times, vehicle assignment, and start/end locations. Use when you need to modify driver availability or routing constraints. Note that this unschedules existing routes for the driver on the specified date.\",\n input: OptimorouteUpdateDriverParametersInput,\n output: OptimorouteUpdateDriverParametersOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,yCAAyCA,IAAAA,EAAE,OAAO;CAC7D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CAC5D,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC1F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC5E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;CACzF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACtF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACjF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CACnF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAA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CAAC"}
@@ -1,3 +1,5 @@
1
+ import { optimoroute } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/update-driver-parameters.d.ts
@@ -24,36 +26,7 @@ declare const OptimorouteUpdateDriverParametersOutput: z.ZodObject<{
24
26
  message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
27
  success: z.ZodNullable<z.ZodBoolean>;
26
28
  }, z.core.$loose>;
27
- declare const optimorouteUpdateDriverParameters: import("@keystrokehq/action").WorkflowActionDefinition<{
28
- date: string;
29
- externalId: string;
30
- enabled?: boolean | undefined;
31
- endAddress?: string | undefined;
32
- workTimeTo?: string | undefined;
33
- endLatitude?: number | undefined;
34
- endLongitude?: number | undefined;
35
- startAddress?: string | undefined;
36
- workTimeFrom?: string | undefined;
37
- startLatitude?: number | undefined;
38
- startLongitude?: number | undefined;
39
- assignedVehicle?: string | undefined;
40
- vehicleCapacity1?: number | undefined;
41
- vehicleCapacity2?: number | undefined;
42
- vehicleCapacity3?: number | undefined;
43
- vehicleCapacity4?: number | undefined;
44
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"optimoroute", z.ZodObject<{
45
- connectionId: z.ZodString;
46
- entityId: z.ZodString;
47
- instanceId: z.ZodString;
48
- }, z.core.$strip>, z.ZodObject<{
49
- generic_api_key: z.ZodString;
50
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"optimoroute", z.ZodObject<{
51
- connectionId: z.ZodString;
52
- entityId: z.ZodString;
53
- instanceId: z.ZodString;
54
- }, z.core.$strip>, z.ZodObject<{
55
- generic_api_key: z.ZodString;
56
- }, z.core.$strip>>]>;
29
+ declare const optimorouteUpdateDriverParameters: AppAction<typeof OptimorouteUpdateDriverParametersInput, typeof OptimorouteUpdateDriverParametersOutput, typeof optimoroute.credential>;
57
30
  //#endregion
58
31
  export { optimorouteUpdateDriverParameters };
59
32
  //# sourceMappingURL=update-driver-parameters.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-driver-parameters.d.cts","names":[],"sources":["../../src/actions/update-driver-parameters.ts"],"mappings":";;;cAIa,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAkBtC,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;;;cAMvC,iCAAA,gCAAiC,wBAAA"}
1
+ {"version":3,"file":"update-driver-parameters.d.cts","names":[],"sources":["../../src/actions/update-driver-parameters.ts"],"mappings":";;;;;cAMa,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAkBtC,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;;;cAMvC,iCAAA,EAAmC,SAAA,QACvC,sCAAA,SACA,uCAAA,SACA,WAAA,CAAY,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { optimoroute } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/update-driver-parameters.d.ts
@@ -24,36 +26,7 @@ declare const OptimorouteUpdateDriverParametersOutput: z.ZodObject<{
24
26
  message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
27
  success: z.ZodNullable<z.ZodBoolean>;
26
28
  }, z.core.$loose>;
27
- declare const optimorouteUpdateDriverParameters: import("@keystrokehq/action").WorkflowActionDefinition<{
28
- date: string;
29
- externalId: string;
30
- enabled?: boolean | undefined;
31
- endAddress?: string | undefined;
32
- workTimeTo?: string | undefined;
33
- endLatitude?: number | undefined;
34
- endLongitude?: number | undefined;
35
- startAddress?: string | undefined;
36
- workTimeFrom?: string | undefined;
37
- startLatitude?: number | undefined;
38
- startLongitude?: number | undefined;
39
- assignedVehicle?: string | undefined;
40
- vehicleCapacity1?: number | undefined;
41
- vehicleCapacity2?: number | undefined;
42
- vehicleCapacity3?: number | undefined;
43
- vehicleCapacity4?: number | undefined;
44
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"optimoroute", z.ZodObject<{
45
- connectionId: z.ZodString;
46
- entityId: z.ZodString;
47
- instanceId: z.ZodString;
48
- }, z.core.$strip>, z.ZodObject<{
49
- generic_api_key: z.ZodString;
50
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"optimoroute", z.ZodObject<{
51
- connectionId: z.ZodString;
52
- entityId: z.ZodString;
53
- instanceId: z.ZodString;
54
- }, z.core.$strip>, z.ZodObject<{
55
- generic_api_key: z.ZodString;
56
- }, z.core.$strip>>]>;
29
+ declare const optimorouteUpdateDriverParameters: AppAction<typeof OptimorouteUpdateDriverParametersInput, typeof OptimorouteUpdateDriverParametersOutput, typeof optimoroute.credential>;
57
30
  //#endregion
58
31
  export { optimorouteUpdateDriverParameters };
59
32
  //# sourceMappingURL=update-driver-parameters.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-driver-parameters.d.mts","names":[],"sources":["../../src/actions/update-driver-parameters.ts"],"mappings":";;;cAIa,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAkBtC,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;;;cAMvC,iCAAA,gCAAiC,wBAAA"}
1
+ {"version":3,"file":"update-driver-parameters.d.mts","names":[],"sources":["../../src/actions/update-driver-parameters.ts"],"mappings":";;;;;cAMa,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAkBtC,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;;;cAMvC,iCAAA,EAAmC,SAAA,QACvC,sCAAA,SACA,uCAAA,SACA,WAAA,CAAY,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const optimorouteUpdateDriverParameters = action("OPTIMOROUTE_UPDATE_DRIVER_PARAMETERS", {
@@ -1 +1 @@
1
- {"version":3,"file":"update-driver-parameters.mjs","names":[],"sources":["../../src/actions/update-driver-parameters.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OptimorouteUpdateDriverParametersInput = z.object({\n date: z.string().describe(\"Target date in YYYY-MM-DD format\"),\n enabled: z.boolean().describe(\"Enable or disable driver for the specified date\").optional(),\n endAddress: z.string().describe(\"Ending location display address\").optional(),\n externalId: z.string().describe(\"Driver's external identifier from driver administration\"),\n workTimeTo: z.string().describe(\"End of work shift in HH:MM 24-hour format\").optional(),\n endLatitude: z.number().describe(\"Ending location latitude coordinate\").optional(),\n endLongitude: z.number().describe(\"Ending location longitude coordinate\").optional(),\n startAddress: z.string().describe(\"Starting location display address\").optional(),\n workTimeFrom: z.string().describe(\"Start of work shift in HH:MM 24-hour format\").optional(),\n startLatitude: z.number().describe(\"Starting location latitude coordinate\").optional(),\n startLongitude: z.number().describe(\"Starting location longitude coordinate\").optional(),\n assignedVehicle: z.string().describe(\"Vehicle external identifier to assign\").optional(),\n vehicleCapacity1: z.number().int().describe(\"Load capacity limit for dimension 1\").optional(),\n vehicleCapacity2: z.number().int().describe(\"Load capacity limit for dimension 2\").optional(),\n vehicleCapacity3: z.number().int().describe(\"Load capacity limit for dimension 3\").optional(),\n vehicleCapacity4: z.number().int().describe(\"Load capacity limit for dimension 4\").optional(),\n}).describe(\"Request parameters for updating driver parameters.\");\nexport const OptimorouteUpdateDriverParametersOutput = z.object({\n code: z.string().describe(\"Error code if the operation was unsuccessful (e.g., 'ERR_DRIVER_NOT_FOUND')\").nullable().optional(),\n message: z.string().describe(\"Error message providing details about the issue\").nullable().optional(),\n success: z.boolean().describe(\"Indicates whether the operation was successful\").nullable(),\n}).passthrough().describe(\"Response schema for updating driver parameters.\");\n\nexport const optimorouteUpdateDriverParameters = action(\"OPTIMOROUTE_UPDATE_DRIVER_PARAMETERS\", {\n slug: \"optimoroute-update-driver-parameters\",\n name: \"Update Driver Parameters\",\n description: \"Tool to update driver parameters for a specific date including work times, vehicle assignment, and start/end locations. Use when you need to modify driver availability or routing constraints. Note that this unschedules existing routes for the driver on the specified date.\",\n input: OptimorouteUpdateDriverParametersInput,\n output: OptimorouteUpdateDriverParametersOutput,\n});\n"],"mappings":";;AA4BA,MAAa,oCAAoC,OAAO,wCAAwC;CAC9F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA5BoD,EAAE,OAAO;EAC7D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;EAC5D,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;EAC1F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EAC5E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;EACzF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;EACtF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EACjF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;EACnF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EAChF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;EAC1F,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;EACrF,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;EACvF,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;EACvF,kBAAkB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EAC5F,kBAAkB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EAC5F,kBAAkB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EAC5F,kBAAkB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC9F,CAAC,CAAC,CAAC,SAAS,oDAWH;CACP,QAXqD,EAAE,OAAO;EAC9D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7H,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpG,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CAC3F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"update-driver-parameters.mjs","names":[],"sources":["../../src/actions/update-driver-parameters.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { optimoroute } from \"../app\";\n\nexport const OptimorouteUpdateDriverParametersInput = z.object({\n date: z.string().describe(\"Target date in YYYY-MM-DD format\"),\n enabled: z.boolean().describe(\"Enable or disable driver for the specified date\").optional(),\n endAddress: z.string().describe(\"Ending location display address\").optional(),\n externalId: z.string().describe(\"Driver's external identifier from driver administration\"),\n workTimeTo: z.string().describe(\"End of work shift in HH:MM 24-hour format\").optional(),\n endLatitude: z.number().describe(\"Ending location latitude coordinate\").optional(),\n endLongitude: z.number().describe(\"Ending location longitude coordinate\").optional(),\n startAddress: z.string().describe(\"Starting location display address\").optional(),\n workTimeFrom: z.string().describe(\"Start of work shift in HH:MM 24-hour format\").optional(),\n startLatitude: z.number().describe(\"Starting location latitude coordinate\").optional(),\n startLongitude: z.number().describe(\"Starting location longitude coordinate\").optional(),\n assignedVehicle: z.string().describe(\"Vehicle external identifier to assign\").optional(),\n vehicleCapacity1: z.number().int().describe(\"Load capacity limit for dimension 1\").optional(),\n vehicleCapacity2: z.number().int().describe(\"Load capacity limit for dimension 2\").optional(),\n vehicleCapacity3: z.number().int().describe(\"Load capacity limit for dimension 3\").optional(),\n vehicleCapacity4: z.number().int().describe(\"Load capacity limit for dimension 4\").optional(),\n}).describe(\"Request parameters for updating driver parameters.\");\nexport const OptimorouteUpdateDriverParametersOutput = z.object({\n code: z.string().describe(\"Error code if the operation was unsuccessful (e.g., 'ERR_DRIVER_NOT_FOUND')\").nullable().optional(),\n message: z.string().describe(\"Error message providing details about the issue\").nullable().optional(),\n success: z.boolean().describe(\"Indicates whether the operation was successful\").nullable(),\n}).passthrough().describe(\"Response schema for updating driver parameters.\");\n\nexport const optimorouteUpdateDriverParameters: AppAction<\n typeof OptimorouteUpdateDriverParametersInput,\n typeof OptimorouteUpdateDriverParametersOutput,\n typeof optimoroute.credential\n> = action(\"OPTIMOROUTE_UPDATE_DRIVER_PARAMETERS\", {\n slug: \"optimoroute-update-driver-parameters\",\n name: \"Update Driver Parameters\",\n description: \"Tool to update driver parameters for a specific date including work times, vehicle assignment, and start/end locations. Use when you need to modify driver availability or routing constraints. Note that this unschedules existing routes for the driver on the specified date.\",\n input: OptimorouteUpdateDriverParametersInput,\n output: OptimorouteUpdateDriverParametersOutput,\n});\n"],"mappings":";;;AA8BA,MAAa,oCAIT,OAAO,wCAAwC;CACjD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhCoD,EAAE,OAAO;EAC7D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;EAC5D,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;EAC1F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EAC5E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;EACzF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,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@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/update-drivers-parameters.ts
@@ -1 +1 @@
1
- {"version":3,"file":"update-drivers-parameters.cjs","names":["z","action"],"sources":["../../src/actions/update-drivers-parameters.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OptimorouteUpdateDriversParametersInput = z.object({\n updates: z.array(z.object({\n date: z.string().describe(\"Date in YYYY-MM-DD format\"),\n driver: z.object({\n serial: z.string().describe(\"OptimoRoute-assigned driver serial number\").optional(),\n externalId: z.string().describe(\"User-assigned external identifier for the driver\").optional(),\n}).describe(\"Driver identifier (serial or externalId must be provided)\"),\n enabled: z.boolean().describe(\"Enable or disable driver for the specified date\").optional(),\n workTime: z.object({\n to: z.string().describe(\"End time in 24-hour format (HH:MM)\"),\n from: z.string().describe(\"Start time in 24-hour format (HH:MM)\"),\n}).describe(\"Driver's work hours configuration for the specified date.\").optional(),\n endLocation: z.object({\n type: z.string().describe(\"Location type: 'custom', 'employeeDefault', or 'startLocation'\"),\n address: z.string().describe(\"Location address for reports\").optional(),\n latitude: z.number().describe(\"GPS latitude (required when type is 'custom')\").optional(),\n longitude: z.number().describe(\"GPS longitude (required when type is 'custom')\").optional(),\n}).describe(\"Location configuration for driver start or end location.\").optional(),\n startLocation: z.object({\n type: z.string().describe(\"Location type: 'custom', 'employeeDefault', or 'startLocation'\"),\n address: z.string().describe(\"Location address for reports\").optional(),\n latitude: z.number().describe(\"GPS latitude (required when type is 'custom')\").optional(),\n longitude: z.number().describe(\"GPS longitude (required when type is 'custom')\").optional(),\n}).describe(\"Location configuration for driver start or end location.\").optional(),\n assignedVehicle: z.object({\n externalId: z.string().describe(\"User-assigned external identifier for the vehicle\").optional(),\n registration: z.string().describe(\"Vehicle registration number\").optional(),\n}).describe(\"Identifier for a vehicle using registration or externalId.\").optional(),\n vehicleCapacity1: z.number().int().describe(\"Load capacity value 1 for the vehicle\").optional(),\n vehicleCapacity2: z.number().int().describe(\"Load capacity value 2 for the vehicle\").optional(),\n vehicleCapacity3: z.number().int().describe(\"Load capacity value 3 for the vehicle\").optional(),\n vehicleCapacity4: z.number().int().describe(\"Load capacity value 4 for the vehicle\").optional(),\n}).passthrough().describe(\"Parameters to update for a single driver on a specific date.\")).describe(\"Array of driver parameter update objects (max 500)\"),\n}).describe(\"Request parameters for updating multiple drivers' parameters in bulk.\");\nconst OptimorouteUpdateDriversParameters_DriverIdentifierSchema = z.object({\n serial: z.string().describe(\"OptimoRoute-assigned driver serial number\").nullable().optional(),\n externalId: z.string().describe(\"User-assigned external identifier for the driver\").nullable().optional(),\n}).passthrough().describe(\"Identifier for a driver using either serial or externalId.\");\nconst OptimorouteUpdateDriversParameters_DriverUpdateResultSchema = z.object({\n code: z.string().describe(\"Error code if the update was unsuccessful (e.g., ERR_DRIVER_NOT_FOUND)\").nullable().optional(),\n date: z.string().describe(\"Associated date in YYYY-MM-DD format\").nullable().optional(),\n driver: OptimorouteUpdateDriversParameters_DriverIdentifierSchema.nullable().optional(),\n message: z.string().describe(\"Error description if the update was unsuccessful\").nullable().optional(),\n success: z.boolean().describe(\"Success status for this specific driver update\").nullable(),\n}).passthrough().describe(\"Result of a single driver parameter update attempt.\");\nexport const OptimorouteUpdateDriversParametersOutput = z.object({\n success: z.boolean().describe(\"True if at least one update operation succeeded\").nullable(),\n parameters: z.array(OptimorouteUpdateDriversParameters_DriverUpdateResultSchema).describe(\"Array of driver update result objects\"),\n}).passthrough().describe(\"Response schema for updating drivers' parameters.\");\n\nexport const optimorouteUpdateDriversParameters = action(\"OPTIMOROUTE_UPDATE_DRIVERS_PARAMETERS\", {\n slug: \"optimoroute-update-drivers-parameters\",\n name: \"Update Drivers Parameters\",\n description: \"Tool to update parameters of multiple drivers for specified dates in bulk (max 500 per request). Use when you need to modify driver configuration including work hours, vehicle assignments, and location settings. Note: Existing routes for the specified drivers and dates will be unscheduled.\",\n input: Optimorou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C,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4DAA4D;AACtF,MAAM,8DAA8DA,IAAAA,EAAE,OAAO;CAC3E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxH,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,QAAQ,0DAA0D,SAAS,CAAC,CAAC,SAAS;CACtF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;AAC3F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAC/E,MAAa,2CAA2CA,IAAAA,EAAE,OAAO;CAC/D,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC1F,YAAYA,IAAAA,EAAE,MAAM,2DAA2D,CAAC,CAAC,SAAS,uCAAuC;AACnI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAE7E,MAAa,qCAAqCC,eAAAA,OAAO,yCAAyC;CAChG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"update-drivers-parameters.cjs","names":["z","action"],"sources":["../../src/actions/update-drivers-parameters.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { optimoroute } from \"../app\";\n\nexport const OptimorouteUpdateDriversParametersInput = z.object({\n updates: z.array(z.object({\n date: z.string().describe(\"Date in YYYY-MM-DD format\"),\n driver: z.object({\n serial: z.string().describe(\"OptimoRoute-assigned driver serial number\").optional(),\n externalId: z.string().describe(\"User-assigned external identifier for the driver\").optional(),\n}).describe(\"Driver identifier (serial or externalId must be provided)\"),\n enabled: z.boolean().describe(\"Enable or disable driver for the specified date\").optional(),\n workTime: z.object({\n to: z.string().describe(\"End time in 24-hour format (HH:MM)\"),\n from: z.string().describe(\"Start time in 24-hour format (HH:MM)\"),\n}).describe(\"Driver's work hours configuration for the specified date.\").optional(),\n endLocation: z.object({\n type: z.string().describe(\"Location type: 'custom', 'employeeDefault', or 'startLocation'\"),\n address: z.string().describe(\"Location address for reports\").optional(),\n latitude: z.number().describe(\"GPS latitude (required when type is 'custom')\").optional(),\n longitude: z.number().describe(\"GPS longitude (required when type is 'custom')\").optional(),\n}).describe(\"Location configuration for driver start or end location.\").optional(),\n startLocation: z.object({\n type: z.string().describe(\"Location type: 'custom', 'employeeDefault', or 'startLocation'\"),\n address: z.string().describe(\"Location address for reports\").optional(),\n latitude: z.number().describe(\"GPS latitude (required when type is 'custom')\").optional(),\n longitude: z.number().describe(\"GPS longitude (required when type is 'custom')\").optional(),\n}).describe(\"Location configuration for driver start or end location.\").optional(),\n assignedVehicle: z.object({\n externalId: z.string().describe(\"User-assigned external identifier for the vehicle\").optional(),\n registration: z.string().describe(\"Vehicle registration number\").optional(),\n}).describe(\"Identifier for a vehicle using registration or externalId.\").optional(),\n vehicleCapacity1: z.number().int().describe(\"Load capacity value 1 for the vehicle\").optional(),\n vehicleCapacity2: z.number().int().describe(\"Load capacity value 2 for the vehicle\").optional(),\n vehicleCapacity3: z.number().int().describe(\"Load capacity value 3 for the vehicle\").optional(),\n vehicleCapacity4: z.number().int().describe(\"Load capacity value 4 for the vehicle\").optional(),\n}).passthrough().describe(\"Parameters to update for a single driver on a specific date.\")).describe(\"Array of driver parameter update objects (max 500)\"),\n}).describe(\"Request parameters for updating multiple drivers' parameters in bulk.\");\nconst OptimorouteUpdateDriversParameters_DriverIdentifierSchema = z.object({\n serial: z.string().describe(\"OptimoRoute-assigned driver serial number\").nullable().optional(),\n externalId: z.string().describe(\"User-assigned external identifier for the driver\").nullable().optional(),\n}).passthrough().describe(\"Identifier for a driver using either serial or externalId.\");\nconst OptimorouteUpdateDriversParameters_DriverUpdateResultSchema = z.object({\n code: z.string().describe(\"Error code if the update was unsuccessful (e.g., ERR_DRIVER_NOT_FOUND)\").nullable().optional(),\n date: z.string().describe(\"Associated date in YYYY-MM-DD format\").nullable().optional(),\n driver: OptimorouteUpdateDriversParameters_DriverIdentifierSchema.nullable().optional(),\n message: z.string().describe(\"Error description if the update was unsuccessful\").nullable().optional(),\n success: z.boolean().describe(\"Success status for this specific driver update\").nullable(),\n}).passthrough().describe(\"Result of a single driver parameter update attempt.\");\nexport const OptimorouteUpdateDriversParametersOutput = z.object({\n success: z.boolean().describe(\"True if at least one update operation succeeded\").nullable(),\n parameters: z.array(OptimorouteUpdateDriversParameters_DriverUpdateResultSchema).describe(\"Array of driver update result objects\"),\n}).passthrough().describe(\"Response schema for updating drivers' parameters.\");\n\nexport const optimorouteUpdateDriversParameters: AppAction<\n typeof OptimorouteUpdateDriversParametersInput,\n typeof OptimorouteUpdateDriversParametersOutput,\n typeof optimoroute.credential\n> = action(\"OPTIMOROUTE_UPDATE_DRIVERS_PARAMETERS\", {\n slug: \"optimoroute-update-drivers-parameters\",\n name: \"Update Drivers Parameters\",\n description: \"Tool to update parameters of multiple drivers for specified dates in bulk (max 500 per request). Use when you need to modify driver configuration including work hours, vehicle assignments, and location settings. Note: Existing routes for the specified drivers and dates will be unscheduled.\",\n input: OptimorouteUpdateDriversParametersInput,\n output: OptimorouteUpdateDriversParametersOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,0CAA0CA,IAAAA,EAAE,OAAO,EAC9D,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;CAC1B,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CACrD,QAAQA,IAAAA,EAAE,OAAO;EAC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,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,QAAQ,0DAA0D,SAAS,CAAC,CAAC,SAAS;CACtF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;AAC3F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAC/E,MAAa,2CAA2CA,IAAAA,EAAE,OAAO;CAC/D,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC1F,YAAYA,IAAAA,EAAE,MAAM,2DAA2D,CAAC,CAAC,SAAS,uCAAuC;AACnI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAE7E,MAAa,qCAITC,eAAAA,OAAO,yCAAyC;CAClD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { optimoroute } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/update-drivers-parameters.d.ts
@@ -48,53 +50,7 @@ declare const OptimorouteUpdateDriversParametersOutput: z.ZodObject<{
48
50
  success: z.ZodNullable<z.ZodBoolean>;
49
51
  }, z.core.$loose>>;
50
52
  }, z.core.$loose>;
51
- declare const optimorouteUpdateDriversParameters: import("@keystrokehq/action").WorkflowActionDefinition<{
52
- updates: {
53
- [x: string]: unknown;
54
- date: string;
55
- driver: {
56
- serial?: string | undefined;
57
- externalId?: string | undefined;
58
- };
59
- enabled?: boolean | undefined;
60
- workTime?: {
61
- to: string;
62
- from: string;
63
- } | undefined;
64
- endLocation?: {
65
- type: string;
66
- address?: string | undefined;
67
- latitude?: number | undefined;
68
- longitude?: number | undefined;
69
- } | undefined;
70
- startLocation?: {
71
- type: string;
72
- address?: string | undefined;
73
- latitude?: number | undefined;
74
- longitude?: number | undefined;
75
- } | undefined;
76
- assignedVehicle?: {
77
- externalId?: string | undefined;
78
- registration?: string | undefined;
79
- } | undefined;
80
- vehicleCapacity1?: number | undefined;
81
- vehicleCapacity2?: number | undefined;
82
- vehicleCapacity3?: number | undefined;
83
- vehicleCapacity4?: number | undefined;
84
- }[];
85
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"optimoroute", z.ZodObject<{
86
- connectionId: z.ZodString;
87
- entityId: z.ZodString;
88
- instanceId: z.ZodString;
89
- }, z.core.$strip>, z.ZodObject<{
90
- generic_api_key: z.ZodString;
91
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"optimoroute", z.ZodObject<{
92
- connectionId: z.ZodString;
93
- entityId: z.ZodString;
94
- instanceId: z.ZodString;
95
- }, z.core.$strip>, z.ZodObject<{
96
- generic_api_key: z.ZodString;
97
- }, z.core.$strip>>]>;
53
+ declare const optimorouteUpdateDriversParameters: AppAction<typeof OptimorouteUpdateDriversParametersInput, typeof OptimorouteUpdateDriversParametersOutput, typeof optimoroute.credential>;
98
54
  //#endregion
99
55
  export { optimorouteUpdateDriversParameters };
100
56
  //# sourceMappingURL=update-drivers-parameters.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-drivers-parameters.d.cts","names":[],"sources":["../../src/actions/update-drivers-parameters.ts"],"mappings":";;;cAIa,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA6CvC,wCAAA,EAAwC,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAKxC,kCAAA,gCAAkC,wBAAA"}
1
+ {"version":3,"file":"update-drivers-parameters.d.cts","names":[],"sources":["../../src/actions/update-drivers-parameters.ts"],"mappings":";;;;;cAMa,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA6CvC,wCAAA,EAAwC,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAKxC,kCAAA,EAAoC,SAAA,QACxC,uCAAA,SACA,wCAAA,SACA,WAAA,CAAY,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { optimoroute } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/update-drivers-parameters.d.ts
@@ -48,53 +50,7 @@ declare const OptimorouteUpdateDriversParametersOutput: z.ZodObject<{
48
50
  success: z.ZodNullable<z.ZodBoolean>;
49
51
  }, z.core.$loose>>;
50
52
  }, z.core.$loose>;
51
- declare const optimorouteUpdateDriversParameters: import("@keystrokehq/action").WorkflowActionDefinition<{
52
- updates: {
53
- [x: string]: unknown;
54
- date: string;
55
- driver: {
56
- serial?: string | undefined;
57
- externalId?: string | undefined;
58
- };
59
- enabled?: boolean | undefined;
60
- workTime?: {
61
- to: string;
62
- from: string;
63
- } | undefined;
64
- endLocation?: {
65
- type: string;
66
- address?: string | undefined;
67
- latitude?: number | undefined;
68
- longitude?: number | undefined;
69
- } | undefined;
70
- startLocation?: {
71
- type: string;
72
- address?: string | undefined;
73
- latitude?: number | undefined;
74
- longitude?: number | undefined;
75
- } | undefined;
76
- assignedVehicle?: {
77
- externalId?: string | undefined;
78
- registration?: string | undefined;
79
- } | undefined;
80
- vehicleCapacity1?: number | undefined;
81
- vehicleCapacity2?: number | undefined;
82
- vehicleCapacity3?: number | undefined;
83
- vehicleCapacity4?: number | undefined;
84
- }[];
85
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"optimoroute", z.ZodObject<{
86
- connectionId: z.ZodString;
87
- entityId: z.ZodString;
88
- instanceId: z.ZodString;
89
- }, z.core.$strip>, z.ZodObject<{
90
- generic_api_key: z.ZodString;
91
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"optimoroute", z.ZodObject<{
92
- connectionId: z.ZodString;
93
- entityId: z.ZodString;
94
- instanceId: z.ZodString;
95
- }, z.core.$strip>, z.ZodObject<{
96
- generic_api_key: z.ZodString;
97
- }, z.core.$strip>>]>;
53
+ declare const optimorouteUpdateDriversParameters: AppAction<typeof OptimorouteUpdateDriversParametersInput, typeof OptimorouteUpdateDriversParametersOutput, typeof optimoroute.credential>;
98
54
  //#endregion
99
55
  export { optimorouteUpdateDriversParameters };
100
56
  //# sourceMappingURL=update-drivers-parameters.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-drivers-parameters.d.mts","names":[],"sources":["../../src/actions/update-drivers-parameters.ts"],"mappings":";;;cAIa,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA6CvC,wCAAA,EAAwC,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAKxC,kCAAA,gCAAkC,wBAAA"}
1
+ {"version":3,"file":"update-drivers-parameters.d.mts","names":[],"sources":["../../src/actions/update-drivers-parameters.ts"],"mappings":";;;;;cAMa,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA6CvC,wCAAA,EAAwC,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAKxC,kCAAA,EAAoC,SAAA,QACxC,uCAAA,SACA,wCAAA,SACA,WAAA,CAAY,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/update-drivers-parameters.ts
@@ -1 +1 @@
1
- {"version":3,"file":"update-drivers-parameters.mjs","names":[],"sources":["../../src/actions/update-drivers-parameters.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OptimorouteUpdateDriversParametersInput = z.object({\n updates: z.array(z.object({\n date: z.string().describe(\"Date in YYYY-MM-DD format\"),\n driver: z.object({\n serial: z.string().describe(\"OptimoRoute-assigned driver serial number\").optional(),\n externalId: z.string().describe(\"User-assigned external identifier for the driver\").optional(),\n}).describe(\"Driver identifier (serial or externalId must be provided)\"),\n enabled: z.boolean().describe(\"Enable or disable driver for the specified date\").optional(),\n workTime: z.object({\n to: z.string().describe(\"End time in 24-hour format (HH:MM)\"),\n from: z.string().describe(\"Start time in 24-hour format (HH:MM)\"),\n}).describe(\"Driver's work hours configuration for the specified date.\").optional(),\n endLocation: z.object({\n type: z.string().describe(\"Location type: 'custom', 'employeeDefault', or 'startLocation'\"),\n address: z.string().describe(\"Location address for reports\").optional(),\n latitude: z.number().describe(\"GPS latitude (required when type is 'custom')\").optional(),\n longitude: z.number().describe(\"GPS longitude (required when type is 'custom')\").optional(),\n}).describe(\"Location configuration for driver start or end location.\").optional(),\n startLocation: z.object({\n type: z.string().describe(\"Location type: 'custom', 'employeeDefault', or 'startLocation'\"),\n address: z.string().describe(\"Location address for reports\").optional(),\n latitude: z.number().describe(\"GPS latitude (required when type is 'custom')\").optional(),\n longitude: z.number().describe(\"GPS longitude (required when type is 'custom')\").optional(),\n}).describe(\"Location configuration for driver start or end location.\").optional(),\n assignedVehicle: z.object({\n externalId: z.string().describe(\"User-assigned external identifier for the vehicle\").optional(),\n registration: z.string().describe(\"Vehicle registration number\").optional(),\n}).describe(\"Identifier for a vehicle using registration or externalId.\").optional(),\n vehicleCapacity1: z.number().int().describe(\"Load capacity value 1 for the vehicle\").optional(),\n vehicleCapacity2: z.number().int().describe(\"Load capacity value 2 for the vehicle\").optional(),\n vehicleCapacity3: z.number().int().describe(\"Load capacity value 3 for the vehicle\").optional(),\n vehicleCapacity4: z.number().int().describe(\"Load capacity value 4 for the vehicle\").optional(),\n}).passthrough().describe(\"Parameters to update for a single driver on a specific date.\")).describe(\"Array of driver parameter update objects (max 500)\"),\n}).describe(\"Request parameters for updating multiple drivers' parameters in bulk.\");\nconst OptimorouteUpdateDriversParameters_DriverIdentifierSchema = z.object({\n serial: z.string().describe(\"OptimoRoute-assigned driver serial number\").nullable().optional(),\n externalId: z.string().describe(\"User-assigned external identifier for the driver\").nullable().optional(),\n}).passthrough().describe(\"Identifier for a driver using either serial or externalId.\");\nconst OptimorouteUpdateDriversParameters_DriverUpdateResultSchema = z.object({\n code: z.string().describe(\"Error code if the update was unsuccessful (e.g., ERR_DRIVER_NOT_FOUND)\").nullable().optional(),\n date: z.string().describe(\"Associated date in YYYY-MM-DD format\").nullable().optional(),\n driver: OptimorouteUpdateDriversParameters_DriverIdentifierSchema.nullable().optional(),\n message: z.string().describe(\"Error description if the update was unsuccessful\").nullable().optional(),\n success: z.boolean().describe(\"Success status for this specific driver update\").nullable(),\n}).passthrough().describe(\"Result of a single driver parameter update attempt.\");\nexport const OptimorouteUpdateDriversParametersOutput = z.object({\n success: z.boolean().describe(\"True if at least one update operation succeeded\").nullable(),\n parameters: z.array(OptimorouteUpdateDriversParameters_DriverUpdateResultSchema).describe(\"Array of driver update result objects\"),\n}).passthrough().describe(\"Response schema for updating drivers' parameters.\");\n\nexport const optimorouteUpdateDriversParameters = action(\"OPTIMOROUTE_UPDATE_DRIVERS_PARAMETERS\", {\n slug: \"optimoroute-update-drivers-parameters\",\n name: \"Update Drivers Parameters\",\n description: \"Tool to update parameters of multiple drivers for specified dates in bulk (max 500 per request). Use when you need to modify driver configuration including work hours, vehicle assignments, and location settings. Note: Existing routes for the specified drivers and dates will be unscheduled.\",\n input: OptimorouteUpdateDriversParametersInput,\n output: OptimorouteUpdateDriversParametersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0CAA0C,EAAE,OAAO,EAC9D,SAAS,EAAE,MAAM,EAAE,OAAO;CAC1B,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CACrD,QAAQ,EAAE,OAAO;EACjB,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;EAClF,YAAY,EAAE,OAAO,CAAC,CAAC,SA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CAAqC,OAAO,yCAAyC;CAChG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVsD,EAAE,OAAO;EAC/D,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;EAC1F,YAAY,EAAE,MAAM,2DAA2D,CAAC,CAAC,SAAS,uCAAuC;CACnI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"update-drivers-parameters.mjs","names":[],"sources":["../../src/actions/update-drivers-parameters.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { optimoroute } from \"../app\";\n\nexport const OptimorouteUpdateDriversParametersInput = z.object({\n updates: z.array(z.object({\n date: z.string().describe(\"Date in YYYY-MM-DD format\"),\n driver: z.object({\n serial: z.string().describe(\"OptimoRoute-assigned driver serial number\").optional(),\n externalId: z.string().describe(\"User-assigned external identifier for the driver\").optional(),\n}).describe(\"Driver identifier (serial or externalId must be provided)\"),\n enabled: z.boolean().describe(\"Enable or disable driver for the specified date\").optional(),\n workTime: z.object({\n to: z.string().describe(\"End time in 24-hour format (HH:MM)\"),\n from: z.string().describe(\"Start time in 24-hour format (HH:MM)\"),\n}).describe(\"Driver's work hours configuration for the specified date.\").optional(),\n endLocation: z.object({\n type: z.string().describe(\"Location type: 'custom', 'employeeDefault', or 'startLocation'\"),\n address: z.string().describe(\"Location address for reports\").optional(),\n latitude: z.number().describe(\"GPS latitude (required when type is 'custom')\").optional(),\n longitude: z.number().describe(\"GPS longitude (required when type is 'custom')\").optional(),\n}).describe(\"Location configuration for driver start or end location.\").optional(),\n startLocation: z.object({\n type: z.string().describe(\"Location type: 'custom', 'employeeDefault', or 'startLocation'\"),\n address: z.string().describe(\"Location address for reports\").optional(),\n latitude: z.number().describe(\"GPS latitude (required when type is 'custom')\").optional(),\n longitude: z.number().describe(\"GPS longitude (required when type is 'custom')\").optional(),\n}).describe(\"Location configuration for driver start or end location.\").optional(),\n assignedVehicle: z.object({\n externalId: z.string().describe(\"User-assigned external identifier for the vehicle\").optional(),\n registration: z.string().describe(\"Vehicle registration number\").optional(),\n}).describe(\"Identifier for a vehicle using registration or externalId.\").optional(),\n vehicleCapacity1: z.number().int().describe(\"Load capacity value 1 for the vehicle\").optional(),\n vehicleCapacity2: z.number().int().describe(\"Load capacity value 2 for the vehicle\").optional(),\n vehicleCapacity3: z.number().int().describe(\"Load capacity value 3 for the vehicle\").optional(),\n vehicleCapacity4: z.number().int().describe(\"Load capacity value 4 for the vehicle\").optional(),\n}).passthrough().describe(\"Parameters to update for a single driver on a specific date.\")).describe(\"Array of driver parameter update objects (max 500)\"),\n}).describe(\"Request parameters for updating multiple drivers' parameters in bulk.\");\nconst OptimorouteUpdateDriversParameters_DriverIdentifierSchema = z.object({\n serial: z.string().describe(\"OptimoRoute-assigned driver serial number\").nullable().optional(),\n externalId: z.string().describe(\"User-assigned external identifier for the driver\").nullable().optional(),\n}).passthrough().describe(\"Identifier for a driver using either serial or externalId.\");\nconst OptimorouteUpdateDriversParameters_DriverUpdateResultSchema = z.object({\n code: z.string().describe(\"Error code if the update was unsuccessful (e.g., ERR_DRIVER_NOT_FOUND)\").nullable().optional(),\n date: z.string().describe(\"Associated date in YYYY-MM-DD format\").nullable().optional(),\n driver: OptimorouteUpdateDriversParameters_DriverIdentifierSchema.nullable().optional(),\n message: z.string().describe(\"Error description if the update was unsuccessful\").nullable().optional(),\n success: z.boolean().describe(\"Success status for this specific driver update\").nullable(),\n}).passthrough().describe(\"Result of a single driver parameter update attempt.\");\nexport const OptimorouteUpdateDriversParametersOutput = z.object({\n success: z.boolean().describe(\"True if at least one update operation succeeded\").nullable(),\n parameters: z.array(OptimorouteUpdateDriversParameters_DriverUpdateResultSchema).describe(\"Array of driver update result objects\"),\n}).passthrough().describe(\"Response schema for updating drivers' parameters.\");\n\nexport const optimorouteUpdateDriversParameters: AppAction<\n typeof OptimorouteUpdateDriversParametersInput,\n typeof OptimorouteUpdateDriversParametersOutput,\n typeof optimoroute.credential\n> = action(\"OPTIMOROUTE_UPDATE_DRIVERS_PARAMETERS\", {\n slug: \"optimoroute-update-drivers-parameters\",\n name: \"Update Drivers Parameters\",\n description: \"Tool to update parameters of multiple drivers for specified dates in bulk (max 500 per request). Use when you need to modify driver configuration including work hours, vehicle assignments, and location settings. Note: Existing routes for the specified drivers and dates will be unscheduled.\",\n input: OptimorouteUpdateDriversParametersInput,\n output: OptimorouteUpdateDriversParametersOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,0CAA0C,EAAE,OAAO,EAC9D,SAAS,EAAE,MAAM,EAAE,OAAO;CAC1B,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CACrD,QAAQ,EAAE,OAAO;EACjB,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;EAClF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CAC/F,CAAC,CAAC,CAAC,SAAS,2DAA2D;CACrE,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC1F,UAAU,EAAE,OAAO;EACnB,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;EAC5D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CAClE,CAAC,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CAChF,aAAa,EAAE,OAAO;EACtB,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE;EAC1F,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;EACtE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;EACxF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS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;CAC7F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4DAA4D;AACtF,MAAM,8DAA8D,EAAE,OAAO;CAC3E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxH,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,QAAQ,0DAA0D,SAAS,CAAC,CAAC,SAAS;CACtF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;AAC3F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAM/E,MAAa,qCAIT,OAAO,yCAAyC;CAClD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAdsD,EAAE,OAAO;EAC/D,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;EAC1F,YAAY,EAAE,MAAM,2DAA2D,CAAC,CAAC,SAAS,uCAAuC;CACnI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAWhB;AACV,CAAC"}
package/dist/app.cjs CHANGED
@@ -1,10 +1,10 @@
1
1
  let _keystrokehq_keystroke_app = require("@keystrokehq/keystroke/app");
2
- let zod = require("zod");
3
2
  //#region src/app.ts
3
+ const credential = { generic_api_key: require("zod").z.string() };
4
4
  const optimoroute = (0, _keystrokehq_keystroke_app.defineApp)({
5
5
  slug: "optimoroute",
6
6
  auth: "keystroke",
7
- credential: { generic_api_key: zod.z.string() }
7
+ credential
8
8
  });
9
9
  //#endregion
10
10
  exports.optimoroute = optimoroute;
package/dist/app.cjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"app.cjs","names":["z"],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nexport const optimoroute = defineApp({\n slug: \"optimoroute\",\n auth: \"keystroke\",\n credential: {\n generic_api_key: z.string(),\n },\n});\n"],"mappings":";;;AAGA,MAAa,eAAA,GAAA,2BAAA,UAAA,CAAwB;CACnC,MAAM;CACN,MAAM;CACN,YAAY,EACV,iBAAiBA,IAAAA,EAAE,OAAO,EAC5B;AACF,CAAC"}
1
+ {"version":3,"file":"app.cjs","names":["z"],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp, type KeystrokeApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nconst credential = {\n generic_api_key: z.string(),\n};\n\nexport const optimoroute: KeystrokeApp<\"optimoroute\", typeof credential> = defineApp({\n slug: \"optimoroute\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;AAGA,MAAM,aAAa,EACjB,8BAAiBA,CAAAA,CAAAA,EAAE,OAAO,EAC5B;AAEA,MAAa,eAAA,GAAA,2BAAA,UAAA,CAAwE;CACnF,MAAM;CACN,MAAM;CACN;AACF,CAAC"}
package/dist/app.d.cts CHANGED
@@ -1,13 +1,11 @@
1
+ import { KeystrokeApp } from "@keystrokehq/keystroke/app";
1
2
  import { z } from "zod";
2
3
 
3
4
  //#region src/app.d.ts
4
- declare const optimoroute: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential<"optimoroute", z.ZodObject<{
5
- connectionId: z.ZodString;
6
- entityId: z.ZodString;
7
- instanceId: z.ZodString;
8
- }, z.core.$strip>, z.ZodObject<{
5
+ declare const credential: {
9
6
  generic_api_key: z.ZodString;
10
- }, z.core.$strip>>>;
7
+ };
8
+ declare const optimoroute: KeystrokeApp<"optimoroute", typeof credential>;
11
9
  //#endregion
12
10
  export { optimoroute };
13
11
  //# sourceMappingURL=app.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";;;cAGa,WAAA,6BAAW,GAAA,+BAAA,UAAA,gBAAA,CAAA,CAAA,SAAA"}
1
+ {"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";;;;cAGM,UAAA;mBAEL,CAAA,CAAA,SAAA;AAAA;AAAA,cAEY,WAAA,EAAa,YAAY,uBAAuB,UAAA"}
package/dist/app.d.mts CHANGED
@@ -1,13 +1,11 @@
1
+ import { KeystrokeApp } from "@keystrokehq/keystroke/app";
1
2
  import { z } from "zod";
2
3
 
3
4
  //#region src/app.d.ts
4
- declare const optimoroute: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential<"optimoroute", z.ZodObject<{
5
- connectionId: z.ZodString;
6
- entityId: z.ZodString;
7
- instanceId: z.ZodString;
8
- }, z.core.$strip>, z.ZodObject<{
5
+ declare const credential: {
9
6
  generic_api_key: z.ZodString;
10
- }, z.core.$strip>>>;
7
+ };
8
+ declare const optimoroute: KeystrokeApp<"optimoroute", typeof credential>;
11
9
  //#endregion
12
10
  export { optimoroute };
13
11
  //# sourceMappingURL=app.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";;;cAGa,WAAA,6BAAW,GAAA,+BAAA,UAAA,gBAAA,CAAA,CAAA,SAAA"}
1
+ {"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";;;;cAGM,UAAA;mBAEL,CAAA,CAAA,SAAA;AAAA;AAAA,cAEY,WAAA,EAAa,YAAY,uBAAuB,UAAA"}
package/dist/app.mjs CHANGED
@@ -1,6 +1,5 @@
1
1
  import { defineApp } from "@keystrokehq/keystroke/app";
2
2
  import { z } from "zod";
3
- //#region src/app.ts
4
3
  const optimoroute = defineApp({
5
4
  slug: "optimoroute",
6
5
  auth: "keystroke",