@tmlmobilidade/types 20250909.1559.44 → 20250910.1526.7
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 +247 -16
- package/dist/src/_common/comment.js +36 -5
- package/dist/src/_common/document.d.ts +14 -8
- package/dist/src/_common/document.js +5 -3
- package/dist/src/_common/proposed-change.d.ts +37 -19
- package/dist/src/_common/unix-timestamp.d.ts +1 -1
- package/dist/src/_common/unix-timestamp.js +1 -2
- package/dist/src/agency.d.ts +30 -12
- package/dist/src/alert.d.ts +52 -59
- package/dist/src/auth/role.d.ts +30 -12
- package/dist/src/auth/session.d.ts +30 -12
- package/dist/src/auth/user.d.ts +30 -12
- package/dist/src/auth/verification-token.d.ts +30 -12
- package/dist/src/file.d.ts +23 -23
- package/dist/src/organization.d.ts +30 -12
- package/dist/src/plans/gtfs-validation.d.ts +30 -12
- package/dist/src/plans/plan.d.ts +30 -12
- package/dist/src/rides/index.d.ts +2 -1
- package/dist/src/rides/index.js +2 -1
- package/dist/src/rides/ride-audit.d.ts +729 -0
- package/dist/src/rides/ride-audit.js +12 -0
- package/dist/src/rides/ride-justification.d.ts +959 -0
- package/dist/src/rides/ride-justification.js +64 -0
- package/dist/src/rides/ride-overrides.d.ts +9 -0
- package/dist/src/rides/ride-overrides.js +6 -0
- package/dist/src/rides/ride.d.ts +38 -20
- package/dist/src/sams/sam.d.ts +30 -12
- package/dist/src/simplified-apex/simplified-apex-location.d.ts +32 -24
- package/dist/src/simplified-apex/simplified-apex-on-board-refund.d.ts +32 -24
- package/dist/src/simplified-apex/simplified-apex-on-board-sale.d.ts +32 -24
- package/dist/src/simplified-apex/simplified-apex-validation.d.ts +36 -28
- package/dist/src/stop.d.ts +713 -188
- package/dist/src/vehicle-event.d.ts +18 -12
- package/dist/src/zone.d.ts +24 -6
- package/package.json +1 -1
- package/dist/src/rides/ride-annotation.d.ts +0 -579
- package/dist/src/rides/ride-annotation.js +0 -34
|
@@ -2,8 +2,10 @@ import { type UnixTimestamp } from '../_common/unix-timestamp.js';
|
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
export declare const SimplifiedApexOnBoardSaleSchema: z.ZodObject<{
|
|
4
4
|
_id: z.ZodString;
|
|
5
|
-
created_at: z.
|
|
6
|
-
|
|
5
|
+
created_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
|
|
6
|
+
created_by: z.ZodDefault<z.ZodString>;
|
|
7
|
+
updated_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
|
|
8
|
+
updated_by: z.ZodDefault<z.ZodString>;
|
|
7
9
|
} & {
|
|
8
10
|
agency_id: z.ZodString;
|
|
9
11
|
apex_version: z.ZodString;
|
|
@@ -29,11 +31,19 @@ export declare const SimplifiedApexOnBoardSaleSchema: z.ZodObject<{
|
|
|
29
31
|
vehicle_id: z.ZodNullable<z.ZodNumber>;
|
|
30
32
|
}, "strict", z.ZodTypeAny, {
|
|
31
33
|
_id: string;
|
|
34
|
+
created_at: number & {
|
|
35
|
+
__brand: "UnixTimestamp";
|
|
36
|
+
};
|
|
37
|
+
created_by: string;
|
|
38
|
+
updated_at: number & {
|
|
39
|
+
__brand: "UnixTimestamp";
|
|
40
|
+
};
|
|
41
|
+
updated_by: string;
|
|
32
42
|
agency_id: string;
|
|
33
43
|
line_id: string | null;
|
|
34
44
|
validation_id: string | null;
|
|
35
|
-
trip_id: string | null;
|
|
36
45
|
pattern_id: string | null;
|
|
46
|
+
trip_id: string | null;
|
|
37
47
|
apex_version: string;
|
|
38
48
|
device_id: string;
|
|
39
49
|
vehicle_id: number | null;
|
|
@@ -53,19 +63,15 @@ export declare const SimplifiedApexOnBoardSaleSchema: z.ZodObject<{
|
|
|
53
63
|
product_quantity: number;
|
|
54
64
|
is_passenger: boolean;
|
|
55
65
|
on_board_refund_id: string | null;
|
|
56
|
-
created_at?: (number & {
|
|
57
|
-
__brand: "UnixTimestamp";
|
|
58
|
-
} & z.BRAND<"UnixTimestamp">) | null | undefined;
|
|
59
|
-
updated_at?: (number & {
|
|
60
|
-
__brand: "UnixTimestamp";
|
|
61
|
-
} & z.BRAND<"UnixTimestamp">) | null | undefined;
|
|
62
66
|
}, {
|
|
63
67
|
_id: string;
|
|
68
|
+
created_at: number;
|
|
69
|
+
updated_at: number;
|
|
64
70
|
agency_id: string;
|
|
65
71
|
line_id: string | null;
|
|
66
72
|
validation_id: string | null;
|
|
67
|
-
trip_id: string | null;
|
|
68
73
|
pattern_id: string | null;
|
|
74
|
+
trip_id: string | null;
|
|
69
75
|
apex_version: string;
|
|
70
76
|
device_id: string;
|
|
71
77
|
vehicle_id: number | null;
|
|
@@ -83,13 +89,15 @@ export declare const SimplifiedApexOnBoardSaleSchema: z.ZodObject<{
|
|
|
83
89
|
product_quantity: number;
|
|
84
90
|
is_passenger: boolean;
|
|
85
91
|
on_board_refund_id: string | null;
|
|
86
|
-
|
|
87
|
-
|
|
92
|
+
created_by?: string | undefined;
|
|
93
|
+
updated_by?: string | undefined;
|
|
88
94
|
}>;
|
|
89
95
|
export declare const UpdateSimplifiedApexOnBoardSaleSchema: z.ZodObject<{
|
|
90
96
|
_id: z.ZodOptional<z.ZodString>;
|
|
91
|
-
created_at: z.ZodOptional<z.
|
|
92
|
-
|
|
97
|
+
created_at: z.ZodOptional<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>>;
|
|
98
|
+
created_by: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
99
|
+
updated_at: z.ZodOptional<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>>;
|
|
100
|
+
updated_by: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
93
101
|
agency_id: z.ZodOptional<z.ZodString>;
|
|
94
102
|
apex_version: z.ZodOptional<z.ZodString>;
|
|
95
103
|
block_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -114,17 +122,15 @@ export declare const UpdateSimplifiedApexOnBoardSaleSchema: z.ZodObject<{
|
|
|
114
122
|
vehicle_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
115
123
|
}, "strict", z.ZodTypeAny, {
|
|
116
124
|
_id?: string | undefined;
|
|
117
|
-
created_at?:
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
__brand: "UnixTimestamp";
|
|
122
|
-
} & z.BRAND<"UnixTimestamp">) | null | undefined;
|
|
125
|
+
created_at?: UnixTimestamp | undefined;
|
|
126
|
+
created_by?: string | undefined;
|
|
127
|
+
updated_at?: UnixTimestamp | undefined;
|
|
128
|
+
updated_by?: string | undefined;
|
|
123
129
|
agency_id?: string | undefined;
|
|
124
130
|
line_id?: string | null | undefined;
|
|
125
131
|
validation_id?: string | null | undefined;
|
|
126
|
-
trip_id?: string | null | undefined;
|
|
127
132
|
pattern_id?: string | null | undefined;
|
|
133
|
+
trip_id?: string | null | undefined;
|
|
128
134
|
apex_version?: string | undefined;
|
|
129
135
|
device_id?: string | undefined;
|
|
130
136
|
vehicle_id?: number | null | undefined;
|
|
@@ -146,13 +152,15 @@ export declare const UpdateSimplifiedApexOnBoardSaleSchema: z.ZodObject<{
|
|
|
146
152
|
on_board_refund_id?: string | null | undefined;
|
|
147
153
|
}, {
|
|
148
154
|
_id?: string | undefined;
|
|
149
|
-
created_at?: number |
|
|
150
|
-
|
|
155
|
+
created_at?: number | undefined;
|
|
156
|
+
created_by?: string | undefined;
|
|
157
|
+
updated_at?: number | undefined;
|
|
158
|
+
updated_by?: string | undefined;
|
|
151
159
|
agency_id?: string | undefined;
|
|
152
160
|
line_id?: string | null | undefined;
|
|
153
161
|
validation_id?: string | null | undefined;
|
|
154
|
-
trip_id?: string | null | undefined;
|
|
155
162
|
pattern_id?: string | null | undefined;
|
|
163
|
+
trip_id?: string | null | undefined;
|
|
156
164
|
apex_version?: string | undefined;
|
|
157
165
|
device_id?: string | undefined;
|
|
158
166
|
vehicle_id?: number | null | undefined;
|
|
@@ -146,8 +146,10 @@ export declare const ApexValidationStatusSchema: z.ZodNativeEnum<{
|
|
|
146
146
|
}>;
|
|
147
147
|
export declare const SimplifiedApexValidationSchema: z.ZodObject<{
|
|
148
148
|
_id: z.ZodString;
|
|
149
|
-
created_at: z.
|
|
150
|
-
|
|
149
|
+
created_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
|
|
150
|
+
created_by: z.ZodDefault<z.ZodString>;
|
|
151
|
+
updated_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
|
|
152
|
+
updated_by: z.ZodDefault<z.ZodString>;
|
|
151
153
|
} & {
|
|
152
154
|
agency_id: z.ZodString;
|
|
153
155
|
apex_version: z.ZodString;
|
|
@@ -242,10 +244,18 @@ export declare const SimplifiedApexValidationSchema: z.ZodObject<{
|
|
|
242
244
|
vehicle_id: z.ZodNumber;
|
|
243
245
|
}, "strict", z.ZodTypeAny, {
|
|
244
246
|
_id: string;
|
|
247
|
+
created_at: number & {
|
|
248
|
+
__brand: "UnixTimestamp";
|
|
249
|
+
};
|
|
250
|
+
created_by: string;
|
|
251
|
+
updated_at: number & {
|
|
252
|
+
__brand: "UnixTimestamp";
|
|
253
|
+
};
|
|
254
|
+
updated_by: string;
|
|
245
255
|
agency_id: string;
|
|
246
256
|
line_id: string;
|
|
247
|
-
trip_id: string;
|
|
248
257
|
pattern_id: string;
|
|
258
|
+
trip_id: string;
|
|
249
259
|
apex_version: string;
|
|
250
260
|
device_id: string;
|
|
251
261
|
vehicle_id: number;
|
|
@@ -263,19 +273,15 @@ export declare const SimplifiedApexValidationSchema: z.ZodObject<{
|
|
|
263
273
|
event_type: number;
|
|
264
274
|
product_id: string;
|
|
265
275
|
units_qty: number | null;
|
|
266
|
-
validation_status: 0 | 1 | 2 | 3 |
|
|
267
|
-
created_at?: (number & {
|
|
268
|
-
__brand: "UnixTimestamp";
|
|
269
|
-
} & z.BRAND<"UnixTimestamp">) | null | undefined;
|
|
270
|
-
updated_at?: (number & {
|
|
271
|
-
__brand: "UnixTimestamp";
|
|
272
|
-
} & z.BRAND<"UnixTimestamp">) | null | undefined;
|
|
276
|
+
validation_status: 0 | 1 | 2 | 3 | 4 | 5 | 12 | 11 | 8 | 10 | 6 | 7 | 9 | 13;
|
|
273
277
|
}, {
|
|
274
278
|
_id: string;
|
|
279
|
+
created_at: number;
|
|
280
|
+
updated_at: number;
|
|
275
281
|
agency_id: string;
|
|
276
282
|
line_id: string;
|
|
277
|
-
trip_id: string;
|
|
278
283
|
pattern_id: string;
|
|
284
|
+
trip_id: string;
|
|
279
285
|
apex_version: string;
|
|
280
286
|
device_id: string;
|
|
281
287
|
vehicle_id: number;
|
|
@@ -291,14 +297,16 @@ export declare const SimplifiedApexValidationSchema: z.ZodObject<{
|
|
|
291
297
|
event_type: number;
|
|
292
298
|
product_id: string;
|
|
293
299
|
units_qty: number | null;
|
|
294
|
-
validation_status: 0 | 1 | 2 | 3 |
|
|
295
|
-
|
|
296
|
-
|
|
300
|
+
validation_status: 0 | 1 | 2 | 3 | 4 | 5 | 12 | 11 | 8 | 10 | 6 | 7 | 9 | 13;
|
|
301
|
+
created_by?: string | undefined;
|
|
302
|
+
updated_by?: string | undefined;
|
|
297
303
|
}>;
|
|
298
304
|
export declare const UpdateSimplifiedApexValidationSchema: z.ZodObject<{
|
|
299
305
|
_id: z.ZodOptional<z.ZodString>;
|
|
300
|
-
created_at: z.ZodOptional<z.
|
|
301
|
-
|
|
306
|
+
created_at: z.ZodOptional<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>>;
|
|
307
|
+
created_by: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
308
|
+
updated_at: z.ZodOptional<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>>;
|
|
309
|
+
updated_by: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
302
310
|
agency_id: z.ZodOptional<z.ZodString>;
|
|
303
311
|
apex_version: z.ZodOptional<z.ZodString>;
|
|
304
312
|
card_serial_number: z.ZodOptional<z.ZodString>;
|
|
@@ -392,16 +400,14 @@ export declare const UpdateSimplifiedApexValidationSchema: z.ZodObject<{
|
|
|
392
400
|
vehicle_id: z.ZodOptional<z.ZodNumber>;
|
|
393
401
|
}, "strict", z.ZodTypeAny, {
|
|
394
402
|
_id?: string | undefined;
|
|
395
|
-
created_at?:
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
__brand: "UnixTimestamp";
|
|
400
|
-
} & z.BRAND<"UnixTimestamp">) | null | undefined;
|
|
403
|
+
created_at?: UnixTimestamp | undefined;
|
|
404
|
+
created_by?: string | undefined;
|
|
405
|
+
updated_at?: UnixTimestamp | undefined;
|
|
406
|
+
updated_by?: string | undefined;
|
|
401
407
|
agency_id?: string | undefined;
|
|
402
408
|
line_id?: string | undefined;
|
|
403
|
-
trip_id?: string | undefined;
|
|
404
409
|
pattern_id?: string | undefined;
|
|
410
|
+
trip_id?: string | undefined;
|
|
405
411
|
apex_version?: string | undefined;
|
|
406
412
|
device_id?: string | undefined;
|
|
407
413
|
vehicle_id?: number | undefined;
|
|
@@ -419,15 +425,17 @@ export declare const UpdateSimplifiedApexValidationSchema: z.ZodObject<{
|
|
|
419
425
|
event_type?: number | undefined;
|
|
420
426
|
product_id?: string | undefined;
|
|
421
427
|
units_qty?: number | null | undefined;
|
|
422
|
-
validation_status?: 0 | 1 | 2 | 3 |
|
|
428
|
+
validation_status?: 0 | 1 | 2 | 3 | 4 | 5 | 12 | 11 | 8 | 10 | 6 | 7 | 9 | 13 | undefined;
|
|
423
429
|
}, {
|
|
424
430
|
_id?: string | undefined;
|
|
425
|
-
created_at?: number |
|
|
426
|
-
|
|
431
|
+
created_at?: number | undefined;
|
|
432
|
+
created_by?: string | undefined;
|
|
433
|
+
updated_at?: number | undefined;
|
|
434
|
+
updated_by?: string | undefined;
|
|
427
435
|
agency_id?: string | undefined;
|
|
428
436
|
line_id?: string | undefined;
|
|
429
|
-
trip_id?: string | undefined;
|
|
430
437
|
pattern_id?: string | undefined;
|
|
438
|
+
trip_id?: string | undefined;
|
|
431
439
|
apex_version?: string | undefined;
|
|
432
440
|
device_id?: string | undefined;
|
|
433
441
|
vehicle_id?: number | undefined;
|
|
@@ -443,7 +451,7 @@ export declare const UpdateSimplifiedApexValidationSchema: z.ZodObject<{
|
|
|
443
451
|
event_type?: number | undefined;
|
|
444
452
|
product_id?: string | undefined;
|
|
445
453
|
units_qty?: number | null | undefined;
|
|
446
|
-
validation_status?: 0 | 1 | 2 | 3 |
|
|
454
|
+
validation_status?: 0 | 1 | 2 | 3 | 4 | 5 | 12 | 11 | 8 | 10 | 6 | 7 | 9 | 13 | undefined;
|
|
447
455
|
}>;
|
|
448
456
|
/**
|
|
449
457
|
* APEX Validations are APEX transactions of type 11 that are generated when a card holder touches a validator
|