renamed folders

This commit is contained in:
Vladislav Khorev committed 2024-02-14 08:04:02 +00:00
1 parent d6c6504d1f
commit e0e2f5470d
204 files changed

No files matched your search

+6
View File
@@ -0,0 +1,6 @@
export interface IAuthor {
id: number;
first_name: string;
last_name: string;
govern_status: unknown;
}
+5
View File
@@ -0,0 +1,5 @@
export interface IFetch {
error: string;
data?: any;
isLoading: boolean;
}
+5
View File
@@ -0,0 +1,5 @@
export interface IList {
count: number | null;
previous: string | null;
next: string | null;
}
+6
View File
@@ -0,0 +1,6 @@
export interface ILocation {
id: 4;
latitude: number;
longitude: number;
address: string;
}
+16
View File
@@ -0,0 +1,16 @@
export interface IAddress {
city: string;
city_district: string;
country: string;
country_code: string;
road: string;
suburb: string;
}
export interface IDisplayMap {
lat: string;
lon: string;
address: IAddress;
place_id: number;
display_name: string;
}
+18
View File
@@ -0,0 +1,18 @@
import { IList } from "./list-type";
import { ILocation } from "./location-type";
import { IReportImage } from "./report-image-type";
export interface IMyReports {
id: number;
location: ILocation[];
image: IReportImage[];
status: number;
total_likes: number;
count_reviews: number;
created_at: string;
updated_at: string;
}
export interface IMyReportsList extends IList {
results: IMyReports[];
}
+16
View File
@@ -0,0 +1,16 @@
import { IList } from "./list-type";
export interface INews {
id: number;
image: string;
title: string;
description: string;
set_time: null;
created_at: string;
updated_at: string;
count_reviews: number;
}
export interface INewsList extends IList {
results: INews[];
}
+9
View File
@@ -0,0 +1,9 @@
export interface IProfile {
id: number;
email: string;
first_name: string;
last_name: string;
image: string;
role: number;
govern_status: null;
}
+4
View File
@@ -0,0 +1,4 @@
export interface IReportImage {
id: number;
image: string;
}
+17
View File
@@ -0,0 +1,17 @@
import { IAuthor } from "./author-type";
import { ILocation } from "./location-type";
import { IReportImage } from "./report-image-type";
export interface IReport {
results: any;
id: number;
image: IReportImage[];
description: string;
author: IAuthor;
created_at: string;
updated_at: string;
location: ILocation[];
category: number;
total_likes: number;
count_reviews: number;
}
+18
View File
@@ -0,0 +1,18 @@
import { IList } from "./list-type";
export interface IReview {
id: number;
author: {
id: number;
first_name: string;
last_name: string;
image: string;
govern_status: null;
};
review: string;
created_at: string;
}
export interface IReviewList extends IList {
results: IReview[];
}
+9
View File
@@ -0,0 +1,9 @@
export interface IStatistics {
name: string;
broken_road_1: number;
hotbed_of_accidents_2: number;
local_defect_3: number;
repair_plans_4: number;
repaired_5: number;
local_defect_fixed_6: number;
}
+5
View File
@@ -0,0 +1,5 @@
export interface ITokens {
refresh_token: string;
access_token: string;
expires_in: string;
}
+8
View File
@@ -0,0 +1,8 @@
export interface IUserRatings {
user_id: number;
username: string;
report_count: number;
likes_given_count: number;
likes_received_count: number;
average_rating: number;
}