"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.RefreshTokenDto = exports.LoginDto = exports.RegisterDto = void 0; const swagger_1 = require("@nestjs/swagger"); const class_validator_1 = require("class-validator"); class RegisterDto { } exports.RegisterDto = RegisterDto; __decorate([ (0, swagger_1.ApiProperty)({ description: 'Nombre del negocio', example: 'Tacos El Güero', minLength: 2, maxLength: 100, }), (0, class_validator_1.IsString)(), (0, class_validator_1.IsNotEmpty)(), (0, class_validator_1.MinLength)(2), (0, class_validator_1.MaxLength)(100), __metadata("design:type", String) ], RegisterDto.prototype, "name", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: 'Nombre del propietario', example: 'Juan Pérez', minLength: 2, maxLength: 100, }), (0, class_validator_1.IsString)(), (0, class_validator_1.IsNotEmpty)(), (0, class_validator_1.MinLength)(2), (0, class_validator_1.MaxLength)(100), __metadata("design:type", String) ], RegisterDto.prototype, "ownerName", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: 'Tipo de negocio', example: 'tiendita', enum: ['tiendita', 'fonda', 'taqueria', 'abarrotes', 'tortilleria', 'otro'], }), (0, class_validator_1.IsString)(), (0, class_validator_1.IsNotEmpty)(), (0, class_validator_1.MaxLength)(50), __metadata("design:type", String) ], RegisterDto.prototype, "businessType", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: 'Teléfono (10 dígitos)', example: '5512345678', }), (0, class_validator_1.IsString)(), (0, class_validator_1.IsNotEmpty)(), (0, class_validator_1.Matches)(/^[0-9]{10}$/, { message: 'El teléfono debe tener exactamente 10 dígitos', }), __metadata("design:type", String) ], RegisterDto.prototype, "phone", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: 'PIN de acceso rápido (4-6 dígitos)', example: '1234', minLength: 4, maxLength: 6, }), (0, class_validator_1.IsString)(), (0, class_validator_1.IsNotEmpty)(), (0, class_validator_1.Matches)(/^[0-9]{4,6}$/, { message: 'El PIN debe tener entre 4 y 6 dígitos', }), __metadata("design:type", String) ], RegisterDto.prototype, "pin", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: 'Número de WhatsApp (opcional)', example: '5512345678', required: false, }), (0, class_validator_1.IsOptional)(), (0, class_validator_1.IsString)(), (0, class_validator_1.Matches)(/^[0-9]{10}$/, { message: 'El WhatsApp debe tener exactamente 10 dígitos', }), __metadata("design:type", String) ], RegisterDto.prototype, "whatsapp", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: 'Email (opcional)', example: 'juan@ejemplo.com', required: false, }), (0, class_validator_1.IsOptional)(), (0, class_validator_1.IsEmail)({}, { message: 'Email inválido' }), __metadata("design:type", String) ], RegisterDto.prototype, "email", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: 'Dirección del negocio (opcional)', example: 'Calle Principal #123, Colonia Centro', required: false, }), (0, class_validator_1.IsOptional)(), (0, class_validator_1.IsString)(), (0, class_validator_1.MaxLength)(500), __metadata("design:type", String) ], RegisterDto.prototype, "address", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: 'Ciudad (opcional)', example: 'Ciudad de México', required: false, }), (0, class_validator_1.IsOptional)(), (0, class_validator_1.IsString)(), (0, class_validator_1.MaxLength)(50), __metadata("design:type", String) ], RegisterDto.prototype, "city", void 0); class LoginDto { } exports.LoginDto = LoginDto; __decorate([ (0, swagger_1.ApiProperty)({ description: 'Teléfono registrado', example: '5512345678', }), (0, class_validator_1.IsString)(), (0, class_validator_1.IsNotEmpty)(), (0, class_validator_1.Matches)(/^[0-9]{10}$/, { message: 'El teléfono debe tener exactamente 10 dígitos', }), __metadata("design:type", String) ], LoginDto.prototype, "phone", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: 'PIN de acceso', example: '1234', }), (0, class_validator_1.IsString)(), (0, class_validator_1.IsNotEmpty)(), (0, class_validator_1.Matches)(/^[0-9]{4,6}$/, { message: 'El PIN debe tener entre 4 y 6 dígitos', }), __metadata("design:type", String) ], LoginDto.prototype, "pin", void 0); class RefreshTokenDto { } exports.RefreshTokenDto = RefreshTokenDto; __decorate([ (0, swagger_1.ApiProperty)({ description: 'Token de refresco', }), (0, class_validator_1.IsString)(), (0, class_validator_1.IsNotEmpty)(), __metadata("design:type", String) ], RefreshTokenDto.prototype, "refreshToken", void 0); //# sourceMappingURL=register.dto.js.map