From b819c561d4e8b7d271950d47f78490f3a148a627 Mon Sep 17 00:00:00 2001 From: Ivan Kiral Date: Tue, 2 Apr 2024 10:39:31 +0200 Subject: [PATCH] update assets after management sdk update --- src/commands/importExportEntities/entities/assetFolders.ts | 4 ++-- .../importExportEntities/entities/utils/typeElements.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/commands/importExportEntities/entities/assetFolders.ts b/src/commands/importExportEntities/entities/assetFolders.ts index 9797db2f..06db9eb9 100644 --- a/src/commands/importExportEntities/entities/assetFolders.ts +++ b/src/commands/importExportEntities/entities/assetFolders.ts @@ -28,7 +28,7 @@ export const assetFoldersEntity: EntityDefinition ({ +): AssetFolderModels.AddIntoOperation => ({ op: "addInto", value: { name: folder.name, @@ -39,7 +39,7 @@ const createPatchToAddFolder = ( const createSubFolder = ( folder: AssetFolderContracts.IAssetFolderContract, -): AssetFolderModels.IAddOrModifyAssetFolderData => ({ +): AssetFolderModels.IAssetFolderValue => ({ name: folder.name, folders: folder.folders.map(createSubFolder), external_id: folder.external_id ?? folder.id, diff --git a/src/commands/importExportEntities/entities/utils/typeElements.ts b/src/commands/importExportEntities/entities/utils/typeElements.ts index f2e9121c..349e2bb0 100644 --- a/src/commands/importExportEntities/entities/utils/typeElements.ts +++ b/src/commands/importExportEntities/entities/utils/typeElements.ts @@ -24,9 +24,9 @@ export type TransformTypeElementParams = Readonly<{ export const createTransformTypeElement = (params: TransformTypeElementParams) => - (element: ElementContracts.IContentTypeElementContract): ContentTypeElements.IElementShared => { + (element: ElementContracts.IContentTypeElementContract): ContentTypeElements.Element => { const fallbackExternalId = getRequired(params.elementExternalIdsByOldId, element.id ?? "", "element"); - const elementWithGroup = element as ContentTypeElements.IElementShared; + const elementWithGroup = element as ContentTypeElements.Element; const content_group = elementWithGroup.content_group ? { external_id: getRequired(