Merge remote-tracking branch 'origin/v13/dev' into v14/dev
# Conflicts: # src/Umbraco.Infrastructure/Migrations/Upgrade/UmbracoPlan.cs # tests/Umbraco.Tests.AcceptanceTest/package-lock.json # version.json
This commit is contained in:
@@ -72,8 +72,13 @@ public static partial class Constants
|
||||
public const int ScheduledPublishing = -341;
|
||||
|
||||
/// <summary>
|
||||
/// ScheduledPublishing job.
|
||||
/// All Webhook requests.
|
||||
/// </summary>
|
||||
public const int WebhookRequest = -342;
|
||||
|
||||
/// <summary>
|
||||
/// All webhook logs.
|
||||
/// </summary>
|
||||
public const int WebhookLogs = -343;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using Umbraco.Cms.Core.Models;
|
||||
using Umbraco.Cms.Core.Webhooks;
|
||||
|
||||
namespace Umbraco.Cms.Core.Persistence.Repositories;
|
||||
|
||||
@@ -8,4 +7,8 @@ public interface IWebhookLogRepository
|
||||
Task CreateAsync(WebhookLog log);
|
||||
|
||||
Task<PagedModel<WebhookLog>> GetPagedAsync(int skip, int take);
|
||||
|
||||
Task<IEnumerable<WebhookLog>> GetOlderThanDate(DateTime date);
|
||||
|
||||
Task DeleteByIds(int[] ids);
|
||||
}
|
||||
|
||||
@@ -9,43 +9,43 @@ public interface IWebhookRepository
|
||||
/// </summary>
|
||||
/// <param name="skip">Number of entries to skip.</param>
|
||||
/// <param name="take">Number of entries to take.</param>
|
||||
/// <returns>A paged model of <see cref="Webhook" /> objects.</returns>
|
||||
Task<PagedModel<Webhook>> GetAllAsync(int skip, int take);
|
||||
/// <returns>A paged model of <see cref="IWebhook" /> objects.</returns>
|
||||
Task<PagedModel<IWebhook>> GetAllAsync(int skip, int take);
|
||||
|
||||
/// <summary>
|
||||
/// Gets all of the webhooks in the current database.
|
||||
/// </summary>
|
||||
/// <param name="webhook">The webhook you want to create.</param>
|
||||
/// <returns>The created <see cref="Webhook" /> webhook</returns>
|
||||
Task<Webhook> CreateAsync(Webhook webhook);
|
||||
/// <returns>The created <see cref="IWebhook" /> webhook</returns>
|
||||
Task<IWebhook> CreateAsync(IWebhook webhook);
|
||||
|
||||
/// <summary>
|
||||
/// Gets a webhook by key
|
||||
/// </summary>
|
||||
/// <param name="key">The key of the webhook which will be retrieved.</param>
|
||||
/// <returns>The <see cref="Webhook" /> webhook with the given key.</returns>
|
||||
Task<Webhook?> GetAsync(Guid key);
|
||||
/// <returns>The <see cref="IWebhook" /> webhook with the given key.</returns>
|
||||
Task<IWebhook?> GetAsync(Guid key);
|
||||
|
||||
/// <summary>
|
||||
/// Gets a webhook by key
|
||||
/// </summary>
|
||||
/// <param name="alias">The alias of an event, which is referenced by a webhook.</param>
|
||||
/// <returns>
|
||||
/// A paged model of <see cref="Webhook" />
|
||||
/// A paged model of <see cref="IWebhook" />
|
||||
/// </returns>
|
||||
Task<PagedModel<Webhook>> GetByAliasAsync(string alias);
|
||||
Task<PagedModel<IWebhook>> GetByAliasAsync(string alias);
|
||||
|
||||
/// <summary>
|
||||
/// Gets a webhook by key
|
||||
/// </summary>
|
||||
/// <param name="webhook">The webhook to be deleted.</param>
|
||||
/// <returns><placeholder>A <see cref="Task"/> representing the asynchronous operation.</placeholder></returns>
|
||||
Task DeleteAsync(Webhook webhook);
|
||||
Task DeleteAsync(IWebhook webhook);
|
||||
|
||||
/// <summary>
|
||||
/// Updates a given webhook
|
||||
/// </summary>
|
||||
/// <param name="webhook">The webhook to be updated.</param>
|
||||
/// <returns>The updated <see cref="Webhook" /> webhook.</returns>
|
||||
Task UpdateAsync(Webhook webhook);
|
||||
/// <returns>The updated <see cref="IWebhook" /> webhook.</returns>
|
||||
Task UpdateAsync(IWebhook webhook);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user