@autobusal/providers 1.0.42 → 1.0.43

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/types/routes.ts +26 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autobusal/providers",
3
- "version": "1.0.42",
3
+ "version": "1.0.43",
4
4
  "type": "module",
5
5
  "main": "index.ts"
6
6
  }
package/types/routes.ts CHANGED
@@ -38,4 +38,30 @@ export interface FeatureData {
38
38
  export interface PolicyData {
39
39
  id: number
40
40
  policies: string
41
+ }
42
+
43
+ export interface FoundData {
44
+ id: number
45
+ name: string
46
+ price: PriceData
47
+ duration: string
48
+ customs: string[]
49
+ transiting: string[]
50
+ locations: {
51
+ from: LocationData
52
+ to: LocationData
53
+ }
54
+ code: string
55
+ link: string
56
+ operator: OperatorData
57
+ trip: {
58
+ features: FeatureData[]
59
+ }
60
+ }
61
+
62
+ export interface PriceData {
63
+ id: number
64
+ display: string
65
+ offer?: boolean
66
+ value: number
41
67
  }