UNPKG

@anpdgovbr/shared-types

Version:

Biblioteca central de tipos TypeScript compartilhados para os projetos da ANPD (BETA)

32 lines (31 loc) 2.06 kB
"use strict"; /** * @fileoverview * Exportação centralizada das interfaces compartilhadas do sistema. * * @remarks * Este arquivo facilita a importação das interfaces em outros módulos, permitindo * importações simplificadas como `import { BaseQueryParams } from '@/interfaces'`. * * @author @lucianoedipo * @since 2025 */ Object.defineProperty(exports, "__esModule", { value: true }); exports.createEmptyPaginatedResponse = exports.getPageRange = exports.isValidPage = exports.calculateOffset = exports.createPaginatedResponse = exports.validatePaginationParams = exports.calculatePaginationMeta = void 0; // Pagination helpers /** * Metadados de paginação e utilitários associados. * * @remarks * Exporta o tipo `PaginationMeta` e diferentes helpers para calcular meta de paginação, * validar parâmetros, construir respostas paginadas e utilitários auxiliares como * cálculo de offset e verificação de páginas válidas. */ var pagination_helpers_1 = require("./pagination.helpers"); Object.defineProperty(exports, "calculatePaginationMeta", { enumerable: true, get: function () { return pagination_helpers_1.calculatePaginationMeta; } }); Object.defineProperty(exports, "validatePaginationParams", { enumerable: true, get: function () { return pagination_helpers_1.validatePaginationParams; } }); Object.defineProperty(exports, "createPaginatedResponse", { enumerable: true, get: function () { return pagination_helpers_1.createPaginatedResponse; } }); Object.defineProperty(exports, "calculateOffset", { enumerable: true, get: function () { return pagination_helpers_1.calculateOffset; } }); Object.defineProperty(exports, "isValidPage", { enumerable: true, get: function () { return pagination_helpers_1.isValidPage; } }); Object.defineProperty(exports, "getPageRange", { enumerable: true, get: function () { return pagination_helpers_1.getPageRange; } }); Object.defineProperty(exports, "createEmptyPaginatedResponse", { enumerable: true, get: function () { return pagination_helpers_1.createEmptyPaginatedResponse; } });