@tmlmobilidade/go-types-downloads 20260828.1636.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/base.d.ts +104 -0
- package/dist/base.js +18 -0
- package/dist/file-exports.d.ts +512 -0
- package/dist/file-exports.js +15 -0
- package/dist/gtfs-export.d.ts +203 -0
- package/dist/gtfs-export.js +27 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +7 -0
- package/dist/ride-export.d.ts +420 -0
- package/dist/ride-export.js +129 -0
- package/dist/sams-analysis-export.d.ts +226 -0
- package/dist/sams-analysis-export.js +33 -0
- package/dist/stop-export.d.ts +367 -0
- package/dist/stop-export.js +85 -0
- package/dist/vehicle-export.d.ts +91 -0
- package/dist/vehicle-export.js +16 -0
- package/package.json +54 -0
package/dist/base.d.ts
ADDED
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const FileExportTypes: readonly ["gtfs", "ride", "sams_analysis", "stop", "vehicle"];
|
|
3
|
+
export declare const FileExportTypeSchema: z.ZodEnum<["gtfs", "ride", "sams_analysis", "stop", "vehicle"]>;
|
|
4
|
+
export type FileExportType = z.infer<typeof FileExportTypeSchema>;
|
|
5
|
+
export declare const FileExportBaseSchema: z.ZodObject<Omit<{
|
|
6
|
+
_id: z.ZodString;
|
|
7
|
+
created_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixTimestamp, string | number>;
|
|
8
|
+
created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
9
|
+
is_locked: z.ZodDefault<z.ZodBoolean>;
|
|
10
|
+
updated_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixTimestamp, string | number>;
|
|
11
|
+
updated_by: z.ZodOptional<z.ZodString>;
|
|
12
|
+
}, "is_locked"> & {
|
|
13
|
+
file_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
file_name: z.ZodString;
|
|
15
|
+
processing_status: z.ZodEnum<["waiting", "processing", "complete", "error", "skipped"]>;
|
|
16
|
+
properties: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
17
|
+
type: z.ZodEnum<["gtfs", "ride", "sams_analysis", "stop", "vehicle"]>;
|
|
18
|
+
}, "strip", z.ZodTypeAny, {
|
|
19
|
+
type: "gtfs" | "ride" | "sams_analysis" | "stop" | "vehicle";
|
|
20
|
+
_id: string;
|
|
21
|
+
created_at: number & {
|
|
22
|
+
__brand: "UnixTimestamp";
|
|
23
|
+
};
|
|
24
|
+
created_by: string | null;
|
|
25
|
+
updated_at: number & {
|
|
26
|
+
__brand: "UnixTimestamp";
|
|
27
|
+
};
|
|
28
|
+
file_name: string;
|
|
29
|
+
processing_status: "waiting" | "processing" | "complete" | "error" | "skipped";
|
|
30
|
+
properties: Record<string, any>;
|
|
31
|
+
updated_by?: string | undefined;
|
|
32
|
+
file_id?: string | null | undefined;
|
|
33
|
+
}, {
|
|
34
|
+
type: "gtfs" | "ride" | "sams_analysis" | "stop" | "vehicle";
|
|
35
|
+
_id: string;
|
|
36
|
+
created_at: string | number;
|
|
37
|
+
updated_at: string | number;
|
|
38
|
+
file_name: string;
|
|
39
|
+
processing_status: "waiting" | "processing" | "complete" | "error" | "skipped";
|
|
40
|
+
properties: Record<string, any>;
|
|
41
|
+
created_by?: string | null | undefined;
|
|
42
|
+
updated_by?: string | undefined;
|
|
43
|
+
file_id?: string | null | undefined;
|
|
44
|
+
}>;
|
|
45
|
+
export declare const CreateFileExportSchema: z.ZodObject<{
|
|
46
|
+
type: z.ZodOptional<z.ZodEnum<["gtfs", "ride", "sams_analysis", "stop", "vehicle"]>>;
|
|
47
|
+
created_by: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>;
|
|
48
|
+
updated_by: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
49
|
+
file_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
50
|
+
file_name: z.ZodOptional<z.ZodString>;
|
|
51
|
+
processing_status: z.ZodOptional<z.ZodEnum<["waiting", "processing", "complete", "error", "skipped"]>>;
|
|
52
|
+
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
53
|
+
}, "strip", z.ZodTypeAny, {
|
|
54
|
+
type?: "gtfs" | "ride" | "sams_analysis" | "stop" | "vehicle" | undefined;
|
|
55
|
+
created_by?: string | null | undefined;
|
|
56
|
+
updated_by?: string | undefined;
|
|
57
|
+
file_id?: string | null | undefined;
|
|
58
|
+
file_name?: string | undefined;
|
|
59
|
+
processing_status?: "waiting" | "processing" | "complete" | "error" | "skipped" | undefined;
|
|
60
|
+
properties?: Record<string, any> | undefined;
|
|
61
|
+
}, {
|
|
62
|
+
type?: "gtfs" | "ride" | "sams_analysis" | "stop" | "vehicle" | undefined;
|
|
63
|
+
created_by?: string | null | undefined;
|
|
64
|
+
updated_by?: string | undefined;
|
|
65
|
+
file_id?: string | null | undefined;
|
|
66
|
+
file_name?: string | undefined;
|
|
67
|
+
processing_status?: "waiting" | "processing" | "complete" | "error" | "skipped" | undefined;
|
|
68
|
+
properties?: Record<string, any> | undefined;
|
|
69
|
+
}>;
|
|
70
|
+
export declare const UpdateFileExportSchema: z.ZodObject<{
|
|
71
|
+
type: z.ZodOptional<z.ZodOptional<z.ZodEnum<["gtfs", "ride", "sams_analysis", "stop", "vehicle"]>>>;
|
|
72
|
+
created_by: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>>;
|
|
73
|
+
updated_by: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
|
|
74
|
+
file_id: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
|
|
75
|
+
file_name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
76
|
+
processing_status: z.ZodOptional<z.ZodOptional<z.ZodEnum<["waiting", "processing", "complete", "error", "skipped"]>>>;
|
|
77
|
+
properties: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
78
|
+
}, "strip", z.ZodTypeAny, {
|
|
79
|
+
type?: "gtfs" | "ride" | "sams_analysis" | "stop" | "vehicle" | undefined;
|
|
80
|
+
created_by?: string | null | undefined;
|
|
81
|
+
updated_by?: string | undefined;
|
|
82
|
+
file_id?: string | null | undefined;
|
|
83
|
+
file_name?: string | undefined;
|
|
84
|
+
processing_status?: "waiting" | "processing" | "complete" | "error" | "skipped" | undefined;
|
|
85
|
+
properties?: Record<string, any> | undefined;
|
|
86
|
+
}, {
|
|
87
|
+
type?: "gtfs" | "ride" | "sams_analysis" | "stop" | "vehicle" | undefined;
|
|
88
|
+
created_by?: string | null | undefined;
|
|
89
|
+
updated_by?: string | undefined;
|
|
90
|
+
file_id?: string | null | undefined;
|
|
91
|
+
file_name?: string | undefined;
|
|
92
|
+
processing_status?: "waiting" | "processing" | "complete" | "error" | "skipped" | undefined;
|
|
93
|
+
properties?: Record<string, any> | undefined;
|
|
94
|
+
}>;
|
|
95
|
+
export type UpdateFileExport = z.infer<typeof UpdateFileExportSchema>;
|
|
96
|
+
export type CreateFileExportDto<T extends {
|
|
97
|
+
properties: Record<string, unknown>;
|
|
98
|
+
type: string;
|
|
99
|
+
}> = Omit<z.infer<typeof FileExportBaseSchema>, '_id' | 'created_at' | 'file_id' | 'processing_status' | 'updated_at'> & {
|
|
100
|
+
file_id: null;
|
|
101
|
+
processing_status?: 'waiting';
|
|
102
|
+
properties: T['properties'];
|
|
103
|
+
type: T['type'];
|
|
104
|
+
};
|
package/dist/base.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/* * */
|
|
2
|
+
import { BaseDocumentSchema, ProcessingStatusSchema } from '@tmlmobilidade/go-types-shared';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
/* * */
|
|
5
|
+
export const FileExportTypes = ['gtfs', 'ride', 'sams_analysis', 'stop', 'vehicle'];
|
|
6
|
+
export const FileExportTypeSchema = z.enum(FileExportTypes);
|
|
7
|
+
/* * */
|
|
8
|
+
export const FileExportBaseSchema = BaseDocumentSchema
|
|
9
|
+
.omit({ is_locked: true })
|
|
10
|
+
.extend({
|
|
11
|
+
file_id: z.string().nullish(),
|
|
12
|
+
file_name: z.string(),
|
|
13
|
+
processing_status: ProcessingStatusSchema,
|
|
14
|
+
properties: z.record(z.any()),
|
|
15
|
+
type: FileExportTypeSchema,
|
|
16
|
+
});
|
|
17
|
+
export const CreateFileExportSchema = FileExportBaseSchema.omit({ _id: true, created_at: true, updated_at: true }).partial();
|
|
18
|
+
export const UpdateFileExportSchema = CreateFileExportSchema.partial();
|
|
@@ -0,0 +1,512 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const FileExportSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
3
|
+
_id: z.ZodString;
|
|
4
|
+
created_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixTimestamp, string | number>;
|
|
5
|
+
created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
6
|
+
updated_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixTimestamp, string | number>;
|
|
7
|
+
updated_by: z.ZodOptional<z.ZodString>;
|
|
8
|
+
file_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
|
+
file_name: z.ZodString;
|
|
10
|
+
processing_status: z.ZodEnum<["waiting", "processing", "complete", "error", "skipped"]>;
|
|
11
|
+
} & {
|
|
12
|
+
properties: z.ZodObject<{
|
|
13
|
+
agency_ids: z.ZodArray<z.ZodString, "many">;
|
|
14
|
+
calendars_clip_end_date: z.ZodEffects<z.ZodString, import("@tmlmobilidade/go-types-shared").OperationalDate, string>;
|
|
15
|
+
calendars_clip_start_date: z.ZodEffects<z.ZodString, import("@tmlmobilidade/go-types-shared").OperationalDate, string>;
|
|
16
|
+
feed_end_date: z.ZodEffects<z.ZodString, import("@tmlmobilidade/go-types-shared").OperationalDate, string>;
|
|
17
|
+
feed_start_date: z.ZodEffects<z.ZodString, import("@tmlmobilidade/go-types-shared").OperationalDate, string>;
|
|
18
|
+
lines_exclude: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
19
|
+
lines_include: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
20
|
+
lines_mode: z.ZodDefault<z.ZodEnum<["all", "exclude", "include"]>>;
|
|
21
|
+
numeric_calendar_codes: z.ZodDefault<z.ZodBoolean>;
|
|
22
|
+
stop_sequence_start: z.ZodDefault<z.ZodNumber>;
|
|
23
|
+
stops_export_all: z.ZodDefault<z.ZodBoolean>;
|
|
24
|
+
}, "strip", z.ZodTypeAny, {
|
|
25
|
+
agency_ids: string[];
|
|
26
|
+
calendars_clip_end_date: string & {
|
|
27
|
+
__brand: "OperationalDate";
|
|
28
|
+
};
|
|
29
|
+
calendars_clip_start_date: string & {
|
|
30
|
+
__brand: "OperationalDate";
|
|
31
|
+
};
|
|
32
|
+
feed_end_date: string & {
|
|
33
|
+
__brand: "OperationalDate";
|
|
34
|
+
};
|
|
35
|
+
feed_start_date: string & {
|
|
36
|
+
__brand: "OperationalDate";
|
|
37
|
+
};
|
|
38
|
+
lines_exclude: string[];
|
|
39
|
+
lines_include: string[];
|
|
40
|
+
lines_mode: "all" | "exclude" | "include";
|
|
41
|
+
numeric_calendar_codes: boolean;
|
|
42
|
+
stop_sequence_start: number;
|
|
43
|
+
stops_export_all: boolean;
|
|
44
|
+
}, {
|
|
45
|
+
agency_ids: string[];
|
|
46
|
+
calendars_clip_end_date: string;
|
|
47
|
+
calendars_clip_start_date: string;
|
|
48
|
+
feed_end_date: string;
|
|
49
|
+
feed_start_date: string;
|
|
50
|
+
lines_exclude?: string[] | undefined;
|
|
51
|
+
lines_include?: string[] | undefined;
|
|
52
|
+
lines_mode?: "all" | "exclude" | "include" | undefined;
|
|
53
|
+
numeric_calendar_codes?: boolean | undefined;
|
|
54
|
+
stop_sequence_start?: number | undefined;
|
|
55
|
+
stops_export_all?: boolean | undefined;
|
|
56
|
+
}>;
|
|
57
|
+
type: z.ZodLiteral<"gtfs">;
|
|
58
|
+
}, "strip", z.ZodTypeAny, {
|
|
59
|
+
type: "gtfs";
|
|
60
|
+
_id: string;
|
|
61
|
+
created_at: number & {
|
|
62
|
+
__brand: "UnixTimestamp";
|
|
63
|
+
};
|
|
64
|
+
created_by: string | null;
|
|
65
|
+
updated_at: number & {
|
|
66
|
+
__brand: "UnixTimestamp";
|
|
67
|
+
};
|
|
68
|
+
file_name: string;
|
|
69
|
+
processing_status: "waiting" | "processing" | "complete" | "error" | "skipped";
|
|
70
|
+
properties: {
|
|
71
|
+
agency_ids: string[];
|
|
72
|
+
calendars_clip_end_date: string & {
|
|
73
|
+
__brand: "OperationalDate";
|
|
74
|
+
};
|
|
75
|
+
calendars_clip_start_date: string & {
|
|
76
|
+
__brand: "OperationalDate";
|
|
77
|
+
};
|
|
78
|
+
feed_end_date: string & {
|
|
79
|
+
__brand: "OperationalDate";
|
|
80
|
+
};
|
|
81
|
+
feed_start_date: string & {
|
|
82
|
+
__brand: "OperationalDate";
|
|
83
|
+
};
|
|
84
|
+
lines_exclude: string[];
|
|
85
|
+
lines_include: string[];
|
|
86
|
+
lines_mode: "all" | "exclude" | "include";
|
|
87
|
+
numeric_calendar_codes: boolean;
|
|
88
|
+
stop_sequence_start: number;
|
|
89
|
+
stops_export_all: boolean;
|
|
90
|
+
};
|
|
91
|
+
updated_by?: string | undefined;
|
|
92
|
+
file_id?: string | null | undefined;
|
|
93
|
+
}, {
|
|
94
|
+
type: "gtfs";
|
|
95
|
+
_id: string;
|
|
96
|
+
created_at: string | number;
|
|
97
|
+
updated_at: string | number;
|
|
98
|
+
file_name: string;
|
|
99
|
+
processing_status: "waiting" | "processing" | "complete" | "error" | "skipped";
|
|
100
|
+
properties: {
|
|
101
|
+
agency_ids: string[];
|
|
102
|
+
calendars_clip_end_date: string;
|
|
103
|
+
calendars_clip_start_date: string;
|
|
104
|
+
feed_end_date: string;
|
|
105
|
+
feed_start_date: string;
|
|
106
|
+
lines_exclude?: string[] | undefined;
|
|
107
|
+
lines_include?: string[] | undefined;
|
|
108
|
+
lines_mode?: "all" | "exclude" | "include" | undefined;
|
|
109
|
+
numeric_calendar_codes?: boolean | undefined;
|
|
110
|
+
stop_sequence_start?: number | undefined;
|
|
111
|
+
stops_export_all?: boolean | undefined;
|
|
112
|
+
};
|
|
113
|
+
created_by?: string | null | undefined;
|
|
114
|
+
updated_by?: string | undefined;
|
|
115
|
+
file_id?: string | null | undefined;
|
|
116
|
+
}>, z.ZodObject<{
|
|
117
|
+
_id: z.ZodString;
|
|
118
|
+
created_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixTimestamp, string | number>;
|
|
119
|
+
created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
120
|
+
updated_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixTimestamp, string | number>;
|
|
121
|
+
updated_by: z.ZodOptional<z.ZodString>;
|
|
122
|
+
file_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
123
|
+
file_name: z.ZodString;
|
|
124
|
+
processing_status: z.ZodEnum<["waiting", "processing", "complete", "error", "skipped"]>;
|
|
125
|
+
} & {
|
|
126
|
+
properties: z.ZodObject<{
|
|
127
|
+
agency_ids: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
128
|
+
analysis_ended_at_last_stop: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodEnum<["skip", "pass", "fail", "error"]>, "many">>>;
|
|
129
|
+
analysis_expected_apex_validation_interval: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodEnum<["skip", "pass", "fail", "error"]>, "many">>>;
|
|
130
|
+
analysis_simple_three_vehicle_events: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodEnum<["skip", "pass", "fail", "error"]>, "many">>>;
|
|
131
|
+
analysis_transaction_sequentiality: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodEnum<["skip", "pass", "fail", "error"]>, "many">>>;
|
|
132
|
+
date_end: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixTimestamp, string | number>;
|
|
133
|
+
date_start: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixTimestamp, string | number>;
|
|
134
|
+
delay_statuses: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodEnum<["ontime", "delayed", "early"]>, "many">>>;
|
|
135
|
+
operational_statuses: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodEnum<["ended", "missed", "running", "scheduled"]>, "many">>>;
|
|
136
|
+
seen_statuses: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodEnum<["unseen", "seen", "gone"]>, "many">>>;
|
|
137
|
+
line_ids: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
138
|
+
stop_ids: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
139
|
+
acceptance_status: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodEnum<["skip", "pass", "fail", "error"]>, "many">>>;
|
|
140
|
+
search: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
141
|
+
}, "strip", z.ZodTypeAny, {
|
|
142
|
+
date_end: number & {
|
|
143
|
+
__brand: "UnixTimestamp";
|
|
144
|
+
};
|
|
145
|
+
date_start: number & {
|
|
146
|
+
__brand: "UnixTimestamp";
|
|
147
|
+
};
|
|
148
|
+
agency_ids?: string[] | null | undefined;
|
|
149
|
+
acceptance_status?: ("error" | "skip" | "pass" | "fail")[] | null | undefined;
|
|
150
|
+
analysis_ended_at_last_stop?: ("error" | "skip" | "pass" | "fail")[] | null | undefined;
|
|
151
|
+
analysis_expected_apex_validation_interval?: ("error" | "skip" | "pass" | "fail")[] | null | undefined;
|
|
152
|
+
analysis_simple_three_vehicle_events?: ("error" | "skip" | "pass" | "fail")[] | null | undefined;
|
|
153
|
+
analysis_transaction_sequentiality?: ("error" | "skip" | "pass" | "fail")[] | null | undefined;
|
|
154
|
+
delay_statuses?: ("ontime" | "delayed" | "early")[] | null | undefined;
|
|
155
|
+
operational_statuses?: ("ended" | "missed" | "running" | "scheduled")[] | null | undefined;
|
|
156
|
+
seen_statuses?: ("unseen" | "seen" | "gone")[] | null | undefined;
|
|
157
|
+
line_ids?: string[] | null | undefined;
|
|
158
|
+
stop_ids?: string[] | null | undefined;
|
|
159
|
+
search?: string | null | undefined;
|
|
160
|
+
}, {
|
|
161
|
+
date_end: string | number;
|
|
162
|
+
date_start: string | number;
|
|
163
|
+
agency_ids?: string[] | null | undefined;
|
|
164
|
+
acceptance_status?: ("error" | "skip" | "pass" | "fail")[] | null | undefined;
|
|
165
|
+
analysis_ended_at_last_stop?: ("error" | "skip" | "pass" | "fail")[] | null | undefined;
|
|
166
|
+
analysis_expected_apex_validation_interval?: ("error" | "skip" | "pass" | "fail")[] | null | undefined;
|
|
167
|
+
analysis_simple_three_vehicle_events?: ("error" | "skip" | "pass" | "fail")[] | null | undefined;
|
|
168
|
+
analysis_transaction_sequentiality?: ("error" | "skip" | "pass" | "fail")[] | null | undefined;
|
|
169
|
+
delay_statuses?: ("ontime" | "delayed" | "early")[] | null | undefined;
|
|
170
|
+
operational_statuses?: ("ended" | "missed" | "running" | "scheduled")[] | null | undefined;
|
|
171
|
+
seen_statuses?: ("unseen" | "seen" | "gone")[] | null | undefined;
|
|
172
|
+
line_ids?: string[] | null | undefined;
|
|
173
|
+
stop_ids?: string[] | null | undefined;
|
|
174
|
+
search?: string | null | undefined;
|
|
175
|
+
}>;
|
|
176
|
+
type: z.ZodLiteral<"ride">;
|
|
177
|
+
}, "strip", z.ZodTypeAny, {
|
|
178
|
+
type: "ride";
|
|
179
|
+
_id: string;
|
|
180
|
+
created_at: number & {
|
|
181
|
+
__brand: "UnixTimestamp";
|
|
182
|
+
};
|
|
183
|
+
created_by: string | null;
|
|
184
|
+
updated_at: number & {
|
|
185
|
+
__brand: "UnixTimestamp";
|
|
186
|
+
};
|
|
187
|
+
file_name: string;
|
|
188
|
+
processing_status: "waiting" | "processing" | "complete" | "error" | "skipped";
|
|
189
|
+
properties: {
|
|
190
|
+
date_end: number & {
|
|
191
|
+
__brand: "UnixTimestamp";
|
|
192
|
+
};
|
|
193
|
+
date_start: number & {
|
|
194
|
+
__brand: "UnixTimestamp";
|
|
195
|
+
};
|
|
196
|
+
agency_ids?: string[] | null | undefined;
|
|
197
|
+
acceptance_status?: ("error" | "skip" | "pass" | "fail")[] | null | undefined;
|
|
198
|
+
analysis_ended_at_last_stop?: ("error" | "skip" | "pass" | "fail")[] | null | undefined;
|
|
199
|
+
analysis_expected_apex_validation_interval?: ("error" | "skip" | "pass" | "fail")[] | null | undefined;
|
|
200
|
+
analysis_simple_three_vehicle_events?: ("error" | "skip" | "pass" | "fail")[] | null | undefined;
|
|
201
|
+
analysis_transaction_sequentiality?: ("error" | "skip" | "pass" | "fail")[] | null | undefined;
|
|
202
|
+
delay_statuses?: ("ontime" | "delayed" | "early")[] | null | undefined;
|
|
203
|
+
operational_statuses?: ("ended" | "missed" | "running" | "scheduled")[] | null | undefined;
|
|
204
|
+
seen_statuses?: ("unseen" | "seen" | "gone")[] | null | undefined;
|
|
205
|
+
line_ids?: string[] | null | undefined;
|
|
206
|
+
stop_ids?: string[] | null | undefined;
|
|
207
|
+
search?: string | null | undefined;
|
|
208
|
+
};
|
|
209
|
+
updated_by?: string | undefined;
|
|
210
|
+
file_id?: string | null | undefined;
|
|
211
|
+
}, {
|
|
212
|
+
type: "ride";
|
|
213
|
+
_id: string;
|
|
214
|
+
created_at: string | number;
|
|
215
|
+
updated_at: string | number;
|
|
216
|
+
file_name: string;
|
|
217
|
+
processing_status: "waiting" | "processing" | "complete" | "error" | "skipped";
|
|
218
|
+
properties: {
|
|
219
|
+
date_end: string | number;
|
|
220
|
+
date_start: string | number;
|
|
221
|
+
agency_ids?: string[] | null | undefined;
|
|
222
|
+
acceptance_status?: ("error" | "skip" | "pass" | "fail")[] | null | undefined;
|
|
223
|
+
analysis_ended_at_last_stop?: ("error" | "skip" | "pass" | "fail")[] | null | undefined;
|
|
224
|
+
analysis_expected_apex_validation_interval?: ("error" | "skip" | "pass" | "fail")[] | null | undefined;
|
|
225
|
+
analysis_simple_three_vehicle_events?: ("error" | "skip" | "pass" | "fail")[] | null | undefined;
|
|
226
|
+
analysis_transaction_sequentiality?: ("error" | "skip" | "pass" | "fail")[] | null | undefined;
|
|
227
|
+
delay_statuses?: ("ontime" | "delayed" | "early")[] | null | undefined;
|
|
228
|
+
operational_statuses?: ("ended" | "missed" | "running" | "scheduled")[] | null | undefined;
|
|
229
|
+
seen_statuses?: ("unseen" | "seen" | "gone")[] | null | undefined;
|
|
230
|
+
line_ids?: string[] | null | undefined;
|
|
231
|
+
stop_ids?: string[] | null | undefined;
|
|
232
|
+
search?: string | null | undefined;
|
|
233
|
+
};
|
|
234
|
+
created_by?: string | null | undefined;
|
|
235
|
+
updated_by?: string | undefined;
|
|
236
|
+
file_id?: string | null | undefined;
|
|
237
|
+
}>, z.ZodObject<{
|
|
238
|
+
_id: z.ZodString;
|
|
239
|
+
created_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixTimestamp, string | number>;
|
|
240
|
+
created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
241
|
+
updated_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixTimestamp, string | number>;
|
|
242
|
+
updated_by: z.ZodOptional<z.ZodString>;
|
|
243
|
+
file_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
244
|
+
file_name: z.ZodString;
|
|
245
|
+
processing_status: z.ZodEnum<["waiting", "processing", "complete", "error", "skipped"]>;
|
|
246
|
+
} & {
|
|
247
|
+
properties: z.ZodObject<{
|
|
248
|
+
_id: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
|
|
249
|
+
agency_ids: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
250
|
+
apex_versions: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
251
|
+
end_time: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixTimestamp, string | number>>>;
|
|
252
|
+
favorites_only: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
253
|
+
sam_ids: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
|
|
254
|
+
search: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
255
|
+
seen_first_at: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixTimestamp, string | number>>>;
|
|
256
|
+
seen_last_at: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixTimestamp, string | number>>>;
|
|
257
|
+
start_time: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixTimestamp, string | number>>>;
|
|
258
|
+
statuses: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodEnum<["waiting", "incomplete", "complete", "error"]>, "many">>>;
|
|
259
|
+
}, "strip", z.ZodTypeAny, {
|
|
260
|
+
_id?: number[] | null | undefined;
|
|
261
|
+
agency_ids?: string[] | null | undefined;
|
|
262
|
+
seen_first_at?: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null | undefined;
|
|
263
|
+
seen_last_at?: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null | undefined;
|
|
264
|
+
search?: string | null | undefined;
|
|
265
|
+
end_time?: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null | undefined;
|
|
266
|
+
start_time?: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null | undefined;
|
|
267
|
+
apex_versions?: string[] | null | undefined;
|
|
268
|
+
favorites_only?: boolean | null | undefined;
|
|
269
|
+
sam_ids?: number[] | null | undefined;
|
|
270
|
+
statuses?: ("waiting" | "complete" | "error" | "incomplete")[] | null | undefined;
|
|
271
|
+
}, {
|
|
272
|
+
_id?: number[] | null | undefined;
|
|
273
|
+
agency_ids?: string[] | null | undefined;
|
|
274
|
+
seen_first_at?: string | number | null | undefined;
|
|
275
|
+
seen_last_at?: string | number | null | undefined;
|
|
276
|
+
search?: string | null | undefined;
|
|
277
|
+
end_time?: string | number | null | undefined;
|
|
278
|
+
start_time?: string | number | null | undefined;
|
|
279
|
+
apex_versions?: string[] | null | undefined;
|
|
280
|
+
favorites_only?: boolean | null | undefined;
|
|
281
|
+
sam_ids?: number[] | null | undefined;
|
|
282
|
+
statuses?: ("waiting" | "complete" | "error" | "incomplete")[] | null | undefined;
|
|
283
|
+
}>;
|
|
284
|
+
type: z.ZodLiteral<"sams_analysis">;
|
|
285
|
+
}, "strip", z.ZodTypeAny, {
|
|
286
|
+
type: "sams_analysis";
|
|
287
|
+
_id: string;
|
|
288
|
+
created_at: number & {
|
|
289
|
+
__brand: "UnixTimestamp";
|
|
290
|
+
};
|
|
291
|
+
created_by: string | null;
|
|
292
|
+
updated_at: number & {
|
|
293
|
+
__brand: "UnixTimestamp";
|
|
294
|
+
};
|
|
295
|
+
file_name: string;
|
|
296
|
+
processing_status: "waiting" | "processing" | "complete" | "error" | "skipped";
|
|
297
|
+
properties: {
|
|
298
|
+
_id?: number[] | null | undefined;
|
|
299
|
+
agency_ids?: string[] | null | undefined;
|
|
300
|
+
seen_first_at?: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null | undefined;
|
|
301
|
+
seen_last_at?: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null | undefined;
|
|
302
|
+
search?: string | null | undefined;
|
|
303
|
+
end_time?: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null | undefined;
|
|
304
|
+
start_time?: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null | undefined;
|
|
305
|
+
apex_versions?: string[] | null | undefined;
|
|
306
|
+
favorites_only?: boolean | null | undefined;
|
|
307
|
+
sam_ids?: number[] | null | undefined;
|
|
308
|
+
statuses?: ("waiting" | "complete" | "error" | "incomplete")[] | null | undefined;
|
|
309
|
+
};
|
|
310
|
+
updated_by?: string | undefined;
|
|
311
|
+
file_id?: string | null | undefined;
|
|
312
|
+
}, {
|
|
313
|
+
type: "sams_analysis";
|
|
314
|
+
_id: string;
|
|
315
|
+
created_at: string | number;
|
|
316
|
+
updated_at: string | number;
|
|
317
|
+
file_name: string;
|
|
318
|
+
processing_status: "waiting" | "processing" | "complete" | "error" | "skipped";
|
|
319
|
+
properties: {
|
|
320
|
+
_id?: number[] | null | undefined;
|
|
321
|
+
agency_ids?: string[] | null | undefined;
|
|
322
|
+
seen_first_at?: string | number | null | undefined;
|
|
323
|
+
seen_last_at?: string | number | null | undefined;
|
|
324
|
+
search?: string | null | undefined;
|
|
325
|
+
end_time?: string | number | null | undefined;
|
|
326
|
+
start_time?: string | number | null | undefined;
|
|
327
|
+
apex_versions?: string[] | null | undefined;
|
|
328
|
+
favorites_only?: boolean | null | undefined;
|
|
329
|
+
sam_ids?: number[] | null | undefined;
|
|
330
|
+
statuses?: ("waiting" | "complete" | "error" | "incomplete")[] | null | undefined;
|
|
331
|
+
};
|
|
332
|
+
created_by?: string | null | undefined;
|
|
333
|
+
updated_by?: string | undefined;
|
|
334
|
+
file_id?: string | null | undefined;
|
|
335
|
+
}>, z.ZodObject<{
|
|
336
|
+
_id: z.ZodString;
|
|
337
|
+
created_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixTimestamp, string | number>;
|
|
338
|
+
created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
339
|
+
updated_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixTimestamp, string | number>;
|
|
340
|
+
updated_by: z.ZodOptional<z.ZodString>;
|
|
341
|
+
file_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
342
|
+
file_name: z.ZodString;
|
|
343
|
+
processing_status: z.ZodEnum<["waiting", "processing", "complete", "error", "skipped"]>;
|
|
344
|
+
} & {
|
|
345
|
+
properties: z.ZodObject<{
|
|
346
|
+
connections: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodEnum<["ferry", "light_rail", "subway", "train", "boat", "airport", "bike_sharing", "bike_parking", "car_parking"]>, "many">>>;
|
|
347
|
+
equipment: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodEnum<["pip", "mupi", "mini_pip"]>, "many">>>;
|
|
348
|
+
facilities: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodEnum<["fire_station", "health_clinic", "historic_building", "hospital", "police_station", "school", "shopping", "transit_office", "university", "beach"]>, "many">>>;
|
|
349
|
+
flags: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
350
|
+
agency_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
351
|
+
is_harmonized: z.ZodDefault<z.ZodBoolean>;
|
|
352
|
+
short_name: z.ZodString;
|
|
353
|
+
stop_id: z.ZodString;
|
|
354
|
+
}, "strip", z.ZodTypeAny, {
|
|
355
|
+
agency_ids: string[];
|
|
356
|
+
is_harmonized: boolean;
|
|
357
|
+
short_name: string;
|
|
358
|
+
stop_id: string;
|
|
359
|
+
}, {
|
|
360
|
+
short_name: string;
|
|
361
|
+
stop_id: string;
|
|
362
|
+
agency_ids?: string[] | undefined;
|
|
363
|
+
is_harmonized?: boolean | undefined;
|
|
364
|
+
}>, "many">>>;
|
|
365
|
+
jurisdiction: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodEnum<["ip", "municipality", "other", "unknown"]>, "many">>>;
|
|
366
|
+
lifecycle_statuses: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodEnum<["draft", "active", "inactive", "provisional", "seasonal", "voided"]>, "many">>>;
|
|
367
|
+
search: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
368
|
+
stop_ids: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
|
|
369
|
+
}, "strip", z.ZodTypeAny, {
|
|
370
|
+
stop_ids?: number[] | null | undefined;
|
|
371
|
+
search?: string | null | undefined;
|
|
372
|
+
flags?: {
|
|
373
|
+
agency_ids: string[];
|
|
374
|
+
is_harmonized: boolean;
|
|
375
|
+
short_name: string;
|
|
376
|
+
stop_id: string;
|
|
377
|
+
}[] | null | undefined;
|
|
378
|
+
jurisdiction?: ("unknown" | "ip" | "municipality" | "other")[] | null | undefined;
|
|
379
|
+
connections?: ("ferry" | "light_rail" | "subway" | "train" | "boat" | "airport" | "bike_sharing" | "bike_parking" | "car_parking")[] | null | undefined;
|
|
380
|
+
facilities?: ("fire_station" | "health_clinic" | "historic_building" | "hospital" | "police_station" | "school" | "shopping" | "transit_office" | "university" | "beach")[] | null | undefined;
|
|
381
|
+
equipment?: ("pip" | "mupi" | "mini_pip")[] | null | undefined;
|
|
382
|
+
lifecycle_statuses?: ("draft" | "active" | "inactive" | "provisional" | "seasonal" | "voided")[] | null | undefined;
|
|
383
|
+
}, {
|
|
384
|
+
stop_ids?: number[] | null | undefined;
|
|
385
|
+
search?: string | null | undefined;
|
|
386
|
+
flags?: {
|
|
387
|
+
short_name: string;
|
|
388
|
+
stop_id: string;
|
|
389
|
+
agency_ids?: string[] | undefined;
|
|
390
|
+
is_harmonized?: boolean | undefined;
|
|
391
|
+
}[] | null | undefined;
|
|
392
|
+
jurisdiction?: ("unknown" | "ip" | "municipality" | "other")[] | null | undefined;
|
|
393
|
+
connections?: ("ferry" | "light_rail" | "subway" | "train" | "boat" | "airport" | "bike_sharing" | "bike_parking" | "car_parking")[] | null | undefined;
|
|
394
|
+
facilities?: ("fire_station" | "health_clinic" | "historic_building" | "hospital" | "police_station" | "school" | "shopping" | "transit_office" | "university" | "beach")[] | null | undefined;
|
|
395
|
+
equipment?: ("pip" | "mupi" | "mini_pip")[] | null | undefined;
|
|
396
|
+
lifecycle_statuses?: ("draft" | "active" | "inactive" | "provisional" | "seasonal" | "voided")[] | null | undefined;
|
|
397
|
+
}>;
|
|
398
|
+
type: z.ZodLiteral<"stop">;
|
|
399
|
+
}, "strip", z.ZodTypeAny, {
|
|
400
|
+
type: "stop";
|
|
401
|
+
_id: string;
|
|
402
|
+
created_at: number & {
|
|
403
|
+
__brand: "UnixTimestamp";
|
|
404
|
+
};
|
|
405
|
+
created_by: string | null;
|
|
406
|
+
updated_at: number & {
|
|
407
|
+
__brand: "UnixTimestamp";
|
|
408
|
+
};
|
|
409
|
+
file_name: string;
|
|
410
|
+
processing_status: "waiting" | "processing" | "complete" | "error" | "skipped";
|
|
411
|
+
properties: {
|
|
412
|
+
stop_ids?: number[] | null | undefined;
|
|
413
|
+
search?: string | null | undefined;
|
|
414
|
+
flags?: {
|
|
415
|
+
agency_ids: string[];
|
|
416
|
+
is_harmonized: boolean;
|
|
417
|
+
short_name: string;
|
|
418
|
+
stop_id: string;
|
|
419
|
+
}[] | null | undefined;
|
|
420
|
+
jurisdiction?: ("unknown" | "ip" | "municipality" | "other")[] | null | undefined;
|
|
421
|
+
connections?: ("ferry" | "light_rail" | "subway" | "train" | "boat" | "airport" | "bike_sharing" | "bike_parking" | "car_parking")[] | null | undefined;
|
|
422
|
+
facilities?: ("fire_station" | "health_clinic" | "historic_building" | "hospital" | "police_station" | "school" | "shopping" | "transit_office" | "university" | "beach")[] | null | undefined;
|
|
423
|
+
equipment?: ("pip" | "mupi" | "mini_pip")[] | null | undefined;
|
|
424
|
+
lifecycle_statuses?: ("draft" | "active" | "inactive" | "provisional" | "seasonal" | "voided")[] | null | undefined;
|
|
425
|
+
};
|
|
426
|
+
updated_by?: string | undefined;
|
|
427
|
+
file_id?: string | null | undefined;
|
|
428
|
+
}, {
|
|
429
|
+
type: "stop";
|
|
430
|
+
_id: string;
|
|
431
|
+
created_at: string | number;
|
|
432
|
+
updated_at: string | number;
|
|
433
|
+
file_name: string;
|
|
434
|
+
processing_status: "waiting" | "processing" | "complete" | "error" | "skipped";
|
|
435
|
+
properties: {
|
|
436
|
+
stop_ids?: number[] | null | undefined;
|
|
437
|
+
search?: string | null | undefined;
|
|
438
|
+
flags?: {
|
|
439
|
+
short_name: string;
|
|
440
|
+
stop_id: string;
|
|
441
|
+
agency_ids?: string[] | undefined;
|
|
442
|
+
is_harmonized?: boolean | undefined;
|
|
443
|
+
}[] | null | undefined;
|
|
444
|
+
jurisdiction?: ("unknown" | "ip" | "municipality" | "other")[] | null | undefined;
|
|
445
|
+
connections?: ("ferry" | "light_rail" | "subway" | "train" | "boat" | "airport" | "bike_sharing" | "bike_parking" | "car_parking")[] | null | undefined;
|
|
446
|
+
facilities?: ("fire_station" | "health_clinic" | "historic_building" | "hospital" | "police_station" | "school" | "shopping" | "transit_office" | "university" | "beach")[] | null | undefined;
|
|
447
|
+
equipment?: ("pip" | "mupi" | "mini_pip")[] | null | undefined;
|
|
448
|
+
lifecycle_statuses?: ("draft" | "active" | "inactive" | "provisional" | "seasonal" | "voided")[] | null | undefined;
|
|
449
|
+
};
|
|
450
|
+
created_by?: string | null | undefined;
|
|
451
|
+
updated_by?: string | undefined;
|
|
452
|
+
file_id?: string | null | undefined;
|
|
453
|
+
}>, z.ZodObject<{
|
|
454
|
+
_id: z.ZodString;
|
|
455
|
+
created_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixTimestamp, string | number>;
|
|
456
|
+
created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
457
|
+
updated_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixTimestamp, string | number>;
|
|
458
|
+
updated_by: z.ZodOptional<z.ZodString>;
|
|
459
|
+
file_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
460
|
+
file_name: z.ZodString;
|
|
461
|
+
processing_status: z.ZodEnum<["waiting", "processing", "complete", "error", "skipped"]>;
|
|
462
|
+
} & {
|
|
463
|
+
properties: z.ZodObject<{
|
|
464
|
+
agency_ids: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
465
|
+
search: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
466
|
+
vehicle_ids: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
467
|
+
}, "strip", z.ZodTypeAny, {
|
|
468
|
+
agency_ids?: string[] | null | undefined;
|
|
469
|
+
vehicle_ids?: string[] | null | undefined;
|
|
470
|
+
search?: string | null | undefined;
|
|
471
|
+
}, {
|
|
472
|
+
agency_ids?: string[] | null | undefined;
|
|
473
|
+
vehicle_ids?: string[] | null | undefined;
|
|
474
|
+
search?: string | null | undefined;
|
|
475
|
+
}>;
|
|
476
|
+
type: z.ZodLiteral<"vehicle">;
|
|
477
|
+
}, "strip", z.ZodTypeAny, {
|
|
478
|
+
type: "vehicle";
|
|
479
|
+
_id: string;
|
|
480
|
+
created_at: number & {
|
|
481
|
+
__brand: "UnixTimestamp";
|
|
482
|
+
};
|
|
483
|
+
created_by: string | null;
|
|
484
|
+
updated_at: number & {
|
|
485
|
+
__brand: "UnixTimestamp";
|
|
486
|
+
};
|
|
487
|
+
file_name: string;
|
|
488
|
+
processing_status: "waiting" | "processing" | "complete" | "error" | "skipped";
|
|
489
|
+
properties: {
|
|
490
|
+
agency_ids?: string[] | null | undefined;
|
|
491
|
+
vehicle_ids?: string[] | null | undefined;
|
|
492
|
+
search?: string | null | undefined;
|
|
493
|
+
};
|
|
494
|
+
updated_by?: string | undefined;
|
|
495
|
+
file_id?: string | null | undefined;
|
|
496
|
+
}, {
|
|
497
|
+
type: "vehicle";
|
|
498
|
+
_id: string;
|
|
499
|
+
created_at: string | number;
|
|
500
|
+
updated_at: string | number;
|
|
501
|
+
file_name: string;
|
|
502
|
+
processing_status: "waiting" | "processing" | "complete" | "error" | "skipped";
|
|
503
|
+
properties: {
|
|
504
|
+
agency_ids?: string[] | null | undefined;
|
|
505
|
+
vehicle_ids?: string[] | null | undefined;
|
|
506
|
+
search?: string | null | undefined;
|
|
507
|
+
};
|
|
508
|
+
created_by?: string | null | undefined;
|
|
509
|
+
updated_by?: string | undefined;
|
|
510
|
+
file_id?: string | null | undefined;
|
|
511
|
+
}>]>;
|
|
512
|
+
export type FileExport = z.infer<typeof FileExportSchema>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/* * */
|
|
2
|
+
import { GtfsExportSchema } from './gtfs-export.js';
|
|
3
|
+
import { RideExportSchema } from './ride-export.js';
|
|
4
|
+
import { SamsAnalysisExportSchema } from './sams-analysis-export.js';
|
|
5
|
+
import { StopExportSchema } from './stop-export.js';
|
|
6
|
+
import { VehicleExportSchema } from './vehicle-export.js';
|
|
7
|
+
import { z } from 'zod';
|
|
8
|
+
/* * */
|
|
9
|
+
export const FileExportSchema = z.discriminatedUnion('type', [
|
|
10
|
+
GtfsExportSchema,
|
|
11
|
+
RideExportSchema,
|
|
12
|
+
SamsAnalysisExportSchema,
|
|
13
|
+
StopExportSchema,
|
|
14
|
+
VehicleExportSchema,
|
|
15
|
+
]);
|