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 SnippetNoteSchema extends NoteSchema { noteable_type: 'Snippet'; } export interface ProjectSnippetNotes extends ResourceNotes { all( projectId: string | number, snippedId: number, options?: { sort?: 'asc' | 'desc'; orderBy?: 'created_at' | 'updated_at'; } & PaginationRequestOptions

& Sudo & ShowExpanded, ): Promise>; create( projectId: string | number, snippedId: number, body: string, options?: { createdAt?: string } & Sudo & ShowExpanded, ): Promise>; edit( projectId: string | number, snippedId: number, noteId: number, options: { body: string } & Sudo & ShowExpanded, ): Promise>; remove( projectId: string | number, snippedId: number, noteId: number, options?: Sudo, ): Promise>; show( projectId: string | number, snippedId: number, noteId: number, options?: Sudo & ShowExpanded, ): Promise>; } export class ProjectSnippetNotes extends ResourceNotes { constructor(options: BaseResourceOptions) { /* istanbul ignore next */ super('projects', 'snippets', options); } }