import type { BaseResourceOptions } from '@gitbeaker/requester-utils'; import { ResourceBadges } from '../templates'; import type { BadgeSchema, CondensedBadgeSchema, EditBadgeOptions, } from '../templates/ResourceBadges'; import type { GitlabAPIResponse, PaginationRequestOptions, PaginationTypes, ShowExpanded, Sudo, } from '../infrastructure'; export interface ProjectBadgeSchema extends BadgeSchema { kind: 'project'; } export interface ProjectBadges extends ResourceBadges { add( groupId: string | number, linkUrl: string, imageUrl: string, options?: { name?: string } & Sudo & ShowExpanded, ): Promise>; all( groupId: string | number, options?: { name?: string } & PaginationRequestOptions

& Sudo & ShowExpanded, ): Promise>; edit( groupId: string | number, badgeId: number, options?: EditBadgeOptions & Sudo & ShowExpanded, ): Promise>; preview( groupId: string | number, linkUrl: string, imageUrl: string, options?: Sudo & ShowExpanded, ): Promise>; remove( groupId: string | number, badgeId: number, options?: Sudo & ShowExpanded, ): Promise>; show( groupId: string | number, badgeId: number, options?: Sudo & ShowExpanded, ): Promise>; } export class ProjectBadges extends ResourceBadges { constructor(options: BaseResourceOptions) { /* istanbul ignore next */ super('projects', options); } }