using Umbraco.Cms.Core.Models; using Umbraco.Cms.Core.Services.OperationStatus; namespace Umbraco.Cms.Core.Services; public interface IScriptService : IBasicFileService { /// /// Creates a new script. /// /// containing the information about the script being created. /// The key of the user performing the operation. /// An attempt indicating if the operation was a success as well as a more detailed . Task> CreateAsync(ScriptCreateModel createModel, Guid performingUserKey); /// /// Updates an existing script. /// /// A with the changes. /// The key of the user performing the operation. /// An attempt indicating if the operation was a success as well as a more detailed . Task> UpdateAsync(ScriptUpdateModel updateModel, Guid performingUserKey); /// /// Deletes a Script. /// /// The path of the script to delete. /// The key of the user performing the operation. /// An operation status. Task DeleteAsync(string path, Guid performingUserKey); }