Merged in feature/turbopack (pull request #3117)
Feature/turbopack * . * . * pin import-in-the-middle * update marker * revert back to using *.graphql.ts Approved-by: Linus Flood
This commit is contained in:
51
packages/trpc/lib/graphql/Query/SiteConfig.graphql.ts
Normal file
51
packages/trpc/lib/graphql/Query/SiteConfig.graphql.ts
Normal file
@@ -0,0 +1,51 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import { Alert, AlertRef } from "../Fragments/Alert.graphql"
|
||||
import { System } from "../Fragments/System.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}
|
||||
`
|
||||
|
||||
export const GetSiteConfigRef = gql`
|
||||
query GetSiteConfigRef($locale: String!) {
|
||||
all_site_config(limit: 1, locale: $locale) {
|
||||
items {
|
||||
sitewide_alert {
|
||||
alerts {
|
||||
alertConnection {
|
||||
edges {
|
||||
node {
|
||||
...AlertRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
${System}
|
||||
${AlertRef}
|
||||
`
|
||||
Reference in New Issue
Block a user