// Copyright © 2022-2026 Partium, Inc. DBA Partium import { CatalogImageInfo } from './catalog-image-info'; /** * DTO for creating a new image * * @see UpsertCatalogImagesDto */ export interface NewCatalogImageDto { /** * The ID of the image */ imageId: string; /** * The external ID of the part */ externalPartId: string; /** * Meta data information to define the purpose of this image */ info: CatalogImageInfo; } /** * DTO for upserting images * * @see NewCatalogImageDto */ export interface UpsertCatalogImagesDto { /** * Array of File objects containing the image data to upload */ files: File[]; /** * Array of image metadata corresponding to each file * The array indices should match between files and images arrays */ images: NewCatalogImageDto[]; }