File

src/people/dtos/response/get-people.dto.ts

Description

Data Transfer Object for paginated response of people. This DTO extends the PaginationResponseDto with PersonDto as the type parameter. It is used to return a list of people with pagination information.

Extends

PaginationResponseDto

Index

Properties

Properties

data
Type : T[]
Decorators :
@ApiProperty({description: 'The data property contains the paginated data', type: 'array', items: undefined})
Inherited from PaginationResponseDto

The data property contains the paginated data.

links
Type : literal type
Decorators :
@ApiProperty({description: 'The links property contains information about the pagination links', type: 'object', properties: undefined})
Inherited from PaginationResponseDto

The links property contains information about the pagination links.

meta
Type : literal type
Decorators :
@ApiProperty({description: 'The meta property contains information about the pagination', type: 'object', properties: undefined})
Inherited from PaginationResponseDto

The meta property contains information about the pagination.

paginated
Inherited from PaginationResponseDto

The paginated property indicates whether the data is paginated or not. this is not a part of the response

import { PaginationResponseDto } from 'src/common/pagination/dtos/pagination.dto';
import { PersonDto } from '../helper/person.dto';

/**
 * Data Transfer Object for paginated response of people.
 * This DTO extends the PaginationResponseDto with PersonDto as the type parameter.
 * It is used to return a list of people with pagination information.
 */
export class GetPeopleRequestDto extends PaginationResponseDto<PersonDto> {}

results matching ""

    No results matching ""