Skip to content

Commit

Permalink
Update management SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
JiriLojda committed Aug 14, 2024
1 parent abb118b commit b2ff989
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 8 deletions.
31 changes: 27 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"dependencies": {
"@kontent-ai/core-sdk": "^10.6.0",
"@kontent-ai/delivery-sdk": "^14.10.0",
"@kontent-ai/management-sdk": "^7.0.0",
"@kontent-ai/management-sdk": "^7.1.0",
"@kontent-ai/migration-toolkit": "^1.4.0",
"@kontent-ai/rich-text-resolver": "^1.1.3",
"archiver": "^6.0.2",
Expand Down
4 changes: 1 addition & 3 deletions tests/integration/importExport/utils/compare.ts
Original file line number Diff line number Diff line change
Expand Up @@ -477,9 +477,7 @@ const createPrepareItemReferences: PrepareReferencesCreator<ContentItemContracts
last_modified: new Date(1316, 4, 14),
type: { id: data.types.find(t => t.id === item.type.id)?.codename ?? "non-existing-type" },
collection: { id: data.collections.find(c => c.id === item.collection.id)?.codename ?? "non-existing-collection" },
spaces: (item as any).spaces.map((s: any) => ({ // TODO: remove both any types once the SDK types are fixed
id: data.spaces.find(sp => sp.id === s.id)?.codename ?? "non-existing-space",
})),
spaces: item.spaces.map(s => ({ id: data.spaces.find(sp => sp.id === s.id)?.codename ?? "non-existing-space" })),
});

const createPrepareVariantReferences: PrepareReferencesCreator<LanguageVariantContracts.ILanguageVariantModelContract> =
Expand Down

0 comments on commit b2ff989

Please sign in to comment.