| | | 1 | | using Elsa.Common.Entities; |
| | | 2 | | using Elsa.Workflows.Api.Models; |
| | | 3 | | using Elsa.Workflows.Management.Models; |
| | | 4 | | |
| | | 5 | | namespace Elsa.Workflows.Api.Endpoints.WorkflowInstances.List; |
| | | 6 | | |
| | | 7 | | public class Request |
| | | 8 | | { |
| | | 9 | | public int? Page { get; set; } |
| | | 10 | | public int? PageSize { get; set; } |
| | | 11 | | public string? SearchTerm { get; set; } |
| | | 12 | | public string? DefinitionId { get; set; } |
| | | 13 | | public ICollection<string>? DefinitionIds { get; set; } |
| | | 14 | | public string? CorrelationId { get; set; } |
| | | 15 | | public string? Name { get; set; } |
| | | 16 | | public int? Version { get; set; } |
| | | 17 | | public bool? HasIncidents { get; set; } |
| | | 18 | | public bool? IsSystem { get; set; } |
| | | 19 | | public WorkflowStatus? Status { get; set; } |
| | | 20 | | public ICollection<string>? Statuses { get; set; } |
| | | 21 | | public WorkflowSubStatus? SubStatus { get; set; } |
| | | 22 | | public ICollection<string>? SubStatuses { get; set; } |
| | | 23 | | public OrderByWorkflowInstance? OrderBy { get; set; } |
| | | 24 | | public OrderDirection? OrderDirection { get; set; } |
| | | 25 | | public ICollection<TimestampFilter>? TimestampFilters { get; set; } |
| | | 26 | | } |
| | | 27 | | |
| | 0 | 28 | | internal class Response(ICollection<WorkflowInstanceSummary> items, long totalCount) |
| | | 29 | | { |
| | 0 | 30 | | public ICollection<WorkflowInstanceSummary> Items { get; set; } = items; |
| | 0 | 31 | | public long TotalCount { get; set; } = totalCount; |
| | | 32 | | } |
| | | 33 | | |