feat(LOY-284): add accordion support to account pages

This commit is contained in:
Christian Andolf
2025-06-25 16:30:35 +02:00
parent 36d010a0a4
commit 471b1b6409
6 changed files with 141 additions and 8 deletions

View File

@@ -80,6 +80,109 @@ fragment GlobalAccordionBlock on GlobalAccordion {
}
}
fragment Accordion_AccountPage on AccountPageContentAccordion {
__typename
accordion {
title
accordions {
__typename
...GlobalAccordion_AccountPage
...SpecificAccordion_AccountPage
}
}
}
fragment GlobalAccordion_AccountPage on AccountPageContentAccordionBlockAccordionsGlobalAccordion {
__typename
global_accordion {
global_accordionConnection {
edges {
node {
...AccordionBlock
}
}
}
}
}
fragment SpecificAccordion_AccountPage on AccountPageContentAccordionBlockAccordionsSpecificAccordion {
__typename
specific_accordion {
questions {
question
answer {
json
embedded_itemsConnection {
edges {
node {
__typename
...SysAsset
...AccountPageLink
...CampaignPageLink
...CollectionPageLink
...ContentPageLink
...DestinationCityPageLink
...DestinationCountryPageLink
...DestinationOverviewPageLink
...HotelPageLink
...LoyaltyPageLink
...StartPageLink
}
}
}
}
}
}
}
fragment Accordion_AccountPageRefs on AccountPageContentAccordion {
accordion {
accordions {
__typename
...GlobalAccordion_AccountPageRefs
...SpecificAccordion_AccountPageRefs
}
}
}
fragment GlobalAccordion_AccountPageRefs on AccountPageContentAccordionBlockAccordionsGlobalAccordion {
global_accordion {
global_accordionConnection {
edges {
node {
...AccordionBlockRefs
}
}
}
}
}
fragment SpecificAccordion_AccountPageRefs on AccountPageContentAccordionBlockAccordionsSpecificAccordion {
specific_accordion {
questions {
answer {
embedded_itemsConnection {
edges {
node {
__typename
...AccountPageRef
...CampaignPageRef
...CollectionPageRef
...ContentPageRef
...DestinationCityPageRef
...DestinationCountryPageRef
...DestinationOverviewPageRef
...HotelPageRef
...LoyaltyPageRef
...StartPageRef
}
}
}
}
}
}
}
fragment Accordion_ContentPage on ContentPageBlocksAccordion {
__typename
accordion {