fix(SW-194): adapt to separated ContentPage query
This commit is contained in:
@@ -165,6 +165,12 @@ export const contentPageSchema = z.object({
|
||||
}),
|
||||
})
|
||||
|
||||
export const contentPageSchemaBlocks = z.object({
|
||||
content_page: z.object({
|
||||
blocks: discriminatedUnionArray(blocksSchema.options).nullable(),
|
||||
}),
|
||||
})
|
||||
|
||||
/** REFS */
|
||||
const contentPageCardsRefs = z
|
||||
.object({
|
||||
|
||||
@@ -18,7 +18,10 @@ import {
|
||||
TrackingChannelEnum,
|
||||
type TrackingSDKPageData,
|
||||
} from "@/types/components/tracking"
|
||||
import type { GetContentPageSchema } from "@/types/trpc/routers/contentstack/contentPage"
|
||||
import type {
|
||||
GetContentPageSchema,
|
||||
GetContentPageSchemaBlocks,
|
||||
} from "@/types/trpc/routers/contentstack/contentPage"
|
||||
|
||||
export const contentPageQueryRouter = router({
|
||||
get: contentstackExtendedProcedureUID.query(async ({ ctx }) => {
|
||||
|
||||
Reference in New Issue
Block a user