node-opcua-address-space-base 2.71.0 → 2.72.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 +167 -167
- 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 -0
- package/dist/event_notifier_flags.js +12 -0
- package/dist/event_notifier_flags.js.map +1 -0
- package/dist/index.d.ts +22 -21
- package/dist/index.js +38 -37
- package/dist/index.js.map +1 -1
- 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 +21 -21
- 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 +126 -124
- 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 -5
- package/dist/ua_view.js +2 -2
- package/package.json +13 -13
- package/source/event_notifier_flags.ts +7 -0
- package/source/index.ts +1 -0
- package/source/ua_object.ts +5 -1
- package/source/ua_object_type.ts +1 -1
- package/source/ua_view.ts +2 -0
package/dist/address_space.d.ts
CHANGED
|
@@ -1,167 +1,167 @@
|
|
|
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 { BrowseDescription, BrowsePath, BrowsePathResult, BrowseResult } from "node-opcua-types";
|
|
5
|
-
import { DataType, VariantByteString } from "node-opcua-variant";
|
|
6
|
-
import { AddReferenceOpts, BaseNode } from "./base_node";
|
|
7
|
-
import { INamespace } from "./namespace";
|
|
8
|
-
import { ISessionContext } from "./session_context";
|
|
9
|
-
import { UADataType } from "./ua_data_type";
|
|
10
|
-
import { IEventData, UAEventType } from "./ua_event_type";
|
|
11
|
-
import { UAMethod } from "./ua_method";
|
|
12
|
-
import { UAObject } from "./ua_object";
|
|
13
|
-
import { UAObjectType } from "./ua_object_type";
|
|
14
|
-
import { UAReference } from "./ua_reference";
|
|
15
|
-
import { UAReferenceType } from "./ua_reference_type";
|
|
16
|
-
import { IHistoricalDataNodeOptions, UAVariable } from "./ua_variable";
|
|
17
|
-
import { UAVariableType } from "./ua_variable_type";
|
|
18
|
-
import { UAView } from "./ua_view";
|
|
19
|
-
interface UARootFolder_Objects extends UAObject {
|
|
20
|
-
server: UAObject;
|
|
21
|
-
}
|
|
22
|
-
export interface IAddressSpace {
|
|
23
|
-
rootFolder: {
|
|
24
|
-
objects: UARootFolder_Objects;
|
|
25
|
-
views: UAObject;
|
|
26
|
-
types: UAObject;
|
|
27
|
-
};
|
|
28
|
-
historizingNodes?: {
|
|
29
|
-
[key: string]: UAVariable;
|
|
30
|
-
};
|
|
31
|
-
/**
|
|
32
|
-
* when this flag is set, properties and components are not added as javascript
|
|
33
|
-
* member of the UAObject/UAVariable node
|
|
34
|
-
*/
|
|
35
|
-
isFrugal: boolean;
|
|
36
|
-
resolveNodeId(nodeIdLike: NodeIdLike): NodeId;
|
|
37
|
-
findNode(node: NodeIdLike): BaseNode | null;
|
|
38
|
-
/**
|
|
39
|
-
*
|
|
40
|
-
* @example
|
|
41
|
-
*
|
|
42
|
-
* ```javascript
|
|
43
|
-
* const variableType = addressSpace.findVariableType("ns=0;i=62");
|
|
44
|
-
* variableType.browseName.toString().should.eql("BaseVariableType");
|
|
45
|
-
*
|
|
46
|
-
* const variableType = addressSpace.findVariableType("BaseVariableType");
|
|
47
|
-
* variableType.browseName.toString().should.eql("BaseVariableType");
|
|
48
|
-
*
|
|
49
|
-
* const variableType = addressSpace.findVariableType(resolveNodeId("ns=0;i=62"));
|
|
50
|
-
* variableType.browseName.toString().should.eql("BaseVariableType");
|
|
51
|
-
* ```
|
|
52
|
-
*/
|
|
53
|
-
findVariableType(variableTypeId: NodeIdLike, namespaceIndex?: number): UAVariableType | null;
|
|
54
|
-
findMethod(nodeId: NodeIdLike): UAMethod | null;
|
|
55
|
-
/**
|
|
56
|
-
* find an EventType node in the address space
|
|
57
|
-
*
|
|
58
|
-
* @param objectTypeId the eventType to find
|
|
59
|
-
* @param namespaceIndex an optional index to restrict the search in a given namespace
|
|
60
|
-
* @return the EventType found or null.
|
|
61
|
-
*
|
|
62
|
-
* notes:
|
|
63
|
-
*
|
|
64
|
-
* - if objectTypeId is of type NodeId, the namespaceIndex shall not be specified
|
|
65
|
-
* @example
|
|
66
|
-
*
|
|
67
|
-
* ```ts
|
|
68
|
-
* const objectType = addressSpace.findObjectType("ns=0;i=58");
|
|
69
|
-
* objectType.browseName.toString().should.eql("BaseObjectType");
|
|
70
|
-
*
|
|
71
|
-
* const objectType = addressSpace.findObjectType("BaseObjectType");
|
|
72
|
-
* objectType.browseName.toString().should.eql("BaseObjectType");
|
|
73
|
-
*
|
|
74
|
-
* const objectType = addressSpace.findObjectType(resolveNodeId("ns=0;i=58"));
|
|
75
|
-
* objectType.browseName.toString().should.eql("BaseObjectType");
|
|
76
|
-
*
|
|
77
|
-
* const objectType = addressSpace.findObjectType("CustomObjectType",36);
|
|
78
|
-
* objectType.nodeId.namespace.should.eql(36);
|
|
79
|
-
* objectType.browseName.toString().should.eql("BaseObjectType");
|
|
80
|
-
*
|
|
81
|
-
* const objectType = addressSpace.findObjectType("36:CustomObjectType");
|
|
82
|
-
* objectType.nodeId.namespace.should.eql(36);
|
|
83
|
-
* objectType.browseName.toString().should.eql("BaseObjectType");
|
|
84
|
-
* ```
|
|
85
|
-
*/
|
|
86
|
-
findObjectType(objectTypeId: NodeIdLike, namespaceIndex?: number): UAObjectType | null;
|
|
87
|
-
/**
|
|
88
|
-
* find an EventType node in the address space
|
|
89
|
-
*
|
|
90
|
-
* @param eventTypeId the eventType to find
|
|
91
|
-
* @param namespaceIndex an optional index to restrict the search in a given namespace
|
|
92
|
-
* @return the EventType found or null.
|
|
93
|
-
*
|
|
94
|
-
* note:
|
|
95
|
-
* - the method with throw an exception if a node is found
|
|
96
|
-
* that is not a BaseEventType or a subtype of it.
|
|
97
|
-
* - if eventTypeId is of type NodeId, the namespaceIndex shall not be specified
|
|
98
|
-
*
|
|
99
|
-
* @example
|
|
100
|
-
*
|
|
101
|
-
* ```javascript
|
|
102
|
-
* const evtType = addressSpace.findEventType("AuditEventType");
|
|
103
|
-
* ```
|
|
104
|
-
*
|
|
105
|
-
*/
|
|
106
|
-
findEventType(eventTypeId: NodeIdLike | UAObjectType, namespaceIndex?: number): UAObjectType | null;
|
|
107
|
-
findReferenceType(referenceTypeId: NodeIdLike | UAReferenceType, namespaceIndex?: number): UAReferenceType | null;
|
|
108
|
-
/**
|
|
109
|
-
* find a ReferenceType by its inverse name.
|
|
110
|
-
* @param inverseName the inverse name of the ReferenceType to find
|
|
111
|
-
*/
|
|
112
|
-
findReferenceTypeFromInverseName(inverseName: string): UAReferenceType | null;
|
|
113
|
-
findDataType(dataType: string | NodeId | UADataType | DataType, namespaceIndex?: number): UADataType | null;
|
|
114
|
-
findCorrespondingBasicDataType(dataType: NodeIdLike | UADataType): DataType;
|
|
115
|
-
deleteNode(node: NodeId | BaseNode): void;
|
|
116
|
-
getDefaultNamespace(): INamespace;
|
|
117
|
-
getOwnNamespace(): INamespace;
|
|
118
|
-
getNamespace(indexOrName: number | string): INamespace;
|
|
119
|
-
registerNamespace(namespaceUri: string): INamespace;
|
|
120
|
-
getNamespaceIndex(namespaceUri: string): number;
|
|
121
|
-
getNamespaceUri(namespaceIndex: number): string;
|
|
122
|
-
getNamespaceArray(): INamespace[];
|
|
123
|
-
browseSingleNode(nodeId: NodeIdLike, browseDescription: BrowseDescription, context?: ISessionContext): BrowseResult;
|
|
124
|
-
browsePath(browsePath: BrowsePath): BrowsePathResult;
|
|
125
|
-
inverseReferenceType(referenceType: string): string;
|
|
126
|
-
/**
|
|
127
|
-
* get the extension object constructor from a DataType nodeID or UADataType object
|
|
128
|
-
*/
|
|
129
|
-
getExtensionObjectConstructor(dataType: NodeId | UADataType): AnyConstructorFunc;
|
|
130
|
-
/**
|
|
131
|
-
* construct an extension object constructor from a DataType nodeID or UADataType object
|
|
132
|
-
*
|
|
133
|
-
*/
|
|
134
|
-
constructExtensionObject(dataType: UADataType | NodeId, options?: any): ExtensionObject;
|
|
135
|
-
/***
|
|
136
|
-
* construct a simple javascript object with all the default properties of the event
|
|
137
|
-
*
|
|
138
|
-
* @return result.$eventDataSource the event type node
|
|
139
|
-
* @return result.eventId the
|
|
140
|
-
* ...
|
|
141
|
-
*
|
|
142
|
-
*
|
|
143
|
-
* eventTypeId can be a UAObjectType deriving from EventType
|
|
144
|
-
* or an instance of a ConditionType
|
|
145
|
-
*
|
|
146
|
-
*/
|
|
147
|
-
constructEventData(eventTypeId: UAEventType, data: any): IEventData;
|
|
148
|
-
/**
|
|
149
|
-
* walk up the hierarchy of objects until a view is found
|
|
150
|
-
* objects may belong to multiples views.
|
|
151
|
-
* Note: this method doesn't return the main view => Server object.
|
|
152
|
-
* @param node
|
|
153
|
-
* @internal
|
|
154
|
-
*/
|
|
155
|
-
extractRootViews(node: UAObject | UAVariable): UAView[];
|
|
156
|
-
installHistoricalDataNode(variableNode: UAVariable, options?: IHistoricalDataNodeOptions): void;
|
|
157
|
-
registerShutdownTask(task: (this: IAddressSpace) => void): void;
|
|
158
|
-
shutdown(): Promise<void>;
|
|
159
|
-
dispose(): void;
|
|
160
|
-
installAlarmsAndConditionsService(): void;
|
|
161
|
-
normalizeReferenceType(params: AddReferenceOpts | UAReference): UAReference;
|
|
162
|
-
/**
|
|
163
|
-
* EventId is generated by the Server to uniquely identify a particular Event Notification.
|
|
164
|
-
*/
|
|
165
|
-
generateEventId(): VariantByteString;
|
|
166
|
-
}
|
|
167
|
-
export {};
|
|
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 { BrowseDescription, BrowsePath, BrowsePathResult, BrowseResult } from "node-opcua-types";
|
|
5
|
+
import { DataType, VariantByteString } from "node-opcua-variant";
|
|
6
|
+
import { AddReferenceOpts, BaseNode } from "./base_node";
|
|
7
|
+
import { INamespace } from "./namespace";
|
|
8
|
+
import { ISessionContext } from "./session_context";
|
|
9
|
+
import { UADataType } from "./ua_data_type";
|
|
10
|
+
import { IEventData, UAEventType } from "./ua_event_type";
|
|
11
|
+
import { UAMethod } from "./ua_method";
|
|
12
|
+
import { UAObject } from "./ua_object";
|
|
13
|
+
import { UAObjectType } from "./ua_object_type";
|
|
14
|
+
import { UAReference } from "./ua_reference";
|
|
15
|
+
import { UAReferenceType } from "./ua_reference_type";
|
|
16
|
+
import { IHistoricalDataNodeOptions, UAVariable } from "./ua_variable";
|
|
17
|
+
import { UAVariableType } from "./ua_variable_type";
|
|
18
|
+
import { UAView } from "./ua_view";
|
|
19
|
+
interface UARootFolder_Objects extends UAObject {
|
|
20
|
+
server: UAObject;
|
|
21
|
+
}
|
|
22
|
+
export interface IAddressSpace {
|
|
23
|
+
rootFolder: {
|
|
24
|
+
objects: UARootFolder_Objects;
|
|
25
|
+
views: UAObject;
|
|
26
|
+
types: UAObject;
|
|
27
|
+
};
|
|
28
|
+
historizingNodes?: {
|
|
29
|
+
[key: string]: UAVariable;
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* when this flag is set, properties and components are not added as javascript
|
|
33
|
+
* member of the UAObject/UAVariable node
|
|
34
|
+
*/
|
|
35
|
+
isFrugal: boolean;
|
|
36
|
+
resolveNodeId(nodeIdLike: NodeIdLike): NodeId;
|
|
37
|
+
findNode(node: NodeIdLike): BaseNode | null;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
*
|
|
42
|
+
* ```javascript
|
|
43
|
+
* const variableType = addressSpace.findVariableType("ns=0;i=62");
|
|
44
|
+
* variableType.browseName.toString().should.eql("BaseVariableType");
|
|
45
|
+
*
|
|
46
|
+
* const variableType = addressSpace.findVariableType("BaseVariableType");
|
|
47
|
+
* variableType.browseName.toString().should.eql("BaseVariableType");
|
|
48
|
+
*
|
|
49
|
+
* const variableType = addressSpace.findVariableType(resolveNodeId("ns=0;i=62"));
|
|
50
|
+
* variableType.browseName.toString().should.eql("BaseVariableType");
|
|
51
|
+
* ```
|
|
52
|
+
*/
|
|
53
|
+
findVariableType(variableTypeId: NodeIdLike, namespaceIndex?: number): UAVariableType | null;
|
|
54
|
+
findMethod(nodeId: NodeIdLike): UAMethod | null;
|
|
55
|
+
/**
|
|
56
|
+
* find an EventType node in the address space
|
|
57
|
+
*
|
|
58
|
+
* @param objectTypeId the eventType to find
|
|
59
|
+
* @param namespaceIndex an optional index to restrict the search in a given namespace
|
|
60
|
+
* @return the EventType found or null.
|
|
61
|
+
*
|
|
62
|
+
* notes:
|
|
63
|
+
*
|
|
64
|
+
* - if objectTypeId is of type NodeId, the namespaceIndex shall not be specified
|
|
65
|
+
* @example
|
|
66
|
+
*
|
|
67
|
+
* ```ts
|
|
68
|
+
* const objectType = addressSpace.findObjectType("ns=0;i=58");
|
|
69
|
+
* objectType.browseName.toString().should.eql("BaseObjectType");
|
|
70
|
+
*
|
|
71
|
+
* const objectType = addressSpace.findObjectType("BaseObjectType");
|
|
72
|
+
* objectType.browseName.toString().should.eql("BaseObjectType");
|
|
73
|
+
*
|
|
74
|
+
* const objectType = addressSpace.findObjectType(resolveNodeId("ns=0;i=58"));
|
|
75
|
+
* objectType.browseName.toString().should.eql("BaseObjectType");
|
|
76
|
+
*
|
|
77
|
+
* const objectType = addressSpace.findObjectType("CustomObjectType",36);
|
|
78
|
+
* objectType.nodeId.namespace.should.eql(36);
|
|
79
|
+
* objectType.browseName.toString().should.eql("BaseObjectType");
|
|
80
|
+
*
|
|
81
|
+
* const objectType = addressSpace.findObjectType("36:CustomObjectType");
|
|
82
|
+
* objectType.nodeId.namespace.should.eql(36);
|
|
83
|
+
* objectType.browseName.toString().should.eql("BaseObjectType");
|
|
84
|
+
* ```
|
|
85
|
+
*/
|
|
86
|
+
findObjectType(objectTypeId: NodeIdLike, namespaceIndex?: number): UAObjectType | null;
|
|
87
|
+
/**
|
|
88
|
+
* find an EventType node in the address space
|
|
89
|
+
*
|
|
90
|
+
* @param eventTypeId the eventType to find
|
|
91
|
+
* @param namespaceIndex an optional index to restrict the search in a given namespace
|
|
92
|
+
* @return the EventType found or null.
|
|
93
|
+
*
|
|
94
|
+
* note:
|
|
95
|
+
* - the method with throw an exception if a node is found
|
|
96
|
+
* that is not a BaseEventType or a subtype of it.
|
|
97
|
+
* - if eventTypeId is of type NodeId, the namespaceIndex shall not be specified
|
|
98
|
+
*
|
|
99
|
+
* @example
|
|
100
|
+
*
|
|
101
|
+
* ```javascript
|
|
102
|
+
* const evtType = addressSpace.findEventType("AuditEventType");
|
|
103
|
+
* ```
|
|
104
|
+
*
|
|
105
|
+
*/
|
|
106
|
+
findEventType(eventTypeId: NodeIdLike | UAObjectType, namespaceIndex?: number): UAObjectType | null;
|
|
107
|
+
findReferenceType(referenceTypeId: NodeIdLike | UAReferenceType, namespaceIndex?: number): UAReferenceType | null;
|
|
108
|
+
/**
|
|
109
|
+
* find a ReferenceType by its inverse name.
|
|
110
|
+
* @param inverseName the inverse name of the ReferenceType to find
|
|
111
|
+
*/
|
|
112
|
+
findReferenceTypeFromInverseName(inverseName: string): UAReferenceType | null;
|
|
113
|
+
findDataType(dataType: string | NodeId | UADataType | DataType, namespaceIndex?: number): UADataType | null;
|
|
114
|
+
findCorrespondingBasicDataType(dataType: NodeIdLike | UADataType): DataType;
|
|
115
|
+
deleteNode(node: NodeId | BaseNode): void;
|
|
116
|
+
getDefaultNamespace(): INamespace;
|
|
117
|
+
getOwnNamespace(): INamespace;
|
|
118
|
+
getNamespace(indexOrName: number | string): INamespace;
|
|
119
|
+
registerNamespace(namespaceUri: string): INamespace;
|
|
120
|
+
getNamespaceIndex(namespaceUri: string): number;
|
|
121
|
+
getNamespaceUri(namespaceIndex: number): string;
|
|
122
|
+
getNamespaceArray(): INamespace[];
|
|
123
|
+
browseSingleNode(nodeId: NodeIdLike, browseDescription: BrowseDescription, context?: ISessionContext): BrowseResult;
|
|
124
|
+
browsePath(browsePath: BrowsePath): BrowsePathResult;
|
|
125
|
+
inverseReferenceType(referenceType: string): string;
|
|
126
|
+
/**
|
|
127
|
+
* get the extension object constructor from a DataType nodeID or UADataType object
|
|
128
|
+
*/
|
|
129
|
+
getExtensionObjectConstructor(dataType: NodeId | UADataType): AnyConstructorFunc;
|
|
130
|
+
/**
|
|
131
|
+
* construct an extension object constructor from a DataType nodeID or UADataType object
|
|
132
|
+
*
|
|
133
|
+
*/
|
|
134
|
+
constructExtensionObject(dataType: UADataType | NodeId, options?: any): ExtensionObject;
|
|
135
|
+
/***
|
|
136
|
+
* construct a simple javascript object with all the default properties of the event
|
|
137
|
+
*
|
|
138
|
+
* @return result.$eventDataSource the event type node
|
|
139
|
+
* @return result.eventId the
|
|
140
|
+
* ...
|
|
141
|
+
*
|
|
142
|
+
*
|
|
143
|
+
* eventTypeId can be a UAObjectType deriving from EventType
|
|
144
|
+
* or an instance of a ConditionType
|
|
145
|
+
*
|
|
146
|
+
*/
|
|
147
|
+
constructEventData(eventTypeId: UAEventType, data: any): IEventData;
|
|
148
|
+
/**
|
|
149
|
+
* walk up the hierarchy of objects until a view is found
|
|
150
|
+
* objects may belong to multiples views.
|
|
151
|
+
* Note: this method doesn't return the main view => Server object.
|
|
152
|
+
* @param node
|
|
153
|
+
* @internal
|
|
154
|
+
*/
|
|
155
|
+
extractRootViews(node: UAObject | UAVariable): UAView[];
|
|
156
|
+
installHistoricalDataNode(variableNode: UAVariable, options?: IHistoricalDataNodeOptions): void;
|
|
157
|
+
registerShutdownTask(task: (this: IAddressSpace) => void): void;
|
|
158
|
+
shutdown(): Promise<void>;
|
|
159
|
+
dispose(): void;
|
|
160
|
+
installAlarmsAndConditionsService(): void;
|
|
161
|
+
normalizeReferenceType(params: AddReferenceOpts | UAReference): UAReference;
|
|
162
|
+
/**
|
|
163
|
+
* EventId is generated by the Server to uniquely identify a particular Event Notification.
|
|
164
|
+
*/
|
|
165
|
+
generateEventId(): VariantByteString;
|
|
166
|
+
}
|
|
167
|
+
export {};
|
package/dist/address_space.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=address_space.js.map
|