@tmlmobilidade/types 20260615.1034.33 → 20260615.1437.21
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/dates/event.d.ts +18 -18
- package/dist/file-exports/file-exports.d.ts +3 -3
- package/dist/file-exports/ride-export.d.ts +6 -6
- package/dist/file-exports/sams-analysis-export.d.ts +10 -10
- package/dist/file-exports/stop-export.d.ts +8 -8
- package/dist/gtfs-new/stop-times.d.ts +2 -2
- package/dist/gtfs-new/trips.d.ts +3 -3
- package/dist/gtfs-rt/alert.d.ts +10 -10
- package/dist/gtfs-rt/entity-selector.d.ts +6 -6
- package/dist/gtfs-rt/feed-entity.d.ts +20 -20
- package/dist/gtfs-rt/feed-message.d.ts +26 -26
- package/dist/gtfs-rt/trip-descriptor.d.ts +2 -2
- package/dist/gtfs-rt/vehicle-position.d.ts +4 -4
- package/dist/gtfs-tml/fares.d.ts +4 -4
- package/dist/gtfs-tml/stop-times.d.ts +2 -2
- package/dist/gtfs-tml/trips.d.ts +3 -3
- package/dist/hub/api/network/pattern.d.ts +2 -2
- package/dist/hub/api/network/route.d.ts +2 -2
- package/dist/hub/api/network/stop.d.ts +2 -2
- package/dist/hub/api/realtime/vehicle-position.d.ts +7 -7
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/metrics/demand/demand_by_category.d.ts +36 -36
- package/dist/metrics/index.d.ts +36 -36
- package/dist/notification.d.ts +10 -10
- package/dist/offer/fare.d.ts +16 -16
- package/dist/offer/parameters.d.ts +8 -8
- package/dist/offer/pattern.d.ts +108 -108
- package/dist/offer/route.d.ts +6 -6
- package/dist/offer/rules.d.ts +42 -42
- package/dist/operation/hashed-lines/hashed-line.d.ts +2 -2
- package/dist/operation/hashed-patterns/hashed-pattern.d.ts +2 -2
- package/dist/operation/hashed-trips/hashed-trip.d.ts +2 -2
- package/dist/operation/lines/operational-line.d.ts +4 -4
- package/dist/operation/rides/ride-normalized.d.ts +6 -6
- package/dist/operation/rides/ride.d.ts +24 -24
- package/dist/operation/stops/operational-stop.d.ts +5 -5
- package/dist/sams/sam-analysis.d.ts +10 -10
- package/dist/sams/sam-analysis.js +1 -1
- package/dist/sams/sam.d.ts +60 -60
- package/dist/stops/flag.d.ts +1 -1
- package/dist/stops/stop.d.ts +12 -12
- package/dist/vehicle-events/raw/ccfl/v1.d.ts +2 -2
- package/dist/vehicle-events/raw/cmet/v1-core.d.ts +2 -2
- package/dist/vehicle-events/raw/cmet/v1-log.d.ts +2 -2
- package/dist/vehicle-events/raw/cp/v1.d.ts +2 -2
- package/dist/vehicle-events/raw/crtm-aisa/v1.d.ts +16 -16
- package/dist/vehicle-events/raw/fertagus/v1.d.ts +16 -16
- package/dist/vehicle-events/raw/mobi/v1.d.ts +16 -16
- package/dist/vehicle-events/raw/raw-vehicle-event-base.d.ts +2 -2
- package/dist/vehicle-events/raw/raw-vehicle-event.d.ts +50 -50
- package/dist/vehicle-events/raw/tcb/v1.d.ts +16 -16
- package/dist/vehicle-events/raw/ttsl/v1.d.ts +2 -2
- package/dist/vehicle-events/simplified/simplified-vehicle-event.d.ts +7 -7
- package/package.json +2 -1
- package/dist/apex/index.d.ts +0 -2
- package/dist/apex/index.js +0 -2
- package/dist/apex/raw/banking-taps/banking-tap-v40.d.ts +0 -669
- package/dist/apex/raw/banking-taps/banking-tap-v40.js +0 -65
- package/dist/apex/raw/banking-taps/index.d.ts +0 -1
- package/dist/apex/raw/banking-taps/index.js +0 -1
- package/dist/apex/raw/index.d.ts +0 -7
- package/dist/apex/raw/index.js +0 -7
- package/dist/apex/raw/inspections/index.d.ts +0 -2
- package/dist/apex/raw/inspections/index.js +0 -2
- package/dist/apex/raw/inspections/inspection-decision-v20.d.ts +0 -481
- package/dist/apex/raw/inspections/inspection-decision-v20.js +0 -49
- package/dist/apex/raw/inspections/inspection-v20.d.ts +0 -961
- package/dist/apex/raw/inspections/inspection-v20.js +0 -89
- package/dist/apex/raw/locations/index.d.ts +0 -1
- package/dist/apex/raw/locations/index.js +0 -1
- package/dist/apex/raw/locations/location-v30.d.ts +0 -645
- package/dist/apex/raw/locations/location-v30.js +0 -63
- package/dist/apex/raw/raw-apex-transaction-base.d.ts +0 -30
- package/dist/apex/raw/raw-apex-transaction-base.js +0 -13
- package/dist/apex/raw/raw-apex-transaction.d.ts +0 -3662
- package/dist/apex/raw/raw-apex-transaction.js +0 -21
- package/dist/apex/raw/sales/index.d.ts +0 -2
- package/dist/apex/raw/sales/index.js +0 -2
- package/dist/apex/raw/sales/refund-v30.d.ts +0 -769
- package/dist/apex/raw/sales/refund-v30.js +0 -74
- package/dist/apex/raw/sales/sale-v30.d.ts +0 -757
- package/dist/apex/raw/sales/sale-v30.js +0 -73
- package/dist/apex/raw/validations/index.d.ts +0 -2
- package/dist/apex/raw/validations/index.js +0 -2
- package/dist/apex/raw/validations/validation-v20.d.ts +0 -901
- package/dist/apex/raw/validations/validation-v20.js +0 -85
- package/dist/apex/raw/validations/validation-v30.d.ts +0 -901
- package/dist/apex/raw/validations/validation-v30.js +0 -85
- package/dist/apex/simplified/any-simplified-apex.d.ts +0 -8
- package/dist/apex/simplified/any-simplified-apex.js +0 -2
- package/dist/apex/simplified/apex-validation-status.d.ts +0 -145
- package/dist/apex/simplified/apex-validation-status.js +0 -76
- package/dist/apex/simplified/index.d.ts +0 -10
- package/dist/apex/simplified/index.js +0 -10
- package/dist/apex/simplified/simplified-apex-banking-taps.d.ts +0 -81
- package/dist/apex/simplified/simplified-apex-banking-taps.js +0 -27
- package/dist/apex/simplified/simplified-apex-inspection-decision.d.ts +0 -55
- package/dist/apex/simplified/simplified-apex-inspection-decision.js +0 -18
- package/dist/apex/simplified/simplified-apex-inspection.d.ts +0 -82
- package/dist/apex/simplified/simplified-apex-inspection.js +0 -27
- package/dist/apex/simplified/simplified-apex-location.d.ts +0 -112
- package/dist/apex/simplified/simplified-apex-location.js +0 -20
- package/dist/apex/simplified/simplified-apex-on-board-refund.d.ts +0 -172
- package/dist/apex/simplified/simplified-apex-on-board-refund.js +0 -30
- package/dist/apex/simplified/simplified-apex-on-board-sale.d.ts +0 -178
- package/dist/apex/simplified/simplified-apex-on-board-sale.js +0 -31
- package/dist/apex/simplified/simplified-apex-type.d.ts +0 -9
- package/dist/apex/simplified/simplified-apex-type.js +0 -5
- package/dist/apex/simplified/simplified-apex-validation.d.ts +0 -200
- package/dist/apex/simplified/simplified-apex-validation.js +0 -41
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* * */
|
|
2
|
-
import { SimplifiedApexTypeSchema } from '
|
|
2
|
+
import { SimplifiedApexTypeSchema } from '@tmlmobilidade/go-types-apex';
|
|
3
3
|
import { UnixTimestampSchema } from '@tmlmobilidade/go-types-shared';
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
/* * */
|
package/dist/sams/sam.d.ts
CHANGED
|
@@ -21,35 +21,35 @@ export declare const SamSchema: z.ZodObject<{
|
|
|
21
21
|
transactions_missing: z.ZodNumber;
|
|
22
22
|
vehicle_id: z.ZodNullable<z.ZodNumber>;
|
|
23
23
|
}, "strip", z.ZodTypeAny, {
|
|
24
|
-
apex_version: string | null;
|
|
25
|
-
device_id: string | null;
|
|
26
|
-
vehicle_id: number | null;
|
|
27
24
|
end_time: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null;
|
|
28
25
|
start_time: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null;
|
|
26
|
+
apex_version: string | null;
|
|
27
|
+
device_id: string | null;
|
|
29
28
|
first_transaction_ase_counter_value: number | null;
|
|
30
29
|
first_transaction_id: string | null;
|
|
31
|
-
first_transaction_type: "validation" | "
|
|
30
|
+
first_transaction_type: "validation" | "location" | "on_board_refund" | "on_board_sale" | null;
|
|
32
31
|
last_transaction_ase_counter_value: number | null;
|
|
33
32
|
last_transaction_id: string | null;
|
|
34
|
-
last_transaction_type: "validation" | "
|
|
33
|
+
last_transaction_type: "validation" | "location" | "on_board_refund" | "on_board_sale" | null;
|
|
35
34
|
transactions_expected: number;
|
|
36
35
|
transactions_found: number;
|
|
37
36
|
transactions_missing: number;
|
|
38
|
-
}, {
|
|
39
|
-
apex_version: string | null;
|
|
40
|
-
device_id: string | null;
|
|
41
37
|
vehicle_id: number | null;
|
|
38
|
+
}, {
|
|
42
39
|
end_time: number | null;
|
|
43
40
|
start_time: number | null;
|
|
41
|
+
apex_version: string | null;
|
|
42
|
+
device_id: string | null;
|
|
44
43
|
first_transaction_ase_counter_value: number | null;
|
|
45
44
|
first_transaction_id: string | null;
|
|
46
|
-
first_transaction_type: "validation" | "
|
|
45
|
+
first_transaction_type: "validation" | "location" | "on_board_refund" | "on_board_sale" | null;
|
|
47
46
|
last_transaction_ase_counter_value: number | null;
|
|
48
47
|
last_transaction_id: string | null;
|
|
49
|
-
last_transaction_type: "validation" | "
|
|
48
|
+
last_transaction_type: "validation" | "location" | "on_board_refund" | "on_board_sale" | null;
|
|
50
49
|
transactions_expected: number;
|
|
51
50
|
transactions_found: number;
|
|
52
51
|
transactions_missing: number;
|
|
52
|
+
vehicle_id: number | null;
|
|
53
53
|
}>, "many">>;
|
|
54
54
|
latest_apex_version: z.ZodNullable<z.ZodString>;
|
|
55
55
|
remarks: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
@@ -119,20 +119,20 @@ export declare const SamSchema: z.ZodObject<{
|
|
|
119
119
|
transactions_found: number | null;
|
|
120
120
|
transactions_missing: number | null;
|
|
121
121
|
analysis: {
|
|
122
|
-
apex_version: string | null;
|
|
123
|
-
device_id: string | null;
|
|
124
|
-
vehicle_id: number | null;
|
|
125
122
|
end_time: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null;
|
|
126
123
|
start_time: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null;
|
|
124
|
+
apex_version: string | null;
|
|
125
|
+
device_id: string | null;
|
|
127
126
|
first_transaction_ase_counter_value: number | null;
|
|
128
127
|
first_transaction_id: string | null;
|
|
129
|
-
first_transaction_type: "validation" | "
|
|
128
|
+
first_transaction_type: "validation" | "location" | "on_board_refund" | "on_board_sale" | null;
|
|
130
129
|
last_transaction_ase_counter_value: number | null;
|
|
131
130
|
last_transaction_id: string | null;
|
|
132
|
-
last_transaction_type: "validation" | "
|
|
131
|
+
last_transaction_type: "validation" | "location" | "on_board_refund" | "on_board_sale" | null;
|
|
133
132
|
transactions_expected: number;
|
|
134
133
|
transactions_found: number;
|
|
135
134
|
transactions_missing: number;
|
|
135
|
+
vehicle_id: number | null;
|
|
136
136
|
}[];
|
|
137
137
|
system_status: "error" | "waiting" | "complete" | "incomplete";
|
|
138
138
|
latest_apex_version: string | null;
|
|
@@ -160,20 +160,20 @@ export declare const SamSchema: z.ZodObject<{
|
|
|
160
160
|
transactions_missing: number | null;
|
|
161
161
|
latest_apex_version: string | null;
|
|
162
162
|
analysis?: {
|
|
163
|
-
apex_version: string | null;
|
|
164
|
-
device_id: string | null;
|
|
165
|
-
vehicle_id: number | null;
|
|
166
163
|
end_time: number | null;
|
|
167
164
|
start_time: number | null;
|
|
165
|
+
apex_version: string | null;
|
|
166
|
+
device_id: string | null;
|
|
168
167
|
first_transaction_ase_counter_value: number | null;
|
|
169
168
|
first_transaction_id: string | null;
|
|
170
|
-
first_transaction_type: "validation" | "
|
|
169
|
+
first_transaction_type: "validation" | "location" | "on_board_refund" | "on_board_sale" | null;
|
|
171
170
|
last_transaction_ase_counter_value: number | null;
|
|
172
171
|
last_transaction_id: string | null;
|
|
173
|
-
last_transaction_type: "validation" | "
|
|
172
|
+
last_transaction_type: "validation" | "location" | "on_board_refund" | "on_board_sale" | null;
|
|
174
173
|
transactions_expected: number;
|
|
175
174
|
transactions_found: number;
|
|
176
175
|
transactions_missing: number;
|
|
176
|
+
vehicle_id: number | null;
|
|
177
177
|
}[] | undefined;
|
|
178
178
|
system_status?: "error" | "waiting" | "complete" | "incomplete" | undefined;
|
|
179
179
|
remarks?: string | null | undefined;
|
|
@@ -211,35 +211,35 @@ export declare const CreateSamSchema: z.ZodObject<Omit<{
|
|
|
211
211
|
transactions_missing: z.ZodNumber;
|
|
212
212
|
vehicle_id: z.ZodNullable<z.ZodNumber>;
|
|
213
213
|
}, "strip", z.ZodTypeAny, {
|
|
214
|
-
apex_version: string | null;
|
|
215
|
-
device_id: string | null;
|
|
216
|
-
vehicle_id: number | null;
|
|
217
214
|
end_time: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null;
|
|
218
215
|
start_time: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null;
|
|
216
|
+
apex_version: string | null;
|
|
217
|
+
device_id: string | null;
|
|
219
218
|
first_transaction_ase_counter_value: number | null;
|
|
220
219
|
first_transaction_id: string | null;
|
|
221
|
-
first_transaction_type: "validation" | "
|
|
220
|
+
first_transaction_type: "validation" | "location" | "on_board_refund" | "on_board_sale" | null;
|
|
222
221
|
last_transaction_ase_counter_value: number | null;
|
|
223
222
|
last_transaction_id: string | null;
|
|
224
|
-
last_transaction_type: "validation" | "
|
|
223
|
+
last_transaction_type: "validation" | "location" | "on_board_refund" | "on_board_sale" | null;
|
|
225
224
|
transactions_expected: number;
|
|
226
225
|
transactions_found: number;
|
|
227
226
|
transactions_missing: number;
|
|
228
|
-
}, {
|
|
229
|
-
apex_version: string | null;
|
|
230
|
-
device_id: string | null;
|
|
231
227
|
vehicle_id: number | null;
|
|
228
|
+
}, {
|
|
232
229
|
end_time: number | null;
|
|
233
230
|
start_time: number | null;
|
|
231
|
+
apex_version: string | null;
|
|
232
|
+
device_id: string | null;
|
|
234
233
|
first_transaction_ase_counter_value: number | null;
|
|
235
234
|
first_transaction_id: string | null;
|
|
236
|
-
first_transaction_type: "validation" | "
|
|
235
|
+
first_transaction_type: "validation" | "location" | "on_board_refund" | "on_board_sale" | null;
|
|
237
236
|
last_transaction_ase_counter_value: number | null;
|
|
238
237
|
last_transaction_id: string | null;
|
|
239
|
-
last_transaction_type: "validation" | "
|
|
238
|
+
last_transaction_type: "validation" | "location" | "on_board_refund" | "on_board_sale" | null;
|
|
240
239
|
transactions_expected: number;
|
|
241
240
|
transactions_found: number;
|
|
242
241
|
transactions_missing: number;
|
|
242
|
+
vehicle_id: number | null;
|
|
243
243
|
}>, "many">>;
|
|
244
244
|
latest_apex_version: z.ZodNullable<z.ZodString>;
|
|
245
245
|
remarks: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
@@ -303,20 +303,20 @@ export declare const CreateSamSchema: z.ZodObject<Omit<{
|
|
|
303
303
|
transactions_found: number | null;
|
|
304
304
|
transactions_missing: number | null;
|
|
305
305
|
analysis: {
|
|
306
|
-
apex_version: string | null;
|
|
307
|
-
device_id: string | null;
|
|
308
|
-
vehicle_id: number | null;
|
|
309
306
|
end_time: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null;
|
|
310
307
|
start_time: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null;
|
|
308
|
+
apex_version: string | null;
|
|
309
|
+
device_id: string | null;
|
|
311
310
|
first_transaction_ase_counter_value: number | null;
|
|
312
311
|
first_transaction_id: string | null;
|
|
313
|
-
first_transaction_type: "validation" | "
|
|
312
|
+
first_transaction_type: "validation" | "location" | "on_board_refund" | "on_board_sale" | null;
|
|
314
313
|
last_transaction_ase_counter_value: number | null;
|
|
315
314
|
last_transaction_id: string | null;
|
|
316
|
-
last_transaction_type: "validation" | "
|
|
315
|
+
last_transaction_type: "validation" | "location" | "on_board_refund" | "on_board_sale" | null;
|
|
317
316
|
transactions_expected: number;
|
|
318
317
|
transactions_found: number;
|
|
319
318
|
transactions_missing: number;
|
|
319
|
+
vehicle_id: number | null;
|
|
320
320
|
}[];
|
|
321
321
|
system_status: "error" | "waiting" | "complete" | "incomplete";
|
|
322
322
|
latest_apex_version: string | null;
|
|
@@ -342,20 +342,20 @@ export declare const CreateSamSchema: z.ZodObject<Omit<{
|
|
|
342
342
|
transactions_missing: number | null;
|
|
343
343
|
latest_apex_version: string | null;
|
|
344
344
|
analysis?: {
|
|
345
|
-
apex_version: string | null;
|
|
346
|
-
device_id: string | null;
|
|
347
|
-
vehicle_id: number | null;
|
|
348
345
|
end_time: number | null;
|
|
349
346
|
start_time: number | null;
|
|
347
|
+
apex_version: string | null;
|
|
348
|
+
device_id: string | null;
|
|
350
349
|
first_transaction_ase_counter_value: number | null;
|
|
351
350
|
first_transaction_id: string | null;
|
|
352
|
-
first_transaction_type: "validation" | "
|
|
351
|
+
first_transaction_type: "validation" | "location" | "on_board_refund" | "on_board_sale" | null;
|
|
353
352
|
last_transaction_ase_counter_value: number | null;
|
|
354
353
|
last_transaction_id: string | null;
|
|
355
|
-
last_transaction_type: "validation" | "
|
|
354
|
+
last_transaction_type: "validation" | "location" | "on_board_refund" | "on_board_sale" | null;
|
|
356
355
|
transactions_expected: number;
|
|
357
356
|
transactions_found: number;
|
|
358
357
|
transactions_missing: number;
|
|
358
|
+
vehicle_id: number | null;
|
|
359
359
|
}[] | undefined;
|
|
360
360
|
system_status?: "error" | "waiting" | "complete" | "incomplete" | undefined;
|
|
361
361
|
remarks?: string | null | undefined;
|
|
@@ -395,35 +395,35 @@ export declare const UpdateSamSchema: z.ZodObject<{
|
|
|
395
395
|
transactions_missing: z.ZodNumber;
|
|
396
396
|
vehicle_id: z.ZodNullable<z.ZodNumber>;
|
|
397
397
|
}, "strip", z.ZodTypeAny, {
|
|
398
|
-
apex_version: string | null;
|
|
399
|
-
device_id: string | null;
|
|
400
|
-
vehicle_id: number | null;
|
|
401
398
|
end_time: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null;
|
|
402
399
|
start_time: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null;
|
|
400
|
+
apex_version: string | null;
|
|
401
|
+
device_id: string | null;
|
|
403
402
|
first_transaction_ase_counter_value: number | null;
|
|
404
403
|
first_transaction_id: string | null;
|
|
405
|
-
first_transaction_type: "validation" | "
|
|
404
|
+
first_transaction_type: "validation" | "location" | "on_board_refund" | "on_board_sale" | null;
|
|
406
405
|
last_transaction_ase_counter_value: number | null;
|
|
407
406
|
last_transaction_id: string | null;
|
|
408
|
-
last_transaction_type: "validation" | "
|
|
407
|
+
last_transaction_type: "validation" | "location" | "on_board_refund" | "on_board_sale" | null;
|
|
409
408
|
transactions_expected: number;
|
|
410
409
|
transactions_found: number;
|
|
411
410
|
transactions_missing: number;
|
|
412
|
-
}, {
|
|
413
|
-
apex_version: string | null;
|
|
414
|
-
device_id: string | null;
|
|
415
411
|
vehicle_id: number | null;
|
|
412
|
+
}, {
|
|
416
413
|
end_time: number | null;
|
|
417
414
|
start_time: number | null;
|
|
415
|
+
apex_version: string | null;
|
|
416
|
+
device_id: string | null;
|
|
418
417
|
first_transaction_ase_counter_value: number | null;
|
|
419
418
|
first_transaction_id: string | null;
|
|
420
|
-
first_transaction_type: "validation" | "
|
|
419
|
+
first_transaction_type: "validation" | "location" | "on_board_refund" | "on_board_sale" | null;
|
|
421
420
|
last_transaction_ase_counter_value: number | null;
|
|
422
421
|
last_transaction_id: string | null;
|
|
423
|
-
last_transaction_type: "validation" | "
|
|
422
|
+
last_transaction_type: "validation" | "location" | "on_board_refund" | "on_board_sale" | null;
|
|
424
423
|
transactions_expected: number;
|
|
425
424
|
transactions_found: number;
|
|
426
425
|
transactions_missing: number;
|
|
426
|
+
vehicle_id: number | null;
|
|
427
427
|
}>, "many">>>;
|
|
428
428
|
system_status: z.ZodOptional<z.ZodDefault<z.ZodEnum<["waiting", "incomplete", "complete", "error"]>>>;
|
|
429
429
|
latest_apex_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -482,20 +482,20 @@ export declare const UpdateSamSchema: z.ZodObject<{
|
|
|
482
482
|
transactions_found?: number | null | undefined;
|
|
483
483
|
transactions_missing?: number | null | undefined;
|
|
484
484
|
analysis?: {
|
|
485
|
-
apex_version: string | null;
|
|
486
|
-
device_id: string | null;
|
|
487
|
-
vehicle_id: number | null;
|
|
488
485
|
end_time: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null;
|
|
489
486
|
start_time: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null;
|
|
487
|
+
apex_version: string | null;
|
|
488
|
+
device_id: string | null;
|
|
490
489
|
first_transaction_ase_counter_value: number | null;
|
|
491
490
|
first_transaction_id: string | null;
|
|
492
|
-
first_transaction_type: "validation" | "
|
|
491
|
+
first_transaction_type: "validation" | "location" | "on_board_refund" | "on_board_sale" | null;
|
|
493
492
|
last_transaction_ase_counter_value: number | null;
|
|
494
493
|
last_transaction_id: string | null;
|
|
495
|
-
last_transaction_type: "validation" | "
|
|
494
|
+
last_transaction_type: "validation" | "location" | "on_board_refund" | "on_board_sale" | null;
|
|
496
495
|
transactions_expected: number;
|
|
497
496
|
transactions_found: number;
|
|
498
497
|
transactions_missing: number;
|
|
498
|
+
vehicle_id: number | null;
|
|
499
499
|
}[] | undefined;
|
|
500
500
|
system_status?: "error" | "waiting" | "complete" | "incomplete" | undefined;
|
|
501
501
|
latest_apex_version?: string | null | undefined;
|
|
@@ -520,20 +520,20 @@ export declare const UpdateSamSchema: z.ZodObject<{
|
|
|
520
520
|
transactions_found?: number | null | undefined;
|
|
521
521
|
transactions_missing?: number | null | undefined;
|
|
522
522
|
analysis?: {
|
|
523
|
-
apex_version: string | null;
|
|
524
|
-
device_id: string | null;
|
|
525
|
-
vehicle_id: number | null;
|
|
526
523
|
end_time: number | null;
|
|
527
524
|
start_time: number | null;
|
|
525
|
+
apex_version: string | null;
|
|
526
|
+
device_id: string | null;
|
|
528
527
|
first_transaction_ase_counter_value: number | null;
|
|
529
528
|
first_transaction_id: string | null;
|
|
530
|
-
first_transaction_type: "validation" | "
|
|
529
|
+
first_transaction_type: "validation" | "location" | "on_board_refund" | "on_board_sale" | null;
|
|
531
530
|
last_transaction_ase_counter_value: number | null;
|
|
532
531
|
last_transaction_id: string | null;
|
|
533
|
-
last_transaction_type: "validation" | "
|
|
532
|
+
last_transaction_type: "validation" | "location" | "on_board_refund" | "on_board_sale" | null;
|
|
534
533
|
transactions_expected: number;
|
|
535
534
|
transactions_found: number;
|
|
536
535
|
transactions_missing: number;
|
|
536
|
+
vehicle_id: number | null;
|
|
537
537
|
}[] | undefined;
|
|
538
538
|
system_status?: "error" | "waiting" | "complete" | "incomplete" | undefined;
|
|
539
539
|
latest_apex_version?: string | null | undefined;
|
package/dist/stops/flag.d.ts
CHANGED
|
@@ -6,9 +6,9 @@ export declare const StopFlagSchema: z.ZodObject<{
|
|
|
6
6
|
stop_id: z.ZodString;
|
|
7
7
|
}, "strip", z.ZodTypeAny, {
|
|
8
8
|
short_name: string;
|
|
9
|
-
stop_id: string;
|
|
10
9
|
agency_ids: string[];
|
|
11
10
|
is_harmonized: boolean;
|
|
11
|
+
stop_id: string;
|
|
12
12
|
}, {
|
|
13
13
|
short_name: string;
|
|
14
14
|
stop_id: string;
|
package/dist/stops/stop.d.ts
CHANGED
|
@@ -14,9 +14,9 @@ export declare const StopSchema: z.ZodObject<{
|
|
|
14
14
|
stop_id: z.ZodString;
|
|
15
15
|
}, "strip", z.ZodTypeAny, {
|
|
16
16
|
short_name: string;
|
|
17
|
-
stop_id: string;
|
|
18
17
|
agency_ids: string[];
|
|
19
18
|
is_harmonized: boolean;
|
|
19
|
+
stop_id: string;
|
|
20
20
|
}, {
|
|
21
21
|
short_name: string;
|
|
22
22
|
stop_id: string;
|
|
@@ -285,14 +285,14 @@ export declare const StopSchema: z.ZodObject<{
|
|
|
285
285
|
}, "strip", z.ZodTypeAny, {
|
|
286
286
|
_id: string;
|
|
287
287
|
code: string;
|
|
288
|
-
line_id: string;
|
|
289
288
|
headsign: string;
|
|
289
|
+
line_id: string;
|
|
290
290
|
route_id: string;
|
|
291
291
|
}, {
|
|
292
292
|
_id: string;
|
|
293
293
|
code: string;
|
|
294
|
-
line_id: string;
|
|
295
294
|
headsign: string;
|
|
295
|
+
line_id: string;
|
|
296
296
|
route_id: string;
|
|
297
297
|
}>, "many">>;
|
|
298
298
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -310,8 +310,8 @@ export declare const StopSchema: z.ZodObject<{
|
|
|
310
310
|
associated_patterns: {
|
|
311
311
|
_id: string;
|
|
312
312
|
code: string;
|
|
313
|
-
line_id: string;
|
|
314
313
|
headsign: string;
|
|
314
|
+
line_id: string;
|
|
315
315
|
route_id: string;
|
|
316
316
|
}[];
|
|
317
317
|
comments: ({
|
|
@@ -362,9 +362,9 @@ export declare const StopSchema: z.ZodObject<{
|
|
|
362
362
|
})[];
|
|
363
363
|
flags: {
|
|
364
364
|
short_name: string;
|
|
365
|
-
stop_id: string;
|
|
366
365
|
agency_ids: string[];
|
|
367
366
|
is_harmonized: boolean;
|
|
367
|
+
stop_id: string;
|
|
368
368
|
}[];
|
|
369
369
|
jurisdiction: "unknown" | "ip" | "municipality" | "other";
|
|
370
370
|
legacy_id: string | null;
|
|
@@ -425,8 +425,8 @@ export declare const StopSchema: z.ZodObject<{
|
|
|
425
425
|
associated_patterns?: {
|
|
426
426
|
_id: string;
|
|
427
427
|
code: string;
|
|
428
|
-
line_id: string;
|
|
429
428
|
headsign: string;
|
|
429
|
+
line_id: string;
|
|
430
430
|
route_id: string;
|
|
431
431
|
}[] | undefined;
|
|
432
432
|
comments?: ({
|
|
@@ -521,9 +521,9 @@ export declare const CreateStopSchema: z.ZodObject<Omit<{
|
|
|
521
521
|
stop_id: z.ZodString;
|
|
522
522
|
}, "strip", z.ZodTypeAny, {
|
|
523
523
|
short_name: string;
|
|
524
|
-
stop_id: string;
|
|
525
524
|
agency_ids: string[];
|
|
526
525
|
is_harmonized: boolean;
|
|
526
|
+
stop_id: string;
|
|
527
527
|
}, {
|
|
528
528
|
short_name: string;
|
|
529
529
|
stop_id: string;
|
|
@@ -792,14 +792,14 @@ export declare const CreateStopSchema: z.ZodObject<Omit<{
|
|
|
792
792
|
}, "strip", z.ZodTypeAny, {
|
|
793
793
|
_id: string;
|
|
794
794
|
code: string;
|
|
795
|
-
line_id: string;
|
|
796
795
|
headsign: string;
|
|
796
|
+
line_id: string;
|
|
797
797
|
route_id: string;
|
|
798
798
|
}, {
|
|
799
799
|
_id: string;
|
|
800
800
|
code: string;
|
|
801
|
-
line_id: string;
|
|
802
801
|
headsign: string;
|
|
802
|
+
line_id: string;
|
|
803
803
|
route_id: string;
|
|
804
804
|
}>, "many">>;
|
|
805
805
|
}, "_id" | "created_at" | "updated_at" | "associated_patterns">, "strip", z.ZodTypeAny, {
|
|
@@ -855,9 +855,9 @@ export declare const CreateStopSchema: z.ZodObject<Omit<{
|
|
|
855
855
|
})[];
|
|
856
856
|
flags: {
|
|
857
857
|
short_name: string;
|
|
858
|
-
stop_id: string;
|
|
859
858
|
agency_ids: string[];
|
|
860
859
|
is_harmonized: boolean;
|
|
860
|
+
stop_id: string;
|
|
861
861
|
}[];
|
|
862
862
|
jurisdiction: "unknown" | "ip" | "municipality" | "other";
|
|
863
863
|
legacy_id: string | null;
|
|
@@ -1211,9 +1211,9 @@ export declare const UpdateStopSchema: z.ZodObject<{
|
|
|
1211
1211
|
stop_id: z.ZodString;
|
|
1212
1212
|
}, "strip", z.ZodTypeAny, {
|
|
1213
1213
|
short_name: string;
|
|
1214
|
-
stop_id: string;
|
|
1215
1214
|
agency_ids: string[];
|
|
1216
1215
|
is_harmonized: boolean;
|
|
1216
|
+
stop_id: string;
|
|
1217
1217
|
}, {
|
|
1218
1218
|
short_name: string;
|
|
1219
1219
|
stop_id: string;
|
|
@@ -1314,9 +1314,9 @@ export declare const UpdateStopSchema: z.ZodObject<{
|
|
|
1314
1314
|
})[] | undefined;
|
|
1315
1315
|
flags?: {
|
|
1316
1316
|
short_name: string;
|
|
1317
|
-
stop_id: string;
|
|
1318
1317
|
agency_ids: string[];
|
|
1319
1318
|
is_harmonized: boolean;
|
|
1319
|
+
stop_id: string;
|
|
1320
1320
|
}[] | undefined;
|
|
1321
1321
|
jurisdiction?: "unknown" | "ip" | "municipality" | "other" | undefined;
|
|
1322
1322
|
legacy_id?: string | null | undefined;
|
|
@@ -307,7 +307,6 @@ export declare const RawVehicleEventCcflV1Schema: z.ZodObject<{
|
|
|
307
307
|
received_at: number & {
|
|
308
308
|
__brand: "UnixTimestamp";
|
|
309
309
|
};
|
|
310
|
-
version: "ccfl-v1";
|
|
311
310
|
payload: {
|
|
312
311
|
vehicle: {
|
|
313
312
|
vehicle: {
|
|
@@ -336,12 +335,12 @@ export declare const RawVehicleEventCcflV1Schema: z.ZodObject<{
|
|
|
336
335
|
};
|
|
337
336
|
};
|
|
338
337
|
entity_id: string;
|
|
338
|
+
version: "ccfl-v1";
|
|
339
339
|
}, {
|
|
340
340
|
_id: string;
|
|
341
341
|
created_at: number;
|
|
342
342
|
agency_id: string;
|
|
343
343
|
received_at: number;
|
|
344
|
-
version: "ccfl-v1";
|
|
345
344
|
payload: {
|
|
346
345
|
vehicle: {
|
|
347
346
|
vehicle: {
|
|
@@ -370,5 +369,6 @@ export declare const RawVehicleEventCcflV1Schema: z.ZodObject<{
|
|
|
370
369
|
};
|
|
371
370
|
};
|
|
372
371
|
entity_id: string;
|
|
372
|
+
version: "ccfl-v1";
|
|
373
373
|
}>;
|
|
374
374
|
export type RawVehicleEventCcflV1 = z.infer<typeof RawVehicleEventCcflV1Schema>;
|
|
@@ -481,7 +481,6 @@ export declare const RawVehicleEventCmetV1CoreSchema: z.ZodObject<{
|
|
|
481
481
|
received_at: number & {
|
|
482
482
|
__brand: "UnixTimestamp";
|
|
483
483
|
};
|
|
484
|
-
version: "cmet-v1-core";
|
|
485
484
|
payload: {
|
|
486
485
|
vehicle: {
|
|
487
486
|
vehicle: {
|
|
@@ -523,12 +522,12 @@ export declare const RawVehicleEventCmetV1CoreSchema: z.ZodObject<{
|
|
|
523
522
|
};
|
|
524
523
|
};
|
|
525
524
|
entity_id: string;
|
|
525
|
+
version: "cmet-v1-core";
|
|
526
526
|
}, {
|
|
527
527
|
_id: string;
|
|
528
528
|
created_at: number;
|
|
529
529
|
agency_id: string;
|
|
530
530
|
received_at: number;
|
|
531
|
-
version: "cmet-v1-core";
|
|
532
531
|
payload: {
|
|
533
532
|
vehicle: {
|
|
534
533
|
vehicle: {
|
|
@@ -570,5 +569,6 @@ export declare const RawVehicleEventCmetV1CoreSchema: z.ZodObject<{
|
|
|
570
569
|
};
|
|
571
570
|
};
|
|
572
571
|
entity_id: string;
|
|
572
|
+
version: "cmet-v1-core";
|
|
573
573
|
}>;
|
|
574
574
|
export type RawVehicleEventCmetV1Core = z.infer<typeof RawVehicleEventCmetV1CoreSchema>;
|
|
@@ -481,7 +481,6 @@ export declare const RawVehicleEventCmetV1LogSchema: z.ZodObject<{
|
|
|
481
481
|
received_at: number & {
|
|
482
482
|
__brand: "UnixTimestamp";
|
|
483
483
|
};
|
|
484
|
-
version: "cmet-v1-log";
|
|
485
484
|
payload: {
|
|
486
485
|
vehicle: {
|
|
487
486
|
vehicle: {
|
|
@@ -523,12 +522,12 @@ export declare const RawVehicleEventCmetV1LogSchema: z.ZodObject<{
|
|
|
523
522
|
};
|
|
524
523
|
};
|
|
525
524
|
entity_id: string;
|
|
525
|
+
version: "cmet-v1-log";
|
|
526
526
|
}, {
|
|
527
527
|
_id: string;
|
|
528
528
|
created_at: number;
|
|
529
529
|
agency_id: string;
|
|
530
530
|
received_at: number;
|
|
531
|
-
version: "cmet-v1-log";
|
|
532
531
|
payload: {
|
|
533
532
|
vehicle: {
|
|
534
533
|
vehicle: {
|
|
@@ -570,5 +569,6 @@ export declare const RawVehicleEventCmetV1LogSchema: z.ZodObject<{
|
|
|
570
569
|
};
|
|
571
570
|
};
|
|
572
571
|
entity_id: string;
|
|
572
|
+
version: "cmet-v1-log";
|
|
573
573
|
}>;
|
|
574
574
|
export type RawVehicleEventCmetV1Log = z.infer<typeof RawVehicleEventCmetV1LogSchema>;
|
|
@@ -283,7 +283,6 @@ export declare const RawVehicleEventCpV1Schema: z.ZodObject<{
|
|
|
283
283
|
received_at: number & {
|
|
284
284
|
__brand: "UnixTimestamp";
|
|
285
285
|
};
|
|
286
|
-
version: "cp-v1";
|
|
287
286
|
payload: {
|
|
288
287
|
vehicle: {
|
|
289
288
|
vehicle: {
|
|
@@ -310,12 +309,12 @@ export declare const RawVehicleEventCpV1Schema: z.ZodObject<{
|
|
|
310
309
|
};
|
|
311
310
|
};
|
|
312
311
|
entity_id: string;
|
|
312
|
+
version: "cp-v1";
|
|
313
313
|
}, {
|
|
314
314
|
_id: string;
|
|
315
315
|
created_at: number;
|
|
316
316
|
agency_id: string;
|
|
317
317
|
received_at: number;
|
|
318
|
-
version: "cp-v1";
|
|
319
318
|
payload: {
|
|
320
319
|
vehicle: {
|
|
321
320
|
vehicle: {
|
|
@@ -342,5 +341,6 @@ export declare const RawVehicleEventCpV1Schema: z.ZodObject<{
|
|
|
342
341
|
};
|
|
343
342
|
};
|
|
344
343
|
entity_id: string;
|
|
344
|
+
version: "cp-v1";
|
|
345
345
|
}>;
|
|
346
346
|
export type RawVehicleEventCpV1 = z.infer<typeof RawVehicleEventCpV1Schema>;
|