Merged in feat/support-for-all-page-links (pull request #1212)

Feat/support for all page links

* feat: added all page link connections to queries

* feat: updated output files


Approved-by: Fredrik Thorsson
Approved-by: Matilda Landström
This commit is contained in:
Erik Tiekstra
2025-01-27 11:21:37 +00:00
parent 527e691157
commit bf76c6277f
51 changed files with 1080 additions and 590 deletions

View File

@@ -1,14 +1,22 @@
#import "./PageLink/AccountPageLink.graphql" #import "./PageLink/AccountPageLink.graphql"
#import "./PageLink/CollectionPageLink.graphql"
#import "./PageLink/ContentPageLink.graphql" #import "./PageLink/ContentPageLink.graphql"
#import "./PageLink/DestinationCityPageLink.graphql"
#import "./PageLink/DestinationCountryPageLink.graphql"
#import "./PageLink/DestinationOverviewPageLink.graphql"
#import "./PageLink/HotelPageLink.graphql" #import "./PageLink/HotelPageLink.graphql"
#import "./PageLink/LoyaltyPageLink.graphql" #import "./PageLink/LoyaltyPageLink.graphql"
#import "./PageLink/CollectionPageLink.graphql" #import "./PageLink/StartPageLink.graphql"
#import "./AccountPage/Ref.graphql" #import "./AccountPage/Ref.graphql"
#import "./CollectionPage/Ref.graphql"
#import "./ContentPage/Ref.graphql" #import "./ContentPage/Ref.graphql"
#import "./DestinationCityPage/Ref.graphql"
#import "./DestinationCountryPage/Ref.graphql"
#import "./DestinationOverviewPage/Ref.graphql"
#import "./HotelPage/Ref.graphql" #import "./HotelPage/Ref.graphql"
#import "./LoyaltyPage/Ref.graphql" #import "./LoyaltyPage/Ref.graphql"
#import "./CollectionPage/Ref.graphql" #import "./StartPage/Ref.graphql"
fragment Alert on Alert { fragment Alert on Alert {
type type
@@ -27,10 +35,14 @@ fragment Alert on Alert {
node { node {
__typename __typename
...AccountPageLink ...AccountPageLink
...CollectionPageLink
...ContentPageLink ...ContentPageLink
...DestinationCityPageLink
...DestinationCountryPageLink
...DestinationOverviewPageLink
...HotelPageLink ...HotelPageLink
...LoyaltyPageLink ...LoyaltyPageLink
...CollectionPageLink ...StartPageLink
} }
} }
} }
@@ -47,10 +59,14 @@ fragment Alert on Alert {
node { node {
__typename __typename
...AccountPageLink ...AccountPageLink
...CollectionPageLink
...ContentPageLink ...ContentPageLink
...DestinationCityPageLink
...DestinationCountryPageLink
...DestinationOverviewPageLink
...HotelPageLink ...HotelPageLink
...LoyaltyPageLink ...LoyaltyPageLink
...CollectionPageLink ...StartPageLink
} }
} }
} }
@@ -66,10 +82,14 @@ fragment AlertRef on Alert {
node { node {
__typename __typename
...AccountPageRef ...AccountPageRef
...CollectionPageRef
...ContentPageRef ...ContentPageRef
...DestinationCityPageRef
...DestinationCountryPageRef
...DestinationOverviewPageRef
...HotelPageRef ...HotelPageRef
...LoyaltyPageRef ...LoyaltyPageRef
...CollectionPageRef ...StartPageRef
} }
} }
} }
@@ -81,10 +101,14 @@ fragment AlertRef on Alert {
node { node {
__typename __typename
...AccountPageRef ...AccountPageRef
...CollectionPageRef
...ContentPageRef ...ContentPageRef
...DestinationCityPageRef
...DestinationCountryPageRef
...DestinationOverviewPageRef
...HotelPageRef ...HotelPageRef
...LoyaltyPageRef ...LoyaltyPageRef
...CollectionPageRef ...StartPageRef
} }
} }
} }

View File

@@ -1,12 +1,22 @@
#import "../PageLink/AccountPageLink.graphql" #import "../PageLink/AccountPageLink.graphql"
#import "../PageLink/CollectionPageLink.graphql"
#import "../PageLink/ContentPageLink.graphql" #import "../PageLink/ContentPageLink.graphql"
#import "../PageLink/DestinationCityPageLink.graphql"
#import "../PageLink/DestinationCountryPageLink.graphql"
#import "../PageLink/DestinationOverviewPageLink.graphql"
#import "../PageLink/HotelPageLink.graphql" #import "../PageLink/HotelPageLink.graphql"
#import "../PageLink/LoyaltyPageLink.graphql" #import "../PageLink/LoyaltyPageLink.graphql"
#import "../PageLink/StartPageLink.graphql"
#import "../AccountPage/Ref.graphql" #import "../AccountPage/Ref.graphql"
#import "../CollectionPage/Ref.graphql"
#import "../ContentPage/Ref.graphql" #import "../ContentPage/Ref.graphql"
#import "../DestinationCityPage/Ref.graphql"
#import "../DestinationCountryPage/Ref.graphql"
#import "../DestinationOverviewPage/Ref.graphql"
#import "../HotelPage/Ref.graphql" #import "../HotelPage/Ref.graphql"
#import "../LoyaltyPage/Ref.graphql" #import "../LoyaltyPage/Ref.graphql"
#import "../StartPage/Ref.graphql"
#import "./Refs/Accordion.graphql" #import "./Refs/Accordion.graphql"
@@ -22,10 +32,14 @@ fragment AccordionBlock on Accordion {
node { node {
__typename __typename
...AccountPageLink ...AccountPageLink
...CollectionPageLink
...ContentPageLink ...ContentPageLink
...DestinationCityPageLink
...DestinationCountryPageLink
...DestinationOverviewPageLink
...HotelPageLink ...HotelPageLink
...LoyaltyPageLink ...LoyaltyPageLink
...CollectionPageLink ...StartPageLink
} }
} }
} }
@@ -44,10 +58,14 @@ fragment GlobalAccordionBlock on GlobalAccordion {
node { node {
__typename __typename
...AccountPageLink ...AccountPageLink
...CollectionPageLink
...ContentPageLink ...ContentPageLink
...DestinationCityPageLink
...DestinationCountryPageLink
...DestinationOverviewPageLink
...HotelPageLink ...HotelPageLink
...LoyaltyPageLink ...LoyaltyPageLink
...CollectionPageLink ...StartPageLink
} }
} }
} }
@@ -92,10 +110,14 @@ fragment SpecificAccordion on ContentPageBlocksAccordionBlockAccordionsSpecificA
node { node {
__typename __typename
...AccountPageLink ...AccountPageLink
...CollectionPageLink
...ContentPageLink ...ContentPageLink
...DestinationCityPageLink
...DestinationCountryPageLink
...DestinationOverviewPageLink
...HotelPageLink ...HotelPageLink
...LoyaltyPageLink ...LoyaltyPageLink
...CollectionPageLink ...StartPageLink
} }
} }
} }
@@ -135,10 +157,14 @@ fragment SpecificAccordionRefs on ContentPageBlocksAccordionBlockAccordionsSpeci
node { node {
__typename __typename
...AccountPageRef ...AccountPageRef
...CollectionPageRef
...ContentPageRef ...ContentPageRef
...DestinationCityPageRef
...DestinationCountryPageRef
...DestinationOverviewPageRef
...HotelPageRef ...HotelPageRef
...LoyaltyPageRef ...LoyaltyPageRef
...CollectionPageRef ...StartPageRef
} }
} }
} }

View File

@@ -1,10 +1,14 @@
#import "../System.graphql" #import "../System.graphql"
#import "../PageLink/AccountPageLink.graphql" #import "../PageLink/AccountPageLink.graphql"
#import "../PageLink/ContentPageLink.graphql"
#import "../PageLink/LoyaltyPageLink.graphql"
#import "../PageLink/HotelPageLink.graphql"
#import "../PageLink/CollectionPageLink.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"
fragment CardBlock on Card { fragment CardBlock on Card {
background_image background_image
@@ -27,10 +31,14 @@ fragment CardBlock on Card {
node { node {
__typename __typename
...AccountPageLink ...AccountPageLink
...ContentPageLink
...LoyaltyPageLink
...HotelPageLink
...CollectionPageLink ...CollectionPageLink
...ContentPageLink
...DestinationCityPageLink
...DestinationCountryPageLink
...DestinationOverviewPageLink
...HotelPageLink
...LoyaltyPageLink
...StartPageLink
} }
} }
} }
@@ -48,10 +56,14 @@ fragment CardBlock on Card {
node { node {
__typename __typename
...AccountPageLink ...AccountPageLink
...ContentPageLink
...LoyaltyPageLink
...HotelPageLink
...CollectionPageLink ...CollectionPageLink
...ContentPageLink
...DestinationCityPageLink
...DestinationCountryPageLink
...DestinationOverviewPageLink
...HotelPageLink
...LoyaltyPageLink
...StartPageLink
} }
} }
} }

View File

@@ -1,17 +1,25 @@
#import "../Image.graphql" #import "../Image.graphql"
#import "../ImageContainer.graphql" #import "../ImageContainer.graphql"
#import "../AccountPage/Ref.graphql"
#import "../ContentPage/Ref.graphql"
#import "../HotelPage/Ref.graphql"
#import "../LoyaltyPage/Ref.graphql"
#import "../CollectionPage/Ref.graphql"
#import "../PageLink/AccountPageLink.graphql" #import "../PageLink/AccountPageLink.graphql"
#import "../PageLink/CollectionPageLink.graphql"
#import "../PageLink/ContentPageLink.graphql" #import "../PageLink/ContentPageLink.graphql"
#import "../PageLink/DestinationCityPageLink.graphql"
#import "../PageLink/DestinationCountryPageLink.graphql"
#import "../PageLink/DestinationOverviewPageLink.graphql"
#import "../PageLink/HotelPageLink.graphql" #import "../PageLink/HotelPageLink.graphql"
#import "../PageLink/LoyaltyPageLink.graphql" #import "../PageLink/LoyaltyPageLink.graphql"
#import "../PageLink/CollectionPageLink.graphql" #import "../PageLink/StartPageLink.graphql"
#import "../AccountPage/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"
fragment Content_ContentPage on ContentPageBlocksContent { fragment Content_ContentPage on ContentPageBlocksContent {
content { content {
@@ -20,12 +28,16 @@ fragment Content_ContentPage on ContentPageBlocksContent {
edges { edges {
node { node {
__typename __typename
...ImageContainer
...AccountPageLink ...AccountPageLink
...ContentPageLink
...CollectionPageLink ...CollectionPageLink
...ContentPageLink
...DestinationCityPageLink
...DestinationCountryPageLink
...DestinationOverviewPageLink
...HotelPageLink ...HotelPageLink
...LoyaltyPageLink ...LoyaltyPageLink
...ImageContainer ...StartPageLink
} }
} }
} }
@@ -42,11 +54,14 @@ fragment Content_ContentPageRefs on ContentPageBlocksContent {
node { node {
__typename __typename
...AccountPageRef ...AccountPageRef
...ContentPageRef
...CollectionPageRef ...CollectionPageRef
...ContentPageRef
...DestinationCityPageRef
...DestinationCountryPageRef
...DestinationOverviewPageRef
...HotelPageRef ...HotelPageRef
...LoyaltyPageRef ...LoyaltyPageRef
...ImageContainerRef ...StartPageRef
} }
} }
} }
@@ -62,13 +77,17 @@ fragment Content_LoyaltyPage on LoyaltyPageBlocksContent {
edges { edges {
node { node {
__typename __typename
...AccountPageLink
...ContentPageLink
...Image ...Image
...ImageContainer ...ImageContainer
...LoyaltyPageLink ...AccountPageLink
...CollectionPageLink ...CollectionPageLink
...ContentPageLink
...DestinationCityPageLink
...DestinationCountryPageLink
...DestinationOverviewPageLink
...HotelPageLink ...HotelPageLink
...LoyaltyPageLink
...StartPageLink
} }
} }
} }
@@ -84,11 +103,14 @@ fragment Content_LoyaltyPageRefs on LoyaltyPageBlocksContent {
node { node {
__typename __typename
...AccountPageRef ...AccountPageRef
...ContentPageRef
...ImageContainerRef
...LoyaltyPageRef
...CollectionPageRef ...CollectionPageRef
...ContentPageRef
...DestinationCityPageRef
...DestinationCountryPageRef
...DestinationOverviewPageRef
...HotelPageRef ...HotelPageRef
...LoyaltyPageRef
...StartPageRef
} }
} }
} }

View File

@@ -1,14 +1,22 @@
#import "../AccountPage/Ref.graphql"
#import "../ContentPage/Ref.graphql"
#import "../HotelPage/Ref.graphql"
#import "../LoyaltyPage/Ref.graphql"
#import "../CollectionPage/Ref.graphql"
#import "../PageLink/AccountPageLink.graphql" #import "../PageLink/AccountPageLink.graphql"
#import "../PageLink/ContentPageLink.graphql"
#import "../PageLink/CollectionPageLink.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/HotelPageLink.graphql"
#import "../PageLink/LoyaltyPageLink.graphql" #import "../PageLink/LoyaltyPageLink.graphql"
#import "../PageLink/StartPageLink.graphql"
#import "../AccountPage/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"
fragment DynamicContent_AccountPage on AccountPageContentDynamicContent { fragment DynamicContent_AccountPage on AccountPageContentDynamicContent {
dynamic_content { dynamic_content {
@@ -22,10 +30,14 @@ fragment DynamicContent_AccountPage on AccountPageContentDynamicContent {
node { node {
__typename __typename
...AccountPageLink ...AccountPageLink
...LoyaltyPageLink
...ContentPageLink
...HotelPageLink
...CollectionPageLink ...CollectionPageLink
...ContentPageLink
...DestinationCityPageLink
...DestinationCountryPageLink
...DestinationOverviewPageLink
...HotelPageLink
...LoyaltyPageLink
...StartPageLink
} }
} }
} }
@@ -41,10 +53,14 @@ fragment DynamicContent_AccountPageRefs on AccountPageContentDynamicContent {
node { node {
__typename __typename
...AccountPageRef ...AccountPageRef
...LoyaltyPageRef
...ContentPageRef
...HotelPageRef
...CollectionPageRef ...CollectionPageRef
...ContentPageRef
...DestinationCityPageRef
...DestinationCountryPageRef
...DestinationOverviewPageRef
...HotelPageRef
...LoyaltyPageRef
...StartPageRef
} }
} }
} }
@@ -64,10 +80,14 @@ fragment DynamicContent_CollectionPage on CollectionPageBlocksDynamicContent {
node { node {
__typename __typename
...AccountPageLink ...AccountPageLink
...ContentPageLink
...CollectionPageLink ...CollectionPageLink
...ContentPageLink
...DestinationCityPageLink
...DestinationCountryPageLink
...DestinationOverviewPageLink
...HotelPageLink ...HotelPageLink
...LoyaltyPageLink ...LoyaltyPageLink
...StartPageLink
} }
} }
} }
@@ -82,11 +102,15 @@ fragment DynamicContent_CollectionPageRefs on CollectionPageBlocksDynamicContent
edges { edges {
node { node {
__typename __typename
...ContentPageRef
...HotelPageRef
...LoyaltyPageRef
...AccountPageRef ...AccountPageRef
...CollectionPageRef ...CollectionPageRef
...ContentPageRef
...DestinationCityPageRef
...DestinationCountryPageRef
...DestinationOverviewPageRef
...HotelPageRef
...LoyaltyPageRef
...StartPageRef
} }
} }
} }
@@ -106,10 +130,14 @@ fragment DynamicContent_ContentPage on ContentPageBlocksDynamicContent {
node { node {
__typename __typename
...AccountPageLink ...AccountPageLink
...ContentPageLink
...CollectionPageLink ...CollectionPageLink
...ContentPageLink
...DestinationCityPageLink
...DestinationCountryPageLink
...DestinationOverviewPageLink
...HotelPageLink ...HotelPageLink
...LoyaltyPageLink ...LoyaltyPageLink
...StartPageLink
} }
} }
} }
@@ -124,11 +152,15 @@ fragment DynamicContent_ContentPageRefs on ContentPageBlocksDynamicContent {
edges { edges {
node { node {
__typename __typename
...ContentPageRef
...HotelPageRef
...LoyaltyPageRef
...AccountPageRef ...AccountPageRef
...CollectionPageRef ...CollectionPageRef
...ContentPageRef
...DestinationCityPageRef
...DestinationCountryPageRef
...DestinationOverviewPageRef
...HotelPageRef
...LoyaltyPageRef
...StartPageRef
} }
} }
} }
@@ -147,11 +179,15 @@ fragment DynamicContent_LoyaltyPage on LoyaltyPageBlocksDynamicContent {
edges { edges {
node { node {
__typename __typename
...ContentPageLink
...LoyaltyPageLink
...AccountPageLink ...AccountPageLink
...HotelPageLink
...CollectionPageLink ...CollectionPageLink
...ContentPageLink
...DestinationCityPageLink
...DestinationCountryPageLink
...DestinationOverviewPageLink
...HotelPageLink
...LoyaltyPageLink
...StartPageLink
} }
} }
} }
@@ -166,11 +202,15 @@ fragment DynamicContent_LoyaltyPageRefs on LoyaltyPageBlocksDynamicContent {
edges { edges {
node { node {
__typename __typename
...ContentPageRef
...LoyaltyPageRef
...AccountPageRef ...AccountPageRef
...HotelPageRef
...CollectionPageRef ...CollectionPageRef
...ContentPageRef
...DestinationCityPageRef
...DestinationCountryPageRef
...DestinationOverviewPageRef
...HotelPageRef
...LoyaltyPageRef
...StartPageRef
} }
} }
} }

View File

@@ -1,10 +1,14 @@
#import "../System.graphql" #import "../System.graphql"
#import "../PageLink/AccountPageLink.graphql" #import "../PageLink/AccountPageLink.graphql"
#import "../PageLink/ContentPageLink.graphql"
#import "../PageLink/LoyaltyPageLink.graphql"
#import "../PageLink/HotelPageLink.graphql"
#import "../PageLink/CollectionPageLink.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"
fragment LoyaltyCardBlock on LoyaltyCard { fragment LoyaltyCardBlock on LoyaltyCard {
body_text body_text
@@ -23,11 +27,15 @@ fragment LoyaltyCardBlock on LoyaltyCard {
edges { edges {
node { node {
__typename __typename
...LoyaltyPageLink
...ContentPageLink
...AccountPageLink ...AccountPageLink
...HotelPageLink
...CollectionPageLink ...CollectionPageLink
...ContentPageLink
...DestinationCityPageLink
...DestinationCountryPageLink
...DestinationOverviewPageLink
...HotelPageLink
...LoyaltyPageLink
...StartPageLink
} }
} }
} }

View File

@@ -1,8 +1,12 @@
#import "../../AccountPage/Ref.graphql" #import "../../AccountPage/Ref.graphql"
#import "../../CollectionPage/Ref.graphql"
#import "../../ContentPage/Ref.graphql" #import "../../ContentPage/Ref.graphql"
#import "../../DestinationCityPage/Ref.graphql"
#import "../../DestinationCountryPage/Ref.graphql"
#import "../../DestinationOverviewPage/Ref.graphql"
#import "../../HotelPage/Ref.graphql" #import "../../HotelPage/Ref.graphql"
#import "../../LoyaltyPage/Ref.graphql" #import "../../LoyaltyPage/Ref.graphql"
#import "../../CollectionPage/Ref.graphql" #import "../../StartPage/Ref.graphql"
fragment AccordionBlockRefs on Accordion { fragment AccordionBlockRefs on Accordion {
questions { questions {
@@ -12,10 +16,14 @@ fragment AccordionBlockRefs on Accordion {
node { node {
__typename __typename
...AccountPageRef ...AccountPageRef
...CollectionPageRef
...ContentPageRef ...ContentPageRef
...DestinationCityPageRef
...DestinationCountryPageRef
...DestinationOverviewPageRef
...HotelPageRef ...HotelPageRef
...LoyaltyPageRef ...LoyaltyPageRef
...CollectionPageRef ...StartPageRef
} }
} }
} }
@@ -31,10 +39,14 @@ fragment GlobalAccordionBlockRefs on GlobalAccordion {
node { node {
__typename __typename
...AccountPageRef ...AccountPageRef
...CollectionPageRef
...ContentPageRef ...ContentPageRef
...DestinationCityPageRef
...DestinationCountryPageRef
...DestinationOverviewPageRef
...HotelPageRef ...HotelPageRef
...LoyaltyPageRef ...LoyaltyPageRef
...CollectionPageRef ...StartPageRef
} }
} }
} }

View File

@@ -1,8 +1,12 @@
#import "../../AccountPage/Ref.graphql" #import "../../AccountPage/Ref.graphql"
#import "../../ContentPage/Ref.graphql"
#import "../../LoyaltyPage/Ref.graphql"
#import "../../CollectionPage/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 "../../HotelPage/Ref.graphql"
#import "../../LoyaltyPage/Ref.graphql"
#import "../../StartPage/Ref.graphql"
fragment CardBlockRef on Card { fragment CardBlockRef on Card {
secondary_button { secondary_button {
@@ -11,10 +15,14 @@ fragment CardBlockRef on Card {
node { node {
__typename __typename
...AccountPageRef ...AccountPageRef
...ContentPageRef
...LoyaltyPageRef
...CollectionPageRef ...CollectionPageRef
...ContentPageRef
...DestinationCityPageRef
...DestinationCountryPageRef
...DestinationOverviewPageRef
...HotelPageRef ...HotelPageRef
...LoyaltyPageRef
...StartPageRef
} }
} }
} }
@@ -25,10 +33,14 @@ fragment CardBlockRef on Card {
node { node {
__typename __typename
...AccountPageRef ...AccountPageRef
...ContentPageRef
...LoyaltyPageRef
...CollectionPageRef ...CollectionPageRef
...ContentPageRef
...DestinationCityPageRef
...DestinationCountryPageRef
...DestinationOverviewPageRef
...HotelPageRef ...HotelPageRef
...LoyaltyPageRef
...StartPageRef
} }
} }
} }

View File

@@ -1,8 +1,12 @@
#import "../../AccountPage/Ref.graphql" #import "../../AccountPage/Ref.graphql"
#import "../../ContentPage/Ref.graphql"
#import "../../LoyaltyPage/Ref.graphql"
#import "../../HotelPage/Ref.graphql"
#import "../../CollectionPage/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"
fragment LoyaltyCardBlockRef on LoyaltyCard { fragment LoyaltyCardBlockRef on LoyaltyCard {
link { link {
@@ -10,11 +14,15 @@ fragment LoyaltyCardBlockRef on LoyaltyCard {
edges { edges {
node { node {
__typename __typename
...LoyaltyPageRef
...ContentPageRef
...AccountPageRef ...AccountPageRef
...HotelPageRef
...CollectionPageRef ...CollectionPageRef
...ContentPageRef
...DestinationCityPageRef
...DestinationCountryPageRef
...DestinationOverviewPageRef
...HotelPageRef
...LoyaltyPageRef
...StartPageRef
} }
} }
} }

View File

@@ -1,8 +1,12 @@
#import "../../AccountPage/Ref.graphql" #import "../../AccountPage/Ref.graphql"
#import "../../ContentPage/Ref.graphql"
#import "../../LoyaltyPage/Ref.graphql"
#import "../../HotelPage/Ref.graphql"
#import "../../CollectionPage/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"
fragment TeaserCardBlockRef on TeaserCard { fragment TeaserCardBlockRef on TeaserCard {
secondary_button { secondary_button {
@@ -11,10 +15,14 @@ fragment TeaserCardBlockRef on TeaserCard {
node { node {
__typename __typename
...AccountPageRef ...AccountPageRef
...ContentPageRef
...LoyaltyPageRef
...HotelPageRef
...CollectionPageRef ...CollectionPageRef
...ContentPageRef
...DestinationCityPageRef
...DestinationCountryPageRef
...DestinationOverviewPageRef
...HotelPageRef
...LoyaltyPageRef
...StartPageRef
} }
} }
} }
@@ -25,10 +33,14 @@ fragment TeaserCardBlockRef on TeaserCard {
node { node {
__typename __typename
...AccountPageRef ...AccountPageRef
...ContentPageRef
...LoyaltyPageRef
...HotelPageRef
...CollectionPageRef ...CollectionPageRef
...ContentPageRef
...DestinationCityPageRef
...DestinationCountryPageRef
...DestinationOverviewPageRef
...HotelPageRef
...LoyaltyPageRef
...StartPageRef
} }
} }
} }
@@ -40,10 +52,14 @@ fragment TeaserCardBlockRef on TeaserCard {
node { node {
__typename __typename
...AccountPageRef ...AccountPageRef
...ContentPageRef
...LoyaltyPageRef
...HotelPageRef
...CollectionPageRef ...CollectionPageRef
...ContentPageRef
...DestinationCityPageRef
...DestinationCountryPageRef
...DestinationOverviewPageRef
...HotelPageRef
...LoyaltyPageRef
...StartPageRef
} }
} }
} }
@@ -53,11 +69,15 @@ fragment TeaserCardBlockRef on TeaserCard {
edges { edges {
node { node {
__typename __typename
...ContentPageRef
...LoyaltyPageRef
...HotelPageRef
...CollectionPageRef
...AccountPageRef ...AccountPageRef
...CollectionPageRef
...ContentPageRef
...DestinationCityPageRef
...DestinationCountryPageRef
...DestinationOverviewPageRef
...HotelPageRef
...LoyaltyPageRef
...StartPageRef
} }
} }
} }
@@ -67,11 +87,15 @@ fragment TeaserCardBlockRef on TeaserCard {
edges { edges {
node { node {
__typename __typename
...ContentPageRef
...LoyaltyPageRef
...HotelPageRef
...CollectionPageRef
...AccountPageRef ...AccountPageRef
...CollectionPageRef
...ContentPageRef
...DestinationCityPageRef
...DestinationCountryPageRef
...DestinationOverviewPageRef
...HotelPageRef
...LoyaltyPageRef
...StartPageRef
} }
} }
} }

View File

@@ -1,14 +1,22 @@
#import "../AccountPage/Ref.graphql"
#import "../CollectionPage/Ref.graphql"
#import "../ContentPage/Ref.graphql"
#import "../LoyaltyPage/Ref.graphql"
#import "../HotelPage/Ref.graphql"
#import "../PageLink/AccountPageLink.graphql" #import "../PageLink/AccountPageLink.graphql"
#import "../PageLink/CollectionPageLink.graphql" #import "../PageLink/CollectionPageLink.graphql"
#import "../PageLink/ContentPageLink.graphql" #import "../PageLink/ContentPageLink.graphql"
#import "../PageLink/LoyaltyPageLink.graphql" #import "../PageLink/DestinationCityPageLink.graphql"
#import "../PageLink/DestinationCountryPageLink.graphql"
#import "../PageLink/DestinationOverviewPageLink.graphql"
#import "../PageLink/HotelPageLink.graphql" #import "../PageLink/HotelPageLink.graphql"
#import "../PageLink/LoyaltyPageLink.graphql"
#import "../PageLink/StartPageLink.graphql"
#import "../AccountPage/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"
fragment Shortcuts on Shortcuts { fragment Shortcuts on Shortcuts {
subtitle: preamble subtitle: preamble
@@ -22,10 +30,14 @@ fragment Shortcuts on Shortcuts {
node { node {
__typename __typename
...AccountPageLink ...AccountPageLink
...ContentPageLink
...LoyaltyPageLink
...CollectionPageLink ...CollectionPageLink
...ContentPageLink
...DestinationCityPageLink
...DestinationCountryPageLink
...DestinationOverviewPageLink
...HotelPageLink ...HotelPageLink
...LoyaltyPageLink
...StartPageLink
} }
} }
} }
@@ -63,10 +75,14 @@ fragment ShortcutsRefs on Shortcuts {
node { node {
__typename __typename
...AccountPageRef ...AccountPageRef
...ContentPageRef
...LoyaltyPageRef
...CollectionPageRef ...CollectionPageRef
...ContentPageRef
...DestinationCityPageRef
...DestinationCountryPageRef
...DestinationOverviewPageRef
...HotelPageRef ...HotelPageRef
...LoyaltyPageRef
...StartPageRef
} }
} }
} }

View File

@@ -1,10 +1,14 @@
#import "../System.graphql" #import "../System.graphql"
#import "../PageLink/AccountPageLink.graphql" #import "../PageLink/AccountPageLink.graphql"
#import "../PageLink/ContentPageLink.graphql"
#import "../PageLink/CollectionPageLink.graphql" #import "../PageLink/CollectionPageLink.graphql"
#import "../PageLink/LoyaltyPageLink.graphql" #import "../PageLink/ContentPageLink.graphql"
#import "../PageLink/DestinationCityPageLink.graphql"
#import "../PageLink/DestinationCountryPageLink.graphql"
#import "../PageLink/DestinationOverviewPageLink.graphql"
#import "../PageLink/HotelPageLink.graphql" #import "../PageLink/HotelPageLink.graphql"
#import "../PageLink/LoyaltyPageLink.graphql"
#import "../PageLink/StartPageLink.graphql"
fragment TeaserCardBlock on TeaserCard { fragment TeaserCardBlock on TeaserCard {
heading heading
@@ -26,11 +30,15 @@ fragment TeaserCardBlock on TeaserCard {
edges { edges {
node { node {
__typename __typename
...LoyaltyPageLink
...ContentPageLink
...AccountPageLink ...AccountPageLink
...CollectionPageLink ...CollectionPageLink
...ContentPageLink
...DestinationCityPageLink
...DestinationCountryPageLink
...DestinationOverviewPageLink
...HotelPageLink ...HotelPageLink
...LoyaltyPageLink
...StartPageLink
} }
} }
} }
@@ -47,11 +55,15 @@ fragment TeaserCardBlock on TeaserCard {
edges { edges {
node { node {
__typename __typename
...LoyaltyPageLink
...ContentPageLink
...CollectionPageLink
...AccountPageLink ...AccountPageLink
...CollectionPageLink
...ContentPageLink
...DestinationCityPageLink
...DestinationCountryPageLink
...DestinationOverviewPageLink
...HotelPageLink ...HotelPageLink
...LoyaltyPageLink
...StartPageLink
} }
} }
} }
@@ -67,10 +79,14 @@ fragment TeaserCardBlock on TeaserCard {
node { node {
__typename __typename
...AccountPageLink ...AccountPageLink
...ContentPageLink
...CollectionPageLink ...CollectionPageLink
...ContentPageLink
...DestinationCityPageLink
...DestinationCountryPageLink
...DestinationOverviewPageLink
...HotelPageLink ...HotelPageLink
...LoyaltyPageLink ...LoyaltyPageLink
...StartPageLink
} }
} }
} }
@@ -90,10 +106,14 @@ fragment TeaserCardBlock on TeaserCard {
node { node {
__typename __typename
...AccountPageLink ...AccountPageLink
...LoyaltyPageLink
...ContentPageLink
...CollectionPageLink ...CollectionPageLink
...ContentPageLink
...DestinationCityPageLink
...DestinationCountryPageLink
...DestinationOverviewPageLink
...HotelPageLink ...HotelPageLink
...LoyaltyPageLink
...StartPageLink
} }
} }
} }
@@ -112,10 +132,14 @@ fragment TeaserCardBlock on TeaserCard {
node { node {
__typename __typename
...AccountPageLink ...AccountPageLink
...LoyaltyPageLink
...ContentPageLink
...CollectionPageLink ...CollectionPageLink
...ContentPageLink
...DestinationCityPageLink
...DestinationCountryPageLink
...DestinationOverviewPageLink
...HotelPageLink ...HotelPageLink
...LoyaltyPageLink
...StartPageLink
} }
} }
} }

View File

@@ -1,14 +1,22 @@
#import "../ContentPage/Ref.graphql" #import "../PageLink/AccountPageLink.graphql"
#import "../HotelPage/Ref.graphql" #import "../PageLink/CollectionPageLink.graphql"
#import "../LoyaltyPage/Ref.graphql"
#import "../CollectionPage/Ref.graphql"
#import "../AccountPage/Ref.graphql"
#import "../PageLink/ContentPageLink.graphql" #import "../PageLink/ContentPageLink.graphql"
#import "../PageLink/DestinationCityPageLink.graphql"
#import "../PageLink/DestinationCountryPageLink.graphql"
#import "../PageLink/DestinationOverviewPageLink.graphql"
#import "../PageLink/HotelPageLink.graphql" #import "../PageLink/HotelPageLink.graphql"
#import "../PageLink/LoyaltyPageLink.graphql" #import "../PageLink/LoyaltyPageLink.graphql"
#import "../PageLink/CollectionPageLink.graphql" #import "../PageLink/StartPageLink.graphql"
#import "../PageLink/AccountPageLink.graphql"
#import "../AccountPage/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"
fragment TextCols_ContentPage on ContentPageBlocksTextCols { fragment TextCols_ContentPage on ContentPageBlocksTextCols {
text_cols { text_cols {
@@ -20,11 +28,15 @@ fragment TextCols_ContentPage on ContentPageBlocksTextCols {
edges { edges {
node { node {
__typename __typename
...AccountPageLink
...CollectionPageLink
...ContentPageLink ...ContentPageLink
...DestinationCityPageLink
...DestinationCountryPageLink
...DestinationOverviewPageLink
...HotelPageLink ...HotelPageLink
...LoyaltyPageLink ...LoyaltyPageLink
...CollectionPageLink ...StartPageLink
...AccountPageLink
} }
} }
} }
@@ -43,11 +55,15 @@ fragment TextCols_ContentPageRef on ContentPageBlocksTextCols {
edges { edges {
node { node {
__typename __typename
...AccountPageRef
...CollectionPageRef
...ContentPageRef ...ContentPageRef
...DestinationCityPageRef
...DestinationCountryPageRef
...DestinationOverviewPageRef
...HotelPageRef ...HotelPageRef
...LoyaltyPageRef ...LoyaltyPageRef
...CollectionPageRef ...StartPageRef
...AccountPageRef
} }
} }
} }

View File

@@ -1,14 +1,22 @@
#import "../PageLink/AccountPageLink.graphql" #import "../PageLink/AccountPageLink.graphql"
#import "../PageLink/CollectionPageLink.graphql"
#import "../PageLink/ContentPageLink.graphql" #import "../PageLink/ContentPageLink.graphql"
#import "../PageLink/DestinationCityPageLink.graphql"
#import "../PageLink/DestinationCountryPageLink.graphql"
#import "../PageLink/DestinationOverviewPageLink.graphql"
#import "../PageLink/HotelPageLink.graphql" #import "../PageLink/HotelPageLink.graphql"
#import "../PageLink/LoyaltyPageLink.graphql" #import "../PageLink/LoyaltyPageLink.graphql"
#import "../PageLink/CollectionPageLink.graphql" #import "../PageLink/StartPageLink.graphql"
#import "../AccountPage/Ref.graphql" #import "../AccountPage/Ref.graphql"
#import "../CollectionPage/Ref.graphql"
#import "../ContentPage/Ref.graphql" #import "../ContentPage/Ref.graphql"
#import "../DestinationCityPage/Ref.graphql"
#import "../DestinationCountryPage/Ref.graphql"
#import "../DestinationOverviewPage/Ref.graphql"
#import "../HotelPage/Ref.graphql" #import "../HotelPage/Ref.graphql"
#import "../LoyaltyPage/Ref.graphql" #import "../LoyaltyPage/Ref.graphql"
#import "../CollectionPage/Ref.graphql" #import "../StartPage/Ref.graphql"
fragment UspGrid_ContentPage on ContentPageBlocksUspGrid { fragment UspGrid_ContentPage on ContentPageBlocksUspGrid {
__typename __typename
@@ -27,10 +35,14 @@ fragment UspGrid_ContentPage on ContentPageBlocksUspGrid {
node { node {
__typename __typename
...AccountPageLink ...AccountPageLink
...CollectionPageLink
...ContentPageLink ...ContentPageLink
...DestinationCityPageLink
...DestinationCountryPageLink
...DestinationOverviewPageLink
...HotelPageLink ...HotelPageLink
...LoyaltyPageLink ...LoyaltyPageLink
...CollectionPageLink ...StartPageLink
} }
} }
} }
@@ -57,10 +69,14 @@ fragment UspGrid_ContentPageRefs on ContentPageBlocksUspGrid {
node { node {
__typename __typename
...AccountPageRef ...AccountPageRef
...CollectionPageRef
...ContentPageRef ...ContentPageRef
...DestinationCityPageRef
...DestinationCountryPageRef
...DestinationOverviewPageRef
...HotelPageRef ...HotelPageRef
...LoyaltyPageRef ...LoyaltyPageRef
...CollectionPageRef ...StartPageRef
} }
} }
} }
@@ -90,10 +106,14 @@ fragment UspGrid_CollectionPage on CollectionPageBlocksUspGrid {
node { node {
__typename __typename
...AccountPageLink ...AccountPageLink
...CollectionPageLink
...ContentPageLink ...ContentPageLink
...DestinationCityPageLink
...DestinationCountryPageLink
...DestinationOverviewPageLink
...HotelPageLink ...HotelPageLink
...LoyaltyPageLink ...LoyaltyPageLink
...CollectionPageLink ...StartPageLink
} }
} }
} }
@@ -120,10 +140,14 @@ fragment UspGrid_CollectionPageRefs on CollectionPageBlocksUspGrid {
node { node {
__typename __typename
...AccountPageRef ...AccountPageRef
...CollectionPageRef
...ContentPageRef ...ContentPageRef
...DestinationCityPageRef
...DestinationCountryPageRef
...DestinationOverviewPageRef
...HotelPageRef ...HotelPageRef
...LoyaltyPageRef ...LoyaltyPageRef
...CollectionPageRef ...StartPageRef
} }
} }
} }

View File

@@ -1,8 +1,22 @@
#import "../PageLink/AccountPageLink.graphql"
#import "../PageLink/CollectionPageLink.graphql" #import "../PageLink/CollectionPageLink.graphql"
#import "../PageLink/ContentPageLink.graphql" #import "../PageLink/ContentPageLink.graphql"
#import "../PageLink/DestinationCityPageLink.graphql"
#import "../PageLink/DestinationCountryPageLink.graphql"
#import "../PageLink/DestinationOverviewPageLink.graphql"
#import "../PageLink/HotelPageLink.graphql" #import "../PageLink/HotelPageLink.graphql"
#import "../PageLink/LoyaltyPageLink.graphql" #import "../PageLink/LoyaltyPageLink.graphql"
#import "../PageLink/AccountPageLink.graphql" #import "../PageLink/StartPageLink.graphql"
#import "../AccountPage/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"
fragment NavigationLinks_CollectionPage on CollectionPageHeader { fragment NavigationLinks_CollectionPage on CollectionPageHeader {
navigation_links { navigation_links {
@@ -11,11 +25,15 @@ fragment NavigationLinks_CollectionPage on CollectionPageHeader {
edges { edges {
node { node {
__typename __typename
...HotelPageLink ...AccountPageLink
...CollectionPageLink ...CollectionPageLink
...ContentPageLink ...ContentPageLink
...DestinationCityPageLink
...DestinationCountryPageLink
...DestinationOverviewPageLink
...HotelPageLink
...LoyaltyPageLink ...LoyaltyPageLink
...AccountPageLink ...StartPageLink
} }
} }
} }
@@ -28,11 +46,15 @@ fragment NavigationLinksRef_CollectionPage on CollectionPageHeader {
edges { edges {
node { node {
__typename __typename
...AccountPageRef
...CollectionPageRef
...ContentPageRef ...ContentPageRef
...DestinationCityPageRef
...DestinationCountryPageRef
...DestinationOverviewPageRef
...HotelPageRef ...HotelPageRef
...LoyaltyPageRef ...LoyaltyPageRef
...CollectionPageRef ...StartPageRef
...AccountPageRef
} }
} }
} }

View File

@@ -1,14 +1,22 @@
#import "../PageLink/AccountPageLink.graphql"
#import "../PageLink/CollectionPageLink.graphql"
#import "../PageLink/ContentPageLink.graphql" #import "../PageLink/ContentPageLink.graphql"
#import "../PageLink/DestinationCityPageLink.graphql"
#import "../PageLink/DestinationCountryPageLink.graphql"
#import "../PageLink/DestinationOverviewPageLink.graphql"
#import "../PageLink/HotelPageLink.graphql" #import "../PageLink/HotelPageLink.graphql"
#import "../PageLink/LoyaltyPageLink.graphql" #import "../PageLink/LoyaltyPageLink.graphql"
#import "../PageLink/CollectionPageLink.graphql" #import "../PageLink/StartPageLink.graphql"
#import "../PageLink/AccountPageLink.graphql"
#import "../ContentPage/Ref.graphql" #import "../AccountPage/Ref.graphql"
#import "../CollectionPage/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 "../HotelPage/Ref.graphql"
#import "../LoyaltyPage/Ref.graphql" #import "../LoyaltyPage/Ref.graphql"
#import "../AccountPage/Ref.graphql" #import "../StartPage/Ref.graphql"
fragment NavigationLinks_ContentPage on ContentPageHeader { fragment NavigationLinks_ContentPage on ContentPageHeader {
navigation_links { navigation_links {
@@ -17,11 +25,15 @@ fragment NavigationLinks_ContentPage on ContentPageHeader {
edges { edges {
node { node {
__typename __typename
...HotelPageLink
...ContentPageLink
...LoyaltyPageLink
...CollectionPageLink
...AccountPageLink ...AccountPageLink
...CollectionPageLink
...ContentPageLink
...DestinationCityPageLink
...DestinationCountryPageLink
...DestinationOverviewPageLink
...HotelPageLink
...LoyaltyPageLink
...StartPageLink
} }
} }
} }
@@ -34,11 +46,15 @@ fragment NavigationLinksRef_ContentPage on ContentPageHeader {
edges { edges {
node { node {
__typename __typename
...AccountPageRef
...CollectionPageRef
...ContentPageRef ...ContentPageRef
...DestinationCityPageRef
...DestinationCountryPageRef
...DestinationOverviewPageRef
...HotelPageRef ...HotelPageRef
...LoyaltyPageRef ...LoyaltyPageRef
...CollectionPageRef ...StartPageRef
...AccountPageRef
} }
} }
} }

View File

@@ -0,0 +1,7 @@
#import "../System.graphql"
fragment DestinationOverviewPageRef on DestinationOverviewPage {
system {
...System
}
}

View File

@@ -0,0 +1,9 @@
#import "../System.graphql"
fragment DestinationCityPageLink on DestinationCityPage {
title
url
system {
...System
}
}

View File

@@ -0,0 +1,9 @@
#import "../System.graphql"
fragment DestinationCountryPageLink on DestinationCountryPage {
title
url
system {
...System
}
}

View File

@@ -0,0 +1,9 @@
#import "../System.graphql"
fragment DestinationOverviewPageLink on DestinationOverviewPage {
title
url
system {
...System
}
}

View File

@@ -0,0 +1,9 @@
#import "../System.graphql"
fragment StartPageLink on StartPage {
title
url
system {
...System
}
}

View File

@@ -1,17 +1,25 @@
#import "../Image.graphql" #import "../Image.graphql"
#import "../ImageContainer.graphql" #import "../ImageContainer.graphql"
#import "../ContentPage/Ref.graphql"
#import "../LoyaltyPage/Ref.graphql"
#import "../CollectionPage/Ref.graphql"
#import "../HotelPage/Ref.graphql"
#import "../AccountPage/Ref.graphql"
#import "../PageLink/ContentPageLink.graphql"
#import "../PageLink/LoyaltyPageLink.graphql"
#import "../PageLink/AccountPageLink.graphql" #import "../PageLink/AccountPageLink.graphql"
#import "../PageLink/CollectionPageLink.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/HotelPageLink.graphql"
#import "../PageLink/LoyaltyPageLink.graphql"
#import "../PageLink/StartPageLink.graphql"
#import "../AccountPage/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"
fragment ContentSidebar_ContentPage on ContentPageSidebarContent { fragment ContentSidebar_ContentPage on ContentPageSidebarContent {
content { content {
@@ -24,10 +32,14 @@ fragment ContentSidebar_ContentPage on ContentPageSidebarContent {
...Image ...Image
...ImageContainer ...ImageContainer
...AccountPageLink ...AccountPageLink
...ContentPageLink
...CollectionPageLink ...CollectionPageLink
...ContentPageLink
...DestinationCityPageLink
...DestinationCountryPageLink
...DestinationOverviewPageLink
...HotelPageLink ...HotelPageLink
...LoyaltyPageLink ...LoyaltyPageLink
...StartPageLink
} }
} }
} }
@@ -44,10 +56,14 @@ fragment ContentSidebar_ContentPageRefs on ContentPageSidebarContent {
__typename __typename
...ImageContainerRef ...ImageContainerRef
...AccountPageRef ...AccountPageRef
...ContentPageRef
...CollectionPageRef ...CollectionPageRef
...ContentPageRef
...DestinationCityPageRef
...DestinationCountryPageRef
...DestinationOverviewPageRef
...HotelPageRef ...HotelPageRef
...LoyaltyPageRef ...LoyaltyPageRef
...StartPageRef
} }
} }
} }
@@ -66,10 +82,14 @@ fragment ContentSidebar_LoyaltyPage on LoyaltyPageSidebarContent {
...Image ...Image
...ImageContainer ...ImageContainer
...AccountPageLink ...AccountPageLink
...ContentPageLink
...CollectionPageLink ...CollectionPageLink
...ContentPageLink
...DestinationCityPageLink
...DestinationCountryPageLink
...DestinationOverviewPageLink
...HotelPageLink ...HotelPageLink
...LoyaltyPageLink ...LoyaltyPageLink
...StartPageLink
} }
} }
} }
@@ -84,12 +104,16 @@ fragment ContentSidebar_LoyaltyPageRefs on LoyaltyPageSidebarContent {
edges { edges {
node { node {
__typename __typename
...ContentPageRef
...ImageContainerRef ...ImageContainerRef
...LoyaltyPageRef
...CollectionPageRef
...HotelPageRef
...AccountPageRef ...AccountPageRef
...CollectionPageRef
...ContentPageRef
...DestinationCityPageRef
...DestinationCountryPageRef
...DestinationOverviewPageRef
...HotelPageRef
...LoyaltyPageRef
...StartPageRef
} }
} }
} }

View File

@@ -1,14 +1,22 @@
#import "../AccountPage/Ref.graphql"
#import "../ContentPage/Ref.graphql"
#import "../LoyaltyPage/Ref.graphql"
#import "../HotelPage/Ref.graphql"
#import "../CollectionPage/Ref.graphql"
#import "../PageLink/AccountPageLink.graphql" #import "../PageLink/AccountPageLink.graphql"
#import "../PageLink/ContentPageLink.graphql"
#import "../PageLink/LoyaltyPageLink.graphql"
#import "../PageLink/HotelPageLink.graphql"
#import "../PageLink/CollectionPageLink.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 "../AccountPage/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"
fragment ContactFields on ContactFields { fragment ContactFields on ContactFields {
display_text display_text
@@ -32,10 +40,14 @@ fragment JoinLoyaltyContactSidebar_ContentPage on ContentPageSidebarJoinLoyaltyC
node { node {
__typename __typename
...AccountPageLink ...AccountPageLink
...ContentPageLink
...LoyaltyPageLink
...HotelPageLink
...CollectionPageLink ...CollectionPageLink
...ContentPageLink
...DestinationCityPageLink
...DestinationCountryPageLink
...DestinationOverviewPageLink
...HotelPageLink
...LoyaltyPageLink
...StartPageLink
} }
} }
} }
@@ -59,10 +71,14 @@ fragment JoinLoyaltyContactSidebar_ContentPageRefs on ContentPageSidebarJoinLoya
node { node {
__typename __typename
...AccountPageRef ...AccountPageRef
...ContentPageRef
...LoyaltyPageRef
...HotelPageRef
...CollectionPageRef ...CollectionPageRef
...ContentPageRef
...DestinationCityPageRef
...DestinationCountryPageRef
...DestinationOverviewPageRef
...HotelPageRef
...LoyaltyPageRef
...StartPageRef
} }
} }
} }
@@ -86,10 +102,14 @@ fragment JoinLoyaltyContactSidebar_LoyaltyPage on LoyaltyPageSidebarJoinLoyaltyC
node { node {
__typename __typename
...AccountPageLink ...AccountPageLink
...ContentPageLink
...LoyaltyPageLink
...HotelPageLink
...CollectionPageLink ...CollectionPageLink
...ContentPageLink
...DestinationCityPageLink
...DestinationCountryPageLink
...DestinationOverviewPageLink
...HotelPageLink
...LoyaltyPageLink
...StartPageLink
} }
} }
} }
@@ -113,10 +133,14 @@ fragment JoinLoyaltyContactSidebar_LoyaltyPageRefs on LoyaltyPageSidebarJoinLoya
node { node {
__typename __typename
...AccountPageRef ...AccountPageRef
...ContentPageRef
...LoyaltyPageRef
...HotelPageRef
...CollectionPageRef ...CollectionPageRef
...ContentPageRef
...DestinationCityPageRef
...DestinationCountryPageRef
...DestinationOverviewPageRef
...HotelPageRef
...LoyaltyPageRef
...StartPageRef
} }
} }
} }

View File

@@ -0,0 +1,7 @@
#import "../System.graphql"
fragment StartPageRef on StartPage {
system {
...System
}
}

View File

@@ -1,15 +1,25 @@
#import "../../Fragments/PageLink/AccountPageLink.graphql"
#import "../../Fragments/PageLink/ContentPageLink.graphql"
#import "../../Fragments/PageLink/LoyaltyPageLink.graphql"
#import "../../Fragments/PageLink/CollectionPageLink.graphql"
#import "../../Fragments/PageLink/HotelPageLink.graphql"
#import "../../Fragments/AccountPage/Ref.graphql"
#import "../../Fragments/ContentPage/Ref.graphql"
#import "../../Fragments/LoyaltyPage/Ref.graphql"
#import "../../Fragments/HotelPage/Ref.graphql"
#import "../../Fragments/CollectionPage/Ref.graphql"
#import "../../Fragments/System.graphql" #import "../../Fragments/System.graphql"
#import "../../Fragments/PageLink/AccountPageLink.graphql"
#import "../../Fragments/PageLink/CollectionPageLink.graphql"
#import "../../Fragments/PageLink/ContentPageLink.graphql"
#import "../../Fragments/PageLink/DestinationCityPageLink.graphql"
#import "../../Fragments/PageLink/DestinationCountryPageLink.graphql"
#import "../../Fragments/PageLink/DestinationOverviewPageLink.graphql"
#import "../../Fragments/PageLink/HotelPageLink.graphql"
#import "../../Fragments/PageLink/LoyaltyPageLink.graphql"
#import "../../Fragments/PageLink/StartPageLink.graphql"
#import "../../Fragments/AccountPage/Ref.graphql"
#import "../../Fragments/CollectionPage/Ref.graphql"
#import "../../Fragments/ContentPage/Ref.graphql"
#import "../../Fragments/DestinationCityPage/Ref.graphql"
#import "../../Fragments/DestinationCountryPage/Ref.graphql"
#import "../../Fragments/DestinationOverviewPage/Ref.graphql"
#import "../../Fragments/HotelPage/Ref.graphql"
#import "../../Fragments/LoyaltyPage/Ref.graphql"
#import "../../Fragments/StartPage/Ref.graphql"
query GetNavigationMyPages($locale: String!) { query GetNavigationMyPages($locale: String!) {
all_navigation_my_pages(locale: $locale, limit: 1) { all_navigation_my_pages(locale: $locale, limit: 1) {
items { items {
@@ -22,10 +32,14 @@ query GetNavigationMyPages($locale: String!) {
node { node {
__typename __typename
...AccountPageLink ...AccountPageLink
...ContentPageLink
...LoyaltyPageLink
...CollectionPageLink ...CollectionPageLink
...ContentPageLink
...DestinationCityPageLink
...DestinationCountryPageLink
...DestinationOverviewPageLink
...HotelPageLink ...HotelPageLink
...LoyaltyPageLink
...StartPageLink
} }
} }
} }
@@ -46,10 +60,14 @@ query GetNavigationMyPagesRefs($locale: String!) {
node { node {
__typename __typename
...AccountPageRef ...AccountPageRef
...ContentPageRef
...LoyaltyPageRef
...CollectionPageRef ...CollectionPageRef
...ContentPageRef
...DestinationCityPageRef
...DestinationCountryPageRef
...DestinationOverviewPageRef
...HotelPageRef ...HotelPageRef
...LoyaltyPageRef
...StartPageRef
} }
} }
} }

View File

@@ -1,16 +1,24 @@
#import "../../Fragments/System.graphql" #import "../../Fragments/System.graphql"
#import "../../Fragments/PageLink/ContentPageLink.graphql"
#import "../../Fragments/PageLink/LoyaltyPageLink.graphql"
#import "../../Fragments/PageLink/AccountPageLink.graphql" #import "../../Fragments/PageLink/AccountPageLink.graphql"
#import "../../Fragments/PageLink/CollectionPageLink.graphql" #import "../../Fragments/PageLink/CollectionPageLink.graphql"
#import "../../Fragments/PageLink/ContentPageLink.graphql"
#import "../../Fragments/PageLink/DestinationCityPageLink.graphql"
#import "../../Fragments/PageLink/DestinationCountryPageLink.graphql"
#import "../../Fragments/PageLink/DestinationOverviewPageLink.graphql"
#import "../../Fragments/PageLink/HotelPageLink.graphql" #import "../../Fragments/PageLink/HotelPageLink.graphql"
#import "../../Fragments/PageLink/LoyaltyPageLink.graphql"
#import "../../Fragments/PageLink/StartPageLink.graphql"
#import "../../Fragments/AccountPage/Ref.graphql" #import "../../Fragments/AccountPage/Ref.graphql"
#import "../../Fragments/ContentPage/Ref.graphql"
#import "../../Fragments/LoyaltyPage/Ref.graphql"
#import "../../Fragments/HotelPage/Ref.graphql"
#import "../../Fragments/CollectionPage/Ref.graphql" #import "../../Fragments/CollectionPage/Ref.graphql"
#import "../../Fragments/ContentPage/Ref.graphql"
#import "../../Fragments/DestinationCityPage/Ref.graphql"
#import "../../Fragments/DestinationCountryPage/Ref.graphql" #import "../../Fragments/DestinationCountryPage/Ref.graphql"
#import "../../Fragments/DestinationOverviewPage/Ref.graphql"
#import "../../Fragments/HotelPage/Ref.graphql"
#import "../../Fragments/LoyaltyPage/Ref.graphql"
#import "../../Fragments/StartPage/Ref.graphql"
query GetDestinationCityPage($locale: String!, $uid: String!) { query GetDestinationCityPage($locale: String!, $uid: String!) {
destination_city_page(uid: $uid, locale: $locale) { destination_city_page(uid: $uid, locale: $locale) {
@@ -54,10 +62,14 @@ query GetDestinationCityPage($locale: String!, $uid: String!) {
node { node {
__typename __typename
...AccountPageLink ...AccountPageLink
...ContentPageLink
...CollectionPageLink ...CollectionPageLink
...ContentPageLink
...DestinationCityPageLink
...DestinationCountryPageLink
...DestinationOverviewPageLink
...HotelPageLink ...HotelPageLink
...LoyaltyPageLink ...LoyaltyPageLink
...StartPageLink
} }
} }
} }
@@ -94,10 +106,14 @@ query GetDestinationCityPageRefs($locale: String!, $uid: String!) {
node { node {
__typename __typename
...AccountPageRef ...AccountPageRef
...ContentPageRef
...LoyaltyPageRef
...HotelPageRef
...CollectionPageRef ...CollectionPageRef
...ContentPageRef
...DestinationCityPageRef
...DestinationCountryPageRef
...DestinationOverviewPageRef
...HotelPageRef
...LoyaltyPageRef
...StartPageRef
} }
} }
} }

View File

@@ -1,15 +1,24 @@
#import "../../Fragments/System.graphql" #import "../../Fragments/System.graphql"
#import "../../Fragments/PageLink/ContentPageLink.graphql"
#import "../../Fragments/PageLink/LoyaltyPageLink.graphql"
#import "../../Fragments/PageLink/AccountPageLink.graphql" #import "../../Fragments/PageLink/AccountPageLink.graphql"
#import "../../Fragments/PageLink/CollectionPageLink.graphql" #import "../../Fragments/PageLink/CollectionPageLink.graphql"
#import "../../Fragments/PageLink/ContentPageLink.graphql"
#import "../../Fragments/PageLink/DestinationCityPageLink.graphql"
#import "../../Fragments/PageLink/DestinationCountryPageLink.graphql"
#import "../../Fragments/PageLink/DestinationOverviewPageLink.graphql"
#import "../../Fragments/PageLink/HotelPageLink.graphql" #import "../../Fragments/PageLink/HotelPageLink.graphql"
#import "../../Fragments/PageLink/LoyaltyPageLink.graphql"
#import "../../Fragments/PageLink/StartPageLink.graphql"
#import "../../Fragments/AccountPage/Ref.graphql" #import "../../Fragments/AccountPage/Ref.graphql"
#import "../../Fragments/ContentPage/Ref.graphql"
#import "../../Fragments/LoyaltyPage/Ref.graphql"
#import "../../Fragments/HotelPage/Ref.graphql"
#import "../../Fragments/CollectionPage/Ref.graphql" #import "../../Fragments/CollectionPage/Ref.graphql"
#import "../../Fragments/ContentPage/Ref.graphql"
#import "../../Fragments/DestinationCityPage/Ref.graphql"
#import "../../Fragments/DestinationCountryPage/Ref.graphql"
#import "../../Fragments/DestinationOverviewPage/Ref.graphql"
#import "../../Fragments/HotelPage/Ref.graphql"
#import "../../Fragments/LoyaltyPage/Ref.graphql"
#import "../../Fragments/StartPage/Ref.graphql"
query GetDestinationCountryPage($locale: String!, $uid: String!) { query GetDestinationCountryPage($locale: String!, $uid: String!) {
destination_country_page(uid: $uid, locale: $locale) { destination_country_page(uid: $uid, locale: $locale) {
@@ -35,10 +44,14 @@ query GetDestinationCountryPage($locale: String!, $uid: String!) {
node { node {
__typename __typename
...AccountPageLink ...AccountPageLink
...ContentPageLink
...CollectionPageLink ...CollectionPageLink
...ContentPageLink
...DestinationCityPageLink
...DestinationCountryPageLink
...DestinationOverviewPageLink
...HotelPageLink ...HotelPageLink
...LoyaltyPageLink ...LoyaltyPageLink
...StartPageLink
} }
} }
} }
@@ -65,10 +78,14 @@ query GetDestinationCountryPageRefs($locale: String!, $uid: String!) {
node { node {
__typename __typename
...AccountPageRef ...AccountPageRef
...ContentPageRef
...LoyaltyPageRef
...HotelPageRef
...CollectionPageRef ...CollectionPageRef
...ContentPageRef
...DestinationCityPageRef
...DestinationCountryPageRef
...DestinationOverviewPageRef
...HotelPageRef
...LoyaltyPageRef
...StartPageRef
} }
} }
} }

View File

@@ -1,16 +1,24 @@
#import "../Fragments/System.graphql" #import "../Fragments/System.graphql"
#import "../Fragments/PageLink/AccountPageLink.graphql" #import "../Fragments/PageLink/AccountPageLink.graphql"
#import "../Fragments/PageLink/CollectionPageLink.graphql"
#import "../Fragments/PageLink/ContentPageLink.graphql" #import "../Fragments/PageLink/ContentPageLink.graphql"
#import "../Fragments/PageLink/DestinationCityPageLink.graphql"
#import "../Fragments/PageLink/DestinationCountryPageLink.graphql"
#import "../Fragments/PageLink/DestinationOverviewPageLink.graphql"
#import "../Fragments/PageLink/HotelPageLink.graphql" #import "../Fragments/PageLink/HotelPageLink.graphql"
#import "../Fragments/PageLink/LoyaltyPageLink.graphql" #import "../Fragments/PageLink/LoyaltyPageLink.graphql"
#import "../Fragments/PageLink/CollectionPageLink.graphql" #import "../Fragments/PageLink/StartPageLink.graphql"
#import "../Fragments/AccountPage/Ref.graphql" #import "../Fragments/AccountPage/Ref.graphql"
#import "../Fragments/CollectionPage/Ref.graphql"
#import "../Fragments/ContentPage/Ref.graphql" #import "../Fragments/ContentPage/Ref.graphql"
#import "../Fragments/DestinationCityPage/Ref.graphql"
#import "../Fragments/DestinationCountryPage/Ref.graphql"
#import "../Fragments/DestinationOverviewPage/Ref.graphql"
#import "../Fragments/HotelPage/Ref.graphql" #import "../Fragments/HotelPage/Ref.graphql"
#import "../Fragments/LoyaltyPage/Ref.graphql" #import "../Fragments/LoyaltyPage/Ref.graphql"
#import "../Fragments/CollectionPage/Ref.graphql" #import "../Fragments/StartPage/Ref.graphql"
#import "../Fragments/Footer/AppDownloads.graphql" #import "../Fragments/Footer/AppDownloads.graphql"
#import "../Fragments/Footer/SocialMedia.graphql" #import "../Fragments/Footer/SocialMedia.graphql"
@@ -28,11 +36,15 @@ query GetFooter($locale: String!) {
pageConnection { pageConnection {
edges { edges {
node { node {
...ContentPageLink
...HotelPageLink
...LoyaltyPageLink
...AccountPageLink ...AccountPageLink
...CollectionPageLink ...CollectionPageLink
...ContentPageLink
...DestinationCityPageLink
...DestinationCountryPageLink
...DestinationOverviewPageLink
...HotelPageLink
...LoyaltyPageLink
...StartPageLink
} }
} }
} }
@@ -45,11 +57,15 @@ query GetFooter($locale: String!) {
pageConnection { pageConnection {
edges { edges {
node { node {
...ContentPageLink
...HotelPageLink
...LoyaltyPageLink
...AccountPageLink ...AccountPageLink
...CollectionPageLink ...CollectionPageLink
...ContentPageLink
...DestinationCityPageLink
...DestinationCountryPageLink
...DestinationOverviewPageLink
...HotelPageLink
...LoyaltyPageLink
...StartPageLink
} }
} }
} }
@@ -69,11 +85,15 @@ query GetFooter($locale: String!) {
pageConnection { pageConnection {
edges { edges {
node { node {
...ContentPageLink
...HotelPageLink
...LoyaltyPageLink
...AccountPageLink ...AccountPageLink
...CollectionPageLink ...CollectionPageLink
...ContentPageLink
...DestinationCityPageLink
...DestinationCountryPageLink
...DestinationOverviewPageLink
...HotelPageLink
...LoyaltyPageLink
...StartPageLink
} }
} }
} }
@@ -91,11 +111,15 @@ query GetFooterRef($locale: String!) {
pageConnection { pageConnection {
edges { edges {
node { node {
...ContentPageRef
...HotelPageRef
...LoyaltyPageRef
...AccountPageRef ...AccountPageRef
...CollectionPageRef ...CollectionPageRef
...ContentPageRef
...DestinationCityPageRef
...DestinationCountryPageRef
...DestinationOverviewPageRef
...HotelPageRef
...LoyaltyPageRef
...StartPageRef
} }
} }
} }
@@ -105,11 +129,15 @@ query GetFooterRef($locale: String!) {
pageConnection { pageConnection {
edges { edges {
node { node {
...ContentPageRef
...HotelPageRef
...LoyaltyPageRef
...AccountPageRef ...AccountPageRef
...CollectionPageRef ...CollectionPageRef
...ContentPageRef
...DestinationCityPageRef
...DestinationCountryPageRef
...DestinationOverviewPageRef
...HotelPageRef
...LoyaltyPageRef
...StartPageRef
} }
} }
} }
@@ -119,11 +147,15 @@ query GetFooterRef($locale: String!) {
pageConnection { pageConnection {
edges { edges {
node { node {
...ContentPageRef
...HotelPageRef
...LoyaltyPageRef
...AccountPageRef ...AccountPageRef
...CollectionPageRef ...CollectionPageRef
...ContentPageRef
...DestinationCityPageRef
...DestinationCountryPageRef
...DestinationOverviewPageRef
...HotelPageRef
...LoyaltyPageRef
...StartPageRef
} }
} }
} }

View File

@@ -1,18 +1,27 @@
#import "../Fragments/System.graphql" #import "../Fragments/System.graphql"
#import "../Fragments/Blocks/Card.graphql"
#import "../Fragments/Blocks/Refs/Card.graphql"
#import "../Fragments/PageLink/AccountPageLink.graphql" #import "../Fragments/PageLink/AccountPageLink.graphql"
#import "../Fragments/PageLink/CollectionPageLink.graphql" #import "../Fragments/PageLink/CollectionPageLink.graphql"
#import "../Fragments/PageLink/ContentPageLink.graphql" #import "../Fragments/PageLink/ContentPageLink.graphql"
#import "../Fragments/PageLink/DestinationCityPageLink.graphql"
#import "../Fragments/PageLink/DestinationCountryPageLink.graphql"
#import "../Fragments/PageLink/DestinationOverviewPageLink.graphql"
#import "../Fragments/PageLink/HotelPageLink.graphql" #import "../Fragments/PageLink/HotelPageLink.graphql"
#import "../Fragments/PageLink/LoyaltyPageLink.graphql" #import "../Fragments/PageLink/LoyaltyPageLink.graphql"
#import "../Fragments/Blocks/Card.graphql" #import "../Fragments/PageLink/StartPageLink.graphql"
#import "../Fragments/Blocks/Refs/Card.graphql"
#import "../Fragments/AccountPage/Ref.graphql" #import "../Fragments/AccountPage/Ref.graphql"
#import "../Fragments/CollectionPage/Ref.graphql" #import "../Fragments/CollectionPage/Ref.graphql"
#import "../Fragments/ContentPage/Ref.graphql" #import "../Fragments/ContentPage/Ref.graphql"
#import "../Fragments/DestinationCityPage/Ref.graphql"
#import "../Fragments/DestinationCountryPage/Ref.graphql"
#import "../Fragments/DestinationOverviewPage/Ref.graphql"
#import "../Fragments/HotelPage/Ref.graphql" #import "../Fragments/HotelPage/Ref.graphql"
#import "../Fragments/LoyaltyPage/Ref.graphql" #import "../Fragments/LoyaltyPage/Ref.graphql"
#import "../Fragments/StartPage/Ref.graphql"
query GetHeader($locale: String!) { query GetHeader($locale: String!) {
all_header(limit: 1, locale: $locale) { all_header(limit: 1, locale: $locale) {
@@ -28,8 +37,12 @@ query GetHeader($locale: String!) {
...AccountPageLink ...AccountPageLink
...CollectionPageLink ...CollectionPageLink
...ContentPageLink ...ContentPageLink
...DestinationCityPageLink
...DestinationCountryPageLink
...DestinationOverviewPageLink
...HotelPageLink ...HotelPageLink
...LoyaltyPageLink ...LoyaltyPageLink
...StartPageLink
} }
} }
} }
@@ -44,8 +57,12 @@ query GetHeader($locale: String!) {
...AccountPageLink ...AccountPageLink
...CollectionPageLink ...CollectionPageLink
...ContentPageLink ...ContentPageLink
...DestinationCityPageLink
...DestinationCountryPageLink
...DestinationOverviewPageLink
...HotelPageLink ...HotelPageLink
...LoyaltyPageLink ...LoyaltyPageLink
...StartPageLink
} }
} }
} }
@@ -57,11 +74,15 @@ query GetHeader($locale: String!) {
edges { edges {
node { node {
__typename __typename
...AccountPageLink
...CollectionPageLink
...ContentPageLink ...ContentPageLink
...DestinationCityPageLink
...DestinationCountryPageLink
...DestinationOverviewPageLink
...HotelPageLink ...HotelPageLink
...LoyaltyPageLink ...LoyaltyPageLink
...CollectionPageLink ...StartPageLink
...AccountPageLink
} }
} }
} }
@@ -71,11 +92,15 @@ query GetHeader($locale: String!) {
edges { edges {
node { node {
__typename __typename
...AccountPageLink
...CollectionPageLink
...ContentPageLink ...ContentPageLink
...DestinationCityPageLink
...DestinationCountryPageLink
...DestinationOverviewPageLink
...HotelPageLink ...HotelPageLink
...LoyaltyPageLink ...LoyaltyPageLink
...CollectionPageLink ...StartPageLink
...AccountPageLink
} }
} }
} }
@@ -88,11 +113,15 @@ query GetHeader($locale: String!) {
edges { edges {
node { node {
__typename __typename
...AccountPageLink
...CollectionPageLink
...ContentPageLink ...ContentPageLink
...DestinationCityPageLink
...DestinationCountryPageLink
...DestinationOverviewPageLink
...HotelPageLink ...HotelPageLink
...LoyaltyPageLink ...LoyaltyPageLink
...CollectionPageLink ...StartPageLink
...AccountPageLink
} }
} }
} }
@@ -123,8 +152,12 @@ query GetHeaderRef($locale: String!) {
...AccountPageRef ...AccountPageRef
...CollectionPageRef ...CollectionPageRef
...ContentPageRef ...ContentPageRef
...DestinationCityPageRef
...DestinationCountryPageRef
...DestinationOverviewPageRef
...HotelPageRef ...HotelPageRef
...LoyaltyPageRef ...LoyaltyPageRef
...StartPageRef
} }
} }
} }
@@ -137,8 +170,12 @@ query GetHeaderRef($locale: String!) {
...AccountPageRef ...AccountPageRef
...CollectionPageRef ...CollectionPageRef
...ContentPageRef ...ContentPageRef
...DestinationCityPageRef
...DestinationCountryPageRef
...DestinationOverviewPageRef
...HotelPageRef ...HotelPageRef
...LoyaltyPageRef ...LoyaltyPageRef
...StartPageRef
} }
} }
} }
@@ -149,11 +186,15 @@ query GetHeaderRef($locale: String!) {
edges { edges {
node { node {
__typename __typename
...AccountPageRef
...CollectionPageRef
...ContentPageRef ...ContentPageRef
...DestinationCityPageRef
...DestinationCountryPageRef
...DestinationOverviewPageRef
...HotelPageRef ...HotelPageRef
...LoyaltyPageRef ...LoyaltyPageRef
...CollectionPageRef ...StartPageRef
...AccountPageRef
} }
} }
} }
@@ -162,11 +203,15 @@ query GetHeaderRef($locale: String!) {
edges { edges {
node { node {
__typename __typename
...AccountPageRef
...CollectionPageRef
...ContentPageRef ...ContentPageRef
...DestinationCityPageRef
...DestinationCountryPageRef
...DestinationOverviewPageRef
...HotelPageRef ...HotelPageRef
...LoyaltyPageRef ...LoyaltyPageRef
...CollectionPageRef ...StartPageRef
...AccountPageRef
} }
} }
} }
@@ -177,11 +222,15 @@ query GetHeaderRef($locale: String!) {
edges { edges {
node { node {
__typename __typename
...AccountPageRef
...CollectionPageRef
...ContentPageRef ...ContentPageRef
...DestinationCityPageRef
...DestinationCountryPageRef
...DestinationOverviewPageRef
...HotelPageRef ...HotelPageRef
...LoyaltyPageRef ...LoyaltyPageRef
...CollectionPageRef ...StartPageRef
...AccountPageRef
} }
} }
} }

View File

@@ -1,14 +1,7 @@
#import "../../Fragments/PageLink/AccountPageLink.graphql"
#import "../../Fragments/PageLink/CollectionPageLink.graphql" #import "../../Fragments/PageLink/CollectionPageLink.graphql"
#import "../../Fragments/PageLink/ContentPageLink.graphql" #import "../../Fragments/PageLink/ContentPageLink.graphql"
#import "../../Fragments/PageLink/HotelPageLink.graphql"
#import "../../Fragments/PageLink/LoyaltyPageLink.graphql"
#import "../../Fragments/PageLink/CollectionPageLink.graphql"
#import "../../Fragments/AccountPage/Ref.graphql" #import "../../Fragments/AccountPage/Ref.graphql"
#import "../../Fragments/ContentPage/Ref.graphql"
#import "../../Fragments/HotelPage/Ref.graphql"
#import "../../Fragments/LoyaltyPage/Ref.graphql"
#import "../../Fragments/CollectionPage/Ref.graphql" #import "../../Fragments/CollectionPage/Ref.graphql"
#import "../../Fragments/Blocks/Accordion.graphql" #import "../../Fragments/Blocks/Accordion.graphql"

View File

@@ -8,7 +8,12 @@ import {
transformCardBlock, transformCardBlock,
transformCardBlockRefs, transformCardBlockRefs,
} from "@/server/routers/contentstack/schemas/blocks/cardsGrid" } from "@/server/routers/contentstack/schemas/blocks/cardsGrid"
import * as pageLinks from "@/server/routers/contentstack/schemas/pageLinks" import {
linkRefsUnionSchema,
linkUnionSchema,
transformPageLink,
transformPageLinkRef,
} from "@/server/routers/contentstack/schemas/pageLinks"
import { removeMultipleSlashes } from "@/utils/url" import { removeMultipleSlashes } from "@/utils/url"
@@ -455,14 +460,6 @@ export const validateFooterRefConfigSchema = z.object({
* New Header Validation * New Header Validation
*/ */
const linkRefsUnionSchema = z.discriminatedUnion("__typename", [
pageLinks.contentPageRefSchema,
pageLinks.hotelPageRefSchema,
pageLinks.loyaltyPageRefSchema,
pageLinks.accountPageRefSchema,
pageLinks.collectionPageRefSchema,
])
const linkRefsSchema = z const linkRefsSchema = z
.object({ .object({
linkConnection: z.object({ linkConnection: z.object({
@@ -475,7 +472,7 @@ const linkRefsSchema = z
}) })
.transform((data) => { .transform((data) => {
if (data.linkConnection.edges.length) { if (data.linkConnection.edges.length) {
const link = pageLinks.transformRef(data.linkConnection.edges[0].node) const link = transformPageLinkRef(data.linkConnection.edges[0].node)
if (link) { if (link) {
return { return {
link, link,
@@ -554,14 +551,6 @@ export const headerRefsSchema = z
} }
}) })
const linkUnionSchema = z.discriminatedUnion("__typename", [
pageLinks.accountPageSchema,
pageLinks.contentPageSchema,
pageLinks.hotelPageSchema,
pageLinks.loyaltyPageSchema,
pageLinks.collectionPageSchema,
])
const linkSchema = z const linkSchema = z
.object({ .object({
linkConnection: z.object({ linkConnection: z.object({
@@ -576,7 +565,7 @@ const linkSchema = z
if (data.linkConnection.edges.length) { if (data.linkConnection.edges.length) {
const linkNode = data.linkConnection.edges[0].node const linkNode = data.linkConnection.edges[0].node
if (linkNode) { if (linkNode) {
const link = pageLinks.transform(linkNode) const link = transformPageLink(linkNode)
if (link) { if (link) {
return { return {
link, link,
@@ -729,16 +718,8 @@ export const alertSchema = z
embedded_itemsConnection: z.object({ embedded_itemsConnection: z.object({
edges: z.array( edges: z.array(
z.object({ z.object({
node: z node: linkUnionSchema.transform((data) => {
.discriminatedUnion("__typename", [ const link = transformPageLink(data)
pageLinks.accountPageSchema,
pageLinks.contentPageSchema,
pageLinks.hotelPageSchema,
pageLinks.loyaltyPageSchema,
pageLinks.collectionPageSchema,
])
.transform((data) => {
const link = pageLinks.transform(data)
if (link) { if (link) {
return link return link
} }
@@ -834,13 +815,7 @@ const sidepeekContentRefSchema = z.object({
embedded_itemsConnection: z.object({ embedded_itemsConnection: z.object({
edges: z.array( edges: z.array(
z.object({ z.object({
node: z.discriminatedUnion("__typename", [ node: linkRefsUnionSchema,
pageLinks.accountPageRefSchema,
pageLinks.contentPageRefSchema,
pageLinks.hotelPageRefSchema,
pageLinks.loyaltyPageRefSchema,
pageLinks.collectionPageRefSchema,
]),
}) })
), ),
}), }),

View File

@@ -1,8 +1,12 @@
import { z } from "zod" import { z } from "zod"
import * as pageLinks from "@/server/routers/contentstack/schemas/pageLinks"
import { tempImageVaultAssetSchema } from "../schemas/imageVault" import { tempImageVaultAssetSchema } from "../schemas/imageVault"
import {
destinationCountryPageRefSchema,
linkRefsUnionSchema,
linkUnionSchema,
transformPageLink,
} from "../schemas/pageLinks"
import { systemSchema } from "../schemas/system" import { systemSchema } from "../schemas/system"
import type { ImageVaultAsset } from "@/types/components/imageVault" import type { ImageVaultAsset } from "@/types/components/imageVault"
@@ -92,16 +96,8 @@ export const destinationCityPageSchema = z
embedded_itemsConnection: z.object({ embedded_itemsConnection: z.object({
edges: z.array( edges: z.array(
z.object({ z.object({
node: z node: linkUnionSchema.transform((data) => {
.discriminatedUnion("__typename", [ const link = transformPageLink(data)
pageLinks.accountPageSchema,
pageLinks.contentPageSchema,
pageLinks.hotelPageSchema,
pageLinks.loyaltyPageSchema,
pageLinks.collectionPageSchema,
])
.transform((data) => {
const link = pageLinks.transform(data)
if (link) { if (link) {
return link return link
} }
@@ -153,7 +149,7 @@ export const destinationCityPageRefsSchema = z.object({
countryConnection: z.object({ countryConnection: z.object({
edges: z.array( edges: z.array(
z.object({ z.object({
node: pageLinks.destinationCountryPageRefSchema, node: destinationCountryPageRefSchema,
}) })
), ),
}), }),
@@ -163,13 +159,7 @@ export const destinationCityPageRefsSchema = z.object({
embedded_itemsConnection: z.object({ embedded_itemsConnection: z.object({
edges: z.array( edges: z.array(
z.object({ z.object({
node: z.discriminatedUnion("__typename", [ node: linkRefsUnionSchema,
pageLinks.accountPageRefSchema,
pageLinks.contentPageRefSchema,
pageLinks.hotelPageRefSchema,
pageLinks.loyaltyPageRefSchema,
pageLinks.collectionPageRefSchema,
]),
}) })
), ),
}), }),

View File

@@ -1,8 +1,11 @@
import { z } from "zod" import { z } from "zod"
import * as pageLinks from "@/server/routers/contentstack/schemas/pageLinks"
import { tempImageVaultAssetSchema } from "../schemas/imageVault" import { tempImageVaultAssetSchema } from "../schemas/imageVault"
import {
linkRefsUnionSchema,
linkUnionSchema,
transformPageLink,
} from "../schemas/pageLinks"
import { systemSchema } from "../schemas/system" import { systemSchema } from "../schemas/system"
import type { ImageVaultAsset } from "@/types/components/imageVault" import type { ImageVaultAsset } from "@/types/components/imageVault"
@@ -42,16 +45,8 @@ export const destinationCountryPageSchema = z
embedded_itemsConnection: z.object({ embedded_itemsConnection: z.object({
edges: z.array( edges: z.array(
z.object({ z.object({
node: z node: linkUnionSchema.transform((data) => {
.discriminatedUnion("__typename", [ const link = transformPageLink(data)
pageLinks.accountPageSchema,
pageLinks.contentPageSchema,
pageLinks.hotelPageSchema,
pageLinks.loyaltyPageSchema,
pageLinks.collectionPageSchema,
])
.transform((data) => {
const link = pageLinks.transform(data)
if (link) { if (link) {
return link return link
} }
@@ -103,13 +98,7 @@ export const destinationCountryPageRefsSchema = z.object({
embedded_itemsConnection: z.object({ embedded_itemsConnection: z.object({
edges: z.array( edges: z.array(
z.object({ z.object({
node: z.discriminatedUnion("__typename", [ node: linkRefsUnionSchema,
pageLinks.accountPageRefSchema,
pageLinks.contentPageRefSchema,
pageLinks.hotelPageRefSchema,
pageLinks.loyaltyPageRefSchema,
pageLinks.collectionPageRefSchema,
]),
}) })
), ),
}), }),

View File

@@ -1,20 +1,14 @@
import { z } from "zod" import { z } from "zod"
import { Lang } from "@/constants/languages" import { Lang } from "@/constants/languages"
import * as pageLinks from "@/server/routers/contentstack/schemas/pageLinks"
import { linkRefsUnionSchema, linkUnionSchema } from "../../schemas/pageLinks"
import { systemSchema } from "../../schemas/system" import { systemSchema } from "../../schemas/system"
const pageConnection = z.object({ const pageConnection = z.object({
edges: z.array( edges: z.array(
z.object({ z.object({
node: z.discriminatedUnion("__typename", [ node: linkUnionSchema,
pageLinks.accountPageSchema,
pageLinks.contentPageSchema,
pageLinks.loyaltyPageSchema,
pageLinks.collectionPageSchema,
pageLinks.hotelPageSchema,
]),
}) })
), ),
}) })
@@ -22,13 +16,7 @@ const pageConnection = z.object({
const pageConnectionRefs = z.object({ const pageConnectionRefs = z.object({
edges: z.array( edges: z.array(
z.object({ z.object({
node: z.discriminatedUnion("__typename", [ node: linkRefsUnionSchema,
pageLinks.accountPageRefSchema,
pageLinks.contentPageRefSchema,
pageLinks.loyaltyPageRefSchema,
pageLinks.collectionPageRefSchema,
pageLinks.hotelPageRefSchema,
]),
}) })
), ),
}) })

View File

@@ -1,6 +1,10 @@
import { z } from "zod" import { z } from "zod"
import * as pageLinks from "@/server/routers/contentstack/schemas/pageLinks" import {
linkRefsUnionSchema,
linkUnionSchema,
transformPageLink,
} from "../pageLinks"
import { BlocksEnums } from "@/types/enums/blocks" import { BlocksEnums } from "@/types/enums/blocks"
@@ -12,16 +16,8 @@ export const accordionItemsSchema = z.array(
embedded_itemsConnection: z.object({ embedded_itemsConnection: z.object({
edges: z.array( edges: z.array(
z.object({ z.object({
node: z node: linkUnionSchema.transform((data) => {
.discriminatedUnion("__typename", [ const link = transformPageLink(data)
pageLinks.accountPageSchema,
pageLinks.contentPageSchema,
pageLinks.hotelPageSchema,
pageLinks.loyaltyPageSchema,
pageLinks.collectionPageSchema,
])
.transform((data) => {
const link = pageLinks.transform(data)
if (link) { if (link) {
return link return link
} }
@@ -97,14 +93,6 @@ export const accordionSchema = z.object({
}), }),
}) })
const actualRefs = z.discriminatedUnion("__typename", [
pageLinks.accountPageRefSchema,
pageLinks.contentPageRefSchema,
pageLinks.hotelPageRefSchema,
pageLinks.loyaltyPageRefSchema,
pageLinks.collectionPageRefSchema,
])
export const globalAccordionConnectionRefs = z.object({ export const globalAccordionConnectionRefs = z.object({
edges: z.array( edges: z.array(
z.object({ z.object({
@@ -115,7 +103,7 @@ export const globalAccordionConnectionRefs = z.object({
embedded_itemsConnection: z.object({ embedded_itemsConnection: z.object({
edges: z.array( edges: z.array(
z.object({ z.object({
node: actualRefs, node: linkRefsUnionSchema,
}) })
), ),
}), }),
@@ -134,7 +122,7 @@ export const specificAccordionConnectionRefs = z.object({
embedded_itemsConnection: z.object({ embedded_itemsConnection: z.object({
edges: z.array( edges: z.array(
z.object({ z.object({
node: actualRefs, node: linkRefsUnionSchema,
}) })
), ),
}), }),

View File

@@ -1,10 +1,9 @@
import { z } from "zod" import { z } from "zod"
import * as pageLinks from "@/server/routers/contentstack/schemas/pageLinks"
import { removeMultipleSlashes } from "@/utils/url" import { removeMultipleSlashes } from "@/utils/url"
import { tempImageVaultAssetSchema } from "../imageVault" import { tempImageVaultAssetSchema } from "../imageVault"
import { contentPageRefSchema, contentPageSchema } from "../pageLinks"
import { HotelPageEnum } from "@/types/enums/hotelPage" import { HotelPageEnum } from "@/types/enums/hotelPage"
@@ -26,7 +25,7 @@ export const activitiesCardSchema = z.object({
edges: z.array( edges: z.array(
z.object({ z.object({
node: z.discriminatedUnion("__typename", [ node: z.discriminatedUnion("__typename", [
pageLinks.contentPageSchema.extend({ contentPageSchema.extend({
header: z.object({ header: z.object({
preamble: z.string(), preamble: z.string(),
}), }),
@@ -69,9 +68,7 @@ export const activitiesCardRefSchema = z.object({
hotel_page_activities_content_pageConnection: z.object({ hotel_page_activities_content_pageConnection: z.object({
edges: z.array( edges: z.array(
z.object({ z.object({
node: z.discriminatedUnion("__typename", [ node: z.discriminatedUnion("__typename", [contentPageRefSchema]),
pageLinks.contentPageRefSchema,
]),
}) })
), ),
}), }),

View File

@@ -1,8 +1,18 @@
import { z } from "zod" import { z } from "zod"
import * as pageLinks from "@/server/routers/contentstack/schemas/pageLinks"
import { tempImageVaultAssetSchema } from "../imageVault" import { tempImageVaultAssetSchema } from "../imageVault"
import {
accountPageSchema,
collectionPageSchema,
contentPageSchema,
destinationCityPageSchema,
destinationCountryPageSchema,
destinationOverviewPageSchema,
hotelPageSchema,
loyaltyPageSchema,
startPageSchema,
transformPageLink,
} from "../pageLinks"
import { systemSchema } from "../system" import { systemSchema } from "../system"
import { buttonSchema } from "./utils/buttonLinkSchema" import { buttonSchema } from "./utils/buttonLinkSchema"
import { linkConnectionRefsSchema } from "./utils/linkConnection" import { linkConnectionRefsSchema } from "./utils/linkConnection"
@@ -71,14 +81,18 @@ export const teaserCardBlockSchema = z.object({
.discriminatedUnion("__typename", [ .discriminatedUnion("__typename", [
imageContainerSchema, imageContainerSchema,
imageSchema, imageSchema,
pageLinks.accountPageSchema, accountPageSchema,
pageLinks.contentPageSchema, collectionPageSchema,
pageLinks.hotelPageSchema, contentPageSchema,
pageLinks.loyaltyPageSchema, destinationCityPageSchema,
pageLinks.collectionPageSchema, destinationCountryPageSchema,
destinationOverviewPageSchema,
hotelPageSchema,
loyaltyPageSchema,
startPageSchema,
]) ])
.transform((data) => { .transform((data) => {
const link = pageLinks.transform(data) const link = transformPageLink(data)
if (link) { if (link) {
return link return link
} }

View File

@@ -1,7 +1,17 @@
import { z } from "zod" import { z } from "zod"
import * as pageLinks from "@/server/routers/contentstack/schemas/pageLinks" import {
accountPageSchema,
collectionPageSchema,
contentPageSchema,
destinationCityPageSchema,
destinationCountryPageSchema,
destinationOverviewPageSchema,
hotelPageSchema,
loyaltyPageSchema,
startPageSchema,
transformPageLink,
} from "../pageLinks"
import { imageRefsSchema, imageSchema } from "./image" import { imageRefsSchema, imageSchema } from "./image"
import { import {
imageContainerRefsSchema, imageContainerRefsSchema,
@@ -27,14 +37,18 @@ export const contentSchema = z.object({
.discriminatedUnion("__typename", [ .discriminatedUnion("__typename", [
imageContainerSchema, imageContainerSchema,
imageSchema, imageSchema,
pageLinks.accountPageSchema, accountPageSchema,
pageLinks.contentPageSchema, collectionPageSchema,
pageLinks.hotelPageSchema, contentPageSchema,
pageLinks.loyaltyPageSchema, destinationCityPageSchema,
pageLinks.collectionPageSchema, destinationCountryPageSchema,
destinationOverviewPageSchema,
hotelPageSchema,
loyaltyPageSchema,
startPageSchema,
]) ])
.transform((data) => { .transform((data) => {
const link = pageLinks.transform(data) const link = transformPageLink(data)
if (link) { if (link) {
return link return link
} }
@@ -60,11 +74,15 @@ export const contentRefsSchema = z.object({
node: z.discriminatedUnion("__typename", [ node: z.discriminatedUnion("__typename", [
imageRefsSchema, imageRefsSchema,
imageContainerRefsSchema, imageContainerRefsSchema,
pageLinks.accountPageRefSchema, accountPageSchema,
pageLinks.contentPageRefSchema, collectionPageSchema,
pageLinks.hotelPageRefSchema, contentPageSchema,
pageLinks.loyaltyPageRefSchema, destinationCityPageSchema,
pageLinks.collectionPageRefSchema, destinationCountryPageSchema,
destinationOverviewPageSchema,
hotelPageSchema,
loyaltyPageSchema,
startPageSchema,
]), ]),
}) })
), ),

View File

@@ -1,7 +1,17 @@
import { z } from "zod" import { z } from "zod"
import * as pageLinks from "@/server/routers/contentstack/schemas/pageLinks" import {
accountPageSchema,
collectionPageSchema,
contentPageSchema,
destinationCityPageSchema,
destinationCountryPageSchema,
destinationOverviewPageSchema,
hotelPageSchema,
loyaltyPageSchema,
startPageSchema,
transformPageLink,
} from "../pageLinks"
import { imageSchema } from "./image" import { imageSchema } from "./image"
import { imageContainerSchema } from "./imageContainer" import { imageContainerSchema } from "./imageContainer"
@@ -9,14 +19,18 @@ export const contentEmbedsSchema = z
.discriminatedUnion("__typename", [ .discriminatedUnion("__typename", [
imageContainerSchema, imageContainerSchema,
imageSchema, imageSchema,
pageLinks.accountPageSchema, accountPageSchema,
pageLinks.contentPageSchema, collectionPageSchema,
pageLinks.hotelPageSchema, contentPageSchema,
pageLinks.loyaltyPageSchema, destinationCityPageSchema,
pageLinks.collectionPageSchema, destinationCountryPageSchema,
destinationOverviewPageSchema,
hotelPageSchema,
loyaltyPageSchema,
startPageSchema,
]) ])
.transform((data) => { .transform((data) => {
const link = pageLinks.transform(data) const link = transformPageLink(data)
if (link) { if (link) {
return link return link
} }

View File

@@ -1,6 +1,10 @@
import { z } from "zod" import { z } from "zod"
import * as pageLinks from "@/server/routers/contentstack/schemas/pageLinks" import {
linkRefsUnionSchema,
linkUnionSchema,
transformPageLink,
} from "../pageLinks"
import { BlocksEnums } from "@/types/enums/blocks" import { BlocksEnums } from "@/types/enums/blocks"
import { DynamicContentEnum } from "@/types/enums/dynamicContent" import { DynamicContentEnum } from "@/types/enums/dynamicContent"
@@ -20,16 +24,8 @@ export const dynamicContentSchema = z.object({
linkConnection: z.object({ linkConnection: z.object({
edges: z.array( edges: z.array(
z.object({ z.object({
node: z node: linkUnionSchema.transform((data) => {
.discriminatedUnion("__typename", [ const link = transformPageLink(data)
pageLinks.accountPageSchema,
pageLinks.contentPageSchema,
pageLinks.hotelPageSchema,
pageLinks.loyaltyPageSchema,
pageLinks.collectionPageSchema,
])
.transform((data) => {
const link = pageLinks.transform(data)
if (link) { if (link) {
return link return link
} }
@@ -60,13 +56,7 @@ export const dynamicContentRefsSchema = z.object({
linkConnection: z.object({ linkConnection: z.object({
edges: z.array( edges: z.array(
z.object({ z.object({
node: z.discriminatedUnion("__typename", [ node: linkRefsUnionSchema,
pageLinks.accountPageRefSchema,
pageLinks.contentPageRefSchema,
pageLinks.hotelPageRefSchema,
pageLinks.loyaltyPageRefSchema,
pageLinks.collectionPageRefSchema,
]),
}) })
), ),
}), }),

View File

@@ -1,6 +1,10 @@
import { z } from "zod" import { z } from "zod"
import * as pageLinks from "@/server/routers/contentstack/schemas/pageLinks" import {
linkRefsUnionSchema,
linkUnionSchema,
transformPageLink,
} from "../pageLinks"
import { BlocksEnums } from "@/types/enums/blocks" import { BlocksEnums } from "@/types/enums/blocks"
@@ -18,16 +22,8 @@ export const shortcutsBlockSchema = z.object({
linkConnection: z.object({ linkConnection: z.object({
edges: z.array( edges: z.array(
z.object({ z.object({
node: z node: linkUnionSchema.transform((data) => {
.discriminatedUnion("__typename", [ const link = transformPageLink(data)
pageLinks.accountPageSchema,
pageLinks.contentPageSchema,
pageLinks.loyaltyPageSchema,
pageLinks.collectionPageSchema,
pageLinks.hotelPageSchema,
])
.transform((data) => {
const link = pageLinks.transform(data)
if (link) { if (link) {
return link return link
} }
@@ -77,13 +73,7 @@ export const shortcutsRefsSchema = z.object({
linkConnection: z.object({ linkConnection: z.object({
edges: z.array( edges: z.array(
z.object({ z.object({
node: z.discriminatedUnion("__typename", [ node: linkRefsUnionSchema,
pageLinks.accountPageRefSchema,
pageLinks.contentPageRefSchema,
pageLinks.loyaltyPageRefSchema,
pageLinks.collectionPageRefSchema,
pageLinks.hotelPageRefSchema,
]),
}) })
), ),
}), }),

View File

@@ -1,9 +1,9 @@
import { z } from "zod" import { z } from "zod"
import * as pageLinks from "@/server/routers/contentstack/schemas/pageLinks"
import { removeMultipleSlashes } from "@/utils/url" import { removeMultipleSlashes } from "@/utils/url"
import { collectionPageRefSchema, contentPageRefSchema } from "../pageLinks"
import { HotelPageEnum } from "@/types/enums/hotelPage" import { HotelPageEnum } from "@/types/enums/hotelPage"
export const spaPageSchema = z.object({ export const spaPageSchema = z.object({
@@ -55,8 +55,8 @@ export const spaPageRefSchema = z.object({
edges: z.array( edges: z.array(
z.object({ z.object({
node: z.discriminatedUnion("__typename", [ node: z.discriminatedUnion("__typename", [
pageLinks.contentPageRefSchema, contentPageRefSchema,
pageLinks.collectionPageRefSchema, collectionPageRefSchema,
]), ]),
}) })
), ),

View File

@@ -1,7 +1,10 @@
import { z } from "zod" import { z } from "zod"
import * as pageLinks from "@/server/routers/contentstack/schemas/pageLinks" import {
linkRefsUnionSchema,
linkUnionSchema,
transformPageLink,
} from "../pageLinks"
import { imageRefsSchema, imageSchema } from "./image" import { imageRefsSchema, imageSchema } from "./image"
import { BlocksEnums } from "@/types/enums/blocks" import { BlocksEnums } from "@/types/enums/blocks"
@@ -24,14 +27,10 @@ export const textColsSchema = z.object({
node: z node: z
.discriminatedUnion("__typename", [ .discriminatedUnion("__typename", [
imageSchema, imageSchema,
pageLinks.contentPageSchema, ...linkUnionSchema.options,
pageLinks.hotelPageSchema,
pageLinks.loyaltyPageSchema,
pageLinks.collectionPageSchema,
pageLinks.accountPageSchema,
]) ])
.transform((data) => { .transform((data) => {
const link = pageLinks.transform(data) const link = transformPageLink(data)
if (link) { if (link) {
return link return link
} }
@@ -46,14 +45,8 @@ export const textColsSchema = z.object({
}), }),
}) })
const actualRefs = z.discriminatedUnion("__typename", [
pageLinks.contentPageRefSchema,
pageLinks.hotelPageRefSchema,
pageLinks.loyaltyPageRefSchema,
])
type Refs = { type Refs = {
node: z.TypeOf<typeof actualRefs> node: z.TypeOf<typeof linkUnionSchema>
} }
export const textColsRefsSchema = z.object({ export const textColsRefsSchema = z.object({
@@ -67,7 +60,7 @@ export const textColsRefsSchema = z.object({
z.object({ z.object({
node: z.discriminatedUnion("__typename", [ node: z.discriminatedUnion("__typename", [
imageRefsSchema, imageRefsSchema,
...actualRefs.options, ...linkRefsUnionSchema.options,
]), ]),
}) })
), ),

View File

@@ -1,6 +1,10 @@
import { z } from "zod" import { z } from "zod"
import * as pageLinks from "@/server/routers/contentstack/schemas/pageLinks" import {
linkRefsUnionSchema,
linkUnionSchema,
transformPageLink,
} from "../pageLinks"
import { BlocksEnums } from "@/types/enums/blocks" import { BlocksEnums } from "@/types/enums/blocks"
import { UspGridEnum } from "@/types/enums/uspGrid" import { UspGridEnum } from "@/types/enums/uspGrid"
@@ -12,16 +16,8 @@ const uspCardSchema = z.object({
embedded_itemsConnection: z.object({ embedded_itemsConnection: z.object({
edges: z.array( edges: z.array(
z.object({ z.object({
node: z node: linkUnionSchema.transform((data) => {
.discriminatedUnion("__typename", [ const link = transformPageLink(data)
pageLinks.accountPageSchema,
pageLinks.contentPageSchema,
pageLinks.hotelPageSchema,
pageLinks.loyaltyPageSchema,
pageLinks.collectionPageSchema,
])
.transform((data) => {
const link = pageLinks.transform(data)
if (link) { if (link) {
return link return link
} }
@@ -59,13 +55,6 @@ export const uspGridSchema = z.object({
}), }),
}) })
const actualRefs = z.discriminatedUnion("__typename", [
pageLinks.accountPageRefSchema,
pageLinks.contentPageRefSchema,
pageLinks.hotelPageRefSchema,
pageLinks.loyaltyPageRefSchema,
])
export const uspGridRefsSchema = z.object({ export const uspGridRefsSchema = z.object({
usp_grid: z usp_grid: z
.object({ .object({
@@ -79,7 +68,7 @@ export const uspGridRefsSchema = z.object({
embedded_itemsConnection: z.object({ embedded_itemsConnection: z.object({
edges: z.array( edges: z.array(
z.object({ z.object({
node: actualRefs, node: linkRefsUnionSchema,
}) })
), ),
}), }),

View File

@@ -1,6 +1,6 @@
import { z } from "zod" import { z } from "zod"
import * as pageLinks from "@/server/routers/contentstack/schemas/pageLinks" import { linkUnionSchema, transformPageLink } from "../../pageLinks"
export const buttonSchema = z export const buttonSchema = z
.object({ .object({
@@ -16,16 +16,8 @@ export const buttonSchema = z
linkConnection: z.object({ linkConnection: z.object({
edges: z.array( edges: z.array(
z.object({ z.object({
node: z node: linkUnionSchema.transform((data) => {
.discriminatedUnion("__typename", [ const link = transformPageLink(data)
pageLinks.accountPageSchema,
pageLinks.contentPageSchema,
pageLinks.loyaltyPageSchema,
pageLinks.hotelPageSchema,
pageLinks.collectionPageSchema,
])
.transform((data) => {
const link = pageLinks.transform(data)
if (link) { if (link) {
return link return link
} }

View File

@@ -1,19 +1,13 @@
import { z } from "zod" import { z } from "zod"
import * as pageLinks from "@/server/routers/contentstack/schemas/pageLinks" import { linkRefsUnionSchema } from "../../pageLinks"
export const linkConnectionRefsSchema = z export const linkConnectionRefsSchema = z
.object({ .object({
linkConnection: z.object({ linkConnection: z.object({
edges: z.array( edges: z.array(
z.object({ z.object({
node: z.discriminatedUnion("__typename", [ node: linkRefsUnionSchema,
pageLinks.accountPageRefSchema,
pageLinks.contentPageRefSchema,
pageLinks.loyaltyPageRefSchema,
pageLinks.collectionPageRefSchema,
pageLinks.hotelPageRefSchema,
]),
}) })
), ),
}), }),

View File

@@ -1,15 +1,11 @@
import { z } from "zod" import { z } from "zod"
import { discriminatedUnion } from "@/lib/discriminatedUnion" import {
import * as pageLinks from "@/server/routers/contentstack/schemas/pageLinks" linkRefsUnionSchema,
linkUnionSchema,
const linkUnionSchema = z.discriminatedUnion("__typename", [ transformPageLink,
pageLinks.contentPageSchema, transformPageLinkRef,
pageLinks.collectionPageSchema, } from "./pageLinks"
pageLinks.hotelPageSchema,
pageLinks.loyaltyPageSchema,
pageLinks.accountPageSchema,
])
const titleSchema = z.object({ const titleSchema = z.object({
title: z.string().optional().default(""), title: z.string().optional().default(""),
@@ -20,7 +16,7 @@ export const linkConnectionSchema = z
linkConnection: z.object({ linkConnection: z.object({
edges: z.array( edges: z.array(
z.object({ z.object({
node: discriminatedUnion(linkUnionSchema.options), node: linkUnionSchema,
}) })
), ),
}), }),
@@ -29,7 +25,7 @@ export const linkConnectionSchema = z
if (data.linkConnection.edges.length) { if (data.linkConnection.edges.length) {
const linkNode = data.linkConnection.edges[0].node const linkNode = data.linkConnection.edges[0].node
if (linkNode) { if (linkNode) {
const link = pageLinks.transform(linkNode) const link = transformPageLink(linkNode)
if (link) { if (link) {
return { return {
link, link,
@@ -48,20 +44,12 @@ export const linkAndTitleSchema = z.intersection(
titleSchema titleSchema
) )
const linkRefsUnionSchema = z.discriminatedUnion("__typename", [
pageLinks.contentPageRefSchema,
pageLinks.hotelPageRefSchema,
pageLinks.loyaltyPageRefSchema,
pageLinks.accountPageRefSchema,
pageLinks.collectionPageRefSchema,
])
export const linkConnectionRefs = z export const linkConnectionRefs = z
.object({ .object({
linkConnection: z.object({ linkConnection: z.object({
edges: z.array( edges: z.array(
z.object({ z.object({
node: discriminatedUnion(linkRefsUnionSchema.options), node: linkRefsUnionSchema,
}) })
), ),
}), }),
@@ -70,7 +58,7 @@ export const linkConnectionRefs = z
if (data.linkConnection.edges.length) { if (data.linkConnection.edges.length) {
const linkNode = data.linkConnection.edges[0].node const linkNode = data.linkConnection.edges[0].node
if (linkNode) { if (linkNode) {
const link = pageLinks.transformRef(linkNode) const link = transformPageLinkRef(linkNode)
if (link) { if (link) {
return { return {
link, link,

View File

@@ -74,6 +74,12 @@ export const destinationCountryPageRefSchema = z.object({
system: systemSchema, system: systemSchema,
}) })
export const destinationOverviewPageSchema = z
.object({
__typename: z.literal(ContentEnum.blocks.DestinationOverviewPage),
})
.merge(pageLinkSchema)
export const destinationOverviewPageRefSchema = z.object({ export const destinationOverviewPageRefSchema = z.object({
__typename: z.literal(ContentEnum.blocks.DestinationOverviewPage), __typename: z.literal(ContentEnum.blocks.DestinationOverviewPage),
system: systemSchema, system: systemSchema,
@@ -101,19 +107,50 @@ export const loyaltyPageRefSchema = z.object({
system: systemSchema, system: systemSchema,
}) })
export const startPageSchema = z
.object({
__typename: z.literal(ContentEnum.blocks.StartPage),
})
.merge(pageLinkSchema)
export const startPageRefSchema = z.object({
__typename: z.literal(ContentEnum.blocks.StartPage),
system: systemSchema,
})
export const linkUnionSchema = z.discriminatedUnion("__typename", [
accountPageSchema,
collectionPageSchema,
contentPageSchema,
destinationCityPageSchema,
destinationCountryPageSchema,
destinationOverviewPageSchema,
hotelPageSchema,
loyaltyPageSchema,
startPageSchema,
])
type Data = type Data =
| z.output<typeof accountPageSchema> | z.output<typeof accountPageSchema>
| z.output<typeof contentPageSchema>
| z.output<typeof collectionPageSchema> | z.output<typeof collectionPageSchema>
| z.output<typeof contentPageSchema>
| z.output<typeof destinationCityPageSchema>
| z.output<typeof destinationCountryPageSchema>
| z.output<typeof destinationOverviewPageSchema>
| z.output<typeof hotelPageSchema> | z.output<typeof hotelPageSchema>
| z.output<typeof loyaltyPageSchema> | z.output<typeof loyaltyPageSchema>
| z.output<typeof startPageSchema>
| Object | Object
export function transform(data: Data) { export function transformPageLink(data: Data) {
if (data && "__typename" in data) { if (data && "__typename" in data) {
switch (data.__typename) { switch (data.__typename) {
case ContentEnum.blocks.AccountPage: case ContentEnum.blocks.AccountPage:
case ContentEnum.blocks.HotelPage: case ContentEnum.blocks.HotelPage:
case ContentEnum.blocks.DestinationCityPage:
case ContentEnum.blocks.DestinationCountryPage:
case ContentEnum.blocks.DestinationOverviewPage:
case ContentEnum.blocks.StartPage:
return { return {
__typename: data.__typename, __typename: data.__typename,
system: data.system, system: data.system,
@@ -139,15 +176,31 @@ export function transform(data: Data) {
} }
} }
export const linkRefsUnionSchema = z.discriminatedUnion("__typename", [
contentPageRefSchema,
hotelPageRefSchema,
loyaltyPageRefSchema,
accountPageRefSchema,
collectionPageRefSchema,
destinationCityPageRefSchema,
destinationCountryPageRefSchema,
destinationOverviewPageRefSchema,
startPageRefSchema,
])
type RefData = type RefData =
| z.output<typeof accountPageRefSchema> | z.output<typeof accountPageRefSchema>
| z.output<typeof collectionPageRefSchema> | z.output<typeof collectionPageRefSchema>
| z.output<typeof contentPageRefSchema> | z.output<typeof contentPageRefSchema>
| z.output<typeof hotelPageRefSchema> | z.output<typeof hotelPageRefSchema>
| z.output<typeof loyaltyPageRefSchema> | z.output<typeof loyaltyPageRefSchema>
| z.output<typeof destinationCountryPageRefSchema>
| z.output<typeof destinationCityPageRefSchema>
| z.output<typeof destinationOverviewPageRefSchema>
| z.output<typeof startPageRefSchema>
| Object | Object
export function transformRef(data: RefData) { export function transformPageLinkRef(data: RefData) {
if (data && "__typename" in data) { if (data && "__typename" in data) {
switch (data.__typename) { switch (data.__typename) {
case ContentEnum.blocks.AccountPage: case ContentEnum.blocks.AccountPage:
@@ -155,6 +208,10 @@ export function transformRef(data: RefData) {
case ContentEnum.blocks.CollectionPage: case ContentEnum.blocks.CollectionPage:
case ContentEnum.blocks.HotelPage: case ContentEnum.blocks.HotelPage:
case ContentEnum.blocks.LoyaltyPage: case ContentEnum.blocks.LoyaltyPage:
case ContentEnum.blocks.DestinationCityPage:
case ContentEnum.blocks.DestinationCountryPage:
case ContentEnum.blocks.DestinationOverviewPage:
case ContentEnum.blocks.StartPage:
return data.system return data.system
} }
} }

View File

@@ -1,12 +1,15 @@
import { z } from "zod" import { z } from "zod"
import * as pageLinks from "@/server/routers/contentstack/schemas/pageLinks"
import { imageRefsSchema, imageSchema } from "../blocks/image" import { imageRefsSchema, imageSchema } from "../blocks/image"
import { import {
imageContainerRefsSchema, imageContainerRefsSchema,
imageContainerSchema, imageContainerSchema,
} from "../blocks/imageContainer" } from "../blocks/imageContainer"
import {
linkRefsUnionSchema,
linkUnionSchema,
transformPageLink,
} from "../pageLinks"
import { ContentEnum } from "@/types/enums/content" import { ContentEnum } from "@/types/enums/content"
import { SidebarEnums } from "@/types/enums/sidebar" import { SidebarEnums } from "@/types/enums/sidebar"
@@ -27,14 +30,10 @@ export const contentSchema = z.object({
.discriminatedUnion("__typename", [ .discriminatedUnion("__typename", [
imageContainerSchema, imageContainerSchema,
imageSchema, imageSchema,
pageLinks.contentPageSchema, ...linkUnionSchema.options,
pageLinks.loyaltyPageSchema,
pageLinks.collectionPageSchema,
pageLinks.hotelPageSchema,
pageLinks.accountPageSchema,
]) ])
.transform((data) => { .transform((data) => {
const link = pageLinks.transform(data) const link = transformPageLink(data)
if (link) { if (link) {
return link return link
} }
@@ -55,11 +54,7 @@ export const contentSchema = z.object({
const actualRefs = z.discriminatedUnion("__typename", [ const actualRefs = z.discriminatedUnion("__typename", [
imageContainerRefsSchema, imageContainerRefsSchema,
pageLinks.contentPageRefSchema, ...linkRefsUnionSchema.options,
pageLinks.loyaltyPageRefSchema,
pageLinks.collectionPageRefSchema,
pageLinks.hotelPageRefSchema,
pageLinks.accountPageRefSchema,
]) ])
type Ref = typeof actualRefs._type type Ref = typeof actualRefs._type

View File

@@ -9,6 +9,7 @@ export namespace ContentEnum {
HotelPage = "HotelPage", HotelPage = "HotelPage",
ImageContainer = "ImageContainer", ImageContainer = "ImageContainer",
LoyaltyPage = "LoyaltyPage", LoyaltyPage = "LoyaltyPage",
StartPage = "StartPage",
SysAsset = "SysAsset", SysAsset = "SysAsset",
} }
} }

View File

@@ -1,10 +1,9 @@
import { z } from "zod" import type { z } from "zod"
import { import type {
extendedPageLinkSchema, extendedPageLinkSchema,
pageLinkSchema, pageLinkSchema,
} from "@/server/routers/contentstack/schemas/pageLinks" } from "@/server/routers/contentstack/schemas/pageLinks"
import type { EmbedEnum } from "./embeds" import type { EmbedEnum } from "./embeds"
import type { TypenameInterface } from "./typename" import type { TypenameInterface } from "./typename"