@tmlmobilidade/types 20260616.229.43 → 20260616.2238.2

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.
@@ -1,3 +1,4 @@
1
+ import { Stop } from '../stops/stop.js';
1
2
  import { z } from 'zod';
2
3
  export declare const PatternDirectionValues: readonly ["outbound", "inbound"];
3
4
  export declare const PatternDirectionSchema: z.ZodEnum<["outbound", "inbound"]>;
@@ -15,513 +16,6 @@ export declare const PathSchema: z.ZodObject<{
15
16
  allow_drop_off: z.ZodDefault<z.ZodBoolean>;
16
17
  allow_pickup: z.ZodDefault<z.ZodBoolean>;
17
18
  distance_delta: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
18
- stop: z.ZodOptional<z.ZodNullable<z.ZodObject<{
19
- created_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
20
- created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
21
- is_locked: z.ZodDefault<z.ZodBoolean>;
22
- updated_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
23
- updated_by: z.ZodOptional<z.ZodString>;
24
- } & {
25
- _id: z.ZodNumber;
26
- flags: z.ZodDefault<z.ZodArray<z.ZodObject<{
27
- agency_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
28
- is_harmonized: z.ZodDefault<z.ZodBoolean>;
29
- short_name: z.ZodString;
30
- stop_id: z.ZodString;
31
- }, "strip", z.ZodTypeAny, {
32
- short_name: string;
33
- agency_ids: string[];
34
- is_harmonized: boolean;
35
- stop_id: string;
36
- }, {
37
- short_name: string;
38
- stop_id: string;
39
- agency_ids?: string[] | undefined;
40
- is_harmonized?: boolean | undefined;
41
- }>, "many">>;
42
- is_deleted: z.ZodDefault<z.ZodBoolean>;
43
- jurisdiction: z.ZodDefault<z.ZodEnum<["ip", "municipality", "other", "unknown"]>>;
44
- legacy_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
45
- legacy_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
46
- lifecycle_status: z.ZodDefault<z.ZodEnum<["draft", "active", "inactive", "provisional", "seasonal", "voided"]>>;
47
- name: z.ZodString;
48
- new_name: z.ZodDefault<z.ZodNullable<z.ZodString>>;
49
- previous_go_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
50
- short_name: z.ZodString;
51
- tts_name: z.ZodString;
52
- district_id: z.ZodString;
53
- latitude: z.ZodNumber;
54
- locality_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
55
- longitude: z.ZodNumber;
56
- municipality_id: z.ZodString;
57
- parish_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
58
- bench_status: z.ZodDefault<z.ZodEnum<["not_applicable", "unknown", "missing", "damaged", "ok"]>>;
59
- electricity_status: z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>;
60
- pole_status: z.ZodDefault<z.ZodEnum<["not_applicable", "unknown", "missing", "damaged", "ok"]>>;
61
- road_type: z.ZodDefault<z.ZodEnum<["complementary_itinerary", "highway", "main_itinerary", "national_road", "regional_road", "secondary_road", "unknown"]>>;
62
- shelter_code: z.ZodDefault<z.ZodNullable<z.ZodString>>;
63
- shelter_frame_size: z.ZodDefault<z.ZodNullable<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
64
- shelter_installation_date: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>>>;
65
- shelter_maintainer: z.ZodDefault<z.ZodNullable<z.ZodString>>;
66
- shelter_make: z.ZodDefault<z.ZodNullable<z.ZodString>>;
67
- shelter_model: z.ZodDefault<z.ZodNullable<z.ZodString>>;
68
- shelter_status: z.ZodDefault<z.ZodEnum<["not_applicable", "unknown", "missing", "damaged", "ok"]>>;
69
- last_infrastructure_check: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>>>;
70
- last_infrastructure_maintenance: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>>>;
71
- last_schedules_check: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>>>;
72
- last_schedules_maintenance: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>>>;
73
- connections: z.ZodDefault<z.ZodArray<z.ZodEnum<["ferry", "light_rail", "subway", "train", "boat", "airport", "bike_sharing", "bike_parking", "car_parking"]>, "many">>;
74
- facilities: z.ZodDefault<z.ZodArray<z.ZodEnum<["fire_station", "health_clinic", "historic_building", "hospital", "police_station", "school", "shopping", "transit_office", "university", "beach"]>, "many">>;
75
- equipment: z.ZodDefault<z.ZodArray<z.ZodEnum<["pip", "mupi", "mini_pip"]>, "many">>;
76
- has_bench: z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>;
77
- has_mupi: z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>;
78
- has_network_map: z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>;
79
- has_schedules: z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>;
80
- has_shelter: z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>;
81
- has_stop_sign: z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>;
82
- file_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
83
- image_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
84
- comments: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
85
- message: z.ZodString;
86
- type: z.ZodLiteral<"note">;
87
- _id: z.ZodOptional<z.ZodString>;
88
- created_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
89
- created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
90
- updated_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
91
- updated_by: z.ZodOptional<z.ZodString>;
92
- }, "strip", z.ZodTypeAny, {
93
- message: string;
94
- type: "note";
95
- created_at: number & {
96
- __brand: "UnixTimestamp";
97
- };
98
- created_by: string | null;
99
- updated_at: number & {
100
- __brand: "UnixTimestamp";
101
- };
102
- _id?: string | undefined;
103
- updated_by?: string | undefined;
104
- }, {
105
- message: string;
106
- type: "note";
107
- created_at: number;
108
- updated_at: number;
109
- _id?: string | undefined;
110
- created_by?: string | null | undefined;
111
- updated_by?: string | undefined;
112
- }>, z.ZodObject<{
113
- type: z.ZodLiteral<"field_changed">;
114
- _id: z.ZodOptional<z.ZodString>;
115
- created_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
116
- created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
117
- updated_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
118
- updated_by: z.ZodOptional<z.ZodString>;
119
- curr_value: z.ZodAny;
120
- field: z.ZodString;
121
- prev_value: z.ZodAny;
122
- metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{
123
- changes: z.ZodOptional<z.ZodArray<z.ZodObject<{
124
- curr_value: z.ZodAny;
125
- field: z.ZodString;
126
- prev_value: z.ZodAny;
127
- }, "strip", z.ZodTypeAny, {
128
- field: string;
129
- curr_value?: any;
130
- prev_value?: any;
131
- }, {
132
- field: string;
133
- curr_value?: any;
134
- prev_value?: any;
135
- }>, "many">>;
136
- }, "strip", z.ZodTypeAny, {
137
- changes?: {
138
- field: string;
139
- curr_value?: any;
140
- prev_value?: any;
141
- }[] | undefined;
142
- }, {
143
- changes?: {
144
- field: string;
145
- curr_value?: any;
146
- prev_value?: any;
147
- }[] | undefined;
148
- }>>>;
149
- }, "strip", z.ZodTypeAny, {
150
- type: "field_changed";
151
- created_at: number & {
152
- __brand: "UnixTimestamp";
153
- };
154
- created_by: string | null;
155
- updated_at: number & {
156
- __brand: "UnixTimestamp";
157
- };
158
- field: string;
159
- _id?: string | undefined;
160
- updated_by?: string | undefined;
161
- curr_value?: any;
162
- prev_value?: any;
163
- metadata?: {
164
- changes?: {
165
- field: string;
166
- curr_value?: any;
167
- prev_value?: any;
168
- }[] | undefined;
169
- } | null | undefined;
170
- }, {
171
- type: "field_changed";
172
- created_at: number;
173
- updated_at: number;
174
- field: string;
175
- _id?: string | undefined;
176
- created_by?: string | null | undefined;
177
- updated_by?: string | undefined;
178
- curr_value?: any;
179
- prev_value?: any;
180
- metadata?: {
181
- changes?: {
182
- field: string;
183
- curr_value?: any;
184
- prev_value?: any;
185
- }[] | undefined;
186
- } | null | undefined;
187
- }>, z.ZodObject<{
188
- type: z.ZodLiteral<"crud">;
189
- _id: z.ZodOptional<z.ZodString>;
190
- created_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
191
- created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
192
- updated_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
193
- updated_by: z.ZodOptional<z.ZodString>;
194
- action: z.ZodEnum<["create", "update", "delete", "archive", "restore"]>;
195
- }, "strip", z.ZodTypeAny, {
196
- type: "crud";
197
- created_at: number & {
198
- __brand: "UnixTimestamp";
199
- };
200
- created_by: string | null;
201
- updated_at: number & {
202
- __brand: "UnixTimestamp";
203
- };
204
- action: "create" | "update" | "delete" | "archive" | "restore";
205
- _id?: string | undefined;
206
- updated_by?: string | undefined;
207
- }, {
208
- type: "crud";
209
- created_at: number;
210
- updated_at: number;
211
- action: "create" | "update" | "delete" | "archive" | "restore";
212
- _id?: string | undefined;
213
- created_by?: string | null | undefined;
214
- updated_by?: string | undefined;
215
- }>]>, {
216
- message: string;
217
- type: "note";
218
- created_at: number & {
219
- __brand: "UnixTimestamp";
220
- };
221
- created_by: string | null;
222
- updated_at: number & {
223
- __brand: "UnixTimestamp";
224
- };
225
- _id?: string | undefined;
226
- updated_by?: string | undefined;
227
- } | {
228
- type: "field_changed";
229
- created_at: number & {
230
- __brand: "UnixTimestamp";
231
- };
232
- created_by: string | null;
233
- updated_at: number & {
234
- __brand: "UnixTimestamp";
235
- };
236
- field: string;
237
- _id?: string | undefined;
238
- updated_by?: string | undefined;
239
- curr_value?: any;
240
- prev_value?: any;
241
- metadata?: {
242
- changes?: {
243
- field: string;
244
- curr_value?: any;
245
- prev_value?: any;
246
- }[] | undefined;
247
- } | null | undefined;
248
- } | {
249
- type: "crud";
250
- created_at: number & {
251
- __brand: "UnixTimestamp";
252
- };
253
- created_by: string | null;
254
- updated_at: number & {
255
- __brand: "UnixTimestamp";
256
- };
257
- action: "create" | "update" | "delete" | "archive" | "restore";
258
- _id?: string | undefined;
259
- updated_by?: string | undefined;
260
- }, {
261
- message: string;
262
- type: "note";
263
- created_at: number;
264
- updated_at: number;
265
- _id?: string | undefined;
266
- created_by?: string | null | undefined;
267
- updated_by?: string | undefined;
268
- } | {
269
- type: "field_changed";
270
- created_at: number;
271
- updated_at: number;
272
- field: string;
273
- _id?: string | undefined;
274
- created_by?: string | null | undefined;
275
- updated_by?: string | undefined;
276
- curr_value?: any;
277
- prev_value?: any;
278
- metadata?: {
279
- changes?: {
280
- field: string;
281
- curr_value?: any;
282
- prev_value?: any;
283
- }[] | undefined;
284
- } | null | undefined;
285
- } | {
286
- type: "crud";
287
- created_at: number;
288
- updated_at: number;
289
- action: "create" | "update" | "delete" | "archive" | "restore";
290
- _id?: string | undefined;
291
- created_by?: string | null | undefined;
292
- updated_by?: string | undefined;
293
- }>, "many">>;
294
- observations: z.ZodDefault<z.ZodNullable<z.ZodString>>;
295
- associated_patterns: z.ZodDefault<z.ZodArray<z.ZodObject<{
296
- _id: z.ZodString;
297
- code: z.ZodString;
298
- headsign: z.ZodString;
299
- line_id: z.ZodString;
300
- route_id: z.ZodString;
301
- }, "strip", z.ZodTypeAny, {
302
- _id: string;
303
- code: string;
304
- headsign: string;
305
- line_id: string;
306
- route_id: string;
307
- }, {
308
- _id: string;
309
- code: string;
310
- headsign: string;
311
- line_id: string;
312
- route_id: string;
313
- }>, "many">>;
314
- }, "strip", z.ZodTypeAny, {
315
- _id: number;
316
- created_at: number & {
317
- __brand: "UnixTimestamp";
318
- };
319
- created_by: string | null;
320
- is_locked: boolean;
321
- updated_at: number & {
322
- __brand: "UnixTimestamp";
323
- };
324
- name: string;
325
- short_name: string;
326
- associated_patterns: {
327
- _id: string;
328
- code: string;
329
- headsign: string;
330
- line_id: string;
331
- route_id: string;
332
- }[];
333
- comments: ({
334
- message: string;
335
- type: "note";
336
- created_at: number & {
337
- __brand: "UnixTimestamp";
338
- };
339
- created_by: string | null;
340
- updated_at: number & {
341
- __brand: "UnixTimestamp";
342
- };
343
- _id?: string | undefined;
344
- updated_by?: string | undefined;
345
- } | {
346
- type: "field_changed";
347
- created_at: number & {
348
- __brand: "UnixTimestamp";
349
- };
350
- created_by: string | null;
351
- updated_at: number & {
352
- __brand: "UnixTimestamp";
353
- };
354
- field: string;
355
- _id?: string | undefined;
356
- updated_by?: string | undefined;
357
- curr_value?: any;
358
- prev_value?: any;
359
- metadata?: {
360
- changes?: {
361
- field: string;
362
- curr_value?: any;
363
- prev_value?: any;
364
- }[] | undefined;
365
- } | null | undefined;
366
- } | {
367
- type: "crud";
368
- created_at: number & {
369
- __brand: "UnixTimestamp";
370
- };
371
- created_by: string | null;
372
- updated_at: number & {
373
- __brand: "UnixTimestamp";
374
- };
375
- action: "create" | "update" | "delete" | "archive" | "restore";
376
- _id?: string | undefined;
377
- updated_by?: string | undefined;
378
- })[];
379
- flags: {
380
- short_name: string;
381
- agency_ids: string[];
382
- is_harmonized: boolean;
383
- stop_id: string;
384
- }[];
385
- jurisdiction: "unknown" | "ip" | "municipality" | "other";
386
- legacy_id: string | null;
387
- legacy_ids: string[];
388
- lifecycle_status: "draft" | "active" | "inactive" | "provisional" | "seasonal" | "voided";
389
- new_name: string | null;
390
- previous_go_id: string | null;
391
- tts_name: string;
392
- district_id: string;
393
- latitude: number;
394
- locality_id: string | null;
395
- longitude: number;
396
- municipality_id: string;
397
- parish_id: string | null;
398
- bench_status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok";
399
- electricity_status: "unknown" | "available" | "unavailable";
400
- pole_status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok";
401
- road_type: "unknown" | "complementary_itinerary" | "highway" | "main_itinerary" | "national_road" | "regional_road" | "secondary_road";
402
- shelter_code: string | null;
403
- shelter_frame_size: [number, number] | null;
404
- shelter_installation_date: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null;
405
- shelter_maintainer: string | null;
406
- shelter_make: string | null;
407
- shelter_model: string | null;
408
- shelter_status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok";
409
- last_infrastructure_check: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null;
410
- last_infrastructure_maintenance: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null;
411
- last_schedules_check: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null;
412
- last_schedules_maintenance: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null;
413
- connections: ("ferry" | "light_rail" | "subway" | "train" | "boat" | "airport" | "bike_sharing" | "bike_parking" | "car_parking")[];
414
- facilities: ("fire_station" | "health_clinic" | "historic_building" | "hospital" | "police_station" | "school" | "shopping" | "transit_office" | "university" | "beach")[];
415
- equipment: ("pip" | "mupi" | "mini_pip")[];
416
- has_bench: "unknown" | "available" | "unavailable";
417
- has_mupi: "unknown" | "available" | "unavailable";
418
- has_network_map: "unknown" | "available" | "unavailable";
419
- has_schedules: "unknown" | "available" | "unavailable";
420
- has_shelter: "unknown" | "available" | "unavailable";
421
- has_stop_sign: "unknown" | "available" | "unavailable";
422
- observations: string | null;
423
- is_deleted: boolean;
424
- file_ids: string[];
425
- image_ids: string[];
426
- updated_by?: string | undefined;
427
- }, {
428
- _id: number;
429
- created_at: number;
430
- updated_at: number;
431
- name: string;
432
- short_name: string;
433
- tts_name: string;
434
- district_id: string;
435
- latitude: number;
436
- longitude: number;
437
- municipality_id: string;
438
- created_by?: string | null | undefined;
439
- is_locked?: boolean | undefined;
440
- updated_by?: string | undefined;
441
- associated_patterns?: {
442
- _id: string;
443
- code: string;
444
- headsign: string;
445
- line_id: string;
446
- route_id: string;
447
- }[] | undefined;
448
- comments?: ({
449
- message: string;
450
- type: "note";
451
- created_at: number;
452
- updated_at: number;
453
- _id?: string | undefined;
454
- created_by?: string | null | undefined;
455
- updated_by?: string | undefined;
456
- } | {
457
- type: "field_changed";
458
- created_at: number;
459
- updated_at: number;
460
- field: string;
461
- _id?: string | undefined;
462
- created_by?: string | null | undefined;
463
- updated_by?: string | undefined;
464
- curr_value?: any;
465
- prev_value?: any;
466
- metadata?: {
467
- changes?: {
468
- field: string;
469
- curr_value?: any;
470
- prev_value?: any;
471
- }[] | undefined;
472
- } | null | undefined;
473
- } | {
474
- type: "crud";
475
- created_at: number;
476
- updated_at: number;
477
- action: "create" | "update" | "delete" | "archive" | "restore";
478
- _id?: string | undefined;
479
- created_by?: string | null | undefined;
480
- updated_by?: string | undefined;
481
- })[] | undefined;
482
- flags?: {
483
- short_name: string;
484
- stop_id: string;
485
- agency_ids?: string[] | undefined;
486
- is_harmonized?: boolean | undefined;
487
- }[] | undefined;
488
- jurisdiction?: "unknown" | "ip" | "municipality" | "other" | undefined;
489
- legacy_id?: string | null | undefined;
490
- legacy_ids?: string[] | undefined;
491
- lifecycle_status?: "draft" | "active" | "inactive" | "provisional" | "seasonal" | "voided" | undefined;
492
- new_name?: string | null | undefined;
493
- previous_go_id?: string | null | undefined;
494
- locality_id?: string | null | undefined;
495
- parish_id?: string | null | undefined;
496
- bench_status?: "unknown" | "not_applicable" | "missing" | "damaged" | "ok" | undefined;
497
- electricity_status?: "unknown" | "available" | "unavailable" | undefined;
498
- pole_status?: "unknown" | "not_applicable" | "missing" | "damaged" | "ok" | undefined;
499
- road_type?: "unknown" | "complementary_itinerary" | "highway" | "main_itinerary" | "national_road" | "regional_road" | "secondary_road" | undefined;
500
- shelter_code?: string | null | undefined;
501
- shelter_frame_size?: [number, number] | null | undefined;
502
- shelter_installation_date?: number | null | undefined;
503
- shelter_maintainer?: string | null | undefined;
504
- shelter_make?: string | null | undefined;
505
- shelter_model?: string | null | undefined;
506
- shelter_status?: "unknown" | "not_applicable" | "missing" | "damaged" | "ok" | undefined;
507
- last_infrastructure_check?: number | null | undefined;
508
- last_infrastructure_maintenance?: number | null | undefined;
509
- last_schedules_check?: number | null | undefined;
510
- last_schedules_maintenance?: number | null | undefined;
511
- connections?: ("ferry" | "light_rail" | "subway" | "train" | "boat" | "airport" | "bike_sharing" | "bike_parking" | "car_parking")[] | undefined;
512
- facilities?: ("fire_station" | "health_clinic" | "historic_building" | "hospital" | "police_station" | "school" | "shopping" | "transit_office" | "university" | "beach")[] | undefined;
513
- equipment?: ("pip" | "mupi" | "mini_pip")[] | undefined;
514
- has_bench?: "unknown" | "available" | "unavailable" | undefined;
515
- has_mupi?: "unknown" | "available" | "unavailable" | undefined;
516
- has_network_map?: "unknown" | "available" | "unavailable" | undefined;
517
- has_schedules?: "unknown" | "available" | "unavailable" | undefined;
518
- has_shelter?: "unknown" | "available" | "unavailable" | undefined;
519
- has_stop_sign?: "unknown" | "available" | "unavailable" | undefined;
520
- observations?: string | null | undefined;
521
- is_deleted?: boolean | undefined;
522
- file_ids?: string[] | undefined;
523
- image_ids?: string[] | undefined;
524
- }>>>;
525
19
  stop_id: z.ZodNumber;
526
20
  timepoint: z.ZodDefault<z.ZodBoolean>;
527
21
  zones: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -533,228 +27,41 @@ export declare const PathSchema: z.ZodObject<{
533
27
  allow_pickup: boolean;
534
28
  distance_delta: number | null;
535
29
  zones?: string[] | undefined;
536
- stop?: {
537
- _id: number;
538
- created_at: number & {
539
- __brand: "UnixTimestamp";
540
- };
541
- created_by: string | null;
542
- is_locked: boolean;
543
- updated_at: number & {
544
- __brand: "UnixTimestamp";
545
- };
546
- name: string;
547
- short_name: string;
548
- associated_patterns: {
549
- _id: string;
550
- code: string;
551
- headsign: string;
552
- line_id: string;
553
- route_id: string;
554
- }[];
555
- comments: ({
556
- message: string;
557
- type: "note";
558
- created_at: number & {
559
- __brand: "UnixTimestamp";
560
- };
561
- created_by: string | null;
562
- updated_at: number & {
563
- __brand: "UnixTimestamp";
564
- };
565
- _id?: string | undefined;
566
- updated_by?: string | undefined;
567
- } | {
568
- type: "field_changed";
569
- created_at: number & {
570
- __brand: "UnixTimestamp";
571
- };
572
- created_by: string | null;
573
- updated_at: number & {
574
- __brand: "UnixTimestamp";
575
- };
576
- field: string;
577
- _id?: string | undefined;
578
- updated_by?: string | undefined;
579
- curr_value?: any;
580
- prev_value?: any;
581
- metadata?: {
582
- changes?: {
583
- field: string;
584
- curr_value?: any;
585
- prev_value?: any;
586
- }[] | undefined;
587
- } | null | undefined;
588
- } | {
589
- type: "crud";
590
- created_at: number & {
591
- __brand: "UnixTimestamp";
592
- };
593
- created_by: string | null;
594
- updated_at: number & {
595
- __brand: "UnixTimestamp";
596
- };
597
- action: "create" | "update" | "delete" | "archive" | "restore";
598
- _id?: string | undefined;
599
- updated_by?: string | undefined;
600
- })[];
601
- flags: {
602
- short_name: string;
603
- agency_ids: string[];
604
- is_harmonized: boolean;
605
- stop_id: string;
606
- }[];
607
- jurisdiction: "unknown" | "ip" | "municipality" | "other";
608
- legacy_id: string | null;
609
- legacy_ids: string[];
610
- lifecycle_status: "draft" | "active" | "inactive" | "provisional" | "seasonal" | "voided";
611
- new_name: string | null;
612
- previous_go_id: string | null;
613
- tts_name: string;
614
- district_id: string;
615
- latitude: number;
616
- locality_id: string | null;
617
- longitude: number;
618
- municipality_id: string;
619
- parish_id: string | null;
620
- bench_status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok";
621
- electricity_status: "unknown" | "available" | "unavailable";
622
- pole_status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok";
623
- road_type: "unknown" | "complementary_itinerary" | "highway" | "main_itinerary" | "national_road" | "regional_road" | "secondary_road";
624
- shelter_code: string | null;
625
- shelter_frame_size: [number, number] | null;
626
- shelter_installation_date: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null;
627
- shelter_maintainer: string | null;
628
- shelter_make: string | null;
629
- shelter_model: string | null;
630
- shelter_status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok";
631
- last_infrastructure_check: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null;
632
- last_infrastructure_maintenance: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null;
633
- last_schedules_check: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null;
634
- last_schedules_maintenance: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null;
635
- connections: ("ferry" | "light_rail" | "subway" | "train" | "boat" | "airport" | "bike_sharing" | "bike_parking" | "car_parking")[];
636
- facilities: ("fire_station" | "health_clinic" | "historic_building" | "hospital" | "police_station" | "school" | "shopping" | "transit_office" | "university" | "beach")[];
637
- equipment: ("pip" | "mupi" | "mini_pip")[];
638
- has_bench: "unknown" | "available" | "unavailable";
639
- has_mupi: "unknown" | "available" | "unavailable";
640
- has_network_map: "unknown" | "available" | "unavailable";
641
- has_schedules: "unknown" | "available" | "unavailable";
642
- has_shelter: "unknown" | "available" | "unavailable";
643
- has_stop_sign: "unknown" | "available" | "unavailable";
644
- observations: string | null;
645
- is_deleted: boolean;
646
- file_ids: string[];
647
- image_ids: string[];
648
- updated_by?: string | undefined;
649
- } | null | undefined;
650
30
  }, {
651
31
  _id: string;
652
32
  stop_id: number;
653
33
  zones?: string[] | undefined;
654
- stop?: {
655
- _id: number;
656
- created_at: number;
657
- updated_at: number;
658
- name: string;
659
- short_name: string;
660
- tts_name: string;
661
- district_id: string;
662
- latitude: number;
663
- longitude: number;
664
- municipality_id: string;
665
- created_by?: string | null | undefined;
666
- is_locked?: boolean | undefined;
667
- updated_by?: string | undefined;
668
- associated_patterns?: {
669
- _id: string;
670
- code: string;
671
- headsign: string;
672
- line_id: string;
673
- route_id: string;
674
- }[] | undefined;
675
- comments?: ({
676
- message: string;
677
- type: "note";
678
- created_at: number;
679
- updated_at: number;
680
- _id?: string | undefined;
681
- created_by?: string | null | undefined;
682
- updated_by?: string | undefined;
683
- } | {
684
- type: "field_changed";
685
- created_at: number;
686
- updated_at: number;
687
- field: string;
688
- _id?: string | undefined;
689
- created_by?: string | null | undefined;
690
- updated_by?: string | undefined;
691
- curr_value?: any;
692
- prev_value?: any;
693
- metadata?: {
694
- changes?: {
695
- field: string;
696
- curr_value?: any;
697
- prev_value?: any;
698
- }[] | undefined;
699
- } | null | undefined;
700
- } | {
701
- type: "crud";
702
- created_at: number;
703
- updated_at: number;
704
- action: "create" | "update" | "delete" | "archive" | "restore";
705
- _id?: string | undefined;
706
- created_by?: string | null | undefined;
707
- updated_by?: string | undefined;
708
- })[] | undefined;
709
- flags?: {
710
- short_name: string;
711
- stop_id: string;
712
- agency_ids?: string[] | undefined;
713
- is_harmonized?: boolean | undefined;
714
- }[] | undefined;
715
- jurisdiction?: "unknown" | "ip" | "municipality" | "other" | undefined;
716
- legacy_id?: string | null | undefined;
717
- legacy_ids?: string[] | undefined;
718
- lifecycle_status?: "draft" | "active" | "inactive" | "provisional" | "seasonal" | "voided" | undefined;
719
- new_name?: string | null | undefined;
720
- previous_go_id?: string | null | undefined;
721
- locality_id?: string | null | undefined;
722
- parish_id?: string | null | undefined;
723
- bench_status?: "unknown" | "not_applicable" | "missing" | "damaged" | "ok" | undefined;
724
- electricity_status?: "unknown" | "available" | "unavailable" | undefined;
725
- pole_status?: "unknown" | "not_applicable" | "missing" | "damaged" | "ok" | undefined;
726
- road_type?: "unknown" | "complementary_itinerary" | "highway" | "main_itinerary" | "national_road" | "regional_road" | "secondary_road" | undefined;
727
- shelter_code?: string | null | undefined;
728
- shelter_frame_size?: [number, number] | null | undefined;
729
- shelter_installation_date?: number | null | undefined;
730
- shelter_maintainer?: string | null | undefined;
731
- shelter_make?: string | null | undefined;
732
- shelter_model?: string | null | undefined;
733
- shelter_status?: "unknown" | "not_applicable" | "missing" | "damaged" | "ok" | undefined;
734
- last_infrastructure_check?: number | null | undefined;
735
- last_infrastructure_maintenance?: number | null | undefined;
736
- last_schedules_check?: number | null | undefined;
737
- last_schedules_maintenance?: number | null | undefined;
738
- connections?: ("ferry" | "light_rail" | "subway" | "train" | "boat" | "airport" | "bike_sharing" | "bike_parking" | "car_parking")[] | undefined;
739
- facilities?: ("fire_station" | "health_clinic" | "historic_building" | "hospital" | "police_station" | "school" | "shopping" | "transit_office" | "university" | "beach")[] | undefined;
740
- equipment?: ("pip" | "mupi" | "mini_pip")[] | undefined;
741
- has_bench?: "unknown" | "available" | "unavailable" | undefined;
742
- has_mupi?: "unknown" | "available" | "unavailable" | undefined;
743
- has_network_map?: "unknown" | "available" | "unavailable" | undefined;
744
- has_schedules?: "unknown" | "available" | "unavailable" | undefined;
745
- has_shelter?: "unknown" | "available" | "unavailable" | undefined;
746
- has_stop_sign?: "unknown" | "available" | "unavailable" | undefined;
747
- observations?: string | null | undefined;
748
- is_deleted?: boolean | undefined;
749
- file_ids?: string[] | undefined;
750
- image_ids?: string[] | undefined;
751
- } | null | undefined;
752
34
  timepoint?: boolean | undefined;
753
35
  allow_drop_off?: boolean | undefined;
754
36
  allow_pickup?: boolean | undefined;
755
37
  distance_delta?: number | null | undefined;
756
38
  }>;
757
39
  export declare const ShapeSchema: z.ZodObject<{
40
+ anchors: z.ZodOptional<z.ZodArray<z.ZodObject<{
41
+ _id: z.ZodString;
42
+ after_stop_id: z.ZodNumber;
43
+ before_stop_id: z.ZodNumber;
44
+ lat: z.ZodNumber;
45
+ lon: z.ZodNumber;
46
+ sequence: z.ZodDefault<z.ZodNumber>;
47
+ type: z.ZodDefault<z.ZodEnum<["via", "through"]>>;
48
+ }, "strip", z.ZodTypeAny, {
49
+ _id: string;
50
+ type: "via" | "through";
51
+ after_stop_id: number;
52
+ before_stop_id: number;
53
+ lat: number;
54
+ lon: number;
55
+ sequence: number;
56
+ }, {
57
+ _id: string;
58
+ after_stop_id: number;
59
+ before_stop_id: number;
60
+ lat: number;
61
+ lon: number;
62
+ type?: "via" | "through" | undefined;
63
+ sequence?: number | undefined;
64
+ }>, "many">>;
758
65
  extension: z.ZodNumber;
759
66
  geojson: z.ZodObject<{
760
67
  geometry: z.ZodObject<{
@@ -784,6 +91,104 @@ export declare const ShapeSchema: z.ZodObject<{
784
91
  type?: string | undefined;
785
92
  properties?: {} | undefined;
786
93
  }>;
94
+ legs: z.ZodOptional<z.ZodArray<z.ZodObject<{
95
+ distance: z.ZodNumber;
96
+ duration: z.ZodNumber;
97
+ from_index: z.ZodNumber;
98
+ geojson: z.ZodObject<{
99
+ geometry: z.ZodObject<{
100
+ coordinates: z.ZodArray<z.ZodArray<z.ZodNumber, "many">, "many">;
101
+ type: z.ZodDefault<z.ZodString>;
102
+ }, "strip", z.ZodTypeAny, {
103
+ type: string;
104
+ coordinates: number[][];
105
+ }, {
106
+ coordinates: number[][];
107
+ type?: string | undefined;
108
+ }>;
109
+ properties: z.ZodObject<{
110
+ distance: z.ZodNumber;
111
+ duration: z.ZodNumber;
112
+ from_index: z.ZodNumber;
113
+ to_index: z.ZodNumber;
114
+ }, "strip", z.ZodTypeAny, {
115
+ distance: number;
116
+ duration: number;
117
+ from_index: number;
118
+ to_index: number;
119
+ }, {
120
+ distance: number;
121
+ duration: number;
122
+ from_index: number;
123
+ to_index: number;
124
+ }>;
125
+ type: z.ZodDefault<z.ZodString>;
126
+ }, "strip", z.ZodTypeAny, {
127
+ type: string;
128
+ properties: {
129
+ distance: number;
130
+ duration: number;
131
+ from_index: number;
132
+ to_index: number;
133
+ };
134
+ geometry: {
135
+ type: string;
136
+ coordinates: number[][];
137
+ };
138
+ }, {
139
+ properties: {
140
+ distance: number;
141
+ duration: number;
142
+ from_index: number;
143
+ to_index: number;
144
+ };
145
+ geometry: {
146
+ coordinates: number[][];
147
+ type?: string | undefined;
148
+ };
149
+ type?: string | undefined;
150
+ }>;
151
+ geometry: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">;
152
+ to_index: z.ZodNumber;
153
+ }, "strip", z.ZodTypeAny, {
154
+ distance: number;
155
+ geometry: [number, number][];
156
+ geojson: {
157
+ type: string;
158
+ properties: {
159
+ distance: number;
160
+ duration: number;
161
+ from_index: number;
162
+ to_index: number;
163
+ };
164
+ geometry: {
165
+ type: string;
166
+ coordinates: number[][];
167
+ };
168
+ };
169
+ duration: number;
170
+ from_index: number;
171
+ to_index: number;
172
+ }, {
173
+ distance: number;
174
+ geometry: [number, number][];
175
+ geojson: {
176
+ properties: {
177
+ distance: number;
178
+ duration: number;
179
+ from_index: number;
180
+ to_index: number;
181
+ };
182
+ geometry: {
183
+ coordinates: number[][];
184
+ type?: string | undefined;
185
+ };
186
+ type?: string | undefined;
187
+ };
188
+ duration: number;
189
+ from_index: number;
190
+ to_index: number;
191
+ }>, "many">>;
787
192
  }, "strip", z.ZodTypeAny, {
788
193
  extension: number;
789
194
  geojson: {
@@ -794,6 +199,35 @@ export declare const ShapeSchema: z.ZodObject<{
794
199
  };
795
200
  properties?: {} | undefined;
796
201
  };
202
+ anchors?: {
203
+ _id: string;
204
+ type: "via" | "through";
205
+ after_stop_id: number;
206
+ before_stop_id: number;
207
+ lat: number;
208
+ lon: number;
209
+ sequence: number;
210
+ }[] | undefined;
211
+ legs?: {
212
+ distance: number;
213
+ geometry: [number, number][];
214
+ geojson: {
215
+ type: string;
216
+ properties: {
217
+ distance: number;
218
+ duration: number;
219
+ from_index: number;
220
+ to_index: number;
221
+ };
222
+ geometry: {
223
+ type: string;
224
+ coordinates: number[][];
225
+ };
226
+ };
227
+ duration: number;
228
+ from_index: number;
229
+ to_index: number;
230
+ }[] | undefined;
797
231
  }, {
798
232
  extension: number;
799
233
  geojson: {
@@ -804,6 +238,35 @@ export declare const ShapeSchema: z.ZodObject<{
804
238
  type?: string | undefined;
805
239
  properties?: {} | undefined;
806
240
  };
241
+ anchors?: {
242
+ _id: string;
243
+ after_stop_id: number;
244
+ before_stop_id: number;
245
+ lat: number;
246
+ lon: number;
247
+ type?: "via" | "through" | undefined;
248
+ sequence?: number | undefined;
249
+ }[] | undefined;
250
+ legs?: {
251
+ distance: number;
252
+ geometry: [number, number][];
253
+ geojson: {
254
+ properties: {
255
+ distance: number;
256
+ duration: number;
257
+ from_index: number;
258
+ to_index: number;
259
+ };
260
+ geometry: {
261
+ coordinates: number[][];
262
+ type?: string | undefined;
263
+ };
264
+ type?: string | undefined;
265
+ };
266
+ duration: number;
267
+ from_index: number;
268
+ to_index: number;
269
+ }[] | undefined;
807
270
  }>;
808
271
  export declare const PatternSchema: z.ZodObject<{
809
272
  _id: z.ZodString;
@@ -1176,513 +639,6 @@ export declare const PatternSchema: z.ZodObject<{
1176
639
  allow_drop_off: z.ZodDefault<z.ZodBoolean>;
1177
640
  allow_pickup: z.ZodDefault<z.ZodBoolean>;
1178
641
  distance_delta: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1179
- stop: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1180
- created_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
1181
- created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1182
- is_locked: z.ZodDefault<z.ZodBoolean>;
1183
- updated_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
1184
- updated_by: z.ZodOptional<z.ZodString>;
1185
- } & {
1186
- _id: z.ZodNumber;
1187
- flags: z.ZodDefault<z.ZodArray<z.ZodObject<{
1188
- agency_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1189
- is_harmonized: z.ZodDefault<z.ZodBoolean>;
1190
- short_name: z.ZodString;
1191
- stop_id: z.ZodString;
1192
- }, "strip", z.ZodTypeAny, {
1193
- short_name: string;
1194
- agency_ids: string[];
1195
- is_harmonized: boolean;
1196
- stop_id: string;
1197
- }, {
1198
- short_name: string;
1199
- stop_id: string;
1200
- agency_ids?: string[] | undefined;
1201
- is_harmonized?: boolean | undefined;
1202
- }>, "many">>;
1203
- is_deleted: z.ZodDefault<z.ZodBoolean>;
1204
- jurisdiction: z.ZodDefault<z.ZodEnum<["ip", "municipality", "other", "unknown"]>>;
1205
- legacy_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1206
- legacy_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1207
- lifecycle_status: z.ZodDefault<z.ZodEnum<["draft", "active", "inactive", "provisional", "seasonal", "voided"]>>;
1208
- name: z.ZodString;
1209
- new_name: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1210
- previous_go_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1211
- short_name: z.ZodString;
1212
- tts_name: z.ZodString;
1213
- district_id: z.ZodString;
1214
- latitude: z.ZodNumber;
1215
- locality_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1216
- longitude: z.ZodNumber;
1217
- municipality_id: z.ZodString;
1218
- parish_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1219
- bench_status: z.ZodDefault<z.ZodEnum<["not_applicable", "unknown", "missing", "damaged", "ok"]>>;
1220
- electricity_status: z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>;
1221
- pole_status: z.ZodDefault<z.ZodEnum<["not_applicable", "unknown", "missing", "damaged", "ok"]>>;
1222
- road_type: z.ZodDefault<z.ZodEnum<["complementary_itinerary", "highway", "main_itinerary", "national_road", "regional_road", "secondary_road", "unknown"]>>;
1223
- shelter_code: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1224
- shelter_frame_size: z.ZodDefault<z.ZodNullable<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
1225
- shelter_installation_date: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>>>;
1226
- shelter_maintainer: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1227
- shelter_make: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1228
- shelter_model: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1229
- shelter_status: z.ZodDefault<z.ZodEnum<["not_applicable", "unknown", "missing", "damaged", "ok"]>>;
1230
- last_infrastructure_check: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>>>;
1231
- last_infrastructure_maintenance: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>>>;
1232
- last_schedules_check: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>>>;
1233
- last_schedules_maintenance: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>>>;
1234
- connections: z.ZodDefault<z.ZodArray<z.ZodEnum<["ferry", "light_rail", "subway", "train", "boat", "airport", "bike_sharing", "bike_parking", "car_parking"]>, "many">>;
1235
- facilities: z.ZodDefault<z.ZodArray<z.ZodEnum<["fire_station", "health_clinic", "historic_building", "hospital", "police_station", "school", "shopping", "transit_office", "university", "beach"]>, "many">>;
1236
- equipment: z.ZodDefault<z.ZodArray<z.ZodEnum<["pip", "mupi", "mini_pip"]>, "many">>;
1237
- has_bench: z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>;
1238
- has_mupi: z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>;
1239
- has_network_map: z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>;
1240
- has_schedules: z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>;
1241
- has_shelter: z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>;
1242
- has_stop_sign: z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>;
1243
- file_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1244
- image_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1245
- comments: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1246
- message: z.ZodString;
1247
- type: z.ZodLiteral<"note">;
1248
- _id: z.ZodOptional<z.ZodString>;
1249
- created_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
1250
- created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1251
- updated_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
1252
- updated_by: z.ZodOptional<z.ZodString>;
1253
- }, "strip", z.ZodTypeAny, {
1254
- message: string;
1255
- type: "note";
1256
- created_at: number & {
1257
- __brand: "UnixTimestamp";
1258
- };
1259
- created_by: string | null;
1260
- updated_at: number & {
1261
- __brand: "UnixTimestamp";
1262
- };
1263
- _id?: string | undefined;
1264
- updated_by?: string | undefined;
1265
- }, {
1266
- message: string;
1267
- type: "note";
1268
- created_at: number;
1269
- updated_at: number;
1270
- _id?: string | undefined;
1271
- created_by?: string | null | undefined;
1272
- updated_by?: string | undefined;
1273
- }>, z.ZodObject<{
1274
- type: z.ZodLiteral<"field_changed">;
1275
- _id: z.ZodOptional<z.ZodString>;
1276
- created_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
1277
- created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1278
- updated_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
1279
- updated_by: z.ZodOptional<z.ZodString>;
1280
- curr_value: z.ZodAny;
1281
- field: z.ZodString;
1282
- prev_value: z.ZodAny;
1283
- metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1284
- changes: z.ZodOptional<z.ZodArray<z.ZodObject<{
1285
- curr_value: z.ZodAny;
1286
- field: z.ZodString;
1287
- prev_value: z.ZodAny;
1288
- }, "strip", z.ZodTypeAny, {
1289
- field: string;
1290
- curr_value?: any;
1291
- prev_value?: any;
1292
- }, {
1293
- field: string;
1294
- curr_value?: any;
1295
- prev_value?: any;
1296
- }>, "many">>;
1297
- }, "strip", z.ZodTypeAny, {
1298
- changes?: {
1299
- field: string;
1300
- curr_value?: any;
1301
- prev_value?: any;
1302
- }[] | undefined;
1303
- }, {
1304
- changes?: {
1305
- field: string;
1306
- curr_value?: any;
1307
- prev_value?: any;
1308
- }[] | undefined;
1309
- }>>>;
1310
- }, "strip", z.ZodTypeAny, {
1311
- type: "field_changed";
1312
- created_at: number & {
1313
- __brand: "UnixTimestamp";
1314
- };
1315
- created_by: string | null;
1316
- updated_at: number & {
1317
- __brand: "UnixTimestamp";
1318
- };
1319
- field: string;
1320
- _id?: string | undefined;
1321
- updated_by?: string | undefined;
1322
- curr_value?: any;
1323
- prev_value?: any;
1324
- metadata?: {
1325
- changes?: {
1326
- field: string;
1327
- curr_value?: any;
1328
- prev_value?: any;
1329
- }[] | undefined;
1330
- } | null | undefined;
1331
- }, {
1332
- type: "field_changed";
1333
- created_at: number;
1334
- updated_at: number;
1335
- field: string;
1336
- _id?: string | undefined;
1337
- created_by?: string | null | undefined;
1338
- updated_by?: string | undefined;
1339
- curr_value?: any;
1340
- prev_value?: any;
1341
- metadata?: {
1342
- changes?: {
1343
- field: string;
1344
- curr_value?: any;
1345
- prev_value?: any;
1346
- }[] | undefined;
1347
- } | null | undefined;
1348
- }>, z.ZodObject<{
1349
- type: z.ZodLiteral<"crud">;
1350
- _id: z.ZodOptional<z.ZodString>;
1351
- created_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
1352
- created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1353
- updated_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
1354
- updated_by: z.ZodOptional<z.ZodString>;
1355
- action: z.ZodEnum<["create", "update", "delete", "archive", "restore"]>;
1356
- }, "strip", z.ZodTypeAny, {
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
- }, {
1369
- type: "crud";
1370
- created_at: number;
1371
- updated_at: number;
1372
- action: "create" | "update" | "delete" | "archive" | "restore";
1373
- _id?: string | undefined;
1374
- created_by?: string | null | undefined;
1375
- updated_by?: string | undefined;
1376
- }>]>, {
1377
- message: string;
1378
- type: "note";
1379
- created_at: number & {
1380
- __brand: "UnixTimestamp";
1381
- };
1382
- created_by: string | null;
1383
- updated_at: number & {
1384
- __brand: "UnixTimestamp";
1385
- };
1386
- _id?: string | undefined;
1387
- updated_by?: string | undefined;
1388
- } | {
1389
- type: "field_changed";
1390
- created_at: number & {
1391
- __brand: "UnixTimestamp";
1392
- };
1393
- created_by: string | null;
1394
- updated_at: number & {
1395
- __brand: "UnixTimestamp";
1396
- };
1397
- field: string;
1398
- _id?: string | undefined;
1399
- updated_by?: string | undefined;
1400
- curr_value?: any;
1401
- prev_value?: any;
1402
- metadata?: {
1403
- changes?: {
1404
- field: string;
1405
- curr_value?: any;
1406
- prev_value?: any;
1407
- }[] | undefined;
1408
- } | null | undefined;
1409
- } | {
1410
- type: "crud";
1411
- created_at: number & {
1412
- __brand: "UnixTimestamp";
1413
- };
1414
- created_by: string | null;
1415
- updated_at: number & {
1416
- __brand: "UnixTimestamp";
1417
- };
1418
- action: "create" | "update" | "delete" | "archive" | "restore";
1419
- _id?: string | undefined;
1420
- updated_by?: string | undefined;
1421
- }, {
1422
- message: string;
1423
- type: "note";
1424
- created_at: number;
1425
- updated_at: number;
1426
- _id?: string | undefined;
1427
- created_by?: string | null | undefined;
1428
- updated_by?: string | undefined;
1429
- } | {
1430
- type: "field_changed";
1431
- created_at: number;
1432
- updated_at: number;
1433
- field: string;
1434
- _id?: string | undefined;
1435
- created_by?: string | null | undefined;
1436
- updated_by?: string | undefined;
1437
- curr_value?: any;
1438
- prev_value?: any;
1439
- metadata?: {
1440
- changes?: {
1441
- field: string;
1442
- curr_value?: any;
1443
- prev_value?: any;
1444
- }[] | undefined;
1445
- } | null | undefined;
1446
- } | {
1447
- type: "crud";
1448
- created_at: number;
1449
- updated_at: number;
1450
- action: "create" | "update" | "delete" | "archive" | "restore";
1451
- _id?: string | undefined;
1452
- created_by?: string | null | undefined;
1453
- updated_by?: string | undefined;
1454
- }>, "many">>;
1455
- observations: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1456
- associated_patterns: z.ZodDefault<z.ZodArray<z.ZodObject<{
1457
- _id: z.ZodString;
1458
- code: z.ZodString;
1459
- headsign: z.ZodString;
1460
- line_id: z.ZodString;
1461
- route_id: z.ZodString;
1462
- }, "strip", z.ZodTypeAny, {
1463
- _id: string;
1464
- code: string;
1465
- headsign: string;
1466
- line_id: string;
1467
- route_id: string;
1468
- }, {
1469
- _id: string;
1470
- code: string;
1471
- headsign: string;
1472
- line_id: string;
1473
- route_id: string;
1474
- }>, "many">>;
1475
- }, "strip", z.ZodTypeAny, {
1476
- _id: number;
1477
- created_at: number & {
1478
- __brand: "UnixTimestamp";
1479
- };
1480
- created_by: string | null;
1481
- is_locked: boolean;
1482
- updated_at: number & {
1483
- __brand: "UnixTimestamp";
1484
- };
1485
- name: string;
1486
- short_name: string;
1487
- associated_patterns: {
1488
- _id: string;
1489
- code: string;
1490
- headsign: string;
1491
- line_id: string;
1492
- route_id: string;
1493
- }[];
1494
- comments: ({
1495
- message: string;
1496
- type: "note";
1497
- created_at: number & {
1498
- __brand: "UnixTimestamp";
1499
- };
1500
- created_by: string | null;
1501
- updated_at: number & {
1502
- __brand: "UnixTimestamp";
1503
- };
1504
- _id?: string | undefined;
1505
- updated_by?: string | undefined;
1506
- } | {
1507
- type: "field_changed";
1508
- created_at: number & {
1509
- __brand: "UnixTimestamp";
1510
- };
1511
- created_by: string | null;
1512
- updated_at: number & {
1513
- __brand: "UnixTimestamp";
1514
- };
1515
- field: string;
1516
- _id?: string | undefined;
1517
- updated_by?: string | undefined;
1518
- curr_value?: any;
1519
- prev_value?: any;
1520
- metadata?: {
1521
- changes?: {
1522
- field: string;
1523
- curr_value?: any;
1524
- prev_value?: any;
1525
- }[] | undefined;
1526
- } | null | undefined;
1527
- } | {
1528
- type: "crud";
1529
- created_at: number & {
1530
- __brand: "UnixTimestamp";
1531
- };
1532
- created_by: string | null;
1533
- updated_at: number & {
1534
- __brand: "UnixTimestamp";
1535
- };
1536
- action: "create" | "update" | "delete" | "archive" | "restore";
1537
- _id?: string | undefined;
1538
- updated_by?: string | undefined;
1539
- })[];
1540
- flags: {
1541
- short_name: string;
1542
- agency_ids: string[];
1543
- is_harmonized: boolean;
1544
- stop_id: string;
1545
- }[];
1546
- jurisdiction: "unknown" | "ip" | "municipality" | "other";
1547
- legacy_id: string | null;
1548
- legacy_ids: string[];
1549
- lifecycle_status: "draft" | "active" | "inactive" | "provisional" | "seasonal" | "voided";
1550
- new_name: string | null;
1551
- previous_go_id: string | null;
1552
- tts_name: string;
1553
- district_id: string;
1554
- latitude: number;
1555
- locality_id: string | null;
1556
- longitude: number;
1557
- municipality_id: string;
1558
- parish_id: string | null;
1559
- bench_status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok";
1560
- electricity_status: "unknown" | "available" | "unavailable";
1561
- pole_status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok";
1562
- road_type: "unknown" | "complementary_itinerary" | "highway" | "main_itinerary" | "national_road" | "regional_road" | "secondary_road";
1563
- shelter_code: string | null;
1564
- shelter_frame_size: [number, number] | null;
1565
- shelter_installation_date: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null;
1566
- shelter_maintainer: string | null;
1567
- shelter_make: string | null;
1568
- shelter_model: string | null;
1569
- shelter_status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok";
1570
- last_infrastructure_check: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null;
1571
- last_infrastructure_maintenance: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null;
1572
- last_schedules_check: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null;
1573
- last_schedules_maintenance: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null;
1574
- connections: ("ferry" | "light_rail" | "subway" | "train" | "boat" | "airport" | "bike_sharing" | "bike_parking" | "car_parking")[];
1575
- facilities: ("fire_station" | "health_clinic" | "historic_building" | "hospital" | "police_station" | "school" | "shopping" | "transit_office" | "university" | "beach")[];
1576
- equipment: ("pip" | "mupi" | "mini_pip")[];
1577
- has_bench: "unknown" | "available" | "unavailable";
1578
- has_mupi: "unknown" | "available" | "unavailable";
1579
- has_network_map: "unknown" | "available" | "unavailable";
1580
- has_schedules: "unknown" | "available" | "unavailable";
1581
- has_shelter: "unknown" | "available" | "unavailable";
1582
- has_stop_sign: "unknown" | "available" | "unavailable";
1583
- observations: string | null;
1584
- is_deleted: boolean;
1585
- file_ids: string[];
1586
- image_ids: string[];
1587
- updated_by?: string | undefined;
1588
- }, {
1589
- _id: number;
1590
- created_at: number;
1591
- updated_at: number;
1592
- name: string;
1593
- short_name: string;
1594
- tts_name: string;
1595
- district_id: string;
1596
- latitude: number;
1597
- longitude: number;
1598
- municipality_id: string;
1599
- created_by?: string | null | undefined;
1600
- is_locked?: boolean | undefined;
1601
- updated_by?: string | undefined;
1602
- associated_patterns?: {
1603
- _id: string;
1604
- code: string;
1605
- headsign: string;
1606
- line_id: string;
1607
- route_id: string;
1608
- }[] | undefined;
1609
- comments?: ({
1610
- message: string;
1611
- type: "note";
1612
- created_at: number;
1613
- updated_at: number;
1614
- _id?: string | undefined;
1615
- created_by?: string | null | undefined;
1616
- updated_by?: string | undefined;
1617
- } | {
1618
- type: "field_changed";
1619
- created_at: number;
1620
- updated_at: number;
1621
- field: string;
1622
- _id?: string | undefined;
1623
- created_by?: string | null | undefined;
1624
- updated_by?: string | undefined;
1625
- curr_value?: any;
1626
- prev_value?: any;
1627
- metadata?: {
1628
- changes?: {
1629
- field: string;
1630
- curr_value?: any;
1631
- prev_value?: any;
1632
- }[] | undefined;
1633
- } | null | undefined;
1634
- } | {
1635
- type: "crud";
1636
- created_at: number;
1637
- updated_at: number;
1638
- action: "create" | "update" | "delete" | "archive" | "restore";
1639
- _id?: string | undefined;
1640
- created_by?: string | null | undefined;
1641
- updated_by?: string | undefined;
1642
- })[] | undefined;
1643
- flags?: {
1644
- short_name: string;
1645
- stop_id: string;
1646
- agency_ids?: string[] | undefined;
1647
- is_harmonized?: boolean | undefined;
1648
- }[] | undefined;
1649
- jurisdiction?: "unknown" | "ip" | "municipality" | "other" | undefined;
1650
- legacy_id?: string | null | undefined;
1651
- legacy_ids?: string[] | undefined;
1652
- lifecycle_status?: "draft" | "active" | "inactive" | "provisional" | "seasonal" | "voided" | undefined;
1653
- new_name?: string | null | undefined;
1654
- previous_go_id?: string | null | undefined;
1655
- locality_id?: string | null | undefined;
1656
- parish_id?: string | null | undefined;
1657
- bench_status?: "unknown" | "not_applicable" | "missing" | "damaged" | "ok" | undefined;
1658
- electricity_status?: "unknown" | "available" | "unavailable" | undefined;
1659
- pole_status?: "unknown" | "not_applicable" | "missing" | "damaged" | "ok" | undefined;
1660
- road_type?: "unknown" | "complementary_itinerary" | "highway" | "main_itinerary" | "national_road" | "regional_road" | "secondary_road" | undefined;
1661
- shelter_code?: string | null | undefined;
1662
- shelter_frame_size?: [number, number] | null | undefined;
1663
- shelter_installation_date?: number | null | undefined;
1664
- shelter_maintainer?: string | null | undefined;
1665
- shelter_make?: string | null | undefined;
1666
- shelter_model?: string | null | undefined;
1667
- shelter_status?: "unknown" | "not_applicable" | "missing" | "damaged" | "ok" | undefined;
1668
- last_infrastructure_check?: number | null | undefined;
1669
- last_infrastructure_maintenance?: number | null | undefined;
1670
- last_schedules_check?: number | null | undefined;
1671
- last_schedules_maintenance?: number | null | undefined;
1672
- connections?: ("ferry" | "light_rail" | "subway" | "train" | "boat" | "airport" | "bike_sharing" | "bike_parking" | "car_parking")[] | undefined;
1673
- facilities?: ("fire_station" | "health_clinic" | "historic_building" | "hospital" | "police_station" | "school" | "shopping" | "transit_office" | "university" | "beach")[] | undefined;
1674
- equipment?: ("pip" | "mupi" | "mini_pip")[] | undefined;
1675
- has_bench?: "unknown" | "available" | "unavailable" | undefined;
1676
- has_mupi?: "unknown" | "available" | "unavailable" | undefined;
1677
- has_network_map?: "unknown" | "available" | "unavailable" | undefined;
1678
- has_schedules?: "unknown" | "available" | "unavailable" | undefined;
1679
- has_shelter?: "unknown" | "available" | "unavailable" | undefined;
1680
- has_stop_sign?: "unknown" | "available" | "unavailable" | undefined;
1681
- observations?: string | null | undefined;
1682
- is_deleted?: boolean | undefined;
1683
- file_ids?: string[] | undefined;
1684
- image_ids?: string[] | undefined;
1685
- }>>>;
1686
642
  stop_id: z.ZodNumber;
1687
643
  timepoint: z.ZodDefault<z.ZodBoolean>;
1688
644
  zones: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -1694,222 +650,10 @@ export declare const PatternSchema: z.ZodObject<{
1694
650
  allow_pickup: boolean;
1695
651
  distance_delta: number | null;
1696
652
  zones?: string[] | undefined;
1697
- stop?: {
1698
- _id: number;
1699
- created_at: number & {
1700
- __brand: "UnixTimestamp";
1701
- };
1702
- created_by: string | null;
1703
- is_locked: boolean;
1704
- updated_at: number & {
1705
- __brand: "UnixTimestamp";
1706
- };
1707
- name: string;
1708
- short_name: string;
1709
- associated_patterns: {
1710
- _id: string;
1711
- code: string;
1712
- headsign: string;
1713
- line_id: string;
1714
- route_id: string;
1715
- }[];
1716
- comments: ({
1717
- message: string;
1718
- type: "note";
1719
- created_at: number & {
1720
- __brand: "UnixTimestamp";
1721
- };
1722
- created_by: string | null;
1723
- updated_at: number & {
1724
- __brand: "UnixTimestamp";
1725
- };
1726
- _id?: string | undefined;
1727
- updated_by?: string | undefined;
1728
- } | {
1729
- type: "field_changed";
1730
- created_at: number & {
1731
- __brand: "UnixTimestamp";
1732
- };
1733
- created_by: string | null;
1734
- updated_at: number & {
1735
- __brand: "UnixTimestamp";
1736
- };
1737
- field: string;
1738
- _id?: string | undefined;
1739
- updated_by?: string | undefined;
1740
- curr_value?: any;
1741
- prev_value?: any;
1742
- metadata?: {
1743
- changes?: {
1744
- field: string;
1745
- curr_value?: any;
1746
- prev_value?: any;
1747
- }[] | undefined;
1748
- } | null | undefined;
1749
- } | {
1750
- type: "crud";
1751
- created_at: number & {
1752
- __brand: "UnixTimestamp";
1753
- };
1754
- created_by: string | null;
1755
- updated_at: number & {
1756
- __brand: "UnixTimestamp";
1757
- };
1758
- action: "create" | "update" | "delete" | "archive" | "restore";
1759
- _id?: string | undefined;
1760
- updated_by?: string | undefined;
1761
- })[];
1762
- flags: {
1763
- short_name: string;
1764
- agency_ids: string[];
1765
- is_harmonized: boolean;
1766
- stop_id: string;
1767
- }[];
1768
- jurisdiction: "unknown" | "ip" | "municipality" | "other";
1769
- legacy_id: string | null;
1770
- legacy_ids: string[];
1771
- lifecycle_status: "draft" | "active" | "inactive" | "provisional" | "seasonal" | "voided";
1772
- new_name: string | null;
1773
- previous_go_id: string | null;
1774
- tts_name: string;
1775
- district_id: string;
1776
- latitude: number;
1777
- locality_id: string | null;
1778
- longitude: number;
1779
- municipality_id: string;
1780
- parish_id: string | null;
1781
- bench_status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok";
1782
- electricity_status: "unknown" | "available" | "unavailable";
1783
- pole_status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok";
1784
- road_type: "unknown" | "complementary_itinerary" | "highway" | "main_itinerary" | "national_road" | "regional_road" | "secondary_road";
1785
- shelter_code: string | null;
1786
- shelter_frame_size: [number, number] | null;
1787
- shelter_installation_date: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null;
1788
- shelter_maintainer: string | null;
1789
- shelter_make: string | null;
1790
- shelter_model: string | null;
1791
- shelter_status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok";
1792
- last_infrastructure_check: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null;
1793
- last_infrastructure_maintenance: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null;
1794
- last_schedules_check: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null;
1795
- last_schedules_maintenance: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null;
1796
- connections: ("ferry" | "light_rail" | "subway" | "train" | "boat" | "airport" | "bike_sharing" | "bike_parking" | "car_parking")[];
1797
- facilities: ("fire_station" | "health_clinic" | "historic_building" | "hospital" | "police_station" | "school" | "shopping" | "transit_office" | "university" | "beach")[];
1798
- equipment: ("pip" | "mupi" | "mini_pip")[];
1799
- has_bench: "unknown" | "available" | "unavailable";
1800
- has_mupi: "unknown" | "available" | "unavailable";
1801
- has_network_map: "unknown" | "available" | "unavailable";
1802
- has_schedules: "unknown" | "available" | "unavailable";
1803
- has_shelter: "unknown" | "available" | "unavailable";
1804
- has_stop_sign: "unknown" | "available" | "unavailable";
1805
- observations: string | null;
1806
- is_deleted: boolean;
1807
- file_ids: string[];
1808
- image_ids: string[];
1809
- updated_by?: string | undefined;
1810
- } | null | undefined;
1811
653
  }, {
1812
654
  _id: string;
1813
655
  stop_id: number;
1814
656
  zones?: string[] | undefined;
1815
- stop?: {
1816
- _id: number;
1817
- created_at: number;
1818
- updated_at: number;
1819
- name: string;
1820
- short_name: string;
1821
- tts_name: string;
1822
- district_id: string;
1823
- latitude: number;
1824
- longitude: number;
1825
- municipality_id: string;
1826
- created_by?: string | null | undefined;
1827
- is_locked?: boolean | undefined;
1828
- updated_by?: string | undefined;
1829
- associated_patterns?: {
1830
- _id: string;
1831
- code: string;
1832
- headsign: string;
1833
- line_id: string;
1834
- route_id: string;
1835
- }[] | undefined;
1836
- comments?: ({
1837
- message: string;
1838
- type: "note";
1839
- created_at: number;
1840
- updated_at: number;
1841
- _id?: string | undefined;
1842
- created_by?: string | null | undefined;
1843
- updated_by?: string | undefined;
1844
- } | {
1845
- type: "field_changed";
1846
- created_at: number;
1847
- updated_at: number;
1848
- field: string;
1849
- _id?: string | undefined;
1850
- created_by?: string | null | undefined;
1851
- updated_by?: string | undefined;
1852
- curr_value?: any;
1853
- prev_value?: any;
1854
- metadata?: {
1855
- changes?: {
1856
- field: string;
1857
- curr_value?: any;
1858
- prev_value?: any;
1859
- }[] | undefined;
1860
- } | null | undefined;
1861
- } | {
1862
- type: "crud";
1863
- created_at: number;
1864
- updated_at: number;
1865
- action: "create" | "update" | "delete" | "archive" | "restore";
1866
- _id?: string | undefined;
1867
- created_by?: string | null | undefined;
1868
- updated_by?: string | undefined;
1869
- })[] | undefined;
1870
- flags?: {
1871
- short_name: string;
1872
- stop_id: string;
1873
- agency_ids?: string[] | undefined;
1874
- is_harmonized?: boolean | undefined;
1875
- }[] | undefined;
1876
- jurisdiction?: "unknown" | "ip" | "municipality" | "other" | undefined;
1877
- legacy_id?: string | null | undefined;
1878
- legacy_ids?: string[] | undefined;
1879
- lifecycle_status?: "draft" | "active" | "inactive" | "provisional" | "seasonal" | "voided" | undefined;
1880
- new_name?: string | null | undefined;
1881
- previous_go_id?: string | null | undefined;
1882
- locality_id?: string | null | undefined;
1883
- parish_id?: string | null | undefined;
1884
- bench_status?: "unknown" | "not_applicable" | "missing" | "damaged" | "ok" | undefined;
1885
- electricity_status?: "unknown" | "available" | "unavailable" | undefined;
1886
- pole_status?: "unknown" | "not_applicable" | "missing" | "damaged" | "ok" | undefined;
1887
- road_type?: "unknown" | "complementary_itinerary" | "highway" | "main_itinerary" | "national_road" | "regional_road" | "secondary_road" | undefined;
1888
- shelter_code?: string | null | undefined;
1889
- shelter_frame_size?: [number, number] | null | undefined;
1890
- shelter_installation_date?: number | null | undefined;
1891
- shelter_maintainer?: string | null | undefined;
1892
- shelter_make?: string | null | undefined;
1893
- shelter_model?: string | null | undefined;
1894
- shelter_status?: "unknown" | "not_applicable" | "missing" | "damaged" | "ok" | undefined;
1895
- last_infrastructure_check?: number | null | undefined;
1896
- last_infrastructure_maintenance?: number | null | undefined;
1897
- last_schedules_check?: number | null | undefined;
1898
- last_schedules_maintenance?: number | null | undefined;
1899
- connections?: ("ferry" | "light_rail" | "subway" | "train" | "boat" | "airport" | "bike_sharing" | "bike_parking" | "car_parking")[] | undefined;
1900
- facilities?: ("fire_station" | "health_clinic" | "historic_building" | "hospital" | "police_station" | "school" | "shopping" | "transit_office" | "university" | "beach")[] | undefined;
1901
- equipment?: ("pip" | "mupi" | "mini_pip")[] | undefined;
1902
- has_bench?: "unknown" | "available" | "unavailable" | undefined;
1903
- has_mupi?: "unknown" | "available" | "unavailable" | undefined;
1904
- has_network_map?: "unknown" | "available" | "unavailable" | undefined;
1905
- has_schedules?: "unknown" | "available" | "unavailable" | undefined;
1906
- has_shelter?: "unknown" | "available" | "unavailable" | undefined;
1907
- has_stop_sign?: "unknown" | "available" | "unavailable" | undefined;
1908
- observations?: string | null | undefined;
1909
- is_deleted?: boolean | undefined;
1910
- file_ids?: string[] | undefined;
1911
- image_ids?: string[] | undefined;
1912
- } | null | undefined;
1913
657
  timepoint?: boolean | undefined;
1914
658
  allow_drop_off?: boolean | undefined;
1915
659
  allow_pickup?: boolean | undefined;
@@ -2087,6 +831,31 @@ export declare const PatternSchema: z.ZodObject<{
2087
831
  same_weekday?: boolean | undefined;
2088
832
  }>]>, "many">>>;
2089
833
  shape: z.ZodOptional<z.ZodObject<{
834
+ anchors: z.ZodOptional<z.ZodArray<z.ZodObject<{
835
+ _id: z.ZodString;
836
+ after_stop_id: z.ZodNumber;
837
+ before_stop_id: z.ZodNumber;
838
+ lat: z.ZodNumber;
839
+ lon: z.ZodNumber;
840
+ sequence: z.ZodDefault<z.ZodNumber>;
841
+ type: z.ZodDefault<z.ZodEnum<["via", "through"]>>;
842
+ }, "strip", z.ZodTypeAny, {
843
+ _id: string;
844
+ type: "via" | "through";
845
+ after_stop_id: number;
846
+ before_stop_id: number;
847
+ lat: number;
848
+ lon: number;
849
+ sequence: number;
850
+ }, {
851
+ _id: string;
852
+ after_stop_id: number;
853
+ before_stop_id: number;
854
+ lat: number;
855
+ lon: number;
856
+ type?: "via" | "through" | undefined;
857
+ sequence?: number | undefined;
858
+ }>, "many">>;
2090
859
  extension: z.ZodNumber;
2091
860
  geojson: z.ZodObject<{
2092
861
  geometry: z.ZodObject<{
@@ -2116,6 +885,104 @@ export declare const PatternSchema: z.ZodObject<{
2116
885
  type?: string | undefined;
2117
886
  properties?: {} | undefined;
2118
887
  }>;
888
+ legs: z.ZodOptional<z.ZodArray<z.ZodObject<{
889
+ distance: z.ZodNumber;
890
+ duration: z.ZodNumber;
891
+ from_index: z.ZodNumber;
892
+ geojson: z.ZodObject<{
893
+ geometry: z.ZodObject<{
894
+ coordinates: z.ZodArray<z.ZodArray<z.ZodNumber, "many">, "many">;
895
+ type: z.ZodDefault<z.ZodString>;
896
+ }, "strip", z.ZodTypeAny, {
897
+ type: string;
898
+ coordinates: number[][];
899
+ }, {
900
+ coordinates: number[][];
901
+ type?: string | undefined;
902
+ }>;
903
+ properties: z.ZodObject<{
904
+ distance: z.ZodNumber;
905
+ duration: z.ZodNumber;
906
+ from_index: z.ZodNumber;
907
+ to_index: z.ZodNumber;
908
+ }, "strip", z.ZodTypeAny, {
909
+ distance: number;
910
+ duration: number;
911
+ from_index: number;
912
+ to_index: number;
913
+ }, {
914
+ distance: number;
915
+ duration: number;
916
+ from_index: number;
917
+ to_index: number;
918
+ }>;
919
+ type: z.ZodDefault<z.ZodString>;
920
+ }, "strip", z.ZodTypeAny, {
921
+ type: string;
922
+ properties: {
923
+ distance: number;
924
+ duration: number;
925
+ from_index: number;
926
+ to_index: number;
927
+ };
928
+ geometry: {
929
+ type: string;
930
+ coordinates: number[][];
931
+ };
932
+ }, {
933
+ properties: {
934
+ distance: number;
935
+ duration: number;
936
+ from_index: number;
937
+ to_index: number;
938
+ };
939
+ geometry: {
940
+ coordinates: number[][];
941
+ type?: string | undefined;
942
+ };
943
+ type?: string | undefined;
944
+ }>;
945
+ geometry: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">;
946
+ to_index: z.ZodNumber;
947
+ }, "strip", z.ZodTypeAny, {
948
+ distance: number;
949
+ geometry: [number, number][];
950
+ geojson: {
951
+ type: string;
952
+ properties: {
953
+ distance: number;
954
+ duration: number;
955
+ from_index: number;
956
+ to_index: number;
957
+ };
958
+ geometry: {
959
+ type: string;
960
+ coordinates: number[][];
961
+ };
962
+ };
963
+ duration: number;
964
+ from_index: number;
965
+ to_index: number;
966
+ }, {
967
+ distance: number;
968
+ geometry: [number, number][];
969
+ geojson: {
970
+ properties: {
971
+ distance: number;
972
+ duration: number;
973
+ from_index: number;
974
+ to_index: number;
975
+ };
976
+ geometry: {
977
+ coordinates: number[][];
978
+ type?: string | undefined;
979
+ };
980
+ type?: string | undefined;
981
+ };
982
+ duration: number;
983
+ from_index: number;
984
+ to_index: number;
985
+ }>, "many">>;
2119
986
  }, "strip", z.ZodTypeAny, {
2120
987
  extension: number;
2121
988
  geojson: {
@@ -2126,6 +993,35 @@ export declare const PatternSchema: z.ZodObject<{
2126
993
  };
2127
994
  properties?: {} | undefined;
2128
995
  };
996
+ anchors?: {
997
+ _id: string;
998
+ type: "via" | "through";
999
+ after_stop_id: number;
1000
+ before_stop_id: number;
1001
+ lat: number;
1002
+ lon: number;
1003
+ sequence: number;
1004
+ }[] | undefined;
1005
+ legs?: {
1006
+ distance: number;
1007
+ geometry: [number, number][];
1008
+ geojson: {
1009
+ type: string;
1010
+ properties: {
1011
+ distance: number;
1012
+ duration: number;
1013
+ from_index: number;
1014
+ to_index: number;
1015
+ };
1016
+ geometry: {
1017
+ type: string;
1018
+ coordinates: number[][];
1019
+ };
1020
+ };
1021
+ duration: number;
1022
+ from_index: number;
1023
+ to_index: number;
1024
+ }[] | undefined;
2129
1025
  }, {
2130
1026
  extension: number;
2131
1027
  geojson: {
@@ -2136,6 +1032,35 @@ export declare const PatternSchema: z.ZodObject<{
2136
1032
  type?: string | undefined;
2137
1033
  properties?: {} | undefined;
2138
1034
  };
1035
+ anchors?: {
1036
+ _id: string;
1037
+ after_stop_id: number;
1038
+ before_stop_id: number;
1039
+ lat: number;
1040
+ lon: number;
1041
+ type?: "via" | "through" | undefined;
1042
+ sequence?: number | undefined;
1043
+ }[] | undefined;
1044
+ legs?: {
1045
+ distance: number;
1046
+ geometry: [number, number][];
1047
+ geojson: {
1048
+ properties: {
1049
+ distance: number;
1050
+ duration: number;
1051
+ from_index: number;
1052
+ to_index: number;
1053
+ };
1054
+ geometry: {
1055
+ coordinates: number[][];
1056
+ type?: string | undefined;
1057
+ };
1058
+ type?: string | undefined;
1059
+ };
1060
+ duration: number;
1061
+ from_index: number;
1062
+ to_index: number;
1063
+ }[] | undefined;
2139
1064
  }>>;
2140
1065
  }, "strip", z.ZodTypeAny, {
2141
1066
  _id: string;
@@ -2252,120 +1177,6 @@ export declare const PatternSchema: z.ZodObject<{
2252
1177
  allow_pickup: boolean;
2253
1178
  distance_delta: number | null;
2254
1179
  zones?: string[] | undefined;
2255
- stop?: {
2256
- _id: number;
2257
- created_at: number & {
2258
- __brand: "UnixTimestamp";
2259
- };
2260
- created_by: string | null;
2261
- is_locked: boolean;
2262
- updated_at: number & {
2263
- __brand: "UnixTimestamp";
2264
- };
2265
- name: string;
2266
- short_name: string;
2267
- associated_patterns: {
2268
- _id: string;
2269
- code: string;
2270
- headsign: string;
2271
- line_id: string;
2272
- route_id: string;
2273
- }[];
2274
- comments: ({
2275
- message: string;
2276
- type: "note";
2277
- created_at: number & {
2278
- __brand: "UnixTimestamp";
2279
- };
2280
- created_by: string | null;
2281
- updated_at: number & {
2282
- __brand: "UnixTimestamp";
2283
- };
2284
- _id?: string | undefined;
2285
- updated_by?: string | undefined;
2286
- } | {
2287
- type: "field_changed";
2288
- created_at: number & {
2289
- __brand: "UnixTimestamp";
2290
- };
2291
- created_by: string | null;
2292
- updated_at: number & {
2293
- __brand: "UnixTimestamp";
2294
- };
2295
- field: string;
2296
- _id?: string | undefined;
2297
- updated_by?: string | undefined;
2298
- curr_value?: any;
2299
- prev_value?: any;
2300
- metadata?: {
2301
- changes?: {
2302
- field: string;
2303
- curr_value?: any;
2304
- prev_value?: any;
2305
- }[] | undefined;
2306
- } | null | undefined;
2307
- } | {
2308
- type: "crud";
2309
- created_at: number & {
2310
- __brand: "UnixTimestamp";
2311
- };
2312
- created_by: string | null;
2313
- updated_at: number & {
2314
- __brand: "UnixTimestamp";
2315
- };
2316
- action: "create" | "update" | "delete" | "archive" | "restore";
2317
- _id?: string | undefined;
2318
- updated_by?: string | undefined;
2319
- })[];
2320
- flags: {
2321
- short_name: string;
2322
- agency_ids: string[];
2323
- is_harmonized: boolean;
2324
- stop_id: string;
2325
- }[];
2326
- jurisdiction: "unknown" | "ip" | "municipality" | "other";
2327
- legacy_id: string | null;
2328
- legacy_ids: string[];
2329
- lifecycle_status: "draft" | "active" | "inactive" | "provisional" | "seasonal" | "voided";
2330
- new_name: string | null;
2331
- previous_go_id: string | null;
2332
- tts_name: string;
2333
- district_id: string;
2334
- latitude: number;
2335
- locality_id: string | null;
2336
- longitude: number;
2337
- municipality_id: string;
2338
- parish_id: string | null;
2339
- bench_status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok";
2340
- electricity_status: "unknown" | "available" | "unavailable";
2341
- pole_status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok";
2342
- road_type: "unknown" | "complementary_itinerary" | "highway" | "main_itinerary" | "national_road" | "regional_road" | "secondary_road";
2343
- shelter_code: string | null;
2344
- shelter_frame_size: [number, number] | null;
2345
- shelter_installation_date: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null;
2346
- shelter_maintainer: string | null;
2347
- shelter_make: string | null;
2348
- shelter_model: string | null;
2349
- shelter_status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok";
2350
- last_infrastructure_check: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null;
2351
- last_infrastructure_maintenance: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null;
2352
- last_schedules_check: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null;
2353
- last_schedules_maintenance: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null;
2354
- connections: ("ferry" | "light_rail" | "subway" | "train" | "boat" | "airport" | "bike_sharing" | "bike_parking" | "car_parking")[];
2355
- facilities: ("fire_station" | "health_clinic" | "historic_building" | "hospital" | "police_station" | "school" | "shopping" | "transit_office" | "university" | "beach")[];
2356
- equipment: ("pip" | "mupi" | "mini_pip")[];
2357
- has_bench: "unknown" | "available" | "unavailable";
2358
- has_mupi: "unknown" | "available" | "unavailable";
2359
- has_network_map: "unknown" | "available" | "unavailable";
2360
- has_schedules: "unknown" | "available" | "unavailable";
2361
- has_shelter: "unknown" | "available" | "unavailable";
2362
- has_stop_sign: "unknown" | "available" | "unavailable";
2363
- observations: string | null;
2364
- is_deleted: boolean;
2365
- file_ids: string[];
2366
- image_ids: string[];
2367
- updated_by?: string | undefined;
2368
- } | null | undefined;
2369
1180
  }[] | undefined;
2370
1181
  shape?: {
2371
1182
  extension: number;
@@ -2377,6 +1188,35 @@ export declare const PatternSchema: z.ZodObject<{
2377
1188
  };
2378
1189
  properties?: {} | undefined;
2379
1190
  };
1191
+ anchors?: {
1192
+ _id: string;
1193
+ type: "via" | "through";
1194
+ after_stop_id: number;
1195
+ before_stop_id: number;
1196
+ lat: number;
1197
+ lon: number;
1198
+ sequence: number;
1199
+ }[] | undefined;
1200
+ legs?: {
1201
+ distance: number;
1202
+ geometry: [number, number][];
1203
+ geojson: {
1204
+ type: string;
1205
+ properties: {
1206
+ distance: number;
1207
+ duration: number;
1208
+ from_index: number;
1209
+ to_index: number;
1210
+ };
1211
+ geometry: {
1212
+ type: string;
1213
+ coordinates: number[][];
1214
+ };
1215
+ };
1216
+ duration: number;
1217
+ from_index: number;
1218
+ to_index: number;
1219
+ }[] | undefined;
2380
1220
  } | undefined;
2381
1221
  parameters?: ({
2382
1222
  path: {
@@ -2419,104 +1259,6 @@ export declare const PatternSchema: z.ZodObject<{
2419
1259
  _id: string;
2420
1260
  stop_id: number;
2421
1261
  zones?: string[] | undefined;
2422
- stop?: {
2423
- _id: number;
2424
- created_at: number;
2425
- updated_at: number;
2426
- name: string;
2427
- short_name: string;
2428
- tts_name: string;
2429
- district_id: string;
2430
- latitude: number;
2431
- longitude: number;
2432
- municipality_id: string;
2433
- created_by?: string | null | undefined;
2434
- is_locked?: boolean | undefined;
2435
- updated_by?: string | undefined;
2436
- associated_patterns?: {
2437
- _id: string;
2438
- code: string;
2439
- headsign: string;
2440
- line_id: string;
2441
- route_id: string;
2442
- }[] | undefined;
2443
- comments?: ({
2444
- message: string;
2445
- type: "note";
2446
- created_at: number;
2447
- updated_at: number;
2448
- _id?: string | undefined;
2449
- created_by?: string | null | undefined;
2450
- updated_by?: string | undefined;
2451
- } | {
2452
- type: "field_changed";
2453
- created_at: number;
2454
- updated_at: number;
2455
- field: string;
2456
- _id?: string | undefined;
2457
- created_by?: string | null | undefined;
2458
- updated_by?: string | undefined;
2459
- curr_value?: any;
2460
- prev_value?: any;
2461
- metadata?: {
2462
- changes?: {
2463
- field: string;
2464
- curr_value?: any;
2465
- prev_value?: any;
2466
- }[] | undefined;
2467
- } | null | undefined;
2468
- } | {
2469
- type: "crud";
2470
- created_at: number;
2471
- updated_at: number;
2472
- action: "create" | "update" | "delete" | "archive" | "restore";
2473
- _id?: string | undefined;
2474
- created_by?: string | null | undefined;
2475
- updated_by?: string | undefined;
2476
- })[] | undefined;
2477
- flags?: {
2478
- short_name: string;
2479
- stop_id: string;
2480
- agency_ids?: string[] | undefined;
2481
- is_harmonized?: boolean | undefined;
2482
- }[] | undefined;
2483
- jurisdiction?: "unknown" | "ip" | "municipality" | "other" | undefined;
2484
- legacy_id?: string | null | undefined;
2485
- legacy_ids?: string[] | undefined;
2486
- lifecycle_status?: "draft" | "active" | "inactive" | "provisional" | "seasonal" | "voided" | undefined;
2487
- new_name?: string | null | undefined;
2488
- previous_go_id?: string | null | undefined;
2489
- locality_id?: string | null | undefined;
2490
- parish_id?: string | null | undefined;
2491
- bench_status?: "unknown" | "not_applicable" | "missing" | "damaged" | "ok" | undefined;
2492
- electricity_status?: "unknown" | "available" | "unavailable" | undefined;
2493
- pole_status?: "unknown" | "not_applicable" | "missing" | "damaged" | "ok" | undefined;
2494
- road_type?: "unknown" | "complementary_itinerary" | "highway" | "main_itinerary" | "national_road" | "regional_road" | "secondary_road" | undefined;
2495
- shelter_code?: string | null | undefined;
2496
- shelter_frame_size?: [number, number] | null | undefined;
2497
- shelter_installation_date?: number | null | undefined;
2498
- shelter_maintainer?: string | null | undefined;
2499
- shelter_make?: string | null | undefined;
2500
- shelter_model?: string | null | undefined;
2501
- shelter_status?: "unknown" | "not_applicable" | "missing" | "damaged" | "ok" | undefined;
2502
- last_infrastructure_check?: number | null | undefined;
2503
- last_infrastructure_maintenance?: number | null | undefined;
2504
- last_schedules_check?: number | null | undefined;
2505
- last_schedules_maintenance?: number | null | undefined;
2506
- connections?: ("ferry" | "light_rail" | "subway" | "train" | "boat" | "airport" | "bike_sharing" | "bike_parking" | "car_parking")[] | undefined;
2507
- facilities?: ("fire_station" | "health_clinic" | "historic_building" | "hospital" | "police_station" | "school" | "shopping" | "transit_office" | "university" | "beach")[] | undefined;
2508
- equipment?: ("pip" | "mupi" | "mini_pip")[] | undefined;
2509
- has_bench?: "unknown" | "available" | "unavailable" | undefined;
2510
- has_mupi?: "unknown" | "available" | "unavailable" | undefined;
2511
- has_network_map?: "unknown" | "available" | "unavailable" | undefined;
2512
- has_schedules?: "unknown" | "available" | "unavailable" | undefined;
2513
- has_shelter?: "unknown" | "available" | "unavailable" | undefined;
2514
- has_stop_sign?: "unknown" | "available" | "unavailable" | undefined;
2515
- observations?: string | null | undefined;
2516
- is_deleted?: boolean | undefined;
2517
- file_ids?: string[] | undefined;
2518
- image_ids?: string[] | undefined;
2519
- } | null | undefined;
2520
1262
  timepoint?: boolean | undefined;
2521
1263
  allow_drop_off?: boolean | undefined;
2522
1264
  allow_pickup?: boolean | undefined;
@@ -2532,6 +1274,35 @@ export declare const PatternSchema: z.ZodObject<{
2532
1274
  type?: string | undefined;
2533
1275
  properties?: {} | undefined;
2534
1276
  };
1277
+ anchors?: {
1278
+ _id: string;
1279
+ after_stop_id: number;
1280
+ before_stop_id: number;
1281
+ lat: number;
1282
+ lon: number;
1283
+ type?: "via" | "through" | undefined;
1284
+ sequence?: number | undefined;
1285
+ }[] | undefined;
1286
+ legs?: {
1287
+ distance: number;
1288
+ geometry: [number, number][];
1289
+ geojson: {
1290
+ properties: {
1291
+ distance: number;
1292
+ duration: number;
1293
+ from_index: number;
1294
+ to_index: number;
1295
+ };
1296
+ geometry: {
1297
+ coordinates: number[][];
1298
+ type?: string | undefined;
1299
+ };
1300
+ type?: string | undefined;
1301
+ };
1302
+ duration: number;
1303
+ from_index: number;
1304
+ to_index: number;
1305
+ }[] | undefined;
2535
1306
  } | undefined;
2536
1307
  rules?: ({
2537
1308
  _id: string;
@@ -3018,521 +1789,14 @@ export declare const CreatePatternSchema: z.ZodObject<Omit<{
3018
1789
  year_period_ids: string[];
3019
1790
  _id?: string | undefined;
3020
1791
  name?: string | undefined;
3021
- vehicle_type?: string | undefined;
3022
- day_periods?: ("PPM" | "CD" | "PPT" | "N" | "M")[] | undefined;
3023
- })[]>>;
3024
- path: z.ZodOptional<z.ZodArray<z.ZodObject<{
3025
- _id: z.ZodString;
3026
- allow_drop_off: z.ZodDefault<z.ZodBoolean>;
3027
- allow_pickup: z.ZodDefault<z.ZodBoolean>;
3028
- distance_delta: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
3029
- stop: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3030
- created_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
3031
- created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3032
- is_locked: z.ZodDefault<z.ZodBoolean>;
3033
- updated_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
3034
- updated_by: z.ZodOptional<z.ZodString>;
3035
- } & {
3036
- _id: z.ZodNumber;
3037
- flags: z.ZodDefault<z.ZodArray<z.ZodObject<{
3038
- agency_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
3039
- is_harmonized: z.ZodDefault<z.ZodBoolean>;
3040
- short_name: z.ZodString;
3041
- stop_id: z.ZodString;
3042
- }, "strip", z.ZodTypeAny, {
3043
- short_name: string;
3044
- agency_ids: string[];
3045
- is_harmonized: boolean;
3046
- stop_id: string;
3047
- }, {
3048
- short_name: string;
3049
- stop_id: string;
3050
- agency_ids?: string[] | undefined;
3051
- is_harmonized?: boolean | undefined;
3052
- }>, "many">>;
3053
- is_deleted: z.ZodDefault<z.ZodBoolean>;
3054
- jurisdiction: z.ZodDefault<z.ZodEnum<["ip", "municipality", "other", "unknown"]>>;
3055
- legacy_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3056
- legacy_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
3057
- lifecycle_status: z.ZodDefault<z.ZodEnum<["draft", "active", "inactive", "provisional", "seasonal", "voided"]>>;
3058
- name: z.ZodString;
3059
- new_name: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3060
- previous_go_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3061
- short_name: z.ZodString;
3062
- tts_name: z.ZodString;
3063
- district_id: z.ZodString;
3064
- latitude: z.ZodNumber;
3065
- locality_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3066
- longitude: z.ZodNumber;
3067
- municipality_id: z.ZodString;
3068
- parish_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3069
- bench_status: z.ZodDefault<z.ZodEnum<["not_applicable", "unknown", "missing", "damaged", "ok"]>>;
3070
- electricity_status: z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>;
3071
- pole_status: z.ZodDefault<z.ZodEnum<["not_applicable", "unknown", "missing", "damaged", "ok"]>>;
3072
- road_type: z.ZodDefault<z.ZodEnum<["complementary_itinerary", "highway", "main_itinerary", "national_road", "regional_road", "secondary_road", "unknown"]>>;
3073
- shelter_code: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3074
- shelter_frame_size: z.ZodDefault<z.ZodNullable<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
3075
- shelter_installation_date: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>>>;
3076
- shelter_maintainer: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3077
- shelter_make: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3078
- shelter_model: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3079
- shelter_status: z.ZodDefault<z.ZodEnum<["not_applicable", "unknown", "missing", "damaged", "ok"]>>;
3080
- last_infrastructure_check: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>>>;
3081
- last_infrastructure_maintenance: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>>>;
3082
- last_schedules_check: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>>>;
3083
- last_schedules_maintenance: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>>>;
3084
- connections: z.ZodDefault<z.ZodArray<z.ZodEnum<["ferry", "light_rail", "subway", "train", "boat", "airport", "bike_sharing", "bike_parking", "car_parking"]>, "many">>;
3085
- facilities: z.ZodDefault<z.ZodArray<z.ZodEnum<["fire_station", "health_clinic", "historic_building", "hospital", "police_station", "school", "shopping", "transit_office", "university", "beach"]>, "many">>;
3086
- equipment: z.ZodDefault<z.ZodArray<z.ZodEnum<["pip", "mupi", "mini_pip"]>, "many">>;
3087
- has_bench: z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>;
3088
- has_mupi: z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>;
3089
- has_network_map: z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>;
3090
- has_schedules: z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>;
3091
- has_shelter: z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>;
3092
- has_stop_sign: z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>;
3093
- file_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
3094
- image_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
3095
- comments: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3096
- message: z.ZodString;
3097
- type: z.ZodLiteral<"note">;
3098
- _id: z.ZodOptional<z.ZodString>;
3099
- created_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
3100
- created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3101
- updated_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
3102
- updated_by: z.ZodOptional<z.ZodString>;
3103
- }, "strip", z.ZodTypeAny, {
3104
- message: string;
3105
- type: "note";
3106
- created_at: number & {
3107
- __brand: "UnixTimestamp";
3108
- };
3109
- created_by: string | null;
3110
- updated_at: number & {
3111
- __brand: "UnixTimestamp";
3112
- };
3113
- _id?: string | undefined;
3114
- updated_by?: string | undefined;
3115
- }, {
3116
- message: string;
3117
- type: "note";
3118
- created_at: number;
3119
- updated_at: number;
3120
- _id?: string | undefined;
3121
- created_by?: string | null | undefined;
3122
- updated_by?: string | undefined;
3123
- }>, z.ZodObject<{
3124
- type: z.ZodLiteral<"field_changed">;
3125
- _id: z.ZodOptional<z.ZodString>;
3126
- created_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
3127
- created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3128
- updated_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
3129
- updated_by: z.ZodOptional<z.ZodString>;
3130
- curr_value: z.ZodAny;
3131
- field: z.ZodString;
3132
- prev_value: z.ZodAny;
3133
- metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3134
- changes: z.ZodOptional<z.ZodArray<z.ZodObject<{
3135
- curr_value: z.ZodAny;
3136
- field: z.ZodString;
3137
- prev_value: z.ZodAny;
3138
- }, "strip", z.ZodTypeAny, {
3139
- field: string;
3140
- curr_value?: any;
3141
- prev_value?: any;
3142
- }, {
3143
- field: string;
3144
- curr_value?: any;
3145
- prev_value?: any;
3146
- }>, "many">>;
3147
- }, "strip", z.ZodTypeAny, {
3148
- changes?: {
3149
- field: string;
3150
- curr_value?: any;
3151
- prev_value?: any;
3152
- }[] | undefined;
3153
- }, {
3154
- changes?: {
3155
- field: string;
3156
- curr_value?: any;
3157
- prev_value?: any;
3158
- }[] | undefined;
3159
- }>>>;
3160
- }, "strip", z.ZodTypeAny, {
3161
- type: "field_changed";
3162
- created_at: number & {
3163
- __brand: "UnixTimestamp";
3164
- };
3165
- created_by: string | null;
3166
- updated_at: number & {
3167
- __brand: "UnixTimestamp";
3168
- };
3169
- field: string;
3170
- _id?: string | undefined;
3171
- updated_by?: string | undefined;
3172
- curr_value?: any;
3173
- prev_value?: any;
3174
- metadata?: {
3175
- changes?: {
3176
- field: string;
3177
- curr_value?: any;
3178
- prev_value?: any;
3179
- }[] | undefined;
3180
- } | null | undefined;
3181
- }, {
3182
- type: "field_changed";
3183
- created_at: number;
3184
- updated_at: number;
3185
- field: string;
3186
- _id?: string | undefined;
3187
- created_by?: string | null | undefined;
3188
- updated_by?: string | undefined;
3189
- curr_value?: any;
3190
- prev_value?: any;
3191
- metadata?: {
3192
- changes?: {
3193
- field: string;
3194
- curr_value?: any;
3195
- prev_value?: any;
3196
- }[] | undefined;
3197
- } | null | undefined;
3198
- }>, z.ZodObject<{
3199
- type: z.ZodLiteral<"crud">;
3200
- _id: z.ZodOptional<z.ZodString>;
3201
- created_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
3202
- created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3203
- updated_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
3204
- updated_by: z.ZodOptional<z.ZodString>;
3205
- action: z.ZodEnum<["create", "update", "delete", "archive", "restore"]>;
3206
- }, "strip", z.ZodTypeAny, {
3207
- type: "crud";
3208
- created_at: number & {
3209
- __brand: "UnixTimestamp";
3210
- };
3211
- created_by: string | null;
3212
- updated_at: number & {
3213
- __brand: "UnixTimestamp";
3214
- };
3215
- action: "create" | "update" | "delete" | "archive" | "restore";
3216
- _id?: string | undefined;
3217
- updated_by?: string | undefined;
3218
- }, {
3219
- type: "crud";
3220
- created_at: number;
3221
- updated_at: number;
3222
- action: "create" | "update" | "delete" | "archive" | "restore";
3223
- _id?: string | undefined;
3224
- created_by?: string | null | undefined;
3225
- updated_by?: string | undefined;
3226
- }>]>, {
3227
- message: string;
3228
- type: "note";
3229
- created_at: number & {
3230
- __brand: "UnixTimestamp";
3231
- };
3232
- created_by: string | null;
3233
- updated_at: number & {
3234
- __brand: "UnixTimestamp";
3235
- };
3236
- _id?: string | undefined;
3237
- updated_by?: string | undefined;
3238
- } | {
3239
- type: "field_changed";
3240
- created_at: number & {
3241
- __brand: "UnixTimestamp";
3242
- };
3243
- created_by: string | null;
3244
- updated_at: number & {
3245
- __brand: "UnixTimestamp";
3246
- };
3247
- field: string;
3248
- _id?: string | undefined;
3249
- updated_by?: string | undefined;
3250
- curr_value?: any;
3251
- prev_value?: any;
3252
- metadata?: {
3253
- changes?: {
3254
- field: string;
3255
- curr_value?: any;
3256
- prev_value?: any;
3257
- }[] | undefined;
3258
- } | null | undefined;
3259
- } | {
3260
- type: "crud";
3261
- created_at: number & {
3262
- __brand: "UnixTimestamp";
3263
- };
3264
- created_by: string | null;
3265
- updated_at: number & {
3266
- __brand: "UnixTimestamp";
3267
- };
3268
- action: "create" | "update" | "delete" | "archive" | "restore";
3269
- _id?: string | undefined;
3270
- updated_by?: string | undefined;
3271
- }, {
3272
- message: string;
3273
- type: "note";
3274
- created_at: number;
3275
- updated_at: number;
3276
- _id?: string | undefined;
3277
- created_by?: string | null | undefined;
3278
- updated_by?: string | undefined;
3279
- } | {
3280
- type: "field_changed";
3281
- created_at: number;
3282
- updated_at: number;
3283
- field: string;
3284
- _id?: string | undefined;
3285
- created_by?: string | null | undefined;
3286
- updated_by?: string | undefined;
3287
- curr_value?: any;
3288
- prev_value?: any;
3289
- metadata?: {
3290
- changes?: {
3291
- field: string;
3292
- curr_value?: any;
3293
- prev_value?: any;
3294
- }[] | undefined;
3295
- } | null | undefined;
3296
- } | {
3297
- type: "crud";
3298
- created_at: number;
3299
- updated_at: number;
3300
- action: "create" | "update" | "delete" | "archive" | "restore";
3301
- _id?: string | undefined;
3302
- created_by?: string | null | undefined;
3303
- updated_by?: string | undefined;
3304
- }>, "many">>;
3305
- observations: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3306
- associated_patterns: z.ZodDefault<z.ZodArray<z.ZodObject<{
3307
- _id: z.ZodString;
3308
- code: z.ZodString;
3309
- headsign: z.ZodString;
3310
- line_id: z.ZodString;
3311
- route_id: z.ZodString;
3312
- }, "strip", z.ZodTypeAny, {
3313
- _id: string;
3314
- code: string;
3315
- headsign: string;
3316
- line_id: string;
3317
- route_id: string;
3318
- }, {
3319
- _id: string;
3320
- code: string;
3321
- headsign: string;
3322
- line_id: string;
3323
- route_id: string;
3324
- }>, "many">>;
3325
- }, "strip", z.ZodTypeAny, {
3326
- _id: number;
3327
- created_at: number & {
3328
- __brand: "UnixTimestamp";
3329
- };
3330
- created_by: string | null;
3331
- is_locked: boolean;
3332
- updated_at: number & {
3333
- __brand: "UnixTimestamp";
3334
- };
3335
- name: string;
3336
- short_name: string;
3337
- associated_patterns: {
3338
- _id: string;
3339
- code: string;
3340
- headsign: string;
3341
- line_id: string;
3342
- route_id: string;
3343
- }[];
3344
- comments: ({
3345
- message: string;
3346
- type: "note";
3347
- created_at: number & {
3348
- __brand: "UnixTimestamp";
3349
- };
3350
- created_by: string | null;
3351
- updated_at: number & {
3352
- __brand: "UnixTimestamp";
3353
- };
3354
- _id?: string | undefined;
3355
- updated_by?: string | undefined;
3356
- } | {
3357
- type: "field_changed";
3358
- created_at: number & {
3359
- __brand: "UnixTimestamp";
3360
- };
3361
- created_by: string | null;
3362
- updated_at: number & {
3363
- __brand: "UnixTimestamp";
3364
- };
3365
- field: string;
3366
- _id?: string | undefined;
3367
- updated_by?: string | undefined;
3368
- curr_value?: any;
3369
- prev_value?: any;
3370
- metadata?: {
3371
- changes?: {
3372
- field: string;
3373
- curr_value?: any;
3374
- prev_value?: any;
3375
- }[] | undefined;
3376
- } | null | undefined;
3377
- } | {
3378
- type: "crud";
3379
- created_at: number & {
3380
- __brand: "UnixTimestamp";
3381
- };
3382
- created_by: string | null;
3383
- updated_at: number & {
3384
- __brand: "UnixTimestamp";
3385
- };
3386
- action: "create" | "update" | "delete" | "archive" | "restore";
3387
- _id?: string | undefined;
3388
- updated_by?: string | undefined;
3389
- })[];
3390
- flags: {
3391
- short_name: string;
3392
- agency_ids: string[];
3393
- is_harmonized: boolean;
3394
- stop_id: string;
3395
- }[];
3396
- jurisdiction: "unknown" | "ip" | "municipality" | "other";
3397
- legacy_id: string | null;
3398
- legacy_ids: string[];
3399
- lifecycle_status: "draft" | "active" | "inactive" | "provisional" | "seasonal" | "voided";
3400
- new_name: string | null;
3401
- previous_go_id: string | null;
3402
- tts_name: string;
3403
- district_id: string;
3404
- latitude: number;
3405
- locality_id: string | null;
3406
- longitude: number;
3407
- municipality_id: string;
3408
- parish_id: string | null;
3409
- bench_status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok";
3410
- electricity_status: "unknown" | "available" | "unavailable";
3411
- pole_status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok";
3412
- road_type: "unknown" | "complementary_itinerary" | "highway" | "main_itinerary" | "national_road" | "regional_road" | "secondary_road";
3413
- shelter_code: string | null;
3414
- shelter_frame_size: [number, number] | null;
3415
- shelter_installation_date: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null;
3416
- shelter_maintainer: string | null;
3417
- shelter_make: string | null;
3418
- shelter_model: string | null;
3419
- shelter_status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok";
3420
- last_infrastructure_check: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null;
3421
- last_infrastructure_maintenance: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null;
3422
- last_schedules_check: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null;
3423
- last_schedules_maintenance: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null;
3424
- connections: ("ferry" | "light_rail" | "subway" | "train" | "boat" | "airport" | "bike_sharing" | "bike_parking" | "car_parking")[];
3425
- facilities: ("fire_station" | "health_clinic" | "historic_building" | "hospital" | "police_station" | "school" | "shopping" | "transit_office" | "university" | "beach")[];
3426
- equipment: ("pip" | "mupi" | "mini_pip")[];
3427
- has_bench: "unknown" | "available" | "unavailable";
3428
- has_mupi: "unknown" | "available" | "unavailable";
3429
- has_network_map: "unknown" | "available" | "unavailable";
3430
- has_schedules: "unknown" | "available" | "unavailable";
3431
- has_shelter: "unknown" | "available" | "unavailable";
3432
- has_stop_sign: "unknown" | "available" | "unavailable";
3433
- observations: string | null;
3434
- is_deleted: boolean;
3435
- file_ids: string[];
3436
- image_ids: string[];
3437
- updated_by?: string | undefined;
3438
- }, {
3439
- _id: number;
3440
- created_at: number;
3441
- updated_at: number;
3442
- name: string;
3443
- short_name: string;
3444
- tts_name: string;
3445
- district_id: string;
3446
- latitude: number;
3447
- longitude: number;
3448
- municipality_id: string;
3449
- created_by?: string | null | undefined;
3450
- is_locked?: boolean | undefined;
3451
- updated_by?: string | undefined;
3452
- associated_patterns?: {
3453
- _id: string;
3454
- code: string;
3455
- headsign: string;
3456
- line_id: string;
3457
- route_id: string;
3458
- }[] | undefined;
3459
- comments?: ({
3460
- message: string;
3461
- type: "note";
3462
- created_at: number;
3463
- updated_at: number;
3464
- _id?: string | undefined;
3465
- created_by?: string | null | undefined;
3466
- updated_by?: string | undefined;
3467
- } | {
3468
- type: "field_changed";
3469
- created_at: number;
3470
- updated_at: number;
3471
- field: string;
3472
- _id?: string | undefined;
3473
- created_by?: string | null | undefined;
3474
- updated_by?: string | undefined;
3475
- curr_value?: any;
3476
- prev_value?: any;
3477
- metadata?: {
3478
- changes?: {
3479
- field: string;
3480
- curr_value?: any;
3481
- prev_value?: any;
3482
- }[] | undefined;
3483
- } | null | undefined;
3484
- } | {
3485
- type: "crud";
3486
- created_at: number;
3487
- updated_at: number;
3488
- action: "create" | "update" | "delete" | "archive" | "restore";
3489
- _id?: string | undefined;
3490
- created_by?: string | null | undefined;
3491
- updated_by?: string | undefined;
3492
- })[] | undefined;
3493
- flags?: {
3494
- short_name: string;
3495
- stop_id: string;
3496
- agency_ids?: string[] | undefined;
3497
- is_harmonized?: boolean | undefined;
3498
- }[] | undefined;
3499
- jurisdiction?: "unknown" | "ip" | "municipality" | "other" | undefined;
3500
- legacy_id?: string | null | undefined;
3501
- legacy_ids?: string[] | undefined;
3502
- lifecycle_status?: "draft" | "active" | "inactive" | "provisional" | "seasonal" | "voided" | undefined;
3503
- new_name?: string | null | undefined;
3504
- previous_go_id?: string | null | undefined;
3505
- locality_id?: string | null | undefined;
3506
- parish_id?: string | null | undefined;
3507
- bench_status?: "unknown" | "not_applicable" | "missing" | "damaged" | "ok" | undefined;
3508
- electricity_status?: "unknown" | "available" | "unavailable" | undefined;
3509
- pole_status?: "unknown" | "not_applicable" | "missing" | "damaged" | "ok" | undefined;
3510
- road_type?: "unknown" | "complementary_itinerary" | "highway" | "main_itinerary" | "national_road" | "regional_road" | "secondary_road" | undefined;
3511
- shelter_code?: string | null | undefined;
3512
- shelter_frame_size?: [number, number] | null | undefined;
3513
- shelter_installation_date?: number | null | undefined;
3514
- shelter_maintainer?: string | null | undefined;
3515
- shelter_make?: string | null | undefined;
3516
- shelter_model?: string | null | undefined;
3517
- shelter_status?: "unknown" | "not_applicable" | "missing" | "damaged" | "ok" | undefined;
3518
- last_infrastructure_check?: number | null | undefined;
3519
- last_infrastructure_maintenance?: number | null | undefined;
3520
- last_schedules_check?: number | null | undefined;
3521
- last_schedules_maintenance?: number | null | undefined;
3522
- connections?: ("ferry" | "light_rail" | "subway" | "train" | "boat" | "airport" | "bike_sharing" | "bike_parking" | "car_parking")[] | undefined;
3523
- facilities?: ("fire_station" | "health_clinic" | "historic_building" | "hospital" | "police_station" | "school" | "shopping" | "transit_office" | "university" | "beach")[] | undefined;
3524
- equipment?: ("pip" | "mupi" | "mini_pip")[] | undefined;
3525
- has_bench?: "unknown" | "available" | "unavailable" | undefined;
3526
- has_mupi?: "unknown" | "available" | "unavailable" | undefined;
3527
- has_network_map?: "unknown" | "available" | "unavailable" | undefined;
3528
- has_schedules?: "unknown" | "available" | "unavailable" | undefined;
3529
- has_shelter?: "unknown" | "available" | "unavailable" | undefined;
3530
- has_stop_sign?: "unknown" | "available" | "unavailable" | undefined;
3531
- observations?: string | null | undefined;
3532
- is_deleted?: boolean | undefined;
3533
- file_ids?: string[] | undefined;
3534
- image_ids?: string[] | undefined;
3535
- }>>>;
1792
+ vehicle_type?: string | undefined;
1793
+ day_periods?: ("PPM" | "CD" | "PPT" | "N" | "M")[] | undefined;
1794
+ })[]>>;
1795
+ path: z.ZodOptional<z.ZodArray<z.ZodObject<{
1796
+ _id: z.ZodString;
1797
+ allow_drop_off: z.ZodDefault<z.ZodBoolean>;
1798
+ allow_pickup: z.ZodDefault<z.ZodBoolean>;
1799
+ distance_delta: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
3536
1800
  stop_id: z.ZodNumber;
3537
1801
  timepoint: z.ZodDefault<z.ZodBoolean>;
3538
1802
  zones: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -3544,222 +1808,10 @@ export declare const CreatePatternSchema: z.ZodObject<Omit<{
3544
1808
  allow_pickup: boolean;
3545
1809
  distance_delta: number | null;
3546
1810
  zones?: string[] | undefined;
3547
- stop?: {
3548
- _id: number;
3549
- created_at: number & {
3550
- __brand: "UnixTimestamp";
3551
- };
3552
- created_by: string | null;
3553
- is_locked: boolean;
3554
- updated_at: number & {
3555
- __brand: "UnixTimestamp";
3556
- };
3557
- name: string;
3558
- short_name: string;
3559
- associated_patterns: {
3560
- _id: string;
3561
- code: string;
3562
- headsign: string;
3563
- line_id: string;
3564
- route_id: string;
3565
- }[];
3566
- comments: ({
3567
- message: string;
3568
- type: "note";
3569
- created_at: number & {
3570
- __brand: "UnixTimestamp";
3571
- };
3572
- created_by: string | null;
3573
- updated_at: number & {
3574
- __brand: "UnixTimestamp";
3575
- };
3576
- _id?: string | undefined;
3577
- updated_by?: string | undefined;
3578
- } | {
3579
- type: "field_changed";
3580
- created_at: number & {
3581
- __brand: "UnixTimestamp";
3582
- };
3583
- created_by: string | null;
3584
- updated_at: number & {
3585
- __brand: "UnixTimestamp";
3586
- };
3587
- field: string;
3588
- _id?: string | undefined;
3589
- updated_by?: string | undefined;
3590
- curr_value?: any;
3591
- prev_value?: any;
3592
- metadata?: {
3593
- changes?: {
3594
- field: string;
3595
- curr_value?: any;
3596
- prev_value?: any;
3597
- }[] | undefined;
3598
- } | null | undefined;
3599
- } | {
3600
- type: "crud";
3601
- created_at: number & {
3602
- __brand: "UnixTimestamp";
3603
- };
3604
- created_by: string | null;
3605
- updated_at: number & {
3606
- __brand: "UnixTimestamp";
3607
- };
3608
- action: "create" | "update" | "delete" | "archive" | "restore";
3609
- _id?: string | undefined;
3610
- updated_by?: string | undefined;
3611
- })[];
3612
- flags: {
3613
- short_name: string;
3614
- agency_ids: string[];
3615
- is_harmonized: boolean;
3616
- stop_id: string;
3617
- }[];
3618
- jurisdiction: "unknown" | "ip" | "municipality" | "other";
3619
- legacy_id: string | null;
3620
- legacy_ids: string[];
3621
- lifecycle_status: "draft" | "active" | "inactive" | "provisional" | "seasonal" | "voided";
3622
- new_name: string | null;
3623
- previous_go_id: string | null;
3624
- tts_name: string;
3625
- district_id: string;
3626
- latitude: number;
3627
- locality_id: string | null;
3628
- longitude: number;
3629
- municipality_id: string;
3630
- parish_id: string | null;
3631
- bench_status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok";
3632
- electricity_status: "unknown" | "available" | "unavailable";
3633
- pole_status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok";
3634
- road_type: "unknown" | "complementary_itinerary" | "highway" | "main_itinerary" | "national_road" | "regional_road" | "secondary_road";
3635
- shelter_code: string | null;
3636
- shelter_frame_size: [number, number] | null;
3637
- shelter_installation_date: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null;
3638
- shelter_maintainer: string | null;
3639
- shelter_make: string | null;
3640
- shelter_model: string | null;
3641
- shelter_status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok";
3642
- last_infrastructure_check: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null;
3643
- last_infrastructure_maintenance: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null;
3644
- last_schedules_check: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null;
3645
- last_schedules_maintenance: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null;
3646
- connections: ("ferry" | "light_rail" | "subway" | "train" | "boat" | "airport" | "bike_sharing" | "bike_parking" | "car_parking")[];
3647
- facilities: ("fire_station" | "health_clinic" | "historic_building" | "hospital" | "police_station" | "school" | "shopping" | "transit_office" | "university" | "beach")[];
3648
- equipment: ("pip" | "mupi" | "mini_pip")[];
3649
- has_bench: "unknown" | "available" | "unavailable";
3650
- has_mupi: "unknown" | "available" | "unavailable";
3651
- has_network_map: "unknown" | "available" | "unavailable";
3652
- has_schedules: "unknown" | "available" | "unavailable";
3653
- has_shelter: "unknown" | "available" | "unavailable";
3654
- has_stop_sign: "unknown" | "available" | "unavailable";
3655
- observations: string | null;
3656
- is_deleted: boolean;
3657
- file_ids: string[];
3658
- image_ids: string[];
3659
- updated_by?: string | undefined;
3660
- } | null | undefined;
3661
1811
  }, {
3662
1812
  _id: string;
3663
1813
  stop_id: number;
3664
1814
  zones?: string[] | undefined;
3665
- stop?: {
3666
- _id: number;
3667
- created_at: number;
3668
- updated_at: number;
3669
- name: string;
3670
- short_name: string;
3671
- tts_name: string;
3672
- district_id: string;
3673
- latitude: number;
3674
- longitude: number;
3675
- municipality_id: string;
3676
- created_by?: string | null | undefined;
3677
- is_locked?: boolean | undefined;
3678
- updated_by?: string | undefined;
3679
- associated_patterns?: {
3680
- _id: string;
3681
- code: string;
3682
- headsign: string;
3683
- line_id: string;
3684
- route_id: string;
3685
- }[] | undefined;
3686
- comments?: ({
3687
- message: string;
3688
- type: "note";
3689
- created_at: number;
3690
- updated_at: number;
3691
- _id?: string | undefined;
3692
- created_by?: string | null | undefined;
3693
- updated_by?: string | undefined;
3694
- } | {
3695
- type: "field_changed";
3696
- created_at: number;
3697
- updated_at: number;
3698
- field: string;
3699
- _id?: string | undefined;
3700
- created_by?: string | null | undefined;
3701
- updated_by?: string | undefined;
3702
- curr_value?: any;
3703
- prev_value?: any;
3704
- metadata?: {
3705
- changes?: {
3706
- field: string;
3707
- curr_value?: any;
3708
- prev_value?: any;
3709
- }[] | undefined;
3710
- } | null | undefined;
3711
- } | {
3712
- type: "crud";
3713
- created_at: number;
3714
- updated_at: number;
3715
- action: "create" | "update" | "delete" | "archive" | "restore";
3716
- _id?: string | undefined;
3717
- created_by?: string | null | undefined;
3718
- updated_by?: string | undefined;
3719
- })[] | undefined;
3720
- flags?: {
3721
- short_name: string;
3722
- stop_id: string;
3723
- agency_ids?: string[] | undefined;
3724
- is_harmonized?: boolean | undefined;
3725
- }[] | undefined;
3726
- jurisdiction?: "unknown" | "ip" | "municipality" | "other" | undefined;
3727
- legacy_id?: string | null | undefined;
3728
- legacy_ids?: string[] | undefined;
3729
- lifecycle_status?: "draft" | "active" | "inactive" | "provisional" | "seasonal" | "voided" | undefined;
3730
- new_name?: string | null | undefined;
3731
- previous_go_id?: string | null | undefined;
3732
- locality_id?: string | null | undefined;
3733
- parish_id?: string | null | undefined;
3734
- bench_status?: "unknown" | "not_applicable" | "missing" | "damaged" | "ok" | undefined;
3735
- electricity_status?: "unknown" | "available" | "unavailable" | undefined;
3736
- pole_status?: "unknown" | "not_applicable" | "missing" | "damaged" | "ok" | undefined;
3737
- road_type?: "unknown" | "complementary_itinerary" | "highway" | "main_itinerary" | "national_road" | "regional_road" | "secondary_road" | undefined;
3738
- shelter_code?: string | null | undefined;
3739
- shelter_frame_size?: [number, number] | null | undefined;
3740
- shelter_installation_date?: number | null | undefined;
3741
- shelter_maintainer?: string | null | undefined;
3742
- shelter_make?: string | null | undefined;
3743
- shelter_model?: string | null | undefined;
3744
- shelter_status?: "unknown" | "not_applicable" | "missing" | "damaged" | "ok" | undefined;
3745
- last_infrastructure_check?: number | null | undefined;
3746
- last_infrastructure_maintenance?: number | null | undefined;
3747
- last_schedules_check?: number | null | undefined;
3748
- last_schedules_maintenance?: number | null | undefined;
3749
- connections?: ("ferry" | "light_rail" | "subway" | "train" | "boat" | "airport" | "bike_sharing" | "bike_parking" | "car_parking")[] | undefined;
3750
- facilities?: ("fire_station" | "health_clinic" | "historic_building" | "hospital" | "police_station" | "school" | "shopping" | "transit_office" | "university" | "beach")[] | undefined;
3751
- equipment?: ("pip" | "mupi" | "mini_pip")[] | undefined;
3752
- has_bench?: "unknown" | "available" | "unavailable" | undefined;
3753
- has_mupi?: "unknown" | "available" | "unavailable" | undefined;
3754
- has_network_map?: "unknown" | "available" | "unavailable" | undefined;
3755
- has_schedules?: "unknown" | "available" | "unavailable" | undefined;
3756
- has_shelter?: "unknown" | "available" | "unavailable" | undefined;
3757
- has_stop_sign?: "unknown" | "available" | "unavailable" | undefined;
3758
- observations?: string | null | undefined;
3759
- is_deleted?: boolean | undefined;
3760
- file_ids?: string[] | undefined;
3761
- image_ids?: string[] | undefined;
3762
- } | null | undefined;
3763
1815
  timepoint?: boolean | undefined;
3764
1816
  allow_drop_off?: boolean | undefined;
3765
1817
  allow_pickup?: boolean | undefined;
@@ -3937,6 +1989,31 @@ export declare const CreatePatternSchema: z.ZodObject<Omit<{
3937
1989
  same_weekday?: boolean | undefined;
3938
1990
  }>]>, "many">>>;
3939
1991
  shape: z.ZodOptional<z.ZodObject<{
1992
+ anchors: z.ZodOptional<z.ZodArray<z.ZodObject<{
1993
+ _id: z.ZodString;
1994
+ after_stop_id: z.ZodNumber;
1995
+ before_stop_id: z.ZodNumber;
1996
+ lat: z.ZodNumber;
1997
+ lon: z.ZodNumber;
1998
+ sequence: z.ZodDefault<z.ZodNumber>;
1999
+ type: z.ZodDefault<z.ZodEnum<["via", "through"]>>;
2000
+ }, "strip", z.ZodTypeAny, {
2001
+ _id: string;
2002
+ type: "via" | "through";
2003
+ after_stop_id: number;
2004
+ before_stop_id: number;
2005
+ lat: number;
2006
+ lon: number;
2007
+ sequence: number;
2008
+ }, {
2009
+ _id: string;
2010
+ after_stop_id: number;
2011
+ before_stop_id: number;
2012
+ lat: number;
2013
+ lon: number;
2014
+ type?: "via" | "through" | undefined;
2015
+ sequence?: number | undefined;
2016
+ }>, "many">>;
3940
2017
  extension: z.ZodNumber;
3941
2018
  geojson: z.ZodObject<{
3942
2019
  geometry: z.ZodObject<{
@@ -3966,6 +2043,104 @@ export declare const CreatePatternSchema: z.ZodObject<Omit<{
3966
2043
  type?: string | undefined;
3967
2044
  properties?: {} | undefined;
3968
2045
  }>;
2046
+ legs: z.ZodOptional<z.ZodArray<z.ZodObject<{
2047
+ distance: z.ZodNumber;
2048
+ duration: z.ZodNumber;
2049
+ from_index: z.ZodNumber;
2050
+ geojson: z.ZodObject<{
2051
+ geometry: z.ZodObject<{
2052
+ coordinates: z.ZodArray<z.ZodArray<z.ZodNumber, "many">, "many">;
2053
+ type: z.ZodDefault<z.ZodString>;
2054
+ }, "strip", z.ZodTypeAny, {
2055
+ type: string;
2056
+ coordinates: number[][];
2057
+ }, {
2058
+ coordinates: number[][];
2059
+ type?: string | undefined;
2060
+ }>;
2061
+ properties: z.ZodObject<{
2062
+ distance: z.ZodNumber;
2063
+ duration: z.ZodNumber;
2064
+ from_index: z.ZodNumber;
2065
+ to_index: z.ZodNumber;
2066
+ }, "strip", z.ZodTypeAny, {
2067
+ distance: number;
2068
+ duration: number;
2069
+ from_index: number;
2070
+ to_index: number;
2071
+ }, {
2072
+ distance: number;
2073
+ duration: number;
2074
+ from_index: number;
2075
+ to_index: number;
2076
+ }>;
2077
+ type: z.ZodDefault<z.ZodString>;
2078
+ }, "strip", z.ZodTypeAny, {
2079
+ type: string;
2080
+ properties: {
2081
+ distance: number;
2082
+ duration: number;
2083
+ from_index: number;
2084
+ to_index: number;
2085
+ };
2086
+ geometry: {
2087
+ type: string;
2088
+ coordinates: number[][];
2089
+ };
2090
+ }, {
2091
+ properties: {
2092
+ distance: number;
2093
+ duration: number;
2094
+ from_index: number;
2095
+ to_index: number;
2096
+ };
2097
+ geometry: {
2098
+ coordinates: number[][];
2099
+ type?: string | undefined;
2100
+ };
2101
+ type?: string | undefined;
2102
+ }>;
2103
+ geometry: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">;
2104
+ to_index: z.ZodNumber;
2105
+ }, "strip", z.ZodTypeAny, {
2106
+ distance: number;
2107
+ geometry: [number, number][];
2108
+ geojson: {
2109
+ type: string;
2110
+ properties: {
2111
+ distance: number;
2112
+ duration: number;
2113
+ from_index: number;
2114
+ to_index: number;
2115
+ };
2116
+ geometry: {
2117
+ type: string;
2118
+ coordinates: number[][];
2119
+ };
2120
+ };
2121
+ duration: number;
2122
+ from_index: number;
2123
+ to_index: number;
2124
+ }, {
2125
+ distance: number;
2126
+ geometry: [number, number][];
2127
+ geojson: {
2128
+ properties: {
2129
+ distance: number;
2130
+ duration: number;
2131
+ from_index: number;
2132
+ to_index: number;
2133
+ };
2134
+ geometry: {
2135
+ coordinates: number[][];
2136
+ type?: string | undefined;
2137
+ };
2138
+ type?: string | undefined;
2139
+ };
2140
+ duration: number;
2141
+ from_index: number;
2142
+ to_index: number;
2143
+ }>, "many">>;
3969
2144
  }, "strip", z.ZodTypeAny, {
3970
2145
  extension: number;
3971
2146
  geojson: {
@@ -3976,6 +2151,35 @@ export declare const CreatePatternSchema: z.ZodObject<Omit<{
3976
2151
  };
3977
2152
  properties?: {} | undefined;
3978
2153
  };
2154
+ anchors?: {
2155
+ _id: string;
2156
+ type: "via" | "through";
2157
+ after_stop_id: number;
2158
+ before_stop_id: number;
2159
+ lat: number;
2160
+ lon: number;
2161
+ sequence: number;
2162
+ }[] | undefined;
2163
+ legs?: {
2164
+ distance: number;
2165
+ geometry: [number, number][];
2166
+ geojson: {
2167
+ type: string;
2168
+ properties: {
2169
+ distance: number;
2170
+ duration: number;
2171
+ from_index: number;
2172
+ to_index: number;
2173
+ };
2174
+ geometry: {
2175
+ type: string;
2176
+ coordinates: number[][];
2177
+ };
2178
+ };
2179
+ duration: number;
2180
+ from_index: number;
2181
+ to_index: number;
2182
+ }[] | undefined;
3979
2183
  }, {
3980
2184
  extension: number;
3981
2185
  geojson: {
@@ -3986,6 +2190,35 @@ export declare const CreatePatternSchema: z.ZodObject<Omit<{
3986
2190
  type?: string | undefined;
3987
2191
  properties?: {} | undefined;
3988
2192
  };
2193
+ anchors?: {
2194
+ _id: string;
2195
+ after_stop_id: number;
2196
+ before_stop_id: number;
2197
+ lat: number;
2198
+ lon: number;
2199
+ type?: "via" | "through" | undefined;
2200
+ sequence?: number | undefined;
2201
+ }[] | undefined;
2202
+ legs?: {
2203
+ distance: number;
2204
+ geometry: [number, number][];
2205
+ geojson: {
2206
+ properties: {
2207
+ distance: number;
2208
+ duration: number;
2209
+ from_index: number;
2210
+ to_index: number;
2211
+ };
2212
+ geometry: {
2213
+ coordinates: number[][];
2214
+ type?: string | undefined;
2215
+ };
2216
+ type?: string | undefined;
2217
+ };
2218
+ duration: number;
2219
+ from_index: number;
2220
+ to_index: number;
2221
+ }[] | undefined;
3989
2222
  }>>;
3990
2223
  }, "_id" | "created_at" | "updated_at">, "strip", z.ZodTypeAny, {
3991
2224
  created_by: string | null;
@@ -4095,120 +2328,6 @@ export declare const CreatePatternSchema: z.ZodObject<Omit<{
4095
2328
  allow_pickup: boolean;
4096
2329
  distance_delta: number | null;
4097
2330
  zones?: string[] | undefined;
4098
- stop?: {
4099
- _id: number;
4100
- created_at: number & {
4101
- __brand: "UnixTimestamp";
4102
- };
4103
- created_by: string | null;
4104
- is_locked: boolean;
4105
- updated_at: number & {
4106
- __brand: "UnixTimestamp";
4107
- };
4108
- name: string;
4109
- short_name: string;
4110
- associated_patterns: {
4111
- _id: string;
4112
- code: string;
4113
- headsign: string;
4114
- line_id: string;
4115
- route_id: string;
4116
- }[];
4117
- comments: ({
4118
- message: string;
4119
- type: "note";
4120
- created_at: number & {
4121
- __brand: "UnixTimestamp";
4122
- };
4123
- created_by: string | null;
4124
- updated_at: number & {
4125
- __brand: "UnixTimestamp";
4126
- };
4127
- _id?: string | undefined;
4128
- updated_by?: string | undefined;
4129
- } | {
4130
- type: "field_changed";
4131
- created_at: number & {
4132
- __brand: "UnixTimestamp";
4133
- };
4134
- created_by: string | null;
4135
- updated_at: number & {
4136
- __brand: "UnixTimestamp";
4137
- };
4138
- field: string;
4139
- _id?: string | undefined;
4140
- updated_by?: string | undefined;
4141
- curr_value?: any;
4142
- prev_value?: any;
4143
- metadata?: {
4144
- changes?: {
4145
- field: string;
4146
- curr_value?: any;
4147
- prev_value?: any;
4148
- }[] | undefined;
4149
- } | null | undefined;
4150
- } | {
4151
- type: "crud";
4152
- created_at: number & {
4153
- __brand: "UnixTimestamp";
4154
- };
4155
- created_by: string | null;
4156
- updated_at: number & {
4157
- __brand: "UnixTimestamp";
4158
- };
4159
- action: "create" | "update" | "delete" | "archive" | "restore";
4160
- _id?: string | undefined;
4161
- updated_by?: string | undefined;
4162
- })[];
4163
- flags: {
4164
- short_name: string;
4165
- agency_ids: string[];
4166
- is_harmonized: boolean;
4167
- stop_id: string;
4168
- }[];
4169
- jurisdiction: "unknown" | "ip" | "municipality" | "other";
4170
- legacy_id: string | null;
4171
- legacy_ids: string[];
4172
- lifecycle_status: "draft" | "active" | "inactive" | "provisional" | "seasonal" | "voided";
4173
- new_name: string | null;
4174
- previous_go_id: string | null;
4175
- tts_name: string;
4176
- district_id: string;
4177
- latitude: number;
4178
- locality_id: string | null;
4179
- longitude: number;
4180
- municipality_id: string;
4181
- parish_id: string | null;
4182
- bench_status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok";
4183
- electricity_status: "unknown" | "available" | "unavailable";
4184
- pole_status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok";
4185
- road_type: "unknown" | "complementary_itinerary" | "highway" | "main_itinerary" | "national_road" | "regional_road" | "secondary_road";
4186
- shelter_code: string | null;
4187
- shelter_frame_size: [number, number] | null;
4188
- shelter_installation_date: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null;
4189
- shelter_maintainer: string | null;
4190
- shelter_make: string | null;
4191
- shelter_model: string | null;
4192
- shelter_status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok";
4193
- last_infrastructure_check: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null;
4194
- last_infrastructure_maintenance: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null;
4195
- last_schedules_check: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null;
4196
- last_schedules_maintenance: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null;
4197
- connections: ("ferry" | "light_rail" | "subway" | "train" | "boat" | "airport" | "bike_sharing" | "bike_parking" | "car_parking")[];
4198
- facilities: ("fire_station" | "health_clinic" | "historic_building" | "hospital" | "police_station" | "school" | "shopping" | "transit_office" | "university" | "beach")[];
4199
- equipment: ("pip" | "mupi" | "mini_pip")[];
4200
- has_bench: "unknown" | "available" | "unavailable";
4201
- has_mupi: "unknown" | "available" | "unavailable";
4202
- has_network_map: "unknown" | "available" | "unavailable";
4203
- has_schedules: "unknown" | "available" | "unavailable";
4204
- has_shelter: "unknown" | "available" | "unavailable";
4205
- has_stop_sign: "unknown" | "available" | "unavailable";
4206
- observations: string | null;
4207
- is_deleted: boolean;
4208
- file_ids: string[];
4209
- image_ids: string[];
4210
- updated_by?: string | undefined;
4211
- } | null | undefined;
4212
2331
  }[] | undefined;
4213
2332
  shape?: {
4214
2333
  extension: number;
@@ -4220,6 +2339,35 @@ export declare const CreatePatternSchema: z.ZodObject<Omit<{
4220
2339
  };
4221
2340
  properties?: {} | undefined;
4222
2341
  };
2342
+ anchors?: {
2343
+ _id: string;
2344
+ type: "via" | "through";
2345
+ after_stop_id: number;
2346
+ before_stop_id: number;
2347
+ lat: number;
2348
+ lon: number;
2349
+ sequence: number;
2350
+ }[] | undefined;
2351
+ legs?: {
2352
+ distance: number;
2353
+ geometry: [number, number][];
2354
+ geojson: {
2355
+ type: string;
2356
+ properties: {
2357
+ distance: number;
2358
+ duration: number;
2359
+ from_index: number;
2360
+ to_index: number;
2361
+ };
2362
+ geometry: {
2363
+ type: string;
2364
+ coordinates: number[][];
2365
+ };
2366
+ };
2367
+ duration: number;
2368
+ from_index: number;
2369
+ to_index: number;
2370
+ }[] | undefined;
4223
2371
  } | undefined;
4224
2372
  parameters?: ({
4225
2373
  path: {
@@ -4259,104 +2407,6 @@ export declare const CreatePatternSchema: z.ZodObject<Omit<{
4259
2407
  _id: string;
4260
2408
  stop_id: number;
4261
2409
  zones?: string[] | undefined;
4262
- stop?: {
4263
- _id: number;
4264
- created_at: number;
4265
- updated_at: number;
4266
- name: string;
4267
- short_name: string;
4268
- tts_name: string;
4269
- district_id: string;
4270
- latitude: number;
4271
- longitude: number;
4272
- municipality_id: string;
4273
- created_by?: string | null | undefined;
4274
- is_locked?: boolean | undefined;
4275
- updated_by?: string | undefined;
4276
- associated_patterns?: {
4277
- _id: string;
4278
- code: string;
4279
- headsign: string;
4280
- line_id: string;
4281
- route_id: string;
4282
- }[] | undefined;
4283
- comments?: ({
4284
- message: string;
4285
- type: "note";
4286
- created_at: number;
4287
- updated_at: number;
4288
- _id?: string | undefined;
4289
- created_by?: string | null | undefined;
4290
- updated_by?: string | undefined;
4291
- } | {
4292
- type: "field_changed";
4293
- created_at: number;
4294
- updated_at: number;
4295
- field: string;
4296
- _id?: string | undefined;
4297
- created_by?: string | null | undefined;
4298
- updated_by?: string | undefined;
4299
- curr_value?: any;
4300
- prev_value?: any;
4301
- metadata?: {
4302
- changes?: {
4303
- field: string;
4304
- curr_value?: any;
4305
- prev_value?: any;
4306
- }[] | undefined;
4307
- } | null | undefined;
4308
- } | {
4309
- type: "crud";
4310
- created_at: number;
4311
- updated_at: number;
4312
- action: "create" | "update" | "delete" | "archive" | "restore";
4313
- _id?: string | undefined;
4314
- created_by?: string | null | undefined;
4315
- updated_by?: string | undefined;
4316
- })[] | undefined;
4317
- flags?: {
4318
- short_name: string;
4319
- stop_id: string;
4320
- agency_ids?: string[] | undefined;
4321
- is_harmonized?: boolean | undefined;
4322
- }[] | undefined;
4323
- jurisdiction?: "unknown" | "ip" | "municipality" | "other" | undefined;
4324
- legacy_id?: string | null | undefined;
4325
- legacy_ids?: string[] | undefined;
4326
- lifecycle_status?: "draft" | "active" | "inactive" | "provisional" | "seasonal" | "voided" | undefined;
4327
- new_name?: string | null | undefined;
4328
- previous_go_id?: string | null | undefined;
4329
- locality_id?: string | null | undefined;
4330
- parish_id?: string | null | undefined;
4331
- bench_status?: "unknown" | "not_applicable" | "missing" | "damaged" | "ok" | undefined;
4332
- electricity_status?: "unknown" | "available" | "unavailable" | undefined;
4333
- pole_status?: "unknown" | "not_applicable" | "missing" | "damaged" | "ok" | undefined;
4334
- road_type?: "unknown" | "complementary_itinerary" | "highway" | "main_itinerary" | "national_road" | "regional_road" | "secondary_road" | undefined;
4335
- shelter_code?: string | null | undefined;
4336
- shelter_frame_size?: [number, number] | null | undefined;
4337
- shelter_installation_date?: number | null | undefined;
4338
- shelter_maintainer?: string | null | undefined;
4339
- shelter_make?: string | null | undefined;
4340
- shelter_model?: string | null | undefined;
4341
- shelter_status?: "unknown" | "not_applicable" | "missing" | "damaged" | "ok" | undefined;
4342
- last_infrastructure_check?: number | null | undefined;
4343
- last_infrastructure_maintenance?: number | null | undefined;
4344
- last_schedules_check?: number | null | undefined;
4345
- last_schedules_maintenance?: number | null | undefined;
4346
- connections?: ("ferry" | "light_rail" | "subway" | "train" | "boat" | "airport" | "bike_sharing" | "bike_parking" | "car_parking")[] | undefined;
4347
- facilities?: ("fire_station" | "health_clinic" | "historic_building" | "hospital" | "police_station" | "school" | "shopping" | "transit_office" | "university" | "beach")[] | undefined;
4348
- equipment?: ("pip" | "mupi" | "mini_pip")[] | undefined;
4349
- has_bench?: "unknown" | "available" | "unavailable" | undefined;
4350
- has_mupi?: "unknown" | "available" | "unavailable" | undefined;
4351
- has_network_map?: "unknown" | "available" | "unavailable" | undefined;
4352
- has_schedules?: "unknown" | "available" | "unavailable" | undefined;
4353
- has_shelter?: "unknown" | "available" | "unavailable" | undefined;
4354
- has_stop_sign?: "unknown" | "available" | "unavailable" | undefined;
4355
- observations?: string | null | undefined;
4356
- is_deleted?: boolean | undefined;
4357
- file_ids?: string[] | undefined;
4358
- image_ids?: string[] | undefined;
4359
- } | null | undefined;
4360
2410
  timepoint?: boolean | undefined;
4361
2411
  allow_drop_off?: boolean | undefined;
4362
2412
  allow_pickup?: boolean | undefined;
@@ -4372,6 +2422,35 @@ export declare const CreatePatternSchema: z.ZodObject<Omit<{
4372
2422
  type?: string | undefined;
4373
2423
  properties?: {} | undefined;
4374
2424
  };
2425
+ anchors?: {
2426
+ _id: string;
2427
+ after_stop_id: number;
2428
+ before_stop_id: number;
2429
+ lat: number;
2430
+ lon: number;
2431
+ type?: "via" | "through" | undefined;
2432
+ sequence?: number | undefined;
2433
+ }[] | undefined;
2434
+ legs?: {
2435
+ distance: number;
2436
+ geometry: [number, number][];
2437
+ geojson: {
2438
+ properties: {
2439
+ distance: number;
2440
+ duration: number;
2441
+ from_index: number;
2442
+ to_index: number;
2443
+ };
2444
+ geometry: {
2445
+ coordinates: number[][];
2446
+ type?: string | undefined;
2447
+ };
2448
+ type?: string | undefined;
2449
+ };
2450
+ duration: number;
2451
+ from_index: number;
2452
+ to_index: number;
2453
+ }[] | undefined;
4375
2454
  } | undefined;
4376
2455
  rules?: ({
4377
2456
  _id: string;
@@ -4485,513 +2564,6 @@ export declare const UpdatePatternSchema: z.ZodObject<{
4485
2564
  allow_drop_off: z.ZodDefault<z.ZodBoolean>;
4486
2565
  allow_pickup: z.ZodDefault<z.ZodBoolean>;
4487
2566
  distance_delta: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
4488
- stop: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4489
- created_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
4490
- created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4491
- is_locked: z.ZodDefault<z.ZodBoolean>;
4492
- updated_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
4493
- updated_by: z.ZodOptional<z.ZodString>;
4494
- } & {
4495
- _id: z.ZodNumber;
4496
- flags: z.ZodDefault<z.ZodArray<z.ZodObject<{
4497
- agency_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
4498
- is_harmonized: z.ZodDefault<z.ZodBoolean>;
4499
- short_name: z.ZodString;
4500
- stop_id: z.ZodString;
4501
- }, "strip", z.ZodTypeAny, {
4502
- short_name: string;
4503
- agency_ids: string[];
4504
- is_harmonized: boolean;
4505
- stop_id: string;
4506
- }, {
4507
- short_name: string;
4508
- stop_id: string;
4509
- agency_ids?: string[] | undefined;
4510
- is_harmonized?: boolean | undefined;
4511
- }>, "many">>;
4512
- is_deleted: z.ZodDefault<z.ZodBoolean>;
4513
- jurisdiction: z.ZodDefault<z.ZodEnum<["ip", "municipality", "other", "unknown"]>>;
4514
- legacy_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4515
- legacy_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
4516
- lifecycle_status: z.ZodDefault<z.ZodEnum<["draft", "active", "inactive", "provisional", "seasonal", "voided"]>>;
4517
- name: z.ZodString;
4518
- new_name: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4519
- previous_go_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4520
- short_name: z.ZodString;
4521
- tts_name: z.ZodString;
4522
- district_id: z.ZodString;
4523
- latitude: z.ZodNumber;
4524
- locality_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4525
- longitude: z.ZodNumber;
4526
- municipality_id: z.ZodString;
4527
- parish_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4528
- bench_status: z.ZodDefault<z.ZodEnum<["not_applicable", "unknown", "missing", "damaged", "ok"]>>;
4529
- electricity_status: z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>;
4530
- pole_status: z.ZodDefault<z.ZodEnum<["not_applicable", "unknown", "missing", "damaged", "ok"]>>;
4531
- road_type: z.ZodDefault<z.ZodEnum<["complementary_itinerary", "highway", "main_itinerary", "national_road", "regional_road", "secondary_road", "unknown"]>>;
4532
- shelter_code: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4533
- shelter_frame_size: z.ZodDefault<z.ZodNullable<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
4534
- shelter_installation_date: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>>>;
4535
- shelter_maintainer: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4536
- shelter_make: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4537
- shelter_model: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4538
- shelter_status: z.ZodDefault<z.ZodEnum<["not_applicable", "unknown", "missing", "damaged", "ok"]>>;
4539
- last_infrastructure_check: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>>>;
4540
- last_infrastructure_maintenance: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>>>;
4541
- last_schedules_check: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>>>;
4542
- last_schedules_maintenance: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>>>;
4543
- connections: z.ZodDefault<z.ZodArray<z.ZodEnum<["ferry", "light_rail", "subway", "train", "boat", "airport", "bike_sharing", "bike_parking", "car_parking"]>, "many">>;
4544
- facilities: z.ZodDefault<z.ZodArray<z.ZodEnum<["fire_station", "health_clinic", "historic_building", "hospital", "police_station", "school", "shopping", "transit_office", "university", "beach"]>, "many">>;
4545
- equipment: z.ZodDefault<z.ZodArray<z.ZodEnum<["pip", "mupi", "mini_pip"]>, "many">>;
4546
- has_bench: z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>;
4547
- has_mupi: z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>;
4548
- has_network_map: z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>;
4549
- has_schedules: z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>;
4550
- has_shelter: z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>;
4551
- has_stop_sign: z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>;
4552
- file_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
4553
- image_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
4554
- comments: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4555
- message: z.ZodString;
4556
- type: z.ZodLiteral<"note">;
4557
- _id: z.ZodOptional<z.ZodString>;
4558
- created_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
4559
- created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4560
- updated_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
4561
- updated_by: z.ZodOptional<z.ZodString>;
4562
- }, "strip", z.ZodTypeAny, {
4563
- message: string;
4564
- type: "note";
4565
- created_at: number & {
4566
- __brand: "UnixTimestamp";
4567
- };
4568
- created_by: string | null;
4569
- updated_at: number & {
4570
- __brand: "UnixTimestamp";
4571
- };
4572
- _id?: string | undefined;
4573
- updated_by?: string | undefined;
4574
- }, {
4575
- message: string;
4576
- type: "note";
4577
- created_at: number;
4578
- updated_at: number;
4579
- _id?: string | undefined;
4580
- created_by?: string | null | undefined;
4581
- updated_by?: string | undefined;
4582
- }>, z.ZodObject<{
4583
- type: z.ZodLiteral<"field_changed">;
4584
- _id: z.ZodOptional<z.ZodString>;
4585
- created_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
4586
- created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4587
- updated_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
4588
- updated_by: z.ZodOptional<z.ZodString>;
4589
- curr_value: z.ZodAny;
4590
- field: z.ZodString;
4591
- prev_value: z.ZodAny;
4592
- metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4593
- changes: z.ZodOptional<z.ZodArray<z.ZodObject<{
4594
- curr_value: z.ZodAny;
4595
- field: z.ZodString;
4596
- prev_value: z.ZodAny;
4597
- }, "strip", z.ZodTypeAny, {
4598
- field: string;
4599
- curr_value?: any;
4600
- prev_value?: any;
4601
- }, {
4602
- field: string;
4603
- curr_value?: any;
4604
- prev_value?: any;
4605
- }>, "many">>;
4606
- }, "strip", z.ZodTypeAny, {
4607
- changes?: {
4608
- field: string;
4609
- curr_value?: any;
4610
- prev_value?: any;
4611
- }[] | undefined;
4612
- }, {
4613
- changes?: {
4614
- field: string;
4615
- curr_value?: any;
4616
- prev_value?: any;
4617
- }[] | undefined;
4618
- }>>>;
4619
- }, "strip", z.ZodTypeAny, {
4620
- type: "field_changed";
4621
- created_at: number & {
4622
- __brand: "UnixTimestamp";
4623
- };
4624
- created_by: string | null;
4625
- updated_at: number & {
4626
- __brand: "UnixTimestamp";
4627
- };
4628
- field: string;
4629
- _id?: string | undefined;
4630
- updated_by?: string | undefined;
4631
- curr_value?: any;
4632
- prev_value?: any;
4633
- metadata?: {
4634
- changes?: {
4635
- field: string;
4636
- curr_value?: any;
4637
- prev_value?: any;
4638
- }[] | undefined;
4639
- } | null | undefined;
4640
- }, {
4641
- type: "field_changed";
4642
- created_at: number;
4643
- updated_at: number;
4644
- field: string;
4645
- _id?: string | undefined;
4646
- created_by?: string | null | undefined;
4647
- updated_by?: string | undefined;
4648
- curr_value?: any;
4649
- prev_value?: any;
4650
- metadata?: {
4651
- changes?: {
4652
- field: string;
4653
- curr_value?: any;
4654
- prev_value?: any;
4655
- }[] | undefined;
4656
- } | null | undefined;
4657
- }>, z.ZodObject<{
4658
- type: z.ZodLiteral<"crud">;
4659
- _id: z.ZodOptional<z.ZodString>;
4660
- created_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
4661
- created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4662
- updated_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
4663
- updated_by: z.ZodOptional<z.ZodString>;
4664
- action: z.ZodEnum<["create", "update", "delete", "archive", "restore"]>;
4665
- }, "strip", z.ZodTypeAny, {
4666
- type: "crud";
4667
- created_at: number & {
4668
- __brand: "UnixTimestamp";
4669
- };
4670
- created_by: string | null;
4671
- updated_at: number & {
4672
- __brand: "UnixTimestamp";
4673
- };
4674
- action: "create" | "update" | "delete" | "archive" | "restore";
4675
- _id?: string | undefined;
4676
- updated_by?: string | undefined;
4677
- }, {
4678
- type: "crud";
4679
- created_at: number;
4680
- updated_at: number;
4681
- action: "create" | "update" | "delete" | "archive" | "restore";
4682
- _id?: string | undefined;
4683
- created_by?: string | null | undefined;
4684
- updated_by?: string | undefined;
4685
- }>]>, {
4686
- message: string;
4687
- type: "note";
4688
- created_at: number & {
4689
- __brand: "UnixTimestamp";
4690
- };
4691
- created_by: string | null;
4692
- updated_at: number & {
4693
- __brand: "UnixTimestamp";
4694
- };
4695
- _id?: string | undefined;
4696
- updated_by?: string | undefined;
4697
- } | {
4698
- type: "field_changed";
4699
- created_at: number & {
4700
- __brand: "UnixTimestamp";
4701
- };
4702
- created_by: string | null;
4703
- updated_at: number & {
4704
- __brand: "UnixTimestamp";
4705
- };
4706
- field: string;
4707
- _id?: string | undefined;
4708
- updated_by?: string | undefined;
4709
- curr_value?: any;
4710
- prev_value?: any;
4711
- metadata?: {
4712
- changes?: {
4713
- field: string;
4714
- curr_value?: any;
4715
- prev_value?: any;
4716
- }[] | undefined;
4717
- } | null | undefined;
4718
- } | {
4719
- type: "crud";
4720
- created_at: number & {
4721
- __brand: "UnixTimestamp";
4722
- };
4723
- created_by: string | null;
4724
- updated_at: number & {
4725
- __brand: "UnixTimestamp";
4726
- };
4727
- action: "create" | "update" | "delete" | "archive" | "restore";
4728
- _id?: string | undefined;
4729
- updated_by?: string | undefined;
4730
- }, {
4731
- message: string;
4732
- type: "note";
4733
- created_at: number;
4734
- updated_at: number;
4735
- _id?: string | undefined;
4736
- created_by?: string | null | undefined;
4737
- updated_by?: string | undefined;
4738
- } | {
4739
- type: "field_changed";
4740
- created_at: number;
4741
- updated_at: number;
4742
- field: string;
4743
- _id?: string | undefined;
4744
- created_by?: string | null | undefined;
4745
- updated_by?: string | undefined;
4746
- curr_value?: any;
4747
- prev_value?: any;
4748
- metadata?: {
4749
- changes?: {
4750
- field: string;
4751
- curr_value?: any;
4752
- prev_value?: any;
4753
- }[] | undefined;
4754
- } | null | undefined;
4755
- } | {
4756
- type: "crud";
4757
- created_at: number;
4758
- updated_at: number;
4759
- action: "create" | "update" | "delete" | "archive" | "restore";
4760
- _id?: string | undefined;
4761
- created_by?: string | null | undefined;
4762
- updated_by?: string | undefined;
4763
- }>, "many">>;
4764
- observations: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4765
- associated_patterns: z.ZodDefault<z.ZodArray<z.ZodObject<{
4766
- _id: z.ZodString;
4767
- code: z.ZodString;
4768
- headsign: z.ZodString;
4769
- line_id: z.ZodString;
4770
- route_id: z.ZodString;
4771
- }, "strip", z.ZodTypeAny, {
4772
- _id: string;
4773
- code: string;
4774
- headsign: string;
4775
- line_id: string;
4776
- route_id: string;
4777
- }, {
4778
- _id: string;
4779
- code: string;
4780
- headsign: string;
4781
- line_id: string;
4782
- route_id: string;
4783
- }>, "many">>;
4784
- }, "strip", z.ZodTypeAny, {
4785
- _id: number;
4786
- created_at: number & {
4787
- __brand: "UnixTimestamp";
4788
- };
4789
- created_by: string | null;
4790
- is_locked: boolean;
4791
- updated_at: number & {
4792
- __brand: "UnixTimestamp";
4793
- };
4794
- name: string;
4795
- short_name: string;
4796
- associated_patterns: {
4797
- _id: string;
4798
- code: string;
4799
- headsign: string;
4800
- line_id: string;
4801
- route_id: string;
4802
- }[];
4803
- comments: ({
4804
- message: string;
4805
- type: "note";
4806
- created_at: number & {
4807
- __brand: "UnixTimestamp";
4808
- };
4809
- created_by: string | null;
4810
- updated_at: number & {
4811
- __brand: "UnixTimestamp";
4812
- };
4813
- _id?: string | undefined;
4814
- updated_by?: string | undefined;
4815
- } | {
4816
- type: "field_changed";
4817
- created_at: number & {
4818
- __brand: "UnixTimestamp";
4819
- };
4820
- created_by: string | null;
4821
- updated_at: number & {
4822
- __brand: "UnixTimestamp";
4823
- };
4824
- field: string;
4825
- _id?: string | undefined;
4826
- updated_by?: string | undefined;
4827
- curr_value?: any;
4828
- prev_value?: any;
4829
- metadata?: {
4830
- changes?: {
4831
- field: string;
4832
- curr_value?: any;
4833
- prev_value?: any;
4834
- }[] | undefined;
4835
- } | null | undefined;
4836
- } | {
4837
- type: "crud";
4838
- created_at: number & {
4839
- __brand: "UnixTimestamp";
4840
- };
4841
- created_by: string | null;
4842
- updated_at: number & {
4843
- __brand: "UnixTimestamp";
4844
- };
4845
- action: "create" | "update" | "delete" | "archive" | "restore";
4846
- _id?: string | undefined;
4847
- updated_by?: string | undefined;
4848
- })[];
4849
- flags: {
4850
- short_name: string;
4851
- agency_ids: string[];
4852
- is_harmonized: boolean;
4853
- stop_id: string;
4854
- }[];
4855
- jurisdiction: "unknown" | "ip" | "municipality" | "other";
4856
- legacy_id: string | null;
4857
- legacy_ids: string[];
4858
- lifecycle_status: "draft" | "active" | "inactive" | "provisional" | "seasonal" | "voided";
4859
- new_name: string | null;
4860
- previous_go_id: string | null;
4861
- tts_name: string;
4862
- district_id: string;
4863
- latitude: number;
4864
- locality_id: string | null;
4865
- longitude: number;
4866
- municipality_id: string;
4867
- parish_id: string | null;
4868
- bench_status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok";
4869
- electricity_status: "unknown" | "available" | "unavailable";
4870
- pole_status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok";
4871
- road_type: "unknown" | "complementary_itinerary" | "highway" | "main_itinerary" | "national_road" | "regional_road" | "secondary_road";
4872
- shelter_code: string | null;
4873
- shelter_frame_size: [number, number] | null;
4874
- shelter_installation_date: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null;
4875
- shelter_maintainer: string | null;
4876
- shelter_make: string | null;
4877
- shelter_model: string | null;
4878
- shelter_status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok";
4879
- last_infrastructure_check: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null;
4880
- last_infrastructure_maintenance: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null;
4881
- last_schedules_check: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null;
4882
- last_schedules_maintenance: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null;
4883
- connections: ("ferry" | "light_rail" | "subway" | "train" | "boat" | "airport" | "bike_sharing" | "bike_parking" | "car_parking")[];
4884
- facilities: ("fire_station" | "health_clinic" | "historic_building" | "hospital" | "police_station" | "school" | "shopping" | "transit_office" | "university" | "beach")[];
4885
- equipment: ("pip" | "mupi" | "mini_pip")[];
4886
- has_bench: "unknown" | "available" | "unavailable";
4887
- has_mupi: "unknown" | "available" | "unavailable";
4888
- has_network_map: "unknown" | "available" | "unavailable";
4889
- has_schedules: "unknown" | "available" | "unavailable";
4890
- has_shelter: "unknown" | "available" | "unavailable";
4891
- has_stop_sign: "unknown" | "available" | "unavailable";
4892
- observations: string | null;
4893
- is_deleted: boolean;
4894
- file_ids: string[];
4895
- image_ids: string[];
4896
- updated_by?: string | undefined;
4897
- }, {
4898
- _id: number;
4899
- created_at: number;
4900
- updated_at: number;
4901
- name: string;
4902
- short_name: string;
4903
- tts_name: string;
4904
- district_id: string;
4905
- latitude: number;
4906
- longitude: number;
4907
- municipality_id: string;
4908
- created_by?: string | null | undefined;
4909
- is_locked?: boolean | undefined;
4910
- updated_by?: string | undefined;
4911
- associated_patterns?: {
4912
- _id: string;
4913
- code: string;
4914
- headsign: string;
4915
- line_id: string;
4916
- route_id: string;
4917
- }[] | undefined;
4918
- comments?: ({
4919
- message: string;
4920
- type: "note";
4921
- created_at: number;
4922
- updated_at: number;
4923
- _id?: string | undefined;
4924
- created_by?: string | null | undefined;
4925
- updated_by?: string | undefined;
4926
- } | {
4927
- type: "field_changed";
4928
- created_at: number;
4929
- updated_at: number;
4930
- field: string;
4931
- _id?: string | undefined;
4932
- created_by?: string | null | undefined;
4933
- updated_by?: string | undefined;
4934
- curr_value?: any;
4935
- prev_value?: any;
4936
- metadata?: {
4937
- changes?: {
4938
- field: string;
4939
- curr_value?: any;
4940
- prev_value?: any;
4941
- }[] | undefined;
4942
- } | null | undefined;
4943
- } | {
4944
- type: "crud";
4945
- created_at: number;
4946
- updated_at: number;
4947
- action: "create" | "update" | "delete" | "archive" | "restore";
4948
- _id?: string | undefined;
4949
- created_by?: string | null | undefined;
4950
- updated_by?: string | undefined;
4951
- })[] | undefined;
4952
- flags?: {
4953
- short_name: string;
4954
- stop_id: string;
4955
- agency_ids?: string[] | undefined;
4956
- is_harmonized?: boolean | undefined;
4957
- }[] | undefined;
4958
- jurisdiction?: "unknown" | "ip" | "municipality" | "other" | undefined;
4959
- legacy_id?: string | null | undefined;
4960
- legacy_ids?: string[] | undefined;
4961
- lifecycle_status?: "draft" | "active" | "inactive" | "provisional" | "seasonal" | "voided" | undefined;
4962
- new_name?: string | null | undefined;
4963
- previous_go_id?: string | null | undefined;
4964
- locality_id?: string | null | undefined;
4965
- parish_id?: string | null | undefined;
4966
- bench_status?: "unknown" | "not_applicable" | "missing" | "damaged" | "ok" | undefined;
4967
- electricity_status?: "unknown" | "available" | "unavailable" | undefined;
4968
- pole_status?: "unknown" | "not_applicable" | "missing" | "damaged" | "ok" | undefined;
4969
- road_type?: "unknown" | "complementary_itinerary" | "highway" | "main_itinerary" | "national_road" | "regional_road" | "secondary_road" | undefined;
4970
- shelter_code?: string | null | undefined;
4971
- shelter_frame_size?: [number, number] | null | undefined;
4972
- shelter_installation_date?: number | null | undefined;
4973
- shelter_maintainer?: string | null | undefined;
4974
- shelter_make?: string | null | undefined;
4975
- shelter_model?: string | null | undefined;
4976
- shelter_status?: "unknown" | "not_applicable" | "missing" | "damaged" | "ok" | undefined;
4977
- last_infrastructure_check?: number | null | undefined;
4978
- last_infrastructure_maintenance?: number | null | undefined;
4979
- last_schedules_check?: number | null | undefined;
4980
- last_schedules_maintenance?: number | null | undefined;
4981
- connections?: ("ferry" | "light_rail" | "subway" | "train" | "boat" | "airport" | "bike_sharing" | "bike_parking" | "car_parking")[] | undefined;
4982
- facilities?: ("fire_station" | "health_clinic" | "historic_building" | "hospital" | "police_station" | "school" | "shopping" | "transit_office" | "university" | "beach")[] | undefined;
4983
- equipment?: ("pip" | "mupi" | "mini_pip")[] | undefined;
4984
- has_bench?: "unknown" | "available" | "unavailable" | undefined;
4985
- has_mupi?: "unknown" | "available" | "unavailable" | undefined;
4986
- has_network_map?: "unknown" | "available" | "unavailable" | undefined;
4987
- has_schedules?: "unknown" | "available" | "unavailable" | undefined;
4988
- has_shelter?: "unknown" | "available" | "unavailable" | undefined;
4989
- has_stop_sign?: "unknown" | "available" | "unavailable" | undefined;
4990
- observations?: string | null | undefined;
4991
- is_deleted?: boolean | undefined;
4992
- file_ids?: string[] | undefined;
4993
- image_ids?: string[] | undefined;
4994
- }>>>;
4995
2567
  stop_id: z.ZodNumber;
4996
2568
  timepoint: z.ZodDefault<z.ZodBoolean>;
4997
2569
  zones: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -5003,228 +2575,41 @@ export declare const UpdatePatternSchema: z.ZodObject<{
5003
2575
  allow_pickup: boolean;
5004
2576
  distance_delta: number | null;
5005
2577
  zones?: string[] | undefined;
5006
- stop?: {
5007
- _id: number;
5008
- created_at: number & {
5009
- __brand: "UnixTimestamp";
5010
- };
5011
- created_by: string | null;
5012
- is_locked: boolean;
5013
- updated_at: number & {
5014
- __brand: "UnixTimestamp";
5015
- };
5016
- name: string;
5017
- short_name: string;
5018
- associated_patterns: {
5019
- _id: string;
5020
- code: string;
5021
- headsign: string;
5022
- line_id: string;
5023
- route_id: string;
5024
- }[];
5025
- comments: ({
5026
- message: string;
5027
- type: "note";
5028
- created_at: number & {
5029
- __brand: "UnixTimestamp";
5030
- };
5031
- created_by: string | null;
5032
- updated_at: number & {
5033
- __brand: "UnixTimestamp";
5034
- };
5035
- _id?: string | undefined;
5036
- updated_by?: string | undefined;
5037
- } | {
5038
- type: "field_changed";
5039
- created_at: number & {
5040
- __brand: "UnixTimestamp";
5041
- };
5042
- created_by: string | null;
5043
- updated_at: number & {
5044
- __brand: "UnixTimestamp";
5045
- };
5046
- field: string;
5047
- _id?: string | undefined;
5048
- updated_by?: string | undefined;
5049
- curr_value?: any;
5050
- prev_value?: any;
5051
- metadata?: {
5052
- changes?: {
5053
- field: string;
5054
- curr_value?: any;
5055
- prev_value?: any;
5056
- }[] | undefined;
5057
- } | null | undefined;
5058
- } | {
5059
- type: "crud";
5060
- created_at: number & {
5061
- __brand: "UnixTimestamp";
5062
- };
5063
- created_by: string | null;
5064
- updated_at: number & {
5065
- __brand: "UnixTimestamp";
5066
- };
5067
- action: "create" | "update" | "delete" | "archive" | "restore";
5068
- _id?: string | undefined;
5069
- updated_by?: string | undefined;
5070
- })[];
5071
- flags: {
5072
- short_name: string;
5073
- agency_ids: string[];
5074
- is_harmonized: boolean;
5075
- stop_id: string;
5076
- }[];
5077
- jurisdiction: "unknown" | "ip" | "municipality" | "other";
5078
- legacy_id: string | null;
5079
- legacy_ids: string[];
5080
- lifecycle_status: "draft" | "active" | "inactive" | "provisional" | "seasonal" | "voided";
5081
- new_name: string | null;
5082
- previous_go_id: string | null;
5083
- tts_name: string;
5084
- district_id: string;
5085
- latitude: number;
5086
- locality_id: string | null;
5087
- longitude: number;
5088
- municipality_id: string;
5089
- parish_id: string | null;
5090
- bench_status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok";
5091
- electricity_status: "unknown" | "available" | "unavailable";
5092
- pole_status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok";
5093
- road_type: "unknown" | "complementary_itinerary" | "highway" | "main_itinerary" | "national_road" | "regional_road" | "secondary_road";
5094
- shelter_code: string | null;
5095
- shelter_frame_size: [number, number] | null;
5096
- shelter_installation_date: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null;
5097
- shelter_maintainer: string | null;
5098
- shelter_make: string | null;
5099
- shelter_model: string | null;
5100
- shelter_status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok";
5101
- last_infrastructure_check: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null;
5102
- last_infrastructure_maintenance: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null;
5103
- last_schedules_check: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null;
5104
- last_schedules_maintenance: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null;
5105
- connections: ("ferry" | "light_rail" | "subway" | "train" | "boat" | "airport" | "bike_sharing" | "bike_parking" | "car_parking")[];
5106
- facilities: ("fire_station" | "health_clinic" | "historic_building" | "hospital" | "police_station" | "school" | "shopping" | "transit_office" | "university" | "beach")[];
5107
- equipment: ("pip" | "mupi" | "mini_pip")[];
5108
- has_bench: "unknown" | "available" | "unavailable";
5109
- has_mupi: "unknown" | "available" | "unavailable";
5110
- has_network_map: "unknown" | "available" | "unavailable";
5111
- has_schedules: "unknown" | "available" | "unavailable";
5112
- has_shelter: "unknown" | "available" | "unavailable";
5113
- has_stop_sign: "unknown" | "available" | "unavailable";
5114
- observations: string | null;
5115
- is_deleted: boolean;
5116
- file_ids: string[];
5117
- image_ids: string[];
5118
- updated_by?: string | undefined;
5119
- } | null | undefined;
5120
2578
  }, {
5121
2579
  _id: string;
5122
2580
  stop_id: number;
5123
2581
  zones?: string[] | undefined;
5124
- stop?: {
5125
- _id: number;
5126
- created_at: number;
5127
- updated_at: number;
5128
- name: string;
5129
- short_name: string;
5130
- tts_name: string;
5131
- district_id: string;
5132
- latitude: number;
5133
- longitude: number;
5134
- municipality_id: string;
5135
- created_by?: string | null | undefined;
5136
- is_locked?: boolean | undefined;
5137
- updated_by?: string | undefined;
5138
- associated_patterns?: {
5139
- _id: string;
5140
- code: string;
5141
- headsign: string;
5142
- line_id: string;
5143
- route_id: string;
5144
- }[] | undefined;
5145
- comments?: ({
5146
- message: string;
5147
- type: "note";
5148
- created_at: number;
5149
- updated_at: number;
5150
- _id?: string | undefined;
5151
- created_by?: string | null | undefined;
5152
- updated_by?: string | undefined;
5153
- } | {
5154
- type: "field_changed";
5155
- created_at: number;
5156
- updated_at: number;
5157
- field: string;
5158
- _id?: string | undefined;
5159
- created_by?: string | null | undefined;
5160
- updated_by?: string | undefined;
5161
- curr_value?: any;
5162
- prev_value?: any;
5163
- metadata?: {
5164
- changes?: {
5165
- field: string;
5166
- curr_value?: any;
5167
- prev_value?: any;
5168
- }[] | undefined;
5169
- } | null | undefined;
5170
- } | {
5171
- type: "crud";
5172
- created_at: number;
5173
- updated_at: number;
5174
- action: "create" | "update" | "delete" | "archive" | "restore";
5175
- _id?: string | undefined;
5176
- created_by?: string | null | undefined;
5177
- updated_by?: string | undefined;
5178
- })[] | undefined;
5179
- flags?: {
5180
- short_name: string;
5181
- stop_id: string;
5182
- agency_ids?: string[] | undefined;
5183
- is_harmonized?: boolean | undefined;
5184
- }[] | undefined;
5185
- jurisdiction?: "unknown" | "ip" | "municipality" | "other" | undefined;
5186
- legacy_id?: string | null | undefined;
5187
- legacy_ids?: string[] | undefined;
5188
- lifecycle_status?: "draft" | "active" | "inactive" | "provisional" | "seasonal" | "voided" | undefined;
5189
- new_name?: string | null | undefined;
5190
- previous_go_id?: string | null | undefined;
5191
- locality_id?: string | null | undefined;
5192
- parish_id?: string | null | undefined;
5193
- bench_status?: "unknown" | "not_applicable" | "missing" | "damaged" | "ok" | undefined;
5194
- electricity_status?: "unknown" | "available" | "unavailable" | undefined;
5195
- pole_status?: "unknown" | "not_applicable" | "missing" | "damaged" | "ok" | undefined;
5196
- road_type?: "unknown" | "complementary_itinerary" | "highway" | "main_itinerary" | "national_road" | "regional_road" | "secondary_road" | undefined;
5197
- shelter_code?: string | null | undefined;
5198
- shelter_frame_size?: [number, number] | null | undefined;
5199
- shelter_installation_date?: number | null | undefined;
5200
- shelter_maintainer?: string | null | undefined;
5201
- shelter_make?: string | null | undefined;
5202
- shelter_model?: string | null | undefined;
5203
- shelter_status?: "unknown" | "not_applicable" | "missing" | "damaged" | "ok" | undefined;
5204
- last_infrastructure_check?: number | null | undefined;
5205
- last_infrastructure_maintenance?: number | null | undefined;
5206
- last_schedules_check?: number | null | undefined;
5207
- last_schedules_maintenance?: number | null | undefined;
5208
- connections?: ("ferry" | "light_rail" | "subway" | "train" | "boat" | "airport" | "bike_sharing" | "bike_parking" | "car_parking")[] | undefined;
5209
- facilities?: ("fire_station" | "health_clinic" | "historic_building" | "hospital" | "police_station" | "school" | "shopping" | "transit_office" | "university" | "beach")[] | undefined;
5210
- equipment?: ("pip" | "mupi" | "mini_pip")[] | undefined;
5211
- has_bench?: "unknown" | "available" | "unavailable" | undefined;
5212
- has_mupi?: "unknown" | "available" | "unavailable" | undefined;
5213
- has_network_map?: "unknown" | "available" | "unavailable" | undefined;
5214
- has_schedules?: "unknown" | "available" | "unavailable" | undefined;
5215
- has_shelter?: "unknown" | "available" | "unavailable" | undefined;
5216
- has_stop_sign?: "unknown" | "available" | "unavailable" | undefined;
5217
- observations?: string | null | undefined;
5218
- is_deleted?: boolean | undefined;
5219
- file_ids?: string[] | undefined;
5220
- image_ids?: string[] | undefined;
5221
- } | null | undefined;
5222
2582
  timepoint?: boolean | undefined;
5223
2583
  allow_drop_off?: boolean | undefined;
5224
2584
  allow_pickup?: boolean | undefined;
5225
2585
  distance_delta?: number | null | undefined;
5226
2586
  }>, "many">>>;
5227
2587
  shape: z.ZodOptional<z.ZodOptional<z.ZodObject<{
2588
+ anchors: z.ZodOptional<z.ZodArray<z.ZodObject<{
2589
+ _id: z.ZodString;
2590
+ after_stop_id: z.ZodNumber;
2591
+ before_stop_id: z.ZodNumber;
2592
+ lat: z.ZodNumber;
2593
+ lon: z.ZodNumber;
2594
+ sequence: z.ZodDefault<z.ZodNumber>;
2595
+ type: z.ZodDefault<z.ZodEnum<["via", "through"]>>;
2596
+ }, "strip", z.ZodTypeAny, {
2597
+ _id: string;
2598
+ type: "via" | "through";
2599
+ after_stop_id: number;
2600
+ before_stop_id: number;
2601
+ lat: number;
2602
+ lon: number;
2603
+ sequence: number;
2604
+ }, {
2605
+ _id: string;
2606
+ after_stop_id: number;
2607
+ before_stop_id: number;
2608
+ lat: number;
2609
+ lon: number;
2610
+ type?: "via" | "through" | undefined;
2611
+ sequence?: number | undefined;
2612
+ }>, "many">>;
5228
2613
  extension: z.ZodNumber;
5229
2614
  geojson: z.ZodObject<{
5230
2615
  geometry: z.ZodObject<{
@@ -5254,6 +2639,104 @@ export declare const UpdatePatternSchema: z.ZodObject<{
5254
2639
  type?: string | undefined;
5255
2640
  properties?: {} | undefined;
5256
2641
  }>;
2642
+ legs: z.ZodOptional<z.ZodArray<z.ZodObject<{
2643
+ distance: z.ZodNumber;
2644
+ duration: z.ZodNumber;
2645
+ from_index: z.ZodNumber;
2646
+ geojson: z.ZodObject<{
2647
+ geometry: z.ZodObject<{
2648
+ coordinates: z.ZodArray<z.ZodArray<z.ZodNumber, "many">, "many">;
2649
+ type: z.ZodDefault<z.ZodString>;
2650
+ }, "strip", z.ZodTypeAny, {
2651
+ type: string;
2652
+ coordinates: number[][];
2653
+ }, {
2654
+ coordinates: number[][];
2655
+ type?: string | undefined;
2656
+ }>;
2657
+ properties: z.ZodObject<{
2658
+ distance: z.ZodNumber;
2659
+ duration: z.ZodNumber;
2660
+ from_index: z.ZodNumber;
2661
+ to_index: z.ZodNumber;
2662
+ }, "strip", z.ZodTypeAny, {
2663
+ distance: number;
2664
+ duration: number;
2665
+ from_index: number;
2666
+ to_index: number;
2667
+ }, {
2668
+ distance: number;
2669
+ duration: number;
2670
+ from_index: number;
2671
+ to_index: number;
2672
+ }>;
2673
+ type: z.ZodDefault<z.ZodString>;
2674
+ }, "strip", z.ZodTypeAny, {
2675
+ type: string;
2676
+ properties: {
2677
+ distance: number;
2678
+ duration: number;
2679
+ from_index: number;
2680
+ to_index: number;
2681
+ };
2682
+ geometry: {
2683
+ type: string;
2684
+ coordinates: number[][];
2685
+ };
2686
+ }, {
2687
+ properties: {
2688
+ distance: number;
2689
+ duration: number;
2690
+ from_index: number;
2691
+ to_index: number;
2692
+ };
2693
+ geometry: {
2694
+ coordinates: number[][];
2695
+ type?: string | undefined;
2696
+ };
2697
+ type?: string | undefined;
2698
+ }>;
2699
+ geometry: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">;
2700
+ to_index: z.ZodNumber;
2701
+ }, "strip", z.ZodTypeAny, {
2702
+ distance: number;
2703
+ geometry: [number, number][];
2704
+ geojson: {
2705
+ type: string;
2706
+ properties: {
2707
+ distance: number;
2708
+ duration: number;
2709
+ from_index: number;
2710
+ to_index: number;
2711
+ };
2712
+ geometry: {
2713
+ type: string;
2714
+ coordinates: number[][];
2715
+ };
2716
+ };
2717
+ duration: number;
2718
+ from_index: number;
2719
+ to_index: number;
2720
+ }, {
2721
+ distance: number;
2722
+ geometry: [number, number][];
2723
+ geojson: {
2724
+ properties: {
2725
+ distance: number;
2726
+ duration: number;
2727
+ from_index: number;
2728
+ to_index: number;
2729
+ };
2730
+ geometry: {
2731
+ coordinates: number[][];
2732
+ type?: string | undefined;
2733
+ };
2734
+ type?: string | undefined;
2735
+ };
2736
+ duration: number;
2737
+ from_index: number;
2738
+ to_index: number;
2739
+ }>, "many">>;
5257
2740
  }, "strip", z.ZodTypeAny, {
5258
2741
  extension: number;
5259
2742
  geojson: {
@@ -5264,6 +2747,35 @@ export declare const UpdatePatternSchema: z.ZodObject<{
5264
2747
  };
5265
2748
  properties?: {} | undefined;
5266
2749
  };
2750
+ anchors?: {
2751
+ _id: string;
2752
+ type: "via" | "through";
2753
+ after_stop_id: number;
2754
+ before_stop_id: number;
2755
+ lat: number;
2756
+ lon: number;
2757
+ sequence: number;
2758
+ }[] | undefined;
2759
+ legs?: {
2760
+ distance: number;
2761
+ geometry: [number, number][];
2762
+ geojson: {
2763
+ type: string;
2764
+ properties: {
2765
+ distance: number;
2766
+ duration: number;
2767
+ from_index: number;
2768
+ to_index: number;
2769
+ };
2770
+ geometry: {
2771
+ type: string;
2772
+ coordinates: number[][];
2773
+ };
2774
+ };
2775
+ duration: number;
2776
+ from_index: number;
2777
+ to_index: number;
2778
+ }[] | undefined;
5267
2779
  }, {
5268
2780
  extension: number;
5269
2781
  geojson: {
@@ -5274,6 +2786,35 @@ export declare const UpdatePatternSchema: z.ZodObject<{
5274
2786
  type?: string | undefined;
5275
2787
  properties?: {} | undefined;
5276
2788
  };
2789
+ anchors?: {
2790
+ _id: string;
2791
+ after_stop_id: number;
2792
+ before_stop_id: number;
2793
+ lat: number;
2794
+ lon: number;
2795
+ type?: "via" | "through" | undefined;
2796
+ sequence?: number | undefined;
2797
+ }[] | undefined;
2798
+ legs?: {
2799
+ distance: number;
2800
+ geometry: [number, number][];
2801
+ geojson: {
2802
+ properties: {
2803
+ distance: number;
2804
+ duration: number;
2805
+ from_index: number;
2806
+ to_index: number;
2807
+ };
2808
+ geometry: {
2809
+ coordinates: number[][];
2810
+ type?: string | undefined;
2811
+ };
2812
+ type?: string | undefined;
2813
+ };
2814
+ duration: number;
2815
+ from_index: number;
2816
+ to_index: number;
2817
+ }[] | undefined;
5277
2818
  }>>>;
5278
2819
  headsign: z.ZodOptional<z.ZodString>;
5279
2820
  line_id: z.ZodOptional<z.ZodString>;
@@ -5714,120 +3255,6 @@ export declare const UpdatePatternSchema: z.ZodObject<{
5714
3255
  allow_pickup: boolean;
5715
3256
  distance_delta: number | null;
5716
3257
  zones?: string[] | undefined;
5717
- stop?: {
5718
- _id: number;
5719
- created_at: number & {
5720
- __brand: "UnixTimestamp";
5721
- };
5722
- created_by: string | null;
5723
- is_locked: boolean;
5724
- updated_at: number & {
5725
- __brand: "UnixTimestamp";
5726
- };
5727
- name: string;
5728
- short_name: string;
5729
- associated_patterns: {
5730
- _id: string;
5731
- code: string;
5732
- headsign: string;
5733
- line_id: string;
5734
- route_id: string;
5735
- }[];
5736
- comments: ({
5737
- message: string;
5738
- type: "note";
5739
- created_at: number & {
5740
- __brand: "UnixTimestamp";
5741
- };
5742
- created_by: string | null;
5743
- updated_at: number & {
5744
- __brand: "UnixTimestamp";
5745
- };
5746
- _id?: string | undefined;
5747
- updated_by?: string | undefined;
5748
- } | {
5749
- type: "field_changed";
5750
- created_at: number & {
5751
- __brand: "UnixTimestamp";
5752
- };
5753
- created_by: string | null;
5754
- updated_at: number & {
5755
- __brand: "UnixTimestamp";
5756
- };
5757
- field: string;
5758
- _id?: string | undefined;
5759
- updated_by?: string | undefined;
5760
- curr_value?: any;
5761
- prev_value?: any;
5762
- metadata?: {
5763
- changes?: {
5764
- field: string;
5765
- curr_value?: any;
5766
- prev_value?: any;
5767
- }[] | undefined;
5768
- } | null | undefined;
5769
- } | {
5770
- type: "crud";
5771
- created_at: number & {
5772
- __brand: "UnixTimestamp";
5773
- };
5774
- created_by: string | null;
5775
- updated_at: number & {
5776
- __brand: "UnixTimestamp";
5777
- };
5778
- action: "create" | "update" | "delete" | "archive" | "restore";
5779
- _id?: string | undefined;
5780
- updated_by?: string | undefined;
5781
- })[];
5782
- flags: {
5783
- short_name: string;
5784
- agency_ids: string[];
5785
- is_harmonized: boolean;
5786
- stop_id: string;
5787
- }[];
5788
- jurisdiction: "unknown" | "ip" | "municipality" | "other";
5789
- legacy_id: string | null;
5790
- legacy_ids: string[];
5791
- lifecycle_status: "draft" | "active" | "inactive" | "provisional" | "seasonal" | "voided";
5792
- new_name: string | null;
5793
- previous_go_id: string | null;
5794
- tts_name: string;
5795
- district_id: string;
5796
- latitude: number;
5797
- locality_id: string | null;
5798
- longitude: number;
5799
- municipality_id: string;
5800
- parish_id: string | null;
5801
- bench_status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok";
5802
- electricity_status: "unknown" | "available" | "unavailable";
5803
- pole_status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok";
5804
- road_type: "unknown" | "complementary_itinerary" | "highway" | "main_itinerary" | "national_road" | "regional_road" | "secondary_road";
5805
- shelter_code: string | null;
5806
- shelter_frame_size: [number, number] | null;
5807
- shelter_installation_date: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null;
5808
- shelter_maintainer: string | null;
5809
- shelter_make: string | null;
5810
- shelter_model: string | null;
5811
- shelter_status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok";
5812
- last_infrastructure_check: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null;
5813
- last_infrastructure_maintenance: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null;
5814
- last_schedules_check: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null;
5815
- last_schedules_maintenance: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null;
5816
- connections: ("ferry" | "light_rail" | "subway" | "train" | "boat" | "airport" | "bike_sharing" | "bike_parking" | "car_parking")[];
5817
- facilities: ("fire_station" | "health_clinic" | "historic_building" | "hospital" | "police_station" | "school" | "shopping" | "transit_office" | "university" | "beach")[];
5818
- equipment: ("pip" | "mupi" | "mini_pip")[];
5819
- has_bench: "unknown" | "available" | "unavailable";
5820
- has_mupi: "unknown" | "available" | "unavailable";
5821
- has_network_map: "unknown" | "available" | "unavailable";
5822
- has_schedules: "unknown" | "available" | "unavailable";
5823
- has_shelter: "unknown" | "available" | "unavailable";
5824
- has_stop_sign: "unknown" | "available" | "unavailable";
5825
- observations: string | null;
5826
- is_deleted: boolean;
5827
- file_ids: string[];
5828
- image_ids: string[];
5829
- updated_by?: string | undefined;
5830
- } | null | undefined;
5831
3258
  }[] | undefined;
5832
3259
  shape?: {
5833
3260
  extension: number;
@@ -5839,6 +3266,35 @@ export declare const UpdatePatternSchema: z.ZodObject<{
5839
3266
  };
5840
3267
  properties?: {} | undefined;
5841
3268
  };
3269
+ anchors?: {
3270
+ _id: string;
3271
+ type: "via" | "through";
3272
+ after_stop_id: number;
3273
+ before_stop_id: number;
3274
+ lat: number;
3275
+ lon: number;
3276
+ sequence: number;
3277
+ }[] | undefined;
3278
+ legs?: {
3279
+ distance: number;
3280
+ geometry: [number, number][];
3281
+ geojson: {
3282
+ type: string;
3283
+ properties: {
3284
+ distance: number;
3285
+ duration: number;
3286
+ from_index: number;
3287
+ to_index: number;
3288
+ };
3289
+ geometry: {
3290
+ type: string;
3291
+ coordinates: number[][];
3292
+ };
3293
+ };
3294
+ duration: number;
3295
+ from_index: number;
3296
+ to_index: number;
3297
+ }[] | undefined;
5842
3298
  } | undefined;
5843
3299
  rules?: {
5844
3300
  _id: string;
@@ -5934,104 +3390,6 @@ export declare const UpdatePatternSchema: z.ZodObject<{
5934
3390
  _id: string;
5935
3391
  stop_id: number;
5936
3392
  zones?: string[] | undefined;
5937
- stop?: {
5938
- _id: number;
5939
- created_at: number;
5940
- updated_at: number;
5941
- name: string;
5942
- short_name: string;
5943
- tts_name: string;
5944
- district_id: string;
5945
- latitude: number;
5946
- longitude: number;
5947
- municipality_id: string;
5948
- created_by?: string | null | undefined;
5949
- is_locked?: boolean | undefined;
5950
- updated_by?: string | undefined;
5951
- associated_patterns?: {
5952
- _id: string;
5953
- code: string;
5954
- headsign: string;
5955
- line_id: string;
5956
- route_id: string;
5957
- }[] | undefined;
5958
- comments?: ({
5959
- message: string;
5960
- type: "note";
5961
- created_at: number;
5962
- updated_at: number;
5963
- _id?: string | undefined;
5964
- created_by?: string | null | undefined;
5965
- updated_by?: string | undefined;
5966
- } | {
5967
- type: "field_changed";
5968
- created_at: number;
5969
- updated_at: number;
5970
- field: string;
5971
- _id?: string | undefined;
5972
- created_by?: string | null | undefined;
5973
- updated_by?: string | undefined;
5974
- curr_value?: any;
5975
- prev_value?: any;
5976
- metadata?: {
5977
- changes?: {
5978
- field: string;
5979
- curr_value?: any;
5980
- prev_value?: any;
5981
- }[] | undefined;
5982
- } | null | undefined;
5983
- } | {
5984
- type: "crud";
5985
- created_at: number;
5986
- updated_at: number;
5987
- action: "create" | "update" | "delete" | "archive" | "restore";
5988
- _id?: string | undefined;
5989
- created_by?: string | null | undefined;
5990
- updated_by?: string | undefined;
5991
- })[] | undefined;
5992
- flags?: {
5993
- short_name: string;
5994
- stop_id: string;
5995
- agency_ids?: string[] | undefined;
5996
- is_harmonized?: boolean | undefined;
5997
- }[] | undefined;
5998
- jurisdiction?: "unknown" | "ip" | "municipality" | "other" | undefined;
5999
- legacy_id?: string | null | undefined;
6000
- legacy_ids?: string[] | undefined;
6001
- lifecycle_status?: "draft" | "active" | "inactive" | "provisional" | "seasonal" | "voided" | undefined;
6002
- new_name?: string | null | undefined;
6003
- previous_go_id?: string | null | undefined;
6004
- locality_id?: string | null | undefined;
6005
- parish_id?: string | null | undefined;
6006
- bench_status?: "unknown" | "not_applicable" | "missing" | "damaged" | "ok" | undefined;
6007
- electricity_status?: "unknown" | "available" | "unavailable" | undefined;
6008
- pole_status?: "unknown" | "not_applicable" | "missing" | "damaged" | "ok" | undefined;
6009
- road_type?: "unknown" | "complementary_itinerary" | "highway" | "main_itinerary" | "national_road" | "regional_road" | "secondary_road" | undefined;
6010
- shelter_code?: string | null | undefined;
6011
- shelter_frame_size?: [number, number] | null | undefined;
6012
- shelter_installation_date?: number | null | undefined;
6013
- shelter_maintainer?: string | null | undefined;
6014
- shelter_make?: string | null | undefined;
6015
- shelter_model?: string | null | undefined;
6016
- shelter_status?: "unknown" | "not_applicable" | "missing" | "damaged" | "ok" | undefined;
6017
- last_infrastructure_check?: number | null | undefined;
6018
- last_infrastructure_maintenance?: number | null | undefined;
6019
- last_schedules_check?: number | null | undefined;
6020
- last_schedules_maintenance?: number | null | undefined;
6021
- connections?: ("ferry" | "light_rail" | "subway" | "train" | "boat" | "airport" | "bike_sharing" | "bike_parking" | "car_parking")[] | undefined;
6022
- facilities?: ("fire_station" | "health_clinic" | "historic_building" | "hospital" | "police_station" | "school" | "shopping" | "transit_office" | "university" | "beach")[] | undefined;
6023
- equipment?: ("pip" | "mupi" | "mini_pip")[] | undefined;
6024
- has_bench?: "unknown" | "available" | "unavailable" | undefined;
6025
- has_mupi?: "unknown" | "available" | "unavailable" | undefined;
6026
- has_network_map?: "unknown" | "available" | "unavailable" | undefined;
6027
- has_schedules?: "unknown" | "available" | "unavailable" | undefined;
6028
- has_shelter?: "unknown" | "available" | "unavailable" | undefined;
6029
- has_stop_sign?: "unknown" | "available" | "unavailable" | undefined;
6030
- observations?: string | null | undefined;
6031
- is_deleted?: boolean | undefined;
6032
- file_ids?: string[] | undefined;
6033
- image_ids?: string[] | undefined;
6034
- } | null | undefined;
6035
3393
  timepoint?: boolean | undefined;
6036
3394
  allow_drop_off?: boolean | undefined;
6037
3395
  allow_pickup?: boolean | undefined;
@@ -6047,6 +3405,35 @@ export declare const UpdatePatternSchema: z.ZodObject<{
6047
3405
  type?: string | undefined;
6048
3406
  properties?: {} | undefined;
6049
3407
  };
3408
+ anchors?: {
3409
+ _id: string;
3410
+ after_stop_id: number;
3411
+ before_stop_id: number;
3412
+ lat: number;
3413
+ lon: number;
3414
+ type?: "via" | "through" | undefined;
3415
+ sequence?: number | undefined;
3416
+ }[] | undefined;
3417
+ legs?: {
3418
+ distance: number;
3419
+ geometry: [number, number][];
3420
+ geojson: {
3421
+ properties: {
3422
+ distance: number;
3423
+ duration: number;
3424
+ from_index: number;
3425
+ to_index: number;
3426
+ };
3427
+ geometry: {
3428
+ coordinates: number[][];
3429
+ type?: string | undefined;
3430
+ };
3431
+ type?: string | undefined;
3432
+ };
3433
+ duration: number;
3434
+ from_index: number;
3435
+ to_index: number;
3436
+ }[] | undefined;
6050
3437
  } | undefined;
6051
3438
  rules?: {
6052
3439
  _id: string;
@@ -6126,6 +3513,12 @@ export declare const UpdatePatternSchema: z.ZodObject<{
6126
3513
  export type Pattern = z.infer<typeof PatternSchema>;
6127
3514
  export type CreatePatternDto = z.infer<typeof CreatePatternSchema>;
6128
3515
  export type UpdatePatternDto = z.infer<typeof UpdatePatternSchema>;
3516
+ export type PopulatedPattern = Omit<Pattern, 'path'> & {
3517
+ path: PopulatedPath[];
3518
+ };
6129
3519
  export type PatternSimplified = z.infer<typeof PatternSimplifiedSchema>;
6130
3520
  export type Path = z.infer<typeof PathSchema>;
3521
+ export type PopulatedPath = Path & {
3522
+ stop: null | Stop;
3523
+ };
6131
3524
  export type Shape = z.infer<typeof ShapeSchema>;