import type { BaseResourceOptions } from '@gitbeaker/requester-utils'; import { ResourceHooks } from '../templates'; import type { AddResourceHookOptions, EditResourceHookOptions, ExpandedHookSchema, } from '../templates/ResourceHooks'; import type { GitlabAPIResponse, PaginationRequestOptions, PaginationTypes, ShowExpanded, Sudo, } from '../infrastructure'; export interface ProjectHookSchema extends ExpandedHookSchema { projectId: number; } export interface ProjectHooks { add( projectId: string | number, url: string, options?: AddResourceHookOptions & Sudo & ShowExpanded, ): Promise>; all( projectId: string | number, options?: PaginationRequestOptions

& Sudo & ShowExpanded, ): Promise>; edit( projectId: string | number, hookId: number, url: string, options?: EditResourceHookOptions & Sudo & ShowExpanded, ): Promise>; remove( projectId: string | number, hookId: number, options?: Sudo & ShowExpanded, ): Promise>; show( projectId: string | number, hookId: number, options?: Sudo & ShowExpanded, ): Promise>; } export class ProjectHooks extends ResourceHooks { constructor(options: BaseResourceOptions) { /* istanbul ignore next */ super('projects', options); } }