import { BaseResourceOptions } from '@gitbeaker/requester-utils' ; import { ResourceBadges } from '../templates' ; import { BadgeSchema } from '../templates/types' ; import { BaseRequestOptions , PaginatedRequestOptions , Sudo , CamelizedRecord , } from '../infrastructure' ; export interface GroupBadgeSchema extends BadgeSchema { kind : 'group' ; } export interface GroupBadges < C extends boolean = false > extends ResourceBadges < C > { add ( groupId , options ? ) : Promise < CamelizedRecord < C , GroupBadgeSchema > > ; all ( groupId , options ? ) : Promise < CamelizedRecord < C , GroupBadgeSchema > [ ] > ; edit ( groupId , badgeId , options ? ) : Promise < CamelizedRecord < C , GroupBadgeSchema > > ; preview ( groupId , linkUrl , imageUrl , options ? ) : Promise < CamelizedRecord < C , Omit < GroupBadgeSchema , 'id' | 'name' | 'kind' > > > ; remove ( groupId , badgeId , options ? ) : Promise < void > ; show ( groupId , badgeId , options ? ) : Promise < CamelizedRecord < C , GroupBadgeSchema > > ; } export class GroupBadges < C extends boolean = false > extends ResourceBadges < C > { constructor ( options ) { super ( 'groups' , options ) ; } }