@autobusal/providers 1.7.0 → 1.8.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
@@ -402,3 +402,10 @@ adheres to [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and
402
402
  Authored by Ferjolt Ozuni. Consolidated from the magus and alvavel whitelabel
403
403
  patch sets into canonical @autobusal source (eliminates per-repo patch-package
404
404
  divergence).
405
+
406
+ ## 1.8.0
407
+
408
+ `TicketData.status` ('active' | 'cancelled'). A passenger can now be
409
+ cancelled without the rest of the booking going with them, so consumers need
410
+ a way to tell. Optional - a missing value means 'active', which keeps older
411
+ payloads and any not-yet-rebuilt consumer type-checking.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autobusal/providers",
3
- "version": "1.7.0",
3
+ "version": "1.8.0",
4
4
  "author": "Ferjolt Ozuni",
5
5
  "type": "module",
6
6
  "main": "index.ts"
package/types/orders.ts CHANGED
@@ -60,6 +60,11 @@ export interface ContactData {
60
60
 
61
61
  export interface TicketData {
62
62
  id: number
63
+ // Edited: Ferjolt Ozuni - Date: 2026-07-31
64
+ // A passenger can now be cancelled without the rest of the booking going
65
+ // with them. Optional so older payloads - and any consumer that has not
66
+ // rebuilt yet - keep type-checking; treat a missing value as 'active'.
67
+ status?: 'active' | 'cancelled'
63
68
  type: string
64
69
  name: string
65
70
  first_name: string