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