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:
Linus Flood
2026-01-27 12:38:36 +00:00
parent a5e214f783
commit 5fc93472f4
193 changed files with 489 additions and 9018 deletions

View File

@@ -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}
`