@tmlmobilidade/types 20250910.1526.7 → 20250910.1538.31

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