Merged in feat/SW-1381-new-startpage-page (pull request #1197)
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)
This commit is contained in:
@@ -9,6 +9,7 @@ export enum TrackingChannelEnum {
|
||||
"destination-overview-page" = "destination-overview-page",
|
||||
"destination-page" = "destination-page",
|
||||
"hotels" = "hotels",
|
||||
"start-page" = "start-page",
|
||||
}
|
||||
|
||||
export type TrackingChannel = keyof typeof TrackingChannelEnum
|
||||
|
||||
@@ -26,6 +26,7 @@ export type ContentTypeParams = {
|
||||
| PageContentTypeEnum.destinationOverviewPage
|
||||
| PageContentTypeEnum.destinationCountryPage
|
||||
| PageContentTypeEnum.destinationCityPage
|
||||
| PageContentTypeEnum.startPage
|
||||
}
|
||||
|
||||
export type ContentTypeWebviewParams = {
|
||||
|
||||
@@ -8,4 +8,5 @@ export enum PageContentTypeEnum {
|
||||
destinationCityPage = "destination_city_page",
|
||||
hotelPage = "hotel_page",
|
||||
loyaltyPage = "loyalty_page",
|
||||
startPage = "start_page",
|
||||
}
|
||||
|
||||
@@ -22,4 +22,5 @@ export const validateEntryResolveSchema = z.object({
|
||||
all_destination_overview_page: entryResolveSchema,
|
||||
all_destination_country_page: entryResolveSchema,
|
||||
all_destination_city_page: entryResolveSchema,
|
||||
all_start_page: entryResolveSchema,
|
||||
})
|
||||
|
||||
14
types/trpc/routers/contentstack/startPage.ts
Normal file
14
types/trpc/routers/contentstack/startPage.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import type { z } from "zod"
|
||||
|
||||
import type {
|
||||
startPageRefsSchema,
|
||||
startPageSchema,
|
||||
} from "@/server/routers/contentstack/startPage/output"
|
||||
|
||||
export interface GetStartPageData extends z.input<typeof startPageSchema> {}
|
||||
export interface StartPage extends z.output<typeof startPageSchema> {}
|
||||
|
||||
export interface GetStartPageRefsSchema
|
||||
extends z.input<typeof startPageRefsSchema> {}
|
||||
|
||||
export interface StartPageRefs extends z.output<typeof startPageRefsSchema> {}
|
||||
Reference in New Issue
Block a user