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
34 lines
760 B
TypeScript
34 lines
760 B
TypeScript
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"
|
|
|
|
export const TopCampaign = gql`
|
|
fragment TopCampaign on CampaignPage {
|
|
included_hotels {
|
|
...CampaignPageIncludedHotels
|
|
}
|
|
blocks {
|
|
__typename
|
|
...HotelListing_CampaignPage
|
|
}
|
|
url
|
|
...Hero_CampaignPage
|
|
}
|
|
${HotelListing_CampaignPage}
|
|
${CampaignPageIncludedHotels}
|
|
${Hero_CampaignPage}
|
|
`
|
|
|
|
export const TopPromoCampaign = gql`
|
|
fragment TopPromoCampaign on PromoCampaignPage {
|
|
url
|
|
promo_hero {
|
|
image
|
|
heading
|
|
benefits
|
|
}
|
|
}
|
|
`
|