Files
web/packages/trpc/lib/graphql/Query/PromoCampaignPage/PromoCampaignPage.graphql
Chuma Mcphoy (We Ahead) daeb38832b Merged in feat/LOY-365-promo-campaign-eligible-levels (pull request #2864)
feat(LOY-365): Add support for eligible levels for promo campaign pages

* feat(LOY-365): Add support for eligible levels for promo campaign pages

* fix(LOY-365): update to most recent copy

* fix(LOY-365): cleanup css

* fix(LOY-365): Move ineligible message to the bottom

* fix(LOY-365): remove uneeded type


Approved-by: Erik Tiekstra
Approved-by: Matilda Landström
2025-09-29 06:58:15 +00:00

71 lines
1.5 KiB
GraphQL

#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"
query GetPromoCampaignPage($locale: String!, $uid: String!) {
promo_campaign_page(uid: $uid, locale: $locale) {
title
heading
subheading
promo_hero {
image
heading
benefits
}
page_settings {
booking_code
}
campaign_type
promo_code
startdate
enddate
level_selection
system {
...System
created_at
updated_at
}
}
trackingProps: promo_campaign_page(locale: "en", uid: $uid) {
url
}
}
query GetPromoCampaignPageRefs($locale: String!, $uid: String!) {
promo_campaign_page(locale: $locale, uid: $uid) {
system {
...System
}
}
}
query GetDaDeEnUrlsPromoCampaignPage($uid: String!) {
de: promo_campaign_page(locale: "de", uid: $uid) {
url
}
en: promo_campaign_page(locale: "en", uid: $uid) {
url
}
da: promo_campaign_page(locale: "da", uid: $uid) {
url
}
}
query GetFiNoSvUrlsPromoCampaignPage($uid: String!) {
fi: promo_campaign_page(locale: "fi", uid: $uid) {
url
}
no: promo_campaign_page(locale: "no", uid: $uid) {
url
}
sv: promo_campaign_page(locale: "sv", uid: $uid) {
url
}
}