update graphql schema with updated arguments

This commit is contained in:
2025-03-25 15:29:31 -07:00
parent fb49577cf6
commit 1321ff1347

View File

@@ -65,21 +65,29 @@ type Query {
systems: [System!]!
system(id: ID): System
isNotificationScheduled(input: NotificationInput!): Boolean
isNotificationScheduled(input: NotificationLookupArguments!): Boolean
secondsThresholdForNotification(input: NotificationLookupArguments!): Int
}
# Mutations
type Mutation {
scheduleNotification(input: NotificationInput!): NotificationResponse!
cancelNotification(input: NotificationInput!): NotificationResponse!
scheduleNotification(input: NotificationSchedulingArguments!): NotificationResponse!
cancelNotification(input: NotificationLookupArguments!): NotificationResponse!
}
input NotificationInput {
input NotificationLookupArguments {
deviceId: ID!
shuttleId: ID!
stopId: ID!
}
input NotificationSchedulingArguments {
deviceId: ID!
shuttleId: ID!
stopId: ID!
secondsThreshold: Int
}
type NotificationResponse {
success: Boolean!
message: String!
@@ -90,4 +98,5 @@ type Notification {
deviceId: ID!
shuttleId: ID!
stopId: ID!
secondsThreshold: Int
}