import { BaseResourceOptions } from '@gitbeaker/requester-utils' ; import { IssueSchema } from './Issues' ; import { MergeRequestSchema } from './MergeRequests' ; import { ResourceMilestones } from '../templates' ; import { MilestoneSchema } from '../templates/types' ; import { PaginatedRequestOptions , BaseRequestOptions , Sudo , CamelizedRecord , } from '../infrastructure' ; export interface ProjectMilestones < C extends boolean = false > extends ResourceMilestones < C > { all ( projectId , options ? ) : Promise < CamelizedRecord < C , MilestoneSchema > [ ] > ; create ( projectId , title , options ? ) : Promise < CamelizedRecord < C , MilestoneSchema > > ; edit ( projectId , milestoneId , options ? ) : Promise < CamelizedRecord < C , MilestoneSchema > > ; issues ( projectId , milestoneId , options ? ) : Promise < CamelizedRecord < C , IssueSchema > [ ] > ; mergeRequests ( projectId , milestoneId , options ? ) : Promise < CamelizedRecord < C , MergeRequestSchema > [ ] > ; show ( projectId , milestoneId , options ? ) : Promise < CamelizedRecord < C , MilestoneSchema > > ; } export class ProjectMilestones < C extends boolean = false > extends ResourceMilestones < C > { constructor ( options ) { super ( 'projects' , options ) ; } }