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
This commit is contained in:
@@ -1,172 +0,0 @@
|
||||
#import "../../Fragments/PageLink/CollectionPageLink.graphql"
|
||||
#import "../../Fragments/PageLink/ContentPageLink.graphql"
|
||||
|
||||
#import "../../Fragments/AccountPage/Ref.graphql"
|
||||
#import "../../Fragments/CollectionPage/Ref.graphql"
|
||||
#import "../../Fragments/ContentPage/Ref.graphql"
|
||||
|
||||
#import "../../Fragments/Blocks/Accordion.graphql"
|
||||
#import "../../Fragments/Blocks/Refs/Accordion.graphql"
|
||||
|
||||
query GetHotelPage($locale: String!, $uid: String!) {
|
||||
hotel_page(locale: $locale, uid: $uid) {
|
||||
hotel_page_id
|
||||
title
|
||||
url
|
||||
hotel_navigation {
|
||||
overview
|
||||
rooms
|
||||
restaurant_bar
|
||||
conferences_meetings
|
||||
health_wellness
|
||||
activities
|
||||
offers
|
||||
faq
|
||||
}
|
||||
campaigns {
|
||||
heading
|
||||
preamble
|
||||
prioritized_campaignsConnection {
|
||||
edges {
|
||||
node {
|
||||
... on CampaignPage {
|
||||
system {
|
||||
uid
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
faq {
|
||||
__typename
|
||||
title
|
||||
global_faqConnection {
|
||||
__typename
|
||||
edges {
|
||||
node {
|
||||
...AccordionBlock
|
||||
}
|
||||
}
|
||||
}
|
||||
specific_faq {
|
||||
__typename
|
||||
...GlobalAccordionBlock
|
||||
}
|
||||
}
|
||||
content {
|
||||
__typename
|
||||
... on HotelPageContentUpcomingActivitiesCard {
|
||||
upcoming_activities_card {
|
||||
background_image
|
||||
cta_text
|
||||
sidepeek_cta_text
|
||||
heading
|
||||
body_text
|
||||
scripted_title
|
||||
sidepeek_slug
|
||||
hotel_page_activities_content_pageConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
... on ContentPage {
|
||||
...ContentPageLink
|
||||
header {
|
||||
preamble
|
||||
}
|
||||
}
|
||||
... on CollectionPage {
|
||||
...CollectionPageLink
|
||||
header {
|
||||
preamble
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
... on HotelPageContentSpaPage {
|
||||
spa_page {
|
||||
button_cta
|
||||
pageConnection {
|
||||
edges {
|
||||
node {
|
||||
...CollectionPageLink
|
||||
...ContentPageLink
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
system {
|
||||
...System
|
||||
created_at
|
||||
updated_at
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
query GetHotelPageRefs($locale: String!, $uid: String!) {
|
||||
hotel_page(locale: $locale, uid: $uid) {
|
||||
faq {
|
||||
global_faqConnection {
|
||||
edges {
|
||||
node {
|
||||
...AccordionBlockRefs
|
||||
}
|
||||
}
|
||||
}
|
||||
specific_faq {
|
||||
...GlobalAccordionBlockRefs
|
||||
}
|
||||
}
|
||||
content {
|
||||
__typename
|
||||
... on HotelPageContentUpcomingActivitiesCard {
|
||||
upcoming_activities_card {
|
||||
hotel_page_activities_content_pageConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...CollectionPageRef
|
||||
...ContentPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
trackingProps: hotel_page(locale: "en", uid: $uid) {
|
||||
url
|
||||
}
|
||||
}
|
||||
|
||||
query GetDaDeEnUrlsHotelPage($uid: String!) {
|
||||
de: hotel_page(locale: "de", uid: $uid) {
|
||||
url
|
||||
}
|
||||
en: hotel_page(locale: "en", uid: $uid) {
|
||||
url
|
||||
}
|
||||
da: hotel_page(locale: "da", uid: $uid) {
|
||||
url
|
||||
}
|
||||
}
|
||||
|
||||
query GetFiNoSvUrlsHotelPage($uid: String!) {
|
||||
fi: hotel_page(locale: "fi", uid: $uid) {
|
||||
url
|
||||
}
|
||||
no: hotel_page(locale: "no", uid: $uid) {
|
||||
url
|
||||
}
|
||||
sv: hotel_page(locale: "sv", uid: $uid) {
|
||||
url
|
||||
}
|
||||
}
|
||||
196
packages/trpc/lib/graphql/Query/HotelPage/HotelPage.graphql.ts
Normal file
196
packages/trpc/lib/graphql/Query/HotelPage/HotelPage.graphql.ts
Normal file
@@ -0,0 +1,196 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import {
|
||||
AccordionBlock,
|
||||
GlobalAccordionBlock,
|
||||
} from "../../Fragments/Blocks/Accordion.graphql"
|
||||
import {
|
||||
AccordionBlockRefs,
|
||||
GlobalAccordionBlockRefs,
|
||||
} from "../../Fragments/Blocks/Refs/Accordion.graphql"
|
||||
import { CollectionPageRef } from "../../Fragments/CollectionPage/Ref.graphql"
|
||||
import { ContentPageRef } from "../../Fragments/ContentPage/Ref.graphql"
|
||||
import { CollectionPageLink } from "../../Fragments/PageLink/CollectionPageLink.graphql"
|
||||
import { ContentPageLink } from "../../Fragments/PageLink/ContentPageLink.graphql"
|
||||
import { System } from "../../Fragments/System.graphql"
|
||||
|
||||
export const GetHotelPage = gql`
|
||||
query GetHotelPage($locale: String!, $uid: String!) {
|
||||
hotel_page(locale: $locale, uid: $uid) {
|
||||
hotel_page_id
|
||||
title
|
||||
url
|
||||
hotel_navigation {
|
||||
overview
|
||||
rooms
|
||||
restaurant_bar
|
||||
conferences_meetings
|
||||
health_wellness
|
||||
activities
|
||||
offers
|
||||
faq
|
||||
}
|
||||
campaigns {
|
||||
heading
|
||||
preamble
|
||||
prioritized_campaignsConnection {
|
||||
edges {
|
||||
node {
|
||||
... on CampaignPage {
|
||||
system {
|
||||
uid
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
faq {
|
||||
__typename
|
||||
title
|
||||
global_faqConnection {
|
||||
__typename
|
||||
edges {
|
||||
node {
|
||||
...AccordionBlock
|
||||
}
|
||||
}
|
||||
}
|
||||
specific_faq {
|
||||
__typename
|
||||
...GlobalAccordionBlock
|
||||
}
|
||||
}
|
||||
content {
|
||||
__typename
|
||||
... on HotelPageContentUpcomingActivitiesCard {
|
||||
upcoming_activities_card {
|
||||
background_image
|
||||
cta_text
|
||||
sidepeek_cta_text
|
||||
heading
|
||||
body_text
|
||||
scripted_title
|
||||
sidepeek_slug
|
||||
hotel_page_activities_content_pageConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
... on ContentPage {
|
||||
...ContentPageLink
|
||||
header {
|
||||
preamble
|
||||
}
|
||||
}
|
||||
... on CollectionPage {
|
||||
...CollectionPageLink
|
||||
header {
|
||||
preamble
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
... on HotelPageContentSpaPage {
|
||||
spa_page {
|
||||
button_cta
|
||||
pageConnection {
|
||||
edges {
|
||||
node {
|
||||
...CollectionPageLink
|
||||
...ContentPageLink
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
system {
|
||||
...System
|
||||
created_at
|
||||
updated_at
|
||||
}
|
||||
}
|
||||
}
|
||||
${System}
|
||||
${AccordionBlock}
|
||||
${GlobalAccordionBlock}
|
||||
${ContentPageLink}
|
||||
${CollectionPageLink}
|
||||
`
|
||||
|
||||
export const GetHotelPageRefs = gql`
|
||||
query GetHotelPageRefs($locale: String!, $uid: String!) {
|
||||
hotel_page(locale: $locale, uid: $uid) {
|
||||
faq {
|
||||
global_faqConnection {
|
||||
edges {
|
||||
node {
|
||||
...AccordionBlockRefs
|
||||
}
|
||||
}
|
||||
}
|
||||
specific_faq {
|
||||
...GlobalAccordionBlockRefs
|
||||
}
|
||||
}
|
||||
content {
|
||||
__typename
|
||||
... on HotelPageContentUpcomingActivitiesCard {
|
||||
upcoming_activities_card {
|
||||
hotel_page_activities_content_pageConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...CollectionPageRef
|
||||
...ContentPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
trackingProps: hotel_page(locale: "en", uid: $uid) {
|
||||
url
|
||||
}
|
||||
}
|
||||
${CollectionPageRef}
|
||||
${ContentPageRef}
|
||||
${AccordionBlockRefs}
|
||||
${GlobalAccordionBlockRefs}
|
||||
${System}
|
||||
`
|
||||
|
||||
export const GetDaDeEnUrlsHotelPage = gql`
|
||||
query GetDaDeEnUrlsHotelPage($uid: String!) {
|
||||
de: hotel_page(locale: "de", uid: $uid) {
|
||||
url
|
||||
}
|
||||
en: hotel_page(locale: "en", uid: $uid) {
|
||||
url
|
||||
}
|
||||
da: hotel_page(locale: "da", uid: $uid) {
|
||||
url
|
||||
}
|
||||
}
|
||||
`
|
||||
|
||||
export const GetFiNoSvUrlsHotelPage = gql`
|
||||
query GetFiNoSvUrlsHotelPage($uid: String!) {
|
||||
fi: hotel_page(locale: "fi", uid: $uid) {
|
||||
url
|
||||
}
|
||||
no: hotel_page(locale: "no", uid: $uid) {
|
||||
url
|
||||
}
|
||||
sv: hotel_page(locale: "sv", uid: $uid) {
|
||||
url
|
||||
}
|
||||
}
|
||||
`
|
||||
@@ -1,7 +0,0 @@
|
||||
#import "../../Fragments/System.graphql"
|
||||
|
||||
query GetHotelPageCount($locale: String!) {
|
||||
all_hotel_page(locale: $locale) {
|
||||
total
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
export const GetHotelPageCount = gql`
|
||||
query GetHotelPageCount($locale: String!) {
|
||||
all_hotel_page(locale: $locale) {
|
||||
total
|
||||
}
|
||||
}
|
||||
`
|
||||
@@ -1,5 +1,8 @@
|
||||
#import "../../Fragments/System.graphql"
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import { System } from "../../Fragments/System.graphql"
|
||||
|
||||
export const GetHotelPageUrls = gql`
|
||||
query GetHotelPageUrls($locale: String!, $skip: Int) {
|
||||
all_hotel_page(locale: $locale, limit: 100, skip: $skip) {
|
||||
items {
|
||||
@@ -11,3 +14,5 @@ query GetHotelPageUrls($locale: String!, $skip: Int) {
|
||||
}
|
||||
}
|
||||
}
|
||||
${System}
|
||||
`
|
||||
@@ -1,6 +1,9 @@
|
||||
#import "../../Fragments/Metadata.graphql"
|
||||
#import "../../Fragments/System.graphql"
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import { Metadata } from "../../Fragments/Metadata.graphql"
|
||||
import { System } from "../../Fragments/System.graphql"
|
||||
|
||||
export const GetHotelPageMetadata = gql`
|
||||
query GetHotelPageMetadata($locale: String!, $uid: String!) {
|
||||
hotel_page(locale: $locale, uid: $uid) {
|
||||
hotel_page_id
|
||||
@@ -17,3 +20,6 @@ query GetHotelPageMetadata($locale: String!, $uid: String!) {
|
||||
}
|
||||
}
|
||||
}
|
||||
${Metadata}
|
||||
${System}
|
||||
`
|
||||
Reference in New Issue
Block a user