feat(SW-322): clean up

This commit is contained in:
Fredrik Thorsson
2024-10-11 16:01:12 +02:00
parent aace50fb37
commit 1c0dd739a5
3 changed files with 1 additions and 13 deletions

View File

@@ -155,12 +155,6 @@ export const contentPageSchema = z.object({
}), }),
}) })
export const contentPageSchemaBlocks = z.object({
content_page: z.object({
blocks: discriminatedUnionArray(blocksSchema.options).nullable(),
}),
})
/** REFS */ /** REFS */
const contentPageCardsRefs = z const contentPageCardsRefs = z
.object({ .object({

View File

@@ -18,10 +18,7 @@ import {
TrackingChannelEnum, TrackingChannelEnum,
type TrackingSDKPageData, type TrackingSDKPageData,
} from "@/types/components/tracking" } from "@/types/components/tracking"
import type { import type { GetContentPageSchema } from "@/types/trpc/routers/contentstack/contentPage"
GetContentPageSchema,
GetContentPageSchemaBlocks,
} from "@/types/trpc/routers/contentstack/contentPage"
export const contentPageQueryRouter = router({ export const contentPageQueryRouter = router({
get: contentstackExtendedProcedureUID.query(async ({ ctx }) => { get: contentstackExtendedProcedureUID.query(async ({ ctx }) => {

View File

@@ -4,7 +4,6 @@ import {
blocksSchema, blocksSchema,
contentPageRefsSchema, contentPageRefsSchema,
contentPageSchema, contentPageSchema,
contentPageSchemaBlocks,
sidebarSchema, sidebarSchema,
} from "@/server/routers/contentstack/contentPage/output" } from "@/server/routers/contentstack/contentPage/output"
@@ -16,8 +15,6 @@ export interface ContentPageRefs
export interface GetContentPageSchema export interface GetContentPageSchema
extends z.input<typeof contentPageSchema> {} extends z.input<typeof contentPageSchema> {}
export interface GetContentPageSchemaBlocks
extends z.input<typeof contentPageSchemaBlocks> {}
export interface ContentPage extends z.output<typeof contentPageSchema> {} export interface ContentPage extends z.output<typeof contentPageSchema> {}