Skip to content

Commit

Permalink
update assets after management sdk update
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanKiral committed Apr 2, 2024
1 parent f06bd18 commit b819c56
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/commands/importExportEntities/entities/assetFolders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const assetFoldersEntity: EntityDefinition<ReadonlyArray<AssetFolderContr

const createPatchToAddFolder = (
folder: AssetFolderContracts.IAssetFolderContract,
): AssetFolderModels.IModifyAssetFoldersData => ({
): AssetFolderModels.AddIntoOperation => ({
op: "addInto",
value: {
name: folder.name,
Expand All @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit b819c56

Please sign in to comment.