@gitkraken/provider-apis 0.27.0 → 0.27.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AzureGetRepoInput, AzureGetReposInput, AzureGraphAccount, AzureOrganization, AzureProject, AzureSetAccountInput, AzureSetIssueInput, AzureSetPullRequestInput, PullRequestAsyncStatus, StatusByWorkItemIdByStatusId, WorkItemType } from '../../types/exportedTypes/azureDevOps';
|
|
2
|
-
import { CursorPageInput, EnterpriseOptions, GetRepoErrorData, GetRepoInput, GetReposInput, GitMergeStrategy, GitPullRequest, GitRepository, NumberedPageInput, Options, SetAccountInput, SetLabelInput, SetPullRequestInput } from '../../types/exportedTypes/gitProvider';
|
|
2
|
+
import { CursorPageInput, EnterpriseOptions, GetRepoErrorData, GetRepoInput, GetReposInput, GitMergeStrategy, GitPullRequest, GitRepository, GitRepositoryPermissions, NumberedPageInput, Options, SetAccountInput, SetLabelInput, SetPullRequestInput } from '../../types/exportedTypes/gitProvider';
|
|
3
3
|
import { Issue, SetStatusInput } from '../../types/exportedTypes/issueProvider';
|
|
4
4
|
import { PagedResult, Result } from '../../types/exportedTypes/types';
|
|
5
5
|
import { GitProvider } from '../gitProvider';
|
|
@@ -94,14 +94,20 @@ export declare class AzureDevOps extends Provider implements GitProvider, IssueP
|
|
|
94
94
|
}[];
|
|
95
95
|
}>;
|
|
96
96
|
getRepo(input: AzureGetRepoInput, options?: Options): Promise<{
|
|
97
|
-
data: GitRepository
|
|
97
|
+
data: GitRepository & {
|
|
98
|
+
projectId: string;
|
|
99
|
+
};
|
|
98
100
|
}>;
|
|
99
101
|
getRepos(inputs: AzureGetRepoInput[], options?: Options): Promise<{
|
|
100
|
-
data: GitRepository
|
|
102
|
+
data: (GitRepository & {
|
|
103
|
+
projectId: string;
|
|
104
|
+
})[];
|
|
101
105
|
errors: GetRepoErrorData[];
|
|
102
106
|
}>;
|
|
103
107
|
getReposForAzureProject(input: AzureGetReposInput, options?: Options): Promise<{
|
|
104
|
-
data: GitRepository
|
|
108
|
+
data: (GitRepository & {
|
|
109
|
+
projectId: string;
|
|
110
|
+
})[];
|
|
105
111
|
}>;
|
|
106
112
|
private getRefs;
|
|
107
113
|
getBranches(inputs: {
|
|
@@ -255,6 +261,35 @@ export declare class AzureDevOps extends Provider implements GitProvider, IssueP
|
|
|
255
261
|
};
|
|
256
262
|
data: Issue[];
|
|
257
263
|
}>;
|
|
264
|
+
getPermissionsForRepos(input: {
|
|
265
|
+
namespace: string;
|
|
266
|
+
repos: {
|
|
267
|
+
projectId: string;
|
|
268
|
+
id: string;
|
|
269
|
+
}[];
|
|
270
|
+
}, options?: EnterpriseOptions): Promise<{
|
|
271
|
+
data: Record<string, GitRepositoryPermissions>;
|
|
272
|
+
}>;
|
|
273
|
+
decorateReposWithPermissions(input: {
|
|
274
|
+
namespace: string;
|
|
275
|
+
repos: (GitRepository & {
|
|
276
|
+
projectId: string;
|
|
277
|
+
})[];
|
|
278
|
+
}, options?: EnterpriseOptions): Promise<{
|
|
279
|
+
data: {
|
|
280
|
+
permissions: GitRepositoryPermissions;
|
|
281
|
+
id: string;
|
|
282
|
+
graphQLId?: string | undefined;
|
|
283
|
+
namespace: string;
|
|
284
|
+
name: string;
|
|
285
|
+
project?: string | undefined;
|
|
286
|
+
projectId: string;
|
|
287
|
+
webUrl: string | null;
|
|
288
|
+
httpsUrl: string | null;
|
|
289
|
+
sshUrl: string | null;
|
|
290
|
+
defaultBranch: import("../../types/exportedTypes/gitProvider").GitRef | null;
|
|
291
|
+
}[];
|
|
292
|
+
}>;
|
|
258
293
|
private updateIssue;
|
|
259
294
|
setIssueStatus(input: {
|
|
260
295
|
issue: AzureSetIssueInput;
|
|
@@ -107,6 +107,15 @@ export declare class Bitbucket extends Provider implements GitProvider {
|
|
|
107
107
|
} & GetReposInput, options?: Options): Promise<{
|
|
108
108
|
data: GitPullRequest[];
|
|
109
109
|
}>;
|
|
110
|
+
getAccountsForWorkspace(input: {
|
|
111
|
+
workspace: string;
|
|
112
|
+
} & NumberedPageInput, options?: Options): Promise<{
|
|
113
|
+
pageInfo: {
|
|
114
|
+
hasNextPage: boolean;
|
|
115
|
+
nextPage: number | null;
|
|
116
|
+
};
|
|
117
|
+
data: Account[];
|
|
118
|
+
}>;
|
|
110
119
|
closePullRequest(input: {
|
|
111
120
|
pullRequest: SetPullRequestInput;
|
|
112
121
|
}, options?: Options): Promise<void>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gitkraken/provider-apis",
|
|
3
|
-
"version": "0.27.
|
|
3
|
+
"version": "0.27.2",
|
|
4
4
|
"description": "An SDK around different third-party APIs that accepts and returns data in a common format.",
|
|
5
5
|
"author": "Axosoft, LLC dba GitKraken",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|