mobilizon/js/src/graphql/webPush.ts
Thomas Citharel 938f698b7a
Add webpush front-end support
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-06-04 13:33:12 +02:00

14 lines
371 B
TypeScript

import gql from "graphql-tag";
export const REGISTER_PUSH_MUTATION = gql`
mutation RegisterPush($endpoint: String!, $auth: String!, $p256dh: String!) {
registerPush(endpoint: $endpoint, auth: $auth, p256dh: $p256dh)
}
`;
export const UNREGISTER_PUSH_MUTATION = gql`
mutation UnRegisterPush($endpoint: String!) {
unregisterPush(endpoint: $endpoint)
}
`;