feat(SW-497): Changes to global alert schema

This commit is contained in:
Erik Tiekstra
2024-10-16 12:30:59 +02:00
parent 3f12246e12
commit c8d4f6c47c
8 changed files with 131 additions and 49 deletions

View File

@@ -0,0 +1,36 @@
#import "./PageLink/AccountPageLink.graphql"
#import "./PageLink/ContentPageLink.graphql"
#import "./PageLink/HotelPageLink.graphql"
#import "./PageLink/LoyaltyPageLink.graphql"
fragment Alert on Alert {
type
heading
text
phone_contact {
display_text
phone_number
footnote
}
has_sidepeek_button
sidepeek_button {
cta_text
}
sidepeek_content {
heading
content {
embedded_itemsConnection {
edges {
node {
__typename
...AccountPageLink
...ContentPageLink
...HotelPageLink
...LoyaltyPageLink
}
}
}
json
}
}
}

View File

@@ -1,10 +0,0 @@
fragment GlobalAlert on GlobalAlert {
type
heading
text
phone_contact {
display_text
phone_number
footnote
}
}

View File

@@ -1,4 +1,4 @@
#import "../Fragments/GlobalAlert.graphql"
#import "../Fragments/Alert.graphql"
query GetSiteConfig($locale: String!) {
all_site_config(limit: 1, locale: $locale) {
@@ -8,7 +8,7 @@ query GetSiteConfig($locale: String!) {
alertConnection {
edges {
node {
...GlobalAlert
...Alert
}
}
}