UNPKG

@tmlmobilidade/types

Version:
11 lines (10 loc) 433 B
/* * */ import { DocumentSchema } from '@tmlmobilidade/go-types-shared'; 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();