Trip: Attachment and Backup interfaces
This commit is contained in:
parent
2b7d517c51
commit
118f64e449
@ -17,3 +17,14 @@ export interface ImportResponse {
|
|||||||
categories: Category[];
|
categories: Category[];
|
||||||
settings: Settings;
|
settings: Settings;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface Backup {
|
||||||
|
id: number;
|
||||||
|
status: string;
|
||||||
|
user: string;
|
||||||
|
filename?: string;
|
||||||
|
file_size?: number;
|
||||||
|
completed_at?: string;
|
||||||
|
created_at?: string;
|
||||||
|
error_message?: string;
|
||||||
|
}
|
||||||
|
|||||||
@ -22,6 +22,7 @@ export interface Trip {
|
|||||||
currency: string;
|
currency: string;
|
||||||
notes?: string;
|
notes?: string;
|
||||||
archival_review?: string;
|
archival_review?: string;
|
||||||
|
attachments?: TripAttachment[];
|
||||||
|
|
||||||
// POST / PUT
|
// POST / PUT
|
||||||
places: Place[];
|
places: Place[];
|
||||||
@ -29,6 +30,13 @@ export interface Trip {
|
|||||||
shared?: boolean;
|
shared?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface TripAttachment {
|
||||||
|
id: number;
|
||||||
|
filename: string;
|
||||||
|
file_size: number;
|
||||||
|
uploaded_by: string;
|
||||||
|
}
|
||||||
|
|
||||||
export interface TripDay {
|
export interface TripDay {
|
||||||
id: number;
|
id: number;
|
||||||
label: string;
|
label: string;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user