UNPKG

@hashgraph/solo

Version:

An opinionated CLI tool to deploy and manage private Hedera Networks.

45 lines (37 loc) 1.1 kB
// SPDX-License-Identifier: Apache-2.0 import {Exclude, Expose, Transform} from 'class-transformer'; import {Transformations} from '../../utils/transformations.js'; import {type DeploymentPhase} from '../deployment-phase.js'; import { type ClusterReferenceName, type ComponentId, type NamespaceNameAsString, type PortForwardConfig, } from '../../../../../types/index.js'; @Exclude() export class ComponentStateMetadataSchema { @Expose() public id: ComponentId; @Expose() public namespace: NamespaceNameAsString; @Expose() public cluster: ClusterReferenceName; @Expose() @Transform(Transformations.DeploymentPhase) public phase: DeploymentPhase; @Expose() public portForwardConfigs: PortForwardConfig[]; public constructor( id?: ComponentId, namespace?: NamespaceNameAsString, cluster?: ClusterReferenceName, phase?: DeploymentPhase, portForwardConfigs?: PortForwardConfig[], ) { this.id = id; this.namespace = namespace; this.cluster = cluster; this.phase = phase; this.portForwardConfigs = portForwardConfigs; } }