2023-03-30 21:38:55 +02:00
|
|
|
import { SharedLinkEntity } from '@app/infra/entities';
|
2023-01-25 17:35:28 +01:00
|
|
|
|
|
|
|
export const ISharedLinkRepository = 'ISharedLinkRepository';
|
|
|
|
|
|
|
|
export interface ISharedLinkRepository {
|
|
|
|
getAll(userId: string): Promise<SharedLinkEntity[]>;
|
|
|
|
get(userId: string, id: string): Promise<SharedLinkEntity | null>;
|
2023-06-01 22:56:37 +02:00
|
|
|
getByKey(key: Buffer): Promise<SharedLinkEntity | null>;
|
2023-06-21 03:08:43 +02:00
|
|
|
create(entity: Partial<SharedLinkEntity>): Promise<SharedLinkEntity>;
|
2023-06-02 04:09:57 +02:00
|
|
|
update(entity: Partial<SharedLinkEntity>): Promise<SharedLinkEntity>;
|
2023-05-15 19:30:53 +02:00
|
|
|
remove(entity: SharedLinkEntity): Promise<void>;
|
2023-01-25 17:35:28 +01:00
|
|
|
}
|