UNPKG

gitlab

Version:

Full NodeJS implementation of the GitLab API. Supports Promises, Async/Await.

11 lines (10 loc) 741 B
import { BaseRequestOptions, BaseService, PaginatedRequestOptions, Sudo } from '../infrastructure'; import { ProjectId, HookId } from '.'; declare class ProjectHooks extends BaseService { all(projectId: ProjectId, options?: PaginatedRequestOptions): Promise<import("../infrastructure").GetResponse>; show(projectId: ProjectId, hookId: HookId, options?: Sudo): Promise<import("../infrastructure").GetResponse>; add(projectId: ProjectId, url: string, options?: BaseRequestOptions): Promise<object>; edit(projectId: ProjectId, hookId: HookId, url: string, options?: BaseRequestOptions): Promise<object>; remove(projectId: ProjectId, hookId: HookId, options?: Sudo): Promise<object>; } export default ProjectHooks;