A free and open source instant messaging and VoIP chat app built for friends, groups, and communities.
// SPDX-License-Identifier: AGPL-3.0-or-later
import type {AdminAuditLog} from '@app/api/admin/AdminRepository';
import type {
ISearchAdapter as SchemaISearchAdapter,
SearchResult as SchemaSearchResult,
} from '@fluxer/schema/src/contracts/search/SearchAdapterTypes';
import type {AuditLogSearchFilters, SearchableAuditLog} from '@fluxer/schema/src/contracts/search/SearchDocumentTypes';
export interface IAuditLogSearchService extends SchemaISearchAdapter<AuditLogSearchFilters, SearchableAuditLog> {
indexAuditLog(log: AdminAuditLog): Promise<void>;
indexAuditLogs(logs: Array<AdminAuditLog>): Promise<void>;
searchAuditLogs(
query: string,
filters: AuditLogSearchFilters,
options?: {
limit?: number;
offset?: number;
},
): Promise<SchemaSearchResult<SearchableAuditLog>>;
}