Comparing version 6.3.4 to 6.3.5
@@ -0,1 +1,11 @@ | ||
## [6.3.5](https://github.com/jdalrymple/node-gitlab/compare/6.3.4...6.3.5) (2019-06-12) | ||
### Bug Fixes | ||
* Fix error due to Typescript 3.5.1 ([bd4e141](https://github.com/jdalrymple/node-gitlab/commit/bd4e141)) | ||
* Fix error due to Typescript 3.5.1 ([5474f06](https://github.com/jdalrymple/node-gitlab/commit/5474f06)) | ||
* Make package Typescript-conformant ([da1a8f6](https://github.com/jdalrymple/node-gitlab/commit/da1a8f6)) | ||
* Update Typescript to 3.5.1 ([8f5fec5](https://github.com/jdalrymple/node-gitlab/commit/8f5fec5)) | ||
## [6.3.4](https://github.com/jdalrymple/node-gitlab/compare/6.3.3...6.3.4) (2019-06-11) | ||
@@ -2,0 +12,0 @@ |
@@ -1,5 +0,4 @@ | ||
/// <reference types="../typings" /> | ||
import * as APIServices from './services'; | ||
export * from './services'; | ||
export declare const GroupsBundle: Bundle<{ | ||
export declare const GroupsBundle: import("./infrastructure").Bundle<{ | ||
Groups: typeof APIServices.Groups; | ||
@@ -19,3 +18,3 @@ GroupAccessRequests: typeof APIServices.GroupAccessRequests; | ||
}, "Groups" | "GroupAccessRequests" | "GroupBadges" | "GroupCustomAttributes" | "GroupIssueBoards" | "GroupMembers" | "GroupMilestones" | "GroupProjects" | "GroupVariables" | "Epics" | "EpicIssues" | "EpicNotes" | "EpicDiscussions">; | ||
export declare const UsersBundle: Bundle<{ | ||
export declare const UsersBundle: import("./infrastructure").Bundle<{ | ||
Users: typeof APIServices.Users; | ||
@@ -28,3 +27,3 @@ UserCustomAttributes: typeof APIServices.UserCustomAttributes; | ||
}, "Users" | "UserCustomAttributes" | "UserEmails" | "UserImpersonationTokens" | "UserKeys" | "UserGPGKeys">; | ||
export declare const ProjectsBundle: Bundle<{ | ||
export declare const ProjectsBundle: import("./infrastructure").Bundle<{ | ||
Branches: typeof APIServices.Branches; | ||
@@ -75,2 +74,2 @@ Commits: typeof APIServices.Commits; | ||
}, "Branches" | "Commits" | "CommitDiscussions" | "ContainerRegistry" | "DeployKeys" | "Deployments" | "Environments" | "Issues" | "IssueAwardEmojis" | "IssueNotes" | "IssueDiscussions" | "Jobs" | "Labels" | "MergeRequests" | "MergeRequestAwardEmojis" | "MergeRequestDiscussions" | "MergeRequestNotes" | "Pipelines" | "PipelineSchedules" | "PipelineScheduleVariables" | "Projects" | "ProjectAccessRequests" | "ProjectBadges" | "ProjectCustomAttributes" | "ProjectImportExport" | "ProjectIssueBoards" | "ProjectHooks" | "ProjectMembers" | "ProjectMilestones" | "ProjectSnippets" | "ProjectSnippetNotes" | "ProjectSnippetDiscussions" | "ProjectSnippetAwardEmojis" | "ProtectedBranches" | "ProtectedTags" | "ProjectVariables" | "Releases" | "ReleaseLinks" | "Repositories" | "RepositoryFiles" | "Runners" | "Services" | "Tags" | "Triggers">; | ||
export declare const Gitlab: Bundle<typeof APIServices, "Groups" | "GroupAccessRequests" | "GroupBadges" | "GroupCustomAttributes" | "GroupIssueBoards" | "GroupMembers" | "GroupMilestones" | "GroupProjects" | "GroupVariables" | "Epics" | "EpicIssues" | "EpicNotes" | "EpicDiscussions" | "Users" | "UserCustomAttributes" | "UserEmails" | "UserImpersonationTokens" | "UserKeys" | "UserGPGKeys" | "Branches" | "Commits" | "CommitDiscussions" | "ContainerRegistry" | "DeployKeys" | "Deployments" | "Environments" | "Issues" | "IssueAwardEmojis" | "IssueNotes" | "IssueDiscussions" | "Jobs" | "Labels" | "MergeRequests" | "MergeRequestAwardEmojis" | "MergeRequestDiscussions" | "MergeRequestNotes" | "Pipelines" | "PipelineSchedules" | "PipelineScheduleVariables" | "Projects" | "ProjectAccessRequests" | "ProjectBadges" | "ProjectCustomAttributes" | "ProjectImportExport" | "ProjectIssueBoards" | "ProjectHooks" | "ProjectMembers" | "ProjectMilestones" | "ProjectSnippets" | "ProjectSnippetNotes" | "ProjectSnippetDiscussions" | "ProjectSnippetAwardEmojis" | "ProtectedBranches" | "ProtectedTags" | "ProjectVariables" | "Releases" | "ReleaseLinks" | "Repositories" | "RepositoryFiles" | "Runners" | "Services" | "Tags" | "Triggers" | "Todos" | "PushRule" | "ApplicationSettings" | "BroadcastMessages" | "Events" | "FeatureFlags" | "GeoNodes" | "GitignoreTemplates" | "GitLabCIYMLTemplates" | "Keys" | "Licence" | "LicenceTemplates" | "Lint" | "Namespaces" | "NotificationSettings" | "Markdown" | "PagesDomains" | "Search" | "SidekiqMetrics" | "Snippets" | "SystemHooks" | "Version" | "Wikis">; | ||
export declare const Gitlab: import("./infrastructure").Bundle<typeof APIServices, "Groups" | "GroupAccessRequests" | "GroupBadges" | "GroupCustomAttributes" | "GroupIssueBoards" | "GroupMembers" | "GroupMilestones" | "GroupProjects" | "GroupVariables" | "Epics" | "EpicIssues" | "EpicNotes" | "EpicDiscussions" | "Users" | "UserCustomAttributes" | "UserEmails" | "UserImpersonationTokens" | "UserKeys" | "UserGPGKeys" | "Branches" | "Commits" | "CommitDiscussions" | "ContainerRegistry" | "DeployKeys" | "Deployments" | "Environments" | "Issues" | "IssueAwardEmojis" | "IssueNotes" | "IssueDiscussions" | "Jobs" | "Labels" | "MergeRequests" | "MergeRequestAwardEmojis" | "MergeRequestDiscussions" | "MergeRequestNotes" | "Pipelines" | "PipelineSchedules" | "PipelineScheduleVariables" | "Projects" | "ProjectAccessRequests" | "ProjectBadges" | "ProjectCustomAttributes" | "ProjectImportExport" | "ProjectIssueBoards" | "ProjectHooks" | "ProjectMembers" | "ProjectMilestones" | "ProjectSnippets" | "ProjectSnippetNotes" | "ProjectSnippetDiscussions" | "ProjectSnippetAwardEmojis" | "ProtectedBranches" | "ProtectedTags" | "ProjectVariables" | "Releases" | "ReleaseLinks" | "Repositories" | "RepositoryFiles" | "Runners" | "Services" | "Tags" | "Triggers" | "Todos" | "PushRule" | "ApplicationSettings" | "BroadcastMessages" | "Events" | "FeatureFlags" | "GeoNodes" | "GitignoreTemplates" | "GitLabCIYMLTemplates" | "Keys" | "Licence" | "LicenceTemplates" | "Lint" | "Namespaces" | "NotificationSettings" | "Markdown" | "PagesDomains" | "Search" | "SidekiqMetrics" | "Snippets" | "SystemHooks" | "Version" | "Wikis">; |
@@ -1,2 +0,2 @@ | ||
/// <reference types="../typings" /> | ||
import { Requester, BaseServiceOptions } from '.'; | ||
export declare class BaseService { | ||
@@ -3,0 +3,0 @@ readonly url: string; |
@@ -6,1 +6,65 @@ import * as RequestHelper from './RequestHelper'; | ||
export { RequestHelper }; | ||
export interface Constructor { | ||
new (...args: any): any; | ||
} | ||
export declare type Mapper<T extends { | ||
[name: string]: Constructor; | ||
}, P extends keyof T> = { | ||
[name in P]: InstanceType<T[name]>; | ||
}; | ||
export interface Bundle<T extends { | ||
[name: string]: Constructor; | ||
}, P extends keyof T> { | ||
new (options?: any): Mapper<T, P>; | ||
} | ||
export interface Sudo { | ||
sudo?: string | number; | ||
} | ||
export interface Requester { | ||
get: Function; | ||
post: Function; | ||
put: Function; | ||
delete: Function; | ||
stream?: Function; | ||
} | ||
export interface BaseServiceOptions extends Sudo { | ||
oauthToken?: string; | ||
token?: string; | ||
jobToken?: string; | ||
host?: string; | ||
url?: string; | ||
version?: string; | ||
rejectUnauthorized?: boolean; | ||
camelize?: boolean; | ||
requester?: Requester; | ||
requestTimeout?: number; | ||
} | ||
export interface PaginationOptions { | ||
total: number; | ||
next: number | null; | ||
current: number; | ||
previous: number | null; | ||
perPage: number; | ||
totalPages: number; | ||
} | ||
export interface DefaultRequestOptions extends Sudo { | ||
body?: object | FormData; | ||
query?: object; | ||
} | ||
export interface BaseRequestOptions extends Sudo { | ||
[key: string]: any; | ||
} | ||
export interface PaginatedRequestOptions extends BaseRequestOptions { | ||
showPagination?: boolean; | ||
maxPages?: number; | ||
page?: number; | ||
perPage?: number; | ||
} | ||
export declare type PaginationResponse = { | ||
data: object[]; | ||
pagination: PaginationOptions; | ||
}; | ||
export declare type GetResponse = PaginationResponse | object | object[]; | ||
export declare type PostResponse = object; | ||
export declare type PutResponse = object; | ||
export declare type DelResponse = object; |
@@ -1,3 +0,3 @@ | ||
/// <reference types="../typings" /> | ||
import { Requester } from '.'; | ||
declare const KyRequester: Requester; | ||
export { KyRequester }; |
@@ -1,3 +0,3 @@ | ||
/// <reference types="../typings" /> | ||
import { BaseService } from './BaseService'; | ||
import { BaseRequestOptions, DelResponse, GetResponse, PaginatedRequestOptions, PostResponse, PutResponse } from '.'; | ||
export declare function get(service: BaseService, endpoint: string, options?: PaginatedRequestOptions): Promise<GetResponse>; | ||
@@ -4,0 +4,0 @@ export declare function stream(service: BaseService, endpoint: string, options?: BaseRequestOptions): any; |
@@ -1,2 +0,2 @@ | ||
/// <reference types="../typings" /> | ||
import { Constructor, Bundle } from "."; | ||
export declare function bundler<T extends { | ||
@@ -3,0 +3,0 @@ [name: string]: Constructor; |
@@ -1,7 +0,6 @@ | ||
/// <reference types="../typings" /> | ||
import { BaseService } from '../infrastructure'; | ||
import { BaseService, Sudo, BaseRequestOptions } from '../infrastructure'; | ||
declare class ApplicationSettings extends BaseService { | ||
all(options?: Sudo): Promise<GetResponse>; | ||
all(options?: Sudo): Promise<import("../infrastructure").GetResponse>; | ||
edit(options?: BaseRequestOptions): Promise<object>; | ||
} | ||
export default ApplicationSettings; |
@@ -1,13 +0,13 @@ | ||
/// <reference types="../typings" /> | ||
import { BaseService } from '../infrastructure'; | ||
import { BaseRequestOptions, BaseService, PaginatedRequestOptions, Sudo } from '../infrastructure'; | ||
import { ProjectId } from '.'; | ||
declare class Branches extends BaseService { | ||
all(projectId: ProjectId, options?: { | ||
search?: string; | ||
} & PaginatedRequestOptions): Promise<GetResponse>; | ||
} & PaginatedRequestOptions): Promise<import("../infrastructure").GetResponse>; | ||
create(projectId: ProjectId, branchName: string, ref: string, options?: Sudo): Promise<object>; | ||
protect(projectId: ProjectId, branchName: string, options?: BaseRequestOptions): Promise<object>; | ||
remove(projectId: ProjectId, branchName: string, options?: Sudo): Promise<object>; | ||
show(projectId: ProjectId, branchName: string, options?: Sudo): Promise<GetResponse>; | ||
show(projectId: ProjectId, branchName: string, options?: Sudo): Promise<import("../infrastructure").GetResponse>; | ||
unprotect(projectId: ProjectId, branchName: string, options?: Sudo): Promise<object>; | ||
} | ||
export default Branches; |
@@ -1,10 +0,10 @@ | ||
/// <reference types="../typings" /> | ||
import { BaseService } from '../infrastructure'; | ||
import { BaseRequestOptions, BaseService, PaginatedRequestOptions } from '../infrastructure'; | ||
import { BroadcastMessageId } from '.'; | ||
declare class BroadcastMessages extends BaseService { | ||
all(options?: PaginatedRequestOptions): Promise<GetResponse>; | ||
all(options?: PaginatedRequestOptions): Promise<import("../infrastructure").GetResponse>; | ||
create(options?: BaseRequestOptions): Promise<object>; | ||
edit(broadcastMessageId: BroadcastMessageId, options?: BaseRequestOptions): Promise<object>; | ||
remove(broadcastMessageId: BroadcastMessageId): Promise<object>; | ||
show(broadcastMessageId: BroadcastMessageId, options?: BaseRequestOptions): Promise<GetResponse>; | ||
show(broadcastMessageId: BroadcastMessageId, options?: BaseRequestOptions): Promise<import("../infrastructure").GetResponse>; | ||
} | ||
export default BroadcastMessages; |
@@ -1,3 +0,3 @@ | ||
/// <reference types="../typings" /> | ||
import { ResourceDiscussions } from '../templates'; | ||
import { BaseServiceOptions } from '../infrastructure'; | ||
declare class CommitDiscussions extends ResourceDiscussions { | ||
@@ -4,0 +4,0 @@ constructor(options: BaseServiceOptions); |
@@ -1,16 +0,16 @@ | ||
/// <reference types="../typings" /> | ||
import { BaseService } from '../infrastructure'; | ||
import { BaseRequestOptions, BaseService, PaginatedRequestOptions, Sudo } from '../infrastructure'; | ||
import { ProjectId, CommitAction } from '.'; | ||
declare class Commits extends BaseService { | ||
all(projectId: ProjectId, options?: PaginatedRequestOptions): Promise<GetResponse>; | ||
all(projectId: ProjectId, options?: PaginatedRequestOptions): Promise<import("../infrastructure").GetResponse>; | ||
cherryPick(projectId: ProjectId, sha: string, branch: string, options?: Sudo): Promise<object>; | ||
comments(projectId: ProjectId, sha: string, options?: Sudo): Promise<GetResponse>; | ||
comments(projectId: ProjectId, sha: string, options?: Sudo): Promise<import("../infrastructure").GetResponse>; | ||
create(projectId: ProjectId, branch: string, message: string, actions?: CommitAction[], options?: BaseRequestOptions): Promise<object>; | ||
createComment(projectId: ProjectId, sha: string, note: string, options?: BaseRequestOptions): Promise<object>; | ||
diff(projectId: ProjectId, sha: string, options?: Sudo): Promise<GetResponse>; | ||
diff(projectId: ProjectId, sha: string, options?: Sudo): Promise<import("../infrastructure").GetResponse>; | ||
editStatus(projectId: ProjectId, sha: string, options?: BaseRequestOptions): Promise<object>; | ||
references(projectId: ProjectId, sha: string, options?: Sudo): Promise<GetResponse>; | ||
show(projectId: ProjectId, sha: string, options?: BaseRequestOptions): Promise<GetResponse>; | ||
status(projectId: ProjectId, sha: string, options?: BaseRequestOptions): Promise<GetResponse>; | ||
mergeRequests(projectId: ProjectId, sha: string, options?: BaseRequestOptions): Promise<GetResponse>; | ||
references(projectId: ProjectId, sha: string, options?: Sudo): Promise<import("../infrastructure").GetResponse>; | ||
show(projectId: ProjectId, sha: string, options?: BaseRequestOptions): Promise<import("../infrastructure").GetResponse>; | ||
status(projectId: ProjectId, sha: string, options?: BaseRequestOptions): Promise<import("../infrastructure").GetResponse>; | ||
mergeRequests(projectId: ProjectId, sha: string, options?: BaseRequestOptions): Promise<import("../infrastructure").GetResponse>; | ||
} | ||
export default Commits; |
@@ -1,6 +0,6 @@ | ||
/// <reference types="../typings" /> | ||
import { BaseService } from '../infrastructure'; | ||
import { BaseService, PaginatedRequestOptions, Sudo } from '../infrastructure'; | ||
import { ProjectId } from '.'; | ||
declare class ContainerRegistry extends BaseService { | ||
repositories(projectId: ProjectId, options?: PaginatedRequestOptions): Promise<GetResponse>; | ||
tags(projectId: ProjectId, repositoryId: number, options?: PaginatedRequestOptions): Promise<GetResponse>; | ||
repositories(projectId: ProjectId, options?: PaginatedRequestOptions): Promise<import("../infrastructure").GetResponse>; | ||
tags(projectId: ProjectId, repositoryId: number, options?: PaginatedRequestOptions): Promise<import("../infrastructure").GetResponse>; | ||
removeRepository(projectId: ProjectId, repositoryId: number, options?: Sudo): Promise<object>; | ||
@@ -12,4 +12,4 @@ removeTag(projectId: ProjectId, repositoryId: number, tagName: string, options?: Sudo): Promise<object>; | ||
}): Promise<object>; | ||
showTag(projectId: ProjectId, repositoryId: number, tagName: string, options?: Sudo): Promise<GetResponse>; | ||
showTag(projectId: ProjectId, repositoryId: number, tagName: string, options?: Sudo): Promise<import("../infrastructure").GetResponse>; | ||
} | ||
export default ContainerRegistry; |
@@ -1,9 +0,9 @@ | ||
/// <reference types="../typings" /> | ||
import { BaseService } from '../infrastructure'; | ||
import { BaseService, Sudo, PaginatedRequestOptions } from '../infrastructure'; | ||
import { ProjectId, KeyId } from '.'; | ||
declare class DeployKeys extends BaseService { | ||
add(projectId: ProjectId, options?: Sudo): Promise<object>; | ||
all(projectId: ProjectId, options?: PaginatedRequestOptions): Promise<GetResponse>; | ||
show(projectId: ProjectId, keyId: KeyId, options?: Sudo): Promise<GetResponse>; | ||
all(projectId: ProjectId, options?: PaginatedRequestOptions): Promise<import("../infrastructure").GetResponse>; | ||
show(projectId: ProjectId, keyId: KeyId, options?: Sudo): Promise<import("../infrastructure").GetResponse>; | ||
enable(projectId: ProjectId, keyId: KeyId, options?: Sudo): Promise<object>; | ||
} | ||
export default DeployKeys; |
@@ -1,7 +0,7 @@ | ||
/// <reference types="../typings" /> | ||
import { BaseService } from '../infrastructure'; | ||
import { BaseService, PaginatedRequestOptions, Sudo } from '../infrastructure'; | ||
import { ProjectId, DeploymentId } from '.'; | ||
declare class Deployments extends BaseService { | ||
all(projectId: ProjectId, options?: PaginatedRequestOptions): Promise<GetResponse>; | ||
all(projectId: ProjectId, options?: PaginatedRequestOptions): Promise<import("../infrastructure").GetResponse>; | ||
show(projectId: ProjectId, deploymentId: DeploymentId, options?: Sudo): Promise<object>; | ||
} | ||
export default Deployments; |
@@ -1,5 +0,5 @@ | ||
/// <reference types="../typings" /> | ||
import { BaseService } from '../infrastructure'; | ||
import { BaseRequestOptions, BaseService, PaginatedRequestOptions, Sudo } from '../infrastructure'; | ||
import { ProjectId, EnvironmentId } from '.'; | ||
declare class Environments extends BaseService { | ||
all(projectId: ProjectId, options?: PaginatedRequestOptions): Promise<GetResponse>; | ||
all(projectId: ProjectId, options?: PaginatedRequestOptions): Promise<import("../infrastructure").GetResponse>; | ||
create(projectId: ProjectId, options?: BaseRequestOptions): Promise<object>; | ||
@@ -6,0 +6,0 @@ edit(projectId: ProjectId, environmentId: EnvironmentId, options?: BaseRequestOptions): Promise<object>; |
@@ -1,3 +0,3 @@ | ||
/// <reference types="../typings" /> | ||
import { ResourceDiscussions } from '../templates'; | ||
import { BaseServiceOptions } from '../infrastructure'; | ||
declare class EpicDiscussions extends ResourceDiscussions { | ||
@@ -4,0 +4,0 @@ constructor(options: BaseServiceOptions); |
@@ -1,5 +0,5 @@ | ||
/// <reference types="../typings" /> | ||
import { BaseService } from '../infrastructure'; | ||
import { BaseRequestOptions, BaseService, PaginatedRequestOptions, Sudo } from '../infrastructure'; | ||
import { GroupId, EpicId, IssueId } from '.'; | ||
declare class EpicIssues extends BaseService { | ||
all(groupId: GroupId, epicId: EpicId, options?: PaginatedRequestOptions): Promise<GetResponse>; | ||
all(groupId: GroupId, epicId: EpicId, options?: PaginatedRequestOptions): Promise<import("../infrastructure").GetResponse>; | ||
assign(groupId: GroupId, epicId: EpicId, issueId: IssueId, options?: Sudo): Promise<object>; | ||
@@ -6,0 +6,0 @@ edit(groupId: GroupId, epicId: EpicId, issueId: IssueId, options?: BaseRequestOptions): Promise<object>; |
@@ -1,3 +0,3 @@ | ||
/// <reference types="../typings" /> | ||
import { ResourceNotes } from '../templates'; | ||
import { BaseServiceOptions } from '../infrastructure'; | ||
declare class EpicNotes extends ResourceNotes { | ||
@@ -4,0 +4,0 @@ constructor(options: BaseServiceOptions); |
@@ -1,10 +0,10 @@ | ||
/// <reference types="../typings" /> | ||
import { BaseService } from '../infrastructure'; | ||
import { BaseRequestOptions, BaseService, PaginatedRequestOptions, Sudo } from '../infrastructure'; | ||
import { GroupId, EpicId } from '.'; | ||
declare class Epics extends BaseService { | ||
all(groupId: GroupId, options?: PaginatedRequestOptions): Promise<GetResponse>; | ||
all(groupId: GroupId, options?: PaginatedRequestOptions): Promise<import("../infrastructure").GetResponse>; | ||
create(groupId: GroupId, title: string, options?: BaseRequestOptions): Promise<object>; | ||
edit(groupId: GroupId, epicId: EpicId, options?: BaseRequestOptions): Promise<object>; | ||
remove(groupId: GroupId, epicId: EpicId, options?: Sudo): Promise<object>; | ||
show(groupId: GroupId, epicId: EpicId, options?: Sudo): Promise<GetResponse>; | ||
show(groupId: GroupId, epicId: EpicId, options?: Sudo): Promise<import("../infrastructure").GetResponse>; | ||
} | ||
export default Epics; |
@@ -1,6 +0,6 @@ | ||
/// <reference types="../typings" /> | ||
import { BaseService } from '../infrastructure'; | ||
import { BaseService, PaginatedRequestOptions } from '../infrastructure'; | ||
import { EventOptions } from '.'; | ||
declare class Events extends BaseService { | ||
all(options?: PaginatedRequestOptions & EventOptions): Promise<GetResponse>; | ||
all(options?: PaginatedRequestOptions & EventOptions): Promise<import("../infrastructure").GetResponse>; | ||
} | ||
export default Events; |
@@ -1,7 +0,6 @@ | ||
/// <reference types="../typings" /> | ||
import { BaseService } from '../infrastructure'; | ||
import { BaseRequestOptions, BaseService, PaginatedRequestOptions } from '../infrastructure'; | ||
declare class FeatureFlags extends BaseService { | ||
all(options?: PaginatedRequestOptions): Promise<GetResponse>; | ||
all(options?: PaginatedRequestOptions): Promise<import("../infrastructure").GetResponse>; | ||
set(name: string, options?: BaseRequestOptions): Promise<object>; | ||
} | ||
export default FeatureFlags; |
@@ -1,5 +0,5 @@ | ||
/// <reference types="../typings" /> | ||
import { BaseService } from '../infrastructure'; | ||
import { BaseRequestOptions, BaseService, PaginatedRequestOptions, Sudo } from '../infrastructure'; | ||
import { GeonodeId } from '.'; | ||
declare class GeoNodes extends BaseService { | ||
all(options?: PaginatedRequestOptions): Promise<GetResponse>; | ||
all(options?: PaginatedRequestOptions): Promise<import("../infrastructure").GetResponse>; | ||
create(geonodeId: GeonodeId, options?: BaseRequestOptions): Promise<object>; | ||
@@ -9,6 +9,6 @@ edit(geonodeId: GeonodeId, options?: BaseRequestOptions): Promise<object>; | ||
repair(geonodeId: GeonodeId, options?: Sudo): Promise<object>; | ||
show(geonodeId: GeonodeId, options?: Sudo): Promise<GetResponse>; | ||
status(geonodeId: GeonodeId, options?: Sudo): Promise<GetResponse>; | ||
statuses(options?: PaginatedRequestOptions): Promise<GetResponse>; | ||
show(geonodeId: GeonodeId, options?: Sudo): Promise<import("../infrastructure").GetResponse>; | ||
status(geonodeId: GeonodeId, options?: Sudo): Promise<import("../infrastructure").GetResponse>; | ||
statuses(options?: PaginatedRequestOptions): Promise<import("../infrastructure").GetResponse>; | ||
} | ||
export default GeoNodes; |
@@ -1,3 +0,3 @@ | ||
/// <reference types="../typings" /> | ||
import { ResourceTemplates } from '../templates'; | ||
import { BaseServiceOptions } from '../infrastructure'; | ||
declare class GitignoreTemplates extends ResourceTemplates { | ||
@@ -4,0 +4,0 @@ constructor(options: BaseServiceOptions); |
@@ -1,3 +0,3 @@ | ||
/// <reference types="../typings" /> | ||
import { ResourceTemplates } from '../templates'; | ||
import { BaseServiceOptions } from '../infrastructure'; | ||
declare class GitLabCIYMLTemplates extends ResourceTemplates { | ||
@@ -4,0 +4,0 @@ constructor(options: BaseServiceOptions); |
@@ -1,3 +0,3 @@ | ||
/// <reference types="../typings" /> | ||
import { ResourceAccessRequests } from '../templates'; | ||
import { BaseServiceOptions } from '../infrastructure'; | ||
declare class GroupAccessRequests extends ResourceAccessRequests { | ||
@@ -4,0 +4,0 @@ constructor(options: BaseServiceOptions); |
@@ -1,3 +0,3 @@ | ||
/// <reference types="../typings" /> | ||
import { ResourceBadges } from '../templates'; | ||
import { BaseServiceOptions } from '../infrastructure'; | ||
declare class GroupBadges extends ResourceBadges { | ||
@@ -4,0 +4,0 @@ constructor(options: BaseServiceOptions); |
@@ -1,3 +0,3 @@ | ||
/// <reference types="../typings" /> | ||
import { ResourceCustomAttributes } from '../templates'; | ||
import { BaseServiceOptions } from '../infrastructure'; | ||
declare class GroupCustomAttributes extends ResourceCustomAttributes { | ||
@@ -4,0 +4,0 @@ constructor(options: BaseServiceOptions); |
@@ -1,3 +0,3 @@ | ||
/// <reference types="../typings" /> | ||
import { ResourceIssueBoards } from '../templates'; | ||
import { BaseServiceOptions } from '../infrastructure'; | ||
declare class GroupIssueBoards extends ResourceIssueBoards { | ||
@@ -4,0 +4,0 @@ constructor(options: BaseServiceOptions); |
@@ -1,3 +0,3 @@ | ||
/// <reference types="../typings" /> | ||
import { ResourceMembers } from '../templates'; | ||
import { BaseServiceOptions } from '../infrastructure'; | ||
declare class GroupMembers extends ResourceMembers { | ||
@@ -4,0 +4,0 @@ constructor(options: BaseServiceOptions); |
@@ -1,3 +0,3 @@ | ||
/// <reference types="../typings" /> | ||
import { ResourceMilestones } from '../templates'; | ||
import { BaseServiceOptions } from '../infrastructure'; | ||
declare class GroupMilestones extends ResourceMilestones { | ||
@@ -4,0 +4,0 @@ constructor(options: BaseServiceOptions); |
@@ -1,7 +0,7 @@ | ||
/// <reference types="../typings" /> | ||
import { BaseService } from '../infrastructure'; | ||
import { BaseRequestOptions, BaseService, PaginatedRequestOptions } from '../infrastructure'; | ||
import { GroupProjectId, ProjectId } from '.'; | ||
declare class GroupProjects extends BaseService { | ||
all(groupId: GroupProjectId, options?: PaginatedRequestOptions): Promise<GetResponse>; | ||
all(groupId: GroupProjectId, options?: PaginatedRequestOptions): Promise<import("../infrastructure").GetResponse>; | ||
add(groupId: GroupProjectId, projectId: ProjectId, options?: BaseRequestOptions): Promise<object>; | ||
} | ||
export default GroupProjects; |
@@ -1,5 +0,5 @@ | ||
/// <reference types="../typings" /> | ||
import { BaseService } from '../infrastructure'; | ||
import { BaseRequestOptions, BaseService, PaginatedRequestOptions, Sudo } from '../infrastructure'; | ||
import { GroupId } from '.'; | ||
declare class Groups extends BaseService { | ||
all(options?: PaginatedRequestOptions): Promise<GetResponse>; | ||
all(options?: PaginatedRequestOptions): Promise<import("../infrastructure").GetResponse>; | ||
create(options?: BaseRequestOptions): Promise<object>; | ||
@@ -12,7 +12,7 @@ createLDAPLink(groupId: GroupId, cn: any, groupAccess: any, provider: string, options?: Sudo): Promise<object>; | ||
}): Promise<object>; | ||
search(nameOrPath: string, options?: Sudo): Promise<GetResponse>; | ||
show(groupId: GroupId, options?: BaseRequestOptions): Promise<GetResponse>; | ||
subgroups(groupId: GroupId, options?: PaginatedRequestOptions): Promise<GetResponse>; | ||
search(nameOrPath: string, options?: Sudo): Promise<import("../infrastructure").GetResponse>; | ||
show(groupId: GroupId, options?: BaseRequestOptions): Promise<import("../infrastructure").GetResponse>; | ||
subgroups(groupId: GroupId, options?: PaginatedRequestOptions): Promise<import("../infrastructure").GetResponse>; | ||
syncLDAP(groupId: GroupId, options?: Sudo): Promise<object>; | ||
} | ||
export default Groups; |
@@ -1,3 +0,3 @@ | ||
/// <reference types="../typings" /> | ||
import { ResourceVariables } from '../templates'; | ||
import { BaseServiceOptions } from '../infrastructure'; | ||
declare class GroupVariables extends ResourceVariables { | ||
@@ -4,0 +4,0 @@ constructor(options: BaseServiceOptions); |
@@ -87,1 +87,99 @@ export { default as Groups } from './Groups'; | ||
export { default as Wikis } from './Wikis'; | ||
export declare type AwardId = number; | ||
export declare type BroadcastMessageId = number; | ||
export declare type BadgeId = number; | ||
export declare type BoardId = number; | ||
export declare type CustomAttributeId = number; | ||
export declare type DeploymentId = number; | ||
export declare type DiscussionId = number; | ||
export declare type EnvironmentId = number; | ||
export declare type EpicId = number; | ||
export declare type GeonodeId = number; | ||
export declare type GroupId = string | number; | ||
export declare type GroupProjectId = string | number; | ||
export declare type HookId = number; | ||
export declare type ImpersonationTokenId = number; | ||
export declare type IssueId = number; | ||
export declare type JobId = number; | ||
export declare type LabelId = number; | ||
export declare type KeyId = string; | ||
export declare type NamespaceId = string | number; | ||
export declare type MergeRequestId = number; | ||
export declare type MilestoneId = number; | ||
export declare type NoteId = number; | ||
export declare type PipelineId = number; | ||
export declare type PipelineScheduleId = number; | ||
export declare type ProjectId = string | number; | ||
export declare type RunnerId = number; | ||
export declare type ResourceId = string | number; | ||
export declare type SnippetId = number; | ||
export declare type TodoId = number; | ||
export declare type TriggerId = number; | ||
export declare type VersionId = number; | ||
export declare type UserId = number; | ||
export declare type AccessLevel = 10 | 20 | 30 | 40 | 50; | ||
export interface CommitAction { | ||
/** The action to perform */ | ||
action: 'create' | 'delete' | 'move' | 'update'; | ||
/** Full path to the file. Ex. lib/class.rb */ | ||
filePath: string; | ||
/** Original full path to the file being moved.Ex.lib / class1.rb */ | ||
previousPath?: string; | ||
/** File content, required for all except delete. Optional for move */ | ||
content?: string; | ||
/** text or base64. text is default. */ | ||
encoding?: string; | ||
/** Last known file commit id. Will be only considered in update, move and delete actions. */ | ||
lastCommitId?: string; | ||
} | ||
export interface EventOptions { | ||
action?: 'created' | 'updated' | 'closed' | 'reopened' | 'pushed' | 'commented' | 'merged' | 'joined' | 'left' | 'destroyed' | 'expired'; | ||
targetType?: 'issue' | 'milestone' | 'merge_request' | 'note' | 'project' | 'snippet' | 'user'; | ||
} | ||
export declare type JobScope = 'created' | 'pending' | 'running' | 'failed' | 'success' | 'canceled' | 'skipped' | 'manual'; | ||
export interface AcceptMergeRequestOptions { | ||
merge_commit_message?: string; | ||
squash_commit_message?: string; | ||
squash?: boolean; | ||
should_remove_source_branch?: boolean; | ||
merge_when_pipeline_succeeds?: boolean; | ||
sha?: string; | ||
} | ||
export interface ShowMergeRequestOptions { | ||
render_html?: boolean; | ||
include_diverged_commits_count?: true; | ||
include_rebase_in_progress?: boolean; | ||
} | ||
export interface CreateMergeRequestOptions { | ||
assignee_id?: number; | ||
description?: string; | ||
target_project_id?: number; | ||
labels?: string; | ||
milestone_id?: number; | ||
remove_source_branch?: boolean; | ||
allow_collaboration?: boolean; | ||
allow_maintainer_to_push?: boolean; | ||
squash?: boolean; | ||
} | ||
export interface UpdateMergeRequestOptions { | ||
target_branch?: number; | ||
title?: string; | ||
assignee_id?: number; | ||
milestone_id?: number; | ||
labels?: string; | ||
description?: string; | ||
state_event?: string; | ||
remove_source_branch?: boolean; | ||
squash?: boolean; | ||
discussion_locked?: boolean; | ||
allow_collaboration?: boolean; | ||
allow_maintainer_to_push?: boolean; | ||
} | ||
export declare type NotificationSettingLevel = 'disabled' | 'participating' | 'watch' | 'global' | 'mention' | 'custom'; | ||
export declare type SupportedService = 'asana' | 'assembla' | 'bamboo' | 'bugzilla' | 'buildkite' | 'campfire' | 'custom-issue-tracker' | 'drone-ci' | 'emails-on-push' | 'external-wiki' | 'flowdock' | 'hangouts_chat' | 'hipchat' | 'irker' | 'jira' | 'kubernetes' | 'slack-slash-commands' | 'slack' | 'mattermost-slash-commands' | 'packagist' | 'pipelines-email' | 'pivotaltracker' | 'prometheus' | 'pushover' | 'redmine' | 'microsoft-teams' | 'mattermost' | 'mattermost-slash-commands' | 'teamcity' | 'jenkins' | 'jenkins-deprecated' | 'mock-ci'; | ||
export declare type SnippetVisibility = 'private' | 'public' | 'internal'; | ||
export declare type ImpersonationTokenScope = 'api' | 'read_user'; | ||
export interface ProjectUploadMetadata { | ||
filename?: string; | ||
contentType?: string; | ||
} |
@@ -1,3 +0,3 @@ | ||
/// <reference types="../typings" /> | ||
import { ResourceAwardEmojis } from '../templates'; | ||
import { BaseServiceOptions } from '../infrastructure'; | ||
declare class IssueAwardEmojis extends ResourceAwardEmojis { | ||
@@ -4,0 +4,0 @@ constructor(options: BaseServiceOptions); |
@@ -1,3 +0,3 @@ | ||
/// <reference types="../typings" /> | ||
import { ResourceDiscussions } from '../templates'; | ||
import { BaseServiceOptions } from '../infrastructure'; | ||
declare class IssueDiscussions extends ResourceDiscussions { | ||
@@ -4,0 +4,0 @@ constructor(options: BaseServiceOptions); |
@@ -1,3 +0,3 @@ | ||
/// <reference types="../typings" /> | ||
import { ResourceNotes } from '../templates'; | ||
import { BaseServiceOptions } from '../infrastructure'; | ||
declare class IssueNotes extends ResourceNotes { | ||
@@ -4,0 +4,0 @@ constructor(options: BaseServiceOptions); |
@@ -1,3 +0,3 @@ | ||
/// <reference types="../typings" /> | ||
import { BaseService } from '../infrastructure'; | ||
import { BaseRequestOptions, BaseService, PaginatedRequestOptions, Sudo } from '../infrastructure'; | ||
import { ProjectId, IssueId } from '.'; | ||
declare class Issues extends BaseService { | ||
@@ -8,15 +8,15 @@ addSpentTime(projectId: ProjectId, issueId: IssueId, duration: string, options?: Sudo): Promise<object>; | ||
projectId?: ProjectId; | ||
} & PaginatedRequestOptions): Promise<GetResponse>; | ||
} & PaginatedRequestOptions): Promise<import("../infrastructure").GetResponse>; | ||
create(projectId: ProjectId, options?: BaseRequestOptions): Promise<object>; | ||
edit(projectId: ProjectId, issueId: IssueId, options?: BaseRequestOptions): Promise<object>; | ||
link(projectId: ProjectId, issueIId: IssueId, targetProjectId: ProjectId, targetIssueId: IssueId, options?: BaseRequestOptions): Promise<object>; | ||
participants(projectId: ProjectId, issueId: IssueId, options?: Sudo): Promise<GetResponse>; | ||
participants(projectId: ProjectId, issueId: IssueId, options?: Sudo): Promise<import("../infrastructure").GetResponse>; | ||
remove(projectId: ProjectId, issueId: IssueId, options?: Sudo): Promise<object>; | ||
resetSpentTime(projectId: ProjectId, issueId: IssueId, options?: BaseRequestOptions): Promise<object>; | ||
resetTimeEstimate(projectId: ProjectId, issueId: IssueId, options?: Sudo): Promise<object>; | ||
show(projectId: ProjectId, issueId: IssueId, options?: Sudo): Promise<GetResponse>; | ||
show(projectId: ProjectId, issueId: IssueId, options?: Sudo): Promise<import("../infrastructure").GetResponse>; | ||
subscribe(projectId: ProjectId, issueId: IssueId, options?: Sudo): Promise<object>; | ||
timeStats(projectId: ProjectId, issueId: IssueId, options?: Sudo): Promise<GetResponse>; | ||
timeStats(projectId: ProjectId, issueId: IssueId, options?: Sudo): Promise<import("../infrastructure").GetResponse>; | ||
unsubscribe(projectId: ProjectId, issueId: IssueId, options?: Sudo): Promise<object>; | ||
} | ||
export default Issues; |
@@ -1,5 +0,5 @@ | ||
/// <reference types="../typings" /> | ||
import { BaseService } from '../infrastructure'; | ||
import { BaseRequestOptions, BaseService, PaginatedRequestOptions, Sudo } from '../infrastructure'; | ||
import { ProjectId, JobId, PipelineId, JobScope } from '.'; | ||
declare class Jobs extends BaseService { | ||
all(projectId: ProjectId, options?: PaginatedRequestOptions): Promise<GetResponse>; | ||
all(projectId: ProjectId, options?: PaginatedRequestOptions): Promise<import("../infrastructure").GetResponse>; | ||
cancel(projectId: ProjectId, jobId: JobId, options?: Sudo): Promise<object>; | ||
@@ -12,3 +12,3 @@ downloadSingleArtifactFile(projectId: ProjectId, jobId: JobId, artifactPath: string, { stream, ...options }: { | ||
} & BaseRequestOptions): any; | ||
downloadTraceFile(projectId: ProjectId, jobId: JobId, options?: Sudo): Promise<GetResponse>; | ||
downloadTraceFile(projectId: ProjectId, jobId: JobId, options?: Sudo): Promise<import("../infrastructure").GetResponse>; | ||
erase(projectId: ProjectId, jobId: JobId, options?: Sudo): Promise<object>; | ||
@@ -19,7 +19,7 @@ eraseArtifacts(projectId: ProjectId, jobId: JobId, options?: Sudo): Promise<object>; | ||
retry(projectId: ProjectId, jobId: JobId, options?: Sudo): Promise<object>; | ||
show(projectId: ProjectId, jobId: JobId, options?: Sudo): Promise<GetResponse>; | ||
show(projectId: ProjectId, jobId: JobId, options?: Sudo): Promise<import("../infrastructure").GetResponse>; | ||
showPipelineJobs(projectId: ProjectId, pipelineId: PipelineId, options: { | ||
scope: JobScope; | ||
} & Sudo): Promise<GetResponse>; | ||
} & Sudo): Promise<import("../infrastructure").GetResponse>; | ||
} | ||
export default Jobs; |
@@ -1,6 +0,6 @@ | ||
/// <reference types="../typings" /> | ||
import { BaseService } from '../infrastructure'; | ||
import { BaseService, Sudo } from '../infrastructure'; | ||
import { KeyId } from '.'; | ||
declare class Keys extends BaseService { | ||
show(keyId: KeyId, options?: Sudo): Promise<GetResponse>; | ||
show(keyId: KeyId, options?: Sudo): Promise<import("../infrastructure").GetResponse>; | ||
} | ||
export default Keys; |
@@ -1,5 +0,5 @@ | ||
/// <reference types="../typings" /> | ||
import { BaseService } from '../infrastructure'; | ||
import { BaseRequestOptions, BaseService, PaginatedRequestOptions, Sudo } from '../infrastructure'; | ||
import { ProjectId, LabelId } from '.'; | ||
declare class Labels extends BaseService { | ||
all(projectId: ProjectId, options?: PaginatedRequestOptions): Promise<GetResponse>; | ||
all(projectId: ProjectId, options?: PaginatedRequestOptions): Promise<import("../infrastructure").GetResponse>; | ||
create(projectId: ProjectId, options?: BaseRequestOptions): Promise<object>; | ||
@@ -6,0 +6,0 @@ edit(projectId: ProjectId, labelName: string, options?: BaseRequestOptions): Promise<object>; |
@@ -1,7 +0,6 @@ | ||
/// <reference types="../typings" /> | ||
import { BaseService } from '../infrastructure'; | ||
import { BaseService, Sudo } from '../infrastructure'; | ||
declare class Licence extends BaseService { | ||
all(options?: Sudo): Promise<GetResponse>; | ||
all(options?: Sudo): Promise<import("../infrastructure").GetResponse>; | ||
create(options?: Sudo): Promise<object>; | ||
} | ||
export default Licence; |
@@ -1,3 +0,3 @@ | ||
/// <reference types="../typings" /> | ||
import { ResourceTemplates } from '../templates'; | ||
import { BaseServiceOptions } from '../infrastructure'; | ||
declare class LicenceTemplates extends ResourceTemplates { | ||
@@ -4,0 +4,0 @@ constructor(options: BaseServiceOptions); |
@@ -1,3 +0,2 @@ | ||
/// <reference types="../typings" /> | ||
import { BaseService } from '../infrastructure'; | ||
import { BaseService, Sudo } from '../infrastructure'; | ||
declare class Lint extends BaseService { | ||
@@ -4,0 +3,0 @@ lint(content: string, options?: Sudo): Promise<object>; |
@@ -1,3 +0,3 @@ | ||
/// <reference types="../typings" /> | ||
import { BaseService } from '../infrastructure'; | ||
import { BaseService, Sudo } from '../infrastructure'; | ||
import { ProjectId } from '.'; | ||
declare class Markdown extends BaseService { | ||
@@ -4,0 +4,0 @@ render(text: string, options: { |
@@ -1,3 +0,3 @@ | ||
/// <reference types="../typings" /> | ||
import { ResourceAwardEmojis } from '../templates'; | ||
import { BaseServiceOptions } from '../infrastructure'; | ||
declare class MergeRequestAwardEmojis extends ResourceAwardEmojis { | ||
@@ -4,0 +4,0 @@ constructor(options: BaseServiceOptions); |
@@ -1,3 +0,3 @@ | ||
/// <reference types="../typings" /> | ||
import { ResourceDiscussions } from '../templates'; | ||
import { BaseServiceOptions } from '../infrastructure'; | ||
declare class MergeRequestDiscussions extends ResourceDiscussions { | ||
@@ -4,0 +4,0 @@ constructor(options: BaseServiceOptions); |
@@ -1,3 +0,3 @@ | ||
/// <reference types="../typings" /> | ||
import { ResourceNotes } from '../templates'; | ||
import { BaseServiceOptions } from '../infrastructure'; | ||
declare class MergeRequestNotes extends ResourceNotes { | ||
@@ -4,0 +4,0 @@ constructor(options: BaseServiceOptions); |
@@ -1,3 +0,3 @@ | ||
/// <reference types="../typings" /> | ||
import { BaseService } from '../infrastructure'; | ||
import { BaseRequestOptions, BaseService, PaginatedRequestOptions, Sudo } from '../infrastructure'; | ||
import { AcceptMergeRequestOptions, CreateMergeRequestOptions, GroupId, MergeRequestId, ProjectId, ShowMergeRequestOptions, UpdateMergeRequestOptions, UserId } from '.'; | ||
declare class MergeRequests extends BaseService { | ||
@@ -11,3 +11,3 @@ accept(projectId: ProjectId, mergerequestIId: MergeRequestId, options?: AcceptMergeRequestOptions & BaseRequestOptions): Promise<object>; | ||
groupId: GroupId; | ||
} | {}) & PaginatedRequestOptions): Promise<GetResponse>; | ||
} | {}) & PaginatedRequestOptions): Promise<import("../infrastructure").GetResponse>; | ||
approve(projectId: ProjectId, mergerequestIId: MergeRequestId, options: { | ||
@@ -18,3 +18,3 @@ sha?: string; | ||
mergerequestIId?: MergeRequestId; | ||
} & BaseRequestOptions): Promise<GetResponse>; | ||
} & BaseRequestOptions): Promise<import("../infrastructure").GetResponse>; | ||
approvers(projectId: ProjectId, approverIds: UserId[], approverGroupIds: GroupId[], { mergerequestIId, ...options }: { | ||
@@ -24,5 +24,5 @@ mergerequestIId?: MergeRequestId; | ||
cancelOnPipelineSucess(projectId: ProjectId, mergerequestIId: MergeRequestId, options?: Sudo): Promise<object>; | ||
changes(projectId: ProjectId, mergerequestIId: MergeRequestId, options?: Sudo): Promise<GetResponse>; | ||
closesIssues(projectId: ProjectId, mergerequestIId: MergeRequestId, options?: Sudo): Promise<GetResponse>; | ||
commits(projectId: ProjectId, mergerequestIId: MergeRequestId, options?: Sudo): Promise<GetResponse>; | ||
changes(projectId: ProjectId, mergerequestIId: MergeRequestId, options?: Sudo): Promise<import("../infrastructure").GetResponse>; | ||
closesIssues(projectId: ProjectId, mergerequestIId: MergeRequestId, options?: Sudo): Promise<import("../infrastructure").GetResponse>; | ||
commits(projectId: ProjectId, mergerequestIId: MergeRequestId, options?: Sudo): Promise<import("../infrastructure").GetResponse>; | ||
create(projectId: ProjectId, sourceBranch: string, targetBranch: string, title: string, options?: CreateMergeRequestOptions & BaseRequestOptions): Promise<object>; | ||
@@ -33,11 +33,11 @@ edit(projectId: ProjectId, mergerequestIId: MergeRequestId, options?: UpdateMergeRequestOptions & BaseRequestOptions): Promise<object>; | ||
} & BaseRequestOptions): Promise<object>; | ||
participants(projectId: ProjectId, mergerequestIId: MergeRequestId, options?: Sudo): Promise<GetResponse>; | ||
pipelines(projectId: ProjectId, mergerequestIId: MergeRequestId, options?: Sudo): Promise<GetResponse>; | ||
participants(projectId: ProjectId, mergerequestIId: MergeRequestId, options?: Sudo): Promise<import("../infrastructure").GetResponse>; | ||
pipelines(projectId: ProjectId, mergerequestIId: MergeRequestId, options?: Sudo): Promise<import("../infrastructure").GetResponse>; | ||
remove(projectId: ProjectId, mergerequestIId: MergeRequestId, options?: Sudo): Promise<object>; | ||
resetSpentTime(projectId: ProjectId, mergerequestIId: MergeRequestId, options?: Sudo): Promise<object>; | ||
resetTimeEstimate(projectId: ProjectId, mergerequestIId: MergeRequestId, options?: Sudo): Promise<object>; | ||
show(projectId: ProjectId, mergerequestIId: MergeRequestId, options?: ShowMergeRequestOptions & BaseRequestOptions): Promise<GetResponse>; | ||
timeStats(projectId: ProjectId, mergerequestIId: MergeRequestId, options?: Sudo): Promise<GetResponse>; | ||
version(projectId: ProjectId, mergerequestIId: MergeRequestId, versionId: number, options?: Sudo): Promise<GetResponse>; | ||
versions(projectId: ProjectId, mergerequestIId: MergeRequestId, options?: Sudo): Promise<GetResponse>; | ||
show(projectId: ProjectId, mergerequestIId: MergeRequestId, options?: ShowMergeRequestOptions & BaseRequestOptions): Promise<import("../infrastructure").GetResponse>; | ||
timeStats(projectId: ProjectId, mergerequestIId: MergeRequestId, options?: Sudo): Promise<import("../infrastructure").GetResponse>; | ||
version(projectId: ProjectId, mergerequestIId: MergeRequestId, versionId: number, options?: Sudo): Promise<import("../infrastructure").GetResponse>; | ||
versions(projectId: ProjectId, mergerequestIId: MergeRequestId, options?: Sudo): Promise<import("../infrastructure").GetResponse>; | ||
unapprove(projectId: ProjectId, mergerequestIId: MergeRequestId, options?: Sudo): Promise<object>; | ||
@@ -44,0 +44,0 @@ unsubscribe(projectId: ProjectId, mergerequestIId: MergeRequestId, options?: Sudo): Promise<object>; |
@@ -1,9 +0,9 @@ | ||
/// <reference types="../typings" /> | ||
import { BaseService } from '../infrastructure'; | ||
import { BaseService, PaginatedRequestOptions, Sudo } from '../infrastructure'; | ||
import { NamespaceId } from '.'; | ||
declare class Namespaces extends BaseService { | ||
all(options?: PaginatedRequestOptions): Promise<GetResponse>; | ||
all(options?: PaginatedRequestOptions): Promise<import("../infrastructure").GetResponse>; | ||
show(namespaceId: NamespaceId, options: { | ||
search?: string; | ||
} & Sudo): Promise<GetResponse>; | ||
} & Sudo): Promise<import("../infrastructure").GetResponse>; | ||
} | ||
export default Namespaces; |
@@ -1,3 +0,3 @@ | ||
/// <reference types="../typings" /> | ||
import { BaseService } from '../infrastructure'; | ||
import { BaseRequestOptions, BaseService, PaginatedRequestOptions } from '../infrastructure'; | ||
import { ProjectId, GroupId, NotificationSettingLevel } from '.'; | ||
declare class NotificationSettings extends BaseService { | ||
@@ -8,3 +8,3 @@ all({ projectId, groupId, ...options }: ({ | ||
groupId: GroupId; | ||
}) & PaginatedRequestOptions): Promise<GetResponse>; | ||
}) & PaginatedRequestOptions): Promise<import("../infrastructure").GetResponse>; | ||
edit({ projectId, groupId, ...options }: { | ||
@@ -11,0 +11,0 @@ level?: NotificationSettingLevel; |
@@ -1,12 +0,12 @@ | ||
/// <reference types="../typings" /> | ||
import { BaseService } from '../infrastructure'; | ||
import { BaseRequestOptions, BaseService, PaginatedRequestOptions, Sudo } from '../infrastructure'; | ||
import { ProjectId } from '.'; | ||
declare class PagesDomains extends BaseService { | ||
all({ projectId, ...options }?: { | ||
projectId?: ProjectId; | ||
} & PaginatedRequestOptions): Promise<GetResponse>; | ||
} & PaginatedRequestOptions): Promise<import("../infrastructure").GetResponse>; | ||
create(projectId: ProjectId, domain: string, options?: BaseRequestOptions): Promise<object>; | ||
edit(projectId: ProjectId, domain: string, options?: BaseRequestOptions): Promise<object>; | ||
show(projectId: ProjectId, domain: string, options?: Sudo): Promise<GetResponse>; | ||
show(projectId: ProjectId, domain: string, options?: Sudo): Promise<import("../infrastructure").GetResponse>; | ||
remove(projectId: ProjectId, domain: string, options?: Sudo): Promise<object>; | ||
} | ||
export default PagesDomains; |
@@ -1,7 +0,7 @@ | ||
/// <reference types="../typings" /> | ||
import { BaseService } from '../infrastructure'; | ||
import { BaseRequestOptions, BaseService, PaginatedRequestOptions, Sudo } from '../infrastructure'; | ||
import { ProjectId, PipelineId, JobScope } from '.'; | ||
declare class Pipelines extends BaseService { | ||
all(projectId: ProjectId, options?: PaginatedRequestOptions): Promise<GetResponse>; | ||
all(projectId: ProjectId, options?: PaginatedRequestOptions): Promise<import("../infrastructure").GetResponse>; | ||
create(projectId: ProjectId, ref: string, options?: BaseRequestOptions): Promise<object>; | ||
show(projectId: ProjectId, pipelineId: PipelineId, options?: Sudo): Promise<GetResponse>; | ||
show(projectId: ProjectId, pipelineId: PipelineId, options?: Sudo): Promise<import("../infrastructure").GetResponse>; | ||
retry(projectId: ProjectId, pipelineId: PipelineId, options?: Sudo): Promise<object>; | ||
@@ -11,4 +11,4 @@ cancel(projectId: ProjectId, pipelineId: PipelineId, options?: Sudo): Promise<object>; | ||
scope: JobScope; | ||
} & Sudo): Promise<GetResponse>; | ||
} & Sudo): Promise<import("../infrastructure").GetResponse>; | ||
} | ||
export default Pipelines; |
@@ -1,11 +0,11 @@ | ||
/// <reference types="../typings" /> | ||
import { BaseService } from '../infrastructure'; | ||
import { BaseRequestOptions, BaseService, PaginatedRequestOptions, Sudo } from '../infrastructure'; | ||
import { ProjectId, PipelineScheduleId } from '.'; | ||
declare class PipelineSchedules extends BaseService { | ||
all(projectId: ProjectId, options?: PaginatedRequestOptions): Promise<GetResponse>; | ||
all(projectId: ProjectId, options?: PaginatedRequestOptions): Promise<import("../infrastructure").GetResponse>; | ||
create(projectId: ProjectId, description: string, ref: string, cron: string, options?: BaseRequestOptions): Promise<object>; | ||
edit(projectId: ProjectId, scheduleId: PipelineScheduleId, options?: BaseRequestOptions): Promise<object>; | ||
remove(projectId: ProjectId, scheduleId: PipelineScheduleId, options?: Sudo): Promise<object>; | ||
show(projectId: ProjectId, scheduleId: PipelineScheduleId, options?: Sudo): Promise<GetResponse>; | ||
show(projectId: ProjectId, scheduleId: PipelineScheduleId, options?: Sudo): Promise<import("../infrastructure").GetResponse>; | ||
takeOwnership(projectId: ProjectId, scheduleId: PipelineScheduleId, options?: Sudo): Promise<object>; | ||
} | ||
export default PipelineSchedules; |
@@ -1,10 +0,10 @@ | ||
/// <reference types="../typings" /> | ||
import { BaseService } from '../infrastructure'; | ||
import { BaseRequestOptions, BaseService, PaginatedRequestOptions } from '../infrastructure'; | ||
import { ProjectId, PipelineScheduleId, KeyId } from '.'; | ||
declare class PipelineScheduleVariables extends BaseService { | ||
all(projectId: ProjectId, pipelineScheduleId: PipelineScheduleId, options?: PaginatedRequestOptions): Promise<GetResponse>; | ||
all(projectId: ProjectId, pipelineScheduleId: PipelineScheduleId, options?: PaginatedRequestOptions): Promise<import("../infrastructure").GetResponse>; | ||
create(projectId: ProjectId, pipelineScheduleId: PipelineScheduleId, options?: BaseRequestOptions): Promise<object>; | ||
edit(projectId: ProjectId, pipelineScheduleId: PipelineScheduleId, keyId: KeyId, options?: BaseRequestOptions): Promise<object>; | ||
show(projectId: ProjectId, pipelineScheduleId: PipelineScheduleId, keyId: KeyId, options?: BaseRequestOptions): Promise<GetResponse>; | ||
show(projectId: ProjectId, pipelineScheduleId: PipelineScheduleId, keyId: KeyId, options?: BaseRequestOptions): Promise<import("../infrastructure").GetResponse>; | ||
remove(projectId: ProjectId, pipelineScheduleId: PipelineScheduleId, keyId: KeyId, options?: BaseRequestOptions): Promise<object>; | ||
} | ||
export default PipelineScheduleVariables; |
@@ -1,3 +0,3 @@ | ||
/// <reference types="../typings" /> | ||
import { ResourceAccessRequests } from '../templates'; | ||
import { BaseServiceOptions } from '../infrastructure'; | ||
declare class ProjectAccessRequests extends ResourceAccessRequests { | ||
@@ -4,0 +4,0 @@ constructor(options: BaseServiceOptions); |
@@ -1,3 +0,3 @@ | ||
/// <reference types="../typings" /> | ||
import { ResourceBadges } from '../templates'; | ||
import { BaseServiceOptions } from '../infrastructure'; | ||
declare class ProjectBadges extends ResourceBadges { | ||
@@ -4,0 +4,0 @@ constructor(options: BaseServiceOptions); |
@@ -1,3 +0,3 @@ | ||
/// <reference types="../typings" /> | ||
import { ResourceCustomAttributes } from '../templates'; | ||
import { BaseServiceOptions } from '../infrastructure'; | ||
declare class ProjectCustomAttributes extends ResourceCustomAttributes { | ||
@@ -4,0 +4,0 @@ constructor(options: BaseServiceOptions); |
@@ -1,6 +0,6 @@ | ||
/// <reference types="../typings" /> | ||
import { BaseService } from '../infrastructure'; | ||
import { BaseRequestOptions, BaseService, PaginatedRequestOptions, Sudo } from '../infrastructure'; | ||
import { ProjectId, HookId } from '.'; | ||
declare class ProjectHooks extends BaseService { | ||
all(projectId: ProjectId, options?: PaginatedRequestOptions): Promise<GetResponse>; | ||
show(projectId: ProjectId, hookId: HookId, options?: Sudo): Promise<GetResponse>; | ||
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>; | ||
@@ -7,0 +7,0 @@ edit(projectId: ProjectId, hookId: HookId, url: string, options?: BaseRequestOptions): Promise<object>; |
@@ -1,10 +0,10 @@ | ||
/// <reference types="../typings" /> | ||
import { BaseService } from '../infrastructure'; | ||
import { BaseService, Sudo, BaseRequestOptions } from '../infrastructure'; | ||
import { ProjectId } from '.'; | ||
declare class ProjectImportExport extends BaseService { | ||
download(projectId: ProjectId, options?: Sudo): Promise<GetResponse>; | ||
exportStatus(projectId: ProjectId, options?: Sudo): Promise<GetResponse>; | ||
download(projectId: ProjectId, options?: Sudo): Promise<import("../infrastructure").GetResponse>; | ||
exportStatus(projectId: ProjectId, options?: Sudo): Promise<import("../infrastructure").GetResponse>; | ||
import(content: string, path: string, options?: Sudo): Promise<object>; | ||
importStatus(projectId: ProjectId, options?: Sudo): Promise<GetResponse>; | ||
importStatus(projectId: ProjectId, options?: Sudo): Promise<import("../infrastructure").GetResponse>; | ||
schedule(projectId: ProjectId, options?: BaseRequestOptions): Promise<object>; | ||
} | ||
export default ProjectImportExport; |
@@ -1,3 +0,3 @@ | ||
/// <reference types="../typings" /> | ||
import { ResourceIssueBoards } from '../templates'; | ||
import { BaseServiceOptions } from '../infrastructure'; | ||
declare class ProjectIssueBoards extends ResourceIssueBoards { | ||
@@ -4,0 +4,0 @@ constructor(options: BaseServiceOptions); |
@@ -1,3 +0,3 @@ | ||
/// <reference types="../typings" /> | ||
import { ResourceMembers } from '../templates'; | ||
import { BaseServiceOptions } from '../infrastructure'; | ||
declare class ProjectMembers extends ResourceMembers { | ||
@@ -4,0 +4,0 @@ constructor(options: BaseServiceOptions); |
@@ -1,3 +0,3 @@ | ||
/// <reference types="../typings" /> | ||
import { ResourceMilestones } from '../templates'; | ||
import { BaseServiceOptions } from '../infrastructure'; | ||
declare class ProjectMilestones extends ResourceMilestones { | ||
@@ -4,0 +4,0 @@ constructor(options: BaseServiceOptions); |
@@ -1,5 +0,5 @@ | ||
/// <reference types="../typings" /> | ||
import { BaseService } from '../infrastructure'; | ||
import { BaseRequestOptions, BaseService, PaginatedRequestOptions, Sudo } from '../infrastructure'; | ||
import { ProjectId, UserId, EventOptions, GroupId, NamespaceId, ProjectUploadMetadata } from '.'; | ||
declare class Projects extends BaseService { | ||
all(options?: PaginatedRequestOptions): Promise<GetResponse>; | ||
all(options?: PaginatedRequestOptions): Promise<import("../infrastructure").GetResponse>; | ||
archive(projectId: ProjectId, options?: Sudo): Promise<object>; | ||
@@ -10,12 +10,12 @@ create({ userId, ...options }: { | ||
edit(projectId: ProjectId, options?: BaseRequestOptions): Promise<object>; | ||
events(projectId: ProjectId, options?: BaseRequestOptions & EventOptions): Promise<GetResponse>; | ||
events(projectId: ProjectId, options?: BaseRequestOptions & EventOptions): Promise<import("../infrastructure").GetResponse>; | ||
fork(projectId: ProjectId, options?: BaseRequestOptions): Promise<object>; | ||
forks(projectId: ProjectId, options?: BaseRequestOptions): Promise<GetResponse>; | ||
languages(projectId: ProjectId, options?: Sudo): Promise<GetResponse>; | ||
forks(projectId: ProjectId, options?: BaseRequestOptions): Promise<import("../infrastructure").GetResponse>; | ||
languages(projectId: ProjectId, options?: Sudo): Promise<import("../infrastructure").GetResponse>; | ||
mirrorPull(projectId: ProjectId, options?: Sudo): Promise<object>; | ||
remove(projectId: ProjectId, options?: Sudo): Promise<object>; | ||
removeFork(projectId: ProjectId, options?: Sudo): Promise<object>; | ||
search(projectName: string): Promise<GetResponse>; | ||
search(projectName: string): Promise<import("../infrastructure").GetResponse>; | ||
share(projectId: ProjectId, groupId: GroupId, groupAccess: number, options?: BaseRequestOptions): Promise<object>; | ||
show(projectId: ProjectId, options?: BaseRequestOptions): Promise<GetResponse>; | ||
show(projectId: ProjectId, options?: BaseRequestOptions): Promise<import("../infrastructure").GetResponse>; | ||
star(projectId: ProjectId, options?: Sudo): Promise<object>; | ||
@@ -22,0 +22,0 @@ statuses(projectId: ProjectId, sha: string, state: string, options?: BaseRequestOptions): Promise<object>; |
@@ -1,3 +0,3 @@ | ||
/// <reference types="../typings" /> | ||
import { ResourceAwardEmojis } from '../templates'; | ||
import { BaseServiceOptions } from '../infrastructure'; | ||
declare class ProjectSnippetAwardEmojis extends ResourceAwardEmojis { | ||
@@ -4,0 +4,0 @@ constructor(options: BaseServiceOptions); |
@@ -1,3 +0,3 @@ | ||
/// <reference types="../typings" /> | ||
import { ResourceDiscussions } from '../templates'; | ||
import { BaseServiceOptions } from '../infrastructure'; | ||
declare class ProjectSnippetDiscussions extends ResourceDiscussions { | ||
@@ -4,0 +4,0 @@ constructor(options: BaseServiceOptions); |
@@ -1,3 +0,3 @@ | ||
/// <reference types="../typings" /> | ||
import { ResourceNotes } from '../templates'; | ||
import { BaseServiceOptions } from '../infrastructure'; | ||
declare class ProjectSnippetNotes extends ResourceNotes { | ||
@@ -4,0 +4,0 @@ constructor(options: BaseServiceOptions); |
@@ -1,12 +0,12 @@ | ||
/// <reference types="../typings" /> | ||
import { BaseService } from '../infrastructure'; | ||
import { BaseRequestOptions, BaseService, PaginatedRequestOptions, Sudo } from '../infrastructure'; | ||
import { ProjectId, SnippetId, SnippetVisibility } from '.'; | ||
declare class ProjectSnippets extends BaseService { | ||
all(projectId: ProjectId, options?: PaginatedRequestOptions): Promise<GetResponse>; | ||
content(projectId: ProjectId, snippetId: SnippetId, options?: Sudo): Promise<GetResponse>; | ||
all(projectId: ProjectId, options?: PaginatedRequestOptions): Promise<import("../infrastructure").GetResponse>; | ||
content(projectId: ProjectId, snippetId: SnippetId, options?: Sudo): Promise<import("../infrastructure").GetResponse>; | ||
create(projectId: ProjectId, title: string, fileName: string, code: string, visibility: SnippetVisibility, options?: BaseRequestOptions): Promise<object>; | ||
edit(projectId: ProjectId, snippetId: SnippetId, options?: BaseRequestOptions): Promise<object>; | ||
remove(projectId: ProjectId, snippetId: SnippetId, options?: Sudo): Promise<object>; | ||
show(projectId: ProjectId, snippetId: SnippetId, options?: Sudo): Promise<GetResponse>; | ||
userAgentDetails(projectId: ProjectId, snippetId: SnippetId, options?: Sudo): Promise<GetResponse>; | ||
show(projectId: ProjectId, snippetId: SnippetId, options?: Sudo): Promise<import("../infrastructure").GetResponse>; | ||
userAgentDetails(projectId: ProjectId, snippetId: SnippetId, options?: Sudo): Promise<import("../infrastructure").GetResponse>; | ||
} | ||
export default ProjectSnippets; |
@@ -1,3 +0,3 @@ | ||
/// <reference types="../typings" /> | ||
import { ResourceVariables } from '../templates'; | ||
import { BaseServiceOptions } from '../infrastructure'; | ||
declare class ProjectVariables extends ResourceVariables { | ||
@@ -4,0 +4,0 @@ constructor(options: BaseServiceOptions); |
@@ -1,9 +0,9 @@ | ||
/// <reference types="../typings" /> | ||
import { BaseService } from '../infrastructure'; | ||
import { BaseRequestOptions, BaseService, PaginatedRequestOptions, Sudo } from '../infrastructure'; | ||
import { ProjectId } from '.'; | ||
declare class ProtectedBranches extends BaseService { | ||
all(projectId: ProjectId, options?: PaginatedRequestOptions): Promise<GetResponse>; | ||
all(projectId: ProjectId, options?: PaginatedRequestOptions): Promise<import("../infrastructure").GetResponse>; | ||
protect(projectId: ProjectId, branchName: string, options?: BaseRequestOptions): Promise<object>; | ||
show(projectId: ProjectId, branchName: string, options?: Sudo): Promise<GetResponse>; | ||
show(projectId: ProjectId, branchName: string, options?: Sudo): Promise<import("../infrastructure").GetResponse>; | ||
unprotect(projectId: ProjectId, branchName: string, options?: Sudo): Promise<object>; | ||
} | ||
export default ProtectedBranches; |
@@ -1,9 +0,9 @@ | ||
/// <reference types="../typings" /> | ||
import { BaseService } from '../infrastructure'; | ||
import { BaseRequestOptions, BaseService, PaginatedRequestOptions, Sudo } from '../infrastructure'; | ||
import { ProjectId } from '.'; | ||
declare class ProtectedTags extends BaseService { | ||
all(projectId: ProjectId, options: PaginatedRequestOptions): Promise<GetResponse>; | ||
all(projectId: ProjectId, options: PaginatedRequestOptions): Promise<import("../infrastructure").GetResponse>; | ||
protect(projectId: ProjectId, tagName: string, options: BaseRequestOptions): Promise<object>; | ||
show(projectId: ProjectId, tagName: string, options: Sudo): Promise<GetResponse>; | ||
show(projectId: ProjectId, tagName: string, options: Sudo): Promise<import("../infrastructure").GetResponse>; | ||
unprotect(projectId: ProjectId, tagName: string, options: Sudo): Promise<object>; | ||
} | ||
export default ProtectedTags; |
@@ -1,3 +0,3 @@ | ||
/// <reference types="../typings" /> | ||
import { BaseService } from '../infrastructure'; | ||
import { BaseService, BaseRequestOptions, Sudo } from '../infrastructure'; | ||
import { ProjectId } from '.'; | ||
declare class PushRule extends BaseService { | ||
@@ -9,4 +9,4 @@ create(projectId: ProjectId, options?: BaseRequestOptions): Promise<object>; | ||
remove(projectId: ProjectId, options?: Sudo): Promise<object>; | ||
show(projectId: ProjectId, options?: Sudo): Promise<GetResponse>; | ||
show(projectId: ProjectId, options?: Sudo): Promise<import("../infrastructure").GetResponse>; | ||
} | ||
export default PushRule; |
@@ -1,5 +0,5 @@ | ||
/// <reference types="../typings" /> | ||
import { BaseService } from '../infrastructure'; | ||
import { BaseService, PaginatedRequestOptions, Sudo } from '../infrastructure'; | ||
import { ProjectId } from '.'; | ||
declare class ReleaseLinks extends BaseService { | ||
all(projectId: ProjectId, tagName: string, options?: PaginatedRequestOptions): Promise<GetResponse>; | ||
all(projectId: ProjectId, tagName: string, options?: PaginatedRequestOptions): Promise<import("../infrastructure").GetResponse>; | ||
create(projectId: ProjectId, tagName: string, name: string, url: string, options?: Sudo): Promise<object>; | ||
@@ -12,4 +12,4 @@ edit(projectId: ProjectId, tagName: string, linkId: number, options: Sudo & ({ | ||
remove(projectId: ProjectId, tagName: string, linkId: number, options?: Sudo): Promise<object>; | ||
show(projectId: ProjectId, tagName: string, linkId: number, options?: Sudo): Promise<GetResponse>; | ||
show(projectId: ProjectId, tagName: string, linkId: number, options?: Sudo): Promise<import("../infrastructure").GetResponse>; | ||
} | ||
export default ReleaseLinks; |
@@ -1,10 +0,10 @@ | ||
/// <reference types="../typings" /> | ||
import { BaseService } from '../infrastructure'; | ||
import { BaseRequestOptions, BaseService, PaginatedRequestOptions, Sudo } from '../infrastructure'; | ||
import { ProjectId } from '.'; | ||
declare class Releases extends BaseService { | ||
all(projectId: ProjectId, options?: PaginatedRequestOptions): Promise<GetResponse>; | ||
all(projectId: ProjectId, options?: PaginatedRequestOptions): Promise<import("../infrastructure").GetResponse>; | ||
create(projectId: ProjectId, options?: BaseRequestOptions): Promise<object>; | ||
edit(projectId: ProjectId, tagName: string, options?: BaseRequestOptions): Promise<object>; | ||
remove(projectId: ProjectId, tagName: string, options?: Sudo): Promise<object>; | ||
show(projectId: ProjectId, tagName: string, options?: Sudo): Promise<GetResponse>; | ||
show(projectId: ProjectId, tagName: string, options?: Sudo): Promise<import("../infrastructure").GetResponse>; | ||
} | ||
export default Releases; |
@@ -1,13 +0,13 @@ | ||
/// <reference types="../typings" /> | ||
import { BaseService } from '../infrastructure'; | ||
import { BaseService, Sudo, BaseRequestOptions } from '../infrastructure'; | ||
import { ProjectId } from '.'; | ||
declare class Repositories extends BaseService { | ||
compare(projectId: ProjectId, from: string, to: string, options?: Sudo): Promise<GetResponse>; | ||
contributors(projectId: ProjectId, options?: Sudo): Promise<GetResponse>; | ||
compare(projectId: ProjectId, from: string, to: string, options?: Sudo): Promise<import("../infrastructure").GetResponse>; | ||
contributors(projectId: ProjectId, options?: Sudo): Promise<import("../infrastructure").GetResponse>; | ||
showArchive(projectId: ProjectId, options?: { | ||
sha: string; | ||
} & Sudo): Promise<GetResponse>; | ||
showBlob(projectId: ProjectId, sha: string, options?: Sudo): Promise<GetResponse>; | ||
showBlobRaw(projectId: ProjectId, sha: string, options?: Sudo): Promise<GetResponse>; | ||
tree(projectId: ProjectId, options?: BaseRequestOptions): Promise<GetResponse>; | ||
} & Sudo): Promise<import("../infrastructure").GetResponse>; | ||
showBlob(projectId: ProjectId, sha: string, options?: Sudo): Promise<import("../infrastructure").GetResponse>; | ||
showBlobRaw(projectId: ProjectId, sha: string, options?: Sudo): Promise<import("../infrastructure").GetResponse>; | ||
tree(projectId: ProjectId, options?: BaseRequestOptions): Promise<import("../infrastructure").GetResponse>; | ||
} | ||
export default Repositories; |
@@ -1,3 +0,3 @@ | ||
/// <reference types="../typings" /> | ||
import { BaseService } from '../infrastructure'; | ||
import { BaseService, BaseRequestOptions, Sudo } from '../infrastructure'; | ||
import { ProjectId } from '.'; | ||
declare class RepositoryFiles extends BaseService { | ||
@@ -7,5 +7,5 @@ create(projectId: ProjectId, filePath: string, branch: string, content: string, commitMessage: string, options?: BaseRequestOptions): Promise<object>; | ||
remove(projectId: ProjectId, filePath: string, branch: string, commitMessage: string, options?: BaseRequestOptions): Promise<object>; | ||
show(projectId: ProjectId, filePath: string, ref: string, options?: Sudo): Promise<GetResponse>; | ||
showRaw(projectId: ProjectId, filePath: string, ref: string, options?: Sudo): Promise<GetResponse>; | ||
show(projectId: ProjectId, filePath: string, ref: string, options?: Sudo): Promise<import("../infrastructure").GetResponse>; | ||
showRaw(projectId: ProjectId, filePath: string, ref: string, options?: Sudo): Promise<import("../infrastructure").GetResponse>; | ||
} | ||
export default RepositoryFiles; |
@@ -1,15 +0,15 @@ | ||
/// <reference types="../typings" /> | ||
import { BaseService } from '../infrastructure'; | ||
import { BaseRequestOptions, BaseService, PaginatedRequestOptions, Sudo } from '../infrastructure'; | ||
import { ProjectId, RunnerId } from '.'; | ||
declare class Runners extends BaseService { | ||
all({ projectId, ...options }: { | ||
projectId: ProjectId; | ||
} & PaginatedRequestOptions): Promise<GetResponse>; | ||
allOwned(options?: BaseRequestOptions): Promise<GetResponse>; | ||
} & PaginatedRequestOptions): Promise<import("../infrastructure").GetResponse>; | ||
allOwned(options?: BaseRequestOptions): Promise<import("../infrastructure").GetResponse>; | ||
edit(runnerId: RunnerId, options?: BaseRequestOptions): Promise<object>; | ||
enable(projectId: ProjectId, runnerId: RunnerId, options?: Sudo): Promise<object>; | ||
disable(projectId: ProjectId, runnerId: RunnerId, options?: Sudo): Promise<object>; | ||
jobs(runnerId: RunnerId, options?: Sudo): Promise<GetResponse>; | ||
jobs(runnerId: RunnerId, options?: Sudo): Promise<import("../infrastructure").GetResponse>; | ||
remove(runnerId: RunnerId, options?: Sudo): Promise<object>; | ||
show(runnerId: RunnerId, options?: Sudo): Promise<GetResponse>; | ||
show(runnerId: RunnerId, options?: Sudo): Promise<import("../infrastructure").GetResponse>; | ||
} | ||
export default Runners; |
@@ -1,3 +0,3 @@ | ||
/// <reference types="../typings" /> | ||
import { BaseService } from '../infrastructure'; | ||
import { BaseService, BaseRequestOptions } from '../infrastructure'; | ||
import { ProjectId, GroupId } from '.'; | ||
declare class Search extends BaseService { | ||
@@ -7,4 +7,4 @@ all(scope: string, search: string, { projectId, groupId, ...options }: { | ||
groupId?: GroupId; | ||
} & BaseRequestOptions): Promise<GetResponse>; | ||
} & BaseRequestOptions): Promise<import("../infrastructure").GetResponse>; | ||
} | ||
export default Search; |
@@ -1,8 +0,8 @@ | ||
/// <reference types="../typings" /> | ||
import { BaseService } from '../infrastructure'; | ||
import { BaseService, BaseRequestOptions, Sudo } from '../infrastructure'; | ||
import { ProjectId, SupportedService } from '.'; | ||
declare class Services extends BaseService { | ||
edit(projectId: ProjectId, serviceName: SupportedService, options?: BaseRequestOptions): Promise<object>; | ||
remove(projectId: ProjectId, serviceName: SupportedService, options?: Sudo): Promise<object>; | ||
show(projectId: ProjectId, serviceName: SupportedService, options?: Sudo): Promise<GetResponse>; | ||
show(projectId: ProjectId, serviceName: SupportedService, options?: Sudo): Promise<import("../infrastructure").GetResponse>; | ||
} | ||
export default Services; |
@@ -1,9 +0,8 @@ | ||
/// <reference types="../typings" /> | ||
import { BaseService } from '../infrastructure'; | ||
declare class SidekiqMetrics extends BaseService { | ||
queueMetrics(): Promise<GetResponse>; | ||
processMetrics(): Promise<GetResponse>; | ||
jobStats(): Promise<GetResponse>; | ||
compoundMetrics(): Promise<GetResponse>; | ||
queueMetrics(): Promise<import("../infrastructure").GetResponse>; | ||
processMetrics(): Promise<import("../infrastructure").GetResponse>; | ||
jobStats(): Promise<import("../infrastructure").GetResponse>; | ||
compoundMetrics(): Promise<import("../infrastructure").GetResponse>; | ||
} | ||
export default SidekiqMetrics; |
@@ -1,14 +0,14 @@ | ||
/// <reference types="../typings" /> | ||
import { BaseService } from '../infrastructure'; | ||
import { BaseRequestOptions, BaseService, PaginatedRequestOptions, Sudo } from '../infrastructure'; | ||
import { SnippetId, SnippetVisibility } from '.'; | ||
declare class Snippets extends BaseService { | ||
all({ public: p, ...options }: { | ||
public: boolean; | ||
} & PaginatedRequestOptions): Promise<GetResponse>; | ||
content(snippetId: SnippetId, options?: Sudo): Promise<GetResponse>; | ||
} & 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<GetResponse>; | ||
userAgentDetails(snippetId: SnippetId, options?: Sudo): Promise<GetResponse>; | ||
show(snippetId: SnippetId, options?: Sudo): Promise<import("../infrastructure").GetResponse>; | ||
userAgentDetails(snippetId: SnippetId, options?: Sudo): Promise<import("../infrastructure").GetResponse>; | ||
} | ||
export default Snippets; |
@@ -1,6 +0,6 @@ | ||
/// <reference types="../typings" /> | ||
import { BaseService } from '../infrastructure'; | ||
import { BaseRequestOptions, BaseService, PaginatedRequestOptions, Sudo } from '../infrastructure'; | ||
import { HookId } from '.'; | ||
declare class SystemHooks extends BaseService { | ||
add(url: string, options?: BaseRequestOptions): Promise<object>; | ||
all(options?: PaginatedRequestOptions): Promise<GetResponse>; | ||
all(options?: PaginatedRequestOptions): Promise<import("../infrastructure").GetResponse>; | ||
edit(hookId: HookId, url: string, options?: BaseRequestOptions): Promise<object>; | ||
@@ -7,0 +7,0 @@ remove(hookId: HookId, options?: Sudo): Promise<object>; |
@@ -1,9 +0,9 @@ | ||
/// <reference types="../typings" /> | ||
import { BaseService } from '../infrastructure'; | ||
import { BaseRequestOptions, BaseService, PaginatedRequestOptions, Sudo } from '../infrastructure'; | ||
import { ProjectId } from '.'; | ||
declare class Tags extends BaseService { | ||
all(projectId: ProjectId, options?: PaginatedRequestOptions): Promise<GetResponse>; | ||
all(projectId: ProjectId, options?: PaginatedRequestOptions): Promise<import("../infrastructure").GetResponse>; | ||
create(projectId: ProjectId, options?: BaseRequestOptions): Promise<object>; | ||
remove(projectId: ProjectId, tagName: string, options?: Sudo): Promise<object>; | ||
show(projectId: ProjectId, tagName: string, options?: Sudo): Promise<GetResponse>; | ||
show(projectId: ProjectId, tagName: string, options?: Sudo): Promise<import("../infrastructure").GetResponse>; | ||
} | ||
export default Tags; |
@@ -1,5 +0,5 @@ | ||
/// <reference types="../typings" /> | ||
import { BaseService } from '../infrastructure'; | ||
import { BaseService, PaginatedRequestOptions, Sudo } from '../infrastructure'; | ||
import { ProjectId, MergeRequestId, TodoId } from '.'; | ||
declare class Todos extends BaseService { | ||
all(options?: PaginatedRequestOptions): Promise<GetResponse>; | ||
all(options?: PaginatedRequestOptions): Promise<import("../infrastructure").GetResponse>; | ||
create(projectId: ProjectId, mergerequestId: MergeRequestId, options?: Sudo): Promise<object>; | ||
@@ -6,0 +6,0 @@ done({ todoId, ...options }: { |
@@ -1,11 +0,11 @@ | ||
/// <reference types="../typings" /> | ||
import { BaseService } from '../infrastructure'; | ||
import { BaseRequestOptions, BaseService, PaginatedRequestOptions, Sudo } from '../infrastructure'; | ||
import { ProjectId, TriggerId } from '.'; | ||
declare class Triggers extends BaseService { | ||
add(projectId: ProjectId, options?: BaseRequestOptions): Promise<object>; | ||
all(projectId: ProjectId, options?: PaginatedRequestOptions): Promise<GetResponse>; | ||
all(projectId: ProjectId, options?: PaginatedRequestOptions): Promise<import("../infrastructure").GetResponse>; | ||
edit(projectId: ProjectId, triggerId: TriggerId, options?: BaseRequestOptions): Promise<object>; | ||
remove(projectId: ProjectId, triggerId: TriggerId, options?: Sudo): Promise<object>; | ||
show(projectId: ProjectId, triggerId: TriggerId, options?: Sudo): Promise<GetResponse>; | ||
show(projectId: ProjectId, triggerId: TriggerId, options?: Sudo): Promise<import("../infrastructure").GetResponse>; | ||
pipeline(projectId: ProjectId, ref: string, token: string, options?: Sudo): Promise<object>; | ||
} | ||
export default Triggers; |
@@ -1,3 +0,3 @@ | ||
/// <reference types="../typings" /> | ||
import { ResourceCustomAttributes } from '../templates'; | ||
import { BaseServiceOptions } from '../infrastructure'; | ||
declare class UserCustomAttributes extends ResourceCustomAttributes { | ||
@@ -4,0 +4,0 @@ constructor(options: BaseServiceOptions); |
@@ -1,11 +0,11 @@ | ||
/// <reference types="../typings" /> | ||
import { BaseService } from '../infrastructure'; | ||
import { BaseRequestOptions, BaseService, PaginatedRequestOptions } from '../infrastructure'; | ||
import { UserId } from '.'; | ||
declare class UserEmails extends BaseService { | ||
all({ userId, ...options }?: { | ||
userId?: UserId; | ||
} & PaginatedRequestOptions): Promise<GetResponse>; | ||
} & PaginatedRequestOptions): Promise<import("../infrastructure").GetResponse>; | ||
add(email: any, { userId, ...options }?: { | ||
userId?: UserId; | ||
} & BaseRequestOptions): Promise<object>; | ||
show(emailId: any, options?: BaseRequestOptions): Promise<GetResponse>; | ||
show(emailId: any, options?: BaseRequestOptions): Promise<import("../infrastructure").GetResponse>; | ||
remove(emailId: any, { userId, ...options }?: { | ||
@@ -12,0 +12,0 @@ userId?: UserId; |
@@ -1,7 +0,7 @@ | ||
/// <reference types="../typings" /> | ||
import { BaseService } from '../infrastructure'; | ||
import { BaseRequestOptions, BaseService, PaginatedRequestOptions } from '../infrastructure'; | ||
import { UserId } from '.'; | ||
declare class UserGPGKeys extends BaseService { | ||
all({ userId, ...options }?: { | ||
userId?: UserId; | ||
} & PaginatedRequestOptions): Promise<GetResponse>; | ||
} & PaginatedRequestOptions): Promise<import("../infrastructure").GetResponse>; | ||
add(title: any, key: any, { userId, ...options }?: { | ||
@@ -12,3 +12,3 @@ userId?: UserId; | ||
userId?: UserId; | ||
} & BaseRequestOptions): Promise<GetResponse>; | ||
} & BaseRequestOptions): Promise<import("../infrastructure").GetResponse>; | ||
remove(keyId: any, { userId, ...options }?: { | ||
@@ -15,0 +15,0 @@ userId?: UserId; |
@@ -1,9 +0,9 @@ | ||
/// <reference types="../typings" /> | ||
import { BaseService } from '../infrastructure'; | ||
import { BaseService, PaginatedRequestOptions, Sudo } from '../infrastructure'; | ||
import { UserId, ImpersonationTokenScope, ImpersonationTokenId } from '.'; | ||
declare class UserImpersonationTokens extends BaseService { | ||
all(userId: UserId, options?: PaginatedRequestOptions): Promise<GetResponse>; | ||
all(userId: UserId, options?: PaginatedRequestOptions): Promise<import("../infrastructure").GetResponse>; | ||
add(userId: UserId, name: string, scopes: ImpersonationTokenScope, expiresAt: string, options?: Sudo): Promise<object>; | ||
show(userId: UserId, tokenId: ImpersonationTokenId, options?: Sudo): Promise<GetResponse>; | ||
show(userId: UserId, tokenId: ImpersonationTokenId, options?: Sudo): Promise<import("../infrastructure").GetResponse>; | ||
revoke(userId: UserId, tokenId: ImpersonationTokenId, options?: Sudo): Promise<object>; | ||
} | ||
export default UserImpersonationTokens; |
@@ -1,11 +0,11 @@ | ||
/// <reference types="../typings" /> | ||
import { BaseService } from '../infrastructure'; | ||
import { BaseRequestOptions, BaseService, PaginatedRequestOptions } from '../infrastructure'; | ||
import { UserId } from '.'; | ||
declare class UserKeys extends BaseService { | ||
all({ userId, ...options }?: { | ||
userId?: UserId; | ||
} & PaginatedRequestOptions): Promise<GetResponse>; | ||
} & PaginatedRequestOptions): Promise<import("../infrastructure").GetResponse>; | ||
create(title: any, key: any, { userId, ...options }?: { | ||
userId?: UserId; | ||
} & BaseRequestOptions): Promise<object>; | ||
show(keyId: any, options?: BaseRequestOptions): Promise<GetResponse>; | ||
show(keyId: any, options?: BaseRequestOptions): Promise<import("../infrastructure").GetResponse>; | ||
remove(keyId: any, { userId, ...options }?: { | ||
@@ -12,0 +12,0 @@ userId?: UserId; |
@@ -1,15 +0,15 @@ | ||
/// <reference types="../typings" /> | ||
import { BaseService } from '../infrastructure'; | ||
import { BaseRequestOptions, BaseService, PaginatedRequestOptions, Sudo } from '../infrastructure'; | ||
import { UserId, EventOptions } from '.'; | ||
declare class Users extends BaseService { | ||
all(options?: PaginatedRequestOptions): Promise<GetResponse>; | ||
activities(options?: Sudo): Promise<GetResponse>; | ||
projects(userId: UserId, options?: Sudo): Promise<GetResponse>; | ||
all(options?: PaginatedRequestOptions): Promise<import("../infrastructure").GetResponse>; | ||
activities(options?: Sudo): Promise<import("../infrastructure").GetResponse>; | ||
projects(userId: UserId, options?: Sudo): Promise<import("../infrastructure").GetResponse>; | ||
block(userId: UserId, options?: Sudo): Promise<object>; | ||
create(options?: BaseRequestOptions): Promise<object>; | ||
current(options?: Sudo): Promise<GetResponse>; | ||
current(options?: Sudo): Promise<import("../infrastructure").GetResponse>; | ||
edit(userId: UserId, options?: BaseRequestOptions): Promise<object>; | ||
events(userId: UserId, options?: BaseRequestOptions & EventOptions): Promise<GetResponse>; | ||
events(userId: UserId, options?: BaseRequestOptions & EventOptions): Promise<import("../infrastructure").GetResponse>; | ||
session(email: string, password: string, options?: Sudo): Promise<object>; | ||
search(emailOrUsername: string, options?: Sudo): Promise<GetResponse>; | ||
show(userId: UserId, options?: BaseRequestOptions): Promise<GetResponse>; | ||
search(emailOrUsername: string, options?: Sudo): Promise<import("../infrastructure").GetResponse>; | ||
show(userId: UserId, options?: BaseRequestOptions): Promise<import("../infrastructure").GetResponse>; | ||
remove(userId: UserId, options?: Sudo): Promise<object>; | ||
@@ -16,0 +16,0 @@ unblock(userId: UserId, options?: Sudo): Promise<object>; |
@@ -1,6 +0,5 @@ | ||
/// <reference types="../typings" /> | ||
import { BaseService } from '../infrastructure'; | ||
import { BaseService, Sudo } from '../infrastructure'; | ||
declare class Version extends BaseService { | ||
show(options?: Sudo): Promise<GetResponse>; | ||
show(options?: Sudo): Promise<import("../infrastructure").GetResponse>; | ||
} | ||
export default Version; |
@@ -1,10 +0,10 @@ | ||
/// <reference types="../typings" /> | ||
import { BaseService } from '../infrastructure'; | ||
import { BaseRequestOptions, BaseService, PaginatedRequestOptions, Sudo } from '../infrastructure'; | ||
import { ProjectId } from '.'; | ||
declare class Wikis extends BaseService { | ||
all(projectId: ProjectId, options?: PaginatedRequestOptions): Promise<GetResponse>; | ||
all(projectId: ProjectId, options?: PaginatedRequestOptions): Promise<import("../infrastructure").GetResponse>; | ||
create(projectId: ProjectId, options?: BaseRequestOptions): Promise<object>; | ||
edit(projectId: ProjectId, slug: string, options?: BaseRequestOptions): Promise<object>; | ||
show(projectId: ProjectId, slug: string, options?: Sudo): Promise<GetResponse>; | ||
show(projectId: ProjectId, slug: string, options?: Sudo): Promise<import("../infrastructure").GetResponse>; | ||
remove(projectId: ProjectId, slug: string, options?: Sudo): Promise<object>; | ||
} | ||
export default Wikis; |
@@ -1,6 +0,6 @@ | ||
/// <reference types="../typings" /> | ||
import { BaseService } from '../infrastructure'; | ||
import { BaseService, BaseServiceOptions, Sudo } from '../infrastructure'; | ||
import { ResourceId, UserId, AccessLevel } from '..'; | ||
declare class ResourceAccessRequests extends BaseService { | ||
constructor(resourceType: string, options: BaseServiceOptions); | ||
all(resourceId: ResourceId): Promise<GetResponse>; | ||
all(resourceId: ResourceId): Promise<import("../infrastructure").GetResponse>; | ||
request(resourceId: ResourceId): Promise<object>; | ||
@@ -7,0 +7,0 @@ approve(resourceId: ResourceId, userId: UserId, { accessLevel }: { |
@@ -1,11 +0,11 @@ | ||
/// <reference types="../typings" /> | ||
import { BaseService } from '../infrastructure'; | ||
import { BaseService, BaseServiceOptions, PaginatedRequestOptions, Sudo } from '../infrastructure'; | ||
import { ProjectId, ResourceId, NoteId, AwardId } from '..'; | ||
declare class ResourceAwardsEmojis extends BaseService { | ||
protected resourceType: string; | ||
constructor(resourceType: string, options: BaseServiceOptions); | ||
all(projectId: ProjectId, resourceId: ResourceId, noteId: NoteId, options?: PaginatedRequestOptions): Promise<GetResponse>; | ||
all(projectId: ProjectId, resourceId: ResourceId, noteId: NoteId, options?: PaginatedRequestOptions): Promise<import("../infrastructure").GetResponse>; | ||
award(projectId: ProjectId, resourceId: ResourceId, name: string, noteId: NoteId, options?: Sudo): Promise<object>; | ||
remove(projectId: ProjectId, resourceId: ResourceId, awardId: AwardId, noteId: NoteId, options?: Sudo): Promise<object>; | ||
show(projectId: ProjectId, resourceId: ResourceId, awardId: AwardId, noteId: NoteId, options?: Sudo): Promise<GetResponse>; | ||
show(projectId: ProjectId, resourceId: ResourceId, awardId: AwardId, noteId: NoteId, options?: Sudo): Promise<import("../infrastructure").GetResponse>; | ||
} | ||
export default ResourceAwardsEmojis; |
@@ -1,12 +0,12 @@ | ||
/// <reference types="../typings" /> | ||
import { BaseService } from '../infrastructure'; | ||
import { BaseRequestOptions, BaseService, BaseServiceOptions, PaginatedRequestOptions, Sudo } from '../infrastructure'; | ||
import { ResourceId, BadgeId } from '..'; | ||
declare class ResourceBadges extends BaseService { | ||
constructor(resourceType: string, options: BaseServiceOptions); | ||
add(resourceId: ResourceId, options?: BaseRequestOptions): Promise<object>; | ||
all(resourceId: ResourceId, options?: PaginatedRequestOptions): Promise<GetResponse>; | ||
all(resourceId: ResourceId, options?: PaginatedRequestOptions): Promise<import("../infrastructure").GetResponse>; | ||
edit(resourceId: ResourceId, badgeId: BadgeId, options?: BaseRequestOptions): Promise<object>; | ||
preview(resourceId: ResourceId, linkUrl: string, imageUrl: string, options?: Sudo): Promise<GetResponse>; | ||
preview(resourceId: ResourceId, linkUrl: string, imageUrl: string, options?: Sudo): Promise<import("../infrastructure").GetResponse>; | ||
remove(resourceId: ResourceId, badgeId: BadgeId, options?: Sudo): Promise<object>; | ||
show(resourceId: ResourceId, badgeId: BadgeId, options?: Sudo): Promise<GetResponse>; | ||
show(resourceId: ResourceId, badgeId: BadgeId, options?: Sudo): Promise<import("../infrastructure").GetResponse>; | ||
} | ||
export default ResourceBadges; |
@@ -1,10 +0,10 @@ | ||
/// <reference types="../typings" /> | ||
import { BaseService } from '../infrastructure'; | ||
import { BaseService, BaseServiceOptions, PaginatedRequestOptions, Sudo } from '../infrastructure'; | ||
import { ResourceId, CustomAttributeId } from '..'; | ||
declare class ResourceCustomAttributes extends BaseService { | ||
constructor(resourceType: string, options: BaseServiceOptions); | ||
all(resourceId: ResourceId, options?: PaginatedRequestOptions): Promise<GetResponse>; | ||
all(resourceId: ResourceId, options?: PaginatedRequestOptions): Promise<import("../infrastructure").GetResponse>; | ||
set(resourceId: ResourceId, customAttributeId: CustomAttributeId, value: string, options?: Sudo): Promise<object>; | ||
remove(resourceId: ResourceId, customAttributeId: CustomAttributeId, options?: Sudo): Promise<object>; | ||
show(resourceId: ResourceId, customAttributeId: CustomAttributeId, options?: Sudo): Promise<GetResponse>; | ||
show(resourceId: ResourceId, customAttributeId: CustomAttributeId, options?: Sudo): Promise<import("../infrastructure").GetResponse>; | ||
} | ||
export default ResourceCustomAttributes; |
@@ -1,3 +0,3 @@ | ||
/// <reference types="../typings" /> | ||
import { BaseService } from '../infrastructure'; | ||
import { BaseRequestOptions, BaseService, BaseServiceOptions, PaginatedRequestOptions, Sudo } from '../infrastructure'; | ||
import { ResourceId, DiscussionId, NoteId } from '..'; | ||
declare class ResourceDiscussions extends BaseService { | ||
@@ -7,8 +7,8 @@ protected resource2Type: string; | ||
addNote(resourceId: ResourceId, resource2Id: ResourceId, discussionId: DiscussionId, noteId: NoteId, content: string, options?: BaseRequestOptions): Promise<object>; | ||
all(resourceId: ResourceId, resource2Id: ResourceId, options?: PaginatedRequestOptions): Promise<GetResponse>; | ||
all(resourceId: ResourceId, resource2Id: ResourceId, options?: PaginatedRequestOptions): Promise<import("../infrastructure").GetResponse>; | ||
create(resourceId: ResourceId, resource2Id: ResourceId, content: string, options?: BaseRequestOptions): Promise<object>; | ||
editNote(resourceId: ResourceId, resource2Id: ResourceId, discussionId: DiscussionId, noteId: NoteId, options?: BaseRequestOptions): Promise<object>; | ||
removeNote(resourceId: ResourceId, resource2Id: ResourceId, discussionId: DiscussionId, noteId: NoteId, options?: Sudo): Promise<object>; | ||
show(resourceId: ResourceId, resource2Id: ResourceId, discussionId: DiscussionId, options?: Sudo): Promise<GetResponse>; | ||
show(resourceId: ResourceId, resource2Id: ResourceId, discussionId: DiscussionId, options?: Sudo): Promise<import("../infrastructure").GetResponse>; | ||
} | ||
export default ResourceDiscussions; |
@@ -1,6 +0,6 @@ | ||
/// <reference types="../typings" /> | ||
import { BaseService } from '../infrastructure'; | ||
import { BaseRequestOptions, BaseService, PaginatedRequestOptions, Sudo } from '../infrastructure'; | ||
import { ResourceId, LabelId } from '..'; | ||
declare class ResourceIssueBoards extends BaseService { | ||
constructor(resourceType: string, options: any); | ||
all(resourceId: ResourceId, options?: PaginatedRequestOptions): Promise<GetResponse>; | ||
all(resourceId: ResourceId, options?: PaginatedRequestOptions): Promise<import("../infrastructure").GetResponse>; | ||
create(resourceId: ResourceId, name: string, options?: Sudo): Promise<object>; | ||
@@ -10,8 +10,8 @@ createList(resourceId: ResourceId, boardId: number, labelId: LabelId, options?: Sudo): Promise<object>; | ||
editList(resourceId: ResourceId, boardId: number, listId: number, position: number, options?: Sudo): Promise<object>; | ||
lists(resourceId: ResourceId, boardId: number, options?: Sudo): Promise<GetResponse>; | ||
lists(resourceId: ResourceId, boardId: number, options?: Sudo): Promise<import("../infrastructure").GetResponse>; | ||
remove(resourceId: ResourceId, boardId: number, options?: Sudo): Promise<object>; | ||
removeList(resourceId: ResourceId, boardId: number, listId: number, options?: Sudo): Promise<object>; | ||
show(resourceId: ResourceId, boardId: number, options?: Sudo): Promise<GetResponse>; | ||
showList(resourceId: ResourceId, boardId: number, listId: number, options?: Sudo): Promise<GetResponse>; | ||
show(resourceId: ResourceId, boardId: number, options?: Sudo): Promise<import("../infrastructure").GetResponse>; | ||
showList(resourceId: ResourceId, boardId: number, listId: number, options?: Sudo): Promise<import("../infrastructure").GetResponse>; | ||
} | ||
export default ResourceIssueBoards; |
@@ -1,11 +0,11 @@ | ||
/// <reference types="../typings" /> | ||
import { BaseService } from '../infrastructure'; | ||
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<GetResponse>; | ||
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<GetResponse>; | ||
show(resourceId: ResourceId, userId: UserId, options?: Sudo): Promise<import("../infrastructure").GetResponse>; | ||
remove(resourceId: ResourceId, userId: UserId, options?: Sudo): Promise<object>; | ||
} | ||
export default ResourceMembers; |
@@ -1,12 +0,12 @@ | ||
/// <reference types="../typings" /> | ||
import { BaseService } from '../infrastructure'; | ||
import { BaseService, BaseServiceOptions, PaginatedRequestOptions, BaseRequestOptions, Sudo } from '../infrastructure'; | ||
import { ResourceId, MilestoneId } from '..'; | ||
declare class ResourceMilestones extends BaseService { | ||
constructor(resourceType: string, options: BaseServiceOptions); | ||
all(resourceId: ResourceId, options?: PaginatedRequestOptions): Promise<GetResponse>; | ||
all(resourceId: ResourceId, options?: PaginatedRequestOptions): Promise<import("../infrastructure").GetResponse>; | ||
create(resourceId: ResourceId, title: string, options?: BaseRequestOptions): Promise<object>; | ||
edit(resourceId: ResourceId, milestoneId: MilestoneId, options?: BaseRequestOptions): Promise<object>; | ||
issues(resourceId: ResourceId, milestoneId: MilestoneId, options?: Sudo): Promise<GetResponse>; | ||
mergeRequests(resourceId: ResourceId, milestoneId: MilestoneId, options?: Sudo): Promise<GetResponse>; | ||
show(resourceId: ResourceId, milestoneId: MilestoneId, options?: Sudo): Promise<GetResponse>; | ||
issues(resourceId: ResourceId, milestoneId: MilestoneId, options?: Sudo): Promise<import("../infrastructure").GetResponse>; | ||
mergeRequests(resourceId: ResourceId, milestoneId: MilestoneId, options?: Sudo): Promise<import("../infrastructure").GetResponse>; | ||
show(resourceId: ResourceId, milestoneId: MilestoneId, options?: Sudo): Promise<import("../infrastructure").GetResponse>; | ||
} | ||
export default ResourceMilestones; |
@@ -1,12 +0,12 @@ | ||
/// <reference types="../typings" /> | ||
import { BaseService } from '../infrastructure'; | ||
import { BaseService, BaseServiceOptions, PaginatedRequestOptions, BaseRequestOptions, Sudo } from '../infrastructure'; | ||
import { ResourceId, NoteId } from '..'; | ||
declare class ResourceNotes extends BaseService { | ||
protected resource2Type: string; | ||
constructor(resourceType: string, resource2Type: string, options: BaseServiceOptions); | ||
all(resourceId: ResourceId, resource2Id: ResourceId, options?: PaginatedRequestOptions): Promise<GetResponse>; | ||
all(resourceId: ResourceId, resource2Id: ResourceId, options?: PaginatedRequestOptions): Promise<import("../infrastructure").GetResponse>; | ||
create(resourceId: ResourceId, resource2Id: ResourceId, body: string, options?: BaseRequestOptions): Promise<object>; | ||
edit(resourceId: ResourceId, resource2Id: ResourceId, noteId: NoteId, body: string, options?: BaseRequestOptions): Promise<object>; | ||
remove(resourceId: ResourceId, resource2Id: ResourceId, noteId: NoteId, options?: Sudo): Promise<object>; | ||
show(resourceId: ResourceId, resource2Id: ResourceId, noteId: NoteId, options?: Sudo): Promise<GetResponse>; | ||
show(resourceId: ResourceId, resource2Id: ResourceId, noteId: NoteId, options?: Sudo): Promise<import("../infrastructure").GetResponse>; | ||
} | ||
export default ResourceNotes; |
@@ -1,8 +0,8 @@ | ||
/// <reference types="../typings" /> | ||
import { BaseService } from '../infrastructure'; | ||
import { BaseService, BaseServiceOptions, PaginatedRequestOptions, Sudo } from '../infrastructure'; | ||
import { ResourceId } from '..'; | ||
declare class ResourceTemplates extends BaseService { | ||
constructor(resourceType: string, options: BaseServiceOptions); | ||
all(options?: PaginatedRequestOptions): Promise<GetResponse>; | ||
all(options?: PaginatedRequestOptions): Promise<import("../infrastructure").GetResponse>; | ||
show(resourceId: ResourceId, options?: Sudo): Promise<object>; | ||
} | ||
export default ResourceTemplates; |
@@ -1,11 +0,11 @@ | ||
/// <reference types="../typings" /> | ||
import { BaseService } from '../infrastructure'; | ||
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<GetResponse>; | ||
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<GetResponse>; | ||
show(resourceId: ResourceId, keyId: KeyId, options?: PaginatedRequestOptions): Promise<import("../infrastructure").GetResponse>; | ||
remove(resourceId: ResourceId, keyId: KeyId, options?: PaginatedRequestOptions): Promise<object>; | ||
} | ||
export default ResourceVariables; |
{ | ||
"name": "gitlab", | ||
"version": "6.3.4", | ||
"version": "6.3.5", | ||
"description": "Full NodeJS implementation of the GitLab API. Supports Promises, Async/Await.", | ||
@@ -27,4 +27,3 @@ "keywords": [ | ||
"files": [ | ||
"dist", | ||
"typings" | ||
"dist" | ||
], | ||
@@ -34,3 +33,3 @@ "main": "dist/index.js", | ||
"browser": "dist/index.browser.js", | ||
"typings": "dist/index.d.ts", | ||
"types": "dist/index.d.ts", | ||
"scripts": { | ||
@@ -91,3 +90,3 @@ "build": "tsc && rollup -c", | ||
"tslint-config-prettier": "^1.18.0", | ||
"typescript": "^3.4.5" | ||
"typescript": "^3.5.1" | ||
}, | ||
@@ -94,0 +93,0 @@ "engines": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
352405
112
2132