From 32bb8d78e6038019bd35fc4bfc0f8805334b91bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20Zori=C4=87?= Date: Tue, 26 Nov 2024 18:16:32 +0100 Subject: [PATCH] fix(api-headless-cms-ddb-es): missing elasticsearch on cms context --- packages/api-headless-cms-ddb-es/src/types.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/api-headless-cms-ddb-es/src/types.ts b/packages/api-headless-cms-ddb-es/src/types.ts index e7fae5a605f..d380e8da9ce 100644 --- a/packages/api-headless-cms-ddb-es/src/types.ts +++ b/packages/api-headless-cms-ddb-es/src/types.ts @@ -14,7 +14,6 @@ import { AttributeDefinition, Entity, Table, TableConstructor } from "@webiny/db import { DynamoDBDocument } from "@webiny/aws-sdk/client-dynamodb"; import { Client } from "@elastic/elasticsearch"; import { PluginsContainer } from "@webiny/plugins"; -import { ElasticsearchContext } from "@webiny/api-elasticsearch/types"; /** * A definition of the entry that is being prepared for the Elasticsearch. @@ -167,10 +166,11 @@ export interface StorageOperationsFactoryParams { plugins?: PluginCollection; } -export interface CmsContext extends BaseCmsContext, ElasticsearchContext { +export interface CmsContext extends BaseCmsContext { cms: HeadlessCms & { storageOperations: HeadlessCmsStorageOperations; }; + [key: string]: any; } export interface HeadlessCmsStorageOperations extends BaseHeadlessCmsStorageOperations {