@manyos/smileconnect-api 1.54.0 → 1.55.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.
@@ -413,8 +413,14 @@ async function createCmdbObject(assetConfig, clientConfig, classId, ciData, glob
413
413
  await scriptController.runScripts(scripts.postMapping, ciData, clientConfig.clientId, globalScriptParams);
414
414
  }
415
415
 
416
- ciData['Data Set Id'] = "BMC.ASSET"
417
- ciData['400129200'] = reconId;
416
+ //Default to BMC.ASSET if no Dataset is provided
417
+ if (!ciData['Data Set Id']) {
418
+ ciData['Data Set Id'] = "BMC.ASSET"
419
+ }
420
+ //Add reconId only for Asset Dataset
421
+ if (ciData['Data Set Id'] !== "BMC.ASSET") {
422
+ ciData['400129200'] = reconId;
423
+ }
418
424
  ciData['Instance Id'] = instanceId;
419
425
 
420
426
  const update = await arquery.createEntry(classId, ciData);
package/docs/releases.md CHANGED
@@ -2,6 +2,9 @@
2
2
 
3
3
  ## API
4
4
 
5
+ ### 1.55.0 - 09.02.22
6
+ Allow CI creation in other datasets than BMC.ASSET. CI Relations not yet possible.
7
+
5
8
  ### 1.54.0 - 04.02.22
6
9
  Add sourceData to globalScriptParams
7
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@manyos/smileconnect-api",
3
- "version": "1.54.0",
3
+ "version": "1.55.0",
4
4
  "description": "A proxy and abstraction layer for BMCs IT Service Management Suite",
5
5
  "main": "app.js",
6
6
  "scripts": {