@things-factory/integration-base 6.1.103 → 6.1.106

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/integration-base",
3
- "version": "6.1.103",
3
+ "version": "6.1.106",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -46,5 +46,5 @@
46
46
  "devDependencies": {
47
47
  "@types/cron": "^2.0.1"
48
48
  },
49
- "gitHead": "c5acba2345556dd71e885ca56692c8a50216568e"
49
+ "gitHead": "575c1311948ec9089b989409f5f8bbe0b117dbd9"
50
50
  }
@@ -28,8 +28,10 @@ export async function analyzeIntegration(domain: Domain) {
28
28
  return {
29
29
  id: scenario.id,
30
30
  labels: ['Scenario'],
31
+ text: scenario.name,
31
32
  properties: {
32
- scenarioId: scenario.id
33
+ name: scenario.name,
34
+ description: scenario.description
33
35
  }
34
36
  }
35
37
  })
@@ -38,10 +40,12 @@ export async function analyzeIntegration(domain: Domain) {
38
40
  model.nodes = model.nodes.concat(
39
41
  connections.map(connection => {
40
42
  return {
41
- id: ++id,
43
+ id: connection.id,
42
44
  labels: ['Connection'],
45
+ text: connection.name,
43
46
  properties: {
44
- connectionId: connection.id
47
+ name: connection.name,
48
+ description: connection.description
45
49
  }
46
50
  }
47
51
  })
@@ -57,8 +61,9 @@ export async function analyzeIntegration(domain: Domain) {
57
61
  return {
58
62
  id: ++id,
59
63
  type: 'using',
60
- sourceNode: scenario.id,
61
- targetNode: connection.id
64
+ startNode: scenario.id,
65
+ endNode: connection.id,
66
+ properties: {}
62
67
  }
63
68
  })
64
69
 
@@ -81,6 +86,7 @@ export async function analyzeIntegration(domain: Domain) {
81
86
  model.nodes.push({
82
87
  id: `tag-${tag}`,
83
88
  labels: ['Tag'],
89
+ text: tag,
84
90
  properties: {
85
91
  tag
86
92
  }
@@ -93,8 +99,8 @@ export async function analyzeIntegration(domain: Domain) {
93
99
  return {
94
100
  id: ++id,
95
101
  type: 'publish',
96
- sourceNode: scenario.id,
97
- targetNode: `tag-${tag}`,
102
+ startNode: scenario.id,
103
+ endNode: `tag-${tag}`,
98
104
  properties: {}
99
105
  }
100
106
  })