gitlab
Version:
Full NodeJS implementation of the GitLab API. Supports Promises, Async/Await.
12 lines (11 loc) • 854 B
TypeScript
import { BaseService, BaseServiceOptions, PaginatedRequestOptions, BaseRequestOptions } from '../infrastructure';
import { ResourceId, KeyId } from '..';
declare class ResourceVariables extends BaseService {
constructor(resourceType: string, options: BaseServiceOptions);
all(resourceId: ResourceId, options?: PaginatedRequestOptions): Promise<import("../infrastructure").GetResponse>;
create(resourceId: ResourceId, options?: BaseRequestOptions): Promise<object>;
edit(resourceId: ResourceId, keyId: KeyId, options?: BaseRequestOptions): Promise<object>;
show(resourceId: ResourceId, keyId: KeyId, options?: PaginatedRequestOptions): Promise<import("../infrastructure").GetResponse>;
remove(resourceId: ResourceId, keyId: KeyId, options?: PaginatedRequestOptions): Promise<object>;
}
export default ResourceVariables;