diff --git a/app/types/api.d.ts b/app/types/api.d.ts
index 29aa47a..4c5b15d 100644
--- a/app/types/api.d.ts
+++ b/app/types/api.d.ts
@@ -267,11 +267,24 @@ export interface CreateAreaRequest {
description?: string;
}
+export interface UpdateAreaRequest {
+ name?: string;
+ boundary_geojson?: GeoJsonObject;
+ description?: string;
+ active?: boolean;
+}
+
export interface CreateCategoryRequest {
name: string;
description?: string;
}
+export interface UpdateCategoryRequest {
+ name?: string;
+ description?: string;
+ active?: boolean;
+}
+
export interface CreateTeamRequest {
team_category_id: number;
name: string;
@@ -279,6 +292,14 @@ export interface CreateTeamRequest {
area_id?: number;
}
+export interface UpdateTeamRequest {
+ team_category_id?: number;
+ name?: string;
+ description?: string;
+ area_id?: number | null;
+ active?: boolean;
+}
+
export interface UpdateUserBanRequest {
banned: boolean;
}
@@ -346,6 +367,12 @@ export interface InterventionSummaryResponse {
latest_messages: Message[];
}
+export interface AssignmentLinkResponse {
+ ok: boolean;
+ url: string;
+ expires_at: string;
+}
+
export interface MediaUploadResponse {
ok: boolean;
media: Media[];
@@ -416,4 +443,4 @@ export interface OverviewStatsResponse {
avg_resolution_hours_by_area: { area: string; value: number }[];
total_users?: number;
open_reports?: number;
-}
\ No newline at end of file
+}