From 75ee9933aba63e33e1adca6cc0dd8041b8cfb2f2 Mon Sep 17 00:00:00 2001 From: Christian Andolf Date: Tue, 28 Jan 2025 14:41:36 +0100 Subject: [PATCH] fix(SW-1386): add destination page links to graphql schema --- .../Fragments/Blocks/FullWidthCampaign.graphql | 18 ++++++++++++++++++ .../schemas/blocks/fullWidthCampaign.ts | 3 +++ 2 files changed, 21 insertions(+) diff --git a/lib/graphql/Fragments/Blocks/FullWidthCampaign.graphql b/lib/graphql/Fragments/Blocks/FullWidthCampaign.graphql index 14d98cec1..2b5886ce2 100644 --- a/lib/graphql/Fragments/Blocks/FullWidthCampaign.graphql +++ b/lib/graphql/Fragments/Blocks/FullWidthCampaign.graphql @@ -3,12 +3,18 @@ #import "../PageLink/LoyaltyPageLink.graphql" #import "../PageLink/HotelPageLink.graphql" #import "../PageLink/CollectionPageLink.graphql" +#import "../PageLink/DestinationCityPageLink.graphql" +#import "../PageLink/DestinationCountryPageLink.graphql" +#import "../PageLink/DestinationOverviewPageLink.graphql" #import "../AccountPage/Ref.graphql" #import "../ContentPage/Ref.graphql" #import "../HotelPage/Ref.graphql" #import "../LoyaltyPage/Ref.graphql" #import "../CollectionPage/Ref.graphql" +#import "../DestinationCityPage/Ref.graphql" +#import "../DestinationCountryPage/Ref.graphql" +#import "../DestinationOverviewPage/Ref.graphql" fragment FullWidthCampaign on FullWidthCampaign { background_image @@ -33,6 +39,9 @@ fragment FullWidthCampaign on FullWidthCampaign { ...LoyaltyPageLink ...HotelPageLink ...CollectionPageLink + ...DestinationCityPageLink + ...DestinationCountryPageLink + ...DestinationOverviewPageLink } } } @@ -55,6 +64,9 @@ fragment FullWidthCampaign on FullWidthCampaign { ...LoyaltyPageLink ...HotelPageLink ...CollectionPageLink + ...DestinationCityPageLink + ...DestinationCountryPageLink + ...DestinationOverviewPageLink } } } @@ -75,6 +87,9 @@ fragment FullWidthCampaignRefs on FullWidthCampaign { ...HotelPageRef ...LoyaltyPageRef ...CollectionPageRef + ...DestinationCityPageRef + ...DestinationCountryPageRef + ...DestinationOverviewPageRef } } } @@ -89,6 +104,9 @@ fragment FullWidthCampaignRefs on FullWidthCampaign { ...HotelPageRef ...LoyaltyPageRef ...CollectionPageRef + ...DestinationCityPageRef + ...DestinationCountryPageRef + ...DestinationOverviewPageRef } } } diff --git a/server/routers/contentstack/schemas/blocks/fullWidthCampaign.ts b/server/routers/contentstack/schemas/blocks/fullWidthCampaign.ts index f75f7d304..1ec1cd2a6 100644 --- a/server/routers/contentstack/schemas/blocks/fullWidthCampaign.ts +++ b/server/routers/contentstack/schemas/blocks/fullWidthCampaign.ts @@ -50,6 +50,9 @@ export const fullWidthCampaignBlockRefsSchema = z.object({ pageLinks.loyaltyPageRefSchema, pageLinks.collectionPageRefSchema, pageLinks.hotelPageRefSchema, + pageLinks.destinationCityPageRefSchema, + pageLinks.destinationCountryPageRefSchema, + pageLinks.destinationOverviewPageRefSchema, ]), }) ),