Initial release

This commit is contained in:
2025-05-30 17:07:06 +03:00
commit cd63464bc2
28 changed files with 988 additions and 0 deletions

44
src/types/api.ts Normal file
View File

@@ -0,0 +1,44 @@
export interface AuthResponse {
id: number;
username: string;
full_name: string;
auth_token: string;
refresh: string;
}
export interface Project {
id: number;
name: string;
slug: string;
}
export interface ProjectField {
id: number;
name: string;
description: string;
type: "text" | "number" | "date" | string; // Возможно, понадобятся другие типы, но пока так
order: number;
project: number; // ID проекта (доски)
}
export interface UserstoryStatusInfo {
name: string;
color: string;
is_closed: boolean;
}
export interface Userstory {
id: number;
subject: string;
status: number; // ID статуса
status_extra_info: UserstoryStatusInfo;
project: number; // ID проекта (доски)
}
export interface UserstoryAttributeValuesResponse {
attributes_values: {
[fieldId: string]: string | number | null;
};
version: number;
user_story: number; // ID юзерстори (карточки)
}