@autobusal/providers 1.30.1 → 1.31.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 CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.31.0
4
+
5
+ ### Added
6
+
7
+ - **`PopularRoutesData`** - the city pairs behind the home page's route
8
+ columns. `from` and `to` arrive localised and `link` is built server-side,
9
+ so the search URL's date and slug rules live in one place.
10
+
3
11
  ## 1.30.1
4
12
 
5
13
  ### Fixed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autobusal/providers",
3
- "version": "1.30.1",
3
+ "version": "1.31.0",
4
4
  "author": "Ferjolt Ozuni",
5
5
  "type": "module",
6
6
  "main": "index.ts"
@@ -98,4 +98,22 @@ export interface StopData {
98
98
  id: number
99
99
  name: string
100
100
  location: string[]
101
- }
101
+ }
102
+ /**
103
+ * A city pair people buy, for the home page's route columns.
104
+ *
105
+ * Ferjolt Ozuni - Date: 2026-08-07
106
+ * `from` and `to` are already localised city names, and `link` is a search
107
+ * built server-side - the client renders it and never assembles one, so the
108
+ * date and slug rules live in exactly one place (Traits\Orderable).
109
+ */
110
+ export interface PopularRouteData {
111
+ from: string
112
+ to: string
113
+ link: string
114
+ }
115
+
116
+ export interface PopularRoutesData {
117
+ top: PopularRouteData[]
118
+ trending: PopularRouteData[]
119
+ }