diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 07bf5a6e..e0f026f0 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -16,11 +16,11 @@ jobs: steps: - uses: actions/checkout@v2 - + - name: Setup .NET Core uses: actions/setup-dotnet@v1 with: - dotnet-version: 2.2 + dotnet-version: '6.0.x' #2.2 - name: Build new SDK run: cd auto-generated-sdk && dotnet build --configuration Release diff --git a/README.md b/README.md index 73eb6e4b..1aaec2ea 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,9 @@ [![build](https://img.shields.io/github/workflow/status/factset/analyticsapi-engines-dotnet-sdk/CI)](https://github.com/factset/analyticsapi-engines-dotnet-sdk/actions?query=workflow%3ACI) [![nuget](https://img.shields.io/nuget/v/FactSet.AnalyticsAPI.Engines)](https://www.nuget.org/packages/FactSet.AnalyticsAPI.Engines) ![API version](https://img.shields.io/badge/API-v2-blue) -[![Apache-2 license](https://img.shields.io/badge/license-Apache2-brightgreen.svg)](https://www.apache.org/licenses/LICENSE-2.0) +[![Apache-2 license](https://img.shields.io/badge/license-Apache2-brightgreen.svg)](https://www.apache.org/licenses/LICENSE-2.0)![Deprecated](https://img.shields.io/badge/status-deprecated-red) + +*```**Note: This library is no longer maintained and is deprecated. Please use``` [enterprise-sdk](https://github.com/FactSet/enterprise-sdk) ```instead.```* Use this library to integrate with FactSet's Analytics APIs. Below APIs are supported by this SDK. diff --git a/examples/FactSet.AnalyticsAPI.Engines.Example/Examples/PAEngineMultipleUnitExample.cs b/examples/FactSet.AnalyticsAPI.Engines.Example/Examples/PAEngineMultipleUnitExample.cs index 10842a8d..6bc7641a 100644 --- a/examples/FactSet.AnalyticsAPI.Engines.Example/Examples/PAEngineMultipleUnitExample.cs +++ b/examples/FactSet.AnalyticsAPI.Engines.Example/Examples/PAEngineMultipleUnitExample.cs @@ -137,9 +137,6 @@ private static PACalculationParametersRoot GetPaCalculationParameters() var paComponentId = componentsResponse.Data.FirstOrDefault(component => (component.Value.Name == ComponentName && component.Value.Category == ComponentCategory)).Key; Console.WriteLine($"PA Component Id : {paComponentId}"); - - var paAccountIdentifier = new PAIdentifier(Portfolio, Holdings); - var pricingSourcesApi = new PricingSourcesApi(GetApiConfiguration()); var pricingSourcesResponse = pricingSourcesApi.GetPAPricingSources(PricingSourceName, PricingSourceCategory, PricingSourceDirectory); diff --git a/examples/FactSet.AnalyticsAPI.Engines.Example/Examples/PAEngineSingleUnitExample.cs b/examples/FactSet.AnalyticsAPI.Engines.Example/Examples/PAEngineSingleUnitExample.cs index f3859748..177375e9 100644 --- a/examples/FactSet.AnalyticsAPI.Engines.Example/Examples/PAEngineSingleUnitExample.cs +++ b/examples/FactSet.AnalyticsAPI.Engines.Example/Examples/PAEngineSingleUnitExample.cs @@ -144,9 +144,7 @@ private static PACalculationParametersRoot GetPaCalculationParameters() var componentsResponse = componentsApi.GetPAComponents(PADocument); var paComponentId = componentsResponse.Data.FirstOrDefault(component => (component.Value.Name == ComponentName && component.Value.Category == ComponentCategory)).Key; - Console.WriteLine($"PA Component Id : {paComponentId}"); - - var paAccountIdentifier = new PAIdentifier(Portfolio, Holdings); + Console.WriteLine($"PA Component Id : {paComponentId}"); var pricingSourcesApi = new PricingSourcesApi(GetApiConfiguration()); diff --git a/tests/FactSet.AnalyticsAPI.Engines.Test/Api/CommonParameters.cs b/tests/FactSet.AnalyticsAPI.Engines.Test/Api/CommonParameters.cs index 296e6edb..f380da21 100644 --- a/tests/FactSet.AnalyticsAPI.Engines.Test/Api/CommonParameters.cs +++ b/tests/FactSet.AnalyticsAPI.Engines.Test/Api/CommonParameters.cs @@ -14,7 +14,7 @@ public static class CommonParameters // Add 'ANALYTICS_API_URL' environment variable with api url as value public static readonly string BaseUrl = !string.IsNullOrEmpty(Environment.GetEnvironmentVariable("ANALYTICS_API_URL")) ? Environment.GetEnvironmentVariable("ANALYTICS_API_URL") : "https://api.factset.com"; - public const string PADefaultDocument = "PA_DOCUMENTS:DEFAULT"; + public const string PADefaultDocument = "PA3_DOCUMENTS:PA_API_DEFAULT_DOCUMENT-RBICS"; public const string PADefaultComponentName = "Weights"; public const string PADefaultComponentCategory = "Weights / Exposures"; public const string PABenchmarkSP50 = "BENCH:SP50"; @@ -25,11 +25,11 @@ public static class CommonParameters public const string SPARBenchmarkRussellPR1000 = "RUSSELL_P:R.2000"; public const string SPARBenchmarkRussellPrefix = "RUSSELL"; public const string SPARBenchmarkRussellReturnType = "GTR"; - public const string VaultDefaultDocument = "Client:/aapi/VAULT_QA_PI_DEFAULT_LOCKED"; - public const string VaultDefaultAccount = "CLIENT:/BISAM/REPOSITORY/QA/SMALL_PORT.ACCT"; - public const string VaultStartDate = "20180101"; - public const string VaultEndDate = "20180329"; - public const string PubDocumentName = "Client:/AAPI/Puma Test Doc.PUB_BRIDGE_PDF"; + public const string VaultDefaultDocument = "CLIENT:/YETI/YETI-API-TEST"; + public const string VaultDefaultAccount = "CLIENT:/YETI/YETI-API-TEST.ACCT"; + public const string VaultStartDate = "20211231"; + public const string VaultEndDate = "20220131"; + public const string PubDocumentName = "Client:/AAPI/Puma Narrative Test.PUB_BRIDGE_PDF"; public const string PubAccountName = "BENCH:SP50"; public const string PubStartDate = "-1M"; public const string PubEndDate = "0M"; @@ -38,5 +38,6 @@ public static class CommonParameters public const string DefaultDatesDrequency = "Monthly"; public const string DefaultDatesAccount = "CLIENT:/BISAM/REPOSITORY/QA/SMALL_PORT.ACCT"; public const string DefaultLookupDirectory = "client:"; + public const string SPARAccount = "client:/aapi/spar3_qa_test_document"; } } \ No newline at end of file diff --git a/tests/FactSet.AnalyticsAPI.Engines.Test/Api/ComponentsApiTests.cs b/tests/FactSet.AnalyticsAPI.Engines.Test/Api/ComponentsApiTests.cs index 720a3883..4ecdce73 100644 --- a/tests/FactSet.AnalyticsAPI.Engines.Test/Api/ComponentsApiTests.cs +++ b/tests/FactSet.AnalyticsAPI.Engines.Test/Api/ComponentsApiTests.cs @@ -78,7 +78,7 @@ public void ComponentsApi_Get_SparComponents_Success() [TestMethod] public void ComponentsApi_Get_SPARComponentById_Success() { - var sparComponents = componentsApi.GetSPARComponentsWithHttpInfo(CommonParameters.SPARDefaultDocument); + var sparComponents = componentsApi.GetSPARComponentsWithHttpInfo(CommonParameters.SPARAccount); var sparComponentId = sparComponents.Data.Data.Keys.First(); var componentGetByIdResponse = componentsApi.GetSPARComponentByIdWithHttpInfo(sparComponentId); diff --git a/tests/FactSet.AnalyticsAPI.Engines.Test/FactSet.AnalyticsAPI.Engines.Test.csproj b/tests/FactSet.AnalyticsAPI.Engines.Test/FactSet.AnalyticsAPI.Engines.Test.csproj index 37f1de80..e784e0e6 100644 --- a/tests/FactSet.AnalyticsAPI.Engines.Test/FactSet.AnalyticsAPI.Engines.Test.csproj +++ b/tests/FactSet.AnalyticsAPI.Engines.Test/FactSet.AnalyticsAPI.Engines.Test.csproj @@ -1,8 +1,7 @@  - netcoreapp2.2 - + net6.0 false