@opentripplanner/types 9.0.0-alpha.2 → 9.0.0-alpha.4
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/esm/index.js +17 -2
- package/esm/index.js.map +1 -1
- package/lib/deprecated.d.ts +0 -1
- package/lib/deprecated.d.ts.map +1 -1
- package/lib/deprecated.js +4 -1
- package/lib/deprecated.js.map +1 -1
- package/lib/index.d.ts +76 -21
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +177 -6
- package/lib/index.js.map +1 -1
- package/lib/otp2/index.js +14 -15
- package/lib/otp2/index.js.map +1 -1
- package/lib/otp2/rentalVehicleTypes.js +4 -2
- package/lib/otp2/rentalVehicleTypes.js.map +1 -1
- package/package.json +8 -2
- package/src/index.ts +102 -25
- package/tsconfig.tsbuildinfo +1 -1
package/esm/index.js
CHANGED
|
@@ -101,6 +101,10 @@
|
|
|
101
101
|
* from a transit index API.
|
|
102
102
|
*/
|
|
103
103
|
|
|
104
|
+
/**
|
|
105
|
+
* Transit modes that correspond with OTP GraphQL `TransitMode`.
|
|
106
|
+
*/
|
|
107
|
+
|
|
104
108
|
/**
|
|
105
109
|
* Depending on the geocoder that is used, more properties than just the `label`
|
|
106
110
|
* property might be provided by the geocoder. For example, with the Pelias
|
|
@@ -139,8 +143,7 @@ export var ModeSettingTypes = {
|
|
|
139
143
|
};
|
|
140
144
|
|
|
141
145
|
/**
|
|
142
|
-
*
|
|
143
|
-
* Could be anything from walk, bike (qualifier: rent) to transit, tram, or bus.
|
|
146
|
+
* A mode selected by the UI, with an optional PlanConnection input for a query.
|
|
144
147
|
*/
|
|
145
148
|
|
|
146
149
|
/**
|
|
@@ -160,4 +163,16 @@ export var ModeSettingTypes = {
|
|
|
160
163
|
/**
|
|
161
164
|
* Options for units of mass (used in CO₂ calculation config)
|
|
162
165
|
*/
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* Options for Heading for PrintableItinerary and ItineraryBody
|
|
169
|
+
*/
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* Options for Heading for PrintableItinerary
|
|
173
|
+
*/
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* LegHeadingProp type for headingAs
|
|
177
|
+
*/
|
|
163
178
|
//# sourceMappingURL=index.js.map
|
package/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["ModeSettingTypes","CHECKBOX","DROPDOWN","SLIDER"],"sources":["../src/index.ts"],"sourcesContent":["/**\n * This file contains type definitions for types\n * used across more than one package in this repo.\n */\n\nimport React, { FunctionComponent, ReactElement } from \"react\";\nimport { IntlShape } from \"react-intl\";\nimport { StyledIcon } from \"@styled-icons/styled-icon\";\nimport { ConfiguredModes } from \"./deprecated\";\n\ntype ZeroOrOne = 0 | 1;\n\n/**\n * Shape for a transportation company.\n */\nexport type Company = {\n id: string;\n label: string;\n /** a comma-separated string listing the modes that this company has */\n modes: string;\n /**\n * tells OTP UI to ignore the API provided station names\n * and instead use generic ones.\n */\n overridePlaceNames?: boolean;\n};\n\n/**\n * Describes some options to help display data about a transit agency that is\n * configured in an opentripplanner instance.\n */\nexport type TransitOperator = {\n agencyId: string;\n defaultRouteColor?: string;\n defaultRouteTextColor?: string;\n feedId: string;\n logo?: string;\n longNameSplitter?: string;\n name?: string;\n order?: number;\n};\n\n/**\n * Describes a map entity to be rendered.\n */\nexport type LayerEntity = {\n id: string;\n lat: number;\n lon: number;\n};\n\nexport type SymbolComponentBaseProps = {\n entity: LayerEntity;\n zoom: number;\n};\n\n/**\n * The symbol-representing component to draw; with the signature\n * ({ entity: object; zoom: number }) => Element\n * where entity must have an id attribute and contain coordinates information for placement on the map.\n */\nexport type SymbolComponent = React.ComponentType<SymbolComponentBaseProps>;\n\n/**\n * Defines which symbol to render based on a zoom level; and optionally by entity type.\n * (Only one symbol is rendered for any zoom level.)\n */\nexport type ZoomBasedSymbol = {\n /**\n * A function with the signature (entity: object) => string\n * that determines the type of an entity.\n * symbolByType and getType must be either be both specified or both omitted.\n */\n getType?: (entity: LayerEntity) => string;\n /**\n * The zoom level beginning at which the marker is drawn;\n * unless another marker with a higher minZoom is met.\n */\n minZoom: number;\n /**\n * The symbol-representing component to draw; with the signature\n * ({ entity: object; zoom: number }) => Element\n * where entity must have an id attribute and contain coordinates information for placement on the map.\n */\n symbol: SymbolComponent;\n /**\n * The symbol-representing component to draw for each entity type;\n * with the same signature as symbol. If a type returned by getType() is not listed;\n * then the component defined in the 'symbol' attribute will be rendered by default.\n * symbolByType and getType must be either be both specified or both omitted.\n */\n symbolByType?: {\n [name: string]: SymbolComponent;\n };\n};\n\n/**\n * Describes the objects from the real-time vehicle service.\n */\nexport type TransitVehicle = {\n routeColor?: string;\n routeLongName?: string;\n routeShortName?: string;\n routeType?: string;\n\n lastUpdated?: number;\n reportDate?: string;\n seconds?: number;\n status?: string;\n\n blockId?: string;\n stopId?: string;\n stopSequence?: number;\n tripId?: string;\n vehicleId?: string;\n\n heading?: number;\n lat?: number;\n lon?: number;\n};\n\nexport type OTPTransitVehicle = TransitVehicle & {\n label?: string;\n nextStopName?: string;\n speed?: number;\n stopStatus?: string; // TODO: Make enum\n};\n\nexport type VehicleRentalMapOverlaySymbol =\n | {\n dockStrokeColor?: string;\n fillColor?: string;\n minZoom: number;\n pixels?: number;\n type: string;\n }\n | ZoomBasedSymbol;\n\nexport type UnitSystem = \"metric\" | \"imperial\";\n\n/**\n * Represents the expected configuration of the webapp.\n *\n * Note: this is an incomplete type mapping.\n */\nexport type Config = {\n companies?: Company[];\n dateTime: {\n timeFormat?: string;\n dateFormat?: string;\n /** @deprecated */\n longDateFormat?: string;\n };\n formatDuration?: (\n duration: number,\n intl: IntlShape,\n includeSeconds: boolean\n ) => string;\n homeTimezone: string;\n /** @deprecated */\n modes?: ConfiguredModes;\n // TODO: add full typing\n map?: {\n overlays?: {\n /**\n * The applicable companies this overlay covers. Only applicable in\n * certain vehicle rental overlays.\n */\n companies?: string[];\n name: string;\n /**\n * The applicable map symbols. Only applicable in vehicle rental\n * overlays.\n */\n mapSymbols?: VehicleRentalMapOverlaySymbol[];\n /**\n * Only used during park and ride queries. This will filter out P&Rs\n * that are further than the specified number of meters from a transit\n * stop.\n */\n maxTransitDistance?: number;\n /**\n * The applicable modes this overlay covers. Only applicable in certain\n * vehicle rental overlays.\n */\n modes?: string[];\n /**\n * The type of overlay. Currently valid values include:\n *\n * \"bike-rental\"; \"car-rental\"; \"micromobility-rental\"; \"park-and-ride\";\n * \"stops\"; \"tile\"\n */\n type: string;\n }[];\n };\n transitOperators?: TransitOperator[];\n /**\n * The preferred unit system to use, either metric or imperial.\n * The default is 'imperial' so that existing visuals with distances in feet/miles don't break.\n */\n units?: UnitSystem;\n};\n\nexport type EncodedPolyline = {\n length: number;\n points: string;\n};\n\nexport type ElevationProfileComponent = {\n distance: number;\n elevation: number;\n};\n\nexport type ElevationData = {\n first: number;\n second: number;\n}[];\n\nexport type Alert = {\n alertHeaderText?: string;\n alertDescriptionText?: string;\n alertUrl?: string;\n effectiveStartDate?: number;\n /** Returned by OTP2 graphql queries, but not by OTP1 */\n id?: string;\n};\n\n/**\n * Represents steps in a leg in an itinerary of an OTP plan response. These are\n * only for non-transit modes.\n * See documentation here: http://otp-docs.ibi-transit.com/api/json_WalkStep.html\n */\nexport type Step = {\n absoluteDirection?: string;\n alerts?: Alert[];\n area: boolean;\n bogusName: boolean;\n distance: number;\n elevation?: ElevationData;\n elevationProfile?: ElevationProfileComponent[];\n lat: number;\n lon: number;\n relativeDirection: string;\n stayOn: boolean;\n streetName: string;\n};\n\n/**\n * Describe an origin, destination, or intermediate location in an itinerary.\n */\nexport type Place = {\n address?: string;\n arrival?: number;\n bikeShareId?: string;\n departure?: number;\n lat: number;\n lon: number;\n name: string;\n networks?: string[];\n rentalVehicle?: { network: string };\n vehicleRentalStation?: { rentalNetwork: { networkId: string } };\n stop?: Stop;\n /**\n * @deprecated Only for OTP1 support, removal is immenent\n */\n stopCode?: string;\n /**\n * @deprecated Only for OTP1 support, removal is immenent\n */\n stopId?: string;\n /**\n * @deprecated Only for OTP1 support, removal is immenent\n */\n stopIndex?: number;\n /**\n * @deprecated Only for OTP1 support, removal is immenent\n */\n stopSequence?: number;\n vertexType: string;\n zoneId?: string;\n};\n\n/**\n * Holds contact info and lead time for flex transit bookings.\n * The information is optional and is for reminding the end-user\n * of any advance reservations required prior to travel.\n */\nexport type FlexBookingInfo = {\n contactInfo?: {\n phoneNumber?: string;\n bookingUrl?: string;\n infoUrl?: string;\n };\n latestBookingTime?: {\n daysPrior: number;\n };\n message?: string;\n};\n\n/** Dropoff-specific flex booking information */\ntype FlexDropOffBookingInfo = {\n dropOffMessage?: string;\n} & FlexBookingInfo;\n\n/** Pickup-specific flex booking information */\ntype FlexPickupBookingInfo = {\n pickupMessage?: string;\n} & FlexBookingInfo;\n\n/** Basic transit route attributes */\ninterface BasicRouteInfo {\n color?: string;\n id: string;\n longName?: string;\n shortName: string;\n textColor?: string;\n // TS TODO: route type enum\n type?: number;\n}\n\n/** Transit route attributes from itinerary legs */\nexport type LegRoute = BasicRouteInfo & {\n alerts?: Alert[];\n};\n\n/**\n * Represents a leg in an itinerary of an OTP plan response. Each leg represents\n * a portion of the overall itinerary that is done until either reaching the\n * destination or transitioning to another mode of travel. See OTP webservice\n * documentation here:\n * http://otp-docs.ibi-transit.com/api/json_Leg.html\n */\nexport type Leg = {\n accessibilityScore?: number;\n agencyBrandingUrl?: string;\n agencyId?: string;\n agencyName?: string;\n agencyTimeZoneOffset: number;\n agencyUrl?: string;\n alerts?: Alert[];\n boardRule?: string;\n alightRule?: string;\n arrivalDelay: number;\n averageWait?: number;\n departureDelay: number;\n distance: number;\n dropOffBookingInfo?: FlexDropOffBookingInfo;\n duration: number;\n endTime: number;\n fareProducts?: { id: string; product: FareProduct }[];\n from: Place;\n headsign?: string;\n id?: string;\n interlineWithPreviousLeg: boolean;\n intermediateStops: Place[];\n interStopGeometry?: EncodedPolyline[];\n legGeometry: EncodedPolyline;\n mode: string;\n pathway: boolean;\n pickupBookingInfo?: FlexPickupBookingInfo;\n rideHailingEstimate?: {\n provider: {\n id: string;\n };\n arrival: string;\n minPrice: TemporaryTNCPriceType;\n maxPrice: TemporaryTNCPriceType;\n productName?: string;\n };\n realTime: boolean;\n rentedBike: boolean;\n rentedCar: boolean;\n rentedVehicle: boolean;\n route?: string | LegRoute;\n routeColor?: string;\n routeId?: string;\n routeLongName?: string;\n routeShortName?: string;\n routeTextColor?: string;\n routeType?: number;\n serviceDate?: string;\n startTime: number | string;\n steps: Step[];\n // Abridged version of what OTP returns\n stopCalls?: {\n stopLocation?: {\n __typename: \"Stop\" | \"Location\" | \"LocationGroup\";\n };\n }[];\n to: Place;\n transitLeg: boolean;\n trip?: {\n arrivalStoptime?: TripStopTime;\n departureStoptime?: TripStopTime;\n gtfsId?: string;\n id: string;\n tripHeadsign?: string;\n };\n tripBlockId?: string;\n tripId?: string;\n walkingBike?: boolean;\n};\n\ntype TripStopTime = {\n stopPosition: number;\n stop: {\n gtfsId: string;\n id: string;\n };\n};\n\ntype TemporaryTNCPriceType = {\n currency: {\n code: string;\n };\n amount: number;\n};\n\nexport type Currency = {\n code: string;\n digits: number;\n};\n\n/**\n * Describes the cost of an itinerary leg.\n */\nexport type Money = {\n amount: number;\n currency: {\n code: string;\n digits: number;\n };\n};\n\n/**\n * Represents an itinerary of an OTP plan response. See detailed documentation\n * in OTP webservice documentation here:\n * http://otp-docs.ibi-transit.com/api/json_Itinerary.html\n */\nexport type Itinerary = {\n co2?: number;\n co2VsBaseline?: number;\n duration: number;\n elevationGained: number;\n elevationLost: number;\n endTime: number;\n legs: Leg[];\n startTime: number;\n tooSloped?: boolean;\n transfers: number;\n transitTime: number;\n waitingTime: number;\n walkDistance: number;\n walkLimitExceeded: boolean;\n walkTime: number;\n};\n\n/**\n * In many places all we need from the Itinerary is the legs,\n * this type makes all the other types optional except legs.\n */\nexport type ItineraryOnlyLegsRequired = Partial<Itinerary> &\n Pick<Itinerary, \"legs\">;\n\nexport type ElevationProfile = {\n maxElev: number;\n minElev: number;\n points: number[];\n traversed: number;\n gain: number;\n loss: number;\n};\n\n/**\n * Used to model a location that is used in planning a trip.\n */\nexport type Location = {\n lat: number;\n lon: number;\n name?: string;\n /**\n * This is only used location that a user has saved. Can be either:\n * One of: 'home', 'work', 'stop' or 'recent'\n */\n type?: \"home\" | \"work\" | \"stop\" | \"recent\" | string;\n category?: string;\n\n /**\n * This represents the last time that this location was selected in a\n * search\n */\n timestamp?: number;\n\n /* Sometimes used for displaying subinfo */\n main?: string;\n secondary?: string;\n};\n\n/**\n * Alias for a commonly used basic type\n */\nexport type LatLngArray = [number, number];\n\n/**\n * Describes a transit stop entity to be rendered on the map.\n */\nexport type StopLayerStop = LayerEntity & {\n name: string;\n};\n\nexport type StopEventHandler = (stop: Stop | { stopId: string }) => void;\n\n/**\n * This models data about a stop and it's associated routes that is obtained\n * from a transit index API.\n */\nexport type Stop = {\n /**\n * The stop code if the stop has one\n */\n code?: string;\n color?: string;\n dist?: number;\n geometries?: { geoJson?: GeoJSON.GeometryObject };\n gtfsId: string;\n id: string;\n lat?: number;\n lon?: number;\n name: string;\n routes?: Route[];\n};\n\nexport type Agency = {\n id: string;\n name?: string;\n url?: string;\n timezone?: string;\n lang?: string;\n phone?: string;\n fareUrl?: string;\n};\nexport type Route = BasicRouteInfo & {\n agency: Agency;\n agencyId?: string | number;\n agencyName?: string | number;\n // TODO: Add support for enum values, see /packages/core-utils/src/otpSchema.json#L1289.\n bikesAllowed?: ZeroOrOne;\n eligibilityRestricted?: ZeroOrOne;\n mode?: string;\n routeBikesAllowed?: ZeroOrOne;\n sortOrder: number;\n sortOrderSet: boolean;\n};\n\nexport type TransitivePlace = {\n place_lat?: number;\n place_lon?: number;\n place_name?: string;\n placeId?: string;\n type: string;\n};\nexport type TransitiveJourney = {\n journey_id: string;\n journey_name: string;\n segments: {\n arc?: boolean;\n from: TransitivePlace;\n patterns?: {\n pattern_id: string;\n from_stop_index: number;\n to_stop_index: number;\n }[];\n streetEdges: number[];\n to: TransitivePlace;\n type: string;\n }[];\n};\nexport type TransitivePattern = {\n pattern_id: string;\n pattern_name: string;\n route_id: string;\n stops: {\n geometry?: string;\n stop_id: string;\n }[];\n};\nexport type TransitiveRoute = {\n agency_id: string;\n route_color?: string;\n route_id: string;\n route_long_name: string;\n route_short_name: string;\n route_text_color?: string;\n route_type: number;\n};\nexport type TransitiveStop = {\n stop_id: string;\n stop_name: string;\n stop_lat: number;\n stop_lon: number;\n};\n\nexport type TransitiveStreetEdge = {\n edge_id: number;\n geometry: EncodedPolyline;\n};\n\nexport type TransitiveData = {\n journeys: TransitiveJourney[];\n patterns: TransitivePattern[];\n places: TransitivePlace[];\n routes: TransitiveRoute[];\n stops: TransitiveStop[];\n streetEdges: TransitiveStreetEdge[];\n};\n\nexport type Station = {\n bikesAvailable?: number;\n id: string;\n isFloatingBike?: boolean;\n isFloatingCar?: boolean;\n isFloatingVehicle?: boolean;\n name?: string;\n networks: string[];\n spacesAvailable?: number;\n x: number;\n y: number;\n};\n\nexport type TileLayerStation = {\n bikesAvailable?: number;\n id: string;\n isFloatingBike?: boolean;\n isFloatingCar?: boolean;\n isFloatingVehicle?: boolean;\n lat: number;\n lon: number;\n name?: string;\n network?: string;\n spacesAvailable?: number;\n vehiclesAvailable?: number;\n};\n\n/**\n * Depending on the geocoder that is used, more properties than just the `label`\n * property might be provided by the geocoder. For example, with the Pelias\n * geocoder, properties such as `id`, `layer`, `source` are also included.\n */\nexport type GeocodedFeature = {\n geometry: {\n coordinates: LatLngArray;\n type: string;\n };\n properties: {\n label: string;\n layer?: string;\n source?: string;\n };\n};\n\nexport type TncFare = {\n currencyCode: string;\n maxTNCFare: number;\n minTNCFare: number;\n};\n\nexport type UserPosition = {\n coords?: {\n latitude: number;\n longitude: number;\n };\n error?: { message: string } | string;\n fetching?: boolean;\n};\n\n/**\n * Describes a user location such as \"home\", \"work\" etc.\n */\nexport interface UserLocation extends Location {\n icon?: string;\n id?: string;\n}\n\n/**\n * Associates a location with a type string.\n */\nexport interface UserLocationAndType {\n location: UserLocation;\n type: string;\n}\n\n/**\n * Parameters for \"clear location\" event handlers.\n */\nexport interface ClearLocationArg {\n locationType: string;\n}\n\n/**\n * Parameters for location actions/event handlers.\n */\nexport interface MapLocationActionArg {\n location: UserLocation;\n locationType: string;\n reverseGeocode?: boolean;\n}\n\n/**\n * Supports leg icons for itinerary body and printable itinerary.\n */\nexport type LegIconComponent = FunctionComponent<{\n leg: Leg;\n title?: string;\n width?: string;\n}>;\n\nexport type ConfiguredCompany = {\n /**\n * The id of the company. This is typically in all-caps.\n */\n id: string;\n /**\n * A human readable text value that can be displayed to users.\n */\n label: string;\n /**\n * A comma-separated list of applicable modes of travel that the company\n * offers.\n */\n modes: string;\n};\n\n/**\n * Supports displaying accessibility ratings as a set of thresholds\n * associated with an icon or text.\n */\nexport type GradationMap = Record<\n number,\n { color: string; icon?: ReactElement; text?: string }\n>;\n\nexport const ModeSettingTypes = {\n CHECKBOX: \"CHECKBOX\",\n DROPDOWN: \"DROPDOWN\",\n SLIDER: \"SLIDER\"\n};\n\nexport type DropdownOptions = {\n default?: string;\n label: string;\n options: {\n text: string;\n value: string;\n addTransportMode?: TransportMode;\n }[];\n type: \"DROPDOWN\";\n value?: string;\n};\n\nexport type SliderOptions = {\n default?: number;\n high: number;\n inverseKey?: string;\n label: string;\n labelHigh: string;\n labelLow: string;\n low: number;\n step: number;\n type: \"SLIDER\";\n value?: number;\n};\n\nexport type CheckboxOptions = {\n // This transport mode should match an OTP transport mode\n addTransportMode?: TransportMode | TransportMode[];\n default?: boolean;\n label: string;\n type: \"CHECKBOX\";\n truthValue?: boolean | string | number;\n falseValue?: boolean | string | number;\n value?: boolean;\n};\n\nexport type TransitSubmodeCheckboxOption = {\n // This transport mode should match an OTP transport mode\n addTransportMode: TransportMode;\n default?: boolean;\n label: string;\n // We might want to specify a secondary, \"override\" mode to this checkbox.\n // This can be used to generate a list of banned routes that have a matching mode.\n overrideMode?: string;\n type: \"SUBMODE\";\n value?: boolean;\n};\n\nexport type ModeSettingBase = {\n applicableMode: string;\n iconName?: string;\n icon?: JSX.Element;\n key: string;\n};\n\nexport type ModeSetting = (\n | CheckboxOptions\n | SliderOptions\n | DropdownOptions\n | TransitSubmodeCheckboxOption\n) &\n ModeSettingBase;\nexport type ModeSettingValues = Record<string, number | string | boolean>;\n\n/**\n * TransportModes correspond with the OTP GraphQL TransportMode.\n * Could be anything from walk, bike (qualifier: rent) to transit, tram, or bus.\n */\nexport type TransportMode = {\n mode: string;\n qualifier?: string;\n};\n\n/**\n * This is a combination of transportation modes,\n * with a label to describe them. These are designed\n * to appear in the mode selector as discrete options.\n */\nexport type ModeButtonDefinition = {\n enabled?: boolean; // User has enabled this mode\n Icon: StyledIcon | React.ComponentType; // From iconName (below)\n iconName: string; // From config\n key: string; // From config\n label: string; // From config\n modes?: TransportMode[]; // This comes from config\n modeSettings?: ModeSetting[]; // From OTP definitions + config\n};\n\n/**\n * Definition for a fare product used to pay the fare for a leg in a transit journey\n */\nexport type FareProduct = {\n __typename: string;\n id: string;\n medium?: {\n id: string;\n name: string;\n };\n name: string;\n // Fare products may not have a price if they don't implement a FareProduct subclass.\n price?: Money;\n riderCategory?: {\n id: string;\n name: string;\n };\n};\n\n/**\n * This fare product is designed to represent the fare product applied to a leg.\n */\nexport type AppliedFareProduct = FareProduct & {\n legPrice: Money;\n};\n\nexport type FareProductSelector = {\n mediumId?: string;\n riderCategoryId?: string;\n};\n\n/**\n * Options for units of mass (used in CO₂ calculation config)\n */\nexport type MassUnitOption = \"ounce\" | \"kilogram\" | \"pound\" | \"gram\";\n"],"mappings":"AAAA;AACA;AACA;AACA;;AASA;AACA;AACA;;AAaA;AACA;AACA;AACA;;AAYA;AACA;AACA;;AAYA;AACA;AACA;AACA;AACA;;AAGA;AACA;AACA;AACA;;AA8BA;AACA;AACA;;AA0CA;AACA;AACA;AACA;AACA;;AAmFA;AACA;AACA;AACA;AACA;;AAgBA;AACA;AACA;;AAiCA;AACA;AACA;AACA;AACA;;AAaA;;AAKA;;AAKA;;AAWA;;AAKA;AACA;AACA;AACA;AACA;AACA;AACA;;AA4FA;AACA;AACA;;AASA;AACA;AACA;AACA;AACA;;AAmBA;AACA;AACA;AACA;;AAaA;AACA;AACA;;AAuBA;AACA;AACA;;AAGA;AACA;AACA;;AAOA;AACA;AACA;AACA;;AAgIA;AACA;AACA;AACA;AACA;;AA4BA;AACA;AACA;;AAMA;AACA;AACA;;AAMA;AACA;AACA;;AAKA;AACA;AACA;;AAOA;AACA;AACA;;AAuBA;AACA;AACA;AACA;;AAMA,OAAO,IAAMA,gBAAgB,GAAG;EAC9BC,QAAQ,EAAE,UAAU;EACpBC,QAAQ,EAAE,UAAU;EACpBC,MAAM,EAAE;AACV,CAAC;;AAkED;AACA;AACA;AACA;;AAMA;AACA;AACA;AACA;AACA;;AAWA;AACA;AACA;;AAiBA;AACA;AACA;;AAUA;AACA;AACA","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"index.js","names":["ModeSettingTypes","CHECKBOX","DROPDOWN","SLIDER"],"sources":["../src/index.ts"],"sourcesContent":["/**\n * This file contains type definitions for types\n * used across more than one package in this repo.\n */\n\nimport React, { FunctionComponent, ReactElement } from \"react\";\nimport { IntlShape } from \"react-intl\";\nimport { StyledIcon } from \"@styled-icons/styled-icon\";\nimport { ConfiguredModes } from \"./deprecated\";\n\ntype ZeroOrOne = 0 | 1;\n\n/**\n * Shape for a transportation company.\n */\nexport type Company = {\n id: string;\n label: string;\n /** a comma-separated string listing the modes offered by this company */\n modes: string;\n /**\n * tells OTP UI to ignore the API provided station names\n * and instead use generic ones.\n */\n overridePlaceNames?: boolean;\n};\n\n/**\n * Describes some options to help display data about a transit agency that is\n * configured in an opentripplanner instance.\n */\nexport type TransitOperator = {\n agencyId: string;\n defaultRouteColor?: string;\n defaultRouteTextColor?: string;\n feedId: string;\n logo?: string;\n longNameSplitter?: string;\n name?: string;\n order?: number;\n};\n\n/**\n * Describes a map entity to be rendered.\n */\nexport type LayerEntity = {\n id: string;\n lat: number;\n lon: number;\n};\n\nexport type SymbolComponentBaseProps = {\n entity: LayerEntity;\n zoom: number;\n};\n\n/**\n * The symbol-representing component to draw; with the signature\n * ({ entity: object; zoom: number }) => Element\n * where entity must have an id attribute and contain coordinates information for placement on the map.\n */\nexport type SymbolComponent = React.ComponentType<SymbolComponentBaseProps>;\n\n/**\n * Defines which symbol to render based on a zoom level; and optionally by entity type.\n * (Only one symbol is rendered for any zoom level.)\n */\nexport type ZoomBasedSymbol = {\n /**\n * A function with the signature (entity: object) => string\n * that determines the type of an entity.\n * symbolByType and getType must be either be both specified or both omitted.\n */\n getType?: (entity: LayerEntity) => string;\n /**\n * The zoom level beginning at which the marker is drawn;\n * unless another marker with a higher minZoom is met.\n */\n minZoom: number;\n /**\n * The symbol-representing component to draw; with the signature\n * ({ entity: object; zoom: number }) => Element\n * where entity must have an id attribute and contain coordinates information for placement on the map.\n */\n symbol: SymbolComponent;\n /**\n * The symbol-representing component to draw for each entity type;\n * with the same signature as symbol. If a type returned by getType() is not listed;\n * then the component defined in the 'symbol' attribute will be rendered by default.\n * symbolByType and getType must be either be both specified or both omitted.\n */\n symbolByType?: {\n [name: string]: SymbolComponent;\n };\n};\n\n/**\n * Describes the objects from the real-time vehicle service.\n */\nexport type TransitVehicle = {\n routeColor?: string;\n routeLongName?: string;\n routeShortName?: string;\n routeType?: string;\n\n lastUpdated?: number;\n reportDate?: string;\n seconds?: number;\n status?: string;\n\n blockId?: string;\n stopId?: string;\n stopSequence?: number;\n tripId?: string;\n vehicleId?: string;\n\n heading?: number;\n lat?: number;\n lon?: number;\n};\n\nexport type OTPTransitVehicle = TransitVehicle & {\n label?: string;\n nextStopName?: string;\n speed?: number;\n stopStatus?: string; // TODO: Make enum\n};\n\nexport type VehicleRentalMapOverlaySymbol =\n | {\n dockStrokeColor?: string;\n fillColor?: string;\n minZoom: number;\n pixels?: number;\n type: string;\n }\n | ZoomBasedSymbol;\n\nexport type UnitSystem = \"metric\" | \"imperial\";\n\n/**\n * Represents the expected configuration of the webapp.\n *\n * Note: this is an incomplete type mapping.\n */\nexport type Config = {\n companies?: Company[];\n dateTime: {\n timeFormat?: string;\n dateFormat?: string;\n /** @deprecated */\n longDateFormat?: string;\n };\n formatDuration?: (\n duration: number,\n intl: IntlShape,\n includeSeconds: boolean\n ) => string;\n homeTimezone: string;\n /** @deprecated */\n modes?: ConfiguredModes;\n // TODO: add full typing\n map?: {\n overlays?: {\n /**\n * The applicable companies this overlay covers. Only applicable in\n * certain vehicle rental overlays.\n */\n companies?: string[];\n name: string;\n /**\n * The applicable map symbols. Only applicable in vehicle rental\n * overlays.\n */\n mapSymbols?: VehicleRentalMapOverlaySymbol[];\n /**\n * Only used during park and ride queries. This will filter out P&Rs\n * that are further than the specified number of meters from a transit\n * stop.\n */\n maxTransitDistance?: number;\n /**\n * The applicable modes this overlay covers. Only applicable in certain\n * vehicle rental overlays.\n */\n modes?: string[];\n /**\n * The type of overlay. Currently valid values include:\n *\n * \"bike-rental\"; \"car-rental\"; \"micromobility-rental\"; \"park-and-ride\";\n * \"stops\"; \"tile\"\n */\n type: string;\n }[];\n };\n transitOperators?: TransitOperator[];\n /**\n * The preferred unit system to use, either metric or imperial.\n * The default is 'imperial' so that existing visuals with distances in feet/miles don't break.\n */\n units?: UnitSystem;\n};\n\nexport type EncodedPolyline = {\n length: number;\n points: string;\n};\n\nexport type ElevationProfileComponent = {\n distance: number;\n elevation: number;\n};\n\nexport type ElevationData = {\n first: number;\n second: number;\n}[];\n\nexport type AlertEffect =\n | \"ACCESSIBILITY_ISSUE\"\n | \"ADDITIONAL_SERVICE\"\n | \"DETOUR\"\n | \"MODIFIED_SERVICE\"\n | \"NO_EFFECT\"\n | \"NO_SERVICE\"\n | \"OTHER_EFFECT\"\n | \"REDUCED_SERVICE\"\n | \"SIGNIFICANT_DELAYS\"\n | \"STOP_MOVED\"\n | \"UNKNOWN_EFFECT\";\n\nexport type Alert = {\n alertDescriptionText?: string;\n alertEffect?: AlertEffect;\n alertHeaderText?: string;\n alertUrl?: string;\n effectiveStartDate?: number;\n entities?: { stop?: { gtfsId?: string } }[];\n /** Returned by OTP2 graphql queries, but not by OTP1 */\n id?: string;\n};\n\n/**\n * Represents steps in a leg in an itinerary of an OTP plan response. These are\n * only for non-transit modes.\n * See documentation here: http://otp-docs.ibi-transit.com/api/json_WalkStep.html\n */\nexport type Step = {\n absoluteDirection?: string;\n alerts?: Alert[];\n area: boolean;\n bogusName: boolean;\n distance: number;\n elevation?: ElevationData;\n elevationProfile?: ElevationProfileComponent[];\n lat: number;\n lon: number;\n relativeDirection: string;\n stayOn: boolean;\n streetName: string;\n};\n\n/**\n * Describe an origin, destination, or intermediate location in an itinerary.\n */\nexport type Place = {\n address?: string;\n arrival?: number;\n bikeShareId?: string;\n departure?: number;\n lat: number;\n lon: number;\n name: string;\n networks?: string[];\n rentalVehicle?: { network: string };\n vehicleRentalStation?: { rentalNetwork: { networkId: string } };\n stop?: Stop;\n /**\n * @deprecated Only for OTP1 support, removal is immenent\n */\n stopCode?: string;\n /**\n * @deprecated Only for OTP1 support, removal is immenent\n */\n stopId?: string;\n /**\n * @deprecated Only for OTP1 support, removal is immenent\n */\n stopIndex?: number;\n /**\n * @deprecated Only for OTP1 support, removal is immenent\n */\n stopSequence?: number;\n vertexType: string;\n zoneId?: string;\n};\n\n/**\n * Holds contact info and lead time for flex transit bookings.\n * The information is optional and is for reminding the end-user\n * of any advance reservations required prior to travel.\n */\nexport type FlexBookingInfo = {\n contactInfo?: {\n phoneNumber?: string;\n bookingUrl?: string;\n infoUrl?: string;\n };\n latestBookingTime?: {\n daysPrior: number;\n };\n message?: string;\n};\n\n/** Dropoff-specific flex booking information */\ntype FlexDropOffBookingInfo = {\n dropOffMessage?: string;\n} & FlexBookingInfo;\n\n/** Pickup-specific flex booking information */\ntype FlexPickupBookingInfo = {\n pickupMessage?: string;\n} & FlexBookingInfo;\n\n/** Basic transit route attributes */\ninterface BasicRouteInfo {\n color?: string;\n id: string;\n longName?: string;\n shortName: string;\n textColor?: string;\n // TS TODO: route type enum\n type?: number;\n}\n\n/** Transit route attributes from itinerary legs */\nexport type LegRoute = BasicRouteInfo & {\n alerts?: Alert[];\n};\n\n/**\n * Represents a leg in an itinerary of an OTP plan response. Each leg represents\n * a portion of the overall itinerary that is done until either reaching the\n * destination or transitioning to another mode of travel. See OTP webservice\n * documentation here:\n * http://otp-docs.ibi-transit.com/api/json_Leg.html\n */\nexport type Leg = {\n accessibilityScore?: number;\n agencyBrandingUrl?: string;\n agencyId?: string;\n agencyName?: string;\n agencyTimeZoneOffset: number;\n agencyUrl?: string;\n alerts?: Alert[];\n boardRule?: string;\n alightRule?: string;\n arrivalDelay: number;\n averageWait?: number;\n departureDelay: number;\n distance: number;\n dropOffBookingInfo?: FlexDropOffBookingInfo;\n duration: number;\n endTime: number;\n fareProducts?: { id: string; product: FareProduct }[];\n from: Place;\n headsign?: string;\n id?: string;\n interlineWithPreviousLeg: boolean;\n intermediateStops: Place[];\n interStopGeometry?: EncodedPolyline[];\n legGeometry: EncodedPolyline;\n mode: string;\n pathway: boolean;\n pickupBookingInfo?: FlexPickupBookingInfo;\n rideHailingEstimate?: {\n provider: {\n id: string;\n };\n arrival: string;\n minPrice: TemporaryTNCPriceType;\n maxPrice: TemporaryTNCPriceType;\n productName?: string;\n };\n realTime: boolean;\n realtimeState?: \"ADDED\" | \"CANCELED\" | \"MODIFIED\" | \"SCHEDULED\" | \"UPDATED\";\n rentedBike: boolean;\n rentedCar: boolean;\n rentedVehicle: boolean;\n route?: string | LegRoute;\n routeColor?: string;\n routeId?: string;\n routeLongName?: string;\n routeShortName?: string;\n routeTextColor?: string;\n routeType?: number;\n serviceDate?: string;\n startTime: number | string;\n steps: Step[];\n // Abridged version of what OTP returns\n stopCalls?: {\n stopLocation?: {\n __typename: \"Stop\" | \"Location\" | \"LocationGroup\";\n };\n }[];\n to: Place;\n transitLeg: boolean;\n trip?: {\n arrivalStoptime?: TripStopTime;\n departureStoptime?: TripStopTime;\n gtfsId?: string;\n id: string;\n tripHeadsign?: string;\n tripShortName?: string;\n };\n tripBlockId?: string;\n tripId?: string;\n walkingBike?: boolean;\n};\n\ntype TripStopTime = {\n stopPosition: number;\n stop: {\n gtfsId: string;\n id: string;\n };\n};\n\ntype TemporaryTNCPriceType = {\n currency: {\n code: string;\n };\n amount: number;\n};\n\nexport type Currency = {\n code: string;\n digits: number;\n};\n\n/**\n * Describes the cost of an itinerary leg.\n */\nexport type Money = {\n amount: number;\n currency: {\n code: string;\n digits: number;\n };\n};\n\n/**\n * Represents an itinerary of an OTP plan response. See detailed documentation\n * in OTP webservice documentation here:\n * http://otp-docs.ibi-transit.com/api/json_Itinerary.html\n */\nexport type Itinerary = {\n co2?: number;\n co2VsBaseline?: number;\n duration: number;\n elevationGained: number;\n elevationLost: number;\n endTime: number;\n legs: Leg[];\n startTime: number;\n tooSloped?: boolean;\n transfers: number;\n transitTime: number;\n waitingTime: number;\n walkDistance: number;\n walkLimitExceeded: boolean;\n walkTime: number;\n};\n\n/**\n * In many places all we need from the Itinerary is the legs,\n * this type makes all the other types optional except legs.\n */\nexport type ItineraryOnlyLegsRequired = Partial<Itinerary> &\n Pick<Itinerary, \"legs\">;\n\nexport type ElevationProfile = {\n maxElev: number;\n minElev: number;\n points: [number, number][];\n traversed: number;\n gain: number;\n loss: number;\n};\n\n/**\n * Used to model a location that is used in planning a trip.\n */\nexport type Location = {\n lat: number;\n lon: number;\n name?: string;\n /**\n * This is only used location that a user has saved. Can be either:\n * One of: 'home', 'work', 'stop' or 'recent'\n */\n type?: \"home\" | \"work\" | \"stop\" | \"recent\" | string;\n category?: string;\n\n /**\n * This represents the last time that this location was selected in a\n * search\n */\n timestamp?: number;\n\n /* Sometimes used for displaying subinfo */\n main?: string;\n secondary?: string;\n};\n\n/**\n * Alias for a commonly used basic type\n */\nexport type LatLngArray = [number, number];\n\n/**\n * Describes a transit stop entity to be rendered on the map.\n */\nexport type StopLayerStop = LayerEntity & {\n name: string;\n};\n\nexport type StopEventHandler = (stop: Stop | { stopId: string }) => void;\n\n/**\n * This models data about a stop and it's associated routes that is obtained\n * from a transit index API.\n */\nexport type Stop = {\n /**\n * The stop code if the stop has one\n */\n code?: string;\n color?: string;\n dist?: number;\n geometries?: { geoJson?: GeoJSON.GeometryObject };\n gtfsId: string;\n id: string;\n lat?: number;\n lon?: number;\n name: string;\n routes?: Route[];\n};\n\nexport type Agency = {\n id: string;\n name?: string;\n url?: string;\n timezone?: string;\n lang?: string;\n phone?: string;\n fareUrl?: string;\n};\n\n/**\n * Transit modes that correspond with OTP GraphQL `TransitMode`.\n */\nexport type TransitMode =\n | \"AIRPLANE\"\n | \"BUS\"\n | \"CABLE_CAR\"\n | \"CARPOOL\"\n | \"COACH\"\n | \"FERRY\"\n | \"FUNICULAR\"\n | \"GONDOLA\"\n | \"MONORAIL\"\n | \"RAIL\"\n | \"SNOW_AND_ICE\"\n | \"SUBWAY\"\n | \"TAXI\"\n | \"TRAM\"\n | \"TROLLEYBUS\";\n\nexport type Route = BasicRouteInfo & {\n agency: Agency;\n agencyId?: string | number;\n agencyName?: string | number;\n // TODO: Add support for enum values, see /packages/core-utils/src/otpSchema.json#L1289\n bikesAllowed?: ZeroOrOne;\n eligibilityRestricted?: ZeroOrOne;\n mode?: TransitMode;\n routeBikesAllowed?: ZeroOrOne;\n sortOrder: number;\n sortOrderSet: boolean;\n};\n\nexport type TransitivePlace = {\n place_lat?: number;\n place_lon?: number;\n place_name?: string;\n placeId?: string;\n type: string;\n};\nexport type TransitiveSegment = {\n arc?: boolean;\n from?: TransitivePlace;\n patterns?: {\n pattern_id: string;\n from_stop_index: number;\n to_stop_index: number;\n }[];\n streetEdges?: number[];\n to?: TransitivePlace;\n type: string;\n};\nexport type TransitiveJourney = {\n journey_id: string;\n journey_name: string;\n segments: TransitiveSegment[];\n};\nexport type TransitivePattern = {\n pattern_id: string;\n pattern_name: string;\n route_id: string;\n stops: {\n geometry?: string;\n stop_id: string;\n }[];\n};\nexport type TransitiveRoute = {\n agency_id: string;\n route_color?: string;\n route_id: string;\n route_long_name: string;\n route_short_name: string;\n route_text_color?: string;\n route_type: number;\n};\nexport type TransitiveStop = {\n stop_id: string;\n stop_name?: string;\n stop_lat: number;\n stop_lon: number;\n};\n\nexport type TransitiveStreetEdge = {\n edge_id: number;\n geometry: EncodedPolyline;\n};\n\nexport type TransitiveData = {\n journeys: TransitiveJourney[];\n patterns: TransitivePattern[];\n places: TransitivePlace[];\n routes: TransitiveRoute[];\n stops: TransitiveStop[];\n streetEdges: TransitiveStreetEdge[];\n};\n\nexport type Station = {\n bikesAvailable?: number;\n id: string;\n isFloatingBike?: boolean;\n isFloatingCar?: boolean;\n isFloatingVehicle?: boolean;\n name?: string;\n networks: string[];\n spacesAvailable?: number;\n x: number;\n y: number;\n};\n\nexport type TileLayerStation = {\n bikesAvailable?: number;\n id: string;\n isFloatingBike?: boolean;\n isFloatingCar?: boolean;\n isFloatingVehicle?: boolean;\n lat: number;\n lon: number;\n name?: string;\n network?: string;\n spacesAvailable?: number;\n vehiclesAvailable?: number;\n};\n\n/**\n * Depending on the geocoder that is used, more properties than just the `label`\n * property might be provided by the geocoder. For example, with the Pelias\n * geocoder, properties such as `id`, `layer`, `source` are also included.\n */\nexport type GeocodedFeature = {\n geometry: {\n coordinates: LatLngArray;\n type: string;\n };\n properties: {\n label: string;\n layer?: string;\n source?: string;\n };\n};\n\nexport type TncFare = {\n currencyCode: string | null;\n maxTNCFare: number;\n minTNCFare: number;\n};\n\nexport type UserPosition = {\n coords?: {\n latitude: number;\n longitude: number;\n };\n error?: { message: string } | string;\n fetching?: boolean;\n};\n\n/**\n * Describes a user location such as \"home\", \"work\" etc.\n */\nexport interface UserLocation extends Location {\n icon?: string;\n id?: string;\n}\n\n/**\n * Associates a location with a type string.\n */\nexport interface UserLocationAndType {\n location: UserLocation;\n type: string;\n}\n\n/**\n * Parameters for \"clear location\" event handlers.\n */\nexport interface ClearLocationArg {\n locationType: string;\n}\n\n/**\n * Parameters for location actions/event handlers.\n */\nexport interface MapLocationActionArg {\n location: UserLocation;\n locationType: string;\n reverseGeocode?: boolean;\n}\n\n/**\n * Supports leg icons for itinerary body and printable itinerary.\n */\nexport type LegIconComponent = FunctionComponent<{\n leg: Leg;\n title?: string;\n width?: string;\n}>;\n\nexport type ConfiguredCompany = {\n /**\n * The id of the company. This is typically in all-caps.\n */\n id: string;\n /**\n * A human readable text value that can be displayed to users.\n */\n label: string;\n /**\n * A comma-separated list of applicable modes of travel that the company\n * offers.\n */\n modes: string;\n};\n\n/**\n * Supports displaying accessibility ratings as a set of thresholds\n * associated with an icon or text.\n */\nexport type GradationMap = Record<\n number,\n { color: string; icon?: ReactElement; text?: string }\n>;\n\nexport const ModeSettingTypes = {\n CHECKBOX: \"CHECKBOX\",\n DROPDOWN: \"DROPDOWN\",\n SLIDER: \"SLIDER\"\n};\n\nexport type DropdownOptions = {\n default?: string;\n label: string;\n options: {\n text: string;\n value: string;\n addTransportMode?: TransportMode;\n }[];\n type: \"DROPDOWN\";\n value?: string;\n};\n\nexport type SliderOptions = {\n default?: number;\n high: number;\n inverseKey?: string;\n label: string;\n labelHigh: string;\n labelLow: string;\n low: number;\n step: number;\n type: \"SLIDER\";\n value?: number;\n};\n\nexport type CheckboxOptions = {\n // This transport mode should match an OTP transport mode\n addTransportMode?: TransportMode | TransportMode[];\n default?: boolean;\n label: string;\n type: \"CHECKBOX\";\n truthValue?: boolean | string | number;\n falseValue?: boolean | string | number;\n value?: boolean;\n};\n\nexport type TransitSubmodeCheckboxOption = {\n // This transport mode should match an OTP transport mode\n addTransportMode: TransportMode;\n default?: boolean;\n label: string;\n // We might want to specify a secondary, \"override\" mode to this checkbox.\n // This can be used to generate a list of banned routes that have a matching mode.\n overrideMode?: string;\n type: \"SUBMODE\";\n value?: boolean;\n};\n\nexport type ModeSettingBase = {\n applicableMode: string;\n iconName?: string;\n icon?: JSX.Element;\n key: string;\n};\n\nexport type ModeSetting = (\n | CheckboxOptions\n | SliderOptions\n | DropdownOptions\n | TransitSubmodeCheckboxOption\n) &\n ModeSettingBase;\nexport type ModeSettingValues = Record<string, number | string | boolean>;\n\nexport type PlanModesInput = {\n direct?: string[];\n directOnly?: boolean;\n transit?: PlanTransitModesInput;\n transitOnly?: boolean;\n};\n\nexport type PlanTransitModesInput = {\n access?: string[];\n egress?: string[];\n transfer?: string[];\n transit?: PlanTransitModePreferenceInput[];\n};\n\nexport type PlanTransitModePreferenceInput = {\n cost?: { reluctance: number };\n mode: string;\n replacement?: { requirement?: string };\n};\n\n/**\n * A mode selected by the UI, with an optional PlanConnection input for a query.\n */\nexport type TransportMode = { input?: PlanModesInput; mode: string };\n\n/**\n * This is a combination of transportation modes,\n * with a label to describe them. These are designed\n * to appear in the mode selector as discrete options.\n */\nexport type ModeButtonDefinition = {\n enabled?: boolean; // User has enabled this mode\n Icon: StyledIcon | React.ComponentType; // From iconName (below)\n iconName: string; // From config\n key: string; // From config\n label: string; // From config\n modes?: TransportMode[]; // This comes from config\n modeSettings?: ModeSetting[]; // From OTP definitions + config\n};\n\n/**\n * Definition for a fare product used to pay the fare for a leg in a transit journey\n */\nexport type FareProduct = {\n __typename: string;\n id: string;\n medium?: {\n id: string;\n name: string;\n };\n name: string;\n // Fare products may not have a price if they don't implement a FareProduct subclass.\n price?: Money;\n riderCategory?: {\n id: string;\n name: string;\n };\n};\n\n/**\n * This fare product is designed to represent the fare product applied to a leg.\n */\nexport type AppliedFareProduct = FareProduct & {\n legPrice: Money;\n};\n\nexport type FareProductSelector = {\n mediumId?: string;\n riderCategoryId?: string;\n};\n\nexport type MediumRiderWhitelist = { medium: string; rider: string }[];\n\n/**\n * Options for units of mass (used in CO₂ calculation config)\n */\nexport type MassUnitOption = \"ounce\" | \"kilogram\" | \"pound\" | \"gram\";\n\n/**\n * Options for Heading for PrintableItinerary and ItineraryBody\n */\nexport type HeadingAs = \"h1\" | \"h2\" | \"h3\" | \"h4\" | \"span\" | \"div\";\n\n/**\n * Options for Heading for PrintableItinerary\n */\nexport type LegHeadingConfig = {\n titleHeading?: HeadingAs;\n legHeading?: HeadingAs;\n};\n\n/**\n * LegHeadingProp type for headingAs\n */\nexport type LegHeadingProp = {\n headingAs?: HeadingAs;\n};\n"],"mappings":"AAAA;AACA;AACA;AACA;;AASA;AACA;AACA;;AAaA;AACA;AACA;AACA;;AAYA;AACA;AACA;;AAYA;AACA;AACA;AACA;AACA;;AAGA;AACA;AACA;AACA;;AA8BA;AACA;AACA;;AA0CA;AACA;AACA;AACA;AACA;;AAkGA;AACA;AACA;AACA;AACA;;AAgBA;AACA;AACA;;AAiCA;AACA;AACA;AACA;AACA;;AAaA;;AAKA;;AAKA;;AAWA;;AAKA;AACA;AACA;AACA;AACA;AACA;AACA;;AA8FA;AACA;AACA;;AASA;AACA;AACA;AACA;AACA;;AAmBA;AACA;AACA;AACA;;AAaA;AACA;AACA;;AAuBA;AACA;AACA;;AAGA;AACA;AACA;;AAOA;AACA;AACA;AACA;;AA2BA;AACA;AACA;;AAyHA;AACA;AACA;AACA;AACA;;AA4BA;AACA;AACA;;AAMA;AACA;AACA;;AAMA;AACA;AACA;;AAKA;AACA;AACA;;AAOA;AACA;AACA;;AAuBA;AACA;AACA;AACA;;AAMA,OAAO,IAAMA,gBAAgB,GAAG;EAC9BC,QAAQ,EAAE,UAAU;EACpBC,QAAQ,EAAE,UAAU;EACpBC,MAAM,EAAE;AACV,CAAC;;AAsFD;AACA;AACA;;AAGA;AACA;AACA;AACA;AACA;;AAWA;AACA;AACA;;AAiBA;AACA;AACA;;AAYA;AACA;AACA;;AAGA;AACA;AACA;;AAGA;AACA;AACA;;AAMA;AACA;AACA","ignoreList":[]}
|
package/lib/deprecated.d.ts
CHANGED
package/lib/deprecated.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deprecated.d.ts","sourceRoot":"","sources":["../src/deprecated.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"deprecated.d.ts","sourceRoot":"","sources":["../src/deprecated.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,IAAI,EAAE,GAAG,CAAC,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,OAAO,EAAE,UAAU,CAAC;IACpB,SAAS,CAAC,EAAE,UAAU,EAAE,CAAC;IACzB,QAAQ,CAAC,EAAE,UAAU,EAAE,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,cAAc,GACtB,MAAM,GACN;IACE,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEN,MAAM,MAAM,eAAe,GAAG;IAC5B,YAAY,EAAE,cAAc,EAAE,CAAC;IAC/B,WAAW,EAAE,cAAc,EAAE,CAAC;IAC9B,cAAc,EAAE,cAAc,EAAE,CAAC;IACjC,YAAY,EAAE,cAAc,EAAE,CAAC;IAC/B,kBAAkB,EAAE,cAAc,EAAE,CAAC;CACtC,CAAC"}
|
package/lib/deprecated.js
CHANGED
package/lib/deprecated.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deprecated.js","
|
|
1
|
+
{"version":3,"file":"deprecated.js","names":[],"sources":["../src/deprecated.ts"],"sourcesContent":["export type ModeOption = {\n id: string;\n selected?: boolean;\n showTitle?: boolean;\n text: JSX.Element;\n title?: string;\n};\n\nexport type ModeSelectorOptions = {\n primary: ModeOption;\n secondary?: ModeOption[];\n tertiary?: ModeOption[];\n};\n\nexport type ConfiguredMode =\n | string\n | {\n mode: string;\n label: string;\n company?: string;\n };\n\nexport type ConfiguredModes = {\n transitModes: ConfiguredMode[];\n accessModes: ConfiguredMode[];\n exlcusiveModes: ConfiguredMode[];\n bicycleModes: ConfiguredMode[];\n micromobilityModes: ConfiguredMode[];\n};\n"],"mappings":"","ignoreList":[]}
|
package/lib/index.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ type ZeroOrOne = 0 | 1;
|
|
|
13
13
|
export type Company = {
|
|
14
14
|
id: string;
|
|
15
15
|
label: string;
|
|
16
|
-
/** a comma-separated string listing the modes
|
|
16
|
+
/** a comma-separated string listing the modes offered by this company */
|
|
17
17
|
modes: string;
|
|
18
18
|
/**
|
|
19
19
|
* tells OTP UI to ignore the API provided station names
|
|
@@ -189,11 +189,18 @@ export type ElevationData = {
|
|
|
189
189
|
first: number;
|
|
190
190
|
second: number;
|
|
191
191
|
}[];
|
|
192
|
+
export type AlertEffect = "ACCESSIBILITY_ISSUE" | "ADDITIONAL_SERVICE" | "DETOUR" | "MODIFIED_SERVICE" | "NO_EFFECT" | "NO_SERVICE" | "OTHER_EFFECT" | "REDUCED_SERVICE" | "SIGNIFICANT_DELAYS" | "STOP_MOVED" | "UNKNOWN_EFFECT";
|
|
192
193
|
export type Alert = {
|
|
193
|
-
alertHeaderText?: string;
|
|
194
194
|
alertDescriptionText?: string;
|
|
195
|
+
alertEffect?: AlertEffect;
|
|
196
|
+
alertHeaderText?: string;
|
|
195
197
|
alertUrl?: string;
|
|
196
198
|
effectiveStartDate?: number;
|
|
199
|
+
entities?: {
|
|
200
|
+
stop?: {
|
|
201
|
+
gtfsId?: string;
|
|
202
|
+
};
|
|
203
|
+
}[];
|
|
197
204
|
/** Returned by OTP2 graphql queries, but not by OTP1 */
|
|
198
205
|
id?: string;
|
|
199
206
|
};
|
|
@@ -341,6 +348,7 @@ export type Leg = {
|
|
|
341
348
|
productName?: string;
|
|
342
349
|
};
|
|
343
350
|
realTime: boolean;
|
|
351
|
+
realtimeState?: "ADDED" | "CANCELED" | "MODIFIED" | "SCHEDULED" | "UPDATED";
|
|
344
352
|
rentedBike: boolean;
|
|
345
353
|
rentedCar: boolean;
|
|
346
354
|
rentedVehicle: boolean;
|
|
@@ -367,6 +375,7 @@ export type Leg = {
|
|
|
367
375
|
gtfsId?: string;
|
|
368
376
|
id: string;
|
|
369
377
|
tripHeadsign?: string;
|
|
378
|
+
tripShortName?: string;
|
|
370
379
|
};
|
|
371
380
|
tripBlockId?: string;
|
|
372
381
|
tripId?: string;
|
|
@@ -429,7 +438,7 @@ export type ItineraryOnlyLegsRequired = Partial<Itinerary> & Pick<Itinerary, "le
|
|
|
429
438
|
export type ElevationProfile = {
|
|
430
439
|
maxElev: number;
|
|
431
440
|
minElev: number;
|
|
432
|
-
points: number[];
|
|
441
|
+
points: [number, number][];
|
|
433
442
|
traversed: number;
|
|
434
443
|
gain: number;
|
|
435
444
|
loss: number;
|
|
@@ -498,13 +507,17 @@ export type Agency = {
|
|
|
498
507
|
phone?: string;
|
|
499
508
|
fareUrl?: string;
|
|
500
509
|
};
|
|
510
|
+
/**
|
|
511
|
+
* Transit modes that correspond with OTP GraphQL `TransitMode`.
|
|
512
|
+
*/
|
|
513
|
+
export type TransitMode = "AIRPLANE" | "BUS" | "CABLE_CAR" | "CARPOOL" | "COACH" | "FERRY" | "FUNICULAR" | "GONDOLA" | "MONORAIL" | "RAIL" | "SNOW_AND_ICE" | "SUBWAY" | "TAXI" | "TRAM" | "TROLLEYBUS";
|
|
501
514
|
export type Route = BasicRouteInfo & {
|
|
502
515
|
agency: Agency;
|
|
503
516
|
agencyId?: string | number;
|
|
504
517
|
agencyName?: string | number;
|
|
505
518
|
bikesAllowed?: ZeroOrOne;
|
|
506
519
|
eligibilityRestricted?: ZeroOrOne;
|
|
507
|
-
mode?:
|
|
520
|
+
mode?: TransitMode;
|
|
508
521
|
routeBikesAllowed?: ZeroOrOne;
|
|
509
522
|
sortOrder: number;
|
|
510
523
|
sortOrderSet: boolean;
|
|
@@ -516,21 +529,22 @@ export type TransitivePlace = {
|
|
|
516
529
|
placeId?: string;
|
|
517
530
|
type: string;
|
|
518
531
|
};
|
|
532
|
+
export type TransitiveSegment = {
|
|
533
|
+
arc?: boolean;
|
|
534
|
+
from?: TransitivePlace;
|
|
535
|
+
patterns?: {
|
|
536
|
+
pattern_id: string;
|
|
537
|
+
from_stop_index: number;
|
|
538
|
+
to_stop_index: number;
|
|
539
|
+
}[];
|
|
540
|
+
streetEdges?: number[];
|
|
541
|
+
to?: TransitivePlace;
|
|
542
|
+
type: string;
|
|
543
|
+
};
|
|
519
544
|
export type TransitiveJourney = {
|
|
520
545
|
journey_id: string;
|
|
521
546
|
journey_name: string;
|
|
522
|
-
segments:
|
|
523
|
-
arc?: boolean;
|
|
524
|
-
from: TransitivePlace;
|
|
525
|
-
patterns?: {
|
|
526
|
-
pattern_id: string;
|
|
527
|
-
from_stop_index: number;
|
|
528
|
-
to_stop_index: number;
|
|
529
|
-
}[];
|
|
530
|
-
streetEdges: number[];
|
|
531
|
-
to: TransitivePlace;
|
|
532
|
-
type: string;
|
|
533
|
-
}[];
|
|
547
|
+
segments: TransitiveSegment[];
|
|
534
548
|
};
|
|
535
549
|
export type TransitivePattern = {
|
|
536
550
|
pattern_id: string;
|
|
@@ -552,7 +566,7 @@ export type TransitiveRoute = {
|
|
|
552
566
|
};
|
|
553
567
|
export type TransitiveStop = {
|
|
554
568
|
stop_id: string;
|
|
555
|
-
stop_name
|
|
569
|
+
stop_name?: string;
|
|
556
570
|
stop_lat: number;
|
|
557
571
|
stop_lon: number;
|
|
558
572
|
};
|
|
@@ -610,7 +624,7 @@ export type GeocodedFeature = {
|
|
|
610
624
|
};
|
|
611
625
|
};
|
|
612
626
|
export type TncFare = {
|
|
613
|
-
currencyCode: string;
|
|
627
|
+
currencyCode: string | null;
|
|
614
628
|
maxTNCFare: number;
|
|
615
629
|
minTNCFare: number;
|
|
616
630
|
};
|
|
@@ -737,13 +751,33 @@ export type ModeSettingBase = {
|
|
|
737
751
|
};
|
|
738
752
|
export type ModeSetting = (CheckboxOptions | SliderOptions | DropdownOptions | TransitSubmodeCheckboxOption) & ModeSettingBase;
|
|
739
753
|
export type ModeSettingValues = Record<string, number | string | boolean>;
|
|
754
|
+
export type PlanModesInput = {
|
|
755
|
+
direct?: string[];
|
|
756
|
+
directOnly?: boolean;
|
|
757
|
+
transit?: PlanTransitModesInput;
|
|
758
|
+
transitOnly?: boolean;
|
|
759
|
+
};
|
|
760
|
+
export type PlanTransitModesInput = {
|
|
761
|
+
access?: string[];
|
|
762
|
+
egress?: string[];
|
|
763
|
+
transfer?: string[];
|
|
764
|
+
transit?: PlanTransitModePreferenceInput[];
|
|
765
|
+
};
|
|
766
|
+
export type PlanTransitModePreferenceInput = {
|
|
767
|
+
cost?: {
|
|
768
|
+
reluctance: number;
|
|
769
|
+
};
|
|
770
|
+
mode: string;
|
|
771
|
+
replacement?: {
|
|
772
|
+
requirement?: string;
|
|
773
|
+
};
|
|
774
|
+
};
|
|
740
775
|
/**
|
|
741
|
-
*
|
|
742
|
-
* Could be anything from walk, bike (qualifier: rent) to transit, tram, or bus.
|
|
776
|
+
* A mode selected by the UI, with an optional PlanConnection input for a query.
|
|
743
777
|
*/
|
|
744
778
|
export type TransportMode = {
|
|
779
|
+
input?: PlanModesInput;
|
|
745
780
|
mode: string;
|
|
746
|
-
qualifier?: string;
|
|
747
781
|
};
|
|
748
782
|
/**
|
|
749
783
|
* This is a combination of transportation modes,
|
|
@@ -786,9 +820,30 @@ export type FareProductSelector = {
|
|
|
786
820
|
mediumId?: string;
|
|
787
821
|
riderCategoryId?: string;
|
|
788
822
|
};
|
|
823
|
+
export type MediumRiderWhitelist = {
|
|
824
|
+
medium: string;
|
|
825
|
+
rider: string;
|
|
826
|
+
}[];
|
|
789
827
|
/**
|
|
790
828
|
* Options for units of mass (used in CO₂ calculation config)
|
|
791
829
|
*/
|
|
792
830
|
export type MassUnitOption = "ounce" | "kilogram" | "pound" | "gram";
|
|
831
|
+
/**
|
|
832
|
+
* Options for Heading for PrintableItinerary and ItineraryBody
|
|
833
|
+
*/
|
|
834
|
+
export type HeadingAs = "h1" | "h2" | "h3" | "h4" | "span" | "div";
|
|
835
|
+
/**
|
|
836
|
+
* Options for Heading for PrintableItinerary
|
|
837
|
+
*/
|
|
838
|
+
export type LegHeadingConfig = {
|
|
839
|
+
titleHeading?: HeadingAs;
|
|
840
|
+
legHeading?: HeadingAs;
|
|
841
|
+
};
|
|
842
|
+
/**
|
|
843
|
+
* LegHeadingProp type for headingAs
|
|
844
|
+
*/
|
|
845
|
+
export type LegHeadingProp = {
|
|
846
|
+
headingAs?: HeadingAs;
|
|
847
|
+
};
|
|
793
848
|
export {};
|
|
794
849
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAE/C,KAAK,SAAS,GAAG,CAAC,GAAG,CAAC,CAAC;AAEvB;;GAEG;AACH,MAAM,MAAM,OAAO,GAAG;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,uEAAuE;IACvE,KAAK,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAA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EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,EAAE,CAAC;AAEvE;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,UAAU,GAAG,OAAO,GAAG,MAAM,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,GAAG,KAAK,CAAC;AAEnE;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,UAAU,CAAC,EAAE,SAAS,CAAC;CACxB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC"}
|
package/lib/index.js
CHANGED
|
@@ -1,13 +1,184 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.ModeSettingTypes = void 0;
|
|
2
7
|
/**
|
|
3
8
|
* This file contains type definitions for types
|
|
4
9
|
* used across more than one package in this repo.
|
|
5
10
|
*/
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Shape for a transportation company.
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Describes some options to help display data about a transit agency that is
|
|
18
|
+
* configured in an opentripplanner instance.
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Describes a map entity to be rendered.
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* The symbol-representing component to draw; with the signature
|
|
27
|
+
* ({ entity: object; zoom: number }) => Element
|
|
28
|
+
* where entity must have an id attribute and contain coordinates information for placement on the map.
|
|
29
|
+
*/
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Defines which symbol to render based on a zoom level; and optionally by entity type.
|
|
33
|
+
* (Only one symbol is rendered for any zoom level.)
|
|
34
|
+
*/
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Describes the objects from the real-time vehicle service.
|
|
38
|
+
*/
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Represents the expected configuration of the webapp.
|
|
42
|
+
*
|
|
43
|
+
* Note: this is an incomplete type mapping.
|
|
44
|
+
*/
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Represents steps in a leg in an itinerary of an OTP plan response. These are
|
|
48
|
+
* only for non-transit modes.
|
|
49
|
+
* See documentation here: http://otp-docs.ibi-transit.com/api/json_WalkStep.html
|
|
50
|
+
*/
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Describe an origin, destination, or intermediate location in an itinerary.
|
|
54
|
+
*/
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Holds contact info and lead time for flex transit bookings.
|
|
58
|
+
* The information is optional and is for reminding the end-user
|
|
59
|
+
* of any advance reservations required prior to travel.
|
|
60
|
+
*/
|
|
61
|
+
|
|
62
|
+
/** Dropoff-specific flex booking information */
|
|
63
|
+
|
|
64
|
+
/** Pickup-specific flex booking information */
|
|
65
|
+
|
|
66
|
+
/** Basic transit route attributes */
|
|
67
|
+
|
|
68
|
+
/** Transit route attributes from itinerary legs */
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Represents a leg in an itinerary of an OTP plan response. Each leg represents
|
|
72
|
+
* a portion of the overall itinerary that is done until either reaching the
|
|
73
|
+
* destination or transitioning to another mode of travel. See OTP webservice
|
|
74
|
+
* documentation here:
|
|
75
|
+
* http://otp-docs.ibi-transit.com/api/json_Leg.html
|
|
76
|
+
*/
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Describes the cost of an itinerary leg.
|
|
80
|
+
*/
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Represents an itinerary of an OTP plan response. See detailed documentation
|
|
84
|
+
* in OTP webservice documentation here:
|
|
85
|
+
* http://otp-docs.ibi-transit.com/api/json_Itinerary.html
|
|
86
|
+
*/
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* In many places all we need from the Itinerary is the legs,
|
|
90
|
+
* this type makes all the other types optional except legs.
|
|
91
|
+
*/
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Used to model a location that is used in planning a trip.
|
|
95
|
+
*/
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Alias for a commonly used basic type
|
|
99
|
+
*/
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Describes a transit stop entity to be rendered on the map.
|
|
103
|
+
*/
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* This models data about a stop and it's associated routes that is obtained
|
|
107
|
+
* from a transit index API.
|
|
108
|
+
*/
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* Transit modes that correspond with OTP GraphQL `TransitMode`.
|
|
112
|
+
*/
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Depending on the geocoder that is used, more properties than just the `label`
|
|
116
|
+
* property might be provided by the geocoder. For example, with the Pelias
|
|
117
|
+
* geocoder, properties such as `id`, `layer`, `source` are also included.
|
|
118
|
+
*/
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Describes a user location such as "home", "work" etc.
|
|
122
|
+
*/
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* Associates a location with a type string.
|
|
126
|
+
*/
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* Parameters for "clear location" event handlers.
|
|
130
|
+
*/
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Parameters for location actions/event handlers.
|
|
134
|
+
*/
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* Supports leg icons for itinerary body and printable itinerary.
|
|
138
|
+
*/
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* Supports displaying accessibility ratings as a set of thresholds
|
|
142
|
+
* associated with an icon or text.
|
|
143
|
+
*/
|
|
144
|
+
|
|
145
|
+
const ModeSettingTypes = exports.ModeSettingTypes = {
|
|
146
|
+
CHECKBOX: "CHECKBOX",
|
|
147
|
+
DROPDOWN: "DROPDOWN",
|
|
148
|
+
SLIDER: "SLIDER"
|
|
12
149
|
};
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* A mode selected by the UI, with an optional PlanConnection input for a query.
|
|
153
|
+
*/
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* This is a combination of transportation modes,
|
|
157
|
+
* with a label to describe them. These are designed
|
|
158
|
+
* to appear in the mode selector as discrete options.
|
|
159
|
+
*/
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* Definition for a fare product used to pay the fare for a leg in a transit journey
|
|
163
|
+
*/
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* This fare product is designed to represent the fare product applied to a leg.
|
|
167
|
+
*/
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* Options for units of mass (used in CO₂ calculation config)
|
|
171
|
+
*/
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* Options for Heading for PrintableItinerary and ItineraryBody
|
|
175
|
+
*/
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* Options for Heading for PrintableItinerary
|
|
179
|
+
*/
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* LegHeadingProp type for headingAs
|
|
183
|
+
*/
|
|
13
184
|
//# sourceMappingURL=index.js.map
|