refactor: infer types from zod validation

This commit is contained in:
Christel Westerberg
2024-04-29 09:53:54 +02:00
parent 00f30811cf
commit 49b7aa89f8
18 changed files with 418 additions and 217 deletions

View File

@@ -22,6 +22,7 @@ query GetLoyaltyPage($locale: String!, $url: String!) {
...LoyaltyPageLink
}
}
totalCount
}
}
}
@@ -41,9 +42,11 @@ query GetLoyaltyPage($locale: String!, $url: String!) {
...AccountPageLink
}
}
totalCount
}
title
subtitle
open_in_new_tab
}
}
}
@@ -55,16 +58,11 @@ query GetLoyaltyPage($locale: String!, $url: String!) {
embedded_itemsConnection {
edges {
node {
... on SysAsset {
title
url
dimension {
width
height
}
}
__typename
...Image
}
}
totalCount
}
}
}
@@ -86,7 +84,6 @@ query GetLoyaltyPage($locale: String!, $url: String!) {
}
}
}
login_button_text
}
}
... on LoyaltyPageSidebarContent {
@@ -101,6 +98,7 @@ query GetLoyaltyPage($locale: String!, $url: String!) {
...Image
}
}
totalCount
}
}
}