UNPKG

@kenniy/godeye-data-contracts

Version:

Enterprise-grade base repository architecture for GOD-EYE microservices with zero overhead and maximum code reuse

21 lines (20 loc) 663 B
"use strict"; /** * Pagination constants for consistent pagination across all services */ Object.defineProperty(exports, "__esModule", { value: true }); exports.PAGINATION_MESSAGES = exports.PAGINATION_DEFAULTS = void 0; exports.PAGINATION_DEFAULTS = { DEFAULT_LIMIT: 10, MAX_LIMIT: 100, DEFAULT_PAGE: 1, MIN_PAGE: 1, MIN_LIMIT: 1, }; exports.PAGINATION_MESSAGES = { INVALID_LIMIT: 'Limit must be between 1 and 100', INVALID_PAGE: 'Page must be greater than 0', NO_RESULTS: 'No results found', LIMIT_EXCEEDED: 'Limit exceeds maximum allowed value', INVALID_PAGINATION_PARAMS: 'Invalid pagination parameters provided', };