@gitkraken/provider-apis 0.28.0 → 0.28.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.
@@ -166,6 +166,7 @@ export declare class AzureDevOps extends Provider implements GitProvider, IssueP
166
166
  project: string;
167
167
  assigneeLogins?: string[];
168
168
  authorLogin?: string;
169
+ repo?: GetRepoInput;
169
170
  } & NumberedPageInput, options?: EnterpriseOptions): Promise<{
170
171
  pageInfo: {
171
172
  hasNextPage: boolean;
@@ -180,6 +181,7 @@ export declare class AzureDevOps extends Provider implements GitProvider, IssueP
180
181
  }[];
181
182
  assigneeLogins?: string[];
182
183
  authorLogin?: string;
184
+ repo?: GetRepoInput;
183
185
  }, options?: EnterpriseOptions): Promise<{
184
186
  data: GitPullRequest[];
185
187
  }>;
@@ -84,6 +84,7 @@ export declare class Bitbucket extends Provider implements GitProvider {
84
84
  getPullRequestsForUserAndWorkspace(input: {
85
85
  userId: string;
86
86
  workspaceSlug: string;
87
+ repos?: GetRepoInput[];
87
88
  } & NumberedPageInput, options?: Options): Promise<{
88
89
  pageInfo: {
89
90
  hasNextPage: boolean;
@@ -236,6 +236,7 @@ export declare class GitHub extends EnterpriseProvider implements GitProvider, I
236
236
  */
237
237
  getPullRequestsAssociatedWithUser(input: {
238
238
  username: string;
239
+ repos?: GetRepoInput[];
239
240
  includeFromArchivedRepos?: boolean;
240
241
  labelNames?: string[];
241
242
  maxPageSize?: number;
@@ -22,6 +22,7 @@ export declare const makeGitHubGraphQLRequest: <T>(config: ProviderConfig, data:
22
22
  export declare const hasEmailScope: (scopes: string[]) => boolean;
23
23
  export declare const getAccountFields: (withAvatarSizeVar?: boolean, includeEmail?: boolean, fields?: FieldMap<Account>) => string;
24
24
  export declare const getBotFields: (withAvatarSizeVar?: boolean) => string;
25
+ export declare const getEnterpriseUserAccountFields: (withAvatarSizeVar?: boolean) => string;
25
26
  export declare const getPullRequestFields: (isDraftPullRequestSupported: boolean, includeEmail: boolean | undefined, enterpriseVersion: [number, number, number] | null) => string;
26
27
  export declare const getIssueFields: (includeEmail: boolean | undefined, enterpriseVersion: [number, number, number] | null) => string;
27
28
  export declare const GithubSearchSyntaxQualifiers: Record<string, string>;
@@ -123,6 +123,7 @@ export declare class GitLab extends EnterpriseProvider implements GitProvider, I
123
123
  association: PullRequestAssociation;
124
124
  includeFromArchivedRepos?: boolean;
125
125
  labelNames?: string[];
126
+ repo?: GetRepoInput;
126
127
  } & CursorPageInput, options?: EnterpriseOptions): Promise<{
127
128
  pageInfo: {
128
129
  endCursor: string | null;
@@ -137,9 +138,10 @@ export declare class GitLab extends EnterpriseProvider implements GitProvider, I
137
138
  username: string;
138
139
  includeFromArchivedRepos?: boolean;
139
140
  labelNames?: string[];
141
+ repos?: GetRepoInput[];
140
142
  } & CursorPageInput, options?: EnterpriseOptions): Promise<{
141
143
  pageInfo: {
142
- hasNextPage: boolean;
144
+ hasNextPage: false;
143
145
  endCursor: string;
144
146
  };
145
147
  data: GitPullRequest[];
@@ -243,6 +243,7 @@ export interface GetRepoInput {
243
243
  namespace: string;
244
244
  name: string;
245
245
  project?: string;
246
+ id?: string;
246
247
  }
247
248
  export interface GetReposInput {
248
249
  repos: GetRepoInput[];
@@ -94,6 +94,13 @@ export interface GraphQLBot {
94
94
  avatarUrl: string;
95
95
  url: string;
96
96
  }
97
+ export type GraphQLEnterpriseUserAccount = {
98
+ __typename: 'EnterpriseUserAccount';
99
+ id: string;
100
+ login: string;
101
+ avatarUrl: string;
102
+ url: string;
103
+ };
97
104
  export interface GraphQLOrganization {
98
105
  id: string;
99
106
  databaseId: number;
@@ -144,6 +151,7 @@ export interface GraphQLContext {
144
151
  state: GitHubStatusState;
145
152
  targetUrl: string;
146
153
  }
154
+ export type GraphQLLatestReviewAuthorType = GraphQLUser | GraphQLEnterpriseUserAccount | Record<string, never> | null;
147
155
  type GraphQLPullRequestBase = {
148
156
  id: string;
149
157
  title: string;
@@ -165,7 +173,7 @@ type GraphQLPullRequestBase = {
165
173
  assignees: {
166
174
  nodes: (GraphQLUser | null)[] | null;
167
175
  };
168
- author: GraphQLUser | GraphQLBot | Record<string, never> | null;
176
+ author: GraphQLUser | GraphQLBot | GraphQLEnterpriseUserAccount | Record<string, never> | null;
169
177
  commits: {
170
178
  nodes: ({
171
179
  commit: {
@@ -221,7 +229,7 @@ type GraphQLPullRequestBase = {
221
229
  } | null;
222
230
  latestReviews?: {
223
231
  nodes: ({
224
- author: GraphQLUser;
232
+ author: GraphQLLatestReviewAuthorType;
225
233
  state: GitHubPullRequestReviewState;
226
234
  } | null)[] | null;
227
235
  } | null;
@@ -261,7 +269,7 @@ type GraphQLIssueBase = {
261
269
  assignees: {
262
270
  nodes: (GraphQLUser | null)[] | null;
263
271
  };
264
- author: GraphQLUser | GraphQLBot | Record<string, never> | null;
272
+ author: GraphQLUser | GraphQLBot | GraphQLEnterpriseUserAccount | Record<string, never> | null;
265
273
  closedAt: string | null;
266
274
  createdAt: string;
267
275
  updatedAt: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gitkraken/provider-apis",
3
- "version": "0.28.0",
3
+ "version": "0.28.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",