@tmlmobilidade/go-types-infrastructure 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.
@@ -0,0 +1,1460 @@
1
+ import { z } from 'zod';
2
+ export declare const StopSchema: z.ZodObject<{
3
+ created_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixTimestamp, string | number>;
4
+ created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
5
+ is_locked: z.ZodDefault<z.ZodBoolean>;
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
+ } & {
9
+ _id: z.ZodNumber;
10
+ flags: z.ZodDefault<z.ZodArray<z.ZodObject<{
11
+ agency_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
12
+ is_harmonized: z.ZodDefault<z.ZodBoolean>;
13
+ short_name: z.ZodString;
14
+ stop_id: z.ZodString;
15
+ }, "strip", z.ZodTypeAny, {
16
+ agency_ids: string[];
17
+ is_harmonized: boolean;
18
+ short_name: string;
19
+ stop_id: string;
20
+ }, {
21
+ short_name: string;
22
+ stop_id: string;
23
+ agency_ids?: string[] | undefined;
24
+ is_harmonized?: boolean | undefined;
25
+ }>, "many">>;
26
+ is_deleted: z.ZodDefault<z.ZodBoolean>;
27
+ jurisdiction: z.ZodDefault<z.ZodEnum<["ip", "municipality", "other", "unknown"]>>;
28
+ legacy_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
29
+ legacy_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
30
+ lifecycle_status: z.ZodDefault<z.ZodEnum<["draft", "active", "inactive", "provisional", "seasonal", "voided"]>>;
31
+ name: z.ZodString;
32
+ new_name: z.ZodDefault<z.ZodNullable<z.ZodString>>;
33
+ previous_go_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
34
+ short_name: z.ZodString;
35
+ tts_hash: z.ZodDefault<z.ZodNullable<z.ZodString>>;
36
+ tts_name: z.ZodDefault<z.ZodNullable<z.ZodString>>;
37
+ district_id: z.ZodString;
38
+ latitude: z.ZodNumber;
39
+ locality_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
40
+ longitude: z.ZodNumber;
41
+ municipality_id: z.ZodString;
42
+ parish_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
43
+ bench_status: z.ZodDefault<z.ZodEnum<["not_applicable", "unknown", "missing", "damaged", "ok"]>>;
44
+ electricity_status: z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>;
45
+ pole_status: z.ZodDefault<z.ZodEnum<["not_applicable", "unknown", "missing", "damaged", "ok"]>>;
46
+ road_type: z.ZodDefault<z.ZodEnum<["complementary_itinerary", "highway", "main_itinerary", "national_road", "regional_road", "secondary_road", "unknown"]>>;
47
+ shelter_code: z.ZodDefault<z.ZodNullable<z.ZodString>>;
48
+ shelter_frame_size: z.ZodDefault<z.ZodNullable<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
49
+ shelter_installation_date: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixTimestamp, string | number>>>;
50
+ shelter_maintainer: z.ZodDefault<z.ZodNullable<z.ZodString>>;
51
+ shelter_make: z.ZodDefault<z.ZodNullable<z.ZodString>>;
52
+ shelter_model: z.ZodDefault<z.ZodNullable<z.ZodString>>;
53
+ shelter_status: z.ZodDefault<z.ZodEnum<["not_applicable", "unknown", "missing", "damaged", "ok"]>>;
54
+ last_infrastructure_check: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixTimestamp, string | number>>>;
55
+ last_infrastructure_maintenance: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixTimestamp, string | number>>>;
56
+ last_schedules_check: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixTimestamp, string | number>>>;
57
+ last_schedules_maintenance: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixTimestamp, string | number>>>;
58
+ connections: z.ZodDefault<z.ZodArray<z.ZodEnum<["ferry", "light_rail", "subway", "train", "boat", "airport", "bike_sharing", "bike_parking", "car_parking"]>, "many">>;
59
+ facilities: z.ZodDefault<z.ZodArray<z.ZodEnum<["fire_station", "health_clinic", "historic_building", "hospital", "police_station", "school", "shopping", "transit_office", "university", "beach"]>, "many">>;
60
+ equipment: z.ZodDefault<z.ZodArray<z.ZodEnum<["pip", "mupi", "mini_pip"]>, "many">>;
61
+ has_bench: z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>;
62
+ has_mupi: z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>;
63
+ has_network_map: z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>;
64
+ has_schedules: z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>;
65
+ has_shelter: z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>;
66
+ has_stop_sign: z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>;
67
+ file_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
68
+ image_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
69
+ comments: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
70
+ message: z.ZodString;
71
+ type: z.ZodLiteral<"note">;
72
+ _id: z.ZodOptional<z.ZodString>;
73
+ created_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixTimestamp, string | number>;
74
+ created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
75
+ updated_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixTimestamp, string | number>;
76
+ updated_by: z.ZodOptional<z.ZodString>;
77
+ }, "strip", z.ZodTypeAny, {
78
+ message: string;
79
+ type: "note";
80
+ created_at: number & {
81
+ __brand: "UnixTimestamp";
82
+ };
83
+ created_by: string | null;
84
+ updated_at: number & {
85
+ __brand: "UnixTimestamp";
86
+ };
87
+ _id?: string | undefined;
88
+ updated_by?: string | undefined;
89
+ }, {
90
+ message: string;
91
+ type: "note";
92
+ created_at: string | number;
93
+ updated_at: string | number;
94
+ _id?: string | undefined;
95
+ created_by?: string | null | undefined;
96
+ updated_by?: string | undefined;
97
+ }>, z.ZodObject<{
98
+ type: z.ZodLiteral<"field_changed">;
99
+ _id: z.ZodOptional<z.ZodString>;
100
+ created_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixTimestamp, string | number>;
101
+ created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
102
+ updated_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixTimestamp, string | number>;
103
+ updated_by: z.ZodOptional<z.ZodString>;
104
+ curr_value: z.ZodAny;
105
+ field: z.ZodString;
106
+ prev_value: z.ZodAny;
107
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{
108
+ changes: z.ZodOptional<z.ZodArray<z.ZodObject<{
109
+ curr_value: z.ZodAny;
110
+ field: z.ZodString;
111
+ prev_value: z.ZodAny;
112
+ }, "strip", z.ZodTypeAny, {
113
+ field: string;
114
+ curr_value?: any;
115
+ prev_value?: any;
116
+ }, {
117
+ field: string;
118
+ curr_value?: any;
119
+ prev_value?: any;
120
+ }>, "many">>;
121
+ }, "strip", z.ZodTypeAny, {
122
+ changes?: {
123
+ field: string;
124
+ curr_value?: any;
125
+ prev_value?: any;
126
+ }[] | undefined;
127
+ }, {
128
+ changes?: {
129
+ field: string;
130
+ curr_value?: any;
131
+ prev_value?: any;
132
+ }[] | undefined;
133
+ }>>>;
134
+ }, "strip", z.ZodTypeAny, {
135
+ type: "field_changed";
136
+ created_at: number & {
137
+ __brand: "UnixTimestamp";
138
+ };
139
+ created_by: string | null;
140
+ updated_at: number & {
141
+ __brand: "UnixTimestamp";
142
+ };
143
+ field: string;
144
+ _id?: string | undefined;
145
+ updated_by?: string | undefined;
146
+ curr_value?: any;
147
+ prev_value?: any;
148
+ metadata?: {
149
+ changes?: {
150
+ field: string;
151
+ curr_value?: any;
152
+ prev_value?: any;
153
+ }[] | undefined;
154
+ } | null | undefined;
155
+ }, {
156
+ type: "field_changed";
157
+ created_at: string | number;
158
+ updated_at: string | number;
159
+ field: string;
160
+ _id?: string | undefined;
161
+ created_by?: string | null | undefined;
162
+ updated_by?: string | undefined;
163
+ curr_value?: any;
164
+ prev_value?: any;
165
+ metadata?: {
166
+ changes?: {
167
+ field: string;
168
+ curr_value?: any;
169
+ prev_value?: any;
170
+ }[] | undefined;
171
+ } | null | undefined;
172
+ }>, z.ZodObject<{
173
+ type: z.ZodLiteral<"crud">;
174
+ _id: z.ZodOptional<z.ZodString>;
175
+ created_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixTimestamp, string | number>;
176
+ created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
177
+ updated_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixTimestamp, string | number>;
178
+ updated_by: z.ZodOptional<z.ZodString>;
179
+ action: z.ZodEnum<["create", "update", "delete", "archive", "restore"]>;
180
+ }, "strip", z.ZodTypeAny, {
181
+ type: "crud";
182
+ created_at: number & {
183
+ __brand: "UnixTimestamp";
184
+ };
185
+ created_by: string | null;
186
+ updated_at: number & {
187
+ __brand: "UnixTimestamp";
188
+ };
189
+ action: "create" | "update" | "delete" | "archive" | "restore";
190
+ _id?: string | undefined;
191
+ updated_by?: string | undefined;
192
+ }, {
193
+ type: "crud";
194
+ created_at: string | number;
195
+ updated_at: string | number;
196
+ action: "create" | "update" | "delete" | "archive" | "restore";
197
+ _id?: string | undefined;
198
+ created_by?: string | null | undefined;
199
+ updated_by?: string | undefined;
200
+ }>]>, {
201
+ message: string;
202
+ type: "note";
203
+ created_at: number & {
204
+ __brand: "UnixTimestamp";
205
+ };
206
+ created_by: string | null;
207
+ updated_at: number & {
208
+ __brand: "UnixTimestamp";
209
+ };
210
+ _id?: string | undefined;
211
+ updated_by?: string | undefined;
212
+ } | {
213
+ type: "field_changed";
214
+ created_at: number & {
215
+ __brand: "UnixTimestamp";
216
+ };
217
+ created_by: string | null;
218
+ updated_at: number & {
219
+ __brand: "UnixTimestamp";
220
+ };
221
+ field: string;
222
+ _id?: string | undefined;
223
+ updated_by?: string | undefined;
224
+ curr_value?: any;
225
+ prev_value?: any;
226
+ metadata?: {
227
+ changes?: {
228
+ field: string;
229
+ curr_value?: any;
230
+ prev_value?: any;
231
+ }[] | undefined;
232
+ } | null | undefined;
233
+ } | {
234
+ type: "crud";
235
+ created_at: number & {
236
+ __brand: "UnixTimestamp";
237
+ };
238
+ created_by: string | null;
239
+ updated_at: number & {
240
+ __brand: "UnixTimestamp";
241
+ };
242
+ action: "create" | "update" | "delete" | "archive" | "restore";
243
+ _id?: string | undefined;
244
+ updated_by?: string | undefined;
245
+ }, {
246
+ message: string;
247
+ type: "note";
248
+ created_at: string | number;
249
+ updated_at: string | number;
250
+ _id?: string | undefined;
251
+ created_by?: string | null | undefined;
252
+ updated_by?: string | undefined;
253
+ } | {
254
+ type: "field_changed";
255
+ created_at: string | number;
256
+ updated_at: string | number;
257
+ field: string;
258
+ _id?: string | undefined;
259
+ created_by?: string | null | undefined;
260
+ updated_by?: string | undefined;
261
+ curr_value?: any;
262
+ prev_value?: any;
263
+ metadata?: {
264
+ changes?: {
265
+ field: string;
266
+ curr_value?: any;
267
+ prev_value?: any;
268
+ }[] | undefined;
269
+ } | null | undefined;
270
+ } | {
271
+ type: "crud";
272
+ created_at: string | number;
273
+ updated_at: string | number;
274
+ action: "create" | "update" | "delete" | "archive" | "restore";
275
+ _id?: string | undefined;
276
+ created_by?: string | null | undefined;
277
+ updated_by?: string | undefined;
278
+ }>, "many">>;
279
+ observations: z.ZodDefault<z.ZodNullable<z.ZodString>>;
280
+ associated_patterns: z.ZodDefault<z.ZodArray<z.ZodObject<{
281
+ _id: z.ZodString;
282
+ code: z.ZodString;
283
+ headsign: z.ZodString;
284
+ line_id: z.ZodString;
285
+ route_id: z.ZodString;
286
+ }, "strip", z.ZodTypeAny, {
287
+ code: string;
288
+ _id: string;
289
+ headsign: string;
290
+ line_id: string;
291
+ route_id: string;
292
+ }, {
293
+ code: string;
294
+ _id: string;
295
+ headsign: string;
296
+ line_id: string;
297
+ route_id: string;
298
+ }>, "many">>;
299
+ }, "strip", z.ZodTypeAny, {
300
+ short_name: string;
301
+ _id: number;
302
+ created_at: number & {
303
+ __brand: "UnixTimestamp";
304
+ };
305
+ created_by: string | null;
306
+ is_locked: boolean;
307
+ updated_at: number & {
308
+ __brand: "UnixTimestamp";
309
+ };
310
+ flags: {
311
+ agency_ids: string[];
312
+ is_harmonized: boolean;
313
+ short_name: string;
314
+ stop_id: string;
315
+ }[];
316
+ is_deleted: boolean;
317
+ jurisdiction: "ip" | "municipality" | "other" | "unknown";
318
+ legacy_id: string | null;
319
+ legacy_ids: string[];
320
+ lifecycle_status: "draft" | "active" | "inactive" | "provisional" | "seasonal" | "voided";
321
+ name: string;
322
+ new_name: string | null;
323
+ previous_go_id: string | null;
324
+ tts_hash: string | null;
325
+ tts_name: string | null;
326
+ district_id: string;
327
+ latitude: number;
328
+ locality_id: string | null;
329
+ longitude: number;
330
+ municipality_id: string;
331
+ parish_id: string | null;
332
+ bench_status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok";
333
+ electricity_status: "unknown" | "available" | "unavailable";
334
+ pole_status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok";
335
+ road_type: "unknown" | "complementary_itinerary" | "highway" | "main_itinerary" | "national_road" | "regional_road" | "secondary_road";
336
+ shelter_code: string | null;
337
+ shelter_frame_size: [number, number] | null;
338
+ shelter_installation_date: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null;
339
+ shelter_maintainer: string | null;
340
+ shelter_make: string | null;
341
+ shelter_model: string | null;
342
+ shelter_status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok";
343
+ last_infrastructure_check: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null;
344
+ last_infrastructure_maintenance: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null;
345
+ last_schedules_check: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null;
346
+ last_schedules_maintenance: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null;
347
+ connections: ("ferry" | "light_rail" | "subway" | "train" | "boat" | "airport" | "bike_sharing" | "bike_parking" | "car_parking")[];
348
+ facilities: ("fire_station" | "health_clinic" | "historic_building" | "hospital" | "police_station" | "school" | "shopping" | "transit_office" | "university" | "beach")[];
349
+ equipment: ("pip" | "mupi" | "mini_pip")[];
350
+ has_bench: "unknown" | "available" | "unavailable";
351
+ has_mupi: "unknown" | "available" | "unavailable";
352
+ has_network_map: "unknown" | "available" | "unavailable";
353
+ has_schedules: "unknown" | "available" | "unavailable";
354
+ has_shelter: "unknown" | "available" | "unavailable";
355
+ has_stop_sign: "unknown" | "available" | "unavailable";
356
+ file_ids: string[];
357
+ image_ids: string[];
358
+ comments: ({
359
+ message: string;
360
+ type: "note";
361
+ created_at: number & {
362
+ __brand: "UnixTimestamp";
363
+ };
364
+ created_by: string | null;
365
+ updated_at: number & {
366
+ __brand: "UnixTimestamp";
367
+ };
368
+ _id?: string | undefined;
369
+ updated_by?: string | undefined;
370
+ } | {
371
+ type: "field_changed";
372
+ created_at: number & {
373
+ __brand: "UnixTimestamp";
374
+ };
375
+ created_by: string | null;
376
+ updated_at: number & {
377
+ __brand: "UnixTimestamp";
378
+ };
379
+ field: string;
380
+ _id?: string | undefined;
381
+ updated_by?: string | undefined;
382
+ curr_value?: any;
383
+ prev_value?: any;
384
+ metadata?: {
385
+ changes?: {
386
+ field: string;
387
+ curr_value?: any;
388
+ prev_value?: any;
389
+ }[] | undefined;
390
+ } | null | undefined;
391
+ } | {
392
+ type: "crud";
393
+ created_at: number & {
394
+ __brand: "UnixTimestamp";
395
+ };
396
+ created_by: string | null;
397
+ updated_at: number & {
398
+ __brand: "UnixTimestamp";
399
+ };
400
+ action: "create" | "update" | "delete" | "archive" | "restore";
401
+ _id?: string | undefined;
402
+ updated_by?: string | undefined;
403
+ })[];
404
+ observations: string | null;
405
+ associated_patterns: {
406
+ code: string;
407
+ _id: string;
408
+ headsign: string;
409
+ line_id: string;
410
+ route_id: string;
411
+ }[];
412
+ updated_by?: string | undefined;
413
+ }, {
414
+ short_name: string;
415
+ _id: number;
416
+ created_at: string | number;
417
+ updated_at: string | number;
418
+ name: string;
419
+ district_id: string;
420
+ latitude: number;
421
+ longitude: number;
422
+ municipality_id: string;
423
+ created_by?: string | null | undefined;
424
+ is_locked?: boolean | undefined;
425
+ updated_by?: string | undefined;
426
+ flags?: {
427
+ short_name: string;
428
+ stop_id: string;
429
+ agency_ids?: string[] | undefined;
430
+ is_harmonized?: boolean | undefined;
431
+ }[] | undefined;
432
+ is_deleted?: boolean | undefined;
433
+ jurisdiction?: "ip" | "municipality" | "other" | "unknown" | undefined;
434
+ legacy_id?: string | null | undefined;
435
+ legacy_ids?: string[] | undefined;
436
+ lifecycle_status?: "draft" | "active" | "inactive" | "provisional" | "seasonal" | "voided" | undefined;
437
+ new_name?: string | null | undefined;
438
+ previous_go_id?: string | null | undefined;
439
+ tts_hash?: string | null | undefined;
440
+ tts_name?: string | null | undefined;
441
+ locality_id?: string | null | undefined;
442
+ parish_id?: string | null | undefined;
443
+ bench_status?: "unknown" | "not_applicable" | "missing" | "damaged" | "ok" | undefined;
444
+ electricity_status?: "unknown" | "available" | "unavailable" | undefined;
445
+ pole_status?: "unknown" | "not_applicable" | "missing" | "damaged" | "ok" | undefined;
446
+ road_type?: "unknown" | "complementary_itinerary" | "highway" | "main_itinerary" | "national_road" | "regional_road" | "secondary_road" | undefined;
447
+ shelter_code?: string | null | undefined;
448
+ shelter_frame_size?: [number, number] | null | undefined;
449
+ shelter_installation_date?: string | number | null | undefined;
450
+ shelter_maintainer?: string | null | undefined;
451
+ shelter_make?: string | null | undefined;
452
+ shelter_model?: string | null | undefined;
453
+ shelter_status?: "unknown" | "not_applicable" | "missing" | "damaged" | "ok" | undefined;
454
+ last_infrastructure_check?: string | number | null | undefined;
455
+ last_infrastructure_maintenance?: string | number | null | undefined;
456
+ last_schedules_check?: string | number | null | undefined;
457
+ last_schedules_maintenance?: string | number | null | undefined;
458
+ connections?: ("ferry" | "light_rail" | "subway" | "train" | "boat" | "airport" | "bike_sharing" | "bike_parking" | "car_parking")[] | undefined;
459
+ facilities?: ("fire_station" | "health_clinic" | "historic_building" | "hospital" | "police_station" | "school" | "shopping" | "transit_office" | "university" | "beach")[] | undefined;
460
+ equipment?: ("pip" | "mupi" | "mini_pip")[] | undefined;
461
+ has_bench?: "unknown" | "available" | "unavailable" | undefined;
462
+ has_mupi?: "unknown" | "available" | "unavailable" | undefined;
463
+ has_network_map?: "unknown" | "available" | "unavailable" | undefined;
464
+ has_schedules?: "unknown" | "available" | "unavailable" | undefined;
465
+ has_shelter?: "unknown" | "available" | "unavailable" | undefined;
466
+ has_stop_sign?: "unknown" | "available" | "unavailable" | undefined;
467
+ file_ids?: string[] | undefined;
468
+ image_ids?: string[] | undefined;
469
+ comments?: ({
470
+ message: string;
471
+ type: "note";
472
+ created_at: string | number;
473
+ updated_at: string | number;
474
+ _id?: string | undefined;
475
+ created_by?: string | null | undefined;
476
+ updated_by?: string | undefined;
477
+ } | {
478
+ type: "field_changed";
479
+ created_at: string | number;
480
+ updated_at: string | number;
481
+ field: string;
482
+ _id?: string | undefined;
483
+ created_by?: string | null | undefined;
484
+ updated_by?: string | undefined;
485
+ curr_value?: any;
486
+ prev_value?: any;
487
+ metadata?: {
488
+ changes?: {
489
+ field: string;
490
+ curr_value?: any;
491
+ prev_value?: any;
492
+ }[] | undefined;
493
+ } | null | undefined;
494
+ } | {
495
+ type: "crud";
496
+ created_at: string | number;
497
+ updated_at: string | number;
498
+ action: "create" | "update" | "delete" | "archive" | "restore";
499
+ _id?: string | undefined;
500
+ created_by?: string | null | undefined;
501
+ updated_by?: string | undefined;
502
+ })[] | undefined;
503
+ observations?: string | null | undefined;
504
+ associated_patterns?: {
505
+ code: string;
506
+ _id: string;
507
+ headsign: string;
508
+ line_id: string;
509
+ route_id: string;
510
+ }[] | undefined;
511
+ }>;
512
+ export declare const CreateStopSchema: z.ZodObject<Omit<{
513
+ created_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixTimestamp, string | number>;
514
+ created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
515
+ is_locked: z.ZodDefault<z.ZodBoolean>;
516
+ updated_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixTimestamp, string | number>;
517
+ updated_by: z.ZodOptional<z.ZodString>;
518
+ } & {
519
+ _id: z.ZodNumber;
520
+ flags: z.ZodDefault<z.ZodArray<z.ZodObject<{
521
+ agency_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
522
+ is_harmonized: z.ZodDefault<z.ZodBoolean>;
523
+ short_name: z.ZodString;
524
+ stop_id: z.ZodString;
525
+ }, "strip", z.ZodTypeAny, {
526
+ agency_ids: string[];
527
+ is_harmonized: boolean;
528
+ short_name: string;
529
+ stop_id: string;
530
+ }, {
531
+ short_name: string;
532
+ stop_id: string;
533
+ agency_ids?: string[] | undefined;
534
+ is_harmonized?: boolean | undefined;
535
+ }>, "many">>;
536
+ is_deleted: z.ZodDefault<z.ZodBoolean>;
537
+ jurisdiction: z.ZodDefault<z.ZodEnum<["ip", "municipality", "other", "unknown"]>>;
538
+ legacy_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
539
+ legacy_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
540
+ lifecycle_status: z.ZodDefault<z.ZodEnum<["draft", "active", "inactive", "provisional", "seasonal", "voided"]>>;
541
+ name: z.ZodString;
542
+ new_name: z.ZodDefault<z.ZodNullable<z.ZodString>>;
543
+ previous_go_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
544
+ short_name: z.ZodString;
545
+ tts_hash: z.ZodDefault<z.ZodNullable<z.ZodString>>;
546
+ tts_name: z.ZodDefault<z.ZodNullable<z.ZodString>>;
547
+ district_id: z.ZodString;
548
+ latitude: z.ZodNumber;
549
+ locality_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
550
+ longitude: z.ZodNumber;
551
+ municipality_id: z.ZodString;
552
+ parish_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
553
+ bench_status: z.ZodDefault<z.ZodEnum<["not_applicable", "unknown", "missing", "damaged", "ok"]>>;
554
+ electricity_status: z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>;
555
+ pole_status: z.ZodDefault<z.ZodEnum<["not_applicable", "unknown", "missing", "damaged", "ok"]>>;
556
+ road_type: z.ZodDefault<z.ZodEnum<["complementary_itinerary", "highway", "main_itinerary", "national_road", "regional_road", "secondary_road", "unknown"]>>;
557
+ shelter_code: z.ZodDefault<z.ZodNullable<z.ZodString>>;
558
+ shelter_frame_size: z.ZodDefault<z.ZodNullable<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
559
+ shelter_installation_date: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixTimestamp, string | number>>>;
560
+ shelter_maintainer: z.ZodDefault<z.ZodNullable<z.ZodString>>;
561
+ shelter_make: z.ZodDefault<z.ZodNullable<z.ZodString>>;
562
+ shelter_model: z.ZodDefault<z.ZodNullable<z.ZodString>>;
563
+ shelter_status: z.ZodDefault<z.ZodEnum<["not_applicable", "unknown", "missing", "damaged", "ok"]>>;
564
+ last_infrastructure_check: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixTimestamp, string | number>>>;
565
+ last_infrastructure_maintenance: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixTimestamp, string | number>>>;
566
+ last_schedules_check: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixTimestamp, string | number>>>;
567
+ last_schedules_maintenance: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixTimestamp, string | number>>>;
568
+ connections: z.ZodDefault<z.ZodArray<z.ZodEnum<["ferry", "light_rail", "subway", "train", "boat", "airport", "bike_sharing", "bike_parking", "car_parking"]>, "many">>;
569
+ facilities: z.ZodDefault<z.ZodArray<z.ZodEnum<["fire_station", "health_clinic", "historic_building", "hospital", "police_station", "school", "shopping", "transit_office", "university", "beach"]>, "many">>;
570
+ equipment: z.ZodDefault<z.ZodArray<z.ZodEnum<["pip", "mupi", "mini_pip"]>, "many">>;
571
+ has_bench: z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>;
572
+ has_mupi: z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>;
573
+ has_network_map: z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>;
574
+ has_schedules: z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>;
575
+ has_shelter: z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>;
576
+ has_stop_sign: z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>;
577
+ file_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
578
+ image_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
579
+ comments: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
580
+ message: z.ZodString;
581
+ type: z.ZodLiteral<"note">;
582
+ _id: z.ZodOptional<z.ZodString>;
583
+ created_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixTimestamp, string | number>;
584
+ created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
585
+ updated_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixTimestamp, string | number>;
586
+ updated_by: z.ZodOptional<z.ZodString>;
587
+ }, "strip", z.ZodTypeAny, {
588
+ message: string;
589
+ type: "note";
590
+ created_at: number & {
591
+ __brand: "UnixTimestamp";
592
+ };
593
+ created_by: string | null;
594
+ updated_at: number & {
595
+ __brand: "UnixTimestamp";
596
+ };
597
+ _id?: string | undefined;
598
+ updated_by?: string | undefined;
599
+ }, {
600
+ message: string;
601
+ type: "note";
602
+ created_at: string | number;
603
+ updated_at: string | number;
604
+ _id?: string | undefined;
605
+ created_by?: string | null | undefined;
606
+ updated_by?: string | undefined;
607
+ }>, z.ZodObject<{
608
+ type: z.ZodLiteral<"field_changed">;
609
+ _id: z.ZodOptional<z.ZodString>;
610
+ created_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixTimestamp, string | number>;
611
+ created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
612
+ updated_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixTimestamp, string | number>;
613
+ updated_by: z.ZodOptional<z.ZodString>;
614
+ curr_value: z.ZodAny;
615
+ field: z.ZodString;
616
+ prev_value: z.ZodAny;
617
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{
618
+ changes: z.ZodOptional<z.ZodArray<z.ZodObject<{
619
+ curr_value: z.ZodAny;
620
+ field: z.ZodString;
621
+ prev_value: z.ZodAny;
622
+ }, "strip", z.ZodTypeAny, {
623
+ field: string;
624
+ curr_value?: any;
625
+ prev_value?: any;
626
+ }, {
627
+ field: string;
628
+ curr_value?: any;
629
+ prev_value?: any;
630
+ }>, "many">>;
631
+ }, "strip", z.ZodTypeAny, {
632
+ changes?: {
633
+ field: string;
634
+ curr_value?: any;
635
+ prev_value?: any;
636
+ }[] | undefined;
637
+ }, {
638
+ changes?: {
639
+ field: string;
640
+ curr_value?: any;
641
+ prev_value?: any;
642
+ }[] | undefined;
643
+ }>>>;
644
+ }, "strip", z.ZodTypeAny, {
645
+ type: "field_changed";
646
+ created_at: number & {
647
+ __brand: "UnixTimestamp";
648
+ };
649
+ created_by: string | null;
650
+ updated_at: number & {
651
+ __brand: "UnixTimestamp";
652
+ };
653
+ field: string;
654
+ _id?: string | undefined;
655
+ updated_by?: string | undefined;
656
+ curr_value?: any;
657
+ prev_value?: any;
658
+ metadata?: {
659
+ changes?: {
660
+ field: string;
661
+ curr_value?: any;
662
+ prev_value?: any;
663
+ }[] | undefined;
664
+ } | null | undefined;
665
+ }, {
666
+ type: "field_changed";
667
+ created_at: string | number;
668
+ updated_at: string | number;
669
+ field: string;
670
+ _id?: string | undefined;
671
+ created_by?: string | null | undefined;
672
+ updated_by?: string | undefined;
673
+ curr_value?: any;
674
+ prev_value?: any;
675
+ metadata?: {
676
+ changes?: {
677
+ field: string;
678
+ curr_value?: any;
679
+ prev_value?: any;
680
+ }[] | undefined;
681
+ } | null | undefined;
682
+ }>, z.ZodObject<{
683
+ type: z.ZodLiteral<"crud">;
684
+ _id: z.ZodOptional<z.ZodString>;
685
+ created_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixTimestamp, string | number>;
686
+ created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
687
+ updated_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixTimestamp, string | number>;
688
+ updated_by: z.ZodOptional<z.ZodString>;
689
+ action: z.ZodEnum<["create", "update", "delete", "archive", "restore"]>;
690
+ }, "strip", z.ZodTypeAny, {
691
+ type: "crud";
692
+ created_at: number & {
693
+ __brand: "UnixTimestamp";
694
+ };
695
+ created_by: string | null;
696
+ updated_at: number & {
697
+ __brand: "UnixTimestamp";
698
+ };
699
+ action: "create" | "update" | "delete" | "archive" | "restore";
700
+ _id?: string | undefined;
701
+ updated_by?: string | undefined;
702
+ }, {
703
+ type: "crud";
704
+ created_at: string | number;
705
+ updated_at: string | number;
706
+ action: "create" | "update" | "delete" | "archive" | "restore";
707
+ _id?: string | undefined;
708
+ created_by?: string | null | undefined;
709
+ updated_by?: string | undefined;
710
+ }>]>, {
711
+ message: string;
712
+ type: "note";
713
+ created_at: number & {
714
+ __brand: "UnixTimestamp";
715
+ };
716
+ created_by: string | null;
717
+ updated_at: number & {
718
+ __brand: "UnixTimestamp";
719
+ };
720
+ _id?: string | undefined;
721
+ updated_by?: string | undefined;
722
+ } | {
723
+ type: "field_changed";
724
+ created_at: number & {
725
+ __brand: "UnixTimestamp";
726
+ };
727
+ created_by: string | null;
728
+ updated_at: number & {
729
+ __brand: "UnixTimestamp";
730
+ };
731
+ field: string;
732
+ _id?: string | undefined;
733
+ updated_by?: string | undefined;
734
+ curr_value?: any;
735
+ prev_value?: any;
736
+ metadata?: {
737
+ changes?: {
738
+ field: string;
739
+ curr_value?: any;
740
+ prev_value?: any;
741
+ }[] | undefined;
742
+ } | null | undefined;
743
+ } | {
744
+ type: "crud";
745
+ created_at: number & {
746
+ __brand: "UnixTimestamp";
747
+ };
748
+ created_by: string | null;
749
+ updated_at: number & {
750
+ __brand: "UnixTimestamp";
751
+ };
752
+ action: "create" | "update" | "delete" | "archive" | "restore";
753
+ _id?: string | undefined;
754
+ updated_by?: string | undefined;
755
+ }, {
756
+ message: string;
757
+ type: "note";
758
+ created_at: string | number;
759
+ updated_at: string | number;
760
+ _id?: string | undefined;
761
+ created_by?: string | null | undefined;
762
+ updated_by?: string | undefined;
763
+ } | {
764
+ type: "field_changed";
765
+ created_at: string | number;
766
+ updated_at: string | number;
767
+ field: string;
768
+ _id?: string | undefined;
769
+ created_by?: string | null | undefined;
770
+ updated_by?: string | undefined;
771
+ curr_value?: any;
772
+ prev_value?: any;
773
+ metadata?: {
774
+ changes?: {
775
+ field: string;
776
+ curr_value?: any;
777
+ prev_value?: any;
778
+ }[] | undefined;
779
+ } | null | undefined;
780
+ } | {
781
+ type: "crud";
782
+ created_at: string | number;
783
+ updated_at: string | number;
784
+ action: "create" | "update" | "delete" | "archive" | "restore";
785
+ _id?: string | undefined;
786
+ created_by?: string | null | undefined;
787
+ updated_by?: string | undefined;
788
+ }>, "many">>;
789
+ observations: z.ZodDefault<z.ZodNullable<z.ZodString>>;
790
+ associated_patterns: z.ZodDefault<z.ZodArray<z.ZodObject<{
791
+ _id: z.ZodString;
792
+ code: z.ZodString;
793
+ headsign: z.ZodString;
794
+ line_id: z.ZodString;
795
+ route_id: z.ZodString;
796
+ }, "strip", z.ZodTypeAny, {
797
+ code: string;
798
+ _id: string;
799
+ headsign: string;
800
+ line_id: string;
801
+ route_id: string;
802
+ }, {
803
+ code: string;
804
+ _id: string;
805
+ headsign: string;
806
+ line_id: string;
807
+ route_id: string;
808
+ }>, "many">>;
809
+ }, "_id" | "created_at" | "updated_at" | "associated_patterns">, "strip", z.ZodTypeAny, {
810
+ short_name: string;
811
+ created_by: string | null;
812
+ is_locked: boolean;
813
+ flags: {
814
+ agency_ids: string[];
815
+ is_harmonized: boolean;
816
+ short_name: string;
817
+ stop_id: string;
818
+ }[];
819
+ is_deleted: boolean;
820
+ jurisdiction: "ip" | "municipality" | "other" | "unknown";
821
+ legacy_id: string | null;
822
+ legacy_ids: string[];
823
+ lifecycle_status: "draft" | "active" | "inactive" | "provisional" | "seasonal" | "voided";
824
+ name: string;
825
+ new_name: string | null;
826
+ previous_go_id: string | null;
827
+ tts_hash: string | null;
828
+ tts_name: string | null;
829
+ district_id: string;
830
+ latitude: number;
831
+ locality_id: string | null;
832
+ longitude: number;
833
+ municipality_id: string;
834
+ parish_id: string | null;
835
+ bench_status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok";
836
+ electricity_status: "unknown" | "available" | "unavailable";
837
+ pole_status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok";
838
+ road_type: "unknown" | "complementary_itinerary" | "highway" | "main_itinerary" | "national_road" | "regional_road" | "secondary_road";
839
+ shelter_code: string | null;
840
+ shelter_frame_size: [number, number] | null;
841
+ shelter_installation_date: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null;
842
+ shelter_maintainer: string | null;
843
+ shelter_make: string | null;
844
+ shelter_model: string | null;
845
+ shelter_status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok";
846
+ last_infrastructure_check: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null;
847
+ last_infrastructure_maintenance: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null;
848
+ last_schedules_check: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null;
849
+ last_schedules_maintenance: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null;
850
+ connections: ("ferry" | "light_rail" | "subway" | "train" | "boat" | "airport" | "bike_sharing" | "bike_parking" | "car_parking")[];
851
+ facilities: ("fire_station" | "health_clinic" | "historic_building" | "hospital" | "police_station" | "school" | "shopping" | "transit_office" | "university" | "beach")[];
852
+ equipment: ("pip" | "mupi" | "mini_pip")[];
853
+ has_bench: "unknown" | "available" | "unavailable";
854
+ has_mupi: "unknown" | "available" | "unavailable";
855
+ has_network_map: "unknown" | "available" | "unavailable";
856
+ has_schedules: "unknown" | "available" | "unavailable";
857
+ has_shelter: "unknown" | "available" | "unavailable";
858
+ has_stop_sign: "unknown" | "available" | "unavailable";
859
+ file_ids: string[];
860
+ image_ids: string[];
861
+ comments: ({
862
+ message: string;
863
+ type: "note";
864
+ created_at: number & {
865
+ __brand: "UnixTimestamp";
866
+ };
867
+ created_by: string | null;
868
+ updated_at: number & {
869
+ __brand: "UnixTimestamp";
870
+ };
871
+ _id?: string | undefined;
872
+ updated_by?: string | undefined;
873
+ } | {
874
+ type: "field_changed";
875
+ created_at: number & {
876
+ __brand: "UnixTimestamp";
877
+ };
878
+ created_by: string | null;
879
+ updated_at: number & {
880
+ __brand: "UnixTimestamp";
881
+ };
882
+ field: string;
883
+ _id?: string | undefined;
884
+ updated_by?: string | undefined;
885
+ curr_value?: any;
886
+ prev_value?: any;
887
+ metadata?: {
888
+ changes?: {
889
+ field: string;
890
+ curr_value?: any;
891
+ prev_value?: any;
892
+ }[] | undefined;
893
+ } | null | undefined;
894
+ } | {
895
+ type: "crud";
896
+ created_at: number & {
897
+ __brand: "UnixTimestamp";
898
+ };
899
+ created_by: string | null;
900
+ updated_at: number & {
901
+ __brand: "UnixTimestamp";
902
+ };
903
+ action: "create" | "update" | "delete" | "archive" | "restore";
904
+ _id?: string | undefined;
905
+ updated_by?: string | undefined;
906
+ })[];
907
+ observations: string | null;
908
+ updated_by?: string | undefined;
909
+ }, {
910
+ short_name: string;
911
+ name: string;
912
+ district_id: string;
913
+ latitude: number;
914
+ longitude: number;
915
+ municipality_id: string;
916
+ created_by?: string | null | undefined;
917
+ is_locked?: boolean | undefined;
918
+ updated_by?: string | undefined;
919
+ flags?: {
920
+ short_name: string;
921
+ stop_id: string;
922
+ agency_ids?: string[] | undefined;
923
+ is_harmonized?: boolean | undefined;
924
+ }[] | undefined;
925
+ is_deleted?: boolean | undefined;
926
+ jurisdiction?: "ip" | "municipality" | "other" | "unknown" | undefined;
927
+ legacy_id?: string | null | undefined;
928
+ legacy_ids?: string[] | undefined;
929
+ lifecycle_status?: "draft" | "active" | "inactive" | "provisional" | "seasonal" | "voided" | undefined;
930
+ new_name?: string | null | undefined;
931
+ previous_go_id?: string | null | undefined;
932
+ tts_hash?: string | null | undefined;
933
+ tts_name?: string | null | undefined;
934
+ locality_id?: string | null | undefined;
935
+ parish_id?: string | null | undefined;
936
+ bench_status?: "unknown" | "not_applicable" | "missing" | "damaged" | "ok" | undefined;
937
+ electricity_status?: "unknown" | "available" | "unavailable" | undefined;
938
+ pole_status?: "unknown" | "not_applicable" | "missing" | "damaged" | "ok" | undefined;
939
+ road_type?: "unknown" | "complementary_itinerary" | "highway" | "main_itinerary" | "national_road" | "regional_road" | "secondary_road" | undefined;
940
+ shelter_code?: string | null | undefined;
941
+ shelter_frame_size?: [number, number] | null | undefined;
942
+ shelter_installation_date?: string | number | null | undefined;
943
+ shelter_maintainer?: string | null | undefined;
944
+ shelter_make?: string | null | undefined;
945
+ shelter_model?: string | null | undefined;
946
+ shelter_status?: "unknown" | "not_applicable" | "missing" | "damaged" | "ok" | undefined;
947
+ last_infrastructure_check?: string | number | null | undefined;
948
+ last_infrastructure_maintenance?: string | number | null | undefined;
949
+ last_schedules_check?: string | number | null | undefined;
950
+ last_schedules_maintenance?: string | number | null | undefined;
951
+ connections?: ("ferry" | "light_rail" | "subway" | "train" | "boat" | "airport" | "bike_sharing" | "bike_parking" | "car_parking")[] | undefined;
952
+ facilities?: ("fire_station" | "health_clinic" | "historic_building" | "hospital" | "police_station" | "school" | "shopping" | "transit_office" | "university" | "beach")[] | undefined;
953
+ equipment?: ("pip" | "mupi" | "mini_pip")[] | undefined;
954
+ has_bench?: "unknown" | "available" | "unavailable" | undefined;
955
+ has_mupi?: "unknown" | "available" | "unavailable" | undefined;
956
+ has_network_map?: "unknown" | "available" | "unavailable" | undefined;
957
+ has_schedules?: "unknown" | "available" | "unavailable" | undefined;
958
+ has_shelter?: "unknown" | "available" | "unavailable" | undefined;
959
+ has_stop_sign?: "unknown" | "available" | "unavailable" | undefined;
960
+ file_ids?: string[] | undefined;
961
+ image_ids?: string[] | undefined;
962
+ comments?: ({
963
+ message: string;
964
+ type: "note";
965
+ created_at: string | number;
966
+ updated_at: string | number;
967
+ _id?: string | undefined;
968
+ created_by?: string | null | undefined;
969
+ updated_by?: string | undefined;
970
+ } | {
971
+ type: "field_changed";
972
+ created_at: string | number;
973
+ updated_at: string | number;
974
+ field: string;
975
+ _id?: string | undefined;
976
+ created_by?: string | null | undefined;
977
+ updated_by?: string | undefined;
978
+ curr_value?: any;
979
+ prev_value?: any;
980
+ metadata?: {
981
+ changes?: {
982
+ field: string;
983
+ curr_value?: any;
984
+ prev_value?: any;
985
+ }[] | undefined;
986
+ } | null | undefined;
987
+ } | {
988
+ type: "crud";
989
+ created_at: string | number;
990
+ updated_at: string | number;
991
+ action: "create" | "update" | "delete" | "archive" | "restore";
992
+ _id?: string | undefined;
993
+ created_by?: string | null | undefined;
994
+ updated_by?: string | undefined;
995
+ })[] | undefined;
996
+ observations?: string | null | undefined;
997
+ }>;
998
+ export declare const UpdateStopSchema: z.ZodObject<{
999
+ short_name: z.ZodOptional<z.ZodString>;
1000
+ is_locked: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1001
+ updated_by: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1002
+ flags: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
1003
+ agency_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1004
+ is_harmonized: z.ZodDefault<z.ZodBoolean>;
1005
+ short_name: z.ZodString;
1006
+ stop_id: z.ZodString;
1007
+ }, "strip", z.ZodTypeAny, {
1008
+ agency_ids: string[];
1009
+ is_harmonized: boolean;
1010
+ short_name: string;
1011
+ stop_id: string;
1012
+ }, {
1013
+ short_name: string;
1014
+ stop_id: string;
1015
+ agency_ids?: string[] | undefined;
1016
+ is_harmonized?: boolean | undefined;
1017
+ }>, "many">>>;
1018
+ is_deleted: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1019
+ jurisdiction: z.ZodOptional<z.ZodDefault<z.ZodEnum<["ip", "municipality", "other", "unknown"]>>>;
1020
+ legacy_id: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>;
1021
+ legacy_ids: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
1022
+ lifecycle_status: z.ZodOptional<z.ZodDefault<z.ZodEnum<["draft", "active", "inactive", "provisional", "seasonal", "voided"]>>>;
1023
+ name: z.ZodOptional<z.ZodString>;
1024
+ new_name: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>;
1025
+ previous_go_id: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>;
1026
+ tts_hash: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>;
1027
+ tts_name: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>;
1028
+ district_id: z.ZodOptional<z.ZodString>;
1029
+ latitude: z.ZodOptional<z.ZodNumber>;
1030
+ locality_id: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>;
1031
+ longitude: z.ZodOptional<z.ZodNumber>;
1032
+ municipality_id: z.ZodOptional<z.ZodString>;
1033
+ parish_id: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>;
1034
+ bench_status: z.ZodOptional<z.ZodDefault<z.ZodEnum<["not_applicable", "unknown", "missing", "damaged", "ok"]>>>;
1035
+ electricity_status: z.ZodOptional<z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>>;
1036
+ pole_status: z.ZodOptional<z.ZodDefault<z.ZodEnum<["not_applicable", "unknown", "missing", "damaged", "ok"]>>>;
1037
+ road_type: z.ZodOptional<z.ZodDefault<z.ZodEnum<["complementary_itinerary", "highway", "main_itinerary", "national_road", "regional_road", "secondary_road", "unknown"]>>>;
1038
+ shelter_code: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>;
1039
+ shelter_frame_size: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>>;
1040
+ shelter_installation_date: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixTimestamp, string | number>>>>;
1041
+ shelter_maintainer: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>;
1042
+ shelter_make: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>;
1043
+ shelter_model: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>;
1044
+ shelter_status: z.ZodOptional<z.ZodDefault<z.ZodEnum<["not_applicable", "unknown", "missing", "damaged", "ok"]>>>;
1045
+ last_infrastructure_check: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixTimestamp, string | number>>>>;
1046
+ last_infrastructure_maintenance: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixTimestamp, string | number>>>>;
1047
+ last_schedules_check: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixTimestamp, string | number>>>>;
1048
+ last_schedules_maintenance: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixTimestamp, string | number>>>>;
1049
+ connections: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodEnum<["ferry", "light_rail", "subway", "train", "boat", "airport", "bike_sharing", "bike_parking", "car_parking"]>, "many">>>;
1050
+ facilities: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodEnum<["fire_station", "health_clinic", "historic_building", "hospital", "police_station", "school", "shopping", "transit_office", "university", "beach"]>, "many">>>;
1051
+ equipment: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodEnum<["pip", "mupi", "mini_pip"]>, "many">>>;
1052
+ has_bench: z.ZodOptional<z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>>;
1053
+ has_mupi: z.ZodOptional<z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>>;
1054
+ has_network_map: z.ZodOptional<z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>>;
1055
+ has_schedules: z.ZodOptional<z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>>;
1056
+ has_shelter: z.ZodOptional<z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>>;
1057
+ has_stop_sign: z.ZodOptional<z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>>;
1058
+ file_ids: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
1059
+ image_ids: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
1060
+ comments: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1061
+ message: z.ZodString;
1062
+ type: z.ZodLiteral<"note">;
1063
+ _id: z.ZodOptional<z.ZodString>;
1064
+ created_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixTimestamp, string | number>;
1065
+ created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1066
+ updated_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixTimestamp, string | number>;
1067
+ updated_by: z.ZodOptional<z.ZodString>;
1068
+ }, "strip", z.ZodTypeAny, {
1069
+ message: string;
1070
+ type: "note";
1071
+ created_at: number & {
1072
+ __brand: "UnixTimestamp";
1073
+ };
1074
+ created_by: string | null;
1075
+ updated_at: number & {
1076
+ __brand: "UnixTimestamp";
1077
+ };
1078
+ _id?: string | undefined;
1079
+ updated_by?: string | undefined;
1080
+ }, {
1081
+ message: string;
1082
+ type: "note";
1083
+ created_at: string | number;
1084
+ updated_at: string | number;
1085
+ _id?: string | undefined;
1086
+ created_by?: string | null | undefined;
1087
+ updated_by?: string | undefined;
1088
+ }>, z.ZodObject<{
1089
+ type: z.ZodLiteral<"field_changed">;
1090
+ _id: z.ZodOptional<z.ZodString>;
1091
+ created_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixTimestamp, string | number>;
1092
+ created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1093
+ updated_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixTimestamp, string | number>;
1094
+ updated_by: z.ZodOptional<z.ZodString>;
1095
+ curr_value: z.ZodAny;
1096
+ field: z.ZodString;
1097
+ prev_value: z.ZodAny;
1098
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1099
+ changes: z.ZodOptional<z.ZodArray<z.ZodObject<{
1100
+ curr_value: z.ZodAny;
1101
+ field: z.ZodString;
1102
+ prev_value: z.ZodAny;
1103
+ }, "strip", z.ZodTypeAny, {
1104
+ field: string;
1105
+ curr_value?: any;
1106
+ prev_value?: any;
1107
+ }, {
1108
+ field: string;
1109
+ curr_value?: any;
1110
+ prev_value?: any;
1111
+ }>, "many">>;
1112
+ }, "strip", z.ZodTypeAny, {
1113
+ changes?: {
1114
+ field: string;
1115
+ curr_value?: any;
1116
+ prev_value?: any;
1117
+ }[] | undefined;
1118
+ }, {
1119
+ changes?: {
1120
+ field: string;
1121
+ curr_value?: any;
1122
+ prev_value?: any;
1123
+ }[] | undefined;
1124
+ }>>>;
1125
+ }, "strip", z.ZodTypeAny, {
1126
+ type: "field_changed";
1127
+ created_at: number & {
1128
+ __brand: "UnixTimestamp";
1129
+ };
1130
+ created_by: string | null;
1131
+ updated_at: number & {
1132
+ __brand: "UnixTimestamp";
1133
+ };
1134
+ field: string;
1135
+ _id?: string | undefined;
1136
+ updated_by?: string | undefined;
1137
+ curr_value?: any;
1138
+ prev_value?: any;
1139
+ metadata?: {
1140
+ changes?: {
1141
+ field: string;
1142
+ curr_value?: any;
1143
+ prev_value?: any;
1144
+ }[] | undefined;
1145
+ } | null | undefined;
1146
+ }, {
1147
+ type: "field_changed";
1148
+ created_at: string | number;
1149
+ updated_at: string | number;
1150
+ field: string;
1151
+ _id?: string | undefined;
1152
+ created_by?: string | null | undefined;
1153
+ updated_by?: string | undefined;
1154
+ curr_value?: any;
1155
+ prev_value?: any;
1156
+ metadata?: {
1157
+ changes?: {
1158
+ field: string;
1159
+ curr_value?: any;
1160
+ prev_value?: any;
1161
+ }[] | undefined;
1162
+ } | null | undefined;
1163
+ }>, z.ZodObject<{
1164
+ type: z.ZodLiteral<"crud">;
1165
+ _id: z.ZodOptional<z.ZodString>;
1166
+ created_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixTimestamp, string | number>;
1167
+ created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1168
+ updated_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixTimestamp, string | number>;
1169
+ updated_by: z.ZodOptional<z.ZodString>;
1170
+ action: z.ZodEnum<["create", "update", "delete", "archive", "restore"]>;
1171
+ }, "strip", z.ZodTypeAny, {
1172
+ type: "crud";
1173
+ created_at: number & {
1174
+ __brand: "UnixTimestamp";
1175
+ };
1176
+ created_by: string | null;
1177
+ updated_at: number & {
1178
+ __brand: "UnixTimestamp";
1179
+ };
1180
+ action: "create" | "update" | "delete" | "archive" | "restore";
1181
+ _id?: string | undefined;
1182
+ updated_by?: string | undefined;
1183
+ }, {
1184
+ type: "crud";
1185
+ created_at: string | number;
1186
+ updated_at: string | number;
1187
+ action: "create" | "update" | "delete" | "archive" | "restore";
1188
+ _id?: string | undefined;
1189
+ created_by?: string | null | undefined;
1190
+ updated_by?: string | undefined;
1191
+ }>]>, {
1192
+ message: string;
1193
+ type: "note";
1194
+ created_at: number & {
1195
+ __brand: "UnixTimestamp";
1196
+ };
1197
+ created_by: string | null;
1198
+ updated_at: number & {
1199
+ __brand: "UnixTimestamp";
1200
+ };
1201
+ _id?: string | undefined;
1202
+ updated_by?: string | undefined;
1203
+ } | {
1204
+ type: "field_changed";
1205
+ created_at: number & {
1206
+ __brand: "UnixTimestamp";
1207
+ };
1208
+ created_by: string | null;
1209
+ updated_at: number & {
1210
+ __brand: "UnixTimestamp";
1211
+ };
1212
+ field: string;
1213
+ _id?: string | undefined;
1214
+ updated_by?: string | undefined;
1215
+ curr_value?: any;
1216
+ prev_value?: any;
1217
+ metadata?: {
1218
+ changes?: {
1219
+ field: string;
1220
+ curr_value?: any;
1221
+ prev_value?: any;
1222
+ }[] | undefined;
1223
+ } | null | undefined;
1224
+ } | {
1225
+ type: "crud";
1226
+ created_at: number & {
1227
+ __brand: "UnixTimestamp";
1228
+ };
1229
+ created_by: string | null;
1230
+ updated_at: number & {
1231
+ __brand: "UnixTimestamp";
1232
+ };
1233
+ action: "create" | "update" | "delete" | "archive" | "restore";
1234
+ _id?: string | undefined;
1235
+ updated_by?: string | undefined;
1236
+ }, {
1237
+ message: string;
1238
+ type: "note";
1239
+ created_at: string | number;
1240
+ updated_at: string | number;
1241
+ _id?: string | undefined;
1242
+ created_by?: string | null | undefined;
1243
+ updated_by?: string | undefined;
1244
+ } | {
1245
+ type: "field_changed";
1246
+ created_at: string | number;
1247
+ updated_at: string | number;
1248
+ field: string;
1249
+ _id?: string | undefined;
1250
+ created_by?: string | null | undefined;
1251
+ updated_by?: string | undefined;
1252
+ curr_value?: any;
1253
+ prev_value?: any;
1254
+ metadata?: {
1255
+ changes?: {
1256
+ field: string;
1257
+ curr_value?: any;
1258
+ prev_value?: any;
1259
+ }[] | undefined;
1260
+ } | null | undefined;
1261
+ } | {
1262
+ type: "crud";
1263
+ created_at: string | number;
1264
+ updated_at: string | number;
1265
+ action: "create" | "update" | "delete" | "archive" | "restore";
1266
+ _id?: string | undefined;
1267
+ created_by?: string | null | undefined;
1268
+ updated_by?: string | undefined;
1269
+ }>, "many">>>;
1270
+ observations: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>;
1271
+ }, "strip", z.ZodTypeAny, {
1272
+ short_name?: string | undefined;
1273
+ is_locked?: boolean | undefined;
1274
+ updated_by?: string | undefined;
1275
+ flags?: {
1276
+ agency_ids: string[];
1277
+ is_harmonized: boolean;
1278
+ short_name: string;
1279
+ stop_id: string;
1280
+ }[] | undefined;
1281
+ is_deleted?: boolean | undefined;
1282
+ jurisdiction?: "ip" | "municipality" | "other" | "unknown" | undefined;
1283
+ legacy_id?: string | null | undefined;
1284
+ legacy_ids?: string[] | undefined;
1285
+ lifecycle_status?: "draft" | "active" | "inactive" | "provisional" | "seasonal" | "voided" | undefined;
1286
+ name?: string | undefined;
1287
+ new_name?: string | null | undefined;
1288
+ previous_go_id?: string | null | undefined;
1289
+ tts_hash?: string | null | undefined;
1290
+ tts_name?: string | null | undefined;
1291
+ district_id?: string | undefined;
1292
+ latitude?: number | undefined;
1293
+ locality_id?: string | null | undefined;
1294
+ longitude?: number | undefined;
1295
+ municipality_id?: string | undefined;
1296
+ parish_id?: string | null | undefined;
1297
+ bench_status?: "unknown" | "not_applicable" | "missing" | "damaged" | "ok" | undefined;
1298
+ electricity_status?: "unknown" | "available" | "unavailable" | undefined;
1299
+ pole_status?: "unknown" | "not_applicable" | "missing" | "damaged" | "ok" | undefined;
1300
+ road_type?: "unknown" | "complementary_itinerary" | "highway" | "main_itinerary" | "national_road" | "regional_road" | "secondary_road" | undefined;
1301
+ shelter_code?: string | null | undefined;
1302
+ shelter_frame_size?: [number, number] | null | undefined;
1303
+ shelter_installation_date?: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null | undefined;
1304
+ shelter_maintainer?: string | null | undefined;
1305
+ shelter_make?: string | null | undefined;
1306
+ shelter_model?: string | null | undefined;
1307
+ shelter_status?: "unknown" | "not_applicable" | "missing" | "damaged" | "ok" | undefined;
1308
+ last_infrastructure_check?: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null | undefined;
1309
+ last_infrastructure_maintenance?: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null | undefined;
1310
+ last_schedules_check?: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null | undefined;
1311
+ last_schedules_maintenance?: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null | undefined;
1312
+ connections?: ("ferry" | "light_rail" | "subway" | "train" | "boat" | "airport" | "bike_sharing" | "bike_parking" | "car_parking")[] | undefined;
1313
+ facilities?: ("fire_station" | "health_clinic" | "historic_building" | "hospital" | "police_station" | "school" | "shopping" | "transit_office" | "university" | "beach")[] | undefined;
1314
+ equipment?: ("pip" | "mupi" | "mini_pip")[] | undefined;
1315
+ has_bench?: "unknown" | "available" | "unavailable" | undefined;
1316
+ has_mupi?: "unknown" | "available" | "unavailable" | undefined;
1317
+ has_network_map?: "unknown" | "available" | "unavailable" | undefined;
1318
+ has_schedules?: "unknown" | "available" | "unavailable" | undefined;
1319
+ has_shelter?: "unknown" | "available" | "unavailable" | undefined;
1320
+ has_stop_sign?: "unknown" | "available" | "unavailable" | undefined;
1321
+ file_ids?: string[] | undefined;
1322
+ image_ids?: string[] | undefined;
1323
+ comments?: ({
1324
+ message: string;
1325
+ type: "note";
1326
+ created_at: number & {
1327
+ __brand: "UnixTimestamp";
1328
+ };
1329
+ created_by: string | null;
1330
+ updated_at: number & {
1331
+ __brand: "UnixTimestamp";
1332
+ };
1333
+ _id?: string | undefined;
1334
+ updated_by?: string | undefined;
1335
+ } | {
1336
+ type: "field_changed";
1337
+ created_at: number & {
1338
+ __brand: "UnixTimestamp";
1339
+ };
1340
+ created_by: string | null;
1341
+ updated_at: number & {
1342
+ __brand: "UnixTimestamp";
1343
+ };
1344
+ field: string;
1345
+ _id?: string | undefined;
1346
+ updated_by?: string | undefined;
1347
+ curr_value?: any;
1348
+ prev_value?: any;
1349
+ metadata?: {
1350
+ changes?: {
1351
+ field: string;
1352
+ curr_value?: any;
1353
+ prev_value?: any;
1354
+ }[] | undefined;
1355
+ } | null | undefined;
1356
+ } | {
1357
+ type: "crud";
1358
+ created_at: number & {
1359
+ __brand: "UnixTimestamp";
1360
+ };
1361
+ created_by: string | null;
1362
+ updated_at: number & {
1363
+ __brand: "UnixTimestamp";
1364
+ };
1365
+ action: "create" | "update" | "delete" | "archive" | "restore";
1366
+ _id?: string | undefined;
1367
+ updated_by?: string | undefined;
1368
+ })[] | undefined;
1369
+ observations?: string | null | undefined;
1370
+ }, {
1371
+ short_name?: string | undefined;
1372
+ is_locked?: boolean | undefined;
1373
+ updated_by?: string | undefined;
1374
+ flags?: {
1375
+ short_name: string;
1376
+ stop_id: string;
1377
+ agency_ids?: string[] | undefined;
1378
+ is_harmonized?: boolean | undefined;
1379
+ }[] | undefined;
1380
+ is_deleted?: boolean | undefined;
1381
+ jurisdiction?: "ip" | "municipality" | "other" | "unknown" | undefined;
1382
+ legacy_id?: string | null | undefined;
1383
+ legacy_ids?: string[] | undefined;
1384
+ lifecycle_status?: "draft" | "active" | "inactive" | "provisional" | "seasonal" | "voided" | undefined;
1385
+ name?: string | undefined;
1386
+ new_name?: string | null | undefined;
1387
+ previous_go_id?: string | null | undefined;
1388
+ tts_hash?: string | null | undefined;
1389
+ tts_name?: string | null | undefined;
1390
+ district_id?: string | undefined;
1391
+ latitude?: number | undefined;
1392
+ locality_id?: string | null | undefined;
1393
+ longitude?: number | undefined;
1394
+ municipality_id?: string | undefined;
1395
+ parish_id?: string | null | undefined;
1396
+ bench_status?: "unknown" | "not_applicable" | "missing" | "damaged" | "ok" | undefined;
1397
+ electricity_status?: "unknown" | "available" | "unavailable" | undefined;
1398
+ pole_status?: "unknown" | "not_applicable" | "missing" | "damaged" | "ok" | undefined;
1399
+ road_type?: "unknown" | "complementary_itinerary" | "highway" | "main_itinerary" | "national_road" | "regional_road" | "secondary_road" | undefined;
1400
+ shelter_code?: string | null | undefined;
1401
+ shelter_frame_size?: [number, number] | null | undefined;
1402
+ shelter_installation_date?: string | number | null | undefined;
1403
+ shelter_maintainer?: string | null | undefined;
1404
+ shelter_make?: string | null | undefined;
1405
+ shelter_model?: string | null | undefined;
1406
+ shelter_status?: "unknown" | "not_applicable" | "missing" | "damaged" | "ok" | undefined;
1407
+ last_infrastructure_check?: string | number | null | undefined;
1408
+ last_infrastructure_maintenance?: string | number | null | undefined;
1409
+ last_schedules_check?: string | number | null | undefined;
1410
+ last_schedules_maintenance?: string | number | null | undefined;
1411
+ connections?: ("ferry" | "light_rail" | "subway" | "train" | "boat" | "airport" | "bike_sharing" | "bike_parking" | "car_parking")[] | undefined;
1412
+ facilities?: ("fire_station" | "health_clinic" | "historic_building" | "hospital" | "police_station" | "school" | "shopping" | "transit_office" | "university" | "beach")[] | undefined;
1413
+ equipment?: ("pip" | "mupi" | "mini_pip")[] | undefined;
1414
+ has_bench?: "unknown" | "available" | "unavailable" | undefined;
1415
+ has_mupi?: "unknown" | "available" | "unavailable" | undefined;
1416
+ has_network_map?: "unknown" | "available" | "unavailable" | undefined;
1417
+ has_schedules?: "unknown" | "available" | "unavailable" | undefined;
1418
+ has_shelter?: "unknown" | "available" | "unavailable" | undefined;
1419
+ has_stop_sign?: "unknown" | "available" | "unavailable" | undefined;
1420
+ file_ids?: string[] | undefined;
1421
+ image_ids?: string[] | undefined;
1422
+ comments?: ({
1423
+ message: string;
1424
+ type: "note";
1425
+ created_at: string | number;
1426
+ updated_at: string | number;
1427
+ _id?: string | undefined;
1428
+ created_by?: string | null | undefined;
1429
+ updated_by?: string | undefined;
1430
+ } | {
1431
+ type: "field_changed";
1432
+ created_at: string | number;
1433
+ updated_at: string | number;
1434
+ field: string;
1435
+ _id?: string | undefined;
1436
+ created_by?: string | null | undefined;
1437
+ updated_by?: string | undefined;
1438
+ curr_value?: any;
1439
+ prev_value?: any;
1440
+ metadata?: {
1441
+ changes?: {
1442
+ field: string;
1443
+ curr_value?: any;
1444
+ prev_value?: any;
1445
+ }[] | undefined;
1446
+ } | null | undefined;
1447
+ } | {
1448
+ type: "crud";
1449
+ created_at: string | number;
1450
+ updated_at: string | number;
1451
+ action: "create" | "update" | "delete" | "archive" | "restore";
1452
+ _id?: string | undefined;
1453
+ created_by?: string | null | undefined;
1454
+ updated_by?: string | undefined;
1455
+ })[] | undefined;
1456
+ observations?: string | null | undefined;
1457
+ }>;
1458
+ export type Stop = z.infer<typeof StopSchema>;
1459
+ export type CreateStopDto = z.infer<typeof CreateStopSchema>;
1460
+ export type UpdateStopDto = z.infer<typeof UpdateStopSchema>;