mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 07:09:35 +02:00
35 lines
709 B
JavaScript
35 lines
709 B
JavaScript
'use strict'
|
|
|
|
const baseProfile = require('./base.json')
|
|
const products = require('./products')
|
|
|
|
const formatRefreshJourneyReq = ({opt}, refreshToken) => {
|
|
return {
|
|
meth: 'Reconstruction',
|
|
req: {
|
|
outReconL: [{ctx: refreshToken}],
|
|
},
|
|
}
|
|
}
|
|
|
|
module.exports = formatRefreshJourneyReq
|
|
|
|
const hvvProfile = {
|
|
...baseProfile,
|
|
locale: 'de-DE',
|
|
timezone: 'Europe/Berlin',
|
|
|
|
products,
|
|
|
|
trip: true,
|
|
radar: true,
|
|
reachableFrom: true,
|
|
refreshJourney: true,
|
|
formatRefreshJourneyReq,
|
|
|
|
refreshJourneyUseOutReconL: true,
|
|
departuresGetPasslist: false, // `departures()`: support for `getPasslist`?
|
|
departuresStbFltrEquiv: false, // `departures()`: support for `stbFltrEquiv`?
|
|
}
|
|
|
|
module.exports = hvvProfile
|