@gitkraken/provider-apis 0.26.4 → 0.27.1
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 +20 -0
- package/dist/index.js +61 -56
- package/dist/index.provider-utils.js +1 -1
- package/dist/index.providers.js +85 -80
- package/dist/providers/bitbucket/bitbucket.d.ts +9 -0
- package/dist/types/exportedTypes/gitProvider.d.ts +6 -1
- package/dist/types/internalTypes/bitbucket.d.ts +8 -0
- package/package.json +1 -1
|
@@ -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>;
|
|
@@ -69,6 +69,11 @@ export interface GitMilestone {
|
|
|
69
69
|
startDate: Date | null;
|
|
70
70
|
dueDate: Date | null;
|
|
71
71
|
}
|
|
72
|
+
export type GitRepositoryPermissions = {
|
|
73
|
+
canCreateWebhook: boolean | null;
|
|
74
|
+
canPush: boolean;
|
|
75
|
+
isAdmin: boolean;
|
|
76
|
+
};
|
|
72
77
|
export interface GitRepository {
|
|
73
78
|
id: string;
|
|
74
79
|
graphQLId?: string;
|
|
@@ -80,7 +85,7 @@ export interface GitRepository {
|
|
|
80
85
|
httpsUrl: string | null;
|
|
81
86
|
sshUrl: string | null;
|
|
82
87
|
defaultBranch: GitRef | null;
|
|
83
|
-
|
|
88
|
+
permissions: GitRepositoryPermissions | null;
|
|
84
89
|
}
|
|
85
90
|
export interface GitRef {
|
|
86
91
|
name: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gitkraken/provider-apis",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.27.1",
|
|
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",
|