Merged in feat/rework-contentstack (pull request #3493)
Feat(SW-3708): refactor contentstack fetching (removing all refs) and cache invalidation * Remove all REFS * Revalidate correct language * PR fixes * PR fixes * Throw when errors from contentstack api Approved-by: Joakim Jäderberg
This commit is contained in:
@@ -1,17 +1,8 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import {
|
||||
Accordion_AccountPage,
|
||||
Accordion_AccountPageRefs,
|
||||
} from "../../Fragments/Blocks/Accordion.graphql"
|
||||
import {
|
||||
DynamicContent_AccountPage,
|
||||
DynamicContent_AccountPageRefs,
|
||||
} from "../../Fragments/Blocks/DynamicContent.graphql"
|
||||
import {
|
||||
Shortcuts_AccountPage,
|
||||
Shortcuts_AccountPageRefs,
|
||||
} from "../../Fragments/Blocks/Shortcuts.graphql"
|
||||
import { Accordion_AccountPage } from "../../Fragments/Blocks/Accordion.graphql"
|
||||
import { DynamicContent_AccountPage } from "../../Fragments/Blocks/DynamicContent.graphql"
|
||||
import { Shortcuts_AccountPage } from "../../Fragments/Blocks/Shortcuts.graphql"
|
||||
import { TextContent_AccountPage } from "../../Fragments/Blocks/TextContent.graphql"
|
||||
import { System } from "../../Fragments/System.graphql"
|
||||
|
||||
@@ -48,26 +39,6 @@ export const GetAccountPage = gql`
|
||||
${TextContent_AccountPage}
|
||||
`
|
||||
|
||||
export const GetAccountPageRefs = gql`
|
||||
query GetAccountPageRefs($locale: String!, $uid: String!) {
|
||||
account_page(locale: $locale, uid: $uid) {
|
||||
content {
|
||||
__typename
|
||||
...Accordion_AccountPageRefs
|
||||
...DynamicContent_AccountPageRefs
|
||||
...Shortcuts_AccountPageRefs
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
}
|
||||
${System}
|
||||
${Accordion_AccountPageRefs}
|
||||
${DynamicContent_AccountPageRefs}
|
||||
${Shortcuts_AccountPageRefs}
|
||||
`
|
||||
|
||||
export const GetDaDeEnUrlsAccountPage = gql`
|
||||
query GetDaDeEnUrlsAccountPage($uid: String!) {
|
||||
de: account_page(locale: "de", uid: $uid) {
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import {
|
||||
Breadcrumbs,
|
||||
BreadcrumbsRefs,
|
||||
} from "../../Fragments/Breadcrumbs/Breadcrumbs.graphql"
|
||||
import { Breadcrumbs } from "../../Fragments/Breadcrumbs/Breadcrumbs.graphql"
|
||||
import { System } from "../../Fragments/System.graphql"
|
||||
|
||||
export const GetMyPagesBreadcrumbs = gql`
|
||||
@@ -23,20 +20,3 @@ export const GetMyPagesBreadcrumbs = gql`
|
||||
${Breadcrumbs}
|
||||
${System}
|
||||
`
|
||||
|
||||
export const GetMyPagesBreadcrumbsRefs = gql`
|
||||
query GetMyPagesBreadcrumbsRefs($locale: String!, $uid: String!) {
|
||||
account_page(locale: $locale, uid: $uid) {
|
||||
web {
|
||||
breadcrumbs {
|
||||
...BreadcrumbsRefs
|
||||
}
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
}
|
||||
${BreadcrumbsRefs}
|
||||
${System}
|
||||
`
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import {
|
||||
Breadcrumbs,
|
||||
BreadcrumbsRefs,
|
||||
} from "../../Fragments/Breadcrumbs/Breadcrumbs.graphql"
|
||||
import { Breadcrumbs } from "../../Fragments/Breadcrumbs/Breadcrumbs.graphql"
|
||||
import { System } from "../../Fragments/System.graphql"
|
||||
|
||||
export const GetCampaignOverviewPageBreadcrumbs = gql`
|
||||
@@ -23,23 +20,3 @@ export const GetCampaignOverviewPageBreadcrumbs = gql`
|
||||
${Breadcrumbs}
|
||||
${System}
|
||||
`
|
||||
|
||||
export const GetCampaignOverviewPageBreadcrumbsRefs = gql`
|
||||
query GetCampaignOverviewPageBreadcrumbsRefs(
|
||||
$locale: String!
|
||||
$uid: String!
|
||||
) {
|
||||
campaign_overview_page(locale: $locale, uid: $uid) {
|
||||
web {
|
||||
breadcrumbs {
|
||||
...BreadcrumbsRefs
|
||||
}
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
}
|
||||
${BreadcrumbsRefs}
|
||||
${System}
|
||||
`
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import {
|
||||
Breadcrumbs,
|
||||
BreadcrumbsRefs,
|
||||
} from "../../Fragments/Breadcrumbs/Breadcrumbs.graphql"
|
||||
import { Breadcrumbs } from "../../Fragments/Breadcrumbs/Breadcrumbs.graphql"
|
||||
import { System } from "../../Fragments/System.graphql"
|
||||
|
||||
export const GetCampaignPageBreadcrumbs = gql`
|
||||
@@ -23,20 +20,3 @@ export const GetCampaignPageBreadcrumbs = gql`
|
||||
${Breadcrumbs}
|
||||
${System}
|
||||
`
|
||||
|
||||
export const GetCampaignPageBreadcrumbsRefs = gql`
|
||||
query GetCampaignPageBreadcrumbsRefs($locale: String!, $uid: String!) {
|
||||
campaign_page(locale: $locale, uid: $uid) {
|
||||
web {
|
||||
breadcrumbs {
|
||||
...BreadcrumbsRefs
|
||||
}
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
}
|
||||
${BreadcrumbsRefs}
|
||||
${System}
|
||||
`
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import {
|
||||
Breadcrumbs,
|
||||
BreadcrumbsRefs,
|
||||
} from "../../Fragments/Breadcrumbs/Breadcrumbs.graphql"
|
||||
import { Breadcrumbs } from "../../Fragments/Breadcrumbs/Breadcrumbs.graphql"
|
||||
import { System } from "../../Fragments/System.graphql"
|
||||
|
||||
export const GetCollectionPageBreadcrumbs = gql`
|
||||
@@ -23,20 +20,3 @@ export const GetCollectionPageBreadcrumbs = gql`
|
||||
${Breadcrumbs}
|
||||
${System}
|
||||
`
|
||||
|
||||
export const GetCollectionPageBreadcrumbsRefs = gql`
|
||||
query GetCollectionPageBreadcrumbsRefs($locale: String!, $uid: String!) {
|
||||
collection_page(locale: $locale, uid: $uid) {
|
||||
web {
|
||||
breadcrumbs {
|
||||
...BreadcrumbsRefs
|
||||
}
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
}
|
||||
${BreadcrumbsRefs}
|
||||
${System}
|
||||
`
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import {
|
||||
Breadcrumbs,
|
||||
BreadcrumbsRefs,
|
||||
} from "../../Fragments/Breadcrumbs/Breadcrumbs.graphql"
|
||||
import { Breadcrumbs } from "../../Fragments/Breadcrumbs/Breadcrumbs.graphql"
|
||||
import { System } from "../../Fragments/System.graphql"
|
||||
|
||||
export const GetContentPageBreadcrumbs = gql`
|
||||
@@ -23,20 +20,3 @@ export const GetContentPageBreadcrumbs = gql`
|
||||
${Breadcrumbs}
|
||||
${System}
|
||||
`
|
||||
|
||||
export const GetContentPageBreadcrumbsRefs = gql`
|
||||
query GetContentPageBreadcrumbsRefs($locale: String!, $uid: String!) {
|
||||
content_page(locale: $locale, uid: $uid) {
|
||||
web {
|
||||
breadcrumbs {
|
||||
...BreadcrumbsRefs
|
||||
}
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
}
|
||||
${BreadcrumbsRefs}
|
||||
${System}
|
||||
`
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import {
|
||||
Breadcrumbs,
|
||||
BreadcrumbsRefs,
|
||||
} from "../../Fragments/Breadcrumbs/Breadcrumbs.graphql"
|
||||
import { Breadcrumbs } from "../../Fragments/Breadcrumbs/Breadcrumbs.graphql"
|
||||
import { System } from "../../Fragments/System.graphql"
|
||||
|
||||
export const GetDestinationCityPageBreadcrumbs = gql`
|
||||
@@ -23,20 +20,3 @@ export const GetDestinationCityPageBreadcrumbs = gql`
|
||||
${Breadcrumbs}
|
||||
${System}
|
||||
`
|
||||
|
||||
export const GetDestinationCityPageBreadcrumbsRefs = gql`
|
||||
query GetDestinationCityPageBreadcrumbsRefs($locale: String!, $uid: String!) {
|
||||
destination_city_page(locale: $locale, uid: $uid) {
|
||||
web {
|
||||
breadcrumbs {
|
||||
...BreadcrumbsRefs
|
||||
}
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
}
|
||||
${BreadcrumbsRefs}
|
||||
${System}
|
||||
`
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import {
|
||||
Breadcrumbs,
|
||||
BreadcrumbsRefs,
|
||||
} from "../../Fragments/Breadcrumbs/Breadcrumbs.graphql"
|
||||
import { Breadcrumbs } from "../../Fragments/Breadcrumbs/Breadcrumbs.graphql"
|
||||
import { System } from "../../Fragments/System.graphql"
|
||||
|
||||
export const GetDestinationCountryPageBreadcrumbs = gql`
|
||||
@@ -23,23 +20,3 @@ export const GetDestinationCountryPageBreadcrumbs = gql`
|
||||
${Breadcrumbs}
|
||||
${System}
|
||||
`
|
||||
|
||||
export const GetDestinationCountryPageBreadcrumbsRefs = gql`
|
||||
query GetDestinationCountryPageBreadcrumbsRefs(
|
||||
$locale: String!
|
||||
$uid: String!
|
||||
) {
|
||||
destination_country_page(locale: $locale, uid: $uid) {
|
||||
web {
|
||||
breadcrumbs {
|
||||
...BreadcrumbsRefs
|
||||
}
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
}
|
||||
${BreadcrumbsRefs}
|
||||
${System}
|
||||
`
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import {
|
||||
Breadcrumbs,
|
||||
BreadcrumbsRefs,
|
||||
} from "../../Fragments/Breadcrumbs/Breadcrumbs.graphql"
|
||||
import { Breadcrumbs } from "../../Fragments/Breadcrumbs/Breadcrumbs.graphql"
|
||||
import { System } from "../../Fragments/System.graphql"
|
||||
|
||||
export const GetDestinationOverviewPageBreadcrumbs = gql`
|
||||
@@ -23,23 +20,3 @@ export const GetDestinationOverviewPageBreadcrumbs = gql`
|
||||
${Breadcrumbs}
|
||||
${System}
|
||||
`
|
||||
|
||||
export const GetDestinationOverviewPageBreadcrumbsRefs = gql`
|
||||
query GetDestinationOverviewPageBreadcrumbsRefs(
|
||||
$locale: String!
|
||||
$uid: String!
|
||||
) {
|
||||
destination_overview_page(locale: $locale, uid: $uid) {
|
||||
web {
|
||||
breadcrumbs {
|
||||
...BreadcrumbsRefs
|
||||
}
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
}
|
||||
${BreadcrumbsRefs}
|
||||
${System}
|
||||
`
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import {
|
||||
Breadcrumbs,
|
||||
BreadcrumbsRefs,
|
||||
} from "../../Fragments/Breadcrumbs/Breadcrumbs.graphql"
|
||||
import { Breadcrumbs } from "../../Fragments/Breadcrumbs/Breadcrumbs.graphql"
|
||||
import { System } from "../../Fragments/System.graphql"
|
||||
|
||||
export const GetHotelPageBreadcrumbs = gql`
|
||||
@@ -23,20 +20,3 @@ export const GetHotelPageBreadcrumbs = gql`
|
||||
${Breadcrumbs}
|
||||
${System}
|
||||
`
|
||||
|
||||
export const GetHotelPageBreadcrumbsRefs = gql`
|
||||
query GetHotelPageBreadcrumbsRefs($locale: String!, $uid: String!) {
|
||||
hotel_page(locale: $locale, uid: $uid) {
|
||||
web {
|
||||
breadcrumbs {
|
||||
...BreadcrumbsRefs
|
||||
}
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
}
|
||||
${BreadcrumbsRefs}
|
||||
${System}
|
||||
`
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import {
|
||||
Breadcrumbs,
|
||||
BreadcrumbsRefs,
|
||||
} from "../../Fragments/Breadcrumbs/Breadcrumbs.graphql"
|
||||
import { Breadcrumbs } from "../../Fragments/Breadcrumbs/Breadcrumbs.graphql"
|
||||
import { System } from "../../Fragments/System.graphql"
|
||||
|
||||
export const GetLoyaltyPageBreadcrumbs = gql`
|
||||
@@ -23,20 +20,3 @@ export const GetLoyaltyPageBreadcrumbs = gql`
|
||||
${Breadcrumbs}
|
||||
${System}
|
||||
`
|
||||
|
||||
export const GetLoyaltyPageBreadcrumbsRefs = gql`
|
||||
query GetLoyaltyPageBreadcrumbsRefs($locale: String!, $uid: String!) {
|
||||
loyalty_page(locale: $locale, uid: $uid) {
|
||||
web {
|
||||
breadcrumbs {
|
||||
...BreadcrumbsRefs
|
||||
}
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
}
|
||||
${BreadcrumbsRefs}
|
||||
${System}
|
||||
`
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import {
|
||||
Breadcrumbs,
|
||||
BreadcrumbsRefs,
|
||||
} from "../../Fragments/Breadcrumbs/Breadcrumbs.graphql"
|
||||
import { Breadcrumbs } from "../../Fragments/Breadcrumbs/Breadcrumbs.graphql"
|
||||
import { System } from "../../Fragments/System.graphql"
|
||||
|
||||
export const GetPromoCampaignPageBreadcrumbs = gql`
|
||||
@@ -23,20 +20,3 @@ export const GetPromoCampaignPageBreadcrumbs = gql`
|
||||
${Breadcrumbs}
|
||||
${System}
|
||||
`
|
||||
|
||||
export const GetPromoCampaignPageBreadcrumbsRefs = gql`
|
||||
query GetPromoCampaignPageBreadcrumbsRefs($locale: String!, $uid: String!) {
|
||||
promo_campaign_page(locale: $locale, uid: $uid) {
|
||||
web {
|
||||
breadcrumbs {
|
||||
...BreadcrumbsRefs
|
||||
}
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
}
|
||||
${BreadcrumbsRefs}
|
||||
${System}
|
||||
`
|
||||
|
||||
@@ -1,23 +1,12 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import {
|
||||
AllCampaigns,
|
||||
AllCampaignsRefs,
|
||||
} from "../../Fragments/Blocks/AllCampaigns.graphql"
|
||||
import {
|
||||
CarouselCards_CampaignOverviewPage,
|
||||
CarouselCards_CampaignOverviewPageRefs,
|
||||
} from "../../Fragments/Blocks/CarouselCards.graphql"
|
||||
import { AllCampaigns } from "../../Fragments/Blocks/AllCampaigns.graphql"
|
||||
import { CarouselCards_CampaignOverviewPage } from "../../Fragments/Blocks/CarouselCards.graphql"
|
||||
import { HotelListing_CampaignOverviewPage } from "../../Fragments/Blocks/HotelListing.graphql"
|
||||
import {
|
||||
NavigationLinks_CampaignOverviewPage,
|
||||
NavigationLinksRef_CampaignOverviewPage,
|
||||
} from "../../Fragments/CampaignOverviewPage/NavigationLinks.graphql"
|
||||
import { NavigationLinks_CampaignOverviewPage } from "../../Fragments/CampaignOverviewPage/NavigationLinks.graphql"
|
||||
import {
|
||||
TopCampaign,
|
||||
TopCampaignRef,
|
||||
TopPromoCampaign,
|
||||
TopPromoCampaignRef,
|
||||
} from "../../Fragments/CampaignOverviewPage/TopCampaign.graphql"
|
||||
import { System } from "../../Fragments/System.graphql"
|
||||
|
||||
@@ -67,40 +56,6 @@ export const GetCampaignOverviewPage = gql`
|
||||
${HotelListing_CampaignOverviewPage}
|
||||
`
|
||||
|
||||
export const GetCampaignOverviewPageRefs = gql`
|
||||
query GetCampaignOverviewPageRefs($locale: String!, $uid: String!) {
|
||||
campaign_overview_page(locale: $locale, uid: $uid) {
|
||||
header {
|
||||
...NavigationLinksRef_CampaignOverviewPage
|
||||
}
|
||||
top_campaign_block {
|
||||
campaignConnection {
|
||||
edges {
|
||||
node {
|
||||
...TopCampaignRef
|
||||
...TopPromoCampaignRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
blocks {
|
||||
__typename
|
||||
...CarouselCards_CampaignOverviewPageRefs
|
||||
...AllCampaignsRefs
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
}
|
||||
${System}
|
||||
${NavigationLinksRef_CampaignOverviewPage}
|
||||
${TopCampaignRef}
|
||||
${TopPromoCampaignRef}
|
||||
${CarouselCards_CampaignOverviewPageRefs}
|
||||
${AllCampaignsRefs}
|
||||
`
|
||||
|
||||
export const GetDaDeEnUrlsCampaignOverviewPage = gql`
|
||||
query GetDaDeEnUrlsCampaignOverviewPage($uid: String!) {
|
||||
de: campaign_overview_page(locale: "de", uid: $uid) {
|
||||
|
||||
@@ -1,19 +1,10 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import {
|
||||
Accordion_CampaignPage,
|
||||
Accordion_CampaignPageRefs,
|
||||
} from "../../Fragments/Blocks/Accordion.graphql"
|
||||
import {
|
||||
CarouselCards_CampaignPage,
|
||||
CarouselCards_CampaignPageRefs,
|
||||
} from "../../Fragments/Blocks/CarouselCards.graphql"
|
||||
import { Accordion_CampaignPage } from "../../Fragments/Blocks/Accordion.graphql"
|
||||
import { CarouselCards_CampaignPage } from "../../Fragments/Blocks/CarouselCards.graphql"
|
||||
import { Essentials_CampaignPage } from "../../Fragments/Blocks/Essentials.graphql"
|
||||
import { HotelListing_CampaignPage } from "../../Fragments/Blocks/HotelListing.graphql"
|
||||
import {
|
||||
Hero_CampaignPage,
|
||||
HeroRef_CampaignPage,
|
||||
} from "../../Fragments/CampaignPage/Hero.graphql"
|
||||
import { Hero_CampaignPage } from "../../Fragments/CampaignPage/Hero.graphql"
|
||||
import { CampaignPageIncludedHotels } from "../../Fragments/CampaignPage/IncludedHotels.graphql"
|
||||
import { System } from "../../Fragments/System.graphql"
|
||||
|
||||
@@ -61,26 +52,6 @@ export const GetCampaignPage = gql`
|
||||
${Hero_CampaignPage}
|
||||
`
|
||||
|
||||
export const GetCampaignPageRefs = gql`
|
||||
query GetCampaignPageRefs($locale: String!, $uid: String!) {
|
||||
campaign_page(locale: $locale, uid: $uid) {
|
||||
blocks {
|
||||
__typename
|
||||
...CarouselCards_CampaignPageRefs
|
||||
...Accordion_CampaignPageRefs
|
||||
}
|
||||
...HeroRef_CampaignPage
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
}
|
||||
${System}
|
||||
${CarouselCards_CampaignPageRefs}
|
||||
${Accordion_CampaignPageRefs}
|
||||
${HeroRef_CampaignPage}
|
||||
`
|
||||
|
||||
export const GetDaDeEnUrlsCampaignPage = gql`
|
||||
query GetDaDeEnUrlsCampaignPage($uid: String!) {
|
||||
de: campaign_page(locale: "de", uid: $uid) {
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import { Hero_CampaignPage } from "../../Fragments/CampaignPage/Hero.graphql"
|
||||
import { CampaignPageRef } from "../../Fragments/CampaignPage/Ref.graphql"
|
||||
import { System } from "../../Fragments/System.graphql"
|
||||
|
||||
export const GetCampaignPagesByHotelUid = gql`
|
||||
@@ -47,35 +46,3 @@ export const GetCampaignPagesByHotelUid = gql`
|
||||
${System}
|
||||
${Hero_CampaignPage}
|
||||
`
|
||||
|
||||
export const GetCampaignPagesByHotelUidRefs = gql`
|
||||
query GetCampaignPagesByHotelUidRefs(
|
||||
$locale: String!
|
||||
$hotelPageUid: String!
|
||||
$today: DateTime!
|
||||
) {
|
||||
all_campaign_page(
|
||||
where: {
|
||||
OR: [
|
||||
{
|
||||
included_hotels: { list_1: { hotel_page: { uid: $hotelPageUid } } }
|
||||
}
|
||||
{
|
||||
included_hotels: { list_2: { hotel_page: { uid: $hotelPageUid } } }
|
||||
}
|
||||
]
|
||||
AND: [
|
||||
{ OR: [{ startdate: null }, { startdate_lte: $today }] }
|
||||
{ OR: [{ enddate: null }, { enddate_gte: $today }] }
|
||||
]
|
||||
}
|
||||
locale: $locale
|
||||
limit: 100
|
||||
) {
|
||||
items {
|
||||
...CampaignPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
${CampaignPageRef}
|
||||
`
|
||||
|
||||
@@ -1,35 +1,14 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import {
|
||||
CardsGrid_CollectionPage,
|
||||
CardsGrid_CollectionPageRefs,
|
||||
} from "../../Fragments/Blocks/CardsGrid.graphql"
|
||||
import {
|
||||
DynamicContent_CollectionPage,
|
||||
DynamicContent_CollectionPageRefs,
|
||||
} from "../../Fragments/Blocks/DynamicContent.graphql"
|
||||
import {
|
||||
Shortcuts_CollectionPage,
|
||||
Shortcuts_CollectionPageRefs,
|
||||
} from "../../Fragments/Blocks/Shortcuts.graphql"
|
||||
import {
|
||||
UspGrid_CollectionPage,
|
||||
UspGrid_CollectionPageRefs,
|
||||
} from "../../Fragments/Blocks/UspGrid.graphql"
|
||||
import {
|
||||
VideoCard_CollectionPage,
|
||||
VideoCard_CollectionPageRefs,
|
||||
} from "../../Fragments/Blocks/VideoCard.graphql"
|
||||
import {
|
||||
NavigationLinks_CollectionPage,
|
||||
NavigationLinksRef_CollectionPage,
|
||||
} from "../../Fragments/CollectionPage/NavigationLinks.graphql"
|
||||
import {
|
||||
TopPrimaryButton_CollectionPage,
|
||||
TopPrimaryButtonRef_CollectionPage,
|
||||
} from "../../Fragments/CollectionPage/TopPrimaryButton.graphql"
|
||||
import { CardsGrid_CollectionPage } from "../../Fragments/Blocks/CardsGrid.graphql"
|
||||
import { DynamicContent_CollectionPage } from "../../Fragments/Blocks/DynamicContent.graphql"
|
||||
import { Shortcuts_CollectionPage } from "../../Fragments/Blocks/Shortcuts.graphql"
|
||||
import { UspGrid_CollectionPage } from "../../Fragments/Blocks/UspGrid.graphql"
|
||||
import { VideoCard_CollectionPage } from "../../Fragments/Blocks/VideoCard.graphql"
|
||||
import { NavigationLinks_CollectionPage } from "../../Fragments/CollectionPage/NavigationLinks.graphql"
|
||||
import { TopPrimaryButton_CollectionPage } from "../../Fragments/CollectionPage/TopPrimaryButton.graphql"
|
||||
import { System } from "../../Fragments/System.graphql"
|
||||
import { Video, VideoRef } from "../../Fragments/Video.graphql"
|
||||
import { Video } from "../../Fragments/Video.graphql"
|
||||
|
||||
export const GetCollectionPage = gql`
|
||||
query GetCollectionPage($locale: String!, $uid: String!) {
|
||||
@@ -78,40 +57,6 @@ export const GetCollectionPage = gql`
|
||||
${Video}
|
||||
`
|
||||
|
||||
export const GetCollectionPageRefs = gql`
|
||||
query GetCollectionPageRefs($locale: String!, $uid: String!) {
|
||||
collection_page(locale: $locale, uid: $uid) {
|
||||
hero_video {
|
||||
...VideoRef
|
||||
}
|
||||
header {
|
||||
...TopPrimaryButtonRef_CollectionPage
|
||||
...NavigationLinksRef_CollectionPage
|
||||
}
|
||||
blocks {
|
||||
__typename
|
||||
...CardsGrid_CollectionPageRefs
|
||||
...Shortcuts_CollectionPageRefs
|
||||
...UspGrid_CollectionPageRefs
|
||||
...DynamicContent_CollectionPageRefs
|
||||
...VideoCard_CollectionPageRefs
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
}
|
||||
${System}
|
||||
${TopPrimaryButtonRef_CollectionPage}
|
||||
${NavigationLinksRef_CollectionPage}
|
||||
${CardsGrid_CollectionPageRefs}
|
||||
${Shortcuts_CollectionPageRefs}
|
||||
${UspGrid_CollectionPageRefs}
|
||||
${DynamicContent_CollectionPageRefs}
|
||||
${VideoRef}
|
||||
${VideoCard_CollectionPageRefs}
|
||||
`
|
||||
|
||||
export const GetDaDeEnUrlsCollectionPage = gql`
|
||||
query GetDaDeEnUrlsCollectionPage($uid: String!) {
|
||||
de: collection_page(locale: "de", uid: $uid) {
|
||||
|
||||
@@ -1,78 +1,27 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import {
|
||||
Accordion_ContentPage,
|
||||
Accordion_ContentPageRefs,
|
||||
} from "../../Fragments/Blocks/Accordion.graphql"
|
||||
import {
|
||||
CardsGrid_ContentPage,
|
||||
CardsGrid_ContentPageRefs,
|
||||
} from "../../Fragments/Blocks/CardsGrid.graphql"
|
||||
import {
|
||||
Content_ContentPage,
|
||||
Content_ContentPageRefs,
|
||||
} from "../../Fragments/Blocks/Content.graphql"
|
||||
import {
|
||||
DynamicContent_ContentPage,
|
||||
DynamicContent_ContentPageRefs,
|
||||
} from "../../Fragments/Blocks/DynamicContent.graphql"
|
||||
import { Accordion_ContentPage } from "../../Fragments/Blocks/Accordion.graphql"
|
||||
import { CardsGrid_ContentPage } from "../../Fragments/Blocks/CardsGrid.graphql"
|
||||
import { Content_ContentPage } from "../../Fragments/Blocks/Content.graphql"
|
||||
import { DynamicContent_ContentPage } from "../../Fragments/Blocks/DynamicContent.graphql"
|
||||
import { HotelListing_ContentPage } from "../../Fragments/Blocks/HotelListing.graphql"
|
||||
import {
|
||||
Jotform_ContentPage,
|
||||
Jotform_ContentPageRefs,
|
||||
} from "../../Fragments/Blocks/Jotform.graphql"
|
||||
import {
|
||||
Shortcuts_ContentPage,
|
||||
Shortcuts_ContentPageRefs,
|
||||
} from "../../Fragments/Blocks/Shortcuts.graphql"
|
||||
import { Jotform_ContentPage } from "../../Fragments/Blocks/Jotform.graphql"
|
||||
import { Shortcuts_ContentPage } from "../../Fragments/Blocks/Shortcuts.graphql"
|
||||
import { Table_ContentPage } from "../../Fragments/Blocks/Table.graphql"
|
||||
import {
|
||||
TextCols_ContentPage,
|
||||
TextCols_ContentPageRef,
|
||||
} from "../../Fragments/Blocks/TextCols.graphql"
|
||||
import {
|
||||
UspGrid_ContentPage,
|
||||
UspGrid_ContentPageRefs,
|
||||
} from "../../Fragments/Blocks/UspGrid.graphql"
|
||||
import {
|
||||
Video_ContentPage,
|
||||
Video_ContentPageRefs,
|
||||
} from "../../Fragments/Blocks/Video.graphql"
|
||||
import {
|
||||
VideoCard_ContentPage,
|
||||
VideoCard_ContentPageRefs,
|
||||
} from "../../Fragments/Blocks/VideoCard.graphql"
|
||||
import {
|
||||
NavigationLinks_ContentPage,
|
||||
NavigationLinksRef_ContentPage,
|
||||
} from "../../Fragments/ContentPage/NavigationLinks.graphql"
|
||||
import {
|
||||
TopPrimaryButton_ContentPage,
|
||||
TopPrimaryButtonRef_ContentPage,
|
||||
} from "../../Fragments/ContentPage/TopPrimaryButton.graphql"
|
||||
import {
|
||||
ContentSidebar_ContentPage,
|
||||
ContentSidebar_ContentPageRefs,
|
||||
} from "../../Fragments/Sidebar/Content.graphql"
|
||||
import { TextCols_ContentPage } from "../../Fragments/Blocks/TextCols.graphql"
|
||||
import { UspGrid_ContentPage } from "../../Fragments/Blocks/UspGrid.graphql"
|
||||
import { Video_ContentPage } from "../../Fragments/Blocks/Video.graphql"
|
||||
import { VideoCard_ContentPage } from "../../Fragments/Blocks/VideoCard.graphql"
|
||||
import { NavigationLinks_ContentPage } from "../../Fragments/ContentPage/NavigationLinks.graphql"
|
||||
import { TopPrimaryButton_ContentPage } from "../../Fragments/ContentPage/TopPrimaryButton.graphql"
|
||||
import { ContentSidebar_ContentPage } from "../../Fragments/Sidebar/Content.graphql"
|
||||
import { DynamicContentSidebar_ContentPage } from "../../Fragments/Sidebar/DynamicContent.graphql"
|
||||
import {
|
||||
JoinLoyaltyContactSidebar_ContentPage,
|
||||
JoinLoyaltyContactSidebar_ContentPageRefs,
|
||||
} from "../../Fragments/Sidebar/JoinLoyaltyContact.graphql"
|
||||
import {
|
||||
QuickLinksSidebar_ContentPage,
|
||||
QuickLinksSidebar_ContentPageRefs,
|
||||
} from "../../Fragments/Sidebar/QuickLinks.graphql"
|
||||
import {
|
||||
ScriptedCardSidebar_ContentPage,
|
||||
ScriptedCardSidebar_ContentPageRefs,
|
||||
} from "../../Fragments/Sidebar/ScriptedCard.graphql"
|
||||
import {
|
||||
TeaserCardSidebar_ContentPage,
|
||||
TeaserCardSidebar_ContentPageRefs,
|
||||
} from "../../Fragments/Sidebar/TeaserCard.graphql"
|
||||
import { JoinLoyaltyContactSidebar_ContentPage } from "../../Fragments/Sidebar/JoinLoyaltyContact.graphql"
|
||||
import { QuickLinksSidebar_ContentPage } from "../../Fragments/Sidebar/QuickLinks.graphql"
|
||||
import { ScriptedCardSidebar_ContentPage } from "../../Fragments/Sidebar/ScriptedCard.graphql"
|
||||
import { TeaserCardSidebar_ContentPage } from "../../Fragments/Sidebar/TeaserCard.graphql"
|
||||
import { System } from "../../Fragments/System.graphql"
|
||||
import { Video, VideoRef } from "../../Fragments/Video.graphql"
|
||||
import { Video } from "../../Fragments/Video.graphql"
|
||||
|
||||
export const GetContentPage = gql`
|
||||
query GetContentPage($locale: String!, $uid: String!) {
|
||||
@@ -173,73 +122,6 @@ export const GetContentPageBlocksBatch2 = gql`
|
||||
${UspGrid_ContentPage}
|
||||
`
|
||||
|
||||
export const GetContentPageRefs = gql`
|
||||
query GetContentPageRefs($locale: String!, $uid: String!) {
|
||||
content_page(locale: $locale, uid: $uid) {
|
||||
hero_video {
|
||||
...VideoRef
|
||||
}
|
||||
header {
|
||||
dynamic_content {
|
||||
component
|
||||
}
|
||||
...NavigationLinksRef_ContentPage
|
||||
...TopPrimaryButtonRef_ContentPage
|
||||
}
|
||||
sidebar {
|
||||
__typename
|
||||
...ContentSidebar_ContentPageRefs
|
||||
...JoinLoyaltyContactSidebar_ContentPageRefs
|
||||
...ScriptedCardSidebar_ContentPageRefs
|
||||
...TeaserCardSidebar_ContentPageRefs
|
||||
...QuickLinksSidebar_ContentPageRefs
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
}
|
||||
${System}
|
||||
${NavigationLinksRef_ContentPage}
|
||||
${TopPrimaryButtonRef_ContentPage}
|
||||
${ContentSidebar_ContentPageRefs}
|
||||
${JoinLoyaltyContactSidebar_ContentPageRefs}
|
||||
${ScriptedCardSidebar_ContentPageRefs}
|
||||
${TeaserCardSidebar_ContentPageRefs}
|
||||
${QuickLinksSidebar_ContentPageRefs}
|
||||
${VideoRef}
|
||||
`
|
||||
|
||||
export const GetContentPageBlocksRefs = gql`
|
||||
query GetContentPageBlocksRefs($locale: String!, $uid: String!) {
|
||||
content_page(locale: $locale, uid: $uid) {
|
||||
blocks {
|
||||
__typename
|
||||
...Accordion_ContentPageRefs
|
||||
...CardsGrid_ContentPageRefs
|
||||
...Content_ContentPageRefs
|
||||
...DynamicContent_ContentPageRefs
|
||||
...Shortcuts_ContentPageRefs
|
||||
...TextCols_ContentPageRef
|
||||
...UspGrid_ContentPageRefs
|
||||
...Jotform_ContentPageRefs
|
||||
...VideoCard_ContentPageRefs
|
||||
...Video_ContentPageRefs
|
||||
}
|
||||
}
|
||||
}
|
||||
${Accordion_ContentPageRefs}
|
||||
${CardsGrid_ContentPageRefs}
|
||||
${Content_ContentPageRefs}
|
||||
${DynamicContent_ContentPageRefs}
|
||||
${Shortcuts_ContentPageRefs}
|
||||
${TextCols_ContentPageRef}
|
||||
${UspGrid_ContentPageRefs}
|
||||
${Jotform_ContentPageRefs}
|
||||
${VideoCard_ContentPageRefs}
|
||||
${Video_ContentPageRefs}
|
||||
`
|
||||
|
||||
export const GetDaDeEnUrlsContentPage = gql`
|
||||
query GetDaDeEnUrlsContentPage($uid: String!) {
|
||||
de: content_page(locale: "de", uid: $uid) {
|
||||
|
||||
@@ -1,27 +1,8 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import { AccountPageRef } from "../../Fragments/AccountPage/Ref.graphql"
|
||||
import {
|
||||
Accordion_DestinationCityPage,
|
||||
Accordion_DestinationCityPageRefs,
|
||||
} from "../../Fragments/Blocks/Accordion.graphql"
|
||||
import {
|
||||
Content_DestinationCityPage,
|
||||
Content_DestinationCityPageRefs,
|
||||
} from "../../Fragments/Blocks/Content.graphql"
|
||||
import { CampaignOverviewPageRef } from "../../Fragments/CampaignOverviewPage/Ref.graphql"
|
||||
import { CampaignPageRef } from "../../Fragments/CampaignPage/Ref.graphql"
|
||||
import { CollectionPageRef } from "../../Fragments/CollectionPage/Ref.graphql"
|
||||
import { ContentPageRef } from "../../Fragments/ContentPage/Ref.graphql"
|
||||
import { DestinationCityPageRef } from "../../Fragments/DestinationCityPage/Ref.graphql"
|
||||
import { DestinationCountryPageRef } from "../../Fragments/DestinationCountryPage/Ref.graphql"
|
||||
import {
|
||||
DestinationFilter,
|
||||
DestinationFilterRef,
|
||||
} from "../../Fragments/DestinationFilter.graphql"
|
||||
import { DestinationOverviewPageRef } from "../../Fragments/DestinationOverviewPage/Ref.graphql"
|
||||
import { HotelPageRef } from "../../Fragments/HotelPage/Ref.graphql"
|
||||
import { LoyaltyPageRef } from "../../Fragments/LoyaltyPage/Ref.graphql"
|
||||
import { Accordion_DestinationCityPage } from "../../Fragments/Blocks/Accordion.graphql"
|
||||
import { Content_DestinationCityPage } from "../../Fragments/Blocks/Content.graphql"
|
||||
import { DestinationFilter } from "../../Fragments/DestinationFilter.graphql"
|
||||
import { AccountPageLink } from "../../Fragments/PageLink/AccountPageLink.graphql"
|
||||
import { CampaignOverviewPageLink } from "../../Fragments/PageLink/CampaignOverviewPageLink.graphql"
|
||||
import { CampaignPageLink } from "../../Fragments/PageLink/CampaignPageLink.graphql"
|
||||
@@ -34,8 +15,6 @@ import { HotelPageLink } from "../../Fragments/PageLink/HotelPageLink.graphql"
|
||||
import { LoyaltyPageLink } from "../../Fragments/PageLink/LoyaltyPageLink.graphql"
|
||||
import { PromoCampaignPageLink } from "../../Fragments/PageLink/PromoCampaignPageLink.graphql"
|
||||
import { StartPageLink } from "../../Fragments/PageLink/StartPageLink.graphql"
|
||||
import { PromoCampaignPageRef } from "../../Fragments/PromoCampaignPage/Ref.graphql"
|
||||
import { StartPageRef } from "../../Fragments/StartPage/Ref.graphql"
|
||||
import { System } from "../../Fragments/System.graphql"
|
||||
|
||||
export const GetDestinationCityPage = gql`
|
||||
@@ -126,76 +105,6 @@ export const GetDestinationCityPage = gql`
|
||||
${PromoCampaignPageLink}
|
||||
`
|
||||
|
||||
export const GetDestinationCityPageRefs = gql`
|
||||
query GetDestinationCityPageRefs($locale: String!, $uid: String!) {
|
||||
destination_city_page(locale: $locale, uid: $uid) {
|
||||
destination_settings {
|
||||
city_denmark
|
||||
city_finland
|
||||
city_germany
|
||||
city_norway
|
||||
city_poland
|
||||
city_sweden
|
||||
location {
|
||||
longitude
|
||||
latitude
|
||||
default_zoom
|
||||
}
|
||||
}
|
||||
sidepeek_content {
|
||||
content {
|
||||
embedded_itemsConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...AccountPageRef
|
||||
...CampaignOverviewPageRef
|
||||
...CampaignPageRef
|
||||
...CollectionPageRef
|
||||
...ContentPageRef
|
||||
...DestinationCityPageRef
|
||||
...DestinationCountryPageRef
|
||||
...DestinationOverviewPageRef
|
||||
...HotelPageRef
|
||||
...LoyaltyPageRef
|
||||
...StartPageRef
|
||||
...PromoCampaignPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
blocks {
|
||||
__typename
|
||||
...Accordion_DestinationCityPageRefs
|
||||
...Content_DestinationCityPageRefs
|
||||
}
|
||||
seo_filters {
|
||||
...DestinationFilterRef
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
}
|
||||
${System}
|
||||
${Accordion_DestinationCityPageRefs}
|
||||
${Content_DestinationCityPageRefs}
|
||||
${DestinationFilterRef}
|
||||
${AccountPageRef}
|
||||
${CampaignOverviewPageRef}
|
||||
${CampaignPageRef}
|
||||
${CollectionPageRef}
|
||||
${ContentPageRef}
|
||||
${DestinationCityPageRef}
|
||||
${DestinationCountryPageRef}
|
||||
${DestinationOverviewPageRef}
|
||||
${HotelPageRef}
|
||||
${LoyaltyPageRef}
|
||||
${StartPageRef}
|
||||
${PromoCampaignPageRef}
|
||||
`
|
||||
|
||||
export const GetDaDeEnUrlsDestinationCityPage = gql`
|
||||
query GetDaDeEnUrlsDestinationCityPage($uid: String!) {
|
||||
de: destination_city_page(locale: "de", uid: $uid) {
|
||||
|
||||
@@ -1,27 +1,8 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import { AccountPageRef } from "../../Fragments/AccountPage/Ref.graphql"
|
||||
import {
|
||||
Accordion_DestinationCountryPage,
|
||||
Accordion_DestinationCountryPageRefs,
|
||||
} from "../../Fragments/Blocks/Accordion.graphql"
|
||||
import {
|
||||
Content_DestinationCountryPage,
|
||||
Content_DestinationCountryPageRefs,
|
||||
} from "../../Fragments/Blocks/Content.graphql"
|
||||
import { CampaignOverviewPageRef } from "../../Fragments/CampaignOverviewPage/Ref.graphql"
|
||||
import { CampaignPageRef } from "../../Fragments/CampaignPage/Ref.graphql"
|
||||
import { CollectionPageRef } from "../../Fragments/CollectionPage/Ref.graphql"
|
||||
import { ContentPageRef } from "../../Fragments/ContentPage/Ref.graphql"
|
||||
import { DestinationCityPageRef } from "../../Fragments/DestinationCityPage/Ref.graphql"
|
||||
import { DestinationCountryPageRef } from "../../Fragments/DestinationCountryPage/Ref.graphql"
|
||||
import {
|
||||
DestinationFilter,
|
||||
DestinationFilterRef,
|
||||
} from "../../Fragments/DestinationFilter.graphql"
|
||||
import { DestinationOverviewPageRef } from "../../Fragments/DestinationOverviewPage/Ref.graphql"
|
||||
import { HotelPageRef } from "../../Fragments/HotelPage/Ref.graphql"
|
||||
import { LoyaltyPageRef } from "../../Fragments/LoyaltyPage/Ref.graphql"
|
||||
import { Accordion_DestinationCountryPage } from "../../Fragments/Blocks/Accordion.graphql"
|
||||
import { Content_DestinationCountryPage } from "../../Fragments/Blocks/Content.graphql"
|
||||
import { DestinationFilter } from "../../Fragments/DestinationFilter.graphql"
|
||||
import { AccountPageLink } from "../../Fragments/PageLink/AccountPageLink.graphql"
|
||||
import { CampaignOverviewPageLink } from "../../Fragments/PageLink/CampaignOverviewPageLink.graphql"
|
||||
import { CampaignPageLink } from "../../Fragments/PageLink/CampaignPageLink.graphql"
|
||||
@@ -34,8 +15,6 @@ import { HotelPageLink } from "../../Fragments/PageLink/HotelPageLink.graphql"
|
||||
import { LoyaltyPageLink } from "../../Fragments/PageLink/LoyaltyPageLink.graphql"
|
||||
import { PromoCampaignPageLink } from "../../Fragments/PageLink/PromoCampaignPageLink.graphql"
|
||||
import { StartPageLink } from "../../Fragments/PageLink/StartPageLink.graphql"
|
||||
import { PromoCampaignPageRef } from "../../Fragments/PromoCampaignPage/Ref.graphql"
|
||||
import { StartPageRef } from "../../Fragments/StartPage/Ref.graphql"
|
||||
import { System } from "../../Fragments/System.graphql"
|
||||
|
||||
export const GetDestinationCountryPage = gql`
|
||||
@@ -121,63 +100,6 @@ export const GetDestinationCountryPage = gql`
|
||||
${Content_DestinationCountryPage}
|
||||
`
|
||||
|
||||
export const GetDestinationCountryPageRefs = gql`
|
||||
query GetDestinationCountryPageRefs($locale: String!, $uid: String!) {
|
||||
destination_country_page(locale: $locale, uid: $uid) {
|
||||
sidepeek_content {
|
||||
content {
|
||||
embedded_itemsConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...AccountPageRef
|
||||
...CampaignOverviewPageRef
|
||||
...CampaignPageRef
|
||||
...CollectionPageRef
|
||||
...ContentPageRef
|
||||
...DestinationCityPageRef
|
||||
...DestinationCountryPageRef
|
||||
...DestinationOverviewPageRef
|
||||
...HotelPageRef
|
||||
...LoyaltyPageRef
|
||||
...StartPageRef
|
||||
...PromoCampaignPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
blocks {
|
||||
__typename
|
||||
...Accordion_DestinationCountryPageRefs
|
||||
...Content_DestinationCountryPageRefs
|
||||
}
|
||||
seo_filters {
|
||||
...DestinationFilterRef
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
}
|
||||
${System}
|
||||
${AccountPageRef}
|
||||
${CampaignOverviewPageRef}
|
||||
${CampaignPageRef}
|
||||
${CollectionPageRef}
|
||||
${ContentPageRef}
|
||||
${DestinationCityPageRef}
|
||||
${DestinationCountryPageRef}
|
||||
${DestinationOverviewPageRef}
|
||||
${HotelPageRef}
|
||||
${LoyaltyPageRef}
|
||||
${StartPageRef}
|
||||
${PromoCampaignPageRef}
|
||||
${Accordion_DestinationCountryPageRefs}
|
||||
${Content_DestinationCountryPageRefs}
|
||||
${DestinationFilterRef}
|
||||
`
|
||||
|
||||
export const GetDaDeEnUrlsDestinationCountryPage = gql`
|
||||
query GetDaDeEnUrlsDestinationCountryPage($uid: String!) {
|
||||
de: destination_country_page(locale: "de", uid: $uid) {
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import {
|
||||
CardGallery_DestinationOverviewPage,
|
||||
CardGallery_DestinationOverviewPageRefs,
|
||||
} from "../../Fragments/Blocks/CardGallery.graphql"
|
||||
import { CardGallery_DestinationOverviewPage } from "../../Fragments/Blocks/CardGallery.graphql"
|
||||
import { System } from "../../Fragments/System.graphql"
|
||||
|
||||
export const GetDestinationOverviewPage = gql`
|
||||
@@ -34,22 +31,6 @@ export const GetDestinationOverviewPage = gql`
|
||||
${CardGallery_DestinationOverviewPage}
|
||||
`
|
||||
|
||||
export const GetDestinationOverviewPageRefs = gql`
|
||||
query GetDestinationOverviewPageRefs($locale: String!, $uid: String!) {
|
||||
destination_overview_page(locale: $locale, uid: $uid) {
|
||||
blocks {
|
||||
__typename
|
||||
...CardGallery_DestinationOverviewPageRefs
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
}
|
||||
${System}
|
||||
${CardGallery_DestinationOverviewPageRefs}
|
||||
`
|
||||
|
||||
export const GetDaDeEnUrlsDestinationOverviewPage = gql`
|
||||
query GetDaDeEnUrlsDestinationOverviewPage($uid: String!) {
|
||||
de: destination_overview_page(locale: "de", uid: $uid) {
|
||||
|
||||
@@ -1,17 +1,7 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import { AccountPageRef } from "../Fragments/AccountPage/Ref.graphql"
|
||||
import { CampaignOverviewPageRef } from "../Fragments/CampaignOverviewPage/Ref.graphql"
|
||||
import { CampaignPageRef } from "../Fragments/CampaignPage/Ref.graphql"
|
||||
import { CollectionPageRef } from "../Fragments/CollectionPage/Ref.graphql"
|
||||
import { ContentPageRef } from "../Fragments/ContentPage/Ref.graphql"
|
||||
import { DestinationCityPageRef } from "../Fragments/DestinationCityPage/Ref.graphql"
|
||||
import { DestinationCountryPageRef } from "../Fragments/DestinationCountryPage/Ref.graphql"
|
||||
import { DestinationOverviewPageRef } from "../Fragments/DestinationOverviewPage/Ref.graphql"
|
||||
import { AppDownloads } from "../Fragments/Footer/AppDownloads.graphql"
|
||||
import { SocialMedia } from "../Fragments/Footer/SocialMedia.graphql"
|
||||
import { HotelPageRef } from "../Fragments/HotelPage/Ref.graphql"
|
||||
import { LoyaltyPageRef } from "../Fragments/LoyaltyPage/Ref.graphql"
|
||||
import { AccountPageLink } from "../Fragments/PageLink/AccountPageLink.graphql"
|
||||
import { CampaignOverviewPageLink } from "../Fragments/PageLink/CampaignOverviewPageLink.graphql"
|
||||
import { CampaignPageLink } from "../Fragments/PageLink/CampaignPageLink.graphql"
|
||||
@@ -24,9 +14,6 @@ import { HotelPageLink } from "../Fragments/PageLink/HotelPageLink.graphql"
|
||||
import { LoyaltyPageLink } from "../Fragments/PageLink/LoyaltyPageLink.graphql"
|
||||
import { PromoCampaignPageLink } from "../Fragments/PageLink/PromoCampaignPageLink.graphql"
|
||||
import { StartPageLink } from "../Fragments/PageLink/StartPageLink.graphql"
|
||||
import { PromoCampaignPageRef } from "../Fragments/PromoCampaignPage/Ref.graphql"
|
||||
import { StartPageRef } from "../Fragments/StartPage/Ref.graphql"
|
||||
import { System } from "../Fragments/System.graphql"
|
||||
|
||||
export const GetFooter = gql`
|
||||
query GetFooter($locale: String!) {
|
||||
@@ -133,90 +120,3 @@ export const GetFooter = gql`
|
||||
${AppDownloads}
|
||||
${SocialMedia}
|
||||
`
|
||||
|
||||
export const GetFooterRef = gql`
|
||||
query GetFooterRef($locale: String!) {
|
||||
all_footer(limit: 1, locale: $locale) {
|
||||
items {
|
||||
main_links {
|
||||
pageConnection {
|
||||
edges {
|
||||
node {
|
||||
...AccountPageRef
|
||||
...CampaignOverviewPageRef
|
||||
...CampaignPageRef
|
||||
...CollectionPageRef
|
||||
...ContentPageRef
|
||||
...DestinationCityPageRef
|
||||
...DestinationCountryPageRef
|
||||
...DestinationOverviewPageRef
|
||||
...HotelPageRef
|
||||
...LoyaltyPageRef
|
||||
...StartPageRef
|
||||
...PromoCampaignPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
secondary_links {
|
||||
links {
|
||||
pageConnection {
|
||||
edges {
|
||||
node {
|
||||
...AccountPageRef
|
||||
...CampaignOverviewPageRef
|
||||
...CampaignPageRef
|
||||
...CollectionPageRef
|
||||
...ContentPageRef
|
||||
...DestinationCityPageRef
|
||||
...DestinationCountryPageRef
|
||||
...DestinationOverviewPageRef
|
||||
...HotelPageRef
|
||||
...LoyaltyPageRef
|
||||
...StartPageRef
|
||||
...PromoCampaignPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
tertiary_links {
|
||||
pageConnection {
|
||||
edges {
|
||||
node {
|
||||
...AccountPageRef
|
||||
...CampaignOverviewPageRef
|
||||
...CampaignPageRef
|
||||
...CollectionPageRef
|
||||
...ContentPageRef
|
||||
...DestinationCityPageRef
|
||||
...DestinationCountryPageRef
|
||||
...DestinationOverviewPageRef
|
||||
...HotelPageRef
|
||||
...LoyaltyPageRef
|
||||
...StartPageRef
|
||||
...PromoCampaignPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
${System}
|
||||
${AccountPageRef}
|
||||
${CampaignOverviewPageRef}
|
||||
${CampaignPageRef}
|
||||
${CollectionPageRef}
|
||||
${ContentPageRef}
|
||||
${DestinationCityPageRef}
|
||||
${DestinationCountryPageRef}
|
||||
${DestinationOverviewPageRef}
|
||||
${HotelPageRef}
|
||||
${LoyaltyPageRef}
|
||||
${StartPageRef}
|
||||
${PromoCampaignPageRef}
|
||||
`
|
||||
|
||||
@@ -1,17 +1,6 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import { AccountPageRef } from "../Fragments/AccountPage/Ref.graphql"
|
||||
import { CardBlock } from "../Fragments/Blocks/Card.graphql"
|
||||
import { CardBlockRef } from "../Fragments/Blocks/Refs/Card.graphql"
|
||||
import { CampaignOverviewPageRef } from "../Fragments/CampaignOverviewPage/Ref.graphql"
|
||||
import { CampaignPageRef } from "../Fragments/CampaignPage/Ref.graphql"
|
||||
import { CollectionPageRef } from "../Fragments/CollectionPage/Ref.graphql"
|
||||
import { ContentPageRef } from "../Fragments/ContentPage/Ref.graphql"
|
||||
import { DestinationCityPageRef } from "../Fragments/DestinationCityPage/Ref.graphql"
|
||||
import { DestinationCountryPageRef } from "../Fragments/DestinationCountryPage/Ref.graphql"
|
||||
import { DestinationOverviewPageRef } from "../Fragments/DestinationOverviewPage/Ref.graphql"
|
||||
import { HotelPageRef } from "../Fragments/HotelPage/Ref.graphql"
|
||||
import { LoyaltyPageRef } from "../Fragments/LoyaltyPage/Ref.graphql"
|
||||
import { AccountPageLink } from "../Fragments/PageLink/AccountPageLink.graphql"
|
||||
import { CampaignOverviewPageLink } from "../Fragments/PageLink/CampaignOverviewPageLink.graphql"
|
||||
import { CampaignPageLink } from "../Fragments/PageLink/CampaignPageLink.graphql"
|
||||
@@ -24,9 +13,6 @@ import { HotelPageLink } from "../Fragments/PageLink/HotelPageLink.graphql"
|
||||
import { LoyaltyPageLink } from "../Fragments/PageLink/LoyaltyPageLink.graphql"
|
||||
import { PromoCampaignPageLink } from "../Fragments/PageLink/PromoCampaignPageLink.graphql"
|
||||
import { StartPageLink } from "../Fragments/PageLink/StartPageLink.graphql"
|
||||
import { PromoCampaignPageRef } from "../Fragments/PromoCampaignPage/Ref.graphql"
|
||||
import { StartPageRef } from "../Fragments/StartPage/Ref.graphql"
|
||||
import { System } from "../Fragments/System.graphql"
|
||||
|
||||
export const GetHeader = gql`
|
||||
query GetHeader($locale: String!) {
|
||||
@@ -199,146 +185,3 @@ export const GetHeader = gql`
|
||||
${StartPageLink}
|
||||
${PromoCampaignPageLink}
|
||||
`
|
||||
|
||||
export const GetHeaderRef = gql`
|
||||
query GetHeaderRef($locale: String!) {
|
||||
all_header(limit: 1, locale: $locale) {
|
||||
items {
|
||||
top_link {
|
||||
logged_in {
|
||||
linkConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...AccountPageRef
|
||||
...CampaignOverviewPageRef
|
||||
...CampaignPageRef
|
||||
...CollectionPageRef
|
||||
...ContentPageRef
|
||||
...DestinationCityPageRef
|
||||
...DestinationCountryPageRef
|
||||
...DestinationOverviewPageRef
|
||||
...HotelPageRef
|
||||
...LoyaltyPageRef
|
||||
...StartPageRef
|
||||
...PromoCampaignPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
logged_out {
|
||||
linkConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...AccountPageRef
|
||||
...CampaignOverviewPageRef
|
||||
...CampaignPageRef
|
||||
...CollectionPageRef
|
||||
...ContentPageRef
|
||||
...DestinationCityPageRef
|
||||
...DestinationCountryPageRef
|
||||
...DestinationOverviewPageRef
|
||||
...HotelPageRef
|
||||
...LoyaltyPageRef
|
||||
...StartPageRef
|
||||
...PromoCampaignPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
menu_items {
|
||||
linkConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...AccountPageRef
|
||||
...CampaignOverviewPageRef
|
||||
...CampaignPageRef
|
||||
...CollectionPageRef
|
||||
...ContentPageRef
|
||||
...DestinationCityPageRef
|
||||
...DestinationCountryPageRef
|
||||
...DestinationOverviewPageRef
|
||||
...HotelPageRef
|
||||
...LoyaltyPageRef
|
||||
...StartPageRef
|
||||
...PromoCampaignPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
see_all_link {
|
||||
linkConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...AccountPageRef
|
||||
...CampaignOverviewPageRef
|
||||
...CampaignPageRef
|
||||
...CollectionPageRef
|
||||
...ContentPageRef
|
||||
...DestinationCityPageRef
|
||||
...DestinationCountryPageRef
|
||||
...DestinationOverviewPageRef
|
||||
...HotelPageRef
|
||||
...LoyaltyPageRef
|
||||
...StartPageRef
|
||||
...PromoCampaignPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
submenu {
|
||||
links {
|
||||
linkConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...AccountPageRef
|
||||
...CampaignOverviewPageRef
|
||||
...CampaignPageRef
|
||||
...CollectionPageRef
|
||||
...ContentPageRef
|
||||
...DestinationCityPageRef
|
||||
...DestinationCountryPageRef
|
||||
...DestinationOverviewPageRef
|
||||
...HotelPageRef
|
||||
...LoyaltyPageRef
|
||||
...StartPageRef
|
||||
...PromoCampaignPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
cardConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...CardBlockRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
${System}
|
||||
${CardBlockRef}
|
||||
${AccountPageRef}
|
||||
${CampaignOverviewPageRef}
|
||||
${CampaignPageRef}
|
||||
${CollectionPageRef}
|
||||
${ContentPageRef}
|
||||
${DestinationCityPageRef}
|
||||
${DestinationCountryPageRef}
|
||||
${DestinationOverviewPageRef}
|
||||
${HotelPageRef}
|
||||
${LoyaltyPageRef}
|
||||
${StartPageRef}
|
||||
${PromoCampaignPageRef}
|
||||
`
|
||||
|
||||
@@ -4,12 +4,6 @@ import {
|
||||
AccordionBlock,
|
||||
GlobalAccordionBlock,
|
||||
} from "../../Fragments/Blocks/Accordion.graphql"
|
||||
import {
|
||||
AccordionBlockRefs,
|
||||
GlobalAccordionBlockRefs,
|
||||
} from "../../Fragments/Blocks/Refs/Accordion.graphql"
|
||||
import { CollectionPageRef } from "../../Fragments/CollectionPage/Ref.graphql"
|
||||
import { ContentPageRef } from "../../Fragments/ContentPage/Ref.graphql"
|
||||
import { CollectionPageLink } from "../../Fragments/PageLink/CollectionPageLink.graphql"
|
||||
import { ContentPageLink } from "../../Fragments/PageLink/ContentPageLink.graphql"
|
||||
import { System } from "../../Fragments/System.graphql"
|
||||
@@ -121,52 +115,6 @@ export const GetHotelPage = gql`
|
||||
${CollectionPageLink}
|
||||
`
|
||||
|
||||
export const GetHotelPageRefs = gql`
|
||||
query GetHotelPageRefs($locale: String!, $uid: String!) {
|
||||
hotel_page(locale: $locale, uid: $uid) {
|
||||
faq {
|
||||
global_faqConnection {
|
||||
edges {
|
||||
node {
|
||||
...AccordionBlockRefs
|
||||
}
|
||||
}
|
||||
}
|
||||
specific_faq {
|
||||
...GlobalAccordionBlockRefs
|
||||
}
|
||||
}
|
||||
content {
|
||||
__typename
|
||||
... on HotelPageContentUpcomingActivitiesCard {
|
||||
upcoming_activities_card {
|
||||
hotel_page_activities_content_pageConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...CollectionPageRef
|
||||
...ContentPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
trackingProps: hotel_page(locale: "en", uid: $uid) {
|
||||
url
|
||||
}
|
||||
}
|
||||
${CollectionPageRef}
|
||||
${ContentPageRef}
|
||||
${AccordionBlockRefs}
|
||||
${GlobalAccordionBlockRefs}
|
||||
${System}
|
||||
`
|
||||
|
||||
export const GetDaDeEnUrlsHotelPage = gql`
|
||||
query GetDaDeEnUrlsHotelPage($uid: String!) {
|
||||
de: hotel_page(locale: "de", uid: $uid) {
|
||||
|
||||
@@ -1,30 +1,12 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import {
|
||||
CardsGrid_LoyaltyPage,
|
||||
CardsGrid_LoyaltyPageRefs,
|
||||
} from "../../Fragments/Blocks/CardsGrid.graphql"
|
||||
import {
|
||||
Content_LoyaltyPage,
|
||||
Content_LoyaltyPageRefs,
|
||||
} from "../../Fragments/Blocks/Content.graphql"
|
||||
import {
|
||||
DynamicContent_LoyaltyPage,
|
||||
DynamicContent_LoyaltyPageRefs,
|
||||
} from "../../Fragments/Blocks/DynamicContent.graphql"
|
||||
import {
|
||||
Shortcuts_LoyaltyPage,
|
||||
Shortcuts_LoyaltyPageRefs,
|
||||
} from "../../Fragments/Blocks/Shortcuts.graphql"
|
||||
import {
|
||||
ContentSidebar_LoyaltyPage,
|
||||
ContentSidebar_LoyaltyPageRefs,
|
||||
} from "../../Fragments/Sidebar/Content.graphql"
|
||||
import { CardsGrid_LoyaltyPage } from "../../Fragments/Blocks/CardsGrid.graphql"
|
||||
import { Content_LoyaltyPage } from "../../Fragments/Blocks/Content.graphql"
|
||||
import { DynamicContent_LoyaltyPage } from "../../Fragments/Blocks/DynamicContent.graphql"
|
||||
import { Shortcuts_LoyaltyPage } from "../../Fragments/Blocks/Shortcuts.graphql"
|
||||
import { ContentSidebar_LoyaltyPage } from "../../Fragments/Sidebar/Content.graphql"
|
||||
import { DynamicContentSidebar_LoyaltyPage } from "../../Fragments/Sidebar/DynamicContent.graphql"
|
||||
import {
|
||||
JoinLoyaltyContactSidebar_LoyaltyPage,
|
||||
JoinLoyaltyContactSidebar_LoyaltyPageRefs,
|
||||
} from "../../Fragments/Sidebar/JoinLoyaltyContact.graphql"
|
||||
import { JoinLoyaltyContactSidebar_LoyaltyPage } from "../../Fragments/Sidebar/JoinLoyaltyContact.graphql"
|
||||
import { System } from "../../Fragments/System.graphql"
|
||||
|
||||
export const GetLoyaltyPage = gql`
|
||||
@@ -67,35 +49,6 @@ export const GetLoyaltyPage = gql`
|
||||
${JoinLoyaltyContactSidebar_LoyaltyPage}
|
||||
`
|
||||
|
||||
export const GetLoyaltyPageRefs = gql`
|
||||
query GetLoyaltyPageRefs($locale: String!, $uid: String!) {
|
||||
loyalty_page(locale: $locale, uid: $uid) {
|
||||
blocks {
|
||||
__typename
|
||||
...CardsGrid_LoyaltyPageRefs
|
||||
...Content_LoyaltyPageRefs
|
||||
...DynamicContent_LoyaltyPageRefs
|
||||
...Shortcuts_LoyaltyPageRefs
|
||||
}
|
||||
sidebar {
|
||||
__typename
|
||||
...ContentSidebar_LoyaltyPageRefs
|
||||
...JoinLoyaltyContactSidebar_LoyaltyPageRefs
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
}
|
||||
${System}
|
||||
${CardsGrid_LoyaltyPageRefs}
|
||||
${Content_LoyaltyPageRefs}
|
||||
${DynamicContent_LoyaltyPageRefs}
|
||||
${Shortcuts_LoyaltyPageRefs}
|
||||
${ContentSidebar_LoyaltyPageRefs}
|
||||
${JoinLoyaltyContactSidebar_LoyaltyPageRefs}
|
||||
`
|
||||
|
||||
export const GetDaDeEnUrlsLoyaltyPage = gql`
|
||||
query GetDaDeEnUrlsLoyaltyPage($uid: String!) {
|
||||
de: loyalty_page(locale: "de", uid: $uid) {
|
||||
|
||||
@@ -1,13 +1,7 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import {
|
||||
Accordion_PromoCampaignPage,
|
||||
Accordion_PromoCampaignPageRefs,
|
||||
} from "../../Fragments/Blocks/Accordion.graphql"
|
||||
import {
|
||||
Content_PromoCampaignPage,
|
||||
Content_PromoCampaignPageRefs,
|
||||
} from "../../Fragments/Blocks/Content.graphql"
|
||||
import { Accordion_PromoCampaignPage } from "../../Fragments/Blocks/Accordion.graphql"
|
||||
import { Content_PromoCampaignPage } from "../../Fragments/Blocks/Content.graphql"
|
||||
import { System } from "../../Fragments/System.graphql"
|
||||
|
||||
export const GetPromoCampaignPage = gql`
|
||||
@@ -49,24 +43,6 @@ export const GetPromoCampaignPage = gql`
|
||||
${Content_PromoCampaignPage}
|
||||
`
|
||||
|
||||
export const GetPromoCampaignPageRefs = gql`
|
||||
query GetPromoCampaignPageRefs($locale: String!, $uid: String!) {
|
||||
promo_campaign_page(locale: $locale, uid: $uid) {
|
||||
blocks {
|
||||
__typename
|
||||
...Accordion_PromoCampaignPageRefs
|
||||
...Content_PromoCampaignPageRefs
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
}
|
||||
${System}
|
||||
${Accordion_PromoCampaignPageRefs}
|
||||
${Content_PromoCampaignPageRefs}
|
||||
`
|
||||
|
||||
export const GetDaDeEnUrlsPromoCampaignPage = gql`
|
||||
query GetDaDeEnUrlsPromoCampaignPage($uid: String!) {
|
||||
de: promo_campaign_page(locale: "de", uid: $uid) {
|
||||
|
||||
@@ -1,15 +1,5 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import { AccountPageRef } from "../Fragments/AccountPage/Ref.graphql"
|
||||
import { CampaignOverviewPageRef } from "../Fragments/CampaignOverviewPage/Ref.graphql"
|
||||
import { CampaignPageRef } from "../Fragments/CampaignPage/Ref.graphql"
|
||||
import { CollectionPageRef } from "../Fragments/CollectionPage/Ref.graphql"
|
||||
import { ContentPageRef } from "../Fragments/ContentPage/Ref.graphql"
|
||||
import { DestinationCityPageRef } from "../Fragments/DestinationCityPage/Ref.graphql"
|
||||
import { DestinationCountryPageRef } from "../Fragments/DestinationCountryPage/Ref.graphql"
|
||||
import { DestinationOverviewPageRef } from "../Fragments/DestinationOverviewPage/Ref.graphql"
|
||||
import { HotelPageRef } from "../Fragments/HotelPage/Ref.graphql"
|
||||
import { LoyaltyPageRef } from "../Fragments/LoyaltyPage/Ref.graphql"
|
||||
import { AccountPageLink } from "../Fragments/PageLink/AccountPageLink.graphql"
|
||||
import { CampaignOverviewPageLink } from "../Fragments/PageLink/CampaignOverviewPageLink.graphql"
|
||||
import { CampaignPageLink } from "../Fragments/PageLink/CampaignPageLink.graphql"
|
||||
@@ -22,9 +12,6 @@ import { HotelPageLink } from "../Fragments/PageLink/HotelPageLink.graphql"
|
||||
import { LoyaltyPageLink } from "../Fragments/PageLink/LoyaltyPageLink.graphql"
|
||||
import { PromoCampaignPageLink } from "../Fragments/PageLink/PromoCampaignPageLink.graphql"
|
||||
import { StartPageLink } from "../Fragments/PageLink/StartPageLink.graphql"
|
||||
import { PromoCampaignPageRef } from "../Fragments/PromoCampaignPage/Ref.graphql"
|
||||
import { StartPageRef } from "../Fragments/StartPage/Ref.graphql"
|
||||
import { System } from "../Fragments/System.graphql"
|
||||
|
||||
export const GetRewards = gql`
|
||||
query GetRewards($locale: String!, $rewardIds: [String!]) {
|
||||
@@ -77,49 +64,3 @@ export const GetRewards = gql`
|
||||
${StartPageLink}
|
||||
${PromoCampaignPageLink}
|
||||
`
|
||||
|
||||
export const GetRewardsRef = gql`
|
||||
query GetRewardsRef($locale: String!, $rewardIds: [String!]) {
|
||||
all_reward(locale: $locale, where: { reward_id_in: $rewardIds }) {
|
||||
items {
|
||||
redeem_description {
|
||||
embedded_itemsConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...AccountPageRef
|
||||
...CampaignOverviewPageRef
|
||||
...CampaignPageRef
|
||||
...CollectionPageRef
|
||||
...ContentPageRef
|
||||
...DestinationCityPageRef
|
||||
...DestinationCountryPageRef
|
||||
...DestinationOverviewPageRef
|
||||
...HotelPageRef
|
||||
...LoyaltyPageRef
|
||||
...StartPageRef
|
||||
...PromoCampaignPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
${System}
|
||||
${AccountPageRef}
|
||||
${CampaignOverviewPageRef}
|
||||
${CampaignPageRef}
|
||||
${CollectionPageRef}
|
||||
${ContentPageRef}
|
||||
${DestinationCityPageRef}
|
||||
${DestinationCountryPageRef}
|
||||
${DestinationOverviewPageRef}
|
||||
${HotelPageRef}
|
||||
${LoyaltyPageRef}
|
||||
${StartPageRef}
|
||||
${PromoCampaignPageRef}
|
||||
`
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import { Alert, AlertRef } from "../Fragments/Alert.graphql"
|
||||
import { System } from "../Fragments/System.graphql"
|
||||
import { Alert } from "../Fragments/Alert.graphql"
|
||||
|
||||
export const GetSiteConfig = gql`
|
||||
query GetSiteConfig($locale: String!) {
|
||||
@@ -24,28 +23,3 @@ export const GetSiteConfig = gql`
|
||||
}
|
||||
${Alert}
|
||||
`
|
||||
|
||||
export const GetSiteConfigRef = gql`
|
||||
query GetSiteConfigRef($locale: String!) {
|
||||
all_site_config(limit: 1, locale: $locale) {
|
||||
items {
|
||||
sitewide_alert {
|
||||
alerts {
|
||||
alertConnection {
|
||||
edges {
|
||||
node {
|
||||
...AlertRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
${System}
|
||||
${AlertRef}
|
||||
`
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import { Banner, BannerRef } from "../Fragments/Banner.graphql"
|
||||
import { System } from "../Fragments/System.graphql"
|
||||
import { Banner } from "../Fragments/Banner.graphql"
|
||||
|
||||
export const GetSitewideCampaignBanner = gql`
|
||||
query GetSitewideCampaignBanner($locale: String!) {
|
||||
@@ -19,24 +18,3 @@ export const GetSitewideCampaignBanner = gql`
|
||||
}
|
||||
${Banner}
|
||||
`
|
||||
|
||||
export const GetSitewideCampaignBannerRef = gql`
|
||||
query GetSitewideCampaignBannerRef($locale: String!) {
|
||||
all_sitewide_campaign_banner(limit: 1, locale: $locale) {
|
||||
items {
|
||||
bannerConnection {
|
||||
edges {
|
||||
node {
|
||||
...BannerRef
|
||||
}
|
||||
}
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
${System}
|
||||
${BannerRef}
|
||||
`
|
||||
|
||||
@@ -1,25 +1,10 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import {
|
||||
CardsGrid_StartPage,
|
||||
CardsGrid_StartPageRefs,
|
||||
} from "../../Fragments/Blocks/CardsGrid.graphql"
|
||||
import {
|
||||
CarouselCards_StartPage,
|
||||
CarouselCards_StartPageRefs,
|
||||
} from "../../Fragments/Blocks/CarouselCards.graphql"
|
||||
import {
|
||||
FullWidthCampaign,
|
||||
FullWidthCampaignRefs,
|
||||
} from "../../Fragments/Blocks/FullWidthCampaign.graphql"
|
||||
import {
|
||||
JoinScandicFriends_StartPage,
|
||||
JoinScandicFriends_StartPageRefs,
|
||||
} from "../../Fragments/Blocks/JoinScandicFriends.graphql"
|
||||
import {
|
||||
VideoCard_StartPage,
|
||||
VideoCard_StartPageRefs,
|
||||
} from "../../Fragments/Blocks/VideoCard.graphql"
|
||||
import { CardsGrid_StartPage } from "../../Fragments/Blocks/CardsGrid.graphql"
|
||||
import { CarouselCards_StartPage } from "../../Fragments/Blocks/CarouselCards.graphql"
|
||||
import { FullWidthCampaign } from "../../Fragments/Blocks/FullWidthCampaign.graphql"
|
||||
import { JoinScandicFriends_StartPage } from "../../Fragments/Blocks/JoinScandicFriends.graphql"
|
||||
import { VideoCard_StartPage } from "../../Fragments/Blocks/VideoCard.graphql"
|
||||
import { System } from "../../Fragments/System.graphql"
|
||||
|
||||
export const GetStartPage = gql`
|
||||
@@ -68,40 +53,6 @@ export const GetStartPage = gql`
|
||||
${VideoCard_StartPage}
|
||||
`
|
||||
|
||||
export const GetStartPageRefs = gql`
|
||||
query GetStartPageRefs($locale: String!, $uid: String!) {
|
||||
start_page(locale: $locale, uid: $uid) {
|
||||
blocks {
|
||||
__typename
|
||||
...CardsGrid_StartPageRefs
|
||||
...CarouselCards_StartPageRefs
|
||||
... on StartPageBlocksFullWidthCampaign {
|
||||
full_width_campaign {
|
||||
full_width_campaignConnection {
|
||||
edges {
|
||||
node {
|
||||
...FullWidthCampaignRefs
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
...JoinScandicFriends_StartPageRefs
|
||||
...VideoCard_StartPageRefs
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
}
|
||||
${System}
|
||||
${CardsGrid_StartPageRefs}
|
||||
${FullWidthCampaignRefs}
|
||||
${CarouselCards_StartPageRefs}
|
||||
${JoinScandicFriends_StartPageRefs}
|
||||
${VideoCard_StartPageRefs}
|
||||
`
|
||||
|
||||
export const GetDaDeEnUrlsStartPage = gql`
|
||||
query GetDaDeEnUrlsStartPage($uid: String!) {
|
||||
de: start_page(locale: "de", uid: $uid) {
|
||||
|
||||
@@ -1,15 +1,5 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import { AccountPageRef } from "../Fragments/AccountPage/Ref.graphql"
|
||||
import { CampaignOverviewPageRef } from "../Fragments/CampaignOverviewPage/Ref.graphql"
|
||||
import { CampaignPageRef } from "../Fragments/CampaignPage/Ref.graphql"
|
||||
import { CollectionPageRef } from "../Fragments/CollectionPage/Ref.graphql"
|
||||
import { ContentPageRef } from "../Fragments/ContentPage/Ref.graphql"
|
||||
import { DestinationCityPageRef } from "../Fragments/DestinationCityPage/Ref.graphql"
|
||||
import { DestinationCountryPageRef } from "../Fragments/DestinationCountryPage/Ref.graphql"
|
||||
import { DestinationOverviewPageRef } from "../Fragments/DestinationOverviewPage/Ref.graphql"
|
||||
import { HotelPageRef } from "../Fragments/HotelPage/Ref.graphql"
|
||||
import { LoyaltyPageRef } from "../Fragments/LoyaltyPage/Ref.graphql"
|
||||
import { AccountPageLink } from "../Fragments/PageLink/AccountPageLink.graphql"
|
||||
import { CampaignOverviewPageLink } from "../Fragments/PageLink/CampaignOverviewPageLink.graphql"
|
||||
import { CampaignPageLink } from "../Fragments/PageLink/CampaignPageLink.graphql"
|
||||
@@ -22,9 +12,6 @@ import { HotelPageLink } from "../Fragments/PageLink/HotelPageLink.graphql"
|
||||
import { LoyaltyPageLink } from "../Fragments/PageLink/LoyaltyPageLink.graphql"
|
||||
import { PromoCampaignPageLink } from "../Fragments/PageLink/PromoCampaignPageLink.graphql"
|
||||
import { StartPageLink } from "../Fragments/PageLink/StartPageLink.graphql"
|
||||
import { PromoCampaignPageRef } from "../Fragments/PromoCampaignPage/Ref.graphql"
|
||||
import { StartPageRef } from "../Fragments/StartPage/Ref.graphql"
|
||||
import { System } from "../Fragments/System.graphql"
|
||||
|
||||
export const GetUsePointsModal = gql`
|
||||
query GetUsePointsModal($locale: String!) {
|
||||
@@ -75,48 +62,3 @@ export const GetUsePointsModal = gql`
|
||||
${StartPageLink}
|
||||
${PromoCampaignPageLink}
|
||||
`
|
||||
export const GetUsePointsModalRefs = gql`
|
||||
query GetUsePointsModalRefs($locale: String!) {
|
||||
all_usepointsmodal(locale: $locale) {
|
||||
items {
|
||||
link_group {
|
||||
linkConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...AccountPageRef
|
||||
...CampaignOverviewPageRef
|
||||
...CampaignPageRef
|
||||
...CollectionPageRef
|
||||
...ContentPageRef
|
||||
...DestinationCityPageRef
|
||||
...DestinationCountryPageRef
|
||||
...DestinationOverviewPageRef
|
||||
...HotelPageRef
|
||||
...LoyaltyPageRef
|
||||
...StartPageRef
|
||||
...PromoCampaignPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
${AccountPageRef}
|
||||
${CampaignOverviewPageRef}
|
||||
${CampaignPageRef}
|
||||
${CollectionPageRef}
|
||||
${ContentPageRef}
|
||||
${DestinationCityPageRef}
|
||||
${DestinationCountryPageRef}
|
||||
${DestinationOverviewPageRef}
|
||||
${HotelPageRef}
|
||||
${LoyaltyPageRef}
|
||||
${StartPageRef}
|
||||
${PromoCampaignPageRef}
|
||||
${System}
|
||||
`
|
||||
|
||||
Reference in New Issue
Block a user