@tmlmobilidade/types 20260411.1243.43 → 20260418.947.46

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.
@@ -3,11 +3,11 @@
3
3
  * This type is used to define the environments in which the application can run.
4
4
  * It has a companion function `getCurrentEnvironment` that retrieves the current
5
5
  * environment based on the set environment variable.
6
- * - `production` is reserved for live production environments.
7
- * - `staging` is used for pre-production testing environments.
8
- * - `development` is used for local development environments. It uses staging variables.
6
+ * - `prd` is reserved for the live production environment.
7
+ * - `stg` is used for pre-production testing environments.
8
+ * - `dev` is used for local development environments. It uses staging variables.
9
9
  */
10
- export type Environment = 'development' | 'production' | 'staging';
10
+ export type Environment = 'dev' | 'prd' | 'stg';
11
11
  /**
12
12
  * Get the current environment from server-side `ENVIRONMENT`
13
13
  * or client-side `NEXT_PUBLIC_ENVIRONMENT` variables.
@@ -11,5 +11,5 @@ export function getCurrentEnvironment() {
11
11
  if (process.env.NEXT_PUBLIC_ENVIRONMENT)
12
12
  return process.env.NEXT_PUBLIC_ENVIRONMENT;
13
13
  // Fallback to development
14
- return 'development';
14
+ return 'dev';
15
15
  }
@@ -6,7 +6,8 @@ export declare const EventSchema: z.ZodObject<{
6
6
  updated_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
7
7
  updated_by: z.ZodOptional<z.ZodString>;
8
8
  } & {
9
- agency_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
9
+ agency_ids: z.ZodArray<z.ZodString, "many">;
10
+ code: z.ZodString;
10
11
  dates: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodString, import("../_common/operational-date.js").OperationalDate, string>, "many">>;
11
12
  description: z.ZodDefault<z.ZodString>;
12
13
  is_locked: z.ZodDefault<z.ZodBoolean>;
@@ -129,7 +130,7 @@ export declare const EventSchema: z.ZodObject<{
129
130
  lines_to_include?: string[] | undefined;
130
131
  same_weekday?: boolean | undefined;
131
132
  }>]>, "many">>;
132
- title: z.ZodDefault<z.ZodString>;
133
+ title: z.ZodString;
133
134
  }, "strip", z.ZodTypeAny, {
134
135
  _id: string;
135
136
  created_at: number & {
@@ -140,6 +141,7 @@ export declare const EventSchema: z.ZodObject<{
140
141
  updated_at: number & {
141
142
  __brand: "UnixTimestamp";
142
143
  };
144
+ code: string;
143
145
  description: string;
144
146
  title: string;
145
147
  agency_ids: string[];
@@ -182,12 +184,13 @@ export declare const EventSchema: z.ZodObject<{
182
184
  _id: string;
183
185
  created_at: number;
184
186
  updated_at: number;
187
+ code: string;
188
+ title: string;
189
+ agency_ids: string[];
185
190
  created_by?: string | null | undefined;
186
191
  is_locked?: boolean | undefined;
187
192
  updated_by?: string | undefined;
188
193
  description?: string | undefined;
189
- title?: string | undefined;
190
- agency_ids?: string[] | undefined;
191
194
  dates?: string[] | undefined;
192
195
  rules?: ({
193
196
  event: {
@@ -230,7 +233,8 @@ export declare const CreateEventSchema: z.ZodObject<Omit<{
230
233
  updated_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
231
234
  updated_by: z.ZodOptional<z.ZodString>;
232
235
  } & {
233
- agency_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
236
+ agency_ids: z.ZodArray<z.ZodString, "many">;
237
+ code: z.ZodString;
234
238
  dates: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodString, import("../_common/operational-date.js").OperationalDate, string>, "many">>;
235
239
  description: z.ZodDefault<z.ZodString>;
236
240
  is_locked: z.ZodDefault<z.ZodBoolean>;
@@ -353,10 +357,11 @@ export declare const CreateEventSchema: z.ZodObject<Omit<{
353
357
  lines_to_include?: string[] | undefined;
354
358
  same_weekday?: boolean | undefined;
355
359
  }>]>, "many">>;
356
- title: z.ZodDefault<z.ZodString>;
360
+ title: z.ZodString;
357
361
  }, "_id" | "created_at" | "updated_at">, "strip", z.ZodTypeAny, {
358
362
  created_by: string | null;
359
363
  is_locked: boolean;
364
+ code: string;
360
365
  description: string;
361
366
  title: string;
362
367
  agency_ids: string[];
@@ -396,12 +401,13 @@ export declare const CreateEventSchema: z.ZodObject<Omit<{
396
401
  })[];
397
402
  updated_by?: string | undefined;
398
403
  }, {
404
+ code: string;
405
+ title: string;
406
+ agency_ids: string[];
399
407
  created_by?: string | null | undefined;
400
408
  is_locked?: boolean | undefined;
401
409
  updated_by?: string | undefined;
402
410
  description?: string | undefined;
403
- title?: string | undefined;
404
- agency_ids?: string[] | undefined;
405
411
  dates?: string[] | undefined;
406
412
  rules?: ({
407
413
  event: {
@@ -440,9 +446,10 @@ export declare const CreateEventSchema: z.ZodObject<Omit<{
440
446
  export declare const UpdateEventSchema: z.ZodObject<{
441
447
  is_locked: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
442
448
  updated_by: z.ZodOptional<z.ZodOptional<z.ZodString>>;
449
+ code: z.ZodOptional<z.ZodString>;
443
450
  description: z.ZodOptional<z.ZodDefault<z.ZodString>>;
444
- title: z.ZodOptional<z.ZodDefault<z.ZodString>>;
445
- agency_ids: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
451
+ title: z.ZodOptional<z.ZodString>;
452
+ agency_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
446
453
  dates: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodString, import("../_common/operational-date.js").OperationalDate, string>, "many">>>;
447
454
  rules: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
448
455
  _id: z.ZodOptional<z.ZodString>;
@@ -566,6 +573,7 @@ export declare const UpdateEventSchema: z.ZodObject<{
566
573
  }, "strip", z.ZodTypeAny, {
567
574
  is_locked?: boolean | undefined;
568
575
  updated_by?: string | undefined;
576
+ code?: string | undefined;
569
577
  description?: string | undefined;
570
578
  title?: string | undefined;
571
579
  agency_ids?: string[] | undefined;
@@ -606,6 +614,7 @@ export declare const UpdateEventSchema: z.ZodObject<{
606
614
  }, {
607
615
  is_locked?: boolean | undefined;
608
616
  updated_by?: string | undefined;
617
+ code?: string | undefined;
609
618
  description?: string | undefined;
610
619
  title?: string | undefined;
611
620
  agency_ids?: string[] | undefined;
@@ -5,12 +5,16 @@ import { EventRuleSchema } from '../offer/rules.js';
5
5
  import { z } from 'zod';
6
6
  /* * */
7
7
  export const EventSchema = DocumentSchema.extend({
8
- agency_ids: z.array(z.string()).default([]),
8
+ agency_ids: z.array(z.string()).min(1),
9
+ code: z.string()
10
+ .min(1)
11
+ .max(10)
12
+ .regex(/^[A-Z0-9_]+$/, 'Must be uppercase letters, numbers, or underscores'),
9
13
  dates: z.array(OperationalDateSchema).default([]),
10
14
  description: z.string().default(''),
11
15
  is_locked: z.boolean().default(false),
12
16
  rules: z.array(EventRuleSchema).default([]),
13
- title: z.string().default(''),
17
+ title: z.string().min(1),
14
18
  });
15
19
  export const CreateEventSchema = EventSchema.omit({ _id: true, created_at: true, updated_at: true });
16
20
  export const UpdateEventSchema = CreateEventSchema.omit({ created_by: true }).partial();
@@ -7,6 +7,7 @@ export declare const YearPeriodSchema: z.ZodObject<{
7
7
  updated_by: z.ZodOptional<z.ZodString>;
8
8
  } & {
9
9
  agency_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
10
+ code: z.ZodOptional<z.ZodString>;
10
11
  color: z.ZodOptional<z.ZodString>;
11
12
  dates: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, import("../_common/operational-date.js").OperationalDate, string>, "many">>;
12
13
  is_locked: z.ZodDefault<z.ZodBoolean>;
@@ -24,6 +25,7 @@ export declare const YearPeriodSchema: z.ZodObject<{
24
25
  name: string;
25
26
  agency_ids: string[];
26
27
  updated_by?: string | undefined;
28
+ code?: string | undefined;
27
29
  color?: string | undefined;
28
30
  dates?: import("../_common/operational-date.js").OperationalDate[] | undefined;
29
31
  }, {
@@ -34,6 +36,7 @@ export declare const YearPeriodSchema: z.ZodObject<{
34
36
  created_by?: string | null | undefined;
35
37
  is_locked?: boolean | undefined;
36
38
  updated_by?: string | undefined;
39
+ code?: string | undefined;
37
40
  agency_ids?: string[] | undefined;
38
41
  color?: string | undefined;
39
42
  dates?: string[] | undefined;
@@ -46,6 +49,7 @@ export declare const CreateYearPeriodSchema: z.ZodObject<Omit<{
46
49
  updated_by: z.ZodOptional<z.ZodString>;
47
50
  } & {
48
51
  agency_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
52
+ code: z.ZodOptional<z.ZodString>;
49
53
  color: z.ZodOptional<z.ZodString>;
50
54
  dates: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, import("../_common/operational-date.js").OperationalDate, string>, "many">>;
51
55
  is_locked: z.ZodDefault<z.ZodBoolean>;
@@ -56,6 +60,7 @@ export declare const CreateYearPeriodSchema: z.ZodObject<Omit<{
56
60
  name: string;
57
61
  agency_ids: string[];
58
62
  updated_by?: string | undefined;
63
+ code?: string | undefined;
59
64
  color?: string | undefined;
60
65
  dates?: import("../_common/operational-date.js").OperationalDate[] | undefined;
61
66
  }, {
@@ -63,6 +68,7 @@ export declare const CreateYearPeriodSchema: z.ZodObject<Omit<{
63
68
  created_by?: string | null | undefined;
64
69
  is_locked?: boolean | undefined;
65
70
  updated_by?: string | undefined;
71
+ code?: string | undefined;
66
72
  agency_ids?: string[] | undefined;
67
73
  color?: string | undefined;
68
74
  dates?: string[] | undefined;
@@ -70,6 +76,7 @@ export declare const CreateYearPeriodSchema: z.ZodObject<Omit<{
70
76
  export declare const UpdateYearPeriodSchema: z.ZodObject<{
71
77
  is_locked: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
72
78
  updated_by: z.ZodOptional<z.ZodOptional<z.ZodString>>;
79
+ code: z.ZodOptional<z.ZodOptional<z.ZodString>>;
73
80
  name: z.ZodOptional<z.ZodString>;
74
81
  agency_ids: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
75
82
  color: z.ZodOptional<z.ZodOptional<z.ZodString>>;
@@ -77,6 +84,7 @@ export declare const UpdateYearPeriodSchema: z.ZodObject<{
77
84
  }, "strip", z.ZodTypeAny, {
78
85
  is_locked?: boolean | undefined;
79
86
  updated_by?: string | undefined;
87
+ code?: string | undefined;
80
88
  name?: string | undefined;
81
89
  agency_ids?: string[] | undefined;
82
90
  color?: string | undefined;
@@ -84,6 +92,7 @@ export declare const UpdateYearPeriodSchema: z.ZodObject<{
84
92
  }, {
85
93
  is_locked?: boolean | undefined;
86
94
  updated_by?: string | undefined;
95
+ code?: string | undefined;
87
96
  name?: string | undefined;
88
97
  agency_ids?: string[] | undefined;
89
98
  color?: string | undefined;
@@ -5,6 +5,7 @@ import { z } from 'zod';
5
5
  /* * */
6
6
  export const YearPeriodSchema = DocumentSchema.extend({
7
7
  agency_ids: z.array(z.string()).default([]),
8
+ code: z.string().optional(),
8
9
  color: z.string().optional(),
9
10
  dates: z.array(OperationalDateSchema).optional(),
10
11
  is_locked: z.boolean().default(false),
@@ -5,13 +5,13 @@ export declare const StopsParameterDefaultSchema: z.ZodObject<{
5
5
  path: z.ZodArray<z.ZodObject<{
6
6
  avg_speed: z.ZodNumber;
7
7
  dwell_time: z.ZodNumber;
8
- stop_id: z.ZodString;
8
+ stop_id: z.ZodNumber;
9
9
  }, "strip", z.ZodTypeAny, {
10
- stop_id: string;
10
+ stop_id: number;
11
11
  avg_speed: number;
12
12
  dwell_time: number;
13
13
  }, {
14
- stop_id: string;
14
+ stop_id: number;
15
15
  avg_speed: number;
16
16
  dwell_time: number;
17
17
  }>, "many">;
@@ -20,7 +20,7 @@ export declare const StopsParameterDefaultSchema: z.ZodObject<{
20
20
  kind: z.ZodLiteral<"default">;
21
21
  }, "strip", z.ZodTypeAny, {
22
22
  path: {
23
- stop_id: string;
23
+ stop_id: number;
24
24
  avg_speed: number;
25
25
  dwell_time: number;
26
26
  }[];
@@ -30,7 +30,7 @@ export declare const StopsParameterDefaultSchema: z.ZodObject<{
30
30
  vehicle_type?: string | undefined;
31
31
  }, {
32
32
  path: {
33
- stop_id: string;
33
+ stop_id: number;
34
34
  avg_speed: number;
35
35
  dwell_time: number;
36
36
  }[];
@@ -45,13 +45,13 @@ export declare const StopsParameterOverrideSchema: z.ZodObject<{
45
45
  path: z.ZodArray<z.ZodObject<{
46
46
  avg_speed: z.ZodNumber;
47
47
  dwell_time: z.ZodNumber;
48
- stop_id: z.ZodString;
48
+ stop_id: z.ZodNumber;
49
49
  }, "strip", z.ZodTypeAny, {
50
- stop_id: string;
50
+ stop_id: number;
51
51
  avg_speed: number;
52
52
  dwell_time: number;
53
53
  }, {
54
- stop_id: string;
54
+ stop_id: number;
55
55
  avg_speed: number;
56
56
  dwell_time: number;
57
57
  }>, "many">;
@@ -71,7 +71,7 @@ export declare const StopsParameterOverrideSchema: z.ZodObject<{
71
71
  year_period_ids: z.ZodArray<z.ZodString, "many">;
72
72
  }, "strip", z.ZodTypeAny, {
73
73
  path: {
74
- stop_id: string;
74
+ stop_id: number;
75
75
  avg_speed: number;
76
76
  dwell_time: number;
77
77
  }[];
@@ -84,7 +84,7 @@ export declare const StopsParameterOverrideSchema: z.ZodObject<{
84
84
  day_periods?: ("PPM" | "CD" | "PPT" | "N" | "M")[] | undefined;
85
85
  }, {
86
86
  path: {
87
- stop_id: string;
87
+ stop_id: number;
88
88
  avg_speed: number;
89
89
  dwell_time: number;
90
90
  }[];
@@ -102,13 +102,13 @@ export declare const StopsParameterSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
102
102
  path: z.ZodArray<z.ZodObject<{
103
103
  avg_speed: z.ZodNumber;
104
104
  dwell_time: z.ZodNumber;
105
- stop_id: z.ZodString;
105
+ stop_id: z.ZodNumber;
106
106
  }, "strip", z.ZodTypeAny, {
107
- stop_id: string;
107
+ stop_id: number;
108
108
  avg_speed: number;
109
109
  dwell_time: number;
110
110
  }, {
111
- stop_id: string;
111
+ stop_id: number;
112
112
  avg_speed: number;
113
113
  dwell_time: number;
114
114
  }>, "many">;
@@ -117,7 +117,7 @@ export declare const StopsParameterSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
117
117
  kind: z.ZodLiteral<"default">;
118
118
  }, "strip", z.ZodTypeAny, {
119
119
  path: {
120
- stop_id: string;
120
+ stop_id: number;
121
121
  avg_speed: number;
122
122
  dwell_time: number;
123
123
  }[];
@@ -127,7 +127,7 @@ export declare const StopsParameterSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
127
127
  vehicle_type?: string | undefined;
128
128
  }, {
129
129
  path: {
130
- stop_id: string;
130
+ stop_id: number;
131
131
  avg_speed: number;
132
132
  dwell_time: number;
133
133
  }[];
@@ -141,13 +141,13 @@ export declare const StopsParameterSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
141
141
  path: z.ZodArray<z.ZodObject<{
142
142
  avg_speed: z.ZodNumber;
143
143
  dwell_time: z.ZodNumber;
144
- stop_id: z.ZodString;
144
+ stop_id: z.ZodNumber;
145
145
  }, "strip", z.ZodTypeAny, {
146
- stop_id: string;
146
+ stop_id: number;
147
147
  avg_speed: number;
148
148
  dwell_time: number;
149
149
  }, {
150
- stop_id: string;
150
+ stop_id: number;
151
151
  avg_speed: number;
152
152
  dwell_time: number;
153
153
  }>, "many">;
@@ -167,7 +167,7 @@ export declare const StopsParameterSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
167
167
  year_period_ids: z.ZodArray<z.ZodString, "many">;
168
168
  }, "strip", z.ZodTypeAny, {
169
169
  path: {
170
- stop_id: string;
170
+ stop_id: number;
171
171
  avg_speed: number;
172
172
  dwell_time: number;
173
173
  }[];
@@ -180,7 +180,7 @@ export declare const StopsParameterSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
180
180
  day_periods?: ("PPM" | "CD" | "PPT" | "N" | "M")[] | undefined;
181
181
  }, {
182
182
  path: {
183
- stop_id: string;
183
+ stop_id: number;
184
184
  avg_speed: number;
185
185
  dwell_time: number;
186
186
  }[];
@@ -201,13 +201,13 @@ export declare const StopsParametersListSchema: z.ZodEffects<z.ZodArray<z.ZodDis
201
201
  path: z.ZodArray<z.ZodObject<{
202
202
  avg_speed: z.ZodNumber;
203
203
  dwell_time: z.ZodNumber;
204
- stop_id: z.ZodString;
204
+ stop_id: z.ZodNumber;
205
205
  }, "strip", z.ZodTypeAny, {
206
- stop_id: string;
206
+ stop_id: number;
207
207
  avg_speed: number;
208
208
  dwell_time: number;
209
209
  }, {
210
- stop_id: string;
210
+ stop_id: number;
211
211
  avg_speed: number;
212
212
  dwell_time: number;
213
213
  }>, "many">;
@@ -216,7 +216,7 @@ export declare const StopsParametersListSchema: z.ZodEffects<z.ZodArray<z.ZodDis
216
216
  kind: z.ZodLiteral<"default">;
217
217
  }, "strip", z.ZodTypeAny, {
218
218
  path: {
219
- stop_id: string;
219
+ stop_id: number;
220
220
  avg_speed: number;
221
221
  dwell_time: number;
222
222
  }[];
@@ -226,7 +226,7 @@ export declare const StopsParametersListSchema: z.ZodEffects<z.ZodArray<z.ZodDis
226
226
  vehicle_type?: string | undefined;
227
227
  }, {
228
228
  path: {
229
- stop_id: string;
229
+ stop_id: number;
230
230
  avg_speed: number;
231
231
  dwell_time: number;
232
232
  }[];
@@ -240,13 +240,13 @@ export declare const StopsParametersListSchema: z.ZodEffects<z.ZodArray<z.ZodDis
240
240
  path: z.ZodArray<z.ZodObject<{
241
241
  avg_speed: z.ZodNumber;
242
242
  dwell_time: z.ZodNumber;
243
- stop_id: z.ZodString;
243
+ stop_id: z.ZodNumber;
244
244
  }, "strip", z.ZodTypeAny, {
245
- stop_id: string;
245
+ stop_id: number;
246
246
  avg_speed: number;
247
247
  dwell_time: number;
248
248
  }, {
249
- stop_id: string;
249
+ stop_id: number;
250
250
  avg_speed: number;
251
251
  dwell_time: number;
252
252
  }>, "many">;
@@ -266,7 +266,7 @@ export declare const StopsParametersListSchema: z.ZodEffects<z.ZodArray<z.ZodDis
266
266
  year_period_ids: z.ZodArray<z.ZodString, "many">;
267
267
  }, "strip", z.ZodTypeAny, {
268
268
  path: {
269
- stop_id: string;
269
+ stop_id: number;
270
270
  avg_speed: number;
271
271
  dwell_time: number;
272
272
  }[];
@@ -279,7 +279,7 @@ export declare const StopsParametersListSchema: z.ZodEffects<z.ZodArray<z.ZodDis
279
279
  day_periods?: ("PPM" | "CD" | "PPT" | "N" | "M")[] | undefined;
280
280
  }, {
281
281
  path: {
282
- stop_id: string;
282
+ stop_id: number;
283
283
  avg_speed: number;
284
284
  dwell_time: number;
285
285
  }[];
@@ -292,7 +292,7 @@ export declare const StopsParametersListSchema: z.ZodEffects<z.ZodArray<z.ZodDis
292
292
  day_periods?: ("PPM" | "CD" | "PPT" | "N" | "M")[] | undefined;
293
293
  }>]>, "many">, ({
294
294
  path: {
295
- stop_id: string;
295
+ stop_id: number;
296
296
  avg_speed: number;
297
297
  dwell_time: number;
298
298
  }[];
@@ -302,7 +302,7 @@ export declare const StopsParametersListSchema: z.ZodEffects<z.ZodArray<z.ZodDis
302
302
  vehicle_type?: string | undefined;
303
303
  } | {
304
304
  path: {
305
- stop_id: string;
305
+ stop_id: number;
306
306
  avg_speed: number;
307
307
  dwell_time: number;
308
308
  }[];
@@ -315,7 +315,7 @@ export declare const StopsParametersListSchema: z.ZodEffects<z.ZodArray<z.ZodDis
315
315
  day_periods?: ("PPM" | "CD" | "PPT" | "N" | "M")[] | undefined;
316
316
  })[], ({
317
317
  path: {
318
- stop_id: string;
318
+ stop_id: number;
319
319
  avg_speed: number;
320
320
  dwell_time: number;
321
321
  }[];
@@ -325,7 +325,7 @@ export declare const StopsParametersListSchema: z.ZodEffects<z.ZodArray<z.ZodDis
325
325
  vehicle_type?: string | undefined;
326
326
  } | {
327
327
  path: {
328
- stop_id: string;
328
+ stop_id: number;
329
329
  avg_speed: number;
330
330
  dwell_time: number;
331
331
  }[];
@@ -1,5 +1,6 @@
1
1
  import { DayPeriodSchema } from '../dates/day-period.js';
2
2
  import { WEEKDAYS } from '../dates/weekdays.js';
3
+ import { StopIdSchema } from '../stops/stop-id.js';
3
4
  import { z } from 'zod';
4
5
  /* * */
5
6
  const StopsParameterCommonSchema = z.object({
@@ -9,7 +10,7 @@ const StopsParameterCommonSchema = z.object({
9
10
  path: z.array(z.object({
10
11
  avg_speed: z.number(),
11
12
  dwell_time: z.number(),
12
- stop_id: z.string(),
13
+ stop_id: StopIdSchema,
13
14
  })),
14
15
  vehicle_type: z.string().optional(),
15
16
  });