@tiducto/spider-sdk-typescript 1.1.0 → 1.3.0

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 (349) hide show
  1. package/README.md +2 -2
  2. package/dist/contract/routing/AccessibilityPreferencesInput.d.ts +1 -0
  3. package/dist/contract/routing/AccessibilityPreferencesInput.d.ts.map +1 -1
  4. package/dist/contract/routing/AlightPreferencesInput.d.ts +2 -0
  5. package/dist/contract/routing/AlightPreferencesInput.d.ts.map +1 -1
  6. package/dist/contract/routing/BoardPreferencesInput.d.ts +4 -1
  7. package/dist/contract/routing/BoardPreferencesInput.d.ts.map +1 -1
  8. package/dist/contract/routing/DepartureBoard.d.ts +11 -0
  9. package/dist/contract/routing/DepartureBoard.d.ts.map +1 -0
  10. package/dist/contract/routing/DepartureBoard.js +2 -0
  11. package/dist/contract/routing/DepartureBoard.js.map +1 -0
  12. package/dist/contract/routing/DeparturesRequest.d.ts +12 -0
  13. package/dist/contract/routing/DeparturesRequest.d.ts.map +1 -0
  14. package/dist/contract/routing/DeparturesRequest.js +2 -0
  15. package/dist/contract/routing/DeparturesRequest.js.map +1 -0
  16. package/dist/contract/routing/DeparturesResponse.d.ts +6 -0
  17. package/dist/contract/routing/DeparturesResponse.d.ts.map +1 -0
  18. package/dist/contract/routing/DeparturesResponse.js +2 -0
  19. package/dist/contract/routing/DeparturesResponse.js.map +1 -0
  20. package/dist/contract/routing/ErrorResponse.d.ts +6 -2
  21. package/dist/contract/routing/ErrorResponse.d.ts.map +1 -1
  22. package/dist/contract/routing/Geometry.d.ts +2 -1
  23. package/dist/contract/routing/Geometry.d.ts.map +1 -1
  24. package/dist/contract/routing/Itinerary.d.ts +8 -5
  25. package/dist/contract/routing/Itinerary.d.ts.map +1 -1
  26. package/dist/contract/routing/Leg.d.ts +22 -14
  27. package/dist/contract/routing/Leg.d.ts.map +1 -1
  28. package/dist/contract/routing/LegTime.d.ts +2 -1
  29. package/dist/contract/routing/LegTime.d.ts.map +1 -1
  30. package/dist/contract/routing/Place.d.ts +4 -2
  31. package/dist/contract/routing/Place.d.ts.map +1 -1
  32. package/dist/contract/routing/PlanCoordinateInput.d.ts +3 -0
  33. package/dist/contract/routing/PlanCoordinateInput.d.ts.map +1 -1
  34. package/dist/contract/routing/PlanDateTimeInput.d.ts +3 -0
  35. package/dist/contract/routing/PlanDateTimeInput.d.ts.map +1 -1
  36. package/dist/contract/routing/PlanLabeledLocationInput.d.ts +1 -1
  37. package/dist/contract/routing/PlanLabeledLocationInput.d.ts.map +1 -1
  38. package/dist/contract/routing/PlanLocationInput.d.ts +3 -0
  39. package/dist/contract/routing/PlanLocationInput.d.ts.map +1 -1
  40. package/dist/contract/routing/PlanModesInput.d.ts +4 -3
  41. package/dist/contract/routing/PlanModesInput.d.ts.map +1 -1
  42. package/dist/contract/routing/PlanPageInfo.d.ts +8 -3
  43. package/dist/contract/routing/PlanPageInfo.d.ts.map +1 -1
  44. package/dist/contract/routing/PlanPassThroughViaLocationInput.d.ts +2 -1
  45. package/dist/contract/routing/PlanPassThroughViaLocationInput.d.ts.map +1 -1
  46. package/dist/contract/routing/PlanPreferencesInput.d.ts +2 -1
  47. package/dist/contract/routing/PlanPreferencesInput.d.ts.map +1 -1
  48. package/dist/contract/routing/PlanStopLocationInput.d.ts +2 -0
  49. package/dist/contract/routing/PlanStopLocationInput.d.ts.map +1 -1
  50. package/dist/contract/routing/PlanStreamChunkEvent.d.ts +13 -0
  51. package/dist/contract/routing/PlanStreamChunkEvent.d.ts.map +1 -0
  52. package/dist/contract/routing/PlanStreamChunkEvent.js +2 -0
  53. package/dist/contract/routing/PlanStreamChunkEvent.js.map +1 -0
  54. package/dist/contract/routing/PlanStreamDoneEvent.d.ts +12 -0
  55. package/dist/contract/routing/PlanStreamDoneEvent.d.ts.map +1 -0
  56. package/dist/contract/routing/PlanStreamDoneEvent.js +2 -0
  57. package/dist/contract/routing/PlanStreamDoneEvent.js.map +1 -0
  58. package/dist/contract/routing/PlanStreamPageInfoEvent.d.ts +17 -0
  59. package/dist/contract/routing/PlanStreamPageInfoEvent.d.ts.map +1 -0
  60. package/dist/contract/routing/PlanStreamPageInfoEvent.js +2 -0
  61. package/dist/contract/routing/PlanStreamPageInfoEvent.js.map +1 -0
  62. package/dist/contract/routing/PlanStreamRequest.d.ts +29 -0
  63. package/dist/contract/routing/PlanStreamRequest.d.ts.map +1 -0
  64. package/dist/contract/routing/PlanStreamRequest.js +2 -0
  65. package/dist/contract/routing/PlanStreamRequest.js.map +1 -0
  66. package/dist/contract/routing/PlanStreetPreferencesInput.d.ts +1 -6
  67. package/dist/contract/routing/PlanStreetPreferencesInput.d.ts.map +1 -1
  68. package/dist/contract/routing/PlanTransitModePreferenceInput.d.ts +2 -1
  69. package/dist/contract/routing/PlanTransitModePreferenceInput.d.ts.map +1 -1
  70. package/dist/contract/routing/PlanTransitModesInput.d.ts +2 -6
  71. package/dist/contract/routing/PlanTransitModesInput.d.ts.map +1 -1
  72. package/dist/contract/routing/PlanTripRequest.d.ts +31 -0
  73. package/dist/contract/routing/PlanTripRequest.d.ts.map +1 -0
  74. package/dist/contract/routing/PlanTripRequest.js +2 -0
  75. package/dist/contract/routing/PlanTripRequest.js.map +1 -0
  76. package/dist/contract/routing/PlanTripResponse.d.ts +13 -0
  77. package/dist/contract/routing/PlanTripResponse.d.ts.map +1 -0
  78. package/dist/contract/routing/PlanTripResponse.js +2 -0
  79. package/dist/contract/routing/PlanTripResponse.js.map +1 -0
  80. package/dist/contract/routing/PlanViaLocationInput.d.ts +3 -0
  81. package/dist/contract/routing/PlanViaLocationInput.d.ts.map +1 -1
  82. package/dist/contract/routing/PlanVisitViaLocationInput.d.ts +4 -4
  83. package/dist/contract/routing/PlanVisitViaLocationInput.d.ts.map +1 -1
  84. package/dist/contract/routing/RealTimeEstimate.d.ts +1 -0
  85. package/dist/contract/routing/RealTimeEstimate.d.ts.map +1 -1
  86. package/dist/contract/routing/Reliability.d.ts +1 -1
  87. package/dist/contract/routing/Reliability.d.ts.map +1 -1
  88. package/dist/contract/routing/Route.d.ts +8 -4
  89. package/dist/contract/routing/Route.d.ts.map +1 -1
  90. package/dist/contract/routing/RoutingError.d.ts +3 -1
  91. package/dist/contract/routing/RoutingError.d.ts.map +1 -1
  92. package/dist/contract/routing/RoutingErrorCode.d.ts +1 -1
  93. package/dist/contract/routing/RoutingErrorCode.d.ts.map +1 -1
  94. package/dist/contract/routing/Stop.d.ts +5 -3
  95. package/dist/contract/routing/Stop.d.ts.map +1 -1
  96. package/dist/contract/routing/StopDeparturesRoute.d.ts +9 -5
  97. package/dist/contract/routing/StopDeparturesRoute.d.ts.map +1 -1
  98. package/dist/contract/routing/StopDeparturesStop.d.ts +2 -1
  99. package/dist/contract/routing/StopDeparturesStop.d.ts.map +1 -1
  100. package/dist/contract/routing/StopDeparturesStoptime.d.ts +16 -10
  101. package/dist/contract/routing/StopDeparturesStoptime.d.ts.map +1 -1
  102. package/dist/contract/routing/StopDeparturesTrip.d.ts +2 -2
  103. package/dist/contract/routing/StopDeparturesTrip.d.ts.map +1 -1
  104. package/dist/contract/routing/Stoptime.d.ts +16 -10
  105. package/dist/contract/routing/Stoptime.d.ts.map +1 -1
  106. package/dist/contract/routing/TransferPreferencesInput.d.ts +5 -2
  107. package/dist/contract/routing/TransferPreferencesInput.d.ts.map +1 -1
  108. package/dist/contract/routing/TransitFilterInput.d.ts +2 -1
  109. package/dist/contract/routing/TransitFilterInput.d.ts.map +1 -1
  110. package/dist/contract/routing/TransitFilterSelectInput.d.ts +4 -1
  111. package/dist/contract/routing/TransitFilterSelectInput.d.ts.map +1 -1
  112. package/dist/contract/routing/TransitModePreferenceCostInput.d.ts +2 -0
  113. package/dist/contract/routing/TransitModePreferenceCostInput.d.ts.map +1 -1
  114. package/dist/contract/routing/TransitPreferencesInput.d.ts +4 -4
  115. package/dist/contract/routing/TransitPreferencesInput.d.ts.map +1 -1
  116. package/dist/contract/routing/Trip.d.ts +1 -1
  117. package/dist/contract/routing/Trip.d.ts.map +1 -1
  118. package/dist/contract/routing/TripGeometry.d.ts +4 -2
  119. package/dist/contract/routing/TripGeometry.d.ts.map +1 -1
  120. package/dist/contract/routing/TripRequest.d.ts +8 -0
  121. package/dist/contract/routing/TripRequest.d.ts.map +1 -0
  122. package/dist/contract/routing/TripRequest.js +2 -0
  123. package/dist/contract/routing/TripRequest.js.map +1 -0
  124. package/dist/contract/routing/TripResponse.d.ts +3 -4
  125. package/dist/contract/routing/TripResponse.d.ts.map +1 -1
  126. package/dist/contract/routing/TripRoute.d.ts +9 -5
  127. package/dist/contract/routing/TripRoute.d.ts.map +1 -1
  128. package/dist/contract/routing/TripStop.d.ts +7 -5
  129. package/dist/contract/routing/TripStop.d.ts.map +1 -1
  130. package/dist/contract/routing/TripTimetable.d.ts +20 -0
  131. package/dist/contract/routing/TripTimetable.d.ts.map +1 -0
  132. package/dist/contract/routing/TripTimetable.js +2 -0
  133. package/dist/contract/routing/TripTimetable.js.map +1 -0
  134. package/dist/contract/routing/WalkPreferencesInput.d.ts +6 -3
  135. package/dist/contract/routing/WalkPreferencesInput.d.ts.map +1 -1
  136. package/dist/contract/routing/WheelchairPreferencesInput.d.ts +2 -0
  137. package/dist/contract/routing/WheelchairPreferencesInput.d.ts.map +1 -1
  138. package/dist/contract/routing/index.d.ts +11 -41
  139. package/dist/contract/routing/index.d.ts.map +1 -1
  140. package/dist/contractVersion.d.ts +1 -1
  141. package/dist/contractVersion.js +1 -1
  142. package/dist/enums.d.ts +3 -1
  143. package/dist/enums.d.ts.map +1 -1
  144. package/dist/enums.js +1 -2
  145. package/dist/enums.js.map +1 -1
  146. package/dist/errors.d.ts +7 -17
  147. package/dist/errors.d.ts.map +1 -1
  148. package/dist/errors.js +9 -20
  149. package/dist/errors.js.map +1 -1
  150. package/dist/http.d.ts +2 -29
  151. package/dist/http.d.ts.map +1 -1
  152. package/dist/http.js +5 -37
  153. package/dist/http.js.map +1 -1
  154. package/dist/index.d.ts +2 -2
  155. package/dist/index.d.ts.map +1 -1
  156. package/dist/index.js +1 -1
  157. package/dist/index.js.map +1 -1
  158. package/dist/location.d.ts +4 -2
  159. package/dist/location.d.ts.map +1 -1
  160. package/dist/location.js +4 -2
  161. package/dist/location.js.map +1 -1
  162. package/dist/polling.d.ts +1 -2
  163. package/dist/polling.d.ts.map +1 -1
  164. package/dist/polling.js +2 -5
  165. package/dist/polling.js.map +1 -1
  166. package/dist/realtime.d.ts +18 -24
  167. package/dist/realtime.d.ts.map +1 -1
  168. package/dist/realtime.js +43 -46
  169. package/dist/realtime.js.map +1 -1
  170. package/dist/routing.d.ts +33 -27
  171. package/dist/routing.d.ts.map +1 -1
  172. package/dist/routing.js +132 -167
  173. package/dist/routing.js.map +1 -1
  174. package/dist/sdk.d.ts +1 -1
  175. package/dist/sdkVersion.d.ts +1 -1
  176. package/dist/sdkVersion.js +1 -1
  177. package/dist/stops.d.ts +2 -2
  178. package/dist/stops.d.ts.map +1 -1
  179. package/dist/stops.js +4 -4
  180. package/dist/stops.js.map +1 -1
  181. package/package.json +1 -1
  182. package/dist/contract/routing/BicycleParkingPreferencesInput.d.ts +0 -7
  183. package/dist/contract/routing/BicycleParkingPreferencesInput.d.ts.map +0 -1
  184. package/dist/contract/routing/BicycleParkingPreferencesInput.js +0 -2
  185. package/dist/contract/routing/BicycleParkingPreferencesInput.js.map +0 -1
  186. package/dist/contract/routing/BicyclePreferencesInput.d.ts +0 -14
  187. package/dist/contract/routing/BicyclePreferencesInput.d.ts.map +0 -1
  188. package/dist/contract/routing/BicyclePreferencesInput.js +0 -2
  189. package/dist/contract/routing/BicyclePreferencesInput.js.map +0 -1
  190. package/dist/contract/routing/BicycleRentalPreferencesInput.d.ts +0 -7
  191. package/dist/contract/routing/BicycleRentalPreferencesInput.d.ts.map +0 -1
  192. package/dist/contract/routing/BicycleRentalPreferencesInput.js +0 -2
  193. package/dist/contract/routing/BicycleRentalPreferencesInput.js.map +0 -1
  194. package/dist/contract/routing/BicycleWalkPreferencesCostInput.d.ts +0 -5
  195. package/dist/contract/routing/BicycleWalkPreferencesCostInput.d.ts.map +0 -1
  196. package/dist/contract/routing/BicycleWalkPreferencesCostInput.js +0 -2
  197. package/dist/contract/routing/BicycleWalkPreferencesCostInput.js.map +0 -1
  198. package/dist/contract/routing/BicycleWalkPreferencesInput.d.ts +0 -7
  199. package/dist/contract/routing/BicycleWalkPreferencesInput.d.ts.map +0 -1
  200. package/dist/contract/routing/BicycleWalkPreferencesInput.js +0 -2
  201. package/dist/contract/routing/BicycleWalkPreferencesInput.js.map +0 -1
  202. package/dist/contract/routing/CarParkingPreferencesInput.d.ts +0 -7
  203. package/dist/contract/routing/CarParkingPreferencesInput.d.ts.map +0 -1
  204. package/dist/contract/routing/CarParkingPreferencesInput.js +0 -2
  205. package/dist/contract/routing/CarParkingPreferencesInput.js.map +0 -1
  206. package/dist/contract/routing/CarPreferencesInput.d.ts +0 -9
  207. package/dist/contract/routing/CarPreferencesInput.d.ts.map +0 -1
  208. package/dist/contract/routing/CarPreferencesInput.js +0 -2
  209. package/dist/contract/routing/CarPreferencesInput.js.map +0 -1
  210. package/dist/contract/routing/CarRentalPreferencesInput.d.ts +0 -6
  211. package/dist/contract/routing/CarRentalPreferencesInput.d.ts.map +0 -1
  212. package/dist/contract/routing/CarRentalPreferencesInput.js +0 -2
  213. package/dist/contract/routing/CarRentalPreferencesInput.js.map +0 -1
  214. package/dist/contract/routing/CyclingOptimizationInput.d.ts +0 -7
  215. package/dist/contract/routing/CyclingOptimizationInput.d.ts.map +0 -1
  216. package/dist/contract/routing/CyclingOptimizationInput.js +0 -2
  217. package/dist/contract/routing/CyclingOptimizationInput.js.map +0 -1
  218. package/dist/contract/routing/CyclingOptimizationType.d.ts +0 -2
  219. package/dist/contract/routing/CyclingOptimizationType.d.ts.map +0 -1
  220. package/dist/contract/routing/CyclingOptimizationType.js +0 -2
  221. package/dist/contract/routing/CyclingOptimizationType.js.map +0 -1
  222. package/dist/contract/routing/DestinationBicyclePolicyInput.d.ts +0 -5
  223. package/dist/contract/routing/DestinationBicyclePolicyInput.d.ts.map +0 -1
  224. package/dist/contract/routing/DestinationBicyclePolicyInput.js +0 -2
  225. package/dist/contract/routing/DestinationBicyclePolicyInput.js.map +0 -1
  226. package/dist/contract/routing/DestinationScooterPolicyInput.d.ts +0 -5
  227. package/dist/contract/routing/DestinationScooterPolicyInput.d.ts.map +0 -1
  228. package/dist/contract/routing/DestinationScooterPolicyInput.js +0 -2
  229. package/dist/contract/routing/DestinationScooterPolicyInput.js.map +0 -1
  230. package/dist/contract/routing/GraphQLError.d.ts +0 -5
  231. package/dist/contract/routing/GraphQLError.d.ts.map +0 -1
  232. package/dist/contract/routing/GraphQLError.js +0 -2
  233. package/dist/contract/routing/GraphQLError.js.map +0 -1
  234. package/dist/contract/routing/ParkingFilter.d.ts +0 -6
  235. package/dist/contract/routing/ParkingFilter.d.ts.map +0 -1
  236. package/dist/contract/routing/ParkingFilter.js +0 -2
  237. package/dist/contract/routing/ParkingFilter.js.map +0 -1
  238. package/dist/contract/routing/ParkingFilterOperation.d.ts +0 -4
  239. package/dist/contract/routing/ParkingFilterOperation.d.ts.map +0 -1
  240. package/dist/contract/routing/ParkingFilterOperation.js +0 -2
  241. package/dist/contract/routing/ParkingFilterOperation.js.map +0 -1
  242. package/dist/contract/routing/PlanAccessMode.d.ts +0 -2
  243. package/dist/contract/routing/PlanAccessMode.d.ts.map +0 -1
  244. package/dist/contract/routing/PlanAccessMode.js +0 -2
  245. package/dist/contract/routing/PlanAccessMode.js.map +0 -1
  246. package/dist/contract/routing/PlanConnection.d.ts +0 -10
  247. package/dist/contract/routing/PlanConnection.d.ts.map +0 -1
  248. package/dist/contract/routing/PlanConnection.js +0 -2
  249. package/dist/contract/routing/PlanConnection.js.map +0 -1
  250. package/dist/contract/routing/PlanConnectionData.d.ts +0 -5
  251. package/dist/contract/routing/PlanConnectionData.d.ts.map +0 -1
  252. package/dist/contract/routing/PlanConnectionData.js +0 -2
  253. package/dist/contract/routing/PlanConnectionData.js.map +0 -1
  254. package/dist/contract/routing/PlanConnectionResponse.d.ts +0 -7
  255. package/dist/contract/routing/PlanConnectionResponse.d.ts.map +0 -1
  256. package/dist/contract/routing/PlanConnectionResponse.js +0 -2
  257. package/dist/contract/routing/PlanConnectionResponse.js.map +0 -1
  258. package/dist/contract/routing/PlanConnectionStreamData.d.ts +0 -5
  259. package/dist/contract/routing/PlanConnectionStreamData.d.ts.map +0 -1
  260. package/dist/contract/routing/PlanConnectionStreamData.js +0 -2
  261. package/dist/contract/routing/PlanConnectionStreamData.js.map +0 -1
  262. package/dist/contract/routing/PlanConnectionStreamResponse.d.ts +0 -7
  263. package/dist/contract/routing/PlanConnectionStreamResponse.d.ts.map +0 -1
  264. package/dist/contract/routing/PlanConnectionStreamResponse.js +0 -2
  265. package/dist/contract/routing/PlanConnectionStreamResponse.js.map +0 -1
  266. package/dist/contract/routing/PlanConnectionStreamVariables.d.ts +0 -21
  267. package/dist/contract/routing/PlanConnectionStreamVariables.d.ts.map +0 -1
  268. package/dist/contract/routing/PlanConnectionStreamVariables.js +0 -2
  269. package/dist/contract/routing/PlanConnectionStreamVariables.js.map +0 -1
  270. package/dist/contract/routing/PlanConnectionVariables.d.ts +0 -20
  271. package/dist/contract/routing/PlanConnectionVariables.d.ts.map +0 -1
  272. package/dist/contract/routing/PlanConnectionVariables.js +0 -2
  273. package/dist/contract/routing/PlanConnectionVariables.js.map +0 -1
  274. package/dist/contract/routing/PlanDirectMode.d.ts +0 -2
  275. package/dist/contract/routing/PlanDirectMode.d.ts.map +0 -1
  276. package/dist/contract/routing/PlanDirectMode.js +0 -2
  277. package/dist/contract/routing/PlanDirectMode.js.map +0 -1
  278. package/dist/contract/routing/PlanEdge.d.ts +0 -6
  279. package/dist/contract/routing/PlanEdge.d.ts.map +0 -1
  280. package/dist/contract/routing/PlanEdge.js +0 -2
  281. package/dist/contract/routing/PlanEdge.js.map +0 -1
  282. package/dist/contract/routing/PlanEgressMode.d.ts +0 -2
  283. package/dist/contract/routing/PlanEgressMode.d.ts.map +0 -1
  284. package/dist/contract/routing/PlanEgressMode.js +0 -2
  285. package/dist/contract/routing/PlanEgressMode.js.map +0 -1
  286. package/dist/contract/routing/PlanTransferMode.d.ts +0 -2
  287. package/dist/contract/routing/PlanTransferMode.d.ts.map +0 -1
  288. package/dist/contract/routing/PlanTransferMode.js +0 -2
  289. package/dist/contract/routing/PlanTransferMode.js.map +0 -1
  290. package/dist/contract/routing/ScooterOptimizationInput.d.ts +0 -7
  291. package/dist/contract/routing/ScooterOptimizationInput.d.ts.map +0 -1
  292. package/dist/contract/routing/ScooterOptimizationInput.js +0 -2
  293. package/dist/contract/routing/ScooterOptimizationInput.js.map +0 -1
  294. package/dist/contract/routing/ScooterOptimizationType.d.ts +0 -2
  295. package/dist/contract/routing/ScooterOptimizationType.d.ts.map +0 -1
  296. package/dist/contract/routing/ScooterOptimizationType.js +0 -2
  297. package/dist/contract/routing/ScooterOptimizationType.js.map +0 -1
  298. package/dist/contract/routing/ScooterPreferencesInput.d.ts +0 -9
  299. package/dist/contract/routing/ScooterPreferencesInput.d.ts.map +0 -1
  300. package/dist/contract/routing/ScooterPreferencesInput.js +0 -2
  301. package/dist/contract/routing/ScooterPreferencesInput.js.map +0 -1
  302. package/dist/contract/routing/ScooterRentalPreferencesInput.d.ts +0 -7
  303. package/dist/contract/routing/ScooterRentalPreferencesInput.d.ts.map +0 -1
  304. package/dist/contract/routing/ScooterRentalPreferencesInput.js +0 -2
  305. package/dist/contract/routing/ScooterRentalPreferencesInput.js.map +0 -1
  306. package/dist/contract/routing/StopDeparturesData.d.ts +0 -6
  307. package/dist/contract/routing/StopDeparturesData.d.ts.map +0 -1
  308. package/dist/contract/routing/StopDeparturesData.js +0 -2
  309. package/dist/contract/routing/StopDeparturesData.js.map +0 -1
  310. package/dist/contract/routing/StopDeparturesResponse.d.ts +0 -7
  311. package/dist/contract/routing/StopDeparturesResponse.d.ts.map +0 -1
  312. package/dist/contract/routing/StopDeparturesResponse.js +0 -2
  313. package/dist/contract/routing/StopDeparturesResponse.js.map +0 -1
  314. package/dist/contract/routing/StopDeparturesStop2.d.ts +0 -9
  315. package/dist/contract/routing/StopDeparturesStop2.d.ts.map +0 -1
  316. package/dist/contract/routing/StopDeparturesStop2.js +0 -2
  317. package/dist/contract/routing/StopDeparturesStop2.js.map +0 -1
  318. package/dist/contract/routing/StopDeparturesVariables.d.ts +0 -7
  319. package/dist/contract/routing/StopDeparturesVariables.d.ts.map +0 -1
  320. package/dist/contract/routing/StopDeparturesVariables.js +0 -2
  321. package/dist/contract/routing/StopDeparturesVariables.js.map +0 -1
  322. package/dist/contract/routing/TimetablePreferencesInput.d.ts +0 -6
  323. package/dist/contract/routing/TimetablePreferencesInput.d.ts.map +0 -1
  324. package/dist/contract/routing/TimetablePreferencesInput.js +0 -2
  325. package/dist/contract/routing/TimetablePreferencesInput.js.map +0 -1
  326. package/dist/contract/routing/TriangleCyclingFactorsInput.d.ts +0 -6
  327. package/dist/contract/routing/TriangleCyclingFactorsInput.d.ts.map +0 -1
  328. package/dist/contract/routing/TriangleCyclingFactorsInput.js +0 -2
  329. package/dist/contract/routing/TriangleCyclingFactorsInput.js.map +0 -1
  330. package/dist/contract/routing/TriangleScooterFactorsInput.d.ts +0 -6
  331. package/dist/contract/routing/TriangleScooterFactorsInput.d.ts.map +0 -1
  332. package/dist/contract/routing/TriangleScooterFactorsInput.js +0 -2
  333. package/dist/contract/routing/TriangleScooterFactorsInput.js.map +0 -1
  334. package/dist/contract/routing/TripData.d.ts +0 -5
  335. package/dist/contract/routing/TripData.d.ts.map +0 -1
  336. package/dist/contract/routing/TripData.js +0 -2
  337. package/dist/contract/routing/TripData.js.map +0 -1
  338. package/dist/contract/routing/TripTrip.d.ts +0 -16
  339. package/dist/contract/routing/TripTrip.d.ts.map +0 -1
  340. package/dist/contract/routing/TripTrip.js +0 -2
  341. package/dist/contract/routing/TripTrip.js.map +0 -1
  342. package/dist/contract/routing/TripVariables.d.ts +0 -5
  343. package/dist/contract/routing/TripVariables.d.ts.map +0 -1
  344. package/dist/contract/routing/TripVariables.js +0 -2
  345. package/dist/contract/routing/TripVariables.js.map +0 -1
  346. package/dist/persistedQueries.d.ts +0 -9
  347. package/dist/persistedQueries.d.ts.map +0 -1
  348. package/dist/persistedQueries.js +0 -5
  349. package/dist/persistedQueries.js.map +0 -1
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @tiducto/spider-sdk-typescript
2
2
 
3
- The TypeScript SDK for **Spider** — the managed transit API by Tiducto. Trip planning, stop search, and live realtime data behind one typed client that ships the exact queries the gateway allows and attaches auth for you.
3
+ The TypeScript SDK for **Spider** — the managed transit API by Tiducto. Trip planning, stop search, and live realtime data behind one typed client that speaks the published API contract and attaches auth for you.
4
4
 
5
5
  Native TypeScript, zero runtime dependencies (uses the platform `fetch`). Sibling of the Kotlin, Swift, and Dart SDKs — same domain model, TypeScript idioms.
6
6
 
@@ -50,7 +50,7 @@ Every call returns a `SpiderResult<T>` you branch on before reading `data`. The
50
50
 
51
51
  ## Contributing
52
52
 
53
- `src/contract/routing` is generated from [`tiducto/spider-contract`](https://github.com/tiducto/spider-contract) — don't hand-edit it. `npm run build` / `npm run typecheck` / `npm test`.
53
+ `src/contract/routing` is generated from [`tiducto/spider-contract`](https://github.com/tiducto/spider-contract) — don't hand-edit it. Every operation sits on a versioned path on the environment's host, `/<surface>/v1/<operation>` (such as `/routing/v1/plan`, `/stops/v1/search`, `/realtime/v1/vehicles`), which the client calls for you. `npm run build` / `npm run typecheck` / `npm test`.
54
54
 
55
55
  ## License
56
56
 
@@ -1,4 +1,5 @@
1
1
  import type { WheelchairPreferencesInput } from './WheelchairPreferencesInput.ts';
2
+ /** Accessibility preferences. */
2
3
  export interface AccessibilityPreferencesInput {
3
4
  wheelchair?: WheelchairPreferencesInput;
4
5
  }
@@ -1 +1 @@
1
- {"version":3,"file":"AccessibilityPreferencesInput.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/AccessibilityPreferencesInput.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAElF,MAAM,WAAW,6BAA6B;IAC5C,UAAU,CAAC,EAAE,0BAA0B,CAAC;CACzC"}
1
+ {"version":3,"file":"AccessibilityPreferencesInput.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/AccessibilityPreferencesInput.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAElF,iCAAiC;AACjC,MAAM,WAAW,6BAA6B;IAC5C,UAAU,CAAC,EAAE,0BAA0B,CAAC;CACzC"}
@@ -1,4 +1,6 @@
1
+ /** Alighting preferences. */
1
2
  export interface AlightPreferencesInput {
3
+ /** Least time needed to alight, as an ISO-8601 duration: `PT0S` to `PT1H`; rejected, never clamped. */
2
4
  slack?: string;
3
5
  }
4
6
  //# sourceMappingURL=AlightPreferencesInput.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AlightPreferencesInput.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/AlightPreferencesInput.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,sBAAsB;IACrC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB"}
1
+ {"version":3,"file":"AlightPreferencesInput.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/AlightPreferencesInput.ts"],"names":[],"mappings":"AAAA,6BAA6B;AAC7B,MAAM,WAAW,sBAAsB;IACrC,uGAAuG;IACvG,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB"}
@@ -1,5 +1,8 @@
1
+ /** Boarding preferences. */
1
2
  export interface BoardPreferencesInput {
2
- slack?: string;
3
+ /** How much worse waiting at a stop is than riding for the same time, a multiplier from 0.1 to 100000; rejected, never clamped. */
3
4
  waitReluctance?: number;
5
+ /** Least time at the stop before boarding, as an ISO-8601 duration: `PT0S` to `PT1H`; rejected, never clamped. */
6
+ slack?: string;
4
7
  }
5
8
  //# sourceMappingURL=BoardPreferencesInput.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"BoardPreferencesInput.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/BoardPreferencesInput.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,qBAAqB;IACpC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB"}
1
+ {"version":3,"file":"BoardPreferencesInput.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/BoardPreferencesInput.ts"],"names":[],"mappings":"AAAA,4BAA4B;AAC5B,MAAM,WAAW,qBAAqB;IACpC,mIAAmI;IACnI,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,kHAAkH;IAClH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB"}
@@ -0,0 +1,11 @@
1
+ import type { StopDeparturesStoptime } from './StopDeparturesStoptime.ts';
2
+ import type { WheelchairBoarding } from './WheelchairBoarding.ts';
3
+ /** Departures board for one platform (a stop id) or a whole station (a station id), realtime merged in. A trip's final stop, a canceled departure and a departure that does not allow boarding give no row. */
4
+ export interface DepartureBoard {
5
+ gtfsId: string;
6
+ name: string;
7
+ /** Null on a station board. */
8
+ wheelchairBoarding: WheelchairBoarding | null;
9
+ stoptimesWithoutPatterns: StopDeparturesStoptime[];
10
+ }
11
+ //# sourceMappingURL=DepartureBoard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DepartureBoard.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/DepartureBoard.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAC1E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAElE,+MAA+M;AAC/M,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,+BAA+B;IAC/B,kBAAkB,EAAE,kBAAkB,GAAG,IAAI,CAAC;IAC9C,wBAAwB,EAAE,sBAAsB,EAAE,CAAC;CACpD"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=DepartureBoard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DepartureBoard.js","sourceRoot":"","sources":["../../../src/contract/routing/DepartureBoard.ts"],"names":[],"mappings":""}
@@ -0,0 +1,12 @@
1
+ /** POST body for `/routing/v1/departures`. A key not listed here is a 400 `<key> is not allowed`, whatever its value, null included. Every bound is rejected, never clamped. `null` on an optional member means absent, and on a required member is a 400 `<path> is required`. */
2
+ export interface DeparturesRequest {
3
+ /** Feed-prefixed id (`<feedId>:<id>`) of a stop, for that platform's board, or of a station, for all its platforms. A bare or foreign-prefixed id resolves to nothing, and `stop` is null. */
4
+ id: string;
5
+ /** Most rows on the board: 1 up to the environment's limit; rejected, never clamped. */
6
+ numberOfDepartures: number;
7
+ /** Unix seconds the board starts at, from 0 to 4102444799 (2099-12-31T23:59:59Z). Absent or 0 means now. */
8
+ startTime?: number;
9
+ /** Seconds after `startTime` the board covers: 1 to 86400 (24 hours); rejected, never clamped. */
10
+ timeRange: number;
11
+ }
12
+ //# sourceMappingURL=DeparturesRequest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DeparturesRequest.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/DeparturesRequest.ts"],"names":[],"mappings":"AAAA,mRAAmR;AACnR,MAAM,WAAW,iBAAiB;IAChC,8LAA8L;IAC9L,EAAE,EAAE,MAAM,CAAC;IACX,wFAAwF;IACxF,kBAAkB,EAAE,MAAM,CAAC;IAC3B,4GAA4G;IAC5G,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kGAAkG;IAClG,SAAS,EAAE,MAAM,CAAC;CACnB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=DeparturesRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DeparturesRequest.js","sourceRoot":"","sources":["../../../src/contract/routing/DeparturesRequest.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ import type { DepartureBoard } from './DepartureBoard.ts';
2
+ /** `stop` is the board, or null for an id that resolves to no stop or station. */
3
+ export interface DeparturesResponse {
4
+ stop: DepartureBoard | null;
5
+ }
6
+ //# sourceMappingURL=DeparturesResponse.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DeparturesResponse.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/DeparturesResponse.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAE1D,kFAAkF;AAClF,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,cAAc,GAAG,IAAI,CAAC;CAC7B"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=DeparturesResponse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DeparturesResponse.js","sourceRoot":"","sources":["../../../src/contract/routing/DeparturesResponse.ts"],"names":[],"mappings":""}
@@ -1,6 +1,10 @@
1
- /** Standard error body: a stable machine-readable `code` and a human-readable `message`. */
1
+ /** Error body: a stable machine-readable `code`, which names a state, and a human-readable `message`. */
2
2
  export interface ErrorResponse {
3
- code?: string;
3
+ /** One of `bad_request`, `key_missing`, `key_invalid`, `key_not_allowed`, `agreement_inactive`, `planning_limit_reached`, `not_found`, `method_not_allowed`, `length_required`, `payload_too_large`, `rate_limited`, `internal_error`, `upstream_unavailable`, `upstream_timeout`. New codes may be added. */
4
+ code: string;
5
+ /** For `bad_request`: `<field> is required|invalid|out of range|not allowed`, or `body is invalid` when the body is empty, not JSON or not an object. */
4
6
  message: string;
7
+ /** Present only on a 400 that names one member: its dot path from the body root, array positions omitted, or the query parameter's name. */
8
+ field?: string;
5
9
  }
6
10
  //# sourceMappingURL=ErrorResponse.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ErrorResponse.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/ErrorResponse.ts"],"names":[],"mappings":"AAAA,4FAA4F;AAC5F,MAAM,WAAW,aAAa;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;CACjB"}
1
+ {"version":3,"file":"ErrorResponse.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/ErrorResponse.ts"],"names":[],"mappings":"AAAA,yGAAyG;AACzG,MAAM,WAAW,aAAa;IAC5B,8SAA8S;IAC9S,IAAI,EAAE,MAAM,CAAC;IACb,yJAAyJ;IACzJ,OAAO,EAAE,MAAM,CAAC;IAChB,4IAA4I;IAC5I,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB"}
@@ -1,4 +1,5 @@
1
1
  export interface Geometry {
2
- points?: string;
2
+ /** Encoded polyline (precision 1e5). */
3
+ points: string;
3
4
  }
4
5
  //# sourceMappingURL=Geometry.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Geometry.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/Geometry.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,QAAQ;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
1
+ {"version":3,"file":"Geometry.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/Geometry.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,QAAQ;IACvB,wCAAwC;IACxC,MAAM,EAAE,MAAM,CAAC;CAChB"}
@@ -1,11 +1,14 @@
1
1
  import type { Leg } from './Leg.ts';
2
+ /** One journey, leg by leg. Times are in the feed's time zone. */
2
3
  export interface Itinerary {
3
- start?: string;
4
- end?: string;
5
- duration?: number;
6
- waitingTime?: number;
4
+ start: string;
5
+ end: string;
6
+ /** Seconds from `start` to `end`. */
7
+ duration: number;
8
+ /** Seconds spent waiting at stops. */
9
+ waitingTime: number;
10
+ /** Changes between vehicles. Staying on board as the vehicle carries on as another trip (`interlineWithPreviousLeg`) is not counted. */
7
11
  numberOfTransfers: number;
8
- accessibilityScore?: number;
9
12
  legs: Leg[];
10
13
  }
11
14
  //# sourceMappingURL=Itinerary.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Itinerary.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/Itinerary.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAEpC,MAAM,WAAW,SAAS;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,IAAI,EAAE,GAAG,EAAE,CAAC;CACb"}
1
+ {"version":3,"file":"Itinerary.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/Itinerary.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAEpC,kEAAkE;AAClE,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,qCAAqC;IACrC,QAAQ,EAAE,MAAM,CAAC;IACjB,sCAAsC;IACtC,WAAW,EAAE,MAAM,CAAC;IACpB,wIAAwI;IACxI,iBAAiB,EAAE,MAAM,CAAC;IAC1B,IAAI,EAAE,GAAG,EAAE,CAAC;CACb"}
@@ -5,24 +5,32 @@ import type { Place } from './Place.ts';
5
5
  import type { RealtimeState } from './RealtimeState.ts';
6
6
  import type { Route } from './Route.ts';
7
7
  import type { Trip } from './Trip.ts';
8
+ /** One walk or ride. */
8
9
  export interface Leg {
9
- mode?: Mode;
10
+ mode: Mode;
10
11
  start: LegTime;
11
12
  end: LegTime;
12
- /** Delay in seconds applied to this leg's arrival at the requested `reliability`; null when omitted or unknown. */
13
- typicalArrivalDelay?: number;
14
- realtimeState?: RealtimeState;
15
- realTime?: boolean;
16
- serviceDate?: string;
13
+ /** Seconds of delay applied to this leg's arrival at the requested `reliability`: that level's percentile (p50, p70 or p90) of the trip's recorded delay at the alighting stop on the service date's day type, from the environment's realtime history, never below 0 and never decreasing along the trip's pattern. Null when `reliability` is omitted, the trip has live realtime or there is no history, and on a walk leg. */
14
+ typicalArrivalDelay: number | null;
15
+ realtimeState: RealtimeState;
16
+ /** True when the leg's times include realtime. */
17
+ realTime: boolean;
18
+ /** The GTFS service date of the leg's trip, `YYYY-MM-DD`; null on a walk leg. */
19
+ serviceDate: string | null;
17
20
  from: Place;
18
21
  to: Place;
19
- route?: Route;
20
- headsign?: string;
21
- distance?: number;
22
- duration?: number;
23
- accessibilityScore?: number;
24
- trip?: Trip;
25
- interlineWithPreviousLeg?: boolean;
26
- legGeometry?: Geometry;
22
+ /** Null on a walk leg. */
23
+ route: Route | null;
24
+ /** Null on a walk leg and when the feed has none. */
25
+ headsign: string | null;
26
+ /** Metres. */
27
+ distance: number;
28
+ /** Seconds. */
29
+ duration: number;
30
+ /** Null on a walk leg. */
31
+ trip: Trip | null;
32
+ /** True on a transit leg ridden in the same vehicle as the previous leg: the vehicle carries on as another trip, often under another line number, and the rider stays on board. That change is not counted in `numberOfTransfers`. False on every other leg. */
33
+ interlineWithPreviousLeg: boolean;
34
+ legGeometry: Geometry;
27
35
  }
28
36
  //# sourceMappingURL=Leg.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Leg.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/Leg.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEtC,MAAM,WAAW,GAAG;IAClB,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,KAAK,EAAE,OAAO,CAAC;IACf,GAAG,EAAE,OAAO,CAAC;IACb,mHAAmH;IACnH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,KAAK,CAAC;IACZ,EAAE,EAAE,KAAK,CAAC;IACV,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC,WAAW,CAAC,EAAE,QAAQ,CAAC;CACxB"}
1
+ {"version":3,"file":"Leg.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/Leg.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEtC,wBAAwB;AACxB,MAAM,WAAW,GAAG;IAClB,IAAI,EAAE,IAAI,CAAC;IACX,KAAK,EAAE,OAAO,CAAC;IACf,GAAG,EAAE,OAAO,CAAC;IACb,kaAAka;IACla,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,aAAa,EAAE,aAAa,CAAC;IAC7B,kDAAkD;IAClD,QAAQ,EAAE,OAAO,CAAC;IAClB,iFAAiF;IACjF,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,IAAI,EAAE,KAAK,CAAC;IACZ,EAAE,EAAE,KAAK,CAAC;IACV,0BAA0B;IAC1B,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;IACpB,qDAAqD;IACrD,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,cAAc;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,0BAA0B;IAC1B,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IAClB,gQAAgQ;IAChQ,wBAAwB,EAAE,OAAO,CAAC;IAClC,WAAW,EAAE,QAAQ,CAAC;CACvB"}
@@ -1,6 +1,7 @@
1
1
  import type { RealTimeEstimate } from './RealTimeEstimate.ts';
2
2
  export interface LegTime {
3
3
  scheduledTime: string;
4
- estimated?: RealTimeEstimate;
4
+ /** Null without realtime. */
5
+ estimated: RealTimeEstimate | null;
5
6
  }
6
7
  //# sourceMappingURL=LegTime.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"LegTime.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/LegTime.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAE9D,MAAM,WAAW,OAAO;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,gBAAgB,CAAC;CAC9B"}
1
+ {"version":3,"file":"LegTime.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/LegTime.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAE9D,MAAM,WAAW,OAAO;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,6BAA6B;IAC7B,SAAS,EAAE,gBAAgB,GAAG,IAAI,CAAC;CACpC"}
@@ -1,6 +1,8 @@
1
1
  import type { Stop } from './Stop.ts';
2
2
  export interface Place {
3
- name?: string;
4
- stop?: Stop;
3
+ /** The stop's name; `Origin` or `Destination` for a coordinate. */
4
+ name: string;
5
+ /** Null when the place is not a stop, as for an origin or destination coordinate. */
6
+ stop: Stop | null;
5
7
  }
6
8
  //# sourceMappingURL=Place.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Place.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/Place.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEtC,MAAM,WAAW,KAAK;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,IAAI,CAAC;CACb"}
1
+ {"version":3,"file":"Place.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/Place.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEtC,MAAM,WAAW,KAAK;IACpB,mEAAmE;IACnE,IAAI,EAAE,MAAM,CAAC;IACb,qFAAqF;IACrF,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;CACnB"}
@@ -1,5 +1,8 @@
1
+ /** A WGS84 point. */
1
2
  export interface PlanCoordinateInput {
3
+ /** Latitude in degrees, -90 to 90; rejected, never clamped. */
2
4
  latitude: number;
5
+ /** Longitude in degrees, -180 to 180; rejected, never clamped. */
3
6
  longitude: number;
4
7
  }
5
8
  //# sourceMappingURL=PlanCoordinateInput.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PlanCoordinateInput.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/PlanCoordinateInput.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;CACnB"}
1
+ {"version":3,"file":"PlanCoordinateInput.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/PlanCoordinateInput.ts"],"names":[],"mappings":"AAAA,qBAAqB;AACrB,MAAM,WAAW,mBAAmB;IAClC,+DAA+D;IAC/D,QAAQ,EAAE,MAAM,CAAC;IACjB,kEAAkE;IAClE,SAAS,EAAE,MAAM,CAAC;CACnB"}
@@ -1,5 +1,8 @@
1
+ /** Exactly one of `earliestDeparture`, `latestArrival`; neither or both is a 400 `dateTime is invalid`. Both are RFC 3339 date-times with seconds and an offset, e.g. `2026-10-07T08:00:00+02:00`. */
1
2
  export interface PlanDateTimeInput {
3
+ /** Depart at or after this time. */
2
4
  earliestDeparture?: string;
5
+ /** Arrive at or before this time. */
3
6
  latestArrival?: string;
4
7
  }
5
8
  //# sourceMappingURL=PlanDateTimeInput.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PlanDateTimeInput.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/PlanDateTimeInput.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IAChC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB"}
1
+ {"version":3,"file":"PlanDateTimeInput.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/PlanDateTimeInput.ts"],"names":[],"mappings":"AAAA,sMAAsM;AACtM,MAAM,WAAW,iBAAiB;IAChC,oCAAoC;IACpC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,qCAAqC;IACrC,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB"}
@@ -1,6 +1,6 @@
1
1
  import type { PlanLocationInput } from './PlanLocationInput.ts';
2
+ /** An origin or destination. */
2
3
  export interface PlanLabeledLocationInput {
3
- label?: string;
4
4
  location: PlanLocationInput;
5
5
  }
6
6
  //# sourceMappingURL=PlanLabeledLocationInput.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PlanLabeledLocationInput.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/PlanLabeledLocationInput.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAEhE,MAAM,WAAW,wBAAwB;IACvC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,iBAAiB,CAAC;CAC7B"}
1
+ {"version":3,"file":"PlanLabeledLocationInput.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/PlanLabeledLocationInput.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAEhE,gCAAgC;AAChC,MAAM,WAAW,wBAAwB;IACvC,QAAQ,EAAE,iBAAiB,CAAC;CAC7B"}
@@ -1,7 +1,10 @@
1
1
  import type { PlanCoordinateInput } from './PlanCoordinateInput.ts';
2
2
  import type { PlanStopLocationInput } from './PlanStopLocationInput.ts';
3
+ /** Exactly one of `coordinate`, `stopLocation`; neither or both is a 400 naming `origin.location` or `destination.location`. */
3
4
  export interface PlanLocationInput {
5
+ /** A point; the journey walks between it and the stops. */
4
6
  coordinate?: PlanCoordinateInput;
7
+ /** A stop or a station. */
5
8
  stopLocation?: PlanStopLocationInput;
6
9
  }
7
10
  //# sourceMappingURL=PlanLocationInput.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PlanLocationInput.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/PlanLocationInput.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AACpE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAExE,MAAM,WAAW,iBAAiB;IAChC,UAAU,CAAC,EAAE,mBAAmB,CAAC;IACjC,YAAY,CAAC,EAAE,qBAAqB,CAAC;CACtC"}
1
+ {"version":3,"file":"PlanLocationInput.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/PlanLocationInput.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AACpE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAExE,gIAAgI;AAChI,MAAM,WAAW,iBAAiB;IAChC,2DAA2D;IAC3D,UAAU,CAAC,EAAE,mBAAmB,CAAC;IACjC,2BAA2B;IAC3B,YAAY,CAAC,EAAE,qBAAqB,CAAC;CACtC"}
@@ -1,9 +1,10 @@
1
- import type { PlanDirectMode } from './PlanDirectMode.ts';
2
1
  import type { PlanTransitModesInput } from './PlanTransitModesInput.ts';
2
+ /** Which modes the search may use. `directOnly` and `transitOnly` together are a 400 `modes is invalid`. */
3
3
  export interface PlanModesInput {
4
- direct?: PlanDirectMode[];
4
+ /** Only a direct walk, without transit. A direct-only plan has no pages: its cursors are null. */
5
5
  directOnly?: boolean;
6
- transit?: PlanTransitModesInput;
6
+ /** Never a journey without a transit leg. */
7
7
  transitOnly?: boolean;
8
+ transit?: PlanTransitModesInput;
8
9
  }
9
10
  //# sourceMappingURL=PlanModesInput.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PlanModesInput.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/PlanModesInput.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAExE,MAAM,WAAW,cAAc;IAC7B,MAAM,CAAC,EAAE,cAAc,EAAE,CAAC;IAC1B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,OAAO,CAAC,EAAE,qBAAqB,CAAC;IAChC,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB"}
1
+ {"version":3,"file":"PlanModesInput.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/PlanModesInput.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAExE,4GAA4G;AAC5G,MAAM,WAAW,cAAc;IAC7B,kGAAkG;IAClG,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,6CAA6C;IAC7C,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,OAAO,CAAC,EAAE,qBAAqB,CAAC;CACjC"}
@@ -1,8 +1,13 @@
1
1
  export interface PlanPageInfo {
2
- startCursor?: string;
3
- endCursor?: string;
2
+ /** Send as `before` for the previous page; null when there is none, as for a declined, direct-only or unroutable plan. */
3
+ startCursor: string | null;
4
+ /** Send as `after` for the next page; null when there is none, as for a declined, direct-only or unroutable plan. */
5
+ endCursor: string | null;
6
+ /** True exactly when `endCursor` is present. */
4
7
  hasNextPage: boolean;
8
+ /** True exactly when `startCursor` is present. */
5
9
  hasPreviousPage: boolean;
6
- searchWindowUsed?: string;
10
+ /** The window the search covered, as an ISO-8601 duration; null when no transit search ran, as for a declined, direct-only or unroutable plan. */
11
+ searchWindowUsed: string | null;
7
12
  }
8
13
  //# sourceMappingURL=PlanPageInfo.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PlanPageInfo.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/PlanPageInfo.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,OAAO,CAAC;IACrB,eAAe,EAAE,OAAO,CAAC;IACzB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B"}
1
+ {"version":3,"file":"PlanPageInfo.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/PlanPageInfo.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAC3B,0HAA0H;IAC1H,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,qHAAqH;IACrH,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,gDAAgD;IAChD,WAAW,EAAE,OAAO,CAAC;IACrB,kDAAkD;IAClD,eAAe,EAAE,OAAO,CAAC;IACzB,kJAAkJ;IAClJ,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;CACjC"}
@@ -1,5 +1,6 @@
1
+ /** A location the journey passes. */
1
2
  export interface PlanPassThroughViaLocationInput {
2
- label?: string;
3
+ /** 1 to 10 feed-prefixed stop or station ids; passing any one of them is enough. Absent is a 400 `via.passThrough.stopLocationIds is required`, and empty or more than 10 `via.passThrough.stopLocationIds is out of range`. */
3
4
  stopLocationIds: string[];
4
5
  }
5
6
  //# sourceMappingURL=PlanPassThroughViaLocationInput.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PlanPassThroughViaLocationInput.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/PlanPassThroughViaLocationInput.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,+BAA+B;IAC9C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,eAAe,EAAE,MAAM,EAAE,CAAC;CAC3B"}
1
+ {"version":3,"file":"PlanPassThroughViaLocationInput.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/PlanPassThroughViaLocationInput.ts"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,MAAM,WAAW,+BAA+B;IAC9C,gOAAgO;IAChO,eAAe,EAAE,MAAM,EAAE,CAAC;CAC3B"}
@@ -1,9 +1,10 @@
1
1
  import type { AccessibilityPreferencesInput } from './AccessibilityPreferencesInput.ts';
2
2
  import type { PlanStreetPreferencesInput } from './PlanStreetPreferencesInput.ts';
3
3
  import type { TransitPreferencesInput } from './TransitPreferencesInput.ts';
4
+ /** Routing preferences. An absent member keeps the environment's default. */
4
5
  export interface PlanPreferencesInput {
5
- accessibility?: AccessibilityPreferencesInput;
6
6
  street?: PlanStreetPreferencesInput;
7
7
  transit?: TransitPreferencesInput;
8
+ accessibility?: AccessibilityPreferencesInput;
8
9
  }
9
10
  //# sourceMappingURL=PlanPreferencesInput.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PlanPreferencesInput.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/PlanPreferencesInput.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AACxF,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAClF,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAE5E,MAAM,WAAW,oBAAoB;IACnC,aAAa,CAAC,EAAE,6BAA6B,CAAC;IAC9C,MAAM,CAAC,EAAE,0BAA0B,CAAC;IACpC,OAAO,CAAC,EAAE,uBAAuB,CAAC;CACnC"}
1
+ {"version":3,"file":"PlanPreferencesInput.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/PlanPreferencesInput.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AACxF,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAClF,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAE5E,6EAA6E;AAC7E,MAAM,WAAW,oBAAoB;IACnC,MAAM,CAAC,EAAE,0BAA0B,CAAC;IACpC,OAAO,CAAC,EAAE,uBAAuB,CAAC;IAClC,aAAa,CAAC,EAAE,6BAA6B,CAAC;CAC/C"}
@@ -1,4 +1,6 @@
1
+ /** A stop or a station. */
1
2
  export interface PlanStopLocationInput {
3
+ /** Feed-prefixed id of a stop or station (`<feedId>:<id>`). */
2
4
  stopLocationId: string;
3
5
  }
4
6
  //# sourceMappingURL=PlanStopLocationInput.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PlanStopLocationInput.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/PlanStopLocationInput.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,qBAAqB;IACpC,cAAc,EAAE,MAAM,CAAC;CACxB"}
1
+ {"version":3,"file":"PlanStopLocationInput.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/PlanStopLocationInput.ts"],"names":[],"mappings":"AAAA,2BAA2B;AAC3B,MAAM,WAAW,qBAAqB;IACpC,+DAA+D;IAC/D,cAAc,EAAE,MAAM,CAAC;CACxB"}
@@ -0,0 +1,13 @@
1
+ import type { Itinerary } from './Itinerary.ts';
2
+ /** Progress, with the itineraries that became final since the previous `chunk`. */
3
+ export interface PlanStreamChunkEvent {
4
+ /** Seconds of the window searched so far. */
5
+ frontier: number;
6
+ /** Itineraries found so far. */
7
+ found: number;
8
+ /** Itineraries sent so far, this chunk's included. */
9
+ finalized: number;
10
+ /** Itineraries that became final with this chunk. */
11
+ results: Itinerary[];
12
+ }
13
+ //# sourceMappingURL=PlanStreamChunkEvent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PlanStreamChunkEvent.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/PlanStreamChunkEvent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAEhD,mFAAmF;AACnF,MAAM,WAAW,oBAAoB;IACnC,6CAA6C;IAC7C,QAAQ,EAAE,MAAM,CAAC;IACjB,gCAAgC;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,sDAAsD;IACtD,SAAS,EAAE,MAAM,CAAC;IAClB,qDAAqD;IACrD,OAAO,EAAE,SAAS,EAAE,CAAC;CACtB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=PlanStreamChunkEvent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PlanStreamChunkEvent.js","sourceRoot":"","sources":["../../../src/contract/routing/PlanStreamChunkEvent.ts"],"names":[],"mappings":""}
@@ -0,0 +1,12 @@
1
+ /** The search work this stream used; ends the stream. `stoppedBy` is `targetResults` (enough itineraries sent), `maxWindow` (the whole window searched), `directOnly` (a direct-only plan, which searches no transit) or `rejected` (a declined plan, one with no stops in range or no transit connection included); new values may be added. */
2
+ export interface PlanStreamDoneEvent {
3
+ /** Search iterations used. */
4
+ iterations: number;
5
+ /** Seconds of the window searched. */
6
+ windowSeconds: number;
7
+ /** Itineraries sent. */
8
+ resultCount: number;
9
+ /** Why the stream stopped. */
10
+ stoppedBy: string;
11
+ }
12
+ //# sourceMappingURL=PlanStreamDoneEvent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PlanStreamDoneEvent.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/PlanStreamDoneEvent.ts"],"names":[],"mappings":"AAAA,iVAAiV;AACjV,MAAM,WAAW,mBAAmB;IAClC,8BAA8B;IAC9B,UAAU,EAAE,MAAM,CAAC;IACnB,sCAAsC;IACtC,aAAa,EAAE,MAAM,CAAC;IACtB,wBAAwB;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,8BAA8B;IAC9B,SAAS,EAAE,MAAM,CAAC;CACnB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=PlanStreamDoneEvent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PlanStreamDoneEvent.js","sourceRoot":"","sources":["../../../src/contract/routing/PlanStreamDoneEvent.ts"],"names":[],"mappings":""}
@@ -0,0 +1,17 @@
1
+ import type { RoutingError } from './RoutingError.ts';
2
+ /** Sent once, after the last `chunk`. To continue, send `endCursor` as `after` or `startCursor` as `before` in a new request. */
3
+ export interface PlanStreamPageInfoEvent {
4
+ /** Send as `before` for earlier itineraries; null when there is none, as for a declined, direct-only or unroutable plan. */
5
+ startCursor: string | null;
6
+ /** Send as `after` for later itineraries; null when there is none, as for a declined, direct-only or unroutable plan. */
7
+ endCursor: string | null;
8
+ /** True exactly when `endCursor` is present. */
9
+ hasNextPage: boolean;
10
+ /** True exactly when `startCursor` is present. */
11
+ hasPreviousPage: boolean;
12
+ /** The window the stream searched, as an ISO-8601 duration; null when no transit search ran, as for a declined, direct-only or unroutable plan. */
13
+ searchWindowUsed: string | null;
14
+ /** Why the plan was declined; empty when it was not. */
15
+ routingErrors: RoutingError[];
16
+ }
17
+ //# sourceMappingURL=PlanStreamPageInfoEvent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PlanStreamPageInfoEvent.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/PlanStreamPageInfoEvent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEtD,iIAAiI;AACjI,MAAM,WAAW,uBAAuB;IACtC,4HAA4H;IAC5H,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,yHAAyH;IACzH,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,gDAAgD;IAChD,WAAW,EAAE,OAAO,CAAC;IACrB,kDAAkD;IAClD,eAAe,EAAE,OAAO,CAAC;IACzB,mJAAmJ;IACnJ,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,wDAAwD;IACxD,aAAa,EAAE,YAAY,EAAE,CAAC;CAC/B"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=PlanStreamPageInfoEvent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PlanStreamPageInfoEvent.js","sourceRoot":"","sources":["../../../src/contract/routing/PlanStreamPageInfoEvent.ts"],"names":[],"mappings":""}
@@ -0,0 +1,29 @@
1
+ import type { PlanDateTimeInput } from './PlanDateTimeInput.ts';
2
+ import type { PlanLabeledLocationInput } from './PlanLabeledLocationInput.ts';
3
+ import type { PlanModesInput } from './PlanModesInput.ts';
4
+ import type { PlanPreferencesInput } from './PlanPreferencesInput.ts';
5
+ import type { PlanViaLocationInput } from './PlanViaLocationInput.ts';
6
+ import type { Reliability } from './Reliability.ts';
7
+ /** POST body for `/routing/v1/plan-stream`: the Plan Trip search, streamed. Instead of a fixed window, the stream widens its search until it has sent at least `targetResults` itineraries or has searched `maxWindow`. To continue, send the `pageInfo` event's `endCursor` as `after` (later) or its `startCursor` as `before` (earlier); `before` and `after` are exclusive. A cursor carries the search it continues: it overrides `dateTime` (whether `earliestDeparture` or `latestArrival`) and the sort; `dateTime` stays required and is still checked. A key not listed here, at any depth, is a 400 `<path> is not allowed`, whatever its value, null included. Every bound is rejected, never clamped. `null` on an optional member means absent, and on a required member is a 400 `<path> is required`. */
8
+ export interface PlanStreamRequest {
9
+ dateTime: PlanDateTimeInput;
10
+ /** Where the journey starts. A stop id that resolves to no stop or station, a bare or foreign-prefixed one included, is a 200 with the `routingErrors` code `LOCATION_NOT_FOUND` on `FROM`. */
11
+ origin: PlanLabeledLocationInput;
12
+ /** Where the journey ends. A stop id that resolves to no stop or station, a bare or foreign-prefixed one included, is a 200 with the `routingErrors` code `LOCATION_NOT_FOUND` on `TO`. */
13
+ destination: PlanLabeledLocationInput;
14
+ /** Locations the journey must visit or pass through, in the order given, all of one kind: every entry `visit` or every entry `passThrough`; mixing them is a 400 `via is invalid`. How many a request takes is an environment setting, and an environment set to 0 has via turned off; more is a 400 `via is out of range`. A via stop id that resolves to no stop or station is a 200 with the `routingErrors` code `LOCATION_NOT_FOUND` on `VIA`. */
15
+ via?: PlanViaLocationInput[];
16
+ modes?: PlanModesInput;
17
+ preferences?: PlanPreferencesInput;
18
+ /** The stream stops once it has sent at least this many itineraries; the final flush may send more. 1 up to the environment's itinerary limit; rejected, never clamped. */
19
+ targetResults: number;
20
+ /** The stream stops once it has searched this far past `dateTime` (before it, for `latestArrival`), on every path, a cursor's included. An ISO-8601 duration in whole minutes: at least `PT2H` and at most the environment's search-window limit; a value that is not a whole number of minutes is a 400 `maxWindow is invalid`. Rejected, never clamped. */
21
+ maxWindow: string;
22
+ /** `pageInfo.startCursor` of a page, to fetch the page before it. Never with `after`. An `endCursor` here is a 400 `before is invalid`. */
23
+ before?: string;
24
+ /** `pageInfo.endCursor` of a page, to fetch the page after it. Never with `before`. A `startCursor` here is a 400 `after is invalid`. */
25
+ after?: string;
26
+ /** Delay-aware planning level; omitted or null plans on the timetable alone. */
27
+ reliability?: Reliability;
28
+ }
29
+ //# sourceMappingURL=PlanStreamRequest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PlanStreamRequest.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/PlanStreamRequest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAC9E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEpD,yxBAAyxB;AACzxB,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,iBAAiB,CAAC;IAC5B,+LAA+L;IAC/L,MAAM,EAAE,wBAAwB,CAAC;IACjC,2LAA2L;IAC3L,WAAW,EAAE,wBAAwB,CAAC;IACtC,ubAAub;IACvb,GAAG,CAAC,EAAE,oBAAoB,EAAE,CAAC;IAC7B,KAAK,CAAC,EAAE,cAAc,CAAC;IACvB,WAAW,CAAC,EAAE,oBAAoB,CAAC;IACnC,2KAA2K;IAC3K,aAAa,EAAE,MAAM,CAAC;IACtB,6VAA6V;IAC7V,SAAS,EAAE,MAAM,CAAC;IAClB,2IAA2I;IAC3I,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,yIAAyI;IACzI,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gFAAgF;IAChF,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=PlanStreamRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PlanStreamRequest.js","sourceRoot":"","sources":["../../../src/contract/routing/PlanStreamRequest.ts"],"names":[],"mappings":""}
@@ -1,11 +1,6 @@
1
- import type { BicyclePreferencesInput } from './BicyclePreferencesInput.ts';
2
- import type { CarPreferencesInput } from './CarPreferencesInput.ts';
3
- import type { ScooterPreferencesInput } from './ScooterPreferencesInput.ts';
4
1
  import type { WalkPreferencesInput } from './WalkPreferencesInput.ts';
2
+ /** Street preferences, for walking to, from and between stops. */
5
3
  export interface PlanStreetPreferencesInput {
6
- bicycle?: BicyclePreferencesInput;
7
- car?: CarPreferencesInput;
8
- scooter?: ScooterPreferencesInput;
9
4
  walk?: WalkPreferencesInput;
10
5
  }
11
6
  //# sourceMappingURL=PlanStreetPreferencesInput.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PlanStreetPreferencesInput.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/PlanStreetPreferencesInput.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAC5E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AACpE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAC5E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEtE,MAAM,WAAW,0BAA0B;IACzC,OAAO,CAAC,EAAE,uBAAuB,CAAC;IAClC,GAAG,CAAC,EAAE,mBAAmB,CAAC;IAC1B,OAAO,CAAC,EAAE,uBAAuB,CAAC;IAClC,IAAI,CAAC,EAAE,oBAAoB,CAAC;CAC7B"}
1
+ {"version":3,"file":"PlanStreetPreferencesInput.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/PlanStreetPreferencesInput.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEtE,kEAAkE;AAClE,MAAM,WAAW,0BAA0B;IACzC,IAAI,CAAC,EAAE,oBAAoB,CAAC;CAC7B"}