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']; };