@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.
@@ -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
- permission: string | null;
88
+ permissions: GitRepositoryPermissions | null;
84
89
  }
85
90
  export interface GitRef {
86
91
  name: string;
@@ -191,4 +191,12 @@ export interface BitbucketWorkspace {
191
191
  slug: string;
192
192
  };
193
193
  }
194
+ export type BitbucketAccount = {
195
+ type: string;
196
+ permission: string;
197
+ user: UserStub;
198
+ links: {
199
+ self: Link;
200
+ };
201
+ };
194
202
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gitkraken/provider-apis",
3
- "version": "0.26.4",
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",