Merge branch 'feature/building-block-operations-config-contract-baseline' into development

This commit is contained in:
José René White Enciso 2026-02-25 18:18:12 -06:00
commit 7e4c6e524d
9 changed files with 59 additions and 0 deletions

2
.gitignore vendored
View File

@ -1,2 +1,4 @@
.tasks/ .tasks/
.agile/ .agile/
**/bin/
**/obj/

View File

@ -0,0 +1,5 @@
<Solution>
<Folder Name="/src/">
<Project Path="src/BuildingBlock.OperationsConfig.Contracts/BuildingBlock.OperationsConfig.Contracts.csproj" />
</Folder>
</Solution>

10
Directory.Build.props Normal file
View File

@ -0,0 +1,10 @@
<Project>
<PropertyGroup>
<Authors>AgileWebs</Authors>
<Company>AgileWebs</Company>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>http://192.168.68.156:3000/AgileWebs/building-block-operations-config</RepositoryUrl>
<PackageProjectUrl>http://192.168.68.156:3000/AgileWebs/building-block-operations-config</PackageProjectUrl>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
</PropertyGroup>
</Project>

View File

@ -0,0 +1,11 @@
using BuildingBlock.OperationsConfig.Contracts.Requests;
using BuildingBlock.OperationsConfig.Contracts.Responses;
namespace BuildingBlock.OperationsConfig.Contracts.Abstractions;
public interface IOperationsConfigCapabilityContract
{
Task<GetEffectiveOperationsConfigResponse> GetEffectiveConfigAsync(
GetEffectiveOperationsConfigRequest request,
CancellationToken cancellationToken);
}

View File

@ -0,0 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>

View File

@ -0,0 +1,3 @@
namespace BuildingBlock.OperationsConfig.Contracts.Contracts;
public sealed record FeatureFlagContract(string Key, bool Enabled);

View File

@ -0,0 +1,6 @@
namespace BuildingBlock.OperationsConfig.Contracts.Contracts;
public sealed record ServiceWindowContract(
DayOfWeek Day,
TimeOnly OpenAt,
TimeOnly CloseAt);

View File

@ -0,0 +1,5 @@
namespace BuildingBlock.OperationsConfig.Contracts.Requests;
public sealed record GetEffectiveOperationsConfigRequest(
string LocationId,
DateTime EffectiveAtUtc);

View File

@ -0,0 +1,8 @@
using BuildingBlock.OperationsConfig.Contracts.Contracts;
namespace BuildingBlock.OperationsConfig.Contracts.Responses;
public sealed record GetEffectiveOperationsConfigResponse(
string Version,
IReadOnlyCollection<ServiceWindowContract> ServiceWindows,
IReadOnlyCollection<FeatureFlagContract> FeatureFlags);