"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.CreateDTO = void 0;
const class_validator_1 = require("class-validator");
class CreateDTO {
}
exports.CreateDTO = CreateDTO;
__decorate([
    (0, class_validator_1.IsString)({ message: (args) => `${args.property} must be a string` }),
    (0, class_validator_1.Length)(0, 255, { message: (args) => `${args.property} must be at most 255 characters long` }),
    __metadata("design:type", String)
], CreateDTO.prototype, "slug", void 0);
__decorate([
    (0, class_validator_1.IsString)({ message: (args) => `${args.property} must be a string` }),
    (0, class_validator_1.IsIn)(['string', 'array', 'number', 'boolean', 'json', 'secret'], {
        message: (args) => `${args.property} must be one of: string, array, number, boolean, json, secret`
    }),
    __metadata("design:type", String)
], CreateDTO.prototype, "type", void 0);
__decorate([
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsString)({ message: (args) => `${args.property} must be a string` }),
    (0, class_validator_1.IsIn)(['input-text', 'input-number', 'input-secret', 'input-file', 'input-tags', 'combobox', 'radio', 'color-picker', 'switch', 'checkbox'], {
        message: (args) => `${args.property} must be one of: input-text, input-number, input-secret, input-file, input-tags, combobox, radio, color-picker, switch, checkbox`
    }),
    __metadata("design:type", String)
], CreateDTO.prototype, "component", void 0);
__decorate([
    (0, class_validator_1.IsString)({ message: (args) => `${args.property} must be a string` }),
    (0, class_validator_1.Length)(0, 1023, { message: (args) => `${args.property} must be at most 1023 characters long` }),
    __metadata("design:type", String)
], CreateDTO.prototype, "value", void 0);
__decorate([
    (0, class_validator_1.IsBoolean)({ message: (args) => `${args.property} must be a boolean` }),
    __metadata("design:type", Boolean)
], CreateDTO.prototype, "user_override", void 0);
__decorate([
    (0, class_validator_1.IsInt)({ message: (args) => `${args.property} must be an integer` }),
    __metadata("design:type", Number)
], CreateDTO.prototype, "group_id", void 0);
//# sourceMappingURL=create.dto.js.map