"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.CheckExistingAssetsResponseDto = exports.AssetBulkUploadCheckResponseDto = exports.AssetBulkUploadCheckResult = exports.AssetRejectReason = exports.AssetUploadAction = exports.AssetMediaResponseDto = exports.AssetMediaStatus = void 0;
const openapi = require("@nestjs/swagger");
const swagger_1 = require("@nestjs/swagger");
const validation_1 = require("../validation");
var AssetMediaStatus;
(function (AssetMediaStatus) {
    AssetMediaStatus["CREATED"] = "created";
    AssetMediaStatus["REPLACED"] = "replaced";
    AssetMediaStatus["DUPLICATE"] = "duplicate";
})(AssetMediaStatus || (exports.AssetMediaStatus = AssetMediaStatus = {}));
class AssetMediaResponseDto {
    status;
    id;
    static _OPENAPI_METADATA_FACTORY() {
        return { status: { required: true, enum: require("./asset-media-response.dto").AssetMediaStatus }, id: { required: true, type: () => String } };
    }
}
exports.AssetMediaResponseDto = AssetMediaResponseDto;
__decorate([
    (0, validation_1.ValidateEnum)({ enum: AssetMediaStatus, name: 'AssetMediaStatus', description: 'Upload status' }),
    __metadata("design:type", String)
], AssetMediaResponseDto.prototype, "status", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({ description: 'Asset media ID' }),
    __metadata("design:type", String)
], AssetMediaResponseDto.prototype, "id", void 0);
var AssetUploadAction;
(function (AssetUploadAction) {
    AssetUploadAction["ACCEPT"] = "accept";
    AssetUploadAction["REJECT"] = "reject";
})(AssetUploadAction || (exports.AssetUploadAction = AssetUploadAction = {}));
var AssetRejectReason;
(function (AssetRejectReason) {
    AssetRejectReason["DUPLICATE"] = "duplicate";
    AssetRejectReason["UNSUPPORTED_FORMAT"] = "unsupported-format";
})(AssetRejectReason || (exports.AssetRejectReason = AssetRejectReason = {}));
class AssetBulkUploadCheckResult {
    id;
    action;
    reason;
    assetId;
    isTrashed;
    static _OPENAPI_METADATA_FACTORY() {
        return { id: { required: true, type: () => String }, action: { required: true, enum: require("./asset-media-response.dto").AssetUploadAction }, reason: { required: false, enum: require("./asset-media-response.dto").AssetRejectReason }, assetId: { required: false, type: () => String }, isTrashed: { required: false, type: () => Boolean } };
    }
}
exports.AssetBulkUploadCheckResult = AssetBulkUploadCheckResult;
__decorate([
    (0, swagger_1.ApiProperty)({ description: 'Asset ID' }),
    __metadata("design:type", String)
], AssetBulkUploadCheckResult.prototype, "id", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({ description: 'Upload action', enum: AssetUploadAction }),
    __metadata("design:type", String)
], AssetBulkUploadCheckResult.prototype, "action", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({ description: 'Rejection reason if rejected', enum: AssetRejectReason }),
    __metadata("design:type", String)
], AssetBulkUploadCheckResult.prototype, "reason", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({ description: 'Existing asset ID if duplicate' }),
    __metadata("design:type", String)
], AssetBulkUploadCheckResult.prototype, "assetId", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({ description: 'Whether existing asset is trashed' }),
    __metadata("design:type", Boolean)
], AssetBulkUploadCheckResult.prototype, "isTrashed", void 0);
class AssetBulkUploadCheckResponseDto {
    results;
    static _OPENAPI_METADATA_FACTORY() {
        return { results: { required: true, type: () => [require("./asset-media-response.dto").AssetBulkUploadCheckResult] } };
    }
}
exports.AssetBulkUploadCheckResponseDto = AssetBulkUploadCheckResponseDto;
__decorate([
    (0, swagger_1.ApiProperty)({ description: 'Upload check results' }),
    __metadata("design:type", Array)
], AssetBulkUploadCheckResponseDto.prototype, "results", void 0);
class CheckExistingAssetsResponseDto {
    existingIds;
    static _OPENAPI_METADATA_FACTORY() {
        return { existingIds: { required: true, type: () => [String] } };
    }
}
exports.CheckExistingAssetsResponseDto = CheckExistingAssetsResponseDto;
__decorate([
    (0, swagger_1.ApiProperty)({ description: 'Existing asset IDs' }),
    __metadata("design:type", Array)
], CheckExistingAssetsResponseDto.prototype, "existingIds", void 0);
//# sourceMappingURL=asset-media-response.dto.js.map