Merged in revert-gql (pull request #3104)

Revert gql

* Revert "Merged in fix/system-fragment (pull request #3102)"

This reverts commit 0d479eb337.

* Revert "Merged in chore/replace-graphql-tag/loader (pull request #3096)"

This reverts commit e9bd159e98.
This commit is contained in:
Linus Flood
2025-11-07 13:13:28 +00:00
parent cab85f3ffd
commit 5770dcdd9c
291 changed files with 8000 additions and 11733 deletions

View File

@@ -1,125 +0,0 @@
import { gql } from "graphql-tag"
import { AccountPageRef } from "../Fragments/AccountPage/Ref.graphql"
import { CampaignOverviewPageRef } from "../Fragments/CampaignOverviewPage/Ref.graphql"
import { CampaignPageRef } from "../Fragments/CampaignPage/Ref.graphql"
import { CollectionPageRef } from "../Fragments/CollectionPage/Ref.graphql"
import { ContentPageRef } from "../Fragments/ContentPage/Ref.graphql"
import { DestinationCityPageRef } from "../Fragments/DestinationCityPage/Ref.graphql"
import { DestinationCountryPageRef } from "../Fragments/DestinationCountryPage/Ref.graphql"
import { DestinationOverviewPageRef } from "../Fragments/DestinationOverviewPage/Ref.graphql"
import { HotelPageRef } from "../Fragments/HotelPage/Ref.graphql"
import { LoyaltyPageRef } from "../Fragments/LoyaltyPage/Ref.graphql"
import { AccountPageLink } from "../Fragments/PageLink/AccountPageLink.graphql"
import { CampaignOverviewPageLink } from "../Fragments/PageLink/CampaignOverviewPageLink.graphql"
import { CampaignPageLink } from "../Fragments/PageLink/CampaignPageLink.graphql"
import { CollectionPageLink } from "../Fragments/PageLink/CollectionPageLink.graphql"
import { ContentPageLink } from "../Fragments/PageLink/ContentPageLink.graphql"
import { DestinationCityPageLink } from "../Fragments/PageLink/DestinationCityPageLink.graphql"
import { DestinationCountryPageLink } from "../Fragments/PageLink/DestinationCountryPageLink.graphql"
import { DestinationOverviewPageLink } from "../Fragments/PageLink/DestinationOverviewPageLink.graphql"
import { HotelPageLink } from "../Fragments/PageLink/HotelPageLink.graphql"
import { LoyaltyPageLink } from "../Fragments/PageLink/LoyaltyPageLink.graphql"
import { PromoCampaignPageLink } from "../Fragments/PageLink/PromoCampaignPageLink.graphql"
import { StartPageLink } from "../Fragments/PageLink/StartPageLink.graphql"
import { PromoCampaignPageRef } from "../Fragments/PromoCampaignPage/Ref.graphql"
import { StartPageRef } from "../Fragments/StartPage/Ref.graphql"
import { System } from "../Fragments/System.graphql"
export const GetRewards = gql`
query GetRewards($locale: String!, $rewardIds: [String!]) {
all_reward(locale: $locale, where: { reward_id_in: $rewardIds }) {
items {
taxonomies {
term_uid
}
label
grouped_label
description
redeem_description {
json
embedded_itemsConnection {
edges {
node {
__typename
...AccountPageLink
...CampaignOverviewPageLink
...CampaignPageLink
...CollectionPageLink
...ContentPageLink
...DestinationCityPageLink
...DestinationCountryPageLink
...DestinationOverviewPageLink
...HotelPageLink
...LoyaltyPageLink
...StartPageLink
...PromoCampaignPageLink
}
}
}
}
grouped_description
value
reward_id
}
}
}
${AccountPageLink}
${CampaignOverviewPageLink}
${CampaignPageLink}
${CollectionPageLink}
${ContentPageLink}
${DestinationCityPageLink}
${DestinationCountryPageLink}
${DestinationOverviewPageLink}
${HotelPageLink}
${LoyaltyPageLink}
${StartPageLink}
${PromoCampaignPageLink}
`
export const GetRewardsRef = gql`
query GetRewardsRef($locale: String!, $rewardIds: [String!]) {
all_reward(locale: $locale, where: { reward_id_in: $rewardIds }) {
items {
redeem_description {
embedded_itemsConnection {
edges {
node {
__typename
...AccountPageRef
...CampaignOverviewPageRef
...CampaignPageRef
...CollectionPageRef
...ContentPageRef
...DestinationCityPageRef
...DestinationCountryPageRef
...DestinationOverviewPageRef
...HotelPageRef
...LoyaltyPageRef
...StartPageRef
...PromoCampaignPageRef
}
}
}
}
system {
...System
}
}
}
}
${System}
${AccountPageRef}
${CampaignOverviewPageRef}
${CampaignPageRef}
${CollectionPageRef}
${ContentPageRef}
${DestinationCityPageRef}
${DestinationCountryPageRef}
${DestinationOverviewPageRef}
${HotelPageRef}
${LoyaltyPageRef}
${StartPageRef}
${PromoCampaignPageRef}
`