add placeholder responses to get typescript to stop screaming

This commit is contained in:
2025-02-04 10:36:46 -08:00
parent 2116387203
commit 588d433fa3

View File

@@ -1,16 +1,28 @@
import { NotificationInput, Resolvers } from "../generated/graphql"; import { NotificationInput, NotificationResponse, Resolvers } from "../generated/graphql";
import { ServerContext } from "../ServerContext"; import { ServerContext } from "../ServerContext";
export const MutationResolvers: Resolvers<ServerContext> = { export const MutationResolvers: Resolvers<ServerContext> = {
Mutation: { Mutation: {
scheduleNotification: async (_parent, args, context, _info) => { scheduleNotification: async (_parent, args, context, _info) => {
const response: NotificationResponse = {
message: "Not implemented",
success: false
}
return response;
}, },
cancelNotification: async (_parent, args, context, _info) => { cancelNotification: async (_parent, args, context, _info) => {
const response: NotificationResponse = {
message: "Not implemented",
success: false
}
return response;
}, },
cancelAllNotifications: async (_parent, args, context, _info) => { cancelAllNotifications: async (_parent, args, context, _info) => {
const response: NotificationResponse = {
message: "Not implemented",
success: false
}
return response;
}, },
}, },
} }