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,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}
|
||||
`
|
||||
|
||||
Reference in New Issue
Block a user