node-opcua-address-space-base 2.169.0 → 2.172.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.
Files changed (54) hide show
  1. package/dist/address_space.d.ts +21 -24
  2. package/dist/base_node.d.ts +61 -23
  3. package/dist/base_node.js +3 -0
  4. package/dist/base_node.js.map +1 -1
  5. package/dist/bind_variable.d.ts +8 -8
  6. package/dist/clone_helper.d.ts +7 -7
  7. package/dist/clone_helper.js +44 -23
  8. package/dist/clone_helper.js.map +1 -1
  9. package/dist/clone_options.d.ts +10 -10
  10. package/dist/clone_options.js +2 -2
  11. package/dist/clone_options.js.map +1 -1
  12. package/dist/continuation_point.d.ts +1 -1
  13. package/dist/i_event_data.d.ts +5 -8
  14. package/dist/index.d.ts +3 -3
  15. package/dist/index.js +3 -3
  16. package/dist/index.js.map +1 -1
  17. package/dist/instantiate_options.d.ts +5 -5
  18. package/dist/ua_data_type.d.ts +6 -6
  19. package/dist/ua_dynamic_variable_array.d.ts +6 -6
  20. package/dist/ua_event_type.d.ts +1 -1
  21. package/dist/ua_method.d.ts +16 -12
  22. package/dist/ua_object.d.ts +16 -18
  23. package/dist/ua_object_type.d.ts +9 -9
  24. package/dist/ua_property.d.ts +3 -3
  25. package/dist/ua_reference.d.ts +3 -3
  26. package/dist/ua_reference_type.d.ts +5 -5
  27. package/dist/ua_variable.d.ts +19 -19
  28. package/dist/ua_variable_t.d.ts +7 -7
  29. package/dist/ua_variable_type.d.ts +14 -14
  30. package/dist/ua_view.d.ts +3 -3
  31. package/package.json +15 -15
  32. package/source/address_space.ts +21 -24
  33. package/source/base_node.ts +128 -80
  34. package/source/bind_variable.ts +8 -9
  35. package/source/clone_helper.ts +67 -44
  36. package/source/clone_options.ts +13 -14
  37. package/source/continuation_point.ts +1 -2
  38. package/source/i_event_data.ts +7 -8
  39. package/source/index.ts +3 -3
  40. package/source/instantiate_options.ts +5 -6
  41. package/source/namespace.ts +1 -1
  42. package/source/ua_data_type.ts +6 -7
  43. package/source/ua_dynamic_variable_array.ts +6 -6
  44. package/source/ua_event_type.ts +1 -1
  45. package/source/ua_method.ts +33 -29
  46. package/source/ua_object.ts +22 -20
  47. package/source/ua_object_type.ts +9 -10
  48. package/source/ua_property.ts +5 -3
  49. package/source/ua_reference.ts +3 -3
  50. package/source/ua_reference_type.ts +14 -14
  51. package/source/ua_variable.ts +35 -30
  52. package/source/ua_variable_t.ts +7 -7
  53. package/source/ua_variable_type.ts +27 -28
  54. package/source/ua_view.ts +3 -3
@@ -1,3 +1,3 @@
1
- import { UAObjectType } from "./ua_object_type";
1
+ import type { UAObjectType } from "./ua_object_type";
2
2
  export interface UAEventType extends UAObjectType {
3
3
  }
@@ -1,18 +1,22 @@
1
- import { NodeClass } from "node-opcua-data-model";
2
- import { NodeId } from "node-opcua-nodeid";
3
- import { Argument, CallMethodResultOptions } from "node-opcua-types";
4
- import { Variant, VariantLike } from "node-opcua-variant";
5
- import { CallbackT } from "node-opcua-status-code";
6
- import { BaseNode } from "./base_node";
7
- import { ISessionContext } from "./session_context";
8
- import { UAObject } from "./ua_object";
9
- import { UAObjectType } from "./ua_object_type";
10
- import { UAVariable } from "./ua_variable";
11
- import { CloneExtraInfo, CloneFilter, CloneOptions } from "./clone_options";
1
+ import type { NodeClass } from "node-opcua-data-model";
2
+ import type { NodeId } from "node-opcua-nodeid";
3
+ import type { CallbackT } from "node-opcua-status-code";
4
+ import type { Argument, CallMethodResultOptions } from "node-opcua-types";
5
+ import type { Variant, VariantLike } from "node-opcua-variant";
6
+ import type { BaseNode, BaseNodeEvents, ListenerSignature } from "./base_node";
7
+ import type { CloneExtraInfo, CloneFilter, CloneOptions } from "./clone_options";
8
+ import type { ISessionContext } from "./session_context";
9
+ import type { UAObject } from "./ua_object";
10
+ import type { UAObjectType } from "./ua_object_type";
11
+ import type { UAVariable } from "./ua_variable";
12
12
  export declare type MethodFunctorC = (this: UAMethod, inputArguments: Variant[], context: ISessionContext, callback: CallbackT<CallMethodResultOptions>) => void;
13
13
  export declare type MethodFunctorA = (this: UAMethod, inputArguments: Variant[], context: ISessionContext) => Promise<CallMethodResultOptions>;
14
14
  export type MethodFunctor = MethodFunctorC | MethodFunctorA;
15
- export declare class UAMethod extends BaseNode {
15
+ export interface UAMethodEvents extends BaseNodeEvents {
16
+ "method_executed": (inputArguments: Variant[], context: ISessionContext, callMethodResult: CallMethodResultOptions) => void;
17
+ "afterCall": (context: ISessionContext, inputArguments: Variant[], callMethodResult: CallMethodResultOptions) => void;
18
+ }
19
+ export interface UAMethod<T extends UAMethodEvents & ListenerSignature<T> = UAMethodEvents> extends BaseNode<T> {
16
20
  readonly nodeClass: NodeClass.Method;
17
21
  readonly typeDefinition: NodeId;
18
22
  readonly typeDefinitionObj: UAObjectType;
@@ -1,16 +1,15 @@
1
- import { NodeId } from "node-opcua-nodeid";
2
- import { DataType, Variant, VariantArrayType } from "node-opcua-variant";
3
- import { Byte, DateTime, Int16, Int32, SByte, UAString, UInt16, UInt32 } from "node-opcua-basic-types";
4
- import { StatusCode } from "node-opcua-status-code";
5
- import { LocalizedTextLike, NodeClass, QualifiedNameOptions } from "node-opcua-data-model";
6
- import { ExtensionObject } from "node-opcua-extension-object";
7
- import { CloneOptions, CloneFilter, CloneExtraInfo } from "./clone_options";
8
- import { BaseNode, IPropertyAndComponentHolder } from "./base_node";
9
- import { UAObjectType } from "./ua_object_type";
10
- import { IEventData } from "./i_event_data";
11
- import { UAEventType } from "./ua_event_type";
12
- import { UAMethod } from "./ua_method";
13
- import { EventNotifierFlags } from "./event_notifier_flags";
1
+ import type { Byte, DateTime, Int16, Int32, SByte, UAString, UInt16, UInt32 } from "node-opcua-basic-types";
2
+ import type { LocalizedTextLike, NodeClass, QualifiedNameOptions } from "node-opcua-data-model";
3
+ import type { ExtensionObject } from "node-opcua-extension-object";
4
+ import type { NodeId } from "node-opcua-nodeid";
5
+ import type { StatusCode } from "node-opcua-status-code";
6
+ import type { DataType, Variant, VariantArrayType } from "node-opcua-variant";
7
+ import type { BaseNode, BaseNodeEvents, IPropertyAndComponentHolder, ListenerSignature } from "./base_node";
8
+ import type { CloneExtraInfo, CloneFilter, CloneOptions } from "./clone_options";
9
+ import type { EventNotifierFlags } from "./event_notifier_flags";
10
+ import type { UAEventType } from "./ua_event_type";
11
+ import type { UAMethod } from "./ua_method";
12
+ import type { UAObjectType } from "./ua_object_type";
14
13
  export type EventTypeLike = string | NodeId | UAEventType;
15
14
  export interface PseudoVariantNull {
16
15
  dataType: "Null" | DataType.Null;
@@ -111,10 +110,13 @@ export interface RaiseEventData {
111
110
  export interface EventRaiser {
112
111
  raiseEvent(eventType: EventTypeLike, eventData: RaiseEventData): void;
113
112
  }
113
+ export interface UAObjectEvents extends BaseNodeEvents {
114
+ "event_raised": () => void;
115
+ }
114
116
  /**
115
117
  * @interface UAObject
116
118
  */
117
- export interface UAObject extends BaseNode, EventRaiser, IPropertyAndComponentHolder {
119
+ export interface UAObject<T extends UAObjectEvents & ListenerSignature<T> = UAObjectEvents> extends BaseNode<T>, EventRaiser, IPropertyAndComponentHolder {
118
120
  readonly nodeClass: NodeClass.Object;
119
121
  get parent(): BaseNode | null;
120
122
  get typeDefinitionObj(): UAObjectType;
@@ -128,10 +130,6 @@ export interface UAObject extends BaseNode, EventRaiser, IPropertyAndComponentHo
128
130
  getMethodByName(methodName: string, namespaceIndex?: number): UAMethod | null;
129
131
  getMethods(): UAMethod[];
130
132
  raiseEvent(eventType: EventTypeLike | BaseNode, eventData: RaiseEventData): void;
131
- on(eventName: "event", eventHandler: (eventData: IEventData) => void): this;
132
- on(eventName: "dispose", eventHandler: () => void): this;
133
- once(eventName: "event", eventHandler: (eventData: IEventData) => void): this;
134
- once(eventName: "dispose", eventHandler: () => void): this;
135
133
  setEventNotifier(eventNotifierFlags: EventNotifierFlags): void;
136
134
  clone(options: CloneOptions, optionalFilter?: CloneFilter, extraInfo?: CloneExtraInfo): UAObject;
137
135
  }
@@ -1,11 +1,11 @@
1
- import { QualifiedNameLike, QualifiedNameOptions } from "node-opcua-data-model";
2
- import { NodeClass } from "node-opcua-types";
3
- import { NodeId, NodeIdLike } from "node-opcua-nodeid";
4
- import { InstantiateOptions } from "./instantiate_options";
5
- import { BaseNode, IPropertyAndComponentHolder } from "./base_node";
6
- import { UAObject } from "./ua_object";
7
- import { UAMethod } from "./ua_method";
8
- import { EventNotifierFlags } from "./event_notifier_flags";
1
+ import type { QualifiedNameLike, QualifiedNameOptions } from "node-opcua-data-model";
2
+ import type { NodeId, NodeIdLike } from "node-opcua-nodeid";
3
+ import type { NodeClass } from "node-opcua-types";
4
+ import type { BaseNode, BaseNodeEvents, IPropertyAndComponentHolder } from "./base_node";
5
+ import type { EventNotifierFlags } from "./event_notifier_flags";
6
+ import type { InstantiateOptions } from "./instantiate_options";
7
+ import type { UAMethod } from "./ua_method";
8
+ import type { UAObject } from "./ua_object";
9
9
  export interface InstantiateObjectOptions extends InstantiateOptions {
10
10
  conditionSource?: NodeId | BaseNode | null;
11
11
  eventNotifier?: EventNotifierFlags;
@@ -16,7 +16,7 @@ export interface InstantiateObjectOptions extends InstantiateOptions {
16
16
  */
17
17
  addInOf?: NodeId | BaseNode;
18
18
  }
19
- export declare interface UAObjectType extends BaseNode, IPropertyAndComponentHolder {
19
+ export declare interface UAObjectType extends BaseNode<BaseNodeEvents>, IPropertyAndComponentHolder {
20
20
  readonly nodeClass: NodeClass.ObjectType;
21
21
  readonly subtypeOf: NodeId | null;
22
22
  readonly subtypeOfObj: UAObjectType | null;
@@ -1,5 +1,5 @@
1
- import { DataType } from "node-opcua-variant";
2
- import { UAVariableT } from "./ua_variable_t";
1
+ import type { DataType } from "node-opcua-variant";
2
+ import type { UAVariableT } from "./ua_variable_t";
3
3
  /**
4
4
  * | | |
5
5
  * |----------------|--------------------------------------------------|
@@ -10,7 +10,7 @@ import { UAVariableT } from "./ua_variable_t";
10
10
  * |dataType Name |undefined ns=0;i=0 |
11
11
  * |isAbstract |false |
12
12
  */
13
- export interface UAProperty_Base<T, DT extends DataType> {
13
+ export interface UAProperty_Base<T, DT extends DataType> extends UAVariableT<T, DT> {
14
14
  }
15
15
  export interface UAProperty<T, DT extends DataType> extends UAVariableT<T, /*m*/ DT>, UAProperty_Base<T, DT> {
16
16
  }
@@ -1,6 +1,6 @@
1
- import { NodeId } from "node-opcua-nodeid";
2
- import { IAddressSpace } from "./address_space";
3
- import { BaseNode } from "./base_node";
1
+ import type { NodeId } from "node-opcua-nodeid";
2
+ import type { IAddressSpace } from "./address_space";
3
+ import type { BaseNode } from "./base_node";
4
4
  export interface UAReference {
5
5
  readonly nodeId: NodeId;
6
6
  readonly referenceType: NodeId;
@@ -1,8 +1,8 @@
1
- import { LocalizedText, NodeClass } from "node-opcua-data-model";
2
- import { NodeId, NodeIdLike } from "node-opcua-nodeid";
3
- import { BaseNode } from "./base_node";
4
- import { UAReference } from "./ua_reference";
5
- export declare class UAReferenceType extends BaseNode {
1
+ import type { LocalizedText, NodeClass } from "node-opcua-data-model";
2
+ import type { NodeId, NodeIdLike } from "node-opcua-nodeid";
3
+ import type { BaseNode } from "./base_node";
4
+ import type { UAReference } from "./ua_reference";
5
+ export interface UAReferenceType extends BaseNode {
6
6
  readonly nodeClass: NodeClass.ReferenceType;
7
7
  readonly subtypeOfObj: UAReferenceType | null;
8
8
  readonly subtypeOf: NodeId | null;
@@ -1,17 +1,17 @@
1
- import { AttributeIds, CallbackT, DataType, PreciseClock, StatusCode, StatusCodeCallback, UInt32 } from "node-opcua-basic-types";
2
- import { NodeClass, QualifiedNameLike } from "node-opcua-data-model";
3
- import { NodeId, NodeIdLike } from "node-opcua-nodeid";
4
- import { DataValue } from "node-opcua-data-value";
5
- import { ExtensionObject } from "node-opcua-extension-object";
6
- import { NumericRange } from "node-opcua-numeric-range";
7
- import { WriteValueOptions, HistoryReadDetails, HistoryReadResult, ReadRawModifiedDetails, ReadEventDetails, ReadProcessedDetails, ReadAtTimeDetails } from "node-opcua-types";
8
- import { VariantLike } from "node-opcua-variant";
9
- import { CloneOptions, CloneFilter, CloneExtraInfo } from "./clone_options";
10
- import { BaseNode, IPropertyAndComponentHolder } from "./base_node";
11
- import { ISessionContext, ContinuationData } from "./session_context";
12
- import { UADataType } from "./ua_data_type";
13
- import { UAVariableType } from "./ua_variable_type";
14
- import { BindVariableOptions } from "./bind_variable";
1
+ import type { AttributeIds, CallbackT, DataType, PreciseClock, StatusCode, StatusCodeCallback, UInt32 } from "node-opcua-basic-types";
2
+ import type { NodeClass, QualifiedNameLike } from "node-opcua-data-model";
3
+ import type { DataValue } from "node-opcua-data-value";
4
+ import type { ExtensionObject } from "node-opcua-extension-object";
5
+ import type { NodeId, NodeIdLike } from "node-opcua-nodeid";
6
+ import type { NumericRange } from "node-opcua-numeric-range";
7
+ import type { HistoryReadDetails, HistoryReadResult, ReadAtTimeDetails, ReadEventDetails, ReadProcessedDetails, ReadRawModifiedDetails, WriteValueOptions } from "node-opcua-types";
8
+ import type { VariantLike } from "node-opcua-variant";
9
+ import type { BaseNode, BaseNodeEvents, IPropertyAndComponentHolder, ListenerSignature } from "./base_node";
10
+ import type { BindVariableOptions } from "./bind_variable";
11
+ import type { CloneExtraInfo, CloneFilter, CloneOptions } from "./clone_options";
12
+ import type { ContinuationData, ISessionContext } from "./session_context";
13
+ import type { UADataType } from "./ua_data_type";
14
+ import type { UAVariableType } from "./ua_variable_type";
15
15
  export interface IVariableHistorian {
16
16
  /**
17
17
  * push a new value into the history for this variable
@@ -53,7 +53,11 @@ export interface BindExtensionObjectOptions {
53
53
  export interface IVariableDataTypeChange {
54
54
  changeDataType(newDataType: NodeIdLike, newValue?: VariantLike): void;
55
55
  }
56
- export interface UAVariable extends BaseNode, VariableAttributes, IVariableDataTypeChange, IPropertyAndComponentHolder {
56
+ export interface UAVariableEvents extends BaseNodeEvents {
57
+ value_changed: (newDataValue: DataValue, index_range?: NumericRange | null) => void;
58
+ semantic_changed: () => void;
59
+ }
60
+ export interface UAVariable<T extends UAVariableEvents & ListenerSignature<T> = UAVariableEvents> extends BaseNode<T>, VariableAttributes, IVariableDataTypeChange, IPropertyAndComponentHolder {
57
61
  readonly nodeClass: NodeClass.Variable;
58
62
  readonly parent: BaseNode | null;
59
63
  readonly dataTypeObj: UADataType;
@@ -287,8 +291,4 @@ export interface UAVariable extends BaseNode, VariableAttributes, IVariableDataT
287
291
  historyRead(context: ISessionContext, historyReadDetails: HistoryReadDetails | ReadRawModifiedDetails | ReadEventDetails | ReadProcessedDetails | ReadAtTimeDetails, indexRange: NumericRange | null, dataEncoding: QualifiedNameLike | null, continuationData: ContinuationData): Promise<HistoryReadResult>;
288
292
  historyRead(context: ISessionContext, historyReadDetails: HistoryReadDetails | ReadRawModifiedDetails | ReadEventDetails | ReadProcessedDetails | ReadAtTimeDetails, indexRange: NumericRange | null, dataEncoding: QualifiedNameLike | null, continuationData: ContinuationData, callback: CallbackT<HistoryReadResult>): void;
289
293
  clone(options: CloneOptions, optionalFilter?: CloneFilter, extraInfo?: CloneExtraInfo): UAVariable;
290
- on(eventName: "semantic_changed", eventHandler: () => void): this;
291
- on(eventName: "value_changed", eventHandler: (dataValue: DataValue) => void): this;
292
- once(eventName: "semantic_changed", eventHandler: () => void): this;
293
- once(eventName: "value_changed", eventHandler: (dataValue: DataValue) => void): this;
294
294
  }
@@ -1,10 +1,10 @@
1
- import { QualifiedNameLike } from "node-opcua-data-model";
2
- import { DataValueT } from "node-opcua-data-value";
3
- import { NumericRange } from "node-opcua-numeric-range";
4
- import { CallbackT, StatusCode, StatusCodeCallback } from "node-opcua-status-code";
5
- import { DataType } from "node-opcua-variant";
6
- import { ISessionContext } from "./session_context";
7
- import { UAVariable } from "./ua_variable";
1
+ import type { QualifiedNameLike } from "node-opcua-data-model";
2
+ import type { DataValueT } from "node-opcua-data-value";
3
+ import type { NumericRange } from "node-opcua-numeric-range";
4
+ import type { CallbackT, StatusCode, StatusCodeCallback } from "node-opcua-status-code";
5
+ import type { DataType } from "node-opcua-variant";
6
+ import type { ISessionContext } from "./session_context";
7
+ import type { UAVariable } from "./ua_variable";
8
8
  export interface UAVariableT<T, DT extends DataType> extends UAVariable {
9
9
  readValue(context?: ISessionContext | null, indexRange?: NumericRange, dataEncoding?: QualifiedNameLike | null): DataValueT<T, DT>;
10
10
  readValueAsync(context: ISessionContext | null): Promise<DataValueT<T, DT>>;
@@ -1,16 +1,16 @@
1
- import { NodeClass } from "node-opcua-data-model";
2
- import { NodeId, NodeIdLike } from "node-opcua-nodeid";
3
- import { UInt32 } from "node-opcua-basic-types";
4
- import { DataType } from "node-opcua-variant";
5
- import { ExtensionObject } from "node-opcua-extension-object";
6
- import { BaseNode } from "./base_node";
7
- import { InstantiateOptions } from "./instantiate_options";
8
- import { UAObject } from "./ua_object";
9
- import { UAObjectType } from "./ua_object_type";
10
- import { UAVariable, VariableAttributes } from "./ua_variable";
11
- import { UAVariableT } from "./ua_variable_t";
12
- import { BindVariableOptions } from "./bind_variable";
13
- import { UAMethod } from "./ua_method";
1
+ import type { UInt32 } from "node-opcua-basic-types";
2
+ import type { NodeClass } from "node-opcua-data-model";
3
+ import type { ExtensionObject } from "node-opcua-extension-object";
4
+ import type { NodeId, NodeIdLike } from "node-opcua-nodeid";
5
+ import type { DataType } from "node-opcua-variant";
6
+ import type { BaseNode } from "./base_node";
7
+ import type { BindVariableOptions } from "./bind_variable";
8
+ import type { InstantiateOptions } from "./instantiate_options";
9
+ import type { UAMethod } from "./ua_method";
10
+ import type { UAObject } from "./ua_object";
11
+ import type { UAObjectType } from "./ua_object_type";
12
+ import type { UAVariable, VariableAttributes } from "./ua_variable";
13
+ import type { UAVariableT } from "./ua_variable_t";
14
14
  export interface InstantiateVariableOptions extends InstantiateOptions {
15
15
  arrayDimensions?: number[] | null;
16
16
  dataType?: string | NodeIdLike;
@@ -35,7 +35,7 @@ export interface InstantiateVariableOptions extends InstantiateOptions {
35
35
  */
36
36
  valueRank?: number;
37
37
  }
38
- export declare class UAVariableType extends BaseNode implements VariableAttributes {
38
+ export interface UAVariableType extends BaseNode, VariableAttributes {
39
39
  readonly nodeClass: NodeClass.VariableType;
40
40
  readonly subtypeOfObj: UAVariableType | null;
41
41
  readonly subtypeOf: NodeId | null;
package/dist/ua_view.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { NodeClass } from "node-opcua-data-model";
2
- import { BaseNode } from "./base_node";
3
- import { EventNotifierFlags } from "./event_notifier_flags";
1
+ import type { NodeClass } from "node-opcua-data-model";
2
+ import type { BaseNode } from "./base_node";
3
+ import type { EventNotifierFlags } from "./event_notifier_flags";
4
4
  export interface UAView extends BaseNode {
5
5
  readonly nodeClass: NodeClass.View;
6
6
  readonly eventNotifier: EventNotifierFlags;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-opcua-address-space-base",
3
- "version": "2.169.0",
3
+ "version": "2.172.0",
4
4
  "description": "pure nodejs OPCUA SDK - module address-space-base",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -18,20 +18,20 @@
18
18
  },
19
19
  "dependencies": {
20
20
  "node-opcua-assert": "2.164.0",
21
- "node-opcua-basic-types": "2.169.0",
21
+ "node-opcua-basic-types": "2.172.0",
22
22
  "node-opcua-constants": "2.157.0",
23
- "node-opcua-crypto": "5.3.5",
24
- "node-opcua-data-model": "2.169.0",
25
- "node-opcua-data-value": "2.169.0",
26
- "node-opcua-date-time": "2.169.0",
27
- "node-opcua-debug": "2.168.0",
28
- "node-opcua-extension-object": "2.169.0",
29
- "node-opcua-nodeid": "2.169.0",
30
- "node-opcua-numeric-range": "2.169.0",
31
- "node-opcua-schemas": "2.169.0",
32
- "node-opcua-status-code": "2.169.0",
33
- "node-opcua-types": "2.169.0",
34
- "node-opcua-variant": "2.169.0"
23
+ "node-opcua-crypto": "5.3.6",
24
+ "node-opcua-data-model": "2.172.0",
25
+ "node-opcua-data-value": "2.172.0",
26
+ "node-opcua-date-time": "2.172.0",
27
+ "node-opcua-debug": "2.172.0",
28
+ "node-opcua-extension-object": "2.172.0",
29
+ "node-opcua-nodeid": "2.172.0",
30
+ "node-opcua-numeric-range": "2.172.0",
31
+ "node-opcua-schemas": "2.172.0",
32
+ "node-opcua-status-code": "2.172.0",
33
+ "node-opcua-types": "2.172.0",
34
+ "node-opcua-variant": "2.172.0"
35
35
  },
36
36
  "author": "Etienne Rossignon",
37
37
  "license": "MIT",
@@ -48,7 +48,7 @@
48
48
  "internet of things"
49
49
  ],
50
50
  "homepage": "http://node-opcua.github.io/",
51
- "gitHead": "82d570d3e95bea689cbbe30096279885c5282245",
51
+ "gitHead": "dfe9993a93b5c3897825e898b5f07b25952c7f45",
52
52
  "files": [
53
53
  "dist",
54
54
  "source"
@@ -1,24 +1,24 @@
1
- import { ExtensionObject } from "node-opcua-extension-object";
2
- import { NodeId, NodeIdLike } from "node-opcua-nodeid";
3
- import { AnyConstructorFunc } from "node-opcua-schemas";
4
- import { StatusCode } from "node-opcua-status-code";
5
- import { BrowseDescription, BrowsePath, BrowsePathResult, BrowseResult } from "node-opcua-types";
6
- import { DataType, Variant, VariantByteString } from "node-opcua-variant";
1
+ import type { ExtensionObject } from "node-opcua-extension-object";
2
+ import type { NodeId, NodeIdLike } from "node-opcua-nodeid";
3
+ import type { AnyConstructorFunc } from "node-opcua-schemas";
4
+ import type { StatusCode } from "node-opcua-status-code";
5
+ import type { BrowseDescription, BrowsePath, BrowsePathResult, BrowseResult } from "node-opcua-types";
6
+ import type { DataType, Variant, VariantByteString } from "node-opcua-variant";
7
7
  //
8
- import { AddReferenceOpts, BaseNode } from "./base_node";
9
- import { INamespace } from "./namespace";
10
- import { ISessionContext } from "./session_context";
11
- import { UADataType } from "./ua_data_type";
12
- import { IEventData } from "./i_event_data";
13
- import { UAMethod } from "./ua_method";
14
- import { UAObject } from "./ua_object";
15
- import { UAEventType } from "./ua_event_type";
16
- import { UAObjectType } from "./ua_object_type";
17
- import { UAReference } from "./ua_reference";
18
- import { UAReferenceType } from "./ua_reference_type";
19
- import { IHistoricalDataNodeOptions, UAVariable } from "./ua_variable";
20
- import { UAVariableType } from "./ua_variable_type";
21
- import { UAView } from "./ua_view";
8
+ import type { AddReferenceOpts, BaseNode } from "./base_node";
9
+ import type { IEventData } from "./i_event_data";
10
+ import type { INamespace } from "./namespace";
11
+ import type { ISessionContext } from "./session_context";
12
+ import type { UADataType } from "./ua_data_type";
13
+ import type { UAEventType } from "./ua_event_type";
14
+ import type { UAMethod } from "./ua_method";
15
+ import type { UAObject } from "./ua_object";
16
+ import type { UAObjectType } from "./ua_object_type";
17
+ import type { UAReference } from "./ua_reference";
18
+ import type { UAReferenceType } from "./ua_reference_type";
19
+ import type { IHistoricalDataNodeOptions, UAVariable } from "./ua_variable";
20
+ import type { UAVariableType } from "./ua_variable_type";
21
+ import type { UAView } from "./ua_view";
22
22
 
23
23
  export type ShutdownTask = ((this: IAddressSpace) => void) | ((this: IAddressSpace) => Promise<void>);
24
24
 
@@ -176,16 +176,13 @@ export interface IAddressSpace {
176
176
  /***
177
177
  * construct a simple javascript object with all the default properties of the event
178
178
  *
179
- * @return result.$eventDataSource the event type node
180
- * @return result.eventId the
181
- * ...
182
179
  *
183
180
  *
184
181
  * eventTypeId can be a UAObjectType deriving from EventType
185
182
  * or an instance of a ConditionType
186
183
  *
187
184
  */
188
- constructEventData(eventTypeId: UAEventType, data: any): IEventData;
185
+ constructEventData(eventTypeId: UAEventType, data: Record<string, unknown>): IEventData;
189
186
 
190
187
  /**
191
188
  * walk up the hierarchy of objects until a view is found