@autobusal/providers 1.24.0 → 1.26.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,24 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.26.0
4
+
5
+ ### Added
6
+
7
+ - `FoundData.arrival_offset` — whole days between boarding and arriving, for
8
+ the overnight marker on result cards. Optional: external-provider offers do
9
+ not report one, and a missing value must read as same-day rather than
10
+ invent a day.
11
+
12
+ ## 1.25.0
13
+
14
+ ### Added
15
+
16
+ - `LabelSettings.whatsapp.alert_template_name` / `alert_template_language` —
17
+ the separate approved template the route+date broadcast composer sends
18
+ through. Optional: a brand can confirm purchases over WhatsApp without ever
19
+ broadcasting, and Meta approves a template for a stated purpose, so service
20
+ alerts cannot reuse the confirmation one.
21
+
3
22
  ## 1.24.0
4
23
 
5
24
  **New `Setup/commerce.ts` — the booking funnel, pushed to the dataLayer.**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autobusal/providers",
3
- "version": "1.24.0",
3
+ "version": "1.26.0",
4
4
  "author": "Ferjolt Ozuni",
5
5
  "type": "module",
6
6
  "main": "index.ts"
package/types/routes.ts CHANGED
@@ -146,6 +146,19 @@ export interface FoundData extends Omit<RouteData, 'locations' | 'id'> {
146
146
  // another timezone, and "leaves in 20 minutes" must not be wrong.
147
147
  departs_in?: number | null
148
148
 
149
+ /**
150
+ * Edited: Ferjolt Ozuni - Date: 2026-08-05
151
+ * Whole days between boarding and arriving - 0 for a trip that arrives the
152
+ * same day, 1 for one arriving the next morning. Counted server-side from
153
+ * the timetable's own midnight markers, never guessed from the two clock
154
+ * times: a coach leaving 23:00 and arriving 07:00 is indistinguishable
155
+ * from one running backwards unless the timetable says which.
156
+ *
157
+ * Optional because external-provider offers do not report one; the card
158
+ * must read a missing value as same-day rather than invent a day.
159
+ */
160
+ arrival_offset?: number
161
+
149
162
  // The operator's subscription priority, as obtapi already sends it.
150
163
  // Used only as a tiebreak in the "recommended" ordering - see
151
164
  // routes-order's Found/refine.ts. Absent on external-provider offers.
package/types/settings.ts CHANGED
@@ -217,6 +217,16 @@ export interface LabelSettings {
217
217
  access_token?: string
218
218
  template_name?: string
219
219
  template_language?: string
220
+
221
+ /**
222
+ * Edited: Ferjolt Ozuni - Date: 2026-08-05
223
+ * The separate approved template used by the route+date broadcast
224
+ * composer. Optional: a brand can confirm purchases without ever
225
+ * broadcasting, and Meta approves a template for a stated purpose, so
226
+ * service alerts cannot reuse the confirmation one.
227
+ */
228
+ alert_template_name?: string
229
+ alert_template_language?: string
220
230
  display_phone?: string
221
231
  }
222
232