node-opcua-address-space-base 2.70.2 → 2.72.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.
@@ -0,0 +1,7 @@
1
+ export declare enum EventNotifierFlags {
2
+ SubscribeToEvents = 1,
3
+ Reserved = 2,
4
+ HistoryRead = 4,
5
+ HistoryWrite = 8,
6
+ None = 0
7
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EventNotifierFlags = void 0;
4
+ var EventNotifierFlags;
5
+ (function (EventNotifierFlags) {
6
+ EventNotifierFlags[EventNotifierFlags["SubscribeToEvents"] = 1] = "SubscribeToEvents";
7
+ EventNotifierFlags[EventNotifierFlags["Reserved"] = 2] = "Reserved";
8
+ EventNotifierFlags[EventNotifierFlags["HistoryRead"] = 4] = "HistoryRead";
9
+ EventNotifierFlags[EventNotifierFlags["HistoryWrite"] = 8] = "HistoryWrite";
10
+ EventNotifierFlags[EventNotifierFlags["None"] = 0] = "None";
11
+ })(EventNotifierFlags = exports.EventNotifierFlags || (exports.EventNotifierFlags = {}));
12
+ //# sourceMappingURL=event_notifier_flags.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"event_notifier_flags.js","sourceRoot":"","sources":["../source/event_notifier_flags.ts"],"names":[],"mappings":";;;AAAA,IAAY,kBAMX;AAND,WAAY,kBAAkB;IAC1B,qFAA0B,CAAA;IAC1B,mEAAiB,CAAA;IACjB,yEAAoB,CAAA;IACpB,2EAAqB,CAAA;IACrB,2DAAU,CAAA;AACd,CAAC,EANW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAM7B"}
package/dist/index.d.ts CHANGED
@@ -19,3 +19,4 @@ export * from "./ua_variable_type";
19
19
  export * from "./ua_view";
20
20
  export * from "./clone_options";
21
21
  export * from "./ua_property";
22
+ export * from "./event_notifier_flags";
package/dist/index.js CHANGED
@@ -35,4 +35,5 @@ __exportStar(require("./ua_variable_type"), exports);
35
35
  __exportStar(require("./ua_view"), exports);
36
36
  __exportStar(require("./clone_options"), exports);
37
37
  __exportStar(require("./ua_property"), exports);
38
+ __exportStar(require("./event_notifier_flags"), exports);
38
39
  //# 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,mDAAiC;AACjC,iDAA+B;AAC/B,sDAAoC;AACpC,gDAA8B;AAC9B,kDAAgC;AAChC,qDAAmC;AACnC,4CAA0B;AAC1B,kDAAgC;AAChC,gDAA8B"}
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,mDAAiC;AACjC,iDAA+B;AAC/B,sDAAoC;AACpC,gDAA8B;AAC9B,kDAAgC;AAChC,qDAAmC;AACnC,4CAA0B;AAC1B,kDAAgC;AAChC,gDAA8B;AAC9B,yDAAuC"}
@@ -9,6 +9,7 @@ import { BaseNode, IPropertyAndComponentHolder } from "./base_node";
9
9
  import { UAObjectType } from "./ua_object_type";
10
10
  import { IEventData, UAEventType } from "./ua_event_type";
11
11
  import { UAMethod } from "./ua_method";
12
+ import { EventNotifierFlags } from "./event_notifier_flags";
12
13
  export declare type EventTypeLike = string | NodeId | UAEventType;
13
14
  export interface PseudoVariantNull {
14
15
  dataType: "Null" | DataType.Null;
@@ -110,7 +111,7 @@ export interface UAObject extends BaseNode, EventRaiser, IPropertyAndComponentHo
110
111
  get parent(): BaseNode | null;
111
112
  get typeDefinitionObj(): UAObjectType;
112
113
  get typeDefinition(): NodeId;
113
- readonly eventNotifier: number;
114
+ readonly eventNotifier: EventNotifierFlags;
114
115
  readonly hasMethods: boolean;
115
116
  getFolderElementByName(browseName: QualifiedNameOptions): BaseNode | null;
116
117
  getFolderElementByName(browseName: string, namespaceIndex?: number): BaseNode | null;
@@ -120,5 +121,6 @@ export interface UAObject extends BaseNode, EventRaiser, IPropertyAndComponentHo
120
121
  getMethods(): UAMethod[];
121
122
  raiseEvent(eventType: EventTypeLike | BaseNode, eventData: RaiseEventData): void;
122
123
  on(eventName: "event", eventHandler: (eventData: IEventData) => void): this;
124
+ setEventNotifier(eventNotifierFlags: EventNotifierFlags): void;
123
125
  clone(options: CloneOptions, optionalFilter?: CloneFilter, extraInfo?: CloneExtraInfo): UAObject;
124
126
  }
@@ -7,7 +7,7 @@ import { BaseNode, IPropertyAndComponentHolder } from "./base_node";
7
7
  import { UAObject } from "./ua_object";
8
8
  import { UAMethod } from "./ua_method";
9
9
  export interface InstantiateObjectOptions extends InstantiateOptions {
10
- conditionSource?: NodeId | BaseNode;
10
+ conditionSource?: NodeId | BaseNode | null;
11
11
  eventNotifier?: Byte;
12
12
  encodingOf?: NodeId | BaseNode;
13
13
  }
package/dist/ua_view.d.ts CHANGED
@@ -1,5 +1,7 @@
1
1
  import { NodeClass } from "node-opcua-data-model";
2
2
  import { BaseNode } from "./base_node";
3
+ import { EventNotifierFlags } from "./event_notifier_flags";
3
4
  export interface UAView extends BaseNode {
4
5
  readonly nodeClass: NodeClass.View;
6
+ readonly eventNotifier: EventNotifierFlags;
5
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-opcua-address-space-base",
3
- "version": "2.70.2",
3
+ "version": "2.72.0",
4
4
  "description": "pure nodejs OPCUA SDK - module -address-space",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -17,49 +17,49 @@
17
17
  },
18
18
  "dependencies": {
19
19
  "@types/lodash": "4.14.182",
20
- "async": "^3.2.3",
20
+ "async": "^3.2.4",
21
21
  "chalk": "4.1.2",
22
22
  "dequeue": "^1.0.5",
23
23
  "lodash": "4.17.21",
24
24
  "node-opcua-assert": "2.66.0",
25
- "node-opcua-basic-types": "2.70.0",
26
- "node-opcua-client-dynamic-extension-object": "2.70.2",
25
+ "node-opcua-basic-types": "2.71.0",
26
+ "node-opcua-client-dynamic-extension-object": "2.72.0",
27
27
  "node-opcua-constants": "2.70.0",
28
- "node-opcua-data-access": "2.70.2",
29
- "node-opcua-data-model": "2.70.0",
30
- "node-opcua-data-value": "2.70.0",
31
- "node-opcua-date-time": "2.69.0",
32
- "node-opcua-debug": "2.69.0",
33
- "node-opcua-enum": "2.69.0",
34
- "node-opcua-factory": "2.70.0",
35
- "node-opcua-nodeid": "2.70.0",
36
- "node-opcua-numeric-range": "2.70.0",
37
- "node-opcua-object-registry": "2.69.0",
38
- "node-opcua-pseudo-session": "2.70.2",
39
- "node-opcua-schemas": "2.70.2",
40
- "node-opcua-service-browse": "2.70.2",
41
- "node-opcua-service-call": "2.70.2",
42
- "node-opcua-service-filter": "2.70.2",
43
- "node-opcua-service-history": "2.70.2",
44
- "node-opcua-service-translate-browse-path": "2.70.2",
45
- "node-opcua-service-write": "2.70.2",
46
- "node-opcua-status-code": "2.70.0",
47
- "node-opcua-types": "2.70.2",
48
- "node-opcua-utils": "2.69.0",
49
- "node-opcua-variant": "2.70.0",
50
- "node-opcua-xml2json": "2.70.2",
28
+ "node-opcua-data-access": "2.72.0",
29
+ "node-opcua-data-model": "2.71.0",
30
+ "node-opcua-data-value": "2.71.0",
31
+ "node-opcua-date-time": "2.71.0",
32
+ "node-opcua-debug": "2.71.0",
33
+ "node-opcua-enum": "2.71.0",
34
+ "node-opcua-factory": "2.71.0",
35
+ "node-opcua-nodeid": "2.71.0",
36
+ "node-opcua-numeric-range": "2.71.0",
37
+ "node-opcua-object-registry": "2.71.0",
38
+ "node-opcua-pseudo-session": "2.72.0",
39
+ "node-opcua-schemas": "2.72.0",
40
+ "node-opcua-service-browse": "2.72.0",
41
+ "node-opcua-service-call": "2.72.0",
42
+ "node-opcua-service-filter": "2.72.0",
43
+ "node-opcua-service-history": "2.72.0",
44
+ "node-opcua-service-translate-browse-path": "2.72.0",
45
+ "node-opcua-service-write": "2.72.0",
46
+ "node-opcua-status-code": "2.71.0",
47
+ "node-opcua-types": "2.72.0",
48
+ "node-opcua-utils": "2.71.0",
49
+ "node-opcua-variant": "2.71.0",
50
+ "node-opcua-xml2json": "2.71.0",
51
51
  "set-prototype-of": "^1.0.0",
52
52
  "thenify": "^3.3.1",
53
53
  "xml-writer": "^1.7.0"
54
54
  },
55
55
  "devDependencies": {
56
- "node-opcua-benchmarker": "2.69.0",
57
- "node-opcua-binary-stream": "2.69.0",
58
- "node-opcua-extension-object": "2.70.0",
59
- "node-opcua-leak-detector": "2.69.0",
60
- "node-opcua-nodesets": "2.70.2",
61
- "node-opcua-packet-analyzer": "2.70.0",
62
- "node-opcua-test-fixtures": "2.69.0",
56
+ "node-opcua-benchmarker": "2.71.0",
57
+ "node-opcua-binary-stream": "2.71.0",
58
+ "node-opcua-extension-object": "2.71.0",
59
+ "node-opcua-leak-detector": "2.71.0",
60
+ "node-opcua-nodesets": "2.71.0",
61
+ "node-opcua-packet-analyzer": "2.71.0",
62
+ "node-opcua-test-fixtures": "2.71.0",
63
63
  "should": "^13.2.3",
64
64
  "sinon": "^14.0.0",
65
65
  "source-map-support": "^0.5.21"
@@ -79,5 +79,5 @@
79
79
  "internet of things"
80
80
  ],
81
81
  "homepage": "http://node-opcua.github.io/",
82
- "gitHead": "3d63db79d14539ee61bc82998b19320202f35392"
82
+ "gitHead": "3c5f00e20bf5bef91a1ca3663af149b903760e5c"
83
83
  }
@@ -0,0 +1,7 @@
1
+ export enum EventNotifierFlags {
2
+ SubscribeToEvents = 1 << 0,
3
+ Reserved = 1 << 1,
4
+ HistoryRead = 1 << 2,
5
+ HistoryWrite = 1 << 3,
6
+ None = 0x0
7
+ }
package/source/index.ts CHANGED
@@ -19,3 +19,4 @@ export * from "./ua_variable_type";
19
19
  export * from "./ua_view";
20
20
  export * from "./clone_options";
21
21
  export * from "./ua_property";
22
+ export * from "./event_notifier_flags";
@@ -9,6 +9,7 @@ import { BaseNode, IPropertyAndComponentHolder } from "./base_node";
9
9
  import { UAObjectType } from "./ua_object_type";
10
10
  import { IEventData, UAEventType } from "./ua_event_type";
11
11
  import { UAMethod } from "./ua_method";
12
+ import { EventNotifierFlags } from "./event_notifier_flags";
12
13
 
13
14
  export type EventTypeLike = string | NodeId | UAEventType;
14
15
 
@@ -147,12 +148,13 @@ export interface EventRaiser {
147
148
  raiseEvent(eventType: EventTypeLike, eventData: RaiseEventData): void;
148
149
  }
149
150
 
151
+
150
152
  export interface UAObject extends BaseNode, EventRaiser, IPropertyAndComponentHolder {
151
153
  readonly nodeClass: NodeClass.Object;
152
154
  get parent(): BaseNode | null;
153
155
  get typeDefinitionObj(): UAObjectType;
154
156
  get typeDefinition(): NodeId;
155
- readonly eventNotifier: number;
157
+ readonly eventNotifier: EventNotifierFlags;
156
158
  readonly hasMethods: boolean;
157
159
 
158
160
  //
@@ -171,5 +173,7 @@ export interface UAObject extends BaseNode, EventRaiser, IPropertyAndComponentHo
171
173
 
172
174
  on(eventName: "event", eventHandler: (eventData: IEventData) => void): this;
173
175
 
176
+ setEventNotifier(eventNotifierFlags: EventNotifierFlags): void;
177
+
174
178
  clone(options: CloneOptions, optionalFilter?: CloneFilter, extraInfo?: CloneExtraInfo): UAObject;
175
179
  }
@@ -10,7 +10,7 @@ import { UAMethod } from "./ua_method";
10
10
 
11
11
  export interface InstantiateObjectOptions extends InstantiateOptions {
12
12
  //
13
- conditionSource?: NodeId | BaseNode;
13
+ conditionSource?: NodeId | BaseNode | null;
14
14
  eventNotifier?: Byte;
15
15
  // for DataTypeEncodingType
16
16
  encodingOf?: NodeId | BaseNode;
package/source/ua_view.ts CHANGED
@@ -1,6 +1,8 @@
1
1
  import { NodeClass } from "node-opcua-data-model";
2
2
  import { BaseNode } from "./base_node";
3
+ import { EventNotifierFlags } from "./event_notifier_flags";
3
4
 
4
5
  export interface UAView extends BaseNode {
5
6
  readonly nodeClass: NodeClass.View;
7
+ readonly eventNotifier: EventNotifierFlags;
6
8
  }