Skip to content

Commit

Permalink
Forgotten fil
Browse files Browse the repository at this point in the history
  • Loading branch information
a-limyr committed Dec 16, 2024
1 parent 0440bac commit 3e74e7e
Showing 1 changed file with 155 additions and 0 deletions.
155 changes: 155 additions & 0 deletions client/src/static/query/tripQuery.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,155 @@
import { graphql } from '../../gql';
import { print } from 'graphql/index';

// Generated trip query based on schema.graphql

export const query = graphql(`
query trip(
$accessEgressPenalty: [PenaltyForStreetMode!]
$alightSlackDefault: Int
$alightSlackList: [TransportModeSlack]
$arriveBy: Boolean
$banned: InputBanned
$bicycleOptimisationMethod: BicycleOptimisationMethod
$bikeSpeed: Float
$boardSlackDefault: Int
$boardSlackList: [TransportModeSlack]
$bookingTime: DateTime
$dateTime: DateTime
$filters: [TripFilterInput!]
$from: Location!
$ignoreRealtimeUpdates: Boolean
$includePlannedCancellations: Boolean
$includeRealtimeCancellations: Boolean
$itineraryFilters: ItineraryFilters
$locale: Locale
$maxAccessEgressDurationForMode: [StreetModeDurationInput!]
$maxDirectDurationForMode: [StreetModeDurationInput!]
$maximumAdditionalTransfers: Int
$maximumTransfers: Int
$modes: Modes
$numTripPatterns: Int
$pageCursor: String
$relaxTransitGroupPriority: RelaxCostInput
$searchWindow: Int
$timetableView: Boolean
$to: Location!
$transferPenalty: Int
$transferSlack: Int
$triangleFactors: TriangleFactors
$useBikeRentalAvailabilityInformation: Boolean
$via: [TripViaLocationInput!]
$waitReluctance: Float
$walkReluctance: Float
$walkSpeed: Float
$wheelchairAccessible: Boolean
$whiteListed: InputWhiteListed
) {
trip(
accessEgressPenalty: $accessEgressPenalty
alightSlackDefault: $alightSlackDefault
alightSlackList: $alightSlackList
arriveBy: $arriveBy
banned: $banned
bicycleOptimisationMethod: $bicycleOptimisationMethod
bikeSpeed: $bikeSpeed
boardSlackDefault: $boardSlackDefault
boardSlackList: $boardSlackList
bookingTime: $bookingTime
dateTime: $dateTime
filters: $filters
from: $from
ignoreRealtimeUpdates: $ignoreRealtimeUpdates
includePlannedCancellations: $includePlannedCancellations
includeRealtimeCancellations: $includeRealtimeCancellations
itineraryFilters: $itineraryFilters
locale: $locale
maxAccessEgressDurationForMode: $maxAccessEgressDurationForMode
maxDirectDurationForMode: $maxDirectDurationForMode
maximumAdditionalTransfers: $maximumAdditionalTransfers
maximumTransfers: $maximumTransfers
modes: $modes
numTripPatterns: $numTripPatterns
pageCursor: $pageCursor
relaxTransitGroupPriority: $relaxTransitGroupPriority
searchWindow: $searchWindow
timetableView: $timetableView
to: $to
transferPenalty: $transferPenalty
transferSlack: $transferSlack
triangleFactors: $triangleFactors
useBikeRentalAvailabilityInformation: $useBikeRentalAvailabilityInformation
via: $via
waitReluctance: $waitReluctance
walkReluctance: $walkReluctance
walkSpeed: $walkSpeed
wheelchairAccessible: $wheelchairAccessible
whiteListed: $whiteListed
)
{
previousPageCursor
nextPageCursor
tripPatterns {
aimedStartTime
aimedEndTime
expectedEndTime
expectedStartTime
duration
distance
legs {
id
mode
aimedStartTime
aimedEndTime
expectedEndTime
expectedStartTime
realtime
distance
duration
fromPlace {
name
quay {
id
}
}
toPlace {
name
quay {
id
}
}
toEstimatedCall {
destinationDisplay {
frontText
}
}
line {
publicCode
name
id
presentation {
colour
}
}
authority {
name
id
}
pointsOnLink {
points
}
interchangeTo {
staySeated
}
interchangeFrom {
staySeated
}
}
systemNotices {
tag
}
}
}
}`);

export const queryAsString = print(query);

0 comments on commit 3e74e7e

Please sign in to comment.