Files
web/packages/trpc/lib/routers/contentstack/schemas/system.ts
Erik Tiekstra 8d34089637 feat(BOOK-609): Using embedded url for assets instead of href since that is not updated when the asset is updated)
* feat(BOOK-609): Updated refs handling for assets inside content pages

Approved-by: Linus Flood
2026-01-13 10:40:36 +00:00

25 lines
515 B
TypeScript

import { z } from "zod"
import { Lang } from "@scandic-hotels/common/constants/language"
export const systemSchema = z.object({
content_type_uid: z.string(),
locale: z.nativeEnum(Lang),
uid: z.string(),
})
export interface System {
system: z.output<typeof systemSchema>
}
export const assetSystemSchema = z.object({
content_type_uid: z.string(),
uid: z.string(),
})
export interface AssetSystem {
system: z.output<typeof assetSystemSchema>
url?: string | null
permanent_url?: string | null
}