@tmlmobilidade/types 20250911.1325.18 → 20250911.1428.53
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 +20 -20
- package/dist/src/_common/document.d.ts +4 -4
- package/dist/src/_common/document.js +2 -2
- package/dist/src/_common/proposed-change.d.ts +9 -9
- package/dist/src/agency.d.ts +9 -9
- package/dist/src/alert.d.ts +5 -5
- package/dist/src/auth/role.d.ts +9 -9
- package/dist/src/auth/session.d.ts +9 -9
- package/dist/src/auth/user.d.ts +9 -9
- package/dist/src/auth/verification-token.d.ts +9 -9
- package/dist/src/organization.d.ts +9 -9
- package/dist/src/plans/gtfs-validation.d.ts +9 -9
- package/dist/src/plans/plan.d.ts +9 -9
- package/dist/src/rides/ride-audit.d.ts +27 -27
- package/dist/src/rides/ride-justification.d.ts +69 -69
- package/dist/src/rides/ride.d.ts +9 -9
- package/dist/src/sams/sam.d.ts +9 -9
- package/dist/src/simplified-apex/simplified-apex-location.d.ts +6 -6
- package/dist/src/simplified-apex/simplified-apex-on-board-refund.d.ts +6 -6
- package/dist/src/simplified-apex/simplified-apex-on-board-sale.d.ts +5 -5
- package/dist/src/simplified-apex/simplified-apex-validation.d.ts +6 -6
- package/dist/src/stop.d.ts +65 -65
- package/dist/src/vehicle-event.d.ts +4 -4
- package/dist/src/zone.d.ts +9 -9
- package/package.json +1 -1
|
@@ -8,9 +8,9 @@ export type RideJustificationCause = z.infer<typeof RideJustificationCauseSchema
|
|
|
8
8
|
export declare const RideJustificationSchema: z.ZodObject<{
|
|
9
9
|
_id: z.ZodString;
|
|
10
10
|
created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
11
|
-
created_by: z.
|
|
11
|
+
created_by: z.ZodOptional<z.ZodString>;
|
|
12
12
|
updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
13
|
-
updated_by: z.
|
|
13
|
+
updated_by: z.ZodOptional<z.ZodString>;
|
|
14
14
|
} & {
|
|
15
15
|
acceptance_status: z.ZodEnum<["justification_required", "under_review", "accepted", "rejected"]>;
|
|
16
16
|
analysis: z.ZodObject<{
|
|
@@ -29,9 +29,9 @@ export declare const RideJustificationSchema: z.ZodObject<{
|
|
|
29
29
|
comments: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
30
30
|
_id: z.ZodString;
|
|
31
31
|
created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
32
|
-
created_by: z.
|
|
32
|
+
created_by: z.ZodOptional<z.ZodString>;
|
|
33
33
|
updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
34
|
-
updated_by: z.
|
|
34
|
+
updated_by: z.ZodOptional<z.ZodString>;
|
|
35
35
|
} & {
|
|
36
36
|
message: z.ZodString;
|
|
37
37
|
type: z.ZodLiteral<"note">;
|
|
@@ -40,13 +40,13 @@ export declare const RideJustificationSchema: z.ZodObject<{
|
|
|
40
40
|
created_at: number & {
|
|
41
41
|
__brand: "UnixTimestamp";
|
|
42
42
|
};
|
|
43
|
-
created_by: string;
|
|
44
43
|
updated_at: number & {
|
|
45
44
|
__brand: "UnixTimestamp";
|
|
46
45
|
};
|
|
47
|
-
updated_by: string;
|
|
48
46
|
message: string;
|
|
49
47
|
type: "note";
|
|
48
|
+
created_by?: string | undefined;
|
|
49
|
+
updated_by?: string | undefined;
|
|
50
50
|
}, {
|
|
51
51
|
_id: string;
|
|
52
52
|
created_at: number;
|
|
@@ -87,9 +87,9 @@ export declare const RideJustificationSchema: z.ZodObject<{
|
|
|
87
87
|
}>, z.ZodObject<{
|
|
88
88
|
_id: z.ZodString;
|
|
89
89
|
created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
90
|
-
created_by: z.
|
|
90
|
+
created_by: z.ZodOptional<z.ZodString>;
|
|
91
91
|
updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
92
|
-
updated_by: z.
|
|
92
|
+
updated_by: z.ZodOptional<z.ZodString>;
|
|
93
93
|
} & {
|
|
94
94
|
curr_status: z.ZodString;
|
|
95
95
|
prev_status: z.ZodString;
|
|
@@ -99,14 +99,14 @@ export declare const RideJustificationSchema: z.ZodObject<{
|
|
|
99
99
|
created_at: number & {
|
|
100
100
|
__brand: "UnixTimestamp";
|
|
101
101
|
};
|
|
102
|
-
created_by: string;
|
|
103
102
|
updated_at: number & {
|
|
104
103
|
__brand: "UnixTimestamp";
|
|
105
104
|
};
|
|
106
|
-
updated_by: string;
|
|
107
105
|
type: "statusChanged";
|
|
108
106
|
curr_status: string;
|
|
109
107
|
prev_status: string;
|
|
108
|
+
created_by?: string | undefined;
|
|
109
|
+
updated_by?: string | undefined;
|
|
110
110
|
}, {
|
|
111
111
|
_id: string;
|
|
112
112
|
created_at: number;
|
|
@@ -121,13 +121,13 @@ export declare const RideJustificationSchema: z.ZodObject<{
|
|
|
121
121
|
created_at: number & {
|
|
122
122
|
__brand: "UnixTimestamp";
|
|
123
123
|
};
|
|
124
|
-
created_by: string;
|
|
125
124
|
updated_at: number & {
|
|
126
125
|
__brand: "UnixTimestamp";
|
|
127
126
|
};
|
|
128
|
-
updated_by: string;
|
|
129
127
|
message: string;
|
|
130
128
|
type: "note";
|
|
129
|
+
created_by?: string | undefined;
|
|
130
|
+
updated_by?: string | undefined;
|
|
131
131
|
} | {
|
|
132
132
|
_id: string;
|
|
133
133
|
created_at: number & {
|
|
@@ -145,14 +145,14 @@ export declare const RideJustificationSchema: z.ZodObject<{
|
|
|
145
145
|
created_at: number & {
|
|
146
146
|
__brand: "UnixTimestamp";
|
|
147
147
|
};
|
|
148
|
-
created_by: string;
|
|
149
148
|
updated_at: number & {
|
|
150
149
|
__brand: "UnixTimestamp";
|
|
151
150
|
};
|
|
152
|
-
updated_by: string;
|
|
153
151
|
type: "statusChanged";
|
|
154
152
|
curr_status: string;
|
|
155
153
|
prev_status: string;
|
|
154
|
+
created_by?: string | undefined;
|
|
155
|
+
updated_by?: string | undefined;
|
|
156
156
|
}, {
|
|
157
157
|
_id: string;
|
|
158
158
|
created_at: number;
|
|
@@ -183,13 +183,13 @@ export declare const RideJustificationSchema: z.ZodObject<{
|
|
|
183
183
|
created_at: number & {
|
|
184
184
|
__brand: "UnixTimestamp";
|
|
185
185
|
};
|
|
186
|
-
created_by: string;
|
|
187
186
|
updated_at: number & {
|
|
188
187
|
__brand: "UnixTimestamp";
|
|
189
188
|
};
|
|
190
|
-
updated_by: string;
|
|
191
189
|
message: string;
|
|
192
190
|
type: "note";
|
|
191
|
+
created_by?: string | undefined;
|
|
192
|
+
updated_by?: string | undefined;
|
|
193
193
|
} | {
|
|
194
194
|
_id: string;
|
|
195
195
|
created_at: number & {
|
|
@@ -207,14 +207,14 @@ export declare const RideJustificationSchema: z.ZodObject<{
|
|
|
207
207
|
created_at: number & {
|
|
208
208
|
__brand: "UnixTimestamp";
|
|
209
209
|
};
|
|
210
|
-
created_by: string;
|
|
211
210
|
updated_at: number & {
|
|
212
211
|
__brand: "UnixTimestamp";
|
|
213
212
|
};
|
|
214
|
-
updated_by: string;
|
|
215
213
|
type: "statusChanged";
|
|
216
214
|
curr_status: string;
|
|
217
215
|
prev_status: string;
|
|
216
|
+
created_by?: string | undefined;
|
|
217
|
+
updated_by?: string | undefined;
|
|
218
218
|
}, {
|
|
219
219
|
_id: string;
|
|
220
220
|
created_at: number;
|
|
@@ -249,23 +249,21 @@ export declare const RideJustificationSchema: z.ZodObject<{
|
|
|
249
249
|
created_at: number & {
|
|
250
250
|
__brand: "UnixTimestamp";
|
|
251
251
|
};
|
|
252
|
-
created_by: string;
|
|
253
252
|
updated_at: number & {
|
|
254
253
|
__brand: "UnixTimestamp";
|
|
255
254
|
};
|
|
256
|
-
updated_by: string;
|
|
257
255
|
comments: ({
|
|
258
256
|
_id: string;
|
|
259
257
|
created_at: number & {
|
|
260
258
|
__brand: "UnixTimestamp";
|
|
261
259
|
};
|
|
262
|
-
created_by: string;
|
|
263
260
|
updated_at: number & {
|
|
264
261
|
__brand: "UnixTimestamp";
|
|
265
262
|
};
|
|
266
|
-
updated_by: string;
|
|
267
263
|
message: string;
|
|
268
264
|
type: "note";
|
|
265
|
+
created_by?: string | undefined;
|
|
266
|
+
updated_by?: string | undefined;
|
|
269
267
|
} | {
|
|
270
268
|
_id: string;
|
|
271
269
|
created_at: number & {
|
|
@@ -283,14 +281,14 @@ export declare const RideJustificationSchema: z.ZodObject<{
|
|
|
283
281
|
created_at: number & {
|
|
284
282
|
__brand: "UnixTimestamp";
|
|
285
283
|
};
|
|
286
|
-
created_by: string;
|
|
287
284
|
updated_at: number & {
|
|
288
285
|
__brand: "UnixTimestamp";
|
|
289
286
|
};
|
|
290
|
-
updated_by: string;
|
|
291
287
|
type: "statusChanged";
|
|
292
288
|
curr_status: string;
|
|
293
289
|
prev_status: string;
|
|
290
|
+
created_by?: string | undefined;
|
|
291
|
+
updated_by?: string | undefined;
|
|
294
292
|
})[];
|
|
295
293
|
acceptance_status: "accepted" | "justification_required" | "under_review" | "rejected";
|
|
296
294
|
analysis: {
|
|
@@ -301,6 +299,8 @@ export declare const RideJustificationSchema: z.ZodObject<{
|
|
|
301
299
|
justification_cause: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "MEDICAL_EMERGENCY" | "OTHER_CAUSE" | "POLICE_ACTIVITY" | "TECHNICAL_PROBLEM" | "WEATHER";
|
|
302
300
|
pto_message: string;
|
|
303
301
|
trip_id: string;
|
|
302
|
+
created_by?: string | undefined;
|
|
303
|
+
updated_by?: string | undefined;
|
|
304
304
|
}, {
|
|
305
305
|
_id: string;
|
|
306
306
|
created_at: number;
|
|
@@ -346,15 +346,15 @@ export declare const RideJustificationSchema: z.ZodObject<{
|
|
|
346
346
|
export declare const CreateRideJustificationSchema: z.ZodObject<Omit<{
|
|
347
347
|
_id: z.ZodOptional<z.ZodString>;
|
|
348
348
|
created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
349
|
-
created_by: z.
|
|
349
|
+
created_by: z.ZodOptional<z.ZodString>;
|
|
350
350
|
updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
351
|
-
updated_by: z.
|
|
351
|
+
updated_by: z.ZodOptional<z.ZodString>;
|
|
352
352
|
comments: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
353
353
|
_id: z.ZodString;
|
|
354
354
|
created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
355
|
-
created_by: z.
|
|
355
|
+
created_by: z.ZodOptional<z.ZodString>;
|
|
356
356
|
updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
357
|
-
updated_by: z.
|
|
357
|
+
updated_by: z.ZodOptional<z.ZodString>;
|
|
358
358
|
} & {
|
|
359
359
|
message: z.ZodString;
|
|
360
360
|
type: z.ZodLiteral<"note">;
|
|
@@ -363,13 +363,13 @@ export declare const CreateRideJustificationSchema: z.ZodObject<Omit<{
|
|
|
363
363
|
created_at: number & {
|
|
364
364
|
__brand: "UnixTimestamp";
|
|
365
365
|
};
|
|
366
|
-
created_by: string;
|
|
367
366
|
updated_at: number & {
|
|
368
367
|
__brand: "UnixTimestamp";
|
|
369
368
|
};
|
|
370
|
-
updated_by: string;
|
|
371
369
|
message: string;
|
|
372
370
|
type: "note";
|
|
371
|
+
created_by?: string | undefined;
|
|
372
|
+
updated_by?: string | undefined;
|
|
373
373
|
}, {
|
|
374
374
|
_id: string;
|
|
375
375
|
created_at: number;
|
|
@@ -410,9 +410,9 @@ export declare const CreateRideJustificationSchema: z.ZodObject<Omit<{
|
|
|
410
410
|
}>, z.ZodObject<{
|
|
411
411
|
_id: z.ZodString;
|
|
412
412
|
created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
413
|
-
created_by: z.
|
|
413
|
+
created_by: z.ZodOptional<z.ZodString>;
|
|
414
414
|
updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
415
|
-
updated_by: z.
|
|
415
|
+
updated_by: z.ZodOptional<z.ZodString>;
|
|
416
416
|
} & {
|
|
417
417
|
curr_status: z.ZodString;
|
|
418
418
|
prev_status: z.ZodString;
|
|
@@ -422,14 +422,14 @@ export declare const CreateRideJustificationSchema: z.ZodObject<Omit<{
|
|
|
422
422
|
created_at: number & {
|
|
423
423
|
__brand: "UnixTimestamp";
|
|
424
424
|
};
|
|
425
|
-
created_by: string;
|
|
426
425
|
updated_at: number & {
|
|
427
426
|
__brand: "UnixTimestamp";
|
|
428
427
|
};
|
|
429
|
-
updated_by: string;
|
|
430
428
|
type: "statusChanged";
|
|
431
429
|
curr_status: string;
|
|
432
430
|
prev_status: string;
|
|
431
|
+
created_by?: string | undefined;
|
|
432
|
+
updated_by?: string | undefined;
|
|
433
433
|
}, {
|
|
434
434
|
_id: string;
|
|
435
435
|
created_at: number;
|
|
@@ -444,13 +444,13 @@ export declare const CreateRideJustificationSchema: z.ZodObject<Omit<{
|
|
|
444
444
|
created_at: number & {
|
|
445
445
|
__brand: "UnixTimestamp";
|
|
446
446
|
};
|
|
447
|
-
created_by: string;
|
|
448
447
|
updated_at: number & {
|
|
449
448
|
__brand: "UnixTimestamp";
|
|
450
449
|
};
|
|
451
|
-
updated_by: string;
|
|
452
450
|
message: string;
|
|
453
451
|
type: "note";
|
|
452
|
+
created_by?: string | undefined;
|
|
453
|
+
updated_by?: string | undefined;
|
|
454
454
|
} | {
|
|
455
455
|
_id: string;
|
|
456
456
|
created_at: number & {
|
|
@@ -468,14 +468,14 @@ export declare const CreateRideJustificationSchema: z.ZodObject<Omit<{
|
|
|
468
468
|
created_at: number & {
|
|
469
469
|
__brand: "UnixTimestamp";
|
|
470
470
|
};
|
|
471
|
-
created_by: string;
|
|
472
471
|
updated_at: number & {
|
|
473
472
|
__brand: "UnixTimestamp";
|
|
474
473
|
};
|
|
475
|
-
updated_by: string;
|
|
476
474
|
type: "statusChanged";
|
|
477
475
|
curr_status: string;
|
|
478
476
|
prev_status: string;
|
|
477
|
+
created_by?: string | undefined;
|
|
478
|
+
updated_by?: string | undefined;
|
|
479
479
|
}, {
|
|
480
480
|
_id: string;
|
|
481
481
|
created_at: number;
|
|
@@ -506,13 +506,13 @@ export declare const CreateRideJustificationSchema: z.ZodObject<Omit<{
|
|
|
506
506
|
created_at: number & {
|
|
507
507
|
__brand: "UnixTimestamp";
|
|
508
508
|
};
|
|
509
|
-
created_by: string;
|
|
510
509
|
updated_at: number & {
|
|
511
510
|
__brand: "UnixTimestamp";
|
|
512
511
|
};
|
|
513
|
-
updated_by: string;
|
|
514
512
|
message: string;
|
|
515
513
|
type: "note";
|
|
514
|
+
created_by?: string | undefined;
|
|
515
|
+
updated_by?: string | undefined;
|
|
516
516
|
} | {
|
|
517
517
|
_id: string;
|
|
518
518
|
created_at: number & {
|
|
@@ -530,14 +530,14 @@ export declare const CreateRideJustificationSchema: z.ZodObject<Omit<{
|
|
|
530
530
|
created_at: number & {
|
|
531
531
|
__brand: "UnixTimestamp";
|
|
532
532
|
};
|
|
533
|
-
created_by: string;
|
|
534
533
|
updated_at: number & {
|
|
535
534
|
__brand: "UnixTimestamp";
|
|
536
535
|
};
|
|
537
|
-
updated_by: string;
|
|
538
536
|
type: "statusChanged";
|
|
539
537
|
curr_status: string;
|
|
540
538
|
prev_status: string;
|
|
539
|
+
created_by?: string | undefined;
|
|
540
|
+
updated_by?: string | undefined;
|
|
541
541
|
}, {
|
|
542
542
|
_id: string;
|
|
543
543
|
created_at: number;
|
|
@@ -582,20 +582,18 @@ export declare const CreateRideJustificationSchema: z.ZodObject<Omit<{
|
|
|
582
582
|
pto_message: z.ZodDefault<z.ZodString>;
|
|
583
583
|
trip_id: z.ZodString;
|
|
584
584
|
}, "created_at" | "updated_at">, "strict", z.ZodTypeAny, {
|
|
585
|
-
created_by: string;
|
|
586
|
-
updated_by: string;
|
|
587
585
|
comments: ({
|
|
588
586
|
_id: string;
|
|
589
587
|
created_at: number & {
|
|
590
588
|
__brand: "UnixTimestamp";
|
|
591
589
|
};
|
|
592
|
-
created_by: string;
|
|
593
590
|
updated_at: number & {
|
|
594
591
|
__brand: "UnixTimestamp";
|
|
595
592
|
};
|
|
596
|
-
updated_by: string;
|
|
597
593
|
message: string;
|
|
598
594
|
type: "note";
|
|
595
|
+
created_by?: string | undefined;
|
|
596
|
+
updated_by?: string | undefined;
|
|
599
597
|
} | {
|
|
600
598
|
_id: string;
|
|
601
599
|
created_at: number & {
|
|
@@ -613,14 +611,14 @@ export declare const CreateRideJustificationSchema: z.ZodObject<Omit<{
|
|
|
613
611
|
created_at: number & {
|
|
614
612
|
__brand: "UnixTimestamp";
|
|
615
613
|
};
|
|
616
|
-
created_by: string;
|
|
617
614
|
updated_at: number & {
|
|
618
615
|
__brand: "UnixTimestamp";
|
|
619
616
|
};
|
|
620
|
-
updated_by: string;
|
|
621
617
|
type: "statusChanged";
|
|
622
618
|
curr_status: string;
|
|
623
619
|
prev_status: string;
|
|
620
|
+
created_by?: string | undefined;
|
|
621
|
+
updated_by?: string | undefined;
|
|
624
622
|
})[];
|
|
625
623
|
acceptance_status: "accepted" | "justification_required" | "under_review" | "rejected";
|
|
626
624
|
analysis: {
|
|
@@ -632,6 +630,8 @@ export declare const CreateRideJustificationSchema: z.ZodObject<Omit<{
|
|
|
632
630
|
pto_message: string;
|
|
633
631
|
trip_id: string;
|
|
634
632
|
_id?: string | undefined;
|
|
633
|
+
created_by?: string | undefined;
|
|
634
|
+
updated_by?: string | undefined;
|
|
635
635
|
}, {
|
|
636
636
|
acceptance_status: "accepted" | "justification_required" | "under_review" | "rejected";
|
|
637
637
|
analysis: {
|
|
@@ -674,13 +674,13 @@ export declare const CreateRideJustificationSchema: z.ZodObject<Omit<{
|
|
|
674
674
|
}>;
|
|
675
675
|
export declare const UpdateRideJustificationSchema: z.ZodObject<{
|
|
676
676
|
_id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
677
|
-
updated_by: z.ZodOptional<z.
|
|
677
|
+
updated_by: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
678
678
|
comments: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
679
679
|
_id: z.ZodString;
|
|
680
680
|
created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
681
|
-
created_by: z.
|
|
681
|
+
created_by: z.ZodOptional<z.ZodString>;
|
|
682
682
|
updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
683
|
-
updated_by: z.
|
|
683
|
+
updated_by: z.ZodOptional<z.ZodString>;
|
|
684
684
|
} & {
|
|
685
685
|
message: z.ZodString;
|
|
686
686
|
type: z.ZodLiteral<"note">;
|
|
@@ -689,13 +689,13 @@ export declare const UpdateRideJustificationSchema: z.ZodObject<{
|
|
|
689
689
|
created_at: number & {
|
|
690
690
|
__brand: "UnixTimestamp";
|
|
691
691
|
};
|
|
692
|
-
created_by: string;
|
|
693
692
|
updated_at: number & {
|
|
694
693
|
__brand: "UnixTimestamp";
|
|
695
694
|
};
|
|
696
|
-
updated_by: string;
|
|
697
695
|
message: string;
|
|
698
696
|
type: "note";
|
|
697
|
+
created_by?: string | undefined;
|
|
698
|
+
updated_by?: string | undefined;
|
|
699
699
|
}, {
|
|
700
700
|
_id: string;
|
|
701
701
|
created_at: number;
|
|
@@ -736,9 +736,9 @@ export declare const UpdateRideJustificationSchema: z.ZodObject<{
|
|
|
736
736
|
}>, z.ZodObject<{
|
|
737
737
|
_id: z.ZodString;
|
|
738
738
|
created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
739
|
-
created_by: z.
|
|
739
|
+
created_by: z.ZodOptional<z.ZodString>;
|
|
740
740
|
updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
741
|
-
updated_by: z.
|
|
741
|
+
updated_by: z.ZodOptional<z.ZodString>;
|
|
742
742
|
} & {
|
|
743
743
|
curr_status: z.ZodString;
|
|
744
744
|
prev_status: z.ZodString;
|
|
@@ -748,14 +748,14 @@ export declare const UpdateRideJustificationSchema: z.ZodObject<{
|
|
|
748
748
|
created_at: number & {
|
|
749
749
|
__brand: "UnixTimestamp";
|
|
750
750
|
};
|
|
751
|
-
created_by: string;
|
|
752
751
|
updated_at: number & {
|
|
753
752
|
__brand: "UnixTimestamp";
|
|
754
753
|
};
|
|
755
|
-
updated_by: string;
|
|
756
754
|
type: "statusChanged";
|
|
757
755
|
curr_status: string;
|
|
758
756
|
prev_status: string;
|
|
757
|
+
created_by?: string | undefined;
|
|
758
|
+
updated_by?: string | undefined;
|
|
759
759
|
}, {
|
|
760
760
|
_id: string;
|
|
761
761
|
created_at: number;
|
|
@@ -770,13 +770,13 @@ export declare const UpdateRideJustificationSchema: z.ZodObject<{
|
|
|
770
770
|
created_at: number & {
|
|
771
771
|
__brand: "UnixTimestamp";
|
|
772
772
|
};
|
|
773
|
-
created_by: string;
|
|
774
773
|
updated_at: number & {
|
|
775
774
|
__brand: "UnixTimestamp";
|
|
776
775
|
};
|
|
777
|
-
updated_by: string;
|
|
778
776
|
message: string;
|
|
779
777
|
type: "note";
|
|
778
|
+
created_by?: string | undefined;
|
|
779
|
+
updated_by?: string | undefined;
|
|
780
780
|
} | {
|
|
781
781
|
_id: string;
|
|
782
782
|
created_at: number & {
|
|
@@ -794,14 +794,14 @@ export declare const UpdateRideJustificationSchema: z.ZodObject<{
|
|
|
794
794
|
created_at: number & {
|
|
795
795
|
__brand: "UnixTimestamp";
|
|
796
796
|
};
|
|
797
|
-
created_by: string;
|
|
798
797
|
updated_at: number & {
|
|
799
798
|
__brand: "UnixTimestamp";
|
|
800
799
|
};
|
|
801
|
-
updated_by: string;
|
|
802
800
|
type: "statusChanged";
|
|
803
801
|
curr_status: string;
|
|
804
802
|
prev_status: string;
|
|
803
|
+
created_by?: string | undefined;
|
|
804
|
+
updated_by?: string | undefined;
|
|
805
805
|
}, {
|
|
806
806
|
_id: string;
|
|
807
807
|
created_at: number;
|
|
@@ -832,13 +832,13 @@ export declare const UpdateRideJustificationSchema: z.ZodObject<{
|
|
|
832
832
|
created_at: number & {
|
|
833
833
|
__brand: "UnixTimestamp";
|
|
834
834
|
};
|
|
835
|
-
created_by: string;
|
|
836
835
|
updated_at: number & {
|
|
837
836
|
__brand: "UnixTimestamp";
|
|
838
837
|
};
|
|
839
|
-
updated_by: string;
|
|
840
838
|
message: string;
|
|
841
839
|
type: "note";
|
|
840
|
+
created_by?: string | undefined;
|
|
841
|
+
updated_by?: string | undefined;
|
|
842
842
|
} | {
|
|
843
843
|
_id: string;
|
|
844
844
|
created_at: number & {
|
|
@@ -856,14 +856,14 @@ export declare const UpdateRideJustificationSchema: z.ZodObject<{
|
|
|
856
856
|
created_at: number & {
|
|
857
857
|
__brand: "UnixTimestamp";
|
|
858
858
|
};
|
|
859
|
-
created_by: string;
|
|
860
859
|
updated_at: number & {
|
|
861
860
|
__brand: "UnixTimestamp";
|
|
862
861
|
};
|
|
863
|
-
updated_by: string;
|
|
864
862
|
type: "statusChanged";
|
|
865
863
|
curr_status: string;
|
|
866
864
|
prev_status: string;
|
|
865
|
+
created_by?: string | undefined;
|
|
866
|
+
updated_by?: string | undefined;
|
|
867
867
|
}, {
|
|
868
868
|
_id: string;
|
|
869
869
|
created_at: number;
|
|
@@ -915,13 +915,13 @@ export declare const UpdateRideJustificationSchema: z.ZodObject<{
|
|
|
915
915
|
created_at: number & {
|
|
916
916
|
__brand: "UnixTimestamp";
|
|
917
917
|
};
|
|
918
|
-
created_by: string;
|
|
919
918
|
updated_at: number & {
|
|
920
919
|
__brand: "UnixTimestamp";
|
|
921
920
|
};
|
|
922
|
-
updated_by: string;
|
|
923
921
|
message: string;
|
|
924
922
|
type: "note";
|
|
923
|
+
created_by?: string | undefined;
|
|
924
|
+
updated_by?: string | undefined;
|
|
925
925
|
} | {
|
|
926
926
|
_id: string;
|
|
927
927
|
created_at: number & {
|
|
@@ -939,14 +939,14 @@ export declare const UpdateRideJustificationSchema: z.ZodObject<{
|
|
|
939
939
|
created_at: number & {
|
|
940
940
|
__brand: "UnixTimestamp";
|
|
941
941
|
};
|
|
942
|
-
created_by: string;
|
|
943
942
|
updated_at: number & {
|
|
944
943
|
__brand: "UnixTimestamp";
|
|
945
944
|
};
|
|
946
|
-
updated_by: string;
|
|
947
945
|
type: "statusChanged";
|
|
948
946
|
curr_status: string;
|
|
949
947
|
prev_status: string;
|
|
948
|
+
created_by?: string | undefined;
|
|
949
|
+
updated_by?: string | undefined;
|
|
950
950
|
})[] | undefined;
|
|
951
951
|
acceptance_status?: "accepted" | "justification_required" | "under_review" | "rejected" | undefined;
|
|
952
952
|
analysis?: {
|
package/dist/src/rides/ride.d.ts
CHANGED
|
@@ -2,9 +2,9 @@ import { z } from 'zod';
|
|
|
2
2
|
export declare const RideSchema: z.ZodObject<{
|
|
3
3
|
_id: z.ZodString;
|
|
4
4
|
created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
5
|
-
created_by: z.
|
|
5
|
+
created_by: z.ZodOptional<z.ZodString>;
|
|
6
6
|
updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
7
|
-
updated_by: z.
|
|
7
|
+
updated_by: z.ZodOptional<z.ZodString>;
|
|
8
8
|
} & {
|
|
9
9
|
agency_id: z.ZodString;
|
|
10
10
|
analysis: z.ZodNullable<z.ZodObject<{
|
|
@@ -484,11 +484,9 @@ export declare const RideSchema: z.ZodObject<{
|
|
|
484
484
|
created_at: number & {
|
|
485
485
|
__brand: "UnixTimestamp";
|
|
486
486
|
};
|
|
487
|
-
created_by: string;
|
|
488
487
|
updated_at: number & {
|
|
489
488
|
__brand: "UnixTimestamp";
|
|
490
489
|
};
|
|
491
|
-
updated_by: string;
|
|
492
490
|
agency_id: string;
|
|
493
491
|
line_id: number;
|
|
494
492
|
analysis: {
|
|
@@ -621,6 +619,8 @@ export declare const RideSchema: z.ZodObject<{
|
|
|
621
619
|
};
|
|
622
620
|
system_status: "waiting" | "processing" | "complete" | "error";
|
|
623
621
|
vehicle_ids: number[];
|
|
622
|
+
created_by?: string | undefined;
|
|
623
|
+
updated_by?: string | undefined;
|
|
624
624
|
}, {
|
|
625
625
|
_id: string;
|
|
626
626
|
created_at: number;
|
|
@@ -757,9 +757,9 @@ export declare const RideSchema: z.ZodObject<{
|
|
|
757
757
|
export declare const CreateRideSchema: z.ZodObject<Omit<{
|
|
758
758
|
_id: z.ZodOptional<z.ZodString>;
|
|
759
759
|
created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
760
|
-
created_by: z.
|
|
760
|
+
created_by: z.ZodOptional<z.ZodString>;
|
|
761
761
|
updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
762
|
-
updated_by: z.
|
|
762
|
+
updated_by: z.ZodOptional<z.ZodString>;
|
|
763
763
|
agency_id: z.ZodString;
|
|
764
764
|
line_id: z.ZodNumber;
|
|
765
765
|
analysis: z.ZodNullable<z.ZodObject<{
|
|
@@ -1234,8 +1234,6 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
|
|
|
1234
1234
|
system_status: z.ZodDefault<z.ZodEnum<["waiting", "processing", "complete", "error"]>>;
|
|
1235
1235
|
vehicle_ids: z.ZodArray<z.ZodNumber, "many">;
|
|
1236
1236
|
}, "created_at" | "updated_at">, "strip", z.ZodTypeAny, {
|
|
1237
|
-
created_by: string;
|
|
1238
|
-
updated_by: string;
|
|
1239
1237
|
agency_id: string;
|
|
1240
1238
|
line_id: number;
|
|
1241
1239
|
analysis: {
|
|
@@ -1369,6 +1367,8 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
|
|
|
1369
1367
|
system_status: "waiting" | "processing" | "complete" | "error";
|
|
1370
1368
|
vehicle_ids: number[];
|
|
1371
1369
|
_id?: string | undefined;
|
|
1370
|
+
created_by?: string | undefined;
|
|
1371
|
+
updated_by?: string | undefined;
|
|
1372
1372
|
}, {
|
|
1373
1373
|
agency_id: string;
|
|
1374
1374
|
line_id: number;
|
|
@@ -1502,7 +1502,7 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
|
|
|
1502
1502
|
}>;
|
|
1503
1503
|
export declare const UpdateRideSchema: z.ZodObject<{
|
|
1504
1504
|
_id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1505
|
-
updated_by: z.ZodOptional<z.
|
|
1505
|
+
updated_by: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1506
1506
|
agency_id: z.ZodOptional<z.ZodString>;
|
|
1507
1507
|
line_id: z.ZodOptional<z.ZodNumber>;
|
|
1508
1508
|
analysis: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
package/dist/src/sams/sam.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const SamSchema: z.ZodObject<{
|
|
3
3
|
created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
4
|
-
created_by: z.
|
|
4
|
+
created_by: z.ZodOptional<z.ZodString>;
|
|
5
5
|
updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
6
|
-
updated_by: z.
|
|
6
|
+
updated_by: z.ZodOptional<z.ZodString>;
|
|
7
7
|
} & {
|
|
8
8
|
_id: z.ZodNumber;
|
|
9
9
|
agency_id: z.ZodString;
|
|
@@ -66,11 +66,9 @@ export declare const SamSchema: z.ZodObject<{
|
|
|
66
66
|
created_at: number & {
|
|
67
67
|
__brand: "UnixTimestamp";
|
|
68
68
|
};
|
|
69
|
-
created_by: string;
|
|
70
69
|
updated_at: number & {
|
|
71
70
|
__brand: "UnixTimestamp";
|
|
72
71
|
};
|
|
73
|
-
updated_by: string;
|
|
74
72
|
agency_id: string;
|
|
75
73
|
analysis: {
|
|
76
74
|
apex_version: string | null;
|
|
@@ -96,6 +94,8 @@ export declare const SamSchema: z.ZodObject<{
|
|
|
96
94
|
transactions_missing: number | null;
|
|
97
95
|
latest_apex_version: string | null;
|
|
98
96
|
remarks: string | null;
|
|
97
|
+
created_by?: string | undefined;
|
|
98
|
+
updated_by?: string | undefined;
|
|
99
99
|
}, {
|
|
100
100
|
_id: number;
|
|
101
101
|
created_at: number;
|
|
@@ -130,9 +130,9 @@ export declare const SamSchema: z.ZodObject<{
|
|
|
130
130
|
}>;
|
|
131
131
|
export declare const CreateSamSchema: z.ZodObject<Omit<{
|
|
132
132
|
created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
133
|
-
created_by: z.
|
|
133
|
+
created_by: z.ZodOptional<z.ZodString>;
|
|
134
134
|
updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
135
|
-
updated_by: z.
|
|
135
|
+
updated_by: z.ZodOptional<z.ZodString>;
|
|
136
136
|
} & {
|
|
137
137
|
_id: z.ZodNumber;
|
|
138
138
|
agency_id: z.ZodString;
|
|
@@ -192,8 +192,6 @@ export declare const CreateSamSchema: z.ZodObject<Omit<{
|
|
|
192
192
|
transactions_missing: z.ZodNullable<z.ZodNumber>;
|
|
193
193
|
}, "created_at" | "updated_at">, "strict", z.ZodTypeAny, {
|
|
194
194
|
_id: number;
|
|
195
|
-
created_by: string;
|
|
196
|
-
updated_by: string;
|
|
197
195
|
agency_id: string;
|
|
198
196
|
analysis: {
|
|
199
197
|
apex_version: string | null;
|
|
@@ -219,6 +217,8 @@ export declare const CreateSamSchema: z.ZodObject<Omit<{
|
|
|
219
217
|
transactions_missing: number | null;
|
|
220
218
|
latest_apex_version: string | null;
|
|
221
219
|
remarks: string | null;
|
|
220
|
+
created_by?: string | undefined;
|
|
221
|
+
updated_by?: string | undefined;
|
|
222
222
|
}, {
|
|
223
223
|
_id: number;
|
|
224
224
|
agency_id: string;
|
|
@@ -251,7 +251,7 @@ export declare const CreateSamSchema: z.ZodObject<Omit<{
|
|
|
251
251
|
}>;
|
|
252
252
|
export declare const UpdateSamSchema: z.ZodObject<{
|
|
253
253
|
_id: z.ZodOptional<z.ZodNumber>;
|
|
254
|
-
updated_by: z.ZodOptional<z.
|
|
254
|
+
updated_by: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
255
255
|
agency_id: z.ZodOptional<z.ZodString>;
|
|
256
256
|
analysis: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
257
257
|
apex_version: z.ZodNullable<z.ZodString>;
|