feat(LOY-284): add accordion support to account pages
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#import "../../Fragments/System.graphql"
|
||||
|
||||
#import "../../Fragments/Blocks/Accordion.graphql"
|
||||
#import "../../Fragments/Blocks/DynamicContent.graphql"
|
||||
#import "../../Fragments/Blocks/Shortcuts.graphql"
|
||||
#import "../../Fragments/Blocks/TextContent.graphql"
|
||||
@@ -14,6 +15,7 @@ query GetAccountPage($locale: String!, $uid: String!) {
|
||||
url
|
||||
content {
|
||||
__typename
|
||||
...Accordion_AccountPage
|
||||
...DynamicContent_AccountPage
|
||||
...Shortcuts_AccountPage
|
||||
...TextContent_AccountPage
|
||||
@@ -33,6 +35,7 @@ query GetAccountPageRefs($locale: String!, $uid: String!) {
|
||||
account_page(locale: $locale, uid: $uid) {
|
||||
content {
|
||||
__typename
|
||||
...Accordion_AccountPageRefs
|
||||
...DynamicContent_AccountPageRefs
|
||||
...Shortcuts_AccountPageRefs
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user