From 118f64e449c5e54e1d74ba3ea60dae454236718d Mon Sep 17 00:00:00 2001 From: itskovacs Date: Wed, 15 Oct 2025 23:35:29 +0200 Subject: [PATCH] Trip: Attachment and Backup interfaces --- src/src/app/types/settings.ts | 11 +++++++++++ src/src/app/types/trip.ts | 8 ++++++++ 2 files changed, 19 insertions(+) diff --git a/src/src/app/types/settings.ts b/src/src/app/types/settings.ts index 1bbfcc1..0e81bf4 100644 --- a/src/src/app/types/settings.ts +++ b/src/src/app/types/settings.ts @@ -17,3 +17,14 @@ export interface ImportResponse { categories: Category[]; 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; +} diff --git a/src/src/app/types/trip.ts b/src/src/app/types/trip.ts index ef2f536..df51fda 100644 --- a/src/src/app/types/trip.ts +++ b/src/src/app/types/trip.ts @@ -22,6 +22,7 @@ export interface Trip { currency: string; notes?: string; archival_review?: string; + attachments?: TripAttachment[]; // POST / PUT places: Place[]; @@ -29,6 +30,13 @@ export interface Trip { shared?: boolean; } +export interface TripAttachment { + id: number; + filename: string; + file_size: number; + uploaded_by: string; +} + export interface TripDay { id: number; label: string;