@opentripplanner/core-utils 12.0.0-alpha.8 → 12.0.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 (74) hide show
  1. package/esm/__tests__/__mocks__/bike-rental-itinerary.json +863 -0
  2. package/esm/__tests__/__mocks__/config.json +54 -0
  3. package/esm/__tests__/__mocks__/fare-products-itinerary.json +1299 -0
  4. package/esm/__tests__/__mocks__/routes.json +107 -0
  5. package/esm/__tests__/__mocks__/tnc-itinerary.json +1726 -0
  6. package/esm/bike-rental-itinerary.json +863 -0
  7. package/esm/config.json +54 -0
  8. package/esm/fare-products-itinerary.json +1299 -0
  9. package/esm/index.js +2 -0
  10. package/esm/index.js.map +1 -1
  11. package/esm/itinerary.js +46 -21
  12. package/esm/itinerary.js.map +1 -1
  13. package/esm/otpSchema.json +13373 -0
  14. package/esm/planQuery.graphql +281 -0
  15. package/esm/profile.js +1 -1
  16. package/esm/profile.js.map +1 -1
  17. package/esm/query-gen.js +8 -5
  18. package/esm/query-gen.js.map +1 -1
  19. package/esm/query.js +1 -5
  20. package/esm/query.js.map +1 -1
  21. package/esm/routes.json +107 -0
  22. package/esm/storage.js +2 -6
  23. package/esm/storage.js.map +1 -1
  24. package/esm/suspense.js +13 -0
  25. package/esm/suspense.js.map +1 -0
  26. package/esm/tnc-itinerary.json +1726 -0
  27. package/lib/__tests__/__mocks__/bike-rental-itinerary.json +863 -0
  28. package/lib/__tests__/__mocks__/config.json +54 -0
  29. package/lib/__tests__/__mocks__/fare-products-itinerary.json +1299 -0
  30. package/lib/__tests__/__mocks__/routes.json +107 -0
  31. package/lib/__tests__/__mocks__/tnc-itinerary.json +1726 -0
  32. package/lib/index.d.ts +2 -0
  33. package/lib/index.d.ts.map +1 -1
  34. package/lib/index.js +10 -0
  35. package/lib/index.js.map +1 -1
  36. package/lib/itinerary.d.ts +13 -4
  37. package/lib/itinerary.d.ts.map +1 -1
  38. package/lib/itinerary.js +59 -22
  39. package/lib/itinerary.js.map +1 -1
  40. package/lib/otpSchema.json +13373 -0
  41. package/lib/planQuery.graphql +281 -0
  42. package/lib/profile.js +1 -1
  43. package/lib/profile.js.map +1 -1
  44. package/lib/query-gen.d.ts +3 -1
  45. package/lib/query-gen.d.ts.map +1 -1
  46. package/lib/query-gen.js +8 -5
  47. package/lib/query-gen.js.map +1 -1
  48. package/lib/query.js +1 -5
  49. package/lib/query.js.map +1 -1
  50. package/lib/storage.d.ts.map +1 -1
  51. package/lib/storage.js +2 -6
  52. package/lib/storage.js.map +1 -1
  53. package/lib/suspense.d.ts +8 -0
  54. package/lib/suspense.d.ts.map +1 -0
  55. package/lib/suspense.js +26 -0
  56. package/lib/suspense.js.map +1 -0
  57. package/package.json +3 -3
  58. package/src/__tests__/itinerary.ts +36 -1
  59. package/src/core-utils.story.tsx +1 -1
  60. package/src/index.ts +2 -0
  61. package/src/itinerary.ts +68 -26
  62. package/src/otpSchema.json +0 -12
  63. package/src/planQuery.graphql +27 -0
  64. package/src/profile.js +1 -1
  65. package/src/query-gen.ts +8 -4
  66. package/src/query.js +1 -4
  67. package/src/storage.ts +5 -9
  68. package/src/suspense.tsx +19 -0
  69. package/tsconfig.json +1 -2
  70. package/tsconfig.tsbuildinfo +1 -1
  71. package/lib/core-utils.story.d.ts +0 -22
  72. package/lib/core-utils.story.d.ts.map +0 -1
  73. package/lib/core-utils.story.js +0 -69
  74. package/lib/core-utils.story.js.map +0 -1
@@ -0,0 +1,54 @@
1
+ {
2
+ "homeTimezone": "America/New_York",
3
+ "routingTypes": [
4
+ {
5
+ "key": "ITINERARY",
6
+ "text": "Exact Time"
7
+ }
8
+ ],
9
+ "modes": {
10
+ "transitModes": [
11
+ {
12
+ "mode": "BUS",
13
+ "label": "Bus"
14
+ },
15
+ {
16
+ "mode": "RAIL",
17
+ "label": "Rail"
18
+ },
19
+ {
20
+ "mode": "SUBWAY",
21
+ "label": "Subway"
22
+ },
23
+ {
24
+ "mode": "TRAM",
25
+ "label": "Trolleys"
26
+ }
27
+ ],
28
+ "accessModes": [
29
+ {
30
+ "mode": "BICYCLE",
31
+ "label": "Transit + Personal bike"
32
+ },
33
+ {
34
+ "mode": "BICYCLE_RENT",
35
+ "label": "Transit + Bikeshare"
36
+ }
37
+ ],
38
+ "exclusiveModes": ["WALK", "BICYCLE"],
39
+ "bicycleModes": [
40
+ {
41
+ "mode": "BICYCLE",
42
+ "label": "Own Bike"
43
+ },
44
+ {
45
+ "mode": "BICYCLE_RENT",
46
+ "label": "Bikeshare"
47
+ }
48
+ ]
49
+ },
50
+ "dateTime": {
51
+ "timeFormat": "h:mm a",
52
+ "dateFormat": "MM/DD/YYYY"
53
+ }
54
+ }