Travel list
This commit is contained in:
1 parent
d133876325
commit
6bb528e5fc
16 files changed
+349
-30
No files matched your search
@@ -0,0 +1,10 @@
|
||||
export interface ApiResponse<T> {
|
||||
success: boolean;
|
||||
data?: T;
|
||||
error?: ApiError;
|
||||
}
|
||||
|
||||
export interface ApiError {
|
||||
code: string;
|
||||
msg?: string;
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
import { User } from './user';
|
||||
|
||||
export type TravelId = number;
|
||||
|
||||
export interface Travel {
|
||||
id: Travel;
|
||||
driver: User;
|
||||
travelers: User[];
|
||||
departureDate: string;
|
||||
origin: string;
|
||||
destination: string;
|
||||
availablePlaces: number;
|
||||
description?: string;
|
||||
matrixRoomId: string;
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
export type UserId = string;
|
||||
|
||||
export interface User {
|
||||
id: UserId;
|
||||
matrixId?: string;
|
||||
name: string;
|
||||
}
|
||||
Reference in new issue
Block a user