UNPKG

@tmlmobilidade/types

Version:
11 lines (10 loc) 425 B
/* * */ import { DocumentSchema } from '../_common/document.js'; import { z } from 'zod'; /* * */ export const StopAreaSchema = DocumentSchema.extend({ _id: z.string(), parent_station_ids: z.array(z.string()), }); export const CreateStopAreaSchema = StopAreaSchema.omit({ _id: true, created_at: true, updated_at: true }); export const UpdateStopAreaSchema = CreateStopAreaSchema.omit({ created_by: true }).partial();