use serde::Deserialize;
use utoipa::{IntoParams, ToSchema};
use uuid::Uuid;
pub use crate::dto::add::{
DataIngestionInfoDTO, ErrorResponseDTO, PipelineRunInfoDTO, UploadedPart,
};
#[derive(Debug, Deserialize, IntoParams)]
pub struct UpdateQuery {
pub data_id: Uuid,
pub dataset_id: Uuid,
}
#[derive(Debug, ToSchema)]
#[allow(dead_code)]
pub struct UpdateMultipart {
#[schema(format = "binary")]
pub data: Vec<u8>,
}
pub struct UpdateRequest {
pub files: Vec<UploadedPart>,
}
pub type UpdateResponseDTO = std::collections::HashMap<Uuid, PipelineRunInfoDTO>;