refactor: zod validation and pr comments

This commit is contained in:
Christel Westerberg
2024-04-29 14:00:24 +02:00
parent 9f0b044daa
commit d9f1470eb7
31 changed files with 222 additions and 207 deletions

View File

@@ -7,8 +7,8 @@ query GetLoyaltyPage($locale: String!, $url: String!) {
all_loyalty_page(where: { url: $url, locale: $locale }) {
items {
blocks {
__typename
... on LoyaltyPageBlocksDynamicContent {
__typename
dynamic_content {
title
subtitle
@@ -28,7 +28,6 @@ query GetLoyaltyPage($locale: String!, $url: String!) {
}
}
... on LoyaltyPageBlocksCardGrid {
__typename
card_grid {
title
subtitle
@@ -51,7 +50,6 @@ query GetLoyaltyPage($locale: String!, $url: String!) {
}
}
... on LoyaltyPageBlocksContent {
__typename
content {
content {
json
@@ -70,8 +68,8 @@ query GetLoyaltyPage($locale: String!, $url: String!) {
}
title
sidebar {
__typename
... on LoyaltyPageSidebarJoinLoyaltyContact {
__typename
join_loyalty_contact {
title
preamble
@@ -87,7 +85,6 @@ query GetLoyaltyPage($locale: String!, $url: String!) {
}
}
... on LoyaltyPageSidebarContent {
__typename
content {
content {
json