node-opcua-address-space-base 2.76.0 → 2.76.2
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 +168 -168
- package/dist/address_space.js +2 -2
- package/dist/base_node.d.ts +186 -186
- package/dist/base_node.js +3 -3
- package/dist/bind_variable.d.ts +52 -52
- package/dist/bind_variable.js +2 -2
- package/dist/clone_options.d.ts +44 -44
- package/dist/clone_options.js +18 -18
- package/dist/continuation_point.d.ts +2 -2
- package/dist/continuation_point.js +2 -2
- package/dist/event_notifier_flags.d.ts +7 -7
- package/dist/event_notifier_flags.js +11 -11
- package/dist/i_event_data.d.ts +17 -17
- package/dist/i_event_data.js +2 -2
- package/dist/index.d.ts +23 -23
- package/dist/index.js +39 -39
- package/dist/instantiate_options.d.ts +80 -80
- package/dist/instantiate_options.js +2 -2
- package/dist/modelling_rule_type.d.ts +1 -1
- package/dist/modelling_rule_type.js +2 -2
- package/dist/namespace.d.ts +279 -279
- package/dist/namespace.js +2 -2
- package/dist/session_context.d.ts +51 -51
- package/dist/session_context.js +2 -2
- package/dist/ua_data_type.d.ts +32 -32
- package/dist/ua_data_type.js +2 -2
- package/dist/ua_dynamic_variable_array.d.ts +12 -12
- package/dist/ua_dynamic_variable_array.js +2 -2
- package/dist/ua_event_type.d.ts +3 -3
- package/dist/ua_event_type.js +2 -2
- package/dist/ua_method.d.ts +41 -41
- package/dist/ua_method.js +4 -4
- package/dist/ua_object.d.ts +131 -131
- package/dist/ua_object.js +2 -2
- package/dist/ua_object_type.d.ts +27 -27
- package/dist/ua_object_type.js +2 -2
- package/dist/ua_property.d.ts +16 -16
- package/dist/ua_property.js +2 -2
- package/dist/ua_reference.d.ts +12 -12
- package/dist/ua_reference.js +2 -2
- package/dist/ua_reference_type.d.ts +18 -18
- package/dist/ua_reference_type.js +3 -3
- package/dist/ua_variable.d.ts +285 -285
- package/dist/ua_variable.js +2 -2
- package/dist/ua_variable_t.d.ts +15 -15
- package/dist/ua_variable_t.js +2 -2
- package/dist/ua_variable_type.d.ts +39 -39
- package/dist/ua_variable_type.js +3 -3
- package/dist/ua_view.d.ts +7 -7
- package/dist/ua_view.js +2 -2
- package/package.json +14 -14
package/dist/base_node.d.ts
CHANGED
|
@@ -1,186 +1,186 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
import { EventEmitter } from "events";
|
|
3
|
-
export declare type Duration = number;
|
|
4
|
-
import { AccessRestrictionsFlag, AttributeIds, BrowseDirection, LocalizedText, NodeClass, QualifiedName, QualifiedNameLike, QualifiedNameOptions } from "node-opcua-data-model";
|
|
5
|
-
import { DataType } from "node-opcua-variant";
|
|
6
|
-
import { DataValue } from "node-opcua-data-value";
|
|
7
|
-
import { NodeId, NodeIdLike } from "node-opcua-nodeid";
|
|
8
|
-
import { NumericRange } from "node-opcua-numeric-range";
|
|
9
|
-
import { StatusCode } from "node-opcua-status-code";
|
|
10
|
-
import { BrowseDescriptionOptions, ReferenceDescription, RelativePathElement, RolePermissionType, RolePermissionTypeOptions, WriteValueOptions } from "node-opcua-types";
|
|
11
|
-
import { UAString, UInt32 } from "node-opcua-basic-types";
|
|
12
|
-
import { ReferenceTypeIds } from "node-opcua-constants";
|
|
13
|
-
import { INamespace } from "./namespace";
|
|
14
|
-
import { IAddressSpace } from "./address_space";
|
|
15
|
-
import { ModellingRuleType } from "./modelling_rule_type";
|
|
16
|
-
import { ISessionContext } from "./session_context";
|
|
17
|
-
import { UAObject } from "./ua_object";
|
|
18
|
-
import { UAReferenceType } from "./ua_reference_type";
|
|
19
|
-
import { UAVariable } from "./ua_variable";
|
|
20
|
-
import { UAVariableT } from "./ua_variable_t";
|
|
21
|
-
import { UAReference } from "./ua_reference";
|
|
22
|
-
export declare interface AddReferenceOpts {
|
|
23
|
-
referenceType: keyof ReferenceTypeIds | NodeIdLike | UAReferenceType;
|
|
24
|
-
nodeId: NodeIdLike | BaseNode;
|
|
25
|
-
/**
|
|
26
|
-
* default = true
|
|
27
|
-
*/
|
|
28
|
-
isForward?: boolean;
|
|
29
|
-
_referenceType?: UAReferenceType;
|
|
30
|
-
node?: BaseNode;
|
|
31
|
-
}
|
|
32
|
-
export interface ConstructNodeIdOptions {
|
|
33
|
-
nodeId?: NodeIdLike | null;
|
|
34
|
-
browseName: QualifiedName;
|
|
35
|
-
nodeClass: NodeClass;
|
|
36
|
-
references?: UAReference[];
|
|
37
|
-
}
|
|
38
|
-
export interface IPropertyAndComponentHolder {
|
|
39
|
-
getComponentByName(componentName: QualifiedNameOptions): UAObject | UAVariable | null;
|
|
40
|
-
getComponentByName(componentName: string, namespaceIndex?: number): UAObject | UAVariable | null;
|
|
41
|
-
getPropertyByName(propertyName: QualifiedNameOptions): UAVariable | null;
|
|
42
|
-
getPropertyByName(propertyName: string, namespaceIndex?: number): UAVariable | null;
|
|
43
|
-
getAggregates(): BaseNode[];
|
|
44
|
-
getComponents(): BaseNode[];
|
|
45
|
-
getProperties(): BaseNode[];
|
|
46
|
-
getNotifiers(): BaseNode[];
|
|
47
|
-
}
|
|
48
|
-
export interface BrowseDescriptionOptions2 extends BrowseDescriptionOptions {
|
|
49
|
-
browseDirection?: BrowseDirection;
|
|
50
|
-
referenceTypeId?: NodeIdLike;
|
|
51
|
-
includeSubtypes?: boolean;
|
|
52
|
-
nodeClassMask: UInt32;
|
|
53
|
-
resultMask: UInt32;
|
|
54
|
-
}
|
|
55
|
-
export declare class BaseNode extends EventEmitter {
|
|
56
|
-
get addressSpace(): IAddressSpace;
|
|
57
|
-
readonly browseName: QualifiedName;
|
|
58
|
-
get displayName(): LocalizedText[];
|
|
59
|
-
get description(): LocalizedText;
|
|
60
|
-
readonly nodeClass: NodeClass;
|
|
61
|
-
readonly nodeId: NodeId;
|
|
62
|
-
get modellingRule(): ModellingRuleType | undefined;
|
|
63
|
-
get parentNodeId(): NodeId | undefined;
|
|
64
|
-
get accessRestrictions(): AccessRestrictionsFlag | undefined;
|
|
65
|
-
get rolePermissions(): RolePermissionType[] | undefined;
|
|
66
|
-
get namespaceIndex(): number;
|
|
67
|
-
get namespaceUri(): string;
|
|
68
|
-
get namespace(): INamespace;
|
|
69
|
-
onFirstBrowseAction?: (this: BaseNode) => Promise<void>;
|
|
70
|
-
/**
|
|
71
|
-
* return a complete name of this object by pre-pending
|
|
72
|
-
* name of its parent(s) to its own name
|
|
73
|
-
*/
|
|
74
|
-
fullName(): string;
|
|
75
|
-
addReference(options: AddReferenceOpts): void;
|
|
76
|
-
removeReference(referenceOpts: AddReferenceOpts): void;
|
|
77
|
-
readAttribute(context: ISessionContext | null, attributeId: AttributeIds, indexRange?: NumericRange, dataEncoding?: QualifiedNameLike | null): DataValue;
|
|
78
|
-
writeAttribute(context: ISessionContext | null, writeValue: WriteValueOptions, callback: (err: Error | null, statusCode?: StatusCode) => void): void;
|
|
79
|
-
/**
|
|
80
|
-
* return a array with the event source of this object.
|
|
81
|
-
* self = HasEventSource => nodes
|
|
82
|
-
*/
|
|
83
|
-
getEventSources(): BaseNode[];
|
|
84
|
-
/**
|
|
85
|
-
* return a array of the objects for which this node is an EventSource
|
|
86
|
-
* nodes = HasEventSource => self
|
|
87
|
-
*/
|
|
88
|
-
getEventSourceOfs(): BaseNode[];
|
|
89
|
-
/**
|
|
90
|
-
*
|
|
91
|
-
* @param locale the locale of the text to return (e.g. en-EN)
|
|
92
|
-
*/
|
|
93
|
-
getDisplayName(locale?: string): string;
|
|
94
|
-
/**
|
|
95
|
-
* private
|
|
96
|
-
*/
|
|
97
|
-
install_extra_properties(): void;
|
|
98
|
-
browseNodeByTargetName(relativePathElement: RelativePathElement, isLast: boolean): NodeId[];
|
|
99
|
-
/**
|
|
100
|
-
* find all the references that are of type **`reference`** or a sub type of **`reference`**, in the
|
|
101
|
-
* direction specified by **`browseDirection`**
|
|
102
|
-
*
|
|
103
|
-
* * BrowseDirection.Forward direction is implied if browseDirection flags is omitted.
|
|
104
|
-
*/
|
|
105
|
-
findReferencesEx(referenceType: string | NodeId | UAReferenceType, browseDirection?: BrowseDirection): UAReference[];
|
|
106
|
-
/**
|
|
107
|
-
* find all the references that are strictly of type **`reference`**.
|
|
108
|
-
* The isForward boolean flag specifies the direction of the references to be looked for.
|
|
109
|
-
*
|
|
110
|
-
* Forward direction is implied if omitted.
|
|
111
|
-
*/
|
|
112
|
-
findReferences(referenceType: string | NodeId | UAReferenceType, isForward?: boolean): UAReference[];
|
|
113
|
-
/**
|
|
114
|
-
* find the the references that are strictly of type **`reference`**.
|
|
115
|
-
*
|
|
116
|
-
* The isForward boolean flag specifies the direction of the references to be looked for.
|
|
117
|
-
*
|
|
118
|
-
* Forward direction is implied if omitted.
|
|
119
|
-
*
|
|
120
|
-
* * will throw an exception if more than one reference exists with the referenceType.
|
|
121
|
-
* * will return null if no reference exists.
|
|
122
|
-
*/
|
|
123
|
-
findReference(referenceType: string | NodeId | UAReferenceType, isForward?: boolean): UAReference | null;
|
|
124
|
-
/**
|
|
125
|
-
* find all the nodes that are referenced by references of type **`reference`** or a sub type of **`reference`**, in the
|
|
126
|
-
* direction specified by **`browseDirection`**
|
|
127
|
-
*
|
|
128
|
-
* * BrowseDirection.Forward direction is implied if browseDirection flags is omitted.
|
|
129
|
-
*/
|
|
130
|
-
findReferencesExAsObject(referenceType: string | NodeId | UAReferenceType, browseDirection?: BrowseDirection): BaseNode[];
|
|
131
|
-
/**
|
|
132
|
-
* find all the nodes that are referenced by references strictly of type **`reference`**.
|
|
133
|
-
*
|
|
134
|
-
* The isForward boolean flag specifies the direction of the references to be looked for.
|
|
135
|
-
*
|
|
136
|
-
* Forward direction is implied if omitted.
|
|
137
|
-
*
|
|
138
|
-
* * will throw an exception if more than one reference exists with the referenceType.
|
|
139
|
-
* * will return null if no reference exists.
|
|
140
|
-
*/
|
|
141
|
-
findReferencesAsObject(referenceType: string | NodeId | UAReferenceType, isForward?: boolean): BaseNode[];
|
|
142
|
-
allReferences(): UAReference[];
|
|
143
|
-
getChildByName(browseName: QualifiedNameOptions): BaseNode | null;
|
|
144
|
-
getChildByName(browseName: string, namespaceIndex?: number): BaseNode | null;
|
|
145
|
-
/**
|
|
146
|
-
* this methods propagates the forward references to the pointed node
|
|
147
|
-
* by inserting backward references to the counter part node
|
|
148
|
-
*
|
|
149
|
-
* @private
|
|
150
|
-
*/
|
|
151
|
-
propagate_back_references(): void;
|
|
152
|
-
/**
|
|
153
|
-
* browse the node to extract information requested in browseDescription
|
|
154
|
-
*/
|
|
155
|
-
browseNode(browseDescription: BrowseDescriptionOptions2, session?: ISessionContext): ReferenceDescription[];
|
|
156
|
-
/**
|
|
157
|
-
*
|
|
158
|
-
* @param rolePermissions
|
|
159
|
-
*/
|
|
160
|
-
setRolePermissions(rolePermissions: RolePermissionTypeOptions[]): void;
|
|
161
|
-
getRolePermissions(inherited: boolean): RolePermissionType[] | null;
|
|
162
|
-
/**
|
|
163
|
-
* setAccessRestriction
|
|
164
|
-
*/
|
|
165
|
-
setAccessRestrictions(accessRestrictions: AccessRestrictionsFlag): void;
|
|
166
|
-
/**
|
|
167
|
-
* get effective accessRestrictions
|
|
168
|
-
* if (inherited is true) and node has no accessRestrictions, then
|
|
169
|
-
* default accessRestriction from namespace is returned
|
|
170
|
-
* if (inherited is false) and node has no accessRestrictions, then
|
|
171
|
-
* AccessRestrictionsFlag.None is returned
|
|
172
|
-
*
|
|
173
|
-
*/
|
|
174
|
-
getAccessRestrictions(inherited: boolean): AccessRestrictionsFlag;
|
|
175
|
-
/**
|
|
176
|
-
* NodeVersion (Optional) String The NodeVersion Property is used to indicate the version of a Node.
|
|
177
|
-
* The NodeVersion Property is updated each time a Reference is added or deleted to the Node the Property
|
|
178
|
-
* belongs to. Attribute value changes do not cause the NodeVersion to change.
|
|
179
|
-
* Clients may read the NodeVersion Property or subscribe to it to determine when the structure of a Node has changed.
|
|
180
|
-
*/
|
|
181
|
-
nodeVersion?: UAVariableT<UAString, DataType.String>;
|
|
182
|
-
/**
|
|
183
|
-
*
|
|
184
|
-
*/
|
|
185
|
-
getAggregates(): BaseNode[];
|
|
186
|
-
}
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { EventEmitter } from "events";
|
|
3
|
+
export declare type Duration = number;
|
|
4
|
+
import { AccessRestrictionsFlag, AttributeIds, BrowseDirection, LocalizedText, NodeClass, QualifiedName, QualifiedNameLike, QualifiedNameOptions } from "node-opcua-data-model";
|
|
5
|
+
import { DataType } from "node-opcua-variant";
|
|
6
|
+
import { DataValue } from "node-opcua-data-value";
|
|
7
|
+
import { NodeId, NodeIdLike } from "node-opcua-nodeid";
|
|
8
|
+
import { NumericRange } from "node-opcua-numeric-range";
|
|
9
|
+
import { StatusCode } from "node-opcua-status-code";
|
|
10
|
+
import { BrowseDescriptionOptions, ReferenceDescription, RelativePathElement, RolePermissionType, RolePermissionTypeOptions, WriteValueOptions } from "node-opcua-types";
|
|
11
|
+
import { UAString, UInt32 } from "node-opcua-basic-types";
|
|
12
|
+
import { ReferenceTypeIds } from "node-opcua-constants";
|
|
13
|
+
import { INamespace } from "./namespace";
|
|
14
|
+
import { IAddressSpace } from "./address_space";
|
|
15
|
+
import { ModellingRuleType } from "./modelling_rule_type";
|
|
16
|
+
import { ISessionContext } from "./session_context";
|
|
17
|
+
import { UAObject } from "./ua_object";
|
|
18
|
+
import { UAReferenceType } from "./ua_reference_type";
|
|
19
|
+
import { UAVariable } from "./ua_variable";
|
|
20
|
+
import { UAVariableT } from "./ua_variable_t";
|
|
21
|
+
import { UAReference } from "./ua_reference";
|
|
22
|
+
export declare interface AddReferenceOpts {
|
|
23
|
+
referenceType: keyof ReferenceTypeIds | NodeIdLike | UAReferenceType;
|
|
24
|
+
nodeId: NodeIdLike | BaseNode;
|
|
25
|
+
/**
|
|
26
|
+
* default = true
|
|
27
|
+
*/
|
|
28
|
+
isForward?: boolean;
|
|
29
|
+
_referenceType?: UAReferenceType;
|
|
30
|
+
node?: BaseNode;
|
|
31
|
+
}
|
|
32
|
+
export interface ConstructNodeIdOptions {
|
|
33
|
+
nodeId?: NodeIdLike | null;
|
|
34
|
+
browseName: QualifiedName;
|
|
35
|
+
nodeClass: NodeClass;
|
|
36
|
+
references?: UAReference[];
|
|
37
|
+
}
|
|
38
|
+
export interface IPropertyAndComponentHolder {
|
|
39
|
+
getComponentByName(componentName: QualifiedNameOptions): UAObject | UAVariable | null;
|
|
40
|
+
getComponentByName(componentName: string, namespaceIndex?: number): UAObject | UAVariable | null;
|
|
41
|
+
getPropertyByName(propertyName: QualifiedNameOptions): UAVariable | null;
|
|
42
|
+
getPropertyByName(propertyName: string, namespaceIndex?: number): UAVariable | null;
|
|
43
|
+
getAggregates(): BaseNode[];
|
|
44
|
+
getComponents(): BaseNode[];
|
|
45
|
+
getProperties(): BaseNode[];
|
|
46
|
+
getNotifiers(): BaseNode[];
|
|
47
|
+
}
|
|
48
|
+
export interface BrowseDescriptionOptions2 extends BrowseDescriptionOptions {
|
|
49
|
+
browseDirection?: BrowseDirection;
|
|
50
|
+
referenceTypeId?: NodeIdLike;
|
|
51
|
+
includeSubtypes?: boolean;
|
|
52
|
+
nodeClassMask: UInt32;
|
|
53
|
+
resultMask: UInt32;
|
|
54
|
+
}
|
|
55
|
+
export declare class BaseNode extends EventEmitter {
|
|
56
|
+
get addressSpace(): IAddressSpace;
|
|
57
|
+
readonly browseName: QualifiedName;
|
|
58
|
+
get displayName(): LocalizedText[];
|
|
59
|
+
get description(): LocalizedText;
|
|
60
|
+
readonly nodeClass: NodeClass;
|
|
61
|
+
readonly nodeId: NodeId;
|
|
62
|
+
get modellingRule(): ModellingRuleType | undefined;
|
|
63
|
+
get parentNodeId(): NodeId | undefined;
|
|
64
|
+
get accessRestrictions(): AccessRestrictionsFlag | undefined;
|
|
65
|
+
get rolePermissions(): RolePermissionType[] | undefined;
|
|
66
|
+
get namespaceIndex(): number;
|
|
67
|
+
get namespaceUri(): string;
|
|
68
|
+
get namespace(): INamespace;
|
|
69
|
+
onFirstBrowseAction?: (this: BaseNode) => Promise<void>;
|
|
70
|
+
/**
|
|
71
|
+
* return a complete name of this object by pre-pending
|
|
72
|
+
* name of its parent(s) to its own name
|
|
73
|
+
*/
|
|
74
|
+
fullName(): string;
|
|
75
|
+
addReference(options: AddReferenceOpts): void;
|
|
76
|
+
removeReference(referenceOpts: AddReferenceOpts): void;
|
|
77
|
+
readAttribute(context: ISessionContext | null, attributeId: AttributeIds, indexRange?: NumericRange, dataEncoding?: QualifiedNameLike | null): DataValue;
|
|
78
|
+
writeAttribute(context: ISessionContext | null, writeValue: WriteValueOptions, callback: (err: Error | null, statusCode?: StatusCode) => void): void;
|
|
79
|
+
/**
|
|
80
|
+
* return a array with the event source of this object.
|
|
81
|
+
* self = HasEventSource => nodes
|
|
82
|
+
*/
|
|
83
|
+
getEventSources(): BaseNode[];
|
|
84
|
+
/**
|
|
85
|
+
* return a array of the objects for which this node is an EventSource
|
|
86
|
+
* nodes = HasEventSource => self
|
|
87
|
+
*/
|
|
88
|
+
getEventSourceOfs(): BaseNode[];
|
|
89
|
+
/**
|
|
90
|
+
*
|
|
91
|
+
* @param locale the locale of the text to return (e.g. en-EN)
|
|
92
|
+
*/
|
|
93
|
+
getDisplayName(locale?: string): string;
|
|
94
|
+
/**
|
|
95
|
+
* private
|
|
96
|
+
*/
|
|
97
|
+
install_extra_properties(): void;
|
|
98
|
+
browseNodeByTargetName(relativePathElement: RelativePathElement, isLast: boolean): NodeId[];
|
|
99
|
+
/**
|
|
100
|
+
* find all the references that are of type **`reference`** or a sub type of **`reference`**, in the
|
|
101
|
+
* direction specified by **`browseDirection`**
|
|
102
|
+
*
|
|
103
|
+
* * BrowseDirection.Forward direction is implied if browseDirection flags is omitted.
|
|
104
|
+
*/
|
|
105
|
+
findReferencesEx(referenceType: string | NodeId | UAReferenceType, browseDirection?: BrowseDirection): UAReference[];
|
|
106
|
+
/**
|
|
107
|
+
* find all the references that are strictly of type **`reference`**.
|
|
108
|
+
* The isForward boolean flag specifies the direction of the references to be looked for.
|
|
109
|
+
*
|
|
110
|
+
* Forward direction is implied if omitted.
|
|
111
|
+
*/
|
|
112
|
+
findReferences(referenceType: string | NodeId | UAReferenceType, isForward?: boolean): UAReference[];
|
|
113
|
+
/**
|
|
114
|
+
* find the the references that are strictly of type **`reference`**.
|
|
115
|
+
*
|
|
116
|
+
* The isForward boolean flag specifies the direction of the references to be looked for.
|
|
117
|
+
*
|
|
118
|
+
* Forward direction is implied if omitted.
|
|
119
|
+
*
|
|
120
|
+
* * will throw an exception if more than one reference exists with the referenceType.
|
|
121
|
+
* * will return null if no reference exists.
|
|
122
|
+
*/
|
|
123
|
+
findReference(referenceType: string | NodeId | UAReferenceType, isForward?: boolean): UAReference | null;
|
|
124
|
+
/**
|
|
125
|
+
* find all the nodes that are referenced by references of type **`reference`** or a sub type of **`reference`**, in the
|
|
126
|
+
* direction specified by **`browseDirection`**
|
|
127
|
+
*
|
|
128
|
+
* * BrowseDirection.Forward direction is implied if browseDirection flags is omitted.
|
|
129
|
+
*/
|
|
130
|
+
findReferencesExAsObject(referenceType: string | NodeId | UAReferenceType, browseDirection?: BrowseDirection): BaseNode[];
|
|
131
|
+
/**
|
|
132
|
+
* find all the nodes that are referenced by references strictly of type **`reference`**.
|
|
133
|
+
*
|
|
134
|
+
* The isForward boolean flag specifies the direction of the references to be looked for.
|
|
135
|
+
*
|
|
136
|
+
* Forward direction is implied if omitted.
|
|
137
|
+
*
|
|
138
|
+
* * will throw an exception if more than one reference exists with the referenceType.
|
|
139
|
+
* * will return null if no reference exists.
|
|
140
|
+
*/
|
|
141
|
+
findReferencesAsObject(referenceType: string | NodeId | UAReferenceType, isForward?: boolean): BaseNode[];
|
|
142
|
+
allReferences(): UAReference[];
|
|
143
|
+
getChildByName(browseName: QualifiedNameOptions): BaseNode | null;
|
|
144
|
+
getChildByName(browseName: string, namespaceIndex?: number): BaseNode | null;
|
|
145
|
+
/**
|
|
146
|
+
* this methods propagates the forward references to the pointed node
|
|
147
|
+
* by inserting backward references to the counter part node
|
|
148
|
+
*
|
|
149
|
+
* @private
|
|
150
|
+
*/
|
|
151
|
+
propagate_back_references(): void;
|
|
152
|
+
/**
|
|
153
|
+
* browse the node to extract information requested in browseDescription
|
|
154
|
+
*/
|
|
155
|
+
browseNode(browseDescription: BrowseDescriptionOptions2, session?: ISessionContext): ReferenceDescription[];
|
|
156
|
+
/**
|
|
157
|
+
*
|
|
158
|
+
* @param rolePermissions
|
|
159
|
+
*/
|
|
160
|
+
setRolePermissions(rolePermissions: RolePermissionTypeOptions[]): void;
|
|
161
|
+
getRolePermissions(inherited: boolean): RolePermissionType[] | null;
|
|
162
|
+
/**
|
|
163
|
+
* setAccessRestriction
|
|
164
|
+
*/
|
|
165
|
+
setAccessRestrictions(accessRestrictions: AccessRestrictionsFlag): void;
|
|
166
|
+
/**
|
|
167
|
+
* get effective accessRestrictions
|
|
168
|
+
* if (inherited is true) and node has no accessRestrictions, then
|
|
169
|
+
* default accessRestriction from namespace is returned
|
|
170
|
+
* if (inherited is false) and node has no accessRestrictions, then
|
|
171
|
+
* AccessRestrictionsFlag.None is returned
|
|
172
|
+
*
|
|
173
|
+
*/
|
|
174
|
+
getAccessRestrictions(inherited: boolean): AccessRestrictionsFlag;
|
|
175
|
+
/**
|
|
176
|
+
* NodeVersion (Optional) String The NodeVersion Property is used to indicate the version of a Node.
|
|
177
|
+
* The NodeVersion Property is updated each time a Reference is added or deleted to the Node the Property
|
|
178
|
+
* belongs to. Attribute value changes do not cause the NodeVersion to change.
|
|
179
|
+
* Clients may read the NodeVersion Property or subscribe to it to determine when the structure of a Node has changed.
|
|
180
|
+
*/
|
|
181
|
+
nodeVersion?: UAVariableT<UAString, DataType.String>;
|
|
182
|
+
/**
|
|
183
|
+
*
|
|
184
|
+
*/
|
|
185
|
+
getAggregates(): BaseNode[];
|
|
186
|
+
}
|
package/dist/base_node.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const events_1 = require("events");
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const events_1 = require("events");
|
|
4
4
|
//# sourceMappingURL=base_node.js.map
|
package/dist/bind_variable.d.ts
CHANGED
|
@@ -1,52 +1,52 @@
|
|
|
1
|
-
import { Variant, VariantLike } from "node-opcua-variant";
|
|
2
|
-
import { CallbackT, StatusCode } from "node-opcua-status-code";
|
|
3
|
-
import { HistoryReadResult, ReadAtTimeDetails, ReadEventDetails, ReadProcessedDetails, ReadRawModifiedDetails } from "node-opcua-types";
|
|
4
|
-
import { NumericRange } from "node-opcua-numeric-range";
|
|
5
|
-
import { QualifiedNameLike } from "node-opcua-data-model";
|
|
6
|
-
import { DataValue } from "node-opcua-data-value";
|
|
7
|
-
import { UAVariable } from "./ua_variable";
|
|
8
|
-
import { ContinuationData, ISessionContext } from "./session_context";
|
|
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
|
-
export interface BindVariableOptionsVariation1 {
|
|
23
|
-
get: GetFunc;
|
|
24
|
-
set?: SetFunc;
|
|
25
|
-
timestamped_get?: undefined;
|
|
26
|
-
timestamped_set?: undefined;
|
|
27
|
-
historyRead?: HistoryReadFunc;
|
|
28
|
-
}
|
|
29
|
-
export interface BindVariableOptionsVariation2 {
|
|
30
|
-
set?: undefined;
|
|
31
|
-
get?: undefined;
|
|
32
|
-
timestamped_get: TimestampGetFunc;
|
|
33
|
-
timestamped_set?: TimestampSetFunc;
|
|
34
|
-
historyRead?: HistoryReadFunc;
|
|
35
|
-
}
|
|
36
|
-
export interface BindVariableOptionsVariation3 {
|
|
37
|
-
set?: undefined;
|
|
38
|
-
get?: undefined;
|
|
39
|
-
timestamped_get?: undefined;
|
|
40
|
-
timestamp_set?: undefined;
|
|
41
|
-
refreshFunc?: (callback: CallbackT<DataValue>) => void;
|
|
42
|
-
historyRead?: HistoryReadFunc;
|
|
43
|
-
}
|
|
44
|
-
export interface BindVariableOptionsVariation4 extends VariantLike {
|
|
45
|
-
set?: undefined;
|
|
46
|
-
get?: undefined;
|
|
47
|
-
timestamped_get?: undefined;
|
|
48
|
-
timestamp_set?: undefined;
|
|
49
|
-
refreshFunc?: (callback: CallbackT<DataValue>) => void;
|
|
50
|
-
historyRead?: HistoryReadFunc;
|
|
51
|
-
}
|
|
52
|
-
export declare type BindVariableOptions = BindVariableOptionsVariation1 | BindVariableOptionsVariation2 | BindVariableOptionsVariation3 | BindVariableOptionsVariation4;
|
|
1
|
+
import { Variant, VariantLike } from "node-opcua-variant";
|
|
2
|
+
import { CallbackT, StatusCode } from "node-opcua-status-code";
|
|
3
|
+
import { HistoryReadResult, ReadAtTimeDetails, ReadEventDetails, ReadProcessedDetails, ReadRawModifiedDetails } from "node-opcua-types";
|
|
4
|
+
import { NumericRange } from "node-opcua-numeric-range";
|
|
5
|
+
import { QualifiedNameLike } from "node-opcua-data-model";
|
|
6
|
+
import { DataValue } from "node-opcua-data-value";
|
|
7
|
+
import { UAVariable } from "./ua_variable";
|
|
8
|
+
import { ContinuationData, ISessionContext } from "./session_context";
|
|
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
|
+
export interface BindVariableOptionsVariation1 {
|
|
23
|
+
get: GetFunc;
|
|
24
|
+
set?: SetFunc;
|
|
25
|
+
timestamped_get?: undefined;
|
|
26
|
+
timestamped_set?: undefined;
|
|
27
|
+
historyRead?: HistoryReadFunc;
|
|
28
|
+
}
|
|
29
|
+
export interface BindVariableOptionsVariation2 {
|
|
30
|
+
set?: undefined;
|
|
31
|
+
get?: undefined;
|
|
32
|
+
timestamped_get: TimestampGetFunc;
|
|
33
|
+
timestamped_set?: TimestampSetFunc;
|
|
34
|
+
historyRead?: HistoryReadFunc;
|
|
35
|
+
}
|
|
36
|
+
export interface BindVariableOptionsVariation3 {
|
|
37
|
+
set?: undefined;
|
|
38
|
+
get?: undefined;
|
|
39
|
+
timestamped_get?: undefined;
|
|
40
|
+
timestamp_set?: undefined;
|
|
41
|
+
refreshFunc?: (callback: CallbackT<DataValue>) => void;
|
|
42
|
+
historyRead?: HistoryReadFunc;
|
|
43
|
+
}
|
|
44
|
+
export interface BindVariableOptionsVariation4 extends VariantLike {
|
|
45
|
+
set?: undefined;
|
|
46
|
+
get?: undefined;
|
|
47
|
+
timestamped_get?: undefined;
|
|
48
|
+
timestamp_set?: undefined;
|
|
49
|
+
refreshFunc?: (callback: CallbackT<DataValue>) => void;
|
|
50
|
+
historyRead?: HistoryReadFunc;
|
|
51
|
+
}
|
|
52
|
+
export declare type BindVariableOptions = BindVariableOptionsVariation1 | BindVariableOptionsVariation2 | BindVariableOptionsVariation3 | BindVariableOptionsVariation4;
|
package/dist/bind_variable.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
//# sourceMappingURL=bind_variable.js.map
|
package/dist/clone_options.d.ts
CHANGED
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
import { NodeId, NodeIdLike } from "node-opcua-nodeid";
|
|
2
|
-
import { LocalizedText, NodeClass, QualifiedName } from "node-opcua-data-model";
|
|
3
|
-
import { BaseNode } from "./base_node";
|
|
4
|
-
import { ModellingRuleType } from "./modelling_rule_type";
|
|
5
|
-
import { INamespace } from "./namespace";
|
|
6
|
-
import { UAMethod } from "./ua_method";
|
|
7
|
-
import { UAObject } from "./ua_object";
|
|
8
|
-
import { UAObjectType } from "./ua_object_type";
|
|
9
|
-
import { UAReference } from "./ua_reference";
|
|
10
|
-
import { UAVariable } from "./ua_variable";
|
|
11
|
-
export interface CloneFilter {
|
|
12
|
-
shouldKeep(node: BaseNode): boolean;
|
|
13
|
-
filterFor(childInstance: UAVariable | UAObject | UAMethod): CloneFilter;
|
|
14
|
-
}
|
|
15
|
-
export declare const defaultCloneFilter: CloneFilter;
|
|
16
|
-
export interface CloneExtraInfo {
|
|
17
|
-
level: number;
|
|
18
|
-
pad(): string;
|
|
19
|
-
registerClonedObject(clonedObject: BaseNode, originalObject: BaseNode): void;
|
|
20
|
-
}
|
|
21
|
-
export declare const defaultCloneExtraInfo: CloneExtraInfo;
|
|
22
|
-
export interface CloneOptions {
|
|
23
|
-
namespace: INamespace;
|
|
24
|
-
references?: UAReference[];
|
|
25
|
-
nodeId?: string | NodeIdLike | null;
|
|
26
|
-
nodeClass?: NodeClass;
|
|
27
|
-
browseName?: QualifiedName;
|
|
28
|
-
descriptions?: LocalizedText;
|
|
29
|
-
modellingRule?: ModellingRuleType;
|
|
30
|
-
accessLevel?: number;
|
|
31
|
-
arrayDimensions?: number[] | null;
|
|
32
|
-
dataType?: NodeId;
|
|
33
|
-
historizing?: boolean;
|
|
34
|
-
minimumSamplingInterval?: number;
|
|
35
|
-
userAccessLevel?: number;
|
|
36
|
-
valueRank?: number;
|
|
37
|
-
eventNotifier?: number;
|
|
38
|
-
symbolicName?: string;
|
|
39
|
-
executable?: boolean;
|
|
40
|
-
methodDeclarationId?: NodeId;
|
|
41
|
-
componentOf?: UAObjectType | UAObject;
|
|
42
|
-
copyAlsoModellingRules?: boolean;
|
|
43
|
-
ignoreChildren?: boolean;
|
|
44
|
-
}
|
|
1
|
+
import { NodeId, NodeIdLike } from "node-opcua-nodeid";
|
|
2
|
+
import { LocalizedText, NodeClass, QualifiedName } from "node-opcua-data-model";
|
|
3
|
+
import { BaseNode } from "./base_node";
|
|
4
|
+
import { ModellingRuleType } from "./modelling_rule_type";
|
|
5
|
+
import { INamespace } from "./namespace";
|
|
6
|
+
import { UAMethod } from "./ua_method";
|
|
7
|
+
import { UAObject } from "./ua_object";
|
|
8
|
+
import { UAObjectType } from "./ua_object_type";
|
|
9
|
+
import { UAReference } from "./ua_reference";
|
|
10
|
+
import { UAVariable } from "./ua_variable";
|
|
11
|
+
export interface CloneFilter {
|
|
12
|
+
shouldKeep(node: BaseNode): boolean;
|
|
13
|
+
filterFor(childInstance: UAVariable | UAObject | UAMethod): CloneFilter;
|
|
14
|
+
}
|
|
15
|
+
export declare const defaultCloneFilter: CloneFilter;
|
|
16
|
+
export interface CloneExtraInfo {
|
|
17
|
+
level: number;
|
|
18
|
+
pad(): string;
|
|
19
|
+
registerClonedObject(clonedObject: BaseNode, originalObject: BaseNode): void;
|
|
20
|
+
}
|
|
21
|
+
export declare const defaultCloneExtraInfo: CloneExtraInfo;
|
|
22
|
+
export interface CloneOptions {
|
|
23
|
+
namespace: INamespace;
|
|
24
|
+
references?: UAReference[];
|
|
25
|
+
nodeId?: string | NodeIdLike | null;
|
|
26
|
+
nodeClass?: NodeClass;
|
|
27
|
+
browseName?: QualifiedName;
|
|
28
|
+
descriptions?: LocalizedText;
|
|
29
|
+
modellingRule?: ModellingRuleType;
|
|
30
|
+
accessLevel?: number;
|
|
31
|
+
arrayDimensions?: number[] | null;
|
|
32
|
+
dataType?: NodeId;
|
|
33
|
+
historizing?: boolean;
|
|
34
|
+
minimumSamplingInterval?: number;
|
|
35
|
+
userAccessLevel?: number;
|
|
36
|
+
valueRank?: number;
|
|
37
|
+
eventNotifier?: number;
|
|
38
|
+
symbolicName?: string;
|
|
39
|
+
executable?: boolean;
|
|
40
|
+
methodDeclarationId?: NodeId;
|
|
41
|
+
componentOf?: UAObjectType | UAObject;
|
|
42
|
+
copyAlsoModellingRules?: boolean;
|
|
43
|
+
ignoreChildren?: boolean;
|
|
44
|
+
}
|
package/dist/clone_options.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.defaultCloneExtraInfo = exports.defaultCloneFilter = void 0;
|
|
4
|
-
exports.defaultCloneFilter = {
|
|
5
|
-
shouldKeep: () => true,
|
|
6
|
-
filterFor(node) {
|
|
7
|
-
return this;
|
|
8
|
-
}
|
|
9
|
-
};
|
|
10
|
-
exports.defaultCloneExtraInfo = {
|
|
11
|
-
level: 0,
|
|
12
|
-
pad() {
|
|
13
|
-
return " ".padEnd(this.level * 2);
|
|
14
|
-
},
|
|
15
|
-
registerClonedObject(clonedObject, originalObject) {
|
|
16
|
-
// nothing to do
|
|
17
|
-
}
|
|
18
|
-
};
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.defaultCloneExtraInfo = exports.defaultCloneFilter = void 0;
|
|
4
|
+
exports.defaultCloneFilter = {
|
|
5
|
+
shouldKeep: () => true,
|
|
6
|
+
filterFor(node) {
|
|
7
|
+
return this;
|
|
8
|
+
}
|
|
9
|
+
};
|
|
10
|
+
exports.defaultCloneExtraInfo = {
|
|
11
|
+
level: 0,
|
|
12
|
+
pad() {
|
|
13
|
+
return " ".padEnd(this.level * 2);
|
|
14
|
+
},
|
|
15
|
+
registerClonedObject(clonedObject, originalObject) {
|
|
16
|
+
// nothing to do
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
19
|
//# sourceMappingURL=clone_options.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ByteString } from "node-opcua-basic-types";
|
|
2
|
-
export declare type ContinuationPoint = ByteString;
|
|
1
|
+
import { ByteString } from "node-opcua-basic-types";
|
|
2
|
+
export declare type ContinuationPoint = ByteString;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
//# sourceMappingURL=continuation_point.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export declare enum EventNotifierFlags {
|
|
2
|
-
SubscribeToEvents = 1,
|
|
3
|
-
Reserved = 2,
|
|
4
|
-
HistoryRead = 4,
|
|
5
|
-
HistoryWrite = 8,
|
|
6
|
-
None = 0
|
|
7
|
-
}
|
|
1
|
+
export declare enum EventNotifierFlags {
|
|
2
|
+
SubscribeToEvents = 1,
|
|
3
|
+
Reserved = 2,
|
|
4
|
+
HistoryRead = 4,
|
|
5
|
+
HistoryWrite = 8,
|
|
6
|
+
None = 0
|
|
7
|
+
}
|