@tmlmobilidade/types 20251020.919.5 → 20251021.1608.3

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.
@@ -364,13 +364,6 @@ export declare const DemandByAgencyByMonthSchema: z.ZodObject<{
364
364
  export declare const DemandByAgencyByDaySchema: z.ZodObject<{
365
365
  description: z.ZodOptional<z.ZodString>;
366
366
  generated_at: z.ZodDate;
367
- data: z.ZodRecord<z.ZodString, z.ZodObject<{
368
- qty: z.ZodNumber;
369
- }, "strip", z.ZodTypeAny, {
370
- qty: number;
371
- }, {
372
- qty: number;
373
- }>>;
374
367
  properties: z.ZodObject<{
375
368
  interval: z.ZodDefault<z.ZodNumber>;
376
369
  } & {
@@ -383,6 +376,25 @@ export declare const DemandByAgencyByDaySchema: z.ZodObject<{
383
376
  interval?: number | undefined;
384
377
  }>;
385
378
  } & {
379
+ data: z.ZodRecord<z.ZodString, z.ZodObject<{
380
+ day_type: z.ZodNumber;
381
+ holiday: z.ZodNumber;
382
+ notes: z.ZodNullable<z.ZodString>;
383
+ period: z.ZodNumber;
384
+ qty: z.ZodNumber;
385
+ }, "strip", z.ZodTypeAny, {
386
+ qty: number;
387
+ day_type: number;
388
+ holiday: number;
389
+ notes: string | null;
390
+ period: number;
391
+ }, {
392
+ qty: number;
393
+ day_type: number;
394
+ holiday: number;
395
+ notes: string | null;
396
+ period: number;
397
+ }>>;
386
398
  metric: z.ZodLiteral<"demand_by_agency_by_day">;
387
399
  }, "strip", z.ZodTypeAny, {
388
400
  properties: {
@@ -393,6 +405,10 @@ export declare const DemandByAgencyByDaySchema: z.ZodObject<{
393
405
  metric: "demand_by_agency_by_day";
394
406
  data: Record<string, {
395
407
  qty: number;
408
+ day_type: number;
409
+ holiday: number;
410
+ notes: string | null;
411
+ period: number;
396
412
  }>;
397
413
  description?: string | undefined;
398
414
  }, {
@@ -404,6 +420,10 @@ export declare const DemandByAgencyByDaySchema: z.ZodObject<{
404
420
  metric: "demand_by_agency_by_day";
405
421
  data: Record<string, {
406
422
  qty: number;
423
+ day_type: number;
424
+ holiday: number;
425
+ notes: string | null;
426
+ period: number;
407
427
  }>;
408
428
  description?: string | undefined;
409
429
  }>;
@@ -502,13 +522,6 @@ export declare const DemandByPatternByMonthSchema: z.ZodObject<{
502
522
  export declare const DemandByPatternByDaySchema: z.ZodObject<{
503
523
  description: z.ZodOptional<z.ZodString>;
504
524
  generated_at: z.ZodDate;
505
- data: z.ZodRecord<z.ZodString, z.ZodObject<{
506
- qty: z.ZodNumber;
507
- }, "strip", z.ZodTypeAny, {
508
- qty: number;
509
- }, {
510
- qty: number;
511
- }>>;
512
525
  properties: z.ZodObject<{
513
526
  interval: z.ZodDefault<z.ZodNumber>;
514
527
  } & {
@@ -521,6 +534,25 @@ export declare const DemandByPatternByDaySchema: z.ZodObject<{
521
534
  interval?: number | undefined;
522
535
  }>;
523
536
  } & {
537
+ data: z.ZodRecord<z.ZodString, z.ZodObject<{
538
+ day_type: z.ZodNumber;
539
+ holiday: z.ZodNumber;
540
+ notes: z.ZodNullable<z.ZodString>;
541
+ period: z.ZodNumber;
542
+ qty: z.ZodNumber;
543
+ }, "strip", z.ZodTypeAny, {
544
+ qty: number;
545
+ day_type: number;
546
+ holiday: number;
547
+ notes: string | null;
548
+ period: number;
549
+ }, {
550
+ qty: number;
551
+ day_type: number;
552
+ holiday: number;
553
+ notes: string | null;
554
+ period: number;
555
+ }>>;
524
556
  metric: z.ZodLiteral<"demand_by_pattern_by_day">;
525
557
  }, "strip", z.ZodTypeAny, {
526
558
  properties: {
@@ -531,6 +563,10 @@ export declare const DemandByPatternByDaySchema: z.ZodObject<{
531
563
  metric: "demand_by_pattern_by_day";
532
564
  data: Record<string, {
533
565
  qty: number;
566
+ day_type: number;
567
+ holiday: number;
568
+ notes: string | null;
569
+ period: number;
534
570
  }>;
535
571
  description?: string | undefined;
536
572
  }, {
@@ -542,6 +578,10 @@ export declare const DemandByPatternByDaySchema: z.ZodObject<{
542
578
  metric: "demand_by_pattern_by_day";
543
579
  data: Record<string, {
544
580
  qty: number;
581
+ day_type: number;
582
+ holiday: number;
583
+ notes: string | null;
584
+ period: number;
545
585
  }>;
546
586
  description?: string | undefined;
547
587
  }>;
@@ -669,46 +709,154 @@ export declare const TopDemandByAgencySchema: z.ZodObject<{
669
709
  }>>>;
670
710
  } & {
671
711
  data: z.ZodObject<{
672
- operators: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodObject<{
673
- qty: z.ZodNumber;
712
+ operators: z.ZodRecord<z.ZodString, z.ZodObject<{
713
+ day: z.ZodObject<{
714
+ date: z.ZodString;
715
+ qty: z.ZodNumber;
716
+ }, "strip", z.ZodTypeAny, {
717
+ date: string;
718
+ qty: number;
719
+ }, {
720
+ date: string;
721
+ qty: number;
722
+ }>;
723
+ month: z.ZodObject<{
724
+ date: z.ZodString;
725
+ qty: z.ZodNumber;
726
+ }, "strip", z.ZodTypeAny, {
727
+ date: string;
728
+ qty: number;
729
+ }, {
730
+ date: string;
731
+ qty: number;
732
+ }>;
674
733
  }, "strip", z.ZodTypeAny, {
675
- qty: number;
734
+ day: {
735
+ date: string;
736
+ qty: number;
737
+ };
738
+ month: {
739
+ date: string;
740
+ qty: number;
741
+ };
676
742
  }, {
677
- qty: number;
678
- }>>>;
679
- total: z.ZodRecord<z.ZodString, z.ZodObject<{
680
- qty: z.ZodNumber;
743
+ day: {
744
+ date: string;
745
+ qty: number;
746
+ };
747
+ month: {
748
+ date: string;
749
+ qty: number;
750
+ };
751
+ }>>;
752
+ total: z.ZodObject<{
753
+ day: z.ZodObject<{
754
+ date: z.ZodString;
755
+ qty: z.ZodNumber;
756
+ }, "strip", z.ZodTypeAny, {
757
+ date: string;
758
+ qty: number;
759
+ }, {
760
+ date: string;
761
+ qty: number;
762
+ }>;
763
+ month: z.ZodObject<{
764
+ date: z.ZodString;
765
+ qty: z.ZodNumber;
766
+ }, "strip", z.ZodTypeAny, {
767
+ date: string;
768
+ qty: number;
769
+ }, {
770
+ date: string;
771
+ qty: number;
772
+ }>;
681
773
  }, "strip", z.ZodTypeAny, {
682
- qty: number;
774
+ day: {
775
+ date: string;
776
+ qty: number;
777
+ };
778
+ month: {
779
+ date: string;
780
+ qty: number;
781
+ };
683
782
  }, {
684
- qty: number;
685
- }>>;
783
+ day: {
784
+ date: string;
785
+ qty: number;
786
+ };
787
+ month: {
788
+ date: string;
789
+ qty: number;
790
+ };
791
+ }>;
686
792
  }, "strip", z.ZodTypeAny, {
687
- operators: Record<string, Record<string, {
688
- qty: number;
689
- }>>;
690
- total: Record<string, {
691
- qty: number;
793
+ operators: Record<string, {
794
+ day: {
795
+ date: string;
796
+ qty: number;
797
+ };
798
+ month: {
799
+ date: string;
800
+ qty: number;
801
+ };
692
802
  }>;
803
+ total: {
804
+ day: {
805
+ date: string;
806
+ qty: number;
807
+ };
808
+ month: {
809
+ date: string;
810
+ qty: number;
811
+ };
812
+ };
693
813
  }, {
694
- operators: Record<string, Record<string, {
695
- qty: number;
696
- }>>;
697
- total: Record<string, {
698
- qty: number;
814
+ operators: Record<string, {
815
+ day: {
816
+ date: string;
817
+ qty: number;
818
+ };
819
+ month: {
820
+ date: string;
821
+ qty: number;
822
+ };
699
823
  }>;
824
+ total: {
825
+ day: {
826
+ date: string;
827
+ qty: number;
828
+ };
829
+ month: {
830
+ date: string;
831
+ qty: number;
832
+ };
833
+ };
700
834
  }>;
701
835
  metric: z.ZodLiteral<"top_demand_by_agency">;
702
836
  }, "strip", z.ZodTypeAny, {
703
837
  generated_at: Date;
704
838
  metric: "top_demand_by_agency";
705
839
  data: {
706
- operators: Record<string, Record<string, {
707
- qty: number;
708
- }>>;
709
- total: Record<string, {
710
- qty: number;
840
+ operators: Record<string, {
841
+ day: {
842
+ date: string;
843
+ qty: number;
844
+ };
845
+ month: {
846
+ date: string;
847
+ qty: number;
848
+ };
711
849
  }>;
850
+ total: {
851
+ day: {
852
+ date: string;
853
+ qty: number;
854
+ };
855
+ month: {
856
+ date: string;
857
+ qty: number;
858
+ };
859
+ };
712
860
  };
713
861
  description?: string | undefined;
714
862
  properties?: {
@@ -718,12 +866,26 @@ export declare const TopDemandByAgencySchema: z.ZodObject<{
718
866
  generated_at: Date;
719
867
  metric: "top_demand_by_agency";
720
868
  data: {
721
- operators: Record<string, Record<string, {
722
- qty: number;
723
- }>>;
724
- total: Record<string, {
725
- qty: number;
869
+ operators: Record<string, {
870
+ day: {
871
+ date: string;
872
+ qty: number;
873
+ };
874
+ month: {
875
+ date: string;
876
+ qty: number;
877
+ };
726
878
  }>;
879
+ total: {
880
+ day: {
881
+ date: string;
882
+ qty: number;
883
+ };
884
+ month: {
885
+ date: string;
886
+ qty: number;
887
+ };
888
+ };
727
889
  };
728
890
  description?: string | undefined;
729
891
  properties?: {
@@ -71,6 +71,13 @@ export const DemandByAgencyByMonthSchema = DemandByAgencySchema.extend({
71
71
  metric: z.literal('demand_by_agency_by_month'),
72
72
  });
73
73
  export const DemandByAgencyByDaySchema = DemandByAgencySchema.extend({
74
+ data: z.record(z.string(), z.object({
75
+ day_type: z.number(),
76
+ holiday: z.number(),
77
+ notes: z.string().nullable(),
78
+ period: z.number(),
79
+ qty: z.number(),
80
+ })),
74
81
  metric: z.literal('demand_by_agency_by_day'),
75
82
  });
76
83
  /* DEMAND BY PATTERN */
@@ -92,6 +99,13 @@ export const DemandByPatternByMonthSchema = DemandByPatternSchema.extend({
92
99
  metric: z.literal('demand_by_pattern_by_month'),
93
100
  });
94
101
  export const DemandByPatternByDaySchema = DemandByPatternSchema.extend({
102
+ data: z.record(z.string(), z.object({
103
+ day_type: z.number(),
104
+ holiday: z.number(),
105
+ notes: z.string().nullable(),
106
+ period: z.number(),
107
+ qty: z.number(),
108
+ })),
95
109
  metric: z.literal('demand_by_pattern_by_day'),
96
110
  });
97
111
  /* DEMAND BY PATTERN_HOUR */
@@ -114,12 +128,26 @@ export const DemandByPatternHourByMonthSchema = DemandByPatternSchema.extend({
114
128
  /* RECORD BY AGENCY */
115
129
  export const TopDemandByAgencySchema = MetricBaseSchema.extend({
116
130
  data: z.object({
117
- operators: z.record(z.string(), z.record(z.string(), z.object({
118
- qty: z.number(),
119
- }))),
120
- total: z.record(z.string(), z.object({
121
- qty: z.number(),
131
+ operators: z.record(z.string(), z.object({
132
+ day: z.object({
133
+ date: z.string(),
134
+ qty: z.number(),
135
+ }),
136
+ month: z.object({
137
+ date: z.string(),
138
+ qty: z.number(),
139
+ }),
122
140
  })),
141
+ total: z.object({
142
+ day: z.object({
143
+ date: z.string(),
144
+ qty: z.number(),
145
+ }),
146
+ month: z.object({
147
+ date: z.string(),
148
+ qty: z.number(),
149
+ }),
150
+ }),
123
151
  }),
124
152
  metric: z.literal('top_demand_by_agency'),
125
153
  });
@@ -1,3 +1,4 @@
1
+ import { DemandByAgencyByDaySchema, DemandByAgencyByMonthSchema, DemandByAgencyByYearSchema, DemandByLineByDaySchema, DemandByLineByMonthSchema, DemandByLineByYearSchema, DemandByPatternByDaySchema, DemandByPatternByMonthSchema, DemandByPatternByYearSchema, DemandByPatternHourByMonthSchema, DemandByPatternHourByYearSchema, MeanDemandByLineByMonthSchema, TopDemandByAgencySchema, TopMeanDemandByLineByMonthSchema } from './demand.js';
1
2
  import { z } from 'zod';
2
3
  export declare const MetricSchema: z.ZodDiscriminatedUnion<"metric", [z.ZodObject<{
3
4
  description: z.ZodOptional<z.ZodString>;
@@ -247,13 +248,6 @@ export declare const MetricSchema: z.ZodDiscriminatedUnion<"metric", [z.ZodObjec
247
248
  }>, z.ZodObject<{
248
249
  description: z.ZodOptional<z.ZodString>;
249
250
  generated_at: z.ZodDate;
250
- data: z.ZodRecord<z.ZodString, z.ZodObject<{
251
- qty: z.ZodNumber;
252
- }, "strip", z.ZodTypeAny, {
253
- qty: number;
254
- }, {
255
- qty: number;
256
- }>>;
257
251
  properties: z.ZodObject<{
258
252
  interval: z.ZodDefault<z.ZodNumber>;
259
253
  } & {
@@ -266,6 +260,25 @@ export declare const MetricSchema: z.ZodDiscriminatedUnion<"metric", [z.ZodObjec
266
260
  interval?: number | undefined;
267
261
  }>;
268
262
  } & {
263
+ data: z.ZodRecord<z.ZodString, z.ZodObject<{
264
+ day_type: z.ZodNumber;
265
+ holiday: z.ZodNumber;
266
+ notes: z.ZodNullable<z.ZodString>;
267
+ period: z.ZodNumber;
268
+ qty: z.ZodNumber;
269
+ }, "strip", z.ZodTypeAny, {
270
+ qty: number;
271
+ day_type: number;
272
+ holiday: number;
273
+ notes: string | null;
274
+ period: number;
275
+ }, {
276
+ qty: number;
277
+ day_type: number;
278
+ holiday: number;
279
+ notes: string | null;
280
+ period: number;
281
+ }>>;
269
282
  metric: z.ZodLiteral<"demand_by_pattern_by_day">;
270
283
  }, "strip", z.ZodTypeAny, {
271
284
  properties: {
@@ -276,6 +289,10 @@ export declare const MetricSchema: z.ZodDiscriminatedUnion<"metric", [z.ZodObjec
276
289
  metric: "demand_by_pattern_by_day";
277
290
  data: Record<string, {
278
291
  qty: number;
292
+ day_type: number;
293
+ holiday: number;
294
+ notes: string | null;
295
+ period: number;
279
296
  }>;
280
297
  description?: string | undefined;
281
298
  }, {
@@ -287,6 +304,10 @@ export declare const MetricSchema: z.ZodDiscriminatedUnion<"metric", [z.ZodObjec
287
304
  metric: "demand_by_pattern_by_day";
288
305
  data: Record<string, {
289
306
  qty: number;
307
+ day_type: number;
308
+ holiday: number;
309
+ notes: string | null;
310
+ period: number;
290
311
  }>;
291
312
  description?: string | undefined;
292
313
  }>, z.ZodObject<{
@@ -492,13 +513,6 @@ export declare const MetricSchema: z.ZodDiscriminatedUnion<"metric", [z.ZodObjec
492
513
  }>, z.ZodObject<{
493
514
  description: z.ZodOptional<z.ZodString>;
494
515
  generated_at: z.ZodDate;
495
- data: z.ZodRecord<z.ZodString, z.ZodObject<{
496
- qty: z.ZodNumber;
497
- }, "strip", z.ZodTypeAny, {
498
- qty: number;
499
- }, {
500
- qty: number;
501
- }>>;
502
516
  properties: z.ZodObject<{
503
517
  interval: z.ZodDefault<z.ZodNumber>;
504
518
  } & {
@@ -511,6 +525,25 @@ export declare const MetricSchema: z.ZodDiscriminatedUnion<"metric", [z.ZodObjec
511
525
  interval?: number | undefined;
512
526
  }>;
513
527
  } & {
528
+ data: z.ZodRecord<z.ZodString, z.ZodObject<{
529
+ day_type: z.ZodNumber;
530
+ holiday: z.ZodNumber;
531
+ notes: z.ZodNullable<z.ZodString>;
532
+ period: z.ZodNumber;
533
+ qty: z.ZodNumber;
534
+ }, "strip", z.ZodTypeAny, {
535
+ qty: number;
536
+ day_type: number;
537
+ holiday: number;
538
+ notes: string | null;
539
+ period: number;
540
+ }, {
541
+ qty: number;
542
+ day_type: number;
543
+ holiday: number;
544
+ notes: string | null;
545
+ period: number;
546
+ }>>;
514
547
  metric: z.ZodLiteral<"demand_by_agency_by_day">;
515
548
  }, "strip", z.ZodTypeAny, {
516
549
  properties: {
@@ -521,6 +554,10 @@ export declare const MetricSchema: z.ZodDiscriminatedUnion<"metric", [z.ZodObjec
521
554
  metric: "demand_by_agency_by_day";
522
555
  data: Record<string, {
523
556
  qty: number;
557
+ day_type: number;
558
+ holiday: number;
559
+ notes: string | null;
560
+ period: number;
524
561
  }>;
525
562
  description?: string | undefined;
526
563
  }, {
@@ -532,6 +569,10 @@ export declare const MetricSchema: z.ZodDiscriminatedUnion<"metric", [z.ZodObjec
532
569
  metric: "demand_by_agency_by_day";
533
570
  data: Record<string, {
534
571
  qty: number;
572
+ day_type: number;
573
+ holiday: number;
574
+ notes: string | null;
575
+ period: number;
535
576
  }>;
536
577
  description?: string | undefined;
537
578
  }>, z.ZodObject<{
@@ -546,46 +587,154 @@ export declare const MetricSchema: z.ZodDiscriminatedUnion<"metric", [z.ZodObjec
546
587
  }>>>;
547
588
  } & {
548
589
  data: z.ZodObject<{
549
- operators: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodObject<{
550
- qty: z.ZodNumber;
590
+ operators: z.ZodRecord<z.ZodString, z.ZodObject<{
591
+ day: z.ZodObject<{
592
+ date: z.ZodString;
593
+ qty: z.ZodNumber;
594
+ }, "strip", z.ZodTypeAny, {
595
+ date: string;
596
+ qty: number;
597
+ }, {
598
+ date: string;
599
+ qty: number;
600
+ }>;
601
+ month: z.ZodObject<{
602
+ date: z.ZodString;
603
+ qty: z.ZodNumber;
604
+ }, "strip", z.ZodTypeAny, {
605
+ date: string;
606
+ qty: number;
607
+ }, {
608
+ date: string;
609
+ qty: number;
610
+ }>;
551
611
  }, "strip", z.ZodTypeAny, {
552
- qty: number;
612
+ day: {
613
+ date: string;
614
+ qty: number;
615
+ };
616
+ month: {
617
+ date: string;
618
+ qty: number;
619
+ };
553
620
  }, {
554
- qty: number;
555
- }>>>;
556
- total: z.ZodRecord<z.ZodString, z.ZodObject<{
557
- qty: z.ZodNumber;
621
+ day: {
622
+ date: string;
623
+ qty: number;
624
+ };
625
+ month: {
626
+ date: string;
627
+ qty: number;
628
+ };
629
+ }>>;
630
+ total: z.ZodObject<{
631
+ day: z.ZodObject<{
632
+ date: z.ZodString;
633
+ qty: z.ZodNumber;
634
+ }, "strip", z.ZodTypeAny, {
635
+ date: string;
636
+ qty: number;
637
+ }, {
638
+ date: string;
639
+ qty: number;
640
+ }>;
641
+ month: z.ZodObject<{
642
+ date: z.ZodString;
643
+ qty: z.ZodNumber;
644
+ }, "strip", z.ZodTypeAny, {
645
+ date: string;
646
+ qty: number;
647
+ }, {
648
+ date: string;
649
+ qty: number;
650
+ }>;
558
651
  }, "strip", z.ZodTypeAny, {
559
- qty: number;
652
+ day: {
653
+ date: string;
654
+ qty: number;
655
+ };
656
+ month: {
657
+ date: string;
658
+ qty: number;
659
+ };
560
660
  }, {
561
- qty: number;
562
- }>>;
661
+ day: {
662
+ date: string;
663
+ qty: number;
664
+ };
665
+ month: {
666
+ date: string;
667
+ qty: number;
668
+ };
669
+ }>;
563
670
  }, "strip", z.ZodTypeAny, {
564
- operators: Record<string, Record<string, {
565
- qty: number;
566
- }>>;
567
- total: Record<string, {
568
- qty: number;
671
+ operators: Record<string, {
672
+ day: {
673
+ date: string;
674
+ qty: number;
675
+ };
676
+ month: {
677
+ date: string;
678
+ qty: number;
679
+ };
569
680
  }>;
681
+ total: {
682
+ day: {
683
+ date: string;
684
+ qty: number;
685
+ };
686
+ month: {
687
+ date: string;
688
+ qty: number;
689
+ };
690
+ };
570
691
  }, {
571
- operators: Record<string, Record<string, {
572
- qty: number;
573
- }>>;
574
- total: Record<string, {
575
- qty: number;
692
+ operators: Record<string, {
693
+ day: {
694
+ date: string;
695
+ qty: number;
696
+ };
697
+ month: {
698
+ date: string;
699
+ qty: number;
700
+ };
576
701
  }>;
702
+ total: {
703
+ day: {
704
+ date: string;
705
+ qty: number;
706
+ };
707
+ month: {
708
+ date: string;
709
+ qty: number;
710
+ };
711
+ };
577
712
  }>;
578
713
  metric: z.ZodLiteral<"top_demand_by_agency">;
579
714
  }, "strip", z.ZodTypeAny, {
580
715
  generated_at: Date;
581
716
  metric: "top_demand_by_agency";
582
717
  data: {
583
- operators: Record<string, Record<string, {
584
- qty: number;
585
- }>>;
586
- total: Record<string, {
587
- qty: number;
718
+ operators: Record<string, {
719
+ day: {
720
+ date: string;
721
+ qty: number;
722
+ };
723
+ month: {
724
+ date: string;
725
+ qty: number;
726
+ };
588
727
  }>;
728
+ total: {
729
+ day: {
730
+ date: string;
731
+ qty: number;
732
+ };
733
+ month: {
734
+ date: string;
735
+ qty: number;
736
+ };
737
+ };
589
738
  };
590
739
  description?: string | undefined;
591
740
  properties?: {
@@ -595,12 +744,26 @@ export declare const MetricSchema: z.ZodDiscriminatedUnion<"metric", [z.ZodObjec
595
744
  generated_at: Date;
596
745
  metric: "top_demand_by_agency";
597
746
  data: {
598
- operators: Record<string, Record<string, {
599
- qty: number;
600
- }>>;
601
- total: Record<string, {
602
- qty: number;
747
+ operators: Record<string, {
748
+ day: {
749
+ date: string;
750
+ qty: number;
751
+ };
752
+ month: {
753
+ date: string;
754
+ qty: number;
755
+ };
603
756
  }>;
757
+ total: {
758
+ day: {
759
+ date: string;
760
+ qty: number;
761
+ };
762
+ month: {
763
+ date: string;
764
+ qty: number;
765
+ };
766
+ };
604
767
  };
605
768
  description?: string | undefined;
606
769
  properties?: {
@@ -718,4 +881,18 @@ export declare const MetricSchema: z.ZodDiscriminatedUnion<"metric", [z.ZodObjec
718
881
  description?: string | undefined;
719
882
  }>]>;
720
883
  export type Metric = z.infer<typeof MetricSchema>;
884
+ export type DemandByLineByYear = z.infer<typeof DemandByLineByYearSchema>;
885
+ export type DemandByLineByMonth = z.infer<typeof DemandByLineByMonthSchema>;
886
+ export type DemandByLineByDay = z.infer<typeof DemandByLineByDaySchema>;
887
+ export type DemandByPatternByYear = z.infer<typeof DemandByPatternByYearSchema>;
888
+ export type DemandByPatternByMonth = z.infer<typeof DemandByPatternByMonthSchema>;
889
+ export type DemandByPatternByDay = z.infer<typeof DemandByPatternByDaySchema>;
890
+ export type DemandByPatternHourByYear = z.infer<typeof DemandByPatternHourByYearSchema>;
891
+ export type DemandByPatternHourByMonth = z.infer<typeof DemandByPatternHourByMonthSchema>;
892
+ export type DemandByAgencyByYear = z.infer<typeof DemandByAgencyByYearSchema>;
893
+ export type DemandByAgencyByMonth = z.infer<typeof DemandByAgencyByMonthSchema>;
894
+ export type DemandByAgencyByDay = z.infer<typeof DemandByAgencyByDaySchema>;
895
+ export type TopDemandByAgency = z.infer<typeof TopDemandByAgencySchema>;
896
+ export type MeanDemandByLineByMonth = z.infer<typeof MeanDemandByLineByMonthSchema>;
897
+ export type TopMeanDemandByLineByMonth = z.infer<typeof TopMeanDemandByLineByMonthSchema>;
721
898
  export { MetricBasePropertiesSchema } from './common.js';
@@ -17,4 +17,5 @@ export const MetricSchema = z.discriminatedUnion('metric', [
17
17
  MeanDemandByLineByMonthSchema,
18
18
  TopMeanDemandByLineByMonthSchema,
19
19
  ]);
20
+ /* * */
20
21
  export { MetricBasePropertiesSchema } from './common.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tmlmobilidade/types",
3
- "version": "20251020.919.5",
3
+ "version": "20251021.1608.3",
4
4
  "author": "João de Vasconcelos & Jusi Monteiro",
5
5
  "license": "AGPL-3.0-or-later",
6
6
  "homepage": "https://github.com/tmlmobilidade/services#readme",