From d8f3d0145f137419dd2622bab096459425c95243 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20G=C4=99bala?= <5421321+maarcingebala@users.noreply.github.com> Date: Thu, 30 Sep 2021 15:06:39 +0200 Subject: [PATCH] Add sales webhooks (#1454) --- locale/defaultMessages.json | 12 + schema.graphql | 6 + .../__snapshots__/Stories.test.ts.snap | 768 ++++++++++++++++++ src/types/globalTypes.ts | 3 + .../WebhookEvents/WebhookEvents.tsx | 12 + 5 files changed, 801 insertions(+) diff --git a/locale/defaultMessages.json b/locale/defaultMessages.json index 3a0e3d17b..07f23bee5 100644 --- a/locale/defaultMessages.json +++ b/locale/defaultMessages.json @@ -7892,6 +7892,10 @@ "context": "event", "string": "Product variant out of stock" }, + "src_dot_webhooks_dot_components_dot_WebhookEvents_dot_2328272362": { + "context": "event", + "string": "Sale deleted" + }, "src_dot_webhooks_dot_components_dot_WebhookEvents_dot_2454751033": { "context": "event", "string": "All events" @@ -7972,6 +7976,10 @@ "context": "event", "string": "List payment gateways" }, + "src_dot_webhooks_dot_components_dot_WebhookEvents_dot_4175628606": { + "context": "event", + "string": "Sale created" + }, "src_dot_webhooks_dot_components_dot_WebhookEvents_dot_4186057882": { "context": "event", "string": "Invoice requested" @@ -7988,6 +7996,10 @@ "context": "event", "string": "Translation updated" }, + "src_dot_webhooks_dot_components_dot_WebhookEvents_dot_523513128": { + "context": "event", + "string": "Sale updated" + }, "src_dot_webhooks_dot_components_dot_WebhookEvents_dot_679080833": { "context": "event", "string": "Page created" diff --git a/schema.graphql b/schema.graphql index 2776e94f4..b2990294f 100644 --- a/schema.graphql +++ b/schema.graphql @@ -7190,6 +7190,9 @@ enum WebhookEventTypeEnum { DRAFT_ORDER_CREATED DRAFT_ORDER_UPDATED DRAFT_ORDER_DELETED + SALE_CREATED + SALE_UPDATED + SALE_DELETED INVOICE_REQUESTED INVOICE_DELETED INVOICE_SENT @@ -7232,6 +7235,9 @@ enum WebhookSampleEventTypeEnum { DRAFT_ORDER_CREATED DRAFT_ORDER_UPDATED DRAFT_ORDER_DELETED + SALE_CREATED + SALE_UPDATED + SALE_DELETED INVOICE_REQUESTED INVOICE_DELETED INVOICE_SENT diff --git a/src/storybook/__snapshots__/Stories.test.ts.snap b/src/storybook/__snapshots__/Stories.test.ts.snap index 46f4b4038..5935b7111 100644 --- a/src/storybook/__snapshots__/Stories.test.ts.snap +++ b/src/storybook/__snapshots__/Stories.test.ts.snap @@ -27016,6 +27016,114 @@ exports[`Storyshots Views / Apps / Webhooks / Create webhook default 1`] = ` +
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +