Files
web/packages/trpc/lib/graphql/Fragments/Blocks/CarouselCards.graphql.ts
Linus Flood 5fc93472f4 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
2026-01-27 12:38:36 +00:00

117 lines
3.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 { ContentCardBlock } from "./ContentCard.graphql"
export const CarouselCards_StartPage = gql`
fragment CarouselCards_StartPage on StartPageBlocksCarouselCards {
carousel_cards {
heading
enable_filters
card_groups {
filter_label
filter_identifier
cardConnection {
edges {
node {
...ContentCardBlock
}
}
}
}
link {
cta_text
is_contentstack_link
open_in_new_tab
external_link {
href
title
}
linkConnection {
edges {
node {
__typename
...AccountPageLink
...CampaignOverviewPageLink
...CampaignPageLink
...CollectionPageLink
...ContentPageLink
...DestinationCityPageLink
...DestinationCountryPageLink
...DestinationOverviewPageLink
...HotelPageLink
...LoyaltyPageLink
...PromoCampaignPageLink
}
}
}
}
}
}
${ContentCardBlock}
${AccountPageLink}
${CampaignOverviewPageLink}
${CampaignPageLink}
${CollectionPageLink}
${ContentPageLink}
${DestinationCityPageLink}
${DestinationCountryPageLink}
${DestinationOverviewPageLink}
${HotelPageLink}
${LoyaltyPageLink}
${PromoCampaignPageLink}
`
export const CarouselCards_CampaignPage = gql`
fragment CarouselCards_CampaignPage on CampaignPageBlocksCarouselCards {
carousel_cards {
heading
preamble
enable_filters
card_groups {
filter_label
filter_identifier
cardConnection {
edges {
node {
...ContentCardBlock
}
}
}
}
}
}
${ContentCardBlock}
`
export const CarouselCards_CampaignOverviewPage = gql`
fragment CarouselCards_CampaignOverviewPage on CampaignOverviewPageBlocksCarouselCards {
carousel_cards {
heading
enable_filters
card_groups {
filter_label
filter_identifier
cardConnection {
edges {
node {
...ContentCardBlock
}
}
}
}
}
}
${ContentCardBlock}
`