feat(WEB-131): add loyalty page
This commit is contained in:
140
lib/graphql/Query/LoyaltyPage.graphql
Normal file
140
lib/graphql/Query/LoyaltyPage.graphql
Normal 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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user