node-opcua-address-space 2.183.1 → 2.184.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/api/helpers/adjust_browse_direction.ts +1 -1
- package/api/helpers/argument_list.ts +9 -9
- package/api/helpers/coerce_enum_value.ts +1 -0
- package/api/helpers/dump_tools.ts +1 -1
- package/api/index.ts +2 -1
- package/api/interfaces/data_access/ua_multistate_discrete_ex.ts +1 -1
- package/api/interfaces/nodeset_loader_options.ts +17 -0
- package/api/loader/decode_xml_extension_object.ts +1 -1
- package/api/loader/ensure_datatype_extracted.ts +73 -37
- package/api/loader/generateAddressSpaceRaw.ts +32 -22
- package/api/loader/load_nodeset2.ts +2 -2
- package/api/loader/namespace_post_step.ts +1 -1
- package/api/loader/narrow_instance_datatypes.ts +22 -9
- package/api/loader/nodeset_image_codec.ts +26 -12
- package/api/loader/nodeset_record_applier.ts +1 -1
- package/api/loader/nodeset_xml_producer.ts +8 -6
- package/api/loader/parsers/extension_object_parser.ts +3 -3
- package/api/pseudo_session.ts +1 -1
- package/bin/{nodeset_equivalence.js → nodeset_equivalence.cjs} +1 -1
- package/bin/{opcua-nodeset-image.js → opcua-nodeset-image.cjs} +1 -1
- package/bin/{opcua-nodeset-live.js → opcua-nodeset-live.cjs} +2 -2
- package/dist/api/address_space_public.d.ts +1 -0
- package/dist/api/address_space_public.d.ts.map +1 -0
- package/dist/api/address_space_public.js +2 -5
- package/dist/api/address_space_public.js.map +1 -1
- package/dist/api/address_space_ts.d.ts +1 -0
- package/dist/api/address_space_ts.d.ts.map +1 -0
- package/dist/api/address_space_ts.js +2 -5
- package/dist/api/address_space_ts.js.map +1 -1
- package/dist/api/continuation_points/continuation_point_manager.d.ts +1 -0
- package/dist/api/continuation_points/continuation_point_manager.d.ts.map +1 -0
- package/dist/api/continuation_points/continuation_point_manager.js +13 -17
- package/dist/api/continuation_points/continuation_point_manager.js.map +1 -1
- package/dist/api/helpers/adjust_browse_direction.d.ts +1 -0
- package/dist/api/helpers/adjust_browse_direction.d.ts.map +1 -0
- package/dist/api/helpers/adjust_browse_direction.js +2 -5
- package/dist/api/helpers/adjust_browse_direction.js.map +1 -1
- package/dist/api/helpers/argument_list.d.ts +1 -0
- package/dist/api/helpers/argument_list.d.ts.map +1 -0
- package/dist/api/helpers/argument_list.js +61 -69
- package/dist/api/helpers/argument_list.js.map +1 -1
- package/dist/api/helpers/call_helpers.d.ts +1 -0
- package/dist/api/helpers/call_helpers.d.ts.map +1 -0
- package/dist/api/helpers/call_helpers.js +25 -28
- package/dist/api/helpers/call_helpers.js.map +1 -1
- package/dist/api/helpers/coerce_enum_value.d.ts +1 -0
- package/dist/api/helpers/coerce_enum_value.d.ts.map +1 -0
- package/dist/api/helpers/coerce_enum_value.js +15 -17
- package/dist/api/helpers/coerce_enum_value.js.map +1 -1
- package/dist/api/helpers/dump_tools.d.ts +1 -0
- package/dist/api/helpers/dump_tools.d.ts.map +1 -0
- package/dist/api/helpers/dump_tools.js +19 -29
- package/dist/api/helpers/dump_tools.js.map +1 -1
- package/dist/api/helpers/ensure_secure_access.d.ts +1 -0
- package/dist/api/helpers/ensure_secure_access.d.ts.map +1 -0
- package/dist/api/helpers/ensure_secure_access.js +24 -28
- package/dist/api/helpers/ensure_secure_access.js.map +1 -1
- package/dist/api/helpers/make_optionals_map.d.ts +1 -0
- package/dist/api/helpers/make_optionals_map.d.ts.map +1 -0
- package/dist/api/helpers/make_optionals_map.js +1 -4
- package/dist/api/helpers/make_optionals_map.js.map +1 -1
- package/dist/api/helpers/multiform_func.d.ts +1 -0
- package/dist/api/helpers/multiform_func.d.ts.map +1 -0
- package/dist/api/helpers/multiform_func.js +4 -8
- package/dist/api/helpers/multiform_func.js.map +1 -1
- package/dist/api/helpers/resolve_opaque_on_address_space.d.ts +1 -0
- package/dist/api/helpers/resolve_opaque_on_address_space.d.ts.map +1 -0
- package/dist/api/helpers/resolve_opaque_on_address_space.js +10 -13
- package/dist/api/helpers/resolve_opaque_on_address_space.js.map +1 -1
- package/dist/api/index.d.ts +3 -1
- package/dist/api/index.d.ts.map +1 -0
- package/dist/api/index.js +93 -218
- package/dist/api/index.js.map +1 -1
- package/dist/api/interfaces/alarms_and_conditions/condition_info_i.d.ts +1 -0
- package/dist/api/interfaces/alarms_and_conditions/condition_info_i.d.ts.map +1 -0
- package/dist/api/interfaces/alarms_and_conditions/condition_info_i.js +2 -5
- package/dist/api/interfaces/alarms_and_conditions/condition_info_i.js.map +1 -1
- package/dist/api/interfaces/alarms_and_conditions/condition_snapshot.d.ts +1 -0
- package/dist/api/interfaces/alarms_and_conditions/condition_snapshot.d.ts.map +1 -0
- package/dist/api/interfaces/alarms_and_conditions/condition_snapshot.js +1 -2
- package/dist/api/interfaces/alarms_and_conditions/deviation_stuff.d.ts +1 -0
- package/dist/api/interfaces/alarms_and_conditions/deviation_stuff.d.ts.map +1 -0
- package/dist/api/interfaces/alarms_and_conditions/deviation_stuff.js +1 -2
- package/dist/api/interfaces/alarms_and_conditions/install_setpoint_options.d.ts +1 -0
- package/dist/api/interfaces/alarms_and_conditions/install_setpoint_options.d.ts.map +1 -0
- package/dist/api/interfaces/alarms_and_conditions/install_setpoint_options.js +1 -2
- package/dist/api/interfaces/alarms_and_conditions/instantiate_alarm_condition_options.d.ts +1 -0
- package/dist/api/interfaces/alarms_and_conditions/instantiate_alarm_condition_options.d.ts.map +1 -0
- package/dist/api/interfaces/alarms_and_conditions/instantiate_alarm_condition_options.js +1 -2
- package/dist/api/interfaces/alarms_and_conditions/instantiate_condition_options.d.ts +1 -0
- package/dist/api/interfaces/alarms_and_conditions/instantiate_condition_options.d.ts.map +1 -0
- package/dist/api/interfaces/alarms_and_conditions/instantiate_condition_options.js +1 -2
- package/dist/api/interfaces/alarms_and_conditions/instantiate_exclusive_deviation_alarm_options.d.ts +1 -0
- package/dist/api/interfaces/alarms_and_conditions/instantiate_exclusive_deviation_alarm_options.d.ts.map +1 -0
- package/dist/api/interfaces/alarms_and_conditions/instantiate_exclusive_deviation_alarm_options.js +1 -2
- package/dist/api/interfaces/alarms_and_conditions/instantiate_exclusive_limit_alarm_options.d.ts +1 -0
- package/dist/api/interfaces/alarms_and_conditions/instantiate_exclusive_limit_alarm_options.d.ts.map +1 -0
- package/dist/api/interfaces/alarms_and_conditions/instantiate_exclusive_limit_alarm_options.js +1 -2
- package/dist/api/interfaces/alarms_and_conditions/instantiate_limit_alarm_options.d.ts +1 -0
- package/dist/api/interfaces/alarms_and_conditions/instantiate_limit_alarm_options.d.ts.map +1 -0
- package/dist/api/interfaces/alarms_and_conditions/instantiate_limit_alarm_options.js +1 -2
- package/dist/api/interfaces/alarms_and_conditions/instantiate_non_exclusive_deviation_alarm_options.d.ts +1 -0
- package/dist/api/interfaces/alarms_and_conditions/instantiate_non_exclusive_deviation_alarm_options.d.ts.map +1 -0
- package/dist/api/interfaces/alarms_and_conditions/instantiate_non_exclusive_deviation_alarm_options.js +1 -2
- package/dist/api/interfaces/alarms_and_conditions/instantiate_non_exclusive_limit_alarm_options.d.ts +1 -0
- package/dist/api/interfaces/alarms_and_conditions/instantiate_non_exclusive_limit_alarm_options.d.ts.map +1 -0
- package/dist/api/interfaces/alarms_and_conditions/instantiate_non_exclusive_limit_alarm_options.js +1 -2
- package/dist/api/interfaces/alarms_and_conditions/instantiate_off_normal_alarm_options.d.ts +1 -0
- package/dist/api/interfaces/alarms_and_conditions/instantiate_off_normal_alarm_options.d.ts.map +1 -0
- package/dist/api/interfaces/alarms_and_conditions/instantiate_off_normal_alarm_options.js +1 -2
- package/dist/api/interfaces/alarms_and_conditions/promote_to_alarm_options.d.ts +1 -0
- package/dist/api/interfaces/alarms_and_conditions/promote_to_alarm_options.d.ts.map +1 -0
- package/dist/api/interfaces/alarms_and_conditions/promote_to_alarm_options.js +1 -2
- package/dist/api/interfaces/alarms_and_conditions/ua_acknowledgeable_condition_ex.d.ts +1 -0
- package/dist/api/interfaces/alarms_and_conditions/ua_acknowledgeable_condition_ex.d.ts.map +1 -0
- package/dist/api/interfaces/alarms_and_conditions/ua_acknowledgeable_condition_ex.js +1 -2
- package/dist/api/interfaces/alarms_and_conditions/ua_alarm_condition_ex.d.ts +1 -0
- package/dist/api/interfaces/alarms_and_conditions/ua_alarm_condition_ex.d.ts.map +1 -0
- package/dist/api/interfaces/alarms_and_conditions/ua_alarm_condition_ex.js +1 -2
- package/dist/api/interfaces/alarms_and_conditions/ua_base_event_ex.d.ts +1 -0
- package/dist/api/interfaces/alarms_and_conditions/ua_base_event_ex.d.ts.map +1 -0
- package/dist/api/interfaces/alarms_and_conditions/ua_base_event_ex.js +1 -2
- package/dist/api/interfaces/alarms_and_conditions/ua_certificate_expiration_alarm_ex.d.ts +1 -0
- package/dist/api/interfaces/alarms_and_conditions/ua_certificate_expiration_alarm_ex.d.ts.map +1 -0
- package/dist/api/interfaces/alarms_and_conditions/ua_certificate_expiration_alarm_ex.js +1 -2
- package/dist/api/interfaces/alarms_and_conditions/ua_condition_ex.d.ts +1 -0
- package/dist/api/interfaces/alarms_and_conditions/ua_condition_ex.d.ts.map +1 -0
- package/dist/api/interfaces/alarms_and_conditions/ua_condition_ex.js +1 -2
- package/dist/api/interfaces/alarms_and_conditions/ua_discrete_alarm_ex.d.ts +1 -0
- package/dist/api/interfaces/alarms_and_conditions/ua_discrete_alarm_ex.d.ts.map +1 -0
- package/dist/api/interfaces/alarms_and_conditions/ua_discrete_alarm_ex.js +1 -2
- package/dist/api/interfaces/alarms_and_conditions/ua_exclusive_deviation_alarm_ex.d.ts +1 -0
- package/dist/api/interfaces/alarms_and_conditions/ua_exclusive_deviation_alarm_ex.d.ts.map +1 -0
- package/dist/api/interfaces/alarms_and_conditions/ua_exclusive_deviation_alarm_ex.js +1 -2
- package/dist/api/interfaces/alarms_and_conditions/ua_exclusive_limit_alarm_ex.d.ts +1 -0
- package/dist/api/interfaces/alarms_and_conditions/ua_exclusive_limit_alarm_ex.d.ts.map +1 -0
- package/dist/api/interfaces/alarms_and_conditions/ua_exclusive_limit_alarm_ex.js +1 -2
- package/dist/api/interfaces/alarms_and_conditions/ua_limit_alarm_ex.d.ts +1 -0
- package/dist/api/interfaces/alarms_and_conditions/ua_limit_alarm_ex.d.ts.map +1 -0
- package/dist/api/interfaces/alarms_and_conditions/ua_limit_alarm_ex.js +1 -2
- package/dist/api/interfaces/alarms_and_conditions/ua_non_exclusive_deviation_alarm_ex.d.ts +1 -0
- package/dist/api/interfaces/alarms_and_conditions/ua_non_exclusive_deviation_alarm_ex.d.ts.map +1 -0
- package/dist/api/interfaces/alarms_and_conditions/ua_non_exclusive_deviation_alarm_ex.js +1 -2
- package/dist/api/interfaces/alarms_and_conditions/ua_non_exclusive_limit_alarm_ex.d.ts +1 -0
- package/dist/api/interfaces/alarms_and_conditions/ua_non_exclusive_limit_alarm_ex.d.ts.map +1 -0
- package/dist/api/interfaces/alarms_and_conditions/ua_non_exclusive_limit_alarm_ex.js +1 -2
- package/dist/api/interfaces/data_access/ua_multistate_discrete_ex.d.ts +2 -1
- package/dist/api/interfaces/data_access/ua_multistate_discrete_ex.d.ts.map +1 -0
- package/dist/api/interfaces/data_access/ua_multistate_discrete_ex.js +1 -2
- package/dist/api/interfaces/data_access/ua_multistate_value_discrete_ex.d.ts +1 -0
- package/dist/api/interfaces/data_access/ua_multistate_value_discrete_ex.d.ts.map +1 -0
- package/dist/api/interfaces/data_access/ua_multistate_value_discrete_ex.js +1 -2
- package/dist/api/interfaces/data_access/ua_two_state_discrete_ex.d.ts +1 -0
- package/dist/api/interfaces/data_access/ua_two_state_discrete_ex.d.ts.map +1 -0
- package/dist/api/interfaces/data_access/ua_two_state_discrete_ex.js +1 -2
- package/dist/api/interfaces/data_access/ua_y_array_item_ex.d.ts +1 -0
- package/dist/api/interfaces/data_access/ua_y_array_item_ex.d.ts.map +1 -0
- package/dist/api/interfaces/data_access/ua_y_array_item_ex.js +1 -2
- package/dist/api/interfaces/extension_object_constructor.d.ts +1 -0
- package/dist/api/interfaces/extension_object_constructor.d.ts.map +1 -0
- package/dist/api/interfaces/extension_object_constructor.js +1 -2
- package/dist/api/interfaces/i_condition_variable_type_setter_options.d.ts +1 -0
- package/dist/api/interfaces/i_condition_variable_type_setter_options.d.ts.map +1 -0
- package/dist/api/interfaces/i_condition_variable_type_setter_options.js +1 -2
- package/dist/api/interfaces/i_set_state_options.d.ts +1 -0
- package/dist/api/interfaces/i_set_state_options.d.ts.map +1 -0
- package/dist/api/interfaces/i_set_state_options.js +1 -2
- package/dist/api/interfaces/nodeset_loader_options.d.ts +18 -0
- package/dist/api/interfaces/nodeset_loader_options.d.ts.map +1 -0
- package/dist/api/interfaces/nodeset_loader_options.js +1 -2
- package/dist/api/interfaces/state_machine/ua_exclusive_limit_state_machine_type_ex.d.ts +1 -0
- package/dist/api/interfaces/state_machine/ua_exclusive_limit_state_machine_type_ex.d.ts.map +1 -0
- package/dist/api/interfaces/state_machine/ua_exclusive_limit_state_machine_type_ex.js +1 -2
- package/dist/api/interfaces/state_machine/ua_finite_state_machine_type.d.ts +1 -0
- package/dist/api/interfaces/state_machine/ua_finite_state_machine_type.d.ts.map +1 -0
- package/dist/api/interfaces/state_machine/ua_finite_state_machine_type.js +1 -2
- package/dist/api/interfaces/state_machine/ua_program_state_machine_type.d.ts +1 -0
- package/dist/api/interfaces/state_machine/ua_program_state_machine_type.d.ts.map +1 -0
- package/dist/api/interfaces/state_machine/ua_program_state_machine_type.js +1 -2
- package/dist/api/interfaces/state_machine/ua_shelved_state_machine_ex.d.ts +1 -0
- package/dist/api/interfaces/state_machine/ua_shelved_state_machine_ex.d.ts.map +1 -0
- package/dist/api/interfaces/state_machine/ua_shelved_state_machine_ex.js +1 -2
- package/dist/api/interfaces/state_machine/ua_state_machine_type.d.ts +1 -0
- package/dist/api/interfaces/state_machine/ua_state_machine_type.d.ts.map +1 -0
- package/dist/api/interfaces/state_machine/ua_state_machine_type.js +1 -2
- package/dist/api/interfaces/state_machine/ua_state_machine_type.js.map +1 -1
- package/dist/api/interfaces/state_machine/ua_transition_ex.d.ts +1 -0
- package/dist/api/interfaces/state_machine/ua_transition_ex.d.ts.map +1 -0
- package/dist/api/interfaces/state_machine/ua_transition_ex.js +1 -2
- package/dist/api/interfaces/ua_subscription_diagnostics_variable_ex.d.ts +1 -0
- package/dist/api/interfaces/ua_subscription_diagnostics_variable_ex.d.ts.map +1 -0
- package/dist/api/interfaces/ua_subscription_diagnostics_variable_ex.js +1 -2
- package/dist/api/interfaces/ua_subscription_diagnostics_variable_ex.js.map +1 -1
- package/dist/api/loader/decode_xml_extension_object.d.ts +1 -0
- package/dist/api/loader/decode_xml_extension_object.d.ts.map +1 -0
- package/dist/api/loader/decode_xml_extension_object.js +13 -17
- package/dist/api/loader/decode_xml_extension_object.js.map +1 -1
- package/dist/api/loader/ensure_datatype_extracted.d.ts +1 -0
- package/dist/api/loader/ensure_datatype_extracted.d.ts.map +1 -0
- package/dist/api/loader/ensure_datatype_extracted.js +83 -52
- package/dist/api/loader/ensure_datatype_extracted.js.map +1 -1
- package/dist/api/loader/generateAddressSpaceRaw.d.ts +1 -0
- package/dist/api/loader/generateAddressSpaceRaw.d.ts.map +1 -0
- package/dist/api/loader/generateAddressSpaceRaw.js +76 -74
- package/dist/api/loader/generateAddressSpaceRaw.js.map +1 -1
- package/dist/api/loader/load_nodeset2.d.ts +1 -0
- package/dist/api/loader/load_nodeset2.d.ts.map +1 -0
- package/dist/api/loader/load_nodeset2.js +44 -51
- package/dist/api/loader/load_nodeset2.js.map +1 -1
- package/dist/api/loader/make_semver_compatible.d.ts +1 -0
- package/dist/api/loader/make_semver_compatible.d.ts.map +1 -0
- package/dist/api/loader/make_semver_compatible.js +1 -4
- package/dist/api/loader/make_semver_compatible.js.map +1 -1
- package/dist/api/loader/make_xml_extension_object_parser.d.ts +1 -0
- package/dist/api/loader/make_xml_extension_object_parser.d.ts.map +1 -0
- package/dist/api/loader/make_xml_extension_object_parser.js +37 -40
- package/dist/api/loader/make_xml_extension_object_parser.js.map +1 -1
- package/dist/api/loader/namespace_post_step.d.ts +1 -0
- package/dist/api/loader/namespace_post_step.d.ts.map +1 -0
- package/dist/api/loader/namespace_post_step.js +12 -17
- package/dist/api/loader/namespace_post_step.js.map +1 -1
- package/dist/api/loader/narrow_instance_datatypes.d.ts +1 -0
- package/dist/api/loader/narrow_instance_datatypes.d.ts.map +1 -0
- package/dist/api/loader/narrow_instance_datatypes.js +38 -28
- package/dist/api/loader/narrow_instance_datatypes.js.map +1 -1
- package/dist/api/loader/nodeset_builtin_formats.d.ts +1 -0
- package/dist/api/loader/nodeset_builtin_formats.d.ts.map +1 -0
- package/dist/api/loader/nodeset_builtin_formats.js +20 -25
- package/dist/api/loader/nodeset_builtin_formats.js.map +1 -1
- package/dist/api/loader/nodeset_format.d.ts +1 -0
- package/dist/api/loader/nodeset_format.d.ts.map +1 -0
- package/dist/api/loader/nodeset_format.js +4 -10
- package/dist/api/loader/nodeset_format.js.map +1 -1
- package/dist/api/loader/nodeset_image.d.ts +1 -0
- package/dist/api/loader/nodeset_image.d.ts.map +1 -0
- package/dist/api/loader/nodeset_image.js +38 -54
- package/dist/api/loader/nodeset_image.js.map +1 -1
- package/dist/api/loader/nodeset_image_codec.d.ts +1 -0
- package/dist/api/loader/nodeset_image_codec.d.ts.map +1 -0
- package/dist/api/loader/nodeset_image_codec.js +118 -116
- package/dist/api/loader/nodeset_image_codec.js.map +1 -1
- package/dist/api/loader/nodeset_image_store.d.ts +1 -0
- package/dist/api/loader/nodeset_image_store.d.ts.map +1 -0
- package/dist/api/loader/nodeset_image_store.js +5 -11
- package/dist/api/loader/nodeset_image_store.js.map +1 -1
- package/dist/api/loader/nodeset_record.d.ts +1 -0
- package/dist/api/loader/nodeset_record.d.ts.map +1 -0
- package/dist/api/loader/nodeset_record.js +3 -7
- package/dist/api/loader/nodeset_record.js.map +1 -1
- package/dist/api/loader/nodeset_record_applier.d.ts +1 -0
- package/dist/api/loader/nodeset_record_applier.d.ts.map +1 -0
- package/dist/api/loader/nodeset_record_applier.js +89 -97
- package/dist/api/loader/nodeset_record_applier.js.map +1 -1
- package/dist/api/loader/nodeset_records_to_xml.d.ts +1 -0
- package/dist/api/loader/nodeset_records_to_xml.d.ts.map +1 -0
- package/dist/api/loader/nodeset_records_to_xml.js +82 -88
- package/dist/api/loader/nodeset_records_to_xml.js.map +1 -1
- package/dist/api/loader/nodeset_source.d.ts +1 -0
- package/dist/api/loader/nodeset_source.d.ts.map +1 -0
- package/dist/api/loader/nodeset_source.js +14 -21
- package/dist/api/loader/nodeset_source.js.map +1 -1
- package/dist/api/loader/nodeset_source_helpers.d.ts +1 -0
- package/dist/api/loader/nodeset_source_helpers.d.ts.map +1 -0
- package/dist/api/loader/nodeset_source_helpers.js +2 -6
- package/dist/api/loader/nodeset_source_helpers.js.map +1 -1
- package/dist/api/loader/nodeset_to_image.d.ts +1 -0
- package/dist/api/loader/nodeset_to_image.d.ts.map +1 -0
- package/dist/api/loader/nodeset_to_image.js +12 -15
- package/dist/api/loader/nodeset_to_image.js.map +1 -1
- package/dist/api/loader/nodeset_xml_header.d.ts +1 -0
- package/dist/api/loader/nodeset_xml_header.d.ts.map +1 -0
- package/dist/api/loader/nodeset_xml_header.js +9 -14
- package/dist/api/loader/nodeset_xml_header.js.map +1 -1
- package/dist/api/loader/nodeset_xml_primitives.d.ts +1 -0
- package/dist/api/loader/nodeset_xml_primitives.d.ts.map +1 -0
- package/dist/api/loader/nodeset_xml_primitives.js +32 -53
- package/dist/api/loader/nodeset_xml_primitives.js.map +1 -1
- package/dist/api/loader/nodeset_xml_producer.d.ts +1 -0
- package/dist/api/loader/nodeset_xml_producer.d.ts.map +1 -0
- package/dist/api/loader/nodeset_xml_producer.js +49 -51
- package/dist/api/loader/nodeset_xml_producer.js.map +1 -1
- package/dist/api/loader/parsers/extension_object_parser.d.ts +1 -0
- package/dist/api/loader/parsers/extension_object_parser.d.ts.map +1 -0
- package/dist/api/loader/parsers/extension_object_parser.js +49 -57
- package/dist/api/loader/parsers/extension_object_parser.js.map +1 -1
- package/dist/api/loader/parsers/localized_text_parser.d.ts +1 -0
- package/dist/api/loader/parsers/localized_text_parser.d.ts.map +1 -0
- package/dist/api/loader/parsers/localized_text_parser.js +3 -6
- package/dist/api/loader/parsers/localized_text_parser.js.map +1 -1
- package/dist/api/loader/parsers/nodeid_parser.d.ts +1 -0
- package/dist/api/loader/parsers/nodeid_parser.d.ts.map +1 -0
- package/dist/api/loader/parsers/nodeid_parser.js +3 -7
- package/dist/api/loader/parsers/nodeid_parser.js.map +1 -1
- package/dist/api/loader/parsers/qualified_name_parser.d.ts +1 -0
- package/dist/api/loader/parsers/qualified_name_parser.d.ts.map +1 -0
- package/dist/api/loader/parsers/qualified_name_parser.js +5 -9
- package/dist/api/loader/parsers/qualified_name_parser.js.map +1 -1
- package/dist/api/loader/parsers/variant_parser.d.ts +1 -0
- package/dist/api/loader/parsers/variant_parser.d.ts.map +1 -0
- package/dist/api/loader/parsers/variant_parser.js +59 -63
- package/dist/api/loader/parsers/variant_parser.js.map +1 -1
- package/dist/api/loader/register_node_promoter.d.ts +1 -0
- package/dist/api/loader/register_node_promoter.d.ts.map +1 -0
- package/dist/api/loader/register_node_promoter.js +4 -7
- package/dist/api/loader/register_node_promoter.js.map +1 -1
- package/dist/api/namespace.d.ts +1 -0
- package/dist/api/namespace.d.ts.map +1 -0
- package/dist/api/namespace.js +1 -2
- package/dist/api/namespace_alarm_and_condition.d.ts +1 -0
- package/dist/api/namespace_alarm_and_condition.d.ts.map +1 -0
- package/dist/api/namespace_alarm_and_condition.js +1 -2
- package/dist/api/namespace_data_access.d.ts +1 -0
- package/dist/api/namespace_data_access.d.ts.map +1 -0
- package/dist/api/namespace_data_access.js +1 -2
- package/dist/api/namespace_machine_state.d.ts +1 -0
- package/dist/api/namespace_machine_state.d.ts.map +1 -0
- package/dist/api/namespace_machine_state.js +1 -2
- package/dist/api/namespace_of.d.ts +1 -0
- package/dist/api/namespace_of.d.ts.map +1 -0
- package/dist/api/namespace_of.js +1 -4
- package/dist/api/namespace_of.js.map +1 -1
- package/dist/api/pseudo_session.d.ts +1 -0
- package/dist/api/pseudo_session.d.ts.map +1 -0
- package/dist/api/pseudo_session.js +56 -62
- package/dist/api/pseudo_session.js.map +1 -1
- package/dist/api/session_context.d.ts +1 -0
- package/dist/api/session_context.d.ts.map +1 -0
- package/dist/api/session_context.js +60 -68
- package/dist/api/session_context.js.map +1 -1
- package/dist/api/set_namespace_meta_data.d.ts +1 -0
- package/dist/api/set_namespace_meta_data.d.ts.map +1 -0
- package/dist/api/set_namespace_meta_data.js +10 -13
- package/dist/api/set_namespace_meta_data.js.map +1 -1
- package/dist/api/ua_addin.d.ts +1 -0
- package/dist/api/ua_addin.d.ts.map +1 -0
- package/dist/api/ua_addin.js +9 -13
- package/dist/api/ua_addin.js.map +1 -1
- package/dist/api/ua_interface.d.ts +1 -0
- package/dist/api/ua_interface.d.ts.map +1 -0
- package/dist/api/ua_interface.js +5 -8
- package/dist/api/ua_interface.js.map +1 -1
- package/dist/api/ua_root_folder.d.ts +1 -0
- package/dist/api/ua_root_folder.d.ts.map +1 -0
- package/dist/api/ua_root_folder.js +1 -2
- package/dist/api/ua_two_state_variable_ex.d.ts +1 -0
- package/dist/api/ua_two_state_variable_ex.d.ts.map +1 -0
- package/dist/api/ua_two_state_variable_ex.js +1 -2
- package/dist/api/xml_writer.d.ts +1 -0
- package/dist/api/xml_writer.d.ts.map +1 -0
- package/dist/api/xml_writer.js +1 -2
- package/dist/impl/_instantiate_helpers.d.ts +1 -0
- package/dist/impl/_instantiate_helpers.d.ts.map +1 -0
- package/dist/impl/_instantiate_helpers.js +25 -31
- package/dist/impl/_instantiate_helpers.js.map +1 -1
- package/dist/impl/_mandatory_child_or_requested_optional_filter.d.ts +1 -0
- package/dist/impl/_mandatory_child_or_requested_optional_filter.d.ts.map +1 -0
- package/dist/impl/_mandatory_child_or_requested_optional_filter.js +16 -20
- package/dist/impl/_mandatory_child_or_requested_optional_filter.js.map +1 -1
- package/dist/impl/address_space.d.ts +40 -0
- package/dist/impl/address_space.d.ts.map +1 -0
- package/dist/impl/address_space.js +246 -189
- package/dist/impl/address_space.js.map +1 -1
- package/dist/impl/address_space_change_event_tools.d.ts +1 -0
- package/dist/impl/address_space_change_event_tools.d.ts.map +1 -0
- package/dist/impl/address_space_change_event_tools.js +31 -29
- package/dist/impl/address_space_change_event_tools.js.map +1 -1
- package/dist/impl/address_space_private.d.ts +2 -0
- package/dist/impl/address_space_private.d.ts.map +1 -0
- package/dist/impl/address_space_private.js +1 -2
- package/dist/impl/address_space_private.js.map +1 -1
- package/dist/impl/alarms_and_conditions/condition.d.ts +1 -0
- package/dist/impl/alarms_and_conditions/condition.d.ts.map +1 -0
- package/dist/impl/alarms_and_conditions/condition.js +1 -2
- package/dist/impl/alarms_and_conditions/condition.js.map +1 -1
- package/dist/impl/alarms_and_conditions/condition_info_impl.d.ts +1 -0
- package/dist/impl/alarms_and_conditions/condition_info_impl.d.ts.map +1 -0
- package/dist/impl/alarms_and_conditions/condition_info_impl.js +3 -7
- package/dist/impl/alarms_and_conditions/condition_info_impl.js.map +1 -1
- package/dist/impl/alarms_and_conditions/condition_snapshot_impl.d.ts +1 -0
- package/dist/impl/alarms_and_conditions/condition_snapshot_impl.d.ts.map +1 -0
- package/dist/impl/alarms_and_conditions/condition_snapshot_impl.js +77 -81
- package/dist/impl/alarms_and_conditions/condition_snapshot_impl.js.map +1 -1
- package/dist/impl/alarms_and_conditions/deviation_alarm_helper.d.ts +1 -0
- package/dist/impl/alarms_and_conditions/deviation_alarm_helper.d.ts.map +1 -0
- package/dist/impl/alarms_and_conditions/deviation_alarm_helper.js +14 -20
- package/dist/impl/alarms_and_conditions/deviation_alarm_helper.js.map +1 -1
- package/dist/impl/alarms_and_conditions/index.d.ts +1 -0
- package/dist/impl/alarms_and_conditions/index.d.ts.map +1 -0
- package/dist/impl/alarms_and_conditions/index.js +13 -29
- package/dist/impl/alarms_and_conditions/index.js.map +1 -1
- package/dist/impl/alarms_and_conditions/ua_acknowledgeable_condition_impl.d.ts +1 -0
- package/dist/impl/alarms_and_conditions/ua_acknowledgeable_condition_impl.d.ts.map +1 -0
- package/dist/impl/alarms_and_conditions/ua_acknowledgeable_condition_impl.js +60 -65
- package/dist/impl/alarms_and_conditions/ua_acknowledgeable_condition_impl.js.map +1 -1
- package/dist/impl/alarms_and_conditions/ua_alarm_condition_impl.d.ts +1 -0
- package/dist/impl/alarms_and_conditions/ua_alarm_condition_impl.d.ts.map +1 -0
- package/dist/impl/alarms_and_conditions/ua_alarm_condition_impl.js +53 -59
- package/dist/impl/alarms_and_conditions/ua_alarm_condition_impl.js.map +1 -1
- package/dist/impl/alarms_and_conditions/ua_base_event_impl.d.ts +1 -0
- package/dist/impl/alarms_and_conditions/ua_base_event_impl.d.ts.map +1 -0
- package/dist/impl/alarms_and_conditions/ua_base_event_impl.js +12 -16
- package/dist/impl/alarms_and_conditions/ua_base_event_impl.js.map +1 -1
- package/dist/impl/alarms_and_conditions/ua_certificate_expiration_alarm_impl.d.ts +1 -0
- package/dist/impl/alarms_and_conditions/ua_certificate_expiration_alarm_impl.d.ts.map +1 -0
- package/dist/impl/alarms_and_conditions/ua_certificate_expiration_alarm_impl.js +34 -39
- package/dist/impl/alarms_and_conditions/ua_certificate_expiration_alarm_impl.js.map +1 -1
- package/dist/impl/alarms_and_conditions/ua_condition_impl.d.ts +1 -0
- package/dist/impl/alarms_and_conditions/ua_condition_impl.d.ts.map +1 -0
- package/dist/impl/alarms_and_conditions/ua_condition_impl.js +140 -148
- package/dist/impl/alarms_and_conditions/ua_condition_impl.js.map +1 -1
- package/dist/impl/alarms_and_conditions/ua_discrete_alarm_impl.d.ts +1 -0
- package/dist/impl/alarms_and_conditions/ua_discrete_alarm_impl.d.ts.map +1 -0
- package/dist/impl/alarms_and_conditions/ua_discrete_alarm_impl.js +6 -10
- package/dist/impl/alarms_and_conditions/ua_discrete_alarm_impl.js.map +1 -1
- package/dist/impl/alarms_and_conditions/ua_exclusive_deviation_alarm_impl.d.ts +1 -0
- package/dist/impl/alarms_and_conditions/ua_exclusive_deviation_alarm_impl.d.ts.map +1 -0
- package/dist/impl/alarms_and_conditions/ua_exclusive_deviation_alarm_impl.js +18 -22
- package/dist/impl/alarms_and_conditions/ua_exclusive_deviation_alarm_impl.js.map +1 -1
- package/dist/impl/alarms_and_conditions/ua_exclusive_level_alarm_impl.d.ts +1 -0
- package/dist/impl/alarms_and_conditions/ua_exclusive_level_alarm_impl.d.ts.map +1 -0
- package/dist/impl/alarms_and_conditions/ua_exclusive_level_alarm_impl.js +3 -7
- package/dist/impl/alarms_and_conditions/ua_exclusive_level_alarm_impl.js.map +1 -1
- package/dist/impl/alarms_and_conditions/ua_exclusive_limit_alarm_impl.d.ts +1 -0
- package/dist/impl/alarms_and_conditions/ua_exclusive_limit_alarm_impl.d.ts.map +1 -0
- package/dist/impl/alarms_and_conditions/ua_exclusive_limit_alarm_impl.js +14 -18
- package/dist/impl/alarms_and_conditions/ua_exclusive_limit_alarm_impl.js.map +1 -1
- package/dist/impl/alarms_and_conditions/ua_exclusive_rate_of_change_alarm_impl.d.ts +1 -0
- package/dist/impl/alarms_and_conditions/ua_exclusive_rate_of_change_alarm_impl.d.ts.map +1 -0
- package/dist/impl/alarms_and_conditions/ua_exclusive_rate_of_change_alarm_impl.js +2 -6
- package/dist/impl/alarms_and_conditions/ua_exclusive_rate_of_change_alarm_impl.js.map +1 -1
- package/dist/impl/alarms_and_conditions/ua_limit_alarm_impl.d.ts +1 -0
- package/dist/impl/alarms_and_conditions/ua_limit_alarm_impl.d.ts.map +1 -0
- package/dist/impl/alarms_and_conditions/ua_limit_alarm_impl.js +35 -39
- package/dist/impl/alarms_and_conditions/ua_limit_alarm_impl.js.map +1 -1
- package/dist/impl/alarms_and_conditions/ua_non_exclusive_deviation_alarm_impl.d.ts +1 -0
- package/dist/impl/alarms_and_conditions/ua_non_exclusive_deviation_alarm_impl.d.ts.map +1 -0
- package/dist/impl/alarms_and_conditions/ua_non_exclusive_deviation_alarm_impl.js +17 -21
- package/dist/impl/alarms_and_conditions/ua_non_exclusive_deviation_alarm_impl.js.map +1 -1
- package/dist/impl/alarms_and_conditions/ua_non_exclusive_limit_alarm_impl.d.ts +1 -0
- package/dist/impl/alarms_and_conditions/ua_non_exclusive_limit_alarm_impl.d.ts.map +1 -0
- package/dist/impl/alarms_and_conditions/ua_non_exclusive_limit_alarm_impl.js +27 -31
- package/dist/impl/alarms_and_conditions/ua_non_exclusive_limit_alarm_impl.js.map +1 -1
- package/dist/impl/alarms_and_conditions/ua_off_normal_alarm_impl.d.ts +1 -0
- package/dist/impl/alarms_and_conditions/ua_off_normal_alarm_impl.d.ts.map +1 -0
- package/dist/impl/alarms_and_conditions/ua_off_normal_alarm_impl.js +18 -22
- package/dist/impl/alarms_and_conditions/ua_off_normal_alarm_impl.js.map +1 -1
- package/dist/impl/alarms_and_conditions/ua_system_off_normal_alarm_impl.d.ts +1 -0
- package/dist/impl/alarms_and_conditions/ua_system_off_normal_alarm_impl.d.ts.map +1 -0
- package/dist/impl/alarms_and_conditions/ua_system_off_normal_alarm_impl.js +3 -7
- package/dist/impl/alarms_and_conditions/ua_system_off_normal_alarm_impl.js.map +1 -1
- package/dist/impl/apply_condition_refresh.d.ts +1 -0
- package/dist/impl/apply_condition_refresh.d.ts.map +1 -0
- package/dist/impl/apply_condition_refresh.js +1 -4
- package/dist/impl/apply_condition_refresh.js.map +1 -1
- package/dist/impl/base_node_impl.d.ts +1 -0
- package/dist/impl/base_node_impl.d.ts.map +1 -0
- package/dist/impl/base_node_impl.js +279 -292
- package/dist/impl/base_node_impl.js.map +1 -1
- package/dist/impl/base_node_private.d.ts +1 -0
- package/dist/impl/base_node_private.d.ts.map +1 -0
- package/dist/impl/base_node_private.js +168 -199
- package/dist/impl/base_node_private.js.map +1 -1
- package/dist/impl/bulk_load_clock.d.ts +35 -0
- package/dist/impl/bulk_load_clock.d.ts.map +1 -0
- package/dist/impl/bulk_load_clock.js +58 -0
- package/dist/impl/bulk_load_clock.js.map +1 -0
- package/dist/impl/check_value_rank_compatibility.d.ts +1 -0
- package/dist/impl/check_value_rank_compatibility.d.ts.map +1 -0
- package/dist/impl/check_value_rank_compatibility.js +1 -4
- package/dist/impl/check_value_rank_compatibility.js.map +1 -1
- package/dist/impl/child_accessors.d.ts +1 -0
- package/dist/impl/child_accessors.d.ts.map +1 -0
- package/dist/impl/child_accessors.js +10 -20
- package/dist/impl/child_accessors.js.map +1 -1
- package/dist/impl/data_access/add_dataItem_stuff.d.ts +1 -0
- package/dist/impl/data_access/add_dataItem_stuff.d.ts.map +1 -0
- package/dist/impl/data_access/add_dataItem_stuff.js +6 -9
- package/dist/impl/data_access/add_dataItem_stuff.js.map +1 -1
- package/dist/impl/data_access/adjust_datavalue_status_code.d.ts +1 -0
- package/dist/impl/data_access/adjust_datavalue_status_code.d.ts.map +1 -0
- package/dist/impl/data_access/adjust_datavalue_status_code.js +9 -12
- package/dist/impl/data_access/adjust_datavalue_status_code.js.map +1 -1
- package/dist/impl/data_access/semantics_changed.d.ts +12 -0
- package/dist/impl/data_access/semantics_changed.d.ts.map +1 -0
- package/dist/impl/data_access/semantics_changed.js +44 -10
- package/dist/impl/data_access/semantics_changed.js.map +1 -1
- package/dist/impl/data_access/ua_multistate_discrete_impl.d.ts +2 -1
- package/dist/impl/data_access/ua_multistate_discrete_impl.d.ts.map +1 -0
- package/dist/impl/data_access/ua_multistate_discrete_impl.js +35 -41
- package/dist/impl/data_access/ua_multistate_discrete_impl.js.map +1 -1
- package/dist/impl/data_access/ua_multistate_value_discrete_impl.d.ts +1 -0
- package/dist/impl/data_access/ua_multistate_value_discrete_impl.d.ts.map +1 -0
- package/dist/impl/data_access/ua_multistate_value_discrete_impl.js +71 -78
- package/dist/impl/data_access/ua_multistate_value_discrete_impl.js.map +1 -1
- package/dist/impl/data_access/ua_two_state_discrete_impl.d.ts +1 -0
- package/dist/impl/data_access/ua_two_state_discrete_impl.d.ts.map +1 -0
- package/dist/impl/data_access/ua_two_state_discrete_impl.js +27 -36
- package/dist/impl/data_access/ua_two_state_discrete_impl.js.map +1 -1
- package/dist/impl/event_data.d.ts +1 -0
- package/dist/impl/event_data.d.ts.map +1 -0
- package/dist/impl/event_data.js +15 -19
- package/dist/impl/event_data.js.map +1 -1
- package/dist/impl/event_layout.d.ts +1 -0
- package/dist/impl/event_layout.d.ts.map +1 -0
- package/dist/impl/event_layout.js +12 -16
- package/dist/impl/event_layout.js.map +1 -1
- package/dist/impl/extension_object_array_node.d.ts +1 -0
- package/dist/impl/extension_object_array_node.d.ts.map +1 -0
- package/dist/impl/extension_object_array_node.js +47 -53
- package/dist/impl/extension_object_array_node.js.map +1 -1
- package/dist/impl/get_basic_datatype.d.ts +1 -0
- package/dist/impl/get_basic_datatype.d.ts.map +1 -0
- package/dist/impl/get_basic_datatype.js +6 -10
- package/dist/impl/get_basic_datatype.js.map +1 -1
- package/dist/impl/handle_hierarchy_parent.d.ts +1 -0
- package/dist/impl/handle_hierarchy_parent.d.ts.map +1 -0
- package/dist/impl/handle_hierarchy_parent.js +26 -30
- package/dist/impl/handle_hierarchy_parent.js.map +1 -1
- package/dist/impl/historical_access/address_space_historical_data_node.d.ts +1 -0
- package/dist/impl/historical_access/address_space_historical_data_node.d.ts.map +1 -0
- package/dist/impl/historical_access/address_space_historical_data_node.js +76 -84
- package/dist/impl/historical_access/address_space_historical_data_node.js.map +1 -1
- package/dist/impl/historical_access/read_processed_details_hook.d.ts +1 -0
- package/dist/impl/historical_access/read_processed_details_hook.d.ts.map +1 -0
- package/dist/impl/historical_access/read_processed_details_hook.js +1 -4
- package/dist/impl/historical_access/read_processed_details_hook.js.map +1 -1
- package/dist/impl/historizer_factory.d.ts +1 -0
- package/dist/impl/historizer_factory.d.ts.map +1 -0
- package/dist/impl/historizer_factory.js +1 -4
- package/dist/impl/historizer_factory.js.map +1 -1
- package/dist/impl/idx_iterator.d.ts +1 -0
- package/dist/impl/idx_iterator.d.ts.map +1 -0
- package/dist/impl/idx_iterator.js +1 -5
- package/dist/impl/idx_iterator.js.map +1 -1
- package/dist/impl/namespace_impl.d.ts +32 -0
- package/dist/impl/namespace_impl.d.ts.map +1 -0
- package/dist/impl/namespace_impl.js +418 -318
- package/dist/impl/namespace_impl.js.map +1 -1
- package/dist/impl/namespace_private.d.ts +3 -0
- package/dist/impl/namespace_private.d.ts.map +1 -0
- package/dist/impl/namespace_private.js +3 -6
- package/dist/impl/namespace_private.js.map +1 -1
- package/dist/impl/nodeid_manager.d.ts +11 -0
- package/dist/impl/nodeid_manager.d.ts.map +1 -0
- package/dist/impl/nodeid_manager.js +52 -44
- package/dist/impl/nodeid_manager.js.map +1 -1
- package/dist/impl/nodeset_tools/adjust_namespace_array.d.ts +1 -0
- package/dist/impl/nodeset_tools/adjust_namespace_array.d.ts.map +1 -0
- package/dist/impl/nodeset_tools/adjust_namespace_array.js +1 -4
- package/dist/impl/nodeset_tools/adjust_namespace_array.js.map +1 -1
- package/dist/impl/nodeset_tools/construct_namespace_dependency.d.ts +1 -0
- package/dist/impl/nodeset_tools/construct_namespace_dependency.d.ts.map +1 -0
- package/dist/impl/nodeset_tools/construct_namespace_dependency.js +28 -39
- package/dist/impl/nodeset_tools/construct_namespace_dependency.js.map +1 -1
- package/dist/impl/nodeset_tools/dump_to_bsd.d.ts +1 -0
- package/dist/impl/nodeset_tools/dump_to_bsd.d.ts.map +1 -0
- package/dist/impl/nodeset_tools/dump_to_bsd.js +14 -20
- package/dist/impl/nodeset_tools/dump_to_bsd.js.map +1 -1
- package/dist/impl/nodeset_tools/nodeset_to_records.d.ts +1 -0
- package/dist/impl/nodeset_tools/nodeset_to_records.d.ts.map +1 -0
- package/dist/impl/nodeset_tools/nodeset_to_records.js +125 -139
- package/dist/impl/nodeset_tools/nodeset_to_records.js.map +1 -1
- package/dist/impl/nodeset_tools/nodeset_to_xml.d.ts +1 -0
- package/dist/impl/nodeset_tools/nodeset_to_xml.d.ts.map +1 -0
- package/dist/impl/nodeset_tools/nodeset_to_xml.js +190 -202
- package/dist/impl/nodeset_tools/nodeset_to_xml.js.map +1 -1
- package/dist/impl/private_namespace.d.ts +1 -0
- package/dist/impl/private_namespace.d.ts.map +1 -0
- package/dist/impl/private_namespace.js +3 -8
- package/dist/impl/private_namespace.js.map +1 -1
- package/dist/impl/reference_impl.d.ts +1 -0
- package/dist/impl/reference_impl.d.ts.map +1 -0
- package/dist/impl/reference_impl.js +24 -37
- package/dist/impl/reference_impl.js.map +1 -1
- package/dist/impl/reference_type_version.d.ts +1 -0
- package/dist/impl/reference_type_version.d.ts.map +1 -0
- package/dist/impl/reference_type_version.js +2 -5
- package/dist/impl/reference_type_version.js.map +1 -1
- package/dist/impl/role_permissions.d.ts +1 -0
- package/dist/impl/role_permissions.d.ts.map +1 -0
- package/dist/impl/role_permissions.js +3 -6
- package/dist/impl/role_permissions.js.map +1 -1
- package/dist/impl/state_machine/finite_state_machine.d.ts +1 -0
- package/dist/impl/state_machine/finite_state_machine.d.ts.map +1 -0
- package/dist/impl/state_machine/finite_state_machine.js +123 -97
- package/dist/impl/state_machine/finite_state_machine.js.map +1 -1
- package/dist/impl/state_machine/ua_shelving_state_machine_ex.d.ts +1 -0
- package/dist/impl/state_machine/ua_shelving_state_machine_ex.d.ts.map +1 -0
- package/dist/impl/state_machine/ua_shelving_state_machine_ex.js +57 -62
- package/dist/impl/state_machine/ua_shelving_state_machine_ex.js.map +1 -1
- package/dist/impl/state_machine/ua_two_state_variable.d.ts +1 -0
- package/dist/impl/state_machine/ua_two_state_variable.d.ts.map +1 -0
- package/dist/impl/state_machine/ua_two_state_variable.js +56 -63
- package/dist/impl/state_machine/ua_two_state_variable.js.map +1 -1
- package/dist/impl/tool_isSubtypeOf.d.ts +1 -0
- package/dist/impl/tool_isSubtypeOf.d.ts.map +1 -0
- package/dist/impl/tool_isSubtypeOf.js +27 -34
- package/dist/impl/tool_isSubtypeOf.js.map +1 -1
- package/dist/impl/ua_condition_type.d.ts +1 -0
- package/dist/impl/ua_condition_type.d.ts.map +1 -0
- package/dist/impl/ua_condition_type.js +1 -2
- package/dist/impl/ua_data_type_impl.d.ts +1 -0
- package/dist/impl/ua_data_type_impl.d.ts.map +1 -0
- package/dist/impl/ua_data_type_impl.js +99 -83
- package/dist/impl/ua_data_type_impl.js.map +1 -1
- package/dist/impl/ua_method_impl.d.ts +3 -2
- package/dist/impl/ua_method_impl.d.ts.map +1 -0
- package/dist/impl/ua_method_impl.js +74 -78
- package/dist/impl/ua_method_impl.js.map +1 -1
- package/dist/impl/ua_object_impl.d.ts +1 -0
- package/dist/impl/ua_object_impl.d.ts.map +1 -0
- package/dist/impl/ua_object_impl.js +48 -51
- package/dist/impl/ua_object_impl.js.map +1 -1
- package/dist/impl/ua_object_type_impl.d.ts +1 -0
- package/dist/impl/ua_object_type_impl.d.ts.map +1 -0
- package/dist/impl/ua_object_type_impl.js +35 -39
- package/dist/impl/ua_object_type_impl.js.map +1 -1
- package/dist/impl/ua_reference_type_impl.d.ts +2 -1
- package/dist/impl/ua_reference_type_impl.d.ts.map +1 -0
- package/dist/impl/ua_reference_type_impl.js +41 -45
- package/dist/impl/ua_reference_type_impl.js.map +1 -1
- package/dist/impl/ua_variable_impl.d.ts +1 -0
- package/dist/impl/ua_variable_impl.d.ts.map +1 -0
- package/dist/impl/ua_variable_impl.js +373 -376
- package/dist/impl/ua_variable_impl.js.map +1 -1
- package/dist/impl/ua_variable_impl_ext_obj.d.ts +1 -0
- package/dist/impl/ua_variable_impl_ext_obj.d.ts.map +1 -0
- package/dist/impl/ua_variable_impl_ext_obj.js +79 -97
- package/dist/impl/ua_variable_impl_ext_obj.js.map +1 -1
- package/dist/impl/ua_variable_type_impl.d.ts +1 -0
- package/dist/impl/ua_variable_type_impl.d.ts.map +1 -0
- package/dist/impl/ua_variable_type_impl.js +77 -84
- package/dist/impl/ua_variable_type_impl.js.map +1 -1
- package/dist/impl/ua_view_impl.d.ts +1 -0
- package/dist/impl/ua_view_impl.d.ts.map +1 -0
- package/dist/impl/ua_view_impl.js +18 -22
- package/dist/impl/ua_view_impl.js.map +1 -1
- package/dist/impl/validate_data_type_correctness.d.ts +1 -0
- package/dist/impl/validate_data_type_correctness.d.ts.map +1 -0
- package/dist/impl/validate_data_type_correctness.js +24 -30
- package/dist/impl/validate_data_type_correctness.js.map +1 -1
- package/dist/tsconfig_base.tsbuildinfo +1 -1
- package/distHelpers/add_event_generator_object.d.ts +1 -0
- package/distHelpers/add_event_generator_object.d.ts.map +1 -0
- package/distHelpers/add_event_generator_object.js +8 -11
- package/distHelpers/add_event_generator_object.js.map +1 -1
- package/distHelpers/address_space_digest.d.ts +1 -0
- package/distHelpers/address_space_digest.d.ts.map +1 -0
- package/distHelpers/address_space_digest.js +1 -5
- package/distHelpers/address_space_digest.js.map +1 -1
- package/distHelpers/alarms_and_conditions_demo.d.ts +1 -0
- package/distHelpers/alarms_and_conditions_demo.d.ts.map +1 -0
- package/distHelpers/alarms_and_conditions_demo.js +8 -11
- package/distHelpers/alarms_and_conditions_demo.js.map +1 -1
- package/distHelpers/assertHasMatchingReference.d.ts +1 -0
- package/distHelpers/assertHasMatchingReference.d.ts.map +1 -0
- package/distHelpers/assertHasMatchingReference.js +6 -9
- package/distHelpers/assertHasMatchingReference.js.map +1 -1
- package/distHelpers/boiler_system.d.ts +1 -0
- package/distHelpers/boiler_system.d.ts.map +1 -0
- package/distHelpers/boiler_system.js +36 -40
- package/distHelpers/boiler_system.js.map +1 -1
- package/distHelpers/create_minimalist_address_space_nodeset.d.ts +1 -0
- package/distHelpers/create_minimalist_address_space_nodeset.d.ts.map +1 -0
- package/distHelpers/create_minimalist_address_space_nodeset.js +29 -35
- package/distHelpers/create_minimalist_address_space_nodeset.js.map +1 -1
- package/distHelpers/date_utils.d.ts +1 -0
- package/distHelpers/date_utils.d.ts.map +1 -0
- package/distHelpers/date_utils.js +1 -4
- package/distHelpers/date_utils.js.map +1 -1
- package/distHelpers/dump_statemachine.d.ts +1 -0
- package/distHelpers/dump_statemachine.d.ts.map +1 -0
- package/distHelpers/dump_statemachine.js +1 -2
- package/distHelpers/dump_statemachine.js.map +1 -1
- package/distHelpers/get_address_space_fixture.d.ts +1 -0
- package/distHelpers/get_address_space_fixture.d.ts.map +1 -0
- package/distHelpers/get_address_space_fixture.js +12 -18
- package/distHelpers/get_address_space_fixture.js.map +1 -1
- package/distHelpers/get_mini_address_space.d.ts +1 -0
- package/distHelpers/get_mini_address_space.d.ts.map +1 -0
- package/distHelpers/get_mini_address_space.js +12 -18
- package/distHelpers/get_mini_address_space.js.map +1 -1
- package/distHelpers/index.d.ts +1 -0
- package/distHelpers/index.d.ts.map +1 -0
- package/distHelpers/index.js +10 -26
- package/distHelpers/index.js.map +1 -1
- package/distHelpers/mock_session.d.ts +1 -0
- package/distHelpers/mock_session.d.ts.map +1 -0
- package/distHelpers/mock_session.js +11 -16
- package/distHelpers/mock_session.js.map +1 -1
- package/distNodeJS/address_space_digest.d.ts +1 -0
- package/distNodeJS/address_space_digest.d.ts.map +1 -0
- package/distNodeJS/address_space_digest.js +3 -6
- package/distNodeJS/address_space_digest.js.map +1 -1
- package/distNodeJS/generate_address_space.d.ts +1 -0
- package/distNodeJS/generate_address_space.d.ts.map +1 -0
- package/distNodeJS/generate_address_space.js +67 -97
- package/distNodeJS/generate_address_space.js.map +1 -1
- package/distNodeJS/index.d.ts +1 -0
- package/distNodeJS/index.d.ts.map +1 -0
- package/distNodeJS/index.js +3 -19
- package/distNodeJS/index.js.map +1 -1
- package/distNodeJS/nodeset_image_file_store.d.ts +1 -0
- package/distNodeJS/nodeset_image_file_store.d.ts.map +1 -0
- package/distNodeJS/nodeset_image_file_store.js +20 -28
- package/distNodeJS/nodeset_image_file_store.js.map +1 -1
- package/impl/_mandatory_child_or_requested_optional_filter.ts +3 -3
- package/impl/address_space.ts +75 -6
- package/impl/address_space_change_event_tools.ts +7 -0
- package/impl/address_space_private.ts +1 -0
- package/impl/alarms_and_conditions/condition_snapshot_impl.ts +1 -1
- package/impl/alarms_and_conditions/ua_acknowledgeable_condition_impl.ts +1 -1
- package/impl/alarms_and_conditions/ua_alarm_condition_impl.ts +1 -1
- package/impl/alarms_and_conditions/ua_condition_impl.ts +1 -1
- package/impl/bulk_load_clock.ts +65 -0
- package/impl/data_access/semantics_changed.ts +39 -1
- package/impl/data_access/ua_multistate_discrete_impl.ts +1 -1
- package/impl/extension_object_array_node.ts +5 -5
- package/impl/historical_access/address_space_historical_data_node.ts +2 -2
- package/impl/namespace_impl.ts +119 -2
- package/impl/namespace_private.ts +3 -0
- package/impl/nodeid_manager.ts +13 -0
- package/impl/nodeset_tools/construct_namespace_dependency.ts +4 -4
- package/impl/nodeset_tools/dump_to_bsd.ts +1 -1
- package/impl/nodeset_tools/nodeset_to_xml.ts +1 -1
- package/impl/state_machine/finite_state_machine.ts +56 -10
- package/impl/state_machine/ua_shelving_state_machine_ex.ts +1 -1
- package/impl/state_machine/ua_two_state_variable.ts +1 -1
- package/impl/tool_isSubtypeOf.ts +1 -1
- package/impl/ua_data_type_impl.ts +26 -5
- package/impl/ua_method_impl.ts +10 -6
- package/impl/ua_object_impl.ts +6 -2
- package/impl/ua_variable_impl.ts +15 -8
- package/impl/ua_variable_type_impl.ts +3 -3
- package/nodeJS.d.ts +1 -1
- package/nodeJS.js +1 -1
- package/package.json +42 -41
- package/source_nodejs/generate_address_space.ts +31 -14
- package/testHelpers.d.ts +1 -1
- package/testHelpers.js +1 -1
- /package/bin/{nodeset_tool_common.js → nodeset_tool_common.cjs} +0 -0
|
@@ -65,6 +65,50 @@ function getComponentOfType(typeDef: UAObjectType, typedefinition: UAObjectType)
|
|
|
65
65
|
return components_parts as UAObject[];
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
+
/**
|
|
69
|
+
* OPC 10000-16 requires that a StateMachineType (or subtype) that raises events declares a
|
|
70
|
+
* GeneratesEvent reference to the EventType(s) it raises, on the type itself or on one of its
|
|
71
|
+
* super types (the CTT's "Base Info State Machine Instance / 001.js" script walks the instance's
|
|
72
|
+
* type up to StateMachineType looking for one such reference and accepts BaseEventType or any
|
|
73
|
+
* subtype as the target).
|
|
74
|
+
*
|
|
75
|
+
* node-opcua's finite state machine implementation always raises a "TransitionEventType" event
|
|
76
|
+
* when the current state changes (see FiniteStateMachineType#setState), for every state machine
|
|
77
|
+
* instance, whichever subtype of FiniteStateMachineType it is instantiated from. Declaring the
|
|
78
|
+
* reference once on FiniteStateMachineType therefore covers every state machine exposed by the
|
|
79
|
+
* server (ExclusiveLimitStateMachineType included), matching the CTT's parent walk.
|
|
80
|
+
*
|
|
81
|
+
* This is called from every state machine's _post_initialize, so it must be idempotent.
|
|
82
|
+
*/
|
|
83
|
+
function ensureFiniteStateMachineTypeGeneratesTransitionEvent(finiteStateMachineType: UAObjectType): void {
|
|
84
|
+
const addressSpace = finiteStateMachineType.addressSpace;
|
|
85
|
+
|
|
86
|
+
// Some minimal test fixtures load only a handful of namespace-0 nodes and do not carry the
|
|
87
|
+
// GeneratesEvent ReferenceType or TransitionEventType ObjectType at all: nothing to attach to.
|
|
88
|
+
if (!addressSpace.findReferenceType("GeneratesEvent")) {
|
|
89
|
+
return;
|
|
90
|
+
}
|
|
91
|
+
const transitionEventType = addressSpace.findObjectType("TransitionEventType");
|
|
92
|
+
if (!transitionEventType) {
|
|
93
|
+
/* c8 ignore next */
|
|
94
|
+
return;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
const hasReferenceAlready = finiteStateMachineType
|
|
98
|
+
.findReferencesEx("GeneratesEvent", BrowseDirection.Forward)
|
|
99
|
+
.some((ref) => sameNodeId(ref.nodeId, transitionEventType.nodeId));
|
|
100
|
+
|
|
101
|
+
if (hasReferenceAlready) {
|
|
102
|
+
return;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
finiteStateMachineType.addReference({
|
|
106
|
+
referenceType: "GeneratesEvent",
|
|
107
|
+
isForward: true,
|
|
108
|
+
nodeId: transitionEventType.nodeId
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
|
|
68
112
|
const defaultPredicate = (transitions: UATransition[], fromState: UAState, toState: UAState) => {
|
|
69
113
|
if (transitions.length === 0) {
|
|
70
114
|
return null;
|
|
@@ -88,13 +132,13 @@ export function getFiniteStateMachineTypeStates(uaFiniteStateMachineType: UAObje
|
|
|
88
132
|
const addressSpace = uaFiniteStateMachineType.addressSpace;
|
|
89
133
|
|
|
90
134
|
const initialStateType = addressSpace.findObjectType("InitialStateType");
|
|
91
|
-
|
|
135
|
+
/* c8 ignore next */
|
|
92
136
|
if (!initialStateType) {
|
|
93
137
|
throw new Error("cannot find InitialStateType");
|
|
94
138
|
}
|
|
95
139
|
|
|
96
140
|
const stateType = addressSpace.findObjectType("StateType");
|
|
97
|
-
|
|
141
|
+
/* c8 ignore next */
|
|
98
142
|
if (!stateType) {
|
|
99
143
|
throw new Error("cannot find StateType");
|
|
100
144
|
}
|
|
@@ -109,7 +153,7 @@ export function getFiniteStateMachineTypeTransitions(uaFiniteStateMachineType: U
|
|
|
109
153
|
const addressSpace = uaFiniteStateMachineType.addressSpace;
|
|
110
154
|
|
|
111
155
|
const transitionType = addressSpace.findObjectType("TransitionType");
|
|
112
|
-
|
|
156
|
+
/* c8 ignore next */
|
|
113
157
|
if (!transitionType) {
|
|
114
158
|
throw new Error("cannot find TransitionType");
|
|
115
159
|
}
|
|
@@ -178,7 +222,7 @@ export class UAStateMachineImplBase extends UAObjectImpl implements UAStateMachi
|
|
|
178
222
|
const typeDef = this.typeDefinitionObj;
|
|
179
223
|
|
|
180
224
|
const comp = getComponentOfType(typeDef, initialStateType);
|
|
181
|
-
|
|
225
|
+
/* c8 ignore next */
|
|
182
226
|
if (comp.length > 1) {
|
|
183
227
|
throw new Error(" More than 1 initial state in stateMachine");
|
|
184
228
|
}
|
|
@@ -214,7 +258,7 @@ export class UAStateMachineImplBase extends UAObjectImpl implements UAStateMachi
|
|
|
214
258
|
// to be executed there must be a transition from currentState to toState
|
|
215
259
|
const transition = this.findTransitionNode(this.currentStateNode, toStateNode, predicate);
|
|
216
260
|
if (!transition) {
|
|
217
|
-
|
|
261
|
+
/* c8 ignore next */
|
|
218
262
|
if (doDebug) {
|
|
219
263
|
debugLog(" No transition from ", this.currentStateNode.browseName.toString(), " to ", toStateNode.toString());
|
|
220
264
|
}
|
|
@@ -242,18 +286,18 @@ export class UAStateMachineImplBase extends UAObjectImpl implements UAStateMachi
|
|
|
242
286
|
return null;
|
|
243
287
|
}
|
|
244
288
|
|
|
245
|
-
|
|
289
|
+
/* c8 ignore next */
|
|
246
290
|
if (_fromStateNode.nodeClass !== NodeClass.Object) {
|
|
247
291
|
throw new Error("Internal Error");
|
|
248
292
|
}
|
|
249
|
-
|
|
293
|
+
/* c8 ignore next */
|
|
250
294
|
if (_toStateNode && _toStateNode.nodeClass !== NodeClass.Object) {
|
|
251
295
|
throw new Error("Internal Error");
|
|
252
296
|
}
|
|
253
297
|
|
|
254
298
|
const stateType = addressSpace.findObjectType("StateType");
|
|
255
299
|
|
|
256
|
-
|
|
300
|
+
/* c8 ignore next */
|
|
257
301
|
if (!stateType) {
|
|
258
302
|
throw new Error("Cannot find StateType");
|
|
259
303
|
}
|
|
@@ -270,7 +314,7 @@ export class UAStateMachineImplBase extends UAObjectImpl implements UAStateMachi
|
|
|
270
314
|
// cannot find a transition from fromState to toState
|
|
271
315
|
return null;
|
|
272
316
|
}
|
|
273
|
-
|
|
317
|
+
/* c8 ignore next */
|
|
274
318
|
if (transitions.length > 1) {
|
|
275
319
|
const selectedTransition = (predicate || defaultPredicate)(
|
|
276
320
|
transitions,
|
|
@@ -316,7 +360,7 @@ export class UAStateMachineImplBase extends UAObjectImpl implements UAStateMachi
|
|
|
316
360
|
|
|
317
361
|
if (typeof toStateNode === "string") {
|
|
318
362
|
const state = this.getStateByName(toStateNode);
|
|
319
|
-
|
|
363
|
+
/* c8 ignore next */
|
|
320
364
|
if (!state) {
|
|
321
365
|
throw new Error(`Cannot find state with name ${toStateNode}`);
|
|
322
366
|
}
|
|
@@ -590,6 +634,8 @@ export class UAStateMachineImplBase extends UAObjectImpl implements UAStateMachi
|
|
|
590
634
|
throw new Error("cannot find FiniteStateMachineType");
|
|
591
635
|
}
|
|
592
636
|
|
|
637
|
+
ensureFiniteStateMachineTypeGeneratesTransitionEvent(finiteStateMachineType);
|
|
638
|
+
|
|
593
639
|
// xx assert(this.typeDefinitionObj && !this.subtypeOfObj);
|
|
594
640
|
// xx assert(!this.typeDefinitionObj || this.typeDefinitionObj.isSubtypeOf(finiteStateMachineType));
|
|
595
641
|
// get current Status
|
|
@@ -159,7 +159,7 @@ function _automatically_unshelve(shelvingState: UAShelvedStateMachineExImpl) {
|
|
|
159
159
|
assert(shelvingState._timer, "expecting timerId to be set");
|
|
160
160
|
shelvingState._timer = null;
|
|
161
161
|
|
|
162
|
-
|
|
162
|
+
/* c8 ignore next */
|
|
163
163
|
if (doDebug) {
|
|
164
164
|
debugLog("Automatically un-shelving variable ", shelvingState.browseName.toString());
|
|
165
165
|
}
|
|
@@ -153,7 +153,7 @@ export function promoteToTwoStateVariable(node: UAVariable): UATwoStateVariableE
|
|
|
153
153
|
if (node instanceof UATwoStateVariableImpl) {
|
|
154
154
|
return node;
|
|
155
155
|
}
|
|
156
|
-
|
|
156
|
+
/* c8 ignore next */
|
|
157
157
|
if (!(node instanceof UAVariableImpl)) {
|
|
158
158
|
throw new Error("Trying to promote a invalid object");
|
|
159
159
|
}
|
package/impl/tool_isSubtypeOf.ts
CHANGED
|
@@ -49,7 +49,7 @@ function _slow_isSubtypeOf<T extends UAType>(this: T, Class: typeof BaseNodeImpl
|
|
|
49
49
|
for (const subType1 of subTypes) {
|
|
50
50
|
const subTypeId = subType1.nodeId;
|
|
51
51
|
const subTypeNode = this.addressSpace.findNode(subTypeId) as unknown as T;
|
|
52
|
-
|
|
52
|
+
/* c8 ignore next */
|
|
53
53
|
if (!subTypeNode) {
|
|
54
54
|
throw new Error(`Cannot find object with nodeId ${subTypeId.toString()}`);
|
|
55
55
|
}
|
|
@@ -9,7 +9,7 @@ import { DataTypeIds } from "node-opcua-constants";
|
|
|
9
9
|
import { AttributeIds, type LocalizedText, NodeClass, type QualifiedNameLike } from "node-opcua-data-model";
|
|
10
10
|
import { DataValue, type DataValueLike } from "node-opcua-data-value";
|
|
11
11
|
import { checkDebugFlag, make_debugLog } from "node-opcua-debug";
|
|
12
|
-
import { ExpandedNodeId, NodeId, resolveNodeId } from "node-opcua-nodeid";
|
|
12
|
+
import { ExpandedNodeId, NodeId, resolveNodeId, sameNodeId } from "node-opcua-nodeid";
|
|
13
13
|
import { NumericRange } from "node-opcua-numeric-range";
|
|
14
14
|
import { StatusCodes } from "node-opcua-status-code";
|
|
15
15
|
import {
|
|
@@ -323,10 +323,31 @@ export class UADataTypeImpl extends BaseNodeImpl implements UADataType {
|
|
|
323
323
|
const union = addressSpace.findDataType("Union");
|
|
324
324
|
|
|
325
325
|
// we have a data type from a companion specification
|
|
326
|
-
// let's see if this data type need to be registered
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
326
|
+
// let's see if this data type need to be registered.
|
|
327
|
+
//
|
|
328
|
+
// One walk up the chain answers all three questions. `isSubtypeOf` would answer each of
|
|
329
|
+
// them, and memoizes — but its memo is keyed on a counter bumped every time a HasSubtype
|
|
330
|
+
// reference is added anywhere, so during a load, which adds thousands of them, the memo
|
|
331
|
+
// is thrown away before it is ever read and each call walks the chain from scratch. Three
|
|
332
|
+
// walks become one, and the one uses `subtypeOfObj`, which is cached per node, instead of
|
|
333
|
+
// filtering the node's whole reference list at every level.
|
|
334
|
+
let isEnumeration = false;
|
|
335
|
+
let isStructure = false;
|
|
336
|
+
let isUnion = false;
|
|
337
|
+
{
|
|
338
|
+
let ancestor: UADataTypeImpl | null = this;
|
|
339
|
+
// a chain longer than this is a cycle in a broken nodeset, not a model
|
|
340
|
+
let guard = 128;
|
|
341
|
+
while (ancestor && guard-- > 0) {
|
|
342
|
+
const nodeId = ancestor.nodeId;
|
|
343
|
+
if (enumeration && sameNodeId(nodeId, enumeration.nodeId)) isEnumeration = true;
|
|
344
|
+
if (structure && sameNodeId(nodeId, structure.nodeId)) isStructure = true;
|
|
345
|
+
if (union && sameNodeId(nodeId, union.nodeId)) isUnion = true;
|
|
346
|
+
ancestor = ancestor.subtypeOfObj as UADataTypeImpl | null;
|
|
347
|
+
}
|
|
348
|
+
// a Union is a Structure; the original asked for both and so does this
|
|
349
|
+
isUnion = isUnion && !!structure;
|
|
350
|
+
}
|
|
330
351
|
|
|
331
352
|
const isRootDataType = (n: UADataType) => n.nodeId.namespace === 0 && n.nodeId.value === DataTypeIds.BaseDataType;
|
|
332
353
|
|
package/impl/ua_method_impl.ts
CHANGED
|
@@ -68,7 +68,10 @@ export class UAMethodImpl extends BaseNodeImpl<UAMethodEvents> implements UAMeth
|
|
|
68
68
|
public methodDeclarationId: NodeId;
|
|
69
69
|
public _getExecutableFlag?: (this: UAMethod, context: ISessionContext | null) => boolean;
|
|
70
70
|
|
|
71
|
-
|
|
71
|
+
// always the callback form: bindMethod normalises the promise form before storing it. A union
|
|
72
|
+
// here would be wider than what can be held, and `.call` on a union of signatures does not
|
|
73
|
+
// resolve to the callback one.
|
|
74
|
+
public _asyncExecutionFunction?: MethodFunctorC;
|
|
72
75
|
|
|
73
76
|
constructor(options: IMethodOptons) {
|
|
74
77
|
super(options);
|
|
@@ -138,11 +141,12 @@ export class UAMethodImpl extends BaseNodeImpl<UAMethodEvents> implements UAMeth
|
|
|
138
141
|
|
|
139
142
|
public bindMethod(async_func: MethodFunctor): void {
|
|
140
143
|
assert(typeof async_func === "function");
|
|
141
|
-
|
|
142
|
-
async_func
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
144
|
+
const callbackForm: MethodFunctorC =
|
|
145
|
+
async_func.length === 2
|
|
146
|
+
? (callbackify(async_func as MethodFunctorA) as MethodFunctorC)
|
|
147
|
+
: (async_func as MethodFunctorC);
|
|
148
|
+
assert(callbackForm.length === 3, ` a method with callback should have 3 arguments : got ${callbackForm.length}`);
|
|
149
|
+
this._asyncExecutionFunction = callbackForm;
|
|
146
150
|
}
|
|
147
151
|
public execute(
|
|
148
152
|
object: UAObject | UAObjectType | null,
|
package/impl/ua_object_impl.ts
CHANGED
|
@@ -61,7 +61,7 @@ export class UAObjectImpl<T extends UAObjectEvents & ListenerSignature<T> = UAOb
|
|
|
61
61
|
public readonly symbolicName: string | null;
|
|
62
62
|
|
|
63
63
|
get typeDefinitionObj(): UAObjectType {
|
|
64
|
-
|
|
64
|
+
/* c8 ignore next */
|
|
65
65
|
if (super.typeDefinitionObj.nodeClass !== NodeClass.ObjectType) {
|
|
66
66
|
const msg = `Invalid type definition node class , expecting a ObjectType got ${
|
|
67
67
|
NodeClass[super.typeDefinitionObj.nodeClass]
|
|
@@ -75,7 +75,11 @@ export class UAObjectImpl<T extends UAObjectEvents & ListenerSignature<T> = UAOb
|
|
|
75
75
|
constructor(options: InternalBaseNodeOptions & { eventNotifier?: number; symbolicName?: string | null }) {
|
|
76
76
|
super(options);
|
|
77
77
|
this._eventNotifier = options.eventNotifier || EventNotifierFlags.None;
|
|
78
|
-
|
|
78
|
+
// the declared flags, not the getter: reading the getter here scans the node's references
|
|
79
|
+
// for event sources and notifiers, twice, for a node that has just been built and whose
|
|
80
|
+
// references the loader has not wired yet. The getter answers the same value for a node in
|
|
81
|
+
// that state, and it still runs — and still caches — at the first real read.
|
|
82
|
+
assert(typeof this._eventNotifier === "number" && isValidByte(this._eventNotifier));
|
|
79
83
|
this.symbolicName = options.symbolicName || null;
|
|
80
84
|
// every event MonitoredItem on this object is one "event" listener, and the Server
|
|
81
85
|
// object collects them for every Session: more than ten is the normal case, not a
|
package/impl/ua_variable_impl.ts
CHANGED
|
@@ -83,8 +83,9 @@ import { SessionContext } from "../api/session_context.js";
|
|
|
83
83
|
import { apply_condition_refresh, type ConditionRefreshCache } from "./apply_condition_refresh.js";
|
|
84
84
|
import { BaseNodeImpl, type InternalBaseNodeOptions } from "./base_node_impl.js";
|
|
85
85
|
import { _clone, ToStringBuilder, UAVariable_toString, valueRankToString } from "./base_node_private.js";
|
|
86
|
+
import { loadClock } from "./bulk_load_clock.js";
|
|
86
87
|
import { adjustDataValueStatusCode } from "./data_access/adjust_datavalue_status_code.js";
|
|
87
|
-
import { notifySemanticsChangedIfNeeded } from "./data_access/semantics_changed.js";
|
|
88
|
+
import { notifySemanticsChangedIfNeeded, raiseSemanticChangeEvent } from "./data_access/semantics_changed.js";
|
|
88
89
|
import { _getBasicDataType } from "./get_basic_datatype.js";
|
|
89
90
|
import { type EnumerationInfo, type IEnumItem, UADataTypeImpl } from "./ua_data_type_impl.js";
|
|
90
91
|
import {
|
|
@@ -254,7 +255,7 @@ export class UAVariableImpl<T extends UAVariableEvents & ListenerSignature<T> =
|
|
|
254
255
|
public __waiting_callbacks?: CallbackT<DataValue>[];
|
|
255
256
|
|
|
256
257
|
get typeDefinitionObj(): UAVariableType {
|
|
257
|
-
|
|
258
|
+
/* c8 ignore next */
|
|
258
259
|
if (super.typeDefinitionObj && super.typeDefinitionObj.nodeClass !== NodeClass.VariableType) {
|
|
259
260
|
// this could happen in faulty external nodeset and has been seen once
|
|
260
261
|
// in an nano server
|
|
@@ -288,8 +289,10 @@ export class UAVariableImpl<T extends UAVariableEvents & ListenerSignature<T> =
|
|
|
288
289
|
// a Variant built from null takes the constructor's short path; the options form costs twice as much.
|
|
289
290
|
// Stamped with the clock of the construction: a variable nobody gives a value to (a nodeset
|
|
290
291
|
// Variable of an abstract data type has no default to make up) is read as it is, and the
|
|
291
|
-
// requested timestamps are expected on that Uncertain result too (FEAT-34)
|
|
292
|
-
|
|
292
|
+
// requested timestamps are expected on that Uncertain result too (FEAT-34).
|
|
293
|
+
// One reading for a whole load — see impl/bulk_load_clock.ts; outside a load of THIS
|
|
294
|
+
// address space this is getCurrentClock(), unchanged.
|
|
295
|
+
const now = loadClock(this.addressSpace);
|
|
293
296
|
this.$dataValue = new DataValue({
|
|
294
297
|
statusCode: StatusCodes.UncertainInitialValue,
|
|
295
298
|
value: new Variant(null),
|
|
@@ -484,7 +487,7 @@ export class UAVariableImpl<T extends UAVariableEvents & ListenerSignature<T> =
|
|
|
484
487
|
dataValue.statusCode.equals(StatusCodes.BadWaitingForInitialData) ||
|
|
485
488
|
dataValue.statusCode.equals(StatusCodes.UncertainInitialValue)
|
|
486
489
|
) {
|
|
487
|
-
|
|
490
|
+
/* c8 ignore next */
|
|
488
491
|
doDebug &&
|
|
489
492
|
debugLog(
|
|
490
493
|
chalk.red(" Warning: UAVariable#readValue ") +
|
|
@@ -846,7 +849,8 @@ export class UAVariableImpl<T extends UAVariableEvents & ListenerSignature<T> =
|
|
|
846
849
|
if (variant1.dataType === DataType.ExtensionObject && !this.checkExtensionObjectIsCorrect(variant1.value)) {
|
|
847
850
|
throw new Error("invalid extension object");
|
|
848
851
|
}
|
|
849
|
-
|
|
852
|
+
// the load's reading while this address space is being loaded, a fresh one otherwise
|
|
853
|
+
const now = loadClock(this.addressSpace);
|
|
850
854
|
this.$dataValue = new DataValue({
|
|
851
855
|
value: variant1,
|
|
852
856
|
statusCode,
|
|
@@ -1883,13 +1887,13 @@ export class UAVariableImpl<T extends UAVariableEvents & ListenerSignature<T> =
|
|
|
1883
1887
|
|
|
1884
1888
|
const addressSpace = this.addressSpace;
|
|
1885
1889
|
|
|
1886
|
-
|
|
1890
|
+
/* c8 ignore next */
|
|
1887
1891
|
if (!addressSpace) {
|
|
1888
1892
|
warningLog("UAVariable#_internal_set_dataValue : no addressSpace ! may be node has already been deleted ?");
|
|
1889
1893
|
return;
|
|
1890
1894
|
}
|
|
1891
1895
|
|
|
1892
|
-
|
|
1896
|
+
/* c8 ignore next */
|
|
1893
1897
|
if (dataValue.value.arrayType === VariantArrayType.Matrix) {
|
|
1894
1898
|
if (!dataValue.value.dimensions) {
|
|
1895
1899
|
throw new Error("missing dimensions: a Matrix Variant needs a dimension");
|
|
@@ -1997,6 +2001,9 @@ export class UAVariableImpl<T extends UAVariableEvents & ListenerSignature<T> =
|
|
|
1997
2001
|
public handle_semantic_changed(_dataValue: DataValue): void {
|
|
1998
2002
|
this.semantic_version = this.semantic_version + 1;
|
|
1999
2003
|
(this as UAVariable).emit("semantic_changed");
|
|
2004
|
+
// the bit tells whoever monitors this DataItem; the event tells whoever monitors the
|
|
2005
|
+
// Server object (OPC 10000-5 6.4.31). Both have to come from this one place.
|
|
2006
|
+
raiseSemanticChangeEvent(this as UAVariable);
|
|
2000
2007
|
}
|
|
2001
2008
|
|
|
2002
2009
|
private _readDataType(): DataValue {
|
|
@@ -209,7 +209,7 @@ export class UAVariableTypeImpl extends BaseNodeImpl<BaseNodeEvents> implements
|
|
|
209
209
|
options.value = this.value as Variant;
|
|
210
210
|
options.statusCode = StatusCodes.Good;
|
|
211
211
|
} else {
|
|
212
|
-
|
|
212
|
+
/* c8 ignore next */
|
|
213
213
|
doDebug && debugLog(" warning Value not implemented");
|
|
214
214
|
options.value = { dataType: DataType.Null };
|
|
215
215
|
options.statusCode = StatusCodes.BadAttributeIdInvalid;
|
|
@@ -277,7 +277,7 @@ export class UAVariableTypeImpl extends BaseNodeImpl<BaseNodeEvents> implements
|
|
|
277
277
|
assertUnusedChildBrowseName(addressSpace, options);
|
|
278
278
|
|
|
279
279
|
const baseVariableType = addressSpace.findVariableType("BaseVariableType");
|
|
280
|
-
|
|
280
|
+
/* c8 ignore next */
|
|
281
281
|
if (!baseVariableType) {
|
|
282
282
|
throw new Error("BaseVariableType must be defined in the address space");
|
|
283
283
|
}
|
|
@@ -298,7 +298,7 @@ export class UAVariableTypeImpl extends BaseNodeImpl<BaseNodeEvents> implements
|
|
|
298
298
|
|
|
299
299
|
const arrayDimensions = options.arrayDimensions !== undefined ? options.arrayDimensions : this.arrayDimensions;
|
|
300
300
|
|
|
301
|
-
|
|
301
|
+
/* c8 ignore next */
|
|
302
302
|
if (!dataType || dataType.isEmpty()) {
|
|
303
303
|
warningLog(" options.dataType", options.dataType ? options.dataType.toString() : "<null>");
|
|
304
304
|
warningLog(" this.dataType", this.dataType ? this.dataType.toString() : "<null>");
|
package/nodeJS.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./distNodeJS";
|
|
1
|
+
export * from "./distNodeJS/index.js";
|
package/nodeJS.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export * from "./distNodeJS/index.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-opcua-address-space",
|
|
3
|
-
"
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "2.184.0",
|
|
4
5
|
"description": "pure nodejs OPCUA SDK - module address-space",
|
|
5
6
|
"main": "./dist/api/index.js",
|
|
6
7
|
"types": "./dist/api/index.d.ts",
|
|
@@ -22,50 +23,50 @@
|
|
|
22
23
|
"@types/semver": "7.8.0",
|
|
23
24
|
"chalk": "4.1.2",
|
|
24
25
|
"dequeue": "^1.0.5",
|
|
25
|
-
"node-opcua-address-space-base": "2.
|
|
26
|
-
"node-opcua-assert": "2.
|
|
27
|
-
"node-opcua-basic-types": "2.
|
|
28
|
-
"node-opcua-binary-stream": "2.
|
|
29
|
-
"node-opcua-client-dynamic-extension-object": "2.
|
|
30
|
-
"node-opcua-constants": "2.
|
|
26
|
+
"node-opcua-address-space-base": "2.184.0",
|
|
27
|
+
"node-opcua-assert": "2.184.0",
|
|
28
|
+
"node-opcua-basic-types": "2.184.0",
|
|
29
|
+
"node-opcua-binary-stream": "2.184.0",
|
|
30
|
+
"node-opcua-client-dynamic-extension-object": "2.184.0",
|
|
31
|
+
"node-opcua-constants": "2.184.0",
|
|
31
32
|
"node-opcua-crypto": "5.10.1",
|
|
32
|
-
"node-opcua-data-access": "2.
|
|
33
|
-
"node-opcua-data-model": "2.
|
|
34
|
-
"node-opcua-data-value": "2.
|
|
35
|
-
"node-opcua-date-time": "2.
|
|
36
|
-
"node-opcua-debug": "2.
|
|
37
|
-
"node-opcua-enum": "2.
|
|
38
|
-
"node-opcua-extension-object": "2.
|
|
39
|
-
"node-opcua-factory": "2.
|
|
40
|
-
"node-opcua-nodeid": "2.
|
|
41
|
-
"node-opcua-nodeset-ua": "2.
|
|
42
|
-
"node-opcua-numeric-range": "2.
|
|
43
|
-
"node-opcua-object-registry": "2.
|
|
44
|
-
"node-opcua-pseudo-session": "2.
|
|
45
|
-
"node-opcua-service-browse": "2.
|
|
46
|
-
"node-opcua-service-call": "2.
|
|
47
|
-
"node-opcua-service-history": "2.
|
|
48
|
-
"node-opcua-service-translate-browse-path": "2.
|
|
49
|
-
"node-opcua-service-write": "2.
|
|
50
|
-
"node-opcua-status-code": "2.
|
|
51
|
-
"node-opcua-types": "2.
|
|
52
|
-
"node-opcua-utils": "2.
|
|
53
|
-
"node-opcua-variant": "2.
|
|
54
|
-
"node-opcua-xml2json": "2.
|
|
33
|
+
"node-opcua-data-access": "2.184.0",
|
|
34
|
+
"node-opcua-data-model": "2.184.0",
|
|
35
|
+
"node-opcua-data-value": "2.184.0",
|
|
36
|
+
"node-opcua-date-time": "2.184.0",
|
|
37
|
+
"node-opcua-debug": "2.184.0",
|
|
38
|
+
"node-opcua-enum": "2.184.0",
|
|
39
|
+
"node-opcua-extension-object": "2.184.0",
|
|
40
|
+
"node-opcua-factory": "2.184.0",
|
|
41
|
+
"node-opcua-nodeid": "2.184.0",
|
|
42
|
+
"node-opcua-nodeset-ua": "2.184.0",
|
|
43
|
+
"node-opcua-numeric-range": "2.184.0",
|
|
44
|
+
"node-opcua-object-registry": "2.184.0",
|
|
45
|
+
"node-opcua-pseudo-session": "2.184.0",
|
|
46
|
+
"node-opcua-service-browse": "2.184.0",
|
|
47
|
+
"node-opcua-service-call": "2.184.0",
|
|
48
|
+
"node-opcua-service-history": "2.184.0",
|
|
49
|
+
"node-opcua-service-translate-browse-path": "2.184.0",
|
|
50
|
+
"node-opcua-service-write": "2.184.0",
|
|
51
|
+
"node-opcua-status-code": "2.184.0",
|
|
52
|
+
"node-opcua-types": "2.184.0",
|
|
53
|
+
"node-opcua-utils": "2.184.0",
|
|
54
|
+
"node-opcua-variant": "2.184.0",
|
|
55
|
+
"node-opcua-xml2json": "2.184.0",
|
|
55
56
|
"semver": "^7.8.5",
|
|
56
57
|
"thenify-ex": "4.4.0",
|
|
57
58
|
"xml-writer": "^1.7.0"
|
|
58
59
|
},
|
|
59
60
|
"devDependencies": {
|
|
60
61
|
"humanize": "0.0.9",
|
|
61
|
-
"node-opcua-benchmarker": "2.
|
|
62
|
-
"node-opcua-leak-detector": "2.
|
|
63
|
-
"node-opcua-nodesets": "2.
|
|
64
|
-
"node-opcua-packet-analyzer": "2.
|
|
65
|
-
"node-opcua-schemas": "2.
|
|
66
|
-
"node-opcua-service-filter": "2.
|
|
67
|
-
"node-opcua-test-fixtures": "2.
|
|
68
|
-
"node-opcua-test-helpers": "2.
|
|
62
|
+
"node-opcua-benchmarker": "2.184.0",
|
|
63
|
+
"node-opcua-leak-detector": "2.184.0",
|
|
64
|
+
"node-opcua-nodesets": "2.184.0",
|
|
65
|
+
"node-opcua-packet-analyzer": "2.184.0",
|
|
66
|
+
"node-opcua-schemas": "2.184.0",
|
|
67
|
+
"node-opcua-service-filter": "2.184.0",
|
|
68
|
+
"node-opcua-test-fixtures": "2.184.0",
|
|
69
|
+
"node-opcua-test-helpers": "2.184.0"
|
|
69
70
|
},
|
|
70
71
|
"author": "Etienne Rossignon",
|
|
71
72
|
"license": "MIT",
|
|
@@ -82,7 +83,7 @@
|
|
|
82
83
|
"internet of things"
|
|
83
84
|
],
|
|
84
85
|
"homepage": "http://node-opcua.github.io/",
|
|
85
|
-
"gitHead": "
|
|
86
|
+
"gitHead": "441a5c63e3a4202eb8de8597acac77a3a49248b7",
|
|
86
87
|
"files": [
|
|
87
88
|
"dist",
|
|
88
89
|
"distHelpers",
|
|
@@ -98,7 +99,7 @@
|
|
|
98
99
|
"bin"
|
|
99
100
|
],
|
|
100
101
|
"bin": {
|
|
101
|
-
"opcua-nodeset-image": "bin/opcua-nodeset-image.
|
|
102
|
-
"opcua-nodeset-live": "bin/opcua-nodeset-live.
|
|
102
|
+
"opcua-nodeset-image": "bin/opcua-nodeset-image.cjs",
|
|
103
|
+
"opcua-nodeset-live": "bin/opcua-nodeset-live.cjs"
|
|
103
104
|
}
|
|
104
105
|
}
|
|
@@ -34,7 +34,7 @@ const debugLog = make_debugLog("generate_address_space");
|
|
|
34
34
|
const errorLog = make_errorLog("generate_address_space");
|
|
35
35
|
|
|
36
36
|
function checkNodeSet2XmlFileExists(xmlFile: string): void {
|
|
37
|
-
|
|
37
|
+
/* c8 ignore next */
|
|
38
38
|
if (!fs.existsSync(xmlFile)) {
|
|
39
39
|
const msg = `[NODE-OPCUA-E02] generateAddressSpace : cannot find nodeset2 xml file at ${xmlFile}`;
|
|
40
40
|
errorLog(msg);
|
|
@@ -101,11 +101,25 @@ export function siblingImageFileOf(xmlFile: string): string {
|
|
|
101
101
|
/**
|
|
102
102
|
* the sibling store: when `<file>.ndjson.gz` sits next to `<file>.xml` and its trailer digest is
|
|
103
103
|
* the SHA-256 of the XML bytes, the image is what the loader gets; otherwise the XML is. The
|
|
104
|
-
* digest check is not
|
|
105
|
-
*
|
|
104
|
+
* digest check is not cached: an XML edited in place next to a stale image loads from the XML.
|
|
105
|
+
* Nothing is written here; writing images is the opt-in `imageStore`.
|
|
106
106
|
* Returns the source to load, and which path was taken for the debug log.
|
|
107
|
+
*
|
|
108
|
+
* `trustByLength` trades that guarantee for the cost of it. Validating an image means reading
|
|
109
|
+
* and hashing the whole XML — about 30 ms of the ~110 ms it takes to replay the standard
|
|
110
|
+
* nodeset, spent proving that a file nobody edited has not changed. With it, the recorded
|
|
111
|
+
* source length against the file size is the whole check, and the XML is never read at all.
|
|
112
|
+
* Every structural check on the image still runs; only the content digest is skipped.
|
|
113
|
+
*
|
|
114
|
+
* The risk it accepts is precise: an XML edited in place to exactly the same byte length, beside
|
|
115
|
+
* an image built from the earlier content, is replayed from the stale image. For the nodesets a
|
|
116
|
+
* package ships that cannot happen; for a file being edited it can, which is why this is off by
|
|
117
|
+
* default and why a loader that watches user files should leave it off.
|
|
107
118
|
*/
|
|
108
|
-
async function siblingOrXml(
|
|
119
|
+
async function siblingOrXml(
|
|
120
|
+
xmlFile: string,
|
|
121
|
+
trustByLength = false
|
|
122
|
+
): Promise<{ source: NamedNodesetSource; path: "image" | "xml"; reason?: string }> {
|
|
109
123
|
checkNodeSet2XmlFileExists(xmlFile);
|
|
110
124
|
// the XML is read only when it is going to be parsed or hashed; the image decision starts
|
|
111
125
|
// with what costs nothing: its size
|
|
@@ -129,15 +143,21 @@ async function siblingOrXml(xmlFile: string): Promise<{ source: NamedNodesetSour
|
|
|
129
143
|
// the inflate (zlib, off the main thread) and the hash of the XML (web crypto, off the
|
|
130
144
|
// main thread too) run alongside; the digest is what decides, the length only rejects early
|
|
131
145
|
const infoPending = readNodesetImageInfo(image);
|
|
132
|
-
|
|
133
|
-
digestPending
|
|
146
|
+
// not started at all when trusted by length: starting it is the cost being avoided
|
|
147
|
+
const digestPending = trustByLength ? undefined : readXml().then(sha256Hex);
|
|
148
|
+
digestPending?.catch(() => undefined);
|
|
134
149
|
const info = await infoPending;
|
|
135
150
|
const sourceLength = info.header.sourceLength;
|
|
136
|
-
if (sourceLength
|
|
151
|
+
if (sourceLength === undefined) {
|
|
152
|
+
// nothing cheap to check it against, so a trusted read has no ground to stand on
|
|
153
|
+
if (trustByLength) return asXml("the image records no source length, so it cannot be trusted by length alone");
|
|
154
|
+
} else if (sourceLength !== fs.statSync(xmlFile).size) {
|
|
137
155
|
return asXml(`the image is stale: it was built from ${sourceLength} bytes, the XML has ${fs.statSync(xmlFile).size}`);
|
|
138
156
|
}
|
|
139
|
-
// a catalog package older or newer than this loader, a stale or truncated image: its XML
|
|
140
|
-
|
|
157
|
+
// a catalog package older or newer than this loader, a stale or truncated image: its XML
|
|
158
|
+
// is still right. Without a digest this still checks the schema, the trailer and the node
|
|
159
|
+
// count — `nodesetImageProblem` skips only the comparison it is not given.
|
|
160
|
+
const problem = nodesetImageProblem(info, digestPending ? await digestPending : undefined);
|
|
141
161
|
if (problem) return asXml(problem);
|
|
142
162
|
} catch (err) {
|
|
143
163
|
return asXml(`the image cannot be read: ${(err as Error).message}`);
|
|
@@ -145,10 +165,7 @@ async function siblingOrXml(xmlFile: string): Promise<{ source: NamedNodesetSour
|
|
|
145
165
|
return { source: { name: `${xmlFile} (image)`, source: image }, path: "image" };
|
|
146
166
|
}
|
|
147
167
|
|
|
148
|
-
|
|
149
|
-
// cannot be used while this package emits CommonJS (TS1470), so the ESM migration
|
|
150
|
-
// has this single line to change rather than several scattered uses.
|
|
151
|
-
const here = __dirname;
|
|
168
|
+
const here = import.meta.dirname;
|
|
152
169
|
|
|
153
170
|
/** the version this package was built as, for the header of the images it writes */
|
|
154
171
|
export function addressSpacePackageVersion(): string {
|
|
@@ -197,7 +214,7 @@ export async function generateAddressSpace(
|
|
|
197
214
|
sources.push(document);
|
|
198
215
|
continue;
|
|
199
216
|
}
|
|
200
|
-
const { source, path: taken, reason } = await siblingOrXml(document);
|
|
217
|
+
const { source, path: taken, reason } = await siblingOrXml(document, !!loaderOptions.trustSiblingImages);
|
|
201
218
|
debugLog(`generateAddressSpace: ${path.basename(document)} from ${taken}${reason ? ` (${reason})` : ""}`);
|
|
202
219
|
sources.push(source);
|
|
203
220
|
}
|
package/testHelpers.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./distHelpers";
|
|
1
|
+
export * from "./distHelpers/index.js";
|
package/testHelpers.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export * from "./distHelpers/index.js";
|
|
File without changes
|