mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 23:29:35 +02:00
44 lines
688 B
JavaScript
44 lines
688 B
JavaScript
'use strict'
|
|
// Refer to the the ./writing-a-profile.md guide.
|
|
|
|
const products = [
|
|
{
|
|
id: 'commuterTrain',
|
|
mode: 'train',
|
|
bitmasks: [16],
|
|
name: 'ACME Commuter Rail',
|
|
short: 'CR',
|
|
default: true
|
|
},
|
|
{
|
|
id: 'metro',
|
|
mode: 'train',
|
|
bitmasks: [8],
|
|
name: 'Foo Bar Metro',
|
|
short: 'M',
|
|
default: true
|
|
}
|
|
]
|
|
|
|
const transformReqBody = (body) => {
|
|
// get these from the recorded app requests
|
|
// body.client = { … }
|
|
// body.ver = …
|
|
// body.auth = { … }
|
|
// body.lang = …
|
|
return body
|
|
}
|
|
|
|
const insaProfile = {
|
|
// locale: …,
|
|
// timezone: …,
|
|
// endpoint: …,
|
|
transformReqBody,
|
|
|
|
products: products,
|
|
|
|
trip: false,
|
|
radar: false
|
|
}
|
|
|
|
module.exports = insaProfile
|