|
// service + ':' + call -> response body's root elements |
|
const CLIENT_RESPONSE_ROOT_ELS_BY_PATH = new Map([ |
|
[SERVICES.DFI + ':' + SERVER_CALLS.CLIENT_STATUS, 'ClientStatusAntwort'], |
|
[SERVICES.DFI + ':' + SERVER_CALLS.DATEN_BEREIT, 'DatenBereitAntwort'], |
|
// todo: other calls on DFI |
|
[SERVICES.REF_DFI + ':' + SERVER_CALLS.CLIENT_STATUS, 'ClientStatusAntwort'], |
|
[SERVICES.REF_DFI + ':' + SERVER_CALLS.DATEN_BEREIT, 'DatenBereitAntwort'], |
|
// todo: other calls on REF_DFI |
|
[SERVICES.ANS + ':' + SERVER_CALLS.CLIENT_STATUS, 'ClientStatusAntwort'], |
|
// todo: other calls on ANS |
|
[SERVICES.REF_ANS + ':' + SERVER_CALLS.CLIENT_STATUS, 'ClientStatusAntwort'], |
|
// todo: other calls on REF_ANS |
|
[SERVICES.VIS + ':' + SERVER_CALLS.CLIENT_STATUS, 'ClientStatusAntwort'], |
|
// todo: other calls on VIS |
|
[SERVICES.AND + ':' + SERVER_CALLS.CLIENT_STATUS, 'ClientStatusAntwort'], |
|
// todo: other calls on AND |
|
[SERVICES.AUS + ':' + SERVER_CALLS.CLIENT_STATUS, 'ClientStatusAntwort'], |
|
// todo: other calls on AUS |
|
[SERVICES.REF_AUS + ':' + SERVER_CALLS.CLIENT_STATUS, 'ClientStatusAntwort'], |
|
// todo: other calls on REF_AUS |
|
]) |
This client should support all VDV-453/VDV-454 services, not just those that VBB currently uses.
vdv-453-client/index.js
Lines 19 to 30 in 0ace9f3
vdv-453-client/index.js
Lines 51 to 56 in 0ace9f3
vdv-453-client/index.js
Lines 70 to 76 in 0ace9f3
vdv-453-client/index.js
Lines 543 to 550 in 0ace9f3
vdv-453-client/index.js
Lines 738 to 751 in 0ace9f3
vdv-453-client/lib/server.js
Lines 17 to 37 in 0ace9f3
vdv-453-client/index.js
Lines 127 to 128 in be70352