@gitkraken/provider-apis 0.29.1 → 0.29.3
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.
- package/CHANGELOG.md +9 -0
- package/dist/index.js +77 -77
- package/dist/index.provider-utils.js +1 -1
- package/dist/index.providers.js +112 -112
- package/dist/providerUtils/bitbucketServer.d.ts +3 -2
- package/dist/providers/azureDevops/azureDevOps.d.ts +2 -2
- package/dist/providers/bitbucketServer/bitbucketServer.d.ts +22 -0
- package/dist/types/internalTypes/bitbucketServer.d.ts +4 -0
- package/package.json +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import { GitPullRequest } from '../types/exportedTypes/gitProvider';
|
|
2
|
-
import { BitbucketServerPullRequest } from '../types/internalTypes/bitbucketServer';
|
|
1
|
+
import { GitPullRequest, GitRepositoryPermissions } from '../types/exportedTypes/gitProvider';
|
|
2
|
+
import { BitbucketServerPullRequest, BitbucketServerRepositoryPermissions } from '../types/internalTypes/bitbucketServer';
|
|
3
3
|
export declare const restApiPullRequestToCommonPullRequest: (pullRequest: BitbucketServerPullRequest) => GitPullRequest;
|
|
4
|
+
export declare const normalizePermissions: (values: BitbucketServerRepositoryPermissions[]) => GitRepositoryPermissions;
|
|
@@ -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, GitRepositoryPermissions, NumberedPageInput,
|
|
2
|
+
import { CursorPageInput, EnterpriseOptions, GetRepoErrorData, GetRepoInput, GetReposInput, GitMergeStrategy, GitPullRequest, GitRepository, GitRepositoryPermissions, NumberedPageInput, 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';
|
|
@@ -56,7 +56,7 @@ export declare class AzureDevOps extends EnterpriseProvider implements GitProvid
|
|
|
56
56
|
getAzureProjectScopeDescriptor(input: {
|
|
57
57
|
namespace: string;
|
|
58
58
|
projectId: string;
|
|
59
|
-
}, options?:
|
|
59
|
+
}, options?: EnterpriseOptions): Promise<{
|
|
60
60
|
data: {
|
|
61
61
|
scope: string;
|
|
62
62
|
};
|
|
@@ -24,6 +24,28 @@ export declare class BitbucketServer extends EnterpriseProvider implements GitPr
|
|
|
24
24
|
};
|
|
25
25
|
data: GitRepository[];
|
|
26
26
|
}>;
|
|
27
|
+
getRepoPermissionsForUsername(input: {
|
|
28
|
+
repo: GetRepoInput;
|
|
29
|
+
username: string;
|
|
30
|
+
}, options?: EnterpriseOptions): Promise<{
|
|
31
|
+
data: import("../../types/exportedTypes/gitProvider").GitRepositoryPermissions;
|
|
32
|
+
}>;
|
|
33
|
+
decorateReposWithPermissions(input: {
|
|
34
|
+
repos: GitRepository[];
|
|
35
|
+
username: string;
|
|
36
|
+
}, options?: EnterpriseOptions): Promise<{
|
|
37
|
+
permissions: import("../../types/exportedTypes/gitProvider").GitRepositoryPermissions;
|
|
38
|
+
id: string;
|
|
39
|
+
graphQLId?: string | undefined;
|
|
40
|
+
namespace: string;
|
|
41
|
+
name: string;
|
|
42
|
+
project?: string | undefined;
|
|
43
|
+
projectId?: string | undefined;
|
|
44
|
+
webUrl: string | null;
|
|
45
|
+
httpsUrl: string | null;
|
|
46
|
+
sshUrl: string | null;
|
|
47
|
+
defaultBranch: import("../../types/exportedTypes/gitProvider").GitRef | null;
|
|
48
|
+
}[]>;
|
|
27
49
|
private getPullRequestsForRepoBase;
|
|
28
50
|
getPullRequestsForRepo(input: {
|
|
29
51
|
repo: GetRepoInput;
|
|
@@ -94,3 +94,7 @@ export interface BitbucketServerPullRequest {
|
|
|
94
94
|
self: Link[];
|
|
95
95
|
};
|
|
96
96
|
}
|
|
97
|
+
export type BitbucketServerRepositoryPermissions = {
|
|
98
|
+
user: BitbucketServerUser;
|
|
99
|
+
permission: 'USER_ADMIN' | 'PROJECT_ADMIN' | 'REPO_ADMIN' | 'ADMIN' | 'SYS_ADMIN' | 'PROJECT_WRITE' | 'REPO_WRITE' | 'REPO_CREATE' | 'PROJECT_CREATE' | 'PROJECT_VIEW' | 'REPO_READ' | 'PROJECT_READ' | 'LICENSED_USER';
|
|
100
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gitkraken/provider-apis",
|
|
3
|
-
"version": "0.29.
|
|
3
|
+
"version": "0.29.3",
|
|
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",
|