Feat(SW-3708): refactor contentstack fetching (removing all refs) and cache invalidation * Remove all REFS * Revalidate correct language * PR fixes * PR fixes * Throw when errors from contentstack api Approved-by: Joakim Jäderberg
14 lines
353 B
TypeScript
14 lines
353 B
TypeScript
import { z } from "zod"
|
|
|
|
import { SidebarEnums } from "../../../../types/sidebar"
|
|
import { shortcutsBlockSchema } from "../blocks/shortcuts"
|
|
|
|
export const quickLinksSchema = z
|
|
.object({
|
|
typename: z
|
|
.literal(SidebarEnums.blocks.QuickLinks)
|
|
.optional()
|
|
.default(SidebarEnums.blocks.QuickLinks),
|
|
})
|
|
.merge(shortcutsBlockSchema)
|