@gitkraken/provider-apis 0.33.0 → 0.35.0

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.
@@ -1,4 +1,4 @@
1
- import { Account, AddInlineCommentInput, CreateCommitInput, CursorPageInput, EnterpriseOptions, GetRepoErrorData, GetRepoInput, GitLabel, GitMergeStrategy, GitMilestone, GitPullRequest, GitPullRequestReviewComment, GitPullRequestReviewState, GitRepository, GitTreeItem, NumberedPageInput, Organization, SetAccountInput, SetLabelInput, SetMilestoneInput, SetPullRequestInput } from '../../types/exportedTypes/gitProvider';
1
+ import { Account, AddInlineCommentInput, CreateCommitInput, CursorPageInput, DeleteInlineCommentInput, EnterpriseOptions, GetRepoErrorData, GetRepoInput, GitLabel, GitMergeStrategy, GitMilestone, GitPullRequest, GitPullRequestReviewComment, GitPullRequestReviewState, GitRepository, GitTreeItem, NumberedPageInput, Organization, SetAccountInput, SetLabelInput, SetMilestoneInput, SetPullRequestInput } from '../../types/exportedTypes/gitProvider';
2
2
  import { FetchIssuesData, FetchPullRequestsData, GitHubIssueCloseReason } from '../../types/exportedTypes/github';
3
3
  import { Issue, SetIssueInput } from '../../types/exportedTypes/issueProvider';
4
4
  import { GitProvider } from '../gitProvider';
@@ -292,6 +292,7 @@ export declare class GitHub extends EnterpriseProvider implements GitProvider, I
292
292
  comment: string;
293
293
  }, options?: EnterpriseOptions): Promise<void>;
294
294
  addInlineCommentToPullRequest(input: AddInlineCommentInput, options?: EnterpriseOptions): Promise<string | undefined>;
295
+ deleteInlineComment(input: DeleteInlineCommentInput, options?: EnterpriseOptions): Promise<void>;
295
296
  private addReplyToReviewThread;
296
297
  private createReviewThread;
297
298
  setPullRequestMilestone(input: {
@@ -0,0 +1,7 @@
1
+ /**
2
+ * GitHub GraphQL Mutations
3
+ *
4
+ * This file contains all GraphQL mutation strings used by the GitHub provider.
5
+ * Mutations are organized alphabetically for easy reference.
6
+ */
7
+ export declare const DELETE_PULL_REQUEST_REVIEW_COMMENT = "mutation DeletePullRequestReviewComment(\n $pullRequestReviewCommentId: ID!\n) {\n deletePullRequestReviewComment(input: {\n id: $pullRequestReviewCommentId\n }) {\n pullRequestReview {\n id\n }\n }\n}";
@@ -237,6 +237,7 @@ export interface GitPullRequestReviewComment extends GitComment {
237
237
  line: number | null;
238
238
  startLine: number | null;
239
239
  side: 'LEFT' | 'RIGHT' | null;
240
+ threadId?: string;
240
241
  }
241
242
  export interface GitPullRequestReview extends GitComment {
242
243
  reviewComments: GitPullRequestReviewComment[];
@@ -306,6 +307,9 @@ export interface AddInlineCommentInput {
306
307
  side?: 'LEFT' | 'RIGHT';
307
308
  threadId?: string;
308
309
  }
310
+ export interface DeleteInlineCommentInput {
311
+ commentId: string;
312
+ }
309
313
  export interface CursorPageInput {
310
314
  cursor?: string | null;
311
315
  }
@@ -294,6 +294,7 @@ export interface GraphQLMilestone {
294
294
  url: string;
295
295
  }
296
296
  export interface GraphQLReviewThread {
297
+ id: string;
297
298
  comments: {
298
299
  nodes: (GraphQLReviewComment | null)[] | null;
299
300
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gitkraken/provider-apis",
3
- "version": "0.33.0",
3
+ "version": "0.35.0",
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",