feat(ops): show deployment capability receipt
This commit is contained in:
@@ -17,6 +17,28 @@ export type OpsDeploymentProfile = {
|
||||
fit: string;
|
||||
};
|
||||
|
||||
export type OpsInfrastructureCapability = {
|
||||
id: string;
|
||||
label: string;
|
||||
state: "configured" | "available_unconfigured" | "externally_supplied" | "unavailable";
|
||||
source: string;
|
||||
detail: string;
|
||||
endpoint: Record<string, string | number | boolean | null>;
|
||||
secret_refs: string[];
|
||||
dependent_modules: string[];
|
||||
};
|
||||
|
||||
export type OpsPostInstallTask = {
|
||||
id: string;
|
||||
resume_key: string;
|
||||
capability_id: string;
|
||||
state: string;
|
||||
owner_module: string;
|
||||
summary: string;
|
||||
required_inputs: string[];
|
||||
secret_boundary: string;
|
||||
};
|
||||
|
||||
export type OpsSizingAssumption = {
|
||||
area: string;
|
||||
baseline: string;
|
||||
@@ -186,6 +208,8 @@ export type OpsStatus = {
|
||||
failed_operation_count?: number;
|
||||
outcome_unknown_count?: number;
|
||||
active_operation_count?: number;
|
||||
infrastructure_capability_count?: number;
|
||||
pending_post_install_task_count?: number;
|
||||
};
|
||||
readiness: {
|
||||
ready: boolean;
|
||||
@@ -220,6 +244,16 @@ export type OpsStatus = {
|
||||
deployment_profiles: OpsDeploymentProfile[];
|
||||
sizing: OpsSizingAssumption[];
|
||||
runtime_cluster: OpsRuntimeCluster;
|
||||
infrastructure: {
|
||||
configured: boolean;
|
||||
available: boolean;
|
||||
schema_version?: number | null;
|
||||
installation_id?: string | null;
|
||||
profile?: string | null;
|
||||
capabilities: OpsInfrastructureCapability[];
|
||||
post_install_tasks: OpsPostInstallTask[];
|
||||
error?: string | null;
|
||||
};
|
||||
};
|
||||
|
||||
export function fetchOpsStatus(settings: ApiSettings): Promise<OpsStatus> {
|
||||
|
||||
Reference in New Issue
Block a user