2022-02-21 13:32:38 +00:00
|
|
|
import { gql } from "@apollo/client";
|
2019-10-09 06:01:52 +00:00
|
|
|
|
2022-03-09 08:56:55 +00:00
|
|
|
export const webhookCreate = gql`
|
2019-10-09 06:01:52 +00:00
|
|
|
mutation WebhookCreate($input: WebhookCreateInput!) {
|
2019-10-09 06:56:46 +00:00
|
|
|
webhookCreate(input: $input) {
|
2021-04-26 07:49:55 +00:00
|
|
|
errors {
|
2022-03-09 08:56:55 +00:00
|
|
|
...WebhookError
|
2019-10-18 12:01:26 +00:00
|
|
|
}
|
2019-10-09 06:01:52 +00:00
|
|
|
webhook {
|
2022-12-01 13:42:18 +00:00
|
|
|
...WebhookDetails
|
2019-10-09 06:01:52 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2022-03-09 08:56:55 +00:00
|
|
|
export const webhookUpdate = gql`
|
2019-10-09 06:01:52 +00:00
|
|
|
mutation WebhookUpdate($id: ID!, $input: WebhookUpdateInput!) {
|
2019-10-09 06:56:46 +00:00
|
|
|
webhookUpdate(id: $id, input: $input) {
|
2021-04-26 07:49:55 +00:00
|
|
|
errors {
|
2022-03-09 08:56:55 +00:00
|
|
|
...WebhookError
|
2019-10-18 12:01:26 +00:00
|
|
|
}
|
2019-10-09 06:01:52 +00:00
|
|
|
webhook {
|
2022-12-01 13:42:18 +00:00
|
|
|
...WebhookDetails
|
2019-10-09 06:01:52 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2022-03-09 08:56:55 +00:00
|
|
|
export const webhookDelete = gql`
|
2019-10-09 06:01:52 +00:00
|
|
|
mutation WebhookDelete($id: ID!) {
|
2019-10-09 06:56:46 +00:00
|
|
|
webhookDelete(id: $id) {
|
2021-04-26 07:49:55 +00:00
|
|
|
errors {
|
2022-03-09 08:56:55 +00:00
|
|
|
...WebhookError
|
2019-10-09 06:01:52 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|