* Refactor IWebhookEvent to contain event type. * refactor frontend to filter on eventType. * Display event names * refactor to use eventNames * remove npm from overview * implement alias for WebhookEvents * Implement [WebhookEvent] attribute * Refactor IWebhookService to get by event alias and not name * Rename parameter to fit method name * to lower event type to avoid casing issues * Apply suggestions from code review Co-authored-by: Ronald Barendse <ronald@barend.se> * Change event names from constants to hard coded. And give more friendly names * Refactor to not use event names, where it was not intended * Add renaming column migration * display event alias in logs * Update migration to check if old column is there * Apply suggestions from code review Co-authored-by: Kenn Jacobsen <kja@umbraco.dk> * add determineResource function to avoid duplicate code --------- Co-authored-by: Zeegaan <nge@umbraco.dk> Co-authored-by: Ronald Barendse <ronald@barend.se> Co-authored-by: Kenn Jacobsen <kja@umbraco.dk>
41 lines
1.1 KiB
C#
41 lines
1.1 KiB
C#
using System.Runtime.Serialization;
|
|
|
|
namespace Umbraco.Cms.Web.Common.Models;
|
|
|
|
[DataContract]
|
|
public class WebhookLogViewModel
|
|
{
|
|
[DataMember(Name = "key")]
|
|
public Guid Key { get; set; }
|
|
|
|
[DataMember(Name = "webhookKey")]
|
|
public Guid WebhookKey { get; set; }
|
|
|
|
[DataMember(Name = "statusCode")]
|
|
public string StatusCode { get; set; } = string.Empty;
|
|
|
|
[DataMember(Name = "date")]
|
|
public DateTime Date { get; set; }
|
|
|
|
[DataMember(Name = "eventAlias")]
|
|
public string EventAlias { get; set; } = string.Empty;
|
|
|
|
[DataMember(Name = "url")]
|
|
public string Url { get; set; } = string.Empty;
|
|
|
|
[DataMember(Name = "retryCount")]
|
|
public int RetryCount { get; set; }
|
|
|
|
[DataMember(Name = "requestHeaders")]
|
|
public string RequestHeaders { get; set; } = string.Empty;
|
|
|
|
[DataMember(Name = "requestBody")]
|
|
public string RequestBody { get; set; } = string.Empty;
|
|
|
|
[DataMember(Name = "responseHeaders")]
|
|
public string ResponseHeaders { get; set; } = string.Empty;
|
|
|
|
[DataMember(Name = "responseBody")]
|
|
public string ResponseBody { get; set; } = string.Empty;
|
|
}
|