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
10 lines
295 B
TypeScript
10 lines
295 B
TypeScript
import { z } from "zod"
|
|
|
|
import { BlocksEnums } from "../../../../types/blocksEnum"
|
|
import { transformedVideoSchema } from "../video"
|
|
|
|
export const videoBlockSchema = z.object({
|
|
typename: z.literal(BlocksEnums.block.Video).default(BlocksEnums.block.Video),
|
|
video: transformedVideoSchema,
|
|
})
|