using Umbraco.Cms.Core.Webhooks; using Umbraco.Cms.Core.Webhooks.Events.Content; using Umbraco.Cms.Core.Webhooks.Events.DataType; using Umbraco.Cms.Core.Webhooks.Events.Dictionary; using Umbraco.Cms.Core.Webhooks.Events.Domain; using Umbraco.Cms.Core.Webhooks.Events.Language; using Umbraco.Cms.Core.Webhooks.Events.Media; using Umbraco.Cms.Core.Webhooks.Events.MediaType; using Umbraco.Cms.Core.Webhooks.Events.Member; using Umbraco.Cms.Core.Webhooks.Events.MemberType; using Umbraco.Cms.Core.Webhooks.Events.Package; using Umbraco.Cms.Core.Webhooks.Events.PublicAccess; using Umbraco.Cms.Core.Webhooks.Events.Relation; using Umbraco.Cms.Core.Webhooks.Events.RelationType; using Umbraco.Cms.Core.Webhooks.Events.Script; using Umbraco.Cms.Core.Webhooks.Events.Stylesheet; using Umbraco.Cms.Core.Webhooks.Events.Template; using Umbraco.Cms.Core.Webhooks.Events.User; namespace Umbraco.Cms.Core.DependencyInjection; public static class WebhookEventCollectionBuilderExtensions { internal static WebhookEventCollectionBuilder AddDefaultWebhooks(this WebhookEventCollectionBuilder builder) => builder .Append() .Append() .Append() .Append() .Append(); /// /// Adds all available CMS webhook events. /// /// The builder. /// /// The builder. /// public static WebhookEventCollectionBuilder AddCmsWebhooks(this WebhookEventCollectionBuilder builder) => builder .AddContentWebhooks() .AddDataTypeWebhooks() .AddDictionaryWebhooks() .AddDomainWebhooks() .AddLanguageWebhooks() .AddMediaWebhooks() .AddMemberWebhooks() .AddMemberTypeWebhooks() .AddPackageWebhooks() .AddPublicAccessWebhooks() .AddRelationWebhooks() .AddScriptWebhooks() .AddStylesheetWebhooks() .AddTemplateWebhooks() .AddUserWebhooks(); /// /// Adds the content webhook events. /// /// The builder. /// /// The builder. /// public static WebhookEventCollectionBuilder AddContentWebhooks(this WebhookEventCollectionBuilder builder) => builder .Append() .Append() .Append() .Append() .Append() .Append() .Append() .Append() .Append() .Append() .Append() .Append() .Append(); /// /// Adds the data type webhook events. /// /// The builder. /// /// The builder. /// public static WebhookEventCollectionBuilder AddDataTypeWebhooks(this WebhookEventCollectionBuilder builder) => builder .Append() .Append() .Append(); /// /// Adds the dictionary webhook events. /// /// The builder. /// /// The builder. /// public static WebhookEventCollectionBuilder AddDictionaryWebhooks(this WebhookEventCollectionBuilder builder) => builder .Append() .Append(); /// /// Adds the domain webhook events. /// /// The builder. /// /// The builder. /// public static WebhookEventCollectionBuilder AddDomainWebhooks(this WebhookEventCollectionBuilder builder) => builder .Append() .Append(); /// /// Adds the language webhook events. /// /// The builder. /// /// The builder. /// public static WebhookEventCollectionBuilder AddLanguageWebhooks(this WebhookEventCollectionBuilder builder) => builder .Append() .Append(); /// /// Adds the media webhook events. /// /// The builder. /// /// The builder. /// public static WebhookEventCollectionBuilder AddMediaWebhooks(this WebhookEventCollectionBuilder builder) => builder .Append() .Append() .Append() .Append() .Append() .Append() .Append() .Append() .Append(); /// /// Adds the member webhook events. /// /// The builder. /// /// The builder. /// public static WebhookEventCollectionBuilder AddMemberWebhooks(this WebhookEventCollectionBuilder builder) => builder .Append() .Append() .Append() .Append() .Append() .Append() .Append(); /// /// Adds the member type webhook events. /// /// The builder. /// /// The builder. /// public static WebhookEventCollectionBuilder AddMemberTypeWebhooks(this WebhookEventCollectionBuilder builder) => builder .Append() .Append() .Append() .Append(); /// /// Adds the package webhook events. /// /// The builder. /// /// The builder. /// public static WebhookEventCollectionBuilder AddPackageWebhooks(this WebhookEventCollectionBuilder builder) => builder .Append(); /// /// Adds the public access webhook events. /// /// The builder. /// /// The builder. /// public static WebhookEventCollectionBuilder AddPublicAccessWebhooks(this WebhookEventCollectionBuilder builder) => builder .Append() .Append(); /// /// Adds the relation webhook events. /// /// The builder. /// /// The builder. /// public static WebhookEventCollectionBuilder AddRelationWebhooks(this WebhookEventCollectionBuilder builder) => builder .Append() .Append() .Append() .Append(); /// /// Adds the script webhook events. /// /// The builder. /// /// The builder. /// public static WebhookEventCollectionBuilder AddScriptWebhooks(this WebhookEventCollectionBuilder builder) => builder .Append() .Append(); /// /// Adds the stylesheet webhook events. /// /// The builder. /// /// The builder. /// public static WebhookEventCollectionBuilder AddStylesheetWebhooks(this WebhookEventCollectionBuilder builder) => builder .Append() .Append(); /// /// Adds the template webhook events. /// /// The builder. /// /// The builder. /// public static WebhookEventCollectionBuilder AddTemplateWebhooks(this WebhookEventCollectionBuilder builder) => builder .Append() .Append() .Append() .Append(); /// /// Adds the user webhook events. /// /// The builder. /// /// The builder. /// public static WebhookEventCollectionBuilder AddUserWebhooks(this WebhookEventCollectionBuilder builder) => builder .Append() .Append() .Append() .Append() .Append() .Append() .Append() .Append() .Append() .Append() .Append() .Append() .Append() .Append() .Append() .Append(); }