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