@manyos/smileconnect-api 1.55.0 → 1.55.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/conf/clients.json CHANGED
@@ -193,7 +193,7 @@
193
193
  }
194
194
  },
195
195
  "cmdbobject": {
196
- "basequery": "'Data Set Id' = \"BMC.ASSET\" AND ('Mark As Deleted' = \"No\" OR 'Mark As Deleted' = $NULL$)",
196
+ "basequery": "('Mark As Deleted' = \"No\" OR 'Mark As Deleted' = $NULL$)",
197
197
  "fields": [
198
198
  "Instance Id",
199
199
  "Tag Number",
@@ -208,7 +208,8 @@
208
208
  "Authenticity",
209
209
  "Model Number",
210
210
  "Reconciliation Identity",
211
- "Short Description"
211
+ "Short Description",
212
+ "Data Set Id"
212
213
  ],
213
214
  "fields_AST:ComputerSystem": [
214
215
  "DNS Host Name"
package/conf/mapping.json CHANGED
@@ -4,6 +4,10 @@
4
4
  "oldName": "Instance Id",
5
5
  "newName": "id"
6
6
  },
7
+ {
8
+ "oldName": "Data Set Id",
9
+ "newName": "dataSetId"
10
+ },
7
11
  {
8
12
  "oldName": "Tag Number",
9
13
  "newName": "tagNumber"
@@ -418,7 +418,7 @@ async function createCmdbObject(assetConfig, clientConfig, classId, ciData, glob
418
418
  ciData['Data Set Id'] = "BMC.ASSET"
419
419
  }
420
420
  //Add reconId only for Asset Dataset
421
- if (ciData['Data Set Id'] !== "BMC.ASSET") {
421
+ if (ciData['Data Set Id'] === "BMC.ASSET") {
422
422
  ciData['400129200'] = reconId;
423
423
  }
424
424
  ciData['Instance Id'] = instanceId;
package/docs/releases.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  ## API
4
4
 
5
+ ### 1.55.2 - 14.02.22
6
+ Use custom login Id instead of azp also for eventlog
7
+
8
+ ### 1.55.1 - 09.02.22
9
+ Add reconId only for BMC.ASSET dataset
10
+
5
11
  ### 1.55.0 - 09.02.22
6
12
  Allow CI creation in other datasets than BMC.ASSET. CI Relations not yet possible.
7
13
 
@@ -132,6 +138,9 @@ e.g.
132
138
 
133
139
  ## Event Manager
134
140
 
141
+ ### 1.20.0 - 14.02.22
142
+ Improve logging
143
+
135
144
  ### 1.19.0 - 09.11.21
136
145
  Allow 16k header
137
146
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@manyos/smileconnect-api",
3
- "version": "1.55.0",
3
+ "version": "1.55.2",
4
4
  "description": "A proxy and abstraction layer for BMCs IT Service Management Suite",
5
5
  "main": "app.js",
6
6
  "scripts": {
@@ -67,7 +67,7 @@ function eventQueueHandler(req, res, next) {
67
67
  const eventData = req.eventData;
68
68
  eventLog.createSuccessLog(
69
69
  req.id,
70
- req.user.azp,
70
+ req.user.config.clientId,
71
71
  eventData.ticketNumber,
72
72
  eventData.schema,
73
73
  eventData.event,