feat(WEB-131): add loyalty page

This commit is contained in:
Christel Westerberg
2024-04-17 16:20:55 +02:00
parent 4243056fe8
commit c00f7b78eb
21 changed files with 386 additions and 11 deletions

View File

@@ -0,0 +1,140 @@
query GetLoyaltyPage($locale: String!, $url: String!) {
all_loyalty_page(where: { url: $url, locale: $locale }) {
items {
content {
... on LoyaltyPageContentLoyaltyLevels {
__typename
loyalty_levels {
heading
sub_heading
level_card {
loyalty_level
}
}
}
... on LoyaltyPageContentCardGrid {
__typename
card_grid {
heading
subheading
cards {
referenceConnection {
edges {
node {
... on LoyaltyPage {
url
}
... on ContentPage {
web {
url
}
}
... on AccountPage {
url
}
}
}
}
heading
subheading
}
}
}
}
title
sidebar {
... on LoyaltyPageSidebarLoyaltyJoinContact {
__typename
loyalty_join_contact {
title
contact {
... on LoyaltyPageSidebarLoyaltyJoinContactBlockContactContact {
__typename
contact {
contact_fields
}
}
}
login_button_text
body {
json
embedded_itemsConnection {
edges {
node {
... on SysAsset {
title
dimension {
width
height
}
file_size
filename
url
}
}
}
}
}
}
}
... on LoyaltyPageSidebarContent {
__typename
content {
content {
json
embedded_itemsConnection {
edges {
node {
... on SysAsset {
title
url
file_size
filename
dimension {
width
height
}
}
}
}
}
}
}
}
}
web {
breadcrumbs {
title
parents {
href
title
}
}
original_url
seo_metadata {
description
title
imageConnection {
edges {
node {
file_size
filename
dimension {
height
width
}
url
title
}
}
}
}
}
system {
uid
created_at
updated_at
}
}
}
}