opcua-webapi-ts 1.1.15 → 1.1.17

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.
@@ -37,7 +37,7 @@ class UaAddReferencesItem {
37
37
  };
38
38
  return addReferencesItem;
39
39
  }
40
- fromStruct(addReferencesItem) {
40
+ static fromStruct(addReferencesItem) {
41
41
  if (addReferencesItem.SourceNodeId === undefined || addReferencesItem.TargetNodeId === undefined)
42
42
  return null;
43
43
  let sourceNodeId = (0, types_1.parseUaNodeIdOrNull)(addReferencesItem.SourceNodeId);
@@ -21,7 +21,7 @@ class UaDeleteNodesItem {
21
21
  };
22
22
  return item;
23
23
  }
24
- fromStruct(item) {
24
+ static fromStruct(item) {
25
25
  let nodeId = (0, types_1.parseUaNodeIdOrNull)(item.NodeId);
26
26
  if (!nodeId)
27
27
  return null;
@@ -14,5 +14,5 @@ export declare class UaAddReferencesItem {
14
14
  get referenceTypeId(): UaNodeId;
15
15
  get targetNodeClass(): NodeClass;
16
16
  toStruct(): AddReferencesItem;
17
- fromStruct(addReferencesItem: AddReferencesItem): UaAddReferencesItem | null;
17
+ static fromStruct(addReferencesItem: AddReferencesItem): UaAddReferencesItem | null;
18
18
  }
@@ -37,7 +37,7 @@ class UaAddReferencesItem {
37
37
  };
38
38
  return addReferencesItem;
39
39
  }
40
- fromStruct(addReferencesItem) {
40
+ static fromStruct(addReferencesItem) {
41
41
  if (addReferencesItem.SourceNodeId === undefined || addReferencesItem.TargetNodeId === undefined)
42
42
  return null;
43
43
  let sourceNodeId = (0, types_1.parseUaNodeIdOrNull)(addReferencesItem.SourceNodeId);
@@ -8,5 +8,5 @@ export declare class UaDeleteNodesItem {
8
8
  get nodeId(): UaNodeId;
9
9
  get deleteTargetReferences(): boolean;
10
10
  toStruct(): DeleteNodesItem;
11
- fromStruct(item: DeleteNodesItem): UaDeleteNodesItem | null;
11
+ static fromStruct(item: DeleteNodesItem): UaDeleteNodesItem | null;
12
12
  }
@@ -21,7 +21,7 @@ class UaDeleteNodesItem {
21
21
  };
22
22
  return item;
23
23
  }
24
- fromStruct(item) {
24
+ static fromStruct(item) {
25
25
  let nodeId = (0, types_1.parseUaNodeIdOrNull)(item.NodeId);
26
26
  if (!nodeId)
27
27
  return null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opcua-webapi-ts",
3
- "version": "1.1.15",
3
+ "version": "1.1.17",
4
4
  "description": "Provides OPC UA WebAPI wrapper and client based on opcua-webapi-typescript",
5
5
  "author": "DingYan",
6
6
  "license": "MIT",