@autobusal/providers 1.0.45 → 1.0.47

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autobusal/providers",
3
- "version": "1.0.45",
3
+ "version": "1.0.47",
4
4
  "type": "module",
5
5
  "main": "index.ts"
6
6
  }
package/types/buses.ts ADDED
@@ -0,0 +1,19 @@
1
+ export interface OccupiedData {
2
+ bus?: BusData
3
+ occupied: number[]
4
+ }
5
+
6
+ export interface BusData {
7
+ id: number
8
+ name: string
9
+ image_url: string
10
+ seats: SeatData[]
11
+ }
12
+
13
+ export interface SeatData {
14
+ no: number
15
+ top: number
16
+ left: number
17
+ width: number
18
+ height: number
19
+ }
package/types/routes.ts CHANGED
@@ -40,23 +40,14 @@ export interface PolicyData {
40
40
  policies: string
41
41
  }
42
42
 
43
- export interface FoundData {
44
- id: number
45
- name: string
43
+ export interface FoundData extends Omit<RouteData, 'locations'> {
46
44
  price: PriceData
47
45
  duration: string
48
46
  customs: string[]
49
- transiting: string[]
50
47
  locations: {
51
48
  from: LocationData
52
49
  to: LocationData
53
50
  }
54
- code: string
55
- link: string
56
- operator: OperatorData
57
- trip: {
58
- features: FeatureData[]
59
- }
60
51
  }
61
52
 
62
53
  export interface PriceData {