import { BaseResource } from '@gitbeaker/requester-utils' ; import { IssueSchema } from './Issues' ; import { BaseRequestOptions , endpoint , PaginatedRequestOptions , RequestHelper , Sudo , } from '../infrastructure' ; export interface EpicIssueSchema extends Omit < IssueSchema , 'references' | 'task_completion_status' > { epic_issue_id : number ; } export class EpicIssues < C extends boolean = false > extends BaseResource < C > { all ( groupId , epicIId , options ? ) { return RequestHelper . get < EpicIssueSchema [ ] > ( ) ( this , endpoint `groups/${ groupId }/epics/${ epicIId }/issues` , options ) ; } assign ( groupId , epicIId , epicIssueId , options ? ) { return RequestHelper . post < EpicIssueSchema > ( ) ( this , endpoint `groups/${ groupId }/epics/${ epicIId }/issues/${ epicIssueId }` , options ) ; } edit ( groupId , epicIId , epicIssueId , options ? ) { return RequestHelper . put < EpicIssueSchema > ( ) ( this , endpoint `groups/${ groupId }/epics/${ epicIId }/issues/${ epicIssueId }` , options ) ; } remove ( groupId , epicIId , epicIssueId , options ? ) { return RequestHelper . del ( ) ( this , endpoint `groups/${ groupId }/epics/${ epicIId }/issues/${ epicIssueId }` , options ) ; } }