// ========================================================================== // Squidex Headless CMS // ========================================================================== // Copyright (c) Squidex UG (haftungsbeschraenkt) // All rights reserved. Licensed under the MIT license. // ========================================================================== using System.ComponentModel.DataAnnotations; using Squidex.Domain.Apps.Core.HandleRules; using Squidex.Domain.Apps.Core.Rules; namespace Squidex.Extensions.Actions.Algolia { [RuleAction( Title = "Algolia", IconImage = "", IconColor = "#0d9bf9", Display = "Populate Algolia index", Description = "Populate and synchronize indexes in Algolia for full text search.", ReadMore = "https://www.algolia.com/")] public sealed class AlgoliaAction : RuleAction { [Required] [Display(Name = "Application Id", Description = "The application ID.")] [DataType(DataType.Text)] [Formattable] public string AppId { get; set; } [Required] [Display(Name = "Api Key", Description = "The API key to grant access to Squidex.")] [DataType(DataType.Text)] [Formattable] public string ApiKey { get; set; } [Required] [Display(Name = "Index Name", Description = "The name of the index.")] [DataType(DataType.Text)] [Formattable] public string IndexName { get; set; } [Display(Name = "Document", Description = "The optional custom document.")] [DataType(DataType.MultilineText)] [Formattable] public string Document { get; set; } } }