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