@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
@@ -1,7 +1,7 @@
1
1
  import { z } from 'zod';
2
2
  export declare const StopSchema: z.ZodObject<{
3
3
  created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
4
- created_by: z.ZodOptional<z.ZodString>;
4
+ created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
5
5
  is_locked: z.ZodDefault<z.ZodBoolean>;
6
6
  updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
7
7
  updated_by: z.ZodOptional<z.ZodString>;
@@ -50,7 +50,7 @@ export declare const StopSchema: z.ZodObject<{
50
50
  comments: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
51
51
  _id: z.ZodOptional<z.ZodString>;
52
52
  created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
53
- created_by: z.ZodOptional<z.ZodString>;
53
+ created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
54
54
  updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
55
55
  updated_by: z.ZodOptional<z.ZodString>;
56
56
  message: z.ZodString;
@@ -59,13 +59,13 @@ export declare const StopSchema: z.ZodObject<{
59
59
  created_at: number & {
60
60
  __brand: "UnixTimestamp";
61
61
  };
62
+ created_by: string | null;
62
63
  updated_at: number & {
63
64
  __brand: "UnixTimestamp";
64
65
  };
65
66
  message: string;
66
67
  type: "note";
67
68
  _id?: string | undefined;
68
- created_by?: string | undefined;
69
69
  updated_by?: string | undefined;
70
70
  }, {
71
71
  created_at: number;
@@ -73,12 +73,12 @@ export declare const StopSchema: z.ZodObject<{
73
73
  message: string;
74
74
  type: "note";
75
75
  _id?: string | undefined;
76
- created_by?: string | undefined;
76
+ created_by?: string | null | undefined;
77
77
  updated_by?: string | undefined;
78
78
  }>, z.ZodObject<{
79
79
  _id: z.ZodOptional<z.ZodString>;
80
80
  created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
81
- created_by: z.ZodOptional<z.ZodString>;
81
+ created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
82
82
  updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
83
83
  updated_by: z.ZodOptional<z.ZodString>;
84
84
  type: z.ZodLiteral<"field_changed">;
@@ -90,13 +90,13 @@ export declare const StopSchema: z.ZodObject<{
90
90
  created_at: number & {
91
91
  __brand: "UnixTimestamp";
92
92
  };
93
+ created_by: string | null;
93
94
  updated_at: number & {
94
95
  __brand: "UnixTimestamp";
95
96
  };
96
97
  type: "field_changed";
97
98
  field: string;
98
99
  _id?: string | undefined;
99
- created_by?: string | undefined;
100
100
  updated_by?: string | undefined;
101
101
  metadata?: Record<string, unknown> | null | undefined;
102
102
  curr_value?: any;
@@ -107,7 +107,7 @@ export declare const StopSchema: z.ZodObject<{
107
107
  type: "field_changed";
108
108
  field: string;
109
109
  _id?: string | undefined;
110
- created_by?: string | undefined;
110
+ created_by?: string | null | undefined;
111
111
  updated_by?: string | undefined;
112
112
  metadata?: Record<string, unknown> | null | undefined;
113
113
  curr_value?: any;
@@ -115,7 +115,7 @@ export declare const StopSchema: z.ZodObject<{
115
115
  }>, z.ZodObject<{
116
116
  _id: z.ZodOptional<z.ZodString>;
117
117
  created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
118
- created_by: z.ZodOptional<z.ZodString>;
118
+ created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
119
119
  updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
120
120
  updated_by: z.ZodOptional<z.ZodString>;
121
121
  type: z.ZodLiteral<"crud">;
@@ -124,13 +124,13 @@ export declare const StopSchema: z.ZodObject<{
124
124
  created_at: number & {
125
125
  __brand: "UnixTimestamp";
126
126
  };
127
+ created_by: string | null;
127
128
  updated_at: number & {
128
129
  __brand: "UnixTimestamp";
129
130
  };
130
131
  type: "crud";
131
132
  action: "create" | "update" | "delete" | "archive" | "restore";
132
133
  _id?: string | undefined;
133
- created_by?: string | undefined;
134
134
  updated_by?: string | undefined;
135
135
  }, {
136
136
  created_at: number;
@@ -138,31 +138,31 @@ export declare const StopSchema: z.ZodObject<{
138
138
  type: "crud";
139
139
  action: "create" | "update" | "delete" | "archive" | "restore";
140
140
  _id?: string | undefined;
141
- created_by?: string | undefined;
141
+ created_by?: string | null | undefined;
142
142
  updated_by?: string | undefined;
143
143
  }>]>, {
144
144
  created_at: number & {
145
145
  __brand: "UnixTimestamp";
146
146
  };
147
+ created_by: string | null;
147
148
  updated_at: number & {
148
149
  __brand: "UnixTimestamp";
149
150
  };
150
151
  message: string;
151
152
  type: "note";
152
153
  _id?: string | undefined;
153
- created_by?: string | undefined;
154
154
  updated_by?: string | undefined;
155
155
  } | {
156
156
  created_at: number & {
157
157
  __brand: "UnixTimestamp";
158
158
  };
159
+ created_by: string | null;
159
160
  updated_at: number & {
160
161
  __brand: "UnixTimestamp";
161
162
  };
162
163
  type: "field_changed";
163
164
  field: string;
164
165
  _id?: string | undefined;
165
- created_by?: string | undefined;
166
166
  updated_by?: string | undefined;
167
167
  metadata?: Record<string, unknown> | null | undefined;
168
168
  curr_value?: any;
@@ -171,13 +171,13 @@ export declare const StopSchema: z.ZodObject<{
171
171
  created_at: number & {
172
172
  __brand: "UnixTimestamp";
173
173
  };
174
+ created_by: string | null;
174
175
  updated_at: number & {
175
176
  __brand: "UnixTimestamp";
176
177
  };
177
178
  type: "crud";
178
179
  action: "create" | "update" | "delete" | "archive" | "restore";
179
180
  _id?: string | undefined;
180
- created_by?: string | undefined;
181
181
  updated_by?: string | undefined;
182
182
  }, {
183
183
  created_at: number;
@@ -185,7 +185,7 @@ export declare const StopSchema: z.ZodObject<{
185
185
  message: string;
186
186
  type: "note";
187
187
  _id?: string | undefined;
188
- created_by?: string | undefined;
188
+ created_by?: string | null | undefined;
189
189
  updated_by?: string | undefined;
190
190
  } | {
191
191
  created_at: number;
@@ -193,7 +193,7 @@ export declare const StopSchema: z.ZodObject<{
193
193
  type: "field_changed";
194
194
  field: string;
195
195
  _id?: string | undefined;
196
- created_by?: string | undefined;
196
+ created_by?: string | null | undefined;
197
197
  updated_by?: string | undefined;
198
198
  metadata?: Record<string, unknown> | null | undefined;
199
199
  curr_value?: any;
@@ -204,7 +204,7 @@ export declare const StopSchema: z.ZodObject<{
204
204
  type: "crud";
205
205
  action: "create" | "update" | "delete" | "archive" | "restore";
206
206
  _id?: string | undefined;
207
- created_by?: string | undefined;
207
+ created_by?: string | null | undefined;
208
208
  updated_by?: string | undefined;
209
209
  }>, "many">>;
210
210
  observations: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -213,6 +213,7 @@ export declare const StopSchema: z.ZodObject<{
213
213
  created_at: number & {
214
214
  __brand: "UnixTimestamp";
215
215
  };
216
+ created_by: string | null;
216
217
  is_locked: boolean;
217
218
  updated_at: number & {
218
219
  __brand: "UnixTimestamp";
@@ -225,25 +226,25 @@ export declare const StopSchema: z.ZodObject<{
225
226
  created_at: number & {
226
227
  __brand: "UnixTimestamp";
227
228
  };
229
+ created_by: string | null;
228
230
  updated_at: number & {
229
231
  __brand: "UnixTimestamp";
230
232
  };
231
233
  message: string;
232
234
  type: "note";
233
235
  _id?: string | undefined;
234
- created_by?: string | undefined;
235
236
  updated_by?: string | undefined;
236
237
  } | {
237
238
  created_at: number & {
238
239
  __brand: "UnixTimestamp";
239
240
  };
241
+ created_by: string | null;
240
242
  updated_at: number & {
241
243
  __brand: "UnixTimestamp";
242
244
  };
243
245
  type: "field_changed";
244
246
  field: string;
245
247
  _id?: string | undefined;
246
- created_by?: string | undefined;
247
248
  updated_by?: string | undefined;
248
249
  metadata?: Record<string, unknown> | null | undefined;
249
250
  curr_value?: any;
@@ -252,13 +253,13 @@ export declare const StopSchema: z.ZodObject<{
252
253
  created_at: number & {
253
254
  __brand: "UnixTimestamp";
254
255
  };
256
+ created_by: string | null;
255
257
  updated_at: number & {
256
258
  __brand: "UnixTimestamp";
257
259
  };
258
260
  type: "crud";
259
261
  action: "create" | "update" | "delete" | "archive" | "restore";
260
262
  _id?: string | undefined;
261
- created_by?: string | undefined;
262
263
  updated_by?: string | undefined;
263
264
  })[];
264
265
  has_bench: "unknown" | "available" | "unavailable";
@@ -298,7 +299,6 @@ export declare const StopSchema: z.ZodObject<{
298
299
  file_ids: string[];
299
300
  image_ids: string[];
300
301
  observations: string | null;
301
- created_by?: string | undefined;
302
302
  updated_by?: string | undefined;
303
303
  }, {
304
304
  _id: string;
@@ -311,7 +311,7 @@ export declare const StopSchema: z.ZodObject<{
311
311
  municipality_id: string;
312
312
  tts_name: string;
313
313
  district_id: string;
314
- created_by?: string | undefined;
314
+ created_by?: string | null | undefined;
315
315
  is_locked?: boolean | undefined;
316
316
  updated_by?: string | undefined;
317
317
  comments?: ({
@@ -320,7 +320,7 @@ export declare const StopSchema: z.ZodObject<{
320
320
  message: string;
321
321
  type: "note";
322
322
  _id?: string | undefined;
323
- created_by?: string | undefined;
323
+ created_by?: string | null | undefined;
324
324
  updated_by?: string | undefined;
325
325
  } | {
326
326
  created_at: number;
@@ -328,7 +328,7 @@ export declare const StopSchema: z.ZodObject<{
328
328
  type: "field_changed";
329
329
  field: string;
330
330
  _id?: string | undefined;
331
- created_by?: string | undefined;
331
+ created_by?: string | null | undefined;
332
332
  updated_by?: string | undefined;
333
333
  metadata?: Record<string, unknown> | null | undefined;
334
334
  curr_value?: any;
@@ -339,7 +339,7 @@ export declare const StopSchema: z.ZodObject<{
339
339
  type: "crud";
340
340
  action: "create" | "update" | "delete" | "archive" | "restore";
341
341
  _id?: string | undefined;
342
- created_by?: string | undefined;
342
+ created_by?: string | null | undefined;
343
343
  updated_by?: string | undefined;
344
344
  })[] | undefined;
345
345
  has_bench?: "unknown" | "available" | "unavailable" | undefined;
@@ -379,7 +379,7 @@ export declare const StopSchema: z.ZodObject<{
379
379
  }>;
380
380
  export declare const CreateStopSchema: z.ZodObject<Omit<{
381
381
  created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
382
- created_by: z.ZodOptional<z.ZodString>;
382
+ created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
383
383
  is_locked: z.ZodDefault<z.ZodBoolean>;
384
384
  updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
385
385
  updated_by: z.ZodOptional<z.ZodString>;
@@ -428,7 +428,7 @@ export declare const CreateStopSchema: z.ZodObject<Omit<{
428
428
  comments: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
429
429
  _id: z.ZodOptional<z.ZodString>;
430
430
  created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
431
- created_by: z.ZodOptional<z.ZodString>;
431
+ created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
432
432
  updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
433
433
  updated_by: z.ZodOptional<z.ZodString>;
434
434
  message: z.ZodString;
@@ -437,13 +437,13 @@ export declare const CreateStopSchema: z.ZodObject<Omit<{
437
437
  created_at: number & {
438
438
  __brand: "UnixTimestamp";
439
439
  };
440
+ created_by: string | null;
440
441
  updated_at: number & {
441
442
  __brand: "UnixTimestamp";
442
443
  };
443
444
  message: string;
444
445
  type: "note";
445
446
  _id?: string | undefined;
446
- created_by?: string | undefined;
447
447
  updated_by?: string | undefined;
448
448
  }, {
449
449
  created_at: number;
@@ -451,12 +451,12 @@ export declare const CreateStopSchema: z.ZodObject<Omit<{
451
451
  message: string;
452
452
  type: "note";
453
453
  _id?: string | undefined;
454
- created_by?: string | undefined;
454
+ created_by?: string | null | undefined;
455
455
  updated_by?: string | undefined;
456
456
  }>, z.ZodObject<{
457
457
  _id: z.ZodOptional<z.ZodString>;
458
458
  created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
459
- created_by: z.ZodOptional<z.ZodString>;
459
+ created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
460
460
  updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
461
461
  updated_by: z.ZodOptional<z.ZodString>;
462
462
  type: z.ZodLiteral<"field_changed">;
@@ -468,13 +468,13 @@ export declare const CreateStopSchema: z.ZodObject<Omit<{
468
468
  created_at: number & {
469
469
  __brand: "UnixTimestamp";
470
470
  };
471
+ created_by: string | null;
471
472
  updated_at: number & {
472
473
  __brand: "UnixTimestamp";
473
474
  };
474
475
  type: "field_changed";
475
476
  field: string;
476
477
  _id?: string | undefined;
477
- created_by?: string | undefined;
478
478
  updated_by?: string | undefined;
479
479
  metadata?: Record<string, unknown> | null | undefined;
480
480
  curr_value?: any;
@@ -485,7 +485,7 @@ export declare const CreateStopSchema: z.ZodObject<Omit<{
485
485
  type: "field_changed";
486
486
  field: string;
487
487
  _id?: string | undefined;
488
- created_by?: string | undefined;
488
+ created_by?: string | null | undefined;
489
489
  updated_by?: string | undefined;
490
490
  metadata?: Record<string, unknown> | null | undefined;
491
491
  curr_value?: any;
@@ -493,7 +493,7 @@ export declare const CreateStopSchema: z.ZodObject<Omit<{
493
493
  }>, z.ZodObject<{
494
494
  _id: z.ZodOptional<z.ZodString>;
495
495
  created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
496
- created_by: z.ZodOptional<z.ZodString>;
496
+ created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
497
497
  updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
498
498
  updated_by: z.ZodOptional<z.ZodString>;
499
499
  type: z.ZodLiteral<"crud">;
@@ -502,13 +502,13 @@ export declare const CreateStopSchema: z.ZodObject<Omit<{
502
502
  created_at: number & {
503
503
  __brand: "UnixTimestamp";
504
504
  };
505
+ created_by: string | null;
505
506
  updated_at: number & {
506
507
  __brand: "UnixTimestamp";
507
508
  };
508
509
  type: "crud";
509
510
  action: "create" | "update" | "delete" | "archive" | "restore";
510
511
  _id?: string | undefined;
511
- created_by?: string | undefined;
512
512
  updated_by?: string | undefined;
513
513
  }, {
514
514
  created_at: number;
@@ -516,31 +516,31 @@ export declare const CreateStopSchema: z.ZodObject<Omit<{
516
516
  type: "crud";
517
517
  action: "create" | "update" | "delete" | "archive" | "restore";
518
518
  _id?: string | undefined;
519
- created_by?: string | undefined;
519
+ created_by?: string | null | undefined;
520
520
  updated_by?: string | undefined;
521
521
  }>]>, {
522
522
  created_at: number & {
523
523
  __brand: "UnixTimestamp";
524
524
  };
525
+ created_by: string | null;
525
526
  updated_at: number & {
526
527
  __brand: "UnixTimestamp";
527
528
  };
528
529
  message: string;
529
530
  type: "note";
530
531
  _id?: string | undefined;
531
- created_by?: string | undefined;
532
532
  updated_by?: string | undefined;
533
533
  } | {
534
534
  created_at: number & {
535
535
  __brand: "UnixTimestamp";
536
536
  };
537
+ created_by: string | null;
537
538
  updated_at: number & {
538
539
  __brand: "UnixTimestamp";
539
540
  };
540
541
  type: "field_changed";
541
542
  field: string;
542
543
  _id?: string | undefined;
543
- created_by?: string | undefined;
544
544
  updated_by?: string | undefined;
545
545
  metadata?: Record<string, unknown> | null | undefined;
546
546
  curr_value?: any;
@@ -549,13 +549,13 @@ export declare const CreateStopSchema: z.ZodObject<Omit<{
549
549
  created_at: number & {
550
550
  __brand: "UnixTimestamp";
551
551
  };
552
+ created_by: string | null;
552
553
  updated_at: number & {
553
554
  __brand: "UnixTimestamp";
554
555
  };
555
556
  type: "crud";
556
557
  action: "create" | "update" | "delete" | "archive" | "restore";
557
558
  _id?: string | undefined;
558
- created_by?: string | undefined;
559
559
  updated_by?: string | undefined;
560
560
  }, {
561
561
  created_at: number;
@@ -563,7 +563,7 @@ export declare const CreateStopSchema: z.ZodObject<Omit<{
563
563
  message: string;
564
564
  type: "note";
565
565
  _id?: string | undefined;
566
- created_by?: string | undefined;
566
+ created_by?: string | null | undefined;
567
567
  updated_by?: string | undefined;
568
568
  } | {
569
569
  created_at: number;
@@ -571,7 +571,7 @@ export declare const CreateStopSchema: z.ZodObject<Omit<{
571
571
  type: "field_changed";
572
572
  field: string;
573
573
  _id?: string | undefined;
574
- created_by?: string | undefined;
574
+ created_by?: string | null | undefined;
575
575
  updated_by?: string | undefined;
576
576
  metadata?: Record<string, unknown> | null | undefined;
577
577
  curr_value?: any;
@@ -582,11 +582,12 @@ export declare const CreateStopSchema: z.ZodObject<Omit<{
582
582
  type: "crud";
583
583
  action: "create" | "update" | "delete" | "archive" | "restore";
584
584
  _id?: string | undefined;
585
- created_by?: string | undefined;
585
+ created_by?: string | null | undefined;
586
586
  updated_by?: string | undefined;
587
587
  }>, "many">>;
588
588
  observations: z.ZodDefault<z.ZodNullable<z.ZodString>>;
589
589
  }, "_id" | "created_at" | "updated_at">, "strip", z.ZodTypeAny, {
590
+ created_by: string | null;
590
591
  is_locked: boolean;
591
592
  name: string;
592
593
  short_name: string;
@@ -596,25 +597,25 @@ export declare const CreateStopSchema: z.ZodObject<Omit<{
596
597
  created_at: number & {
597
598
  __brand: "UnixTimestamp";
598
599
  };
600
+ created_by: string | null;
599
601
  updated_at: number & {
600
602
  __brand: "UnixTimestamp";
601
603
  };
602
604
  message: string;
603
605
  type: "note";
604
606
  _id?: string | undefined;
605
- created_by?: string | undefined;
606
607
  updated_by?: string | undefined;
607
608
  } | {
608
609
  created_at: number & {
609
610
  __brand: "UnixTimestamp";
610
611
  };
612
+ created_by: string | null;
611
613
  updated_at: number & {
612
614
  __brand: "UnixTimestamp";
613
615
  };
614
616
  type: "field_changed";
615
617
  field: string;
616
618
  _id?: string | undefined;
617
- created_by?: string | undefined;
618
619
  updated_by?: string | undefined;
619
620
  metadata?: Record<string, unknown> | null | undefined;
620
621
  curr_value?: any;
@@ -623,13 +624,13 @@ export declare const CreateStopSchema: z.ZodObject<Omit<{
623
624
  created_at: number & {
624
625
  __brand: "UnixTimestamp";
625
626
  };
627
+ created_by: string | null;
626
628
  updated_at: number & {
627
629
  __brand: "UnixTimestamp";
628
630
  };
629
631
  type: "crud";
630
632
  action: "create" | "update" | "delete" | "archive" | "restore";
631
633
  _id?: string | undefined;
632
- created_by?: string | undefined;
633
634
  updated_by?: string | undefined;
634
635
  })[];
635
636
  has_bench: "unknown" | "available" | "unavailable";
@@ -669,7 +670,6 @@ export declare const CreateStopSchema: z.ZodObject<Omit<{
669
670
  file_ids: string[];
670
671
  image_ids: string[];
671
672
  observations: string | null;
672
- created_by?: string | undefined;
673
673
  updated_by?: string | undefined;
674
674
  }, {
675
675
  name: string;
@@ -679,7 +679,7 @@ export declare const CreateStopSchema: z.ZodObject<Omit<{
679
679
  municipality_id: string;
680
680
  tts_name: string;
681
681
  district_id: string;
682
- created_by?: string | undefined;
682
+ created_by?: string | null | undefined;
683
683
  is_locked?: boolean | undefined;
684
684
  updated_by?: string | undefined;
685
685
  comments?: ({
@@ -688,7 +688,7 @@ export declare const CreateStopSchema: z.ZodObject<Omit<{
688
688
  message: string;
689
689
  type: "note";
690
690
  _id?: string | undefined;
691
- created_by?: string | undefined;
691
+ created_by?: string | null | undefined;
692
692
  updated_by?: string | undefined;
693
693
  } | {
694
694
  created_at: number;
@@ -696,7 +696,7 @@ export declare const CreateStopSchema: z.ZodObject<Omit<{
696
696
  type: "field_changed";
697
697
  field: string;
698
698
  _id?: string | undefined;
699
- created_by?: string | undefined;
699
+ created_by?: string | null | undefined;
700
700
  updated_by?: string | undefined;
701
701
  metadata?: Record<string, unknown> | null | undefined;
702
702
  curr_value?: any;
@@ -707,7 +707,7 @@ export declare const CreateStopSchema: z.ZodObject<Omit<{
707
707
  type: "crud";
708
708
  action: "create" | "update" | "delete" | "archive" | "restore";
709
709
  _id?: string | undefined;
710
- created_by?: string | undefined;
710
+ created_by?: string | null | undefined;
711
711
  updated_by?: string | undefined;
712
712
  })[] | undefined;
713
713
  has_bench?: "unknown" | "available" | "unavailable" | undefined;
@@ -755,7 +755,7 @@ export declare const UpdateStopSchema: z.ZodObject<{
755
755
  comments: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
756
756
  _id: z.ZodOptional<z.ZodString>;
757
757
  created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
758
- created_by: z.ZodOptional<z.ZodString>;
758
+ created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
759
759
  updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
760
760
  updated_by: z.ZodOptional<z.ZodString>;
761
761
  message: z.ZodString;
@@ -764,13 +764,13 @@ export declare const UpdateStopSchema: z.ZodObject<{
764
764
  created_at: number & {
765
765
  __brand: "UnixTimestamp";
766
766
  };
767
+ created_by: string | null;
767
768
  updated_at: number & {
768
769
  __brand: "UnixTimestamp";
769
770
  };
770
771
  message: string;
771
772
  type: "note";
772
773
  _id?: string | undefined;
773
- created_by?: string | undefined;
774
774
  updated_by?: string | undefined;
775
775
  }, {
776
776
  created_at: number;
@@ -778,12 +778,12 @@ export declare const UpdateStopSchema: z.ZodObject<{
778
778
  message: string;
779
779
  type: "note";
780
780
  _id?: string | undefined;
781
- created_by?: string | undefined;
781
+ created_by?: string | null | undefined;
782
782
  updated_by?: string | undefined;
783
783
  }>, z.ZodObject<{
784
784
  _id: z.ZodOptional<z.ZodString>;
785
785
  created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
786
- created_by: z.ZodOptional<z.ZodString>;
786
+ created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
787
787
  updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
788
788
  updated_by: z.ZodOptional<z.ZodString>;
789
789
  type: z.ZodLiteral<"field_changed">;
@@ -795,13 +795,13 @@ export declare const UpdateStopSchema: z.ZodObject<{
795
795
  created_at: number & {
796
796
  __brand: "UnixTimestamp";
797
797
  };
798
+ created_by: string | null;
798
799
  updated_at: number & {
799
800
  __brand: "UnixTimestamp";
800
801
  };
801
802
  type: "field_changed";
802
803
  field: string;
803
804
  _id?: string | undefined;
804
- created_by?: string | undefined;
805
805
  updated_by?: string | undefined;
806
806
  metadata?: Record<string, unknown> | null | undefined;
807
807
  curr_value?: any;
@@ -812,7 +812,7 @@ export declare const UpdateStopSchema: z.ZodObject<{
812
812
  type: "field_changed";
813
813
  field: string;
814
814
  _id?: string | undefined;
815
- created_by?: string | undefined;
815
+ created_by?: string | null | undefined;
816
816
  updated_by?: string | undefined;
817
817
  metadata?: Record<string, unknown> | null | undefined;
818
818
  curr_value?: any;
@@ -820,7 +820,7 @@ export declare const UpdateStopSchema: z.ZodObject<{
820
820
  }>, z.ZodObject<{
821
821
  _id: z.ZodOptional<z.ZodString>;
822
822
  created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
823
- created_by: z.ZodOptional<z.ZodString>;
823
+ created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
824
824
  updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
825
825
  updated_by: z.ZodOptional<z.ZodString>;
826
826
  type: z.ZodLiteral<"crud">;
@@ -829,13 +829,13 @@ export declare const UpdateStopSchema: z.ZodObject<{
829
829
  created_at: number & {
830
830
  __brand: "UnixTimestamp";
831
831
  };
832
+ created_by: string | null;
832
833
  updated_at: number & {
833
834
  __brand: "UnixTimestamp";
834
835
  };
835
836
  type: "crud";
836
837
  action: "create" | "update" | "delete" | "archive" | "restore";
837
838
  _id?: string | undefined;
838
- created_by?: string | undefined;
839
839
  updated_by?: string | undefined;
840
840
  }, {
841
841
  created_at: number;
@@ -843,31 +843,31 @@ export declare const UpdateStopSchema: z.ZodObject<{
843
843
  type: "crud";
844
844
  action: "create" | "update" | "delete" | "archive" | "restore";
845
845
  _id?: string | undefined;
846
- created_by?: string | undefined;
846
+ created_by?: string | null | undefined;
847
847
  updated_by?: string | undefined;
848
848
  }>]>, {
849
849
  created_at: number & {
850
850
  __brand: "UnixTimestamp";
851
851
  };
852
+ created_by: string | null;
852
853
  updated_at: number & {
853
854
  __brand: "UnixTimestamp";
854
855
  };
855
856
  message: string;
856
857
  type: "note";
857
858
  _id?: string | undefined;
858
- created_by?: string | undefined;
859
859
  updated_by?: string | undefined;
860
860
  } | {
861
861
  created_at: number & {
862
862
  __brand: "UnixTimestamp";
863
863
  };
864
+ created_by: string | null;
864
865
  updated_at: number & {
865
866
  __brand: "UnixTimestamp";
866
867
  };
867
868
  type: "field_changed";
868
869
  field: string;
869
870
  _id?: string | undefined;
870
- created_by?: string | undefined;
871
871
  updated_by?: string | undefined;
872
872
  metadata?: Record<string, unknown> | null | undefined;
873
873
  curr_value?: any;
@@ -876,13 +876,13 @@ export declare const UpdateStopSchema: z.ZodObject<{
876
876
  created_at: number & {
877
877
  __brand: "UnixTimestamp";
878
878
  };
879
+ created_by: string | null;
879
880
  updated_at: number & {
880
881
  __brand: "UnixTimestamp";
881
882
  };
882
883
  type: "crud";
883
884
  action: "create" | "update" | "delete" | "archive" | "restore";
884
885
  _id?: string | undefined;
885
- created_by?: string | undefined;
886
886
  updated_by?: string | undefined;
887
887
  }, {
888
888
  created_at: number;
@@ -890,7 +890,7 @@ export declare const UpdateStopSchema: z.ZodObject<{
890
890
  message: string;
891
891
  type: "note";
892
892
  _id?: string | undefined;
893
- created_by?: string | undefined;
893
+ created_by?: string | null | undefined;
894
894
  updated_by?: string | undefined;
895
895
  } | {
896
896
  created_at: number;
@@ -898,7 +898,7 @@ export declare const UpdateStopSchema: z.ZodObject<{
898
898
  type: "field_changed";
899
899
  field: string;
900
900
  _id?: string | undefined;
901
- created_by?: string | undefined;
901
+ created_by?: string | null | undefined;
902
902
  updated_by?: string | undefined;
903
903
  metadata?: Record<string, unknown> | null | undefined;
904
904
  curr_value?: any;
@@ -909,7 +909,7 @@ export declare const UpdateStopSchema: z.ZodObject<{
909
909
  type: "crud";
910
910
  action: "create" | "update" | "delete" | "archive" | "restore";
911
911
  _id?: string | undefined;
912
- created_by?: string | undefined;
912
+ created_by?: string | null | undefined;
913
913
  updated_by?: string | undefined;
914
914
  }>, "many">>>;
915
915
  has_bench: z.ZodOptional<z.ZodDefault<z.ZodEnum<["available", "unavailable", "unknown"]>>>;
@@ -960,25 +960,25 @@ export declare const UpdateStopSchema: z.ZodObject<{
960
960
  created_at: number & {
961
961
  __brand: "UnixTimestamp";
962
962
  };
963
+ created_by: string | null;
963
964
  updated_at: number & {
964
965
  __brand: "UnixTimestamp";
965
966
  };
966
967
  message: string;
967
968
  type: "note";
968
969
  _id?: string | undefined;
969
- created_by?: string | undefined;
970
970
  updated_by?: string | undefined;
971
971
  } | {
972
972
  created_at: number & {
973
973
  __brand: "UnixTimestamp";
974
974
  };
975
+ created_by: string | null;
975
976
  updated_at: number & {
976
977
  __brand: "UnixTimestamp";
977
978
  };
978
979
  type: "field_changed";
979
980
  field: string;
980
981
  _id?: string | undefined;
981
- created_by?: string | undefined;
982
982
  updated_by?: string | undefined;
983
983
  metadata?: Record<string, unknown> | null | undefined;
984
984
  curr_value?: any;
@@ -987,13 +987,13 @@ export declare const UpdateStopSchema: z.ZodObject<{
987
987
  created_at: number & {
988
988
  __brand: "UnixTimestamp";
989
989
  };
990
+ created_by: string | null;
990
991
  updated_at: number & {
991
992
  __brand: "UnixTimestamp";
992
993
  };
993
994
  type: "crud";
994
995
  action: "create" | "update" | "delete" | "archive" | "restore";
995
996
  _id?: string | undefined;
996
- created_by?: string | undefined;
997
997
  updated_by?: string | undefined;
998
998
  })[] | undefined;
999
999
  has_bench?: "unknown" | "available" | "unavailable" | undefined;
@@ -1046,7 +1046,7 @@ export declare const UpdateStopSchema: z.ZodObject<{
1046
1046
  message: string;
1047
1047
  type: "note";
1048
1048
  _id?: string | undefined;
1049
- created_by?: string | undefined;
1049
+ created_by?: string | null | undefined;
1050
1050
  updated_by?: string | undefined;
1051
1051
  } | {
1052
1052
  created_at: number;
@@ -1054,7 +1054,7 @@ export declare const UpdateStopSchema: z.ZodObject<{
1054
1054
  type: "field_changed";
1055
1055
  field: string;
1056
1056
  _id?: string | undefined;
1057
- created_by?: string | undefined;
1057
+ created_by?: string | null | undefined;
1058
1058
  updated_by?: string | undefined;
1059
1059
  metadata?: Record<string, unknown> | null | undefined;
1060
1060
  curr_value?: any;
@@ -1065,7 +1065,7 @@ export declare const UpdateStopSchema: z.ZodObject<{
1065
1065
  type: "crud";
1066
1066
  action: "create" | "update" | "delete" | "archive" | "restore";
1067
1067
  _id?: string | undefined;
1068
- created_by?: string | undefined;
1068
+ created_by?: string | null | undefined;
1069
1069
  updated_by?: string | undefined;
1070
1070
  })[] | undefined;
1071
1071
  has_bench?: "unknown" | "available" | "unavailable" | undefined;