@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
@@ -1,7 +1,8 @@
1
1
  import type { TransitMode } from './TransitMode.ts';
2
2
  import type { TransitModePreferenceCostInput } from './TransitModePreferenceCostInput.ts';
3
+ /** A transit mode the search may use. */
3
4
  export interface PlanTransitModePreferenceInput {
4
- cost?: TransitModePreferenceCostInput;
5
5
  mode: TransitMode;
6
+ cost?: TransitModePreferenceCostInput;
6
7
  }
7
8
  //# sourceMappingURL=PlanTransitModePreferenceInput.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PlanTransitModePreferenceInput.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/PlanTransitModePreferenceInput.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AAE1F,MAAM,WAAW,8BAA8B;IAC7C,IAAI,CAAC,EAAE,8BAA8B,CAAC;IACtC,IAAI,EAAE,WAAW,CAAC;CACnB"}
1
+ {"version":3,"file":"PlanTransitModePreferenceInput.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/PlanTransitModePreferenceInput.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AAE1F,yCAAyC;AACzC,MAAM,WAAW,8BAA8B;IAC7C,IAAI,EAAE,WAAW,CAAC;IAClB,IAAI,CAAC,EAAE,8BAA8B,CAAC;CACvC"}
@@ -1,11 +1,7 @@
1
- import type { PlanAccessMode } from './PlanAccessMode.ts';
2
- import type { PlanEgressMode } from './PlanEgressMode.ts';
3
- import type { PlanTransferMode } from './PlanTransferMode.ts';
4
1
  import type { PlanTransitModePreferenceInput } from './PlanTransitModePreferenceInput.ts';
2
+ /** Transit modes the search may use. */
5
3
  export interface PlanTransitModesInput {
6
- access?: PlanAccessMode[];
7
- egress?: PlanEgressMode[];
8
- transfer?: PlanTransferMode[];
4
+ /** The modes an itinerary may ride, each with an optional reluctance. Absent means every mode. */
9
5
  transit?: PlanTransitModePreferenceInput[];
10
6
  }
11
7
  //# sourceMappingURL=PlanTransitModesInput.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PlanTransitModesInput.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/PlanTransitModesInput.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AAE1F,MAAM,WAAW,qBAAqB;IACpC,MAAM,CAAC,EAAE,cAAc,EAAE,CAAC;IAC1B,MAAM,CAAC,EAAE,cAAc,EAAE,CAAC;IAC1B,QAAQ,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAC9B,OAAO,CAAC,EAAE,8BAA8B,EAAE,CAAC;CAC5C"}
1
+ {"version":3,"file":"PlanTransitModesInput.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/PlanTransitModesInput.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AAE1F,wCAAwC;AACxC,MAAM,WAAW,qBAAqB;IACpC,kGAAkG;IAClG,OAAO,CAAC,EAAE,8BAA8B,EAAE,CAAC;CAC5C"}
@@ -0,0 +1,31 @@
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`: one page of itineraries. Paging: `before` and `after` are exclusive. Use `first` with `after` or with no cursor, and `last` only with `before`. The next page is the same body plus `after` (the page's `pageInfo.endCursor`), sized by `first`. The previous page is the same body without `first` and `after`, plus `before` (`pageInfo.startCursor`), sized by `last`. Any other pairing is a 400 naming the member that breaks it. A cursor carries the search it continues: it overrides `dateTime` (whether `earliestDeparture` or `latestArrival`), `searchWindow` and the sort, which stay required and are 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 PlanTripRequest {
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
+ /** How much time after `dateTime` the search covers (before it, for `latestArrival`), as an ISO-8601 duration: above zero and at most the environment's search-window limit; rejected, never clamped. A cursor overrides it. */
19
+ searchWindow: string;
20
+ /** Itineraries on this page: 1 up to the environment's itinerary limit; rejected, never clamped. Absent means the limit. With `after` or no cursor, never with `before`. */
21
+ first?: number;
22
+ /** Itineraries on the previous page: 1 up to the environment's itinerary limit; rejected, never clamped. Absent means the limit. Only with `before`. */
23
+ last?: number;
24
+ /** `pageInfo.startCursor` of a page, to fetch the page before it. Never with `after`. An `endCursor` here is a 400 `before is invalid`. */
25
+ before?: string;
26
+ /** `pageInfo.endCursor` of a page, to fetch the page after it. Never with `before`. A `startCursor` here is a 400 `after is invalid`. */
27
+ after?: string;
28
+ /** Delay-aware planning level; omitted or null plans on the timetable alone. */
29
+ reliability?: Reliability;
30
+ }
31
+ //# sourceMappingURL=PlanTripRequest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PlanTripRequest.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/PlanTripRequest.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,g4BAAg4B;AACh4B,MAAM,WAAW,eAAe;IAC9B,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,gOAAgO;IAChO,YAAY,EAAE,MAAM,CAAC;IACrB,4KAA4K;IAC5K,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,wJAAwJ;IACxJ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,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=PlanTripRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PlanTripRequest.js","sourceRoot":"","sources":["../../../src/contract/routing/PlanTripRequest.ts"],"names":[],"mappings":""}
@@ -0,0 +1,13 @@
1
+ import type { Itinerary } from './Itinerary.ts';
2
+ import type { PlanPageInfo } from './PlanPageInfo.ts';
3
+ import type { RoutingError } from './RoutingError.ts';
4
+ /** One page of itineraries. An empty `itineraries` with empty `routingErrors` means the search ran and found nothing in the window. A plan the router declines has the reason in `routingErrors`; with `NO_STOPS_IN_RANGE` or `NO_TRANSIT_CONNECTION`, `itineraries` holds the direct walk when one exists, and is empty otherwise. */
5
+ export interface PlanTripResponse {
6
+ itineraries: Itinerary[];
7
+ pageInfo: PlanPageInfo;
8
+ /** Why the plan was declined; empty when it was not. */
9
+ routingErrors: RoutingError[];
10
+ /** The date-time the search started from; with a cursor, the cursor's. */
11
+ searchDateTime: string;
12
+ }
13
+ //# sourceMappingURL=PlanTripResponse.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PlanTripResponse.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/PlanTripResponse.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEtD,uUAAuU;AACvU,MAAM,WAAW,gBAAgB;IAC/B,WAAW,EAAE,SAAS,EAAE,CAAC;IACzB,QAAQ,EAAE,YAAY,CAAC;IACvB,wDAAwD;IACxD,aAAa,EAAE,YAAY,EAAE,CAAC;IAC9B,0EAA0E;IAC1E,cAAc,EAAE,MAAM,CAAC;CACxB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=PlanTripResponse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PlanTripResponse.js","sourceRoot":"","sources":["../../../src/contract/routing/PlanTripResponse.ts"],"names":[],"mappings":""}
@@ -1,7 +1,10 @@
1
1
  import type { PlanPassThroughViaLocationInput } from './PlanPassThroughViaLocationInput.ts';
2
2
  import type { PlanVisitViaLocationInput } from './PlanVisitViaLocationInput.ts';
3
+ /** Exactly one of `passThrough`, `visit`; neither or both is a 400 `via is invalid`. */
3
4
  export interface PlanViaLocationInput {
5
+ /** The journey passes the location, on board or by changing vehicles there. */
4
6
  passThrough?: PlanPassThroughViaLocationInput;
7
+ /** The journey stops at the location: it alights there and boards again after `minimumWaitTime`. */
5
8
  visit?: PlanVisitViaLocationInput;
6
9
  }
7
10
  //# sourceMappingURL=PlanViaLocationInput.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PlanViaLocationInput.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/PlanViaLocationInput.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,sCAAsC,CAAC;AAC5F,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAEhF,MAAM,WAAW,oBAAoB;IACnC,WAAW,CAAC,EAAE,+BAA+B,CAAC;IAC9C,KAAK,CAAC,EAAE,yBAAyB,CAAC;CACnC"}
1
+ {"version":3,"file":"PlanViaLocationInput.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/PlanViaLocationInput.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,sCAAsC,CAAC;AAC5F,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAEhF,wFAAwF;AACxF,MAAM,WAAW,oBAAoB;IACnC,+EAA+E;IAC/E,WAAW,CAAC,EAAE,+BAA+B,CAAC;IAC9C,oGAAoG;IACpG,KAAK,CAAC,EAAE,yBAAyB,CAAC;CACnC"}
@@ -1,8 +1,8 @@
1
- import type { PlanCoordinateInput } from './PlanCoordinateInput.ts';
1
+ /** A location the journey stops at. */
2
2
  export interface PlanVisitViaLocationInput {
3
- coordinate?: PlanCoordinateInput;
4
- label?: string;
3
+ /** 1 to 10 feed-prefixed stop or station ids; visiting any one of them is enough. Absent is a 400 `via.visit.stopLocationIds is required`, and empty or more than 10 `via.visit.stopLocationIds is out of range`. */
4
+ stopLocationIds: string[];
5
+ /** Least time to stay at the location, as an ISO-8601 duration: `PT0S` to `PT1H`; rejected, never clamped. Absent means `PT0S`. */
5
6
  minimumWaitTime?: string;
6
- stopLocationIds?: string[];
7
7
  }
8
8
  //# sourceMappingURL=PlanVisitViaLocationInput.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PlanVisitViaLocationInput.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/PlanVisitViaLocationInput.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAEpE,MAAM,WAAW,yBAAyB;IACxC,UAAU,CAAC,EAAE,mBAAmB,CAAC;IACjC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;CAC5B"}
1
+ {"version":3,"file":"PlanVisitViaLocationInput.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/PlanVisitViaLocationInput.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,MAAM,WAAW,yBAAyB;IACxC,qNAAqN;IACrN,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,mIAAmI;IACnI,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B"}
@@ -1,5 +1,6 @@
1
1
  export interface RealTimeEstimate {
2
2
  time: string;
3
+ /** The difference from the schedule, as an ISO-8601 duration such as `PT2M`; negative when early, such as `-PT1M`. */
3
4
  delay: string;
4
5
  }
5
6
  //# sourceMappingURL=RealTimeEstimate.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RealTimeEstimate.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/RealTimeEstimate.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf"}
1
+ {"version":3,"file":"RealTimeEstimate.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/RealTimeEstimate.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,sHAAsH;IACtH,KAAK,EAAE,MAAM,CAAC;CACf"}
@@ -1,3 +1,3 @@
1
- /** Planning level: `STANDARD` plans arrivals with the p50 delay, `SAFE` p70, `VERY_SAFE` p90; omitted plans on the timetable. */
1
+ /** Planning level: `STANDARD` plans arrivals with the p50 delay, `SAFE` p70, `VERY_SAFE` p90; omitted plans on the timetable. Each leg's arrival is planned with that trip's typical delay at the stop on the service date's day type, from the environment's realtime history. Boarding keeps the scheduled departure, and a trip with live realtime uses its realtime times. */
2
2
  export type Reliability = 'STANDARD' | 'SAFE' | 'VERY_SAFE' | (string & {});
3
3
  //# sourceMappingURL=Reliability.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Reliability.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/Reliability.ts"],"names":[],"mappings":"AAAA,iIAAiI;AACjI,MAAM,MAAM,WAAW,GACnB,UAAU,GACV,MAAM,GACN,WAAW,GACX,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC"}
1
+ {"version":3,"file":"Reliability.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/Reliability.ts"],"names":[],"mappings":"AAAA,kXAAkX;AAClX,MAAM,MAAM,WAAW,GACnB,UAAU,GACV,MAAM,GACN,WAAW,GACX,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC"}
@@ -1,8 +1,12 @@
1
1
  export interface Route {
2
2
  gtfsId: string;
3
- shortName?: string;
4
- longName?: string;
5
- color?: string;
6
- textColor?: string;
3
+ /** Null when the feed has none. */
4
+ shortName: string | null;
5
+ /** Null when the feed has none. */
6
+ longName: string | null;
7
+ /** Hex without `#`; null when the feed has none. */
8
+ color: string | null;
9
+ /** Hex without `#`; null when the feed has none. */
10
+ textColor: string | null;
7
11
  }
8
12
  //# sourceMappingURL=Route.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Route.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/Route.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,KAAK;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
1
+ {"version":3,"file":"Route.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/Route.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,KAAK;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,mCAAmC;IACnC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,mCAAmC;IACnC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,oDAAoD;IACpD,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,oDAAoD;IACpD,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B"}
@@ -1,8 +1,10 @@
1
1
  import type { InputField } from './InputField.ts';
2
2
  import type { RoutingErrorCode } from './RoutingErrorCode.ts';
3
+ /** Why the router declined the plan or found no transit route. `LOCATION_NOT_FOUND`: a stop id resolves to no stop or station (`inputField` `FROM`, `TO` or `VIA`). `NO_STOPS_IN_RANGE`: no stop is in walking range of the origin (`FROM`) or the destination (`TO`). `NO_TRANSIT_CONNECTION`: the origin and the destination lie in parts of the transit network that no trip connects (`inputField` null). `WALKING_BETTER_THAN_TRANSIT`: the origin and destination are the same stop, a station and one of its own platforms, or coordinates that snap to the same street point (`inputField` null). `OUTSIDE_SERVICE_PERIOD`: the date is outside what the feed covers (`DATE_TIME`). New codes may be added. */
3
4
  export interface RoutingError {
4
5
  code: RoutingErrorCode;
5
6
  description: string;
6
- inputField?: InputField;
7
+ /** The request member at fault; null when it is none in particular. */
8
+ inputField: InputField | null;
7
9
  }
8
10
  //# sourceMappingURL=RoutingError.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RoutingError.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/RoutingError.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAE9D,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,gBAAgB,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,UAAU,CAAC;CACzB"}
1
+ {"version":3,"file":"RoutingError.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/RoutingError.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAE9D,urBAAurB;AACvrB,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,gBAAgB,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,uEAAuE;IACvE,UAAU,EAAE,UAAU,GAAG,IAAI,CAAC;CAC/B"}
@@ -1,2 +1,2 @@
1
- export type RoutingErrorCode = 'LOCATION_NOT_FOUND' | 'NO_STOPS_IN_RANGE' | 'NO_TRANSIT_CONNECTION' | 'NO_TRANSIT_CONNECTION_IN_SEARCH_WINDOW' | 'OUTSIDE_BOUNDS' | 'OUTSIDE_SERVICE_PERIOD' | 'WALKING_BETTER_THAN_TRANSIT' | (string & {});
1
+ export type RoutingErrorCode = 'LOCATION_NOT_FOUND' | 'NO_STOPS_IN_RANGE' | 'NO_TRANSIT_CONNECTION' | 'OUTSIDE_SERVICE_PERIOD' | 'WALKING_BETTER_THAN_TRANSIT' | (string & {});
2
2
  //# sourceMappingURL=RoutingErrorCode.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RoutingErrorCode.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/RoutingErrorCode.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GACxB,oBAAoB,GACpB,mBAAmB,GACnB,uBAAuB,GACvB,wCAAwC,GACxC,gBAAgB,GAChB,wBAAwB,GACxB,6BAA6B,GAC7B,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC"}
1
+ {"version":3,"file":"RoutingErrorCode.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/RoutingErrorCode.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GACxB,oBAAoB,GACpB,mBAAmB,GACnB,uBAAuB,GACvB,wBAAwB,GACxB,6BAA6B,GAC7B,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC"}
@@ -1,8 +1,10 @@
1
1
  import type { WheelchairBoarding } from './WheelchairBoarding.ts';
2
2
  export interface Stop {
3
3
  gtfsId: string;
4
- wheelchairBoarding?: WheelchairBoarding;
5
- platformCode?: string;
6
- zoneId?: string;
4
+ wheelchairBoarding: WheelchairBoarding;
5
+ /** Null when the feed has none. */
6
+ platformCode: string | null;
7
+ /** Null when the feed has none. */
8
+ zoneId: string | null;
7
9
  }
8
10
  //# sourceMappingURL=Stop.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Stop.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/Stop.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAElE,MAAM,WAAW,IAAI;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;IACxC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
1
+ {"version":3,"file":"Stop.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/Stop.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAElE,MAAM,WAAW,IAAI;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,kBAAkB,EAAE,kBAAkB,CAAC;IACvC,mCAAmC;IACnC,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,mCAAmC;IACnC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB"}
@@ -1,10 +1,14 @@
1
1
  import type { TransitMode } from './TransitMode.ts';
2
2
  export interface StopDeparturesRoute {
3
3
  gtfsId: string;
4
- shortName?: string;
5
- longName?: string;
6
- mode?: TransitMode;
7
- color?: string;
8
- textColor?: string;
4
+ /** Null when the feed has none. */
5
+ shortName: string | null;
6
+ /** Null when the feed has none. */
7
+ longName: string | null;
8
+ mode: TransitMode;
9
+ /** Hex without `#`; null when the feed has none. */
10
+ color: string | null;
11
+ /** Hex without `#`; null when the feed has none. */
12
+ textColor: string | null;
9
13
  }
10
14
  //# sourceMappingURL=StopDeparturesRoute.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"StopDeparturesRoute.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/StopDeparturesRoute.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEpD,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
1
+ {"version":3,"file":"StopDeparturesRoute.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/StopDeparturesRoute.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEpD,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,MAAM,CAAC;IACf,mCAAmC;IACnC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,mCAAmC;IACnC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,IAAI,EAAE,WAAW,CAAC;IAClB,oDAAoD;IACpD,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,oDAAoD;IACpD,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B"}
@@ -1,5 +1,6 @@
1
1
  export interface StopDeparturesStop {
2
2
  gtfsId: string;
3
- platformCode?: string;
3
+ /** Null when the feed has none. */
4
+ platformCode: string | null;
4
5
  }
5
6
  //# sourceMappingURL=StopDeparturesStop.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"StopDeparturesStop.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/StopDeparturesStop.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB"}
1
+ {"version":3,"file":"StopDeparturesStop.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/StopDeparturesStop.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,mCAAmC;IACnC,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B"}
@@ -2,15 +2,21 @@ import type { RealtimeState } from './RealtimeState.ts';
2
2
  import type { StopDeparturesStop } from './StopDeparturesStop.ts';
3
3
  import type { StopDeparturesTrip } from './StopDeparturesTrip.ts';
4
4
  export interface StopDeparturesStoptime {
5
- serviceDay?: number;
6
- scheduledDeparture?: number;
7
- realtimeDeparture?: number;
8
- realtime?: boolean;
9
- realtimeState?: RealtimeState;
10
- /** Typical (p50) delay at this stop in seconds for this trip on the service date's day type; null when unknown. */
11
- typicalDelay?: number;
12
- headsign?: string;
13
- stop?: StopDeparturesStop;
14
- trip?: StopDeparturesTrip;
5
+ /** Unix seconds at the start of the trip's service day; it plus a seconds field gives that time as Unix seconds. */
6
+ serviceDay: number;
7
+ /** Seconds after `serviceDay`. */
8
+ scheduledDeparture: number;
9
+ /** Seconds after `serviceDay`, realtime merged in; the schedule when there is none. */
10
+ realtimeDeparture: number;
11
+ /** True when `realtimeDeparture` comes from realtime. */
12
+ realtime: boolean;
13
+ realtimeState: RealtimeState;
14
+ /** The trip's usual delay at this stop in seconds: the median (p50) recorded 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 the trip has live realtime or there is no history. */
15
+ typicalDelay: number | null;
16
+ /** Null when the feed has none. */
17
+ headsign: string | null;
18
+ /** The platform or stand the departure leaves from, which tells a station's platforms apart. */
19
+ stop: StopDeparturesStop;
20
+ trip: StopDeparturesTrip;
15
21
  }
16
22
  //# sourceMappingURL=StopDeparturesStoptime.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"StopDeparturesStoptime.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/StopDeparturesStoptime.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAElE,MAAM,WAAW,sBAAsB;IACrC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,mHAAmH;IACnH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,kBAAkB,CAAC;IAC1B,IAAI,CAAC,EAAE,kBAAkB,CAAC;CAC3B"}
1
+ {"version":3,"file":"StopDeparturesStoptime.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/StopDeparturesStoptime.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAElE,MAAM,WAAW,sBAAsB;IACrC,oHAAoH;IACpH,UAAU,EAAE,MAAM,CAAC;IACnB,kCAAkC;IAClC,kBAAkB,EAAE,MAAM,CAAC;IAC3B,uFAAuF;IACvF,iBAAiB,EAAE,MAAM,CAAC;IAC1B,yDAAyD;IACzD,QAAQ,EAAE,OAAO,CAAC;IAClB,aAAa,EAAE,aAAa,CAAC;IAC7B,mRAAmR;IACnR,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,mCAAmC;IACnC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,gGAAgG;IAChG,IAAI,EAAE,kBAAkB,CAAC;IACzB,IAAI,EAAE,kBAAkB,CAAC;CAC1B"}
@@ -3,8 +3,8 @@ import type { StopDeparturesRoute } from './StopDeparturesRoute.ts';
3
3
  import type { WheelchairBoarding } from './WheelchairBoarding.ts';
4
4
  export interface StopDeparturesTrip {
5
5
  gtfsId: string;
6
- bikesAllowed?: BikesAllowed;
7
- wheelchairAccessible?: WheelchairBoarding;
6
+ bikesAllowed: BikesAllowed;
7
+ wheelchairAccessible: WheelchairBoarding;
8
8
  route: StopDeparturesRoute;
9
9
  }
10
10
  //# sourceMappingURL=StopDeparturesTrip.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"StopDeparturesTrip.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/StopDeparturesTrip.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AACpE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAElE,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,oBAAoB,CAAC,EAAE,kBAAkB,CAAC;IAC1C,KAAK,EAAE,mBAAmB,CAAC;CAC5B"}
1
+ {"version":3,"file":"StopDeparturesTrip.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/StopDeparturesTrip.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AACpE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAElE,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,YAAY,CAAC;IAC3B,oBAAoB,EAAE,kBAAkB,CAAC;IACzC,KAAK,EAAE,mBAAmB,CAAC;CAC5B"}
@@ -1,15 +1,21 @@
1
1
  import type { RealtimeState } from './RealtimeState.ts';
2
2
  import type { TripStop } from './TripStop.ts';
3
3
  export interface Stoptime {
4
- serviceDay?: number;
5
- scheduledArrival?: number;
6
- scheduledDeparture?: number;
7
- realtimeArrival?: number;
8
- realtimeDeparture?: number;
9
- realtime?: boolean;
10
- realtimeState?: RealtimeState;
11
- /** Typical (p50) delay at this stop in seconds for this trip on the service date's day type; null when unknown. */
12
- typicalDelay?: number;
13
- stop?: TripStop;
4
+ /** Unix seconds at the start of the trip's service day; it plus a seconds field gives that time as Unix seconds. */
5
+ serviceDay: number;
6
+ /** Seconds after `serviceDay`. */
7
+ scheduledArrival: number;
8
+ /** Seconds after `serviceDay`. */
9
+ scheduledDeparture: number;
10
+ /** Seconds after `serviceDay`, realtime merged in; the schedule when there is none. */
11
+ realtimeArrival: number;
12
+ /** Seconds after `serviceDay`, realtime merged in; the schedule when there is none. */
13
+ realtimeDeparture: number;
14
+ /** True when `realtimeArrival` and `realtimeDeparture` come from realtime. */
15
+ realtime: boolean;
16
+ realtimeState: RealtimeState;
17
+ /** The trip's usual delay at this stop in seconds: the median (p50) recorded 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 the trip has live realtime or there is no history. */
18
+ typicalDelay: number | null;
19
+ stop: TripStop;
14
20
  }
15
21
  //# sourceMappingURL=Stoptime.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Stoptime.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/Stoptime.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAE9C,MAAM,WAAW,QAAQ;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,mHAAmH;IACnH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,IAAI,CAAC,EAAE,QAAQ,CAAC;CACjB"}
1
+ {"version":3,"file":"Stoptime.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/Stoptime.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAE9C,MAAM,WAAW,QAAQ;IACvB,oHAAoH;IACpH,UAAU,EAAE,MAAM,CAAC;IACnB,kCAAkC;IAClC,gBAAgB,EAAE,MAAM,CAAC;IACzB,kCAAkC;IAClC,kBAAkB,EAAE,MAAM,CAAC;IAC3B,uFAAuF;IACvF,eAAe,EAAE,MAAM,CAAC;IACxB,uFAAuF;IACvF,iBAAiB,EAAE,MAAM,CAAC;IAC1B,8EAA8E;IAC9E,QAAQ,EAAE,OAAO,CAAC;IAClB,aAAa,EAAE,aAAa,CAAC;IAC7B,mRAAmR;IACnR,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,IAAI,EAAE,QAAQ,CAAC;CAChB"}
@@ -1,7 +1,10 @@
1
+ /** Transfer preferences. */
1
2
  export interface TransferPreferencesInput {
3
+ /** Generalized cost added for each transfer, an integer from 0 to 1000000; rejected, never clamped. */
2
4
  cost?: number;
3
- maximumAdditionalTransfers?: number;
4
- maximumTransfers?: number;
5
+ /** Least time between alighting one vehicle and boarding the next, on top of the walk between stops, as an ISO-8601 duration: `PT0S` to `PT1H`; rejected, never clamped. */
5
6
  slack?: string;
7
+ /** Most rides an itinerary may take: `N` allows `N - 1` transfers, and `0` allows walking only. From 0 up to the environment's transfer limit plus 1; rejected, never clamped. Absent means the environment's limit. */
8
+ maximumTransfers?: number;
6
9
  }
7
10
  //# sourceMappingURL=TransferPreferencesInput.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TransferPreferencesInput.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/TransferPreferencesInput.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,wBAAwB;IACvC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB"}
1
+ {"version":3,"file":"TransferPreferencesInput.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/TransferPreferencesInput.ts"],"names":[],"mappings":"AAAA,4BAA4B;AAC5B,MAAM,WAAW,wBAAwB;IACvC,uGAAuG;IACvG,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,4KAA4K;IAC5K,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,wNAAwN;IACxN,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B"}
@@ -1,6 +1,7 @@
1
1
  import type { TransitFilterSelectInput } from './TransitFilterSelectInput.ts';
2
+ /** A filter on the trips the search may ride. */
2
3
  export interface TransitFilterInput {
4
+ /** Leave out every trip of a route or agency that any of these selectors names. An id that names no route or agency of the environment's feed, a bare or foreign-prefixed one included, excludes nothing. */
3
5
  exclude?: TransitFilterSelectInput[];
4
- include?: TransitFilterSelectInput[];
5
6
  }
6
7
  //# sourceMappingURL=TransitFilterInput.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TransitFilterInput.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/TransitFilterInput.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAE9E,MAAM,WAAW,kBAAkB;IACjC,OAAO,CAAC,EAAE,wBAAwB,EAAE,CAAC;IACrC,OAAO,CAAC,EAAE,wBAAwB,EAAE,CAAC;CACtC"}
1
+ {"version":3,"file":"TransitFilterInput.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/TransitFilterInput.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAE9E,iDAAiD;AACjD,MAAM,WAAW,kBAAkB;IACjC,6MAA6M;IAC7M,OAAO,CAAC,EAAE,wBAAwB,EAAE,CAAC;CACtC"}
@@ -1,5 +1,8 @@
1
+ /** Exactly one of `routes`, `agencies`; neither or both is a 400 naming `preferences.transit.filters.exclude`. */
1
2
  export interface TransitFilterSelectInput {
2
- agencies?: string[];
3
+ /** Feed-prefixed route ids (`<feedId>:<routeId>`). */
3
4
  routes?: string[];
5
+ /** Feed-prefixed agency ids (`<feedId>:<agencyId>`). */
6
+ agencies?: string[];
4
7
  }
5
8
  //# sourceMappingURL=TransitFilterSelectInput.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TransitFilterSelectInput.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/TransitFilterSelectInput.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;CACnB"}
1
+ {"version":3,"file":"TransitFilterSelectInput.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/TransitFilterSelectInput.ts"],"names":[],"mappings":"AAAA,kHAAkH;AAClH,MAAM,WAAW,wBAAwB;IACvC,sDAAsD;IACtD,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,wDAAwD;IACxD,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;CACrB"}
@@ -1,4 +1,6 @@
1
+ /** Cost settings for a transit mode. */
1
2
  export interface TransitModePreferenceCostInput {
3
+ /** Multiplier on the time spent riding this mode, from 0.1 to 100000: above 1 avoids the mode, below 1 favours it; rejected, never clamped. */
2
4
  reluctance: number;
3
5
  }
4
6
  //# sourceMappingURL=TransitModePreferenceCostInput.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TransitModePreferenceCostInput.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/TransitModePreferenceCostInput.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,8BAA8B;IAC7C,UAAU,EAAE,MAAM,CAAC;CACpB"}
1
+ {"version":3,"file":"TransitModePreferenceCostInput.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/TransitModePreferenceCostInput.ts"],"names":[],"mappings":"AAAA,wCAAwC;AACxC,MAAM,WAAW,8BAA8B;IAC7C,+IAA+I;IAC/I,UAAU,EAAE,MAAM,CAAC;CACpB"}
@@ -1,13 +1,13 @@
1
1
  import type { AlightPreferencesInput } from './AlightPreferencesInput.ts';
2
2
  import type { BoardPreferencesInput } from './BoardPreferencesInput.ts';
3
- import type { TimetablePreferencesInput } from './TimetablePreferencesInput.ts';
4
3
  import type { TransferPreferencesInput } from './TransferPreferencesInput.ts';
5
4
  import type { TransitFilterInput } from './TransitFilterInput.ts';
5
+ /** Transit preferences. */
6
6
  export interface TransitPreferencesInput {
7
- alight?: AlightPreferencesInput;
7
+ transfer?: TransferPreferencesInput;
8
8
  board?: BoardPreferencesInput;
9
+ alight?: AlightPreferencesInput;
10
+ /** Routes or agencies to leave out of the search. */
9
11
  filters?: TransitFilterInput[];
10
- timetable?: TimetablePreferencesInput;
11
- transfer?: TransferPreferencesInput;
12
12
  }
13
13
  //# sourceMappingURL=TransitPreferencesInput.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TransitPreferencesInput.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/TransitPreferencesInput.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAC1E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACxE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAChF,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAC9E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAElE,MAAM,WAAW,uBAAuB;IACtC,MAAM,CAAC,EAAE,sBAAsB,CAAC;IAChC,KAAK,CAAC,EAAE,qBAAqB,CAAC;IAC9B,OAAO,CAAC,EAAE,kBAAkB,EAAE,CAAC;IAC/B,SAAS,CAAC,EAAE,yBAAyB,CAAC;IACtC,QAAQ,CAAC,EAAE,wBAAwB,CAAC;CACrC"}
1
+ {"version":3,"file":"TransitPreferencesInput.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/TransitPreferencesInput.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAC1E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACxE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAC9E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAElE,2BAA2B;AAC3B,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,EAAE,wBAAwB,CAAC;IACpC,KAAK,CAAC,EAAE,qBAAqB,CAAC;IAC9B,MAAM,CAAC,EAAE,sBAAsB,CAAC;IAChC,qDAAqD;IACrD,OAAO,CAAC,EAAE,kBAAkB,EAAE,CAAC;CAChC"}
@@ -1,6 +1,6 @@
1
1
  import type { BikesAllowed } from './BikesAllowed.ts';
2
2
  export interface Trip {
3
3
  gtfsId: string;
4
- bikesAllowed?: BikesAllowed;
4
+ bikesAllowed: BikesAllowed;
5
5
  }
6
6
  //# sourceMappingURL=Trip.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Trip.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/Trip.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEtD,MAAM,WAAW,IAAI;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,YAAY,CAAC;CAC7B"}
1
+ {"version":3,"file":"Trip.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/Trip.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEtD,MAAM,WAAW,IAAI;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,YAAY,CAAC;CAC5B"}
@@ -1,5 +1,7 @@
1
1
  export interface TripGeometry {
2
- points?: string;
3
- length?: number;
2
+ /** Encoded polyline (precision 1e5). */
3
+ points: string;
4
+ /** Number of points. */
5
+ length: number;
4
6
  }
5
7
  //# sourceMappingURL=TripGeometry.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TripGeometry.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/TripGeometry.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
1
+ {"version":3,"file":"TripGeometry.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/TripGeometry.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAC3B,wCAAwC;IACxC,MAAM,EAAE,MAAM,CAAC;IACf,wBAAwB;IACxB,MAAM,EAAE,MAAM,CAAC;CAChB"}
@@ -0,0 +1,8 @@
1
+ /** POST body for `/routing/v1/trip`. A key not listed here is a 400 `<key> is not allowed`, whatever its value, null included. `null` on an optional member means absent, and on a required member is a 400 `<path> is required`. */
2
+ export interface TripRequest {
3
+ /** Feed-prefixed trip id (`<feedId>:<id>`). A bare or foreign-prefixed id resolves to nothing, and `trip` is null. */
4
+ id: string;
5
+ /** The service date, `YYYY-MM-DD` (`YYYYMMDD` also works). Absent means today in the feed's time zone, whether or not the feed covers it. A value that is not a real date is a 400 `serviceDate is invalid`. */
6
+ serviceDate?: string;
7
+ }
8
+ //# sourceMappingURL=TripRequest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TripRequest.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/TripRequest.ts"],"names":[],"mappings":"AAAA,qOAAqO;AACrO,MAAM,WAAW,WAAW;IAC1B,sHAAsH;IACtH,EAAE,EAAE,MAAM,CAAC;IACX,gNAAgN;IAChN,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=TripRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TripRequest.js","sourceRoot":"","sources":["../../../src/contract/routing/TripRequest.ts"],"names":[],"mappings":""}
@@ -1,7 +1,6 @@
1
- import type { GraphQLError } from './GraphQLError.ts';
2
- import type { TripData } from './TripData.ts';
1
+ import type { TripTimetable } from './TripTimetable.ts';
2
+ /** `trip` is null for an id that resolves to no trip. */
3
3
  export interface TripResponse {
4
- data?: TripData;
5
- errors?: GraphQLError[];
4
+ trip: TripTimetable | null;
6
5
  }
7
6
  //# sourceMappingURL=TripResponse.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TripResponse.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/TripResponse.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAE9C,MAAM,WAAW,YAAY;IAC3B,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,MAAM,CAAC,EAAE,YAAY,EAAE,CAAC;CACzB"}
1
+ {"version":3,"file":"TripResponse.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/TripResponse.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAExD,yDAAyD;AACzD,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,aAAa,GAAG,IAAI,CAAC;CAC5B"}
@@ -1,10 +1,14 @@
1
1
  import type { TransitMode } from './TransitMode.ts';
2
2
  export interface TripRoute {
3
3
  gtfsId: string;
4
- shortName?: string;
5
- longName?: string;
6
- mode?: TransitMode;
7
- color?: string;
8
- textColor?: string;
4
+ /** Null when the feed has none. */
5
+ shortName: string | null;
6
+ /** Null when the feed has none. */
7
+ longName: string | null;
8
+ mode: TransitMode;
9
+ /** Hex without `#`; null when the feed has none. */
10
+ color: string | null;
11
+ /** Hex without `#`; null when the feed has none. */
12
+ textColor: string | null;
9
13
  }
10
14
  //# sourceMappingURL=TripRoute.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TripRoute.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/TripRoute.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEpD,MAAM,WAAW,SAAS;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
1
+ {"version":3,"file":"TripRoute.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/TripRoute.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEpD,MAAM,WAAW,SAAS;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,mCAAmC;IACnC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,mCAAmC;IACnC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,IAAI,EAAE,WAAW,CAAC;IAClB,oDAAoD;IACpD,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,oDAAoD;IACpD,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B"}