import '../api/knowledge_api.dart'; import '../models/knowledge_item.dart'; class KnowledgeRepository { final KnowledgeApi _api; const KnowledgeRepository(this._api); Future<(List, int)> fetchIds({ String? noteType, List tags = const [], String sort = 'modified', String? q, int limit = 50, int offset = 0, }) => _api.fetchIds( noteType: noteType, tags: tags, sort: sort, q: q, limit: limit, offset: offset, ); Future> fetchBatch(List ids) => _api.fetchBatch(ids); Future> fetchCounts({List tags = const []}) => _api.fetchCounts(tags: tags); Future> fetchTags({String? noteType}) => _api.fetchTags(noteType: noteType); }