Merge branch 'feature/building-block-operations-config-contract-baseline' into development
This commit is contained in:
commit
7e4c6e524d
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,2 +1,4 @@
|
|||||||
.tasks/
|
.tasks/
|
||||||
.agile/
|
.agile/
|
||||||
|
**/bin/
|
||||||
|
**/obj/
|
||||||
|
|||||||
5
BuildingBlock.OperationsConfig.slnx
Normal file
5
BuildingBlock.OperationsConfig.slnx
Normal 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
10
Directory.Build.props
Normal 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>
|
||||||
@ -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);
|
||||||
|
}
|
||||||
@ -0,0 +1,9 @@
|
|||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<TargetFramework>net10.0</TargetFramework>
|
||||||
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
|
<Nullable>enable</Nullable>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
</Project>
|
||||||
@ -0,0 +1,3 @@
|
|||||||
|
namespace BuildingBlock.OperationsConfig.Contracts.Contracts;
|
||||||
|
|
||||||
|
public sealed record FeatureFlagContract(string Key, bool Enabled);
|
||||||
@ -0,0 +1,6 @@
|
|||||||
|
namespace BuildingBlock.OperationsConfig.Contracts.Contracts;
|
||||||
|
|
||||||
|
public sealed record ServiceWindowContract(
|
||||||
|
DayOfWeek Day,
|
||||||
|
TimeOnly OpenAt,
|
||||||
|
TimeOnly CloseAt);
|
||||||
@ -0,0 +1,5 @@
|
|||||||
|
namespace BuildingBlock.OperationsConfig.Contracts.Requests;
|
||||||
|
|
||||||
|
public sealed record GetEffectiveOperationsConfigRequest(
|
||||||
|
string LocationId,
|
||||||
|
DateTime EffectiveAtUtc);
|
||||||
@ -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);
|
||||||
Loading…
Reference in New Issue
Block a user