diff --git a/apps/scandic-web/components/JsonToHtml/renderOptions.tsx b/apps/scandic-web/components/JsonToHtml/renderOptions.tsx index 0d7520585..9bb33a0b7 100644 --- a/apps/scandic-web/components/JsonToHtml/renderOptions.tsx +++ b/apps/scandic-web/components/JsonToHtml/renderOptions.tsx @@ -450,6 +450,7 @@ export const renderOptions: RenderOptions = { return null } else if ( entry?.node.__typename === ContentEnum.blocks.AccountPage || + entry?.node.__typename === ContentEnum.blocks.CampaignPage || entry?.node.__typename === ContentEnum.blocks.CollectionPage || entry?.node.__typename === ContentEnum.blocks.ContentPage || entry?.node.__typename === ContentEnum.blocks.DestinationCityPage || diff --git a/apps/scandic-web/lib/graphql/Fragments/Alert.graphql b/apps/scandic-web/lib/graphql/Fragments/Alert.graphql index fc8062b0f..c17f40759 100644 --- a/apps/scandic-web/lib/graphql/Fragments/Alert.graphql +++ b/apps/scandic-web/lib/graphql/Fragments/Alert.graphql @@ -1,4 +1,5 @@ #import "./PageLink/AccountPageLink.graphql" +#import "./PageLink/CampaignPageLink.graphql" #import "./PageLink/CollectionPageLink.graphql" #import "./PageLink/ContentPageLink.graphql" #import "./PageLink/DestinationCityPageLink.graphql" @@ -9,6 +10,7 @@ #import "./PageLink/StartPageLink.graphql" #import "./AccountPage/Ref.graphql" +#import "./CampaignPage/Ref.graphql" #import "./CollectionPage/Ref.graphql" #import "./ContentPage/Ref.graphql" #import "./DestinationCityPage/Ref.graphql" @@ -35,6 +37,7 @@ fragment Alert on Alert { node { __typename ...AccountPageLink + ...CampaignPageLink ...CollectionPageLink ...ContentPageLink ...DestinationCityPageLink @@ -59,6 +62,7 @@ fragment Alert on Alert { node { __typename ...AccountPageLink + ...CampaignPageLink ...CollectionPageLink ...ContentPageLink ...DestinationCityPageLink @@ -82,6 +86,7 @@ fragment AlertRef on Alert { node { __typename ...AccountPageRef + ...CampaignPageRef ...CollectionPageRef ...ContentPageRef ...DestinationCityPageRef @@ -101,6 +106,7 @@ fragment AlertRef on Alert { node { __typename ...AccountPageRef + ...CampaignPageRef ...CollectionPageRef ...ContentPageRef ...DestinationCityPageRef diff --git a/apps/scandic-web/lib/graphql/Fragments/Blocks/Accordion.graphql b/apps/scandic-web/lib/graphql/Fragments/Blocks/Accordion.graphql index 6c7003735..0a4b7a23a 100644 --- a/apps/scandic-web/lib/graphql/Fragments/Blocks/Accordion.graphql +++ b/apps/scandic-web/lib/graphql/Fragments/Blocks/Accordion.graphql @@ -1,6 +1,7 @@ #import "../SysAsset.graphql" #import "../PageLink/AccountPageLink.graphql" +#import "../PageLink/CampaignPageLink.graphql" #import "../PageLink/CollectionPageLink.graphql" #import "../PageLink/ContentPageLink.graphql" #import "../PageLink/DestinationCityPageLink.graphql" @@ -11,6 +12,7 @@ #import "../PageLink/StartPageLink.graphql" #import "../AccountPage/Ref.graphql" +#import "../CampaignPage/Ref.graphql" #import "../CollectionPage/Ref.graphql" #import "../ContentPage/Ref.graphql" #import "../DestinationCityPage/Ref.graphql" @@ -32,9 +34,9 @@ fragment AccordionBlock on Accordion { embedded_itemsConnection { edges { node { - __typename ...SysAsset ...AccountPageLink + ...CampaignPageLink ...CollectionPageLink ...ContentPageLink ...DestinationCityPageLink @@ -62,6 +64,7 @@ fragment GlobalAccordionBlock on GlobalAccordion { __typename ...SysAsset ...AccountPageLink + ...CampaignPageLink ...CollectionPageLink ...ContentPageLink ...DestinationCityPageLink @@ -115,6 +118,7 @@ fragment SpecificAccordion_ContentPage on ContentPageBlocksAccordionBlockAccordi __typename ...SysAsset ...AccountPageLink + ...CampaignPageLink ...CollectionPageLink ...ContentPageLink ...DestinationCityPageLink @@ -162,6 +166,7 @@ fragment SpecificAccordion_ContentPageRefs on ContentPageBlocksAccordionBlockAcc node { __typename ...AccountPageRef + ...CampaignPageRef ...CollectionPageRef ...ContentPageRef ...DestinationCityPageRef @@ -216,6 +221,7 @@ fragment SpecificAccordion_DestinationCityPage on DestinationCityPageBlocksAccor __typename ...SysAsset ...AccountPageLink + ...CampaignPageLink ...CollectionPageLink ...ContentPageLink ...DestinationCityPageLink @@ -263,6 +269,7 @@ fragment SpecificAccordion_DestinationCityPageRefs on DestinationCityPageBlocksA node { __typename ...AccountPageRef + ...CampaignPageRef ...CollectionPageRef ...ContentPageRef ...DestinationCityPageRef @@ -317,6 +324,7 @@ fragment SpecificAccordion_DestinationCountryPage on DestinationCountryPageBlock __typename ...SysAsset ...AccountPageLink + ...CampaignPageLink ...CollectionPageLink ...ContentPageLink ...DestinationCityPageLink @@ -364,6 +372,7 @@ fragment SpecificAccordion_DestinationCountryPageRefs on DestinationCountryPageB node { __typename ...AccountPageRef + ...CampaignPageRef ...CollectionPageRef ...ContentPageRef ...DestinationCityPageRef @@ -418,6 +427,7 @@ fragment SpecificAccordion_CampaignPage on CampaignPageBlocksAccordionBlockAccor __typename ...SysAsset ...AccountPageLink + ...CampaignPageLink ...CollectionPageLink ...ContentPageLink ...DestinationCityPageLink @@ -465,6 +475,7 @@ fragment SpecificAccordion_CampaignPageRefs on CampaignPageBlocksAccordionBlockA node { __typename ...AccountPageRef + ...CampaignPageRef ...CollectionPageRef ...ContentPageRef ...DestinationCityPageRef diff --git a/apps/scandic-web/lib/graphql/Fragments/Blocks/Card.graphql b/apps/scandic-web/lib/graphql/Fragments/Blocks/Card.graphql index e616481ec..f4bb12089 100644 --- a/apps/scandic-web/lib/graphql/Fragments/Blocks/Card.graphql +++ b/apps/scandic-web/lib/graphql/Fragments/Blocks/Card.graphql @@ -1,6 +1,7 @@ #import "../System.graphql" #import "../PageLink/AccountPageLink.graphql" +#import "../PageLink/CampaignPageLink.graphql" #import "../PageLink/CollectionPageLink.graphql" #import "../PageLink/ContentPageLink.graphql" #import "../PageLink/DestinationCityPageLink.graphql" @@ -31,6 +32,7 @@ fragment CardBlock on Card { node { __typename ...AccountPageLink + ...CampaignPageLink ...CollectionPageLink ...ContentPageLink ...DestinationCityPageLink @@ -56,6 +58,7 @@ fragment CardBlock on Card { node { __typename ...AccountPageLink + ...CampaignPageLink ...CollectionPageLink ...ContentPageLink ...DestinationCityPageLink diff --git a/apps/scandic-web/lib/graphql/Fragments/Blocks/CardGallery.graphql b/apps/scandic-web/lib/graphql/Fragments/Blocks/CardGallery.graphql index 3a6796e0e..00c02d538 100644 --- a/apps/scandic-web/lib/graphql/Fragments/Blocks/CardGallery.graphql +++ b/apps/scandic-web/lib/graphql/Fragments/Blocks/CardGallery.graphql @@ -1,6 +1,8 @@ #import "../System.graphql" #import "./ContentCard.graphql" + #import "../PageLink/AccountPageLink.graphql" +#import "../PageLink/CampaignPageLink.graphql" #import "../PageLink/CollectionPageLink.graphql" #import "../PageLink/ContentPageLink.graphql" #import "../PageLink/DestinationCityPageLink.graphql" @@ -11,13 +13,15 @@ #import "../PageLink/StartPageLink.graphql" #import "../AccountPage/Ref.graphql" -#import "../ContentPage/Ref.graphql" -#import "../HotelPage/Ref.graphql" -#import "../LoyaltyPage/Ref.graphql" +#import "../CampaignPage/Ref.graphql" #import "../CollectionPage/Ref.graphql" +#import "../ContentPage/Ref.graphql" #import "../DestinationCityPage/Ref.graphql" #import "../DestinationCountryPage/Ref.graphql" #import "../DestinationOverviewPage/Ref.graphql" +#import "../HotelPage/Ref.graphql" +#import "../LoyaltyPage/Ref.graphql" +#import "../StartPage/Ref.graphql" fragment CardGallery_DestinationOverviewPage on DestinationOverviewPageBlocksCardGallery { card_gallery { @@ -46,6 +50,7 @@ fragment CardGallery_DestinationOverviewPage on DestinationOverviewPageBlocksCar node { __typename ...AccountPageLink + ...CampaignPageLink ...CollectionPageLink ...ContentPageLink ...DestinationCityPageLink @@ -53,6 +58,7 @@ fragment CardGallery_DestinationOverviewPage on DestinationOverviewPageBlocksCar ...DestinationOverviewPageLink ...HotelPageLink ...LoyaltyPageLink + ...StartPageLink } } } @@ -77,6 +83,7 @@ fragment CardGallery_DestinationOverviewPageRefs on DestinationOverviewPageBlock node { __typename ...AccountPageRef + ...CampaignPageRef ...CollectionPageRef ...ContentPageRef ...DestinationCityPageRef @@ -84,6 +91,7 @@ fragment CardGallery_DestinationOverviewPageRefs on DestinationOverviewPageBlock ...DestinationOverviewPageRef ...HotelPageRef ...LoyaltyPageRef + ...StartPageRef } } } diff --git a/apps/scandic-web/lib/graphql/Fragments/Blocks/CarouselCards.graphql b/apps/scandic-web/lib/graphql/Fragments/Blocks/CarouselCards.graphql index 48772de3c..afc56c2b6 100644 --- a/apps/scandic-web/lib/graphql/Fragments/Blocks/CarouselCards.graphql +++ b/apps/scandic-web/lib/graphql/Fragments/Blocks/CarouselCards.graphql @@ -1,6 +1,8 @@ #import "../System.graphql" #import "./ContentCard.graphql" + #import "../PageLink/AccountPageLink.graphql" +#import "../PageLink/CampaignPageLink.graphql" #import "../PageLink/CollectionPageLink.graphql" #import "../PageLink/ContentPageLink.graphql" #import "../PageLink/DestinationCityPageLink.graphql" @@ -11,6 +13,7 @@ #import "../PageLink/StartPageLink.graphql" #import "../AccountPage/Ref.graphql" +#import "../CampaignPage/Ref.graphql" #import "../ContentPage/Ref.graphql" #import "../HotelPage/Ref.graphql" #import "../LoyaltyPage/Ref.graphql" @@ -47,6 +50,7 @@ fragment CarouselCards_StartPage on StartPageBlocksCarouselCards { node { __typename ...AccountPageLink + ...CampaignPageLink ...CollectionPageLink ...ContentPageLink ...DestinationCityPageLink @@ -78,6 +82,7 @@ fragment CarouselCards_StartPageRefs on StartPageBlocksCarouselCards { node { __typename ...AccountPageRef + ...CampaignPageRef ...CollectionPageRef ...ContentPageRef ...DestinationCityPageRef diff --git a/apps/scandic-web/lib/graphql/Fragments/Blocks/Content.graphql b/apps/scandic-web/lib/graphql/Fragments/Blocks/Content.graphql index 6f17ed4a9..31b2cca51 100644 --- a/apps/scandic-web/lib/graphql/Fragments/Blocks/Content.graphql +++ b/apps/scandic-web/lib/graphql/Fragments/Blocks/Content.graphql @@ -2,6 +2,7 @@ #import "../ImageContainer.graphql" #import "../PageLink/AccountPageLink.graphql" +#import "../PageLink/CampaignPageLink.graphql" #import "../PageLink/CollectionPageLink.graphql" #import "../PageLink/ContentPageLink.graphql" #import "../PageLink/DestinationCityPageLink.graphql" @@ -12,6 +13,7 @@ #import "../PageLink/StartPageLink.graphql" #import "../AccountPage/Ref.graphql" +#import "../CampaignPage/Ref.graphql" #import "../CollectionPage/Ref.graphql" #import "../ContentPage/Ref.graphql" #import "../DestinationCityPage/Ref.graphql" @@ -31,6 +33,7 @@ fragment Content_ContentPage on ContentPageBlocksContent { ...SysAsset ...ImageContainer ...AccountPageLink + ...CampaignPageLink ...CollectionPageLink ...ContentPageLink ...DestinationCityPageLink @@ -55,6 +58,7 @@ fragment Content_ContentPageRefs on ContentPageBlocksContent { node { __typename ...AccountPageRef + ...CampaignPageRef ...CollectionPageRef ...ContentPageRef ...DestinationCityPageRef @@ -81,6 +85,7 @@ fragment Content_LoyaltyPage on LoyaltyPageBlocksContent { ...SysAsset ...ImageContainer ...AccountPageLink + ...CampaignPageLink ...CollectionPageLink ...ContentPageLink ...DestinationCityPageLink @@ -104,6 +109,7 @@ fragment Content_LoyaltyPageRefs on LoyaltyPageBlocksContent { node { __typename ...AccountPageRef + ...CampaignPageRef ...CollectionPageRef ...ContentPageRef ...DestinationCityPageRef @@ -127,6 +133,7 @@ fragment Content_DestinationCityPage on DestinationCityPageBlocksContent { node { __typename ...AccountPageLink + ...CampaignPageLink ...CollectionPageLink ...ContentPageLink ...DestinationCityPageLink @@ -151,6 +158,7 @@ fragment Content_DestinationCityPageRefs on DestinationCityPageBlocksContent { node { __typename ...AccountPageRef + ...CampaignPageRef ...CollectionPageRef ...ContentPageRef ...DestinationCityPageRef @@ -174,6 +182,7 @@ fragment Content_DestinationCountryPage on DestinationCountryPageBlocksContent { node { __typename ...AccountPageLink + ...CampaignPageLink ...CollectionPageLink ...ContentPageLink ...DestinationCityPageLink @@ -198,6 +207,7 @@ fragment Content_DestinationCountryPageRefs on DestinationCountryPageBlocksConte node { __typename ...AccountPageRef + ...CampaignPageRef ...CollectionPageRef ...ContentPageRef ...DestinationCityPageRef diff --git a/apps/scandic-web/lib/graphql/Fragments/Blocks/ContentCard.graphql b/apps/scandic-web/lib/graphql/Fragments/Blocks/ContentCard.graphql index 3601f6b96..f8ea27769 100644 --- a/apps/scandic-web/lib/graphql/Fragments/Blocks/ContentCard.graphql +++ b/apps/scandic-web/lib/graphql/Fragments/Blocks/ContentCard.graphql @@ -1,5 +1,7 @@ #import "../System.graphql" + #import "../PageLink/AccountPageLink.graphql" +#import "../PageLink/CampaignPageLink.graphql" #import "../PageLink/CollectionPageLink.graphql" #import "../PageLink/ContentPageLink.graphql" #import "../PageLink/DestinationCityPageLink.graphql" @@ -10,6 +12,7 @@ #import "../PageLink/StartPageLink.graphql" #import "../AccountPage/Ref.graphql" +#import "../CampaignPage/Ref.graphql" #import "../ContentPage/Ref.graphql" #import "../HotelPage/Ref.graphql" #import "../LoyaltyPage/Ref.graphql" @@ -39,6 +42,7 @@ fragment ContentCardBlock on ContentCard { node { __typename ...AccountPageLink + ...CampaignPageLink ...CollectionPageLink ...ContentPageLink ...DestinationCityPageLink @@ -64,6 +68,7 @@ fragment ContentCardBlockRef on ContentCard { node { __typename ...AccountPageRef + ...CampaignPageRef ...CollectionPageRef ...ContentPageRef ...DestinationCityPageRef diff --git a/apps/scandic-web/lib/graphql/Fragments/Blocks/DynamicContent.graphql b/apps/scandic-web/lib/graphql/Fragments/Blocks/DynamicContent.graphql index 141daa3f9..170f541db 100644 --- a/apps/scandic-web/lib/graphql/Fragments/Blocks/DynamicContent.graphql +++ b/apps/scandic-web/lib/graphql/Fragments/Blocks/DynamicContent.graphql @@ -1,4 +1,5 @@ #import "../PageLink/AccountPageLink.graphql" +#import "../PageLink/CampaignPageLink.graphql" #import "../PageLink/CollectionPageLink.graphql" #import "../PageLink/ContentPageLink.graphql" #import "../PageLink/DestinationCityPageLink.graphql" @@ -9,6 +10,7 @@ #import "../PageLink/StartPageLink.graphql" #import "../AccountPage/Ref.graphql" +#import "../CampaignPage/Ref.graphql" #import "../CollectionPage/Ref.graphql" #import "../ContentPage/Ref.graphql" #import "../DestinationCityPage/Ref.graphql" @@ -30,6 +32,7 @@ fragment DynamicContent_AccountPage on AccountPageContentDynamicContent { node { __typename ...AccountPageLink + ...CampaignPageLink ...CollectionPageLink ...ContentPageLink ...DestinationCityPageLink @@ -53,6 +56,7 @@ fragment DynamicContent_AccountPageRefs on AccountPageContentDynamicContent { node { __typename ...AccountPageRef + ...CampaignPageRef ...CollectionPageRef ...ContentPageRef ...DestinationCityPageRef @@ -80,6 +84,7 @@ fragment DynamicContent_CollectionPage on CollectionPageBlocksDynamicContent { node { __typename ...AccountPageLink + ...CampaignPageLink ...CollectionPageLink ...ContentPageLink ...DestinationCityPageLink @@ -103,6 +108,7 @@ fragment DynamicContent_CollectionPageRefs on CollectionPageBlocksDynamicContent node { __typename ...AccountPageRef + ...CampaignPageRef ...CollectionPageRef ...ContentPageRef ...DestinationCityPageRef @@ -130,6 +136,7 @@ fragment DynamicContent_ContentPage on ContentPageBlocksDynamicContent { node { __typename ...AccountPageLink + ...CampaignPageLink ...CollectionPageLink ...ContentPageLink ...DestinationCityPageLink @@ -153,6 +160,7 @@ fragment DynamicContent_ContentPageRefs on ContentPageBlocksDynamicContent { node { __typename ...AccountPageRef + ...CampaignPageRef ...CollectionPageRef ...ContentPageRef ...DestinationCityPageRef @@ -180,6 +188,7 @@ fragment DynamicContent_LoyaltyPage on LoyaltyPageBlocksDynamicContent { node { __typename ...AccountPageLink + ...CampaignPageLink ...CollectionPageLink ...ContentPageLink ...DestinationCityPageLink @@ -203,6 +212,7 @@ fragment DynamicContent_LoyaltyPageRefs on LoyaltyPageBlocksDynamicContent { node { __typename ...AccountPageRef + ...CampaignPageRef ...CollectionPageRef ...ContentPageRef ...DestinationCityPageRef diff --git a/apps/scandic-web/lib/graphql/Fragments/Blocks/FullWidthCampaign.graphql b/apps/scandic-web/lib/graphql/Fragments/Blocks/FullWidthCampaign.graphql index 2b5886ce2..6ebe78676 100644 --- a/apps/scandic-web/lib/graphql/Fragments/Blocks/FullWidthCampaign.graphql +++ b/apps/scandic-web/lib/graphql/Fragments/Blocks/FullWidthCampaign.graphql @@ -1,4 +1,5 @@ #import "../PageLink/AccountPageLink.graphql" +#import "../PageLink/CampaignPageLink.graphql" #import "../PageLink/ContentPageLink.graphql" #import "../PageLink/LoyaltyPageLink.graphql" #import "../PageLink/HotelPageLink.graphql" @@ -8,6 +9,7 @@ #import "../PageLink/DestinationOverviewPageLink.graphql" #import "../AccountPage/Ref.graphql" +#import "../CampaignPage/Ref.graphql" #import "../ContentPage/Ref.graphql" #import "../HotelPage/Ref.graphql" #import "../LoyaltyPage/Ref.graphql" @@ -35,13 +37,14 @@ fragment FullWidthCampaign on FullWidthCampaign { node { __typename ...AccountPageLink - ...ContentPageLink - ...LoyaltyPageLink - ...HotelPageLink + ...CampaignPageLink ...CollectionPageLink + ...ContentPageLink ...DestinationCityPageLink ...DestinationCountryPageLink ...DestinationOverviewPageLink + ...HotelPageLink + ...LoyaltyPageLink } } } @@ -60,13 +63,14 @@ fragment FullWidthCampaign on FullWidthCampaign { node { __typename ...AccountPageLink - ...ContentPageLink - ...LoyaltyPageLink - ...HotelPageLink + ...CampaignPageLink ...CollectionPageLink + ...ContentPageLink ...DestinationCityPageLink ...DestinationCountryPageLink ...DestinationOverviewPageLink + ...HotelPageLink + ...LoyaltyPageLink } } } @@ -83,13 +87,14 @@ fragment FullWidthCampaignRefs on FullWidthCampaign { node { __typename ...AccountPageRef - ...ContentPageRef - ...HotelPageRef - ...LoyaltyPageRef + ...CampaignPageRef ...CollectionPageRef + ...ContentPageRef ...DestinationCityPageRef ...DestinationCountryPageRef ...DestinationOverviewPageRef + ...HotelPageRef + ...LoyaltyPageRef } } } @@ -100,13 +105,14 @@ fragment FullWidthCampaignRefs on FullWidthCampaign { node { __typename ...AccountPageRef - ...ContentPageRef - ...HotelPageRef - ...LoyaltyPageRef + ...CampaignPageRef ...CollectionPageRef + ...ContentPageRef ...DestinationCityPageRef ...DestinationCountryPageRef ...DestinationOverviewPageRef + ...HotelPageRef + ...LoyaltyPageRef } } } diff --git a/apps/scandic-web/lib/graphql/Fragments/Blocks/InfoCard.graphql b/apps/scandic-web/lib/graphql/Fragments/Blocks/InfoCard.graphql index 2b162d907..46d82a5be 100644 --- a/apps/scandic-web/lib/graphql/Fragments/Blocks/InfoCard.graphql +++ b/apps/scandic-web/lib/graphql/Fragments/Blocks/InfoCard.graphql @@ -1,6 +1,7 @@ #import "../System.graphql" #import "../PageLink/AccountPageLink.graphql" +#import "../PageLink/CampaignPageLink.graphql" #import "../PageLink/CollectionPageLink.graphql" #import "../PageLink/ContentPageLink.graphql" #import "../PageLink/DestinationCityPageLink.graphql" @@ -31,6 +32,7 @@ fragment InfoCardBlock on InfoCard { node { __typename ...AccountPageLink + ...CampaignPageLink ...CollectionPageLink ...ContentPageLink ...DestinationCityPageLink @@ -56,6 +58,7 @@ fragment InfoCardBlock on InfoCard { node { __typename ...AccountPageLink + ...CampaignPageLink ...CollectionPageLink ...ContentPageLink ...DestinationCityPageLink diff --git a/apps/scandic-web/lib/graphql/Fragments/Blocks/JoinScandicFriends.graphql b/apps/scandic-web/lib/graphql/Fragments/Blocks/JoinScandicFriends.graphql index 54827fde9..aced80015 100644 --- a/apps/scandic-web/lib/graphql/Fragments/Blocks/JoinScandicFriends.graphql +++ b/apps/scandic-web/lib/graphql/Fragments/Blocks/JoinScandicFriends.graphql @@ -1,20 +1,22 @@ #import "../PageLink/AccountPageLink.graphql" -#import "../PageLink/ContentPageLink.graphql" -#import "../PageLink/LoyaltyPageLink.graphql" -#import "../PageLink/HotelPageLink.graphql" +#import "../PageLink/CampaignPageLink.graphql" #import "../PageLink/CollectionPageLink.graphql" +#import "../PageLink/ContentPageLink.graphql" #import "../PageLink/DestinationCityPageLink.graphql" #import "../PageLink/DestinationCountryPageLink.graphql" #import "../PageLink/DestinationOverviewPageLink.graphql" +#import "../PageLink/HotelPageLink.graphql" +#import "../PageLink/LoyaltyPageLink.graphql" #import "../AccountPage/Ref.graphql" -#import "../ContentPage/Ref.graphql" -#import "../HotelPage/Ref.graphql" -#import "../LoyaltyPage/Ref.graphql" +#import "../CampaignPage/Ref.graphql" #import "../CollectionPage/Ref.graphql" +#import "../ContentPage/Ref.graphql" #import "../DestinationCityPage/Ref.graphql" #import "../DestinationCountryPage/Ref.graphql" #import "../DestinationOverviewPage/Ref.graphql" +#import "../HotelPage/Ref.graphql" +#import "../LoyaltyPage/Ref.graphql" fragment JoinScandicFriends_StartPage on StartPageBlocksJoinScandicFriends { __typename @@ -40,13 +42,14 @@ fragment JoinScandicFriends_StartPage on StartPageBlocksJoinScandicFriends { node { __typename ...AccountPageLink - ...ContentPageLink - ...LoyaltyPageLink - ...HotelPageLink + ...CampaignPageLink ...CollectionPageLink + ...ContentPageLink ...DestinationCityPageLink ...DestinationCountryPageLink ...DestinationOverviewPageLink + ...HotelPageLink + ...LoyaltyPageLink } } } @@ -62,13 +65,14 @@ fragment JoinScandicFriends_StartPageRefs on StartPageBlocksJoinScandicFriends { node { __typename ...AccountPageRef - ...ContentPageRef - ...HotelPageRef - ...LoyaltyPageRef + ...CampaignPageRef ...CollectionPageRef + ...ContentPageRef ...DestinationCityPageRef ...DestinationCountryPageRef ...DestinationOverviewPageRef + ...HotelPageRef + ...LoyaltyPageRef } } } diff --git a/apps/scandic-web/lib/graphql/Fragments/Blocks/LoyaltyCard.graphql b/apps/scandic-web/lib/graphql/Fragments/Blocks/LoyaltyCard.graphql index 33024aece..a32cccb1d 100644 --- a/apps/scandic-web/lib/graphql/Fragments/Blocks/LoyaltyCard.graphql +++ b/apps/scandic-web/lib/graphql/Fragments/Blocks/LoyaltyCard.graphql @@ -1,6 +1,7 @@ #import "../System.graphql" #import "../PageLink/AccountPageLink.graphql" +#import "../PageLink/CampaignPageLink.graphql" #import "../PageLink/CollectionPageLink.graphql" #import "../PageLink/ContentPageLink.graphql" #import "../PageLink/DestinationCityPageLink.graphql" @@ -28,6 +29,7 @@ fragment LoyaltyCardBlock on LoyaltyCard { node { __typename ...AccountPageLink + ...CampaignPageLink ...CollectionPageLink ...ContentPageLink ...DestinationCityPageLink diff --git a/apps/scandic-web/lib/graphql/Fragments/Blocks/Refs/Accordion.graphql b/apps/scandic-web/lib/graphql/Fragments/Blocks/Refs/Accordion.graphql index 595965586..037ab89a4 100644 --- a/apps/scandic-web/lib/graphql/Fragments/Blocks/Refs/Accordion.graphql +++ b/apps/scandic-web/lib/graphql/Fragments/Blocks/Refs/Accordion.graphql @@ -1,4 +1,5 @@ #import "../../AccountPage/Ref.graphql" +#import "../../CampaignPage/Ref.graphql" #import "../../CollectionPage/Ref.graphql" #import "../../ContentPage/Ref.graphql" #import "../../DestinationCityPage/Ref.graphql" @@ -16,6 +17,7 @@ fragment AccordionBlockRefs on Accordion { node { __typename ...AccountPageRef + ...CampaignPageRef ...CollectionPageRef ...ContentPageRef ...DestinationCityPageRef @@ -39,6 +41,7 @@ fragment GlobalAccordionBlockRefs on GlobalAccordion { node { __typename ...AccountPageRef + ...CampaignPageRef ...CollectionPageRef ...ContentPageRef ...DestinationCityPageRef diff --git a/apps/scandic-web/lib/graphql/Fragments/Blocks/Refs/Card.graphql b/apps/scandic-web/lib/graphql/Fragments/Blocks/Refs/Card.graphql index 55042684a..637975a69 100644 --- a/apps/scandic-web/lib/graphql/Fragments/Blocks/Refs/Card.graphql +++ b/apps/scandic-web/lib/graphql/Fragments/Blocks/Refs/Card.graphql @@ -1,4 +1,5 @@ #import "../../AccountPage/Ref.graphql" +#import "../../CampaignPage/Ref.graphql" #import "../../CollectionPage/Ref.graphql" #import "../../ContentPage/Ref.graphql" #import "../../DestinationCityPage/Ref.graphql" @@ -15,6 +16,7 @@ fragment CardBlockRef on Card { node { __typename ...AccountPageRef + ...CampaignPageRef ...CollectionPageRef ...ContentPageRef ...DestinationCityPageRef @@ -33,6 +35,7 @@ fragment CardBlockRef on Card { node { __typename ...AccountPageRef + ...CampaignPageRef ...CollectionPageRef ...ContentPageRef ...DestinationCityPageRef diff --git a/apps/scandic-web/lib/graphql/Fragments/Blocks/Refs/InfoCard.graphql b/apps/scandic-web/lib/graphql/Fragments/Blocks/Refs/InfoCard.graphql index 945eeca6a..9a7798f67 100644 --- a/apps/scandic-web/lib/graphql/Fragments/Blocks/Refs/InfoCard.graphql +++ b/apps/scandic-web/lib/graphql/Fragments/Blocks/Refs/InfoCard.graphql @@ -1,4 +1,5 @@ #import "../../AccountPage/Ref.graphql" +#import "../../CampaignPage/Ref.graphql" #import "../../CollectionPage/Ref.graphql" #import "../../ContentPage/Ref.graphql" #import "../../DestinationCityPage/Ref.graphql" @@ -15,6 +16,7 @@ fragment InfoCardBlockRef on InfoCard { node { __typename ...AccountPageRef + ...CampaignPageRef ...CollectionPageRef ...ContentPageRef ...DestinationCityPageRef @@ -33,6 +35,7 @@ fragment InfoCardBlockRef on InfoCard { node { __typename ...AccountPageRef + ...CampaignPageRef ...CollectionPageRef ...ContentPageRef ...DestinationCityPageRef diff --git a/apps/scandic-web/lib/graphql/Fragments/Blocks/Refs/LoyaltyCard.graphql b/apps/scandic-web/lib/graphql/Fragments/Blocks/Refs/LoyaltyCard.graphql index 0c1aaddf8..b5843e0b0 100644 --- a/apps/scandic-web/lib/graphql/Fragments/Blocks/Refs/LoyaltyCard.graphql +++ b/apps/scandic-web/lib/graphql/Fragments/Blocks/Refs/LoyaltyCard.graphql @@ -1,4 +1,5 @@ #import "../../AccountPage/Ref.graphql" +#import "../../CampaignPage/Ref.graphql" #import "../../CollectionPage/Ref.graphql" #import "../../ContentPage/Ref.graphql" #import "../../DestinationCityPage/Ref.graphql" @@ -15,6 +16,7 @@ fragment LoyaltyCardBlockRef on LoyaltyCard { node { __typename ...AccountPageRef + ...CampaignPageRef ...CollectionPageRef ...ContentPageRef ...DestinationCityPageRef diff --git a/apps/scandic-web/lib/graphql/Fragments/Blocks/Refs/TeaserCard.graphql b/apps/scandic-web/lib/graphql/Fragments/Blocks/Refs/TeaserCard.graphql index 3004ca5da..f97d1100b 100644 --- a/apps/scandic-web/lib/graphql/Fragments/Blocks/Refs/TeaserCard.graphql +++ b/apps/scandic-web/lib/graphql/Fragments/Blocks/Refs/TeaserCard.graphql @@ -1,4 +1,5 @@ #import "../../AccountPage/Ref.graphql" +#import "../../CampaignPage/Ref.graphql" #import "../../CollectionPage/Ref.graphql" #import "../../ContentPage/Ref.graphql" #import "../../DestinationCityPage/Ref.graphql" @@ -15,6 +16,7 @@ fragment TeaserCardBlockRef on TeaserCard { node { __typename ...AccountPageRef + ...CampaignPageRef ...CollectionPageRef ...ContentPageRef ...DestinationCityPageRef @@ -33,6 +35,7 @@ fragment TeaserCardBlockRef on TeaserCard { node { __typename ...AccountPageRef + ...CampaignPageRef ...CollectionPageRef ...ContentPageRef ...DestinationCityPageRef @@ -52,6 +55,7 @@ fragment TeaserCardBlockRef on TeaserCard { node { __typename ...AccountPageRef + ...CampaignPageRef ...CollectionPageRef ...ContentPageRef ...DestinationCityPageRef @@ -70,6 +74,7 @@ fragment TeaserCardBlockRef on TeaserCard { node { __typename ...AccountPageRef + ...CampaignPageRef ...CollectionPageRef ...ContentPageRef ...DestinationCityPageRef @@ -88,6 +93,7 @@ fragment TeaserCardBlockRef on TeaserCard { node { __typename ...AccountPageRef + ...CampaignPageRef ...CollectionPageRef ...ContentPageRef ...DestinationCityPageRef diff --git a/apps/scandic-web/lib/graphql/Fragments/Blocks/Shortcuts.graphql b/apps/scandic-web/lib/graphql/Fragments/Blocks/Shortcuts.graphql index d10f94177..e482593ed 100644 --- a/apps/scandic-web/lib/graphql/Fragments/Blocks/Shortcuts.graphql +++ b/apps/scandic-web/lib/graphql/Fragments/Blocks/Shortcuts.graphql @@ -1,4 +1,5 @@ #import "../PageLink/AccountPageLink.graphql" +#import "../PageLink/CampaignPageLink.graphql" #import "../PageLink/CollectionPageLink.graphql" #import "../PageLink/ContentPageLink.graphql" #import "../PageLink/DestinationCityPageLink.graphql" @@ -9,6 +10,7 @@ #import "../PageLink/StartPageLink.graphql" #import "../AccountPage/Ref.graphql" +#import "../CampaignPage/Ref.graphql" #import "../CollectionPage/Ref.graphql" #import "../ContentPage/Ref.graphql" #import "../DestinationCityPage/Ref.graphql" @@ -30,6 +32,7 @@ fragment Shortcuts on Shortcuts { node { __typename ...AccountPageLink + ...CampaignPageLink ...CollectionPageLink ...ContentPageLink ...DestinationCityPageLink @@ -75,6 +78,7 @@ fragment ShortcutsRefs on Shortcuts { node { __typename ...AccountPageRef + ...CampaignPageRef ...CollectionPageRef ...ContentPageRef ...DestinationCityPageRef diff --git a/apps/scandic-web/lib/graphql/Fragments/Blocks/TeaserCard.graphql b/apps/scandic-web/lib/graphql/Fragments/Blocks/TeaserCard.graphql index 6d24ee28f..59f858a78 100644 --- a/apps/scandic-web/lib/graphql/Fragments/Blocks/TeaserCard.graphql +++ b/apps/scandic-web/lib/graphql/Fragments/Blocks/TeaserCard.graphql @@ -1,6 +1,7 @@ #import "../System.graphql" #import "../PageLink/AccountPageLink.graphql" +#import "../PageLink/CampaignPageLink.graphql" #import "../PageLink/CollectionPageLink.graphql" #import "../PageLink/ContentPageLink.graphql" #import "../PageLink/DestinationCityPageLink.graphql" @@ -31,6 +32,7 @@ fragment TeaserCardBlock on TeaserCard { node { __typename ...AccountPageLink + ...CampaignPageLink ...CollectionPageLink ...ContentPageLink ...DestinationCityPageLink @@ -56,6 +58,7 @@ fragment TeaserCardBlock on TeaserCard { node { __typename ...AccountPageLink + ...CampaignPageLink ...CollectionPageLink ...ContentPageLink ...DestinationCityPageLink @@ -79,6 +82,7 @@ fragment TeaserCardBlock on TeaserCard { node { __typename ...AccountPageLink + ...CampaignPageLink ...CollectionPageLink ...ContentPageLink ...DestinationCityPageLink @@ -106,6 +110,7 @@ fragment TeaserCardBlock on TeaserCard { node { __typename ...AccountPageLink + ...CampaignPageLink ...CollectionPageLink ...ContentPageLink ...DestinationCityPageLink @@ -132,6 +137,7 @@ fragment TeaserCardBlock on TeaserCard { node { __typename ...AccountPageLink + ...CampaignPageLink ...CollectionPageLink ...ContentPageLink ...DestinationCityPageLink diff --git a/apps/scandic-web/lib/graphql/Fragments/Blocks/TextCols.graphql b/apps/scandic-web/lib/graphql/Fragments/Blocks/TextCols.graphql index b1d385efd..cc8586a0e 100644 --- a/apps/scandic-web/lib/graphql/Fragments/Blocks/TextCols.graphql +++ b/apps/scandic-web/lib/graphql/Fragments/Blocks/TextCols.graphql @@ -1,4 +1,5 @@ #import "../PageLink/AccountPageLink.graphql" +#import "../PageLink/CampaignPageLink.graphql" #import "../PageLink/CollectionPageLink.graphql" #import "../PageLink/ContentPageLink.graphql" #import "../PageLink/DestinationCityPageLink.graphql" @@ -9,6 +10,7 @@ #import "../PageLink/StartPageLink.graphql" #import "../AccountPage/Ref.graphql" +#import "../CampaignPage/Ref.graphql" #import "../CollectionPage/Ref.graphql" #import "../ContentPage/Ref.graphql" #import "../DestinationCityPage/Ref.graphql" @@ -29,6 +31,7 @@ fragment TextCols_ContentPage on ContentPageBlocksTextCols { node { __typename ...AccountPageLink + ...CampaignPageLink ...CollectionPageLink ...ContentPageLink ...DestinationCityPageLink @@ -56,6 +59,7 @@ fragment TextCols_ContentPageRef on ContentPageBlocksTextCols { node { __typename ...AccountPageRef + ...CampaignPageRef ...CollectionPageRef ...ContentPageRef ...DestinationCityPageRef diff --git a/apps/scandic-web/lib/graphql/Fragments/Blocks/UspGrid.graphql b/apps/scandic-web/lib/graphql/Fragments/Blocks/UspGrid.graphql index fb47a0556..5c642c6d5 100644 --- a/apps/scandic-web/lib/graphql/Fragments/Blocks/UspGrid.graphql +++ b/apps/scandic-web/lib/graphql/Fragments/Blocks/UspGrid.graphql @@ -1,4 +1,5 @@ #import "../PageLink/AccountPageLink.graphql" +#import "../PageLink/CampaignPageLink.graphql" #import "../PageLink/CollectionPageLink.graphql" #import "../PageLink/ContentPageLink.graphql" #import "../PageLink/DestinationCityPageLink.graphql" @@ -9,6 +10,7 @@ #import "../PageLink/StartPageLink.graphql" #import "../AccountPage/Ref.graphql" +#import "../CampaignPage/Ref.graphql" #import "../CollectionPage/Ref.graphql" #import "../ContentPage/Ref.graphql" #import "../DestinationCityPage/Ref.graphql" @@ -35,6 +37,7 @@ fragment UspGrid_ContentPage on ContentPageBlocksUspGrid { node { __typename ...AccountPageLink + ...CampaignPageLink ...CollectionPageLink ...ContentPageLink ...DestinationCityPageLink @@ -69,6 +72,7 @@ fragment UspGrid_ContentPageRefs on ContentPageBlocksUspGrid { node { __typename ...AccountPageRef + ...CampaignPageRef ...CollectionPageRef ...ContentPageRef ...DestinationCityPageRef diff --git a/apps/scandic-web/lib/graphql/Fragments/CampaignPage/Ref.graphql b/apps/scandic-web/lib/graphql/Fragments/CampaignPage/Ref.graphql new file mode 100644 index 000000000..9e3294634 --- /dev/null +++ b/apps/scandic-web/lib/graphql/Fragments/CampaignPage/Ref.graphql @@ -0,0 +1,7 @@ +#import "../System.graphql" + +fragment CampaignPageRef on CampaignPage { + system { + ...System + } +} diff --git a/apps/scandic-web/lib/graphql/Fragments/CollectionPage/NavigationLinks.graphql b/apps/scandic-web/lib/graphql/Fragments/CollectionPage/NavigationLinks.graphql index 596781cce..7ee7c9472 100644 --- a/apps/scandic-web/lib/graphql/Fragments/CollectionPage/NavigationLinks.graphql +++ b/apps/scandic-web/lib/graphql/Fragments/CollectionPage/NavigationLinks.graphql @@ -1,4 +1,5 @@ #import "../PageLink/AccountPageLink.graphql" +#import "../PageLink/CampaignPageLink.graphql" #import "../PageLink/CollectionPageLink.graphql" #import "../PageLink/ContentPageLink.graphql" #import "../PageLink/DestinationCityPageLink.graphql" @@ -9,6 +10,7 @@ #import "../PageLink/StartPageLink.graphql" #import "../AccountPage/Ref.graphql" +#import "../CampaignPage/Ref.graphql" #import "../CollectionPage/Ref.graphql" #import "../ContentPage/Ref.graphql" #import "../DestinationCityPage/Ref.graphql" @@ -26,6 +28,7 @@ fragment NavigationLinks_CollectionPage on CollectionPageHeader { node { __typename ...AccountPageLink + ...CampaignPageLink ...CollectionPageLink ...ContentPageLink ...DestinationCityPageLink @@ -47,6 +50,7 @@ fragment NavigationLinksRef_CollectionPage on CollectionPageHeader { node { __typename ...AccountPageRef + ...CampaignPageRef ...CollectionPageRef ...ContentPageRef ...DestinationCityPageRef diff --git a/apps/scandic-web/lib/graphql/Fragments/CollectionPage/TopPrimaryButton.graphql b/apps/scandic-web/lib/graphql/Fragments/CollectionPage/TopPrimaryButton.graphql index ea3189ed5..2478de61c 100644 --- a/apps/scandic-web/lib/graphql/Fragments/CollectionPage/TopPrimaryButton.graphql +++ b/apps/scandic-web/lib/graphql/Fragments/CollectionPage/TopPrimaryButton.graphql @@ -1,4 +1,5 @@ #import "../PageLink/AccountPageLink.graphql" +#import "../PageLink/CampaignPageLink.graphql" #import "../PageLink/CollectionPageLink.graphql" #import "../PageLink/ContentPageLink.graphql" #import "../PageLink/DestinationCityPageLink.graphql" @@ -9,6 +10,7 @@ #import "../PageLink/StartPageLink.graphql" #import "../AccountPage/Ref.graphql" +#import "../CampaignPage/Ref.graphql" #import "../CollectionPage/Ref.graphql" #import "../ContentPage/Ref.graphql" #import "../DestinationCityPage/Ref.graphql" @@ -26,6 +28,7 @@ fragment TopPrimaryButton_CollectionPage on CollectionPageHeader { node { __typename ...AccountPageLink + ...CampaignPageLink ...CollectionPageLink ...ContentPageLink ...DestinationCityPageLink @@ -47,6 +50,7 @@ fragment TopPrimaryButtonRef_CollectionPage on CollectionPageHeader { node { __typename ...AccountPageRef + ...CampaignPageRef ...CollectionPageRef ...ContentPageRef ...DestinationCityPageRef diff --git a/apps/scandic-web/lib/graphql/Fragments/ContentPage/NavigationLinks.graphql b/apps/scandic-web/lib/graphql/Fragments/ContentPage/NavigationLinks.graphql index d91a22d27..f4f86b30d 100644 --- a/apps/scandic-web/lib/graphql/Fragments/ContentPage/NavigationLinks.graphql +++ b/apps/scandic-web/lib/graphql/Fragments/ContentPage/NavigationLinks.graphql @@ -1,4 +1,5 @@ #import "../PageLink/AccountPageLink.graphql" +#import "../PageLink/CampaignPageLink.graphql" #import "../PageLink/CollectionPageLink.graphql" #import "../PageLink/ContentPageLink.graphql" #import "../PageLink/DestinationCityPageLink.graphql" @@ -9,6 +10,7 @@ #import "../PageLink/StartPageLink.graphql" #import "../AccountPage/Ref.graphql" +#import "../CampaignPage/Ref.graphql" #import "../CollectionPage/Ref.graphql" #import "../ContentPage/Ref.graphql" #import "../DestinationCityPage/Ref.graphql" @@ -26,6 +28,7 @@ fragment NavigationLinks_ContentPage on ContentPageHeader { node { __typename ...AccountPageLink + ...CampaignPageLink ...CollectionPageLink ...ContentPageLink ...DestinationCityPageLink @@ -47,6 +50,7 @@ fragment NavigationLinksRef_ContentPage on ContentPageHeader { node { __typename ...AccountPageRef + ...CampaignPageRef ...CollectionPageRef ...ContentPageRef ...DestinationCityPageRef diff --git a/apps/scandic-web/lib/graphql/Fragments/ContentPage/TopPrimaryButton.graphql b/apps/scandic-web/lib/graphql/Fragments/ContentPage/TopPrimaryButton.graphql index 5b14474b9..e7369f165 100644 --- a/apps/scandic-web/lib/graphql/Fragments/ContentPage/TopPrimaryButton.graphql +++ b/apps/scandic-web/lib/graphql/Fragments/ContentPage/TopPrimaryButton.graphql @@ -1,4 +1,5 @@ #import "../PageLink/AccountPageLink.graphql" +#import "../PageLink/CampaignPageLink.graphql" #import "../PageLink/CollectionPageLink.graphql" #import "../PageLink/ContentPageLink.graphql" #import "../PageLink/DestinationCityPageLink.graphql" @@ -9,6 +10,7 @@ #import "../PageLink/StartPageLink.graphql" #import "../AccountPage/Ref.graphql" +#import "../CampaignPage/Ref.graphql" #import "../CollectionPage/Ref.graphql" #import "../ContentPage/Ref.graphql" #import "../DestinationCityPage/Ref.graphql" @@ -26,6 +28,7 @@ fragment TopPrimaryButton_ContentPage on ContentPageHeader { node { __typename ...AccountPageLink + ...CampaignPageLink ...CollectionPageLink ...ContentPageLink ...DestinationCityPageLink @@ -47,6 +50,7 @@ fragment TopPrimaryButtonRef_ContentPage on ContentPageHeader { node { __typename ...AccountPageRef + ...CampaignPageRef ...CollectionPageRef ...ContentPageRef ...DestinationCityPageRef diff --git a/apps/scandic-web/lib/graphql/Fragments/PageLink/CampaignPageLink.graphql b/apps/scandic-web/lib/graphql/Fragments/PageLink/CampaignPageLink.graphql new file mode 100644 index 000000000..0555d08b9 --- /dev/null +++ b/apps/scandic-web/lib/graphql/Fragments/PageLink/CampaignPageLink.graphql @@ -0,0 +1,9 @@ +#import "../System.graphql" + +fragment CampaignPageLink on CampaignPage { + title + url + system { + ...System + } +} diff --git a/apps/scandic-web/lib/graphql/Fragments/Sidebar/Content.graphql b/apps/scandic-web/lib/graphql/Fragments/Sidebar/Content.graphql index 61df8d784..0be1a919a 100644 --- a/apps/scandic-web/lib/graphql/Fragments/Sidebar/Content.graphql +++ b/apps/scandic-web/lib/graphql/Fragments/Sidebar/Content.graphql @@ -2,6 +2,7 @@ #import "../ImageContainer.graphql" #import "../PageLink/AccountPageLink.graphql" +#import "../PageLink/CampaignPageLink.graphql" #import "../PageLink/CollectionPageLink.graphql" #import "../PageLink/ContentPageLink.graphql" #import "../PageLink/DestinationCityPageLink.graphql" @@ -12,6 +13,7 @@ #import "../PageLink/StartPageLink.graphql" #import "../AccountPage/Ref.graphql" +#import "../CampaignPage/Ref.graphql" #import "../CollectionPage/Ref.graphql" #import "../ContentPage/Ref.graphql" #import "../DestinationCityPage/Ref.graphql" @@ -32,6 +34,7 @@ fragment ContentSidebar_ContentPage on ContentPageSidebarContent { ...SysAsset ...ImageContainer ...AccountPageLink + ...CampaignPageLink ...CollectionPageLink ...ContentPageLink ...DestinationCityPageLink @@ -56,6 +59,7 @@ fragment ContentSidebar_ContentPageRefs on ContentPageSidebarContent { __typename ...ImageContainerRef ...AccountPageRef + ...CampaignPageRef ...CollectionPageRef ...ContentPageRef ...DestinationCityPageRef @@ -82,6 +86,7 @@ fragment ContentSidebar_LoyaltyPage on LoyaltyPageSidebarContent { ...SysAsset ...ImageContainer ...AccountPageLink + ...CampaignPageLink ...CollectionPageLink ...ContentPageLink ...DestinationCityPageLink @@ -106,6 +111,7 @@ fragment ContentSidebar_LoyaltyPageRefs on LoyaltyPageSidebarContent { __typename ...ImageContainerRef ...AccountPageRef + ...CampaignPageRef ...CollectionPageRef ...ContentPageRef ...DestinationCityPageRef diff --git a/apps/scandic-web/lib/graphql/Fragments/Sidebar/JoinLoyaltyContact.graphql b/apps/scandic-web/lib/graphql/Fragments/Sidebar/JoinLoyaltyContact.graphql index 3cf8ec462..9e2f4e501 100644 --- a/apps/scandic-web/lib/graphql/Fragments/Sidebar/JoinLoyaltyContact.graphql +++ b/apps/scandic-web/lib/graphql/Fragments/Sidebar/JoinLoyaltyContact.graphql @@ -1,4 +1,5 @@ #import "../PageLink/AccountPageLink.graphql" +#import "../PageLink/CampaignPageLink.graphql" #import "../PageLink/CollectionPageLink.graphql" #import "../PageLink/ContentPageLink.graphql" #import "../PageLink/DestinationCityPageLink.graphql" @@ -9,6 +10,7 @@ #import "../PageLink/StartPageLink.graphql" #import "../AccountPage/Ref.graphql" +#import "../CampaignPage/Ref.graphql" #import "../CollectionPage/Ref.graphql" #import "../ContentPage/Ref.graphql" #import "../DestinationCityPage/Ref.graphql" @@ -40,6 +42,7 @@ fragment JoinLoyaltyContactSidebar_ContentPage on ContentPageSidebarJoinLoyaltyC node { __typename ...AccountPageLink + ...CampaignPageLink ...CollectionPageLink ...ContentPageLink ...DestinationCityPageLink @@ -71,6 +74,7 @@ fragment JoinLoyaltyContactSidebar_ContentPageRefs on ContentPageSidebarJoinLoya node { __typename ...AccountPageRef + ...CampaignPageRef ...CollectionPageRef ...ContentPageRef ...DestinationCityPageRef @@ -102,6 +106,7 @@ fragment JoinLoyaltyContactSidebar_LoyaltyPage on LoyaltyPageSidebarJoinLoyaltyC node { __typename ...AccountPageLink + ...CampaignPageLink ...CollectionPageLink ...ContentPageLink ...DestinationCityPageLink @@ -133,6 +138,7 @@ fragment JoinLoyaltyContactSidebar_LoyaltyPageRefs on LoyaltyPageSidebarJoinLoya node { __typename ...AccountPageRef + ...CampaignPageRef ...CollectionPageRef ...ContentPageRef ...DestinationCityPageRef diff --git a/apps/scandic-web/lib/graphql/Query/AccountPage/Navigation.graphql b/apps/scandic-web/lib/graphql/Query/AccountPage/Navigation.graphql index dd3949a7d..46678aa67 100644 --- a/apps/scandic-web/lib/graphql/Query/AccountPage/Navigation.graphql +++ b/apps/scandic-web/lib/graphql/Query/AccountPage/Navigation.graphql @@ -1,6 +1,7 @@ #import "../../Fragments/System.graphql" #import "../../Fragments/PageLink/AccountPageLink.graphql" +#import "../../Fragments/PageLink/CampaignPageLink.graphql" #import "../../Fragments/PageLink/CollectionPageLink.graphql" #import "../../Fragments/PageLink/ContentPageLink.graphql" #import "../../Fragments/PageLink/DestinationCityPageLink.graphql" @@ -11,6 +12,7 @@ #import "../../Fragments/PageLink/StartPageLink.graphql" #import "../../Fragments/AccountPage/Ref.graphql" +#import "../../Fragments/CampaignPage/Ref.graphql" #import "../../Fragments/CollectionPage/Ref.graphql" #import "../../Fragments/ContentPage/Ref.graphql" #import "../../Fragments/DestinationCityPage/Ref.graphql" @@ -32,6 +34,7 @@ query GetNavigationMyPages($locale: String!) { node { __typename ...AccountPageLink + ...CampaignPageLink ...CollectionPageLink ...ContentPageLink ...DestinationCityPageLink @@ -60,6 +63,7 @@ query GetNavigationMyPagesRefs($locale: String!) { node { __typename ...AccountPageRef + ...CampaignPageRef ...CollectionPageRef ...ContentPageRef ...DestinationCityPageRef diff --git a/apps/scandic-web/lib/graphql/Query/DestinationCityPage/DestinationCityPage.graphql b/apps/scandic-web/lib/graphql/Query/DestinationCityPage/DestinationCityPage.graphql index 4dacb2ad1..556475039 100644 --- a/apps/scandic-web/lib/graphql/Query/DestinationCityPage/DestinationCityPage.graphql +++ b/apps/scandic-web/lib/graphql/Query/DestinationCityPage/DestinationCityPage.graphql @@ -4,6 +4,7 @@ #import "../../Fragments/Blocks/Content.graphql" #import "../../Fragments/PageLink/AccountPageLink.graphql" +#import "../../Fragments/PageLink/CampaignPageLink.graphql" #import "../../Fragments/PageLink/CollectionPageLink.graphql" #import "../../Fragments/PageLink/ContentPageLink.graphql" #import "../../Fragments/PageLink/DestinationCityPageLink.graphql" @@ -14,6 +15,7 @@ #import "../../Fragments/PageLink/StartPageLink.graphql" #import "../../Fragments/AccountPage/Ref.graphql" +#import "../../Fragments/CampaignPage/Ref.graphql" #import "../../Fragments/CollectionPage/Ref.graphql" #import "../../Fragments/ContentPage/Ref.graphql" #import "../../Fragments/DestinationCityPage/Ref.graphql" @@ -57,6 +59,7 @@ query GetDestinationCityPage($locale: String!, $uid: String!) { node { __typename ...AccountPageLink + ...CampaignPageLink ...CollectionPageLink ...ContentPageLink ...DestinationCityPageLink @@ -109,6 +112,7 @@ query GetDestinationCityPageRefs($locale: String!, $uid: String!) { node { __typename ...AccountPageRef + ...CampaignPageRef ...CollectionPageRef ...ContentPageRef ...DestinationCityPageRef diff --git a/apps/scandic-web/lib/graphql/Query/DestinationCountryPage/DestinationCountryPage.graphql b/apps/scandic-web/lib/graphql/Query/DestinationCountryPage/DestinationCountryPage.graphql index 4ca649f08..9c609d74b 100644 --- a/apps/scandic-web/lib/graphql/Query/DestinationCountryPage/DestinationCountryPage.graphql +++ b/apps/scandic-web/lib/graphql/Query/DestinationCountryPage/DestinationCountryPage.graphql @@ -4,6 +4,7 @@ #import "../../Fragments/Blocks/Content.graphql" #import "../../Fragments/PageLink/AccountPageLink.graphql" +#import "../../Fragments/PageLink/CampaignPageLink.graphql" #import "../../Fragments/PageLink/CollectionPageLink.graphql" #import "../../Fragments/PageLink/ContentPageLink.graphql" #import "../../Fragments/PageLink/DestinationCityPageLink.graphql" @@ -14,6 +15,7 @@ #import "../../Fragments/PageLink/StartPageLink.graphql" #import "../../Fragments/AccountPage/Ref.graphql" +#import "../../Fragments/CampaignPage/Ref.graphql" #import "../../Fragments/CollectionPage/Ref.graphql" #import "../../Fragments/ContentPage/Ref.graphql" #import "../../Fragments/DestinationCityPage/Ref.graphql" @@ -52,6 +54,7 @@ query GetDestinationCountryPage($locale: String!, $uid: String!) { node { __typename ...AccountPageLink + ...CampaignPageLink ...CollectionPageLink ...ContentPageLink ...DestinationCityPageLink @@ -91,6 +94,7 @@ query GetDestinationCountryPageRefs($locale: String!, $uid: String!) { node { __typename ...AccountPageRef + ...CampaignPageRef ...CollectionPageRef ...ContentPageRef ...DestinationCityPageRef diff --git a/apps/scandic-web/lib/graphql/Query/Footer.graphql b/apps/scandic-web/lib/graphql/Query/Footer.graphql index ec07b9da9..36823ef96 100644 --- a/apps/scandic-web/lib/graphql/Query/Footer.graphql +++ b/apps/scandic-web/lib/graphql/Query/Footer.graphql @@ -1,6 +1,7 @@ #import "../Fragments/System.graphql" #import "../Fragments/PageLink/AccountPageLink.graphql" +#import "../Fragments/PageLink/CampaignPageLink.graphql" #import "../Fragments/PageLink/CollectionPageLink.graphql" #import "../Fragments/PageLink/ContentPageLink.graphql" #import "../Fragments/PageLink/DestinationCityPageLink.graphql" @@ -11,6 +12,7 @@ #import "../Fragments/PageLink/StartPageLink.graphql" #import "../Fragments/AccountPage/Ref.graphql" +#import "../Fragments/CampaignPage/Ref.graphql" #import "../Fragments/CollectionPage/Ref.graphql" #import "../Fragments/ContentPage/Ref.graphql" #import "../Fragments/DestinationCityPage/Ref.graphql" @@ -37,6 +39,7 @@ query GetFooter($locale: String!) { edges { node { ...AccountPageLink + ...CampaignPageLink ...CollectionPageLink ...ContentPageLink ...DestinationCityPageLink @@ -58,6 +61,7 @@ query GetFooter($locale: String!) { edges { node { ...AccountPageLink + ...CampaignPageLink ...CollectionPageLink ...ContentPageLink ...DestinationCityPageLink @@ -86,6 +90,7 @@ query GetFooter($locale: String!) { edges { node { ...AccountPageLink + ...CampaignPageLink ...CollectionPageLink ...ContentPageLink ...DestinationCityPageLink @@ -112,6 +117,7 @@ query GetFooterRef($locale: String!) { edges { node { ...AccountPageRef + ...CampaignPageRef ...CollectionPageRef ...ContentPageRef ...DestinationCityPageRef @@ -130,6 +136,7 @@ query GetFooterRef($locale: String!) { edges { node { ...AccountPageRef + ...CampaignPageRef ...CollectionPageRef ...ContentPageRef ...DestinationCityPageRef @@ -148,6 +155,7 @@ query GetFooterRef($locale: String!) { edges { node { ...AccountPageRef + ...CampaignPageRef ...CollectionPageRef ...ContentPageRef ...DestinationCityPageRef diff --git a/apps/scandic-web/lib/graphql/Query/Header.graphql b/apps/scandic-web/lib/graphql/Query/Header.graphql index 98b7fc732..e2439a16d 100644 --- a/apps/scandic-web/lib/graphql/Query/Header.graphql +++ b/apps/scandic-web/lib/graphql/Query/Header.graphql @@ -4,6 +4,7 @@ #import "../Fragments/Blocks/Refs/Card.graphql" #import "../Fragments/PageLink/AccountPageLink.graphql" +#import "../Fragments/PageLink/CampaignPageLink.graphql" #import "../Fragments/PageLink/CollectionPageLink.graphql" #import "../Fragments/PageLink/ContentPageLink.graphql" #import "../Fragments/PageLink/DestinationCityPageLink.graphql" @@ -14,6 +15,7 @@ #import "../Fragments/PageLink/StartPageLink.graphql" #import "../Fragments/AccountPage/Ref.graphql" +#import "../Fragments/CampaignPage/Ref.graphql" #import "../Fragments/CollectionPage/Ref.graphql" #import "../Fragments/ContentPage/Ref.graphql" #import "../Fragments/DestinationCityPage/Ref.graphql" @@ -35,6 +37,7 @@ query GetHeader($locale: String!) { node { __typename ...AccountPageLink + ...CampaignPageLink ...CollectionPageLink ...ContentPageLink ...DestinationCityPageLink @@ -55,6 +58,7 @@ query GetHeader($locale: String!) { node { __typename ...AccountPageLink + ...CampaignPageLink ...CollectionPageLink ...ContentPageLink ...DestinationCityPageLink @@ -75,6 +79,7 @@ query GetHeader($locale: String!) { node { __typename ...AccountPageLink + ...CampaignPageLink ...CollectionPageLink ...ContentPageLink ...DestinationCityPageLink @@ -93,6 +98,7 @@ query GetHeader($locale: String!) { node { __typename ...AccountPageLink + ...CampaignPageLink ...CollectionPageLink ...ContentPageLink ...DestinationCityPageLink @@ -114,6 +120,7 @@ query GetHeader($locale: String!) { node { __typename ...AccountPageLink + ...CampaignPageLink ...CollectionPageLink ...ContentPageLink ...DestinationCityPageLink @@ -150,6 +157,7 @@ query GetHeaderRef($locale: String!) { node { __typename ...AccountPageRef + ...CampaignPageRef ...CollectionPageRef ...ContentPageRef ...DestinationCityPageRef @@ -168,6 +176,7 @@ query GetHeaderRef($locale: String!) { node { __typename ...AccountPageRef + ...CampaignPageRef ...CollectionPageRef ...ContentPageRef ...DestinationCityPageRef @@ -187,6 +196,7 @@ query GetHeaderRef($locale: String!) { node { __typename ...AccountPageRef + ...CampaignPageRef ...CollectionPageRef ...ContentPageRef ...DestinationCityPageRef @@ -204,6 +214,7 @@ query GetHeaderRef($locale: String!) { node { __typename ...AccountPageRef + ...CampaignPageRef ...CollectionPageRef ...ContentPageRef ...DestinationCityPageRef @@ -223,6 +234,7 @@ query GetHeaderRef($locale: String!) { node { __typename ...AccountPageRef + ...CampaignPageRef ...CollectionPageRef ...ContentPageRef ...DestinationCityPageRef diff --git a/apps/scandic-web/lib/graphql/Query/RewardsWithRedeem.graphql b/apps/scandic-web/lib/graphql/Query/RewardsWithRedeem.graphql index 91ed59491..f438fc593 100644 --- a/apps/scandic-web/lib/graphql/Query/RewardsWithRedeem.graphql +++ b/apps/scandic-web/lib/graphql/Query/RewardsWithRedeem.graphql @@ -1,6 +1,7 @@ #import "../Fragments/System.graphql" #import "../Fragments/PageLink/AccountPageLink.graphql" +#import "../Fragments/PageLink/CampaignPageLink.graphql" #import "../Fragments/PageLink/CollectionPageLink.graphql" #import "../Fragments/PageLink/ContentPageLink.graphql" #import "../Fragments/PageLink/DestinationCityPageLink.graphql" @@ -11,6 +12,7 @@ #import "../Fragments/PageLink/StartPageLink.graphql" #import "../Fragments/AccountPage/Ref.graphql" +#import "../Fragments/CampaignPage/Ref.graphql" #import "../Fragments/CollectionPage/Ref.graphql" #import "../Fragments/ContentPage/Ref.graphql" #import "../Fragments/DestinationCityPage/Ref.graphql" @@ -36,6 +38,7 @@ query GetRewards($locale: String!, $rewardIds: [String!]) { node { __typename ...AccountPageLink + ...CampaignPageLink ...CollectionPageLink ...ContentPageLink ...DestinationCityPageLink @@ -64,6 +67,7 @@ query GetRewardsRef($locale: String!, $rewardIds: [String!]) { node { __typename ...AccountPageRef + ...CampaignPageRef ...CollectionPageRef ...ContentPageRef ...DestinationCityPageRef diff --git a/apps/scandic-web/lib/graphql/Query/SASTierComparison.graphql b/apps/scandic-web/lib/graphql/Query/SASTierComparison.graphql index 0e07d4ac6..f5eb35f3b 100644 --- a/apps/scandic-web/lib/graphql/Query/SASTierComparison.graphql +++ b/apps/scandic-web/lib/graphql/Query/SASTierComparison.graphql @@ -1,4 +1,5 @@ #import "../Fragments/PageLink/AccountPageLink.graphql" +#import "../Fragments/PageLink/CampaignPageLink.graphql" #import "../Fragments/PageLink/CollectionPageLink.graphql" #import "../Fragments/PageLink/ContentPageLink.graphql" #import "../Fragments/PageLink/DestinationCityPageLink.graphql" @@ -32,6 +33,7 @@ query GetAllSasTierComparison($lang: String!) { node { __typename ...AccountPageLink + ...CampaignPageLink ...CollectionPageLink ...ContentPageLink ...DestinationCityPageLink diff --git a/apps/scandic-web/server/routers/contentstack/schemas/pageLinks.ts b/apps/scandic-web/server/routers/contentstack/schemas/pageLinks.ts index e9fac2a6f..3e6ae93a6 100644 --- a/apps/scandic-web/server/routers/contentstack/schemas/pageLinks.ts +++ b/apps/scandic-web/server/routers/contentstack/schemas/pageLinks.ts @@ -65,6 +65,17 @@ export const destinationCityPageRefSchema = z.object({ system: systemSchema, }) +export const campaignPageSchema = z + .object({ + __typename: z.literal(ContentEnum.blocks.CampaignPage), + }) + .merge(pageLinkSchema) + +export const campaignPageRefSchema = z.object({ + __typename: z.literal(ContentEnum.blocks.CampaignPage), + system: systemSchema, +}) + export const destinationCountryPageSchema = z .object({ __typename: z.literal(ContentEnum.blocks.DestinationCountryPage), @@ -122,6 +133,7 @@ export const startPageRefSchema = z.object({ export const linkUnionSchema = z.discriminatedUnion("__typename", [ accountPageSchema, + campaignPageSchema, collectionPageSchema, contentPageSchema, destinationCityPageSchema, @@ -134,6 +146,7 @@ export const linkUnionSchema = z.discriminatedUnion("__typename", [ type Data = | z.output + | z.output | z.output | z.output | z.output @@ -148,10 +161,11 @@ export function transformPageLink(data: Data) { if (data && "__typename" in data) { switch (data.__typename) { case ContentEnum.blocks.AccountPage: - case ContentEnum.blocks.HotelPage: + case ContentEnum.blocks.CampaignPage: case ContentEnum.blocks.DestinationCityPage: case ContentEnum.blocks.DestinationCountryPage: case ContentEnum.blocks.DestinationOverviewPage: + case ContentEnum.blocks.HotelPage: case ContentEnum.blocks.StartPage: return { __typename: data.__typename, @@ -159,8 +173,8 @@ export function transformPageLink(data: Data) { title: data.title, url: removeMultipleSlashes(`/${data.system.locale}/${data.url}`), } - case ContentEnum.blocks.ContentPage: case ContentEnum.blocks.CollectionPage: + case ContentEnum.blocks.ContentPage: case ContentEnum.blocks.LoyaltyPage: // TODO: Once all links use this transform // `web` can be removed and not to be worried @@ -179,26 +193,28 @@ export function transformPageLink(data: Data) { } export const linkRefsUnionSchema = z.discriminatedUnion("__typename", [ - contentPageRefSchema, - hotelPageRefSchema, - loyaltyPageRefSchema, accountPageRefSchema, + campaignPageRefSchema, collectionPageRefSchema, + contentPageRefSchema, destinationCityPageRefSchema, destinationCountryPageRefSchema, destinationOverviewPageRefSchema, + hotelPageRefSchema, + loyaltyPageRefSchema, startPageRefSchema, ]) type RefData = | z.output + | z.output | z.output | z.output + | z.output + | z.output + | z.output | z.output | z.output - | z.output - | z.output - | z.output | z.output | Object @@ -206,13 +222,14 @@ export function transformPageLinkRef(data: RefData) { if (data && "__typename" in data) { switch (data.__typename) { case ContentEnum.blocks.AccountPage: - case ContentEnum.blocks.ContentPage: + case ContentEnum.blocks.CampaignPage: case ContentEnum.blocks.CollectionPage: - case ContentEnum.blocks.HotelPage: - case ContentEnum.blocks.LoyaltyPage: + case ContentEnum.blocks.ContentPage: case ContentEnum.blocks.DestinationCityPage: case ContentEnum.blocks.DestinationCountryPage: case ContentEnum.blocks.DestinationOverviewPage: + case ContentEnum.blocks.HotelPage: + case ContentEnum.blocks.LoyaltyPage: case ContentEnum.blocks.StartPage: return data.system } diff --git a/apps/scandic-web/types/enums/content.ts b/apps/scandic-web/types/enums/content.ts index d08489d22..42d820a83 100644 --- a/apps/scandic-web/types/enums/content.ts +++ b/apps/scandic-web/types/enums/content.ts @@ -1,6 +1,7 @@ export namespace ContentEnum { export const enum blocks { AccountPage = "AccountPage", + CampaignPage = "CampaignPage", CollectionPage = "CollectionPage", ContentPage = "ContentPage", DestinationCityPage = "DestinationCityPage",