node-opcua-address-space 2.183.1 → 2.184.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
|
@@ -1,30 +1,24 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
/**
|
|
3
2
|
* @module node-opcua-address-space
|
|
4
3
|
*/
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
const
|
|
20
|
-
|
|
21
|
-
const apply_condition_refresh_js_1 = require("./apply_condition_refresh.js");
|
|
22
|
-
const base_node_impl_js_1 = require("./base_node_impl.js");
|
|
23
|
-
const base_node_private_js_1 = require("./base_node_private.js");
|
|
24
|
-
const errorLog = (0, node_opcua_debug_1.make_errorLog)("ua_object_impl");
|
|
25
|
-
class UAObjectImpl extends base_node_impl_js_1.BaseNodeImpl {
|
|
4
|
+
import chalk from "chalk";
|
|
5
|
+
import { defaultCloneFilter, EventNotifierFlags, makeDefaultCloneExtraInfo } from "node-opcua-address-space-base";
|
|
6
|
+
import { assert } from "node-opcua-assert";
|
|
7
|
+
import { isValidByte } from "node-opcua-basic-types";
|
|
8
|
+
import { AttributeIds, NodeClass } from "node-opcua-data-model";
|
|
9
|
+
import { DataValue } from "node-opcua-data-value";
|
|
10
|
+
import { getCurrentClock } from "node-opcua-date-time";
|
|
11
|
+
import { make_errorLog } from "node-opcua-debug";
|
|
12
|
+
import { NodeId } from "node-opcua-nodeid";
|
|
13
|
+
import { StatusCodes } from "node-opcua-status-code";
|
|
14
|
+
import { DataType } from "node-opcua-variant";
|
|
15
|
+
import { apply_condition_refresh } from "./apply_condition_refresh.js";
|
|
16
|
+
import { BaseNodeImpl } from "./base_node_impl.js";
|
|
17
|
+
import { _clone, ToStringBuilder, UAObject_toString } from "./base_node_private.js";
|
|
18
|
+
const errorLog = make_errorLog("ua_object_impl");
|
|
19
|
+
export class UAObjectImpl extends BaseNodeImpl {
|
|
26
20
|
_eventNotifier;
|
|
27
|
-
nodeClass =
|
|
21
|
+
nodeClass = NodeClass.Object;
|
|
28
22
|
get eventNotifier() {
|
|
29
23
|
// ensure eventNotifier is set if the node has some event
|
|
30
24
|
if (!this._eventNotifier) {
|
|
@@ -32,16 +26,16 @@ class UAObjectImpl extends base_node_impl_js_1.BaseNodeImpl {
|
|
|
32
26
|
const s = this.getEventSources();
|
|
33
27
|
const n = this.getNotifiers();
|
|
34
28
|
if (s.length > 0 || n.length > 0) {
|
|
35
|
-
this._eventNotifier = this._eventNotifier |
|
|
29
|
+
this._eventNotifier = this._eventNotifier | EventNotifierFlags.SubscribeToEvents;
|
|
36
30
|
}
|
|
37
31
|
}
|
|
38
32
|
return this._eventNotifier;
|
|
39
33
|
}
|
|
40
34
|
symbolicName;
|
|
41
35
|
get typeDefinitionObj() {
|
|
42
|
-
|
|
43
|
-
if (super.typeDefinitionObj.nodeClass !==
|
|
44
|
-
const msg = `Invalid type definition node class , expecting a ObjectType got ${
|
|
36
|
+
/* c8 ignore next */
|
|
37
|
+
if (super.typeDefinitionObj.nodeClass !== NodeClass.ObjectType) {
|
|
38
|
+
const msg = `Invalid type definition node class , expecting a ObjectType got ${NodeClass[super.typeDefinitionObj.nodeClass]}\n${this.browseName.toString()} ${this.nodeId.toString()}`;
|
|
45
39
|
errorLog(msg);
|
|
46
40
|
throw new Error(msg);
|
|
47
41
|
}
|
|
@@ -49,8 +43,12 @@ class UAObjectImpl extends base_node_impl_js_1.BaseNodeImpl {
|
|
|
49
43
|
}
|
|
50
44
|
constructor(options) {
|
|
51
45
|
super(options);
|
|
52
|
-
this._eventNotifier = options.eventNotifier ||
|
|
53
|
-
|
|
46
|
+
this._eventNotifier = options.eventNotifier || EventNotifierFlags.None;
|
|
47
|
+
// the declared flags, not the getter: reading the getter here scans the node's references
|
|
48
|
+
// for event sources and notifiers, twice, for a node that has just been built and whose
|
|
49
|
+
// references the loader has not wired yet. The getter answers the same value for a node in
|
|
50
|
+
// that state, and it still runs — and still caches — at the first real read.
|
|
51
|
+
assert(typeof this._eventNotifier === "number" && isValidByte(this._eventNotifier));
|
|
54
52
|
this.symbolicName = options.symbolicName || null;
|
|
55
53
|
// every event MonitoredItem on this object is one "event" listener, and the Server
|
|
56
54
|
// object collects them for every Session: more than ten is the normal case, not a
|
|
@@ -60,20 +58,20 @@ class UAObjectImpl extends base_node_impl_js_1.BaseNodeImpl {
|
|
|
60
58
|
readAttribute(context, attributeId, indexRange, dataEncoding) {
|
|
61
59
|
indexRange;
|
|
62
60
|
dataEncoding;
|
|
63
|
-
const now =
|
|
61
|
+
const now = getCurrentClock();
|
|
64
62
|
const options = {};
|
|
65
63
|
switch (attributeId) {
|
|
66
|
-
case
|
|
67
|
-
|
|
68
|
-
options.value = { dataType:
|
|
64
|
+
case AttributeIds.EventNotifier:
|
|
65
|
+
assert(isValidByte(this.eventNotifier));
|
|
66
|
+
options.value = { dataType: DataType.Byte, value: this.eventNotifier };
|
|
69
67
|
options.serverTimestamp = now.timestamp;
|
|
70
68
|
options.serverPicoseconds = now.picoseconds;
|
|
71
|
-
options.statusCode =
|
|
69
|
+
options.statusCode = StatusCodes.Good;
|
|
72
70
|
break;
|
|
73
71
|
default:
|
|
74
|
-
return
|
|
72
|
+
return BaseNodeImpl.prototype.readAttribute.call(this, context, attributeId, indexRange, dataEncoding);
|
|
75
73
|
}
|
|
76
|
-
return new
|
|
74
|
+
return new DataValue(options);
|
|
77
75
|
}
|
|
78
76
|
clone(options, optionalFilter, extraInfo) {
|
|
79
77
|
options = {
|
|
@@ -81,7 +79,7 @@ class UAObjectImpl extends base_node_impl_js_1.BaseNodeImpl {
|
|
|
81
79
|
symbolicName: this.symbolicName || undefined,
|
|
82
80
|
...options
|
|
83
81
|
};
|
|
84
|
-
const cloneObject =
|
|
82
|
+
const cloneObject = _clone(this, UAObjectImpl, options, optionalFilter || defaultCloneFilter, extraInfo || makeDefaultCloneExtraInfo(this));
|
|
85
83
|
// xx newObject.propagate_back_references();
|
|
86
84
|
// xx newObject.install_extra_properties();
|
|
87
85
|
return cloneObject;
|
|
@@ -112,17 +110,17 @@ class UAObjectImpl extends base_node_impl_js_1.BaseNodeImpl {
|
|
|
112
110
|
throw new Error(`raiseEvent: eventType cannot find event Type ${eventType.toString()}`);
|
|
113
111
|
}
|
|
114
112
|
eventType = eventTypeFound;
|
|
115
|
-
if (!eventType || eventType.nodeClass !==
|
|
113
|
+
if (!eventType || eventType.nodeClass !== NodeClass.ObjectType) {
|
|
116
114
|
throw new Error("eventType must exist and be an UAObjectType");
|
|
117
115
|
}
|
|
118
116
|
}
|
|
119
|
-
else if (eventType instanceof
|
|
117
|
+
else if (eventType instanceof NodeId) {
|
|
120
118
|
const eventTypeFound = addressSpace.findNode(eventType);
|
|
121
119
|
if (!eventTypeFound) {
|
|
122
120
|
throw new Error(`raiseEvent: eventType cannot find event Type ${eventType.toString()}`);
|
|
123
121
|
}
|
|
124
122
|
eventType = eventTypeFound;
|
|
125
|
-
if (!eventType || eventType.nodeClass !==
|
|
123
|
+
if (!eventType || eventType.nodeClass !== NodeClass.ObjectType) {
|
|
126
124
|
throw new Error(`eventType must exist and be an UAObjectType: ${eventType.toString()}`);
|
|
127
125
|
}
|
|
128
126
|
}
|
|
@@ -136,7 +134,7 @@ class UAObjectImpl extends base_node_impl_js_1.BaseNodeImpl {
|
|
|
136
134
|
eventTypeNode = addressSpace.findEventType(eventType);
|
|
137
135
|
const _baseEventType = addressSpace.findEventType("BaseEventType");
|
|
138
136
|
data.$eventDataSource = eventTypeNode;
|
|
139
|
-
data.sourceNode = data.sourceNode || { dataType:
|
|
137
|
+
data.sourceNode = data.sourceNode || { dataType: DataType.NodeId, value: this.nodeId };
|
|
140
138
|
const eventData1 = addressSpace.constructEventData(eventTypeNode, data);
|
|
141
139
|
this._bubble_up_event(eventData1);
|
|
142
140
|
}
|
|
@@ -149,14 +147,14 @@ class UAObjectImpl extends base_node_impl_js_1.BaseNodeImpl {
|
|
|
149
147
|
// emit on server object
|
|
150
148
|
const server = addressSpace.findNode("Server");
|
|
151
149
|
if (server) {
|
|
152
|
-
|
|
150
|
+
assert(server.eventNotifier > 0x00, "Server must be an event notifier");
|
|
153
151
|
server.emit("event", eventData);
|
|
154
152
|
m[server.nodeId.toString()] = server;
|
|
155
153
|
}
|
|
156
154
|
else {
|
|
157
|
-
errorLog(
|
|
158
|
-
|
|
159
|
-
|
|
155
|
+
errorLog(chalk.yellow("Warning. ") +
|
|
156
|
+
chalk.cyan("UAObject#raiseEvent") +
|
|
157
|
+
chalk.red(" cannot find Server object on addressSpace"));
|
|
160
158
|
}
|
|
161
159
|
addInQueue(this);
|
|
162
160
|
function addInQueue(obj) {
|
|
@@ -180,11 +178,11 @@ class UAObjectImpl extends base_node_impl_js_1.BaseNodeImpl {
|
|
|
180
178
|
}
|
|
181
179
|
}
|
|
182
180
|
_conditionRefresh(_cache) {
|
|
183
|
-
|
|
181
|
+
apply_condition_refresh.call(this, _cache);
|
|
184
182
|
}
|
|
185
183
|
toString() {
|
|
186
|
-
const options = new
|
|
187
|
-
|
|
184
|
+
const options = new ToStringBuilder();
|
|
185
|
+
UAObject_toString.call(this, options);
|
|
188
186
|
return options.toString();
|
|
189
187
|
}
|
|
190
188
|
toJSON() {
|
|
@@ -195,7 +193,7 @@ class UAObjectImpl extends base_node_impl_js_1.BaseNodeImpl {
|
|
|
195
193
|
};
|
|
196
194
|
}
|
|
197
195
|
[Symbol.for("nodejs.util.inspect.custom")](depth, inspectOptions) {
|
|
198
|
-
const c = inspectOptions?.colors === false ? plainChalk :
|
|
196
|
+
const c = inspectOptions?.colors === false ? plainChalk : chalk;
|
|
199
197
|
const typeName = this.typeDefinitionObj?.browseName.toString() ?? "?";
|
|
200
198
|
const displayName = this.displayName.length ? this.displayName.map((d) => d.text).join(" | ") : "";
|
|
201
199
|
if (depth !== null && depth <= 0) {
|
|
@@ -213,7 +211,6 @@ class UAObjectImpl extends base_node_impl_js_1.BaseNodeImpl {
|
|
|
213
211
|
return lines.join("\n");
|
|
214
212
|
}
|
|
215
213
|
}
|
|
216
|
-
exports.UAObjectImpl = UAObjectImpl;
|
|
217
214
|
// A colourless chalk for `inspect(node, { colors: false })`. Not a Proxy over `chalk`
|
|
218
215
|
// returning the identity for every property: chalk 4 defines each style (`cyan`, ...)
|
|
219
216
|
// on first use as a non-writable, non-configurable own data property, after which a
|
|
@@ -222,5 +219,5 @@ exports.UAObjectImpl = UAObjectImpl;
|
|
|
222
219
|
// colours, so that TypeError surfaced inside `node.on("event", ...)` when an eleventh
|
|
223
220
|
// event MonitoredItem was created on the Server object, and killed the server process
|
|
224
221
|
// (CTT A and C Refresh Err_004).
|
|
225
|
-
const plainChalk = new
|
|
222
|
+
const plainChalk = new chalk.Instance({ level: 0 });
|
|
226
223
|
//# sourceMappingURL=ua_object_impl.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ua_object_impl.js","sourceRoot":"","sources":["../../impl/ua_object_impl.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ua_object_impl.js","sourceRoot":"","sources":["../../impl/ua_object_impl.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAKH,kBAAkB,EAClB,kBAAkB,EAKlB,yBAAyB,EAO5B,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,SAAS,EAAqD,MAAM,uBAAuB,CAAC;AACnH,OAAO,EAAE,SAAS,EAAsB,MAAM,uBAAuB,CAAC;AACtE,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAE3C,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,uBAAuB,EAA8B,MAAM,8BAA8B,CAAC;AACnG,OAAO,EAAE,YAAY,EAAgC,MAAM,qBAAqB,CAAC;AACjF,OAAO,EAAE,MAAM,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAEpF,MAAM,QAAQ,GAAG,aAAa,CAAC,gBAAgB,CAAC,CAAC;AAEjD,MAAM,OAAO,YACT,SAAQ,YAAe;IAGf,cAAc,CAAqB;IAC3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|
/**
|
|
3
2
|
* @module node-opcua-address-space
|
|
4
3
|
*/
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
class UAObjectTypeImpl extends base_node_impl_js_1.BaseNodeImpl {
|
|
19
|
-
nodeClass = node_opcua_data_model_1.NodeClass.ObjectType;
|
|
4
|
+
import { assert } from "node-opcua-assert";
|
|
5
|
+
import { AttributeIds, NodeClass } from "node-opcua-data-model";
|
|
6
|
+
import { DataValue } from "node-opcua-data-value";
|
|
7
|
+
import { StatusCodes } from "node-opcua-status-code";
|
|
8
|
+
import { DataType } from "node-opcua-variant";
|
|
9
|
+
import { SessionContext } from "../api/session_context.js";
|
|
10
|
+
import { initialize_properties_and_components } from "./_instantiate_helpers.js";
|
|
11
|
+
import { BaseNodeImpl } from "./base_node_impl.js";
|
|
12
|
+
import { ToStringBuilder, UAObjectType_toString } from "./base_node_private.js";
|
|
13
|
+
import { construct_isSubtypeOf, get_subtypeOf, get_subtypeOfObj } from "./tool_isSubtypeOf.js";
|
|
14
|
+
import { assertUnusedChildBrowseName, topMostParentIsObjectTypeOrVariableType } from "./ua_variable_type_impl.js";
|
|
15
|
+
export class UAObjectTypeImpl extends BaseNodeImpl {
|
|
16
|
+
nodeClass = NodeClass.ObjectType;
|
|
20
17
|
isAbstract;
|
|
21
18
|
/**
|
|
22
19
|
* the EventNotifier the nodeset declared. The XSD allows it on a UAObjectType and nodesets use
|
|
@@ -32,34 +29,34 @@ class UAObjectTypeImpl extends base_node_impl_js_1.BaseNodeImpl {
|
|
|
32
29
|
return this.getMethods().length > 0;
|
|
33
30
|
}
|
|
34
31
|
get subtypeOf() {
|
|
35
|
-
return
|
|
32
|
+
return get_subtypeOf.call(this);
|
|
36
33
|
}
|
|
37
34
|
get subtypeOfObj() {
|
|
38
|
-
return
|
|
35
|
+
return get_subtypeOfObj.call(this);
|
|
39
36
|
}
|
|
40
|
-
isSubtypeOf =
|
|
37
|
+
isSubtypeOf = construct_isSubtypeOf(UAObjectTypeImpl);
|
|
41
38
|
/** @deprecated - use isSubtypeOf instead */
|
|
42
|
-
isSupertypeOf =
|
|
39
|
+
isSupertypeOf = construct_isSubtypeOf(UAObjectTypeImpl);
|
|
43
40
|
constructor(options) {
|
|
44
41
|
super(options);
|
|
45
42
|
this.isAbstract = options.isAbstract ?? false;
|
|
46
43
|
this.eventNotifier = options.eventNotifier ?? 0;
|
|
47
44
|
}
|
|
48
45
|
readAttribute(context, attributeId) {
|
|
49
|
-
|
|
46
|
+
assert(context instanceof SessionContext);
|
|
50
47
|
const options = {};
|
|
51
48
|
switch (attributeId) {
|
|
52
|
-
case
|
|
49
|
+
case AttributeIds.IsAbstract:
|
|
53
50
|
options.value = {
|
|
54
|
-
dataType:
|
|
51
|
+
dataType: DataType.Boolean,
|
|
55
52
|
value: !!this.isAbstract
|
|
56
53
|
};
|
|
57
|
-
options.statusCode =
|
|
54
|
+
options.statusCode = StatusCodes.Good;
|
|
58
55
|
break;
|
|
59
56
|
default:
|
|
60
|
-
return
|
|
57
|
+
return BaseNodeImpl.prototype.readAttribute.call(this, context, attributeId);
|
|
61
58
|
}
|
|
62
|
-
return new
|
|
59
|
+
return new DataValue(options);
|
|
63
60
|
}
|
|
64
61
|
/**
|
|
65
62
|
* instantiate an object of this UAObjectType
|
|
@@ -90,19 +87,19 @@ class UAObjectTypeImpl extends base_node_impl_js_1.BaseNodeImpl {
|
|
|
90
87
|
*/
|
|
91
88
|
instantiate(options) {
|
|
92
89
|
const addressSpace = this.addressSpace;
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
90
|
+
assert(!this.isAbstract, "cannot instantiate abstract UAObjectType");
|
|
91
|
+
assert(options, "missing option object");
|
|
92
|
+
assert(typeof options.browseName === "string" || (options.browseName !== null && typeof options.browseName === "object"), "expecting a browse name");
|
|
93
|
+
assert(!Object.hasOwn(options, "propertyOf"), "an Object shall not be a PropertyOf an other object");
|
|
94
|
+
assert(!Object.hasOwn(options, "optional"), "do you mean optionals ?");
|
|
95
|
+
assertUnusedChildBrowseName(addressSpace, options);
|
|
99
96
|
const baseObjectType = addressSpace.findObjectType("BaseObjectType");
|
|
100
|
-
|
|
97
|
+
assert(baseObjectType, "BaseObjectType must be defined in the address space");
|
|
101
98
|
// caller-supplied references (typically an inverse aggregate reference to a
|
|
102
99
|
// parent that has no dedicated option, e.g. HasOrderedComponent) are created
|
|
103
100
|
// with the node, so the NodeIdManager sees the parent when naming it.
|
|
104
101
|
const references = options.references ? [...options.references] : [];
|
|
105
|
-
const copyAlsoModellingRules =
|
|
102
|
+
const copyAlsoModellingRules = topMostParentIsObjectTypeOrVariableType(addressSpace, options);
|
|
106
103
|
const opts = {
|
|
107
104
|
browseName: options.browseName,
|
|
108
105
|
componentOf: options.componentOf,
|
|
@@ -125,8 +122,8 @@ class UAObjectTypeImpl extends base_node_impl_js_1.BaseNodeImpl {
|
|
|
125
122
|
const namespace = options.namespace || this.addressSpace.getOwnNamespace();
|
|
126
123
|
const instance = namespace.addObject(opts);
|
|
127
124
|
const copyAlsoAllOptionals = options.copyAlsoAllOptionals || false;
|
|
128
|
-
|
|
129
|
-
|
|
125
|
+
initialize_properties_and_components(instance, baseObjectType, this, copyAlsoModellingRules, copyAlsoAllOptionals, options.optionals);
|
|
126
|
+
assert(instance.typeDefinition.toString() === this.nodeId.toString());
|
|
130
127
|
instance.install_extra_properties();
|
|
131
128
|
if (this._postInstantiateFunc) {
|
|
132
129
|
this._postInstantiateFunc(instance, this, options);
|
|
@@ -134,10 +131,9 @@ class UAObjectTypeImpl extends base_node_impl_js_1.BaseNodeImpl {
|
|
|
134
131
|
return instance;
|
|
135
132
|
}
|
|
136
133
|
toString() {
|
|
137
|
-
const options = new
|
|
138
|
-
|
|
134
|
+
const options = new ToStringBuilder();
|
|
135
|
+
UAObjectType_toString.call(this, options);
|
|
139
136
|
return options.toString();
|
|
140
137
|
}
|
|
141
138
|
}
|
|
142
|
-
exports.UAObjectTypeImpl = UAObjectTypeImpl;
|
|
143
139
|
//# sourceMappingURL=ua_object_type_impl.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ua_object_type_impl.js","sourceRoot":"","sources":["../../impl/ua_object_type_impl.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ua_object_type_impl.js","sourceRoot":"","sources":["../../impl/ua_object_type_impl.ts"],"names":[],"mappings":"AAAA;;GAEG;AAWH,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,YAAY,EAA0B,SAAS,EAAE,MAAM,uBAAuB,CAAC;AACxF,OAAO,EAAE,SAAS,EAAsB,MAAM,uBAAuB,CAAC;AAEtE,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAE9C,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,oCAAoC,EAAE,MAAM,2BAA2B,CAAC;AAEjF,OAAO,EAAE,YAAY,EAAgC,MAAM,qBAAqB,CAAC;AACjF,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAChF,OAAO,EAAE,qBAAqB,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAC/F,OAAO,EAAE,2BAA2B,EAAE,uCAAuC,EAAE,MAAM,4BAA4B,CAAC;AAQlH,MAAM,OAAO,gBAAiB,SAAQ,YAA4B;IAC9C,SAAS,GAAG,SAAS,CAAC,UAAU,CAAC;IACjC,UAAU,CAAU;IACpC;;;;;OAKG;IACa,aAAa,CAAS;IACtC;;OAEG;IACH,IAAW,UAAU;QACjB,OAAO,IAAI,CAAC,UAA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O,CAAC,QAAQ,EAAE,CAAC;IAC9B,CAAC;CACJ"}
|
|
@@ -28,7 +28,7 @@ export declare class UAReferenceTypeImpl extends BaseNodeImpl<BaseNodeEvents> im
|
|
|
28
28
|
/**
|
|
29
29
|
* @private
|
|
30
30
|
*/
|
|
31
|
-
_slow_isSubtypeOf: (this: UAReferenceType, baseType: import("node-opcua-nodeid").NodeIdLike
|
|
31
|
+
_slow_isSubtypeOf: (this: UAReferenceType, baseType: UAReferenceType | import("node-opcua-nodeid").NodeIdLike) => boolean;
|
|
32
32
|
constructor(options: UAReferenceTypeOptions);
|
|
33
33
|
readAttribute(context: SessionContext | null, attributeId: AttributeIds): DataValue;
|
|
34
34
|
toString(): string;
|
|
@@ -40,3 +40,4 @@ export declare class UAReferenceTypeImpl extends BaseNodeImpl<BaseNodeEvents> im
|
|
|
40
40
|
getAllSubtypes(): UAReferenceType[];
|
|
41
41
|
checkHasSubtype(ref: UAReference | NodeId): boolean;
|
|
42
42
|
}
|
|
43
|
+
//# sourceMappingURL=ua_reference_type_impl.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ua_reference_type_impl.d.ts","sourceRoot":"","sources":["../../impl/ua_reference_type_impl.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAElG,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,KAAK,oBAAoB,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAC1G,OAAO,EAAE,SAAS,EAAsB,MAAM,uBAAuB,CAAC;AACtE,OAAO,EAAE,KAAK,MAAM,EAAc,MAAM,mBAAmB,CAAC;AAK5D,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,KAAK,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAyEjF,MAAM,WAAW,sBAAuB,SAAQ,uBAAuB;IACnE,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,EAAE,IAAI,GAAG,MAAM,GAAG,oBAAoB,CAAC;CACrD;AACD,qBAAa,mBAAoB,SAAQ,YAAY,CAAC,cAAc,CAAE,YAAW,eAAe;IAC5F,SAAgB,SAAS,2BAA2B;IACpD,SAAgB,UAAU,EAAE,OAAO,CAAC;IACpC,SAAgB,SAAS,EAAE,OAAO,CAAC;IACnC,SAAgB,WAAW,EAAE,aAAa,CAAC;IAE3C,IAAW,YAAY,IAAI,eAAe,GAAG,IAAI,CAEhD;IAED,IAAW,SAAS,IAAI,MAAM,GAAG,IAAI,CAEpC;IAED;;OAEG;IACI,WAAW,mEAA+D;IAEjF,6CAA6C;IACtC,aAAa,mEAA+D;IAEnF;;OAEG;IACI,iBAAiB,yGAAoE;IAE5F,YAAY,OAAO,EAAE,sBAAsB,EAQ1C;IAEM,aAAa,CAAC,OAAO,EAAE,cAAc,GAAG,IAAI,EAAE,WAAW,EAAE,YAAY,GAAG,SAAS,CAqBzF;IAEM,QAAQ,IAAI,MAAM,CAOxB;IAEM,wBAAwB,IAAI,IAAI,CAEtC;IAED;;;OAGG;IACI,cAAc,IAAI,eAAe,EAAE,CAEzC;IAEM,eAAe,CAAC,GAAG,EAAE,WAAW,GAAG,MAAM,GAAG,OAAO,CAIzD;CACJ"}
|
|
@@ -1,29 +1,26 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
/**
|
|
3
2
|
* @module node-opcua-address-space
|
|
4
3
|
*/
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
const node_opcua_status_code_1 = require("node-opcua-status-code");
|
|
12
|
-
const node_opcua_variant_1 = require("node-opcua-variant");
|
|
4
|
+
import { assert } from "node-opcua-assert";
|
|
5
|
+
import { AttributeIds, LocalizedText, NodeClass } from "node-opcua-data-model";
|
|
6
|
+
import { DataValue } from "node-opcua-data-value";
|
|
7
|
+
import { NodeIdType } from "node-opcua-nodeid";
|
|
8
|
+
import { StatusCodes } from "node-opcua-status-code";
|
|
9
|
+
import { DataType } from "node-opcua-variant";
|
|
13
10
|
// the module itself, not the api barrel: the barrel also publishes the AddressSpace value,
|
|
14
11
|
// and reaching it from here closes a cycle that throws under ESM
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
12
|
+
import { SessionContext } from "../api/session_context.js";
|
|
13
|
+
import { BaseNodeImpl } from "./base_node_impl.js";
|
|
14
|
+
import { BaseNode_getCache } from "./base_node_private.js";
|
|
15
|
+
import { ReferenceImpl } from "./reference_impl.js";
|
|
16
|
+
import { referenceTypeVersion } from "./reference_type_version.js";
|
|
17
|
+
import { construct_isSubtypeOf, construct_slow_isSubtypeOf, get_subtypeOf, get_subtypeOfObj } from "./tool_isSubtypeOf.js";
|
|
21
18
|
/**
|
|
22
19
|
* the key a reference type is indexed under: no string is built for a numeric NodeId, which is
|
|
23
20
|
* what every reference in a load carries, and `checkHasSubtype` runs once per reference per scan
|
|
24
21
|
*/
|
|
25
22
|
function subtypeIndexKey(nodeId) {
|
|
26
|
-
return nodeId.identifierType ===
|
|
23
|
+
return nodeId.identifierType === NodeIdType.NUMERIC
|
|
27
24
|
? nodeId.namespace * 0x100000000 + nodeId.value
|
|
28
25
|
: nodeId.toString();
|
|
29
26
|
}
|
|
@@ -35,7 +32,7 @@ function _internal_getAllSubtypes(referenceType) {
|
|
|
35
32
|
if (!hasSubtypeReferenceType)
|
|
36
33
|
throw new Error("cannot find HasSubtype reference type");
|
|
37
34
|
possibleReferenceTypes.push(referenceTypeInner);
|
|
38
|
-
|
|
35
|
+
assert(referenceTypeInner.nodeClass === NodeClass.ReferenceType);
|
|
39
36
|
const references = referenceTypeInner.findReferences(hasSubtypeReferenceType, true);
|
|
40
37
|
for (const _r of references) {
|
|
41
38
|
const subType = addressSpace.findReferenceType(_r.nodeId);
|
|
@@ -48,13 +45,13 @@ function _internal_getAllSubtypes(referenceType) {
|
|
|
48
45
|
return possibleReferenceTypes;
|
|
49
46
|
}
|
|
50
47
|
function _getAllSubtypes(ref) {
|
|
51
|
-
const _cache =
|
|
52
|
-
if (!_cache._allSubTypesVersion || _cache._allSubTypesVersion <
|
|
48
|
+
const _cache = BaseNode_getCache(ref);
|
|
49
|
+
if (!_cache._allSubTypesVersion || _cache._allSubTypesVersion < referenceTypeVersion.count) {
|
|
53
50
|
_cache._allSubTypes = null;
|
|
54
51
|
}
|
|
55
52
|
if (!_cache._allSubTypes) {
|
|
56
53
|
_cache._allSubTypes = _internal_getAllSubtypes(ref);
|
|
57
|
-
_cache._allSubTypesVersion =
|
|
54
|
+
_cache._allSubTypesVersion = referenceTypeVersion.count;
|
|
58
55
|
}
|
|
59
56
|
return _cache._allSubTypes;
|
|
60
57
|
}
|
|
@@ -68,66 +65,66 @@ function _internal_getSubtypeIndex(referenceType) {
|
|
|
68
65
|
return keys;
|
|
69
66
|
}
|
|
70
67
|
function _getSubtypeIndex(referenceType) {
|
|
71
|
-
const _cache =
|
|
72
|
-
if (!_cache._subtype_idx || (_cache._subtype_idxVersion && _cache._subtype_idxVersion <
|
|
68
|
+
const _cache = BaseNode_getCache(referenceType);
|
|
69
|
+
if (!_cache._subtype_idx || (_cache._subtype_idxVersion && _cache._subtype_idxVersion < referenceTypeVersion.count)) {
|
|
73
70
|
// the cache need to be invalidated
|
|
74
71
|
_cache._subtype_idx = null;
|
|
75
72
|
}
|
|
76
73
|
if (!_cache._subtype_idx) {
|
|
77
74
|
_cache._subtype_idx = _internal_getSubtypeIndex(referenceType);
|
|
78
|
-
_cache._subtype_idxVersion =
|
|
75
|
+
_cache._subtype_idxVersion = referenceTypeVersion.count;
|
|
79
76
|
}
|
|
80
77
|
return _cache._subtype_idx;
|
|
81
78
|
}
|
|
82
|
-
class UAReferenceTypeImpl extends
|
|
83
|
-
nodeClass =
|
|
79
|
+
export class UAReferenceTypeImpl extends BaseNodeImpl {
|
|
80
|
+
nodeClass = NodeClass.ReferenceType;
|
|
84
81
|
isAbstract;
|
|
85
82
|
symmetric;
|
|
86
83
|
inverseName;
|
|
87
84
|
get subtypeOfObj() {
|
|
88
|
-
return
|
|
85
|
+
return get_subtypeOfObj.call(this);
|
|
89
86
|
}
|
|
90
87
|
get subtypeOf() {
|
|
91
|
-
return
|
|
88
|
+
return get_subtypeOf.call(this);
|
|
92
89
|
}
|
|
93
90
|
/**
|
|
94
91
|
* returns true if self is a super type of baseType
|
|
95
92
|
*/
|
|
96
|
-
isSubtypeOf =
|
|
93
|
+
isSubtypeOf = construct_isSubtypeOf(UAReferenceTypeImpl);
|
|
97
94
|
/** @deprecated - use `isSubtypeOf` instead*/
|
|
98
|
-
isSupertypeOf =
|
|
95
|
+
isSupertypeOf = construct_isSubtypeOf(UAReferenceTypeImpl);
|
|
99
96
|
/**
|
|
100
97
|
* @private
|
|
101
98
|
*/
|
|
102
|
-
_slow_isSubtypeOf =
|
|
99
|
+
_slow_isSubtypeOf = construct_slow_isSubtypeOf(UAReferenceTypeImpl);
|
|
103
100
|
constructor(options) {
|
|
104
101
|
super(options);
|
|
105
102
|
this.isAbstract = options.isAbstract === undefined ? false : !!options.isAbstract;
|
|
106
103
|
this.symmetric = options.symmetric === undefined ? false : !!options.symmetric;
|
|
107
104
|
// Note: Inverse name is not required anymore in 1.0.4
|
|
108
|
-
this.inverseName = new
|
|
109
|
-
|
|
105
|
+
this.inverseName = new LocalizedText(options.inverseName || this.browseName.name);
|
|
106
|
+
referenceTypeVersion.count += 1;
|
|
110
107
|
}
|
|
111
108
|
readAttribute(context, attributeId) {
|
|
112
|
-
|
|
109
|
+
assert(!context || context instanceof SessionContext);
|
|
113
110
|
const options = {};
|
|
114
111
|
switch (attributeId) {
|
|
115
|
-
case
|
|
116
|
-
options.value = { dataType:
|
|
117
|
-
options.statusCode =
|
|
112
|
+
case AttributeIds.IsAbstract:
|
|
113
|
+
options.value = { dataType: DataType.Boolean, value: !!this.isAbstract };
|
|
114
|
+
options.statusCode = StatusCodes.Good;
|
|
118
115
|
break;
|
|
119
|
-
case
|
|
120
|
-
options.value = { dataType:
|
|
121
|
-
options.statusCode =
|
|
116
|
+
case AttributeIds.Symmetric:
|
|
117
|
+
options.value = { dataType: DataType.Boolean, value: !!this.symmetric };
|
|
118
|
+
options.statusCode = StatusCodes.Good;
|
|
122
119
|
break;
|
|
123
|
-
case
|
|
124
|
-
options.value = { dataType:
|
|
125
|
-
options.statusCode =
|
|
120
|
+
case AttributeIds.InverseName: // LocalizedText
|
|
121
|
+
options.value = { dataType: DataType.LocalizedText, value: this.inverseName };
|
|
122
|
+
options.statusCode = StatusCodes.Good;
|
|
126
123
|
break;
|
|
127
124
|
default:
|
|
128
125
|
return super.readAttribute(context, attributeId);
|
|
129
126
|
}
|
|
130
|
-
return new
|
|
127
|
+
return new DataValue(options);
|
|
131
128
|
}
|
|
132
129
|
toString() {
|
|
133
130
|
let str = "";
|
|
@@ -149,9 +146,8 @@ class UAReferenceTypeImpl extends base_node_impl_js_1.BaseNodeImpl {
|
|
|
149
146
|
}
|
|
150
147
|
checkHasSubtype(ref) {
|
|
151
148
|
const _index = _getSubtypeIndex(this);
|
|
152
|
-
const referenceTypeNodeId = ref instanceof
|
|
149
|
+
const referenceTypeNodeId = ref instanceof ReferenceImpl ? ref.nodeId : ref;
|
|
153
150
|
return _index.has(subtypeIndexKey(referenceTypeNodeId));
|
|
154
151
|
}
|
|
155
152
|
}
|
|
156
|
-
exports.UAReferenceTypeImpl = UAReferenceTypeImpl;
|
|
157
153
|
//# sourceMappingURL=ua_reference_type_impl.js.map
|