Merged in chore/cleanup-unused (pull request #3461)
chore: Cleanup unused vars, exports, types * Cleanup some unused exports * Remove more * Readd CampaignPageIncludedHotelsRef * Add alias comment to procedure exports * Remove unused exports Approved-by: Linus Flood
This commit is contained in:
@@ -9,7 +9,7 @@ import type { CreditCard } from "@scandic-hotels/trpc/types/user"
|
||||
import type { RedemptionType } from "../../../bookingFlowConfig/bookingFlowConfig"
|
||||
import type { RoomState } from "../../../stores/enter-details/types"
|
||||
|
||||
export function isPaymentMethodEnum(value: string): value is PaymentMethodEnum {
|
||||
function isPaymentMethodEnum(value: string): value is PaymentMethodEnum {
|
||||
return Object.values<string>(PaymentMethodEnum).includes(value)
|
||||
}
|
||||
|
||||
@@ -53,7 +53,7 @@ export function calculateTotalRoomPrice(
|
||||
}
|
||||
}
|
||||
|
||||
export const paymentInfoStorageName = "payment-info-storage"
|
||||
const paymentInfoStorageName = "payment-info-storage"
|
||||
|
||||
type PaymentInfoSessionData = {
|
||||
paymentMethod: string
|
||||
|
||||
@@ -1,10 +1,5 @@
|
||||
import type { RateEnum } from "@scandic-hotels/common/constants/rate"
|
||||
import type { Child } from "@scandic-hotels/trpc/types/child"
|
||||
import type { PackageEnum, Packages } from "@scandic-hotels/trpc/types/packages"
|
||||
import type {
|
||||
Product,
|
||||
RoomConfiguration,
|
||||
} from "@scandic-hotels/trpc/types/roomAvailability"
|
||||
import type { PackageEnum } from "@scandic-hotels/trpc/types/packages"
|
||||
|
||||
import type { BookingSearchType } from "../../../misc/searchType"
|
||||
|
||||
@@ -27,25 +22,3 @@ export type SelectRateBooking = {
|
||||
searchType?: BookingSearchType
|
||||
toDate: string
|
||||
}
|
||||
|
||||
export type Rate = {
|
||||
features: RoomConfiguration["features"]
|
||||
packages: NonNullable<Packages>
|
||||
priceName?: string
|
||||
priceTerm?: string
|
||||
product: Product
|
||||
rate: RateEnum
|
||||
roomRates?: {
|
||||
rate: Rate
|
||||
roomIndex: number
|
||||
}[]
|
||||
roomType: RoomConfiguration["roomType"]
|
||||
roomTypeCode: RoomConfiguration["roomTypeCode"]
|
||||
}
|
||||
|
||||
export type RateCode = {
|
||||
publicRateCode: string
|
||||
roomTypeCode: string
|
||||
name: string
|
||||
paymentTerm: string
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@ import type { CacheOrGetOptions } from "./cacheOrGetOptions"
|
||||
const ONE_HOUR_IN_SECONDS = 3_600 as const
|
||||
const ONE_DAY_IN_SECONDS = 86_400 as const
|
||||
|
||||
export const namedCacheTimeMap: Record<NamedCacheTimes, number> = {
|
||||
const namedCacheTimeMap: Record<NamedCacheTimes, number> = {
|
||||
"no cache": 0,
|
||||
"1m": 60,
|
||||
"5m": 300,
|
||||
@@ -16,7 +16,7 @@ export const namedCacheTimeMap: Record<NamedCacheTimes, number> = {
|
||||
max: ONE_DAY_IN_SECONDS * 30,
|
||||
} as const
|
||||
|
||||
export const namedCacheTimes = [
|
||||
const _namedCacheTimes = [
|
||||
"no cache",
|
||||
"1m",
|
||||
"5m",
|
||||
@@ -29,7 +29,7 @@ export const namedCacheTimes = [
|
||||
"max",
|
||||
] as const
|
||||
|
||||
export type NamedCacheTimes = (typeof namedCacheTimes)[number]
|
||||
type NamedCacheTimes = (typeof _namedCacheTimes)[number]
|
||||
|
||||
/**
|
||||
* Retrieves the cache time in seconds based on the given cache time.
|
||||
|
||||
@@ -10,7 +10,7 @@ export type CacheOrGetOptions = {
|
||||
includeGitHashInKey?: boolean
|
||||
}
|
||||
|
||||
export function defaultCacheOrGetOptions(
|
||||
function defaultCacheOrGetOptions(
|
||||
opts: CacheOrGetOptions = {}
|
||||
): CacheOrGetOptions {
|
||||
return {
|
||||
|
||||
@@ -30,7 +30,6 @@
|
||||
"./constants/rateType": "./constants/rateType.ts",
|
||||
"./constants/routes/*": "./constants/routes/*.ts",
|
||||
"./constants/sessionKeys": "./constants/sessionKeys.ts",
|
||||
"./constants/sidepeekContent": "./constants/sidepeekContent.ts",
|
||||
"./constants/signatureHotels": "./constants/signatureHotels.ts",
|
||||
"./constants/transactionType": "./constants/transactionType.ts",
|
||||
"./dataCache": "./dataCache/index.ts",
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import { cva } from "class-variance-authority"
|
||||
|
||||
import { deepmerge } from "deepmerge-ts"
|
||||
import styles from "./chip-button.module.css"
|
||||
import { config as typographyConfig } from "../Typography/variants"
|
||||
|
||||
@@ -106,14 +105,3 @@ export const config = {
|
||||
}
|
||||
|
||||
export const variants = cva(styles.chip, config)
|
||||
|
||||
const chipConfig = {
|
||||
variants: {
|
||||
...config.variants,
|
||||
},
|
||||
defaultVariants: config.defaultVariants,
|
||||
} as const
|
||||
|
||||
export function withChipButton<T>(config: T) {
|
||||
return deepmerge(chipConfig, config)
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@ import { cva } from "class-variance-authority"
|
||||
|
||||
import styles from "./chip-static.module.css"
|
||||
|
||||
export const config = {
|
||||
const config = {
|
||||
variants: {
|
||||
color: {
|
||||
Subtle: styles["color-subtle"],
|
||||
|
||||
@@ -16,6 +16,3 @@ export type CountryProps = {
|
||||
disabled?: boolean
|
||||
registerOptions?: RegisterOptions
|
||||
}
|
||||
|
||||
export type CountryPortalContainer = HTMLDivElement | undefined
|
||||
export type CountryPortalContainerArgs = HTMLDivElement | null
|
||||
|
||||
@@ -2,7 +2,6 @@ import { Lang } from "@scandic-hotels/common/constants/language"
|
||||
import type { RegisterOptions } from "react-hook-form"
|
||||
|
||||
export const enum DateName {
|
||||
date = "date",
|
||||
day = "day",
|
||||
month = "month",
|
||||
year = "year",
|
||||
|
||||
@@ -96,6 +96,3 @@ export const FormTextArea = forwardRef<HTMLTextAreaElement, FormTextAreaProps>(
|
||||
)
|
||||
|
||||
FormTextArea.displayName = "FormTextArea"
|
||||
|
||||
// Default export for backwards compatibility
|
||||
export default FormTextArea
|
||||
|
||||
@@ -2,7 +2,7 @@ import { cva } from "class-variance-authority"
|
||||
|
||||
import styles from "./imageCounter.module.css"
|
||||
|
||||
export const config = {
|
||||
const config = {
|
||||
variants: {
|
||||
size: {
|
||||
Large: styles.large,
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
import type { Lang } from "@scandic-hotels/common/constants/language"
|
||||
|
||||
import type { EmbedTypesEnum, RTEItemType, RTEItemTypeEnum } from "./enums"
|
||||
import type { RTEItemType } from "./enums"
|
||||
|
||||
export interface Attributes {
|
||||
[key: string]: unknown
|
||||
@@ -9,47 +7,7 @@ export interface Attributes {
|
||||
style?: { [key: string]: unknown } | undefined
|
||||
}
|
||||
|
||||
export interface RTEAssetAttrs extends Attributes {
|
||||
alt: string
|
||||
"asset-alt": string
|
||||
"asset-link": string
|
||||
"asset-name": string
|
||||
"asset-type": "image/png" | "image/jpg" | "image/jpeg"
|
||||
"asset-uid": string
|
||||
"display-type": EmbedTypesEnum.display
|
||||
"content-type-uid": "sys_assets"
|
||||
inline: false
|
||||
type: RTEItemTypeEnum.asset
|
||||
}
|
||||
|
||||
export interface RTEAnchorAttrs extends Attributes {
|
||||
target: string
|
||||
url: string
|
||||
}
|
||||
|
||||
export interface RTELinkAttrs extends Attributes {
|
||||
"display-type": EmbedTypesEnum.link
|
||||
"class-name": string
|
||||
"content-type-uid": string
|
||||
"entry-uid": string
|
||||
locale: Lang
|
||||
href: string
|
||||
target: HTMLAnchorElement["target"]
|
||||
type: RTEItemTypeEnum.entry
|
||||
}
|
||||
|
||||
export interface RTEImageVaultAttrs extends Attributes {
|
||||
height: string
|
||||
// style: string[]
|
||||
width: string
|
||||
id: number
|
||||
title: string
|
||||
url: string
|
||||
dimensions: {
|
||||
width: number
|
||||
height: number
|
||||
aspectRatio: number
|
||||
}
|
||||
meta: { alt: string | undefined | null; caption: string | undefined | null }
|
||||
focalPoint: { x: number; y: number }
|
||||
}
|
||||
|
||||
@@ -1,13 +1,3 @@
|
||||
export enum EmbedTypesEnum {
|
||||
block = "block",
|
||||
display = "display",
|
||||
download = "download",
|
||||
inline = "inline",
|
||||
link = "link",
|
||||
}
|
||||
|
||||
export type EmbedTypes = keyof typeof EmbedTypesEnum
|
||||
|
||||
/** Copied from https://github.com/contentstack/contentstack-utils-javascript/blob/master/src/nodes/node-type.ts */
|
||||
export enum RTETypeEnum {
|
||||
a = "a",
|
||||
@@ -45,8 +35,6 @@ export enum RTETypeEnum {
|
||||
fragment = "fragment",
|
||||
}
|
||||
|
||||
export type RTEType = keyof typeof RTETypeEnum
|
||||
|
||||
export enum RTEItemTypeEnum {
|
||||
asset = "asset",
|
||||
entry = "entry",
|
||||
|
||||
@@ -5,12 +5,7 @@ import {
|
||||
ImageVaultAssetResponse,
|
||||
} from "@scandic-hotels/common/utils/imageVault"
|
||||
import type { EmbedByUid } from "../../JsonToHtml"
|
||||
import type {
|
||||
Attributes,
|
||||
RTEAnchorAttrs,
|
||||
RTEAssetAttrs,
|
||||
RTELinkAttrs,
|
||||
} from "./attrs"
|
||||
import type { Attributes, RTEAnchorAttrs } from "./attrs"
|
||||
import type { RTETypeEnum } from "./enums"
|
||||
import type { RenderOptions } from "./option"
|
||||
|
||||
@@ -21,26 +16,11 @@ export interface RTEDefaultNode {
|
||||
uid: string
|
||||
}
|
||||
|
||||
export interface RTELinkNode {
|
||||
attrs: Attributes
|
||||
children: RTENode[]
|
||||
type: RTETypeEnum
|
||||
uid: string
|
||||
}
|
||||
|
||||
export interface RTEReferenceAssetNode extends RTEDefaultNode {
|
||||
attrs: RTEAssetAttrs
|
||||
}
|
||||
|
||||
export interface RTEAnchorNode extends RTEDefaultNode {
|
||||
interface RTEAnchorNode extends RTEDefaultNode {
|
||||
attrs: RTEAnchorAttrs
|
||||
type: RTETypeEnum.a
|
||||
}
|
||||
|
||||
export interface RTEReferenceLinkNode extends RTEDefaultNode {
|
||||
attrs: RTELinkAttrs
|
||||
}
|
||||
|
||||
export interface RTEImageVaultNode extends RTEDefaultNode {
|
||||
attrs: Attributes &
|
||||
(DeprecatedImageVaultAssetResponse | ImageVaultAssetResponse)
|
||||
@@ -73,7 +53,7 @@ export type RTERegularNode = RTEDefaultNode | RTEAnchorNode | RTEImageVaultNode
|
||||
|
||||
export type RTEImageNode = RTEDefaultNode | RTEImageVaultNode
|
||||
|
||||
export type RTEReferenceNode = RTEAnchorNode
|
||||
type RTEReferenceNode = RTEAnchorNode
|
||||
|
||||
export type RTENode = RTERegularNode | RTEReferenceNode | RTETextNode
|
||||
|
||||
@@ -83,11 +63,6 @@ export type RTERenderMark = (
|
||||
id?: string
|
||||
) => JSX.Element
|
||||
|
||||
export interface RTEDocument extends RTEDefaultNode {
|
||||
type: RTETypeEnum.doc
|
||||
_version: number
|
||||
}
|
||||
|
||||
export type RTERenderOptionComponent = (
|
||||
node: RTERegularNode,
|
||||
embeds: EmbedByUid,
|
||||
|
||||
@@ -18,7 +18,7 @@ import {
|
||||
} from "./types/rte/node"
|
||||
import type { RenderOptions } from "./types/rte/option"
|
||||
|
||||
export function groupEmbedsByUid(embedsArray: Node<Embeds>[]) {
|
||||
function groupEmbedsByUid(embedsArray: Node<Embeds>[]) {
|
||||
const embedsByUid = embedsArray.reduce<EmbedByUid>((acc, embed) => {
|
||||
if ("system" in embed.node && embed.node.system?.uid) {
|
||||
acc[embed.node.system.uid] = embed
|
||||
@@ -29,7 +29,7 @@ export function groupEmbedsByUid(embedsArray: Node<Embeds>[]) {
|
||||
return embedsByUid
|
||||
}
|
||||
|
||||
export function nodeChildrenToHtml(
|
||||
function nodeChildrenToHtml(
|
||||
nodes: RTENode[],
|
||||
embeds: EmbedByUid,
|
||||
fullRenderOptions: RenderOptions
|
||||
@@ -51,10 +51,7 @@ export function nodeChildrenToHtml(
|
||||
.filter(Boolean)
|
||||
}
|
||||
|
||||
export function textNodeToHtml(
|
||||
node: RTETextNode,
|
||||
fullRenderOptions: RenderOptions
|
||||
) {
|
||||
function textNodeToHtml(node: RTETextNode, fullRenderOptions: RenderOptions) {
|
||||
let text = <>{node.text}</>
|
||||
|
||||
if (node.classname || node.id) {
|
||||
@@ -116,7 +113,7 @@ export function extractAvailableListClassNames(className?: string) {
|
||||
.map((item) => styles[item] || item)
|
||||
}
|
||||
|
||||
export function nodeToHtml(
|
||||
function nodeToHtml(
|
||||
node: RTENode,
|
||||
embeds: EmbedByUid,
|
||||
fullRenderOptions: RenderOptions
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
import { useMemo } from "react"
|
||||
import { LightboxImage } from ".."
|
||||
|
||||
export const THUMBNAIL_WINDOW = 5
|
||||
export const THUMBNAIL_OFFSET = Math.ceil(THUMBNAIL_WINDOW / 2)
|
||||
const THUMBNAIL_WINDOW = 5
|
||||
const THUMBNAIL_OFFSET = Math.ceil(THUMBNAIL_WINDOW / 2)
|
||||
|
||||
interface useThumbnailProps {
|
||||
images: LightboxImage[]
|
||||
|
||||
@@ -12,7 +12,7 @@ import { PoiMarker } from "../../Markers/PoiMarker"
|
||||
import styles from "./poiMapMarkers.module.css"
|
||||
import { MarkerInfo, PointOfInterest } from "../../types"
|
||||
|
||||
export type PoiMapMarkersProps = {
|
||||
type PoiMapMarkersProps = {
|
||||
activePoi?: string | null
|
||||
coordinates: { lat: number; lng: number }
|
||||
onActivePoiChange?: (poiName: string | null) => void
|
||||
|
||||
@@ -2,7 +2,7 @@ import { cva } from "class-variance-authority"
|
||||
|
||||
import styles from "./radio.module.css"
|
||||
|
||||
export const config = {
|
||||
const config = {
|
||||
variants: {
|
||||
color: {
|
||||
Burgundy: styles["color-burgundy"],
|
||||
|
||||
@@ -21,16 +21,3 @@ export const slideInOut = {
|
||||
transition: { duration: 0.4, ease: "easeInOut" },
|
||||
},
|
||||
} as const
|
||||
|
||||
export const slideFromTop = {
|
||||
hidden: {
|
||||
opacity: 0,
|
||||
y: -32,
|
||||
transition: { duration: 0.4, ease: "easeInOut" },
|
||||
},
|
||||
visible: {
|
||||
opacity: 1,
|
||||
y: 0,
|
||||
transition: { duration: 0.4, ease: "easeInOut" },
|
||||
},
|
||||
} as const
|
||||
|
||||
@@ -2,7 +2,7 @@ import { cva } from "class-variance-authority"
|
||||
|
||||
import styles from "./rate-card.module.css"
|
||||
|
||||
export const config = {
|
||||
const config = {
|
||||
variants: {
|
||||
variant: {
|
||||
Regular: styles["variant-regular"],
|
||||
|
||||
@@ -5,7 +5,6 @@ import {
|
||||
withTypography,
|
||||
} from "../Typography/variants"
|
||||
|
||||
import { deepmerge } from "deepmerge-ts"
|
||||
import styles from "./textLink.module.css"
|
||||
|
||||
export const config = {
|
||||
@@ -33,7 +32,3 @@ const textLinkConfig = {
|
||||
} as const
|
||||
|
||||
export const variants = cva(styles.textLink, withTypography(textLinkConfig))
|
||||
|
||||
export function withTextLink<T>(config: T) {
|
||||
return deepmerge(textLinkConfig, config)
|
||||
}
|
||||
|
||||
@@ -118,7 +118,7 @@ export const GlobalAccordionBlock = gql`
|
||||
${PromoCampaignPageLink}
|
||||
`
|
||||
|
||||
export const GlobalAccordion_AccountPage = gql`
|
||||
const GlobalAccordion_AccountPage = gql`
|
||||
fragment GlobalAccordion_AccountPage on AccountPageContentAccordionBlockAccordionsGlobalAccordion {
|
||||
__typename
|
||||
global_accordion {
|
||||
@@ -134,7 +134,7 @@ export const GlobalAccordion_AccountPage = gql`
|
||||
${AccordionBlock}
|
||||
`
|
||||
|
||||
export const SpecificAccordion_AccountPage = gql`
|
||||
const SpecificAccordion_AccountPage = gql`
|
||||
fragment SpecificAccordion_AccountPage on AccountPageContentAccordionBlockAccordionsSpecificAccordion {
|
||||
__typename
|
||||
specific_accordion {
|
||||
@@ -196,7 +196,7 @@ export const Accordion_AccountPage = gql`
|
||||
${SpecificAccordion_AccountPage}
|
||||
`
|
||||
|
||||
export const GlobalAccordion_AccountPageRefs = gql`
|
||||
const GlobalAccordion_AccountPageRefs = gql`
|
||||
fragment GlobalAccordion_AccountPageRefs on AccountPageContentAccordionBlockAccordionsGlobalAccordion {
|
||||
global_accordion {
|
||||
global_accordionConnection {
|
||||
@@ -211,7 +211,7 @@ export const GlobalAccordion_AccountPageRefs = gql`
|
||||
${AccordionBlockRefs}
|
||||
`
|
||||
|
||||
export const SpecificAccordion_AccountPageRefs = gql`
|
||||
const SpecificAccordion_AccountPageRefs = gql`
|
||||
fragment SpecificAccordion_AccountPageRefs on AccountPageContentAccordionBlockAccordionsSpecificAccordion {
|
||||
specific_accordion {
|
||||
questions {
|
||||
@@ -266,7 +266,7 @@ export const Accordion_AccountPageRefs = gql`
|
||||
${SpecificAccordion_AccountPageRefs}
|
||||
`
|
||||
|
||||
export const GlobalAccordion_ContentPage = gql`
|
||||
const GlobalAccordion_ContentPage = gql`
|
||||
fragment GlobalAccordion_ContentPage on ContentPageBlocksAccordionBlockAccordionsGlobalAccordion {
|
||||
__typename
|
||||
global_accordion {
|
||||
@@ -282,7 +282,7 @@ export const GlobalAccordion_ContentPage = gql`
|
||||
${AccordionBlock}
|
||||
`
|
||||
|
||||
export const SpecificAccordion_ContentPage = gql`
|
||||
const SpecificAccordion_ContentPage = gql`
|
||||
fragment SpecificAccordion_ContentPage on ContentPageBlocksAccordionBlockAccordionsSpecificAccordion {
|
||||
__typename
|
||||
specific_accordion {
|
||||
@@ -345,7 +345,7 @@ export const Accordion_ContentPage = gql`
|
||||
${SpecificAccordion_ContentPage}
|
||||
`
|
||||
|
||||
export const GlobalAccordion_ContentPageRefs = gql`
|
||||
const GlobalAccordion_ContentPageRefs = gql`
|
||||
fragment GlobalAccordion_ContentPageRefs on ContentPageBlocksAccordionBlockAccordionsGlobalAccordion {
|
||||
global_accordion {
|
||||
global_accordionConnection {
|
||||
@@ -361,7 +361,7 @@ export const GlobalAccordion_ContentPageRefs = gql`
|
||||
${AccordionBlockRefs}
|
||||
`
|
||||
|
||||
export const SpecificAccordion_ContentPageRefs = gql`
|
||||
const SpecificAccordion_ContentPageRefs = gql`
|
||||
fragment SpecificAccordion_ContentPageRefs on ContentPageBlocksAccordionBlockAccordionsSpecificAccordion {
|
||||
specific_accordion {
|
||||
questions {
|
||||
@@ -404,7 +404,7 @@ export const SpecificAccordion_ContentPageRefs = gql`
|
||||
${PromoCampaignPageRef}
|
||||
`
|
||||
|
||||
export const GlobalAccordion_DestinationCityPage = gql`
|
||||
const GlobalAccordion_DestinationCityPage = gql`
|
||||
fragment GlobalAccordion_DestinationCityPage on DestinationCityPageBlocksAccordionBlockAccordionsGlobalAccordion {
|
||||
__typename
|
||||
global_accordion {
|
||||
@@ -420,7 +420,7 @@ export const GlobalAccordion_DestinationCityPage = gql`
|
||||
${AccordionBlock}
|
||||
`
|
||||
|
||||
export const SpecificAccordion_DestinationCityPage = gql`
|
||||
const SpecificAccordion_DestinationCityPage = gql`
|
||||
fragment SpecificAccordion_DestinationCityPage on DestinationCityPageBlocksAccordionBlockAccordionsSpecificAccordion {
|
||||
__typename
|
||||
specific_accordion {
|
||||
@@ -467,7 +467,7 @@ export const SpecificAccordion_DestinationCityPage = gql`
|
||||
${PromoCampaignPageLink}
|
||||
`
|
||||
|
||||
export const GlobalAccordion_DestinationCityPageRefs = gql`
|
||||
const GlobalAccordion_DestinationCityPageRefs = gql`
|
||||
fragment GlobalAccordion_DestinationCityPageRefs on DestinationCityPageBlocksAccordionBlockAccordionsGlobalAccordion {
|
||||
global_accordion {
|
||||
global_accordionConnection {
|
||||
@@ -496,7 +496,7 @@ export const Accordion_ContentPageRefs = gql`
|
||||
${SpecificAccordion_ContentPageRefs}
|
||||
`
|
||||
|
||||
export const SpecificAccordion_DestinationCityPageRefs = gql`
|
||||
const SpecificAccordion_DestinationCityPageRefs = gql`
|
||||
fragment SpecificAccordion_DestinationCityPageRefs on DestinationCityPageBlocksAccordionBlockAccordionsSpecificAccordion {
|
||||
specific_accordion {
|
||||
questions {
|
||||
@@ -551,7 +551,7 @@ export const Accordion_DestinationCityPageRefs = gql`
|
||||
${SpecificAccordion_DestinationCityPageRefs}
|
||||
`
|
||||
|
||||
export const GlobalAccordion_DestinationCountryPage = gql`
|
||||
const GlobalAccordion_DestinationCountryPage = gql`
|
||||
fragment GlobalAccordion_DestinationCountryPage on DestinationCountryPageBlocksAccordionBlockAccordionsGlobalAccordion {
|
||||
__typename
|
||||
global_accordion {
|
||||
@@ -567,7 +567,7 @@ export const GlobalAccordion_DestinationCountryPage = gql`
|
||||
${AccordionBlock}
|
||||
`
|
||||
|
||||
export const SpecificAccordion_DestinationCountryPage = gql`
|
||||
const SpecificAccordion_DestinationCountryPage = gql`
|
||||
fragment SpecificAccordion_DestinationCountryPage on DestinationCountryPageBlocksAccordionBlockAccordionsSpecificAccordion {
|
||||
__typename
|
||||
specific_accordion {
|
||||
@@ -630,7 +630,7 @@ export const Accordion_DestinationCountryPage = gql`
|
||||
${SpecificAccordion_DestinationCountryPage}
|
||||
`
|
||||
|
||||
export const GlobalAccordion_DestinationCountryPageRefs = gql`
|
||||
const GlobalAccordion_DestinationCountryPageRefs = gql`
|
||||
fragment GlobalAccordion_DestinationCountryPageRefs on DestinationCountryPageBlocksAccordionBlockAccordionsGlobalAccordion {
|
||||
global_accordion {
|
||||
global_accordionConnection {
|
||||
@@ -645,7 +645,7 @@ export const GlobalAccordion_DestinationCountryPageRefs = gql`
|
||||
${AccordionBlockRefs}
|
||||
`
|
||||
|
||||
export const SpecificAccordion_DestinationCountryPageRefs = gql`
|
||||
const SpecificAccordion_DestinationCountryPageRefs = gql`
|
||||
fragment SpecificAccordion_DestinationCountryPageRefs on DestinationCountryPageBlocksAccordionBlockAccordionsSpecificAccordion {
|
||||
specific_accordion {
|
||||
questions {
|
||||
@@ -701,7 +701,7 @@ export const Accordion_DestinationCountryPageRefs = gql`
|
||||
${SpecificAccordion_DestinationCountryPageRefs}
|
||||
`
|
||||
|
||||
export const GlobalAccordion_CampaignPage = gql`
|
||||
const GlobalAccordion_CampaignPage = gql`
|
||||
fragment GlobalAccordion_CampaignPage on CampaignPageBlocksAccordionBlockAccordionsGlobalAccordion {
|
||||
__typename
|
||||
global_accordion {
|
||||
@@ -717,7 +717,7 @@ export const GlobalAccordion_CampaignPage = gql`
|
||||
${AccordionBlock}
|
||||
`
|
||||
|
||||
export const SpecificAccordion_CampaignPage = gql`
|
||||
const SpecificAccordion_CampaignPage = gql`
|
||||
fragment SpecificAccordion_CampaignPage on CampaignPageBlocksAccordionBlockAccordionsSpecificAccordion {
|
||||
__typename
|
||||
specific_accordion {
|
||||
@@ -779,7 +779,7 @@ export const Accordion_CampaignPage = gql`
|
||||
${SpecificAccordion_CampaignPage}
|
||||
`
|
||||
|
||||
export const GlobalAccordion_CampaignPageRefs = gql`
|
||||
const GlobalAccordion_CampaignPageRefs = gql`
|
||||
fragment GlobalAccordion_CampaignPageRefs on CampaignPageBlocksAccordionBlockAccordionsGlobalAccordion {
|
||||
global_accordion {
|
||||
global_accordionConnection {
|
||||
@@ -794,7 +794,7 @@ export const GlobalAccordion_CampaignPageRefs = gql`
|
||||
${AccordionBlockRefs}
|
||||
`
|
||||
|
||||
export const SpecificAccordion_CampaignPageRefs = gql`
|
||||
const SpecificAccordion_CampaignPageRefs = gql`
|
||||
fragment SpecificAccordion_CampaignPageRefs on CampaignPageBlocksAccordionBlockAccordionsSpecificAccordion {
|
||||
specific_accordion {
|
||||
questions {
|
||||
@@ -849,7 +849,7 @@ export const Accordion_CampaignPageRefs = gql`
|
||||
${SpecificAccordion_CampaignPageRefs}
|
||||
`
|
||||
|
||||
export const GlobalAccordion_DestinationFilterBlocks = gql`
|
||||
const GlobalAccordion_DestinationFilterBlocks = gql`
|
||||
fragment GlobalAccordion_DestinationFilterBlocks on DestinationFilterBlocksAccordionBlockAccordionsGlobalAccordion {
|
||||
__typename
|
||||
global_accordion {
|
||||
@@ -865,7 +865,7 @@ export const GlobalAccordion_DestinationFilterBlocks = gql`
|
||||
${AccordionBlock}
|
||||
`
|
||||
|
||||
export const SpecificAccordion_DestinationFilterBlocks = gql`
|
||||
const SpecificAccordion_DestinationFilterBlocks = gql`
|
||||
fragment SpecificAccordion_DestinationFilterBlocks on DestinationFilterBlocksAccordionBlockAccordionsSpecificAccordion {
|
||||
__typename
|
||||
specific_accordion {
|
||||
@@ -927,7 +927,7 @@ export const Accordion_DestinationFilterBlocks = gql`
|
||||
${SpecificAccordion_DestinationFilterBlocks}
|
||||
`
|
||||
|
||||
export const GlobalAccordion_DestinationFilterBlocksRefs = gql`
|
||||
const GlobalAccordion_DestinationFilterBlocksRefs = gql`
|
||||
fragment GlobalAccordion_DestinationFilterBlocksRefs on DestinationFilterBlocksAccordionBlockAccordionsGlobalAccordion {
|
||||
global_accordion {
|
||||
global_accordionConnection {
|
||||
@@ -942,7 +942,7 @@ export const GlobalAccordion_DestinationFilterBlocksRefs = gql`
|
||||
${AccordionBlockRefs}
|
||||
`
|
||||
|
||||
export const SpecificAccordion_DestinationFilterBlocksRefs = gql`
|
||||
const SpecificAccordion_DestinationFilterBlocksRefs = gql`
|
||||
fragment SpecificAccordion_DestinationFilterBlocksRefs on DestinationFilterBlocksAccordionBlockAccordionsSpecificAccordion {
|
||||
specific_accordion {
|
||||
questions {
|
||||
@@ -997,7 +997,7 @@ export const Accordion_DestinationFilterBlocksRefs = gql`
|
||||
${SpecificAccordion_DestinationFilterBlocksRefs}
|
||||
`
|
||||
|
||||
export const GlobalAccordion_PromoCampaignPage = gql`
|
||||
const GlobalAccordion_PromoCampaignPage = gql`
|
||||
fragment GlobalAccordion_PromoCampaignPage on PromoCampaignPageBlocksAccordionBlockAccordionsGlobalAccordion {
|
||||
__typename
|
||||
global_accordion {
|
||||
@@ -1013,7 +1013,7 @@ export const GlobalAccordion_PromoCampaignPage = gql`
|
||||
${AccordionBlock}
|
||||
`
|
||||
|
||||
export const SpecificAccordion_PromoCampaignPage = gql`
|
||||
const SpecificAccordion_PromoCampaignPage = gql`
|
||||
fragment SpecificAccordion_PromoCampaignPage on PromoCampaignPageBlocksAccordionBlockAccordionsSpecificAccordion {
|
||||
__typename
|
||||
specific_accordion {
|
||||
@@ -1074,7 +1074,7 @@ export const Accordion_PromoCampaignPage = gql`
|
||||
${SpecificAccordion_PromoCampaignPage}
|
||||
`
|
||||
|
||||
export const GlobalAccordion_PromoCampaignPageRefs = gql`
|
||||
const GlobalAccordion_PromoCampaignPageRefs = gql`
|
||||
fragment GlobalAccordion_PromoCampaignPageRefs on PromoCampaignPageBlocksAccordionBlockAccordionsGlobalAccordion {
|
||||
global_accordion {
|
||||
global_accordionConnection {
|
||||
@@ -1089,7 +1089,7 @@ export const GlobalAccordion_PromoCampaignPageRefs = gql`
|
||||
${AccordionBlockRefs}
|
||||
`
|
||||
|
||||
export const SpecificAccordion_PromoCampaignPageRefs = gql`
|
||||
const SpecificAccordion_PromoCampaignPageRefs = gql`
|
||||
fragment SpecificAccordion_PromoCampaignPageRefs on PromoCampaignPageBlocksAccordionBlockAccordionsSpecificAccordion {
|
||||
specific_accordion {
|
||||
questions {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
export const HotelListing = gql`
|
||||
const HotelListing = gql`
|
||||
fragment HotelListing on HotelListing {
|
||||
heading
|
||||
location_filter {
|
||||
|
||||
@@ -3,7 +3,7 @@ import { gql } from "graphql-tag"
|
||||
import { System } from "../System.graphql"
|
||||
import { Video, VideoRef } from "../Video.graphql"
|
||||
|
||||
export const VideoQuoteCard = gql`
|
||||
const VideoQuoteCard = gql`
|
||||
fragment VideoQuoteCard on VideoQuoteCard {
|
||||
video {
|
||||
...Video
|
||||
@@ -16,7 +16,7 @@ export const VideoQuoteCard = gql`
|
||||
${Video}
|
||||
`
|
||||
|
||||
export const VideoTextCard = gql`
|
||||
const VideoTextCard = gql`
|
||||
fragment VideoTextCard on VideoTextCard {
|
||||
video {
|
||||
...Video
|
||||
@@ -85,7 +85,7 @@ export const VideoCard_StartPage = gql`
|
||||
${VideoTextCard}
|
||||
`
|
||||
|
||||
export const VideoQuoteCardRef = gql`
|
||||
const VideoQuoteCardRef = gql`
|
||||
fragment VideoQuoteCardRef on VideoQuoteCard {
|
||||
video {
|
||||
...VideoRef
|
||||
@@ -98,7 +98,7 @@ export const VideoQuoteCardRef = gql`
|
||||
${System}
|
||||
`
|
||||
|
||||
export const VideoTextCardRef = gql`
|
||||
const VideoTextCardRef = gql`
|
||||
fragment VideoTextCardRef on VideoTextCard {
|
||||
video {
|
||||
...VideoRef
|
||||
|
||||
@@ -25,7 +25,7 @@ import { StartPageLink } from "../PageLink/StartPageLink.graphql"
|
||||
import { PromoCampaignPageRef } from "../PromoCampaignPage/Ref.graphql"
|
||||
import { StartPageRef } from "../StartPage/Ref.graphql"
|
||||
|
||||
export const ContactFields = gql`
|
||||
const ContactFields = gql`
|
||||
fragment ContactFields on ContactFields {
|
||||
display_text
|
||||
contact_field
|
||||
|
||||
@@ -18,6 +18,7 @@ export const baseProcedure = procedure
|
||||
.use(durationMiddleware)
|
||||
.use(sentryMiddleware)
|
||||
|
||||
/** @alias */
|
||||
export const publicProcedure = baseProcedure
|
||||
|
||||
export const languageProcedure = baseProcedure.use(async function (opts) {
|
||||
@@ -53,6 +54,7 @@ export const languageProcedure = baseProcedure.use(async function (opts) {
|
||||
})
|
||||
})
|
||||
|
||||
/** @alias */
|
||||
export const contentstackBaseProcedure = languageProcedure
|
||||
|
||||
export const contentstackExtendedProcedureUID = contentstackBaseProcedure.use(
|
||||
|
||||
Reference in New Issue
Block a user