node-opcua-address-space 2.169.0 → 2.172.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.
- package/dist/source/address_space_ts.d.ts +13 -13
- package/dist/source/address_space_ts.js +4 -0
- package/dist/source/address_space_ts.js.map +1 -1
- package/dist/source/continuation_points/continuation_point_manager.d.ts +6 -3
- package/dist/source/continuation_points/continuation_point_manager.js +4 -4
- package/dist/source/continuation_points/continuation_point_manager.js.map +1 -1
- package/dist/source/helpers/adjust_browse_direction.d.ts +1 -1
- package/dist/source/helpers/argument_list.d.ts +13 -11
- package/dist/source/helpers/argument_list.js +24 -15
- package/dist/source/helpers/argument_list.js.map +1 -1
- package/dist/source/helpers/call_helpers.d.ts +6 -3
- package/dist/source/helpers/call_helpers.js +5 -6
- package/dist/source/helpers/call_helpers.js.map +1 -1
- package/dist/source/helpers/coerce_enum_value.d.ts +2 -2
- package/dist/source/helpers/coerce_enum_value.js +2 -2
- package/dist/source/helpers/coerce_enum_value.js.map +1 -1
- package/dist/source/helpers/dump_tools.d.ts +3 -3
- package/dist/source/helpers/dump_tools.js +2 -2
- package/dist/source/helpers/dump_tools.js.map +1 -1
- package/dist/source/helpers/ensure_secure_access.d.ts +1 -1
- package/dist/source/helpers/ensure_secure_access.js +1 -1
- package/dist/source/helpers/ensure_secure_access.js.map +1 -1
- package/dist/source/helpers/make_optionals_map.js +0 -5
- package/dist/source/helpers/make_optionals_map.js.map +1 -1
- package/dist/source/helpers/multiform_func.d.ts +1 -1
- package/dist/source/helpers/resolve_opaque_on_address_space.d.ts +1 -1
- package/dist/source/helpers/resolve_opaque_on_address_space.js +1 -1
- package/dist/source/helpers/resolve_opaque_on_address_space.js.map +1 -1
- package/dist/source/index.d.ts +38 -38
- package/dist/source/index.js +53 -54
- package/dist/source/index.js.map +1 -1
- package/dist/source/interfaces/alarms_and_conditions/condition_info_i.d.ts +3 -3
- package/dist/source/interfaces/alarms_and_conditions/condition_snapshot.d.ts +11 -11
- package/dist/source/interfaces/alarms_and_conditions/deviation_stuff.d.ts +6 -6
- package/dist/source/interfaces/alarms_and_conditions/install_setpoint_options.d.ts +3 -3
- package/dist/source/interfaces/alarms_and_conditions/instantiate_alarm_condition_options.d.ts +4 -4
- package/dist/source/interfaces/alarms_and_conditions/instantiate_condition_options.d.ts +2 -2
- package/dist/source/interfaces/alarms_and_conditions/instantiate_exclusive_deviation_alarm_options.d.ts +2 -2
- package/dist/source/interfaces/alarms_and_conditions/instantiate_exclusive_limit_alarm_options.d.ts +2 -2
- package/dist/source/interfaces/alarms_and_conditions/instantiate_limit_alarm_options.d.ts +4 -3
- package/dist/source/interfaces/alarms_and_conditions/instantiate_non_exclusive_deviation_alarm_options.d.ts +2 -2
- package/dist/source/interfaces/alarms_and_conditions/instantiate_non_exclusive_limit_alarm_options.d.ts +2 -2
- package/dist/source/interfaces/alarms_and_conditions/instantiate_off_normal_alarm_options.d.ts +3 -3
- package/dist/source/interfaces/alarms_and_conditions/ua_acknowledgeable_condition_ex.d.ts +10 -13
- package/dist/source/interfaces/alarms_and_conditions/ua_alarm_condition_ex.d.ts +11 -11
- package/dist/source/interfaces/alarms_and_conditions/ua_base_event_ex.d.ts +11 -0
- package/dist/source/interfaces/alarms_and_conditions/ua_base_event_ex.js +3 -0
- package/dist/source/interfaces/alarms_and_conditions/ua_base_event_ex.js.map +1 -0
- package/dist/source/interfaces/alarms_and_conditions/ua_certificate_expiration_alarm_ex.d.ts +5 -5
- package/dist/source/interfaces/alarms_and_conditions/ua_condition_ex.d.ts +21 -29
- package/dist/source/interfaces/alarms_and_conditions/ua_discrete_alarm_ex.d.ts +3 -7
- package/dist/source/interfaces/alarms_and_conditions/ua_discrete_alarm_ex.js +0 -23
- package/dist/source/interfaces/alarms_and_conditions/ua_discrete_alarm_ex.js.map +1 -1
- package/dist/source/interfaces/alarms_and_conditions/ua_exclusive_deviation_alarm_ex.d.ts +3 -3
- package/dist/source/interfaces/alarms_and_conditions/ua_exclusive_limit_alarm_ex.d.ts +8 -10
- package/dist/source/interfaces/alarms_and_conditions/ua_limit_alarm_ex.d.ts +4 -6
- package/dist/source/interfaces/alarms_and_conditions/ua_non_exclusive_deviation_alarm_ex.d.ts +5 -5
- package/dist/source/interfaces/alarms_and_conditions/ua_non_exclusive_limit_alarm_ex.d.ts +3 -3
- package/dist/source/interfaces/data_access/ua_multistate_discrete_ex.d.ts +7 -7
- package/dist/source/interfaces/data_access/ua_multistate_value_discrete_ex.d.ts +5 -8
- package/dist/source/interfaces/data_access/ua_two_state_discrete_ex.d.ts +5 -5
- package/dist/source/interfaces/data_access/ua_y_array_item_ex.d.ts +3 -3
- package/dist/source/interfaces/extension_object_constructor.d.ts +3 -3
- package/dist/source/interfaces/state_machine/ua_exclusive_limit_state_machine_type_ex.d.ts +3 -3
- package/dist/source/interfaces/state_machine/ua_finite_state_machine_type.d.ts +2 -2
- package/dist/source/interfaces/state_machine/ua_program_state_machine_type.d.ts +3 -3
- package/dist/source/interfaces/state_machine/ua_shelved_state_machine_ex.d.ts +6 -6
- package/dist/source/interfaces/state_machine/ua_state_machine_type.d.ts +7 -6
- package/dist/source/interfaces/state_machine/ua_state_machine_type.js +4 -0
- package/dist/source/interfaces/state_machine/ua_state_machine_type.js.map +1 -1
- package/dist/source/interfaces/state_machine/ua_transition_ex.d.ts +2 -2
- package/dist/source/interfaces/ua_subscription_diagnostics_variable_ex.d.ts +2 -2
- package/dist/source/interfaces/ua_subscription_diagnostics_variable_ex.js +3 -0
- package/dist/source/interfaces/ua_subscription_diagnostics_variable_ex.js.map +1 -1
- package/dist/source/loader/decode_xml_extension_object.d.ts +4 -4
- package/dist/source/loader/decode_xml_extension_object.js +3 -3
- package/dist/source/loader/decode_xml_extension_object.js.map +1 -1
- package/dist/source/loader/ensure_datatype_extracted.d.ts +2 -2
- package/dist/source/loader/ensure_datatype_extracted.js +5 -5
- package/dist/source/loader/ensure_datatype_extracted.js.map +1 -1
- package/dist/source/loader/generateAddressSpaceRaw.d.ts +3 -3
- package/dist/source/loader/generateAddressSpaceRaw.js +6 -6
- package/dist/source/loader/generateAddressSpaceRaw.js.map +1 -1
- package/dist/source/loader/load_nodeset2.js.map +1 -1
- package/dist/source/loader/make_xml_extension_object_parser.d.ts +2 -2
- package/dist/source/loader/make_xml_extension_object_parser.js +19 -19
- package/dist/source/loader/make_xml_extension_object_parser.js.map +1 -1
- package/dist/source/loader/namespace_post_step.d.ts +1 -1
- package/dist/source/loader/namespace_post_step.js.map +1 -1
- package/dist/source/loader/parsers/extension_object_parser.d.ts +4 -4
- package/dist/source/loader/parsers/extension_object_parser.js +22 -23
- package/dist/source/loader/parsers/extension_object_parser.js.map +1 -1
- package/dist/source/loader/parsers/localized_text_parser.d.ts +2 -2
- package/dist/source/loader/parsers/localized_text_parser.js.map +1 -1
- package/dist/source/loader/parsers/nodeid_parser.d.ts +1 -1
- package/dist/source/loader/parsers/nodeid_parser.js.map +1 -1
- package/dist/source/loader/parsers/qualified_name_parser.d.ts +3 -3
- package/dist/source/loader/parsers/qualified_name_parser.js.map +1 -1
- package/dist/source/loader/parsers/variant_parser.d.ts +5 -5
- package/dist/source/loader/parsers/variant_parser.js +13 -13
- package/dist/source/loader/parsers/variant_parser.js.map +1 -1
- package/dist/source/loader/register_node_promoter.d.ts +1 -1
- package/dist/source/loader/register_node_promoter.js.map +1 -1
- package/dist/source/namespace.d.ts +4 -4
- package/dist/source/namespace_alarm_and_condition.d.ts +22 -21
- package/dist/source/namespace_data_access.d.ts +11 -11
- package/dist/source/namespace_machine_state.d.ts +4 -4
- package/dist/source/pseudo_session.d.ts +8 -5
- package/dist/source/pseudo_session.js +28 -28
- package/dist/source/pseudo_session.js.map +1 -1
- package/dist/source/session_context.js +1 -1
- package/dist/source/session_context.js.map +1 -1
- package/dist/source/set_namespace_meta_data.d.ts +1 -1
- package/dist/source/set_namespace_meta_data.js +1 -1
- package/dist/source/set_namespace_meta_data.js.map +1 -1
- package/dist/source/ua_addin.d.ts +3 -3
- package/dist/source/ua_addin.js +1 -1
- package/dist/source/ua_addin.js.map +1 -1
- package/dist/source/ua_interface.d.ts +2 -3
- package/dist/source/ua_interface.js +13 -33
- package/dist/source/ua_interface.js.map +1 -1
- package/dist/source/ua_root_folder.d.ts +1 -1
- package/dist/source/ua_two_state_variable_ex.d.ts +5 -5
- package/dist/src/_instantiate_helpers.d.ts +1 -1
- package/dist/src/_instantiate_helpers.js +32 -9
- package/dist/src/_instantiate_helpers.js.map +1 -1
- package/dist/src/_mandatory_child_or_requested_optional_filter.d.ts +2 -2
- package/dist/src/_mandatory_child_or_requested_optional_filter.js +9 -10
- package/dist/src/_mandatory_child_or_requested_optional_filter.js.map +1 -1
- package/dist/src/address_space.d.ts +2 -2
- package/dist/src/address_space.js +13 -15
- package/dist/src/address_space.js.map +1 -1
- package/dist/src/address_space_change_event_tools.d.ts +3 -3
- package/dist/src/address_space_change_event_tools.js +8 -10
- package/dist/src/address_space_change_event_tools.js.map +1 -1
- package/dist/src/address_space_private.d.ts +11 -11
- package/dist/src/address_space_private.js +3 -0
- package/dist/src/address_space_private.js.map +1 -1
- package/dist/src/alarms_and_conditions/condition.js.map +1 -1
- package/dist/src/alarms_and_conditions/condition_info_impl.d.ts +6 -6
- package/dist/src/alarms_and_conditions/condition_info_impl.js +6 -15
- package/dist/src/alarms_and_conditions/condition_info_impl.js.map +1 -1
- package/dist/src/alarms_and_conditions/condition_snapshot_impl.d.ts +10 -10
- package/dist/src/alarms_and_conditions/condition_snapshot_impl.js +77 -48
- package/dist/src/alarms_and_conditions/condition_snapshot_impl.js.map +1 -1
- package/dist/src/alarms_and_conditions/deviation_alarm_helper.d.ts +8 -5
- package/dist/src/alarms_and_conditions/deviation_alarm_helper.js +15 -9
- package/dist/src/alarms_and_conditions/deviation_alarm_helper.js.map +1 -1
- package/dist/src/alarms_and_conditions/index.d.ts +3 -3
- package/dist/src/alarms_and_conditions/index.js +3 -3
- package/dist/src/alarms_and_conditions/index.js.map +1 -1
- package/dist/src/alarms_and_conditions/ua_acknowledgeable_condition_impl.d.ts +21 -14
- package/dist/src/alarms_and_conditions/ua_acknowledgeable_condition_impl.js +26 -21
- package/dist/src/alarms_and_conditions/ua_acknowledgeable_condition_impl.js.map +1 -1
- package/dist/src/alarms_and_conditions/ua_alarm_condition_impl.d.ts +6 -7
- package/dist/src/alarms_and_conditions/ua_alarm_condition_impl.js +30 -28
- package/dist/src/alarms_and_conditions/ua_alarm_condition_impl.js.map +1 -1
- package/dist/src/alarms_and_conditions/ua_base_event_impl.d.ts +9 -11
- package/dist/src/alarms_and_conditions/ua_base_event_impl.js +10 -10
- package/dist/src/alarms_and_conditions/ua_base_event_impl.js.map +1 -1
- package/dist/src/alarms_and_conditions/ua_certificate_expiration_alarm_impl.d.ts +3 -1
- package/dist/src/alarms_and_conditions/ua_certificate_expiration_alarm_impl.js +6 -5
- package/dist/src/alarms_and_conditions/ua_certificate_expiration_alarm_impl.js.map +1 -1
- package/dist/src/alarms_and_conditions/ua_condition_impl.d.ts +16 -42
- package/dist/src/alarms_and_conditions/ua_condition_impl.js +100 -82
- package/dist/src/alarms_and_conditions/ua_condition_impl.js.map +1 -1
- package/dist/src/alarms_and_conditions/ua_discrete_alarm_impl.d.ts +12 -7
- package/dist/src/alarms_and_conditions/ua_discrete_alarm_impl.js +9 -8
- package/dist/src/alarms_and_conditions/ua_discrete_alarm_impl.js.map +1 -1
- package/dist/src/alarms_and_conditions/ua_exclusive_deviation_alarm_impl.d.ts +18 -18
- package/dist/src/alarms_and_conditions/ua_exclusive_deviation_alarm_impl.js +16 -18
- package/dist/src/alarms_and_conditions/ua_exclusive_deviation_alarm_impl.js.map +1 -1
- package/dist/src/alarms_and_conditions/ua_exclusive_level_alarm_impl.d.ts +4 -4
- package/dist/src/alarms_and_conditions/ua_exclusive_level_alarm_impl.js +2 -2
- package/dist/src/alarms_and_conditions/ua_exclusive_level_alarm_impl.js.map +1 -1
- package/dist/src/alarms_and_conditions/ua_exclusive_limit_alarm_impl.d.ts +10 -9
- package/dist/src/alarms_and_conditions/ua_exclusive_limit_alarm_impl.js +20 -19
- package/dist/src/alarms_and_conditions/ua_exclusive_limit_alarm_impl.js.map +1 -1
- package/dist/src/alarms_and_conditions/ua_exclusive_rate_of_change_alarm_impl.d.ts +2 -4
- package/dist/src/alarms_and_conditions/ua_exclusive_rate_of_change_alarm_impl.js.map +1 -1
- package/dist/src/alarms_and_conditions/ua_limit_alarm_impl.d.ts +12 -38
- package/dist/src/alarms_and_conditions/ua_limit_alarm_impl.js +50 -65
- package/dist/src/alarms_and_conditions/ua_limit_alarm_impl.js.map +1 -1
- package/dist/src/alarms_and_conditions/ua_non_exclusive_deviation_alarm_impl.d.ts +15 -17
- package/dist/src/alarms_and_conditions/ua_non_exclusive_deviation_alarm_impl.js +15 -11
- package/dist/src/alarms_and_conditions/ua_non_exclusive_deviation_alarm_impl.js.map +1 -1
- package/dist/src/alarms_and_conditions/ua_non_exclusive_limit_alarm_impl.d.ts +22 -15
- package/dist/src/alarms_and_conditions/ua_non_exclusive_limit_alarm_impl.js +35 -24
- package/dist/src/alarms_and_conditions/ua_non_exclusive_limit_alarm_impl.js.map +1 -1
- package/dist/src/alarms_and_conditions/ua_off_normal_alarm_impl.d.ts +15 -16
- package/dist/src/alarms_and_conditions/ua_off_normal_alarm_impl.js +19 -14
- package/dist/src/alarms_and_conditions/ua_off_normal_alarm_impl.js.map +1 -1
- package/dist/src/alarms_and_conditions/ua_system_off_normal_alarm_impl.d.ts +4 -4
- package/dist/src/alarms_and_conditions/ua_system_off_normal_alarm_impl.js +1 -1
- package/dist/src/alarms_and_conditions/ua_system_off_normal_alarm_impl.js.map +1 -1
- package/dist/src/apply_condition_refresh.d.ts +4 -4
- package/dist/src/apply_condition_refresh.js +1 -1
- package/dist/src/apply_condition_refresh.js.map +1 -1
- package/dist/src/base_node_impl.d.ts +5 -7
- package/dist/src/base_node_impl.js +3 -3
- package/dist/src/base_node_impl.js.map +1 -1
- package/dist/src/base_node_private.d.ts +10 -7
- package/dist/src/base_node_private.js +73 -50
- package/dist/src/base_node_private.js.map +1 -1
- package/dist/src/check_value_rank_compatibility.js +11 -7
- package/dist/src/check_value_rank_compatibility.js.map +1 -1
- package/dist/src/data_access/add_dataItem_stuff.d.ts +1 -1
- package/dist/src/data_access/add_dataItem_stuff.js +2 -22
- package/dist/src/data_access/add_dataItem_stuff.js.map +1 -1
- package/dist/src/data_access/adjust_datavalue_status_code.d.ts +6 -3
- package/dist/src/data_access/adjust_datavalue_status_code.js +3 -3
- package/dist/src/data_access/adjust_datavalue_status_code.js.map +1 -1
- package/dist/src/data_access/ua_multistate_discrete_impl.d.ts +13 -11
- package/dist/src/data_access/ua_multistate_discrete_impl.js +28 -23
- package/dist/src/data_access/ua_multistate_discrete_impl.js.map +1 -1
- package/dist/src/data_access/ua_multistate_value_discrete_impl.d.ts +19 -23
- package/dist/src/data_access/ua_multistate_value_discrete_impl.js +31 -31
- package/dist/src/data_access/ua_multistate_value_discrete_impl.js.map +1 -1
- package/dist/src/data_access/ua_two_state_discrete_impl.d.ts +10 -16
- package/dist/src/data_access/ua_two_state_discrete_impl.js +18 -14
- package/dist/src/data_access/ua_two_state_discrete_impl.js.map +1 -1
- package/dist/src/event_data.d.ts +8 -21
- package/dist/src/event_data.js +24 -19
- package/dist/src/event_data.js.map +1 -1
- package/dist/src/extension_object_array_node.d.ts +5 -2
- package/dist/src/extension_object_array_node.js +21 -24
- package/dist/src/extension_object_array_node.js.map +1 -1
- package/dist/src/get_basic_datatype.d.ts +2 -2
- package/dist/src/get_basic_datatype.js.map +1 -1
- package/dist/src/historical_access/address_space_historical_data_node.d.ts +3 -3
- package/dist/src/historical_access/address_space_historical_data_node.js +24 -17
- package/dist/src/historical_access/address_space_historical_data_node.js.map +1 -1
- package/dist/src/idx_iterator.js +1 -1
- package/dist/src/idx_iterator.js.map +1 -1
- package/dist/src/index_current.d.ts +31 -31
- package/dist/src/index_current.js +45 -45
- package/dist/src/index_current.js.map +1 -1
- package/dist/src/namespace_impl.d.ts +4 -3
- package/dist/src/namespace_impl.js +17 -14
- package/dist/src/namespace_impl.js.map +1 -1
- package/dist/src/namespace_private.js.map +1 -1
- package/dist/src/nodeid_manager.d.ts +3 -3
- package/dist/src/nodeid_manager.js +19 -16
- package/dist/src/nodeid_manager.js.map +1 -1
- package/dist/src/nodeset_tools/adjust_namespace_array.d.ts +1 -1
- package/dist/src/nodeset_tools/construct_namespace_dependency.d.ts +2 -2
- package/dist/src/nodeset_tools/construct_namespace_dependency.js +7 -7
- package/dist/src/nodeset_tools/construct_namespace_dependency.js.map +1 -1
- package/dist/src/nodeset_tools/dump_to_bsd.d.ts +1 -1
- package/dist/src/nodeset_tools/dump_to_bsd.js +15 -11
- package/dist/src/nodeset_tools/dump_to_bsd.js.map +1 -1
- package/dist/src/nodeset_tools/nodeset_to_xml.d.ts +5 -3
- package/dist/src/nodeset_tools/nodeset_to_xml.js +64 -67
- package/dist/src/nodeset_tools/nodeset_to_xml.js.map +1 -1
- package/dist/src/private_namespace.d.ts +2 -2
- package/dist/src/private_namespace.js.map +1 -1
- package/dist/src/reference_impl.d.ts +2 -2
- package/dist/src/reference_impl.js +9 -11
- package/dist/src/reference_impl.js.map +1 -1
- package/dist/src/role_permissions.d.ts +1 -1
- package/dist/src/role_permissions.js.map +1 -1
- package/dist/src/state_machine/finite_state_machine.d.ts +11 -14
- package/dist/src/state_machine/finite_state_machine.js +36 -30
- package/dist/src/state_machine/finite_state_machine.js.map +1 -1
- package/dist/src/state_machine/ua_shelving_state_machine_ex.d.ts +8 -6
- package/dist/src/state_machine/ua_shelving_state_machine_ex.js +16 -18
- package/dist/src/state_machine/ua_shelving_state_machine_ex.js.map +1 -1
- package/dist/src/state_machine/ua_two_state_variable.d.ts +12 -11
- package/dist/src/state_machine/ua_two_state_variable.js +24 -29
- package/dist/src/state_machine/ua_two_state_variable.js.map +1 -1
- package/dist/src/tool_isSubtypeOf.d.ts +5 -5
- package/dist/src/tool_isSubtypeOf.js +21 -18
- package/dist/src/tool_isSubtypeOf.js.map +1 -1
- package/dist/src/ua_condition_type.d.ts +1 -1
- package/dist/src/ua_data_type_impl.js.map +1 -1
- package/dist/src/ua_method_impl.d.ts +9 -5
- package/dist/src/ua_method_impl.js +1 -1
- package/dist/src/ua_method_impl.js.map +1 -1
- package/dist/src/ua_object_impl.d.ts +10 -7
- package/dist/src/ua_object_impl.js +43 -15
- package/dist/src/ua_object_impl.js.map +1 -1
- package/dist/src/ua_object_type_impl.d.ts +7 -5
- package/dist/src/ua_object_type_impl.js +6 -7
- package/dist/src/ua_object_type_impl.js.map +1 -1
- package/dist/src/ua_reference_type_impl.d.ts +6 -8
- package/dist/src/ua_reference_type_impl.js +16 -14
- package/dist/src/ua_reference_type_impl.js.map +1 -1
- package/dist/src/ua_variable_impl.d.ts +44 -45
- package/dist/src/ua_variable_impl.js +177 -83
- package/dist/src/ua_variable_impl.js.map +1 -1
- package/dist/src/ua_variable_impl_ext_obj.d.ts +3 -3
- package/dist/src/ua_variable_impl_ext_obj.js +37 -29
- package/dist/src/ua_variable_impl_ext_obj.js.map +1 -1
- package/dist/src/ua_variable_type_impl.d.ts +11 -11
- package/dist/src/ua_variable_type_impl.js +13 -21
- package/dist/src/ua_variable_type_impl.js.map +1 -1
- package/dist/src/ua_view_impl.d.ts +3 -4
- package/dist/src/ua_view_impl.js +5 -6
- package/dist/src/ua_view_impl.js.map +1 -1
- package/dist/src/validate_data_type_correctness.d.ts +2 -2
- package/dist/src/validate_data_type_correctness.js +12 -3
- package/dist/src/validate_data_type_correctness.js.map +1 -1
- package/dist/tsconfig_base.tsbuildinfo +1 -1
- package/distHelpers/add_event_generator_object.d.ts +5 -2
- package/distHelpers/add_event_generator_object.js +2 -2
- package/distHelpers/add_event_generator_object.js.map +1 -1
- package/distHelpers/alarms_and_conditions_demo.d.ts +1 -1
- package/distHelpers/alarms_and_conditions_demo.js +4 -6
- package/distHelpers/alarms_and_conditions_demo.js.map +1 -1
- package/distHelpers/assertHasMatchingReference.d.ts +1 -1
- package/distHelpers/assertHasMatchingReference.js +2 -2
- package/distHelpers/assertHasMatchingReference.js.map +1 -1
- package/distHelpers/boiler_system.d.ts +6 -3
- package/distHelpers/boiler_system.js +44 -42
- package/distHelpers/boiler_system.js.map +1 -1
- package/distHelpers/create_minimalist_address_space_nodeset.d.ts +1 -1
- package/distHelpers/create_minimalist_address_space_nodeset.js +25 -27
- package/distHelpers/create_minimalist_address_space_nodeset.js.map +1 -1
- package/distHelpers/get_address_space_fixture.js +15 -15
- package/distHelpers/get_address_space_fixture.js.map +1 -1
- package/distHelpers/index.d.ts +2 -2
- package/distHelpers/index.js +2 -2
- package/distHelpers/index.js.map +1 -1
- package/distHelpers/mock_session.d.ts +7 -7
- package/distHelpers/mock_session.js +4 -4
- package/distHelpers/mock_session.js.map +1 -1
- package/distNodeJS/generate_address_space.d.ts +2 -2
- package/distNodeJS/generate_address_space.js +2 -2
- package/distNodeJS/generate_address_space.js.map +1 -1
- package/package.json +36 -36
- package/source/address_space_ts.ts +29 -30
- package/source/continuation_points/continuation_point_manager.ts +8 -7
- package/source/helpers/adjust_browse_direction.ts +1 -1
- package/source/helpers/argument_list.ts +37 -25
- package/source/helpers/call_helpers.ts +10 -15
- package/source/helpers/coerce_enum_value.ts +4 -4
- package/source/helpers/dump_tools.ts +6 -11
- package/source/helpers/ensure_secure_access.ts +2 -2
- package/source/helpers/make_optionals_map.ts +3 -10
- package/source/helpers/multiform_func.ts +1 -1
- package/source/helpers/resolve_opaque_on_address_space.ts +2 -2
- package/source/index.ts +44 -54
- package/source/interfaces/alarms_and_conditions/condition_info_i.ts +3 -4
- package/source/interfaces/alarms_and_conditions/condition_snapshot.ts +13 -13
- package/source/interfaces/alarms_and_conditions/deviation_stuff.ts +8 -10
- package/source/interfaces/alarms_and_conditions/install_setpoint_options.ts +4 -5
- package/source/interfaces/alarms_and_conditions/instantiate_alarm_condition_options.ts +4 -6
- package/source/interfaces/alarms_and_conditions/instantiate_condition_options.ts +3 -3
- package/source/interfaces/alarms_and_conditions/instantiate_exclusive_deviation_alarm_options.ts +2 -2
- package/source/interfaces/alarms_and_conditions/instantiate_exclusive_limit_alarm_options.ts +2 -2
- package/source/interfaces/alarms_and_conditions/instantiate_limit_alarm_options.ts +6 -3
- package/source/interfaces/alarms_and_conditions/instantiate_non_exclusive_deviation_alarm_options.ts +2 -2
- package/source/interfaces/alarms_and_conditions/instantiate_non_exclusive_limit_alarm_options.ts +2 -2
- package/source/interfaces/alarms_and_conditions/instantiate_off_normal_alarm_options.ts +11 -11
- package/source/interfaces/alarms_and_conditions/ua_acknowledgeable_condition_ex.ts +11 -25
- package/source/interfaces/alarms_and_conditions/ua_alarm_condition_ex.ts +16 -13
- package/source/interfaces/alarms_and_conditions/ua_base_event_ex.ts +12 -0
- package/source/interfaces/alarms_and_conditions/ua_certificate_expiration_alarm_ex.ts +5 -5
- package/source/interfaces/alarms_and_conditions/ua_condition_ex.ts +30 -54
- package/source/interfaces/alarms_and_conditions/ua_discrete_alarm_ex.ts +3 -34
- package/source/interfaces/alarms_and_conditions/ua_exclusive_deviation_alarm_ex.ts +18 -22
- package/source/interfaces/alarms_and_conditions/ua_exclusive_limit_alarm_ex.ts +8 -15
- package/source/interfaces/alarms_and_conditions/ua_limit_alarm_ex.ts +4 -7
- package/source/interfaces/alarms_and_conditions/ua_non_exclusive_deviation_alarm_ex.ts +5 -6
- package/source/interfaces/alarms_and_conditions/ua_non_exclusive_limit_alarm_ex.ts +3 -3
- package/source/interfaces/data_access/ua_multistate_discrete_ex.ts +9 -16
- package/source/interfaces/data_access/ua_multistate_value_discrete_ex.ts +5 -8
- package/source/interfaces/data_access/ua_two_state_discrete_ex.ts +5 -5
- package/source/interfaces/data_access/ua_y_array_item_ex.ts +3 -3
- package/source/interfaces/extension_object_constructor.ts +3 -4
- package/source/interfaces/i_condition_variable_type_setter_options.ts +1 -3
- package/source/interfaces/state_machine/ua_exclusive_limit_state_machine_type_ex.ts +3 -3
- package/source/interfaces/state_machine/ua_finite_state_machine_type.ts +2 -2
- package/source/interfaces/state_machine/ua_program_state_machine_type.ts +3 -3
- package/source/interfaces/state_machine/ua_shelved_state_machine_ex.ts +10 -7
- package/source/interfaces/state_machine/ua_state_machine_type.ts +11 -8
- package/source/interfaces/state_machine/ua_transition_ex.ts +2 -2
- package/source/interfaces/ua_subscription_diagnostics_variable_ex.ts +3 -2
- package/source/loader/decode_xml_extension_object.ts +7 -7
- package/source/loader/ensure_datatype_extracted.ts +14 -19
- package/source/loader/generateAddressSpaceRaw.ts +12 -13
- package/source/loader/load_nodeset2.ts +3 -3
- package/source/loader/make_xml_extension_object_parser.ts +55 -39
- package/source/loader/namespace_post_step.ts +3 -4
- package/source/loader/parsers/extension_object_parser.ts +63 -62
- package/source/loader/parsers/localized_text_parser.ts +3 -3
- package/source/loader/parsers/nodeid_parser.ts +2 -3
- package/source/loader/parsers/qualified_name_parser.ts +6 -7
- package/source/loader/parsers/variant_parser.ts +48 -55
- package/source/loader/register_node_promoter.ts +2 -2
- package/source/namespace.ts +4 -4
- package/source/namespace_alarm_and_condition.ts +22 -22
- package/source/namespace_data_access.ts +12 -13
- package/source/namespace_machine_state.ts +10 -5
- package/source/pseudo_session.ts +53 -50
- package/source/session_context.ts +1 -1
- package/source/set_namespace_meta_data.ts +3 -3
- package/source/ua_addin.ts +10 -11
- package/source/ua_interface.ts +27 -38
- package/source/ua_root_folder.ts +1 -1
- package/source/ua_two_state_variable_ex.ts +5 -5
- package/source_nodejs/generate_address_space.ts +5 -9
- package/src/_instantiate_helpers.ts +78 -25
- package/src/_mandatory_child_or_requested_optional_filter.ts +20 -19
- package/src/address_space.ts +36 -45
- package/src/address_space_change_event_tools.ts +25 -30
- package/src/address_space_private.ts +20 -21
- package/src/alarms_and_conditions/condition.ts +0 -2
- package/src/alarms_and_conditions/condition_info_impl.ts +11 -19
- package/src/alarms_and_conditions/condition_snapshot_impl.ts +109 -85
- package/src/alarms_and_conditions/deviation_alarm_helper.ts +20 -15
- package/src/alarms_and_conditions/index.ts +3 -3
- package/src/alarms_and_conditions/ua_acknowledgeable_condition_impl.ts +44 -32
- package/src/alarms_and_conditions/ua_alarm_condition_impl.ts +35 -34
- package/src/alarms_and_conditions/ua_base_event_impl.ts +15 -19
- package/src/alarms_and_conditions/ua_certificate_expiration_alarm_impl.ts +6 -2
- package/src/alarms_and_conditions/ua_condition_impl.ts +140 -130
- package/src/alarms_and_conditions/ua_discrete_alarm_impl.ts +20 -12
- package/src/alarms_and_conditions/ua_exclusive_deviation_alarm_impl.ts +40 -43
- package/src/alarms_and_conditions/ua_exclusive_level_alarm_impl.ts +7 -7
- package/src/alarms_and_conditions/ua_exclusive_limit_alarm_impl.ts +28 -30
- package/src/alarms_and_conditions/ua_exclusive_rate_of_change_alarm_impl.ts +3 -6
- package/src/alarms_and_conditions/ua_limit_alarm_impl.ts +59 -90
- package/src/alarms_and_conditions/ua_non_exclusive_deviation_alarm_impl.ts +31 -27
- package/src/alarms_and_conditions/ua_non_exclusive_limit_alarm_impl.ts +57 -36
- package/src/alarms_and_conditions/ua_off_normal_alarm_impl.ts +31 -27
- package/src/alarms_and_conditions/ua_system_off_normal_alarm_impl.ts +6 -6
- package/src/apply_condition_refresh.ts +7 -8
- package/src/base_node_impl.ts +64 -45
- package/src/base_node_private.ts +171 -139
- package/src/check_value_rank_compatibility.ts +19 -15
- package/src/data_access/add_dataItem_stuff.ts +3 -4
- package/src/data_access/adjust_datavalue_status_code.ts +7 -7
- package/src/data_access/ua_multistate_discrete_impl.ts +44 -28
- package/src/data_access/ua_multistate_value_discrete_impl.ts +77 -66
- package/src/data_access/ua_two_state_discrete_impl.ts +29 -36
- package/src/event_data.ts +29 -26
- package/src/extension_object_array_node.ts +27 -28
- package/src/get_basic_datatype.ts +4 -5
- package/src/historical_access/address_space_historical_data_node.ts +65 -50
- package/src/idx_iterator.ts +4 -12
- package/src/index_current.ts +33 -45
- package/src/namespace_impl.ts +75 -62
- package/src/namespace_private.ts +2 -8
- package/src/nodeid_manager.ts +30 -27
- package/src/nodeset_tools/adjust_namespace_array.ts +1 -1
- package/src/nodeset_tools/construct_namespace_dependency.ts +15 -16
- package/src/nodeset_tools/dump_to_bsd.ts +27 -22
- package/src/nodeset_tools/nodeset_to_xml.ts +95 -114
- package/src/private_namespace.ts +3 -6
- package/src/reference_impl.ts +11 -14
- package/src/role_permissions.ts +1 -1
- package/src/state_machine/finite_state_machine.ts +60 -61
- package/src/state_machine/ua_shelving_state_machine_ex.ts +23 -23
- package/src/state_machine/ua_two_state_variable.ts +34 -31
- package/src/tool_isSubtypeOf.ts +48 -33
- package/src/ua_condition_type.ts +1 -1
- package/src/ua_data_type_impl.ts +12 -13
- package/src/ua_method_impl.ts +17 -12
- package/src/ua_object_impl.ts +73 -39
- package/src/ua_object_type_impl.ts +25 -25
- package/src/ua_reference_type_impl.ts +19 -19
- package/src/ua_variable_impl.ts +316 -219
- package/src/ua_variable_impl_ext_obj.ts +63 -50
- package/src/ua_variable_type_impl.ts +43 -49
- package/src/ua_view_impl.ts +5 -5
- package/src/validate_data_type_correctness.ts +17 -8
package/src/index_current.ts
CHANGED
|
@@ -1,63 +1,51 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module node-opcua-address-space
|
|
3
3
|
*/
|
|
4
|
-
|
|
5
|
-
export * from "
|
|
6
|
-
export
|
|
4
|
+
|
|
5
|
+
export * from "node-opcua-nodeset-ua";
|
|
6
|
+
export { ContinuationPointManager } from "../source/continuation_points/continuation_point_manager";
|
|
7
7
|
export * from "../source/helpers/adjust_browse_direction";
|
|
8
|
-
export * from "../source/pseudo_session";
|
|
9
|
-
export * from "../source/helpers/make_optionals_map";
|
|
10
8
|
export * from "../source/helpers/argument_list";
|
|
11
9
|
export * from "../source/helpers/call_helpers";
|
|
10
|
+
export * from "../source/helpers/dump_tools";
|
|
12
11
|
export * from "../source/helpers/ensure_secure_access";
|
|
12
|
+
export * from "../source/helpers/make_optionals_map";
|
|
13
13
|
export * from "../source/helpers/resolve_opaque_on_address_space";
|
|
14
14
|
export * from "../source/interfaces/alarms_and_conditions/condition_info_i";
|
|
15
|
-
export * from "../source/interfaces/nodeset_loader_options"
|
|
16
|
-
export * from "../
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
export * from "../source/set_namespace_meta_data";
|
|
20
|
-
export * from "../source/namespace";
|
|
21
|
-
export * from "../source/namespace_data_access";
|
|
22
|
-
export * from "../source/namespace_machine_state"
|
|
23
|
-
export * from "../source/namespace_alarm_and_condition";
|
|
24
|
-
|
|
15
|
+
export * from "../source/interfaces/nodeset_loader_options";
|
|
16
|
+
export * from "../source/interfaces/state_machine/ua_transition_ex";
|
|
25
17
|
export { ensureDatatypeExtracted, ensureDatatypeExtractedWithCallback } from "../source/loader/ensure_datatype_extracted";
|
|
26
|
-
|
|
27
18
|
export * from "../source/loader/generateAddressSpaceRaw";
|
|
28
19
|
export * from "../source/loader/register_node_promoter";
|
|
29
|
-
|
|
30
|
-
export
|
|
31
|
-
|
|
32
|
-
export
|
|
33
|
-
export * from "../source/
|
|
34
|
-
|
|
35
|
-
export * from "
|
|
36
|
-
export * from "
|
|
37
|
-
export * from "
|
|
38
|
-
|
|
39
|
-
export
|
|
40
|
-
export * from "
|
|
41
|
-
export
|
|
42
|
-
export {
|
|
20
|
+
export * from "../source/namespace";
|
|
21
|
+
export * from "../source/namespace_alarm_and_condition";
|
|
22
|
+
export * from "../source/namespace_data_access";
|
|
23
|
+
export * from "../source/namespace_machine_state";
|
|
24
|
+
export * from "../source/pseudo_session";
|
|
25
|
+
export * from "../source/session_context";
|
|
26
|
+
export * from "../source/set_namespace_meta_data";
|
|
27
|
+
export * from "../source/ua_addin";
|
|
28
|
+
export * from "../source/ua_interface";
|
|
29
|
+
export { NodeIdManager } from "../src/nodeid_manager";
|
|
30
|
+
export * from "../src/nodeset_tools/construct_namespace_dependency";
|
|
31
|
+
export * from "../src/private_namespace";
|
|
32
|
+
export * from "../src/validate_data_type_correctness";
|
|
33
|
+
export { AddressSpace } from "./address_space";
|
|
34
|
+
export * from "./alarms_and_conditions";
|
|
43
35
|
export { makeAttributeEventName } from "./base_node_impl";
|
|
44
|
-
export { resolveReferenceNode, resolveReferenceType } from "./reference_impl";
|
|
45
|
-
|
|
46
|
-
export * from "./data_access/adjust_datavalue_status_code";
|
|
47
36
|
export * from "./data_access/add_dataItem_stuff";
|
|
37
|
+
export * from "./data_access/adjust_datavalue_status_code";
|
|
48
38
|
export * from "./data_access/ua_multistate_discrete_impl";
|
|
49
39
|
export * from "./data_access/ua_multistate_value_discrete_impl";
|
|
50
40
|
export * from "./data_access/ua_two_state_discrete_impl";
|
|
51
|
-
|
|
52
|
-
export { VariableHistorian } from "./historical_access/address_space_historical_data_node";
|
|
53
|
-
export { NodeIdManager } from "../src/nodeid_manager";
|
|
54
|
-
export * from "../src/private_namespace";
|
|
55
|
-
|
|
56
|
-
export * from "./alarms_and_conditions";
|
|
57
41
|
export * from "./event_data";
|
|
58
|
-
|
|
59
|
-
export * from "
|
|
60
|
-
|
|
61
|
-
export * from "
|
|
62
|
-
export
|
|
63
|
-
export
|
|
42
|
+
export * from "./event_data";
|
|
43
|
+
export * from "./extension_object_array_node";
|
|
44
|
+
export { VariableHistorian } from "./historical_access/address_space_historical_data_node";
|
|
45
|
+
export * from "./namespace_impl";
|
|
46
|
+
export { NamespaceOptions } from "./nodeid_manager";
|
|
47
|
+
export { adjustNamespaceArray } from "./nodeset_tools/adjust_namespace_array";
|
|
48
|
+
export { dumpToBSD } from "./nodeset_tools/dump_to_bsd";
|
|
49
|
+
export * from "./nodeset_tools/nodeset_to_xml";
|
|
50
|
+
export { resolveReferenceNode, resolveReferenceType } from "./reference_impl";
|
|
51
|
+
export { promoteToStateMachine, promoteToStateMachineType } from "./state_machine/finite_state_machine";
|
package/src/namespace_impl.ts
CHANGED
|
@@ -16,6 +16,7 @@ import type {
|
|
|
16
16
|
AddViewOptions,
|
|
17
17
|
AddYArrayItemOptions,
|
|
18
18
|
BaseNode,
|
|
19
|
+
|
|
19
20
|
CreateDataTypeOptions,
|
|
20
21
|
CreateNodeOptions,
|
|
21
22
|
EnumerationItem,
|
|
@@ -74,6 +75,7 @@ import type {
|
|
|
74
75
|
AddTwoStateDiscreteOptions,
|
|
75
76
|
AddTwoStateVariableOptions
|
|
76
77
|
} from "../source/address_space_ts";
|
|
78
|
+
import type { InstantiateConditionOptions } from "../source/interfaces/alarms_and_conditions/instantiate_condition_options";
|
|
77
79
|
import type { InstantiateExclusiveDeviationAlarmOptions } from "../source/interfaces/alarms_and_conditions/instantiate_exclusive_deviation_alarm_options";
|
|
78
80
|
import type { InstantiateNonExclusiveDeviationAlarmOptions } from "../source/interfaces/alarms_and_conditions/instantiate_non_exclusive_deviation_alarm_options";
|
|
79
81
|
import type { InstantiateNonExclusiveLimitAlarmOptions } from "../source/interfaces/alarms_and_conditions/instantiate_non_exclusive_limit_alarm_options";
|
|
@@ -93,15 +95,20 @@ import type { UATwoStateVariableEx } from "../source/ua_two_state_variable_ex";
|
|
|
93
95
|
|
|
94
96
|
import { _handle_delete_node_model_change_event, _handle_model_change_event } from "./address_space_change_event_tools";
|
|
95
97
|
import type { AddressSpacePrivate } from "./address_space_private";
|
|
96
|
-
import {
|
|
97
|
-
|
|
98
|
+
import {
|
|
99
|
+
type UAAcknowledgeableConditionImpl,
|
|
100
|
+
UAAcknowledgeableConditionImplBase,
|
|
101
|
+
UAAlarmConditionImplBase,
|
|
102
|
+
UAConditionImplBase,
|
|
103
|
+
UADiscreteAlarmImplBase
|
|
104
|
+
} from "./alarms_and_conditions";
|
|
98
105
|
import { UADiscreteAlarmImpl } from "./alarms_and_conditions/ua_discrete_alarm_impl";
|
|
99
|
-
import {
|
|
100
|
-
import {
|
|
101
|
-
import {
|
|
102
|
-
import {
|
|
103
|
-
import {
|
|
104
|
-
import { type UAOffNormalAlarmEx,
|
|
106
|
+
import { UAExclusiveDeviationAlarmImplBase } from "./alarms_and_conditions/ua_exclusive_deviation_alarm_impl";
|
|
107
|
+
import { UAExclusiveLimitAlarmImplBase } from "./alarms_and_conditions/ua_exclusive_limit_alarm_impl";
|
|
108
|
+
import { UALimitAlarmImplBase } from "./alarms_and_conditions/ua_limit_alarm_impl";
|
|
109
|
+
import { UANonExclusiveDeviationAlarmImplBase } from "./alarms_and_conditions/ua_non_exclusive_deviation_alarm_impl";
|
|
110
|
+
import { UANonExclusiveLimitAlarmImplBase } from "./alarms_and_conditions/ua_non_exclusive_limit_alarm_impl";
|
|
111
|
+
import { type UAOffNormalAlarmEx, UAOffNormalAlarmImplBase } from "./alarms_and_conditions/ua_off_normal_alarm_impl";
|
|
105
112
|
import { BaseNodeImpl } from "./base_node_impl";
|
|
106
113
|
import { add_dataItem_stuff } from "./data_access/add_dataItem_stuff";
|
|
107
114
|
import { _addMultiStateDiscrete, type UAMultiStateDiscreteImpl } from "./data_access/ua_multistate_discrete_impl";
|
|
@@ -500,7 +507,6 @@ export class NamespaceImpl implements NamespacePrivate {
|
|
|
500
507
|
* add a variable as a component of the parent node
|
|
501
508
|
*/
|
|
502
509
|
public addVariable(options: AddVariableOptions): UAVariable {
|
|
503
|
-
assert(arguments.length === 1, "Invalid arguments IAddressSpace#addVariable now takes only one argument.");
|
|
504
510
|
if (Object.hasOwn(options, "propertyOf") && options.propertyOf) {
|
|
505
511
|
assert(!options.typeDefinition || options.typeDefinition === "PropertyType");
|
|
506
512
|
options.typeDefinition = options.typeDefinition || "PropertyType";
|
|
@@ -572,11 +578,11 @@ export class NamespaceImpl implements NamespacePrivate {
|
|
|
572
578
|
|
|
573
579
|
const addressSpace = this.addressSpace;
|
|
574
580
|
|
|
575
|
-
assert(!(options as
|
|
581
|
+
assert(!(options as CreateNodeOptions).typeDefinition, "addFolder does not expect typeDefinition to be defined ");
|
|
576
582
|
const typeDefinition = addressSpace._coerceTypeDefinition("FolderType");
|
|
577
583
|
parentFolder = addressSpace._coerceFolder(parentFolder) as UAObject;
|
|
578
|
-
(options as
|
|
579
|
-
(options as
|
|
584
|
+
(options as CreateNodeOptions).nodeClass = NodeClass.Object;
|
|
585
|
+
(options as CreateNodeOptions).references = [
|
|
580
586
|
{ referenceType: "HasTypeDefinition", isForward: true, nodeId: typeDefinition },
|
|
581
587
|
{ referenceType: "Organizes", isForward: false, nodeId: parentFolder.nodeId }
|
|
582
588
|
];
|
|
@@ -669,7 +675,7 @@ export class NamespaceImpl implements NamespacePrivate {
|
|
|
669
675
|
* @internal
|
|
670
676
|
*/
|
|
671
677
|
public createNode(options: CreateNodeOptions): BaseNode {
|
|
672
|
-
let node: BaseNode = null as
|
|
678
|
+
let node: BaseNode = null as unknown as BaseNode;
|
|
673
679
|
|
|
674
680
|
const addressSpace = this.addressSpace;
|
|
675
681
|
addressSpace.modelChangeTransaction(() => {
|
|
@@ -712,11 +718,11 @@ export class NamespaceImpl implements NamespacePrivate {
|
|
|
712
718
|
*
|
|
713
719
|
*/
|
|
714
720
|
public deleteNode(nodeOrNodeId: NodeId | BaseNode): void {
|
|
715
|
-
let node:
|
|
721
|
+
let node: BaseNodeImpl | null = null;
|
|
716
722
|
let nodeId: NodeId = new NodeId();
|
|
717
723
|
if (nodeOrNodeId instanceof NodeId) {
|
|
718
724
|
nodeId = nodeOrNodeId;
|
|
719
|
-
node = this.findNode(nodeId);
|
|
725
|
+
node = this.findNode(nodeId) as BaseNodeImpl;
|
|
720
726
|
// c8 ignore next
|
|
721
727
|
if (!node) {
|
|
722
728
|
throw new Error(` deleteNode : cannot find node with nodeId${nodeId.toString()}`);
|
|
@@ -819,7 +825,7 @@ export class NamespaceImpl implements NamespacePrivate {
|
|
|
819
825
|
* });
|
|
820
826
|
*
|
|
821
827
|
*/
|
|
822
|
-
public addEventType(options:
|
|
828
|
+
public addEventType(options: AddObjectTypeOptions): UAObjectType {
|
|
823
829
|
options.subtypeOf = options.subtypeOf || "BaseEventType";
|
|
824
830
|
// are eventType always abstract ?? No => Condition can be instantiated!
|
|
825
831
|
// but, by default is abstract is true
|
|
@@ -899,7 +905,7 @@ export class NamespaceImpl implements NamespacePrivate {
|
|
|
899
905
|
|
|
900
906
|
const clone_options = { ...options, dataType, typeDefinition: analogItemType.nodeId } as AddVariableOptions;
|
|
901
907
|
|
|
902
|
-
const variable = this.addVariable(clone_options) as UAVariableImpl;
|
|
908
|
+
const variable = this.addVariable(clone_options) as unknown as UAVariableImpl;
|
|
903
909
|
|
|
904
910
|
add_dataItem_stuff(variable, options);
|
|
905
911
|
|
|
@@ -925,7 +931,7 @@ export class NamespaceImpl implements NamespacePrivate {
|
|
|
925
931
|
dataType: DataType.ExtensionObject,
|
|
926
932
|
value: new Range(options.engineeringUnitsRange)
|
|
927
933
|
})
|
|
928
|
-
}) as UAVariableImpl;
|
|
934
|
+
}) as unknown as UAVariableImpl;
|
|
929
935
|
|
|
930
936
|
assert(euRange.readValue().value.value instanceof Range);
|
|
931
937
|
|
|
@@ -1084,8 +1090,8 @@ export class NamespaceImpl implements NamespacePrivate {
|
|
|
1084
1090
|
optionals
|
|
1085
1091
|
}) as UAYArrayItemEx<DataType.Float | DataType.Double>;
|
|
1086
1092
|
|
|
1087
|
-
function coerceAxisScale(value:
|
|
1088
|
-
const ret = AxisScaleEnumeration[value];
|
|
1093
|
+
function coerceAxisScale(value: unknown) {
|
|
1094
|
+
const ret = AxisScaleEnumeration[value as keyof typeof AxisScaleEnumeration];
|
|
1089
1095
|
assert(!isNullOrUndefined(ret));
|
|
1090
1096
|
return ret;
|
|
1091
1097
|
}
|
|
@@ -1448,8 +1454,15 @@ export class NamespaceImpl implements NamespacePrivate {
|
|
|
1448
1454
|
|
|
1449
1455
|
assert(_component.nodeClass === NodeClass.Object || _component.nodeClass === NodeClass.ObjectType);
|
|
1450
1456
|
|
|
1451
|
-
const initialStateType = addressSpace.findObjectType("InitialStateType")
|
|
1452
|
-
const stateType = addressSpace.findObjectType("StateType")
|
|
1457
|
+
const initialStateType = addressSpace.findObjectType("InitialStateType");
|
|
1458
|
+
const stateType = addressSpace.findObjectType("StateType");
|
|
1459
|
+
|
|
1460
|
+
if (!initialStateType) {
|
|
1461
|
+
throw new Error("Cannot find InitialStateType");
|
|
1462
|
+
}
|
|
1463
|
+
if (!stateType) {
|
|
1464
|
+
throw new Error("Cannot find StateType");
|
|
1465
|
+
}
|
|
1453
1466
|
|
|
1454
1467
|
let state: UAState | UAInitialState;
|
|
1455
1468
|
if (isInitialState) {
|
|
@@ -1558,10 +1571,10 @@ export class NamespaceImpl implements NamespacePrivate {
|
|
|
1558
1571
|
// --- Alarms & Conditions -------------------------------------------------
|
|
1559
1572
|
public instantiateCondition(
|
|
1560
1573
|
conditionTypeId: UAEventType | NodeId | string,
|
|
1561
|
-
options:
|
|
1574
|
+
options: InstantiateConditionOptions,
|
|
1562
1575
|
data: Record<string, VariantOptions>
|
|
1563
1576
|
): UAConditionEx {
|
|
1564
|
-
return
|
|
1577
|
+
return UAConditionImplBase.instantiate(this, conditionTypeId, options, data);
|
|
1565
1578
|
}
|
|
1566
1579
|
|
|
1567
1580
|
public instantiateAcknowledgeableCondition(
|
|
@@ -1569,7 +1582,7 @@ export class NamespaceImpl implements NamespacePrivate {
|
|
|
1569
1582
|
options: InstantiateAlarmConditionOptions,
|
|
1570
1583
|
data?: Record<string, VariantOptions>
|
|
1571
1584
|
): UAAcknowledgeableConditionImpl {
|
|
1572
|
-
return
|
|
1585
|
+
return UAAcknowledgeableConditionImplBase.instantiate(this, conditionTypeId, options, data);
|
|
1573
1586
|
}
|
|
1574
1587
|
|
|
1575
1588
|
public instantiateAlarmCondition(
|
|
@@ -1577,7 +1590,7 @@ export class NamespaceImpl implements NamespacePrivate {
|
|
|
1577
1590
|
options: InstantiateAlarmConditionOptions,
|
|
1578
1591
|
data?: Record<string, VariantOptions>
|
|
1579
1592
|
): UAAlarmConditionEx {
|
|
1580
|
-
return
|
|
1593
|
+
return UAAlarmConditionImplBase.instantiate(this, alarmConditionTypeId, options, data);
|
|
1581
1594
|
}
|
|
1582
1595
|
|
|
1583
1596
|
public instantiateLimitAlarm(
|
|
@@ -1585,7 +1598,7 @@ export class NamespaceImpl implements NamespacePrivate {
|
|
|
1585
1598
|
options: InstantiateLimitAlarmOptions,
|
|
1586
1599
|
data?: Record<string, VariantOptions>
|
|
1587
1600
|
): UALimitAlarmEx {
|
|
1588
|
-
return
|
|
1601
|
+
return UALimitAlarmImplBase.instantiate(this, limitAlarmTypeId, options, data);
|
|
1589
1602
|
}
|
|
1590
1603
|
|
|
1591
1604
|
public instantiateExclusiveLimitAlarm(
|
|
@@ -1593,14 +1606,14 @@ export class NamespaceImpl implements NamespacePrivate {
|
|
|
1593
1606
|
options: InstantiateLimitAlarmOptions,
|
|
1594
1607
|
data?: Record<string, VariantOptions>
|
|
1595
1608
|
): UAExclusiveLimitAlarmEx {
|
|
1596
|
-
return
|
|
1609
|
+
return UAExclusiveLimitAlarmImplBase.instantiate(this, exclusiveLimitAlarmTypeId, options, data);
|
|
1597
1610
|
}
|
|
1598
1611
|
|
|
1599
1612
|
public instantiateExclusiveDeviationAlarm(
|
|
1600
1613
|
options: InstantiateExclusiveDeviationAlarmOptions,
|
|
1601
1614
|
data?: Record<string, VariantOptions>
|
|
1602
1615
|
): UAExclusiveDeviationAlarmEx {
|
|
1603
|
-
return
|
|
1616
|
+
return UAExclusiveDeviationAlarmImplBase.instantiate(this, "ExclusiveDeviationAlarmType", options, data);
|
|
1604
1617
|
}
|
|
1605
1618
|
|
|
1606
1619
|
public instantiateNonExclusiveLimitAlarm(
|
|
@@ -1608,14 +1621,14 @@ export class NamespaceImpl implements NamespacePrivate {
|
|
|
1608
1621
|
options: InstantiateNonExclusiveLimitAlarmOptions,
|
|
1609
1622
|
data?: Record<string, VariantOptions>
|
|
1610
1623
|
): UANonExclusiveLimitAlarmEx {
|
|
1611
|
-
return
|
|
1624
|
+
return UANonExclusiveLimitAlarmImplBase.instantiate(this, nonExclusiveLimitAlarmTypeId, options, data);
|
|
1612
1625
|
}
|
|
1613
1626
|
|
|
1614
1627
|
public instantiateNonExclusiveDeviationAlarm(
|
|
1615
1628
|
options: InstantiateNonExclusiveDeviationAlarmOptions,
|
|
1616
1629
|
data?: Record<string, VariantOptions>
|
|
1617
1630
|
): UANonExclusiveDeviationAlarmEx {
|
|
1618
|
-
return
|
|
1631
|
+
return UANonExclusiveDeviationAlarmImplBase.instantiate(this, "NonExclusiveDeviationAlarmType", options, data);
|
|
1619
1632
|
}
|
|
1620
1633
|
|
|
1621
1634
|
public instantiateDiscreteAlarm(
|
|
@@ -1623,13 +1636,13 @@ export class NamespaceImpl implements NamespacePrivate {
|
|
|
1623
1636
|
options: InstantiateAlarmConditionOptions,
|
|
1624
1637
|
data?: Record<string, VariantOptions>
|
|
1625
1638
|
): UADiscreteAlarmEx {
|
|
1626
|
-
return
|
|
1639
|
+
return UADiscreteAlarmImplBase.instantiate(this, discreteAlarmType, options, data);
|
|
1627
1640
|
}
|
|
1628
1641
|
public instantiateOffNormalAlarm(
|
|
1629
1642
|
options: InstantiateOffNormalAlarmOptions,
|
|
1630
1643
|
data?: Record<string, VariantOptions>
|
|
1631
1644
|
): UAOffNormalAlarmEx {
|
|
1632
|
-
return
|
|
1645
|
+
return UAOffNormalAlarmImplBase.instantiate(this, "OffNormalAlarmType", options, data);
|
|
1633
1646
|
}
|
|
1634
1647
|
|
|
1635
1648
|
// default roles and permissions
|
|
@@ -1661,12 +1674,12 @@ export class NamespaceImpl implements NamespacePrivate {
|
|
|
1661
1674
|
if (node.nodeId.namespace !== this.index) {
|
|
1662
1675
|
throw new Error(
|
|
1663
1676
|
"node must belong to this namespace : " +
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1677
|
+
node.nodeId.toString() +
|
|
1678
|
+
" " +
|
|
1679
|
+
" node.browseName = " +
|
|
1680
|
+
node.browseName.toString() +
|
|
1681
|
+
" this.index = " +
|
|
1682
|
+
this.index
|
|
1670
1683
|
);
|
|
1671
1684
|
}
|
|
1672
1685
|
assert(node.nodeId.namespace === this.index, "node must belongs to this namespace");
|
|
@@ -1676,24 +1689,24 @@ export class NamespaceImpl implements NamespacePrivate {
|
|
|
1676
1689
|
|
|
1677
1690
|
// c8 ignore next
|
|
1678
1691
|
if (this._nodeid_index.has(hashKey)) {
|
|
1679
|
-
const existingNode = this.findNode(node.nodeId)
|
|
1692
|
+
const existingNode = this.findNode(node.nodeId);
|
|
1680
1693
|
throw new Error(
|
|
1681
1694
|
"node " +
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1695
|
+
node.browseName.toString() +
|
|
1696
|
+
" nodeId = " +
|
|
1697
|
+
node.nodeId.displayText() +
|
|
1698
|
+
" already registered " +
|
|
1699
|
+
node.nodeId.toString() +
|
|
1700
|
+
"\n" +
|
|
1701
|
+
" in namespace " +
|
|
1702
|
+
this.namespaceUri +
|
|
1703
|
+
" index = " +
|
|
1704
|
+
this.index +
|
|
1705
|
+
"\n" +
|
|
1706
|
+
"existing node = " +
|
|
1707
|
+
existingNode?.toString() +
|
|
1708
|
+
"this parent : " +
|
|
1709
|
+
node.parentNodeId?.toString()
|
|
1697
1710
|
);
|
|
1698
1711
|
}
|
|
1699
1712
|
|
|
@@ -1756,15 +1769,15 @@ export class NamespaceImpl implements NamespacePrivate {
|
|
|
1756
1769
|
errorLog(
|
|
1757
1770
|
chalk.red.bold(
|
|
1758
1771
|
"Error: namespace index used at the front of the browseName " +
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1772
|
+
indexVerify +
|
|
1773
|
+
" do not match the index of the current namespace (" +
|
|
1774
|
+
this.index +
|
|
1775
|
+
")"
|
|
1763
1776
|
)
|
|
1764
1777
|
);
|
|
1765
1778
|
errorLog(
|
|
1766
1779
|
" Please fix your code so that the created node is inserted in the correct namespace," +
|
|
1767
|
-
|
|
1780
|
+
" please refer to the NodeOPCUA documentation"
|
|
1768
1781
|
);
|
|
1769
1782
|
}
|
|
1770
1783
|
}
|
|
@@ -2019,7 +2032,7 @@ export class NamespaceImpl implements NamespacePrivate {
|
|
|
2019
2032
|
warningLog(
|
|
2020
2033
|
"[NODE-OPCUA-W30",
|
|
2021
2034
|
"namespace#addVariable a getter has been specified and minimumSamplingInterval is missing.\nMinimumSamplingInterval has been adjusted to 1000 ms\nvariable = " +
|
|
2022
|
-
|
|
2035
|
+
options?.browseName?.toString()
|
|
2023
2036
|
);
|
|
2024
2037
|
options.minimumSamplingInterval = 1000;
|
|
2025
2038
|
}
|
|
@@ -2087,7 +2100,7 @@ export class NamespaceImpl implements NamespacePrivate {
|
|
|
2087
2100
|
}
|
|
2088
2101
|
}
|
|
2089
2102
|
|
|
2090
|
-
const _constructors_map: Record<keyof Omit<typeof NodeClass, "Unspecified">,
|
|
2103
|
+
const _constructors_map: Record<keyof Omit<typeof NodeClass, "Unspecified">, new (options: any) => BaseNodeImpl<any>> = {
|
|
2091
2104
|
DataType: UADataTypeImpl,
|
|
2092
2105
|
Method: UAMethodImpl,
|
|
2093
2106
|
Object: UAObjectImpl,
|
package/src/namespace_private.ts
CHANGED
|
@@ -9,14 +9,13 @@ import type {
|
|
|
9
9
|
INamespace,
|
|
10
10
|
ModellingRuleType,
|
|
11
11
|
RequiredModel,
|
|
12
|
-
UADataType
|
|
12
|
+
UADataType
|
|
13
13
|
} from "node-opcua-address-space-base";
|
|
14
14
|
import { assert } from "node-opcua-assert";
|
|
15
15
|
import type { NodeId } from "node-opcua-nodeid";
|
|
16
16
|
|
|
17
17
|
import type { AddressSpacePrivate } from "./address_space_private";
|
|
18
18
|
|
|
19
|
-
|
|
20
19
|
export interface NamespacePrivate extends INamespace {
|
|
21
20
|
addressSpace: AddressSpacePrivate;
|
|
22
21
|
|
|
@@ -45,8 +44,6 @@ export interface NamespacePrivate extends INamespace {
|
|
|
45
44
|
_variableTypeCount(): number;
|
|
46
45
|
_dataTypeCount(): number;
|
|
47
46
|
_referenceTypeCount(): number;
|
|
48
|
-
|
|
49
|
-
|
|
50
47
|
}
|
|
51
48
|
|
|
52
49
|
export declare const NamespacePrivate: new (options: unknown) => NamespacePrivate;
|
|
@@ -67,10 +64,7 @@ function isValidModellingRule(ruleName: string) {
|
|
|
67
64
|
* @param modellingRule
|
|
68
65
|
* @private
|
|
69
66
|
*/
|
|
70
|
-
export function UANamespace_process_modelling_rule(
|
|
71
|
-
references: AddReferenceOpts[],
|
|
72
|
-
modellingRule?: ModellingRuleType
|
|
73
|
-
): void {
|
|
67
|
+
export function UANamespace_process_modelling_rule(references: AddReferenceOpts[], modellingRule?: ModellingRuleType): void {
|
|
74
68
|
if (modellingRule) {
|
|
75
69
|
assert(isValidModellingRule(modellingRule), "expecting a valid modelling rule");
|
|
76
70
|
const modellingRuleName = `ModellingRule_${modellingRule}`;
|
package/src/nodeid_manager.ts
CHANGED
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
/* eslint-disable max-depth */
|
|
2
2
|
/* eslint-disable max-statements */
|
|
3
|
+
|
|
4
|
+
import type { BaseNode, UAReference, UAReferenceType } from "node-opcua-address-space-base";
|
|
3
5
|
import { assert } from "node-opcua-assert";
|
|
4
|
-
import { NodeClass, QualifiedName,
|
|
5
|
-
import { makeNodeId, NodeId, NodeIdLike, NodeIdType, resolveNodeId, sameNodeId } from "node-opcua-nodeid";
|
|
6
|
+
import { NodeClass, type QualifiedName, type QualifiedNameOptions } from "node-opcua-data-model";
|
|
6
7
|
import { make_debugLog, make_warningLog } from "node-opcua-debug";
|
|
7
|
-
import {
|
|
8
|
-
import { getReferenceType } from "./base_node_impl";
|
|
9
|
-
import {
|
|
8
|
+
import { makeNodeId, NodeId, type NodeIdLike, NodeIdType, resolveNodeId, sameNodeId } from "node-opcua-nodeid";
|
|
9
|
+
import { BaseNodeImpl, getReferenceType } from "./base_node_impl";
|
|
10
|
+
import { resolveReferenceType } from "./reference_impl";
|
|
10
11
|
|
|
11
|
-
const
|
|
12
|
-
const
|
|
12
|
+
const _debugLog = make_debugLog(__filename);
|
|
13
|
+
const _warningLog = make_warningLog(__filename);
|
|
13
14
|
|
|
14
15
|
export const NamespaceOptions = {
|
|
15
16
|
nodeIdNameSeparator: "-"
|
|
16
17
|
};
|
|
17
|
-
function
|
|
18
|
+
function _isValidNodeClass(nodeClass: NodeClass) {
|
|
18
19
|
return typeof (NodeClass as any)[nodeClass] === "string";
|
|
19
20
|
}
|
|
20
21
|
|
|
@@ -25,24 +26,24 @@ const hasEncoding = resolveNodeId("HasEncoding");
|
|
|
25
26
|
type Suffix = string;
|
|
26
27
|
|
|
27
28
|
function _filterAggregates(addressSpace: AddressSpacePartial, references: UAReference[]): [NodeId, Suffix] | null {
|
|
28
|
-
|
|
29
29
|
const aggregatesRefType = addressSpace.findNode(resolveNodeId("Aggregates")) as UAReferenceType;
|
|
30
30
|
const hasEncodinRefType = addressSpace.findNode(resolveNodeId("HasEncoding")) as UAReferenceType;
|
|
31
31
|
|
|
32
|
-
const checkAggregate = (
|
|
33
|
-
reference: UAReference,
|
|
34
|
-
): boolean => {
|
|
32
|
+
const checkAggregate = (reference: UAReference): boolean => {
|
|
35
33
|
if (reference.isForward) return false;
|
|
36
34
|
const r = resolveReferenceType(addressSpace, reference);
|
|
37
35
|
if (!r) {
|
|
38
36
|
return false;
|
|
39
37
|
}
|
|
40
|
-
return r.isSubtypeOf(aggregatesRefType) || r.isSubtypeOf(hasEncodinRefType)
|
|
41
|
-
}
|
|
38
|
+
return r.isSubtypeOf(aggregatesRefType) || r.isSubtypeOf(hasEncodinRefType);
|
|
39
|
+
};
|
|
42
40
|
|
|
43
41
|
const candidates = references.filter(checkAggregate);
|
|
44
42
|
|
|
45
|
-
assert(
|
|
43
|
+
assert(
|
|
44
|
+
candidates.length <= 1,
|
|
45
|
+
"a node shall not have more than one parent (link to a parent with a reference derived from 'Aggregates')"
|
|
46
|
+
);
|
|
46
47
|
if (candidates.length === 0) {
|
|
47
48
|
return null;
|
|
48
49
|
}
|
|
@@ -61,7 +62,7 @@ function _findParentNodeId(addressSpace: AddressSpacePartial, options: Construct
|
|
|
61
62
|
(ref as any)._referenceType = addressSpace.findReferenceType(ref.referenceType);
|
|
62
63
|
/* c8 ignore next */
|
|
63
64
|
if (!getReferenceType(ref)) {
|
|
64
|
-
throw new Error(
|
|
65
|
+
throw new Error(`Cannot find referenceType ${JSON.stringify(ref)}`);
|
|
65
66
|
}
|
|
66
67
|
(ref as any).referenceType = (ref as any)._referenceType.nodeId;
|
|
67
68
|
}
|
|
@@ -70,8 +71,8 @@ function _findParentNodeId(addressSpace: AddressSpacePartial, options: Construct
|
|
|
70
71
|
}
|
|
71
72
|
|
|
72
73
|
function prepareName(browseName?: QualifiedName | QualifiedNameOptions): string {
|
|
73
|
-
const m = browseName
|
|
74
|
-
return m;
|
|
74
|
+
const m = browseName?.name?.toString().replace(/[ ]/g, "").replace(/(<|>)/g, "");
|
|
75
|
+
return m ||"";
|
|
75
76
|
}
|
|
76
77
|
|
|
77
78
|
export interface AddressSpacePartial {
|
|
@@ -120,7 +121,7 @@ export class NodeIdManager {
|
|
|
120
121
|
public getSymbols(): NodeEntry1[] {
|
|
121
122
|
const line: NodeEntry1[] = [];
|
|
122
123
|
for (const [key, [value, nodeClass1]] of Object.entries(this._cacheSymbolicName)) {
|
|
123
|
-
const
|
|
124
|
+
const _node = this.addressSpace.findNode(makeNodeId(value, this.namespaceIndex));
|
|
124
125
|
const nodeClass = NodeClass[nodeClass1 || NodeClass.Unspecified];
|
|
125
126
|
line.push([key, value, nodeClass]);
|
|
126
127
|
}
|
|
@@ -145,10 +146,10 @@ export class NodeIdManager {
|
|
|
145
146
|
}
|
|
146
147
|
|
|
147
148
|
public constructNodeId(options: ConstructNodeIdOptions): NodeId {
|
|
149
|
+
const compose = (left: string, right: string) => {
|
|
150
|
+
return right ? (left ? `${left}_${right}` : right) : left;
|
|
151
|
+
};
|
|
148
152
|
|
|
149
|
-
const compose = (left: string, right: string) => { return right ? (left ? left + '_' + right : right) : left };
|
|
150
|
-
|
|
151
|
-
|
|
152
153
|
const buildUpName2 = (nodeId: NodeId, suffix: string) => {
|
|
153
154
|
const namespaceIndex = nodeId.namespace;
|
|
154
155
|
let name = "";
|
|
@@ -159,7 +160,7 @@ export class NodeIdManager {
|
|
|
159
160
|
n = n.parentNodeId ? this.addressSpace.findNode(n.parentNodeId) : null;
|
|
160
161
|
}
|
|
161
162
|
return name;
|
|
162
|
-
}
|
|
163
|
+
};
|
|
163
164
|
|
|
164
165
|
if (!options.nodeId && options.registerSymbolicNames) {
|
|
165
166
|
const parentInfo = this.findParentNodeId(options);
|
|
@@ -185,14 +186,16 @@ export class NodeIdManager {
|
|
|
185
186
|
private _constructNodeId(options: ConstructNodeIdOptions): NodeId {
|
|
186
187
|
|
|
187
188
|
const resolveNodeIdEx = (nodeId: BaseNode | NodeIdLike) =>
|
|
188
|
-
|
|
189
|
+
nodeId && typeof nodeId === "object" && nodeId instanceof BaseNodeImpl
|
|
190
|
+
? nodeId.nodeId
|
|
191
|
+
: resolveNodeId(nodeId as NodeIdLike);
|
|
189
192
|
|
|
190
193
|
let nodeId = options.nodeId;
|
|
191
194
|
|
|
192
195
|
if (!nodeId) {
|
|
193
196
|
const parentInfo = this.findParentNodeId(options);
|
|
194
197
|
if (parentInfo) {
|
|
195
|
-
const [parentNodeId,
|
|
198
|
+
const [parentNodeId, _linkName] = parentInfo;
|
|
196
199
|
const name = prepareName(options.browseName);
|
|
197
200
|
nodeId = null;
|
|
198
201
|
if (parentNodeId.identifierType === NodeId.NodeIdType.STRING) {
|
|
@@ -207,7 +210,7 @@ export class NodeIdManager {
|
|
|
207
210
|
if (nodeId.match(regExp2)) {
|
|
208
211
|
// nothing
|
|
209
212
|
} else if (nodeId.match(regExp1)) {
|
|
210
|
-
nodeId =
|
|
213
|
+
nodeId = `ns=${this.namespaceIndex};${nodeId}`;
|
|
211
214
|
// } else {
|
|
212
215
|
// nodeId = this._getOrCreateFromName(nodeId, nodeClass);
|
|
213
216
|
}
|
|
@@ -229,6 +232,6 @@ export class NodeIdManager {
|
|
|
229
232
|
|
|
230
233
|
private _isInCache(nodeId: NodeId): boolean {
|
|
231
234
|
if (nodeId.namespace !== this.namespaceIndex || nodeId.identifierType !== NodeIdType.NUMERIC) return false;
|
|
232
|
-
return this._cacheSymbolicNameRev.has(nodeId.value as number)
|
|
235
|
+
return !!this._cacheSymbolicNameRev.has(nodeId.value as number);
|
|
233
236
|
}
|
|
234
237
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IAddressSpace, UAVariable } from "node-opcua-address-space-base";
|
|
1
|
+
import type { IAddressSpace, UAVariable } from "node-opcua-address-space-base";
|
|
2
2
|
|
|
3
3
|
export function adjustNamespaceArray(addressSpace: IAddressSpace): void {
|
|
4
4
|
const namepsaceArrayVar = addressSpace.findNode("Server_NamespaceArray") as UAVariable;
|