Merged in feat/SW-1584-destination-content-blocks (pull request #1278)
Feat/SW-1584 destination content blocks * feat(SW-1584): Added accordion and content blocks to destination city pages * feat(SW-1584): Added accordion and content blocks to destination country pages Approved-by: Matilda Landström
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
import type { Block as AccountPageBlock } from "@/types/trpc/routers/contentstack/accountPage"
|
||||
import type { Block as CollectionPageBlock } from "@/types/trpc/routers/contentstack/collectionPage"
|
||||
import type { Block as ContentPageBlock } from "@/types/trpc/routers/contentstack/contentPage"
|
||||
import type { Block as DestinationCityPageBlock } from "@/types/trpc/routers/contentstack/destinationCityPage"
|
||||
import type { Block as DestinationCountryPageBlock } from "@/types/trpc/routers/contentstack/destinationCountryPage"
|
||||
import type { Block as LoyaltyPageBlock } from "@/types/trpc/routers/contentstack/loyaltyPage"
|
||||
import type { Block as StartPageBlock } from "@/types/trpc/routers/contentstack/startPage"
|
||||
|
||||
@@ -8,6 +10,8 @@ export type Blocks =
|
||||
| AccountPageBlock
|
||||
| CollectionPageBlock
|
||||
| ContentPageBlock
|
||||
| DestinationCityPageBlock
|
||||
| DestinationCountryPageBlock
|
||||
| LoyaltyPageBlock
|
||||
| StartPageBlock
|
||||
|
||||
|
||||
8
types/enums/destinationCityPage.ts
Normal file
8
types/enums/destinationCityPage.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
export namespace DestinationCityPageEnum {
|
||||
export namespace ContentStack {
|
||||
export const enum blocks {
|
||||
Accordion = "DestinationCityPageBlocksAccordion",
|
||||
Content = "DestinationCityPageBlocksContent",
|
||||
}
|
||||
}
|
||||
}
|
||||
8
types/enums/destinationCountryPage.ts
Normal file
8
types/enums/destinationCountryPage.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
export namespace DestinationCountryPageEnum {
|
||||
export namespace ContentStack {
|
||||
export const enum blocks {
|
||||
Accordion = "DestinationCountryPageBlocksAccordion",
|
||||
Content = "DestinationCountryPageBlocksContent",
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,7 @@
|
||||
import type { z } from "zod"
|
||||
|
||||
import type {
|
||||
blocksSchema,
|
||||
destinationCityListDataSchema,
|
||||
destinationCityPageRefsSchema,
|
||||
destinationCityPageSchema,
|
||||
@@ -21,6 +22,7 @@ export interface DestinationCityListData
|
||||
export interface DestinationCityListItem extends DestinationCityListData {
|
||||
cityName: string
|
||||
}
|
||||
export type Block = z.output<typeof blocksSchema>
|
||||
|
||||
export interface GetDestinationCityPageRefsSchema
|
||||
extends z.input<typeof destinationCityPageRefsSchema> {}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import type { z } from "zod"
|
||||
|
||||
import type {
|
||||
blocksSchema,
|
||||
destinationCountryPageRefsSchema,
|
||||
destinationCountryPageSchema,
|
||||
} from "@/server/routers/contentstack/destinationCountryPage/output"
|
||||
@@ -11,6 +12,7 @@ interface DestinationCountryPage
|
||||
extends z.output<typeof destinationCountryPageSchema> {}
|
||||
export type DestinationCountryPageData =
|
||||
DestinationCountryPage["destinationCountryPage"]
|
||||
export type Block = z.output<typeof blocksSchema>
|
||||
|
||||
export interface GetDestinationCountryPageRefsSchema
|
||||
extends z.input<typeof destinationCountryPageRefsSchema> {}
|
||||
|
||||
Reference in New Issue
Block a user