"use strict";
// File: src/modules/infrastructure/servers/dto/delete-server.dto.ts
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);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.DeleteServerResponseDto = exports.DeleteServerDto = void 0;
const class_validator_1 = require("class-validator");
const swagger_1 = require("@nestjs/swagger");
const cloud_provider_enum_1 = require("../../../../modules/providers/enums/cloud-provider.enum");
class DeleteServerDto {
}
exports.DeleteServerDto = DeleteServerDto;
__decorate([
    (0, swagger_1.ApiProperty)({ description: 'Server ID to delete' }),
    (0, class_validator_1.IsNotEmpty)(),
    (0, class_validator_1.IsString)(),
    __metadata("design:type", String)
], DeleteServerDto.prototype, "server_id", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({ enum: cloud_provider_enum_1.CloudProvider, description: 'Cloud provider' }),
    (0, class_validator_1.IsEnum)(cloud_provider_enum_1.CloudProvider),
    __metadata("design:type", String)
], DeleteServerDto.prototype, "provider", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({
        description: 'Force deletion even if server is running',
        default: false,
    }),
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsBoolean)(),
    __metadata("design:type", Boolean)
], DeleteServerDto.prototype, "force", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({
        description: 'Keep Pulumi project directory after deletion',
        default: false,
    }),
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsBoolean)(),
    __metadata("design:type", Boolean)
], DeleteServerDto.prototype, "keep_project", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({ description: 'Reason for deletion (for audit)' }),
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsString)(),
    __metadata("design:type", String)
], DeleteServerDto.prototype, "reason", void 0);
class DeleteServerResponseDto {
}
exports.DeleteServerResponseDto = DeleteServerResponseDto;
__decorate([
    (0, swagger_1.ApiProperty)({ description: 'Operation ID for tracking deletion progress' }),
    __metadata("design:type", String)
], DeleteServerResponseDto.prototype, "operation_id", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({ enum: ['pending', 'running', 'completed', 'failed'] }),
    __metadata("design:type", String)
], DeleteServerResponseDto.prototype, "status", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({ description: 'Resource type being deleted' }),
    __metadata("design:type", String)
], DeleteServerResponseDto.prototype, "resource_type", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({ enum: cloud_provider_enum_1.CloudProvider, description: 'Cloud provider' }),
    __metadata("design:type", String)
], DeleteServerResponseDto.prototype, "provider", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({ description: 'Server ID being deleted' }),
    __metadata("design:type", String)
], DeleteServerResponseDto.prototype, "resource_id", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({ description: 'Estimated time for deletion' }),
    __metadata("design:type", String)
], DeleteServerResponseDto.prototype, "estimated_duration", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({ description: 'Deletion initiated timestamp' }),
    __metadata("design:type", Date)
], DeleteServerResponseDto.prototype, "created_at", void 0);
