feat(SW-1381): add initial start page * feat(SW-1381): add initial start page * fix: remove unused startpage template remove translation key for middleware error page * fix(SW-1381): add tracking SDK and feature flag to hide start page Approved-by: Erik Tiekstra Approved-by: Matilda Landström Approved-by: Chuma Mcphoy (We Ahead)
53 lines
1.2 KiB
TypeScript
53 lines
1.2 KiB
TypeScript
import type { Lang } from "@/constants/languages"
|
|
import type { PageContentTypeEnum } from "./requests/contentType"
|
|
|
|
export type SearchParams<S = {}> = {
|
|
searchParams: S & { [key: string]: string }
|
|
}
|
|
|
|
export type Params<P = {}> = {
|
|
params: P
|
|
}
|
|
|
|
export type LangParams = {
|
|
lang: Lang
|
|
}
|
|
|
|
export type StatusParams = {
|
|
status: number
|
|
}
|
|
|
|
export type ContentTypeParams = {
|
|
contentType:
|
|
| PageContentTypeEnum.loyaltyPage
|
|
| PageContentTypeEnum.contentPage
|
|
| PageContentTypeEnum.hotelPage
|
|
| PageContentTypeEnum.collectionPage
|
|
| PageContentTypeEnum.destinationOverviewPage
|
|
| PageContentTypeEnum.destinationCountryPage
|
|
| PageContentTypeEnum.destinationCityPage
|
|
| PageContentTypeEnum.startPage
|
|
}
|
|
|
|
export type ContentTypeWebviewParams = {
|
|
contentType: "loyalty-page" | "account-page"
|
|
}
|
|
|
|
export type UIDParams = {
|
|
uid: string
|
|
}
|
|
|
|
export type UriParams = {
|
|
uri: string | string[]
|
|
}
|
|
|
|
export type PreviewParams = {
|
|
uri?: string
|
|
live_preview?: string
|
|
}
|
|
|
|
export type LayoutArgs<P = undefined> = P extends undefined ? {} : Params<P>
|
|
|
|
export type PageArgs<P = undefined, S = undefined> = LayoutArgs<P> &
|
|
(S extends undefined ? {} : SearchParams<S>)
|