mirror of
https://github.com/immich-app/immich.git
synced 2025-12-23 09:15:05 +03:00
12 lines
430 B
TypeScript
12 lines
430 B
TypeScript
|
|
import { StackEntity } from 'src/entities/stack.entity';
|
||
|
|
|
||
|
|
export const IStackRepository = 'IStackRepository';
|
||
|
|
|
||
|
|
export interface IStackRepository {
|
||
|
|
create(stack: Partial<StackEntity>): Promise<StackEntity>;
|
||
|
|
update(stack: Pick<StackEntity, 'id'> & Partial<StackEntity>): Promise<StackEntity>;
|
||
|
|
delete(id: string): Promise<void>;
|
||
|
|
getById(id: string): Promise<StackEntity | null>;
|
||
|
|
deleteAll(userId: string): Promise<void>;
|
||
|
|
}
|