UNPKG

@tmlmobilidade/types

Version:
123 lines (122 loc) • 4.91 kB
import { z } from 'zod'; export declare const SimplifiedApexLocationSchema: z.ZodObject<Omit<{ _id: z.ZodString; 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>; }, "is_locked"> & { agency_id: z.ZodString; apex_version: z.ZodString; device_id: z.ZodString; line_id: z.ZodString; mac_ase_counter_value: z.ZodNumber; mac_sam_serial_number: z.ZodNumber; pattern_id: z.ZodString; received_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>; stop_id: z.ZodString; trip_id: z.ZodString; vehicle_id: z.ZodNumber; }, "strip", z.ZodTypeAny, { _id: string; created_at: number & { __brand: "UnixTimestamp"; }; updated_at: number & { __brand: "UnixTimestamp"; }; agency_id: string; apex_version: string; device_id: string; line_id: string; mac_ase_counter_value: number; mac_sam_serial_number: number; pattern_id: string; received_at: number & { __brand: "UnixTimestamp"; }; stop_id: string; trip_id: string; vehicle_id: number; created_by?: string | undefined; updated_by?: string | undefined; }, { _id: string; created_at: number; updated_at: number; agency_id: string; apex_version: string; device_id: string; line_id: string; mac_ase_counter_value: number; mac_sam_serial_number: number; pattern_id: string; received_at: number; stop_id: string; trip_id: string; vehicle_id: number; created_by?: string | undefined; updated_by?: string | undefined; }>; export declare const UpdateSimplifiedApexLocationSchema: z.ZodObject<{ _id: z.ZodOptional<z.ZodString>; created_at: z.ZodOptional<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>>; created_by: z.ZodOptional<z.ZodOptional<z.ZodString>>; updated_at: z.ZodOptional<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>>; updated_by: z.ZodOptional<z.ZodOptional<z.ZodString>>; agency_id: z.ZodOptional<z.ZodString>; apex_version: z.ZodOptional<z.ZodString>; device_id: z.ZodOptional<z.ZodString>; line_id: z.ZodOptional<z.ZodString>; mac_ase_counter_value: z.ZodOptional<z.ZodNumber>; mac_sam_serial_number: z.ZodOptional<z.ZodNumber>; pattern_id: z.ZodOptional<z.ZodString>; received_at: z.ZodOptional<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>>; stop_id: z.ZodOptional<z.ZodString>; trip_id: z.ZodOptional<z.ZodString>; vehicle_id: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { _id?: string | undefined; created_at?: import("../_common/unix-timestamp.js").UnixTimestamp | undefined; created_by?: string | undefined; updated_at?: import("../_common/unix-timestamp.js").UnixTimestamp | undefined; updated_by?: string | undefined; agency_id?: string | undefined; apex_version?: string | undefined; device_id?: string | undefined; line_id?: string | undefined; mac_ase_counter_value?: number | undefined; mac_sam_serial_number?: number | undefined; pattern_id?: string | undefined; received_at?: import("../_common/unix-timestamp.js").UnixTimestamp | undefined; stop_id?: string | undefined; trip_id?: string | undefined; vehicle_id?: number | undefined; }, { _id?: string | undefined; created_at?: number | undefined; created_by?: string | undefined; updated_at?: number | undefined; updated_by?: string | undefined; agency_id?: string | undefined; apex_version?: string | undefined; device_id?: string | undefined; line_id?: string | undefined; mac_ase_counter_value?: number | undefined; mac_sam_serial_number?: number | undefined; pattern_id?: string | undefined; received_at?: number | undefined; stop_id?: string | undefined; trip_id?: string | undefined; vehicle_id?: number | undefined; }>; /** * APEX Locations are APEX transactions of type 19 that are generated every time the * setContext or setLocation functions are called. These functions are used to set * the service context of the validator machine, allowing for the correct sale and validation * of products. In summary, these transactions are generated every time the vehicle has a change * in the current stop ID, trip ID, route ID, pattern ID, etc. */ export type SimplifiedApexLocation = z.infer<typeof SimplifiedApexLocationSchema>; export type UpdateSimplifiedApexLocationDto = z.infer<typeof UpdateSimplifiedApexLocationSchema>;