@manyos/smileconnect-api 1.64.8 → 1.65.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/Dockerfile CHANGED
@@ -16,12 +16,10 @@ WORKDIR /home/node/app
16
16
 
17
17
  COPY . .
18
18
 
19
- EXPOSE 3000
19
+ RUN mkdir /.npm && chmod 777 /.npm && chmod -R 777 /home/node/app/conf && chown -R node:node /home/node/app && chown -R node:node /node_modules
20
20
 
21
- RUN groupadd -g 999 appuser && \
22
- useradd -r -u 999 -g appuser appuser
21
+ USER node
23
22
 
24
- RUN mkdir /home/appuser && chown 999:999 /home/appuser
25
- USER appuser
23
+ EXPOSE 3000
26
24
 
27
25
  CMD npm start
package/docs/releases.md CHANGED
@@ -1,6 +1,9 @@
1
1
  # Release Notes
2
2
 
3
3
  ## API
4
+ ### 1.65.0 - 01.03.24
5
+ Add foundation data to dynamic api spec
6
+
4
7
  ### 1.64.8 - 26.10.23
5
8
  Add port in Metadata Request.
6
9
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@manyos/smileconnect-api",
3
- "version": "1.64.8",
3
+ "version": "1.65.0",
4
4
  "description": "A proxy and abstraction layer for BMCs IT Service Management Suite",
5
5
  "main": "app.js",
6
6
  "scripts": {
package/util/config.js CHANGED
@@ -340,8 +340,19 @@ async function getDesignPackage(clientId) {
340
340
  const schemas = {}
341
341
  let paths = {}
342
342
 
343
+ const ticketKeys = Object.keys(ticketConfig);
344
+ ticketKeys.push("organisation");
345
+ ticketKeys.push("supportGroup");
346
+ ticketKeys.push("person");
347
+
348
+ ticketKeys.push("changeTemplate");
349
+ ticketKeys.push("incidentTemplate");
350
+ ticketKeys.push("problemTemplate");
351
+ ticketKeys.push("workOrderTemplate");
352
+ ticketKeys.push("taskTemplate");
353
+
343
354
  //generate docs for normal tickets
344
- const keys = Object.keys(ticketConfig)
355
+ const keys = ticketKeys;
345
356
 
346
357
  for (let x=0; x<keys.length; x++) {
347
358
  const key = keys[x]
@@ -632,7 +643,7 @@ const ticketConfig = {
632
643
  "requestIdField": "Entry ID",
633
644
  "requestType": "incident",
634
645
  "ticketIdField": "Incident Number",
635
- businessServiceReconIdField: "ServiceCI_ReconID",
646
+ "businessServiceReconIdField": "ServiceCI_ReconID",
636
647
  "requestTypeWorkLog": "incidentWorklog",
637
648
  "requestTemplate": "incidentTemplate",
638
649
  "baseURI": "/v1/incidents",
@@ -651,7 +662,7 @@ const ticketConfig = {
651
662
  "requestIdField": "Request ID",
652
663
  "requestType": "change",
653
664
  "ticketIdField": "Infrastructure Change Id",
654
- businessServiceReconIdField: "ServiceCI_ReconID",
665
+ "businessServiceReconIdField": "ServiceCI_ReconID",
655
666
  "requestTypeWorkLog": "changeWorklog",
656
667
  "requestTemplate": "changeTemplate",
657
668
  "baseURI": "/v1/changes",