UNPKG

@etherspot/data-utils

Version:
51 lines (50 loc) 1.99 kB
var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropNames = Object.getOwnPropertyNames; var __hasOwnProp = Object.prototype.hasOwnProperty; var __export = (target, all) => { for (var name in all) __defProp(target, name, { get: all[name], enumerable: true }); }; var __copyProps = (to, from, except, desc) => { if (from && typeof from === "object" || typeof from === "function") { for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); } return to; }; var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); var __decorateClass = (decorators, target, key, kind) => { var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target; for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result; if (kind && result) __defProp(target, key, result); return result; }; // src/sdk/dto/pagination.dto.ts var pagination_dto_exports = {}; __export(pagination_dto_exports, { PaginationDto: () => PaginationDto }); module.exports = __toCommonJS(pagination_dto_exports); var import_class_validator = require("class-validator"); var PaginationDto = class { constructor() { this.page = null; this.limit = null; } }; __decorateClass([ (0, import_class_validator.IsOptional)(), (0, import_class_validator.IsPositive)(), (0, import_class_validator.IsInt)() ], PaginationDto.prototype, "page", 2); __decorateClass([ (0, import_class_validator.IsOptional)(), (0, import_class_validator.IsPositive)(), (0, import_class_validator.IsInt)(), (0, import_class_validator.Max)(100) ], PaginationDto.prototype, "limit", 2); //# sourceMappingURL=pagination.dto.js.map