import { TAttributeInstance, TProduct, TProductCategory, TProductRating, TProductReview, TStockStatus } from '@cromwell/core'; import { AttributeToProduct } from './attribute-product.entity'; import { BasePageEntity } from './base-page.entity'; import { ProductMeta } from './meta/product-meta.entity'; import { ProductCategory } from './product-category.entity'; import { ProductVariant } from './product-variant.entity'; export declare class Product extends BasePageEntity implements TProduct { name?: string | null; categories?: TProductCategory[] | null; mainCategoryId?: number | null; mainCategory?: ProductCategory | null; price?: number | null; oldPrice?: number | null; sku?: string | null; mainImage?: string | null; images?: string[] | null; stockAmount?: number | null; stockStatus?: TStockStatus | null; manageStock?: boolean | null; description?: string | null; descriptionDelta?: string | null; reviews?: TProductReview[] | null; attributeValues?: AttributeToProduct[] | null; /** * DB Records from `attributeValues` relation converted for frontend representation */ attributes?: TAttributeInstance[] | null; variants?: ProductVariant[] | null; views?: number | null; /** * ! Not real columns, workaround to make SELECT count reviews: * https://github.com/CromwellCMS/Cromwell/blob/9eb541b1be060f792abbf4f7133071099a8633f2/system/core/backend/src/repositories/ProductRepository.ts#L39-L45 */ averageRating?: number | null; reviewsCount?: number | null; metaRecords?: ProductMeta[] | null; } export declare class ProductRating implements TProductRating { average?: number; reviewsNumber?: number; } //# sourceMappingURL=product.entity.d.ts.map