@tmlmobilidade/types 20260615.1002.3 → 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.
Files changed (113) hide show
  1. package/dist/dates/common.d.ts +1 -3
  2. package/dist/dates/common.js +7 -4
  3. package/dist/dates/event.d.ts +18 -18
  4. package/dist/file-exports/file-exports.d.ts +3 -3
  5. package/dist/file-exports/ride-export.d.ts +6 -6
  6. package/dist/file-exports/sams-analysis-export.d.ts +10 -10
  7. package/dist/file-exports/stop-export.d.ts +8 -8
  8. package/dist/gtfs-new/stop-times.d.ts +2 -2
  9. package/dist/gtfs-new/trips.d.ts +3 -3
  10. package/dist/gtfs-rt/alert.d.ts +10 -10
  11. package/dist/gtfs-rt/entity-selector.d.ts +6 -6
  12. package/dist/gtfs-rt/feed-entity.d.ts +20 -20
  13. package/dist/gtfs-rt/feed-message.d.ts +26 -26
  14. package/dist/gtfs-rt/trip-descriptor.d.ts +2 -2
  15. package/dist/gtfs-rt/vehicle-position.d.ts +4 -4
  16. package/dist/gtfs-tml/fares.d.ts +4 -4
  17. package/dist/gtfs-tml/stop-times.d.ts +2 -2
  18. package/dist/gtfs-tml/trips.d.ts +3 -3
  19. package/dist/hub/api/network/pattern.d.ts +2 -2
  20. package/dist/hub/api/network/route.d.ts +2 -2
  21. package/dist/hub/api/network/stop.d.ts +2 -2
  22. package/dist/hub/api/realtime/vehicle-position.d.ts +7 -7
  23. package/dist/index.d.ts +0 -1
  24. package/dist/index.js +0 -1
  25. package/dist/metrics/demand/demand_by_category.d.ts +36 -36
  26. package/dist/metrics/index.d.ts +36 -36
  27. package/dist/notification.d.ts +10 -10
  28. package/dist/offer/fare.d.ts +16 -16
  29. package/dist/offer/parameters.d.ts +8 -8
  30. package/dist/offer/pattern.d.ts +108 -108
  31. package/dist/offer/route.d.ts +6 -6
  32. package/dist/offer/rules.d.ts +42 -42
  33. package/dist/operation/hashed-lines/hashed-line.d.ts +2 -2
  34. package/dist/operation/hashed-patterns/hashed-pattern.d.ts +2 -2
  35. package/dist/operation/hashed-trips/hashed-trip.d.ts +2 -2
  36. package/dist/operation/lines/operational-line.d.ts +4 -4
  37. package/dist/operation/rides/ride-normalized.d.ts +6 -6
  38. package/dist/operation/rides/ride.d.ts +24 -24
  39. package/dist/operation/stops/operational-stop.d.ts +5 -5
  40. package/dist/sams/sam-analysis.d.ts +10 -10
  41. package/dist/sams/sam-analysis.js +1 -1
  42. package/dist/sams/sam.d.ts +60 -60
  43. package/dist/stops/flag.d.ts +1 -1
  44. package/dist/stops/stop.d.ts +12 -12
  45. package/dist/vehicle-events/raw/ccfl/v1.d.ts +2 -2
  46. package/dist/vehicle-events/raw/cmet/v1-core.d.ts +2 -2
  47. package/dist/vehicle-events/raw/cmet/v1-log.d.ts +2 -2
  48. package/dist/vehicle-events/raw/cp/v1.d.ts +2 -2
  49. package/dist/vehicle-events/raw/crtm-aisa/v1.d.ts +16 -16
  50. package/dist/vehicle-events/raw/fertagus/v1.d.ts +16 -16
  51. package/dist/vehicle-events/raw/mobi/v1.d.ts +16 -16
  52. package/dist/vehicle-events/raw/raw-vehicle-event-base.d.ts +2 -2
  53. package/dist/vehicle-events/raw/raw-vehicle-event.d.ts +50 -50
  54. package/dist/vehicle-events/raw/tcb/v1.d.ts +16 -16
  55. package/dist/vehicle-events/raw/ttsl/v1.d.ts +2 -2
  56. package/dist/vehicle-events/simplified/simplified-vehicle-event.d.ts +7 -7
  57. package/package.json +2 -1
  58. package/dist/apex/index.d.ts +0 -2
  59. package/dist/apex/index.js +0 -2
  60. package/dist/apex/raw/banking-taps/banking-tap-v40.d.ts +0 -669
  61. package/dist/apex/raw/banking-taps/banking-tap-v40.js +0 -65
  62. package/dist/apex/raw/banking-taps/index.d.ts +0 -1
  63. package/dist/apex/raw/banking-taps/index.js +0 -1
  64. package/dist/apex/raw/index.d.ts +0 -7
  65. package/dist/apex/raw/index.js +0 -7
  66. package/dist/apex/raw/inspections/index.d.ts +0 -2
  67. package/dist/apex/raw/inspections/index.js +0 -2
  68. package/dist/apex/raw/inspections/inspection-decision-v20.d.ts +0 -481
  69. package/dist/apex/raw/inspections/inspection-decision-v20.js +0 -49
  70. package/dist/apex/raw/inspections/inspection-v20.d.ts +0 -961
  71. package/dist/apex/raw/inspections/inspection-v20.js +0 -89
  72. package/dist/apex/raw/locations/index.d.ts +0 -1
  73. package/dist/apex/raw/locations/index.js +0 -1
  74. package/dist/apex/raw/locations/location-v30.d.ts +0 -645
  75. package/dist/apex/raw/locations/location-v30.js +0 -63
  76. package/dist/apex/raw/raw-apex-transaction-base.d.ts +0 -30
  77. package/dist/apex/raw/raw-apex-transaction-base.js +0 -13
  78. package/dist/apex/raw/raw-apex-transaction.d.ts +0 -3662
  79. package/dist/apex/raw/raw-apex-transaction.js +0 -21
  80. package/dist/apex/raw/sales/index.d.ts +0 -2
  81. package/dist/apex/raw/sales/index.js +0 -2
  82. package/dist/apex/raw/sales/refund-v30.d.ts +0 -769
  83. package/dist/apex/raw/sales/refund-v30.js +0 -74
  84. package/dist/apex/raw/sales/sale-v30.d.ts +0 -757
  85. package/dist/apex/raw/sales/sale-v30.js +0 -73
  86. package/dist/apex/raw/validations/index.d.ts +0 -2
  87. package/dist/apex/raw/validations/index.js +0 -2
  88. package/dist/apex/raw/validations/validation-v20.d.ts +0 -901
  89. package/dist/apex/raw/validations/validation-v20.js +0 -85
  90. package/dist/apex/raw/validations/validation-v30.d.ts +0 -901
  91. package/dist/apex/raw/validations/validation-v30.js +0 -85
  92. package/dist/apex/simplified/any-simplified-apex.d.ts +0 -8
  93. package/dist/apex/simplified/any-simplified-apex.js +0 -2
  94. package/dist/apex/simplified/apex-validation-status.d.ts +0 -145
  95. package/dist/apex/simplified/apex-validation-status.js +0 -76
  96. package/dist/apex/simplified/index.d.ts +0 -10
  97. package/dist/apex/simplified/index.js +0 -10
  98. package/dist/apex/simplified/simplified-apex-banking-taps.d.ts +0 -81
  99. package/dist/apex/simplified/simplified-apex-banking-taps.js +0 -27
  100. package/dist/apex/simplified/simplified-apex-inspection-decision.d.ts +0 -55
  101. package/dist/apex/simplified/simplified-apex-inspection-decision.js +0 -18
  102. package/dist/apex/simplified/simplified-apex-inspection.d.ts +0 -82
  103. package/dist/apex/simplified/simplified-apex-inspection.js +0 -27
  104. package/dist/apex/simplified/simplified-apex-location.d.ts +0 -112
  105. package/dist/apex/simplified/simplified-apex-location.js +0 -20
  106. package/dist/apex/simplified/simplified-apex-on-board-refund.d.ts +0 -172
  107. package/dist/apex/simplified/simplified-apex-on-board-refund.js +0 -30
  108. package/dist/apex/simplified/simplified-apex-on-board-sale.d.ts +0 -178
  109. package/dist/apex/simplified/simplified-apex-on-board-sale.js +0 -31
  110. package/dist/apex/simplified/simplified-apex-type.d.ts +0 -9
  111. package/dist/apex/simplified/simplified-apex-type.js +0 -5
  112. package/dist/apex/simplified/simplified-apex-validation.d.ts +0 -200
  113. package/dist/apex/simplified/simplified-apex-validation.js +0 -41
@@ -45,14 +45,14 @@ export declare const RawVehicleEventTcbV1PayloadSchema: z.ZodObject<{
45
45
  start_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
46
46
  trip_id: z.ZodString;
47
47
  }, "strip", z.ZodTypeAny, {
48
- trip_id: string;
49
48
  route_id: string;
49
+ trip_id: string;
50
50
  start_time?: string | null | undefined;
51
51
  direction_id?: number | null | undefined;
52
52
  start_date?: import("../../../index.js").OperationalDate | null | undefined;
53
53
  }, {
54
- trip_id: string;
55
54
  route_id: string;
55
+ trip_id: string;
56
56
  start_time?: string | null | undefined;
57
57
  direction_id?: number | null | undefined;
58
58
  start_date?: string | null | undefined;
@@ -69,8 +69,8 @@ export declare const RawVehicleEventTcbV1PayloadSchema: z.ZodObject<{
69
69
  id: string;
70
70
  };
71
71
  trip: {
72
- trip_id: string;
73
72
  route_id: string;
73
+ trip_id: string;
74
74
  start_time?: string | null | undefined;
75
75
  direction_id?: number | null | undefined;
76
76
  start_date?: import("../../../index.js").OperationalDate | null | undefined;
@@ -91,8 +91,8 @@ export declare const RawVehicleEventTcbV1PayloadSchema: z.ZodObject<{
91
91
  id: string;
92
92
  };
93
93
  trip: {
94
- trip_id: string;
95
94
  route_id: string;
95
+ trip_id: string;
96
96
  start_time?: string | null | undefined;
97
97
  direction_id?: number | null | undefined;
98
98
  start_date?: string | null | undefined;
@@ -115,8 +115,8 @@ export declare const RawVehicleEventTcbV1PayloadSchema: z.ZodObject<{
115
115
  id: string;
116
116
  };
117
117
  trip: {
118
- trip_id: string;
119
118
  route_id: string;
119
+ trip_id: string;
120
120
  start_time?: string | null | undefined;
121
121
  direction_id?: number | null | undefined;
122
122
  start_date?: import("../../../index.js").OperationalDate | null | undefined;
@@ -145,8 +145,8 @@ export declare const RawVehicleEventTcbV1PayloadSchema: z.ZodObject<{
145
145
  id: string;
146
146
  };
147
147
  trip: {
148
- trip_id: string;
149
148
  route_id: string;
149
+ trip_id: string;
150
150
  start_time?: string | null | undefined;
151
151
  direction_id?: number | null | undefined;
152
152
  start_date?: string | null | undefined;
@@ -224,14 +224,14 @@ export declare const RawVehicleEventTcbV1Schema: z.ZodObject<{
224
224
  start_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
225
225
  trip_id: z.ZodString;
226
226
  }, "strip", z.ZodTypeAny, {
227
- trip_id: string;
228
227
  route_id: string;
228
+ trip_id: string;
229
229
  start_time?: string | null | undefined;
230
230
  direction_id?: number | null | undefined;
231
231
  start_date?: import("../../../index.js").OperationalDate | null | undefined;
232
232
  }, {
233
- trip_id: string;
234
233
  route_id: string;
234
+ trip_id: string;
235
235
  start_time?: string | null | undefined;
236
236
  direction_id?: number | null | undefined;
237
237
  start_date?: string | null | undefined;
@@ -248,8 +248,8 @@ export declare const RawVehicleEventTcbV1Schema: z.ZodObject<{
248
248
  id: string;
249
249
  };
250
250
  trip: {
251
- trip_id: string;
252
251
  route_id: string;
252
+ trip_id: string;
253
253
  start_time?: string | null | undefined;
254
254
  direction_id?: number | null | undefined;
255
255
  start_date?: import("../../../index.js").OperationalDate | null | undefined;
@@ -270,8 +270,8 @@ export declare const RawVehicleEventTcbV1Schema: z.ZodObject<{
270
270
  id: string;
271
271
  };
272
272
  trip: {
273
- trip_id: string;
274
273
  route_id: string;
274
+ trip_id: string;
275
275
  start_time?: string | null | undefined;
276
276
  direction_id?: number | null | undefined;
277
277
  start_date?: string | null | undefined;
@@ -294,8 +294,8 @@ export declare const RawVehicleEventTcbV1Schema: z.ZodObject<{
294
294
  id: string;
295
295
  };
296
296
  trip: {
297
- trip_id: string;
298
297
  route_id: string;
298
+ trip_id: string;
299
299
  start_time?: string | null | undefined;
300
300
  direction_id?: number | null | undefined;
301
301
  start_date?: import("../../../index.js").OperationalDate | null | undefined;
@@ -324,8 +324,8 @@ export declare const RawVehicleEventTcbV1Schema: z.ZodObject<{
324
324
  id: string;
325
325
  };
326
326
  trip: {
327
- trip_id: string;
328
327
  route_id: string;
328
+ trip_id: string;
329
329
  start_time?: string | null | undefined;
330
330
  direction_id?: number | null | undefined;
331
331
  start_date?: string | null | undefined;
@@ -359,15 +359,14 @@ export declare const RawVehicleEventTcbV1Schema: z.ZodObject<{
359
359
  received_at: number & {
360
360
  __brand: "UnixTimestamp";
361
361
  };
362
- version: "tcb-v1";
363
362
  payload: {
364
363
  vehicle: {
365
364
  vehicle: {
366
365
  id: string;
367
366
  };
368
367
  trip: {
369
- trip_id: string;
370
368
  route_id: string;
369
+ trip_id: string;
371
370
  start_time?: string | null | undefined;
372
371
  direction_id?: number | null | undefined;
373
372
  start_date?: import("../../../index.js").OperationalDate | null | undefined;
@@ -392,20 +391,20 @@ export declare const RawVehicleEventTcbV1Schema: z.ZodObject<{
392
391
  };
393
392
  };
394
393
  entity_id: string;
394
+ version: "tcb-v1";
395
395
  }, {
396
396
  _id: string;
397
397
  created_at: number;
398
398
  agency_id: string;
399
399
  received_at: number;
400
- version: "tcb-v1";
401
400
  payload: {
402
401
  vehicle: {
403
402
  vehicle: {
404
403
  id: string;
405
404
  };
406
405
  trip: {
407
- trip_id: string;
408
406
  route_id: string;
407
+ trip_id: string;
409
408
  start_time?: string | null | undefined;
410
409
  direction_id?: number | null | undefined;
411
410
  start_date?: string | null | undefined;
@@ -430,5 +429,6 @@ export declare const RawVehicleEventTcbV1Schema: z.ZodObject<{
430
429
  };
431
430
  };
432
431
  entity_id: string;
432
+ version: "tcb-v1";
433
433
  }>;
434
434
  export type RawVehicleEventTcbV1 = z.infer<typeof RawVehicleEventTcbV1Schema>;
@@ -307,7 +307,6 @@ export declare const RawVehicleEventTtslV1Schema: z.ZodObject<{
307
307
  received_at: number & {
308
308
  __brand: "UnixTimestamp";
309
309
  };
310
- version: "ttsl-v1";
311
310
  payload: {
312
311
  vehicle: {
313
312
  vehicle: {
@@ -336,12 +335,12 @@ export declare const RawVehicleEventTtslV1Schema: z.ZodObject<{
336
335
  };
337
336
  };
338
337
  entity_id: string;
338
+ version: "ttsl-v1";
339
339
  }, {
340
340
  _id: string;
341
341
  created_at: number;
342
342
  agency_id: string;
343
343
  received_at: number;
344
- version: "ttsl-v1";
345
344
  payload: {
346
345
  vehicle: {
347
346
  vehicle: {
@@ -370,5 +369,6 @@ export declare const RawVehicleEventTtslV1Schema: z.ZodObject<{
370
369
  };
371
370
  };
372
371
  entity_id: string;
372
+ version: "ttsl-v1";
373
373
  }>;
374
374
  export type RawVehicleEventTtslV1 = z.infer<typeof RawVehicleEventTtslV1Schema>;
@@ -25,22 +25,22 @@ export declare const SimplifiedVehicleEventSchema: z.ZodObject<{
25
25
  __brand: "UnixTimestamp";
26
26
  };
27
27
  agency_id: string;
28
- received_at: number & {
29
- __brand: "UnixTimestamp";
30
- };
31
28
  pattern_id: string | null;
32
- stop_id: string | null;
33
29
  trip_id: string;
34
- vehicle_id: string;
35
30
  operational_date: string & {
36
31
  __brand: "OperationalDate";
37
32
  };
33
+ vehicle_id: string;
34
+ stop_id: string | null;
38
35
  latitude: number;
39
36
  longitude: number;
40
37
  bearing: number | null;
41
38
  odometer: number | null;
42
39
  speed: number | null;
43
40
  current_status: "INCOMING_AT" | "STOPPED_AT" | "IN_TRANSIT_TO" | null;
41
+ received_at: number & {
42
+ __brand: "UnixTimestamp";
43
+ };
44
44
  door: string | null;
45
45
  driver_id: string | null;
46
46
  extra_trip_id: string | null;
@@ -49,12 +49,12 @@ export declare const SimplifiedVehicleEventSchema: z.ZodObject<{
49
49
  _id: string;
50
50
  created_at: number;
51
51
  agency_id: string;
52
- received_at: number;
53
52
  trip_id: string;
54
- vehicle_id: string;
55
53
  operational_date: string;
54
+ vehicle_id: string;
56
55
  latitude: number;
57
56
  longitude: number;
57
+ received_at: number;
58
58
  pattern_id?: string | null | undefined;
59
59
  stop_id?: string | null | undefined;
60
60
  bearing?: number | null | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tmlmobilidade/types",
3
- "version": "20260615.1002.3",
3
+ "version": "20260615.1437.21",
4
4
  "author": {
5
5
  "email": "iso@tmlmobilidade.pt",
6
6
  "name": "TML-ISO"
@@ -36,6 +36,7 @@
36
36
  "watch": "tsc-watch --onSuccess 'resolve-tspaths'"
37
37
  },
38
38
  "dependencies": {
39
+ "@tmlmobilidade/go-types-apex": "*",
39
40
  "@tmlmobilidade/go-types-shared": "*",
40
41
  "@types/geojson": "7946.0.16",
41
42
  "gtfs-types": "5.1.0",
@@ -1,2 +0,0 @@
1
- export * from './raw/index.js';
2
- export * from './simplified/index.js';
@@ -1,2 +0,0 @@
1
- export * from './raw/index.js';
2
- export * from './simplified/index.js';