gitlab
Version:
Full NodeJS implementation of the GitLab API. Supports Promises, Async/Await.
15 lines (14 loc) • 977 B
TypeScript
import { BaseRequestOptions, BaseService, PaginatedRequestOptions, Sudo } from '../infrastructure';
import { SnippetId, SnippetVisibility } from '.';
declare class Snippets extends BaseService {
all({ public: p, ...options }: {
public: boolean;
} & PaginatedRequestOptions): Promise<import("../infrastructure").GetResponse>;
content(snippetId: SnippetId, options?: Sudo): Promise<import("../infrastructure").GetResponse>;
create(title: string, fileName: string, content: string, visibility: SnippetVisibility, options?: BaseRequestOptions): Promise<object>;
edit(snippetId: SnippetId, options?: BaseRequestOptions): Promise<object>;
remove(snippetId: SnippetId, options?: Sudo): Promise<object>;
show(snippetId: SnippetId, options?: Sudo): Promise<import("../infrastructure").GetResponse>;
userAgentDetails(snippetId: SnippetId, options?: Sudo): Promise<import("../infrastructure").GetResponse>;
}
export default Snippets;