<?php
/**
 * @author 1902 Software
 * @copyright Copyright © 2023 1902 Software (https://1902software.com/magento/)
 * @package WriteTextAI_WriteTextAI
 */
declare(strict_types=1);

namespace WriteTextAI\WriteTextAI\Api;

use Magento\Framework\Api\SearchCriteriaInterface;

interface SingleGenerateRequestsRepositoryInterface
{
    /**
     * Save single_generate_requests
     *
     * @param \WriteTextAI\WriteTextAI\Api\Data\SingleGenerateRequestsInterface $singleGenerateRequests
     * @return \WriteTextAI\WriteTextAI\Api\Data\SingleGenerateRequestsInterface
     * @throws \Magento\Framework\Exception\LocalizedException
     */
    public function save(
        \WriteTextAI\WriteTextAI\Api\Data\SingleGenerateRequestsInterface $singleGenerateRequests
    );

    /**
     * Retrieve single_generate_requests
     *
     * @param string $singleGenerateRequestsId
     * @return \WriteTextAI\WriteTextAI\Api\Data\SingleGenerateRequestsInterface
     * @throws \Magento\Framework\Exception\LocalizedException
     */
    public function get($singleGenerateRequestsId);

    /**
     * Retrieve single_generate_requests matching the specified criteria.
     *
     * @param \Magento\Framework\Api\SearchCriteriaInterface $searchCriteria
     * @return \WriteTextAI\WriteTextAI\Api\Data\SingleGenerateRequestsSearchResultsInterface
     * @throws \Magento\Framework\Exception\LocalizedException
     */
    public function getList(
        \Magento\Framework\Api\SearchCriteriaInterface $searchCriteria
    );

    /**
     * Delete single_generate_requests
     *
     * @param \WriteTextAI\WriteTextAI\Api\Data\SingleGenerateRequestsInterface $singleGenerateRequests
     * @return bool true on success
     * @throws \Magento\Framework\Exception\LocalizedException
     */
    public function delete(
        \WriteTextAI\WriteTextAI\Api\Data\SingleGenerateRequestsInterface $singleGenerateRequests
    );

    /**
     * Delete single_generate_requests by ID
     *
     * @param string $singleGenerateRequestsId
     * @return bool true on success
     * @throws \Magento\Framework\Exception\NoSuchEntityException
     * @throws \Magento\Framework\Exception\LocalizedException
     */
    public function deleteById($singleGenerateRequestsId);
}
