Merged in feat/SW-1449-destination-page (pull request #1195)
Feat/SW-1449 destination page * feat(SW-1449): Added destination country page * feat(SW-1449): added destination city page Approved-by: Fredrik Thorsson Approved-by: Matilda Landström
This commit is contained in:
@@ -7,6 +7,7 @@ export enum TrackingChannelEnum {
|
||||
"hotelreservation" = "hotelreservation",
|
||||
"collection-page" = "collection-page",
|
||||
"destination-overview-page" = "destination-overview-page",
|
||||
"destination-page" = "destination-page",
|
||||
"hotels" = "hotels",
|
||||
}
|
||||
|
||||
|
||||
@@ -24,6 +24,8 @@ export type ContentTypeParams = {
|
||||
| PageContentTypeEnum.hotelPage
|
||||
| PageContentTypeEnum.collectionPage
|
||||
| PageContentTypeEnum.destinationOverviewPage
|
||||
| PageContentTypeEnum.destinationCountryPage
|
||||
| PageContentTypeEnum.destinationCityPage
|
||||
}
|
||||
|
||||
export type ContentTypeWebviewParams = {
|
||||
|
||||
@@ -4,6 +4,8 @@ export enum PageContentTypeEnum {
|
||||
contentPage = "content_page",
|
||||
currentBlocksPage = "current_blocks_page",
|
||||
destinationOverviewPage = "destination_overview_page",
|
||||
destinationCountryPage = "destination_country_page",
|
||||
destinationCityPage = "destination_city_page",
|
||||
hotelPage = "hotel_page",
|
||||
loyaltyPage = "loyalty_page",
|
||||
}
|
||||
|
||||
@@ -20,4 +20,6 @@ export const validateEntryResolveSchema = z.object({
|
||||
all_current_blocks_page: entryResolveSchema,
|
||||
all_hotel_page: entryResolveSchema,
|
||||
all_destination_overview_page: entryResolveSchema,
|
||||
all_destination_country_page: entryResolveSchema,
|
||||
all_destination_city_page: entryResolveSchema,
|
||||
})
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
import type { z } from "zod"
|
||||
|
||||
import type {
|
||||
destinationCityPageRefsSchema,
|
||||
destinationCityPageSchema,
|
||||
} from "@/server/routers/contentstack/destinationCityPage/output"
|
||||
|
||||
export interface GetDestinationCityPageData
|
||||
extends z.input<typeof destinationCityPageSchema> {}
|
||||
export interface DestinationCityPage
|
||||
extends z.output<typeof destinationCityPageSchema> {}
|
||||
|
||||
export interface GetDestinationCityPageRefsSchema
|
||||
extends z.input<typeof destinationCityPageRefsSchema> {}
|
||||
|
||||
export interface DestinationCityPageRefs
|
||||
extends z.output<typeof destinationCityPageRefsSchema> {}
|
||||
@@ -0,0 +1,17 @@
|
||||
import type { z } from "zod"
|
||||
|
||||
import type {
|
||||
destinationCountryPageRefsSchema,
|
||||
destinationCountryPageSchema,
|
||||
} from "@/server/routers/contentstack/destinationCountryPage/output"
|
||||
|
||||
export interface GetDestinationCountryPageData
|
||||
extends z.input<typeof destinationCountryPageSchema> {}
|
||||
export interface DestinationCountryPage
|
||||
extends z.output<typeof destinationCountryPageSchema> {}
|
||||
|
||||
export interface GetDestinationCountryPageRefsSchema
|
||||
extends z.input<typeof destinationCountryPageRefsSchema> {}
|
||||
|
||||
export interface DestinationCountryPageRefs
|
||||
extends z.output<typeof destinationCountryPageRefsSchema> {}
|
||||
@@ -7,7 +7,7 @@ import type {
|
||||
|
||||
export interface GetDestinationOverviewPageData
|
||||
extends z.input<typeof destinationOverviewPageSchema> {}
|
||||
export interface DestinationPage
|
||||
export interface DestinationOverviewPage
|
||||
extends z.output<typeof destinationOverviewPageSchema> {}
|
||||
|
||||
export interface GetDestinationOverviewPageRefsSchema
|
||||
|
||||
Reference in New Issue
Block a user