All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.opentripplanner.ext.legacygraphqlapi.generated.LegacyGraphQLDataFetchers Maven / Gradle / Ivy

//THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.

package org.opentripplanner.ext.legacygraphqlapi.generated;

import graphql.relay.Connection;
import graphql.relay.Edge;
import graphql.schema.DataFetcher;
import graphql.schema.TypeResolver;
import org.locationtech.jts.geom.Coordinate;
import org.opentripplanner.api.resource.DebugOutput;
import org.opentripplanner.common.model.P2;
import org.opentripplanner.model.Agency;
import org.opentripplanner.model.FeedInfo;
import org.opentripplanner.model.Route;
import org.opentripplanner.model.StopTimesInPattern;
import org.opentripplanner.model.Trip;
import org.opentripplanner.model.TripPattern;
import org.opentripplanner.model.TripTimeShort;
import org.opentripplanner.model.plan.Itinerary;
import org.opentripplanner.model.plan.Leg;
import org.opentripplanner.model.plan.StopArrival;
import org.opentripplanner.model.plan.WalkStep;
import org.opentripplanner.routing.alertpatch.TransitAlert;
import org.opentripplanner.routing.api.response.RoutingResponse;
import org.opentripplanner.routing.bike_park.BikePark;
import org.opentripplanner.routing.bike_rental.BikeRentalStation;
import org.opentripplanner.routing.core.FareComponent;
import org.opentripplanner.routing.core.FareRuleSet;
import org.opentripplanner.routing.graphfinder.PatternAtStop;
import org.opentripplanner.routing.graphfinder.PlaceAtDistance;
import org.opentripplanner.routing.graphfinder.StopAtDistance;
import org.opentripplanner.util.model.EncodedPolylineBean;

import java.util.Map;

public class LegacyGraphQLDataFetchers {
  /** A public transport agency */
  public interface LegacyGraphQLAgency {
    public DataFetcher id();
    public DataFetcher gtfsId();
    public DataFetcher name();
    public DataFetcher url();
    public DataFetcher timezone();
    public DataFetcher lang();
    public DataFetcher phone();
    public DataFetcher fareUrl();
    public DataFetcher> routes();
    public DataFetcher> alerts();
  }
  
  /** Alert of a current or upcoming disruption in public transportation */
  public interface LegacyGraphQLAlert {
    public DataFetcher id();
    public DataFetcher alertHash();
    public DataFetcher feed();
    public DataFetcher agency();
    public DataFetcher route();
    public DataFetcher trip();
    public DataFetcher stop();
    public DataFetcher> patterns();
    public DataFetcher alertHeaderText();
    public DataFetcher>> alertHeaderTextTranslations();
    public DataFetcher alertDescriptionText();
    public DataFetcher>> alertDescriptionTextTranslations();
    public DataFetcher alertUrl();
    public DataFetcher>> alertUrlTranslations();
    public DataFetcher alertEffect();
    public DataFetcher alertCause();
    public DataFetcher alertSeverityLevel();
    public DataFetcher effectiveStartDate();
    public DataFetcher effectiveEndDate();
  }
  
  /** Bike park represents a location where bicycles can be parked. */
  public interface LegacyGraphQLBikePark {
    public DataFetcher id();
    public DataFetcher bikeParkId();
    public DataFetcher name();
    public DataFetcher spacesAvailable();
    public DataFetcher realtime();
    public DataFetcher lon();
    public DataFetcher lat();
  }
  
  /** Bike rental station represents a location where users can rent bicycles for a fee. */
  public interface LegacyGraphQLBikeRentalStation {
    public DataFetcher id();
    public DataFetcher stationId();
    public DataFetcher name();
    public DataFetcher bikesAvailable();
    public DataFetcher spacesAvailable();
    public DataFetcher state();
    public DataFetcher realtime();
    public DataFetcher allowDropoff();
    public DataFetcher> networks();
    public DataFetcher lon();
    public DataFetcher lat();
  }
  
  /** Car park represents a location where cars can be parked. */
  public interface LegacyGraphQLCarPark {
    public DataFetcher id();
    public DataFetcher carParkId();
    public DataFetcher name();
    public DataFetcher maxCapacity();
    public DataFetcher spacesAvailable();
    public DataFetcher realtime();
    public DataFetcher lon();
    public DataFetcher lat();
  }
  
  /** Cluster is a list of stops grouped by name and proximity */
  public interface LegacyGraphQLCluster {
    public DataFetcher id();
    public DataFetcher gtfsId();
    public DataFetcher name();
    public DataFetcher lat();
    public DataFetcher lon();
    public DataFetcher> stops();
  }
  
  public interface LegacyGraphQLCoordinates {
    public DataFetcher lat();
    public DataFetcher lon();
  }
  
  public interface LegacyGraphQLDebugOutput {
    public DataFetcher totalTime();
    public DataFetcher pathCalculationTime();
    public DataFetcher precalculationTime();
    public DataFetcher renderingTime();
    public DataFetcher timedOut();
  }
  
  /**
   * Departure row is a location, which lists departures of a certain pattern from a
   * stop. Departure rows are identified with the pattern, so querying departure rows
   * will return only departures from one stop per pattern
   */
  public interface LegacyGraphQLDepartureRow {
    public DataFetcher id();
    public DataFetcher stop();
    public DataFetcher lat();
    public DataFetcher lon();
    public DataFetcher pattern();
    public DataFetcher> stoptimes();
  }
  
  public interface LegacyGraphQLElevationProfileComponent {
    public DataFetcher distance();
    public DataFetcher elevation();
  }
  
  public interface LegacyGraphQLFare {
    public DataFetcher type();
    public DataFetcher currency();
    public DataFetcher cents();
    public DataFetcher> components();
  }
  
  /** Component of the fare (i.e. ticket) for a part of the itinerary */
  public interface LegacyGraphQLFareComponent {
    public DataFetcher fareId();
    public DataFetcher currency();
    public DataFetcher cents();
    public DataFetcher> routes();
  }
  
  /** A feed provides routing data (stops, routes, timetables, etc.) from one or more public transport agencies. */
  public interface LegacyGraphQLFeed {
    public DataFetcher feedId();
    public DataFetcher> agencies();
  }
  
  public interface LegacyGraphQLGeometry {
    public DataFetcher length();
    public DataFetcher points();
  }
  
  public interface LegacyGraphQLItinerary {
    public DataFetcher startTime();
    public DataFetcher endTime();
    public DataFetcher duration();
    public DataFetcher waitingTime();
    public DataFetcher walkTime();
    public DataFetcher walkDistance();
    public DataFetcher> legs();
    public DataFetcher>> fares();
    public DataFetcher elevationGained();
    public DataFetcher elevationLost();
  }
  
  public interface LegacyGraphQLLeg {
    public DataFetcher startTime();
    public DataFetcher endTime();
    public DataFetcher departureDelay();
    public DataFetcher arrivalDelay();
    public DataFetcher mode();
    public DataFetcher duration();
    public DataFetcher legGeometry();
    public DataFetcher agency();
    public DataFetcher realTime();
    public DataFetcher realtimeState();
    public DataFetcher distance();
    public DataFetcher transitLeg();
    public DataFetcher rentedBike();
    public DataFetcher from();
    public DataFetcher to();
    public DataFetcher route();
    public DataFetcher trip();
    public DataFetcher serviceDate();
    public DataFetcher> intermediateStops();
    public DataFetcher> intermediatePlaces();
    public DataFetcher intermediatePlace();
    public DataFetcher> steps();
    public DataFetcher pickupType();
    public DataFetcher dropoffType();
    public DataFetcher interlineWithPreviousLeg();
  }
  
  /** An object with an ID */
  public interface LegacyGraphQLNode extends TypeResolver {
    default public DataFetcher id() { return null; }
  }
  
  /** Information about pagination in a connection. */
  public interface LegacyGraphQLPageInfo {
    public DataFetcher hasNextPage();
    public DataFetcher hasPreviousPage();
    public DataFetcher startCursor();
    public DataFetcher endCursor();
  }
  
  /**
   * Pattern is sequence of stops used by trips on a specific direction and variant
   * of a route. Most routes have only two patterns: one for outbound trips and one
   * for inbound trips
   */
  public interface LegacyGraphQLPattern {
    public DataFetcher id();
    public DataFetcher route();
    public DataFetcher directionId();
    public DataFetcher name();
    public DataFetcher code();
    public DataFetcher headsign();
    public DataFetcher> trips();
    public DataFetcher> tripsForDate();
    public DataFetcher> stops();
    public DataFetcher> geometry();
    public DataFetcher patternGeometry();
    public DataFetcher semanticHash();
    public DataFetcher> alerts();
  }
  
  public interface LegacyGraphQLPlace {
    public DataFetcher name();
    public DataFetcher vertexType();
    public DataFetcher lat();
    public DataFetcher lon();
    public DataFetcher arrivalTime();
    public DataFetcher departureTime();
    public DataFetcher stop();
    public DataFetcher bikeRentalStation();
    public DataFetcher bikePark();
    public DataFetcher carPark();
  }
  
  public interface LegacyGraphQLPlaceAtDistance {
    public DataFetcher id();
    public DataFetcher place();
    public DataFetcher distance();
  }
  
  /** A connection to a list of items. */
  public interface LegacyGraphQLPlaceAtDistanceConnection {
    public DataFetcher>> edges();
    public DataFetcher pageInfo();
  }
  
  /** An edge in a connection. */
  public interface LegacyGraphQLPlaceAtDistanceEdge {
    public DataFetcher node();
    public DataFetcher cursor();
  }
  
  /** Interface for places, e.g. stops, stations, parking areas.. */
  public interface LegacyGraphQLPlaceInterface extends TypeResolver {
    default public DataFetcher id() { return null; }
    default public DataFetcher lat() { return null; }
    default public DataFetcher lon() { return null; }
  }
  
  public interface LegacyGraphQLPlan {
    public DataFetcher date();
    public DataFetcher from();
    public DataFetcher to();
    public DataFetcher> itineraries();
    public DataFetcher> messageEnums();
    public DataFetcher> messageStrings();
    public DataFetcher prevDateTime();
    public DataFetcher nextDateTime();
    public DataFetcher searchWindowUsed();
    public DataFetcher debugOutput();
  }
  
  public interface LegacyGraphQLQueryType {
    public DataFetcher node();
    public DataFetcher> feeds();
    public DataFetcher> agencies();
    public DataFetcher> ticketTypes();
    public DataFetcher agency();
    public DataFetcher> stops();
    public DataFetcher> stopsByBbox();
    public DataFetcher> stopsByRadius();
    public DataFetcher> nearest();
    public DataFetcher departureRow();
    public DataFetcher stop();
    public DataFetcher station();
    public DataFetcher> stations();
    public DataFetcher> routes();
    public DataFetcher route();
    public DataFetcher> trips();
    public DataFetcher trip();
    public DataFetcher fuzzyTrip();
    public DataFetcher> cancelledTripTimes();
    public DataFetcher> patterns();
    public DataFetcher pattern();
    public DataFetcher> clusters();
    public DataFetcher cluster();
    public DataFetcher> alerts();
    public DataFetcher serviceTimeRange();
    public DataFetcher> bikeRentalStations();
    public DataFetcher bikeRentalStation();
    public DataFetcher> bikeParks();
    public DataFetcher bikePark();
    public DataFetcher> carParks();
    public DataFetcher carPark();
    public DataFetcher viewer();
    public DataFetcher plan();
  }
  
  /**
   * Route represents a public transportation service, usually from point A to point
   * B and *back*, shown to customers under a single name, e.g. bus 550. Routes
   * contain patterns (see field `patterns`), which describe different variants of
   * the route, e.g. outbound pattern from point A to point B and inbound pattern
   * from point B to point A.
   */
  public interface LegacyGraphQLRoute {
    public DataFetcher id();
    public DataFetcher gtfsId();
    public DataFetcher agency();
    public DataFetcher shortName();
    public DataFetcher longName();
    public DataFetcher mode();
    public DataFetcher type();
    public DataFetcher desc();
    public DataFetcher url();
    public DataFetcher color();
    public DataFetcher textColor();
    public DataFetcher bikesAllowed();
    public DataFetcher> patterns();
    public DataFetcher> stops();
    public DataFetcher> trips();
    public DataFetcher> alerts();
  }
  
  /** Time range for which the API has data available */
  public interface LegacyGraphQLServiceTimeRange {
    public DataFetcher start();
    public DataFetcher end();
  }
  
  public interface LegacyGraphQLStep {
    public DataFetcher distance();
    public DataFetcher lon();
    public DataFetcher lat();
    public DataFetcher>> elevationProfile();
  }
  
  /**
   * Stop can represent either a single public transport stop, where passengers can
   * board and/or disembark vehicles, or a station, which contains multiple stops.
   * See field `locationType`.
   */
  public interface LegacyGraphQLStop {
    public DataFetcher id();
    public DataFetcher> stopTimesForPattern();
    public DataFetcher gtfsId();
    public DataFetcher name();
    public DataFetcher lat();
    public DataFetcher lon();
    public DataFetcher code();
    public DataFetcher desc();
    public DataFetcher zoneId();
    public DataFetcher url();
    public DataFetcher locationType();
    public DataFetcher parentStation();
    public DataFetcher wheelchairBoarding();
    public DataFetcher direction();
    public DataFetcher timezone();
    public DataFetcher vehicleType();
    public DataFetcher vehicleMode();
    public DataFetcher platformCode();
    public DataFetcher cluster();
    public DataFetcher> stops();
    public DataFetcher> routes();
    public DataFetcher> patterns();
    public DataFetcher> transfers();
    public DataFetcher> stoptimesForServiceDate();
    public DataFetcher> stoptimesForPatterns();
    public DataFetcher> stoptimesWithoutPatterns();
    public DataFetcher> alerts();
  }
  
  public interface LegacyGraphQLStopAtDistance {
    public DataFetcher id();
    public DataFetcher stop();
    public DataFetcher distance();
  }
  
  /** A connection to a list of items. */
  public interface LegacyGraphQLStopAtDistanceConnection {
    public DataFetcher>> edges();
    public DataFetcher pageInfo();
  }
  
  /** An edge in a connection. */
  public interface LegacyGraphQLStopAtDistanceEdge {
    public DataFetcher node();
    public DataFetcher cursor();
  }
  
  /** Stoptime represents the time when a specific trip arrives to or departs from a specific stop. */
  public interface LegacyGraphQLStoptime {
    public DataFetcher stop();
    public DataFetcher scheduledArrival();
    public DataFetcher realtimeArrival();
    public DataFetcher arrivalDelay();
    public DataFetcher scheduledDeparture();
    public DataFetcher realtimeDeparture();
    public DataFetcher departureDelay();
    public DataFetcher timepoint();
    public DataFetcher realtime();
    public DataFetcher realtimeState();
    public DataFetcher pickupType();
    public DataFetcher dropoffType();
    public DataFetcher serviceDay();
    public DataFetcher trip();
    public DataFetcher headsign();
  }
  
  /** Stoptimes grouped by pattern */
  public interface LegacyGraphQLStoptimesInPattern {
    public DataFetcher pattern();
    public DataFetcher> stoptimes();
  }
  
  /** Describes ticket type */
  public interface LegacyGraphQLTicketType {
    public DataFetcher id();
    public DataFetcher fareId();
    public DataFetcher price();
    public DataFetcher currency();
    public DataFetcher> zones();
  }
  
  /** Text with language */
  public interface LegacyGraphQLTranslatedString {
    public DataFetcher text();
    public DataFetcher language();
  }
  
  /** Trip is a specific occurance of a pattern, usually identified by route, direction on the route and exact departure time. */
  public interface LegacyGraphQLTrip {
    public DataFetcher id();
    public DataFetcher gtfsId();
    public DataFetcher route();
    public DataFetcher serviceId();
    public DataFetcher> activeDates();
    public DataFetcher tripShortName();
    public DataFetcher tripHeadsign();
    public DataFetcher routeShortName();
    public DataFetcher directionId();
    public DataFetcher blockId();
    public DataFetcher shapeId();
    public DataFetcher wheelchairAccessible();
    public DataFetcher bikesAllowed();
    public DataFetcher pattern();
    public DataFetcher> stops();
    public DataFetcher semanticHash();
    public DataFetcher> stoptimes();
    public DataFetcher departureStoptime();
    public DataFetcher arrivalStoptime();
    public DataFetcher> stoptimesForDate();
    public DataFetcher>> geometry();
    public DataFetcher tripGeometry();
    public DataFetcher> alerts();
  }
  
}