"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.PaginationDto = exports.FilterDto = void 0;
const class_validator_1 = require("class-validator");
const class_validator_jsonschema_1 = require("class-validator-jsonschema");
class FilterDto {
    blockHeight;
    version;
    status;
}
exports.FilterDto = FilterDto;
__decorate([
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsNumber)(),
    (0, class_validator_jsonschema_1.JSONSchema)({ description: 'Filter events by block height', example: 19000000 }),
    __metadata("design:type", Number)
], FilterDto.prototype, "blockHeight", void 0);
__decorate([
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsNumber)(),
    (0, class_validator_jsonschema_1.JSONSchema)({ description: 'Filter events by version number', example: 5 }),
    __metadata("design:type", Number)
], FilterDto.prototype, "version", void 0);
__decorate([
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsString)(),
    (0, class_validator_jsonschema_1.JSONSchema)({ description: 'Filter events by status', example: 'PUBLISHED' }),
    __metadata("design:type", String)
], FilterDto.prototype, "status", void 0);
class PaginationDto {
    limit;
    offset;
}
exports.PaginationDto = PaginationDto;
__decorate([
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsNumber)(),
    (0, class_validator_1.IsPositive)(),
    (0, class_validator_jsonschema_1.JSONSchema)({ description: 'Number of items to return', default: 10, example: 10, minimum: 1, maximum: 1000 }),
    __metadata("design:type", Number)
], PaginationDto.prototype, "limit", void 0);
__decorate([
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsNumber)(),
    (0, class_validator_1.Min)(0),
    (0, class_validator_jsonschema_1.JSONSchema)({ description: 'Number of items to skip', default: 0, example: 0, minimum: 0 }),
    __metadata("design:type", Number)
], PaginationDto.prototype, "offset", void 0);
