node-opcua-address-space 2.90.1 → 2.91.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 (91) hide show
  1. package/dist/source/address_space_ts.d.ts +3 -3
  2. package/dist/source/address_space_ts.js +3 -3
  3. package/dist/source/address_space_ts.js.map +1 -1
  4. package/dist/source/helpers/argument_list.js +3 -3
  5. package/dist/source/helpers/argument_list.js.map +1 -1
  6. package/dist/source/helpers/call_helpers.d.ts +1 -1
  7. package/dist/source/helpers/multiform_func.d.ts +8 -8
  8. package/dist/source/interfaces/alarms_and_conditions/ua_condition_ex.d.ts +1 -1
  9. package/dist/source/interfaces/extension_object_constructor.d.ts +1 -1
  10. package/dist/source/interfaces/state_machine/ua_state_machine_type.d.ts +15 -3
  11. package/dist/source/loader/generateAddressSpaceRaw.d.ts +2 -2
  12. package/dist/source/loader/make_xml_extension_object_parser.d.ts +1 -1
  13. package/dist/source/loader/namespace_post_step.d.ts +1 -1
  14. package/dist/source/session_context.d.ts +1 -1
  15. package/dist/src/address_space.js +19 -19
  16. package/dist/src/address_space.js.map +1 -1
  17. package/dist/src/alarms_and_conditions/ua_alarm_condition_impl.js +1 -1
  18. package/dist/src/alarms_and_conditions/ua_alarm_condition_impl.js.map +1 -1
  19. package/dist/src/alarms_and_conditions/ua_condition_impl.js +2 -2
  20. package/dist/src/alarms_and_conditions/ua_condition_impl.js.map +1 -1
  21. package/dist/src/alarms_and_conditions/ua_discrete_alarm_impl.js +1 -1
  22. package/dist/src/alarms_and_conditions/ua_discrete_alarm_impl.js.map +1 -1
  23. package/dist/src/apply_condition_refresh.d.ts +1 -1
  24. package/dist/src/base_node_impl.js +47 -47
  25. package/dist/src/base_node_impl.js.map +1 -1
  26. package/dist/src/base_node_private.js +4 -4
  27. package/dist/src/base_node_private.js.map +1 -1
  28. package/dist/src/event_data.d.ts +2 -2
  29. package/dist/src/extension_object_array_node.js +3 -3
  30. package/dist/src/extension_object_array_node.js.map +1 -1
  31. package/dist/src/index_current.d.ts +1 -1
  32. package/dist/src/index_current.js +2 -1
  33. package/dist/src/index_current.js.map +1 -1
  34. package/dist/src/nodeid_manager.d.ts +3 -3
  35. package/dist/src/nodeset_tools/nodeset_to_xml.d.ts +1 -1
  36. package/dist/src/nodeset_tools/nodeset_to_xml.js +9 -9
  37. package/dist/src/nodeset_tools/nodeset_to_xml.js.map +1 -1
  38. package/dist/src/reference_impl.js +6 -6
  39. package/dist/src/reference_impl.js.map +1 -1
  40. package/dist/src/state_machine/finite_state_machine.d.ts +16 -2
  41. package/dist/src/state_machine/finite_state_machine.js +83 -44
  42. package/dist/src/state_machine/finite_state_machine.js.map +1 -1
  43. package/dist/src/tool_isSubtypeOf.d.ts +18 -0
  44. package/dist/src/tool_isSubtypeOf.js +125 -0
  45. package/dist/src/tool_isSubtypeOf.js.map +1 -0
  46. package/dist/src/ua_data_type_impl.d.ts +6 -4
  47. package/dist/src/ua_data_type_impl.js +24 -22
  48. package/dist/src/ua_data_type_impl.js.map +1 -1
  49. package/dist/src/ua_method_impl.js +6 -6
  50. package/dist/src/ua_method_impl.js.map +1 -1
  51. package/dist/src/ua_object_impl.js +7 -7
  52. package/dist/src/ua_object_impl.js.map +1 -1
  53. package/dist/src/ua_object_type_impl.d.ts +4 -2
  54. package/dist/src/ua_object_type_impl.js +12 -10
  55. package/dist/src/ua_object_type_impl.js.map +1 -1
  56. package/dist/src/ua_reference_type_impl.d.ts +5 -3
  57. package/dist/src/ua_reference_type_impl.js +12 -10
  58. package/dist/src/ua_reference_type_impl.js.map +1 -1
  59. package/dist/src/ua_variable_impl.d.ts +7 -7
  60. package/dist/src/ua_variable_impl.js +30 -30
  61. package/dist/src/ua_variable_impl.js.map +1 -1
  62. package/dist/src/ua_variable_impl_ext_obj.js +3 -3
  63. package/dist/src/ua_variable_impl_ext_obj.js.map +1 -1
  64. package/dist/src/ua_variable_type_impl.d.ts +4 -2
  65. package/dist/src/ua_variable_type_impl.js +15 -10
  66. package/dist/src/ua_variable_type_impl.js.map +1 -1
  67. package/dist/src/ua_view_impl.js +3 -3
  68. package/dist/src/ua_view_impl.js.map +1 -1
  69. package/distHelpers/boiler_system.js +5 -5
  70. package/distHelpers/boiler_system.js.map +1 -1
  71. package/package.json +7 -7
  72. package/source/helpers/argument_list.ts +3 -3
  73. package/source/interfaces/state_machine/ua_state_machine_type.ts +19 -1
  74. package/src/address_space.ts +8 -8
  75. package/src/alarms_and_conditions/ua_alarm_condition_impl.ts +1 -1
  76. package/src/alarms_and_conditions/ua_condition_impl.ts +2 -2
  77. package/src/alarms_and_conditions/ua_discrete_alarm_impl.ts +1 -1
  78. package/src/base_node_impl.ts +3 -3
  79. package/src/base_node_private.ts +3 -3
  80. package/src/extension_object_array_node.ts +3 -3
  81. package/src/index_current.ts +1 -1
  82. package/src/nodeset_tools/nodeset_to_xml.ts +9 -9
  83. package/src/state_machine/finite_state_machine.ts +105 -60
  84. package/src/{tool_isSupertypeOf.ts → tool_isSubtypeOf.ts} +9 -9
  85. package/src/ua_data_type_impl.ts +21 -19
  86. package/src/ua_object_type_impl.ts +9 -3
  87. package/src/ua_reference_type_impl.ts +7 -4
  88. package/src/ua_variable_impl.ts +2033 -2033
  89. package/src/ua_variable_impl_ext_obj.ts +3 -3
  90. package/src/ua_variable_type_impl.ts +11 -4
  91. package/test_helpers/boiler_system.ts +5 -5
@@ -255,7 +255,7 @@ function installExt(uaVariable: UAVariableImpl, ext: ExtensionObject) {
255
255
  if (field.dataType) {
256
256
  const dataTypeNode = addressSpace.findDataType(field.dataType);
257
257
  // istanbul ignore next
258
- if (dataTypeNode && dataTypeNode.isSupertypeOf(structure)) {
258
+ if (dataTypeNode && dataTypeNode.isSubtypeOf(structure)) {
259
259
  // sub structure .. let make an handler too
260
260
  const camelCaseName = lowerFirstLetter(field.name!);
261
261
 
@@ -389,7 +389,7 @@ function isVariableContainingExtensionObject(uaVariable: UAVariableImpl): boolea
389
389
  assert(structure.browseName.toString() === "Structure", "expecting DataType Structure to be in IAddressSpace");
390
390
 
391
391
  const dt = uaVariable.getDataTypeNode() as UADataTypeImpl;
392
- if (!dt.isSupertypeOf(structure)) {
392
+ if (!dt.isSubtypeOf(structure)) {
393
393
  return false;
394
394
  }
395
395
  return true;
@@ -469,7 +469,7 @@ export function _bindExtensionObject(
469
469
  const dataTypeNode = addressSpace.findNode(parentDataType) as UADataType;
470
470
  const structure = addressSpace.findDataType("Structure")!;
471
471
  // istanbul ignore next
472
- if (dataTypeNode && dataTypeNode.isSupertypeOf(structure)) {
472
+ if (dataTypeNode && dataTypeNode.isSubtypeOf(structure)) {
473
473
  // warningLog(
474
474
  // "Ignoring bindExtensionObject on sub extension object",
475
475
  // "child=",
@@ -37,9 +37,9 @@ import { makeOptionalsMap, OptionalMap } from "../source/helpers/make_optionals_
37
37
  import { AddressSpacePrivate } from "./address_space_private";
38
38
  import { BaseNodeImpl, InternalBaseNodeOptions } from "./base_node_impl";
39
39
  import { _clone_children_references, ToStringBuilder, UAVariableType_toString } from "./base_node_private";
40
- import * as tools from "./tool_isSupertypeOf";
41
- import { get_subtypeOfObj } from "./tool_isSupertypeOf";
42
- import { get_subtypeOf } from "./tool_isSupertypeOf";
40
+ import * as tools from "./tool_isSubtypeOf";
41
+ import { get_subtypeOfObj } from "./tool_isSubtypeOf";
42
+ import { get_subtypeOf } from "./tool_isSubtypeOf";
43
43
  import { checkValueRankCompatibility } from "./check_value_rank_compatibility";
44
44
 
45
45
  const debugLog = make_debugLog(__filename);
@@ -103,6 +103,10 @@ export interface UAVariableTypeOptions extends InternalBaseNodeOptions {
103
103
  value?: any;
104
104
  dataType: NodeIdLike;
105
105
  }
106
+
107
+ function deprecate<T>(func: T):T {
108
+ return func;
109
+ }
106
110
  export class UAVariableTypeImpl extends BaseNodeImpl implements UAVariableType {
107
111
  public readonly nodeClass = NodeClass.VariableType;
108
112
 
@@ -114,7 +118,10 @@ export class UAVariableTypeImpl extends BaseNodeImpl implements UAVariableType {
114
118
  return get_subtypeOfObj.call(this) as UAVariableType;
115
119
  }
116
120
 
117
- public isSupertypeOf = tools.construct_isSupertypeOf<UAVariableType>(UAVariableTypeImpl);
121
+ public isSubtypeOf = tools.construct_isSubtypeOf<UAVariableType>(UAVariableTypeImpl);
122
+
123
+ /** @deprecated - use isSubtypeOf instead */
124
+ public isSupertypeOf = deprecate(tools.construct_isSubtypeOf<UAVariableType>(UAVariableTypeImpl));
118
125
 
119
126
  public readonly isAbstract: boolean;
120
127
  public dataType: NodeId;
@@ -248,11 +248,11 @@ export function createBoilerType(namespace: Namespace): BoilerType {
248
248
  }) as SignalToReference;
249
249
 
250
250
  const addressSpace = namespace.addressSpace;
251
- flowTo.isSupertypeOf(addressSpace.findReferenceType("References")!);
252
- flowTo.isSupertypeOf(addressSpace.findReferenceType("NonHierarchicalReferences")!);
253
- hotFlowTo.isSupertypeOf(addressSpace.findReferenceType("References")!);
254
- hotFlowTo.isSupertypeOf(addressSpace.findReferenceType("NonHierarchicalReferences")!);
255
- hotFlowTo.isSupertypeOf(addressSpace.findReferenceType("FlowTo", namespace.index)!);
251
+ flowTo.isSubtypeOf(addressSpace.findReferenceType("References")!);
252
+ flowTo.isSubtypeOf(addressSpace.findReferenceType("NonHierarchicalReferences")!);
253
+ hotFlowTo.isSubtypeOf(addressSpace.findReferenceType("References")!);
254
+ hotFlowTo.isSubtypeOf(addressSpace.findReferenceType("NonHierarchicalReferences")!);
255
+ hotFlowTo.isSubtypeOf(addressSpace.findReferenceType("FlowTo", namespace.index)!);
256
256
 
257
257
  const NonHierarchicalReferences = addressSpace.findReferenceType("NonHierarchicalReferences");
258
258