76 lines
1.4 KiB
TypeScript
76 lines
1.4 KiB
TypeScript
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: number;
|
|
images: {
|
|
id: number;
|
|
image: string;
|
|
}[];
|
|
meansurement: null | number;
|
|
inventory_id: null | string;
|
|
product_id: string;
|
|
code: string;
|
|
name: string;
|
|
short_name: string;
|
|
weight_netto: null | string;
|
|
weight_brutto: null | string;
|
|
litr: null | string;
|
|
box_type_code: null | string;
|
|
box_quant: null | string;
|
|
groups: {
|
|
id: number;
|
|
name: string;
|
|
image: string;
|
|
type: string;
|
|
}[];
|
|
state: string;
|
|
barcodes: null | string;
|
|
article_code: null | string;
|
|
marketing_group_code: null | string;
|
|
inventory_kinds: { id: number; name: string }[];
|
|
sector_codes: { id: number; code: 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: number;
|
|
name: string;
|
|
image: string | null;
|
|
order: number;
|
|
category_id: null | number;
|
|
type: null | string;
|
|
}
|
|
|
|
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;
|
|
}
|