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:
147
packages/trpc/lib/graphql/Query/ContentPage/ContentPage.graphql
Normal file
147
packages/trpc/lib/graphql/Query/ContentPage/ContentPage.graphql
Normal file
@@ -0,0 +1,147 @@
|
||||
#import "../../Fragments/System.graphql"
|
||||
|
||||
#import "../../Fragments/Blocks/Accordion.graphql"
|
||||
#import "../../Fragments/Blocks/CardsGrid.graphql"
|
||||
#import "../../Fragments/Blocks/Content.graphql"
|
||||
#import "../../Fragments/Blocks/DynamicContent.graphql"
|
||||
#import "../../Fragments/Blocks/HotelListing.graphql"
|
||||
#import "../../Fragments/Blocks/Shortcuts.graphql"
|
||||
#import "../../Fragments/Blocks/Table.graphql"
|
||||
#import "../../Fragments/Blocks/TextCols.graphql"
|
||||
#import "../../Fragments/Blocks/UspGrid.graphql"
|
||||
#import "../../Fragments/ContentPage/NavigationLinks.graphql"
|
||||
#import "../../Fragments/ContentPage/TopPrimaryButton.graphql"
|
||||
|
||||
#import "../../Fragments/Sidebar/Content.graphql"
|
||||
#import "../../Fragments/Sidebar/DynamicContent.graphql"
|
||||
#import "../../Fragments/Sidebar/JoinLoyaltyContact.graphql"
|
||||
#import "../../Fragments/Sidebar/TeaserCard.graphql"
|
||||
#import "../../Fragments/Sidebar/ScriptedCard.graphql"
|
||||
#import "../../Fragments/Sidebar/QuickLinks.graphql"
|
||||
|
||||
query GetContentPage($locale: String!, $uid: String!) {
|
||||
content_page(uid: $uid, locale: $locale) {
|
||||
hero_image
|
||||
title
|
||||
header {
|
||||
heading
|
||||
preamble
|
||||
dynamic_content {
|
||||
component
|
||||
}
|
||||
...TopPrimaryButton_ContentPage
|
||||
...NavigationLinks_ContentPage
|
||||
}
|
||||
meeting_package {
|
||||
show_widget
|
||||
location
|
||||
}
|
||||
blocks {
|
||||
__typename
|
||||
}
|
||||
sidebar {
|
||||
__typename
|
||||
...ContentSidebar_ContentPage
|
||||
...DynamicContentSidebar_ContentPage
|
||||
...JoinLoyaltyContactSidebar_ContentPage
|
||||
...ScriptedCardSidebar_ContentPage
|
||||
...TeaserCardSidebar_ContentPage
|
||||
...QuickLinksSidebar_ContentPage
|
||||
}
|
||||
system {
|
||||
...System
|
||||
created_at
|
||||
updated_at
|
||||
}
|
||||
}
|
||||
trackingProps: content_page(locale: "en", uid: $uid) {
|
||||
url
|
||||
}
|
||||
}
|
||||
|
||||
query GetContentPageBlocksBatch1($locale: String!, $uid: String!) {
|
||||
content_page(uid: $uid, locale: $locale) {
|
||||
blocks {
|
||||
__typename
|
||||
...Accordion_ContentPage
|
||||
...CardsGrid_ContentPage
|
||||
...Content_ContentPage
|
||||
...DynamicContent_ContentPage
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
query GetContentPageBlocksBatch2($locale: String!, $uid: String!) {
|
||||
content_page(uid: $uid, locale: $locale) {
|
||||
blocks {
|
||||
__typename
|
||||
...HotelListing_ContentPage
|
||||
...Shortcuts_ContentPage
|
||||
...Table_ContentPage
|
||||
...TextCols_ContentPage
|
||||
...UspGrid_ContentPage
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
query GetContentPageRefs($locale: String!, $uid: String!) {
|
||||
content_page(locale: $locale, uid: $uid) {
|
||||
header {
|
||||
dynamic_content {
|
||||
component
|
||||
}
|
||||
...NavigationLinksRef_ContentPage
|
||||
...TopPrimaryButtonRef_ContentPage
|
||||
}
|
||||
sidebar {
|
||||
__typename
|
||||
...ContentSidebar_ContentPageRefs
|
||||
...JoinLoyaltyContactSidebar_ContentPageRefs
|
||||
...ScriptedCardSidebar_ContentPageRefs
|
||||
...TeaserCardSidebar_ContentPageRefs
|
||||
...QuickLinksSidebar_ContentPageRefs
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
query GetContentPageBlocksRefs($locale: String!, $uid: String!) {
|
||||
content_page(locale: $locale, uid: $uid) {
|
||||
blocks {
|
||||
__typename
|
||||
...Accordion_ContentPageRefs
|
||||
...CardsGrid_ContentPageRefs
|
||||
...Content_ContentPageRefs
|
||||
...DynamicContent_ContentPageRefs
|
||||
...Shortcuts_ContentPageRefs
|
||||
...TextCols_ContentPageRef
|
||||
...UspGrid_ContentPageRefs
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
query GetDaDeEnUrlsContentPage($uid: String!) {
|
||||
de: content_page(locale: "de", uid: $uid) {
|
||||
url
|
||||
}
|
||||
en: content_page(locale: "en", uid: $uid) {
|
||||
url
|
||||
}
|
||||
da: content_page(locale: "da", uid: $uid) {
|
||||
url
|
||||
}
|
||||
}
|
||||
|
||||
query GetFiNoSvUrlsContentPage($uid: String!) {
|
||||
fi: content_page(locale: "fi", uid: $uid) {
|
||||
url
|
||||
}
|
||||
no: content_page(locale: "no", uid: $uid) {
|
||||
url
|
||||
}
|
||||
sv: content_page(locale: "sv", uid: $uid) {
|
||||
url
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user