@autobusal/providers 1.7.0 → 1.9.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.9.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
package/types/settings.ts CHANGED
@@ -174,6 +174,10 @@ export interface LabelSettings {
174
174
  telegram?: {
175
175
  status: 'disabled' | 'dedicated' | 'main'
176
176
  price: number
177
+ // Edited: Ferjolt Ozuni - Date: 2026-07-31
178
+ // whether this label gives the addon fee back on cancellation;
179
+ // snapshotted onto each purchase, so it only affects future orders
180
+ refundable?: boolean
177
181
  bot_token?: string
178
182
  bot_username?: string
179
183
  }
@@ -185,6 +189,10 @@ export interface LabelSettings {
185
189
  whatsapp?: {
186
190
  status: 'disabled' | 'dedicated' | 'main'
187
191
  price: number
192
+ // Edited: Ferjolt Ozuni - Date: 2026-07-31
193
+ // whether this label gives the addon fee back on cancellation;
194
+ // snapshotted onto each purchase, so it only affects future orders
195
+ refundable?: boolean
188
196
  phone_number_id?: string
189
197
  access_token?: string
190
198
  template_name?: string