| 1 | export enum PaginationTypeEnum { |
| 2 | LIMIT_AND_OFFSET = 'limit', |
| 3 | TAKE_AND_SKIP = 'take', |
| 4 | } |
| 5 | |
| 6 | export interface IPaginationOptions { |
| 7 | page: number; |
| 8 | pageSize: number; |
| 9 | paginationType?: PaginationTypeEnum; |
| 10 | } |
| 11 | |
| 12 | export interface IPaginationMeta { |
| 13 | itemCount: number; |
| 14 | totalItems?: number; |
| 15 | itemsPerPage: number; |
| 16 | totalPages?: number; |
| 17 | currentPage: number; |
| 18 | } |
| 19 | |
| 20 | export interface IPaginationLinks { |
| 21 | first?: string; |
| 22 | previous?: string; |
| 23 | next?: string; |
| 24 | last?: string; |
| 25 | } |
| 26 |