@tmlmobilidade/types 20260121.2332.6 → 20260128.2248.28
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/_common/comment.d.ts +24 -24
- package/dist/_common/document.d.ts +3 -3
- package/dist/_common/document.js +1 -1
- package/dist/_common/status.d.ts +2 -2
- package/dist/_common/status.js +1 -1
- package/dist/_common/unix-timestamp.js +1 -0
- package/dist/agency.d.ts +6 -6
- package/dist/alerts/alert.d.ts +262 -0
- package/dist/alerts/alert.js +34 -0
- package/dist/alerts/cause-effect-map.d.ts +106 -0
- package/dist/alerts/cause-effect-map.js +94 -0
- package/dist/alerts/cause.d.ts +17 -0
- package/dist/alerts/cause.js +45 -0
- package/dist/alerts/effect.d.ts +17 -0
- package/dist/alerts/effect.js +35 -0
- package/dist/alerts/index.d.ts +6 -0
- package/dist/alerts/index.js +6 -0
- package/dist/alerts/query.d.ts +9 -0
- package/dist/alerts/query.js +6 -0
- package/dist/alerts/reference-type.d.ts +4 -0
- package/dist/alerts/reference-type.js +10 -0
- package/dist/apex/simplified-apex-location.d.ts +2 -12
- package/dist/apex/simplified-apex-location.js +1 -1
- package/dist/apex/simplified-apex-on-board-refund.d.ts +2 -12
- package/dist/apex/simplified-apex-on-board-refund.js +1 -1
- package/dist/apex/simplified-apex-on-board-sale.d.ts +12 -19
- package/dist/apex/simplified-apex-on-board-sale.js +2 -2
- package/dist/apex/simplified-apex-validation.d.ts +6 -16
- package/dist/apex/simplified-apex-validation.js +1 -1
- package/dist/auth/role.d.ts +718 -130
- package/dist/auth/session.d.ts +6 -6
- package/dist/auth/user.d.ts +1182 -270
- package/dist/auth/verification-token.d.ts +4 -4
- package/dist/calendar/event.d.ts +43 -0
- package/dist/calendar/event.js +16 -0
- package/dist/calendar/index.d.ts +1 -0
- package/dist/calendar/index.js +2 -0
- package/dist/dates/annotation.d.ts +6 -6
- package/dist/dates/date.d.ts +32 -0
- package/dist/dates/date.js +18 -0
- package/dist/dates/index.d.ts +2 -0
- package/dist/dates/index.js +2 -0
- package/dist/dates/period.d.ts +94 -0
- package/dist/dates/period.js +14 -0
- package/dist/file-exports/base.d.ts +9 -9
- package/dist/file-exports/file-exports.d.ts +7 -7
- package/dist/file-exports/ride-export.d.ts +14 -14
- package/dist/file-exports/ride-export.js +2 -2
- package/dist/gtfs/cause.d.ts +10 -0
- package/dist/gtfs/cause.js +18 -0
- package/dist/gtfs/effect.d.ts +10 -0
- package/dist/gtfs/effect.js +17 -0
- package/dist/gtfs/index.d.ts +2 -1
- package/dist/gtfs/index.js +2 -1
- package/dist/index.d.ts +5 -2
- package/dist/index.js +5 -2
- package/dist/locations/queries.d.ts +2 -2
- package/dist/metrics/demand/demand_by_agency.d.ts +8 -8
- package/dist/metrics/demand/demand_by_category.d.ts +12 -12
- package/dist/metrics/demand/demand_by_line.d.ts +4 -4
- package/dist/metrics/demand/demand_by_pattern.d.ts +8 -8
- package/dist/metrics/demand/demand_by_product.d.ts +12 -12
- package/dist/metrics/index.d.ts +93 -48
- package/dist/metrics/index.js +4 -1
- package/dist/metrics/passenger-impact/index.d.ts +1 -0
- package/dist/metrics/passenger-impact/index.js +1 -0
- package/dist/metrics/passenger-impact/passenger-impact.d.ts +97 -0
- package/dist/metrics/passenger-impact/passenger-impact.js +22 -0
- package/dist/metrics/supply/supply_by_agency.d.ts +4 -4
- package/dist/notification.d.ts +18 -18
- package/dist/offer/index.d.ts +5 -0
- package/dist/offer/index.js +5 -0
- package/dist/offer/line.d.ts +296 -0
- package/dist/offer/line.js +60 -0
- package/dist/offer/pattern.d.ts +3608 -0
- package/dist/offer/pattern.js +75 -0
- package/dist/offer/route.d.ts +187 -0
- package/dist/offer/route.js +33 -0
- package/dist/offer/scheduleRule.d.ts +80 -0
- package/dist/offer/scheduleRule.js +50 -0
- package/dist/offer/typology.d.ts +124 -0
- package/dist/offer/typology.js +30 -0
- package/dist/organization.d.ts +20 -20
- package/dist/permissions/alerts.d.ts +13 -19
- package/dist/permissions/alerts.js +8 -13
- package/dist/permissions/annotations.d.ts +25 -0
- package/dist/permissions/annotations.js +16 -0
- package/dist/permissions/fares.d.ts +25 -0
- package/dist/permissions/fares.js +16 -0
- package/dist/permissions/index.d.ts +196 -21
- package/dist/permissions/index.js +142 -6
- package/dist/permissions/lines.d.ts +25 -0
- package/dist/permissions/lines.js +16 -0
- package/dist/permissions/periods.d.ts +25 -0
- package/dist/permissions/periods.js +16 -0
- package/dist/permissions/typologies.d.ts +25 -0
- package/dist/permissions/typologies.js +16 -0
- package/dist/permissions/vehicles.d.ts +25 -0
- package/dist/permissions/vehicles.js +16 -0
- package/dist/permissions/zones.d.ts +25 -0
- package/dist/permissions/zones.js +16 -0
- package/dist/plans/gtfs-validation.d.ts +30 -30
- package/dist/plans/plan.d.ts +6 -6
- package/dist/proposed-change.d.ts +12 -12
- package/dist/rides/batch-query.d.ts +52 -0
- package/dist/rides/batch-query.js +54 -0
- package/dist/rides/index.d.ts +1 -0
- package/dist/rides/index.js +1 -0
- package/dist/rides/ride-acceptance.d.ts +105 -105
- package/dist/rides/ride-acceptance.js +2 -2
- package/dist/rides/ride-audit.d.ts +21 -21
- package/dist/rides/ride-normalized.d.ts +808 -21
- package/dist/rides/ride-normalized.js +31 -1
- package/dist/rides/ride.d.ts +6 -6
- package/dist/sams/sam.d.ts +0 -15
- package/dist/sams/sam.js +2 -2
- package/dist/stops/connections.d.ts +1 -0
- package/dist/stops/connections.js +1 -1
- package/dist/stops/equipment.d.ts +1 -0
- package/dist/stops/equipment.js +1 -1
- package/dist/stops/parent-station.d.ts +6 -6
- package/dist/stops/stop-area.d.ts +6 -6
- package/dist/stops/stop.d.ts +69 -69
- package/dist/ticketing/fare.d.ts +137 -0
- package/dist/ticketing/fare.js +44 -0
- package/dist/ticketing/index.d.ts +2 -0
- package/dist/ticketing/index.js +2 -0
- package/dist/ticketing/zone.d.ts +220 -0
- package/dist/ticketing/zone.js +34 -0
- package/dist/vehicle/emission.d.ts +3 -0
- package/dist/vehicle/emission.js +12 -0
- package/dist/vehicle/index.d.ts +4 -0
- package/dist/vehicle/index.js +4 -0
- package/dist/vehicle/propulsion.d.ts +3 -0
- package/dist/vehicle/propulsion.js +14 -0
- package/dist/vehicle/vehicle.d.ts +189 -0
- package/dist/vehicle/vehicle.js +27 -0
- package/dist/vehicle/wheelchair.d.ts +3 -0
- package/dist/vehicle/wheelchair.js +10 -0
- package/dist/vehicle-events/clickhouse-vehicle-event.d.ts +2 -6
- package/dist/vehicle-events/simplified-vehicle-event.d.ts +2 -6
- package/dist/vehicle-events/simplified-vehicle-event.js +1 -1
- package/dist/zone.d.ts +6 -6
- package/package.json +2 -2
- package/dist/alert.d.ts +0 -265
- package/dist/alert.js +0 -42
- package/dist/gtfs/cause-effetcs.d.ts +0 -86
- package/dist/gtfs/cause-effetcs.js +0 -31
- package/dist/permissions/dates.d.ts +0 -25
- package/dist/permissions/dates.js +0 -16
|
@@ -11,12 +11,12 @@ export type RideJustificationStatusType = z.infer<typeof RideJustificationStatus
|
|
|
11
11
|
export declare const RideJustificationSchema: z.ZodObject<Omit<{
|
|
12
12
|
_id: z.ZodString;
|
|
13
13
|
created_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
|
|
14
|
-
created_by: z.
|
|
14
|
+
created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
15
15
|
is_locked: z.ZodDefault<z.ZodBoolean>;
|
|
16
16
|
updated_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
|
|
17
17
|
updated_by: z.ZodOptional<z.ZodString>;
|
|
18
18
|
}, "_id" | "is_locked"> & {
|
|
19
|
-
justification_cause: z.ZodEnum<["ACCIDENT", "CONSTRUCTION", "DEMONSTRATION", "HOLIDAY", "MAINTENANCE", "MEDICAL_EMERGENCY", "OTHER_CAUSE", "POLICE_ACTIVITY", "STRIKE", "
|
|
19
|
+
justification_cause: z.ZodEnum<["ACCIDENT", "CONSTRUCTION", "DEMONSTRATION", "HOLIDAY", "MAINTENANCE", "MEDICAL_EMERGENCY", "OTHER_CAUSE", "POLICE_ACTIVITY", "STRIKE", "TECHNICAL_ISSUE", "UNKNOWN_CAUSE", "WEATHER"]>;
|
|
20
20
|
justification_source: z.ZodEnum<["MANUAL", "ALERT"]>;
|
|
21
21
|
manual_trip_id: z.ZodOptional<z.ZodString>;
|
|
22
22
|
pto_message: z.ZodDefault<z.ZodString>;
|
|
@@ -24,21 +24,21 @@ export declare const RideJustificationSchema: z.ZodObject<Omit<{
|
|
|
24
24
|
created_at: number & {
|
|
25
25
|
__brand: "UnixTimestamp";
|
|
26
26
|
};
|
|
27
|
+
created_by: string | null;
|
|
27
28
|
updated_at: number & {
|
|
28
29
|
__brand: "UnixTimestamp";
|
|
29
30
|
};
|
|
30
31
|
pto_message: string;
|
|
31
|
-
justification_cause: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "HOLIDAY" | "MAINTENANCE" | "MEDICAL_EMERGENCY" | "OTHER_CAUSE" | "POLICE_ACTIVITY" | "STRIKE" | "
|
|
32
|
+
justification_cause: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "HOLIDAY" | "MAINTENANCE" | "MEDICAL_EMERGENCY" | "OTHER_CAUSE" | "POLICE_ACTIVITY" | "STRIKE" | "TECHNICAL_ISSUE" | "UNKNOWN_CAUSE" | "WEATHER";
|
|
32
33
|
justification_source: "MANUAL" | "ALERT";
|
|
33
|
-
created_by?: string | undefined;
|
|
34
34
|
updated_by?: string | undefined;
|
|
35
35
|
manual_trip_id?: string | undefined;
|
|
36
36
|
}, {
|
|
37
37
|
created_at: number;
|
|
38
38
|
updated_at: number;
|
|
39
|
-
justification_cause: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "HOLIDAY" | "MAINTENANCE" | "MEDICAL_EMERGENCY" | "OTHER_CAUSE" | "POLICE_ACTIVITY" | "STRIKE" | "
|
|
39
|
+
justification_cause: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "HOLIDAY" | "MAINTENANCE" | "MEDICAL_EMERGENCY" | "OTHER_CAUSE" | "POLICE_ACTIVITY" | "STRIKE" | "TECHNICAL_ISSUE" | "UNKNOWN_CAUSE" | "WEATHER";
|
|
40
40
|
justification_source: "MANUAL" | "ALERT";
|
|
41
|
-
created_by?: string | undefined;
|
|
41
|
+
created_by?: string | null | undefined;
|
|
42
42
|
updated_by?: string | undefined;
|
|
43
43
|
pto_message?: string | undefined;
|
|
44
44
|
manual_trip_id?: string | undefined;
|
|
@@ -47,7 +47,7 @@ export type RideJustification = z.infer<typeof RideJustificationSchema>;
|
|
|
47
47
|
export declare const RideAcceptanceSchema: z.ZodObject<{
|
|
48
48
|
_id: z.ZodString;
|
|
49
49
|
created_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
|
|
50
|
-
created_by: z.
|
|
50
|
+
created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
51
51
|
updated_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
|
|
52
52
|
updated_by: z.ZodOptional<z.ZodString>;
|
|
53
53
|
} & {
|
|
@@ -65,7 +65,7 @@ export declare const RideAcceptanceSchema: z.ZodObject<{
|
|
|
65
65
|
comments: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
66
66
|
_id: z.ZodOptional<z.ZodString>;
|
|
67
67
|
created_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
|
|
68
|
-
created_by: z.
|
|
68
|
+
created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
69
69
|
updated_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
|
|
70
70
|
updated_by: z.ZodOptional<z.ZodString>;
|
|
71
71
|
message: z.ZodString;
|
|
@@ -74,13 +74,13 @@ export declare const RideAcceptanceSchema: z.ZodObject<{
|
|
|
74
74
|
created_at: number & {
|
|
75
75
|
__brand: "UnixTimestamp";
|
|
76
76
|
};
|
|
77
|
+
created_by: string | null;
|
|
77
78
|
updated_at: number & {
|
|
78
79
|
__brand: "UnixTimestamp";
|
|
79
80
|
};
|
|
80
81
|
message: string;
|
|
81
82
|
type: "note";
|
|
82
83
|
_id?: string | undefined;
|
|
83
|
-
created_by?: string | undefined;
|
|
84
84
|
updated_by?: string | undefined;
|
|
85
85
|
}, {
|
|
86
86
|
created_at: number;
|
|
@@ -88,12 +88,12 @@ export declare const RideAcceptanceSchema: z.ZodObject<{
|
|
|
88
88
|
message: string;
|
|
89
89
|
type: "note";
|
|
90
90
|
_id?: string | undefined;
|
|
91
|
-
created_by?: string | undefined;
|
|
91
|
+
created_by?: string | null | undefined;
|
|
92
92
|
updated_by?: string | undefined;
|
|
93
93
|
}>, z.ZodObject<{
|
|
94
94
|
_id: z.ZodOptional<z.ZodString>;
|
|
95
95
|
created_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
|
|
96
|
-
created_by: z.
|
|
96
|
+
created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
97
97
|
updated_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
|
|
98
98
|
updated_by: z.ZodOptional<z.ZodString>;
|
|
99
99
|
type: z.ZodLiteral<"field_changed">;
|
|
@@ -105,13 +105,13 @@ export declare const RideAcceptanceSchema: z.ZodObject<{
|
|
|
105
105
|
created_at: number & {
|
|
106
106
|
__brand: "UnixTimestamp";
|
|
107
107
|
};
|
|
108
|
+
created_by: string | null;
|
|
108
109
|
updated_at: number & {
|
|
109
110
|
__brand: "UnixTimestamp";
|
|
110
111
|
};
|
|
111
112
|
type: "field_changed";
|
|
112
113
|
field: string;
|
|
113
114
|
_id?: string | undefined;
|
|
114
|
-
created_by?: string | undefined;
|
|
115
115
|
updated_by?: string | undefined;
|
|
116
116
|
metadata?: Record<string, unknown> | null | undefined;
|
|
117
117
|
curr_value?: any;
|
|
@@ -122,7 +122,7 @@ export declare const RideAcceptanceSchema: z.ZodObject<{
|
|
|
122
122
|
type: "field_changed";
|
|
123
123
|
field: string;
|
|
124
124
|
_id?: string | undefined;
|
|
125
|
-
created_by?: string | undefined;
|
|
125
|
+
created_by?: string | null | undefined;
|
|
126
126
|
updated_by?: string | undefined;
|
|
127
127
|
metadata?: Record<string, unknown> | null | undefined;
|
|
128
128
|
curr_value?: any;
|
|
@@ -130,7 +130,7 @@ export declare const RideAcceptanceSchema: z.ZodObject<{
|
|
|
130
130
|
}>, z.ZodObject<{
|
|
131
131
|
_id: z.ZodOptional<z.ZodString>;
|
|
132
132
|
created_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
|
|
133
|
-
created_by: z.
|
|
133
|
+
created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
134
134
|
updated_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
|
|
135
135
|
updated_by: z.ZodOptional<z.ZodString>;
|
|
136
136
|
type: z.ZodLiteral<"crud">;
|
|
@@ -139,13 +139,13 @@ export declare const RideAcceptanceSchema: z.ZodObject<{
|
|
|
139
139
|
created_at: number & {
|
|
140
140
|
__brand: "UnixTimestamp";
|
|
141
141
|
};
|
|
142
|
+
created_by: string | null;
|
|
142
143
|
updated_at: number & {
|
|
143
144
|
__brand: "UnixTimestamp";
|
|
144
145
|
};
|
|
145
146
|
type: "crud";
|
|
146
147
|
action: "create" | "update" | "delete" | "archive" | "restore";
|
|
147
148
|
_id?: string | undefined;
|
|
148
|
-
created_by?: string | undefined;
|
|
149
149
|
updated_by?: string | undefined;
|
|
150
150
|
}, {
|
|
151
151
|
created_at: number;
|
|
@@ -153,31 +153,31 @@ export declare const RideAcceptanceSchema: z.ZodObject<{
|
|
|
153
153
|
type: "crud";
|
|
154
154
|
action: "create" | "update" | "delete" | "archive" | "restore";
|
|
155
155
|
_id?: string | undefined;
|
|
156
|
-
created_by?: string | undefined;
|
|
156
|
+
created_by?: string | null | undefined;
|
|
157
157
|
updated_by?: string | undefined;
|
|
158
158
|
}>]>, {
|
|
159
159
|
created_at: number & {
|
|
160
160
|
__brand: "UnixTimestamp";
|
|
161
161
|
};
|
|
162
|
+
created_by: string | null;
|
|
162
163
|
updated_at: number & {
|
|
163
164
|
__brand: "UnixTimestamp";
|
|
164
165
|
};
|
|
165
166
|
message: string;
|
|
166
167
|
type: "note";
|
|
167
168
|
_id?: string | undefined;
|
|
168
|
-
created_by?: string | undefined;
|
|
169
169
|
updated_by?: string | undefined;
|
|
170
170
|
} | {
|
|
171
171
|
created_at: number & {
|
|
172
172
|
__brand: "UnixTimestamp";
|
|
173
173
|
};
|
|
174
|
+
created_by: string | null;
|
|
174
175
|
updated_at: number & {
|
|
175
176
|
__brand: "UnixTimestamp";
|
|
176
177
|
};
|
|
177
178
|
type: "field_changed";
|
|
178
179
|
field: string;
|
|
179
180
|
_id?: string | undefined;
|
|
180
|
-
created_by?: string | undefined;
|
|
181
181
|
updated_by?: string | undefined;
|
|
182
182
|
metadata?: Record<string, unknown> | null | undefined;
|
|
183
183
|
curr_value?: any;
|
|
@@ -186,13 +186,13 @@ export declare const RideAcceptanceSchema: z.ZodObject<{
|
|
|
186
186
|
created_at: number & {
|
|
187
187
|
__brand: "UnixTimestamp";
|
|
188
188
|
};
|
|
189
|
+
created_by: string | null;
|
|
189
190
|
updated_at: number & {
|
|
190
191
|
__brand: "UnixTimestamp";
|
|
191
192
|
};
|
|
192
193
|
type: "crud";
|
|
193
194
|
action: "create" | "update" | "delete" | "archive" | "restore";
|
|
194
195
|
_id?: string | undefined;
|
|
195
|
-
created_by?: string | undefined;
|
|
196
196
|
updated_by?: string | undefined;
|
|
197
197
|
}, {
|
|
198
198
|
created_at: number;
|
|
@@ -200,7 +200,7 @@ export declare const RideAcceptanceSchema: z.ZodObject<{
|
|
|
200
200
|
message: string;
|
|
201
201
|
type: "note";
|
|
202
202
|
_id?: string | undefined;
|
|
203
|
-
created_by?: string | undefined;
|
|
203
|
+
created_by?: string | null | undefined;
|
|
204
204
|
updated_by?: string | undefined;
|
|
205
205
|
} | {
|
|
206
206
|
created_at: number;
|
|
@@ -208,7 +208,7 @@ export declare const RideAcceptanceSchema: z.ZodObject<{
|
|
|
208
208
|
type: "field_changed";
|
|
209
209
|
field: string;
|
|
210
210
|
_id?: string | undefined;
|
|
211
|
-
created_by?: string | undefined;
|
|
211
|
+
created_by?: string | null | undefined;
|
|
212
212
|
updated_by?: string | undefined;
|
|
213
213
|
metadata?: Record<string, unknown> | null | undefined;
|
|
214
214
|
curr_value?: any;
|
|
@@ -219,19 +219,19 @@ export declare const RideAcceptanceSchema: z.ZodObject<{
|
|
|
219
219
|
type: "crud";
|
|
220
220
|
action: "create" | "update" | "delete" | "archive" | "restore";
|
|
221
221
|
_id?: string | undefined;
|
|
222
|
-
created_by?: string | undefined;
|
|
222
|
+
created_by?: string | null | undefined;
|
|
223
223
|
updated_by?: string | undefined;
|
|
224
224
|
}>, "many">>;
|
|
225
225
|
is_locked: z.ZodDefault<z.ZodBoolean>;
|
|
226
226
|
justification: z.ZodNullable<z.ZodObject<Omit<{
|
|
227
227
|
_id: z.ZodString;
|
|
228
228
|
created_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
|
|
229
|
-
created_by: z.
|
|
229
|
+
created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
230
230
|
is_locked: z.ZodDefault<z.ZodBoolean>;
|
|
231
231
|
updated_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
|
|
232
232
|
updated_by: z.ZodOptional<z.ZodString>;
|
|
233
233
|
}, "_id" | "is_locked"> & {
|
|
234
|
-
justification_cause: z.ZodEnum<["ACCIDENT", "CONSTRUCTION", "DEMONSTRATION", "HOLIDAY", "MAINTENANCE", "MEDICAL_EMERGENCY", "OTHER_CAUSE", "POLICE_ACTIVITY", "STRIKE", "
|
|
234
|
+
justification_cause: z.ZodEnum<["ACCIDENT", "CONSTRUCTION", "DEMONSTRATION", "HOLIDAY", "MAINTENANCE", "MEDICAL_EMERGENCY", "OTHER_CAUSE", "POLICE_ACTIVITY", "STRIKE", "TECHNICAL_ISSUE", "UNKNOWN_CAUSE", "WEATHER"]>;
|
|
235
235
|
justification_source: z.ZodEnum<["MANUAL", "ALERT"]>;
|
|
236
236
|
manual_trip_id: z.ZodOptional<z.ZodString>;
|
|
237
237
|
pto_message: z.ZodDefault<z.ZodString>;
|
|
@@ -239,21 +239,21 @@ export declare const RideAcceptanceSchema: z.ZodObject<{
|
|
|
239
239
|
created_at: number & {
|
|
240
240
|
__brand: "UnixTimestamp";
|
|
241
241
|
};
|
|
242
|
+
created_by: string | null;
|
|
242
243
|
updated_at: number & {
|
|
243
244
|
__brand: "UnixTimestamp";
|
|
244
245
|
};
|
|
245
246
|
pto_message: string;
|
|
246
|
-
justification_cause: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "HOLIDAY" | "MAINTENANCE" | "MEDICAL_EMERGENCY" | "OTHER_CAUSE" | "POLICE_ACTIVITY" | "STRIKE" | "
|
|
247
|
+
justification_cause: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "HOLIDAY" | "MAINTENANCE" | "MEDICAL_EMERGENCY" | "OTHER_CAUSE" | "POLICE_ACTIVITY" | "STRIKE" | "TECHNICAL_ISSUE" | "UNKNOWN_CAUSE" | "WEATHER";
|
|
247
248
|
justification_source: "MANUAL" | "ALERT";
|
|
248
|
-
created_by?: string | undefined;
|
|
249
249
|
updated_by?: string | undefined;
|
|
250
250
|
manual_trip_id?: string | undefined;
|
|
251
251
|
}, {
|
|
252
252
|
created_at: number;
|
|
253
253
|
updated_at: number;
|
|
254
|
-
justification_cause: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "HOLIDAY" | "MAINTENANCE" | "MEDICAL_EMERGENCY" | "OTHER_CAUSE" | "POLICE_ACTIVITY" | "STRIKE" | "
|
|
254
|
+
justification_cause: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "HOLIDAY" | "MAINTENANCE" | "MEDICAL_EMERGENCY" | "OTHER_CAUSE" | "POLICE_ACTIVITY" | "STRIKE" | "TECHNICAL_ISSUE" | "UNKNOWN_CAUSE" | "WEATHER";
|
|
255
255
|
justification_source: "MANUAL" | "ALERT";
|
|
256
|
-
created_by?: string | undefined;
|
|
256
|
+
created_by?: string | null | undefined;
|
|
257
257
|
updated_by?: string | undefined;
|
|
258
258
|
pto_message?: string | undefined;
|
|
259
259
|
manual_trip_id?: string | undefined;
|
|
@@ -264,6 +264,7 @@ export declare const RideAcceptanceSchema: z.ZodObject<{
|
|
|
264
264
|
created_at: number & {
|
|
265
265
|
__brand: "UnixTimestamp";
|
|
266
266
|
};
|
|
267
|
+
created_by: string | null;
|
|
267
268
|
is_locked: boolean;
|
|
268
269
|
updated_at: number & {
|
|
269
270
|
__brand: "UnixTimestamp";
|
|
@@ -277,25 +278,25 @@ export declare const RideAcceptanceSchema: z.ZodObject<{
|
|
|
277
278
|
created_at: number & {
|
|
278
279
|
__brand: "UnixTimestamp";
|
|
279
280
|
};
|
|
281
|
+
created_by: string | null;
|
|
280
282
|
updated_at: number & {
|
|
281
283
|
__brand: "UnixTimestamp";
|
|
282
284
|
};
|
|
283
285
|
message: string;
|
|
284
286
|
type: "note";
|
|
285
287
|
_id?: string | undefined;
|
|
286
|
-
created_by?: string | undefined;
|
|
287
288
|
updated_by?: string | undefined;
|
|
288
289
|
} | {
|
|
289
290
|
created_at: number & {
|
|
290
291
|
__brand: "UnixTimestamp";
|
|
291
292
|
};
|
|
293
|
+
created_by: string | null;
|
|
292
294
|
updated_at: number & {
|
|
293
295
|
__brand: "UnixTimestamp";
|
|
294
296
|
};
|
|
295
297
|
type: "field_changed";
|
|
296
298
|
field: string;
|
|
297
299
|
_id?: string | undefined;
|
|
298
|
-
created_by?: string | undefined;
|
|
299
300
|
updated_by?: string | undefined;
|
|
300
301
|
metadata?: Record<string, unknown> | null | undefined;
|
|
301
302
|
curr_value?: any;
|
|
@@ -304,31 +305,30 @@ export declare const RideAcceptanceSchema: z.ZodObject<{
|
|
|
304
305
|
created_at: number & {
|
|
305
306
|
__brand: "UnixTimestamp";
|
|
306
307
|
};
|
|
308
|
+
created_by: string | null;
|
|
307
309
|
updated_at: number & {
|
|
308
310
|
__brand: "UnixTimestamp";
|
|
309
311
|
};
|
|
310
312
|
type: "crud";
|
|
311
313
|
action: "create" | "update" | "delete" | "archive" | "restore";
|
|
312
314
|
_id?: string | undefined;
|
|
313
|
-
created_by?: string | undefined;
|
|
314
315
|
updated_by?: string | undefined;
|
|
315
316
|
})[];
|
|
316
317
|
justification: {
|
|
317
318
|
created_at: number & {
|
|
318
319
|
__brand: "UnixTimestamp";
|
|
319
320
|
};
|
|
321
|
+
created_by: string | null;
|
|
320
322
|
updated_at: number & {
|
|
321
323
|
__brand: "UnixTimestamp";
|
|
322
324
|
};
|
|
323
325
|
pto_message: string;
|
|
324
|
-
justification_cause: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "HOLIDAY" | "MAINTENANCE" | "MEDICAL_EMERGENCY" | "OTHER_CAUSE" | "POLICE_ACTIVITY" | "STRIKE" | "
|
|
326
|
+
justification_cause: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "HOLIDAY" | "MAINTENANCE" | "MEDICAL_EMERGENCY" | "OTHER_CAUSE" | "POLICE_ACTIVITY" | "STRIKE" | "TECHNICAL_ISSUE" | "UNKNOWN_CAUSE" | "WEATHER";
|
|
325
327
|
justification_source: "MANUAL" | "ALERT";
|
|
326
|
-
created_by?: string | undefined;
|
|
327
328
|
updated_by?: string | undefined;
|
|
328
329
|
manual_trip_id?: string | undefined;
|
|
329
330
|
} | null;
|
|
330
331
|
ride_id: string;
|
|
331
|
-
created_by?: string | undefined;
|
|
332
332
|
updated_by?: string | undefined;
|
|
333
333
|
}, {
|
|
334
334
|
_id: string;
|
|
@@ -342,15 +342,15 @@ export declare const RideAcceptanceSchema: z.ZodObject<{
|
|
|
342
342
|
justification: {
|
|
343
343
|
created_at: number;
|
|
344
344
|
updated_at: number;
|
|
345
|
-
justification_cause: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "HOLIDAY" | "MAINTENANCE" | "MEDICAL_EMERGENCY" | "OTHER_CAUSE" | "POLICE_ACTIVITY" | "STRIKE" | "
|
|
345
|
+
justification_cause: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "HOLIDAY" | "MAINTENANCE" | "MEDICAL_EMERGENCY" | "OTHER_CAUSE" | "POLICE_ACTIVITY" | "STRIKE" | "TECHNICAL_ISSUE" | "UNKNOWN_CAUSE" | "WEATHER";
|
|
346
346
|
justification_source: "MANUAL" | "ALERT";
|
|
347
|
-
created_by?: string | undefined;
|
|
347
|
+
created_by?: string | null | undefined;
|
|
348
348
|
updated_by?: string | undefined;
|
|
349
349
|
pto_message?: string | undefined;
|
|
350
350
|
manual_trip_id?: string | undefined;
|
|
351
351
|
} | null;
|
|
352
352
|
ride_id: string;
|
|
353
|
-
created_by?: string | undefined;
|
|
353
|
+
created_by?: string | null | undefined;
|
|
354
354
|
is_locked?: boolean | undefined;
|
|
355
355
|
updated_by?: string | undefined;
|
|
356
356
|
comments?: ({
|
|
@@ -359,7 +359,7 @@ export declare const RideAcceptanceSchema: z.ZodObject<{
|
|
|
359
359
|
message: string;
|
|
360
360
|
type: "note";
|
|
361
361
|
_id?: string | undefined;
|
|
362
|
-
created_by?: string | undefined;
|
|
362
|
+
created_by?: string | null | undefined;
|
|
363
363
|
updated_by?: string | undefined;
|
|
364
364
|
} | {
|
|
365
365
|
created_at: number;
|
|
@@ -367,7 +367,7 @@ export declare const RideAcceptanceSchema: z.ZodObject<{
|
|
|
367
367
|
type: "field_changed";
|
|
368
368
|
field: string;
|
|
369
369
|
_id?: string | undefined;
|
|
370
|
-
created_by?: string | undefined;
|
|
370
|
+
created_by?: string | null | undefined;
|
|
371
371
|
updated_by?: string | undefined;
|
|
372
372
|
metadata?: Record<string, unknown> | null | undefined;
|
|
373
373
|
curr_value?: any;
|
|
@@ -378,14 +378,14 @@ export declare const RideAcceptanceSchema: z.ZodObject<{
|
|
|
378
378
|
type: "crud";
|
|
379
379
|
action: "create" | "update" | "delete" | "archive" | "restore";
|
|
380
380
|
_id?: string | undefined;
|
|
381
|
-
created_by?: string | undefined;
|
|
381
|
+
created_by?: string | null | undefined;
|
|
382
382
|
updated_by?: string | undefined;
|
|
383
383
|
})[] | undefined;
|
|
384
384
|
}>;
|
|
385
385
|
export declare const CreateRideAcceptanceSchema: z.ZodObject<Omit<{
|
|
386
386
|
_id: z.ZodOptional<z.ZodString>;
|
|
387
387
|
created_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
|
|
388
|
-
created_by: z.
|
|
388
|
+
created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
389
389
|
is_locked: z.ZodDefault<z.ZodBoolean>;
|
|
390
390
|
updated_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
|
|
391
391
|
updated_by: z.ZodOptional<z.ZodString>;
|
|
@@ -403,7 +403,7 @@ export declare const CreateRideAcceptanceSchema: z.ZodObject<Omit<{
|
|
|
403
403
|
comments: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
404
404
|
_id: z.ZodOptional<z.ZodString>;
|
|
405
405
|
created_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
|
|
406
|
-
created_by: z.
|
|
406
|
+
created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
407
407
|
updated_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
|
|
408
408
|
updated_by: z.ZodOptional<z.ZodString>;
|
|
409
409
|
message: z.ZodString;
|
|
@@ -412,13 +412,13 @@ export declare const CreateRideAcceptanceSchema: z.ZodObject<Omit<{
|
|
|
412
412
|
created_at: number & {
|
|
413
413
|
__brand: "UnixTimestamp";
|
|
414
414
|
};
|
|
415
|
+
created_by: string | null;
|
|
415
416
|
updated_at: number & {
|
|
416
417
|
__brand: "UnixTimestamp";
|
|
417
418
|
};
|
|
418
419
|
message: string;
|
|
419
420
|
type: "note";
|
|
420
421
|
_id?: string | undefined;
|
|
421
|
-
created_by?: string | undefined;
|
|
422
422
|
updated_by?: string | undefined;
|
|
423
423
|
}, {
|
|
424
424
|
created_at: number;
|
|
@@ -426,12 +426,12 @@ export declare const CreateRideAcceptanceSchema: z.ZodObject<Omit<{
|
|
|
426
426
|
message: string;
|
|
427
427
|
type: "note";
|
|
428
428
|
_id?: string | undefined;
|
|
429
|
-
created_by?: string | undefined;
|
|
429
|
+
created_by?: string | null | undefined;
|
|
430
430
|
updated_by?: string | undefined;
|
|
431
431
|
}>, z.ZodObject<{
|
|
432
432
|
_id: z.ZodOptional<z.ZodString>;
|
|
433
433
|
created_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
|
|
434
|
-
created_by: z.
|
|
434
|
+
created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
435
435
|
updated_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
|
|
436
436
|
updated_by: z.ZodOptional<z.ZodString>;
|
|
437
437
|
type: z.ZodLiteral<"field_changed">;
|
|
@@ -443,13 +443,13 @@ export declare const CreateRideAcceptanceSchema: z.ZodObject<Omit<{
|
|
|
443
443
|
created_at: number & {
|
|
444
444
|
__brand: "UnixTimestamp";
|
|
445
445
|
};
|
|
446
|
+
created_by: string | null;
|
|
446
447
|
updated_at: number & {
|
|
447
448
|
__brand: "UnixTimestamp";
|
|
448
449
|
};
|
|
449
450
|
type: "field_changed";
|
|
450
451
|
field: string;
|
|
451
452
|
_id?: string | undefined;
|
|
452
|
-
created_by?: string | undefined;
|
|
453
453
|
updated_by?: string | undefined;
|
|
454
454
|
metadata?: Record<string, unknown> | null | undefined;
|
|
455
455
|
curr_value?: any;
|
|
@@ -460,7 +460,7 @@ export declare const CreateRideAcceptanceSchema: z.ZodObject<Omit<{
|
|
|
460
460
|
type: "field_changed";
|
|
461
461
|
field: string;
|
|
462
462
|
_id?: string | undefined;
|
|
463
|
-
created_by?: string | undefined;
|
|
463
|
+
created_by?: string | null | undefined;
|
|
464
464
|
updated_by?: string | undefined;
|
|
465
465
|
metadata?: Record<string, unknown> | null | undefined;
|
|
466
466
|
curr_value?: any;
|
|
@@ -468,7 +468,7 @@ export declare const CreateRideAcceptanceSchema: z.ZodObject<Omit<{
|
|
|
468
468
|
}>, z.ZodObject<{
|
|
469
469
|
_id: z.ZodOptional<z.ZodString>;
|
|
470
470
|
created_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
|
|
471
|
-
created_by: z.
|
|
471
|
+
created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
472
472
|
updated_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
|
|
473
473
|
updated_by: z.ZodOptional<z.ZodString>;
|
|
474
474
|
type: z.ZodLiteral<"crud">;
|
|
@@ -477,13 +477,13 @@ export declare const CreateRideAcceptanceSchema: z.ZodObject<Omit<{
|
|
|
477
477
|
created_at: number & {
|
|
478
478
|
__brand: "UnixTimestamp";
|
|
479
479
|
};
|
|
480
|
+
created_by: string | null;
|
|
480
481
|
updated_at: number & {
|
|
481
482
|
__brand: "UnixTimestamp";
|
|
482
483
|
};
|
|
483
484
|
type: "crud";
|
|
484
485
|
action: "create" | "update" | "delete" | "archive" | "restore";
|
|
485
486
|
_id?: string | undefined;
|
|
486
|
-
created_by?: string | undefined;
|
|
487
487
|
updated_by?: string | undefined;
|
|
488
488
|
}, {
|
|
489
489
|
created_at: number;
|
|
@@ -491,31 +491,31 @@ export declare const CreateRideAcceptanceSchema: z.ZodObject<Omit<{
|
|
|
491
491
|
type: "crud";
|
|
492
492
|
action: "create" | "update" | "delete" | "archive" | "restore";
|
|
493
493
|
_id?: string | undefined;
|
|
494
|
-
created_by?: string | undefined;
|
|
494
|
+
created_by?: string | null | undefined;
|
|
495
495
|
updated_by?: string | undefined;
|
|
496
496
|
}>]>, {
|
|
497
497
|
created_at: number & {
|
|
498
498
|
__brand: "UnixTimestamp";
|
|
499
499
|
};
|
|
500
|
+
created_by: string | null;
|
|
500
501
|
updated_at: number & {
|
|
501
502
|
__brand: "UnixTimestamp";
|
|
502
503
|
};
|
|
503
504
|
message: string;
|
|
504
505
|
type: "note";
|
|
505
506
|
_id?: string | undefined;
|
|
506
|
-
created_by?: string | undefined;
|
|
507
507
|
updated_by?: string | undefined;
|
|
508
508
|
} | {
|
|
509
509
|
created_at: number & {
|
|
510
510
|
__brand: "UnixTimestamp";
|
|
511
511
|
};
|
|
512
|
+
created_by: string | null;
|
|
512
513
|
updated_at: number & {
|
|
513
514
|
__brand: "UnixTimestamp";
|
|
514
515
|
};
|
|
515
516
|
type: "field_changed";
|
|
516
517
|
field: string;
|
|
517
518
|
_id?: string | undefined;
|
|
518
|
-
created_by?: string | undefined;
|
|
519
519
|
updated_by?: string | undefined;
|
|
520
520
|
metadata?: Record<string, unknown> | null | undefined;
|
|
521
521
|
curr_value?: any;
|
|
@@ -524,13 +524,13 @@ export declare const CreateRideAcceptanceSchema: z.ZodObject<Omit<{
|
|
|
524
524
|
created_at: number & {
|
|
525
525
|
__brand: "UnixTimestamp";
|
|
526
526
|
};
|
|
527
|
+
created_by: string | null;
|
|
527
528
|
updated_at: number & {
|
|
528
529
|
__brand: "UnixTimestamp";
|
|
529
530
|
};
|
|
530
531
|
type: "crud";
|
|
531
532
|
action: "create" | "update" | "delete" | "archive" | "restore";
|
|
532
533
|
_id?: string | undefined;
|
|
533
|
-
created_by?: string | undefined;
|
|
534
534
|
updated_by?: string | undefined;
|
|
535
535
|
}, {
|
|
536
536
|
created_at: number;
|
|
@@ -538,7 +538,7 @@ export declare const CreateRideAcceptanceSchema: z.ZodObject<Omit<{
|
|
|
538
538
|
message: string;
|
|
539
539
|
type: "note";
|
|
540
540
|
_id?: string | undefined;
|
|
541
|
-
created_by?: string | undefined;
|
|
541
|
+
created_by?: string | null | undefined;
|
|
542
542
|
updated_by?: string | undefined;
|
|
543
543
|
} | {
|
|
544
544
|
created_at: number;
|
|
@@ -546,7 +546,7 @@ export declare const CreateRideAcceptanceSchema: z.ZodObject<Omit<{
|
|
|
546
546
|
type: "field_changed";
|
|
547
547
|
field: string;
|
|
548
548
|
_id?: string | undefined;
|
|
549
|
-
created_by?: string | undefined;
|
|
549
|
+
created_by?: string | null | undefined;
|
|
550
550
|
updated_by?: string | undefined;
|
|
551
551
|
metadata?: Record<string, unknown> | null | undefined;
|
|
552
552
|
curr_value?: any;
|
|
@@ -557,18 +557,18 @@ export declare const CreateRideAcceptanceSchema: z.ZodObject<Omit<{
|
|
|
557
557
|
type: "crud";
|
|
558
558
|
action: "create" | "update" | "delete" | "archive" | "restore";
|
|
559
559
|
_id?: string | undefined;
|
|
560
|
-
created_by?: string | undefined;
|
|
560
|
+
created_by?: string | null | undefined;
|
|
561
561
|
updated_by?: string | undefined;
|
|
562
562
|
}>, "many">>;
|
|
563
563
|
justification: z.ZodNullable<z.ZodObject<Omit<{
|
|
564
564
|
_id: z.ZodString;
|
|
565
565
|
created_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
|
|
566
|
-
created_by: z.
|
|
566
|
+
created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
567
567
|
is_locked: z.ZodDefault<z.ZodBoolean>;
|
|
568
568
|
updated_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
|
|
569
569
|
updated_by: z.ZodOptional<z.ZodString>;
|
|
570
570
|
}, "_id" | "is_locked"> & {
|
|
571
|
-
justification_cause: z.ZodEnum<["ACCIDENT", "CONSTRUCTION", "DEMONSTRATION", "HOLIDAY", "MAINTENANCE", "MEDICAL_EMERGENCY", "OTHER_CAUSE", "POLICE_ACTIVITY", "STRIKE", "
|
|
571
|
+
justification_cause: z.ZodEnum<["ACCIDENT", "CONSTRUCTION", "DEMONSTRATION", "HOLIDAY", "MAINTENANCE", "MEDICAL_EMERGENCY", "OTHER_CAUSE", "POLICE_ACTIVITY", "STRIKE", "TECHNICAL_ISSUE", "UNKNOWN_CAUSE", "WEATHER"]>;
|
|
572
572
|
justification_source: z.ZodEnum<["MANUAL", "ALERT"]>;
|
|
573
573
|
manual_trip_id: z.ZodOptional<z.ZodString>;
|
|
574
574
|
pto_message: z.ZodDefault<z.ZodString>;
|
|
@@ -576,27 +576,28 @@ export declare const CreateRideAcceptanceSchema: z.ZodObject<Omit<{
|
|
|
576
576
|
created_at: number & {
|
|
577
577
|
__brand: "UnixTimestamp";
|
|
578
578
|
};
|
|
579
|
+
created_by: string | null;
|
|
579
580
|
updated_at: number & {
|
|
580
581
|
__brand: "UnixTimestamp";
|
|
581
582
|
};
|
|
582
583
|
pto_message: string;
|
|
583
|
-
justification_cause: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "HOLIDAY" | "MAINTENANCE" | "MEDICAL_EMERGENCY" | "OTHER_CAUSE" | "POLICE_ACTIVITY" | "STRIKE" | "
|
|
584
|
+
justification_cause: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "HOLIDAY" | "MAINTENANCE" | "MEDICAL_EMERGENCY" | "OTHER_CAUSE" | "POLICE_ACTIVITY" | "STRIKE" | "TECHNICAL_ISSUE" | "UNKNOWN_CAUSE" | "WEATHER";
|
|
584
585
|
justification_source: "MANUAL" | "ALERT";
|
|
585
|
-
created_by?: string | undefined;
|
|
586
586
|
updated_by?: string | undefined;
|
|
587
587
|
manual_trip_id?: string | undefined;
|
|
588
588
|
}, {
|
|
589
589
|
created_at: number;
|
|
590
590
|
updated_at: number;
|
|
591
|
-
justification_cause: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "HOLIDAY" | "MAINTENANCE" | "MEDICAL_EMERGENCY" | "OTHER_CAUSE" | "POLICE_ACTIVITY" | "STRIKE" | "
|
|
591
|
+
justification_cause: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "HOLIDAY" | "MAINTENANCE" | "MEDICAL_EMERGENCY" | "OTHER_CAUSE" | "POLICE_ACTIVITY" | "STRIKE" | "TECHNICAL_ISSUE" | "UNKNOWN_CAUSE" | "WEATHER";
|
|
592
592
|
justification_source: "MANUAL" | "ALERT";
|
|
593
|
-
created_by?: string | undefined;
|
|
593
|
+
created_by?: string | null | undefined;
|
|
594
594
|
updated_by?: string | undefined;
|
|
595
595
|
pto_message?: string | undefined;
|
|
596
596
|
manual_trip_id?: string | undefined;
|
|
597
597
|
}>>;
|
|
598
598
|
ride_id: z.ZodString;
|
|
599
599
|
}, "created_at" | "updated_at">, "strip", z.ZodTypeAny, {
|
|
600
|
+
created_by: string | null;
|
|
600
601
|
is_locked: boolean;
|
|
601
602
|
acceptance_status: "rejected" | "justification_required" | "under_review" | "accepted";
|
|
602
603
|
analysis_summary: Record<string, {
|
|
@@ -607,25 +608,25 @@ export declare const CreateRideAcceptanceSchema: z.ZodObject<Omit<{
|
|
|
607
608
|
created_at: number & {
|
|
608
609
|
__brand: "UnixTimestamp";
|
|
609
610
|
};
|
|
611
|
+
created_by: string | null;
|
|
610
612
|
updated_at: number & {
|
|
611
613
|
__brand: "UnixTimestamp";
|
|
612
614
|
};
|
|
613
615
|
message: string;
|
|
614
616
|
type: "note";
|
|
615
617
|
_id?: string | undefined;
|
|
616
|
-
created_by?: string | undefined;
|
|
617
618
|
updated_by?: string | undefined;
|
|
618
619
|
} | {
|
|
619
620
|
created_at: number & {
|
|
620
621
|
__brand: "UnixTimestamp";
|
|
621
622
|
};
|
|
623
|
+
created_by: string | null;
|
|
622
624
|
updated_at: number & {
|
|
623
625
|
__brand: "UnixTimestamp";
|
|
624
626
|
};
|
|
625
627
|
type: "field_changed";
|
|
626
628
|
field: string;
|
|
627
629
|
_id?: string | undefined;
|
|
628
|
-
created_by?: string | undefined;
|
|
629
630
|
updated_by?: string | undefined;
|
|
630
631
|
metadata?: Record<string, unknown> | null | undefined;
|
|
631
632
|
curr_value?: any;
|
|
@@ -634,32 +635,31 @@ export declare const CreateRideAcceptanceSchema: z.ZodObject<Omit<{
|
|
|
634
635
|
created_at: number & {
|
|
635
636
|
__brand: "UnixTimestamp";
|
|
636
637
|
};
|
|
638
|
+
created_by: string | null;
|
|
637
639
|
updated_at: number & {
|
|
638
640
|
__brand: "UnixTimestamp";
|
|
639
641
|
};
|
|
640
642
|
type: "crud";
|
|
641
643
|
action: "create" | "update" | "delete" | "archive" | "restore";
|
|
642
644
|
_id?: string | undefined;
|
|
643
|
-
created_by?: string | undefined;
|
|
644
645
|
updated_by?: string | undefined;
|
|
645
646
|
})[];
|
|
646
647
|
justification: {
|
|
647
648
|
created_at: number & {
|
|
648
649
|
__brand: "UnixTimestamp";
|
|
649
650
|
};
|
|
651
|
+
created_by: string | null;
|
|
650
652
|
updated_at: number & {
|
|
651
653
|
__brand: "UnixTimestamp";
|
|
652
654
|
};
|
|
653
655
|
pto_message: string;
|
|
654
|
-
justification_cause: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "HOLIDAY" | "MAINTENANCE" | "MEDICAL_EMERGENCY" | "OTHER_CAUSE" | "POLICE_ACTIVITY" | "STRIKE" | "
|
|
656
|
+
justification_cause: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "HOLIDAY" | "MAINTENANCE" | "MEDICAL_EMERGENCY" | "OTHER_CAUSE" | "POLICE_ACTIVITY" | "STRIKE" | "TECHNICAL_ISSUE" | "UNKNOWN_CAUSE" | "WEATHER";
|
|
655
657
|
justification_source: "MANUAL" | "ALERT";
|
|
656
|
-
created_by?: string | undefined;
|
|
657
658
|
updated_by?: string | undefined;
|
|
658
659
|
manual_trip_id?: string | undefined;
|
|
659
660
|
} | null;
|
|
660
661
|
ride_id: string;
|
|
661
662
|
_id?: string | undefined;
|
|
662
|
-
created_by?: string | undefined;
|
|
663
663
|
updated_by?: string | undefined;
|
|
664
664
|
}, {
|
|
665
665
|
acceptance_status: "rejected" | "justification_required" | "under_review" | "accepted";
|
|
@@ -670,16 +670,16 @@ export declare const CreateRideAcceptanceSchema: z.ZodObject<Omit<{
|
|
|
670
670
|
justification: {
|
|
671
671
|
created_at: number;
|
|
672
672
|
updated_at: number;
|
|
673
|
-
justification_cause: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "HOLIDAY" | "MAINTENANCE" | "MEDICAL_EMERGENCY" | "OTHER_CAUSE" | "POLICE_ACTIVITY" | "STRIKE" | "
|
|
673
|
+
justification_cause: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "HOLIDAY" | "MAINTENANCE" | "MEDICAL_EMERGENCY" | "OTHER_CAUSE" | "POLICE_ACTIVITY" | "STRIKE" | "TECHNICAL_ISSUE" | "UNKNOWN_CAUSE" | "WEATHER";
|
|
674
674
|
justification_source: "MANUAL" | "ALERT";
|
|
675
|
-
created_by?: string | undefined;
|
|
675
|
+
created_by?: string | null | undefined;
|
|
676
676
|
updated_by?: string | undefined;
|
|
677
677
|
pto_message?: string | undefined;
|
|
678
678
|
manual_trip_id?: string | undefined;
|
|
679
679
|
} | null;
|
|
680
680
|
ride_id: string;
|
|
681
681
|
_id?: string | undefined;
|
|
682
|
-
created_by?: string | undefined;
|
|
682
|
+
created_by?: string | null | undefined;
|
|
683
683
|
is_locked?: boolean | undefined;
|
|
684
684
|
updated_by?: string | undefined;
|
|
685
685
|
comments?: ({
|
|
@@ -688,7 +688,7 @@ export declare const CreateRideAcceptanceSchema: z.ZodObject<Omit<{
|
|
|
688
688
|
message: string;
|
|
689
689
|
type: "note";
|
|
690
690
|
_id?: string | undefined;
|
|
691
|
-
created_by?: string | undefined;
|
|
691
|
+
created_by?: string | null | undefined;
|
|
692
692
|
updated_by?: string | undefined;
|
|
693
693
|
} | {
|
|
694
694
|
created_at: number;
|
|
@@ -696,7 +696,7 @@ export declare const CreateRideAcceptanceSchema: z.ZodObject<Omit<{
|
|
|
696
696
|
type: "field_changed";
|
|
697
697
|
field: string;
|
|
698
698
|
_id?: string | undefined;
|
|
699
|
-
created_by?: string | undefined;
|
|
699
|
+
created_by?: string | null | undefined;
|
|
700
700
|
updated_by?: string | undefined;
|
|
701
701
|
metadata?: Record<string, unknown> | null | undefined;
|
|
702
702
|
curr_value?: any;
|
|
@@ -707,7 +707,7 @@ export declare const CreateRideAcceptanceSchema: z.ZodObject<Omit<{
|
|
|
707
707
|
type: "crud";
|
|
708
708
|
action: "create" | "update" | "delete" | "archive" | "restore";
|
|
709
709
|
_id?: string | undefined;
|
|
710
|
-
created_by?: string | undefined;
|
|
710
|
+
created_by?: string | null | undefined;
|
|
711
711
|
updated_by?: string | undefined;
|
|
712
712
|
})[] | undefined;
|
|
713
713
|
}>;
|
|
@@ -730,7 +730,7 @@ export declare const UpdateRideAcceptanceSchema: z.ZodObject<{
|
|
|
730
730
|
comments: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
731
731
|
_id: z.ZodOptional<z.ZodString>;
|
|
732
732
|
created_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
|
|
733
|
-
created_by: z.
|
|
733
|
+
created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
734
734
|
updated_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
|
|
735
735
|
updated_by: z.ZodOptional<z.ZodString>;
|
|
736
736
|
message: z.ZodString;
|
|
@@ -739,13 +739,13 @@ export declare const UpdateRideAcceptanceSchema: z.ZodObject<{
|
|
|
739
739
|
created_at: number & {
|
|
740
740
|
__brand: "UnixTimestamp";
|
|
741
741
|
};
|
|
742
|
+
created_by: string | null;
|
|
742
743
|
updated_at: number & {
|
|
743
744
|
__brand: "UnixTimestamp";
|
|
744
745
|
};
|
|
745
746
|
message: string;
|
|
746
747
|
type: "note";
|
|
747
748
|
_id?: string | undefined;
|
|
748
|
-
created_by?: string | undefined;
|
|
749
749
|
updated_by?: string | undefined;
|
|
750
750
|
}, {
|
|
751
751
|
created_at: number;
|
|
@@ -753,12 +753,12 @@ export declare const UpdateRideAcceptanceSchema: z.ZodObject<{
|
|
|
753
753
|
message: string;
|
|
754
754
|
type: "note";
|
|
755
755
|
_id?: string | undefined;
|
|
756
|
-
created_by?: string | undefined;
|
|
756
|
+
created_by?: string | null | undefined;
|
|
757
757
|
updated_by?: string | undefined;
|
|
758
758
|
}>, z.ZodObject<{
|
|
759
759
|
_id: z.ZodOptional<z.ZodString>;
|
|
760
760
|
created_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
|
|
761
|
-
created_by: z.
|
|
761
|
+
created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
762
762
|
updated_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
|
|
763
763
|
updated_by: z.ZodOptional<z.ZodString>;
|
|
764
764
|
type: z.ZodLiteral<"field_changed">;
|
|
@@ -770,13 +770,13 @@ export declare const UpdateRideAcceptanceSchema: z.ZodObject<{
|
|
|
770
770
|
created_at: number & {
|
|
771
771
|
__brand: "UnixTimestamp";
|
|
772
772
|
};
|
|
773
|
+
created_by: string | null;
|
|
773
774
|
updated_at: number & {
|
|
774
775
|
__brand: "UnixTimestamp";
|
|
775
776
|
};
|
|
776
777
|
type: "field_changed";
|
|
777
778
|
field: string;
|
|
778
779
|
_id?: string | undefined;
|
|
779
|
-
created_by?: string | undefined;
|
|
780
780
|
updated_by?: string | undefined;
|
|
781
781
|
metadata?: Record<string, unknown> | null | undefined;
|
|
782
782
|
curr_value?: any;
|
|
@@ -787,7 +787,7 @@ export declare const UpdateRideAcceptanceSchema: z.ZodObject<{
|
|
|
787
787
|
type: "field_changed";
|
|
788
788
|
field: string;
|
|
789
789
|
_id?: string | undefined;
|
|
790
|
-
created_by?: string | undefined;
|
|
790
|
+
created_by?: string | null | undefined;
|
|
791
791
|
updated_by?: string | undefined;
|
|
792
792
|
metadata?: Record<string, unknown> | null | undefined;
|
|
793
793
|
curr_value?: any;
|
|
@@ -795,7 +795,7 @@ export declare const UpdateRideAcceptanceSchema: z.ZodObject<{
|
|
|
795
795
|
}>, z.ZodObject<{
|
|
796
796
|
_id: z.ZodOptional<z.ZodString>;
|
|
797
797
|
created_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
|
|
798
|
-
created_by: z.
|
|
798
|
+
created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
799
799
|
updated_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
|
|
800
800
|
updated_by: z.ZodOptional<z.ZodString>;
|
|
801
801
|
type: z.ZodLiteral<"crud">;
|
|
@@ -804,13 +804,13 @@ export declare const UpdateRideAcceptanceSchema: z.ZodObject<{
|
|
|
804
804
|
created_at: number & {
|
|
805
805
|
__brand: "UnixTimestamp";
|
|
806
806
|
};
|
|
807
|
+
created_by: string | null;
|
|
807
808
|
updated_at: number & {
|
|
808
809
|
__brand: "UnixTimestamp";
|
|
809
810
|
};
|
|
810
811
|
type: "crud";
|
|
811
812
|
action: "create" | "update" | "delete" | "archive" | "restore";
|
|
812
813
|
_id?: string | undefined;
|
|
813
|
-
created_by?: string | undefined;
|
|
814
814
|
updated_by?: string | undefined;
|
|
815
815
|
}, {
|
|
816
816
|
created_at: number;
|
|
@@ -818,31 +818,31 @@ export declare const UpdateRideAcceptanceSchema: z.ZodObject<{
|
|
|
818
818
|
type: "crud";
|
|
819
819
|
action: "create" | "update" | "delete" | "archive" | "restore";
|
|
820
820
|
_id?: string | undefined;
|
|
821
|
-
created_by?: string | undefined;
|
|
821
|
+
created_by?: string | null | undefined;
|
|
822
822
|
updated_by?: string | undefined;
|
|
823
823
|
}>]>, {
|
|
824
824
|
created_at: number & {
|
|
825
825
|
__brand: "UnixTimestamp";
|
|
826
826
|
};
|
|
827
|
+
created_by: string | null;
|
|
827
828
|
updated_at: number & {
|
|
828
829
|
__brand: "UnixTimestamp";
|
|
829
830
|
};
|
|
830
831
|
message: string;
|
|
831
832
|
type: "note";
|
|
832
833
|
_id?: string | undefined;
|
|
833
|
-
created_by?: string | undefined;
|
|
834
834
|
updated_by?: string | undefined;
|
|
835
835
|
} | {
|
|
836
836
|
created_at: number & {
|
|
837
837
|
__brand: "UnixTimestamp";
|
|
838
838
|
};
|
|
839
|
+
created_by: string | null;
|
|
839
840
|
updated_at: number & {
|
|
840
841
|
__brand: "UnixTimestamp";
|
|
841
842
|
};
|
|
842
843
|
type: "field_changed";
|
|
843
844
|
field: string;
|
|
844
845
|
_id?: string | undefined;
|
|
845
|
-
created_by?: string | undefined;
|
|
846
846
|
updated_by?: string | undefined;
|
|
847
847
|
metadata?: Record<string, unknown> | null | undefined;
|
|
848
848
|
curr_value?: any;
|
|
@@ -851,13 +851,13 @@ export declare const UpdateRideAcceptanceSchema: z.ZodObject<{
|
|
|
851
851
|
created_at: number & {
|
|
852
852
|
__brand: "UnixTimestamp";
|
|
853
853
|
};
|
|
854
|
+
created_by: string | null;
|
|
854
855
|
updated_at: number & {
|
|
855
856
|
__brand: "UnixTimestamp";
|
|
856
857
|
};
|
|
857
858
|
type: "crud";
|
|
858
859
|
action: "create" | "update" | "delete" | "archive" | "restore";
|
|
859
860
|
_id?: string | undefined;
|
|
860
|
-
created_by?: string | undefined;
|
|
861
861
|
updated_by?: string | undefined;
|
|
862
862
|
}, {
|
|
863
863
|
created_at: number;
|
|
@@ -865,7 +865,7 @@ export declare const UpdateRideAcceptanceSchema: z.ZodObject<{
|
|
|
865
865
|
message: string;
|
|
866
866
|
type: "note";
|
|
867
867
|
_id?: string | undefined;
|
|
868
|
-
created_by?: string | undefined;
|
|
868
|
+
created_by?: string | null | undefined;
|
|
869
869
|
updated_by?: string | undefined;
|
|
870
870
|
} | {
|
|
871
871
|
created_at: number;
|
|
@@ -873,7 +873,7 @@ export declare const UpdateRideAcceptanceSchema: z.ZodObject<{
|
|
|
873
873
|
type: "field_changed";
|
|
874
874
|
field: string;
|
|
875
875
|
_id?: string | undefined;
|
|
876
|
-
created_by?: string | undefined;
|
|
876
|
+
created_by?: string | null | undefined;
|
|
877
877
|
updated_by?: string | undefined;
|
|
878
878
|
metadata?: Record<string, unknown> | null | undefined;
|
|
879
879
|
curr_value?: any;
|
|
@@ -884,18 +884,18 @@ export declare const UpdateRideAcceptanceSchema: z.ZodObject<{
|
|
|
884
884
|
type: "crud";
|
|
885
885
|
action: "create" | "update" | "delete" | "archive" | "restore";
|
|
886
886
|
_id?: string | undefined;
|
|
887
|
-
created_by?: string | undefined;
|
|
887
|
+
created_by?: string | null | undefined;
|
|
888
888
|
updated_by?: string | undefined;
|
|
889
889
|
}>, "many">>>;
|
|
890
890
|
justification: z.ZodOptional<z.ZodNullable<z.ZodObject<Omit<{
|
|
891
891
|
_id: z.ZodString;
|
|
892
892
|
created_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
|
|
893
|
-
created_by: z.
|
|
893
|
+
created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
894
894
|
is_locked: z.ZodDefault<z.ZodBoolean>;
|
|
895
895
|
updated_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
|
|
896
896
|
updated_by: z.ZodOptional<z.ZodString>;
|
|
897
897
|
}, "_id" | "is_locked"> & {
|
|
898
|
-
justification_cause: z.ZodEnum<["ACCIDENT", "CONSTRUCTION", "DEMONSTRATION", "HOLIDAY", "MAINTENANCE", "MEDICAL_EMERGENCY", "OTHER_CAUSE", "POLICE_ACTIVITY", "STRIKE", "
|
|
898
|
+
justification_cause: z.ZodEnum<["ACCIDENT", "CONSTRUCTION", "DEMONSTRATION", "HOLIDAY", "MAINTENANCE", "MEDICAL_EMERGENCY", "OTHER_CAUSE", "POLICE_ACTIVITY", "STRIKE", "TECHNICAL_ISSUE", "UNKNOWN_CAUSE", "WEATHER"]>;
|
|
899
899
|
justification_source: z.ZodEnum<["MANUAL", "ALERT"]>;
|
|
900
900
|
manual_trip_id: z.ZodOptional<z.ZodString>;
|
|
901
901
|
pto_message: z.ZodDefault<z.ZodString>;
|
|
@@ -903,21 +903,21 @@ export declare const UpdateRideAcceptanceSchema: z.ZodObject<{
|
|
|
903
903
|
created_at: number & {
|
|
904
904
|
__brand: "UnixTimestamp";
|
|
905
905
|
};
|
|
906
|
+
created_by: string | null;
|
|
906
907
|
updated_at: number & {
|
|
907
908
|
__brand: "UnixTimestamp";
|
|
908
909
|
};
|
|
909
910
|
pto_message: string;
|
|
910
|
-
justification_cause: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "HOLIDAY" | "MAINTENANCE" | "MEDICAL_EMERGENCY" | "OTHER_CAUSE" | "POLICE_ACTIVITY" | "STRIKE" | "
|
|
911
|
+
justification_cause: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "HOLIDAY" | "MAINTENANCE" | "MEDICAL_EMERGENCY" | "OTHER_CAUSE" | "POLICE_ACTIVITY" | "STRIKE" | "TECHNICAL_ISSUE" | "UNKNOWN_CAUSE" | "WEATHER";
|
|
911
912
|
justification_source: "MANUAL" | "ALERT";
|
|
912
|
-
created_by?: string | undefined;
|
|
913
913
|
updated_by?: string | undefined;
|
|
914
914
|
manual_trip_id?: string | undefined;
|
|
915
915
|
}, {
|
|
916
916
|
created_at: number;
|
|
917
917
|
updated_at: number;
|
|
918
|
-
justification_cause: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "HOLIDAY" | "MAINTENANCE" | "MEDICAL_EMERGENCY" | "OTHER_CAUSE" | "POLICE_ACTIVITY" | "STRIKE" | "
|
|
918
|
+
justification_cause: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "HOLIDAY" | "MAINTENANCE" | "MEDICAL_EMERGENCY" | "OTHER_CAUSE" | "POLICE_ACTIVITY" | "STRIKE" | "TECHNICAL_ISSUE" | "UNKNOWN_CAUSE" | "WEATHER";
|
|
919
919
|
justification_source: "MANUAL" | "ALERT";
|
|
920
|
-
created_by?: string | undefined;
|
|
920
|
+
created_by?: string | null | undefined;
|
|
921
921
|
updated_by?: string | undefined;
|
|
922
922
|
pto_message?: string | undefined;
|
|
923
923
|
manual_trip_id?: string | undefined;
|
|
@@ -937,25 +937,25 @@ export declare const UpdateRideAcceptanceSchema: z.ZodObject<{
|
|
|
937
937
|
created_at: number & {
|
|
938
938
|
__brand: "UnixTimestamp";
|
|
939
939
|
};
|
|
940
|
+
created_by: string | null;
|
|
940
941
|
updated_at: number & {
|
|
941
942
|
__brand: "UnixTimestamp";
|
|
942
943
|
};
|
|
943
944
|
message: string;
|
|
944
945
|
type: "note";
|
|
945
946
|
_id?: string | undefined;
|
|
946
|
-
created_by?: string | undefined;
|
|
947
947
|
updated_by?: string | undefined;
|
|
948
948
|
} | {
|
|
949
949
|
created_at: number & {
|
|
950
950
|
__brand: "UnixTimestamp";
|
|
951
951
|
};
|
|
952
|
+
created_by: string | null;
|
|
952
953
|
updated_at: number & {
|
|
953
954
|
__brand: "UnixTimestamp";
|
|
954
955
|
};
|
|
955
956
|
type: "field_changed";
|
|
956
957
|
field: string;
|
|
957
958
|
_id?: string | undefined;
|
|
958
|
-
created_by?: string | undefined;
|
|
959
959
|
updated_by?: string | undefined;
|
|
960
960
|
metadata?: Record<string, unknown> | null | undefined;
|
|
961
961
|
curr_value?: any;
|
|
@@ -964,26 +964,26 @@ export declare const UpdateRideAcceptanceSchema: z.ZodObject<{
|
|
|
964
964
|
created_at: number & {
|
|
965
965
|
__brand: "UnixTimestamp";
|
|
966
966
|
};
|
|
967
|
+
created_by: string | null;
|
|
967
968
|
updated_at: number & {
|
|
968
969
|
__brand: "UnixTimestamp";
|
|
969
970
|
};
|
|
970
971
|
type: "crud";
|
|
971
972
|
action: "create" | "update" | "delete" | "archive" | "restore";
|
|
972
973
|
_id?: string | undefined;
|
|
973
|
-
created_by?: string | undefined;
|
|
974
974
|
updated_by?: string | undefined;
|
|
975
975
|
})[] | undefined;
|
|
976
976
|
justification?: {
|
|
977
977
|
created_at: number & {
|
|
978
978
|
__brand: "UnixTimestamp";
|
|
979
979
|
};
|
|
980
|
+
created_by: string | null;
|
|
980
981
|
updated_at: number & {
|
|
981
982
|
__brand: "UnixTimestamp";
|
|
982
983
|
};
|
|
983
984
|
pto_message: string;
|
|
984
|
-
justification_cause: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "HOLIDAY" | "MAINTENANCE" | "MEDICAL_EMERGENCY" | "OTHER_CAUSE" | "POLICE_ACTIVITY" | "STRIKE" | "
|
|
985
|
+
justification_cause: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "HOLIDAY" | "MAINTENANCE" | "MEDICAL_EMERGENCY" | "OTHER_CAUSE" | "POLICE_ACTIVITY" | "STRIKE" | "TECHNICAL_ISSUE" | "UNKNOWN_CAUSE" | "WEATHER";
|
|
985
986
|
justification_source: "MANUAL" | "ALERT";
|
|
986
|
-
created_by?: string | undefined;
|
|
987
987
|
updated_by?: string | undefined;
|
|
988
988
|
manual_trip_id?: string | undefined;
|
|
989
989
|
} | null | undefined;
|
|
@@ -1004,7 +1004,7 @@ export declare const UpdateRideAcceptanceSchema: z.ZodObject<{
|
|
|
1004
1004
|
message: string;
|
|
1005
1005
|
type: "note";
|
|
1006
1006
|
_id?: string | undefined;
|
|
1007
|
-
created_by?: string | undefined;
|
|
1007
|
+
created_by?: string | null | undefined;
|
|
1008
1008
|
updated_by?: string | undefined;
|
|
1009
1009
|
} | {
|
|
1010
1010
|
created_at: number;
|
|
@@ -1012,7 +1012,7 @@ export declare const UpdateRideAcceptanceSchema: z.ZodObject<{
|
|
|
1012
1012
|
type: "field_changed";
|
|
1013
1013
|
field: string;
|
|
1014
1014
|
_id?: string | undefined;
|
|
1015
|
-
created_by?: string | undefined;
|
|
1015
|
+
created_by?: string | null | undefined;
|
|
1016
1016
|
updated_by?: string | undefined;
|
|
1017
1017
|
metadata?: Record<string, unknown> | null | undefined;
|
|
1018
1018
|
curr_value?: any;
|
|
@@ -1023,15 +1023,15 @@ export declare const UpdateRideAcceptanceSchema: z.ZodObject<{
|
|
|
1023
1023
|
type: "crud";
|
|
1024
1024
|
action: "create" | "update" | "delete" | "archive" | "restore";
|
|
1025
1025
|
_id?: string | undefined;
|
|
1026
|
-
created_by?: string | undefined;
|
|
1026
|
+
created_by?: string | null | undefined;
|
|
1027
1027
|
updated_by?: string | undefined;
|
|
1028
1028
|
})[] | undefined;
|
|
1029
1029
|
justification?: {
|
|
1030
1030
|
created_at: number;
|
|
1031
1031
|
updated_at: number;
|
|
1032
|
-
justification_cause: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "HOLIDAY" | "MAINTENANCE" | "MEDICAL_EMERGENCY" | "OTHER_CAUSE" | "POLICE_ACTIVITY" | "STRIKE" | "
|
|
1032
|
+
justification_cause: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "HOLIDAY" | "MAINTENANCE" | "MEDICAL_EMERGENCY" | "OTHER_CAUSE" | "POLICE_ACTIVITY" | "STRIKE" | "TECHNICAL_ISSUE" | "UNKNOWN_CAUSE" | "WEATHER";
|
|
1033
1033
|
justification_source: "MANUAL" | "ALERT";
|
|
1034
|
-
created_by?: string | undefined;
|
|
1034
|
+
created_by?: string | null | undefined;
|
|
1035
1035
|
updated_by?: string | undefined;
|
|
1036
1036
|
pto_message?: string | undefined;
|
|
1037
1037
|
manual_trip_id?: string | undefined;
|