mirror of
https://github.com/bitwarden/server
synced 2025-12-22 03:03:33 +00:00
Refactor recipies into scenes
This commit is contained in:
@@ -6,17 +6,17 @@ namespace Bit.SeederApi.Services;
|
||||
public interface IRecipeService
|
||||
{
|
||||
/// <summary>
|
||||
/// Executes a recipe with the given template name and arguments.
|
||||
/// Executes a scene with the given template name and arguments.
|
||||
/// </summary>
|
||||
/// <param name="templateName">The name of the recipe template (e.g., "OrganizationWithUsersRecipe")</param>
|
||||
/// <param name="arguments">Optional JSON arguments to pass to the recipe's Seed method</param>
|
||||
/// <param name="templateName">The name of the scene template (e.g., "SingleUserScene")</param>
|
||||
/// <param name="arguments">Optional JSON arguments to pass to the scene's Seed method</param>
|
||||
/// <returns>A tuple containing the result and optional seed ID for tracked entities</returns>
|
||||
/// <exception cref="RecipeNotFoundException">Thrown when the recipe template is not found</exception>
|
||||
/// <exception cref="RecipeExecutionException">Thrown when there's an error executing the recipe</exception>
|
||||
/// <exception cref="RecipeNotFoundException">Thrown when the scene template is not found</exception>
|
||||
/// <exception cref="RecipeExecutionException">Thrown when there's an error executing the scene</exception>
|
||||
(object? Result, Guid? SeedId) ExecuteRecipe(string templateName, JsonElement? arguments);
|
||||
|
||||
/// <summary>
|
||||
/// Destroys data created by a recipe using the seeded data ID.
|
||||
/// Destroys data created by a scene using the seeded data ID.
|
||||
/// </summary>
|
||||
/// <param name="seedId">The ID of the seeded data to destroy</param>
|
||||
/// <returns>The result of the destroy operation</returns>
|
||||
|
||||
Reference in New Issue
Block a user