refactor(server): rename asset stack to stack (#10828)

This commit is contained in:
Jason Rasmussen
2024-07-05 09:08:36 -04:00
committed by GitHub
parent 23b3073687
commit eb1ba11d60
13 changed files with 68 additions and 70 deletions

View File

@@ -0,0 +1,11 @@
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>;
}