@opentripplanner/core-utils 13.0.0-alpha.3 → 13.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 (67) hide show
  1. package/README.md +0 -3
  2. package/esm/__mocks__/fake-route-data.story.json +5425 -0
  3. package/esm/__mocks__/fake-transit-operators.story.json +97 -0
  4. package/esm/__tests__/__mocks__/routes.json +234 -105
  5. package/esm/itinerary.js +0 -2
  6. package/esm/itinerary.js.map +1 -1
  7. package/esm/otpSchema.json +0 -12
  8. package/esm/profile.js +1 -1
  9. package/esm/profile.js.map +1 -1
  10. package/esm/query-gen.js +2 -4
  11. package/esm/query-gen.js.map +1 -1
  12. package/esm/query-params.js +773 -0
  13. package/esm/query-params.js.map +1 -0
  14. package/esm/query.js +1 -4
  15. package/esm/query.js.map +1 -1
  16. package/esm/route.js +36 -21
  17. package/esm/route.js.map +1 -1
  18. package/esm/routes.json +234 -105
  19. package/esm/storage.js +2 -6
  20. package/esm/storage.js.map +1 -1
  21. package/esm/time.js +10 -0
  22. package/esm/time.js.map +1 -1
  23. package/lib/__mocks__/fake-route-data.story.json +5425 -0
  24. package/lib/__mocks__/fake-transit-operators.story.json +97 -0
  25. package/lib/__tests__/__mocks__/routes.json +234 -105
  26. package/lib/itinerary.d.ts.map +1 -1
  27. package/lib/itinerary.js +0 -2
  28. package/lib/itinerary.js.map +1 -1
  29. package/lib/otpSchema.json +0 -12
  30. package/lib/profile.js +1 -1
  31. package/lib/profile.js.map +1 -1
  32. package/lib/query-gen.js +2 -2
  33. package/lib/query-gen.js.map +1 -1
  34. package/lib/query-params.js +735 -0
  35. package/lib/query-params.js.map +1 -0
  36. package/lib/query.js +1 -4
  37. package/lib/query.js.map +1 -1
  38. package/lib/route.d.ts +35 -1
  39. package/lib/route.d.ts.map +1 -1
  40. package/lib/route.js +38 -17
  41. package/lib/route.js.map +1 -1
  42. package/lib/storage.d.ts.map +1 -1
  43. package/lib/storage.js +2 -6
  44. package/lib/storage.js.map +1 -1
  45. package/lib/time.d.ts +7 -0
  46. package/lib/time.d.ts.map +1 -1
  47. package/lib/time.js +10 -1
  48. package/lib/time.js.map +1 -1
  49. package/package.json +3 -3
  50. package/src/__mocks__/fake-route-data.story.json +5425 -0
  51. package/src/__mocks__/fake-transit-operators.story.json +97 -0
  52. package/src/__snapshots__/core-utils.story.tsx.snap +8382 -0
  53. package/src/__tests__/__mocks__/routes.json +234 -105
  54. package/src/__tests__/__snapshots__/route.js.snap +285 -95
  55. package/src/__tests__/route.js +27 -55
  56. package/src/core-utils.story.tsx +201 -2
  57. package/src/itinerary.ts +0 -2
  58. package/src/otpSchema.json +0 -12
  59. package/src/profile.js +1 -1
  60. package/src/query-gen.ts +2 -2
  61. package/src/query.js +1 -4
  62. package/src/route.ts +41 -21
  63. package/src/storage.ts +5 -9
  64. package/src/time.ts +9 -0
  65. package/tsconfig.tsbuildinfo +1 -1
  66. package/esm/query-params.jsx +0 -893
  67. package/lib/query-params.jsx +0 -893
@@ -0,0 +1,97 @@
1
+ {
2
+ "fakeTransitOperators": [
3
+ {
4
+ "feedId": "kcm",
5
+ "agencyId": "kcm:23",
6
+ "name": "City of Seattle",
7
+ "logo": "https://s3.amazonaws.com/datatools-production/branding/agency_4_City_of_Seattle.png"
8
+ },
9
+ {
10
+ "feedId": "CommTrans",
11
+ "agencyId": "CommTrans:29",
12
+ "name": "Community Transit",
13
+ "logo": "https://s3.amazonaws.com/datatools-production/branding/agency_2_community_transit.png"
14
+ },
15
+ {
16
+ "feedId": "97",
17
+ "agencyId": "97:97",
18
+ "name": "Everett Transit",
19
+ "logo": "https://s3.amazonaws.com/datatools-production/branding/agency_2_Everett_Transit.png"
20
+ },
21
+ {
22
+ "feedId": "19",
23
+ "agencyId": "19:0",
24
+ "name": "Intercity Transit",
25
+ "logo": "https://s3.amazonaws.com/datatools-production/branding/intercity_transit_logo.jpg"
26
+ },
27
+ {
28
+ "feedId": "kcm",
29
+ "agencyId": "kcm:1",
30
+ "name": "King County Metro",
31
+ "logo": "https://s3.amazonaws.com/datatools-production/branding/agency_2_kcm.png"
32
+ },
33
+ {
34
+ "feedId": "Kitsap",
35
+ "agencyId": "Kitsap:kt",
36
+ "name": "Kitsap Transit",
37
+ "logo": "https://s3.amazonaws.com/datatools-production/branding/agency_2_Kitsap_Transit.png",
38
+ "order": 2
39
+ },
40
+ {
41
+ "feedId": "3",
42
+ "agencyId": "3:3",
43
+ "name": "Pierce Transit",
44
+ "logo": "https://s3.amazonaws.com/datatools-production/branding/agency_2_pierce_transit.png"
45
+ },
46
+ {
47
+ "feedId": "Skagit",
48
+ "agencyId": "Skagit:e0e4541a-2714-487b-b30c-f5c6cb4a310f",
49
+ "name": "Skagit Transit",
50
+ "logo": "https://s3.amazonaws.com/datatools-production/branding/agency_2_Skagit.png"
51
+ },
52
+ {
53
+ "feedId": "96",
54
+ "agencyId": "96:96",
55
+ "name": "Seattle Center Monorail",
56
+ "logo": "https://s3.amazonaws.com/datatools-production/branding/agency_2_seattle_monorail.png"
57
+ },
58
+ {
59
+ "feedId": "40",
60
+ "agencyId": "40:40",
61
+ "name": "Sound Transit",
62
+ "logo": "https://s3.amazonaws.com/datatools-production/branding/agency_2_sound_transit.png",
63
+ "order": 1
64
+ },
65
+ {
66
+ "feedId": "CommTrans",
67
+ "agencyId": "CommTrans:40",
68
+ "name": "Sound Transit",
69
+ "logo": "https://s3.amazonaws.com/datatools-production/branding/agency_2_sound_transit.png"
70
+ },
71
+ {
72
+ "feedId": "kcm",
73
+ "agencyId": "kcm:40",
74
+ "name": "Sound Transit",
75
+ "logo": "https://s3.amazonaws.com/datatools-production/branding/agency_2_sound_transit.png"
76
+ },
77
+ {
78
+ "feedId": "3",
79
+ "agencyId": "3:40",
80
+ "name": "Sound Transit",
81
+ "logo": "https://s3.amazonaws.com/datatools-production/branding/agency_2_sound_transit.png",
82
+ "order": 1
83
+ },
84
+ {
85
+ "feedId": "95",
86
+ "agencyId": "95:95",
87
+ "name": "Washington State Ferries",
88
+ "logo": "https://s3.amazonaws.com/datatools-production/branding/agency_2_wash_state_ferry.png"
89
+ },
90
+ {
91
+ "feedId": "Whatcom",
92
+ "agencyId": "Whatcom:14",
93
+ "name": "Whatcom Transportation Authority",
94
+ "logo": "https://s3.amazonaws.com/datatools-production/branding/agency_2_wta.png"
95
+ }
96
+ ]
97
+ }