import { Entity } from '../../../types/api';
import { ProductCategory } from '../../productCategories/types/api';
import { ProductCollection } from '../../productCollections/types/api';
import { ProductColour } from '../../productColours/types/api';
import { ProductSize } from '../../productSizes/types/api';

export type Product = Entity<{
    category_id: number;
    category: ProductCategory;
    collection_id: number;
    collection: ProductCollection;
    colour_id: number;
    colour: ProductColour;
    size_id: number;
    size: ProductSize;
    sku: string;
    name: string;
    description: string;
    price: number;
    hpp: number;
    unit_of_measure: string;
    is_raw_material: boolean;
    is_finished_good: boolean;
}>;

export type ProductResponse = Product[];
