@things-factory/edge-client 7.0.1-beta.1 → 7.0.1-beta.10
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/dist-server/controllers/connect-connections.d.ts +2 -0
- package/dist-server/controllers/disconnect-connections.d.ts +2 -0
- package/dist-server/controllers/index.d.ts +2 -0
- package/dist-server/controllers/run-task.d.ts +2 -0
- package/dist-server/controllers/run-task.js.map +1 -1
- package/dist-server/controllers/sync-connections.d.ts +2 -0
- package/dist-server/engine/connector/edge-connector.d.ts +14 -0
- package/dist-server/engine/index.d.ts +1 -0
- package/dist-server/index.d.ts +2 -0
- package/dist-server/service/appliance/edge-client-mutation.d.ts +4 -0
- package/dist-server/service/appliance/edge-client-mutation.js +2 -2
- package/dist-server/service/appliance/edge-client-mutation.js.map +1 -1
- package/dist-server/service/appliance/edge-client-subscription.d.ts +8 -0
- package/dist-server/service/appliance/edge-client-subscription.js +4 -5
- package/dist-server/service/appliance/edge-client-subscription.js.map +1 -1
- package/dist-server/service/appliance/edge-client-type.d.ts +18 -0
- package/dist-server/service/appliance/edge-client-type.js +7 -8
- package/dist-server/service/appliance/edge-client-type.js.map +1 -1
- package/dist-server/service/appliance/index.d.ts +5 -0
- package/dist-server/service/index.d.ts +5 -0
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +6 -6
- package/server/service/appliance/edge-client-subscription.ts +7 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/edge-client",
|
|
3
|
-
"version": "7.0.1-beta.
|
|
3
|
+
"version": "7.0.1-beta.10",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"things-factory": true,
|
|
6
6
|
"license": "MIT",
|
|
@@ -22,10 +22,10 @@
|
|
|
22
22
|
"clean": "npm run clean:server"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@things-factory/auth-base": "^7.0.1-beta.
|
|
26
|
-
"@things-factory/integration-base": "^7.0.1-beta.
|
|
27
|
-
"@things-factory/lock-client": "^7.0.1-beta.
|
|
28
|
-
"@things-factory/shell": "^7.0.1-beta.
|
|
25
|
+
"@things-factory/auth-base": "^7.0.1-beta.10",
|
|
26
|
+
"@things-factory/integration-base": "^7.0.1-beta.10",
|
|
27
|
+
"@things-factory/lock-client": "^7.0.1-beta.10",
|
|
28
|
+
"@things-factory/shell": "^7.0.1-beta.10"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "facbff076fc6af507fa83d5e0b033ad88cdb2fc8"
|
|
31
31
|
}
|
|
@@ -35,7 +35,9 @@ export class EdgeClientSubscription {
|
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
process.nextTick(async () => {
|
|
38
|
-
const connections = Object.values(ConnectionManager.getConnectionInstanceEntities(domain)).filter(
|
|
38
|
+
const connections = Object.values(ConnectionManager.getConnectionInstanceEntities(domain)).filter(
|
|
39
|
+
({ edgeId }) => edgeId == appliance.id
|
|
40
|
+
)
|
|
39
41
|
|
|
40
42
|
if (connections.length > 0) {
|
|
41
43
|
pubsub.publish('sync-connections', connections)
|
|
@@ -67,7 +69,7 @@ export class EdgeClientSubscription {
|
|
|
67
69
|
...connection,
|
|
68
70
|
params: JSON.stringify(connection.params)
|
|
69
71
|
}
|
|
70
|
-
})
|
|
72
|
+
}) as any
|
|
71
73
|
}
|
|
72
74
|
|
|
73
75
|
@Subscription(type => [Connection], {
|
|
@@ -120,7 +122,7 @@ export class EdgeClientSubscription {
|
|
|
120
122
|
...connection,
|
|
121
123
|
params: JSON.stringify(connection.params)
|
|
122
124
|
}
|
|
123
|
-
})
|
|
125
|
+
}) as any
|
|
124
126
|
}
|
|
125
127
|
|
|
126
128
|
@Subscription(type => [Connection], {
|
|
@@ -167,13 +169,13 @@ export class EdgeClientSubscription {
|
|
|
167
169
|
)
|
|
168
170
|
}
|
|
169
171
|
})
|
|
170
|
-
disconnectConnections(@Root() payload: Connection): Connection[] {
|
|
172
|
+
disconnectConnections(@Root() payload: Connection[]): Connection[] {
|
|
171
173
|
return payload.map(connection => {
|
|
172
174
|
return {
|
|
173
175
|
...connection,
|
|
174
176
|
params: JSON.stringify(connection.params)
|
|
175
177
|
}
|
|
176
|
-
})
|
|
178
|
+
}) as any
|
|
177
179
|
}
|
|
178
180
|
|
|
179
181
|
@Subscription({
|