Merged in feat/sw-2863-move-contentstack-router-to-trpc-package (pull request #2389)
feat(SW-2863): Move contentstack router to trpc package * Add exports to packages and lint rule to prevent relative imports * Add env to trpc package * Add eslint to trpc package * Apply lint rules * Use direct imports from trpc package * Add lint-staged config to trpc * Move lang enum to common * Restructure trpc package folder structure * WIP first step * update internal imports in trpc * Fix most errors in scandic-web Just 100 left... * Move Props type out of trpc * Fix CategorizedFilters types * Move more schemas in hotel router * Fix deps * fix getNonContentstackUrls * Fix import error * Fix entry error handling * Fix generateMetadata metrics * Fix alertType enum * Fix duplicated types * lint:fix * Merge branch 'master' into feat/sw-2863-move-contentstack-router-to-trpc-package * Fix broken imports * Merge branch 'master' into feat/sw-2863-move-contentstack-router-to-trpc-package Approved-by: Linus Flood
This commit is contained in:
149
packages/trpc/lib/graphql/Query/HotelPage/HotelPage.graphql
Normal file
149
packages/trpc/lib/graphql/Query/HotelPage/HotelPage.graphql
Normal file
@@ -0,0 +1,149 @@
|
||||
#import "../../Fragments/PageLink/CollectionPageLink.graphql"
|
||||
#import "../../Fragments/PageLink/ContentPageLink.graphql"
|
||||
|
||||
#import "../../Fragments/AccountPage/Ref.graphql"
|
||||
#import "../../Fragments/CollectionPage/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
|
||||
}
|
||||
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 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
|
||||
...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
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
#import "../../Fragments/System.graphql"
|
||||
|
||||
query GetHotelPageCount($locale: String!) {
|
||||
all_hotel_page(locale: $locale) {
|
||||
total
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
#import "../../Fragments/System.graphql"
|
||||
|
||||
query GetHotelPageUrls($locale: String!, $skip: Int) {
|
||||
all_hotel_page(locale: $locale, limit: 100, skip: $skip) {
|
||||
items {
|
||||
url
|
||||
hotel_page_id
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
19
packages/trpc/lib/graphql/Query/HotelPage/Metadata.graphql
Normal file
19
packages/trpc/lib/graphql/Query/HotelPage/Metadata.graphql
Normal file
@@ -0,0 +1,19 @@
|
||||
#import "../../Fragments/Metadata.graphql"
|
||||
#import "../../Fragments/System.graphql"
|
||||
|
||||
query GetHotelPageMetadata($locale: String!, $uid: String!) {
|
||||
hotel_page(locale: $locale, uid: $uid) {
|
||||
hotel_page_id
|
||||
web {
|
||||
breadcrumbs {
|
||||
title
|
||||
}
|
||||
seo_metadata {
|
||||
...Metadata
|
||||
}
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user