Travel list

This commit is contained in:
Eneko Nieto committed 2021-01-22 02:34:32 +01:00
1 parent d133876325
commit 6bb528e5fc
16 files changed
+349 -30

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
export interface ApiResponse<T> {
success: boolean;
data?: T;
error?: ApiError;
}
export interface ApiError {
code: string;
msg?: string;
}
+15
View File
@@ -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;
}
+7
View File
@@ -0,0 +1,7 @@
export type UserId = string;
export interface User {
id: UserId;
matrixId?: string;
name: string;
}