feat(SW-2285): Added campaign essentials block on campaign page
Approved-by: Christian Andolf Approved-by: Matilda Landström
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import type { Block as AccountPageBlock } from "@/types/trpc/routers/contentstack/accountPage"
|
||||
import type { Block as CampaignPageBlock } from "@/types/trpc/routers/contentstack/campaignPage"
|
||||
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"
|
||||
@@ -9,6 +10,7 @@ import type { Block as StartPageBlock } from "@/types/trpc/routers/contentstack/
|
||||
|
||||
export type Blocks =
|
||||
| AccountPageBlock
|
||||
| CampaignPageBlock
|
||||
| CollectionPageBlock
|
||||
| ContentPageBlock
|
||||
| DestinationCityPageBlock
|
||||
|
||||
@@ -14,5 +14,6 @@ export namespace BlocksEnums {
|
||||
TextCols = "TextCols",
|
||||
TextContent = "TextContent",
|
||||
UspGrid = "UspGrid",
|
||||
Essentials = "Essentials",
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
export namespace CampaignPageEnum {
|
||||
export namespace ContentStack {
|
||||
export const enum blocks {
|
||||
Essentials = "CampaignPageBlocksEssentials",
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,9 +1,11 @@
|
||||
import type { z } from "zod"
|
||||
|
||||
import type {
|
||||
blocksSchema,
|
||||
campaignPageRefsSchema,
|
||||
campaignPageSchema,
|
||||
} from "@/server/routers/contentstack/campaignPage/output"
|
||||
import type { essentialsSchema } from "@/server/routers/contentstack/schemas/blocks/essentials"
|
||||
|
||||
export interface GetCampaignPageData
|
||||
extends z.input<typeof campaignPageSchema> {}
|
||||
@@ -15,3 +17,7 @@ export interface GetCampaignPageRefsData
|
||||
|
||||
export interface CampaignPageRefs
|
||||
extends z.output<typeof campaignPageRefsSchema> {}
|
||||
|
||||
export type Block = z.output<typeof blocksSchema>
|
||||
|
||||
export type EssentialsBlock = z.output<typeof essentialsSchema>["essentials"]
|
||||
|
||||
Reference in New Issue
Block a user