mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 12:11:56 +00:00
sdk updates
This commit is contained in:
@@ -10,15 +10,15 @@ import { ConnectionService } from 'src/app/services/connection.service'
|
||||
})
|
||||
export class AppShowHealthChecksComponent {
|
||||
@Input()
|
||||
healthChecks!: Record<string, T.HealthCheckResult>
|
||||
healthChecks!: Record<string, T.NamedHealthCheckResult>
|
||||
|
||||
constructor(readonly connection$: ConnectionService) {}
|
||||
|
||||
isLoading(result: T.HealthCheckResult['result']): boolean {
|
||||
isLoading(result: T.NamedHealthCheckResult['result']): boolean {
|
||||
return result === 'starting' || result === 'loading'
|
||||
}
|
||||
|
||||
isReady(result: T.HealthCheckResult['result']): boolean {
|
||||
isReady(result: T.NamedHealthCheckResult['result']): boolean {
|
||||
return result !== 'failure' && result !== 'loading'
|
||||
}
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ import { T } from '@start9labs/start-sdk'
|
||||
name: 'healthColor',
|
||||
})
|
||||
export class HealthColorPipe implements PipeTransform {
|
||||
transform(val: T.HealthCheckResult['result']): string {
|
||||
transform(val: T.NamedHealthCheckResult['result']): string {
|
||||
switch (val) {
|
||||
case 'success':
|
||||
return 'success'
|
||||
|
||||
@@ -14,7 +14,7 @@ export class ToHealthChecksPipe implements PipeTransform {
|
||||
|
||||
transform(
|
||||
manifest: T.Manifest,
|
||||
): Observable<Record<string, T.HealthCheckResult | null> | null> {
|
||||
): Observable<Record<string, T.NamedHealthCheckResult | null> | null> {
|
||||
return this.patch.watch$('packageData', manifest.id, 'status', 'main').pipe(
|
||||
map(main => {
|
||||
return main.status === 'running' && !isEmptyObject(main.health)
|
||||
|
||||
@@ -1699,7 +1699,6 @@ export module Mock {
|
||||
ui: {
|
||||
id: 'ui',
|
||||
hasPrimary: false,
|
||||
disabled: false,
|
||||
masked: false,
|
||||
name: 'Web UI',
|
||||
description:
|
||||
@@ -1717,7 +1716,6 @@ export module Mock {
|
||||
rpc: {
|
||||
id: 'rpc',
|
||||
hasPrimary: false,
|
||||
disabled: false,
|
||||
masked: false,
|
||||
name: 'RPC',
|
||||
description:
|
||||
@@ -1735,7 +1733,6 @@ export module Mock {
|
||||
p2p: {
|
||||
id: 'p2p',
|
||||
hasPrimary: true,
|
||||
disabled: false,
|
||||
masked: false,
|
||||
name: 'P2P',
|
||||
description:
|
||||
@@ -1876,7 +1873,6 @@ export module Mock {
|
||||
ui: {
|
||||
id: 'ui',
|
||||
hasPrimary: false,
|
||||
disabled: false,
|
||||
masked: false,
|
||||
name: 'Web UI',
|
||||
description: 'A launchable web app for Bitcoin Proxy',
|
||||
@@ -1925,7 +1921,6 @@ export module Mock {
|
||||
grpc: {
|
||||
id: 'grpc',
|
||||
hasPrimary: false,
|
||||
disabled: false,
|
||||
masked: false,
|
||||
name: 'GRPC',
|
||||
description:
|
||||
@@ -1943,7 +1938,6 @@ export module Mock {
|
||||
lndconnect: {
|
||||
id: 'lndconnect',
|
||||
hasPrimary: false,
|
||||
disabled: false,
|
||||
masked: true,
|
||||
name: 'LND Connect',
|
||||
description:
|
||||
@@ -1961,7 +1955,6 @@ export module Mock {
|
||||
p2p: {
|
||||
id: 'p2p',
|
||||
hasPrimary: true,
|
||||
disabled: false,
|
||||
masked: false,
|
||||
name: 'P2P',
|
||||
description:
|
||||
|
||||
@@ -535,7 +535,7 @@ export interface DependencyErrorConfigUnsatisfied {
|
||||
|
||||
export interface DependencyErrorHealthChecksFailed {
|
||||
type: 'healthChecksFailed'
|
||||
check: T.HealthCheckResult
|
||||
check: T.NamedHealthCheckResult
|
||||
}
|
||||
|
||||
export interface DependencyErrorTransitive {
|
||||
|
||||
@@ -132,7 +132,6 @@ export const mockPatchData: DataModel = {
|
||||
ui: {
|
||||
id: 'ui',
|
||||
hasPrimary: false,
|
||||
disabled: false,
|
||||
masked: false,
|
||||
name: 'Web UI',
|
||||
description:
|
||||
@@ -150,7 +149,6 @@ export const mockPatchData: DataModel = {
|
||||
rpc: {
|
||||
id: 'rpc',
|
||||
hasPrimary: false,
|
||||
disabled: false,
|
||||
masked: false,
|
||||
name: 'RPC',
|
||||
description:
|
||||
@@ -168,7 +166,6 @@ export const mockPatchData: DataModel = {
|
||||
p2p: {
|
||||
id: 'p2p',
|
||||
hasPrimary: true,
|
||||
disabled: false,
|
||||
masked: false,
|
||||
name: 'P2P',
|
||||
description:
|
||||
@@ -311,7 +308,6 @@ export const mockPatchData: DataModel = {
|
||||
grpc: {
|
||||
id: 'grpc',
|
||||
hasPrimary: false,
|
||||
disabled: false,
|
||||
masked: false,
|
||||
name: 'GRPC',
|
||||
description:
|
||||
@@ -329,7 +325,6 @@ export const mockPatchData: DataModel = {
|
||||
lndconnect: {
|
||||
id: 'lndconnect',
|
||||
hasPrimary: false,
|
||||
disabled: false,
|
||||
masked: true,
|
||||
name: 'LND Connect',
|
||||
description:
|
||||
@@ -347,7 +342,6 @@ export const mockPatchData: DataModel = {
|
||||
p2p: {
|
||||
id: 'p2p',
|
||||
hasPrimary: true,
|
||||
disabled: false,
|
||||
masked: false,
|
||||
name: 'P2P',
|
||||
description:
|
||||
|
||||
Reference in New Issue
Block a user