@tmlmobilidade/types 20260121.2332.6 → 20260128.2248.28

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.
Files changed (150) hide show
  1. package/dist/_common/comment.d.ts +24 -24
  2. package/dist/_common/document.d.ts +3 -3
  3. package/dist/_common/document.js +1 -1
  4. package/dist/_common/status.d.ts +2 -2
  5. package/dist/_common/status.js +1 -1
  6. package/dist/_common/unix-timestamp.js +1 -0
  7. package/dist/agency.d.ts +6 -6
  8. package/dist/alerts/alert.d.ts +262 -0
  9. package/dist/alerts/alert.js +34 -0
  10. package/dist/alerts/cause-effect-map.d.ts +106 -0
  11. package/dist/alerts/cause-effect-map.js +94 -0
  12. package/dist/alerts/cause.d.ts +17 -0
  13. package/dist/alerts/cause.js +45 -0
  14. package/dist/alerts/effect.d.ts +17 -0
  15. package/dist/alerts/effect.js +35 -0
  16. package/dist/alerts/index.d.ts +6 -0
  17. package/dist/alerts/index.js +6 -0
  18. package/dist/alerts/query.d.ts +9 -0
  19. package/dist/alerts/query.js +6 -0
  20. package/dist/alerts/reference-type.d.ts +4 -0
  21. package/dist/alerts/reference-type.js +10 -0
  22. package/dist/apex/simplified-apex-location.d.ts +2 -12
  23. package/dist/apex/simplified-apex-location.js +1 -1
  24. package/dist/apex/simplified-apex-on-board-refund.d.ts +2 -12
  25. package/dist/apex/simplified-apex-on-board-refund.js +1 -1
  26. package/dist/apex/simplified-apex-on-board-sale.d.ts +12 -19
  27. package/dist/apex/simplified-apex-on-board-sale.js +2 -2
  28. package/dist/apex/simplified-apex-validation.d.ts +6 -16
  29. package/dist/apex/simplified-apex-validation.js +1 -1
  30. package/dist/auth/role.d.ts +718 -130
  31. package/dist/auth/session.d.ts +6 -6
  32. package/dist/auth/user.d.ts +1182 -270
  33. package/dist/auth/verification-token.d.ts +4 -4
  34. package/dist/calendar/event.d.ts +43 -0
  35. package/dist/calendar/event.js +16 -0
  36. package/dist/calendar/index.d.ts +1 -0
  37. package/dist/calendar/index.js +2 -0
  38. package/dist/dates/annotation.d.ts +6 -6
  39. package/dist/dates/date.d.ts +32 -0
  40. package/dist/dates/date.js +18 -0
  41. package/dist/dates/index.d.ts +2 -0
  42. package/dist/dates/index.js +2 -0
  43. package/dist/dates/period.d.ts +94 -0
  44. package/dist/dates/period.js +14 -0
  45. package/dist/file-exports/base.d.ts +9 -9
  46. package/dist/file-exports/file-exports.d.ts +7 -7
  47. package/dist/file-exports/ride-export.d.ts +14 -14
  48. package/dist/file-exports/ride-export.js +2 -2
  49. package/dist/gtfs/cause.d.ts +10 -0
  50. package/dist/gtfs/cause.js +18 -0
  51. package/dist/gtfs/effect.d.ts +10 -0
  52. package/dist/gtfs/effect.js +17 -0
  53. package/dist/gtfs/index.d.ts +2 -1
  54. package/dist/gtfs/index.js +2 -1
  55. package/dist/index.d.ts +5 -2
  56. package/dist/index.js +5 -2
  57. package/dist/locations/queries.d.ts +2 -2
  58. package/dist/metrics/demand/demand_by_agency.d.ts +8 -8
  59. package/dist/metrics/demand/demand_by_category.d.ts +12 -12
  60. package/dist/metrics/demand/demand_by_line.d.ts +4 -4
  61. package/dist/metrics/demand/demand_by_pattern.d.ts +8 -8
  62. package/dist/metrics/demand/demand_by_product.d.ts +12 -12
  63. package/dist/metrics/index.d.ts +93 -48
  64. package/dist/metrics/index.js +4 -1
  65. package/dist/metrics/passenger-impact/index.d.ts +1 -0
  66. package/dist/metrics/passenger-impact/index.js +1 -0
  67. package/dist/metrics/passenger-impact/passenger-impact.d.ts +97 -0
  68. package/dist/metrics/passenger-impact/passenger-impact.js +22 -0
  69. package/dist/metrics/supply/supply_by_agency.d.ts +4 -4
  70. package/dist/notification.d.ts +18 -18
  71. package/dist/offer/index.d.ts +5 -0
  72. package/dist/offer/index.js +5 -0
  73. package/dist/offer/line.d.ts +296 -0
  74. package/dist/offer/line.js +60 -0
  75. package/dist/offer/pattern.d.ts +3608 -0
  76. package/dist/offer/pattern.js +75 -0
  77. package/dist/offer/route.d.ts +187 -0
  78. package/dist/offer/route.js +33 -0
  79. package/dist/offer/scheduleRule.d.ts +80 -0
  80. package/dist/offer/scheduleRule.js +50 -0
  81. package/dist/offer/typology.d.ts +124 -0
  82. package/dist/offer/typology.js +30 -0
  83. package/dist/organization.d.ts +20 -20
  84. package/dist/permissions/alerts.d.ts +13 -19
  85. package/dist/permissions/alerts.js +8 -13
  86. package/dist/permissions/annotations.d.ts +25 -0
  87. package/dist/permissions/annotations.js +16 -0
  88. package/dist/permissions/fares.d.ts +25 -0
  89. package/dist/permissions/fares.js +16 -0
  90. package/dist/permissions/index.d.ts +196 -21
  91. package/dist/permissions/index.js +142 -6
  92. package/dist/permissions/lines.d.ts +25 -0
  93. package/dist/permissions/lines.js +16 -0
  94. package/dist/permissions/periods.d.ts +25 -0
  95. package/dist/permissions/periods.js +16 -0
  96. package/dist/permissions/typologies.d.ts +25 -0
  97. package/dist/permissions/typologies.js +16 -0
  98. package/dist/permissions/vehicles.d.ts +25 -0
  99. package/dist/permissions/vehicles.js +16 -0
  100. package/dist/permissions/zones.d.ts +25 -0
  101. package/dist/permissions/zones.js +16 -0
  102. package/dist/plans/gtfs-validation.d.ts +30 -30
  103. package/dist/plans/plan.d.ts +6 -6
  104. package/dist/proposed-change.d.ts +12 -12
  105. package/dist/rides/batch-query.d.ts +52 -0
  106. package/dist/rides/batch-query.js +54 -0
  107. package/dist/rides/index.d.ts +1 -0
  108. package/dist/rides/index.js +1 -0
  109. package/dist/rides/ride-acceptance.d.ts +105 -105
  110. package/dist/rides/ride-acceptance.js +2 -2
  111. package/dist/rides/ride-audit.d.ts +21 -21
  112. package/dist/rides/ride-normalized.d.ts +808 -21
  113. package/dist/rides/ride-normalized.js +31 -1
  114. package/dist/rides/ride.d.ts +6 -6
  115. package/dist/sams/sam.d.ts +0 -15
  116. package/dist/sams/sam.js +2 -2
  117. package/dist/stops/connections.d.ts +1 -0
  118. package/dist/stops/connections.js +1 -1
  119. package/dist/stops/equipment.d.ts +1 -0
  120. package/dist/stops/equipment.js +1 -1
  121. package/dist/stops/parent-station.d.ts +6 -6
  122. package/dist/stops/stop-area.d.ts +6 -6
  123. package/dist/stops/stop.d.ts +69 -69
  124. package/dist/ticketing/fare.d.ts +137 -0
  125. package/dist/ticketing/fare.js +44 -0
  126. package/dist/ticketing/index.d.ts +2 -0
  127. package/dist/ticketing/index.js +2 -0
  128. package/dist/ticketing/zone.d.ts +220 -0
  129. package/dist/ticketing/zone.js +34 -0
  130. package/dist/vehicle/emission.d.ts +3 -0
  131. package/dist/vehicle/emission.js +12 -0
  132. package/dist/vehicle/index.d.ts +4 -0
  133. package/dist/vehicle/index.js +4 -0
  134. package/dist/vehicle/propulsion.d.ts +3 -0
  135. package/dist/vehicle/propulsion.js +14 -0
  136. package/dist/vehicle/vehicle.d.ts +189 -0
  137. package/dist/vehicle/vehicle.js +27 -0
  138. package/dist/vehicle/wheelchair.d.ts +3 -0
  139. package/dist/vehicle/wheelchair.js +10 -0
  140. package/dist/vehicle-events/clickhouse-vehicle-event.d.ts +2 -6
  141. package/dist/vehicle-events/simplified-vehicle-event.d.ts +2 -6
  142. package/dist/vehicle-events/simplified-vehicle-event.js +1 -1
  143. package/dist/zone.d.ts +6 -6
  144. package/package.json +2 -2
  145. package/dist/alert.d.ts +0 -265
  146. package/dist/alert.js +0 -42
  147. package/dist/gtfs/cause-effetcs.d.ts +0 -86
  148. package/dist/gtfs/cause-effetcs.js +0 -31
  149. package/dist/permissions/dates.d.ts +0 -25
  150. package/dist/permissions/dates.js +0 -16
@@ -0,0 +1,3608 @@
1
+ import { z } from 'zod';
2
+ export declare const directionOptions: {
3
+ label: string;
4
+ value: string;
5
+ }[];
6
+ export declare const PathSchema: z.ZodObject<{
7
+ _id: z.ZodString;
8
+ allow_drop_off: z.ZodDefault<z.ZodBoolean>;
9
+ allow_pickup: z.ZodDefault<z.ZodBoolean>;
10
+ distance_delta: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
11
+ stop: z.ZodOptional<z.ZodNullable<z.ZodObject<{
12
+ created_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
13
+ created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
14
+ is_locked: z.ZodDefault<z.ZodBoolean>;
15
+ updated_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
16
+ updated_by: z.ZodOptional<z.ZodString>;
17
+ } & {
18
+ _id: z.ZodString;
19
+ is_deleted: z.ZodDefault<z.ZodBoolean>;
20
+ jurisdiction: z.ZodDefault<z.ZodEnum<["ip", "municipality", "other", "unknown"]>>;
21
+ legacy_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
22
+ lifecycle_status: z.ZodDefault<z.ZodEnum<["draft", "active", "inactive", "provisional", "seasonal", "voided"]>>;
23
+ name: z.ZodString;
24
+ new_name: z.ZodDefault<z.ZodNullable<z.ZodString>>;
25
+ short_name: z.ZodString;
26
+ tts_name: z.ZodString;
27
+ district_id: z.ZodString;
28
+ latitude: z.ZodNumber;
29
+ locality_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
30
+ longitude: z.ZodNumber;
31
+ municipality_id: z.ZodString;
32
+ parish_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
33
+ bench_status: z.ZodDefault<z.ZodEnum<["not_applicable", "unknown", "missing", "damaged", "ok"]>>;
34
+ electricity_status: z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>;
35
+ pole_status: z.ZodDefault<z.ZodEnum<["not_applicable", "unknown", "missing", "damaged", "ok"]>>;
36
+ road_type: z.ZodDefault<z.ZodEnum<["complementary_itinerary", "highway", "main_itinerary", "national_road", "regional_road", "secondary_road", "unknown"]>>;
37
+ shelter_code: z.ZodDefault<z.ZodNullable<z.ZodString>>;
38
+ shelter_frame_size: z.ZodDefault<z.ZodNullable<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
39
+ shelter_installation_date: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>>>;
40
+ shelter_maintainer: z.ZodDefault<z.ZodNullable<z.ZodString>>;
41
+ shelter_make: z.ZodDefault<z.ZodNullable<z.ZodString>>;
42
+ shelter_model: z.ZodDefault<z.ZodNullable<z.ZodString>>;
43
+ shelter_status: z.ZodDefault<z.ZodEnum<["not_applicable", "unknown", "missing", "damaged", "ok"]>>;
44
+ last_infrastructure_check: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>>>;
45
+ last_infrastructure_maintenance: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>>>;
46
+ last_schedules_check: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>>>;
47
+ last_schedules_maintenance: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>>>;
48
+ connections: z.ZodDefault<z.ZodArray<z.ZodEnum<["ferry", "light_rail", "subway", "train", "boat", "airport", "bike_sharing", "bike_parking", "car_parking"]>, "many">>;
49
+ facilities: z.ZodDefault<z.ZodArray<z.ZodEnum<["fire_station", "health_clinic", "historic_building", "hospital", "police_station", "school", "shopping", "transit_office", "university", "beach"]>, "many">>;
50
+ equipment: z.ZodDefault<z.ZodArray<z.ZodEnum<["pip", "mupi", "mini_pip"]>, "many">>;
51
+ has_bench: z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>;
52
+ has_mupi: z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>;
53
+ has_network_map: z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>;
54
+ has_schedules: z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>;
55
+ has_shelter: z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>;
56
+ has_stop_sign: z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>;
57
+ file_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
58
+ image_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
59
+ comments: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
60
+ _id: z.ZodOptional<z.ZodString>;
61
+ created_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
62
+ created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
63
+ updated_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
64
+ updated_by: z.ZodOptional<z.ZodString>;
65
+ message: z.ZodString;
66
+ type: z.ZodLiteral<"note">;
67
+ }, "strip", z.ZodTypeAny, {
68
+ created_at: number & {
69
+ __brand: "UnixTimestamp";
70
+ };
71
+ created_by: string | null;
72
+ updated_at: number & {
73
+ __brand: "UnixTimestamp";
74
+ };
75
+ message: string;
76
+ type: "note";
77
+ _id?: string | undefined;
78
+ updated_by?: string | undefined;
79
+ }, {
80
+ created_at: number;
81
+ updated_at: number;
82
+ message: string;
83
+ type: "note";
84
+ _id?: string | undefined;
85
+ created_by?: string | null | undefined;
86
+ updated_by?: string | undefined;
87
+ }>, z.ZodObject<{
88
+ _id: z.ZodOptional<z.ZodString>;
89
+ created_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
90
+ created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
91
+ updated_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
92
+ updated_by: z.ZodOptional<z.ZodString>;
93
+ type: z.ZodLiteral<"field_changed">;
94
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
95
+ curr_value: z.ZodAny;
96
+ field: z.ZodString;
97
+ prev_value: z.ZodAny;
98
+ }, "strip", z.ZodTypeAny, {
99
+ created_at: number & {
100
+ __brand: "UnixTimestamp";
101
+ };
102
+ created_by: string | null;
103
+ updated_at: number & {
104
+ __brand: "UnixTimestamp";
105
+ };
106
+ type: "field_changed";
107
+ field: string;
108
+ _id?: string | undefined;
109
+ updated_by?: string | undefined;
110
+ metadata?: Record<string, unknown> | null | undefined;
111
+ curr_value?: any;
112
+ prev_value?: any;
113
+ }, {
114
+ created_at: number;
115
+ updated_at: number;
116
+ type: "field_changed";
117
+ field: string;
118
+ _id?: string | undefined;
119
+ created_by?: string | null | undefined;
120
+ updated_by?: string | undefined;
121
+ metadata?: Record<string, unknown> | null | undefined;
122
+ curr_value?: any;
123
+ prev_value?: any;
124
+ }>, z.ZodObject<{
125
+ _id: z.ZodOptional<z.ZodString>;
126
+ created_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
127
+ created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
128
+ updated_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
129
+ updated_by: z.ZodOptional<z.ZodString>;
130
+ type: z.ZodLiteral<"crud">;
131
+ action: z.ZodEnum<["create", "update", "delete", "archive", "restore"]>;
132
+ }, "strip", z.ZodTypeAny, {
133
+ created_at: number & {
134
+ __brand: "UnixTimestamp";
135
+ };
136
+ created_by: string | null;
137
+ updated_at: number & {
138
+ __brand: "UnixTimestamp";
139
+ };
140
+ type: "crud";
141
+ action: "create" | "update" | "delete" | "archive" | "restore";
142
+ _id?: string | undefined;
143
+ updated_by?: string | undefined;
144
+ }, {
145
+ created_at: number;
146
+ updated_at: number;
147
+ type: "crud";
148
+ action: "create" | "update" | "delete" | "archive" | "restore";
149
+ _id?: string | undefined;
150
+ created_by?: string | null | undefined;
151
+ updated_by?: string | undefined;
152
+ }>]>, {
153
+ created_at: number & {
154
+ __brand: "UnixTimestamp";
155
+ };
156
+ created_by: string | null;
157
+ updated_at: number & {
158
+ __brand: "UnixTimestamp";
159
+ };
160
+ message: string;
161
+ type: "note";
162
+ _id?: string | undefined;
163
+ updated_by?: string | undefined;
164
+ } | {
165
+ created_at: number & {
166
+ __brand: "UnixTimestamp";
167
+ };
168
+ created_by: string | null;
169
+ updated_at: number & {
170
+ __brand: "UnixTimestamp";
171
+ };
172
+ type: "field_changed";
173
+ field: string;
174
+ _id?: string | undefined;
175
+ updated_by?: string | undefined;
176
+ metadata?: Record<string, unknown> | null | undefined;
177
+ curr_value?: any;
178
+ prev_value?: any;
179
+ } | {
180
+ created_at: number & {
181
+ __brand: "UnixTimestamp";
182
+ };
183
+ created_by: string | null;
184
+ updated_at: number & {
185
+ __brand: "UnixTimestamp";
186
+ };
187
+ type: "crud";
188
+ action: "create" | "update" | "delete" | "archive" | "restore";
189
+ _id?: string | undefined;
190
+ updated_by?: string | undefined;
191
+ }, {
192
+ created_at: number;
193
+ updated_at: number;
194
+ message: string;
195
+ type: "note";
196
+ _id?: string | undefined;
197
+ created_by?: string | null | undefined;
198
+ updated_by?: string | undefined;
199
+ } | {
200
+ created_at: number;
201
+ updated_at: number;
202
+ type: "field_changed";
203
+ field: string;
204
+ _id?: string | undefined;
205
+ created_by?: string | null | undefined;
206
+ updated_by?: string | undefined;
207
+ metadata?: Record<string, unknown> | null | undefined;
208
+ curr_value?: any;
209
+ prev_value?: any;
210
+ } | {
211
+ created_at: number;
212
+ updated_at: number;
213
+ type: "crud";
214
+ action: "create" | "update" | "delete" | "archive" | "restore";
215
+ _id?: string | undefined;
216
+ created_by?: string | null | undefined;
217
+ updated_by?: string | undefined;
218
+ }>, "many">>;
219
+ observations: z.ZodDefault<z.ZodNullable<z.ZodString>>;
220
+ }, "strip", z.ZodTypeAny, {
221
+ _id: string;
222
+ created_at: number & {
223
+ __brand: "UnixTimestamp";
224
+ };
225
+ created_by: string | null;
226
+ is_locked: boolean;
227
+ updated_at: number & {
228
+ __brand: "UnixTimestamp";
229
+ };
230
+ name: string;
231
+ short_name: string;
232
+ latitude: number;
233
+ longitude: number;
234
+ comments: ({
235
+ created_at: number & {
236
+ __brand: "UnixTimestamp";
237
+ };
238
+ created_by: string | null;
239
+ updated_at: number & {
240
+ __brand: "UnixTimestamp";
241
+ };
242
+ message: string;
243
+ type: "note";
244
+ _id?: string | undefined;
245
+ updated_by?: string | undefined;
246
+ } | {
247
+ created_at: number & {
248
+ __brand: "UnixTimestamp";
249
+ };
250
+ created_by: string | null;
251
+ updated_at: number & {
252
+ __brand: "UnixTimestamp";
253
+ };
254
+ type: "field_changed";
255
+ field: string;
256
+ _id?: string | undefined;
257
+ updated_by?: string | undefined;
258
+ metadata?: Record<string, unknown> | null | undefined;
259
+ curr_value?: any;
260
+ prev_value?: any;
261
+ } | {
262
+ created_at: number & {
263
+ __brand: "UnixTimestamp";
264
+ };
265
+ created_by: string | null;
266
+ updated_at: number & {
267
+ __brand: "UnixTimestamp";
268
+ };
269
+ type: "crud";
270
+ action: "create" | "update" | "delete" | "archive" | "restore";
271
+ _id?: string | undefined;
272
+ updated_by?: string | undefined;
273
+ })[];
274
+ has_bench: "unknown" | "available" | "unavailable";
275
+ has_network_map: "unknown" | "available" | "unavailable";
276
+ has_schedules: "unknown" | "available" | "unavailable";
277
+ has_shelter: "unknown" | "available" | "unavailable";
278
+ has_stop_sign: "unknown" | "available" | "unavailable";
279
+ municipality_id: string;
280
+ parish_id: string | null;
281
+ shelter_code: string | null;
282
+ shelter_maintainer: string | null;
283
+ is_deleted: boolean;
284
+ jurisdiction: "unknown" | "ip" | "municipality" | "other";
285
+ legacy_id: string | null;
286
+ lifecycle_status: "draft" | "active" | "inactive" | "provisional" | "seasonal" | "voided";
287
+ new_name: string | null;
288
+ tts_name: string;
289
+ district_id: string;
290
+ locality_id: string | null;
291
+ bench_status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok";
292
+ electricity_status: "unknown" | "available" | "unavailable";
293
+ pole_status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok";
294
+ road_type: "unknown" | "complementary_itinerary" | "highway" | "main_itinerary" | "national_road" | "regional_road" | "secondary_road";
295
+ shelter_frame_size: [number, number] | null;
296
+ shelter_installation_date: import("../index.js").UnixTimestamp | null;
297
+ shelter_make: string | null;
298
+ shelter_model: string | null;
299
+ shelter_status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok";
300
+ last_infrastructure_check: import("../index.js").UnixTimestamp | null;
301
+ last_infrastructure_maintenance: import("../index.js").UnixTimestamp | null;
302
+ last_schedules_check: import("../index.js").UnixTimestamp | null;
303
+ last_schedules_maintenance: import("../index.js").UnixTimestamp | null;
304
+ connections: ("ferry" | "light_rail" | "subway" | "train" | "boat" | "airport" | "bike_sharing" | "bike_parking" | "car_parking")[];
305
+ facilities: ("school" | "fire_station" | "health_clinic" | "historic_building" | "hospital" | "police_station" | "shopping" | "transit_office" | "university" | "beach")[];
306
+ equipment: ("pip" | "mupi" | "mini_pip")[];
307
+ has_mupi: "unknown" | "available" | "unavailable";
308
+ file_ids: string[];
309
+ image_ids: string[];
310
+ observations: string | null;
311
+ updated_by?: string | undefined;
312
+ }, {
313
+ _id: string;
314
+ created_at: number;
315
+ updated_at: number;
316
+ name: string;
317
+ short_name: string;
318
+ latitude: number;
319
+ longitude: number;
320
+ municipality_id: string;
321
+ tts_name: string;
322
+ district_id: string;
323
+ created_by?: string | null | undefined;
324
+ is_locked?: boolean | undefined;
325
+ updated_by?: string | undefined;
326
+ comments?: ({
327
+ created_at: number;
328
+ updated_at: number;
329
+ message: string;
330
+ type: "note";
331
+ _id?: string | undefined;
332
+ created_by?: string | null | undefined;
333
+ updated_by?: string | undefined;
334
+ } | {
335
+ created_at: number;
336
+ updated_at: number;
337
+ type: "field_changed";
338
+ field: string;
339
+ _id?: string | undefined;
340
+ created_by?: string | null | undefined;
341
+ updated_by?: string | undefined;
342
+ metadata?: Record<string, unknown> | null | undefined;
343
+ curr_value?: any;
344
+ prev_value?: any;
345
+ } | {
346
+ created_at: number;
347
+ updated_at: number;
348
+ type: "crud";
349
+ action: "create" | "update" | "delete" | "archive" | "restore";
350
+ _id?: string | undefined;
351
+ created_by?: string | null | undefined;
352
+ updated_by?: string | undefined;
353
+ })[] | undefined;
354
+ has_bench?: "unknown" | "available" | "unavailable" | undefined;
355
+ has_network_map?: "unknown" | "available" | "unavailable" | undefined;
356
+ has_schedules?: "unknown" | "available" | "unavailable" | undefined;
357
+ has_shelter?: "unknown" | "available" | "unavailable" | undefined;
358
+ has_stop_sign?: "unknown" | "available" | "unavailable" | undefined;
359
+ parish_id?: string | null | undefined;
360
+ shelter_code?: string | null | undefined;
361
+ shelter_maintainer?: string | null | undefined;
362
+ is_deleted?: boolean | undefined;
363
+ jurisdiction?: "unknown" | "ip" | "municipality" | "other" | undefined;
364
+ legacy_id?: string | null | undefined;
365
+ lifecycle_status?: "draft" | "active" | "inactive" | "provisional" | "seasonal" | "voided" | undefined;
366
+ new_name?: string | null | undefined;
367
+ locality_id?: string | null | undefined;
368
+ bench_status?: "unknown" | "not_applicable" | "missing" | "damaged" | "ok" | undefined;
369
+ electricity_status?: "unknown" | "available" | "unavailable" | undefined;
370
+ pole_status?: "unknown" | "not_applicable" | "missing" | "damaged" | "ok" | undefined;
371
+ road_type?: "unknown" | "complementary_itinerary" | "highway" | "main_itinerary" | "national_road" | "regional_road" | "secondary_road" | undefined;
372
+ shelter_frame_size?: [number, number] | null | undefined;
373
+ shelter_installation_date?: number | null | undefined;
374
+ shelter_make?: string | null | undefined;
375
+ shelter_model?: string | null | undefined;
376
+ shelter_status?: "unknown" | "not_applicable" | "missing" | "damaged" | "ok" | undefined;
377
+ last_infrastructure_check?: number | null | undefined;
378
+ last_infrastructure_maintenance?: number | null | undefined;
379
+ last_schedules_check?: number | null | undefined;
380
+ last_schedules_maintenance?: number | null | undefined;
381
+ connections?: ("ferry" | "light_rail" | "subway" | "train" | "boat" | "airport" | "bike_sharing" | "bike_parking" | "car_parking")[] | undefined;
382
+ facilities?: ("school" | "fire_station" | "health_clinic" | "historic_building" | "hospital" | "police_station" | "shopping" | "transit_office" | "university" | "beach")[] | undefined;
383
+ equipment?: ("pip" | "mupi" | "mini_pip")[] | undefined;
384
+ has_mupi?: "unknown" | "available" | "unavailable" | undefined;
385
+ file_ids?: string[] | undefined;
386
+ image_ids?: string[] | undefined;
387
+ observations?: string | null | undefined;
388
+ }>>>;
389
+ stop_id: z.ZodString;
390
+ timepoint: z.ZodDefault<z.ZodBoolean>;
391
+ zones: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
392
+ }, "strip", z.ZodTypeAny, {
393
+ _id: string;
394
+ stop_id: string;
395
+ allow_drop_off: boolean;
396
+ allow_pickup: boolean;
397
+ distance_delta: number | null;
398
+ timepoint: boolean;
399
+ zones?: string[] | undefined;
400
+ stop?: {
401
+ _id: string;
402
+ created_at: number & {
403
+ __brand: "UnixTimestamp";
404
+ };
405
+ created_by: string | null;
406
+ is_locked: boolean;
407
+ updated_at: number & {
408
+ __brand: "UnixTimestamp";
409
+ };
410
+ name: string;
411
+ short_name: string;
412
+ latitude: number;
413
+ longitude: number;
414
+ comments: ({
415
+ created_at: number & {
416
+ __brand: "UnixTimestamp";
417
+ };
418
+ created_by: string | null;
419
+ updated_at: number & {
420
+ __brand: "UnixTimestamp";
421
+ };
422
+ message: string;
423
+ type: "note";
424
+ _id?: string | undefined;
425
+ updated_by?: string | undefined;
426
+ } | {
427
+ created_at: number & {
428
+ __brand: "UnixTimestamp";
429
+ };
430
+ created_by: string | null;
431
+ updated_at: number & {
432
+ __brand: "UnixTimestamp";
433
+ };
434
+ type: "field_changed";
435
+ field: string;
436
+ _id?: string | undefined;
437
+ updated_by?: string | undefined;
438
+ metadata?: Record<string, unknown> | null | undefined;
439
+ curr_value?: any;
440
+ prev_value?: any;
441
+ } | {
442
+ created_at: number & {
443
+ __brand: "UnixTimestamp";
444
+ };
445
+ created_by: string | null;
446
+ updated_at: number & {
447
+ __brand: "UnixTimestamp";
448
+ };
449
+ type: "crud";
450
+ action: "create" | "update" | "delete" | "archive" | "restore";
451
+ _id?: string | undefined;
452
+ updated_by?: string | undefined;
453
+ })[];
454
+ has_bench: "unknown" | "available" | "unavailable";
455
+ has_network_map: "unknown" | "available" | "unavailable";
456
+ has_schedules: "unknown" | "available" | "unavailable";
457
+ has_shelter: "unknown" | "available" | "unavailable";
458
+ has_stop_sign: "unknown" | "available" | "unavailable";
459
+ municipality_id: string;
460
+ parish_id: string | null;
461
+ shelter_code: string | null;
462
+ shelter_maintainer: string | null;
463
+ is_deleted: boolean;
464
+ jurisdiction: "unknown" | "ip" | "municipality" | "other";
465
+ legacy_id: string | null;
466
+ lifecycle_status: "draft" | "active" | "inactive" | "provisional" | "seasonal" | "voided";
467
+ new_name: string | null;
468
+ tts_name: string;
469
+ district_id: string;
470
+ locality_id: string | null;
471
+ bench_status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok";
472
+ electricity_status: "unknown" | "available" | "unavailable";
473
+ pole_status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok";
474
+ road_type: "unknown" | "complementary_itinerary" | "highway" | "main_itinerary" | "national_road" | "regional_road" | "secondary_road";
475
+ shelter_frame_size: [number, number] | null;
476
+ shelter_installation_date: import("../index.js").UnixTimestamp | null;
477
+ shelter_make: string | null;
478
+ shelter_model: string | null;
479
+ shelter_status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok";
480
+ last_infrastructure_check: import("../index.js").UnixTimestamp | null;
481
+ last_infrastructure_maintenance: import("../index.js").UnixTimestamp | null;
482
+ last_schedules_check: import("../index.js").UnixTimestamp | null;
483
+ last_schedules_maintenance: import("../index.js").UnixTimestamp | null;
484
+ connections: ("ferry" | "light_rail" | "subway" | "train" | "boat" | "airport" | "bike_sharing" | "bike_parking" | "car_parking")[];
485
+ facilities: ("school" | "fire_station" | "health_clinic" | "historic_building" | "hospital" | "police_station" | "shopping" | "transit_office" | "university" | "beach")[];
486
+ equipment: ("pip" | "mupi" | "mini_pip")[];
487
+ has_mupi: "unknown" | "available" | "unavailable";
488
+ file_ids: string[];
489
+ image_ids: string[];
490
+ observations: string | null;
491
+ updated_by?: string | undefined;
492
+ } | null | undefined;
493
+ }, {
494
+ _id: string;
495
+ stop_id: string;
496
+ zones?: string[] | undefined;
497
+ allow_drop_off?: boolean | undefined;
498
+ allow_pickup?: boolean | undefined;
499
+ distance_delta?: number | null | undefined;
500
+ stop?: {
501
+ _id: string;
502
+ created_at: number;
503
+ updated_at: number;
504
+ name: string;
505
+ short_name: string;
506
+ latitude: number;
507
+ longitude: number;
508
+ municipality_id: string;
509
+ tts_name: string;
510
+ district_id: string;
511
+ created_by?: string | null | undefined;
512
+ is_locked?: boolean | undefined;
513
+ updated_by?: string | undefined;
514
+ comments?: ({
515
+ created_at: number;
516
+ updated_at: number;
517
+ message: string;
518
+ type: "note";
519
+ _id?: string | undefined;
520
+ created_by?: string | null | undefined;
521
+ updated_by?: string | undefined;
522
+ } | {
523
+ created_at: number;
524
+ updated_at: number;
525
+ type: "field_changed";
526
+ field: string;
527
+ _id?: string | undefined;
528
+ created_by?: string | null | undefined;
529
+ updated_by?: string | undefined;
530
+ metadata?: Record<string, unknown> | null | undefined;
531
+ curr_value?: any;
532
+ prev_value?: any;
533
+ } | {
534
+ created_at: number;
535
+ updated_at: number;
536
+ type: "crud";
537
+ action: "create" | "update" | "delete" | "archive" | "restore";
538
+ _id?: string | undefined;
539
+ created_by?: string | null | undefined;
540
+ updated_by?: string | undefined;
541
+ })[] | undefined;
542
+ has_bench?: "unknown" | "available" | "unavailable" | undefined;
543
+ has_network_map?: "unknown" | "available" | "unavailable" | undefined;
544
+ has_schedules?: "unknown" | "available" | "unavailable" | undefined;
545
+ has_shelter?: "unknown" | "available" | "unavailable" | undefined;
546
+ has_stop_sign?: "unknown" | "available" | "unavailable" | undefined;
547
+ parish_id?: string | null | undefined;
548
+ shelter_code?: string | null | undefined;
549
+ shelter_maintainer?: string | null | undefined;
550
+ is_deleted?: boolean | undefined;
551
+ jurisdiction?: "unknown" | "ip" | "municipality" | "other" | undefined;
552
+ legacy_id?: string | null | undefined;
553
+ lifecycle_status?: "draft" | "active" | "inactive" | "provisional" | "seasonal" | "voided" | undefined;
554
+ new_name?: string | null | undefined;
555
+ locality_id?: string | null | undefined;
556
+ bench_status?: "unknown" | "not_applicable" | "missing" | "damaged" | "ok" | undefined;
557
+ electricity_status?: "unknown" | "available" | "unavailable" | undefined;
558
+ pole_status?: "unknown" | "not_applicable" | "missing" | "damaged" | "ok" | undefined;
559
+ road_type?: "unknown" | "complementary_itinerary" | "highway" | "main_itinerary" | "national_road" | "regional_road" | "secondary_road" | undefined;
560
+ shelter_frame_size?: [number, number] | null | undefined;
561
+ shelter_installation_date?: number | null | undefined;
562
+ shelter_make?: string | null | undefined;
563
+ shelter_model?: string | null | undefined;
564
+ shelter_status?: "unknown" | "not_applicable" | "missing" | "damaged" | "ok" | undefined;
565
+ last_infrastructure_check?: number | null | undefined;
566
+ last_infrastructure_maintenance?: number | null | undefined;
567
+ last_schedules_check?: number | null | undefined;
568
+ last_schedules_maintenance?: number | null | undefined;
569
+ connections?: ("ferry" | "light_rail" | "subway" | "train" | "boat" | "airport" | "bike_sharing" | "bike_parking" | "car_parking")[] | undefined;
570
+ facilities?: ("school" | "fire_station" | "health_clinic" | "historic_building" | "hospital" | "police_station" | "shopping" | "transit_office" | "university" | "beach")[] | undefined;
571
+ equipment?: ("pip" | "mupi" | "mini_pip")[] | undefined;
572
+ has_mupi?: "unknown" | "available" | "unavailable" | undefined;
573
+ file_ids?: string[] | undefined;
574
+ image_ids?: string[] | undefined;
575
+ observations?: string | null | undefined;
576
+ } | null | undefined;
577
+ timepoint?: boolean | undefined;
578
+ }>;
579
+ export declare const PatternSchema: z.ZodObject<{
580
+ _id: z.ZodString;
581
+ created_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
582
+ created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
583
+ updated_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
584
+ updated_by: z.ZodOptional<z.ZodString>;
585
+ } & {
586
+ code: z.ZodString;
587
+ destination: z.ZodString;
588
+ direction: z.ZodDefault<z.ZodEnum<["0", "1"]>>;
589
+ headsign: z.ZodString;
590
+ is_locked: z.ZodDefault<z.ZodBoolean>;
591
+ line_id: z.ZodString;
592
+ origin: z.ZodString;
593
+ path: z.ZodOptional<z.ZodArray<z.ZodObject<{
594
+ _id: z.ZodString;
595
+ allow_drop_off: z.ZodDefault<z.ZodBoolean>;
596
+ allow_pickup: z.ZodDefault<z.ZodBoolean>;
597
+ distance_delta: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
598
+ stop: z.ZodOptional<z.ZodNullable<z.ZodObject<{
599
+ created_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
600
+ created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
601
+ is_locked: z.ZodDefault<z.ZodBoolean>;
602
+ updated_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
603
+ updated_by: z.ZodOptional<z.ZodString>;
604
+ } & {
605
+ _id: z.ZodString;
606
+ is_deleted: z.ZodDefault<z.ZodBoolean>;
607
+ jurisdiction: z.ZodDefault<z.ZodEnum<["ip", "municipality", "other", "unknown"]>>;
608
+ legacy_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
609
+ lifecycle_status: z.ZodDefault<z.ZodEnum<["draft", "active", "inactive", "provisional", "seasonal", "voided"]>>;
610
+ name: z.ZodString;
611
+ new_name: z.ZodDefault<z.ZodNullable<z.ZodString>>;
612
+ short_name: z.ZodString;
613
+ tts_name: z.ZodString;
614
+ district_id: z.ZodString;
615
+ latitude: z.ZodNumber;
616
+ locality_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
617
+ longitude: z.ZodNumber;
618
+ municipality_id: z.ZodString;
619
+ parish_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
620
+ bench_status: z.ZodDefault<z.ZodEnum<["not_applicable", "unknown", "missing", "damaged", "ok"]>>;
621
+ electricity_status: z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>;
622
+ pole_status: z.ZodDefault<z.ZodEnum<["not_applicable", "unknown", "missing", "damaged", "ok"]>>;
623
+ road_type: z.ZodDefault<z.ZodEnum<["complementary_itinerary", "highway", "main_itinerary", "national_road", "regional_road", "secondary_road", "unknown"]>>;
624
+ shelter_code: z.ZodDefault<z.ZodNullable<z.ZodString>>;
625
+ shelter_frame_size: z.ZodDefault<z.ZodNullable<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
626
+ shelter_installation_date: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>>>;
627
+ shelter_maintainer: z.ZodDefault<z.ZodNullable<z.ZodString>>;
628
+ shelter_make: z.ZodDefault<z.ZodNullable<z.ZodString>>;
629
+ shelter_model: z.ZodDefault<z.ZodNullable<z.ZodString>>;
630
+ shelter_status: z.ZodDefault<z.ZodEnum<["not_applicable", "unknown", "missing", "damaged", "ok"]>>;
631
+ last_infrastructure_check: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>>>;
632
+ last_infrastructure_maintenance: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>>>;
633
+ last_schedules_check: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>>>;
634
+ last_schedules_maintenance: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>>>;
635
+ connections: z.ZodDefault<z.ZodArray<z.ZodEnum<["ferry", "light_rail", "subway", "train", "boat", "airport", "bike_sharing", "bike_parking", "car_parking"]>, "many">>;
636
+ facilities: z.ZodDefault<z.ZodArray<z.ZodEnum<["fire_station", "health_clinic", "historic_building", "hospital", "police_station", "school", "shopping", "transit_office", "university", "beach"]>, "many">>;
637
+ equipment: z.ZodDefault<z.ZodArray<z.ZodEnum<["pip", "mupi", "mini_pip"]>, "many">>;
638
+ has_bench: z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>;
639
+ has_mupi: z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>;
640
+ has_network_map: z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>;
641
+ has_schedules: z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>;
642
+ has_shelter: z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>;
643
+ has_stop_sign: z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>;
644
+ file_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
645
+ image_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
646
+ comments: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
647
+ _id: z.ZodOptional<z.ZodString>;
648
+ created_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
649
+ created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
650
+ updated_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
651
+ updated_by: z.ZodOptional<z.ZodString>;
652
+ message: z.ZodString;
653
+ type: z.ZodLiteral<"note">;
654
+ }, "strip", z.ZodTypeAny, {
655
+ created_at: number & {
656
+ __brand: "UnixTimestamp";
657
+ };
658
+ created_by: string | null;
659
+ updated_at: number & {
660
+ __brand: "UnixTimestamp";
661
+ };
662
+ message: string;
663
+ type: "note";
664
+ _id?: string | undefined;
665
+ updated_by?: string | undefined;
666
+ }, {
667
+ created_at: number;
668
+ updated_at: number;
669
+ message: string;
670
+ type: "note";
671
+ _id?: string | undefined;
672
+ created_by?: string | null | undefined;
673
+ updated_by?: string | undefined;
674
+ }>, z.ZodObject<{
675
+ _id: z.ZodOptional<z.ZodString>;
676
+ created_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
677
+ created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
678
+ updated_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
679
+ updated_by: z.ZodOptional<z.ZodString>;
680
+ type: z.ZodLiteral<"field_changed">;
681
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
682
+ curr_value: z.ZodAny;
683
+ field: z.ZodString;
684
+ prev_value: z.ZodAny;
685
+ }, "strip", z.ZodTypeAny, {
686
+ created_at: number & {
687
+ __brand: "UnixTimestamp";
688
+ };
689
+ created_by: string | null;
690
+ updated_at: number & {
691
+ __brand: "UnixTimestamp";
692
+ };
693
+ type: "field_changed";
694
+ field: string;
695
+ _id?: string | undefined;
696
+ updated_by?: string | undefined;
697
+ metadata?: Record<string, unknown> | null | undefined;
698
+ curr_value?: any;
699
+ prev_value?: any;
700
+ }, {
701
+ created_at: number;
702
+ updated_at: number;
703
+ type: "field_changed";
704
+ field: string;
705
+ _id?: string | undefined;
706
+ created_by?: string | null | undefined;
707
+ updated_by?: string | undefined;
708
+ metadata?: Record<string, unknown> | null | undefined;
709
+ curr_value?: any;
710
+ prev_value?: any;
711
+ }>, z.ZodObject<{
712
+ _id: z.ZodOptional<z.ZodString>;
713
+ created_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
714
+ created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
715
+ updated_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
716
+ updated_by: z.ZodOptional<z.ZodString>;
717
+ type: z.ZodLiteral<"crud">;
718
+ action: z.ZodEnum<["create", "update", "delete", "archive", "restore"]>;
719
+ }, "strip", z.ZodTypeAny, {
720
+ created_at: number & {
721
+ __brand: "UnixTimestamp";
722
+ };
723
+ created_by: string | null;
724
+ updated_at: number & {
725
+ __brand: "UnixTimestamp";
726
+ };
727
+ type: "crud";
728
+ action: "create" | "update" | "delete" | "archive" | "restore";
729
+ _id?: string | undefined;
730
+ updated_by?: string | undefined;
731
+ }, {
732
+ created_at: number;
733
+ updated_at: number;
734
+ type: "crud";
735
+ action: "create" | "update" | "delete" | "archive" | "restore";
736
+ _id?: string | undefined;
737
+ created_by?: string | null | undefined;
738
+ updated_by?: string | undefined;
739
+ }>]>, {
740
+ created_at: number & {
741
+ __brand: "UnixTimestamp";
742
+ };
743
+ created_by: string | null;
744
+ updated_at: number & {
745
+ __brand: "UnixTimestamp";
746
+ };
747
+ message: string;
748
+ type: "note";
749
+ _id?: string | undefined;
750
+ updated_by?: string | undefined;
751
+ } | {
752
+ created_at: number & {
753
+ __brand: "UnixTimestamp";
754
+ };
755
+ created_by: string | null;
756
+ updated_at: number & {
757
+ __brand: "UnixTimestamp";
758
+ };
759
+ type: "field_changed";
760
+ field: string;
761
+ _id?: string | undefined;
762
+ updated_by?: string | undefined;
763
+ metadata?: Record<string, unknown> | null | undefined;
764
+ curr_value?: any;
765
+ prev_value?: any;
766
+ } | {
767
+ created_at: number & {
768
+ __brand: "UnixTimestamp";
769
+ };
770
+ created_by: string | null;
771
+ updated_at: number & {
772
+ __brand: "UnixTimestamp";
773
+ };
774
+ type: "crud";
775
+ action: "create" | "update" | "delete" | "archive" | "restore";
776
+ _id?: string | undefined;
777
+ updated_by?: string | undefined;
778
+ }, {
779
+ created_at: number;
780
+ updated_at: number;
781
+ message: string;
782
+ type: "note";
783
+ _id?: string | undefined;
784
+ created_by?: string | null | undefined;
785
+ updated_by?: string | undefined;
786
+ } | {
787
+ created_at: number;
788
+ updated_at: number;
789
+ type: "field_changed";
790
+ field: string;
791
+ _id?: string | undefined;
792
+ created_by?: string | null | undefined;
793
+ updated_by?: string | undefined;
794
+ metadata?: Record<string, unknown> | null | undefined;
795
+ curr_value?: any;
796
+ prev_value?: any;
797
+ } | {
798
+ created_at: number;
799
+ updated_at: number;
800
+ type: "crud";
801
+ action: "create" | "update" | "delete" | "archive" | "restore";
802
+ _id?: string | undefined;
803
+ created_by?: string | null | undefined;
804
+ updated_by?: string | undefined;
805
+ }>, "many">>;
806
+ observations: z.ZodDefault<z.ZodNullable<z.ZodString>>;
807
+ }, "strip", z.ZodTypeAny, {
808
+ _id: string;
809
+ created_at: number & {
810
+ __brand: "UnixTimestamp";
811
+ };
812
+ created_by: string | null;
813
+ is_locked: boolean;
814
+ updated_at: number & {
815
+ __brand: "UnixTimestamp";
816
+ };
817
+ name: string;
818
+ short_name: string;
819
+ latitude: number;
820
+ longitude: number;
821
+ comments: ({
822
+ created_at: number & {
823
+ __brand: "UnixTimestamp";
824
+ };
825
+ created_by: string | null;
826
+ updated_at: number & {
827
+ __brand: "UnixTimestamp";
828
+ };
829
+ message: string;
830
+ type: "note";
831
+ _id?: string | undefined;
832
+ updated_by?: string | undefined;
833
+ } | {
834
+ created_at: number & {
835
+ __brand: "UnixTimestamp";
836
+ };
837
+ created_by: string | null;
838
+ updated_at: number & {
839
+ __brand: "UnixTimestamp";
840
+ };
841
+ type: "field_changed";
842
+ field: string;
843
+ _id?: string | undefined;
844
+ updated_by?: string | undefined;
845
+ metadata?: Record<string, unknown> | null | undefined;
846
+ curr_value?: any;
847
+ prev_value?: any;
848
+ } | {
849
+ created_at: number & {
850
+ __brand: "UnixTimestamp";
851
+ };
852
+ created_by: string | null;
853
+ updated_at: number & {
854
+ __brand: "UnixTimestamp";
855
+ };
856
+ type: "crud";
857
+ action: "create" | "update" | "delete" | "archive" | "restore";
858
+ _id?: string | undefined;
859
+ updated_by?: string | undefined;
860
+ })[];
861
+ has_bench: "unknown" | "available" | "unavailable";
862
+ has_network_map: "unknown" | "available" | "unavailable";
863
+ has_schedules: "unknown" | "available" | "unavailable";
864
+ has_shelter: "unknown" | "available" | "unavailable";
865
+ has_stop_sign: "unknown" | "available" | "unavailable";
866
+ municipality_id: string;
867
+ parish_id: string | null;
868
+ shelter_code: string | null;
869
+ shelter_maintainer: string | null;
870
+ is_deleted: boolean;
871
+ jurisdiction: "unknown" | "ip" | "municipality" | "other";
872
+ legacy_id: string | null;
873
+ lifecycle_status: "draft" | "active" | "inactive" | "provisional" | "seasonal" | "voided";
874
+ new_name: string | null;
875
+ tts_name: string;
876
+ district_id: string;
877
+ locality_id: string | null;
878
+ bench_status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok";
879
+ electricity_status: "unknown" | "available" | "unavailable";
880
+ pole_status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok";
881
+ road_type: "unknown" | "complementary_itinerary" | "highway" | "main_itinerary" | "national_road" | "regional_road" | "secondary_road";
882
+ shelter_frame_size: [number, number] | null;
883
+ shelter_installation_date: import("../index.js").UnixTimestamp | null;
884
+ shelter_make: string | null;
885
+ shelter_model: string | null;
886
+ shelter_status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok";
887
+ last_infrastructure_check: import("../index.js").UnixTimestamp | null;
888
+ last_infrastructure_maintenance: import("../index.js").UnixTimestamp | null;
889
+ last_schedules_check: import("../index.js").UnixTimestamp | null;
890
+ last_schedules_maintenance: import("../index.js").UnixTimestamp | null;
891
+ connections: ("ferry" | "light_rail" | "subway" | "train" | "boat" | "airport" | "bike_sharing" | "bike_parking" | "car_parking")[];
892
+ facilities: ("school" | "fire_station" | "health_clinic" | "historic_building" | "hospital" | "police_station" | "shopping" | "transit_office" | "university" | "beach")[];
893
+ equipment: ("pip" | "mupi" | "mini_pip")[];
894
+ has_mupi: "unknown" | "available" | "unavailable";
895
+ file_ids: string[];
896
+ image_ids: string[];
897
+ observations: string | null;
898
+ updated_by?: string | undefined;
899
+ }, {
900
+ _id: string;
901
+ created_at: number;
902
+ updated_at: number;
903
+ name: string;
904
+ short_name: string;
905
+ latitude: number;
906
+ longitude: number;
907
+ municipality_id: string;
908
+ tts_name: string;
909
+ district_id: string;
910
+ created_by?: string | null | undefined;
911
+ is_locked?: boolean | undefined;
912
+ updated_by?: string | undefined;
913
+ comments?: ({
914
+ created_at: number;
915
+ updated_at: number;
916
+ message: string;
917
+ type: "note";
918
+ _id?: string | undefined;
919
+ created_by?: string | null | undefined;
920
+ updated_by?: string | undefined;
921
+ } | {
922
+ created_at: number;
923
+ updated_at: number;
924
+ type: "field_changed";
925
+ field: string;
926
+ _id?: string | undefined;
927
+ created_by?: string | null | undefined;
928
+ updated_by?: string | undefined;
929
+ metadata?: Record<string, unknown> | null | undefined;
930
+ curr_value?: any;
931
+ prev_value?: any;
932
+ } | {
933
+ created_at: number;
934
+ updated_at: number;
935
+ type: "crud";
936
+ action: "create" | "update" | "delete" | "archive" | "restore";
937
+ _id?: string | undefined;
938
+ created_by?: string | null | undefined;
939
+ updated_by?: string | undefined;
940
+ })[] | undefined;
941
+ has_bench?: "unknown" | "available" | "unavailable" | undefined;
942
+ has_network_map?: "unknown" | "available" | "unavailable" | undefined;
943
+ has_schedules?: "unknown" | "available" | "unavailable" | undefined;
944
+ has_shelter?: "unknown" | "available" | "unavailable" | undefined;
945
+ has_stop_sign?: "unknown" | "available" | "unavailable" | undefined;
946
+ parish_id?: string | null | undefined;
947
+ shelter_code?: string | null | undefined;
948
+ shelter_maintainer?: string | null | undefined;
949
+ is_deleted?: boolean | undefined;
950
+ jurisdiction?: "unknown" | "ip" | "municipality" | "other" | undefined;
951
+ legacy_id?: string | null | undefined;
952
+ lifecycle_status?: "draft" | "active" | "inactive" | "provisional" | "seasonal" | "voided" | undefined;
953
+ new_name?: string | null | undefined;
954
+ locality_id?: string | null | undefined;
955
+ bench_status?: "unknown" | "not_applicable" | "missing" | "damaged" | "ok" | undefined;
956
+ electricity_status?: "unknown" | "available" | "unavailable" | undefined;
957
+ pole_status?: "unknown" | "not_applicable" | "missing" | "damaged" | "ok" | undefined;
958
+ road_type?: "unknown" | "complementary_itinerary" | "highway" | "main_itinerary" | "national_road" | "regional_road" | "secondary_road" | undefined;
959
+ shelter_frame_size?: [number, number] | null | undefined;
960
+ shelter_installation_date?: number | null | undefined;
961
+ shelter_make?: string | null | undefined;
962
+ shelter_model?: string | null | undefined;
963
+ shelter_status?: "unknown" | "not_applicable" | "missing" | "damaged" | "ok" | undefined;
964
+ last_infrastructure_check?: number | null | undefined;
965
+ last_infrastructure_maintenance?: number | null | undefined;
966
+ last_schedules_check?: number | null | undefined;
967
+ last_schedules_maintenance?: number | null | undefined;
968
+ connections?: ("ferry" | "light_rail" | "subway" | "train" | "boat" | "airport" | "bike_sharing" | "bike_parking" | "car_parking")[] | undefined;
969
+ facilities?: ("school" | "fire_station" | "health_clinic" | "historic_building" | "hospital" | "police_station" | "shopping" | "transit_office" | "university" | "beach")[] | undefined;
970
+ equipment?: ("pip" | "mupi" | "mini_pip")[] | undefined;
971
+ has_mupi?: "unknown" | "available" | "unavailable" | undefined;
972
+ file_ids?: string[] | undefined;
973
+ image_ids?: string[] | undefined;
974
+ observations?: string | null | undefined;
975
+ }>>>;
976
+ stop_id: z.ZodString;
977
+ timepoint: z.ZodDefault<z.ZodBoolean>;
978
+ zones: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
979
+ }, "strip", z.ZodTypeAny, {
980
+ _id: string;
981
+ stop_id: string;
982
+ allow_drop_off: boolean;
983
+ allow_pickup: boolean;
984
+ distance_delta: number | null;
985
+ timepoint: boolean;
986
+ zones?: string[] | undefined;
987
+ stop?: {
988
+ _id: string;
989
+ created_at: number & {
990
+ __brand: "UnixTimestamp";
991
+ };
992
+ created_by: string | null;
993
+ is_locked: boolean;
994
+ updated_at: number & {
995
+ __brand: "UnixTimestamp";
996
+ };
997
+ name: string;
998
+ short_name: string;
999
+ latitude: number;
1000
+ longitude: number;
1001
+ comments: ({
1002
+ created_at: number & {
1003
+ __brand: "UnixTimestamp";
1004
+ };
1005
+ created_by: string | null;
1006
+ updated_at: number & {
1007
+ __brand: "UnixTimestamp";
1008
+ };
1009
+ message: string;
1010
+ type: "note";
1011
+ _id?: string | undefined;
1012
+ updated_by?: string | undefined;
1013
+ } | {
1014
+ created_at: number & {
1015
+ __brand: "UnixTimestamp";
1016
+ };
1017
+ created_by: string | null;
1018
+ updated_at: number & {
1019
+ __brand: "UnixTimestamp";
1020
+ };
1021
+ type: "field_changed";
1022
+ field: string;
1023
+ _id?: string | undefined;
1024
+ updated_by?: string | undefined;
1025
+ metadata?: Record<string, unknown> | null | undefined;
1026
+ curr_value?: any;
1027
+ prev_value?: any;
1028
+ } | {
1029
+ created_at: number & {
1030
+ __brand: "UnixTimestamp";
1031
+ };
1032
+ created_by: string | null;
1033
+ updated_at: number & {
1034
+ __brand: "UnixTimestamp";
1035
+ };
1036
+ type: "crud";
1037
+ action: "create" | "update" | "delete" | "archive" | "restore";
1038
+ _id?: string | undefined;
1039
+ updated_by?: string | undefined;
1040
+ })[];
1041
+ has_bench: "unknown" | "available" | "unavailable";
1042
+ has_network_map: "unknown" | "available" | "unavailable";
1043
+ has_schedules: "unknown" | "available" | "unavailable";
1044
+ has_shelter: "unknown" | "available" | "unavailable";
1045
+ has_stop_sign: "unknown" | "available" | "unavailable";
1046
+ municipality_id: string;
1047
+ parish_id: string | null;
1048
+ shelter_code: string | null;
1049
+ shelter_maintainer: string | null;
1050
+ is_deleted: boolean;
1051
+ jurisdiction: "unknown" | "ip" | "municipality" | "other";
1052
+ legacy_id: string | null;
1053
+ lifecycle_status: "draft" | "active" | "inactive" | "provisional" | "seasonal" | "voided";
1054
+ new_name: string | null;
1055
+ tts_name: string;
1056
+ district_id: string;
1057
+ locality_id: string | null;
1058
+ bench_status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok";
1059
+ electricity_status: "unknown" | "available" | "unavailable";
1060
+ pole_status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok";
1061
+ road_type: "unknown" | "complementary_itinerary" | "highway" | "main_itinerary" | "national_road" | "regional_road" | "secondary_road";
1062
+ shelter_frame_size: [number, number] | null;
1063
+ shelter_installation_date: import("../index.js").UnixTimestamp | null;
1064
+ shelter_make: string | null;
1065
+ shelter_model: string | null;
1066
+ shelter_status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok";
1067
+ last_infrastructure_check: import("../index.js").UnixTimestamp | null;
1068
+ last_infrastructure_maintenance: import("../index.js").UnixTimestamp | null;
1069
+ last_schedules_check: import("../index.js").UnixTimestamp | null;
1070
+ last_schedules_maintenance: import("../index.js").UnixTimestamp | null;
1071
+ connections: ("ferry" | "light_rail" | "subway" | "train" | "boat" | "airport" | "bike_sharing" | "bike_parking" | "car_parking")[];
1072
+ facilities: ("school" | "fire_station" | "health_clinic" | "historic_building" | "hospital" | "police_station" | "shopping" | "transit_office" | "university" | "beach")[];
1073
+ equipment: ("pip" | "mupi" | "mini_pip")[];
1074
+ has_mupi: "unknown" | "available" | "unavailable";
1075
+ file_ids: string[];
1076
+ image_ids: string[];
1077
+ observations: string | null;
1078
+ updated_by?: string | undefined;
1079
+ } | null | undefined;
1080
+ }, {
1081
+ _id: string;
1082
+ stop_id: string;
1083
+ zones?: string[] | undefined;
1084
+ allow_drop_off?: boolean | undefined;
1085
+ allow_pickup?: boolean | undefined;
1086
+ distance_delta?: number | null | undefined;
1087
+ stop?: {
1088
+ _id: string;
1089
+ created_at: number;
1090
+ updated_at: number;
1091
+ name: string;
1092
+ short_name: string;
1093
+ latitude: number;
1094
+ longitude: number;
1095
+ municipality_id: string;
1096
+ tts_name: string;
1097
+ district_id: string;
1098
+ created_by?: string | null | undefined;
1099
+ is_locked?: boolean | undefined;
1100
+ updated_by?: string | undefined;
1101
+ comments?: ({
1102
+ created_at: number;
1103
+ updated_at: number;
1104
+ message: string;
1105
+ type: "note";
1106
+ _id?: string | undefined;
1107
+ created_by?: string | null | undefined;
1108
+ updated_by?: string | undefined;
1109
+ } | {
1110
+ created_at: number;
1111
+ updated_at: number;
1112
+ type: "field_changed";
1113
+ field: string;
1114
+ _id?: string | undefined;
1115
+ created_by?: string | null | undefined;
1116
+ updated_by?: string | undefined;
1117
+ metadata?: Record<string, unknown> | null | undefined;
1118
+ curr_value?: any;
1119
+ prev_value?: any;
1120
+ } | {
1121
+ created_at: number;
1122
+ updated_at: number;
1123
+ type: "crud";
1124
+ action: "create" | "update" | "delete" | "archive" | "restore";
1125
+ _id?: string | undefined;
1126
+ created_by?: string | null | undefined;
1127
+ updated_by?: string | undefined;
1128
+ })[] | undefined;
1129
+ has_bench?: "unknown" | "available" | "unavailable" | undefined;
1130
+ has_network_map?: "unknown" | "available" | "unavailable" | undefined;
1131
+ has_schedules?: "unknown" | "available" | "unavailable" | undefined;
1132
+ has_shelter?: "unknown" | "available" | "unavailable" | undefined;
1133
+ has_stop_sign?: "unknown" | "available" | "unavailable" | undefined;
1134
+ parish_id?: string | null | undefined;
1135
+ shelter_code?: string | null | undefined;
1136
+ shelter_maintainer?: string | null | undefined;
1137
+ is_deleted?: boolean | undefined;
1138
+ jurisdiction?: "unknown" | "ip" | "municipality" | "other" | undefined;
1139
+ legacy_id?: string | null | undefined;
1140
+ lifecycle_status?: "draft" | "active" | "inactive" | "provisional" | "seasonal" | "voided" | undefined;
1141
+ new_name?: string | null | undefined;
1142
+ locality_id?: string | null | undefined;
1143
+ bench_status?: "unknown" | "not_applicable" | "missing" | "damaged" | "ok" | undefined;
1144
+ electricity_status?: "unknown" | "available" | "unavailable" | undefined;
1145
+ pole_status?: "unknown" | "not_applicable" | "missing" | "damaged" | "ok" | undefined;
1146
+ road_type?: "unknown" | "complementary_itinerary" | "highway" | "main_itinerary" | "national_road" | "regional_road" | "secondary_road" | undefined;
1147
+ shelter_frame_size?: [number, number] | null | undefined;
1148
+ shelter_installation_date?: number | null | undefined;
1149
+ shelter_make?: string | null | undefined;
1150
+ shelter_model?: string | null | undefined;
1151
+ shelter_status?: "unknown" | "not_applicable" | "missing" | "damaged" | "ok" | undefined;
1152
+ last_infrastructure_check?: number | null | undefined;
1153
+ last_infrastructure_maintenance?: number | null | undefined;
1154
+ last_schedules_check?: number | null | undefined;
1155
+ last_schedules_maintenance?: number | null | undefined;
1156
+ connections?: ("ferry" | "light_rail" | "subway" | "train" | "boat" | "airport" | "bike_sharing" | "bike_parking" | "car_parking")[] | undefined;
1157
+ facilities?: ("school" | "fire_station" | "health_clinic" | "historic_building" | "hospital" | "police_station" | "shopping" | "transit_office" | "university" | "beach")[] | undefined;
1158
+ equipment?: ("pip" | "mupi" | "mini_pip")[] | undefined;
1159
+ has_mupi?: "unknown" | "available" | "unavailable" | undefined;
1160
+ file_ids?: string[] | undefined;
1161
+ image_ids?: string[] | undefined;
1162
+ observations?: string | null | undefined;
1163
+ } | null | undefined;
1164
+ timepoint?: boolean | undefined;
1165
+ }>, "many">>;
1166
+ presets: z.ZodOptional<z.ZodObject<{
1167
+ dwell_time: z.ZodDefault<z.ZodNumber>;
1168
+ velocity: z.ZodDefault<z.ZodNumber>;
1169
+ }, "strip", z.ZodTypeAny, {
1170
+ dwell_time: number;
1171
+ velocity: number;
1172
+ }, {
1173
+ dwell_time?: number | undefined;
1174
+ velocity?: number | undefined;
1175
+ }>>;
1176
+ route_id: z.ZodString;
1177
+ rules: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
1178
+ _id: z.ZodOptional<z.ZodString>;
1179
+ name: z.ZodOptional<z.ZodString>;
1180
+ operatingMode: z.ZodNativeEnum<typeof import("./scheduleRule.js").OPERATING_MODE>;
1181
+ periodIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1182
+ weekdays: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<{
1183
+ readonly Fri: 5;
1184
+ readonly Mon: 1;
1185
+ readonly Sat: 6;
1186
+ readonly Sun: 7;
1187
+ readonly Thu: 4;
1188
+ readonly Tue: 2;
1189
+ readonly Wed: 3;
1190
+ }>, "many">>;
1191
+ holidays: z.ZodOptional<z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
1192
+ mode: z.ZodLiteral<"ignore">;
1193
+ }, "strip", z.ZodTypeAny, {
1194
+ mode: "ignore";
1195
+ }, {
1196
+ mode: "ignore";
1197
+ }>, z.ZodObject<{
1198
+ mode: z.ZodLiteral<"all">;
1199
+ }, "strip", z.ZodTypeAny, {
1200
+ mode: "all";
1201
+ }, {
1202
+ mode: "all";
1203
+ }>, z.ZodObject<{
1204
+ ids: z.ZodArray<z.ZodString, "many">;
1205
+ mode: z.ZodLiteral<"specific">;
1206
+ }, "strip", z.ZodTypeAny, {
1207
+ mode: "specific";
1208
+ ids: string[];
1209
+ }, {
1210
+ mode: "specific";
1211
+ ids: string[];
1212
+ }>]>>;
1213
+ events: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1214
+ travelTime: z.ZodOptional<z.ZodString>;
1215
+ timePoints: z.ZodArray<z.ZodString, "many">;
1216
+ }, "strip", z.ZodTypeAny, {
1217
+ operatingMode: import("./scheduleRule.js").OPERATING_MODE;
1218
+ timePoints: string[];
1219
+ _id?: string | undefined;
1220
+ name?: string | undefined;
1221
+ periodIds?: string[] | undefined;
1222
+ weekdays?: (1 | 2 | 3 | 5 | 4 | 6 | 7)[] | undefined;
1223
+ holidays?: {
1224
+ mode: "ignore";
1225
+ } | {
1226
+ mode: "all";
1227
+ } | {
1228
+ mode: "specific";
1229
+ ids: string[];
1230
+ } | undefined;
1231
+ events?: string[] | undefined;
1232
+ travelTime?: string | undefined;
1233
+ }, {
1234
+ operatingMode: import("./scheduleRule.js").OPERATING_MODE;
1235
+ timePoints: string[];
1236
+ _id?: string | undefined;
1237
+ name?: string | undefined;
1238
+ periodIds?: string[] | undefined;
1239
+ weekdays?: (1 | 2 | 3 | 5 | 4 | 6 | 7)[] | undefined;
1240
+ holidays?: {
1241
+ mode: "ignore";
1242
+ } | {
1243
+ mode: "all";
1244
+ } | {
1245
+ mode: "specific";
1246
+ ids: string[];
1247
+ } | undefined;
1248
+ events?: string[] | undefined;
1249
+ travelTime?: string | undefined;
1250
+ }>, "many">>>;
1251
+ shape: z.ZodOptional<z.ZodObject<{
1252
+ extension: z.ZodNumber;
1253
+ geojson: z.ZodObject<{
1254
+ geometry: z.ZodObject<{
1255
+ coordinates: z.ZodArray<z.ZodArray<z.ZodNumber, "many">, "many">;
1256
+ type: z.ZodDefault<z.ZodString>;
1257
+ }, "strip", z.ZodTypeAny, {
1258
+ type: string;
1259
+ coordinates: number[][];
1260
+ }, {
1261
+ coordinates: number[][];
1262
+ type?: string | undefined;
1263
+ }>;
1264
+ properties: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
1265
+ type: z.ZodDefault<z.ZodString>;
1266
+ }, "strip", z.ZodTypeAny, {
1267
+ type: string;
1268
+ geometry: {
1269
+ type: string;
1270
+ coordinates: number[][];
1271
+ };
1272
+ properties?: {} | undefined;
1273
+ }, {
1274
+ geometry: {
1275
+ coordinates: number[][];
1276
+ type?: string | undefined;
1277
+ };
1278
+ type?: string | undefined;
1279
+ properties?: {} | undefined;
1280
+ }>;
1281
+ }, "strip", z.ZodTypeAny, {
1282
+ geojson: {
1283
+ type: string;
1284
+ geometry: {
1285
+ type: string;
1286
+ coordinates: number[][];
1287
+ };
1288
+ properties?: {} | undefined;
1289
+ };
1290
+ extension: number;
1291
+ }, {
1292
+ geojson: {
1293
+ geometry: {
1294
+ coordinates: number[][];
1295
+ type?: string | undefined;
1296
+ };
1297
+ type?: string | undefined;
1298
+ properties?: {} | undefined;
1299
+ };
1300
+ extension: number;
1301
+ }>>;
1302
+ }, "strip", z.ZodTypeAny, {
1303
+ _id: string;
1304
+ created_at: number & {
1305
+ __brand: "UnixTimestamp";
1306
+ };
1307
+ created_by: string | null;
1308
+ is_locked: boolean;
1309
+ updated_at: number & {
1310
+ __brand: "UnixTimestamp";
1311
+ };
1312
+ code: string;
1313
+ line_id: string;
1314
+ headsign: string;
1315
+ route_id: string;
1316
+ destination: string;
1317
+ direction: "0" | "1";
1318
+ origin: string;
1319
+ rules: {
1320
+ operatingMode: import("./scheduleRule.js").OPERATING_MODE;
1321
+ timePoints: string[];
1322
+ _id?: string | undefined;
1323
+ name?: string | undefined;
1324
+ periodIds?: string[] | undefined;
1325
+ weekdays?: (1 | 2 | 3 | 5 | 4 | 6 | 7)[] | undefined;
1326
+ holidays?: {
1327
+ mode: "ignore";
1328
+ } | {
1329
+ mode: "all";
1330
+ } | {
1331
+ mode: "specific";
1332
+ ids: string[];
1333
+ } | undefined;
1334
+ events?: string[] | undefined;
1335
+ travelTime?: string | undefined;
1336
+ }[];
1337
+ updated_by?: string | undefined;
1338
+ path?: {
1339
+ _id: string;
1340
+ stop_id: string;
1341
+ allow_drop_off: boolean;
1342
+ allow_pickup: boolean;
1343
+ distance_delta: number | null;
1344
+ timepoint: boolean;
1345
+ zones?: string[] | undefined;
1346
+ stop?: {
1347
+ _id: string;
1348
+ created_at: number & {
1349
+ __brand: "UnixTimestamp";
1350
+ };
1351
+ created_by: string | null;
1352
+ is_locked: boolean;
1353
+ updated_at: number & {
1354
+ __brand: "UnixTimestamp";
1355
+ };
1356
+ name: string;
1357
+ short_name: string;
1358
+ latitude: number;
1359
+ longitude: number;
1360
+ comments: ({
1361
+ created_at: number & {
1362
+ __brand: "UnixTimestamp";
1363
+ };
1364
+ created_by: string | null;
1365
+ updated_at: number & {
1366
+ __brand: "UnixTimestamp";
1367
+ };
1368
+ message: string;
1369
+ type: "note";
1370
+ _id?: string | undefined;
1371
+ updated_by?: string | undefined;
1372
+ } | {
1373
+ created_at: number & {
1374
+ __brand: "UnixTimestamp";
1375
+ };
1376
+ created_by: string | null;
1377
+ updated_at: number & {
1378
+ __brand: "UnixTimestamp";
1379
+ };
1380
+ type: "field_changed";
1381
+ field: string;
1382
+ _id?: string | undefined;
1383
+ updated_by?: string | undefined;
1384
+ metadata?: Record<string, unknown> | null | undefined;
1385
+ curr_value?: any;
1386
+ prev_value?: any;
1387
+ } | {
1388
+ created_at: number & {
1389
+ __brand: "UnixTimestamp";
1390
+ };
1391
+ created_by: string | null;
1392
+ updated_at: number & {
1393
+ __brand: "UnixTimestamp";
1394
+ };
1395
+ type: "crud";
1396
+ action: "create" | "update" | "delete" | "archive" | "restore";
1397
+ _id?: string | undefined;
1398
+ updated_by?: string | undefined;
1399
+ })[];
1400
+ has_bench: "unknown" | "available" | "unavailable";
1401
+ has_network_map: "unknown" | "available" | "unavailable";
1402
+ has_schedules: "unknown" | "available" | "unavailable";
1403
+ has_shelter: "unknown" | "available" | "unavailable";
1404
+ has_stop_sign: "unknown" | "available" | "unavailable";
1405
+ municipality_id: string;
1406
+ parish_id: string | null;
1407
+ shelter_code: string | null;
1408
+ shelter_maintainer: string | null;
1409
+ is_deleted: boolean;
1410
+ jurisdiction: "unknown" | "ip" | "municipality" | "other";
1411
+ legacy_id: string | null;
1412
+ lifecycle_status: "draft" | "active" | "inactive" | "provisional" | "seasonal" | "voided";
1413
+ new_name: string | null;
1414
+ tts_name: string;
1415
+ district_id: string;
1416
+ locality_id: string | null;
1417
+ bench_status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok";
1418
+ electricity_status: "unknown" | "available" | "unavailable";
1419
+ pole_status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok";
1420
+ road_type: "unknown" | "complementary_itinerary" | "highway" | "main_itinerary" | "national_road" | "regional_road" | "secondary_road";
1421
+ shelter_frame_size: [number, number] | null;
1422
+ shelter_installation_date: import("../index.js").UnixTimestamp | null;
1423
+ shelter_make: string | null;
1424
+ shelter_model: string | null;
1425
+ shelter_status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok";
1426
+ last_infrastructure_check: import("../index.js").UnixTimestamp | null;
1427
+ last_infrastructure_maintenance: import("../index.js").UnixTimestamp | null;
1428
+ last_schedules_check: import("../index.js").UnixTimestamp | null;
1429
+ last_schedules_maintenance: import("../index.js").UnixTimestamp | null;
1430
+ connections: ("ferry" | "light_rail" | "subway" | "train" | "boat" | "airport" | "bike_sharing" | "bike_parking" | "car_parking")[];
1431
+ facilities: ("school" | "fire_station" | "health_clinic" | "historic_building" | "hospital" | "police_station" | "shopping" | "transit_office" | "university" | "beach")[];
1432
+ equipment: ("pip" | "mupi" | "mini_pip")[];
1433
+ has_mupi: "unknown" | "available" | "unavailable";
1434
+ file_ids: string[];
1435
+ image_ids: string[];
1436
+ observations: string | null;
1437
+ updated_by?: string | undefined;
1438
+ } | null | undefined;
1439
+ }[] | undefined;
1440
+ shape?: {
1441
+ geojson: {
1442
+ type: string;
1443
+ geometry: {
1444
+ type: string;
1445
+ coordinates: number[][];
1446
+ };
1447
+ properties?: {} | undefined;
1448
+ };
1449
+ extension: number;
1450
+ } | undefined;
1451
+ presets?: {
1452
+ dwell_time: number;
1453
+ velocity: number;
1454
+ } | undefined;
1455
+ }, {
1456
+ _id: string;
1457
+ created_at: number;
1458
+ updated_at: number;
1459
+ code: string;
1460
+ line_id: string;
1461
+ headsign: string;
1462
+ route_id: string;
1463
+ destination: string;
1464
+ origin: string;
1465
+ created_by?: string | null | undefined;
1466
+ is_locked?: boolean | undefined;
1467
+ updated_by?: string | undefined;
1468
+ path?: {
1469
+ _id: string;
1470
+ stop_id: string;
1471
+ zones?: string[] | undefined;
1472
+ allow_drop_off?: boolean | undefined;
1473
+ allow_pickup?: boolean | undefined;
1474
+ distance_delta?: number | null | undefined;
1475
+ stop?: {
1476
+ _id: string;
1477
+ created_at: number;
1478
+ updated_at: number;
1479
+ name: string;
1480
+ short_name: string;
1481
+ latitude: number;
1482
+ longitude: number;
1483
+ municipality_id: string;
1484
+ tts_name: string;
1485
+ district_id: string;
1486
+ created_by?: string | null | undefined;
1487
+ is_locked?: boolean | undefined;
1488
+ updated_by?: string | undefined;
1489
+ comments?: ({
1490
+ created_at: number;
1491
+ updated_at: number;
1492
+ message: string;
1493
+ type: "note";
1494
+ _id?: string | undefined;
1495
+ created_by?: string | null | undefined;
1496
+ updated_by?: string | undefined;
1497
+ } | {
1498
+ created_at: number;
1499
+ updated_at: number;
1500
+ type: "field_changed";
1501
+ field: string;
1502
+ _id?: string | undefined;
1503
+ created_by?: string | null | undefined;
1504
+ updated_by?: string | undefined;
1505
+ metadata?: Record<string, unknown> | null | undefined;
1506
+ curr_value?: any;
1507
+ prev_value?: any;
1508
+ } | {
1509
+ created_at: number;
1510
+ updated_at: number;
1511
+ type: "crud";
1512
+ action: "create" | "update" | "delete" | "archive" | "restore";
1513
+ _id?: string | undefined;
1514
+ created_by?: string | null | undefined;
1515
+ updated_by?: string | undefined;
1516
+ })[] | undefined;
1517
+ has_bench?: "unknown" | "available" | "unavailable" | undefined;
1518
+ has_network_map?: "unknown" | "available" | "unavailable" | undefined;
1519
+ has_schedules?: "unknown" | "available" | "unavailable" | undefined;
1520
+ has_shelter?: "unknown" | "available" | "unavailable" | undefined;
1521
+ has_stop_sign?: "unknown" | "available" | "unavailable" | undefined;
1522
+ parish_id?: string | null | undefined;
1523
+ shelter_code?: string | null | undefined;
1524
+ shelter_maintainer?: string | null | undefined;
1525
+ is_deleted?: boolean | undefined;
1526
+ jurisdiction?: "unknown" | "ip" | "municipality" | "other" | undefined;
1527
+ legacy_id?: string | null | undefined;
1528
+ lifecycle_status?: "draft" | "active" | "inactive" | "provisional" | "seasonal" | "voided" | undefined;
1529
+ new_name?: string | null | undefined;
1530
+ locality_id?: string | null | undefined;
1531
+ bench_status?: "unknown" | "not_applicable" | "missing" | "damaged" | "ok" | undefined;
1532
+ electricity_status?: "unknown" | "available" | "unavailable" | undefined;
1533
+ pole_status?: "unknown" | "not_applicable" | "missing" | "damaged" | "ok" | undefined;
1534
+ road_type?: "unknown" | "complementary_itinerary" | "highway" | "main_itinerary" | "national_road" | "regional_road" | "secondary_road" | undefined;
1535
+ shelter_frame_size?: [number, number] | null | undefined;
1536
+ shelter_installation_date?: number | null | undefined;
1537
+ shelter_make?: string | null | undefined;
1538
+ shelter_model?: string | null | undefined;
1539
+ shelter_status?: "unknown" | "not_applicable" | "missing" | "damaged" | "ok" | undefined;
1540
+ last_infrastructure_check?: number | null | undefined;
1541
+ last_infrastructure_maintenance?: number | null | undefined;
1542
+ last_schedules_check?: number | null | undefined;
1543
+ last_schedules_maintenance?: number | null | undefined;
1544
+ connections?: ("ferry" | "light_rail" | "subway" | "train" | "boat" | "airport" | "bike_sharing" | "bike_parking" | "car_parking")[] | undefined;
1545
+ facilities?: ("school" | "fire_station" | "health_clinic" | "historic_building" | "hospital" | "police_station" | "shopping" | "transit_office" | "university" | "beach")[] | undefined;
1546
+ equipment?: ("pip" | "mupi" | "mini_pip")[] | undefined;
1547
+ has_mupi?: "unknown" | "available" | "unavailable" | undefined;
1548
+ file_ids?: string[] | undefined;
1549
+ image_ids?: string[] | undefined;
1550
+ observations?: string | null | undefined;
1551
+ } | null | undefined;
1552
+ timepoint?: boolean | undefined;
1553
+ }[] | undefined;
1554
+ shape?: {
1555
+ geojson: {
1556
+ geometry: {
1557
+ coordinates: number[][];
1558
+ type?: string | undefined;
1559
+ };
1560
+ type?: string | undefined;
1561
+ properties?: {} | undefined;
1562
+ };
1563
+ extension: number;
1564
+ } | undefined;
1565
+ direction?: "0" | "1" | undefined;
1566
+ presets?: {
1567
+ dwell_time?: number | undefined;
1568
+ velocity?: number | undefined;
1569
+ } | undefined;
1570
+ rules?: {
1571
+ operatingMode: import("./scheduleRule.js").OPERATING_MODE;
1572
+ timePoints: string[];
1573
+ _id?: string | undefined;
1574
+ name?: string | undefined;
1575
+ periodIds?: string[] | undefined;
1576
+ weekdays?: (1 | 2 | 3 | 5 | 4 | 6 | 7)[] | undefined;
1577
+ holidays?: {
1578
+ mode: "ignore";
1579
+ } | {
1580
+ mode: "all";
1581
+ } | {
1582
+ mode: "specific";
1583
+ ids: string[];
1584
+ } | undefined;
1585
+ events?: string[] | undefined;
1586
+ travelTime?: string | undefined;
1587
+ }[] | undefined;
1588
+ }>;
1589
+ export declare const PatternSimplifiedSchema: z.ZodObject<{
1590
+ _id: z.ZodString;
1591
+ code: z.ZodString;
1592
+ headsign: z.ZodString;
1593
+ line_id: z.ZodString;
1594
+ route_id: z.ZodString;
1595
+ }, "strip", z.ZodTypeAny, {
1596
+ _id: string;
1597
+ code: string;
1598
+ line_id: string;
1599
+ headsign: string;
1600
+ route_id: string;
1601
+ }, {
1602
+ _id: string;
1603
+ code: string;
1604
+ line_id: string;
1605
+ headsign: string;
1606
+ route_id: string;
1607
+ }>;
1608
+ export declare const CreatePatternSchema: z.ZodObject<Omit<{
1609
+ _id: z.ZodString;
1610
+ created_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
1611
+ created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1612
+ updated_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
1613
+ updated_by: z.ZodOptional<z.ZodString>;
1614
+ } & {
1615
+ code: z.ZodString;
1616
+ destination: z.ZodString;
1617
+ direction: z.ZodDefault<z.ZodEnum<["0", "1"]>>;
1618
+ headsign: z.ZodString;
1619
+ is_locked: z.ZodDefault<z.ZodBoolean>;
1620
+ line_id: z.ZodString;
1621
+ origin: z.ZodString;
1622
+ path: z.ZodOptional<z.ZodArray<z.ZodObject<{
1623
+ _id: z.ZodString;
1624
+ allow_drop_off: z.ZodDefault<z.ZodBoolean>;
1625
+ allow_pickup: z.ZodDefault<z.ZodBoolean>;
1626
+ distance_delta: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1627
+ stop: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1628
+ created_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
1629
+ created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1630
+ is_locked: z.ZodDefault<z.ZodBoolean>;
1631
+ updated_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
1632
+ updated_by: z.ZodOptional<z.ZodString>;
1633
+ } & {
1634
+ _id: z.ZodString;
1635
+ is_deleted: z.ZodDefault<z.ZodBoolean>;
1636
+ jurisdiction: z.ZodDefault<z.ZodEnum<["ip", "municipality", "other", "unknown"]>>;
1637
+ legacy_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1638
+ lifecycle_status: z.ZodDefault<z.ZodEnum<["draft", "active", "inactive", "provisional", "seasonal", "voided"]>>;
1639
+ name: z.ZodString;
1640
+ new_name: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1641
+ short_name: z.ZodString;
1642
+ tts_name: z.ZodString;
1643
+ district_id: z.ZodString;
1644
+ latitude: z.ZodNumber;
1645
+ locality_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1646
+ longitude: z.ZodNumber;
1647
+ municipality_id: z.ZodString;
1648
+ parish_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1649
+ bench_status: z.ZodDefault<z.ZodEnum<["not_applicable", "unknown", "missing", "damaged", "ok"]>>;
1650
+ electricity_status: z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>;
1651
+ pole_status: z.ZodDefault<z.ZodEnum<["not_applicable", "unknown", "missing", "damaged", "ok"]>>;
1652
+ road_type: z.ZodDefault<z.ZodEnum<["complementary_itinerary", "highway", "main_itinerary", "national_road", "regional_road", "secondary_road", "unknown"]>>;
1653
+ shelter_code: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1654
+ shelter_frame_size: z.ZodDefault<z.ZodNullable<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
1655
+ shelter_installation_date: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>>>;
1656
+ shelter_maintainer: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1657
+ shelter_make: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1658
+ shelter_model: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1659
+ shelter_status: z.ZodDefault<z.ZodEnum<["not_applicable", "unknown", "missing", "damaged", "ok"]>>;
1660
+ last_infrastructure_check: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>>>;
1661
+ last_infrastructure_maintenance: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>>>;
1662
+ last_schedules_check: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>>>;
1663
+ last_schedules_maintenance: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>>>;
1664
+ connections: z.ZodDefault<z.ZodArray<z.ZodEnum<["ferry", "light_rail", "subway", "train", "boat", "airport", "bike_sharing", "bike_parking", "car_parking"]>, "many">>;
1665
+ facilities: z.ZodDefault<z.ZodArray<z.ZodEnum<["fire_station", "health_clinic", "historic_building", "hospital", "police_station", "school", "shopping", "transit_office", "university", "beach"]>, "many">>;
1666
+ equipment: z.ZodDefault<z.ZodArray<z.ZodEnum<["pip", "mupi", "mini_pip"]>, "many">>;
1667
+ has_bench: z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>;
1668
+ has_mupi: z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>;
1669
+ has_network_map: z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>;
1670
+ has_schedules: z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>;
1671
+ has_shelter: z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>;
1672
+ has_stop_sign: z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>;
1673
+ file_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1674
+ image_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1675
+ comments: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1676
+ _id: z.ZodOptional<z.ZodString>;
1677
+ created_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
1678
+ created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1679
+ updated_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
1680
+ updated_by: z.ZodOptional<z.ZodString>;
1681
+ message: z.ZodString;
1682
+ type: z.ZodLiteral<"note">;
1683
+ }, "strip", z.ZodTypeAny, {
1684
+ created_at: number & {
1685
+ __brand: "UnixTimestamp";
1686
+ };
1687
+ created_by: string | null;
1688
+ updated_at: number & {
1689
+ __brand: "UnixTimestamp";
1690
+ };
1691
+ message: string;
1692
+ type: "note";
1693
+ _id?: string | undefined;
1694
+ updated_by?: string | undefined;
1695
+ }, {
1696
+ created_at: number;
1697
+ updated_at: number;
1698
+ message: string;
1699
+ type: "note";
1700
+ _id?: string | undefined;
1701
+ created_by?: string | null | undefined;
1702
+ updated_by?: string | undefined;
1703
+ }>, z.ZodObject<{
1704
+ _id: z.ZodOptional<z.ZodString>;
1705
+ created_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
1706
+ created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1707
+ updated_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
1708
+ updated_by: z.ZodOptional<z.ZodString>;
1709
+ type: z.ZodLiteral<"field_changed">;
1710
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1711
+ curr_value: z.ZodAny;
1712
+ field: z.ZodString;
1713
+ prev_value: z.ZodAny;
1714
+ }, "strip", z.ZodTypeAny, {
1715
+ created_at: number & {
1716
+ __brand: "UnixTimestamp";
1717
+ };
1718
+ created_by: string | null;
1719
+ updated_at: number & {
1720
+ __brand: "UnixTimestamp";
1721
+ };
1722
+ type: "field_changed";
1723
+ field: string;
1724
+ _id?: string | undefined;
1725
+ updated_by?: string | undefined;
1726
+ metadata?: Record<string, unknown> | null | undefined;
1727
+ curr_value?: any;
1728
+ prev_value?: any;
1729
+ }, {
1730
+ created_at: number;
1731
+ updated_at: number;
1732
+ type: "field_changed";
1733
+ field: string;
1734
+ _id?: string | undefined;
1735
+ created_by?: string | null | undefined;
1736
+ updated_by?: string | undefined;
1737
+ metadata?: Record<string, unknown> | null | undefined;
1738
+ curr_value?: any;
1739
+ prev_value?: any;
1740
+ }>, z.ZodObject<{
1741
+ _id: z.ZodOptional<z.ZodString>;
1742
+ created_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
1743
+ created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1744
+ updated_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
1745
+ updated_by: z.ZodOptional<z.ZodString>;
1746
+ type: z.ZodLiteral<"crud">;
1747
+ action: z.ZodEnum<["create", "update", "delete", "archive", "restore"]>;
1748
+ }, "strip", z.ZodTypeAny, {
1749
+ created_at: number & {
1750
+ __brand: "UnixTimestamp";
1751
+ };
1752
+ created_by: string | null;
1753
+ updated_at: number & {
1754
+ __brand: "UnixTimestamp";
1755
+ };
1756
+ type: "crud";
1757
+ action: "create" | "update" | "delete" | "archive" | "restore";
1758
+ _id?: string | undefined;
1759
+ updated_by?: string | undefined;
1760
+ }, {
1761
+ created_at: number;
1762
+ updated_at: number;
1763
+ type: "crud";
1764
+ action: "create" | "update" | "delete" | "archive" | "restore";
1765
+ _id?: string | undefined;
1766
+ created_by?: string | null | undefined;
1767
+ updated_by?: string | undefined;
1768
+ }>]>, {
1769
+ created_at: number & {
1770
+ __brand: "UnixTimestamp";
1771
+ };
1772
+ created_by: string | null;
1773
+ updated_at: number & {
1774
+ __brand: "UnixTimestamp";
1775
+ };
1776
+ message: string;
1777
+ type: "note";
1778
+ _id?: string | undefined;
1779
+ updated_by?: string | undefined;
1780
+ } | {
1781
+ created_at: number & {
1782
+ __brand: "UnixTimestamp";
1783
+ };
1784
+ created_by: string | null;
1785
+ updated_at: number & {
1786
+ __brand: "UnixTimestamp";
1787
+ };
1788
+ type: "field_changed";
1789
+ field: string;
1790
+ _id?: string | undefined;
1791
+ updated_by?: string | undefined;
1792
+ metadata?: Record<string, unknown> | null | undefined;
1793
+ curr_value?: any;
1794
+ prev_value?: any;
1795
+ } | {
1796
+ created_at: number & {
1797
+ __brand: "UnixTimestamp";
1798
+ };
1799
+ created_by: string | null;
1800
+ updated_at: number & {
1801
+ __brand: "UnixTimestamp";
1802
+ };
1803
+ type: "crud";
1804
+ action: "create" | "update" | "delete" | "archive" | "restore";
1805
+ _id?: string | undefined;
1806
+ updated_by?: string | undefined;
1807
+ }, {
1808
+ created_at: number;
1809
+ updated_at: number;
1810
+ message: string;
1811
+ type: "note";
1812
+ _id?: string | undefined;
1813
+ created_by?: string | null | undefined;
1814
+ updated_by?: string | undefined;
1815
+ } | {
1816
+ created_at: number;
1817
+ updated_at: number;
1818
+ type: "field_changed";
1819
+ field: string;
1820
+ _id?: string | undefined;
1821
+ created_by?: string | null | undefined;
1822
+ updated_by?: string | undefined;
1823
+ metadata?: Record<string, unknown> | null | undefined;
1824
+ curr_value?: any;
1825
+ prev_value?: any;
1826
+ } | {
1827
+ created_at: number;
1828
+ updated_at: number;
1829
+ type: "crud";
1830
+ action: "create" | "update" | "delete" | "archive" | "restore";
1831
+ _id?: string | undefined;
1832
+ created_by?: string | null | undefined;
1833
+ updated_by?: string | undefined;
1834
+ }>, "many">>;
1835
+ observations: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1836
+ }, "strip", z.ZodTypeAny, {
1837
+ _id: string;
1838
+ created_at: number & {
1839
+ __brand: "UnixTimestamp";
1840
+ };
1841
+ created_by: string | null;
1842
+ is_locked: boolean;
1843
+ updated_at: number & {
1844
+ __brand: "UnixTimestamp";
1845
+ };
1846
+ name: string;
1847
+ short_name: string;
1848
+ latitude: number;
1849
+ longitude: number;
1850
+ comments: ({
1851
+ created_at: number & {
1852
+ __brand: "UnixTimestamp";
1853
+ };
1854
+ created_by: string | null;
1855
+ updated_at: number & {
1856
+ __brand: "UnixTimestamp";
1857
+ };
1858
+ message: string;
1859
+ type: "note";
1860
+ _id?: string | undefined;
1861
+ updated_by?: string | undefined;
1862
+ } | {
1863
+ created_at: number & {
1864
+ __brand: "UnixTimestamp";
1865
+ };
1866
+ created_by: string | null;
1867
+ updated_at: number & {
1868
+ __brand: "UnixTimestamp";
1869
+ };
1870
+ type: "field_changed";
1871
+ field: string;
1872
+ _id?: string | undefined;
1873
+ updated_by?: string | undefined;
1874
+ metadata?: Record<string, unknown> | null | undefined;
1875
+ curr_value?: any;
1876
+ prev_value?: any;
1877
+ } | {
1878
+ created_at: number & {
1879
+ __brand: "UnixTimestamp";
1880
+ };
1881
+ created_by: string | null;
1882
+ updated_at: number & {
1883
+ __brand: "UnixTimestamp";
1884
+ };
1885
+ type: "crud";
1886
+ action: "create" | "update" | "delete" | "archive" | "restore";
1887
+ _id?: string | undefined;
1888
+ updated_by?: string | undefined;
1889
+ })[];
1890
+ has_bench: "unknown" | "available" | "unavailable";
1891
+ has_network_map: "unknown" | "available" | "unavailable";
1892
+ has_schedules: "unknown" | "available" | "unavailable";
1893
+ has_shelter: "unknown" | "available" | "unavailable";
1894
+ has_stop_sign: "unknown" | "available" | "unavailable";
1895
+ municipality_id: string;
1896
+ parish_id: string | null;
1897
+ shelter_code: string | null;
1898
+ shelter_maintainer: string | null;
1899
+ is_deleted: boolean;
1900
+ jurisdiction: "unknown" | "ip" | "municipality" | "other";
1901
+ legacy_id: string | null;
1902
+ lifecycle_status: "draft" | "active" | "inactive" | "provisional" | "seasonal" | "voided";
1903
+ new_name: string | null;
1904
+ tts_name: string;
1905
+ district_id: string;
1906
+ locality_id: string | null;
1907
+ bench_status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok";
1908
+ electricity_status: "unknown" | "available" | "unavailable";
1909
+ pole_status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok";
1910
+ road_type: "unknown" | "complementary_itinerary" | "highway" | "main_itinerary" | "national_road" | "regional_road" | "secondary_road";
1911
+ shelter_frame_size: [number, number] | null;
1912
+ shelter_installation_date: import("../index.js").UnixTimestamp | null;
1913
+ shelter_make: string | null;
1914
+ shelter_model: string | null;
1915
+ shelter_status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok";
1916
+ last_infrastructure_check: import("../index.js").UnixTimestamp | null;
1917
+ last_infrastructure_maintenance: import("../index.js").UnixTimestamp | null;
1918
+ last_schedules_check: import("../index.js").UnixTimestamp | null;
1919
+ last_schedules_maintenance: import("../index.js").UnixTimestamp | null;
1920
+ connections: ("ferry" | "light_rail" | "subway" | "train" | "boat" | "airport" | "bike_sharing" | "bike_parking" | "car_parking")[];
1921
+ facilities: ("school" | "fire_station" | "health_clinic" | "historic_building" | "hospital" | "police_station" | "shopping" | "transit_office" | "university" | "beach")[];
1922
+ equipment: ("pip" | "mupi" | "mini_pip")[];
1923
+ has_mupi: "unknown" | "available" | "unavailable";
1924
+ file_ids: string[];
1925
+ image_ids: string[];
1926
+ observations: string | null;
1927
+ updated_by?: string | undefined;
1928
+ }, {
1929
+ _id: string;
1930
+ created_at: number;
1931
+ updated_at: number;
1932
+ name: string;
1933
+ short_name: string;
1934
+ latitude: number;
1935
+ longitude: number;
1936
+ municipality_id: string;
1937
+ tts_name: string;
1938
+ district_id: string;
1939
+ created_by?: string | null | undefined;
1940
+ is_locked?: boolean | undefined;
1941
+ updated_by?: string | undefined;
1942
+ comments?: ({
1943
+ created_at: number;
1944
+ updated_at: number;
1945
+ message: string;
1946
+ type: "note";
1947
+ _id?: string | undefined;
1948
+ created_by?: string | null | undefined;
1949
+ updated_by?: string | undefined;
1950
+ } | {
1951
+ created_at: number;
1952
+ updated_at: number;
1953
+ type: "field_changed";
1954
+ field: string;
1955
+ _id?: string | undefined;
1956
+ created_by?: string | null | undefined;
1957
+ updated_by?: string | undefined;
1958
+ metadata?: Record<string, unknown> | null | undefined;
1959
+ curr_value?: any;
1960
+ prev_value?: any;
1961
+ } | {
1962
+ created_at: number;
1963
+ updated_at: number;
1964
+ type: "crud";
1965
+ action: "create" | "update" | "delete" | "archive" | "restore";
1966
+ _id?: string | undefined;
1967
+ created_by?: string | null | undefined;
1968
+ updated_by?: string | undefined;
1969
+ })[] | undefined;
1970
+ has_bench?: "unknown" | "available" | "unavailable" | undefined;
1971
+ has_network_map?: "unknown" | "available" | "unavailable" | undefined;
1972
+ has_schedules?: "unknown" | "available" | "unavailable" | undefined;
1973
+ has_shelter?: "unknown" | "available" | "unavailable" | undefined;
1974
+ has_stop_sign?: "unknown" | "available" | "unavailable" | undefined;
1975
+ parish_id?: string | null | undefined;
1976
+ shelter_code?: string | null | undefined;
1977
+ shelter_maintainer?: string | null | undefined;
1978
+ is_deleted?: boolean | undefined;
1979
+ jurisdiction?: "unknown" | "ip" | "municipality" | "other" | undefined;
1980
+ legacy_id?: string | null | undefined;
1981
+ lifecycle_status?: "draft" | "active" | "inactive" | "provisional" | "seasonal" | "voided" | undefined;
1982
+ new_name?: string | null | undefined;
1983
+ locality_id?: string | null | undefined;
1984
+ bench_status?: "unknown" | "not_applicable" | "missing" | "damaged" | "ok" | undefined;
1985
+ electricity_status?: "unknown" | "available" | "unavailable" | undefined;
1986
+ pole_status?: "unknown" | "not_applicable" | "missing" | "damaged" | "ok" | undefined;
1987
+ road_type?: "unknown" | "complementary_itinerary" | "highway" | "main_itinerary" | "national_road" | "regional_road" | "secondary_road" | undefined;
1988
+ shelter_frame_size?: [number, number] | null | undefined;
1989
+ shelter_installation_date?: number | null | undefined;
1990
+ shelter_make?: string | null | undefined;
1991
+ shelter_model?: string | null | undefined;
1992
+ shelter_status?: "unknown" | "not_applicable" | "missing" | "damaged" | "ok" | undefined;
1993
+ last_infrastructure_check?: number | null | undefined;
1994
+ last_infrastructure_maintenance?: number | null | undefined;
1995
+ last_schedules_check?: number | null | undefined;
1996
+ last_schedules_maintenance?: number | null | undefined;
1997
+ connections?: ("ferry" | "light_rail" | "subway" | "train" | "boat" | "airport" | "bike_sharing" | "bike_parking" | "car_parking")[] | undefined;
1998
+ facilities?: ("school" | "fire_station" | "health_clinic" | "historic_building" | "hospital" | "police_station" | "shopping" | "transit_office" | "university" | "beach")[] | undefined;
1999
+ equipment?: ("pip" | "mupi" | "mini_pip")[] | undefined;
2000
+ has_mupi?: "unknown" | "available" | "unavailable" | undefined;
2001
+ file_ids?: string[] | undefined;
2002
+ image_ids?: string[] | undefined;
2003
+ observations?: string | null | undefined;
2004
+ }>>>;
2005
+ stop_id: z.ZodString;
2006
+ timepoint: z.ZodDefault<z.ZodBoolean>;
2007
+ zones: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2008
+ }, "strip", z.ZodTypeAny, {
2009
+ _id: string;
2010
+ stop_id: string;
2011
+ allow_drop_off: boolean;
2012
+ allow_pickup: boolean;
2013
+ distance_delta: number | null;
2014
+ timepoint: boolean;
2015
+ zones?: string[] | undefined;
2016
+ stop?: {
2017
+ _id: string;
2018
+ created_at: number & {
2019
+ __brand: "UnixTimestamp";
2020
+ };
2021
+ created_by: string | null;
2022
+ is_locked: boolean;
2023
+ updated_at: number & {
2024
+ __brand: "UnixTimestamp";
2025
+ };
2026
+ name: string;
2027
+ short_name: string;
2028
+ latitude: number;
2029
+ longitude: number;
2030
+ comments: ({
2031
+ created_at: number & {
2032
+ __brand: "UnixTimestamp";
2033
+ };
2034
+ created_by: string | null;
2035
+ updated_at: number & {
2036
+ __brand: "UnixTimestamp";
2037
+ };
2038
+ message: string;
2039
+ type: "note";
2040
+ _id?: string | undefined;
2041
+ updated_by?: string | undefined;
2042
+ } | {
2043
+ created_at: number & {
2044
+ __brand: "UnixTimestamp";
2045
+ };
2046
+ created_by: string | null;
2047
+ updated_at: number & {
2048
+ __brand: "UnixTimestamp";
2049
+ };
2050
+ type: "field_changed";
2051
+ field: string;
2052
+ _id?: string | undefined;
2053
+ updated_by?: string | undefined;
2054
+ metadata?: Record<string, unknown> | null | undefined;
2055
+ curr_value?: any;
2056
+ prev_value?: any;
2057
+ } | {
2058
+ created_at: number & {
2059
+ __brand: "UnixTimestamp";
2060
+ };
2061
+ created_by: string | null;
2062
+ updated_at: number & {
2063
+ __brand: "UnixTimestamp";
2064
+ };
2065
+ type: "crud";
2066
+ action: "create" | "update" | "delete" | "archive" | "restore";
2067
+ _id?: string | undefined;
2068
+ updated_by?: string | undefined;
2069
+ })[];
2070
+ has_bench: "unknown" | "available" | "unavailable";
2071
+ has_network_map: "unknown" | "available" | "unavailable";
2072
+ has_schedules: "unknown" | "available" | "unavailable";
2073
+ has_shelter: "unknown" | "available" | "unavailable";
2074
+ has_stop_sign: "unknown" | "available" | "unavailable";
2075
+ municipality_id: string;
2076
+ parish_id: string | null;
2077
+ shelter_code: string | null;
2078
+ shelter_maintainer: string | null;
2079
+ is_deleted: boolean;
2080
+ jurisdiction: "unknown" | "ip" | "municipality" | "other";
2081
+ legacy_id: string | null;
2082
+ lifecycle_status: "draft" | "active" | "inactive" | "provisional" | "seasonal" | "voided";
2083
+ new_name: string | null;
2084
+ tts_name: string;
2085
+ district_id: string;
2086
+ locality_id: string | null;
2087
+ bench_status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok";
2088
+ electricity_status: "unknown" | "available" | "unavailable";
2089
+ pole_status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok";
2090
+ road_type: "unknown" | "complementary_itinerary" | "highway" | "main_itinerary" | "national_road" | "regional_road" | "secondary_road";
2091
+ shelter_frame_size: [number, number] | null;
2092
+ shelter_installation_date: import("../index.js").UnixTimestamp | null;
2093
+ shelter_make: string | null;
2094
+ shelter_model: string | null;
2095
+ shelter_status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok";
2096
+ last_infrastructure_check: import("../index.js").UnixTimestamp | null;
2097
+ last_infrastructure_maintenance: import("../index.js").UnixTimestamp | null;
2098
+ last_schedules_check: import("../index.js").UnixTimestamp | null;
2099
+ last_schedules_maintenance: import("../index.js").UnixTimestamp | null;
2100
+ connections: ("ferry" | "light_rail" | "subway" | "train" | "boat" | "airport" | "bike_sharing" | "bike_parking" | "car_parking")[];
2101
+ facilities: ("school" | "fire_station" | "health_clinic" | "historic_building" | "hospital" | "police_station" | "shopping" | "transit_office" | "university" | "beach")[];
2102
+ equipment: ("pip" | "mupi" | "mini_pip")[];
2103
+ has_mupi: "unknown" | "available" | "unavailable";
2104
+ file_ids: string[];
2105
+ image_ids: string[];
2106
+ observations: string | null;
2107
+ updated_by?: string | undefined;
2108
+ } | null | undefined;
2109
+ }, {
2110
+ _id: string;
2111
+ stop_id: string;
2112
+ zones?: string[] | undefined;
2113
+ allow_drop_off?: boolean | undefined;
2114
+ allow_pickup?: boolean | undefined;
2115
+ distance_delta?: number | null | undefined;
2116
+ stop?: {
2117
+ _id: string;
2118
+ created_at: number;
2119
+ updated_at: number;
2120
+ name: string;
2121
+ short_name: string;
2122
+ latitude: number;
2123
+ longitude: number;
2124
+ municipality_id: string;
2125
+ tts_name: string;
2126
+ district_id: string;
2127
+ created_by?: string | null | undefined;
2128
+ is_locked?: boolean | undefined;
2129
+ updated_by?: string | undefined;
2130
+ comments?: ({
2131
+ created_at: number;
2132
+ updated_at: number;
2133
+ message: string;
2134
+ type: "note";
2135
+ _id?: string | undefined;
2136
+ created_by?: string | null | undefined;
2137
+ updated_by?: string | undefined;
2138
+ } | {
2139
+ created_at: number;
2140
+ updated_at: number;
2141
+ type: "field_changed";
2142
+ field: string;
2143
+ _id?: string | undefined;
2144
+ created_by?: string | null | undefined;
2145
+ updated_by?: string | undefined;
2146
+ metadata?: Record<string, unknown> | null | undefined;
2147
+ curr_value?: any;
2148
+ prev_value?: any;
2149
+ } | {
2150
+ created_at: number;
2151
+ updated_at: number;
2152
+ type: "crud";
2153
+ action: "create" | "update" | "delete" | "archive" | "restore";
2154
+ _id?: string | undefined;
2155
+ created_by?: string | null | undefined;
2156
+ updated_by?: string | undefined;
2157
+ })[] | undefined;
2158
+ has_bench?: "unknown" | "available" | "unavailable" | undefined;
2159
+ has_network_map?: "unknown" | "available" | "unavailable" | undefined;
2160
+ has_schedules?: "unknown" | "available" | "unavailable" | undefined;
2161
+ has_shelter?: "unknown" | "available" | "unavailable" | undefined;
2162
+ has_stop_sign?: "unknown" | "available" | "unavailable" | undefined;
2163
+ parish_id?: string | null | undefined;
2164
+ shelter_code?: string | null | undefined;
2165
+ shelter_maintainer?: string | null | undefined;
2166
+ is_deleted?: boolean | undefined;
2167
+ jurisdiction?: "unknown" | "ip" | "municipality" | "other" | undefined;
2168
+ legacy_id?: string | null | undefined;
2169
+ lifecycle_status?: "draft" | "active" | "inactive" | "provisional" | "seasonal" | "voided" | undefined;
2170
+ new_name?: string | null | undefined;
2171
+ locality_id?: string | null | undefined;
2172
+ bench_status?: "unknown" | "not_applicable" | "missing" | "damaged" | "ok" | undefined;
2173
+ electricity_status?: "unknown" | "available" | "unavailable" | undefined;
2174
+ pole_status?: "unknown" | "not_applicable" | "missing" | "damaged" | "ok" | undefined;
2175
+ road_type?: "unknown" | "complementary_itinerary" | "highway" | "main_itinerary" | "national_road" | "regional_road" | "secondary_road" | undefined;
2176
+ shelter_frame_size?: [number, number] | null | undefined;
2177
+ shelter_installation_date?: number | null | undefined;
2178
+ shelter_make?: string | null | undefined;
2179
+ shelter_model?: string | null | undefined;
2180
+ shelter_status?: "unknown" | "not_applicable" | "missing" | "damaged" | "ok" | undefined;
2181
+ last_infrastructure_check?: number | null | undefined;
2182
+ last_infrastructure_maintenance?: number | null | undefined;
2183
+ last_schedules_check?: number | null | undefined;
2184
+ last_schedules_maintenance?: number | null | undefined;
2185
+ connections?: ("ferry" | "light_rail" | "subway" | "train" | "boat" | "airport" | "bike_sharing" | "bike_parking" | "car_parking")[] | undefined;
2186
+ facilities?: ("school" | "fire_station" | "health_clinic" | "historic_building" | "hospital" | "police_station" | "shopping" | "transit_office" | "university" | "beach")[] | undefined;
2187
+ equipment?: ("pip" | "mupi" | "mini_pip")[] | undefined;
2188
+ has_mupi?: "unknown" | "available" | "unavailable" | undefined;
2189
+ file_ids?: string[] | undefined;
2190
+ image_ids?: string[] | undefined;
2191
+ observations?: string | null | undefined;
2192
+ } | null | undefined;
2193
+ timepoint?: boolean | undefined;
2194
+ }>, "many">>;
2195
+ presets: z.ZodOptional<z.ZodObject<{
2196
+ dwell_time: z.ZodDefault<z.ZodNumber>;
2197
+ velocity: z.ZodDefault<z.ZodNumber>;
2198
+ }, "strip", z.ZodTypeAny, {
2199
+ dwell_time: number;
2200
+ velocity: number;
2201
+ }, {
2202
+ dwell_time?: number | undefined;
2203
+ velocity?: number | undefined;
2204
+ }>>;
2205
+ route_id: z.ZodString;
2206
+ rules: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
2207
+ _id: z.ZodOptional<z.ZodString>;
2208
+ name: z.ZodOptional<z.ZodString>;
2209
+ operatingMode: z.ZodNativeEnum<typeof import("./scheduleRule.js").OPERATING_MODE>;
2210
+ periodIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2211
+ weekdays: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<{
2212
+ readonly Fri: 5;
2213
+ readonly Mon: 1;
2214
+ readonly Sat: 6;
2215
+ readonly Sun: 7;
2216
+ readonly Thu: 4;
2217
+ readonly Tue: 2;
2218
+ readonly Wed: 3;
2219
+ }>, "many">>;
2220
+ holidays: z.ZodOptional<z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
2221
+ mode: z.ZodLiteral<"ignore">;
2222
+ }, "strip", z.ZodTypeAny, {
2223
+ mode: "ignore";
2224
+ }, {
2225
+ mode: "ignore";
2226
+ }>, z.ZodObject<{
2227
+ mode: z.ZodLiteral<"all">;
2228
+ }, "strip", z.ZodTypeAny, {
2229
+ mode: "all";
2230
+ }, {
2231
+ mode: "all";
2232
+ }>, z.ZodObject<{
2233
+ ids: z.ZodArray<z.ZodString, "many">;
2234
+ mode: z.ZodLiteral<"specific">;
2235
+ }, "strip", z.ZodTypeAny, {
2236
+ mode: "specific";
2237
+ ids: string[];
2238
+ }, {
2239
+ mode: "specific";
2240
+ ids: string[];
2241
+ }>]>>;
2242
+ events: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2243
+ travelTime: z.ZodOptional<z.ZodString>;
2244
+ timePoints: z.ZodArray<z.ZodString, "many">;
2245
+ }, "strip", z.ZodTypeAny, {
2246
+ operatingMode: import("./scheduleRule.js").OPERATING_MODE;
2247
+ timePoints: string[];
2248
+ _id?: string | undefined;
2249
+ name?: string | undefined;
2250
+ periodIds?: string[] | undefined;
2251
+ weekdays?: (1 | 2 | 3 | 5 | 4 | 6 | 7)[] | undefined;
2252
+ holidays?: {
2253
+ mode: "ignore";
2254
+ } | {
2255
+ mode: "all";
2256
+ } | {
2257
+ mode: "specific";
2258
+ ids: string[];
2259
+ } | undefined;
2260
+ events?: string[] | undefined;
2261
+ travelTime?: string | undefined;
2262
+ }, {
2263
+ operatingMode: import("./scheduleRule.js").OPERATING_MODE;
2264
+ timePoints: string[];
2265
+ _id?: string | undefined;
2266
+ name?: string | undefined;
2267
+ periodIds?: string[] | undefined;
2268
+ weekdays?: (1 | 2 | 3 | 5 | 4 | 6 | 7)[] | undefined;
2269
+ holidays?: {
2270
+ mode: "ignore";
2271
+ } | {
2272
+ mode: "all";
2273
+ } | {
2274
+ mode: "specific";
2275
+ ids: string[];
2276
+ } | undefined;
2277
+ events?: string[] | undefined;
2278
+ travelTime?: string | undefined;
2279
+ }>, "many">>>;
2280
+ shape: z.ZodOptional<z.ZodObject<{
2281
+ extension: z.ZodNumber;
2282
+ geojson: z.ZodObject<{
2283
+ geometry: z.ZodObject<{
2284
+ coordinates: z.ZodArray<z.ZodArray<z.ZodNumber, "many">, "many">;
2285
+ type: z.ZodDefault<z.ZodString>;
2286
+ }, "strip", z.ZodTypeAny, {
2287
+ type: string;
2288
+ coordinates: number[][];
2289
+ }, {
2290
+ coordinates: number[][];
2291
+ type?: string | undefined;
2292
+ }>;
2293
+ properties: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
2294
+ type: z.ZodDefault<z.ZodString>;
2295
+ }, "strip", z.ZodTypeAny, {
2296
+ type: string;
2297
+ geometry: {
2298
+ type: string;
2299
+ coordinates: number[][];
2300
+ };
2301
+ properties?: {} | undefined;
2302
+ }, {
2303
+ geometry: {
2304
+ coordinates: number[][];
2305
+ type?: string | undefined;
2306
+ };
2307
+ type?: string | undefined;
2308
+ properties?: {} | undefined;
2309
+ }>;
2310
+ }, "strip", z.ZodTypeAny, {
2311
+ geojson: {
2312
+ type: string;
2313
+ geometry: {
2314
+ type: string;
2315
+ coordinates: number[][];
2316
+ };
2317
+ properties?: {} | undefined;
2318
+ };
2319
+ extension: number;
2320
+ }, {
2321
+ geojson: {
2322
+ geometry: {
2323
+ coordinates: number[][];
2324
+ type?: string | undefined;
2325
+ };
2326
+ type?: string | undefined;
2327
+ properties?: {} | undefined;
2328
+ };
2329
+ extension: number;
2330
+ }>>;
2331
+ }, "_id" | "created_at" | "updated_at">, "strip", z.ZodTypeAny, {
2332
+ created_by: string | null;
2333
+ is_locked: boolean;
2334
+ code: string;
2335
+ line_id: string;
2336
+ headsign: string;
2337
+ route_id: string;
2338
+ destination: string;
2339
+ direction: "0" | "1";
2340
+ origin: string;
2341
+ rules: {
2342
+ operatingMode: import("./scheduleRule.js").OPERATING_MODE;
2343
+ timePoints: string[];
2344
+ _id?: string | undefined;
2345
+ name?: string | undefined;
2346
+ periodIds?: string[] | undefined;
2347
+ weekdays?: (1 | 2 | 3 | 5 | 4 | 6 | 7)[] | undefined;
2348
+ holidays?: {
2349
+ mode: "ignore";
2350
+ } | {
2351
+ mode: "all";
2352
+ } | {
2353
+ mode: "specific";
2354
+ ids: string[];
2355
+ } | undefined;
2356
+ events?: string[] | undefined;
2357
+ travelTime?: string | undefined;
2358
+ }[];
2359
+ updated_by?: string | undefined;
2360
+ path?: {
2361
+ _id: string;
2362
+ stop_id: string;
2363
+ allow_drop_off: boolean;
2364
+ allow_pickup: boolean;
2365
+ distance_delta: number | null;
2366
+ timepoint: boolean;
2367
+ zones?: string[] | undefined;
2368
+ stop?: {
2369
+ _id: string;
2370
+ created_at: number & {
2371
+ __brand: "UnixTimestamp";
2372
+ };
2373
+ created_by: string | null;
2374
+ is_locked: boolean;
2375
+ updated_at: number & {
2376
+ __brand: "UnixTimestamp";
2377
+ };
2378
+ name: string;
2379
+ short_name: string;
2380
+ latitude: number;
2381
+ longitude: number;
2382
+ comments: ({
2383
+ created_at: number & {
2384
+ __brand: "UnixTimestamp";
2385
+ };
2386
+ created_by: string | null;
2387
+ updated_at: number & {
2388
+ __brand: "UnixTimestamp";
2389
+ };
2390
+ message: string;
2391
+ type: "note";
2392
+ _id?: string | undefined;
2393
+ updated_by?: string | undefined;
2394
+ } | {
2395
+ created_at: number & {
2396
+ __brand: "UnixTimestamp";
2397
+ };
2398
+ created_by: string | null;
2399
+ updated_at: number & {
2400
+ __brand: "UnixTimestamp";
2401
+ };
2402
+ type: "field_changed";
2403
+ field: string;
2404
+ _id?: string | undefined;
2405
+ updated_by?: string | undefined;
2406
+ metadata?: Record<string, unknown> | null | undefined;
2407
+ curr_value?: any;
2408
+ prev_value?: any;
2409
+ } | {
2410
+ created_at: number & {
2411
+ __brand: "UnixTimestamp";
2412
+ };
2413
+ created_by: string | null;
2414
+ updated_at: number & {
2415
+ __brand: "UnixTimestamp";
2416
+ };
2417
+ type: "crud";
2418
+ action: "create" | "update" | "delete" | "archive" | "restore";
2419
+ _id?: string | undefined;
2420
+ updated_by?: string | undefined;
2421
+ })[];
2422
+ has_bench: "unknown" | "available" | "unavailable";
2423
+ has_network_map: "unknown" | "available" | "unavailable";
2424
+ has_schedules: "unknown" | "available" | "unavailable";
2425
+ has_shelter: "unknown" | "available" | "unavailable";
2426
+ has_stop_sign: "unknown" | "available" | "unavailable";
2427
+ municipality_id: string;
2428
+ parish_id: string | null;
2429
+ shelter_code: string | null;
2430
+ shelter_maintainer: string | null;
2431
+ is_deleted: boolean;
2432
+ jurisdiction: "unknown" | "ip" | "municipality" | "other";
2433
+ legacy_id: string | null;
2434
+ lifecycle_status: "draft" | "active" | "inactive" | "provisional" | "seasonal" | "voided";
2435
+ new_name: string | null;
2436
+ tts_name: string;
2437
+ district_id: string;
2438
+ locality_id: string | null;
2439
+ bench_status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok";
2440
+ electricity_status: "unknown" | "available" | "unavailable";
2441
+ pole_status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok";
2442
+ road_type: "unknown" | "complementary_itinerary" | "highway" | "main_itinerary" | "national_road" | "regional_road" | "secondary_road";
2443
+ shelter_frame_size: [number, number] | null;
2444
+ shelter_installation_date: import("../index.js").UnixTimestamp | null;
2445
+ shelter_make: string | null;
2446
+ shelter_model: string | null;
2447
+ shelter_status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok";
2448
+ last_infrastructure_check: import("../index.js").UnixTimestamp | null;
2449
+ last_infrastructure_maintenance: import("../index.js").UnixTimestamp | null;
2450
+ last_schedules_check: import("../index.js").UnixTimestamp | null;
2451
+ last_schedules_maintenance: import("../index.js").UnixTimestamp | null;
2452
+ connections: ("ferry" | "light_rail" | "subway" | "train" | "boat" | "airport" | "bike_sharing" | "bike_parking" | "car_parking")[];
2453
+ facilities: ("school" | "fire_station" | "health_clinic" | "historic_building" | "hospital" | "police_station" | "shopping" | "transit_office" | "university" | "beach")[];
2454
+ equipment: ("pip" | "mupi" | "mini_pip")[];
2455
+ has_mupi: "unknown" | "available" | "unavailable";
2456
+ file_ids: string[];
2457
+ image_ids: string[];
2458
+ observations: string | null;
2459
+ updated_by?: string | undefined;
2460
+ } | null | undefined;
2461
+ }[] | undefined;
2462
+ shape?: {
2463
+ geojson: {
2464
+ type: string;
2465
+ geometry: {
2466
+ type: string;
2467
+ coordinates: number[][];
2468
+ };
2469
+ properties?: {} | undefined;
2470
+ };
2471
+ extension: number;
2472
+ } | undefined;
2473
+ presets?: {
2474
+ dwell_time: number;
2475
+ velocity: number;
2476
+ } | undefined;
2477
+ }, {
2478
+ code: string;
2479
+ line_id: string;
2480
+ headsign: string;
2481
+ route_id: string;
2482
+ destination: string;
2483
+ origin: string;
2484
+ created_by?: string | null | undefined;
2485
+ is_locked?: boolean | undefined;
2486
+ updated_by?: string | undefined;
2487
+ path?: {
2488
+ _id: string;
2489
+ stop_id: string;
2490
+ zones?: string[] | undefined;
2491
+ allow_drop_off?: boolean | undefined;
2492
+ allow_pickup?: boolean | undefined;
2493
+ distance_delta?: number | null | undefined;
2494
+ stop?: {
2495
+ _id: string;
2496
+ created_at: number;
2497
+ updated_at: number;
2498
+ name: string;
2499
+ short_name: string;
2500
+ latitude: number;
2501
+ longitude: number;
2502
+ municipality_id: string;
2503
+ tts_name: string;
2504
+ district_id: string;
2505
+ created_by?: string | null | undefined;
2506
+ is_locked?: boolean | undefined;
2507
+ updated_by?: string | undefined;
2508
+ comments?: ({
2509
+ created_at: number;
2510
+ updated_at: number;
2511
+ message: string;
2512
+ type: "note";
2513
+ _id?: string | undefined;
2514
+ created_by?: string | null | undefined;
2515
+ updated_by?: string | undefined;
2516
+ } | {
2517
+ created_at: number;
2518
+ updated_at: number;
2519
+ type: "field_changed";
2520
+ field: string;
2521
+ _id?: string | undefined;
2522
+ created_by?: string | null | undefined;
2523
+ updated_by?: string | undefined;
2524
+ metadata?: Record<string, unknown> | null | undefined;
2525
+ curr_value?: any;
2526
+ prev_value?: any;
2527
+ } | {
2528
+ created_at: number;
2529
+ updated_at: number;
2530
+ type: "crud";
2531
+ action: "create" | "update" | "delete" | "archive" | "restore";
2532
+ _id?: string | undefined;
2533
+ created_by?: string | null | undefined;
2534
+ updated_by?: string | undefined;
2535
+ })[] | undefined;
2536
+ has_bench?: "unknown" | "available" | "unavailable" | undefined;
2537
+ has_network_map?: "unknown" | "available" | "unavailable" | undefined;
2538
+ has_schedules?: "unknown" | "available" | "unavailable" | undefined;
2539
+ has_shelter?: "unknown" | "available" | "unavailable" | undefined;
2540
+ has_stop_sign?: "unknown" | "available" | "unavailable" | undefined;
2541
+ parish_id?: string | null | undefined;
2542
+ shelter_code?: string | null | undefined;
2543
+ shelter_maintainer?: string | null | undefined;
2544
+ is_deleted?: boolean | undefined;
2545
+ jurisdiction?: "unknown" | "ip" | "municipality" | "other" | undefined;
2546
+ legacy_id?: string | null | undefined;
2547
+ lifecycle_status?: "draft" | "active" | "inactive" | "provisional" | "seasonal" | "voided" | undefined;
2548
+ new_name?: string | null | undefined;
2549
+ locality_id?: string | null | undefined;
2550
+ bench_status?: "unknown" | "not_applicable" | "missing" | "damaged" | "ok" | undefined;
2551
+ electricity_status?: "unknown" | "available" | "unavailable" | undefined;
2552
+ pole_status?: "unknown" | "not_applicable" | "missing" | "damaged" | "ok" | undefined;
2553
+ road_type?: "unknown" | "complementary_itinerary" | "highway" | "main_itinerary" | "national_road" | "regional_road" | "secondary_road" | undefined;
2554
+ shelter_frame_size?: [number, number] | null | undefined;
2555
+ shelter_installation_date?: number | null | undefined;
2556
+ shelter_make?: string | null | undefined;
2557
+ shelter_model?: string | null | undefined;
2558
+ shelter_status?: "unknown" | "not_applicable" | "missing" | "damaged" | "ok" | undefined;
2559
+ last_infrastructure_check?: number | null | undefined;
2560
+ last_infrastructure_maintenance?: number | null | undefined;
2561
+ last_schedules_check?: number | null | undefined;
2562
+ last_schedules_maintenance?: number | null | undefined;
2563
+ connections?: ("ferry" | "light_rail" | "subway" | "train" | "boat" | "airport" | "bike_sharing" | "bike_parking" | "car_parking")[] | undefined;
2564
+ facilities?: ("school" | "fire_station" | "health_clinic" | "historic_building" | "hospital" | "police_station" | "shopping" | "transit_office" | "university" | "beach")[] | undefined;
2565
+ equipment?: ("pip" | "mupi" | "mini_pip")[] | undefined;
2566
+ has_mupi?: "unknown" | "available" | "unavailable" | undefined;
2567
+ file_ids?: string[] | undefined;
2568
+ image_ids?: string[] | undefined;
2569
+ observations?: string | null | undefined;
2570
+ } | null | undefined;
2571
+ timepoint?: boolean | undefined;
2572
+ }[] | undefined;
2573
+ shape?: {
2574
+ geojson: {
2575
+ geometry: {
2576
+ coordinates: number[][];
2577
+ type?: string | undefined;
2578
+ };
2579
+ type?: string | undefined;
2580
+ properties?: {} | undefined;
2581
+ };
2582
+ extension: number;
2583
+ } | undefined;
2584
+ direction?: "0" | "1" | undefined;
2585
+ presets?: {
2586
+ dwell_time?: number | undefined;
2587
+ velocity?: number | undefined;
2588
+ } | undefined;
2589
+ rules?: {
2590
+ operatingMode: import("./scheduleRule.js").OPERATING_MODE;
2591
+ timePoints: string[];
2592
+ _id?: string | undefined;
2593
+ name?: string | undefined;
2594
+ periodIds?: string[] | undefined;
2595
+ weekdays?: (1 | 2 | 3 | 5 | 4 | 6 | 7)[] | undefined;
2596
+ holidays?: {
2597
+ mode: "ignore";
2598
+ } | {
2599
+ mode: "all";
2600
+ } | {
2601
+ mode: "specific";
2602
+ ids: string[];
2603
+ } | undefined;
2604
+ events?: string[] | undefined;
2605
+ travelTime?: string | undefined;
2606
+ }[] | undefined;
2607
+ }>;
2608
+ export declare const UpdatePatternSchema: z.ZodObject<{
2609
+ is_locked: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2610
+ updated_by: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2611
+ code: z.ZodOptional<z.ZodString>;
2612
+ path: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
2613
+ _id: z.ZodString;
2614
+ allow_drop_off: z.ZodDefault<z.ZodBoolean>;
2615
+ allow_pickup: z.ZodDefault<z.ZodBoolean>;
2616
+ distance_delta: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
2617
+ stop: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2618
+ created_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
2619
+ created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2620
+ is_locked: z.ZodDefault<z.ZodBoolean>;
2621
+ updated_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
2622
+ updated_by: z.ZodOptional<z.ZodString>;
2623
+ } & {
2624
+ _id: z.ZodString;
2625
+ is_deleted: z.ZodDefault<z.ZodBoolean>;
2626
+ jurisdiction: z.ZodDefault<z.ZodEnum<["ip", "municipality", "other", "unknown"]>>;
2627
+ legacy_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2628
+ lifecycle_status: z.ZodDefault<z.ZodEnum<["draft", "active", "inactive", "provisional", "seasonal", "voided"]>>;
2629
+ name: z.ZodString;
2630
+ new_name: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2631
+ short_name: z.ZodString;
2632
+ tts_name: z.ZodString;
2633
+ district_id: z.ZodString;
2634
+ latitude: z.ZodNumber;
2635
+ locality_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2636
+ longitude: z.ZodNumber;
2637
+ municipality_id: z.ZodString;
2638
+ parish_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2639
+ bench_status: z.ZodDefault<z.ZodEnum<["not_applicable", "unknown", "missing", "damaged", "ok"]>>;
2640
+ electricity_status: z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>;
2641
+ pole_status: z.ZodDefault<z.ZodEnum<["not_applicable", "unknown", "missing", "damaged", "ok"]>>;
2642
+ road_type: z.ZodDefault<z.ZodEnum<["complementary_itinerary", "highway", "main_itinerary", "national_road", "regional_road", "secondary_road", "unknown"]>>;
2643
+ shelter_code: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2644
+ shelter_frame_size: z.ZodDefault<z.ZodNullable<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
2645
+ shelter_installation_date: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>>>;
2646
+ shelter_maintainer: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2647
+ shelter_make: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2648
+ shelter_model: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2649
+ shelter_status: z.ZodDefault<z.ZodEnum<["not_applicable", "unknown", "missing", "damaged", "ok"]>>;
2650
+ last_infrastructure_check: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>>>;
2651
+ last_infrastructure_maintenance: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>>>;
2652
+ last_schedules_check: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>>>;
2653
+ last_schedules_maintenance: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>>>;
2654
+ connections: z.ZodDefault<z.ZodArray<z.ZodEnum<["ferry", "light_rail", "subway", "train", "boat", "airport", "bike_sharing", "bike_parking", "car_parking"]>, "many">>;
2655
+ facilities: z.ZodDefault<z.ZodArray<z.ZodEnum<["fire_station", "health_clinic", "historic_building", "hospital", "police_station", "school", "shopping", "transit_office", "university", "beach"]>, "many">>;
2656
+ equipment: z.ZodDefault<z.ZodArray<z.ZodEnum<["pip", "mupi", "mini_pip"]>, "many">>;
2657
+ has_bench: z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>;
2658
+ has_mupi: z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>;
2659
+ has_network_map: z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>;
2660
+ has_schedules: z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>;
2661
+ has_shelter: z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>;
2662
+ has_stop_sign: z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>;
2663
+ file_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
2664
+ image_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
2665
+ comments: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2666
+ _id: z.ZodOptional<z.ZodString>;
2667
+ created_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
2668
+ created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2669
+ updated_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
2670
+ updated_by: z.ZodOptional<z.ZodString>;
2671
+ message: z.ZodString;
2672
+ type: z.ZodLiteral<"note">;
2673
+ }, "strip", z.ZodTypeAny, {
2674
+ created_at: number & {
2675
+ __brand: "UnixTimestamp";
2676
+ };
2677
+ created_by: string | null;
2678
+ updated_at: number & {
2679
+ __brand: "UnixTimestamp";
2680
+ };
2681
+ message: string;
2682
+ type: "note";
2683
+ _id?: string | undefined;
2684
+ updated_by?: string | undefined;
2685
+ }, {
2686
+ created_at: number;
2687
+ updated_at: number;
2688
+ message: string;
2689
+ type: "note";
2690
+ _id?: string | undefined;
2691
+ created_by?: string | null | undefined;
2692
+ updated_by?: string | undefined;
2693
+ }>, z.ZodObject<{
2694
+ _id: z.ZodOptional<z.ZodString>;
2695
+ created_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
2696
+ created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2697
+ updated_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
2698
+ updated_by: z.ZodOptional<z.ZodString>;
2699
+ type: z.ZodLiteral<"field_changed">;
2700
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
2701
+ curr_value: z.ZodAny;
2702
+ field: z.ZodString;
2703
+ prev_value: z.ZodAny;
2704
+ }, "strip", z.ZodTypeAny, {
2705
+ created_at: number & {
2706
+ __brand: "UnixTimestamp";
2707
+ };
2708
+ created_by: string | null;
2709
+ updated_at: number & {
2710
+ __brand: "UnixTimestamp";
2711
+ };
2712
+ type: "field_changed";
2713
+ field: string;
2714
+ _id?: string | undefined;
2715
+ updated_by?: string | undefined;
2716
+ metadata?: Record<string, unknown> | null | undefined;
2717
+ curr_value?: any;
2718
+ prev_value?: any;
2719
+ }, {
2720
+ created_at: number;
2721
+ updated_at: number;
2722
+ type: "field_changed";
2723
+ field: string;
2724
+ _id?: string | undefined;
2725
+ created_by?: string | null | undefined;
2726
+ updated_by?: string | undefined;
2727
+ metadata?: Record<string, unknown> | null | undefined;
2728
+ curr_value?: any;
2729
+ prev_value?: any;
2730
+ }>, z.ZodObject<{
2731
+ _id: z.ZodOptional<z.ZodString>;
2732
+ created_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
2733
+ created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2734
+ updated_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
2735
+ updated_by: z.ZodOptional<z.ZodString>;
2736
+ type: z.ZodLiteral<"crud">;
2737
+ action: z.ZodEnum<["create", "update", "delete", "archive", "restore"]>;
2738
+ }, "strip", z.ZodTypeAny, {
2739
+ created_at: number & {
2740
+ __brand: "UnixTimestamp";
2741
+ };
2742
+ created_by: string | null;
2743
+ updated_at: number & {
2744
+ __brand: "UnixTimestamp";
2745
+ };
2746
+ type: "crud";
2747
+ action: "create" | "update" | "delete" | "archive" | "restore";
2748
+ _id?: string | undefined;
2749
+ updated_by?: string | undefined;
2750
+ }, {
2751
+ created_at: number;
2752
+ updated_at: number;
2753
+ type: "crud";
2754
+ action: "create" | "update" | "delete" | "archive" | "restore";
2755
+ _id?: string | undefined;
2756
+ created_by?: string | null | undefined;
2757
+ updated_by?: string | undefined;
2758
+ }>]>, {
2759
+ created_at: number & {
2760
+ __brand: "UnixTimestamp";
2761
+ };
2762
+ created_by: string | null;
2763
+ updated_at: number & {
2764
+ __brand: "UnixTimestamp";
2765
+ };
2766
+ message: string;
2767
+ type: "note";
2768
+ _id?: string | undefined;
2769
+ updated_by?: string | undefined;
2770
+ } | {
2771
+ created_at: number & {
2772
+ __brand: "UnixTimestamp";
2773
+ };
2774
+ created_by: string | null;
2775
+ updated_at: number & {
2776
+ __brand: "UnixTimestamp";
2777
+ };
2778
+ type: "field_changed";
2779
+ field: string;
2780
+ _id?: string | undefined;
2781
+ updated_by?: string | undefined;
2782
+ metadata?: Record<string, unknown> | null | undefined;
2783
+ curr_value?: any;
2784
+ prev_value?: any;
2785
+ } | {
2786
+ created_at: number & {
2787
+ __brand: "UnixTimestamp";
2788
+ };
2789
+ created_by: string | null;
2790
+ updated_at: number & {
2791
+ __brand: "UnixTimestamp";
2792
+ };
2793
+ type: "crud";
2794
+ action: "create" | "update" | "delete" | "archive" | "restore";
2795
+ _id?: string | undefined;
2796
+ updated_by?: string | undefined;
2797
+ }, {
2798
+ created_at: number;
2799
+ updated_at: number;
2800
+ message: string;
2801
+ type: "note";
2802
+ _id?: string | undefined;
2803
+ created_by?: string | null | undefined;
2804
+ updated_by?: string | undefined;
2805
+ } | {
2806
+ created_at: number;
2807
+ updated_at: number;
2808
+ type: "field_changed";
2809
+ field: string;
2810
+ _id?: string | undefined;
2811
+ created_by?: string | null | undefined;
2812
+ updated_by?: string | undefined;
2813
+ metadata?: Record<string, unknown> | null | undefined;
2814
+ curr_value?: any;
2815
+ prev_value?: any;
2816
+ } | {
2817
+ created_at: number;
2818
+ updated_at: number;
2819
+ type: "crud";
2820
+ action: "create" | "update" | "delete" | "archive" | "restore";
2821
+ _id?: string | undefined;
2822
+ created_by?: string | null | undefined;
2823
+ updated_by?: string | undefined;
2824
+ }>, "many">>;
2825
+ observations: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2826
+ }, "strip", z.ZodTypeAny, {
2827
+ _id: string;
2828
+ created_at: number & {
2829
+ __brand: "UnixTimestamp";
2830
+ };
2831
+ created_by: string | null;
2832
+ is_locked: boolean;
2833
+ updated_at: number & {
2834
+ __brand: "UnixTimestamp";
2835
+ };
2836
+ name: string;
2837
+ short_name: string;
2838
+ latitude: number;
2839
+ longitude: number;
2840
+ comments: ({
2841
+ created_at: number & {
2842
+ __brand: "UnixTimestamp";
2843
+ };
2844
+ created_by: string | null;
2845
+ updated_at: number & {
2846
+ __brand: "UnixTimestamp";
2847
+ };
2848
+ message: string;
2849
+ type: "note";
2850
+ _id?: string | undefined;
2851
+ updated_by?: string | undefined;
2852
+ } | {
2853
+ created_at: number & {
2854
+ __brand: "UnixTimestamp";
2855
+ };
2856
+ created_by: string | null;
2857
+ updated_at: number & {
2858
+ __brand: "UnixTimestamp";
2859
+ };
2860
+ type: "field_changed";
2861
+ field: string;
2862
+ _id?: string | undefined;
2863
+ updated_by?: string | undefined;
2864
+ metadata?: Record<string, unknown> | null | undefined;
2865
+ curr_value?: any;
2866
+ prev_value?: any;
2867
+ } | {
2868
+ created_at: number & {
2869
+ __brand: "UnixTimestamp";
2870
+ };
2871
+ created_by: string | null;
2872
+ updated_at: number & {
2873
+ __brand: "UnixTimestamp";
2874
+ };
2875
+ type: "crud";
2876
+ action: "create" | "update" | "delete" | "archive" | "restore";
2877
+ _id?: string | undefined;
2878
+ updated_by?: string | undefined;
2879
+ })[];
2880
+ has_bench: "unknown" | "available" | "unavailable";
2881
+ has_network_map: "unknown" | "available" | "unavailable";
2882
+ has_schedules: "unknown" | "available" | "unavailable";
2883
+ has_shelter: "unknown" | "available" | "unavailable";
2884
+ has_stop_sign: "unknown" | "available" | "unavailable";
2885
+ municipality_id: string;
2886
+ parish_id: string | null;
2887
+ shelter_code: string | null;
2888
+ shelter_maintainer: string | null;
2889
+ is_deleted: boolean;
2890
+ jurisdiction: "unknown" | "ip" | "municipality" | "other";
2891
+ legacy_id: string | null;
2892
+ lifecycle_status: "draft" | "active" | "inactive" | "provisional" | "seasonal" | "voided";
2893
+ new_name: string | null;
2894
+ tts_name: string;
2895
+ district_id: string;
2896
+ locality_id: string | null;
2897
+ bench_status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok";
2898
+ electricity_status: "unknown" | "available" | "unavailable";
2899
+ pole_status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok";
2900
+ road_type: "unknown" | "complementary_itinerary" | "highway" | "main_itinerary" | "national_road" | "regional_road" | "secondary_road";
2901
+ shelter_frame_size: [number, number] | null;
2902
+ shelter_installation_date: import("../index.js").UnixTimestamp | null;
2903
+ shelter_make: string | null;
2904
+ shelter_model: string | null;
2905
+ shelter_status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok";
2906
+ last_infrastructure_check: import("../index.js").UnixTimestamp | null;
2907
+ last_infrastructure_maintenance: import("../index.js").UnixTimestamp | null;
2908
+ last_schedules_check: import("../index.js").UnixTimestamp | null;
2909
+ last_schedules_maintenance: import("../index.js").UnixTimestamp | null;
2910
+ connections: ("ferry" | "light_rail" | "subway" | "train" | "boat" | "airport" | "bike_sharing" | "bike_parking" | "car_parking")[];
2911
+ facilities: ("school" | "fire_station" | "health_clinic" | "historic_building" | "hospital" | "police_station" | "shopping" | "transit_office" | "university" | "beach")[];
2912
+ equipment: ("pip" | "mupi" | "mini_pip")[];
2913
+ has_mupi: "unknown" | "available" | "unavailable";
2914
+ file_ids: string[];
2915
+ image_ids: string[];
2916
+ observations: string | null;
2917
+ updated_by?: string | undefined;
2918
+ }, {
2919
+ _id: string;
2920
+ created_at: number;
2921
+ updated_at: number;
2922
+ name: string;
2923
+ short_name: string;
2924
+ latitude: number;
2925
+ longitude: number;
2926
+ municipality_id: string;
2927
+ tts_name: string;
2928
+ district_id: string;
2929
+ created_by?: string | null | undefined;
2930
+ is_locked?: boolean | undefined;
2931
+ updated_by?: string | undefined;
2932
+ comments?: ({
2933
+ created_at: number;
2934
+ updated_at: number;
2935
+ message: string;
2936
+ type: "note";
2937
+ _id?: string | undefined;
2938
+ created_by?: string | null | undefined;
2939
+ updated_by?: string | undefined;
2940
+ } | {
2941
+ created_at: number;
2942
+ updated_at: number;
2943
+ type: "field_changed";
2944
+ field: string;
2945
+ _id?: string | undefined;
2946
+ created_by?: string | null | undefined;
2947
+ updated_by?: string | undefined;
2948
+ metadata?: Record<string, unknown> | null | undefined;
2949
+ curr_value?: any;
2950
+ prev_value?: any;
2951
+ } | {
2952
+ created_at: number;
2953
+ updated_at: number;
2954
+ type: "crud";
2955
+ action: "create" | "update" | "delete" | "archive" | "restore";
2956
+ _id?: string | undefined;
2957
+ created_by?: string | null | undefined;
2958
+ updated_by?: string | undefined;
2959
+ })[] | undefined;
2960
+ has_bench?: "unknown" | "available" | "unavailable" | undefined;
2961
+ has_network_map?: "unknown" | "available" | "unavailable" | undefined;
2962
+ has_schedules?: "unknown" | "available" | "unavailable" | undefined;
2963
+ has_shelter?: "unknown" | "available" | "unavailable" | undefined;
2964
+ has_stop_sign?: "unknown" | "available" | "unavailable" | undefined;
2965
+ parish_id?: string | null | undefined;
2966
+ shelter_code?: string | null | undefined;
2967
+ shelter_maintainer?: string | null | undefined;
2968
+ is_deleted?: boolean | undefined;
2969
+ jurisdiction?: "unknown" | "ip" | "municipality" | "other" | undefined;
2970
+ legacy_id?: string | null | undefined;
2971
+ lifecycle_status?: "draft" | "active" | "inactive" | "provisional" | "seasonal" | "voided" | undefined;
2972
+ new_name?: string | null | undefined;
2973
+ locality_id?: string | null | undefined;
2974
+ bench_status?: "unknown" | "not_applicable" | "missing" | "damaged" | "ok" | undefined;
2975
+ electricity_status?: "unknown" | "available" | "unavailable" | undefined;
2976
+ pole_status?: "unknown" | "not_applicable" | "missing" | "damaged" | "ok" | undefined;
2977
+ road_type?: "unknown" | "complementary_itinerary" | "highway" | "main_itinerary" | "national_road" | "regional_road" | "secondary_road" | undefined;
2978
+ shelter_frame_size?: [number, number] | null | undefined;
2979
+ shelter_installation_date?: number | null | undefined;
2980
+ shelter_make?: string | null | undefined;
2981
+ shelter_model?: string | null | undefined;
2982
+ shelter_status?: "unknown" | "not_applicable" | "missing" | "damaged" | "ok" | undefined;
2983
+ last_infrastructure_check?: number | null | undefined;
2984
+ last_infrastructure_maintenance?: number | null | undefined;
2985
+ last_schedules_check?: number | null | undefined;
2986
+ last_schedules_maintenance?: number | null | undefined;
2987
+ connections?: ("ferry" | "light_rail" | "subway" | "train" | "boat" | "airport" | "bike_sharing" | "bike_parking" | "car_parking")[] | undefined;
2988
+ facilities?: ("school" | "fire_station" | "health_clinic" | "historic_building" | "hospital" | "police_station" | "shopping" | "transit_office" | "university" | "beach")[] | undefined;
2989
+ equipment?: ("pip" | "mupi" | "mini_pip")[] | undefined;
2990
+ has_mupi?: "unknown" | "available" | "unavailable" | undefined;
2991
+ file_ids?: string[] | undefined;
2992
+ image_ids?: string[] | undefined;
2993
+ observations?: string | null | undefined;
2994
+ }>>>;
2995
+ stop_id: z.ZodString;
2996
+ timepoint: z.ZodDefault<z.ZodBoolean>;
2997
+ zones: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2998
+ }, "strip", z.ZodTypeAny, {
2999
+ _id: string;
3000
+ stop_id: string;
3001
+ allow_drop_off: boolean;
3002
+ allow_pickup: boolean;
3003
+ distance_delta: number | null;
3004
+ timepoint: boolean;
3005
+ zones?: string[] | undefined;
3006
+ stop?: {
3007
+ _id: string;
3008
+ created_at: number & {
3009
+ __brand: "UnixTimestamp";
3010
+ };
3011
+ created_by: string | null;
3012
+ is_locked: boolean;
3013
+ updated_at: number & {
3014
+ __brand: "UnixTimestamp";
3015
+ };
3016
+ name: string;
3017
+ short_name: string;
3018
+ latitude: number;
3019
+ longitude: number;
3020
+ comments: ({
3021
+ created_at: number & {
3022
+ __brand: "UnixTimestamp";
3023
+ };
3024
+ created_by: string | null;
3025
+ updated_at: number & {
3026
+ __brand: "UnixTimestamp";
3027
+ };
3028
+ message: string;
3029
+ type: "note";
3030
+ _id?: string | undefined;
3031
+ updated_by?: string | undefined;
3032
+ } | {
3033
+ created_at: number & {
3034
+ __brand: "UnixTimestamp";
3035
+ };
3036
+ created_by: string | null;
3037
+ updated_at: number & {
3038
+ __brand: "UnixTimestamp";
3039
+ };
3040
+ type: "field_changed";
3041
+ field: string;
3042
+ _id?: string | undefined;
3043
+ updated_by?: string | undefined;
3044
+ metadata?: Record<string, unknown> | null | undefined;
3045
+ curr_value?: any;
3046
+ prev_value?: any;
3047
+ } | {
3048
+ created_at: number & {
3049
+ __brand: "UnixTimestamp";
3050
+ };
3051
+ created_by: string | null;
3052
+ updated_at: number & {
3053
+ __brand: "UnixTimestamp";
3054
+ };
3055
+ type: "crud";
3056
+ action: "create" | "update" | "delete" | "archive" | "restore";
3057
+ _id?: string | undefined;
3058
+ updated_by?: string | undefined;
3059
+ })[];
3060
+ has_bench: "unknown" | "available" | "unavailable";
3061
+ has_network_map: "unknown" | "available" | "unavailable";
3062
+ has_schedules: "unknown" | "available" | "unavailable";
3063
+ has_shelter: "unknown" | "available" | "unavailable";
3064
+ has_stop_sign: "unknown" | "available" | "unavailable";
3065
+ municipality_id: string;
3066
+ parish_id: string | null;
3067
+ shelter_code: string | null;
3068
+ shelter_maintainer: string | null;
3069
+ is_deleted: boolean;
3070
+ jurisdiction: "unknown" | "ip" | "municipality" | "other";
3071
+ legacy_id: string | null;
3072
+ lifecycle_status: "draft" | "active" | "inactive" | "provisional" | "seasonal" | "voided";
3073
+ new_name: string | null;
3074
+ tts_name: string;
3075
+ district_id: string;
3076
+ locality_id: string | null;
3077
+ bench_status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok";
3078
+ electricity_status: "unknown" | "available" | "unavailable";
3079
+ pole_status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok";
3080
+ road_type: "unknown" | "complementary_itinerary" | "highway" | "main_itinerary" | "national_road" | "regional_road" | "secondary_road";
3081
+ shelter_frame_size: [number, number] | null;
3082
+ shelter_installation_date: import("../index.js").UnixTimestamp | null;
3083
+ shelter_make: string | null;
3084
+ shelter_model: string | null;
3085
+ shelter_status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok";
3086
+ last_infrastructure_check: import("../index.js").UnixTimestamp | null;
3087
+ last_infrastructure_maintenance: import("../index.js").UnixTimestamp | null;
3088
+ last_schedules_check: import("../index.js").UnixTimestamp | null;
3089
+ last_schedules_maintenance: import("../index.js").UnixTimestamp | null;
3090
+ connections: ("ferry" | "light_rail" | "subway" | "train" | "boat" | "airport" | "bike_sharing" | "bike_parking" | "car_parking")[];
3091
+ facilities: ("school" | "fire_station" | "health_clinic" | "historic_building" | "hospital" | "police_station" | "shopping" | "transit_office" | "university" | "beach")[];
3092
+ equipment: ("pip" | "mupi" | "mini_pip")[];
3093
+ has_mupi: "unknown" | "available" | "unavailable";
3094
+ file_ids: string[];
3095
+ image_ids: string[];
3096
+ observations: string | null;
3097
+ updated_by?: string | undefined;
3098
+ } | null | undefined;
3099
+ }, {
3100
+ _id: string;
3101
+ stop_id: string;
3102
+ zones?: string[] | undefined;
3103
+ allow_drop_off?: boolean | undefined;
3104
+ allow_pickup?: boolean | undefined;
3105
+ distance_delta?: number | null | undefined;
3106
+ stop?: {
3107
+ _id: string;
3108
+ created_at: number;
3109
+ updated_at: number;
3110
+ name: string;
3111
+ short_name: string;
3112
+ latitude: number;
3113
+ longitude: number;
3114
+ municipality_id: string;
3115
+ tts_name: string;
3116
+ district_id: string;
3117
+ created_by?: string | null | undefined;
3118
+ is_locked?: boolean | undefined;
3119
+ updated_by?: string | undefined;
3120
+ comments?: ({
3121
+ created_at: number;
3122
+ updated_at: number;
3123
+ message: string;
3124
+ type: "note";
3125
+ _id?: string | undefined;
3126
+ created_by?: string | null | undefined;
3127
+ updated_by?: string | undefined;
3128
+ } | {
3129
+ created_at: number;
3130
+ updated_at: number;
3131
+ type: "field_changed";
3132
+ field: string;
3133
+ _id?: string | undefined;
3134
+ created_by?: string | null | undefined;
3135
+ updated_by?: string | undefined;
3136
+ metadata?: Record<string, unknown> | null | undefined;
3137
+ curr_value?: any;
3138
+ prev_value?: any;
3139
+ } | {
3140
+ created_at: number;
3141
+ updated_at: number;
3142
+ type: "crud";
3143
+ action: "create" | "update" | "delete" | "archive" | "restore";
3144
+ _id?: string | undefined;
3145
+ created_by?: string | null | undefined;
3146
+ updated_by?: string | undefined;
3147
+ })[] | undefined;
3148
+ has_bench?: "unknown" | "available" | "unavailable" | undefined;
3149
+ has_network_map?: "unknown" | "available" | "unavailable" | undefined;
3150
+ has_schedules?: "unknown" | "available" | "unavailable" | undefined;
3151
+ has_shelter?: "unknown" | "available" | "unavailable" | undefined;
3152
+ has_stop_sign?: "unknown" | "available" | "unavailable" | undefined;
3153
+ parish_id?: string | null | undefined;
3154
+ shelter_code?: string | null | undefined;
3155
+ shelter_maintainer?: string | null | undefined;
3156
+ is_deleted?: boolean | undefined;
3157
+ jurisdiction?: "unknown" | "ip" | "municipality" | "other" | undefined;
3158
+ legacy_id?: string | null | undefined;
3159
+ lifecycle_status?: "draft" | "active" | "inactive" | "provisional" | "seasonal" | "voided" | undefined;
3160
+ new_name?: string | null | undefined;
3161
+ locality_id?: string | null | undefined;
3162
+ bench_status?: "unknown" | "not_applicable" | "missing" | "damaged" | "ok" | undefined;
3163
+ electricity_status?: "unknown" | "available" | "unavailable" | undefined;
3164
+ pole_status?: "unknown" | "not_applicable" | "missing" | "damaged" | "ok" | undefined;
3165
+ road_type?: "unknown" | "complementary_itinerary" | "highway" | "main_itinerary" | "national_road" | "regional_road" | "secondary_road" | undefined;
3166
+ shelter_frame_size?: [number, number] | null | undefined;
3167
+ shelter_installation_date?: number | null | undefined;
3168
+ shelter_make?: string | null | undefined;
3169
+ shelter_model?: string | null | undefined;
3170
+ shelter_status?: "unknown" | "not_applicable" | "missing" | "damaged" | "ok" | undefined;
3171
+ last_infrastructure_check?: number | null | undefined;
3172
+ last_infrastructure_maintenance?: number | null | undefined;
3173
+ last_schedules_check?: number | null | undefined;
3174
+ last_schedules_maintenance?: number | null | undefined;
3175
+ connections?: ("ferry" | "light_rail" | "subway" | "train" | "boat" | "airport" | "bike_sharing" | "bike_parking" | "car_parking")[] | undefined;
3176
+ facilities?: ("school" | "fire_station" | "health_clinic" | "historic_building" | "hospital" | "police_station" | "shopping" | "transit_office" | "university" | "beach")[] | undefined;
3177
+ equipment?: ("pip" | "mupi" | "mini_pip")[] | undefined;
3178
+ has_mupi?: "unknown" | "available" | "unavailable" | undefined;
3179
+ file_ids?: string[] | undefined;
3180
+ image_ids?: string[] | undefined;
3181
+ observations?: string | null | undefined;
3182
+ } | null | undefined;
3183
+ timepoint?: boolean | undefined;
3184
+ }>, "many">>>;
3185
+ shape: z.ZodOptional<z.ZodOptional<z.ZodObject<{
3186
+ extension: z.ZodNumber;
3187
+ geojson: z.ZodObject<{
3188
+ geometry: z.ZodObject<{
3189
+ coordinates: z.ZodArray<z.ZodArray<z.ZodNumber, "many">, "many">;
3190
+ type: z.ZodDefault<z.ZodString>;
3191
+ }, "strip", z.ZodTypeAny, {
3192
+ type: string;
3193
+ coordinates: number[][];
3194
+ }, {
3195
+ coordinates: number[][];
3196
+ type?: string | undefined;
3197
+ }>;
3198
+ properties: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
3199
+ type: z.ZodDefault<z.ZodString>;
3200
+ }, "strip", z.ZodTypeAny, {
3201
+ type: string;
3202
+ geometry: {
3203
+ type: string;
3204
+ coordinates: number[][];
3205
+ };
3206
+ properties?: {} | undefined;
3207
+ }, {
3208
+ geometry: {
3209
+ coordinates: number[][];
3210
+ type?: string | undefined;
3211
+ };
3212
+ type?: string | undefined;
3213
+ properties?: {} | undefined;
3214
+ }>;
3215
+ }, "strip", z.ZodTypeAny, {
3216
+ geojson: {
3217
+ type: string;
3218
+ geometry: {
3219
+ type: string;
3220
+ coordinates: number[][];
3221
+ };
3222
+ properties?: {} | undefined;
3223
+ };
3224
+ extension: number;
3225
+ }, {
3226
+ geojson: {
3227
+ geometry: {
3228
+ coordinates: number[][];
3229
+ type?: string | undefined;
3230
+ };
3231
+ type?: string | undefined;
3232
+ properties?: {} | undefined;
3233
+ };
3234
+ extension: number;
3235
+ }>>>;
3236
+ line_id: z.ZodOptional<z.ZodString>;
3237
+ headsign: z.ZodOptional<z.ZodString>;
3238
+ route_id: z.ZodOptional<z.ZodString>;
3239
+ destination: z.ZodOptional<z.ZodString>;
3240
+ direction: z.ZodOptional<z.ZodDefault<z.ZodEnum<["0", "1"]>>>;
3241
+ origin: z.ZodOptional<z.ZodString>;
3242
+ presets: z.ZodOptional<z.ZodOptional<z.ZodObject<{
3243
+ dwell_time: z.ZodDefault<z.ZodNumber>;
3244
+ velocity: z.ZodDefault<z.ZodNumber>;
3245
+ }, "strip", z.ZodTypeAny, {
3246
+ dwell_time: number;
3247
+ velocity: number;
3248
+ }, {
3249
+ dwell_time?: number | undefined;
3250
+ velocity?: number | undefined;
3251
+ }>>>;
3252
+ rules: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
3253
+ _id: z.ZodOptional<z.ZodString>;
3254
+ name: z.ZodOptional<z.ZodString>;
3255
+ operatingMode: z.ZodNativeEnum<typeof import("./scheduleRule.js").OPERATING_MODE>;
3256
+ periodIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3257
+ weekdays: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<{
3258
+ readonly Fri: 5;
3259
+ readonly Mon: 1;
3260
+ readonly Sat: 6;
3261
+ readonly Sun: 7;
3262
+ readonly Thu: 4;
3263
+ readonly Tue: 2;
3264
+ readonly Wed: 3;
3265
+ }>, "many">>;
3266
+ holidays: z.ZodOptional<z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
3267
+ mode: z.ZodLiteral<"ignore">;
3268
+ }, "strip", z.ZodTypeAny, {
3269
+ mode: "ignore";
3270
+ }, {
3271
+ mode: "ignore";
3272
+ }>, z.ZodObject<{
3273
+ mode: z.ZodLiteral<"all">;
3274
+ }, "strip", z.ZodTypeAny, {
3275
+ mode: "all";
3276
+ }, {
3277
+ mode: "all";
3278
+ }>, z.ZodObject<{
3279
+ ids: z.ZodArray<z.ZodString, "many">;
3280
+ mode: z.ZodLiteral<"specific">;
3281
+ }, "strip", z.ZodTypeAny, {
3282
+ mode: "specific";
3283
+ ids: string[];
3284
+ }, {
3285
+ mode: "specific";
3286
+ ids: string[];
3287
+ }>]>>;
3288
+ events: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3289
+ travelTime: z.ZodOptional<z.ZodString>;
3290
+ timePoints: z.ZodArray<z.ZodString, "many">;
3291
+ }, "strip", z.ZodTypeAny, {
3292
+ operatingMode: import("./scheduleRule.js").OPERATING_MODE;
3293
+ timePoints: string[];
3294
+ _id?: string | undefined;
3295
+ name?: string | undefined;
3296
+ periodIds?: string[] | undefined;
3297
+ weekdays?: (1 | 2 | 3 | 5 | 4 | 6 | 7)[] | undefined;
3298
+ holidays?: {
3299
+ mode: "ignore";
3300
+ } | {
3301
+ mode: "all";
3302
+ } | {
3303
+ mode: "specific";
3304
+ ids: string[];
3305
+ } | undefined;
3306
+ events?: string[] | undefined;
3307
+ travelTime?: string | undefined;
3308
+ }, {
3309
+ operatingMode: import("./scheduleRule.js").OPERATING_MODE;
3310
+ timePoints: string[];
3311
+ _id?: string | undefined;
3312
+ name?: string | undefined;
3313
+ periodIds?: string[] | undefined;
3314
+ weekdays?: (1 | 2 | 3 | 5 | 4 | 6 | 7)[] | undefined;
3315
+ holidays?: {
3316
+ mode: "ignore";
3317
+ } | {
3318
+ mode: "all";
3319
+ } | {
3320
+ mode: "specific";
3321
+ ids: string[];
3322
+ } | undefined;
3323
+ events?: string[] | undefined;
3324
+ travelTime?: string | undefined;
3325
+ }>, "many">>>>;
3326
+ }, "strip", z.ZodTypeAny, {
3327
+ is_locked?: boolean | undefined;
3328
+ updated_by?: string | undefined;
3329
+ code?: string | undefined;
3330
+ path?: {
3331
+ _id: string;
3332
+ stop_id: string;
3333
+ allow_drop_off: boolean;
3334
+ allow_pickup: boolean;
3335
+ distance_delta: number | null;
3336
+ timepoint: boolean;
3337
+ zones?: string[] | undefined;
3338
+ stop?: {
3339
+ _id: string;
3340
+ created_at: number & {
3341
+ __brand: "UnixTimestamp";
3342
+ };
3343
+ created_by: string | null;
3344
+ is_locked: boolean;
3345
+ updated_at: number & {
3346
+ __brand: "UnixTimestamp";
3347
+ };
3348
+ name: string;
3349
+ short_name: string;
3350
+ latitude: number;
3351
+ longitude: number;
3352
+ comments: ({
3353
+ created_at: number & {
3354
+ __brand: "UnixTimestamp";
3355
+ };
3356
+ created_by: string | null;
3357
+ updated_at: number & {
3358
+ __brand: "UnixTimestamp";
3359
+ };
3360
+ message: string;
3361
+ type: "note";
3362
+ _id?: string | undefined;
3363
+ updated_by?: string | undefined;
3364
+ } | {
3365
+ created_at: number & {
3366
+ __brand: "UnixTimestamp";
3367
+ };
3368
+ created_by: string | null;
3369
+ updated_at: number & {
3370
+ __brand: "UnixTimestamp";
3371
+ };
3372
+ type: "field_changed";
3373
+ field: string;
3374
+ _id?: string | undefined;
3375
+ updated_by?: string | undefined;
3376
+ metadata?: Record<string, unknown> | null | undefined;
3377
+ curr_value?: any;
3378
+ prev_value?: any;
3379
+ } | {
3380
+ created_at: number & {
3381
+ __brand: "UnixTimestamp";
3382
+ };
3383
+ created_by: string | null;
3384
+ updated_at: number & {
3385
+ __brand: "UnixTimestamp";
3386
+ };
3387
+ type: "crud";
3388
+ action: "create" | "update" | "delete" | "archive" | "restore";
3389
+ _id?: string | undefined;
3390
+ updated_by?: string | undefined;
3391
+ })[];
3392
+ has_bench: "unknown" | "available" | "unavailable";
3393
+ has_network_map: "unknown" | "available" | "unavailable";
3394
+ has_schedules: "unknown" | "available" | "unavailable";
3395
+ has_shelter: "unknown" | "available" | "unavailable";
3396
+ has_stop_sign: "unknown" | "available" | "unavailable";
3397
+ municipality_id: string;
3398
+ parish_id: string | null;
3399
+ shelter_code: string | null;
3400
+ shelter_maintainer: string | null;
3401
+ is_deleted: boolean;
3402
+ jurisdiction: "unknown" | "ip" | "municipality" | "other";
3403
+ legacy_id: string | null;
3404
+ lifecycle_status: "draft" | "active" | "inactive" | "provisional" | "seasonal" | "voided";
3405
+ new_name: string | null;
3406
+ tts_name: string;
3407
+ district_id: string;
3408
+ locality_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_frame_size: [number, number] | null;
3414
+ shelter_installation_date: import("../index.js").UnixTimestamp | null;
3415
+ shelter_make: string | null;
3416
+ shelter_model: string | null;
3417
+ shelter_status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok";
3418
+ last_infrastructure_check: import("../index.js").UnixTimestamp | null;
3419
+ last_infrastructure_maintenance: import("../index.js").UnixTimestamp | null;
3420
+ last_schedules_check: import("../index.js").UnixTimestamp | null;
3421
+ last_schedules_maintenance: import("../index.js").UnixTimestamp | null;
3422
+ connections: ("ferry" | "light_rail" | "subway" | "train" | "boat" | "airport" | "bike_sharing" | "bike_parking" | "car_parking")[];
3423
+ facilities: ("school" | "fire_station" | "health_clinic" | "historic_building" | "hospital" | "police_station" | "shopping" | "transit_office" | "university" | "beach")[];
3424
+ equipment: ("pip" | "mupi" | "mini_pip")[];
3425
+ has_mupi: "unknown" | "available" | "unavailable";
3426
+ file_ids: string[];
3427
+ image_ids: string[];
3428
+ observations: string | null;
3429
+ updated_by?: string | undefined;
3430
+ } | null | undefined;
3431
+ }[] | undefined;
3432
+ shape?: {
3433
+ geojson: {
3434
+ type: string;
3435
+ geometry: {
3436
+ type: string;
3437
+ coordinates: number[][];
3438
+ };
3439
+ properties?: {} | undefined;
3440
+ };
3441
+ extension: number;
3442
+ } | undefined;
3443
+ line_id?: string | undefined;
3444
+ headsign?: string | undefined;
3445
+ route_id?: string | undefined;
3446
+ destination?: string | undefined;
3447
+ direction?: "0" | "1" | undefined;
3448
+ origin?: string | undefined;
3449
+ presets?: {
3450
+ dwell_time: number;
3451
+ velocity: number;
3452
+ } | undefined;
3453
+ rules?: {
3454
+ operatingMode: import("./scheduleRule.js").OPERATING_MODE;
3455
+ timePoints: string[];
3456
+ _id?: string | undefined;
3457
+ name?: string | undefined;
3458
+ periodIds?: string[] | undefined;
3459
+ weekdays?: (1 | 2 | 3 | 5 | 4 | 6 | 7)[] | undefined;
3460
+ holidays?: {
3461
+ mode: "ignore";
3462
+ } | {
3463
+ mode: "all";
3464
+ } | {
3465
+ mode: "specific";
3466
+ ids: string[];
3467
+ } | undefined;
3468
+ events?: string[] | undefined;
3469
+ travelTime?: string | undefined;
3470
+ }[] | undefined;
3471
+ }, {
3472
+ is_locked?: boolean | undefined;
3473
+ updated_by?: string | undefined;
3474
+ code?: string | undefined;
3475
+ path?: {
3476
+ _id: string;
3477
+ stop_id: string;
3478
+ zones?: string[] | undefined;
3479
+ allow_drop_off?: boolean | undefined;
3480
+ allow_pickup?: boolean | undefined;
3481
+ distance_delta?: number | null | undefined;
3482
+ stop?: {
3483
+ _id: string;
3484
+ created_at: number;
3485
+ updated_at: number;
3486
+ name: string;
3487
+ short_name: string;
3488
+ latitude: number;
3489
+ longitude: number;
3490
+ municipality_id: string;
3491
+ tts_name: string;
3492
+ district_id: string;
3493
+ created_by?: string | null | undefined;
3494
+ is_locked?: boolean | undefined;
3495
+ updated_by?: string | undefined;
3496
+ comments?: ({
3497
+ created_at: number;
3498
+ updated_at: number;
3499
+ message: string;
3500
+ type: "note";
3501
+ _id?: string | undefined;
3502
+ created_by?: string | null | undefined;
3503
+ updated_by?: string | undefined;
3504
+ } | {
3505
+ created_at: number;
3506
+ updated_at: number;
3507
+ type: "field_changed";
3508
+ field: string;
3509
+ _id?: string | undefined;
3510
+ created_by?: string | null | undefined;
3511
+ updated_by?: string | undefined;
3512
+ metadata?: Record<string, unknown> | null | undefined;
3513
+ curr_value?: any;
3514
+ prev_value?: any;
3515
+ } | {
3516
+ created_at: number;
3517
+ updated_at: number;
3518
+ type: "crud";
3519
+ action: "create" | "update" | "delete" | "archive" | "restore";
3520
+ _id?: string | undefined;
3521
+ created_by?: string | null | undefined;
3522
+ updated_by?: string | undefined;
3523
+ })[] | undefined;
3524
+ has_bench?: "unknown" | "available" | "unavailable" | undefined;
3525
+ has_network_map?: "unknown" | "available" | "unavailable" | undefined;
3526
+ has_schedules?: "unknown" | "available" | "unavailable" | undefined;
3527
+ has_shelter?: "unknown" | "available" | "unavailable" | undefined;
3528
+ has_stop_sign?: "unknown" | "available" | "unavailable" | undefined;
3529
+ parish_id?: string | null | undefined;
3530
+ shelter_code?: string | null | undefined;
3531
+ shelter_maintainer?: string | null | undefined;
3532
+ is_deleted?: boolean | undefined;
3533
+ jurisdiction?: "unknown" | "ip" | "municipality" | "other" | undefined;
3534
+ legacy_id?: string | null | undefined;
3535
+ lifecycle_status?: "draft" | "active" | "inactive" | "provisional" | "seasonal" | "voided" | undefined;
3536
+ new_name?: string | null | undefined;
3537
+ locality_id?: string | null | undefined;
3538
+ bench_status?: "unknown" | "not_applicable" | "missing" | "damaged" | "ok" | undefined;
3539
+ electricity_status?: "unknown" | "available" | "unavailable" | undefined;
3540
+ pole_status?: "unknown" | "not_applicable" | "missing" | "damaged" | "ok" | undefined;
3541
+ road_type?: "unknown" | "complementary_itinerary" | "highway" | "main_itinerary" | "national_road" | "regional_road" | "secondary_road" | undefined;
3542
+ shelter_frame_size?: [number, number] | null | undefined;
3543
+ shelter_installation_date?: number | null | undefined;
3544
+ shelter_make?: string | null | undefined;
3545
+ shelter_model?: string | null | undefined;
3546
+ shelter_status?: "unknown" | "not_applicable" | "missing" | "damaged" | "ok" | undefined;
3547
+ last_infrastructure_check?: number | null | undefined;
3548
+ last_infrastructure_maintenance?: number | null | undefined;
3549
+ last_schedules_check?: number | null | undefined;
3550
+ last_schedules_maintenance?: number | null | undefined;
3551
+ connections?: ("ferry" | "light_rail" | "subway" | "train" | "boat" | "airport" | "bike_sharing" | "bike_parking" | "car_parking")[] | undefined;
3552
+ facilities?: ("school" | "fire_station" | "health_clinic" | "historic_building" | "hospital" | "police_station" | "shopping" | "transit_office" | "university" | "beach")[] | undefined;
3553
+ equipment?: ("pip" | "mupi" | "mini_pip")[] | undefined;
3554
+ has_mupi?: "unknown" | "available" | "unavailable" | undefined;
3555
+ file_ids?: string[] | undefined;
3556
+ image_ids?: string[] | undefined;
3557
+ observations?: string | null | undefined;
3558
+ } | null | undefined;
3559
+ timepoint?: boolean | undefined;
3560
+ }[] | undefined;
3561
+ shape?: {
3562
+ geojson: {
3563
+ geometry: {
3564
+ coordinates: number[][];
3565
+ type?: string | undefined;
3566
+ };
3567
+ type?: string | undefined;
3568
+ properties?: {} | undefined;
3569
+ };
3570
+ extension: number;
3571
+ } | undefined;
3572
+ line_id?: string | undefined;
3573
+ headsign?: string | undefined;
3574
+ route_id?: string | undefined;
3575
+ destination?: string | undefined;
3576
+ direction?: "0" | "1" | undefined;
3577
+ origin?: string | undefined;
3578
+ presets?: {
3579
+ dwell_time?: number | undefined;
3580
+ velocity?: number | undefined;
3581
+ } | undefined;
3582
+ rules?: {
3583
+ operatingMode: import("./scheduleRule.js").OPERATING_MODE;
3584
+ timePoints: string[];
3585
+ _id?: string | undefined;
3586
+ name?: string | undefined;
3587
+ periodIds?: string[] | undefined;
3588
+ weekdays?: (1 | 2 | 3 | 5 | 4 | 6 | 7)[] | undefined;
3589
+ holidays?: {
3590
+ mode: "ignore";
3591
+ } | {
3592
+ mode: "all";
3593
+ } | {
3594
+ mode: "specific";
3595
+ ids: string[];
3596
+ } | undefined;
3597
+ events?: string[] | undefined;
3598
+ travelTime?: string | undefined;
3599
+ }[] | undefined;
3600
+ }>;
3601
+ export type Pattern = z.infer<typeof PatternSchema>;
3602
+ export type CreatePatternDto = z.infer<typeof CreatePatternSchema>;
3603
+ export type UpdatePatternDto = z.infer<typeof UpdatePatternSchema>;
3604
+ export type PatternSimplified = z.infer<typeof PatternSimplifiedSchema>;
3605
+ export type Path = z.infer<typeof PathSchema>;
3606
+ /**
3607
+ * Pattern with populated stop data (returned by API)
3608
+ */