node-opcua-address-space-base 2.90.1 → 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.
- 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_data_type.d.ts +2 -0
- package/dist/ua_method.d.ts +1 -1
- package/dist/ua_object.d.ts +3 -3
- package/dist/ua_object_type.d.ts +2 -0
- package/dist/ua_reference_type.d.ts +2 -0
- package/dist/ua_variable.d.ts +1 -1
- package/dist/ua_variable_type.d.ts +2 -0
- package/package.json +2 -2
- package/source/ua_data_type.ts +3 -0
- package/source/ua_object_type.ts +3 -0
- package/source/ua_reference_type.ts +3 -0
- package/source/ua_variable_type.ts +3 -0
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 type ShutdownTask = ((this: IAddressSpace) => void) | ((this: IAddressSpace) => Promise<void>);
|
|
20
|
+
export declare 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 type Duration = number;
|
|
3
|
+
export declare 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 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;
|
|
9
|
+
export declare type VariableSetterVariation1 = (this: UAVariable, value: Variant) => StatusCode;
|
|
10
|
+
export declare type VariableSetterVariation2 = (this: UAVariable, value: Variant, callback: CallbackT<StatusCode>) => void;
|
|
11
|
+
export declare type VariableSetter = VariableSetterVariation1 | VariableSetterVariation2;
|
|
12
|
+
export declare type HistoryReadFunc = (context: ISessionContext, historyReadDetails: ReadRawModifiedDetails | ReadEventDetails | ReadProcessedDetails | ReadAtTimeDetails, indexRange: NumericRange | null, dataEncoding: QualifiedNameLike | null, continuationData: ContinuationData, callback: CallbackT<HistoryReadResult>) => void;
|
|
13
|
+
export declare type GetFunc = (this: UAVariable) => Variant;
|
|
14
|
+
export declare type SetFunc = VariableSetter | null;
|
|
15
|
+
export declare type VariableDataValueGetterSync = (this: UAVariable) => DataValue;
|
|
16
|
+
export declare type VariableDataValueGetterPromise = (this: UAVariable) => Promise<DataValue>;
|
|
17
|
+
export declare type VariableDataValueGetterCallback = (this: UAVariable, callback: CallbackT<DataValue>) => void;
|
|
18
|
+
export declare type VariableDataValueSetterWithCallback = (this: UAVariable, dataValue: DataValue, callback: CallbackT<StatusCode>) => void;
|
|
19
|
+
export declare type VariableDataValueSetterWithPromise = (this: UAVariable, dataValue: DataValue) => Promise<StatusCode>;
|
|
20
|
+
export declare type TimestampGetFunc = VariableDataValueGetterSync | VariableDataValueGetterPromise | VariableDataValueGetterCallback;
|
|
21
|
+
export declare 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 type BindVariableOptions = BindVariableOptionsVariation1 | BindVariableOptionsVariation2 | BindVariableOptionsVariation3 | BindVariableOptionsVariation4;
|
|
52
|
+
export declare type BindVariableOptions = BindVariableOptionsVariation1 | BindVariableOptionsVariation2 | BindVariableOptionsVariation3 | BindVariableOptionsVariation4;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ByteString } from "node-opcua-basic-types";
|
|
2
|
-
export type ContinuationPoint = ByteString;
|
|
2
|
+
export declare type ContinuationPoint = ByteString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type ModellingRuleType = "Mandatory" | "Optional" | "MandatoryPlaceholder" | "OptionalPlaceholder" | "ExposesItsArray" | null;
|
|
1
|
+
export declare 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 type AccessLevelString = string;
|
|
95
|
+
export declare 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 type CreateNodeOptions = any;
|
|
208
|
+
export declare type CreateNodeOptions = any;
|
|
209
209
|
export interface RequiredModel {
|
|
210
210
|
modelUri: string;
|
|
211
211
|
version: string;
|
package/dist/ua_data_type.d.ts
CHANGED
|
@@ -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
|
/**
|
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 type MethodFunctor = MethodFunctorC | MethodFunctorA;
|
|
14
|
+
export declare 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 type EventTypeLike = string | NodeId | UAEventType;
|
|
14
|
+
export declare 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 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;
|
|
104
|
+
export declare type PseudoVariantNumber = PseudoVariantUInt32 | PseudoVariantUInt16 | PseudoVariantByte | PseudoVariantInt32 | PseudoVariantInt16 | PseudoVariantSByte | PseudoVariantDouble | PseudoVariantFloat;
|
|
105
|
+
export declare 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_object_type.d.ts
CHANGED
|
@@ -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
|
/**
|
package/dist/ua_variable.d.ts
CHANGED
|
@@ -34,7 +34,7 @@ export interface IVariableHistorianOptions {
|
|
|
34
34
|
maxOnlineValues?: number;
|
|
35
35
|
historian?: IVariableHistorian;
|
|
36
36
|
}
|
|
37
|
-
export type IHistoricalDataNodeOptions = IVariableHistorianOptions | {
|
|
37
|
+
export declare type IHistoricalDataNodeOptions = IVariableHistorianOptions | {
|
|
38
38
|
historian: IVariableHistorian;
|
|
39
39
|
};
|
|
40
40
|
export interface VariableAttributes {
|
|
@@ -45,6 +45,8 @@ export declare class UAVariableType extends BaseNode implements VariableAttribut
|
|
|
45
45
|
arrayDimensions: UInt32[] | null;
|
|
46
46
|
historizing: boolean;
|
|
47
47
|
isAbstract: boolean;
|
|
48
|
+
isSubtypeOf(type: UAVariableType | NodeIdLike): boolean;
|
|
49
|
+
/** @deprecated - use isSubtypeOf instead */
|
|
48
50
|
isSupertypeOf(type: UAVariableType | NodeIdLike): boolean;
|
|
49
51
|
instantiate(options: InstantiateVariableOptions): UAVariable;
|
|
50
52
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-opcua-address-space-base",
|
|
3
|
-
"version": "2.
|
|
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",
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"internet of things"
|
|
46
46
|
],
|
|
47
47
|
"homepage": "http://node-opcua.github.io/",
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "e1ed70a684fc69130696e001a9d43280df1466f4"
|
|
49
49
|
}
|
package/source/ua_data_type.ts
CHANGED
|
@@ -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;
|
package/source/ua_object_type.ts
CHANGED
|
@@ -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[];
|
|
@@ -50,6 +50,9 @@ export declare class UAVariableType extends BaseNode implements VariableAttribut
|
|
|
50
50
|
|
|
51
51
|
public isAbstract: boolean;
|
|
52
52
|
|
|
53
|
+
public isSubtypeOf(type: UAVariableType | NodeIdLike): boolean;
|
|
54
|
+
|
|
55
|
+
/** @deprecated - use isSubtypeOf instead */
|
|
53
56
|
public isSupertypeOf(type: UAVariableType | NodeIdLike): boolean;
|
|
54
57
|
|
|
55
58
|
public instantiate(options: InstantiateVariableOptions): UAVariable;
|