Merged in feat/rework-contentstack (pull request #3493)
Feat(SW-3708): refactor contentstack fetching (removing all refs) and cache invalidation * Remove all REFS * Revalidate correct language * PR fixes * PR fixes * Throw when errors from contentstack api Approved-by: Joakim Jäderberg
This commit is contained in:
@@ -1,12 +0,0 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import { System } from "../System.graphql"
|
||||
|
||||
export const AccountPageRef = gql`
|
||||
fragment AccountPageRef on AccountPage {
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
${System}
|
||||
`
|
||||
@@ -1,15 +1,5 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import { AccountPageRef } from "./AccountPage/Ref.graphql"
|
||||
import { CampaignOverviewPageRef } from "./CampaignOverviewPage/Ref.graphql"
|
||||
import { CampaignPageRef } from "./CampaignPage/Ref.graphql"
|
||||
import { CollectionPageRef } from "./CollectionPage/Ref.graphql"
|
||||
import { ContentPageRef } from "./ContentPage/Ref.graphql"
|
||||
import { DestinationCityPageRef } from "./DestinationCityPage/Ref.graphql"
|
||||
import { DestinationCountryPageRef } from "./DestinationCountryPage/Ref.graphql"
|
||||
import { DestinationOverviewPageRef } from "./DestinationOverviewPage/Ref.graphql"
|
||||
import { HotelPageRef } from "./HotelPage/Ref.graphql"
|
||||
import { LoyaltyPageRef } from "./LoyaltyPage/Ref.graphql"
|
||||
import { AccountPageLink } from "./PageLink/AccountPageLink.graphql"
|
||||
import { CampaignOverviewPageLink } from "./PageLink/CampaignOverviewPageLink.graphql"
|
||||
import { CampaignPageLink } from "./PageLink/CampaignPageLink.graphql"
|
||||
@@ -22,9 +12,6 @@ import { HotelPageLink } from "./PageLink/HotelPageLink.graphql"
|
||||
import { LoyaltyPageLink } from "./PageLink/LoyaltyPageLink.graphql"
|
||||
import { PromoCampaignPageLink } from "./PageLink/PromoCampaignPageLink.graphql"
|
||||
import { StartPageLink } from "./PageLink/StartPageLink.graphql"
|
||||
import { PromoCampaignPageRef } from "./PromoCampaignPage/Ref.graphql"
|
||||
import { StartPageRef } from "./StartPage/Ref.graphql"
|
||||
import { System } from "./System.graphql"
|
||||
|
||||
export const Alert = gql`
|
||||
fragment Alert on Alert {
|
||||
@@ -104,70 +91,3 @@ export const Alert = gql`
|
||||
${StartPageLink}
|
||||
${PromoCampaignPageLink}
|
||||
`
|
||||
|
||||
export const AlertRef = gql`
|
||||
fragment AlertRef on Alert {
|
||||
link {
|
||||
linkConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...AccountPageRef
|
||||
...CampaignOverviewPageRef
|
||||
...CampaignPageRef
|
||||
...CollectionPageRef
|
||||
...ContentPageRef
|
||||
...DestinationCityPageRef
|
||||
...DestinationCountryPageRef
|
||||
...DestinationOverviewPageRef
|
||||
...HotelPageRef
|
||||
...LoyaltyPageRef
|
||||
...StartPageRef
|
||||
...PromoCampaignPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
sidepeek_content {
|
||||
content {
|
||||
embedded_itemsConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...AccountPageRef
|
||||
...CampaignOverviewPageRef
|
||||
...CampaignPageRef
|
||||
...CollectionPageRef
|
||||
...ContentPageRef
|
||||
...DestinationCityPageRef
|
||||
...DestinationCountryPageRef
|
||||
...DestinationOverviewPageRef
|
||||
...HotelPageRef
|
||||
...LoyaltyPageRef
|
||||
...StartPageRef
|
||||
...PromoCampaignPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
json
|
||||
}
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
visible_on
|
||||
}
|
||||
${System}
|
||||
${AccountPageRef}
|
||||
${CampaignOverviewPageRef}
|
||||
${CampaignPageRef}
|
||||
${CollectionPageRef}
|
||||
${ContentPageRef}
|
||||
${DestinationCityPageRef}
|
||||
${DestinationCountryPageRef}
|
||||
${DestinationOverviewPageRef}
|
||||
${HotelPageRef}
|
||||
${LoyaltyPageRef}
|
||||
${StartPageRef}
|
||||
${PromoCampaignPageRef}
|
||||
`
|
||||
|
||||
@@ -1,15 +1,5 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import { AccountPageRef } from "./AccountPage/Ref.graphql"
|
||||
import { CampaignOverviewPageRef } from "./CampaignOverviewPage/Ref.graphql"
|
||||
import { CampaignPageRef } from "./CampaignPage/Ref.graphql"
|
||||
import { CollectionPageRef } from "./CollectionPage/Ref.graphql"
|
||||
import { ContentPageRef } from "./ContentPage/Ref.graphql"
|
||||
import { DestinationCityPageRef } from "./DestinationCityPage/Ref.graphql"
|
||||
import { DestinationCountryPageRef } from "./DestinationCountryPage/Ref.graphql"
|
||||
import { DestinationOverviewPageRef } from "./DestinationOverviewPage/Ref.graphql"
|
||||
import { HotelPageRef } from "./HotelPage/Ref.graphql"
|
||||
import { LoyaltyPageRef } from "./LoyaltyPage/Ref.graphql"
|
||||
import { AccountPageLink } from "./PageLink/AccountPageLink.graphql"
|
||||
import { CampaignOverviewPageLink } from "./PageLink/CampaignOverviewPageLink.graphql"
|
||||
import { CampaignPageLink } from "./PageLink/CampaignPageLink.graphql"
|
||||
@@ -22,8 +12,6 @@ import { HotelPageLink } from "./PageLink/HotelPageLink.graphql"
|
||||
import { LoyaltyPageLink } from "./PageLink/LoyaltyPageLink.graphql"
|
||||
import { PromoCampaignPageLink } from "./PageLink/PromoCampaignPageLink.graphql"
|
||||
import { StartPageLink } from "./PageLink/StartPageLink.graphql"
|
||||
import { PromoCampaignPageRef } from "./PromoCampaignPage/Ref.graphql"
|
||||
import { StartPageRef } from "./StartPage/Ref.graphql"
|
||||
|
||||
export const Banner = gql`
|
||||
fragment Banner on Banner {
|
||||
@@ -67,45 +55,3 @@ export const Banner = gql`
|
||||
${StartPageLink}
|
||||
${PromoCampaignPageLink}
|
||||
`
|
||||
|
||||
export const BannerRef = gql`
|
||||
fragment BannerRef on Banner {
|
||||
link {
|
||||
linkConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...AccountPageRef
|
||||
...CampaignOverviewPageRef
|
||||
...CampaignPageRef
|
||||
...CollectionPageRef
|
||||
...ContentPageRef
|
||||
...DestinationCityPageRef
|
||||
...DestinationCountryPageRef
|
||||
...DestinationOverviewPageRef
|
||||
...HotelPageRef
|
||||
...LoyaltyPageRef
|
||||
...StartPageRef
|
||||
...PromoCampaignPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
visible_on
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
${AccountPageRef}
|
||||
${CampaignOverviewPageRef}
|
||||
${CampaignPageRef}
|
||||
${CollectionPageRef}
|
||||
${ContentPageRef}
|
||||
${DestinationCityPageRef}
|
||||
${DestinationCountryPageRef}
|
||||
${DestinationOverviewPageRef}
|
||||
${HotelPageRef}
|
||||
${LoyaltyPageRef}
|
||||
${StartPageRef}
|
||||
${PromoCampaignPageRef}
|
||||
`
|
||||
|
||||
@@ -1,15 +1,5 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import { AccountPageRef } from "../AccountPage/Ref.graphql"
|
||||
import { CampaignOverviewPageRef } from "../CampaignOverviewPage/Ref.graphql"
|
||||
import { CampaignPageRef } from "../CampaignPage/Ref.graphql"
|
||||
import { CollectionPageRef } from "../CollectionPage/Ref.graphql"
|
||||
import { ContentPageRef } from "../ContentPage/Ref.graphql"
|
||||
import { DestinationCityPageRef } from "../DestinationCityPage/Ref.graphql"
|
||||
import { DestinationCountryPageRef } from "../DestinationCountryPage/Ref.graphql"
|
||||
import { DestinationOverviewPageRef } from "../DestinationOverviewPage/Ref.graphql"
|
||||
import { HotelPageRef } from "../HotelPage/Ref.graphql"
|
||||
import { LoyaltyPageRef } from "../LoyaltyPage/Ref.graphql"
|
||||
import { AccountPageLink } from "../PageLink/AccountPageLink.graphql"
|
||||
import { CampaignOverviewPageLink } from "../PageLink/CampaignOverviewPageLink.graphql"
|
||||
import { CampaignPageLink } from "../PageLink/CampaignPageLink.graphql"
|
||||
@@ -22,10 +12,7 @@ import { HotelPageLink } from "../PageLink/HotelPageLink.graphql"
|
||||
import { LoyaltyPageLink } from "../PageLink/LoyaltyPageLink.graphql"
|
||||
import { PromoCampaignPageLink } from "../PageLink/PromoCampaignPageLink.graphql"
|
||||
import { StartPageLink } from "../PageLink/StartPageLink.graphql"
|
||||
import { PromoCampaignPageRef } from "../PromoCampaignPage/Ref.graphql"
|
||||
import { StartPageRef } from "../StartPage/Ref.graphql"
|
||||
import { SysAsset } from "../SysAsset.graphql"
|
||||
import { AccordionBlockRefs } from "./Refs/Accordion.graphql"
|
||||
|
||||
export const AccordionBlock = gql`
|
||||
fragment AccordionBlock on Accordion {
|
||||
@@ -196,76 +183,6 @@ export const Accordion_AccountPage = gql`
|
||||
${SpecificAccordion_AccountPage}
|
||||
`
|
||||
|
||||
const GlobalAccordion_AccountPageRefs = gql`
|
||||
fragment GlobalAccordion_AccountPageRefs on AccountPageContentAccordionBlockAccordionsGlobalAccordion {
|
||||
global_accordion {
|
||||
global_accordionConnection {
|
||||
edges {
|
||||
node {
|
||||
...AccordionBlockRefs
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
${AccordionBlockRefs}
|
||||
`
|
||||
|
||||
const SpecificAccordion_AccountPageRefs = gql`
|
||||
fragment SpecificAccordion_AccountPageRefs on AccountPageContentAccordionBlockAccordionsSpecificAccordion {
|
||||
specific_accordion {
|
||||
questions {
|
||||
answer {
|
||||
embedded_itemsConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...AccountPageRef
|
||||
...CampaignOverviewPageRef
|
||||
...CampaignPageRef
|
||||
...CollectionPageRef
|
||||
...ContentPageRef
|
||||
...DestinationCityPageRef
|
||||
...DestinationCountryPageRef
|
||||
...DestinationOverviewPageRef
|
||||
...HotelPageRef
|
||||
...LoyaltyPageRef
|
||||
...StartPageRef
|
||||
...PromoCampaignPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
${AccountPageRef}
|
||||
${CampaignOverviewPageRef}
|
||||
${CampaignPageRef}
|
||||
${CollectionPageRef}
|
||||
${ContentPageRef}
|
||||
${DestinationCityPageRef}
|
||||
${DestinationCountryPageRef}
|
||||
${DestinationOverviewPageRef}
|
||||
${HotelPageRef}
|
||||
${LoyaltyPageRef}
|
||||
${StartPageRef}
|
||||
${PromoCampaignPageRef}
|
||||
`
|
||||
export const Accordion_AccountPageRefs = gql`
|
||||
fragment Accordion_AccountPageRefs on AccountPageContentAccordion {
|
||||
accordion {
|
||||
accordions {
|
||||
__typename
|
||||
...GlobalAccordion_AccountPageRefs
|
||||
...SpecificAccordion_AccountPageRefs
|
||||
}
|
||||
}
|
||||
}
|
||||
${GlobalAccordion_AccountPageRefs}
|
||||
${SpecificAccordion_AccountPageRefs}
|
||||
`
|
||||
|
||||
const GlobalAccordion_ContentPage = gql`
|
||||
fragment GlobalAccordion_ContentPage on ContentPageBlocksAccordionBlockAccordionsGlobalAccordion {
|
||||
__typename
|
||||
@@ -345,65 +262,6 @@ export const Accordion_ContentPage = gql`
|
||||
${SpecificAccordion_ContentPage}
|
||||
`
|
||||
|
||||
const GlobalAccordion_ContentPageRefs = gql`
|
||||
fragment GlobalAccordion_ContentPageRefs on ContentPageBlocksAccordionBlockAccordionsGlobalAccordion {
|
||||
global_accordion {
|
||||
global_accordionConnection {
|
||||
edges {
|
||||
node {
|
||||
...AccordionBlockRefs
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
${AccordionBlockRefs}
|
||||
`
|
||||
|
||||
const SpecificAccordion_ContentPageRefs = gql`
|
||||
fragment SpecificAccordion_ContentPageRefs on ContentPageBlocksAccordionBlockAccordionsSpecificAccordion {
|
||||
specific_accordion {
|
||||
questions {
|
||||
answer {
|
||||
embedded_itemsConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...AccountPageRef
|
||||
...CampaignOverviewPageRef
|
||||
...CampaignPageRef
|
||||
...CollectionPageRef
|
||||
...ContentPageRef
|
||||
...DestinationCityPageRef
|
||||
...DestinationCountryPageRef
|
||||
...DestinationOverviewPageRef
|
||||
...HotelPageRef
|
||||
...LoyaltyPageRef
|
||||
...StartPageRef
|
||||
...PromoCampaignPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
${AccountPageRef}
|
||||
${CampaignOverviewPageRef}
|
||||
${CampaignPageRef}
|
||||
${CollectionPageRef}
|
||||
${ContentPageRef}
|
||||
${DestinationCityPageRef}
|
||||
${DestinationCountryPageRef}
|
||||
${DestinationOverviewPageRef}
|
||||
${HotelPageRef}
|
||||
${LoyaltyPageRef}
|
||||
${StartPageRef}
|
||||
${PromoCampaignPageRef}
|
||||
`
|
||||
|
||||
const GlobalAccordion_DestinationCityPage = gql`
|
||||
fragment GlobalAccordion_DestinationCityPage on DestinationCityPageBlocksAccordionBlockAccordionsGlobalAccordion {
|
||||
__typename
|
||||
@@ -467,90 +325,6 @@ const SpecificAccordion_DestinationCityPage = gql`
|
||||
${PromoCampaignPageLink}
|
||||
`
|
||||
|
||||
const GlobalAccordion_DestinationCityPageRefs = gql`
|
||||
fragment GlobalAccordion_DestinationCityPageRefs on DestinationCityPageBlocksAccordionBlockAccordionsGlobalAccordion {
|
||||
global_accordion {
|
||||
global_accordionConnection {
|
||||
edges {
|
||||
node {
|
||||
...AccordionBlockRefs
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
${AccordionBlockRefs}
|
||||
`
|
||||
export const Accordion_ContentPageRefs = gql`
|
||||
fragment Accordion_ContentPageRefs on ContentPageBlocksAccordion {
|
||||
accordion {
|
||||
accordions {
|
||||
__typename
|
||||
...GlobalAccordion_ContentPageRefs
|
||||
...SpecificAccordion_ContentPageRefs
|
||||
}
|
||||
}
|
||||
}
|
||||
${GlobalAccordion_ContentPageRefs}
|
||||
${SpecificAccordion_ContentPageRefs}
|
||||
`
|
||||
|
||||
const SpecificAccordion_DestinationCityPageRefs = gql`
|
||||
fragment SpecificAccordion_DestinationCityPageRefs on DestinationCityPageBlocksAccordionBlockAccordionsSpecificAccordion {
|
||||
specific_accordion {
|
||||
questions {
|
||||
answer {
|
||||
embedded_itemsConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...AccountPageRef
|
||||
...CampaignOverviewPageRef
|
||||
...CampaignPageRef
|
||||
...CollectionPageRef
|
||||
...ContentPageRef
|
||||
...DestinationCityPageRef
|
||||
...DestinationCountryPageRef
|
||||
...DestinationOverviewPageRef
|
||||
...HotelPageRef
|
||||
...LoyaltyPageRef
|
||||
...StartPageRef
|
||||
...PromoCampaignPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
${AccountPageRef}
|
||||
${CampaignOverviewPageRef}
|
||||
${CampaignPageRef}
|
||||
${CollectionPageRef}
|
||||
${ContentPageRef}
|
||||
${DestinationCityPageRef}
|
||||
${DestinationCountryPageRef}
|
||||
${DestinationOverviewPageRef}
|
||||
${HotelPageRef}
|
||||
${LoyaltyPageRef}
|
||||
${StartPageRef}
|
||||
${PromoCampaignPageRef}
|
||||
`
|
||||
export const Accordion_DestinationCityPageRefs = gql`
|
||||
fragment Accordion_DestinationCityPageRefs on DestinationCityPageBlocksAccordion {
|
||||
accordion {
|
||||
accordions {
|
||||
__typename
|
||||
...GlobalAccordion_DestinationCityPageRefs
|
||||
...SpecificAccordion_DestinationCityPageRefs
|
||||
}
|
||||
}
|
||||
}
|
||||
${GlobalAccordion_DestinationCityPageRefs}
|
||||
${SpecificAccordion_DestinationCityPageRefs}
|
||||
`
|
||||
|
||||
const GlobalAccordion_DestinationCountryPage = gql`
|
||||
fragment GlobalAccordion_DestinationCountryPage on DestinationCountryPageBlocksAccordionBlockAccordionsGlobalAccordion {
|
||||
__typename
|
||||
@@ -630,77 +404,6 @@ export const Accordion_DestinationCountryPage = gql`
|
||||
${SpecificAccordion_DestinationCountryPage}
|
||||
`
|
||||
|
||||
const GlobalAccordion_DestinationCountryPageRefs = gql`
|
||||
fragment GlobalAccordion_DestinationCountryPageRefs on DestinationCountryPageBlocksAccordionBlockAccordionsGlobalAccordion {
|
||||
global_accordion {
|
||||
global_accordionConnection {
|
||||
edges {
|
||||
node {
|
||||
...AccordionBlockRefs
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
${AccordionBlockRefs}
|
||||
`
|
||||
|
||||
const SpecificAccordion_DestinationCountryPageRefs = gql`
|
||||
fragment SpecificAccordion_DestinationCountryPageRefs on DestinationCountryPageBlocksAccordionBlockAccordionsSpecificAccordion {
|
||||
specific_accordion {
|
||||
questions {
|
||||
answer {
|
||||
embedded_itemsConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...AccountPageRef
|
||||
...CampaignOverviewPageRef
|
||||
...CampaignPageRef
|
||||
...CollectionPageRef
|
||||
...ContentPageRef
|
||||
...DestinationCityPageRef
|
||||
...DestinationCountryPageRef
|
||||
...DestinationOverviewPageRef
|
||||
...HotelPageRef
|
||||
...LoyaltyPageRef
|
||||
...StartPageRef
|
||||
...PromoCampaignPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
${AccountPageRef}
|
||||
${CampaignOverviewPageRef}
|
||||
${CampaignPageRef}
|
||||
${CollectionPageRef}
|
||||
${ContentPageRef}
|
||||
${DestinationCityPageRef}
|
||||
${DestinationCountryPageRef}
|
||||
${DestinationOverviewPageRef}
|
||||
${HotelPageRef}
|
||||
${LoyaltyPageRef}
|
||||
${StartPageRef}
|
||||
${PromoCampaignPageRef}
|
||||
`
|
||||
|
||||
export const Accordion_DestinationCountryPageRefs = gql`
|
||||
fragment Accordion_DestinationCountryPageRefs on DestinationCountryPageBlocksAccordion {
|
||||
accordion {
|
||||
accordions {
|
||||
__typename
|
||||
...GlobalAccordion_DestinationCountryPageRefs
|
||||
...SpecificAccordion_DestinationCountryPageRefs
|
||||
}
|
||||
}
|
||||
}
|
||||
${GlobalAccordion_DestinationCountryPageRefs}
|
||||
${SpecificAccordion_DestinationCountryPageRefs}
|
||||
`
|
||||
|
||||
const GlobalAccordion_CampaignPage = gql`
|
||||
fragment GlobalAccordion_CampaignPage on CampaignPageBlocksAccordionBlockAccordionsGlobalAccordion {
|
||||
__typename
|
||||
@@ -779,76 +482,6 @@ export const Accordion_CampaignPage = gql`
|
||||
${SpecificAccordion_CampaignPage}
|
||||
`
|
||||
|
||||
const GlobalAccordion_CampaignPageRefs = gql`
|
||||
fragment GlobalAccordion_CampaignPageRefs on CampaignPageBlocksAccordionBlockAccordionsGlobalAccordion {
|
||||
global_accordion {
|
||||
global_accordionConnection {
|
||||
edges {
|
||||
node {
|
||||
...AccordionBlockRefs
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
${AccordionBlockRefs}
|
||||
`
|
||||
|
||||
const SpecificAccordion_CampaignPageRefs = gql`
|
||||
fragment SpecificAccordion_CampaignPageRefs on CampaignPageBlocksAccordionBlockAccordionsSpecificAccordion {
|
||||
specific_accordion {
|
||||
questions {
|
||||
answer {
|
||||
embedded_itemsConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...AccountPageRef
|
||||
...CampaignOverviewPageRef
|
||||
...CampaignPageRef
|
||||
...CollectionPageRef
|
||||
...ContentPageRef
|
||||
...DestinationCityPageRef
|
||||
...DestinationCountryPageRef
|
||||
...DestinationOverviewPageRef
|
||||
...HotelPageRef
|
||||
...LoyaltyPageRef
|
||||
...StartPageRef
|
||||
...PromoCampaignPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
${AccountPageRef}
|
||||
${CampaignOverviewPageRef}
|
||||
${CampaignPageRef}
|
||||
${CollectionPageRef}
|
||||
${ContentPageRef}
|
||||
${DestinationCityPageRef}
|
||||
${DestinationCountryPageRef}
|
||||
${DestinationOverviewPageRef}
|
||||
${HotelPageRef}
|
||||
${LoyaltyPageRef}
|
||||
${StartPageRef}
|
||||
${PromoCampaignPageRef}
|
||||
`
|
||||
export const Accordion_CampaignPageRefs = gql`
|
||||
fragment Accordion_CampaignPageRefs on CampaignPageBlocksAccordion {
|
||||
accordion {
|
||||
accordions {
|
||||
__typename
|
||||
...GlobalAccordion_CampaignPageRefs
|
||||
...SpecificAccordion_CampaignPageRefs
|
||||
}
|
||||
}
|
||||
}
|
||||
${GlobalAccordion_CampaignPageRefs}
|
||||
${SpecificAccordion_CampaignPageRefs}
|
||||
`
|
||||
|
||||
const GlobalAccordion_DestinationFilterBlocks = gql`
|
||||
fragment GlobalAccordion_DestinationFilterBlocks on DestinationFilterBlocksAccordionBlockAccordionsGlobalAccordion {
|
||||
__typename
|
||||
@@ -927,76 +560,6 @@ export const Accordion_DestinationFilterBlocks = gql`
|
||||
${SpecificAccordion_DestinationFilterBlocks}
|
||||
`
|
||||
|
||||
const GlobalAccordion_DestinationFilterBlocksRefs = gql`
|
||||
fragment GlobalAccordion_DestinationFilterBlocksRefs on DestinationFilterBlocksAccordionBlockAccordionsGlobalAccordion {
|
||||
global_accordion {
|
||||
global_accordionConnection {
|
||||
edges {
|
||||
node {
|
||||
...AccordionBlockRefs
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
${AccordionBlockRefs}
|
||||
`
|
||||
|
||||
const SpecificAccordion_DestinationFilterBlocksRefs = gql`
|
||||
fragment SpecificAccordion_DestinationFilterBlocksRefs on DestinationFilterBlocksAccordionBlockAccordionsSpecificAccordion {
|
||||
specific_accordion {
|
||||
questions {
|
||||
answer {
|
||||
embedded_itemsConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...AccountPageRef
|
||||
...CampaignOverviewPageRef
|
||||
...CampaignPageRef
|
||||
...CollectionPageRef
|
||||
...ContentPageRef
|
||||
...DestinationCityPageRef
|
||||
...DestinationCountryPageRef
|
||||
...DestinationOverviewPageRef
|
||||
...HotelPageRef
|
||||
...LoyaltyPageRef
|
||||
...StartPageRef
|
||||
...PromoCampaignPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
${AccountPageRef}
|
||||
${CampaignOverviewPageRef}
|
||||
${CampaignPageRef}
|
||||
${CollectionPageRef}
|
||||
${ContentPageRef}
|
||||
${DestinationCityPageRef}
|
||||
${DestinationCountryPageRef}
|
||||
${DestinationOverviewPageRef}
|
||||
${HotelPageRef}
|
||||
${LoyaltyPageRef}
|
||||
${StartPageRef}
|
||||
${PromoCampaignPageRef}
|
||||
`
|
||||
export const Accordion_DestinationFilterBlocksRefs = gql`
|
||||
fragment Accordion_DestinationFilterBlocksRefs on DestinationFilterBlocksAccordion {
|
||||
accordion {
|
||||
accordions {
|
||||
__typename
|
||||
...GlobalAccordion_DestinationFilterBlocksRefs
|
||||
...SpecificAccordion_DestinationFilterBlocksRefs
|
||||
}
|
||||
}
|
||||
}
|
||||
${GlobalAccordion_DestinationFilterBlocksRefs}
|
||||
${SpecificAccordion_DestinationFilterBlocksRefs}
|
||||
`
|
||||
|
||||
const GlobalAccordion_PromoCampaignPage = gql`
|
||||
fragment GlobalAccordion_PromoCampaignPage on PromoCampaignPageBlocksAccordionBlockAccordionsGlobalAccordion {
|
||||
__typename
|
||||
@@ -1074,77 +637,6 @@ export const Accordion_PromoCampaignPage = gql`
|
||||
${SpecificAccordion_PromoCampaignPage}
|
||||
`
|
||||
|
||||
const GlobalAccordion_PromoCampaignPageRefs = gql`
|
||||
fragment GlobalAccordion_PromoCampaignPageRefs on PromoCampaignPageBlocksAccordionBlockAccordionsGlobalAccordion {
|
||||
global_accordion {
|
||||
global_accordionConnection {
|
||||
edges {
|
||||
node {
|
||||
...AccordionBlockRefs
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
${AccordionBlockRefs}
|
||||
`
|
||||
|
||||
const SpecificAccordion_PromoCampaignPageRefs = gql`
|
||||
fragment SpecificAccordion_PromoCampaignPageRefs on PromoCampaignPageBlocksAccordionBlockAccordionsSpecificAccordion {
|
||||
specific_accordion {
|
||||
questions {
|
||||
answer {
|
||||
embedded_itemsConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...AccountPageRef
|
||||
...CampaignOverviewPageRef
|
||||
...CampaignPageRef
|
||||
...CollectionPageRef
|
||||
...ContentPageRef
|
||||
...DestinationCityPageRef
|
||||
...DestinationCountryPageRef
|
||||
...DestinationOverviewPageRef
|
||||
...HotelPageRef
|
||||
...LoyaltyPageRef
|
||||
...StartPageRef
|
||||
...PromoCampaignPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
${AccountPageRef}
|
||||
${CampaignOverviewPageRef}
|
||||
${CampaignPageRef}
|
||||
${CollectionPageRef}
|
||||
${ContentPageRef}
|
||||
${DestinationCityPageRef}
|
||||
${DestinationCountryPageRef}
|
||||
${DestinationOverviewPageRef}
|
||||
${HotelPageRef}
|
||||
${LoyaltyPageRef}
|
||||
${StartPageRef}
|
||||
${PromoCampaignPageRef}
|
||||
`
|
||||
|
||||
export const Accordion_PromoCampaignPageRefs = gql`
|
||||
fragment Accordion_PromoCampaignPageRefs on PromoCampaignPageBlocksAccordion {
|
||||
accordion {
|
||||
accordions {
|
||||
__typename
|
||||
...GlobalAccordion_PromoCampaignPageRefs
|
||||
...SpecificAccordion_PromoCampaignPageRefs
|
||||
}
|
||||
}
|
||||
}
|
||||
${GlobalAccordion_PromoCampaignPageRefs}
|
||||
${SpecificAccordion_PromoCampaignPageRefs}
|
||||
`
|
||||
|
||||
export const Accordion_DestinationCityPage = gql`
|
||||
fragment Accordion_DestinationCityPage on DestinationCityPageBlocksAccordion {
|
||||
__typename
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import { CampaignPageRef } from "../CampaignPage/Ref.graphql"
|
||||
import { PromoCampaignPageRef } from "../PromoCampaignPage/Ref.graphql"
|
||||
|
||||
export const AllCampaigns = gql`
|
||||
fragment AllCampaigns on CampaignOverviewPageBlocksAllCampaigns {
|
||||
all_campaigns {
|
||||
@@ -39,21 +36,3 @@ export const AllCampaigns = gql`
|
||||
}
|
||||
}
|
||||
`
|
||||
|
||||
export const AllCampaignsRefs = gql`
|
||||
fragment AllCampaignsRefs on CampaignOverviewPageBlocksAllCampaigns {
|
||||
all_campaigns {
|
||||
campaignsConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...CampaignPageRef
|
||||
...PromoCampaignPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
${CampaignPageRef}
|
||||
${PromoCampaignPageRef}
|
||||
`
|
||||
|
||||
@@ -1,15 +1,5 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import { AccountPageRef } from "../AccountPage/Ref.graphql"
|
||||
import { CampaignOverviewPageRef } from "../CampaignOverviewPage/Ref.graphql"
|
||||
import { CampaignPageRef } from "../CampaignPage/Ref.graphql"
|
||||
import { CollectionPageRef } from "../CollectionPage/Ref.graphql"
|
||||
import { ContentPageRef } from "../ContentPage/Ref.graphql"
|
||||
import { DestinationCityPageRef } from "../DestinationCityPage/Ref.graphql"
|
||||
import { DestinationCountryPageRef } from "../DestinationCountryPage/Ref.graphql"
|
||||
import { DestinationOverviewPageRef } from "../DestinationOverviewPage/Ref.graphql"
|
||||
import { HotelPageRef } from "../HotelPage/Ref.graphql"
|
||||
import { LoyaltyPageRef } from "../LoyaltyPage/Ref.graphql"
|
||||
import { AccountPageLink } from "../PageLink/AccountPageLink.graphql"
|
||||
import { CampaignOverviewPageLink } from "../PageLink/CampaignOverviewPageLink.graphql"
|
||||
import { CampaignPageLink } from "../PageLink/CampaignPageLink.graphql"
|
||||
@@ -22,10 +12,8 @@ import { HotelPageLink } from "../PageLink/HotelPageLink.graphql"
|
||||
import { LoyaltyPageLink } from "../PageLink/LoyaltyPageLink.graphql"
|
||||
import { PromoCampaignPageLink } from "../PageLink/PromoCampaignPageLink.graphql"
|
||||
import { StartPageLink } from "../PageLink/StartPageLink.graphql"
|
||||
import { PromoCampaignPageRef } from "../PromoCampaignPage/Ref.graphql"
|
||||
import { StartPageRef } from "../StartPage/Ref.graphql"
|
||||
import { System } from "../System.graphql"
|
||||
import { ContentCardBlock, ContentCardBlockRef } from "./ContentCard.graphql"
|
||||
import { ContentCardBlock } from "./ContentCard.graphql"
|
||||
|
||||
export const CardGallery_DestinationOverviewPage = gql`
|
||||
fragment CardGallery_DestinationOverviewPage on DestinationOverviewPageBlocksCardGallery {
|
||||
@@ -87,53 +75,3 @@ export const CardGallery_DestinationOverviewPage = gql`
|
||||
${StartPageLink}
|
||||
${PromoCampaignPageLink}
|
||||
`
|
||||
|
||||
export const CardGallery_DestinationOverviewPageRefs = gql`
|
||||
fragment CardGallery_DestinationOverviewPageRefs on DestinationOverviewPageBlocksCardGallery {
|
||||
card_gallery {
|
||||
card_groups {
|
||||
cardsConnection {
|
||||
edges {
|
||||
node {
|
||||
...ContentCardBlockRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
link {
|
||||
linkConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...AccountPageRef
|
||||
...CampaignOverviewPageRef
|
||||
...CampaignPageRef
|
||||
...CollectionPageRef
|
||||
...ContentPageRef
|
||||
...DestinationCityPageRef
|
||||
...DestinationCountryPageRef
|
||||
...DestinationOverviewPageRef
|
||||
...HotelPageRef
|
||||
...LoyaltyPageRef
|
||||
...StartPageRef
|
||||
...PromoCampaignPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
${ContentCardBlockRef}
|
||||
${AccountPageRef}
|
||||
${CampaignOverviewPageRef}
|
||||
${CampaignPageRef}
|
||||
${CollectionPageRef}
|
||||
${ContentPageRef}
|
||||
${DestinationCityPageRef}
|
||||
${DestinationCountryPageRef}
|
||||
${DestinationOverviewPageRef}
|
||||
${HotelPageRef}
|
||||
${LoyaltyPageRef}
|
||||
${StartPageRef}
|
||||
${PromoCampaignPageRef}
|
||||
`
|
||||
|
||||
@@ -1,15 +1,5 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import { AccountPageRef } from "../AccountPage/Ref.graphql"
|
||||
import { CampaignOverviewPageRef } from "../CampaignOverviewPage/Ref.graphql"
|
||||
import { CampaignPageRef } from "../CampaignPage/Ref.graphql"
|
||||
import { CollectionPageRef } from "../CollectionPage/Ref.graphql"
|
||||
import { ContentPageRef } from "../ContentPage/Ref.graphql"
|
||||
import { DestinationCityPageRef } from "../DestinationCityPage/Ref.graphql"
|
||||
import { DestinationCountryPageRef } from "../DestinationCountryPage/Ref.graphql"
|
||||
import { DestinationOverviewPageRef } from "../DestinationOverviewPage/Ref.graphql"
|
||||
import { HotelPageRef } from "../HotelPage/Ref.graphql"
|
||||
import { LoyaltyPageRef } from "../LoyaltyPage/Ref.graphql"
|
||||
import { AccountPageLink } from "../PageLink/AccountPageLink.graphql"
|
||||
import { CampaignOverviewPageLink } from "../PageLink/CampaignOverviewPageLink.graphql"
|
||||
import { CampaignPageLink } from "../PageLink/CampaignPageLink.graphql"
|
||||
@@ -22,11 +12,6 @@ import { HotelPageLink } from "../PageLink/HotelPageLink.graphql"
|
||||
import { LoyaltyPageLink } from "../PageLink/LoyaltyPageLink.graphql"
|
||||
import { PromoCampaignPageLink } from "../PageLink/PromoCampaignPageLink.graphql"
|
||||
import { StartPageLink } from "../PageLink/StartPageLink.graphql"
|
||||
import { PromoCampaignPageRef } from "../PromoCampaignPage/Ref.graphql"
|
||||
import { CardBlockRef } from "./Refs/Card.graphql"
|
||||
import { InfoCardBlockRef } from "./Refs/InfoCard.graphql"
|
||||
import { LoyaltyCardBlockRef } from "./Refs/LoyaltyCard.graphql"
|
||||
import { TeaserCardBlockRef } from "./Refs/TeaserCard.graphql"
|
||||
import { CardBlock } from "./Card.graphql"
|
||||
import { InfoCardBlock } from "./InfoCard.graphql"
|
||||
import { LoyaltyCardBlock } from "./LoyaltyCard.graphql"
|
||||
@@ -56,26 +41,6 @@ export const CardsGrid_ContentPage = gql`
|
||||
${TeaserCardBlock}
|
||||
`
|
||||
|
||||
export const CardsGrid_ContentPageRefs = gql`
|
||||
fragment CardsGrid_ContentPageRefs on ContentPageBlocksCardsGrid {
|
||||
cards_grid {
|
||||
cardConnection(limit: 10) {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...CardBlockRef
|
||||
...LoyaltyCardBlockRef
|
||||
...TeaserCardBlockRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
${CardBlockRef}
|
||||
${LoyaltyCardBlockRef}
|
||||
${TeaserCardBlockRef}
|
||||
`
|
||||
|
||||
export const CardsGrid_CollectionPage = gql`
|
||||
fragment CardsGrid_CollectionPage on CollectionPageBlocksCardsGrid {
|
||||
cards_grid {
|
||||
@@ -98,24 +63,6 @@ export const CardsGrid_CollectionPage = gql`
|
||||
${TeaserCardBlock}
|
||||
`
|
||||
|
||||
export const CardsGrid_CollectionPageRefs = gql`
|
||||
fragment CardsGrid_CollectionPageRefs on CollectionPageBlocksCardsGrid {
|
||||
cards_grid {
|
||||
cardConnection(limit: 10) {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...CardBlockRef
|
||||
...TeaserCardBlockRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
${CardBlockRef}
|
||||
${TeaserCardBlockRef}
|
||||
`
|
||||
|
||||
export const CardsGrid_LoyaltyPage = gql`
|
||||
fragment CardsGrid_LoyaltyPage on LoyaltyPageBlocksCardsGrid {
|
||||
cards_grid {
|
||||
@@ -138,24 +85,6 @@ export const CardsGrid_LoyaltyPage = gql`
|
||||
${LoyaltyCardBlock}
|
||||
`
|
||||
|
||||
export const CardsGrid_LoyaltyPageRefs = gql`
|
||||
fragment CardsGrid_LoyaltyPageRefs on LoyaltyPageBlocksCardsGrid {
|
||||
cards_grid {
|
||||
cardConnection(limit: 10) {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...CardBlockRef
|
||||
...LoyaltyCardBlockRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
${CardBlockRef}
|
||||
${LoyaltyCardBlockRef}
|
||||
`
|
||||
|
||||
export const CardsGrid_StartPage = gql`
|
||||
fragment CardsGrid_StartPage on StartPageBlocksCardsGrid {
|
||||
cards_grid {
|
||||
@@ -219,55 +148,3 @@ export const CardsGrid_StartPage = gql`
|
||||
${StartPageLink}
|
||||
${PromoCampaignPageLink}
|
||||
`
|
||||
|
||||
export const CardsGrid_StartPageRefs = gql`
|
||||
fragment CardsGrid_StartPageRefs on StartPageBlocksCardsGrid {
|
||||
cards_grid {
|
||||
cardConnection(limit: 10) {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...CardBlockRef
|
||||
...TeaserCardBlockRef
|
||||
...InfoCardBlockRef
|
||||
}
|
||||
}
|
||||
}
|
||||
link {
|
||||
linkConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...AccountPageRef
|
||||
...CampaignOverviewPageRef
|
||||
...CampaignPageRef
|
||||
...CollectionPageRef
|
||||
...ContentPageRef
|
||||
...DestinationCityPageRef
|
||||
...DestinationCountryPageRef
|
||||
...DestinationOverviewPageRef
|
||||
...HotelPageRef
|
||||
...LoyaltyPageRef
|
||||
...StartPageRef
|
||||
...PromoCampaignPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
${CardBlockRef}
|
||||
${InfoCardBlockRef}
|
||||
${TeaserCardBlockRef}
|
||||
${AccountPageRef}
|
||||
${CampaignOverviewPageRef}
|
||||
${CampaignPageRef}
|
||||
${ContentPageRef}
|
||||
${HotelPageRef}
|
||||
${LoyaltyPageRef}
|
||||
${CollectionPageRef}
|
||||
${DestinationCityPageRef}
|
||||
${DestinationCountryPageRef}
|
||||
${DestinationOverviewPageRef}
|
||||
${PromoCampaignPageRef}
|
||||
`
|
||||
|
||||
@@ -1,15 +1,5 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import { AccountPageRef } from "../AccountPage/Ref.graphql"
|
||||
import { CampaignOverviewPageRef } from "../CampaignOverviewPage/Ref.graphql"
|
||||
import { CampaignPageRef } from "../CampaignPage/Ref.graphql"
|
||||
import { CollectionPageRef } from "../CollectionPage/Ref.graphql"
|
||||
import { ContentPageRef } from "../ContentPage/Ref.graphql"
|
||||
import { DestinationCityPageRef } from "../DestinationCityPage/Ref.graphql"
|
||||
import { DestinationCountryPageRef } from "../DestinationCountryPage/Ref.graphql"
|
||||
import { DestinationOverviewPageRef } from "../DestinationOverviewPage/Ref.graphql"
|
||||
import { HotelPageRef } from "../HotelPage/Ref.graphql"
|
||||
import { LoyaltyPageRef } from "../LoyaltyPage/Ref.graphql"
|
||||
import { AccountPageLink } from "../PageLink/AccountPageLink.graphql"
|
||||
import { CampaignOverviewPageLink } from "../PageLink/CampaignOverviewPageLink.graphql"
|
||||
import { CampaignPageLink } from "../PageLink/CampaignPageLink.graphql"
|
||||
@@ -21,8 +11,7 @@ import { DestinationOverviewPageLink } from "../PageLink/DestinationOverviewPage
|
||||
import { HotelPageLink } from "../PageLink/HotelPageLink.graphql"
|
||||
import { LoyaltyPageLink } from "../PageLink/LoyaltyPageLink.graphql"
|
||||
import { PromoCampaignPageLink } from "../PageLink/PromoCampaignPageLink.graphql"
|
||||
import { PromoCampaignPageRef } from "../PromoCampaignPage/Ref.graphql"
|
||||
import { ContentCardBlock, ContentCardBlockRef } from "./ContentCard.graphql"
|
||||
import { ContentCardBlock } from "./ContentCard.graphql"
|
||||
|
||||
export const CarouselCards_StartPage = gql`
|
||||
fragment CarouselCards_StartPage on StartPageBlocksCarouselCards {
|
||||
@@ -83,54 +72,6 @@ export const CarouselCards_StartPage = gql`
|
||||
${PromoCampaignPageLink}
|
||||
`
|
||||
|
||||
export const CarouselCards_StartPageRefs = gql`
|
||||
fragment CarouselCards_StartPageRefs on StartPageBlocksCarouselCards {
|
||||
carousel_cards {
|
||||
card_groups {
|
||||
cardConnection {
|
||||
edges {
|
||||
node {
|
||||
...ContentCardBlockRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
link {
|
||||
linkConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...AccountPageRef
|
||||
...CampaignOverviewPageRef
|
||||
...CampaignPageRef
|
||||
...CollectionPageRef
|
||||
...ContentPageRef
|
||||
...DestinationCityPageRef
|
||||
...DestinationCountryPageRef
|
||||
...DestinationOverviewPageRef
|
||||
...HotelPageRef
|
||||
...LoyaltyPageRef
|
||||
...PromoCampaignPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
${ContentCardBlockRef}
|
||||
${AccountPageRef}
|
||||
${CampaignOverviewPageRef}
|
||||
${CampaignPageRef}
|
||||
${ContentPageRef}
|
||||
${HotelPageRef}
|
||||
${LoyaltyPageRef}
|
||||
${CollectionPageRef}
|
||||
${DestinationCityPageRef}
|
||||
${DestinationCountryPageRef}
|
||||
${DestinationOverviewPageRef}
|
||||
${PromoCampaignPageRef}
|
||||
`
|
||||
|
||||
export const CarouselCards_CampaignPage = gql`
|
||||
fragment CarouselCards_CampaignPage on CampaignPageBlocksCarouselCards {
|
||||
carousel_cards {
|
||||
@@ -153,23 +94,6 @@ export const CarouselCards_CampaignPage = gql`
|
||||
${ContentCardBlock}
|
||||
`
|
||||
|
||||
export const CarouselCards_CampaignPageRefs = gql`
|
||||
fragment CarouselCards_CampaignPageRefs on CampaignPageBlocksCarouselCards {
|
||||
carousel_cards {
|
||||
card_groups {
|
||||
cardConnection {
|
||||
edges {
|
||||
node {
|
||||
...ContentCardBlockRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
${ContentCardBlockRef}
|
||||
`
|
||||
|
||||
export const CarouselCards_CampaignOverviewPage = gql`
|
||||
fragment CarouselCards_CampaignOverviewPage on CampaignOverviewPageBlocksCarouselCards {
|
||||
carousel_cards {
|
||||
@@ -190,20 +114,3 @@ export const CarouselCards_CampaignOverviewPage = gql`
|
||||
}
|
||||
${ContentCardBlock}
|
||||
`
|
||||
|
||||
export const CarouselCards_CampaignOverviewPageRefs = gql`
|
||||
fragment CarouselCards_CampaignOverviewPageRefs on CampaignOverviewPageBlocksCarouselCards {
|
||||
carousel_cards {
|
||||
card_groups {
|
||||
cardConnection {
|
||||
edges {
|
||||
node {
|
||||
...ContentCardBlockRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
${ContentCardBlockRef}
|
||||
`
|
||||
|
||||
@@ -1,16 +1,6 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import { AccountPageRef } from "../AccountPage/Ref.graphql"
|
||||
import { CampaignOverviewPageRef } from "../CampaignOverviewPage/Ref.graphql"
|
||||
import { CampaignPageRef } from "../CampaignPage/Ref.graphql"
|
||||
import { CollectionPageRef } from "../CollectionPage/Ref.graphql"
|
||||
import { ContentPageRef } from "../ContentPage/Ref.graphql"
|
||||
import { DestinationCityPageRef } from "../DestinationCityPage/Ref.graphql"
|
||||
import { DestinationCountryPageRef } from "../DestinationCountryPage/Ref.graphql"
|
||||
import { DestinationOverviewPageRef } from "../DestinationOverviewPage/Ref.graphql"
|
||||
import { HotelPageRef } from "../HotelPage/Ref.graphql"
|
||||
import { ImageContainer, ImageContainerRef } from "../ImageContainer.graphql"
|
||||
import { LoyaltyPageRef } from "../LoyaltyPage/Ref.graphql"
|
||||
import { ImageContainer } from "../ImageContainer.graphql"
|
||||
import { AccountPageLink } from "../PageLink/AccountPageLink.graphql"
|
||||
import { CampaignOverviewPageLink } from "../PageLink/CampaignOverviewPageLink.graphql"
|
||||
import { CampaignPageLink } from "../PageLink/CampaignPageLink.graphql"
|
||||
@@ -23,9 +13,7 @@ import { HotelPageLink } from "../PageLink/HotelPageLink.graphql"
|
||||
import { LoyaltyPageLink } from "../PageLink/LoyaltyPageLink.graphql"
|
||||
import { PromoCampaignPageLink } from "../PageLink/PromoCampaignPageLink.graphql"
|
||||
import { StartPageLink } from "../PageLink/StartPageLink.graphql"
|
||||
import { PromoCampaignPageRef } from "../PromoCampaignPage/Ref.graphql"
|
||||
import { StartPageRef } from "../StartPage/Ref.graphql"
|
||||
import { SysAsset, SysAssetRef } from "../SysAsset.graphql"
|
||||
import { SysAsset } from "../SysAsset.graphql"
|
||||
|
||||
export const Content_ContentPage = gql`
|
||||
fragment Content_ContentPage on ContentPageBlocksContent {
|
||||
@@ -72,50 +60,6 @@ export const Content_ContentPage = gql`
|
||||
${PromoCampaignPageLink}
|
||||
`
|
||||
|
||||
export const Content_ContentPageRefs = gql`
|
||||
fragment Content_ContentPageRefs on ContentPageBlocksContent {
|
||||
content {
|
||||
content {
|
||||
embedded_itemsConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...SysAssetRef
|
||||
...ImageContainerRef
|
||||
...AccountPageRef
|
||||
...CampaignOverviewPageRef
|
||||
...CampaignPageRef
|
||||
...CollectionPageRef
|
||||
...ContentPageRef
|
||||
...DestinationCityPageRef
|
||||
...DestinationCountryPageRef
|
||||
...DestinationOverviewPageRef
|
||||
...HotelPageRef
|
||||
...LoyaltyPageRef
|
||||
...StartPageRef
|
||||
...PromoCampaignPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
${SysAssetRef}
|
||||
${ImageContainerRef}
|
||||
${AccountPageRef}
|
||||
${CampaignOverviewPageRef}
|
||||
${CampaignPageRef}
|
||||
${CollectionPageRef}
|
||||
${ContentPageRef}
|
||||
${DestinationCityPageRef}
|
||||
${DestinationCountryPageRef}
|
||||
${DestinationOverviewPageRef}
|
||||
${HotelPageRef}
|
||||
${LoyaltyPageRef}
|
||||
${StartPageRef}
|
||||
${PromoCampaignPageRef}
|
||||
`
|
||||
|
||||
export const Content_LoyaltyPage = gql`
|
||||
fragment Content_LoyaltyPage on LoyaltyPageBlocksContent {
|
||||
content {
|
||||
@@ -161,48 +105,6 @@ export const Content_LoyaltyPage = gql`
|
||||
${PromoCampaignPageLink}
|
||||
`
|
||||
|
||||
export const Content_LoyaltyPageRefs = gql`
|
||||
fragment Content_LoyaltyPageRefs on LoyaltyPageBlocksContent {
|
||||
content {
|
||||
content {
|
||||
embedded_itemsConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...SysAssetRef
|
||||
...AccountPageRef
|
||||
...CampaignOverviewPageRef
|
||||
...CampaignPageRef
|
||||
...CollectionPageRef
|
||||
...ContentPageRef
|
||||
...DestinationCityPageRef
|
||||
...DestinationCountryPageRef
|
||||
...DestinationOverviewPageRef
|
||||
...HotelPageRef
|
||||
...LoyaltyPageRef
|
||||
...StartPageRef
|
||||
...PromoCampaignPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
${SysAssetRef}
|
||||
${AccountPageRef}
|
||||
${CampaignOverviewPageRef}
|
||||
${CampaignPageRef}
|
||||
${CollectionPageRef}
|
||||
${ContentPageRef}
|
||||
${DestinationCityPageRef}
|
||||
${DestinationCountryPageRef}
|
||||
${DestinationOverviewPageRef}
|
||||
${HotelPageRef}
|
||||
${LoyaltyPageRef}
|
||||
${StartPageRef}
|
||||
${PromoCampaignPageRef}
|
||||
`
|
||||
|
||||
export const Content_DestinationCityPage = gql`
|
||||
fragment Content_DestinationCityPage on DestinationCityPageBlocksContent {
|
||||
content {
|
||||
@@ -244,46 +146,6 @@ export const Content_DestinationCityPage = gql`
|
||||
${PromoCampaignPageLink}
|
||||
`
|
||||
|
||||
export const Content_DestinationCityPageRefs = gql`
|
||||
fragment Content_DestinationCityPageRefs on DestinationCityPageBlocksContent {
|
||||
content {
|
||||
content {
|
||||
embedded_itemsConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...AccountPageRef
|
||||
...CampaignOverviewPageRef
|
||||
...CampaignPageRef
|
||||
...CollectionPageRef
|
||||
...ContentPageRef
|
||||
...DestinationCityPageRef
|
||||
...DestinationCountryPageRef
|
||||
...DestinationOverviewPageRef
|
||||
...HotelPageRef
|
||||
...LoyaltyPageRef
|
||||
...StartPageRef
|
||||
...PromoCampaignPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
${AccountPageRef}
|
||||
${CampaignOverviewPageRef}
|
||||
${CampaignPageRef}
|
||||
${CollectionPageRef}
|
||||
${ContentPageRef}
|
||||
${DestinationCityPageRef}
|
||||
${DestinationCountryPageRef}
|
||||
${DestinationOverviewPageRef}
|
||||
${HotelPageRef}
|
||||
${LoyaltyPageRef}
|
||||
${StartPageRef}
|
||||
${PromoCampaignPageRef}
|
||||
`
|
||||
|
||||
export const Content_DestinationCountryPage = gql`
|
||||
fragment Content_DestinationCountryPage on DestinationCountryPageBlocksContent {
|
||||
content {
|
||||
@@ -325,46 +187,6 @@ export const Content_DestinationCountryPage = gql`
|
||||
${PromoCampaignPageLink}
|
||||
`
|
||||
|
||||
export const Content_DestinationCountryPageRefs = gql`
|
||||
fragment Content_DestinationCountryPageRefs on DestinationCountryPageBlocksContent {
|
||||
content {
|
||||
content {
|
||||
embedded_itemsConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...AccountPageRef
|
||||
...CampaignOverviewPageRef
|
||||
...CampaignPageRef
|
||||
...CollectionPageRef
|
||||
...ContentPageRef
|
||||
...DestinationCityPageRef
|
||||
...DestinationCountryPageRef
|
||||
...DestinationOverviewPageRef
|
||||
...HotelPageRef
|
||||
...LoyaltyPageRef
|
||||
...StartPageRef
|
||||
...PromoCampaignPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
${AccountPageRef}
|
||||
${CampaignOverviewPageRef}
|
||||
${CampaignPageRef}
|
||||
${CollectionPageRef}
|
||||
${ContentPageRef}
|
||||
${DestinationCityPageRef}
|
||||
${DestinationCountryPageRef}
|
||||
${DestinationOverviewPageRef}
|
||||
${HotelPageRef}
|
||||
${LoyaltyPageRef}
|
||||
${StartPageRef}
|
||||
${PromoCampaignPageRef}
|
||||
`
|
||||
|
||||
export const Content_DestinationFilterBlocks = gql`
|
||||
fragment Content_DestinationFilterBlocks on DestinationFilterBlocksContent {
|
||||
content {
|
||||
@@ -406,46 +228,6 @@ export const Content_DestinationFilterBlocks = gql`
|
||||
${PromoCampaignPageLink}
|
||||
`
|
||||
|
||||
export const Content_DestinationFilterBlocksRefs = gql`
|
||||
fragment Content_DestinationFilterBlocksRefs on DestinationFilterBlocksContent {
|
||||
content {
|
||||
content {
|
||||
embedded_itemsConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...AccountPageRef
|
||||
...CampaignOverviewPageRef
|
||||
...CampaignPageRef
|
||||
...CollectionPageRef
|
||||
...ContentPageRef
|
||||
...DestinationCityPageRef
|
||||
...DestinationCountryPageRef
|
||||
...DestinationOverviewPageRef
|
||||
...HotelPageRef
|
||||
...LoyaltyPageRef
|
||||
...StartPageRef
|
||||
...PromoCampaignPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
${AccountPageRef}
|
||||
${CampaignOverviewPageRef}
|
||||
${CampaignPageRef}
|
||||
${CollectionPageRef}
|
||||
${ContentPageRef}
|
||||
${DestinationCityPageRef}
|
||||
${DestinationCountryPageRef}
|
||||
${DestinationOverviewPageRef}
|
||||
${HotelPageRef}
|
||||
${LoyaltyPageRef}
|
||||
${StartPageRef}
|
||||
${PromoCampaignPageRef}
|
||||
`
|
||||
|
||||
export const Content_PromoCampaignPage = gql`
|
||||
fragment Content_PromoCampaignPage on PromoCampaignPageBlocksContent {
|
||||
content {
|
||||
@@ -488,45 +270,3 @@ export const Content_PromoCampaignPage = gql`
|
||||
${StartPageLink}
|
||||
${PromoCampaignPageLink}
|
||||
`
|
||||
|
||||
export const Content_PromoCampaignPageRefs = gql`
|
||||
fragment Content_PromoCampaignPageRefs on PromoCampaignPageBlocksContent {
|
||||
content {
|
||||
content {
|
||||
embedded_itemsConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...SysAssetRef
|
||||
...AccountPageRef
|
||||
...CampaignOverviewPageRef
|
||||
...CampaignPageRef
|
||||
...CollectionPageRef
|
||||
...ContentPageRef
|
||||
...DestinationCityPageRef
|
||||
...DestinationCountryPageRef
|
||||
...DestinationOverviewPageRef
|
||||
...HotelPageRef
|
||||
...LoyaltyPageRef
|
||||
...StartPageRef
|
||||
...PromoCampaignPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
${SysAssetRef}
|
||||
${AccountPageRef}
|
||||
${CampaignOverviewPageRef}
|
||||
${CampaignPageRef}
|
||||
${CollectionPageRef}
|
||||
${ContentPageRef}
|
||||
${DestinationCityPageRef}
|
||||
${DestinationCountryPageRef}
|
||||
${DestinationOverviewPageRef}
|
||||
${HotelPageRef}
|
||||
${LoyaltyPageRef}
|
||||
${StartPageRef}
|
||||
${PromoCampaignPageRef}
|
||||
`
|
||||
|
||||
@@ -1,15 +1,5 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import { AccountPageRef } from "../AccountPage/Ref.graphql"
|
||||
import { CampaignOverviewPageRef } from "../CampaignOverviewPage/Ref.graphql"
|
||||
import { CampaignPageRef } from "../CampaignPage/Ref.graphql"
|
||||
import { CollectionPageRef } from "../CollectionPage/Ref.graphql"
|
||||
import { ContentPageRef } from "../ContentPage/Ref.graphql"
|
||||
import { DestinationCityPageRef } from "../DestinationCityPage/Ref.graphql"
|
||||
import { DestinationCountryPageRef } from "../DestinationCountryPage/Ref.graphql"
|
||||
import { DestinationOverviewPageRef } from "../DestinationOverviewPage/Ref.graphql"
|
||||
import { HotelPageRef } from "../HotelPage/Ref.graphql"
|
||||
import { LoyaltyPageRef } from "../LoyaltyPage/Ref.graphql"
|
||||
import { AccountPageLink } from "../PageLink/AccountPageLink.graphql"
|
||||
import { CampaignOverviewPageLink } from "../PageLink/CampaignOverviewPageLink.graphql"
|
||||
import { CampaignPageLink } from "../PageLink/CampaignPageLink.graphql"
|
||||
@@ -22,8 +12,6 @@ import { HotelPageLink } from "../PageLink/HotelPageLink.graphql"
|
||||
import { LoyaltyPageLink } from "../PageLink/LoyaltyPageLink.graphql"
|
||||
import { PromoCampaignPageLink } from "../PageLink/PromoCampaignPageLink.graphql"
|
||||
import { StartPageLink } from "../PageLink/StartPageLink.graphql"
|
||||
import { PromoCampaignPageRef } from "../PromoCampaignPage/Ref.graphql"
|
||||
import { StartPageRef } from "../StartPage/Ref.graphql"
|
||||
import { System } from "../System.graphql"
|
||||
|
||||
export const ContentCardBlock = gql`
|
||||
@@ -80,46 +68,3 @@ export const ContentCardBlock = gql`
|
||||
${StartPageLink}
|
||||
${PromoCampaignPageLink}
|
||||
`
|
||||
|
||||
export const ContentCardBlockRef = gql`
|
||||
fragment ContentCardBlockRef on ContentCard {
|
||||
__typename
|
||||
card_link {
|
||||
linkConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...AccountPageRef
|
||||
...CampaignOverviewPageRef
|
||||
...CampaignPageRef
|
||||
...CollectionPageRef
|
||||
...ContentPageRef
|
||||
...DestinationCityPageRef
|
||||
...DestinationCountryPageRef
|
||||
...DestinationOverviewPageRef
|
||||
...HotelPageRef
|
||||
...LoyaltyPageRef
|
||||
...StartPageRef
|
||||
...PromoCampaignPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
${System}
|
||||
${AccountPageRef}
|
||||
${CampaignOverviewPageRef}
|
||||
${CampaignPageRef}
|
||||
${ContentPageRef}
|
||||
${HotelPageRef}
|
||||
${LoyaltyPageRef}
|
||||
${CollectionPageRef}
|
||||
${DestinationCityPageRef}
|
||||
${DestinationCountryPageRef}
|
||||
${DestinationOverviewPageRef}
|
||||
${StartPageRef}
|
||||
${PromoCampaignPageRef}
|
||||
`
|
||||
|
||||
@@ -1,15 +1,5 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import { AccountPageRef } from "../AccountPage/Ref.graphql"
|
||||
import { CampaignOverviewPageRef } from "../CampaignOverviewPage/Ref.graphql"
|
||||
import { CampaignPageRef } from "../CampaignPage/Ref.graphql"
|
||||
import { CollectionPageRef } from "../CollectionPage/Ref.graphql"
|
||||
import { ContentPageRef } from "../ContentPage/Ref.graphql"
|
||||
import { DestinationCityPageRef } from "../DestinationCityPage/Ref.graphql"
|
||||
import { DestinationCountryPageRef } from "../DestinationCountryPage/Ref.graphql"
|
||||
import { DestinationOverviewPageRef } from "../DestinationOverviewPage/Ref.graphql"
|
||||
import { HotelPageRef } from "../HotelPage/Ref.graphql"
|
||||
import { LoyaltyPageRef } from "../LoyaltyPage/Ref.graphql"
|
||||
import { AccountPageLink } from "../PageLink/AccountPageLink.graphql"
|
||||
import { CampaignOverviewPageLink } from "../PageLink/CampaignOverviewPageLink.graphql"
|
||||
import { CampaignPageLink } from "../PageLink/CampaignPageLink.graphql"
|
||||
@@ -22,8 +12,6 @@ import { HotelPageLink } from "../PageLink/HotelPageLink.graphql"
|
||||
import { LoyaltyPageLink } from "../PageLink/LoyaltyPageLink.graphql"
|
||||
import { PromoCampaignPageLink } from "../PageLink/PromoCampaignPageLink.graphql"
|
||||
import { StartPageLink } from "../PageLink/StartPageLink.graphql"
|
||||
import { PromoCampaignPageRef } from "../PromoCampaignPage/Ref.graphql"
|
||||
import { StartPageRef } from "../StartPage/Ref.graphql"
|
||||
|
||||
export const DynamicContent_AccountPage = gql`
|
||||
fragment DynamicContent_AccountPage on AccountPageContentDynamicContent {
|
||||
@@ -69,46 +57,6 @@ export const DynamicContent_AccountPage = gql`
|
||||
${PromoCampaignPageLink}
|
||||
`
|
||||
|
||||
export const DynamicContent_AccountPageRefs = gql`
|
||||
fragment DynamicContent_AccountPageRefs on AccountPageContentDynamicContent {
|
||||
dynamic_content {
|
||||
link {
|
||||
linkConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...AccountPageRef
|
||||
...CampaignOverviewPageRef
|
||||
...CampaignPageRef
|
||||
...CollectionPageRef
|
||||
...ContentPageRef
|
||||
...DestinationCityPageRef
|
||||
...DestinationCountryPageRef
|
||||
...DestinationOverviewPageRef
|
||||
...HotelPageRef
|
||||
...LoyaltyPageRef
|
||||
...StartPageRef
|
||||
...PromoCampaignPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
${AccountPageRef}
|
||||
${CampaignOverviewPageRef}
|
||||
${CampaignPageRef}
|
||||
${CollectionPageRef}
|
||||
${ContentPageRef}
|
||||
${DestinationCityPageRef}
|
||||
${DestinationCountryPageRef}
|
||||
${DestinationOverviewPageRef}
|
||||
${HotelPageRef}
|
||||
${LoyaltyPageRef}
|
||||
${StartPageRef}
|
||||
${PromoCampaignPageRef}
|
||||
`
|
||||
|
||||
export const DynamicContent_CollectionPage = gql`
|
||||
fragment DynamicContent_CollectionPage on CollectionPageBlocksDynamicContent {
|
||||
dynamic_content {
|
||||
@@ -153,46 +101,6 @@ export const DynamicContent_CollectionPage = gql`
|
||||
${PromoCampaignPageLink}
|
||||
`
|
||||
|
||||
export const DynamicContent_CollectionPageRefs = gql`
|
||||
fragment DynamicContent_CollectionPageRefs on CollectionPageBlocksDynamicContent {
|
||||
dynamic_content {
|
||||
link {
|
||||
linkConnection: pageConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...AccountPageRef
|
||||
...CampaignOverviewPageRef
|
||||
...CampaignPageRef
|
||||
...CollectionPageRef
|
||||
...ContentPageRef
|
||||
...DestinationCityPageRef
|
||||
...DestinationCountryPageRef
|
||||
...DestinationOverviewPageRef
|
||||
...HotelPageRef
|
||||
...LoyaltyPageRef
|
||||
...StartPageRef
|
||||
...PromoCampaignPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
${AccountPageRef}
|
||||
${CampaignOverviewPageRef}
|
||||
${CampaignPageRef}
|
||||
${CollectionPageRef}
|
||||
${ContentPageRef}
|
||||
${DestinationCityPageRef}
|
||||
${DestinationCountryPageRef}
|
||||
${DestinationOverviewPageRef}
|
||||
${HotelPageRef}
|
||||
${LoyaltyPageRef}
|
||||
${StartPageRef}
|
||||
${PromoCampaignPageRef}
|
||||
`
|
||||
|
||||
export const DynamicContent_ContentPage = gql`
|
||||
fragment DynamicContent_ContentPage on ContentPageBlocksDynamicContent {
|
||||
dynamic_content {
|
||||
@@ -237,46 +145,6 @@ export const DynamicContent_ContentPage = gql`
|
||||
${PromoCampaignPageLink}
|
||||
`
|
||||
|
||||
export const DynamicContent_ContentPageRefs = gql`
|
||||
fragment DynamicContent_ContentPageRefs on ContentPageBlocksDynamicContent {
|
||||
dynamic_content {
|
||||
link {
|
||||
linkConnection: pageConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...AccountPageRef
|
||||
...CampaignOverviewPageRef
|
||||
...CampaignPageRef
|
||||
...CollectionPageRef
|
||||
...ContentPageRef
|
||||
...DestinationCityPageRef
|
||||
...DestinationCountryPageRef
|
||||
...DestinationOverviewPageRef
|
||||
...HotelPageRef
|
||||
...LoyaltyPageRef
|
||||
...StartPageRef
|
||||
...PromoCampaignPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
${AccountPageRef}
|
||||
${CampaignOverviewPageRef}
|
||||
${CampaignPageRef}
|
||||
${CollectionPageRef}
|
||||
${ContentPageRef}
|
||||
${DestinationCityPageRef}
|
||||
${DestinationCountryPageRef}
|
||||
${DestinationOverviewPageRef}
|
||||
${HotelPageRef}
|
||||
${LoyaltyPageRef}
|
||||
${StartPageRef}
|
||||
${PromoCampaignPageRef}
|
||||
`
|
||||
|
||||
export const DynamicContent_LoyaltyPage = gql`
|
||||
fragment DynamicContent_LoyaltyPage on LoyaltyPageBlocksDynamicContent {
|
||||
dynamic_content {
|
||||
@@ -320,43 +188,3 @@ export const DynamicContent_LoyaltyPage = gql`
|
||||
${StartPageLink}
|
||||
${PromoCampaignPageLink}
|
||||
`
|
||||
|
||||
export const DynamicContent_LoyaltyPageRefs = gql`
|
||||
fragment DynamicContent_LoyaltyPageRefs on LoyaltyPageBlocksDynamicContent {
|
||||
dynamic_content {
|
||||
link {
|
||||
linkConnection: pageConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...AccountPageRef
|
||||
...CampaignOverviewPageRef
|
||||
...CampaignPageRef
|
||||
...CollectionPageRef
|
||||
...ContentPageRef
|
||||
...DestinationCityPageRef
|
||||
...DestinationCountryPageRef
|
||||
...DestinationOverviewPageRef
|
||||
...HotelPageRef
|
||||
...LoyaltyPageRef
|
||||
...StartPageRef
|
||||
...PromoCampaignPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
${AccountPageRef}
|
||||
${CampaignOverviewPageRef}
|
||||
${CampaignPageRef}
|
||||
${CollectionPageRef}
|
||||
${ContentPageRef}
|
||||
${DestinationCityPageRef}
|
||||
${DestinationCountryPageRef}
|
||||
${DestinationOverviewPageRef}
|
||||
${HotelPageRef}
|
||||
${LoyaltyPageRef}
|
||||
${StartPageRef}
|
||||
${PromoCampaignPageRef}
|
||||
`
|
||||
|
||||
@@ -1,15 +1,5 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import { AccountPageRef } from "../AccountPage/Ref.graphql"
|
||||
import { CampaignOverviewPageRef } from "../CampaignOverviewPage/Ref.graphql"
|
||||
import { CampaignPageRef } from "../CampaignPage/Ref.graphql"
|
||||
import { CollectionPageRef } from "../CollectionPage/Ref.graphql"
|
||||
import { ContentPageRef } from "../ContentPage/Ref.graphql"
|
||||
import { DestinationCityPageRef } from "../DestinationCityPage/Ref.graphql"
|
||||
import { DestinationCountryPageRef } from "../DestinationCountryPage/Ref.graphql"
|
||||
import { DestinationOverviewPageRef } from "../DestinationOverviewPage/Ref.graphql"
|
||||
import { HotelPageRef } from "../HotelPage/Ref.graphql"
|
||||
import { LoyaltyPageRef } from "../LoyaltyPage/Ref.graphql"
|
||||
import { AccountPageLink } from "../PageLink/AccountPageLink.graphql"
|
||||
import { CampaignOverviewPageLink } from "../PageLink/CampaignOverviewPageLink.graphql"
|
||||
import { CampaignPageLink } from "../PageLink/CampaignPageLink.graphql"
|
||||
@@ -21,7 +11,6 @@ import { DestinationOverviewPageLink } from "../PageLink/DestinationOverviewPage
|
||||
import { HotelPageLink } from "../PageLink/HotelPageLink.graphql"
|
||||
import { LoyaltyPageLink } from "../PageLink/LoyaltyPageLink.graphql"
|
||||
import { PromoCampaignPageLink } from "../PageLink/PromoCampaignPageLink.graphql"
|
||||
import { PromoCampaignPageRef } from "../PromoCampaignPage/Ref.graphql"
|
||||
|
||||
export const FullWidthCampaign = gql`
|
||||
fragment FullWidthCampaign on FullWidthCampaign {
|
||||
@@ -101,62 +90,3 @@ export const FullWidthCampaign = gql`
|
||||
${DestinationOverviewPageLink}
|
||||
${PromoCampaignPageLink}
|
||||
`
|
||||
|
||||
export const FullWidthCampaignRefs = gql`
|
||||
fragment FullWidthCampaignRefs on FullWidthCampaign {
|
||||
primary_button {
|
||||
linkConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...AccountPageRef
|
||||
...CampaignOverviewPageRef
|
||||
...CampaignPageRef
|
||||
...CollectionPageRef
|
||||
...ContentPageRef
|
||||
...DestinationCityPageRef
|
||||
...DestinationCountryPageRef
|
||||
...DestinationOverviewPageRef
|
||||
...HotelPageRef
|
||||
...LoyaltyPageRef
|
||||
...PromoCampaignPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
secondary_button {
|
||||
linkConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...AccountPageRef
|
||||
...CampaignOverviewPageRef
|
||||
...CampaignPageRef
|
||||
...CollectionPageRef
|
||||
...ContentPageRef
|
||||
...DestinationCityPageRef
|
||||
...DestinationCountryPageRef
|
||||
...DestinationOverviewPageRef
|
||||
...HotelPageRef
|
||||
...LoyaltyPageRef
|
||||
...PromoCampaignPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
${AccountPageRef}
|
||||
${CampaignOverviewPageRef}
|
||||
${CampaignPageRef}
|
||||
${ContentPageRef}
|
||||
${HotelPageRef}
|
||||
${LoyaltyPageRef}
|
||||
${CollectionPageRef}
|
||||
${DestinationCityPageRef}
|
||||
${DestinationCountryPageRef}
|
||||
${DestinationOverviewPageRef}
|
||||
${PromoCampaignPageRef}
|
||||
`
|
||||
|
||||
@@ -1,15 +1,5 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import { AccountPageRef } from "../AccountPage/Ref.graphql"
|
||||
import { CampaignOverviewPageRef } from "../CampaignOverviewPage/Ref.graphql"
|
||||
import { CampaignPageRef } from "../CampaignPage/Ref.graphql"
|
||||
import { CollectionPageRef } from "../CollectionPage/Ref.graphql"
|
||||
import { ContentPageRef } from "../ContentPage/Ref.graphql"
|
||||
import { DestinationCityPageRef } from "../DestinationCityPage/Ref.graphql"
|
||||
import { DestinationCountryPageRef } from "../DestinationCountryPage/Ref.graphql"
|
||||
import { DestinationOverviewPageRef } from "../DestinationOverviewPage/Ref.graphql"
|
||||
import { HotelPageRef } from "../HotelPage/Ref.graphql"
|
||||
import { LoyaltyPageRef } from "../LoyaltyPage/Ref.graphql"
|
||||
import { AccountPageLink } from "../PageLink/AccountPageLink.graphql"
|
||||
import { CampaignOverviewPageLink } from "../PageLink/CampaignOverviewPageLink.graphql"
|
||||
import { CampaignPageLink } from "../PageLink/CampaignPageLink.graphql"
|
||||
@@ -21,7 +11,6 @@ import { DestinationOverviewPageLink } from "../PageLink/DestinationOverviewPage
|
||||
import { HotelPageLink } from "../PageLink/HotelPageLink.graphql"
|
||||
import { LoyaltyPageLink } from "../PageLink/LoyaltyPageLink.graphql"
|
||||
import { PromoCampaignPageLink } from "../PageLink/PromoCampaignPageLink.graphql"
|
||||
import { PromoCampaignPageRef } from "../PromoCampaignPage/Ref.graphql"
|
||||
|
||||
export const JoinScandicFriends_StartPage = gql`
|
||||
fragment JoinScandicFriends_StartPage on StartPageBlocksJoinScandicFriends {
|
||||
@@ -76,41 +65,3 @@ export const JoinScandicFriends_StartPage = gql`
|
||||
${LoyaltyPageLink}
|
||||
${PromoCampaignPageLink}
|
||||
`
|
||||
|
||||
export const JoinScandicFriends_StartPageRefs = gql`
|
||||
fragment JoinScandicFriends_StartPageRefs on StartPageBlocksJoinScandicFriends {
|
||||
join_scandic_friends {
|
||||
primary_button {
|
||||
linkConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...AccountPageRef
|
||||
...CampaignOverviewPageRef
|
||||
...CampaignPageRef
|
||||
...CollectionPageRef
|
||||
...ContentPageRef
|
||||
...DestinationCityPageRef
|
||||
...DestinationCountryPageRef
|
||||
...DestinationOverviewPageRef
|
||||
...HotelPageRef
|
||||
...LoyaltyPageRef
|
||||
...PromoCampaignPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
${AccountPageRef}
|
||||
${CampaignOverviewPageRef}
|
||||
${CampaignPageRef}
|
||||
${CollectionPageRef}
|
||||
${ContentPageRef}
|
||||
${DestinationCityPageRef}
|
||||
${DestinationCountryPageRef}
|
||||
${DestinationOverviewPageRef}
|
||||
${HotelPageRef}
|
||||
${LoyaltyPageRef}
|
||||
${PromoCampaignPageRef}
|
||||
`
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import { Jotform, JotformRef } from "../Jotform.graphql"
|
||||
import { Jotform } from "../Jotform.graphql"
|
||||
export const Jotform_ContentPage = gql`
|
||||
fragment Jotform_ContentPage on ContentPageBlocksJotform {
|
||||
__typename
|
||||
@@ -16,19 +16,3 @@ export const Jotform_ContentPage = gql`
|
||||
}
|
||||
${Jotform}
|
||||
`
|
||||
|
||||
export const Jotform_ContentPageRefs = gql`
|
||||
fragment Jotform_ContentPageRefs on ContentPageBlocksJotform {
|
||||
__typename
|
||||
jotform {
|
||||
formConnection {
|
||||
edges {
|
||||
node {
|
||||
...JotformRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
${JotformRef}
|
||||
`
|
||||
|
||||
@@ -1,94 +0,0 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import { AccountPageRef } from "../../AccountPage/Ref.graphql"
|
||||
import { CampaignOverviewPageRef } from "../../CampaignOverviewPage/Ref.graphql"
|
||||
import { CampaignPageRef } from "../../CampaignPage/Ref.graphql"
|
||||
import { CollectionPageRef } from "../../CollectionPage/Ref.graphql"
|
||||
import { ContentPageRef } from "../../ContentPage/Ref.graphql"
|
||||
import { DestinationCityPageRef } from "../../DestinationCityPage/Ref.graphql"
|
||||
import { DestinationCountryPageRef } from "../../DestinationCountryPage/Ref.graphql"
|
||||
import { DestinationOverviewPageRef } from "../../DestinationOverviewPage/Ref.graphql"
|
||||
import { HotelPageRef } from "../../HotelPage/Ref.graphql"
|
||||
import { LoyaltyPageRef } from "../../LoyaltyPage/Ref.graphql"
|
||||
import { PromoCampaignPageRef } from "../../PromoCampaignPage/Ref.graphql"
|
||||
import { StartPageRef } from "../../StartPage/Ref.graphql"
|
||||
|
||||
export const AccordionBlockRefs = gql`
|
||||
fragment AccordionBlockRefs on Accordion {
|
||||
questions {
|
||||
answer {
|
||||
embedded_itemsConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...AccountPageRef
|
||||
...CampaignOverviewPageRef
|
||||
...CampaignPageRef
|
||||
...CollectionPageRef
|
||||
...ContentPageRef
|
||||
...DestinationCityPageRef
|
||||
...DestinationCountryPageRef
|
||||
...DestinationOverviewPageRef
|
||||
...HotelPageRef
|
||||
...LoyaltyPageRef
|
||||
...StartPageRef
|
||||
...PromoCampaignPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
${AccountPageRef}
|
||||
${CampaignOverviewPageRef}
|
||||
${CampaignPageRef}
|
||||
${CollectionPageRef}
|
||||
${ContentPageRef}
|
||||
${DestinationCityPageRef}
|
||||
${DestinationCountryPageRef}
|
||||
${DestinationOverviewPageRef}
|
||||
${HotelPageRef}
|
||||
${LoyaltyPageRef}
|
||||
${StartPageRef}
|
||||
${PromoCampaignPageRef}
|
||||
`
|
||||
|
||||
export const GlobalAccordionBlockRefs = gql`
|
||||
fragment GlobalAccordionBlockRefs on GlobalAccordion {
|
||||
questions {
|
||||
answer {
|
||||
embedded_itemsConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...AccountPageRef
|
||||
...CampaignOverviewPageRef
|
||||
...CampaignPageRef
|
||||
...CollectionPageRef
|
||||
...ContentPageRef
|
||||
...DestinationCityPageRef
|
||||
...DestinationCountryPageRef
|
||||
...DestinationOverviewPageRef
|
||||
...HotelPageRef
|
||||
...LoyaltyPageRef
|
||||
...StartPageRef
|
||||
...PromoCampaignPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
${AccountPageRef}
|
||||
${CampaignOverviewPageRef}
|
||||
${CampaignPageRef}
|
||||
${CollectionPageRef}
|
||||
${ContentPageRef}
|
||||
${DestinationCityPageRef}
|
||||
${DestinationCountryPageRef}
|
||||
${DestinationOverviewPageRef}
|
||||
${HotelPageRef}
|
||||
${LoyaltyPageRef}
|
||||
${StartPageRef}
|
||||
${PromoCampaignPageRef}
|
||||
`
|
||||
@@ -1,78 +0,0 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import { AccountPageRef } from "../../AccountPage/Ref.graphql"
|
||||
import { CampaignOverviewPageRef } from "../../CampaignOverviewPage/Ref.graphql"
|
||||
import { CampaignPageRef } from "../../CampaignPage/Ref.graphql"
|
||||
import { CollectionPageRef } from "../../CollectionPage/Ref.graphql"
|
||||
import { ContentPageRef } from "../../ContentPage/Ref.graphql"
|
||||
import { DestinationCityPageRef } from "../../DestinationCityPage/Ref.graphql"
|
||||
import { DestinationCountryPageRef } from "../../DestinationCountryPage/Ref.graphql"
|
||||
import { DestinationOverviewPageRef } from "../../DestinationOverviewPage/Ref.graphql"
|
||||
import { HotelPageRef } from "../../HotelPage/Ref.graphql"
|
||||
import { LoyaltyPageRef } from "../../LoyaltyPage/Ref.graphql"
|
||||
import { PromoCampaignPageRef } from "../../PromoCampaignPage/Ref.graphql"
|
||||
import { StartPageRef } from "../../StartPage/Ref.graphql"
|
||||
import { System } from "../../System.graphql"
|
||||
|
||||
export const CardBlockRef = gql`
|
||||
fragment CardBlockRef on Card {
|
||||
secondary_button {
|
||||
linkConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...AccountPageRef
|
||||
...CampaignOverviewPageRef
|
||||
...CampaignPageRef
|
||||
...CollectionPageRef
|
||||
...ContentPageRef
|
||||
...DestinationCityPageRef
|
||||
...DestinationCountryPageRef
|
||||
...DestinationOverviewPageRef
|
||||
...HotelPageRef
|
||||
...LoyaltyPageRef
|
||||
...StartPageRef
|
||||
...PromoCampaignPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
primary_button {
|
||||
linkConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...AccountPageRef
|
||||
...CampaignOverviewPageRef
|
||||
...CampaignPageRef
|
||||
...CollectionPageRef
|
||||
...ContentPageRef
|
||||
...DestinationCityPageRef
|
||||
...DestinationCountryPageRef
|
||||
...DestinationOverviewPageRef
|
||||
...HotelPageRef
|
||||
...LoyaltyPageRef
|
||||
...StartPageRef
|
||||
...PromoCampaignPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
${System}
|
||||
${AccountPageRef}
|
||||
${CampaignOverviewPageRef}
|
||||
${CampaignPageRef}
|
||||
${CollectionPageRef}
|
||||
${ContentPageRef}
|
||||
${DestinationCityPageRef}
|
||||
${DestinationCountryPageRef}
|
||||
${DestinationOverviewPageRef}
|
||||
${HotelPageRef}
|
||||
${LoyaltyPageRef}
|
||||
${StartPageRef}
|
||||
${PromoCampaignPageRef}
|
||||
`
|
||||
@@ -1,76 +0,0 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import { AccountPageRef } from "../../AccountPage/Ref.graphql"
|
||||
import { CampaignOverviewPageRef } from "../../CampaignOverviewPage/Ref.graphql"
|
||||
import { CampaignPageRef } from "../../CampaignPage/Ref.graphql"
|
||||
import { CollectionPageRef } from "../../CollectionPage/Ref.graphql"
|
||||
import { ContentPageRef } from "../../ContentPage/Ref.graphql"
|
||||
import { DestinationCityPageRef } from "../../DestinationCityPage/Ref.graphql"
|
||||
import { DestinationCountryPageRef } from "../../DestinationCountryPage/Ref.graphql"
|
||||
import { DestinationOverviewPageRef } from "../../DestinationOverviewPage/Ref.graphql"
|
||||
import { HotelPageRef } from "../../HotelPage/Ref.graphql"
|
||||
import { LoyaltyPageRef } from "../../LoyaltyPage/Ref.graphql"
|
||||
import { PromoCampaignPageRef } from "../../PromoCampaignPage/Ref.graphql"
|
||||
import { StartPageRef } from "../../StartPage/Ref.graphql"
|
||||
|
||||
export const InfoCardBlockRef = gql`
|
||||
fragment InfoCardBlockRef on InfoCard {
|
||||
secondary_button {
|
||||
linkConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...AccountPageRef
|
||||
...CampaignOverviewPageRef
|
||||
...CampaignPageRef
|
||||
...CollectionPageRef
|
||||
...ContentPageRef
|
||||
...DestinationCityPageRef
|
||||
...DestinationCountryPageRef
|
||||
...DestinationOverviewPageRef
|
||||
...HotelPageRef
|
||||
...LoyaltyPageRef
|
||||
...StartPageRef
|
||||
...PromoCampaignPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
primary_button {
|
||||
linkConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...AccountPageRef
|
||||
...CampaignOverviewPageRef
|
||||
...CampaignPageRef
|
||||
...CollectionPageRef
|
||||
...ContentPageRef
|
||||
...DestinationCityPageRef
|
||||
...DestinationCountryPageRef
|
||||
...DestinationOverviewPageRef
|
||||
...HotelPageRef
|
||||
...LoyaltyPageRef
|
||||
...StartPageRef
|
||||
...PromoCampaignPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
${AccountPageRef}
|
||||
${CampaignOverviewPageRef}
|
||||
${CampaignPageRef}
|
||||
${CollectionPageRef}
|
||||
${ContentPageRef}
|
||||
${DestinationCityPageRef}
|
||||
${DestinationCountryPageRef}
|
||||
${DestinationOverviewPageRef}
|
||||
${HotelPageRef}
|
||||
${LoyaltyPageRef}
|
||||
${StartPageRef}
|
||||
${PromoCampaignPageRef}
|
||||
`
|
||||
@@ -1,57 +0,0 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import { AccountPageRef } from "../../AccountPage/Ref.graphql"
|
||||
import { CampaignOverviewPageRef } from "../../CampaignOverviewPage/Ref.graphql"
|
||||
import { CampaignPageRef } from "../../CampaignPage/Ref.graphql"
|
||||
import { CollectionPageRef } from "../../CollectionPage/Ref.graphql"
|
||||
import { ContentPageRef } from "../../ContentPage/Ref.graphql"
|
||||
import { DestinationCityPageRef } from "../../DestinationCityPage/Ref.graphql"
|
||||
import { DestinationCountryPageRef } from "../../DestinationCountryPage/Ref.graphql"
|
||||
import { DestinationOverviewPageRef } from "../../DestinationOverviewPage/Ref.graphql"
|
||||
import { HotelPageRef } from "../../HotelPage/Ref.graphql"
|
||||
import { LoyaltyPageRef } from "../../LoyaltyPage/Ref.graphql"
|
||||
import { PromoCampaignPageRef } from "../../PromoCampaignPage/Ref.graphql"
|
||||
import { StartPageRef } from "../../StartPage/Ref.graphql"
|
||||
import { System } from "../../System.graphql"
|
||||
|
||||
export const LoyaltyCardBlockRef = gql`
|
||||
fragment LoyaltyCardBlockRef on LoyaltyCard {
|
||||
link {
|
||||
linkConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...AccountPageRef
|
||||
...CampaignOverviewPageRef
|
||||
...CampaignPageRef
|
||||
...CollectionPageRef
|
||||
...ContentPageRef
|
||||
...DestinationCityPageRef
|
||||
...DestinationCountryPageRef
|
||||
...DestinationOverviewPageRef
|
||||
...HotelPageRef
|
||||
...LoyaltyPageRef
|
||||
...StartPageRef
|
||||
...PromoCampaignPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
${System}
|
||||
${AccountPageRef}
|
||||
${CampaignOverviewPageRef}
|
||||
${CampaignPageRef}
|
||||
${CollectionPageRef}
|
||||
${ContentPageRef}
|
||||
${DestinationCityPageRef}
|
||||
${DestinationCountryPageRef}
|
||||
${DestinationOverviewPageRef}
|
||||
${HotelPageRef}
|
||||
${LoyaltyPageRef}
|
||||
${StartPageRef}
|
||||
${PromoCampaignPageRef}
|
||||
`
|
||||
@@ -1,141 +0,0 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import { AccountPageRef } from "../../AccountPage/Ref.graphql"
|
||||
import { CampaignOverviewPageRef } from "../../CampaignOverviewPage/Ref.graphql"
|
||||
import { CampaignPageRef } from "../../CampaignPage/Ref.graphql"
|
||||
import { CollectionPageRef } from "../../CollectionPage/Ref.graphql"
|
||||
import { ContentPageRef } from "../../ContentPage/Ref.graphql"
|
||||
import { DestinationCityPageRef } from "../../DestinationCityPage/Ref.graphql"
|
||||
import { DestinationCountryPageRef } from "../../DestinationCountryPage/Ref.graphql"
|
||||
import { DestinationOverviewPageRef } from "../../DestinationOverviewPage/Ref.graphql"
|
||||
import { HotelPageRef } from "../../HotelPage/Ref.graphql"
|
||||
import { LoyaltyPageRef } from "../../LoyaltyPage/Ref.graphql"
|
||||
import { PromoCampaignPageRef } from "../../PromoCampaignPage/Ref.graphql"
|
||||
import { StartPageRef } from "../../StartPage/Ref.graphql"
|
||||
|
||||
export const TeaserCardBlockRef = gql`
|
||||
fragment TeaserCardBlockRef on TeaserCard {
|
||||
secondary_button {
|
||||
linkConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...AccountPageRef
|
||||
...CampaignOverviewPageRef
|
||||
...CampaignPageRef
|
||||
...CollectionPageRef
|
||||
...ContentPageRef
|
||||
...DestinationCityPageRef
|
||||
...DestinationCountryPageRef
|
||||
...DestinationOverviewPageRef
|
||||
...HotelPageRef
|
||||
...LoyaltyPageRef
|
||||
...StartPageRef
|
||||
...PromoCampaignPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
primary_button {
|
||||
linkConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...AccountPageRef
|
||||
...CampaignOverviewPageRef
|
||||
...CampaignPageRef
|
||||
...CollectionPageRef
|
||||
...ContentPageRef
|
||||
...DestinationCityPageRef
|
||||
...DestinationCountryPageRef
|
||||
...DestinationOverviewPageRef
|
||||
...HotelPageRef
|
||||
...LoyaltyPageRef
|
||||
...StartPageRef
|
||||
...PromoCampaignPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
sidepeek_content {
|
||||
content {
|
||||
embedded_itemsConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...AccountPageRef
|
||||
...CampaignOverviewPageRef
|
||||
...CampaignPageRef
|
||||
...CollectionPageRef
|
||||
...ContentPageRef
|
||||
...DestinationCityPageRef
|
||||
...DestinationCountryPageRef
|
||||
...DestinationOverviewPageRef
|
||||
...HotelPageRef
|
||||
...LoyaltyPageRef
|
||||
...StartPageRef
|
||||
...PromoCampaignPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
primary_button {
|
||||
linkConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...AccountPageRef
|
||||
...CampaignOverviewPageRef
|
||||
...CampaignPageRef
|
||||
...CollectionPageRef
|
||||
...ContentPageRef
|
||||
...DestinationCityPageRef
|
||||
...DestinationCountryPageRef
|
||||
...DestinationOverviewPageRef
|
||||
...HotelPageRef
|
||||
...LoyaltyPageRef
|
||||
...StartPageRef
|
||||
...PromoCampaignPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
secondary_button {
|
||||
linkConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...AccountPageRef
|
||||
...CampaignOverviewPageRef
|
||||
...CampaignPageRef
|
||||
...CollectionPageRef
|
||||
...ContentPageRef
|
||||
...DestinationCityPageRef
|
||||
...DestinationCountryPageRef
|
||||
...DestinationOverviewPageRef
|
||||
...HotelPageRef
|
||||
...LoyaltyPageRef
|
||||
...StartPageRef
|
||||
...PromoCampaignPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
${AccountPageRef}
|
||||
${CampaignOverviewPageRef}
|
||||
${CampaignPageRef}
|
||||
${CollectionPageRef}
|
||||
${ContentPageRef}
|
||||
${DestinationCityPageRef}
|
||||
${DestinationCountryPageRef}
|
||||
${DestinationOverviewPageRef}
|
||||
${HotelPageRef}
|
||||
${LoyaltyPageRef}
|
||||
${StartPageRef}
|
||||
${PromoCampaignPageRef}
|
||||
`
|
||||
@@ -1,15 +1,5 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import { AccountPageRef } from "../AccountPage/Ref.graphql"
|
||||
import { CampaignOverviewPageRef } from "../CampaignOverviewPage/Ref.graphql"
|
||||
import { CampaignPageRef } from "../CampaignPage/Ref.graphql"
|
||||
import { CollectionPageRef } from "../CollectionPage/Ref.graphql"
|
||||
import { ContentPageRef } from "../ContentPage/Ref.graphql"
|
||||
import { DestinationCityPageRef } from "../DestinationCityPage/Ref.graphql"
|
||||
import { DestinationCountryPageRef } from "../DestinationCountryPage/Ref.graphql"
|
||||
import { DestinationOverviewPageRef } from "../DestinationOverviewPage/Ref.graphql"
|
||||
import { HotelPageRef } from "../HotelPage/Ref.graphql"
|
||||
import { LoyaltyPageRef } from "../LoyaltyPage/Ref.graphql"
|
||||
import { AccountPageLink } from "../PageLink/AccountPageLink.graphql"
|
||||
import { CampaignOverviewPageLink } from "../PageLink/CampaignOverviewPageLink.graphql"
|
||||
import { CampaignPageLink } from "../PageLink/CampaignPageLink.graphql"
|
||||
@@ -22,8 +12,6 @@ import { HotelPageLink } from "../PageLink/HotelPageLink.graphql"
|
||||
import { LoyaltyPageLink } from "../PageLink/LoyaltyPageLink.graphql"
|
||||
import { PromoCampaignPageLink } from "../PageLink/PromoCampaignPageLink.graphql"
|
||||
import { StartPageLink } from "../PageLink/StartPageLink.graphql"
|
||||
import { PromoCampaignPageRef } from "../PromoCampaignPage/Ref.graphql"
|
||||
import { StartPageRef } from "../StartPage/Ref.graphql"
|
||||
|
||||
export const Shortcuts = gql`
|
||||
fragment Shortcuts on Shortcuts {
|
||||
@@ -108,77 +96,3 @@ export const Shortcuts_LoyaltyPage = gql`
|
||||
}
|
||||
${Shortcuts}
|
||||
`
|
||||
|
||||
export const ShortcutsRefs = gql`
|
||||
fragment ShortcutsRefs on Shortcuts {
|
||||
shortcuts {
|
||||
linkConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...AccountPageRef
|
||||
...CampaignOverviewPageRef
|
||||
...CampaignPageRef
|
||||
...CollectionPageRef
|
||||
...ContentPageRef
|
||||
...DestinationCityPageRef
|
||||
...DestinationCountryPageRef
|
||||
...DestinationOverviewPageRef
|
||||
...HotelPageRef
|
||||
...LoyaltyPageRef
|
||||
...StartPageRef
|
||||
...PromoCampaignPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
${AccountPageRef}
|
||||
${CampaignOverviewPageRef}
|
||||
${CampaignPageRef}
|
||||
${CollectionPageRef}
|
||||
${ContentPageRef}
|
||||
${DestinationCityPageRef}
|
||||
${DestinationCountryPageRef}
|
||||
${DestinationOverviewPageRef}
|
||||
${HotelPageRef}
|
||||
${LoyaltyPageRef}
|
||||
${StartPageRef}
|
||||
${PromoCampaignPageRef}
|
||||
`
|
||||
|
||||
export const Shortcuts_AccountPageRefs = gql`
|
||||
fragment Shortcuts_AccountPageRefs on AccountPageContentShortcuts {
|
||||
shortcuts {
|
||||
...ShortcutsRefs
|
||||
}
|
||||
}
|
||||
${ShortcutsRefs}
|
||||
`
|
||||
|
||||
export const Shortcuts_CollectionPageRefs = gql`
|
||||
fragment Shortcuts_CollectionPageRefs on CollectionPageBlocksShortcuts {
|
||||
shortcuts {
|
||||
...ShortcutsRefs
|
||||
}
|
||||
}
|
||||
${ShortcutsRefs}
|
||||
`
|
||||
|
||||
export const Shortcuts_ContentPageRefs = gql`
|
||||
fragment Shortcuts_ContentPageRefs on ContentPageBlocksShortcuts {
|
||||
shortcuts {
|
||||
...ShortcutsRefs
|
||||
}
|
||||
}
|
||||
${ShortcutsRefs}
|
||||
`
|
||||
|
||||
export const Shortcuts_LoyaltyPageRefs = gql`
|
||||
fragment Shortcuts_LoyaltyPageRefs on LoyaltyPageBlocksShortcuts {
|
||||
shortcuts {
|
||||
...ShortcutsRefs
|
||||
}
|
||||
}
|
||||
${ShortcutsRefs}
|
||||
`
|
||||
|
||||
@@ -1,15 +1,5 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import { AccountPageRef } from "../AccountPage/Ref.graphql"
|
||||
import { CampaignOverviewPageRef } from "../CampaignOverviewPage/Ref.graphql"
|
||||
import { CampaignPageRef } from "../CampaignPage/Ref.graphql"
|
||||
import { CollectionPageRef } from "../CollectionPage/Ref.graphql"
|
||||
import { ContentPageRef } from "../ContentPage/Ref.graphql"
|
||||
import { DestinationCityPageRef } from "../DestinationCityPage/Ref.graphql"
|
||||
import { DestinationCountryPageRef } from "../DestinationCountryPage/Ref.graphql"
|
||||
import { DestinationOverviewPageRef } from "../DestinationOverviewPage/Ref.graphql"
|
||||
import { HotelPageRef } from "../HotelPage/Ref.graphql"
|
||||
import { LoyaltyPageRef } from "../LoyaltyPage/Ref.graphql"
|
||||
import { AccountPageLink } from "../PageLink/AccountPageLink.graphql"
|
||||
import { CampaignOverviewPageLink } from "../PageLink/CampaignOverviewPageLink.graphql"
|
||||
import { CampaignPageLink } from "../PageLink/CampaignPageLink.graphql"
|
||||
@@ -22,8 +12,6 @@ import { HotelPageLink } from "../PageLink/HotelPageLink.graphql"
|
||||
import { LoyaltyPageLink } from "../PageLink/LoyaltyPageLink.graphql"
|
||||
import { PromoCampaignPageLink } from "../PageLink/PromoCampaignPageLink.graphql"
|
||||
import { StartPageLink } from "../PageLink/StartPageLink.graphql"
|
||||
import { PromoCampaignPageRef } from "../PromoCampaignPage/Ref.graphql"
|
||||
import { StartPageRef } from "../StartPage/Ref.graphql"
|
||||
|
||||
export const TextCols_ContentPage = gql`
|
||||
fragment TextCols_ContentPage on ContentPageBlocksTextCols {
|
||||
@@ -68,47 +56,3 @@ export const TextCols_ContentPage = gql`
|
||||
${StartPageLink}
|
||||
${PromoCampaignPageLink}
|
||||
`
|
||||
|
||||
export const TextCols_ContentPageRef = gql`
|
||||
fragment TextCols_ContentPageRef on ContentPageBlocksTextCols {
|
||||
text_cols {
|
||||
columns {
|
||||
title
|
||||
text {
|
||||
json
|
||||
embedded_itemsConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...AccountPageRef
|
||||
...CampaignOverviewPageRef
|
||||
...CampaignPageRef
|
||||
...CollectionPageRef
|
||||
...ContentPageRef
|
||||
...DestinationCityPageRef
|
||||
...DestinationCountryPageRef
|
||||
...DestinationOverviewPageRef
|
||||
...HotelPageRef
|
||||
...LoyaltyPageRef
|
||||
...StartPageRef
|
||||
...PromoCampaignPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
${AccountPageRef}
|
||||
${CampaignOverviewPageRef}
|
||||
${CampaignPageRef}
|
||||
${CollectionPageRef}
|
||||
${ContentPageRef}
|
||||
${DestinationCityPageRef}
|
||||
${DestinationCountryPageRef}
|
||||
${DestinationOverviewPageRef}
|
||||
${HotelPageRef}
|
||||
${LoyaltyPageRef}
|
||||
${StartPageRef}
|
||||
${PromoCampaignPageRef}
|
||||
`
|
||||
|
||||
@@ -1,15 +1,5 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import { AccountPageRef } from "../AccountPage/Ref.graphql"
|
||||
import { CampaignOverviewPageRef } from "../CampaignOverviewPage/Ref.graphql"
|
||||
import { CampaignPageRef } from "../CampaignPage/Ref.graphql"
|
||||
import { CollectionPageRef } from "../CollectionPage/Ref.graphql"
|
||||
import { ContentPageRef } from "../ContentPage/Ref.graphql"
|
||||
import { DestinationCityPageRef } from "../DestinationCityPage/Ref.graphql"
|
||||
import { DestinationCountryPageRef } from "../DestinationCountryPage/Ref.graphql"
|
||||
import { DestinationOverviewPageRef } from "../DestinationOverviewPage/Ref.graphql"
|
||||
import { HotelPageRef } from "../HotelPage/Ref.graphql"
|
||||
import { LoyaltyPageRef } from "../LoyaltyPage/Ref.graphql"
|
||||
import { AccountPageLink } from "../PageLink/AccountPageLink.graphql"
|
||||
import { CampaignOverviewPageLink } from "../PageLink/CampaignOverviewPageLink.graphql"
|
||||
import { CampaignPageLink } from "../PageLink/CampaignPageLink.graphql"
|
||||
@@ -22,8 +12,6 @@ import { HotelPageLink } from "../PageLink/HotelPageLink.graphql"
|
||||
import { LoyaltyPageLink } from "../PageLink/LoyaltyPageLink.graphql"
|
||||
import { PromoCampaignPageLink } from "../PageLink/PromoCampaignPageLink.graphql"
|
||||
import { StartPageLink } from "../PageLink/StartPageLink.graphql"
|
||||
import { PromoCampaignPageRef } from "../PromoCampaignPage/Ref.graphql"
|
||||
import { StartPageRef } from "../StartPage/Ref.graphql"
|
||||
|
||||
export const UspGrid_ContentPage = gql`
|
||||
fragment UspGrid_ContentPage on ContentPageBlocksUspGrid {
|
||||
@@ -80,56 +68,6 @@ export const UspGrid_ContentPage = gql`
|
||||
${PromoCampaignPageLink}
|
||||
`
|
||||
|
||||
export const UspGrid_ContentPageRefs = gql`
|
||||
fragment UspGrid_ContentPageRefs on ContentPageBlocksUspGrid {
|
||||
usp_grid {
|
||||
cardsConnection {
|
||||
edges {
|
||||
node {
|
||||
... on UspGrid {
|
||||
usp_card {
|
||||
text {
|
||||
embedded_itemsConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...AccountPageRef
|
||||
...CampaignOverviewPageRef
|
||||
...CampaignPageRef
|
||||
...CollectionPageRef
|
||||
...ContentPageRef
|
||||
...DestinationCityPageRef
|
||||
...DestinationCountryPageRef
|
||||
...DestinationOverviewPageRef
|
||||
...HotelPageRef
|
||||
...LoyaltyPageRef
|
||||
...StartPageRef
|
||||
...PromoCampaignPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
${AccountPageRef}
|
||||
${CampaignOverviewPageRef}
|
||||
${CampaignPageRef}
|
||||
${CollectionPageRef}
|
||||
${ContentPageRef}
|
||||
${DestinationCityPageRef}
|
||||
${DestinationCountryPageRef}
|
||||
${DestinationOverviewPageRef}
|
||||
${HotelPageRef}
|
||||
${LoyaltyPageRef}
|
||||
${StartPageRef}
|
||||
${PromoCampaignPageRef}
|
||||
`
|
||||
|
||||
export const UspGrid_CollectionPage = gql`
|
||||
fragment UspGrid_CollectionPage on CollectionPageBlocksUspGrid {
|
||||
__typename
|
||||
@@ -183,52 +121,3 @@ export const UspGrid_CollectionPage = gql`
|
||||
${StartPageLink}
|
||||
${PromoCampaignPageLink}
|
||||
`
|
||||
|
||||
export const UspGrid_CollectionPageRefs = gql`
|
||||
fragment UspGrid_CollectionPageRefs on CollectionPageBlocksUspGrid {
|
||||
usp_grid {
|
||||
cardsConnection {
|
||||
edges {
|
||||
node {
|
||||
... on UspGrid {
|
||||
usp_card {
|
||||
text {
|
||||
embedded_itemsConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...AccountPageRef
|
||||
...CampaignOverviewPageRef
|
||||
...CollectionPageRef
|
||||
...ContentPageRef
|
||||
...DestinationCityPageRef
|
||||
...DestinationCountryPageRef
|
||||
...DestinationOverviewPageRef
|
||||
...HotelPageRef
|
||||
...LoyaltyPageRef
|
||||
...StartPageRef
|
||||
...PromoCampaignPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
${AccountPageRef}
|
||||
${CampaignOverviewPageRef}
|
||||
${CampaignPageRef}
|
||||
${CollectionPageRef}
|
||||
${ContentPageRef}
|
||||
${DestinationCityPageRef}
|
||||
${DestinationCountryPageRef}
|
||||
${DestinationOverviewPageRef}
|
||||
${HotelPageRef}
|
||||
${LoyaltyPageRef}
|
||||
${StartPageRef}
|
||||
${PromoCampaignPageRef}
|
||||
`
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import { Video, VideoRef } from "../Video.graphql"
|
||||
import { Video } from "../Video.graphql"
|
||||
|
||||
export const Video_ContentPage = gql`
|
||||
fragment Video_ContentPage on ContentPageBlocksVideo {
|
||||
@@ -11,13 +11,3 @@ export const Video_ContentPage = gql`
|
||||
}
|
||||
${Video}
|
||||
`
|
||||
|
||||
export const Video_ContentPageRefs = gql`
|
||||
fragment Video_ContentPageRefs on ContentPageBlocksVideo {
|
||||
__typename
|
||||
video {
|
||||
...VideoRef
|
||||
}
|
||||
}
|
||||
${VideoRef}
|
||||
`
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import { System } from "../System.graphql"
|
||||
import { Video, VideoRef } from "../Video.graphql"
|
||||
import { Video } from "../Video.graphql"
|
||||
|
||||
const VideoQuoteCard = gql`
|
||||
fragment VideoQuoteCard on VideoQuoteCard {
|
||||
@@ -84,83 +83,3 @@ export const VideoCard_StartPage = gql`
|
||||
${VideoQuoteCard}
|
||||
${VideoTextCard}
|
||||
`
|
||||
|
||||
const VideoQuoteCardRef = gql`
|
||||
fragment VideoQuoteCardRef on VideoQuoteCard {
|
||||
video {
|
||||
...VideoRef
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
${VideoRef}
|
||||
${System}
|
||||
`
|
||||
|
||||
const VideoTextCardRef = gql`
|
||||
fragment VideoTextCardRef on VideoTextCard {
|
||||
video {
|
||||
...VideoRef
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
${VideoRef}
|
||||
${System}
|
||||
`
|
||||
|
||||
export const VideoCard_ContentPageRefs = gql`
|
||||
fragment VideoCard_ContentPageRefs on ContentPageBlocksVideoCard {
|
||||
video_card {
|
||||
video_cardConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...VideoQuoteCardRef
|
||||
...VideoTextCardRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
${VideoQuoteCardRef}
|
||||
${VideoTextCardRef}
|
||||
`
|
||||
|
||||
export const VideoCard_CollectionPageRefs = gql`
|
||||
fragment VideoCard_CollectionPageRefs on CollectionPageBlocksVideoCard {
|
||||
video_card {
|
||||
video_cardConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...VideoQuoteCardRef
|
||||
...VideoTextCardRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
${VideoQuoteCardRef}
|
||||
${VideoTextCardRef}
|
||||
`
|
||||
|
||||
export const VideoCard_StartPageRefs = gql`
|
||||
fragment VideoCard_StartPageRefs on StartPageBlocksVideoCard {
|
||||
video_card {
|
||||
video_cardConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...VideoQuoteCardRef
|
||||
...VideoTextCardRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
${VideoQuoteCardRef}
|
||||
${VideoTextCardRef}
|
||||
`
|
||||
|
||||
@@ -16,17 +16,3 @@ export const AccountPageBreadcrumb = gql`
|
||||
}
|
||||
${System}
|
||||
`
|
||||
|
||||
export const AccountPageBreadcrumbRef = gql`
|
||||
fragment AccountPageBreadcrumbRef on AccountPage {
|
||||
web {
|
||||
breadcrumbs {
|
||||
title
|
||||
}
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
${System}
|
||||
`
|
||||
|
||||
@@ -1,45 +1,15 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import {
|
||||
AccountPageBreadcrumb,
|
||||
AccountPageBreadcrumbRef,
|
||||
} from "./AccountPage.graphql"
|
||||
import {
|
||||
CampaignOverviewPageBreadcrumb,
|
||||
CampaignOverviewPageBreadcrumbRef,
|
||||
} from "./CampaignOverviewPage.graphql"
|
||||
import {
|
||||
CampaignPageBreadcrumb,
|
||||
CampaignPageBreadcrumbRef,
|
||||
} from "./CampaignPage.graphql"
|
||||
import {
|
||||
CollectionPageBreadcrumb,
|
||||
CollectionPageBreadcrumbRef,
|
||||
} from "./CollectionPage.graphql"
|
||||
import {
|
||||
ContentPageBreadcrumb,
|
||||
ContentPageBreadcrumbRef,
|
||||
} from "./ContentPage.graphql"
|
||||
import {
|
||||
DestinationCityPageBreadcrumb,
|
||||
DestinationCityPageBreadcrumbRef,
|
||||
} from "./DestinationCityPage.graphql"
|
||||
import {
|
||||
DestinationCountryPageBreadcrumb,
|
||||
DestinationCountryPageBreadcrumbRef,
|
||||
} from "./DestinationCountryPage.graphql"
|
||||
import {
|
||||
DestinationOverviewPageBreadcrumb,
|
||||
DestinationOverviewPageBreadcrumbRef,
|
||||
} from "./DestinationOverviewPage.graphql"
|
||||
import {
|
||||
HotelPageBreadcrumb,
|
||||
HotelPageBreadcrumbRef,
|
||||
} from "./HotelPage.graphql"
|
||||
import {
|
||||
LoyaltyPageBreadcrumb,
|
||||
LoyaltyPageBreadcrumbRef,
|
||||
} from "./LoyaltyPage.graphql"
|
||||
import { AccountPageBreadcrumb } from "./AccountPage.graphql"
|
||||
import { CampaignOverviewPageBreadcrumb } from "./CampaignOverviewPage.graphql"
|
||||
import { CampaignPageBreadcrumb } from "./CampaignPage.graphql"
|
||||
import { CollectionPageBreadcrumb } from "./CollectionPage.graphql"
|
||||
import { ContentPageBreadcrumb } from "./ContentPage.graphql"
|
||||
import { DestinationCityPageBreadcrumb } from "./DestinationCityPage.graphql"
|
||||
import { DestinationCountryPageBreadcrumb } from "./DestinationCountryPage.graphql"
|
||||
import { DestinationOverviewPageBreadcrumb } from "./DestinationOverviewPage.graphql"
|
||||
import { HotelPageBreadcrumb } from "./HotelPage.graphql"
|
||||
import { LoyaltyPageBreadcrumb } from "./LoyaltyPage.graphql"
|
||||
|
||||
export const Breadcrumbs = gql`
|
||||
fragment Breadcrumbs on Breadcrumbs {
|
||||
@@ -73,36 +43,3 @@ export const Breadcrumbs = gql`
|
||||
${HotelPageBreadcrumb}
|
||||
${LoyaltyPageBreadcrumb}
|
||||
`
|
||||
|
||||
export const BreadcrumbsRefs = gql`
|
||||
fragment BreadcrumbsRefs on Breadcrumbs {
|
||||
title
|
||||
parentsConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...AccountPageBreadcrumbRef
|
||||
...CampaignOverviewPageBreadcrumbRef
|
||||
...CampaignPageBreadcrumbRef
|
||||
...CollectionPageBreadcrumbRef
|
||||
...ContentPageBreadcrumbRef
|
||||
...DestinationCityPageBreadcrumbRef
|
||||
...DestinationCountryPageBreadcrumbRef
|
||||
...DestinationOverviewPageBreadcrumbRef
|
||||
...HotelPageBreadcrumbRef
|
||||
...LoyaltyPageBreadcrumbRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
${AccountPageBreadcrumbRef}
|
||||
${CampaignOverviewPageBreadcrumbRef}
|
||||
${CampaignPageBreadcrumbRef}
|
||||
${CollectionPageBreadcrumbRef}
|
||||
${ContentPageBreadcrumbRef}
|
||||
${DestinationCityPageBreadcrumbRef}
|
||||
${DestinationCountryPageBreadcrumbRef}
|
||||
${DestinationOverviewPageBreadcrumbRef}
|
||||
${HotelPageBreadcrumbRef}
|
||||
${LoyaltyPageBreadcrumbRef}
|
||||
`
|
||||
|
||||
@@ -16,17 +16,3 @@ export const CampaignOverviewPageBreadcrumb = gql`
|
||||
}
|
||||
${System}
|
||||
`
|
||||
|
||||
export const CampaignOverviewPageBreadcrumbRef = gql`
|
||||
fragment CampaignOverviewPageBreadcrumbRef on CampaignOverviewPage {
|
||||
web {
|
||||
breadcrumbs {
|
||||
title
|
||||
}
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
${System}
|
||||
`
|
||||
|
||||
@@ -16,17 +16,3 @@ export const CampaignPageBreadcrumb = gql`
|
||||
}
|
||||
${System}
|
||||
`
|
||||
|
||||
export const CampaignPageBreadcrumbRef = gql`
|
||||
fragment CampaignPageBreadcrumbRef on CampaignPage {
|
||||
web {
|
||||
breadcrumbs {
|
||||
title
|
||||
}
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
${System}
|
||||
`
|
||||
|
||||
@@ -16,17 +16,3 @@ export const CollectionPageBreadcrumb = gql`
|
||||
}
|
||||
${System}
|
||||
`
|
||||
|
||||
export const CollectionPageBreadcrumbRef = gql`
|
||||
fragment CollectionPageBreadcrumbRef on CollectionPage {
|
||||
web {
|
||||
breadcrumbs {
|
||||
title
|
||||
}
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
${System}
|
||||
`
|
||||
|
||||
@@ -16,17 +16,3 @@ export const ContentPageBreadcrumb = gql`
|
||||
}
|
||||
${System}
|
||||
`
|
||||
|
||||
export const ContentPageBreadcrumbRef = gql`
|
||||
fragment ContentPageBreadcrumbRef on ContentPage {
|
||||
web {
|
||||
breadcrumbs {
|
||||
title
|
||||
}
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
${System}
|
||||
`
|
||||
|
||||
@@ -16,17 +16,3 @@ export const DestinationCityPageBreadcrumb = gql`
|
||||
}
|
||||
${System}
|
||||
`
|
||||
|
||||
export const DestinationCityPageBreadcrumbRef = gql`
|
||||
fragment DestinationCityPageBreadcrumbRef on DestinationCityPage {
|
||||
web {
|
||||
breadcrumbs {
|
||||
title
|
||||
}
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
${System}
|
||||
`
|
||||
|
||||
@@ -16,17 +16,3 @@ export const DestinationCountryPageBreadcrumb = gql`
|
||||
}
|
||||
${System}
|
||||
`
|
||||
|
||||
export const DestinationCountryPageBreadcrumbRef = gql`
|
||||
fragment DestinationCountryPageBreadcrumbRef on DestinationCountryPage {
|
||||
web {
|
||||
breadcrumbs {
|
||||
title
|
||||
}
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
${System}
|
||||
`
|
||||
|
||||
@@ -16,17 +16,3 @@ export const DestinationOverviewPageBreadcrumb = gql`
|
||||
}
|
||||
${System}
|
||||
`
|
||||
|
||||
export const DestinationOverviewPageBreadcrumbRef = gql`
|
||||
fragment DestinationOverviewPageBreadcrumbRef on DestinationOverviewPage {
|
||||
web {
|
||||
breadcrumbs {
|
||||
title
|
||||
}
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
${System}
|
||||
`
|
||||
|
||||
@@ -16,17 +16,3 @@ export const HotelPageBreadcrumb = gql`
|
||||
}
|
||||
${System}
|
||||
`
|
||||
|
||||
export const HotelPageBreadcrumbRef = gql`
|
||||
fragment HotelPageBreadcrumbRef on HotelPage {
|
||||
web {
|
||||
breadcrumbs {
|
||||
title
|
||||
}
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
${System}
|
||||
`
|
||||
|
||||
@@ -16,17 +16,3 @@ export const LoyaltyPageBreadcrumb = gql`
|
||||
}
|
||||
${System}
|
||||
`
|
||||
|
||||
export const LoyaltyPageBreadcrumbRef = gql`
|
||||
fragment LoyaltyPageBreadcrumbRef on LoyaltyPage {
|
||||
web {
|
||||
breadcrumbs {
|
||||
title
|
||||
}
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
${System}
|
||||
`
|
||||
|
||||
@@ -1,15 +1,5 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import { AccountPageRef } from "../AccountPage/Ref.graphql"
|
||||
import { CampaignOverviewPageRef } from "../CampaignOverviewPage/Ref.graphql"
|
||||
import { CampaignPageRef } from "../CampaignPage/Ref.graphql"
|
||||
import { CollectionPageRef } from "../CollectionPage/Ref.graphql"
|
||||
import { ContentPageRef } from "../ContentPage/Ref.graphql"
|
||||
import { DestinationCityPageRef } from "../DestinationCityPage/Ref.graphql"
|
||||
import { DestinationCountryPageRef } from "../DestinationCountryPage/Ref.graphql"
|
||||
import { DestinationOverviewPageRef } from "../DestinationOverviewPage/Ref.graphql"
|
||||
import { HotelPageRef } from "../HotelPage/Ref.graphql"
|
||||
import { LoyaltyPageRef } from "../LoyaltyPage/Ref.graphql"
|
||||
import { AccountPageLink } from "../PageLink/AccountPageLink.graphql"
|
||||
import { CampaignOverviewPageLink } from "../PageLink/CampaignOverviewPageLink.graphql"
|
||||
import { CampaignPageLink } from "../PageLink/CampaignPageLink.graphql"
|
||||
@@ -22,8 +12,6 @@ import { HotelPageLink } from "../PageLink/HotelPageLink.graphql"
|
||||
import { LoyaltyPageLink } from "../PageLink/LoyaltyPageLink.graphql"
|
||||
import { PromoCampaignPageLink } from "../PageLink/PromoCampaignPageLink.graphql"
|
||||
import { StartPageLink } from "../PageLink/StartPageLink.graphql"
|
||||
import { PromoCampaignPageRef } from "../PromoCampaignPage/Ref.graphql"
|
||||
import { StartPageRef } from "../StartPage/Ref.graphql"
|
||||
|
||||
export const NavigationLinks_CampaignOverviewPage = gql`
|
||||
fragment NavigationLinks_CampaignOverviewPage on CampaignOverviewPageHeader {
|
||||
@@ -63,41 +51,3 @@ export const NavigationLinks_CampaignOverviewPage = gql`
|
||||
${StartPageLink}
|
||||
${PromoCampaignPageLink}
|
||||
`
|
||||
|
||||
export const NavigationLinksRef_CampaignOverviewPage = gql`
|
||||
fragment NavigationLinksRef_CampaignOverviewPage on CampaignOverviewPageHeader {
|
||||
navigation_links {
|
||||
linkConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...AccountPageRef
|
||||
...CampaignOverviewPageRef
|
||||
...CampaignPageRef
|
||||
...CollectionPageRef
|
||||
...ContentPageRef
|
||||
...DestinationCityPageRef
|
||||
...DestinationCountryPageRef
|
||||
...DestinationOverviewPageRef
|
||||
...HotelPageRef
|
||||
...LoyaltyPageRef
|
||||
...StartPageRef
|
||||
...PromoCampaignPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
${AccountPageRef}
|
||||
${CampaignOverviewPageRef}
|
||||
${CampaignPageRef}
|
||||
${CollectionPageRef}
|
||||
${ContentPageRef}
|
||||
${DestinationCityPageRef}
|
||||
${DestinationCountryPageRef}
|
||||
${DestinationOverviewPageRef}
|
||||
${HotelPageRef}
|
||||
${LoyaltyPageRef}
|
||||
${StartPageRef}
|
||||
${PromoCampaignPageRef}
|
||||
`
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import { System } from "../System.graphql"
|
||||
|
||||
export const CampaignOverviewPageRef = gql`
|
||||
fragment CampaignOverviewPageRef on CampaignOverviewPage {
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
${System}
|
||||
`
|
||||
@@ -3,7 +3,6 @@ import { gql } from "graphql-tag"
|
||||
import { HotelListing_CampaignPage } from "../Blocks/HotelListing.graphql"
|
||||
import { Hero_CampaignPage } from "../CampaignPage/Hero.graphql"
|
||||
import { CampaignPageIncludedHotels } from "../CampaignPage/IncludedHotels.graphql"
|
||||
import { System } from "../System.graphql"
|
||||
|
||||
export const TopCampaign = gql`
|
||||
fragment TopCampaign on CampaignPage {
|
||||
@@ -22,15 +21,6 @@ export const TopCampaign = gql`
|
||||
${Hero_CampaignPage}
|
||||
`
|
||||
|
||||
export const TopCampaignRef = gql`
|
||||
fragment TopCampaignRef on CampaignPage {
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
${System}
|
||||
`
|
||||
|
||||
export const TopPromoCampaign = gql`
|
||||
fragment TopPromoCampaign on PromoCampaignPage {
|
||||
url
|
||||
@@ -41,12 +31,3 @@ export const TopPromoCampaign = gql`
|
||||
}
|
||||
}
|
||||
`
|
||||
|
||||
export const TopPromoCampaignRef = gql`
|
||||
fragment TopPromoCampaignRef on PromoCampaignPage {
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
${System}
|
||||
`
|
||||
|
||||
@@ -1,15 +1,5 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import { AccountPageRef } from "../AccountPage/Ref.graphql"
|
||||
import { CampaignOverviewPageRef } from "../CampaignOverviewPage/Ref.graphql"
|
||||
import { CampaignPageRef } from "../CampaignPage/Ref.graphql"
|
||||
import { CollectionPageRef } from "../CollectionPage/Ref.graphql"
|
||||
import { ContentPageRef } from "../ContentPage/Ref.graphql"
|
||||
import { DestinationCityPageRef } from "../DestinationCityPage/Ref.graphql"
|
||||
import { DestinationCountryPageRef } from "../DestinationCountryPage/Ref.graphql"
|
||||
import { DestinationOverviewPageRef } from "../DestinationOverviewPage/Ref.graphql"
|
||||
import { HotelPageRef } from "../HotelPage/Ref.graphql"
|
||||
import { LoyaltyPageRef } from "../LoyaltyPage/Ref.graphql"
|
||||
import { AccountPageLink } from "../PageLink/AccountPageLink.graphql"
|
||||
import { CampaignOverviewPageLink } from "../PageLink/CampaignOverviewPageLink.graphql"
|
||||
import { CampaignPageLink } from "../PageLink/CampaignPageLink.graphql"
|
||||
@@ -22,8 +12,6 @@ import { HotelPageLink } from "../PageLink/HotelPageLink.graphql"
|
||||
import { LoyaltyPageLink } from "../PageLink/LoyaltyPageLink.graphql"
|
||||
import { PromoCampaignPageLink } from "../PageLink/PromoCampaignPageLink.graphql"
|
||||
import { StartPageLink } from "../PageLink/StartPageLink.graphql"
|
||||
import { PromoCampaignPageRef } from "../PromoCampaignPage/Ref.graphql"
|
||||
import { StartPageRef } from "../StartPage/Ref.graphql"
|
||||
|
||||
export const Hero_CampaignPage = gql`
|
||||
fragment Hero_CampaignPage on CampaignPage {
|
||||
@@ -77,43 +65,3 @@ export const Hero_CampaignPage = gql`
|
||||
${StartPageLink}
|
||||
${PromoCampaignPageLink}
|
||||
`
|
||||
|
||||
export const HeroRef_CampaignPage = gql`
|
||||
fragment HeroRef_CampaignPage on CampaignPage {
|
||||
hero {
|
||||
button {
|
||||
linkConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...AccountPageRef
|
||||
...CampaignOverviewPageRef
|
||||
...CampaignPageRef
|
||||
...CollectionPageRef
|
||||
...ContentPageRef
|
||||
...DestinationCityPageRef
|
||||
...DestinationCountryPageRef
|
||||
...DestinationOverviewPageRef
|
||||
...HotelPageRef
|
||||
...LoyaltyPageRef
|
||||
...StartPageRef
|
||||
...PromoCampaignPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
${AccountPageRef}
|
||||
${CampaignOverviewPageRef}
|
||||
${CampaignPageRef}
|
||||
${CollectionPageRef}
|
||||
${ContentPageRef}
|
||||
${DestinationCityPageRef}
|
||||
${DestinationCountryPageRef}
|
||||
${DestinationOverviewPageRef}
|
||||
${HotelPageRef}
|
||||
${LoyaltyPageRef}
|
||||
${StartPageRef}
|
||||
${PromoCampaignPageRef}
|
||||
`
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import { System } from "../System.graphql"
|
||||
|
||||
export const CampaignPageRef = gql`
|
||||
fragment CampaignPageRef on CampaignPage {
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
${System}
|
||||
`
|
||||
@@ -1,15 +1,5 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import { AccountPageRef } from "../AccountPage/Ref.graphql"
|
||||
import { CampaignOverviewPageRef } from "../CampaignOverviewPage/Ref.graphql"
|
||||
import { CampaignPageRef } from "../CampaignPage/Ref.graphql"
|
||||
import { CollectionPageRef } from "../CollectionPage/Ref.graphql"
|
||||
import { ContentPageRef } from "../ContentPage/Ref.graphql"
|
||||
import { DestinationCityPageRef } from "../DestinationCityPage/Ref.graphql"
|
||||
import { DestinationCountryPageRef } from "../DestinationCountryPage/Ref.graphql"
|
||||
import { DestinationOverviewPageRef } from "../DestinationOverviewPage/Ref.graphql"
|
||||
import { HotelPageRef } from "../HotelPage/Ref.graphql"
|
||||
import { LoyaltyPageRef } from "../LoyaltyPage/Ref.graphql"
|
||||
import { AccountPageLink } from "../PageLink/AccountPageLink.graphql"
|
||||
import { CampaignOverviewPageLink } from "../PageLink/CampaignOverviewPageLink.graphql"
|
||||
import { CampaignPageLink } from "../PageLink/CampaignPageLink.graphql"
|
||||
@@ -22,8 +12,6 @@ import { HotelPageLink } from "../PageLink/HotelPageLink.graphql"
|
||||
import { LoyaltyPageLink } from "../PageLink/LoyaltyPageLink.graphql"
|
||||
import { PromoCampaignPageLink } from "../PageLink/PromoCampaignPageLink.graphql"
|
||||
import { StartPageLink } from "../PageLink/StartPageLink.graphql"
|
||||
import { PromoCampaignPageRef } from "../PromoCampaignPage/Ref.graphql"
|
||||
import { StartPageRef } from "../StartPage/Ref.graphql"
|
||||
|
||||
export const NavigationLinks_CollectionPage = gql`
|
||||
fragment NavigationLinks_CollectionPage on CollectionPageHeader {
|
||||
@@ -63,41 +51,3 @@ export const NavigationLinks_CollectionPage = gql`
|
||||
${StartPageLink}
|
||||
${PromoCampaignPageLink}
|
||||
`
|
||||
|
||||
export const NavigationLinksRef_CollectionPage = gql`
|
||||
fragment NavigationLinksRef_CollectionPage on CollectionPageHeader {
|
||||
navigation_links {
|
||||
linkConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...AccountPageRef
|
||||
...CampaignOverviewPageRef
|
||||
...CampaignPageRef
|
||||
...CollectionPageRef
|
||||
...ContentPageRef
|
||||
...DestinationCityPageRef
|
||||
...DestinationCountryPageRef
|
||||
...DestinationOverviewPageRef
|
||||
...HotelPageRef
|
||||
...LoyaltyPageRef
|
||||
...StartPageRef
|
||||
...PromoCampaignPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
${AccountPageRef}
|
||||
${CampaignOverviewPageRef}
|
||||
${CampaignPageRef}
|
||||
${CollectionPageRef}
|
||||
${ContentPageRef}
|
||||
${DestinationCityPageRef}
|
||||
${DestinationCountryPageRef}
|
||||
${DestinationOverviewPageRef}
|
||||
${HotelPageRef}
|
||||
${LoyaltyPageRef}
|
||||
${StartPageRef}
|
||||
${PromoCampaignPageRef}
|
||||
`
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import { System } from "../System.graphql"
|
||||
|
||||
export const CollectionPageRef = gql`
|
||||
fragment CollectionPageRef on CollectionPage {
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
${System}
|
||||
`
|
||||
@@ -1,15 +1,5 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import { AccountPageRef } from "../AccountPage/Ref.graphql"
|
||||
import { CampaignOverviewPageRef } from "../CampaignOverviewPage/Ref.graphql"
|
||||
import { CampaignPageRef } from "../CampaignPage/Ref.graphql"
|
||||
import { CollectionPageRef } from "../CollectionPage/Ref.graphql"
|
||||
import { ContentPageRef } from "../ContentPage/Ref.graphql"
|
||||
import { DestinationCityPageRef } from "../DestinationCityPage/Ref.graphql"
|
||||
import { DestinationCountryPageRef } from "../DestinationCountryPage/Ref.graphql"
|
||||
import { DestinationOverviewPageRef } from "../DestinationOverviewPage/Ref.graphql"
|
||||
import { HotelPageRef } from "../HotelPage/Ref.graphql"
|
||||
import { LoyaltyPageRef } from "../LoyaltyPage/Ref.graphql"
|
||||
import { AccountPageLink } from "../PageLink/AccountPageLink.graphql"
|
||||
import { CampaignOverviewPageLink } from "../PageLink/CampaignOverviewPageLink.graphql"
|
||||
import { CampaignPageLink } from "../PageLink/CampaignPageLink.graphql"
|
||||
@@ -22,8 +12,6 @@ import { HotelPageLink } from "../PageLink/HotelPageLink.graphql"
|
||||
import { LoyaltyPageLink } from "../PageLink/LoyaltyPageLink.graphql"
|
||||
import { PromoCampaignPageLink } from "../PageLink/PromoCampaignPageLink.graphql"
|
||||
import { StartPageLink } from "../PageLink/StartPageLink.graphql"
|
||||
import { PromoCampaignPageRef } from "../PromoCampaignPage/Ref.graphql"
|
||||
import { StartPageRef } from "../StartPage/Ref.graphql"
|
||||
|
||||
export const TopPrimaryButton_CollectionPage = gql`
|
||||
fragment TopPrimaryButton_CollectionPage on CollectionPageHeader {
|
||||
@@ -68,41 +56,3 @@ export const TopPrimaryButton_CollectionPage = gql`
|
||||
${StartPageLink}
|
||||
${PromoCampaignPageLink}
|
||||
`
|
||||
|
||||
export const TopPrimaryButtonRef_CollectionPage = gql`
|
||||
fragment TopPrimaryButtonRef_CollectionPage on CollectionPageHeader {
|
||||
top_primary_button {
|
||||
linkConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...AccountPageRef
|
||||
...CampaignOverviewPageRef
|
||||
...CampaignPageRef
|
||||
...CollectionPageRef
|
||||
...ContentPageRef
|
||||
...DestinationCityPageRef
|
||||
...DestinationCountryPageRef
|
||||
...DestinationOverviewPageRef
|
||||
...HotelPageRef
|
||||
...LoyaltyPageRef
|
||||
...StartPageRef
|
||||
...PromoCampaignPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
${AccountPageRef}
|
||||
${CampaignOverviewPageRef}
|
||||
${CampaignPageRef}
|
||||
${CollectionPageRef}
|
||||
${ContentPageRef}
|
||||
${DestinationCityPageRef}
|
||||
${DestinationCountryPageRef}
|
||||
${DestinationOverviewPageRef}
|
||||
${HotelPageRef}
|
||||
${LoyaltyPageRef}
|
||||
${StartPageRef}
|
||||
${PromoCampaignPageRef}
|
||||
`
|
||||
|
||||
@@ -1,15 +1,5 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import { AccountPageRef } from "../AccountPage/Ref.graphql"
|
||||
import { CampaignOverviewPageRef } from "../CampaignOverviewPage/Ref.graphql"
|
||||
import { CampaignPageRef } from "../CampaignPage/Ref.graphql"
|
||||
import { CollectionPageRef } from "../CollectionPage/Ref.graphql"
|
||||
import { ContentPageRef } from "../ContentPage/Ref.graphql"
|
||||
import { DestinationCityPageRef } from "../DestinationCityPage/Ref.graphql"
|
||||
import { DestinationCountryPageRef } from "../DestinationCountryPage/Ref.graphql"
|
||||
import { DestinationOverviewPageRef } from "../DestinationOverviewPage/Ref.graphql"
|
||||
import { HotelPageRef } from "../HotelPage/Ref.graphql"
|
||||
import { LoyaltyPageRef } from "../LoyaltyPage/Ref.graphql"
|
||||
import { AccountPageLink } from "../PageLink/AccountPageLink.graphql"
|
||||
import { CampaignOverviewPageLink } from "../PageLink/CampaignOverviewPageLink.graphql"
|
||||
import { CampaignPageLink } from "../PageLink/CampaignPageLink.graphql"
|
||||
@@ -22,8 +12,6 @@ import { HotelPageLink } from "../PageLink/HotelPageLink.graphql"
|
||||
import { LoyaltyPageLink } from "../PageLink/LoyaltyPageLink.graphql"
|
||||
import { PromoCampaignPageLink } from "../PageLink/PromoCampaignPageLink.graphql"
|
||||
import { StartPageLink } from "../PageLink/StartPageLink.graphql"
|
||||
import { PromoCampaignPageRef } from "../PromoCampaignPage/Ref.graphql"
|
||||
import { StartPageRef } from "../StartPage/Ref.graphql"
|
||||
|
||||
export const NavigationLinks_ContentPage = gql`
|
||||
fragment NavigationLinks_ContentPage on ContentPageHeader {
|
||||
@@ -63,41 +51,3 @@ export const NavigationLinks_ContentPage = gql`
|
||||
${StartPageLink}
|
||||
${PromoCampaignPageLink}
|
||||
`
|
||||
|
||||
export const NavigationLinksRef_ContentPage = gql`
|
||||
fragment NavigationLinksRef_ContentPage on ContentPageHeader {
|
||||
navigation_links {
|
||||
linkConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...AccountPageRef
|
||||
...CampaignOverviewPageRef
|
||||
...CampaignPageRef
|
||||
...CollectionPageRef
|
||||
...ContentPageRef
|
||||
...DestinationCityPageRef
|
||||
...DestinationCountryPageRef
|
||||
...DestinationOverviewPageRef
|
||||
...HotelPageRef
|
||||
...LoyaltyPageRef
|
||||
...StartPageRef
|
||||
...PromoCampaignPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
${AccountPageRef}
|
||||
${CampaignOverviewPageRef}
|
||||
${CampaignPageRef}
|
||||
${CollectionPageRef}
|
||||
${ContentPageRef}
|
||||
${DestinationCityPageRef}
|
||||
${DestinationCountryPageRef}
|
||||
${DestinationOverviewPageRef}
|
||||
${HotelPageRef}
|
||||
${LoyaltyPageRef}
|
||||
${StartPageRef}
|
||||
${PromoCampaignPageRef}
|
||||
`
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import { System } from "../System.graphql"
|
||||
|
||||
export const ContentPageRef = gql`
|
||||
fragment ContentPageRef on ContentPage {
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
${System}
|
||||
`
|
||||
@@ -1,15 +1,5 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import { AccountPageRef } from "../AccountPage/Ref.graphql"
|
||||
import { CampaignOverviewPageRef } from "../CampaignOverviewPage/Ref.graphql"
|
||||
import { CampaignPageRef } from "../CampaignPage/Ref.graphql"
|
||||
import { CollectionPageRef } from "../CollectionPage/Ref.graphql"
|
||||
import { ContentPageRef } from "../ContentPage/Ref.graphql"
|
||||
import { DestinationCityPageRef } from "../DestinationCityPage/Ref.graphql"
|
||||
import { DestinationCountryPageRef } from "../DestinationCountryPage/Ref.graphql"
|
||||
import { DestinationOverviewPageRef } from "../DestinationOverviewPage/Ref.graphql"
|
||||
import { HotelPageRef } from "../HotelPage/Ref.graphql"
|
||||
import { LoyaltyPageRef } from "../LoyaltyPage/Ref.graphql"
|
||||
import { AccountPageLink } from "../PageLink/AccountPageLink.graphql"
|
||||
import { CampaignOverviewPageLink } from "../PageLink/CampaignOverviewPageLink.graphql"
|
||||
import { CampaignPageLink } from "../PageLink/CampaignPageLink.graphql"
|
||||
@@ -22,8 +12,6 @@ import { HotelPageLink } from "../PageLink/HotelPageLink.graphql"
|
||||
import { LoyaltyPageLink } from "../PageLink/LoyaltyPageLink.graphql"
|
||||
import { PromoCampaignPageLink } from "../PageLink/PromoCampaignPageLink.graphql"
|
||||
import { StartPageLink } from "../PageLink/StartPageLink.graphql"
|
||||
import { PromoCampaignPageRef } from "../PromoCampaignPage/Ref.graphql"
|
||||
import { StartPageRef } from "../StartPage/Ref.graphql"
|
||||
|
||||
export const TopPrimaryButton_ContentPage = gql`
|
||||
fragment TopPrimaryButton_ContentPage on ContentPageHeader {
|
||||
@@ -68,41 +56,3 @@ export const TopPrimaryButton_ContentPage = gql`
|
||||
${StartPageLink}
|
||||
${PromoCampaignPageLink}
|
||||
`
|
||||
|
||||
export const TopPrimaryButtonRef_ContentPage = gql`
|
||||
fragment TopPrimaryButtonRef_ContentPage on ContentPageHeader {
|
||||
top_primary_button {
|
||||
linkConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...AccountPageRef
|
||||
...CampaignOverviewPageRef
|
||||
...CampaignPageRef
|
||||
...CollectionPageRef
|
||||
...ContentPageRef
|
||||
...DestinationCityPageRef
|
||||
...DestinationCountryPageRef
|
||||
...DestinationOverviewPageRef
|
||||
...HotelPageRef
|
||||
...LoyaltyPageRef
|
||||
...StartPageRef
|
||||
...PromoCampaignPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
${AccountPageRef}
|
||||
${CampaignOverviewPageRef}
|
||||
${CampaignPageRef}
|
||||
${CollectionPageRef}
|
||||
${ContentPageRef}
|
||||
${DestinationCityPageRef}
|
||||
${DestinationCountryPageRef}
|
||||
${DestinationOverviewPageRef}
|
||||
${HotelPageRef}
|
||||
${LoyaltyPageRef}
|
||||
${StartPageRef}
|
||||
${PromoCampaignPageRef}
|
||||
`
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import { System } from "../System.graphql"
|
||||
|
||||
export const DestinationCityPageRef = gql`
|
||||
fragment DestinationCityPageRef on DestinationCityPage {
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
${System}
|
||||
`
|
||||
@@ -1,12 +0,0 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import { System } from "../System.graphql"
|
||||
|
||||
export const DestinationCountryPageRef = gql`
|
||||
fragment DestinationCountryPageRef on DestinationCountryPage {
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
${System}
|
||||
`
|
||||
@@ -1,14 +1,8 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import {
|
||||
Accordion_DestinationFilterBlocks,
|
||||
Accordion_DestinationFilterBlocksRefs,
|
||||
} from "./Blocks/Accordion.graphql"
|
||||
import {
|
||||
Content_DestinationFilterBlocks,
|
||||
Content_DestinationFilterBlocksRefs,
|
||||
} from "./Blocks/Content.graphql"
|
||||
import { HotelFilter, HotelFilterRef } from "./HotelFilter.graphql"
|
||||
import { Accordion_DestinationFilterBlocks } from "./Blocks/Accordion.graphql"
|
||||
import { Content_DestinationFilterBlocks } from "./Blocks/Content.graphql"
|
||||
import { HotelFilter } from "./HotelFilter.graphql"
|
||||
|
||||
export const DestinationFilter = gql`
|
||||
fragment DestinationFilter on DestinationFilter {
|
||||
@@ -31,23 +25,3 @@ export const DestinationFilter = gql`
|
||||
${Accordion_DestinationFilterBlocks}
|
||||
${Content_DestinationFilterBlocks}
|
||||
`
|
||||
|
||||
export const DestinationFilterRef = gql`
|
||||
fragment DestinationFilterRef on DestinationFilter {
|
||||
blocks {
|
||||
__typename
|
||||
...Accordion_DestinationFilterBlocksRefs
|
||||
...Content_DestinationFilterBlocksRefs
|
||||
}
|
||||
filterConnection {
|
||||
edges {
|
||||
node {
|
||||
...HotelFilterRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
${Accordion_DestinationFilterBlocksRefs}
|
||||
${Content_DestinationFilterBlocksRefs}
|
||||
${HotelFilterRef}
|
||||
`
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import { System } from "../System.graphql"
|
||||
|
||||
export const DestinationOverviewPageRef = gql`
|
||||
fragment DestinationOverviewPageRef on DestinationOverviewPage {
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
${System}
|
||||
`
|
||||
@@ -1,7 +1,5 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import { System } from "./System.graphql"
|
||||
|
||||
export const HotelFilter = gql`
|
||||
fragment HotelFilter on HotelFilter {
|
||||
title
|
||||
@@ -11,12 +9,3 @@ export const HotelFilter = gql`
|
||||
sort_order
|
||||
}
|
||||
`
|
||||
|
||||
export const HotelFilterRef = gql`
|
||||
fragment HotelFilterRef on HotelFilter {
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
${System}
|
||||
`
|
||||
|
||||
@@ -13,12 +13,3 @@ export const ImageContainer = gql`
|
||||
}
|
||||
${System}
|
||||
`
|
||||
|
||||
export const ImageContainerRef = gql`
|
||||
fragment ImageContainerRef on ImageContainer {
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
${System}
|
||||
`
|
||||
|
||||
@@ -1,18 +1,7 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import { System } from "./System.graphql"
|
||||
|
||||
export const Jotform = gql`
|
||||
fragment Jotform on Jotform {
|
||||
form_id
|
||||
}
|
||||
`
|
||||
|
||||
export const JotformRef = gql`
|
||||
fragment JotformRef on Jotform {
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
${System}
|
||||
`
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import { System } from "../System.graphql"
|
||||
|
||||
export const LoyaltyPageRef = gql`
|
||||
fragment LoyaltyPageRef on LoyaltyPage {
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
${System}
|
||||
`
|
||||
@@ -1,12 +0,0 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import { System } from "../System.graphql"
|
||||
|
||||
export const PromoCampaignPageRef = gql`
|
||||
fragment PromoCampaignPageRef on PromoCampaignPage {
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
${System}
|
||||
`
|
||||
@@ -1,16 +1,6 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import { AccountPageRef } from "../AccountPage/Ref.graphql"
|
||||
import { CampaignOverviewPageRef } from "../CampaignOverviewPage/Ref.graphql"
|
||||
import { CampaignPageRef } from "../CampaignPage/Ref.graphql"
|
||||
import { CollectionPageRef } from "../CollectionPage/Ref.graphql"
|
||||
import { ContentPageRef } from "../ContentPage/Ref.graphql"
|
||||
import { DestinationCityPageRef } from "../DestinationCityPage/Ref.graphql"
|
||||
import { DestinationCountryPageRef } from "../DestinationCountryPage/Ref.graphql"
|
||||
import { DestinationOverviewPageRef } from "../DestinationOverviewPage/Ref.graphql"
|
||||
import { HotelPageRef } from "../HotelPage/Ref.graphql"
|
||||
import { ImageContainer, ImageContainerRef } from "../ImageContainer.graphql"
|
||||
import { LoyaltyPageRef } from "../LoyaltyPage/Ref.graphql"
|
||||
import { ImageContainer } from "../ImageContainer.graphql"
|
||||
import { AccountPageLink } from "../PageLink/AccountPageLink.graphql"
|
||||
import { CampaignOverviewPageLink } from "../PageLink/CampaignOverviewPageLink.graphql"
|
||||
import { CampaignPageLink } from "../PageLink/CampaignPageLink.graphql"
|
||||
@@ -23,9 +13,7 @@ import { HotelPageLink } from "../PageLink/HotelPageLink.graphql"
|
||||
import { LoyaltyPageLink } from "../PageLink/LoyaltyPageLink.graphql"
|
||||
import { PromoCampaignPageLink } from "../PageLink/PromoCampaignPageLink.graphql"
|
||||
import { StartPageLink } from "../PageLink/StartPageLink.graphql"
|
||||
import { PromoCampaignPageRef } from "../PromoCampaignPage/Ref.graphql"
|
||||
import { StartPageRef } from "../StartPage/Ref.graphql"
|
||||
import { SysAsset, SysAssetRef } from "../SysAsset.graphql"
|
||||
import { SysAsset } from "../SysAsset.graphql"
|
||||
|
||||
export const ContentSidebar_ContentPage = gql`
|
||||
fragment ContentSidebar_ContentPage on ContentPageSidebarContent {
|
||||
@@ -72,50 +60,6 @@ export const ContentSidebar_ContentPage = gql`
|
||||
${PromoCampaignPageLink}
|
||||
`
|
||||
|
||||
export const ContentSidebar_ContentPageRefs = gql`
|
||||
fragment ContentSidebar_ContentPageRefs on ContentPageSidebarContent {
|
||||
content {
|
||||
content {
|
||||
embedded_itemsConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...SysAssetRef
|
||||
...ImageContainerRef
|
||||
...AccountPageRef
|
||||
...CampaignOverviewPageRef
|
||||
...CampaignPageRef
|
||||
...CollectionPageRef
|
||||
...ContentPageRef
|
||||
...DestinationCityPageRef
|
||||
...DestinationCountryPageRef
|
||||
...DestinationOverviewPageRef
|
||||
...HotelPageRef
|
||||
...LoyaltyPageRef
|
||||
...StartPageRef
|
||||
...PromoCampaignPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
${SysAssetRef}
|
||||
${ImageContainerRef}
|
||||
${AccountPageRef}
|
||||
${CampaignOverviewPageRef}
|
||||
${CampaignPageRef}
|
||||
${CollectionPageRef}
|
||||
${ContentPageRef}
|
||||
${DestinationCityPageRef}
|
||||
${DestinationCountryPageRef}
|
||||
${DestinationOverviewPageRef}
|
||||
${HotelPageRef}
|
||||
${LoyaltyPageRef}
|
||||
${StartPageRef}
|
||||
${PromoCampaignPageRef}
|
||||
`
|
||||
|
||||
export const ContentSidebar_LoyaltyPage = gql`
|
||||
fragment ContentSidebar_LoyaltyPage on LoyaltyPageSidebarContent {
|
||||
content {
|
||||
@@ -160,47 +104,3 @@ export const ContentSidebar_LoyaltyPage = gql`
|
||||
${StartPageLink}
|
||||
${PromoCampaignPageLink}
|
||||
`
|
||||
|
||||
export const ContentSidebar_LoyaltyPageRefs = gql`
|
||||
fragment ContentSidebar_LoyaltyPageRefs on LoyaltyPageSidebarContent {
|
||||
content {
|
||||
content {
|
||||
embedded_itemsConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...SysAssetRef
|
||||
...ImageContainerRef
|
||||
...AccountPageRef
|
||||
...CampaignOverviewPageRef
|
||||
...CampaignPageRef
|
||||
...CollectionPageRef
|
||||
...ContentPageRef
|
||||
...DestinationCityPageRef
|
||||
...DestinationCountryPageRef
|
||||
...DestinationOverviewPageRef
|
||||
...HotelPageRef
|
||||
...LoyaltyPageRef
|
||||
...StartPageRef
|
||||
...PromoCampaignPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
${SysAssetRef}
|
||||
${ImageContainerRef}
|
||||
${AccountPageRef}
|
||||
${CampaignOverviewPageRef}
|
||||
${CampaignPageRef}
|
||||
${CollectionPageRef}
|
||||
${ContentPageRef}
|
||||
${DestinationCityPageRef}
|
||||
${DestinationCountryPageRef}
|
||||
${DestinationOverviewPageRef}
|
||||
${HotelPageRef}
|
||||
${LoyaltyPageRef}
|
||||
${StartPageRef}
|
||||
${PromoCampaignPageRef}
|
||||
`
|
||||
|
||||
@@ -1,15 +1,5 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import { AccountPageRef } from "../AccountPage/Ref.graphql"
|
||||
import { CampaignOverviewPageRef } from "../CampaignOverviewPage/Ref.graphql"
|
||||
import { CampaignPageRef } from "../CampaignPage/Ref.graphql"
|
||||
import { CollectionPageRef } from "../CollectionPage/Ref.graphql"
|
||||
import { ContentPageRef } from "../ContentPage/Ref.graphql"
|
||||
import { DestinationCityPageRef } from "../DestinationCityPage/Ref.graphql"
|
||||
import { DestinationCountryPageRef } from "../DestinationCountryPage/Ref.graphql"
|
||||
import { DestinationOverviewPageRef } from "../DestinationOverviewPage/Ref.graphql"
|
||||
import { HotelPageRef } from "../HotelPage/Ref.graphql"
|
||||
import { LoyaltyPageRef } from "../LoyaltyPage/Ref.graphql"
|
||||
import { AccountPageLink } from "../PageLink/AccountPageLink.graphql"
|
||||
import { CampaignOverviewPageLink } from "../PageLink/CampaignOverviewPageLink.graphql"
|
||||
import { CampaignPageLink } from "../PageLink/CampaignPageLink.graphql"
|
||||
@@ -22,8 +12,6 @@ import { HotelPageLink } from "../PageLink/HotelPageLink.graphql"
|
||||
import { LoyaltyPageLink } from "../PageLink/LoyaltyPageLink.graphql"
|
||||
import { PromoCampaignPageLink } from "../PageLink/PromoCampaignPageLink.graphql"
|
||||
import { StartPageLink } from "../PageLink/StartPageLink.graphql"
|
||||
import { PromoCampaignPageRef } from "../PromoCampaignPage/Ref.graphql"
|
||||
import { StartPageRef } from "../StartPage/Ref.graphql"
|
||||
|
||||
const ContactFields = gql`
|
||||
fragment ContactFields on ContactFields {
|
||||
@@ -90,46 +78,6 @@ export const JoinLoyaltyContactSidebar_ContentPage = gql`
|
||||
${PromoCampaignPageLink}
|
||||
`
|
||||
|
||||
export const JoinLoyaltyContactSidebar_ContentPageRefs = gql`
|
||||
fragment JoinLoyaltyContactSidebar_ContentPageRefs on ContentPageSidebarJoinLoyaltyContact {
|
||||
join_loyalty_contact {
|
||||
button {
|
||||
linkConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...AccountPageRef
|
||||
...CampaignOverviewPageRef
|
||||
...CampaignPageRef
|
||||
...CollectionPageRef
|
||||
...ContentPageRef
|
||||
...DestinationCityPageRef
|
||||
...DestinationCountryPageRef
|
||||
...DestinationOverviewPageRef
|
||||
...HotelPageRef
|
||||
...LoyaltyPageRef
|
||||
...StartPageRef
|
||||
...PromoCampaignPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
${AccountPageRef}
|
||||
${CampaignOverviewPageRef}
|
||||
${CampaignPageRef}
|
||||
${CollectionPageRef}
|
||||
${ContentPageRef}
|
||||
${DestinationCityPageRef}
|
||||
${DestinationCountryPageRef}
|
||||
${DestinationOverviewPageRef}
|
||||
${HotelPageRef}
|
||||
${LoyaltyPageRef}
|
||||
${StartPageRef}
|
||||
${PromoCampaignPageRef}
|
||||
`
|
||||
|
||||
export const JoinLoyaltyContactSidebar_LoyaltyPage = gql`
|
||||
fragment JoinLoyaltyContactSidebar_LoyaltyPage on LoyaltyPageSidebarJoinLoyaltyContact {
|
||||
join_loyalty_contact {
|
||||
@@ -186,43 +134,3 @@ export const JoinLoyaltyContactSidebar_LoyaltyPage = gql`
|
||||
${StartPageLink}
|
||||
${PromoCampaignPageLink}
|
||||
`
|
||||
|
||||
export const JoinLoyaltyContactSidebar_LoyaltyPageRefs = gql`
|
||||
fragment JoinLoyaltyContactSidebar_LoyaltyPageRefs on LoyaltyPageSidebarJoinLoyaltyContact {
|
||||
join_loyalty_contact {
|
||||
button {
|
||||
linkConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...AccountPageRef
|
||||
...CampaignOverviewPageRef
|
||||
...CampaignPageRef
|
||||
...CollectionPageRef
|
||||
...ContentPageRef
|
||||
...DestinationCityPageRef
|
||||
...DestinationCountryPageRef
|
||||
...DestinationOverviewPageRef
|
||||
...HotelPageRef
|
||||
...LoyaltyPageRef
|
||||
...StartPageRef
|
||||
...PromoCampaignPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
${AccountPageRef}
|
||||
${CampaignOverviewPageRef}
|
||||
${CampaignPageRef}
|
||||
${CollectionPageRef}
|
||||
${ContentPageRef}
|
||||
${DestinationCityPageRef}
|
||||
${DestinationCountryPageRef}
|
||||
${DestinationOverviewPageRef}
|
||||
${HotelPageRef}
|
||||
${LoyaltyPageRef}
|
||||
${StartPageRef}
|
||||
${PromoCampaignPageRef}
|
||||
`
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import { Shortcuts, ShortcutsRefs } from "../Blocks/Shortcuts.graphql"
|
||||
import { Shortcuts } from "../Blocks/Shortcuts.graphql"
|
||||
|
||||
export const QuickLinksSidebar_ContentPage = gql`
|
||||
fragment QuickLinksSidebar_ContentPage on ContentPageSidebarShortcuts {
|
||||
@@ -11,13 +11,3 @@ export const QuickLinksSidebar_ContentPage = gql`
|
||||
}
|
||||
${Shortcuts}
|
||||
`
|
||||
|
||||
export const QuickLinksSidebar_ContentPageRefs = gql`
|
||||
fragment QuickLinksSidebar_ContentPageRefs on ContentPageSidebarShortcuts {
|
||||
shortcuts {
|
||||
__typename
|
||||
...ShortcutsRefs
|
||||
}
|
||||
}
|
||||
${ShortcutsRefs}
|
||||
`
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import { CardBlock } from "../Blocks/Card.graphql"
|
||||
import { CardBlockRef } from "../Blocks/Refs/Card.graphql"
|
||||
|
||||
export const ScriptedCardSidebar_ContentPage = gql`
|
||||
fragment ScriptedCardSidebar_ContentPage on ContentPageSidebarScriptedCard {
|
||||
@@ -20,19 +19,3 @@ export const ScriptedCardSidebar_ContentPage = gql`
|
||||
}
|
||||
${CardBlock}
|
||||
`
|
||||
|
||||
export const ScriptedCardSidebar_ContentPageRefs = gql`
|
||||
fragment ScriptedCardSidebar_ContentPageRefs on ContentPageSidebarScriptedCard {
|
||||
scripted_card {
|
||||
scripted_cardConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...CardBlockRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
${CardBlockRef}
|
||||
`
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import { TeaserCardBlockRef } from "../Blocks/Refs/TeaserCard.graphql"
|
||||
import { TeaserCardBlock } from "../Blocks/TeaserCard.graphql"
|
||||
|
||||
export const TeaserCardSidebar_ContentPage = gql`
|
||||
@@ -20,19 +19,3 @@ export const TeaserCardSidebar_ContentPage = gql`
|
||||
}
|
||||
${TeaserCardBlock}
|
||||
`
|
||||
|
||||
export const TeaserCardSidebar_ContentPageRefs = gql`
|
||||
fragment TeaserCardSidebar_ContentPageRefs on ContentPageSidebarTeaserCard {
|
||||
teaser_card {
|
||||
teaser_cardConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...TeaserCardBlockRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
${TeaserCardBlockRef}
|
||||
`
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import { System } from "../System.graphql"
|
||||
|
||||
export const StartPageRef = gql`
|
||||
fragment StartPageRef on StartPage {
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
${System}
|
||||
`
|
||||
@@ -20,14 +20,3 @@ export const SysAsset = gql`
|
||||
}
|
||||
${AssetSystem}
|
||||
`
|
||||
|
||||
export const SysAssetRef = gql`
|
||||
fragment SysAssetRef on SysAsset {
|
||||
system {
|
||||
...AssetSystem
|
||||
}
|
||||
url
|
||||
permanent_url
|
||||
}
|
||||
${AssetSystem}
|
||||
`
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import { AssetSystem } from "./System.graphql"
|
||||
|
||||
export const Video = gql`
|
||||
fragment Video on Video {
|
||||
sourceConnection {
|
||||
@@ -30,19 +28,3 @@ export const Video = gql`
|
||||
}
|
||||
}
|
||||
`
|
||||
|
||||
export const VideoRef = gql`
|
||||
fragment VideoRef on Video {
|
||||
sourceConnection {
|
||||
edges {
|
||||
node {
|
||||
system {
|
||||
...AssetSystem
|
||||
}
|
||||
url
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
${AssetSystem}
|
||||
`
|
||||
|
||||
@@ -1,17 +1,8 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import {
|
||||
Accordion_AccountPage,
|
||||
Accordion_AccountPageRefs,
|
||||
} from "../../Fragments/Blocks/Accordion.graphql"
|
||||
import {
|
||||
DynamicContent_AccountPage,
|
||||
DynamicContent_AccountPageRefs,
|
||||
} from "../../Fragments/Blocks/DynamicContent.graphql"
|
||||
import {
|
||||
Shortcuts_AccountPage,
|
||||
Shortcuts_AccountPageRefs,
|
||||
} from "../../Fragments/Blocks/Shortcuts.graphql"
|
||||
import { Accordion_AccountPage } from "../../Fragments/Blocks/Accordion.graphql"
|
||||
import { DynamicContent_AccountPage } from "../../Fragments/Blocks/DynamicContent.graphql"
|
||||
import { Shortcuts_AccountPage } from "../../Fragments/Blocks/Shortcuts.graphql"
|
||||
import { TextContent_AccountPage } from "../../Fragments/Blocks/TextContent.graphql"
|
||||
import { System } from "../../Fragments/System.graphql"
|
||||
|
||||
@@ -48,26 +39,6 @@ export const GetAccountPage = gql`
|
||||
${TextContent_AccountPage}
|
||||
`
|
||||
|
||||
export const GetAccountPageRefs = gql`
|
||||
query GetAccountPageRefs($locale: String!, $uid: String!) {
|
||||
account_page(locale: $locale, uid: $uid) {
|
||||
content {
|
||||
__typename
|
||||
...Accordion_AccountPageRefs
|
||||
...DynamicContent_AccountPageRefs
|
||||
...Shortcuts_AccountPageRefs
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
}
|
||||
${System}
|
||||
${Accordion_AccountPageRefs}
|
||||
${DynamicContent_AccountPageRefs}
|
||||
${Shortcuts_AccountPageRefs}
|
||||
`
|
||||
|
||||
export const GetDaDeEnUrlsAccountPage = gql`
|
||||
query GetDaDeEnUrlsAccountPage($uid: String!) {
|
||||
de: account_page(locale: "de", uid: $uid) {
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import {
|
||||
Breadcrumbs,
|
||||
BreadcrumbsRefs,
|
||||
} from "../../Fragments/Breadcrumbs/Breadcrumbs.graphql"
|
||||
import { Breadcrumbs } from "../../Fragments/Breadcrumbs/Breadcrumbs.graphql"
|
||||
import { System } from "../../Fragments/System.graphql"
|
||||
|
||||
export const GetMyPagesBreadcrumbs = gql`
|
||||
@@ -23,20 +20,3 @@ export const GetMyPagesBreadcrumbs = gql`
|
||||
${Breadcrumbs}
|
||||
${System}
|
||||
`
|
||||
|
||||
export const GetMyPagesBreadcrumbsRefs = gql`
|
||||
query GetMyPagesBreadcrumbsRefs($locale: String!, $uid: String!) {
|
||||
account_page(locale: $locale, uid: $uid) {
|
||||
web {
|
||||
breadcrumbs {
|
||||
...BreadcrumbsRefs
|
||||
}
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
}
|
||||
${BreadcrumbsRefs}
|
||||
${System}
|
||||
`
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import {
|
||||
Breadcrumbs,
|
||||
BreadcrumbsRefs,
|
||||
} from "../../Fragments/Breadcrumbs/Breadcrumbs.graphql"
|
||||
import { Breadcrumbs } from "../../Fragments/Breadcrumbs/Breadcrumbs.graphql"
|
||||
import { System } from "../../Fragments/System.graphql"
|
||||
|
||||
export const GetCampaignOverviewPageBreadcrumbs = gql`
|
||||
@@ -23,23 +20,3 @@ export const GetCampaignOverviewPageBreadcrumbs = gql`
|
||||
${Breadcrumbs}
|
||||
${System}
|
||||
`
|
||||
|
||||
export const GetCampaignOverviewPageBreadcrumbsRefs = gql`
|
||||
query GetCampaignOverviewPageBreadcrumbsRefs(
|
||||
$locale: String!
|
||||
$uid: String!
|
||||
) {
|
||||
campaign_overview_page(locale: $locale, uid: $uid) {
|
||||
web {
|
||||
breadcrumbs {
|
||||
...BreadcrumbsRefs
|
||||
}
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
}
|
||||
${BreadcrumbsRefs}
|
||||
${System}
|
||||
`
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import {
|
||||
Breadcrumbs,
|
||||
BreadcrumbsRefs,
|
||||
} from "../../Fragments/Breadcrumbs/Breadcrumbs.graphql"
|
||||
import { Breadcrumbs } from "../../Fragments/Breadcrumbs/Breadcrumbs.graphql"
|
||||
import { System } from "../../Fragments/System.graphql"
|
||||
|
||||
export const GetCampaignPageBreadcrumbs = gql`
|
||||
@@ -23,20 +20,3 @@ export const GetCampaignPageBreadcrumbs = gql`
|
||||
${Breadcrumbs}
|
||||
${System}
|
||||
`
|
||||
|
||||
export const GetCampaignPageBreadcrumbsRefs = gql`
|
||||
query GetCampaignPageBreadcrumbsRefs($locale: String!, $uid: String!) {
|
||||
campaign_page(locale: $locale, uid: $uid) {
|
||||
web {
|
||||
breadcrumbs {
|
||||
...BreadcrumbsRefs
|
||||
}
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
}
|
||||
${BreadcrumbsRefs}
|
||||
${System}
|
||||
`
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import {
|
||||
Breadcrumbs,
|
||||
BreadcrumbsRefs,
|
||||
} from "../../Fragments/Breadcrumbs/Breadcrumbs.graphql"
|
||||
import { Breadcrumbs } from "../../Fragments/Breadcrumbs/Breadcrumbs.graphql"
|
||||
import { System } from "../../Fragments/System.graphql"
|
||||
|
||||
export const GetCollectionPageBreadcrumbs = gql`
|
||||
@@ -23,20 +20,3 @@ export const GetCollectionPageBreadcrumbs = gql`
|
||||
${Breadcrumbs}
|
||||
${System}
|
||||
`
|
||||
|
||||
export const GetCollectionPageBreadcrumbsRefs = gql`
|
||||
query GetCollectionPageBreadcrumbsRefs($locale: String!, $uid: String!) {
|
||||
collection_page(locale: $locale, uid: $uid) {
|
||||
web {
|
||||
breadcrumbs {
|
||||
...BreadcrumbsRefs
|
||||
}
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
}
|
||||
${BreadcrumbsRefs}
|
||||
${System}
|
||||
`
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import {
|
||||
Breadcrumbs,
|
||||
BreadcrumbsRefs,
|
||||
} from "../../Fragments/Breadcrumbs/Breadcrumbs.graphql"
|
||||
import { Breadcrumbs } from "../../Fragments/Breadcrumbs/Breadcrumbs.graphql"
|
||||
import { System } from "../../Fragments/System.graphql"
|
||||
|
||||
export const GetContentPageBreadcrumbs = gql`
|
||||
@@ -23,20 +20,3 @@ export const GetContentPageBreadcrumbs = gql`
|
||||
${Breadcrumbs}
|
||||
${System}
|
||||
`
|
||||
|
||||
export const GetContentPageBreadcrumbsRefs = gql`
|
||||
query GetContentPageBreadcrumbsRefs($locale: String!, $uid: String!) {
|
||||
content_page(locale: $locale, uid: $uid) {
|
||||
web {
|
||||
breadcrumbs {
|
||||
...BreadcrumbsRefs
|
||||
}
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
}
|
||||
${BreadcrumbsRefs}
|
||||
${System}
|
||||
`
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import {
|
||||
Breadcrumbs,
|
||||
BreadcrumbsRefs,
|
||||
} from "../../Fragments/Breadcrumbs/Breadcrumbs.graphql"
|
||||
import { Breadcrumbs } from "../../Fragments/Breadcrumbs/Breadcrumbs.graphql"
|
||||
import { System } from "../../Fragments/System.graphql"
|
||||
|
||||
export const GetDestinationCityPageBreadcrumbs = gql`
|
||||
@@ -23,20 +20,3 @@ export const GetDestinationCityPageBreadcrumbs = gql`
|
||||
${Breadcrumbs}
|
||||
${System}
|
||||
`
|
||||
|
||||
export const GetDestinationCityPageBreadcrumbsRefs = gql`
|
||||
query GetDestinationCityPageBreadcrumbsRefs($locale: String!, $uid: String!) {
|
||||
destination_city_page(locale: $locale, uid: $uid) {
|
||||
web {
|
||||
breadcrumbs {
|
||||
...BreadcrumbsRefs
|
||||
}
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
}
|
||||
${BreadcrumbsRefs}
|
||||
${System}
|
||||
`
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import {
|
||||
Breadcrumbs,
|
||||
BreadcrumbsRefs,
|
||||
} from "../../Fragments/Breadcrumbs/Breadcrumbs.graphql"
|
||||
import { Breadcrumbs } from "../../Fragments/Breadcrumbs/Breadcrumbs.graphql"
|
||||
import { System } from "../../Fragments/System.graphql"
|
||||
|
||||
export const GetDestinationCountryPageBreadcrumbs = gql`
|
||||
@@ -23,23 +20,3 @@ export const GetDestinationCountryPageBreadcrumbs = gql`
|
||||
${Breadcrumbs}
|
||||
${System}
|
||||
`
|
||||
|
||||
export const GetDestinationCountryPageBreadcrumbsRefs = gql`
|
||||
query GetDestinationCountryPageBreadcrumbsRefs(
|
||||
$locale: String!
|
||||
$uid: String!
|
||||
) {
|
||||
destination_country_page(locale: $locale, uid: $uid) {
|
||||
web {
|
||||
breadcrumbs {
|
||||
...BreadcrumbsRefs
|
||||
}
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
}
|
||||
${BreadcrumbsRefs}
|
||||
${System}
|
||||
`
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import {
|
||||
Breadcrumbs,
|
||||
BreadcrumbsRefs,
|
||||
} from "../../Fragments/Breadcrumbs/Breadcrumbs.graphql"
|
||||
import { Breadcrumbs } from "../../Fragments/Breadcrumbs/Breadcrumbs.graphql"
|
||||
import { System } from "../../Fragments/System.graphql"
|
||||
|
||||
export const GetDestinationOverviewPageBreadcrumbs = gql`
|
||||
@@ -23,23 +20,3 @@ export const GetDestinationOverviewPageBreadcrumbs = gql`
|
||||
${Breadcrumbs}
|
||||
${System}
|
||||
`
|
||||
|
||||
export const GetDestinationOverviewPageBreadcrumbsRefs = gql`
|
||||
query GetDestinationOverviewPageBreadcrumbsRefs(
|
||||
$locale: String!
|
||||
$uid: String!
|
||||
) {
|
||||
destination_overview_page(locale: $locale, uid: $uid) {
|
||||
web {
|
||||
breadcrumbs {
|
||||
...BreadcrumbsRefs
|
||||
}
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
}
|
||||
${BreadcrumbsRefs}
|
||||
${System}
|
||||
`
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import {
|
||||
Breadcrumbs,
|
||||
BreadcrumbsRefs,
|
||||
} from "../../Fragments/Breadcrumbs/Breadcrumbs.graphql"
|
||||
import { Breadcrumbs } from "../../Fragments/Breadcrumbs/Breadcrumbs.graphql"
|
||||
import { System } from "../../Fragments/System.graphql"
|
||||
|
||||
export const GetHotelPageBreadcrumbs = gql`
|
||||
@@ -23,20 +20,3 @@ export const GetHotelPageBreadcrumbs = gql`
|
||||
${Breadcrumbs}
|
||||
${System}
|
||||
`
|
||||
|
||||
export const GetHotelPageBreadcrumbsRefs = gql`
|
||||
query GetHotelPageBreadcrumbsRefs($locale: String!, $uid: String!) {
|
||||
hotel_page(locale: $locale, uid: $uid) {
|
||||
web {
|
||||
breadcrumbs {
|
||||
...BreadcrumbsRefs
|
||||
}
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
}
|
||||
${BreadcrumbsRefs}
|
||||
${System}
|
||||
`
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import {
|
||||
Breadcrumbs,
|
||||
BreadcrumbsRefs,
|
||||
} from "../../Fragments/Breadcrumbs/Breadcrumbs.graphql"
|
||||
import { Breadcrumbs } from "../../Fragments/Breadcrumbs/Breadcrumbs.graphql"
|
||||
import { System } from "../../Fragments/System.graphql"
|
||||
|
||||
export const GetLoyaltyPageBreadcrumbs = gql`
|
||||
@@ -23,20 +20,3 @@ export const GetLoyaltyPageBreadcrumbs = gql`
|
||||
${Breadcrumbs}
|
||||
${System}
|
||||
`
|
||||
|
||||
export const GetLoyaltyPageBreadcrumbsRefs = gql`
|
||||
query GetLoyaltyPageBreadcrumbsRefs($locale: String!, $uid: String!) {
|
||||
loyalty_page(locale: $locale, uid: $uid) {
|
||||
web {
|
||||
breadcrumbs {
|
||||
...BreadcrumbsRefs
|
||||
}
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
}
|
||||
${BreadcrumbsRefs}
|
||||
${System}
|
||||
`
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import {
|
||||
Breadcrumbs,
|
||||
BreadcrumbsRefs,
|
||||
} from "../../Fragments/Breadcrumbs/Breadcrumbs.graphql"
|
||||
import { Breadcrumbs } from "../../Fragments/Breadcrumbs/Breadcrumbs.graphql"
|
||||
import { System } from "../../Fragments/System.graphql"
|
||||
|
||||
export const GetPromoCampaignPageBreadcrumbs = gql`
|
||||
@@ -23,20 +20,3 @@ export const GetPromoCampaignPageBreadcrumbs = gql`
|
||||
${Breadcrumbs}
|
||||
${System}
|
||||
`
|
||||
|
||||
export const GetPromoCampaignPageBreadcrumbsRefs = gql`
|
||||
query GetPromoCampaignPageBreadcrumbsRefs($locale: String!, $uid: String!) {
|
||||
promo_campaign_page(locale: $locale, uid: $uid) {
|
||||
web {
|
||||
breadcrumbs {
|
||||
...BreadcrumbsRefs
|
||||
}
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
}
|
||||
${BreadcrumbsRefs}
|
||||
${System}
|
||||
`
|
||||
|
||||
@@ -1,23 +1,12 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import {
|
||||
AllCampaigns,
|
||||
AllCampaignsRefs,
|
||||
} from "../../Fragments/Blocks/AllCampaigns.graphql"
|
||||
import {
|
||||
CarouselCards_CampaignOverviewPage,
|
||||
CarouselCards_CampaignOverviewPageRefs,
|
||||
} from "../../Fragments/Blocks/CarouselCards.graphql"
|
||||
import { AllCampaigns } from "../../Fragments/Blocks/AllCampaigns.graphql"
|
||||
import { CarouselCards_CampaignOverviewPage } from "../../Fragments/Blocks/CarouselCards.graphql"
|
||||
import { HotelListing_CampaignOverviewPage } from "../../Fragments/Blocks/HotelListing.graphql"
|
||||
import {
|
||||
NavigationLinks_CampaignOverviewPage,
|
||||
NavigationLinksRef_CampaignOverviewPage,
|
||||
} from "../../Fragments/CampaignOverviewPage/NavigationLinks.graphql"
|
||||
import { NavigationLinks_CampaignOverviewPage } from "../../Fragments/CampaignOverviewPage/NavigationLinks.graphql"
|
||||
import {
|
||||
TopCampaign,
|
||||
TopCampaignRef,
|
||||
TopPromoCampaign,
|
||||
TopPromoCampaignRef,
|
||||
} from "../../Fragments/CampaignOverviewPage/TopCampaign.graphql"
|
||||
import { System } from "../../Fragments/System.graphql"
|
||||
|
||||
@@ -67,40 +56,6 @@ export const GetCampaignOverviewPage = gql`
|
||||
${HotelListing_CampaignOverviewPage}
|
||||
`
|
||||
|
||||
export const GetCampaignOverviewPageRefs = gql`
|
||||
query GetCampaignOverviewPageRefs($locale: String!, $uid: String!) {
|
||||
campaign_overview_page(locale: $locale, uid: $uid) {
|
||||
header {
|
||||
...NavigationLinksRef_CampaignOverviewPage
|
||||
}
|
||||
top_campaign_block {
|
||||
campaignConnection {
|
||||
edges {
|
||||
node {
|
||||
...TopCampaignRef
|
||||
...TopPromoCampaignRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
blocks {
|
||||
__typename
|
||||
...CarouselCards_CampaignOverviewPageRefs
|
||||
...AllCampaignsRefs
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
}
|
||||
${System}
|
||||
${NavigationLinksRef_CampaignOverviewPage}
|
||||
${TopCampaignRef}
|
||||
${TopPromoCampaignRef}
|
||||
${CarouselCards_CampaignOverviewPageRefs}
|
||||
${AllCampaignsRefs}
|
||||
`
|
||||
|
||||
export const GetDaDeEnUrlsCampaignOverviewPage = gql`
|
||||
query GetDaDeEnUrlsCampaignOverviewPage($uid: String!) {
|
||||
de: campaign_overview_page(locale: "de", uid: $uid) {
|
||||
|
||||
@@ -1,19 +1,10 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import {
|
||||
Accordion_CampaignPage,
|
||||
Accordion_CampaignPageRefs,
|
||||
} from "../../Fragments/Blocks/Accordion.graphql"
|
||||
import {
|
||||
CarouselCards_CampaignPage,
|
||||
CarouselCards_CampaignPageRefs,
|
||||
} from "../../Fragments/Blocks/CarouselCards.graphql"
|
||||
import { Accordion_CampaignPage } from "../../Fragments/Blocks/Accordion.graphql"
|
||||
import { CarouselCards_CampaignPage } from "../../Fragments/Blocks/CarouselCards.graphql"
|
||||
import { Essentials_CampaignPage } from "../../Fragments/Blocks/Essentials.graphql"
|
||||
import { HotelListing_CampaignPage } from "../../Fragments/Blocks/HotelListing.graphql"
|
||||
import {
|
||||
Hero_CampaignPage,
|
||||
HeroRef_CampaignPage,
|
||||
} from "../../Fragments/CampaignPage/Hero.graphql"
|
||||
import { Hero_CampaignPage } from "../../Fragments/CampaignPage/Hero.graphql"
|
||||
import { CampaignPageIncludedHotels } from "../../Fragments/CampaignPage/IncludedHotels.graphql"
|
||||
import { System } from "../../Fragments/System.graphql"
|
||||
|
||||
@@ -61,26 +52,6 @@ export const GetCampaignPage = gql`
|
||||
${Hero_CampaignPage}
|
||||
`
|
||||
|
||||
export const GetCampaignPageRefs = gql`
|
||||
query GetCampaignPageRefs($locale: String!, $uid: String!) {
|
||||
campaign_page(locale: $locale, uid: $uid) {
|
||||
blocks {
|
||||
__typename
|
||||
...CarouselCards_CampaignPageRefs
|
||||
...Accordion_CampaignPageRefs
|
||||
}
|
||||
...HeroRef_CampaignPage
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
}
|
||||
${System}
|
||||
${CarouselCards_CampaignPageRefs}
|
||||
${Accordion_CampaignPageRefs}
|
||||
${HeroRef_CampaignPage}
|
||||
`
|
||||
|
||||
export const GetDaDeEnUrlsCampaignPage = gql`
|
||||
query GetDaDeEnUrlsCampaignPage($uid: String!) {
|
||||
de: campaign_page(locale: "de", uid: $uid) {
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import { Hero_CampaignPage } from "../../Fragments/CampaignPage/Hero.graphql"
|
||||
import { CampaignPageRef } from "../../Fragments/CampaignPage/Ref.graphql"
|
||||
import { System } from "../../Fragments/System.graphql"
|
||||
|
||||
export const GetCampaignPagesByHotelUid = gql`
|
||||
@@ -47,35 +46,3 @@ export const GetCampaignPagesByHotelUid = gql`
|
||||
${System}
|
||||
${Hero_CampaignPage}
|
||||
`
|
||||
|
||||
export const GetCampaignPagesByHotelUidRefs = gql`
|
||||
query GetCampaignPagesByHotelUidRefs(
|
||||
$locale: String!
|
||||
$hotelPageUid: String!
|
||||
$today: DateTime!
|
||||
) {
|
||||
all_campaign_page(
|
||||
where: {
|
||||
OR: [
|
||||
{
|
||||
included_hotels: { list_1: { hotel_page: { uid: $hotelPageUid } } }
|
||||
}
|
||||
{
|
||||
included_hotels: { list_2: { hotel_page: { uid: $hotelPageUid } } }
|
||||
}
|
||||
]
|
||||
AND: [
|
||||
{ OR: [{ startdate: null }, { startdate_lte: $today }] }
|
||||
{ OR: [{ enddate: null }, { enddate_gte: $today }] }
|
||||
]
|
||||
}
|
||||
locale: $locale
|
||||
limit: 100
|
||||
) {
|
||||
items {
|
||||
...CampaignPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
${CampaignPageRef}
|
||||
`
|
||||
|
||||
@@ -1,35 +1,14 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import {
|
||||
CardsGrid_CollectionPage,
|
||||
CardsGrid_CollectionPageRefs,
|
||||
} from "../../Fragments/Blocks/CardsGrid.graphql"
|
||||
import {
|
||||
DynamicContent_CollectionPage,
|
||||
DynamicContent_CollectionPageRefs,
|
||||
} from "../../Fragments/Blocks/DynamicContent.graphql"
|
||||
import {
|
||||
Shortcuts_CollectionPage,
|
||||
Shortcuts_CollectionPageRefs,
|
||||
} from "../../Fragments/Blocks/Shortcuts.graphql"
|
||||
import {
|
||||
UspGrid_CollectionPage,
|
||||
UspGrid_CollectionPageRefs,
|
||||
} from "../../Fragments/Blocks/UspGrid.graphql"
|
||||
import {
|
||||
VideoCard_CollectionPage,
|
||||
VideoCard_CollectionPageRefs,
|
||||
} from "../../Fragments/Blocks/VideoCard.graphql"
|
||||
import {
|
||||
NavigationLinks_CollectionPage,
|
||||
NavigationLinksRef_CollectionPage,
|
||||
} from "../../Fragments/CollectionPage/NavigationLinks.graphql"
|
||||
import {
|
||||
TopPrimaryButton_CollectionPage,
|
||||
TopPrimaryButtonRef_CollectionPage,
|
||||
} from "../../Fragments/CollectionPage/TopPrimaryButton.graphql"
|
||||
import { CardsGrid_CollectionPage } from "../../Fragments/Blocks/CardsGrid.graphql"
|
||||
import { DynamicContent_CollectionPage } from "../../Fragments/Blocks/DynamicContent.graphql"
|
||||
import { Shortcuts_CollectionPage } from "../../Fragments/Blocks/Shortcuts.graphql"
|
||||
import { UspGrid_CollectionPage } from "../../Fragments/Blocks/UspGrid.graphql"
|
||||
import { VideoCard_CollectionPage } from "../../Fragments/Blocks/VideoCard.graphql"
|
||||
import { NavigationLinks_CollectionPage } from "../../Fragments/CollectionPage/NavigationLinks.graphql"
|
||||
import { TopPrimaryButton_CollectionPage } from "../../Fragments/CollectionPage/TopPrimaryButton.graphql"
|
||||
import { System } from "../../Fragments/System.graphql"
|
||||
import { Video, VideoRef } from "../../Fragments/Video.graphql"
|
||||
import { Video } from "../../Fragments/Video.graphql"
|
||||
|
||||
export const GetCollectionPage = gql`
|
||||
query GetCollectionPage($locale: String!, $uid: String!) {
|
||||
@@ -78,40 +57,6 @@ export const GetCollectionPage = gql`
|
||||
${Video}
|
||||
`
|
||||
|
||||
export const GetCollectionPageRefs = gql`
|
||||
query GetCollectionPageRefs($locale: String!, $uid: String!) {
|
||||
collection_page(locale: $locale, uid: $uid) {
|
||||
hero_video {
|
||||
...VideoRef
|
||||
}
|
||||
header {
|
||||
...TopPrimaryButtonRef_CollectionPage
|
||||
...NavigationLinksRef_CollectionPage
|
||||
}
|
||||
blocks {
|
||||
__typename
|
||||
...CardsGrid_CollectionPageRefs
|
||||
...Shortcuts_CollectionPageRefs
|
||||
...UspGrid_CollectionPageRefs
|
||||
...DynamicContent_CollectionPageRefs
|
||||
...VideoCard_CollectionPageRefs
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
}
|
||||
${System}
|
||||
${TopPrimaryButtonRef_CollectionPage}
|
||||
${NavigationLinksRef_CollectionPage}
|
||||
${CardsGrid_CollectionPageRefs}
|
||||
${Shortcuts_CollectionPageRefs}
|
||||
${UspGrid_CollectionPageRefs}
|
||||
${DynamicContent_CollectionPageRefs}
|
||||
${VideoRef}
|
||||
${VideoCard_CollectionPageRefs}
|
||||
`
|
||||
|
||||
export const GetDaDeEnUrlsCollectionPage = gql`
|
||||
query GetDaDeEnUrlsCollectionPage($uid: String!) {
|
||||
de: collection_page(locale: "de", uid: $uid) {
|
||||
|
||||
@@ -1,78 +1,27 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import {
|
||||
Accordion_ContentPage,
|
||||
Accordion_ContentPageRefs,
|
||||
} from "../../Fragments/Blocks/Accordion.graphql"
|
||||
import {
|
||||
CardsGrid_ContentPage,
|
||||
CardsGrid_ContentPageRefs,
|
||||
} from "../../Fragments/Blocks/CardsGrid.graphql"
|
||||
import {
|
||||
Content_ContentPage,
|
||||
Content_ContentPageRefs,
|
||||
} from "../../Fragments/Blocks/Content.graphql"
|
||||
import {
|
||||
DynamicContent_ContentPage,
|
||||
DynamicContent_ContentPageRefs,
|
||||
} from "../../Fragments/Blocks/DynamicContent.graphql"
|
||||
import { Accordion_ContentPage } from "../../Fragments/Blocks/Accordion.graphql"
|
||||
import { CardsGrid_ContentPage } from "../../Fragments/Blocks/CardsGrid.graphql"
|
||||
import { Content_ContentPage } from "../../Fragments/Blocks/Content.graphql"
|
||||
import { DynamicContent_ContentPage } from "../../Fragments/Blocks/DynamicContent.graphql"
|
||||
import { HotelListing_ContentPage } from "../../Fragments/Blocks/HotelListing.graphql"
|
||||
import {
|
||||
Jotform_ContentPage,
|
||||
Jotform_ContentPageRefs,
|
||||
} from "../../Fragments/Blocks/Jotform.graphql"
|
||||
import {
|
||||
Shortcuts_ContentPage,
|
||||
Shortcuts_ContentPageRefs,
|
||||
} from "../../Fragments/Blocks/Shortcuts.graphql"
|
||||
import { Jotform_ContentPage } from "../../Fragments/Blocks/Jotform.graphql"
|
||||
import { Shortcuts_ContentPage } from "../../Fragments/Blocks/Shortcuts.graphql"
|
||||
import { Table_ContentPage } from "../../Fragments/Blocks/Table.graphql"
|
||||
import {
|
||||
TextCols_ContentPage,
|
||||
TextCols_ContentPageRef,
|
||||
} from "../../Fragments/Blocks/TextCols.graphql"
|
||||
import {
|
||||
UspGrid_ContentPage,
|
||||
UspGrid_ContentPageRefs,
|
||||
} from "../../Fragments/Blocks/UspGrid.graphql"
|
||||
import {
|
||||
Video_ContentPage,
|
||||
Video_ContentPageRefs,
|
||||
} from "../../Fragments/Blocks/Video.graphql"
|
||||
import {
|
||||
VideoCard_ContentPage,
|
||||
VideoCard_ContentPageRefs,
|
||||
} from "../../Fragments/Blocks/VideoCard.graphql"
|
||||
import {
|
||||
NavigationLinks_ContentPage,
|
||||
NavigationLinksRef_ContentPage,
|
||||
} from "../../Fragments/ContentPage/NavigationLinks.graphql"
|
||||
import {
|
||||
TopPrimaryButton_ContentPage,
|
||||
TopPrimaryButtonRef_ContentPage,
|
||||
} from "../../Fragments/ContentPage/TopPrimaryButton.graphql"
|
||||
import {
|
||||
ContentSidebar_ContentPage,
|
||||
ContentSidebar_ContentPageRefs,
|
||||
} from "../../Fragments/Sidebar/Content.graphql"
|
||||
import { TextCols_ContentPage } from "../../Fragments/Blocks/TextCols.graphql"
|
||||
import { UspGrid_ContentPage } from "../../Fragments/Blocks/UspGrid.graphql"
|
||||
import { Video_ContentPage } from "../../Fragments/Blocks/Video.graphql"
|
||||
import { VideoCard_ContentPage } from "../../Fragments/Blocks/VideoCard.graphql"
|
||||
import { NavigationLinks_ContentPage } from "../../Fragments/ContentPage/NavigationLinks.graphql"
|
||||
import { TopPrimaryButton_ContentPage } from "../../Fragments/ContentPage/TopPrimaryButton.graphql"
|
||||
import { ContentSidebar_ContentPage } from "../../Fragments/Sidebar/Content.graphql"
|
||||
import { DynamicContentSidebar_ContentPage } from "../../Fragments/Sidebar/DynamicContent.graphql"
|
||||
import {
|
||||
JoinLoyaltyContactSidebar_ContentPage,
|
||||
JoinLoyaltyContactSidebar_ContentPageRefs,
|
||||
} from "../../Fragments/Sidebar/JoinLoyaltyContact.graphql"
|
||||
import {
|
||||
QuickLinksSidebar_ContentPage,
|
||||
QuickLinksSidebar_ContentPageRefs,
|
||||
} from "../../Fragments/Sidebar/QuickLinks.graphql"
|
||||
import {
|
||||
ScriptedCardSidebar_ContentPage,
|
||||
ScriptedCardSidebar_ContentPageRefs,
|
||||
} from "../../Fragments/Sidebar/ScriptedCard.graphql"
|
||||
import {
|
||||
TeaserCardSidebar_ContentPage,
|
||||
TeaserCardSidebar_ContentPageRefs,
|
||||
} from "../../Fragments/Sidebar/TeaserCard.graphql"
|
||||
import { JoinLoyaltyContactSidebar_ContentPage } from "../../Fragments/Sidebar/JoinLoyaltyContact.graphql"
|
||||
import { QuickLinksSidebar_ContentPage } from "../../Fragments/Sidebar/QuickLinks.graphql"
|
||||
import { ScriptedCardSidebar_ContentPage } from "../../Fragments/Sidebar/ScriptedCard.graphql"
|
||||
import { TeaserCardSidebar_ContentPage } from "../../Fragments/Sidebar/TeaserCard.graphql"
|
||||
import { System } from "../../Fragments/System.graphql"
|
||||
import { Video, VideoRef } from "../../Fragments/Video.graphql"
|
||||
import { Video } from "../../Fragments/Video.graphql"
|
||||
|
||||
export const GetContentPage = gql`
|
||||
query GetContentPage($locale: String!, $uid: String!) {
|
||||
@@ -173,73 +122,6 @@ export const GetContentPageBlocksBatch2 = gql`
|
||||
${UspGrid_ContentPage}
|
||||
`
|
||||
|
||||
export const GetContentPageRefs = gql`
|
||||
query GetContentPageRefs($locale: String!, $uid: String!) {
|
||||
content_page(locale: $locale, uid: $uid) {
|
||||
hero_video {
|
||||
...VideoRef
|
||||
}
|
||||
header {
|
||||
dynamic_content {
|
||||
component
|
||||
}
|
||||
...NavigationLinksRef_ContentPage
|
||||
...TopPrimaryButtonRef_ContentPage
|
||||
}
|
||||
sidebar {
|
||||
__typename
|
||||
...ContentSidebar_ContentPageRefs
|
||||
...JoinLoyaltyContactSidebar_ContentPageRefs
|
||||
...ScriptedCardSidebar_ContentPageRefs
|
||||
...TeaserCardSidebar_ContentPageRefs
|
||||
...QuickLinksSidebar_ContentPageRefs
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
}
|
||||
${System}
|
||||
${NavigationLinksRef_ContentPage}
|
||||
${TopPrimaryButtonRef_ContentPage}
|
||||
${ContentSidebar_ContentPageRefs}
|
||||
${JoinLoyaltyContactSidebar_ContentPageRefs}
|
||||
${ScriptedCardSidebar_ContentPageRefs}
|
||||
${TeaserCardSidebar_ContentPageRefs}
|
||||
${QuickLinksSidebar_ContentPageRefs}
|
||||
${VideoRef}
|
||||
`
|
||||
|
||||
export const GetContentPageBlocksRefs = gql`
|
||||
query GetContentPageBlocksRefs($locale: String!, $uid: String!) {
|
||||
content_page(locale: $locale, uid: $uid) {
|
||||
blocks {
|
||||
__typename
|
||||
...Accordion_ContentPageRefs
|
||||
...CardsGrid_ContentPageRefs
|
||||
...Content_ContentPageRefs
|
||||
...DynamicContent_ContentPageRefs
|
||||
...Shortcuts_ContentPageRefs
|
||||
...TextCols_ContentPageRef
|
||||
...UspGrid_ContentPageRefs
|
||||
...Jotform_ContentPageRefs
|
||||
...VideoCard_ContentPageRefs
|
||||
...Video_ContentPageRefs
|
||||
}
|
||||
}
|
||||
}
|
||||
${Accordion_ContentPageRefs}
|
||||
${CardsGrid_ContentPageRefs}
|
||||
${Content_ContentPageRefs}
|
||||
${DynamicContent_ContentPageRefs}
|
||||
${Shortcuts_ContentPageRefs}
|
||||
${TextCols_ContentPageRef}
|
||||
${UspGrid_ContentPageRefs}
|
||||
${Jotform_ContentPageRefs}
|
||||
${VideoCard_ContentPageRefs}
|
||||
${Video_ContentPageRefs}
|
||||
`
|
||||
|
||||
export const GetDaDeEnUrlsContentPage = gql`
|
||||
query GetDaDeEnUrlsContentPage($uid: String!) {
|
||||
de: content_page(locale: "de", uid: $uid) {
|
||||
|
||||
@@ -1,27 +1,8 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import { AccountPageRef } from "../../Fragments/AccountPage/Ref.graphql"
|
||||
import {
|
||||
Accordion_DestinationCityPage,
|
||||
Accordion_DestinationCityPageRefs,
|
||||
} from "../../Fragments/Blocks/Accordion.graphql"
|
||||
import {
|
||||
Content_DestinationCityPage,
|
||||
Content_DestinationCityPageRefs,
|
||||
} from "../../Fragments/Blocks/Content.graphql"
|
||||
import { CampaignOverviewPageRef } from "../../Fragments/CampaignOverviewPage/Ref.graphql"
|
||||
import { CampaignPageRef } from "../../Fragments/CampaignPage/Ref.graphql"
|
||||
import { CollectionPageRef } from "../../Fragments/CollectionPage/Ref.graphql"
|
||||
import { ContentPageRef } from "../../Fragments/ContentPage/Ref.graphql"
|
||||
import { DestinationCityPageRef } from "../../Fragments/DestinationCityPage/Ref.graphql"
|
||||
import { DestinationCountryPageRef } from "../../Fragments/DestinationCountryPage/Ref.graphql"
|
||||
import {
|
||||
DestinationFilter,
|
||||
DestinationFilterRef,
|
||||
} from "../../Fragments/DestinationFilter.graphql"
|
||||
import { DestinationOverviewPageRef } from "../../Fragments/DestinationOverviewPage/Ref.graphql"
|
||||
import { HotelPageRef } from "../../Fragments/HotelPage/Ref.graphql"
|
||||
import { LoyaltyPageRef } from "../../Fragments/LoyaltyPage/Ref.graphql"
|
||||
import { Accordion_DestinationCityPage } from "../../Fragments/Blocks/Accordion.graphql"
|
||||
import { Content_DestinationCityPage } from "../../Fragments/Blocks/Content.graphql"
|
||||
import { DestinationFilter } from "../../Fragments/DestinationFilter.graphql"
|
||||
import { AccountPageLink } from "../../Fragments/PageLink/AccountPageLink.graphql"
|
||||
import { CampaignOverviewPageLink } from "../../Fragments/PageLink/CampaignOverviewPageLink.graphql"
|
||||
import { CampaignPageLink } from "../../Fragments/PageLink/CampaignPageLink.graphql"
|
||||
@@ -34,8 +15,6 @@ import { HotelPageLink } from "../../Fragments/PageLink/HotelPageLink.graphql"
|
||||
import { LoyaltyPageLink } from "../../Fragments/PageLink/LoyaltyPageLink.graphql"
|
||||
import { PromoCampaignPageLink } from "../../Fragments/PageLink/PromoCampaignPageLink.graphql"
|
||||
import { StartPageLink } from "../../Fragments/PageLink/StartPageLink.graphql"
|
||||
import { PromoCampaignPageRef } from "../../Fragments/PromoCampaignPage/Ref.graphql"
|
||||
import { StartPageRef } from "../../Fragments/StartPage/Ref.graphql"
|
||||
import { System } from "../../Fragments/System.graphql"
|
||||
|
||||
export const GetDestinationCityPage = gql`
|
||||
@@ -126,76 +105,6 @@ export const GetDestinationCityPage = gql`
|
||||
${PromoCampaignPageLink}
|
||||
`
|
||||
|
||||
export const GetDestinationCityPageRefs = gql`
|
||||
query GetDestinationCityPageRefs($locale: String!, $uid: String!) {
|
||||
destination_city_page(locale: $locale, uid: $uid) {
|
||||
destination_settings {
|
||||
city_denmark
|
||||
city_finland
|
||||
city_germany
|
||||
city_norway
|
||||
city_poland
|
||||
city_sweden
|
||||
location {
|
||||
longitude
|
||||
latitude
|
||||
default_zoom
|
||||
}
|
||||
}
|
||||
sidepeek_content {
|
||||
content {
|
||||
embedded_itemsConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...AccountPageRef
|
||||
...CampaignOverviewPageRef
|
||||
...CampaignPageRef
|
||||
...CollectionPageRef
|
||||
...ContentPageRef
|
||||
...DestinationCityPageRef
|
||||
...DestinationCountryPageRef
|
||||
...DestinationOverviewPageRef
|
||||
...HotelPageRef
|
||||
...LoyaltyPageRef
|
||||
...StartPageRef
|
||||
...PromoCampaignPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
blocks {
|
||||
__typename
|
||||
...Accordion_DestinationCityPageRefs
|
||||
...Content_DestinationCityPageRefs
|
||||
}
|
||||
seo_filters {
|
||||
...DestinationFilterRef
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
}
|
||||
${System}
|
||||
${Accordion_DestinationCityPageRefs}
|
||||
${Content_DestinationCityPageRefs}
|
||||
${DestinationFilterRef}
|
||||
${AccountPageRef}
|
||||
${CampaignOverviewPageRef}
|
||||
${CampaignPageRef}
|
||||
${CollectionPageRef}
|
||||
${ContentPageRef}
|
||||
${DestinationCityPageRef}
|
||||
${DestinationCountryPageRef}
|
||||
${DestinationOverviewPageRef}
|
||||
${HotelPageRef}
|
||||
${LoyaltyPageRef}
|
||||
${StartPageRef}
|
||||
${PromoCampaignPageRef}
|
||||
`
|
||||
|
||||
export const GetDaDeEnUrlsDestinationCityPage = gql`
|
||||
query GetDaDeEnUrlsDestinationCityPage($uid: String!) {
|
||||
de: destination_city_page(locale: "de", uid: $uid) {
|
||||
|
||||
@@ -1,27 +1,8 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import { AccountPageRef } from "../../Fragments/AccountPage/Ref.graphql"
|
||||
import {
|
||||
Accordion_DestinationCountryPage,
|
||||
Accordion_DestinationCountryPageRefs,
|
||||
} from "../../Fragments/Blocks/Accordion.graphql"
|
||||
import {
|
||||
Content_DestinationCountryPage,
|
||||
Content_DestinationCountryPageRefs,
|
||||
} from "../../Fragments/Blocks/Content.graphql"
|
||||
import { CampaignOverviewPageRef } from "../../Fragments/CampaignOverviewPage/Ref.graphql"
|
||||
import { CampaignPageRef } from "../../Fragments/CampaignPage/Ref.graphql"
|
||||
import { CollectionPageRef } from "../../Fragments/CollectionPage/Ref.graphql"
|
||||
import { ContentPageRef } from "../../Fragments/ContentPage/Ref.graphql"
|
||||
import { DestinationCityPageRef } from "../../Fragments/DestinationCityPage/Ref.graphql"
|
||||
import { DestinationCountryPageRef } from "../../Fragments/DestinationCountryPage/Ref.graphql"
|
||||
import {
|
||||
DestinationFilter,
|
||||
DestinationFilterRef,
|
||||
} from "../../Fragments/DestinationFilter.graphql"
|
||||
import { DestinationOverviewPageRef } from "../../Fragments/DestinationOverviewPage/Ref.graphql"
|
||||
import { HotelPageRef } from "../../Fragments/HotelPage/Ref.graphql"
|
||||
import { LoyaltyPageRef } from "../../Fragments/LoyaltyPage/Ref.graphql"
|
||||
import { Accordion_DestinationCountryPage } from "../../Fragments/Blocks/Accordion.graphql"
|
||||
import { Content_DestinationCountryPage } from "../../Fragments/Blocks/Content.graphql"
|
||||
import { DestinationFilter } from "../../Fragments/DestinationFilter.graphql"
|
||||
import { AccountPageLink } from "../../Fragments/PageLink/AccountPageLink.graphql"
|
||||
import { CampaignOverviewPageLink } from "../../Fragments/PageLink/CampaignOverviewPageLink.graphql"
|
||||
import { CampaignPageLink } from "../../Fragments/PageLink/CampaignPageLink.graphql"
|
||||
@@ -34,8 +15,6 @@ import { HotelPageLink } from "../../Fragments/PageLink/HotelPageLink.graphql"
|
||||
import { LoyaltyPageLink } from "../../Fragments/PageLink/LoyaltyPageLink.graphql"
|
||||
import { PromoCampaignPageLink } from "../../Fragments/PageLink/PromoCampaignPageLink.graphql"
|
||||
import { StartPageLink } from "../../Fragments/PageLink/StartPageLink.graphql"
|
||||
import { PromoCampaignPageRef } from "../../Fragments/PromoCampaignPage/Ref.graphql"
|
||||
import { StartPageRef } from "../../Fragments/StartPage/Ref.graphql"
|
||||
import { System } from "../../Fragments/System.graphql"
|
||||
|
||||
export const GetDestinationCountryPage = gql`
|
||||
@@ -121,63 +100,6 @@ export const GetDestinationCountryPage = gql`
|
||||
${Content_DestinationCountryPage}
|
||||
`
|
||||
|
||||
export const GetDestinationCountryPageRefs = gql`
|
||||
query GetDestinationCountryPageRefs($locale: String!, $uid: String!) {
|
||||
destination_country_page(locale: $locale, uid: $uid) {
|
||||
sidepeek_content {
|
||||
content {
|
||||
embedded_itemsConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...AccountPageRef
|
||||
...CampaignOverviewPageRef
|
||||
...CampaignPageRef
|
||||
...CollectionPageRef
|
||||
...ContentPageRef
|
||||
...DestinationCityPageRef
|
||||
...DestinationCountryPageRef
|
||||
...DestinationOverviewPageRef
|
||||
...HotelPageRef
|
||||
...LoyaltyPageRef
|
||||
...StartPageRef
|
||||
...PromoCampaignPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
blocks {
|
||||
__typename
|
||||
...Accordion_DestinationCountryPageRefs
|
||||
...Content_DestinationCountryPageRefs
|
||||
}
|
||||
seo_filters {
|
||||
...DestinationFilterRef
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
}
|
||||
${System}
|
||||
${AccountPageRef}
|
||||
${CampaignOverviewPageRef}
|
||||
${CampaignPageRef}
|
||||
${CollectionPageRef}
|
||||
${ContentPageRef}
|
||||
${DestinationCityPageRef}
|
||||
${DestinationCountryPageRef}
|
||||
${DestinationOverviewPageRef}
|
||||
${HotelPageRef}
|
||||
${LoyaltyPageRef}
|
||||
${StartPageRef}
|
||||
${PromoCampaignPageRef}
|
||||
${Accordion_DestinationCountryPageRefs}
|
||||
${Content_DestinationCountryPageRefs}
|
||||
${DestinationFilterRef}
|
||||
`
|
||||
|
||||
export const GetDaDeEnUrlsDestinationCountryPage = gql`
|
||||
query GetDaDeEnUrlsDestinationCountryPage($uid: String!) {
|
||||
de: destination_country_page(locale: "de", uid: $uid) {
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import {
|
||||
CardGallery_DestinationOverviewPage,
|
||||
CardGallery_DestinationOverviewPageRefs,
|
||||
} from "../../Fragments/Blocks/CardGallery.graphql"
|
||||
import { CardGallery_DestinationOverviewPage } from "../../Fragments/Blocks/CardGallery.graphql"
|
||||
import { System } from "../../Fragments/System.graphql"
|
||||
|
||||
export const GetDestinationOverviewPage = gql`
|
||||
@@ -34,22 +31,6 @@ export const GetDestinationOverviewPage = gql`
|
||||
${CardGallery_DestinationOverviewPage}
|
||||
`
|
||||
|
||||
export const GetDestinationOverviewPageRefs = gql`
|
||||
query GetDestinationOverviewPageRefs($locale: String!, $uid: String!) {
|
||||
destination_overview_page(locale: $locale, uid: $uid) {
|
||||
blocks {
|
||||
__typename
|
||||
...CardGallery_DestinationOverviewPageRefs
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
}
|
||||
${System}
|
||||
${CardGallery_DestinationOverviewPageRefs}
|
||||
`
|
||||
|
||||
export const GetDaDeEnUrlsDestinationOverviewPage = gql`
|
||||
query GetDaDeEnUrlsDestinationOverviewPage($uid: String!) {
|
||||
de: destination_overview_page(locale: "de", uid: $uid) {
|
||||
|
||||
@@ -1,17 +1,7 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import { AccountPageRef } from "../Fragments/AccountPage/Ref.graphql"
|
||||
import { CampaignOverviewPageRef } from "../Fragments/CampaignOverviewPage/Ref.graphql"
|
||||
import { CampaignPageRef } from "../Fragments/CampaignPage/Ref.graphql"
|
||||
import { CollectionPageRef } from "../Fragments/CollectionPage/Ref.graphql"
|
||||
import { ContentPageRef } from "../Fragments/ContentPage/Ref.graphql"
|
||||
import { DestinationCityPageRef } from "../Fragments/DestinationCityPage/Ref.graphql"
|
||||
import { DestinationCountryPageRef } from "../Fragments/DestinationCountryPage/Ref.graphql"
|
||||
import { DestinationOverviewPageRef } from "../Fragments/DestinationOverviewPage/Ref.graphql"
|
||||
import { AppDownloads } from "../Fragments/Footer/AppDownloads.graphql"
|
||||
import { SocialMedia } from "../Fragments/Footer/SocialMedia.graphql"
|
||||
import { HotelPageRef } from "../Fragments/HotelPage/Ref.graphql"
|
||||
import { LoyaltyPageRef } from "../Fragments/LoyaltyPage/Ref.graphql"
|
||||
import { AccountPageLink } from "../Fragments/PageLink/AccountPageLink.graphql"
|
||||
import { CampaignOverviewPageLink } from "../Fragments/PageLink/CampaignOverviewPageLink.graphql"
|
||||
import { CampaignPageLink } from "../Fragments/PageLink/CampaignPageLink.graphql"
|
||||
@@ -24,9 +14,6 @@ import { HotelPageLink } from "../Fragments/PageLink/HotelPageLink.graphql"
|
||||
import { LoyaltyPageLink } from "../Fragments/PageLink/LoyaltyPageLink.graphql"
|
||||
import { PromoCampaignPageLink } from "../Fragments/PageLink/PromoCampaignPageLink.graphql"
|
||||
import { StartPageLink } from "../Fragments/PageLink/StartPageLink.graphql"
|
||||
import { PromoCampaignPageRef } from "../Fragments/PromoCampaignPage/Ref.graphql"
|
||||
import { StartPageRef } from "../Fragments/StartPage/Ref.graphql"
|
||||
import { System } from "../Fragments/System.graphql"
|
||||
|
||||
export const GetFooter = gql`
|
||||
query GetFooter($locale: String!) {
|
||||
@@ -133,90 +120,3 @@ export const GetFooter = gql`
|
||||
${AppDownloads}
|
||||
${SocialMedia}
|
||||
`
|
||||
|
||||
export const GetFooterRef = gql`
|
||||
query GetFooterRef($locale: String!) {
|
||||
all_footer(limit: 1, locale: $locale) {
|
||||
items {
|
||||
main_links {
|
||||
pageConnection {
|
||||
edges {
|
||||
node {
|
||||
...AccountPageRef
|
||||
...CampaignOverviewPageRef
|
||||
...CampaignPageRef
|
||||
...CollectionPageRef
|
||||
...ContentPageRef
|
||||
...DestinationCityPageRef
|
||||
...DestinationCountryPageRef
|
||||
...DestinationOverviewPageRef
|
||||
...HotelPageRef
|
||||
...LoyaltyPageRef
|
||||
...StartPageRef
|
||||
...PromoCampaignPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
secondary_links {
|
||||
links {
|
||||
pageConnection {
|
||||
edges {
|
||||
node {
|
||||
...AccountPageRef
|
||||
...CampaignOverviewPageRef
|
||||
...CampaignPageRef
|
||||
...CollectionPageRef
|
||||
...ContentPageRef
|
||||
...DestinationCityPageRef
|
||||
...DestinationCountryPageRef
|
||||
...DestinationOverviewPageRef
|
||||
...HotelPageRef
|
||||
...LoyaltyPageRef
|
||||
...StartPageRef
|
||||
...PromoCampaignPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
tertiary_links {
|
||||
pageConnection {
|
||||
edges {
|
||||
node {
|
||||
...AccountPageRef
|
||||
...CampaignOverviewPageRef
|
||||
...CampaignPageRef
|
||||
...CollectionPageRef
|
||||
...ContentPageRef
|
||||
...DestinationCityPageRef
|
||||
...DestinationCountryPageRef
|
||||
...DestinationOverviewPageRef
|
||||
...HotelPageRef
|
||||
...LoyaltyPageRef
|
||||
...StartPageRef
|
||||
...PromoCampaignPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
${System}
|
||||
${AccountPageRef}
|
||||
${CampaignOverviewPageRef}
|
||||
${CampaignPageRef}
|
||||
${CollectionPageRef}
|
||||
${ContentPageRef}
|
||||
${DestinationCityPageRef}
|
||||
${DestinationCountryPageRef}
|
||||
${DestinationOverviewPageRef}
|
||||
${HotelPageRef}
|
||||
${LoyaltyPageRef}
|
||||
${StartPageRef}
|
||||
${PromoCampaignPageRef}
|
||||
`
|
||||
|
||||
@@ -1,17 +1,6 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import { AccountPageRef } from "../Fragments/AccountPage/Ref.graphql"
|
||||
import { CardBlock } from "../Fragments/Blocks/Card.graphql"
|
||||
import { CardBlockRef } from "../Fragments/Blocks/Refs/Card.graphql"
|
||||
import { CampaignOverviewPageRef } from "../Fragments/CampaignOverviewPage/Ref.graphql"
|
||||
import { CampaignPageRef } from "../Fragments/CampaignPage/Ref.graphql"
|
||||
import { CollectionPageRef } from "../Fragments/CollectionPage/Ref.graphql"
|
||||
import { ContentPageRef } from "../Fragments/ContentPage/Ref.graphql"
|
||||
import { DestinationCityPageRef } from "../Fragments/DestinationCityPage/Ref.graphql"
|
||||
import { DestinationCountryPageRef } from "../Fragments/DestinationCountryPage/Ref.graphql"
|
||||
import { DestinationOverviewPageRef } from "../Fragments/DestinationOverviewPage/Ref.graphql"
|
||||
import { HotelPageRef } from "../Fragments/HotelPage/Ref.graphql"
|
||||
import { LoyaltyPageRef } from "../Fragments/LoyaltyPage/Ref.graphql"
|
||||
import { AccountPageLink } from "../Fragments/PageLink/AccountPageLink.graphql"
|
||||
import { CampaignOverviewPageLink } from "../Fragments/PageLink/CampaignOverviewPageLink.graphql"
|
||||
import { CampaignPageLink } from "../Fragments/PageLink/CampaignPageLink.graphql"
|
||||
@@ -24,9 +13,6 @@ import { HotelPageLink } from "../Fragments/PageLink/HotelPageLink.graphql"
|
||||
import { LoyaltyPageLink } from "../Fragments/PageLink/LoyaltyPageLink.graphql"
|
||||
import { PromoCampaignPageLink } from "../Fragments/PageLink/PromoCampaignPageLink.graphql"
|
||||
import { StartPageLink } from "../Fragments/PageLink/StartPageLink.graphql"
|
||||
import { PromoCampaignPageRef } from "../Fragments/PromoCampaignPage/Ref.graphql"
|
||||
import { StartPageRef } from "../Fragments/StartPage/Ref.graphql"
|
||||
import { System } from "../Fragments/System.graphql"
|
||||
|
||||
export const GetHeader = gql`
|
||||
query GetHeader($locale: String!) {
|
||||
@@ -199,146 +185,3 @@ export const GetHeader = gql`
|
||||
${StartPageLink}
|
||||
${PromoCampaignPageLink}
|
||||
`
|
||||
|
||||
export const GetHeaderRef = gql`
|
||||
query GetHeaderRef($locale: String!) {
|
||||
all_header(limit: 1, locale: $locale) {
|
||||
items {
|
||||
top_link {
|
||||
logged_in {
|
||||
linkConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...AccountPageRef
|
||||
...CampaignOverviewPageRef
|
||||
...CampaignPageRef
|
||||
...CollectionPageRef
|
||||
...ContentPageRef
|
||||
...DestinationCityPageRef
|
||||
...DestinationCountryPageRef
|
||||
...DestinationOverviewPageRef
|
||||
...HotelPageRef
|
||||
...LoyaltyPageRef
|
||||
...StartPageRef
|
||||
...PromoCampaignPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
logged_out {
|
||||
linkConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...AccountPageRef
|
||||
...CampaignOverviewPageRef
|
||||
...CampaignPageRef
|
||||
...CollectionPageRef
|
||||
...ContentPageRef
|
||||
...DestinationCityPageRef
|
||||
...DestinationCountryPageRef
|
||||
...DestinationOverviewPageRef
|
||||
...HotelPageRef
|
||||
...LoyaltyPageRef
|
||||
...StartPageRef
|
||||
...PromoCampaignPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
menu_items {
|
||||
linkConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...AccountPageRef
|
||||
...CampaignOverviewPageRef
|
||||
...CampaignPageRef
|
||||
...CollectionPageRef
|
||||
...ContentPageRef
|
||||
...DestinationCityPageRef
|
||||
...DestinationCountryPageRef
|
||||
...DestinationOverviewPageRef
|
||||
...HotelPageRef
|
||||
...LoyaltyPageRef
|
||||
...StartPageRef
|
||||
...PromoCampaignPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
see_all_link {
|
||||
linkConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...AccountPageRef
|
||||
...CampaignOverviewPageRef
|
||||
...CampaignPageRef
|
||||
...CollectionPageRef
|
||||
...ContentPageRef
|
||||
...DestinationCityPageRef
|
||||
...DestinationCountryPageRef
|
||||
...DestinationOverviewPageRef
|
||||
...HotelPageRef
|
||||
...LoyaltyPageRef
|
||||
...StartPageRef
|
||||
...PromoCampaignPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
submenu {
|
||||
links {
|
||||
linkConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...AccountPageRef
|
||||
...CampaignOverviewPageRef
|
||||
...CampaignPageRef
|
||||
...CollectionPageRef
|
||||
...ContentPageRef
|
||||
...DestinationCityPageRef
|
||||
...DestinationCountryPageRef
|
||||
...DestinationOverviewPageRef
|
||||
...HotelPageRef
|
||||
...LoyaltyPageRef
|
||||
...StartPageRef
|
||||
...PromoCampaignPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
cardConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...CardBlockRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
${System}
|
||||
${CardBlockRef}
|
||||
${AccountPageRef}
|
||||
${CampaignOverviewPageRef}
|
||||
${CampaignPageRef}
|
||||
${CollectionPageRef}
|
||||
${ContentPageRef}
|
||||
${DestinationCityPageRef}
|
||||
${DestinationCountryPageRef}
|
||||
${DestinationOverviewPageRef}
|
||||
${HotelPageRef}
|
||||
${LoyaltyPageRef}
|
||||
${StartPageRef}
|
||||
${PromoCampaignPageRef}
|
||||
`
|
||||
|
||||
@@ -4,12 +4,6 @@ import {
|
||||
AccordionBlock,
|
||||
GlobalAccordionBlock,
|
||||
} from "../../Fragments/Blocks/Accordion.graphql"
|
||||
import {
|
||||
AccordionBlockRefs,
|
||||
GlobalAccordionBlockRefs,
|
||||
} from "../../Fragments/Blocks/Refs/Accordion.graphql"
|
||||
import { CollectionPageRef } from "../../Fragments/CollectionPage/Ref.graphql"
|
||||
import { ContentPageRef } from "../../Fragments/ContentPage/Ref.graphql"
|
||||
import { CollectionPageLink } from "../../Fragments/PageLink/CollectionPageLink.graphql"
|
||||
import { ContentPageLink } from "../../Fragments/PageLink/ContentPageLink.graphql"
|
||||
import { System } from "../../Fragments/System.graphql"
|
||||
@@ -121,52 +115,6 @@ export const GetHotelPage = gql`
|
||||
${CollectionPageLink}
|
||||
`
|
||||
|
||||
export const GetHotelPageRefs = gql`
|
||||
query GetHotelPageRefs($locale: String!, $uid: String!) {
|
||||
hotel_page(locale: $locale, uid: $uid) {
|
||||
faq {
|
||||
global_faqConnection {
|
||||
edges {
|
||||
node {
|
||||
...AccordionBlockRefs
|
||||
}
|
||||
}
|
||||
}
|
||||
specific_faq {
|
||||
...GlobalAccordionBlockRefs
|
||||
}
|
||||
}
|
||||
content {
|
||||
__typename
|
||||
... on HotelPageContentUpcomingActivitiesCard {
|
||||
upcoming_activities_card {
|
||||
hotel_page_activities_content_pageConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...CollectionPageRef
|
||||
...ContentPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
trackingProps: hotel_page(locale: "en", uid: $uid) {
|
||||
url
|
||||
}
|
||||
}
|
||||
${CollectionPageRef}
|
||||
${ContentPageRef}
|
||||
${AccordionBlockRefs}
|
||||
${GlobalAccordionBlockRefs}
|
||||
${System}
|
||||
`
|
||||
|
||||
export const GetDaDeEnUrlsHotelPage = gql`
|
||||
query GetDaDeEnUrlsHotelPage($uid: String!) {
|
||||
de: hotel_page(locale: "de", uid: $uid) {
|
||||
|
||||
@@ -1,30 +1,12 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import {
|
||||
CardsGrid_LoyaltyPage,
|
||||
CardsGrid_LoyaltyPageRefs,
|
||||
} from "../../Fragments/Blocks/CardsGrid.graphql"
|
||||
import {
|
||||
Content_LoyaltyPage,
|
||||
Content_LoyaltyPageRefs,
|
||||
} from "../../Fragments/Blocks/Content.graphql"
|
||||
import {
|
||||
DynamicContent_LoyaltyPage,
|
||||
DynamicContent_LoyaltyPageRefs,
|
||||
} from "../../Fragments/Blocks/DynamicContent.graphql"
|
||||
import {
|
||||
Shortcuts_LoyaltyPage,
|
||||
Shortcuts_LoyaltyPageRefs,
|
||||
} from "../../Fragments/Blocks/Shortcuts.graphql"
|
||||
import {
|
||||
ContentSidebar_LoyaltyPage,
|
||||
ContentSidebar_LoyaltyPageRefs,
|
||||
} from "../../Fragments/Sidebar/Content.graphql"
|
||||
import { CardsGrid_LoyaltyPage } from "../../Fragments/Blocks/CardsGrid.graphql"
|
||||
import { Content_LoyaltyPage } from "../../Fragments/Blocks/Content.graphql"
|
||||
import { DynamicContent_LoyaltyPage } from "../../Fragments/Blocks/DynamicContent.graphql"
|
||||
import { Shortcuts_LoyaltyPage } from "../../Fragments/Blocks/Shortcuts.graphql"
|
||||
import { ContentSidebar_LoyaltyPage } from "../../Fragments/Sidebar/Content.graphql"
|
||||
import { DynamicContentSidebar_LoyaltyPage } from "../../Fragments/Sidebar/DynamicContent.graphql"
|
||||
import {
|
||||
JoinLoyaltyContactSidebar_LoyaltyPage,
|
||||
JoinLoyaltyContactSidebar_LoyaltyPageRefs,
|
||||
} from "../../Fragments/Sidebar/JoinLoyaltyContact.graphql"
|
||||
import { JoinLoyaltyContactSidebar_LoyaltyPage } from "../../Fragments/Sidebar/JoinLoyaltyContact.graphql"
|
||||
import { System } from "../../Fragments/System.graphql"
|
||||
|
||||
export const GetLoyaltyPage = gql`
|
||||
@@ -67,35 +49,6 @@ export const GetLoyaltyPage = gql`
|
||||
${JoinLoyaltyContactSidebar_LoyaltyPage}
|
||||
`
|
||||
|
||||
export const GetLoyaltyPageRefs = gql`
|
||||
query GetLoyaltyPageRefs($locale: String!, $uid: String!) {
|
||||
loyalty_page(locale: $locale, uid: $uid) {
|
||||
blocks {
|
||||
__typename
|
||||
...CardsGrid_LoyaltyPageRefs
|
||||
...Content_LoyaltyPageRefs
|
||||
...DynamicContent_LoyaltyPageRefs
|
||||
...Shortcuts_LoyaltyPageRefs
|
||||
}
|
||||
sidebar {
|
||||
__typename
|
||||
...ContentSidebar_LoyaltyPageRefs
|
||||
...JoinLoyaltyContactSidebar_LoyaltyPageRefs
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
}
|
||||
${System}
|
||||
${CardsGrid_LoyaltyPageRefs}
|
||||
${Content_LoyaltyPageRefs}
|
||||
${DynamicContent_LoyaltyPageRefs}
|
||||
${Shortcuts_LoyaltyPageRefs}
|
||||
${ContentSidebar_LoyaltyPageRefs}
|
||||
${JoinLoyaltyContactSidebar_LoyaltyPageRefs}
|
||||
`
|
||||
|
||||
export const GetDaDeEnUrlsLoyaltyPage = gql`
|
||||
query GetDaDeEnUrlsLoyaltyPage($uid: String!) {
|
||||
de: loyalty_page(locale: "de", uid: $uid) {
|
||||
|
||||
@@ -1,13 +1,7 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import {
|
||||
Accordion_PromoCampaignPage,
|
||||
Accordion_PromoCampaignPageRefs,
|
||||
} from "../../Fragments/Blocks/Accordion.graphql"
|
||||
import {
|
||||
Content_PromoCampaignPage,
|
||||
Content_PromoCampaignPageRefs,
|
||||
} from "../../Fragments/Blocks/Content.graphql"
|
||||
import { Accordion_PromoCampaignPage } from "../../Fragments/Blocks/Accordion.graphql"
|
||||
import { Content_PromoCampaignPage } from "../../Fragments/Blocks/Content.graphql"
|
||||
import { System } from "../../Fragments/System.graphql"
|
||||
|
||||
export const GetPromoCampaignPage = gql`
|
||||
@@ -49,24 +43,6 @@ export const GetPromoCampaignPage = gql`
|
||||
${Content_PromoCampaignPage}
|
||||
`
|
||||
|
||||
export const GetPromoCampaignPageRefs = gql`
|
||||
query GetPromoCampaignPageRefs($locale: String!, $uid: String!) {
|
||||
promo_campaign_page(locale: $locale, uid: $uid) {
|
||||
blocks {
|
||||
__typename
|
||||
...Accordion_PromoCampaignPageRefs
|
||||
...Content_PromoCampaignPageRefs
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
}
|
||||
${System}
|
||||
${Accordion_PromoCampaignPageRefs}
|
||||
${Content_PromoCampaignPageRefs}
|
||||
`
|
||||
|
||||
export const GetDaDeEnUrlsPromoCampaignPage = gql`
|
||||
query GetDaDeEnUrlsPromoCampaignPage($uid: String!) {
|
||||
de: promo_campaign_page(locale: "de", uid: $uid) {
|
||||
|
||||
@@ -1,15 +1,5 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import { AccountPageRef } from "../Fragments/AccountPage/Ref.graphql"
|
||||
import { CampaignOverviewPageRef } from "../Fragments/CampaignOverviewPage/Ref.graphql"
|
||||
import { CampaignPageRef } from "../Fragments/CampaignPage/Ref.graphql"
|
||||
import { CollectionPageRef } from "../Fragments/CollectionPage/Ref.graphql"
|
||||
import { ContentPageRef } from "../Fragments/ContentPage/Ref.graphql"
|
||||
import { DestinationCityPageRef } from "../Fragments/DestinationCityPage/Ref.graphql"
|
||||
import { DestinationCountryPageRef } from "../Fragments/DestinationCountryPage/Ref.graphql"
|
||||
import { DestinationOverviewPageRef } from "../Fragments/DestinationOverviewPage/Ref.graphql"
|
||||
import { HotelPageRef } from "../Fragments/HotelPage/Ref.graphql"
|
||||
import { LoyaltyPageRef } from "../Fragments/LoyaltyPage/Ref.graphql"
|
||||
import { AccountPageLink } from "../Fragments/PageLink/AccountPageLink.graphql"
|
||||
import { CampaignOverviewPageLink } from "../Fragments/PageLink/CampaignOverviewPageLink.graphql"
|
||||
import { CampaignPageLink } from "../Fragments/PageLink/CampaignPageLink.graphql"
|
||||
@@ -22,9 +12,6 @@ import { HotelPageLink } from "../Fragments/PageLink/HotelPageLink.graphql"
|
||||
import { LoyaltyPageLink } from "../Fragments/PageLink/LoyaltyPageLink.graphql"
|
||||
import { PromoCampaignPageLink } from "../Fragments/PageLink/PromoCampaignPageLink.graphql"
|
||||
import { StartPageLink } from "../Fragments/PageLink/StartPageLink.graphql"
|
||||
import { PromoCampaignPageRef } from "../Fragments/PromoCampaignPage/Ref.graphql"
|
||||
import { StartPageRef } from "../Fragments/StartPage/Ref.graphql"
|
||||
import { System } from "../Fragments/System.graphql"
|
||||
|
||||
export const GetRewards = gql`
|
||||
query GetRewards($locale: String!, $rewardIds: [String!]) {
|
||||
@@ -77,49 +64,3 @@ export const GetRewards = gql`
|
||||
${StartPageLink}
|
||||
${PromoCampaignPageLink}
|
||||
`
|
||||
|
||||
export const GetRewardsRef = gql`
|
||||
query GetRewardsRef($locale: String!, $rewardIds: [String!]) {
|
||||
all_reward(locale: $locale, where: { reward_id_in: $rewardIds }) {
|
||||
items {
|
||||
redeem_description {
|
||||
embedded_itemsConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...AccountPageRef
|
||||
...CampaignOverviewPageRef
|
||||
...CampaignPageRef
|
||||
...CollectionPageRef
|
||||
...ContentPageRef
|
||||
...DestinationCityPageRef
|
||||
...DestinationCountryPageRef
|
||||
...DestinationOverviewPageRef
|
||||
...HotelPageRef
|
||||
...LoyaltyPageRef
|
||||
...StartPageRef
|
||||
...PromoCampaignPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
${System}
|
||||
${AccountPageRef}
|
||||
${CampaignOverviewPageRef}
|
||||
${CampaignPageRef}
|
||||
${CollectionPageRef}
|
||||
${ContentPageRef}
|
||||
${DestinationCityPageRef}
|
||||
${DestinationCountryPageRef}
|
||||
${DestinationOverviewPageRef}
|
||||
${HotelPageRef}
|
||||
${LoyaltyPageRef}
|
||||
${StartPageRef}
|
||||
${PromoCampaignPageRef}
|
||||
`
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import { Alert, AlertRef } from "../Fragments/Alert.graphql"
|
||||
import { System } from "../Fragments/System.graphql"
|
||||
import { Alert } from "../Fragments/Alert.graphql"
|
||||
|
||||
export const GetSiteConfig = gql`
|
||||
query GetSiteConfig($locale: String!) {
|
||||
@@ -24,28 +23,3 @@ export const GetSiteConfig = gql`
|
||||
}
|
||||
${Alert}
|
||||
`
|
||||
|
||||
export const GetSiteConfigRef = gql`
|
||||
query GetSiteConfigRef($locale: String!) {
|
||||
all_site_config(limit: 1, locale: $locale) {
|
||||
items {
|
||||
sitewide_alert {
|
||||
alerts {
|
||||
alertConnection {
|
||||
edges {
|
||||
node {
|
||||
...AlertRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
${System}
|
||||
${AlertRef}
|
||||
`
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import { Banner, BannerRef } from "../Fragments/Banner.graphql"
|
||||
import { System } from "../Fragments/System.graphql"
|
||||
import { Banner } from "../Fragments/Banner.graphql"
|
||||
|
||||
export const GetSitewideCampaignBanner = gql`
|
||||
query GetSitewideCampaignBanner($locale: String!) {
|
||||
@@ -19,24 +18,3 @@ export const GetSitewideCampaignBanner = gql`
|
||||
}
|
||||
${Banner}
|
||||
`
|
||||
|
||||
export const GetSitewideCampaignBannerRef = gql`
|
||||
query GetSitewideCampaignBannerRef($locale: String!) {
|
||||
all_sitewide_campaign_banner(limit: 1, locale: $locale) {
|
||||
items {
|
||||
bannerConnection {
|
||||
edges {
|
||||
node {
|
||||
...BannerRef
|
||||
}
|
||||
}
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
${System}
|
||||
${BannerRef}
|
||||
`
|
||||
|
||||
@@ -1,25 +1,10 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import {
|
||||
CardsGrid_StartPage,
|
||||
CardsGrid_StartPageRefs,
|
||||
} from "../../Fragments/Blocks/CardsGrid.graphql"
|
||||
import {
|
||||
CarouselCards_StartPage,
|
||||
CarouselCards_StartPageRefs,
|
||||
} from "../../Fragments/Blocks/CarouselCards.graphql"
|
||||
import {
|
||||
FullWidthCampaign,
|
||||
FullWidthCampaignRefs,
|
||||
} from "../../Fragments/Blocks/FullWidthCampaign.graphql"
|
||||
import {
|
||||
JoinScandicFriends_StartPage,
|
||||
JoinScandicFriends_StartPageRefs,
|
||||
} from "../../Fragments/Blocks/JoinScandicFriends.graphql"
|
||||
import {
|
||||
VideoCard_StartPage,
|
||||
VideoCard_StartPageRefs,
|
||||
} from "../../Fragments/Blocks/VideoCard.graphql"
|
||||
import { CardsGrid_StartPage } from "../../Fragments/Blocks/CardsGrid.graphql"
|
||||
import { CarouselCards_StartPage } from "../../Fragments/Blocks/CarouselCards.graphql"
|
||||
import { FullWidthCampaign } from "../../Fragments/Blocks/FullWidthCampaign.graphql"
|
||||
import { JoinScandicFriends_StartPage } from "../../Fragments/Blocks/JoinScandicFriends.graphql"
|
||||
import { VideoCard_StartPage } from "../../Fragments/Blocks/VideoCard.graphql"
|
||||
import { System } from "../../Fragments/System.graphql"
|
||||
|
||||
export const GetStartPage = gql`
|
||||
@@ -68,40 +53,6 @@ export const GetStartPage = gql`
|
||||
${VideoCard_StartPage}
|
||||
`
|
||||
|
||||
export const GetStartPageRefs = gql`
|
||||
query GetStartPageRefs($locale: String!, $uid: String!) {
|
||||
start_page(locale: $locale, uid: $uid) {
|
||||
blocks {
|
||||
__typename
|
||||
...CardsGrid_StartPageRefs
|
||||
...CarouselCards_StartPageRefs
|
||||
... on StartPageBlocksFullWidthCampaign {
|
||||
full_width_campaign {
|
||||
full_width_campaignConnection {
|
||||
edges {
|
||||
node {
|
||||
...FullWidthCampaignRefs
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
...JoinScandicFriends_StartPageRefs
|
||||
...VideoCard_StartPageRefs
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
}
|
||||
${System}
|
||||
${CardsGrid_StartPageRefs}
|
||||
${FullWidthCampaignRefs}
|
||||
${CarouselCards_StartPageRefs}
|
||||
${JoinScandicFriends_StartPageRefs}
|
||||
${VideoCard_StartPageRefs}
|
||||
`
|
||||
|
||||
export const GetDaDeEnUrlsStartPage = gql`
|
||||
query GetDaDeEnUrlsStartPage($uid: String!) {
|
||||
de: start_page(locale: "de", uid: $uid) {
|
||||
|
||||
@@ -1,15 +1,5 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import { AccountPageRef } from "../Fragments/AccountPage/Ref.graphql"
|
||||
import { CampaignOverviewPageRef } from "../Fragments/CampaignOverviewPage/Ref.graphql"
|
||||
import { CampaignPageRef } from "../Fragments/CampaignPage/Ref.graphql"
|
||||
import { CollectionPageRef } from "../Fragments/CollectionPage/Ref.graphql"
|
||||
import { ContentPageRef } from "../Fragments/ContentPage/Ref.graphql"
|
||||
import { DestinationCityPageRef } from "../Fragments/DestinationCityPage/Ref.graphql"
|
||||
import { DestinationCountryPageRef } from "../Fragments/DestinationCountryPage/Ref.graphql"
|
||||
import { DestinationOverviewPageRef } from "../Fragments/DestinationOverviewPage/Ref.graphql"
|
||||
import { HotelPageRef } from "../Fragments/HotelPage/Ref.graphql"
|
||||
import { LoyaltyPageRef } from "../Fragments/LoyaltyPage/Ref.graphql"
|
||||
import { AccountPageLink } from "../Fragments/PageLink/AccountPageLink.graphql"
|
||||
import { CampaignOverviewPageLink } from "../Fragments/PageLink/CampaignOverviewPageLink.graphql"
|
||||
import { CampaignPageLink } from "../Fragments/PageLink/CampaignPageLink.graphql"
|
||||
@@ -22,9 +12,6 @@ import { HotelPageLink } from "../Fragments/PageLink/HotelPageLink.graphql"
|
||||
import { LoyaltyPageLink } from "../Fragments/PageLink/LoyaltyPageLink.graphql"
|
||||
import { PromoCampaignPageLink } from "../Fragments/PageLink/PromoCampaignPageLink.graphql"
|
||||
import { StartPageLink } from "../Fragments/PageLink/StartPageLink.graphql"
|
||||
import { PromoCampaignPageRef } from "../Fragments/PromoCampaignPage/Ref.graphql"
|
||||
import { StartPageRef } from "../Fragments/StartPage/Ref.graphql"
|
||||
import { System } from "../Fragments/System.graphql"
|
||||
|
||||
export const GetUsePointsModal = gql`
|
||||
query GetUsePointsModal($locale: String!) {
|
||||
@@ -75,48 +62,3 @@ export const GetUsePointsModal = gql`
|
||||
${StartPageLink}
|
||||
${PromoCampaignPageLink}
|
||||
`
|
||||
export const GetUsePointsModalRefs = gql`
|
||||
query GetUsePointsModalRefs($locale: String!) {
|
||||
all_usepointsmodal(locale: $locale) {
|
||||
items {
|
||||
link_group {
|
||||
linkConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...AccountPageRef
|
||||
...CampaignOverviewPageRef
|
||||
...CampaignPageRef
|
||||
...CollectionPageRef
|
||||
...ContentPageRef
|
||||
...DestinationCityPageRef
|
||||
...DestinationCountryPageRef
|
||||
...DestinationOverviewPageRef
|
||||
...HotelPageRef
|
||||
...LoyaltyPageRef
|
||||
...StartPageRef
|
||||
...PromoCampaignPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
${AccountPageRef}
|
||||
${CampaignOverviewPageRef}
|
||||
${CampaignPageRef}
|
||||
${CollectionPageRef}
|
||||
${ContentPageRef}
|
||||
${DestinationCityPageRef}
|
||||
${DestinationCountryPageRef}
|
||||
${DestinationOverviewPageRef}
|
||||
${HotelPageRef}
|
||||
${LoyaltyPageRef}
|
||||
${StartPageRef}
|
||||
${PromoCampaignPageRef}
|
||||
${System}
|
||||
`
|
||||
|
||||
@@ -3,14 +3,9 @@ import { z } from "zod"
|
||||
import { transformedImageVaultAssetSchema } from "@scandic-hotels/common/utils/imageVault"
|
||||
import { IconName } from "@scandic-hotels/design-system/Icons/iconName"
|
||||
|
||||
import {
|
||||
linkConnectionRefs,
|
||||
linkConnectionSchema,
|
||||
} from "../schemas/linkConnection"
|
||||
import { systemSchema } from "../schemas/system"
|
||||
import { linkConnectionSchema } from "../schemas/linkConnection"
|
||||
|
||||
export type UsePointsModalData = z.output<typeof usePointsModalSchema>
|
||||
export type UsePointsModalRefsData = z.output<typeof usePointsModalRefsSchema>
|
||||
type LinkGroupItem = z.infer<typeof linkGroupItemSchema>
|
||||
|
||||
const linkGroupItemSchema = z.intersection(
|
||||
@@ -57,16 +52,3 @@ export const usePointsModalSchema = z.object({
|
||||
})
|
||||
.optional(),
|
||||
})
|
||||
|
||||
export const usePointsModalRefsSchema = z.object({
|
||||
all_usepointsmodal: z
|
||||
.object({
|
||||
items: z.array(
|
||||
z.object({
|
||||
link_group: z.array(linkConnectionRefs),
|
||||
system: systemSchema,
|
||||
})
|
||||
),
|
||||
})
|
||||
.optional(),
|
||||
})
|
||||
|
||||
@@ -2,66 +2,15 @@ import { createCounter } from "@scandic-hotels/common/telemetry"
|
||||
|
||||
import { router } from "../../.."
|
||||
import { notFoundError } from "../../../errors"
|
||||
import {
|
||||
GetUsePointsModal,
|
||||
GetUsePointsModalRefs,
|
||||
} from "../../../graphql/Query/UsePointsModal.graphql"
|
||||
import { GetUsePointsModal } from "../../../graphql/Query/UsePointsModal.graphql"
|
||||
import { request } from "../../../graphql/request"
|
||||
import { contentstackBaseProcedure } from "../../../procedures"
|
||||
import {
|
||||
generateRefsResponseTag,
|
||||
generateTag,
|
||||
generateTagsFromSystem,
|
||||
} from "../../../utils/generateTag"
|
||||
import {
|
||||
type UsePointsModalData,
|
||||
type UsePointsModalRefsData,
|
||||
usePointsModalRefsSchema,
|
||||
usePointsModalSchema,
|
||||
} from "./output"
|
||||
import { getConnections } from "./utils"
|
||||
import { generateTag } from "../../../utils/generateTag"
|
||||
import { type UsePointsModalData, usePointsModalSchema } from "./output"
|
||||
|
||||
export const usePointsModalQueryRouter = router({
|
||||
get: contentstackBaseProcedure.query(async ({ ctx }) => {
|
||||
const { lang, uid } = ctx
|
||||
const getRefsCounter = createCounter(
|
||||
"trpc.contentstack.usePointsModal.get.refs"
|
||||
)
|
||||
const metricsRefs = getRefsCounter.init({
|
||||
lang,
|
||||
uid,
|
||||
})
|
||||
|
||||
metricsRefs.start()
|
||||
const refsTag = generateRefsResponseTag(lang, "usepointsmodal")
|
||||
|
||||
const variables = { locale: lang }
|
||||
const refsResponse = await request<UsePointsModalRefsData>(
|
||||
GetUsePointsModalRefs,
|
||||
variables,
|
||||
{
|
||||
key: refsTag,
|
||||
ttl: "max",
|
||||
}
|
||||
)
|
||||
if (!refsResponse.data) {
|
||||
metricsRefs.noDataError()
|
||||
throw notFoundError({
|
||||
message: "GetUsePointsModalRefs returned no data",
|
||||
errorDetails: variables,
|
||||
})
|
||||
}
|
||||
|
||||
const validatedRefsData = usePointsModalRefsSchema.safeParse(
|
||||
refsResponse.data
|
||||
)
|
||||
|
||||
if (!validatedRefsData.success) {
|
||||
metricsRefs.validationError(validatedRefsData.error)
|
||||
return null
|
||||
}
|
||||
|
||||
metricsRefs.success()
|
||||
|
||||
const getCounter = createCounter("trpc.contentstack.usePointsModal.get")
|
||||
|
||||
@@ -71,18 +20,13 @@ export const usePointsModalQueryRouter = router({
|
||||
})
|
||||
metrics.start()
|
||||
|
||||
const connections = getConnections(validatedRefsData.data)
|
||||
|
||||
const tags = [
|
||||
generateTagsFromSystem(lang, connections),
|
||||
generateTag(lang, "usepointsmodal"),
|
||||
].flat()
|
||||
const variables = { locale: lang }
|
||||
|
||||
const response = await request<UsePointsModalData>(
|
||||
GetUsePointsModal,
|
||||
variables,
|
||||
{
|
||||
key: tags,
|
||||
key: generateTag(lang, "usepointsmodal"),
|
||||
ttl: "max",
|
||||
}
|
||||
)
|
||||
|
||||
@@ -1,17 +0,0 @@
|
||||
import type { System } from "../schemas/system"
|
||||
import type { UsePointsModalRefsData } from "./output"
|
||||
|
||||
export function getConnections({ all_usepointsmodal }: UsePointsModalRefsData) {
|
||||
const connections: System["system"][] = all_usepointsmodal?.items?.[0]
|
||||
? [all_usepointsmodal?.items?.[0]?.system]
|
||||
: []
|
||||
|
||||
if (all_usepointsmodal && all_usepointsmodal.items) {
|
||||
all_usepointsmodal?.items.forEach((item) => {
|
||||
item.link_group.forEach((link) => {
|
||||
link.link?.uid && connections.push(link.link)
|
||||
})
|
||||
})
|
||||
}
|
||||
return connections
|
||||
}
|
||||
@@ -4,18 +4,9 @@ import { transformedImageVaultAssetSchema } from "@scandic-hotels/common/utils/i
|
||||
|
||||
import { AccountPageEnum } from "../../../types/accountPageEnum"
|
||||
import { discriminatedUnionArray } from "../../../utils/discriminatedUnion"
|
||||
import {
|
||||
accordionRefsSchema,
|
||||
accordionSchema,
|
||||
} from "../schemas/blocks/accordion"
|
||||
import {
|
||||
dynamicContentRefsSchema,
|
||||
dynamicContentSchema,
|
||||
} from "../schemas/blocks/dynamicContent"
|
||||
import {
|
||||
shortcutsRefsSchema,
|
||||
shortcutsSchema,
|
||||
} from "../schemas/blocks/shortcuts"
|
||||
import { accordionSchema } from "../schemas/blocks/accordion"
|
||||
import { dynamicContentSchema } from "../schemas/blocks/dynamicContent"
|
||||
import { shortcutsSchema } from "../schemas/blocks/shortcuts"
|
||||
import { textContentSchema } from "../schemas/blocks/textContent"
|
||||
import { systemSchema } from "../schemas/system"
|
||||
|
||||
@@ -73,37 +64,3 @@ export const accountPageSchema = z.object({
|
||||
url: z.string(),
|
||||
}),
|
||||
})
|
||||
|
||||
const accountPageAccordionRefs = z
|
||||
.object({
|
||||
__typename: z.literal(AccountPageEnum.ContentStack.blocks.Accordion),
|
||||
})
|
||||
.merge(accordionRefsSchema)
|
||||
|
||||
const accountPageDynamicContentRefs = z
|
||||
.object({
|
||||
__typename: z.literal(AccountPageEnum.ContentStack.blocks.DynamicContent),
|
||||
})
|
||||
.merge(dynamicContentRefsSchema)
|
||||
|
||||
const accountPageShortcutsRefs = z
|
||||
.object({
|
||||
__typename: z.literal(AccountPageEnum.ContentStack.blocks.ShortCuts),
|
||||
})
|
||||
.merge(shortcutsRefsSchema)
|
||||
|
||||
const accountPageContentItemRefs = z.discriminatedUnion("__typename", [
|
||||
z.object({
|
||||
__typename: z.literal(AccountPageEnum.ContentStack.blocks.TextContent),
|
||||
}),
|
||||
accountPageAccordionRefs,
|
||||
accountPageDynamicContentRefs,
|
||||
accountPageShortcutsRefs,
|
||||
])
|
||||
|
||||
export const accountPageRefsSchema = z.object({
|
||||
account_page: z.object({
|
||||
content: discriminatedUnionArray(accountPageContentItemRefs.options),
|
||||
system: systemSchema,
|
||||
}),
|
||||
})
|
||||
|
||||
@@ -2,82 +2,31 @@ import { createCounter } from "@scandic-hotels/common/telemetry"
|
||||
|
||||
import { router } from "../../.."
|
||||
import { notFoundError } from "../../../errors"
|
||||
import {
|
||||
GetAccountPage,
|
||||
GetAccountPageRefs,
|
||||
} from "../../../graphql/Query/AccountPage/AccountPage.graphql"
|
||||
import { GetAccountPage } from "../../../graphql/Query/AccountPage/AccountPage.graphql"
|
||||
import { request } from "../../../graphql/request"
|
||||
import { contentstackExtendedProcedureUID } from "../../../procedures"
|
||||
import {
|
||||
generateRefsResponseTag,
|
||||
generateTag,
|
||||
generateTagsFromSystem,
|
||||
} from "../../../utils/generateTag"
|
||||
import { accountPageRefsSchema, accountPageSchema } from "./output"
|
||||
import { getConnections } from "./utils"
|
||||
import { generateTag } from "../../../utils/generateTag"
|
||||
import { accountPageSchema } from "./output"
|
||||
|
||||
import type {
|
||||
GetAccountPageRefsSchema,
|
||||
GetAccountPageSchema,
|
||||
} from "../../../types/accountPage"
|
||||
import type { GetAccountPageSchema } from "../../../types/accountPage"
|
||||
import type { TrackingPageData } from "../../types"
|
||||
|
||||
export const accountPageQueryRouter = router({
|
||||
get: contentstackExtendedProcedureUID.query(async ({ ctx }) => {
|
||||
const { lang, uid } = ctx
|
||||
|
||||
const getAccountPageRefsCounter = createCounter(
|
||||
"trpc.contentstack.accountPage.get.refs"
|
||||
)
|
||||
const metricsRefs = getAccountPageRefsCounter.init({ lang, uid })
|
||||
metricsRefs.start()
|
||||
|
||||
const variables = { locale: lang, uid }
|
||||
const refsResponse = await request<GetAccountPageRefsSchema>(
|
||||
GetAccountPageRefs,
|
||||
variables,
|
||||
{
|
||||
key: generateRefsResponseTag(lang, uid),
|
||||
ttl: "max",
|
||||
}
|
||||
)
|
||||
|
||||
if (!refsResponse.data) {
|
||||
metricsRefs.noDataError()
|
||||
throw notFoundError({
|
||||
message: "GetAccountPageRefs returned no data",
|
||||
errorDetails: variables,
|
||||
})
|
||||
}
|
||||
|
||||
const validatedAccountPageRefs = accountPageRefsSchema.safeParse(
|
||||
refsResponse.data
|
||||
)
|
||||
if (!validatedAccountPageRefs.success) {
|
||||
metricsRefs.validationError(validatedAccountPageRefs.error)
|
||||
return null
|
||||
}
|
||||
|
||||
const connections = getConnections(validatedAccountPageRefs.data)
|
||||
|
||||
const tags = [
|
||||
generateTagsFromSystem(lang, connections),
|
||||
generateTag(lang, validatedAccountPageRefs.data.account_page.system.uid),
|
||||
].flat()
|
||||
|
||||
metricsRefs.success()
|
||||
|
||||
const getAccountPageCounter = createCounter(
|
||||
"trpc.contentstack.accountPage.get"
|
||||
)
|
||||
const metrics = getAccountPageCounter.init({ lang, uid })
|
||||
metrics.start()
|
||||
|
||||
const variables = { locale: lang, uid }
|
||||
const response = await request<GetAccountPageSchema>(
|
||||
GetAccountPage,
|
||||
variables,
|
||||
{
|
||||
key: tags,
|
||||
key: generateTag(lang, uid),
|
||||
ttl: "max",
|
||||
}
|
||||
)
|
||||
|
||||
@@ -1,29 +0,0 @@
|
||||
import { AccountPageEnum } from "../../../types/accountPageEnum"
|
||||
|
||||
import type { AccountPageRefs } from "../../../types/accountPage"
|
||||
import type { System } from "../schemas/system"
|
||||
|
||||
export function getConnections({ account_page }: AccountPageRefs) {
|
||||
const connections: System["system"][] = [account_page.system]
|
||||
|
||||
if (account_page.content) {
|
||||
account_page.content.forEach((block) => {
|
||||
switch (block.__typename) {
|
||||
case AccountPageEnum.ContentStack.blocks.ShortCuts: {
|
||||
if (block.shortcuts.shortcuts.length) {
|
||||
connections.push(...block.shortcuts.shortcuts.filter((c) => !!c))
|
||||
}
|
||||
break
|
||||
}
|
||||
case AccountPageEnum.ContentStack.blocks.DynamicContent: {
|
||||
if (block.dynamic_content.link) {
|
||||
connections.push(block.dynamic_content.link)
|
||||
}
|
||||
break
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
return connections
|
||||
}
|
||||
@@ -11,20 +11,14 @@ import { nullableStringValidator } from "@scandic-hotels/common/utils/zod/string
|
||||
|
||||
import { discriminatedUnion } from "../../../utils/discriminatedUnion"
|
||||
import {
|
||||
infoCardBlockRefsSchema,
|
||||
infoCardBlockSchema,
|
||||
transformCardBlockRefs,
|
||||
transformInfoCardBlock,
|
||||
} from "../schemas/blocks/cardsGrid"
|
||||
import { linkConnectionRefsSchema } from "../schemas/blocks/utils/linkConnection"
|
||||
import {
|
||||
linkRefsUnionSchema,
|
||||
linkUnionSchema,
|
||||
rawLinkUnionSchema,
|
||||
transformPageLink,
|
||||
transformPageLinkRef,
|
||||
} from "../schemas/pageLinks"
|
||||
import { systemSchema } from "../schemas/system"
|
||||
|
||||
// Help me write this zod schema based on the type ContactConfig
|
||||
export const validateContactConfigSchema = z.object({
|
||||
@@ -218,150 +212,6 @@ export const validateFooterConfigSchema = z
|
||||
}
|
||||
})
|
||||
|
||||
const pageConnectionRefs = z.object({
|
||||
edges: z
|
||||
.array(
|
||||
z.object({
|
||||
node: z.object({
|
||||
system: systemSchema,
|
||||
}),
|
||||
})
|
||||
)
|
||||
.max(1),
|
||||
})
|
||||
|
||||
export const validateFooterRefConfigSchema = z.object({
|
||||
all_footer: z.object({
|
||||
items: z
|
||||
.array(
|
||||
z.object({
|
||||
main_links: z
|
||||
.array(
|
||||
z.object({
|
||||
pageConnection: pageConnectionRefs,
|
||||
})
|
||||
)
|
||||
.nullable(),
|
||||
secondary_links: z
|
||||
.array(
|
||||
z.object({
|
||||
links: z.array(
|
||||
z.object({
|
||||
pageConnection: pageConnectionRefs,
|
||||
})
|
||||
),
|
||||
})
|
||||
)
|
||||
.nullable(),
|
||||
tertiary_links: z
|
||||
.array(
|
||||
z.object({
|
||||
pageConnection: pageConnectionRefs,
|
||||
})
|
||||
)
|
||||
.nullable(),
|
||||
system: systemSchema,
|
||||
})
|
||||
)
|
||||
.length(1),
|
||||
}),
|
||||
})
|
||||
|
||||
/**
|
||||
* New Header Validation
|
||||
*/
|
||||
|
||||
const linkRefsSchema = z
|
||||
.object({
|
||||
linkConnection: z.object({
|
||||
edges: z.array(
|
||||
z.object({
|
||||
node: linkRefsUnionSchema,
|
||||
})
|
||||
),
|
||||
}),
|
||||
})
|
||||
.transform((data) => {
|
||||
if (data.linkConnection.edges.length) {
|
||||
const link = transformPageLinkRef(data.linkConnection.edges[0].node)
|
||||
if (link) {
|
||||
return {
|
||||
link,
|
||||
}
|
||||
}
|
||||
}
|
||||
return { link: null }
|
||||
})
|
||||
|
||||
const menuItemsRefsSchema = z.intersection(
|
||||
linkRefsSchema,
|
||||
z
|
||||
.object({
|
||||
cardConnection: z.object({
|
||||
edges: z.array(
|
||||
z.object({
|
||||
node: infoCardBlockRefsSchema,
|
||||
})
|
||||
),
|
||||
}),
|
||||
see_all_link: linkRefsSchema,
|
||||
submenu: z.array(
|
||||
z.object({
|
||||
links: z.array(linkRefsSchema),
|
||||
})
|
||||
),
|
||||
})
|
||||
.transform((data) => {
|
||||
let card = null
|
||||
if (data.cardConnection.edges.length) {
|
||||
card = transformCardBlockRefs(data.cardConnection.edges[0].node)
|
||||
}
|
||||
|
||||
return {
|
||||
card,
|
||||
see_all_link: data.see_all_link,
|
||||
submenu: data.submenu,
|
||||
}
|
||||
})
|
||||
)
|
||||
|
||||
const topLinkRefsSchema = z.object({
|
||||
logged_in: linkRefsSchema.nullable(),
|
||||
logged_out: linkRefsSchema.nullable(),
|
||||
})
|
||||
|
||||
export const headerRefsSchema = z
|
||||
.object({
|
||||
all_header: z.object({
|
||||
items: z
|
||||
.array(
|
||||
z.object({
|
||||
menu_items: z.array(menuItemsRefsSchema),
|
||||
system: systemSchema,
|
||||
top_link: topLinkRefsSchema,
|
||||
})
|
||||
)
|
||||
.max(1),
|
||||
}),
|
||||
})
|
||||
.transform((data) => {
|
||||
if (!data.all_header.items.length) {
|
||||
logger.error(`Zod Error - No header returned in refs request`)
|
||||
throw new ZodError([
|
||||
{
|
||||
code: ZodIssueCode.custom,
|
||||
fatal: true,
|
||||
message: "No header returned (Refs)",
|
||||
path: ["all_header.items"],
|
||||
},
|
||||
])
|
||||
}
|
||||
|
||||
return {
|
||||
header: data.all_header.items[0],
|
||||
}
|
||||
})
|
||||
|
||||
const internalOrExternalLinkSchema = z
|
||||
.object({
|
||||
is_contentstack_link: z.boolean().nullish(),
|
||||
@@ -687,57 +537,6 @@ export const siteConfigSchema = z
|
||||
}
|
||||
})
|
||||
|
||||
const sidepeekContentRefSchema = z.object({
|
||||
content: z.object({
|
||||
embedded_itemsConnection: z.object({
|
||||
edges: z.array(
|
||||
z.object({
|
||||
node: linkRefsUnionSchema,
|
||||
})
|
||||
),
|
||||
}),
|
||||
}),
|
||||
})
|
||||
|
||||
const alertConnectionRefSchema = z.object({
|
||||
edges: z.array(
|
||||
z.object({
|
||||
node: z.object({
|
||||
link: linkRefsSchema,
|
||||
sidepeek_content: sidepeekContentRefSchema,
|
||||
system: systemSchema,
|
||||
}),
|
||||
})
|
||||
),
|
||||
visible_on: z.array(z.string()).nullish().default([]),
|
||||
})
|
||||
|
||||
export const siteConfigRefSchema = z.object({
|
||||
all_site_config: z.object({
|
||||
items: z.array(
|
||||
z.object({
|
||||
sitewide_alert: z
|
||||
.object({
|
||||
alerts: z
|
||||
.array(
|
||||
z.object({
|
||||
alertConnection: alertConnectionRefSchema,
|
||||
})
|
||||
)
|
||||
.nullable(),
|
||||
})
|
||||
.transform((data) => {
|
||||
const sitewideAlertWeb = data.alerts?.find((alert) =>
|
||||
alert.alertConnection.visible_on?.includes(AlertVisibleOnEnum.WEB)
|
||||
)
|
||||
return { alert: sitewideAlertWeb || null }
|
||||
}),
|
||||
system: systemSchema,
|
||||
})
|
||||
),
|
||||
}),
|
||||
})
|
||||
|
||||
const bannerSchema = z
|
||||
.object({
|
||||
tag: z.string(),
|
||||
@@ -762,20 +561,6 @@ const bannerSchema = z
|
||||
}
|
||||
})
|
||||
|
||||
const bannerRefSchema = z
|
||||
.object({
|
||||
link: linkConnectionRefsSchema,
|
||||
visible_on: z.array(z.string()).nullish().default([]),
|
||||
system: systemSchema,
|
||||
})
|
||||
.transform(({ link, visible_on, system }) => {
|
||||
return {
|
||||
linkSystem: link,
|
||||
visible_on,
|
||||
system,
|
||||
}
|
||||
})
|
||||
|
||||
export const sitewideCampaignBannerSchema = z
|
||||
.object({
|
||||
all_sitewide_campaign_banner: z.object({
|
||||
@@ -806,29 +591,3 @@ export const sitewideCampaignBannerSchema = z
|
||||
|
||||
return sitewideCampaignBannerWeb?.node ?? null
|
||||
})
|
||||
|
||||
export const sitewideCampaignBannerRefSchema = z.object({
|
||||
all_sitewide_campaign_banner: z
|
||||
.object({
|
||||
items: z.array(
|
||||
z.object({
|
||||
bannerConnection: z.object({
|
||||
edges: z.array(
|
||||
z.object({
|
||||
node: bannerRefSchema,
|
||||
})
|
||||
),
|
||||
}),
|
||||
system: systemSchema,
|
||||
})
|
||||
),
|
||||
})
|
||||
.transform((data) => {
|
||||
const webBanner = data.items.find((item) => {
|
||||
const bannerNode = item.bannerConnection.edges[0]?.node
|
||||
return bannerNode?.visible_on?.includes(AlertVisibleOnEnum.WEB)
|
||||
})
|
||||
|
||||
return webBanner ?? null
|
||||
}),
|
||||
})
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user