Download src/interfaces/repository/IProjectBandwidthRepository.ts from lynfera/api: direct link, hf CLI and curl.
- Browser
- Download file 576 Bytes
-
https://huggingface.co/spaces/lynfera/api/resolve/c044fc22a5e2de895ca9282affe402eeab2b7f3d/src/interfaces/repository/IProjectBandwidthRepository.ts
- Command line
-
hf download hf://spaces/lynfera/api@c044fc22a5e2de895ca9282affe402eeab2b7f3d/src/interfaces/repository/IProjectBandwidthRepository.ts
-
curl -L -o IProjectBandwidthRepository.ts https://huggingface.co/spaces/lynfera/api/resolve/c044fc22a5e2de895ca9282affe402eeab2b7f3d/src/interfaces/repository/IProjectBandwidthRepository.ts
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>; | |
| } | |