@mrfylke/contact-form 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/ContactFormRoot.d.ts +37 -0
- package/lib/ContactFormRoot.d.ts.map +1 -0
- package/lib/ContactFormRoot.js +53 -0
- package/lib/commoneEvents.d.ts +16 -0
- package/lib/commoneEvents.d.ts.map +1 -0
- package/lib/commoneEvents.js +4 -0
- package/lib/components/button/button.d.ts +17 -0
- package/lib/components/button/button.d.ts.map +1 -0
- package/lib/components/button/button.js +15 -0
- package/lib/components/button/button.module.css +399 -0
- package/lib/components/button/index.d.ts +5 -0
- package/lib/components/button/index.d.ts.map +1 -0
- package/lib/components/button/index.js +10 -0
- package/lib/components/button/link.d.ts +27 -0
- package/lib/components/button/link.d.ts.map +1 -0
- package/lib/components/button/link.js +19 -0
- package/lib/components/button/utils.d.ts +69 -0
- package/lib/components/button/utils.d.ts.map +1 -0
- package/lib/components/button/utils.js +33 -0
- package/lib/components/checkbox/checkbox.d.ts +13 -0
- package/lib/components/checkbox/checkbox.d.ts.map +1 -0
- package/lib/components/checkbox/checkbox.js +23 -0
- package/lib/components/checkbox/checkbox.module.css +96 -0
- package/lib/components/checkbox/index.d.ts +3 -0
- package/lib/components/checkbox/index.d.ts.map +1 -0
- package/lib/components/checkbox/index.js +8 -0
- package/lib/components/error-message/error-message.d.ts +6 -0
- package/lib/components/error-message/error-message.d.ts.map +1 -0
- package/lib/components/error-message/error-message.js +13 -0
- package/lib/components/error-message/error-message.module.css +6 -0
- package/lib/components/error-message/index.d.ts +3 -0
- package/lib/components/error-message/index.d.ts.map +1 -0
- package/lib/components/error-message/index.js +8 -0
- package/lib/components/external-link-page.d.ts +14 -0
- package/lib/components/external-link-page.d.ts.map +1 -0
- package/lib/components/external-link-page.js +27 -0
- package/lib/components/external-link-page.module.css +29 -0
- package/lib/components/form/date-selector.d.ts +11 -0
- package/lib/components/form/date-selector.d.ts.map +1 -0
- package/lib/components/form/date-selector.js +21 -0
- package/lib/components/form/description-modal.d.ts +13 -0
- package/lib/components/form/description-modal.d.ts.map +1 -0
- package/lib/components/form/description-modal.js +43 -0
- package/lib/components/form/field-wrapper-with-error/index.d.ts +8 -0
- package/lib/components/form/field-wrapper-with-error/index.d.ts.map +1 -0
- package/lib/components/form/field-wrapper-with-error/index.js +12 -0
- package/lib/components/form/fieldset/fieldset.module.css +26 -0
- package/lib/components/form/fieldset/index.d.ts +8 -0
- package/lib/components/form/fieldset/index.d.ts.map +1 -0
- package/lib/components/form/fieldset/index.js +17 -0
- package/lib/components/form/file-input.d.ts +10 -0
- package/lib/components/form/file-input.d.ts.map +1 -0
- package/lib/components/form/file-input.js +68 -0
- package/lib/components/form/form-component-label/form-component-label.module.css +10 -0
- package/lib/components/form/form-component-label/index.d.ts +9 -0
- package/lib/components/form/form-component-label/index.d.ts.map +1 -0
- package/lib/components/form/form-component-label/index.js +18 -0
- package/lib/components/form/form.module.css +573 -0
- package/lib/components/form/index.d.ts +11 -0
- package/lib/components/form/index.d.ts.map +1 -0
- package/lib/components/form/index.js +28 -0
- package/lib/components/form/input.d.ts +17 -0
- package/lib/components/form/input.d.ts.map +1 -0
- package/lib/components/form/input.js +42 -0
- package/lib/components/form/radio.d.ts +7 -0
- package/lib/components/form/radio.d.ts.map +1 -0
- package/lib/components/form/radio.js +14 -0
- package/lib/components/form/searchable-select/index.d.ts +3 -0
- package/lib/components/form/searchable-select/index.d.ts.map +1 -0
- package/lib/components/form/searchable-select/index.js +11 -0
- package/lib/components/form/searchable-select/searchable-select.d.ts +18 -0
- package/lib/components/form/searchable-select/searchable-select.d.ts.map +1 -0
- package/lib/components/form/searchable-select/searchable-select.js +55 -0
- package/lib/components/form/searchable-select/utils.d.ts +5 -0
- package/lib/components/form/searchable-select/utils.d.ts.map +1 -0
- package/lib/components/form/searchable-select/utils.js +19 -0
- package/lib/components/form/select.d.ts +15 -0
- package/lib/components/form/select.d.ts.map +1 -0
- package/lib/components/form/select.js +22 -0
- package/lib/components/form/textarea.d.ts +11 -0
- package/lib/components/form/textarea.d.ts.map +1 -0
- package/lib/components/form/textarea.js +17 -0
- package/lib/components/form/time-selector.d.ts +11 -0
- package/lib/components/form/time-selector.d.ts.map +1 -0
- package/lib/components/form/time-selector.js +22 -0
- package/lib/components/icon/checkbox-icon.d.ts +14 -0
- package/lib/components/icon/checkbox-icon.d.ts.map +1 -0
- package/lib/components/icon/checkbox-icon.js +18 -0
- package/lib/components/icon/color-icon.d.ts +17 -0
- package/lib/components/icon/color-icon.d.ts.map +1 -0
- package/lib/components/icon/color-icon.js +27 -0
- package/lib/components/icon/generated-icons.d.ts +1797 -0
- package/lib/components/icon/generated-icons.d.ts.map +1 -0
- package/lib/components/icon/generated-icons.js +1782 -0
- package/lib/components/icon/icon-wrapper.d.ts +30 -0
- package/lib/components/icon/icon-wrapper.d.ts.map +1 -0
- package/lib/components/icon/icon-wrapper.js +39 -0
- package/lib/components/icon/illustration.d.ts +7 -0
- package/lib/components/icon/illustration.d.ts.map +1 -0
- package/lib/components/icon/illustration.js +25 -0
- package/lib/components/icon/image.d.ts +7 -0
- package/lib/components/icon/image.d.ts.map +1 -0
- package/lib/components/icon/image.js +26 -0
- package/lib/components/icon/index.d.ts +6 -0
- package/lib/components/icon/index.d.ts.map +1 -0
- package/lib/components/icon/index.js +20 -0
- package/lib/components/icon/mono-icon-new.d.ts +32 -0
- package/lib/components/icon/mono-icon-new.d.ts.map +1 -0
- package/lib/components/icon/mono-icon-new.js +43 -0
- package/lib/components/icon/mono-icon.d.ts +29 -0
- package/lib/components/icon/mono-icon.d.ts.map +1 -0
- package/lib/components/icon/mono-icon.js +39 -0
- package/lib/components/icon/utils.d.ts +3 -0
- package/lib/components/icon/utils.d.ts.map +1 -0
- package/lib/components/icon/utils.js +12 -0
- package/lib/components/index.d.ts +3 -0
- package/lib/components/index.d.ts.map +1 -0
- package/lib/components/index.js +18 -0
- package/lib/components/loading/index.d.ts +15 -0
- package/lib/components/loading/index.d.ts.map +1 -0
- package/lib/components/loading/index.js +19 -0
- package/lib/components/loading/loading.module.css +17 -0
- package/lib/components/section-card/index.d.ts +2 -0
- package/lib/components/section-card/index.d.ts.map +1 -0
- package/lib/components/section-card/index.js +8 -0
- package/lib/components/section-card/section-card.d.ts +7 -0
- package/lib/components/section-card/section-card.d.ts.map +1 -0
- package/lib/components/section-card/section-card.js +14 -0
- package/lib/components/section-card/section-card.module.css +15 -0
- package/lib/components/typography/index.d.ts +19 -0
- package/lib/components/typography/index.d.ts.map +1 -0
- package/lib/components/typography/index.js +27 -0
- package/lib/components/typography/utils.d.ts +2 -0
- package/lib/components/typography/utils.d.ts.map +1 -0
- package/lib/components/typography/utils.js +4 -0
- package/lib/contact.module.css +76 -0
- package/lib/error-content/error-content.d.ts +2 -0
- package/lib/error-content/error-content.d.ts.map +1 -0
- package/lib/error-content/error-content.js +19 -0
- package/lib/error-content/error-content.module.css +11 -0
- package/lib/group-travel/index.d.ts +2 -0
- package/lib/group-travel/index.d.ts.map +1 -0
- package/lib/group-travel/index.js +15 -0
- package/lib/index.d.ts +25 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +73 -0
- package/lib/journey-info/events.d.ts +14 -0
- package/lib/journey-info/events.d.ts.map +1 -0
- package/lib/journey-info/events.js +5 -0
- package/lib/journey-info/index.d.ts +2 -0
- package/lib/journey-info/index.d.ts.map +1 -0
- package/lib/journey-info/index.js +66 -0
- package/lib/journey-info/journeyInfoStateMachine.d.ts +179 -0
- package/lib/journey-info/journeyInfoStateMachine.d.ts.map +1 -0
- package/lib/journey-info/journeyInfoStateMachine.js +160 -0
- package/lib/layouts/contact-form-container.d.ts +10 -0
- package/lib/layouts/contact-form-container.d.ts.map +1 -0
- package/lib/layouts/contact-form-container.js +12 -0
- package/lib/layouts/contact-form-footer.d.ts +5 -0
- package/lib/layouts/contact-form-footer.d.ts.map +1 -0
- package/lib/layouts/contact-form-footer.js +59 -0
- package/lib/layouts/contact-form-header.d.ts +9 -0
- package/lib/layouts/contact-form-header.d.ts.map +1 -0
- package/lib/layouts/contact-form-header.js +45 -0
- package/lib/layouts/contact-page-layout.d.ts +24 -0
- package/lib/layouts/contact-page-layout.d.ts.map +1 -0
- package/lib/layouts/contact-page-layout.js +104 -0
- package/lib/layouts/container.module.css +15 -0
- package/lib/layouts/footer.module.css +109 -0
- package/lib/layouts/header.module.css +39 -0
- package/lib/layouts/index.d.ts +3 -0
- package/lib/layouts/index.d.ts.map +1 -0
- package/lib/layouts/index.js +11 -0
- package/lib/layouts/layout.module.css +80 -0
- package/lib/lines/use-lines.d.ts +25 -0
- package/lib/lines/use-lines.d.ts.map +1 -0
- package/lib/lines/use-lines.js +77 -0
- package/lib/lost-property/index.d.ts +2 -0
- package/lib/lost-property/index.d.ts.map +1 -0
- package/lib/lost-property/index.js +11 -0
- package/lib/means-of-transport/events.d.ts +17 -0
- package/lib/means-of-transport/events.d.ts.map +1 -0
- package/lib/means-of-transport/events.js +5 -0
- package/lib/means-of-transport/forms/delayForm.d.ts +11 -0
- package/lib/means-of-transport/forms/delayForm.d.ts.map +1 -0
- package/lib/means-of-transport/forms/delayForm.js +88 -0
- package/lib/means-of-transport/forms/driverForm.d.ts +11 -0
- package/lib/means-of-transport/forms/driverForm.d.ts.map +1 -0
- package/lib/means-of-transport/forms/driverForm.js +88 -0
- package/lib/means-of-transport/forms/index.d.ts +7 -0
- package/lib/means-of-transport/forms/index.d.ts.map +1 -0
- package/lib/means-of-transport/forms/index.js +18 -0
- package/lib/means-of-transport/forms/injuryForm.d.ts +11 -0
- package/lib/means-of-transport/forms/injuryForm.d.ts.map +1 -0
- package/lib/means-of-transport/forms/injuryForm.js +88 -0
- package/lib/means-of-transport/forms/serviceOfferingForm.d.ts +11 -0
- package/lib/means-of-transport/forms/serviceOfferingForm.d.ts.map +1 -0
- package/lib/means-of-transport/forms/serviceOfferingForm.js +64 -0
- package/lib/means-of-transport/forms/stopForm.d.ts +11 -0
- package/lib/means-of-transport/forms/stopForm.d.ts.map +1 -0
- package/lib/means-of-transport/forms/stopForm.js +76 -0
- package/lib/means-of-transport/forms/transportationForm.d.ts +11 -0
- package/lib/means-of-transport/forms/transportationForm.d.ts.map +1 -0
- package/lib/means-of-transport/forms/transportationForm.js +88 -0
- package/lib/means-of-transport/index.d.ts +3 -0
- package/lib/means-of-transport/index.d.ts.map +1 -0
- package/lib/means-of-transport/index.js +47 -0
- package/lib/means-of-transport/means-of-transport-form-machine.d.ts +291 -0
- package/lib/means-of-transport/means-of-transport-form-machine.d.ts.map +1 -0
- package/lib/means-of-transport/means-of-transport-form-machine.js +287 -0
- package/lib/modules/api-browser/index.d.ts +8 -0
- package/lib/modules/api-browser/index.d.ts.map +1 -0
- package/lib/modules/api-browser/index.js +54 -0
- package/lib/modules/api-server/external-client.d.ts +22 -0
- package/lib/modules/api-server/external-client.d.ts.map +1 -0
- package/lib/modules/api-server/external-client.js +86 -0
- package/lib/modules/api-server/index.d.ts +9 -0
- package/lib/modules/api-server/index.d.ts.map +1 -0
- package/lib/modules/api-server/index.js +24 -0
- package/lib/modules/api-server/requesters/graphql-requester.d.ts +6 -0
- package/lib/modules/api-server/requesters/graphql-requester.d.ts.map +1 -0
- package/lib/modules/api-server/requesters/graphql-requester.js +63 -0
- package/lib/modules/api-server/requesters/http-requester.d.ts +3 -0
- package/lib/modules/api-server/requesters/http-requester.d.ts.map +1 -0
- package/lib/modules/api-server/requesters/http-requester.js +110 -0
- package/lib/modules/api-server/requesters/types.d.ts +37 -0
- package/lib/modules/api-server/requesters/types.d.ts.map +1 -0
- package/lib/modules/api-server/requesters/types.js +34 -0
- package/lib/modules/api-server/requesters/utils.d.ts +17 -0
- package/lib/modules/api-server/requesters/utils.d.ts.map +1 -0
- package/lib/modules/api-server/requesters/utils.js +75 -0
- package/lib/modules/config/context.d.ts +54 -0
- package/lib/modules/config/context.d.ts.map +1 -0
- package/lib/modules/config/context.js +112 -0
- package/lib/modules/config/index.d.ts +4 -0
- package/lib/modules/config/index.d.ts.map +1 -0
- package/lib/modules/config/index.js +19 -0
- package/lib/modules/config/theme-adapter.d.ts +20 -0
- package/lib/modules/config/theme-adapter.d.ts.map +1 -0
- package/lib/modules/config/theme-adapter.js +56 -0
- package/lib/modules/config/types.d.ts +348 -0
- package/lib/modules/config/types.d.ts.map +1 -0
- package/lib/modules/config/types.js +6 -0
- package/lib/modules/cookies/constants.d.ts +4 -0
- package/lib/modules/cookies/constants.d.ts.map +1 -0
- package/lib/modules/cookies/constants.js +6 -0
- package/lib/modules/cookies/cookies-context.d.ts +17 -0
- package/lib/modules/cookies/cookies-context.d.ts.map +1 -0
- package/lib/modules/cookies/cookies-context.js +61 -0
- package/lib/modules/cookies/index.d.ts +15 -0
- package/lib/modules/cookies/index.d.ts.map +1 -0
- package/lib/modules/cookies/index.js +22 -0
- package/lib/modules/firebase/analytics.d.ts +3 -0
- package/lib/modules/firebase/analytics.d.ts.map +1 -0
- package/lib/modules/firebase/analytics.js +40 -0
- package/lib/modules/firebase/firebase.d.ts +4 -0
- package/lib/modules/firebase/firebase.d.ts.map +1 -0
- package/lib/modules/firebase/firebase.js +19 -0
- package/lib/modules/firebase/index.d.ts +5 -0
- package/lib/modules/firebase/index.d.ts.map +1 -0
- package/lib/modules/firebase/index.js +25 -0
- package/lib/modules/firebase/preassigned-fare-products.d.ts +8 -0
- package/lib/modules/firebase/preassigned-fare-products.d.ts.map +1 -0
- package/lib/modules/firebase/preassigned-fare-products.js +35 -0
- package/lib/modules/firebase/tariff-zones.d.ts +17 -0
- package/lib/modules/firebase/tariff-zones.d.ts.map +1 -0
- package/lib/modules/firebase/tariff-zones.js +32 -0
- package/lib/modules/firebase/transport-mode-filter.d.ts +27 -0
- package/lib/modules/firebase/transport-mode-filter.d.ts.map +1 -0
- package/lib/modules/firebase/transport-mode-filter.js +27 -0
- package/lib/modules/firebase/types.d.ts +19 -0
- package/lib/modules/firebase/types.d.ts.map +1 -0
- package/lib/modules/firebase/types.js +15 -0
- package/lib/modules/graphql-types/index.d.ts +1998 -0
- package/lib/modules/graphql-types/index.d.ts.map +1 -0
- package/lib/modules/graphql-types/index.js +442 -0
- package/lib/modules/graphql-types/journeyplanner-types_v3.generated.d.ts +2419 -0
- package/lib/modules/graphql-types/journeyplanner-types_v3.generated.d.ts.map +1 -0
- package/lib/modules/graphql-types/journeyplanner-types_v3.generated.js +524 -0
- package/lib/modules/logging/index.d.ts +6 -0
- package/lib/modules/logging/index.d.ts.map +1 -0
- package/lib/modules/logging/index.js +13 -0
- package/lib/modules/logging/log-api-response.d.ts +15 -0
- package/lib/modules/logging/log-api-response.d.ts.map +1 -0
- package/lib/modules/logging/log-api-response.js +52 -0
- package/lib/modules/logging/log-page-access.d.ts +20 -0
- package/lib/modules/logging/log-page-access.d.ts.map +1 -0
- package/lib/modules/logging/log-page-access.js +60 -0
- package/lib/modules/logging/logger.d.ts +3 -0
- package/lib/modules/logging/logger.d.ts.map +1 -0
- package/lib/modules/logging/logger.js +32 -0
- package/lib/modules/logging/timer.d.ts +6 -0
- package/lib/modules/logging/timer.d.ts.map +1 -0
- package/lib/modules/logging/timer.js +13 -0
- package/lib/modules/logging/with-access-logging.d.ts +5 -0
- package/lib/modules/logging/with-access-logging.d.ts.map +1 -0
- package/lib/modules/logging/with-access-logging.js +20 -0
- package/lib/modules/org-data/compat-layer.d.ts +8 -0
- package/lib/modules/org-data/compat-layer.d.ts.map +1 -0
- package/lib/modules/org-data/compat-layer.js +8 -0
- package/lib/modules/org-data/index.d.ts +12 -0
- package/lib/modules/org-data/index.d.ts.map +1 -0
- package/lib/modules/org-data/index.js +27 -0
- package/lib/modules/theme/index.d.ts +3 -0
- package/lib/modules/theme/index.d.ts.map +1 -0
- package/lib/modules/theme/index.js +9 -0
- package/lib/modules/theme/theme-context.d.ts +43 -0
- package/lib/modules/theme/theme-context.d.ts.map +1 -0
- package/lib/modules/theme/theme-context.js +73 -0
- package/lib/modules/transport-mode/filter/filter.d.ts +9 -0
- package/lib/modules/transport-mode/filter/filter.d.ts.map +1 -0
- package/lib/modules/transport-mode/filter/filter.js +64 -0
- package/lib/modules/transport-mode/filter/filter.module.css +98 -0
- package/lib/modules/transport-mode/filter/index.d.ts +3 -0
- package/lib/modules/transport-mode/filter/index.d.ts.map +1 -0
- package/lib/modules/transport-mode/filter/index.js +11 -0
- package/lib/modules/transport-mode/filter/types.d.ts +2 -0
- package/lib/modules/transport-mode/filter/types.d.ts.map +1 -0
- package/lib/modules/transport-mode/filter/types.js +2 -0
- package/lib/modules/transport-mode/filter/utils.d.ts +9 -0
- package/lib/modules/transport-mode/filter/utils.d.ts.map +1 -0
- package/lib/modules/transport-mode/filter/utils.js +21 -0
- package/lib/modules/transport-mode/icon/icon.module.css +33 -0
- package/lib/modules/transport-mode/icon/index.d.ts +29 -0
- package/lib/modules/transport-mode/icon/index.d.ts.map +1 -0
- package/lib/modules/transport-mode/icon/index.js +116 -0
- package/lib/modules/transport-mode/icon/transport-icon-new.d.ts +28 -0
- package/lib/modules/transport-mode/icon/transport-icon-new.d.ts.map +1 -0
- package/lib/modules/transport-mode/icon/transport-icon-new.js +114 -0
- package/lib/modules/transport-mode/index.d.ts +5 -0
- package/lib/modules/transport-mode/index.d.ts.map +1 -0
- package/lib/modules/transport-mode/index.js +29 -0
- package/lib/modules/transport-mode/types.d.ts +10 -0
- package/lib/modules/transport-mode/types.d.ts.map +1 -0
- package/lib/modules/transport-mode/types.js +141 -0
- package/lib/modules/transport-mode/utils.d.ts +9 -0
- package/lib/modules/transport-mode/utils.d.ts.map +1 -0
- package/lib/modules/transport-mode/utils.js +53 -0
- package/lib/refund/events.d.ts +32 -0
- package/lib/refund/events.d.ts.map +1 -0
- package/lib/refund/events.js +5 -0
- package/lib/refund/forms/refund-and-travel-guarantee/index.d.ts +10 -0
- package/lib/refund/forms/refund-and-travel-guarantee/index.d.ts.map +1 -0
- package/lib/refund/forms/refund-and-travel-guarantee/index.js +37 -0
- package/lib/refund/forms/refund-and-travel-guarantee/refundCarForm.d.ts +11 -0
- package/lib/refund/forms/refund-and-travel-guarantee/refundCarForm.d.ts.map +1 -0
- package/lib/refund/forms/refund-and-travel-guarantee/refundCarForm.js +133 -0
- package/lib/refund/forms/refund-and-travel-guarantee/refundTaxiForm.d.ts +11 -0
- package/lib/refund/forms/refund-and-travel-guarantee/refundTaxiForm.d.ts.map +1 -0
- package/lib/refund/forms/refund-and-travel-guarantee/refundTaxiForm.js +133 -0
- package/lib/refund/forms/refund-ticket/appTicketRefund.d.ts +12 -0
- package/lib/refund/forms/refund-ticket/appTicketRefund.d.ts.map +1 -0
- package/lib/refund/forms/refund-ticket/appTicketRefund.js +82 -0
- package/lib/refund/forms/refund-ticket/index.d.ts +10 -0
- package/lib/refund/forms/refund-ticket/index.d.ts.map +1 -0
- package/lib/refund/forms/refund-ticket/index.js +38 -0
- package/lib/refund/forms/refund-ticket/otherTicketRefund.d.ts +11 -0
- package/lib/refund/forms/refund-ticket/otherTicketRefund.d.ts.map +1 -0
- package/lib/refund/forms/refund-ticket/otherTicketRefund.js +109 -0
- package/lib/refund/forms/residualValueOnTravelCard/index.d.ts +2 -0
- package/lib/refund/forms/residualValueOnTravelCard/index.d.ts.map +1 -0
- package/lib/refund/forms/residualValueOnTravelCard/index.js +19 -0
- package/lib/refund/index.d.ts +3 -0
- package/lib/refund/index.d.ts.map +1 -0
- package/lib/refund/index.js +50 -0
- package/lib/refund/refundFormMachine.d.ts +406 -0
- package/lib/refund/refundFormMachine.d.ts.map +1 -0
- package/lib/refund/refundFormMachine.js +404 -0
- package/lib/server/contact/index.d.ts +11 -0
- package/lib/server/contact/index.d.ts.map +1 -0
- package/lib/server/contact/index.js +47 -0
- package/lib/server/index.d.ts +9 -0
- package/lib/server/index.d.ts.map +1 -0
- package/lib/server/index.js +14 -0
- package/lib/server/journey-planner/authority.d.ts +26 -0
- package/lib/server/journey-planner/authority.d.ts.map +1 -0
- package/lib/server/journey-planner/authority.js +48 -0
- package/lib/server/journey-planner/entur-client.d.ts +7 -0
- package/lib/server/journey-planner/entur-client.d.ts.map +1 -0
- package/lib/server/journey-planner/entur-client.js +46 -0
- package/lib/server/journey-planner/index.d.ts +11 -0
- package/lib/server/journey-planner/index.d.ts.map +1 -0
- package/lib/server/journey-planner/index.js +63 -0
- package/lib/server/journey-planner/journey-gql/lines.generated.d.ts +25 -0
- package/lib/server/journey-planner/journey-gql/lines.generated.d.ts.map +1 -0
- package/lib/server/journey-planner/journey-gql/lines.generated.js +30 -0
- package/lib/server/journey-planner/validators.d.ts +25 -0
- package/lib/server/journey-planner/validators.d.ts.map +1 -0
- package/lib/server/journey-planner/validators.js +17 -0
- package/lib/server/types.d.ts +5 -0
- package/lib/server/types.d.ts.map +1 -0
- package/lib/server/types.js +2 -0
- package/lib/success-content/success-content.d.ts +2 -0
- package/lib/success-content/success-content.d.ts.map +1 -0
- package/lib/success-content/success-content.js +19 -0
- package/lib/success-content/success-content.module.css +11 -0
- package/lib/ticket-control/events.d.ts +16 -0
- package/lib/ticket-control/events.d.ts.map +1 -0
- package/lib/ticket-control/events.js +5 -0
- package/lib/ticket-control/forms/feeComplaintForm.d.ts +11 -0
- package/lib/ticket-control/forms/feeComplaintForm.d.ts.map +1 -0
- package/lib/ticket-control/forms/feeComplaintForm.js +130 -0
- package/lib/ticket-control/forms/feedbackForm.d.ts +11 -0
- package/lib/ticket-control/forms/feedbackForm.d.ts.map +1 -0
- package/lib/ticket-control/forms/feedbackForm.js +75 -0
- package/lib/ticket-control/forms/postponePayment.d.ts +11 -0
- package/lib/ticket-control/forms/postponePayment.d.ts.map +1 -0
- package/lib/ticket-control/forms/postponePayment.js +37 -0
- package/lib/ticket-control/index.d.ts +3 -0
- package/lib/ticket-control/index.d.ts.map +1 -0
- package/lib/ticket-control/index.js +53 -0
- package/lib/ticket-control/ticket-control-form-machine.d.ts +277 -0
- package/lib/ticket-control/ticket-control-form-machine.d.ts.map +1 -0
- package/lib/ticket-control/ticket-control-form-machine.js +262 -0
- package/lib/ticketing/events.d.ts +28 -0
- package/lib/ticketing/events.d.ts.map +1 -0
- package/lib/ticketing/events.js +5 -0
- package/lib/ticketing/forms/app/appAccountForm.d.ts +11 -0
- package/lib/ticketing/forms/app/appAccountForm.d.ts.map +1 -0
- package/lib/ticketing/forms/app/appAccountForm.js +51 -0
- package/lib/ticketing/forms/app/appTicketingForm.d.ts +11 -0
- package/lib/ticketing/forms/app/appTicketingForm.d.ts.map +1 -0
- package/lib/ticketing/forms/app/appTicketingForm.js +59 -0
- package/lib/ticketing/forms/app/appTravelSuggestionForm.d.ts +11 -0
- package/lib/ticketing/forms/app/appTravelSuggestionForm.d.ts.map +1 -0
- package/lib/ticketing/forms/app/appTravelSuggestionForm.js +41 -0
- package/lib/ticketing/forms/app/index.d.ts +10 -0
- package/lib/ticketing/forms/app/index.d.ts.map +1 -0
- package/lib/ticketing/forms/app/index.js +23 -0
- package/lib/ticketing/forms/priceAndTicketTypesForm.d.ts +11 -0
- package/lib/ticketing/forms/priceAndTicketTypesForm.d.ts.map +1 -0
- package/lib/ticketing/forms/priceAndTicketTypesForm.js +41 -0
- package/lib/ticketing/forms/travel-card/index.d.ts +10 -0
- package/lib/ticketing/forms/travel-card/index.d.ts.map +1 -0
- package/lib/ticketing/forms/travel-card/index.js +24 -0
- package/lib/ticketing/forms/travel-card/orderTravelCard.d.ts +3 -0
- package/lib/ticketing/forms/travel-card/orderTravelCard.d.ts.map +1 -0
- package/lib/ticketing/forms/travel-card/orderTravelCard.js +21 -0
- package/lib/ticketing/forms/travel-card/travelCardQuestionForm.d.ts +11 -0
- package/lib/ticketing/forms/travel-card/travelCardQuestionForm.d.ts.map +1 -0
- package/lib/ticketing/forms/travel-card/travelCardQuestionForm.js +52 -0
- package/lib/ticketing/forms/webshop/index.d.ts +10 -0
- package/lib/ticketing/forms/webshop/index.d.ts.map +1 -0
- package/lib/ticketing/forms/webshop/index.js +22 -0
- package/lib/ticketing/forms/webshop/webshopAccountForm.d.ts +11 -0
- package/lib/ticketing/forms/webshop/webshopAccountForm.d.ts.map +1 -0
- package/lib/ticketing/forms/webshop/webshopAccountForm.js +51 -0
- package/lib/ticketing/forms/webshop/webshopTicketingForm.d.ts +11 -0
- package/lib/ticketing/forms/webshop/webshopTicketingForm.d.ts.map +1 -0
- package/lib/ticketing/forms/webshop/webshopTicketingForm.js +58 -0
- package/lib/ticketing/index.d.ts +3 -0
- package/lib/ticketing/index.d.ts.map +1 -0
- package/lib/ticketing/index.js +52 -0
- package/lib/ticketing/ticketingStateMachine.d.ts +438 -0
- package/lib/ticketing/ticketingStateMachine.d.ts.map +1 -0
- package/lib/ticketing/ticketingStateMachine.js +435 -0
- package/lib/translations/__tests__/utils.test.d.ts +2 -0
- package/lib/translations/__tests__/utils.test.d.ts.map +1 -0
- package/lib/translations/__tests__/utils.test.js +35 -0
- package/lib/translations/common/index.d.ts +3 -0
- package/lib/translations/common/index.d.ts.map +1 -0
- package/lib/translations/common/index.js +7 -0
- package/lib/translations/common/layout.d.ts +8 -0
- package/lib/translations/common/layout.d.ts.map +1 -0
- package/lib/translations/common/layout.js +39 -0
- package/lib/translations/common/titles.d.ts +4 -0
- package/lib/translations/common/titles.d.ts.map +1 -0
- package/lib/translations/common/titles.js +25 -0
- package/lib/translations/commons.d.ts +21 -0
- package/lib/translations/commons.d.ts.map +1 -0
- package/lib/translations/commons.js +39 -0
- package/lib/translations/components/clear-button.d.ts +4 -0
- package/lib/translations/components/clear-button.d.ts.map +1 -0
- package/lib/translations/components/clear-button.js +7 -0
- package/lib/translations/components/departure-date-selector.d.ts +8 -0
- package/lib/translations/components/departure-date-selector.d.ts.map +1 -0
- package/lib/translations/components/departure-date-selector.js +11 -0
- package/lib/translations/components/departure-time.d.ts +8 -0
- package/lib/translations/components/departure-time.d.ts.map +1 -0
- package/lib/translations/components/departure-time.js +11 -0
- package/lib/translations/components/empty-search.d.ts +18 -0
- package/lib/translations/components/empty-search.d.ts.map +1 -0
- package/lib/translations/components/empty-search.js +21 -0
- package/lib/translations/components/geolocation-button.d.ts +10 -0
- package/lib/translations/components/geolocation-button.d.ts.map +1 -0
- package/lib/translations/components/geolocation-button.js +13 -0
- package/lib/translations/components/index.d.ts +14 -0
- package/lib/translations/components/index.d.ts.map +1 -0
- package/lib/translations/components/index.js +29 -0
- package/lib/translations/components/loading.d.ts +4 -0
- package/lib/translations/components/loading.d.ts.map +1 -0
- package/lib/translations/components/loading.js +7 -0
- package/lib/translations/components/map.d.ts +19 -0
- package/lib/translations/components/map.d.ts.map +1 -0
- package/lib/translations/components/map.js +22 -0
- package/lib/translations/components/search.d.ts +9 -0
- package/lib/translations/components/search.d.ts.map +1 -0
- package/lib/translations/components/search.js +12 -0
- package/lib/translations/components/swap-button.d.ts +4 -0
- package/lib/translations/components/swap-button.d.ts.map +1 -0
- package/lib/translations/components/swap-button.js +7 -0
- package/lib/translations/components/tab-link.d.ts +5 -0
- package/lib/translations/components/tab-link.d.ts.map +1 -0
- package/lib/translations/components/tab-link.js +8 -0
- package/lib/translations/components/transport-mode-filter.d.ts +6 -0
- package/lib/translations/components/transport-mode-filter.d.ts.map +1 -0
- package/lib/translations/components/transport-mode-filter.js +9 -0
- package/lib/translations/components/transport-mode.d.ts +3 -0
- package/lib/translations/components/transport-mode.d.ts.map +1 -0
- package/lib/translations/components/transport-mode.js +28 -0
- package/lib/translations/components/venue-icon.d.ts +9 -0
- package/lib/translations/components/venue-icon.d.ts.map +1 -0
- package/lib/translations/components/venue-icon.js +12 -0
- package/lib/translations/dictionary.d.ts +33 -0
- package/lib/translations/dictionary.d.ts.map +1 -0
- package/lib/translations/dictionary.js +59 -0
- package/lib/translations/index.d.ts +16 -0
- package/lib/translations/index.d.ts.map +1 -0
- package/lib/translations/index.js +65 -0
- package/lib/translations/json-to-override.d.ts +19 -0
- package/lib/translations/json-to-override.d.ts.map +1 -0
- package/lib/translations/json-to-override.js +61 -0
- package/lib/translations/language-context.d.ts +37 -0
- package/lib/translations/language-context.d.ts.map +1 -0
- package/lib/translations/language-context.js +98 -0
- package/lib/translations/load-org-translations.d.ts +19 -0
- package/lib/translations/load-org-translations.d.ts.map +1 -0
- package/lib/translations/load-org-translations.js +23 -0
- package/lib/translations/merge-overrides.d.ts +28 -0
- package/lib/translations/merge-overrides.d.ts.map +1 -0
- package/lib/translations/merge-overrides.js +126 -0
- package/lib/translations/modules/index.d.ts +4 -0
- package/lib/translations/modules/index.d.ts.map +1 -0
- package/lib/translations/modules/index.js +9 -0
- package/lib/translations/modules/layout.d.ts +73 -0
- package/lib/translations/modules/layout.d.ts.map +1 -0
- package/lib/translations/modules/layout.js +106 -0
- package/lib/translations/modules/search-time.d.ts +8 -0
- package/lib/translations/modules/search-time.d.ts.map +1 -0
- package/lib/translations/modules/search-time.js +11 -0
- package/lib/translations/modules/situation.d.ts +8 -0
- package/lib/translations/modules/situation.d.ts.map +1 -0
- package/lib/translations/modules/situation.js +11 -0
- package/lib/translations/pages/assistant.d.ts +2 -0
- package/lib/translations/pages/assistant.d.ts.map +1 -0
- package/lib/translations/pages/assistant.js +303 -0
- package/lib/translations/pages/contact.d.ts +589 -0
- package/lib/translations/pages/contact.d.ts.map +1 -0
- package/lib/translations/pages/contact.js +679 -0
- package/lib/translations/pages/departures.d.ts +64 -0
- package/lib/translations/pages/departures.d.ts.map +1 -0
- package/lib/translations/pages/departures.js +75 -0
- package/lib/translations/pages/error.d.ts +8 -0
- package/lib/translations/pages/error.d.ts.map +1 -0
- package/lib/translations/pages/error.js +11 -0
- package/lib/translations/pages/index.d.ts +4 -0
- package/lib/translations/pages/index.d.ts.map +1 -0
- package/lib/translations/pages/index.js +9 -0
- package/lib/translations/server/endpoints.d.ts +67 -0
- package/lib/translations/server/endpoints.d.ts.map +1 -0
- package/lib/translations/server/endpoints.js +146 -0
- package/lib/translations/server/index.d.ts +2 -0
- package/lib/translations/server/index.d.ts.map +1 -0
- package/lib/translations/server/index.js +5 -0
- package/lib/translations/translations-context.d.ts +10 -0
- package/lib/translations/translations-context.d.ts.map +1 -0
- package/lib/translations/translations-context.js +20 -0
- package/lib/translations/types.d.ts +41 -0
- package/lib/translations/types.d.ts.map +1 -0
- package/lib/translations/types.js +24 -0
- package/lib/translations/utils.d.ts +16 -0
- package/lib/translations/utils.d.ts.map +1 -0
- package/lib/translations/utils.js +56 -0
- package/lib/types/submit-payloads.d.ts +119 -0
- package/lib/types/submit-payloads.d.ts.map +1 -0
- package/lib/types/submit-payloads.js +7 -0
- package/lib/types.d.ts +20 -0
- package/lib/types.d.ts.map +1 -0
- package/lib/types.js +12 -0
- package/lib/utils/color.d.ts +2 -0
- package/lib/utils/color.d.ts.map +1 -0
- package/lib/utils/color.js +50 -0
- package/lib/utils/css.d.ts +3 -0
- package/lib/utils/css.d.ts.map +1 -0
- package/lib/utils/css.js +15 -0
- package/lib/utils/date.d.ts +4 -0
- package/lib/utils/date.d.ts.map +1 -0
- package/lib/utils/date.js +21 -0
- package/lib/utils/enum-from-string.d.ts +4 -0
- package/lib/utils/enum-from-string.d.ts.map +1 -0
- package/lib/utils/enum-from-string.js +9 -0
- package/lib/utils/env.d.ts +10 -0
- package/lib/utils/env.d.ts.map +1 -0
- package/lib/utils/env.js +49 -0
- package/lib/utils/only-uniques.d.ts +3 -0
- package/lib/utils/only-uniques.d.ts.map +1 -0
- package/lib/utils/only-uniques.js +7 -0
- package/lib/utils/org-theme-definitions.d.ts +5 -0
- package/lib/utils/org-theme-definitions.d.ts.map +1 -0
- package/lib/utils/org-theme-definitions.js +13 -0
- package/lib/utils/presence.d.ts +2 -0
- package/lib/utils/presence.d.ts.map +1 -0
- package/lib/utils/presence.js +5 -0
- package/lib/utils/reference-data.d.ts +15 -0
- package/lib/utils/reference-data.d.ts.map +1 -0
- package/lib/utils/reference-data.js +15 -0
- package/lib/utils/use-client-width.d.ts +2 -0
- package/lib/utils/use-client-width.d.ts.map +1 -0
- package/lib/utils/use-client-width.js +18 -0
- package/lib/utils/use-debounce.d.ts +3 -0
- package/lib/utils/use-debounce.d.ts.map +1 -0
- package/lib/utils/use-debounce.js +14 -0
- package/lib/utils/use-interval.d.ts +2 -0
- package/lib/utils/use-interval.d.ts.map +1 -0
- package/lib/utils/use-interval.js +22 -0
- package/lib/utils/use-localstorage.d.ts +2 -0
- package/lib/utils/use-localstorage.d.ts.map +1 -0
- package/lib/utils/use-localstorage.js +40 -0
- package/lib/utils/use-now.d.ts +2 -0
- package/lib/utils/use-now.d.ts.map +1 -0
- package/lib/utils/use-now.js +13 -0
- package/lib/utils/user-media-query.d.ts +2 -0
- package/lib/utils/user-media-query.d.ts.map +1 -0
- package/lib/utils/user-media-query.js +36 -0
- package/lib/utils.d.ts +19 -0
- package/lib/utils.d.ts.map +1 -0
- package/lib/utils.js +126 -0
- package/lib/validation/commonInputValidator.d.ts +7 -0
- package/lib/validation/commonInputValidator.d.ts.map +1 -0
- package/lib/validation/commonInputValidator.js +28 -0
- package/lib/validation/index.d.ts +2 -0
- package/lib/validation/index.d.ts.map +1 -0
- package/lib/validation/index.js +8 -0
- package/lib/validation/validationRules.d.ts +11 -0
- package/lib/validation/validationRules.d.ts.map +1 -0
- package/lib/validation/validationRules.js +372 -0
- package/package.json +99 -0
|
@@ -0,0 +1,524 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WheelchairBoarding = exports.ViaLocationType = exports.VertexType = exports.VehicleOptimisationMethod = exports.TransportSubmode = exports.TransportMode = exports.StreetMode = exports.StopInterchangePriority = exports.StopCondition = exports.Severity = exports.ServiceAlteration = exports.RoutingErrorCode = exports.ReportType = exports.RelativeDirection = exports.RealtimeState = exports.PurchaseWhen = exports.OccupancyStatus = exports.MultiModalMode = exports.Mode = exports.Locale = exports.ItineraryFilterDebugProfile = exports.InterchangeWeighting = exports.InterchangePriority = exports.InputField = exports.FilterPlaceType = exports.DirectionType = exports.BookingMethod = exports.BikesAllowed = exports.BicycleOptimisationMethod = exports.ArrivalDeparture = exports.AlternativeLegsFilter = exports.AbsoluteDirection = void 0;
|
|
4
|
+
var AbsoluteDirection;
|
|
5
|
+
(function (AbsoluteDirection) {
|
|
6
|
+
AbsoluteDirection["East"] = "east";
|
|
7
|
+
AbsoluteDirection["North"] = "north";
|
|
8
|
+
AbsoluteDirection["Northeast"] = "northeast";
|
|
9
|
+
AbsoluteDirection["Northwest"] = "northwest";
|
|
10
|
+
AbsoluteDirection["South"] = "south";
|
|
11
|
+
AbsoluteDirection["Southeast"] = "southeast";
|
|
12
|
+
AbsoluteDirection["Southwest"] = "southwest";
|
|
13
|
+
AbsoluteDirection["West"] = "west";
|
|
14
|
+
})(AbsoluteDirection || (exports.AbsoluteDirection = AbsoluteDirection = {}));
|
|
15
|
+
var AlternativeLegsFilter;
|
|
16
|
+
(function (AlternativeLegsFilter) {
|
|
17
|
+
AlternativeLegsFilter["NoFilter"] = "noFilter";
|
|
18
|
+
AlternativeLegsFilter["SameAuthority"] = "sameAuthority";
|
|
19
|
+
AlternativeLegsFilter["SameLine"] = "sameLine";
|
|
20
|
+
AlternativeLegsFilter["SameMode"] = "sameMode";
|
|
21
|
+
/** Must match both subMode and mode */
|
|
22
|
+
AlternativeLegsFilter["SameSubmode"] = "sameSubmode";
|
|
23
|
+
})(AlternativeLegsFilter || (exports.AlternativeLegsFilter = AlternativeLegsFilter = {}));
|
|
24
|
+
var ArrivalDeparture;
|
|
25
|
+
(function (ArrivalDeparture) {
|
|
26
|
+
/** Only show arrivals */
|
|
27
|
+
ArrivalDeparture["Arrivals"] = "arrivals";
|
|
28
|
+
/** Show both arrivals and departures */
|
|
29
|
+
ArrivalDeparture["Both"] = "both";
|
|
30
|
+
/** Only show departures */
|
|
31
|
+
ArrivalDeparture["Departures"] = "departures";
|
|
32
|
+
})(ArrivalDeparture || (exports.ArrivalDeparture = ArrivalDeparture = {}));
|
|
33
|
+
var BicycleOptimisationMethod;
|
|
34
|
+
(function (BicycleOptimisationMethod) {
|
|
35
|
+
BicycleOptimisationMethod["Flat"] = "flat";
|
|
36
|
+
BicycleOptimisationMethod["Greenways"] = "greenways";
|
|
37
|
+
BicycleOptimisationMethod["Quick"] = "quick";
|
|
38
|
+
BicycleOptimisationMethod["Safe"] = "safe";
|
|
39
|
+
BicycleOptimisationMethod["Triangle"] = "triangle";
|
|
40
|
+
})(BicycleOptimisationMethod || (exports.BicycleOptimisationMethod = BicycleOptimisationMethod = {}));
|
|
41
|
+
var BikesAllowed;
|
|
42
|
+
(function (BikesAllowed) {
|
|
43
|
+
/** The vehicle being used on this particular trip can accommodate at least one bicycle. */
|
|
44
|
+
BikesAllowed["Allowed"] = "allowed";
|
|
45
|
+
/** There is no bike information for the trip. */
|
|
46
|
+
BikesAllowed["NoInformation"] = "noInformation";
|
|
47
|
+
/** No bicycles are allowed on this trip. */
|
|
48
|
+
BikesAllowed["NotAllowed"] = "notAllowed";
|
|
49
|
+
})(BikesAllowed || (exports.BikesAllowed = BikesAllowed = {}));
|
|
50
|
+
var BookingMethod;
|
|
51
|
+
(function (BookingMethod) {
|
|
52
|
+
BookingMethod["CallDriver"] = "callDriver";
|
|
53
|
+
BookingMethod["CallOffice"] = "callOffice";
|
|
54
|
+
BookingMethod["Online"] = "online";
|
|
55
|
+
BookingMethod["PhoneAtStop"] = "phoneAtStop";
|
|
56
|
+
BookingMethod["Text"] = "text";
|
|
57
|
+
})(BookingMethod || (exports.BookingMethod = BookingMethod = {}));
|
|
58
|
+
var DirectionType;
|
|
59
|
+
(function (DirectionType) {
|
|
60
|
+
DirectionType["Anticlockwise"] = "anticlockwise";
|
|
61
|
+
DirectionType["Clockwise"] = "clockwise";
|
|
62
|
+
DirectionType["Inbound"] = "inbound";
|
|
63
|
+
DirectionType["Outbound"] = "outbound";
|
|
64
|
+
DirectionType["Unknown"] = "unknown";
|
|
65
|
+
})(DirectionType || (exports.DirectionType = DirectionType = {}));
|
|
66
|
+
var FilterPlaceType;
|
|
67
|
+
(function (FilterPlaceType) {
|
|
68
|
+
/** Bicycle rent stations */
|
|
69
|
+
FilterPlaceType["BicycleRent"] = "bicycleRent";
|
|
70
|
+
/** Bike parks */
|
|
71
|
+
FilterPlaceType["BikePark"] = "bikePark";
|
|
72
|
+
/** Car parks */
|
|
73
|
+
FilterPlaceType["CarPark"] = "carPark";
|
|
74
|
+
/** Quay */
|
|
75
|
+
FilterPlaceType["Quay"] = "quay";
|
|
76
|
+
/** StopPlace */
|
|
77
|
+
FilterPlaceType["StopPlace"] = "stopPlace";
|
|
78
|
+
})(FilterPlaceType || (exports.FilterPlaceType = FilterPlaceType = {}));
|
|
79
|
+
var InputField;
|
|
80
|
+
(function (InputField) {
|
|
81
|
+
InputField["DateTime"] = "dateTime";
|
|
82
|
+
InputField["From"] = "from";
|
|
83
|
+
InputField["IntermediatePlace"] = "intermediatePlace";
|
|
84
|
+
InputField["To"] = "to";
|
|
85
|
+
})(InputField || (exports.InputField = InputField = {}));
|
|
86
|
+
var InterchangePriority;
|
|
87
|
+
(function (InterchangePriority) {
|
|
88
|
+
InterchangePriority["Allowed"] = "allowed";
|
|
89
|
+
InterchangePriority["NotAllowed"] = "notAllowed";
|
|
90
|
+
InterchangePriority["Preferred"] = "preferred";
|
|
91
|
+
InterchangePriority["Recommended"] = "recommended";
|
|
92
|
+
})(InterchangePriority || (exports.InterchangePriority = InterchangePriority = {}));
|
|
93
|
+
/** Deprecated. Use STOP_INTERCHANGE_PRIORITY */
|
|
94
|
+
var InterchangeWeighting;
|
|
95
|
+
(function (InterchangeWeighting) {
|
|
96
|
+
/** Third highest priority interchange. */
|
|
97
|
+
InterchangeWeighting["InterchangeAllowed"] = "interchangeAllowed";
|
|
98
|
+
/** Interchange not allowed. */
|
|
99
|
+
InterchangeWeighting["NoInterchange"] = "noInterchange";
|
|
100
|
+
/** Highest priority interchange. */
|
|
101
|
+
InterchangeWeighting["PreferredInterchange"] = "preferredInterchange";
|
|
102
|
+
/** Second highest priority interchange. */
|
|
103
|
+
InterchangeWeighting["RecommendedInterchange"] = "recommendedInterchange";
|
|
104
|
+
})(InterchangeWeighting || (exports.InterchangeWeighting = InterchangeWeighting = {}));
|
|
105
|
+
/**
|
|
106
|
+
* Enable this to attach a system notice to itineraries instead of removing them. This is very
|
|
107
|
+
* convenient when tuning the itinerary-filter-chain.
|
|
108
|
+
*/
|
|
109
|
+
var ItineraryFilterDebugProfile;
|
|
110
|
+
(function (ItineraryFilterDebugProfile) {
|
|
111
|
+
/**
|
|
112
|
+
* Only return the requested number of itineraries, counting both actual and deleted ones.
|
|
113
|
+
* The top `numItineraries` using the request sort order is returned. This does not work
|
|
114
|
+
* with paging, itineraries after the limit, but inside the search-window are skipped when
|
|
115
|
+
* moving to the next page.
|
|
116
|
+
*/
|
|
117
|
+
ItineraryFilterDebugProfile["LimitToNumOfItineraries"] = "limitToNumOfItineraries";
|
|
118
|
+
/**
|
|
119
|
+
* Return all itineraries, including deleted ones, inside the actual search-window used
|
|
120
|
+
* (the requested search-window may differ).
|
|
121
|
+
*/
|
|
122
|
+
ItineraryFilterDebugProfile["LimitToSearchWindow"] = "limitToSearchWindow";
|
|
123
|
+
/** List all itineraries, including all deleted itineraries. */
|
|
124
|
+
ItineraryFilterDebugProfile["ListAll"] = "listAll";
|
|
125
|
+
/** By default, the debug itinerary filters is turned off. */
|
|
126
|
+
ItineraryFilterDebugProfile["Off"] = "off";
|
|
127
|
+
})(ItineraryFilterDebugProfile || (exports.ItineraryFilterDebugProfile = ItineraryFilterDebugProfile = {}));
|
|
128
|
+
var Locale;
|
|
129
|
+
(function (Locale) {
|
|
130
|
+
Locale["No"] = "no";
|
|
131
|
+
Locale["Us"] = "us";
|
|
132
|
+
})(Locale || (exports.Locale = Locale = {}));
|
|
133
|
+
var Mode;
|
|
134
|
+
(function (Mode) {
|
|
135
|
+
Mode["Air"] = "air";
|
|
136
|
+
Mode["Bicycle"] = "bicycle";
|
|
137
|
+
Mode["Bus"] = "bus";
|
|
138
|
+
Mode["Cableway"] = "cableway";
|
|
139
|
+
Mode["Car"] = "car";
|
|
140
|
+
Mode["Carpool"] = "carpool";
|
|
141
|
+
Mode["Coach"] = "coach";
|
|
142
|
+
Mode["Foot"] = "foot";
|
|
143
|
+
Mode["Funicular"] = "funicular";
|
|
144
|
+
Mode["Lift"] = "lift";
|
|
145
|
+
Mode["Metro"] = "metro";
|
|
146
|
+
Mode["Monorail"] = "monorail";
|
|
147
|
+
Mode["Rail"] = "rail";
|
|
148
|
+
Mode["Scooter"] = "scooter";
|
|
149
|
+
Mode["SnowAndIce"] = "snowAndIce";
|
|
150
|
+
Mode["Taxi"] = "taxi";
|
|
151
|
+
Mode["Tram"] = "tram";
|
|
152
|
+
Mode["Trolleybus"] = "trolleybus";
|
|
153
|
+
Mode["Water"] = "water";
|
|
154
|
+
})(Mode || (exports.Mode = Mode = {}));
|
|
155
|
+
var MultiModalMode;
|
|
156
|
+
(function (MultiModalMode) {
|
|
157
|
+
/** Both multiModal parents and their mono modal child stop places. */
|
|
158
|
+
MultiModalMode["All"] = "all";
|
|
159
|
+
/** Only mono modal children stop places, not their multi modal parent stop */
|
|
160
|
+
MultiModalMode["Child"] = "child";
|
|
161
|
+
/** Multi modal parent stop places without their mono modal children. */
|
|
162
|
+
MultiModalMode["Parent"] = "parent";
|
|
163
|
+
})(MultiModalMode || (exports.MultiModalMode = MultiModalMode = {}));
|
|
164
|
+
/** OccupancyStatus to be exposed in the API. The values are based on GTFS-RT */
|
|
165
|
+
var OccupancyStatus;
|
|
166
|
+
(function (OccupancyStatus) {
|
|
167
|
+
/**
|
|
168
|
+
* The vehicle or carriage can currently accommodate only standing passengers and has limited
|
|
169
|
+
* space for them. There isn't a big difference between this and `full` so it's possible to
|
|
170
|
+
* handle them as the same value, if one wants to limit the number of different values.
|
|
171
|
+
* SIRI nordic profile: merge into `standingRoomOnly`.
|
|
172
|
+
*
|
|
173
|
+
*/
|
|
174
|
+
OccupancyStatus["CrushedStandingRoomOnly"] = "crushedStandingRoomOnly";
|
|
175
|
+
/**
|
|
176
|
+
* The vehicle is considered empty by most measures, and has few or no passengers onboard, but is
|
|
177
|
+
* still accepting passengers. There isn't a big difference between this and `manySeatsAvailable`
|
|
178
|
+
* so it's possible to handle them as the same value, if one wants to limit the number of different
|
|
179
|
+
* values.
|
|
180
|
+
* SIRI nordic profile: merge these into `manySeatsAvailable`.
|
|
181
|
+
*
|
|
182
|
+
*/
|
|
183
|
+
OccupancyStatus["Empty"] = "empty";
|
|
184
|
+
/**
|
|
185
|
+
* The vehicle or carriage has a few seats available.
|
|
186
|
+
* SIRI nordic profile: less than ~50% of seats available.
|
|
187
|
+
*
|
|
188
|
+
*/
|
|
189
|
+
OccupancyStatus["FewSeatsAvailable"] = "fewSeatsAvailable";
|
|
190
|
+
/**
|
|
191
|
+
* The vehicle or carriage is considered full by most measures, but may still be allowing
|
|
192
|
+
* passengers to board.
|
|
193
|
+
*
|
|
194
|
+
*/
|
|
195
|
+
OccupancyStatus["Full"] = "full";
|
|
196
|
+
/**
|
|
197
|
+
* The vehicle or carriage has a large number of seats available.
|
|
198
|
+
* SIRI nordic profile: more than ~50% of seats available.
|
|
199
|
+
*
|
|
200
|
+
*/
|
|
201
|
+
OccupancyStatus["ManySeatsAvailable"] = "manySeatsAvailable";
|
|
202
|
+
/** The vehicle or carriage doesn't have any occupancy data available. */
|
|
203
|
+
OccupancyStatus["NoData"] = "noData";
|
|
204
|
+
/**
|
|
205
|
+
* The vehicle or carriage has no seats or standing room available.
|
|
206
|
+
* SIRI nordic profile: if vehicle/carriage is not in use / unavailable, or passengers are only
|
|
207
|
+
* allowed to alight due to e.g. crowding.
|
|
208
|
+
*
|
|
209
|
+
*/
|
|
210
|
+
OccupancyStatus["NotAcceptingPassengers"] = "notAcceptingPassengers";
|
|
211
|
+
/**
|
|
212
|
+
* The vehicle or carriage only has standing room available.
|
|
213
|
+
* SIRI nordic profile: less than ~10% of seats available.
|
|
214
|
+
*
|
|
215
|
+
*/
|
|
216
|
+
OccupancyStatus["StandingRoomOnly"] = "standingRoomOnly";
|
|
217
|
+
})(OccupancyStatus || (exports.OccupancyStatus = OccupancyStatus = {}));
|
|
218
|
+
var PurchaseWhen;
|
|
219
|
+
(function (PurchaseWhen) {
|
|
220
|
+
PurchaseWhen["AdvanceAndDayOfTravel"] = "advanceAndDayOfTravel";
|
|
221
|
+
PurchaseWhen["DayOfTravelOnly"] = "dayOfTravelOnly";
|
|
222
|
+
PurchaseWhen["Other"] = "other";
|
|
223
|
+
PurchaseWhen["TimeOfTravelOnly"] = "timeOfTravelOnly";
|
|
224
|
+
PurchaseWhen["UntilPreviousDay"] = "untilPreviousDay";
|
|
225
|
+
})(PurchaseWhen || (exports.PurchaseWhen = PurchaseWhen = {}));
|
|
226
|
+
var RealtimeState;
|
|
227
|
+
(function (RealtimeState) {
|
|
228
|
+
/** The service journey has been added using a real-time update, i.e. the service journey was not present in the regular time table. */
|
|
229
|
+
RealtimeState["Added"] = "Added";
|
|
230
|
+
/** The service journey has been canceled by a real-time update. */
|
|
231
|
+
RealtimeState["Canceled"] = "canceled";
|
|
232
|
+
/** The service journey information has been updated and resulted in a different journey pattern compared to the journey pattern of the scheduled service journey. */
|
|
233
|
+
RealtimeState["Modified"] = "modified";
|
|
234
|
+
/** The service journey information comes from the regular time table, i.e. no real-time update has been applied. */
|
|
235
|
+
RealtimeState["Scheduled"] = "scheduled";
|
|
236
|
+
/** The service journey information has been updated, but the journey pattern stayed the same as the journey pattern of the scheduled service journey. */
|
|
237
|
+
RealtimeState["Updated"] = "updated";
|
|
238
|
+
})(RealtimeState || (exports.RealtimeState = RealtimeState = {}));
|
|
239
|
+
var RelativeDirection;
|
|
240
|
+
(function (RelativeDirection) {
|
|
241
|
+
RelativeDirection["CircleClockwise"] = "circleClockwise";
|
|
242
|
+
RelativeDirection["CircleCounterclockwise"] = "circleCounterclockwise";
|
|
243
|
+
RelativeDirection["Continue"] = "continue";
|
|
244
|
+
RelativeDirection["Depart"] = "depart";
|
|
245
|
+
RelativeDirection["Elevator"] = "elevator";
|
|
246
|
+
RelativeDirection["EnterStation"] = "enterStation";
|
|
247
|
+
RelativeDirection["ExitStation"] = "exitStation";
|
|
248
|
+
RelativeDirection["FollowSigns"] = "followSigns";
|
|
249
|
+
RelativeDirection["HardLeft"] = "hardLeft";
|
|
250
|
+
RelativeDirection["HardRight"] = "hardRight";
|
|
251
|
+
RelativeDirection["Left"] = "left";
|
|
252
|
+
RelativeDirection["Right"] = "right";
|
|
253
|
+
RelativeDirection["SlightlyLeft"] = "slightlyLeft";
|
|
254
|
+
RelativeDirection["SlightlyRight"] = "slightlyRight";
|
|
255
|
+
RelativeDirection["UturnLeft"] = "uturnLeft";
|
|
256
|
+
RelativeDirection["UturnRight"] = "uturnRight";
|
|
257
|
+
})(RelativeDirection || (exports.RelativeDirection = RelativeDirection = {}));
|
|
258
|
+
var ReportType;
|
|
259
|
+
(function (ReportType) {
|
|
260
|
+
/** Indicates a general info-message that should not affect trip. */
|
|
261
|
+
ReportType["General"] = "general";
|
|
262
|
+
/** Indicates an incident that may affect trip. */
|
|
263
|
+
ReportType["Incident"] = "incident";
|
|
264
|
+
})(ReportType || (exports.ReportType = ReportType = {}));
|
|
265
|
+
var RoutingErrorCode;
|
|
266
|
+
(function (RoutingErrorCode) {
|
|
267
|
+
/** The specified location is not close to any streets or transit stops */
|
|
268
|
+
RoutingErrorCode["LocationNotFound"] = "locationNotFound";
|
|
269
|
+
/** No stops are reachable from the location specified. You can try searching using a different access or egress mode */
|
|
270
|
+
RoutingErrorCode["NoStopsInRange"] = "noStopsInRange";
|
|
271
|
+
/** No transit connection was found between the origin and destination withing the operating day or the next day */
|
|
272
|
+
RoutingErrorCode["NoTransitConnection"] = "noTransitConnection";
|
|
273
|
+
/** A transit connection was found, but it was outside the search window. Use paging to navigate to a result. */
|
|
274
|
+
RoutingErrorCode["NoTransitConnectionInSearchWindow"] = "noTransitConnectionInSearchWindow";
|
|
275
|
+
/** The coordinates are outside the bounds of the data currently loaded into the system */
|
|
276
|
+
RoutingErrorCode["OutsideBounds"] = "outsideBounds";
|
|
277
|
+
/** The date specified is outside the range of data currently loaded into the system */
|
|
278
|
+
RoutingErrorCode["OutsideServicePeriod"] = "outsideServicePeriod";
|
|
279
|
+
/** The origin and destination are so close to each other, that walking is always better, but no direct mode was specified for the search */
|
|
280
|
+
RoutingErrorCode["WalkingBetterThanTransit"] = "walkingBetterThanTransit";
|
|
281
|
+
})(RoutingErrorCode || (exports.RoutingErrorCode = RoutingErrorCode = {}));
|
|
282
|
+
var ServiceAlteration;
|
|
283
|
+
(function (ServiceAlteration) {
|
|
284
|
+
ServiceAlteration["Cancellation"] = "cancellation";
|
|
285
|
+
ServiceAlteration["ExtraJourney"] = "extraJourney";
|
|
286
|
+
ServiceAlteration["Planned"] = "planned";
|
|
287
|
+
ServiceAlteration["Replaced"] = "replaced";
|
|
288
|
+
})(ServiceAlteration || (exports.ServiceAlteration = ServiceAlteration = {}));
|
|
289
|
+
var Severity;
|
|
290
|
+
(function (Severity) {
|
|
291
|
+
/** Situation has no impact on trips. */
|
|
292
|
+
Severity["NoImpact"] = "noImpact";
|
|
293
|
+
/** Situation has an impact on trips (default). */
|
|
294
|
+
Severity["Normal"] = "normal";
|
|
295
|
+
/** Situation has a severe impact on trips. */
|
|
296
|
+
Severity["Severe"] = "severe";
|
|
297
|
+
/** Situation has a slight impact on trips. */
|
|
298
|
+
Severity["Slight"] = "slight";
|
|
299
|
+
/** Severity is undefined. */
|
|
300
|
+
Severity["Undefined"] = "undefined";
|
|
301
|
+
/** Situation has unknown impact on trips. */
|
|
302
|
+
Severity["Unknown"] = "unknown";
|
|
303
|
+
/** Situation has a very severe impact on trips. */
|
|
304
|
+
Severity["VerySevere"] = "verySevere";
|
|
305
|
+
/** Situation has a very slight impact on trips. */
|
|
306
|
+
Severity["VerySlight"] = "verySlight";
|
|
307
|
+
})(Severity || (exports.Severity = Severity = {}));
|
|
308
|
+
var StopCondition;
|
|
309
|
+
(function (StopCondition) {
|
|
310
|
+
/** Situation applies when stop is the destination of the leg. */
|
|
311
|
+
StopCondition["Destination"] = "destination";
|
|
312
|
+
/** Situation applies when transfering to another leg at the stop. */
|
|
313
|
+
StopCondition["ExceptionalStop"] = "exceptionalStop";
|
|
314
|
+
/** Situation applies when passing the stop, without stopping. */
|
|
315
|
+
StopCondition["NotStopping"] = "notStopping";
|
|
316
|
+
/** Situation applies when at the stop, and the stop requires a request to stop. */
|
|
317
|
+
StopCondition["RequestStop"] = "requestStop";
|
|
318
|
+
/** Situation applies when stop is the startpoint of the leg. */
|
|
319
|
+
StopCondition["StartPoint"] = "startPoint";
|
|
320
|
+
})(StopCondition || (exports.StopCondition = StopCondition = {}));
|
|
321
|
+
var StopInterchangePriority;
|
|
322
|
+
(function (StopInterchangePriority) {
|
|
323
|
+
/** Allow transfers from/to this stop. This is the default. NeTEx equivalent is INTERCHANGE_ALLOWED. */
|
|
324
|
+
StopInterchangePriority["Allowed"] = "allowed";
|
|
325
|
+
/** Block transfers from/to this stop. In OTP this is not a definitive block, just a huge penalty is added to the cost function. NeTEx equivalent is NO_INTERCHANGE. */
|
|
326
|
+
StopInterchangePriority["Discouraged"] = "discouraged";
|
|
327
|
+
/** Preferred place to transfer, strongly recommended. NeTEx equivalent is PREFERRED_INTERCHANGE. */
|
|
328
|
+
StopInterchangePriority["Preferred"] = "preferred";
|
|
329
|
+
/** Recommended stop place. NeTEx equivalent is RECOMMENDED_INTERCHANGE. */
|
|
330
|
+
StopInterchangePriority["Recommended"] = "recommended";
|
|
331
|
+
})(StopInterchangePriority || (exports.StopInterchangePriority = StopInterchangePriority = {}));
|
|
332
|
+
var StreetMode;
|
|
333
|
+
(function (StreetMode) {
|
|
334
|
+
/** Bike only. This can be used as access/egress, but transfers will still be walk only. */
|
|
335
|
+
StreetMode["Bicycle"] = "bicycle";
|
|
336
|
+
/** Bike to a bike parking area, then walk the rest of the way. Direct mode and access mode only. */
|
|
337
|
+
StreetMode["BikePark"] = "bike_park";
|
|
338
|
+
/** Walk to a bike rental point, bike to a bike rental drop-off point, and walk the rest of the way. This can include bike rental at fixed locations or free-floating services. */
|
|
339
|
+
StreetMode["BikeRental"] = "bike_rental";
|
|
340
|
+
/** Car only. Direct mode only. */
|
|
341
|
+
StreetMode["Car"] = "car";
|
|
342
|
+
/** Start in the car, drive to a parking area, and walk the rest of the way. Direct mode and access mode only. */
|
|
343
|
+
StreetMode["CarPark"] = "car_park";
|
|
344
|
+
/** Walk to a pickup point along the road, drive to a drop-off point along the road, and walk the rest of the way. This can include various taxi-services or kiss & ride. */
|
|
345
|
+
StreetMode["CarPickup"] = "car_pickup";
|
|
346
|
+
/** Walk to a car rental point along the road, drive to a drop-off point along the road, and walk the rest of the way. This can include car rentals at fixed locations or free-floating services. */
|
|
347
|
+
StreetMode["CarRental"] = "car_rental";
|
|
348
|
+
/** Share a car ride with a driver and other passengers going in the same direction. */
|
|
349
|
+
StreetMode["Carpool"] = "carpool";
|
|
350
|
+
/** Walk to an eligible pickup area for flexible transportation, ride to an eligible drop-off area and then walk the rest of the way. */
|
|
351
|
+
StreetMode["Flexible"] = "flexible";
|
|
352
|
+
/** Walk only */
|
|
353
|
+
StreetMode["Foot"] = "foot";
|
|
354
|
+
/** Walk to a scooter rental point, ride a scooter to a scooter rental drop-off point, and walk the rest of the way. This can include scooter rental at fixed locations or free-floating services. */
|
|
355
|
+
StreetMode["ScooterRental"] = "scooter_rental";
|
|
356
|
+
})(StreetMode || (exports.StreetMode = StreetMode = {}));
|
|
357
|
+
var TransportMode;
|
|
358
|
+
(function (TransportMode) {
|
|
359
|
+
TransportMode["Air"] = "air";
|
|
360
|
+
TransportMode["Bus"] = "bus";
|
|
361
|
+
TransportMode["Cableway"] = "cableway";
|
|
362
|
+
TransportMode["Coach"] = "coach";
|
|
363
|
+
TransportMode["Funicular"] = "funicular";
|
|
364
|
+
TransportMode["Lift"] = "lift";
|
|
365
|
+
TransportMode["Metro"] = "metro";
|
|
366
|
+
TransportMode["Monorail"] = "monorail";
|
|
367
|
+
TransportMode["Rail"] = "rail";
|
|
368
|
+
TransportMode["Taxi"] = "taxi";
|
|
369
|
+
TransportMode["Tram"] = "tram";
|
|
370
|
+
TransportMode["Trolleybus"] = "trolleybus";
|
|
371
|
+
TransportMode["Unknown"] = "unknown";
|
|
372
|
+
TransportMode["Water"] = "water";
|
|
373
|
+
})(TransportMode || (exports.TransportMode = TransportMode = {}));
|
|
374
|
+
var TransportSubmode;
|
|
375
|
+
(function (TransportSubmode) {
|
|
376
|
+
TransportSubmode["SchengenAreaFlight"] = "SchengenAreaFlight";
|
|
377
|
+
TransportSubmode["AirportBoatLink"] = "airportBoatLink";
|
|
378
|
+
TransportSubmode["AirportLinkBus"] = "airportLinkBus";
|
|
379
|
+
TransportSubmode["AirportLinkRail"] = "airportLinkRail";
|
|
380
|
+
TransportSubmode["AirshipService"] = "airshipService";
|
|
381
|
+
TransportSubmode["AllFunicularServices"] = "allFunicularServices";
|
|
382
|
+
TransportSubmode["AllHireVehicles"] = "allHireVehicles";
|
|
383
|
+
TransportSubmode["AllTaxiServices"] = "allTaxiServices";
|
|
384
|
+
TransportSubmode["BikeTaxi"] = "bikeTaxi";
|
|
385
|
+
TransportSubmode["BlackCab"] = "blackCab";
|
|
386
|
+
TransportSubmode["CableCar"] = "cableCar";
|
|
387
|
+
TransportSubmode["CableFerry"] = "cableFerry";
|
|
388
|
+
TransportSubmode["CanalBarge"] = "canalBarge";
|
|
389
|
+
TransportSubmode["CarTransportRailService"] = "carTransportRailService";
|
|
390
|
+
TransportSubmode["ChairLift"] = "chairLift";
|
|
391
|
+
TransportSubmode["CharterTaxi"] = "charterTaxi";
|
|
392
|
+
TransportSubmode["CityTram"] = "cityTram";
|
|
393
|
+
TransportSubmode["CommunalTaxi"] = "communalTaxi";
|
|
394
|
+
TransportSubmode["CommuterCoach"] = "commuterCoach";
|
|
395
|
+
TransportSubmode["CrossCountryRail"] = "crossCountryRail";
|
|
396
|
+
TransportSubmode["DedicatedLaneBus"] = "dedicatedLaneBus";
|
|
397
|
+
TransportSubmode["DemandAndResponseBus"] = "demandAndResponseBus";
|
|
398
|
+
TransportSubmode["DomesticCharterFlight"] = "domesticCharterFlight";
|
|
399
|
+
TransportSubmode["DomesticFlight"] = "domesticFlight";
|
|
400
|
+
TransportSubmode["DomesticScheduledFlight"] = "domesticScheduledFlight";
|
|
401
|
+
TransportSubmode["DragLift"] = "dragLift";
|
|
402
|
+
TransportSubmode["ExpressBus"] = "expressBus";
|
|
403
|
+
TransportSubmode["Funicular"] = "funicular";
|
|
404
|
+
TransportSubmode["HelicopterService"] = "helicopterService";
|
|
405
|
+
TransportSubmode["HighFrequencyBus"] = "highFrequencyBus";
|
|
406
|
+
TransportSubmode["HighSpeedPassengerService"] = "highSpeedPassengerService";
|
|
407
|
+
TransportSubmode["HighSpeedRail"] = "highSpeedRail";
|
|
408
|
+
TransportSubmode["HighSpeedVehicleService"] = "highSpeedVehicleService";
|
|
409
|
+
TransportSubmode["HireCar"] = "hireCar";
|
|
410
|
+
TransportSubmode["HireCycle"] = "hireCycle";
|
|
411
|
+
TransportSubmode["HireMotorbike"] = "hireMotorbike";
|
|
412
|
+
TransportSubmode["HireVan"] = "hireVan";
|
|
413
|
+
TransportSubmode["IntercontinentalCharterFlight"] = "intercontinentalCharterFlight";
|
|
414
|
+
TransportSubmode["IntercontinentalFlight"] = "intercontinentalFlight";
|
|
415
|
+
TransportSubmode["International"] = "international";
|
|
416
|
+
TransportSubmode["InternationalCarFerry"] = "internationalCarFerry";
|
|
417
|
+
TransportSubmode["InternationalCharterFlight"] = "internationalCharterFlight";
|
|
418
|
+
TransportSubmode["InternationalCoach"] = "internationalCoach";
|
|
419
|
+
TransportSubmode["InternationalFlight"] = "internationalFlight";
|
|
420
|
+
TransportSubmode["InternationalPassengerFerry"] = "internationalPassengerFerry";
|
|
421
|
+
TransportSubmode["InterregionalRail"] = "interregionalRail";
|
|
422
|
+
TransportSubmode["Lift"] = "lift";
|
|
423
|
+
TransportSubmode["Local"] = "local";
|
|
424
|
+
TransportSubmode["LocalBus"] = "localBus";
|
|
425
|
+
TransportSubmode["LocalCarFerry"] = "localCarFerry";
|
|
426
|
+
TransportSubmode["LocalPassengerFerry"] = "localPassengerFerry";
|
|
427
|
+
TransportSubmode["LocalTram"] = "localTram";
|
|
428
|
+
TransportSubmode["LongDistance"] = "longDistance";
|
|
429
|
+
TransportSubmode["Metro"] = "metro";
|
|
430
|
+
TransportSubmode["MiniCab"] = "miniCab";
|
|
431
|
+
TransportSubmode["MobilityBus"] = "mobilityBus";
|
|
432
|
+
TransportSubmode["MobilityBusForRegisteredDisabled"] = "mobilityBusForRegisteredDisabled";
|
|
433
|
+
TransportSubmode["NationalCarFerry"] = "nationalCarFerry";
|
|
434
|
+
TransportSubmode["NationalCoach"] = "nationalCoach";
|
|
435
|
+
TransportSubmode["NationalPassengerFerry"] = "nationalPassengerFerry";
|
|
436
|
+
TransportSubmode["NightBus"] = "nightBus";
|
|
437
|
+
TransportSubmode["NightRail"] = "nightRail";
|
|
438
|
+
TransportSubmode["PostBoat"] = "postBoat";
|
|
439
|
+
TransportSubmode["PostBus"] = "postBus";
|
|
440
|
+
TransportSubmode["RackAndPinionRailway"] = "rackAndPinionRailway";
|
|
441
|
+
TransportSubmode["RailReplacementBus"] = "railReplacementBus";
|
|
442
|
+
TransportSubmode["RailShuttle"] = "railShuttle";
|
|
443
|
+
TransportSubmode["RailTaxi"] = "railTaxi";
|
|
444
|
+
TransportSubmode["RegionalBus"] = "regionalBus";
|
|
445
|
+
TransportSubmode["RegionalCarFerry"] = "regionalCarFerry";
|
|
446
|
+
TransportSubmode["RegionalCoach"] = "regionalCoach";
|
|
447
|
+
TransportSubmode["RegionalPassengerFerry"] = "regionalPassengerFerry";
|
|
448
|
+
TransportSubmode["RegionalRail"] = "regionalRail";
|
|
449
|
+
TransportSubmode["RegionalTram"] = "regionalTram";
|
|
450
|
+
TransportSubmode["ReplacementRailService"] = "replacementRailService";
|
|
451
|
+
TransportSubmode["RiverBus"] = "riverBus";
|
|
452
|
+
TransportSubmode["RoadFerryLink"] = "roadFerryLink";
|
|
453
|
+
TransportSubmode["RoundTripCharterFlight"] = "roundTripCharterFlight";
|
|
454
|
+
TransportSubmode["ScheduledFerry"] = "scheduledFerry";
|
|
455
|
+
TransportSubmode["SchoolAndPublicServiceBus"] = "schoolAndPublicServiceBus";
|
|
456
|
+
TransportSubmode["SchoolBoat"] = "schoolBoat";
|
|
457
|
+
TransportSubmode["SchoolBus"] = "schoolBus";
|
|
458
|
+
TransportSubmode["SchoolCoach"] = "schoolCoach";
|
|
459
|
+
TransportSubmode["ShortHaulInternationalFlight"] = "shortHaulInternationalFlight";
|
|
460
|
+
TransportSubmode["ShuttleBus"] = "shuttleBus";
|
|
461
|
+
TransportSubmode["ShuttleCoach"] = "shuttleCoach";
|
|
462
|
+
TransportSubmode["ShuttleFerryService"] = "shuttleFerryService";
|
|
463
|
+
TransportSubmode["ShuttleFlight"] = "shuttleFlight";
|
|
464
|
+
TransportSubmode["ShuttleTram"] = "shuttleTram";
|
|
465
|
+
TransportSubmode["SightseeingBus"] = "sightseeingBus";
|
|
466
|
+
TransportSubmode["SightseeingCoach"] = "sightseeingCoach";
|
|
467
|
+
TransportSubmode["SightseeingFlight"] = "sightseeingFlight";
|
|
468
|
+
TransportSubmode["SightseeingService"] = "sightseeingService";
|
|
469
|
+
TransportSubmode["SightseeingTram"] = "sightseeingTram";
|
|
470
|
+
TransportSubmode["SleeperRailService"] = "sleeperRailService";
|
|
471
|
+
TransportSubmode["SpecialCoach"] = "specialCoach";
|
|
472
|
+
TransportSubmode["SpecialNeedsBus"] = "specialNeedsBus";
|
|
473
|
+
TransportSubmode["SpecialTrain"] = "specialTrain";
|
|
474
|
+
TransportSubmode["StreetCableCar"] = "streetCableCar";
|
|
475
|
+
TransportSubmode["SuburbanRailway"] = "suburbanRailway";
|
|
476
|
+
TransportSubmode["Telecabin"] = "telecabin";
|
|
477
|
+
TransportSubmode["TelecabinLink"] = "telecabinLink";
|
|
478
|
+
TransportSubmode["TouristCoach"] = "touristCoach";
|
|
479
|
+
TransportSubmode["TouristRailway"] = "touristRailway";
|
|
480
|
+
TransportSubmode["TrainFerry"] = "trainFerry";
|
|
481
|
+
TransportSubmode["TrainTram"] = "trainTram";
|
|
482
|
+
TransportSubmode["Tube"] = "tube";
|
|
483
|
+
TransportSubmode["Undefined"] = "undefined";
|
|
484
|
+
TransportSubmode["UndefinedFunicular"] = "undefinedFunicular";
|
|
485
|
+
TransportSubmode["Unknown"] = "unknown";
|
|
486
|
+
TransportSubmode["UrbanRailway"] = "urbanRailway";
|
|
487
|
+
TransportSubmode["WaterTaxi"] = "waterTaxi";
|
|
488
|
+
})(TransportSubmode || (exports.TransportSubmode = TransportSubmode = {}));
|
|
489
|
+
/** Optimization methods for vehicle routing (bicycle, scooter, etc.). */
|
|
490
|
+
var VehicleOptimisationMethod;
|
|
491
|
+
(function (VehicleOptimisationMethod) {
|
|
492
|
+
/** Prefer flat terrain */
|
|
493
|
+
VehicleOptimisationMethod["Flat"] = "flat";
|
|
494
|
+
/** Prefer faster routes */
|
|
495
|
+
VehicleOptimisationMethod["Quick"] = "quick";
|
|
496
|
+
/** Prefer safer routes */
|
|
497
|
+
VehicleOptimisationMethod["Safe"] = "safe";
|
|
498
|
+
/** Custom optimization using triangle factors */
|
|
499
|
+
VehicleOptimisationMethod["Triangle"] = "triangle";
|
|
500
|
+
})(VehicleOptimisationMethod || (exports.VehicleOptimisationMethod = VehicleOptimisationMethod = {}));
|
|
501
|
+
var VertexType;
|
|
502
|
+
(function (VertexType) {
|
|
503
|
+
VertexType["BikePark"] = "bikePark";
|
|
504
|
+
VertexType["BikeShare"] = "bikeShare";
|
|
505
|
+
VertexType["Normal"] = "normal";
|
|
506
|
+
VertexType["Transit"] = "transit";
|
|
507
|
+
})(VertexType || (exports.VertexType = VertexType = {}));
|
|
508
|
+
/** Categorization for via locations. */
|
|
509
|
+
var ViaLocationType;
|
|
510
|
+
(function (ViaLocationType) {
|
|
511
|
+
/** The via stop location must be visited as part of a transit trip as at the boarding stop, the intermediate stop, or the alighting stop. */
|
|
512
|
+
ViaLocationType["PassThrough"] = "passThrough";
|
|
513
|
+
/** The location is visited physically by boarding or alighting a transit trip at a given stop, or by traveling via requested coordinate location as part of a access, transfer, egress or direct segment. Intermediate stops visited on-board do not count. */
|
|
514
|
+
ViaLocationType["Visit"] = "visit";
|
|
515
|
+
})(ViaLocationType || (exports.ViaLocationType = ViaLocationType = {}));
|
|
516
|
+
var WheelchairBoarding;
|
|
517
|
+
(function (WheelchairBoarding) {
|
|
518
|
+
/** There is no accessibility information for the stopPlace/quay. */
|
|
519
|
+
WheelchairBoarding["NoInformation"] = "noInformation";
|
|
520
|
+
/** Wheelchair boarding/alighting is not possible at this stop. */
|
|
521
|
+
WheelchairBoarding["NotPossible"] = "notPossible";
|
|
522
|
+
/** Boarding wheelchair-accessible serviceJourneys is possible at this stopPlace/quay. */
|
|
523
|
+
WheelchairBoarding["Possible"] = "possible";
|
|
524
|
+
})(WheelchairBoarding || (exports.WheelchairBoarding = WheelchairBoarding = {}));
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { logApiResponse } from './log-api-response';
|
|
2
|
+
export { logPageAccess } from './log-page-access';
|
|
3
|
+
export { withAccessLogging } from './with-access-logging';
|
|
4
|
+
export { Timer } from './timer';
|
|
5
|
+
export { logger } from './logger';
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/logging/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAC,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAC,aAAa,EAAC,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAC,iBAAiB,EAAC,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAC,KAAK,EAAC,MAAM,SAAS,CAAC;AAC9B,OAAO,EAAC,MAAM,EAAC,MAAM,UAAU,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.logger = exports.Timer = exports.withAccessLogging = exports.logPageAccess = exports.logApiResponse = void 0;
|
|
4
|
+
var log_api_response_1 = require("./log-api-response");
|
|
5
|
+
Object.defineProperty(exports, "logApiResponse", { enumerable: true, get: function () { return log_api_response_1.logApiResponse; } });
|
|
6
|
+
var log_page_access_1 = require("./log-page-access");
|
|
7
|
+
Object.defineProperty(exports, "logPageAccess", { enumerable: true, get: function () { return log_page_access_1.logPageAccess; } });
|
|
8
|
+
var with_access_logging_1 = require("./with-access-logging");
|
|
9
|
+
Object.defineProperty(exports, "withAccessLogging", { enumerable: true, get: function () { return with_access_logging_1.withAccessLogging; } });
|
|
10
|
+
var timer_1 = require("./timer");
|
|
11
|
+
Object.defineProperty(exports, "Timer", { enumerable: true, get: function () { return timer_1.Timer; } });
|
|
12
|
+
var logger_1 = require("./logger");
|
|
13
|
+
Object.defineProperty(exports, "logger", { enumerable: true, get: function () { return logger_1.logger; } });
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IncomingHttpHeaders } from 'http';
|
|
2
|
+
type LogResponseParams = {
|
|
3
|
+
message: string;
|
|
4
|
+
duration: number;
|
|
5
|
+
requestHeaders: IncomingHttpHeaders;
|
|
6
|
+
responseHeaders?: any;
|
|
7
|
+
url?: string;
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
method?: string;
|
|
10
|
+
operationName?: string;
|
|
11
|
+
customerAccountId?: string;
|
|
12
|
+
};
|
|
13
|
+
export declare const logApiResponse: ({ message, duration, requestHeaders, responseHeaders, url, statusCode, method, operationName, customerAccountId, }: LogResponseParams) => void;
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=log-api-response.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"log-api-response.d.ts","sourceRoot":"","sources":["../../../src/modules/logging/log-api-response.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,mBAAmB,EAAC,MAAM,MAAM,CAAC;AAGzC,KAAK,iBAAiB,GAAG;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,EAAE,mBAAmB,CAAC;IACpC,eAAe,CAAC,EAAE,GAAG,CAAC;IACtB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC9B,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,oHAUG,iBAAiB,SAgDlD,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.logApiResponse = void 0;
|
|
4
|
+
const logger_1 = require("./logger");
|
|
5
|
+
const logApiResponse = ({ message, duration, requestHeaders, responseHeaders, url, statusCode, method, operationName, customerAccountId, }) => {
|
|
6
|
+
const rateLimitUsed = responseHeaders?.get('rate-limit-used');
|
|
7
|
+
const rateLimitAllowed = responseHeaders?.get('rate-limit-allowed');
|
|
8
|
+
let operationNameGroup = 'other';
|
|
9
|
+
if (url) {
|
|
10
|
+
if (url.includes('/mobility')) {
|
|
11
|
+
operationNameGroup = 'mobility';
|
|
12
|
+
}
|
|
13
|
+
else if (url.includes('/journey-planner')) {
|
|
14
|
+
operationNameGroup =
|
|
15
|
+
operationName == 'Trips' ? 'planner-trip' : 'planner-nontrip';
|
|
16
|
+
}
|
|
17
|
+
else if (url.includes('/geocoder')) {
|
|
18
|
+
operationNameGroup = 'geocoder';
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
let severity = 'INFO';
|
|
22
|
+
if (statusCode && statusCode >= 400) {
|
|
23
|
+
severity = 'ERROR';
|
|
24
|
+
}
|
|
25
|
+
const time = responseHeaders
|
|
26
|
+
? new Date(responseHeaders?.get('date')).toISOString()
|
|
27
|
+
: new Date().toISOString();
|
|
28
|
+
const log = {
|
|
29
|
+
severity: severity,
|
|
30
|
+
time: time,
|
|
31
|
+
message: message,
|
|
32
|
+
correlationId: requestHeaders['correlationId'],
|
|
33
|
+
method: method,
|
|
34
|
+
url: url,
|
|
35
|
+
code: statusCode,
|
|
36
|
+
requestId: requestHeaders['requestId'],
|
|
37
|
+
installId: requestHeaders['installId'],
|
|
38
|
+
appVersion: requestHeaders['appVersion'],
|
|
39
|
+
customerAccountId: customerAccountId,
|
|
40
|
+
rateLimitUsed: rateLimitUsed,
|
|
41
|
+
rateLimitAllowed: rateLimitAllowed,
|
|
42
|
+
rateLimitGroup: operationNameGroup,
|
|
43
|
+
duration: `${duration}ms`,
|
|
44
|
+
};
|
|
45
|
+
if (severity == 'INFO') {
|
|
46
|
+
logger_1.logger.info(log);
|
|
47
|
+
}
|
|
48
|
+
else {
|
|
49
|
+
logger_1.logger.error(log);
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
exports.logApiResponse = logApiResponse;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { IncomingHttpHeaders } from 'http';
|
|
2
|
+
import { GetServerSidePropsResult } from 'next/types';
|
|
3
|
+
type LogPageAccessParams = {
|
|
4
|
+
duration: number;
|
|
5
|
+
url?: string;
|
|
6
|
+
method?: string;
|
|
7
|
+
statusCode?: number;
|
|
8
|
+
requestHeaders?: IncomingHttpHeaders;
|
|
9
|
+
propsResult?: GetServerSidePropsResult<any>;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Fire-and-forget function for access logging.
|
|
13
|
+
*
|
|
14
|
+
* The exported function itself is not async since there is no promise to ever wait for from the outside.
|
|
15
|
+
* But since it does access the propsResult.props which can be a promise it needs to be async internally.
|
|
16
|
+
*/
|
|
17
|
+
export declare function logPageAccess({ duration, url, method, requestHeaders, statusCode, propsResult, }: LogPageAccessParams): void;
|
|
18
|
+
export declare function limitedStringify<T>(obj: T, maxDepth?: number): string;
|
|
19
|
+
export {};
|
|
20
|
+
//# sourceMappingURL=log-page-access.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"log-page-access.d.ts","sourceRoot":"","sources":["../../../src/modules/logging/log-page-access.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,mBAAmB,EAAC,MAAM,MAAM,CAAC;AACzC,OAAO,EAAC,wBAAwB,EAAC,MAAM,YAAY,CAAC;AAGpD,KAAK,mBAAmB,GAAG;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,mBAAmB,CAAC;IACrC,WAAW,CAAC,EAAE,wBAAwB,CAAC,GAAG,CAAC,CAAC;CAC/C,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,EACI,QAAQ,EACR,GAAG,EACH,MAAM,EACN,cAAc,EACd,UAAU,EACV,WAAW,GACd,EAAE,mBAAmB,QAqBnD;AAED,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,QAAQ,GAAE,MAAU,GAAG,MAAM,CA6BxE"}
|