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
68 lines
2.1 KiB
TypeScript
68 lines
2.1 KiB
TypeScript
import { gql } from "graphql-tag"
|
|
|
|
import { AccountPageLink } from "../PageLink/AccountPageLink.graphql"
|
|
import { CampaignOverviewPageLink } from "../PageLink/CampaignOverviewPageLink.graphql"
|
|
import { CampaignPageLink } from "../PageLink/CampaignPageLink.graphql"
|
|
import { CollectionPageLink } from "../PageLink/CollectionPageLink.graphql"
|
|
import { ContentPageLink } from "../PageLink/ContentPageLink.graphql"
|
|
import { DestinationCityPageLink } from "../PageLink/DestinationCityPageLink.graphql"
|
|
import { DestinationCountryPageLink } from "../PageLink/DestinationCountryPageLink.graphql"
|
|
import { DestinationOverviewPageLink } from "../PageLink/DestinationOverviewPageLink.graphql"
|
|
import { HotelPageLink } from "../PageLink/HotelPageLink.graphql"
|
|
import { LoyaltyPageLink } from "../PageLink/LoyaltyPageLink.graphql"
|
|
import { PromoCampaignPageLink } from "../PageLink/PromoCampaignPageLink.graphql"
|
|
import { StartPageLink } from "../PageLink/StartPageLink.graphql"
|
|
|
|
export const Hero_CampaignPage = gql`
|
|
fragment Hero_CampaignPage on CampaignPage {
|
|
hero {
|
|
image
|
|
heading
|
|
theme
|
|
benefits
|
|
rate_text {
|
|
bold_text
|
|
text
|
|
}
|
|
campaign_text {
|
|
text
|
|
bold_text
|
|
}
|
|
button {
|
|
cta
|
|
linkConnection {
|
|
edges {
|
|
node {
|
|
__typename
|
|
...AccountPageLink
|
|
...CampaignOverviewPageLink
|
|
...CampaignPageLink
|
|
...CollectionPageLink
|
|
...ContentPageLink
|
|
...DestinationCityPageLink
|
|
...DestinationCountryPageLink
|
|
...DestinationOverviewPageLink
|
|
...HotelPageLink
|
|
...LoyaltyPageLink
|
|
...StartPageLink
|
|
...PromoCampaignPageLink
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
${AccountPageLink}
|
|
${CampaignOverviewPageLink}
|
|
${CampaignPageLink}
|
|
${CollectionPageLink}
|
|
${ContentPageLink}
|
|
${DestinationCityPageLink}
|
|
${DestinationCountryPageLink}
|
|
${DestinationOverviewPageLink}
|
|
${HotelPageLink}
|
|
${LoyaltyPageLink}
|
|
${StartPageLink}
|
|
${PromoCampaignPageLink}
|
|
`
|