2022-11-14 21:33:18 +03:00

13 lines
344 B
TypeScript

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