@defra-fish/gafl-webapp-service
Version:
The websales frontend for the GAFL service
64 lines (61 loc) • 2.69 kB
JavaScript
/**
* This maps the functions that determine the navigation in the journey definition to the pages
*/
import {
DATE_OF_BIRTH,
LICENCE_TO_START,
DISABILITY_CONCESSION,
LICENCE_LENGTH,
LICENCE_TYPE,
LICENCE_FOR,
LICENCE_START_TIME,
ADDRESS_LOOKUP,
ADDRESS_SELECT,
ADDRESS_ENTRY,
LICENCE_FULFILMENT,
LICENCE_CONFIRMATION_METHOD,
CONTACT,
LICENCE_SUMMARY,
NAME,
TERMS_AND_CONDITIONS,
CHOOSE_PAYMENT
} from '../uri.js'
import dateOfBirth from '../pages/concessions/date-of-birth/result-function.js'
import licenceToStart from '../pages/licence-details/licence-to-start/result-function.js'
import disabilityConcession from '../pages/concessions/disability/result-function.js'
import licenceType from '../pages/licence-details/licence-type/result-function.js'
import licenceFor from '../pages/licence-details/licence-for/result-function.js'
import licenceLength from '../pages/licence-details/licence-length/result-function.js'
import licenceStartTime from '../pages/licence-details/licence-start-time/result-function.js'
import contact from '../pages/contact/contact/result-function.js'
import licenceFulfilment from '../pages/contact/digital-licence/licence-fulfilment/result-function.js'
import licenceConfirmationMethod from '../pages/contact/digital-licence/licence-confirmation-method/result-function.js'
import name from '../pages/contact/name/result-function.js'
import addressLookup from '../pages/contact/address/lookup/result-function.js'
import addressSelect from '../pages/contact/address/select/result-function.js'
import addressEntry from '../pages/contact/address/entry/result-function.js'
import licenceSummary from '../pages/summary/licence-summary/result-function.js'
import termsAndConditions from '../pages/terms-and-conditions/result-function.js'
import choosePayment from '../pages/recurring-payments/choose-payment/result-function.js'
/**
* The result function determines the navigation in the route definition
*/
export default {
[]: dateOfBirth,
[]: licenceToStart,
[]: disabilityConcession,
[]: licenceLength,
[]: licenceType,
[]: licenceFor,
[]: licenceStartTime,
[]: addressLookup,
[]: addressEntry,
[]: addressSelect,
[]: contact,
[]: licenceFulfilment,
[]: licenceConfirmationMethod,
[]: name,
[]: licenceSummary,
[]: termsAndConditions,
[]: choosePayment
}