import { Brand } from "./brand"; export interface Product { manufacturerId?: number; contractId?: number; contractProductId?: number; commercialReference?: string; technicalReference?: string; fullDescription?: string; brand?: string; family?: string; saleDate?: string; warrantyRate?: number; remainingMonths?: number; totalMonths?: number; startDate?: string; endDate?: string; } export type Products = Product[]; export interface MappedProduct { name: string; saleDate: string; commref: string; brand: string; refTech: string; family: string; fileId?: string; } export interface ProductDetails { contractId?: number; contractProductId?: number; remainingMonths?: number; } export type MappedProducts = MappedProduct[]; export interface ProductXS { commercialRef?: string; technicalRef?: string; technicalRefs?: string[]; brand?: string | Brand; family?: string; PurchaseDate?: string; attachementName?: string; attachementSize?: number; fullDescription?: string; isPEM?: boolean; isForSolmis?: boolean; } export type ProductsXS = ProductXS[]; export interface ProductOCR { CommercialRef?: string; Amount?: string; PurchaseDate?: string; Brand?: string; } export type ProductsOCR = ProductOCR[]; export interface TempDevice { productReference?: string; productTechReference?: string; salesDate?: string; brand?: Brand; family?: string; }