saleor-dashboard/src/fragments/webhooks.ts
Bartłomiej Wiaduch ab2ce01c8a
Add WebhookHeaders component (#3107)
* Add custom request headers to webhook form
2023-02-22 14:14:51 +01:00

29 lines
431 B
TypeScript

import { gql } from "@apollo/client";
export const webhookFragment = gql`
fragment Webhook on Webhook {
id
name
isActive
app {
id
name
}
}
`;
export const webhookDetailsFragment = gql`
fragment WebhookDetails on Webhook {
...Webhook
syncEvents {
eventType
}
asyncEvents {
eventType
}
secretKey
targetUrl
subscriptionQuery
customHeaders
}
`;