@autobusal/providers 1.3.0 → 1.3.2

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
@@ -4,6 +4,19 @@ All notable changes to `@autobusal/providers` are documented here. This project
4
4
  adheres to [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and
5
5
  [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## [1.3.2] - 2026-07-25
8
+
9
+ ### Fixed
10
+
11
+ - `RouteData.passenger_fields` (route form submit shape) missing from 1.3.1.
12
+
13
+ ## [1.3.1] - 2026-07-25
14
+
15
+ ### Added
16
+
17
+ - `TripData.passenger_fields` (which passenger details a route requires at
18
+ checkout) and `TicketData.whatsapp`/`telegram` messaging contacts.
19
+
7
20
  ## [1.3.0] - 2026-07-25
8
21
 
9
22
  ### Changed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autobusal/providers",
3
- "version": "1.3.0",
3
+ "version": "1.3.2",
4
4
  "author": "Ferjolt Ozuni",
5
5
  "type": "module",
6
6
  "main": "index.ts"
package/types/orders.ts CHANGED
@@ -68,6 +68,8 @@ export interface TicketData {
68
68
  sex: number
69
69
  passport: string
70
70
  phone: string
71
+ whatsapp?: string | null
72
+ telegram?: string | null
71
73
  bus_seat?: number
72
74
  checkedin?: 'yes' | 'no'
73
75
  changes?: ChangeData[]
package/types/routes.ts CHANGED
@@ -20,6 +20,7 @@ export interface RouteData {
20
20
  drivers: DriversData
21
21
  orders: OrderData[]
22
22
  features?: number[]
23
+ passenger_fields?: string[]
23
24
  trip: TripData
24
25
  link: string
25
26
  link_purchase: string
@@ -50,6 +51,10 @@ export interface TransitingData {
50
51
  }
51
52
 
52
53
  export interface TripData {
54
+ // Edited: Ferjolt Ozuni - Date: 2026-07-25
55
+ // which passenger details this route requires at checkout
56
+ // (null = legacy default: sex + passport)
57
+ passenger_fields?: string[] | null
53
58
  id: number
54
59
  bus?: BusData
55
60
  bags_weight_display: string