Spaces:
Sleeping

api / src /interfaces /repository /IProjectBandwidthRepository.ts
Amal Jose
added files
4e83772
Raw History Blame Contribute Delete
576 Bytes
import { IProject } from "@/models/Projects.js";
import { BandWidthWithProjectType } from "../service/IAnalyticsService.js";
export interface IProjectBandwidthRepository {
addBandwidth(projectWithSize: BandWidthWithProjectType): Promise<void>;
addProjectField(project: IProject): Promise<void>;
getUserMonthlyBandwidth(userId: string): Promise<number>;
getProjectMonthlyBandwidth(projectId: string, userId: string): Promise<number>;
getUserTotalBandwidth(userId: string): Promise<number>;
getProjectTotalBandwidth(projectId: string, userId: string): Promise<number>;
}