@autobusal/providers 1.0.31 → 1.0.32

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.31",
3
+ "version": "1.0.32",
4
4
  "type": "module",
5
5
  "main": "index.ts",
6
6
  "dependencies": {
@@ -1,6 +1,25 @@
1
+ export interface LocationData {
2
+ id: number
3
+ departure: string
4
+ arrival: string
5
+ city: CityData
6
+ stop?: StopData
7
+ }
8
+
9
+ export interface CountryData {
10
+ id: number
11
+ name: string
12
+ }
13
+
1
14
  export interface CityData {
2
15
  id: number
3
16
  name: string
4
17
  location: string[]
5
18
  slug: string
19
+ douane?: number
20
+ }
21
+
22
+ export interface StopData {
23
+ id: number
24
+ name: string
6
25
  }
package/types/routes.ts CHANGED
@@ -1,3 +1,36 @@
1
+ import { LocationData, CountryData } from './locations';
2
+ import { OperatorData } from './operators';
3
+
1
4
  export interface RouteData {
2
5
  id: number
6
+ name: string
7
+ code: string
8
+ operator: OperatorData
9
+ locations: LocationData[]
10
+ available: AvailableData
11
+ transiting: TransitingData[]
12
+ trip: TripData
13
+ link: string
14
+ link_purchase: string
15
+ }
16
+
17
+ export interface AvailableData {
18
+ id: number
19
+ schedule_display: string
20
+ }
21
+
22
+ export interface TransitingData {
23
+ id: number
24
+ country: CountryData
25
+ }
26
+
27
+ export interface TripData {
28
+ id: number
29
+ features_data: FeatureData[]
30
+ }
31
+
32
+ interface FeatureData {
33
+ id: number
34
+ name: string
35
+ image_url: string
3
36
  }