@tmlmobilidade/types 20260504.1731.48 → 20260505.2251.5
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/alerts/alert.d.ts +18 -0
- package/dist/alerts/alert.js +2 -0
- package/dist/file-exports/ride-export.js +2 -2
- package/dist/gtfs-validation/gtfs-validation-message.d.ts +3 -0
- package/dist/gtfs-validation/gtfs-validation-message.js +1 -0
- package/dist/gtfs-validation/gtfs-validation-summary.d.ts +5 -0
- package/dist/gtfs-validation/gtfs-validation.d.ts +21 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/{rides → operation/hashed-shapes}/hashed-shape.d.ts +1 -1
- package/dist/operation/hashed-shapes/index.d.ts +1 -0
- package/dist/operation/hashed-shapes/index.js +1 -0
- package/dist/operation/hashed-trips/hashed-trip.d.ts +157 -0
- package/dist/operation/hashed-trips/hashed-trip.js +34 -0
- package/dist/operation/hashed-trips/index.d.ts +1 -0
- package/dist/operation/hashed-trips/index.js +1 -0
- package/dist/operation/index.d.ts +5 -0
- package/dist/operation/index.js +5 -0
- package/dist/operation/lines/batch-query.d.ts +19 -0
- package/dist/operation/lines/batch-query.js +9 -0
- package/dist/operation/lines/index.d.ts +2 -0
- package/dist/operation/lines/index.js +2 -0
- package/dist/operation/lines/operational-line.d.ts +217 -0
- package/dist/operation/lines/operational-line.js +18 -0
- package/dist/{rides → operation/rides}/batch-query.d.ts +2 -2
- package/dist/{rides → operation/rides}/batch-query.js +2 -2
- package/dist/{rides → operation/rides}/index.d.ts +0 -2
- package/dist/{rides → operation/rides}/index.js +0 -2
- package/dist/{rides → operation/rides}/ride-acceptance.d.ts +32 -32
- package/dist/{rides → operation/rides}/ride-acceptance.js +3 -3
- package/dist/{rides → operation/rides}/ride-audit.d.ts +10 -10
- package/dist/{rides → operation/rides}/ride-audit.js +2 -2
- package/dist/{rides → operation/rides}/ride-normalized.d.ts +13 -13
- package/dist/{rides → operation/rides}/ride-normalized.js +1 -1
- package/dist/{rides → operation/rides}/ride.d.ts +40 -40
- package/dist/{rides → operation/rides}/ride.js +4 -4
- package/dist/operation/stops/batch-query.d.ts +19 -0
- package/dist/operation/stops/batch-query.js +9 -0
- package/dist/operation/stops/index.d.ts +2 -0
- package/dist/operation/stops/index.js +2 -0
- package/dist/operation/stops/operational-stop.d.ts +211 -0
- package/dist/operation/stops/operational-stop.js +16 -0
- package/package.json +1 -1
- package/dist/rides/hashed-trip.d.ts +0 -32
- package/dist/rides/hashed-trip.js +0 -2
- /package/dist/{rides → operation/hashed-shapes}/hashed-shape.js +0 -0
- /package/dist/{rides → operation/rides}/ride-analysis.d.ts +0 -0
- /package/dist/{rides → operation/rides}/ride-analysis.js +0 -0
- /package/dist/{rides → operation/rides}/ride-overrides.d.ts +0 -0
- /package/dist/{rides → operation/rides}/ride-overrides.js +0 -0
package/dist/alerts/alert.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export declare const AlertSchema: z.ZodObject<{
|
|
|
10
10
|
active_period_end_date: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>>>;
|
|
11
11
|
active_period_start_date: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
12
12
|
agency_id: z.ZodString;
|
|
13
|
+
auto_texts: z.ZodDefault<z.ZodBoolean>;
|
|
13
14
|
cause: z.ZodEnum<["ACCIDENT", "CONSTRUCTION", "DEMONSTRATION", "MEDICAL_EMERGENCY", "POLICE_ACTIVITY", "STRIKE", "TECHNICAL_ISSUE", "WEATHER", "ABUSIVE_PARKING", "DRIVER_ABSENCE", "DRIVER_ISSUE", "HIGH_PASSENGER_LOAD", "NETWORK_UPDATE", "ROAD_ISSUE", "TRAFFIC_JAM", "PUBLIC_DISORDER", "VEHICLE_ISSUE"]>;
|
|
14
15
|
coordinates: z.ZodDefault<z.ZodNullable<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
|
|
15
16
|
description: z.ZodString;
|
|
@@ -33,6 +34,7 @@ export declare const AlertSchema: z.ZodObject<{
|
|
|
33
34
|
parent_id: string;
|
|
34
35
|
}>, "many">>;
|
|
35
36
|
title: z.ZodString;
|
|
37
|
+
user_instructions: z.ZodDefault<z.ZodString>;
|
|
36
38
|
}, "strip", z.ZodTypeAny, {
|
|
37
39
|
_id: string;
|
|
38
40
|
created_at: number & {
|
|
@@ -49,6 +51,7 @@ export declare const AlertSchema: z.ZodObject<{
|
|
|
49
51
|
__brand: "UnixTimestamp";
|
|
50
52
|
};
|
|
51
53
|
agency_id: string;
|
|
54
|
+
auto_texts: boolean;
|
|
52
55
|
cause: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "MEDICAL_EMERGENCY" | "POLICE_ACTIVITY" | "STRIKE" | "TECHNICAL_ISSUE" | "WEATHER" | "ABUSIVE_PARKING" | "DRIVER_ABSENCE" | "DRIVER_ISSUE" | "HIGH_PASSENGER_LOAD" | "NETWORK_UPDATE" | "ROAD_ISSUE" | "TRAFFIC_JAM" | "PUBLIC_DISORDER" | "VEHICLE_ISSUE";
|
|
53
56
|
coordinates: [number, number] | null;
|
|
54
57
|
effect: "ACCESSIBILITY_ISSUE" | "ADDITIONAL_SERVICE" | "DETOUR" | "MODIFIED_SERVICE" | "NO_SERVICE" | "REDUCED_SERVICE" | "SIGNIFICANT_DELAYS" | "STOP_MOVED" | "REALTIME_INFO_ISSUE" | "ON_BOARD_SALE_ISSUE";
|
|
@@ -65,6 +68,7 @@ export declare const AlertSchema: z.ZodObject<{
|
|
|
65
68
|
parent_id: string;
|
|
66
69
|
}[];
|
|
67
70
|
title: string;
|
|
71
|
+
user_instructions: string;
|
|
68
72
|
updated_by?: string | undefined;
|
|
69
73
|
}, {
|
|
70
74
|
_id: string;
|
|
@@ -81,6 +85,7 @@ export declare const AlertSchema: z.ZodObject<{
|
|
|
81
85
|
is_locked?: boolean | undefined;
|
|
82
86
|
updated_by?: string | undefined;
|
|
83
87
|
active_period_end_date?: number | null | undefined;
|
|
88
|
+
auto_texts?: boolean | undefined;
|
|
84
89
|
coordinates?: [number, number] | null | undefined;
|
|
85
90
|
external_id?: string | null | undefined;
|
|
86
91
|
file_id?: string | null | undefined;
|
|
@@ -93,6 +98,7 @@ export declare const AlertSchema: z.ZodObject<{
|
|
|
93
98
|
child_ids: string[];
|
|
94
99
|
parent_id: string;
|
|
95
100
|
}[] | undefined;
|
|
101
|
+
user_instructions?: string | undefined;
|
|
96
102
|
}>;
|
|
97
103
|
export declare const CreateAlertSchema: z.ZodObject<Omit<{
|
|
98
104
|
_id: z.ZodString;
|
|
@@ -105,6 +111,7 @@ export declare const CreateAlertSchema: z.ZodObject<Omit<{
|
|
|
105
111
|
active_period_end_date: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>>>;
|
|
106
112
|
active_period_start_date: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
107
113
|
agency_id: z.ZodString;
|
|
114
|
+
auto_texts: z.ZodDefault<z.ZodBoolean>;
|
|
108
115
|
cause: z.ZodEnum<["ACCIDENT", "CONSTRUCTION", "DEMONSTRATION", "MEDICAL_EMERGENCY", "POLICE_ACTIVITY", "STRIKE", "TECHNICAL_ISSUE", "WEATHER", "ABUSIVE_PARKING", "DRIVER_ABSENCE", "DRIVER_ISSUE", "HIGH_PASSENGER_LOAD", "NETWORK_UPDATE", "ROAD_ISSUE", "TRAFFIC_JAM", "PUBLIC_DISORDER", "VEHICLE_ISSUE"]>;
|
|
109
116
|
coordinates: z.ZodDefault<z.ZodNullable<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
|
|
110
117
|
description: z.ZodString;
|
|
@@ -128,6 +135,7 @@ export declare const CreateAlertSchema: z.ZodObject<Omit<{
|
|
|
128
135
|
parent_id: string;
|
|
129
136
|
}>, "many">>;
|
|
130
137
|
title: z.ZodString;
|
|
138
|
+
user_instructions: z.ZodDefault<z.ZodString>;
|
|
131
139
|
}, "_id" | "created_at" | "created_by" | "updated_at" | "updated_by">, "strip", z.ZodTypeAny, {
|
|
132
140
|
is_locked: boolean;
|
|
133
141
|
description: string;
|
|
@@ -136,6 +144,7 @@ export declare const CreateAlertSchema: z.ZodObject<Omit<{
|
|
|
136
144
|
__brand: "UnixTimestamp";
|
|
137
145
|
};
|
|
138
146
|
agency_id: string;
|
|
147
|
+
auto_texts: boolean;
|
|
139
148
|
cause: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "MEDICAL_EMERGENCY" | "POLICE_ACTIVITY" | "STRIKE" | "TECHNICAL_ISSUE" | "WEATHER" | "ABUSIVE_PARKING" | "DRIVER_ABSENCE" | "DRIVER_ISSUE" | "HIGH_PASSENGER_LOAD" | "NETWORK_UPDATE" | "ROAD_ISSUE" | "TRAFFIC_JAM" | "PUBLIC_DISORDER" | "VEHICLE_ISSUE";
|
|
140
149
|
coordinates: [number, number] | null;
|
|
141
150
|
effect: "ACCESSIBILITY_ISSUE" | "ADDITIONAL_SERVICE" | "DETOUR" | "MODIFIED_SERVICE" | "NO_SERVICE" | "REDUCED_SERVICE" | "SIGNIFICANT_DELAYS" | "STOP_MOVED" | "REALTIME_INFO_ISSUE" | "ON_BOARD_SALE_ISSUE";
|
|
@@ -152,6 +161,7 @@ export declare const CreateAlertSchema: z.ZodObject<Omit<{
|
|
|
152
161
|
parent_id: string;
|
|
153
162
|
}[];
|
|
154
163
|
title: string;
|
|
164
|
+
user_instructions: string;
|
|
155
165
|
}, {
|
|
156
166
|
description: string;
|
|
157
167
|
active_period_start_date: number;
|
|
@@ -162,6 +172,7 @@ export declare const CreateAlertSchema: z.ZodObject<Omit<{
|
|
|
162
172
|
title: string;
|
|
163
173
|
is_locked?: boolean | undefined;
|
|
164
174
|
active_period_end_date?: number | null | undefined;
|
|
175
|
+
auto_texts?: boolean | undefined;
|
|
165
176
|
coordinates?: [number, number] | null | undefined;
|
|
166
177
|
external_id?: string | null | undefined;
|
|
167
178
|
file_id?: string | null | undefined;
|
|
@@ -174,6 +185,7 @@ export declare const CreateAlertSchema: z.ZodObject<Omit<{
|
|
|
174
185
|
child_ids: string[];
|
|
175
186
|
parent_id: string;
|
|
176
187
|
}[] | undefined;
|
|
188
|
+
user_instructions?: string | undefined;
|
|
177
189
|
}>;
|
|
178
190
|
export declare const UpdateAlertSchema: z.ZodObject<{
|
|
179
191
|
is_locked: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
@@ -181,6 +193,7 @@ export declare const UpdateAlertSchema: z.ZodObject<{
|
|
|
181
193
|
active_period_end_date: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>>>>;
|
|
182
194
|
active_period_start_date: z.ZodOptional<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>>;
|
|
183
195
|
agency_id: z.ZodOptional<z.ZodString>;
|
|
196
|
+
auto_texts: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
184
197
|
cause: z.ZodOptional<z.ZodEnum<["ACCIDENT", "CONSTRUCTION", "DEMONSTRATION", "MEDICAL_EMERGENCY", "POLICE_ACTIVITY", "STRIKE", "TECHNICAL_ISSUE", "WEATHER", "ABUSIVE_PARKING", "DRIVER_ABSENCE", "DRIVER_ISSUE", "HIGH_PASSENGER_LOAD", "NETWORK_UPDATE", "ROAD_ISSUE", "TRAFFIC_JAM", "PUBLIC_DISORDER", "VEHICLE_ISSUE"]>>;
|
|
185
198
|
coordinates: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>>;
|
|
186
199
|
effect: z.ZodOptional<z.ZodEnum<["ACCESSIBILITY_ISSUE", "ADDITIONAL_SERVICE", "DETOUR", "MODIFIED_SERVICE", "NO_SERVICE", "REDUCED_SERVICE", "SIGNIFICANT_DELAYS", "STOP_MOVED", "REALTIME_INFO_ISSUE", "ON_BOARD_SALE_ISSUE"]>>;
|
|
@@ -203,12 +216,14 @@ export declare const UpdateAlertSchema: z.ZodObject<{
|
|
|
203
216
|
parent_id: string;
|
|
204
217
|
}>, "many">>>;
|
|
205
218
|
title: z.ZodOptional<z.ZodString>;
|
|
219
|
+
user_instructions: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
206
220
|
}, "strip", z.ZodTypeAny, {
|
|
207
221
|
is_locked?: boolean | undefined;
|
|
208
222
|
description?: string | undefined;
|
|
209
223
|
active_period_end_date?: import("../_common/unix-timestamp.js").UnixTimestamp | null | undefined;
|
|
210
224
|
active_period_start_date?: import("../_common/unix-timestamp.js").UnixTimestamp | undefined;
|
|
211
225
|
agency_id?: string | undefined;
|
|
226
|
+
auto_texts?: boolean | undefined;
|
|
212
227
|
cause?: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "MEDICAL_EMERGENCY" | "POLICE_ACTIVITY" | "STRIKE" | "TECHNICAL_ISSUE" | "WEATHER" | "ABUSIVE_PARKING" | "DRIVER_ABSENCE" | "DRIVER_ISSUE" | "HIGH_PASSENGER_LOAD" | "NETWORK_UPDATE" | "ROAD_ISSUE" | "TRAFFIC_JAM" | "PUBLIC_DISORDER" | "VEHICLE_ISSUE" | undefined;
|
|
213
228
|
coordinates?: [number, number] | null | undefined;
|
|
214
229
|
effect?: "ACCESSIBILITY_ISSUE" | "ADDITIONAL_SERVICE" | "DETOUR" | "MODIFIED_SERVICE" | "NO_SERVICE" | "REDUCED_SERVICE" | "SIGNIFICANT_DELAYS" | "STOP_MOVED" | "REALTIME_INFO_ISSUE" | "ON_BOARD_SALE_ISSUE" | undefined;
|
|
@@ -225,12 +240,14 @@ export declare const UpdateAlertSchema: z.ZodObject<{
|
|
|
225
240
|
parent_id: string;
|
|
226
241
|
}[] | undefined;
|
|
227
242
|
title?: string | undefined;
|
|
243
|
+
user_instructions?: string | undefined;
|
|
228
244
|
}, {
|
|
229
245
|
is_locked?: boolean | undefined;
|
|
230
246
|
description?: string | undefined;
|
|
231
247
|
active_period_end_date?: number | null | undefined;
|
|
232
248
|
active_period_start_date?: number | undefined;
|
|
233
249
|
agency_id?: string | undefined;
|
|
250
|
+
auto_texts?: boolean | undefined;
|
|
234
251
|
cause?: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "MEDICAL_EMERGENCY" | "POLICE_ACTIVITY" | "STRIKE" | "TECHNICAL_ISSUE" | "WEATHER" | "ABUSIVE_PARKING" | "DRIVER_ABSENCE" | "DRIVER_ISSUE" | "HIGH_PASSENGER_LOAD" | "NETWORK_UPDATE" | "ROAD_ISSUE" | "TRAFFIC_JAM" | "PUBLIC_DISORDER" | "VEHICLE_ISSUE" | undefined;
|
|
235
252
|
coordinates?: [number, number] | null | undefined;
|
|
236
253
|
effect?: "ACCESSIBILITY_ISSUE" | "ADDITIONAL_SERVICE" | "DETOUR" | "MODIFIED_SERVICE" | "NO_SERVICE" | "REDUCED_SERVICE" | "SIGNIFICANT_DELAYS" | "STOP_MOVED" | "REALTIME_INFO_ISSUE" | "ON_BOARD_SALE_ISSUE" | undefined;
|
|
@@ -247,6 +264,7 @@ export declare const UpdateAlertSchema: z.ZodObject<{
|
|
|
247
264
|
parent_id: string;
|
|
248
265
|
}[] | undefined;
|
|
249
266
|
title?: string | undefined;
|
|
267
|
+
user_instructions?: string | undefined;
|
|
250
268
|
}>;
|
|
251
269
|
export type Alert = z.infer<typeof AlertSchema>;
|
|
252
270
|
export type CreateAlertDto = z.infer<typeof CreateAlertSchema>;
|
package/dist/alerts/alert.js
CHANGED
|
@@ -11,6 +11,7 @@ export const AlertSchema = DocumentSchema.extend({
|
|
|
11
11
|
active_period_end_date: UnixTimestampSchema.nullable().default(null),
|
|
12
12
|
active_period_start_date: UnixTimestampSchema,
|
|
13
13
|
agency_id: z.string(),
|
|
14
|
+
auto_texts: z.boolean().default(true),
|
|
14
15
|
cause: AlertCauseSchema,
|
|
15
16
|
coordinates: z.tuple([z.number(), z.number()]).nullable().default(null),
|
|
16
17
|
description: z.string(),
|
|
@@ -28,6 +29,7 @@ export const AlertSchema = DocumentSchema.extend({
|
|
|
28
29
|
parent_id: z.string(),
|
|
29
30
|
})).default([]),
|
|
30
31
|
title: z.string(),
|
|
32
|
+
user_instructions: z.string().default(''),
|
|
31
33
|
});
|
|
32
34
|
export const CreateAlertSchema = AlertSchema.omit({ _id: true, created_at: true, created_by: true, updated_at: true, updated_by: true });
|
|
33
35
|
export const UpdateAlertSchema = CreateAlertSchema.partial();
|
|
@@ -3,8 +3,8 @@ import { DelayStatusSchema, OperationalStatusSchema, SeenStatusSchema } from '..
|
|
|
3
3
|
import { UnixTimestampSchema } from '../_common/unix-timestamp.js';
|
|
4
4
|
import { AlertCauseSchema } from '../alerts/cause.js';
|
|
5
5
|
import { FileExportBaseSchema } from './base.js';
|
|
6
|
-
import { RideAcceptanceStatusSchema, RideJustificationSourceSchema } from '../rides/ride-acceptance.js';
|
|
7
|
-
import { RideAnalysisGradeWithNoneSchema } from '../rides/ride-analysis.js';
|
|
6
|
+
import { RideAcceptanceStatusSchema, RideJustificationSourceSchema } from '../operation/rides/ride-acceptance.js';
|
|
7
|
+
import { RideAnalysisGradeWithNoneSchema } from '../operation/rides/ride-analysis.js';
|
|
8
8
|
import { z } from 'zod';
|
|
9
9
|
/* * */
|
|
10
10
|
/* DATA SCHEMA */
|
|
@@ -4,6 +4,7 @@ export declare const GtfsValidationMessageSchema: z.ZodObject<{
|
|
|
4
4
|
file_name: z.ZodString;
|
|
5
5
|
message: z.ZodString;
|
|
6
6
|
rows: z.ZodArray<z.ZodNumber, "many">;
|
|
7
|
+
rule_id: z.ZodOptional<z.ZodString>;
|
|
7
8
|
severity: z.ZodEnum<["error", "warning", "ignore", "forbidden"]>;
|
|
8
9
|
validation_id: z.ZodString;
|
|
9
10
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -13,6 +14,7 @@ export declare const GtfsValidationMessageSchema: z.ZodObject<{
|
|
|
13
14
|
file_name: string;
|
|
14
15
|
rows: number[];
|
|
15
16
|
severity: "error" | "warning" | "ignore" | "forbidden";
|
|
17
|
+
rule_id?: string | undefined;
|
|
16
18
|
}, {
|
|
17
19
|
message: string;
|
|
18
20
|
field: string;
|
|
@@ -20,5 +22,6 @@ export declare const GtfsValidationMessageSchema: z.ZodObject<{
|
|
|
20
22
|
file_name: string;
|
|
21
23
|
rows: number[];
|
|
22
24
|
severity: "error" | "warning" | "ignore" | "forbidden";
|
|
25
|
+
rule_id?: string | undefined;
|
|
23
26
|
}>;
|
|
24
27
|
export type GtfsValidationMessage = z.infer<typeof GtfsValidationMessageSchema>;
|
|
@@ -5,6 +5,7 @@ export declare const GtfsValidationSummarySchema: z.ZodObject<{
|
|
|
5
5
|
file_name: z.ZodString;
|
|
6
6
|
message: z.ZodString;
|
|
7
7
|
rows: z.ZodArray<z.ZodNumber, "many">;
|
|
8
|
+
rule_id: z.ZodOptional<z.ZodString>;
|
|
8
9
|
severity: z.ZodEnum<["error", "warning", "ignore", "forbidden"]>;
|
|
9
10
|
validation_id: z.ZodString;
|
|
10
11
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -14,6 +15,7 @@ export declare const GtfsValidationSummarySchema: z.ZodObject<{
|
|
|
14
15
|
file_name: string;
|
|
15
16
|
rows: number[];
|
|
16
17
|
severity: "error" | "warning" | "ignore" | "forbidden";
|
|
18
|
+
rule_id?: string | undefined;
|
|
17
19
|
}, {
|
|
18
20
|
message: string;
|
|
19
21
|
field: string;
|
|
@@ -21,6 +23,7 @@ export declare const GtfsValidationSummarySchema: z.ZodObject<{
|
|
|
21
23
|
file_name: string;
|
|
22
24
|
rows: number[];
|
|
23
25
|
severity: "error" | "warning" | "ignore" | "forbidden";
|
|
26
|
+
rule_id?: string | undefined;
|
|
24
27
|
}>, "many">;
|
|
25
28
|
total_errors: z.ZodNumber;
|
|
26
29
|
total_warnings: z.ZodNumber;
|
|
@@ -32,6 +35,7 @@ export declare const GtfsValidationSummarySchema: z.ZodObject<{
|
|
|
32
35
|
file_name: string;
|
|
33
36
|
rows: number[];
|
|
34
37
|
severity: "error" | "warning" | "ignore" | "forbidden";
|
|
38
|
+
rule_id?: string | undefined;
|
|
35
39
|
}[];
|
|
36
40
|
total_errors: number;
|
|
37
41
|
total_warnings: number;
|
|
@@ -43,6 +47,7 @@ export declare const GtfsValidationSummarySchema: z.ZodObject<{
|
|
|
43
47
|
file_name: string;
|
|
44
48
|
rows: number[];
|
|
45
49
|
severity: "error" | "warning" | "ignore" | "forbidden";
|
|
50
|
+
rule_id?: string | undefined;
|
|
46
51
|
}[];
|
|
47
52
|
total_errors: number;
|
|
48
53
|
total_warnings: number;
|
|
@@ -75,6 +75,7 @@ export declare const GtfsValidationSchema: z.ZodObject<{
|
|
|
75
75
|
file_name: z.ZodString;
|
|
76
76
|
message: z.ZodString;
|
|
77
77
|
rows: z.ZodArray<z.ZodNumber, "many">;
|
|
78
|
+
rule_id: z.ZodOptional<z.ZodString>;
|
|
78
79
|
severity: z.ZodEnum<["error", "warning", "ignore", "forbidden"]>;
|
|
79
80
|
validation_id: z.ZodString;
|
|
80
81
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -84,6 +85,7 @@ export declare const GtfsValidationSchema: z.ZodObject<{
|
|
|
84
85
|
file_name: string;
|
|
85
86
|
rows: number[];
|
|
86
87
|
severity: "error" | "warning" | "ignore" | "forbidden";
|
|
88
|
+
rule_id?: string | undefined;
|
|
87
89
|
}, {
|
|
88
90
|
message: string;
|
|
89
91
|
field: string;
|
|
@@ -91,6 +93,7 @@ export declare const GtfsValidationSchema: z.ZodObject<{
|
|
|
91
93
|
file_name: string;
|
|
92
94
|
rows: number[];
|
|
93
95
|
severity: "error" | "warning" | "ignore" | "forbidden";
|
|
96
|
+
rule_id?: string | undefined;
|
|
94
97
|
}>, "many">;
|
|
95
98
|
total_errors: z.ZodNumber;
|
|
96
99
|
total_warnings: z.ZodNumber;
|
|
@@ -102,6 +105,7 @@ export declare const GtfsValidationSchema: z.ZodObject<{
|
|
|
102
105
|
file_name: string;
|
|
103
106
|
rows: number[];
|
|
104
107
|
severity: "error" | "warning" | "ignore" | "forbidden";
|
|
108
|
+
rule_id?: string | undefined;
|
|
105
109
|
}[];
|
|
106
110
|
total_errors: number;
|
|
107
111
|
total_warnings: number;
|
|
@@ -113,6 +117,7 @@ export declare const GtfsValidationSchema: z.ZodObject<{
|
|
|
113
117
|
file_name: string;
|
|
114
118
|
rows: number[];
|
|
115
119
|
severity: "error" | "warning" | "ignore" | "forbidden";
|
|
120
|
+
rule_id?: string | undefined;
|
|
116
121
|
}[];
|
|
117
122
|
total_errors: number;
|
|
118
123
|
total_warnings: number;
|
|
@@ -164,6 +169,7 @@ export declare const GtfsValidationSchema: z.ZodObject<{
|
|
|
164
169
|
file_name: string;
|
|
165
170
|
rows: number[];
|
|
166
171
|
severity: "error" | "warning" | "ignore" | "forbidden";
|
|
172
|
+
rule_id?: string | undefined;
|
|
167
173
|
}[];
|
|
168
174
|
total_errors: number;
|
|
169
175
|
total_warnings: number;
|
|
@@ -207,6 +213,7 @@ export declare const GtfsValidationSchema: z.ZodObject<{
|
|
|
207
213
|
file_name: string;
|
|
208
214
|
rows: number[];
|
|
209
215
|
severity: "error" | "warning" | "ignore" | "forbidden";
|
|
216
|
+
rule_id?: string | undefined;
|
|
210
217
|
}[];
|
|
211
218
|
total_errors: number;
|
|
212
219
|
total_warnings: number;
|
|
@@ -290,6 +297,7 @@ export declare const CreateGtfsValidationSchema: z.ZodObject<Omit<{
|
|
|
290
297
|
file_name: z.ZodString;
|
|
291
298
|
message: z.ZodString;
|
|
292
299
|
rows: z.ZodArray<z.ZodNumber, "many">;
|
|
300
|
+
rule_id: z.ZodOptional<z.ZodString>;
|
|
293
301
|
severity: z.ZodEnum<["error", "warning", "ignore", "forbidden"]>;
|
|
294
302
|
validation_id: z.ZodString;
|
|
295
303
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -299,6 +307,7 @@ export declare const CreateGtfsValidationSchema: z.ZodObject<Omit<{
|
|
|
299
307
|
file_name: string;
|
|
300
308
|
rows: number[];
|
|
301
309
|
severity: "error" | "warning" | "ignore" | "forbidden";
|
|
310
|
+
rule_id?: string | undefined;
|
|
302
311
|
}, {
|
|
303
312
|
message: string;
|
|
304
313
|
field: string;
|
|
@@ -306,6 +315,7 @@ export declare const CreateGtfsValidationSchema: z.ZodObject<Omit<{
|
|
|
306
315
|
file_name: string;
|
|
307
316
|
rows: number[];
|
|
308
317
|
severity: "error" | "warning" | "ignore" | "forbidden";
|
|
318
|
+
rule_id?: string | undefined;
|
|
309
319
|
}>, "many">;
|
|
310
320
|
total_errors: z.ZodNumber;
|
|
311
321
|
total_warnings: z.ZodNumber;
|
|
@@ -317,6 +327,7 @@ export declare const CreateGtfsValidationSchema: z.ZodObject<Omit<{
|
|
|
317
327
|
file_name: string;
|
|
318
328
|
rows: number[];
|
|
319
329
|
severity: "error" | "warning" | "ignore" | "forbidden";
|
|
330
|
+
rule_id?: string | undefined;
|
|
320
331
|
}[];
|
|
321
332
|
total_errors: number;
|
|
322
333
|
total_warnings: number;
|
|
@@ -328,6 +339,7 @@ export declare const CreateGtfsValidationSchema: z.ZodObject<Omit<{
|
|
|
328
339
|
file_name: string;
|
|
329
340
|
rows: number[];
|
|
330
341
|
severity: "error" | "warning" | "ignore" | "forbidden";
|
|
342
|
+
rule_id?: string | undefined;
|
|
331
343
|
}[];
|
|
332
344
|
total_errors: number;
|
|
333
345
|
total_warnings: number;
|
|
@@ -372,6 +384,7 @@ export declare const CreateGtfsValidationSchema: z.ZodObject<Omit<{
|
|
|
372
384
|
file_name: string;
|
|
373
385
|
rows: number[];
|
|
374
386
|
severity: "error" | "warning" | "ignore" | "forbidden";
|
|
387
|
+
rule_id?: string | undefined;
|
|
375
388
|
}[];
|
|
376
389
|
total_errors: number;
|
|
377
390
|
total_warnings: number;
|
|
@@ -412,6 +425,7 @@ export declare const CreateGtfsValidationSchema: z.ZodObject<Omit<{
|
|
|
412
425
|
file_name: string;
|
|
413
426
|
rows: number[];
|
|
414
427
|
severity: "error" | "warning" | "ignore" | "forbidden";
|
|
428
|
+
rule_id?: string | undefined;
|
|
415
429
|
}[];
|
|
416
430
|
total_errors: number;
|
|
417
431
|
total_warnings: number;
|
|
@@ -490,6 +504,7 @@ export declare const UpdateGtfsValidationSchema: z.ZodObject<{
|
|
|
490
504
|
file_name: z.ZodString;
|
|
491
505
|
message: z.ZodString;
|
|
492
506
|
rows: z.ZodArray<z.ZodNumber, "many">;
|
|
507
|
+
rule_id: z.ZodOptional<z.ZodString>;
|
|
493
508
|
severity: z.ZodEnum<["error", "warning", "ignore", "forbidden"]>;
|
|
494
509
|
validation_id: z.ZodString;
|
|
495
510
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -499,6 +514,7 @@ export declare const UpdateGtfsValidationSchema: z.ZodObject<{
|
|
|
499
514
|
file_name: string;
|
|
500
515
|
rows: number[];
|
|
501
516
|
severity: "error" | "warning" | "ignore" | "forbidden";
|
|
517
|
+
rule_id?: string | undefined;
|
|
502
518
|
}, {
|
|
503
519
|
message: string;
|
|
504
520
|
field: string;
|
|
@@ -506,6 +522,7 @@ export declare const UpdateGtfsValidationSchema: z.ZodObject<{
|
|
|
506
522
|
file_name: string;
|
|
507
523
|
rows: number[];
|
|
508
524
|
severity: "error" | "warning" | "ignore" | "forbidden";
|
|
525
|
+
rule_id?: string | undefined;
|
|
509
526
|
}>, "many">;
|
|
510
527
|
total_errors: z.ZodNumber;
|
|
511
528
|
total_warnings: z.ZodNumber;
|
|
@@ -517,6 +534,7 @@ export declare const UpdateGtfsValidationSchema: z.ZodObject<{
|
|
|
517
534
|
file_name: string;
|
|
518
535
|
rows: number[];
|
|
519
536
|
severity: "error" | "warning" | "ignore" | "forbidden";
|
|
537
|
+
rule_id?: string | undefined;
|
|
520
538
|
}[];
|
|
521
539
|
total_errors: number;
|
|
522
540
|
total_warnings: number;
|
|
@@ -528,6 +546,7 @@ export declare const UpdateGtfsValidationSchema: z.ZodObject<{
|
|
|
528
546
|
file_name: string;
|
|
529
547
|
rows: number[];
|
|
530
548
|
severity: "error" | "warning" | "ignore" | "forbidden";
|
|
549
|
+
rule_id?: string | undefined;
|
|
531
550
|
}[];
|
|
532
551
|
total_errors: number;
|
|
533
552
|
total_warnings: number;
|
|
@@ -569,6 +588,7 @@ export declare const UpdateGtfsValidationSchema: z.ZodObject<{
|
|
|
569
588
|
file_name: string;
|
|
570
589
|
rows: number[];
|
|
571
590
|
severity: "error" | "warning" | "ignore" | "forbidden";
|
|
591
|
+
rule_id?: string | undefined;
|
|
572
592
|
}[];
|
|
573
593
|
total_errors: number;
|
|
574
594
|
total_warnings: number;
|
|
@@ -610,6 +630,7 @@ export declare const UpdateGtfsValidationSchema: z.ZodObject<{
|
|
|
610
630
|
file_name: string;
|
|
611
631
|
rows: number[];
|
|
612
632
|
severity: "error" | "warning" | "ignore" | "forbidden";
|
|
633
|
+
rule_id?: string | undefined;
|
|
613
634
|
}[];
|
|
614
635
|
total_errors: number;
|
|
615
636
|
total_warnings: number;
|
package/dist/index.d.ts
CHANGED
|
@@ -16,12 +16,12 @@ export * from './locations/index.js';
|
|
|
16
16
|
export * from './metrics/index.js';
|
|
17
17
|
export * from './notification.js';
|
|
18
18
|
export * from './offer/index.js';
|
|
19
|
+
export * from './operation/index.js';
|
|
19
20
|
export * from './organization.js';
|
|
20
21
|
export * from './pcgi/index.js';
|
|
21
22
|
export * from './permissions/index.js';
|
|
22
23
|
export * from './plans/index.js';
|
|
23
24
|
export * from './proposed-change.js';
|
|
24
|
-
export * from './rides/index.js';
|
|
25
25
|
export * from './sams/index.js';
|
|
26
26
|
export * from './stops/index.js';
|
|
27
27
|
export * from './vehicle-events/index.js';
|
package/dist/index.js
CHANGED
|
@@ -19,12 +19,12 @@ export * from './locations/index.js';
|
|
|
19
19
|
export * from './metrics/index.js';
|
|
20
20
|
export * from './notification.js';
|
|
21
21
|
export * from './offer/index.js';
|
|
22
|
+
export * from './operation/index.js';
|
|
22
23
|
export * from './organization.js';
|
|
23
24
|
export * from './pcgi/index.js';
|
|
24
25
|
export * from './permissions/index.js';
|
|
25
26
|
export * from './plans/index.js';
|
|
26
27
|
export * from './proposed-change.js';
|
|
27
|
-
export * from './rides/index.js';
|
|
28
28
|
export * from './sams/index.js';
|
|
29
29
|
export * from './stops/index.js';
|
|
30
30
|
export * from './vehicle-events/index.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './hashed-shape.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './hashed-shape.js';
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const HashedTripWaypointSchema: z.ZodObject<{
|
|
3
|
+
arrival_time: z.ZodString;
|
|
4
|
+
departure_time: z.ZodString;
|
|
5
|
+
drop_off_type: z.ZodEnum<["0", "1", "2", "3"]>;
|
|
6
|
+
pickup_type: z.ZodEnum<["0", "1", "2", "3"]>;
|
|
7
|
+
shape_dist_traveled: z.ZodNumber;
|
|
8
|
+
stop_id: z.ZodString;
|
|
9
|
+
stop_lat: z.ZodNumber;
|
|
10
|
+
stop_lon: z.ZodNumber;
|
|
11
|
+
stop_name: z.ZodString;
|
|
12
|
+
stop_sequence: z.ZodNumber;
|
|
13
|
+
timepoint: z.ZodNumber;
|
|
14
|
+
}, "strip", z.ZodTypeAny, {
|
|
15
|
+
stop_id: string;
|
|
16
|
+
arrival_time: string;
|
|
17
|
+
departure_time: string;
|
|
18
|
+
drop_off_type: "0" | "1" | "2" | "3";
|
|
19
|
+
pickup_type: "0" | "1" | "2" | "3";
|
|
20
|
+
shape_dist_traveled: number;
|
|
21
|
+
stop_sequence: number;
|
|
22
|
+
timepoint: number;
|
|
23
|
+
stop_lat: number;
|
|
24
|
+
stop_lon: number;
|
|
25
|
+
stop_name: string;
|
|
26
|
+
}, {
|
|
27
|
+
stop_id: string;
|
|
28
|
+
arrival_time: string;
|
|
29
|
+
departure_time: string;
|
|
30
|
+
drop_off_type: "0" | "1" | "2" | "3";
|
|
31
|
+
pickup_type: "0" | "1" | "2" | "3";
|
|
32
|
+
shape_dist_traveled: number;
|
|
33
|
+
stop_sequence: number;
|
|
34
|
+
timepoint: number;
|
|
35
|
+
stop_lat: number;
|
|
36
|
+
stop_lon: number;
|
|
37
|
+
stop_name: string;
|
|
38
|
+
}>;
|
|
39
|
+
export type HashedTripWaypoint = z.infer<typeof HashedTripWaypointSchema>;
|
|
40
|
+
export declare const HashedTripSchema: z.ZodObject<Omit<{
|
|
41
|
+
_id: z.ZodString;
|
|
42
|
+
created_at: z.ZodEffects<z.ZodNumber, import("../../index.js").UnixTimestamp, number>;
|
|
43
|
+
created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
44
|
+
is_locked: z.ZodDefault<z.ZodBoolean>;
|
|
45
|
+
updated_at: z.ZodEffects<z.ZodNumber, import("../../index.js").UnixTimestamp, number>;
|
|
46
|
+
updated_by: z.ZodOptional<z.ZodString>;
|
|
47
|
+
}, "created_by" | "is_locked" | "updated_by"> & {
|
|
48
|
+
agency_id: z.ZodString;
|
|
49
|
+
line_id: z.ZodNumber;
|
|
50
|
+
line_long_name: z.ZodString;
|
|
51
|
+
line_short_name: z.ZodString;
|
|
52
|
+
path: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
53
|
+
arrival_time: z.ZodString;
|
|
54
|
+
departure_time: z.ZodString;
|
|
55
|
+
drop_off_type: z.ZodEnum<["0", "1", "2", "3"]>;
|
|
56
|
+
pickup_type: z.ZodEnum<["0", "1", "2", "3"]>;
|
|
57
|
+
shape_dist_traveled: z.ZodNumber;
|
|
58
|
+
stop_id: z.ZodString;
|
|
59
|
+
stop_lat: z.ZodNumber;
|
|
60
|
+
stop_lon: z.ZodNumber;
|
|
61
|
+
stop_name: z.ZodString;
|
|
62
|
+
stop_sequence: z.ZodNumber;
|
|
63
|
+
timepoint: z.ZodNumber;
|
|
64
|
+
}, "strip", z.ZodTypeAny, {
|
|
65
|
+
stop_id: string;
|
|
66
|
+
arrival_time: string;
|
|
67
|
+
departure_time: string;
|
|
68
|
+
drop_off_type: "0" | "1" | "2" | "3";
|
|
69
|
+
pickup_type: "0" | "1" | "2" | "3";
|
|
70
|
+
shape_dist_traveled: number;
|
|
71
|
+
stop_sequence: number;
|
|
72
|
+
timepoint: number;
|
|
73
|
+
stop_lat: number;
|
|
74
|
+
stop_lon: number;
|
|
75
|
+
stop_name: string;
|
|
76
|
+
}, {
|
|
77
|
+
stop_id: string;
|
|
78
|
+
arrival_time: string;
|
|
79
|
+
departure_time: string;
|
|
80
|
+
drop_off_type: "0" | "1" | "2" | "3";
|
|
81
|
+
pickup_type: "0" | "1" | "2" | "3";
|
|
82
|
+
shape_dist_traveled: number;
|
|
83
|
+
stop_sequence: number;
|
|
84
|
+
timepoint: number;
|
|
85
|
+
stop_lat: number;
|
|
86
|
+
stop_lon: number;
|
|
87
|
+
stop_name: string;
|
|
88
|
+
}>, "many">>;
|
|
89
|
+
pattern_id: z.ZodString;
|
|
90
|
+
route_color: z.ZodString;
|
|
91
|
+
route_id: z.ZodString;
|
|
92
|
+
route_long_name: z.ZodString;
|
|
93
|
+
route_short_name: z.ZodString;
|
|
94
|
+
route_text_color: z.ZodString;
|
|
95
|
+
trip_headsign: z.ZodString;
|
|
96
|
+
}, "strip", z.ZodTypeAny, {
|
|
97
|
+
_id: string;
|
|
98
|
+
created_at: number & {
|
|
99
|
+
__brand: "UnixTimestamp";
|
|
100
|
+
};
|
|
101
|
+
updated_at: number & {
|
|
102
|
+
__brand: "UnixTimestamp";
|
|
103
|
+
};
|
|
104
|
+
path: {
|
|
105
|
+
stop_id: string;
|
|
106
|
+
arrival_time: string;
|
|
107
|
+
departure_time: string;
|
|
108
|
+
drop_off_type: "0" | "1" | "2" | "3";
|
|
109
|
+
pickup_type: "0" | "1" | "2" | "3";
|
|
110
|
+
shape_dist_traveled: number;
|
|
111
|
+
stop_sequence: number;
|
|
112
|
+
timepoint: number;
|
|
113
|
+
stop_lat: number;
|
|
114
|
+
stop_lon: number;
|
|
115
|
+
stop_name: string;
|
|
116
|
+
}[];
|
|
117
|
+
agency_id: string;
|
|
118
|
+
line_id: number;
|
|
119
|
+
pattern_id: string;
|
|
120
|
+
route_id: string;
|
|
121
|
+
route_color: string;
|
|
122
|
+
route_long_name: string;
|
|
123
|
+
route_short_name: string;
|
|
124
|
+
route_text_color: string;
|
|
125
|
+
trip_headsign: string;
|
|
126
|
+
line_long_name: string;
|
|
127
|
+
line_short_name: string;
|
|
128
|
+
}, {
|
|
129
|
+
_id: string;
|
|
130
|
+
created_at: number;
|
|
131
|
+
updated_at: number;
|
|
132
|
+
agency_id: string;
|
|
133
|
+
line_id: number;
|
|
134
|
+
pattern_id: string;
|
|
135
|
+
route_id: string;
|
|
136
|
+
route_color: string;
|
|
137
|
+
route_long_name: string;
|
|
138
|
+
route_short_name: string;
|
|
139
|
+
route_text_color: string;
|
|
140
|
+
trip_headsign: string;
|
|
141
|
+
line_long_name: string;
|
|
142
|
+
line_short_name: string;
|
|
143
|
+
path?: {
|
|
144
|
+
stop_id: string;
|
|
145
|
+
arrival_time: string;
|
|
146
|
+
departure_time: string;
|
|
147
|
+
drop_off_type: "0" | "1" | "2" | "3";
|
|
148
|
+
pickup_type: "0" | "1" | "2" | "3";
|
|
149
|
+
shape_dist_traveled: number;
|
|
150
|
+
stop_sequence: number;
|
|
151
|
+
timepoint: number;
|
|
152
|
+
stop_lat: number;
|
|
153
|
+
stop_lon: number;
|
|
154
|
+
stop_name: string;
|
|
155
|
+
}[] | undefined;
|
|
156
|
+
}>;
|
|
157
|
+
export type HashedTrip = z.infer<typeof HashedTripSchema>;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/* * */
|
|
2
|
+
import { DocumentSchema } from '../../_common/document.js';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
/* * */
|
|
5
|
+
export const HashedTripWaypointSchema = z.object({
|
|
6
|
+
arrival_time: z.string(),
|
|
7
|
+
departure_time: z.string(),
|
|
8
|
+
drop_off_type: z.enum(['0', '1', '2', '3']),
|
|
9
|
+
pickup_type: z.enum(['0', '1', '2', '3']),
|
|
10
|
+
shape_dist_traveled: z.number(),
|
|
11
|
+
stop_id: z.string(),
|
|
12
|
+
stop_lat: z.number(),
|
|
13
|
+
stop_lon: z.number(),
|
|
14
|
+
stop_name: z.string(),
|
|
15
|
+
stop_sequence: z.number(),
|
|
16
|
+
timepoint: z.number(),
|
|
17
|
+
});
|
|
18
|
+
/* * */
|
|
19
|
+
export const HashedTripSchema = DocumentSchema
|
|
20
|
+
.omit({ created_by: true, is_locked: true, updated_by: true })
|
|
21
|
+
.extend({
|
|
22
|
+
agency_id: z.string(),
|
|
23
|
+
line_id: z.number(),
|
|
24
|
+
line_long_name: z.string(),
|
|
25
|
+
line_short_name: z.string(),
|
|
26
|
+
path: z.array(HashedTripWaypointSchema).default([]),
|
|
27
|
+
pattern_id: z.string(),
|
|
28
|
+
route_color: z.string(),
|
|
29
|
+
route_id: z.string(),
|
|
30
|
+
route_long_name: z.string(),
|
|
31
|
+
route_short_name: z.string(),
|
|
32
|
+
route_text_color: z.string(),
|
|
33
|
+
trip_headsign: z.string(),
|
|
34
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './hashed-trip.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './hashed-trip.js';
|