UNPKG

@tmlmobilidade/types

Version:
204 lines (203 loc) • 8.17 kB
import { z } from 'zod'; export declare const GtfsExportPropertiesSchema: z.ZodObject<{ properties: z.ZodObject<{ agency_ids: z.ZodArray<z.ZodString, "many">; calendars_clip_end_date: z.ZodEffects<z.ZodString, import("@tmlmobilidade/go-types-shared").OperationalDate, string>; calendars_clip_start_date: z.ZodEffects<z.ZodString, import("@tmlmobilidade/go-types-shared").OperationalDate, string>; feed_end_date: z.ZodEffects<z.ZodString, import("@tmlmobilidade/go-types-shared").OperationalDate, string>; feed_start_date: z.ZodEffects<z.ZodString, import("@tmlmobilidade/go-types-shared").OperationalDate, string>; lines_exclude: z.ZodDefault<z.ZodArray<z.ZodString, "many">>; lines_include: z.ZodDefault<z.ZodArray<z.ZodString, "many">>; lines_mode: z.ZodDefault<z.ZodEnum<["all", "exclude", "include"]>>; numeric_calendar_codes: z.ZodDefault<z.ZodBoolean>; stop_sequence_start: z.ZodDefault<z.ZodNumber>; stops_export_all: z.ZodDefault<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { agency_ids: string[]; lines_mode: "exclude" | "include" | "all"; calendars_clip_end_date: string & { __brand: "OperationalDate"; }; calendars_clip_start_date: string & { __brand: "OperationalDate"; }; feed_end_date: string & { __brand: "OperationalDate"; }; feed_start_date: string & { __brand: "OperationalDate"; }; lines_exclude: string[]; lines_include: string[]; numeric_calendar_codes: boolean; stop_sequence_start: number; stops_export_all: boolean; }, { agency_ids: string[]; calendars_clip_end_date: string; calendars_clip_start_date: string; feed_end_date: string; feed_start_date: string; lines_mode?: "exclude" | "include" | "all" | undefined; lines_exclude?: string[] | undefined; lines_include?: string[] | undefined; numeric_calendar_codes?: boolean | undefined; stop_sequence_start?: number | undefined; stops_export_all?: boolean | undefined; }>; type: z.ZodLiteral<"gtfs">; }, "strip", z.ZodTypeAny, { type: "gtfs"; properties: { agency_ids: string[]; lines_mode: "exclude" | "include" | "all"; calendars_clip_end_date: string & { __brand: "OperationalDate"; }; calendars_clip_start_date: string & { __brand: "OperationalDate"; }; feed_end_date: string & { __brand: "OperationalDate"; }; feed_start_date: string & { __brand: "OperationalDate"; }; lines_exclude: string[]; lines_include: string[]; numeric_calendar_codes: boolean; stop_sequence_start: number; stops_export_all: boolean; }; }, { type: "gtfs"; properties: { agency_ids: string[]; calendars_clip_end_date: string; calendars_clip_start_date: string; feed_end_date: string; feed_start_date: string; lines_mode?: "exclude" | "include" | "all" | undefined; lines_exclude?: string[] | undefined; lines_include?: string[] | undefined; numeric_calendar_codes?: boolean | undefined; stop_sequence_start?: number | undefined; stops_export_all?: boolean | undefined; }; }>; export declare const GtfsExportSchema: z.ZodObject<{ _id: z.ZodString; created_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>; created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>; updated_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>; updated_by: z.ZodOptional<z.ZodString>; file_id: z.ZodOptional<z.ZodNullable<z.ZodString>>; file_name: z.ZodString; processing_status: z.ZodEnum<["waiting", "processing", "complete", "error", "skipped"]>; } & { properties: z.ZodObject<{ agency_ids: z.ZodArray<z.ZodString, "many">; calendars_clip_end_date: z.ZodEffects<z.ZodString, import("@tmlmobilidade/go-types-shared").OperationalDate, string>; calendars_clip_start_date: z.ZodEffects<z.ZodString, import("@tmlmobilidade/go-types-shared").OperationalDate, string>; feed_end_date: z.ZodEffects<z.ZodString, import("@tmlmobilidade/go-types-shared").OperationalDate, string>; feed_start_date: z.ZodEffects<z.ZodString, import("@tmlmobilidade/go-types-shared").OperationalDate, string>; lines_exclude: z.ZodDefault<z.ZodArray<z.ZodString, "many">>; lines_include: z.ZodDefault<z.ZodArray<z.ZodString, "many">>; lines_mode: z.ZodDefault<z.ZodEnum<["all", "exclude", "include"]>>; numeric_calendar_codes: z.ZodDefault<z.ZodBoolean>; stop_sequence_start: z.ZodDefault<z.ZodNumber>; stops_export_all: z.ZodDefault<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { agency_ids: string[]; lines_mode: "exclude" | "include" | "all"; calendars_clip_end_date: string & { __brand: "OperationalDate"; }; calendars_clip_start_date: string & { __brand: "OperationalDate"; }; feed_end_date: string & { __brand: "OperationalDate"; }; feed_start_date: string & { __brand: "OperationalDate"; }; lines_exclude: string[]; lines_include: string[]; numeric_calendar_codes: boolean; stop_sequence_start: number; stops_export_all: boolean; }, { agency_ids: string[]; calendars_clip_end_date: string; calendars_clip_start_date: string; feed_end_date: string; feed_start_date: string; lines_mode?: "exclude" | "include" | "all" | undefined; lines_exclude?: string[] | undefined; lines_include?: string[] | undefined; numeric_calendar_codes?: boolean | undefined; stop_sequence_start?: number | undefined; stops_export_all?: boolean | undefined; }>; type: z.ZodLiteral<"gtfs">; }, "strip", z.ZodTypeAny, { _id: string; created_at: number & { __brand: "UnixTimestamp"; }; created_by: string | null; updated_at: number & { __brand: "UnixTimestamp"; }; type: "gtfs"; file_name: string; processing_status: "error" | "waiting" | "processing" | "complete" | "skipped"; properties: { agency_ids: string[]; lines_mode: "exclude" | "include" | "all"; calendars_clip_end_date: string & { __brand: "OperationalDate"; }; calendars_clip_start_date: string & { __brand: "OperationalDate"; }; feed_end_date: string & { __brand: "OperationalDate"; }; feed_start_date: string & { __brand: "OperationalDate"; }; lines_exclude: string[]; lines_include: string[]; numeric_calendar_codes: boolean; stop_sequence_start: number; stops_export_all: boolean; }; updated_by?: string | undefined; file_id?: string | null | undefined; }, { _id: string; created_at: number; updated_at: number; type: "gtfs"; file_name: string; processing_status: "error" | "waiting" | "processing" | "complete" | "skipped"; properties: { agency_ids: string[]; calendars_clip_end_date: string; calendars_clip_start_date: string; feed_end_date: string; feed_start_date: string; lines_mode?: "exclude" | "include" | "all" | undefined; lines_exclude?: string[] | undefined; lines_include?: string[] | undefined; numeric_calendar_codes?: boolean | undefined; stop_sequence_start?: number | undefined; stops_export_all?: boolean | undefined; }; created_by?: string | null | undefined; updated_by?: string | undefined; file_id?: string | null | undefined; }>; export type GtfsExportProperties = z.infer<typeof GtfsExportPropertiesSchema>;