node-opcua-address-space-base 2.74.0 → 2.76.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/address_space.d.ts +2 -1
- package/dist/i_event_data.d.ts +17 -0
- package/dist/i_event_data.js +3 -0
- package/dist/i_event_data.js.map +1 -0
- package/dist/index.d.ts +7 -6
- package/dist/index.js +7 -6
- package/dist/index.js.map +1 -1
- package/dist/ua_event_type.d.ts +0 -18
- package/dist/ua_object.d.ts +6 -1
- package/package.json +15 -48
- package/source/address_space.ts +2 -1
- package/source/i_event_data.ts +19 -0
- package/source/index.ts +7 -6
- package/source/ua_event_type.ts +0 -22
- package/source/ua_object.ts +7 -1
package/dist/address_space.d.ts
CHANGED
|
@@ -7,9 +7,10 @@ import { AddReferenceOpts, BaseNode } from "./base_node";
|
|
|
7
7
|
import { INamespace } from "./namespace";
|
|
8
8
|
import { ISessionContext } from "./session_context";
|
|
9
9
|
import { UADataType } from "./ua_data_type";
|
|
10
|
-
import { IEventData
|
|
10
|
+
import { IEventData } from "./i_event_data";
|
|
11
11
|
import { UAMethod } from "./ua_method";
|
|
12
12
|
import { UAObject } from "./ua_object";
|
|
13
|
+
import { UAEventType } from "./ua_event_type";
|
|
13
14
|
import { UAObjectType } from "./ua_object_type";
|
|
14
15
|
import { UAReference } from "./ua_reference";
|
|
15
16
|
import { UAReferenceType } from "./ua_reference_type";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { NodeId } from "node-opcua-nodeid";
|
|
2
|
+
import { BrowsePath, BrowsePathResult } from "node-opcua-types";
|
|
3
|
+
import { Variant, VariantLike } from "node-opcua-variant";
|
|
4
|
+
import { BaseNode } from "./base_node";
|
|
5
|
+
export interface IEventData {
|
|
6
|
+
/**
|
|
7
|
+
* the event type node
|
|
8
|
+
*/
|
|
9
|
+
$eventDataSource?: BaseNode;
|
|
10
|
+
/**
|
|
11
|
+
*
|
|
12
|
+
*/
|
|
13
|
+
eventId: NodeId;
|
|
14
|
+
_createValue(fullBrowsePath: string, node: BaseNode, variant: VariantLike): void;
|
|
15
|
+
_readValue(nodeId: NodeId): Variant | null;
|
|
16
|
+
_browse(browsePath: BrowsePath): BrowsePathResult | null;
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"i_event_data.js","sourceRoot":"","sources":["../source/i_event_data.ts"],"names":[],"mappings":""}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
export * from "./address_space";
|
|
2
2
|
export * from "./base_node";
|
|
3
3
|
export * from "./bind_variable";
|
|
4
|
+
export * from "./clone_options";
|
|
4
5
|
export * from "./continuation_point";
|
|
6
|
+
export * from "./event_notifier_flags";
|
|
7
|
+
export * from "./i_event_data";
|
|
5
8
|
export * from "./modelling_rule_type";
|
|
6
9
|
export * from "./namespace";
|
|
7
10
|
export * from "./session_context";
|
|
@@ -9,14 +12,12 @@ export * from "./ua_data_type";
|
|
|
9
12
|
export * from "./ua_dynamic_variable_array";
|
|
10
13
|
export * from "./ua_event_type";
|
|
11
14
|
export * from "./ua_method";
|
|
12
|
-
export * from "./ua_object";
|
|
13
15
|
export * from "./ua_object_type";
|
|
14
|
-
export * from "./
|
|
16
|
+
export * from "./ua_object";
|
|
17
|
+
export * from "./ua_property";
|
|
15
18
|
export * from "./ua_reference_type";
|
|
16
|
-
export * from "./
|
|
19
|
+
export * from "./ua_reference";
|
|
17
20
|
export * from "./ua_variable_t";
|
|
18
21
|
export * from "./ua_variable_type";
|
|
22
|
+
export * from "./ua_variable";
|
|
19
23
|
export * from "./ua_view";
|
|
20
|
-
export * from "./clone_options";
|
|
21
|
-
export * from "./ua_property";
|
|
22
|
-
export * from "./event_notifier_flags";
|
package/dist/index.js
CHANGED
|
@@ -17,7 +17,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./address_space"), exports);
|
|
18
18
|
__exportStar(require("./base_node"), exports);
|
|
19
19
|
__exportStar(require("./bind_variable"), exports);
|
|
20
|
+
__exportStar(require("./clone_options"), exports);
|
|
20
21
|
__exportStar(require("./continuation_point"), exports);
|
|
22
|
+
__exportStar(require("./event_notifier_flags"), exports);
|
|
23
|
+
__exportStar(require("./i_event_data"), exports);
|
|
21
24
|
__exportStar(require("./modelling_rule_type"), exports);
|
|
22
25
|
__exportStar(require("./namespace"), exports);
|
|
23
26
|
__exportStar(require("./session_context"), exports);
|
|
@@ -25,15 +28,13 @@ __exportStar(require("./ua_data_type"), exports);
|
|
|
25
28
|
__exportStar(require("./ua_dynamic_variable_array"), exports);
|
|
26
29
|
__exportStar(require("./ua_event_type"), exports);
|
|
27
30
|
__exportStar(require("./ua_method"), exports);
|
|
28
|
-
__exportStar(require("./ua_object"), exports);
|
|
29
31
|
__exportStar(require("./ua_object_type"), exports);
|
|
30
|
-
__exportStar(require("./
|
|
32
|
+
__exportStar(require("./ua_object"), exports);
|
|
33
|
+
__exportStar(require("./ua_property"), exports);
|
|
31
34
|
__exportStar(require("./ua_reference_type"), exports);
|
|
32
|
-
__exportStar(require("./
|
|
35
|
+
__exportStar(require("./ua_reference"), exports);
|
|
33
36
|
__exportStar(require("./ua_variable_t"), exports);
|
|
34
37
|
__exportStar(require("./ua_variable_type"), exports);
|
|
38
|
+
__exportStar(require("./ua_variable"), exports);
|
|
35
39
|
__exportStar(require("./ua_view"), exports);
|
|
36
|
-
__exportStar(require("./clone_options"), exports);
|
|
37
|
-
__exportStar(require("./ua_property"), exports);
|
|
38
|
-
__exportStar(require("./event_notifier_flags"), exports);
|
|
39
40
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../source/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC;AAChC,8CAA4B;AAC5B,kDAAgC;AAChC,uDAAqC;AACrC,wDAAsC;AACtC,8CAA4B;AAC5B,oDAAkC;AAClC,iDAA+B;AAC/B,8DAA4C;AAC5C,kDAAgC;AAChC,8CAA4B;AAC5B,8CAA4B;AAC5B,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../source/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC;AAChC,8CAA4B;AAC5B,kDAAgC;AAChC,kDAAgC;AAChC,uDAAqC;AACrC,yDAAuC;AACvC,iDAA+B;AAC/B,wDAAsC;AACtC,8CAA4B;AAC5B,oDAAkC;AAClC,iDAA+B;AAC/B,8DAA4C;AAC5C,kDAAgC;AAChC,8CAA4B;AAC5B,mDAAiC;AACjC,8CAA4B;AAC5B,gDAA8B;AAC9B,sDAAoC;AACpC,iDAA+B;AAC/B,kDAAgC;AAChC,qDAAmC;AACnC,gDAA8B;AAC9B,4CAA0B"}
|
package/dist/ua_event_type.d.ts
CHANGED
|
@@ -1,21 +1,3 @@
|
|
|
1
|
-
import { NodeId } from "node-opcua-nodeid";
|
|
2
|
-
import { SimpleAttributeOperand } from "node-opcua-types";
|
|
3
|
-
import { Variant, VariantLike } from "node-opcua-variant";
|
|
4
|
-
import { BaseNode } from "./base_node";
|
|
5
|
-
import { ISessionContext } from "./session_context";
|
|
6
1
|
import { UAObjectType } from "./ua_object_type";
|
|
7
2
|
export interface UAEventType extends UAObjectType {
|
|
8
3
|
}
|
|
9
|
-
export interface IEventData {
|
|
10
|
-
/**
|
|
11
|
-
* the event type node
|
|
12
|
-
*/
|
|
13
|
-
$eventDataSource?: BaseNode;
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
*/
|
|
17
|
-
eventId: NodeId;
|
|
18
|
-
resolveSelectClause(selectClause: SimpleAttributeOperand): NodeId | null;
|
|
19
|
-
setValue(lowerName: string, node: BaseNode, variant: VariantLike): void;
|
|
20
|
-
readValue(sessionContext: ISessionContext, nodeId: NodeId, selectClause: SimpleAttributeOperand): Variant;
|
|
21
|
-
}
|
package/dist/ua_object.d.ts
CHANGED
|
@@ -7,7 +7,8 @@ import { ExtensionObject } from "node-opcua-extension-object";
|
|
|
7
7
|
import { CloneOptions, CloneFilter, CloneExtraInfo } from "./clone_options";
|
|
8
8
|
import { BaseNode, IPropertyAndComponentHolder } from "./base_node";
|
|
9
9
|
import { UAObjectType } from "./ua_object_type";
|
|
10
|
-
import { IEventData
|
|
10
|
+
import { IEventData } from "./i_event_data";
|
|
11
|
+
import { UAEventType } from "./ua_event_type";
|
|
11
12
|
import { UAMethod } from "./ua_method";
|
|
12
13
|
import { EventNotifierFlags } from "./event_notifier_flags";
|
|
13
14
|
export declare type EventTypeLike = string | NodeId | UAEventType;
|
|
@@ -18,6 +19,10 @@ export interface PseudoVariantString {
|
|
|
18
19
|
dataType: "String" | DataType.String;
|
|
19
20
|
value: UAString;
|
|
20
21
|
}
|
|
22
|
+
export interface PseudoVariantStringPredefined<S extends string> {
|
|
23
|
+
dataType: "String" | DataType.String;
|
|
24
|
+
value: S;
|
|
25
|
+
}
|
|
21
26
|
export interface PseudoVariantBoolean {
|
|
22
27
|
dataType: "Boolean" | DataType.Boolean;
|
|
23
28
|
value: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-opcua-address-space-base",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.76.2",
|
|
4
4
|
"description": "pure nodejs OPCUA SDK - module -address-space",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -16,53 +16,20 @@
|
|
|
16
16
|
"c": "mocha --version"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@types/lodash": "4.14.
|
|
20
|
-
"
|
|
21
|
-
"chalk": "4.1.2",
|
|
22
|
-
"dequeue": "^1.0.5",
|
|
23
|
-
"lodash": "4.17.21",
|
|
24
|
-
"node-opcua-assert": "2.74.0",
|
|
25
|
-
"node-opcua-basic-types": "2.74.0",
|
|
26
|
-
"node-opcua-client-dynamic-extension-object": "2.74.0",
|
|
19
|
+
"@types/lodash": "4.14.184",
|
|
20
|
+
"node-opcua-basic-types": "2.76.2",
|
|
27
21
|
"node-opcua-constants": "2.74.0",
|
|
28
|
-
"node-opcua-
|
|
29
|
-
"node-opcua-data-model": "2.
|
|
30
|
-
"node-opcua-data-value": "2.
|
|
31
|
-
"node-opcua-date-time": "2.
|
|
32
|
-
"node-opcua-
|
|
33
|
-
"node-opcua-
|
|
34
|
-
"node-opcua-
|
|
35
|
-
"node-opcua-
|
|
36
|
-
"node-opcua-
|
|
37
|
-
"node-opcua-
|
|
38
|
-
"node-opcua-
|
|
39
|
-
"node-opcua-schemas": "2.74.0",
|
|
40
|
-
"node-opcua-service-browse": "2.74.0",
|
|
41
|
-
"node-opcua-service-call": "2.74.0",
|
|
42
|
-
"node-opcua-service-filter": "2.74.0",
|
|
43
|
-
"node-opcua-service-history": "2.74.0",
|
|
44
|
-
"node-opcua-service-translate-browse-path": "2.74.0",
|
|
45
|
-
"node-opcua-service-write": "2.74.0",
|
|
46
|
-
"node-opcua-status-code": "2.74.0",
|
|
47
|
-
"node-opcua-types": "2.74.0",
|
|
48
|
-
"node-opcua-utils": "2.74.0",
|
|
49
|
-
"node-opcua-variant": "2.74.0",
|
|
50
|
-
"node-opcua-xml2json": "2.74.0",
|
|
51
|
-
"set-prototype-of": "^1.0.0",
|
|
52
|
-
"thenify": "^3.3.1",
|
|
53
|
-
"xml-writer": "^1.7.0"
|
|
54
|
-
},
|
|
55
|
-
"devDependencies": {
|
|
56
|
-
"node-opcua-benchmarker": "2.74.0",
|
|
57
|
-
"node-opcua-binary-stream": "2.74.0",
|
|
58
|
-
"node-opcua-extension-object": "2.74.0",
|
|
59
|
-
"node-opcua-leak-detector": "2.74.0",
|
|
60
|
-
"node-opcua-nodesets": "2.74.0",
|
|
61
|
-
"node-opcua-packet-analyzer": "2.74.0",
|
|
62
|
-
"node-opcua-test-fixtures": "2.74.0",
|
|
63
|
-
"should": "^13.2.3",
|
|
64
|
-
"sinon": "^14.0.0",
|
|
65
|
-
"source-map-support": "^0.5.21"
|
|
22
|
+
"node-opcua-crypto": "^1.11.0",
|
|
23
|
+
"node-opcua-data-model": "2.76.2",
|
|
24
|
+
"node-opcua-data-value": "2.76.2",
|
|
25
|
+
"node-opcua-date-time": "2.76.2",
|
|
26
|
+
"node-opcua-extension-object": "2.76.2",
|
|
27
|
+
"node-opcua-nodeid": "2.76.2",
|
|
28
|
+
"node-opcua-numeric-range": "2.76.2",
|
|
29
|
+
"node-opcua-schemas": "2.76.2",
|
|
30
|
+
"node-opcua-status-code": "2.76.2",
|
|
31
|
+
"node-opcua-types": "2.76.2",
|
|
32
|
+
"node-opcua-variant": "2.76.2"
|
|
66
33
|
},
|
|
67
34
|
"author": "Etienne Rossignon",
|
|
68
35
|
"license": "MIT",
|
|
@@ -79,5 +46,5 @@
|
|
|
79
46
|
"internet of things"
|
|
80
47
|
],
|
|
81
48
|
"homepage": "http://node-opcua.github.io/",
|
|
82
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "acb5ecaf1e1c71af3b63e80909d58447f3f298e7"
|
|
83
50
|
}
|
package/source/address_space.ts
CHANGED
|
@@ -8,9 +8,10 @@ import { AddReferenceOpts, BaseNode } from "./base_node";
|
|
|
8
8
|
import { INamespace } from "./namespace";
|
|
9
9
|
import { ISessionContext } from "./session_context";
|
|
10
10
|
import { UADataType } from "./ua_data_type";
|
|
11
|
-
import { IEventData
|
|
11
|
+
import { IEventData } from "./i_event_data";
|
|
12
12
|
import { UAMethod } from "./ua_method";
|
|
13
13
|
import { UAObject } from "./ua_object";
|
|
14
|
+
import { UAEventType } from "./ua_event_type";
|
|
14
15
|
import { UAObjectType } from "./ua_object_type";
|
|
15
16
|
import { UAReference } from "./ua_reference";
|
|
16
17
|
import { UAReferenceType } from "./ua_reference_type";
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { NodeId } from "node-opcua-nodeid";
|
|
2
|
+
import { BrowsePath, BrowsePathResult } from "node-opcua-types";
|
|
3
|
+
import { Variant, VariantLike } from "node-opcua-variant";
|
|
4
|
+
import { BaseNode } from "./base_node";
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
export interface IEventData {
|
|
8
|
+
/**
|
|
9
|
+
* the event type node
|
|
10
|
+
*/
|
|
11
|
+
$eventDataSource?: BaseNode;
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
*/
|
|
15
|
+
eventId: NodeId;
|
|
16
|
+
_createValue(fullBrowsePath: string, node: BaseNode, variant: VariantLike): void;
|
|
17
|
+
_readValue(nodeId: NodeId): Variant | null;
|
|
18
|
+
_browse(browsePath: BrowsePath): BrowsePathResult | null;
|
|
19
|
+
}
|
package/source/index.ts
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
export * from "./address_space";
|
|
2
2
|
export * from "./base_node";
|
|
3
3
|
export * from "./bind_variable";
|
|
4
|
+
export * from "./clone_options";
|
|
4
5
|
export * from "./continuation_point";
|
|
6
|
+
export * from "./event_notifier_flags";
|
|
7
|
+
export * from "./i_event_data";
|
|
5
8
|
export * from "./modelling_rule_type";
|
|
6
9
|
export * from "./namespace";
|
|
7
10
|
export * from "./session_context";
|
|
@@ -9,14 +12,12 @@ export * from "./ua_data_type";
|
|
|
9
12
|
export * from "./ua_dynamic_variable_array";
|
|
10
13
|
export * from "./ua_event_type";
|
|
11
14
|
export * from "./ua_method";
|
|
12
|
-
export * from "./ua_object";
|
|
13
15
|
export * from "./ua_object_type";
|
|
14
|
-
export * from "./
|
|
16
|
+
export * from "./ua_object";
|
|
17
|
+
export * from "./ua_property";
|
|
15
18
|
export * from "./ua_reference_type";
|
|
16
|
-
export * from "./
|
|
19
|
+
export * from "./ua_reference";
|
|
17
20
|
export * from "./ua_variable_t";
|
|
18
21
|
export * from "./ua_variable_type";
|
|
22
|
+
export * from "./ua_variable";
|
|
19
23
|
export * from "./ua_view";
|
|
20
|
-
export * from "./clone_options";
|
|
21
|
-
export * from "./ua_property";
|
|
22
|
-
export * from "./event_notifier_flags";
|
package/source/ua_event_type.ts
CHANGED
|
@@ -1,25 +1,3 @@
|
|
|
1
|
-
import { NodeId } from "node-opcua-nodeid";
|
|
2
|
-
import { SimpleAttributeOperand } from "node-opcua-types";
|
|
3
|
-
import { Variant, VariantLike } from "node-opcua-variant";
|
|
4
|
-
|
|
5
|
-
import { BaseNode } from "./base_node";
|
|
6
|
-
import { ISessionContext } from "./session_context";
|
|
7
1
|
import { UAObjectType } from "./ua_object_type";
|
|
8
|
-
|
|
9
2
|
// tslint:disable:no-empty-interface
|
|
10
3
|
export interface UAEventType extends UAObjectType {}
|
|
11
|
-
|
|
12
|
-
export interface IEventData {
|
|
13
|
-
/**
|
|
14
|
-
* the event type node
|
|
15
|
-
*/
|
|
16
|
-
$eventDataSource?: BaseNode;
|
|
17
|
-
/**
|
|
18
|
-
*
|
|
19
|
-
*/
|
|
20
|
-
eventId: NodeId;
|
|
21
|
-
|
|
22
|
-
resolveSelectClause(selectClause: SimpleAttributeOperand): NodeId | null;
|
|
23
|
-
setValue(lowerName: string, node: BaseNode, variant: VariantLike): void;
|
|
24
|
-
readValue(sessionContext: ISessionContext, nodeId: NodeId, selectClause: SimpleAttributeOperand): Variant;
|
|
25
|
-
}
|
package/source/ua_object.ts
CHANGED
|
@@ -7,7 +7,8 @@ import { ExtensionObject } from "node-opcua-extension-object";
|
|
|
7
7
|
import { CloneOptions, CloneFilter, CloneExtraInfo } from "./clone_options";
|
|
8
8
|
import { BaseNode, IPropertyAndComponentHolder } from "./base_node";
|
|
9
9
|
import { UAObjectType } from "./ua_object_type";
|
|
10
|
-
import { IEventData
|
|
10
|
+
import { IEventData } from "./i_event_data";
|
|
11
|
+
import { UAEventType} from "./ua_event_type";
|
|
11
12
|
import { UAMethod } from "./ua_method";
|
|
12
13
|
import { EventNotifierFlags } from "./event_notifier_flags";
|
|
13
14
|
|
|
@@ -22,6 +23,11 @@ export interface PseudoVariantString {
|
|
|
22
23
|
value: UAString;
|
|
23
24
|
}
|
|
24
25
|
|
|
26
|
+
export interface PseudoVariantStringPredefined<S extends string> {
|
|
27
|
+
dataType: "String" | DataType.String;
|
|
28
|
+
value: S;
|
|
29
|
+
}
|
|
30
|
+
|
|
25
31
|
export interface PseudoVariantBoolean {
|
|
26
32
|
dataType: "Boolean" | DataType.Boolean;
|
|
27
33
|
value: boolean;
|