@tmlmobilidade/types 20260505.2251.5 → 20260505.2312.1

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.
@@ -2,8 +2,8 @@ import { z } from 'zod';
2
2
  export declare const HashedTripWaypointSchema: z.ZodObject<{
3
3
  arrival_time: z.ZodString;
4
4
  departure_time: z.ZodString;
5
- drop_off_type: z.ZodEnum<["0", "1", "2", "3"]>;
6
- pickup_type: z.ZodEnum<["0", "1", "2", "3"]>;
5
+ drop_off_type: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
6
+ pickup_type: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
7
7
  shape_dist_traveled: z.ZodNumber;
8
8
  stop_id: z.ZodString;
9
9
  stop_lat: z.ZodNumber;
@@ -15,8 +15,8 @@ export declare const HashedTripWaypointSchema: z.ZodObject<{
15
15
  stop_id: string;
16
16
  arrival_time: string;
17
17
  departure_time: string;
18
- drop_off_type: "0" | "1" | "2" | "3";
19
- pickup_type: "0" | "1" | "2" | "3";
18
+ drop_off_type: 0 | 1 | 2 | 3;
19
+ pickup_type: 0 | 1 | 2 | 3;
20
20
  shape_dist_traveled: number;
21
21
  stop_sequence: number;
22
22
  timepoint: number;
@@ -27,8 +27,8 @@ export declare const HashedTripWaypointSchema: z.ZodObject<{
27
27
  stop_id: string;
28
28
  arrival_time: string;
29
29
  departure_time: string;
30
- drop_off_type: "0" | "1" | "2" | "3";
31
- pickup_type: "0" | "1" | "2" | "3";
30
+ drop_off_type: 0 | 1 | 2 | 3;
31
+ pickup_type: 0 | 1 | 2 | 3;
32
32
  shape_dist_traveled: number;
33
33
  stop_sequence: number;
34
34
  timepoint: number;
@@ -52,8 +52,8 @@ export declare const HashedTripSchema: z.ZodObject<Omit<{
52
52
  path: z.ZodDefault<z.ZodArray<z.ZodObject<{
53
53
  arrival_time: z.ZodString;
54
54
  departure_time: z.ZodString;
55
- drop_off_type: z.ZodEnum<["0", "1", "2", "3"]>;
56
- pickup_type: z.ZodEnum<["0", "1", "2", "3"]>;
55
+ drop_off_type: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
56
+ pickup_type: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
57
57
  shape_dist_traveled: z.ZodNumber;
58
58
  stop_id: z.ZodString;
59
59
  stop_lat: z.ZodNumber;
@@ -65,8 +65,8 @@ export declare const HashedTripSchema: z.ZodObject<Omit<{
65
65
  stop_id: string;
66
66
  arrival_time: string;
67
67
  departure_time: string;
68
- drop_off_type: "0" | "1" | "2" | "3";
69
- pickup_type: "0" | "1" | "2" | "3";
68
+ drop_off_type: 0 | 1 | 2 | 3;
69
+ pickup_type: 0 | 1 | 2 | 3;
70
70
  shape_dist_traveled: number;
71
71
  stop_sequence: number;
72
72
  timepoint: number;
@@ -77,8 +77,8 @@ export declare const HashedTripSchema: z.ZodObject<Omit<{
77
77
  stop_id: string;
78
78
  arrival_time: string;
79
79
  departure_time: string;
80
- drop_off_type: "0" | "1" | "2" | "3";
81
- pickup_type: "0" | "1" | "2" | "3";
80
+ drop_off_type: 0 | 1 | 2 | 3;
81
+ pickup_type: 0 | 1 | 2 | 3;
82
82
  shape_dist_traveled: number;
83
83
  stop_sequence: number;
84
84
  timepoint: number;
@@ -105,8 +105,8 @@ export declare const HashedTripSchema: z.ZodObject<Omit<{
105
105
  stop_id: string;
106
106
  arrival_time: string;
107
107
  departure_time: string;
108
- drop_off_type: "0" | "1" | "2" | "3";
109
- pickup_type: "0" | "1" | "2" | "3";
108
+ drop_off_type: 0 | 1 | 2 | 3;
109
+ pickup_type: 0 | 1 | 2 | 3;
110
110
  shape_dist_traveled: number;
111
111
  stop_sequence: number;
112
112
  timepoint: number;
@@ -144,8 +144,8 @@ export declare const HashedTripSchema: z.ZodObject<Omit<{
144
144
  stop_id: string;
145
145
  arrival_time: string;
146
146
  departure_time: string;
147
- drop_off_type: "0" | "1" | "2" | "3";
148
- pickup_type: "0" | "1" | "2" | "3";
147
+ drop_off_type: 0 | 1 | 2 | 3;
148
+ pickup_type: 0 | 1 | 2 | 3;
149
149
  shape_dist_traveled: number;
150
150
  stop_sequence: number;
151
151
  timepoint: number;
@@ -5,8 +5,8 @@ import { z } from 'zod';
5
5
  export const HashedTripWaypointSchema = z.object({
6
6
  arrival_time: z.string(),
7
7
  departure_time: z.string(),
8
- drop_off_type: z.enum(['0', '1', '2', '3']),
9
- pickup_type: z.enum(['0', '1', '2', '3']),
8
+ drop_off_type: z.union([z.literal(0), z.literal(1), z.literal(2), z.literal(3)]),
9
+ pickup_type: z.union([z.literal(0), z.literal(1), z.literal(2), z.literal(3)]),
10
10
  shape_dist_traveled: z.number(),
11
11
  stop_id: z.string(),
12
12
  stop_lat: z.number(),
@@ -16,8 +16,8 @@ export declare const OperationalLineSchema: z.ZodObject<{
16
16
  path: z.ZodDefault<z.ZodArray<z.ZodObject<{
17
17
  arrival_time: z.ZodString;
18
18
  departure_time: z.ZodString;
19
- drop_off_type: z.ZodEnum<["0", "1", "2", "3"]>;
20
- pickup_type: z.ZodEnum<["0", "1", "2", "3"]>;
19
+ drop_off_type: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
20
+ pickup_type: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
21
21
  shape_dist_traveled: z.ZodNumber;
22
22
  stop_id: z.ZodString;
23
23
  stop_lat: z.ZodNumber;
@@ -29,8 +29,8 @@ export declare const OperationalLineSchema: z.ZodObject<{
29
29
  stop_id: string;
30
30
  arrival_time: string;
31
31
  departure_time: string;
32
- drop_off_type: "0" | "1" | "2" | "3";
33
- pickup_type: "0" | "1" | "2" | "3";
32
+ drop_off_type: 0 | 1 | 2 | 3;
33
+ pickup_type: 0 | 1 | 2 | 3;
34
34
  shape_dist_traveled: number;
35
35
  stop_sequence: number;
36
36
  timepoint: number;
@@ -41,8 +41,8 @@ export declare const OperationalLineSchema: z.ZodObject<{
41
41
  stop_id: string;
42
42
  arrival_time: string;
43
43
  departure_time: string;
44
- drop_off_type: "0" | "1" | "2" | "3";
45
- pickup_type: "0" | "1" | "2" | "3";
44
+ drop_off_type: 0 | 1 | 2 | 3;
45
+ pickup_type: 0 | 1 | 2 | 3;
46
46
  shape_dist_traveled: number;
47
47
  stop_sequence: number;
48
48
  timepoint: number;
@@ -69,8 +69,8 @@ export declare const OperationalLineSchema: z.ZodObject<{
69
69
  stop_id: string;
70
70
  arrival_time: string;
71
71
  departure_time: string;
72
- drop_off_type: "0" | "1" | "2" | "3";
73
- pickup_type: "0" | "1" | "2" | "3";
72
+ drop_off_type: 0 | 1 | 2 | 3;
73
+ pickup_type: 0 | 1 | 2 | 3;
74
74
  shape_dist_traveled: number;
75
75
  stop_sequence: number;
76
76
  timepoint: number;
@@ -108,8 +108,8 @@ export declare const OperationalLineSchema: z.ZodObject<{
108
108
  stop_id: string;
109
109
  arrival_time: string;
110
110
  departure_time: string;
111
- drop_off_type: "0" | "1" | "2" | "3";
112
- pickup_type: "0" | "1" | "2" | "3";
111
+ drop_off_type: 0 | 1 | 2 | 3;
112
+ pickup_type: 0 | 1 | 2 | 3;
113
113
  shape_dist_traveled: number;
114
114
  stop_sequence: number;
115
115
  timepoint: number;
@@ -146,8 +146,8 @@ export declare const OperationalLineSchema: z.ZodObject<{
146
146
  stop_id: string;
147
147
  arrival_time: string;
148
148
  departure_time: string;
149
- drop_off_type: "0" | "1" | "2" | "3";
150
- pickup_type: "0" | "1" | "2" | "3";
149
+ drop_off_type: 0 | 1 | 2 | 3;
150
+ pickup_type: 0 | 1 | 2 | 3;
151
151
  shape_dist_traveled: number;
152
152
  stop_sequence: number;
153
153
  timepoint: number;
@@ -201,8 +201,8 @@ export declare const OperationalLineSchema: z.ZodObject<{
201
201
  stop_id: string;
202
202
  arrival_time: string;
203
203
  departure_time: string;
204
- drop_off_type: "0" | "1" | "2" | "3";
205
- pickup_type: "0" | "1" | "2" | "3";
204
+ drop_off_type: 0 | 1 | 2 | 3;
205
+ pickup_type: 0 | 1 | 2 | 3;
206
206
  shape_dist_traveled: number;
207
207
  stop_sequence: number;
208
208
  timepoint: number;
@@ -16,8 +16,8 @@ export declare const OperationalStopSchema: z.ZodObject<{
16
16
  path: z.ZodDefault<z.ZodArray<z.ZodObject<{
17
17
  arrival_time: z.ZodString;
18
18
  departure_time: z.ZodString;
19
- drop_off_type: z.ZodEnum<["0", "1", "2", "3"]>;
20
- pickup_type: z.ZodEnum<["0", "1", "2", "3"]>;
19
+ drop_off_type: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
20
+ pickup_type: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
21
21
  shape_dist_traveled: z.ZodNumber;
22
22
  stop_id: z.ZodString;
23
23
  stop_lat: z.ZodNumber;
@@ -29,8 +29,8 @@ export declare const OperationalStopSchema: z.ZodObject<{
29
29
  stop_id: string;
30
30
  arrival_time: string;
31
31
  departure_time: string;
32
- drop_off_type: "0" | "1" | "2" | "3";
33
- pickup_type: "0" | "1" | "2" | "3";
32
+ drop_off_type: 0 | 1 | 2 | 3;
33
+ pickup_type: 0 | 1 | 2 | 3;
34
34
  shape_dist_traveled: number;
35
35
  stop_sequence: number;
36
36
  timepoint: number;
@@ -41,8 +41,8 @@ export declare const OperationalStopSchema: z.ZodObject<{
41
41
  stop_id: string;
42
42
  arrival_time: string;
43
43
  departure_time: string;
44
- drop_off_type: "0" | "1" | "2" | "3";
45
- pickup_type: "0" | "1" | "2" | "3";
44
+ drop_off_type: 0 | 1 | 2 | 3;
45
+ pickup_type: 0 | 1 | 2 | 3;
46
46
  shape_dist_traveled: number;
47
47
  stop_sequence: number;
48
48
  timepoint: number;
@@ -69,8 +69,8 @@ export declare const OperationalStopSchema: z.ZodObject<{
69
69
  stop_id: string;
70
70
  arrival_time: string;
71
71
  departure_time: string;
72
- drop_off_type: "0" | "1" | "2" | "3";
73
- pickup_type: "0" | "1" | "2" | "3";
72
+ drop_off_type: 0 | 1 | 2 | 3;
73
+ pickup_type: 0 | 1 | 2 | 3;
74
74
  shape_dist_traveled: number;
75
75
  stop_sequence: number;
76
76
  timepoint: number;
@@ -108,8 +108,8 @@ export declare const OperationalStopSchema: z.ZodObject<{
108
108
  stop_id: string;
109
109
  arrival_time: string;
110
110
  departure_time: string;
111
- drop_off_type: "0" | "1" | "2" | "3";
112
- pickup_type: "0" | "1" | "2" | "3";
111
+ drop_off_type: 0 | 1 | 2 | 3;
112
+ pickup_type: 0 | 1 | 2 | 3;
113
113
  shape_dist_traveled: number;
114
114
  stop_sequence: number;
115
115
  timepoint: number;
@@ -142,8 +142,8 @@ export declare const OperationalStopSchema: z.ZodObject<{
142
142
  stop_id: string;
143
143
  arrival_time: string;
144
144
  departure_time: string;
145
- drop_off_type: "0" | "1" | "2" | "3";
146
- pickup_type: "0" | "1" | "2" | "3";
145
+ drop_off_type: 0 | 1 | 2 | 3;
146
+ pickup_type: 0 | 1 | 2 | 3;
147
147
  shape_dist_traveled: number;
148
148
  stop_sequence: number;
149
149
  timepoint: number;
@@ -195,8 +195,8 @@ export declare const OperationalStopSchema: z.ZodObject<{
195
195
  stop_id: string;
196
196
  arrival_time: string;
197
197
  departure_time: string;
198
- drop_off_type: "0" | "1" | "2" | "3";
199
- pickup_type: "0" | "1" | "2" | "3";
198
+ drop_off_type: 0 | 1 | 2 | 3;
199
+ pickup_type: 0 | 1 | 2 | 3;
200
200
  shape_dist_traveled: number;
201
201
  stop_sequence: number;
202
202
  timepoint: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tmlmobilidade/types",
3
- "version": "20260505.2251.5",
3
+ "version": "20260505.2312.1",
4
4
  "author": {
5
5
  "email": "iso@tmlmobilidade.pt",
6
6
  "name": "TML-ISO"