@tmlmobilidade/types 20250909.1559.44 → 20250910.1526.7

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 (37) hide show
  1. package/dist/src/_common/comment.d.ts +247 -16
  2. package/dist/src/_common/comment.js +36 -5
  3. package/dist/src/_common/document.d.ts +14 -8
  4. package/dist/src/_common/document.js +5 -3
  5. package/dist/src/_common/proposed-change.d.ts +37 -19
  6. package/dist/src/_common/unix-timestamp.d.ts +1 -1
  7. package/dist/src/_common/unix-timestamp.js +1 -2
  8. package/dist/src/agency.d.ts +30 -12
  9. package/dist/src/alert.d.ts +52 -59
  10. package/dist/src/auth/role.d.ts +30 -12
  11. package/dist/src/auth/session.d.ts +30 -12
  12. package/dist/src/auth/user.d.ts +30 -12
  13. package/dist/src/auth/verification-token.d.ts +30 -12
  14. package/dist/src/file.d.ts +23 -23
  15. package/dist/src/organization.d.ts +30 -12
  16. package/dist/src/plans/gtfs-validation.d.ts +30 -12
  17. package/dist/src/plans/plan.d.ts +30 -12
  18. package/dist/src/rides/index.d.ts +2 -1
  19. package/dist/src/rides/index.js +2 -1
  20. package/dist/src/rides/ride-audit.d.ts +729 -0
  21. package/dist/src/rides/ride-audit.js +12 -0
  22. package/dist/src/rides/ride-justification.d.ts +959 -0
  23. package/dist/src/rides/ride-justification.js +64 -0
  24. package/dist/src/rides/ride-overrides.d.ts +9 -0
  25. package/dist/src/rides/ride-overrides.js +6 -0
  26. package/dist/src/rides/ride.d.ts +38 -20
  27. package/dist/src/sams/sam.d.ts +30 -12
  28. package/dist/src/simplified-apex/simplified-apex-location.d.ts +32 -24
  29. package/dist/src/simplified-apex/simplified-apex-on-board-refund.d.ts +32 -24
  30. package/dist/src/simplified-apex/simplified-apex-on-board-sale.d.ts +32 -24
  31. package/dist/src/simplified-apex/simplified-apex-validation.d.ts +36 -28
  32. package/dist/src/stop.d.ts +713 -188
  33. package/dist/src/vehicle-event.d.ts +18 -12
  34. package/dist/src/zone.d.ts +24 -6
  35. package/package.json +1 -1
  36. package/dist/src/rides/ride-annotation.d.ts +0 -579
  37. package/dist/src/rides/ride-annotation.js +0 -34
@@ -0,0 +1,959 @@
1
+ import { type UnixTimestamp } from '../_common/unix-timestamp.js';
2
+ import { z } from 'zod';
3
+ export declare const RIDE_ACCEPTANCE_STATUS_OPTIONS: readonly ["justification_required", "under_review", "accepted", "rejected"];
4
+ export declare const RideAcceptanceStatusSchema: z.ZodEnum<["justification_required", "under_review", "accepted", "rejected"]>;
5
+ export type RideAcceptanceStatus = z.infer<typeof RideAcceptanceStatusSchema>;
6
+ export declare const RideJustificationChangelogSchema: z.ZodObject<{
7
+ acceptance_status: z.ZodEnum<["justification_required", "under_review", "accepted", "rejected"]>;
8
+ analysis_result: z.ZodObject<{
9
+ error_message: z.ZodOptional<z.ZodString>;
10
+ grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
11
+ reason: z.ZodString;
12
+ }, "strict", z.ZodTypeAny, {
13
+ grade: "error" | "pass" | "fail" | "skip";
14
+ reason: string;
15
+ error_message?: string | undefined;
16
+ }, {
17
+ grade: "error" | "pass" | "fail" | "skip";
18
+ reason: string;
19
+ error_message?: string | undefined;
20
+ }>;
21
+ created_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
22
+ created_by: z.ZodString;
23
+ }, "strict", z.ZodTypeAny, {
24
+ created_at: number & {
25
+ __brand: "UnixTimestamp";
26
+ } & z.BRAND<"UnixTimestamp">;
27
+ created_by: string;
28
+ acceptance_status: "accepted" | "justification_required" | "under_review" | "rejected";
29
+ analysis_result: {
30
+ grade: "error" | "pass" | "fail" | "skip";
31
+ reason: string;
32
+ error_message?: string | undefined;
33
+ };
34
+ }, {
35
+ created_at: number;
36
+ created_by: string;
37
+ acceptance_status: "accepted" | "justification_required" | "under_review" | "rejected";
38
+ analysis_result: {
39
+ grade: "error" | "pass" | "fail" | "skip";
40
+ reason: string;
41
+ error_message?: string | undefined;
42
+ };
43
+ }>;
44
+ export interface RideJustificationChangelog extends Omit<z.infer<typeof RideJustificationChangelogSchema>, 'created_at'> {
45
+ created_at: UnixTimestamp;
46
+ }
47
+ export declare const RIDE_JUSTIFICATION_TYPE_OPTIONS: readonly ["traffic_accident", "traffic_delay", "accepted", "rejected"];
48
+ export declare const RideJustificationTypeSchema: z.ZodEnum<["traffic_accident", "traffic_delay", "accepted", "rejected"]>;
49
+ export type RideJustificationType = z.infer<typeof RideJustificationTypeSchema>;
50
+ export declare const RideJustificationSchema: z.ZodObject<{
51
+ _id: z.ZodString;
52
+ created_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
53
+ created_by: z.ZodDefault<z.ZodString>;
54
+ updated_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
55
+ updated_by: z.ZodDefault<z.ZodString>;
56
+ } & {
57
+ acceptance_status: z.ZodEnum<["justification_required", "under_review", "accepted", "rejected"]>;
58
+ comments: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
59
+ _id: z.ZodString;
60
+ created_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
61
+ created_by: z.ZodDefault<z.ZodString>;
62
+ updated_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
63
+ updated_by: z.ZodDefault<z.ZodString>;
64
+ } & {
65
+ message: z.ZodString;
66
+ type: z.ZodLiteral<"note">;
67
+ }, "strip", z.ZodTypeAny, {
68
+ _id: string;
69
+ created_at: number & {
70
+ __brand: "UnixTimestamp";
71
+ };
72
+ created_by: string;
73
+ updated_at: number & {
74
+ __brand: "UnixTimestamp";
75
+ };
76
+ updated_by: string;
77
+ message: string;
78
+ type: "note";
79
+ }, {
80
+ _id: string;
81
+ created_at: number;
82
+ updated_at: number;
83
+ message: string;
84
+ type: "note";
85
+ created_by?: string | undefined;
86
+ updated_by?: string | undefined;
87
+ }>, z.ZodObject<{
88
+ _id: z.ZodString;
89
+ created_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
90
+ updated_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
91
+ } & {
92
+ created_by: z.ZodLiteral<"system">;
93
+ message: z.ZodString;
94
+ type: z.ZodLiteral<"system_info">;
95
+ updated_by: z.ZodLiteral<"system">;
96
+ }, "strip", z.ZodTypeAny, {
97
+ _id: string;
98
+ created_at: number & {
99
+ __brand: "UnixTimestamp";
100
+ };
101
+ created_by: "system";
102
+ updated_at: number & {
103
+ __brand: "UnixTimestamp";
104
+ };
105
+ updated_by: "system";
106
+ message: string;
107
+ type: "system_info";
108
+ }, {
109
+ _id: string;
110
+ created_at: number;
111
+ created_by: "system";
112
+ updated_at: number;
113
+ updated_by: "system";
114
+ message: string;
115
+ type: "system_info";
116
+ }>, z.ZodObject<{
117
+ _id: z.ZodString;
118
+ created_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
119
+ created_by: z.ZodDefault<z.ZodString>;
120
+ updated_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
121
+ updated_by: z.ZodDefault<z.ZodString>;
122
+ } & {
123
+ curr_status: z.ZodString;
124
+ prev_status: z.ZodString;
125
+ type: z.ZodLiteral<"statusChanged">;
126
+ }, "strip", z.ZodTypeAny, {
127
+ _id: string;
128
+ created_at: number & {
129
+ __brand: "UnixTimestamp";
130
+ };
131
+ created_by: string;
132
+ updated_at: number & {
133
+ __brand: "UnixTimestamp";
134
+ };
135
+ updated_by: string;
136
+ type: "statusChanged";
137
+ curr_status: string;
138
+ prev_status: string;
139
+ }, {
140
+ _id: string;
141
+ created_at: number;
142
+ updated_at: number;
143
+ type: "statusChanged";
144
+ curr_status: string;
145
+ prev_status: string;
146
+ created_by?: string | undefined;
147
+ updated_by?: string | undefined;
148
+ }>]>, {
149
+ _id: string;
150
+ created_at: number & {
151
+ __brand: "UnixTimestamp";
152
+ };
153
+ created_by: string;
154
+ updated_at: number & {
155
+ __brand: "UnixTimestamp";
156
+ };
157
+ updated_by: string;
158
+ message: string;
159
+ type: "note";
160
+ } | {
161
+ _id: string;
162
+ created_at: number & {
163
+ __brand: "UnixTimestamp";
164
+ };
165
+ created_by: "system";
166
+ updated_at: number & {
167
+ __brand: "UnixTimestamp";
168
+ };
169
+ updated_by: "system";
170
+ message: string;
171
+ type: "system_info";
172
+ } | {
173
+ _id: string;
174
+ created_at: number & {
175
+ __brand: "UnixTimestamp";
176
+ };
177
+ created_by: string;
178
+ updated_at: number & {
179
+ __brand: "UnixTimestamp";
180
+ };
181
+ updated_by: string;
182
+ type: "statusChanged";
183
+ curr_status: string;
184
+ prev_status: string;
185
+ }, {
186
+ _id: string;
187
+ created_at: number;
188
+ updated_at: number;
189
+ message: string;
190
+ type: "note";
191
+ created_by?: string | undefined;
192
+ updated_by?: string | undefined;
193
+ } | {
194
+ _id: string;
195
+ created_at: number;
196
+ created_by: "system";
197
+ updated_at: number;
198
+ updated_by: "system";
199
+ message: string;
200
+ type: "system_info";
201
+ } | {
202
+ _id: string;
203
+ created_at: number;
204
+ updated_at: number;
205
+ type: "statusChanged";
206
+ curr_status: string;
207
+ prev_status: string;
208
+ created_by?: string | undefined;
209
+ updated_by?: string | undefined;
210
+ }>, {
211
+ _id: string;
212
+ created_at: number & {
213
+ __brand: "UnixTimestamp";
214
+ };
215
+ created_by: string;
216
+ updated_at: number & {
217
+ __brand: "UnixTimestamp";
218
+ };
219
+ updated_by: string;
220
+ message: string;
221
+ type: "note";
222
+ } | {
223
+ _id: string;
224
+ created_at: number & {
225
+ __brand: "UnixTimestamp";
226
+ };
227
+ created_by: "system";
228
+ updated_at: number & {
229
+ __brand: "UnixTimestamp";
230
+ };
231
+ updated_by: "system";
232
+ message: string;
233
+ type: "system_info";
234
+ } | {
235
+ _id: string;
236
+ created_at: number & {
237
+ __brand: "UnixTimestamp";
238
+ };
239
+ created_by: string;
240
+ updated_at: number & {
241
+ __brand: "UnixTimestamp";
242
+ };
243
+ updated_by: string;
244
+ type: "statusChanged";
245
+ curr_status: string;
246
+ prev_status: string;
247
+ }, {
248
+ _id: string;
249
+ created_at: number;
250
+ updated_at: number;
251
+ message: string;
252
+ type: "note";
253
+ created_by?: string | undefined;
254
+ updated_by?: string | undefined;
255
+ } | {
256
+ _id: string;
257
+ created_at: number;
258
+ created_by: "system";
259
+ updated_at: number;
260
+ updated_by: "system";
261
+ message: string;
262
+ type: "system_info";
263
+ } | {
264
+ _id: string;
265
+ created_at: number;
266
+ updated_at: number;
267
+ type: "statusChanged";
268
+ curr_status: string;
269
+ prev_status: string;
270
+ created_by?: string | undefined;
271
+ updated_by?: string | undefined;
272
+ }>, "many">>;
273
+ pto_message: z.ZodDefault<z.ZodString>;
274
+ }, "strict", z.ZodTypeAny, {
275
+ _id: string;
276
+ created_at: number & {
277
+ __brand: "UnixTimestamp";
278
+ };
279
+ created_by: string;
280
+ updated_at: number & {
281
+ __brand: "UnixTimestamp";
282
+ };
283
+ updated_by: string;
284
+ comments: ({
285
+ _id: string;
286
+ created_at: number & {
287
+ __brand: "UnixTimestamp";
288
+ };
289
+ created_by: string;
290
+ updated_at: number & {
291
+ __brand: "UnixTimestamp";
292
+ };
293
+ updated_by: string;
294
+ message: string;
295
+ type: "note";
296
+ } | {
297
+ _id: string;
298
+ created_at: number & {
299
+ __brand: "UnixTimestamp";
300
+ };
301
+ created_by: "system";
302
+ updated_at: number & {
303
+ __brand: "UnixTimestamp";
304
+ };
305
+ updated_by: "system";
306
+ message: string;
307
+ type: "system_info";
308
+ } | {
309
+ _id: string;
310
+ created_at: number & {
311
+ __brand: "UnixTimestamp";
312
+ };
313
+ created_by: string;
314
+ updated_at: number & {
315
+ __brand: "UnixTimestamp";
316
+ };
317
+ updated_by: string;
318
+ type: "statusChanged";
319
+ curr_status: string;
320
+ prev_status: string;
321
+ })[];
322
+ acceptance_status: "accepted" | "justification_required" | "under_review" | "rejected";
323
+ pto_message: string;
324
+ }, {
325
+ _id: string;
326
+ created_at: number;
327
+ updated_at: number;
328
+ acceptance_status: "accepted" | "justification_required" | "under_review" | "rejected";
329
+ created_by?: string | undefined;
330
+ updated_by?: string | undefined;
331
+ comments?: ({
332
+ _id: string;
333
+ created_at: number;
334
+ updated_at: number;
335
+ message: string;
336
+ type: "note";
337
+ created_by?: string | undefined;
338
+ updated_by?: string | undefined;
339
+ } | {
340
+ _id: string;
341
+ created_at: number;
342
+ created_by: "system";
343
+ updated_at: number;
344
+ updated_by: "system";
345
+ message: string;
346
+ type: "system_info";
347
+ } | {
348
+ _id: string;
349
+ created_at: number;
350
+ updated_at: number;
351
+ type: "statusChanged";
352
+ curr_status: string;
353
+ prev_status: string;
354
+ created_by?: string | undefined;
355
+ updated_by?: string | undefined;
356
+ })[] | undefined;
357
+ pto_message?: string | undefined;
358
+ }>;
359
+ export declare const CreateRideJustificationSchema: z.ZodObject<Omit<{
360
+ _id: z.ZodOptional<z.ZodString>;
361
+ created_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
362
+ created_by: z.ZodDefault<z.ZodString>;
363
+ updated_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
364
+ updated_by: z.ZodDefault<z.ZodString>;
365
+ comments: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
366
+ _id: z.ZodString;
367
+ created_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
368
+ created_by: z.ZodDefault<z.ZodString>;
369
+ updated_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
370
+ updated_by: z.ZodDefault<z.ZodString>;
371
+ } & {
372
+ message: z.ZodString;
373
+ type: z.ZodLiteral<"note">;
374
+ }, "strip", z.ZodTypeAny, {
375
+ _id: string;
376
+ created_at: number & {
377
+ __brand: "UnixTimestamp";
378
+ };
379
+ created_by: string;
380
+ updated_at: number & {
381
+ __brand: "UnixTimestamp";
382
+ };
383
+ updated_by: string;
384
+ message: string;
385
+ type: "note";
386
+ }, {
387
+ _id: string;
388
+ created_at: number;
389
+ updated_at: number;
390
+ message: string;
391
+ type: "note";
392
+ created_by?: string | undefined;
393
+ updated_by?: string | undefined;
394
+ }>, z.ZodObject<{
395
+ _id: z.ZodString;
396
+ created_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
397
+ updated_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
398
+ } & {
399
+ created_by: z.ZodLiteral<"system">;
400
+ message: z.ZodString;
401
+ type: z.ZodLiteral<"system_info">;
402
+ updated_by: z.ZodLiteral<"system">;
403
+ }, "strip", z.ZodTypeAny, {
404
+ _id: string;
405
+ created_at: number & {
406
+ __brand: "UnixTimestamp";
407
+ };
408
+ created_by: "system";
409
+ updated_at: number & {
410
+ __brand: "UnixTimestamp";
411
+ };
412
+ updated_by: "system";
413
+ message: string;
414
+ type: "system_info";
415
+ }, {
416
+ _id: string;
417
+ created_at: number;
418
+ created_by: "system";
419
+ updated_at: number;
420
+ updated_by: "system";
421
+ message: string;
422
+ type: "system_info";
423
+ }>, z.ZodObject<{
424
+ _id: z.ZodString;
425
+ created_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
426
+ created_by: z.ZodDefault<z.ZodString>;
427
+ updated_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
428
+ updated_by: z.ZodDefault<z.ZodString>;
429
+ } & {
430
+ curr_status: z.ZodString;
431
+ prev_status: z.ZodString;
432
+ type: z.ZodLiteral<"statusChanged">;
433
+ }, "strip", z.ZodTypeAny, {
434
+ _id: string;
435
+ created_at: number & {
436
+ __brand: "UnixTimestamp";
437
+ };
438
+ created_by: string;
439
+ updated_at: number & {
440
+ __brand: "UnixTimestamp";
441
+ };
442
+ updated_by: string;
443
+ type: "statusChanged";
444
+ curr_status: string;
445
+ prev_status: string;
446
+ }, {
447
+ _id: string;
448
+ created_at: number;
449
+ updated_at: number;
450
+ type: "statusChanged";
451
+ curr_status: string;
452
+ prev_status: string;
453
+ created_by?: string | undefined;
454
+ updated_by?: string | undefined;
455
+ }>]>, {
456
+ _id: string;
457
+ created_at: number & {
458
+ __brand: "UnixTimestamp";
459
+ };
460
+ created_by: string;
461
+ updated_at: number & {
462
+ __brand: "UnixTimestamp";
463
+ };
464
+ updated_by: string;
465
+ message: string;
466
+ type: "note";
467
+ } | {
468
+ _id: string;
469
+ created_at: number & {
470
+ __brand: "UnixTimestamp";
471
+ };
472
+ created_by: "system";
473
+ updated_at: number & {
474
+ __brand: "UnixTimestamp";
475
+ };
476
+ updated_by: "system";
477
+ message: string;
478
+ type: "system_info";
479
+ } | {
480
+ _id: string;
481
+ created_at: number & {
482
+ __brand: "UnixTimestamp";
483
+ };
484
+ created_by: string;
485
+ updated_at: number & {
486
+ __brand: "UnixTimestamp";
487
+ };
488
+ updated_by: string;
489
+ type: "statusChanged";
490
+ curr_status: string;
491
+ prev_status: string;
492
+ }, {
493
+ _id: string;
494
+ created_at: number;
495
+ updated_at: number;
496
+ message: string;
497
+ type: "note";
498
+ created_by?: string | undefined;
499
+ updated_by?: string | undefined;
500
+ } | {
501
+ _id: string;
502
+ created_at: number;
503
+ created_by: "system";
504
+ updated_at: number;
505
+ updated_by: "system";
506
+ message: string;
507
+ type: "system_info";
508
+ } | {
509
+ _id: string;
510
+ created_at: number;
511
+ updated_at: number;
512
+ type: "statusChanged";
513
+ curr_status: string;
514
+ prev_status: string;
515
+ created_by?: string | undefined;
516
+ updated_by?: string | undefined;
517
+ }>, {
518
+ _id: string;
519
+ created_at: number & {
520
+ __brand: "UnixTimestamp";
521
+ };
522
+ created_by: string;
523
+ updated_at: number & {
524
+ __brand: "UnixTimestamp";
525
+ };
526
+ updated_by: string;
527
+ message: string;
528
+ type: "note";
529
+ } | {
530
+ _id: string;
531
+ created_at: number & {
532
+ __brand: "UnixTimestamp";
533
+ };
534
+ created_by: "system";
535
+ updated_at: number & {
536
+ __brand: "UnixTimestamp";
537
+ };
538
+ updated_by: "system";
539
+ message: string;
540
+ type: "system_info";
541
+ } | {
542
+ _id: string;
543
+ created_at: number & {
544
+ __brand: "UnixTimestamp";
545
+ };
546
+ created_by: string;
547
+ updated_at: number & {
548
+ __brand: "UnixTimestamp";
549
+ };
550
+ updated_by: string;
551
+ type: "statusChanged";
552
+ curr_status: string;
553
+ prev_status: string;
554
+ }, {
555
+ _id: string;
556
+ created_at: number;
557
+ updated_at: number;
558
+ message: string;
559
+ type: "note";
560
+ created_by?: string | undefined;
561
+ updated_by?: string | undefined;
562
+ } | {
563
+ _id: string;
564
+ created_at: number;
565
+ created_by: "system";
566
+ updated_at: number;
567
+ updated_by: "system";
568
+ message: string;
569
+ type: "system_info";
570
+ } | {
571
+ _id: string;
572
+ created_at: number;
573
+ updated_at: number;
574
+ type: "statusChanged";
575
+ curr_status: string;
576
+ prev_status: string;
577
+ created_by?: string | undefined;
578
+ updated_by?: string | undefined;
579
+ }>, "many">>;
580
+ acceptance_status: z.ZodEnum<["justification_required", "under_review", "accepted", "rejected"]>;
581
+ pto_message: z.ZodDefault<z.ZodString>;
582
+ }, "created_at" | "updated_at">, "strict", z.ZodTypeAny, {
583
+ created_by: string;
584
+ updated_by: string;
585
+ comments: ({
586
+ _id: string;
587
+ created_at: number & {
588
+ __brand: "UnixTimestamp";
589
+ };
590
+ created_by: string;
591
+ updated_at: number & {
592
+ __brand: "UnixTimestamp";
593
+ };
594
+ updated_by: string;
595
+ message: string;
596
+ type: "note";
597
+ } | {
598
+ _id: string;
599
+ created_at: number & {
600
+ __brand: "UnixTimestamp";
601
+ };
602
+ created_by: "system";
603
+ updated_at: number & {
604
+ __brand: "UnixTimestamp";
605
+ };
606
+ updated_by: "system";
607
+ message: string;
608
+ type: "system_info";
609
+ } | {
610
+ _id: string;
611
+ created_at: number & {
612
+ __brand: "UnixTimestamp";
613
+ };
614
+ created_by: string;
615
+ updated_at: number & {
616
+ __brand: "UnixTimestamp";
617
+ };
618
+ updated_by: string;
619
+ type: "statusChanged";
620
+ curr_status: string;
621
+ prev_status: string;
622
+ })[];
623
+ acceptance_status: "accepted" | "justification_required" | "under_review" | "rejected";
624
+ pto_message: string;
625
+ _id?: string | undefined;
626
+ }, {
627
+ acceptance_status: "accepted" | "justification_required" | "under_review" | "rejected";
628
+ _id?: string | undefined;
629
+ created_by?: string | undefined;
630
+ updated_by?: string | undefined;
631
+ comments?: ({
632
+ _id: string;
633
+ created_at: number;
634
+ updated_at: number;
635
+ message: string;
636
+ type: "note";
637
+ created_by?: string | undefined;
638
+ updated_by?: string | undefined;
639
+ } | {
640
+ _id: string;
641
+ created_at: number;
642
+ created_by: "system";
643
+ updated_at: number;
644
+ updated_by: "system";
645
+ message: string;
646
+ type: "system_info";
647
+ } | {
648
+ _id: string;
649
+ created_at: number;
650
+ updated_at: number;
651
+ type: "statusChanged";
652
+ curr_status: string;
653
+ prev_status: string;
654
+ created_by?: string | undefined;
655
+ updated_by?: string | undefined;
656
+ })[] | undefined;
657
+ pto_message?: string | undefined;
658
+ }>;
659
+ export declare const UpdateRideJustificationSchema: z.ZodObject<{
660
+ _id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
661
+ created_by: z.ZodOptional<z.ZodDefault<z.ZodString>>;
662
+ updated_by: z.ZodOptional<z.ZodDefault<z.ZodString>>;
663
+ comments: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
664
+ _id: z.ZodString;
665
+ created_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
666
+ created_by: z.ZodDefault<z.ZodString>;
667
+ updated_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
668
+ updated_by: z.ZodDefault<z.ZodString>;
669
+ } & {
670
+ message: z.ZodString;
671
+ type: z.ZodLiteral<"note">;
672
+ }, "strip", z.ZodTypeAny, {
673
+ _id: string;
674
+ created_at: number & {
675
+ __brand: "UnixTimestamp";
676
+ };
677
+ created_by: string;
678
+ updated_at: number & {
679
+ __brand: "UnixTimestamp";
680
+ };
681
+ updated_by: string;
682
+ message: string;
683
+ type: "note";
684
+ }, {
685
+ _id: string;
686
+ created_at: number;
687
+ updated_at: number;
688
+ message: string;
689
+ type: "note";
690
+ created_by?: string | undefined;
691
+ updated_by?: string | undefined;
692
+ }>, z.ZodObject<{
693
+ _id: z.ZodString;
694
+ created_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
695
+ updated_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
696
+ } & {
697
+ created_by: z.ZodLiteral<"system">;
698
+ message: z.ZodString;
699
+ type: z.ZodLiteral<"system_info">;
700
+ updated_by: z.ZodLiteral<"system">;
701
+ }, "strip", z.ZodTypeAny, {
702
+ _id: string;
703
+ created_at: number & {
704
+ __brand: "UnixTimestamp";
705
+ };
706
+ created_by: "system";
707
+ updated_at: number & {
708
+ __brand: "UnixTimestamp";
709
+ };
710
+ updated_by: "system";
711
+ message: string;
712
+ type: "system_info";
713
+ }, {
714
+ _id: string;
715
+ created_at: number;
716
+ created_by: "system";
717
+ updated_at: number;
718
+ updated_by: "system";
719
+ message: string;
720
+ type: "system_info";
721
+ }>, z.ZodObject<{
722
+ _id: z.ZodString;
723
+ created_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
724
+ created_by: z.ZodDefault<z.ZodString>;
725
+ updated_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
726
+ updated_by: z.ZodDefault<z.ZodString>;
727
+ } & {
728
+ curr_status: z.ZodString;
729
+ prev_status: z.ZodString;
730
+ type: z.ZodLiteral<"statusChanged">;
731
+ }, "strip", z.ZodTypeAny, {
732
+ _id: string;
733
+ created_at: number & {
734
+ __brand: "UnixTimestamp";
735
+ };
736
+ created_by: string;
737
+ updated_at: number & {
738
+ __brand: "UnixTimestamp";
739
+ };
740
+ updated_by: string;
741
+ type: "statusChanged";
742
+ curr_status: string;
743
+ prev_status: string;
744
+ }, {
745
+ _id: string;
746
+ created_at: number;
747
+ updated_at: number;
748
+ type: "statusChanged";
749
+ curr_status: string;
750
+ prev_status: string;
751
+ created_by?: string | undefined;
752
+ updated_by?: string | undefined;
753
+ }>]>, {
754
+ _id: string;
755
+ created_at: number & {
756
+ __brand: "UnixTimestamp";
757
+ };
758
+ created_by: string;
759
+ updated_at: number & {
760
+ __brand: "UnixTimestamp";
761
+ };
762
+ updated_by: string;
763
+ message: string;
764
+ type: "note";
765
+ } | {
766
+ _id: string;
767
+ created_at: number & {
768
+ __brand: "UnixTimestamp";
769
+ };
770
+ created_by: "system";
771
+ updated_at: number & {
772
+ __brand: "UnixTimestamp";
773
+ };
774
+ updated_by: "system";
775
+ message: string;
776
+ type: "system_info";
777
+ } | {
778
+ _id: string;
779
+ created_at: number & {
780
+ __brand: "UnixTimestamp";
781
+ };
782
+ created_by: string;
783
+ updated_at: number & {
784
+ __brand: "UnixTimestamp";
785
+ };
786
+ updated_by: string;
787
+ type: "statusChanged";
788
+ curr_status: string;
789
+ prev_status: string;
790
+ }, {
791
+ _id: string;
792
+ created_at: number;
793
+ updated_at: number;
794
+ message: string;
795
+ type: "note";
796
+ created_by?: string | undefined;
797
+ updated_by?: string | undefined;
798
+ } | {
799
+ _id: string;
800
+ created_at: number;
801
+ created_by: "system";
802
+ updated_at: number;
803
+ updated_by: "system";
804
+ message: string;
805
+ type: "system_info";
806
+ } | {
807
+ _id: string;
808
+ created_at: number;
809
+ updated_at: number;
810
+ type: "statusChanged";
811
+ curr_status: string;
812
+ prev_status: string;
813
+ created_by?: string | undefined;
814
+ updated_by?: string | undefined;
815
+ }>, {
816
+ _id: string;
817
+ created_at: number & {
818
+ __brand: "UnixTimestamp";
819
+ };
820
+ created_by: string;
821
+ updated_at: number & {
822
+ __brand: "UnixTimestamp";
823
+ };
824
+ updated_by: string;
825
+ message: string;
826
+ type: "note";
827
+ } | {
828
+ _id: string;
829
+ created_at: number & {
830
+ __brand: "UnixTimestamp";
831
+ };
832
+ created_by: "system";
833
+ updated_at: number & {
834
+ __brand: "UnixTimestamp";
835
+ };
836
+ updated_by: "system";
837
+ message: string;
838
+ type: "system_info";
839
+ } | {
840
+ _id: string;
841
+ created_at: number & {
842
+ __brand: "UnixTimestamp";
843
+ };
844
+ created_by: string;
845
+ updated_at: number & {
846
+ __brand: "UnixTimestamp";
847
+ };
848
+ updated_by: string;
849
+ type: "statusChanged";
850
+ curr_status: string;
851
+ prev_status: string;
852
+ }, {
853
+ _id: string;
854
+ created_at: number;
855
+ updated_at: number;
856
+ message: string;
857
+ type: "note";
858
+ created_by?: string | undefined;
859
+ updated_by?: string | undefined;
860
+ } | {
861
+ _id: string;
862
+ created_at: number;
863
+ created_by: "system";
864
+ updated_at: number;
865
+ updated_by: "system";
866
+ message: string;
867
+ type: "system_info";
868
+ } | {
869
+ _id: string;
870
+ created_at: number;
871
+ updated_at: number;
872
+ type: "statusChanged";
873
+ curr_status: string;
874
+ prev_status: string;
875
+ created_by?: string | undefined;
876
+ updated_by?: string | undefined;
877
+ }>, "many">>>;
878
+ acceptance_status: z.ZodOptional<z.ZodEnum<["justification_required", "under_review", "accepted", "rejected"]>>;
879
+ pto_message: z.ZodOptional<z.ZodDefault<z.ZodString>>;
880
+ }, "strict", z.ZodTypeAny, {
881
+ _id?: string | undefined;
882
+ created_by?: string | undefined;
883
+ updated_by?: string | undefined;
884
+ comments?: ({
885
+ _id: string;
886
+ created_at: number & {
887
+ __brand: "UnixTimestamp";
888
+ };
889
+ created_by: string;
890
+ updated_at: number & {
891
+ __brand: "UnixTimestamp";
892
+ };
893
+ updated_by: string;
894
+ message: string;
895
+ type: "note";
896
+ } | {
897
+ _id: string;
898
+ created_at: number & {
899
+ __brand: "UnixTimestamp";
900
+ };
901
+ created_by: "system";
902
+ updated_at: number & {
903
+ __brand: "UnixTimestamp";
904
+ };
905
+ updated_by: "system";
906
+ message: string;
907
+ type: "system_info";
908
+ } | {
909
+ _id: string;
910
+ created_at: number & {
911
+ __brand: "UnixTimestamp";
912
+ };
913
+ created_by: string;
914
+ updated_at: number & {
915
+ __brand: "UnixTimestamp";
916
+ };
917
+ updated_by: string;
918
+ type: "statusChanged";
919
+ curr_status: string;
920
+ prev_status: string;
921
+ })[] | undefined;
922
+ acceptance_status?: "accepted" | "justification_required" | "under_review" | "rejected" | undefined;
923
+ pto_message?: string | undefined;
924
+ }, {
925
+ _id?: string | undefined;
926
+ created_by?: string | undefined;
927
+ updated_by?: string | undefined;
928
+ comments?: ({
929
+ _id: string;
930
+ created_at: number;
931
+ updated_at: number;
932
+ message: string;
933
+ type: "note";
934
+ created_by?: string | undefined;
935
+ updated_by?: string | undefined;
936
+ } | {
937
+ _id: string;
938
+ created_at: number;
939
+ created_by: "system";
940
+ updated_at: number;
941
+ updated_by: "system";
942
+ message: string;
943
+ type: "system_info";
944
+ } | {
945
+ _id: string;
946
+ created_at: number;
947
+ updated_at: number;
948
+ type: "statusChanged";
949
+ curr_status: string;
950
+ prev_status: string;
951
+ created_by?: string | undefined;
952
+ updated_by?: string | undefined;
953
+ })[] | undefined;
954
+ acceptance_status?: "accepted" | "justification_required" | "under_review" | "rejected" | undefined;
955
+ pto_message?: string | undefined;
956
+ }>;
957
+ export type RideJustification = z.infer<typeof RideJustificationSchema>;
958
+ export type CreateRideJustificationDto = z.infer<typeof CreateRideJustificationSchema>;
959
+ export type UpdateRideJustificationDto = Partial<CreateRideJustificationDto>;