add todos

This commit is contained in:
Jannis R 2021-12-29 13:51:37 +01:00
parent 674e4a5fe6
commit e79a371dde
No known key found for this signature in database
GPG key ID: 0FE83946296A88A5
4 changed files with 4 additions and 0 deletions

View file

@ -154,6 +154,7 @@ const formatStation = (id) => {
}
// use the Berlkönig ride sharing service?
// todo: https://github.com/alexander-albers/tripkit/issues/26#issuecomment-825437320
const requestJourneysWithBerlkoenig = ({opt}, query) => {
if (('numF' in query) && opt.berlkoenig) {
// todo: check if this is still true

View file

@ -157,6 +157,7 @@ const transformJourneysQuery = ({opt}, query) => {
query.trfReq = {
jnyCl: opt.firstClass === true ? 1 : 2,
// todo [breaking]: support multiple travelers
tvlrProf: [{
type: 'E',
redtnCard: opt.loyaltyCard

View file

@ -109,6 +109,7 @@ const parseJourneyLeg = (ctx, pt, date) => { // pt = raw leg
res.tripId = pt.jny.jid
res.line = pt.jny.line || null
// todo [breaking]: don't call parseStationName() here, add parseDirection() hook
// todo: support pt.jny.dirL[]
res.direction = pt.jny.dirTxt && profile.parseStationName(ctx, pt.jny.dirTxt) || null
if (pt.jny.pos) {

View file

@ -22,6 +22,7 @@ const parseLine = ({profile}, p) => {
// todo: what is p.prodCtx.catCode?
if (p.prodCtx && 'string' === typeof p.prodCtx.admin) {
// todo [breaking]: don't trim
res.adminCode = p.prodCtx.admin.replace(/-+$/, '')
}