From 1c0dd739a59fe7951dcda24585496c7326963032 Mon Sep 17 00:00:00 2001 From: Fredrik Thorsson Date: Fri, 11 Oct 2024 16:01:12 +0200 Subject: [PATCH] feat(SW-322): clean up --- server/routers/contentstack/contentPage/output.ts | 6 ------ server/routers/contentstack/contentPage/query.ts | 5 +---- types/trpc/routers/contentstack/contentPage.ts | 3 --- 3 files changed, 1 insertion(+), 13 deletions(-) diff --git a/server/routers/contentstack/contentPage/output.ts b/server/routers/contentstack/contentPage/output.ts index 99797f2a3..48ebb0f40 100644 --- a/server/routers/contentstack/contentPage/output.ts +++ b/server/routers/contentstack/contentPage/output.ts @@ -155,12 +155,6 @@ export const contentPageSchema = z.object({ }), }) -export const contentPageSchemaBlocks = z.object({ - content_page: z.object({ - blocks: discriminatedUnionArray(blocksSchema.options).nullable(), - }), -}) - /** REFS */ const contentPageCardsRefs = z .object({ diff --git a/server/routers/contentstack/contentPage/query.ts b/server/routers/contentstack/contentPage/query.ts index faa4c5c03..1e6536ae2 100644 --- a/server/routers/contentstack/contentPage/query.ts +++ b/server/routers/contentstack/contentPage/query.ts @@ -18,10 +18,7 @@ import { TrackingChannelEnum, type TrackingSDKPageData, } from "@/types/components/tracking" -import type { - GetContentPageSchema, - GetContentPageSchemaBlocks, -} from "@/types/trpc/routers/contentstack/contentPage" +import type { GetContentPageSchema } from "@/types/trpc/routers/contentstack/contentPage" export const contentPageQueryRouter = router({ get: contentstackExtendedProcedureUID.query(async ({ ctx }) => { diff --git a/types/trpc/routers/contentstack/contentPage.ts b/types/trpc/routers/contentstack/contentPage.ts index 7153539ad..6bc343278 100644 --- a/types/trpc/routers/contentstack/contentPage.ts +++ b/types/trpc/routers/contentstack/contentPage.ts @@ -4,7 +4,6 @@ import { blocksSchema, contentPageRefsSchema, contentPageSchema, - contentPageSchemaBlocks, sidebarSchema, } from "@/server/routers/contentstack/contentPage/output" @@ -16,8 +15,6 @@ export interface ContentPageRefs export interface GetContentPageSchema extends z.input {} -export interface GetContentPageSchemaBlocks - extends z.input {} export interface ContentPage extends z.output {}