@tmlmobilidade/types
Version:
227 lines (226 loc) • 12.2 kB
TypeScript
import { z } from 'zod';
export declare const FlatSamsAnalysisExportAnalysisSchema: z.ZodObject<{
apex_version: z.ZodNullable<z.ZodString>;
device_id: z.ZodNullable<z.ZodString>;
end_time: z.ZodNullable<z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>>;
first_transaction_ase_counter_value: z.ZodNullable<z.ZodNumber>;
first_transaction_id: z.ZodNullable<z.ZodString>;
first_transaction_type: z.ZodNullable<z.ZodString>;
last_transaction_ase_counter_value: z.ZodNullable<z.ZodNumber>;
last_transaction_id: z.ZodNullable<z.ZodString>;
last_transaction_type: z.ZodNullable<z.ZodString>;
start_time: z.ZodNullable<z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>>;
transactions_expected: z.ZodNumber;
transactions_found: z.ZodNumber;
transactions_missing: z.ZodNumber;
vehicle_id: z.ZodNullable<z.ZodNumber>;
} & {
_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
agency_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
}, "strip", z.ZodTypeAny, {
end_time: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null;
start_time: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null;
apex_version: string | null;
device_id: string | null;
first_transaction_ase_counter_value: number | null;
first_transaction_id: string | null;
first_transaction_type: string | null;
last_transaction_ase_counter_value: number | null;
last_transaction_id: string | null;
last_transaction_type: string | null;
transactions_expected: number;
transactions_found: number;
transactions_missing: number;
vehicle_id: number | null;
_id?: number | null | undefined;
agency_id?: string | null | undefined;
}, {
end_time: number | null;
start_time: number | null;
apex_version: string | null;
device_id: string | null;
first_transaction_ase_counter_value: number | null;
first_transaction_id: string | null;
first_transaction_type: string | null;
last_transaction_ase_counter_value: number | null;
last_transaction_id: string | null;
last_transaction_type: string | null;
transactions_expected: number;
transactions_found: number;
transactions_missing: number;
vehicle_id: number | null;
_id?: number | null | undefined;
agency_id?: string | null | undefined;
}>;
export declare const SamsAnalysisExportPropertiesSchema: z.ZodObject<{
properties: z.ZodObject<{
_id: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
agency_ids: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
apex_versions: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
end_time: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>>>;
favorites_only: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
sam_ids: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
search: z.ZodNullable<z.ZodOptional<z.ZodString>>;
seen_first_at: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>>>;
seen_last_at: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>>>;
start_time: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>>>;
statuses: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodEnum<["waiting", "incomplete", "complete", "error"]>, "many">>>;
}, "strip", z.ZodTypeAny, {
_id?: number[] | null | undefined;
agency_ids?: string[] | null | undefined;
search?: string | null | undefined;
seen_last_at?: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null | undefined;
end_time?: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null | undefined;
start_time?: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null | undefined;
seen_first_at?: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null | undefined;
apex_versions?: string[] | null | undefined;
favorites_only?: boolean | null | undefined;
sam_ids?: number[] | null | undefined;
statuses?: ("error" | "waiting" | "complete" | "incomplete")[] | null | undefined;
}, {
_id?: number[] | null | undefined;
agency_ids?: string[] | null | undefined;
search?: string | null | undefined;
seen_last_at?: number | null | undefined;
end_time?: number | null | undefined;
start_time?: number | null | undefined;
seen_first_at?: number | null | undefined;
apex_versions?: string[] | null | undefined;
favorites_only?: boolean | null | undefined;
sam_ids?: number[] | null | undefined;
statuses?: ("error" | "waiting" | "complete" | "incomplete")[] | null | undefined;
}>;
type: z.ZodLiteral<"sams_analysis">;
}, "strip", z.ZodTypeAny, {
type: "sams_analysis";
properties: {
_id?: number[] | null | undefined;
agency_ids?: string[] | null | undefined;
search?: string | null | undefined;
seen_last_at?: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null | undefined;
end_time?: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null | undefined;
start_time?: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null | undefined;
seen_first_at?: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null | undefined;
apex_versions?: string[] | null | undefined;
favorites_only?: boolean | null | undefined;
sam_ids?: number[] | null | undefined;
statuses?: ("error" | "waiting" | "complete" | "incomplete")[] | null | undefined;
};
}, {
type: "sams_analysis";
properties: {
_id?: number[] | null | undefined;
agency_ids?: string[] | null | undefined;
search?: string | null | undefined;
seen_last_at?: number | null | undefined;
end_time?: number | null | undefined;
start_time?: number | null | undefined;
seen_first_at?: number | null | undefined;
apex_versions?: string[] | null | undefined;
favorites_only?: boolean | null | undefined;
sam_ids?: number[] | null | undefined;
statuses?: ("error" | "waiting" | "complete" | "incomplete")[] | null | undefined;
};
}>;
export declare const SamsAnalysisExportSchema: z.ZodObject<{
_id: z.ZodString;
created_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
updated_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").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<{
_id: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
agency_ids: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
apex_versions: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
end_time: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>>>;
favorites_only: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
sam_ids: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
search: z.ZodNullable<z.ZodOptional<z.ZodString>>;
seen_first_at: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>>>;
seen_last_at: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>>>;
start_time: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>>>;
statuses: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodEnum<["waiting", "incomplete", "complete", "error"]>, "many">>>;
}, "strip", z.ZodTypeAny, {
_id?: number[] | null | undefined;
agency_ids?: string[] | null | undefined;
search?: string | null | undefined;
seen_last_at?: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null | undefined;
end_time?: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null | undefined;
start_time?: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null | undefined;
seen_first_at?: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null | undefined;
apex_versions?: string[] | null | undefined;
favorites_only?: boolean | null | undefined;
sam_ids?: number[] | null | undefined;
statuses?: ("error" | "waiting" | "complete" | "incomplete")[] | null | undefined;
}, {
_id?: number[] | null | undefined;
agency_ids?: string[] | null | undefined;
search?: string | null | undefined;
seen_last_at?: number | null | undefined;
end_time?: number | null | undefined;
start_time?: number | null | undefined;
seen_first_at?: number | null | undefined;
apex_versions?: string[] | null | undefined;
favorites_only?: boolean | null | undefined;
sam_ids?: number[] | null | undefined;
statuses?: ("error" | "waiting" | "complete" | "incomplete")[] | null | undefined;
}>;
type: z.ZodLiteral<"sams_analysis">;
}, "strip", z.ZodTypeAny, {
_id: string;
created_at: number & {
__brand: "UnixTimestamp";
};
created_by: string | null;
updated_at: number & {
__brand: "UnixTimestamp";
};
type: "sams_analysis";
file_name: string;
processing_status: "error" | "waiting" | "processing" | "complete" | "skipped";
properties: {
_id?: number[] | null | undefined;
agency_ids?: string[] | null | undefined;
search?: string | null | undefined;
seen_last_at?: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null | undefined;
end_time?: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null | undefined;
start_time?: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null | undefined;
seen_first_at?: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null | undefined;
apex_versions?: string[] | null | undefined;
favorites_only?: boolean | null | undefined;
sam_ids?: number[] | null | undefined;
statuses?: ("error" | "waiting" | "complete" | "incomplete")[] | null | undefined;
};
updated_by?: string | undefined;
file_id?: string | null | undefined;
}, {
_id: string;
created_at: number;
updated_at: number;
type: "sams_analysis";
file_name: string;
processing_status: "error" | "waiting" | "processing" | "complete" | "skipped";
properties: {
_id?: number[] | null | undefined;
agency_ids?: string[] | null | undefined;
search?: string | null | undefined;
seen_last_at?: number | null | undefined;
end_time?: number | null | undefined;
start_time?: number | null | undefined;
seen_first_at?: number | null | undefined;
apex_versions?: string[] | null | undefined;
favorites_only?: boolean | null | undefined;
sam_ids?: number[] | null | undefined;
statuses?: ("error" | "waiting" | "complete" | "incomplete")[] | null | undefined;
};
created_by?: string | null | undefined;
updated_by?: string | undefined;
file_id?: string | null | undefined;
}>;
export type SamsAnalysisExportProperties = z.infer<typeof SamsAnalysisExportPropertiesSchema>;
export type FlatSamsAnalysisExportAnalysis = z.infer<typeof FlatSamsAnalysisExportAnalysisSchema>;
export type SamsAnalysisExportData = z.infer<typeof SamsAnalysisExportSchema>;