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
26 lines
509 B
TypeScript
26 lines
509 B
TypeScript
import { gql } from "graphql-tag"
|
|
|
|
import { Alert } from "../Fragments/Alert.graphql"
|
|
|
|
export const GetSiteConfig = gql`
|
|
query GetSiteConfig($locale: String!) {
|
|
all_site_config(limit: 1, locale: $locale) {
|
|
items {
|
|
sitewide_alert {
|
|
alerts {
|
|
booking_widget_disabled
|
|
alertConnection {
|
|
edges {
|
|
node {
|
|
...Alert
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
${Alert}
|
|
`
|