From b0d78596daac5e39bfb829435ab54a0a3dd449f5 Mon Sep 17 00:00:00 2001 From: Vesa Meskanen Date: Fri, 1 Nov 2024 09:27:55 +0200 Subject: [PATCH] chore: update schema --- build/schema.graphql | 20 +++++++++++++++++-- .../schema/schema.graphql | 20 +++++++++++++++++-- 2 files changed, 36 insertions(+), 4 deletions(-) diff --git a/build/schema.graphql b/build/schema.graphql index 9c3fc2cf73..28024656e2 100644 --- a/build/schema.graphql +++ b/build/schema.graphql @@ -1522,7 +1522,7 @@ type QueryType { walkSpeed: Float, "Whether the itinerary must be wheelchair accessible. Default value: false" wheelchair: Boolean - ): Plan @async + ): Plan @async @deprecated(reason : "Use `planConnection` instead.") """ Plan (itinerary) search that follows [GraphQL Cursor Connections Specification](https://relay.dev/graphql/connections.htm). @@ -1607,7 +1607,7 @@ type QueryType { number of itineraries in each search. """ searchWindow: Duration - ): PlanConnection @async @deprecated(reason : "Experimental and can include breaking changes, use plan instead") + ): PlanConnection @async "Get a single rental vehicle based on its ID, i.e. value of field `vehicleId`" rentalVehicle(id: String!): RentalVehicle "Get all rental vehicles" @@ -3081,6 +3081,12 @@ 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. """ @@ -3190,6 +3196,11 @@ 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. """ @@ -3227,6 +3238,11 @@ 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 } diff --git a/digitransit-search-util/packages/digitransit-search-util-query-utils/schema/schema.graphql b/digitransit-search-util/packages/digitransit-search-util-query-utils/schema/schema.graphql index 9c3fc2cf73..28024656e2 100644 --- a/digitransit-search-util/packages/digitransit-search-util-query-utils/schema/schema.graphql +++ b/digitransit-search-util/packages/digitransit-search-util-query-utils/schema/schema.graphql @@ -1522,7 +1522,7 @@ type QueryType { walkSpeed: Float, "Whether the itinerary must be wheelchair accessible. Default value: false" wheelchair: Boolean - ): Plan @async + ): Plan @async @deprecated(reason : "Use `planConnection` instead.") """ Plan (itinerary) search that follows [GraphQL Cursor Connections Specification](https://relay.dev/graphql/connections.htm). @@ -1607,7 +1607,7 @@ type QueryType { number of itineraries in each search. """ searchWindow: Duration - ): PlanConnection @async @deprecated(reason : "Experimental and can include breaking changes, use plan instead") + ): PlanConnection @async "Get a single rental vehicle based on its ID, i.e. value of field `vehicleId`" rentalVehicle(id: String!): RentalVehicle "Get all rental vehicles" @@ -3081,6 +3081,12 @@ 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. """ @@ -3190,6 +3196,11 @@ 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. """ @@ -3227,6 +3238,11 @@ 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 }