fork
Configure Feed
Select the types of activity you want to include in your feed.
A social knowledge tool for researchers built on ATProto
fork
Configure Feed
Select the types of activity you want to include in your feed.
1import { Result } from '../../../shared/core/Result';
2import { Card } from './Card';
3import { CardId } from './value-objects/CardId';
4import { CuratorId } from './value-objects/CuratorId';
5import { URL } from './value-objects/URL';
6
7export interface ICardRepository {
8 findById(id: CardId): Promise<Result<Card | null>>;
9 save(card: Card): Promise<Result<void>>;
10 delete(cardId: CardId): Promise<Result<void>>;
11 findUsersUrlCardByUrl(
12 url: URL,
13 curatorId: CuratorId,
14 ): Promise<Result<Card | null>>;
15}