| | | 1 | | using Elsa.Api.Client.Resources.WorkflowDefinitions.Enums; |
| | | 2 | | using Elsa.Api.Client.Shared.Models; |
| | | 3 | | using Refit; |
| | | 4 | | |
| | | 5 | | namespace Elsa.Api.Client.Resources.WorkflowDefinitions.Requests; |
| | | 6 | | |
| | | 7 | | /// <summary> |
| | | 8 | | /// Represents a request to list workflow definitions. |
| | | 9 | | /// </summary> |
| | | 10 | | public class ListWorkflowDefinitionsRequest |
| | | 11 | | { |
| | | 12 | | /// <summary> |
| | | 13 | | /// The page number. |
| | | 14 | | /// </summary> |
| | 0 | 15 | | public int? Page { get; set; } |
| | | 16 | | |
| | | 17 | | /// <summary> |
| | | 18 | | /// The page size. |
| | | 19 | | /// </summary> |
| | 0 | 20 | | public int? PageSize { get; set; } |
| | | 21 | | |
| | | 22 | | /// <summary> |
| | | 23 | | /// The definition IDs of the workflow definitions to filter by. |
| | | 24 | | /// </summary> |
| | | 25 | | [Query(CollectionFormat.Multi)] |
| | 0 | 26 | | public ICollection<string>? DefinitionIds { get; set; } |
| | | 27 | | |
| | | 28 | | /// <summary> |
| | | 29 | | /// The IDs of the workflow definitions to filter by. |
| | | 30 | | /// </summary> |
| | | 31 | | [Query(CollectionFormat.Multi)] |
| | 0 | 32 | | public ICollection<string>? Ids { get; set; } |
| | | 33 | | |
| | | 34 | | /// <summary> |
| | | 35 | | /// The name of the workflow materializer to filter by. |
| | | 36 | | /// </summary> |
| | | 37 | | [AliasAs("materializer")] |
| | 0 | 38 | | public string? MaterializerName { get; set; } |
| | | 39 | | |
| | | 40 | | /// <summary> |
| | | 41 | | /// The labels to filter by. |
| | | 42 | | /// </summary> |
| | | 43 | | [AliasAs("label")] |
| | 0 | 44 | | public string[]? Labels { get; set; } |
| | | 45 | | |
| | | 46 | | /// <summary> |
| | | 47 | | /// The search term used to filter workflow definitions by their name, ID or description. |
| | | 48 | | /// </summary> |
| | 0 | 49 | | public string? SearchTerm { get; set; } |
| | | 50 | | |
| | | 51 | | /// <summary> |
| | | 52 | | /// Gets or sets whether to include system workflows. |
| | | 53 | | /// </summary> |
| | 0 | 54 | | public bool? IsSystem { get; set; } |
| | | 55 | | |
| | | 56 | | /// <summary> |
| | | 57 | | /// The field to order by. |
| | | 58 | | /// </summary> |
| | 0 | 59 | | public OrderByWorkflowDefinition? OrderBy { get; set; } |
| | | 60 | | |
| | | 61 | | /// <summary> |
| | | 62 | | /// The order direction. |
| | | 63 | | /// </summary> |
| | 0 | 64 | | public OrderDirection? OrderDirection { get; set; } |
| | | 65 | | } |