@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.
682 lines (681 loc) • 41.7 kB
TypeScript
import { type UnixTimestamp } from './_common/unix-timestamp.js';
import { z } from 'zod';
export declare const jurisdictionSchema: z.ZodDefault<z.ZodEnum<["ip", "municipality", "other", "unknown"]>>;
export declare const operationalStatusSchema: z.ZodDefault<z.ZodEnum<["active", "inactive", "provisional", "seasonal", "voided"]>>;
export declare const benchStatusSchema: z.ZodDefault<z.ZodEnum<["not_applicable", "unknown", "is_missing", "is_damaged", "is_ok"]>>;
export declare const dockingBayTypeSchema: z.ZodDefault<z.ZodEnum<["unknown", "simple_interaction", "cut_in_road_without_marks", "cut_in_road_with_marks", "island", "peninsula"]>>;
export declare const electricityStatusSchema: z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>;
export declare const flagStatusSchema: z.ZodDefault<z.ZodEnum<["not_applicable", "unknown", "is_missing", "is_damaged", "is_ok"]>>;
export declare const lightningStatusSchema: z.ZodDefault<z.ZodEnum<["confortable", "damaged", "insuficient", "moderate", "unavailable", "unknown"]>>;
export declare const pavementTypeSchema: z.ZodDefault<z.ZodEnum<["asphalt", "concrete", "dirt", "grass", "gravel", "portuguese_stones", "unknown"]>>;
export declare const poleStatusSchema: z.ZodDefault<z.ZodEnum<["not_applicable", "unknown", "is_missing", "is_damaged", "is_ok"]>>;
export declare const roadTypeSchema: z.ZodDefault<z.ZodEnum<["complementary_itinerary", "highway", "main_itinerary", "national_road", "regional_road", "secondary_road", "unknown"]>>;
export declare const shelterStatusSchema: z.ZodDefault<z.ZodEnum<["not_applicable", "unknown", "is_missing", "is_damaged", "is_ok"]>>;
export declare const sidewalkTypeSchema: z.ZodDefault<z.ZodEnum<["unknown", "none", "gutter", "inaccessible", "is_ok"]>>;
export declare const connectionsSchema: z.ZodDefault<z.ZodArray<z.ZodEnum<["ferry", "light_rail", "subway", "train", "boat", "airport", "bike_sharing", "bike_parking", "car_parking"]>, "many">>;
export declare const facilitiesSchema: z.ZodDefault<z.ZodArray<z.ZodEnum<["fire_station", "health_clinic", "historic_building", "hospital", "police_station", "school", "shopping", "transit_office", "university", "pip"]>, "many">>;
export declare const commentSchema: z.ZodDefault<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">>;
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.ZodDefault<z.ZodEnum<["ip", "municipality", "other", "unknown"]>>;
name: z.ZodString;
new_name: z.ZodString;
operational_status: z.ZodDefault<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.ZodDefault<z.ZodEnum<["not_applicable", "unknown", "is_missing", "is_damaged", "is_ok"]>>;
docking_bay_type: z.ZodDefault<z.ZodEnum<["unknown", "simple_interaction", "cut_in_road_without_marks", "cut_in_road_with_marks", "island", "peninsula"]>>;
electricity_status: z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>;
flag_status: z.ZodDefault<z.ZodEnum<["not_applicable", "unknown", "is_missing", "is_damaged", "is_ok"]>>;
lighting_status: z.ZodDefault<z.ZodEnum<["confortable", "damaged", "insuficient", "moderate", "unavailable", "unknown"]>>;
pavement_type: z.ZodDefault<z.ZodEnum<["asphalt", "concrete", "dirt", "grass", "gravel", "portuguese_stones", "unknown"]>>;
pole_status: z.ZodDefault<z.ZodEnum<["not_applicable", "unknown", "is_missing", "is_damaged", "is_ok"]>>;
road_type: z.ZodDefault<z.ZodEnum<["complementary_itinerary", "highway", "main_itinerary", "national_road", "regional_road", "secondary_road", "unknown"]>>;
shelter_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
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.ZodDefault<z.ZodEnum<["not_applicable", "unknown", "is_missing", "is_damaged", "is_ok"]>>;
sidewalk_type: z.ZodDefault<z.ZodEnum<["unknown", "none", "gutter", "inaccessible", "is_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">>>;
last_shelter_installation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>>;
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", "pip"]>, "many">>;
file_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
image_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
comments: z.ZodDefault<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;
is_locked: boolean;
name: string;
is_archived: boolean;
jurisdiction: "unknown" | "ip" | "municipality" | "other";
new_name: string;
operational_status: "active" | "inactive" | "provisional" | "seasonal" | "voided";
district_id: string;
latitude: number;
longitude: number;
municipality_id: string;
bench_status: "unknown" | "not_applicable" | "is_missing" | "is_damaged" | "is_ok";
docking_bay_type: "unknown" | "simple_interaction" | "cut_in_road_without_marks" | "cut_in_road_with_marks" | "island" | "peninsula";
electricity_status: "unknown" | "available" | "unavailable";
flag_status: "unknown" | "not_applicable" | "is_missing" | "is_damaged" | "is_ok";
lighting_status: "unknown" | "unavailable" | "confortable" | "damaged" | "insuficient" | "moderate";
pavement_type: "unknown" | "asphalt" | "concrete" | "dirt" | "grass" | "gravel" | "portuguese_stones";
pole_status: "unknown" | "not_applicable" | "is_missing" | "is_damaged" | "is_ok";
road_type: "unknown" | "complementary_itinerary" | "highway" | "main_itinerary" | "national_road" | "regional_road" | "secondary_road";
shelter_status: "unknown" | "not_applicable" | "is_missing" | "is_damaged" | "is_ok";
sidewalk_type: "unknown" | "is_ok" | "none" | "gutter" | "inaccessible";
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" | "pip")[];
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;
tts_name?: string | null | undefined;
locality_id?: string | null | undefined;
parish_id?: string | null | undefined;
shelter_code?: string | null | undefined;
shelter_maintainer?: string | 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;
last_shelter_installation?: (number & {
__brand: "UnixTimestamp";
} & z.BRAND<"UnixTimestamp">) | null | undefined;
observations?: string | null | undefined;
}, {
_id: string;
name: string;
new_name: string;
district_id: string;
latitude: number;
longitude: number;
municipality_id: string;
created_at?: number | null | undefined;
updated_at?: number | null | undefined;
is_locked?: boolean | undefined;
is_archived?: boolean | undefined;
jurisdiction?: "unknown" | "ip" | "municipality" | "other" | undefined;
operational_status?: "active" | "inactive" | "provisional" | "seasonal" | "voided" | undefined;
short_name?: string | null | undefined;
tts_name?: string | null | undefined;
locality_id?: string | null | undefined;
parish_id?: string | null | undefined;
bench_status?: "unknown" | "not_applicable" | "is_missing" | "is_damaged" | "is_ok" | undefined;
docking_bay_type?: "unknown" | "simple_interaction" | "cut_in_road_without_marks" | "cut_in_road_with_marks" | "island" | "peninsula" | undefined;
electricity_status?: "unknown" | "available" | "unavailable" | undefined;
flag_status?: "unknown" | "not_applicable" | "is_missing" | "is_damaged" | "is_ok" | undefined;
lighting_status?: "unknown" | "unavailable" | "confortable" | "damaged" | "insuficient" | "moderate" | undefined;
pavement_type?: "unknown" | "asphalt" | "concrete" | "dirt" | "grass" | "gravel" | "portuguese_stones" | undefined;
pole_status?: "unknown" | "not_applicable" | "is_missing" | "is_damaged" | "is_ok" | undefined;
road_type?: "unknown" | "complementary_itinerary" | "highway" | "main_itinerary" | "national_road" | "regional_road" | "secondary_road" | undefined;
shelter_code?: string | null | undefined;
shelter_maintainer?: string | null | undefined;
shelter_make?: string | null | undefined;
shelter_model?: string | null | undefined;
shelter_status?: "unknown" | "not_applicable" | "is_missing" | "is_damaged" | "is_ok" | undefined;
sidewalk_type?: "unknown" | "is_ok" | "none" | "gutter" | "inaccessible" | 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;
last_shelter_installation?: 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" | "pip")[] | 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 type Jurisdiction = z.infer<typeof jurisdictionSchema>;
export type OperationalStatus = z.infer<typeof operationalStatusSchema>;
export type BenchStatus = z.infer<typeof benchStatusSchema>;
export type DockingBayType = z.infer<typeof dockingBayTypeSchema>;
export type ElectricityStatus = z.infer<typeof electricityStatusSchema>;
export type FlagStatus = z.infer<typeof flagStatusSchema>;
export type LightningStatus = z.infer<typeof lightningStatusSchema>;
export type PavementType = z.infer<typeof pavementTypeSchema>;
export type PoleStatus = z.infer<typeof poleStatusSchema>;
export type RoadType = z.infer<typeof roadTypeSchema>;
export type ShelterStatus = z.infer<typeof shelterStatusSchema>;
export type SidewalkType = z.infer<typeof sidewalkTypeSchema>;
export type Connections = z.infer<typeof connectionsSchema>;
export type Facilities = z.infer<typeof facilitiesSchema>;
export type Comment = z.infer<typeof commentSchema>;
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.ZodDefault<z.ZodEnum<["ip", "municipality", "other", "unknown"]>>;
name: z.ZodString;
new_name: z.ZodString;
operational_status: z.ZodDefault<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.ZodDefault<z.ZodEnum<["not_applicable", "unknown", "is_missing", "is_damaged", "is_ok"]>>;
docking_bay_type: z.ZodDefault<z.ZodEnum<["unknown", "simple_interaction", "cut_in_road_without_marks", "cut_in_road_with_marks", "island", "peninsula"]>>;
electricity_status: z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>;
flag_status: z.ZodDefault<z.ZodEnum<["not_applicable", "unknown", "is_missing", "is_damaged", "is_ok"]>>;
lighting_status: z.ZodDefault<z.ZodEnum<["confortable", "damaged", "insuficient", "moderate", "unavailable", "unknown"]>>;
pavement_type: z.ZodDefault<z.ZodEnum<["asphalt", "concrete", "dirt", "grass", "gravel", "portuguese_stones", "unknown"]>>;
pole_status: z.ZodDefault<z.ZodEnum<["not_applicable", "unknown", "is_missing", "is_damaged", "is_ok"]>>;
road_type: z.ZodDefault<z.ZodEnum<["complementary_itinerary", "highway", "main_itinerary", "national_road", "regional_road", "secondary_road", "unknown"]>>;
shelter_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
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.ZodDefault<z.ZodEnum<["not_applicable", "unknown", "is_missing", "is_damaged", "is_ok"]>>;
sidewalk_type: z.ZodDefault<z.ZodEnum<["unknown", "none", "gutter", "inaccessible", "is_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">>>;
last_shelter_installation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>>;
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", "pip"]>, "many">>;
file_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
image_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
comments: z.ZodDefault<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;
is_locked: boolean;
name: string;
is_archived: boolean;
jurisdiction: "unknown" | "ip" | "municipality" | "other";
new_name: string;
operational_status: "active" | "inactive" | "provisional" | "seasonal" | "voided";
district_id: string;
latitude: number;
longitude: number;
municipality_id: string;
bench_status: "unknown" | "not_applicable" | "is_missing" | "is_damaged" | "is_ok";
docking_bay_type: "unknown" | "simple_interaction" | "cut_in_road_without_marks" | "cut_in_road_with_marks" | "island" | "peninsula";
electricity_status: "unknown" | "available" | "unavailable";
flag_status: "unknown" | "not_applicable" | "is_missing" | "is_damaged" | "is_ok";
lighting_status: "unknown" | "unavailable" | "confortable" | "damaged" | "insuficient" | "moderate";
pavement_type: "unknown" | "asphalt" | "concrete" | "dirt" | "grass" | "gravel" | "portuguese_stones";
pole_status: "unknown" | "not_applicable" | "is_missing" | "is_damaged" | "is_ok";
road_type: "unknown" | "complementary_itinerary" | "highway" | "main_itinerary" | "national_road" | "regional_road" | "secondary_road";
shelter_status: "unknown" | "not_applicable" | "is_missing" | "is_damaged" | "is_ok";
sidewalk_type: "unknown" | "is_ok" | "none" | "gutter" | "inaccessible";
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" | "pip")[];
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;
tts_name?: string | null | undefined;
locality_id?: string | null | undefined;
parish_id?: string | null | undefined;
shelter_code?: string | null | undefined;
shelter_maintainer?: string | 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;
last_shelter_installation?: (number & {
__brand: "UnixTimestamp";
} & z.BRAND<"UnixTimestamp">) | null | undefined;
observations?: string | null | undefined;
}, {
_id: string;
name: string;
new_name: string;
district_id: string;
latitude: number;
longitude: number;
municipality_id: string;
is_locked?: boolean | undefined;
is_archived?: boolean | undefined;
jurisdiction?: "unknown" | "ip" | "municipality" | "other" | undefined;
operational_status?: "active" | "inactive" | "provisional" | "seasonal" | "voided" | undefined;
short_name?: string | null | undefined;
tts_name?: string | null | undefined;
locality_id?: string | null | undefined;
parish_id?: string | null | undefined;
bench_status?: "unknown" | "not_applicable" | "is_missing" | "is_damaged" | "is_ok" | undefined;
docking_bay_type?: "unknown" | "simple_interaction" | "cut_in_road_without_marks" | "cut_in_road_with_marks" | "island" | "peninsula" | undefined;
electricity_status?: "unknown" | "available" | "unavailable" | undefined;
flag_status?: "unknown" | "not_applicable" | "is_missing" | "is_damaged" | "is_ok" | undefined;
lighting_status?: "unknown" | "unavailable" | "confortable" | "damaged" | "insuficient" | "moderate" | undefined;
pavement_type?: "unknown" | "asphalt" | "concrete" | "dirt" | "grass" | "gravel" | "portuguese_stones" | undefined;
pole_status?: "unknown" | "not_applicable" | "is_missing" | "is_damaged" | "is_ok" | undefined;
road_type?: "unknown" | "complementary_itinerary" | "highway" | "main_itinerary" | "national_road" | "regional_road" | "secondary_road" | undefined;
shelter_code?: string | null | undefined;
shelter_maintainer?: string | null | undefined;
shelter_make?: string | null | undefined;
shelter_model?: string | null | undefined;
shelter_status?: "unknown" | "not_applicable" | "is_missing" | "is_damaged" | "is_ok" | undefined;
sidewalk_type?: "unknown" | "is_ok" | "none" | "gutter" | "inaccessible" | 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;
last_shelter_installation?: 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" | "pip")[] | 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 declare const UpdateStopSchema: z.ZodObject<{
is_locked: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
name: z.ZodOptional<z.ZodString>;
is_archived: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
jurisdiction: z.ZodOptional<z.ZodDefault<z.ZodEnum<["ip", "municipality", "other", "unknown"]>>>;
new_name: z.ZodOptional<z.ZodString>;
operational_status: z.ZodOptional<z.ZodDefault<z.ZodEnum<["active", "inactive", "provisional", "seasonal", "voided"]>>>;
short_name: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
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>;
municipality_id: z.ZodOptional<z.ZodString>;
parish_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
bench_status: z.ZodOptional<z.ZodDefault<z.ZodEnum<["not_applicable", "unknown", "is_missing", "is_damaged", "is_ok"]>>>;
docking_bay_type: z.ZodOptional<z.ZodDefault<z.ZodEnum<["unknown", "simple_interaction", "cut_in_road_without_marks", "cut_in_road_with_marks", "island", "peninsula"]>>>;
electricity_status: z.ZodOptional<z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>>;
flag_status: z.ZodOptional<z.ZodDefault<z.ZodEnum<["not_applicable", "unknown", "is_missing", "is_damaged", "is_ok"]>>>;
lighting_status: z.ZodOptional<z.ZodDefault<z.ZodEnum<["confortable", "damaged", "insuficient", "moderate", "unavailable", "unknown"]>>>;
pavement_type: z.ZodOptional<z.ZodDefault<z.ZodEnum<["asphalt", "concrete", "dirt", "grass", "gravel", "portuguese_stones", "unknown"]>>>;
pole_status: z.ZodOptional<z.ZodDefault<z.ZodEnum<["not_applicable", "unknown", "is_missing", "is_damaged", "is_ok"]>>>;
road_type: z.ZodOptional<z.ZodDefault<z.ZodEnum<["complementary_itinerary", "highway", "main_itinerary", "national_road", "regional_road", "secondary_road", "unknown"]>>>;
shelter_code: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
shelter_maintainer: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
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.ZodDefault<z.ZodEnum<["not_applicable", "unknown", "is_missing", "is_damaged", "is_ok"]>>>;
sidewalk_type: z.ZodOptional<z.ZodDefault<z.ZodEnum<["unknown", "none", "gutter", "inaccessible", "is_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">>>>;
last_shelter_installation: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>>>;
connections: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodEnum<["ferry", "light_rail", "subway", "train", "boat", "airport", "bike_sharing", "bike_parking", "car_parking"]>, "many">>>;
facilities: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodEnum<["fire_station", "health_clinic", "historic_building", "hospital", "police_station", "school", "shopping", "transit_office", "university", "pip"]>, "many">>>;
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.ZodDefault<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, {
is_locked?: boolean | undefined;
name?: string | undefined;
is_archived?: boolean | undefined;
jurisdiction?: "unknown" | "ip" | "municipality" | "other" | undefined;
new_name?: string | undefined;
operational_status?: "active" | "inactive" | "provisional" | "seasonal" | "voided" | undefined;
short_name?: string | null | undefined;
tts_name?: string | null | undefined;
district_id?: string | undefined;
latitude?: number | undefined;
locality_id?: string | null | undefined;
longitude?: number | undefined;
municipality_id?: string | undefined;
parish_id?: string | null | undefined;
bench_status?: "unknown" | "not_applicable" | "is_missing" | "is_damaged" | "is_ok" | undefined;
docking_bay_type?: "unknown" | "simple_interaction" | "cut_in_road_without_marks" | "cut_in_road_with_marks" | "island" | "peninsula" | undefined;
electricity_status?: "unknown" | "available" | "unavailable" | undefined;
flag_status?: "unknown" | "not_applicable" | "is_missing" | "is_damaged" | "is_ok" | undefined;
lighting_status?: "unknown" | "unavailable" | "confortable" | "damaged" | "insuficient" | "moderate" | undefined;
pavement_type?: "unknown" | "asphalt" | "concrete" | "dirt" | "grass" | "gravel" | "portuguese_stones" | undefined;
pole_status?: "unknown" | "not_applicable" | "is_missing" | "is_damaged" | "is_ok" | undefined;
road_type?: "unknown" | "complementary_itinerary" | "highway" | "main_itinerary" | "national_road" | "regional_road" | "secondary_road" | undefined;
shelter_code?: string | null | undefined;
shelter_maintainer?: string | null | undefined;
shelter_make?: string | null | undefined;
shelter_model?: string | null | undefined;
shelter_status?: "unknown" | "not_applicable" | "is_missing" | "is_damaged" | "is_ok" | undefined;
sidewalk_type?: "unknown" | "is_ok" | "none" | "gutter" | "inaccessible" | 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;
last_shelter_installation?: (number & {
__brand: "UnixTimestamp";
} & z.BRAND<"UnixTimestamp">) | 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" | "pip")[] | 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;
}, {
is_locked?: boolean | undefined;
name?: string | undefined;
is_archived?: boolean | undefined;
jurisdiction?: "unknown" | "ip" | "municipality" | "other" | undefined;
new_name?: string | undefined;
operational_status?: "active" | "inactive" | "provisional" | "seasonal" | "voided" | undefined;
short_name?: string | null | undefined;
tts_name?: string | null | undefined;
district_id?: string | undefined;
latitude?: number | undefined;
locality_id?: string | null | undefined;
longitude?: number | undefined;
municipality_id?: string | undefined;
parish_id?: string | null | undefined;
bench_status?: "unknown" | "not_applicable" | "is_missing" | "is_damaged" | "is_ok" | undefined;
docking_bay_type?: "unknown" | "simple_interaction" | "cut_in_road_without_marks" | "cut_in_road_with_marks" | "island" | "peninsula" | undefined;
electricity_status?: "unknown" | "available" | "unavailable" | undefined;
flag_status?: "unknown" | "not_applicable" | "is_missing" | "is_damaged" | "is_ok" | undefined;
lighting_status?: "unknown" | "unavailable" | "confortable" | "damaged" | "insuficient" | "moderate" | undefined;
pavement_type?: "unknown" | "asphalt" | "concrete" | "dirt" | "grass" | "gravel" | "portuguese_stones" | undefined;
pole_status?: "unknown" | "not_applicable" | "is_missing" | "is_damaged" | "is_ok" | undefined;
road_type?: "unknown" | "complementary_itinerary" | "highway" | "main_itinerary" | "national_road" | "regional_road" | "secondary_road" | undefined;
shelter_code?: string | null | undefined;
shelter_maintainer?: string | null | undefined;
shelter_make?: string | null | undefined;
shelter_model?: string | null | undefined;
shelter_status?: "unknown" | "not_applicable" | "is_missing" | "is_damaged" | "is_ok" | undefined;
sidewalk_type?: "unknown" | "is_ok" | "none" | "gutter" | "inaccessible" | 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;
last_shelter_installation?: 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" | "pip")[] | 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>, 'affectation' | 'bench_status' | 'comments' | 'created_at' | 'district_id' | 'docking_bay_type' | 'electricity_status' | 'facilities' | 'file_ids' | 'flag_status' | 'image_ids' | 'is_archived' | 'is_locked' | 'jurisdiction' | 'last_infrastructure_check' | 'last_infrastructure_maintenance' | 'last_schedules_check' | 'last_schedules_maintenance' | 'last_shelter_installation' | 'latitude' | 'lighting_status' | 'locality_id' | 'longitude' | 'municipality_id' | 'name' | 'new_name' | 'observations' | 'operational_status' | 'parish_id' | 'pavement_type' | 'pole_status' | 'road_type' | 'shelter_code' | 'shelter_maintainer' | 'shelter_make' | 'shelter_model' | 'shelter_status' | 'short_name' | 'sidewalk_type' | 'tts_name' | 'updated_at'> {
affectation: string[];
bench_status: BenchStatus;
comments: Comment[];
created_at: UnixTimestamp;
district_id: string;
docking_bay_type: DockingBayType;
electricity_status: ElectricityStatus;
facilities: Facilities;
file_ids: string[];
flag_status: FlagStatus;
image_ids: string[];
is_archived: boolean;
is_locked: boolean;
jurisdiction: Jurisdiction;
last_infrastructure_check: UnixTimestamp;
last_infrastructure_maintenance: UnixTimestamp;
last_schedules_check: UnixTimestamp;
last_schedules_maintenance: UnixTimestamp;
last_shelter_installation: UnixTimestamp;
latitude: number;
lighting_status: LightningStatus;
locality_id: string;
longitude: number;
municipality_id: string;
name: string;
new_name: string;
observations: string;
operational_status: OperationalStatus;
parish_id: string;
pavement_type: PavementType;
pole_status: PoleStatus;
road_type: RoadType;
shelter_code: string;
shelter_maintainer: string;
shelter_make: string;
shelter_model: string;
shelter_status: ShelterStatus;
short_name: string;
sidewalk_type: SidewalkType;
tts_name: string;
updated_at: UnixTimestamp;
}
export interface CreateStopDto extends Omit<z.infer<typeof CreateStopSchema>, 'affectation' | 'bench_status' | 'comments' | 'district_id' | 'docking_bay_type' | 'electricity_status' | 'facilities' | 'file_ids' | 'flag_status' | 'image_ids' | 'is_archived' | 'is_locked' | 'jurisdiction' | 'last_infrastructure_check' | 'last_infrastructure_maintenance' | 'last_schedules_check' | 'last_schedules_maintenance' | 'last_shelter_installation' | 'latitude' | 'lighting_status' | 'locality_id' | 'longitude' | 'municipality_id' | 'name' | 'new_name' | 'observations' | 'operational_status' | 'parish_id' | 'pavement_type' | 'pole_status' | 'road_type' | 'shelter_code' | 'shelter_maintainer' | 'shelter_make' | 'shelter_model' | 'shelter_status' | 'short_name' | 'sidewalk_type' | 'tts_name'> {
affectation: string[];
bench_status: BenchStatus;
comments: Comment[];
district_id: string;
docking_bay_type: DockingBayType;
electricity_status: ElectricityStatus;
facilities: Facilities;
file_ids: string[];
flag_status: FlagStatus;
image_ids: string[];
is_archived: boolean;
is_locked: boolean;
jurisdiction: Jurisdiction;
last_infrastructure_check: UnixTimestamp;
last_infrastructure_maintenance: UnixTimestamp;
last_schedules_check: UnixTimestamp;
last_schedules_maintenance: UnixTimestamp;
last_shelter_installation: UnixTimestamp;
latitude: number;
lighting_status: LightningStatus;
locality_id: string;
longitude: number;
municipality_id: string;
name: string;
new_name: string;
observations: string;
operational_status: OperationalStatus;
parish_id: string;
pavement_type: PavementType;
pole_status: PoleStatus;
road_type: RoadType;
shelter_code: string;
shelter_maintainer: string;
shelter_make: string;
shelter_model: string;
shelter_status: ShelterStatus;
short_name: string;
sidewalk_type: SidewalkType;
tts_name: string;
}
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>;