Merged in feat/LOY-362-promo-blocks (pull request #2880)
feat(LOY-362): add blocks * feat(LOY-362): add blocks * fix(LOY-362): hide RTE while waiting for CS Approved-by: Chuma Mcphoy (We Ahead)
This commit is contained in:
@@ -714,3 +714,107 @@ fragment SpecificAccordion_DestinationFilterBlocksRefs on DestinationFilterBlock
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fragment Accordion_PromoCampaignPage on PromoCampaignPageBlocksAccordion {
|
||||
__typename
|
||||
accordion {
|
||||
accordions {
|
||||
__typename
|
||||
...GlobalAccordion_PromoCampaignPage
|
||||
...SpecificAccordion_PromoCampaignPage
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fragment GlobalAccordion_PromoCampaignPage on PromoCampaignPageBlocksAccordionBlockAccordionsGlobalAccordion {
|
||||
__typename
|
||||
global_accordion {
|
||||
global_accordionConnection {
|
||||
edges {
|
||||
node {
|
||||
...AccordionBlock
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fragment SpecificAccordion_PromoCampaignPage on PromoCampaignPageBlocksAccordionBlockAccordionsSpecificAccordion {
|
||||
__typename
|
||||
specific_accordion {
|
||||
questions {
|
||||
question
|
||||
answer {
|
||||
json
|
||||
embedded_itemsConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...SysAsset
|
||||
...AccountPageLink
|
||||
...CampaignOverviewPageLink
|
||||
...CampaignPageLink
|
||||
...CollectionPageLink
|
||||
...ContentPageLink
|
||||
...DestinationCityPageLink
|
||||
...DestinationCountryPageLink
|
||||
...DestinationOverviewPageLink
|
||||
...HotelPageLink
|
||||
...LoyaltyPageLink
|
||||
...StartPageLink
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fragment Accordion_PromoCampaignPageRefs on PromoCampaignPageBlocksAccordion {
|
||||
accordion {
|
||||
accordions {
|
||||
__typename
|
||||
...GlobalAccordion_PromoCampaignPageRefs
|
||||
...SpecificAccordion_PromoCampaignPageRefs
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fragment GlobalAccordion_PromoCampaignPageRefs on PromoCampaignPageBlocksAccordionBlockAccordionsGlobalAccordion {
|
||||
global_accordion {
|
||||
global_accordionConnection {
|
||||
edges {
|
||||
node {
|
||||
...AccordionBlockRefs
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fragment SpecificAccordion_PromoCampaignPageRefs on PromoCampaignPageBlocksAccordionBlockAccordionsSpecificAccordion {
|
||||
specific_accordion {
|
||||
questions {
|
||||
answer {
|
||||
embedded_itemsConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...AccountPageRef
|
||||
...CampaignOverviewPageRef
|
||||
...CampaignPageRef
|
||||
...CollectionPageRef
|
||||
...ContentPageRef
|
||||
...DestinationCityPageRef
|
||||
...DestinationCountryPageRef
|
||||
...DestinationOverviewPageRef
|
||||
...HotelPageRef
|
||||
...LoyaltyPageRef
|
||||
...StartPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -284,3 +284,48 @@ fragment Content_DestinationFilterBlocksRefs on DestinationFilterBlocksContent {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fragment Content_PromoCampaign on PromoCampaignPageBlocksContent {
|
||||
content {
|
||||
content {
|
||||
embedded_itemsConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...AccountPageLink
|
||||
...CampaignOverviewPageLink
|
||||
...CampaignPageLink
|
||||
...CollectionPageLink
|
||||
...ContentPageLink
|
||||
...HotelPageLink
|
||||
...LoyaltyPageLink
|
||||
...StartPageLink
|
||||
}
|
||||
}
|
||||
}
|
||||
json
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fragment Content_PromoCampaignRefs on PromoCampaignPageBlocksContent {
|
||||
content {
|
||||
content {
|
||||
embedded_itemsConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...AccountPageRef
|
||||
...CampaignOverviewPageRef
|
||||
...CampaignPageRef
|
||||
...CollectionPageRef
|
||||
...ContentPageRef
|
||||
...HotelPageRef
|
||||
...LoyaltyPageRef
|
||||
...StartPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,12 +1,7 @@
|
||||
#import "../../Fragments/System.graphql"
|
||||
|
||||
#import "../../Fragments/CampaignPage/IncludedHotels.graphql"
|
||||
#import "../../Fragments/CampaignPage/Hero.graphql"
|
||||
|
||||
#import "../../Fragments/Blocks/Accordion.graphql"
|
||||
#import "../../Fragments/Blocks/Essentials.graphql"
|
||||
#import "../../Fragments/Blocks/CarouselCards.graphql"
|
||||
#import "../../Fragments/Blocks/HotelListing.graphql"
|
||||
#import "../../Fragments/Blocks/Content.graphql"
|
||||
|
||||
query GetPromoCampaignPage($locale: String!, $uid: String!) {
|
||||
promo_campaign_page(uid: $uid, locale: $locale) {
|
||||
@@ -26,6 +21,10 @@ query GetPromoCampaignPage($locale: String!, $uid: String!) {
|
||||
startdate
|
||||
enddate
|
||||
level_selection
|
||||
blocks {
|
||||
__typename
|
||||
...Accordion_PromoCampaignPage
|
||||
}
|
||||
system {
|
||||
...System
|
||||
created_at
|
||||
@@ -39,6 +38,10 @@ query GetPromoCampaignPage($locale: String!, $uid: String!) {
|
||||
|
||||
query GetPromoCampaignPageRefs($locale: String!, $uid: String!) {
|
||||
promo_campaign_page(locale: $locale, uid: $uid) {
|
||||
blocks {
|
||||
__typename
|
||||
...Accordion_PromoCampaignPageRefs
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user