@tmlmobilidade/types 20250910.1538.31 → 20250911.1034.51
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/rides/ride-audit.d.ts +52 -1150
- package/dist/src/rides/ride-audit.js +2 -4
- package/dist/src/rides/ride-justification.d.ts +96 -6
- package/dist/src/rides/ride-justification.js +6 -0
- package/dist/src/rides/ride.d.ts +8 -8
- package/dist/src/simplified-apex/simplified-apex-location.d.ts +4 -4
- package/dist/src/simplified-apex/simplified-apex-on-board-refund.d.ts +4 -4
- package/dist/src/simplified-apex/simplified-apex-on-board-sale.d.ts +4 -4
- package/dist/src/simplified-apex/simplified-apex-validation.d.ts +4 -4
- package/dist/src/vehicle-event.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
/* * */
|
|
2
|
+
import { NoteCommentSchema } from '../_common/comment.js';
|
|
2
3
|
import { DocumentSchema } from '../_common/document.js';
|
|
3
|
-
import { RideAnalysisSchema } from './ride-analysis.js';
|
|
4
|
-
import { RideJustificationSchema } from './ride-justification.js';
|
|
5
4
|
import { z } from 'zod';
|
|
6
5
|
/* * */
|
|
7
6
|
export const RideAuditSchema = DocumentSchema.extend({
|
|
8
|
-
|
|
7
|
+
comments: z.array(NoteCommentSchema),
|
|
9
8
|
is_locked: z.boolean().default(false),
|
|
10
|
-
justification: RideJustificationSchema,
|
|
11
9
|
ride_id: z.string(),
|
|
12
10
|
}).strict();
|
|
13
11
|
export const CreateRideAuditSchema = RideAuditSchema.partial({ _id: true }).omit({ created_at: true, updated_at: true });
|
|
@@ -2,6 +2,9 @@ import { z } from 'zod';
|
|
|
2
2
|
export declare const RIDE_ACCEPTANCE_STATUS_OPTIONS: readonly ["justification_required", "under_review", "accepted", "rejected"];
|
|
3
3
|
export declare const RideAcceptanceStatusSchema: z.ZodEnum<["justification_required", "under_review", "accepted", "rejected"]>;
|
|
4
4
|
export type RideAcceptanceStatus = z.infer<typeof RideAcceptanceStatusSchema>;
|
|
5
|
+
export declare const RIDE_JUSTIFICATION_CAUSE_OPTIONS: readonly ["TECHNICAL_PROBLEM", "DEMONSTRATION", "ACCIDENT", "WEATHER", "CONSTRUCTION", "POLICE_ACTIVITY", "MEDICAL_EMERGENCY", "OTHER_CAUSE"];
|
|
6
|
+
export declare const RideJustificationCauseSchema: z.ZodEnum<["TECHNICAL_PROBLEM", "DEMONSTRATION", "ACCIDENT", "WEATHER", "CONSTRUCTION", "POLICE_ACTIVITY", "MEDICAL_EMERGENCY", "OTHER_CAUSE"]>;
|
|
7
|
+
export type RideJustificationCause = z.infer<typeof RideJustificationCauseSchema>;
|
|
5
8
|
export declare const RideJustificationSchema: z.ZodObject<{
|
|
6
9
|
_id: z.ZodString;
|
|
7
10
|
created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
@@ -10,6 +13,19 @@ export declare const RideJustificationSchema: z.ZodObject<{
|
|
|
10
13
|
updated_by: z.ZodDefault<z.ZodString>;
|
|
11
14
|
} & {
|
|
12
15
|
acceptance_status: z.ZodEnum<["justification_required", "under_review", "accepted", "rejected"]>;
|
|
16
|
+
analysis: z.ZodObject<{
|
|
17
|
+
error_message: z.ZodOptional<z.ZodString>;
|
|
18
|
+
grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
|
|
19
|
+
reason: z.ZodString;
|
|
20
|
+
}, "strict", z.ZodTypeAny, {
|
|
21
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
22
|
+
reason: string;
|
|
23
|
+
error_message?: string | undefined;
|
|
24
|
+
}, {
|
|
25
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
26
|
+
reason: string;
|
|
27
|
+
error_message?: string | undefined;
|
|
28
|
+
}>;
|
|
13
29
|
comments: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
14
30
|
_id: z.ZodString;
|
|
15
31
|
created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
@@ -225,7 +241,9 @@ export declare const RideJustificationSchema: z.ZodObject<{
|
|
|
225
241
|
created_by?: string | undefined;
|
|
226
242
|
updated_by?: string | undefined;
|
|
227
243
|
}>, "many">>;
|
|
244
|
+
justification_cause: z.ZodEnum<["TECHNICAL_PROBLEM", "DEMONSTRATION", "ACCIDENT", "WEATHER", "CONSTRUCTION", "POLICE_ACTIVITY", "MEDICAL_EMERGENCY", "OTHER_CAUSE"]>;
|
|
228
245
|
pto_message: z.ZodDefault<z.ZodString>;
|
|
246
|
+
trip_id: z.ZodString;
|
|
229
247
|
}, "strict", z.ZodTypeAny, {
|
|
230
248
|
_id: string;
|
|
231
249
|
created_at: number & {
|
|
@@ -236,7 +254,6 @@ export declare const RideJustificationSchema: z.ZodObject<{
|
|
|
236
254
|
__brand: "UnixTimestamp";
|
|
237
255
|
};
|
|
238
256
|
updated_by: string;
|
|
239
|
-
acceptance_status: "accepted" | "justification_required" | "under_review" | "rejected";
|
|
240
257
|
comments: ({
|
|
241
258
|
_id: string;
|
|
242
259
|
created_at: number & {
|
|
@@ -275,12 +292,27 @@ export declare const RideJustificationSchema: z.ZodObject<{
|
|
|
275
292
|
curr_status: string;
|
|
276
293
|
prev_status: string;
|
|
277
294
|
})[];
|
|
295
|
+
acceptance_status: "accepted" | "justification_required" | "under_review" | "rejected";
|
|
296
|
+
analysis: {
|
|
297
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
298
|
+
reason: string;
|
|
299
|
+
error_message?: string | undefined;
|
|
300
|
+
};
|
|
301
|
+
justification_cause: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "MEDICAL_EMERGENCY" | "OTHER_CAUSE" | "POLICE_ACTIVITY" | "TECHNICAL_PROBLEM" | "WEATHER";
|
|
278
302
|
pto_message: string;
|
|
303
|
+
trip_id: string;
|
|
279
304
|
}, {
|
|
280
305
|
_id: string;
|
|
281
306
|
created_at: number;
|
|
282
307
|
updated_at: number;
|
|
283
308
|
acceptance_status: "accepted" | "justification_required" | "under_review" | "rejected";
|
|
309
|
+
analysis: {
|
|
310
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
311
|
+
reason: string;
|
|
312
|
+
error_message?: string | undefined;
|
|
313
|
+
};
|
|
314
|
+
justification_cause: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "MEDICAL_EMERGENCY" | "OTHER_CAUSE" | "POLICE_ACTIVITY" | "TECHNICAL_PROBLEM" | "WEATHER";
|
|
315
|
+
trip_id: string;
|
|
284
316
|
created_by?: string | undefined;
|
|
285
317
|
updated_by?: string | undefined;
|
|
286
318
|
comments?: ({
|
|
@@ -317,7 +349,6 @@ export declare const CreateRideJustificationSchema: z.ZodObject<Omit<{
|
|
|
317
349
|
created_by: z.ZodDefault<z.ZodString>;
|
|
318
350
|
updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
319
351
|
updated_by: z.ZodDefault<z.ZodString>;
|
|
320
|
-
acceptance_status: z.ZodEnum<["justification_required", "under_review", "accepted", "rejected"]>;
|
|
321
352
|
comments: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
322
353
|
_id: z.ZodString;
|
|
323
354
|
created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
@@ -533,11 +564,26 @@ export declare const CreateRideJustificationSchema: z.ZodObject<Omit<{
|
|
|
533
564
|
created_by?: string | undefined;
|
|
534
565
|
updated_by?: string | undefined;
|
|
535
566
|
}>, "many">>;
|
|
567
|
+
acceptance_status: z.ZodEnum<["justification_required", "under_review", "accepted", "rejected"]>;
|
|
568
|
+
analysis: z.ZodObject<{
|
|
569
|
+
error_message: z.ZodOptional<z.ZodString>;
|
|
570
|
+
grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
|
|
571
|
+
reason: z.ZodString;
|
|
572
|
+
}, "strict", z.ZodTypeAny, {
|
|
573
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
574
|
+
reason: string;
|
|
575
|
+
error_message?: string | undefined;
|
|
576
|
+
}, {
|
|
577
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
578
|
+
reason: string;
|
|
579
|
+
error_message?: string | undefined;
|
|
580
|
+
}>;
|
|
581
|
+
justification_cause: z.ZodEnum<["TECHNICAL_PROBLEM", "DEMONSTRATION", "ACCIDENT", "WEATHER", "CONSTRUCTION", "POLICE_ACTIVITY", "MEDICAL_EMERGENCY", "OTHER_CAUSE"]>;
|
|
536
582
|
pto_message: z.ZodDefault<z.ZodString>;
|
|
583
|
+
trip_id: z.ZodString;
|
|
537
584
|
}, "created_at" | "updated_at">, "strict", z.ZodTypeAny, {
|
|
538
585
|
created_by: string;
|
|
539
586
|
updated_by: string;
|
|
540
|
-
acceptance_status: "accepted" | "justification_required" | "under_review" | "rejected";
|
|
541
587
|
comments: ({
|
|
542
588
|
_id: string;
|
|
543
589
|
created_at: number & {
|
|
@@ -576,10 +622,25 @@ export declare const CreateRideJustificationSchema: z.ZodObject<Omit<{
|
|
|
576
622
|
curr_status: string;
|
|
577
623
|
prev_status: string;
|
|
578
624
|
})[];
|
|
625
|
+
acceptance_status: "accepted" | "justification_required" | "under_review" | "rejected";
|
|
626
|
+
analysis: {
|
|
627
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
628
|
+
reason: string;
|
|
629
|
+
error_message?: string | undefined;
|
|
630
|
+
};
|
|
631
|
+
justification_cause: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "MEDICAL_EMERGENCY" | "OTHER_CAUSE" | "POLICE_ACTIVITY" | "TECHNICAL_PROBLEM" | "WEATHER";
|
|
579
632
|
pto_message: string;
|
|
633
|
+
trip_id: string;
|
|
580
634
|
_id?: string | undefined;
|
|
581
635
|
}, {
|
|
582
636
|
acceptance_status: "accepted" | "justification_required" | "under_review" | "rejected";
|
|
637
|
+
analysis: {
|
|
638
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
639
|
+
reason: string;
|
|
640
|
+
error_message?: string | undefined;
|
|
641
|
+
};
|
|
642
|
+
justification_cause: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "MEDICAL_EMERGENCY" | "OTHER_CAUSE" | "POLICE_ACTIVITY" | "TECHNICAL_PROBLEM" | "WEATHER";
|
|
643
|
+
trip_id: string;
|
|
583
644
|
_id?: string | undefined;
|
|
584
645
|
created_by?: string | undefined;
|
|
585
646
|
updated_by?: string | undefined;
|
|
@@ -615,7 +676,6 @@ export declare const UpdateRideJustificationSchema: z.ZodObject<{
|
|
|
615
676
|
_id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
616
677
|
created_by: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
617
678
|
updated_by: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
618
|
-
acceptance_status: z.ZodOptional<z.ZodEnum<["justification_required", "under_review", "accepted", "rejected"]>>;
|
|
619
679
|
comments: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
620
680
|
_id: z.ZodString;
|
|
621
681
|
created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
@@ -831,12 +891,27 @@ export declare const UpdateRideJustificationSchema: z.ZodObject<{
|
|
|
831
891
|
created_by?: string | undefined;
|
|
832
892
|
updated_by?: string | undefined;
|
|
833
893
|
}>, "many">>>;
|
|
894
|
+
acceptance_status: z.ZodOptional<z.ZodEnum<["justification_required", "under_review", "accepted", "rejected"]>>;
|
|
895
|
+
analysis: z.ZodOptional<z.ZodObject<{
|
|
896
|
+
error_message: z.ZodOptional<z.ZodString>;
|
|
897
|
+
grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
|
|
898
|
+
reason: z.ZodString;
|
|
899
|
+
}, "strict", z.ZodTypeAny, {
|
|
900
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
901
|
+
reason: string;
|
|
902
|
+
error_message?: string | undefined;
|
|
903
|
+
}, {
|
|
904
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
905
|
+
reason: string;
|
|
906
|
+
error_message?: string | undefined;
|
|
907
|
+
}>>;
|
|
908
|
+
justification_cause: z.ZodOptional<z.ZodEnum<["TECHNICAL_PROBLEM", "DEMONSTRATION", "ACCIDENT", "WEATHER", "CONSTRUCTION", "POLICE_ACTIVITY", "MEDICAL_EMERGENCY", "OTHER_CAUSE"]>>;
|
|
834
909
|
pto_message: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
910
|
+
trip_id: z.ZodOptional<z.ZodString>;
|
|
835
911
|
}, "strict", z.ZodTypeAny, {
|
|
836
912
|
_id?: string | undefined;
|
|
837
913
|
created_by?: string | undefined;
|
|
838
914
|
updated_by?: string | undefined;
|
|
839
|
-
acceptance_status?: "accepted" | "justification_required" | "under_review" | "rejected" | undefined;
|
|
840
915
|
comments?: ({
|
|
841
916
|
_id: string;
|
|
842
917
|
created_at: number & {
|
|
@@ -875,12 +950,19 @@ export declare const UpdateRideJustificationSchema: z.ZodObject<{
|
|
|
875
950
|
curr_status: string;
|
|
876
951
|
prev_status: string;
|
|
877
952
|
})[] | undefined;
|
|
953
|
+
acceptance_status?: "accepted" | "justification_required" | "under_review" | "rejected" | undefined;
|
|
954
|
+
analysis?: {
|
|
955
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
956
|
+
reason: string;
|
|
957
|
+
error_message?: string | undefined;
|
|
958
|
+
} | undefined;
|
|
959
|
+
justification_cause?: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "MEDICAL_EMERGENCY" | "OTHER_CAUSE" | "POLICE_ACTIVITY" | "TECHNICAL_PROBLEM" | "WEATHER" | undefined;
|
|
878
960
|
pto_message?: string | undefined;
|
|
961
|
+
trip_id?: string | undefined;
|
|
879
962
|
}, {
|
|
880
963
|
_id?: string | undefined;
|
|
881
964
|
created_by?: string | undefined;
|
|
882
965
|
updated_by?: string | undefined;
|
|
883
|
-
acceptance_status?: "accepted" | "justification_required" | "under_review" | "rejected" | undefined;
|
|
884
966
|
comments?: ({
|
|
885
967
|
_id: string;
|
|
886
968
|
created_at: number;
|
|
@@ -907,7 +989,15 @@ export declare const UpdateRideJustificationSchema: z.ZodObject<{
|
|
|
907
989
|
created_by?: string | undefined;
|
|
908
990
|
updated_by?: string | undefined;
|
|
909
991
|
})[] | undefined;
|
|
992
|
+
acceptance_status?: "accepted" | "justification_required" | "under_review" | "rejected" | undefined;
|
|
993
|
+
analysis?: {
|
|
994
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
995
|
+
reason: string;
|
|
996
|
+
error_message?: string | undefined;
|
|
997
|
+
} | undefined;
|
|
998
|
+
justification_cause?: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "MEDICAL_EMERGENCY" | "OTHER_CAUSE" | "POLICE_ACTIVITY" | "TECHNICAL_PROBLEM" | "WEATHER" | undefined;
|
|
910
999
|
pto_message?: string | undefined;
|
|
1000
|
+
trip_id?: string | undefined;
|
|
911
1001
|
}>;
|
|
912
1002
|
export type RideJustification = z.infer<typeof RideJustificationSchema>;
|
|
913
1003
|
export type CreateRideJustificationDto = z.infer<typeof CreateRideJustificationSchema>;
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
/* * */
|
|
2
2
|
import { CommentSchema, CommentTypeSchema } from '../_common/comment.js';
|
|
3
3
|
import { DocumentSchema } from '../_common/document.js';
|
|
4
|
+
import { RideAnalysisSchema } from './ride-analysis.js';
|
|
4
5
|
import { z } from 'zod';
|
|
5
6
|
/* * */
|
|
6
7
|
export const RIDE_ACCEPTANCE_STATUS_OPTIONS = ['justification_required', 'under_review', 'accepted', 'rejected'];
|
|
7
8
|
export const RideAcceptanceStatusSchema = z.enum(RIDE_ACCEPTANCE_STATUS_OPTIONS);
|
|
9
|
+
export const RIDE_JUSTIFICATION_CAUSE_OPTIONS = ['TECHNICAL_PROBLEM', 'DEMONSTRATION', 'ACCIDENT', 'WEATHER', 'CONSTRUCTION', 'POLICE_ACTIVITY', 'MEDICAL_EMERGENCY', 'OTHER_CAUSE'];
|
|
10
|
+
export const RideJustificationCauseSchema = z.enum(RIDE_JUSTIFICATION_CAUSE_OPTIONS);
|
|
8
11
|
/* * */
|
|
9
12
|
const CommentSchemaWithRideJustificationStatus = CommentSchema.superRefine((data, ctx) => {
|
|
10
13
|
if (data.type === CommentTypeSchema.enum.statusChanged) {
|
|
@@ -28,8 +31,11 @@ const CommentSchemaWithRideJustificationStatus = CommentSchema.superRefine((data
|
|
|
28
31
|
/* * */
|
|
29
32
|
export const RideJustificationSchema = DocumentSchema.extend({
|
|
30
33
|
acceptance_status: RideAcceptanceStatusSchema,
|
|
34
|
+
analysis: RideAnalysisSchema,
|
|
31
35
|
comments: z.array(CommentSchemaWithRideJustificationStatus).default([]),
|
|
36
|
+
justification_cause: RideJustificationCauseSchema,
|
|
32
37
|
pto_message: z.string().min(2).max(5000).default(''),
|
|
38
|
+
trip_id: z.string(),
|
|
33
39
|
}).strict();
|
|
34
40
|
export const CreateRideJustificationSchema = RideJustificationSchema.partial({ _id: true }).omit({ created_at: true, updated_at: true });
|
|
35
41
|
export const UpdateRideJustificationSchema = CreateRideJustificationSchema.partial();
|
package/dist/src/rides/ride.d.ts
CHANGED
|
@@ -585,6 +585,7 @@ export declare const RideSchema: z.ZodObject<{
|
|
|
585
585
|
error_message?: string | undefined;
|
|
586
586
|
};
|
|
587
587
|
} | null;
|
|
588
|
+
trip_id: string;
|
|
588
589
|
apex_locations_qty: number | null;
|
|
589
590
|
apex_on_board_refunds_amount: number | null;
|
|
590
591
|
apex_on_board_refunds_qty: number | null;
|
|
@@ -629,7 +630,6 @@ export declare const RideSchema: z.ZodObject<{
|
|
|
629
630
|
__brand: "UnixTimestamp";
|
|
630
631
|
} & z.BRAND<"UnixTimestamp">;
|
|
631
632
|
system_status: "waiting" | "processing" | "complete" | "error";
|
|
632
|
-
trip_id: string;
|
|
633
633
|
vehicle_ids: number[];
|
|
634
634
|
}, {
|
|
635
635
|
_id: string;
|
|
@@ -729,6 +729,7 @@ export declare const RideSchema: z.ZodObject<{
|
|
|
729
729
|
error_message?: string | undefined;
|
|
730
730
|
};
|
|
731
731
|
} | null;
|
|
732
|
+
trip_id: string;
|
|
732
733
|
apex_locations_qty: number | null;
|
|
733
734
|
apex_on_board_refunds_amount: number | null;
|
|
734
735
|
apex_on_board_refunds_qty: number | null;
|
|
@@ -758,7 +759,6 @@ export declare const RideSchema: z.ZodObject<{
|
|
|
758
759
|
seen_last_at: number | null;
|
|
759
760
|
start_time_observed: number | null;
|
|
760
761
|
start_time_scheduled: number;
|
|
761
|
-
trip_id: string;
|
|
762
762
|
vehicle_ids: number[];
|
|
763
763
|
created_by?: string | undefined;
|
|
764
764
|
updated_by?: string | undefined;
|
|
@@ -1211,6 +1211,7 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
|
|
|
1211
1211
|
error_message?: string | undefined;
|
|
1212
1212
|
};
|
|
1213
1213
|
}>>;
|
|
1214
|
+
trip_id: z.ZodString;
|
|
1214
1215
|
apex_locations_qty: z.ZodNullable<z.ZodNumber>;
|
|
1215
1216
|
apex_on_board_refunds_amount: z.ZodNullable<z.ZodNumber>;
|
|
1216
1217
|
apex_on_board_refunds_qty: z.ZodNullable<z.ZodNumber>;
|
|
@@ -1241,7 +1242,6 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
|
|
|
1241
1242
|
start_time_observed: z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>;
|
|
1242
1243
|
start_time_scheduled: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
|
|
1243
1244
|
system_status: z.ZodDefault<z.ZodEnum<["waiting", "processing", "complete", "error"]>>;
|
|
1244
|
-
trip_id: z.ZodString;
|
|
1245
1245
|
vehicle_ids: z.ZodArray<z.ZodNumber, "many">;
|
|
1246
1246
|
}, "created_at" | "updated_at">, "strip", z.ZodTypeAny, {
|
|
1247
1247
|
created_by: string;
|
|
@@ -1340,6 +1340,7 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
|
|
|
1340
1340
|
error_message?: string | undefined;
|
|
1341
1341
|
};
|
|
1342
1342
|
} | null;
|
|
1343
|
+
trip_id: string;
|
|
1343
1344
|
apex_locations_qty: number | null;
|
|
1344
1345
|
apex_on_board_refunds_amount: number | null;
|
|
1345
1346
|
apex_on_board_refunds_qty: number | null;
|
|
@@ -1384,7 +1385,6 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
|
|
|
1384
1385
|
__brand: "UnixTimestamp";
|
|
1385
1386
|
} & z.BRAND<"UnixTimestamp">;
|
|
1386
1387
|
system_status: "waiting" | "processing" | "complete" | "error";
|
|
1387
|
-
trip_id: string;
|
|
1388
1388
|
vehicle_ids: number[];
|
|
1389
1389
|
_id?: string | undefined;
|
|
1390
1390
|
}, {
|
|
@@ -1482,6 +1482,7 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
|
|
|
1482
1482
|
error_message?: string | undefined;
|
|
1483
1483
|
};
|
|
1484
1484
|
} | null;
|
|
1485
|
+
trip_id: string;
|
|
1485
1486
|
apex_locations_qty: number | null;
|
|
1486
1487
|
apex_on_board_refunds_amount: number | null;
|
|
1487
1488
|
apex_on_board_refunds_qty: number | null;
|
|
@@ -1511,7 +1512,6 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
|
|
|
1511
1512
|
seen_last_at: number | null;
|
|
1512
1513
|
start_time_observed: number | null;
|
|
1513
1514
|
start_time_scheduled: number;
|
|
1514
|
-
trip_id: string;
|
|
1515
1515
|
vehicle_ids: number[];
|
|
1516
1516
|
_id?: string | undefined;
|
|
1517
1517
|
created_by?: string | undefined;
|
|
@@ -1963,6 +1963,7 @@ export declare const UpdateRideSchema: z.ZodObject<{
|
|
|
1963
1963
|
error_message?: string | undefined;
|
|
1964
1964
|
};
|
|
1965
1965
|
}>>>;
|
|
1966
|
+
trip_id: z.ZodOptional<z.ZodString>;
|
|
1966
1967
|
apex_locations_qty: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1967
1968
|
apex_on_board_refunds_amount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1968
1969
|
apex_on_board_refunds_qty: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -1993,7 +1994,6 @@ export declare const UpdateRideSchema: z.ZodObject<{
|
|
|
1993
1994
|
start_time_observed: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>>;
|
|
1994
1995
|
start_time_scheduled: z.ZodOptional<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>;
|
|
1995
1996
|
system_status: z.ZodOptional<z.ZodDefault<z.ZodEnum<["waiting", "processing", "complete", "error"]>>>;
|
|
1996
|
-
trip_id: z.ZodOptional<z.ZodString>;
|
|
1997
1997
|
vehicle_ids: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
1998
1998
|
}, "strip", z.ZodTypeAny, {
|
|
1999
1999
|
_id?: string | undefined;
|
|
@@ -2093,6 +2093,7 @@ export declare const UpdateRideSchema: z.ZodObject<{
|
|
|
2093
2093
|
error_message?: string | undefined;
|
|
2094
2094
|
};
|
|
2095
2095
|
} | null | undefined;
|
|
2096
|
+
trip_id?: string | undefined;
|
|
2096
2097
|
apex_locations_qty?: number | null | undefined;
|
|
2097
2098
|
apex_on_board_refunds_amount?: number | null | undefined;
|
|
2098
2099
|
apex_on_board_refunds_qty?: number | null | undefined;
|
|
@@ -2137,7 +2138,6 @@ export declare const UpdateRideSchema: z.ZodObject<{
|
|
|
2137
2138
|
__brand: "UnixTimestamp";
|
|
2138
2139
|
} & z.BRAND<"UnixTimestamp">) | undefined;
|
|
2139
2140
|
system_status?: "waiting" | "processing" | "complete" | "error" | undefined;
|
|
2140
|
-
trip_id?: string | undefined;
|
|
2141
2141
|
vehicle_ids?: number[] | undefined;
|
|
2142
2142
|
}, {
|
|
2143
2143
|
_id?: string | undefined;
|
|
@@ -2237,6 +2237,7 @@ export declare const UpdateRideSchema: z.ZodObject<{
|
|
|
2237
2237
|
error_message?: string | undefined;
|
|
2238
2238
|
};
|
|
2239
2239
|
} | null | undefined;
|
|
2240
|
+
trip_id?: string | undefined;
|
|
2240
2241
|
apex_locations_qty?: number | null | undefined;
|
|
2241
2242
|
apex_on_board_refunds_amount?: number | null | undefined;
|
|
2242
2243
|
apex_on_board_refunds_qty?: number | null | undefined;
|
|
@@ -2267,7 +2268,6 @@ export declare const UpdateRideSchema: z.ZodObject<{
|
|
|
2267
2268
|
start_time_observed?: number | null | undefined;
|
|
2268
2269
|
start_time_scheduled?: number | undefined;
|
|
2269
2270
|
system_status?: "waiting" | "processing" | "complete" | "error" | undefined;
|
|
2270
|
-
trip_id?: string | undefined;
|
|
2271
2271
|
vehicle_ids?: number[] | undefined;
|
|
2272
2272
|
}>;
|
|
2273
2273
|
export interface Ride extends Omit<z.infer<typeof RideSchema>, 'created_at' | 'end_time_observed' | 'end_time_scheduled' | 'operational_date' | 'seen_first_at' | 'seen_last_at' | 'start_time_observed' | 'start_time_scheduled' | 'updated_at'> {
|
|
@@ -30,8 +30,8 @@ export declare const SimplifiedApexLocationSchema: z.ZodObject<{
|
|
|
30
30
|
updated_by: string;
|
|
31
31
|
agency_id: string;
|
|
32
32
|
line_id: string;
|
|
33
|
-
pattern_id: string;
|
|
34
33
|
trip_id: string;
|
|
34
|
+
pattern_id: string;
|
|
35
35
|
apex_version: string;
|
|
36
36
|
device_id: string;
|
|
37
37
|
vehicle_id: number;
|
|
@@ -47,8 +47,8 @@ export declare const SimplifiedApexLocationSchema: z.ZodObject<{
|
|
|
47
47
|
updated_at: number;
|
|
48
48
|
agency_id: string;
|
|
49
49
|
line_id: string;
|
|
50
|
-
pattern_id: string;
|
|
51
50
|
trip_id: string;
|
|
51
|
+
pattern_id: string;
|
|
52
52
|
apex_version: string;
|
|
53
53
|
device_id: string;
|
|
54
54
|
vehicle_id: number;
|
|
@@ -84,8 +84,8 @@ export declare const UpdateSimplifiedApexLocationSchema: z.ZodObject<{
|
|
|
84
84
|
updated_by?: string | undefined;
|
|
85
85
|
agency_id?: string | undefined;
|
|
86
86
|
line_id?: string | undefined;
|
|
87
|
-
pattern_id?: string | undefined;
|
|
88
87
|
trip_id?: string | undefined;
|
|
88
|
+
pattern_id?: string | undefined;
|
|
89
89
|
apex_version?: string | undefined;
|
|
90
90
|
device_id?: string | undefined;
|
|
91
91
|
vehicle_id?: number | undefined;
|
|
@@ -103,8 +103,8 @@ export declare const UpdateSimplifiedApexLocationSchema: z.ZodObject<{
|
|
|
103
103
|
updated_by?: string | undefined;
|
|
104
104
|
agency_id?: string | undefined;
|
|
105
105
|
line_id?: string | undefined;
|
|
106
|
-
pattern_id?: string | undefined;
|
|
107
106
|
trip_id?: string | undefined;
|
|
107
|
+
pattern_id?: string | undefined;
|
|
108
108
|
apex_version?: string | undefined;
|
|
109
109
|
device_id?: string | undefined;
|
|
110
110
|
vehicle_id?: number | undefined;
|
|
@@ -41,8 +41,8 @@ export declare const SimplifiedApexOnBoardRefundSchema: z.ZodObject<{
|
|
|
41
41
|
agency_id: string;
|
|
42
42
|
line_id: string | null;
|
|
43
43
|
validation_id: string | null;
|
|
44
|
-
pattern_id: string | null;
|
|
45
44
|
trip_id: string | null;
|
|
45
|
+
pattern_id: string | null;
|
|
46
46
|
apex_version: string;
|
|
47
47
|
device_id: string;
|
|
48
48
|
vehicle_id: number | null;
|
|
@@ -68,8 +68,8 @@ export declare const SimplifiedApexOnBoardRefundSchema: z.ZodObject<{
|
|
|
68
68
|
agency_id: string;
|
|
69
69
|
line_id: string | null;
|
|
70
70
|
validation_id: string | null;
|
|
71
|
-
pattern_id: string | null;
|
|
72
71
|
trip_id: string | null;
|
|
72
|
+
pattern_id: string | null;
|
|
73
73
|
apex_version: string;
|
|
74
74
|
device_id: string;
|
|
75
75
|
vehicle_id: number | null;
|
|
@@ -125,8 +125,8 @@ export declare const UpdateSimplifiedApexOnBoardRefundSchema: z.ZodObject<{
|
|
|
125
125
|
agency_id?: string | undefined;
|
|
126
126
|
line_id?: string | null | undefined;
|
|
127
127
|
validation_id?: string | null | undefined;
|
|
128
|
-
pattern_id?: string | null | undefined;
|
|
129
128
|
trip_id?: string | null | undefined;
|
|
129
|
+
pattern_id?: string | null | undefined;
|
|
130
130
|
apex_version?: string | undefined;
|
|
131
131
|
device_id?: string | undefined;
|
|
132
132
|
vehicle_id?: number | null | undefined;
|
|
@@ -154,8 +154,8 @@ export declare const UpdateSimplifiedApexOnBoardRefundSchema: z.ZodObject<{
|
|
|
154
154
|
agency_id?: string | undefined;
|
|
155
155
|
line_id?: string | null | undefined;
|
|
156
156
|
validation_id?: string | null | undefined;
|
|
157
|
-
pattern_id?: string | null | undefined;
|
|
158
157
|
trip_id?: string | null | undefined;
|
|
158
|
+
pattern_id?: string | null | undefined;
|
|
159
159
|
apex_version?: string | undefined;
|
|
160
160
|
device_id?: string | undefined;
|
|
161
161
|
vehicle_id?: number | null | undefined;
|
|
@@ -42,8 +42,8 @@ export declare const SimplifiedApexOnBoardSaleSchema: z.ZodObject<{
|
|
|
42
42
|
agency_id: string;
|
|
43
43
|
line_id: string | null;
|
|
44
44
|
validation_id: string | null;
|
|
45
|
-
pattern_id: string | null;
|
|
46
45
|
trip_id: string | null;
|
|
46
|
+
pattern_id: string | null;
|
|
47
47
|
apex_version: string;
|
|
48
48
|
device_id: string;
|
|
49
49
|
vehicle_id: number | null;
|
|
@@ -70,8 +70,8 @@ export declare const SimplifiedApexOnBoardSaleSchema: z.ZodObject<{
|
|
|
70
70
|
agency_id: string;
|
|
71
71
|
line_id: string | null;
|
|
72
72
|
validation_id: string | null;
|
|
73
|
-
pattern_id: string | null;
|
|
74
73
|
trip_id: string | null;
|
|
74
|
+
pattern_id: string | null;
|
|
75
75
|
apex_version: string;
|
|
76
76
|
device_id: string;
|
|
77
77
|
vehicle_id: number | null;
|
|
@@ -129,8 +129,8 @@ export declare const UpdateSimplifiedApexOnBoardSaleSchema: z.ZodObject<{
|
|
|
129
129
|
agency_id?: string | undefined;
|
|
130
130
|
line_id?: string | null | undefined;
|
|
131
131
|
validation_id?: string | null | undefined;
|
|
132
|
-
pattern_id?: string | null | undefined;
|
|
133
132
|
trip_id?: string | null | undefined;
|
|
133
|
+
pattern_id?: string | null | undefined;
|
|
134
134
|
apex_version?: string | undefined;
|
|
135
135
|
device_id?: string | undefined;
|
|
136
136
|
vehicle_id?: number | null | undefined;
|
|
@@ -159,8 +159,8 @@ export declare const UpdateSimplifiedApexOnBoardSaleSchema: z.ZodObject<{
|
|
|
159
159
|
agency_id?: string | undefined;
|
|
160
160
|
line_id?: string | null | undefined;
|
|
161
161
|
validation_id?: string | null | undefined;
|
|
162
|
-
pattern_id?: string | null | undefined;
|
|
163
162
|
trip_id?: string | null | undefined;
|
|
163
|
+
pattern_id?: string | null | undefined;
|
|
164
164
|
apex_version?: string | undefined;
|
|
165
165
|
device_id?: string | undefined;
|
|
166
166
|
vehicle_id?: number | null | undefined;
|
|
@@ -254,8 +254,8 @@ export declare const SimplifiedApexValidationSchema: z.ZodObject<{
|
|
|
254
254
|
updated_by: string;
|
|
255
255
|
agency_id: string;
|
|
256
256
|
line_id: string;
|
|
257
|
-
pattern_id: string;
|
|
258
257
|
trip_id: string;
|
|
258
|
+
pattern_id: string;
|
|
259
259
|
apex_version: string;
|
|
260
260
|
device_id: string;
|
|
261
261
|
vehicle_id: number;
|
|
@@ -280,8 +280,8 @@ export declare const SimplifiedApexValidationSchema: z.ZodObject<{
|
|
|
280
280
|
updated_at: number;
|
|
281
281
|
agency_id: string;
|
|
282
282
|
line_id: string;
|
|
283
|
-
pattern_id: string;
|
|
284
283
|
trip_id: string;
|
|
284
|
+
pattern_id: string;
|
|
285
285
|
apex_version: string;
|
|
286
286
|
device_id: string;
|
|
287
287
|
vehicle_id: number;
|
|
@@ -406,8 +406,8 @@ export declare const UpdateSimplifiedApexValidationSchema: z.ZodObject<{
|
|
|
406
406
|
updated_by?: string | undefined;
|
|
407
407
|
agency_id?: string | undefined;
|
|
408
408
|
line_id?: string | undefined;
|
|
409
|
-
pattern_id?: string | undefined;
|
|
410
409
|
trip_id?: string | undefined;
|
|
410
|
+
pattern_id?: string | undefined;
|
|
411
411
|
apex_version?: string | undefined;
|
|
412
412
|
device_id?: string | undefined;
|
|
413
413
|
vehicle_id?: number | undefined;
|
|
@@ -434,8 +434,8 @@ export declare const UpdateSimplifiedApexValidationSchema: z.ZodObject<{
|
|
|
434
434
|
updated_by?: string | undefined;
|
|
435
435
|
agency_id?: string | undefined;
|
|
436
436
|
line_id?: string | undefined;
|
|
437
|
-
pattern_id?: string | undefined;
|
|
438
437
|
trip_id?: string | undefined;
|
|
438
|
+
pattern_id?: string | undefined;
|
|
439
439
|
apex_version?: string | undefined;
|
|
440
440
|
device_id?: string | undefined;
|
|
441
441
|
vehicle_id?: number | undefined;
|
|
@@ -32,8 +32,8 @@ export declare const VehicleEventSchema: z.ZodObject<{
|
|
|
32
32
|
};
|
|
33
33
|
updated_by: string;
|
|
34
34
|
agency_id: string;
|
|
35
|
-
pattern_id: string;
|
|
36
35
|
trip_id: string;
|
|
36
|
+
pattern_id: string;
|
|
37
37
|
vehicle_id: string;
|
|
38
38
|
received_at: number & {
|
|
39
39
|
__brand: "UnixTimestamp";
|
|
@@ -52,8 +52,8 @@ export declare const VehicleEventSchema: z.ZodObject<{
|
|
|
52
52
|
created_at: number;
|
|
53
53
|
updated_at: number;
|
|
54
54
|
agency_id: string;
|
|
55
|
-
pattern_id: string;
|
|
56
55
|
trip_id: string;
|
|
56
|
+
pattern_id: string;
|
|
57
57
|
vehicle_id: string;
|
|
58
58
|
received_at: number;
|
|
59
59
|
stop_id: string;
|
package/package.json
CHANGED