"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.UpdateComplaintStatusDto = exports.UpdateComplaintDto = exports.CreateComplaintDto = void 0;
const swagger_1 = require("@nestjs/swagger");
const class_validator_1 = require("class-validator");
const complaint_entity_1 = require("../../common/complaint/complaint.entity");
class CreateComplaintDto {
}
exports.CreateComplaintDto = CreateComplaintDto;
__decorate([
    (0, swagger_1.ApiProperty)({ example: "CPABCD12", description: "Unique complaint ID (CP + 6 alphanumeric)" }),
    (0, class_validator_1.IsString)(),
    (0, class_validator_1.IsNotEmpty)(),
    __metadata("design:type", String)
], CreateComplaintDto.prototype, "complaintId", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({ example: "user@example.com" }),
    (0, class_validator_1.IsEmail)(),
    (0, class_validator_1.IsNotEmpty)(),
    __metadata("design:type", String)
], CreateComplaintDto.prototype, "email", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({ example: "John Doe" }),
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsString)(),
    __metadata("design:type", String)
], CreateComplaintDto.prototype, "vendorName", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({ example: "42" }),
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsString)(),
    __metadata("design:type", String)
], CreateComplaintDto.prototype, "userId", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({ example: "Delay in service" }),
    (0, class_validator_1.IsString)(),
    (0, class_validator_1.IsNotEmpty)(),
    __metadata("design:type", String)
], CreateComplaintDto.prototype, "subject", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({ example: "The service was delayed by 3 days..." }),
    (0, class_validator_1.IsString)(),
    (0, class_validator_1.IsNotEmpty)(),
    __metadata("design:type", String)
], CreateComplaintDto.prototype, "description", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({ enum: complaint_entity_1.ComplaintCategory, example: complaint_entity_1.ComplaintCategory.SERVICE }),
    (0, class_validator_1.IsEnum)(complaint_entity_1.ComplaintCategory),
    __metadata("design:type", String)
], CreateComplaintDto.prototype, "category", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({ example: ["/uploads/img1.jpg"] }),
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsArray)(),
    __metadata("design:type", Array)
], CreateComplaintDto.prototype, "imagePaths", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({ enum: complaint_entity_1.ComplaintStatus, example: complaint_entity_1.ComplaintStatus.OPEN }),
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsEnum)(complaint_entity_1.ComplaintStatus),
    __metadata("design:type", String)
], CreateComplaintDto.prototype, "status", void 0);
class UpdateComplaintDto {
}
exports.UpdateComplaintDto = UpdateComplaintDto;
__decorate([
    (0, swagger_1.ApiProperty)({ example: "user@example.com" }),
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsEmail)(),
    __metadata("design:type", String)
], UpdateComplaintDto.prototype, "email", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({ example: "John Doe" }),
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsString)(),
    __metadata("design:type", String)
], UpdateComplaintDto.prototype, "vendorName", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({ example: "42" }),
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsString)(),
    __metadata("design:type", String)
], UpdateComplaintDto.prototype, "userId", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({ example: "Delay in service" }),
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsString)(),
    __metadata("design:type", String)
], UpdateComplaintDto.prototype, "subject", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({ example: "The service was delayed by 3 days..." }),
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsString)(),
    __metadata("design:type", String)
], UpdateComplaintDto.prototype, "description", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({ enum: complaint_entity_1.ComplaintCategory, example: complaint_entity_1.ComplaintCategory.SERVICE }),
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsEnum)(complaint_entity_1.ComplaintCategory),
    __metadata("design:type", String)
], UpdateComplaintDto.prototype, "category", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({ example: ["/uploads/img1.jpg"] }),
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsArray)(),
    __metadata("design:type", Array)
], UpdateComplaintDto.prototype, "imagePaths", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({ enum: complaint_entity_1.ComplaintStatus, example: complaint_entity_1.ComplaintStatus.OPEN }),
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsEnum)(complaint_entity_1.ComplaintStatus),
    __metadata("design:type", String)
], UpdateComplaintDto.prototype, "status", void 0);
class UpdateComplaintStatusDto {
}
exports.UpdateComplaintStatusDto = UpdateComplaintStatusDto;
__decorate([
    (0, swagger_1.ApiProperty)({ enum: complaint_entity_1.ComplaintStatus, example: complaint_entity_1.ComplaintStatus.RESOLVED }),
    (0, class_validator_1.IsEnum)(complaint_entity_1.ComplaintStatus, { message: "Status must be one of: open, in_progress, resolved, closed" }),
    __metadata("design:type", String)
], UpdateComplaintStatusDto.prototype, "status", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({ example: "Your complaint has been reviewed and resolved.", required: false }),
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsString)(),
    __metadata("design:type", String)
], UpdateComplaintStatusDto.prototype, "adminNote", void 0);
//# sourceMappingURL=complaint.dto.js.map