Files
web/packages/trpc/lib/graphql/Query/CollectionPage/CollectionPage.graphql.ts
Erik Tiekstra f06e466827 Feat/BOOK-240 hero video
Approved-by: Chuma Mcphoy (We Ahead)
Approved-by: Christel Westerberg
2025-12-11 08:35:27 +00:00

133 lines
3.3 KiB
TypeScript

import { gql } from "graphql-tag"
import {
CardsGrid_CollectionPage,
CardsGrid_CollectionPageRefs,
} from "../../Fragments/Blocks/CardsGrid.graphql"
import {
DynamicContent_CollectionPage,
DynamicContent_CollectionPageRefs,
} from "../../Fragments/Blocks/DynamicContent.graphql"
import {
Shortcuts_CollectionPage,
Shortcuts_CollectionPageRefs,
} from "../../Fragments/Blocks/Shortcuts.graphql"
import {
UspGrid_CollectionPage,
UspGrid_CollectionPageRefs,
} from "../../Fragments/Blocks/UspGrid.graphql"
import {
NavigationLinks_CollectionPage,
NavigationLinksRef_CollectionPage,
} from "../../Fragments/CollectionPage/NavigationLinks.graphql"
import {
TopPrimaryButton_CollectionPage,
TopPrimaryButtonRef_CollectionPage,
} from "../../Fragments/CollectionPage/TopPrimaryButton.graphql"
import { System } from "../../Fragments/System.graphql"
import { Video, VideoRef } from "../../Fragments/Video.graphql"
export const GetCollectionPage = gql`
query GetCollectionPage($locale: String!, $uid: String!) {
collection_page(uid: $uid, locale: $locale) {
hero_image
hero_video {
...Video
}
title
header {
heading
preamble
...TopPrimaryButton_CollectionPage
...NavigationLinks_CollectionPage
}
meeting_package {
show_widget
location
}
blocks {
__typename
...CardsGrid_CollectionPage
...Shortcuts_CollectionPage
...UspGrid_CollectionPage
...DynamicContent_CollectionPage
}
system {
...System
created_at
updated_at
}
}
trackingProps: collection_page(locale: "en", uid: $uid) {
url
}
}
${TopPrimaryButton_CollectionPage}
${NavigationLinks_CollectionPage}
${CardsGrid_CollectionPage}
${Shortcuts_CollectionPage}
${UspGrid_CollectionPage}
${DynamicContent_CollectionPage}
${Video}
`
export const GetCollectionPageRefs = gql`
query GetCollectionPageRefs($locale: String!, $uid: String!) {
collection_page(locale: $locale, uid: $uid) {
hero_video {
...VideoRef
}
header {
...TopPrimaryButtonRef_CollectionPage
...NavigationLinksRef_CollectionPage
}
blocks {
__typename
...CardsGrid_CollectionPageRefs
...Shortcuts_CollectionPageRefs
...UspGrid_CollectionPageRefs
...DynamicContent_CollectionPageRefs
}
system {
...System
}
}
}
${System}
${TopPrimaryButtonRef_CollectionPage}
${NavigationLinksRef_CollectionPage}
${CardsGrid_CollectionPageRefs}
${Shortcuts_CollectionPageRefs}
${UspGrid_CollectionPageRefs}
${DynamicContent_CollectionPageRefs}
${VideoRef}
`
export const GetDaDeEnUrlsCollectionPage = gql`
query GetDaDeEnUrlsCollectionPage($uid: String!) {
de: collection_page(locale: "de", uid: $uid) {
url
}
en: collection_page(locale: "en", uid: $uid) {
url
}
da: collection_page(locale: "da", uid: $uid) {
url
}
}
`
export const GetFiNoSvUrlsCollectionPage = gql`
query GetFiNoSvUrlsCollectionPage($uid: String!) {
fi: collection_page(locale: "fi", uid: $uid) {
url
}
no: collection_page(locale: "no", uid: $uid) {
url
}
sv: collection_page(locale: "sv", uid: $uid) {
url
}
}
`