15 lines
339 B
TypeScript
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();
|