@manyos/smileconnect-api 1.64.0 → 1.64.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/Dockerfile CHANGED
@@ -1,7 +1,7 @@
1
1
  ### STAGE 1: Build ###
2
2
 
3
3
  # We label our stage as 'builder'
4
- FROM node:16.14 as builder
4
+ FROM node:21 as builder
5
5
  ARG NPM_TOKEN
6
6
  COPY package.json package-lock.json ./
7
7
 
package/docs/releases.md CHANGED
@@ -1,11 +1,18 @@
1
1
  # Release Notes
2
2
 
3
3
  ## API
4
+ ### 1.64.2 - 20.10.23
5
+ Update node.js to v21.
6
+
7
+ ### 1.64.1 - 18.10.23
8
+ Fix error in Appconfig Requests when LOG_REQUEST=true
9
+
4
10
  ### 1.64.0 - 19.07.23
5
11
  Introduce Enhanced Logging for Tickets. More objects in later releases.
6
12
 
7
13
  ### 1.63.0 - 10.01.23
8
14
  Security fix for jsonwebtoken https://github.com/advisories/GHSA-27h2-hvpr-p74q
15
+ Please use RAPI 23.05.09 or later since this release.
9
16
 
10
17
  ### 1.62.0 - 18.11.22
11
18
  Add Deepl Translation Adapter
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@manyos/smileconnect-api",
3
- "version": "1.64.0",
3
+ "version": "1.64.2",
4
4
  "description": "A proxy and abstraction layer for BMCs IT Service Management Suite",
5
5
  "main": "app.js",
6
6
  "scripts": {
@@ -142,13 +142,14 @@ module.exports = (function() {
142
142
  checkSchema(fieldMappingSchemas.customFormMappingItemSchema),
143
143
  async function (req, res, next) {
144
144
  const id = req.params.id;
145
+ const origData = JSON.parse(JSON.stringify(req.body));
145
146
  setEventData(
146
147
  req,
147
148
  CONSTANTS.EVENT_BASE_APC,
148
149
  CONSTANTS.EVENT_ACTION_MODIFY,
149
150
  CONSTANTS.FORM_APC_MAPPING_CUSTOMFORM,
150
151
  id,
151
- req.body
152
+ origData
152
153
  );
153
154
  const errors = validationResult(req);
154
155
  if (!errors.isEmpty()) {
@@ -169,13 +170,14 @@ module.exports = (function() {
169
170
 
170
171
  routes.put('/mappings/customForms', isAuthorizedAdmin,
171
172
  async function (req, res, next) {
173
+ const origData = JSON.parse(JSON.stringify(req.body));
172
174
  setEventData(
173
175
  req,
174
176
  CONSTANTS.EVENT_BASE_APC,
175
177
  CONSTANTS.EVENT_ACTION_MODIFY,
176
178
  CONSTANTS.FORM_APC_MAPPING_CUSTOMFORM,
177
179
  undefined,
178
- req.body
180
+ origData
179
181
  );
180
182
  try {
181
183
  const data = await config.setCustomFormMapping(req.body.data)
@@ -192,13 +194,14 @@ module.exports = (function() {
192
194
  checkSchema(fieldMappingSchemas.fieldMappingItemSchema),
193
195
  function (req, res, next) {
194
196
  const id = req.params.id;
197
+ const origData = JSON.parse(JSON.stringify(req.body));
195
198
  setEventData(
196
199
  req,
197
200
  CONSTANTS.EVENT_BASE_APC,
198
201
  CONSTANTS.EVENT_ACTION_MODIFY,
199
202
  CONSTANTS.FORM_APC_MAPPING_FIELDS,
200
203
  id,
201
- req.body
204
+ origData
202
205
  );
203
206
  log.debug('do');
204
207
  const errors = validationResult(req);
@@ -234,13 +237,14 @@ module.exports = (function() {
234
237
  checkSchema(fieldMappingSchemas.fieldMappingSchema),
235
238
  function (req, res, next) {
236
239
  const id = req.params.id;
240
+ const origData = JSON.parse(JSON.stringify(req.body));
237
241
  setEventData(
238
242
  req,
239
243
  CONSTANTS.EVENT_BASE_APC,
240
244
  CONSTANTS.EVENT_ACTION_MODIFY,
241
245
  CONSTANTS.FORM_APC_MAPPING_FIELDS,
242
246
  null,
243
- req.body
247
+ origData
244
248
  );
245
249
  log.debug('do');
246
250
  const errors = validationResult(req);
@@ -314,13 +318,14 @@ module.exports = (function() {
314
318
  routes.post('/clients', isAuthorizedAdmin,
315
319
  checkSchema(clientConfigSchema),
316
320
  function (req, res, next) {
321
+ const origData = JSON.parse(JSON.stringify(req.body));
317
322
  setEventData(
318
323
  req,
319
324
  CONSTANTS.EVENT_BASE_APC,
320
325
  CONSTANTS.EVENT_ACTION_CREATE,
321
326
  CONSTANTS.FORM_APC_CLIENTS,
322
327
  null,
323
- req.body
328
+ origData
324
329
  );
325
330
  const errors = validationResult(req);
326
331
  if (!errors.isEmpty()) {
@@ -348,13 +353,14 @@ module.exports = (function() {
348
353
  checkSchema(clientConfigSchema),
349
354
  function (req, res, next) {
350
355
  const id = req.params.id;
356
+ const origData = JSON.parse(JSON.stringify(req.body));
351
357
  setEventData(
352
358
  req,
353
359
  CONSTANTS.EVENT_BASE_APC,
354
360
  CONSTANTS.EVENT_ACTION_MODIFY,
355
361
  CONSTANTS.FORM_APC_CLIENTS,
356
362
  id,
357
- req.body
363
+ origData
358
364
  );
359
365
  const errors = validationResult(req);
360
366
  if (!errors.isEmpty()) {