feat(SW-497): Changes to global alert schema
This commit is contained in:
36
lib/graphql/Fragments/Alert.graphql
Normal file
36
lib/graphql/Fragments/Alert.graphql
Normal 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
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,10 +0,0 @@
|
||||
fragment GlobalAlert on GlobalAlert {
|
||||
type
|
||||
heading
|
||||
text
|
||||
phone_contact {
|
||||
display_text
|
||||
phone_number
|
||||
footnote
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user