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 userKey); /// /// Updates an existing script. /// /// The path of the script to update. /// 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(string path, ScriptUpdateModel updateModel, Guid userKey); /// /// 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 userKey); /// /// Renames a script. /// /// The path of the script to rename. /// 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> RenameAsync(string path, ScriptRenameModel renameModel, Guid userKey); }