Skip to content

Commit

Permalink
Merge pull request #79 from simonec73/dev
Browse files Browse the repository at this point in the history
Dev 2.2.4
  • Loading branch information
simonec73 authored Jul 29, 2024
2 parents c3fca06 + a577cac commit 03f5b1a
Show file tree
Hide file tree
Showing 112 changed files with 5,073 additions and 759 deletions.
8 changes: 7 additions & 1 deletion Sources/Extensions/Extensions.sln
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ThreatsManager.Mitre", "Thr
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ThreatsManager.QuantitativeRisk", "ThreatsManager.QuantitativeRisk\ThreatsManager.QuantitativeRisk.csproj", "{4E741278-7437-4A5E-850B-BB08AD5569A6}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ThreatsManager.AIAssistant", "ThreatsManager.AIAssistant\ThreatsManager.AIAssistant.csproj", "{7E09402D-889A-4332-9A66-DA96DFE092D8}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ThreatsManager.AIAssistant", "ThreatsManager.AIAssistant\ThreatsManager.AIAssistant.csproj", "{7E09402D-889A-4332-9A66-DA96DFE092D8}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ThreatsManager.ImportersExporters", "ThreatsManager.ImportersExporters\ThreatsManager.ImportersExporters.csproj", "{6A39FFCE-A85F-4A6E-B954-AEDD12ADFDAD}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down Expand Up @@ -87,6 +89,10 @@ Global
{7E09402D-889A-4332-9A66-DA96DFE092D8}.Debug|Any CPU.Build.0 = Debug|Any CPU
{7E09402D-889A-4332-9A66-DA96DFE092D8}.Release|Any CPU.ActiveCfg = Release|Any CPU
{7E09402D-889A-4332-9A66-DA96DFE092D8}.Release|Any CPU.Build.0 = Release|Any CPU
{6A39FFCE-A85F-4A6E-B954-AEDD12ADFDAD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{6A39FFCE-A85F-4A6E-B954-AEDD12ADFDAD}.Debug|Any CPU.Build.0 = Debug|Any CPU
{6A39FFCE-A85F-4A6E-B954-AEDD12ADFDAD}.Release|Any CPU.ActiveCfg = Release|Any CPU
{6A39FFCE-A85F-4A6E-B954-AEDD12ADFDAD}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
using ThreatsManager.Interfaces;

[assembly: ExtensionsContainer("2.2.3")]
[assembly: ExtensionsContainer("2.2.4")]
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
<PropertyGroup>
<TargetFrameworks>net481</TargetFrameworks>
<Description>Threats Manager Platform AI Assistant library.</Description>
<AssemblyVersion>2.2.3.0</AssemblyVersion>
<AssemblyVersion>2.2.4.0</AssemblyVersion>
<Authors>Simone Curzi</Authors>
<Company>Simone Curzi</Company>
<Product>Threats Manager Platform</Product>
<Copyright>Copyright © Simone Curzi, 2018-2024. All Rights Reserved.</Copyright>
<PackageProjectUrl>https://www.nuget.org/packages/ThreatsManager.Engine/</PackageProjectUrl>
<RepositoryUrl>https://github.com/simonec73/threatsmanager</RepositoryUrl>
<FileVersion>2.2.3.0</FileVersion>
<Version>2.2.3</Version>
<FileVersion>2.2.4.0</FileVersion>
<Version>2.2.4</Version>
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>..\..\ThreatsManager.Engine\ThreatsManager.snk</AssemblyOriginatorKeyFile>
<NoWarn>$(NoWarn);NU1505</NoWarn>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
using ThreatsManager.Interfaces;

[assembly: ExtensionsContainer("2.2.3")]
[assembly: ExtensionsContainer("2.2.4")]
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
<PropertyGroup>
<TargetFrameworks>net481</TargetFrameworks>
<Description>Threats Manager Platform Auto Generation Rules library.</Description>
<AssemblyVersion>2.2.3.0</AssemblyVersion>
<AssemblyVersion>2.2.4.0</AssemblyVersion>
<Authors>Simone Curzi</Authors>
<Company>Simone Curzi</Company>
<Product>Threats Manager Platform</Product>
<Copyright>Copyright © Simone Curzi, 2018-2024. All Rights Reserved.</Copyright>
<PackageProjectUrl>https://www.nuget.org/packages/ThreatsManager.Engine/</PackageProjectUrl>
<RepositoryUrl>https://github.com/simonec73/threatsmanager</RepositoryUrl>
<FileVersion>2.2.3.0</FileVersion>
<Version>2.2.3</Version>
<FileVersion>2.2.4.0</FileVersion>
<Version>2.2.4</Version>
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>..\..\ThreatsManager.Engine\ThreatsManager.snk</AssemblyOriginatorKeyFile>
<NoWarn>$(NoWarn);NU1505</NoWarn>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
using ThreatsManager.Interfaces;

[assembly: ExtensionsContainer("2.2.3")]
[assembly: ExtensionsContainer("2.2.4")]
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
<PropertyGroup>
<TargetFrameworks>net481</TargetFrameworks>
<Description>Threats Manager Platform Auto Threat Generation library.</Description>
<AssemblyVersion>2.2.3.0</AssemblyVersion>
<AssemblyVersion>2.2.4.0</AssemblyVersion>
<Authors>Simone Curzi</Authors>
<Company>Simone Curzi</Company>
<Product>Threats Manager Platform</Product>
<Copyright>Copyright © Simone Curzi, 2018-2024. All Rights Reserved.</Copyright>
<PackageProjectUrl>https://www.nuget.org/packages/ThreatsManager.Engine/</PackageProjectUrl>
<RepositoryUrl>https://github.com/simonec73/threatsmanager</RepositoryUrl>
<FileVersion>2.2.3.0</FileVersion>
<Version>2.2.3</Version>
<FileVersion>2.2.4.0</FileVersion>
<Version>2.2.4</Version>
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>..\..\ThreatsManager.Engine\ThreatsManager.snk</AssemblyOriginatorKeyFile>
<NoWarn>$(NoWarn);NU1505</NoWarn>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
using ThreatsManager.Interfaces;

[assembly: ExtensionsContainer("2.2.3")]
[assembly: ExtensionsContainer("2.2.4")]
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
<PropertyGroup>
<TargetFrameworks>net481</TargetFrameworks>
<Description>Threats Manager Platform DevOps Integration library.</Description>
<AssemblyVersion>2.2.3.0</AssemblyVersion>
<AssemblyVersion>2.2.4.0</AssemblyVersion>
<Authors>Simone Curzi</Authors>
<Company>Simone Curzi</Company>
<Product>Threats Manager Platform</Product>
<Copyright>Copyright © Simone Curzi, 2018-2024. All Rights Reserved.</Copyright>
<PackageProjectUrl>https://www.nuget.org/packages/ThreatsManager.Engine/</PackageProjectUrl>
<RepositoryUrl>https://github.com/simonec73/threatsmanager</RepositoryUrl>
<FileVersion>2.2.3.0</FileVersion>
<Version>2.2.3</Version>
<FileVersion>2.2.4.0</FileVersion>
<Version>2.2.4</Version>
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>..\..\ThreatsManager.Engine\ThreatsManager.snk</AssemblyOriginatorKeyFile>
<NoWarn>$(NoWarn);NU1505</NoWarn>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
<PropertyGroup>
<TargetFrameworks>net481</TargetFrameworks>
<Description>Threats Manager Platform Extensions Client library.</Description>
<AssemblyVersion>2.2.3.0</AssemblyVersion>
<AssemblyVersion>2.2.4.0</AssemblyVersion>
<Authors>Simone Curzi</Authors>
<Company>Simone Curzi</Company>
<Product>Threats Manager Platform</Product>
<Copyright>Copyright © Simone Curzi, 2018-2024. All Rights Reserved.</Copyright>
<PackageProjectUrl>https://www.nuget.org/packages/ThreatsManager.Engine/</PackageProjectUrl>
<RepositoryUrl>https://github.com/simonec73/threatsmanager</RepositoryUrl>
<FileVersion>2.2.3.0</FileVersion>
<Version>2.2.3</Version>
<FileVersion>2.2.4.0</FileVersion>
<Version>2.2.4</Version>
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>..\..\ThreatsManager.Engine\ThreatsManager.snk</AssemblyOriginatorKeyFile>
<RootNamespace>ThreatsManager.Extensions</RootNamespace>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
using ThreatsManager.Interfaces;

[assembly: ExtensionsContainer("2.2.3")]
[assembly: ExtensionsContainer("2.2.4")]
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
<PropertyGroup>
<TargetFrameworks>net481</TargetFrameworks>
<Description>Threats Manager Platform Extensions library.</Description>
<AssemblyVersion>2.2.3.0</AssemblyVersion>
<AssemblyVersion>2.2.4.0</AssemblyVersion>
<Authors>Simone Curzi</Authors>
<Company>Simone Curzi</Company>
<Product>Threats Manager Platform</Product>
<Copyright>Copyright © Simone Curzi, 2018-2024. All Rights Reserved.</Copyright>
<PackageProjectUrl>https://www.nuget.org/packages/ThreatsManager.Engine/</PackageProjectUrl>
<RepositoryUrl>https://github.com/simonec73/threatsmanager</RepositoryUrl>
<FileVersion>2.2.3.0</FileVersion>
<Version>2.2.3</Version>
<FileVersion>2.2.4.0</FileVersion>
<Version>2.2.4</Version>
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>..\..\ThreatsManager.Engine\ThreatsManager.snk</AssemblyOriginatorKeyFile>
<NoWarn>$(NoWarn);NU1505</NoWarn>
Expand Down
14 changes: 14 additions & 0 deletions Sources/Extensions/ThreatsManager.ImportersExporters/Direction.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ThreatsManager.ImportersExporters
{
public enum Direction
{
Import,
Export
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;

namespace ThreatsManager.ImportersExporters.Exporters.Excel
{
[JsonObject(MemberSerialization.OptIn)]
public class ColumnSettings
{
[JsonProperty("index")]
public int Index { get; set; }

[JsonProperty("label")]
public string Label { get; set; }

[JsonProperty("width")]
public float Width { get; set; }

[JsonProperty("fieldType")]
[JsonConverter(typeof(StringEnumConverter))]
public FieldType FieldType { get; set; }

[JsonProperty("schemaName")]
public string SchemaName { get; set; }

[JsonProperty("schemaNs")]
public string SchemaNamespace { get; set; }

[JsonProperty("propertyName")]
public string PropertyName { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
using System.Collections.Generic;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;

namespace ThreatsManager.ImportersExporters.Exporters.Excel
{
[JsonObject(MemberSerialization.OptIn)]
public class ExportSettings
{
/// <summary>
/// Direction of the operation.
/// </summary>
/// <remarks>For export must be Export.</remarks>
[JsonProperty("direction")]
[JsonConverter(typeof(StringEnumConverter))]
public Direction Direction { get; set; }

/// <summary>
/// Version of the format.
/// </summary>
/// <remarks>It is checked by the exporter. If is not correct, the export fails.</remarks>
[JsonProperty("version")]
public int Version { get; set; }

/// <summary>
/// Configuration of the sheets that must be exported.
/// </summary>
[JsonProperty("sheets")]
public List<SheetSettings> Sheets { get; set; }
}
}
Loading

0 comments on commit 03f5b1a

Please sign in to comment.