node-opcua-client-proxy 2.96.0 → 2.98.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.
@@ -1,30 +0,0 @@
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
- //# sourceMappingURL=proxy_transition.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"proxy_transition.js","sourceRoot":"","sources":["../source/proxy_transition.ts"],"names":[],"mappings":";;;AAWA;;GAEG;AACH,MAAa,eAAe;IAGxB,YAAY,SAAoB;QAC5B,IAAI,CAAC,KAAK,GAAG,SAAS,CAAC;IAC3B,CAAC;IAED,IAAI,MAAM;QACN,yCAAyC;QACzC,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC;IAC9C,CAAC;IAED,IAAI,UAAU;QACV,OAAO,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC;IAC5C,CAAC;IAED,IAAI,aAAa;QACb,OAAO,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC;IACjC,CAAC;IAED,IAAI,WAAW;QACX,OAAO,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC;IAC/B,CAAC;CACJ;AAvBD,0CAuBC;AACD,SAAgB,mBAAmB,CAAC,IAAe;IAC/C,OAAO,IAAI,eAAe,CAAC,IAAI,CAAC,CAAC;AACrC,CAAC;AAFD,kDAEC"}
@@ -1,7 +0,0 @@
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,15 +0,0 @@
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
- //# sourceMappingURL=proxy_variable.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"proxy_variable.js","sourceRoot":"","sources":["../source/proxy_variable.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,iEAAkD;AAGlD,uDAAkD;AAGlD,MAAa,aAAc,SAAQ,+BAAa;IAC5C,YAAY,YAA4B,EAAE,MAAc,EAAE,SAA+B;QACrF,KAAK,CAAC,YAAY,EAAE,MAAM,EAAE,iCAAS,CAAC,QAAQ,CAAC,CAAC;IACpD,CAAC;CACJ;AAJD,sCAIC"}
@@ -1,8 +0,0 @@
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 +0,0 @@
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
- //# sourceMappingURL=state_machine_proxy.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"state_machine_proxy.js","sourceRoot":"","sources":["../source/state_machine_proxy.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,yDAA2C;AAC3C,+CAA2D;AAC3D,yDAAqF;AAErF,MAAa,qBAAqB;IAK9B,YAAY,GAAc;QACtB,MAAM,iBAAiB,GAAG,GAAG,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,SAAc,EAAE,EAAE;YAChE,IAAI,CAAC,SAAS,CAAC,cAAc,EAAE;gBAC3B,OAAO,KAAK,CAAC;aAChB;YACD,OAAO,SAAS,CAAC,cAAc,CAAC,QAAQ,EAAE,KAAK,kBAAkB,CAAC;QACtE,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