@autobusal/providers 1.6.2 → 1.6.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.
package/CHANGELOG.md CHANGED
@@ -4,6 +4,15 @@ All notable changes to `@autobusal/providers` are documented here. This project
4
4
  adheres to [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and
5
5
  [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## [1.6.3] - 2026-07-30
8
+
9
+ ### Added
10
+
11
+ - **`types/locations.ts` `CountryStats` type + `CountryData.stats`** - real
12
+ route/operator/city/price-from counts from obtapi's enriched
13
+ `countries/view` endpoint, for country landing pages to render actual
14
+ descriptive content instead of a bare city list.
15
+
7
16
  ## [1.6.2] - 2026-07-30
8
17
 
9
18
  ### Fixed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autobusal/providers",
3
- "version": "1.6.2",
3
+ "version": "1.6.3",
4
4
  "author": "Ferjolt Ozuni",
5
5
  "type": "module",
6
6
  "main": "index.ts"
@@ -8,6 +8,13 @@ export interface LocationData {
8
8
  order_id: number
9
9
  }
10
10
 
11
+ export interface CountryStats {
12
+ routes: number
13
+ operators: number
14
+ cities: number
15
+ price_from: string | null
16
+ }
17
+
11
18
  export interface CountryData {
12
19
  id: number
13
20
  name: string
@@ -17,6 +24,7 @@ export interface CountryData {
17
24
  cities?: CityData[]
18
25
  iso_code: string
19
26
  available?: number
27
+ stats?: CountryStats
20
28
  }
21
29
 
22
30
  export interface CityData {