@autobusal/providers 1.6.3 → 1.6.4
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 +6 -0
- package/package.json +1 -1
- package/types/locations.ts +19 -0
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,12 @@ 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.4] - 2026-07-30
|
|
8
|
+
|
|
9
|
+
### Added
|
|
10
|
+
|
|
11
|
+
- **`types/locations.ts` `CityStats`/`CityDestination` types + `CityData.stats`/`.destinations`** - real route/operator/destination-count/price stats and reachable-destinations list from obtapi's new `cities/view` endpoint, for city hub landing pages.
|
|
12
|
+
|
|
7
13
|
## [1.6.3] - 2026-07-30
|
|
8
14
|
|
|
9
15
|
### Added
|
package/package.json
CHANGED
package/types/locations.ts
CHANGED
|
@@ -27,6 +27,23 @@ export interface CountryData {
|
|
|
27
27
|
stats?: CountryStats
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
+
export interface CityStats {
|
|
31
|
+
routes: number
|
|
32
|
+
operators: number
|
|
33
|
+
destinations: number
|
|
34
|
+
price_from: string | null
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
// The lightweight shape Cities\BrowseController::view() nests under
|
|
38
|
+
// `destinations` (other cities reachable from this one) - not a full
|
|
39
|
+
// CityData (no `location`, only what a destination link needs).
|
|
40
|
+
export interface CityDestination {
|
|
41
|
+
id: number
|
|
42
|
+
name: string
|
|
43
|
+
slug: string
|
|
44
|
+
image_url?: string
|
|
45
|
+
}
|
|
46
|
+
|
|
30
47
|
export interface CityData {
|
|
31
48
|
id: number
|
|
32
49
|
name: string
|
|
@@ -43,6 +60,8 @@ export interface CityData {
|
|
|
43
60
|
front?: number
|
|
44
61
|
front_order?: number
|
|
45
62
|
image?: string[]
|
|
63
|
+
stats?: CityStats
|
|
64
|
+
destinations?: CityDestination[]
|
|
46
65
|
}
|
|
47
66
|
|
|
48
67
|
export interface StopData {
|