UNPKG

@tmlmobilidade/types

Version:
17 lines (16 loc) 548 B
/* * */ import { FileExportBaseSchema } from './base.js'; import { z } from 'zod'; /* * */ /* PROPERTIES SCHEMA */ export const VehicleExportPropertiesSchema = z.object({ properties: z.object({ agency_ids: z.array(z.string()).optional().nullable(), search: z.string().optional().nullable(), vehicle_ids: z.array(z.string()).optional().nullable(), }), type: z.literal('vehicle'), }); /* CREATE SCHEMA */ /* * */ export const VehicleExportSchema = FileExportBaseSchema.extend(VehicleExportPropertiesSchema.shape);