@tmlmobilidade/types 20250911.1034.51 → 20250911.1425.9
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/comment.d.ts +20 -20
- package/dist/src/_common/document.d.ts +4 -4
- package/dist/src/_common/document.js +2 -2
- 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 +18 -40
- package/dist/src/_common/proposed-change.js +5 -14
- package/dist/src/agency.d.ts +19 -30
- package/dist/src/agency.js +1 -1
- package/dist/src/alert.d.ts +37 -63
- package/dist/src/alert.js +8 -48
- package/dist/src/auth/login.js +2 -8
- package/dist/src/auth/role.d.ts +15 -22
- package/dist/src/auth/role.js +1 -1
- package/dist/src/auth/session.d.ts +22 -38
- package/dist/src/auth/session.js +3 -3
- package/dist/src/auth/user.d.ts +22 -41
- package/dist/src/auth/user.js +3 -3
- package/dist/src/auth/verification-token.d.ts +22 -34
- package/dist/src/auth/verification-token.js +3 -3
- package/dist/src/gtfs.d.ts +6 -17
- package/dist/src/organization.d.ts +10 -13
- package/dist/src/organization.js +1 -1
- package/dist/src/plans/gtfs-validation.d.ts +34 -72
- 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 +43 -95
- package/dist/src/plans/plan.js +2 -6
- package/dist/src/rides/ride-audit.d.ts +27 -30
- package/dist/src/rides/ride-audit.js +1 -1
- package/dist/src/rides/ride-justification.d.ts +69 -72
- package/dist/src/rides/ride-justification.js +1 -1
- package/dist/src/rides/ride.d.ts +55 -106
- 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 +46 -97
- package/dist/src/sams/sam.js +4 -4
- package/dist/src/simplified-apex/simplified-apex-location.d.ts +18 -25
- package/dist/src/simplified-apex/simplified-apex-location.js +2 -2
- package/dist/src/simplified-apex/simplified-apex-on-board-refund.d.ts +18 -25
- 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 +28 -38
- package/dist/src/simplified-apex/simplified-apex-on-board-sale.js +3 -3
- package/dist/src/simplified-apex/simplified-apex-validation.d.ts +18 -25
- package/dist/src/simplified-apex/simplified-apex-validation.js +2 -2
- package/dist/src/stop.d.ts +133 -151
- package/dist/src/stop.js +11 -74
- package/dist/src/vehicle-event.d.ts +9 -14
- package/dist/src/vehicle-event.js +2 -2
- package/dist/src/zone.d.ts +9 -12
- package/dist/src/zone.js +1 -1
- package/package.json +1 -1
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { type UnixTimestamp } from '../_common/unix-timestamp.js';
|
|
2
1
|
import { z } from 'zod';
|
|
3
2
|
export declare const SimplifiedApexOnBoardSaleSchema: z.ZodObject<{
|
|
4
3
|
_id: z.ZodString;
|
|
5
|
-
created_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
|
|
6
|
-
created_by: z.
|
|
7
|
-
updated_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
|
|
8
|
-
updated_by: z.
|
|
4
|
+
created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
5
|
+
created_by: z.ZodOptional<z.ZodString>;
|
|
6
|
+
updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
7
|
+
updated_by: z.ZodOptional<z.ZodString>;
|
|
9
8
|
} & {
|
|
10
9
|
agency_id: z.ZodString;
|
|
11
10
|
apex_version: z.ZodString;
|
|
@@ -24,7 +23,7 @@ export declare const SimplifiedApexOnBoardSaleSchema: z.ZodObject<{
|
|
|
24
23
|
price: z.ZodNumber;
|
|
25
24
|
product_long_id: z.ZodString;
|
|
26
25
|
product_quantity: z.ZodNumber;
|
|
27
|
-
received_at: z.
|
|
26
|
+
received_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
28
27
|
stop_id: z.ZodNullable<z.ZodString>;
|
|
29
28
|
trip_id: z.ZodNullable<z.ZodString>;
|
|
30
29
|
validation_id: z.ZodNullable<z.ZodString>;
|
|
@@ -34,11 +33,9 @@ export declare const SimplifiedApexOnBoardSaleSchema: z.ZodObject<{
|
|
|
34
33
|
created_at: number & {
|
|
35
34
|
__brand: "UnixTimestamp";
|
|
36
35
|
};
|
|
37
|
-
created_by: string;
|
|
38
36
|
updated_at: number & {
|
|
39
37
|
__brand: "UnixTimestamp";
|
|
40
38
|
};
|
|
41
|
-
updated_by: string;
|
|
42
39
|
agency_id: string;
|
|
43
40
|
line_id: string | null;
|
|
44
41
|
validation_id: string | null;
|
|
@@ -51,7 +48,7 @@ export declare const SimplifiedApexOnBoardSaleSchema: z.ZodObject<{
|
|
|
51
48
|
mac_sam_serial_number: number;
|
|
52
49
|
received_at: number & {
|
|
53
50
|
__brand: "UnixTimestamp";
|
|
54
|
-
}
|
|
51
|
+
};
|
|
55
52
|
stop_id: string | null;
|
|
56
53
|
block_id: string | null;
|
|
57
54
|
card_physical_type: number;
|
|
@@ -63,6 +60,8 @@ export declare const SimplifiedApexOnBoardSaleSchema: z.ZodObject<{
|
|
|
63
60
|
product_quantity: number;
|
|
64
61
|
is_passenger: boolean;
|
|
65
62
|
on_board_refund_id: string | null;
|
|
63
|
+
created_by?: string | undefined;
|
|
64
|
+
updated_by?: string | undefined;
|
|
66
65
|
}, {
|
|
67
66
|
_id: string;
|
|
68
67
|
created_at: number;
|
|
@@ -94,37 +93,35 @@ export declare const SimplifiedApexOnBoardSaleSchema: z.ZodObject<{
|
|
|
94
93
|
}>;
|
|
95
94
|
export declare const UpdateSimplifiedApexOnBoardSaleSchema: z.ZodObject<{
|
|
96
95
|
_id: z.ZodOptional<z.ZodString>;
|
|
97
|
-
created_at: z.ZodOptional<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>>;
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
updated_by: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
96
|
+
created_at: z.ZodOptional<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>>;
|
|
97
|
+
updated_at: z.ZodOptional<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>>;
|
|
98
|
+
updated_by: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
101
99
|
agency_id: z.ZodOptional<z.ZodString>;
|
|
100
|
+
line_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
101
|
+
validation_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
102
|
+
trip_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
103
|
+
pattern_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
102
104
|
apex_version: z.ZodOptional<z.ZodString>;
|
|
105
|
+
device_id: z.ZodOptional<z.ZodString>;
|
|
106
|
+
vehicle_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
107
|
+
mac_ase_counter_value: z.ZodOptional<z.ZodNumber>;
|
|
108
|
+
mac_sam_serial_number: z.ZodOptional<z.ZodNumber>;
|
|
109
|
+
received_at: z.ZodOptional<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>>;
|
|
110
|
+
stop_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
103
111
|
block_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
104
112
|
card_physical_type: z.ZodOptional<z.ZodNumber>;
|
|
105
113
|
card_serial_number: z.ZodOptional<z.ZodString>;
|
|
106
|
-
device_id: z.ZodOptional<z.ZodString>;
|
|
107
114
|
duty_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
108
|
-
is_passenger: z.ZodOptional<z.ZodBoolean>;
|
|
109
|
-
line_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
110
|
-
mac_ase_counter_value: z.ZodOptional<z.ZodNumber>;
|
|
111
|
-
mac_sam_serial_number: z.ZodOptional<z.ZodNumber>;
|
|
112
|
-
on_board_refund_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
113
|
-
pattern_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
114
115
|
payment_method: z.ZodOptional<z.ZodNumber>;
|
|
115
116
|
price: z.ZodOptional<z.ZodNumber>;
|
|
116
117
|
product_long_id: z.ZodOptional<z.ZodString>;
|
|
117
118
|
product_quantity: z.ZodOptional<z.ZodNumber>;
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
trip_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
121
|
-
validation_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
122
|
-
vehicle_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
119
|
+
is_passenger: z.ZodOptional<z.ZodBoolean>;
|
|
120
|
+
on_board_refund_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
123
121
|
}, "strict", z.ZodTypeAny, {
|
|
124
122
|
_id?: string | undefined;
|
|
125
|
-
created_at?: UnixTimestamp | undefined;
|
|
126
|
-
|
|
127
|
-
updated_at?: UnixTimestamp | undefined;
|
|
123
|
+
created_at?: import("../_common/unix-timestamp.js").UnixTimestamp | undefined;
|
|
124
|
+
updated_at?: import("../_common/unix-timestamp.js").UnixTimestamp | undefined;
|
|
128
125
|
updated_by?: string | undefined;
|
|
129
126
|
agency_id?: string | undefined;
|
|
130
127
|
line_id?: string | null | undefined;
|
|
@@ -136,9 +133,7 @@ export declare const UpdateSimplifiedApexOnBoardSaleSchema: z.ZodObject<{
|
|
|
136
133
|
vehicle_id?: number | null | undefined;
|
|
137
134
|
mac_ase_counter_value?: number | undefined;
|
|
138
135
|
mac_sam_serial_number?: number | undefined;
|
|
139
|
-
received_at?: (
|
|
140
|
-
__brand: "UnixTimestamp";
|
|
141
|
-
} & z.BRAND<"UnixTimestamp">) | undefined;
|
|
136
|
+
received_at?: import("../_common/unix-timestamp.js").UnixTimestamp | undefined;
|
|
142
137
|
stop_id?: string | null | undefined;
|
|
143
138
|
block_id?: string | null | undefined;
|
|
144
139
|
card_physical_type?: number | undefined;
|
|
@@ -153,7 +148,6 @@ export declare const UpdateSimplifiedApexOnBoardSaleSchema: z.ZodObject<{
|
|
|
153
148
|
}, {
|
|
154
149
|
_id?: string | undefined;
|
|
155
150
|
created_at?: number | undefined;
|
|
156
|
-
created_by?: string | undefined;
|
|
157
151
|
updated_at?: number | undefined;
|
|
158
152
|
updated_by?: string | undefined;
|
|
159
153
|
agency_id?: string | undefined;
|
|
@@ -186,9 +180,5 @@ export declare const UpdateSimplifiedApexOnBoardSaleSchema: z.ZodObject<{
|
|
|
186
180
|
* for on-board ticket sales inside vehicles only. Sales of tickets when inside vehicles also generate a validation transaction.
|
|
187
181
|
* Sales can be refunded, and refunds are also APEX transactions of type 3.
|
|
188
182
|
*/
|
|
189
|
-
export
|
|
190
|
-
|
|
191
|
-
received_at: UnixTimestamp;
|
|
192
|
-
updated_at: UnixTimestamp;
|
|
193
|
-
}
|
|
194
|
-
export type UpdateSimplifiedApexOnBoardSaleDto = Partial<SimplifiedApexOnBoardSale>;
|
|
183
|
+
export type SimplifiedApexOnBoardSale = z.infer<typeof SimplifiedApexOnBoardSaleSchema>;
|
|
184
|
+
export type UpdateSimplifiedApexOnBoardSaleDto = z.infer<typeof UpdateSimplifiedApexOnBoardSaleSchema>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* * */
|
|
2
2
|
import { DocumentSchema } from '../_common/document.js';
|
|
3
|
-
import {
|
|
3
|
+
import { unixTimeStampSchema } from '../_common/unix-timestamp.js';
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
/* * */
|
|
6
6
|
export const SimplifiedApexOnBoardSaleSchema = DocumentSchema.extend({
|
|
@@ -21,10 +21,10 @@ export const SimplifiedApexOnBoardSaleSchema = DocumentSchema.extend({
|
|
|
21
21
|
price: z.number(),
|
|
22
22
|
product_long_id: z.string(),
|
|
23
23
|
product_quantity: z.number(),
|
|
24
|
-
received_at:
|
|
24
|
+
received_at: unixTimeStampSchema,
|
|
25
25
|
stop_id: z.string().nullable(),
|
|
26
26
|
trip_id: z.string().nullable(),
|
|
27
27
|
validation_id: z.string().nullable(),
|
|
28
28
|
vehicle_id: z.number().nullable(),
|
|
29
29
|
}).strict();
|
|
30
|
-
export const UpdateSimplifiedApexOnBoardSaleSchema = SimplifiedApexOnBoardSaleSchema.partial();
|
|
30
|
+
export const UpdateSimplifiedApexOnBoardSaleSchema = SimplifiedApexOnBoardSaleSchema.omit({ created_by: true }).partial();
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { type UnixTimestamp } from '../_common/unix-timestamp.js';
|
|
2
1
|
import { z } from 'zod';
|
|
3
2
|
export declare const ApexValidationStatus: {
|
|
4
3
|
/**
|
|
@@ -146,10 +145,10 @@ export declare const ApexValidationStatusSchema: z.ZodNativeEnum<{
|
|
|
146
145
|
}>;
|
|
147
146
|
export declare const SimplifiedApexValidationSchema: z.ZodObject<{
|
|
148
147
|
_id: z.ZodString;
|
|
149
|
-
created_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
|
|
150
|
-
created_by: z.
|
|
151
|
-
updated_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
|
|
152
|
-
updated_by: z.
|
|
148
|
+
created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
149
|
+
created_by: z.ZodOptional<z.ZodString>;
|
|
150
|
+
updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
151
|
+
updated_by: z.ZodOptional<z.ZodString>;
|
|
153
152
|
} & {
|
|
154
153
|
agency_id: z.ZodString;
|
|
155
154
|
apex_version: z.ZodString;
|
|
@@ -165,7 +164,7 @@ export declare const SimplifiedApexValidationSchema: z.ZodObject<{
|
|
|
165
164
|
on_board_sale_id: z.ZodNullable<z.ZodString>;
|
|
166
165
|
pattern_id: z.ZodString;
|
|
167
166
|
product_id: z.ZodString;
|
|
168
|
-
received_at: z.
|
|
167
|
+
received_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
169
168
|
stop_id: z.ZodString;
|
|
170
169
|
trip_id: z.ZodString;
|
|
171
170
|
units_qty: z.ZodNullable<z.ZodNumber>;
|
|
@@ -247,11 +246,9 @@ export declare const SimplifiedApexValidationSchema: z.ZodObject<{
|
|
|
247
246
|
created_at: number & {
|
|
248
247
|
__brand: "UnixTimestamp";
|
|
249
248
|
};
|
|
250
|
-
created_by: string;
|
|
251
249
|
updated_at: number & {
|
|
252
250
|
__brand: "UnixTimestamp";
|
|
253
251
|
};
|
|
254
|
-
updated_by: string;
|
|
255
252
|
agency_id: string;
|
|
256
253
|
line_id: string;
|
|
257
254
|
trip_id: string;
|
|
@@ -263,7 +260,7 @@ export declare const SimplifiedApexValidationSchema: z.ZodObject<{
|
|
|
263
260
|
mac_sam_serial_number: number;
|
|
264
261
|
received_at: number & {
|
|
265
262
|
__brand: "UnixTimestamp";
|
|
266
|
-
}
|
|
263
|
+
};
|
|
267
264
|
stop_id: string;
|
|
268
265
|
card_serial_number: string;
|
|
269
266
|
on_board_sale_id: string | null;
|
|
@@ -274,6 +271,8 @@ export declare const SimplifiedApexValidationSchema: z.ZodObject<{
|
|
|
274
271
|
product_id: string;
|
|
275
272
|
units_qty: number | null;
|
|
276
273
|
validation_status: 0 | 1 | 2 | 3 | 4 | 5 | 12 | 11 | 8 | 10 | 6 | 7 | 9 | 13;
|
|
274
|
+
created_by?: string | undefined;
|
|
275
|
+
updated_by?: string | undefined;
|
|
277
276
|
}, {
|
|
278
277
|
_id: string;
|
|
279
278
|
created_at: number;
|
|
@@ -303,10 +302,10 @@ export declare const SimplifiedApexValidationSchema: z.ZodObject<{
|
|
|
303
302
|
}>;
|
|
304
303
|
export declare const UpdateSimplifiedApexValidationSchema: z.ZodObject<{
|
|
305
304
|
_id: z.ZodOptional<z.ZodString>;
|
|
306
|
-
created_at: z.ZodOptional<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>>;
|
|
307
|
-
created_by: z.ZodOptional<z.
|
|
308
|
-
updated_at: z.ZodOptional<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>>;
|
|
309
|
-
updated_by: z.ZodOptional<z.
|
|
305
|
+
created_at: z.ZodOptional<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>>;
|
|
306
|
+
created_by: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
307
|
+
updated_at: z.ZodOptional<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>>;
|
|
308
|
+
updated_by: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
310
309
|
agency_id: z.ZodOptional<z.ZodString>;
|
|
311
310
|
apex_version: z.ZodOptional<z.ZodString>;
|
|
312
311
|
card_serial_number: z.ZodOptional<z.ZodString>;
|
|
@@ -321,7 +320,7 @@ export declare const UpdateSimplifiedApexValidationSchema: z.ZodObject<{
|
|
|
321
320
|
on_board_sale_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
322
321
|
pattern_id: z.ZodOptional<z.ZodString>;
|
|
323
322
|
product_id: z.ZodOptional<z.ZodString>;
|
|
324
|
-
received_at: z.ZodOptional<z.
|
|
323
|
+
received_at: z.ZodOptional<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>>;
|
|
325
324
|
stop_id: z.ZodOptional<z.ZodString>;
|
|
326
325
|
trip_id: z.ZodOptional<z.ZodString>;
|
|
327
326
|
units_qty: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -400,9 +399,9 @@ export declare const UpdateSimplifiedApexValidationSchema: z.ZodObject<{
|
|
|
400
399
|
vehicle_id: z.ZodOptional<z.ZodNumber>;
|
|
401
400
|
}, "strict", z.ZodTypeAny, {
|
|
402
401
|
_id?: string | undefined;
|
|
403
|
-
created_at?: UnixTimestamp | undefined;
|
|
402
|
+
created_at?: import("../_common/unix-timestamp.js").UnixTimestamp | undefined;
|
|
404
403
|
created_by?: string | undefined;
|
|
405
|
-
updated_at?: UnixTimestamp | undefined;
|
|
404
|
+
updated_at?: import("../_common/unix-timestamp.js").UnixTimestamp | undefined;
|
|
406
405
|
updated_by?: string | undefined;
|
|
407
406
|
agency_id?: string | undefined;
|
|
408
407
|
line_id?: string | undefined;
|
|
@@ -413,9 +412,7 @@ export declare const UpdateSimplifiedApexValidationSchema: z.ZodObject<{
|
|
|
413
412
|
vehicle_id?: number | undefined;
|
|
414
413
|
mac_ase_counter_value?: number | undefined;
|
|
415
414
|
mac_sam_serial_number?: number | undefined;
|
|
416
|
-
received_at?: (
|
|
417
|
-
__brand: "UnixTimestamp";
|
|
418
|
-
} & z.BRAND<"UnixTimestamp">) | undefined;
|
|
415
|
+
received_at?: import("../_common/unix-timestamp.js").UnixTimestamp | undefined;
|
|
419
416
|
stop_id?: string | undefined;
|
|
420
417
|
card_serial_number?: string | undefined;
|
|
421
418
|
on_board_sale_id?: string | null | undefined;
|
|
@@ -460,12 +457,8 @@ export declare const UpdateSimplifiedApexValidationSchema: z.ZodObject<{
|
|
|
460
457
|
* or not, and with which conditions. A validation also contains information about the card holder's card, the vehicle,
|
|
461
458
|
* the validator machine, the route, and the time and location of the validation.
|
|
462
459
|
*/
|
|
463
|
-
export
|
|
464
|
-
|
|
465
|
-
received_at: UnixTimestamp;
|
|
466
|
-
updated_at: UnixTimestamp;
|
|
467
|
-
}
|
|
468
|
-
export type UpdateSimplifiedApexValidationDto = Partial<SimplifiedApexValidation>;
|
|
460
|
+
export type SimplifiedApexValidation = z.infer<typeof SimplifiedApexValidationSchema>;
|
|
461
|
+
export type UpdateSimplifiedApexValidationDto = z.infer<typeof UpdateSimplifiedApexValidationSchema>;
|
|
469
462
|
/**
|
|
470
463
|
* Validation statuses that are considered valid for the card holder to travel.
|
|
471
464
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* * */
|
|
2
2
|
import { DocumentSchema } from '../_common/document.js';
|
|
3
|
-
import {
|
|
3
|
+
import { unixTimeStampSchema } from '../_common/unix-timestamp.js';
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
/* * */
|
|
6
6
|
export const ApexValidationStatus = {
|
|
@@ -92,7 +92,7 @@ export const SimplifiedApexValidationSchema = DocumentSchema.extend({
|
|
|
92
92
|
on_board_sale_id: z.string().nullable(),
|
|
93
93
|
pattern_id: z.string(),
|
|
94
94
|
product_id: z.string(),
|
|
95
|
-
received_at:
|
|
95
|
+
received_at: unixTimeStampSchema,
|
|
96
96
|
stop_id: z.string(),
|
|
97
97
|
trip_id: z.string(),
|
|
98
98
|
units_qty: z.number().nullable(),
|