@colabo-knalledge/i-core-services 1.7.0 → 1.8.0
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/CHANGELOG.md +25 -0
- package/dist/cjs/index.js +4 -2
- package/dist/cjs/index.js.map +2 -2
- package/dist/esm/index.js +4 -2
- package/dist/esm/index.js.map +2 -2
- package/dist/types/lib/kContainer-service.d.ts +1 -1
- package/package.json +10 -13
package/dist/esm/index.js
CHANGED
|
@@ -342,14 +342,16 @@ var ColaboKnAllEdgeContainerService = class extends CFServiceIsomorphic {
|
|
|
342
342
|
* @description adds kNodes in a kContainer
|
|
343
343
|
* @returns edges created between the container and entities added to the container
|
|
344
344
|
*/
|
|
345
|
-
async updateAddNodes(containerId, containedIds, edgeDataContent) {
|
|
345
|
+
async updateAddNodes(containerId, containedIds, edgeDataContent, mapId) {
|
|
346
346
|
if (DEBUG) console.log("[ColaboKnAllEdgeContainerService::updateAddNodes(containerId, containedIds)", containerId, containedIds);
|
|
347
347
|
let result;
|
|
348
348
|
const idsStr = containedIds.join(",");
|
|
349
349
|
const url = this.apiUrl + this.defaultAction + "/" + KCONTAINER_API_TYPE.UPDATE_ADD_KNODE_BY_IDS + "/" + containerId + "/" + idsStr;
|
|
350
350
|
if (DEBUG) console.log("updateAddNodes called", url);
|
|
351
351
|
try {
|
|
352
|
-
const body =
|
|
352
|
+
const body = {};
|
|
353
|
+
if (edgeDataContent) body.edgeDataContent = edgeDataContent;
|
|
354
|
+
if (mapId) body.mapId = mapId;
|
|
353
355
|
const mResult = await axios2.put(url, body, HTTP_OPTIONS_CONST_JSON);
|
|
354
356
|
const serverData = mResult.data;
|
|
355
357
|
result = ColaboApiOperators.extractVosFromServerData(serverData);
|