UNPKG

@tmlmobilidade/types

Version:
125 lines (124 loc) • 7.84 kB
import { z } from 'zod'; export declare const FileExportSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ _id: z.ZodString; created_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>; created_by: z.ZodOptional<z.ZodString>; updated_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>; updated_by: z.ZodOptional<z.ZodString>; file_id: z.ZodOptional<z.ZodNullable<z.ZodString>>; file_name: z.ZodString; processing_status: z.ZodEnum<["waiting", "processing", "complete", "error", "skipped"]>; } & { properties: z.ZodObject<{ agency_ids: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>; analysis_ended_at_last_stop: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEnum<["pass", "fail", "skip", "error"]>, z.ZodLiteral<"none">]>, "many">>>; analysis_expected_apex_validation_interval: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEnum<["pass", "fail", "skip", "error"]>, z.ZodLiteral<"none">]>, "many">>>; analysis_simple_three_vehicle_events: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEnum<["pass", "fail", "skip", "error"]>, z.ZodLiteral<"none">]>, "many">>>; analysis_transaction_sequentiality: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEnum<["pass", "fail", "skip", "error"]>, z.ZodLiteral<"none">]>, "many">>>; date_end: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>; date_start: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>; delay_statuses: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodEnum<["delayed", "early", "ontime", "none"]>, "many">>>; operational_statuses: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodEnum<["ended", "missed", "running", "scheduled"]>, "many">>>; seen_statuses: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodEnum<["unseen", "seen", "gone"]>, "many">>>; line_ids: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>; stop_ids: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>; acceptance_status: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodEnum<["justification_required", "under_review", "accepted", "rejected", "none"]>, "many">>>; search: z.ZodNullable<z.ZodOptional<z.ZodString>>; }, "strip", z.ZodTypeAny, { date_end: number & { __brand: "UnixTimestamp"; }; date_start: number & { __brand: "UnixTimestamp"; }; agency_ids?: string[] | null | undefined; search?: string | null | undefined; acceptance_status?: ("none" | "rejected" | "justification_required" | "under_review" | "accepted")[] | null | undefined; analysis_ended_at_last_stop?: ("error" | "none" | "pass" | "fail" | "skip")[] | null | undefined; analysis_expected_apex_validation_interval?: ("error" | "none" | "pass" | "fail" | "skip")[] | null | undefined; analysis_simple_three_vehicle_events?: ("error" | "none" | "pass" | "fail" | "skip")[] | null | undefined; analysis_transaction_sequentiality?: ("error" | "none" | "pass" | "fail" | "skip")[] | null | undefined; delay_statuses?: ("delayed" | "early" | "ontime" | "none")[] | null | undefined; operational_statuses?: ("ended" | "missed" | "running" | "scheduled")[] | null | undefined; seen_statuses?: ("unseen" | "seen" | "gone")[] | null | undefined; line_ids?: string[] | null | undefined; stop_ids?: string[] | null | undefined; }, { date_end: number; date_start: number; agency_ids?: string[] | null | undefined; search?: string | null | undefined; acceptance_status?: ("none" | "rejected" | "justification_required" | "under_review" | "accepted")[] | null | undefined; analysis_ended_at_last_stop?: ("error" | "none" | "pass" | "fail" | "skip")[] | null | undefined; analysis_expected_apex_validation_interval?: ("error" | "none" | "pass" | "fail" | "skip")[] | null | undefined; analysis_simple_three_vehicle_events?: ("error" | "none" | "pass" | "fail" | "skip")[] | null | undefined; analysis_transaction_sequentiality?: ("error" | "none" | "pass" | "fail" | "skip")[] | null | undefined; delay_statuses?: ("delayed" | "early" | "ontime" | "none")[] | null | undefined; operational_statuses?: ("ended" | "missed" | "running" | "scheduled")[] | null | undefined; seen_statuses?: ("unseen" | "seen" | "gone")[] | null | undefined; line_ids?: string[] | null | undefined; stop_ids?: string[] | null | undefined; }>; type: z.ZodLiteral<"ride">; }, "strip", z.ZodTypeAny, { _id: string; created_at: number & { __brand: "UnixTimestamp"; }; updated_at: number & { __brand: "UnixTimestamp"; }; type: "ride"; file_name: string; processing_status: "waiting" | "processing" | "complete" | "error" | "skipped"; properties: { date_end: number & { __brand: "UnixTimestamp"; }; date_start: number & { __brand: "UnixTimestamp"; }; agency_ids?: string[] | null | undefined; search?: string | null | undefined; acceptance_status?: ("none" | "rejected" | "justification_required" | "under_review" | "accepted")[] | null | undefined; analysis_ended_at_last_stop?: ("error" | "none" | "pass" | "fail" | "skip")[] | null | undefined; analysis_expected_apex_validation_interval?: ("error" | "none" | "pass" | "fail" | "skip")[] | null | undefined; analysis_simple_three_vehicle_events?: ("error" | "none" | "pass" | "fail" | "skip")[] | null | undefined; analysis_transaction_sequentiality?: ("error" | "none" | "pass" | "fail" | "skip")[] | null | undefined; delay_statuses?: ("delayed" | "early" | "ontime" | "none")[] | null | undefined; operational_statuses?: ("ended" | "missed" | "running" | "scheduled")[] | null | undefined; seen_statuses?: ("unseen" | "seen" | "gone")[] | null | undefined; line_ids?: string[] | null | undefined; stop_ids?: string[] | null | undefined; }; created_by?: string | undefined; updated_by?: string | undefined; file_id?: string | null | undefined; }, { _id: string; created_at: number; updated_at: number; type: "ride"; file_name: string; processing_status: "waiting" | "processing" | "complete" | "error" | "skipped"; properties: { date_end: number; date_start: number; agency_ids?: string[] | null | undefined; search?: string | null | undefined; acceptance_status?: ("none" | "rejected" | "justification_required" | "under_review" | "accepted")[] | null | undefined; analysis_ended_at_last_stop?: ("error" | "none" | "pass" | "fail" | "skip")[] | null | undefined; analysis_expected_apex_validation_interval?: ("error" | "none" | "pass" | "fail" | "skip")[] | null | undefined; analysis_simple_three_vehicle_events?: ("error" | "none" | "pass" | "fail" | "skip")[] | null | undefined; analysis_transaction_sequentiality?: ("error" | "none" | "pass" | "fail" | "skip")[] | null | undefined; delay_statuses?: ("delayed" | "early" | "ontime" | "none")[] | null | undefined; operational_statuses?: ("ended" | "missed" | "running" | "scheduled")[] | null | undefined; seen_statuses?: ("unseen" | "seen" | "gone")[] | null | undefined; line_ids?: string[] | null | undefined; stop_ids?: string[] | null | undefined; }; created_by?: string | undefined; updated_by?: string | undefined; file_id?: string | null | undefined; }>]>; export type FileExport = z.infer<typeof FileExportSchema>;