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:
102
packages/trpc/lib/graphql/Query/LoyaltyPage/LoyaltyPage.graphql
Normal file
102
packages/trpc/lib/graphql/Query/LoyaltyPage/LoyaltyPage.graphql
Normal file
@@ -0,0 +1,102 @@
|
||||
#import "../../Fragments/System.graphql"
|
||||
|
||||
#import "../../Fragments/Blocks/CardsGrid.graphql"
|
||||
#import "../../Fragments/Blocks/Content.graphql"
|
||||
#import "../../Fragments/Blocks/DynamicContent.graphql"
|
||||
#import "../../Fragments/Blocks/Shortcuts.graphql"
|
||||
|
||||
#import "../../Fragments/Sidebar/Content.graphql"
|
||||
#import "../../Fragments/Sidebar/DynamicContent.graphql"
|
||||
#import "../../Fragments/Sidebar/JoinLoyaltyContact.graphql"
|
||||
|
||||
query GetLoyaltyPage($locale: String!, $uid: String!) {
|
||||
loyalty_page(uid: $uid, locale: $locale) {
|
||||
heading
|
||||
hero_image
|
||||
preamble
|
||||
title
|
||||
blocks {
|
||||
__typename
|
||||
...CardsGrid_LoyaltyPage
|
||||
...Content_LoyaltyPage
|
||||
...DynamicContent_LoyaltyPage
|
||||
...Shortcuts_LoyaltyPage
|
||||
}
|
||||
sidebar {
|
||||
__typename
|
||||
...ContentSidebar_LoyaltyPage
|
||||
...DynamicContentSidebar_LoyaltyPage
|
||||
...JoinLoyaltyContactSidebar_LoyaltyPage
|
||||
}
|
||||
system {
|
||||
...System
|
||||
created_at
|
||||
updated_at
|
||||
}
|
||||
}
|
||||
trackingProps: loyalty_page(locale: "en", uid: $uid) {
|
||||
url
|
||||
}
|
||||
}
|
||||
|
||||
query GetLoyaltyPageRefs($locale: String!, $uid: String!) {
|
||||
loyalty_page(locale: $locale, uid: $uid) {
|
||||
blocks {
|
||||
__typename
|
||||
...CardsGrid_LoyaltyPageRefs
|
||||
...Content_LoyaltyPageRefs
|
||||
...DynamicContent_LoyaltyPageRefs
|
||||
...Shortcuts_LoyaltyPageRefs
|
||||
}
|
||||
sidebar {
|
||||
__typename
|
||||
...ContentSidebar_LoyaltyPageRefs
|
||||
...JoinLoyaltyContactSidebar_LoyaltyPageRefs
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
query GetDaDeEnUrlsLoyaltyPage($uid: String!) {
|
||||
de: loyalty_page(locale: "de", uid: $uid) {
|
||||
web {
|
||||
original_url
|
||||
}
|
||||
url
|
||||
}
|
||||
en: loyalty_page(locale: "en", uid: $uid) {
|
||||
web {
|
||||
original_url
|
||||
}
|
||||
url
|
||||
}
|
||||
da: loyalty_page(locale: "da", uid: $uid) {
|
||||
web {
|
||||
original_url
|
||||
}
|
||||
url
|
||||
}
|
||||
}
|
||||
|
||||
query GetFiNoSvUrlsLoyaltyPage($uid: String!) {
|
||||
sv: loyalty_page(locale: "sv", uid: $uid) {
|
||||
web {
|
||||
original_url
|
||||
}
|
||||
url
|
||||
}
|
||||
no: loyalty_page(locale: "no", uid: $uid) {
|
||||
web {
|
||||
original_url
|
||||
}
|
||||
url
|
||||
}
|
||||
fi: loyalty_page(locale: "fi", uid: $uid) {
|
||||
web {
|
||||
original_url
|
||||
}
|
||||
url
|
||||
}
|
||||
}
|
||||
31
packages/trpc/lib/graphql/Query/LoyaltyPage/Metadata.graphql
Normal file
31
packages/trpc/lib/graphql/Query/LoyaltyPage/Metadata.graphql
Normal file
@@ -0,0 +1,31 @@
|
||||
#import "../../Fragments/Metadata.graphql"
|
||||
#import "../../Fragments/System.graphql"
|
||||
|
||||
query GetLoyaltyPageMetadata($locale: String!, $uid: String!) {
|
||||
loyalty_page(locale: $locale, uid: $uid) {
|
||||
web {
|
||||
breadcrumbs {
|
||||
title
|
||||
}
|
||||
seo_metadata {
|
||||
...Metadata
|
||||
}
|
||||
}
|
||||
heading
|
||||
preamble
|
||||
hero_image
|
||||
blocks {
|
||||
... on LoyaltyPageBlocksContent {
|
||||
__typename
|
||||
content {
|
||||
content {
|
||||
json
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user