Frontend gaps fill work. Testing fixes work. Auditing in progress.
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace StellaOps.Platform.WebService.Contracts;
|
||||
|
||||
public sealed record PlatformHealthSummary(
|
||||
string Status,
|
||||
int IncidentCount,
|
||||
IReadOnlyList<PlatformHealthServiceStatus> Services);
|
||||
|
||||
public sealed record PlatformHealthServiceStatus(
|
||||
string Service,
|
||||
string Status,
|
||||
string? Detail,
|
||||
DateTimeOffset CheckedAt,
|
||||
double? LatencyMs);
|
||||
|
||||
public sealed record PlatformDependencyStatus(
|
||||
string Service,
|
||||
string Status,
|
||||
string Version,
|
||||
DateTimeOffset CheckedAt,
|
||||
string? Message);
|
||||
|
||||
public sealed record PlatformIncident(
|
||||
string IncidentId,
|
||||
string Severity,
|
||||
string Status,
|
||||
string Summary,
|
||||
DateTimeOffset OpenedAt,
|
||||
DateTimeOffset? UpdatedAt);
|
||||
|
||||
public sealed record PlatformHealthMetric(
|
||||
string Metric,
|
||||
double Value,
|
||||
string Unit,
|
||||
string Status,
|
||||
double? Threshold,
|
||||
DateTimeOffset SampledAt);
|
||||
@@ -0,0 +1,17 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace StellaOps.Platform.WebService.Contracts;
|
||||
|
||||
public sealed record PlatformMetadata(
|
||||
string Service,
|
||||
string Version,
|
||||
string? BuildVersion,
|
||||
string? Environment,
|
||||
string? Region,
|
||||
bool OfflineMode,
|
||||
IReadOnlyList<PlatformCapability> Capabilities);
|
||||
|
||||
public sealed record PlatformCapability(
|
||||
string Id,
|
||||
string Description,
|
||||
bool Enabled);
|
||||
@@ -0,0 +1,31 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace StellaOps.Platform.WebService.Contracts;
|
||||
|
||||
public sealed record PlatformOnboardingStepStatus(
|
||||
string Step,
|
||||
string Status,
|
||||
DateTimeOffset? UpdatedAt,
|
||||
string? UpdatedBy,
|
||||
string? Notes);
|
||||
|
||||
public sealed record PlatformOnboardingState(
|
||||
string TenantId,
|
||||
string ActorId,
|
||||
string Status,
|
||||
IReadOnlyList<PlatformOnboardingStepStatus> Steps,
|
||||
DateTimeOffset UpdatedAt,
|
||||
string? UpdatedBy,
|
||||
string? SkippedReason);
|
||||
|
||||
public sealed record PlatformOnboardingSkipRequest(
|
||||
string? Reason);
|
||||
|
||||
public sealed record PlatformTenantSetupStatus(
|
||||
string TenantId,
|
||||
int TotalUsers,
|
||||
int CompletedUsers,
|
||||
int SkippedUsers,
|
||||
int PendingUsers,
|
||||
DateTimeOffset UpdatedAt);
|
||||
@@ -0,0 +1,24 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace StellaOps.Platform.WebService.Contracts;
|
||||
|
||||
public sealed record PlatformItemResponse<T>(
|
||||
string TenantId,
|
||||
string ActorId,
|
||||
DateTimeOffset DataAsOf,
|
||||
bool Cached,
|
||||
int CacheTtlSeconds,
|
||||
T Item);
|
||||
|
||||
public sealed record PlatformListResponse<T>(
|
||||
string TenantId,
|
||||
string ActorId,
|
||||
DateTimeOffset DataAsOf,
|
||||
bool Cached,
|
||||
int CacheTtlSeconds,
|
||||
IReadOnlyList<T> Items,
|
||||
int Count,
|
||||
int? Limit = null,
|
||||
int? Offset = null,
|
||||
string? Query = null);
|
||||
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using System.Text.Json.Nodes;
|
||||
|
||||
namespace StellaOps.Platform.WebService.Contracts;
|
||||
|
||||
public sealed record PlatformDashboardPreferences(
|
||||
string TenantId,
|
||||
string ActorId,
|
||||
JsonObject Preferences,
|
||||
DateTimeOffset UpdatedAt,
|
||||
string? UpdatedBy);
|
||||
|
||||
public sealed record PlatformDashboardPreferencesRequest(
|
||||
JsonObject Preferences);
|
||||
|
||||
public sealed record PlatformDashboardProfile(
|
||||
string ProfileId,
|
||||
string Name,
|
||||
string? Description,
|
||||
JsonObject Preferences,
|
||||
DateTimeOffset UpdatedAt,
|
||||
string? UpdatedBy);
|
||||
|
||||
public sealed record PlatformDashboardProfileRequest(
|
||||
string ProfileId,
|
||||
string Name,
|
||||
string? Description,
|
||||
JsonObject Preferences);
|
||||
@@ -0,0 +1,29 @@
|
||||
using System;
|
||||
|
||||
namespace StellaOps.Platform.WebService.Contracts;
|
||||
|
||||
public sealed record PlatformQuotaUsage(
|
||||
string QuotaId,
|
||||
string Scope,
|
||||
string Unit,
|
||||
decimal Limit,
|
||||
decimal Used,
|
||||
decimal Remaining,
|
||||
string Period,
|
||||
string Source,
|
||||
DateTimeOffset MeasuredAt);
|
||||
|
||||
public sealed record PlatformQuotaAlert(
|
||||
string AlertId,
|
||||
string QuotaId,
|
||||
string Severity,
|
||||
decimal Threshold,
|
||||
string Condition,
|
||||
DateTimeOffset CreatedAt,
|
||||
string CreatedBy);
|
||||
|
||||
public sealed record PlatformQuotaAlertRequest(
|
||||
string QuotaId,
|
||||
decimal Threshold,
|
||||
string Condition,
|
||||
string Severity);
|
||||
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace StellaOps.Platform.WebService.Contracts;
|
||||
|
||||
public sealed record PlatformSearchItem(
|
||||
string EntityId,
|
||||
string EntityType,
|
||||
string Title,
|
||||
string Summary,
|
||||
string Source,
|
||||
string? Url,
|
||||
double Score,
|
||||
DateTimeOffset UpdatedAt);
|
||||
|
||||
public sealed record PlatformSearchResult(
|
||||
IReadOnlyList<PlatformSearchItem> Items,
|
||||
int Total,
|
||||
int Limit,
|
||||
int Offset,
|
||||
string? Query);
|
||||
Reference in New Issue
Block a user