contentful-import 10.1.0 → 10.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -4
- package/dist/index.mjs +2 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -938,9 +938,6 @@ async function createOrPatchChildConcepts(plainClient, organizationId, destinati
|
|
|
938
938
|
}
|
|
939
939
|
} else {
|
|
940
940
|
const patches = [];
|
|
941
|
-
if (existing.purpose !== "internal") {
|
|
942
|
-
patches.push({ op: "add", path: "/purpose", value: "internal" });
|
|
943
|
-
}
|
|
944
941
|
const spaces = existing.metadata?.spaces ?? [];
|
|
945
942
|
if (!spaces.some((s) => s.sys.id === destinationSpaceId)) {
|
|
946
943
|
patches.push({ op: "add", path: "/metadata/spaces/-", value: spaceLink });
|
|
@@ -1000,7 +997,8 @@ async function importExoFolders({
|
|
|
1000
997
|
}
|
|
1001
998
|
const parentGroups = await ensureParentFolderGroupsExist(plainClient, organizationId);
|
|
1002
999
|
if (parentGroups.size === 0) {
|
|
1003
|
-
|
|
1000
|
+
import_logging8.logEmitter.emit("warn", "One or more Experience Orchestration folder group concept schemes are missing in the destination organization. Please create them before importing.");
|
|
1001
|
+
return;
|
|
1004
1002
|
}
|
|
1005
1003
|
const childConceptMap = deriveChildConceptMap(sourceEntities, destinationSpaceId);
|
|
1006
1004
|
if (childConceptMap.size === 0) return;
|
package/dist/index.mjs
CHANGED
|
@@ -911,9 +911,6 @@ async function createOrPatchChildConcepts(plainClient, organizationId, destinati
|
|
|
911
911
|
}
|
|
912
912
|
} else {
|
|
913
913
|
const patches = [];
|
|
914
|
-
if (existing.purpose !== "internal") {
|
|
915
|
-
patches.push({ op: "add", path: "/purpose", value: "internal" });
|
|
916
|
-
}
|
|
917
914
|
const spaces = existing.metadata?.spaces ?? [];
|
|
918
915
|
if (!spaces.some((s) => s.sys.id === destinationSpaceId)) {
|
|
919
916
|
patches.push({ op: "add", path: "/metadata/spaces/-", value: spaceLink });
|
|
@@ -973,7 +970,8 @@ async function importExoFolders({
|
|
|
973
970
|
}
|
|
974
971
|
const parentGroups = await ensureParentFolderGroupsExist(plainClient, organizationId);
|
|
975
972
|
if (parentGroups.size === 0) {
|
|
976
|
-
|
|
973
|
+
logEmitter8.emit("warn", "One or more Experience Orchestration folder group concept schemes are missing in the destination organization. Please create them before importing.");
|
|
974
|
+
return;
|
|
977
975
|
}
|
|
978
976
|
const childConceptMap = deriveChildConceptMap(sourceEntities, destinationSpaceId);
|
|
979
977
|
if (childConceptMap.size === 0) return;
|