mirror of
https://github.com/HSLdevcom/digitransit-ui
synced 2026-02-01 04:30:37 +01:00
54 lines
978 B
JavaScript
54 lines
978 B
JavaScript
import { graphql } from 'react-relay';
|
|
|
|
export default graphql`
|
|
query AlertsQuery($feedIds: [String!]) {
|
|
alerts(feeds: $feedIds) {
|
|
__typename
|
|
id
|
|
alertHeaderText
|
|
alertDescriptionText
|
|
alertEffect
|
|
alertSeverityLevel
|
|
effectiveStartDate
|
|
effectiveEndDate
|
|
alertUrl
|
|
entities {
|
|
__typename
|
|
... on Stop {
|
|
id
|
|
name
|
|
code
|
|
gtfsId
|
|
locationType
|
|
vehicleMode
|
|
platformCode
|
|
}
|
|
... on Route {
|
|
gtfsId
|
|
id
|
|
mode
|
|
shortName
|
|
type
|
|
}
|
|
... on StopOnRoute {
|
|
route {
|
|
gtfsId
|
|
id
|
|
mode
|
|
shortName
|
|
type
|
|
}
|
|
stop {
|
|
id
|
|
name
|
|
code
|
|
gtfsId
|
|
locationType
|
|
vehicleMode
|
|
platformCode
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
`;
|