@gitkraken/provider-apis 0.27.3 → 0.27.4

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.
@@ -3,6 +3,7 @@ import { FieldMap, GraphQLBody, GraphQLError, GraphQLResponse, ProviderConfig }
3
3
  export declare const minimumFeatureVersions: {
4
4
  AS_CODE_OWNER: number[];
5
5
  CHECK_RUN: number[];
6
+ PR_ISSUE_FULL_DATABASE_ID: number[];
6
7
  LATEST_REVIEWS: number[];
7
8
  VIEWER_CAN_MERGE_AS_ADMIN: number[];
8
9
  };
@@ -22,7 +23,7 @@ export declare const hasEmailScope: (scopes: string[]) => boolean;
22
23
  export declare const getAccountFields: (withAvatarSizeVar?: boolean, includeEmail?: boolean, fields?: FieldMap<Account>) => string;
23
24
  export declare const getBotFields: (withAvatarSizeVar?: boolean) => string;
24
25
  export declare const getPullRequestFields: (isDraftPullRequestSupported: boolean, includeEmail: boolean | undefined, enterpriseVersion: [number, number, number] | null) => string;
25
- export declare const getIssueFields: (includeEmail?: boolean) => string;
26
+ export declare const getIssueFields: (includeEmail: boolean | undefined, enterpriseVersion: [number, number, number] | null) => string;
26
27
  export declare const GithubSearchSyntaxQualifiers: Record<string, string>;
27
28
  export declare const getProjectGithubSearchSyntax: (search: string) => string[];
28
29
  export declare const makeSearchIssuesOrPRsGraphQLBody: (type: 'issue' | 'pr', query: string, cursor: string | null | undefined, options: {
@@ -144,9 +144,8 @@ export interface GraphQLContext {
144
144
  state: GitHubStatusState;
145
145
  targetUrl: string;
146
146
  }
147
- export interface GraphQLPullRequest {
147
+ type GraphQLPullRequestBase = {
148
148
  id: string;
149
- databaseId: number;
150
149
  title: string;
151
150
  number: number;
152
151
  state: PullRequestState;
@@ -235,10 +234,18 @@ export interface GraphQLPullRequest {
235
234
  nodes: (GraphQLLabel | null)[] | null;
236
235
  } | null;
237
236
  viewerCanMergeAsAdmin?: boolean;
237
+ };
238
+ interface GraphQLPullRequestWithDatabaseId extends GraphQLPullRequestBase {
239
+ databaseId: number;
240
+ fullDatabaseId: undefined;
241
+ }
242
+ interface GraphQLPullRequestWithFullDatabaseId extends GraphQLPullRequestBase {
243
+ databaseId: undefined;
244
+ fullDatabaseId: string;
238
245
  }
239
- export interface GraphQLIssue {
246
+ export type GraphQLPullRequest = GraphQLPullRequestWithDatabaseId | GraphQLPullRequestWithFullDatabaseId;
247
+ type GraphQLIssueBase = {
240
248
  id: string;
241
- databaseId: number;
242
249
  number: string;
243
250
  title: string;
244
251
  url: string;
@@ -268,7 +275,16 @@ export interface GraphQLIssue {
268
275
  labels: {
269
276
  nodes: (GraphQLLabel | null)[] | null;
270
277
  } | null;
278
+ };
279
+ interface GraphQLIssueWithDatabaseId extends GraphQLIssueBase {
280
+ databaseId: number;
281
+ fullDatabaseId: undefined;
282
+ }
283
+ interface GraphQLIssueWithFullDatabaseId extends GraphQLIssueBase {
284
+ databaseId: undefined;
285
+ fullDatabaseId: string;
271
286
  }
287
+ export type GraphQLIssue = GraphQLIssueWithDatabaseId | GraphQLIssueWithFullDatabaseId;
272
288
  export interface GraphQLMilestone {
273
289
  description: string | null;
274
290
  dueOn: string | null;
@@ -317,3 +333,4 @@ export interface RESTTreeItem {
317
333
  sha: string;
318
334
  url: string;
319
335
  }
336
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gitkraken/provider-apis",
3
- "version": "0.27.3",
3
+ "version": "0.27.4",
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",