import type { BaseResourceOptions } from '@gitbeaker/requester-utils'; import { ResourceNotes } from '../templates'; import type { NoteSchema } from '../templates/ResourceNotes'; import type { GitlabAPIResponse, PaginationRequestOptions, PaginationTypes, ShowExpanded, Sudo, } from '../infrastructure'; export interface EpicNoteSchema extends NoteSchema { noteable_type: 'Epic'; } export interface EpicNotes extends ResourceNotes { all( groupId: string | number, epicId: number, options?: { sort?: 'asc' | 'desc'; orderBy?: 'created_at' | 'updated_at'; } & PaginationRequestOptions

& Sudo & ShowExpanded, ): Promise>; create( groupId: string | number, epicId: number, body: string, options?: { internal?: boolean; createdAt?: string } & Sudo & ShowExpanded, ): Promise>; edit( groupId: string | number, epicId: number, noteId: number, options: { body: string } & Sudo & ShowExpanded, ): Promise>; remove( groupId: string | number, epicId: number, noteId: number, options?: Sudo, ): Promise>; show( groupId: string | number, epicId: number, noteId: number, options?: Sudo & ShowExpanded, ): Promise>; } export class EpicNotes extends ResourceNotes { constructor(options: BaseResourceOptions) { /* istanbul ignore next */ super('groups', 'epics', options); } }