node-opcua-address-space-base 2.151.0 → 2.153.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.
@@ -16,8 +16,8 @@ import { ISessionContext } from "./session_context";
16
16
  import { UAObject } from "./ua_object";
17
17
  import { UAReferenceType } from "./ua_reference_type";
18
18
  import { UAVariable } from "./ua_variable";
19
- import { UAVariableT } from "./ua_variable_t";
20
19
  import { UAReference } from "./ua_reference";
20
+ import { UAProperty } from "./ua_property";
21
21
  export declare interface AddReferenceOpts {
22
22
  referenceType: keyof ReferenceTypeIds | NodeIdLike | UAReferenceType;
23
23
  nodeId: NodeIdLike | BaseNode;
@@ -140,6 +140,12 @@ export declare class BaseNode extends EventEmitter {
140
140
  */
141
141
  findReferencesAsObject(referenceType: string | NodeId | UAReferenceType, isForward?: boolean): BaseNode[];
142
142
  allReferences(): UAReference[];
143
+ /**
144
+ * Get the Child by name, if browseName is string and namespaceIndex undefined
145
+ * then the search doesn't care about namespace matching
146
+ *
147
+ * @param browseName
148
+ */
143
149
  getChildByName(browseName: QualifiedNameOptions): BaseNode | null;
144
150
  getChildByName(browseName: string, namespaceIndex?: number): BaseNode | null;
145
151
  /**
@@ -183,7 +189,10 @@ export declare class BaseNode extends EventEmitter {
183
189
  * Clients may read the NodeVersion Property or subscribe to it to determine when the
184
190
  * structure of a Node has changed.
185
191
  */
186
- nodeVersion?: UAVariableT<UAString, DataType.String>;
192
+ /**
193
+ * return the versioning node
194
+ */
195
+ getNodeVersion(): UAProperty<UAString, DataType.String> | null;
187
196
  /**
188
197
  *
189
198
  */
@@ -1,4 +1,4 @@
1
- import { QualifiedNameLike, AccessRestrictionsFlag, LocalizedTextLike } from "node-opcua-data-model";
1
+ import { QualifiedNameLike, AccessRestrictionsFlag, LocalizedTextLike, NodeClass } from "node-opcua-data-model";
2
2
  import { NodeId, NodeIdLike } from "node-opcua-nodeid";
3
3
  import { ArgumentOptions, AxisInformationOptions, AxisScaleEnumeration, EnumFieldOptions, EUInformationOptions, RangeOptions, RolePermissionType, RolePermissionTypeOptions, StructureFieldOptions } from "node-opcua-types";
4
4
  import { VariantLike } from "node-opcua-variant";
@@ -17,6 +17,28 @@ import { BindVariableOptions } from "./bind_variable";
17
17
  import { UAView } from "./ua_view";
18
18
  import { UAEventType } from "./ua_event_type";
19
19
  import { UAMethod } from "./ua_method";
20
+ export interface CreateNodeOptions {
21
+ addressSpace?: IAddressSpace;
22
+ browseName: QualifiedNameLike;
23
+ nodeId?: NodeIdLike | BaseNode | null;
24
+ nodeClass?: NodeClass;
25
+ displayName?: LocalizedTextLike | LocalizedTextLike[] | null;
26
+ description?: LocalizedTextLike | null;
27
+ rolePermissions?: RolePermissionTypeOptions[];
28
+ references?: AddReferenceOpts[];
29
+ typeDefinition?: NodeIdLike | BaseNode | null;
30
+ componentOf?: NodeIdLike | BaseNode | null;
31
+ eventSourceOf?: NodeIdLike | BaseNode | null;
32
+ notifierOf?: NodeIdLike | BaseNode | null;
33
+ organizedBy?: NodeIdLike | BaseNode | null;
34
+ propertyOf?: NodeIdLike | BaseNode | null;
35
+ subtypeOf?: NodeIdLike | string | BaseNode | null;
36
+ isAbstract?: boolean;
37
+ nodeVersion?: string;
38
+ modellingRule?: ModellingRuleType;
39
+ eventNotifier?: number;
40
+ postInstantiateFunc?: (instance: BaseNode, tpyeNode: BaseNode, opts?: any) => void;
41
+ }
20
42
  export interface AddBaseNodeOptions {
21
43
  browseName: QualifiedNameLike;
22
44
  nodeId?: NodeIdLike;
@@ -206,7 +228,6 @@ export interface AddYArrayItemOptions extends AddVariableOptions {
206
228
  axisScaleType: AxisScaleEnumeration | string;
207
229
  xAxisDefinition?: AxisInformationOptions;
208
230
  }
209
- export type CreateNodeOptions = any;
210
231
  export interface RequiredModel {
211
232
  modelUri: string;
212
233
  version: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-opcua-address-space-base",
3
- "version": "2.151.0",
3
+ "version": "2.153.0",
4
4
  "description": "pure nodejs OPCUA SDK - module address-space-base",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -17,20 +17,20 @@
17
17
  },
18
18
  "dependencies": {
19
19
  "node-opcua-assert": "2.139.0",
20
- "node-opcua-basic-types": "2.151.0",
20
+ "node-opcua-basic-types": "2.153.0",
21
21
  "node-opcua-constants": "2.139.0",
22
22
  "node-opcua-crypto": "4.16.0",
23
- "node-opcua-data-model": "2.151.0",
24
- "node-opcua-data-value": "2.151.0",
25
- "node-opcua-date-time": "2.151.0",
26
- "node-opcua-debug": "2.139.0",
27
- "node-opcua-extension-object": "2.151.0",
28
- "node-opcua-nodeid": "2.139.0",
29
- "node-opcua-numeric-range": "2.151.0",
30
- "node-opcua-schemas": "2.151.0",
31
- "node-opcua-status-code": "2.139.0",
32
- "node-opcua-types": "2.151.0",
33
- "node-opcua-variant": "2.151.0"
23
+ "node-opcua-data-model": "2.153.0",
24
+ "node-opcua-data-value": "2.153.0",
25
+ "node-opcua-date-time": "2.153.0",
26
+ "node-opcua-debug": "2.153.0",
27
+ "node-opcua-extension-object": "2.153.0",
28
+ "node-opcua-nodeid": "2.153.0",
29
+ "node-opcua-numeric-range": "2.153.0",
30
+ "node-opcua-schemas": "2.153.0",
31
+ "node-opcua-status-code": "2.153.0",
32
+ "node-opcua-types": "2.153.0",
33
+ "node-opcua-variant": "2.153.0"
34
34
  },
35
35
  "author": "Etienne Rossignon",
36
36
  "license": "MIT",
@@ -47,7 +47,7 @@
47
47
  "internet of things"
48
48
  ],
49
49
  "homepage": "http://node-opcua.github.io/",
50
- "gitHead": "991033dd109dcf825217003cbf240ea103890b65",
50
+ "gitHead": "2193ed025bc9aaded76338c1c76cbc0524b3a37f",
51
51
  "files": [
52
52
  "dist",
53
53
  "source"
@@ -41,6 +41,7 @@ import { UAReferenceType } from "./ua_reference_type";
41
41
  import { UAVariable } from "./ua_variable";
42
42
  import { UAVariableT } from "./ua_variable_t";
43
43
  import { UAReference } from "./ua_reference";
44
+ import { UAProperty } from "./ua_property";
44
45
 
45
46
  export declare interface AddReferenceOpts {
46
47
  referenceType: keyof ReferenceTypeIds | NodeIdLike | UAReferenceType;
@@ -206,9 +207,16 @@ export declare class BaseNode extends EventEmitter {
206
207
 
207
208
  public allReferences(): UAReference[];
208
209
 
210
+ /**
211
+ * Get the Child by name, if browseName is string and namespaceIndex undefined
212
+ * then the search doesn't care about namespace matching
213
+ *
214
+ * @param browseName
215
+ */
209
216
  public getChildByName(browseName: QualifiedNameOptions): BaseNode | null;
210
217
  public getChildByName(browseName: string, namespaceIndex?: number): BaseNode | null;
211
218
 
219
+
212
220
  /**
213
221
  * this methods propagates the forward references to the pointed node
214
222
  * by inserting backward references to the counter part node
@@ -254,7 +262,13 @@ export declare class BaseNode extends EventEmitter {
254
262
  * Clients may read the NodeVersion Property or subscribe to it to determine when the
255
263
  * structure of a Node has changed.
256
264
  */
257
- nodeVersion?: UAVariableT<UAString, DataType.String>;
265
+ // nodeVersion?: UAProperty<UAString, DataType.String>;
266
+ /**
267
+ * return the versioning node
268
+ */
269
+ getNodeVersion(): UAProperty<UAString, DataType.String> | null;
270
+
271
+
258
272
 
259
273
  /**
260
274
  *
@@ -1,4 +1,4 @@
1
- import { QualifiedNameLike, AccessRestrictionsFlag, LocalizedTextLike } from "node-opcua-data-model";
1
+ import { QualifiedNameLike, AccessRestrictionsFlag, LocalizedTextLike, NodeClass, QualifiedNameOptions } from "node-opcua-data-model";
2
2
  import { NodeId, NodeIdLike } from "node-opcua-nodeid";
3
3
  import {
4
4
  ArgumentOptions,
@@ -30,9 +30,42 @@ import { UAView } from "./ua_view";
30
30
  import { UAEventType } from "./ua_event_type";
31
31
  import { UAMethod } from "./ua_method";
32
32
 
33
+
34
+ export interface CreateNodeOptions {
35
+
36
+ addressSpace?: IAddressSpace;
37
+ browseName: QualifiedNameLike;
38
+ nodeId? : NodeIdLike | BaseNode | null ;
39
+ nodeClass?: NodeClass;
40
+
41
+ displayName?: LocalizedTextLike | LocalizedTextLike[] | null;
42
+ description?: LocalizedTextLike | null;
43
+
44
+ rolePermissions?: RolePermissionTypeOptions[];
45
+
46
+ references?: AddReferenceOpts[];
47
+
48
+ typeDefinition?: NodeIdLike | BaseNode | null;
49
+ componentOf?: NodeIdLike | BaseNode | null;
50
+ eventSourceOf?: NodeIdLike | BaseNode | null;
51
+ notifierOf?: NodeIdLike | BaseNode | null;
52
+ organizedBy?: NodeIdLike | BaseNode | null;
53
+ propertyOf?: NodeIdLike | BaseNode | null;
54
+
55
+ subtypeOf?: NodeIdLike | string | BaseNode |null;
56
+
57
+ isAbstract?: boolean;
58
+
59
+ nodeVersion?: string;
60
+
61
+ modellingRule?: ModellingRuleType;
62
+ eventNotifier?: number;
63
+
64
+ postInstantiateFunc?: (instance: BaseNode, tpyeNode: BaseNode, opts?: any) => void;
65
+
66
+ }
33
67
  export interface AddBaseNodeOptions {
34
68
  browseName: QualifiedNameLike;
35
-
36
69
  nodeId?: NodeIdLike;
37
70
 
38
71
  displayName?: LocalizedTextLike | LocalizedTextLike[];
@@ -250,7 +283,7 @@ export interface AddYArrayItemOptions extends AddVariableOptions {
250
283
  xAxisDefinition?: AxisInformationOptions;
251
284
  }
252
285
 
253
- export type CreateNodeOptions = any;
286
+
254
287
 
255
288
  export interface RequiredModel {
256
289
  modelUri: string;