| | | 1 | | using System.Text.Json.Nodes; |
| | | 2 | | using Elsa.Api.Client.Resources.Alterations.Enums; |
| | | 3 | | using Elsa.Api.Client.Shared.Models; |
| | | 4 | | |
| | | 5 | | namespace Elsa.Api.Client.Resources.Alterations.Models; |
| | | 6 | | |
| | | 7 | | /// <summary> |
| | | 8 | | /// A plan that contains a list of alterations to be applied to a set of workflow instances. |
| | | 9 | | /// </summary> |
| | | 10 | | public class AlterationPlan : Entity |
| | | 11 | | { |
| | | 12 | | /// <summary> |
| | | 13 | | /// The alterations to be applied. |
| | | 14 | | /// </summary> |
| | 0 | 15 | | public ICollection<JsonObject> Alterations { get; set; } = new List<JsonObject>(); |
| | | 16 | | |
| | | 17 | | /// <summary> |
| | | 18 | | /// The IDs of the workflow instances that this plan applies to. |
| | | 19 | | /// </summary> |
| | 0 | 20 | | public AlterationWorkflowInstanceFilter WorkflowInstanceFilter { get; set; } = new(); |
| | | 21 | | |
| | | 22 | | /// <summary> |
| | | 23 | | /// The status of the plan. |
| | | 24 | | /// </summary> |
| | 0 | 25 | | public AlterationPlanStatus Status { get; set; } |
| | | 26 | | |
| | | 27 | | /// <summary> |
| | | 28 | | /// The date and time at which the plan was created. |
| | | 29 | | /// </summary> |
| | 0 | 30 | | public DateTimeOffset CreatedAt { get; set; } |
| | | 31 | | |
| | | 32 | | /// <summary> |
| | | 33 | | /// The date and time at which the plan was started. |
| | | 34 | | /// </summary> |
| | 0 | 35 | | public DateTimeOffset? StartedAt { get; set; } |
| | | 36 | | |
| | | 37 | | /// <summary> |
| | | 38 | | /// The date and time at which the plan was completed. |
| | | 39 | | /// </summary> |
| | 0 | 40 | | public DateTimeOffset? CompletedAt { get; set; } |
| | | 41 | | } |