2024-03-20 16:02:51 -05:00
|
|
|
import { AssetStackEntity } from 'src/entities/asset-stack.entity';
|
2024-01-27 18:52:14 +00:00
|
|
|
|
|
|
|
|
export const IAssetStackRepository = 'IAssetStackRepository';
|
|
|
|
|
|
|
|
|
|
export interface IAssetStackRepository {
|
|
|
|
|
create(assetStack: Partial<AssetStackEntity>): Promise<AssetStackEntity>;
|
|
|
|
|
update(asset: Pick<AssetStackEntity, 'id'> & Partial<AssetStackEntity>): Promise<AssetStackEntity>;
|
|
|
|
|
delete(id: string): Promise<void>;
|
|
|
|
|
getById(id: string): Promise<AssetStackEntity | null>;
|
2024-06-26 09:29:52 -04:00
|
|
|
deleteAll(userId: string): Promise<void>;
|
2024-01-27 18:52:14 +00:00
|
|
|
}
|