@autobusal/providers 1.11.0 → 1.12.0
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 +14 -0
- package/package.json +1 -1
- package/types/routes.ts +10 -0
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,20 @@ 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
|
+
> Note: 1.8.0 through 1.11.0 were published without changelog entries. The
|
|
8
|
+
> gap is left as-is rather than reconstructed after the fact.
|
|
9
|
+
|
|
10
|
+
## [1.12.0] - 2026-08-01
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- `FoundData.stops_count` - intermediate stops between the searched from/to,
|
|
15
|
+
where 0 means a direct trip. Optional, because external-provider offers do
|
|
16
|
+
not report one: a filter must read "missing" as unknown, never as direct.
|
|
17
|
+
- `FoundData.priority` - the operator's subscription priority, which obtapi
|
|
18
|
+
was already sending but which was not typed. Used only as a tiebreak in
|
|
19
|
+
routes-order's "recommended" ordering.
|
|
20
|
+
|
|
7
21
|
## [1.7.0] - 2026-07-31
|
|
8
22
|
|
|
9
23
|
### Added
|
package/package.json
CHANGED
package/types/routes.ts
CHANGED
|
@@ -91,6 +91,16 @@ export interface FoundData extends Omit<RouteData, 'locations' | 'id'> {
|
|
|
91
91
|
// still assume a real numeric local id.
|
|
92
92
|
price: Omit<PriceData, 'id'> & { id: number | string }
|
|
93
93
|
duration: string
|
|
94
|
+
// Edited: Ferjolt Ozuni - Date: 2026-08-01
|
|
95
|
+
// Intermediate stops between the searched from/to - 0 is a direct trip.
|
|
96
|
+
// Optional because external-provider offers don't report one; a filter
|
|
97
|
+
// must read "missing" as unknown, never as direct.
|
|
98
|
+
stops_count?: number
|
|
99
|
+
// Edited: Ferjolt Ozuni - Date: 2026-08-01
|
|
100
|
+
// The operator's subscription priority, as obtapi already sends it.
|
|
101
|
+
// Used only as a tiebreak in the "recommended" ordering - see
|
|
102
|
+
// routes-order's Found/refine.ts. Absent on external-provider offers.
|
|
103
|
+
priority?: number
|
|
94
104
|
customs: string[]
|
|
95
105
|
locations: {
|
|
96
106
|
from: LocationData
|