/** * This class stores pagination data. It limits the results for queries in the DAO * and Search objects and also counts the total number of results that are returned. * @author Alex Bogdanovski * @property {Number} count the total number of results * @property {String} lastKey reserved use * @property {Array} select selected fields filter for returning only part of an object */ export default class Pager { page: number; count: number; sortby: string | null; desc: boolean; limit: number; name: string; /** @type {string|null} */ lastKey: string | null; /** @type {string[]|null} */ select: string[] | null; /** * @param {Number} [page] page number to start from * @param {String|null} [sortby] sort by field * @param {Boolean} [desc] sort in descending or ascending order * @param {Number} [limit] limits the results */ constructor(page?: number, sortby?: string | null, desc?: boolean, limit?: number); }