import { BaseResource } from '@gitbeaker/requester-utils'; import { RequestHelper, endpoint } from '../infrastructure'; import type { GitlabAPIResponse, ShowExpanded, Sudo } from '../infrastructure'; export interface ProjectStatisticSchema extends Record { fetches: { total: number; days: { count: number; date: string }[]; }; } export class ProjectStatistics extends BaseResource { show( projectId: string | number, options?: Sudo & ShowExpanded, ): Promise> { return RequestHelper.get()( this, endpoint`projects/${projectId}/statistics`, options as Sudo & ShowExpanded, ); } }