UNPKG

@tmlmobilidade/types

Version:
854 lines (853 loc) • 40.8 kB
import { z } from 'zod'; export declare const PlanSchema: 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>; } & { apex_file_id: z.ZodDefault<z.ZodNullable<z.ZodString>>; apps: z.ZodDefault<z.ZodObject<{ controller: z.ZodDefault<z.ZodObject<{ last_hash: z.ZodDefault<z.ZodNullable<z.ZodString>>; status: z.ZodDefault<z.ZodEnum<["waiting", "processing", "complete", "error", "skipped"]>>; timestamp: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>>>; }, "strip", z.ZodTypeAny, { status: "error" | "waiting" | "processing" | "complete" | "skipped"; last_hash: string | null; timestamp: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null; }, { status?: "error" | "waiting" | "processing" | "complete" | "skipped" | undefined; last_hash?: string | null | undefined; timestamp?: number | null | undefined; }>>; hub_gtfs: z.ZodDefault<z.ZodObject<{ last_hash: z.ZodDefault<z.ZodNullable<z.ZodString>>; status: z.ZodDefault<z.ZodEnum<["waiting", "processing", "complete", "error", "skipped"]>>; timestamp: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>>>; }, "strip", z.ZodTypeAny, { status: "error" | "waiting" | "processing" | "complete" | "skipped"; last_hash: string | null; timestamp: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null; }, { status?: "error" | "waiting" | "processing" | "complete" | "skipped" | undefined; last_hash?: string | null | undefined; timestamp?: number | null | undefined; }>>; hub_schedules: z.ZodDefault<z.ZodObject<{ last_hash: z.ZodDefault<z.ZodNullable<z.ZodString>>; status: z.ZodDefault<z.ZodEnum<["waiting", "processing", "complete", "error", "skipped"]>>; timestamp: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>>>; }, "strip", z.ZodTypeAny, { status: "error" | "waiting" | "processing" | "complete" | "skipped"; last_hash: string | null; timestamp: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null; }, { status?: "error" | "waiting" | "processing" | "complete" | "skipped" | undefined; last_hash?: string | null | undefined; timestamp?: number | null | undefined; }>>; merger: z.ZodDefault<z.ZodObject<{ last_hash: z.ZodDefault<z.ZodNullable<z.ZodString>>; status: z.ZodDefault<z.ZodEnum<["waiting", "processing", "complete", "error", "skipped"]>>; timestamp: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>>>; }, "strip", z.ZodTypeAny, { status: "error" | "waiting" | "processing" | "complete" | "skipped"; last_hash: string | null; timestamp: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null; }, { status?: "error" | "waiting" | "processing" | "complete" | "skipped" | undefined; last_hash?: string | null | undefined; timestamp?: number | null | undefined; }>>; }, "strip", z.ZodTypeAny, { controller: { status: "error" | "waiting" | "processing" | "complete" | "skipped"; last_hash: string | null; timestamp: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null; }; hub_gtfs: { status: "error" | "waiting" | "processing" | "complete" | "skipped"; last_hash: string | null; timestamp: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null; }; hub_schedules: { status: "error" | "waiting" | "processing" | "complete" | "skipped"; last_hash: string | null; timestamp: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null; }; merger: { status: "error" | "waiting" | "processing" | "complete" | "skipped"; last_hash: string | null; timestamp: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null; }; }, { controller?: { status?: "error" | "waiting" | "processing" | "complete" | "skipped" | undefined; last_hash?: string | null | undefined; timestamp?: number | null | undefined; } | undefined; hub_gtfs?: { status?: "error" | "waiting" | "processing" | "complete" | "skipped" | undefined; last_hash?: string | null | undefined; timestamp?: number | null | undefined; } | undefined; hub_schedules?: { status?: "error" | "waiting" | "processing" | "complete" | "skipped" | undefined; last_hash?: string | null | undefined; timestamp?: number | null | undefined; } | undefined; merger?: { status?: "error" | "waiting" | "processing" | "complete" | "skipped" | undefined; last_hash?: string | null | undefined; timestamp?: number | null | undefined; } | undefined; }>>; gtfs_agency: z.ZodObject<{ agency_email: z.ZodOptional<z.ZodNullable<z.ZodString>>; agency_fare_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; agency_id: z.ZodString; agency_lang: z.ZodOptional<z.ZodNullable<z.ZodString>>; agency_name: z.ZodString; agency_phone: z.ZodOptional<z.ZodNullable<z.ZodString>>; agency_timezone: z.ZodString; agency_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { agency_id: string; agency_name: string; agency_timezone: string; agency_email?: string | null | undefined; agency_fare_url?: string | null | undefined; agency_lang?: string | null | undefined; agency_phone?: string | null | undefined; agency_url?: string | null | undefined; }, { agency_id: string; agency_name: string; agency_timezone: string; agency_email?: string | null | undefined; agency_fare_url?: string | null | undefined; agency_lang?: string | null | undefined; agency_phone?: string | null | undefined; agency_url?: string | null | undefined; }>; gtfs_feed_info: z.ZodObject<{ default_lang: z.ZodOptional<z.ZodNullable<z.ZodString>>; feed_contact_email: z.ZodOptional<z.ZodNullable<z.ZodString>>; feed_contact_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; feed_end_date: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, import("@tmlmobilidade/go-types-shared").OperationalDate, string>>>; feed_lang: z.ZodString; feed_publisher_name: z.ZodOptional<z.ZodNullable<z.ZodString>>; feed_publisher_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; feed_start_date: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, import("@tmlmobilidade/go-types-shared").OperationalDate, string>>>; feed_version: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { feed_lang: string; feed_end_date?: import("@tmlmobilidade/go-types-shared").OperationalDate | null | undefined; feed_start_date?: import("@tmlmobilidade/go-types-shared").OperationalDate | null | undefined; default_lang?: string | null | undefined; feed_contact_email?: string | null | undefined; feed_contact_url?: string | null | undefined; feed_publisher_name?: string | null | undefined; feed_publisher_url?: string | null | undefined; feed_version?: string | null | undefined; }, { feed_lang: string; feed_end_date?: string | null | undefined; feed_start_date?: string | null | undefined; default_lang?: string | null | undefined; feed_contact_email?: string | null | undefined; feed_contact_url?: string | null | undefined; feed_publisher_name?: string | null | undefined; feed_publisher_url?: string | null | undefined; feed_version?: string | null | undefined; }>; hash: z.ZodString; is_locked: z.ZodDefault<z.ZodBoolean>; operation_file_id: z.ZodString; pcgi_legacy: z.ZodObject<{ operation_plan_id: z.ZodNullable<z.ZodString>; }, "strip", z.ZodTypeAny, { operation_plan_id: string | null; }, { operation_plan_id: string | null; }>; }, "strip", z.ZodTypeAny, { _id: string; created_at: number & { __brand: "UnixTimestamp"; }; created_by: string | null; is_locked: boolean; updated_at: number & { __brand: "UnixTimestamp"; }; gtfs_agency: { agency_id: string; agency_name: string; agency_timezone: string; agency_email?: string | null | undefined; agency_fare_url?: string | null | undefined; agency_lang?: string | null | undefined; agency_phone?: string | null | undefined; agency_url?: string | null | undefined; }; gtfs_feed_info: { feed_lang: string; feed_end_date?: import("@tmlmobilidade/go-types-shared").OperationalDate | null | undefined; feed_start_date?: import("@tmlmobilidade/go-types-shared").OperationalDate | null | undefined; default_lang?: string | null | undefined; feed_contact_email?: string | null | undefined; feed_contact_url?: string | null | undefined; feed_publisher_name?: string | null | undefined; feed_publisher_url?: string | null | undefined; feed_version?: string | null | undefined; }; apex_file_id: string | null; apps: { controller: { status: "error" | "waiting" | "processing" | "complete" | "skipped"; last_hash: string | null; timestamp: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null; }; hub_gtfs: { status: "error" | "waiting" | "processing" | "complete" | "skipped"; last_hash: string | null; timestamp: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null; }; hub_schedules: { status: "error" | "waiting" | "processing" | "complete" | "skipped"; last_hash: string | null; timestamp: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null; }; merger: { status: "error" | "waiting" | "processing" | "complete" | "skipped"; last_hash: string | null; timestamp: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null; }; }; hash: string; operation_file_id: string; pcgi_legacy: { operation_plan_id: string | null; }; updated_by?: string | undefined; }, { _id: string; created_at: number; updated_at: number; gtfs_agency: { agency_id: string; agency_name: string; agency_timezone: string; agency_email?: string | null | undefined; agency_fare_url?: string | null | undefined; agency_lang?: string | null | undefined; agency_phone?: string | null | undefined; agency_url?: string | null | undefined; }; gtfs_feed_info: { feed_lang: string; feed_end_date?: string | null | undefined; feed_start_date?: string | null | undefined; default_lang?: string | null | undefined; feed_contact_email?: string | null | undefined; feed_contact_url?: string | null | undefined; feed_publisher_name?: string | null | undefined; feed_publisher_url?: string | null | undefined; feed_version?: string | null | undefined; }; hash: string; operation_file_id: string; pcgi_legacy: { operation_plan_id: string | null; }; created_by?: string | null | undefined; is_locked?: boolean | undefined; updated_by?: string | undefined; apex_file_id?: string | null | undefined; apps?: { controller?: { status?: "error" | "waiting" | "processing" | "complete" | "skipped" | undefined; last_hash?: string | null | undefined; timestamp?: number | null | undefined; } | undefined; hub_gtfs?: { status?: "error" | "waiting" | "processing" | "complete" | "skipped" | undefined; last_hash?: string | null | undefined; timestamp?: number | null | undefined; } | undefined; hub_schedules?: { status?: "error" | "waiting" | "processing" | "complete" | "skipped" | undefined; last_hash?: string | null | undefined; timestamp?: number | null | undefined; } | undefined; merger?: { status?: "error" | "waiting" | "processing" | "complete" | "skipped" | undefined; last_hash?: string | null | undefined; timestamp?: number | null | undefined; } | undefined; } | undefined; }>; export declare const CreatePlanSchema: z.ZodObject<Omit<{ _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>; } & { apex_file_id: z.ZodDefault<z.ZodNullable<z.ZodString>>; apps: z.ZodDefault<z.ZodObject<{ controller: z.ZodDefault<z.ZodObject<{ last_hash: z.ZodDefault<z.ZodNullable<z.ZodString>>; status: z.ZodDefault<z.ZodEnum<["waiting", "processing", "complete", "error", "skipped"]>>; timestamp: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>>>; }, "strip", z.ZodTypeAny, { status: "error" | "waiting" | "processing" | "complete" | "skipped"; last_hash: string | null; timestamp: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null; }, { status?: "error" | "waiting" | "processing" | "complete" | "skipped" | undefined; last_hash?: string | null | undefined; timestamp?: number | null | undefined; }>>; hub_gtfs: z.ZodDefault<z.ZodObject<{ last_hash: z.ZodDefault<z.ZodNullable<z.ZodString>>; status: z.ZodDefault<z.ZodEnum<["waiting", "processing", "complete", "error", "skipped"]>>; timestamp: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>>>; }, "strip", z.ZodTypeAny, { status: "error" | "waiting" | "processing" | "complete" | "skipped"; last_hash: string | null; timestamp: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null; }, { status?: "error" | "waiting" | "processing" | "complete" | "skipped" | undefined; last_hash?: string | null | undefined; timestamp?: number | null | undefined; }>>; hub_schedules: z.ZodDefault<z.ZodObject<{ last_hash: z.ZodDefault<z.ZodNullable<z.ZodString>>; status: z.ZodDefault<z.ZodEnum<["waiting", "processing", "complete", "error", "skipped"]>>; timestamp: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>>>; }, "strip", z.ZodTypeAny, { status: "error" | "waiting" | "processing" | "complete" | "skipped"; last_hash: string | null; timestamp: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null; }, { status?: "error" | "waiting" | "processing" | "complete" | "skipped" | undefined; last_hash?: string | null | undefined; timestamp?: number | null | undefined; }>>; merger: z.ZodDefault<z.ZodObject<{ last_hash: z.ZodDefault<z.ZodNullable<z.ZodString>>; status: z.ZodDefault<z.ZodEnum<["waiting", "processing", "complete", "error", "skipped"]>>; timestamp: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>>>; }, "strip", z.ZodTypeAny, { status: "error" | "waiting" | "processing" | "complete" | "skipped"; last_hash: string | null; timestamp: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null; }, { status?: "error" | "waiting" | "processing" | "complete" | "skipped" | undefined; last_hash?: string | null | undefined; timestamp?: number | null | undefined; }>>; }, "strip", z.ZodTypeAny, { controller: { status: "error" | "waiting" | "processing" | "complete" | "skipped"; last_hash: string | null; timestamp: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null; }; hub_gtfs: { status: "error" | "waiting" | "processing" | "complete" | "skipped"; last_hash: string | null; timestamp: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null; }; hub_schedules: { status: "error" | "waiting" | "processing" | "complete" | "skipped"; last_hash: string | null; timestamp: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null; }; merger: { status: "error" | "waiting" | "processing" | "complete" | "skipped"; last_hash: string | null; timestamp: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null; }; }, { controller?: { status?: "error" | "waiting" | "processing" | "complete" | "skipped" | undefined; last_hash?: string | null | undefined; timestamp?: number | null | undefined; } | undefined; hub_gtfs?: { status?: "error" | "waiting" | "processing" | "complete" | "skipped" | undefined; last_hash?: string | null | undefined; timestamp?: number | null | undefined; } | undefined; hub_schedules?: { status?: "error" | "waiting" | "processing" | "complete" | "skipped" | undefined; last_hash?: string | null | undefined; timestamp?: number | null | undefined; } | undefined; merger?: { status?: "error" | "waiting" | "processing" | "complete" | "skipped" | undefined; last_hash?: string | null | undefined; timestamp?: number | null | undefined; } | undefined; }>>; gtfs_agency: z.ZodObject<{ agency_email: z.ZodOptional<z.ZodNullable<z.ZodString>>; agency_fare_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; agency_id: z.ZodString; agency_lang: z.ZodOptional<z.ZodNullable<z.ZodString>>; agency_name: z.ZodString; agency_phone: z.ZodOptional<z.ZodNullable<z.ZodString>>; agency_timezone: z.ZodString; agency_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { agency_id: string; agency_name: string; agency_timezone: string; agency_email?: string | null | undefined; agency_fare_url?: string | null | undefined; agency_lang?: string | null | undefined; agency_phone?: string | null | undefined; agency_url?: string | null | undefined; }, { agency_id: string; agency_name: string; agency_timezone: string; agency_email?: string | null | undefined; agency_fare_url?: string | null | undefined; agency_lang?: string | null | undefined; agency_phone?: string | null | undefined; agency_url?: string | null | undefined; }>; gtfs_feed_info: z.ZodObject<{ default_lang: z.ZodOptional<z.ZodNullable<z.ZodString>>; feed_contact_email: z.ZodOptional<z.ZodNullable<z.ZodString>>; feed_contact_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; feed_end_date: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, import("@tmlmobilidade/go-types-shared").OperationalDate, string>>>; feed_lang: z.ZodString; feed_publisher_name: z.ZodOptional<z.ZodNullable<z.ZodString>>; feed_publisher_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; feed_start_date: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, import("@tmlmobilidade/go-types-shared").OperationalDate, string>>>; feed_version: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { feed_lang: string; feed_end_date?: import("@tmlmobilidade/go-types-shared").OperationalDate | null | undefined; feed_start_date?: import("@tmlmobilidade/go-types-shared").OperationalDate | null | undefined; default_lang?: string | null | undefined; feed_contact_email?: string | null | undefined; feed_contact_url?: string | null | undefined; feed_publisher_name?: string | null | undefined; feed_publisher_url?: string | null | undefined; feed_version?: string | null | undefined; }, { feed_lang: string; feed_end_date?: string | null | undefined; feed_start_date?: string | null | undefined; default_lang?: string | null | undefined; feed_contact_email?: string | null | undefined; feed_contact_url?: string | null | undefined; feed_publisher_name?: string | null | undefined; feed_publisher_url?: string | null | undefined; feed_version?: string | null | undefined; }>; hash: z.ZodString; is_locked: z.ZodDefault<z.ZodBoolean>; operation_file_id: z.ZodString; pcgi_legacy: z.ZodObject<{ operation_plan_id: z.ZodNullable<z.ZodString>; }, "strip", z.ZodTypeAny, { operation_plan_id: string | null; }, { operation_plan_id: string | null; }>; }, "_id" | "created_at" | "updated_at">, "strip", z.ZodTypeAny, { created_by: string | null; is_locked: boolean; gtfs_agency: { agency_id: string; agency_name: string; agency_timezone: string; agency_email?: string | null | undefined; agency_fare_url?: string | null | undefined; agency_lang?: string | null | undefined; agency_phone?: string | null | undefined; agency_url?: string | null | undefined; }; gtfs_feed_info: { feed_lang: string; feed_end_date?: import("@tmlmobilidade/go-types-shared").OperationalDate | null | undefined; feed_start_date?: import("@tmlmobilidade/go-types-shared").OperationalDate | null | undefined; default_lang?: string | null | undefined; feed_contact_email?: string | null | undefined; feed_contact_url?: string | null | undefined; feed_publisher_name?: string | null | undefined; feed_publisher_url?: string | null | undefined; feed_version?: string | null | undefined; }; apex_file_id: string | null; apps: { controller: { status: "error" | "waiting" | "processing" | "complete" | "skipped"; last_hash: string | null; timestamp: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null; }; hub_gtfs: { status: "error" | "waiting" | "processing" | "complete" | "skipped"; last_hash: string | null; timestamp: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null; }; hub_schedules: { status: "error" | "waiting" | "processing" | "complete" | "skipped"; last_hash: string | null; timestamp: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null; }; merger: { status: "error" | "waiting" | "processing" | "complete" | "skipped"; last_hash: string | null; timestamp: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null; }; }; hash: string; operation_file_id: string; pcgi_legacy: { operation_plan_id: string | null; }; updated_by?: string | undefined; }, { gtfs_agency: { agency_id: string; agency_name: string; agency_timezone: string; agency_email?: string | null | undefined; agency_fare_url?: string | null | undefined; agency_lang?: string | null | undefined; agency_phone?: string | null | undefined; agency_url?: string | null | undefined; }; gtfs_feed_info: { feed_lang: string; feed_end_date?: string | null | undefined; feed_start_date?: string | null | undefined; default_lang?: string | null | undefined; feed_contact_email?: string | null | undefined; feed_contact_url?: string | null | undefined; feed_publisher_name?: string | null | undefined; feed_publisher_url?: string | null | undefined; feed_version?: string | null | undefined; }; hash: string; operation_file_id: string; pcgi_legacy: { operation_plan_id: string | null; }; created_by?: string | null | undefined; is_locked?: boolean | undefined; updated_by?: string | undefined; apex_file_id?: string | null | undefined; apps?: { controller?: { status?: "error" | "waiting" | "processing" | "complete" | "skipped" | undefined; last_hash?: string | null | undefined; timestamp?: number | null | undefined; } | undefined; hub_gtfs?: { status?: "error" | "waiting" | "processing" | "complete" | "skipped" | undefined; last_hash?: string | null | undefined; timestamp?: number | null | undefined; } | undefined; hub_schedules?: { status?: "error" | "waiting" | "processing" | "complete" | "skipped" | undefined; last_hash?: string | null | undefined; timestamp?: number | null | undefined; } | undefined; merger?: { status?: "error" | "waiting" | "processing" | "complete" | "skipped" | undefined; last_hash?: string | null | undefined; timestamp?: number | null | undefined; } | undefined; } | undefined; }>; export declare const UpdatePlanSchema: z.ZodObject<{ is_locked: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>; updated_by: z.ZodOptional<z.ZodOptional<z.ZodString>>; gtfs_agency: z.ZodOptional<z.ZodObject<{ agency_email: z.ZodOptional<z.ZodNullable<z.ZodString>>; agency_fare_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; agency_id: z.ZodString; agency_lang: z.ZodOptional<z.ZodNullable<z.ZodString>>; agency_name: z.ZodString; agency_phone: z.ZodOptional<z.ZodNullable<z.ZodString>>; agency_timezone: z.ZodString; agency_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { agency_id: string; agency_name: string; agency_timezone: string; agency_email?: string | null | undefined; agency_fare_url?: string | null | undefined; agency_lang?: string | null | undefined; agency_phone?: string | null | undefined; agency_url?: string | null | undefined; }, { agency_id: string; agency_name: string; agency_timezone: string; agency_email?: string | null | undefined; agency_fare_url?: string | null | undefined; agency_lang?: string | null | undefined; agency_phone?: string | null | undefined; agency_url?: string | null | undefined; }>>; gtfs_feed_info: z.ZodOptional<z.ZodObject<{ default_lang: z.ZodOptional<z.ZodNullable<z.ZodString>>; feed_contact_email: z.ZodOptional<z.ZodNullable<z.ZodString>>; feed_contact_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; feed_end_date: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, import("@tmlmobilidade/go-types-shared").OperationalDate, string>>>; feed_lang: z.ZodString; feed_publisher_name: z.ZodOptional<z.ZodNullable<z.ZodString>>; feed_publisher_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; feed_start_date: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, import("@tmlmobilidade/go-types-shared").OperationalDate, string>>>; feed_version: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { feed_lang: string; feed_end_date?: import("@tmlmobilidade/go-types-shared").OperationalDate | null | undefined; feed_start_date?: import("@tmlmobilidade/go-types-shared").OperationalDate | null | undefined; default_lang?: string | null | undefined; feed_contact_email?: string | null | undefined; feed_contact_url?: string | null | undefined; feed_publisher_name?: string | null | undefined; feed_publisher_url?: string | null | undefined; feed_version?: string | null | undefined; }, { feed_lang: string; feed_end_date?: string | null | undefined; feed_start_date?: string | null | undefined; default_lang?: string | null | undefined; feed_contact_email?: string | null | undefined; feed_contact_url?: string | null | undefined; feed_publisher_name?: string | null | undefined; feed_publisher_url?: string | null | undefined; feed_version?: string | null | undefined; }>>; apex_file_id: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>; apps: z.ZodOptional<z.ZodDefault<z.ZodObject<{ controller: z.ZodDefault<z.ZodObject<{ last_hash: z.ZodDefault<z.ZodNullable<z.ZodString>>; status: z.ZodDefault<z.ZodEnum<["waiting", "processing", "complete", "error", "skipped"]>>; timestamp: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>>>; }, "strip", z.ZodTypeAny, { status: "error" | "waiting" | "processing" | "complete" | "skipped"; last_hash: string | null; timestamp: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null; }, { status?: "error" | "waiting" | "processing" | "complete" | "skipped" | undefined; last_hash?: string | null | undefined; timestamp?: number | null | undefined; }>>; hub_gtfs: z.ZodDefault<z.ZodObject<{ last_hash: z.ZodDefault<z.ZodNullable<z.ZodString>>; status: z.ZodDefault<z.ZodEnum<["waiting", "processing", "complete", "error", "skipped"]>>; timestamp: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>>>; }, "strip", z.ZodTypeAny, { status: "error" | "waiting" | "processing" | "complete" | "skipped"; last_hash: string | null; timestamp: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null; }, { status?: "error" | "waiting" | "processing" | "complete" | "skipped" | undefined; last_hash?: string | null | undefined; timestamp?: number | null | undefined; }>>; hub_schedules: z.ZodDefault<z.ZodObject<{ last_hash: z.ZodDefault<z.ZodNullable<z.ZodString>>; status: z.ZodDefault<z.ZodEnum<["waiting", "processing", "complete", "error", "skipped"]>>; timestamp: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>>>; }, "strip", z.ZodTypeAny, { status: "error" | "waiting" | "processing" | "complete" | "skipped"; last_hash: string | null; timestamp: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null; }, { status?: "error" | "waiting" | "processing" | "complete" | "skipped" | undefined; last_hash?: string | null | undefined; timestamp?: number | null | undefined; }>>; merger: z.ZodDefault<z.ZodObject<{ last_hash: z.ZodDefault<z.ZodNullable<z.ZodString>>; status: z.ZodDefault<z.ZodEnum<["waiting", "processing", "complete", "error", "skipped"]>>; timestamp: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>>>; }, "strip", z.ZodTypeAny, { status: "error" | "waiting" | "processing" | "complete" | "skipped"; last_hash: string | null; timestamp: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null; }, { status?: "error" | "waiting" | "processing" | "complete" | "skipped" | undefined; last_hash?: string | null | undefined; timestamp?: number | null | undefined; }>>; }, "strip", z.ZodTypeAny, { controller: { status: "error" | "waiting" | "processing" | "complete" | "skipped"; last_hash: string | null; timestamp: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null; }; hub_gtfs: { status: "error" | "waiting" | "processing" | "complete" | "skipped"; last_hash: string | null; timestamp: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null; }; hub_schedules: { status: "error" | "waiting" | "processing" | "complete" | "skipped"; last_hash: string | null; timestamp: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null; }; merger: { status: "error" | "waiting" | "processing" | "complete" | "skipped"; last_hash: string | null; timestamp: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null; }; }, { controller?: { status?: "error" | "waiting" | "processing" | "complete" | "skipped" | undefined; last_hash?: string | null | undefined; timestamp?: number | null | undefined; } | undefined; hub_gtfs?: { status?: "error" | "waiting" | "processing" | "complete" | "skipped" | undefined; last_hash?: string | null | undefined; timestamp?: number | null | undefined; } | undefined; hub_schedules?: { status?: "error" | "waiting" | "processing" | "complete" | "skipped" | undefined; last_hash?: string | null | undefined; timestamp?: number | null | undefined; } | undefined; merger?: { status?: "error" | "waiting" | "processing" | "complete" | "skipped" | undefined; last_hash?: string | null | undefined; timestamp?: number | null | undefined; } | undefined; }>>>; hash: z.ZodOptional<z.ZodString>; operation_file_id: z.ZodOptional<z.ZodString>; pcgi_legacy: z.ZodOptional<z.ZodObject<{ operation_plan_id: z.ZodNullable<z.ZodString>; }, "strip", z.ZodTypeAny, { operation_plan_id: string | null; }, { operation_plan_id: string | null; }>>; }, "strip", z.ZodTypeAny, { is_locked?: boolean | undefined; updated_by?: string | undefined; gtfs_agency?: { agency_id: string; agency_name: string; agency_timezone: string; agency_email?: string | null | undefined; agency_fare_url?: string | null | undefined; agency_lang?: string | null | undefined; agency_phone?: string | null | undefined; agency_url?: string | null | undefined; } | undefined; gtfs_feed_info?: { feed_lang: string; feed_end_date?: import("@tmlmobilidade/go-types-shared").OperationalDate | null | undefined; feed_start_date?: import("@tmlmobilidade/go-types-shared").OperationalDate | null | undefined; default_lang?: string | null | undefined; feed_contact_email?: string | null | undefined; feed_contact_url?: string | null | undefined; feed_publisher_name?: string | null | undefined; feed_publisher_url?: string | null | undefined; feed_version?: string | null | undefined; } | undefined; apex_file_id?: string | null | undefined; apps?: { controller: { status: "error" | "waiting" | "processing" | "complete" | "skipped"; last_hash: string | null; timestamp: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null; }; hub_gtfs: { status: "error" | "waiting" | "processing" | "complete" | "skipped"; last_hash: string | null; timestamp: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null; }; hub_schedules: { status: "error" | "waiting" | "processing" | "complete" | "skipped"; last_hash: string | null; timestamp: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null; }; merger: { status: "error" | "waiting" | "processing" | "complete" | "skipped"; last_hash: string | null; timestamp: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null; }; } | undefined; hash?: string | undefined; operation_file_id?: string | undefined; pcgi_legacy?: { operation_plan_id: string | null; } | undefined; }, { is_locked?: boolean | undefined; updated_by?: string | undefined; gtfs_agency?: { agency_id: string; agency_name: string; agency_timezone: string; agency_email?: string | null | undefined; agency_fare_url?: string | null | undefined; agency_lang?: string | null | undefined; agency_phone?: string | null | undefined; agency_url?: string | null | undefined; } | undefined; gtfs_feed_info?: { feed_lang: string; feed_end_date?: string | null | undefined; feed_start_date?: string | null | undefined; default_lang?: string | null | undefined; feed_contact_email?: string | null | undefined; feed_contact_url?: string | null | undefined; feed_publisher_name?: string | null | undefined; feed_publisher_url?: string | null | undefined; feed_version?: string | null | undefined; } | undefined; apex_file_id?: string | null | undefined; apps?: { controller?: { status?: "error" | "waiting" | "processing" | "complete" | "skipped" | undefined; last_hash?: string | null | undefined; timestamp?: number | null | undefined; } | undefined; hub_gtfs?: { status?: "error" | "waiting" | "processing" | "complete" | "skipped" | undefined; last_hash?: string | null | undefined; timestamp?: number | null | undefined; } | undefined; hub_schedules?: { status?: "error" | "waiting" | "processing" | "complete" | "skipped" | undefined; last_hash?: string | null | undefined; timestamp?: number | null | undefined; } | undefined; merger?: { status?: "error" | "waiting" | "processing" | "complete" | "skipped" | undefined; last_hash?: string | null | undefined; timestamp?: number | null | undefined; } | undefined; } | undefined; hash?: string | undefined; operation_file_id?: string | undefined; pcgi_legacy?: { operation_plan_id: string | null; } | undefined; }>; export type Plan = z.infer<typeof PlanSchema>; export type CreatePlanDto = z.infer<typeof CreatePlanSchema>; export type UpdatePlanDto = z.infer<typeof UpdatePlanSchema>; export interface HashablePlanMetadata { _id: Plan['_id']; gtfs_agency: Plan['gtfs_agency']; gtfs_feed_info: Plan['gtfs_feed_info']; operation_file_id: Plan['operation_file_id']; }