Remove unnecessary properties from WorkflowDefinition models
This commit removes a number of unnecessary properties from the `WorkflowDefinitionModel` and `WorkflowDefinitionSummary` classes. These changes help simplify the models and focus on the core properties required for workflow definitions. Specific properties removed include `Id`, `CreatedAt`, `Version`, and status flags such as `IsLatest` and `IsPublished`.
This commit is contained in:
parent
d817d7ccaf
commit
4af488cf6a
|
|
@ -10,11 +10,6 @@ namespace Elsa.Api.Client.Resources.WorkflowDefinitions.Models;
|
|||
[PublicAPI]
|
||||
public class WorkflowDefinitionModel : LinkedEntity
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the version ID of the workflow definition.
|
||||
/// </summary>
|
||||
public string Id { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the definition ID of the workflow definition.
|
||||
/// </summary>
|
||||
|
|
@ -30,16 +25,6 @@ public class WorkflowDefinitionModel : LinkedEntity
|
|||
/// </summary>
|
||||
public string? Description { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the time at which the workflow definition was created.
|
||||
/// </summary>
|
||||
public DateTimeOffset CreatedAt { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the version of the workflow definition.
|
||||
/// </summary>
|
||||
public int Version { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the version of the tool that created the workflow definition.
|
||||
/// </summary>
|
||||
|
|
@ -75,16 +60,6 @@ public class WorkflowDefinitionModel : LinkedEntity
|
|||
/// </summary>
|
||||
public bool IsReadonly { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets whether this is the latest version of the workflow definition.
|
||||
/// </summary>
|
||||
public bool IsLatest { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets whether this is the published version of the workflow definition.
|
||||
/// </summary>
|
||||
public bool IsPublished { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the <see cref="WorkflowOptions"/> of the workflow definition.
|
||||
/// </summary>
|
||||
|
|
|
|||
|
|
@ -9,13 +9,8 @@ namespace Elsa.Api.Client.Resources.WorkflowDefinitions.Models;
|
|||
[PublicAPI]
|
||||
public class WorkflowDefinitionSummary : LinkedEntity
|
||||
{
|
||||
public string Id { get; set; }
|
||||
public string DefinitionId { get; set; }
|
||||
public string Name { get; set; }
|
||||
public string DefinitionId { get; set; } = default!;
|
||||
public string Name { get; set; } = default!;
|
||||
public string? Description { get; set; }
|
||||
public int Version { get; set; }
|
||||
public bool IsLatest { get; set; }
|
||||
public bool IsPublished { get; set; }
|
||||
public string MaterializerName { get; set; }
|
||||
public DateTimeOffset CreatedAt { get; set; }
|
||||
public string MaterializerName { get; set; } = default!;
|
||||
}
|
||||
Loading…
Reference in a new issue