Feat/BOOK-424 campaign banner
Approved-by: Bianca Widstam
This commit is contained in:
82
packages/trpc/lib/graphql/Fragments/Banner.graphql
Normal file
82
packages/trpc/lib/graphql/Fragments/Banner.graphql
Normal file
@@ -0,0 +1,82 @@
|
||||
#import "./PageLink/AccountPageLink.graphql"
|
||||
#import "./PageLink/CampaignOverviewPageLink.graphql"
|
||||
#import "./PageLink/CampaignPageLink.graphql"
|
||||
#import "./PageLink/CollectionPageLink.graphql"
|
||||
#import "./PageLink/ContentPageLink.graphql"
|
||||
#import "./PageLink/DestinationCityPageLink.graphql"
|
||||
#import "./PageLink/DestinationCountryPageLink.graphql"
|
||||
#import "./PageLink/DestinationOverviewPageLink.graphql"
|
||||
#import "./PageLink/HotelPageLink.graphql"
|
||||
#import "./PageLink/LoyaltyPageLink.graphql"
|
||||
#import "./PageLink/StartPageLink.graphql"
|
||||
#import "./PageLink/PromoCampaignPageLink.graphql"
|
||||
|
||||
#import "./AccountPage/Ref.graphql"
|
||||
#import "./CampaignOverviewPage/Ref.graphql"
|
||||
#import "./CampaignPage/Ref.graphql"
|
||||
#import "./CollectionPage/Ref.graphql"
|
||||
#import "./ContentPage/Ref.graphql"
|
||||
#import "./DestinationCityPage/Ref.graphql"
|
||||
#import "./DestinationCountryPage/Ref.graphql"
|
||||
#import "./DestinationOverviewPage/Ref.graphql"
|
||||
#import "./HotelPage/Ref.graphql"
|
||||
#import "./LoyaltyPage/Ref.graphql"
|
||||
#import "./StartPage/Ref.graphql"
|
||||
#import "./PromoCampaignPage/Ref.graphql"
|
||||
|
||||
fragment Banner on Banner {
|
||||
tag
|
||||
text
|
||||
link {
|
||||
title
|
||||
linkConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...AccountPageLink
|
||||
...CampaignOverviewPageLink
|
||||
...CampaignPageLink
|
||||
...CollectionPageLink
|
||||
...ContentPageLink
|
||||
...DestinationCityPageLink
|
||||
...DestinationCountryPageLink
|
||||
...DestinationOverviewPageLink
|
||||
...HotelPageLink
|
||||
...LoyaltyPageLink
|
||||
...StartPageLink
|
||||
...PromoCampaignPageLink
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
booking_code
|
||||
visible_on
|
||||
}
|
||||
|
||||
fragment BannerRef on Banner {
|
||||
link {
|
||||
linkConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...AccountPageRef
|
||||
...CampaignOverviewPageRef
|
||||
...CampaignPageRef
|
||||
...CollectionPageRef
|
||||
...ContentPageRef
|
||||
...DestinationCityPageRef
|
||||
...DestinationCountryPageRef
|
||||
...DestinationOverviewPageRef
|
||||
...HotelPageRef
|
||||
...LoyaltyPageRef
|
||||
...StartPageRef
|
||||
...PromoCampaignPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
visible_on
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
#import "../Fragments/System.graphql"
|
||||
|
||||
#import "../Fragments/Banner.graphql"
|
||||
|
||||
query GetSitewideCampaignBanner($locale: String!) {
|
||||
all_sitewide_campaign_banner(limit: 1, locale: $locale) {
|
||||
items {
|
||||
bannerConnection {
|
||||
edges {
|
||||
node {
|
||||
...Banner
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
query GetSitewideCampaignBannerRef($locale: String!) {
|
||||
all_sitewide_campaign_banner(limit: 1, locale: $locale) {
|
||||
items {
|
||||
bannerConnection {
|
||||
edges {
|
||||
node {
|
||||
...BannerRef
|
||||
}
|
||||
}
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user