@tmlmobilidade/types
Version:
152 lines (151 loc) • 7.06 kB
TypeScript
import { z } from 'zod';
export declare const GtfsTMLStopSchema: z.ZodObject<{
level_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
location_type: z.ZodDefault<z.ZodEnum<["0", "1", "2", "3", "4"]>>;
parent_station: z.ZodOptional<z.ZodNullable<z.ZodString>>;
platform_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
stop_access: z.ZodOptional<z.ZodNullable<z.ZodEnum<["0", "1"]>>>;
stop_code: z.ZodString;
stop_desc: z.ZodOptional<z.ZodNullable<z.ZodString>>;
stop_id: z.ZodString;
stop_lat: z.ZodNumber;
stop_lon: z.ZodNumber;
stop_name: z.ZodString;
stop_timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
stop_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
tts_stop_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
wheelchair_boarding: z.ZodEnum<["0", "1", "2"]>;
zone_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
} & {
bench: z.ZodOptional<z.ZodNullable<z.ZodString>>;
entrance_restriction: z.ZodOptional<z.ZodNullable<z.ZodString>>;
equipment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
exit_restriction: z.ZodOptional<z.ZodNullable<z.ZodString>>;
has_bench: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>>;
has_network_map: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>>;
has_pip_real_time: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>>;
has_schedules: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>>;
has_shelter: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>>;
has_stop_sign: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>>;
has_tariffs_information: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>>;
municipality: z.ZodOptional<z.ZodNullable<z.ZodString>>;
municipality_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
network_map: z.ZodOptional<z.ZodNullable<z.ZodString>>;
observations: z.ZodOptional<z.ZodNullable<z.ZodString>>;
parish_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
preservation_state: z.ZodOptional<z.ZodNullable<z.ZodString>>;
public_visible: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>>;
real_time_information: z.ZodOptional<z.ZodNullable<z.ZodString>>;
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
region_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
schedule: z.ZodOptional<z.ZodNullable<z.ZodString>>;
shelter: z.ZodOptional<z.ZodNullable<z.ZodString>>;
shelter_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
shelter_maintainer: z.ZodOptional<z.ZodNullable<z.ZodString>>;
signalling: z.ZodOptional<z.ZodNullable<z.ZodString>>;
slot: z.ZodOptional<z.ZodNullable<z.ZodString>>;
stop_id_stepp: z.ZodOptional<z.ZodNullable<z.ZodString>>;
stop_remarks: z.ZodOptional<z.ZodNullable<z.ZodString>>;
stop_short_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
tariff: z.ZodOptional<z.ZodNullable<z.ZodString>>;
zone_shift: z.ZodOptional<z.ZodNullable<z.ZodString>>;
}, "strip", z.ZodTypeAny, {
stop_id: string;
has_bench: 0 | 1;
has_network_map: 0 | 1;
has_schedules: 0 | 1;
has_shelter: 0 | 1;
has_stop_sign: 0 | 1;
location_type: "0" | "1" | "2" | "3" | "4";
stop_code: string;
stop_lat: number;
stop_lon: number;
stop_name: string;
wheelchair_boarding: "0" | "1" | "2";
has_pip_real_time: 0 | 1;
has_tariffs_information: 0 | 1;
public_visible: 0 | 1;
municipality?: string | null | undefined;
municipality_id?: string | null | undefined;
parish_id?: string | null | undefined;
shelter_code?: string | null | undefined;
shelter_maintainer?: string | null | undefined;
equipment?: string | null | undefined;
level_id?: string | null | undefined;
parent_station?: string | null | undefined;
platform_code?: string | null | undefined;
stop_access?: "0" | "1" | null | undefined;
stop_desc?: string | null | undefined;
stop_timezone?: string | null | undefined;
stop_url?: string | null | undefined;
tts_stop_name?: string | null | undefined;
zone_id?: string | null | undefined;
bench?: string | null | undefined;
entrance_restriction?: string | null | undefined;
exit_restriction?: string | null | undefined;
network_map?: string | null | undefined;
observations?: string | null | undefined;
preservation_state?: string | null | undefined;
real_time_information?: string | null | undefined;
region?: string | null | undefined;
region_id?: string | null | undefined;
schedule?: string | null | undefined;
shelter?: string | null | undefined;
signalling?: string | null | undefined;
slot?: string | null | undefined;
stop_id_stepp?: string | null | undefined;
stop_remarks?: string | null | undefined;
stop_short_name?: string | null | undefined;
tariff?: string | null | undefined;
zone_shift?: string | null | undefined;
}, {
stop_id: string;
stop_code: string;
stop_lat: number;
stop_lon: number;
stop_name: string;
wheelchair_boarding: "0" | "1" | "2";
municipality?: string | null | undefined;
municipality_id?: string | null | undefined;
parish_id?: string | null | undefined;
shelter_code?: string | null | undefined;
shelter_maintainer?: string | null | undefined;
equipment?: string | null | undefined;
has_bench?: 0 | 1 | undefined;
has_network_map?: 0 | 1 | undefined;
has_schedules?: 0 | 1 | undefined;
has_shelter?: 0 | 1 | undefined;
has_stop_sign?: 0 | 1 | undefined;
level_id?: string | null | undefined;
location_type?: "0" | "1" | "2" | "3" | "4" | undefined;
parent_station?: string | null | undefined;
platform_code?: string | null | undefined;
stop_access?: "0" | "1" | null | undefined;
stop_desc?: string | null | undefined;
stop_timezone?: string | null | undefined;
stop_url?: string | null | undefined;
tts_stop_name?: string | null | undefined;
zone_id?: string | null | undefined;
bench?: string | null | undefined;
entrance_restriction?: string | null | undefined;
exit_restriction?: string | null | undefined;
has_pip_real_time?: 0 | 1 | undefined;
has_tariffs_information?: 0 | 1 | undefined;
network_map?: string | null | undefined;
observations?: string | null | undefined;
preservation_state?: string | null | undefined;
public_visible?: 0 | 1 | undefined;
real_time_information?: string | null | undefined;
region?: string | null | undefined;
region_id?: string | null | undefined;
schedule?: string | null | undefined;
shelter?: string | null | undefined;
signalling?: string | null | undefined;
slot?: string | null | undefined;
stop_id_stepp?: string | null | undefined;
stop_remarks?: string | null | undefined;
stop_short_name?: string | null | undefined;
tariff?: string | null | undefined;
zone_shift?: string | null | undefined;
}>;
export type GtfsTMLStop = z.infer<typeof GtfsTMLStopSchema>;