@autobusal/providers 1.40.4 → 1.40.6

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,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.40.6 (2026-08-26)
4
+
5
+ - settings types: addons gains `flex` and `seats` entries (both optional).
6
+
3
7
  ## 1.40.4
4
8
 
5
9
  ### Fixed
@@ -369,6 +373,13 @@ added to `OperatorData` and `RouteData`, always optional and often absent.
369
373
  (`auto_publish`, `threshold`). Absent or false means every review waits for a
370
374
  human, which is the default for every brand.
371
375
 
376
+ ## [1.40.5] - 2026-08-26
377
+
378
+ ### Added
379
+
380
+ - `OrderData.round_trip?` - whether the order is already half of a round
381
+ trip (either leg); computed by obtapi's single-order endpoint.
382
+
372
383
  ## [1.17.0] - 2026-08-02
373
384
 
374
385
  ### Changed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autobusal/providers",
3
- "version": "1.40.4",
3
+ "version": "1.40.6",
4
4
  "author": "Ferjolt Ozuni",
5
5
  "type": "module",
6
6
  "main": "index.ts"
package/types/orders.ts CHANGED
@@ -53,6 +53,10 @@ export interface OrderData {
53
53
  * Libraries\Orders\View::ownerCategory() (obtapi) for the mapping.
54
54
  */
55
55
  owner_category: 'agency' | 'operator' | 'individual'
56
+ // Claude - 2026-08-26: whether this order is already half of a round
57
+ // trip (either leg) - the return-trip offer stays silent when true.
58
+ // Optional: only the single-order endpoint computes it.
59
+ round_trip?: boolean
56
60
  // Edited: Ferjolt Ozuni - Date: 2026-08-11
57
61
  // Optional now: hidden on a restricted response (the public order lookup
58
62
  // and any other non-self-service view) - see View::get()'s $restricted.
package/types/settings.ts CHANGED
@@ -67,6 +67,20 @@ export interface SettingsData {
67
67
  * bought. Optional so an older payload cannot crash the checkout.
68
68
  */
69
69
  sms?: { available: boolean, price: number }
70
+
71
+ // Edited: Ferjolt Ozuni - Date: 2026-08-03 / typed 2026-08-26
72
+ // Flexible Ticket: `available` only - the real offer and price are
73
+ // per-booking (Orders\FlexController).
74
+ flex?: { available: boolean, price: number }
75
+
76
+ /**
77
+ * Edited: Claude - Date: 2026-08-26
78
+ * Seat selection. `available: true` is what flips checkout from the
79
+ * legacy required-free pick to optional-and-priced; `price` is per
80
+ * hand-picked seat, display only - the server prices the charge.
81
+ * Optional so an older payload cannot crash the checkout.
82
+ */
83
+ seats?: { available: boolean, price: number }
70
84
  }
71
85
 
72
86
  // Edited: Ferjolt Ozuni - Date: 2026-07-31