@tmlmobilidade/go-types-operation 20260924.1326.28 → 20260929.936.32
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/ride-acceptances/acceptance-status.d.ts +3 -0
- package/dist/ride-acceptances/acceptance-status.js +3 -0
- package/dist/ride-acceptances/ride-acceptance.d.ts +15 -15
- package/dist/ride-acceptances/ride-justification.d.ts +3 -3
- package/dist/ride-acceptances/ride-justification.js +1 -1
- package/package.json +1 -1
|
@@ -2,3 +2,6 @@ import { z } from 'zod';
|
|
|
2
2
|
export declare const RideAcceptanceStatusValues: 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 RideAcceptanceStatusFilterValues: readonly ["justification_required", "under_review", "accepted", "rejected", "none"];
|
|
6
|
+
export declare const RideAcceptanceStatusFilterSchema: z.ZodEnum<["justification_required", "under_review", "accepted", "rejected", "none"]>;
|
|
7
|
+
export type RideAcceptanceStatusFilter = z.infer<typeof RideAcceptanceStatusFilterSchema>;
|
|
@@ -8,3 +8,6 @@ export const RideAcceptanceStatusValues = [
|
|
|
8
8
|
'rejected',
|
|
9
9
|
];
|
|
10
10
|
export const RideAcceptanceStatusSchema = z.enum(RideAcceptanceStatusValues);
|
|
11
|
+
/* * */
|
|
12
|
+
export const RideAcceptanceStatusFilterValues = [...RideAcceptanceStatusValues, 'none'];
|
|
13
|
+
export const RideAcceptanceStatusFilterSchema = z.enum(RideAcceptanceStatusFilterValues);
|
|
@@ -238,7 +238,7 @@ export declare const RideAcceptanceSchema: z.ZodObject<{
|
|
|
238
238
|
}, "_id" | "is_locked"> & {
|
|
239
239
|
justification_cause: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["ACCIDENT", "CONSTRUCTION", "DEMONSTRATION", "MEDICAL_EMERGENCY", "POLICE_ACTIVITY", "STRIKE", "TECHNICAL_ISSUE", "WEATHER", "ABUSIVE_PARKING", "DRIVER_ABSENCE", "DRIVER_ISSUE", "HIGH_PASSENGER_LOAD", "NETWORK_UPDATE", "ROAD_ISSUE", "TRAFFIC_JAM", "PUBLIC_DISORDER", "VEHICLE_ISSUE"]>>;
|
|
240
240
|
justification_source: z.ZodEnum<["manual", "alert"]>;
|
|
241
|
-
manual_trip_id: z.ZodOptional<z.ZodString
|
|
241
|
+
manual_trip_id: z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
242
242
|
pto_message: z.ZodDefault<z.ZodString>;
|
|
243
243
|
}, "strip", z.ZodTypeAny, {
|
|
244
244
|
created_at: number & {
|
|
@@ -252,7 +252,7 @@ export declare const RideAcceptanceSchema: z.ZodObject<{
|
|
|
252
252
|
justification_source: "manual" | "alert";
|
|
253
253
|
pto_message: string;
|
|
254
254
|
updated_by?: string | undefined;
|
|
255
|
-
manual_trip_id?: string | undefined;
|
|
255
|
+
manual_trip_id?: string | null | undefined;
|
|
256
256
|
}, {
|
|
257
257
|
created_at: string | number;
|
|
258
258
|
created_by: string;
|
|
@@ -260,7 +260,7 @@ export declare const RideAcceptanceSchema: z.ZodObject<{
|
|
|
260
260
|
justification_cause: string;
|
|
261
261
|
justification_source: "manual" | "alert";
|
|
262
262
|
updated_by?: string | undefined;
|
|
263
|
-
manual_trip_id?: string | undefined;
|
|
263
|
+
manual_trip_id?: string | null | undefined;
|
|
264
264
|
pto_message?: string | undefined;
|
|
265
265
|
}>>;
|
|
266
266
|
overrides: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
@@ -343,7 +343,7 @@ export declare const RideAcceptanceSchema: z.ZodObject<{
|
|
|
343
343
|
justification_source: "manual" | "alert";
|
|
344
344
|
pto_message: string;
|
|
345
345
|
updated_by?: string | undefined;
|
|
346
|
-
manual_trip_id?: string | undefined;
|
|
346
|
+
manual_trip_id?: string | null | undefined;
|
|
347
347
|
} | null;
|
|
348
348
|
overrides: {
|
|
349
349
|
trip_id: string | null;
|
|
@@ -366,7 +366,7 @@ export declare const RideAcceptanceSchema: z.ZodObject<{
|
|
|
366
366
|
justification_cause: string;
|
|
367
367
|
justification_source: "manual" | "alert";
|
|
368
368
|
updated_by?: string | undefined;
|
|
369
|
-
manual_trip_id?: string | undefined;
|
|
369
|
+
manual_trip_id?: string | null | undefined;
|
|
370
370
|
pto_message?: string | undefined;
|
|
371
371
|
} | null;
|
|
372
372
|
is_locked?: boolean | undefined;
|
|
@@ -647,7 +647,7 @@ export declare const CreateRideAcceptanceSchema: z.ZodObject<Omit<{
|
|
|
647
647
|
}, "_id" | "is_locked"> & {
|
|
648
648
|
justification_cause: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["ACCIDENT", "CONSTRUCTION", "DEMONSTRATION", "MEDICAL_EMERGENCY", "POLICE_ACTIVITY", "STRIKE", "TECHNICAL_ISSUE", "WEATHER", "ABUSIVE_PARKING", "DRIVER_ABSENCE", "DRIVER_ISSUE", "HIGH_PASSENGER_LOAD", "NETWORK_UPDATE", "ROAD_ISSUE", "TRAFFIC_JAM", "PUBLIC_DISORDER", "VEHICLE_ISSUE"]>>;
|
|
649
649
|
justification_source: z.ZodEnum<["manual", "alert"]>;
|
|
650
|
-
manual_trip_id: z.ZodOptional<z.ZodString
|
|
650
|
+
manual_trip_id: z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
651
651
|
pto_message: z.ZodDefault<z.ZodString>;
|
|
652
652
|
}, "strip", z.ZodTypeAny, {
|
|
653
653
|
created_at: number & {
|
|
@@ -661,7 +661,7 @@ export declare const CreateRideAcceptanceSchema: z.ZodObject<Omit<{
|
|
|
661
661
|
justification_source: "manual" | "alert";
|
|
662
662
|
pto_message: string;
|
|
663
663
|
updated_by?: string | undefined;
|
|
664
|
-
manual_trip_id?: string | undefined;
|
|
664
|
+
manual_trip_id?: string | null | undefined;
|
|
665
665
|
}, {
|
|
666
666
|
created_at: string | number;
|
|
667
667
|
created_by: string;
|
|
@@ -669,7 +669,7 @@ export declare const CreateRideAcceptanceSchema: z.ZodObject<Omit<{
|
|
|
669
669
|
justification_cause: string;
|
|
670
670
|
justification_source: "manual" | "alert";
|
|
671
671
|
updated_by?: string | undefined;
|
|
672
|
-
manual_trip_id?: string | undefined;
|
|
672
|
+
manual_trip_id?: string | null | undefined;
|
|
673
673
|
pto_message?: string | undefined;
|
|
674
674
|
}>>;
|
|
675
675
|
overrides: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
@@ -745,7 +745,7 @@ export declare const CreateRideAcceptanceSchema: z.ZodObject<Omit<{
|
|
|
745
745
|
justification_source: "manual" | "alert";
|
|
746
746
|
pto_message: string;
|
|
747
747
|
updated_by?: string | undefined;
|
|
748
|
-
manual_trip_id?: string | undefined;
|
|
748
|
+
manual_trip_id?: string | null | undefined;
|
|
749
749
|
} | null;
|
|
750
750
|
overrides: {
|
|
751
751
|
trip_id: string | null;
|
|
@@ -766,7 +766,7 @@ export declare const CreateRideAcceptanceSchema: z.ZodObject<Omit<{
|
|
|
766
766
|
justification_cause: string;
|
|
767
767
|
justification_source: "manual" | "alert";
|
|
768
768
|
updated_by?: string | undefined;
|
|
769
|
-
manual_trip_id?: string | undefined;
|
|
769
|
+
manual_trip_id?: string | null | undefined;
|
|
770
770
|
pto_message?: string | undefined;
|
|
771
771
|
} | null;
|
|
772
772
|
_id?: string | undefined;
|
|
@@ -1046,7 +1046,7 @@ export declare const UpdateRideAcceptanceSchema: z.ZodObject<{
|
|
|
1046
1046
|
}, "_id" | "is_locked"> & {
|
|
1047
1047
|
justification_cause: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["ACCIDENT", "CONSTRUCTION", "DEMONSTRATION", "MEDICAL_EMERGENCY", "POLICE_ACTIVITY", "STRIKE", "TECHNICAL_ISSUE", "WEATHER", "ABUSIVE_PARKING", "DRIVER_ABSENCE", "DRIVER_ISSUE", "HIGH_PASSENGER_LOAD", "NETWORK_UPDATE", "ROAD_ISSUE", "TRAFFIC_JAM", "PUBLIC_DISORDER", "VEHICLE_ISSUE"]>>;
|
|
1048
1048
|
justification_source: z.ZodEnum<["manual", "alert"]>;
|
|
1049
|
-
manual_trip_id: z.ZodOptional<z.ZodString
|
|
1049
|
+
manual_trip_id: z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1050
1050
|
pto_message: z.ZodDefault<z.ZodString>;
|
|
1051
1051
|
}, "strip", z.ZodTypeAny, {
|
|
1052
1052
|
created_at: number & {
|
|
@@ -1060,7 +1060,7 @@ export declare const UpdateRideAcceptanceSchema: z.ZodObject<{
|
|
|
1060
1060
|
justification_source: "manual" | "alert";
|
|
1061
1061
|
pto_message: string;
|
|
1062
1062
|
updated_by?: string | undefined;
|
|
1063
|
-
manual_trip_id?: string | undefined;
|
|
1063
|
+
manual_trip_id?: string | null | undefined;
|
|
1064
1064
|
}, {
|
|
1065
1065
|
created_at: string | number;
|
|
1066
1066
|
created_by: string;
|
|
@@ -1068,7 +1068,7 @@ export declare const UpdateRideAcceptanceSchema: z.ZodObject<{
|
|
|
1068
1068
|
justification_cause: string;
|
|
1069
1069
|
justification_source: "manual" | "alert";
|
|
1070
1070
|
updated_by?: string | undefined;
|
|
1071
|
-
manual_trip_id?: string | undefined;
|
|
1071
|
+
manual_trip_id?: string | null | undefined;
|
|
1072
1072
|
pto_message?: string | undefined;
|
|
1073
1073
|
}>>>;
|
|
1074
1074
|
overrides: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
@@ -1146,7 +1146,7 @@ export declare const UpdateRideAcceptanceSchema: z.ZodObject<{
|
|
|
1146
1146
|
justification_source: "manual" | "alert";
|
|
1147
1147
|
pto_message: string;
|
|
1148
1148
|
updated_by?: string | undefined;
|
|
1149
|
-
manual_trip_id?: string | undefined;
|
|
1149
|
+
manual_trip_id?: string | null | undefined;
|
|
1150
1150
|
} | null | undefined;
|
|
1151
1151
|
overrides?: {
|
|
1152
1152
|
trip_id: string | null;
|
|
@@ -1202,7 +1202,7 @@ export declare const UpdateRideAcceptanceSchema: z.ZodObject<{
|
|
|
1202
1202
|
justification_cause: string;
|
|
1203
1203
|
justification_source: "manual" | "alert";
|
|
1204
1204
|
updated_by?: string | undefined;
|
|
1205
|
-
manual_trip_id?: string | undefined;
|
|
1205
|
+
manual_trip_id?: string | null | undefined;
|
|
1206
1206
|
pto_message?: string | undefined;
|
|
1207
1207
|
} | null | undefined;
|
|
1208
1208
|
overrides?: {
|
|
@@ -9,7 +9,7 @@ export declare const RideJustificationSchema: z.ZodObject<Omit<{
|
|
|
9
9
|
}, "_id" | "is_locked"> & {
|
|
10
10
|
justification_cause: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["ACCIDENT", "CONSTRUCTION", "DEMONSTRATION", "MEDICAL_EMERGENCY", "POLICE_ACTIVITY", "STRIKE", "TECHNICAL_ISSUE", "WEATHER", "ABUSIVE_PARKING", "DRIVER_ABSENCE", "DRIVER_ISSUE", "HIGH_PASSENGER_LOAD", "NETWORK_UPDATE", "ROAD_ISSUE", "TRAFFIC_JAM", "PUBLIC_DISORDER", "VEHICLE_ISSUE"]>>;
|
|
11
11
|
justification_source: z.ZodEnum<["manual", "alert"]>;
|
|
12
|
-
manual_trip_id: z.ZodOptional<z.ZodString
|
|
12
|
+
manual_trip_id: z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
13
13
|
pto_message: z.ZodDefault<z.ZodString>;
|
|
14
14
|
}, "strip", z.ZodTypeAny, {
|
|
15
15
|
created_at: number & {
|
|
@@ -23,7 +23,7 @@ export declare const RideJustificationSchema: z.ZodObject<Omit<{
|
|
|
23
23
|
justification_source: "manual" | "alert";
|
|
24
24
|
pto_message: string;
|
|
25
25
|
updated_by?: string | undefined;
|
|
26
|
-
manual_trip_id?: string | undefined;
|
|
26
|
+
manual_trip_id?: string | null | undefined;
|
|
27
27
|
}, {
|
|
28
28
|
created_at: string | number;
|
|
29
29
|
created_by: string;
|
|
@@ -31,7 +31,7 @@ export declare const RideJustificationSchema: z.ZodObject<Omit<{
|
|
|
31
31
|
justification_cause: string;
|
|
32
32
|
justification_source: "manual" | "alert";
|
|
33
33
|
updated_by?: string | undefined;
|
|
34
|
-
manual_trip_id?: string | undefined;
|
|
34
|
+
manual_trip_id?: string | null | undefined;
|
|
35
35
|
pto_message?: string | undefined;
|
|
36
36
|
}>;
|
|
37
37
|
export type RideJustification = z.infer<typeof RideJustificationSchema>;
|
|
@@ -9,6 +9,6 @@ export const RideJustificationSchema = BaseDocumentSchema
|
|
|
9
9
|
.extend({
|
|
10
10
|
justification_cause: AlertCauseSchema,
|
|
11
11
|
justification_source: RideJustificationSourceSchema,
|
|
12
|
-
manual_trip_id: z.string().
|
|
12
|
+
manual_trip_id: z.string().nullish().nullable(),
|
|
13
13
|
pto_message: z.string().min(2).max(5000).default(''),
|
|
14
14
|
});
|