From 82e6df2015927ea6e23c44461078279159d0ab7a Mon Sep 17 00:00:00 2001 From: Jonathan Buttner Date: Tue, 2 May 2023 14:13:38 -0400 Subject: [PATCH] Fixing type errors --- .../cases_api_integration/common/lib/api/attachments.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/x-pack/test/cases_api_integration/common/lib/api/attachments.ts b/x-pack/test/cases_api_integration/common/lib/api/attachments.ts index b5d423309aec8..15e3901dcf970 100644 --- a/x-pack/test/cases_api_integration/common/lib/api/attachments.ts +++ b/x-pack/test/cases_api_integration/common/lib/api/attachments.ts @@ -8,14 +8,14 @@ import type SuperTest from 'supertest'; import { CASES_INTERNAL_URL, CASES_URL } from '@kbn/cases-plugin/common/constants'; import { - AllCommentsResponse, + Comments, BulkCreateCommentRequest, BulkGetAttachmentsResponse, Case, CommentPatchRequest, CommentRequest, Comment, - Comments, + CommentsFindResponse, CommentType, getCaseFindAttachmentsUrl, getCasesDeleteFileAttachmentsUrl, @@ -203,7 +203,7 @@ export const getAllComments = async ({ caseId: string; auth?: { user: User; space: string | null }; expectedHttpCode?: number; -}): Promise => { +}): Promise => { const { body: comments } = await supertest .get(`${getSpaceUrlPrefix(auth.space)}${CASES_URL}/${caseId}/comments`) .auth(auth.user.username, auth.user.password) @@ -295,7 +295,7 @@ export const findAttachments = async ({ query?: Record; expectedHttpCode?: number; auth?: { user: User; space: string | null }; -}): Promise => { +}): Promise => { const { body } = await supertest .get(`${getSpaceUrlPrefix(auth.space)}${getCaseFindAttachmentsUrl(caseId)}`) .set('kbn-xsrf', 'true')