@mrfylke/contact-form 0.1.24 → 0.1.25
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/README.md +1 -11
- package/lib/ContactFormRoot.d.ts +2 -2
- package/lib/ContactFormRoot.d.ts.map +1 -1
- package/lib/ContactFormRoot.js +2 -1
- package/lib/components/button/link.d.ts +1 -1
- package/lib/components/button/link.d.ts.map +1 -1
- package/lib/components/button/utils.d.ts +2 -2
- package/lib/components/button/utils.d.ts.map +1 -1
- package/lib/components/checkbox/checkbox.d.ts +1 -1
- package/lib/components/checkbox/checkbox.d.ts.map +1 -1
- package/lib/components/error-message/error-message.d.ts +1 -1
- package/lib/components/error-message/error-message.d.ts.map +1 -1
- package/lib/components/external-link-page.d.ts +1 -1
- package/lib/components/external-link-page.d.ts.map +1 -1
- package/lib/components/form/date-selector.d.ts +1 -1
- package/lib/components/form/date-selector.d.ts.map +1 -1
- package/lib/components/form/date-selector.js +2 -2
- package/lib/components/form/departure-time-field.d.ts +1 -1
- package/lib/components/form/departure-time-field.d.ts.map +1 -1
- package/lib/components/form/description-modal.d.ts +1 -1
- package/lib/components/form/description-modal.d.ts.map +1 -1
- package/lib/components/form/field-wrapper-with-error/index.d.ts +1 -1
- package/lib/components/form/field-wrapper-with-error/index.d.ts.map +1 -1
- package/lib/components/form/fieldset/index.d.ts +1 -1
- package/lib/components/form/fieldset/index.d.ts.map +1 -1
- package/lib/components/form/file-input.d.ts +1 -1
- package/lib/components/form/file-input.d.ts.map +1 -1
- package/lib/components/form/form-component-label/index.d.ts +3 -2
- package/lib/components/form/form-component-label/index.d.ts.map +1 -1
- package/lib/components/form/form-component-label/index.js +2 -2
- package/lib/components/form/input.d.ts +1 -1
- package/lib/components/form/input.d.ts.map +1 -1
- package/lib/components/form/radio.d.ts +1 -1
- package/lib/components/form/radio.d.ts.map +1 -1
- package/lib/components/form/searchable-select/searchable-select.d.ts +1 -1
- package/lib/components/form/searchable-select/searchable-select.d.ts.map +1 -1
- package/lib/components/form/searchable-select/searchable-select.js +1 -1
- package/lib/components/form/select.d.ts +1 -1
- package/lib/components/form/select.d.ts.map +1 -1
- package/lib/components/form/select.js +1 -1
- package/lib/components/form/textarea.d.ts +1 -1
- package/lib/components/form/textarea.d.ts.map +1 -1
- package/lib/components/form/time-selector.d.ts +1 -1
- package/lib/components/form/time-selector.d.ts.map +1 -1
- package/lib/components/form/time-selector.js +2 -2
- package/lib/components/icon/checkbox-icon.d.ts +1 -1
- package/lib/components/icon/checkbox-icon.d.ts.map +1 -1
- package/lib/components/icon/color-icon.d.ts +1 -1
- package/lib/components/icon/color-icon.d.ts.map +1 -1
- package/lib/components/icon/generated-icons.d.ts +422 -262
- package/lib/components/icon/generated-icons.d.ts.map +1 -1
- package/lib/components/icon/generated-icons.js +1931 -1771
- package/lib/components/icon/illustration.d.ts +1 -1
- package/lib/components/icon/illustration.d.ts.map +1 -1
- package/lib/components/icon/image.d.ts +1 -1
- package/lib/components/icon/image.d.ts.map +1 -1
- package/lib/components/icon/mono-icon.d.ts +1 -1
- package/lib/components/icon/mono-icon.d.ts.map +1 -1
- package/lib/components/icon/utils.d.ts.map +1 -1
- package/lib/components/icon/utils.js +6 -6
- package/lib/components/loading/index.d.ts +2 -2
- package/lib/components/loading/index.d.ts.map +1 -1
- package/lib/components/section-card/section-card.d.ts +1 -1
- package/lib/components/section-card/section-card.d.ts.map +1 -1
- package/lib/components/typography/index.d.ts +6 -6
- package/lib/components/typography/index.d.ts.map +1 -1
- package/lib/error-content/error-content.d.ts +1 -1
- package/lib/error-content/error-content.d.ts.map +1 -1
- package/lib/group-travel/index.d.ts +1 -1
- package/lib/group-travel/index.d.ts.map +1 -1
- package/lib/index.d.ts +3 -5
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +4 -10
- package/lib/journey-info/events.d.ts.map +1 -1
- package/lib/journey-info/index.d.ts +1 -1
- package/lib/journey-info/index.d.ts.map +1 -1
- package/lib/journey-info/index.js +1 -1
- package/lib/layouts/contact-form-container.d.ts +1 -1
- package/lib/layouts/contact-form-container.d.ts.map +1 -1
- package/lib/layouts/contact-page-layout.d.ts +1 -8
- package/lib/layouts/contact-page-layout.d.ts.map +1 -1
- package/lib/layouts/contact-page-layout.js +8 -93
- package/lib/layouts/contact-pages.d.ts +20 -0
- package/lib/layouts/contact-pages.d.ts.map +1 -0
- package/lib/layouts/contact-pages.js +124 -0
- package/lib/layouts/index.d.ts +2 -1
- package/lib/layouts/index.d.ts.map +1 -1
- package/lib/layouts/index.js +5 -2
- package/lib/lines/use-departures.js +2 -2
- package/lib/lines/use-lines.d.ts +2 -2
- package/lib/lines/use-lines.js +1 -1
- package/lib/lost-property/LostPropertyForm.d.ts +2 -1
- package/lib/lost-property/LostPropertyForm.d.ts.map +1 -1
- package/lib/lost-property/index.d.ts +1 -1
- package/lib/lost-property/index.d.ts.map +1 -1
- package/lib/lost-property-external/index.d.ts +1 -1
- package/lib/lost-property-external/index.d.ts.map +1 -1
- package/lib/means-of-transport/events.d.ts.map +1 -1
- package/lib/means-of-transport/forms/delayForm.d.ts +1 -1
- package/lib/means-of-transport/forms/delayForm.d.ts.map +1 -1
- package/lib/means-of-transport/forms/driverForm.d.ts +1 -1
- package/lib/means-of-transport/forms/driverForm.d.ts.map +1 -1
- package/lib/means-of-transport/forms/injuryForm.d.ts +1 -1
- package/lib/means-of-transport/forms/injuryForm.d.ts.map +1 -1
- package/lib/means-of-transport/forms/serviceOfferingForm.d.ts +1 -1
- package/lib/means-of-transport/forms/serviceOfferingForm.d.ts.map +1 -1
- package/lib/means-of-transport/forms/stopForm.d.ts +1 -1
- package/lib/means-of-transport/forms/stopForm.d.ts.map +1 -1
- package/lib/means-of-transport/forms/transportationForm.d.ts +1 -1
- package/lib/means-of-transport/forms/transportationForm.d.ts.map +1 -1
- package/lib/means-of-transport/index.d.ts +1 -1
- package/lib/means-of-transport/index.d.ts.map +1 -1
- package/lib/modules/config/context.d.ts +5 -37
- package/lib/modules/config/context.d.ts.map +1 -1
- package/lib/modules/config/context.js +9 -51
- package/lib/modules/config/types.d.ts +10 -55
- package/lib/modules/config/types.d.ts.map +1 -1
- package/lib/modules/org-data/index.d.ts +2 -2
- package/lib/modules/org-data/index.js +2 -2
- package/lib/modules/theme/theme-context.d.ts +1 -1
- package/lib/modules/theme/theme-context.d.ts.map +1 -1
- package/lib/modules/transport-mode/filter/filter.d.ts +1 -1
- package/lib/modules/transport-mode/filter/filter.d.ts.map +1 -1
- package/lib/modules/transport-mode/icon/index.d.ts +4 -4
- package/lib/modules/transport-mode/icon/index.d.ts.map +1 -1
- package/lib/modules/transport-mode/types.d.ts +3 -5
- package/lib/modules/transport-mode/types.d.ts.map +1 -1
- package/lib/modules/transport-mode/types.js +3 -138
- package/lib/modules/transport-mode/utils.d.ts +2 -2
- package/lib/modules/transport-mode/utils.d.ts.map +1 -1
- package/lib/modules/transport-mode/utils.js +39 -6
- package/lib/refund/forms/refund-and-travel-guarantee/index.d.ts +1 -1
- package/lib/refund/forms/refund-and-travel-guarantee/index.d.ts.map +1 -1
- package/lib/refund/forms/refund-and-travel-guarantee/refundCarForm.d.ts +1 -1
- package/lib/refund/forms/refund-and-travel-guarantee/refundCarForm.d.ts.map +1 -1
- package/lib/refund/forms/refund-and-travel-guarantee/refundTaxiForm.d.ts +1 -1
- package/lib/refund/forms/refund-and-travel-guarantee/refundTaxiForm.d.ts.map +1 -1
- package/lib/refund/forms/refund-ticket/appTicketRefund.d.ts +2 -2
- package/lib/refund/forms/refund-ticket/appTicketRefund.d.ts.map +1 -1
- package/lib/refund/forms/refund-ticket/index.d.ts +1 -1
- package/lib/refund/forms/refund-ticket/index.d.ts.map +1 -1
- package/lib/refund/forms/refund-ticket/otherTicketRefund.d.ts +1 -1
- package/lib/refund/forms/refund-ticket/otherTicketRefund.d.ts.map +1 -1
- package/lib/refund/forms/refund-ticket/otherTicketRefund.js +1 -5
- package/lib/refund/forms/residualValueOnTravelCard/index.d.ts +1 -1
- package/lib/refund/forms/residualValueOnTravelCard/index.d.ts.map +1 -1
- package/lib/refund/index.d.ts +1 -1
- package/lib/refund/index.d.ts.map +1 -1
- package/lib/refund/refundFormMachine.js +1 -1
- package/lib/server/departures-route-handler.d.ts +27 -0
- package/lib/server/departures-route-handler.d.ts.map +1 -0
- package/lib/server/departures-route-handler.js +93 -0
- package/lib/server/index.d.ts +1 -0
- package/lib/server/index.d.ts.map +1 -1
- package/lib/server/index.js +3 -1
- package/lib/server/journey-planner/authority.d.ts +2 -2
- package/lib/server/journey-planner/authority.js +3 -3
- package/lib/server/journey-planner/index.d.ts.map +1 -1
- package/lib/server/journey-planner/index.js +8 -9
- package/lib/server/journey-planner/journey-gql/lines.generated.d.ts +1 -0
- package/lib/server/journey-planner/journey-gql/lines.generated.d.ts.map +1 -1
- package/lib/server/journey-planner/journey-gql/lines.generated.js +1 -0
- package/lib/server/journey-planner/validators.d.ts +4 -4
- package/lib/server/journey-planner/validators.js +3 -3
- package/lib/server/lines-route-handler.d.ts +7 -18
- package/lib/server/lines-route-handler.d.ts.map +1 -1
- package/lib/server/lines-route-handler.js +15 -17
- package/lib/success-content/success-content.d.ts +1 -1
- package/lib/success-content/success-content.d.ts.map +1 -1
- package/lib/ticket-control/events.d.ts +1 -1
- package/lib/ticket-control/events.d.ts.map +1 -1
- package/lib/ticket-control/forms/feeComplaintForm.d.ts +1 -1
- package/lib/ticket-control/forms/feeComplaintForm.d.ts.map +1 -1
- package/lib/ticket-control/forms/feeComplaintForm.js +5 -1
- package/lib/ticket-control/forms/feedbackForm.d.ts +1 -1
- package/lib/ticket-control/forms/feedbackForm.d.ts.map +1 -1
- package/lib/ticket-control/forms/postponePayment.d.ts +1 -1
- package/lib/ticket-control/forms/postponePayment.d.ts.map +1 -1
- package/lib/ticket-control/forms/postponePayment.js +5 -1
- package/lib/ticket-control/index.d.ts +1 -1
- package/lib/ticket-control/index.d.ts.map +1 -1
- package/lib/ticket-control/ticket-control-form-machine.d.ts +4 -2
- package/lib/ticket-control/ticket-control-form-machine.d.ts.map +1 -1
- package/lib/ticket-control/ticket-control-form-machine.js +4 -2
- package/lib/ticketing/events.d.ts.map +1 -1
- package/lib/ticketing/forms/app/appAccountForm.d.ts +1 -1
- package/lib/ticketing/forms/app/appAccountForm.d.ts.map +1 -1
- package/lib/ticketing/forms/app/appTicketingForm.d.ts +1 -1
- package/lib/ticketing/forms/app/appTicketingForm.d.ts.map +1 -1
- package/lib/ticketing/forms/app/appTravelSuggestionForm.d.ts +1 -1
- package/lib/ticketing/forms/app/appTravelSuggestionForm.d.ts.map +1 -1
- package/lib/ticketing/forms/app/index.d.ts +1 -1
- package/lib/ticketing/forms/app/index.d.ts.map +1 -1
- package/lib/ticketing/forms/priceAndTicketTypesForm.d.ts +1 -1
- package/lib/ticketing/forms/priceAndTicketTypesForm.d.ts.map +1 -1
- package/lib/ticketing/forms/travel-card/index.d.ts +1 -1
- package/lib/ticketing/forms/travel-card/index.d.ts.map +1 -1
- package/lib/ticketing/forms/travel-card/orderTravelCard.d.ts +1 -1
- package/lib/ticketing/forms/travel-card/orderTravelCard.d.ts.map +1 -1
- package/lib/ticketing/forms/travel-card/travelCardQuestionForm.d.ts +1 -1
- package/lib/ticketing/forms/travel-card/travelCardQuestionForm.d.ts.map +1 -1
- package/lib/ticketing/forms/webshop/index.d.ts +1 -1
- package/lib/ticketing/forms/webshop/index.d.ts.map +1 -1
- package/lib/ticketing/forms/webshop/webshopAccountForm.d.ts +1 -1
- package/lib/ticketing/forms/webshop/webshopAccountForm.d.ts.map +1 -1
- package/lib/ticketing/forms/webshop/webshopTicketingForm.d.ts +1 -1
- package/lib/ticketing/forms/webshop/webshopTicketingForm.d.ts.map +1 -1
- package/lib/ticketing/index.d.ts +1 -1
- package/lib/ticketing/index.d.ts.map +1 -1
- package/lib/translations/common/layout.d.ts.map +1 -1
- package/lib/translations/common/layout.js +1 -29
- package/lib/translations/common/titles.d.ts.map +1 -1
- package/lib/translations/common/titles.js +2 -20
- package/lib/translations/json-to-override.d.ts.map +1 -1
- package/lib/translations/language-context.d.ts +3 -3
- package/lib/translations/language-context.d.ts.map +1 -1
- package/lib/translations/merge-overrides.d.ts +3 -3
- package/lib/translations/merge-overrides.js +3 -3
- package/lib/translations/pages/contact.d.ts +6 -0
- package/lib/translations/pages/contact.d.ts.map +1 -1
- package/lib/translations/pages/contact.js +7 -15
- package/lib/translations/server/endpoints.d.ts.map +1 -1
- package/lib/translations/server/endpoints.js +7 -83
- package/lib/translations/translations-context.d.ts +1 -1
- package/lib/translations/translations-context.d.ts.map +1 -1
- package/lib/translations/types.d.ts +7 -7
- package/lib/translations/types.d.ts.map +1 -1
- package/lib/translations/utils.d.ts +0 -7
- package/lib/translations/utils.d.ts.map +1 -1
- package/lib/translations/utils.js +0 -26
- package/lib/types/submit-payloads.d.ts +1 -0
- package/lib/types/submit-payloads.d.ts.map +1 -1
- package/lib/types.d.ts.map +1 -1
- package/lib/validation/validationRules.d.ts.map +1 -1
- package/lib/validation/validationRules.js +7 -0
- package/package.json +37 -32
- package/lib/components/icon/icon-wrapper.d.ts +0 -30
- package/lib/components/icon/icon-wrapper.d.ts.map +0 -1
- package/lib/components/icon/icon-wrapper.js +0 -39
- package/lib/components/icon/mono-icon-new.d.ts +0 -32
- package/lib/components/icon/mono-icon-new.d.ts.map +0 -1
- package/lib/components/icon/mono-icon-new.js +0 -43
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export
|
|
3
|
-
export type TransportModeType
|
|
4
|
-
export declare const transportSubmodeSchema: z.ZodUnion<readonly [z.ZodLiteral<"SchengenAreaFlight">, z.ZodLiteral<"airportBoatLink">, z.ZodLiteral<"airportLinkBus">, z.ZodLiteral<"airportLinkRail">, z.ZodLiteral<"airshipService">, z.ZodLiteral<"allFunicularServices">, z.ZodLiteral<"allHireVehicles">, z.ZodLiteral<"allTaxiServices">, z.ZodLiteral<"bikeTaxi">, z.ZodLiteral<"blackCab">, z.ZodLiteral<"cableCar">, z.ZodLiteral<"cableFerry">, z.ZodLiteral<"canalBarge">, z.ZodLiteral<"carTransportRailService">, z.ZodLiteral<"chairLift">, z.ZodLiteral<"charterTaxi">, z.ZodLiteral<"cityTram">, z.ZodLiteral<"communalTaxi">, z.ZodLiteral<"commuterCoach">, z.ZodLiteral<"crossCountryRail">, z.ZodLiteral<"dedicatedLaneBus">, z.ZodLiteral<"demandAndResponseBus">, z.ZodLiteral<"domesticCharterFlight">, z.ZodLiteral<"domesticFlight">, z.ZodLiteral<"domesticScheduledFlight">, z.ZodLiteral<"dragLift">, z.ZodLiteral<"escooter">, z.ZodLiteral<"expressBus">, z.ZodLiteral<"funicular">, z.ZodLiteral<"helicopterService">, z.ZodLiteral<"highFrequencyBus">, z.ZodLiteral<"highSpeedPassengerService">, z.ZodLiteral<"highSpeedRail">, z.ZodLiteral<"highSpeedVehicleService">, z.ZodLiteral<"hireCar">, z.ZodLiteral<"hireCycle">, z.ZodLiteral<"hireMotorbike">, z.ZodLiteral<"hireVan">, z.ZodLiteral<"intercontinentalCharterFlight">, z.ZodLiteral<"intercontinentalFlight">, z.ZodLiteral<"international">, z.ZodLiteral<"internationalCarFerry">, z.ZodLiteral<"internationalCharterFlight">, z.ZodLiteral<"internationalCoach">, z.ZodLiteral<"internationalFlight">, z.ZodLiteral<"internationalPassengerFerry">, z.ZodLiteral<"interregionalRail">, z.ZodLiteral<"lift">, z.ZodLiteral<"local">, z.ZodLiteral<"localBus">, z.ZodLiteral<"localCarFerry">, z.ZodLiteral<"localPassengerFerry">, z.ZodLiteral<"localTram">, z.ZodLiteral<"longDistance">, z.ZodLiteral<"metro">, z.ZodLiteral<"miniCab">, z.ZodLiteral<"mobilityBus">, z.ZodLiteral<"mobilityBusForRegisteredDisabled">, z.ZodLiteral<"nationalCarFerry">, z.ZodLiteral<"nationalCoach">, z.ZodLiteral<"nationalPassengerFerry">, z.ZodLiteral<"nightBus">, z.ZodLiteral<"nightRail">, z.ZodLiteral<"postBoat">, z.ZodLiteral<"postBus">, z.ZodLiteral<"rackAndPinionRailway">, z.ZodLiteral<"railReplacementBus">, z.ZodLiteral<"railShuttle">, z.ZodLiteral<"railTaxi">, z.ZodLiteral<"regionalBus">, z.ZodLiteral<"regionalCarFerry">, z.ZodLiteral<"regionalCoach">, z.ZodLiteral<"regionalPassengerFerry">, z.ZodLiteral<"regionalRail">, z.ZodLiteral<"regionalTram">, z.ZodLiteral<"replacementRailService">, z.ZodLiteral<"riverBus">, z.ZodLiteral<"roadFerryLink">, z.ZodLiteral<"roundTripCharterFlight">, z.ZodLiteral<"scheduledFerry">, z.ZodLiteral<"schoolAndPublicServiceBus">, z.ZodLiteral<"schoolBoat">, z.ZodLiteral<"schoolBus">, z.ZodLiteral<"schoolCoach">, z.ZodLiteral<"shortHaulInternationalFlight">, z.ZodLiteral<"shuttleBus">, z.ZodLiteral<"shuttleCoach">, z.ZodLiteral<"shuttleFerryService">, z.ZodLiteral<"shuttleFlight">, z.ZodLiteral<"shuttleTram">, z.ZodLiteral<"sightseeingBus">, z.ZodLiteral<"sightseeingCoach">, z.ZodLiteral<"sightseeingFlight">, z.ZodLiteral<"sightseeingService">, z.ZodLiteral<"sightseeingTram">, z.ZodLiteral<"sleeperRailService">, z.ZodLiteral<"specialCoach">, z.ZodLiteral<"specialNeedsBus">, z.ZodLiteral<"specialTrain">, z.ZodLiteral<"streetCableCar">, z.ZodLiteral<"suburbanRailway">, z.ZodLiteral<"telecabin">, z.ZodLiteral<"telecabinLink">, z.ZodLiteral<"touristCoach">, z.ZodLiteral<"touristRailway">, z.ZodLiteral<"trainFerry">, z.ZodLiteral<"trainTram">, z.ZodLiteral<"tube">, z.ZodLiteral<"undefined">, z.ZodLiteral<"undefinedFunicular">, z.ZodLiteral<"unknown">, z.ZodLiteral<"urbanRailway">, z.ZodLiteral<"waterTaxi">]>;
|
|
5
|
-
export type TransportSubmodeType = z.infer<typeof transportSubmodeSchema>;
|
|
1
|
+
import { TransportModeType as transportModeSchema, TransportSubmodeType as transportSubmodeSchema, type TransportModeType, type TransportSubmodeType } from '@atb-as/config-specs';
|
|
2
|
+
export { transportModeSchema, transportSubmodeSchema };
|
|
3
|
+
export type { TransportModeType, TransportSubmodeType };
|
|
6
4
|
export type TransportModeGroup = {
|
|
7
5
|
transportMode: TransportModeType;
|
|
8
6
|
transportSubModes?: TransportSubmodeType[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/modules/transport-mode/types.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/modules/transport-mode/types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,IAAI,mBAAmB,EACxC,oBAAoB,IAAI,sBAAsB,EAC9C,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,EAC1B,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,CAAC;AACvD,YAAY,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,CAAC;AAExD,MAAM,MAAM,kBAAkB,GAAG;IAC/B,aAAa,EAAE,iBAAiB,CAAC;IACjC,iBAAiB,CAAC,EAAE,oBAAoB,EAAE,CAAC;CAC5C,CAAC"}
|
|
@@ -1,141 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.transportSubmodeSchema = exports.transportModeSchema = void 0;
|
|
4
|
-
const
|
|
5
|
-
exports
|
|
6
|
-
|
|
7
|
-
zod_1.z.literal('bus'),
|
|
8
|
-
zod_1.z.literal('foot'),
|
|
9
|
-
zod_1.z.literal('bicycle'),
|
|
10
|
-
zod_1.z.literal('cableway'),
|
|
11
|
-
zod_1.z.literal('car'),
|
|
12
|
-
zod_1.z.literal('carpool'),
|
|
13
|
-
zod_1.z.literal('coach'),
|
|
14
|
-
zod_1.z.literal('funicular'),
|
|
15
|
-
zod_1.z.literal('lift'),
|
|
16
|
-
zod_1.z.literal('metro'),
|
|
17
|
-
zod_1.z.literal('monorail'),
|
|
18
|
-
zod_1.z.literal('rail'),
|
|
19
|
-
zod_1.z.literal('scooter'),
|
|
20
|
-
zod_1.z.literal('taxi'),
|
|
21
|
-
zod_1.z.literal('tram'),
|
|
22
|
-
zod_1.z.literal('trolleybus'),
|
|
23
|
-
zod_1.z.literal('unknown'),
|
|
24
|
-
zod_1.z.literal('water'),
|
|
25
|
-
zod_1.z.literal('snowAndIce'),
|
|
26
|
-
]);
|
|
27
|
-
exports.transportSubmodeSchema = zod_1.z.union([
|
|
28
|
-
zod_1.z.literal('SchengenAreaFlight'),
|
|
29
|
-
zod_1.z.literal('airportBoatLink'),
|
|
30
|
-
zod_1.z.literal('airportLinkBus'),
|
|
31
|
-
zod_1.z.literal('airportLinkRail'),
|
|
32
|
-
zod_1.z.literal('airshipService'),
|
|
33
|
-
zod_1.z.literal('allFunicularServices'),
|
|
34
|
-
zod_1.z.literal('allHireVehicles'),
|
|
35
|
-
zod_1.z.literal('allTaxiServices'),
|
|
36
|
-
zod_1.z.literal('bikeTaxi'),
|
|
37
|
-
zod_1.z.literal('blackCab'),
|
|
38
|
-
zod_1.z.literal('cableCar'),
|
|
39
|
-
zod_1.z.literal('cableFerry'),
|
|
40
|
-
zod_1.z.literal('canalBarge'),
|
|
41
|
-
zod_1.z.literal('carTransportRailService'),
|
|
42
|
-
zod_1.z.literal('chairLift'),
|
|
43
|
-
zod_1.z.literal('charterTaxi'),
|
|
44
|
-
zod_1.z.literal('cityTram'),
|
|
45
|
-
zod_1.z.literal('communalTaxi'),
|
|
46
|
-
zod_1.z.literal('commuterCoach'),
|
|
47
|
-
zod_1.z.literal('crossCountryRail'),
|
|
48
|
-
zod_1.z.literal('dedicatedLaneBus'),
|
|
49
|
-
zod_1.z.literal('demandAndResponseBus'),
|
|
50
|
-
zod_1.z.literal('domesticCharterFlight'),
|
|
51
|
-
zod_1.z.literal('domesticFlight'),
|
|
52
|
-
zod_1.z.literal('domesticScheduledFlight'),
|
|
53
|
-
zod_1.z.literal('dragLift'),
|
|
54
|
-
zod_1.z.literal('escooter'),
|
|
55
|
-
zod_1.z.literal('expressBus'),
|
|
56
|
-
zod_1.z.literal('funicular'),
|
|
57
|
-
zod_1.z.literal('helicopterService'),
|
|
58
|
-
zod_1.z.literal('highFrequencyBus'),
|
|
59
|
-
zod_1.z.literal('highSpeedPassengerService'),
|
|
60
|
-
zod_1.z.literal('highSpeedRail'),
|
|
61
|
-
zod_1.z.literal('highSpeedVehicleService'),
|
|
62
|
-
zod_1.z.literal('hireCar'),
|
|
63
|
-
zod_1.z.literal('hireCycle'),
|
|
64
|
-
zod_1.z.literal('hireMotorbike'),
|
|
65
|
-
zod_1.z.literal('hireVan'),
|
|
66
|
-
zod_1.z.literal('intercontinentalCharterFlight'),
|
|
67
|
-
zod_1.z.literal('intercontinentalFlight'),
|
|
68
|
-
zod_1.z.literal('international'),
|
|
69
|
-
zod_1.z.literal('internationalCarFerry'),
|
|
70
|
-
zod_1.z.literal('internationalCharterFlight'),
|
|
71
|
-
zod_1.z.literal('internationalCoach'),
|
|
72
|
-
zod_1.z.literal('internationalFlight'),
|
|
73
|
-
zod_1.z.literal('internationalPassengerFerry'),
|
|
74
|
-
zod_1.z.literal('interregionalRail'),
|
|
75
|
-
zod_1.z.literal('lift'),
|
|
76
|
-
zod_1.z.literal('local'),
|
|
77
|
-
zod_1.z.literal('localBus'),
|
|
78
|
-
zod_1.z.literal('localCarFerry'),
|
|
79
|
-
zod_1.z.literal('localPassengerFerry'),
|
|
80
|
-
zod_1.z.literal('localTram'),
|
|
81
|
-
zod_1.z.literal('longDistance'),
|
|
82
|
-
zod_1.z.literal('metro'),
|
|
83
|
-
zod_1.z.literal('miniCab'),
|
|
84
|
-
zod_1.z.literal('mobilityBus'),
|
|
85
|
-
zod_1.z.literal('mobilityBusForRegisteredDisabled'),
|
|
86
|
-
zod_1.z.literal('nationalCarFerry'),
|
|
87
|
-
zod_1.z.literal('nationalCoach'),
|
|
88
|
-
zod_1.z.literal('nationalPassengerFerry'),
|
|
89
|
-
zod_1.z.literal('nightBus'),
|
|
90
|
-
zod_1.z.literal('nightRail'),
|
|
91
|
-
zod_1.z.literal('postBoat'),
|
|
92
|
-
zod_1.z.literal('postBus'),
|
|
93
|
-
zod_1.z.literal('rackAndPinionRailway'),
|
|
94
|
-
zod_1.z.literal('railReplacementBus'),
|
|
95
|
-
zod_1.z.literal('railShuttle'),
|
|
96
|
-
zod_1.z.literal('railTaxi'),
|
|
97
|
-
zod_1.z.literal('regionalBus'),
|
|
98
|
-
zod_1.z.literal('regionalCarFerry'),
|
|
99
|
-
zod_1.z.literal('regionalCoach'),
|
|
100
|
-
zod_1.z.literal('regionalPassengerFerry'),
|
|
101
|
-
zod_1.z.literal('regionalRail'),
|
|
102
|
-
zod_1.z.literal('regionalTram'),
|
|
103
|
-
zod_1.z.literal('replacementRailService'),
|
|
104
|
-
zod_1.z.literal('riverBus'),
|
|
105
|
-
zod_1.z.literal('roadFerryLink'),
|
|
106
|
-
zod_1.z.literal('roundTripCharterFlight'),
|
|
107
|
-
zod_1.z.literal('scheduledFerry'),
|
|
108
|
-
zod_1.z.literal('schoolAndPublicServiceBus'),
|
|
109
|
-
zod_1.z.literal('schoolBoat'),
|
|
110
|
-
zod_1.z.literal('schoolBus'),
|
|
111
|
-
zod_1.z.literal('schoolCoach'),
|
|
112
|
-
zod_1.z.literal('shortHaulInternationalFlight'),
|
|
113
|
-
zod_1.z.literal('shuttleBus'),
|
|
114
|
-
zod_1.z.literal('shuttleCoach'),
|
|
115
|
-
zod_1.z.literal('shuttleFerryService'),
|
|
116
|
-
zod_1.z.literal('shuttleFlight'),
|
|
117
|
-
zod_1.z.literal('shuttleTram'),
|
|
118
|
-
zod_1.z.literal('sightseeingBus'),
|
|
119
|
-
zod_1.z.literal('sightseeingCoach'),
|
|
120
|
-
zod_1.z.literal('sightseeingFlight'),
|
|
121
|
-
zod_1.z.literal('sightseeingService'),
|
|
122
|
-
zod_1.z.literal('sightseeingTram'),
|
|
123
|
-
zod_1.z.literal('sleeperRailService'),
|
|
124
|
-
zod_1.z.literal('specialCoach'),
|
|
125
|
-
zod_1.z.literal('specialNeedsBus'),
|
|
126
|
-
zod_1.z.literal('specialTrain'),
|
|
127
|
-
zod_1.z.literal('streetCableCar'),
|
|
128
|
-
zod_1.z.literal('suburbanRailway'),
|
|
129
|
-
zod_1.z.literal('telecabin'),
|
|
130
|
-
zod_1.z.literal('telecabinLink'),
|
|
131
|
-
zod_1.z.literal('touristCoach'),
|
|
132
|
-
zod_1.z.literal('touristRailway'),
|
|
133
|
-
zod_1.z.literal('trainFerry'),
|
|
134
|
-
zod_1.z.literal('trainTram'),
|
|
135
|
-
zod_1.z.literal('tube'),
|
|
136
|
-
zod_1.z.literal('undefined'),
|
|
137
|
-
zod_1.z.literal('undefinedFunicular'),
|
|
138
|
-
zod_1.z.literal('unknown'),
|
|
139
|
-
zod_1.z.literal('urbanRailway'),
|
|
140
|
-
zod_1.z.literal('waterTaxi'),
|
|
141
|
-
]);
|
|
4
|
+
const config_specs_1 = require("@atb-as/config-specs");
|
|
5
|
+
Object.defineProperty(exports, "transportModeSchema", { enumerable: true, get: function () { return config_specs_1.TransportModeType; } });
|
|
6
|
+
Object.defineProperty(exports, "transportSubmodeSchema", { enumerable: true, get: function () { return config_specs_1.TransportSubmodeType; } });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TransportModeGroup, TransportModeType, TransportSubmodeType } from './types';
|
|
2
2
|
import { TransportMode as GraphQlTransportMode } from '../../modules/graphql-types';
|
|
3
|
-
export declare function transportModeToTranslatedString(mode: TransportModeGroup): import("
|
|
4
|
-
export declare function severalTransportModesToTranslatedStrings(modes: TransportModeGroup[]): import("
|
|
3
|
+
export declare function transportModeToTranslatedString(mode: TransportModeGroup): import("../..").TranslatedString;
|
|
4
|
+
export declare function severalTransportModesToTranslatedStrings(modes: TransportModeGroup[]): import("../..").TranslatedString[];
|
|
5
5
|
export declare function isTransportModeType(a: any): a is TransportModeType;
|
|
6
6
|
export declare function isTransportSubmodeType(a: any): a is TransportSubmodeType;
|
|
7
7
|
export declare function filterGraphQlTransportModes(modes: GraphQlTransportMode[] | undefined): TransportModeType[] | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/modules/transport-mode/utils.ts"],"names":[],"mappings":"AACA,OAAO,EACL,kBAAkB,EAElB,iBAAiB,EAEjB,oBAAoB,EACrB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,aAAa,IAAI,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAEpF,wBAAgB,+BAA+B,CAAC,IAAI,EAAE,kBAAkB,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/modules/transport-mode/utils.ts"],"names":[],"mappings":"AACA,OAAO,EACL,kBAAkB,EAElB,iBAAiB,EAEjB,oBAAoB,EACrB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,aAAa,IAAI,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAEpF,wBAAgB,+BAA+B,CAAC,IAAI,EAAE,kBAAkB,oCAMvE;AAED,wBAAgB,wCAAwC,CACtD,KAAK,EAAE,kBAAkB,EAAE,sCAK5B;AAED,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,GAAG,GAAG,CAAC,IAAI,iBAAiB,CAElE;AAED,wBAAgB,sBAAsB,CAAC,CAAC,EAAE,GAAG,GAAG,CAAC,IAAI,oBAAoB,CAExE;AAED,wBAAgB,2BAA2B,CACzC,KAAK,EAAE,oBAAoB,EAAE,GAAG,SAAS,GACxC,iBAAiB,EAAE,GAAG,SAAS,CAQjC;AAUD,wBAAgB,aAAa,CAAC,QAAQ,CAAC,EAAE,oBAAoB,EAAE,WAG9D"}
|
|
@@ -1,4 +1,37 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
2
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
36
|
exports.transportModeToTranslatedString = transportModeToTranslatedString;
|
|
4
37
|
exports.severalTransportModesToTranslatedStrings = severalTransportModesToTranslatedStrings;
|
|
@@ -6,20 +39,20 @@ exports.isTransportModeType = isTransportModeType;
|
|
|
6
39
|
exports.isTransportSubmodeType = isTransportSubmodeType;
|
|
7
40
|
exports.filterGraphQlTransportModes = filterGraphQlTransportModes;
|
|
8
41
|
exports.isSubModeBoat = isSubModeBoat;
|
|
9
|
-
const
|
|
42
|
+
const ComponentText = __importStar(require("../../translations/components"));
|
|
10
43
|
const types_1 = require("./types");
|
|
11
44
|
function transportModeToTranslatedString(mode) {
|
|
12
45
|
if (!mode.transportMode)
|
|
13
|
-
return
|
|
14
|
-
if (!
|
|
15
|
-
return
|
|
46
|
+
return ComponentText.TransportMode.modes.unknown;
|
|
47
|
+
if (!ComponentText.TransportMode.modes[mode.transportMode]) {
|
|
48
|
+
return ComponentText.TransportMode.modes.unknown;
|
|
16
49
|
}
|
|
17
|
-
return
|
|
50
|
+
return ComponentText.TransportMode.modes[mode.transportMode];
|
|
18
51
|
}
|
|
19
52
|
function severalTransportModesToTranslatedStrings(modes) {
|
|
20
53
|
return modes
|
|
21
54
|
.filter((mode) => !!mode.transportMode) // Remove the ! from mode.transportMode! below if this line is removed
|
|
22
|
-
.map((mode) =>
|
|
55
|
+
.map((mode) => ComponentText.TransportMode.modes[mode.transportMode]);
|
|
23
56
|
}
|
|
24
57
|
function isTransportModeType(a) {
|
|
25
58
|
return types_1.transportModeSchema.safeParse(a).success;
|
|
@@ -5,6 +5,6 @@ type RefundAndTravelGuaranteeFormsProps = {
|
|
|
5
5
|
state: StateFrom<typeof refundStateMachine>;
|
|
6
6
|
send: (event: typeof RefundFormEvents) => void;
|
|
7
7
|
};
|
|
8
|
-
export declare const RefundAndTravelGuaranteeForms: ({ state, send, }: RefundAndTravelGuaranteeFormsProps) => import("react
|
|
8
|
+
export declare const RefundAndTravelGuaranteeForms: ({ state, send, }: RefundAndTravelGuaranteeFormsProps) => import("react").JSX.Element;
|
|
9
9
|
export default RefundAndTravelGuaranteeForms;
|
|
10
10
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/refund/forms/refund-and-travel-guarantee/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACnC,OAAO,EAEL,kBAAkB,EACnB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAUhD,KAAK,kCAAkC,GAAG;IACxC,KAAK,EAAE,SAAS,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAC5C,IAAI,EAAE,CAAC,KAAK,EAAE,OAAO,gBAAgB,KAAK,IAAI,CAAC;CAChD,CAAC;AAEF,eAAO,MAAM,6BAA6B,GAAI,kBAG3C,kCAAkC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/refund/forms/refund-and-travel-guarantee/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACnC,OAAO,EAEL,kBAAkB,EACnB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAUhD,KAAK,kCAAkC,GAAG;IACxC,KAAK,EAAE,SAAS,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAC5C,IAAI,EAAE,CAAC,KAAK,EAAE,OAAO,gBAAgB,KAAK,IAAI,CAAC;CAChD,CAAC;AAEF,eAAO,MAAM,6BAA6B,GAAI,kBAG3C,kCAAkC,gCAkHpC,CAAC;AAEF,eAAe,6BAA6B,CAAC"}
|
|
@@ -6,6 +6,6 @@ type RefundCarFormProps = {
|
|
|
6
6
|
};
|
|
7
7
|
send: (event: typeof RefundFormEvents) => void;
|
|
8
8
|
};
|
|
9
|
-
export declare const RefundCarForm: ({ state, send }: RefundCarFormProps) => import("react
|
|
9
|
+
export declare const RefundCarForm: ({ state, send }: RefundCarFormProps) => import("react").JSX.Element;
|
|
10
10
|
export default RefundCarForm;
|
|
11
11
|
//# sourceMappingURL=refundCarForm.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"refundCarForm.d.ts","sourceRoot":"","sources":["../../../../src/refund/forms/refund-and-travel-guarantee/refundCarForm.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAgB7D,KAAK,kBAAkB,GAAG;IACxB,KAAK,EAAE;QAAE,OAAO,EAAE,kBAAkB,CAAA;KAAE,CAAC;IACvC,IAAI,EAAE,CAAC,KAAK,EAAE,OAAO,gBAAgB,KAAK,IAAI,CAAC;CAChD,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,iBAAiB,kBAAkB,
|
|
1
|
+
{"version":3,"file":"refundCarForm.d.ts","sourceRoot":"","sources":["../../../../src/refund/forms/refund-and-travel-guarantee/refundCarForm.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAgB7D,KAAK,kBAAkB,GAAG;IACxB,KAAK,EAAE;QAAE,OAAO,EAAE,kBAAkB,CAAA;KAAE,CAAC;IACvC,IAAI,EAAE,CAAC,KAAK,EAAE,OAAO,gBAAgB,KAAK,IAAI,CAAC;CAChD,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,iBAAiB,kBAAkB,gCA8chE,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -6,6 +6,6 @@ type RefundTaxiFormProps = {
|
|
|
6
6
|
};
|
|
7
7
|
send: (event: typeof RefundFormEvents) => void;
|
|
8
8
|
};
|
|
9
|
-
export declare const RefundTaxiForm: ({ state, send }: RefundTaxiFormProps) => import("react
|
|
9
|
+
export declare const RefundTaxiForm: ({ state, send }: RefundTaxiFormProps) => import("react").JSX.Element;
|
|
10
10
|
export default RefundTaxiForm;
|
|
11
11
|
//# sourceMappingURL=refundTaxiForm.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"refundTaxiForm.d.ts","sourceRoot":"","sources":["../../../../src/refund/forms/refund-and-travel-guarantee/refundTaxiForm.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAgB7D,KAAK,mBAAmB,GAAG;IACzB,KAAK,EAAE;QAAE,OAAO,EAAE,kBAAkB,CAAA;KAAE,CAAC;IACvC,IAAI,EAAE,CAAC,KAAK,EAAE,OAAO,gBAAgB,KAAK,IAAI,CAAC;CAChD,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,iBAAiB,mBAAmB,
|
|
1
|
+
{"version":3,"file":"refundTaxiForm.d.ts","sourceRoot":"","sources":["../../../../src/refund/forms/refund-and-travel-guarantee/refundTaxiForm.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAgB7D,KAAK,mBAAmB,GAAG;IACzB,KAAK,EAAE;QAAE,OAAO,EAAE,kBAAkB,CAAA;KAAE,CAAC;IACvC,IAAI,EAAE,CAAC,KAAK,EAAE,OAAO,gBAAgB,KAAK,IAAI,CAAC;CAChD,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,iBAAiB,mBAAmB,gCAqblE,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -6,7 +6,7 @@ type AppTicketRefundProps = {
|
|
|
6
6
|
};
|
|
7
7
|
send: (event: typeof RefundFormEvents) => void;
|
|
8
8
|
};
|
|
9
|
-
export declare const AppTicketRefund: ({ state, send }: AppTicketRefundProps) => import("react
|
|
10
|
-
export default function AppTicketRefundContent({ state, send, }: AppTicketRefundProps): import("react
|
|
9
|
+
export declare const AppTicketRefund: ({ state, send }: AppTicketRefundProps) => import("react").JSX.Element;
|
|
10
|
+
export default function AppTicketRefundContent({ state, send, }: AppTicketRefundProps): import("react").JSX.Element;
|
|
11
11
|
export {};
|
|
12
12
|
//# sourceMappingURL=appTicketRefund.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"appTicketRefund.d.ts","sourceRoot":"","sources":["../../../../src/refund/forms/refund-ticket/appTicketRefund.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAkBhD,KAAK,oBAAoB,GAAG;IAC1B,KAAK,EAAE;QAAE,OAAO,EAAE,kBAAkB,CAAA;KAAE,CAAC;IACvC,IAAI,EAAE,CAAC,KAAK,EAAE,OAAO,gBAAgB,KAAK,IAAI,CAAC;CAChD,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,iBAAiB,oBAAoB,
|
|
1
|
+
{"version":3,"file":"appTicketRefund.d.ts","sourceRoot":"","sources":["../../../../src/refund/forms/refund-ticket/appTicketRefund.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAkBhD,KAAK,oBAAoB,GAAG;IAC1B,KAAK,EAAE;QAAE,OAAO,EAAE,kBAAkB,CAAA;KAAE,CAAC;IACvC,IAAI,EAAE,CAAC,KAAK,EAAE,OAAO,gBAAgB,KAAK,IAAI,CAAC;CAChD,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,iBAAiB,oBAAoB,gCAyDpE,CAAC;AAqQF,MAAM,CAAC,OAAO,UAAU,sBAAsB,CAAC,EAC7C,KAAK,EACL,IAAI,GACL,EAAE,oBAAoB,+BAWtB"}
|
|
@@ -5,6 +5,6 @@ type RefundTicketFormsProps = {
|
|
|
5
5
|
state: StateFrom<typeof refundStateMachine>;
|
|
6
6
|
send: (event: typeof RefundFormEvents) => void;
|
|
7
7
|
};
|
|
8
|
-
export declare const RefundTicketForms: ({ state, send }: RefundTicketFormsProps) => import("react
|
|
8
|
+
export declare const RefundTicketForms: ({ state, send }: RefundTicketFormsProps) => import("react").JSX.Element;
|
|
9
9
|
export default RefundTicketForms;
|
|
10
10
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/refund/forms/refund-ticket/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAUnC,OAAO,EAAE,kBAAkB,EAAoB,MAAM,yBAAyB,CAAC;AAC/E,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAIhD,KAAK,sBAAsB,GAAG;IAC5B,KAAK,EAAE,SAAS,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAC5C,IAAI,EAAE,CAAC,KAAK,EAAE,OAAO,gBAAgB,KAAK,IAAI,CAAC;CAChD,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,iBAAiB,sBAAsB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/refund/forms/refund-ticket/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAUnC,OAAO,EAAE,kBAAkB,EAAoB,MAAM,yBAAyB,CAAC;AAC/E,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAIhD,KAAK,sBAAsB,GAAG;IAC5B,KAAK,EAAE,SAAS,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAC5C,IAAI,EAAE,CAAC,KAAK,EAAE,OAAO,gBAAgB,KAAK,IAAI,CAAC;CAChD,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,iBAAiB,sBAAsB,gCAmIxE,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -6,6 +6,6 @@ type OtherTicketRefundProps = {
|
|
|
6
6
|
};
|
|
7
7
|
send: (event: typeof RefundFormEvents) => void;
|
|
8
8
|
};
|
|
9
|
-
export declare const OtherTicketRefund: ({ state, send }: OtherTicketRefundProps) => import("react
|
|
9
|
+
export declare const OtherTicketRefund: ({ state, send }: OtherTicketRefundProps) => import("react").JSX.Element;
|
|
10
10
|
export default OtherTicketRefund;
|
|
11
11
|
//# sourceMappingURL=otherTicketRefund.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"otherTicketRefund.d.ts","sourceRoot":"","sources":["../../../../src/refund/forms/refund-ticket/otherTicketRefund.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAahD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAO7D,KAAK,sBAAsB,GAAG;IAC5B,KAAK,EAAE;QAAE,OAAO,EAAE,kBAAkB,CAAA;KAAE,CAAC;IACvC,IAAI,EAAE,CAAC,KAAK,EAAE,OAAO,gBAAgB,KAAK,IAAI,CAAC;CAChD,CAAC;
|
|
1
|
+
{"version":3,"file":"otherTicketRefund.d.ts","sourceRoot":"","sources":["../../../../src/refund/forms/refund-ticket/otherTicketRefund.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAahD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAO7D,KAAK,sBAAsB,GAAG;IAC5B,KAAK,EAAE;QAAE,OAAO,EAAE,kBAAkB,CAAA;KAAE,CAAC;IACvC,IAAI,EAAE,CAAC,KAAK,EAAE,OAAO,gBAAgB,KAAK,IAAI,CAAC;CAChD,CAAC;AAmbF,eAAO,MAAM,iBAAiB,GAAI,iBAAiB,sBAAsB,gCAWxE,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -24,11 +24,7 @@ const RefundSection = ({ state, send }) => {
|
|
|
24
24
|
});
|
|
25
25
|
}, placeholder: t(PageText.Contact.input.ticketType.optionLabelRefund), options: ticketTypeOptions, isRequired: true, error: state.context?.errorMessages['ticketType']?.[0]
|
|
26
26
|
? t(state.context?.errorMessages['ticketType'][0])
|
|
27
|
-
: undefined })), (0, jsx_runtime_1.jsx)(components_1.Input, { id: "
|
|
28
|
-
type: 'ON_INPUT_CHANGE',
|
|
29
|
-
inputName: 'orderId',
|
|
30
|
-
value: e.target.value,
|
|
31
|
-
}) }), (0, jsx_runtime_1.jsx)(components_1.Input, { id: "travelCardNumber", label: t(PageText.Contact.input.travelCardNumber.label), type: "text", name: "travelCardNumber", value: state.context.travelCardNumber || '', errorMessage: state.context.errorMessages['travelCardNumber']?.[0], onChange: (e) => send({
|
|
27
|
+
: undefined })), (0, jsx_runtime_1.jsx)(components_1.Input, { id: "travelCardNumber", label: t(PageText.Contact.input.travelCardNumber.label), type: "text", name: "travelCardNumber", value: state.context.travelCardNumber || '', isRequired: true, errorMessage: state.context.errorMessages['travelCardNumber']?.[0], onChange: (e) => send({
|
|
32
28
|
type: 'ON_INPUT_CHANGE',
|
|
33
29
|
inputName: 'travelCardNumber',
|
|
34
30
|
value: e.target.value,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const ResidualValueOnTravelCard: ({}: {}) => import("react
|
|
1
|
+
export declare const ResidualValueOnTravelCard: ({}: {}) => import("react").JSX.Element;
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/refund/forms/residualValueOnTravelCard/index.tsx"],"names":[],"mappings":"AAMA,eAAO,MAAM,yBAAyB,GAAI,MAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/refund/forms/residualValueOnTravelCard/index.tsx"],"names":[],"mappings":"AAMA,eAAO,MAAM,yBAAyB,GAAI,MAAE,gCAyC3C,CAAC"}
|
package/lib/refund/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/refund/index.tsx"],"names":[],"mappings":"AAgBA,QAAA,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/refund/index.tsx"],"names":[],"mappings":"AAgBA,QAAA,MAAM,aAAa,mCA+HlB,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Next.js App Router API route handler for the departures endpoint.
|
|
3
|
+
* Hosts mount this at their chosen path (e.g. /api/contact/departures) and
|
|
4
|
+
* supply the GTFS agency ID and (optionally) the GCP project ID for BigQuery.
|
|
5
|
+
*/
|
|
6
|
+
import type { NextRequest } from 'next/server';
|
|
7
|
+
export type DeparturesRouteHandlerOptions = {
|
|
8
|
+
/** GTFS agency ID (the host's Entur authority ID) to scope the query to. */
|
|
9
|
+
agencyId: string;
|
|
10
|
+
/** GCP project ID for BigQuery. */
|
|
11
|
+
projectId: string;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* Creates a Next.js App Router API route handler for
|
|
15
|
+
* GET /api/contact/departures.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```ts
|
|
19
|
+
* import { createDeparturesRouteHandler } from '@mrfylke/contact-form/server';
|
|
20
|
+
* export const GET = createDeparturesRouteHandler({
|
|
21
|
+
* agencyId: 'INN:Authority:INN_ID',
|
|
22
|
+
* projectId: process.env.GOOGLE_CLOUD_PROJECT!,
|
|
23
|
+
* });
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
export declare function createDeparturesRouteHandler(options: DeparturesRouteHandlerOptions): (request: NextRequest) => Promise<Response>;
|
|
27
|
+
//# sourceMappingURL=departures-route-handler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"departures-route-handler.d.ts","sourceRoot":"","sources":["../../src/server/departures-route-handler.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AA0B/C,MAAM,MAAM,6BAA6B,GAAG;IAC1C,4EAA4E;IAC5E,QAAQ,EAAE,MAAM,CAAC;IACjB,mCAAmC;IACnC,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF;;;;;;;;;;;;GAYG;AAOH,wBAAgB,4BAA4B,CAC1C,OAAO,EAAE,6BAA6B,GACrC,CAAC,OAAO,EAAE,WAAW,KAAK,OAAO,CAAC,QAAQ,CAAC,CA6D7C"}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Next.js App Router API route handler for the departures endpoint.
|
|
4
|
+
* Hosts mount this at their chosen path (e.g. /api/contact/departures) and
|
|
5
|
+
* supply the GTFS agency ID and (optionally) the GCP project ID for BigQuery.
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.createDeparturesRouteHandler = createDeparturesRouteHandler;
|
|
9
|
+
const bigquery_1 = require("@google-cloud/bigquery");
|
|
10
|
+
const DEPARTURES_QUERY = `
|
|
11
|
+
SELECT DISTINCT
|
|
12
|
+
FORMAT_TIMESTAMP('%H:%M:%S', f.departure_time, 'Europe/Oslo') AS departure_time,
|
|
13
|
+
f.trip_id
|
|
14
|
+
FROM \`ent-data-sharing-ext-prd.timetable_gtfs.gtfs_last_recorded_ent_v1\` AS f
|
|
15
|
+
JOIN \`ent-data-sharing-ext-prd.timetable_gtfs.gtfs_last_recorded_ent_v1\` AS t
|
|
16
|
+
ON f.trip_id = t.trip_id
|
|
17
|
+
AND f.operating_date = t.operating_date
|
|
18
|
+
AND f.stop_sequence < t.stop_sequence
|
|
19
|
+
WHERE f.operating_date = CAST(@date AS DATE)
|
|
20
|
+
AND f.agency_id = @agencyId
|
|
21
|
+
AND f.route_id = @lineId
|
|
22
|
+
AND f.stop_id = @fromStopId
|
|
23
|
+
AND t.parent_station = (
|
|
24
|
+
SELECT parent_station
|
|
25
|
+
FROM \`ent-data-sharing-ext-prd.timetable_gtfs.gtfs_last_recorded_ent_v1\`
|
|
26
|
+
WHERE operating_date = CAST(@date AS DATE)
|
|
27
|
+
AND stop_id = @toStopId
|
|
28
|
+
LIMIT 1
|
|
29
|
+
)
|
|
30
|
+
ORDER BY departure_time ASC
|
|
31
|
+
LIMIT 1000
|
|
32
|
+
`;
|
|
33
|
+
/**
|
|
34
|
+
* Creates a Next.js App Router API route handler for
|
|
35
|
+
* GET /api/contact/departures.
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* ```ts
|
|
39
|
+
* import { createDeparturesRouteHandler } from '@mrfylke/contact-form/server';
|
|
40
|
+
* export const GET = createDeparturesRouteHandler({
|
|
41
|
+
* agencyId: 'INN:Authority:INN_ID',
|
|
42
|
+
* projectId: process.env.GOOGLE_CLOUD_PROJECT!,
|
|
43
|
+
* });
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
// Deliberately returns a plain Response, built with Response.json(), rather
|
|
47
|
+
// than NextResponse from 'next/server': Turbopack strips a runtime
|
|
48
|
+
// `require("next/server")` from this package's compiled CJS output when
|
|
49
|
+
// consumed as a symlinked monorepo package
|
|
50
|
+
// (https://github.com/vercel/next.js/issues/74062), leaving NextResponse
|
|
51
|
+
// undefined at request time.
|
|
52
|
+
function createDeparturesRouteHandler(options) {
|
|
53
|
+
return async (request) => {
|
|
54
|
+
const date = request.nextUrl.searchParams.get('date');
|
|
55
|
+
const lineId = request.nextUrl.searchParams.get('lineId');
|
|
56
|
+
const fromStopId = request.nextUrl.searchParams.get('fromStopId');
|
|
57
|
+
const toStopId = request.nextUrl.searchParams.get('toStopId');
|
|
58
|
+
if (!date || !lineId || !fromStopId || !toStopId) {
|
|
59
|
+
return Response.json({
|
|
60
|
+
message: 'Missing required params: date, lineId, fromStopId, toStopId',
|
|
61
|
+
}, { status: 400 });
|
|
62
|
+
}
|
|
63
|
+
if (!/^\d{4}-\d{2}-\d{2}$/.test(date)) {
|
|
64
|
+
return Response.json({ message: 'Invalid date format, expected YYYY-MM-DD' }, { status: 400 });
|
|
65
|
+
}
|
|
66
|
+
if (!options.projectId) {
|
|
67
|
+
console.error('[contact-form] GOOGLE_CLOUD_PROJECT is not set');
|
|
68
|
+
return Response.json({ message: 'Failed to fetch departures' }, { status: 500 });
|
|
69
|
+
}
|
|
70
|
+
try {
|
|
71
|
+
const bigquery = new bigquery_1.BigQuery({ projectId: options.projectId });
|
|
72
|
+
const [rows] = await bigquery.query({
|
|
73
|
+
query: DEPARTURES_QUERY,
|
|
74
|
+
params: {
|
|
75
|
+
date,
|
|
76
|
+
agencyId: options.agencyId,
|
|
77
|
+
lineId,
|
|
78
|
+
fromStopId,
|
|
79
|
+
toStopId,
|
|
80
|
+
},
|
|
81
|
+
});
|
|
82
|
+
const departures = rows.map((row) => ({
|
|
83
|
+
departureTime: row.departure_time,
|
|
84
|
+
tripId: row.trip_id,
|
|
85
|
+
}));
|
|
86
|
+
return Response.json({ departures });
|
|
87
|
+
}
|
|
88
|
+
catch (error) {
|
|
89
|
+
console.error('[contact-form] BigQuery departures error:', error);
|
|
90
|
+
return Response.json({ message: 'Failed to fetch departures' }, { status: 500 });
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
}
|
package/lib/server/index.d.ts
CHANGED
|
@@ -7,4 +7,5 @@
|
|
|
7
7
|
export { getLines } from './journey-planner';
|
|
8
8
|
export { getEnturAuthorityId, EnturAuthority, } from './journey-planner/authority';
|
|
9
9
|
export { createLinesRouteHandler, type LinesRouteHandlerOptions, } from './lines-route-handler';
|
|
10
|
+
export { createDeparturesRouteHandler, type DeparturesRouteHandlerOptions, } from './departures-route-handler';
|
|
10
11
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/server/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EACL,mBAAmB,EACnB,cAAc,GACf,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,uBAAuB,EACvB,KAAK,wBAAwB,GAC9B,MAAM,uBAAuB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/server/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EACL,mBAAmB,EACnB,cAAc,GACf,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,uBAAuB,EACvB,KAAK,wBAAwB,GAC9B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,4BAA4B,EAC5B,KAAK,6BAA6B,GACnC,MAAM,4BAA4B,CAAC"}
|
package/lib/server/index.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* API route handlers or server components.
|
|
7
7
|
*/
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.createLinesRouteHandler = exports.EnturAuthority = exports.getEnturAuthorityId = exports.getLines = void 0;
|
|
9
|
+
exports.createDeparturesRouteHandler = exports.createLinesRouteHandler = exports.EnturAuthority = exports.getEnturAuthorityId = exports.getLines = void 0;
|
|
10
10
|
var journey_planner_1 = require("./journey-planner");
|
|
11
11
|
Object.defineProperty(exports, "getLines", { enumerable: true, get: function () { return journey_planner_1.getLines; } });
|
|
12
12
|
var authority_1 = require("./journey-planner/authority");
|
|
@@ -14,3 +14,5 @@ Object.defineProperty(exports, "getEnturAuthorityId", { enumerable: true, get: f
|
|
|
14
14
|
Object.defineProperty(exports, "EnturAuthority", { enumerable: true, get: function () { return authority_1.EnturAuthority; } });
|
|
15
15
|
var lines_route_handler_1 = require("./lines-route-handler");
|
|
16
16
|
Object.defineProperty(exports, "createLinesRouteHandler", { enumerable: true, get: function () { return lines_route_handler_1.createLinesRouteHandler; } });
|
|
17
|
+
var departures_route_handler_1 = require("./departures-route-handler");
|
|
18
|
+
Object.defineProperty(exports, "createDeparturesRouteHandler", { enumerable: true, get: function () { return departures_route_handler_1.createDeparturesRouteHandler; } });
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* The package reads the Entur authority ID from:
|
|
5
5
|
* 1. Environment variable: ENTUR_AUTHORITY_ID (or NEXT_PUBLIC_ENTUR_AUTHORITY_ID)
|
|
6
|
-
* 2.
|
|
6
|
+
* 2. An optional fallback passed in by the caller
|
|
7
7
|
*
|
|
8
8
|
* Host apps should set ENTUR_AUTHORITY_ID in their .env file.
|
|
9
9
|
*/
|
|
@@ -18,7 +18,7 @@ export declare enum EnturAuthority {
|
|
|
18
18
|
/**
|
|
19
19
|
* Get the Entur authority ID from environment variable or fallback.
|
|
20
20
|
*
|
|
21
|
-
* @param fallbackAuthorityId - Optional fallback
|
|
21
|
+
* @param fallbackAuthorityId - Optional fallback provided by the caller
|
|
22
22
|
* @returns The authority ID string
|
|
23
23
|
* @throws Error if neither env var nor fallback is provided
|
|
24
24
|
*/
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*
|
|
5
5
|
* The package reads the Entur authority ID from:
|
|
6
6
|
* 1. Environment variable: ENTUR_AUTHORITY_ID (or NEXT_PUBLIC_ENTUR_AUTHORITY_ID)
|
|
7
|
-
* 2.
|
|
7
|
+
* 2. An optional fallback passed in by the caller
|
|
8
8
|
*
|
|
9
9
|
* Host apps should set ENTUR_AUTHORITY_ID in their .env file.
|
|
10
10
|
*/
|
|
@@ -24,7 +24,7 @@ let cachedAuthorityId = null;
|
|
|
24
24
|
/**
|
|
25
25
|
* Get the Entur authority ID from environment variable or fallback.
|
|
26
26
|
*
|
|
27
|
-
* @param fallbackAuthorityId - Optional fallback
|
|
27
|
+
* @param fallbackAuthorityId - Optional fallback provided by the caller
|
|
28
28
|
* @returns The authority ID string
|
|
29
29
|
* @throws Error if neither env var nor fallback is provided
|
|
30
30
|
*/
|
|
@@ -44,5 +44,5 @@ function getEnturAuthorityId(fallbackAuthorityId) {
|
|
|
44
44
|
}
|
|
45
45
|
throw new Error('ENTUR_AUTHORITY_ID environment variable must be set. ' +
|
|
46
46
|
'Set it in your .env file (e.g., ENTUR_AUTHORITY_ID=ATB:Authority:2) ' +
|
|
47
|
-
'or provide
|
|
47
|
+
'or provide a fallback authority ID.');
|
|
48
48
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/server/journey-planner/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,IAAI,EAAe,MAAM,cAAc,CAAC;AAgBjD;;;;;;;GAOG;AACH,wBAAsB,QAAQ,CAAC,mBAAmB,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,EAAE,CAAC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/server/journey-planner/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,IAAI,EAAe,MAAM,cAAc,CAAC;AAgBjD;;;;;;;GAOG;AACH,wBAAsB,QAAQ,CAAC,mBAAmB,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,EAAE,CAAC,CA8D5E"}
|