@gitkraken/provider-apis 0.34.0 → 0.36.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, EditInlineCommentInput, 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,8 @@ 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>;
296
+ editInlineComment(input: EditInlineCommentInput, options?: EnterpriseOptions): Promise<void>;
295
297
  private addReplyToReviewThread;
296
298
  private createReviewThread;
297
299
  setPullRequestMilestone(input: {
@@ -0,0 +1,8 @@
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}";
8
+ export declare const UPDATE_PULL_REQUEST_REVIEW_COMMENT = "mutation UpdatePullRequestReviewComment(\n $pullRequestReviewCommentId: ID!,\n $body: String!\n) {\n updatePullRequestReviewComment(input: {\n pullRequestReviewCommentId: $pullRequestReviewCommentId,\n body: $body\n }) {\n pullRequestReviewComment {\n id\n body\n }\n }\n}";
@@ -307,6 +307,13 @@ export interface AddInlineCommentInput {
307
307
  side?: 'LEFT' | 'RIGHT';
308
308
  threadId?: string;
309
309
  }
310
+ export interface DeleteInlineCommentInput {
311
+ commentId: string;
312
+ }
313
+ export interface EditInlineCommentInput {
314
+ commentId: string;
315
+ body: string;
316
+ }
310
317
  export interface CursorPageInput {
311
318
  cursor?: string | null;
312
319
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gitkraken/provider-apis",
3
- "version": "0.34.0",
3
+ "version": "0.36.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",