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
|
@@ -1,39 +1,25 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { LocalizedText } from "node-opcua-data-model";
|
|
3
|
-
import { NodeId } from "node-opcua-nodeid";
|
|
4
|
-
import { UACondition_Base } from "node-opcua-nodeset-ua";
|
|
5
|
-
import { StatusCode } from "node-opcua-status-code";
|
|
6
|
-
import { TimeZoneDataType } from "node-opcua-types";
|
|
7
|
-
import { DataType } from "node-opcua-
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { ConditionInfoOptions } from "./condition_info_i";
|
|
11
|
-
import { ConditionSnapshot } from "./condition_snapshot";
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
export interface UABaseEventHelper {
|
|
16
|
-
setSourceName(name: string): void;
|
|
17
|
-
setSourceNode(node: NodeId | BaseNode): void;
|
|
18
|
-
}
|
|
19
|
-
|
|
1
|
+
import type { ITypedEventEmitter, ListenerSignature, UAObject, UAProperty, UAVariable } from "node-opcua-address-space-base";
|
|
2
|
+
import type { LocalizedText } from "node-opcua-data-model";
|
|
3
|
+
import type { NodeId } from "node-opcua-nodeid";
|
|
4
|
+
import type { UACondition_Base } from "node-opcua-nodeset-ua";
|
|
5
|
+
import type { StatusCode } from "node-opcua-status-code";
|
|
6
|
+
import type { TimeZoneDataType } from "node-opcua-types";
|
|
7
|
+
import type { DataType } from "node-opcua-variant";
|
|
8
|
+
import type { UATwoStateVariableEx } from "../../ua_two_state_variable_ex";
|
|
9
|
+
import type { ISetStateOptions } from "../i_set_state_options";
|
|
10
|
+
import type { ConditionInfoOptions } from "./condition_info_i";
|
|
11
|
+
import type { ConditionSnapshot } from "./condition_snapshot";
|
|
12
|
+
import type { UABaseEventEvents, UABaseEventEx, UABaseEventHelper } from "./ua_base_event_ex";
|
|
13
|
+
|
|
14
|
+
export type { UABaseEventHelper } from "./ua_base_event_ex";
|
|
20
15
|
|
|
21
16
|
export type AddCommentEventHandler = (eventId: Buffer | null, comment: LocalizedText, branch: ConditionSnapshot) => void;
|
|
22
17
|
|
|
23
|
-
export interface
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
on(eventName: "addComment", eventHandler: AddCommentEventHandler): this;
|
|
27
|
-
on(eventName: "branch_deleted", eventHandler: (branchId: string) => void): this;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
once(eventName: string, eventHandler: (...args: any[]) => void): this;
|
|
31
|
-
// -- Events
|
|
32
|
-
once(eventName: "addComment", eventHandler: AddCommentEventHandler): this;
|
|
33
|
-
once(eventName: "branch_deleted", eventHandler: (branchId: string) => void): this;
|
|
18
|
+
export interface UAConditionEvents extends UABaseEventEvents {
|
|
19
|
+
addComment: AddCommentEventHandler;
|
|
20
|
+
branch_deleted: (branchId: string) => void;
|
|
34
21
|
}
|
|
35
22
|
|
|
36
|
-
|
|
37
23
|
export interface UAConditionHelper extends UABaseEventHelper {
|
|
38
24
|
getBranchCount(): number;
|
|
39
25
|
getBranches(): ConditionSnapshot[];
|
|
@@ -51,30 +37,20 @@ export interface UAConditionHelper extends UABaseEventHelper {
|
|
|
51
37
|
raiseNewCondition(conditionInfo: ConditionInfoOptions): void;
|
|
52
38
|
raiseNewBranchState(branch: ConditionSnapshot): void;
|
|
53
39
|
currentBranch(): ConditionSnapshot;
|
|
54
|
-
findBranchForEventId(eventId: Buffer| null): ConditionSnapshot | null;
|
|
55
|
-
|
|
40
|
+
findBranchForEventId(eventId: Buffer | null): ConditionSnapshot | null;
|
|
56
41
|
}
|
|
57
42
|
|
|
58
|
-
export interface UAConditionEx extends
|
|
43
|
+
export interface UAConditionEx<T extends UAConditionEvents & ListenerSignature<T> = UAConditionEvents> extends
|
|
44
|
+
UABaseEventEx,
|
|
45
|
+
UACondition_Base,
|
|
46
|
+
UAObject<T>,
|
|
47
|
+
UAConditionHelper
|
|
48
|
+
{
|
|
59
49
|
enabledState: UATwoStateVariableEx;
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
conditionSubClassId?: UAProperty<NodeId[], /*c*/ DataType.NodeId>;
|
|
67
|
-
conditionSubClassName?: UAProperty<LocalizedText[], /*c*/ DataType.LocalizedText>;
|
|
68
|
-
// conditionName: UAProperty<UAString, /*c*/DataType.String>;
|
|
69
|
-
// branchId: UAProperty<NodeId, /*c*/DataType.NodeId>;
|
|
70
|
-
// retain: UAProperty<boolean, /*c*/DataType.Boolean>;
|
|
71
|
-
// quality: UAConditionVariable<StatusCode, /*c*/DataType.StatusCode>;
|
|
72
|
-
// lastSeverity: UAConditionVariable<UInt16, /*c*/DataType.UInt16>;
|
|
73
|
-
// comment: UAConditionVariable<LocalizedText, /*c*/DataType.LocalizedText>;
|
|
74
|
-
// clientUserId: UAProperty<UAString, /*c*/DataType.String>;
|
|
75
|
-
// disable: UAMethod;
|
|
76
|
-
// enable: UAMethod;
|
|
77
|
-
// addComment: UAMethod;
|
|
78
|
-
// conditionRefresh: UAMethod;
|
|
79
|
-
// conditionRefresh2: UAMethod;
|
|
50
|
+
// these are declared as optional in UABaseEvent_Base but required in UACondition_Base;
|
|
51
|
+
// re-state them here to disambiguate the two parent interfaces.
|
|
52
|
+
conditionClassId: UAProperty<NodeId, DataType.NodeId>;
|
|
53
|
+
conditionClassName: UAProperty<LocalizedText, DataType.LocalizedText>;
|
|
54
|
+
conditionSubClassId?: UAProperty<NodeId[], DataType.NodeId>;
|
|
55
|
+
conditionSubClassName?: UAProperty<LocalizedText[], DataType.LocalizedText>;
|
|
80
56
|
}
|
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
import { UADiscreteAlarm_Base } from "node-opcua-nodeset-ua";
|
|
2
|
-
import { UAAlarmConditionEx
|
|
1
|
+
import type { UADiscreteAlarm_Base } from "node-opcua-nodeset-ua";
|
|
2
|
+
import type { UAAlarmConditionEx } from "./ua_alarm_condition_ex";
|
|
3
3
|
|
|
4
|
-
export interface UADiscreteAlarmHelper extends UAAlarmConditionHelper {
|
|
5
|
-
on(eventName: string, eventHandle: any): this;
|
|
6
|
-
once(eventName: string, eventHandle: any): this;
|
|
7
|
-
}
|
|
8
4
|
export interface UADiscreteAlarmEx
|
|
9
5
|
extends UAAlarmConditionEx,
|
|
10
6
|
Omit<
|
|
@@ -16,33 +12,6 @@ export interface UADiscreteAlarmEx
|
|
|
16
12
|
| "latchedState"
|
|
17
13
|
| "confirmedState"
|
|
18
14
|
| "ackedState"
|
|
19
|
-
| "comfirmedState"
|
|
20
15
|
| "activeState"
|
|
21
16
|
| "enabledState"
|
|
22
|
-
|
|
23
|
-
UADiscreteAlarmHelper {
|
|
24
|
-
/** empty interface */
|
|
25
|
-
}
|
|
26
|
-
/*=
|
|
27
|
-
* +----------------------+
|
|
28
|
-
* | UAAlarmCondition |
|
|
29
|
-
* +----------------------+
|
|
30
|
-
* ^
|
|
31
|
-
* |
|
|
32
|
-
* +--------+---------+
|
|
33
|
-
* | UADiscreteAlarm |
|
|
34
|
-
* +------------------+
|
|
35
|
-
* ^
|
|
36
|
-
* |
|
|
37
|
-
* +--------+---------+
|
|
38
|
-
* | UAOffNormalAlarm |
|
|
39
|
-
* +------------------+
|
|
40
|
-
* ^
|
|
41
|
-
* |
|
|
42
|
-
* +--------+---------+
|
|
43
|
-
* | UATripAlarm |
|
|
44
|
-
* +------------------+
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
*/
|
|
17
|
+
> {}
|
|
@@ -1,25 +1,21 @@
|
|
|
1
|
-
import { UAExclusiveDeviationAlarm_Base } from "node-opcua-nodeset-ua";
|
|
2
|
-
import { DeviationStuff } from "./deviation_stuff";
|
|
3
|
-
import { UAExclusiveLimitAlarmEx } from "./ua_exclusive_limit_alarm_ex";
|
|
1
|
+
import type { UAExclusiveDeviationAlarm_Base } from "node-opcua-nodeset-ua";
|
|
2
|
+
import type { DeviationStuff } from "./deviation_stuff";
|
|
3
|
+
import type { UAExclusiveLimitAlarmEx } from "./ua_exclusive_limit_alarm_ex";
|
|
4
4
|
|
|
5
5
|
export interface UAExclusiveDeviationAlarmEx
|
|
6
6
|
extends Omit<
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
/** empty interface */
|
|
23
|
-
|
|
24
|
-
}
|
|
25
|
-
|
|
7
|
+
UAExclusiveDeviationAlarm_Base,
|
|
8
|
+
| "ackedState"
|
|
9
|
+
| "activeState"
|
|
10
|
+
| "confirmedState"
|
|
11
|
+
| "enabledState"
|
|
12
|
+
| "latchedState"
|
|
13
|
+
| "limitState"
|
|
14
|
+
| "outOfServiceState"
|
|
15
|
+
| "shelvingState"
|
|
16
|
+
| "silenceState"
|
|
17
|
+
| "suppressedState"
|
|
18
|
+
| "setpointNode"
|
|
19
|
+
>,
|
|
20
|
+
UAExclusiveLimitAlarmEx,
|
|
21
|
+
DeviationStuff {}
|
|
@@ -1,19 +1,13 @@
|
|
|
1
|
-
import { UAExclusiveLimitAlarm_Base } from "node-opcua-nodeset-ua";
|
|
2
|
-
import { UATwoStateVariableEx } from "../../ua_two_state_variable_ex";
|
|
3
|
-
import { UAExclusiveLimitStateMachineEx } from "../state_machine/ua_exclusive_limit_state_machine_type_ex";
|
|
4
|
-
import { UAShelvedStateMachineEx } from "../state_machine/ua_shelved_state_machine_ex";
|
|
5
|
-
import { UALimitAlarmEx, UALimitAlarmHelper } from "./ua_limit_alarm_ex";
|
|
1
|
+
import type { UAExclusiveLimitAlarm_Base } from "node-opcua-nodeset-ua";
|
|
2
|
+
import type { UATwoStateVariableEx } from "../../ua_two_state_variable_ex";
|
|
3
|
+
import type { UAExclusiveLimitStateMachineEx } from "../state_machine/ua_exclusive_limit_state_machine_type_ex";
|
|
4
|
+
import type { UAShelvedStateMachineEx } from "../state_machine/ua_shelved_state_machine_ex";
|
|
5
|
+
import type { UALimitAlarmEx, UALimitAlarmHelper } from "./ua_limit_alarm_ex";
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
export interface UAExclusiveLimitAlarmEx
|
|
11
|
-
extends Omit<UAExclusiveLimitAlarm_Base, "limitState">,
|
|
12
|
-
UALimitAlarmEx,
|
|
13
|
-
UAExclusiveLimitAlarmHelper {
|
|
14
|
-
on(eventName: string, eventHandler: any): this;
|
|
15
|
-
once(eventName: string, eventHandler: any): this;
|
|
7
|
+
/** @deprecated kept for backward compatibility — alias of UALimitAlarmHelper. */
|
|
8
|
+
export type UAExclusiveLimitAlarmHelper = UALimitAlarmHelper;
|
|
16
9
|
|
|
10
|
+
export interface UAExclusiveLimitAlarmEx extends Omit<UAExclusiveLimitAlarm_Base, "limitState">, UALimitAlarmEx {
|
|
17
11
|
ackedState: UATwoStateVariableEx;
|
|
18
12
|
activeState: UATwoStateVariableEx;
|
|
19
13
|
confirmedState?: UATwoStateVariableEx;
|
|
@@ -22,7 +16,6 @@ export interface UAExclusiveLimitAlarmEx
|
|
|
22
16
|
outOfServiceState?: UATwoStateVariableEx;
|
|
23
17
|
silenceState?: UATwoStateVariableEx;
|
|
24
18
|
suppressedState?: UATwoStateVariableEx;
|
|
25
|
-
//
|
|
26
19
|
limitState: UAExclusiveLimitStateMachineEx;
|
|
27
20
|
shelvingState?: UAShelvedStateMachineEx;
|
|
28
21
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { UALimitAlarm_Base } from "node-opcua-nodeset-ua";
|
|
2
|
-
import { UATwoStateVariableEx } from "../../ua_two_state_variable_ex";
|
|
3
|
-
import { UAShelvedStateMachineEx } from "../state_machine/ua_shelved_state_machine_ex";
|
|
4
|
-
import {
|
|
1
|
+
import type { UALimitAlarm_Base } from "node-opcua-nodeset-ua";
|
|
2
|
+
import type { UATwoStateVariableEx } from "../../ua_two_state_variable_ex";
|
|
3
|
+
import type { UAShelvedStateMachineEx } from "../state_machine/ua_shelved_state_machine_ex";
|
|
4
|
+
import type { UAAlarmConditionEx, UAAlarmConditionHelper } from "./ua_alarm_condition_ex";
|
|
5
5
|
|
|
6
6
|
export interface UALimitAlarmHelper extends UAAlarmConditionHelper {
|
|
7
7
|
setLowLowLimit(value: number): void;
|
|
@@ -14,9 +14,6 @@ export interface UALimitAlarmHelper extends UAAlarmConditionHelper {
|
|
|
14
14
|
getLowLowLimit(): number;
|
|
15
15
|
}
|
|
16
16
|
export interface UALimitAlarmEx extends UALimitAlarm_Base, UAAlarmConditionEx, UALimitAlarmHelper {
|
|
17
|
-
on(eventName: string, eventHandler: any): this;
|
|
18
|
-
once(eventName: string, eventHandler: any): this;
|
|
19
|
-
|
|
20
17
|
enabledState: UATwoStateVariableEx;
|
|
21
18
|
ackedState: UATwoStateVariableEx;
|
|
22
19
|
confirmedState?: UATwoStateVariableEx;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { DataType } from "node-opcua-basic-types";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { UANonExclusiveLimitAlarmEx } from "./ua_non_exclusive_limit_alarm_ex";
|
|
1
|
+
import type { UAVariableT } from "node-opcua-address-space-base";
|
|
2
|
+
import type { DataType } from "node-opcua-basic-types";
|
|
3
|
+
import type { UANonExclusiveDeviationAlarm_Base } from "node-opcua-nodeset-ua";
|
|
4
|
+
import type { DeviationStuff } from "./deviation_stuff";
|
|
5
|
+
import type { UANonExclusiveLimitAlarmEx } from "./ua_non_exclusive_limit_alarm_ex";
|
|
7
6
|
|
|
8
7
|
export interface UANonExclusiveDeviationAlarmEx
|
|
9
8
|
extends Omit<
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { UANonExclusiveLimitAlarm_Base } from "node-opcua-nodeset-ua";
|
|
2
|
-
import { UATwoStateVariableEx } from "../../ua_two_state_variable_ex";
|
|
3
|
-
import { UALimitAlarmEx } from "./ua_limit_alarm_ex";
|
|
1
|
+
import type { UANonExclusiveLimitAlarm_Base } from "node-opcua-nodeset-ua";
|
|
2
|
+
import type { UATwoStateVariableEx } from "../../ua_two_state_variable_ex";
|
|
3
|
+
import type { UALimitAlarmEx } from "./ua_limit_alarm_ex";
|
|
4
4
|
|
|
5
5
|
export interface UANonExclusiveLimitAlarmEx
|
|
6
6
|
extends UALimitAlarmEx,
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module node-opcua-address-space
|
|
3
3
|
*/
|
|
4
|
-
import { DataType, Variant } from "node-opcua-variant";
|
|
4
|
+
import type { DataType, Variant } from "node-opcua-variant";
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* @see https://reference.opcfoundation.org/v104/Core/docs/Part8/5.3.3/#5.3.3.3
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
+
import type { UAProperty, UAVariableT } from "node-opcua-address-space-base";
|
|
11
|
+
import type { Int64, UInt64 } from "node-opcua-basic-types";
|
|
12
|
+
import type { LocalizedText } from "node-opcua-data-model";
|
|
13
|
+
import type { DTEnumValue, UADiscreteItem, UADiscreteItem_Base, UAMultiStateDiscrete_Base } from "node-opcua-nodeset-ua";
|
|
10
14
|
/**
|
|
11
15
|
* @module node-opcua-address-space.DataAccess
|
|
12
16
|
*/
|
|
13
|
-
import { StatusCode } from "node-opcua-status-code";
|
|
14
|
-
import {
|
|
15
|
-
import { UAProperty, UAVariableT } from "node-opcua-address-space-base";
|
|
16
|
-
import { Int64, UInt64 } from "node-opcua-basic-types";
|
|
17
|
-
import { LocalizedText } from "node-opcua-data-model";
|
|
18
|
-
import { ISetStateOptions } from "../i_set_state_options";
|
|
17
|
+
import type { StatusCode } from "node-opcua-status-code";
|
|
18
|
+
import type { ISetStateOptions } from "../i_set_state_options";
|
|
19
19
|
|
|
20
20
|
export { UAMultiStateDiscrete } from "node-opcua-nodeset-ua";
|
|
21
21
|
|
|
@@ -28,27 +28,20 @@ export interface UAMultiStateDiscreteEx<T, DT extends DataType> extends UAVariab
|
|
|
28
28
|
checkVariantCompatibility(value: Variant): StatusCode;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
31
|
export interface UAMultiStateValueDiscreteArray_Base<T, DT extends DataType> extends UADiscreteItem_Base<T, DT> {
|
|
38
32
|
enumValues: UAProperty<DTEnumValue[], DataType.ExtensionObject>;
|
|
39
33
|
valueAsText: UAProperty<LocalizedText[], DataType.LocalizedText>;
|
|
40
34
|
}
|
|
41
35
|
|
|
42
|
-
|
|
43
36
|
export interface UAMultiStateValueDiscreteArray<T, DT extends DataType>
|
|
44
37
|
extends UADiscreteItem<T, DT>,
|
|
45
|
-
|
|
38
|
+
UAMultiStateValueDiscreteArray_Base<T, DT> {
|
|
46
39
|
/** empty interface */
|
|
47
40
|
}
|
|
48
41
|
|
|
49
42
|
export interface UAMultiStateValueDiscreteArrayEx<T, DT extends DataType>
|
|
50
43
|
extends UAVariableT<T, DT>,
|
|
51
|
-
|
|
44
|
+
UAMultiStateValueDiscreteArray_Base<T, DT> {
|
|
52
45
|
/**
|
|
53
46
|
* EnumValues is an array of EnumValueType. Each entry of the array represents one enumeration
|
|
54
47
|
* value with its integer notation, a human-readable representation, and help information.
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import { DataType, Variant } from "node-opcua-variant";
|
|
5
|
-
import {
|
|
6
|
-
import { UAMultiStateValueDiscrete_Base } from "node-opcua-nodeset-ua";
|
|
7
|
-
import { UAVariableT } from "node-opcua-address-space-base";
|
|
8
|
-
import { ISetStateOptions } from "../i_set_state_options";
|
|
1
|
+
import type { UAVariableT } from "node-opcua-address-space-base";
|
|
2
|
+
import type { Int64, UInt64 } from "node-opcua-basic-types";
|
|
3
|
+
import type { UAMultiStateValueDiscrete_Base } from "node-opcua-nodeset-ua";
|
|
4
|
+
import type { DataType, Variant } from "node-opcua-variant";
|
|
5
|
+
import type { ISetStateOptions } from "../i_set_state_options";
|
|
9
6
|
|
|
10
7
|
/**
|
|
11
8
|
* @see https://reference.opcfoundation.org/v104/Core/docs/Part8/5.3.3/#5.3.3.4
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { ISetStateOptions } from "../i_set_state_options";
|
|
1
|
+
import type { UAVariableT } from "node-opcua-address-space-base";
|
|
2
|
+
import type { LocalizedTextLike } from "node-opcua-data-model";
|
|
3
|
+
import type { UATwoStateDiscrete_Base } from "node-opcua-nodeset-ua";
|
|
4
|
+
import type { DataType } from "node-opcua-variant";
|
|
5
|
+
import type { ISetStateOptions } from "../i_set_state_options";
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* @see https://reference.opcfoundation.org/v104/Core/VariableTypes/TwoStateDiscreteType/
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module node-opcua-address-space
|
|
3
3
|
*/
|
|
4
|
-
import { UAVariableT } from "node-opcua-address-space-base";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
4
|
+
import type { UAVariableT } from "node-opcua-address-space-base";
|
|
5
|
+
import type { UAYArrayItem_Base } from "node-opcua-nodeset-ua";
|
|
6
|
+
import type { DataType } from "node-opcua-variant";
|
|
7
7
|
|
|
8
8
|
export interface UAYArrayItemEx<DT extends DataType.Double | DataType.Float>
|
|
9
9
|
extends UAVariableT<number[], DT>,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ExtensionObject } from "node-opcua-extension-object";
|
|
2
|
-
import { IStructuredTypeSchema } from "node-opcua-factory";
|
|
3
|
-
import { ExpandedNodeId } from "node-opcua-nodeid";
|
|
1
|
+
import type { ExtensionObject } from "node-opcua-extension-object";
|
|
2
|
+
import type { IStructuredTypeSchema } from "node-opcua-factory";
|
|
3
|
+
import type { ExpandedNodeId } from "node-opcua-nodeid";
|
|
4
4
|
|
|
5
5
|
export type ExtensionObjectConstructor = new (options: any) => ExtensionObject;
|
|
6
6
|
export interface ExtensionObjectConstructorFuncWithSchema extends ExtensionObjectConstructor {
|
|
@@ -9,4 +9,3 @@ export interface ExtensionObjectConstructorFuncWithSchema extends ExtensionObjec
|
|
|
9
9
|
encodingDefaultBinary: ExpandedNodeId;
|
|
10
10
|
encodingDefaultXml: ExpandedNodeId;
|
|
11
11
|
}
|
|
12
|
-
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module node-opcua-address-space
|
|
3
3
|
*/
|
|
4
|
-
import { InstantiateObjectOptions, UAObject } from "node-opcua-address-space-base";
|
|
5
|
-
import {
|
|
4
|
+
import type { InstantiateObjectOptions, UAObject } from "node-opcua-address-space-base";
|
|
5
|
+
import type { UAExclusiveLimitStateMachine_Base } from "node-opcua-nodeset-ua";
|
|
6
6
|
|
|
7
|
-
import { UAStateMachineEx, UAStateMachineHelper, UAStateMachineType } from "./ua_state_machine_type";
|
|
7
|
+
import type { UAStateMachineEx, UAStateMachineHelper, UAStateMachineType } from "./ua_state_machine_type";
|
|
8
8
|
|
|
9
9
|
export interface UAExclusiveLimitStateMachineEx
|
|
10
10
|
extends UAObject,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module node-opcua-address-space
|
|
3
3
|
*/
|
|
4
|
-
import { InstantiateObjectOptions } from "node-opcua-address-space-base";
|
|
4
|
+
import type { InstantiateObjectOptions } from "node-opcua-address-space-base";
|
|
5
5
|
|
|
6
|
-
import { UAStateMachineEx, UAStateMachineType } from "./ua_state_machine_type";
|
|
6
|
+
import type { UAStateMachineEx, UAStateMachineType } from "./ua_state_machine_type";
|
|
7
7
|
/**
|
|
8
8
|
* Finite State Machine
|
|
9
9
|
*
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
* @module node-opcua-address-space
|
|
3
3
|
*/
|
|
4
4
|
// tslint:disable:no-empty-interface
|
|
5
|
-
import { InstantiateObjectOptions,
|
|
6
|
-
import {
|
|
7
|
-
import { UAStateMachineEx
|
|
5
|
+
import type { InstantiateObjectOptions, UAObjectType } from "node-opcua-address-space-base";
|
|
6
|
+
import type { UAProgramStateMachine_Base } from "node-opcua-nodeset-ua";
|
|
7
|
+
import type { UAStateMachineEx } from "./ua_state_machine_type";
|
|
8
8
|
|
|
9
9
|
export interface UAProgramStateMachineEx extends UAStateMachineEx {
|
|
10
10
|
/** empty interface */
|
|
@@ -1,18 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { DataType } from "node-opcua-basic-types";
|
|
3
|
-
import {
|
|
4
|
-
import { UAStateMachineEx } from "./ua_state_machine_type";
|
|
1
|
+
import type { UAMethod, UAProperty } from "node-opcua-address-space-base";
|
|
2
|
+
import type { DataType } from "node-opcua-basic-types";
|
|
3
|
+
import type { UAShelvedStateMachine_Base, UAState } from "node-opcua-nodeset-ua";
|
|
4
|
+
import type { UAStateMachineEx } from "./ua_state_machine_type";
|
|
5
5
|
|
|
6
|
-
import { UATransitionEx } from "./ua_transition_ex";
|
|
6
|
+
import type { UATransitionEx } from "./ua_transition_ex";
|
|
7
7
|
|
|
8
8
|
export interface UAShelvedStateMachineHelper {
|
|
9
|
-
_timer: NodeJS.
|
|
9
|
+
_timer: NodeJS.Timeout | null;
|
|
10
10
|
_shelvedTime: Date;
|
|
11
11
|
_unshelvedTime: Date;
|
|
12
12
|
_duration: number;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
export interface UAShelvedStateMachineEx
|
|
15
|
+
export interface UAShelvedStateMachineEx
|
|
16
|
+
extends Omit<UAShelvedStateMachine_Base, "currentState" | "lastTransition">,
|
|
17
|
+
UAStateMachineEx,
|
|
18
|
+
UAShelvedStateMachineHelper {
|
|
16
19
|
unshelveTime: UAProperty<number, /*z*/ DataType.Double>;
|
|
17
20
|
unshelved: UAState;
|
|
18
21
|
timedShelved: UAState;
|
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
* @module node-opcua-address-space
|
|
3
3
|
*/
|
|
4
4
|
// tslint:disable:no-empty-interface
|
|
5
|
-
|
|
6
|
-
import {
|
|
7
|
-
import { DataType } from "node-opcua-variant";
|
|
8
|
-
import {
|
|
9
|
-
UAProperty,
|
|
5
|
+
|
|
6
|
+
import type {
|
|
10
7
|
InstantiateObjectOptions,
|
|
11
8
|
UAObject,
|
|
12
9
|
UAObjectType,
|
|
10
|
+
UAProperty,
|
|
13
11
|
UAReferenceType,
|
|
14
12
|
UAVariableTypeT
|
|
15
13
|
} from "node-opcua-address-space-base";
|
|
16
|
-
import {
|
|
14
|
+
import type { DateTime, UInt32 } from "node-opcua-basic-types";
|
|
15
|
+
import type { LocalizedText } from "node-opcua-data-model";
|
|
16
|
+
import type {
|
|
17
17
|
UAInitialState,
|
|
18
18
|
UAInitialState_Base,
|
|
19
19
|
UAState,
|
|
@@ -22,8 +22,9 @@ import {
|
|
|
22
22
|
UATransition_Base,
|
|
23
23
|
UATransitionEvent_Base
|
|
24
24
|
} from "node-opcua-nodeset-ua";
|
|
25
|
+
import type { DataType } from "node-opcua-variant";
|
|
25
26
|
|
|
26
|
-
import { UATransitionEx } from "./ua_transition_ex";
|
|
27
|
+
import type { UATransitionEx } from "./ua_transition_ex";
|
|
27
28
|
|
|
28
29
|
export type UtcTime = DateTime;
|
|
29
30
|
|
|
@@ -262,7 +263,9 @@ export interface UAStateMachineHelper {
|
|
|
262
263
|
setState(toStateNode: UAState | string | null, predicate?: TransitionSelector): void;
|
|
263
264
|
}
|
|
264
265
|
|
|
265
|
-
export interface UAStateMachineEx extends UAObject, UAStateMachineHelper, UAStateMachine_Base {
|
|
266
|
+
export interface UAStateMachineEx extends UAObject, UAStateMachineHelper, UAStateMachine_Base {
|
|
267
|
+
_currentStateNode: UAState | null;
|
|
268
|
+
}
|
|
266
269
|
|
|
267
270
|
export interface UAStateMachineTypeHelper extends UAObjectType {
|
|
268
271
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BaseNode } from "node-opcua-address-space-base";
|
|
2
|
-
import { UATransition } from "node-opcua-nodeset-ua";
|
|
1
|
+
import type { BaseNode } from "node-opcua-address-space-base";
|
|
2
|
+
import type { UATransition } from "node-opcua-nodeset-ua";
|
|
3
3
|
|
|
4
4
|
export interface UATransitionEx extends UATransition {
|
|
5
5
|
get toStateNode(): BaseNode | null;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module node-opcua-address-space
|
|
3
3
|
*/
|
|
4
|
-
|
|
5
|
-
import { DTSubscriptionDiagnostics, UASubscriptionDiagnostics } from "node-opcua-nodeset-ua";
|
|
4
|
+
|
|
5
|
+
import type { DTSubscriptionDiagnostics, UASubscriptionDiagnostics } from "node-opcua-nodeset-ua";
|
|
6
|
+
import type { SubscriptionDiagnosticsDataType } from "node-opcua-types";
|
|
6
7
|
export interface UASubscriptionDiagnosticsVariableEx extends UASubscriptionDiagnostics<DTSubscriptionDiagnostics> {
|
|
7
8
|
$extensionObject: SubscriptionDiagnosticsDataType;
|
|
8
9
|
}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { IAddressSpace, UADataType } from "node-opcua-address-space-base";
|
|
1
|
+
import type { IAddressSpace, UADataType } from "node-opcua-address-space-base";
|
|
2
2
|
import { checkDebugFlag, make_debugLog, make_errorLog } from "node-opcua-debug";
|
|
3
|
-
import { ExtensionObject } from "node-opcua-extension-object";
|
|
4
|
-
import { NodeId
|
|
3
|
+
import type { ExtensionObject } from "node-opcua-extension-object";
|
|
4
|
+
import type { NodeId } from "node-opcua-nodeid";
|
|
5
5
|
import { NodeClass } from "node-opcua-types";
|
|
6
6
|
import { Xml2Json } from "node-opcua-xml2json";
|
|
7
7
|
|
|
8
|
-
import { DefinitionMap2, makeXmlExtensionObjectReader, TypeInfo } from "./make_xml_extension_object_parser";
|
|
8
|
+
import { type DefinitionMap2, makeXmlExtensionObjectReader, type TypeInfo } from "./make_xml_extension_object_parser";
|
|
9
9
|
|
|
10
10
|
const doDebug = checkDebugFlag(__filename);
|
|
11
11
|
const debugLog = make_debugLog(__filename);
|
|
12
|
-
const
|
|
12
|
+
const _errorLog = make_errorLog(__filename);
|
|
13
13
|
|
|
14
14
|
function encodingNodeIdToDataTypeNode(addressSpace: IAddressSpace, encodingNodeId: NodeId): UADataType {
|
|
15
15
|
const encodingNode = addressSpace.findNode(encodingNodeId)!;
|
|
16
16
|
|
|
17
17
|
// c8 ignore next
|
|
18
18
|
if (!encodingNode) {
|
|
19
|
-
throw new Error(
|
|
19
|
+
throw new Error(`findDataTypeNode: Cannot find encoding NodeId${encodingNodeId.toString()}`);
|
|
20
20
|
}
|
|
21
21
|
const refs = encodingNode.findReferences("HasEncoding", false);
|
|
22
22
|
const dataTypes = refs.map((ref) => addressSpace.findNode(ref.nodeId)).filter((obj: any) => obj !== null);
|
|
@@ -33,7 +33,7 @@ export function makeDefinitionMap(addressSpace: IAddressSpace): DefinitionMap2 {
|
|
|
33
33
|
findDefinition(dataTypeNodeId: NodeId): TypeInfo {
|
|
34
34
|
const dataTypeNode = addressSpace.findDataType(dataTypeNodeId);
|
|
35
35
|
if (!dataTypeNode) {
|
|
36
|
-
throw new Error(
|
|
36
|
+
throw new Error(`findDefinition: cannot find dataType ${dataTypeNodeId.toString()}`);
|
|
37
37
|
}
|
|
38
38
|
if (dataTypeNode.nodeClass !== NodeClass.DataType) {
|
|
39
39
|
throw new Error("Expecting a DataType node here");
|