Still awaiting the check auth endpoint, the code only acts on a 401 response.  That means that it currently will not detect if an account is expired.
This commit is contained in:
Fred Boniface
2023-08-24 20:24:28 +01:00
parent 4cd8a496b8
commit bc6fd6cdc9
20 changed files with 572 additions and 476 deletions

View File

@@ -1,44 +1,43 @@
export const tocs = new Map<string, string>([
[ 'gw', 'Great Western Railway' ],
[ 'sw', 'South Western Railway' ],
[ 'id', 'Island Line' ],
[ 'nt', 'Northern' ],
[ 'aw', 'Transport for Wales' ],
[ 'cc', 'c2c' ],
[ 'cs', 'Caledonian Sleeper' ],
[ 'ch', 'Chiltern Railways' ],
[ 'xc', 'CrossCountry' ],
[ 'em', 'East Midlands Railway' ],
[ 'es', 'Eurostar' ],
[ 'ht', 'Hull Trains' ],
[ 'tl', 'Thameslink' ],
[ 'gc', 'Grand Central' ],
[ 'gx', 'Gatwick Express' ],
[ 'hx', 'Heathrow Express' ],
[ 'ls', 'Locomotive Services Limited' ],
[ 'me', 'Merseyrail' ],
[ 'lr', 'Network Rail OTM' ],
[ 'xr', 'TfL Elizabeth Line' ],
[ 'se', 'Southeastern' ],
[ 'sn', 'Southern' ],
[ 'le', 'Greater Anglia' ],
[ 'ga', 'Greater Anglia' ],
[ 'lm', 'West Midlands Railway' ],
[ 'sr', 'ScotRail' ],
[ 'gn', 'Great Northern' ],
[ 'lt', 'TfL London Underground' ],
[ 'lo', 'TfL London Overground' ],
[ 'sj', 'Sheffield SuperTram' ],
[ 'tp', 'TransPennine Express' ],
[ 'vt', 'Avanti West Coast' ],
[ 'gr', 'LNER' ],
[ 'wr', 'West Coast Railway' ],
[ 'ty', 'Vintage Trains' ],
[ 'ld', 'Lumo' ],
[ 'so', 'Rail Adventure' ],
[ 'ln', 'Grand Union Trains' ],
[ 'zz', 'Freight/Charter Company' ],
[ 'wm', 'West Midlands Railway (WMT)' ],
[ 'uk', 'Unknown Operator' ]
]
)
['gw', 'Great Western Railway'],
['sw', 'South Western Railway'],
['id', 'Island Line'],
['nt', 'Northern'],
['aw', 'Transport for Wales'],
['cc', 'c2c'],
['cs', 'Caledonian Sleeper'],
['ch', 'Chiltern Railways'],
['xc', 'CrossCountry'],
['em', 'East Midlands Railway'],
['es', 'Eurostar'],
['ht', 'Hull Trains'],
['tl', 'Thameslink'],
['gc', 'Grand Central'],
['gx', 'Gatwick Express'],
['hx', 'Heathrow Express'],
['ls', 'Locomotive Services Limited'],
['me', 'Merseyrail'],
['lr', 'Network Rail OTM'],
['xr', 'TfL Elizabeth Line'],
['se', 'Southeastern'],
['sn', 'Southern'],
['le', 'Greater Anglia'],
['ga', 'Greater Anglia'],
['lm', 'West Midlands Railway'],
['sr', 'ScotRail'],
['gn', 'Great Northern'],
['lt', 'TfL London Underground'],
['lo', 'TfL London Overground'],
['sj', 'Sheffield SuperTram'],
['tp', 'TransPennine Express'],
['vt', 'Avanti West Coast'],
['gr', 'LNER'],
['wr', 'West Coast Railway'],
['ty', 'Vintage Trains'],
['ld', 'Lumo'],
['so', 'Rail Adventure'],
['ln', 'Grand Union Trains'],
['zz', 'Freight/Charter Company'],
['wm', 'West Midlands Railway (WMT)'],
['uk', 'Unknown Operator']
]);