@tmlmobilidade/types 20250910.1541.13 → 20250911.1325.18
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/operational-date.d.ts +1 -1
- package/dist/src/_common/operational-date.js +1 -2
- package/dist/src/_common/proposed-change.d.ts +9 -31
- package/dist/src/_common/proposed-change.js +5 -14
- package/dist/src/agency.d.ts +10 -21
- package/dist/src/agency.js +1 -1
- package/dist/src/alert.d.ts +32 -58
- package/dist/src/alert.js +8 -48
- package/dist/src/auth/login.js +2 -8
- package/dist/src/auth/role.d.ts +6 -13
- package/dist/src/auth/role.js +1 -1
- package/dist/src/auth/session.d.ts +13 -29
- package/dist/src/auth/session.js +3 -3
- package/dist/src/auth/user.d.ts +13 -32
- package/dist/src/auth/user.js +3 -3
- package/dist/src/auth/verification-token.d.ts +13 -25
- package/dist/src/auth/verification-token.js +3 -3
- package/dist/src/gtfs.d.ts +6 -17
- package/dist/src/organization.d.ts +1 -4
- package/dist/src/organization.js +1 -1
- package/dist/src/plans/gtfs-validation.d.ts +25 -63
- package/dist/src/plans/gtfs-validation.js +2 -6
- package/dist/src/plans/plan-controller.d.ts +3 -8
- package/dist/src/plans/plan-controller.js +2 -2
- package/dist/src/plans/plan.d.ts +34 -86
- package/dist/src/plans/plan.js +2 -6
- package/dist/src/rides/ride-audit.d.ts +52 -1168
- package/dist/src/rides/ride-audit.js +3 -5
- package/dist/src/rides/ride-justification.d.ts +84 -9
- package/dist/src/rides/ride-justification.js +4 -1
- package/dist/src/rides/ride.d.ts +54 -105
- package/dist/src/rides/ride.js +8 -8
- package/dist/src/sams/sam-analysis.d.ts +5 -13
- package/dist/src/sams/sam-analysis.js +3 -3
- package/dist/src/sams/sam.d.ts +37 -88
- package/dist/src/sams/sam.js +4 -4
- package/dist/src/simplified-apex/simplified-apex-location.d.ts +16 -23
- package/dist/src/simplified-apex/simplified-apex-location.js +2 -2
- package/dist/src/simplified-apex/simplified-apex-on-board-refund.d.ts +16 -23
- package/dist/src/simplified-apex/simplified-apex-on-board-refund.js +2 -2
- package/dist/src/simplified-apex/simplified-apex-on-board-sale.d.ts +27 -37
- package/dist/src/simplified-apex/simplified-apex-on-board-sale.js +3 -3
- package/dist/src/simplified-apex/simplified-apex-validation.d.ts +16 -23
- package/dist/src/simplified-apex/simplified-apex-validation.js +2 -2
- package/dist/src/stop.d.ts +68 -86
- package/dist/src/stop.js +11 -74
- package/dist/src/vehicle-event.d.ts +7 -12
- package/dist/src/vehicle-event.js +2 -2
- package/dist/src/zone.d.ts +0 -3
- package/dist/src/zone.js +1 -1
- package/package.json +1 -1
|
@@ -1,14 +1,12 @@
|
|
|
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 });
|
|
14
|
-
export const UpdateRideAuditSchema = CreateRideAuditSchema.partial();
|
|
12
|
+
export const UpdateRideAuditSchema = CreateRideAuditSchema.omit({ created_by: true }).partial();
|
|
@@ -13,6 +13,19 @@ export declare const RideJustificationSchema: z.ZodObject<{
|
|
|
13
13
|
updated_by: z.ZodDefault<z.ZodString>;
|
|
14
14
|
} & {
|
|
15
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
|
+
}>;
|
|
16
29
|
comments: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
17
30
|
_id: z.ZodString;
|
|
18
31
|
created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
@@ -230,6 +243,7 @@ export declare const RideJustificationSchema: z.ZodObject<{
|
|
|
230
243
|
}>, "many">>;
|
|
231
244
|
justification_cause: z.ZodEnum<["TECHNICAL_PROBLEM", "DEMONSTRATION", "ACCIDENT", "WEATHER", "CONSTRUCTION", "POLICE_ACTIVITY", "MEDICAL_EMERGENCY", "OTHER_CAUSE"]>;
|
|
232
245
|
pto_message: z.ZodDefault<z.ZodString>;
|
|
246
|
+
trip_id: z.ZodString;
|
|
233
247
|
}, "strict", z.ZodTypeAny, {
|
|
234
248
|
_id: string;
|
|
235
249
|
created_at: number & {
|
|
@@ -240,7 +254,6 @@ export declare const RideJustificationSchema: z.ZodObject<{
|
|
|
240
254
|
__brand: "UnixTimestamp";
|
|
241
255
|
};
|
|
242
256
|
updated_by: string;
|
|
243
|
-
acceptance_status: "accepted" | "justification_required" | "under_review" | "rejected";
|
|
244
257
|
comments: ({
|
|
245
258
|
_id: string;
|
|
246
259
|
created_at: number & {
|
|
@@ -279,14 +292,27 @@ export declare const RideJustificationSchema: z.ZodObject<{
|
|
|
279
292
|
curr_status: string;
|
|
280
293
|
prev_status: string;
|
|
281
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
|
+
};
|
|
282
301
|
justification_cause: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "MEDICAL_EMERGENCY" | "OTHER_CAUSE" | "POLICE_ACTIVITY" | "TECHNICAL_PROBLEM" | "WEATHER";
|
|
283
302
|
pto_message: string;
|
|
303
|
+
trip_id: string;
|
|
284
304
|
}, {
|
|
285
305
|
_id: string;
|
|
286
306
|
created_at: number;
|
|
287
307
|
updated_at: number;
|
|
288
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
|
+
};
|
|
289
314
|
justification_cause: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "MEDICAL_EMERGENCY" | "OTHER_CAUSE" | "POLICE_ACTIVITY" | "TECHNICAL_PROBLEM" | "WEATHER";
|
|
315
|
+
trip_id: string;
|
|
290
316
|
created_by?: string | undefined;
|
|
291
317
|
updated_by?: string | undefined;
|
|
292
318
|
comments?: ({
|
|
@@ -323,7 +349,6 @@ export declare const CreateRideJustificationSchema: z.ZodObject<Omit<{
|
|
|
323
349
|
created_by: z.ZodDefault<z.ZodString>;
|
|
324
350
|
updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
325
351
|
updated_by: z.ZodDefault<z.ZodString>;
|
|
326
|
-
acceptance_status: z.ZodEnum<["justification_required", "under_review", "accepted", "rejected"]>;
|
|
327
352
|
comments: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
328
353
|
_id: z.ZodString;
|
|
329
354
|
created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
@@ -539,12 +564,26 @@ export declare const CreateRideJustificationSchema: z.ZodObject<Omit<{
|
|
|
539
564
|
created_by?: string | undefined;
|
|
540
565
|
updated_by?: string | undefined;
|
|
541
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
|
+
}>;
|
|
542
581
|
justification_cause: z.ZodEnum<["TECHNICAL_PROBLEM", "DEMONSTRATION", "ACCIDENT", "WEATHER", "CONSTRUCTION", "POLICE_ACTIVITY", "MEDICAL_EMERGENCY", "OTHER_CAUSE"]>;
|
|
543
582
|
pto_message: z.ZodDefault<z.ZodString>;
|
|
583
|
+
trip_id: z.ZodString;
|
|
544
584
|
}, "created_at" | "updated_at">, "strict", z.ZodTypeAny, {
|
|
545
585
|
created_by: string;
|
|
546
586
|
updated_by: string;
|
|
547
|
-
acceptance_status: "accepted" | "justification_required" | "under_review" | "rejected";
|
|
548
587
|
comments: ({
|
|
549
588
|
_id: string;
|
|
550
589
|
created_at: number & {
|
|
@@ -583,12 +622,25 @@ export declare const CreateRideJustificationSchema: z.ZodObject<Omit<{
|
|
|
583
622
|
curr_status: string;
|
|
584
623
|
prev_status: string;
|
|
585
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
|
+
};
|
|
586
631
|
justification_cause: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "MEDICAL_EMERGENCY" | "OTHER_CAUSE" | "POLICE_ACTIVITY" | "TECHNICAL_PROBLEM" | "WEATHER";
|
|
587
632
|
pto_message: string;
|
|
633
|
+
trip_id: string;
|
|
588
634
|
_id?: string | undefined;
|
|
589
635
|
}, {
|
|
590
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
|
+
};
|
|
591
642
|
justification_cause: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "MEDICAL_EMERGENCY" | "OTHER_CAUSE" | "POLICE_ACTIVITY" | "TECHNICAL_PROBLEM" | "WEATHER";
|
|
643
|
+
trip_id: string;
|
|
592
644
|
_id?: string | undefined;
|
|
593
645
|
created_by?: string | undefined;
|
|
594
646
|
updated_by?: string | undefined;
|
|
@@ -622,9 +674,7 @@ export declare const CreateRideJustificationSchema: z.ZodObject<Omit<{
|
|
|
622
674
|
}>;
|
|
623
675
|
export declare const UpdateRideJustificationSchema: z.ZodObject<{
|
|
624
676
|
_id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
625
|
-
created_by: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
626
677
|
updated_by: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
627
|
-
acceptance_status: z.ZodOptional<z.ZodEnum<["justification_required", "under_review", "accepted", "rejected"]>>;
|
|
628
678
|
comments: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
629
679
|
_id: z.ZodString;
|
|
630
680
|
created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
@@ -840,13 +890,26 @@ export declare const UpdateRideJustificationSchema: z.ZodObject<{
|
|
|
840
890
|
created_by?: string | undefined;
|
|
841
891
|
updated_by?: string | undefined;
|
|
842
892
|
}>, "many">>>;
|
|
893
|
+
acceptance_status: z.ZodOptional<z.ZodEnum<["justification_required", "under_review", "accepted", "rejected"]>>;
|
|
894
|
+
analysis: z.ZodOptional<z.ZodObject<{
|
|
895
|
+
error_message: z.ZodOptional<z.ZodString>;
|
|
896
|
+
grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
|
|
897
|
+
reason: z.ZodString;
|
|
898
|
+
}, "strict", z.ZodTypeAny, {
|
|
899
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
900
|
+
reason: string;
|
|
901
|
+
error_message?: string | undefined;
|
|
902
|
+
}, {
|
|
903
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
904
|
+
reason: string;
|
|
905
|
+
error_message?: string | undefined;
|
|
906
|
+
}>>;
|
|
843
907
|
justification_cause: z.ZodOptional<z.ZodEnum<["TECHNICAL_PROBLEM", "DEMONSTRATION", "ACCIDENT", "WEATHER", "CONSTRUCTION", "POLICE_ACTIVITY", "MEDICAL_EMERGENCY", "OTHER_CAUSE"]>>;
|
|
844
908
|
pto_message: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
909
|
+
trip_id: z.ZodOptional<z.ZodString>;
|
|
845
910
|
}, "strict", z.ZodTypeAny, {
|
|
846
911
|
_id?: string | undefined;
|
|
847
|
-
created_by?: string | undefined;
|
|
848
912
|
updated_by?: string | undefined;
|
|
849
|
-
acceptance_status?: "accepted" | "justification_required" | "under_review" | "rejected" | undefined;
|
|
850
913
|
comments?: ({
|
|
851
914
|
_id: string;
|
|
852
915
|
created_at: number & {
|
|
@@ -885,13 +948,18 @@ export declare const UpdateRideJustificationSchema: z.ZodObject<{
|
|
|
885
948
|
curr_status: string;
|
|
886
949
|
prev_status: string;
|
|
887
950
|
})[] | undefined;
|
|
951
|
+
acceptance_status?: "accepted" | "justification_required" | "under_review" | "rejected" | undefined;
|
|
952
|
+
analysis?: {
|
|
953
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
954
|
+
reason: string;
|
|
955
|
+
error_message?: string | undefined;
|
|
956
|
+
} | undefined;
|
|
888
957
|
justification_cause?: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "MEDICAL_EMERGENCY" | "OTHER_CAUSE" | "POLICE_ACTIVITY" | "TECHNICAL_PROBLEM" | "WEATHER" | undefined;
|
|
889
958
|
pto_message?: string | undefined;
|
|
959
|
+
trip_id?: string | undefined;
|
|
890
960
|
}, {
|
|
891
961
|
_id?: string | undefined;
|
|
892
|
-
created_by?: string | undefined;
|
|
893
962
|
updated_by?: string | undefined;
|
|
894
|
-
acceptance_status?: "accepted" | "justification_required" | "under_review" | "rejected" | undefined;
|
|
895
963
|
comments?: ({
|
|
896
964
|
_id: string;
|
|
897
965
|
created_at: number;
|
|
@@ -918,8 +986,15 @@ export declare const UpdateRideJustificationSchema: z.ZodObject<{
|
|
|
918
986
|
created_by?: string | undefined;
|
|
919
987
|
updated_by?: string | undefined;
|
|
920
988
|
})[] | undefined;
|
|
989
|
+
acceptance_status?: "accepted" | "justification_required" | "under_review" | "rejected" | undefined;
|
|
990
|
+
analysis?: {
|
|
991
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
992
|
+
reason: string;
|
|
993
|
+
error_message?: string | undefined;
|
|
994
|
+
} | undefined;
|
|
921
995
|
justification_cause?: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "MEDICAL_EMERGENCY" | "OTHER_CAUSE" | "POLICE_ACTIVITY" | "TECHNICAL_PROBLEM" | "WEATHER" | undefined;
|
|
922
996
|
pto_message?: string | undefined;
|
|
997
|
+
trip_id?: string | undefined;
|
|
923
998
|
}>;
|
|
924
999
|
export type RideJustification = z.infer<typeof RideJustificationSchema>;
|
|
925
1000
|
export type CreateRideJustificationDto = z.infer<typeof CreateRideJustificationSchema>;
|
|
@@ -1,6 +1,7 @@
|
|
|
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'];
|
|
@@ -30,9 +31,11 @@ const CommentSchemaWithRideJustificationStatus = CommentSchema.superRefine((data
|
|
|
30
31
|
/* * */
|
|
31
32
|
export const RideJustificationSchema = DocumentSchema.extend({
|
|
32
33
|
acceptance_status: RideAcceptanceStatusSchema,
|
|
34
|
+
analysis: RideAnalysisSchema,
|
|
33
35
|
comments: z.array(CommentSchemaWithRideJustificationStatus).default([]),
|
|
34
36
|
justification_cause: RideJustificationCauseSchema,
|
|
35
37
|
pto_message: z.string().min(2).max(5000).default(''),
|
|
38
|
+
trip_id: z.string(),
|
|
36
39
|
}).strict();
|
|
37
40
|
export const CreateRideJustificationSchema = RideJustificationSchema.partial({ _id: true }).omit({ created_at: true, updated_at: true });
|
|
38
|
-
export const UpdateRideJustificationSchema = CreateRideJustificationSchema.partial();
|
|
41
|
+
export const UpdateRideJustificationSchema = CreateRideJustificationSchema.omit({ created_by: true }).partial();
|
package/dist/src/rides/ride.d.ts
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import { type OperationalDate } from '../_common/operational-date.js';
|
|
2
|
-
import { type UnixTimestamp } from '../_common/unix-timestamp.js';
|
|
3
1
|
import { z } from 'zod';
|
|
4
2
|
export declare const RideSchema: z.ZodObject<{
|
|
5
3
|
_id: z.ZodString;
|
|
6
|
-
created_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
|
|
4
|
+
created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
7
5
|
created_by: z.ZodDefault<z.ZodString>;
|
|
8
|
-
updated_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
|
|
6
|
+
updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
9
7
|
updated_by: z.ZodDefault<z.ZodString>;
|
|
10
8
|
} & {
|
|
11
9
|
agency_id: z.ZodString;
|
|
@@ -455,15 +453,15 @@ export declare const RideSchema: z.ZodObject<{
|
|
|
455
453
|
apex_on_board_sales_qty: z.ZodNullable<z.ZodNumber>;
|
|
456
454
|
apex_validations_qty: z.ZodNullable<z.ZodNumber>;
|
|
457
455
|
driver_ids: z.ZodArray<z.ZodString, "many">;
|
|
458
|
-
end_time_observed: z.ZodNullable<z.
|
|
459
|
-
end_time_scheduled: z.
|
|
456
|
+
end_time_observed: z.ZodNullable<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>>;
|
|
457
|
+
end_time_scheduled: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
460
458
|
extension_observed: z.ZodNullable<z.ZodNumber>;
|
|
461
459
|
extension_scheduled: z.ZodNumber;
|
|
462
460
|
hashed_shape_id: z.ZodString;
|
|
463
461
|
hashed_trip_id: z.ZodString;
|
|
464
462
|
headsign: z.ZodString;
|
|
465
463
|
line_id: z.ZodNumber;
|
|
466
|
-
operational_date: z.ZodBranded<z.ZodEffects<z.ZodString, OperationalDate, string>, "OperationalDate">;
|
|
464
|
+
operational_date: z.ZodBranded<z.ZodEffects<z.ZodString, import("../_common/operational-date.js").OperationalDate, string>, "OperationalDate">;
|
|
467
465
|
passengers_estimated: z.ZodNullable<z.ZodNumber>;
|
|
468
466
|
passengers_observed: z.ZodNullable<z.ZodNumber>;
|
|
469
467
|
passengers_observed_on_board_sales_amount: z.ZodNullable<z.ZodNumber>;
|
|
@@ -474,10 +472,10 @@ export declare const RideSchema: z.ZodObject<{
|
|
|
474
472
|
pattern_id: z.ZodString;
|
|
475
473
|
plan_id: z.ZodString;
|
|
476
474
|
route_id: z.ZodString;
|
|
477
|
-
seen_first_at: z.ZodNullable<z.
|
|
478
|
-
seen_last_at: z.ZodNullable<z.
|
|
479
|
-
start_time_observed: z.ZodNullable<z.
|
|
480
|
-
start_time_scheduled: z.
|
|
475
|
+
seen_first_at: z.ZodNullable<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>>;
|
|
476
|
+
seen_last_at: z.ZodNullable<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>>;
|
|
477
|
+
start_time_observed: z.ZodNullable<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>>;
|
|
478
|
+
start_time_scheduled: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
481
479
|
system_status: z.ZodDefault<z.ZodEnum<["waiting", "processing", "complete", "error"]>>;
|
|
482
480
|
trip_id: z.ZodString;
|
|
483
481
|
vehicle_ids: z.ZodArray<z.ZodNumber, "many">;
|
|
@@ -585,6 +583,7 @@ export declare const RideSchema: z.ZodObject<{
|
|
|
585
583
|
error_message?: string | undefined;
|
|
586
584
|
};
|
|
587
585
|
} | null;
|
|
586
|
+
trip_id: string;
|
|
588
587
|
apex_locations_qty: number | null;
|
|
589
588
|
apex_on_board_refunds_amount: number | null;
|
|
590
589
|
apex_on_board_refunds_qty: number | null;
|
|
@@ -592,12 +591,10 @@ export declare const RideSchema: z.ZodObject<{
|
|
|
592
591
|
apex_on_board_sales_qty: number | null;
|
|
593
592
|
apex_validations_qty: number | null;
|
|
594
593
|
driver_ids: string[];
|
|
595
|
-
end_time_observed: (
|
|
596
|
-
__brand: "UnixTimestamp";
|
|
597
|
-
} & z.BRAND<"UnixTimestamp">) | null;
|
|
594
|
+
end_time_observed: import("../_common/unix-timestamp.js").UnixTimestamp | null;
|
|
598
595
|
end_time_scheduled: number & {
|
|
599
596
|
__brand: "UnixTimestamp";
|
|
600
|
-
}
|
|
597
|
+
};
|
|
601
598
|
extension_observed: number | null;
|
|
602
599
|
extension_scheduled: number;
|
|
603
600
|
hashed_shape_id: string;
|
|
@@ -616,20 +613,13 @@ export declare const RideSchema: z.ZodObject<{
|
|
|
616
613
|
pattern_id: string;
|
|
617
614
|
plan_id: string;
|
|
618
615
|
route_id: string;
|
|
619
|
-
seen_first_at: (
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
seen_last_at: (number & {
|
|
623
|
-
__brand: "UnixTimestamp";
|
|
624
|
-
} & z.BRAND<"UnixTimestamp">) | null;
|
|
625
|
-
start_time_observed: (number & {
|
|
626
|
-
__brand: "UnixTimestamp";
|
|
627
|
-
} & z.BRAND<"UnixTimestamp">) | null;
|
|
616
|
+
seen_first_at: import("../_common/unix-timestamp.js").UnixTimestamp | null;
|
|
617
|
+
seen_last_at: import("../_common/unix-timestamp.js").UnixTimestamp | null;
|
|
618
|
+
start_time_observed: import("../_common/unix-timestamp.js").UnixTimestamp | null;
|
|
628
619
|
start_time_scheduled: number & {
|
|
629
620
|
__brand: "UnixTimestamp";
|
|
630
|
-
}
|
|
621
|
+
};
|
|
631
622
|
system_status: "waiting" | "processing" | "complete" | "error";
|
|
632
|
-
trip_id: string;
|
|
633
623
|
vehicle_ids: number[];
|
|
634
624
|
}, {
|
|
635
625
|
_id: string;
|
|
@@ -729,6 +719,7 @@ export declare const RideSchema: z.ZodObject<{
|
|
|
729
719
|
error_message?: string | undefined;
|
|
730
720
|
};
|
|
731
721
|
} | null;
|
|
722
|
+
trip_id: string;
|
|
732
723
|
apex_locations_qty: number | null;
|
|
733
724
|
apex_on_board_refunds_amount: number | null;
|
|
734
725
|
apex_on_board_refunds_qty: number | null;
|
|
@@ -758,7 +749,6 @@ export declare const RideSchema: z.ZodObject<{
|
|
|
758
749
|
seen_last_at: number | null;
|
|
759
750
|
start_time_observed: number | null;
|
|
760
751
|
start_time_scheduled: number;
|
|
761
|
-
trip_id: string;
|
|
762
752
|
vehicle_ids: number[];
|
|
763
753
|
created_by?: string | undefined;
|
|
764
754
|
updated_by?: string | undefined;
|
|
@@ -766,9 +756,9 @@ export declare const RideSchema: z.ZodObject<{
|
|
|
766
756
|
}>;
|
|
767
757
|
export declare const CreateRideSchema: z.ZodObject<Omit<{
|
|
768
758
|
_id: z.ZodOptional<z.ZodString>;
|
|
769
|
-
created_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
|
|
759
|
+
created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
770
760
|
created_by: z.ZodDefault<z.ZodString>;
|
|
771
|
-
updated_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
|
|
761
|
+
updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
772
762
|
updated_by: z.ZodDefault<z.ZodString>;
|
|
773
763
|
agency_id: z.ZodString;
|
|
774
764
|
line_id: z.ZodNumber;
|
|
@@ -1211,6 +1201,7 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
|
|
|
1211
1201
|
error_message?: string | undefined;
|
|
1212
1202
|
};
|
|
1213
1203
|
}>>;
|
|
1204
|
+
trip_id: z.ZodString;
|
|
1214
1205
|
apex_locations_qty: z.ZodNullable<z.ZodNumber>;
|
|
1215
1206
|
apex_on_board_refunds_amount: z.ZodNullable<z.ZodNumber>;
|
|
1216
1207
|
apex_on_board_refunds_qty: z.ZodNullable<z.ZodNumber>;
|
|
@@ -1218,14 +1209,14 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
|
|
|
1218
1209
|
apex_on_board_sales_qty: z.ZodNullable<z.ZodNumber>;
|
|
1219
1210
|
apex_validations_qty: z.ZodNullable<z.ZodNumber>;
|
|
1220
1211
|
driver_ids: z.ZodArray<z.ZodString, "many">;
|
|
1221
|
-
end_time_observed: z.ZodNullable<z.
|
|
1222
|
-
end_time_scheduled: z.
|
|
1212
|
+
end_time_observed: z.ZodNullable<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>>;
|
|
1213
|
+
end_time_scheduled: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
1223
1214
|
extension_observed: z.ZodNullable<z.ZodNumber>;
|
|
1224
1215
|
extension_scheduled: z.ZodNumber;
|
|
1225
1216
|
hashed_shape_id: z.ZodString;
|
|
1226
1217
|
hashed_trip_id: z.ZodString;
|
|
1227
1218
|
headsign: z.ZodString;
|
|
1228
|
-
operational_date: z.ZodBranded<z.ZodEffects<z.ZodString, OperationalDate, string>, "OperationalDate">;
|
|
1219
|
+
operational_date: z.ZodBranded<z.ZodEffects<z.ZodString, import("../_common/operational-date.js").OperationalDate, string>, "OperationalDate">;
|
|
1229
1220
|
passengers_estimated: z.ZodNullable<z.ZodNumber>;
|
|
1230
1221
|
passengers_observed: z.ZodNullable<z.ZodNumber>;
|
|
1231
1222
|
passengers_observed_on_board_sales_amount: z.ZodNullable<z.ZodNumber>;
|
|
@@ -1236,12 +1227,11 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
|
|
|
1236
1227
|
pattern_id: z.ZodString;
|
|
1237
1228
|
plan_id: z.ZodString;
|
|
1238
1229
|
route_id: z.ZodString;
|
|
1239
|
-
seen_first_at: z.ZodNullable<z.
|
|
1240
|
-
seen_last_at: z.ZodNullable<z.
|
|
1241
|
-
start_time_observed: z.ZodNullable<z.
|
|
1242
|
-
start_time_scheduled: z.
|
|
1230
|
+
seen_first_at: z.ZodNullable<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>>;
|
|
1231
|
+
seen_last_at: z.ZodNullable<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>>;
|
|
1232
|
+
start_time_observed: z.ZodNullable<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>>;
|
|
1233
|
+
start_time_scheduled: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
1243
1234
|
system_status: z.ZodDefault<z.ZodEnum<["waiting", "processing", "complete", "error"]>>;
|
|
1244
|
-
trip_id: z.ZodString;
|
|
1245
1235
|
vehicle_ids: z.ZodArray<z.ZodNumber, "many">;
|
|
1246
1236
|
}, "created_at" | "updated_at">, "strip", z.ZodTypeAny, {
|
|
1247
1237
|
created_by: string;
|
|
@@ -1340,6 +1330,7 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
|
|
|
1340
1330
|
error_message?: string | undefined;
|
|
1341
1331
|
};
|
|
1342
1332
|
} | null;
|
|
1333
|
+
trip_id: string;
|
|
1343
1334
|
apex_locations_qty: number | null;
|
|
1344
1335
|
apex_on_board_refunds_amount: number | null;
|
|
1345
1336
|
apex_on_board_refunds_qty: number | null;
|
|
@@ -1347,12 +1338,10 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
|
|
|
1347
1338
|
apex_on_board_sales_qty: number | null;
|
|
1348
1339
|
apex_validations_qty: number | null;
|
|
1349
1340
|
driver_ids: string[];
|
|
1350
|
-
end_time_observed: (
|
|
1351
|
-
__brand: "UnixTimestamp";
|
|
1352
|
-
} & z.BRAND<"UnixTimestamp">) | null;
|
|
1341
|
+
end_time_observed: import("../_common/unix-timestamp.js").UnixTimestamp | null;
|
|
1353
1342
|
end_time_scheduled: number & {
|
|
1354
1343
|
__brand: "UnixTimestamp";
|
|
1355
|
-
}
|
|
1344
|
+
};
|
|
1356
1345
|
extension_observed: number | null;
|
|
1357
1346
|
extension_scheduled: number;
|
|
1358
1347
|
hashed_shape_id: string;
|
|
@@ -1371,20 +1360,13 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
|
|
|
1371
1360
|
pattern_id: string;
|
|
1372
1361
|
plan_id: string;
|
|
1373
1362
|
route_id: string;
|
|
1374
|
-
seen_first_at: (
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
seen_last_at: (number & {
|
|
1378
|
-
__brand: "UnixTimestamp";
|
|
1379
|
-
} & z.BRAND<"UnixTimestamp">) | null;
|
|
1380
|
-
start_time_observed: (number & {
|
|
1381
|
-
__brand: "UnixTimestamp";
|
|
1382
|
-
} & z.BRAND<"UnixTimestamp">) | null;
|
|
1363
|
+
seen_first_at: import("../_common/unix-timestamp.js").UnixTimestamp | null;
|
|
1364
|
+
seen_last_at: import("../_common/unix-timestamp.js").UnixTimestamp | null;
|
|
1365
|
+
start_time_observed: import("../_common/unix-timestamp.js").UnixTimestamp | null;
|
|
1383
1366
|
start_time_scheduled: number & {
|
|
1384
1367
|
__brand: "UnixTimestamp";
|
|
1385
|
-
}
|
|
1368
|
+
};
|
|
1386
1369
|
system_status: "waiting" | "processing" | "complete" | "error";
|
|
1387
|
-
trip_id: string;
|
|
1388
1370
|
vehicle_ids: number[];
|
|
1389
1371
|
_id?: string | undefined;
|
|
1390
1372
|
}, {
|
|
@@ -1482,6 +1464,7 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
|
|
|
1482
1464
|
error_message?: string | undefined;
|
|
1483
1465
|
};
|
|
1484
1466
|
} | null;
|
|
1467
|
+
trip_id: string;
|
|
1485
1468
|
apex_locations_qty: number | null;
|
|
1486
1469
|
apex_on_board_refunds_amount: number | null;
|
|
1487
1470
|
apex_on_board_refunds_qty: number | null;
|
|
@@ -1511,7 +1494,6 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
|
|
|
1511
1494
|
seen_last_at: number | null;
|
|
1512
1495
|
start_time_observed: number | null;
|
|
1513
1496
|
start_time_scheduled: number;
|
|
1514
|
-
trip_id: string;
|
|
1515
1497
|
vehicle_ids: number[];
|
|
1516
1498
|
_id?: string | undefined;
|
|
1517
1499
|
created_by?: string | undefined;
|
|
@@ -1520,7 +1502,6 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
|
|
|
1520
1502
|
}>;
|
|
1521
1503
|
export declare const UpdateRideSchema: z.ZodObject<{
|
|
1522
1504
|
_id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1523
|
-
created_by: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
1524
1505
|
updated_by: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
1525
1506
|
agency_id: z.ZodOptional<z.ZodString>;
|
|
1526
1507
|
line_id: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1963,6 +1944,7 @@ export declare const UpdateRideSchema: z.ZodObject<{
|
|
|
1963
1944
|
error_message?: string | undefined;
|
|
1964
1945
|
};
|
|
1965
1946
|
}>>>;
|
|
1947
|
+
trip_id: z.ZodOptional<z.ZodString>;
|
|
1966
1948
|
apex_locations_qty: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1967
1949
|
apex_on_board_refunds_amount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1968
1950
|
apex_on_board_refunds_qty: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -1970,14 +1952,14 @@ export declare const UpdateRideSchema: z.ZodObject<{
|
|
|
1970
1952
|
apex_on_board_sales_qty: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1971
1953
|
apex_validations_qty: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1972
1954
|
driver_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1973
|
-
end_time_observed: z.ZodOptional<z.ZodNullable<z.
|
|
1974
|
-
end_time_scheduled: z.ZodOptional<z.
|
|
1955
|
+
end_time_observed: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>>>;
|
|
1956
|
+
end_time_scheduled: z.ZodOptional<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>>;
|
|
1975
1957
|
extension_observed: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1976
1958
|
extension_scheduled: z.ZodOptional<z.ZodNumber>;
|
|
1977
1959
|
hashed_shape_id: z.ZodOptional<z.ZodString>;
|
|
1978
1960
|
hashed_trip_id: z.ZodOptional<z.ZodString>;
|
|
1979
1961
|
headsign: z.ZodOptional<z.ZodString>;
|
|
1980
|
-
operational_date: z.ZodOptional<z.ZodBranded<z.ZodEffects<z.ZodString, OperationalDate, string>, "OperationalDate">>;
|
|
1962
|
+
operational_date: z.ZodOptional<z.ZodBranded<z.ZodEffects<z.ZodString, import("../_common/operational-date.js").OperationalDate, string>, "OperationalDate">>;
|
|
1981
1963
|
passengers_estimated: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1982
1964
|
passengers_observed: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1983
1965
|
passengers_observed_on_board_sales_amount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -1988,16 +1970,14 @@ export declare const UpdateRideSchema: z.ZodObject<{
|
|
|
1988
1970
|
pattern_id: z.ZodOptional<z.ZodString>;
|
|
1989
1971
|
plan_id: z.ZodOptional<z.ZodString>;
|
|
1990
1972
|
route_id: z.ZodOptional<z.ZodString>;
|
|
1991
|
-
seen_first_at: z.ZodOptional<z.ZodNullable<z.
|
|
1992
|
-
seen_last_at: z.ZodOptional<z.ZodNullable<z.
|
|
1993
|
-
start_time_observed: z.ZodOptional<z.ZodNullable<z.
|
|
1994
|
-
start_time_scheduled: z.ZodOptional<z.
|
|
1973
|
+
seen_first_at: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>>>;
|
|
1974
|
+
seen_last_at: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>>>;
|
|
1975
|
+
start_time_observed: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>>>;
|
|
1976
|
+
start_time_scheduled: z.ZodOptional<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>>;
|
|
1995
1977
|
system_status: z.ZodOptional<z.ZodDefault<z.ZodEnum<["waiting", "processing", "complete", "error"]>>>;
|
|
1996
|
-
trip_id: z.ZodOptional<z.ZodString>;
|
|
1997
1978
|
vehicle_ids: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
1998
1979
|
}, "strip", z.ZodTypeAny, {
|
|
1999
1980
|
_id?: string | undefined;
|
|
2000
|
-
created_by?: string | undefined;
|
|
2001
1981
|
updated_by?: string | undefined;
|
|
2002
1982
|
agency_id?: string | undefined;
|
|
2003
1983
|
line_id?: number | undefined;
|
|
@@ -2093,6 +2073,7 @@ export declare const UpdateRideSchema: z.ZodObject<{
|
|
|
2093
2073
|
error_message?: string | undefined;
|
|
2094
2074
|
};
|
|
2095
2075
|
} | null | undefined;
|
|
2076
|
+
trip_id?: string | undefined;
|
|
2096
2077
|
apex_locations_qty?: number | null | undefined;
|
|
2097
2078
|
apex_on_board_refunds_amount?: number | null | undefined;
|
|
2098
2079
|
apex_on_board_refunds_qty?: number | null | undefined;
|
|
@@ -2100,12 +2081,8 @@ export declare const UpdateRideSchema: z.ZodObject<{
|
|
|
2100
2081
|
apex_on_board_sales_qty?: number | null | undefined;
|
|
2101
2082
|
apex_validations_qty?: number | null | undefined;
|
|
2102
2083
|
driver_ids?: string[] | undefined;
|
|
2103
|
-
end_time_observed?: (
|
|
2104
|
-
|
|
2105
|
-
} & z.BRAND<"UnixTimestamp">) | null | undefined;
|
|
2106
|
-
end_time_scheduled?: (number & {
|
|
2107
|
-
__brand: "UnixTimestamp";
|
|
2108
|
-
} & z.BRAND<"UnixTimestamp">) | undefined;
|
|
2084
|
+
end_time_observed?: import("../_common/unix-timestamp.js").UnixTimestamp | null | undefined;
|
|
2085
|
+
end_time_scheduled?: import("../_common/unix-timestamp.js").UnixTimestamp | undefined;
|
|
2109
2086
|
extension_observed?: number | null | undefined;
|
|
2110
2087
|
extension_scheduled?: number | undefined;
|
|
2111
2088
|
hashed_shape_id?: string | undefined;
|
|
@@ -2124,24 +2101,14 @@ export declare const UpdateRideSchema: z.ZodObject<{
|
|
|
2124
2101
|
pattern_id?: string | undefined;
|
|
2125
2102
|
plan_id?: string | undefined;
|
|
2126
2103
|
route_id?: string | undefined;
|
|
2127
|
-
seen_first_at?: (
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
__brand: "UnixTimestamp";
|
|
2132
|
-
} & z.BRAND<"UnixTimestamp">) | null | undefined;
|
|
2133
|
-
start_time_observed?: (number & {
|
|
2134
|
-
__brand: "UnixTimestamp";
|
|
2135
|
-
} & z.BRAND<"UnixTimestamp">) | null | undefined;
|
|
2136
|
-
start_time_scheduled?: (number & {
|
|
2137
|
-
__brand: "UnixTimestamp";
|
|
2138
|
-
} & z.BRAND<"UnixTimestamp">) | undefined;
|
|
2104
|
+
seen_first_at?: import("../_common/unix-timestamp.js").UnixTimestamp | null | undefined;
|
|
2105
|
+
seen_last_at?: import("../_common/unix-timestamp.js").UnixTimestamp | null | undefined;
|
|
2106
|
+
start_time_observed?: import("../_common/unix-timestamp.js").UnixTimestamp | null | undefined;
|
|
2107
|
+
start_time_scheduled?: import("../_common/unix-timestamp.js").UnixTimestamp | undefined;
|
|
2139
2108
|
system_status?: "waiting" | "processing" | "complete" | "error" | undefined;
|
|
2140
|
-
trip_id?: string | undefined;
|
|
2141
2109
|
vehicle_ids?: number[] | undefined;
|
|
2142
2110
|
}, {
|
|
2143
2111
|
_id?: string | undefined;
|
|
2144
|
-
created_by?: string | undefined;
|
|
2145
2112
|
updated_by?: string | undefined;
|
|
2146
2113
|
agency_id?: string | undefined;
|
|
2147
2114
|
line_id?: number | undefined;
|
|
@@ -2237,6 +2204,7 @@ export declare const UpdateRideSchema: z.ZodObject<{
|
|
|
2237
2204
|
error_message?: string | undefined;
|
|
2238
2205
|
};
|
|
2239
2206
|
} | null | undefined;
|
|
2207
|
+
trip_id?: string | undefined;
|
|
2240
2208
|
apex_locations_qty?: number | null | undefined;
|
|
2241
2209
|
apex_on_board_refunds_amount?: number | null | undefined;
|
|
2242
2210
|
apex_on_board_refunds_qty?: number | null | undefined;
|
|
@@ -2267,30 +2235,11 @@ export declare const UpdateRideSchema: z.ZodObject<{
|
|
|
2267
2235
|
start_time_observed?: number | null | undefined;
|
|
2268
2236
|
start_time_scheduled?: number | undefined;
|
|
2269
2237
|
system_status?: "waiting" | "processing" | "complete" | "error" | undefined;
|
|
2270
|
-
trip_id?: string | undefined;
|
|
2271
2238
|
vehicle_ids?: number[] | undefined;
|
|
2272
2239
|
}>;
|
|
2273
|
-
export
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
end_time_scheduled: null | UnixTimestamp;
|
|
2277
|
-
operational_date: OperationalDate;
|
|
2278
|
-
seen_first_at: null | UnixTimestamp;
|
|
2279
|
-
seen_last_at: null | UnixTimestamp;
|
|
2280
|
-
start_time_observed: null | UnixTimestamp;
|
|
2281
|
-
start_time_scheduled: null | UnixTimestamp;
|
|
2282
|
-
updated_at: UnixTimestamp;
|
|
2283
|
-
}
|
|
2284
|
-
export interface CreateRideDto extends Omit<z.infer<typeof CreateRideSchema>, 'end_time_observed' | 'end_time_scheduled' | 'operational_date' | 'seen_first_at' | 'seen_last_at' | 'start_time_observed' | 'start_time_scheduled'> {
|
|
2285
|
-
end_time_observed: null | UnixTimestamp;
|
|
2286
|
-
end_time_scheduled: null | UnixTimestamp;
|
|
2287
|
-
operational_date: OperationalDate;
|
|
2288
|
-
seen_first_at: null | UnixTimestamp;
|
|
2289
|
-
seen_last_at: null | UnixTimestamp;
|
|
2290
|
-
start_time_observed: null | UnixTimestamp;
|
|
2291
|
-
start_time_scheduled: null | UnixTimestamp;
|
|
2292
|
-
}
|
|
2293
|
-
export type UpdateRideDto = Partial<CreateRideDto>;
|
|
2240
|
+
export type Ride = z.infer<typeof RideSchema>;
|
|
2241
|
+
export type CreateRideDto = z.infer<typeof CreateRideSchema>;
|
|
2242
|
+
export type UpdateRideDto = z.infer<typeof UpdateRideSchema>;
|
|
2294
2243
|
export declare const RidePermissionSchema: z.ZodObject<{
|
|
2295
2244
|
agency_ids: z.ZodArray<z.ZodString, "many">;
|
|
2296
2245
|
}, "strip", z.ZodTypeAny, {
|