// SPDX-License-Identifier: Apache-2.0
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
import { Exclude, Expose, Transform, Type } from 'class-transformer';
import { ConsensusNodeStateSchema } from './state/consensus-node-state-schema.js';
import { Transformations } from '../utils/transformations.js';
import { RelayNodeStateSchema } from './state/relay-node-state-schema.js';
import { MirrorNodeStateSchema } from './state/mirror-node-state-schema.js';
import { HaProxyStateSchema } from './state/ha-proxy-state-schema.js';
import { EnvoyProxyStateSchema } from './state/envoy-proxy-state-schema.js';
import { ExplorerStateSchema } from './state/explorer-state-schema.js';
import { BlockNodeStateSchema } from './state/block-node-state-schema.js';
import { ComponentIdsSchema } from './state/component-ids-schema.js';
import { ExternalBlockNodeStateSchema } from './state/external-block-node-state-schema.js';
let DeploymentStateSchema = class DeploymentStateSchema {
    ledgerPhase;
    componentIds;
    consensusNodes;
    blockNodes;
    mirrorNodes;
    relayNodes;
    haProxies;
    envoyProxies;
    explorers;
    externalBlockNodes;
    constructor(ledgerPhase, componentIds, consensusNodes, blockNodes, mirrorNodes, relayNodes, haProxies, envoyProxies, explorers, externalBlockNodes) {
        this.ledgerPhase = ledgerPhase;
        this.componentIds = componentIds || new ComponentIdsSchema();
        this.consensusNodes = consensusNodes || [];
        this.blockNodes = blockNodes || [];
        this.mirrorNodes = mirrorNodes || [];
        this.relayNodes = relayNodes || [];
        this.haProxies = haProxies || [];
        this.envoyProxies = envoyProxies || [];
        this.explorers = explorers || [];
        this.externalBlockNodes = externalBlockNodes || [];
    }
};
__decorate([
    Expose(),
    Transform(Transformations.LedgerPhase),
    __metadata("design:type", String)
], DeploymentStateSchema.prototype, "ledgerPhase", void 0);
__decorate([
    Expose(),
    Type(() => ComponentIdsSchema),
    __metadata("design:type", ComponentIdsSchema)
], DeploymentStateSchema.prototype, "componentIds", void 0);
__decorate([
    Expose(),
    Type(() => ConsensusNodeStateSchema),
    __metadata("design:type", Array)
], DeploymentStateSchema.prototype, "consensusNodes", void 0);
__decorate([
    Expose(),
    Type(() => BlockNodeStateSchema),
    __metadata("design:type", Array)
], DeploymentStateSchema.prototype, "blockNodes", void 0);
__decorate([
    Expose(),
    Type(() => MirrorNodeStateSchema),
    __metadata("design:type", Array)
], DeploymentStateSchema.prototype, "mirrorNodes", void 0);
__decorate([
    Expose(),
    Type(() => RelayNodeStateSchema),
    __metadata("design:type", Array)
], DeploymentStateSchema.prototype, "relayNodes", void 0);
__decorate([
    Expose(),
    Type(() => HaProxyStateSchema),
    __metadata("design:type", Array)
], DeploymentStateSchema.prototype, "haProxies", void 0);
__decorate([
    Expose(),
    Type(() => EnvoyProxyStateSchema),
    __metadata("design:type", Array)
], DeploymentStateSchema.prototype, "envoyProxies", void 0);
__decorate([
    Expose(),
    Type(() => ExplorerStateSchema),
    __metadata("design:type", Array)
], DeploymentStateSchema.prototype, "explorers", void 0);
__decorate([
    Expose(),
    Type(() => ExternalBlockNodeStateSchema),
    __metadata("design:type", Array)
], DeploymentStateSchema.prototype, "externalBlockNodes", void 0);
DeploymentStateSchema = __decorate([
    Exclude(),
    __metadata("design:paramtypes", [String, ComponentIdsSchema, Array, Array, Array, Array, Array, Array, Array, Array])
], DeploymentStateSchema);
export { DeploymentStateSchema };
//# sourceMappingURL=deployment-state-schema.js.map