fix(SW-438): add ContentCard, ScriptedCard and Shortcuts to ContentPage sidebar
This commit is contained in:
18
server/routers/contentstack/schemas/sidebar/quickLinks.ts
Normal file
18
server/routers/contentstack/schemas/sidebar/quickLinks.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
import { z } from "zod"
|
||||
|
||||
import { shortcutsRefsSchema, shortcutsSchema } from "../blocks/shortcuts"
|
||||
|
||||
import { SidebarEnums } from "@/types/enums/sidebar"
|
||||
|
||||
export const quickLinksSchema = z
|
||||
.object({
|
||||
typename: z
|
||||
.literal(SidebarEnums.blocks.Shortcuts)
|
||||
.optional()
|
||||
.default(SidebarEnums.blocks.Shortcuts),
|
||||
})
|
||||
.merge(shortcutsSchema)
|
||||
|
||||
export const quickLinksSRefschema = z.object({
|
||||
shortcutsRefsSchema,
|
||||
})
|
||||
Reference in New Issue
Block a user