node-opcua-address-space-base 2.90.0 → 2.90.1
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 +1 -1
- package/dist/base_node.d.ts +1 -1
- package/dist/bind_variable.d.ts +14 -14
- package/dist/continuation_point.d.ts +1 -1
- package/dist/modelling_rule_type.d.ts +1 -1
- package/dist/namespace.d.ts +2 -2
- package/dist/ua_method.d.ts +1 -1
- package/dist/ua_object.d.ts +3 -3
- package/dist/ua_variable.d.ts +7 -2
- package/dist/ua_variable_type.d.ts +14 -0
- package/package.json +13 -13
- package/source/ua_variable.ts +7 -1
- package/source/ua_variable_type.ts +15 -1
package/dist/address_space.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ import { UAReferenceType } from "./ua_reference_type";
|
|
|
17
17
|
import { IHistoricalDataNodeOptions, UAVariable } from "./ua_variable";
|
|
18
18
|
import { UAVariableType } from "./ua_variable_type";
|
|
19
19
|
import { UAView } from "./ua_view";
|
|
20
|
-
export
|
|
20
|
+
export type ShutdownTask = ((this: IAddressSpace) => void) | ((this: IAddressSpace) => Promise<void>);
|
|
21
21
|
interface UARootFolder_Objects extends UAObject {
|
|
22
22
|
server: UAObject;
|
|
23
23
|
}
|
package/dist/base_node.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { EventEmitter } from "events";
|
|
3
|
-
export
|
|
3
|
+
export type Duration = number;
|
|
4
4
|
import { AccessRestrictionsFlag, AttributeIds, BrowseDirection, LocalizedText, NodeClass, QualifiedName, QualifiedNameLike, QualifiedNameOptions } from "node-opcua-data-model";
|
|
5
5
|
import { DataType } from "node-opcua-variant";
|
|
6
6
|
import { DataValue } from "node-opcua-data-value";
|
package/dist/bind_variable.d.ts
CHANGED
|
@@ -6,19 +6,19 @@ import { QualifiedNameLike } from "node-opcua-data-model";
|
|
|
6
6
|
import { DataValue } from "node-opcua-data-value";
|
|
7
7
|
import { UAVariable } from "./ua_variable";
|
|
8
8
|
import { ContinuationData, ISessionContext } from "./session_context";
|
|
9
|
-
export
|
|
10
|
-
export
|
|
11
|
-
export
|
|
12
|
-
export
|
|
13
|
-
export
|
|
14
|
-
export
|
|
15
|
-
export
|
|
16
|
-
export
|
|
17
|
-
export
|
|
18
|
-
export
|
|
19
|
-
export
|
|
20
|
-
export
|
|
21
|
-
export
|
|
9
|
+
export type VariableSetterVariation1 = (this: UAVariable, value: Variant) => StatusCode;
|
|
10
|
+
export type VariableSetterVariation2 = (this: UAVariable, value: Variant, callback: CallbackT<StatusCode>) => void;
|
|
11
|
+
export type VariableSetter = VariableSetterVariation1 | VariableSetterVariation2;
|
|
12
|
+
export type HistoryReadFunc = (context: ISessionContext, historyReadDetails: ReadRawModifiedDetails | ReadEventDetails | ReadProcessedDetails | ReadAtTimeDetails, indexRange: NumericRange | null, dataEncoding: QualifiedNameLike | null, continuationData: ContinuationData, callback: CallbackT<HistoryReadResult>) => void;
|
|
13
|
+
export type GetFunc = (this: UAVariable) => Variant;
|
|
14
|
+
export type SetFunc = VariableSetter | null;
|
|
15
|
+
export type VariableDataValueGetterSync = (this: UAVariable) => DataValue;
|
|
16
|
+
export type VariableDataValueGetterPromise = (this: UAVariable) => Promise<DataValue>;
|
|
17
|
+
export type VariableDataValueGetterCallback = (this: UAVariable, callback: CallbackT<DataValue>) => void;
|
|
18
|
+
export type VariableDataValueSetterWithCallback = (this: UAVariable, dataValue: DataValue, callback: CallbackT<StatusCode>) => void;
|
|
19
|
+
export type VariableDataValueSetterWithPromise = (this: UAVariable, dataValue: DataValue) => Promise<StatusCode>;
|
|
20
|
+
export type TimestampGetFunc = VariableDataValueGetterSync | VariableDataValueGetterPromise | VariableDataValueGetterCallback;
|
|
21
|
+
export type TimestampSetFunc = VariableDataValueSetterWithCallback | VariableDataValueSetterWithPromise;
|
|
22
22
|
export interface BindVariableOptionsVariation1 {
|
|
23
23
|
get: GetFunc;
|
|
24
24
|
set?: SetFunc;
|
|
@@ -49,4 +49,4 @@ export interface BindVariableOptionsVariation4 extends VariantLike {
|
|
|
49
49
|
refreshFunc?: (callback: CallbackT<DataValue>) => void;
|
|
50
50
|
historyRead?: HistoryReadFunc;
|
|
51
51
|
}
|
|
52
|
-
export
|
|
52
|
+
export type BindVariableOptions = BindVariableOptionsVariation1 | BindVariableOptionsVariation2 | BindVariableOptionsVariation3 | BindVariableOptionsVariation4;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ByteString } from "node-opcua-basic-types";
|
|
2
|
-
export
|
|
2
|
+
export type ContinuationPoint = ByteString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type ModellingRuleType = "Mandatory" | "Optional" | "MandatoryPlaceholder" | "OptionalPlaceholder" | "ExposesItsArray" | null;
|
package/dist/namespace.d.ts
CHANGED
|
@@ -92,7 +92,7 @@ export interface AddMethodOptions {
|
|
|
92
92
|
accessRestrictions?: AccessRestrictionsFlag;
|
|
93
93
|
rolePermissions?: RolePermissionTypeOptions[];
|
|
94
94
|
}
|
|
95
|
-
export
|
|
95
|
+
export type AccessLevelString = string;
|
|
96
96
|
export interface VariableStuff {
|
|
97
97
|
dataType?: string | NodeIdLike | UADataType;
|
|
98
98
|
/**
|
|
@@ -205,7 +205,7 @@ export interface AddYArrayItemOptions extends AddVariableOptions {
|
|
|
205
205
|
axisScaleType: AxisScaleEnumeration | string;
|
|
206
206
|
xAxisDefinition?: AxisInformationOptions;
|
|
207
207
|
}
|
|
208
|
-
export
|
|
208
|
+
export type CreateNodeOptions = any;
|
|
209
209
|
export interface RequiredModel {
|
|
210
210
|
modelUri: string;
|
|
211
211
|
version: string;
|
package/dist/ua_method.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ import { UAVariable } from "./ua_variable";
|
|
|
11
11
|
import { CloneExtraInfo, CloneFilter, CloneOptions } from "./clone_options";
|
|
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
|
-
export
|
|
14
|
+
export type MethodFunctor = MethodFunctorC | MethodFunctorA;
|
|
15
15
|
export declare class UAMethod extends BaseNode {
|
|
16
16
|
readonly nodeClass: NodeClass.Method;
|
|
17
17
|
readonly typeDefinition: NodeId;
|
package/dist/ua_object.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ import { IEventData } from "./i_event_data";
|
|
|
11
11
|
import { UAEventType } from "./ua_event_type";
|
|
12
12
|
import { UAMethod } from "./ua_method";
|
|
13
13
|
import { EventNotifierFlags } from "./event_notifier_flags";
|
|
14
|
-
export
|
|
14
|
+
export type EventTypeLike = string | NodeId | UAEventType;
|
|
15
15
|
export interface PseudoVariantNull {
|
|
16
16
|
dataType: "Null" | DataType.Null;
|
|
17
17
|
}
|
|
@@ -101,8 +101,8 @@ export interface PseudoVariantVariant {
|
|
|
101
101
|
dataType: "Variant" | DataType.Variant;
|
|
102
102
|
value: Variant;
|
|
103
103
|
}
|
|
104
|
-
export
|
|
105
|
-
export
|
|
104
|
+
export type PseudoVariantNumber = PseudoVariantUInt32 | PseudoVariantUInt16 | PseudoVariantByte | PseudoVariantInt32 | PseudoVariantInt16 | PseudoVariantSByte | PseudoVariantDouble | PseudoVariantFloat;
|
|
105
|
+
export type PseudoVariant = PseudoVariantNull | PseudoVariantString | PseudoVariantBoolean | PseudoVariantByteString | PseudoVariantNodeId | PseudoVariantDateTime | PseudoVariantByteString | PseudoVariantDuration | PseudoVariantLocalizedText | PseudoVariantStatusCode | PseudoVariantNumber | PseudoVariantExtensionObject | PseudoVariantExtensionObjectArray | PseudoVariantVariant | PseudoVariantVariantArray;
|
|
106
106
|
export interface RaiseEventData {
|
|
107
107
|
$eventDataSource?: UAEventType;
|
|
108
108
|
sourceNode?: PseudoVariantNodeId | Variant;
|
package/dist/ua_variable.d.ts
CHANGED
|
@@ -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";
|
|
@@ -34,7 +34,7 @@ export interface IVariableHistorianOptions {
|
|
|
34
34
|
maxOnlineValues?: number;
|
|
35
35
|
historian?: IVariableHistorian;
|
|
36
36
|
}
|
|
37
|
-
export
|
|
37
|
+
export type IHistoricalDataNodeOptions = IVariableHistorianOptions | {
|
|
38
38
|
historian: IVariableHistorian;
|
|
39
39
|
};
|
|
40
40
|
export interface VariableAttributes {
|
|
@@ -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 {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-opcua-address-space-base",
|
|
3
|
-
"version": "2.90.
|
|
3
|
+
"version": "2.90.1",
|
|
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.
|
|
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.
|
|
23
|
-
"node-opcua-data-value": "2.90.
|
|
24
|
-
"node-opcua-date-time": "2.90.
|
|
25
|
-
"node-opcua-extension-object": "2.90.
|
|
26
|
-
"node-opcua-nodeid": "2.90.
|
|
27
|
-
"node-opcua-numeric-range": "2.90.
|
|
28
|
-
"node-opcua-schemas": "2.90.
|
|
29
|
-
"node-opcua-status-code": "2.
|
|
30
|
-
"node-opcua-types": "2.90.
|
|
31
|
-
"node-opcua-variant": "2.90.
|
|
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": "
|
|
48
|
+
"gitHead": "3325ff5f8477fd058ba574d19e8128c36e3e831f"
|
|
49
49
|
}
|
package/source/ua_variable.ts
CHANGED
|
@@ -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 {
|