UNPKG

gitlab

Version:

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

12 lines (11 loc) 931 B
import { BaseRequestOptions, BaseService, BaseServiceOptions, PaginatedRequestOptions, Sudo } from '../infrastructure'; import { ResourceId, UserId, AccessLevel } from '..'; declare class ResourceMembers extends BaseService { constructor(resourceType: string, options: BaseServiceOptions); all(resourceId: ResourceId, includeInherited?: boolean, options?: PaginatedRequestOptions): Promise<import("../infrastructure").GetResponse>; add(resourceId: ResourceId, userId: UserId, accessLevel: AccessLevel, options?: BaseRequestOptions): Promise<object>; edit(resourceId: ResourceId, userId: UserId, accessLevel: AccessLevel, options?: BaseRequestOptions): Promise<object>; show(resourceId: ResourceId, userId: UserId, options?: Sudo): Promise<import("../infrastructure").GetResponse>; remove(resourceId: ResourceId, userId: UserId, options?: Sudo): Promise<object>; } export default ResourceMembers;