@tmlmobilidade/types 20260326.2139.30 → 20260327.0.15
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.
|
@@ -143,18 +143,13 @@ export declare const ApexValidationStatusSchema: z.ZodNativeEnum<{
|
|
|
143
143
|
*/
|
|
144
144
|
readonly _13_MaxValue: 13;
|
|
145
145
|
}>;
|
|
146
|
-
export declare const SimplifiedApexValidationSchema: z.ZodObject<
|
|
146
|
+
export declare const SimplifiedApexValidationSchema: z.ZodObject<{
|
|
147
147
|
_id: z.ZodString;
|
|
148
|
-
created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
149
|
-
created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
150
|
-
is_locked: z.ZodDefault<z.ZodBoolean>;
|
|
151
|
-
updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
152
|
-
updated_by: z.ZodOptional<z.ZodString>;
|
|
153
|
-
}, "created_by" | "is_locked" | "updated_by"> & {
|
|
154
148
|
agency_id: z.ZodString;
|
|
155
149
|
apex_version: z.ZodString;
|
|
156
150
|
card_serial_number: z.ZodString;
|
|
157
151
|
category: z.ZodEnum<["prepaid", "subscription", "on_board_sale"]>;
|
|
152
|
+
created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
158
153
|
device_id: z.ZodString;
|
|
159
154
|
event_type: z.ZodNumber;
|
|
160
155
|
is_passenger: z.ZodBoolean;
|
|
@@ -169,6 +164,7 @@ export declare const SimplifiedApexValidationSchema: z.ZodObject<Omit<{
|
|
|
169
164
|
stop_id: z.ZodString;
|
|
170
165
|
trip_id: z.ZodString;
|
|
171
166
|
units_qty: z.ZodNullable<z.ZodNumber>;
|
|
167
|
+
updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
172
168
|
validation_status: z.ZodNativeEnum<{
|
|
173
169
|
/**
|
|
174
170
|
* VALID:
|
|
@@ -299,12 +295,11 @@ export declare const SimplifiedApexValidationSchema: z.ZodObject<Omit<{
|
|
|
299
295
|
}>;
|
|
300
296
|
export declare const UpdateSimplifiedApexValidationSchema: z.ZodObject<{
|
|
301
297
|
_id: z.ZodOptional<z.ZodString>;
|
|
302
|
-
created_at: z.ZodOptional<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>>;
|
|
303
|
-
updated_at: z.ZodOptional<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>>;
|
|
304
298
|
agency_id: z.ZodOptional<z.ZodString>;
|
|
305
299
|
apex_version: z.ZodOptional<z.ZodString>;
|
|
306
300
|
card_serial_number: z.ZodOptional<z.ZodString>;
|
|
307
301
|
category: z.ZodOptional<z.ZodEnum<["prepaid", "subscription", "on_board_sale"]>>;
|
|
302
|
+
created_at: z.ZodOptional<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>>;
|
|
308
303
|
device_id: z.ZodOptional<z.ZodString>;
|
|
309
304
|
event_type: z.ZodOptional<z.ZodNumber>;
|
|
310
305
|
is_passenger: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -319,6 +314,7 @@ export declare const UpdateSimplifiedApexValidationSchema: z.ZodObject<{
|
|
|
319
314
|
stop_id: z.ZodOptional<z.ZodString>;
|
|
320
315
|
trip_id: z.ZodOptional<z.ZodString>;
|
|
321
316
|
units_qty: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
317
|
+
updated_at: z.ZodOptional<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>>;
|
|
322
318
|
validation_status: z.ZodOptional<z.ZodNativeEnum<{
|
|
323
319
|
/**
|
|
324
320
|
* VALID:
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/* * */
|
|
2
|
-
import { DocumentSchema } from '../_common/document.js';
|
|
3
2
|
import { UnixTimeStampSchema } from '../_common/unix-timestamp.js';
|
|
4
3
|
import { z } from 'zod';
|
|
5
4
|
/* * */
|
|
@@ -77,13 +76,13 @@ export const ApexValidationStatus = {
|
|
|
77
76
|
};
|
|
78
77
|
export const ApexValidationStatusSchema = z.nativeEnum(ApexValidationStatus);
|
|
79
78
|
/* * */
|
|
80
|
-
export const SimplifiedApexValidationSchema =
|
|
81
|
-
.
|
|
82
|
-
.extend({
|
|
79
|
+
export const SimplifiedApexValidationSchema = z.object({
|
|
80
|
+
_id: z.string(),
|
|
83
81
|
agency_id: z.string(),
|
|
84
82
|
apex_version: z.string(),
|
|
85
83
|
card_serial_number: z.string(),
|
|
86
84
|
category: z.enum(['prepaid', 'subscription', 'on_board_sale']),
|
|
85
|
+
created_at: UnixTimeStampSchema,
|
|
87
86
|
device_id: z.string(),
|
|
88
87
|
event_type: z.number(),
|
|
89
88
|
is_passenger: z.boolean(),
|
|
@@ -98,6 +97,7 @@ export const SimplifiedApexValidationSchema = DocumentSchema
|
|
|
98
97
|
stop_id: z.string(),
|
|
99
98
|
trip_id: z.string(),
|
|
100
99
|
units_qty: z.number().nullable(),
|
|
100
|
+
updated_at: UnixTimeStampSchema,
|
|
101
101
|
validation_status: ApexValidationStatusSchema,
|
|
102
102
|
vehicle_id: z.number(),
|
|
103
103
|
});
|
|
@@ -7,8 +7,8 @@ export const SimplifiedVehicleEventSchema = z.object({
|
|
|
7
7
|
_id: z.string(),
|
|
8
8
|
agency_id: z.string(),
|
|
9
9
|
created_at: UnixTimeStampSchema,
|
|
10
|
-
latitude: z.number(),
|
|
11
|
-
longitude: z.number(),
|
|
10
|
+
latitude: z.number().min(-90).max(90),
|
|
11
|
+
longitude: z.number().min(-180).max(180),
|
|
12
12
|
received_at: UnixTimeStampSchema,
|
|
13
13
|
trip_id: z.string(),
|
|
14
14
|
vehicle_id: z.string(),
|