Files
web/packages/trpc/lib/graphql/Query/AccountPage/AccountPage.graphql.ts
Joakim Jäderberg e9bd159e98 Merged in chore/replace-graphql-tag/loader (pull request #3096)
Use turbopack for dev builds.
Remove graphql-tag/loader, replaced by gql`` tag literals instead.



Approved-by: Linus Flood
2025-11-07 12:33:17 +00:00

98 lines
2.2 KiB
TypeScript

import { gql } from "graphql-tag"
import {
Accordion_AccountPage,
Accordion_AccountPageRefs,
} from "../../Fragments/Blocks/Accordion.graphql"
import {
DynamicContent_AccountPage,
DynamicContent_AccountPageRefs,
} from "../../Fragments/Blocks/DynamicContent.graphql"
import {
Shortcuts_AccountPage,
Shortcuts_AccountPageRefs,
} from "../../Fragments/Blocks/Shortcuts.graphql"
import { TextContent_AccountPage } from "../../Fragments/Blocks/TextContent.graphql"
import { System } from "../../Fragments/System.graphql"
export const GetAccountPage = gql`
query GetAccountPage($locale: String!, $uid: String!) {
account_page(locale: $locale, uid: $uid) {
heading
preamble
hero_image
hero_image_active
title
url
content {
__typename
...Accordion_AccountPage
...DynamicContent_AccountPage
...Shortcuts_AccountPage
...TextContent_AccountPage
}
system {
...System
created_at
updated_at
}
}
trackingProps: account_page(locale: "en", uid: $uid) {
url
}
}
${System}
${Accordion_AccountPage}
${DynamicContent_AccountPage}
${Shortcuts_AccountPage}
${TextContent_AccountPage}
`
export const GetAccountPageRefs = gql`
query GetAccountPageRefs($locale: String!, $uid: String!) {
account_page(locale: $locale, uid: $uid) {
content {
__typename
...Accordion_AccountPageRefs
...DynamicContent_AccountPageRefs
...Shortcuts_AccountPageRefs
}
system {
...System
}
}
}
${System}
${Accordion_AccountPageRefs}
${DynamicContent_AccountPageRefs}
${Shortcuts_AccountPageRefs}
`
export const GetDaDeEnUrlsAccountPage = gql`
query GetDaDeEnUrlsAccountPage($uid: String!) {
de: account_page(locale: "de", uid: $uid) {
url
}
en: account_page(locale: "en", uid: $uid) {
url
}
da: account_page(locale: "da", uid: $uid) {
url
}
}
`
export const GetFiNoSvUrlsAccountPage = gql`
query GetFiNoSvUrlsAccountPage($uid: String!) {
fi: account_page(locale: "fi", uid: $uid) {
url
}
no: account_page(locale: "no", uid: $uid) {
url
}
sv: account_page(locale: "sv", uid: $uid) {
url
}
}
`