Merged in feat/SW-1442-destination-overview-page (pull request #1188)

feat(SW-1442): added destination overview page

* feat(SW-1442): added destination overview page


Approved-by: Fredrik Thorsson
Approved-by: Matilda Landström
This commit is contained in:
Erik Tiekstra
2025-01-20 12:21:04 +00:00
parent 814b010569
commit 7ac200bd7c
27 changed files with 526 additions and 16 deletions

View File

@@ -6,6 +6,7 @@ export enum TrackingChannelEnum {
"static-content-page" = "static-content-page",
"hotelreservation" = "hotelreservation",
"collection-page" = "collection-page",
"destination-overview-page" = "destination-overview-page",
"hotels" = "hotels",
}

View File

@@ -23,6 +23,7 @@ export type ContentTypeParams = {
| PageContentTypeEnum.contentPage
| PageContentTypeEnum.hotelPage
| PageContentTypeEnum.collectionPage
| PageContentTypeEnum.destinationOverviewPage
}
export type ContentTypeWebviewParams = {

View File

@@ -1,8 +1,9 @@
export enum PageContentTypeEnum {
accountPage = "account_page",
loyaltyPage = "loyalty_page",
hotelPage = "hotel_page",
collectionPage = "collection_page",
contentPage = "content_page",
currentBlocksPage = "current_blocks_page",
destinationOverviewPage = "destination_overview_page",
hotelPage = "hotel_page",
loyaltyPage = "loyalty_page",
}

View File

@@ -19,4 +19,5 @@ export const validateEntryResolveSchema = z.object({
all_loyalty_page: entryResolveSchema,
all_current_blocks_page: entryResolveSchema,
all_hotel_page: entryResolveSchema,
all_destination_overview_page: entryResolveSchema,
})

View File

@@ -0,0 +1,17 @@
import type { z } from "zod"
import type {
destinationOverviewPageRefsSchema,
destinationOverviewPageSchema,
} from "@/server/routers/contentstack/destinationOverviewPage/output"
export interface GetDestinationOverviewPageData
extends z.input<typeof destinationOverviewPageSchema> {}
export interface DestinationPage
extends z.output<typeof destinationOverviewPageSchema> {}
export interface GetDestinationOverviewPageRefsSchema
extends z.input<typeof destinationOverviewPageRefsSchema> {}
export interface DestinationOverviewPageRefs
extends z.output<typeof destinationOverviewPageRefsSchema> {}