UNPKG

@overture-stack/lyric

Version:
22 lines (21 loc) 1.1 kB
import { BaseDependencies } from '../config/config.js'; import { AuditFilterOptions, AuditRepositoryRecord } from '../utils/types.js'; declare const repository: (dependencies: BaseDependencies) => { /** * Returns all the records found on the the Audit table matching the Category ID, * and additional filters * @param categoryId Category ID to filter the Audit records * @param filterOptions Additional filters and pagination options * @returns */ getRecordsByCategoryIdAndOrganizationPaginated: (categoryId: number, filterOptions: AuditFilterOptions) => Promise<AuditRepositoryRecord[]>; /** * Returns the total number of records found on the the Audit table matching the Category ID, * and additional filters * @param {number} categoryId Category ID to filter the Audit records * @param {object} filterOptions Additional filters * @returns */ getTotalRecordsByCategoryIdAndOrganization: (categoryId: number, filterOptions: Omit<AuditFilterOptions, "page" | "pageSize">) => Promise<number>; }; export default repository;