saleor-dashboard/src/custom-apps/fixtures.ts
Jakub Neander 112747a51c
Add GraphiQL for defining subscription queries for webhooks (#2885)
Co-authored-by: Bartłomiej Wiaduch <tukan2can@gmail.com>
Co-authored-by: timur <timuric@gmail.com>
Co-authored-by: Michał Droń <dron.official@yahoo.com>
2023-01-24 14:59:14 +01:00

19 lines
494 B
TypeScript

import { WebhookDetailsFragment } from "@dashboard/graphql";
export const webhook: WebhookDetailsFragment = {
__typename: "Webhook",
app: {
__typename: "App",
id: "Jzx1ss23sEt==",
name: "Test App 2",
},
syncEvents: [],
asyncEvents: [],
id: "Jzx123sEt==",
isActive: true,
name: "Webhook Test 2",
secretKey: "zxczx_asdas",
subscriptionQuery:
"subscription { event { ... on ProductUpdated { product { name } } } }",
targetUrl: "http://www.getsaleor.com",
};