template-saas/apps/backend/dist/modules/feature-flags/dto/set-tenant-flag.dto.js
rckrdmrd 26f0e52ca7 feat: Initial commit - template-saas
Template base para proyectos SaaS multi-tenant.

Estructura inicial:
- apps/backend (NestJS API)
- apps/frontend (React/Vite)
- apps/database (PostgreSQL DDL)
- docs/ (Documentación)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-07 04:41:24 -06:00

74 lines
3.3 KiB
JavaScript

"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.SetUserFlagDto = exports.SetTenantFlagDto = void 0;
const class_validator_1 = require("class-validator");
const swagger_1 = require("@nestjs/swagger");
class SetTenantFlagDto {
constructor() {
this.is_enabled = true;
}
}
exports.SetTenantFlagDto = SetTenantFlagDto;
__decorate([
(0, swagger_1.ApiProperty)({ description: 'Flag ID' }),
(0, class_validator_1.IsUUID)(),
__metadata("design:type", String)
], SetTenantFlagDto.prototype, "flag_id", void 0);
__decorate([
(0, swagger_1.ApiPropertyOptional)({ description: 'Is flag enabled for this tenant' }),
(0, class_validator_1.IsOptional)(),
(0, class_validator_1.IsBoolean)(),
__metadata("design:type", Boolean)
], SetTenantFlagDto.prototype, "is_enabled", void 0);
__decorate([
(0, swagger_1.ApiPropertyOptional)({ description: 'Custom value for this tenant' }),
(0, class_validator_1.IsOptional)(),
__metadata("design:type", Object)
], SetTenantFlagDto.prototype, "value", void 0);
__decorate([
(0, swagger_1.ApiPropertyOptional)({ description: 'Additional metadata' }),
(0, class_validator_1.IsOptional)(),
__metadata("design:type", Object)
], SetTenantFlagDto.prototype, "metadata", void 0);
class SetUserFlagDto {
constructor() {
this.is_enabled = true;
}
}
exports.SetUserFlagDto = SetUserFlagDto;
__decorate([
(0, swagger_1.ApiProperty)({ description: 'Flag ID' }),
(0, class_validator_1.IsUUID)(),
__metadata("design:type", String)
], SetUserFlagDto.prototype, "flag_id", void 0);
__decorate([
(0, swagger_1.ApiProperty)({ description: 'User ID' }),
(0, class_validator_1.IsUUID)(),
__metadata("design:type", String)
], SetUserFlagDto.prototype, "user_id", void 0);
__decorate([
(0, swagger_1.ApiPropertyOptional)({ description: 'Is flag enabled for this user' }),
(0, class_validator_1.IsOptional)(),
(0, class_validator_1.IsBoolean)(),
__metadata("design:type", Boolean)
], SetUserFlagDto.prototype, "is_enabled", void 0);
__decorate([
(0, swagger_1.ApiPropertyOptional)({ description: 'Custom value for this user' }),
(0, class_validator_1.IsOptional)(),
__metadata("design:type", Object)
], SetUserFlagDto.prototype, "value", void 0);
__decorate([
(0, swagger_1.ApiPropertyOptional)({ description: 'Additional metadata' }),
(0, class_validator_1.IsOptional)(),
__metadata("design:type", Object)
], SetUserFlagDto.prototype, "metadata", void 0);
//# sourceMappingURL=set-tenant-flag.dto.js.map