@tmlmobilidade/types
Version:
1,081 lines • 52 kB
TypeScript
import { z } from 'zod';
export declare const StopSchema: z.ZodObject<{
created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
created_by: z.ZodOptional<z.ZodString>;
is_locked: z.ZodDefault<z.ZodBoolean>;
updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
updated_by: z.ZodOptional<z.ZodString>;
} & {
_id: z.ZodString;
is_deleted: z.ZodDefault<z.ZodBoolean>;
jurisdiction: z.ZodDefault<z.ZodEnum<["ip", "municipality", "other", "unknown"]>>;
legacy_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
lifecycle_status: z.ZodDefault<z.ZodEnum<["draft", "active", "inactive", "provisional", "seasonal", "voided"]>>;
name: z.ZodString;
new_name: 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("../_common/unix-timestamp.js").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("../_common/unix-timestamp.js").UnixTimestamp, number>>>;
last_infrastructure_maintenance: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>>>;
last_schedules_check: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>>>;
last_schedules_maintenance: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").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<{
_id: z.ZodOptional<z.ZodString>;
created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
created_by: z.ZodOptional<z.ZodString>;
updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
updated_by: z.ZodOptional<z.ZodString>;
message: z.ZodString;
type: z.ZodLiteral<"note">;
}, "strip", z.ZodTypeAny, {
created_at: number & {
__brand: "UnixTimestamp";
};
updated_at: number & {
__brand: "UnixTimestamp";
};
message: string;
type: "note";
_id?: string | undefined;
created_by?: string | undefined;
updated_by?: string | undefined;
}, {
created_at: number;
updated_at: number;
message: string;
type: "note";
_id?: string | undefined;
created_by?: string | undefined;
updated_by?: string | undefined;
}>, z.ZodObject<{
_id: z.ZodOptional<z.ZodString>;
created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
created_by: z.ZodOptional<z.ZodString>;
updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
updated_by: z.ZodOptional<z.ZodString>;
type: z.ZodLiteral<"field_changed">;
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
curr_value: z.ZodAny;
field: z.ZodString;
prev_value: z.ZodAny;
}, "strip", z.ZodTypeAny, {
created_at: number & {
__brand: "UnixTimestamp";
};
updated_at: number & {
__brand: "UnixTimestamp";
};
type: "field_changed";
field: string;
_id?: string | undefined;
created_by?: string | undefined;
updated_by?: string | undefined;
metadata?: Record<string, unknown> | null | undefined;
curr_value?: any;
prev_value?: any;
}, {
created_at: number;
updated_at: number;
type: "field_changed";
field: string;
_id?: string | undefined;
created_by?: string | undefined;
updated_by?: string | undefined;
metadata?: Record<string, unknown> | null | undefined;
curr_value?: any;
prev_value?: any;
}>, z.ZodObject<{
_id: z.ZodOptional<z.ZodString>;
created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
created_by: z.ZodOptional<z.ZodString>;
updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
updated_by: z.ZodOptional<z.ZodString>;
type: z.ZodLiteral<"crud">;
action: z.ZodEnum<["create", "update", "delete", "archive", "restore"]>;
}, "strip", z.ZodTypeAny, {
created_at: number & {
__brand: "UnixTimestamp";
};
updated_at: number & {
__brand: "UnixTimestamp";
};
type: "crud";
action: "create" | "update" | "delete" | "archive" | "restore";
_id?: string | undefined;
created_by?: string | undefined;
updated_by?: string | undefined;
}, {
created_at: number;
updated_at: number;
type: "crud";
action: "create" | "update" | "delete" | "archive" | "restore";
_id?: string | undefined;
created_by?: string | undefined;
updated_by?: string | undefined;
}>]>, {
created_at: number & {
__brand: "UnixTimestamp";
};
updated_at: number & {
__brand: "UnixTimestamp";
};
message: string;
type: "note";
_id?: string | undefined;
created_by?: string | undefined;
updated_by?: string | undefined;
} | {
created_at: number & {
__brand: "UnixTimestamp";
};
updated_at: number & {
__brand: "UnixTimestamp";
};
type: "field_changed";
field: string;
_id?: string | undefined;
created_by?: string | undefined;
updated_by?: string | undefined;
metadata?: Record<string, unknown> | null | undefined;
curr_value?: any;
prev_value?: any;
} | {
created_at: number & {
__brand: "UnixTimestamp";
};
updated_at: number & {
__brand: "UnixTimestamp";
};
type: "crud";
action: "create" | "update" | "delete" | "archive" | "restore";
_id?: string | undefined;
created_by?: string | undefined;
updated_by?: string | undefined;
}, {
created_at: number;
updated_at: number;
message: string;
type: "note";
_id?: string | undefined;
created_by?: string | undefined;
updated_by?: string | undefined;
} | {
created_at: number;
updated_at: number;
type: "field_changed";
field: string;
_id?: string | undefined;
created_by?: string | undefined;
updated_by?: string | undefined;
metadata?: Record<string, unknown> | null | undefined;
curr_value?: any;
prev_value?: any;
} | {
created_at: number;
updated_at: number;
type: "crud";
action: "create" | "update" | "delete" | "archive" | "restore";
_id?: string | undefined;
created_by?: string | undefined;
updated_by?: string | undefined;
}>, "many">>;
observations: z.ZodDefault<z.ZodNullable<z.ZodString>>;
}, "strip", z.ZodTypeAny, {
_id: string;
created_at: number & {
__brand: "UnixTimestamp";
};
is_locked: boolean;
updated_at: number & {
__brand: "UnixTimestamp";
};
name: string;
short_name: string;
latitude: number;
longitude: number;
comments: ({
created_at: number & {
__brand: "UnixTimestamp";
};
updated_at: number & {
__brand: "UnixTimestamp";
};
message: string;
type: "note";
_id?: string | undefined;
created_by?: string | undefined;
updated_by?: string | undefined;
} | {
created_at: number & {
__brand: "UnixTimestamp";
};
updated_at: number & {
__brand: "UnixTimestamp";
};
type: "field_changed";
field: string;
_id?: string | undefined;
created_by?: string | undefined;
updated_by?: string | undefined;
metadata?: Record<string, unknown> | null | undefined;
curr_value?: any;
prev_value?: any;
} | {
created_at: number & {
__brand: "UnixTimestamp";
};
updated_at: number & {
__brand: "UnixTimestamp";
};
type: "crud";
action: "create" | "update" | "delete" | "archive" | "restore";
_id?: string | undefined;
created_by?: string | undefined;
updated_by?: string | undefined;
})[];
has_bench: "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";
municipality_id: string;
parish_id: string | null;
shelter_code: string | null;
shelter_maintainer: string | null;
is_deleted: boolean;
jurisdiction: "unknown" | "ip" | "municipality" | "other";
legacy_id: string | null;
lifecycle_status: "draft" | "active" | "inactive" | "provisional" | "seasonal" | "voided";
new_name: string | null;
tts_name: string;
district_id: string;
locality_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_frame_size: [number, number] | null;
shelter_installation_date: import("../_common/unix-timestamp.js").UnixTimestamp | null;
shelter_make: string | null;
shelter_model: string | null;
shelter_status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok";
last_infrastructure_check: import("../_common/unix-timestamp.js").UnixTimestamp | null;
last_infrastructure_maintenance: import("../_common/unix-timestamp.js").UnixTimestamp | null;
last_schedules_check: import("../_common/unix-timestamp.js").UnixTimestamp | null;
last_schedules_maintenance: import("../_common/unix-timestamp.js").UnixTimestamp | null;
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" | "available" | "unavailable";
file_ids: string[];
image_ids: string[];
observations: string | null;
created_by?: string | undefined;
updated_by?: string | undefined;
}, {
_id: string;
created_at: number;
updated_at: number;
name: string;
short_name: string;
latitude: number;
longitude: number;
municipality_id: string;
tts_name: string;
district_id: string;
created_by?: string | undefined;
is_locked?: boolean | undefined;
updated_by?: string | undefined;
comments?: ({
created_at: number;
updated_at: number;
message: string;
type: "note";
_id?: string | undefined;
created_by?: string | undefined;
updated_by?: string | undefined;
} | {
created_at: number;
updated_at: number;
type: "field_changed";
field: string;
_id?: string | undefined;
created_by?: string | undefined;
updated_by?: string | undefined;
metadata?: Record<string, unknown> | null | undefined;
curr_value?: any;
prev_value?: any;
} | {
created_at: number;
updated_at: number;
type: "crud";
action: "create" | "update" | "delete" | "archive" | "restore";
_id?: string | undefined;
created_by?: string | undefined;
updated_by?: string | undefined;
})[] | undefined;
has_bench?: "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;
parish_id?: string | null | undefined;
shelter_code?: string | null | undefined;
shelter_maintainer?: string | null | undefined;
is_deleted?: boolean | undefined;
jurisdiction?: "unknown" | "ip" | "municipality" | "other" | undefined;
legacy_id?: string | null | undefined;
lifecycle_status?: "draft" | "active" | "inactive" | "provisional" | "seasonal" | "voided" | undefined;
new_name?: string | null | undefined;
locality_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_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" | "available" | "unavailable" | undefined;
file_ids?: string[] | undefined;
image_ids?: string[] | undefined;
observations?: string | null | undefined;
}>;
export declare const CreateStopSchema: z.ZodObject<Omit<{
created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
created_by: z.ZodOptional<z.ZodString>;
is_locked: z.ZodDefault<z.ZodBoolean>;
updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
updated_by: z.ZodOptional<z.ZodString>;
} & {
_id: z.ZodString;
is_deleted: z.ZodDefault<z.ZodBoolean>;
jurisdiction: z.ZodDefault<z.ZodEnum<["ip", "municipality", "other", "unknown"]>>;
legacy_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
lifecycle_status: z.ZodDefault<z.ZodEnum<["draft", "active", "inactive", "provisional", "seasonal", "voided"]>>;
name: z.ZodString;
new_name: 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("../_common/unix-timestamp.js").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("../_common/unix-timestamp.js").UnixTimestamp, number>>>;
last_infrastructure_maintenance: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>>>;
last_schedules_check: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>>>;
last_schedules_maintenance: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").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<{
_id: z.ZodOptional<z.ZodString>;
created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
created_by: z.ZodOptional<z.ZodString>;
updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
updated_by: z.ZodOptional<z.ZodString>;
message: z.ZodString;
type: z.ZodLiteral<"note">;
}, "strip", z.ZodTypeAny, {
created_at: number & {
__brand: "UnixTimestamp";
};
updated_at: number & {
__brand: "UnixTimestamp";
};
message: string;
type: "note";
_id?: string | undefined;
created_by?: string | undefined;
updated_by?: string | undefined;
}, {
created_at: number;
updated_at: number;
message: string;
type: "note";
_id?: string | undefined;
created_by?: string | undefined;
updated_by?: string | undefined;
}>, z.ZodObject<{
_id: z.ZodOptional<z.ZodString>;
created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
created_by: z.ZodOptional<z.ZodString>;
updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
updated_by: z.ZodOptional<z.ZodString>;
type: z.ZodLiteral<"field_changed">;
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
curr_value: z.ZodAny;
field: z.ZodString;
prev_value: z.ZodAny;
}, "strip", z.ZodTypeAny, {
created_at: number & {
__brand: "UnixTimestamp";
};
updated_at: number & {
__brand: "UnixTimestamp";
};
type: "field_changed";
field: string;
_id?: string | undefined;
created_by?: string | undefined;
updated_by?: string | undefined;
metadata?: Record<string, unknown> | null | undefined;
curr_value?: any;
prev_value?: any;
}, {
created_at: number;
updated_at: number;
type: "field_changed";
field: string;
_id?: string | undefined;
created_by?: string | undefined;
updated_by?: string | undefined;
metadata?: Record<string, unknown> | null | undefined;
curr_value?: any;
prev_value?: any;
}>, z.ZodObject<{
_id: z.ZodOptional<z.ZodString>;
created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
created_by: z.ZodOptional<z.ZodString>;
updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
updated_by: z.ZodOptional<z.ZodString>;
type: z.ZodLiteral<"crud">;
action: z.ZodEnum<["create", "update", "delete", "archive", "restore"]>;
}, "strip", z.ZodTypeAny, {
created_at: number & {
__brand: "UnixTimestamp";
};
updated_at: number & {
__brand: "UnixTimestamp";
};
type: "crud";
action: "create" | "update" | "delete" | "archive" | "restore";
_id?: string | undefined;
created_by?: string | undefined;
updated_by?: string | undefined;
}, {
created_at: number;
updated_at: number;
type: "crud";
action: "create" | "update" | "delete" | "archive" | "restore";
_id?: string | undefined;
created_by?: string | undefined;
updated_by?: string | undefined;
}>]>, {
created_at: number & {
__brand: "UnixTimestamp";
};
updated_at: number & {
__brand: "UnixTimestamp";
};
message: string;
type: "note";
_id?: string | undefined;
created_by?: string | undefined;
updated_by?: string | undefined;
} | {
created_at: number & {
__brand: "UnixTimestamp";
};
updated_at: number & {
__brand: "UnixTimestamp";
};
type: "field_changed";
field: string;
_id?: string | undefined;
created_by?: string | undefined;
updated_by?: string | undefined;
metadata?: Record<string, unknown> | null | undefined;
curr_value?: any;
prev_value?: any;
} | {
created_at: number & {
__brand: "UnixTimestamp";
};
updated_at: number & {
__brand: "UnixTimestamp";
};
type: "crud";
action: "create" | "update" | "delete" | "archive" | "restore";
_id?: string | undefined;
created_by?: string | undefined;
updated_by?: string | undefined;
}, {
created_at: number;
updated_at: number;
message: string;
type: "note";
_id?: string | undefined;
created_by?: string | undefined;
updated_by?: string | undefined;
} | {
created_at: number;
updated_at: number;
type: "field_changed";
field: string;
_id?: string | undefined;
created_by?: string | undefined;
updated_by?: string | undefined;
metadata?: Record<string, unknown> | null | undefined;
curr_value?: any;
prev_value?: any;
} | {
created_at: number;
updated_at: number;
type: "crud";
action: "create" | "update" | "delete" | "archive" | "restore";
_id?: string | undefined;
created_by?: string | undefined;
updated_by?: string | undefined;
}>, "many">>;
observations: z.ZodDefault<z.ZodNullable<z.ZodString>>;
}, "_id" | "created_at" | "updated_at">, "strip", z.ZodTypeAny, {
is_locked: boolean;
name: string;
short_name: string;
latitude: number;
longitude: number;
comments: ({
created_at: number & {
__brand: "UnixTimestamp";
};
updated_at: number & {
__brand: "UnixTimestamp";
};
message: string;
type: "note";
_id?: string | undefined;
created_by?: string | undefined;
updated_by?: string | undefined;
} | {
created_at: number & {
__brand: "UnixTimestamp";
};
updated_at: number & {
__brand: "UnixTimestamp";
};
type: "field_changed";
field: string;
_id?: string | undefined;
created_by?: string | undefined;
updated_by?: string | undefined;
metadata?: Record<string, unknown> | null | undefined;
curr_value?: any;
prev_value?: any;
} | {
created_at: number & {
__brand: "UnixTimestamp";
};
updated_at: number & {
__brand: "UnixTimestamp";
};
type: "crud";
action: "create" | "update" | "delete" | "archive" | "restore";
_id?: string | undefined;
created_by?: string | undefined;
updated_by?: string | undefined;
})[];
has_bench: "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";
municipality_id: string;
parish_id: string | null;
shelter_code: string | null;
shelter_maintainer: string | null;
is_deleted: boolean;
jurisdiction: "unknown" | "ip" | "municipality" | "other";
legacy_id: string | null;
lifecycle_status: "draft" | "active" | "inactive" | "provisional" | "seasonal" | "voided";
new_name: string | null;
tts_name: string;
district_id: string;
locality_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_frame_size: [number, number] | null;
shelter_installation_date: import("../_common/unix-timestamp.js").UnixTimestamp | null;
shelter_make: string | null;
shelter_model: string | null;
shelter_status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok";
last_infrastructure_check: import("../_common/unix-timestamp.js").UnixTimestamp | null;
last_infrastructure_maintenance: import("../_common/unix-timestamp.js").UnixTimestamp | null;
last_schedules_check: import("../_common/unix-timestamp.js").UnixTimestamp | null;
last_schedules_maintenance: import("../_common/unix-timestamp.js").UnixTimestamp | null;
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" | "available" | "unavailable";
file_ids: string[];
image_ids: string[];
observations: string | null;
created_by?: string | undefined;
updated_by?: string | undefined;
}, {
name: string;
short_name: string;
latitude: number;
longitude: number;
municipality_id: string;
tts_name: string;
district_id: string;
created_by?: string | undefined;
is_locked?: boolean | undefined;
updated_by?: string | undefined;
comments?: ({
created_at: number;
updated_at: number;
message: string;
type: "note";
_id?: string | undefined;
created_by?: string | undefined;
updated_by?: string | undefined;
} | {
created_at: number;
updated_at: number;
type: "field_changed";
field: string;
_id?: string | undefined;
created_by?: string | undefined;
updated_by?: string | undefined;
metadata?: Record<string, unknown> | null | undefined;
curr_value?: any;
prev_value?: any;
} | {
created_at: number;
updated_at: number;
type: "crud";
action: "create" | "update" | "delete" | "archive" | "restore";
_id?: string | undefined;
created_by?: string | undefined;
updated_by?: string | undefined;
})[] | undefined;
has_bench?: "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;
parish_id?: string | null | undefined;
shelter_code?: string | null | undefined;
shelter_maintainer?: string | null | undefined;
is_deleted?: boolean | undefined;
jurisdiction?: "unknown" | "ip" | "municipality" | "other" | undefined;
legacy_id?: string | null | undefined;
lifecycle_status?: "draft" | "active" | "inactive" | "provisional" | "seasonal" | "voided" | undefined;
new_name?: string | null | undefined;
locality_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_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" | "available" | "unavailable" | undefined;
file_ids?: string[] | undefined;
image_ids?: string[] | undefined;
observations?: string | null | 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>;
latitude: z.ZodOptional<z.ZodNumber>;
longitude: z.ZodOptional<z.ZodNumber>;
comments: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
_id: z.ZodOptional<z.ZodString>;
created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
created_by: z.ZodOptional<z.ZodString>;
updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
updated_by: z.ZodOptional<z.ZodString>;
message: z.ZodString;
type: z.ZodLiteral<"note">;
}, "strip", z.ZodTypeAny, {
created_at: number & {
__brand: "UnixTimestamp";
};
updated_at: number & {
__brand: "UnixTimestamp";
};
message: string;
type: "note";
_id?: string | undefined;
created_by?: string | undefined;
updated_by?: string | undefined;
}, {
created_at: number;
updated_at: number;
message: string;
type: "note";
_id?: string | undefined;
created_by?: string | undefined;
updated_by?: string | undefined;
}>, z.ZodObject<{
_id: z.ZodOptional<z.ZodString>;
created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
created_by: z.ZodOptional<z.ZodString>;
updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
updated_by: z.ZodOptional<z.ZodString>;
type: z.ZodLiteral<"field_changed">;
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
curr_value: z.ZodAny;
field: z.ZodString;
prev_value: z.ZodAny;
}, "strip", z.ZodTypeAny, {
created_at: number & {
__brand: "UnixTimestamp";
};
updated_at: number & {
__brand: "UnixTimestamp";
};
type: "field_changed";
field: string;
_id?: string | undefined;
created_by?: string | undefined;
updated_by?: string | undefined;
metadata?: Record<string, unknown> | null | undefined;
curr_value?: any;
prev_value?: any;
}, {
created_at: number;
updated_at: number;
type: "field_changed";
field: string;
_id?: string | undefined;
created_by?: string | undefined;
updated_by?: string | undefined;
metadata?: Record<string, unknown> | null | undefined;
curr_value?: any;
prev_value?: any;
}>, z.ZodObject<{
_id: z.ZodOptional<z.ZodString>;
created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
created_by: z.ZodOptional<z.ZodString>;
updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
updated_by: z.ZodOptional<z.ZodString>;
type: z.ZodLiteral<"crud">;
action: z.ZodEnum<["create", "update", "delete", "archive", "restore"]>;
}, "strip", z.ZodTypeAny, {
created_at: number & {
__brand: "UnixTimestamp";
};
updated_at: number & {
__brand: "UnixTimestamp";
};
type: "crud";
action: "create" | "update" | "delete" | "archive" | "restore";
_id?: string | undefined;
created_by?: string | undefined;
updated_by?: string | undefined;
}, {
created_at: number;
updated_at: number;
type: "crud";
action: "create" | "update" | "delete" | "archive" | "restore";
_id?: string | undefined;
created_by?: string | undefined;
updated_by?: string | undefined;
}>]>, {
created_at: number & {
__brand: "UnixTimestamp";
};
updated_at: number & {
__brand: "UnixTimestamp";
};
message: string;
type: "note";
_id?: string | undefined;
created_by?: string | undefined;
updated_by?: string | undefined;
} | {
created_at: number & {
__brand: "UnixTimestamp";
};
updated_at: number & {
__brand: "UnixTimestamp";
};
type: "field_changed";
field: string;
_id?: string | undefined;
created_by?: string | undefined;
updated_by?: string | undefined;
metadata?: Record<string, unknown> | null | undefined;
curr_value?: any;
prev_value?: any;
} | {
created_at: number & {
__brand: "UnixTimestamp";
};
updated_at: number & {
__brand: "UnixTimestamp";
};
type: "crud";
action: "create" | "update" | "delete" | "archive" | "restore";
_id?: string | undefined;
created_by?: string | undefined;
updated_by?: string | undefined;
}, {
created_at: number;
updated_at: number;
message: string;
type: "note";
_id?: string | undefined;
created_by?: string | undefined;
updated_by?: string | undefined;
} | {
created_at: number;
updated_at: number;
type: "field_changed";
field: string;
_id?: string | undefined;
created_by?: string | undefined;
updated_by?: string | undefined;
metadata?: Record<string, unknown> | null | undefined;
curr_value?: any;
prev_value?: any;
} | {
created_at: number;
updated_at: number;
type: "crud";
action: "create" | "update" | "delete" | "archive" | "restore";
_id?: string | undefined;
created_by?: string | undefined;
updated_by?: string | undefined;
}>, "many">>>;
has_bench: z.ZodOptional<z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>>;
has_network_map: z.ZodOptional<z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>>;
has_schedules: z.ZodOptional<z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>>;
has_shelter: z.ZodOptional<z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>>;
has_stop_sign: z.ZodOptional<z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>>;
municipality_id: z.ZodOptional<z.ZodString>;
parish_id: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>;
shelter_code: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>;
shelter_maintainer: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>;
is_deleted: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
jurisdiction: z.ZodOptional<z.ZodDefault<z.ZodEnum<["ip", "municipality", "other", "unknown"]>>>;
legacy_id: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>;
lifecycle_status: z.ZodOptional<z.ZodDefault<z.ZodEnum<["draft", "active", "inactive", "provisional", "seasonal", "voided"]>>>;
new_name: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>;
tts_name: z.ZodOptional<z.ZodString>;
district_id: z.ZodOptional<z.ZodString>;
locality_id: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>;
bench_status: z.ZodOptional<z.ZodDefault<z.ZodEnum<["not_applicable", "unknown", "missing", "damaged", "ok"]>>>;
electricity_status: z.ZodOptional<z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>>;
pole_status: z.ZodOptional<z.ZodDefault<z.ZodEnum<["not_applicable", "unknown", "missing", "damaged", "ok"]>>>;
road_type: z.ZodOptional<z.ZodDefault<z.ZodEnum<["complementary_itinerary", "highway", "main_itinerary", "national_road", "regional_road", "secondary_road", "unknown"]>>>;
shelter_frame_size: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>>;
shelter_installation_date: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>>>>;
shelter_make: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>;
shelter_model: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>;
shelter_status: z.ZodOptional<z.ZodDefault<z.ZodEnum<["not_applicable", "unknown", "missing", "damaged", "ok"]>>>;
last_infrastructure_check: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>>>>;
last_infrastructure_maintenance: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>>>>;
last_schedules_check: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>>>>;
last_schedules_maintenance: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>>>>;
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", "beach"]>, "many">>>;
equipment: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodEnum<["pip", "mupi", "mini_pip"]>, "many">>>;
has_mupi: z.ZodOptional<z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>>;
file_ids: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
image_ids: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
observations: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>;
}, "strip", z.ZodTypeAny, {
is_locked?: boolean | undefined;
updated_by?: string | undefined;
name?: string | undefined;
short_name?: string | undefined;
latitude?: number | undefined;
longitude?: number | undefined;
comments?: ({
created_at: number & {
__brand: "UnixTimestamp";
};
updated_at: number & {
__brand: "UnixTimestamp";
};
message: string;
type: "note";
_id?: string | undefined;
created_by?: string | undefined;
updated_by?: string | undefined;
} | {
created_at: number & {
__brand: "UnixTimestamp";
};
updated_at: number & {
__brand: "UnixTimestamp";
};
type: "field_changed";
field: string;
_id?: string | undefined;
created_by?: string | undefined;
updated_by?: string | undefined;
metadata?: Record<string, unknown> | null | undefined;
curr_value?: any;
prev_value?: any;
} | {
created_at: number & {
__brand: "UnixTimestamp";
};
updated_at: number & {
__brand: "UnixTimestamp";
};
type: "crud";
action: "create" | "update" | "delete" | "archive" | "restore";
_id?: string | undefined;
created_by?: string | undefined;
updated_by?: string | undefined;
})[] | undefined;
has_bench?: "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;
municipality_id?: string | undefined;
parish_id?: string | null | undefined;
shelter_code?: string | null | undefined;
shelter_maintainer?: string | null | undefined;
is_deleted?: boolean | undefined;
jurisdiction?: "unknown" | "ip" | "municipality" | "other" | undefined;
legacy_id?: string | null | undefined;
lifecycle_status?: "draft" | "active" | "inactive" | "provisional" | "seasonal" | "voided" | undefined;
new_name?: string | null | undefined;
tts_name?: string | undefined;
district_id?: string | undefined;
locality_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_frame_size?: [number, number] | null | undefined;
shelter_installation_date?: import("../_common/unix-timestamp.js").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?: import("../_common/unix-timestamp.js").UnixTimestamp | null | undefined;
last_infrastructure_maintenance?: import("../_common/unix-timestamp.js").UnixTimestamp | null | undefined;
last_schedules_check?: import("../_common/unix-timestamp.js").UnixTimestamp | null | undefined;
last_schedules_maintenance?: import("../_common/unix-timestamp.js").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" | "available" | "unavailable" | undefined;
file_ids?: string[] | undefined;
image_ids?: string[] | undefined;
observations?: string | null | undefined;
}, {
is_locked?: boolean | undefined;
updated_by?: string | undefined;
name?: string | undefined;
short_name?: string | undefined;
latitude?: number | undefined;
longitude?: number | undefined;
comments?: ({
created_at: number;
updated_at: number;
message: string;
type: "note";
_id?: string | undefined;
created_by?: string | undefined;
updated_by?: string | undefined;
} | {
created_at: number;
updated_at: number;
type: "field_changed";
field: string;
_id?: string | undefined;
created_by?: string | undefined;
updated_by?: string | undefined;
metadata?: Record<string, unknown> | null | undefined;
curr_value?: any;
prev_value?: any;
} | {
created_at: number;
updated_at: number;
type: "crud";
action: "create" | "update" | "delete" | "archive" | "restore";
_id?: string | undefined;
created_by?: string | undefined;
updated_by?: string | undefined;
})[] | undefined;
has_bench?: "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;
municipality_id?: string | undefined;
parish_id?: string | null | undefined;
shelter_code?: string | null | undefined;
shelter_maintainer?: string | null | undefined;
is_deleted?: boolean | undefined;
jurisdiction?: "unknown" | "ip" | "municipality" | "other"