api ulangan

This commit is contained in:
Samandar Turgunboyev
2025-12-22 19:03:57 +05:00
parent fd397b670b
commit 7f2fe3868b
121 changed files with 12636 additions and 5528 deletions

View File

@@ -0,0 +1,70 @@
export interface ProductsList {
total: number;
page: number;
page_size: number;
total_pages: number;
has_next: boolean;
has_previous: boolean;
results: Product[];
}
export interface Product {
id: string;
name_uz: string;
name_ru: string;
is_active: boolean;
image: string;
category: string;
price: number;
description_uz: string;
description_ru: string;
unity: string;
tg_id: string;
code: string;
article: string;
quantity_left: number;
min_quantity: number;
brand: null | string;
return_date: null | string;
expires_date: null | string;
manufacturer: null | string;
volume: string;
images: {
id: string;
image: string;
}[];
}
export interface Category {
total: number;
page: number;
page_size: number;
total_pages: number;
has_next: boolean;
has_previous: boolean;
results: CategoryItem[];
}
export interface CategoryItem {
id: string;
name_uz: string;
name_ru: string;
image: string;
order: number;
}
export interface UnityList {
total: number;
page: number;
page_size: number;
total_pages: number;
has_next: boolean;
has_previous: boolean;
results: UnityItem[];
}
export interface UnityItem {
id: string;
name_uz: string;
name_ru: string;
}