"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.CreateDashboardQuestionSqlDatasetConfigDto = void 0;
const openapi = require("@nestjs/swagger");
const swagger_1 = require("@nestjs/swagger");
const class_validator_1 = require("class-validator");
const class_validator_2 = require("class-validator");
class CreateDashboardQuestionSqlDatasetConfigDto {
    static _OPENAPI_METADATA_FACTORY() {
        return { datasetName: { required: true, type: () => String }, datasetDisplayName: { required: true, type: () => String }, description: { required: true, type: () => String }, sql: { required: true, type: () => String }, labelColumnName: { required: true, type: () => String }, valueColumnName: { required: true, type: () => String }, questionId: { required: true, type: () => Number }, questionUserKey: { required: true, type: () => String }, options: { required: true, type: () => Object } };
    }
}
exports.CreateDashboardQuestionSqlDatasetConfigDto = CreateDashboardQuestionSqlDatasetConfigDto;
__decorate([
    (0, class_validator_2.IsNotEmpty)(),
    (0, class_validator_1.IsString)(),
    (0, swagger_1.ApiProperty)(),
    __metadata("design:type", String)
], CreateDashboardQuestionSqlDatasetConfigDto.prototype, "datasetName", void 0);
__decorate([
    (0, class_validator_2.IsNotEmpty)(),
    (0, class_validator_1.IsString)(),
    (0, swagger_1.ApiProperty)({ description: "This is the display name for the dataset configuration, which can be used in UI components to represent the dataset in a user-friendly manner." }),
    __metadata("design:type", String)
], CreateDashboardQuestionSqlDatasetConfigDto.prototype, "datasetDisplayName", void 0);
__decorate([
    (0, class_validator_2.IsOptional)(),
    (0, class_validator_1.IsString)(),
    (0, swagger_1.ApiProperty)({ description: "This is a description of the dataset configuration, providing context and details about its purpose." }),
    __metadata("design:type", String)
], CreateDashboardQuestionSqlDatasetConfigDto.prototype, "description", void 0);
__decorate([
    (0, class_validator_2.IsNotEmpty)(),
    (0, class_validator_1.IsString)(),
    (0, swagger_1.ApiProperty)(),
    __metadata("design:type", String)
], CreateDashboardQuestionSqlDatasetConfigDto.prototype, "sql", void 0);
__decorate([
    (0, class_validator_2.IsNotEmpty)(),
    (0, class_validator_1.IsString)(),
    (0, swagger_1.ApiProperty)(),
    __metadata("design:type", String)
], CreateDashboardQuestionSqlDatasetConfigDto.prototype, "labelColumnName", void 0);
__decorate([
    (0, class_validator_2.IsNotEmpty)(),
    (0, class_validator_1.IsString)(),
    (0, swagger_1.ApiProperty)(),
    __metadata("design:type", String)
], CreateDashboardQuestionSqlDatasetConfigDto.prototype, "valueColumnName", void 0);
__decorate([
    (0, class_validator_2.IsOptional)(),
    (0, class_validator_2.IsInt)(),
    (0, swagger_1.ApiProperty)({ description: "Related Question Model" }),
    __metadata("design:type", Number)
], CreateDashboardQuestionSqlDatasetConfigDto.prototype, "questionId", void 0);
__decorate([
    (0, class_validator_1.IsString)(),
    (0, class_validator_2.IsOptional)(),
    (0, swagger_1.ApiProperty)({ description: "Related Question Model" }),
    __metadata("design:type", String)
], CreateDashboardQuestionSqlDatasetConfigDto.prototype, "questionUserKey", void 0);
__decorate([
    (0, class_validator_2.IsOptional)(),
    (0, class_validator_2.IsJSON)(),
    (0, swagger_1.ApiProperty)({ description: "This allows you to set the dataset options e.g border-color, background-color, etc. This is a JSON object that can be used to customize the dataset appearance or behavior in the UI." }),
    __metadata("design:type", Object)
], CreateDashboardQuestionSqlDatasetConfigDto.prototype, "options", void 0);
//# sourceMappingURL=create-dashboard-question-sql-dataset-config.dto.js.map