@tmlmobilidade/types
Version:
This package provides shared Zod validation schemas and their corresponding TypeScript types for use across projects. All types are automatically inferred from the schemas to ensure full type safety and reduce maintenance overhead.
657 lines (656 loc) • 36.5 kB
TypeScript
import { type UnixTimestamp } from './_common/unix-timestamp.js';
import { z } from 'zod';
export declare const jurisdictionSchema: z.ZodEnum<["ip", "municipality", "other", "unknown"]>;
export declare const operationalStatusSchema: z.ZodEnum<["active", "inactive", "provisional", "seasonal", "voided"]>;
export declare const electricityStatusSchema: z.ZodEnum<["available", "unavailable", "unknown"]>;
export declare const roadTypeSchema: z.ZodEnum<["complementary_itinerary", "highway", "main_itinerary", "national_road", "regional_road", "secondary_road", "unknown"]>;
export declare const infrastructureStatusSchema: z.ZodEnum<["not_applicable", "unknown", "missing", "damaged", "ok"]>;
export declare const connectionsSchema: z.ZodEnum<["ferry", "light_rail", "subway", "train", "boat", "airport", "bike_sharing", "bike_parking", "car_parking"]>;
export declare const facilitiesSchema: z.ZodEnum<["fire_station", "health_clinic", "historic_building", "hospital", "police_station", "school", "shopping", "transit_office", "university", "beach"]>;
export declare const hasAnySchema: z.ZodEnum<["yes", "no", "unknown"]>;
export declare const equipmentSchema: z.ZodEnum<["pip", "mupi", "mini_pip"]>;
export declare const StopSchema: z.ZodObject<{
created_at: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>>;
updated_at: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>>;
} & {
_id: z.ZodString;
is_archived: z.ZodDefault<z.ZodBoolean>;
is_locked: z.ZodDefault<z.ZodBoolean>;
jurisdiction: z.ZodEnum<["ip", "municipality", "other", "unknown"]>;
legacy_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
name: z.ZodString;
new_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
operational_status: z.ZodEnum<["active", "inactive", "provisional", "seasonal", "voided"]>;
short_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
tts_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
district_id: z.ZodString;
latitude: z.ZodNumber;
locality_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
longitude: z.ZodNumber;
municipality_id: z.ZodString;
parish_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
bench_status: z.ZodEnum<["not_applicable", "unknown", "missing", "damaged", "ok"]>;
electricity_status: z.ZodEnum<["available", "unavailable", "unknown"]>;
pole_status: z.ZodEnum<["not_applicable", "unknown", "missing", "damaged", "ok"]>;
road_type: z.ZodEnum<["complementary_itinerary", "highway", "main_itinerary", "national_road", "regional_road", "secondary_road", "unknown"]>;
shelter_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
shelter_frame_size: z.ZodOptional<z.ZodNullable<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
shelter_installation_date: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>>;
shelter_maintainer: z.ZodOptional<z.ZodNullable<z.ZodString>>;
shelter_make: z.ZodOptional<z.ZodNullable<z.ZodString>>;
shelter_model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
shelter_status: z.ZodEnum<["not_applicable", "unknown", "missing", "damaged", "ok"]>;
last_infrastructure_check: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>>;
last_infrastructure_maintenance: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>>;
last_schedules_check: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>>;
last_schedules_maintenance: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>>;
connections: z.ZodArray<z.ZodEnum<["ferry", "light_rail", "subway", "train", "boat", "airport", "bike_sharing", "bike_parking", "car_parking"]>, "many">;
facilities: z.ZodArray<z.ZodEnum<["fire_station", "health_clinic", "historic_building", "hospital", "police_station", "school", "shopping", "transit_office", "university", "beach"]>, "many">;
equipment: z.ZodArray<z.ZodEnum<["pip", "mupi", "mini_pip"]>, "many">;
has_bench: z.ZodEnum<["yes", "no", "unknown"]>;
has_mupi: z.ZodEnum<["yes", "no", "unknown"]>;
has_network_map: z.ZodEnum<["yes", "no", "unknown"]>;
has_schedules: z.ZodEnum<["yes", "no", "unknown"]>;
has_shelter: z.ZodEnum<["yes", "no", "unknown"]>;
has_stop_sign: z.ZodEnum<["yes", "no", "unknown"]>;
file_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
image_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
comments: z.ZodArray<z.ZodObject<{
created_at: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>>;
updated_at: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>>;
} & {
_id: z.ZodString;
text: z.ZodString;
user_id: z.ZodString;
}, "strict", z.ZodTypeAny, {
_id: string;
text: string;
user_id: string;
created_at?: (number & {
__brand: "UnixTimestamp";
} & z.BRAND<"UnixTimestamp">) | null | undefined;
updated_at?: (number & {
__brand: "UnixTimestamp";
} & z.BRAND<"UnixTimestamp">) | null | undefined;
}, {
_id: string;
text: string;
user_id: string;
created_at?: number | null | undefined;
updated_at?: number | null | undefined;
}>, "many">;
observations: z.ZodOptional<z.ZodNullable<z.ZodString>>;
}, "strict", z.ZodTypeAny, {
_id: string;
name: string;
has_bench: "unknown" | "yes" | "no";
has_network_map: "unknown" | "yes" | "no";
has_schedules: "unknown" | "yes" | "no";
has_shelter: "unknown" | "yes" | "no";
has_stop_sign: "unknown" | "yes" | "no";
municipality_id: string;
is_locked: boolean;
is_archived: boolean;
jurisdiction: "unknown" | "ip" | "municipality" | "other";
operational_status: "active" | "inactive" | "provisional" | "seasonal" | "voided";
district_id: string;
latitude: number;
longitude: number;
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_status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok";
connections: ("ferry" | "light_rail" | "subway" | "train" | "boat" | "airport" | "bike_sharing" | "bike_parking" | "car_parking")[];
facilities: ("school" | "fire_station" | "health_clinic" | "historic_building" | "hospital" | "police_station" | "shopping" | "transit_office" | "university" | "beach")[];
equipment: ("pip" | "mupi" | "mini_pip")[];
has_mupi: "unknown" | "yes" | "no";
file_ids: string[];
image_ids: string[];
comments: {
_id: string;
text: string;
user_id: string;
created_at?: (number & {
__brand: "UnixTimestamp";
} & z.BRAND<"UnixTimestamp">) | null | undefined;
updated_at?: (number & {
__brand: "UnixTimestamp";
} & z.BRAND<"UnixTimestamp">) | null | undefined;
}[];
created_at?: (number & {
__brand: "UnixTimestamp";
} & z.BRAND<"UnixTimestamp">) | null | undefined;
updated_at?: (number & {
__brand: "UnixTimestamp";
} & z.BRAND<"UnixTimestamp">) | null | undefined;
short_name?: string | null | undefined;
parish_id?: string | null | undefined;
shelter_code?: string | null | undefined;
shelter_maintainer?: string | null | undefined;
legacy_id?: string | null | undefined;
new_name?: string | null | undefined;
tts_name?: string | null | undefined;
locality_id?: string | null | undefined;
shelter_frame_size?: [number, number] | null | undefined;
shelter_installation_date?: (number & {
__brand: "UnixTimestamp";
} & z.BRAND<"UnixTimestamp">) | null | undefined;
shelter_make?: string | null | undefined;
shelter_model?: string | null | undefined;
last_infrastructure_check?: (number & {
__brand: "UnixTimestamp";
} & z.BRAND<"UnixTimestamp">) | null | undefined;
last_infrastructure_maintenance?: (number & {
__brand: "UnixTimestamp";
} & z.BRAND<"UnixTimestamp">) | null | undefined;
last_schedules_check?: (number & {
__brand: "UnixTimestamp";
} & z.BRAND<"UnixTimestamp">) | null | undefined;
last_schedules_maintenance?: (number & {
__brand: "UnixTimestamp";
} & z.BRAND<"UnixTimestamp">) | null | undefined;
observations?: string | null | undefined;
}, {
_id: string;
name: string;
has_bench: "unknown" | "yes" | "no";
has_network_map: "unknown" | "yes" | "no";
has_schedules: "unknown" | "yes" | "no";
has_shelter: "unknown" | "yes" | "no";
has_stop_sign: "unknown" | "yes" | "no";
municipality_id: string;
jurisdiction: "unknown" | "ip" | "municipality" | "other";
operational_status: "active" | "inactive" | "provisional" | "seasonal" | "voided";
district_id: string;
latitude: number;
longitude: number;
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_status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok";
connections: ("ferry" | "light_rail" | "subway" | "train" | "boat" | "airport" | "bike_sharing" | "bike_parking" | "car_parking")[];
facilities: ("school" | "fire_station" | "health_clinic" | "historic_building" | "hospital" | "police_station" | "shopping" | "transit_office" | "university" | "beach")[];
equipment: ("pip" | "mupi" | "mini_pip")[];
has_mupi: "unknown" | "yes" | "no";
comments: {
_id: string;
text: string;
user_id: string;
created_at?: number | null | undefined;
updated_at?: number | null | undefined;
}[];
created_at?: number | null | undefined;
updated_at?: number | null | undefined;
short_name?: string | null | undefined;
parish_id?: string | null | undefined;
shelter_code?: string | null | undefined;
shelter_maintainer?: string | null | undefined;
is_locked?: boolean | undefined;
is_archived?: boolean | undefined;
legacy_id?: string | null | undefined;
new_name?: string | null | undefined;
tts_name?: string | null | undefined;
locality_id?: string | null | undefined;
shelter_frame_size?: [number, number] | null | undefined;
shelter_installation_date?: number | null | undefined;
shelter_make?: string | null | undefined;
shelter_model?: string | null | 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;
file_ids?: string[] | undefined;
image_ids?: string[] | undefined;
observations?: string | null | undefined;
}>;
export declare const parentStationSchema: z.ZodObject<{
created_at: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>>;
updated_at: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>>;
} & {
_id: z.ZodString;
agency_id: z.ZodString;
stop_ids: z.ZodArray<z.ZodString, "many">;
}, "strict", z.ZodTypeAny, {
_id: string;
agency_id: string;
stop_ids: string[];
created_at?: (number & {
__brand: "UnixTimestamp";
} & z.BRAND<"UnixTimestamp">) | null | undefined;
updated_at?: (number & {
__brand: "UnixTimestamp";
} & z.BRAND<"UnixTimestamp">) | null | undefined;
}, {
_id: string;
agency_id: string;
stop_ids: string[];
created_at?: number | null | undefined;
updated_at?: number | null | undefined;
}>;
export declare const stopAreaSchema: z.ZodObject<{
created_at: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>>;
updated_at: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>>;
} & {
_id: z.ZodString;
parent_station_ids: z.ZodArray<z.ZodString, "many">;
}, "strict", z.ZodTypeAny, {
_id: string;
parent_station_ids: string[];
created_at?: (number & {
__brand: "UnixTimestamp";
} & z.BRAND<"UnixTimestamp">) | null | undefined;
updated_at?: (number & {
__brand: "UnixTimestamp";
} & z.BRAND<"UnixTimestamp">) | null | undefined;
}, {
_id: string;
parent_station_ids: string[];
created_at?: number | null | undefined;
updated_at?: number | null | undefined;
}>;
export type Jurisdiction = z.infer<typeof jurisdictionSchema>;
export type OperationalStatus = z.infer<typeof operationalStatusSchema>;
export type ElectricityStatus = z.infer<typeof electricityStatusSchema>;
export type RoadType = z.infer<typeof roadTypeSchema>;
export type InfrastructureStatus = z.infer<typeof infrastructureStatusSchema>;
export type Connections = z.infer<typeof connectionsSchema>;
export type Facilities = z.infer<typeof facilitiesSchema>;
export type Equipment = z.infer<typeof equipmentSchema>;
export declare const CreateStopSchema: z.ZodObject<Omit<{
created_at: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>>;
updated_at: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>>;
} & {
_id: z.ZodString;
is_archived: z.ZodDefault<z.ZodBoolean>;
is_locked: z.ZodDefault<z.ZodBoolean>;
jurisdiction: z.ZodEnum<["ip", "municipality", "other", "unknown"]>;
legacy_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
name: z.ZodString;
new_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
operational_status: z.ZodEnum<["active", "inactive", "provisional", "seasonal", "voided"]>;
short_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
tts_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
district_id: z.ZodString;
latitude: z.ZodNumber;
locality_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
longitude: z.ZodNumber;
municipality_id: z.ZodString;
parish_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
bench_status: z.ZodEnum<["not_applicable", "unknown", "missing", "damaged", "ok"]>;
electricity_status: z.ZodEnum<["available", "unavailable", "unknown"]>;
pole_status: z.ZodEnum<["not_applicable", "unknown", "missing", "damaged", "ok"]>;
road_type: z.ZodEnum<["complementary_itinerary", "highway", "main_itinerary", "national_road", "regional_road", "secondary_road", "unknown"]>;
shelter_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
shelter_frame_size: z.ZodOptional<z.ZodNullable<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
shelter_installation_date: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>>;
shelter_maintainer: z.ZodOptional<z.ZodNullable<z.ZodString>>;
shelter_make: z.ZodOptional<z.ZodNullable<z.ZodString>>;
shelter_model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
shelter_status: z.ZodEnum<["not_applicable", "unknown", "missing", "damaged", "ok"]>;
last_infrastructure_check: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>>;
last_infrastructure_maintenance: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>>;
last_schedules_check: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>>;
last_schedules_maintenance: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>>;
connections: z.ZodArray<z.ZodEnum<["ferry", "light_rail", "subway", "train", "boat", "airport", "bike_sharing", "bike_parking", "car_parking"]>, "many">;
facilities: z.ZodArray<z.ZodEnum<["fire_station", "health_clinic", "historic_building", "hospital", "police_station", "school", "shopping", "transit_office", "university", "beach"]>, "many">;
equipment: z.ZodArray<z.ZodEnum<["pip", "mupi", "mini_pip"]>, "many">;
has_bench: z.ZodEnum<["yes", "no", "unknown"]>;
has_mupi: z.ZodEnum<["yes", "no", "unknown"]>;
has_network_map: z.ZodEnum<["yes", "no", "unknown"]>;
has_schedules: z.ZodEnum<["yes", "no", "unknown"]>;
has_shelter: z.ZodEnum<["yes", "no", "unknown"]>;
has_stop_sign: z.ZodEnum<["yes", "no", "unknown"]>;
file_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
image_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
comments: z.ZodArray<z.ZodObject<{
created_at: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>>;
updated_at: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>>;
} & {
_id: z.ZodString;
text: z.ZodString;
user_id: z.ZodString;
}, "strict", z.ZodTypeAny, {
_id: string;
text: string;
user_id: string;
created_at?: (number & {
__brand: "UnixTimestamp";
} & z.BRAND<"UnixTimestamp">) | null | undefined;
updated_at?: (number & {
__brand: "UnixTimestamp";
} & z.BRAND<"UnixTimestamp">) | null | undefined;
}, {
_id: string;
text: string;
user_id: string;
created_at?: number | null | undefined;
updated_at?: number | null | undefined;
}>, "many">;
observations: z.ZodOptional<z.ZodNullable<z.ZodString>>;
}, "created_at" | "updated_at">, "strict", z.ZodTypeAny, {
_id: string;
name: string;
has_bench: "unknown" | "yes" | "no";
has_network_map: "unknown" | "yes" | "no";
has_schedules: "unknown" | "yes" | "no";
has_shelter: "unknown" | "yes" | "no";
has_stop_sign: "unknown" | "yes" | "no";
municipality_id: string;
is_locked: boolean;
is_archived: boolean;
jurisdiction: "unknown" | "ip" | "municipality" | "other";
operational_status: "active" | "inactive" | "provisional" | "seasonal" | "voided";
district_id: string;
latitude: number;
longitude: number;
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_status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok";
connections: ("ferry" | "light_rail" | "subway" | "train" | "boat" | "airport" | "bike_sharing" | "bike_parking" | "car_parking")[];
facilities: ("school" | "fire_station" | "health_clinic" | "historic_building" | "hospital" | "police_station" | "shopping" | "transit_office" | "university" | "beach")[];
equipment: ("pip" | "mupi" | "mini_pip")[];
has_mupi: "unknown" | "yes" | "no";
file_ids: string[];
image_ids: string[];
comments: {
_id: string;
text: string;
user_id: string;
created_at?: (number & {
__brand: "UnixTimestamp";
} & z.BRAND<"UnixTimestamp">) | null | undefined;
updated_at?: (number & {
__brand: "UnixTimestamp";
} & z.BRAND<"UnixTimestamp">) | null | undefined;
}[];
short_name?: string | null | undefined;
parish_id?: string | null | undefined;
shelter_code?: string | null | undefined;
shelter_maintainer?: string | null | undefined;
legacy_id?: string | null | undefined;
new_name?: string | null | undefined;
tts_name?: string | null | undefined;
locality_id?: string | null | undefined;
shelter_frame_size?: [number, number] | null | undefined;
shelter_installation_date?: (number & {
__brand: "UnixTimestamp";
} & z.BRAND<"UnixTimestamp">) | null | undefined;
shelter_make?: string | null | undefined;
shelter_model?: string | null | undefined;
last_infrastructure_check?: (number & {
__brand: "UnixTimestamp";
} & z.BRAND<"UnixTimestamp">) | null | undefined;
last_infrastructure_maintenance?: (number & {
__brand: "UnixTimestamp";
} & z.BRAND<"UnixTimestamp">) | null | undefined;
last_schedules_check?: (number & {
__brand: "UnixTimestamp";
} & z.BRAND<"UnixTimestamp">) | null | undefined;
last_schedules_maintenance?: (number & {
__brand: "UnixTimestamp";
} & z.BRAND<"UnixTimestamp">) | null | undefined;
observations?: string | null | undefined;
}, {
_id: string;
name: string;
has_bench: "unknown" | "yes" | "no";
has_network_map: "unknown" | "yes" | "no";
has_schedules: "unknown" | "yes" | "no";
has_shelter: "unknown" | "yes" | "no";
has_stop_sign: "unknown" | "yes" | "no";
municipality_id: string;
jurisdiction: "unknown" | "ip" | "municipality" | "other";
operational_status: "active" | "inactive" | "provisional" | "seasonal" | "voided";
district_id: string;
latitude: number;
longitude: number;
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_status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok";
connections: ("ferry" | "light_rail" | "subway" | "train" | "boat" | "airport" | "bike_sharing" | "bike_parking" | "car_parking")[];
facilities: ("school" | "fire_station" | "health_clinic" | "historic_building" | "hospital" | "police_station" | "shopping" | "transit_office" | "university" | "beach")[];
equipment: ("pip" | "mupi" | "mini_pip")[];
has_mupi: "unknown" | "yes" | "no";
comments: {
_id: string;
text: string;
user_id: string;
created_at?: number | null | undefined;
updated_at?: number | null | undefined;
}[];
short_name?: string | null | undefined;
parish_id?: string | null | undefined;
shelter_code?: string | null | undefined;
shelter_maintainer?: string | null | undefined;
is_locked?: boolean | undefined;
is_archived?: boolean | undefined;
legacy_id?: string | null | undefined;
new_name?: string | null | undefined;
tts_name?: string | null | undefined;
locality_id?: string | null | undefined;
shelter_frame_size?: [number, number] | null | undefined;
shelter_installation_date?: number | null | undefined;
shelter_make?: string | null | undefined;
shelter_model?: string | null | 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;
file_ids?: string[] | undefined;
image_ids?: string[] | undefined;
observations?: string | null | undefined;
}>;
export declare const UpdateStopSchema: z.ZodObject<{
name: z.ZodOptional<z.ZodString>;
short_name: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
has_bench: z.ZodOptional<z.ZodEnum<["yes", "no", "unknown"]>>;
has_network_map: z.ZodOptional<z.ZodEnum<["yes", "no", "unknown"]>>;
has_schedules: z.ZodOptional<z.ZodEnum<["yes", "no", "unknown"]>>;
has_shelter: z.ZodOptional<z.ZodEnum<["yes", "no", "unknown"]>>;
has_stop_sign: z.ZodOptional<z.ZodEnum<["yes", "no", "unknown"]>>;
municipality_id: z.ZodOptional<z.ZodString>;
parish_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
shelter_code: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
shelter_maintainer: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
is_locked: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
is_archived: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
jurisdiction: z.ZodOptional<z.ZodEnum<["ip", "municipality", "other", "unknown"]>>;
legacy_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
new_name: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
operational_status: z.ZodOptional<z.ZodEnum<["active", "inactive", "provisional", "seasonal", "voided"]>>;
tts_name: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
district_id: z.ZodOptional<z.ZodString>;
latitude: z.ZodOptional<z.ZodNumber>;
locality_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
longitude: z.ZodOptional<z.ZodNumber>;
bench_status: z.ZodOptional<z.ZodEnum<["not_applicable", "unknown", "missing", "damaged", "ok"]>>;
electricity_status: z.ZodOptional<z.ZodEnum<["available", "unavailable", "unknown"]>>;
pole_status: z.ZodOptional<z.ZodEnum<["not_applicable", "unknown", "missing", "damaged", "ok"]>>;
road_type: z.ZodOptional<z.ZodEnum<["complementary_itinerary", "highway", "main_itinerary", "national_road", "regional_road", "secondary_road", "unknown"]>>;
shelter_frame_size: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>>;
shelter_installation_date: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>>>;
shelter_make: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
shelter_model: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
shelter_status: z.ZodOptional<z.ZodEnum<["not_applicable", "unknown", "missing", "damaged", "ok"]>>;
last_infrastructure_check: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>>>;
last_infrastructure_maintenance: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>>>;
last_schedules_check: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>>>;
last_schedules_maintenance: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>>>;
connections: z.ZodOptional<z.ZodArray<z.ZodEnum<["ferry", "light_rail", "subway", "train", "boat", "airport", "bike_sharing", "bike_parking", "car_parking"]>, "many">>;
facilities: z.ZodOptional<z.ZodArray<z.ZodEnum<["fire_station", "health_clinic", "historic_building", "hospital", "police_station", "school", "shopping", "transit_office", "university", "beach"]>, "many">>;
equipment: z.ZodOptional<z.ZodArray<z.ZodEnum<["pip", "mupi", "mini_pip"]>, "many">>;
has_mupi: z.ZodOptional<z.ZodEnum<["yes", "no", "unknown"]>>;
file_ids: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
image_ids: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
comments: z.ZodOptional<z.ZodArray<z.ZodObject<{
created_at: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>>;
updated_at: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>>;
} & {
_id: z.ZodString;
text: z.ZodString;
user_id: z.ZodString;
}, "strict", z.ZodTypeAny, {
_id: string;
text: string;
user_id: string;
created_at?: (number & {
__brand: "UnixTimestamp";
} & z.BRAND<"UnixTimestamp">) | null | undefined;
updated_at?: (number & {
__brand: "UnixTimestamp";
} & z.BRAND<"UnixTimestamp">) | null | undefined;
}, {
_id: string;
text: string;
user_id: string;
created_at?: number | null | undefined;
updated_at?: number | null | undefined;
}>, "many">>;
observations: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
}, "strict", z.ZodTypeAny, {
name?: string | undefined;
short_name?: string | null | undefined;
has_bench?: "unknown" | "yes" | "no" | undefined;
has_network_map?: "unknown" | "yes" | "no" | undefined;
has_schedules?: "unknown" | "yes" | "no" | undefined;
has_shelter?: "unknown" | "yes" | "no" | undefined;
has_stop_sign?: "unknown" | "yes" | "no" | undefined;
municipality_id?: string | undefined;
parish_id?: string | null | undefined;
shelter_code?: string | null | undefined;
shelter_maintainer?: string | null | undefined;
is_locked?: boolean | undefined;
is_archived?: boolean | undefined;
jurisdiction?: "unknown" | "ip" | "municipality" | "other" | undefined;
legacy_id?: string | null | undefined;
new_name?: string | null | undefined;
operational_status?: "active" | "inactive" | "provisional" | "seasonal" | "voided" | undefined;
tts_name?: string | null | undefined;
district_id?: string | undefined;
latitude?: number | undefined;
locality_id?: string | null | undefined;
longitude?: number | 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_frame_size?: [number, number] | null | undefined;
shelter_installation_date?: (number & {
__brand: "UnixTimestamp";
} & z.BRAND<"UnixTimestamp">) | 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 & {
__brand: "UnixTimestamp";
} & z.BRAND<"UnixTimestamp">) | null | undefined;
last_infrastructure_maintenance?: (number & {
__brand: "UnixTimestamp";
} & z.BRAND<"UnixTimestamp">) | null | undefined;
last_schedules_check?: (number & {
__brand: "UnixTimestamp";
} & z.BRAND<"UnixTimestamp">) | null | undefined;
last_schedules_maintenance?: (number & {
__brand: "UnixTimestamp";
} & z.BRAND<"UnixTimestamp">) | null | undefined;
connections?: ("ferry" | "light_rail" | "subway" | "train" | "boat" | "airport" | "bike_sharing" | "bike_parking" | "car_parking")[] | undefined;
facilities?: ("school" | "fire_station" | "health_clinic" | "historic_building" | "hospital" | "police_station" | "shopping" | "transit_office" | "university" | "beach")[] | undefined;
equipment?: ("pip" | "mupi" | "mini_pip")[] | undefined;
has_mupi?: "unknown" | "yes" | "no" | undefined;
file_ids?: string[] | undefined;
image_ids?: string[] | undefined;
comments?: {
_id: string;
text: string;
user_id: string;
created_at?: (number & {
__brand: "UnixTimestamp";
} & z.BRAND<"UnixTimestamp">) | null | undefined;
updated_at?: (number & {
__brand: "UnixTimestamp";
} & z.BRAND<"UnixTimestamp">) | null | undefined;
}[] | undefined;
observations?: string | null | undefined;
}, {
name?: string | undefined;
short_name?: string | null | undefined;
has_bench?: "unknown" | "yes" | "no" | undefined;
has_network_map?: "unknown" | "yes" | "no" | undefined;
has_schedules?: "unknown" | "yes" | "no" | undefined;
has_shelter?: "unknown" | "yes" | "no" | undefined;
has_stop_sign?: "unknown" | "yes" | "no" | undefined;
municipality_id?: string | undefined;
parish_id?: string | null | undefined;
shelter_code?: string | null | undefined;
shelter_maintainer?: string | null | undefined;
is_locked?: boolean | undefined;
is_archived?: boolean | undefined;
jurisdiction?: "unknown" | "ip" | "municipality" | "other" | undefined;
legacy_id?: string | null | undefined;
new_name?: string | null | undefined;
operational_status?: "active" | "inactive" | "provisional" | "seasonal" | "voided" | undefined;
tts_name?: string | null | undefined;
district_id?: string | undefined;
latitude?: number | undefined;
locality_id?: string | null | undefined;
longitude?: number | 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_frame_size?: [number, number] | null | undefined;
shelter_installation_date?: number | 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?: ("school" | "fire_station" | "health_clinic" | "historic_building" | "hospital" | "police_station" | "shopping" | "transit_office" | "university" | "beach")[] | undefined;
equipment?: ("pip" | "mupi" | "mini_pip")[] | undefined;
has_mupi?: "unknown" | "yes" | "no" | undefined;
file_ids?: string[] | undefined;
image_ids?: string[] | undefined;
comments?: {
_id: string;
text: string;
user_id: string;
created_at?: number | null | undefined;
updated_at?: number | null | undefined;
}[] | undefined;
observations?: string | null | undefined;
}>;
export interface Stop extends Omit<z.infer<typeof StopSchema>, 'last_infrastructure_check' | 'last_infrastructure_maintenance' | 'last_schedules_check' | 'last_schedules_maintenance' | 'last_shelter_installation'> {
last_infrastructure_check?: UnixTimestamp;
last_infrastructure_maintenance?: UnixTimestamp;
last_schedules_check?: UnixTimestamp;
last_schedules_maintenance?: UnixTimestamp;
last_shelter_installation?: UnixTimestamp;
}
export interface CreateStopDto extends Omit<z.infer<typeof CreateStopSchema>, 'last_infrastructure_check' | 'last_infrastructure_maintenance' | 'last_schedules_check' | 'last_schedules_maintenance' | 'last_shelter_installation'> {
last_infrastructure_check?: UnixTimestamp;
last_infrastructure_maintenance?: UnixTimestamp;
last_schedules_check?: UnixTimestamp;
last_schedules_maintenance?: UnixTimestamp;
last_shelter_installation?: UnixTimestamp;
}
export type UpdateStopDto = Partial<Omit<CreateStopDto, 'created_by'>>;
export declare const StopPermissionSchema: z.ZodObject<{
agency_ids: z.ZodArray<z.ZodString, "many">;
municipality_ids: z.ZodArray<z.ZodString, "many">;
}, "strip", z.ZodTypeAny, {
agency_ids: string[];
municipality_ids: string[];
}, {
agency_ids: string[];
municipality_ids: string[];
}>;
export type StopPermission = z.infer<typeof StopPermissionSchema>;