"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.UpdateDashboardQuestionSqlDatasetConfigDto = void 0;
const openapi = require("@nestjs/swagger");
const class_validator_1 = require("class-validator");
const swagger_1 = require("@nestjs/swagger");
class UpdateDashboardQuestionSqlDatasetConfigDto {
    static _OPENAPI_METADATA_FACTORY() {
        return { id: { required: true, type: () => Number }, 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.UpdateDashboardQuestionSqlDatasetConfigDto = UpdateDashboardQuestionSqlDatasetConfigDto;
__decorate([
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsInt)(),
    __metadata("design:type", Number)
], UpdateDashboardQuestionSqlDatasetConfigDto.prototype, "id", void 0);
__decorate([
    (0, class_validator_1.IsNotEmpty)(),
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsString)(),
    (0, swagger_1.ApiProperty)(),
    __metadata("design:type", String)
], UpdateDashboardQuestionSqlDatasetConfigDto.prototype, "datasetName", void 0);
__decorate([
    (0, class_validator_1.IsNotEmpty)(),
    (0, class_validator_1.IsOptional)(),
    (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)
], UpdateDashboardQuestionSqlDatasetConfigDto.prototype, "datasetDisplayName", void 0);
__decorate([
    (0, class_validator_1.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)
], UpdateDashboardQuestionSqlDatasetConfigDto.prototype, "description", void 0);
__decorate([
    (0, class_validator_1.IsNotEmpty)(),
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsString)(),
    (0, swagger_1.ApiProperty)(),
    __metadata("design:type", String)
], UpdateDashboardQuestionSqlDatasetConfigDto.prototype, "sql", void 0);
__decorate([
    (0, class_validator_1.IsNotEmpty)(),
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsString)(),
    (0, swagger_1.ApiProperty)(),
    __metadata("design:type", String)
], UpdateDashboardQuestionSqlDatasetConfigDto.prototype, "labelColumnName", void 0);
__decorate([
    (0, class_validator_1.IsNotEmpty)(),
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsString)(),
    (0, swagger_1.ApiProperty)(),
    __metadata("design:type", String)
], UpdateDashboardQuestionSqlDatasetConfigDto.prototype, "valueColumnName", void 0);
__decorate([
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsInt)(),
    (0, swagger_1.ApiProperty)({ description: "Related Question Model" }),
    __metadata("design:type", Number)
], UpdateDashboardQuestionSqlDatasetConfigDto.prototype, "questionId", void 0);
__decorate([
    (0, class_validator_1.IsString)(),
    (0, class_validator_1.IsOptional)(),
    (0, swagger_1.ApiProperty)({ description: "Related Question Model" }),
    __metadata("design:type", String)
], UpdateDashboardQuestionSqlDatasetConfigDto.prototype, "questionUserKey", void 0);
__decorate([
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.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)
], UpdateDashboardQuestionSqlDatasetConfigDto.prototype, "options", void 0);
//# sourceMappingURL=update-dashboard-question-sql-dataset-config.dto.js.map