* feat(BOOK-434): Moved redirect to middleware layer * feat(BOOK-434): Updated to handle no filters available scenario Approved-by: Erik Tiekstra
151 lines
2.8 KiB
TypeScript
151 lines
2.8 KiB
TypeScript
import { gql } from "graphql-tag"
|
|
|
|
import { System } from "../Fragments/System.graphql"
|
|
|
|
export const EntryByUrlBatch1 = gql`
|
|
query EntryByUrlBatch1($locale: String!, $url: String!) {
|
|
all_account_page(where: { url: $url }, locale: $locale) {
|
|
items {
|
|
system {
|
|
...System
|
|
}
|
|
}
|
|
total
|
|
}
|
|
all_collection_page(where: { url: $url }, locale: $locale) {
|
|
items {
|
|
system {
|
|
...System
|
|
}
|
|
}
|
|
total
|
|
}
|
|
all_content_page(where: { url: $url }, locale: $locale) {
|
|
items {
|
|
system {
|
|
...System
|
|
}
|
|
}
|
|
total
|
|
}
|
|
all_current_blocks_page(where: { url: $url }, locale: $locale) {
|
|
items {
|
|
system {
|
|
...System
|
|
}
|
|
}
|
|
total
|
|
}
|
|
all_loyalty_page(where: { url: $url }, locale: $locale) {
|
|
items {
|
|
system {
|
|
...System
|
|
}
|
|
}
|
|
total
|
|
}
|
|
all_hotel_page(where: { url: $url }, locale: $locale) {
|
|
items {
|
|
system {
|
|
...System
|
|
}
|
|
}
|
|
total
|
|
}
|
|
}
|
|
|
|
${System}
|
|
`
|
|
|
|
export const EntryByUrlBatch2 = gql`
|
|
query EntryByUrlBatch2($locale: String!, $url: String!) {
|
|
all_destination_overview_page(where: { url: $url }, locale: $locale) {
|
|
items {
|
|
system {
|
|
...System
|
|
}
|
|
}
|
|
total
|
|
}
|
|
all_destination_country_page(where: { url: $url }, locale: $locale) {
|
|
items {
|
|
seo_filters {
|
|
filterConnection {
|
|
edges {
|
|
node {
|
|
... on HotelFilter {
|
|
slug
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
system {
|
|
...System
|
|
}
|
|
}
|
|
total
|
|
}
|
|
all_destination_city_page(where: { url: $url }, locale: $locale) {
|
|
items {
|
|
seo_filters {
|
|
filterConnection {
|
|
edges {
|
|
node {
|
|
... on HotelFilter {
|
|
slug
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
system {
|
|
...System
|
|
}
|
|
}
|
|
total
|
|
}
|
|
all_start_page(where: { url: $url }, locale: $locale) {
|
|
items {
|
|
system {
|
|
...System
|
|
}
|
|
}
|
|
total
|
|
}
|
|
all_campaign_page(where: { url: $url }, locale: $locale) {
|
|
items {
|
|
system {
|
|
...System
|
|
}
|
|
}
|
|
total
|
|
}
|
|
all_campaign_overview_page(where: { url: $url }, locale: $locale) {
|
|
items {
|
|
system {
|
|
...System
|
|
}
|
|
}
|
|
total
|
|
}
|
|
}
|
|
|
|
${System}
|
|
`
|
|
|
|
export const EntryByUrlBatch3 = gql`
|
|
query EntryByUrlBatch3($locale: String!, $url: String!) {
|
|
all_promo_campaign_page(where: { url: $url }, locale: $locale) {
|
|
items {
|
|
system {
|
|
...System
|
|
}
|
|
}
|
|
total
|
|
}
|
|
}
|
|
|
|
${System}
|
|
`
|