1 | import './types/index';
|
2 |
|
3 | export const wsdlUrl: WsdlUrl = 'https://lite.realtime.nationalrail.co.uk/OpenLDBWS/wsdl.aspx?ver=2016-02-16';
|
4 |
|
5 | export const getSoapHeader = (apiToken: ApiToken): SoapHeader => {
|
6 | return { AccessToken: { TokenValue: apiToken } };
|
7 | };
|
8 |
|
9 | export const wsdlMethodMap: Map<string, string> = new Map([
|
10 | ['getDepartures', 'GetDepartureBoardAsync'],
|
11 | ['getArrivals', 'GetArrivalBoardAsync'],
|
12 | ['getAll', 'GetArrivalDepartureBoardAsync'],
|
13 | ['getServiceDetails', 'GetServiceDetailsAsync'],
|
14 | ]);
|