node-opcua-address-space-base 2.165.0 → 2.168.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.
@@ -1,22 +1,22 @@
1
- import { QualifiedNameLike, AccessRestrictionsFlag, LocalizedTextLike, NodeClass } from "node-opcua-data-model";
2
- import { NodeId, NodeIdLike } from "node-opcua-nodeid";
3
- import { ArgumentOptions, AxisInformationOptions, AxisScaleEnumeration, EnumFieldOptions, EUInformationOptions, RangeOptions, RolePermissionType, RolePermissionTypeOptions, StructureFieldOptions } from "node-opcua-types";
4
- import { VariantLike } from "node-opcua-variant";
5
- import { UInt32 } from "node-opcua-basic-types";
6
- import { DataValueOptions } from "node-opcua-data-value";
7
- import { IAddressSpace } from "./address_space";
8
- import { AddReferenceOpts, BaseNode, ConstructNodeIdOptions } from "./base_node";
9
- import { ModellingRuleType } from "./modelling_rule_type";
10
- import { UADataType } from "./ua_data_type";
11
- import { UAObject } from "./ua_object";
12
- import { UAObjectType } from "./ua_object_type";
13
- import { UAReferenceType } from "./ua_reference_type";
14
- import { UAVariable } from "./ua_variable";
15
- import { UAVariableType } from "./ua_variable_type";
16
- import { BindVariableOptions } from "./bind_variable";
17
- import { UAView } from "./ua_view";
18
- import { UAEventType } from "./ua_event_type";
19
- import { UAMethod } from "./ua_method";
1
+ import type { UInt32 } from "node-opcua-basic-types";
2
+ import type { AccessRestrictionsFlag, LocalizedTextLike, NodeClass, QualifiedNameLike } from "node-opcua-data-model";
3
+ import type { DataValueOptions } from "node-opcua-data-value";
4
+ import type { NodeId, NodeIdLike } from "node-opcua-nodeid";
5
+ import type { ArgumentOptions, AxisInformationOptions, AxisScaleEnumeration, EnumFieldOptions, EUInformationOptions, RangeOptions, RolePermissionType, RolePermissionTypeOptions, StructureFieldOptions } from "node-opcua-types";
6
+ import type { VariantLike } from "node-opcua-variant";
7
+ import type { IAddressSpace } from "./address_space";
8
+ import type { AddReferenceOpts, BaseNode, ConstructNodeIdOptions } from "./base_node";
9
+ import type { BindVariableOptions } from "./bind_variable";
10
+ import type { ModellingRuleType } from "./modelling_rule_type";
11
+ import type { UADataType } from "./ua_data_type";
12
+ import type { UAEventType } from "./ua_event_type";
13
+ import type { UAMethod } from "./ua_method";
14
+ import type { UAObject } from "./ua_object";
15
+ import type { UAObjectType } from "./ua_object_type";
16
+ import type { UAReferenceType } from "./ua_reference_type";
17
+ import type { UAVariable } from "./ua_variable";
18
+ import type { UAVariableType } from "./ua_variable_type";
19
+ import type { UAView } from "./ua_view";
20
20
  export interface CreateNodeOptions {
21
21
  addressSpace?: IAddressSpace;
22
22
  browseName: QualifiedNameLike;
@@ -258,7 +258,7 @@ export declare interface INamespace {
258
258
  addVariable(options: AddVariableOptions): UAVariable;
259
259
  addObject(options: AddObjectOptions): UAObject;
260
260
  addView(options: AddViewOptions): UAView;
261
- addFolder(parentFolder: NodeIdLike | UAObject, options: any): UAObject;
261
+ addFolder(parentFolder: NodeIdLike | UAObject, options: AddBaseNodeOptions | string): UAObject;
262
262
  createNode(options: CreateNodeOptions): BaseNode;
263
263
  /** @private */
264
264
  internalCreateNode(options: CreateNodeOptions): BaseNode;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-opcua-address-space-base",
3
- "version": "2.165.0",
3
+ "version": "2.168.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",
@@ -18,20 +18,20 @@
18
18
  },
19
19
  "dependencies": {
20
20
  "node-opcua-assert": "2.164.0",
21
- "node-opcua-basic-types": "2.165.0",
21
+ "node-opcua-basic-types": "2.168.0",
22
22
  "node-opcua-constants": "2.157.0",
23
- "node-opcua-crypto": "5.3.0",
24
- "node-opcua-data-model": "2.165.0",
25
- "node-opcua-data-value": "2.165.0",
26
- "node-opcua-date-time": "2.165.0",
27
- "node-opcua-debug": "2.165.0",
28
- "node-opcua-extension-object": "2.165.0",
29
- "node-opcua-nodeid": "2.165.0",
30
- "node-opcua-numeric-range": "2.165.0",
31
- "node-opcua-schemas": "2.165.0",
32
- "node-opcua-status-code": "2.165.0",
33
- "node-opcua-types": "2.165.0",
34
- "node-opcua-variant": "2.165.0"
23
+ "node-opcua-crypto": "5.3.3",
24
+ "node-opcua-data-model": "2.168.0",
25
+ "node-opcua-data-value": "2.168.0",
26
+ "node-opcua-date-time": "2.168.0",
27
+ "node-opcua-debug": "2.168.0",
28
+ "node-opcua-extension-object": "2.168.0",
29
+ "node-opcua-nodeid": "2.168.0",
30
+ "node-opcua-numeric-range": "2.168.0",
31
+ "node-opcua-schemas": "2.168.0",
32
+ "node-opcua-status-code": "2.168.0",
33
+ "node-opcua-types": "2.168.0",
34
+ "node-opcua-variant": "2.168.0"
35
35
  },
36
36
  "author": "Etienne Rossignon",
37
37
  "license": "MIT",
@@ -48,7 +48,7 @@
48
48
  "internet of things"
49
49
  ],
50
50
  "homepage": "http://node-opcua.github.io/",
51
- "gitHead": "fe53ac03427fcb223996446c991f7496635ba193",
51
+ "gitHead": "653b6d6df801ca17298308089dee32e5b12102b6",
52
52
  "files": [
53
53
  "dist",
54
54
  "source"
@@ -1,45 +1,42 @@
1
- import { QualifiedNameLike, AccessRestrictionsFlag, LocalizedTextLike, NodeClass, QualifiedNameOptions } from "node-opcua-data-model";
2
- import { NodeId, NodeIdLike } from "node-opcua-nodeid";
3
- import {
1
+ import type { UInt32 } from "node-opcua-basic-types";
2
+ import type { AccessRestrictionsFlag, LocalizedTextLike, NodeClass, QualifiedNameLike } from "node-opcua-data-model";
3
+ import type { DataValueOptions } from "node-opcua-data-value";
4
+ import type { NodeId, NodeIdLike } from "node-opcua-nodeid";
5
+ import type {
4
6
  ArgumentOptions,
5
7
  AxisInformationOptions,
6
8
  AxisScaleEnumeration,
7
9
  EnumFieldOptions,
8
- EUInformation,
9
10
  EUInformationOptions,
10
11
  RangeOptions,
11
12
  RolePermissionType,
12
13
  RolePermissionTypeOptions,
13
14
  StructureFieldOptions
14
15
  } from "node-opcua-types";
15
- import { DataType, VariantArrayType, VariantLike } from "node-opcua-variant";
16
- import { StatusCode, StatusCodeCallback, UInt32 } from "node-opcua-basic-types";
17
- import { DataValue, DataValueOptions } from "node-opcua-data-value";
18
-
19
- import { IAddressSpace } from "./address_space";
20
- import { AddReferenceOpts, BaseNode, ConstructNodeIdOptions } from "./base_node";
21
- import { ModellingRuleType } from "./modelling_rule_type";
22
- import { UADataType } from "./ua_data_type";
23
- import { UAObject } from "./ua_object";
24
- import { UAObjectType } from "./ua_object_type";
25
- import { UAReferenceType } from "./ua_reference_type";
26
- import { UAVariable } from "./ua_variable";
27
- import { UAVariableType } from "./ua_variable_type";
28
- import { BindVariableOptions, BindVariableOptionsVariation1, HistoryReadFunc } from "./bind_variable";
29
- import { UAView } from "./ua_view";
30
- import { UAEventType } from "./ua_event_type";
31
- import { UAMethod } from "./ua_method";
32
-
16
+ import type { VariantLike } from "node-opcua-variant";
17
+
18
+ import type { IAddressSpace } from "./address_space";
19
+ import type { AddReferenceOpts, BaseNode, ConstructNodeIdOptions } from "./base_node";
20
+ import type { BindVariableOptions } from "./bind_variable";
21
+ import type { ModellingRuleType } from "./modelling_rule_type";
22
+ import type { UADataType } from "./ua_data_type";
23
+ import type { UAEventType } from "./ua_event_type";
24
+ import type { UAMethod } from "./ua_method";
25
+ import type { UAObject } from "./ua_object";
26
+ import type { UAObjectType } from "./ua_object_type";
27
+ import type { UAReferenceType } from "./ua_reference_type";
28
+ import type { UAVariable } from "./ua_variable";
29
+ import type { UAVariableType } from "./ua_variable_type";
30
+ import type { UAView } from "./ua_view";
33
31
 
34
32
  export interface CreateNodeOptions {
35
-
36
33
  addressSpace?: IAddressSpace;
37
- browseName: QualifiedNameLike;
38
- nodeId? : NodeIdLike | BaseNode | null ;
34
+ browseName: QualifiedNameLike;
35
+ nodeId?: NodeIdLike | BaseNode | null;
39
36
  nodeClass?: NodeClass;
40
37
 
41
38
  displayName?: LocalizedTextLike | LocalizedTextLike[] | null;
42
- description?: LocalizedTextLike | null;
39
+ description?: LocalizedTextLike | null;
43
40
 
44
41
  rolePermissions?: RolePermissionTypeOptions[];
45
42
 
@@ -51,8 +48,8 @@ export interface CreateNodeOptions {
51
48
  notifierOf?: NodeIdLike | BaseNode | null;
52
49
  organizedBy?: NodeIdLike | BaseNode | null;
53
50
  propertyOf?: NodeIdLike | BaseNode | null;
54
-
55
- subtypeOf?: NodeIdLike | string | BaseNode |null;
51
+
52
+ subtypeOf?: NodeIdLike | string | BaseNode | null;
56
53
 
57
54
  isAbstract?: boolean;
58
55
 
@@ -61,8 +58,8 @@ export interface CreateNodeOptions {
61
58
  modellingRule?: ModellingRuleType;
62
59
  eventNotifier?: number;
63
60
 
61
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
64
62
  postInstantiateFunc?: (instance: BaseNode, tpyeNode: BaseNode, opts?: any) => void;
65
-
66
63
  }
67
64
  export interface AddBaseNodeOptions {
68
65
  browseName: QualifiedNameLike;
@@ -232,7 +229,7 @@ export interface VariableStuff {
232
229
  dataValue?: DataValueOptions;
233
230
  }
234
231
 
235
- export interface AddVariableOptionsWithoutValue extends AddBaseNodeOptions, VariableStuff {}
232
+ export interface AddVariableOptionsWithoutValue extends AddBaseNodeOptions, VariableStuff { }
236
233
  export interface AddVariableOptions extends AddVariableOptionsWithoutValue {
237
234
  // default value is "BaseVariableType";
238
235
  typeDefinition?: string | NodeId | UAVariableType;
@@ -283,8 +280,6 @@ export interface AddYArrayItemOptions extends AddVariableOptions {
283
280
  xAxisDefinition?: AxisInformationOptions;
284
281
  }
285
282
 
286
-
287
-
288
283
  export interface RequiredModel {
289
284
  modelUri: string;
290
285
  version: string;
@@ -339,7 +334,7 @@ export declare interface INamespace {
339
334
 
340
335
  addView(options: AddViewOptions): UAView;
341
336
 
342
- addFolder(parentFolder: NodeIdLike | UAObject, options: any): UAObject;
337
+ addFolder(parentFolder: NodeIdLike | UAObject, options: AddBaseNodeOptions | string): UAObject;
343
338
 
344
339
  createNode(options: CreateNodeOptions): BaseNode;
345
340