"use strict";
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.AsyncOperationResponseDto = void 0;
const swagger_1 = require("@nestjs/swagger");
/**
 * Base DTO for async infrastructure operations
 *
 * Provides unified tracking interface for long-running operations across:
 * - Cluster creation/deletion
 * - Build agent provisioning
 * - Server creation/deletion
 * - Deployment operations
 *
 * This allows frontend to use a single component/hook for monitoring
 * any async infrastructure operation via the operation_id.
 */
class AsyncOperationResponseDto {
}
exports.AsyncOperationResponseDto = AsyncOperationResponseDto;
__decorate([
    (0, swagger_1.ApiProperty)({
        description: 'Operation ID for tracking progress via /api/v1/infrastructure/operations/:id',
        example: 'a7f8c3d2-1234-5678-90ab-cdef12345678',
    }),
    __metadata("design:type", String)
], AsyncOperationResponseDto.prototype, "operation_id", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({
        description: 'Created resource ID (cluster/agent/server)',
        example: 'b9e2d4f1-5678-1234-90ab-cdef87654321',
    }),
    __metadata("design:type", String)
], AsyncOperationResponseDto.prototype, "resource_id", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({
        description: 'Initial operation status',
        enum: ['pending'],
        example: 'pending',
    }),
    __metadata("design:type", String)
], AsyncOperationResponseDto.prototype, "status", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({
        description: 'Estimated time to complete the operation',
        example: '5-10 minutes',
    }),
    __metadata("design:type", String)
], AsyncOperationResponseDto.prototype, "estimated_duration", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({
        description: 'Timestamp when the operation was created',
        type: Date,
        example: '2025-11-09T10:30:00Z',
    }),
    __metadata("design:type", Date)
], AsyncOperationResponseDto.prototype, "created_at", void 0);
