mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-16 23:40:32 +00:00
update graphql schema with updated arguments
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user