import { BaseResourceOptions } from '@gitbeaker/requester-utils' ; import { ResourceAccessRequests } from '../templates' ; import { AccessRequestSchema , AccessLevel } from '../templates/types' ; import { Sudo , CamelizedRecord } from '../infrastructure' ; export interface GroupAccessRequests < C extends boolean = false > extends ResourceAccessRequests < C > { all ( groupId ) : Promise < CamelizedRecord < C , AccessRequestSchema > [ ] > ; request ( groupId ) : Promise < CamelizedRecord < C , AccessRequestSchema > > ; approve ( groupId , userId , options ? ) : Promise < CamelizedRecord < C , AccessRequestSchema > > ; deny ( groupId , userId ) : Promise < void > ; } export class GroupAccessRequests < C extends boolean = false > extends ResourceAccessRequests < C > { constructor ( options ) { super ( 'groups' , options ) ; } }