Commit graph

369 commits

Author SHA1 Message Date
Jannis R
a6411707e1
DB E2E test: cleanup 2022-11-17 15:25:01 +01:00
Jannis R
a0a4064bf0
trip/tripsByName: realtimeDataFrom -> separate realtimeDataUpdatedAt field 💥📝 2022-11-17 15:25:00 +01:00
Jannis R
3cbbc3c4da
refreshJourney: return journey as field 💥📝 2022-11-17 15:17:02 +01:00
Jannis R
751ae21d18
journeys/refreshJourney/journeysFromTrip: realtimeDataFrom -> realtimeDataUpdatedAt 💥📝 2022-11-17 15:17:02 +01:00
Jannis R
c4470ca962
arrivals/departures: return obj with realtimeDataUpdatedAt & results 💥📝 2022-11-17 15:17:02 +01:00
Jannis R
1000e48dfd
handle METHOD_NA/NO_MATCH/PARAMETER errors 2022-11-17 15:17:02 +01:00
Jannis R
9b263bb379
rework error handling 💥📝 2022-11-17 15:17:02 +01:00
Jannis R
b030eec1f5
use more async/await 💥 2022-11-17 15:17:02 +01:00
Jannis R
f5962c4b7f
VBB E2E/integration tests: update mocked when & fixtures 2022-11-17 15:17:02 +01:00
Jannis R
70ae1b48bc
VBB/BVG E2E/integration tests: refactor shared test utils 2022-11-17 15:17:02 +01:00
Jannis R
7b0374695a
VBB: remove vbb-parse-line 💥 2022-11-17 15:17:01 +01:00
Jannis R
d2bc134645
VBB: don't shorten stop/station names 💥 2022-11-17 15:17:01 +01:00
Jannis R
5ecf03f349
VBB: don't convert 7/9 <-> 12 digit IDs 💥 2022-11-17 15:17:01 +01:00
Jannis R
df4124e31d
BVG: don't shorten names 💥 2022-11-17 15:17:01 +01:00
Jannis R
1f6115955d
BVG: don't convert IDs 💥 2022-11-17 15:17:01 +01:00
Jannis R
1ae1362916
BVG: remove vbb-parse-line 💥 2022-11-17 15:17:01 +01:00
Jannis R
492fdeb2ef
add profile.randomizeUserAgent flag 📝 2022-11-17 15:17:01 +01:00
Jannis R
e0cdd55908
parseWarning: {from,to}Loc -> {from,to}Location 💥 2022-11-17 15:17:01 +01:00
Jannis R
a60083f8d1
parse trip.scheduledDays 2022-11-16 15:23:25 +01:00
Jannis R
b6900a3ddb
parse journey.scheduleDays using fpB & fpE 🐛
fixes #277

Thanks @bergmannjg!
2022-11-16 15:22:18 +01:00
Jannis R
61fc2293fb
E2E/integration tests: tweak assertions 2022-11-09 18:25:04 +01:00
Jannis R
0f7382e3b8
parse{Arrival,Departure}: properly parse .origin & .destination 🐛
fixes #273

Co-Authored-By: Jürgen Bergmann <bergmannj@posteo.de>
2022-10-15 14:02:11 +02:00
Jannis R
95af0a0127
parse{Arrival,Departure}: expose prognosisType
fixes #266
2022-07-22 01:07:09 +02:00
Pieterjan Van Saet
7c68f962c1
parse{Stopover,JourneyLeg, Trip}: expose {arrival,departure}PrognosisType
see #266

Co-authored-by: Jannis R <mail@jannisr.de>
2022-07-22 01:06:35 +02:00
Jannis R
0a63698100
parse CHKI legs with checkin: true
fixes #267
2022-07-21 21:37:01 +02:00
Jannis R
2ed2f38195
E2E/integration tests: DRY & tweak assertions 2022-06-18 18:33:26 +02:00
Jannis R
bdf933f806
INSA E2E/integration tests: adapt to latest data, update mocked when & fixtures 2022-06-18 18:33:26 +02:00
Jannis R
38cc9e9af8
E2E/integration tests: validate remarks 2022-06-18 18:33:26 +02:00
Jannis R
dda36c2da0
tests: enable linter, fix code style 2022-06-18 18:33:26 +02:00
Jannis R
3c7d8f79b2
DB: fix journeysFromTrip E2E/integration test 🐛 2022-06-18 18:33:26 +02:00
Jannis R
08be943906
BVG: re-skip BerlKönig test 2022-06-18 18:33:26 +02:00
Jannis R
27bf631ae5
SVV integration tests: add missing fixture 2022-04-30 00:12:56 +02:00
Jannis R
7e1f7ed4ee
BVG/VBB: parse stop DHIDs 2022-04-26 22:08:23 +02:00
Jannis R
119d291d10
DB integration tests: update mocked when to 2022-07-12 2022-04-26 22:07:41 +02:00
Jannis R
1ab526d900
integration tests: define mocked when per profile
https://github.com/public-transport/hafas-client/pull/264#issuecomment-1107462890
2022-04-23 14:42:55 +02:00
Jannis R
2edcd49e99
serverInfo: add opt.versionInfo 📝
Thanks to @alexander-albers!

see also https://github.com/alexander-albers/tripkit/issues/69#issuecomment-1048105228
2022-02-22 20:27:05 +01:00
Benoit Deldicque
57084262a2
add departure.destination & arrival.origin 📝
closes #260
fixes #259

Co-Authored-By: Jannis R <mail@jannisr.de>
2022-02-21 11:43:27 +01:00
Jannis R
2ec079adfc
TPG integration test 2021-12-29 15:56:25 +01:00
Jannis R
fa9a8d9f7d
integration tests: update fixtures 2021-12-29 15:50:58 +01:00
Jannis R
e69d069d43
fix & un-skip ingration tests, update mocked when 2021-12-29 15:50:57 +01:00
Jannis R
ed86ad0b56
add KVB profile 📝
fixes #250
2021-11-27 23:46:27 +01:00
Jannis R
f41b8ac464
BVG: update API endpoint, add new integration test fixtures
related: https://github.com/schildbach/public-transport-enabler/issues/418 & https://github.com/alexander-albers/tripkit/issues/48

This reverts 3f75e07.
2021-11-08 14:18:47 +01:00
Jannis R
69ddf5fb8d
BVG: parse occupancy 2021-10-28 12:42:55 +02:00
Jannis R
97b6a76e75
parseTrip: expose realtimeDataUpdatedAt 2021-10-28 00:25:58 +02:00
Jannis R
8d4f8a8357
E2E/integration tests: update fixtures 2021-10-26 15:00:10 +02:00
Jannis R
a7cb71c870
add todos & comments 2021-10-26 15:00:08 +02:00
Jannis R
f0d33564f2
parseTrip: handle missing stopL[] (on-demand trips) 🐛 2021-10-24 22:52:52 +02:00
Jannis R
fd6a349b64
tripsByName: more options, add to debug CLI, skipped E2E test 📝 2021-10-22 00:04:37 +02:00
Jannis R
959e894d42
E2E/integration tests: un-skip tests, update mocked when, update fixtures 2021-10-22 00:04:29 +02:00
Jannis R
22a7f16ec9
remove SBB integration/E2E test
The endpoint seems to be shut off, see #245.
2021-10-20 16:02:36 +02:00