@gitkraken/provider-apis 0.25.11 → 0.26.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.
@@ -68,8 +68,22 @@ export declare class Bitbucket extends Provider implements GitProvider {
68
68
  };
69
69
  }[];
70
70
  }>;
71
- getPullRequestsForUser(input: {
71
+ getWorkspacesForUser(input: {
72
72
  userId: string;
73
+ } & NumberedPageInput, options?: Options): Promise<{
74
+ pageInfo: {
75
+ hasNextPage: boolean;
76
+ nextPage: number | null;
77
+ };
78
+ data: {
79
+ id: string;
80
+ slug: string;
81
+ name: string;
82
+ }[];
83
+ }>;
84
+ getPullRequestsForUserAndWorkspace(input: {
85
+ userId: string;
86
+ workspaceSlug: string;
73
87
  } & NumberedPageInput, options?: Options): Promise<{
74
88
  pageInfo: {
75
89
  hasNextPage: boolean;
@@ -13,3 +13,8 @@ export interface BitbucketServerMergeStrategy {
13
13
  id: string;
14
14
  name: string;
15
15
  }
16
+ export interface BitbucketWorkspaceStub {
17
+ id: string;
18
+ name: string;
19
+ slug: string;
20
+ }
@@ -103,6 +103,9 @@ export interface AzurePullRequest {
103
103
  repository: RepositoryBase & {
104
104
  project: ProjectBase;
105
105
  };
106
+ forkSource?: {
107
+ repository: RepositoryBase;
108
+ };
106
109
  pullRequestId: number;
107
110
  codeReviewId: number;
108
111
  status: PullRequestState;
@@ -178,4 +178,17 @@ export interface BitbucketPullRequest {
178
178
  merge_commit: CommitStub | null;
179
179
  closed_by: UserStub | null;
180
180
  }
181
+ export interface BitbucketWorkspace {
182
+ type: 'workspace_membership';
183
+ permission: string;
184
+ last_accessed: string;
185
+ added_on: string;
186
+ user: UserStub;
187
+ workspace: {
188
+ type: 'workspace';
189
+ uuid: string;
190
+ name: string;
191
+ slug: string;
192
+ };
193
+ }
181
194
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gitkraken/provider-apis",
3
- "version": "0.25.11",
3
+ "version": "0.26.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",