@tmlmobilidade/types 20260121.2332.6 → 20260128.2248.28

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 (150) hide show
  1. package/dist/_common/comment.d.ts +24 -24
  2. package/dist/_common/document.d.ts +3 -3
  3. package/dist/_common/document.js +1 -1
  4. package/dist/_common/status.d.ts +2 -2
  5. package/dist/_common/status.js +1 -1
  6. package/dist/_common/unix-timestamp.js +1 -0
  7. package/dist/agency.d.ts +6 -6
  8. package/dist/alerts/alert.d.ts +262 -0
  9. package/dist/alerts/alert.js +34 -0
  10. package/dist/alerts/cause-effect-map.d.ts +106 -0
  11. package/dist/alerts/cause-effect-map.js +94 -0
  12. package/dist/alerts/cause.d.ts +17 -0
  13. package/dist/alerts/cause.js +45 -0
  14. package/dist/alerts/effect.d.ts +17 -0
  15. package/dist/alerts/effect.js +35 -0
  16. package/dist/alerts/index.d.ts +6 -0
  17. package/dist/alerts/index.js +6 -0
  18. package/dist/alerts/query.d.ts +9 -0
  19. package/dist/alerts/query.js +6 -0
  20. package/dist/alerts/reference-type.d.ts +4 -0
  21. package/dist/alerts/reference-type.js +10 -0
  22. package/dist/apex/simplified-apex-location.d.ts +2 -12
  23. package/dist/apex/simplified-apex-location.js +1 -1
  24. package/dist/apex/simplified-apex-on-board-refund.d.ts +2 -12
  25. package/dist/apex/simplified-apex-on-board-refund.js +1 -1
  26. package/dist/apex/simplified-apex-on-board-sale.d.ts +12 -19
  27. package/dist/apex/simplified-apex-on-board-sale.js +2 -2
  28. package/dist/apex/simplified-apex-validation.d.ts +6 -16
  29. package/dist/apex/simplified-apex-validation.js +1 -1
  30. package/dist/auth/role.d.ts +718 -130
  31. package/dist/auth/session.d.ts +6 -6
  32. package/dist/auth/user.d.ts +1182 -270
  33. package/dist/auth/verification-token.d.ts +4 -4
  34. package/dist/calendar/event.d.ts +43 -0
  35. package/dist/calendar/event.js +16 -0
  36. package/dist/calendar/index.d.ts +1 -0
  37. package/dist/calendar/index.js +2 -0
  38. package/dist/dates/annotation.d.ts +6 -6
  39. package/dist/dates/date.d.ts +32 -0
  40. package/dist/dates/date.js +18 -0
  41. package/dist/dates/index.d.ts +2 -0
  42. package/dist/dates/index.js +2 -0
  43. package/dist/dates/period.d.ts +94 -0
  44. package/dist/dates/period.js +14 -0
  45. package/dist/file-exports/base.d.ts +9 -9
  46. package/dist/file-exports/file-exports.d.ts +7 -7
  47. package/dist/file-exports/ride-export.d.ts +14 -14
  48. package/dist/file-exports/ride-export.js +2 -2
  49. package/dist/gtfs/cause.d.ts +10 -0
  50. package/dist/gtfs/cause.js +18 -0
  51. package/dist/gtfs/effect.d.ts +10 -0
  52. package/dist/gtfs/effect.js +17 -0
  53. package/dist/gtfs/index.d.ts +2 -1
  54. package/dist/gtfs/index.js +2 -1
  55. package/dist/index.d.ts +5 -2
  56. package/dist/index.js +5 -2
  57. package/dist/locations/queries.d.ts +2 -2
  58. package/dist/metrics/demand/demand_by_agency.d.ts +8 -8
  59. package/dist/metrics/demand/demand_by_category.d.ts +12 -12
  60. package/dist/metrics/demand/demand_by_line.d.ts +4 -4
  61. package/dist/metrics/demand/demand_by_pattern.d.ts +8 -8
  62. package/dist/metrics/demand/demand_by_product.d.ts +12 -12
  63. package/dist/metrics/index.d.ts +93 -48
  64. package/dist/metrics/index.js +4 -1
  65. package/dist/metrics/passenger-impact/index.d.ts +1 -0
  66. package/dist/metrics/passenger-impact/index.js +1 -0
  67. package/dist/metrics/passenger-impact/passenger-impact.d.ts +97 -0
  68. package/dist/metrics/passenger-impact/passenger-impact.js +22 -0
  69. package/dist/metrics/supply/supply_by_agency.d.ts +4 -4
  70. package/dist/notification.d.ts +18 -18
  71. package/dist/offer/index.d.ts +5 -0
  72. package/dist/offer/index.js +5 -0
  73. package/dist/offer/line.d.ts +296 -0
  74. package/dist/offer/line.js +60 -0
  75. package/dist/offer/pattern.d.ts +3608 -0
  76. package/dist/offer/pattern.js +75 -0
  77. package/dist/offer/route.d.ts +187 -0
  78. package/dist/offer/route.js +33 -0
  79. package/dist/offer/scheduleRule.d.ts +80 -0
  80. package/dist/offer/scheduleRule.js +50 -0
  81. package/dist/offer/typology.d.ts +124 -0
  82. package/dist/offer/typology.js +30 -0
  83. package/dist/organization.d.ts +20 -20
  84. package/dist/permissions/alerts.d.ts +13 -19
  85. package/dist/permissions/alerts.js +8 -13
  86. package/dist/permissions/annotations.d.ts +25 -0
  87. package/dist/permissions/annotations.js +16 -0
  88. package/dist/permissions/fares.d.ts +25 -0
  89. package/dist/permissions/fares.js +16 -0
  90. package/dist/permissions/index.d.ts +196 -21
  91. package/dist/permissions/index.js +142 -6
  92. package/dist/permissions/lines.d.ts +25 -0
  93. package/dist/permissions/lines.js +16 -0
  94. package/dist/permissions/periods.d.ts +25 -0
  95. package/dist/permissions/periods.js +16 -0
  96. package/dist/permissions/typologies.d.ts +25 -0
  97. package/dist/permissions/typologies.js +16 -0
  98. package/dist/permissions/vehicles.d.ts +25 -0
  99. package/dist/permissions/vehicles.js +16 -0
  100. package/dist/permissions/zones.d.ts +25 -0
  101. package/dist/permissions/zones.js +16 -0
  102. package/dist/plans/gtfs-validation.d.ts +30 -30
  103. package/dist/plans/plan.d.ts +6 -6
  104. package/dist/proposed-change.d.ts +12 -12
  105. package/dist/rides/batch-query.d.ts +52 -0
  106. package/dist/rides/batch-query.js +54 -0
  107. package/dist/rides/index.d.ts +1 -0
  108. package/dist/rides/index.js +1 -0
  109. package/dist/rides/ride-acceptance.d.ts +105 -105
  110. package/dist/rides/ride-acceptance.js +2 -2
  111. package/dist/rides/ride-audit.d.ts +21 -21
  112. package/dist/rides/ride-normalized.d.ts +808 -21
  113. package/dist/rides/ride-normalized.js +31 -1
  114. package/dist/rides/ride.d.ts +6 -6
  115. package/dist/sams/sam.d.ts +0 -15
  116. package/dist/sams/sam.js +2 -2
  117. package/dist/stops/connections.d.ts +1 -0
  118. package/dist/stops/connections.js +1 -1
  119. package/dist/stops/equipment.d.ts +1 -0
  120. package/dist/stops/equipment.js +1 -1
  121. package/dist/stops/parent-station.d.ts +6 -6
  122. package/dist/stops/stop-area.d.ts +6 -6
  123. package/dist/stops/stop.d.ts +69 -69
  124. package/dist/ticketing/fare.d.ts +137 -0
  125. package/dist/ticketing/fare.js +44 -0
  126. package/dist/ticketing/index.d.ts +2 -0
  127. package/dist/ticketing/index.js +2 -0
  128. package/dist/ticketing/zone.d.ts +220 -0
  129. package/dist/ticketing/zone.js +34 -0
  130. package/dist/vehicle/emission.d.ts +3 -0
  131. package/dist/vehicle/emission.js +12 -0
  132. package/dist/vehicle/index.d.ts +4 -0
  133. package/dist/vehicle/index.js +4 -0
  134. package/dist/vehicle/propulsion.d.ts +3 -0
  135. package/dist/vehicle/propulsion.js +14 -0
  136. package/dist/vehicle/vehicle.d.ts +189 -0
  137. package/dist/vehicle/vehicle.js +27 -0
  138. package/dist/vehicle/wheelchair.d.ts +3 -0
  139. package/dist/vehicle/wheelchair.js +10 -0
  140. package/dist/vehicle-events/clickhouse-vehicle-event.d.ts +2 -6
  141. package/dist/vehicle-events/simplified-vehicle-event.d.ts +2 -6
  142. package/dist/vehicle-events/simplified-vehicle-event.js +1 -1
  143. package/dist/zone.d.ts +6 -6
  144. package/package.json +2 -2
  145. package/dist/alert.d.ts +0 -265
  146. package/dist/alert.js +0 -42
  147. package/dist/gtfs/cause-effetcs.d.ts +0 -86
  148. package/dist/gtfs/cause-effetcs.js +0 -31
  149. package/dist/permissions/dates.d.ts +0 -25
  150. package/dist/permissions/dates.js +0 -16
@@ -1,5 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  export * from './demand/index.js';
3
+ export * from './passenger-impact/index.js';
3
4
  export * from './realtime/index.js';
4
5
  export * from './supply/index.js';
5
6
  export declare const MetricSchema: z.ZodDiscriminatedUnion<"metric", [z.ZodObject<{
@@ -98,17 +99,17 @@ export declare const MetricSchema: z.ZodDiscriminatedUnion<"metric", [z.ZodObjec
98
99
  period: z.ZodEnum<["1", "2", "3"]>;
99
100
  qty: z.ZodNumber;
100
101
  }, "strip", z.ZodTypeAny, {
102
+ period: "1" | "2" | "3";
101
103
  qty: number;
102
104
  day_type: "1" | "2" | "3";
103
105
  holiday: "0" | "1";
104
106
  notes: string | null;
105
- period: "1" | "2" | "3";
106
107
  }, {
108
+ period: "1" | "2" | "3";
107
109
  qty: number;
108
110
  day_type: "1" | "2" | "3";
109
111
  holiday: "0" | "1";
110
112
  notes: string | null;
111
- period: "1" | "2" | "3";
112
113
  }>>;
113
114
  metric: z.ZodLiteral<"demand_by_line_by_day">;
114
115
  }, "strip", z.ZodTypeAny, {
@@ -118,11 +119,11 @@ export declare const MetricSchema: z.ZodDiscriminatedUnion<"metric", [z.ZodObjec
118
119
  generated_at: Date;
119
120
  metric: "demand_by_line_by_day";
120
121
  data: Record<string, {
122
+ period: "1" | "2" | "3";
121
123
  qty: number;
122
124
  day_type: "1" | "2" | "3";
123
125
  holiday: "0" | "1";
124
126
  notes: string | null;
125
- period: "1" | "2" | "3";
126
127
  }>;
127
128
  description?: string | undefined;
128
129
  }, {
@@ -132,11 +133,11 @@ export declare const MetricSchema: z.ZodDiscriminatedUnion<"metric", [z.ZodObjec
132
133
  generated_at: Date;
133
134
  metric: "demand_by_line_by_day";
134
135
  data: Record<string, {
136
+ period: "1" | "2" | "3";
135
137
  qty: number;
136
138
  day_type: "1" | "2" | "3";
137
139
  holiday: "0" | "1";
138
140
  notes: string | null;
139
- period: "1" | "2" | "3";
140
141
  }>;
141
142
  description?: string | undefined;
142
143
  }>, z.ZodObject<{
@@ -235,17 +236,17 @@ export declare const MetricSchema: z.ZodDiscriminatedUnion<"metric", [z.ZodObjec
235
236
  period: z.ZodEnum<["1", "2", "3"]>;
236
237
  qty: z.ZodNumber;
237
238
  }, "strip", z.ZodTypeAny, {
239
+ period: "1" | "2" | "3";
238
240
  qty: number;
239
241
  day_type: "1" | "2" | "3";
240
242
  holiday: "0" | "1";
241
243
  notes: string | null;
242
- period: "1" | "2" | "3";
243
244
  }, {
245
+ period: "1" | "2" | "3";
244
246
  qty: number;
245
247
  day_type: "1" | "2" | "3";
246
248
  holiday: "0" | "1";
247
249
  notes: string | null;
248
- period: "1" | "2" | "3";
249
250
  }>>;
250
251
  metric: z.ZodLiteral<"demand_by_pattern_by_day">;
251
252
  }, "strip", z.ZodTypeAny, {
@@ -255,11 +256,11 @@ export declare const MetricSchema: z.ZodDiscriminatedUnion<"metric", [z.ZodObjec
255
256
  generated_at: Date;
256
257
  metric: "demand_by_pattern_by_day";
257
258
  data: Record<string, {
259
+ period: "1" | "2" | "3";
258
260
  qty: number;
259
261
  day_type: "1" | "2" | "3";
260
262
  holiday: "0" | "1";
261
263
  notes: string | null;
262
- period: "1" | "2" | "3";
263
264
  }>;
264
265
  description?: string | undefined;
265
266
  }, {
@@ -269,11 +270,11 @@ export declare const MetricSchema: z.ZodDiscriminatedUnion<"metric", [z.ZodObjec
269
270
  generated_at: Date;
270
271
  metric: "demand_by_pattern_by_day";
271
272
  data: Record<string, {
273
+ period: "1" | "2" | "3";
272
274
  qty: number;
273
275
  day_type: "1" | "2" | "3";
274
276
  holiday: "0" | "1";
275
277
  notes: string | null;
276
- period: "1" | "2" | "3";
277
278
  }>;
278
279
  description?: string | undefined;
279
280
  }>, z.ZodObject<{
@@ -411,17 +412,17 @@ export declare const MetricSchema: z.ZodDiscriminatedUnion<"metric", [z.ZodObjec
411
412
  period: z.ZodEnum<["1", "2", "3"]>;
412
413
  qty: z.ZodNumber;
413
414
  }, "strip", z.ZodTypeAny, {
415
+ period: "1" | "2" | "3";
414
416
  qty: number;
415
417
  day_type: "1" | "2" | "3";
416
418
  holiday: "0" | "1";
417
419
  notes: string | null;
418
- period: "1" | "2" | "3";
419
420
  }, {
421
+ period: "1" | "2" | "3";
420
422
  qty: number;
421
423
  day_type: "1" | "2" | "3";
422
424
  holiday: "0" | "1";
423
425
  notes: string | null;
424
- period: "1" | "2" | "3";
425
426
  }>>;
426
427
  metric: z.ZodLiteral<"demand_by_pattern_hour_by_day">;
427
428
  }, "strip", z.ZodTypeAny, {
@@ -434,11 +435,11 @@ export declare const MetricSchema: z.ZodDiscriminatedUnion<"metric", [z.ZodObjec
434
435
  generated_at: Date;
435
436
  metric: "demand_by_pattern_hour_by_day";
436
437
  data: Record<string, {
438
+ period: "1" | "2" | "3";
437
439
  qty: number;
438
440
  day_type: "1" | "2" | "3";
439
441
  holiday: "0" | "1";
440
442
  notes: string | null;
441
- period: "1" | "2" | "3";
442
443
  }>;
443
444
  description?: string | undefined;
444
445
  }, {
@@ -451,11 +452,11 @@ export declare const MetricSchema: z.ZodDiscriminatedUnion<"metric", [z.ZodObjec
451
452
  generated_at: Date;
452
453
  metric: "demand_by_pattern_hour_by_day";
453
454
  data: Record<string, {
455
+ period: "1" | "2" | "3";
454
456
  qty: number;
455
457
  day_type: "1" | "2" | "3";
456
458
  holiday: "0" | "1";
457
459
  notes: string | null;
458
- period: "1" | "2" | "3";
459
460
  }>;
460
461
  description?: string | undefined;
461
462
  }>, z.ZodObject<{
@@ -554,17 +555,17 @@ export declare const MetricSchema: z.ZodDiscriminatedUnion<"metric", [z.ZodObjec
554
555
  period: z.ZodEnum<["1", "2", "3"]>;
555
556
  qty: z.ZodNumber;
556
557
  }, "strip", z.ZodTypeAny, {
558
+ period: "1" | "2" | "3";
557
559
  qty: number;
558
560
  day_type: "1" | "2" | "3";
559
561
  holiday: "0" | "1";
560
562
  notes: string | null;
561
- period: "1" | "2" | "3";
562
563
  }, {
564
+ period: "1" | "2" | "3";
563
565
  qty: number;
564
566
  day_type: "1" | "2" | "3";
565
567
  holiday: "0" | "1";
566
568
  notes: string | null;
567
- period: "1" | "2" | "3";
568
569
  }>>;
569
570
  metric: z.ZodLiteral<"demand_by_agency_by_day">;
570
571
  }, "strip", z.ZodTypeAny, {
@@ -574,11 +575,11 @@ export declare const MetricSchema: z.ZodDiscriminatedUnion<"metric", [z.ZodObjec
574
575
  generated_at: Date;
575
576
  metric: "demand_by_agency_by_day";
576
577
  data: Record<string, {
578
+ period: "1" | "2" | "3";
577
579
  qty: number;
578
580
  day_type: "1" | "2" | "3";
579
581
  holiday: "0" | "1";
580
582
  notes: string | null;
581
- period: "1" | "2" | "3";
582
583
  }>;
583
584
  description?: string | undefined;
584
585
  }, {
@@ -588,11 +589,11 @@ export declare const MetricSchema: z.ZodDiscriminatedUnion<"metric", [z.ZodObjec
588
589
  generated_at: Date;
589
590
  metric: "demand_by_agency_by_day";
590
591
  data: Record<string, {
592
+ period: "1" | "2" | "3";
591
593
  qty: number;
592
594
  day_type: "1" | "2" | "3";
593
595
  holiday: "0" | "1";
594
596
  notes: string | null;
595
- period: "1" | "2" | "3";
596
597
  }>;
597
598
  description?: string | undefined;
598
599
  }>, z.ZodObject<{
@@ -614,18 +615,18 @@ export declare const MetricSchema: z.ZodDiscriminatedUnion<"metric", [z.ZodObjec
614
615
  products: z.ZodRecord<z.ZodString, z.ZodNumber>;
615
616
  qty: z.ZodNumber;
616
617
  }, "strip", z.ZodTypeAny, {
618
+ period: "1" | "2" | "3";
617
619
  qty: number;
618
620
  day_type: "1" | "2" | "3";
619
621
  holiday: "0" | "1";
620
622
  notes: string | null;
621
- period: "1" | "2" | "3";
622
623
  products: Record<string, number>;
623
624
  }, {
625
+ period: "1" | "2" | "3";
624
626
  qty: number;
625
627
  day_type: "1" | "2" | "3";
626
628
  holiday: "0" | "1";
627
629
  notes: string | null;
628
- period: "1" | "2" | "3";
629
630
  products: Record<string, number>;
630
631
  }>>;
631
632
  metric: z.ZodLiteral<"demand_by_agency_by_day_by_product">;
@@ -636,11 +637,11 @@ export declare const MetricSchema: z.ZodDiscriminatedUnion<"metric", [z.ZodObjec
636
637
  generated_at: Date;
637
638
  metric: "demand_by_agency_by_day_by_product";
638
639
  data: Record<string, {
640
+ period: "1" | "2" | "3";
639
641
  qty: number;
640
642
  day_type: "1" | "2" | "3";
641
643
  holiday: "0" | "1";
642
644
  notes: string | null;
643
- period: "1" | "2" | "3";
644
645
  products: Record<string, number>;
645
646
  }>;
646
647
  description?: string | undefined;
@@ -651,11 +652,11 @@ export declare const MetricSchema: z.ZodDiscriminatedUnion<"metric", [z.ZodObjec
651
652
  generated_at: Date;
652
653
  metric: "demand_by_agency_by_day_by_product";
653
654
  data: Record<string, {
655
+ period: "1" | "2" | "3";
654
656
  qty: number;
655
657
  day_type: "1" | "2" | "3";
656
658
  holiday: "0" | "1";
657
659
  notes: string | null;
658
- period: "1" | "2" | "3";
659
660
  products: Record<string, number>;
660
661
  }>;
661
662
  description?: string | undefined;
@@ -670,17 +671,17 @@ export declare const MetricSchema: z.ZodDiscriminatedUnion<"metric", [z.ZodObjec
670
671
  period: z.ZodEnum<["1", "2", "3"]>;
671
672
  qty: z.ZodNumber;
672
673
  }, "strip", z.ZodTypeAny, {
674
+ period: "1" | "2" | "3";
673
675
  qty: number;
674
676
  day_type: "1" | "2" | "3";
675
677
  holiday: "0" | "1";
676
678
  notes: string | null;
677
- period: "1" | "2" | "3";
678
679
  }, {
680
+ period: "1" | "2" | "3";
679
681
  qty: number;
680
682
  day_type: "1" | "2" | "3";
681
683
  holiday: "0" | "1";
682
684
  notes: string | null;
683
- period: "1" | "2" | "3";
684
685
  }>>;
685
686
  metric: z.ZodLiteral<"demand_by_product_by_agency_by_day">;
686
687
  properties: z.ZodObject<{
@@ -701,11 +702,11 @@ export declare const MetricSchema: z.ZodDiscriminatedUnion<"metric", [z.ZodObjec
701
702
  generated_at: Date;
702
703
  metric: "demand_by_product_by_agency_by_day";
703
704
  data: Record<string, {
705
+ period: "1" | "2" | "3";
704
706
  qty: number;
705
707
  day_type: "1" | "2" | "3";
706
708
  holiday: "0" | "1";
707
709
  notes: string | null;
708
- period: "1" | "2" | "3";
709
710
  }>;
710
711
  description?: string | undefined;
711
712
  }, {
@@ -716,11 +717,11 @@ export declare const MetricSchema: z.ZodDiscriminatedUnion<"metric", [z.ZodObjec
716
717
  generated_at: Date;
717
718
  metric: "demand_by_product_by_agency_by_day";
718
719
  data: Record<string, {
720
+ period: "1" | "2" | "3";
719
721
  qty: number;
720
722
  day_type: "1" | "2" | "3";
721
723
  holiday: "0" | "1";
722
724
  notes: string | null;
723
- period: "1" | "2" | "3";
724
725
  }>;
725
726
  description?: string | undefined;
726
727
  }>, z.ZodObject<{
@@ -822,17 +823,17 @@ export declare const MetricSchema: z.ZodDiscriminatedUnion<"metric", [z.ZodObjec
822
823
  period: z.ZodEnum<["1", "2", "3"]>;
823
824
  qty: z.ZodNumber;
824
825
  }, "strip", z.ZodTypeAny, {
826
+ period: "1" | "2" | "3";
825
827
  qty: number;
826
828
  day_type: "1" | "2" | "3";
827
829
  holiday: "0" | "1";
828
830
  notes: string | null;
829
- period: "1" | "2" | "3";
830
831
  }, {
832
+ period: "1" | "2" | "3";
831
833
  qty: number;
832
834
  day_type: "1" | "2" | "3";
833
835
  holiday: "0" | "1";
834
836
  notes: string | null;
835
- period: "1" | "2" | "3";
836
837
  }>>;
837
838
  metric: z.ZodLiteral<"demand_by_product_by_line_by_day">;
838
839
  properties: z.ZodObject<{
@@ -853,11 +854,11 @@ export declare const MetricSchema: z.ZodDiscriminatedUnion<"metric", [z.ZodObjec
853
854
  generated_at: Date;
854
855
  metric: "demand_by_product_by_line_by_day";
855
856
  data: Record<string, {
857
+ period: "1" | "2" | "3";
856
858
  qty: number;
857
859
  day_type: "1" | "2" | "3";
858
860
  holiday: "0" | "1";
859
861
  notes: string | null;
860
- period: "1" | "2" | "3";
861
862
  }>;
862
863
  description?: string | undefined;
863
864
  }, {
@@ -868,11 +869,11 @@ export declare const MetricSchema: z.ZodDiscriminatedUnion<"metric", [z.ZodObjec
868
869
  generated_at: Date;
869
870
  metric: "demand_by_product_by_line_by_day";
870
871
  data: Record<string, {
872
+ period: "1" | "2" | "3";
871
873
  qty: number;
872
874
  day_type: "1" | "2" | "3";
873
875
  holiday: "0" | "1";
874
876
  notes: string | null;
875
- period: "1" | "2" | "3";
876
877
  }>;
877
878
  description?: string | undefined;
878
879
  }>, z.ZodObject<{
@@ -974,17 +975,17 @@ export declare const MetricSchema: z.ZodDiscriminatedUnion<"metric", [z.ZodObjec
974
975
  period: z.ZodEnum<["1", "2", "3"]>;
975
976
  qty: z.ZodNumber;
976
977
  }, "strip", z.ZodTypeAny, {
978
+ period: "1" | "2" | "3";
977
979
  qty: number;
978
980
  day_type: "1" | "2" | "3";
979
981
  holiday: boolean;
980
982
  notes: string | null;
981
- period: "1" | "2" | "3";
982
983
  }, {
984
+ period: "1" | "2" | "3";
983
985
  qty: number;
984
986
  day_type: "1" | "2" | "3";
985
987
  holiday: boolean;
986
988
  notes: string | null;
987
- period: "1" | "2" | "3";
988
989
  }>>;
989
990
  metric: z.ZodLiteral<"demand_by_product_by_pattern_by_day">;
990
991
  properties: z.ZodObject<{
@@ -1005,11 +1006,11 @@ export declare const MetricSchema: z.ZodDiscriminatedUnion<"metric", [z.ZodObjec
1005
1006
  generated_at: Date;
1006
1007
  metric: "demand_by_product_by_pattern_by_day";
1007
1008
  data: Record<string, {
1009
+ period: "1" | "2" | "3";
1008
1010
  qty: number;
1009
1011
  day_type: "1" | "2" | "3";
1010
1012
  holiday: boolean;
1011
1013
  notes: string | null;
1012
- period: "1" | "2" | "3";
1013
1014
  }>;
1014
1015
  description?: string | undefined;
1015
1016
  }, {
@@ -1020,11 +1021,11 @@ export declare const MetricSchema: z.ZodDiscriminatedUnion<"metric", [z.ZodObjec
1020
1021
  generated_at: Date;
1021
1022
  metric: "demand_by_product_by_pattern_by_day";
1022
1023
  data: Record<string, {
1024
+ period: "1" | "2" | "3";
1023
1025
  qty: number;
1024
1026
  day_type: "1" | "2" | "3";
1025
1027
  holiday: boolean;
1026
1028
  notes: string | null;
1027
- period: "1" | "2" | "3";
1028
1029
  }>;
1029
1030
  description?: string | undefined;
1030
1031
  }>, z.ZodObject<{
@@ -1126,17 +1127,17 @@ export declare const MetricSchema: z.ZodDiscriminatedUnion<"metric", [z.ZodObjec
1126
1127
  period: z.ZodEnum<["1", "2", "3"]>;
1127
1128
  qty: z.ZodNumber;
1128
1129
  }, "strip", z.ZodTypeAny, {
1130
+ period: "1" | "2" | "3";
1129
1131
  qty: number;
1130
1132
  day_type: "1" | "2" | "3";
1131
1133
  holiday: boolean;
1132
1134
  notes: string | null;
1133
- period: "1" | "2" | "3";
1134
1135
  }, {
1136
+ period: "1" | "2" | "3";
1135
1137
  qty: number;
1136
1138
  day_type: "1" | "2" | "3";
1137
1139
  holiday: boolean;
1138
1140
  notes: string | null;
1139
- period: "1" | "2" | "3";
1140
1141
  }>>;
1141
1142
  metric: z.ZodLiteral<"demand_by_category_by_agency_by_day">;
1142
1143
  properties: z.ZodObject<{
@@ -1157,11 +1158,11 @@ export declare const MetricSchema: z.ZodDiscriminatedUnion<"metric", [z.ZodObjec
1157
1158
  generated_at: Date;
1158
1159
  metric: "demand_by_category_by_agency_by_day";
1159
1160
  data: Record<string, {
1161
+ period: "1" | "2" | "3";
1160
1162
  qty: number;
1161
1163
  day_type: "1" | "2" | "3";
1162
1164
  holiday: boolean;
1163
1165
  notes: string | null;
1164
- period: "1" | "2" | "3";
1165
1166
  }>;
1166
1167
  description?: string | undefined;
1167
1168
  }, {
@@ -1172,11 +1173,11 @@ export declare const MetricSchema: z.ZodDiscriminatedUnion<"metric", [z.ZodObjec
1172
1173
  generated_at: Date;
1173
1174
  metric: "demand_by_category_by_agency_by_day";
1174
1175
  data: Record<string, {
1176
+ period: "1" | "2" | "3";
1175
1177
  qty: number;
1176
1178
  day_type: "1" | "2" | "3";
1177
1179
  holiday: boolean;
1178
1180
  notes: string | null;
1179
- period: "1" | "2" | "3";
1180
1181
  }>;
1181
1182
  description?: string | undefined;
1182
1183
  }>, z.ZodObject<{
@@ -1278,17 +1279,17 @@ export declare const MetricSchema: z.ZodDiscriminatedUnion<"metric", [z.ZodObjec
1278
1279
  period: z.ZodEnum<["1", "2", "3"]>;
1279
1280
  qty: z.ZodNumber;
1280
1281
  }, "strip", z.ZodTypeAny, {
1282
+ period: "1" | "2" | "3";
1281
1283
  qty: number;
1282
1284
  day_type: "1" | "2" | "3";
1283
1285
  holiday: boolean;
1284
1286
  notes: string | null;
1285
- period: "1" | "2" | "3";
1286
1287
  }, {
1288
+ period: "1" | "2" | "3";
1287
1289
  qty: number;
1288
1290
  day_type: "1" | "2" | "3";
1289
1291
  holiday: boolean;
1290
1292
  notes: string | null;
1291
- period: "1" | "2" | "3";
1292
1293
  }>>;
1293
1294
  metric: z.ZodLiteral<"demand_by_category_by_line_by_day">;
1294
1295
  properties: z.ZodObject<{
@@ -1309,11 +1310,11 @@ export declare const MetricSchema: z.ZodDiscriminatedUnion<"metric", [z.ZodObjec
1309
1310
  generated_at: Date;
1310
1311
  metric: "demand_by_category_by_line_by_day";
1311
1312
  data: Record<string, {
1313
+ period: "1" | "2" | "3";
1312
1314
  qty: number;
1313
1315
  day_type: "1" | "2" | "3";
1314
1316
  holiday: boolean;
1315
1317
  notes: string | null;
1316
- period: "1" | "2" | "3";
1317
1318
  }>;
1318
1319
  description?: string | undefined;
1319
1320
  }, {
@@ -1324,11 +1325,11 @@ export declare const MetricSchema: z.ZodDiscriminatedUnion<"metric", [z.ZodObjec
1324
1325
  generated_at: Date;
1325
1326
  metric: "demand_by_category_by_line_by_day";
1326
1327
  data: Record<string, {
1328
+ period: "1" | "2" | "3";
1327
1329
  qty: number;
1328
1330
  day_type: "1" | "2" | "3";
1329
1331
  holiday: boolean;
1330
1332
  notes: string | null;
1331
- period: "1" | "2" | "3";
1332
1333
  }>;
1333
1334
  description?: string | undefined;
1334
1335
  }>, z.ZodObject<{
@@ -1430,17 +1431,17 @@ export declare const MetricSchema: z.ZodDiscriminatedUnion<"metric", [z.ZodObjec
1430
1431
  period: z.ZodEnum<["1", "2", "3"]>;
1431
1432
  qty: z.ZodNumber;
1432
1433
  }, "strip", z.ZodTypeAny, {
1434
+ period: "1" | "2" | "3";
1433
1435
  qty: number;
1434
1436
  day_type: "1" | "2" | "3";
1435
1437
  holiday: boolean;
1436
1438
  notes: string | null;
1437
- period: "1" | "2" | "3";
1438
1439
  }, {
1440
+ period: "1" | "2" | "3";
1439
1441
  qty: number;
1440
1442
  day_type: "1" | "2" | "3";
1441
1443
  holiday: boolean;
1442
1444
  notes: string | null;
1443
- period: "1" | "2" | "3";
1444
1445
  }>>;
1445
1446
  metric: z.ZodLiteral<"demand_by_category_by_pattern_by_day">;
1446
1447
  properties: z.ZodObject<{
@@ -1461,11 +1462,11 @@ export declare const MetricSchema: z.ZodDiscriminatedUnion<"metric", [z.ZodObjec
1461
1462
  generated_at: Date;
1462
1463
  metric: "demand_by_category_by_pattern_by_day";
1463
1464
  data: Record<string, {
1465
+ period: "1" | "2" | "3";
1464
1466
  qty: number;
1465
1467
  day_type: "1" | "2" | "3";
1466
1468
  holiday: boolean;
1467
1469
  notes: string | null;
1468
- period: "1" | "2" | "3";
1469
1470
  }>;
1470
1471
  description?: string | undefined;
1471
1472
  }, {
@@ -1476,11 +1477,11 @@ export declare const MetricSchema: z.ZodDiscriminatedUnion<"metric", [z.ZodObjec
1476
1477
  generated_at: Date;
1477
1478
  metric: "demand_by_category_by_pattern_by_day";
1478
1479
  data: Record<string, {
1480
+ period: "1" | "2" | "3";
1479
1481
  qty: number;
1480
1482
  day_type: "1" | "2" | "3";
1481
1483
  holiday: boolean;
1482
1484
  notes: string | null;
1483
- period: "1" | "2" | "3";
1484
1485
  }>;
1485
1486
  description?: string | undefined;
1486
1487
  }>, z.ZodObject<{
@@ -2665,19 +2666,19 @@ export declare const MetricSchema: z.ZodDiscriminatedUnion<"metric", [z.ZodObjec
2665
2666
  vkms_observed: z.ZodNumber;
2666
2667
  vkms_scheduled: z.ZodNumber;
2667
2668
  }, "strip", z.ZodTypeAny, {
2669
+ period: "1" | "2" | "3";
2668
2670
  day_type: "1" | "2" | "3";
2669
2671
  holiday: "0" | "1";
2670
2672
  notes: string | null;
2671
- period: "1" | "2" | "3";
2672
2673
  accomplished_rides: number;
2673
2674
  scheduled_rides: number;
2674
2675
  vkms_observed: number;
2675
2676
  vkms_scheduled: number;
2676
2677
  }, {
2678
+ period: "1" | "2" | "3";
2677
2679
  day_type: "1" | "2" | "3";
2678
2680
  holiday: "0" | "1";
2679
2681
  notes: string | null;
2680
- period: "1" | "2" | "3";
2681
2682
  accomplished_rides: number;
2682
2683
  scheduled_rides: number;
2683
2684
  vkms_observed: number;
@@ -2691,10 +2692,10 @@ export declare const MetricSchema: z.ZodDiscriminatedUnion<"metric", [z.ZodObjec
2691
2692
  generated_at: Date;
2692
2693
  metric: "supply_by_agency_by_day";
2693
2694
  data: Record<string, {
2695
+ period: "1" | "2" | "3";
2694
2696
  day_type: "1" | "2" | "3";
2695
2697
  holiday: "0" | "1";
2696
2698
  notes: string | null;
2697
- period: "1" | "2" | "3";
2698
2699
  accomplished_rides: number;
2699
2700
  scheduled_rides: number;
2700
2701
  vkms_observed: number;
@@ -2708,10 +2709,10 @@ export declare const MetricSchema: z.ZodDiscriminatedUnion<"metric", [z.ZodObjec
2708
2709
  generated_at: Date;
2709
2710
  metric: "supply_by_agency_by_day";
2710
2711
  data: Record<string, {
2712
+ period: "1" | "2" | "3";
2711
2713
  day_type: "1" | "2" | "3";
2712
2714
  holiday: "0" | "1";
2713
2715
  notes: string | null;
2714
- period: "1" | "2" | "3";
2715
2716
  accomplished_rides: number;
2716
2717
  scheduled_rides: number;
2717
2718
  vkms_observed: number;
@@ -2826,5 +2827,49 @@ export declare const MetricSchema: z.ZodDiscriminatedUnion<"metric", [z.ZodObjec
2826
2827
  vkms_scheduled: number;
2827
2828
  }>;
2828
2829
  description?: string | undefined;
2830
+ }>, z.ZodObject<{
2831
+ description: z.ZodOptional<z.ZodString>;
2832
+ generated_at: z.ZodDate;
2833
+ data: z.ZodRecord<z.ZodString, z.ZodObject<{
2834
+ failed_circulations: z.ZodNumber;
2835
+ estimated_affected_passengers: z.ZodNumber;
2836
+ }, "strip", z.ZodTypeAny, {
2837
+ failed_circulations: number;
2838
+ estimated_affected_passengers: number;
2839
+ }, {
2840
+ failed_circulations: number;
2841
+ estimated_affected_passengers: number;
2842
+ }>>;
2843
+ properties: z.ZodObject<{
2844
+ agency_id: z.ZodString;
2845
+ }, "strip", z.ZodTypeAny, {
2846
+ agency_id: string;
2847
+ }, {
2848
+ agency_id: string;
2849
+ }>;
2850
+ } & {
2851
+ metric: z.ZodLiteral<"demand_affected_by_failed_circulations_by_day">;
2852
+ }, "strip", z.ZodTypeAny, {
2853
+ properties: {
2854
+ agency_id: string;
2855
+ };
2856
+ generated_at: Date;
2857
+ metric: "demand_affected_by_failed_circulations_by_day";
2858
+ data: Record<string, {
2859
+ failed_circulations: number;
2860
+ estimated_affected_passengers: number;
2861
+ }>;
2862
+ description?: string | undefined;
2863
+ }, {
2864
+ properties: {
2865
+ agency_id: string;
2866
+ };
2867
+ generated_at: Date;
2868
+ metric: "demand_affected_by_failed_circulations_by_day";
2869
+ data: Record<string, {
2870
+ failed_circulations: number;
2871
+ estimated_affected_passengers: number;
2872
+ }>;
2873
+ description?: string | undefined;
2829
2874
  }>]>;
2830
2875
  export type Metric = z.infer<typeof MetricSchema>;
@@ -1,9 +1,11 @@
1
1
  import { DemandByAgencyByDayByProductSchema, DemandByAgencyByDaySchema, DemandByAgencyByMonthSchema, DemandByAgencyByYearSchema, DemandByCategoryByAgencyByDaySchema, DemandByCategoryByAgencyByMonthSchema, DemandByCategoryByAgencyByYearSchema, DemandByCategoryByLineByDaySchema, DemandByCategoryByLineByMonthSchema, DemandByCategoryByLineByYearSchema, DemandByCategoryByPatternByDaySchema, DemandByCategoryByPatternByMonthSchema, DemandByCategoryByPatternByYearSchema, DemandByLineByDaySchema, DemandByLineByMonthSchema, DemandByLineByYearSchema, DemandByPatternByDaySchema, DemandByPatternByMonthSchema, DemandByPatternByYearSchema, DemandByPatternHourByDaySchema, DemandByPatternHourByMonthSchema, DemandByPatternHourByYearSchema, DemandByProductByAgencyByDaySchema, DemandByProductByAgencyByMonthSchema, DemandByProductByAgencyByYearSchema, DemandByProductByLineByDaySchema, DemandByProductByLineByMonthSchema, DemandByProductByLineByYearSchema, DemandByProductByPatternByDaySchema, DemandByProductByPatternByMonthSchema, DemandByProductByPatternByYearSchema, MeanDemandByLineByMonthSchema, TopDemandByAgencyByDayTypeSchema, TopDemandByAgencySchema, TopLines30DayPerformanceSchema, TopMeanDemandByLineByMonthSchema } from './demand/index.js';
2
- import { z } from 'zod';
2
+ import { DemandAffectedByFailedCirculationsByDaySchema } from './passenger-impact/passenger-impact.js';
3
3
  import { RealtimeDemandSchema, RealtimeServiceComplianceSchema } from './realtime/index.js';
4
4
  import { SupplyByAgencyByDaySchema, SupplyByAgencyByMonthSchema, SupplyByAgencyByYearSchema } from './supply/supply_by_agency.js';
5
+ import { z } from 'zod';
5
6
  /* * */
6
7
  export * from './demand/index.js';
8
+ export * from './passenger-impact/index.js';
7
9
  export * from './realtime/index.js';
8
10
  export * from './supply/index.js';
9
11
  /* * */
@@ -50,4 +52,5 @@ export const MetricSchema = z.discriminatedUnion('metric', [
50
52
  SupplyByAgencyByDaySchema,
51
53
  SupplyByAgencyByMonthSchema,
52
54
  SupplyByAgencyByYearSchema,
55
+ DemandAffectedByFailedCirculationsByDaySchema,
53
56
  ]);
@@ -0,0 +1 @@
1
+ export * from './passenger-impact.js';
@@ -0,0 +1 @@
1
+ export * from './passenger-impact.js';