import { BaseResourceOptions } from '@gitbeaker/requester-utils' ; import { ResourceNotes } from '../templates' ; import { NoteSchema } from '../templates/types' ; import { PaginatedRequestOptions , BaseRequestOptions , Sudo , CamelizedRecord , } from '../infrastructure' ; export interface EpicNoteSchema extends NoteSchema { file_name : string ; expires_at : string ; } export interface EpicNotes < C extends boolean = false > extends ResourceNotes < C > { all ( groupId , epicId , options ? ) : Promise < CamelizedRecord < C , EpicNoteSchema > [ ] > ; create ( groupId , epicId , body , options ? ) : Promise < CamelizedRecord < C , EpicNoteSchema > > ; edit ( groupId , epicId , noteId , body , options ? ) : Promise < CamelizedRecord < C , EpicNoteSchema > > ; remove ( groupId , epicId , noteId , options ? ) : Promise < void > ; show ( groupId , epicId , noteId , options ? ) : Promise < CamelizedRecord < C , EpicNoteSchema > > ; } export class EpicNotes < C extends boolean = false > extends ResourceNotes < C > { constructor ( options ) { super ( 'groups' , 'epics' , options ) ; } }