23 lines
461 B
TypeScript
23 lines
461 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>
|
|
}
|