-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.ts
75 lines (70 loc) · 1.46 KB
/
types.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
export type tourStatus =
| "geplant"
| "fahrzeug kommt"
| "kunde eingestiegen"
| "fahre zum ziel"
| "auftrag abgeschlossen"
| "auftrag storniert";
export type kfzfarbe = string;
export type kfzkennzeichen = string;
export type kfznummer = string;
export type kfztyp = string;
export type pax = string;
export type Tour = {
id: string;
flightno: string;
note_departure: string;
note_arrival: string;
abfahrtzeit: string;
kfzfarbe: kfzfarbe;
kfzkennzeichen: kfzkennzeichen;
kfznummer: kfznummer;
kfztyp: kfztyp;
latitude: string;
longitude: string;
pax: pax;
phone: string;
starthausnummer: string;
startort: string;
startplz: string;
startstrasse: string;
status: tourStatus;
verspaetung: string;
zielhausnummer: string;
zielort: string;
zielplz: string;
zielstrasse: string;
};
export type Company = {
company_name: string;
email_domain: string;
id: number;
short: string;
};
export type ToursPayload = {
flightNumber: string;
tours: Tour[];
companies: Company[];
};
export type Role = {
created_at;
description: string;
id: number;
name: string;
pivot: any;
slug: "company" | "customer" | "admin" | "event-agency";
token_expires_at: string;
updated_at: string;
};
export type User = {
created_at: string;
email: string;
email_verified_at: string;
id: number;
last_login: string;
name: string;
passwordless_login_token: any;
personal_number: string;
phone_number: any;
roles: Role[];
};