UNPKG

@tmlmobilidade/types

Version:
1,235 lines • 62.1 kB
import { z } from 'zod'; export declare const StopSchema: z.ZodObject<{ created_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>; created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>; is_locked: z.ZodDefault<z.ZodBoolean>; updated_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>; updated_by: z.ZodOptional<z.ZodString>; } & { _id: z.ZodNumber; flags: z.ZodDefault<z.ZodArray<z.ZodObject<{ agency_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>; is_harmonized: z.ZodDefault<z.ZodBoolean>; short_name: z.ZodString; stop_id: z.ZodString; }, "strip", z.ZodTypeAny, { short_name: string; agency_ids: string[]; is_harmonized: boolean; stop_id: string; }, { short_name: string; stop_id: string; agency_ids?: string[] | undefined; is_harmonized?: boolean | undefined; }>, "many">>; is_deleted: z.ZodDefault<z.ZodBoolean>; jurisdiction: z.ZodDefault<z.ZodEnum<["ip", "municipality", "other", "unknown"]>>; legacy_id: z.ZodDefault<z.ZodNullable<z.ZodString>>; legacy_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>; lifecycle_status: z.ZodDefault<z.ZodEnum<["draft", "active", "inactive", "provisional", "seasonal", "voided"]>>; name: z.ZodString; new_name: z.ZodDefault<z.ZodNullable<z.ZodString>>; previous_go_id: z.ZodDefault<z.ZodNullable<z.ZodString>>; short_name: z.ZodString; tts_name: z.ZodString; district_id: z.ZodString; latitude: z.ZodNumber; locality_id: z.ZodDefault<z.ZodNullable<z.ZodString>>; longitude: z.ZodNumber; municipality_id: z.ZodString; parish_id: z.ZodDefault<z.ZodNullable<z.ZodString>>; bench_status: z.ZodDefault<z.ZodEnum<["not_applicable", "unknown", "missing", "damaged", "ok"]>>; electricity_status: z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>; pole_status: z.ZodDefault<z.ZodEnum<["not_applicable", "unknown", "missing", "damaged", "ok"]>>; road_type: z.ZodDefault<z.ZodEnum<["complementary_itinerary", "highway", "main_itinerary", "national_road", "regional_road", "secondary_road", "unknown"]>>; shelter_code: z.ZodDefault<z.ZodNullable<z.ZodString>>; shelter_frame_size: z.ZodDefault<z.ZodNullable<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>; shelter_installation_date: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>>>; shelter_maintainer: z.ZodDefault<z.ZodNullable<z.ZodString>>; shelter_make: z.ZodDefault<z.ZodNullable<z.ZodString>>; shelter_model: z.ZodDefault<z.ZodNullable<z.ZodString>>; shelter_status: z.ZodDefault<z.ZodEnum<["not_applicable", "unknown", "missing", "damaged", "ok"]>>; last_infrastructure_check: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>>>; last_infrastructure_maintenance: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>>>; last_schedules_check: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>>>; last_schedules_maintenance: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>>>; connections: z.ZodDefault<z.ZodArray<z.ZodEnum<["ferry", "light_rail", "subway", "train", "boat", "airport", "bike_sharing", "bike_parking", "car_parking"]>, "many">>; facilities: z.ZodDefault<z.ZodArray<z.ZodEnum<["fire_station", "health_clinic", "historic_building", "hospital", "police_station", "school", "shopping", "transit_office", "university", "beach"]>, "many">>; equipment: z.ZodDefault<z.ZodArray<z.ZodEnum<["pip", "mupi", "mini_pip"]>, "many">>; has_bench: z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>; has_mupi: z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>; has_network_map: z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>; has_schedules: z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>; has_shelter: z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>; has_stop_sign: z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>; file_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>; image_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>; comments: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ message: z.ZodString; type: z.ZodLiteral<"note">; _id: z.ZodOptional<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>; }, "strip", z.ZodTypeAny, { message: string; type: "note"; created_at: number & { __brand: "UnixTimestamp"; }; created_by: string | null; updated_at: number & { __brand: "UnixTimestamp"; }; _id?: string | undefined; updated_by?: string | undefined; }, { message: string; type: "note"; created_at: number; updated_at: number; _id?: string | undefined; created_by?: string | null | undefined; updated_by?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"field_changed">; _id: z.ZodOptional<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>; curr_value: z.ZodAny; field: z.ZodString; prev_value: z.ZodAny; metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{ changes: z.ZodOptional<z.ZodArray<z.ZodObject<{ curr_value: z.ZodAny; field: z.ZodString; prev_value: z.ZodAny; }, "strip", z.ZodTypeAny, { field: string; curr_value?: any; prev_value?: any; }, { field: string; curr_value?: any; prev_value?: any; }>, "many">>; }, "strip", z.ZodTypeAny, { changes?: { field: string; curr_value?: any; prev_value?: any; }[] | undefined; }, { changes?: { field: string; curr_value?: any; prev_value?: any; }[] | undefined; }>>>; }, "strip", z.ZodTypeAny, { type: "field_changed"; created_at: number & { __brand: "UnixTimestamp"; }; created_by: string | null; updated_at: number & { __brand: "UnixTimestamp"; }; field: string; _id?: string | undefined; updated_by?: string | undefined; curr_value?: any; prev_value?: any; metadata?: { changes?: { field: string; curr_value?: any; prev_value?: any; }[] | undefined; } | null | undefined; }, { type: "field_changed"; created_at: number; updated_at: number; field: string; _id?: string | undefined; created_by?: string | null | undefined; updated_by?: string | undefined; curr_value?: any; prev_value?: any; metadata?: { changes?: { field: string; curr_value?: any; prev_value?: any; }[] | undefined; } | null | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"crud">; _id: z.ZodOptional<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>; action: z.ZodEnum<["create", "update", "delete", "archive", "restore"]>; }, "strip", z.ZodTypeAny, { type: "crud"; created_at: number & { __brand: "UnixTimestamp"; }; created_by: string | null; updated_at: number & { __brand: "UnixTimestamp"; }; action: "create" | "update" | "delete" | "archive" | "restore"; _id?: string | undefined; updated_by?: string | undefined; }, { type: "crud"; created_at: number; updated_at: number; action: "create" | "update" | "delete" | "archive" | "restore"; _id?: string | undefined; created_by?: string | null | undefined; updated_by?: string | undefined; }>]>, { message: string; type: "note"; created_at: number & { __brand: "UnixTimestamp"; }; created_by: string | null; updated_at: number & { __brand: "UnixTimestamp"; }; _id?: string | undefined; updated_by?: string | undefined; } | { type: "field_changed"; created_at: number & { __brand: "UnixTimestamp"; }; created_by: string | null; updated_at: number & { __brand: "UnixTimestamp"; }; field: string; _id?: string | undefined; updated_by?: string | undefined; curr_value?: any; prev_value?: any; metadata?: { changes?: { field: string; curr_value?: any; prev_value?: any; }[] | undefined; } | null | undefined; } | { type: "crud"; created_at: number & { __brand: "UnixTimestamp"; }; created_by: string | null; updated_at: number & { __brand: "UnixTimestamp"; }; action: "create" | "update" | "delete" | "archive" | "restore"; _id?: string | undefined; updated_by?: string | undefined; }, { message: string; type: "note"; created_at: number; updated_at: number; _id?: string | undefined; created_by?: string | null | undefined; updated_by?: string | undefined; } | { type: "field_changed"; created_at: number; updated_at: number; field: string; _id?: string | undefined; created_by?: string | null | undefined; updated_by?: string | undefined; curr_value?: any; prev_value?: any; metadata?: { changes?: { field: string; curr_value?: any; prev_value?: any; }[] | undefined; } | null | undefined; } | { type: "crud"; created_at: number; updated_at: number; action: "create" | "update" | "delete" | "archive" | "restore"; _id?: string | undefined; created_by?: string | null | undefined; updated_by?: string | undefined; }>, "many">>; observations: z.ZodDefault<z.ZodNullable<z.ZodString>>; associated_patterns: z.ZodDefault<z.ZodArray<z.ZodObject<{ _id: z.ZodString; code: z.ZodString; headsign: z.ZodString; line_id: z.ZodString; route_id: z.ZodString; }, "strip", z.ZodTypeAny, { _id: string; code: string; headsign: string; line_id: string; route_id: string; }, { _id: string; code: string; headsign: string; line_id: string; route_id: string; }>, "many">>; }, "strip", z.ZodTypeAny, { _id: number; created_at: number & { __brand: "UnixTimestamp"; }; created_by: string | null; is_locked: boolean; updated_at: number & { __brand: "UnixTimestamp"; }; name: string; short_name: string; associated_patterns: { _id: string; code: string; headsign: string; line_id: string; route_id: string; }[]; comments: ({ message: string; type: "note"; created_at: number & { __brand: "UnixTimestamp"; }; created_by: string | null; updated_at: number & { __brand: "UnixTimestamp"; }; _id?: string | undefined; updated_by?: string | undefined; } | { type: "field_changed"; created_at: number & { __brand: "UnixTimestamp"; }; created_by: string | null; updated_at: number & { __brand: "UnixTimestamp"; }; field: string; _id?: string | undefined; updated_by?: string | undefined; curr_value?: any; prev_value?: any; metadata?: { changes?: { field: string; curr_value?: any; prev_value?: any; }[] | undefined; } | null | undefined; } | { type: "crud"; created_at: number & { __brand: "UnixTimestamp"; }; created_by: string | null; updated_at: number & { __brand: "UnixTimestamp"; }; action: "create" | "update" | "delete" | "archive" | "restore"; _id?: string | undefined; updated_by?: string | undefined; })[]; flags: { short_name: string; agency_ids: string[]; is_harmonized: boolean; stop_id: string; }[]; jurisdiction: "unknown" | "ip" | "municipality" | "other"; legacy_id: string | null; legacy_ids: string[]; lifecycle_status: "draft" | "active" | "inactive" | "provisional" | "seasonal" | "voided"; new_name: string | null; previous_go_id: string | null; tts_name: string; district_id: string; latitude: number; locality_id: string | null; longitude: number; municipality_id: string; parish_id: string | null; bench_status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok"; electricity_status: "unknown" | "available" | "unavailable"; pole_status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok"; road_type: "unknown" | "complementary_itinerary" | "highway" | "main_itinerary" | "national_road" | "regional_road" | "secondary_road"; shelter_code: string | null; shelter_frame_size: [number, number] | null; shelter_installation_date: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null; shelter_maintainer: string | null; shelter_make: string | null; shelter_model: string | null; shelter_status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok"; last_infrastructure_check: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null; last_infrastructure_maintenance: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null; last_schedules_check: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null; last_schedules_maintenance: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null; connections: ("ferry" | "light_rail" | "subway" | "train" | "boat" | "airport" | "bike_sharing" | "bike_parking" | "car_parking")[]; facilities: ("fire_station" | "health_clinic" | "historic_building" | "hospital" | "police_station" | "school" | "shopping" | "transit_office" | "university" | "beach")[]; equipment: ("pip" | "mupi" | "mini_pip")[]; has_bench: "unknown" | "available" | "unavailable"; has_mupi: "unknown" | "available" | "unavailable"; has_network_map: "unknown" | "available" | "unavailable"; has_schedules: "unknown" | "available" | "unavailable"; has_shelter: "unknown" | "available" | "unavailable"; has_stop_sign: "unknown" | "available" | "unavailable"; observations: string | null; is_deleted: boolean; file_ids: string[]; image_ids: string[]; updated_by?: string | undefined; }, { _id: number; created_at: number; updated_at: number; name: string; short_name: string; tts_name: string; district_id: string; latitude: number; longitude: number; municipality_id: string; created_by?: string | null | undefined; is_locked?: boolean | undefined; updated_by?: string | undefined; associated_patterns?: { _id: string; code: string; headsign: string; line_id: string; route_id: string; }[] | undefined; comments?: ({ message: string; type: "note"; created_at: number; updated_at: number; _id?: string | undefined; created_by?: string | null | undefined; updated_by?: string | undefined; } | { type: "field_changed"; created_at: number; updated_at: number; field: string; _id?: string | undefined; created_by?: string | null | undefined; updated_by?: string | undefined; curr_value?: any; prev_value?: any; metadata?: { changes?: { field: string; curr_value?: any; prev_value?: any; }[] | undefined; } | null | undefined; } | { type: "crud"; created_at: number; updated_at: number; action: "create" | "update" | "delete" | "archive" | "restore"; _id?: string | undefined; created_by?: string | null | undefined; updated_by?: string | undefined; })[] | undefined; flags?: { short_name: string; stop_id: string; agency_ids?: string[] | undefined; is_harmonized?: boolean | undefined; }[] | undefined; jurisdiction?: "unknown" | "ip" | "municipality" | "other" | undefined; legacy_id?: string | null | undefined; legacy_ids?: string[] | undefined; lifecycle_status?: "draft" | "active" | "inactive" | "provisional" | "seasonal" | "voided" | undefined; new_name?: string | null | undefined; previous_go_id?: string | null | undefined; locality_id?: string | null | undefined; parish_id?: string | null | undefined; bench_status?: "unknown" | "not_applicable" | "missing" | "damaged" | "ok" | undefined; electricity_status?: "unknown" | "available" | "unavailable" | undefined; pole_status?: "unknown" | "not_applicable" | "missing" | "damaged" | "ok" | undefined; road_type?: "unknown" | "complementary_itinerary" | "highway" | "main_itinerary" | "national_road" | "regional_road" | "secondary_road" | undefined; shelter_code?: string | null | undefined; shelter_frame_size?: [number, number] | null | undefined; shelter_installation_date?: number | null | undefined; shelter_maintainer?: string | null | undefined; shelter_make?: string | null | undefined; shelter_model?: string | null | undefined; shelter_status?: "unknown" | "not_applicable" | "missing" | "damaged" | "ok" | undefined; last_infrastructure_check?: number | null | undefined; last_infrastructure_maintenance?: number | null | undefined; last_schedules_check?: number | null | undefined; last_schedules_maintenance?: number | null | undefined; connections?: ("ferry" | "light_rail" | "subway" | "train" | "boat" | "airport" | "bike_sharing" | "bike_parking" | "car_parking")[] | undefined; facilities?: ("fire_station" | "health_clinic" | "historic_building" | "hospital" | "police_station" | "school" | "shopping" | "transit_office" | "university" | "beach")[] | undefined; equipment?: ("pip" | "mupi" | "mini_pip")[] | undefined; has_bench?: "unknown" | "available" | "unavailable" | undefined; has_mupi?: "unknown" | "available" | "unavailable" | undefined; has_network_map?: "unknown" | "available" | "unavailable" | undefined; has_schedules?: "unknown" | "available" | "unavailable" | undefined; has_shelter?: "unknown" | "available" | "unavailable" | undefined; has_stop_sign?: "unknown" | "available" | "unavailable" | undefined; observations?: string | null | undefined; is_deleted?: boolean | undefined; file_ids?: string[] | undefined; image_ids?: string[] | undefined; }>; export declare const CreateStopSchema: z.ZodObject<Omit<{ created_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>; created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>; is_locked: z.ZodDefault<z.ZodBoolean>; updated_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>; updated_by: z.ZodOptional<z.ZodString>; } & { _id: z.ZodNumber; flags: z.ZodDefault<z.ZodArray<z.ZodObject<{ agency_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>; is_harmonized: z.ZodDefault<z.ZodBoolean>; short_name: z.ZodString; stop_id: z.ZodString; }, "strip", z.ZodTypeAny, { short_name: string; agency_ids: string[]; is_harmonized: boolean; stop_id: string; }, { short_name: string; stop_id: string; agency_ids?: string[] | undefined; is_harmonized?: boolean | undefined; }>, "many">>; is_deleted: z.ZodDefault<z.ZodBoolean>; jurisdiction: z.ZodDefault<z.ZodEnum<["ip", "municipality", "other", "unknown"]>>; legacy_id: z.ZodDefault<z.ZodNullable<z.ZodString>>; legacy_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>; lifecycle_status: z.ZodDefault<z.ZodEnum<["draft", "active", "inactive", "provisional", "seasonal", "voided"]>>; name: z.ZodString; new_name: z.ZodDefault<z.ZodNullable<z.ZodString>>; previous_go_id: z.ZodDefault<z.ZodNullable<z.ZodString>>; short_name: z.ZodString; tts_name: z.ZodString; district_id: z.ZodString; latitude: z.ZodNumber; locality_id: z.ZodDefault<z.ZodNullable<z.ZodString>>; longitude: z.ZodNumber; municipality_id: z.ZodString; parish_id: z.ZodDefault<z.ZodNullable<z.ZodString>>; bench_status: z.ZodDefault<z.ZodEnum<["not_applicable", "unknown", "missing", "damaged", "ok"]>>; electricity_status: z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>; pole_status: z.ZodDefault<z.ZodEnum<["not_applicable", "unknown", "missing", "damaged", "ok"]>>; road_type: z.ZodDefault<z.ZodEnum<["complementary_itinerary", "highway", "main_itinerary", "national_road", "regional_road", "secondary_road", "unknown"]>>; shelter_code: z.ZodDefault<z.ZodNullable<z.ZodString>>; shelter_frame_size: z.ZodDefault<z.ZodNullable<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>; shelter_installation_date: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>>>; shelter_maintainer: z.ZodDefault<z.ZodNullable<z.ZodString>>; shelter_make: z.ZodDefault<z.ZodNullable<z.ZodString>>; shelter_model: z.ZodDefault<z.ZodNullable<z.ZodString>>; shelter_status: z.ZodDefault<z.ZodEnum<["not_applicable", "unknown", "missing", "damaged", "ok"]>>; last_infrastructure_check: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>>>; last_infrastructure_maintenance: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>>>; last_schedules_check: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>>>; last_schedules_maintenance: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>>>; connections: z.ZodDefault<z.ZodArray<z.ZodEnum<["ferry", "light_rail", "subway", "train", "boat", "airport", "bike_sharing", "bike_parking", "car_parking"]>, "many">>; facilities: z.ZodDefault<z.ZodArray<z.ZodEnum<["fire_station", "health_clinic", "historic_building", "hospital", "police_station", "school", "shopping", "transit_office", "university", "beach"]>, "many">>; equipment: z.ZodDefault<z.ZodArray<z.ZodEnum<["pip", "mupi", "mini_pip"]>, "many">>; has_bench: z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>; has_mupi: z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>; has_network_map: z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>; has_schedules: z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>; has_shelter: z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>; has_stop_sign: z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>; file_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>; image_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>; comments: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ message: z.ZodString; type: z.ZodLiteral<"note">; _id: z.ZodOptional<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>; }, "strip", z.ZodTypeAny, { message: string; type: "note"; created_at: number & { __brand: "UnixTimestamp"; }; created_by: string | null; updated_at: number & { __brand: "UnixTimestamp"; }; _id?: string | undefined; updated_by?: string | undefined; }, { message: string; type: "note"; created_at: number; updated_at: number; _id?: string | undefined; created_by?: string | null | undefined; updated_by?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"field_changed">; _id: z.ZodOptional<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>; curr_value: z.ZodAny; field: z.ZodString; prev_value: z.ZodAny; metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{ changes: z.ZodOptional<z.ZodArray<z.ZodObject<{ curr_value: z.ZodAny; field: z.ZodString; prev_value: z.ZodAny; }, "strip", z.ZodTypeAny, { field: string; curr_value?: any; prev_value?: any; }, { field: string; curr_value?: any; prev_value?: any; }>, "many">>; }, "strip", z.ZodTypeAny, { changes?: { field: string; curr_value?: any; prev_value?: any; }[] | undefined; }, { changes?: { field: string; curr_value?: any; prev_value?: any; }[] | undefined; }>>>; }, "strip", z.ZodTypeAny, { type: "field_changed"; created_at: number & { __brand: "UnixTimestamp"; }; created_by: string | null; updated_at: number & { __brand: "UnixTimestamp"; }; field: string; _id?: string | undefined; updated_by?: string | undefined; curr_value?: any; prev_value?: any; metadata?: { changes?: { field: string; curr_value?: any; prev_value?: any; }[] | undefined; } | null | undefined; }, { type: "field_changed"; created_at: number; updated_at: number; field: string; _id?: string | undefined; created_by?: string | null | undefined; updated_by?: string | undefined; curr_value?: any; prev_value?: any; metadata?: { changes?: { field: string; curr_value?: any; prev_value?: any; }[] | undefined; } | null | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"crud">; _id: z.ZodOptional<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>; action: z.ZodEnum<["create", "update", "delete", "archive", "restore"]>; }, "strip", z.ZodTypeAny, { type: "crud"; created_at: number & { __brand: "UnixTimestamp"; }; created_by: string | null; updated_at: number & { __brand: "UnixTimestamp"; }; action: "create" | "update" | "delete" | "archive" | "restore"; _id?: string | undefined; updated_by?: string | undefined; }, { type: "crud"; created_at: number; updated_at: number; action: "create" | "update" | "delete" | "archive" | "restore"; _id?: string | undefined; created_by?: string | null | undefined; updated_by?: string | undefined; }>]>, { message: string; type: "note"; created_at: number & { __brand: "UnixTimestamp"; }; created_by: string | null; updated_at: number & { __brand: "UnixTimestamp"; }; _id?: string | undefined; updated_by?: string | undefined; } | { type: "field_changed"; created_at: number & { __brand: "UnixTimestamp"; }; created_by: string | null; updated_at: number & { __brand: "UnixTimestamp"; }; field: string; _id?: string | undefined; updated_by?: string | undefined; curr_value?: any; prev_value?: any; metadata?: { changes?: { field: string; curr_value?: any; prev_value?: any; }[] | undefined; } | null | undefined; } | { type: "crud"; created_at: number & { __brand: "UnixTimestamp"; }; created_by: string | null; updated_at: number & { __brand: "UnixTimestamp"; }; action: "create" | "update" | "delete" | "archive" | "restore"; _id?: string | undefined; updated_by?: string | undefined; }, { message: string; type: "note"; created_at: number; updated_at: number; _id?: string | undefined; created_by?: string | null | undefined; updated_by?: string | undefined; } | { type: "field_changed"; created_at: number; updated_at: number; field: string; _id?: string | undefined; created_by?: string | null | undefined; updated_by?: string | undefined; curr_value?: any; prev_value?: any; metadata?: { changes?: { field: string; curr_value?: any; prev_value?: any; }[] | undefined; } | null | undefined; } | { type: "crud"; created_at: number; updated_at: number; action: "create" | "update" | "delete" | "archive" | "restore"; _id?: string | undefined; created_by?: string | null | undefined; updated_by?: string | undefined; }>, "many">>; observations: z.ZodDefault<z.ZodNullable<z.ZodString>>; associated_patterns: z.ZodDefault<z.ZodArray<z.ZodObject<{ _id: z.ZodString; code: z.ZodString; headsign: z.ZodString; line_id: z.ZodString; route_id: z.ZodString; }, "strip", z.ZodTypeAny, { _id: string; code: string; headsign: string; line_id: string; route_id: string; }, { _id: string; code: string; headsign: string; line_id: string; route_id: string; }>, "many">>; }, "_id" | "created_at" | "updated_at" | "associated_patterns">, "strip", z.ZodTypeAny, { created_by: string | null; is_locked: boolean; name: string; short_name: string; comments: ({ message: string; type: "note"; created_at: number & { __brand: "UnixTimestamp"; }; created_by: string | null; updated_at: number & { __brand: "UnixTimestamp"; }; _id?: string | undefined; updated_by?: string | undefined; } | { type: "field_changed"; created_at: number & { __brand: "UnixTimestamp"; }; created_by: string | null; updated_at: number & { __brand: "UnixTimestamp"; }; field: string; _id?: string | undefined; updated_by?: string | undefined; curr_value?: any; prev_value?: any; metadata?: { changes?: { field: string; curr_value?: any; prev_value?: any; }[] | undefined; } | null | undefined; } | { type: "crud"; created_at: number & { __brand: "UnixTimestamp"; }; created_by: string | null; updated_at: number & { __brand: "UnixTimestamp"; }; action: "create" | "update" | "delete" | "archive" | "restore"; _id?: string | undefined; updated_by?: string | undefined; })[]; flags: { short_name: string; agency_ids: string[]; is_harmonized: boolean; stop_id: string; }[]; jurisdiction: "unknown" | "ip" | "municipality" | "other"; legacy_id: string | null; legacy_ids: string[]; lifecycle_status: "draft" | "active" | "inactive" | "provisional" | "seasonal" | "voided"; new_name: string | null; previous_go_id: string | null; tts_name: string; district_id: string; latitude: number; locality_id: string | null; longitude: number; municipality_id: string; parish_id: string | null; bench_status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok"; electricity_status: "unknown" | "available" | "unavailable"; pole_status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok"; road_type: "unknown" | "complementary_itinerary" | "highway" | "main_itinerary" | "national_road" | "regional_road" | "secondary_road"; shelter_code: string | null; shelter_frame_size: [number, number] | null; shelter_installation_date: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null; shelter_maintainer: string | null; shelter_make: string | null; shelter_model: string | null; shelter_status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok"; last_infrastructure_check: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null; last_infrastructure_maintenance: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null; last_schedules_check: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null; last_schedules_maintenance: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null; connections: ("ferry" | "light_rail" | "subway" | "train" | "boat" | "airport" | "bike_sharing" | "bike_parking" | "car_parking")[]; facilities: ("fire_station" | "health_clinic" | "historic_building" | "hospital" | "police_station" | "school" | "shopping" | "transit_office" | "university" | "beach")[]; equipment: ("pip" | "mupi" | "mini_pip")[]; has_bench: "unknown" | "available" | "unavailable"; has_mupi: "unknown" | "available" | "unavailable"; has_network_map: "unknown" | "available" | "unavailable"; has_schedules: "unknown" | "available" | "unavailable"; has_shelter: "unknown" | "available" | "unavailable"; has_stop_sign: "unknown" | "available" | "unavailable"; observations: string | null; is_deleted: boolean; file_ids: string[]; image_ids: string[]; updated_by?: string | undefined; }, { name: string; short_name: string; tts_name: string; district_id: string; latitude: number; longitude: number; municipality_id: string; created_by?: string | null | undefined; is_locked?: boolean | undefined; updated_by?: string | undefined; comments?: ({ message: string; type: "note"; created_at: number; updated_at: number; _id?: string | undefined; created_by?: string | null | undefined; updated_by?: string | undefined; } | { type: "field_changed"; created_at: number; updated_at: number; field: string; _id?: string | undefined; created_by?: string | null | undefined; updated_by?: string | undefined; curr_value?: any; prev_value?: any; metadata?: { changes?: { field: string; curr_value?: any; prev_value?: any; }[] | undefined; } | null | undefined; } | { type: "crud"; created_at: number; updated_at: number; action: "create" | "update" | "delete" | "archive" | "restore"; _id?: string | undefined; created_by?: string | null | undefined; updated_by?: string | undefined; })[] | undefined; flags?: { short_name: string; stop_id: string; agency_ids?: string[] | undefined; is_harmonized?: boolean | undefined; }[] | undefined; jurisdiction?: "unknown" | "ip" | "municipality" | "other" | undefined; legacy_id?: string | null | undefined; legacy_ids?: string[] | undefined; lifecycle_status?: "draft" | "active" | "inactive" | "provisional" | "seasonal" | "voided" | undefined; new_name?: string | null | undefined; previous_go_id?: string | null | undefined; locality_id?: string | null | undefined; parish_id?: string | null | undefined; bench_status?: "unknown" | "not_applicable" | "missing" | "damaged" | "ok" | undefined; electricity_status?: "unknown" | "available" | "unavailable" | undefined; pole_status?: "unknown" | "not_applicable" | "missing" | "damaged" | "ok" | undefined; road_type?: "unknown" | "complementary_itinerary" | "highway" | "main_itinerary" | "national_road" | "regional_road" | "secondary_road" | undefined; shelter_code?: string | null | undefined; shelter_frame_size?: [number, number] | null | undefined; shelter_installation_date?: number | null | undefined; shelter_maintainer?: string | null | undefined; shelter_make?: string | null | undefined; shelter_model?: string | null | undefined; shelter_status?: "unknown" | "not_applicable" | "missing" | "damaged" | "ok" | undefined; last_infrastructure_check?: number | null | undefined; last_infrastructure_maintenance?: number | null | undefined; last_schedules_check?: number | null | undefined; last_schedules_maintenance?: number | null | undefined; connections?: ("ferry" | "light_rail" | "subway" | "train" | "boat" | "airport" | "bike_sharing" | "bike_parking" | "car_parking")[] | undefined; facilities?: ("fire_station" | "health_clinic" | "historic_building" | "hospital" | "police_station" | "school" | "shopping" | "transit_office" | "university" | "beach")[] | undefined; equipment?: ("pip" | "mupi" | "mini_pip")[] | undefined; has_bench?: "unknown" | "available" | "unavailable" | undefined; has_mupi?: "unknown" | "available" | "unavailable" | undefined; has_network_map?: "unknown" | "available" | "unavailable" | undefined; has_schedules?: "unknown" | "available" | "unavailable" | undefined; has_shelter?: "unknown" | "available" | "unavailable" | undefined; has_stop_sign?: "unknown" | "available" | "unavailable" | undefined; observations?: string | null | undefined; is_deleted?: boolean | undefined; file_ids?: string[] | undefined; image_ids?: string[] | undefined; }>; export declare const UpdateStopSchema: z.ZodObject<{ is_locked: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>; updated_by: z.ZodOptional<z.ZodOptional<z.ZodString>>; name: z.ZodOptional<z.ZodString>; short_name: z.ZodOptional<z.ZodString>; comments: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ message: z.ZodString; type: z.ZodLiteral<"note">; _id: z.ZodOptional<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>; }, "strip", z.ZodTypeAny, { message: string; type: "note"; created_at: number & { __brand: "UnixTimestamp"; }; created_by: string | null; updated_at: number & { __brand: "UnixTimestamp"; }; _id?: string | undefined; updated_by?: string | undefined; }, { message: string; type: "note"; created_at: number; updated_at: number; _id?: string | undefined; created_by?: string | null | undefined; updated_by?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"field_changed">; _id: z.ZodOptional<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>; curr_value: z.ZodAny; field: z.ZodString; prev_value: z.ZodAny; metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{ changes: z.ZodOptional<z.ZodArray<z.ZodObject<{ curr_value: z.ZodAny; field: z.ZodString; prev_value: z.ZodAny; }, "strip", z.ZodTypeAny, { field: string; curr_value?: any; prev_value?: any; }, { field: string; curr_value?: any; prev_value?: any; }>, "many">>; }, "strip", z.ZodTypeAny, { changes?: { field: string; curr_value?: any; prev_value?: any; }[] | undefined; }, { changes?: { field: string; curr_value?: any; prev_value?: any; }[] | undefined; }>>>; }, "strip", z.ZodTypeAny, { type: "field_changed"; created_at: number & { __brand: "UnixTimestamp"; }; created_by: string | null; updated_at: number & { __brand: "UnixTimestamp"; }; field: string; _id?: string | undefined; updated_by?: string | undefined; curr_value?: any; prev_value?: any; metadata?: { changes?: { field: string; curr_value?: any; prev_value?: any; }[] | undefined; } | null | undefined; }, { type: "field_changed"; created_at: number; updated_at: number; field: string; _id?: string | undefined; created_by?: string | null | undefined; updated_by?: string | undefined; curr_value?: any; prev_value?: any; metadata?: { changes?: { field: string; curr_value?: any; prev_value?: any; }[] | undefined; } | null | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"crud">; _id: z.ZodOptional<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>; action: z.ZodEnum<["create", "update", "delete", "archive", "restore"]>; }, "strip", z.ZodTypeAny, { type: "crud"; created_at: number & { __brand: "UnixTimestamp"; }; created_by: string | null; updated_at: number & { __brand: "UnixTimestamp"; }; action: "create" | "update" | "delete" | "archive" | "restore"; _id?: string | undefined; updated_by?: string | undefined; }, { type: "crud"; created_at: number; updated_at: number; action: "create" | "update" | "delete" | "archive" | "restore"; _id?: string | undefined; created_by?: string | null | undefined; updated_by?: string | undefined; }>]>, { message: string; type: "note"; created_at: number & { __brand: "UnixTimestamp"; }; created_by: string | null; updated_at: number & { __brand: "UnixTimestamp"; }; _id?: string | undefined; updated_by?: string | undefined; } | { type: "field_changed"; created_at: number & { __brand: "UnixTimestamp"; }; created_by: string | null; updated_at: number & { __brand: "UnixTimestamp"; }; field: string; _id?: string | undefined; updated_by?: string | undefined; curr_value?: any; prev_value?: any; metadata?: { changes?: { field: string; curr_value?: any; prev_value?: any; }[] | undefined; } | null | undefined; } | { type: "crud"; created_at: number & { __brand: "UnixTimestamp"; }; created_by: string | null; updated_at: number & { __brand: "UnixTimestamp"; }; action: "create" | "update" | "delete" | "archive" | "restore"; _id?: string | undefined; updated_by?: string | undefined; }, { message: string; type: "note"; created_at: number; updated_at: number; _id?: string | undefined; created_by?: string | null | undefined; updated_by?: string | undefined; } | { type: "field_changed"; created_at: number; updated_at: number; field: string; _id?: string | undefined; created_by?: string | null | undefined; updated_by?: string | undefined; curr_value?: any; prev_value?: any; metadata?: { changes?: { field: string; curr_value?: any; prev_value?: any; }[] | undefined; } | null | undefined; } | { type: "crud"; created_at: number; updated_at: number; action: "create" | "update" | "delete" | "archive" | "restore"; _id?: string | undefined; created_by?: string | null | undefined; updated_by?: string | undefined; }>, "many">>>; flags: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{ agency_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>; is_harmonized: z.ZodDefault<z.ZodBoolean>; short_name: z.ZodString; stop_id: z.ZodString; }, "strip", z.ZodTypeAny, { short_name: string; agency_ids: string[]; is_harmonized: boolean; stop_id: string; }, { short_name: string; stop_id: string; agency_ids?: string[] | undefined; is_harmonized?: boolean | undefined; }>, "many">>>; jurisdiction: z.ZodOptional<z.ZodDefault<z.ZodEnum<["ip", "municipality", "other", "unknown"]>>>; legacy_id: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>; legacy_ids: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>; lifecycle_status: z.ZodOptional<z.ZodDefault<z.ZodEnum<["draft", "active", "inactive", "provisional", "seasonal", "voided"]>>>; new_name: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>; previous_go_id: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>; tts_name: z.ZodOptional<z.ZodString>; district_id: z.ZodOptional<z.ZodString>; latitude: z.ZodOptional<z.ZodNumber>; locality_id: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>; longitude: z.ZodOptional<z.ZodNumber>; municipality_id: z.ZodOptional<z.ZodString>; parish_id: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.