ac-support-connector 1.0.6 → 1.0.7

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 CHANGED
@@ -1,4 +1,13 @@
1
1
 
2
+ ## [1.0.7](https://github.com/admiralcloud/ac-support-connector/compare/v1.0.6..v1.0.7) (2025-03-30 14:32:39)
3
+
4
+
5
+ ### Bug Fix
6
+
7
+ * **Connector:** Allow parameter SUPPORT_CHECK_PROJECT for support check | MP | [a1def330f0cbe5ffbe91e2eb54b92fac5a273a13](https://github.com/admiralcloud/ac-support-connector/commit/a1def330f0cbe5ffbe91e2eb54b92fac5a273a13)
8
+ With SUPPORT_CHECK_PROJECT you can define the project for the support check
9
+ Related issues:
10
+
2
11
  ## [1.0.6](https://github.com/admiralcloud/ac-support-connector/compare/v1.0.5..v1.0.6) (2025-03-30 13:21:21)
3
12
 
4
13
 
package/README.md CHANGED
@@ -84,6 +84,9 @@ export SUPPORT_CHECK=teams
84
84
  OR
85
85
  export SUPPORT_CHECK=jsm
86
86
 
87
+ // OPTIONAL, you can define a project for teams (channel) or jsm (service desk ID)
88
+ export SUPPORT_CHECK_PROJECT=myChannel (for teams)
89
+
87
90
  // Then run the app
88
91
  node server.js
89
92
  ```
package/index.js CHANGED
@@ -48,9 +48,17 @@ module.exports = {
48
48
  const ticket = {
49
49
  platforms: [process.env.SUPPORT_CHECK],
50
50
  subject: 'SupportConnector | SupportCheck | TestMessage',
51
- text: `This is a random test message to show that support connector is working for this service | ${identifier}`,
52
51
  reporter: 'DevOps',
53
- level: 'error' // optional, if none is set, the level is info
52
+ message: [{
53
+ type: 'text',
54
+ content: `This is a random test message to show that support connector is working for this service | ${identifier}`
55
+ }]
56
+ }
57
+ if (process.env.SUPPORT_CHECK_PROJECT) {
58
+ ticket.message.push({
59
+ type: 'project',
60
+ content: process.env.SUPPORT_CHECK_PROJECT
61
+ })
54
62
  }
55
63
  await this.createMessage(ticket)
56
64
  console.warn(`Test Message ${identifier} sent`)
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "author": "Mark Poepping (https://www.admiralcloud.com)",
4
4
  "license": "MIT",
5
5
  "repository": "admiralcloud/ac-support-connector",
6
- "version": "1.0.6",
6
+ "version": "1.0.7",
7
7
  "dependencies": {
8
8
  "@aws-sdk/client-sts": "^3.777.0",
9
9
  "ac-sqs": "^3.0.0",