Skip to content

Commit

Permalink
Revert "Merge pull request #5144 from HSLdevcom/update-schema"
Browse files Browse the repository at this point in the history
This reverts commit 53d128e, reversing
changes made to fe207ba.
  • Loading branch information
vesameskanen committed Nov 13, 2024
1 parent 2b07af5 commit d5496a4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 37 deletions.
2 changes: 1 addition & 1 deletion build/generate-schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const http = require('https');

const graphqlSchemaSource =
process.env.SCHEMA_SRC ||
'https://raw.githubusercontent.com/HSLdevcom/OpenTripPlanner/dev-2.x/application/src/main/resources/org/opentripplanner/apis/gtfs/schema.graphqls';
'https://raw.githubusercontent.com/HSLdevcom/OpenTripPlanner/dev-2.x/src/main/resources/org/opentripplanner/apis/gtfs/schema.graphqls';
const outputGraphQLFilename = 'schema.graphql';
const outputGraphQLFileCopy = `../digitransit-search-util/packages/digitransit-search-util-query-utils/schema/${outputGraphQLFilename}`;

Expand Down
20 changes: 2 additions & 18 deletions build/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -1522,7 +1522,7 @@ type QueryType {
walkSpeed: Float,
"Whether the itinerary must be wheelchair accessible. Default value: false"
wheelchair: Boolean
): Plan @async @deprecated(reason : "Use `planConnection` instead.")
): Plan @async
"""
Plan (itinerary) search that follows
[GraphQL Cursor Connections Specification](https://relay.dev/graphql/connections.htm).
Expand Down Expand Up @@ -1607,7 +1607,7 @@ type QueryType {
number of itineraries in each search.
"""
searchWindow: Duration
): PlanConnection @async
): PlanConnection @async @deprecated(reason : "Experimental and can include breaking changes, use plan instead")
"Get a single rental vehicle based on its ID, i.e. value of field `vehicleId`"
rentalVehicle(id: String!): RentalVehicle
"Get all rental vehicles"
Expand Down Expand Up @@ -3081,12 +3081,6 @@ enum PlanAccessMode {
"""
BICYCLE_RENTAL
"""
Driving to a stop and boarding a vehicle with the car.
Access can use driving only if the mode used for transfers
and egress is also `CAR`.
"""
CAR
"""
Getting dropped off by a car to a location that is accessible with a car.
Note, this can include walking after the drop-off.
"""
Expand Down Expand Up @@ -3196,11 +3190,6 @@ enum PlanEgressMode {
"""
BICYCLE_RENTAL
"""
Driving from a stop to the destination. Egress can use driving only if the mode
used for access and transfers is also `CAR`.
"""
CAR
"""
Getting picked up by a car from a location that is accessible with a car.
Note, this can include walking before the pickup.
"""
Expand Down Expand Up @@ -3238,11 +3227,6 @@ enum PlanTransferMode {
cycling if the mode used for access and egress is also `BICYCLE`.
"""
BICYCLE
"""
Driving between transit vehicles. Transfers can only use driving if the mode
used for access and egress is also `CAR`.
"""
CAR
"Walking between transit vehicles (typically between stops)."
WALK
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1522,7 +1522,7 @@ type QueryType {
walkSpeed: Float,
"Whether the itinerary must be wheelchair accessible. Default value: false"
wheelchair: Boolean
): Plan @async @deprecated(reason : "Use `planConnection` instead.")
): Plan @async
"""
Plan (itinerary) search that follows
[GraphQL Cursor Connections Specification](https://relay.dev/graphql/connections.htm).
Expand Down Expand Up @@ -1607,7 +1607,7 @@ type QueryType {
number of itineraries in each search.
"""
searchWindow: Duration
): PlanConnection @async
): PlanConnection @async @deprecated(reason : "Experimental and can include breaking changes, use plan instead")
"Get a single rental vehicle based on its ID, i.e. value of field `vehicleId`"
rentalVehicle(id: String!): RentalVehicle
"Get all rental vehicles"
Expand Down Expand Up @@ -3081,12 +3081,6 @@ enum PlanAccessMode {
"""
BICYCLE_RENTAL
"""
Driving to a stop and boarding a vehicle with the car.
Access can use driving only if the mode used for transfers
and egress is also `CAR`.
"""
CAR
"""
Getting dropped off by a car to a location that is accessible with a car.
Note, this can include walking after the drop-off.
"""
Expand Down Expand Up @@ -3196,11 +3190,6 @@ enum PlanEgressMode {
"""
BICYCLE_RENTAL
"""
Driving from a stop to the destination. Egress can use driving only if the mode
used for access and transfers is also `CAR`.
"""
CAR
"""
Getting picked up by a car from a location that is accessible with a car.
Note, this can include walking before the pickup.
"""
Expand Down Expand Up @@ -3238,11 +3227,6 @@ enum PlanTransferMode {
cycling if the mode used for access and egress is also `BICYCLE`.
"""
BICYCLE
"""
Driving between transit vehicles. Transfers can only use driving if the mode
used for access and egress is also `CAR`.
"""
CAR
"Walking between transit vehicles (typically between stops)."
WALK
}
Expand Down

0 comments on commit d5496a4

Please sign in to comment.