mirror of https://github.com/Squidex/squidex.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
106 lines
2.6 KiB
106 lines
2.6 KiB
// ==========================================================================
|
|
// Squidex Headless CMS
|
|
// ==========================================================================
|
|
// Copyright (c) Squidex UG (haftungsbeschraenkt)
|
|
// All rights reserved. Licensed under the MIT license.
|
|
// ==========================================================================
|
|
|
|
using System.Security.Claims;
|
|
using Squidex.Domain.Apps.Core.Contents;
|
|
using Squidex.Infrastructure;
|
|
|
|
namespace Squidex.Domain.Apps.Core.Scripting;
|
|
|
|
public sealed class ContentScriptVars : DataScriptVars
|
|
{
|
|
[FieldDescription(nameof(FieldDescriptions.ContentValidate))]
|
|
public Action Validate
|
|
{
|
|
set => SetInitial(value);
|
|
}
|
|
|
|
[FieldDescription(nameof(FieldDescriptions.AppId))]
|
|
public DomainId AppId
|
|
{
|
|
set => SetInitial(value);
|
|
}
|
|
|
|
[FieldDescription(nameof(FieldDescriptions.SchemaId))]
|
|
public DomainId SchemaId
|
|
{
|
|
set => SetInitial(value);
|
|
}
|
|
|
|
[FieldDescription(nameof(FieldDescriptions.EntityId))]
|
|
public DomainId ContentId
|
|
{
|
|
set => SetInitial(value);
|
|
}
|
|
|
|
[FieldDescription(nameof(FieldDescriptions.AppName))]
|
|
public string AppName
|
|
{
|
|
set => SetInitial(value);
|
|
}
|
|
|
|
[FieldDescription(nameof(FieldDescriptions.ContentSchemaName))]
|
|
public string SchemaName
|
|
{
|
|
set => SetInitial(value);
|
|
}
|
|
|
|
[FieldDescription(nameof(FieldDescriptions.Operation))]
|
|
public string Operation
|
|
{
|
|
set => SetInitial(value);
|
|
}
|
|
|
|
[FieldDescription(nameof(FieldDescriptions.EntityRequestDeletePermanent))]
|
|
public bool Permanent
|
|
{
|
|
set => SetInitial(value);
|
|
}
|
|
|
|
[FieldDescription(nameof(FieldDescriptions.User))]
|
|
public ClaimsPrincipal? User
|
|
{
|
|
set => SetInitial(value);
|
|
}
|
|
|
|
[FieldDescription(nameof(FieldDescriptions.ContentStatus))]
|
|
public Status Status
|
|
{
|
|
set => SetInitial(value);
|
|
}
|
|
|
|
[FieldDescription(nameof(FieldDescriptions.ContentStatusOld))]
|
|
public Status StatusOld
|
|
{
|
|
set => SetInitial(value);
|
|
}
|
|
|
|
[FieldDescription(nameof(FieldDescriptions.ContentStatusOld))]
|
|
public Status OldStatus
|
|
{
|
|
set => SetInitial(value);
|
|
}
|
|
|
|
[FieldDescription(nameof(FieldDescriptions.ContentData))]
|
|
public ContentData? DataOld
|
|
{
|
|
set => SetInitial(value);
|
|
}
|
|
|
|
[FieldDescription(nameof(FieldDescriptions.ContentDataOld))]
|
|
public ContentData? OldData
|
|
{
|
|
set => SetInitial(value);
|
|
}
|
|
|
|
[FieldDescription(nameof(FieldDescriptions.ContentData))]
|
|
public override ContentData? Data
|
|
{
|
|
get => GetValue<ContentData?>();
|
|
set => SetInitial(value);
|
|
}
|
|
}
|
|
|