"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.BasicFilterDto = exports.SoftDeleteFilter = void 0;
const openapi = require("@nestjs/swagger");
const swagger_1 = require("@nestjs/swagger");
const class_validator_1 = require("class-validator");
const pagination_query_dto_1 = require("./pagination-query.dto");
const basic_group_filters_dto_1 = require("./basic-group-filters.dto");
var SoftDeleteFilter;
(function (SoftDeleteFilter) {
    SoftDeleteFilter["INCLUSIVE"] = "inclusive";
    SoftDeleteFilter["EXCLUSIVE"] = "exclusive";
})(SoftDeleteFilter || (exports.SoftDeleteFilter = SoftDeleteFilter = {}));
class BasicFilterDto extends pagination_query_dto_1.PaginationQueryDto {
    static _OPENAPI_METADATA_FACTORY() {
        return { fields: { required: false, type: () => [String] }, sort: { required: false, type: () => [String] }, groupBy: { required: false, type: () => [String] }, aggregates: { required: false, type: () => [String] }, populate: { required: false, type: () => [String] }, populateMedia: { required: false, type: () => [String] }, showSoftDeleted: { required: false, enum: require("./basic-filters.dto").SoftDeleteFilter }, populateGroup: { required: false, type: () => Boolean }, groupFilter: { required: false, type: () => require("./basic-group-filters.dto").BasicGroupFilterDto }, locale: { required: false, type: () => String }, status: { required: false, type: () => String } };
    }
}
exports.BasicFilterDto = BasicFilterDto;
__decorate([
    (0, class_validator_1.IsOptional)(),
    (0, swagger_1.ApiProperty)({ description: "Fields" }),
    __metadata("design:type", Array)
], BasicFilterDto.prototype, "fields", void 0);
__decorate([
    (0, class_validator_1.IsOptional)(),
    (0, swagger_1.ApiProperty)({ description: "sort" }),
    __metadata("design:type", Array)
], BasicFilterDto.prototype, "sort", void 0);
__decorate([
    (0, class_validator_1.IsOptional)(),
    (0, swagger_1.ApiProperty)({ description: "groupBy" }),
    __metadata("design:type", Array)
], BasicFilterDto.prototype, "groupBy", void 0);
__decorate([
    (0, class_validator_1.IsOptional)(),
    (0, swagger_1.ApiProperty)({ description: "aggregates" }),
    __metadata("design:type", Array)
], BasicFilterDto.prototype, "aggregates", void 0);
__decorate([
    (0, class_validator_1.IsOptional)(),
    (0, swagger_1.ApiProperty)({ description: "populate" }),
    __metadata("design:type", Array)
], BasicFilterDto.prototype, "populate", void 0);
__decorate([
    (0, class_validator_1.IsOptional)(),
    (0, swagger_1.ApiProperty)({ description: "populateMedia" }),
    __metadata("design:type", Array)
], BasicFilterDto.prototype, "populateMedia", void 0);
__decorate([
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsEnum)(SoftDeleteFilter),
    (0, swagger_1.ApiProperty)({
        description: "showSoftDeleted",
        enum: SoftDeleteFilter,
    }),
    __metadata("design:type", String)
], BasicFilterDto.prototype, "showSoftDeleted", void 0);
__decorate([
    (0, class_validator_1.IsOptional)(),
    (0, swagger_1.ApiProperty)({ description: "populateGroup" }),
    __metadata("design:type", Boolean)
], BasicFilterDto.prototype, "populateGroup", void 0);
__decorate([
    (0, class_validator_1.IsOptional)(),
    (0, swagger_1.ApiProperty)({ description: "groupFilter" }),
    __metadata("design:type", basic_group_filters_dto_1.BasicGroupFilterDto)
], BasicFilterDto.prototype, "groupFilter", void 0);
__decorate([
    (0, class_validator_1.IsOptional)(),
    (0, swagger_1.ApiProperty)({ description: "locale" }),
    __metadata("design:type", String)
], BasicFilterDto.prototype, "locale", void 0);
__decorate([
    (0, class_validator_1.IsOptional)(),
    (0, swagger_1.ApiProperty)({ description: "status publish draft" }),
    __metadata("design:type", String)
], BasicFilterDto.prototype, "status", void 0);
//# sourceMappingURL=basic-filters.dto.js.map