Add records for StoreLogIntervalEntry and StoreInformation with detailed summaries

This commit is contained in:
2026-02-03 07:40:08 +01:00
parent ada7f979cf
commit 0b1e735a9f
3 changed files with 28 additions and 0 deletions

View File

@@ -15,6 +15,20 @@ namespace FsToolbox.Cli
#endregion
#region Record StoreLogIntervalEntry
/// <summary>
/// Aggregates store log entry with computed time difference versus calendar interval.
/// </summary>
/// <param name="Store">The store for which the log entry applies.</param>
/// <param name="Entry">The store log entry.</param>
/// <param name="SecondsDifference">Seconds from performedAt to referenceDate.</param>
/// <param name="CalendarIntervalSeconds">Calendar interval in seconds.</param>
/// <param name="ExceedsInterval">Indicates whether the difference exceeds the calendar interval.</param>
private record StoreLogIntervalEntry(RegionTasks.Store Store, StoreTasks.StoreLogEntry Entry, double SecondsDifference, int CalendarIntervalSeconds, bool ExceedsInterval);
#endregion
#region Record StoreLogProfileEntry
/// <summary>

View File

@@ -10,6 +10,8 @@ namespace FsToolbox.Cli
public static string StoreMembers => $"{ApiBase}/api/stores/{{0}}/member";
public static string StoreInformation => $"{ApiBase}/api/stores/{{0}}/information";
public static string StorePickups => $"{ApiBase}/api/stores/{{0}}/pickups";
public static string StorePickupsSlot => $"{ApiBase}/api/stores/{{0}}/pickups/{{1}}/{{2}}";

View File

@@ -4,6 +4,18 @@ namespace FsToolbox.Cli.Tasks
{
public static partial class StoreTasks
{
#region Record StoreInformation
/// <summary>
/// Store information including the calendar interval for automatic slot creation.
/// </summary>
/// <param name="Id">The store identifier.</param>
/// <param name="Name">The store name.</param>
/// <param name="CalendarInterval">Interval in seconds before a slot's time when it is automatically created.</param>
public record StoreInformation(int Id, string Name, int CalendarInterval);
#endregion
#region Record Member
/// <summary>