mirror of https://github.com/Squidex/squidex.git
59 changed files with 383 additions and 387 deletions
@ -1,15 +1,15 @@ |
|||
// ==========================================================================
|
|||
// ModelSchemaProperties.cs
|
|||
// SchemaProperties.cs
|
|||
// PinkParrot Headless CMS
|
|||
// ==========================================================================
|
|||
// Copyright (c) PinkParrot Group
|
|||
// All rights reserved.
|
|||
// ==========================================================================
|
|||
namespace PinkParrot.Core.Schema |
|||
namespace PinkParrot.Core.Schemas |
|||
{ |
|||
public sealed class ModelSchemaProperties : NamedElementProperties |
|||
public sealed class SchemaProperties : NamedElementProperties |
|||
{ |
|||
public ModelSchemaProperties( |
|||
public SchemaProperties( |
|||
string label, |
|||
string hints) |
|||
: base(label, hints) |
|||
@ -1,21 +0,0 @@ |
|||
// ==========================================================================
|
|||
// ModelFieldUpdated.cs
|
|||
// PinkParrot Headless CMS
|
|||
// ==========================================================================
|
|||
// Copyright (c) PinkParrot Group
|
|||
// All rights reserved.
|
|||
// ==========================================================================
|
|||
|
|||
using PinkParrot.Core.Schema; |
|||
using PinkParrot.Infrastructure; |
|||
|
|||
namespace PinkParrot.Events.Schema |
|||
{ |
|||
[TypeName("ModelFieldUpdatedEvent")] |
|||
public class ModelFieldUpdated : TenantEvent |
|||
{ |
|||
public long FieldId { get; set; } |
|||
|
|||
public IModelFieldProperties Properties { get; set; } |
|||
} |
|||
} |
|||
@ -1,19 +0,0 @@ |
|||
// ==========================================================================
|
|||
// ModelSchemaUpdated.cs
|
|||
// PinkParrot Headless CMS
|
|||
// ==========================================================================
|
|||
// Copyright (c) PinkParrot Group
|
|||
// All rights reserved.
|
|||
// ==========================================================================
|
|||
|
|||
using PinkParrot.Core.Schema; |
|||
using PinkParrot.Infrastructure; |
|||
|
|||
namespace PinkParrot.Events.Schema |
|||
{ |
|||
[TypeName("ModelSchemaUpdated")] |
|||
public class ModelSchemaUpdated : TenantEvent |
|||
{ |
|||
public ModelSchemaProperties Properties { get; set; } |
|||
} |
|||
} |
|||
@ -1,23 +1,23 @@ |
|||
// ==========================================================================
|
|||
// ModelFieldAdded.cs
|
|||
// FieldAdded.cs
|
|||
// PinkParrot Headless CMS
|
|||
// ==========================================================================
|
|||
// Copyright (c) PinkParrot Group
|
|||
// All rights reserved.
|
|||
// ==========================================================================
|
|||
|
|||
using PinkParrot.Core.Schema; |
|||
using PinkParrot.Core.Schemas; |
|||
using PinkParrot.Infrastructure; |
|||
|
|||
namespace PinkParrot.Events.Schema |
|||
namespace PinkParrot.Events.Schemas |
|||
{ |
|||
[TypeName("ModelFieldAddedEvent")] |
|||
public class ModelFieldAdded : TenantEvent |
|||
[TypeName("FieldAddedEvent")] |
|||
public class FieldAdded : TenantEvent |
|||
{ |
|||
public long FieldId { get; set; } |
|||
|
|||
public string Name { get; set; } |
|||
|
|||
public IModelFieldProperties Properties { get; set; } |
|||
public IFieldProperties Properties { get; set; } |
|||
} |
|||
} |
|||
@ -0,0 +1,18 @@ |
|||
// ==========================================================================
|
|||
// FieldShown.cs
|
|||
// PinkParrot Headless CMS
|
|||
// ==========================================================================
|
|||
// Copyright (c) PinkParrot Group
|
|||
// All rights reserved.
|
|||
// ==========================================================================
|
|||
|
|||
using PinkParrot.Infrastructure; |
|||
|
|||
namespace PinkParrot.Events.Schemas |
|||
{ |
|||
[TypeName("FieldShownEvent")] |
|||
public class FieldShown : TenantEvent |
|||
{ |
|||
public long FieldId { get; set; } |
|||
} |
|||
} |
|||
@ -1,18 +1,21 @@ |
|||
// ==========================================================================
|
|||
// ModelFieldDisabled.cs
|
|||
// FieldUpdated.cs
|
|||
// PinkParrot Headless CMS
|
|||
// ==========================================================================
|
|||
// Copyright (c) PinkParrot Group
|
|||
// All rights reserved.
|
|||
// ==========================================================================
|
|||
|
|||
using PinkParrot.Core.Schemas; |
|||
using PinkParrot.Infrastructure; |
|||
|
|||
namespace PinkParrot.Events.Schema |
|||
namespace PinkParrot.Events.Schemas |
|||
{ |
|||
[TypeName("ModelFieldDisabledEvent")] |
|||
public class ModelFieldDisabled : TenantEvent |
|||
[TypeName("FieldUpdatedEvent")] |
|||
public class FieldUpdated : TenantEvent |
|||
{ |
|||
public long FieldId { get; set; } |
|||
|
|||
public IFieldProperties Properties { get; set; } |
|||
} |
|||
} |
|||
@ -1,21 +1,21 @@ |
|||
// ==========================================================================
|
|||
// ModelSchemaCreated.cs
|
|||
// SchemaCreated.cs
|
|||
// PinkParrot Headless CMS
|
|||
// ==========================================================================
|
|||
// Copyright (c) PinkParrot Group
|
|||
// All rights reserved.
|
|||
// ==========================================================================
|
|||
|
|||
using PinkParrot.Core.Schema; |
|||
using PinkParrot.Core.Schemas; |
|||
using PinkParrot.Infrastructure; |
|||
|
|||
namespace PinkParrot.Events.Schema |
|||
namespace PinkParrot.Events.Schemas |
|||
{ |
|||
[TypeName("ModelSchemaCreatedEvent")] |
|||
public class ModelSchemaCreated : TenantEvent |
|||
[TypeName("SchemaCreatedEvent")] |
|||
public class SchemaCreated : TenantEvent |
|||
{ |
|||
public string Name { get; set; } |
|||
|
|||
public ModelSchemaProperties Properties { get; set; } |
|||
public SchemaProperties Properties { get; set; } |
|||
} |
|||
} |
|||
@ -0,0 +1,19 @@ |
|||
// ==========================================================================
|
|||
// SchemaUpdated.cs
|
|||
// PinkParrot Headless CMS
|
|||
// ==========================================================================
|
|||
// Copyright (c) PinkParrot Group
|
|||
// All rights reserved.
|
|||
// ==========================================================================
|
|||
|
|||
using PinkParrot.Core.Schemas; |
|||
using PinkParrot.Infrastructure; |
|||
|
|||
namespace PinkParrot.Events.Schemas |
|||
{ |
|||
[TypeName("SchemaUpdated")] |
|||
public class SchemaUpdated : TenantEvent |
|||
{ |
|||
public SchemaProperties Properties { get; set; } |
|||
} |
|||
} |
|||
@ -1,5 +1,5 @@ |
|||
// ==========================================================================
|
|||
// MongoPositions.cs
|
|||
// MongoPosition.cs
|
|||
// PinkParrot Headless CMS
|
|||
// ==========================================================================
|
|||
// Copyright (c) PinkParrot Group
|
|||
@ -1,17 +0,0 @@ |
|||
// ==========================================================================
|
|||
// UpdateModelSchema.cs
|
|||
// PinkParrot Headless CMS
|
|||
// ==========================================================================
|
|||
// Copyright (c) PinkParrot Group
|
|||
// All rights reserved.
|
|||
// ==========================================================================
|
|||
|
|||
using PinkParrot.Core.Schema; |
|||
|
|||
namespace PinkParrot.Write.Schema.Commands |
|||
{ |
|||
public class UpdateModelSchema : TenantCommand |
|||
{ |
|||
public ModelSchemaProperties Properties { get; set; } |
|||
} |
|||
} |
|||
@ -1,19 +1,19 @@ |
|||
// ==========================================================================
|
|||
// CreateModelSchema.cs
|
|||
// CreateSchema.cs
|
|||
// PinkParrot Headless CMS
|
|||
// ==========================================================================
|
|||
// Copyright (c) PinkParrot Group
|
|||
// All rights reserved.
|
|||
// ==========================================================================
|
|||
|
|||
using PinkParrot.Core.Schema; |
|||
using PinkParrot.Core.Schemas; |
|||
|
|||
namespace PinkParrot.Write.Schema.Commands |
|||
namespace PinkParrot.Write.Schemas.Commands |
|||
{ |
|||
public class CreateModelSchema : TenantCommand |
|||
public class CreateSchema : TenantCommand |
|||
{ |
|||
public string Name { get; set; } |
|||
|
|||
public ModelSchemaProperties Properties { get; set; } |
|||
public SchemaProperties Properties { get; set; } |
|||
} |
|||
} |
|||
@ -1,14 +1,13 @@ |
|||
// ==========================================================================
|
|||
// DeleteModelField.cs
|
|||
// DeleteField.cs
|
|||
// PinkParrot Headless CMS
|
|||
// ==========================================================================
|
|||
// Copyright (c) PinkParrot Group
|
|||
// All rights reserved.
|
|||
// ==========================================================================
|
|||
|
|||
namespace PinkParrot.Write.Schema.Commands |
|||
namespace PinkParrot.Write.Schemas.Commands |
|||
{ |
|||
public class DeleteModelField : TenantCommand |
|||
public class DeleteField : TenantCommand |
|||
{ |
|||
public long FieldId { get; set; } |
|||
} |
|||
@ -1,14 +1,13 @@ |
|||
// ==========================================================================
|
|||
// DeleteModelSchema.cs
|
|||
// DeleteSchema.cs
|
|||
// PinkParrot Headless CMS
|
|||
// ==========================================================================
|
|||
// Copyright (c) PinkParrot Group
|
|||
// All rights reserved.
|
|||
// ==========================================================================
|
|||
|
|||
namespace PinkParrot.Write.Schema.Commands |
|||
namespace PinkParrot.Write.Schemas.Commands |
|||
{ |
|||
public class DeleteModelSchema : TenantCommand |
|||
public class DeleteSchema : TenantCommand |
|||
{ |
|||
} |
|||
} |
|||
@ -1,14 +1,13 @@ |
|||
// ==========================================================================
|
|||
// ShowModelField.cs
|
|||
// DisableField.cs
|
|||
// PinkParrot Headless CMS
|
|||
// ==========================================================================
|
|||
// Copyright (c) PinkParrot Group
|
|||
// All rights reserved.
|
|||
// ==========================================================================
|
|||
|
|||
namespace PinkParrot.Write.Schema.Commands |
|||
namespace PinkParrot.Write.Schemas.Commands |
|||
{ |
|||
public class ShowModelField : TenantCommand |
|||
public class DisableField : TenantCommand |
|||
{ |
|||
public long FieldId { get; set; } |
|||
} |
|||
@ -1,14 +1,13 @@ |
|||
// ==========================================================================
|
|||
// HideModelField.cs
|
|||
// EnableField.cs
|
|||
// PinkParrot Headless CMS
|
|||
// ==========================================================================
|
|||
// Copyright (c) PinkParrot Group
|
|||
// All rights reserved.
|
|||
// ==========================================================================
|
|||
|
|||
namespace PinkParrot.Write.Schema.Commands |
|||
namespace PinkParrot.Write.Schemas.Commands |
|||
{ |
|||
public class HideModelField : TenantCommand |
|||
public class EnableField : TenantCommand |
|||
{ |
|||
public long FieldId { get; set; } |
|||
} |
|||
@ -1,14 +1,13 @@ |
|||
// ==========================================================================
|
|||
// EnableModelField.cs
|
|||
// HideField.cs
|
|||
// PinkParrot Headless CMS
|
|||
// ==========================================================================
|
|||
// Copyright (c) PinkParrot Group
|
|||
// All rights reserved.
|
|||
// ==========================================================================
|
|||
|
|||
namespace PinkParrot.Write.Schema.Commands |
|||
namespace PinkParrot.Write.Schemas.Commands |
|||
{ |
|||
public class EnableModelField : TenantCommand |
|||
public class HideField : TenantCommand |
|||
{ |
|||
public long FieldId { get; set; } |
|||
} |
|||
@ -1,14 +1,13 @@ |
|||
// ==========================================================================
|
|||
// DisableModelField.cs
|
|||
// ShowField.cs
|
|||
// PinkParrot Headless CMS
|
|||
// ==========================================================================
|
|||
// Copyright (c) PinkParrot Group
|
|||
// All rights reserved.
|
|||
// ==========================================================================
|
|||
|
|||
namespace PinkParrot.Write.Schema.Commands |
|||
namespace PinkParrot.Write.Schemas.Commands |
|||
{ |
|||
public class DisableModelField : TenantCommand |
|||
public class ShowField : TenantCommand |
|||
{ |
|||
public long FieldId { get; set; } |
|||
} |
|||
@ -0,0 +1,17 @@ |
|||
// ==========================================================================
|
|||
// UpdateSchema.cs
|
|||
// PinkParrot Headless CMS
|
|||
// ==========================================================================
|
|||
// Copyright (c) PinkParrot Group
|
|||
// All rights reserved.
|
|||
// ==========================================================================
|
|||
|
|||
using PinkParrot.Core.Schemas; |
|||
|
|||
namespace PinkParrot.Write.Schemas.Commands |
|||
{ |
|||
public class UpdateSchema : TenantCommand |
|||
{ |
|||
public SchemaProperties Properties { get; set; } |
|||
} |
|||
} |
|||
Loading…
Reference in new issue