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