@tmlmobilidade/go-types-operation 20260829.51.31 → 20260829.136.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.
|
@@ -18,7 +18,7 @@ export declare const GtfsValidationSchema: z.ZodObject<{
|
|
|
18
18
|
agency_phone: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
19
19
|
agency_timezone: z.ZodString;
|
|
20
20
|
agency_url: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
21
|
-
cemv_support: z.ZodDefault<z.ZodEnum<["0", "1", "2"]
|
|
21
|
+
cemv_support: z.ZodDefault<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string, string | number>, z.ZodEnum<["0", "1", "2"]>>>;
|
|
22
22
|
}, "strip", z.ZodTypeAny, {
|
|
23
23
|
agency_email: string;
|
|
24
24
|
agency_fare_url: string;
|
|
@@ -38,7 +38,7 @@ export declare const GtfsValidationSchema: z.ZodObject<{
|
|
|
38
38
|
agency_lang?: "pt" | "es" | "en" | undefined;
|
|
39
39
|
agency_phone?: string | undefined;
|
|
40
40
|
agency_url?: string | undefined;
|
|
41
|
-
cemv_support?:
|
|
41
|
+
cemv_support?: string | number | undefined;
|
|
42
42
|
}>;
|
|
43
43
|
gtfs_feed_info: z.ZodObject<{
|
|
44
44
|
default_lang: z.ZodDefault<z.ZodEnum<["pt", "es", "en"]>>;
|
|
@@ -197,7 +197,7 @@ export declare const GtfsValidationSchema: z.ZodObject<{
|
|
|
197
197
|
agency_lang?: "pt" | "es" | "en" | undefined;
|
|
198
198
|
agency_phone?: string | undefined;
|
|
199
199
|
agency_url?: string | undefined;
|
|
200
|
-
cemv_support?:
|
|
200
|
+
cemv_support?: string | number | undefined;
|
|
201
201
|
};
|
|
202
202
|
gtfs_feed_info: {
|
|
203
203
|
feed_end_date: string | number;
|
|
@@ -249,7 +249,7 @@ export declare const CreateGtfsValidationSchema: z.ZodObject<Omit<{
|
|
|
249
249
|
agency_phone: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
250
250
|
agency_timezone: z.ZodString;
|
|
251
251
|
agency_url: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
252
|
-
cemv_support: z.ZodDefault<z.ZodEnum<["0", "1", "2"]
|
|
252
|
+
cemv_support: z.ZodDefault<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string, string | number>, z.ZodEnum<["0", "1", "2"]>>>;
|
|
253
253
|
}, "strip", z.ZodTypeAny, {
|
|
254
254
|
agency_email: string;
|
|
255
255
|
agency_fare_url: string;
|
|
@@ -269,7 +269,7 @@ export declare const CreateGtfsValidationSchema: z.ZodObject<Omit<{
|
|
|
269
269
|
agency_lang?: "pt" | "es" | "en" | undefined;
|
|
270
270
|
agency_phone?: string | undefined;
|
|
271
271
|
agency_url?: string | undefined;
|
|
272
|
-
cemv_support?:
|
|
272
|
+
cemv_support?: string | number | undefined;
|
|
273
273
|
}>;
|
|
274
274
|
gtfs_feed_info: z.ZodObject<{
|
|
275
275
|
default_lang: z.ZodDefault<z.ZodEnum<["pt", "es", "en"]>>;
|
|
@@ -422,7 +422,7 @@ export declare const CreateGtfsValidationSchema: z.ZodObject<Omit<{
|
|
|
422
422
|
agency_lang?: "pt" | "es" | "en" | undefined;
|
|
423
423
|
agency_phone?: string | undefined;
|
|
424
424
|
agency_url?: string | undefined;
|
|
425
|
-
cemv_support?:
|
|
425
|
+
cemv_support?: string | number | undefined;
|
|
426
426
|
};
|
|
427
427
|
gtfs_feed_info: {
|
|
428
428
|
feed_end_date: string | number;
|
|
@@ -469,7 +469,7 @@ export declare const UpdateGtfsValidationSchema: z.ZodObject<{
|
|
|
469
469
|
agency_phone: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
470
470
|
agency_timezone: z.ZodString;
|
|
471
471
|
agency_url: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
472
|
-
cemv_support: z.ZodDefault<z.ZodEnum<["0", "1", "2"]
|
|
472
|
+
cemv_support: z.ZodDefault<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string, string | number>, z.ZodEnum<["0", "1", "2"]>>>;
|
|
473
473
|
}, "strip", z.ZodTypeAny, {
|
|
474
474
|
agency_email: string;
|
|
475
475
|
agency_fare_url: string;
|
|
@@ -489,7 +489,7 @@ export declare const UpdateGtfsValidationSchema: z.ZodObject<{
|
|
|
489
489
|
agency_lang?: "pt" | "es" | "en" | undefined;
|
|
490
490
|
agency_phone?: string | undefined;
|
|
491
491
|
agency_url?: string | undefined;
|
|
492
|
-
cemv_support?:
|
|
492
|
+
cemv_support?: string | number | undefined;
|
|
493
493
|
}>>;
|
|
494
494
|
gtfs_feed_info: z.ZodOptional<z.ZodObject<{
|
|
495
495
|
default_lang: z.ZodDefault<z.ZodEnum<["pt", "es", "en"]>>;
|
|
@@ -639,7 +639,7 @@ export declare const UpdateGtfsValidationSchema: z.ZodObject<{
|
|
|
639
639
|
agency_lang?: "pt" | "es" | "en" | undefined;
|
|
640
640
|
agency_phone?: string | undefined;
|
|
641
641
|
agency_url?: string | undefined;
|
|
642
|
-
cemv_support?:
|
|
642
|
+
cemv_support?: string | number | undefined;
|
|
643
643
|
} | undefined;
|
|
644
644
|
gtfs_feed_info?: {
|
|
645
645
|
feed_end_date: string | number;
|
|
@@ -4,8 +4,8 @@ export declare const HashedTripSchema: z.ZodObject<{
|
|
|
4
4
|
agency_id: z.ZodString;
|
|
5
5
|
arrival_time: z.ZodEffects<z.ZodString, import("@tmlmobilidade/go-types-shared").OperationalTime, string>;
|
|
6
6
|
departure_time: z.ZodEffects<z.ZodString, import("@tmlmobilidade/go-types-shared").OperationalTime, string>;
|
|
7
|
-
drop_off_type: z.ZodDefault<z.ZodEnum<["0", "1", "2", "3"]
|
|
8
|
-
pickup_type: z.ZodDefault<z.ZodEnum<["0", "1", "2", "3"]
|
|
7
|
+
drop_off_type: z.ZodDefault<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string, string | number>, z.ZodEnum<["0", "1", "2", "3"]>>>;
|
|
8
|
+
pickup_type: z.ZodDefault<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string, string | number>, z.ZodEnum<["0", "1", "2", "3"]>>>;
|
|
9
9
|
shape_dist_traveled: z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>;
|
|
10
10
|
shape_id: z.ZodString;
|
|
11
11
|
stop_id: z.ZodString;
|
|
@@ -55,8 +55,8 @@ export declare const HashedTripSchema: z.ZodObject<{
|
|
|
55
55
|
stop_name: string;
|
|
56
56
|
stop_sequence: string | number;
|
|
57
57
|
timepoint: boolean;
|
|
58
|
-
drop_off_type?:
|
|
59
|
-
pickup_type?:
|
|
58
|
+
drop_off_type?: string | number | undefined;
|
|
59
|
+
pickup_type?: string | number | undefined;
|
|
60
60
|
}>;
|
|
61
61
|
/**
|
|
62
62
|
* A HashedTrip represents the unique sequence of stops, and the arrival and departure times for each stop,
|
|
@@ -71,8 +71,8 @@ export declare const CreateHashedTripSchema: z.ZodObject<Omit<{
|
|
|
71
71
|
agency_id: z.ZodString;
|
|
72
72
|
arrival_time: z.ZodEffects<z.ZodString, import("@tmlmobilidade/go-types-shared").OperationalTime, string>;
|
|
73
73
|
departure_time: z.ZodEffects<z.ZodString, import("@tmlmobilidade/go-types-shared").OperationalTime, string>;
|
|
74
|
-
drop_off_type: z.ZodDefault<z.ZodEnum<["0", "1", "2", "3"]
|
|
75
|
-
pickup_type: z.ZodDefault<z.ZodEnum<["0", "1", "2", "3"]
|
|
74
|
+
drop_off_type: z.ZodDefault<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string, string | number>, z.ZodEnum<["0", "1", "2", "3"]>>>;
|
|
75
|
+
pickup_type: z.ZodDefault<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string, string | number>, z.ZodEnum<["0", "1", "2", "3"]>>>;
|
|
76
76
|
shape_dist_traveled: z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>;
|
|
77
77
|
shape_id: z.ZodString;
|
|
78
78
|
stop_id: z.ZodString;
|
|
@@ -116,8 +116,8 @@ export declare const CreateHashedTripSchema: z.ZodObject<Omit<{
|
|
|
116
116
|
stop_name: string;
|
|
117
117
|
stop_sequence: string | number;
|
|
118
118
|
timepoint: boolean;
|
|
119
|
-
drop_off_type?:
|
|
120
|
-
pickup_type?:
|
|
119
|
+
drop_off_type?: string | number | undefined;
|
|
120
|
+
pickup_type?: string | number | undefined;
|
|
121
121
|
}>;
|
|
122
122
|
/**
|
|
123
123
|
* A specific type for creating a HashedTrip, without the _id and updated_at fields.
|
package/dist/plans/plan.d.ts
CHANGED
|
@@ -113,7 +113,7 @@ export declare const PlanSchema: z.ZodObject<{
|
|
|
113
113
|
agency_phone: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
114
114
|
agency_timezone: z.ZodString;
|
|
115
115
|
agency_url: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
116
|
-
cemv_support: z.ZodDefault<z.ZodEnum<["0", "1", "2"]
|
|
116
|
+
cemv_support: z.ZodDefault<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string, string | number>, z.ZodEnum<["0", "1", "2"]>>>;
|
|
117
117
|
}, "strip", z.ZodTypeAny, {
|
|
118
118
|
agency_email: string;
|
|
119
119
|
agency_fare_url: string;
|
|
@@ -133,7 +133,7 @@ export declare const PlanSchema: z.ZodObject<{
|
|
|
133
133
|
agency_lang?: "pt" | "es" | "en" | undefined;
|
|
134
134
|
agency_phone?: string | undefined;
|
|
135
135
|
agency_url?: string | undefined;
|
|
136
|
-
cemv_support?:
|
|
136
|
+
cemv_support?: string | number | undefined;
|
|
137
137
|
}>;
|
|
138
138
|
gtfs_feed_info: z.ZodObject<{
|
|
139
139
|
default_lang: z.ZodDefault<z.ZodEnum<["pt", "es", "en"]>>;
|
|
@@ -260,7 +260,7 @@ export declare const PlanSchema: z.ZodObject<{
|
|
|
260
260
|
agency_lang?: "pt" | "es" | "en" | undefined;
|
|
261
261
|
agency_phone?: string | undefined;
|
|
262
262
|
agency_url?: string | undefined;
|
|
263
|
-
cemv_support?:
|
|
263
|
+
cemv_support?: string | number | undefined;
|
|
264
264
|
};
|
|
265
265
|
gtfs_feed_info: {
|
|
266
266
|
feed_end_date: string | number;
|
|
@@ -419,7 +419,7 @@ export declare const CreatePlanSchema: z.ZodObject<Omit<{
|
|
|
419
419
|
agency_phone: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
420
420
|
agency_timezone: z.ZodString;
|
|
421
421
|
agency_url: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
422
|
-
cemv_support: z.ZodDefault<z.ZodEnum<["0", "1", "2"]
|
|
422
|
+
cemv_support: z.ZodDefault<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string, string | number>, z.ZodEnum<["0", "1", "2"]>>>;
|
|
423
423
|
}, "strip", z.ZodTypeAny, {
|
|
424
424
|
agency_email: string;
|
|
425
425
|
agency_fare_url: string;
|
|
@@ -439,7 +439,7 @@ export declare const CreatePlanSchema: z.ZodObject<Omit<{
|
|
|
439
439
|
agency_lang?: "pt" | "es" | "en" | undefined;
|
|
440
440
|
agency_phone?: string | undefined;
|
|
441
441
|
agency_url?: string | undefined;
|
|
442
|
-
cemv_support?:
|
|
442
|
+
cemv_support?: string | number | undefined;
|
|
443
443
|
}>;
|
|
444
444
|
gtfs_feed_info: z.ZodObject<{
|
|
445
445
|
default_lang: z.ZodDefault<z.ZodEnum<["pt", "es", "en"]>>;
|
|
@@ -560,7 +560,7 @@ export declare const CreatePlanSchema: z.ZodObject<Omit<{
|
|
|
560
560
|
agency_lang?: "pt" | "es" | "en" | undefined;
|
|
561
561
|
agency_phone?: string | undefined;
|
|
562
562
|
agency_url?: string | undefined;
|
|
563
|
-
cemv_support?:
|
|
563
|
+
cemv_support?: string | number | undefined;
|
|
564
564
|
};
|
|
565
565
|
gtfs_feed_info: {
|
|
566
566
|
feed_end_date: string | number;
|
|
@@ -618,7 +618,7 @@ export declare const UpdatePlanSchema: z.ZodObject<{
|
|
|
618
618
|
agency_phone: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
619
619
|
agency_timezone: z.ZodString;
|
|
620
620
|
agency_url: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
621
|
-
cemv_support: z.ZodDefault<z.ZodEnum<["0", "1", "2"]
|
|
621
|
+
cemv_support: z.ZodDefault<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string, string | number>, z.ZodEnum<["0", "1", "2"]>>>;
|
|
622
622
|
}, "strip", z.ZodTypeAny, {
|
|
623
623
|
agency_email: string;
|
|
624
624
|
agency_fare_url: string;
|
|
@@ -638,7 +638,7 @@ export declare const UpdatePlanSchema: z.ZodObject<{
|
|
|
638
638
|
agency_lang?: "pt" | "es" | "en" | undefined;
|
|
639
639
|
agency_phone?: string | undefined;
|
|
640
640
|
agency_url?: string | undefined;
|
|
641
|
-
cemv_support?:
|
|
641
|
+
cemv_support?: string | number | undefined;
|
|
642
642
|
}>>;
|
|
643
643
|
gtfs_feed_info: z.ZodOptional<z.ZodObject<{
|
|
644
644
|
default_lang: z.ZodDefault<z.ZodEnum<["pt", "es", "en"]>>;
|
|
@@ -852,7 +852,7 @@ export declare const UpdatePlanSchema: z.ZodObject<{
|
|
|
852
852
|
agency_lang?: "pt" | "es" | "en" | undefined;
|
|
853
853
|
agency_phone?: string | undefined;
|
|
854
854
|
agency_url?: string | undefined;
|
|
855
|
-
cemv_support?:
|
|
855
|
+
cemv_support?: string | number | undefined;
|
|
856
856
|
} | undefined;
|
|
857
857
|
gtfs_feed_info?: {
|
|
858
858
|
feed_end_date: string | number;
|
package/dist/rides/ride.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export declare const RideIdentitySchema: z.ZodObject<{
|
|
|
3
3
|
_id: z.ZodString;
|
|
4
4
|
agency_code: z.ZodString;
|
|
5
5
|
agency_id: z.ZodString;
|
|
6
|
-
direction_id: z.ZodEnum<["0", "1"]
|
|
6
|
+
direction_id: z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string, string | number>, z.ZodEnum<["0", "1"]>>;
|
|
7
7
|
hashed_shape_id: z.ZodString;
|
|
8
8
|
hashed_trip_id: z.ZodString;
|
|
9
9
|
headsign: z.ZodString;
|
|
@@ -46,7 +46,7 @@ export declare const RideIdentitySchema: z.ZodObject<{
|
|
|
46
46
|
trip_id: string;
|
|
47
47
|
operational_date: string | number;
|
|
48
48
|
agency_code: string;
|
|
49
|
-
direction_id:
|
|
49
|
+
direction_id: string | number;
|
|
50
50
|
hashed_shape_id: string;
|
|
51
51
|
hashed_trip_id: string;
|
|
52
52
|
headsign: string;
|
|
@@ -174,7 +174,7 @@ export declare const RideSchema: z.ZodObject<{
|
|
|
174
174
|
_id: z.ZodString;
|
|
175
175
|
agency_code: z.ZodString;
|
|
176
176
|
agency_id: z.ZodString;
|
|
177
|
-
direction_id: z.ZodEnum<["0", "1"]
|
|
177
|
+
direction_id: z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string, string | number>, z.ZodEnum<["0", "1"]>>;
|
|
178
178
|
hashed_shape_id: z.ZodString;
|
|
179
179
|
hashed_trip_id: z.ZodString;
|
|
180
180
|
headsign: z.ZodString;
|
|
@@ -287,7 +287,7 @@ export declare const RideSchema: z.ZodObject<{
|
|
|
287
287
|
trip_id: string;
|
|
288
288
|
operational_date: string | number;
|
|
289
289
|
agency_code: string;
|
|
290
|
-
direction_id:
|
|
290
|
+
direction_id: string | number;
|
|
291
291
|
hashed_shape_id: string;
|
|
292
292
|
hashed_trip_id: string;
|
|
293
293
|
headsign: string;
|