Files
web/packages/trpc/lib/graphql/Fragments/Blocks/Shortcuts.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

185 lines
5.1 KiB
TypeScript

import { gql } from "graphql-tag"
import { AccountPageRef } from "../AccountPage/Ref.graphql"
import { CampaignOverviewPageRef } from "../CampaignOverviewPage/Ref.graphql"
import { CampaignPageRef } from "../CampaignPage/Ref.graphql"
import { CollectionPageRef } from "../CollectionPage/Ref.graphql"
import { ContentPageRef } from "../ContentPage/Ref.graphql"
import { DestinationCityPageRef } from "../DestinationCityPage/Ref.graphql"
import { DestinationCountryPageRef } from "../DestinationCountryPage/Ref.graphql"
import { DestinationOverviewPageRef } from "../DestinationOverviewPage/Ref.graphql"
import { HotelPageRef } from "../HotelPage/Ref.graphql"
import { LoyaltyPageRef } from "../LoyaltyPage/Ref.graphql"
import { AccountPageLink } from "../PageLink/AccountPageLink.graphql"
import { CampaignOverviewPageLink } from "../PageLink/CampaignOverviewPageLink.graphql"
import { CampaignPageLink } from "../PageLink/CampaignPageLink.graphql"
import { CollectionPageLink } from "../PageLink/CollectionPageLink.graphql"
import { ContentPageLink } from "../PageLink/ContentPageLink.graphql"
import { DestinationCityPageLink } from "../PageLink/DestinationCityPageLink.graphql"
import { DestinationCountryPageLink } from "../PageLink/DestinationCountryPageLink.graphql"
import { DestinationOverviewPageLink } from "../PageLink/DestinationOverviewPageLink.graphql"
import { HotelPageLink } from "../PageLink/HotelPageLink.graphql"
import { LoyaltyPageLink } from "../PageLink/LoyaltyPageLink.graphql"
import { PromoCampaignPageLink } from "../PageLink/PromoCampaignPageLink.graphql"
import { StartPageLink } from "../PageLink/StartPageLink.graphql"
import { PromoCampaignPageRef } from "../PromoCampaignPage/Ref.graphql"
import { StartPageRef } from "../StartPage/Ref.graphql"
export const Shortcuts = gql`
fragment Shortcuts on Shortcuts {
subtitle: preamble
title
two_column_list
shortcuts {
is_contentstack_link
external_link {
href
title
}
open_in_new_tab
text
linkConnection {
edges {
node {
__typename
...AccountPageLink
...CampaignOverviewPageLink
...CampaignPageLink
...CollectionPageLink
...ContentPageLink
...DestinationCityPageLink
...DestinationCountryPageLink
...DestinationOverviewPageLink
...HotelPageLink
...LoyaltyPageLink
...StartPageLink
...PromoCampaignPageLink
}
}
}
}
}
${AccountPageLink}
${CampaignOverviewPageLink}
${CampaignPageLink}
${CollectionPageLink}
${ContentPageLink}
${DestinationCityPageLink}
${DestinationCountryPageLink}
${DestinationOverviewPageLink}
${HotelPageLink}
${LoyaltyPageLink}
${StartPageLink}
${PromoCampaignPageLink}
`
export const Shortcuts_AccountPage = gql`
fragment Shortcuts_AccountPage on AccountPageContentShortcuts {
shortcuts {
...Shortcuts
}
}
${Shortcuts}
`
export const Shortcuts_CollectionPage = gql`
fragment Shortcuts_CollectionPage on CollectionPageBlocksShortcuts {
shortcuts {
...Shortcuts
}
}
${Shortcuts}
`
export const Shortcuts_ContentPage = gql`
fragment Shortcuts_ContentPage on ContentPageBlocksShortcuts {
shortcuts {
...Shortcuts
}
}
${Shortcuts}
`
export const Shortcuts_LoyaltyPage = gql`
fragment Shortcuts_LoyaltyPage on LoyaltyPageBlocksShortcuts {
shortcuts {
...Shortcuts
}
}
${Shortcuts}
`
export const ShortcutsRefs = gql`
fragment ShortcutsRefs on Shortcuts {
shortcuts {
linkConnection {
edges {
node {
__typename
...AccountPageRef
...CampaignOverviewPageRef
...CampaignPageRef
...CollectionPageRef
...ContentPageRef
...DestinationCityPageRef
...DestinationCountryPageRef
...DestinationOverviewPageRef
...HotelPageRef
...LoyaltyPageRef
...StartPageRef
...PromoCampaignPageRef
}
}
}
}
}
${AccountPageRef}
${CampaignOverviewPageRef}
${CampaignPageRef}
${CollectionPageRef}
${ContentPageRef}
${DestinationCityPageRef}
${DestinationCountryPageRef}
${DestinationOverviewPageRef}
${HotelPageRef}
${LoyaltyPageRef}
${StartPageRef}
${PromoCampaignPageRef}
`
export const Shortcuts_AccountPageRefs = gql`
fragment Shortcuts_AccountPageRefs on AccountPageContentShortcuts {
shortcuts {
...ShortcutsRefs
}
}
${ShortcutsRefs}
`
export const Shortcuts_CollectionPageRefs = gql`
fragment Shortcuts_CollectionPageRefs on CollectionPageBlocksShortcuts {
shortcuts {
...ShortcutsRefs
}
}
${ShortcutsRefs}
`
export const Shortcuts_ContentPageRefs = gql`
fragment Shortcuts_ContentPageRefs on ContentPageBlocksShortcuts {
shortcuts {
...ShortcutsRefs
}
}
${ShortcutsRefs}
`
export const Shortcuts_LoyaltyPageRefs = gql`
fragment Shortcuts_LoyaltyPageRefs on LoyaltyPageBlocksShortcuts {
shortcuts {
...ShortcutsRefs
}
}
${ShortcutsRefs}
`