@autobusal/providers 1.3.0 → 1.3.1

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,13 @@ 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.1] - 2026-07-25
8
+
9
+ ### Added
10
+
11
+ - `TripData.passenger_fields` (which passenger details a route requires at
12
+ checkout) and `TicketData.whatsapp`/`telegram` messaging contacts.
13
+
7
14
  ## [1.3.0] - 2026-07-25
8
15
 
9
16
  ### 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.1",
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
@@ -50,6 +50,10 @@ export interface TransitingData {
50
50
  }
51
51
 
52
52
  export interface TripData {
53
+ // Edited: Ferjolt Ozuni - Date: 2026-07-25
54
+ // which passenger details this route requires at checkout
55
+ // (null = legacy default: sex + passport)
56
+ passenger_fields?: string[] | null
53
57
  id: number
54
58
  bus?: BusData
55
59
  bags_weight_display: string