From 392bf99a72a5731645eff7ebd7775c18e1e96225 Mon Sep 17 00:00:00 2001 From: MarkLark86 Date: Wed, 18 Oct 2023 18:53:35 +1100 Subject: [PATCH] [TGA-62] Add httpRequestVoidLocal to SuperdeskApi (#4341) --- scripts/core/get-superdesk-api-implementation.tsx | 3 ++- scripts/core/superdesk-api.d.ts | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/core/get-superdesk-api-implementation.tsx b/scripts/core/get-superdesk-api-implementation.tsx index 1f0f13fd00..5feee2328e 100644 --- a/scripts/core/get-superdesk-api-implementation.tsx +++ b/scripts/core/get-superdesk-api-implementation.tsx @@ -65,7 +65,7 @@ import {AuthoringWorkspaceService} from 'apps/authoring/authoring/services/Autho import ng from 'core/services/ng'; import {Spacer} from './ui/components/Spacer'; import {appConfig} from 'appConfig'; -import {httpRequestJsonLocal} from './helpers/network'; +import {httpRequestJsonLocal, httpRequestVoidLocal} from './helpers/network'; import {memoize as memoizeLocal} from './memoize'; import {generatePatch} from './patch'; import {getLinesCount} from 'apps/authoring/authoring/components/line-count'; @@ -222,6 +222,7 @@ export function getSuperdeskApiImplementation( nameof: nameof, }, httpRequestJsonLocal, + httpRequestVoidLocal, getExtensionConfig: () => extensions[requestingExtensionId]?.configuration ?? {}, entities: { article: { diff --git a/scripts/core/superdesk-api.d.ts b/scripts/core/superdesk-api.d.ts index 9c788be8c8..49dd783052 100644 --- a/scripts/core/superdesk-api.d.ts +++ b/scripts/core/superdesk-api.d.ts @@ -1665,6 +1665,7 @@ declare module 'superdesk-api' { }; elasticsearch: IElasticSearchApi; httpRequestJsonLocal(options: IHttpRequestJsonOptionsLocal): Promise; + httpRequestVoidLocal(options: IHttpRequestOptionsLocal): Promise; state: { articleInEditMode?: IArticle['_id']; };