@gitkraken/provider-apis 0.37.0 → 0.38.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,
|
|
1
|
+
import { Account, AddInlineCommentInput, CreateCommitInput, CursorPageInput, DeleteCommentInput, EditCommentInput, EnterpriseOptions, GetRepoErrorData, GetRepoInput, GitComment, 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,8 +292,10 @@ 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:
|
|
296
|
-
|
|
295
|
+
deleteInlineComment(input: DeleteCommentInput, options?: EnterpriseOptions): Promise<void>;
|
|
296
|
+
deleteComment(input: DeleteCommentInput, options?: EnterpriseOptions): Promise<void>;
|
|
297
|
+
editComment(input: EditCommentInput, options?: EnterpriseOptions): Promise<void>;
|
|
298
|
+
editInlineComment(input: EditCommentInput, options?: EnterpriseOptions): Promise<void>;
|
|
297
299
|
private addReplyToReviewThread;
|
|
298
300
|
private createReviewThread;
|
|
299
301
|
setPullRequestMilestone(input: {
|
|
@@ -4,5 +4,7 @@
|
|
|
4
4
|
* This file contains all GraphQL mutation strings used by the GitHub provider.
|
|
5
5
|
* Mutations are organized alphabetically for easy reference.
|
|
6
6
|
*/
|
|
7
|
+
export declare const DELETE_ISSUE_COMMENT = "mutation DeleteIssueComment(\n $issueCommentId: ID!\n) {\n deleteIssueComment(input: {\n id: $issueCommentId\n }) {\n clientMutationId\n }\n}";
|
|
7
8
|
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}";
|
|
9
|
+
export declare const UPDATE_ISSUE_COMMENT = "mutation UpdateIssueComment(\n $issueCommentId: ID!,\n $body: String!\n) {\n updateIssueComment(input: {\n id: $issueCommentId,\n body: $body\n }) {\n issueComment {\n id\n body\n }\n }\n}";
|
|
8
10
|
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,10 +307,10 @@ export interface AddInlineCommentInput {
|
|
|
307
307
|
side?: 'LEFT' | 'RIGHT';
|
|
308
308
|
threadId?: string;
|
|
309
309
|
}
|
|
310
|
-
export interface
|
|
310
|
+
export interface DeleteCommentInput {
|
|
311
311
|
commentId: string;
|
|
312
312
|
}
|
|
313
|
-
export interface
|
|
313
|
+
export interface EditCommentInput {
|
|
314
314
|
commentId: string;
|
|
315
315
|
body: string;
|
|
316
316
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gitkraken/provider-apis",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.38.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",
|