@tiducto/spider-sdk-typescript 0.1.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 (427) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +120 -0
  3. package/dist/client.d.ts +12 -0
  4. package/dist/client.d.ts.map +1 -0
  5. package/dist/client.js +24 -0
  6. package/dist/client.js.map +1 -0
  7. package/dist/contract/routing/AccessibilityPreferencesInput.d.ts +5 -0
  8. package/dist/contract/routing/AccessibilityPreferencesInput.d.ts.map +1 -0
  9. package/dist/contract/routing/AccessibilityPreferencesInput.js +2 -0
  10. package/dist/contract/routing/AccessibilityPreferencesInput.js.map +1 -0
  11. package/dist/contract/routing/AlightPreferencesInput.d.ts +4 -0
  12. package/dist/contract/routing/AlightPreferencesInput.d.ts.map +1 -0
  13. package/dist/contract/routing/AlightPreferencesInput.js +2 -0
  14. package/dist/contract/routing/AlightPreferencesInput.js.map +1 -0
  15. package/dist/contract/routing/BicycleParkingPreferencesInput.d.ts +7 -0
  16. package/dist/contract/routing/BicycleParkingPreferencesInput.d.ts.map +1 -0
  17. package/dist/contract/routing/BicycleParkingPreferencesInput.js +2 -0
  18. package/dist/contract/routing/BicycleParkingPreferencesInput.js.map +1 -0
  19. package/dist/contract/routing/BicyclePreferencesInput.d.ts +14 -0
  20. package/dist/contract/routing/BicyclePreferencesInput.d.ts.map +1 -0
  21. package/dist/contract/routing/BicyclePreferencesInput.js +2 -0
  22. package/dist/contract/routing/BicyclePreferencesInput.js.map +1 -0
  23. package/dist/contract/routing/BicycleRentalPreferencesInput.d.ts +7 -0
  24. package/dist/contract/routing/BicycleRentalPreferencesInput.d.ts.map +1 -0
  25. package/dist/contract/routing/BicycleRentalPreferencesInput.js +2 -0
  26. package/dist/contract/routing/BicycleRentalPreferencesInput.js.map +1 -0
  27. package/dist/contract/routing/BicycleWalkPreferencesCostInput.d.ts +5 -0
  28. package/dist/contract/routing/BicycleWalkPreferencesCostInput.d.ts.map +1 -0
  29. package/dist/contract/routing/BicycleWalkPreferencesCostInput.js +2 -0
  30. package/dist/contract/routing/BicycleWalkPreferencesCostInput.js.map +1 -0
  31. package/dist/contract/routing/BicycleWalkPreferencesInput.d.ts +7 -0
  32. package/dist/contract/routing/BicycleWalkPreferencesInput.d.ts.map +1 -0
  33. package/dist/contract/routing/BicycleWalkPreferencesInput.js +2 -0
  34. package/dist/contract/routing/BicycleWalkPreferencesInput.js.map +1 -0
  35. package/dist/contract/routing/BikesAllowed.d.ts +2 -0
  36. package/dist/contract/routing/BikesAllowed.d.ts.map +1 -0
  37. package/dist/contract/routing/BikesAllowed.js +2 -0
  38. package/dist/contract/routing/BikesAllowed.js.map +1 -0
  39. package/dist/contract/routing/BoardPreferencesInput.d.ts +5 -0
  40. package/dist/contract/routing/BoardPreferencesInput.d.ts.map +1 -0
  41. package/dist/contract/routing/BoardPreferencesInput.js +2 -0
  42. package/dist/contract/routing/BoardPreferencesInput.js.map +1 -0
  43. package/dist/contract/routing/CarParkingPreferencesInput.d.ts +7 -0
  44. package/dist/contract/routing/CarParkingPreferencesInput.d.ts.map +1 -0
  45. package/dist/contract/routing/CarParkingPreferencesInput.js +2 -0
  46. package/dist/contract/routing/CarParkingPreferencesInput.js.map +1 -0
  47. package/dist/contract/routing/CarPreferencesInput.d.ts +9 -0
  48. package/dist/contract/routing/CarPreferencesInput.d.ts.map +1 -0
  49. package/dist/contract/routing/CarPreferencesInput.js +2 -0
  50. package/dist/contract/routing/CarPreferencesInput.js.map +1 -0
  51. package/dist/contract/routing/CarRentalPreferencesInput.d.ts +6 -0
  52. package/dist/contract/routing/CarRentalPreferencesInput.d.ts.map +1 -0
  53. package/dist/contract/routing/CarRentalPreferencesInput.js +2 -0
  54. package/dist/contract/routing/CarRentalPreferencesInput.js.map +1 -0
  55. package/dist/contract/routing/CyclingOptimizationInput.d.ts +7 -0
  56. package/dist/contract/routing/CyclingOptimizationInput.d.ts.map +1 -0
  57. package/dist/contract/routing/CyclingOptimizationInput.js +2 -0
  58. package/dist/contract/routing/CyclingOptimizationInput.js.map +1 -0
  59. package/dist/contract/routing/CyclingOptimizationType.d.ts +2 -0
  60. package/dist/contract/routing/CyclingOptimizationType.d.ts.map +1 -0
  61. package/dist/contract/routing/CyclingOptimizationType.js +2 -0
  62. package/dist/contract/routing/CyclingOptimizationType.js.map +1 -0
  63. package/dist/contract/routing/DestinationBicyclePolicyInput.d.ts +5 -0
  64. package/dist/contract/routing/DestinationBicyclePolicyInput.d.ts.map +1 -0
  65. package/dist/contract/routing/DestinationBicyclePolicyInput.js +2 -0
  66. package/dist/contract/routing/DestinationBicyclePolicyInput.js.map +1 -0
  67. package/dist/contract/routing/DestinationScooterPolicyInput.d.ts +5 -0
  68. package/dist/contract/routing/DestinationScooterPolicyInput.d.ts.map +1 -0
  69. package/dist/contract/routing/DestinationScooterPolicyInput.js +2 -0
  70. package/dist/contract/routing/DestinationScooterPolicyInput.js.map +1 -0
  71. package/dist/contract/routing/ErrorResponse.d.ts +6 -0
  72. package/dist/contract/routing/ErrorResponse.d.ts.map +1 -0
  73. package/dist/contract/routing/ErrorResponse.js +2 -0
  74. package/dist/contract/routing/ErrorResponse.js.map +1 -0
  75. package/dist/contract/routing/Geometry.d.ts +4 -0
  76. package/dist/contract/routing/Geometry.d.ts.map +1 -0
  77. package/dist/contract/routing/Geometry.js +2 -0
  78. package/dist/contract/routing/Geometry.js.map +1 -0
  79. package/dist/contract/routing/GraphQLError.d.ts +5 -0
  80. package/dist/contract/routing/GraphQLError.d.ts.map +1 -0
  81. package/dist/contract/routing/GraphQLError.js +2 -0
  82. package/dist/contract/routing/GraphQLError.js.map +1 -0
  83. package/dist/contract/routing/InputField.d.ts +2 -0
  84. package/dist/contract/routing/InputField.d.ts.map +1 -0
  85. package/dist/contract/routing/InputField.js +2 -0
  86. package/dist/contract/routing/InputField.js.map +1 -0
  87. package/dist/contract/routing/Itinerary.d.ts +11 -0
  88. package/dist/contract/routing/Itinerary.d.ts.map +1 -0
  89. package/dist/contract/routing/Itinerary.js +2 -0
  90. package/dist/contract/routing/Itinerary.js.map +1 -0
  91. package/dist/contract/routing/Leg.d.ts +24 -0
  92. package/dist/contract/routing/Leg.d.ts.map +1 -0
  93. package/dist/contract/routing/Leg.js +2 -0
  94. package/dist/contract/routing/Leg.js.map +1 -0
  95. package/dist/contract/routing/LegTime.d.ts +6 -0
  96. package/dist/contract/routing/LegTime.d.ts.map +1 -0
  97. package/dist/contract/routing/LegTime.js +2 -0
  98. package/dist/contract/routing/LegTime.js.map +1 -0
  99. package/dist/contract/routing/Mode.d.ts +2 -0
  100. package/dist/contract/routing/Mode.d.ts.map +1 -0
  101. package/dist/contract/routing/Mode.js +2 -0
  102. package/dist/contract/routing/Mode.js.map +1 -0
  103. package/dist/contract/routing/ParkingFilter.d.ts +6 -0
  104. package/dist/contract/routing/ParkingFilter.d.ts.map +1 -0
  105. package/dist/contract/routing/ParkingFilter.js +2 -0
  106. package/dist/contract/routing/ParkingFilter.js.map +1 -0
  107. package/dist/contract/routing/ParkingFilterOperation.d.ts +4 -0
  108. package/dist/contract/routing/ParkingFilterOperation.d.ts.map +1 -0
  109. package/dist/contract/routing/ParkingFilterOperation.js +2 -0
  110. package/dist/contract/routing/ParkingFilterOperation.js.map +1 -0
  111. package/dist/contract/routing/Place.d.ts +6 -0
  112. package/dist/contract/routing/Place.d.ts.map +1 -0
  113. package/dist/contract/routing/Place.js +2 -0
  114. package/dist/contract/routing/Place.js.map +1 -0
  115. package/dist/contract/routing/PlanAccessMode.d.ts +2 -0
  116. package/dist/contract/routing/PlanAccessMode.d.ts.map +1 -0
  117. package/dist/contract/routing/PlanAccessMode.js +2 -0
  118. package/dist/contract/routing/PlanAccessMode.js.map +1 -0
  119. package/dist/contract/routing/PlanConnection.d.ts +10 -0
  120. package/dist/contract/routing/PlanConnection.d.ts.map +1 -0
  121. package/dist/contract/routing/PlanConnection.js +2 -0
  122. package/dist/contract/routing/PlanConnection.js.map +1 -0
  123. package/dist/contract/routing/PlanConnectionData.d.ts +5 -0
  124. package/dist/contract/routing/PlanConnectionData.d.ts.map +1 -0
  125. package/dist/contract/routing/PlanConnectionData.js +2 -0
  126. package/dist/contract/routing/PlanConnectionData.js.map +1 -0
  127. package/dist/contract/routing/PlanConnectionResponse.d.ts +7 -0
  128. package/dist/contract/routing/PlanConnectionResponse.d.ts.map +1 -0
  129. package/dist/contract/routing/PlanConnectionResponse.js +2 -0
  130. package/dist/contract/routing/PlanConnectionResponse.js.map +1 -0
  131. package/dist/contract/routing/PlanConnectionVariables.d.ts +19 -0
  132. package/dist/contract/routing/PlanConnectionVariables.d.ts.map +1 -0
  133. package/dist/contract/routing/PlanConnectionVariables.js +2 -0
  134. package/dist/contract/routing/PlanConnectionVariables.js.map +1 -0
  135. package/dist/contract/routing/PlanCoordinateInput.d.ts +5 -0
  136. package/dist/contract/routing/PlanCoordinateInput.d.ts.map +1 -0
  137. package/dist/contract/routing/PlanCoordinateInput.js +2 -0
  138. package/dist/contract/routing/PlanCoordinateInput.js.map +1 -0
  139. package/dist/contract/routing/PlanDateTimeInput.d.ts +5 -0
  140. package/dist/contract/routing/PlanDateTimeInput.d.ts.map +1 -0
  141. package/dist/contract/routing/PlanDateTimeInput.js +2 -0
  142. package/dist/contract/routing/PlanDateTimeInput.js.map +1 -0
  143. package/dist/contract/routing/PlanDirectMode.d.ts +2 -0
  144. package/dist/contract/routing/PlanDirectMode.d.ts.map +1 -0
  145. package/dist/contract/routing/PlanDirectMode.js +2 -0
  146. package/dist/contract/routing/PlanDirectMode.js.map +1 -0
  147. package/dist/contract/routing/PlanEdge.d.ts +6 -0
  148. package/dist/contract/routing/PlanEdge.d.ts.map +1 -0
  149. package/dist/contract/routing/PlanEdge.js +2 -0
  150. package/dist/contract/routing/PlanEdge.js.map +1 -0
  151. package/dist/contract/routing/PlanEgressMode.d.ts +2 -0
  152. package/dist/contract/routing/PlanEgressMode.d.ts.map +1 -0
  153. package/dist/contract/routing/PlanEgressMode.js +2 -0
  154. package/dist/contract/routing/PlanEgressMode.js.map +1 -0
  155. package/dist/contract/routing/PlanLabeledLocationInput.d.ts +6 -0
  156. package/dist/contract/routing/PlanLabeledLocationInput.d.ts.map +1 -0
  157. package/dist/contract/routing/PlanLabeledLocationInput.js +2 -0
  158. package/dist/contract/routing/PlanLabeledLocationInput.js.map +1 -0
  159. package/dist/contract/routing/PlanLocationInput.d.ts +7 -0
  160. package/dist/contract/routing/PlanLocationInput.d.ts.map +1 -0
  161. package/dist/contract/routing/PlanLocationInput.js +2 -0
  162. package/dist/contract/routing/PlanLocationInput.js.map +1 -0
  163. package/dist/contract/routing/PlanModesInput.d.ts +9 -0
  164. package/dist/contract/routing/PlanModesInput.d.ts.map +1 -0
  165. package/dist/contract/routing/PlanModesInput.js +2 -0
  166. package/dist/contract/routing/PlanModesInput.js.map +1 -0
  167. package/dist/contract/routing/PlanPageInfo.d.ts +8 -0
  168. package/dist/contract/routing/PlanPageInfo.d.ts.map +1 -0
  169. package/dist/contract/routing/PlanPageInfo.js +2 -0
  170. package/dist/contract/routing/PlanPageInfo.js.map +1 -0
  171. package/dist/contract/routing/PlanPassThroughViaLocationInput.d.ts +5 -0
  172. package/dist/contract/routing/PlanPassThroughViaLocationInput.d.ts.map +1 -0
  173. package/dist/contract/routing/PlanPassThroughViaLocationInput.js +2 -0
  174. package/dist/contract/routing/PlanPassThroughViaLocationInput.js.map +1 -0
  175. package/dist/contract/routing/PlanPreferencesInput.d.ts +9 -0
  176. package/dist/contract/routing/PlanPreferencesInput.d.ts.map +1 -0
  177. package/dist/contract/routing/PlanPreferencesInput.js +2 -0
  178. package/dist/contract/routing/PlanPreferencesInput.js.map +1 -0
  179. package/dist/contract/routing/PlanStopLocationInput.d.ts +4 -0
  180. package/dist/contract/routing/PlanStopLocationInput.d.ts.map +1 -0
  181. package/dist/contract/routing/PlanStopLocationInput.js +2 -0
  182. package/dist/contract/routing/PlanStopLocationInput.js.map +1 -0
  183. package/dist/contract/routing/PlanStreetPreferencesInput.d.ts +11 -0
  184. package/dist/contract/routing/PlanStreetPreferencesInput.d.ts.map +1 -0
  185. package/dist/contract/routing/PlanStreetPreferencesInput.js +2 -0
  186. package/dist/contract/routing/PlanStreetPreferencesInput.js.map +1 -0
  187. package/dist/contract/routing/PlanTransferMode.d.ts +2 -0
  188. package/dist/contract/routing/PlanTransferMode.d.ts.map +1 -0
  189. package/dist/contract/routing/PlanTransferMode.js +2 -0
  190. package/dist/contract/routing/PlanTransferMode.js.map +1 -0
  191. package/dist/contract/routing/PlanTransitModePreferenceInput.d.ts +7 -0
  192. package/dist/contract/routing/PlanTransitModePreferenceInput.d.ts.map +1 -0
  193. package/dist/contract/routing/PlanTransitModePreferenceInput.js +2 -0
  194. package/dist/contract/routing/PlanTransitModePreferenceInput.js.map +1 -0
  195. package/dist/contract/routing/PlanTransitModesInput.d.ts +11 -0
  196. package/dist/contract/routing/PlanTransitModesInput.d.ts.map +1 -0
  197. package/dist/contract/routing/PlanTransitModesInput.js +2 -0
  198. package/dist/contract/routing/PlanTransitModesInput.js.map +1 -0
  199. package/dist/contract/routing/PlanViaLocationInput.d.ts +7 -0
  200. package/dist/contract/routing/PlanViaLocationInput.d.ts.map +1 -0
  201. package/dist/contract/routing/PlanViaLocationInput.js +2 -0
  202. package/dist/contract/routing/PlanViaLocationInput.js.map +1 -0
  203. package/dist/contract/routing/PlanVisitViaLocationInput.d.ts +8 -0
  204. package/dist/contract/routing/PlanVisitViaLocationInput.d.ts.map +1 -0
  205. package/dist/contract/routing/PlanVisitViaLocationInput.js +2 -0
  206. package/dist/contract/routing/PlanVisitViaLocationInput.js.map +1 -0
  207. package/dist/contract/routing/RealTimeEstimate.d.ts +5 -0
  208. package/dist/contract/routing/RealTimeEstimate.d.ts.map +1 -0
  209. package/dist/contract/routing/RealTimeEstimate.js +2 -0
  210. package/dist/contract/routing/RealTimeEstimate.js.map +1 -0
  211. package/dist/contract/routing/RealtimeState.d.ts +2 -0
  212. package/dist/contract/routing/RealtimeState.d.ts.map +1 -0
  213. package/dist/contract/routing/RealtimeState.js +2 -0
  214. package/dist/contract/routing/RealtimeState.js.map +1 -0
  215. package/dist/contract/routing/Route.d.ts +5 -0
  216. package/dist/contract/routing/Route.d.ts.map +1 -0
  217. package/dist/contract/routing/Route.js +2 -0
  218. package/dist/contract/routing/Route.js.map +1 -0
  219. package/dist/contract/routing/RoutingError.d.ts +8 -0
  220. package/dist/contract/routing/RoutingError.d.ts.map +1 -0
  221. package/dist/contract/routing/RoutingError.js +2 -0
  222. package/dist/contract/routing/RoutingError.js.map +1 -0
  223. package/dist/contract/routing/RoutingErrorCode.d.ts +2 -0
  224. package/dist/contract/routing/RoutingErrorCode.d.ts.map +1 -0
  225. package/dist/contract/routing/RoutingErrorCode.js +2 -0
  226. package/dist/contract/routing/RoutingErrorCode.js.map +1 -0
  227. package/dist/contract/routing/ScooterOptimizationInput.d.ts +7 -0
  228. package/dist/contract/routing/ScooterOptimizationInput.d.ts.map +1 -0
  229. package/dist/contract/routing/ScooterOptimizationInput.js +2 -0
  230. package/dist/contract/routing/ScooterOptimizationInput.js.map +1 -0
  231. package/dist/contract/routing/ScooterOptimizationType.d.ts +2 -0
  232. package/dist/contract/routing/ScooterOptimizationType.d.ts.map +1 -0
  233. package/dist/contract/routing/ScooterOptimizationType.js +2 -0
  234. package/dist/contract/routing/ScooterOptimizationType.js.map +1 -0
  235. package/dist/contract/routing/ScooterPreferencesInput.d.ts +9 -0
  236. package/dist/contract/routing/ScooterPreferencesInput.d.ts.map +1 -0
  237. package/dist/contract/routing/ScooterPreferencesInput.js +2 -0
  238. package/dist/contract/routing/ScooterPreferencesInput.js.map +1 -0
  239. package/dist/contract/routing/ScooterRentalPreferencesInput.d.ts +7 -0
  240. package/dist/contract/routing/ScooterRentalPreferencesInput.d.ts.map +1 -0
  241. package/dist/contract/routing/ScooterRentalPreferencesInput.js +2 -0
  242. package/dist/contract/routing/ScooterRentalPreferencesInput.js.map +1 -0
  243. package/dist/contract/routing/Stop.d.ts +6 -0
  244. package/dist/contract/routing/Stop.d.ts.map +1 -0
  245. package/dist/contract/routing/Stop.js +2 -0
  246. package/dist/contract/routing/Stop.js.map +1 -0
  247. package/dist/contract/routing/StopDeparturesData.d.ts +6 -0
  248. package/dist/contract/routing/StopDeparturesData.d.ts.map +1 -0
  249. package/dist/contract/routing/StopDeparturesData.js +2 -0
  250. package/dist/contract/routing/StopDeparturesData.js.map +1 -0
  251. package/dist/contract/routing/StopDeparturesResponse.d.ts +7 -0
  252. package/dist/contract/routing/StopDeparturesResponse.d.ts.map +1 -0
  253. package/dist/contract/routing/StopDeparturesResponse.js +2 -0
  254. package/dist/contract/routing/StopDeparturesResponse.js.map +1 -0
  255. package/dist/contract/routing/StopDeparturesRoute.d.ts +7 -0
  256. package/dist/contract/routing/StopDeparturesRoute.d.ts.map +1 -0
  257. package/dist/contract/routing/StopDeparturesRoute.js +2 -0
  258. package/dist/contract/routing/StopDeparturesRoute.js.map +1 -0
  259. package/dist/contract/routing/StopDeparturesStop.d.ts +9 -0
  260. package/dist/contract/routing/StopDeparturesStop.d.ts.map +1 -0
  261. package/dist/contract/routing/StopDeparturesStop.js +2 -0
  262. package/dist/contract/routing/StopDeparturesStop.js.map +1 -0
  263. package/dist/contract/routing/StopDeparturesTrip.d.ts +8 -0
  264. package/dist/contract/routing/StopDeparturesTrip.d.ts.map +1 -0
  265. package/dist/contract/routing/StopDeparturesTrip.js +2 -0
  266. package/dist/contract/routing/StopDeparturesTrip.js.map +1 -0
  267. package/dist/contract/routing/StopDeparturesVariables.d.ts +7 -0
  268. package/dist/contract/routing/StopDeparturesVariables.d.ts.map +1 -0
  269. package/dist/contract/routing/StopDeparturesVariables.js +2 -0
  270. package/dist/contract/routing/StopDeparturesVariables.js.map +1 -0
  271. package/dist/contract/routing/Stoptime.d.ts +12 -0
  272. package/dist/contract/routing/Stoptime.d.ts.map +1 -0
  273. package/dist/contract/routing/Stoptime.js +2 -0
  274. package/dist/contract/routing/Stoptime.js.map +1 -0
  275. package/dist/contract/routing/TimetablePreferencesInput.d.ts +6 -0
  276. package/dist/contract/routing/TimetablePreferencesInput.d.ts.map +1 -0
  277. package/dist/contract/routing/TimetablePreferencesInput.js +2 -0
  278. package/dist/contract/routing/TimetablePreferencesInput.js.map +1 -0
  279. package/dist/contract/routing/TransferPreferencesInput.d.ts +7 -0
  280. package/dist/contract/routing/TransferPreferencesInput.d.ts.map +1 -0
  281. package/dist/contract/routing/TransferPreferencesInput.js +2 -0
  282. package/dist/contract/routing/TransferPreferencesInput.js.map +1 -0
  283. package/dist/contract/routing/TransitFilterInput.d.ts +6 -0
  284. package/dist/contract/routing/TransitFilterInput.d.ts.map +1 -0
  285. package/dist/contract/routing/TransitFilterInput.js +2 -0
  286. package/dist/contract/routing/TransitFilterInput.js.map +1 -0
  287. package/dist/contract/routing/TransitFilterSelectInput.d.ts +5 -0
  288. package/dist/contract/routing/TransitFilterSelectInput.d.ts.map +1 -0
  289. package/dist/contract/routing/TransitFilterSelectInput.js +2 -0
  290. package/dist/contract/routing/TransitFilterSelectInput.js.map +1 -0
  291. package/dist/contract/routing/TransitMode.d.ts +2 -0
  292. package/dist/contract/routing/TransitMode.d.ts.map +1 -0
  293. package/dist/contract/routing/TransitMode.js +2 -0
  294. package/dist/contract/routing/TransitMode.js.map +1 -0
  295. package/dist/contract/routing/TransitModePreferenceCostInput.d.ts +4 -0
  296. package/dist/contract/routing/TransitModePreferenceCostInput.d.ts.map +1 -0
  297. package/dist/contract/routing/TransitModePreferenceCostInput.js +2 -0
  298. package/dist/contract/routing/TransitModePreferenceCostInput.js.map +1 -0
  299. package/dist/contract/routing/TransitPreferencesInput.d.ts +13 -0
  300. package/dist/contract/routing/TransitPreferencesInput.d.ts.map +1 -0
  301. package/dist/contract/routing/TransitPreferencesInput.js +2 -0
  302. package/dist/contract/routing/TransitPreferencesInput.js.map +1 -0
  303. package/dist/contract/routing/TriangleCyclingFactorsInput.d.ts +6 -0
  304. package/dist/contract/routing/TriangleCyclingFactorsInput.d.ts.map +1 -0
  305. package/dist/contract/routing/TriangleCyclingFactorsInput.js +2 -0
  306. package/dist/contract/routing/TriangleCyclingFactorsInput.js.map +1 -0
  307. package/dist/contract/routing/TriangleScooterFactorsInput.d.ts +6 -0
  308. package/dist/contract/routing/TriangleScooterFactorsInput.d.ts.map +1 -0
  309. package/dist/contract/routing/TriangleScooterFactorsInput.js +2 -0
  310. package/dist/contract/routing/TriangleScooterFactorsInput.js.map +1 -0
  311. package/dist/contract/routing/Trip.d.ts +6 -0
  312. package/dist/contract/routing/Trip.d.ts.map +1 -0
  313. package/dist/contract/routing/Trip.js +2 -0
  314. package/dist/contract/routing/Trip.js.map +1 -0
  315. package/dist/contract/routing/TripData.d.ts +5 -0
  316. package/dist/contract/routing/TripData.d.ts.map +1 -0
  317. package/dist/contract/routing/TripData.js +2 -0
  318. package/dist/contract/routing/TripData.js.map +1 -0
  319. package/dist/contract/routing/TripGeometry.d.ts +5 -0
  320. package/dist/contract/routing/TripGeometry.d.ts.map +1 -0
  321. package/dist/contract/routing/TripGeometry.js +2 -0
  322. package/dist/contract/routing/TripGeometry.js.map +1 -0
  323. package/dist/contract/routing/TripResponse.d.ts +7 -0
  324. package/dist/contract/routing/TripResponse.d.ts.map +1 -0
  325. package/dist/contract/routing/TripResponse.js +2 -0
  326. package/dist/contract/routing/TripResponse.js.map +1 -0
  327. package/dist/contract/routing/TripRoute.d.ts +7 -0
  328. package/dist/contract/routing/TripRoute.d.ts.map +1 -0
  329. package/dist/contract/routing/TripRoute.js +2 -0
  330. package/dist/contract/routing/TripRoute.js.map +1 -0
  331. package/dist/contract/routing/TripStop.d.ts +9 -0
  332. package/dist/contract/routing/TripStop.d.ts.map +1 -0
  333. package/dist/contract/routing/TripStop.js +2 -0
  334. package/dist/contract/routing/TripStop.js.map +1 -0
  335. package/dist/contract/routing/TripStoptime.d.ts +13 -0
  336. package/dist/contract/routing/TripStoptime.d.ts.map +1 -0
  337. package/dist/contract/routing/TripStoptime.js +2 -0
  338. package/dist/contract/routing/TripStoptime.js.map +1 -0
  339. package/dist/contract/routing/TripTrip.d.ts +14 -0
  340. package/dist/contract/routing/TripTrip.d.ts.map +1 -0
  341. package/dist/contract/routing/TripTrip.js +2 -0
  342. package/dist/contract/routing/TripTrip.js.map +1 -0
  343. package/dist/contract/routing/TripVariables.d.ts +5 -0
  344. package/dist/contract/routing/TripVariables.d.ts.map +1 -0
  345. package/dist/contract/routing/TripVariables.js +2 -0
  346. package/dist/contract/routing/TripVariables.js.map +1 -0
  347. package/dist/contract/routing/WalkPreferencesInput.d.ts +7 -0
  348. package/dist/contract/routing/WalkPreferencesInput.d.ts.map +1 -0
  349. package/dist/contract/routing/WalkPreferencesInput.js +2 -0
  350. package/dist/contract/routing/WalkPreferencesInput.js.map +1 -0
  351. package/dist/contract/routing/WheelchairBoarding.d.ts +2 -0
  352. package/dist/contract/routing/WheelchairBoarding.d.ts.map +1 -0
  353. package/dist/contract/routing/WheelchairBoarding.js +2 -0
  354. package/dist/contract/routing/WheelchairBoarding.js.map +1 -0
  355. package/dist/contract/routing/WheelchairPreferencesInput.d.ts +4 -0
  356. package/dist/contract/routing/WheelchairPreferencesInput.d.ts.map +1 -0
  357. package/dist/contract/routing/WheelchairPreferencesInput.js +2 -0
  358. package/dist/contract/routing/WheelchairPreferencesInput.js.map +1 -0
  359. package/dist/contract/routing/index.d.ts +89 -0
  360. package/dist/contract/routing/index.d.ts.map +1 -0
  361. package/dist/contract/routing/index.js +2 -0
  362. package/dist/contract/routing/index.js.map +1 -0
  363. package/dist/contract.d.ts +5 -0
  364. package/dist/contract.d.ts.map +1 -0
  365. package/dist/contract.js +16 -0
  366. package/dist/contract.js.map +1 -0
  367. package/dist/contractVersion.d.ts +2 -0
  368. package/dist/contractVersion.d.ts.map +1 -0
  369. package/dist/contractVersion.js +2 -0
  370. package/dist/contractVersion.js.map +1 -0
  371. package/dist/enums.d.ts +10 -0
  372. package/dist/enums.d.ts.map +1 -0
  373. package/dist/enums.js +34 -0
  374. package/dist/enums.js.map +1 -0
  375. package/dist/errors.d.ts +30 -0
  376. package/dist/errors.d.ts.map +1 -0
  377. package/dist/errors.js +81 -0
  378. package/dist/errors.js.map +1 -0
  379. package/dist/http.d.ts +45 -0
  380. package/dist/http.d.ts.map +1 -0
  381. package/dist/http.js +132 -0
  382. package/dist/http.js.map +1 -0
  383. package/dist/index.d.ts +16 -0
  384. package/dist/index.d.ts.map +1 -0
  385. package/dist/index.js +8 -0
  386. package/dist/index.js.map +1 -0
  387. package/dist/location.d.ts +25 -0
  388. package/dist/location.d.ts.map +1 -0
  389. package/dist/location.js +17 -0
  390. package/dist/location.js.map +1 -0
  391. package/dist/persistedQueries.d.ts +8 -0
  392. package/dist/persistedQueries.d.ts.map +1 -0
  393. package/dist/persistedQueries.js +4 -0
  394. package/dist/persistedQueries.js.map +1 -0
  395. package/dist/polling.d.ts +11 -0
  396. package/dist/polling.d.ts.map +1 -0
  397. package/dist/polling.js +46 -0
  398. package/dist/polling.js.map +1 -0
  399. package/dist/polyline.d.ts +3 -0
  400. package/dist/polyline.d.ts.map +1 -0
  401. package/dist/polyline.js +36 -0
  402. package/dist/polyline.js.map +1 -0
  403. package/dist/realtime.d.ts +83 -0
  404. package/dist/realtime.d.ts.map +1 -0
  405. package/dist/realtime.js +149 -0
  406. package/dist/realtime.js.map +1 -0
  407. package/dist/result.d.ts +13 -0
  408. package/dist/result.d.ts.map +1 -0
  409. package/dist/result.js +7 -0
  410. package/dist/result.js.map +1 -0
  411. package/dist/routing.d.ts +157 -0
  412. package/dist/routing.d.ts.map +1 -0
  413. package/dist/routing.js +340 -0
  414. package/dist/routing.js.map +1 -0
  415. package/dist/sdk.d.ts +5 -0
  416. package/dist/sdk.d.ts.map +1 -0
  417. package/dist/sdk.js +10 -0
  418. package/dist/sdk.js.map +1 -0
  419. package/dist/sdkVersion.d.ts +2 -0
  420. package/dist/sdkVersion.d.ts.map +1 -0
  421. package/dist/sdkVersion.js +2 -0
  422. package/dist/sdkVersion.js.map +1 -0
  423. package/dist/stops.d.ts +60 -0
  424. package/dist/stops.d.ts.map +1 -0
  425. package/dist/stops.js +104 -0
  426. package/dist/stops.js.map +1 -0
  427. package/package.json +60 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Tiducto
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,120 @@
1
+ # @tiducto/spider-sdk-typescript
2
+
3
+ The TypeScript SDK for the **Spider** transit API — trip planning, stop search, and live realtime data behind one typed contract. It ships the exact query documents the gateway allows and attaches auth for you, so you get a typed, closed surface out of the box.
4
+
5
+ This is a native TypeScript library with zero runtime dependencies (it uses the platform `fetch`). It is a sibling of the Kotlin SDK and mirrors its domain model and semantics, adapted to TypeScript idioms.
6
+
7
+ ## Install
8
+
9
+ ```bash
10
+ npm install @tiducto/spider-sdk-typescript
11
+ ```
12
+
13
+ Requires Node.js 20+ or any modern browser (anything with a global `fetch`).
14
+
15
+ ## Quickstart
16
+
17
+ Construct a client with your environment's base URL and API key, then call a surface. Every call returns a `SpiderResult<T>` you branch on before reading `data`.
18
+
19
+ ```ts
20
+ import { SpiderClient, Location } from '@tiducto/spider-sdk-typescript';
21
+
22
+ const client = new SpiderClient('https://your-env-slug.api.tiducto.eu', process.env.SPIDER_API_KEY!);
23
+
24
+ const result = await client.routing.plan({
25
+ origin: Location.coordinate(49.1908, 16.6128),
26
+ destination: Location.coordinate(49.2270, 16.5273),
27
+ first: 3,
28
+ });
29
+
30
+ if (result.isSuccess) {
31
+ for (const edge of result.data.edges) {
32
+ const it = edge.itinerary;
33
+ console.log(`${it.start} → ${it.end} · ${it.numberOfTransfers} transfers`);
34
+ }
35
+ } else {
36
+ console.error(result.error.code, result.error.message);
37
+ }
38
+ ```
39
+
40
+ The API key is sent in an `apikey` header on every request. Keys are scoped to a single project and environment; the environment's routing slug is the subdomain of the base URL.
41
+
42
+ ## Surfaces
43
+
44
+ All three surfaces are available on the client instance — there is no install step.
45
+
46
+ ### Routing — `client.routing`
47
+
48
+ ```ts
49
+ client.routing.plan({ origin, destination, first?, departAt?, arriveBy?, via?,
50
+ allowedTransitModes?, maxTransfers?, searchWindowMinutes?, wheelchairAccessible? }); // → SpiderResult<Route>
51
+ client.routing.planNext(route); // → SpiderResult<Route> | null
52
+ client.routing.planPrevious(route); // → SpiderResult<Route> | null
53
+ client.routing.departures(stopId, numberOfDepartures?); // → SpiderResult<Departure[]>
54
+ client.routing.trip(tripId, serviceDate?); // → SpiderResult<TripDetails>
55
+ ```
56
+
57
+ An origin or destination is a `Location` — either `Location.coordinate(lat, lon)` or `Location.stop(id)`. By default `plan` searches from now; pass `departAt` (epoch ms or `Date`) for a future departure, or `arriveBy` to plan backwards from an arrival time. Narrow the search with `allowedTransitModes` (e.g. `['BUS', 'TRAM']`), `maxTransfers`, `wheelchairAccessible`, or a wider `searchWindowMinutes` (default 60). Results come back as `edges`, each with an `itinerary` (`start`, `end`, `durationSeconds`, `numberOfTransfers`, `legs`); page through with `planNext`/`planPrevious`.
58
+
59
+ ### Stops — `client.stops`
60
+
61
+ ```ts
62
+ client.stops.search({ name?, country?, region?, district?, city?, suburb? }); // → SpiderResult<Stop[]>
63
+ ```
64
+
65
+ `name` is a fuzzy, typo-tolerant free-text match; the admin-area fields are exact filters that scale server-side. A `Stop` carries `gtfsId`, `name`, `lat`/`lon`, and the admin-geography fields. Feed a `gtfsId` straight into routing or realtime — ids are opaque and never re-prefixed.
66
+
67
+ ### Realtime — `client.realtime`
68
+
69
+ ```ts
70
+ client.realtime.vehicles(tripIds); // → SpiderResult<VehiclePositions>
71
+ client.realtime.vehicleForTrip(tripId); // → SpiderResult<LiveVehicleUpdate>
72
+ client.realtime.delays(tripIds); // → SpiderResult<TripDelays>
73
+ client.realtime.alerts(); // → SpiderResult<ServiceAlerts>
74
+ ```
75
+
76
+ Realtime is poll-based — call on an interval (10–15s is a sensible default); there are no push connections. Every snapshot carries `freshness` so the UI can tell how current the data is. `vehicleForTrip` returns a `LiveVehicleUpdate` whose `vehicle` is `null` when nothing is reporting for that trip — a normal state, not an error.
77
+
78
+ ## Handling results
79
+
80
+ `SpiderResult<T>` is a discriminated union on `isSuccess`:
81
+
82
+ ```ts
83
+ const result = await client.realtime.delays(tripIds);
84
+ if (result.isSuccess) {
85
+ for (const delay of result.data.delays) {
86
+ console.log(delay.tripId, delay.delaySeconds);
87
+ }
88
+ } else {
89
+ // result.error: { code, message, httpStatus?, cause? }
90
+ console.error(result.error.code);
91
+ }
92
+ ```
93
+
94
+ `error.code` is one of `network`, `timeout`, `unauthorized`, `not_found`, `server`, `rate_limited`, `decoding`, `unknown`.
95
+
96
+ ## Timeouts and custom fetch
97
+
98
+ ```ts
99
+ new SpiderClient(baseUrl, apiKey, { timeoutMs: 10_000, fetch: myFetch });
100
+ ```
101
+
102
+ `timeoutMs` (default 30s) aborts a request that takes too long, surfacing as a `timeout` error. `fetch` injects a custom implementation (useful for tests or non-standard runtimes).
103
+
104
+ ## Contract version
105
+
106
+ The SDK sends its wire-contract version on every request. If the gateway ever declares an incompatible major version, the call throws `SpiderContractMismatchError` — a hard failure that bypasses `SpiderResult`, signalling the SDK build is incompatible with the deployment rather than a recoverable runtime error.
107
+
108
+ ## Development
109
+
110
+ ```bash
111
+ npm run build # emit dist/ (ESM + .d.ts) via tsc
112
+ npm run typecheck # type-check src + tests
113
+ npm test # run the test suite (node --test, mocked fetch)
114
+ ```
115
+
116
+ `src/contract/routing` is generated from [`tiducto/spider-contract`](https://github.com/tiducto/spider-contract) via `scripts/generate-contract.sh` (spider-codegen) — don't hand-edit it; run the script or wait for the `generate-contract` workflow to open a sync PR. The stops and realtime wire types are hand-written and checked against the published contract by `test/contractPin.test.ts`, using the fixtures under `test/fixtures`.
117
+
118
+ ## License
119
+
120
+ MIT
@@ -0,0 +1,12 @@
1
+ import type { SpiderClientOptions } from './http.ts';
2
+ import { SpiderRouting } from './routing.ts';
3
+ import { SpiderStops } from './stops.ts';
4
+ import { SpiderRealtime } from './realtime.ts';
5
+ export declare class SpiderClient {
6
+ readonly routing: SpiderRouting;
7
+ readonly stops: SpiderStops;
8
+ readonly realtime: SpiderRealtime;
9
+ constructor(baseUrl: string, apiKey: string, options?: SpiderClientOptions);
10
+ get contractVersion(): string;
11
+ }
12
+ //# sourceMappingURL=client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAoC,MAAM,WAAW,CAAC;AAEvF,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAY/C,qBAAa,YAAY;IACvB,QAAQ,CAAC,OAAO,EAAE,aAAa,CAAC;IAChC,QAAQ,CAAC,KAAK,EAAE,WAAW,CAAC;IAC5B,QAAQ,CAAC,QAAQ,EAAE,cAAc,CAAC;gBAEtB,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,mBAAmB;IAO1E,IAAI,eAAe,IAAI,MAAM,CAE5B;CACF"}
package/dist/client.js ADDED
@@ -0,0 +1,24 @@
1
+ import { Transport } from "./http.js";
2
+ import { CONTRACT_VERSION } from "./contract.js";
3
+ import { SpiderRouting } from "./routing.js";
4
+ import { SpiderStops } from "./stops.js";
5
+ import { SpiderRealtime } from "./realtime.js";
6
+ function transportFor(baseUrl, apiKey, base, feature) {
7
+ const retry = feature?.autoRetry != null ? { maxAttempts: feature.autoRetry.maxAttempts ?? 3 } : undefined;
8
+ return new Transport(baseUrl, apiKey, { ...base, retry });
9
+ }
10
+ export class SpiderClient {
11
+ routing;
12
+ stops;
13
+ realtime;
14
+ constructor(baseUrl, apiKey, options) {
15
+ const base = { fetch: options?.fetch, timeoutMs: options?.timeoutMs };
16
+ this.routing = new SpiderRouting(transportFor(baseUrl, apiKey, base, options?.routing));
17
+ this.stops = new SpiderStops(transportFor(baseUrl, apiKey, base, options?.stops));
18
+ this.realtime = new SpiderRealtime(transportFor(baseUrl, apiKey, base, options?.realtime));
19
+ }
20
+ get contractVersion() {
21
+ return CONTRACT_VERSION;
22
+ }
23
+ }
24
+ //# sourceMappingURL=client.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAEtC,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAE/C,SAAS,YAAY,CACnB,OAAe,EACf,MAAc,EACd,IAAsB,EACtB,OAAwB;IAExB,MAAM,KAAK,GAAG,OAAO,EAAE,SAAS,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,OAAO,CAAC,SAAS,CAAC,WAAW,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;IAC3G,OAAO,IAAI,SAAS,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,GAAG,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;AAC5D,CAAC;AAED,MAAM,OAAO,YAAY;IACd,OAAO,CAAgB;IACvB,KAAK,CAAc;IACnB,QAAQ,CAAiB;IAElC,YAAY,OAAe,EAAE,MAAc,EAAE,OAA6B;QACxE,MAAM,IAAI,GAAqB,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC;QACxF,IAAI,CAAC,OAAO,GAAG,IAAI,aAAa,CAAC,YAAY,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;QACxF,IAAI,CAAC,KAAK,GAAG,IAAI,WAAW,CAAC,YAAY,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC;QAClF,IAAI,CAAC,QAAQ,GAAG,IAAI,cAAc,CAAC,YAAY,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC;IAC7F,CAAC;IAED,IAAI,eAAe;QACjB,OAAO,gBAAgB,CAAC;IAC1B,CAAC;CACF"}
@@ -0,0 +1,5 @@
1
+ import type { WheelchairPreferencesInput } from './WheelchairPreferencesInput.ts';
2
+ export interface AccessibilityPreferencesInput {
3
+ wheelchair?: WheelchairPreferencesInput;
4
+ }
5
+ //# sourceMappingURL=AccessibilityPreferencesInput.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=AccessibilityPreferencesInput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AccessibilityPreferencesInput.js","sourceRoot":"","sources":["../../../src/contract/routing/AccessibilityPreferencesInput.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ export interface AlightPreferencesInput {
2
+ slack?: string;
3
+ }
4
+ //# sourceMappingURL=AlightPreferencesInput.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=AlightPreferencesInput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AlightPreferencesInput.js","sourceRoot":"","sources":["../../../src/contract/routing/AlightPreferencesInput.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ import type { ParkingFilter } from './ParkingFilter.ts';
2
+ export interface BicycleParkingPreferencesInput {
3
+ filters?: ParkingFilter[];
4
+ preferred?: ParkingFilter[];
5
+ unpreferredCost?: number;
6
+ }
7
+ //# sourceMappingURL=BicycleParkingPreferencesInput.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BicycleParkingPreferencesInput.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/BicycleParkingPreferencesInput.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAExD,MAAM,WAAW,8BAA8B;IAC7C,OAAO,CAAC,EAAE,aAAa,EAAE,CAAC;IAC1B,SAAS,CAAC,EAAE,aAAa,EAAE,CAAC;IAC5B,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=BicycleParkingPreferencesInput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BicycleParkingPreferencesInput.js","sourceRoot":"","sources":["../../../src/contract/routing/BicycleParkingPreferencesInput.ts"],"names":[],"mappings":""}
@@ -0,0 +1,14 @@
1
+ import type { BicycleParkingPreferencesInput } from './BicycleParkingPreferencesInput.ts';
2
+ import type { BicycleRentalPreferencesInput } from './BicycleRentalPreferencesInput.ts';
3
+ import type { BicycleWalkPreferencesInput } from './BicycleWalkPreferencesInput.ts';
4
+ import type { CyclingOptimizationInput } from './CyclingOptimizationInput.ts';
5
+ export interface BicyclePreferencesInput {
6
+ boardCost?: number;
7
+ optimization?: CyclingOptimizationInput;
8
+ parking?: BicycleParkingPreferencesInput;
9
+ reluctance?: number;
10
+ rental?: BicycleRentalPreferencesInput;
11
+ speed?: number;
12
+ walk?: BicycleWalkPreferencesInput;
13
+ }
14
+ //# sourceMappingURL=BicyclePreferencesInput.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BicyclePreferencesInput.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/BicyclePreferencesInput.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AAC1F,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AACxF,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AACpF,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAE9E,MAAM,WAAW,uBAAuB;IACtC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,wBAAwB,CAAC;IACxC,OAAO,CAAC,EAAE,8BAA8B,CAAC;IACzC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,6BAA6B,CAAC;IACvC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,2BAA2B,CAAC;CACpC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=BicyclePreferencesInput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BicyclePreferencesInput.js","sourceRoot":"","sources":["../../../src/contract/routing/BicyclePreferencesInput.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ import type { DestinationBicyclePolicyInput } from './DestinationBicyclePolicyInput.ts';
2
+ export interface BicycleRentalPreferencesInput {
3
+ allowedNetworks?: string[];
4
+ bannedNetworks?: string[];
5
+ destinationBicyclePolicy?: DestinationBicyclePolicyInput;
6
+ }
7
+ //# sourceMappingURL=BicycleRentalPreferencesInput.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BicycleRentalPreferencesInput.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/BicycleRentalPreferencesInput.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AAExF,MAAM,WAAW,6BAA6B;IAC5C,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAC3B,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,wBAAwB,CAAC,EAAE,6BAA6B,CAAC;CAC1D"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=BicycleRentalPreferencesInput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BicycleRentalPreferencesInput.js","sourceRoot":"","sources":["../../../src/contract/routing/BicycleRentalPreferencesInput.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ export interface BicycleWalkPreferencesCostInput {
2
+ mountDismountCost?: number;
3
+ reluctance?: number;
4
+ }
5
+ //# sourceMappingURL=BicycleWalkPreferencesCostInput.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BicycleWalkPreferencesCostInput.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/BicycleWalkPreferencesCostInput.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,+BAA+B;IAC9C,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=BicycleWalkPreferencesCostInput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BicycleWalkPreferencesCostInput.js","sourceRoot":"","sources":["../../../src/contract/routing/BicycleWalkPreferencesCostInput.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ import type { BicycleWalkPreferencesCostInput } from './BicycleWalkPreferencesCostInput.ts';
2
+ export interface BicycleWalkPreferencesInput {
3
+ cost?: BicycleWalkPreferencesCostInput;
4
+ mountDismountTime?: string;
5
+ speed?: number;
6
+ }
7
+ //# sourceMappingURL=BicycleWalkPreferencesInput.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BicycleWalkPreferencesInput.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/BicycleWalkPreferencesInput.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,sCAAsC,CAAC;AAE5F,MAAM,WAAW,2BAA2B;IAC1C,IAAI,CAAC,EAAE,+BAA+B,CAAC;IACvC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=BicycleWalkPreferencesInput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BicycleWalkPreferencesInput.js","sourceRoot":"","sources":["../../../src/contract/routing/BicycleWalkPreferencesInput.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export type BikesAllowed = 'ALLOWED' | 'NOT_ALLOWED' | 'NO_INFORMATION' | (string & {});
2
+ //# sourceMappingURL=BikesAllowed.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BikesAllowed.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/BikesAllowed.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,YAAY,GACpB,SAAS,GACT,aAAa,GACb,gBAAgB,GAChB,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=BikesAllowed.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BikesAllowed.js","sourceRoot":"","sources":["../../../src/contract/routing/BikesAllowed.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ export interface BoardPreferencesInput {
2
+ slack?: string;
3
+ waitReluctance?: number;
4
+ }
5
+ //# sourceMappingURL=BoardPreferencesInput.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=BoardPreferencesInput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BoardPreferencesInput.js","sourceRoot":"","sources":["../../../src/contract/routing/BoardPreferencesInput.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ import type { ParkingFilter } from './ParkingFilter.ts';
2
+ export interface CarParkingPreferencesInput {
3
+ filters?: ParkingFilter[];
4
+ preferred?: ParkingFilter[];
5
+ unpreferredCost?: number;
6
+ }
7
+ //# sourceMappingURL=CarParkingPreferencesInput.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CarParkingPreferencesInput.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/CarParkingPreferencesInput.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAExD,MAAM,WAAW,0BAA0B;IACzC,OAAO,CAAC,EAAE,aAAa,EAAE,CAAC;IAC1B,SAAS,CAAC,EAAE,aAAa,EAAE,CAAC;IAC5B,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=CarParkingPreferencesInput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CarParkingPreferencesInput.js","sourceRoot":"","sources":["../../../src/contract/routing/CarParkingPreferencesInput.ts"],"names":[],"mappings":""}
@@ -0,0 +1,9 @@
1
+ import type { CarParkingPreferencesInput } from './CarParkingPreferencesInput.ts';
2
+ import type { CarRentalPreferencesInput } from './CarRentalPreferencesInput.ts';
3
+ export interface CarPreferencesInput {
4
+ boardCost?: number;
5
+ parking?: CarParkingPreferencesInput;
6
+ reluctance?: number;
7
+ rental?: CarRentalPreferencesInput;
8
+ }
9
+ //# sourceMappingURL=CarPreferencesInput.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CarPreferencesInput.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/CarPreferencesInput.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAClF,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAEhF,MAAM,WAAW,mBAAmB;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,0BAA0B,CAAC;IACrC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,yBAAyB,CAAC;CACpC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=CarPreferencesInput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CarPreferencesInput.js","sourceRoot":"","sources":["../../../src/contract/routing/CarPreferencesInput.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ export interface CarRentalPreferencesInput {
2
+ allowedNetworks?: string[];
3
+ bannedNetworks?: string[];
4
+ rentalDuration?: string;
5
+ }
6
+ //# sourceMappingURL=CarRentalPreferencesInput.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CarRentalPreferencesInput.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/CarRentalPreferencesInput.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,yBAAyB;IACxC,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAC3B,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=CarRentalPreferencesInput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CarRentalPreferencesInput.js","sourceRoot":"","sources":["../../../src/contract/routing/CarRentalPreferencesInput.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ import type { CyclingOptimizationType } from './CyclingOptimizationType.ts';
2
+ import type { TriangleCyclingFactorsInput } from './TriangleCyclingFactorsInput.ts';
3
+ export interface CyclingOptimizationInput {
4
+ triangle?: TriangleCyclingFactorsInput;
5
+ type?: CyclingOptimizationType;
6
+ }
7
+ //# sourceMappingURL=CyclingOptimizationInput.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CyclingOptimizationInput.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/CyclingOptimizationInput.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAC5E,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAEpF,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,EAAE,2BAA2B,CAAC;IACvC,IAAI,CAAC,EAAE,uBAAuB,CAAC;CAChC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=CyclingOptimizationInput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CyclingOptimizationInput.js","sourceRoot":"","sources":["../../../src/contract/routing/CyclingOptimizationInput.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export type CyclingOptimizationType = 'FLAT_STREETS' | 'SAFEST_STREETS' | 'SAFE_STREETS' | 'SHORTEST_DURATION' | (string & {});
2
+ //# sourceMappingURL=CyclingOptimizationType.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CyclingOptimizationType.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/CyclingOptimizationType.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,uBAAuB,GAC/B,cAAc,GACd,gBAAgB,GAChB,cAAc,GACd,mBAAmB,GACnB,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=CyclingOptimizationType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CyclingOptimizationType.js","sourceRoot":"","sources":["../../../src/contract/routing/CyclingOptimizationType.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ export interface DestinationBicyclePolicyInput {
2
+ allowKeeping?: boolean;
3
+ keepingCost?: number;
4
+ }
5
+ //# sourceMappingURL=DestinationBicyclePolicyInput.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DestinationBicyclePolicyInput.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/DestinationBicyclePolicyInput.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,6BAA6B;IAC5C,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=DestinationBicyclePolicyInput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DestinationBicyclePolicyInput.js","sourceRoot":"","sources":["../../../src/contract/routing/DestinationBicyclePolicyInput.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ export interface DestinationScooterPolicyInput {
2
+ allowKeeping?: boolean;
3
+ keepingCost?: number;
4
+ }
5
+ //# sourceMappingURL=DestinationScooterPolicyInput.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DestinationScooterPolicyInput.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/DestinationScooterPolicyInput.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,6BAA6B;IAC5C,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=DestinationScooterPolicyInput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DestinationScooterPolicyInput.js","sourceRoot":"","sources":["../../../src/contract/routing/DestinationScooterPolicyInput.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ /** Standard error body: a stable machine-readable `code` and a human-readable `message`. */
2
+ export interface ErrorResponse {
3
+ code?: string;
4
+ message: string;
5
+ }
6
+ //# sourceMappingURL=ErrorResponse.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ErrorResponse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ErrorResponse.js","sourceRoot":"","sources":["../../../src/contract/routing/ErrorResponse.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ export interface Geometry {
2
+ points?: string;
3
+ }
4
+ //# sourceMappingURL=Geometry.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=Geometry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Geometry.js","sourceRoot":"","sources":["../../../src/contract/routing/Geometry.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ export interface GraphQLError {
2
+ message: string;
3
+ path?: string[];
4
+ }
5
+ //# sourceMappingURL=GraphQLError.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GraphQLError.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/GraphQLError.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;CACjB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=GraphQLError.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GraphQLError.js","sourceRoot":"","sources":["../../../src/contract/routing/GraphQLError.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export type InputField = 'DATE_TIME' | 'FROM' | 'TO' | 'VIA' | (string & {});
2
+ //# sourceMappingURL=InputField.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InputField.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/InputField.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAClB,WAAW,GACX,MAAM,GACN,IAAI,GACJ,KAAK,GACL,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=InputField.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InputField.js","sourceRoot":"","sources":["../../../src/contract/routing/InputField.ts"],"names":[],"mappings":""}
@@ -0,0 +1,11 @@
1
+ import type { Leg } from './Leg.ts';
2
+ export interface Itinerary {
3
+ start?: string;
4
+ end?: string;
5
+ duration?: number;
6
+ waitingTime?: number;
7
+ numberOfTransfers: number;
8
+ accessibilityScore?: number;
9
+ legs: Leg[];
10
+ }
11
+ //# sourceMappingURL=Itinerary.d.ts.map
@@ -0,0 +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"}