node-opcua-client-proxy 2.71.0 → 2.72.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/dist/common.d.ts +3 -3
- package/dist/common.js +4 -4
- package/dist/index.d.ts +6 -6
- package/dist/index.js +22 -22
- package/dist/object_explorer.d.ts +20 -20
- package/dist/object_explorer.js +462 -462
- package/dist/proxy.d.ts +2 -2
- package/dist/proxy.js +18 -18
- package/dist/proxy_base_node.d.ts +83 -83
- package/dist/proxy_base_node.js +88 -88
- package/dist/proxy_manager.d.ts +50 -50
- package/dist/proxy_manager.js +261 -261
- package/dist/proxy_object.d.ts +6 -6
- package/dist/proxy_object.js +14 -14
- package/dist/proxy_state.d.ts +14 -14
- package/dist/proxy_state.js +27 -27
- package/dist/proxy_state_machine.d.ts +12 -12
- package/dist/proxy_state_machine.js +21 -21
- package/dist/proxy_transition.d.ts +24 -24
- package/dist/proxy_transition.js +29 -29
- package/dist/proxy_variable.d.ts +7 -7
- package/dist/proxy_variable.js +14 -14
- package/dist/state_machine_proxy.d.ts +8 -8
- package/dist/state_machine_proxy.js +43 -43
- package/package.json +12 -12
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
/**
|
|
3
|
-
* @module node-opcua-client-proxy
|
|
4
|
-
*/
|
|
5
|
-
import { EventEmitter } from "events";
|
|
6
|
-
import { NodeId } from "node-opcua-nodeid";
|
|
7
|
-
import { UAProxyManager } from "./proxy_manager";
|
|
8
|
-
export declare class StateMachineProxy extends EventEmitter {
|
|
9
|
-
nodeId: NodeId;
|
|
10
|
-
private proxyManager;
|
|
11
|
-
constructor(proxyManager: UAProxyManager, nodeId: NodeId);
|
|
12
|
-
}
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
/**
|
|
3
|
+
* @module node-opcua-client-proxy
|
|
4
|
+
*/
|
|
5
|
+
import { EventEmitter } from "events";
|
|
6
|
+
import { NodeId } from "node-opcua-nodeid";
|
|
7
|
+
import { UAProxyManager } from "./proxy_manager";
|
|
8
|
+
export declare class StateMachineProxy extends EventEmitter {
|
|
9
|
+
nodeId: NodeId;
|
|
10
|
+
private proxyManager;
|
|
11
|
+
constructor(proxyManager: UAProxyManager, nodeId: NodeId);
|
|
12
|
+
}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.StateMachineProxy = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* @module node-opcua-client-proxy
|
|
6
|
-
*/
|
|
7
|
-
const events_1 = require("events");
|
|
8
|
-
const node_opcua_assert_1 = require("node-opcua-assert");
|
|
9
|
-
class StateMachineProxy extends events_1.EventEmitter {
|
|
10
|
-
constructor(proxyManager, nodeId) {
|
|
11
|
-
super();
|
|
12
|
-
this.nodeId = nodeId;
|
|
13
|
-
this.proxyManager = proxyManager;
|
|
14
|
-
(0, node_opcua_assert_1.assert)(this.proxyManager.session, "expecting valid session");
|
|
15
|
-
Object.defineProperty(this, "proxyManager", {
|
|
16
|
-
enumerable: false,
|
|
17
|
-
writable: true
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
exports.StateMachineProxy = StateMachineProxy;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StateMachineProxy = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* @module node-opcua-client-proxy
|
|
6
|
+
*/
|
|
7
|
+
const events_1 = require("events");
|
|
8
|
+
const node_opcua_assert_1 = require("node-opcua-assert");
|
|
9
|
+
class StateMachineProxy extends events_1.EventEmitter {
|
|
10
|
+
constructor(proxyManager, nodeId) {
|
|
11
|
+
super();
|
|
12
|
+
this.nodeId = nodeId;
|
|
13
|
+
this.proxyManager = proxyManager;
|
|
14
|
+
(0, node_opcua_assert_1.assert)(this.proxyManager.session, "expecting valid session");
|
|
15
|
+
Object.defineProperty(this, "proxyManager", {
|
|
16
|
+
enumerable: false,
|
|
17
|
+
writable: true
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.StateMachineProxy = StateMachineProxy;
|
|
22
22
|
//# sourceMappingURL=proxy_state_machine.js.map
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { QualifiedName } from "node-opcua-data-model";
|
|
2
|
-
import { NodeId } from "node-opcua-nodeid";
|
|
3
|
-
export interface ProxyNode {
|
|
4
|
-
nodeId: NodeId;
|
|
5
|
-
browseName: QualifiedName;
|
|
6
|
-
$fromState: ProxyNode;
|
|
7
|
-
$toState: ProxyNode;
|
|
8
|
-
$components: ProxyNode[];
|
|
9
|
-
typeDefinition?: {
|
|
10
|
-
toString(): string;
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* @module node-opcua-client-proxy
|
|
15
|
-
*/
|
|
16
|
-
export declare class ProxyTransition {
|
|
17
|
-
private _node;
|
|
18
|
-
constructor(proxyNode: ProxyNode);
|
|
19
|
-
get nodeId(): string;
|
|
20
|
-
get browseName(): string;
|
|
21
|
-
get fromStateNode(): ProxyNode;
|
|
22
|
-
get toStateNode(): ProxyNode;
|
|
23
|
-
}
|
|
24
|
-
export declare function makeProxyTransition(node: ProxyNode): ProxyTransition;
|
|
1
|
+
import { QualifiedName } from "node-opcua-data-model";
|
|
2
|
+
import { NodeId } from "node-opcua-nodeid";
|
|
3
|
+
export interface ProxyNode {
|
|
4
|
+
nodeId: NodeId;
|
|
5
|
+
browseName: QualifiedName;
|
|
6
|
+
$fromState: ProxyNode;
|
|
7
|
+
$toState: ProxyNode;
|
|
8
|
+
$components: ProxyNode[];
|
|
9
|
+
typeDefinition?: {
|
|
10
|
+
toString(): string;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* @module node-opcua-client-proxy
|
|
15
|
+
*/
|
|
16
|
+
export declare class ProxyTransition {
|
|
17
|
+
private _node;
|
|
18
|
+
constructor(proxyNode: ProxyNode);
|
|
19
|
+
get nodeId(): string;
|
|
20
|
+
get browseName(): string;
|
|
21
|
+
get fromStateNode(): ProxyNode;
|
|
22
|
+
get toStateNode(): ProxyNode;
|
|
23
|
+
}
|
|
24
|
+
export declare function makeProxyTransition(node: ProxyNode): ProxyTransition;
|
package/dist/proxy_transition.js
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.makeProxyTransition = exports.ProxyTransition = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* @module node-opcua-client-proxy
|
|
6
|
-
*/
|
|
7
|
-
class ProxyTransition {
|
|
8
|
-
constructor(proxyNode) {
|
|
9
|
-
this._node = proxyNode;
|
|
10
|
-
}
|
|
11
|
-
get nodeId() {
|
|
12
|
-
// note stateNumber has no real dataValue
|
|
13
|
-
return this._node.nodeId.value.toString();
|
|
14
|
-
}
|
|
15
|
-
get browseName() {
|
|
16
|
-
return this._node.browseName.toString();
|
|
17
|
-
}
|
|
18
|
-
get fromStateNode() {
|
|
19
|
-
return this._node.$fromState;
|
|
20
|
-
}
|
|
21
|
-
get toStateNode() {
|
|
22
|
-
return this._node.$toState;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
exports.ProxyTransition = ProxyTransition;
|
|
26
|
-
function makeProxyTransition(node) {
|
|
27
|
-
return new ProxyTransition(node);
|
|
28
|
-
}
|
|
29
|
-
exports.makeProxyTransition = makeProxyTransition;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.makeProxyTransition = exports.ProxyTransition = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* @module node-opcua-client-proxy
|
|
6
|
+
*/
|
|
7
|
+
class ProxyTransition {
|
|
8
|
+
constructor(proxyNode) {
|
|
9
|
+
this._node = proxyNode;
|
|
10
|
+
}
|
|
11
|
+
get nodeId() {
|
|
12
|
+
// note stateNumber has no real dataValue
|
|
13
|
+
return this._node.nodeId.value.toString();
|
|
14
|
+
}
|
|
15
|
+
get browseName() {
|
|
16
|
+
return this._node.browseName.toString();
|
|
17
|
+
}
|
|
18
|
+
get fromStateNode() {
|
|
19
|
+
return this._node.$fromState;
|
|
20
|
+
}
|
|
21
|
+
get toStateNode() {
|
|
22
|
+
return this._node.$toState;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
exports.ProxyTransition = ProxyTransition;
|
|
26
|
+
function makeProxyTransition(node) {
|
|
27
|
+
return new ProxyTransition(node);
|
|
28
|
+
}
|
|
29
|
+
exports.makeProxyTransition = makeProxyTransition;
|
|
30
30
|
//# sourceMappingURL=proxy_transition.js.map
|
package/dist/proxy_variable.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { NodeId } from "node-opcua-nodeid";
|
|
2
|
-
import { ReferenceDescription } from "node-opcua-service-browse";
|
|
3
|
-
import { ProxyBaseNode } from "./proxy_base_node";
|
|
4
|
-
import { UAProxyManager } from "./proxy_manager";
|
|
5
|
-
export declare class ProxyVariable extends ProxyBaseNode {
|
|
6
|
-
constructor(proxyManager: UAProxyManager, nodeId: NodeId, reference: ReferenceDescription);
|
|
7
|
-
}
|
|
1
|
+
import { NodeId } from "node-opcua-nodeid";
|
|
2
|
+
import { ReferenceDescription } from "node-opcua-service-browse";
|
|
3
|
+
import { ProxyBaseNode } from "./proxy_base_node";
|
|
4
|
+
import { UAProxyManager } from "./proxy_manager";
|
|
5
|
+
export declare class ProxyVariable extends ProxyBaseNode {
|
|
6
|
+
constructor(proxyManager: UAProxyManager, nodeId: NodeId, reference: ReferenceDescription);
|
|
7
|
+
}
|
package/dist/proxy_variable.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ProxyVariable = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* @module node-opcua-client-proxy
|
|
6
|
-
*/
|
|
7
|
-
const node_opcua_data_model_1 = require("node-opcua-data-model");
|
|
8
|
-
const proxy_base_node_1 = require("./proxy_base_node");
|
|
9
|
-
class ProxyVariable extends proxy_base_node_1.ProxyBaseNode {
|
|
10
|
-
constructor(proxyManager, nodeId, reference) {
|
|
11
|
-
super(proxyManager, nodeId, node_opcua_data_model_1.NodeClass.Variable);
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
exports.ProxyVariable = ProxyVariable;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ProxyVariable = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* @module node-opcua-client-proxy
|
|
6
|
+
*/
|
|
7
|
+
const node_opcua_data_model_1 = require("node-opcua-data-model");
|
|
8
|
+
const proxy_base_node_1 = require("./proxy_base_node");
|
|
9
|
+
class ProxyVariable extends proxy_base_node_1.ProxyBaseNode {
|
|
10
|
+
constructor(proxyManager, nodeId, reference) {
|
|
11
|
+
super(proxyManager, nodeId, node_opcua_data_model_1.NodeClass.Variable);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.ProxyVariable = ProxyVariable;
|
|
15
15
|
//# sourceMappingURL=proxy_variable.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ProxyState } from "./proxy_state";
|
|
2
|
-
import { ProxyNode, ProxyTransition } from "./proxy_transition";
|
|
3
|
-
export declare class ProxyStateMachineType {
|
|
4
|
-
initialState: ProxyState | undefined;
|
|
5
|
-
states: ProxyState[];
|
|
6
|
-
transitions: ProxyTransition[];
|
|
7
|
-
constructor(obj: ProxyNode);
|
|
8
|
-
}
|
|
1
|
+
import { ProxyState } from "./proxy_state";
|
|
2
|
+
import { ProxyNode, ProxyTransition } from "./proxy_transition";
|
|
3
|
+
export declare class ProxyStateMachineType {
|
|
4
|
+
initialState: ProxyState | undefined;
|
|
5
|
+
states: ProxyState[];
|
|
6
|
+
transitions: ProxyTransition[];
|
|
7
|
+
constructor(obj: ProxyNode);
|
|
8
|
+
}
|
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ProxyStateMachineType = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* @module node-opcua-client-proxy
|
|
6
|
-
*/
|
|
7
|
-
const node_opcua_assert_1 = require("node-opcua-assert");
|
|
8
|
-
const proxy_state_1 = require("./proxy_state");
|
|
9
|
-
const proxy_transition_1 = require("./proxy_transition");
|
|
10
|
-
class ProxyStateMachineType {
|
|
11
|
-
constructor(obj) {
|
|
12
|
-
const localInitialState = obj.$components.filter((component) => {
|
|
13
|
-
if (!component.typeDefinition) {
|
|
14
|
-
return false;
|
|
15
|
-
}
|
|
16
|
-
return component.typeDefinition.toString() === "InitialStateType";
|
|
17
|
-
});
|
|
18
|
-
if (localInitialState.length) {
|
|
19
|
-
(0, node_opcua_assert_1.assert)(localInitialState.length === 1);
|
|
20
|
-
this.initialState = new proxy_state_1.ProxyState(localInitialState[0]);
|
|
21
|
-
}
|
|
22
|
-
else {
|
|
23
|
-
this.initialState = undefined;
|
|
24
|
-
}
|
|
25
|
-
this.states = obj.$components
|
|
26
|
-
.filter((component) => {
|
|
27
|
-
if (!component.typeDefinition) {
|
|
28
|
-
return false;
|
|
29
|
-
}
|
|
30
|
-
return component.typeDefinition.toString() === "StateType";
|
|
31
|
-
})
|
|
32
|
-
.map(proxy_state_1.makeProxyState);
|
|
33
|
-
this.transitions = obj.$components
|
|
34
|
-
.filter((component) => {
|
|
35
|
-
if (!component.typeDefinition) {
|
|
36
|
-
return false;
|
|
37
|
-
}
|
|
38
|
-
return component.typeDefinition.toString() === "TransitionType";
|
|
39
|
-
})
|
|
40
|
-
.map(proxy_transition_1.makeProxyTransition);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
exports.ProxyStateMachineType = ProxyStateMachineType;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ProxyStateMachineType = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* @module node-opcua-client-proxy
|
|
6
|
+
*/
|
|
7
|
+
const node_opcua_assert_1 = require("node-opcua-assert");
|
|
8
|
+
const proxy_state_1 = require("./proxy_state");
|
|
9
|
+
const proxy_transition_1 = require("./proxy_transition");
|
|
10
|
+
class ProxyStateMachineType {
|
|
11
|
+
constructor(obj) {
|
|
12
|
+
const localInitialState = obj.$components.filter((component) => {
|
|
13
|
+
if (!component.typeDefinition) {
|
|
14
|
+
return false;
|
|
15
|
+
}
|
|
16
|
+
return component.typeDefinition.toString() === "InitialStateType";
|
|
17
|
+
});
|
|
18
|
+
if (localInitialState.length) {
|
|
19
|
+
(0, node_opcua_assert_1.assert)(localInitialState.length === 1);
|
|
20
|
+
this.initialState = new proxy_state_1.ProxyState(localInitialState[0]);
|
|
21
|
+
}
|
|
22
|
+
else {
|
|
23
|
+
this.initialState = undefined;
|
|
24
|
+
}
|
|
25
|
+
this.states = obj.$components
|
|
26
|
+
.filter((component) => {
|
|
27
|
+
if (!component.typeDefinition) {
|
|
28
|
+
return false;
|
|
29
|
+
}
|
|
30
|
+
return component.typeDefinition.toString() === "StateType";
|
|
31
|
+
})
|
|
32
|
+
.map(proxy_state_1.makeProxyState);
|
|
33
|
+
this.transitions = obj.$components
|
|
34
|
+
.filter((component) => {
|
|
35
|
+
if (!component.typeDefinition) {
|
|
36
|
+
return false;
|
|
37
|
+
}
|
|
38
|
+
return component.typeDefinition.toString() === "TransitionType";
|
|
39
|
+
})
|
|
40
|
+
.map(proxy_transition_1.makeProxyTransition);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
exports.ProxyStateMachineType = ProxyStateMachineType;
|
|
44
44
|
//# sourceMappingURL=state_machine_proxy.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-opcua-client-proxy",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.72.2",
|
|
4
4
|
"description": "pure nodejs OPCUA SDK - module -client-proxy",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"clean": "npx rimraf dist *.tsbuildinfo",
|
|
@@ -13,22 +13,22 @@
|
|
|
13
13
|
"types": "./dist/index.d.ts",
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"async": "^3.2.4",
|
|
16
|
-
"node-opcua-address-space": "2.
|
|
16
|
+
"node-opcua-address-space": "2.72.2",
|
|
17
17
|
"node-opcua-assert": "2.66.0",
|
|
18
18
|
"node-opcua-constants": "2.70.0",
|
|
19
|
-
"node-opcua-data-model": "2.
|
|
20
|
-
"node-opcua-data-value": "2.
|
|
19
|
+
"node-opcua-data-model": "2.72.1",
|
|
20
|
+
"node-opcua-data-value": "2.72.2",
|
|
21
21
|
"node-opcua-debug": "2.71.0",
|
|
22
22
|
"node-opcua-nodeid": "2.71.0",
|
|
23
|
-
"node-opcua-pseudo-session": "2.
|
|
24
|
-
"node-opcua-service-browse": "2.
|
|
25
|
-
"node-opcua-service-call": "2.
|
|
26
|
-
"node-opcua-service-read": "2.
|
|
27
|
-
"node-opcua-service-subscription": "2.
|
|
28
|
-
"node-opcua-service-write": "2.
|
|
23
|
+
"node-opcua-pseudo-session": "2.72.2",
|
|
24
|
+
"node-opcua-service-browse": "2.72.2",
|
|
25
|
+
"node-opcua-service-call": "2.72.2",
|
|
26
|
+
"node-opcua-service-read": "2.72.2",
|
|
27
|
+
"node-opcua-service-subscription": "2.72.2",
|
|
28
|
+
"node-opcua-service-write": "2.72.2",
|
|
29
29
|
"node-opcua-status-code": "2.71.0",
|
|
30
30
|
"node-opcua-utils": "2.71.0",
|
|
31
|
-
"node-opcua-variant": "2.
|
|
31
|
+
"node-opcua-variant": "2.72.2"
|
|
32
32
|
},
|
|
33
33
|
"author": "Etienne Rossignon",
|
|
34
34
|
"license": "MIT",
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"internet of things"
|
|
46
46
|
],
|
|
47
47
|
"homepage": "http://node-opcua.github.io/",
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "07dcdd8e8c7f2b55544c6e23023093e35674829c"
|
|
49
49
|
}
|