"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.DuplicateResolveDto = exports.DuplicateResolveGroupDto = exports.DuplicateResponseDto = void 0;
const openapi = require("@nestjs/swagger");
const swagger_1 = require("@nestjs/swagger");
const class_transformer_1 = require("class-transformer");
const class_validator_1 = require("class-validator");
const validation_1 = require("../validation");
class DuplicateResponseDto {
    duplicateId;
    assets;
    suggestedKeepAssetIds;
    static _OPENAPI_METADATA_FACTORY() {
        return { duplicateId: { required: true, type: () => String }, assets: { required: true, type: () => [require("./asset-response.dto").AssetResponseDto] }, suggestedKeepAssetIds: { required: true, type: () => [String] } };
    }
}
exports.DuplicateResponseDto = DuplicateResponseDto;
__decorate([
    (0, swagger_1.ApiProperty)({ description: 'Duplicate group ID' }),
    __metadata("design:type", String)
], DuplicateResponseDto.prototype, "duplicateId", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({ description: 'Duplicate assets' }),
    __metadata("design:type", Array)
], DuplicateResponseDto.prototype, "assets", void 0);
__decorate([
    (0, validation_1.ValidateUUID)({ each: true, description: 'Suggested asset IDs to keep based on file size and EXIF data' }),
    __metadata("design:type", Array)
], DuplicateResponseDto.prototype, "suggestedKeepAssetIds", void 0);
class DuplicateResolveGroupDto {
    duplicateId;
    keepAssetIds;
    trashAssetIds;
    static _OPENAPI_METADATA_FACTORY() {
        return { duplicateId: { required: true, type: () => String }, keepAssetIds: { required: true, type: () => [String] }, trashAssetIds: { required: true, type: () => [String] } };
    }
}
exports.DuplicateResolveGroupDto = DuplicateResolveGroupDto;
__decorate([
    (0, validation_1.ValidateUUID)(),
    __metadata("design:type", String)
], DuplicateResolveGroupDto.prototype, "duplicateId", void 0);
__decorate([
    (0, validation_1.ValidateUUID)({ each: true, description: 'Asset IDs to keep' }),
    __metadata("design:type", Array)
], DuplicateResolveGroupDto.prototype, "keepAssetIds", void 0);
__decorate([
    (0, validation_1.ValidateUUID)({ each: true, description: 'Asset IDs to trash or delete' }),
    __metadata("design:type", Array)
], DuplicateResolveGroupDto.prototype, "trashAssetIds", void 0);
class DuplicateResolveDto {
    groups;
    static _OPENAPI_METADATA_FACTORY() {
        return { groups: { required: true, type: () => [require("./duplicate.dto").DuplicateResolveGroupDto], minItems: 1 } };
    }
}
exports.DuplicateResolveDto = DuplicateResolveDto;
__decorate([
    (0, swagger_1.ApiProperty)({ description: 'List of duplicate groups to resolve' }),
    (0, class_validator_1.ValidateNested)({ each: true }),
    (0, class_validator_1.IsArray)(),
    (0, class_transformer_1.Type)(() => DuplicateResolveGroupDto),
    (0, class_validator_1.ArrayMinSize)(1),
    __metadata("design:type", Array)
], DuplicateResolveDto.prototype, "groups", void 0);
//# sourceMappingURL=duplicate.dto.js.map