node-opcua-address-space 2.183.0 → 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/alarms_and_conditions/deviation_stuff.ts +30 -0
- 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/loader/register_node_promoter.ts +10 -2
- 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 +29 -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 +10 -1
- package/dist/api/loader/register_node_promoter.d.ts.map +1 -0
- package/dist/api/loader/register_node_promoter.js +11 -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 +17 -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 +9 -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 +28 -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 +9 -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 +27 -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 +16 -0
- package/dist/impl/nodeid_manager.d.ts.map +1 -0
- package/dist/impl/nodeid_manager.js +70 -46
- 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 +36 -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 +78 -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/deviation_alarm_helper.ts +3 -0
- 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/alarms_and_conditions/ua_exclusive_deviation_alarm_impl.ts +12 -1
- package/impl/alarms_and_conditions/ua_non_exclusive_deviation_alarm_impl.ts +12 -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 +40 -5
- 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_object_type_impl.ts +1 -0
- package/impl/ua_variable_impl.ts +15 -8
- package/impl/ua_variable_type_impl.ts +4 -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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ua_two_state_variable.js","sourceRoot":"","sources":["../../../impl/state_machine/ua_two_state_variable.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ua_two_state_variable.js","sourceRoot":"","sources":["../../../impl/state_machine/ua_two_state_variable.ts"],"names":[],"mappings":"AAAA;;GAEG;AAUH,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EACH,eAAe,EACf,mBAAmB,EACnB,yBAAyB,EAI5B,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAe,aAAa,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE3E,OAAO,EAA4C,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAC/F,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAmC,MAAM,oBAAoB,CAAC;AAGxF,oBAAoB;AACpB,OAAO,EAAE,oBAAoB,EAAE,MAAM,4CAA4C,CAAC;AAElF,gBAAgB;AAChB,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAEzE,MAAM,mCAAmC,GAAG,aAAa,CAAC,iBAAiB,CAAC,CAAC;AAC7E,MAAM,oCAAoC,GAAG,aAAa,CAAC,kBAAkB,CAAC,CAAC;AAE/E,mDAAmD;AACnD,2BAA2B;AAC3B,4FAA4F;AAC5F,6FAA6F;AAC7F,0DAA0D;AAC1D,kEAAkE;AAClE,EAAE;AACF,yBAAyB;AACzB,wCAAwC;AACxC,iCAAiC;AACjC,oCAAoC;AACpC,yBAAyB;AACzB,EAAE;AACF,sDAAsD;AACtD,gGAAgG;AAChG,EAAE;AACF,gGAAgG;AAChG,2FAA2F;AAC3F,0FAA0F;AAC1F,0FAA0F;AAC1F,0FAA0F;AAC1F,0FAA0F;AAC1F,kCAAkC;AAClC,uCAAuC;AACvC,sGAAsG;AACtG,mCAAmC;AACnC,wCAAwC;AACxC,sGAAsG;AAEtG,SAAS,qBAAqB,CAAC,IAA0B,EAAE,SAAsB,EAAE,OAA0B;IACzG,wEAAw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AC;IACzC,CAAC;IAED,iCAAiC;IACjC,OAAO,CAAC,uBAAuB,GAAG,CAAC,CAAC;IAEpC,MAAM,IAAI,GAAG,oBAAoB,CAAC,WAAW,CAAC;QAC1C,UAAU,EAAE,OAAO,CAAC,UAAU;QAE9B,MAAM,EAAE,OAAO,CAAC,MAAM;QAEtB,WAAW,EAAE,OAAO,CAAC,WAAW;QAEhC,WAAW,EAAE,OAAO,CAAC,WAAW;QAChC,WAAW,EAAE,OAAO,CAAC,WAAW;QAEhC,aAAa,EAAE,OAAO,CAAC,aAAa;QAEpC,QAAQ,EAAE,aAAa,CAAC,QAAQ,CAAC,aAAa,CAAC;QAE/C,uBAAuB,EAAE,OAAO,CAAC,uBAAuB;QAExD,SAAS,EAAE,OAAO,CAAC,SAAS;KAC/B,CAAC,CAAC;IAEH,MAAM,KAAK,GAAG,mCAAmC,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IACjE,OAAO,KAAK,CAAC;AACjB,CAAC"}
|
|
@@ -16,3 +16,4 @@ export declare function construct_slow_isSubtypeOf<T extends UAType>(Class: type
|
|
|
16
16
|
*/
|
|
17
17
|
export declare function get_subtypeOf<T extends BaseNode>(this: T): NodeId | null;
|
|
18
18
|
export declare function get_subtypeOfObj<T extends BaseNode>(this: T): T | null;
|
|
19
|
+
//# sourceMappingURL=tool_isSubtypeOf.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool_isSubtypeOf.d.ts","sourceRoot":"","sources":["../../impl/tool_isSubtypeOf.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EACR,QAAQ,EACR,UAAU,EACV,YAAY,EAEZ,eAAe,EACf,cAAc,EACjB,MAAM,+BAA+B,CAAC;AAGvC,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,UAAU,EAA6B,MAAM,mBAAmB,CAAC;AAC5F,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAWxD,MAAM,MAAM,mBAAmB,CAAC,CAAC,SAAS,QAAQ,IAAI,UAAU,CAAC,CAAC;AAwClE,MAAM,MAAM,eAAe,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,KAAK,CAAC,CAAC;AAShE,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,QAI9C;AAuCD,MAAM,MAAM,eAAe,CAAC,CAAC,SAAS,MAAM,IAAI,CAAC,IAAI,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,KAAK,OAAO,CAAC;AAElF,MAAM,MAAM,MAAM,GAAG,eAAe,GAAG,UAAU,GAAG,YAAY,GAAG,cAAc,CAAC;AAElF,wBAAgB,qBAAqB,CAAC,CAAC,SAAS,MAAM,EAAE,KAAK,EAAE,OAAO,YAAY,GAAG,eAAe,CAAC,CAAC,CAAC,CAiBtG;AAED,wBAAgB,0BAA0B,CAAC,CAAC,SAAS,MAAM,EAAE,KAAK,EAAE,OAAO,YAAY,UAC5D,CAAC,YAAY,CAAC,GAAG,UAAU,KAAG,OAAO,CAG/D;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,CAAC,SAAS,QAAQ,EAAE,IAAI,EAAE,CAAC,GAAG,MAAM,GAAG,IAAI,CAGxE;AAED,wBAAgB,gBAAgB,CAAC,CAAC,SAAS,QAAQ,EAAE,IAAI,EAAE,CAAC,GAAG,CAAC,GAAG,IAAI,CAYtE"}
|
|
@@ -1,22 +1,15 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
/**
|
|
3
2
|
* @module node-opcua-address-space
|
|
4
3
|
*/
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
const
|
|
12
|
-
const node_opcua_data_model_1 = require("node-opcua-data-model");
|
|
13
|
-
const node_opcua_nodeid_1 = require("node-opcua-nodeid");
|
|
14
|
-
const base_node_private_js_1 = require("./base_node_private.js");
|
|
15
|
-
const reference_impl_js_1 = require("./reference_impl.js");
|
|
16
|
-
const reference_type_version_js_1 = require("./reference_type_version.js");
|
|
17
|
-
const HasSubTypeNodeId = (0, node_opcua_nodeid_1.resolveNodeId)("HasSubtype");
|
|
4
|
+
import { assert } from "node-opcua-assert";
|
|
5
|
+
import { NodeClass } from "node-opcua-data-model";
|
|
6
|
+
import { resolveNodeId, sameNodeId } from "node-opcua-nodeid";
|
|
7
|
+
import { BaseNode_getCache } from "./base_node_private.js";
|
|
8
|
+
import { nodeIdKey, ReferenceImpl } from "./reference_impl.js";
|
|
9
|
+
import { typeHierarchyVersion } from "./reference_type_version.js";
|
|
10
|
+
const HasSubTypeNodeId = resolveNodeId("HasSubtype");
|
|
18
11
|
function _filterSubType(reference) {
|
|
19
|
-
return
|
|
12
|
+
return sameNodeId(reference.referenceType, HasSubTypeNodeId) && !reference.isForward;
|
|
20
13
|
}
|
|
21
14
|
function _slow_isSubtypeOf(Class, baseType) {
|
|
22
15
|
if (!(baseType instanceof Class)) {
|
|
@@ -26,23 +19,23 @@ function _slow_isSubtypeOf(Class, baseType) {
|
|
|
26
19
|
}
|
|
27
20
|
return _slow_isSubtypeOf.call(this, Class, node);
|
|
28
21
|
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
if (
|
|
22
|
+
assert(this instanceof Class);
|
|
23
|
+
assert(baseType instanceof Class, " Object must have same type");
|
|
24
|
+
assert(this.addressSpace);
|
|
25
|
+
if (sameNodeId(this.nodeId, baseType.nodeId)) {
|
|
33
26
|
return true;
|
|
34
27
|
}
|
|
35
28
|
const references = this.allReferences();
|
|
36
29
|
const subTypes = references.filter(_filterSubType);
|
|
37
|
-
|
|
30
|
+
assert(subTypes.length <= 1, "should have zero or one subtype no more");
|
|
38
31
|
for (const subType1 of subTypes) {
|
|
39
32
|
const subTypeId = subType1.nodeId;
|
|
40
33
|
const subTypeNode = this.addressSpace.findNode(subTypeId);
|
|
41
|
-
|
|
34
|
+
/* c8 ignore next */
|
|
42
35
|
if (!subTypeNode) {
|
|
43
36
|
throw new Error(`Cannot find object with nodeId ${subTypeId.toString()}`);
|
|
44
37
|
}
|
|
45
|
-
if (
|
|
38
|
+
if (sameNodeId(subTypeNode.nodeId, baseType.nodeId)) {
|
|
46
39
|
return true;
|
|
47
40
|
}
|
|
48
41
|
else {
|
|
@@ -59,7 +52,7 @@ function _slow_isSubtypeOf(Class, baseType) {
|
|
|
59
52
|
const g_WeakMap = new WeakMap();
|
|
60
53
|
/** the typeHierarchyVersion each memo was built against */
|
|
61
54
|
const g_memoVersion = new WeakMap();
|
|
62
|
-
function wipeMemorizedStuff(node) {
|
|
55
|
+
export function wipeMemorizedStuff(node) {
|
|
63
56
|
if (g_WeakMap.has(node)) {
|
|
64
57
|
g_WeakMap.delete(node);
|
|
65
58
|
}
|
|
@@ -73,11 +66,11 @@ function wrap_memoize(func, hashFunc) {
|
|
|
73
66
|
};
|
|
74
67
|
return function memoize(param) {
|
|
75
68
|
let memoMap = g_WeakMap.get(this);
|
|
76
|
-
if (!memoMap || g_memoVersion.get(this) !==
|
|
69
|
+
if (!memoMap || g_memoVersion.get(this) !== typeHierarchyVersion.count) {
|
|
77
70
|
// no memo yet, or a HasSubtype reference moved somewhere since it was built
|
|
78
71
|
memoMap = new Map();
|
|
79
72
|
g_WeakMap.set(this, memoMap);
|
|
80
|
-
g_memoVersion.set(this,
|
|
73
|
+
g_memoVersion.set(this, typeHierarchyVersion.count);
|
|
81
74
|
}
|
|
82
75
|
const hash = effectiveHashFunc.call(this, param);
|
|
83
76
|
if (memoMap.has(hash)) {
|
|
@@ -90,11 +83,11 @@ function wrap_memoize(func, hashFunc) {
|
|
|
90
83
|
}
|
|
91
84
|
function hashBaseNode(e) {
|
|
92
85
|
if (e && typeof e === "object" && "nodeId" in e) {
|
|
93
|
-
return
|
|
86
|
+
return nodeIdKey(e.nodeId);
|
|
94
87
|
}
|
|
95
|
-
return
|
|
88
|
+
return nodeIdKey(resolveNodeId(e));
|
|
96
89
|
}
|
|
97
|
-
function construct_isSubtypeOf(Class) {
|
|
90
|
+
export function construct_isSubtypeOf(Class) {
|
|
98
91
|
return wrap_memoize(function (baseType) {
|
|
99
92
|
if (!(baseType instanceof Class)) {
|
|
100
93
|
throw new Error("expecting baseType to be " +
|
|
@@ -102,7 +95,7 @@ function construct_isSubtypeOf(Class) {
|
|
|
102
95
|
" but got " +
|
|
103
96
|
baseType.toString() +
|
|
104
97
|
" " +
|
|
105
|
-
|
|
98
|
+
NodeClass[baseType.nodeClass]);
|
|
106
99
|
}
|
|
107
100
|
if (!(this instanceof Class)) {
|
|
108
101
|
throw new Error(`expecting this to be ${Class.name} but got ${baseType.toString()}`);
|
|
@@ -110,7 +103,7 @@ function construct_isSubtypeOf(Class) {
|
|
|
110
103
|
return _slow_isSubtypeOf.call(this, Class, baseType);
|
|
111
104
|
}, hashBaseNode);
|
|
112
105
|
}
|
|
113
|
-
function construct_slow_isSubtypeOf(Class) {
|
|
106
|
+
export function construct_slow_isSubtypeOf(Class) {
|
|
114
107
|
return function (baseType) {
|
|
115
108
|
return _slow_isSubtypeOf.call(this, Class, baseType);
|
|
116
109
|
};
|
|
@@ -118,16 +111,16 @@ function construct_slow_isSubtypeOf(Class) {
|
|
|
118
111
|
/**
|
|
119
112
|
* returns the nodeId of the Type which is the super type of this
|
|
120
113
|
*/
|
|
121
|
-
function get_subtypeOf() {
|
|
114
|
+
export function get_subtypeOf() {
|
|
122
115
|
const s = get_subtypeOfObj.call(this);
|
|
123
116
|
return s ? s.nodeId : null;
|
|
124
117
|
}
|
|
125
|
-
function get_subtypeOfObj() {
|
|
126
|
-
const _cache =
|
|
118
|
+
export function get_subtypeOfObj() {
|
|
119
|
+
const _cache = BaseNode_getCache(this);
|
|
127
120
|
if (_cache._subtypeOfObj === undefined) {
|
|
128
121
|
const is_subtype_of_ref = this.findReference("HasSubtype", false);
|
|
129
122
|
if (is_subtype_of_ref) {
|
|
130
|
-
_cache._subtypeOfObj =
|
|
123
|
+
_cache._subtypeOfObj = ReferenceImpl.resolveReferenceNode(this.addressSpace, is_subtype_of_ref);
|
|
131
124
|
}
|
|
132
125
|
else {
|
|
133
126
|
_cache._subtypeOfObj = null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool_isSubtypeOf.js","sourceRoot":"","sources":["../../impl/tool_isSubtypeOf.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tool_isSubtypeOf.js","sourceRoot":"","sources":["../../impl/tool_isSubtypeOf.ts"],"names":[],"mappings":"AAAA;;GAEG;AAUH,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAgC,aAAa,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE5F,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAEnE,MAAM,gBAAgB,GAAG,aAAa,CAAC,YAAY,CAAC,CAAC;AAErD,SAAS,cAAc,CAAC,SAAsB;IAC1C,OAAO,UAAU,CAAC,SAAS,CAAC,aAAa,EAAE,gBAAgB,CAAC,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC;AACzF,CAAC;AAID,SAAS,iBAAiB,CAA4B,KAA0B,EAAE,QAAwB;IACtG,IAAI,CAAC,CAAC,QAAQ,YAAY,KAAK,CAAC,EAAE,CAAC;QAC/B,MAAM,IAAI,GAAG,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,QAAsB,CAAC,CAAC;QAChE,IAAI,CAAC,IAAI,IAAI,CAAC,CAAC,IAAI,YAAY,KAAK,CAAC,EAAE,CAAC;YACpC,MAAM,IAAI,KAAK,CAAC,kBAAkB,CAAC,CAAC;QACxC,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gB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC;AAC/B,CAAC;AAED,MAAM,UAAU,gBAAgB;IAC5B,MAAM,MAAM,GAAG,iBAAiB,CAAC,IAAI,CAAC,CAAC;IAEvC,IAAI,MAAM,CAAC,aAAa,KAAK,SAAS,EAAE,CAAC;QACrC,MAAM,iBAAiB,GAAG,IAAI,CAAC,aAAa,CAAC,YAAY,EAAE,KAAK,CAAC,CAAC;QAClE,IAAI,iBAAiB,EAAE,CAAC;YACpB,MAAM,CAAC,aAAa,GAAG,aAAa,CAAC,oBAAoB,CAAC,IAAI,CAAC,YAAY,EAAE,iBAAiB,CAAC,CAAC;QACpG,CAAC;aAAM,CAAC;YACJ,MAAM,CAAC,aAAa,GAAG,IAAI,CAAC;QAChC,CAAC;IACL,CAAC;IACD,OAAQ,MAAM,CAAC,aAAmB,IAAI,IAAI,CAAC;AAC/C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ua_condition_type.d.ts","sourceRoot":"","sources":["../../impl/ua_condition_type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAE5E,MAAM,WAAW,eAAgB,SAAQ,YAAY;IACjD,OAAO,EAAE,QAAQ,CAAC;IAClB,MAAM,EAAE,QAAQ,CAAC;IACjB,gBAAgB,EAAE,QAAQ,CAAC;IAC3B,iBAAiB,EAAE,QAAQ,CAAC;IAC5B,UAAU,EAAE,QAAQ,CAAC;CACxB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ua_data_type_impl.d.ts","sourceRoot":"","sources":["../../impl/ua_data_type_impl.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,QAAQ,EAAE,eAAe,EAAE,UAAU,EAAE,QAAQ,EAAc,M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AAiB,CAAC,aAAa,EAAE,MAAM,GAAG,cAAc,GAAG,IAAI,CAOrE;IACD;;;OAGG;IAEH,IAAW,cAAc,IAAI,QAAQ,GAAG,IAAI,CAE3C;IACD,IAAW,wBAAwB,IAAI,MAAM,GAAG,IAAI,CAEnD;IACD,IAAW,oBAAoB,IAAI,cAAc,GAAG,IAAI,CAEvD;IAED,IAAW,WAAW,IAAI,QAAQ,GAAG,IAAI,CAExC;IACD,IAAW,iBAAiB,IAAI,cAAc,GAAG,IAAI,CAEpD;IACD,IAAW,qBAAqB,IAAI,MAAM,GAAG,IAAI,CAEhD;IAED,IAAW,YAAY,IAAI,QAAQ,GAAG,IAAI,CAEzC;IAED,IAAW,kBAAkB,IAAI,cAAc,GAAG,IAAI,CAErD;IAMM,mBAAmB,IAAI,eAAe,CAiC5C;IAED,WAAW,IAAI,OAAO,CAGrB;IACD,sBAAsB,IAAI,mBAAmB,CAS5C;IAED,aAAa,IAAI,OAAO,CAGvB;IACD,iBAAiB,IAAI,cAAc,CAOlC;IAEM,cAAc,IAAI,kBAAkB,GAAG,IAAI,CA8EjD;IAEM,aAAa,IAAI,kBAAkB,CAQzC;IAEM,wBAAwB,IAAI,IAAI,CAEtC;IAEM,QAAQ,IAAI,MAAM,CAIxB;CACJ;AAcD,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,cAAc,EAAE,OAAO,EAAE,cAAc,GAAG,IAAI,CA+BrF"}
|
|
@@ -1,34 +1,27 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.UADataTypeImpl = void 0;
|
|
7
|
-
exports.DataType_toString = DataType_toString;
|
|
8
1
|
/**
|
|
9
2
|
* @module node-opcua-address-space
|
|
10
3
|
*/
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
const debugLog =
|
|
28
|
-
const doDebug =
|
|
29
|
-
class UADataTypeImpl extends
|
|
4
|
+
import chalk from "chalk";
|
|
5
|
+
import { assert } from "node-opcua-assert";
|
|
6
|
+
import { coerceInt64, coerceInt64toInt32 } from "node-opcua-basic-types";
|
|
7
|
+
import { DataTypeIds } from "node-opcua-constants";
|
|
8
|
+
import { AttributeIds, NodeClass } from "node-opcua-data-model";
|
|
9
|
+
import { DataValue } from "node-opcua-data-value";
|
|
10
|
+
import { checkDebugFlag, make_debugLog } from "node-opcua-debug";
|
|
11
|
+
import { ExpandedNodeId, NodeId, resolveNodeId, sameNodeId } from "node-opcua-nodeid";
|
|
12
|
+
import { NumericRange } from "node-opcua-numeric-range";
|
|
13
|
+
import { StatusCodes } from "node-opcua-status-code";
|
|
14
|
+
import { EnumDefinition, StructureDefinition, StructureType } from "node-opcua-types";
|
|
15
|
+
import { DataType } from "node-opcua-variant";
|
|
16
|
+
import { SessionContext } from "../api/session_context.js";
|
|
17
|
+
import { BaseNodeImpl } from "./base_node_impl.js";
|
|
18
|
+
import { BaseNode_getCache, BaseNode_References_toString, BaseNode_toString, ToStringBuilder } from "./base_node_private.js";
|
|
19
|
+
import { construct_isSubtypeOf, get_subtypeOf, get_subtypeOfObj } from "./tool_isSubtypeOf.js";
|
|
20
|
+
const debugLog = make_debugLog("DATA_TYPE");
|
|
21
|
+
const doDebug = checkDebugFlag("DATA_TYPE");
|
|
22
|
+
export class UADataTypeImpl extends BaseNodeImpl {
|
|
30
23
|
_extensionObjectConstructor;
|
|
31
|
-
nodeClass =
|
|
24
|
+
nodeClass = NodeClass.DataType;
|
|
32
25
|
definitionName = "";
|
|
33
26
|
symbolicName;
|
|
34
27
|
/**
|
|
@@ -43,14 +36,14 @@ class UADataTypeImpl extends base_node_impl_js_1.BaseNodeImpl {
|
|
|
43
36
|
*
|
|
44
37
|
*/
|
|
45
38
|
get subtypeOf() {
|
|
46
|
-
return
|
|
39
|
+
return get_subtypeOf.call(this);
|
|
47
40
|
}
|
|
48
41
|
get subtypeOfObj() {
|
|
49
|
-
return
|
|
42
|
+
return get_subtypeOfObj.call(this);
|
|
50
43
|
}
|
|
51
44
|
/** @deprecated */
|
|
52
|
-
isSupertypeOf =
|
|
53
|
-
isSubtypeOf =
|
|
45
|
+
isSupertypeOf = construct_isSubtypeOf(UADataTypeImpl);
|
|
46
|
+
isSubtypeOf = construct_isSubtypeOf(UADataTypeImpl);
|
|
54
47
|
isAbstract;
|
|
55
48
|
$partialDefinition;
|
|
56
49
|
$fullDefinition;
|
|
@@ -92,49 +85,49 @@ class UADataTypeImpl extends base_node_impl_js_1.BaseNodeImpl {
|
|
|
92
85
|
return this.addressSpace.findCorrespondingBasicDataType(this);
|
|
93
86
|
}
|
|
94
87
|
readAttribute(context, attributeId, indexRange, dataEncoding) {
|
|
95
|
-
|
|
88
|
+
assert(!context || context instanceof SessionContext);
|
|
96
89
|
const options = {};
|
|
97
90
|
switch (attributeId) {
|
|
98
|
-
case
|
|
99
|
-
options.statusCode =
|
|
100
|
-
options.value = { dataType:
|
|
91
|
+
case AttributeIds.IsAbstract:
|
|
92
|
+
options.statusCode = StatusCodes.Good;
|
|
93
|
+
options.value = { dataType: DataType.Boolean, value: !!this.isAbstract };
|
|
101
94
|
break;
|
|
102
|
-
case
|
|
95
|
+
case AttributeIds.DataTypeDefinition:
|
|
103
96
|
{
|
|
104
97
|
const _definition = this._getDefinition()?.clone();
|
|
105
98
|
if (_definition) {
|
|
106
|
-
options.value = { dataType:
|
|
99
|
+
options.value = { dataType: DataType.ExtensionObject, value: _definition };
|
|
107
100
|
}
|
|
108
101
|
else {
|
|
109
|
-
options.statusCode =
|
|
102
|
+
options.statusCode = StatusCodes.BadAttributeIdInvalid;
|
|
110
103
|
}
|
|
111
104
|
}
|
|
112
105
|
break;
|
|
113
106
|
default:
|
|
114
107
|
return super.readAttribute(context, attributeId, indexRange, dataEncoding);
|
|
115
108
|
}
|
|
116
|
-
return new
|
|
109
|
+
return new DataValue(options);
|
|
117
110
|
}
|
|
118
111
|
getEncodingDefinition(encoding_name) {
|
|
119
112
|
const encodingNode = this.getEncodingNode(encoding_name);
|
|
120
113
|
if (!encodingNode) {
|
|
121
114
|
throw new Error(`Cannot find Encoding for ${encoding_name}`);
|
|
122
115
|
}
|
|
123
|
-
const indexRange = new
|
|
116
|
+
const indexRange = new NumericRange();
|
|
124
117
|
const descriptionNodeRef = encodingNode.findReferences("HasDescription")[0];
|
|
125
118
|
const descriptionNode = this.addressSpace.findNode(descriptionNodeRef.nodeId);
|
|
126
119
|
if (!descriptionNode) {
|
|
127
120
|
return null;
|
|
128
121
|
}
|
|
129
|
-
const dataValue = descriptionNode.readValue(
|
|
122
|
+
const dataValue = descriptionNode.readValue(SessionContext.defaultContext, indexRange);
|
|
130
123
|
return dataValue.value.value.toString() || null;
|
|
131
124
|
}
|
|
132
125
|
getEncodingNode(encoding_name) {
|
|
133
|
-
const _cache =
|
|
126
|
+
const _cache = BaseNode_getCache(this);
|
|
134
127
|
_cache._encoding = _cache._encoding || new Map();
|
|
135
128
|
const key = `${encoding_name}Node`;
|
|
136
129
|
if (!_cache._encoding.has(key)) {
|
|
137
|
-
|
|
130
|
+
assert(encoding_name === "Default Binary" || encoding_name === "Default XML" || encoding_name === "Default JSON");
|
|
138
131
|
// could be binary or xml
|
|
139
132
|
const refs = this.findReferences("HasEncoding", true);
|
|
140
133
|
const addressSpace = this.addressSpace;
|
|
@@ -154,7 +147,7 @@ class UADataTypeImpl extends base_node_impl_js_1.BaseNodeImpl {
|
|
|
154
147
|
return null;
|
|
155
148
|
}
|
|
156
149
|
const namespaceUri = this.addressSpace.getNamespaceUri(encoding.nodeId.namespace);
|
|
157
|
-
return
|
|
150
|
+
return ExpandedNodeId.fromNodeId(encoding.nodeId, namespaceUri);
|
|
158
151
|
}
|
|
159
152
|
/**
|
|
160
153
|
* returns the encoding of this node's
|
|
@@ -191,7 +184,7 @@ class UADataTypeImpl extends base_node_impl_js_1.BaseNodeImpl {
|
|
|
191
184
|
let definition = [];
|
|
192
185
|
if (this.enumStrings) {
|
|
193
186
|
const enumStrings = this.enumStrings.readValue().value.value;
|
|
194
|
-
|
|
187
|
+
assert(Array.isArray(enumStrings));
|
|
195
188
|
definition = enumStrings.map((e, index) => {
|
|
196
189
|
return {
|
|
197
190
|
name: e.text,
|
|
@@ -200,13 +193,13 @@ class UADataTypeImpl extends base_node_impl_js_1.BaseNodeImpl {
|
|
|
200
193
|
});
|
|
201
194
|
}
|
|
202
195
|
else if (this.enumValues) {
|
|
203
|
-
|
|
196
|
+
assert(this.enumValues, "must have a enumValues property");
|
|
204
197
|
const enumValues = this.enumValues.readValue().value.value;
|
|
205
|
-
|
|
198
|
+
assert(Array.isArray(enumValues));
|
|
206
199
|
definition = enumValues.map((e) => {
|
|
207
200
|
return {
|
|
208
201
|
name: e.displayName.text,
|
|
209
|
-
value:
|
|
202
|
+
value: coerceInt64toInt32(e.value)
|
|
210
203
|
};
|
|
211
204
|
});
|
|
212
205
|
}
|
|
@@ -223,22 +216,22 @@ class UADataTypeImpl extends base_node_impl_js_1.BaseNodeImpl {
|
|
|
223
216
|
}
|
|
224
217
|
isStructure() {
|
|
225
218
|
const definition = this._getDefinition();
|
|
226
|
-
return !!definition && definition instanceof
|
|
219
|
+
return !!definition && definition instanceof StructureDefinition;
|
|
227
220
|
}
|
|
228
221
|
getStructureDefinition() {
|
|
229
222
|
const definition = this._getDefinition();
|
|
230
223
|
// named: a bare assert here threw an Error with an empty message, which told a caller
|
|
231
224
|
// nothing at all about which DataType had refused and what it had instead
|
|
232
|
-
|
|
225
|
+
assert(definition instanceof StructureDefinition, `${this.browseName.toString()} (${this.nodeId.toString()}) has no StructureDefinition: ${definition ? definition.constructor.name : "none"}`);
|
|
233
226
|
return definition;
|
|
234
227
|
}
|
|
235
228
|
isEnumeration() {
|
|
236
229
|
const definition = this._getDefinition();
|
|
237
|
-
return !!definition && definition instanceof
|
|
230
|
+
return !!definition && definition instanceof EnumDefinition;
|
|
238
231
|
}
|
|
239
232
|
getEnumDefinition() {
|
|
240
233
|
const definition = this._getDefinition();
|
|
241
|
-
|
|
234
|
+
assert(definition instanceof EnumDefinition, `${this.browseName.toString()} (${this.nodeId.toString()}) has no EnumDefinition: ${definition ? definition.constructor.name : "none"}`);
|
|
242
235
|
return definition;
|
|
243
236
|
}
|
|
244
237
|
_getDefinition() {
|
|
@@ -250,11 +243,35 @@ class UADataTypeImpl extends base_node_impl_js_1.BaseNodeImpl {
|
|
|
250
243
|
const structure = addressSpace.findDataType("Structure");
|
|
251
244
|
const union = addressSpace.findDataType("Union");
|
|
252
245
|
// we have a data type from a companion specification
|
|
253
|
-
// let's see if this data type need to be registered
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
246
|
+
// let's see if this data type need to be registered.
|
|
247
|
+
//
|
|
248
|
+
// One walk up the chain answers all three questions. `isSubtypeOf` would answer each of
|
|
249
|
+
// them, and memoizes — but its memo is keyed on a counter bumped every time a HasSubtype
|
|
250
|
+
// reference is added anywhere, so during a load, which adds thousands of them, the memo
|
|
251
|
+
// is thrown away before it is ever read and each call walks the chain from scratch. Three
|
|
252
|
+
// walks become one, and the one uses `subtypeOfObj`, which is cached per node, instead of
|
|
253
|
+
// filtering the node's whole reference list at every level.
|
|
254
|
+
let isEnumeration = false;
|
|
255
|
+
let isStructure = false;
|
|
256
|
+
let isUnion = false;
|
|
257
|
+
{
|
|
258
|
+
let ancestor = this;
|
|
259
|
+
// a chain longer than this is a cycle in a broken nodeset, not a model
|
|
260
|
+
let guard = 128;
|
|
261
|
+
while (ancestor && guard-- > 0) {
|
|
262
|
+
const nodeId = ancestor.nodeId;
|
|
263
|
+
if (enumeration && sameNodeId(nodeId, enumeration.nodeId))
|
|
264
|
+
isEnumeration = true;
|
|
265
|
+
if (structure && sameNodeId(nodeId, structure.nodeId))
|
|
266
|
+
isStructure = true;
|
|
267
|
+
if (union && sameNodeId(nodeId, union.nodeId))
|
|
268
|
+
isUnion = true;
|
|
269
|
+
ancestor = ancestor.subtypeOfObj;
|
|
270
|
+
}
|
|
271
|
+
// a Union is a Structure; the original asked for both and so does this
|
|
272
|
+
isUnion = isUnion && !!structure;
|
|
273
|
+
}
|
|
274
|
+
const isRootDataType = (n) => n.nodeId.namespace === 0 && n.nodeId.value === DataTypeIds.BaseDataType;
|
|
258
275
|
// https://reference.opcfoundation.org/v105/Core/docs/Part3/8.49/#Table34
|
|
259
276
|
if (isStructure) {
|
|
260
277
|
let dataTypeNode = this;
|
|
@@ -270,8 +287,8 @@ class UADataTypeImpl extends base_node_impl_js_1.BaseNodeImpl {
|
|
|
270
287
|
for (const dd of allPartialDefinitions.reverse()) {
|
|
271
288
|
definitionFields.push(...dd);
|
|
272
289
|
}
|
|
273
|
-
const basicDataType = this.subtypeOfObj?.nodeId || new
|
|
274
|
-
const defaultEncodingId = this.binaryEncodingNodeId || this.xmlEncodingNodeId || new
|
|
290
|
+
const basicDataType = this.subtypeOfObj?.nodeId || new NodeId();
|
|
291
|
+
const defaultEncodingId = this.binaryEncodingNodeId || this.xmlEncodingNodeId || new NodeId();
|
|
275
292
|
this.$fullDefinition = makeStructureDefinition(basicDataType, defaultEncodingId, definitionFields, isUnion);
|
|
276
293
|
}
|
|
277
294
|
else if (isEnumeration) {
|
|
@@ -305,52 +322,51 @@ class UADataTypeImpl extends base_node_impl_js_1.BaseNodeImpl {
|
|
|
305
322
|
//
|
|
306
323
|
}
|
|
307
324
|
toString() {
|
|
308
|
-
const options = new
|
|
325
|
+
const options = new ToStringBuilder();
|
|
309
326
|
DataType_toString.call(this, options);
|
|
310
327
|
return options.toString();
|
|
311
328
|
}
|
|
312
329
|
}
|
|
313
|
-
exports.UADataTypeImpl = UADataTypeImpl;
|
|
314
330
|
function dataTypeDefinition_toString(options) {
|
|
315
331
|
const definition = this._getDefinition();
|
|
316
332
|
if (!definition) {
|
|
317
333
|
return;
|
|
318
334
|
}
|
|
319
335
|
const output = definition.toString();
|
|
320
|
-
options.add(options.padding +
|
|
336
|
+
options.add(options.padding + chalk.yellow(" Definition : "));
|
|
321
337
|
for (const str of output.split("\n")) {
|
|
322
|
-
options.add(options.padding +
|
|
338
|
+
options.add(options.padding + chalk.yellow(` : ${str}`));
|
|
323
339
|
}
|
|
324
340
|
}
|
|
325
|
-
function DataType_toString(options) {
|
|
326
|
-
|
|
327
|
-
options.add(options.padding +
|
|
328
|
-
options.add(options.padding +
|
|
341
|
+
export function DataType_toString(options) {
|
|
342
|
+
BaseNode_toString.call(this, options);
|
|
343
|
+
options.add(options.padding + chalk.yellow(` isAbstract : ${this.isAbstract}`));
|
|
344
|
+
options.add(options.padding + chalk.yellow(` definitionName : ${this.definitionName}`));
|
|
329
345
|
options.add(options.padding +
|
|
330
|
-
|
|
346
|
+
chalk.yellow(" binaryEncodingNodeId: ") +
|
|
331
347
|
(this.binaryEncodingNodeId ? this.binaryEncodingNodeId.toString() : "<none>"));
|
|
332
348
|
options.add(options.padding +
|
|
333
|
-
|
|
349
|
+
chalk.yellow(" xmlEncodingNodeId : ") +
|
|
334
350
|
(this.xmlEncodingNodeId ? this.xmlEncodingNodeId.toString() : "<none>"));
|
|
335
351
|
options.add(options.padding +
|
|
336
|
-
|
|
352
|
+
chalk.yellow(" jsonEncodingNodeId : ") +
|
|
337
353
|
(this.jsonEncodingNodeId ? this.jsonEncodingNodeId.toString() : "<none>"));
|
|
338
354
|
if (this.subtypeOfObj) {
|
|
339
355
|
options.add(options.padding +
|
|
340
|
-
|
|
356
|
+
chalk.yellow(" subtypeOfObj : ") +
|
|
341
357
|
(this.subtypeOfObj ? this.subtypeOfObj.browseName.toString() : ""));
|
|
342
358
|
}
|
|
343
359
|
// references
|
|
344
|
-
|
|
360
|
+
BaseNode_References_toString.call(this, options);
|
|
345
361
|
dataTypeDefinition_toString.call(this, options);
|
|
346
362
|
}
|
|
347
|
-
const defaultEnumValue =
|
|
363
|
+
const defaultEnumValue = coerceInt64(-1);
|
|
348
364
|
function makeEnumDefinition(definitionFields) {
|
|
349
|
-
return new
|
|
365
|
+
return new EnumDefinition({
|
|
350
366
|
fields: definitionFields.map((x) => ({
|
|
351
367
|
description: x.description,
|
|
352
368
|
name: x.name,
|
|
353
|
-
value: x.value === undefined ? defaultEnumValue :
|
|
369
|
+
value: x.value === undefined ? defaultEnumValue : coerceInt64(x.value)
|
|
354
370
|
}))
|
|
355
371
|
});
|
|
356
372
|
}
|
|
@@ -369,13 +385,13 @@ function makeStructureDefinition(baseDataType, defaultEncodingId, fields, isUnio
|
|
|
369
385
|
const hasOptionalFields = fields.filter((field) => field.isOptional).length > 0;
|
|
370
386
|
const structureType = isUnion
|
|
371
387
|
? hasSubtypedFields
|
|
372
|
-
?
|
|
373
|
-
:
|
|
388
|
+
? StructureType.UnionWithSubtypedValues
|
|
389
|
+
: StructureType.Union
|
|
374
390
|
: hasOptionalFields
|
|
375
|
-
?
|
|
391
|
+
? StructureType.StructureWithOptionalFields
|
|
376
392
|
: hasSubtypedFields
|
|
377
|
-
?
|
|
378
|
-
:
|
|
393
|
+
? StructureType.StructureWithSubtypedValues
|
|
394
|
+
: StructureType.Structure;
|
|
379
395
|
// note: https://reference.opcfoundation.org/Core/Part3/v105/docs/8.51
|
|
380
396
|
// field.isOptional has a special behavior depending on the structure type
|
|
381
397
|
//
|
|
@@ -388,7 +404,7 @@ function makeStructureDefinition(baseDataType, defaultEncodingId, fields, isUnio
|
|
|
388
404
|
//
|
|
389
405
|
// If the structureType is StructureWithSubtypedValues, or UnionWithSubtypedValues this field is used to
|
|
390
406
|
// indicate if the data type field allows subtyping.Subtyping is allowed when set to TRUE.
|
|
391
|
-
const isUnionOrStructureWithSubtypedValues = structureType ===
|
|
407
|
+
const isUnionOrStructureWithSubtypedValues = structureType === StructureType.UnionWithSubtypedValues || structureType === StructureType.StructureWithSubtypedValues;
|
|
392
408
|
if (isUnionOrStructureWithSubtypedValues) {
|
|
393
409
|
for (const field of fields) {
|
|
394
410
|
if (field.allowSubTypes) {
|
|
@@ -401,8 +417,8 @@ function makeStructureDefinition(baseDataType, defaultEncodingId, fields, isUnio
|
|
|
401
417
|
// Normalize: default missing field dataType to BaseDataType (i=24)
|
|
402
418
|
// per OPC UA spec, a missing DataType should reference BaseDataType,
|
|
403
419
|
// not Null NodeId (i=0)
|
|
404
|
-
const baseDataTypeNodeId =
|
|
405
|
-
const sd = new
|
|
420
|
+
const baseDataTypeNodeId = resolveNodeId(DataTypeIds.BaseDataType);
|
|
421
|
+
const sd = new StructureDefinition({
|
|
406
422
|
baseDataType,
|
|
407
423
|
defaultEncodingId,
|
|
408
424
|
fields: fields.map((f) => ({
|