2019-02-01 15:06:24 +01:00
|
|
|
// Refer to the the ./writing-a-profile.md guide.
|
2018-03-24 18:18:34 +01:00
|
|
|
|
|
|
|
const products = [
|
|
|
|
{
|
2019-02-01 15:06:24 +01:00
|
|
|
id: 'commuterTrain',
|
2018-03-24 18:18:34 +01:00
|
|
|
mode: 'train',
|
2019-02-01 15:06:24 +01:00
|
|
|
bitmasks: [16],
|
|
|
|
name: 'ACME Commuter Rail',
|
|
|
|
short: 'CR',
|
2018-03-24 18:18:34 +01:00
|
|
|
default: true
|
|
|
|
},
|
|
|
|
{
|
2019-02-01 15:06:24 +01:00
|
|
|
id: 'metro',
|
2018-03-24 18:18:34 +01:00
|
|
|
mode: 'train',
|
2019-02-01 15:06:24 +01:00
|
|
|
bitmasks: [8],
|
|
|
|
name: 'Foo Bar Metro',
|
|
|
|
short: 'M',
|
2018-03-24 18:18:34 +01:00
|
|
|
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,
|
|
|
|
|
2018-06-29 15:14:26 +02:00
|
|
|
trip: false,
|
2018-03-24 18:18:34 +01:00
|
|
|
radar: false
|
|
|
|
}
|
|
|
|
|
2022-05-07 16:17:37 +02:00
|
|
|
export {
|
|
|
|
insaProfile,
|
|
|
|
}
|