@autobusal/providers 1.0.49 → 1.0.51

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.49",
3
+ "version": "1.0.51",
4
4
  "type": "module",
5
5
  "main": "index.ts"
6
6
  }
@@ -28,4 +28,5 @@ export interface CityData {
28
28
  export interface StopData {
29
29
  id: number
30
30
  name: string
31
+ location: string[]
31
32
  }
@@ -13,6 +13,7 @@ export interface OperatorData {
13
13
  last_name?: string
14
14
  website?: string
15
15
  full_address?: string
16
+ email?: string
16
17
  phone?: string
17
18
  mobile?: string
18
19
  mobile2?: string
@@ -0,0 +1,55 @@
1
+ import { CountryData } from './locations';
2
+ import { PriceData, RouteData } from './routes';
3
+ import { UserData } from './users';
4
+
5
+ export interface CouponData {
6
+ code: string
7
+ discount: string
8
+ total: string
9
+ }
10
+
11
+ export interface OrderData {
12
+ hash: string
13
+ date_travel: string
14
+ price: PriceData
15
+ route: RouteData
16
+ contact?: ContactData
17
+ passengers: TicketData[]
18
+ price_display: string
19
+ note_cancel: string
20
+ actions: string[]
21
+ }
22
+
23
+ export interface ContactData {
24
+ email: string
25
+ first_name: string
26
+ last_name: string
27
+ phone: string
28
+ address: string
29
+ city: string
30
+ company: string
31
+ nipt: string
32
+ comments: string
33
+ full_name: string
34
+ country: CountryData
35
+ }
36
+
37
+ export interface TicketData {
38
+ id: number
39
+ type: string
40
+ first_name: string
41
+ last_name: string
42
+ dob: string
43
+ sex: number
44
+ passport: string
45
+ phone: string
46
+ bus_seat?: number
47
+ changes?: ChangeData[]
48
+ }
49
+
50
+ export interface ChangeData {
51
+ id: number
52
+ user: UserData
53
+ changes: string
54
+ updated_at: string
55
+ }
package/types/routes.ts CHANGED
@@ -55,4 +55,6 @@ export interface PriceData {
55
55
  display: string
56
56
  offer?: boolean
57
57
  value: number
58
+ from: LocationData
59
+ to: LocationData
58
60
  }
package/types/users.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  export interface UserData {
2
- user: any
2
+ id: number
3
3
  }