gitlab-api-helper
Advanced tools
Comparing version 1.0.5 to 1.0.6
@@ -21,4 +21,5 @@ import { CreateMergeRequestOptions } from "gitlab"; | ||
/** | ||
* getProjectUsers | ||
* Get All Group Members | ||
*/ | ||
getAllGroupMembers(groupId: number | string, includeInherited?: boolean | undefined): Promise<import("gitlab/dist/types/core/infrastructure").GetResponse>; | ||
getLabels(projectId: string | number, options?: PaginatedRequestOptions): Promise<ILabelDetails[] | [] | {}>; | ||
@@ -25,0 +26,0 @@ getAllBranches({ projectId, options }: IBranchesListRequest): Promise<IBranch[] | [] | {}>; |
@@ -61,10 +61,14 @@ "use strict"; | ||
/** | ||
* getProjectUsers | ||
* Get All Group Members | ||
*/ | ||
// public getProjectUsers() { | ||
// try { | ||
// return await this.api.Projects.show() | ||
// } catch (error) { | ||
// } | ||
// } | ||
getAllGroupMembers(groupId, includeInherited) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
try { | ||
return yield this.api.GroupMembers.all(groupId, includeInherited); | ||
} | ||
catch (error) { | ||
throw new GitlabError_1.GitlabError(error); | ||
} | ||
}); | ||
} | ||
getLabels(projectId, options) { | ||
@@ -71,0 +75,0 @@ return __awaiter(this, void 0, void 0, function* () { |
@@ -105,17 +105,7 @@ export interface IProjectDetails { | ||
last_activity_at: string; | ||
namespace: INamespace1; | ||
namespace: INamespace; | ||
} | ||
export interface INamespace1 { | ||
id: number; | ||
name: string; | ||
path: string; | ||
kind: string; | ||
full_path: string; | ||
parent_id?: null; | ||
avatar_url?: null; | ||
web_url: string; | ||
} | ||
export interface IPermissions { | ||
project_access?: IProjectAccessOrGroupAccess | null; | ||
group_access?: IProjectAccessOrGroupAccess1 | null; | ||
group_access?: IProjectAccessOrGroupAccess | null; | ||
} | ||
@@ -126,5 +116,1 @@ export interface IProjectAccessOrGroupAccess { | ||
} | ||
export interface IProjectAccessOrGroupAccess1 { | ||
access_level: number; | ||
notification_level: number; | ||
} |
{ | ||
"name": "gitlab-api-helper", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "A project with more support in gitlab, inspired by node-gitlab", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
42191
923