DTO compartido para la metadata de listados paginados: total, página, límite, total de páginas y disponibilidad de navegación.
pagination-meta.dto.ts
import { ApiProperty } from '@nestjs/swagger';import { Trace } from 'traceflow';@Trace({ type: 'validation' })export class PaginationMetaDto { @ApiProperty({ description: 'Total number of records', example: 100, }) total: number; @ApiProperty({ description: 'Current page number', example: 1, }) page: number; @ApiProperty({ description: 'Number of items per page', example: 10, }) limit: number; @ApiProperty({ description: 'Total number of pages', example: 10, }) totalPages: number; @ApiProperty({ description: 'Indicates if there is a next page', example: true, }) hasNextPage: boolean; @ApiProperty({ description: 'Indicates if there is a previous page', example: false, }) hasPreviousPage: boolean;}