api ulangan
This commit is contained in:
70
src/features/plans/lib/data.ts
Normal file
70
src/features/plans/lib/data.ts
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user