* feat(BOOK-609): Updated refs handling for assets inside content pages Approved-by: Linus Flood
25 lines
515 B
TypeScript
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
|
|
}
|