// Copyright © 2022-2026 Partium, Inc. DBA Partium import { ImageSubmissionContentType } from './image-submission-content-type'; /** * An interest area of an image. */ export interface ImageInterestArea { /** * The x coordinate of the top-left corner of the interest area. */ x1: number; /** * The y coordinate of the top-left corner of the interest area. */ y1: number; /** * The x coordinate of the bottom-right corner of the interest area. */ x2: number; /** * The y coordinate of the bottom-right corner of the interest area. */ y2: number; } /** * An image submission to update. */ export interface UpdateImageSubmission { /** * The ID of the part. */ partId: string; /** * The ID of the image. */ imageId: string; /** * Whether the image is searchable. */ searchable?: boolean; /** * Whether the image is displayed. */ display?: boolean; /** * Whether the image is the primary image. */ isPrimaryImage?: boolean; /** * The content type of the image. */ content?: ImageSubmissionContentType; /** * The interest area of the image. */ areaOfInterest?: ImageInterestArea; } /** * Request for updating image submissions. */ export interface UpdateImageSubmissionRequest { /** * The organization name. */ organization?: string; /** * The images to update. */ images: UpdateImageSubmission[]; }