@carrismetropolitana/api-types 20260907.1327.21 → 20260909.1244.58

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.
@@ -1,10 +1,11 @@
1
1
  import { HubV1ApiAlert } from '@tmlmobilidade/go-types-hub';
2
+ import { DemandByLineByDay } from '@tmlmobilidade/go-types-performance';
2
3
  export interface ServiceMetrics {
3
4
  agency_id: string;
4
- line_id: string;
5
- operational_date: string;
5
+ operational_date: number;
6
6
  pass_trip_count: number;
7
7
  pass_trip_percentage: number;
8
+ route_short_name: string;
8
9
  total_trip_count: number;
9
10
  }
10
11
  export interface DemandMetricsByLine {
@@ -87,7 +88,7 @@ export interface AlertsByMunicipality {
87
88
  export interface TopDemandLinesByAgency {
88
89
  lastUpdated: Date | null;
89
90
  topLinesByAgency: Record<string, {
90
- lines: Record<string, number>[];
91
+ lines: DemandByLineByDay[];
91
92
  totalQty?: number;
92
93
  }>;
93
94
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carrismetropolitana/api-types",
3
- "version": "20260907.1327.21",
3
+ "version": "20260909.1244.58",
4
4
  "license": "AGPL-3.0-or-later",
5
5
  "homepage": "https://github.com/carrismetropolitana/api#readme",
6
6
  "bugs": {
@@ -87,7 +87,8 @@
87
87
  "devDependencies": {
88
88
  "@carrismetropolitana/eslint": "20250622.1204.50",
89
89
  "@tmlmobilidade/go-types-hub": "latest",
90
- "@tmlmobilidade/tsconfig": "latest",
90
+ "@tmlmobilidade/go-types-performance": "latest",
91
+ "@tmlmobilidade/go-utils-tsconfig": "latest",
91
92
  "@types/node": "25.6.0",
92
93
  "resolve-tspaths": "0.8.23",
93
94
  "typescript": "6.0.3"
@@ -1,15 +1,16 @@
1
1
  /* * */
2
2
 
3
3
  import { HubV1ApiAlert } from '@tmlmobilidade/go-types-hub';
4
+ import { DemandByLineByDay } from '@tmlmobilidade/go-types-performance';
4
5
 
5
6
  /* * */
6
7
 
7
8
  export interface ServiceMetrics {
8
9
  agency_id: string
9
- line_id: string
10
- operational_date: string
10
+ operational_date: number
11
11
  pass_trip_count: number
12
12
  pass_trip_percentage: number
13
+ route_short_name: string
13
14
  total_trip_count: number
14
15
  }
15
16
 
@@ -111,5 +112,5 @@ export interface AlertsByMunicipality {
111
112
 
112
113
  export interface TopDemandLinesByAgency {
113
114
  lastUpdated: Date | null
114
- topLinesByAgency: Record<string, { lines: Record<string, number>[], totalQty?: number }>
115
+ topLinesByAgency: Record<string, { lines: DemandByLineByDay[], totalQty?: number }>
115
116
  }
package/tsconfig.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "extends": "@tmlmobilidade/tsconfig/nodejs.json",
2
+ "extends": "@tmlmobilidade/go-utils-tsconfig/nodejs.json",
3
3
  "compilerOptions": {
4
4
  "declaration": true,
5
5
  "outDir": "dist",