import type { Brand, Category, OrderItem, OrderItemLegacy } from '@farfetch/blackout-client'; import type { BrandEntity } from './brand.types.js'; import type { CategoryEntity } from './category.types.js'; import type { CustomAttributesAdapted, PriceAdapted, ProductImagesAdapted } from '../../types/index.js'; import type { MerchantEntity } from './merchant.types.js'; export type OrderItemEntity = Omit & { brand: Brand['id']; categories: Array; customAttributes: CustomAttributesAdapted; images: ProductImagesAdapted; price: PriceAdapted | undefined; productAggregator: Omit & { images: ProductImagesAdapted; }; preOrder?: Omit & { expectedFulfillmentDate?: { endDate?: number | null; startDate?: number | null; }; }; }; export type OrderItemEntityDenormalized = Omit & { brand?: BrandEntity; categories?: Array; merchant?: MerchantEntity; };