From 03506c4761942ae9e963b4c0b1f71effeaa92351 Mon Sep 17 00:00:00 2001 From: Nicholas Blumhardt Date: Thu, 24 Dec 2020 10:30:29 +1000 Subject: [PATCH] 2020.5 API parity --- src/Seq.Api/Model/Apps/AppSettingPart.cs | 10 +++++++++- src/Seq.Api/Model/Apps/AppSettingValuePart.cs | 19 +++++++++++++++++++ .../Model/Workspaces/WorkspaceEntity.cs | 7 +++++++ src/Seq.Api/Seq.Api.csproj | 2 +- 4 files changed, 36 insertions(+), 2 deletions(-) create mode 100644 src/Seq.Api/Model/Apps/AppSettingValuePart.cs diff --git a/src/Seq.Api/Model/Apps/AppSettingPart.cs b/src/Seq.Api/Model/Apps/AppSettingPart.cs index d04f83e..47dd5f7 100644 --- a/src/Seq.Api/Model/Apps/AppSettingPart.cs +++ b/src/Seq.Api/Model/Apps/AppSettingPart.cs @@ -12,6 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +using System.Collections.Generic; + namespace Seq.Api.Model.Apps { /// @@ -40,11 +42,17 @@ public class AppSettingPart public string HelpText { get; set; } /// - /// The type of value accepted for the setting; valid values are Text, + /// The type of value accepted for the setting; valid values are Text, Select, /// LongText, Checkbox, Integer, Decimal, and Password. /// /// An enum was historically not used here in order to improve /// forwards/backwards compatibility. public string Type { get; set; } + + /// + /// For settings of Select, a description of the values that can be chosen + /// for the setting. + /// + public List AllowedValues { get; set; } = new List(); } } diff --git a/src/Seq.Api/Model/Apps/AppSettingValuePart.cs b/src/Seq.Api/Model/Apps/AppSettingValuePart.cs new file mode 100644 index 0000000..f082929 --- /dev/null +++ b/src/Seq.Api/Model/Apps/AppSettingValuePart.cs @@ -0,0 +1,19 @@ +namespace Seq.Api.Model.Apps +{ + /// + /// Describes a value accepted for an with type Select. + /// + public class AppSettingValuePart + { + /// + /// The value accepted for the setting. + /// + public string Value { get; set; } + + /// + /// Optionally, a description of the value, which Seq will use as the value's label in the UI. By default, + /// the will be used as the label. + /// + public string Description { get; set; } + } +} \ No newline at end of file diff --git a/src/Seq.Api/Model/Workspaces/WorkspaceEntity.cs b/src/Seq.Api/Model/Workspaces/WorkspaceEntity.cs index f7b434c..887d3f7 100644 --- a/src/Seq.Api/Model/Workspaces/WorkspaceEntity.cs +++ b/src/Seq.Api/Model/Workspaces/WorkspaceEntity.cs @@ -13,6 +13,7 @@ // limitations under the License. using Seq.Api.Model.Security; +using Seq.Api.Model.Signals; namespace Seq.Api.Model.Workspaces { @@ -42,6 +43,12 @@ public class WorkspaceEntity : Entity /// public bool IsProtected { get; set; } + /// + /// An optional that will be activated when opening the Events + /// screen with the workspace selected. + /// + public SignalExpressionPart DefaultSignalExpression { get; set; } + /// /// Content included in the workspace. /// diff --git a/src/Seq.Api/Seq.Api.csproj b/src/Seq.Api/Seq.Api.csproj index 0d16051..912ab15 100644 --- a/src/Seq.Api/Seq.Api.csproj +++ b/src/Seq.Api/Seq.Api.csproj @@ -1,7 +1,7 @@ Client library for the Seq HTTP API. - 2020.4.1 + 2020.5.0 Datalust;Contributors netstandard2.0 true