"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.CreateTicketWithMessageDto = void 0;
const class_validator_1 = require("class-validator");
const swagger_1 = require("@nestjs/swagger");
const ticket_entity_1 = require("./ticket.entity");
class CreateTicketWithMessageDto {
}
exports.CreateTicketWithMessageDto = CreateTicketWithMessageDto;
__decorate([
    (0, swagger_1.ApiProperty)({ example: 'customer@mail.com' }),
    (0, class_validator_1.IsEmail)(),
    __metadata("design:type", String)
], CreateTicketWithMessageDto.prototype, "email", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({ example: 'Product upload issues' }),
    (0, class_validator_1.IsString)(),
    __metadata("design:type", String)
], CreateTicketWithMessageDto.prototype, "subject", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({ example: 'ticketshowId' }),
    (0, class_validator_1.IsString)(),
    __metadata("design:type", String)
], CreateTicketWithMessageDto.prototype, "ticketshowId", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({ example: 'User cannot upload product images.' }),
    (0, class_validator_1.IsString)(),
    __metadata("design:type", String)
], CreateTicketWithMessageDto.prototype, "description", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({ example: 'Presto Tyres' }),
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsString)(),
    __metadata("design:type", String)
], CreateTicketWithMessageDto.prototype, "vendorName", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({ enum: ticket_entity_1.TicketPriority, example: ticket_entity_1.TicketPriority.MEDIUM }),
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsEnum)(ticket_entity_1.TicketPriority),
    __metadata("design:type", String)
], CreateTicketWithMessageDto.prototype, "priority", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({ enum: ticket_entity_1.TicketStatus, example: ticket_entity_1.TicketStatus.OPEN, description: 'Initial status for the ticket' }),
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsEnum)(ticket_entity_1.TicketStatus),
    __metadata("design:type", String)
], CreateTicketWithMessageDto.prototype, "status", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({
        example: '9491d542-4b51-4f7b-8b42-35c72997fb3d',
        description: 'Optional user id of the creator',
    }),
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsString)(),
    __metadata("design:type", String)
], CreateTicketWithMessageDto.prototype, "userId", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({ example: 'Customer' }),
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsString)(),
    __metadata("design:type", String)
], CreateTicketWithMessageDto.prototype, "author", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({ example: 'Here is more info about the issue.' }),
    (0, class_validator_1.IsNotEmpty)(),
    (0, class_validator_1.IsString)(),
    __metadata("design:type", String)
], CreateTicketWithMessageDto.prototype, "message", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({
        type: [String],
        example: ['uploads/comments/img1.png', 'uploads/comments/img2.png'],
        description: 'Image paths returned from your image upload API',
    }),
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsArray)(),
    (0, class_validator_1.IsString)({ each: true }),
    __metadata("design:type", Array)
], CreateTicketWithMessageDto.prototype, "imagePaths", void 0);
//# sourceMappingURL=CreateTicketWithMessageDto.js.map