File

src/modules/http/entities/metadata/metadata-pagination.entity.intf.ts

Description

Contains all the metadata related to the collection of items in a Collection response.

Index

Properties

Properties

currentPage
currentPage: number
Type : number

The current page.

limit
limit: number
Type : number

Maximum number of items to return.

nextOffset
nextOffset: number
Type : number

The next offset (if there is none).

offset
offset: number
Type : number

Index at which to begin the extraction of the collection to be returned.

pageCount
pageCount: number
Type : number

The total number of pages.

previousOffset
previousOffset: number
Type : number

The previous offset (if there is none).

totalCount
totalCount: number
Type : number

The total number of elements in the collection.

export interface StarkPaginationMetadata {
	/**
	 * Index at which to begin the extraction of the collection to be returned.
	 */
	offset: number;

	/**
	 * Maximum number of items to return.
	 */
	limit: number;

	/**
	 * The previous offset (if there is none).
	 */
	previousOffset: number;

	/**
	 * The next offset (if there is none).
	 */
	nextOffset: number;

	/**
	 * The current page.
	 */
	currentPage: number;

	/**
	 * The total number of pages.
	 */
	pageCount: number;

	/**
	 * The total number of elements in the collection.
	 */
	totalCount: number;
}

results matching ""

    No results matching ""