@tmlmobilidade/types 20250910.1344.34 → 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.
- package/dist/src/_common/comment.d.ts +232 -9
- package/dist/src/_common/comment.js +36 -4
- package/dist/src/_common/document.d.ts +4 -4
- package/dist/src/_common/document.js +3 -3
- package/dist/src/_common/proposed-change.d.ts +13 -13
- package/dist/src/_common/unix-timestamp.d.ts +1 -1
- package/dist/src/_common/unix-timestamp.js +1 -2
- package/dist/src/agency.d.ts +6 -6
- package/dist/src/alert.d.ts +37 -53
- package/dist/src/auth/role.d.ts +6 -6
- package/dist/src/auth/session.d.ts +6 -6
- package/dist/src/auth/user.d.ts +6 -6
- package/dist/src/auth/verification-token.d.ts +6 -6
- package/dist/src/file.d.ts +13 -13
- package/dist/src/organization.d.ts +12 -12
- package/dist/src/plans/gtfs-validation.d.ts +6 -6
- package/dist/src/plans/plan.d.ts +6 -6
- package/dist/src/rides/ride-audit.d.ts +567 -57
- package/dist/src/rides/ride-justification.d.ts +723 -211
- package/dist/src/rides/ride-justification.js +39 -18
- package/dist/src/rides/ride.d.ts +6 -6
- package/dist/src/sams/sam.d.ts +6 -6
- package/dist/src/simplified-apex/simplified-apex-location.d.ts +8 -12
- package/dist/src/simplified-apex/simplified-apex-on-board-refund.d.ts +8 -12
- package/dist/src/simplified-apex/simplified-apex-on-board-sale.d.ts +8 -12
- package/dist/src/simplified-apex/simplified-apex-validation.d.ts +12 -16
- package/dist/src/stop.d.ts +605 -125
- package/dist/src/vehicle-event.d.ts +4 -4
- package/dist/src/zone.d.ts +9 -9
- package/package.json +1 -1
|
@@ -49,74 +49,224 @@ export declare const RideJustificationTypeSchema: z.ZodEnum<["traffic_accident",
|
|
|
49
49
|
export type RideJustificationType = z.infer<typeof RideJustificationTypeSchema>;
|
|
50
50
|
export declare const RideJustificationSchema: z.ZodObject<{
|
|
51
51
|
_id: z.ZodString;
|
|
52
|
-
created_at: z.
|
|
52
|
+
created_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
|
|
53
53
|
created_by: z.ZodDefault<z.ZodString>;
|
|
54
|
-
updated_at: z.
|
|
54
|
+
updated_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
|
|
55
55
|
updated_by: z.ZodDefault<z.ZodString>;
|
|
56
56
|
} & {
|
|
57
57
|
acceptance_status: z.ZodEnum<["justification_required", "under_review", "accepted", "rejected"]>;
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
grade: "error" | "pass" | "fail" | "skip";
|
|
70
|
-
reason: string;
|
|
71
|
-
error_message?: string | undefined;
|
|
72
|
-
}>;
|
|
73
|
-
created_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
|
|
74
|
-
created_by: z.ZodString;
|
|
75
|
-
}, "strict", z.ZodTypeAny, {
|
|
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;
|
|
76
69
|
created_at: number & {
|
|
77
70
|
__brand: "UnixTimestamp";
|
|
78
|
-
}
|
|
71
|
+
};
|
|
79
72
|
created_by: string;
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
grade: "error" | "pass" | "fail" | "skip";
|
|
83
|
-
reason: string;
|
|
84
|
-
error_message?: string | undefined;
|
|
73
|
+
updated_at: number & {
|
|
74
|
+
__brand: "UnixTimestamp";
|
|
85
75
|
};
|
|
76
|
+
updated_by: string;
|
|
77
|
+
message: string;
|
|
78
|
+
type: "note";
|
|
86
79
|
}, {
|
|
80
|
+
_id: string;
|
|
87
81
|
created_at: number;
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
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";
|
|
94
100
|
};
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
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>;
|
|
98
119
|
created_by: z.ZodDefault<z.ZodString>;
|
|
99
|
-
updated_at: z.
|
|
120
|
+
updated_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
|
|
100
121
|
updated_by: z.ZodDefault<z.ZodString>;
|
|
101
122
|
} & {
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
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
|
+
} | {
|
|
105
223
|
_id: string;
|
|
106
224
|
created_at: number & {
|
|
107
225
|
__brand: "UnixTimestamp";
|
|
108
|
-
}
|
|
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
|
+
};
|
|
109
239
|
created_by: string;
|
|
110
240
|
updated_at: number & {
|
|
111
241
|
__brand: "UnixTimestamp";
|
|
112
|
-
}
|
|
242
|
+
};
|
|
113
243
|
updated_by: string;
|
|
114
|
-
|
|
244
|
+
type: "statusChanged";
|
|
245
|
+
curr_status: string;
|
|
246
|
+
prev_status: string;
|
|
115
247
|
}, {
|
|
116
248
|
_id: string;
|
|
117
249
|
created_at: number;
|
|
118
250
|
updated_at: number;
|
|
119
|
-
|
|
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;
|
|
120
270
|
created_by?: string | undefined;
|
|
121
271
|
updated_by?: string | undefined;
|
|
122
272
|
}>, "many">>;
|
|
@@ -125,37 +275,51 @@ export declare const RideJustificationSchema: z.ZodObject<{
|
|
|
125
275
|
_id: string;
|
|
126
276
|
created_at: number & {
|
|
127
277
|
__brand: "UnixTimestamp";
|
|
128
|
-
}
|
|
278
|
+
};
|
|
129
279
|
created_by: string;
|
|
130
280
|
updated_at: number & {
|
|
131
281
|
__brand: "UnixTimestamp";
|
|
132
|
-
}
|
|
282
|
+
};
|
|
133
283
|
updated_by: string;
|
|
134
|
-
comments: {
|
|
284
|
+
comments: ({
|
|
135
285
|
_id: string;
|
|
136
286
|
created_at: number & {
|
|
137
287
|
__brand: "UnixTimestamp";
|
|
138
|
-
}
|
|
288
|
+
};
|
|
139
289
|
created_by: string;
|
|
140
290
|
updated_at: number & {
|
|
141
291
|
__brand: "UnixTimestamp";
|
|
142
|
-
}
|
|
292
|
+
};
|
|
143
293
|
updated_by: string;
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
294
|
+
message: string;
|
|
295
|
+
type: "note";
|
|
296
|
+
} | {
|
|
297
|
+
_id: string;
|
|
148
298
|
created_at: number & {
|
|
149
299
|
__brand: "UnixTimestamp";
|
|
150
|
-
}
|
|
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
|
+
};
|
|
151
313
|
created_by: string;
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
grade: "error" | "pass" | "fail" | "skip";
|
|
155
|
-
reason: string;
|
|
156
|
-
error_message?: string | undefined;
|
|
314
|
+
updated_at: number & {
|
|
315
|
+
__brand: "UnixTimestamp";
|
|
157
316
|
};
|
|
158
|
-
|
|
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";
|
|
159
323
|
pto_message: string;
|
|
160
324
|
}, {
|
|
161
325
|
_id: string;
|
|
@@ -164,127 +328,299 @@ export declare const RideJustificationSchema: z.ZodObject<{
|
|
|
164
328
|
acceptance_status: "accepted" | "justification_required" | "under_review" | "rejected";
|
|
165
329
|
created_by?: string | undefined;
|
|
166
330
|
updated_by?: string | undefined;
|
|
167
|
-
comments?: {
|
|
331
|
+
comments?: ({
|
|
168
332
|
_id: string;
|
|
169
333
|
created_at: number;
|
|
170
334
|
updated_at: number;
|
|
171
|
-
|
|
335
|
+
message: string;
|
|
336
|
+
type: "note";
|
|
172
337
|
created_by?: string | undefined;
|
|
173
338
|
updated_by?: string | undefined;
|
|
174
|
-
}
|
|
175
|
-
|
|
339
|
+
} | {
|
|
340
|
+
_id: string;
|
|
176
341
|
created_at: number;
|
|
177
|
-
created_by:
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
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;
|
|
185
357
|
pto_message?: string | undefined;
|
|
186
358
|
}>;
|
|
187
359
|
export declare const CreateRideJustificationSchema: z.ZodObject<Omit<{
|
|
188
360
|
_id: z.ZodOptional<z.ZodString>;
|
|
189
|
-
created_at: z.
|
|
361
|
+
created_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
|
|
190
362
|
created_by: z.ZodDefault<z.ZodString>;
|
|
191
|
-
updated_at: z.
|
|
363
|
+
updated_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
|
|
192
364
|
updated_by: z.ZodDefault<z.ZodString>;
|
|
193
|
-
comments: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
194
|
-
|
|
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>;
|
|
195
368
|
created_by: z.ZodDefault<z.ZodString>;
|
|
196
|
-
updated_at: z.
|
|
369
|
+
updated_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
|
|
197
370
|
updated_by: z.ZodDefault<z.ZodString>;
|
|
198
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<{
|
|
199
395
|
_id: z.ZodString;
|
|
200
|
-
|
|
201
|
-
|
|
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, {
|
|
202
434
|
_id: string;
|
|
203
435
|
created_at: number & {
|
|
204
436
|
__brand: "UnixTimestamp";
|
|
205
|
-
}
|
|
437
|
+
};
|
|
206
438
|
created_by: string;
|
|
207
439
|
updated_at: number & {
|
|
208
440
|
__brand: "UnixTimestamp";
|
|
209
|
-
}
|
|
441
|
+
};
|
|
210
442
|
updated_by: string;
|
|
211
|
-
|
|
443
|
+
type: "statusChanged";
|
|
444
|
+
curr_status: string;
|
|
445
|
+
prev_status: string;
|
|
212
446
|
}, {
|
|
213
447
|
_id: string;
|
|
214
448
|
created_at: number;
|
|
215
449
|
updated_at: number;
|
|
216
|
-
|
|
450
|
+
type: "statusChanged";
|
|
451
|
+
curr_status: string;
|
|
452
|
+
prev_status: string;
|
|
217
453
|
created_by?: string | undefined;
|
|
218
454
|
updated_by?: string | undefined;
|
|
219
|
-
}>,
|
|
220
|
-
|
|
221
|
-
changelog: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
222
|
-
acceptance_status: z.ZodEnum<["justification_required", "under_review", "accepted", "rejected"]>;
|
|
223
|
-
analysis_result: z.ZodObject<{
|
|
224
|
-
error_message: z.ZodOptional<z.ZodString>;
|
|
225
|
-
grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
|
|
226
|
-
reason: z.ZodString;
|
|
227
|
-
}, "strict", z.ZodTypeAny, {
|
|
228
|
-
grade: "error" | "pass" | "fail" | "skip";
|
|
229
|
-
reason: string;
|
|
230
|
-
error_message?: string | undefined;
|
|
231
|
-
}, {
|
|
232
|
-
grade: "error" | "pass" | "fail" | "skip";
|
|
233
|
-
reason: string;
|
|
234
|
-
error_message?: string | undefined;
|
|
235
|
-
}>;
|
|
236
|
-
created_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
|
|
237
|
-
created_by: z.ZodString;
|
|
238
|
-
}, "strict", z.ZodTypeAny, {
|
|
455
|
+
}>]>, {
|
|
456
|
+
_id: string;
|
|
239
457
|
created_at: number & {
|
|
240
458
|
__brand: "UnixTimestamp";
|
|
241
|
-
}
|
|
459
|
+
};
|
|
242
460
|
created_by: string;
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
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";
|
|
248
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;
|
|
249
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;
|
|
250
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
|
+
};
|
|
251
546
|
created_by: string;
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
grade: "error" | "pass" | "fail" | "skip";
|
|
255
|
-
reason: string;
|
|
256
|
-
error_message?: string | undefined;
|
|
547
|
+
updated_at: number & {
|
|
548
|
+
__brand: "UnixTimestamp";
|
|
257
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;
|
|
258
579
|
}>, "many">>;
|
|
580
|
+
acceptance_status: z.ZodEnum<["justification_required", "under_review", "accepted", "rejected"]>;
|
|
259
581
|
pto_message: z.ZodDefault<z.ZodString>;
|
|
260
582
|
}, "created_at" | "updated_at">, "strict", z.ZodTypeAny, {
|
|
261
583
|
created_by: string;
|
|
262
584
|
updated_by: string;
|
|
263
|
-
comments: {
|
|
585
|
+
comments: ({
|
|
264
586
|
_id: string;
|
|
265
587
|
created_at: number & {
|
|
266
588
|
__brand: "UnixTimestamp";
|
|
267
|
-
}
|
|
589
|
+
};
|
|
268
590
|
created_by: string;
|
|
269
591
|
updated_at: number & {
|
|
270
592
|
__brand: "UnixTimestamp";
|
|
271
|
-
}
|
|
593
|
+
};
|
|
272
594
|
updated_by: string;
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
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;
|
|
277
611
|
created_at: number & {
|
|
278
612
|
__brand: "UnixTimestamp";
|
|
279
|
-
}
|
|
613
|
+
};
|
|
280
614
|
created_by: string;
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
grade: "error" | "pass" | "fail" | "skip";
|
|
284
|
-
reason: string;
|
|
285
|
-
error_message?: string | undefined;
|
|
615
|
+
updated_at: number & {
|
|
616
|
+
__brand: "UnixTimestamp";
|
|
286
617
|
};
|
|
287
|
-
|
|
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";
|
|
288
624
|
pto_message: string;
|
|
289
625
|
_id?: string | undefined;
|
|
290
626
|
}, {
|
|
@@ -292,156 +628,332 @@ export declare const CreateRideJustificationSchema: z.ZodObject<Omit<{
|
|
|
292
628
|
_id?: string | undefined;
|
|
293
629
|
created_by?: string | undefined;
|
|
294
630
|
updated_by?: string | undefined;
|
|
295
|
-
comments?: {
|
|
631
|
+
comments?: ({
|
|
296
632
|
_id: string;
|
|
297
633
|
created_at: number;
|
|
298
634
|
updated_at: number;
|
|
299
|
-
|
|
635
|
+
message: string;
|
|
636
|
+
type: "note";
|
|
300
637
|
created_by?: string | undefined;
|
|
301
638
|
updated_by?: string | undefined;
|
|
302
|
-
}
|
|
303
|
-
|
|
639
|
+
} | {
|
|
640
|
+
_id: string;
|
|
304
641
|
created_at: number;
|
|
305
|
-
created_by:
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
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;
|
|
313
657
|
pto_message?: string | undefined;
|
|
314
658
|
}>;
|
|
315
659
|
export declare const UpdateRideJustificationSchema: z.ZodObject<{
|
|
316
660
|
_id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
317
661
|
created_by: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
318
662
|
updated_by: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
319
|
-
comments: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
320
|
-
|
|
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>;
|
|
321
666
|
created_by: z.ZodDefault<z.ZodString>;
|
|
322
|
-
updated_at: z.
|
|
667
|
+
updated_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
|
|
323
668
|
updated_by: z.ZodDefault<z.ZodString>;
|
|
324
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<{
|
|
325
722
|
_id: z.ZodString;
|
|
326
|
-
|
|
327
|
-
|
|
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, {
|
|
328
732
|
_id: string;
|
|
329
733
|
created_at: number & {
|
|
330
734
|
__brand: "UnixTimestamp";
|
|
331
|
-
}
|
|
735
|
+
};
|
|
332
736
|
created_by: string;
|
|
333
737
|
updated_at: number & {
|
|
334
738
|
__brand: "UnixTimestamp";
|
|
335
|
-
}
|
|
739
|
+
};
|
|
336
740
|
updated_by: string;
|
|
337
|
-
|
|
741
|
+
type: "statusChanged";
|
|
742
|
+
curr_status: string;
|
|
743
|
+
prev_status: string;
|
|
338
744
|
}, {
|
|
339
745
|
_id: string;
|
|
340
746
|
created_at: number;
|
|
341
747
|
updated_at: number;
|
|
342
|
-
|
|
748
|
+
type: "statusChanged";
|
|
749
|
+
curr_status: string;
|
|
750
|
+
prev_status: string;
|
|
343
751
|
created_by?: string | undefined;
|
|
344
752
|
updated_by?: string | undefined;
|
|
345
|
-
}>,
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
}
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
reason: string;
|
|
360
|
-
error_message?: string | undefined;
|
|
361
|
-
}>;
|
|
362
|
-
created_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
|
|
363
|
-
created_by: z.ZodString;
|
|
364
|
-
}, "strict", z.ZodTypeAny, {
|
|
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;
|
|
365
767
|
created_at: number & {
|
|
366
768
|
__brand: "UnixTimestamp";
|
|
367
|
-
}
|
|
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
|
+
};
|
|
368
782
|
created_by: string;
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
grade: "error" | "pass" | "fail" | "skip";
|
|
372
|
-
reason: string;
|
|
373
|
-
error_message?: string | undefined;
|
|
783
|
+
updated_at: number & {
|
|
784
|
+
__brand: "UnixTimestamp";
|
|
374
785
|
};
|
|
786
|
+
updated_by: string;
|
|
787
|
+
type: "statusChanged";
|
|
788
|
+
curr_status: string;
|
|
789
|
+
prev_status: string;
|
|
375
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;
|
|
376
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
|
+
};
|
|
377
820
|
created_by: string;
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
grade: "error" | "pass" | "fail" | "skip";
|
|
381
|
-
reason: string;
|
|
382
|
-
error_message?: string | undefined;
|
|
821
|
+
updated_at: number & {
|
|
822
|
+
__brand: "UnixTimestamp";
|
|
383
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;
|
|
384
877
|
}>, "many">>>;
|
|
878
|
+
acceptance_status: z.ZodOptional<z.ZodEnum<["justification_required", "under_review", "accepted", "rejected"]>>;
|
|
385
879
|
pto_message: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
386
880
|
}, "strict", z.ZodTypeAny, {
|
|
387
881
|
_id?: string | undefined;
|
|
388
882
|
created_by?: string | undefined;
|
|
389
883
|
updated_by?: string | undefined;
|
|
390
|
-
comments?: {
|
|
884
|
+
comments?: ({
|
|
391
885
|
_id: string;
|
|
392
886
|
created_at: number & {
|
|
393
887
|
__brand: "UnixTimestamp";
|
|
394
|
-
}
|
|
888
|
+
};
|
|
395
889
|
created_by: string;
|
|
396
890
|
updated_at: number & {
|
|
397
891
|
__brand: "UnixTimestamp";
|
|
398
|
-
}
|
|
892
|
+
};
|
|
399
893
|
updated_by: string;
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
894
|
+
message: string;
|
|
895
|
+
type: "note";
|
|
896
|
+
} | {
|
|
897
|
+
_id: string;
|
|
404
898
|
created_at: number & {
|
|
405
899
|
__brand: "UnixTimestamp";
|
|
406
|
-
}
|
|
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
|
+
};
|
|
407
913
|
created_by: string;
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
grade: "error" | "pass" | "fail" | "skip";
|
|
411
|
-
reason: string;
|
|
412
|
-
error_message?: string | undefined;
|
|
914
|
+
updated_at: number & {
|
|
915
|
+
__brand: "UnixTimestamp";
|
|
413
916
|
};
|
|
414
|
-
|
|
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;
|
|
415
923
|
pto_message?: string | undefined;
|
|
416
924
|
}, {
|
|
417
925
|
_id?: string | undefined;
|
|
418
926
|
created_by?: string | undefined;
|
|
419
927
|
updated_by?: string | undefined;
|
|
420
|
-
comments?: {
|
|
928
|
+
comments?: ({
|
|
421
929
|
_id: string;
|
|
422
930
|
created_at: number;
|
|
423
931
|
updated_at: number;
|
|
424
|
-
|
|
932
|
+
message: string;
|
|
933
|
+
type: "note";
|
|
425
934
|
created_by?: string | undefined;
|
|
426
935
|
updated_by?: string | undefined;
|
|
427
|
-
}
|
|
428
|
-
|
|
429
|
-
changelog?: {
|
|
936
|
+
} | {
|
|
937
|
+
_id: string;
|
|
430
938
|
created_at: number;
|
|
431
|
-
created_by:
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
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;
|
|
439
955
|
pto_message?: string | undefined;
|
|
440
956
|
}>;
|
|
441
|
-
export
|
|
442
|
-
changelog: RideJustificationChangelog[];
|
|
443
|
-
created_at: UnixTimestamp;
|
|
444
|
-
updated_at: UnixTimestamp;
|
|
445
|
-
}
|
|
957
|
+
export type RideJustification = z.infer<typeof RideJustificationSchema>;
|
|
446
958
|
export type CreateRideJustificationDto = z.infer<typeof CreateRideJustificationSchema>;
|
|
447
959
|
export type UpdateRideJustificationDto = Partial<CreateRideJustificationDto>;
|