2023-02-06 12:19:39 +03:00

15 lines
339 B
TypeScript

import { z } from 'zod';
export const KeysSchema = z.enum(['osago', 'kasko', 'fingap']);
export const RowSchema = z
.object({
insCost: z.number(),
insTerm: z.number().nullable(),
insuranceCompany: z.string().nullable(),
insured: z.number().nullable(),
key: KeysSchema,
policyType: z.string(),
})
.strict();