node-opcua-address-space-base 2.90.0 → 2.91.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.
@@ -18,6 +18,8 @@ export interface UADataType extends BaseNode {
18
18
  readonly jsonEncoding: BaseNode | null;
19
19
  readonly basicDataType: DataType;
20
20
  readonly symbolicName: string;
21
+ isSubtypeOf(referenceType: NodeIdLike | UADataType): boolean;
22
+ /** @deprecated - use isSubtypeOf instead */
21
23
  isSupertypeOf(referenceType: NodeIdLike | UADataType): boolean;
22
24
  getEncodingNode(encodingName: string): BaseNode | null;
23
25
  /**
@@ -17,6 +17,8 @@ export declare interface UAObjectType extends BaseNode, IPropertyAndComponentHol
17
17
  readonly subtypeOfObj: UAObjectType | null;
18
18
  readonly isAbstract: boolean;
19
19
  readonly hasMethods: boolean;
20
+ isSubtypeOf(referenceType: NodeIdLike | UAObjectType): boolean;
21
+ /** @deprecated - use isSubtypeOf instead */
20
22
  isSupertypeOf(referenceType: NodeIdLike | UAObjectType): boolean;
21
23
  instantiate(options: InstantiateObjectOptions): UAObject;
22
24
  getMethodById(nodeId: NodeId): UAMethod | null;
@@ -8,6 +8,8 @@ export declare class UAReferenceType extends BaseNode {
8
8
  readonly subtypeOf: NodeId | null;
9
9
  readonly isAbstract: boolean;
10
10
  readonly inverseName: LocalizedText;
11
+ isSubtypeOf(baseType: UAReferenceType | NodeIdLike): boolean;
12
+ /** @deprecated - use isSubtypeOf instead */
11
13
  isSupertypeOf(baseType: UAReferenceType | NodeIdLike): boolean;
12
14
  getAllSubtypes(): UAReferenceType[];
13
15
  /**
@@ -1,4 +1,4 @@
1
- import { AttributeIds, CallbackT, PreciseClock, StatusCode, StatusCodeCallback, UInt32 } from "node-opcua-basic-types";
1
+ import { AttributeIds, CallbackT, DataType, PreciseClock, StatusCode, StatusCodeCallback, UInt32 } from "node-opcua-basic-types";
2
2
  import { NodeClass, QualifiedNameLike } from "node-opcua-data-model";
3
3
  import { NodeId } from "node-opcua-nodeid";
4
4
  import { DataValue } from "node-opcua-data-value";
@@ -59,6 +59,11 @@ export interface UAVariable extends BaseNode, VariableAttributes, IPropertyAndCo
59
59
  get typeDefinitionObj(): UAVariableType;
60
60
  get typeDefinition(): NodeId;
61
61
  dataType: NodeId;
62
+ /**
63
+ * returns the basic type of the variable that correspond to the dataType,
64
+ * that will be used in the dataValue.value.dataType property.
65
+ */
66
+ getBasicDataType(): DataType;
62
67
  /**
63
68
  * The **AccessLevel Attribute** is used to indicate how the Value of a Variable can be accessed
64
69
  * (read/write) and if it contains current and/or historic data.
@@ -19,6 +19,20 @@ export interface InstantiateVariableOptions extends InstantiateOptions {
19
19
  minimumSamplingInterval?: number;
20
20
  propertyOf?: NodeIdLike | UAObject | UAObjectType | UAVariable | UAVariableType | UAMethod;
21
21
  value?: BindVariableOptions;
22
+ /**
23
+ * This attribute indicates whether the Value attribute of the Variableis an array and how many dimensions the array has.
24
+ * It may have the following values:
25
+ * * n > 1: the Value is an array with the specified number of dimensions.
26
+ * * OneDimension (1): The value is an array with one dimension.
27
+ * * OneOrMoreDimensions (0): The value is an array with one or more dimensions.
28
+ * * Scalar (−1): The value is not an array.
29
+ * * Any (−2): The value can be a scalar or an array with any number of dimensions.
30
+ * * ScalarOrOneDimension (−3): The value can be a scalar or a one dimensional array.
31
+ * * All DataTypes are considered to be scalar, even if they have array-like semantics like ByteString and String.
32
+ *
33
+ *
34
+ * Note: the valueRank of the instantiated variable must be compatible with the valueRank of the VariableType.
35
+ */
22
36
  valueRank?: number;
23
37
  }
24
38
  export declare class UAVariableType extends BaseNode implements VariableAttributes {
@@ -31,6 +45,8 @@ export declare class UAVariableType extends BaseNode implements VariableAttribut
31
45
  arrayDimensions: UInt32[] | null;
32
46
  historizing: boolean;
33
47
  isAbstract: boolean;
48
+ isSubtypeOf(type: UAVariableType | NodeIdLike): boolean;
49
+ /** @deprecated - use isSubtypeOf instead */
34
50
  isSupertypeOf(type: UAVariableType | NodeIdLike): boolean;
35
51
  instantiate(options: InstantiateVariableOptions): UAVariable;
36
52
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-opcua-address-space-base",
3
- "version": "2.90.0",
3
+ "version": "2.91.0",
4
4
  "description": "pure nodejs OPCUA SDK - module -address-space",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -16,19 +16,19 @@
16
16
  "c": "mocha --version"
17
17
  },
18
18
  "dependencies": {
19
- "node-opcua-basic-types": "2.90.0",
19
+ "node-opcua-basic-types": "2.90.1",
20
20
  "node-opcua-constants": "2.88.0",
21
21
  "node-opcua-crypto": "^2.1.2",
22
- "node-opcua-data-model": "2.90.0",
23
- "node-opcua-data-value": "2.90.0",
24
- "node-opcua-date-time": "2.90.0",
25
- "node-opcua-extension-object": "2.90.0",
26
- "node-opcua-nodeid": "2.90.0",
27
- "node-opcua-numeric-range": "2.90.0",
28
- "node-opcua-schemas": "2.90.0",
29
- "node-opcua-status-code": "2.89.0",
30
- "node-opcua-types": "2.90.0",
31
- "node-opcua-variant": "2.90.0"
22
+ "node-opcua-data-model": "2.90.1",
23
+ "node-opcua-data-value": "2.90.1",
24
+ "node-opcua-date-time": "2.90.1",
25
+ "node-opcua-extension-object": "2.90.1",
26
+ "node-opcua-nodeid": "2.90.1",
27
+ "node-opcua-numeric-range": "2.90.1",
28
+ "node-opcua-schemas": "2.90.1",
29
+ "node-opcua-status-code": "2.90.1",
30
+ "node-opcua-types": "2.90.1",
31
+ "node-opcua-variant": "2.90.1"
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": "d55f9150c3ffa5b86fbe1a0baba69a2543c3090a"
48
+ "gitHead": "e1ed70a684fc69130696e001a9d43280df1466f4"
49
49
  }
@@ -28,6 +28,9 @@ export interface UADataType extends BaseNode {
28
28
  readonly basicDataType: DataType;
29
29
  readonly symbolicName: string;
30
30
 
31
+ isSubtypeOf(referenceType: NodeIdLike | UADataType): boolean;
32
+
33
+ /** @deprecated - use isSubtypeOf instead */
31
34
  isSupertypeOf(referenceType: NodeIdLike | UADataType): boolean;
32
35
 
33
36
  getEncodingNode(encodingName: string): BaseNode | null;
@@ -24,6 +24,9 @@ export declare interface UAObjectType extends BaseNode, IPropertyAndComponentHol
24
24
  readonly isAbstract: boolean;
25
25
  readonly hasMethods: boolean;
26
26
 
27
+ isSubtypeOf(referenceType: NodeIdLike | UAObjectType): boolean;
28
+
29
+ /** @deprecated - use isSubtypeOf instead */
27
30
  isSupertypeOf(referenceType: NodeIdLike | UAObjectType): boolean;
28
31
 
29
32
  instantiate(options: InstantiateObjectOptions): UAObject;
@@ -10,6 +10,9 @@ export declare class UAReferenceType extends BaseNode {
10
10
  public readonly isAbstract: boolean;
11
11
  public readonly inverseName: LocalizedText;
12
12
 
13
+ public isSubtypeOf(baseType: UAReferenceType | NodeIdLike): boolean;
14
+
15
+ /** @deprecated - use isSubtypeOf instead */
13
16
  public isSupertypeOf(baseType: UAReferenceType | NodeIdLike): boolean;
14
17
 
15
18
  public getAllSubtypes(): UAReferenceType[];
@@ -1,4 +1,4 @@
1
- import { AttributeIds, CallbackT, PreciseClock, StatusCode, StatusCodeCallback, UInt32 } from "node-opcua-basic-types";
1
+ import { AttributeIds, CallbackT, DataType, PreciseClock, StatusCode, StatusCodeCallback, UInt32 } from "node-opcua-basic-types";
2
2
  import { NodeClass, QualifiedNameLike } from "node-opcua-data-model";
3
3
  import { NodeId } from "node-opcua-nodeid";
4
4
  import { DataValue } from "node-opcua-data-value";
@@ -92,6 +92,12 @@ export interface UAVariable extends BaseNode, VariableAttributes, IPropertyAndCo
92
92
  // variable attributes
93
93
  dataType: NodeId;
94
94
 
95
+ /**
96
+ * returns the basic type of the variable that correspond to the dataType,
97
+ * that will be used in the dataValue.value.dataType property.
98
+ */
99
+ getBasicDataType(): DataType;
100
+
95
101
  /**
96
102
  * The **AccessLevel Attribute** is used to indicate how the Value of a Variable can be accessed
97
103
  * (read/write) and if it contains current and/or historic data.
@@ -20,7 +20,21 @@ export interface InstantiateVariableOptions extends InstantiateOptions {
20
20
  nodeId?: NodeIdLike;
21
21
  minimumSamplingInterval?: number;
22
22
  propertyOf?: NodeIdLike | UAObject | UAObjectType | UAVariable | UAVariableType | UAMethod;
23
- value?: BindVariableOptions;
23
+ value?: BindVariableOptions;
24
+ /**
25
+ * This attribute indicates whether the Value attribute of the Variableis an array and how many dimensions the array has.
26
+ * It may have the following values:
27
+ * * n > 1: the Value is an array with the specified number of dimensions.
28
+ * * OneDimension (1): The value is an array with one dimension.
29
+ * * OneOrMoreDimensions (0): The value is an array with one or more dimensions.
30
+ * * Scalar (−1): The value is not an array.
31
+ * * Any (−2): The value can be a scalar or an array with any number of dimensions.
32
+ * * ScalarOrOneDimension (−3): The value can be a scalar or a one dimensional array.
33
+ * * All DataTypes are considered to be scalar, even if they have array-like semantics like ByteString and String.
34
+ *
35
+ *
36
+ * Note: the valueRank of the instantiated variable must be compatible with the valueRank of the VariableType.
37
+ */
24
38
  valueRank?: number;
25
39
  }
26
40
  export declare class UAVariableType extends BaseNode implements VariableAttributes {
@@ -36,6 +50,9 @@ export declare class UAVariableType extends BaseNode implements VariableAttribut
36
50
 
37
51
  public isAbstract: boolean;
38
52
 
53
+ public isSubtypeOf(type: UAVariableType | NodeIdLike): boolean;
54
+
55
+ /** @deprecated - use isSubtypeOf instead */
39
56
  public isSupertypeOf(type: UAVariableType | NodeIdLike): boolean;
40
57
 
41
58
  public instantiate(options: InstantiateVariableOptions): UAVariable;