// 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);
};
var LocalConfigSchema_1;
import { Exclude, Expose, Type } from 'class-transformer';
import { DeploymentSchema } from './deployment-schema.js';
import { UserIdentitySchema } from '../common/user-identity-schema.js';
import { Version } from '../../../../business/utils/version.js';
import { ApplicationVersionsSchema } from '../common/application-versions-schema.js';
let LocalConfigSchema = class LocalConfigSchema {
    static { LocalConfigSchema_1 = this; }
    static SCHEMA_VERSION = new Version(1);
    static EMPTY = new LocalConfigSchema_1(LocalConfigSchema_1.SCHEMA_VERSION.value, new ApplicationVersionsSchema(), [], new Map(), new UserIdentitySchema());
    schemaVersion;
    versions;
    userIdentity;
    deployments;
    clusterRefs;
    constructor(schemaVersion, versions, deployments, clusterReferences, userIdentity) {
        this.schemaVersion = schemaVersion ?? 1;
        this.versions = versions ?? new ApplicationVersionsSchema();
        this.deployments = deployments ?? [];
        this.clusterRefs = clusterReferences ?? new Map();
        this.userIdentity = userIdentity ?? new UserIdentitySchema();
    }
};
__decorate([
    Expose(),
    __metadata("design:type", Number)
], LocalConfigSchema.prototype, "schemaVersion", void 0);
__decorate([
    Expose(),
    Type(() => ApplicationVersionsSchema),
    __metadata("design:type", ApplicationVersionsSchema)
], LocalConfigSchema.prototype, "versions", void 0);
__decorate([
    Expose(),
    Type(() => UserIdentitySchema),
    __metadata("design:type", UserIdentitySchema)
], LocalConfigSchema.prototype, "userIdentity", void 0);
__decorate([
    Expose(),
    Type(() => DeploymentSchema),
    __metadata("design:type", Array)
], LocalConfigSchema.prototype, "deployments", void 0);
__decorate([
    Expose(),
    Type(() => Map),
    __metadata("design:type", Object)
], LocalConfigSchema.prototype, "clusterRefs", void 0);
LocalConfigSchema = LocalConfigSchema_1 = __decorate([
    Exclude(),
    __metadata("design:paramtypes", [Number, ApplicationVersionsSchema, Array, Object, UserIdentitySchema])
], LocalConfigSchema);
export { LocalConfigSchema };
//# sourceMappingURL=local-config-schema.js.map