using Umbraco.Cms.Core.Models;
using Umbraco.Cms.Core.Services.OperationStatus;
namespace Umbraco.Cms.Core.Services;
public interface IWebhookService
{
///
/// Creates a webhook.
///
/// to create.
Task> CreateAsync(IWebhook webhook);
///
/// Updates a webhook.
///
/// to update.
Task> UpdateAsync(IWebhook webhook);
///
/// Deletes a webhook.
///
/// The unique key of the webhook.
Task> DeleteAsync(Guid key);
///
/// Gets a webhook by its key.
///
/// The unique key of the webhook.
Task GetAsync(Guid key);
///
/// Gets all webhooks with the given keys.
///
/// An enumerable list of objects.
Task> GetMultipleAsync(IEnumerable keys)
=> throw new NotImplementedException();
///
/// Gets all webhooks.
///
Task> GetAllAsync(int skip, int take);
///
/// Gets webhooks by event name.
///
Task> GetByAliasAsync(string alias);
}