"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getPaginator = void 0;
const collaterals_interface_1 = require("../interfaces/collaterals.interface");
const getPaginator = (request) => {
    const paginator = { ...collaterals_interface_1.DEFAULT_PAGINATOR };
    if (request.pageIndex) {
        paginator.pageIndex = +request.pageIndex;
    }
    if (request.pageSize) {
        paginator.pageSize = +request.pageSize;
    }
    return paginator;
};
exports.getPaginator = getPaginator;
