using System.Text.Json;
namespace Bit.SeederApi.Services;
public interface IRecipeService
{
///
/// Executes a recipe with the given template name and arguments.
///
/// The name of the recipe template (e.g., "OrganizationWithUsersRecipe")
/// Optional JSON arguments to pass to the recipe's Seed method
/// The result returned by the recipe's Seed method
/// Thrown when the recipe template is not found
/// Thrown when there's an error executing the recipe
object? ExecuteRecipe(string templateName, JsonElement? arguments);
///
/// Destroys data created by a recipe with the given template name and arguments.
///
/// The name of the recipe template (e.g., "OrganizationWithUsersRecipe")
/// Optional JSON arguments to pass to the recipe's Destroy method
/// The result returned by the recipe's Destroy method
/// Thrown when the recipe template is not found
/// Thrown when there's an error executing the recipe
object? DestroyRecipe(string templateName, JsonElement? arguments);
}