Files
web/packages/trpc/lib/graphql/Fragments/Alert.graphql.ts
Joakim Jäderberg 0d479eb337 Merged in fix/system-fragment (pull request #3102)
fix: faulty system fragment

* fix: faulty system fragment


Approved-by: Linus Flood
2025-11-07 12:45:36 +00:00

174 lines
5.0 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"
import { System } from "./System.graphql"
export const Alert = gql`
fragment Alert on Alert {
type
heading
text
phone_contact {
display_text
phone_number
footnote
}
has_link
link {
title
linkConnection {
edges {
node {
__typename
...AccountPageLink
...CampaignOverviewPageLink
...CampaignPageLink
...CollectionPageLink
...ContentPageLink
...DestinationCityPageLink
...DestinationCountryPageLink
...DestinationOverviewPageLink
...HotelPageLink
...LoyaltyPageLink
...StartPageLink
...PromoCampaignPageLink
}
}
}
}
has_sidepeek_button
sidepeek_button {
cta_text
}
sidepeek_content {
heading
content {
embedded_itemsConnection {
edges {
node {
__typename
...AccountPageLink
...CampaignOverviewPageLink
...CampaignPageLink
...CollectionPageLink
...ContentPageLink
...DestinationCityPageLink
...DestinationCountryPageLink
...DestinationOverviewPageLink
...HotelPageLink
...LoyaltyPageLink
...StartPageLink
...PromoCampaignPageLink
}
}
}
json
}
}
visible_on
}
${AccountPageLink}
${CampaignOverviewPageLink}
${CampaignPageLink}
${CollectionPageLink}
${ContentPageLink}
${DestinationCityPageLink}
${DestinationCountryPageLink}
${DestinationOverviewPageLink}
${HotelPageLink}
${LoyaltyPageLink}
${StartPageLink}
${PromoCampaignPageLink}
`
export const AlertRef = gql`
fragment AlertRef on Alert {
link {
linkConnection {
edges {
node {
__typename
...AccountPageRef
...CampaignOverviewPageRef
...CampaignPageRef
...CollectionPageRef
...ContentPageRef
...DestinationCityPageRef
...DestinationCountryPageRef
...DestinationOverviewPageRef
...HotelPageRef
...LoyaltyPageRef
...StartPageRef
...PromoCampaignPageRef
}
}
}
}
sidepeek_content {
content {
embedded_itemsConnection {
edges {
node {
__typename
...AccountPageRef
...CampaignOverviewPageRef
...CampaignPageRef
...CollectionPageRef
...ContentPageRef
...DestinationCityPageRef
...DestinationCountryPageRef
...DestinationOverviewPageRef
...HotelPageRef
...LoyaltyPageRef
...StartPageRef
...PromoCampaignPageRef
}
}
}
json
}
}
system {
...System
}
visible_on
}
${System}
${AccountPageRef}
${CampaignOverviewPageRef}
${CampaignPageRef}
${CollectionPageRef}
${ContentPageRef}
${DestinationCityPageRef}
${DestinationCountryPageRef}
${DestinationOverviewPageRef}
${HotelPageRef}
${LoyaltyPageRef}
${StartPageRef}
${PromoCampaignPageRef}
`