node-opcua-address-space 2.183.1 → 2.184.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/helpers/adjust_browse_direction.ts +1 -1
- package/api/helpers/argument_list.ts +9 -9
- package/api/helpers/coerce_enum_value.ts +1 -0
- package/api/helpers/dump_tools.ts +1 -1
- package/api/index.ts +2 -1
- package/api/interfaces/data_access/ua_multistate_discrete_ex.ts +1 -1
- package/api/interfaces/nodeset_loader_options.ts +17 -0
- package/api/loader/decode_xml_extension_object.ts +1 -1
- package/api/loader/ensure_datatype_extracted.ts +73 -37
- package/api/loader/generateAddressSpaceRaw.ts +32 -22
- package/api/loader/load_nodeset2.ts +2 -2
- package/api/loader/namespace_post_step.ts +1 -1
- package/api/loader/narrow_instance_datatypes.ts +22 -9
- package/api/loader/nodeset_image_codec.ts +26 -12
- package/api/loader/nodeset_record_applier.ts +1 -1
- package/api/loader/nodeset_xml_producer.ts +8 -6
- package/api/loader/parsers/extension_object_parser.ts +3 -3
- package/api/pseudo_session.ts +1 -1
- package/bin/{nodeset_equivalence.js → nodeset_equivalence.cjs} +1 -1
- package/bin/{opcua-nodeset-image.js → opcua-nodeset-image.cjs} +1 -1
- package/bin/{opcua-nodeset-live.js → opcua-nodeset-live.cjs} +2 -2
- package/dist/api/address_space_public.d.ts +1 -0
- package/dist/api/address_space_public.d.ts.map +1 -0
- package/dist/api/address_space_public.js +2 -5
- package/dist/api/address_space_public.js.map +1 -1
- package/dist/api/address_space_ts.d.ts +1 -0
- package/dist/api/address_space_ts.d.ts.map +1 -0
- package/dist/api/address_space_ts.js +2 -5
- package/dist/api/address_space_ts.js.map +1 -1
- package/dist/api/continuation_points/continuation_point_manager.d.ts +1 -0
- package/dist/api/continuation_points/continuation_point_manager.d.ts.map +1 -0
- package/dist/api/continuation_points/continuation_point_manager.js +13 -17
- package/dist/api/continuation_points/continuation_point_manager.js.map +1 -1
- package/dist/api/helpers/adjust_browse_direction.d.ts +1 -0
- package/dist/api/helpers/adjust_browse_direction.d.ts.map +1 -0
- package/dist/api/helpers/adjust_browse_direction.js +2 -5
- package/dist/api/helpers/adjust_browse_direction.js.map +1 -1
- package/dist/api/helpers/argument_list.d.ts +1 -0
- package/dist/api/helpers/argument_list.d.ts.map +1 -0
- package/dist/api/helpers/argument_list.js +61 -69
- package/dist/api/helpers/argument_list.js.map +1 -1
- package/dist/api/helpers/call_helpers.d.ts +1 -0
- package/dist/api/helpers/call_helpers.d.ts.map +1 -0
- package/dist/api/helpers/call_helpers.js +25 -28
- package/dist/api/helpers/call_helpers.js.map +1 -1
- package/dist/api/helpers/coerce_enum_value.d.ts +1 -0
- package/dist/api/helpers/coerce_enum_value.d.ts.map +1 -0
- package/dist/api/helpers/coerce_enum_value.js +15 -17
- package/dist/api/helpers/coerce_enum_value.js.map +1 -1
- package/dist/api/helpers/dump_tools.d.ts +1 -0
- package/dist/api/helpers/dump_tools.d.ts.map +1 -0
- package/dist/api/helpers/dump_tools.js +19 -29
- package/dist/api/helpers/dump_tools.js.map +1 -1
- package/dist/api/helpers/ensure_secure_access.d.ts +1 -0
- package/dist/api/helpers/ensure_secure_access.d.ts.map +1 -0
- package/dist/api/helpers/ensure_secure_access.js +24 -28
- package/dist/api/helpers/ensure_secure_access.js.map +1 -1
- package/dist/api/helpers/make_optionals_map.d.ts +1 -0
- package/dist/api/helpers/make_optionals_map.d.ts.map +1 -0
- package/dist/api/helpers/make_optionals_map.js +1 -4
- package/dist/api/helpers/make_optionals_map.js.map +1 -1
- package/dist/api/helpers/multiform_func.d.ts +1 -0
- package/dist/api/helpers/multiform_func.d.ts.map +1 -0
- package/dist/api/helpers/multiform_func.js +4 -8
- package/dist/api/helpers/multiform_func.js.map +1 -1
- package/dist/api/helpers/resolve_opaque_on_address_space.d.ts +1 -0
- package/dist/api/helpers/resolve_opaque_on_address_space.d.ts.map +1 -0
- package/dist/api/helpers/resolve_opaque_on_address_space.js +10 -13
- package/dist/api/helpers/resolve_opaque_on_address_space.js.map +1 -1
- package/dist/api/index.d.ts +3 -1
- package/dist/api/index.d.ts.map +1 -0
- package/dist/api/index.js +93 -218
- package/dist/api/index.js.map +1 -1
- package/dist/api/interfaces/alarms_and_conditions/condition_info_i.d.ts +1 -0
- package/dist/api/interfaces/alarms_and_conditions/condition_info_i.d.ts.map +1 -0
- package/dist/api/interfaces/alarms_and_conditions/condition_info_i.js +2 -5
- package/dist/api/interfaces/alarms_and_conditions/condition_info_i.js.map +1 -1
- package/dist/api/interfaces/alarms_and_conditions/condition_snapshot.d.ts +1 -0
- package/dist/api/interfaces/alarms_and_conditions/condition_snapshot.d.ts.map +1 -0
- package/dist/api/interfaces/alarms_and_conditions/condition_snapshot.js +1 -2
- package/dist/api/interfaces/alarms_and_conditions/deviation_stuff.d.ts +1 -0
- package/dist/api/interfaces/alarms_and_conditions/deviation_stuff.d.ts.map +1 -0
- package/dist/api/interfaces/alarms_and_conditions/deviation_stuff.js +1 -2
- package/dist/api/interfaces/alarms_and_conditions/install_setpoint_options.d.ts +1 -0
- package/dist/api/interfaces/alarms_and_conditions/install_setpoint_options.d.ts.map +1 -0
- package/dist/api/interfaces/alarms_and_conditions/install_setpoint_options.js +1 -2
- package/dist/api/interfaces/alarms_and_conditions/instantiate_alarm_condition_options.d.ts +1 -0
- package/dist/api/interfaces/alarms_and_conditions/instantiate_alarm_condition_options.d.ts.map +1 -0
- package/dist/api/interfaces/alarms_and_conditions/instantiate_alarm_condition_options.js +1 -2
- package/dist/api/interfaces/alarms_and_conditions/instantiate_condition_options.d.ts +1 -0
- package/dist/api/interfaces/alarms_and_conditions/instantiate_condition_options.d.ts.map +1 -0
- package/dist/api/interfaces/alarms_and_conditions/instantiate_condition_options.js +1 -2
- package/dist/api/interfaces/alarms_and_conditions/instantiate_exclusive_deviation_alarm_options.d.ts +1 -0
- package/dist/api/interfaces/alarms_and_conditions/instantiate_exclusive_deviation_alarm_options.d.ts.map +1 -0
- package/dist/api/interfaces/alarms_and_conditions/instantiate_exclusive_deviation_alarm_options.js +1 -2
- package/dist/api/interfaces/alarms_and_conditions/instantiate_exclusive_limit_alarm_options.d.ts +1 -0
- package/dist/api/interfaces/alarms_and_conditions/instantiate_exclusive_limit_alarm_options.d.ts.map +1 -0
- package/dist/api/interfaces/alarms_and_conditions/instantiate_exclusive_limit_alarm_options.js +1 -2
- package/dist/api/interfaces/alarms_and_conditions/instantiate_limit_alarm_options.d.ts +1 -0
- package/dist/api/interfaces/alarms_and_conditions/instantiate_limit_alarm_options.d.ts.map +1 -0
- package/dist/api/interfaces/alarms_and_conditions/instantiate_limit_alarm_options.js +1 -2
- package/dist/api/interfaces/alarms_and_conditions/instantiate_non_exclusive_deviation_alarm_options.d.ts +1 -0
- package/dist/api/interfaces/alarms_and_conditions/instantiate_non_exclusive_deviation_alarm_options.d.ts.map +1 -0
- package/dist/api/interfaces/alarms_and_conditions/instantiate_non_exclusive_deviation_alarm_options.js +1 -2
- package/dist/api/interfaces/alarms_and_conditions/instantiate_non_exclusive_limit_alarm_options.d.ts +1 -0
- package/dist/api/interfaces/alarms_and_conditions/instantiate_non_exclusive_limit_alarm_options.d.ts.map +1 -0
- package/dist/api/interfaces/alarms_and_conditions/instantiate_non_exclusive_limit_alarm_options.js +1 -2
- package/dist/api/interfaces/alarms_and_conditions/instantiate_off_normal_alarm_options.d.ts +1 -0
- package/dist/api/interfaces/alarms_and_conditions/instantiate_off_normal_alarm_options.d.ts.map +1 -0
- package/dist/api/interfaces/alarms_and_conditions/instantiate_off_normal_alarm_options.js +1 -2
- package/dist/api/interfaces/alarms_and_conditions/promote_to_alarm_options.d.ts +1 -0
- package/dist/api/interfaces/alarms_and_conditions/promote_to_alarm_options.d.ts.map +1 -0
- package/dist/api/interfaces/alarms_and_conditions/promote_to_alarm_options.js +1 -2
- package/dist/api/interfaces/alarms_and_conditions/ua_acknowledgeable_condition_ex.d.ts +1 -0
- package/dist/api/interfaces/alarms_and_conditions/ua_acknowledgeable_condition_ex.d.ts.map +1 -0
- package/dist/api/interfaces/alarms_and_conditions/ua_acknowledgeable_condition_ex.js +1 -2
- package/dist/api/interfaces/alarms_and_conditions/ua_alarm_condition_ex.d.ts +1 -0
- package/dist/api/interfaces/alarms_and_conditions/ua_alarm_condition_ex.d.ts.map +1 -0
- package/dist/api/interfaces/alarms_and_conditions/ua_alarm_condition_ex.js +1 -2
- package/dist/api/interfaces/alarms_and_conditions/ua_base_event_ex.d.ts +1 -0
- package/dist/api/interfaces/alarms_and_conditions/ua_base_event_ex.d.ts.map +1 -0
- package/dist/api/interfaces/alarms_and_conditions/ua_base_event_ex.js +1 -2
- package/dist/api/interfaces/alarms_and_conditions/ua_certificate_expiration_alarm_ex.d.ts +1 -0
- package/dist/api/interfaces/alarms_and_conditions/ua_certificate_expiration_alarm_ex.d.ts.map +1 -0
- package/dist/api/interfaces/alarms_and_conditions/ua_certificate_expiration_alarm_ex.js +1 -2
- package/dist/api/interfaces/alarms_and_conditions/ua_condition_ex.d.ts +1 -0
- package/dist/api/interfaces/alarms_and_conditions/ua_condition_ex.d.ts.map +1 -0
- package/dist/api/interfaces/alarms_and_conditions/ua_condition_ex.js +1 -2
- package/dist/api/interfaces/alarms_and_conditions/ua_discrete_alarm_ex.d.ts +1 -0
- package/dist/api/interfaces/alarms_and_conditions/ua_discrete_alarm_ex.d.ts.map +1 -0
- package/dist/api/interfaces/alarms_and_conditions/ua_discrete_alarm_ex.js +1 -2
- package/dist/api/interfaces/alarms_and_conditions/ua_exclusive_deviation_alarm_ex.d.ts +1 -0
- package/dist/api/interfaces/alarms_and_conditions/ua_exclusive_deviation_alarm_ex.d.ts.map +1 -0
- package/dist/api/interfaces/alarms_and_conditions/ua_exclusive_deviation_alarm_ex.js +1 -2
- package/dist/api/interfaces/alarms_and_conditions/ua_exclusive_limit_alarm_ex.d.ts +1 -0
- package/dist/api/interfaces/alarms_and_conditions/ua_exclusive_limit_alarm_ex.d.ts.map +1 -0
- package/dist/api/interfaces/alarms_and_conditions/ua_exclusive_limit_alarm_ex.js +1 -2
- package/dist/api/interfaces/alarms_and_conditions/ua_limit_alarm_ex.d.ts +1 -0
- package/dist/api/interfaces/alarms_and_conditions/ua_limit_alarm_ex.d.ts.map +1 -0
- package/dist/api/interfaces/alarms_and_conditions/ua_limit_alarm_ex.js +1 -2
- package/dist/api/interfaces/alarms_and_conditions/ua_non_exclusive_deviation_alarm_ex.d.ts +1 -0
- package/dist/api/interfaces/alarms_and_conditions/ua_non_exclusive_deviation_alarm_ex.d.ts.map +1 -0
- package/dist/api/interfaces/alarms_and_conditions/ua_non_exclusive_deviation_alarm_ex.js +1 -2
- package/dist/api/interfaces/alarms_and_conditions/ua_non_exclusive_limit_alarm_ex.d.ts +1 -0
- package/dist/api/interfaces/alarms_and_conditions/ua_non_exclusive_limit_alarm_ex.d.ts.map +1 -0
- package/dist/api/interfaces/alarms_and_conditions/ua_non_exclusive_limit_alarm_ex.js +1 -2
- package/dist/api/interfaces/data_access/ua_multistate_discrete_ex.d.ts +2 -1
- package/dist/api/interfaces/data_access/ua_multistate_discrete_ex.d.ts.map +1 -0
- package/dist/api/interfaces/data_access/ua_multistate_discrete_ex.js +1 -2
- package/dist/api/interfaces/data_access/ua_multistate_value_discrete_ex.d.ts +1 -0
- package/dist/api/interfaces/data_access/ua_multistate_value_discrete_ex.d.ts.map +1 -0
- package/dist/api/interfaces/data_access/ua_multistate_value_discrete_ex.js +1 -2
- package/dist/api/interfaces/data_access/ua_two_state_discrete_ex.d.ts +1 -0
- package/dist/api/interfaces/data_access/ua_two_state_discrete_ex.d.ts.map +1 -0
- package/dist/api/interfaces/data_access/ua_two_state_discrete_ex.js +1 -2
- package/dist/api/interfaces/data_access/ua_y_array_item_ex.d.ts +1 -0
- package/dist/api/interfaces/data_access/ua_y_array_item_ex.d.ts.map +1 -0
- package/dist/api/interfaces/data_access/ua_y_array_item_ex.js +1 -2
- package/dist/api/interfaces/extension_object_constructor.d.ts +1 -0
- package/dist/api/interfaces/extension_object_constructor.d.ts.map +1 -0
- package/dist/api/interfaces/extension_object_constructor.js +1 -2
- package/dist/api/interfaces/i_condition_variable_type_setter_options.d.ts +1 -0
- package/dist/api/interfaces/i_condition_variable_type_setter_options.d.ts.map +1 -0
- package/dist/api/interfaces/i_condition_variable_type_setter_options.js +1 -2
- package/dist/api/interfaces/i_set_state_options.d.ts +1 -0
- package/dist/api/interfaces/i_set_state_options.d.ts.map +1 -0
- package/dist/api/interfaces/i_set_state_options.js +1 -2
- package/dist/api/interfaces/nodeset_loader_options.d.ts +18 -0
- package/dist/api/interfaces/nodeset_loader_options.d.ts.map +1 -0
- package/dist/api/interfaces/nodeset_loader_options.js +1 -2
- package/dist/api/interfaces/state_machine/ua_exclusive_limit_state_machine_type_ex.d.ts +1 -0
- package/dist/api/interfaces/state_machine/ua_exclusive_limit_state_machine_type_ex.d.ts.map +1 -0
- package/dist/api/interfaces/state_machine/ua_exclusive_limit_state_machine_type_ex.js +1 -2
- package/dist/api/interfaces/state_machine/ua_finite_state_machine_type.d.ts +1 -0
- package/dist/api/interfaces/state_machine/ua_finite_state_machine_type.d.ts.map +1 -0
- package/dist/api/interfaces/state_machine/ua_finite_state_machine_type.js +1 -2
- package/dist/api/interfaces/state_machine/ua_program_state_machine_type.d.ts +1 -0
- package/dist/api/interfaces/state_machine/ua_program_state_machine_type.d.ts.map +1 -0
- package/dist/api/interfaces/state_machine/ua_program_state_machine_type.js +1 -2
- package/dist/api/interfaces/state_machine/ua_shelved_state_machine_ex.d.ts +1 -0
- package/dist/api/interfaces/state_machine/ua_shelved_state_machine_ex.d.ts.map +1 -0
- package/dist/api/interfaces/state_machine/ua_shelved_state_machine_ex.js +1 -2
- package/dist/api/interfaces/state_machine/ua_state_machine_type.d.ts +1 -0
- package/dist/api/interfaces/state_machine/ua_state_machine_type.d.ts.map +1 -0
- package/dist/api/interfaces/state_machine/ua_state_machine_type.js +1 -2
- package/dist/api/interfaces/state_machine/ua_state_machine_type.js.map +1 -1
- package/dist/api/interfaces/state_machine/ua_transition_ex.d.ts +1 -0
- package/dist/api/interfaces/state_machine/ua_transition_ex.d.ts.map +1 -0
- package/dist/api/interfaces/state_machine/ua_transition_ex.js +1 -2
- package/dist/api/interfaces/ua_subscription_diagnostics_variable_ex.d.ts +1 -0
- package/dist/api/interfaces/ua_subscription_diagnostics_variable_ex.d.ts.map +1 -0
- package/dist/api/interfaces/ua_subscription_diagnostics_variable_ex.js +1 -2
- package/dist/api/interfaces/ua_subscription_diagnostics_variable_ex.js.map +1 -1
- package/dist/api/loader/decode_xml_extension_object.d.ts +1 -0
- package/dist/api/loader/decode_xml_extension_object.d.ts.map +1 -0
- package/dist/api/loader/decode_xml_extension_object.js +13 -17
- package/dist/api/loader/decode_xml_extension_object.js.map +1 -1
- package/dist/api/loader/ensure_datatype_extracted.d.ts +1 -0
- package/dist/api/loader/ensure_datatype_extracted.d.ts.map +1 -0
- package/dist/api/loader/ensure_datatype_extracted.js +83 -52
- package/dist/api/loader/ensure_datatype_extracted.js.map +1 -1
- package/dist/api/loader/generateAddressSpaceRaw.d.ts +1 -0
- package/dist/api/loader/generateAddressSpaceRaw.d.ts.map +1 -0
- package/dist/api/loader/generateAddressSpaceRaw.js +76 -74
- package/dist/api/loader/generateAddressSpaceRaw.js.map +1 -1
- package/dist/api/loader/load_nodeset2.d.ts +1 -0
- package/dist/api/loader/load_nodeset2.d.ts.map +1 -0
- package/dist/api/loader/load_nodeset2.js +44 -51
- package/dist/api/loader/load_nodeset2.js.map +1 -1
- package/dist/api/loader/make_semver_compatible.d.ts +1 -0
- package/dist/api/loader/make_semver_compatible.d.ts.map +1 -0
- package/dist/api/loader/make_semver_compatible.js +1 -4
- package/dist/api/loader/make_semver_compatible.js.map +1 -1
- package/dist/api/loader/make_xml_extension_object_parser.d.ts +1 -0
- package/dist/api/loader/make_xml_extension_object_parser.d.ts.map +1 -0
- package/dist/api/loader/make_xml_extension_object_parser.js +37 -40
- package/dist/api/loader/make_xml_extension_object_parser.js.map +1 -1
- package/dist/api/loader/namespace_post_step.d.ts +1 -0
- package/dist/api/loader/namespace_post_step.d.ts.map +1 -0
- package/dist/api/loader/namespace_post_step.js +12 -17
- package/dist/api/loader/namespace_post_step.js.map +1 -1
- package/dist/api/loader/narrow_instance_datatypes.d.ts +1 -0
- package/dist/api/loader/narrow_instance_datatypes.d.ts.map +1 -0
- package/dist/api/loader/narrow_instance_datatypes.js +38 -28
- package/dist/api/loader/narrow_instance_datatypes.js.map +1 -1
- package/dist/api/loader/nodeset_builtin_formats.d.ts +1 -0
- package/dist/api/loader/nodeset_builtin_formats.d.ts.map +1 -0
- package/dist/api/loader/nodeset_builtin_formats.js +20 -25
- package/dist/api/loader/nodeset_builtin_formats.js.map +1 -1
- package/dist/api/loader/nodeset_format.d.ts +1 -0
- package/dist/api/loader/nodeset_format.d.ts.map +1 -0
- package/dist/api/loader/nodeset_format.js +4 -10
- package/dist/api/loader/nodeset_format.js.map +1 -1
- package/dist/api/loader/nodeset_image.d.ts +1 -0
- package/dist/api/loader/nodeset_image.d.ts.map +1 -0
- package/dist/api/loader/nodeset_image.js +38 -54
- package/dist/api/loader/nodeset_image.js.map +1 -1
- package/dist/api/loader/nodeset_image_codec.d.ts +1 -0
- package/dist/api/loader/nodeset_image_codec.d.ts.map +1 -0
- package/dist/api/loader/nodeset_image_codec.js +118 -116
- package/dist/api/loader/nodeset_image_codec.js.map +1 -1
- package/dist/api/loader/nodeset_image_store.d.ts +1 -0
- package/dist/api/loader/nodeset_image_store.d.ts.map +1 -0
- package/dist/api/loader/nodeset_image_store.js +5 -11
- package/dist/api/loader/nodeset_image_store.js.map +1 -1
- package/dist/api/loader/nodeset_record.d.ts +1 -0
- package/dist/api/loader/nodeset_record.d.ts.map +1 -0
- package/dist/api/loader/nodeset_record.js +3 -7
- package/dist/api/loader/nodeset_record.js.map +1 -1
- package/dist/api/loader/nodeset_record_applier.d.ts +1 -0
- package/dist/api/loader/nodeset_record_applier.d.ts.map +1 -0
- package/dist/api/loader/nodeset_record_applier.js +89 -97
- package/dist/api/loader/nodeset_record_applier.js.map +1 -1
- package/dist/api/loader/nodeset_records_to_xml.d.ts +1 -0
- package/dist/api/loader/nodeset_records_to_xml.d.ts.map +1 -0
- package/dist/api/loader/nodeset_records_to_xml.js +82 -88
- package/dist/api/loader/nodeset_records_to_xml.js.map +1 -1
- package/dist/api/loader/nodeset_source.d.ts +1 -0
- package/dist/api/loader/nodeset_source.d.ts.map +1 -0
- package/dist/api/loader/nodeset_source.js +14 -21
- package/dist/api/loader/nodeset_source.js.map +1 -1
- package/dist/api/loader/nodeset_source_helpers.d.ts +1 -0
- package/dist/api/loader/nodeset_source_helpers.d.ts.map +1 -0
- package/dist/api/loader/nodeset_source_helpers.js +2 -6
- package/dist/api/loader/nodeset_source_helpers.js.map +1 -1
- package/dist/api/loader/nodeset_to_image.d.ts +1 -0
- package/dist/api/loader/nodeset_to_image.d.ts.map +1 -0
- package/dist/api/loader/nodeset_to_image.js +12 -15
- package/dist/api/loader/nodeset_to_image.js.map +1 -1
- package/dist/api/loader/nodeset_xml_header.d.ts +1 -0
- package/dist/api/loader/nodeset_xml_header.d.ts.map +1 -0
- package/dist/api/loader/nodeset_xml_header.js +9 -14
- package/dist/api/loader/nodeset_xml_header.js.map +1 -1
- package/dist/api/loader/nodeset_xml_primitives.d.ts +1 -0
- package/dist/api/loader/nodeset_xml_primitives.d.ts.map +1 -0
- package/dist/api/loader/nodeset_xml_primitives.js +32 -53
- package/dist/api/loader/nodeset_xml_primitives.js.map +1 -1
- package/dist/api/loader/nodeset_xml_producer.d.ts +1 -0
- package/dist/api/loader/nodeset_xml_producer.d.ts.map +1 -0
- package/dist/api/loader/nodeset_xml_producer.js +49 -51
- package/dist/api/loader/nodeset_xml_producer.js.map +1 -1
- package/dist/api/loader/parsers/extension_object_parser.d.ts +1 -0
- package/dist/api/loader/parsers/extension_object_parser.d.ts.map +1 -0
- package/dist/api/loader/parsers/extension_object_parser.js +49 -57
- package/dist/api/loader/parsers/extension_object_parser.js.map +1 -1
- package/dist/api/loader/parsers/localized_text_parser.d.ts +1 -0
- package/dist/api/loader/parsers/localized_text_parser.d.ts.map +1 -0
- package/dist/api/loader/parsers/localized_text_parser.js +3 -6
- package/dist/api/loader/parsers/localized_text_parser.js.map +1 -1
- package/dist/api/loader/parsers/nodeid_parser.d.ts +1 -0
- package/dist/api/loader/parsers/nodeid_parser.d.ts.map +1 -0
- package/dist/api/loader/parsers/nodeid_parser.js +3 -7
- package/dist/api/loader/parsers/nodeid_parser.js.map +1 -1
- package/dist/api/loader/parsers/qualified_name_parser.d.ts +1 -0
- package/dist/api/loader/parsers/qualified_name_parser.d.ts.map +1 -0
- package/dist/api/loader/parsers/qualified_name_parser.js +5 -9
- package/dist/api/loader/parsers/qualified_name_parser.js.map +1 -1
- package/dist/api/loader/parsers/variant_parser.d.ts +1 -0
- package/dist/api/loader/parsers/variant_parser.d.ts.map +1 -0
- package/dist/api/loader/parsers/variant_parser.js +59 -63
- package/dist/api/loader/parsers/variant_parser.js.map +1 -1
- package/dist/api/loader/register_node_promoter.d.ts +1 -0
- package/dist/api/loader/register_node_promoter.d.ts.map +1 -0
- package/dist/api/loader/register_node_promoter.js +4 -7
- package/dist/api/loader/register_node_promoter.js.map +1 -1
- package/dist/api/namespace.d.ts +1 -0
- package/dist/api/namespace.d.ts.map +1 -0
- package/dist/api/namespace.js +1 -2
- package/dist/api/namespace_alarm_and_condition.d.ts +1 -0
- package/dist/api/namespace_alarm_and_condition.d.ts.map +1 -0
- package/dist/api/namespace_alarm_and_condition.js +1 -2
- package/dist/api/namespace_data_access.d.ts +1 -0
- package/dist/api/namespace_data_access.d.ts.map +1 -0
- package/dist/api/namespace_data_access.js +1 -2
- package/dist/api/namespace_machine_state.d.ts +1 -0
- package/dist/api/namespace_machine_state.d.ts.map +1 -0
- package/dist/api/namespace_machine_state.js +1 -2
- package/dist/api/namespace_of.d.ts +1 -0
- package/dist/api/namespace_of.d.ts.map +1 -0
- package/dist/api/namespace_of.js +1 -4
- package/dist/api/namespace_of.js.map +1 -1
- package/dist/api/pseudo_session.d.ts +1 -0
- package/dist/api/pseudo_session.d.ts.map +1 -0
- package/dist/api/pseudo_session.js +56 -62
- package/dist/api/pseudo_session.js.map +1 -1
- package/dist/api/session_context.d.ts +1 -0
- package/dist/api/session_context.d.ts.map +1 -0
- package/dist/api/session_context.js +60 -68
- package/dist/api/session_context.js.map +1 -1
- package/dist/api/set_namespace_meta_data.d.ts +1 -0
- package/dist/api/set_namespace_meta_data.d.ts.map +1 -0
- package/dist/api/set_namespace_meta_data.js +10 -13
- package/dist/api/set_namespace_meta_data.js.map +1 -1
- package/dist/api/ua_addin.d.ts +1 -0
- package/dist/api/ua_addin.d.ts.map +1 -0
- package/dist/api/ua_addin.js +9 -13
- package/dist/api/ua_addin.js.map +1 -1
- package/dist/api/ua_interface.d.ts +1 -0
- package/dist/api/ua_interface.d.ts.map +1 -0
- package/dist/api/ua_interface.js +5 -8
- package/dist/api/ua_interface.js.map +1 -1
- package/dist/api/ua_root_folder.d.ts +1 -0
- package/dist/api/ua_root_folder.d.ts.map +1 -0
- package/dist/api/ua_root_folder.js +1 -2
- package/dist/api/ua_two_state_variable_ex.d.ts +1 -0
- package/dist/api/ua_two_state_variable_ex.d.ts.map +1 -0
- package/dist/api/ua_two_state_variable_ex.js +1 -2
- package/dist/api/xml_writer.d.ts +1 -0
- package/dist/api/xml_writer.d.ts.map +1 -0
- package/dist/api/xml_writer.js +1 -2
- package/dist/impl/_instantiate_helpers.d.ts +1 -0
- package/dist/impl/_instantiate_helpers.d.ts.map +1 -0
- package/dist/impl/_instantiate_helpers.js +25 -31
- package/dist/impl/_instantiate_helpers.js.map +1 -1
- package/dist/impl/_mandatory_child_or_requested_optional_filter.d.ts +1 -0
- package/dist/impl/_mandatory_child_or_requested_optional_filter.d.ts.map +1 -0
- package/dist/impl/_mandatory_child_or_requested_optional_filter.js +16 -20
- package/dist/impl/_mandatory_child_or_requested_optional_filter.js.map +1 -1
- package/dist/impl/address_space.d.ts +40 -0
- package/dist/impl/address_space.d.ts.map +1 -0
- package/dist/impl/address_space.js +246 -189
- package/dist/impl/address_space.js.map +1 -1
- package/dist/impl/address_space_change_event_tools.d.ts +1 -0
- package/dist/impl/address_space_change_event_tools.d.ts.map +1 -0
- package/dist/impl/address_space_change_event_tools.js +31 -29
- package/dist/impl/address_space_change_event_tools.js.map +1 -1
- package/dist/impl/address_space_private.d.ts +2 -0
- package/dist/impl/address_space_private.d.ts.map +1 -0
- package/dist/impl/address_space_private.js +1 -2
- package/dist/impl/address_space_private.js.map +1 -1
- package/dist/impl/alarms_and_conditions/condition.d.ts +1 -0
- package/dist/impl/alarms_and_conditions/condition.d.ts.map +1 -0
- package/dist/impl/alarms_and_conditions/condition.js +1 -2
- package/dist/impl/alarms_and_conditions/condition.js.map +1 -1
- package/dist/impl/alarms_and_conditions/condition_info_impl.d.ts +1 -0
- package/dist/impl/alarms_and_conditions/condition_info_impl.d.ts.map +1 -0
- package/dist/impl/alarms_and_conditions/condition_info_impl.js +3 -7
- package/dist/impl/alarms_and_conditions/condition_info_impl.js.map +1 -1
- package/dist/impl/alarms_and_conditions/condition_snapshot_impl.d.ts +1 -0
- package/dist/impl/alarms_and_conditions/condition_snapshot_impl.d.ts.map +1 -0
- package/dist/impl/alarms_and_conditions/condition_snapshot_impl.js +77 -81
- package/dist/impl/alarms_and_conditions/condition_snapshot_impl.js.map +1 -1
- package/dist/impl/alarms_and_conditions/deviation_alarm_helper.d.ts +1 -0
- package/dist/impl/alarms_and_conditions/deviation_alarm_helper.d.ts.map +1 -0
- package/dist/impl/alarms_and_conditions/deviation_alarm_helper.js +14 -20
- package/dist/impl/alarms_and_conditions/deviation_alarm_helper.js.map +1 -1
- package/dist/impl/alarms_and_conditions/index.d.ts +1 -0
- package/dist/impl/alarms_and_conditions/index.d.ts.map +1 -0
- package/dist/impl/alarms_and_conditions/index.js +13 -29
- package/dist/impl/alarms_and_conditions/index.js.map +1 -1
- package/dist/impl/alarms_and_conditions/ua_acknowledgeable_condition_impl.d.ts +1 -0
- package/dist/impl/alarms_and_conditions/ua_acknowledgeable_condition_impl.d.ts.map +1 -0
- package/dist/impl/alarms_and_conditions/ua_acknowledgeable_condition_impl.js +60 -65
- package/dist/impl/alarms_and_conditions/ua_acknowledgeable_condition_impl.js.map +1 -1
- package/dist/impl/alarms_and_conditions/ua_alarm_condition_impl.d.ts +1 -0
- package/dist/impl/alarms_and_conditions/ua_alarm_condition_impl.d.ts.map +1 -0
- package/dist/impl/alarms_and_conditions/ua_alarm_condition_impl.js +53 -59
- package/dist/impl/alarms_and_conditions/ua_alarm_condition_impl.js.map +1 -1
- package/dist/impl/alarms_and_conditions/ua_base_event_impl.d.ts +1 -0
- package/dist/impl/alarms_and_conditions/ua_base_event_impl.d.ts.map +1 -0
- package/dist/impl/alarms_and_conditions/ua_base_event_impl.js +12 -16
- package/dist/impl/alarms_and_conditions/ua_base_event_impl.js.map +1 -1
- package/dist/impl/alarms_and_conditions/ua_certificate_expiration_alarm_impl.d.ts +1 -0
- package/dist/impl/alarms_and_conditions/ua_certificate_expiration_alarm_impl.d.ts.map +1 -0
- package/dist/impl/alarms_and_conditions/ua_certificate_expiration_alarm_impl.js +34 -39
- package/dist/impl/alarms_and_conditions/ua_certificate_expiration_alarm_impl.js.map +1 -1
- package/dist/impl/alarms_and_conditions/ua_condition_impl.d.ts +1 -0
- package/dist/impl/alarms_and_conditions/ua_condition_impl.d.ts.map +1 -0
- package/dist/impl/alarms_and_conditions/ua_condition_impl.js +140 -148
- package/dist/impl/alarms_and_conditions/ua_condition_impl.js.map +1 -1
- package/dist/impl/alarms_and_conditions/ua_discrete_alarm_impl.d.ts +1 -0
- package/dist/impl/alarms_and_conditions/ua_discrete_alarm_impl.d.ts.map +1 -0
- package/dist/impl/alarms_and_conditions/ua_discrete_alarm_impl.js +6 -10
- package/dist/impl/alarms_and_conditions/ua_discrete_alarm_impl.js.map +1 -1
- package/dist/impl/alarms_and_conditions/ua_exclusive_deviation_alarm_impl.d.ts +1 -0
- package/dist/impl/alarms_and_conditions/ua_exclusive_deviation_alarm_impl.d.ts.map +1 -0
- package/dist/impl/alarms_and_conditions/ua_exclusive_deviation_alarm_impl.js +18 -22
- package/dist/impl/alarms_and_conditions/ua_exclusive_deviation_alarm_impl.js.map +1 -1
- package/dist/impl/alarms_and_conditions/ua_exclusive_level_alarm_impl.d.ts +1 -0
- package/dist/impl/alarms_and_conditions/ua_exclusive_level_alarm_impl.d.ts.map +1 -0
- package/dist/impl/alarms_and_conditions/ua_exclusive_level_alarm_impl.js +3 -7
- package/dist/impl/alarms_and_conditions/ua_exclusive_level_alarm_impl.js.map +1 -1
- package/dist/impl/alarms_and_conditions/ua_exclusive_limit_alarm_impl.d.ts +1 -0
- package/dist/impl/alarms_and_conditions/ua_exclusive_limit_alarm_impl.d.ts.map +1 -0
- package/dist/impl/alarms_and_conditions/ua_exclusive_limit_alarm_impl.js +14 -18
- package/dist/impl/alarms_and_conditions/ua_exclusive_limit_alarm_impl.js.map +1 -1
- package/dist/impl/alarms_and_conditions/ua_exclusive_rate_of_change_alarm_impl.d.ts +1 -0
- package/dist/impl/alarms_and_conditions/ua_exclusive_rate_of_change_alarm_impl.d.ts.map +1 -0
- package/dist/impl/alarms_and_conditions/ua_exclusive_rate_of_change_alarm_impl.js +2 -6
- package/dist/impl/alarms_and_conditions/ua_exclusive_rate_of_change_alarm_impl.js.map +1 -1
- package/dist/impl/alarms_and_conditions/ua_limit_alarm_impl.d.ts +1 -0
- package/dist/impl/alarms_and_conditions/ua_limit_alarm_impl.d.ts.map +1 -0
- package/dist/impl/alarms_and_conditions/ua_limit_alarm_impl.js +35 -39
- package/dist/impl/alarms_and_conditions/ua_limit_alarm_impl.js.map +1 -1
- package/dist/impl/alarms_and_conditions/ua_non_exclusive_deviation_alarm_impl.d.ts +1 -0
- package/dist/impl/alarms_and_conditions/ua_non_exclusive_deviation_alarm_impl.d.ts.map +1 -0
- package/dist/impl/alarms_and_conditions/ua_non_exclusive_deviation_alarm_impl.js +17 -21
- package/dist/impl/alarms_and_conditions/ua_non_exclusive_deviation_alarm_impl.js.map +1 -1
- package/dist/impl/alarms_and_conditions/ua_non_exclusive_limit_alarm_impl.d.ts +1 -0
- package/dist/impl/alarms_and_conditions/ua_non_exclusive_limit_alarm_impl.d.ts.map +1 -0
- package/dist/impl/alarms_and_conditions/ua_non_exclusive_limit_alarm_impl.js +27 -31
- package/dist/impl/alarms_and_conditions/ua_non_exclusive_limit_alarm_impl.js.map +1 -1
- package/dist/impl/alarms_and_conditions/ua_off_normal_alarm_impl.d.ts +1 -0
- package/dist/impl/alarms_and_conditions/ua_off_normal_alarm_impl.d.ts.map +1 -0
- package/dist/impl/alarms_and_conditions/ua_off_normal_alarm_impl.js +18 -22
- package/dist/impl/alarms_and_conditions/ua_off_normal_alarm_impl.js.map +1 -1
- package/dist/impl/alarms_and_conditions/ua_system_off_normal_alarm_impl.d.ts +1 -0
- package/dist/impl/alarms_and_conditions/ua_system_off_normal_alarm_impl.d.ts.map +1 -0
- package/dist/impl/alarms_and_conditions/ua_system_off_normal_alarm_impl.js +3 -7
- package/dist/impl/alarms_and_conditions/ua_system_off_normal_alarm_impl.js.map +1 -1
- package/dist/impl/apply_condition_refresh.d.ts +1 -0
- package/dist/impl/apply_condition_refresh.d.ts.map +1 -0
- package/dist/impl/apply_condition_refresh.js +1 -4
- package/dist/impl/apply_condition_refresh.js.map +1 -1
- package/dist/impl/base_node_impl.d.ts +1 -0
- package/dist/impl/base_node_impl.d.ts.map +1 -0
- package/dist/impl/base_node_impl.js +279 -292
- package/dist/impl/base_node_impl.js.map +1 -1
- package/dist/impl/base_node_private.d.ts +1 -0
- package/dist/impl/base_node_private.d.ts.map +1 -0
- package/dist/impl/base_node_private.js +168 -199
- package/dist/impl/base_node_private.js.map +1 -1
- package/dist/impl/bulk_load_clock.d.ts +35 -0
- package/dist/impl/bulk_load_clock.d.ts.map +1 -0
- package/dist/impl/bulk_load_clock.js +58 -0
- package/dist/impl/bulk_load_clock.js.map +1 -0
- package/dist/impl/check_value_rank_compatibility.d.ts +1 -0
- package/dist/impl/check_value_rank_compatibility.d.ts.map +1 -0
- package/dist/impl/check_value_rank_compatibility.js +1 -4
- package/dist/impl/check_value_rank_compatibility.js.map +1 -1
- package/dist/impl/child_accessors.d.ts +1 -0
- package/dist/impl/child_accessors.d.ts.map +1 -0
- package/dist/impl/child_accessors.js +10 -20
- package/dist/impl/child_accessors.js.map +1 -1
- package/dist/impl/data_access/add_dataItem_stuff.d.ts +1 -0
- package/dist/impl/data_access/add_dataItem_stuff.d.ts.map +1 -0
- package/dist/impl/data_access/add_dataItem_stuff.js +6 -9
- package/dist/impl/data_access/add_dataItem_stuff.js.map +1 -1
- package/dist/impl/data_access/adjust_datavalue_status_code.d.ts +1 -0
- package/dist/impl/data_access/adjust_datavalue_status_code.d.ts.map +1 -0
- package/dist/impl/data_access/adjust_datavalue_status_code.js +9 -12
- package/dist/impl/data_access/adjust_datavalue_status_code.js.map +1 -1
- package/dist/impl/data_access/semantics_changed.d.ts +12 -0
- package/dist/impl/data_access/semantics_changed.d.ts.map +1 -0
- package/dist/impl/data_access/semantics_changed.js +44 -10
- package/dist/impl/data_access/semantics_changed.js.map +1 -1
- package/dist/impl/data_access/ua_multistate_discrete_impl.d.ts +2 -1
- package/dist/impl/data_access/ua_multistate_discrete_impl.d.ts.map +1 -0
- package/dist/impl/data_access/ua_multistate_discrete_impl.js +35 -41
- package/dist/impl/data_access/ua_multistate_discrete_impl.js.map +1 -1
- package/dist/impl/data_access/ua_multistate_value_discrete_impl.d.ts +1 -0
- package/dist/impl/data_access/ua_multistate_value_discrete_impl.d.ts.map +1 -0
- package/dist/impl/data_access/ua_multistate_value_discrete_impl.js +71 -78
- package/dist/impl/data_access/ua_multistate_value_discrete_impl.js.map +1 -1
- package/dist/impl/data_access/ua_two_state_discrete_impl.d.ts +1 -0
- package/dist/impl/data_access/ua_two_state_discrete_impl.d.ts.map +1 -0
- package/dist/impl/data_access/ua_two_state_discrete_impl.js +27 -36
- package/dist/impl/data_access/ua_two_state_discrete_impl.js.map +1 -1
- package/dist/impl/event_data.d.ts +1 -0
- package/dist/impl/event_data.d.ts.map +1 -0
- package/dist/impl/event_data.js +15 -19
- package/dist/impl/event_data.js.map +1 -1
- package/dist/impl/event_layout.d.ts +1 -0
- package/dist/impl/event_layout.d.ts.map +1 -0
- package/dist/impl/event_layout.js +12 -16
- package/dist/impl/event_layout.js.map +1 -1
- package/dist/impl/extension_object_array_node.d.ts +1 -0
- package/dist/impl/extension_object_array_node.d.ts.map +1 -0
- package/dist/impl/extension_object_array_node.js +47 -53
- package/dist/impl/extension_object_array_node.js.map +1 -1
- package/dist/impl/get_basic_datatype.d.ts +1 -0
- package/dist/impl/get_basic_datatype.d.ts.map +1 -0
- package/dist/impl/get_basic_datatype.js +6 -10
- package/dist/impl/get_basic_datatype.js.map +1 -1
- package/dist/impl/handle_hierarchy_parent.d.ts +1 -0
- package/dist/impl/handle_hierarchy_parent.d.ts.map +1 -0
- package/dist/impl/handle_hierarchy_parent.js +26 -30
- package/dist/impl/handle_hierarchy_parent.js.map +1 -1
- package/dist/impl/historical_access/address_space_historical_data_node.d.ts +1 -0
- package/dist/impl/historical_access/address_space_historical_data_node.d.ts.map +1 -0
- package/dist/impl/historical_access/address_space_historical_data_node.js +76 -84
- package/dist/impl/historical_access/address_space_historical_data_node.js.map +1 -1
- package/dist/impl/historical_access/read_processed_details_hook.d.ts +1 -0
- package/dist/impl/historical_access/read_processed_details_hook.d.ts.map +1 -0
- package/dist/impl/historical_access/read_processed_details_hook.js +1 -4
- package/dist/impl/historical_access/read_processed_details_hook.js.map +1 -1
- package/dist/impl/historizer_factory.d.ts +1 -0
- package/dist/impl/historizer_factory.d.ts.map +1 -0
- package/dist/impl/historizer_factory.js +1 -4
- package/dist/impl/historizer_factory.js.map +1 -1
- package/dist/impl/idx_iterator.d.ts +1 -0
- package/dist/impl/idx_iterator.d.ts.map +1 -0
- package/dist/impl/idx_iterator.js +1 -5
- package/dist/impl/idx_iterator.js.map +1 -1
- package/dist/impl/namespace_impl.d.ts +32 -0
- package/dist/impl/namespace_impl.d.ts.map +1 -0
- package/dist/impl/namespace_impl.js +418 -318
- package/dist/impl/namespace_impl.js.map +1 -1
- package/dist/impl/namespace_private.d.ts +3 -0
- package/dist/impl/namespace_private.d.ts.map +1 -0
- package/dist/impl/namespace_private.js +3 -6
- package/dist/impl/namespace_private.js.map +1 -1
- package/dist/impl/nodeid_manager.d.ts +11 -0
- package/dist/impl/nodeid_manager.d.ts.map +1 -0
- package/dist/impl/nodeid_manager.js +52 -44
- package/dist/impl/nodeid_manager.js.map +1 -1
- package/dist/impl/nodeset_tools/adjust_namespace_array.d.ts +1 -0
- package/dist/impl/nodeset_tools/adjust_namespace_array.d.ts.map +1 -0
- package/dist/impl/nodeset_tools/adjust_namespace_array.js +1 -4
- package/dist/impl/nodeset_tools/adjust_namespace_array.js.map +1 -1
- package/dist/impl/nodeset_tools/construct_namespace_dependency.d.ts +1 -0
- package/dist/impl/nodeset_tools/construct_namespace_dependency.d.ts.map +1 -0
- package/dist/impl/nodeset_tools/construct_namespace_dependency.js +28 -39
- package/dist/impl/nodeset_tools/construct_namespace_dependency.js.map +1 -1
- package/dist/impl/nodeset_tools/dump_to_bsd.d.ts +1 -0
- package/dist/impl/nodeset_tools/dump_to_bsd.d.ts.map +1 -0
- package/dist/impl/nodeset_tools/dump_to_bsd.js +14 -20
- package/dist/impl/nodeset_tools/dump_to_bsd.js.map +1 -1
- package/dist/impl/nodeset_tools/nodeset_to_records.d.ts +1 -0
- package/dist/impl/nodeset_tools/nodeset_to_records.d.ts.map +1 -0
- package/dist/impl/nodeset_tools/nodeset_to_records.js +125 -139
- package/dist/impl/nodeset_tools/nodeset_to_records.js.map +1 -1
- package/dist/impl/nodeset_tools/nodeset_to_xml.d.ts +1 -0
- package/dist/impl/nodeset_tools/nodeset_to_xml.d.ts.map +1 -0
- package/dist/impl/nodeset_tools/nodeset_to_xml.js +190 -202
- package/dist/impl/nodeset_tools/nodeset_to_xml.js.map +1 -1
- package/dist/impl/private_namespace.d.ts +1 -0
- package/dist/impl/private_namespace.d.ts.map +1 -0
- package/dist/impl/private_namespace.js +3 -8
- package/dist/impl/private_namespace.js.map +1 -1
- package/dist/impl/reference_impl.d.ts +1 -0
- package/dist/impl/reference_impl.d.ts.map +1 -0
- package/dist/impl/reference_impl.js +24 -37
- package/dist/impl/reference_impl.js.map +1 -1
- package/dist/impl/reference_type_version.d.ts +1 -0
- package/dist/impl/reference_type_version.d.ts.map +1 -0
- package/dist/impl/reference_type_version.js +2 -5
- package/dist/impl/reference_type_version.js.map +1 -1
- package/dist/impl/role_permissions.d.ts +1 -0
- package/dist/impl/role_permissions.d.ts.map +1 -0
- package/dist/impl/role_permissions.js +3 -6
- package/dist/impl/role_permissions.js.map +1 -1
- package/dist/impl/state_machine/finite_state_machine.d.ts +1 -0
- package/dist/impl/state_machine/finite_state_machine.d.ts.map +1 -0
- package/dist/impl/state_machine/finite_state_machine.js +123 -97
- package/dist/impl/state_machine/finite_state_machine.js.map +1 -1
- package/dist/impl/state_machine/ua_shelving_state_machine_ex.d.ts +1 -0
- package/dist/impl/state_machine/ua_shelving_state_machine_ex.d.ts.map +1 -0
- package/dist/impl/state_machine/ua_shelving_state_machine_ex.js +57 -62
- package/dist/impl/state_machine/ua_shelving_state_machine_ex.js.map +1 -1
- package/dist/impl/state_machine/ua_two_state_variable.d.ts +1 -0
- package/dist/impl/state_machine/ua_two_state_variable.d.ts.map +1 -0
- package/dist/impl/state_machine/ua_two_state_variable.js +56 -63
- package/dist/impl/state_machine/ua_two_state_variable.js.map +1 -1
- package/dist/impl/tool_isSubtypeOf.d.ts +1 -0
- package/dist/impl/tool_isSubtypeOf.d.ts.map +1 -0
- package/dist/impl/tool_isSubtypeOf.js +27 -34
- package/dist/impl/tool_isSubtypeOf.js.map +1 -1
- package/dist/impl/ua_condition_type.d.ts +1 -0
- package/dist/impl/ua_condition_type.d.ts.map +1 -0
- package/dist/impl/ua_condition_type.js +1 -2
- package/dist/impl/ua_data_type_impl.d.ts +1 -0
- package/dist/impl/ua_data_type_impl.d.ts.map +1 -0
- package/dist/impl/ua_data_type_impl.js +99 -83
- package/dist/impl/ua_data_type_impl.js.map +1 -1
- package/dist/impl/ua_method_impl.d.ts +3 -2
- package/dist/impl/ua_method_impl.d.ts.map +1 -0
- package/dist/impl/ua_method_impl.js +74 -78
- package/dist/impl/ua_method_impl.js.map +1 -1
- package/dist/impl/ua_object_impl.d.ts +1 -0
- package/dist/impl/ua_object_impl.d.ts.map +1 -0
- package/dist/impl/ua_object_impl.js +48 -51
- package/dist/impl/ua_object_impl.js.map +1 -1
- package/dist/impl/ua_object_type_impl.d.ts +1 -0
- package/dist/impl/ua_object_type_impl.d.ts.map +1 -0
- package/dist/impl/ua_object_type_impl.js +35 -39
- package/dist/impl/ua_object_type_impl.js.map +1 -1
- package/dist/impl/ua_reference_type_impl.d.ts +2 -1
- package/dist/impl/ua_reference_type_impl.d.ts.map +1 -0
- package/dist/impl/ua_reference_type_impl.js +41 -45
- package/dist/impl/ua_reference_type_impl.js.map +1 -1
- package/dist/impl/ua_variable_impl.d.ts +1 -0
- package/dist/impl/ua_variable_impl.d.ts.map +1 -0
- package/dist/impl/ua_variable_impl.js +373 -376
- package/dist/impl/ua_variable_impl.js.map +1 -1
- package/dist/impl/ua_variable_impl_ext_obj.d.ts +1 -0
- package/dist/impl/ua_variable_impl_ext_obj.d.ts.map +1 -0
- package/dist/impl/ua_variable_impl_ext_obj.js +79 -97
- package/dist/impl/ua_variable_impl_ext_obj.js.map +1 -1
- package/dist/impl/ua_variable_type_impl.d.ts +1 -0
- package/dist/impl/ua_variable_type_impl.d.ts.map +1 -0
- package/dist/impl/ua_variable_type_impl.js +77 -84
- package/dist/impl/ua_variable_type_impl.js.map +1 -1
- package/dist/impl/ua_view_impl.d.ts +1 -0
- package/dist/impl/ua_view_impl.d.ts.map +1 -0
- package/dist/impl/ua_view_impl.js +18 -22
- package/dist/impl/ua_view_impl.js.map +1 -1
- package/dist/impl/validate_data_type_correctness.d.ts +1 -0
- package/dist/impl/validate_data_type_correctness.d.ts.map +1 -0
- package/dist/impl/validate_data_type_correctness.js +24 -30
- package/dist/impl/validate_data_type_correctness.js.map +1 -1
- package/dist/tsconfig_base.tsbuildinfo +1 -1
- package/distHelpers/add_event_generator_object.d.ts +1 -0
- package/distHelpers/add_event_generator_object.d.ts.map +1 -0
- package/distHelpers/add_event_generator_object.js +8 -11
- package/distHelpers/add_event_generator_object.js.map +1 -1
- package/distHelpers/address_space_digest.d.ts +1 -0
- package/distHelpers/address_space_digest.d.ts.map +1 -0
- package/distHelpers/address_space_digest.js +1 -5
- package/distHelpers/address_space_digest.js.map +1 -1
- package/distHelpers/alarms_and_conditions_demo.d.ts +1 -0
- package/distHelpers/alarms_and_conditions_demo.d.ts.map +1 -0
- package/distHelpers/alarms_and_conditions_demo.js +8 -11
- package/distHelpers/alarms_and_conditions_demo.js.map +1 -1
- package/distHelpers/assertHasMatchingReference.d.ts +1 -0
- package/distHelpers/assertHasMatchingReference.d.ts.map +1 -0
- package/distHelpers/assertHasMatchingReference.js +6 -9
- package/distHelpers/assertHasMatchingReference.js.map +1 -1
- package/distHelpers/boiler_system.d.ts +1 -0
- package/distHelpers/boiler_system.d.ts.map +1 -0
- package/distHelpers/boiler_system.js +36 -40
- package/distHelpers/boiler_system.js.map +1 -1
- package/distHelpers/create_minimalist_address_space_nodeset.d.ts +1 -0
- package/distHelpers/create_minimalist_address_space_nodeset.d.ts.map +1 -0
- package/distHelpers/create_minimalist_address_space_nodeset.js +29 -35
- package/distHelpers/create_minimalist_address_space_nodeset.js.map +1 -1
- package/distHelpers/date_utils.d.ts +1 -0
- package/distHelpers/date_utils.d.ts.map +1 -0
- package/distHelpers/date_utils.js +1 -4
- package/distHelpers/date_utils.js.map +1 -1
- package/distHelpers/dump_statemachine.d.ts +1 -0
- package/distHelpers/dump_statemachine.d.ts.map +1 -0
- package/distHelpers/dump_statemachine.js +1 -2
- package/distHelpers/dump_statemachine.js.map +1 -1
- package/distHelpers/get_address_space_fixture.d.ts +1 -0
- package/distHelpers/get_address_space_fixture.d.ts.map +1 -0
- package/distHelpers/get_address_space_fixture.js +12 -18
- package/distHelpers/get_address_space_fixture.js.map +1 -1
- package/distHelpers/get_mini_address_space.d.ts +1 -0
- package/distHelpers/get_mini_address_space.d.ts.map +1 -0
- package/distHelpers/get_mini_address_space.js +12 -18
- package/distHelpers/get_mini_address_space.js.map +1 -1
- package/distHelpers/index.d.ts +1 -0
- package/distHelpers/index.d.ts.map +1 -0
- package/distHelpers/index.js +10 -26
- package/distHelpers/index.js.map +1 -1
- package/distHelpers/mock_session.d.ts +1 -0
- package/distHelpers/mock_session.d.ts.map +1 -0
- package/distHelpers/mock_session.js +11 -16
- package/distHelpers/mock_session.js.map +1 -1
- package/distNodeJS/address_space_digest.d.ts +1 -0
- package/distNodeJS/address_space_digest.d.ts.map +1 -0
- package/distNodeJS/address_space_digest.js +3 -6
- package/distNodeJS/address_space_digest.js.map +1 -1
- package/distNodeJS/generate_address_space.d.ts +1 -0
- package/distNodeJS/generate_address_space.d.ts.map +1 -0
- package/distNodeJS/generate_address_space.js +67 -97
- package/distNodeJS/generate_address_space.js.map +1 -1
- package/distNodeJS/index.d.ts +1 -0
- package/distNodeJS/index.d.ts.map +1 -0
- package/distNodeJS/index.js +3 -19
- package/distNodeJS/index.js.map +1 -1
- package/distNodeJS/nodeset_image_file_store.d.ts +1 -0
- package/distNodeJS/nodeset_image_file_store.d.ts.map +1 -0
- package/distNodeJS/nodeset_image_file_store.js +20 -28
- package/distNodeJS/nodeset_image_file_store.js.map +1 -1
- package/impl/_mandatory_child_or_requested_optional_filter.ts +3 -3
- package/impl/address_space.ts +75 -6
- package/impl/address_space_change_event_tools.ts +7 -0
- package/impl/address_space_private.ts +1 -0
- package/impl/alarms_and_conditions/condition_snapshot_impl.ts +1 -1
- package/impl/alarms_and_conditions/ua_acknowledgeable_condition_impl.ts +1 -1
- package/impl/alarms_and_conditions/ua_alarm_condition_impl.ts +1 -1
- package/impl/alarms_and_conditions/ua_condition_impl.ts +1 -1
- package/impl/bulk_load_clock.ts +65 -0
- package/impl/data_access/semantics_changed.ts +39 -1
- package/impl/data_access/ua_multistate_discrete_impl.ts +1 -1
- package/impl/extension_object_array_node.ts +5 -5
- package/impl/historical_access/address_space_historical_data_node.ts +2 -2
- package/impl/namespace_impl.ts +119 -2
- package/impl/namespace_private.ts +3 -0
- package/impl/nodeid_manager.ts +13 -0
- package/impl/nodeset_tools/construct_namespace_dependency.ts +4 -4
- package/impl/nodeset_tools/dump_to_bsd.ts +1 -1
- package/impl/nodeset_tools/nodeset_to_xml.ts +1 -1
- package/impl/state_machine/finite_state_machine.ts +56 -10
- package/impl/state_machine/ua_shelving_state_machine_ex.ts +1 -1
- package/impl/state_machine/ua_two_state_variable.ts +1 -1
- package/impl/tool_isSubtypeOf.ts +1 -1
- package/impl/ua_data_type_impl.ts +26 -5
- package/impl/ua_method_impl.ts +10 -6
- package/impl/ua_object_impl.ts +6 -2
- package/impl/ua_variable_impl.ts +15 -8
- package/impl/ua_variable_type_impl.ts +3 -3
- package/nodeJS.d.ts +1 -1
- package/nodeJS.js +1 -1
- package/package.json +42 -41
- package/source_nodejs/generate_address_space.ts +31 -14
- package/testHelpers.d.ts +1 -1
- package/testHelpers.js +1 -1
- /package/bin/{nodeset_tool_common.js → nodeset_tool_common.cjs} +0 -0
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const node_opcua_nodeid_1 = require("node-opcua-nodeid");
|
|
1
|
+
import { VariableTypeIds } from "node-opcua-constants";
|
|
2
|
+
import { NodeClass } from "node-opcua-data-model";
|
|
3
|
+
import { NodeId, resolveNodeId } from "node-opcua-nodeid";
|
|
4
|
+
import { SemanticChangeStructureDataType } from "node-opcua-types";
|
|
5
|
+
import { DataType, VariantArrayType } from "node-opcua-variant";
|
|
7
6
|
/**
|
|
8
7
|
* the Properties whose value carries the semantics of the DataItem they belong to.
|
|
9
8
|
*
|
|
@@ -30,7 +29,7 @@ const semanticsBearingProperties = new Set([
|
|
|
30
29
|
"YAxisDefinition",
|
|
31
30
|
"ZAxisDefinition"
|
|
32
31
|
]);
|
|
33
|
-
const dataItemTypeNodeId =
|
|
32
|
+
const dataItemTypeNodeId = resolveNodeId(VariableTypeIds.DataItemType);
|
|
34
33
|
/**
|
|
35
34
|
* the DataItem whose semantics `property` carries, or null when `property` is not one of them.
|
|
36
35
|
*
|
|
@@ -48,12 +47,12 @@ function semanticsOwnerOf(property) {
|
|
|
48
47
|
return cache.$$semanticsOwner;
|
|
49
48
|
}
|
|
50
49
|
const parent = property.parent;
|
|
51
|
-
if (!parent || parent.nodeClass !==
|
|
50
|
+
if (!parent || parent.nodeClass !== NodeClass.Variable) {
|
|
52
51
|
return null;
|
|
53
52
|
}
|
|
54
53
|
const dataItem = parent;
|
|
55
54
|
const typeDefinition = dataItem.typeDefinitionObj;
|
|
56
|
-
if (!typeDefinition || typeDefinition.nodeClass !==
|
|
55
|
+
if (!typeDefinition || typeDefinition.nodeClass !== NodeClass.VariableType) {
|
|
57
56
|
return null;
|
|
58
57
|
}
|
|
59
58
|
const dataItemType = dataItem.addressSpace.findNode(dataItemTypeNodeId);
|
|
@@ -68,10 +67,45 @@ function semanticsOwnerOf(property) {
|
|
|
68
67
|
* Property of a DataItem, the DataItem's semantic_version is bumped so that the next data
|
|
69
68
|
* change notification of the DataItem carries the SemanticsChanged bit.
|
|
70
69
|
*/
|
|
71
|
-
function notifySemanticsChangedIfNeeded(property) {
|
|
70
|
+
export function notifySemanticsChangedIfNeeded(property) {
|
|
72
71
|
const dataItem = semanticsOwnerOf(property);
|
|
73
72
|
if (dataItem) {
|
|
74
73
|
dataItem.handle_semantic_changed();
|
|
75
74
|
}
|
|
76
75
|
}
|
|
76
|
+
/**
|
|
77
|
+
* OPC 10000-5 6.4.31: besides the SemanticsChanged bit on the DataItem's next notification, the
|
|
78
|
+
* Server reports a semantics change as a SemanticChangeEventType on the Server object, carrying
|
|
79
|
+
* the affected Node and its TypeDefinition. A client subscribed to the Server's events learns of
|
|
80
|
+
* the change without monitoring the DataItem itself.
|
|
81
|
+
*
|
|
82
|
+
* Raised from `handle_semantic_changed`, the single point every semantics change goes through, so
|
|
83
|
+
* the event and the bit can never disagree. Modelled on how the address space raises
|
|
84
|
+
* GeneralModelChangeEventType.
|
|
85
|
+
*/
|
|
86
|
+
export function raiseSemanticChangeEvent(dataItem) {
|
|
87
|
+
const addressSpace = dataItem.addressSpace;
|
|
88
|
+
// during construction and teardown there is no Server object to raise the event on
|
|
89
|
+
const server = addressSpace?.rootFolder?.objects?.server;
|
|
90
|
+
if (!server) {
|
|
91
|
+
return;
|
|
92
|
+
}
|
|
93
|
+
const eventTypeNode = addressSpace.findEventType("SemanticChangeEventType");
|
|
94
|
+
if (!eventTypeNode) {
|
|
95
|
+
return;
|
|
96
|
+
}
|
|
97
|
+
const changes = [
|
|
98
|
+
new SemanticChangeStructureDataType({
|
|
99
|
+
affected: dataItem.nodeId,
|
|
100
|
+
affectedType: dataItem.typeDefinitionObj?.nodeId ?? NodeId.nullNodeId
|
|
101
|
+
})
|
|
102
|
+
];
|
|
103
|
+
server.raiseEvent(eventTypeNode, {
|
|
104
|
+
changes: {
|
|
105
|
+
dataType: DataType.ExtensionObject,
|
|
106
|
+
arrayType: VariantArrayType.Array,
|
|
107
|
+
value: changes
|
|
108
|
+
}
|
|
109
|
+
});
|
|
110
|
+
}
|
|
77
111
|
//# sourceMappingURL=semantics_changed.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"semantics_changed.js","sourceRoot":"","sources":["../../../impl/data_access/semantics_changed.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"semantics_changed.js","sourceRoot":"","sources":["../../../impl/data_access/semantics_changed.ts"],"names":[],"mappings":"AAyBA,OAAO,EAAE,eAAe,EAAE,MAAM,s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AAQ,CAAC,eAAe;YAClC,SAAS,EAAE,gBAAgB,CAAC,KAAK;YACjC,KAAK,EAAE,OAAO;SACjB;KACJ,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -8,7 +8,7 @@ import { DataType, Variant } from "node-opcua-variant";
|
|
|
8
8
|
import type { AddMultiStateDiscreteOptions } from "../../api/address_space_ts.js";
|
|
9
9
|
import type { ISetStateOptions } from "../../api/interfaces/i_set_state_options.js";
|
|
10
10
|
import { UAVariableImplT } from "../ua_variable_impl.js";
|
|
11
|
-
export { UAMultiStateDiscrete } from "node-opcua-nodeset-ua";
|
|
11
|
+
export type { UAMultiStateDiscrete } from "node-opcua-nodeset-ua";
|
|
12
12
|
import type { UAMultiStateDiscreteEx } from "../../api/interfaces/data_access/ua_multistate_discrete_ex.js";
|
|
13
13
|
export type { UAMultiStateDiscreteEx };
|
|
14
14
|
/**
|
|
@@ -36,3 +36,4 @@ export declare const UAMultiStateDiscreteImpl: typeof UAMultiStateDiscreteImplBa
|
|
|
36
36
|
export declare function promoteToMultiStateDiscrete<T, DT extends DataType>(node: UAVariable): UAMultiStateDiscreteImpl<T, DT>;
|
|
37
37
|
/** @internal */
|
|
38
38
|
export declare function _addMultiStateDiscrete<T, DT extends DataType>(namespace: INamespace, options: AddMultiStateDiscreteOptions): UAMultiStateDiscreteImpl<T, DT>;
|
|
39
|
+
//# sourceMappingURL=ua_multistate_discrete_impl.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ua_multistate_discrete_impl.d.ts","sourceRoot":"","sources":["../../../impl/data_access/ua_multistate_discrete_impl.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAER,cAAc,EACd,WAAW,EACX,YAAY,EACZ,UAAU,EACV,UAAU,EACV,UAAU,EACb,MAAM,+BAA+B,CAAC;AAGvC,OAAO,EAAuB,KAAK,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAChF,OAAO,EAAE,KAAK,UAAU,EAA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AI,4BAA4B,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;AACnG,gBAAgB;AAChB,eAAO,MAAM,wBAAwB,qCAA+B,CAAC;AAErE,wBAAgB,2BAA2B,CAAC,CAAC,EAAE,EAAE,SAAS,QAAQ,EAAE,IAAI,EAAE,UAAU,GAAG,wBAAwB,CAAC,CAAC,EAAE,EAAE,CAAC,CAarH;AAGD,gBAAgB;AAChB,wBAAgB,sBAAsB,CAAC,CAAC,EAAE,EAAE,SAAS,QAAQ,EACzD,SAAS,EAAE,UAAU,EACrB,OAAO,EAAE,4BAA4B,GACtC,wBAAwB,CAAC,CAAC,EAAE,EAAE,CAAC,CAwDjC"}
|
|
@@ -1,24 +1,19 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
/**
|
|
3
2
|
* @module node-opcua-address-space.DataAccess
|
|
4
3
|
*/
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
const node_opcua_variant_1 = require("node-opcua-variant");
|
|
14
|
-
const register_node_promoter_js_1 = require("../../api/loader/register_node_promoter.js");
|
|
15
|
-
const ua_variable_impl_js_1 = require("../ua_variable_impl.js");
|
|
16
|
-
const add_dataItem_stuff_js_1 = require("./add_dataItem_stuff.js");
|
|
4
|
+
import { assert } from "node-opcua-assert";
|
|
5
|
+
import { VariableTypeIds } from "node-opcua-constants";
|
|
6
|
+
import { coerceLocalizedText } from "node-opcua-data-model";
|
|
7
|
+
import { StatusCodes } from "node-opcua-status-code";
|
|
8
|
+
import { DataType, Variant, VariantArrayType } from "node-opcua-variant";
|
|
9
|
+
import { registerNodePromoter } from "../../api/loader/register_node_promoter.js";
|
|
10
|
+
import { UAVariableImpl, UAVariableImplT } from "../ua_variable_impl.js";
|
|
11
|
+
import { add_dataItem_stuff } from "./add_dataItem_stuff.js";
|
|
17
12
|
/**
|
|
18
13
|
* @class UAMultiStateDiscrete
|
|
19
14
|
* @internal
|
|
20
15
|
*/
|
|
21
|
-
class UAMultiStateDiscreteImplBase extends
|
|
16
|
+
export class UAMultiStateDiscreteImplBase extends UAVariableImplT {
|
|
22
17
|
getValue() {
|
|
23
18
|
// MultiStateDiscrete fixes its value to UInt32 (OPC 10000-8), whatever T says
|
|
24
19
|
return this.readValue().value.value;
|
|
@@ -26,12 +21,12 @@ class UAMultiStateDiscreteImplBase extends ua_variable_impl_js_1.UAVariableImplT
|
|
|
26
21
|
getValueAsString() {
|
|
27
22
|
const index = this.getValue();
|
|
28
23
|
const arr = this.enumStrings.readValue().value.value;
|
|
29
|
-
|
|
24
|
+
assert(Array.isArray(arr));
|
|
30
25
|
return arr[index].text ? arr[index].text?.toString() : "????";
|
|
31
26
|
}
|
|
32
27
|
getIndex(value) {
|
|
33
28
|
const arr = this.enumStrings.readValue().value.value;
|
|
34
|
-
|
|
29
|
+
assert(Array.isArray(arr));
|
|
35
30
|
const index = arr.findIndex((a) => a.text === value);
|
|
36
31
|
return index;
|
|
37
32
|
}
|
|
@@ -48,52 +43,51 @@ class UAMultiStateDiscreteImplBase extends ua_variable_impl_js_1.UAVariableImplT
|
|
|
48
43
|
if (value >= arrayEnumStrings.length) {
|
|
49
44
|
throw new Error(`UAMultiStateDiscrete#setValue BadOutOfRange ${value}`);
|
|
50
45
|
}
|
|
51
|
-
|
|
52
|
-
this.setValueFromSource(new
|
|
46
|
+
assert(Number.isFinite(value));
|
|
47
|
+
this.setValueFromSource(new Variant({ dataType: DataType.UInt32, value }));
|
|
53
48
|
}
|
|
54
49
|
checkVariantCompatibility(value) {
|
|
55
50
|
if (!this._validate_DataType(value.dataType)) {
|
|
56
|
-
return
|
|
51
|
+
return StatusCodes.BadTypeMismatch;
|
|
57
52
|
}
|
|
58
53
|
if (this.enumStrings) {
|
|
59
54
|
const arrayEnumStrings = this.enumStrings.readValue().value.value;
|
|
60
55
|
// MultiStateDiscreteType
|
|
61
|
-
|
|
56
|
+
assert(value.dataType === DataType.UInt32);
|
|
62
57
|
if (value.value >= arrayEnumStrings.length) {
|
|
63
|
-
return
|
|
58
|
+
return StatusCodes.BadOutOfRange;
|
|
64
59
|
}
|
|
65
60
|
}
|
|
66
|
-
return
|
|
61
|
+
return StatusCodes.Good;
|
|
67
62
|
}
|
|
68
63
|
_post_initialize() {
|
|
69
64
|
/* empty */
|
|
70
65
|
}
|
|
71
66
|
clone(options1, optionalFilter, extraInfo) {
|
|
72
|
-
const variable1 =
|
|
67
|
+
const variable1 = UAVariableImpl.prototype.clone.call(this, options1, optionalFilter, extraInfo);
|
|
73
68
|
return promoteToMultiStateDiscrete(variable1);
|
|
74
69
|
}
|
|
75
70
|
}
|
|
76
|
-
exports.UAMultiStateDiscreteImplBase = UAMultiStateDiscreteImplBase;
|
|
77
71
|
/** @internal */
|
|
78
|
-
|
|
79
|
-
function promoteToMultiStateDiscrete(node) {
|
|
80
|
-
if (node instanceof
|
|
72
|
+
export const UAMultiStateDiscreteImpl = UAMultiStateDiscreteImplBase;
|
|
73
|
+
export function promoteToMultiStateDiscrete(node) {
|
|
74
|
+
if (node instanceof UAMultiStateDiscreteImpl) {
|
|
81
75
|
return node; // already promoted
|
|
82
76
|
}
|
|
83
|
-
Object.setPrototypeOf(node,
|
|
84
|
-
|
|
77
|
+
Object.setPrototypeOf(node, UAMultiStateDiscreteImpl.prototype);
|
|
78
|
+
assert(node instanceof UAMultiStateDiscreteImpl, "should now be a State Machine");
|
|
85
79
|
const _node = node;
|
|
86
80
|
_node._post_initialize();
|
|
87
|
-
|
|
81
|
+
assert(_node.enumStrings.browseName.toString() === "EnumStrings");
|
|
88
82
|
_node.install_extra_properties();
|
|
89
83
|
return node;
|
|
90
84
|
}
|
|
91
|
-
|
|
85
|
+
registerNodePromoter(VariableTypeIds.MultiStateDiscreteType, promoteToMultiStateDiscrete);
|
|
92
86
|
/** @internal */
|
|
93
|
-
function _addMultiStateDiscrete(namespace, options) {
|
|
87
|
+
export function _addMultiStateDiscrete(namespace, options) {
|
|
94
88
|
const addressSpace = namespace.addressSpace;
|
|
95
|
-
|
|
96
|
-
|
|
89
|
+
assert(Object.hasOwn(options, "enumStrings"));
|
|
90
|
+
assert(!Object.hasOwn(options, "ValuePrecision"));
|
|
97
91
|
const multiStateDiscreteType = addressSpace.findVariableType("MultiStateDiscreteType");
|
|
98
92
|
if (!multiStateDiscreteType) {
|
|
99
93
|
throw new Error("Cannot find MultiStateDiscreteType");
|
|
@@ -102,8 +96,8 @@ function _addMultiStateDiscrete(namespace, options) {
|
|
|
102
96
|
options.value = options.value === undefined ? 0 : options.value;
|
|
103
97
|
let value;
|
|
104
98
|
if (typeof options.value === "number") {
|
|
105
|
-
value = new
|
|
106
|
-
dataType:
|
|
99
|
+
value = new Variant({
|
|
100
|
+
dataType: DataType.UInt32,
|
|
107
101
|
value: options.value
|
|
108
102
|
});
|
|
109
103
|
}
|
|
@@ -117,9 +111,9 @@ function _addMultiStateDiscrete(namespace, options) {
|
|
|
117
111
|
value,
|
|
118
112
|
valueRank: -2
|
|
119
113
|
});
|
|
120
|
-
|
|
114
|
+
add_dataItem_stuff(variable, options);
|
|
121
115
|
const enumStrings = options.enumStrings.map((value) => {
|
|
122
|
-
return
|
|
116
|
+
return coerceLocalizedText(value);
|
|
123
117
|
});
|
|
124
118
|
const _enumStringsNode = namespace.addVariable({
|
|
125
119
|
accessLevel: "CurrentRead", // | CurrentWrite",
|
|
@@ -130,9 +124,9 @@ function _addMultiStateDiscrete(namespace, options) {
|
|
|
130
124
|
propertyOf: variable,
|
|
131
125
|
typeDefinition: "PropertyType",
|
|
132
126
|
userAccessLevel: "CurrentRead", // CurrentWrite",
|
|
133
|
-
value: new
|
|
134
|
-
arrayType:
|
|
135
|
-
dataType:
|
|
127
|
+
value: new Variant({
|
|
128
|
+
arrayType: VariantArrayType.Array,
|
|
129
|
+
dataType: DataType.LocalizedText,
|
|
136
130
|
value: enumStrings
|
|
137
131
|
})
|
|
138
132
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ua_multistate_discrete_impl.js","sourceRoot":"","sources":["../../../impl/data_access/ua_multistate_discrete_impl.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ua_multistate_discrete_impl.js","sourceRoot":"","sources":["../../../impl/data_access/ua_multistate_discrete_impl.ts"],"names":[],"mappings":"AAAA;;GAEG;AAWH,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,mBAAmB,EAAsB,MAAM,uBAAuB,CAAC;AAChF,OAAO,EAAmB,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACtE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAGzE,OAAO,EAAE,oBAAoB,EAAE,MAAM,4CAA4C,CAAC;AAClF,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzE,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAW7D;;;GAGG;AACH,MAAM,OAAO,4BACT,SAAQ,eAAsB;IASvB,QAAQ;QACX,8EAA8E;QAC9E,OAAO,IAAI,CAAC,SAAS,EAAE,CAAC,KAAK,CAAC,KAAe,CAAC;IAClD,CAAC;IAEM,gBAAgB;QACnB,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAC;QAC9B,MAAM,GAAG,GAAG,IAAI,CAAC,WAAW,CAAC,SAAS,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC;QACrD,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC;QAC3B,OAAO,GAAG,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,IAAI,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC;IAClE,CAAC;IAEM,QAAQ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CAAC;IAEH,kBAAkB,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IAEtC,MAAM,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,KAAa,EAAE,EAAE;QAC1D,OAAO,mBAAmB,CAAC,KAAK,CAAC,CAAC;IACtC,CAAC,CAAC,CAAC;IAEH,MAAM,gBAAgB,GAAG,SAAS,CAAC,WAAW,CAAC;QAC3C,WAAW,EAAE,aAAa,EAAE,mBAAmB;QAC/C,UAAU,EAAE,EAAE,IAAI,EAAE,aAAa,EAAE,cAAc,EAAE,CAAC,EAAE;QACtD,QAAQ,EAAE,eAAe;QACzB,uBAAuB,EAAE,CAAC;QAC1B,aAAa,EAAE,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS;QAC9D,UAAU,EAAE,QAAQ;QACpB,cAAc,EAAE,cAAc;QAC9B,eAAe,EAAE,aAAa,EAAE,iBAAiB;QACjD,KAAK,EAAE,IAAI,OAAO,CAAC;YACf,SAAS,EAAE,gBAAgB,CAAC,KAAK;YACjC,QAAQ,EAAE,QAAQ,CAAC,aAAa;YAChC,KAAK,EAAE,WAAW;SACrB,CAAC;KACL,CAAC,CAAC;IAEH,OAAO,2BAA2B,CAAC,QAAQ,CAAC,CAAC;AACjD,CAAC"}
|
|
@@ -59,3 +59,4 @@ export declare function validateIsNumericDataType(dataTypeValue: unknown): void;
|
|
|
59
59
|
/** @deprecated: use validateIsNumericDataType instead */
|
|
60
60
|
export declare const validateDataType: typeof validateIsNumericDataType;
|
|
61
61
|
export {};
|
|
62
|
+
//# sourceMappingURL=ua_multistate_value_discrete_impl.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ua_multistate_value_discrete_impl.d.ts","sourceRoot":"","sources":["../../../impl/data_access/ua_multistate_value_discrete_impl.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAER,cAAc,EACd,WAAW,EACX,YAAY,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yBAAyB,CAAC,aAAa,EAAE,OAAO,GAAG,IAAI,CAItE;AAED,yDAAyD;AACzD,eAAO,MAAM,gBAAgB,kCAA4B,CAAC"}
|
|
@@ -1,20 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
const node_opcua_variant_1 = require("node-opcua-variant");
|
|
13
|
-
const coerce_enum_value_js_1 = require("../../api/helpers/coerce_enum_value.js");
|
|
14
|
-
const register_node_promoter_js_1 = require("../../api/loader/register_node_promoter.js");
|
|
15
|
-
const get_basic_datatype_js_1 = require("../get_basic_datatype.js");
|
|
16
|
-
const ua_variable_impl_js_1 = require("../ua_variable_impl.js");
|
|
17
|
-
const add_dataItem_stuff_js_1 = require("./add_dataItem_stuff.js");
|
|
1
|
+
import { assert } from "node-opcua-assert";
|
|
2
|
+
import { coerceInt32, coerceInt64toInt32, coerceUInt64, coerceUInt64toInt32, isValidInt64, isValidUInt64 } from "node-opcua-basic-types";
|
|
3
|
+
import { VariableTypeIds } from "node-opcua-constants";
|
|
4
|
+
import { coerceLocalizedText } from "node-opcua-data-model";
|
|
5
|
+
import { StatusCodes } from "node-opcua-status-code";
|
|
6
|
+
import { DataType, Variant, VariantArrayType } from "node-opcua-variant";
|
|
7
|
+
import { coerceEnumValues } from "../../api/helpers/coerce_enum_value.js";
|
|
8
|
+
import { registerNodePromoter } from "../../api/loader/register_node_promoter.js";
|
|
9
|
+
import { _getBasicDataTypeFromDataTypeNodeId } from "../get_basic_datatype.js";
|
|
10
|
+
import { UAVariableImpl } from "../ua_variable_impl.js";
|
|
11
|
+
import { add_dataItem_stuff } from "./add_dataItem_stuff.js";
|
|
18
12
|
function convertToArray(array) {
|
|
19
13
|
if (Array.isArray(array))
|
|
20
14
|
return array;
|
|
@@ -26,12 +20,12 @@ function convertToArray(array) {
|
|
|
26
20
|
}
|
|
27
21
|
const getCoerceToInt32 = (dataType) => {
|
|
28
22
|
switch (dataType) {
|
|
29
|
-
case
|
|
30
|
-
return
|
|
31
|
-
case
|
|
32
|
-
return
|
|
23
|
+
case DataType.UInt64:
|
|
24
|
+
return coerceUInt64toInt32;
|
|
25
|
+
case DataType.Int64:
|
|
26
|
+
return coerceInt64toInt32;
|
|
33
27
|
default:
|
|
34
|
-
return
|
|
28
|
+
return coerceInt32;
|
|
35
29
|
}
|
|
36
30
|
};
|
|
37
31
|
function install_synchronization(_variable) {
|
|
@@ -40,15 +34,15 @@ function install_synchronization(_variable) {
|
|
|
40
34
|
if (!valueAsTextNode) {
|
|
41
35
|
return;
|
|
42
36
|
}
|
|
43
|
-
if (dataValue.value.arrayType ===
|
|
37
|
+
if (dataValue.value.arrayType === VariantArrayType.Array || dataValue.value.arrayType === VariantArrayType.Matrix) {
|
|
44
38
|
//
|
|
45
39
|
const _coerce = getCoerceToInt32(_variable.getBasicDataType());
|
|
46
|
-
const values = convertToArray(dataValue.value.value).map((a) =>
|
|
40
|
+
const values = convertToArray(dataValue.value.value).map((a) => coerceInt32(a));
|
|
47
41
|
const variantArray = values.map((a) => _variable.findValueAsText(a));
|
|
48
42
|
const localizedText = variantArray.map((a) => a.value);
|
|
49
|
-
const valueAsText1 = new
|
|
43
|
+
const valueAsText1 = new Variant({
|
|
50
44
|
arrayType: dataValue.value.arrayType,
|
|
51
|
-
dataType:
|
|
45
|
+
dataType: DataType.LocalizedText,
|
|
52
46
|
value: localizedText,
|
|
53
47
|
dimensions: dataValue.value.dimensions
|
|
54
48
|
});
|
|
@@ -64,7 +58,7 @@ function install_synchronization(_variable) {
|
|
|
64
58
|
_variable.emit("value_changed", dataValue);
|
|
65
59
|
}
|
|
66
60
|
/** @internal */
|
|
67
|
-
class UAMultiStateValueDiscreteImplBase extends
|
|
61
|
+
export class UAMultiStateValueDiscreteImplBase extends UAVariableImpl {
|
|
68
62
|
setValue(value, options) {
|
|
69
63
|
if (typeof value === "string") {
|
|
70
64
|
const enumValues = this.enumValues.readValue().value.value;
|
|
@@ -77,7 +71,7 @@ class UAMultiStateValueDiscreteImplBase extends ua_variable_impl_js_1.UAVariable
|
|
|
77
71
|
}
|
|
78
72
|
}
|
|
79
73
|
else {
|
|
80
|
-
this._setValue(
|
|
74
|
+
this._setValue(coerceUInt64(value), options);
|
|
81
75
|
}
|
|
82
76
|
}
|
|
83
77
|
getValueAsString() {
|
|
@@ -92,14 +86,14 @@ class UAMultiStateValueDiscreteImplBase extends ua_variable_impl_js_1.UAVariable
|
|
|
92
86
|
}
|
|
93
87
|
checkVariantCompatibility(value) {
|
|
94
88
|
if (this.enumValues) {
|
|
95
|
-
if (!this._isValueInRange(
|
|
96
|
-
return
|
|
89
|
+
if (!this._isValueInRange(coerceInt32(value.value))) {
|
|
90
|
+
return StatusCodes.BadOutOfRange;
|
|
97
91
|
}
|
|
98
92
|
}
|
|
99
|
-
return
|
|
93
|
+
return StatusCodes.Good;
|
|
100
94
|
}
|
|
101
95
|
clone(options1, optionalFilter, extraInfo) {
|
|
102
|
-
const variable1 =
|
|
96
|
+
const variable1 = UAVariableImpl.prototype.clone.call(this, options1, optionalFilter, extraInfo);
|
|
103
97
|
return promoteToMultiStateValueDiscrete(variable1);
|
|
104
98
|
}
|
|
105
99
|
/**
|
|
@@ -108,7 +102,7 @@ class UAMultiStateValueDiscreteImplBase extends ua_variable_impl_js_1.UAVariable
|
|
|
108
102
|
_isValueInRange(value) {
|
|
109
103
|
// MultiStateValueDiscreteType
|
|
110
104
|
const enumValues = this.enumValues.readValue().value.value;
|
|
111
|
-
const e = enumValues.findIndex((x) =>
|
|
105
|
+
const e = enumValues.findIndex((x) => coerceInt64toInt32(x.value) === value);
|
|
112
106
|
return !(e === -1);
|
|
113
107
|
}
|
|
114
108
|
/**
|
|
@@ -123,7 +117,7 @@ class UAMultiStateValueDiscreteImplBase extends ua_variable_impl_js_1.UAVariable
|
|
|
123
117
|
return enumValueIndex;
|
|
124
118
|
}
|
|
125
119
|
enumValues.forEach((e) => {
|
|
126
|
-
const index =
|
|
120
|
+
const index = coerceInt64toInt32(e.value);
|
|
127
121
|
enumValueIndex[index] = e;
|
|
128
122
|
});
|
|
129
123
|
return enumValueIndex;
|
|
@@ -133,17 +127,17 @@ class UAMultiStateValueDiscreteImplBase extends ua_variable_impl_js_1.UAVariable
|
|
|
133
127
|
* @private
|
|
134
128
|
*/
|
|
135
129
|
_setValue(value, _options) {
|
|
136
|
-
const int32Value =
|
|
130
|
+
const int32Value = coerceInt64toInt32(value);
|
|
137
131
|
// check that value is in bound
|
|
138
132
|
if (!this._isValueInRange(int32Value)) {
|
|
139
133
|
throw new Error(`UAMultiStateValueDiscrete#_setValue out of range ${value}`);
|
|
140
134
|
}
|
|
141
135
|
const dataType = this._getDataType();
|
|
142
|
-
if (dataType ===
|
|
143
|
-
this.setValueFromSource({ dataType, arrayType:
|
|
136
|
+
if (dataType === DataType.Int64 || dataType === DataType.UInt64) {
|
|
137
|
+
this.setValueFromSource({ dataType, arrayType: VariantArrayType.Scalar, value });
|
|
144
138
|
}
|
|
145
139
|
else {
|
|
146
|
-
this.setValueFromSource({ dataType, arrayType:
|
|
140
|
+
this.setValueFromSource({ dataType, arrayType: VariantArrayType.Scalar, value: int32Value });
|
|
147
141
|
}
|
|
148
142
|
}
|
|
149
143
|
/**
|
|
@@ -155,23 +149,23 @@ class UAMultiStateValueDiscreteImplBase extends ua_variable_impl_js_1.UAVariable
|
|
|
155
149
|
if (value === undefined) {
|
|
156
150
|
throw new Error("Unexpected undefined value");
|
|
157
151
|
}
|
|
158
|
-
const valueAsInt32 =
|
|
152
|
+
const valueAsInt32 = coerceInt64toInt32(value);
|
|
159
153
|
let valueAsText1 = "Invalid";
|
|
160
154
|
if (enumValueIndex[valueAsInt32] !== undefined) {
|
|
161
155
|
valueAsText1 = enumValueIndex[valueAsInt32].displayName.text || `Invalid:${value}`;
|
|
162
156
|
}
|
|
163
|
-
const result = new
|
|
164
|
-
dataType:
|
|
165
|
-
value:
|
|
157
|
+
const result = new Variant({
|
|
158
|
+
dataType: DataType.LocalizedText,
|
|
159
|
+
value: coerceLocalizedText(valueAsText1)
|
|
166
160
|
});
|
|
167
161
|
return result;
|
|
168
162
|
}
|
|
169
163
|
_getDataType() {
|
|
170
164
|
if (this.dataType.value === 26 /* Number */) {
|
|
171
|
-
return
|
|
165
|
+
return DataType.UInt32;
|
|
172
166
|
}
|
|
173
|
-
const dataTypeStr =
|
|
174
|
-
return
|
|
167
|
+
const dataTypeStr = DataType[this.dataType.value];
|
|
168
|
+
return DataType[dataTypeStr];
|
|
175
169
|
}
|
|
176
170
|
/**
|
|
177
171
|
*
|
|
@@ -186,24 +180,23 @@ class UAMultiStateValueDiscreteImplBase extends ua_variable_impl_js_1.UAVariable
|
|
|
186
180
|
install_synchronization(this);
|
|
187
181
|
}
|
|
188
182
|
}
|
|
189
|
-
exports.UAMultiStateValueDiscreteImplBase = UAMultiStateValueDiscreteImplBase;
|
|
190
183
|
/** @internal */
|
|
191
184
|
// check-construction-cast: ok - serves both the scalar and the array interface, see above
|
|
192
|
-
|
|
193
|
-
function promoteToMultiStateValueDiscrete(node) {
|
|
194
|
-
if (node instanceof
|
|
185
|
+
export const UAMultiStateValueDiscreteImpl = UAMultiStateValueDiscreteImplBase;
|
|
186
|
+
export function promoteToMultiStateValueDiscrete(node) {
|
|
187
|
+
if (node instanceof UAMultiStateValueDiscreteImpl) {
|
|
195
188
|
return node; // already promoted
|
|
196
189
|
}
|
|
197
|
-
Object.setPrototypeOf(node,
|
|
198
|
-
|
|
190
|
+
Object.setPrototypeOf(node, UAMultiStateValueDiscreteImpl.prototype);
|
|
191
|
+
assert(node instanceof UAMultiStateValueDiscreteImpl, "should now be a State Machine");
|
|
199
192
|
node._post_initialize();
|
|
200
193
|
return node;
|
|
201
194
|
}
|
|
202
|
-
|
|
195
|
+
registerNodePromoter(VariableTypeIds.MultiStateValueDiscreteType, promoteToMultiStateValueDiscrete);
|
|
203
196
|
/** @internal */
|
|
204
|
-
function _addMultiStateValueDiscrete(namespace, options) {
|
|
205
|
-
|
|
206
|
-
|
|
197
|
+
export function _addMultiStateValueDiscrete(namespace, options) {
|
|
198
|
+
assert(Object.hasOwn(options, "enumValues"));
|
|
199
|
+
assert(!Object.hasOwn(options, "ValuePrecision"));
|
|
207
200
|
const addressSpace = namespace.addressSpace;
|
|
208
201
|
const multiStateValueDiscreteType = addressSpace.findVariableType("MultiStateValueDiscreteType");
|
|
209
202
|
if (!multiStateValueDiscreteType) {
|
|
@@ -212,18 +205,18 @@ function _addMultiStateValueDiscrete(namespace, options) {
|
|
|
212
205
|
// todo : if options.typeDefinition is specified, check that type is SubTypeOf MultiStateDiscreteType
|
|
213
206
|
// EnumValueType
|
|
214
207
|
// value: Int64, displayName: LocalizedText, Description: LocalizedText
|
|
215
|
-
const enumValues =
|
|
208
|
+
const enumValues = coerceEnumValues(options.enumValues);
|
|
216
209
|
if (options.value === undefined && enumValues[0]) {
|
|
217
210
|
options.value = enumValues[0].value; // Int64
|
|
218
211
|
}
|
|
219
212
|
// Only DataTypes that can be represented with EnumValues are allowed for Variables of MultiStateValueDiscreteType.
|
|
220
213
|
// These are Integers up to 64 Bits (signed and unsigned).:
|
|
221
|
-
const dataType =
|
|
214
|
+
const dataType = _getBasicDataTypeFromDataTypeNodeId(addressSpace, options.dataType || DataType.UInt32);
|
|
222
215
|
let value;
|
|
223
216
|
if (typeof options.value === "number" ||
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
value = new
|
|
217
|
+
isValidUInt64(options.value) ||
|
|
218
|
+
isValidInt64(options.value)) {
|
|
219
|
+
value = new Variant({
|
|
227
220
|
dataType,
|
|
228
221
|
value: options.value
|
|
229
222
|
});
|
|
@@ -242,7 +235,7 @@ function _addMultiStateValueDiscrete(namespace, options) {
|
|
|
242
235
|
valueRank: -1 // -1 : Scalar
|
|
243
236
|
};
|
|
244
237
|
const variable = namespace.addVariable(cloned_options);
|
|
245
|
-
|
|
238
|
+
add_dataItem_stuff(variable, options);
|
|
246
239
|
namespace.addVariable({
|
|
247
240
|
accessLevel: "CurrentRead",
|
|
248
241
|
browseName: { name: "EnumValues", namespaceIndex: 0 },
|
|
@@ -253,16 +246,16 @@ function _addMultiStateValueDiscrete(namespace, options) {
|
|
|
253
246
|
propertyOf: variable,
|
|
254
247
|
typeDefinition: "PropertyType",
|
|
255
248
|
userAccessLevel: "CurrentRead",
|
|
256
|
-
value: new
|
|
257
|
-
arrayType:
|
|
258
|
-
dataType:
|
|
249
|
+
value: new Variant({
|
|
250
|
+
arrayType: VariantArrayType.Array,
|
|
251
|
+
dataType: DataType.ExtensionObject,
|
|
259
252
|
value: enumValues
|
|
260
253
|
})
|
|
261
254
|
});
|
|
262
255
|
namespace.addVariable({
|
|
263
256
|
accessLevel: "CurrentRead",
|
|
264
257
|
browseName: { name: "ValueAsText", namespaceIndex: 0 },
|
|
265
|
-
dataType:
|
|
258
|
+
dataType: DataType.LocalizedText,
|
|
266
259
|
minimumSamplingInterval: 0,
|
|
267
260
|
modellingRule: options.modellingRule ? "Mandatory" : undefined,
|
|
268
261
|
propertyOf: variable,
|
|
@@ -275,29 +268,29 @@ function _addMultiStateValueDiscrete(namespace, options) {
|
|
|
275
268
|
// install additional helpers methods
|
|
276
269
|
variable.install_extra_properties();
|
|
277
270
|
promoteToMultiStateValueDiscrete(variable);
|
|
278
|
-
|
|
279
|
-
|
|
271
|
+
assert(variable.enumValues.browseName.toString() === "EnumValues");
|
|
272
|
+
assert(variable.valueAsText.browseName.toString() === "ValueAsText");
|
|
280
273
|
return variable;
|
|
281
274
|
}
|
|
282
275
|
const validBasicNumericDataTypes = [
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
276
|
+
DataType.UInt64,
|
|
277
|
+
DataType.Int64,
|
|
278
|
+
DataType.UInt32,
|
|
279
|
+
DataType.Int32,
|
|
280
|
+
DataType.UInt16,
|
|
281
|
+
DataType.Int16,
|
|
282
|
+
DataType.Byte,
|
|
283
|
+
DataType.Byte,
|
|
284
|
+
DataType.SByte,
|
|
292
285
|
26 /* Number (abstract)*/,
|
|
293
286
|
27 /* Integer (abstract)*/,
|
|
294
287
|
28 /* UInteger (abstract)*/
|
|
295
288
|
];
|
|
296
|
-
function validateIsNumericDataType(dataTypeValue) {
|
|
289
|
+
export function validateIsNumericDataType(dataTypeValue) {
|
|
297
290
|
if (typeof dataTypeValue !== "number" || validBasicNumericDataTypes.indexOf(dataTypeValue) < 0) {
|
|
298
291
|
throw new Error(`Invalid DataType in UAMultiStateValueDiscrete => ${dataTypeValue}`);
|
|
299
292
|
}
|
|
300
293
|
}
|
|
301
294
|
/** @deprecated: use validateIsNumericDataType instead */
|
|
302
|
-
|
|
295
|
+
export const validateDataType = validateIsNumericDataType;
|
|
303
296
|
//# sourceMappingURL=ua_multistate_value_discrete_impl.js.map
|