import '../domain/product_draft.dart';
import '../domain/product_publishing_repository.dart';
import '../domain/publish_status.dart';

/// Use case: update the publishing status of a single product by its [id].
///
/// This is a narrow status mutation — not a generic product edit.
class UpdateProductStatus {
  final ProductPublishingRepository repository;

  UpdateProductStatus(this.repository);

  Future<ProductDraft> call(String id, PublishStatus status) =>
      repository.updateProductStatus(id, status);
}
