feat(SW-1442): added destination overview page * feat(SW-1442): added destination overview page Approved-by: Fredrik Thorsson Approved-by: Matilda Landström
26 lines
535 B
TypeScript
26 lines
535 B
TypeScript
import { z } from "zod"
|
|
|
|
import { systemSchema } from "../schemas/system"
|
|
|
|
export const destinationOverviewPageSchema = z.object({
|
|
destination_overview_page: z.object({
|
|
title: z.string(),
|
|
system: systemSchema.merge(
|
|
z.object({
|
|
created_at: z.string(),
|
|
updated_at: z.string(),
|
|
})
|
|
),
|
|
}),
|
|
trackingProps: z.object({
|
|
url: z.string(),
|
|
}),
|
|
})
|
|
|
|
/** REFS */
|
|
export const destinationOverviewPageRefsSchema = z.object({
|
|
destination_overview_page: z.object({
|
|
system: systemSchema,
|
|
}),
|
|
})
|