node-opcua-address-space 2.54.0 → 2.57.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/LICENSE +20 -20
- package/dist/source/address_space_ts.js.map +1 -1
- package/dist/source/continuation_points/continuation_point_manager.d.ts +27 -16
- package/dist/source/continuation_points/continuation_point_manager.js +141 -48
- package/dist/source/continuation_points/continuation_point_manager.js.map +1 -1
- package/dist/source/helpers/adjust_browse_direction.js.map +1 -1
- package/dist/source/helpers/call_helpers.js.map +1 -1
- package/dist/source/helpers/check_event_clause.js.map +1 -1
- package/dist/source/helpers/coerce_enum_value.js.map +1 -1
- package/dist/source/helpers/ensure_secure_access.js +0 -13
- package/dist/source/helpers/ensure_secure_access.js.map +1 -1
- package/dist/source/helpers/resolve_opaque_on_address_space.js.map +1 -1
- package/dist/source/loader/load_nodeset2.js +30 -6
- package/dist/source/loader/load_nodeset2.js.map +1 -1
- package/dist/source/loader/namespace_post_step.js.map +1 -1
- package/dist/source/loader/register_node_promoter.js.map +1 -1
- package/dist/source/namespace_machine_state.d.ts +1 -1
- package/dist/source/pseudo_session.js +23 -24
- package/dist/source/pseudo_session.js.map +1 -1
- package/dist/source/session_context.js.map +1 -1
- package/dist/source/set_namespace_meta_data.js.map +1 -1
- package/dist/src/address_space.d.ts +7 -8
- package/dist/src/address_space.js +2 -2
- package/dist/src/address_space.js.map +1 -1
- package/dist/src/address_space_private.d.ts +4 -5
- package/dist/src/alarms_and_conditions/check_where_clause.js +1 -1
- package/dist/src/alarms_and_conditions/check_where_clause.js.map +1 -1
- package/dist/src/alarms_and_conditions/condition.js.map +1 -1
- package/dist/src/alarms_and_conditions/extract_event_fields.js.map +1 -1
- package/dist/src/alarms_and_conditions/ua_acknowledgeable_condition_impl.js.map +1 -1
- package/dist/src/alarms_and_conditions/ua_base_event_impl.js.map +1 -1
- package/dist/src/alarms_and_conditions/ua_condition_impl.js.map +1 -1
- package/dist/src/alarms_and_conditions/ua_discrete_alarm_impl.js.map +1 -1
- package/dist/src/alarms_and_conditions/ua_exclusive_level_alarm_impl.js.map +1 -1
- package/dist/src/alarms_and_conditions/ua_limit_alarm_impl.js.map +1 -1
- package/dist/src/alarms_and_conditions/ua_non_exclusive_limit_alarm_impl.js.map +1 -1
- package/dist/src/alarms_and_conditions/ua_off_normal_alarm_impl.js.map +1 -1
- package/dist/src/alarms_and_conditions/ua_system_off_normal_alarm_impl.js.map +1 -1
- package/dist/src/base_node_impl.js.map +1 -1
- package/dist/src/data_access/add_dataItem_stuff.js.map +1 -1
- package/dist/src/data_access/check_variant_compatibility_ua_analog_item.js.map +1 -1
- package/dist/src/data_access/ua_multistate_discrete_impl.js.map +1 -1
- package/dist/src/event_data.js.map +1 -1
- package/dist/src/extension_object_array_node.js.map +1 -1
- package/dist/src/historical_access/address_space_historical_data_node.js +28 -59
- package/dist/src/historical_access/address_space_historical_data_node.js.map +1 -1
- package/dist/src/namespace_impl.d.ts +2 -2
- package/dist/src/namespace_impl.js +6 -6
- package/dist/src/namespace_impl.js.map +1 -1
- package/dist/src/nodeid_manager.js +1 -4
- package/dist/src/nodeid_manager.js.map +1 -1
- package/dist/src/nodeset_tools/nodeset_to_xml.js +1 -1
- package/dist/src/nodeset_tools/nodeset_to_xml.js.map +1 -1
- package/dist/src/nodeset_tools/typedictionary_to_xml.d.ts +1 -1
- package/dist/src/nodeset_tools/typedictionary_to_xml.js +3 -2
- package/dist/src/nodeset_tools/typedictionary_to_xml.js.map +1 -1
- package/dist/src/reference_impl.js +3 -1
- package/dist/src/reference_impl.js.map +1 -1
- package/dist/src/state_machine/finite_state_machine.js.map +1 -1
- package/dist/src/state_machine/ua_shelving_state_machine_ex.js.map +1 -1
- package/dist/src/state_machine/ua_two_state_variable.js.map +1 -1
- package/dist/src/tool_isSupertypeOf.js.map +1 -1
- package/dist/src/ua_method_impl.d.ts +1 -1
- package/dist/src/ua_method_impl.js.map +1 -1
- package/dist/src/ua_object_impl.d.ts +10 -6
- package/dist/src/ua_object_impl.js +1 -1
- package/dist/src/ua_object_impl.js.map +1 -1
- package/dist/src/ua_object_type_impl.js.map +1 -1
- package/dist/src/ua_reference_type_impl.js +3 -1
- package/dist/src/ua_reference_type_impl.js.map +1 -1
- package/dist/src/ua_variable_impl.d.ts +8 -7
- package/dist/src/ua_variable_impl.js +6 -10
- package/dist/src/ua_variable_impl.js.map +1 -1
- package/dist/src/ua_variable_type_impl.js.map +1 -1
- package/dist/src/ua_view_impl.js.map +1 -1
- package/distHelpers/alarms_and_conditions_demo.js.map +1 -1
- package/distHelpers/boiler_system.d.ts +1 -1
- package/distHelpers/boiler_system.js +1 -2
- package/distHelpers/boiler_system.js.map +1 -1
- package/distHelpers/create_minimalist_address_space_nodeset.js +1 -0
- package/distHelpers/create_minimalist_address_space_nodeset.js.map +1 -1
- package/distHelpers/date_utils.d.ts +3 -0
- package/distHelpers/date_utils.js +10 -0
- package/distHelpers/date_utils.js.map +1 -0
- package/distHelpers/get_mini_address_space.js.map +1 -1
- package/distHelpers/index.d.ts +2 -0
- package/distHelpers/index.js +2 -0
- package/distHelpers/index.js.map +1 -1
- package/distHelpers/mock_session.d.ts +14 -0
- package/distHelpers/mock_session.js +26 -0
- package/distHelpers/mock_session.js.map +1 -0
- package/generate.js +1 -1
- package/nodeJS.d.ts +1 -1
- package/package.json +39 -40
- package/source/address_space_ts.ts +0 -3
- package/source/continuation_points/continuation_point_manager.ts +178 -64
- package/source/helpers/adjust_browse_direction.ts +3 -3
- package/source/helpers/argument_list.ts +1 -1
- package/source/helpers/call_helpers.ts +0 -1
- package/source/helpers/check_event_clause.ts +2 -9
- package/source/helpers/coerce_enum_value.ts +3 -3
- package/source/helpers/ensure_secure_access.ts +1 -13
- package/source/helpers/resolve_opaque_on_address_space.ts +4 -1
- package/source/interfaces/alarms_and_conditions/condition_info_i.ts +13 -13
- package/source/interfaces/data_access/ua_multistate_value_discrete_ex.ts +0 -1
- package/source/interfaces/data_access/ua_y_array_item_ex.ts +4 -2
- package/source/interfaces/state_machine/ua_exclusive_limit_state_machine_type_ex.ts +5 -1
- package/source/interfaces/state_machine/ua_state_machine_type.ts +2 -2
- package/source/loader/load_nodeset2.ts +41 -9
- package/source/loader/namespace_post_step.ts +1 -2
- package/source/loader/register_node_promoter.ts +4 -1
- package/source/namespace.ts +4 -6
- package/source/namespace_machine_state.ts +1 -2
- package/source/pseudo_session.ts +37 -29
- package/source/session_context.ts +1 -8
- package/source/set_namespace_meta_data.ts +21 -15
- package/source/xml_writer.ts +0 -1
- package/source_nodejs/index.ts +1 -1
- package/src/address_space.ts +17 -16
- package/src/address_space_private.ts +7 -12
- package/src/alarms_and_conditions/check_where_clause.ts +21 -22
- package/src/alarms_and_conditions/condition.ts +0 -1
- package/src/alarms_and_conditions/extract_event_fields.ts +0 -1
- package/src/alarms_and_conditions/ua_acknowledgeable_condition_impl.ts +7 -4
- package/src/alarms_and_conditions/ua_base_event_impl.ts +11 -15
- package/src/alarms_and_conditions/ua_condition_impl.ts +22 -31
- package/src/alarms_and_conditions/ua_discrete_alarm_impl.ts +39 -33
- package/src/alarms_and_conditions/ua_exclusive_deviation_alarm_impl.ts +2 -2
- package/src/alarms_and_conditions/ua_exclusive_level_alarm_impl.ts +4 -5
- package/src/alarms_and_conditions/ua_limit_alarm_impl.ts +16 -16
- package/src/alarms_and_conditions/ua_non_exclusive_limit_alarm_impl.ts +8 -8
- package/src/alarms_and_conditions/ua_off_normal_alarm_impl.ts +9 -10
- package/src/alarms_and_conditions/ua_system_off_normal_alarm_impl.ts +2 -4
- package/src/apply_condition_refresh.ts +2 -2
- package/src/base_node_impl.ts +2 -2
- package/src/data_access/add_dataItem_stuff.ts +4 -4
- package/src/data_access/check_variant_compatibility_ua_analog_item.ts +12 -15
- package/src/data_access/ua_multistate_discrete_impl.ts +6 -3
- package/src/data_access/ua_multistate_value_discrete.ts +1 -1
- package/src/event_data.ts +1 -7
- package/src/extension_object_array_node.ts +4 -10
- package/src/historical_access/address_space_historical_data_node.ts +39 -63
- package/src/namespace_impl.ts +5 -5
- package/src/namespace_private.ts +1 -1
- package/src/nodeid_manager.ts +2 -5
- package/src/nodeset_tools/nodeset_to_xml.ts +5 -5
- package/src/nodeset_tools/typedictionary_to_xml.ts +7 -5
- package/src/reference_impl.ts +4 -2
- package/src/state_machine/finite_state_machine.ts +426 -428
- package/src/state_machine/ua_shelving_state_machine_ex.ts +13 -4
- package/src/state_machine/ua_two_state_variable.ts +5 -7
- package/src/tool_isSupertypeOf.ts +2 -6
- package/src/ua_condition_type.ts +0 -1
- package/src/ua_method_impl.ts +18 -8
- package/src/ua_object_impl.ts +13 -8
- package/src/ua_object_type_impl.ts +7 -4
- package/src/ua_reference_type_impl.ts +6 -12
- package/src/ua_variable_impl.ts +11 -15
- package/src/ua_variable_type_impl.ts +2 -2
- package/src/ua_view_impl.ts +3 -6
- package/testHelpers.d.ts +1 -1
- package/test_helpers/add_event_generator_object.ts +2 -2
- package/test_helpers/alarms_and_conditions_demo.ts +9 -8
- package/test_helpers/assertHasMatchingReference.ts +43 -43
- package/test_helpers/boiler_system.ts +610 -618
- package/test_helpers/create_minimalist_address_space_nodeset.ts +13 -13
- package/test_helpers/date_utils.ts +5 -0
- package/test_helpers/dump_statemachine.ts +2 -2
- package/test_helpers/get_address_space_fixture.ts +30 -30
- package/test_helpers/get_mini_address_space.ts +42 -42
- package/test_helpers/index.ts +13 -11
- package/test_helpers/mock_session.ts +34 -0
- package/test_helpers/test_fixtures/dataType_in_separateNamespace.xml +150 -150
- package/test_helpers/test_fixtures/dataType_in_separateNamespace_basic.xml +57 -57
- package/test_helpers/test_fixtures/dataType_in_separateNamespace_mix.xml +135 -135
- package/test_helpers/test_fixtures/dataType_issue.xml +80 -0
- package/test_helpers/test_fixtures/dataType_withEnumeration.xml +82 -82
- package/test_helpers/test_fixtures/dataType_with_isOptionSet.xml +194 -194
- package/test_helpers/test_fixtures/dataType_with_union.xml +1 -1
- package/test_helpers/test_fixtures/datatype_as_per_1.04.xml +1 -2
- package/test_helpers/test_fixtures/fixture_empty_nodeset2.xml +106 -106
- package/test_helpers/test_fixtures/fixture_simple_statemachine_nodeset2.xml +1303 -1303
- package/test_helpers/test_fixtures/fixuture_nodeset_objects_with_some_methods.xml +362 -362
- package/test_helpers/test_fixtures/issue_846.xml +3172 -3172
- package/test_helpers/test_fixtures/issue_899_variable_with_nodeid_value.xml +32 -32
- package/test_helpers/test_fixtures/mini.nodeset.withVariousVariables.xml +194 -194
- package/test_helpers/test_fixtures/minimalist_nodeset_with_models.xml +8 -8
- package/test_helpers/test_fixtures/minimalist_nodeset_with_models_more_complex.xml +16 -16
- package/test_helpers/test_fixtures/nodeset_with_analog_items.xml +45 -45
- package/.nyc_output/0d52ec22-23b7-4df1-9695-d5cf1dc6a6a7.json +0 -1
- package/.nyc_output/processinfo/0d52ec22-23b7-4df1-9695-d5cf1dc6a6a7.json +0 -1
- package/.nyc_output/processinfo/index.json +0 -1
- package/.vscode/settings.json +0 -7
- package/dist/source/interfaces/alarms_and_conditions/ua_condition_base_i.d.ts +0 -23
- package/dist/source/interfaces/alarms_and_conditions/ua_condition_base_i.js +0 -3
- package/dist/source/interfaces/alarms_and_conditions/ua_condition_base_i.js.map +0 -1
- package/dist/source/interfaces/data_access/ua_discrete_item.d.ts +0 -6
- package/dist/source/interfaces/data_access/ua_discrete_item.js +0 -3
- package/dist/source/interfaces/data_access/ua_discrete_item.js.map +0 -1
- package/dist/source/interfaces/data_access/ua_multistate_discrete.d.ts +0 -25
- package/dist/source/interfaces/data_access/ua_multistate_discrete.js +0 -3
- package/dist/source/interfaces/data_access/ua_multistate_discrete.js.map +0 -1
- package/dist/source/interfaces/data_access/ua_multistate_value_discrete.d.ts +0 -27
- package/dist/source/interfaces/data_access/ua_multistate_value_discrete.js +0 -3
- package/dist/source/interfaces/data_access/ua_multistate_value_discrete.js.map +0 -1
- package/dist/source/interfaces/data_access/ua_two_state_discrete.d.ts +0 -17
- package/dist/source/interfaces/data_access/ua_two_state_discrete.js +0 -3
- package/dist/source/interfaces/data_access/ua_two_state_discrete.js.map +0 -1
- package/dist/source/interfaces/data_access/ua_y_array_item.d.ts +0 -19
- package/dist/source/interfaces/data_access/ua_y_array_item.js +0 -3
- package/dist/source/interfaces/data_access/ua_y_array_item.js.map +0 -1
- package/dist/source/interfaces/state_machine/exclusive_limit_state_machine.d.ts +0 -11
- package/dist/source/interfaces/state_machine/exclusive_limit_state_machine.js +0 -3
- package/dist/source/interfaces/state_machine/exclusive_limit_state_machine.js.map +0 -1
- package/dist/source/interfaces/state_machine/finite_state_machine.d.ts +0 -70
- package/dist/source/interfaces/state_machine/finite_state_machine.js +0 -3
- package/dist/source/interfaces/state_machine/finite_state_machine.js.map +0 -1
- package/dist/source/interfaces/state_machine/program_finite_state_machine.d.ts +0 -74
- package/dist/source/interfaces/state_machine/program_finite_state_machine.js +0 -3
- package/dist/source/interfaces/state_machine/program_finite_state_machine.js.map +0 -1
- package/dist/source/interfaces/state_machine/state_machine.d.ts +0 -342
- package/dist/source/interfaces/state_machine/state_machine.js +0 -3
- package/dist/source/interfaces/state_machine/state_machine.js.map +0 -1
- package/dist/source/interfaces/state_machine/ua_finite_state_variable.d.ts +0 -18
- package/dist/source/interfaces/state_machine/ua_finite_state_variable.js +0 -3
- package/dist/source/interfaces/state_machine/ua_finite_state_variable.js.map +0 -1
- package/dist/source/interfaces/state_machine/ua_state_variable.d.ts +0 -29
- package/dist/source/interfaces/state_machine/ua_state_variable.js +0 -3
- package/dist/source/interfaces/state_machine/ua_state_variable.js.map +0 -1
- package/dist/source/interfaces/state_machine/ua_two_state_variable.d.ts +0 -26
- package/dist/source/interfaces/state_machine/ua_two_state_variable.js +0 -3
- package/dist/source/interfaces/state_machine/ua_two_state_variable.js.map +0 -1
- package/dist/source/interfaces/subscription_diagnostics_variable.d.ts +0 -41
- package/dist/source/interfaces/subscription_diagnostics_variable.js +0 -3
- package/dist/source/interfaces/subscription_diagnostics_variable.js.map +0 -1
- package/dist/source/ua_namespace_meta_data_type.d.ts +0 -71
- package/dist/source/ua_namespace_meta_data_type.js +0 -3
- package/dist/source/ua_namespace_meta_data_type.js.map +0 -1
- package/dist/src/alarms_and_conditions/base_event_type.d.ts +0 -26
- package/dist/src/alarms_and_conditions/base_event_type.js +0 -41
- package/dist/src/alarms_and_conditions/base_event_type.js.map +0 -1
- package/dist/src/alarms_and_conditions/shelving_state_machine.d.ts +0 -22
- package/dist/src/alarms_and_conditions/shelving_state_machine.js +0 -241
- package/dist/src/alarms_and_conditions/shelving_state_machine.js.map +0 -1
- package/dist/src/alarms_and_conditions/trip_alarm.d.ts +0 -16
- package/dist/src/alarms_and_conditions/trip_alarm.js +0 -21
- package/dist/src/alarms_and_conditions/trip_alarm.js.map +0 -1
- package/dist/src/alarms_and_conditions/ua_acknowledgeable_condition_base.d.ts +0 -54
- package/dist/src/alarms_and_conditions/ua_acknowledgeable_condition_base.js +0 -255
- package/dist/src/alarms_and_conditions/ua_acknowledgeable_condition_base.js.map +0 -1
- package/dist/src/alarms_and_conditions/ua_alarm_condition_base.d.ts +0 -138
- package/dist/src/alarms_and_conditions/ua_alarm_condition_base.js +0 -460
- package/dist/src/alarms_and_conditions/ua_alarm_condition_base.js.map +0 -1
- package/dist/src/alarms_and_conditions/ua_certificate_expiration_alarm.d.ts +0 -35
- package/dist/src/alarms_and_conditions/ua_certificate_expiration_alarm.js +0 -32
- package/dist/src/alarms_and_conditions/ua_certificate_expiration_alarm.js.map +0 -1
- package/dist/src/alarms_and_conditions/ua_condition_base.d.ts +0 -191
- package/dist/src/alarms_and_conditions/ua_condition_base.js +0 -1029
- package/dist/src/alarms_and_conditions/ua_condition_base.js.map +0 -1
- package/dist/src/alarms_and_conditions/ua_discrete_alarm.d.ts +0 -11
- package/dist/src/alarms_and_conditions/ua_discrete_alarm.js +0 -58
- package/dist/src/alarms_and_conditions/ua_discrete_alarm.js.map +0 -1
- package/dist/src/alarms_and_conditions/ua_exclusive_deviation_alarm.d.ts +0 -24
- package/dist/src/alarms_and_conditions/ua_exclusive_deviation_alarm.js +0 -59
- package/dist/src/alarms_and_conditions/ua_exclusive_deviation_alarm.js.map +0 -1
- package/dist/src/alarms_and_conditions/ua_exclusive_level_alarm.d.ts +0 -14
- package/dist/src/alarms_and_conditions/ua_exclusive_level_alarm.js +0 -17
- package/dist/src/alarms_and_conditions/ua_exclusive_level_alarm.js.map +0 -1
- package/dist/src/alarms_and_conditions/ua_exclusive_limit_alarm.d.ts +0 -22
- package/dist/src/alarms_and_conditions/ua_exclusive_limit_alarm.js +0 -87
- package/dist/src/alarms_and_conditions/ua_exclusive_limit_alarm.js.map +0 -1
- package/dist/src/alarms_and_conditions/ua_exclusive_rate_of_change_alarm.d.ts +0 -6
- package/dist/src/alarms_and_conditions/ua_exclusive_rate_of_change_alarm.js +0 -11
- package/dist/src/alarms_and_conditions/ua_exclusive_rate_of_change_alarm.js.map +0 -1
- package/dist/src/alarms_and_conditions/ua_limit_alarm.d.ts +0 -76
- package/dist/src/alarms_and_conditions/ua_limit_alarm.js +0 -237
- package/dist/src/alarms_and_conditions/ua_limit_alarm.js.map +0 -1
- package/dist/src/alarms_and_conditions/ua_non_exclusive_deviation_alarm.d.ts +0 -27
- package/dist/src/alarms_and_conditions/ua_non_exclusive_deviation_alarm.js +0 -62
- package/dist/src/alarms_and_conditions/ua_non_exclusive_deviation_alarm.js.map +0 -1
- package/dist/src/alarms_and_conditions/ua_non_exclusive_limit_alarm.d.ts +0 -49
- package/dist/src/alarms_and_conditions/ua_non_exclusive_limit_alarm.js +0 -176
- package/dist/src/alarms_and_conditions/ua_non_exclusive_limit_alarm.js.map +0 -1
- package/dist/src/alarms_and_conditions/ua_off_normal_alarm.d.ts +0 -47
- package/dist/src/alarms_and_conditions/ua_off_normal_alarm.js +0 -151
- package/dist/src/alarms_and_conditions/ua_off_normal_alarm.js.map +0 -1
- package/dist/src/alarms_and_conditions/ua_system_off_normal_alarm.d.ts +0 -16
- package/dist/src/alarms_and_conditions/ua_system_off_normal_alarm.js +0 -18
- package/dist/src/alarms_and_conditions/ua_system_off_normal_alarm.js.map +0 -1
- package/dist/src/base_node.d.ts +0 -279
- package/dist/src/base_node.js +0 -1364
- package/dist/src/base_node.js.map +0 -1
- package/dist/src/data_access/ua_analog_item.d.ts +0 -13
- package/dist/src/data_access/ua_analog_item.js +0 -37
- package/dist/src/data_access/ua_analog_item.js.map +0 -1
- package/dist/src/data_access/ua_data_item.d.ts +0 -16
- package/dist/src/data_access/ua_data_item.js +0 -66
- package/dist/src/data_access/ua_data_item.js.map +0 -1
- package/dist/src/data_access/ua_multistate_discrete.d.ts +0 -23
- package/dist/src/data_access/ua_multistate_discrete.js +0 -131
- package/dist/src/data_access/ua_multistate_discrete.js.map +0 -1
- package/dist/src/namespace.d.ts +0 -479
- package/dist/src/namespace.js +0 -1774
- package/dist/src/namespace.js.map +0 -1
- package/dist/src/reference.d.ts +0 -43
- package/dist/src/reference.js +0 -138
- package/dist/src/reference.js.map +0 -1
- package/dist/src/session_context.d.ts +0 -4
- package/dist/src/session_context.js +0 -9
- package/dist/src/session_context.js.map +0 -1
- package/dist/src/ua_data_type.d.ts +0 -83
- package/dist/src/ua_data_type.js +0 -289
- package/dist/src/ua_data_type.js.map +0 -1
- package/dist/src/ua_method.d.ts +0 -42
- package/dist/src/ua_method.js +0 -204
- package/dist/src/ua_method.js.map +0 -1
- package/dist/src/ua_object.d.ts +0 -29
- package/dist/src/ua_object.js +0 -153
- package/dist/src/ua_object.js.map +0 -1
- package/dist/src/ua_object_type.d.ts +0 -49
- package/dist/src/ua_object_type.js +0 -124
- package/dist/src/ua_object_type.js.map +0 -1
- package/dist/src/ua_reference_type.d.ts +0 -42
- package/dist/src/ua_reference_type.js +0 -138
- package/dist/src/ua_reference_type.js.map +0 -1
- package/dist/src/ua_variable.d.ts +0 -346
- package/dist/src/ua_variable.js +0 -1721
- package/dist/src/ua_variable.js.map +0 -1
- package/dist/src/ua_variable_type.d.ts +0 -54
- package/dist/src/ua_variable_type.js +0 -555
- package/dist/src/ua_variable_type.js.map +0 -1
- package/dist/src/ua_view.d.ts +0 -16
- package/dist/src/ua_view.js +0 -42
- package/dist/src/ua_view.js.map +0 -1
- package/src/alarms_and_conditions/debug.log +0 -1
- package/test_helpers/test_fixtures/issue_849.xml +0 -3169
package/LICENSE
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
The MIT License (MIT)
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2014-2021 Etienne Rossignon
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
6
|
-
this software and associated documentation files (the "Software"), to deal in
|
|
7
|
-
the Software without restriction, including without limitation the rights to
|
|
8
|
-
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
9
|
-
the Software, and to permit persons to whom the Software is furnished to do so,
|
|
10
|
-
subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
17
|
-
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
18
|
-
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
19
|
-
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
20
|
-
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2014-2021 Etienne Rossignon
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
6
|
+
this software and associated documentation files (the "Software"), to deal in
|
|
7
|
+
the Software without restriction, including without limitation the rights to
|
|
8
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
9
|
+
the Software, and to permit persons to whom the Software is furnished to do so,
|
|
10
|
+
subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
17
|
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
18
|
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
19
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
20
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"address_space_ts.js","sourceRoot":"","sources":["../../source/address_space_ts.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"address_space_ts.js","sourceRoot":"","sources":["../../source/address_space_ts.ts"],"names":[],"mappings":";;;AAwDA,IAAY,iBAGX;AAHD,WAAY,iBAAiB;IACzB,6EAAc,CAAA;IACd,kBAAkB;AACtB,CAAC,EAHW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAG5B;AAsFD,MAAa,YAAY;IAOrB;QACI,WAAW;IACf,CAAC;IANM,MAAM,CAAC,MAAM;QAChB,OAAO,IAAI,YAAY,EAAkB,CAAC;IAC9C,CAAC;CAKJ;AAVD,oCAUC"}
|
|
@@ -1,21 +1,32 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
references?: ReferenceDescription[];
|
|
7
|
-
statusCode: StatusCode;
|
|
8
|
-
}
|
|
9
|
-
export declare class ContinuationPointManager {
|
|
10
|
-
private readonly _map;
|
|
1
|
+
import { ReferenceDescription } from "node-opcua-types";
|
|
2
|
+
import { IContinuationPointManager, IContinuationPointInfo, ContinuationData } from "node-opcua-address-space-base";
|
|
3
|
+
import { DataValue } from "node-opcua-data-value";
|
|
4
|
+
export declare class ContinuationPointManager implements IContinuationPointManager {
|
|
5
|
+
private _map;
|
|
11
6
|
constructor();
|
|
12
7
|
/**
|
|
13
|
-
* returns true if the current number of active continuation point has
|
|
14
|
-
* specified in
|
|
8
|
+
* returns true if the current number of active continuation point has reached the limit
|
|
9
|
+
* specified in maxContinuationPoint
|
|
15
10
|
* @param maxBrowseContinuationPoint
|
|
16
11
|
*/
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
12
|
+
hasReachedMaximum(maxContinuationPoint: number): boolean;
|
|
13
|
+
clearContinuationPoints(): void;
|
|
14
|
+
registerHistoryReadRaw(numValuesPerNode: number, dataValues: DataValue[], continuationData: ContinuationData): IContinuationPointInfo<DataValue>;
|
|
15
|
+
getNextHistoryReadRaw(numValues: number, continuationData: ContinuationData): IContinuationPointInfo<DataValue>;
|
|
16
|
+
registerReferences(maxElements: number, values: ReferenceDescription[], continuationData: ContinuationData): IContinuationPointInfo<ReferenceDescription>;
|
|
17
|
+
/**
|
|
18
|
+
* - releaseContinuationPoints = TRUE
|
|
19
|
+
*
|
|
20
|
+
* passed continuationPoints shall be reset to free resources in
|
|
21
|
+
* the Server. The continuation points are released and the results
|
|
22
|
+
* and diagnosticInfos arrays are empty.
|
|
23
|
+
*
|
|
24
|
+
* - releaseContinuationPoints = FALSE
|
|
25
|
+
*
|
|
26
|
+
* passed continuationPoints shall be used to get the next set of
|
|
27
|
+
* browse information
|
|
28
|
+
*/
|
|
29
|
+
getNextReferences(numValues: number, continuationData: ContinuationData): IContinuationPointInfo<ReferenceDescription>;
|
|
30
|
+
private _register;
|
|
31
|
+
private _getNext;
|
|
21
32
|
}
|
|
@@ -4,8 +4,63 @@ exports.ContinuationPointManager = void 0;
|
|
|
4
4
|
/**
|
|
5
5
|
* @module node-opcua-server
|
|
6
6
|
*/
|
|
7
|
-
const node_opcua_assert_1 = require("node-opcua-assert");
|
|
8
7
|
const node_opcua_status_code_1 = require("node-opcua-status-code");
|
|
8
|
+
/**
|
|
9
|
+
* from https://reference.opcfoundation.org/v104/Core/docs/Part4/7.6/
|
|
10
|
+
*
|
|
11
|
+
* A ContinuationPoint is used to pause a Browse, QueryFirst or HistoryRead operation and allow it to be restarted later by calling BrowseNext,
|
|
12
|
+
* QueryNext or HistoryRead.
|
|
13
|
+
* - Operations are paused when the number of results found exceeds the limits set by either the Client or the Server.
|
|
14
|
+
* - The Client specifies the maximum number of results per operation in the request message.
|
|
15
|
+
* - A Server shall not return more than this number of results but it may return fewer results.
|
|
16
|
+
* - The Server allocates a ContinuationPoint if there are more results to return.
|
|
17
|
+
* - Servers shall support at least one ContinuationPoint per Session.
|
|
18
|
+
* - Servers specify a maximum number of ContinuationPoints per Session in the ServerCapabilities Object defined in OPC 10000-5.
|
|
19
|
+
* - ContinuationPoints remain active until
|
|
20
|
+
* a/ the Client retrieves the remaining results,
|
|
21
|
+
* b/ or, the Client releases the ContinuationPoint
|
|
22
|
+
* c/ or the Session is closed.
|
|
23
|
+
* - A Server shall automatically free ContinuationPoints from prior requests from a Session if they are needed to process a new request
|
|
24
|
+
* from this Session.
|
|
25
|
+
* - The Server returns a Bad_ContinuationPointInvalid error if a Client tries to use a ContinuationPoint that has been released.
|
|
26
|
+
* - A Client can avoid this situation by completing paused operations before starting new operations.
|
|
27
|
+
* - Requests will often specify multiple operations that may or may not require a ContinuationPoint.
|
|
28
|
+
* - A Server shall process the operations until it uses the maximum number of continuation points in this response.
|
|
29
|
+
* Once that happens the Server shall return a Bad_NoContinuationPoints error for any remaining operations. A Client can avoid
|
|
30
|
+
* this situation by sending requests with a number of operations that do not exceed the maximum number of ContinuationPoints
|
|
31
|
+
* per Session defined for the Service in the ServerCapabilities Object defined in OPC 10000-5.
|
|
32
|
+
* A Client restarts an operation by passing the ContinuationPoint back to the Server. Server should always be able to reuse the ContinuationPoint
|
|
33
|
+
* provided so Servers shall never return Bad_NoContinuationPoints error when continuing a previously halted operation.
|
|
34
|
+
* A ContinuationPoint is a subtype of the ByteString data type.
|
|
35
|
+
*
|
|
36
|
+
*
|
|
37
|
+
* for historical access: https://reference.opcfoundation.org/v104/Core/docs/Part11/6.3/
|
|
38
|
+
*
|
|
39
|
+
* The continuationPoint parameter in the HistoryRead Service is used to mark a point from which to continue
|
|
40
|
+
* the read if not all values could be returned in one response. The value is opaque for the Client and is
|
|
41
|
+
* only used to maintain the state information for the Server to continue from. *
|
|
42
|
+
*
|
|
43
|
+
* For HistoricalDataNode requests, a Server may use the timestamp of the last returned data item if the timestamp
|
|
44
|
+
* is unique. This can reduce the need in the Server to store state information for the continuation point.
|
|
45
|
+
* The Client specifies the maximum number of results per operation in the request Message. A Server shall
|
|
46
|
+
* not return more than this number of results but it may return fewer results. The Server allocates a
|
|
47
|
+
* ContinuationPoint if there are more results to return. The Server may return fewer results due to buffer issues
|
|
48
|
+
* or other internal constraints. It may also be required to return a continuationPoint due to HistoryRead
|
|
49
|
+
* parameter constraints. If a request is taking a long time to calculate and is approaching the timeout time, the
|
|
50
|
+
* Server may return partial results with a continuation point. This may be done if the calculation is going to
|
|
51
|
+
* take more time than the Client timeout. In some cases it may take longer than the Client timeout to calculate
|
|
52
|
+
* even one result. Then the Server may return zero results with a continuation point that allows the Server to
|
|
53
|
+
* resume the calculation on the next Client read call. For additional discussions regarding ContinuationPoints
|
|
54
|
+
* and HistoryRead please see the individual extensible HistoryReadDetails parameter in 6.4.
|
|
55
|
+
* If the Client specifies a ContinuationPoint, then the HistoryReadDetails parameter and the TimestampsToReturn
|
|
56
|
+
* parameter are ignored, because it does not make sense to request different parameters when continuing from a
|
|
57
|
+
* previous call. It is permissible to change the dataEncoding parameter with each request.
|
|
58
|
+
* If the Client specifies a ContinuationPoint that is no longer valid, then the Server shall return a
|
|
59
|
+
* Bad_ContinuationPointInvalid error.
|
|
60
|
+
* If the releaseContinuationPoints parameter is set in the request the Server shall not return any data and shall
|
|
61
|
+
* release all ContinuationPoints passed in the request. If the ContinuationPoint for an operation is missing or
|
|
62
|
+
* invalid then the StatusCode for the operation shall be Bad_ContinuationPointInvalid.
|
|
63
|
+
*/
|
|
9
64
|
let counter = 0;
|
|
10
65
|
function make_key() {
|
|
11
66
|
// return crypto.randomBytes(32);
|
|
@@ -14,84 +69,122 @@ function make_key() {
|
|
|
14
69
|
}
|
|
15
70
|
class ContinuationPointManager {
|
|
16
71
|
constructor() {
|
|
17
|
-
this._map =
|
|
72
|
+
this._map = new Map();
|
|
18
73
|
}
|
|
19
74
|
/**
|
|
20
|
-
* returns true if the current number of active continuation point has
|
|
21
|
-
* specified in
|
|
75
|
+
* returns true if the current number of active continuation point has reached the limit
|
|
76
|
+
* specified in maxContinuationPoint
|
|
22
77
|
* @param maxBrowseContinuationPoint
|
|
23
78
|
*/
|
|
24
|
-
|
|
25
|
-
if (
|
|
79
|
+
hasReachedMaximum(maxContinuationPoint) {
|
|
80
|
+
if (maxContinuationPoint === 0) {
|
|
26
81
|
return false;
|
|
27
82
|
}
|
|
28
|
-
const nbContinuationPoints =
|
|
29
|
-
return nbContinuationPoints >=
|
|
83
|
+
const nbContinuationPoints = this._map.size;
|
|
84
|
+
return nbContinuationPoints >= maxContinuationPoint;
|
|
85
|
+
}
|
|
86
|
+
clearContinuationPoints() {
|
|
87
|
+
// call when a new request to the server is received
|
|
88
|
+
this._map.clear();
|
|
89
|
+
}
|
|
90
|
+
registerHistoryReadRaw(numValuesPerNode, dataValues, continuationData) {
|
|
91
|
+
return this._register(numValuesPerNode, dataValues, continuationData);
|
|
92
|
+
}
|
|
93
|
+
getNextHistoryReadRaw(numValues, continuationData) {
|
|
94
|
+
return this._getNext(numValues, continuationData);
|
|
95
|
+
}
|
|
96
|
+
registerReferences(maxElements, values, continuationData) {
|
|
97
|
+
return this._register(maxElements, values, continuationData);
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* - releaseContinuationPoints = TRUE
|
|
101
|
+
*
|
|
102
|
+
* passed continuationPoints shall be reset to free resources in
|
|
103
|
+
* the Server. The continuation points are released and the results
|
|
104
|
+
* and diagnosticInfos arrays are empty.
|
|
105
|
+
*
|
|
106
|
+
* - releaseContinuationPoints = FALSE
|
|
107
|
+
*
|
|
108
|
+
* passed continuationPoints shall be used to get the next set of
|
|
109
|
+
* browse information
|
|
110
|
+
*/
|
|
111
|
+
getNextReferences(numValues, continuationData) {
|
|
112
|
+
return this._getNext(numValues, continuationData);
|
|
30
113
|
}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
114
|
+
_register(maxValues, values, continuationData) {
|
|
115
|
+
if (continuationData.releaseContinuationPoints) {
|
|
116
|
+
this.clearContinuationPoints();
|
|
34
117
|
return {
|
|
35
118
|
continuationPoint: undefined,
|
|
36
|
-
|
|
119
|
+
values: [],
|
|
37
120
|
statusCode: node_opcua_status_code_1.StatusCodes.Good
|
|
38
121
|
};
|
|
39
122
|
}
|
|
123
|
+
if (!continuationData.continuationPoint && !continuationData.index) {
|
|
124
|
+
this.clearContinuationPoints();
|
|
125
|
+
}
|
|
126
|
+
if (maxValues >= 1) {
|
|
127
|
+
// now make sure that only the requested number of value is returned
|
|
128
|
+
if (values.length === 0) {
|
|
129
|
+
return {
|
|
130
|
+
continuationPoint: undefined,
|
|
131
|
+
values: null,
|
|
132
|
+
statusCode: node_opcua_status_code_1.StatusCodes.GoodNoData
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
maxValues = maxValues || values.length;
|
|
137
|
+
if (maxValues >= values.length) {
|
|
138
|
+
return {
|
|
139
|
+
continuationPoint: undefined,
|
|
140
|
+
values,
|
|
141
|
+
statusCode: node_opcua_status_code_1.StatusCodes.Good
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
// split the array in two ( values)
|
|
145
|
+
const current_block = values.splice(0, maxValues);
|
|
40
146
|
const key = make_key();
|
|
41
147
|
const keyHash = key.toString("ascii");
|
|
42
|
-
// split the array in two ( values)
|
|
43
|
-
const current_block = values.splice(0, maxElements);
|
|
44
148
|
const result = {
|
|
45
149
|
continuationPoint: key,
|
|
46
|
-
|
|
150
|
+
values: current_block,
|
|
47
151
|
statusCode: node_opcua_status_code_1.StatusCodes.Good
|
|
48
152
|
};
|
|
49
153
|
// create
|
|
50
154
|
const data = {
|
|
51
|
-
maxElements,
|
|
52
|
-
|
|
53
|
-
};
|
|
54
|
-
this._map[keyHash] = data;
|
|
55
|
-
return result;
|
|
56
|
-
}
|
|
57
|
-
getNext(continuationPoint) {
|
|
58
|
-
if (!continuationPoint) {
|
|
59
|
-
return { statusCode: node_opcua_status_code_1.StatusCodes.BadContinuationPointInvalid };
|
|
60
|
-
}
|
|
61
|
-
const keyHash = continuationPoint.toString("ascii");
|
|
62
|
-
const data = this._map[keyHash];
|
|
63
|
-
if (!data) {
|
|
64
|
-
return { statusCode: node_opcua_status_code_1.StatusCodes.BadContinuationPointInvalid };
|
|
65
|
-
}
|
|
66
|
-
(0, node_opcua_assert_1.assert)(data.maxElements > 0);
|
|
67
|
-
// split the array in two ( values)
|
|
68
|
-
const current_block = data.remainingElements.splice(0, data.maxElements);
|
|
69
|
-
const result = {
|
|
70
|
-
continuationPoint: data.remainingElements.length ? continuationPoint : undefined,
|
|
71
|
-
references: current_block,
|
|
72
|
-
statusCode: node_opcua_status_code_1.StatusCodes.Good
|
|
155
|
+
maxElements: maxValues,
|
|
156
|
+
values: values
|
|
73
157
|
};
|
|
74
|
-
|
|
75
|
-
// we are done
|
|
76
|
-
delete this._map[keyHash];
|
|
77
|
-
}
|
|
158
|
+
this._map.set(keyHash, data);
|
|
78
159
|
return result;
|
|
79
160
|
}
|
|
80
|
-
|
|
81
|
-
if (!continuationPoint) {
|
|
82
|
-
return {
|
|
161
|
+
_getNext(numValues, continuationData) {
|
|
162
|
+
if (!continuationData.continuationPoint) {
|
|
163
|
+
return {
|
|
164
|
+
continuationPoint: undefined,
|
|
165
|
+
values: null,
|
|
166
|
+
statusCode: node_opcua_status_code_1.StatusCodes.BadContinuationPointInvalid
|
|
167
|
+
};
|
|
83
168
|
}
|
|
84
|
-
const keyHash = continuationPoint.toString("ascii");
|
|
85
|
-
const data = this._map
|
|
169
|
+
const keyHash = continuationData.continuationPoint.toString("ascii");
|
|
170
|
+
const data = this._map.get(keyHash);
|
|
86
171
|
if (!data) {
|
|
87
172
|
return {
|
|
88
173
|
continuationPoint: undefined,
|
|
89
|
-
|
|
174
|
+
values: null,
|
|
90
175
|
statusCode: node_opcua_status_code_1.StatusCodes.BadContinuationPointInvalid
|
|
91
176
|
};
|
|
92
177
|
}
|
|
93
|
-
|
|
178
|
+
const values = data.values.splice(0, numValues || data.maxElements);
|
|
179
|
+
let continuationPoint = continuationData.continuationPoint;
|
|
180
|
+
if (data.values.length === 0 || continuationData.releaseContinuationPoints) {
|
|
181
|
+
// no more data available for next call
|
|
182
|
+
this._map.delete(keyHash);
|
|
183
|
+
continuationPoint = undefined;
|
|
184
|
+
}
|
|
94
185
|
return {
|
|
186
|
+
continuationPoint,
|
|
187
|
+
values,
|
|
95
188
|
statusCode: node_opcua_status_code_1.StatusCodes.Good
|
|
96
189
|
};
|
|
97
190
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"continuation_point_manager.js","sourceRoot":"","sources":["../../../source/continuation_points/continuation_point_manager.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,
|
|
1
|
+
{"version":3,"file":"continuation_point_manager.js","sourceRoot":"","sources":["../../../source/continuation_points/continuation_point_manager.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,mEAAiE;AAWjE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/adjust_browse_direction.ts"],"names":[],"mappings":";;;AAKA,SAAgB,qBAAqB,
|
|
1
|
+
{"version":3,"file":"adjust_browse_direction.js","sourceRoot":"","sources":["../../../source/helpers/adjust_browse_direction.ts"],"names":[],"mappings":";;;AAKA,SAAgB,qBAAqB,CACjC,eAAmD,EACnD,YAA6B;IAE7B,uBAAuB;IACvB,IAAI,eAAe,KAAK,IAAI,IAAI,eAAe,KAAK,SAAS,EAAE;QAC3D,OAAO,YAAY,CAAC;KACvB;IACD,OAAO,eAAe,CAAC;AAC3B,CAAC;AATD,sDASC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"call_helpers.js","sourceRoot":"","sources":["../../../source/helpers/call_helpers.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,yDAA2C;AAC3C,iEAAkD;AAClD,yDAA2C;AAE3C,mEAAqD;AAKrD,mDAAkG;AAClG,uFAAgF;
|
|
1
|
+
{"version":3,"file":"call_helpers.js","sourceRoot":"","sources":["../../../source/helpers/call_helpers.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,yDAA2C;AAC3C,iEAAkD;AAClD,yDAA2C;AAE3C,mEAAqD;AAKrD,mDAAkG;AAClG,uFAAgF;AAmBhF,SAAgB,gBAAgB,CAC5B,OAAwB,EACxB,YAA2B,EAC3B,iBAAoC,EACpC,QAAmD;IAEnD,MAAM,QAAQ,GAAG,iBAAiB,CAAC,QAAQ,CAAC;IAC5C,MAAM,QAAQ,GAAG,iBAAiB,CAAC,QAAQ,CAAC;IAC5C,MAAM,cAAc,GAAG,iBAAiB,CAAC,cAAc,IAAI,EAAE,CAAC;IAE9D,IAAA,0BAAM,EAAC,QAAQ,YAAY,0BAAM,CAAC,CAAC;IACnC,IAAA,0BAAM,EAAC,QAAQ,YAAY,0BAAM,CAAC,CAAC;IAEnC,MAAM,MAAM,GAAG,YAAY,CAAC,QAAQ,CAAC,QAAQ,CAAa,CAAC;IAC3D,IAAI,CAAC,MAAM,EAAE;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,EAAE,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC;AACvC,CAAC;AA9ED,4CA8EC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check_event_clause.js","sourceRoot":"","sources":["../../../source/helpers/check_event_clause.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,4BAA4B;AAC5B,iEAAkD;AAElD,uGAAgG;AAChG,mEAAiE;AAGjE;;;;;GAKG;AACH,SAAgB,iBAAiB,
|
|
1
|
+
{"version":3,"file":"check_event_clause.js","sourceRoot":"","sources":["../../../source/helpers/check_event_clause.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,4BAA4B;AAC5B,iEAAkD;AAElD,uGAAgG;AAChG,mEAAiE;AAGjE;;;;;GAKG;AACH,SAAgB,iBAAiB,CAAC,UAAoB,EAAE,YAAoC;IACxF,EAAE;IACF,MAAM,YAAY,GAAG,UAAU,CAAC,YAAY,CAAC;IAE7C,uBAAuB;IACvB,IAAI,YAAY,CAAC,gBAAgB,CAAC,OAAO,EAAE,EAAE;QACzC,OAAO,oCAAW,CAAC,IAAI,CAAC;KAC3B;IACD,MAAM,aAAa,GAAG,YAAY,CAAC,aAAa,CAAC,YAAY,CAAC,gBAAgB,CAAE,CAAC;IAEjF,IAAI,CAAC,aAAa,IAAI,CAAC,CAAC,aAAa,CAAC,SAAS,KAAK,iCAAS,CAAC,UAAU,CAAC,EAAE;QACvE,+EAA+E;QAC/E,oDAAoD;QACpD,uBAAuB;QACvB,IAAI,aAAa,EAAE;YACf,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,QAAQ,EAAE,CAAC,CAAC;SACzC;KACJ;IAED,uBAAuB;IACvB,IAAI,aAAa,CAAC,SAAS,KAAK,iCAAS,CAAC,UAAU,EAAE;QAClD,MAAM,IAAI,KAAK,CAAC,wBAAwB,CAAC,CAAC;KAC7C;IAED,yEAAyE;IACzE,MAAM,UAAU,GAAG,IAAA,+EAAoC,EAAC,aAAa,EAAE,YAAY,CAAC,UAAU,CAAC,CAAC;IAChG,MAAM,gBAAgB,GAAG,YAAY,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC;IAC7D,OAAO,gBAAgB,CAAC,UAAU,CAAC;AACvC,CAAC;AA5BD,8CA4BC;AAED;;;;;GAKG;AACH,SAAgB,kBAAkB,CAAC,aAA2B,EAAE,aAAuC;IACnG,OAAO,aAAa,CAAC,GAAG,CAAC,iBAAiB,CAAC,IAAI,CAAC,IAAI,EAAE,aAAa,CAAC,CAAC,CAAC;AAC1E,CAAC;AAFD,gDAEC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coerce_enum_value.js","sourceRoot":"","sources":["../../../source/helpers/coerce_enum_value.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,yDAA2C;AAE3C,iEAA4D;AAC5D,uDAAiD;AAGjD,SAAgB,gBAAgB,CAAC,
|
|
1
|
+
{"version":3,"file":"coerce_enum_value.js","sourceRoot":"","sources":["../../../source/helpers/coerce_enum_value.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,yDAA2C;AAE3C,iEAA4D;AAC5D,uDAAiD;AAGjD,SAAgB,gBAAgB,CAAC,UAA0E;IACvG,IAAI,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE;QAC3B,EAAE;QACF,OAAO,UAAU,CAAC,GAAG,CAAC,CAAC,EAAO,EAAE,EAAE;YAC9B,IAAA,0BAAM,EAAC,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC,CAAC;YAC1D,IAAA,0BAAM,EAAC,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,EAAE,aAAa,CAAC,CAAC,CAAC;YAChE,OAAO,IAAI,gCAAa,CAAC;gBACrB,WAAW,EAAE,IAAA,2CAAmB,EAAC,EAAE,CAAC,WAAW,CAAC;gBAChD,KAAK,EAAE,EAAE,CAAC,KAAK;aAClB,CAAC,CAAC;QACP,CAAC,CAAC,CAAC;KACN;SAAM;QACH,OAAO,gBAAgB,CACnB,MAAM,CAAC,OAAO,CAAC,UAAsC,CAAC,CAAC,GAAG,CAAC,CAAC,MAAuB,EAAE,EAAE;YACnF,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,GAAG,MAAM,CAAC;YAC5B,OAAO,IAAI,gCAAa,CAAC;gBACrB,WAAW,EAAE,IAAA,2CAAmB,EAAC,GAAG,CAAC;gBACrC,WAAW,EAAE,IAAA,2CAAmB,EAAC,GAAG,CAAC;gBACrC,KAAK;aACR,CAAC,CAAC;QACP,CAAC,CAAC,CACL,CAAC;KACL;AACL,CAAC;AAvBD,4CAuBC"}
|
|
@@ -27,19 +27,6 @@ function newIsUserReadable(context) {
|
|
|
27
27
|
}
|
|
28
28
|
return false;
|
|
29
29
|
}
|
|
30
|
-
function replaceMethod(obj, method, func) {
|
|
31
|
-
const oldMethod = obj[method];
|
|
32
|
-
if (!oldMethod) {
|
|
33
|
-
throw new Error("I cannot find method " + method + " on object " + obj.browseName.toString());
|
|
34
|
-
}
|
|
35
|
-
obj[method] = function (...args) {
|
|
36
|
-
const ret = func.apply(this, args);
|
|
37
|
-
if (!ret) {
|
|
38
|
-
return false;
|
|
39
|
-
}
|
|
40
|
-
return oldMethod.apply(this, args);
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
30
|
/**
|
|
44
31
|
* make sure that the given ia node can only be read
|
|
45
32
|
* by Administrator user on a encrypted channel
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ensure_secure_access.js","sourceRoot":"","sources":["../../../source/helpers/ensure_secure_access.ts"],"names":[],"mappings":";;;AAAA,iEAAmI;AACnI,uDAAuD;AAEvD,wDAAoD;AAEpD,SAAS,eAAe,CAAC,OAAqB;IAC1C,IAAI,OAAO,CAAC,YAAY,KAAK,sCAAmB,CAAC,cAAc,EAAE;QAC7D,OAAO,IAAI,CAAC;KACf;IACD,OAAO,KAAK,CAAC;AACjB,CAAC;AAED,SAAS,iBAAiB,CAAiB,OAAwB;IAC/D,IAAI,OAAO,EAAE;QACT,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE;YAClB,mDAAmD;YACnD,OAAO,KAAK,CAAC;SAChB;QACD,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO,EAAE;YAC1B,mDAAmD;YACnD,OAAO,KAAK,CAAC;SAChB;QACD,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE;YAC3C,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,IAAI,CAAC;KACf;IACD,OAAO,KAAK,CAAC;AACjB,CAAC;
|
|
1
|
+
{"version":3,"file":"ensure_secure_access.js","sourceRoot":"","sources":["../../../source/helpers/ensure_secure_access.ts"],"names":[],"mappings":";;;AAAA,iEAAmI;AACnI,uDAAuD;AAEvD,wDAAoD;AAEpD,SAAS,eAAe,CAAC,OAAqB;IAC1C,IAAI,OAAO,CAAC,YAAY,KAAK,sCAAmB,CAAC,cAAc,EAAE;QAC7D,OAAO,IAAI,CAAC;KACf;IACD,OAAO,KAAK,CAAC;AACjB,CAAC;AAED,SAAS,iBAAiB,CAAiB,OAAwB;IAC/D,IAAI,OAAO,EAAE;QACT,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE;YAClB,mDAAmD;YACnD,OAAO,KAAK,CAAC;SAChB;QACD,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO,EAAE;YAC1B,mDAAmD;YACnD,OAAO,KAAK,CAAC;SAChB;QACD,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE;YAC3C,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,IAAI,CAAC;KACf;IACD,OAAO,KAAK,CAAC;AACjB,CAAC;AAED;;;;;EAKE;AACF,MAAM,qBAAqB,GAAG;IAC1B,EAAE,MAAM,EAAE,gCAAc,CAAC,aAAa,EAAE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E,uCAAe,CAAC,OAAO,CAAC,CAAC;IACtF,KAAK,MAAM,KAAK,IAAI,QAAQ,EAAE;QAC1B,oBAAoB,CAAC,KAAK,CAAC,CAAC;KAC/B;AACL,CAAC;AAnBD,oDAmBC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolve_opaque_on_address_space.js","sourceRoot":"","sources":["../../../source/helpers/resolve_opaque_on_address_space.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2GAA2F;AAC3F,2DAA6C;AAE7C,sDAAkD;AAClD,2DAAkE;AAElE,SAAsB,2BAA2B,
|
|
1
|
+
{"version":3,"file":"resolve_opaque_on_address_space.js","sourceRoot":"","sources":["../../../source/helpers/resolve_opaque_on_address_space.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2GAA2F;AAC3F,2DAA6C;AAE7C,sDAAkD;AAClD,2DAAkE;AAElE,SAAsB,2BAA2B,CAC7C,YAA2B,EAC3B,QAA+C;;QAE/C,IAAI,CAAC,QAAQ,EAAE;YACX,OAAO;SACV;QACD,MAAM,OAAO,GAAG,IAAI,8BAAa,CAAC,YAAY,CAAC,CAAC;QAChD,MAAM,oBAAoB,GAAG,MAAM,IAAA,uCAAuB,EAAC,YAAY,CAAC,CAAC;QACzE,IAAI,QAAQ,YAAY,4BAAO,EAAE;YAC7B,MAAM,IAAA,0EAA6B,EAAC,OAAO,EAAE,QAAQ,EAAE,oBAAoB,CAAC,CAAC;YAC7E,OAAO;SACV;QACD,oDAAoD;QACpD,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE;YAC5B,IAAI,OAAO,EAAE;gBACT,MAAM,IAAA,0EAA6B,EAAC,OAAO,EAAE,OAAO,EAAE,oBAAoB,CAAC,CAAC;aAC/E;SACJ;IACL,CAAC;CAAA;AAnBD,kEAmBC"}
|
|
@@ -29,10 +29,8 @@ const node_opcua_service_call_1 = require("node-opcua-service-call");
|
|
|
29
29
|
const node_opcua_types_1 = require("node-opcua-types");
|
|
30
30
|
const node_opcua_variant_1 = require("node-opcua-variant");
|
|
31
31
|
const node_opcua_xml2json_1 = require("node-opcua-xml2json");
|
|
32
|
-
const PrettyError = require("pretty-error");
|
|
33
32
|
const pseudo_session_1 = require("../pseudo_session");
|
|
34
33
|
const namespace_post_step_1 = require("./namespace_post_step");
|
|
35
|
-
const pe = new PrettyError();
|
|
36
34
|
const doDebug = (0, node_opcua_debug_1.checkDebugFlag)(__filename);
|
|
37
35
|
const debugLog = (0, node_opcua_debug_1.make_debugLog)(__filename);
|
|
38
36
|
function ensureDatatypeExtracted(addressSpace) {
|
|
@@ -365,8 +363,15 @@ function makeStuff(addressSpace) {
|
|
|
365
363
|
this.obj.browseName = convertQualifiedName(attrs.BrowseName);
|
|
366
364
|
this.obj.eventNotifier = ec.coerceByte(attrs.EventNotifier) || 0;
|
|
367
365
|
this.obj.symbolicName = attrs.SymbolicName || null;
|
|
366
|
+
this.isDraft = attrs.ReleaseStatus === "Draft";
|
|
367
|
+
this.obj.isDeprecated = attrs.ReleaseStatus === "Deprecated";
|
|
368
368
|
},
|
|
369
369
|
finish() {
|
|
370
|
+
if (this.isDraft || this.isDeprecated) {
|
|
371
|
+
// ignore Draft or Deprecated element
|
|
372
|
+
debugLog("Ignoring Draft/Deprecated UAObject =", this.obj.browseName.toString());
|
|
373
|
+
return;
|
|
374
|
+
}
|
|
370
375
|
_internal_createNode(this.obj);
|
|
371
376
|
},
|
|
372
377
|
parser: {
|
|
@@ -451,12 +456,13 @@ function makeStuff(addressSpace) {
|
|
|
451
456
|
this.obj.description = "";
|
|
452
457
|
this.obj.symbolicName = attrs.SymbolicName;
|
|
453
458
|
this.isDraft = attrs.ReleaseStatus === "Draft";
|
|
459
|
+
this.isDeprecated = attrs.ReleaseStatus === "Deprecated";
|
|
454
460
|
this.definitionFields = [];
|
|
455
461
|
},
|
|
456
462
|
finish() {
|
|
457
|
-
if (this.isDraft) {
|
|
458
|
-
// ignore Draft element
|
|
459
|
-
debugLog("Ignoring Draft dataType =", this.obj.browseName.toString());
|
|
463
|
+
if (this.isDraft || this.isDeprecated) {
|
|
464
|
+
// ignore Draft or Deprecated element
|
|
465
|
+
debugLog("Ignoring Draft/Deprecated dataType =", this.obj.browseName.toString());
|
|
460
466
|
return;
|
|
461
467
|
}
|
|
462
468
|
let definitionFields = this.definitionFields;
|
|
@@ -1097,8 +1103,14 @@ function makeStuff(addressSpace) {
|
|
|
1097
1103
|
this.obj.nodeId = convertToNodeId(attrs.NodeId) || null;
|
|
1098
1104
|
this.obj.accessLevel = convertAccessLevel(attrs.AccessLevel);
|
|
1099
1105
|
this.obj.userAccessLevel = this.obj.accessLevel; // convertAccessLevel(attrs.UserAccessLevel || attrs.AccessLevel);
|
|
1106
|
+
this.isDraft = attrs.ReleaseStatus === "Draft";
|
|
1107
|
+
this.isDeprecated = attrs.ReleaseStatus === "Deprecated";
|
|
1100
1108
|
},
|
|
1101
1109
|
finish() {
|
|
1110
|
+
if (this.isDraft || this.isDeprecated) {
|
|
1111
|
+
debugLog("Ignoring Draft/Deprecated UAVariable =", this.obj.browseName.toString());
|
|
1112
|
+
return;
|
|
1113
|
+
}
|
|
1102
1114
|
/*
|
|
1103
1115
|
// set default value based on obj data Type
|
|
1104
1116
|
if (this.obj.value === undefined) {
|
|
@@ -1169,8 +1181,14 @@ function makeStuff(addressSpace) {
|
|
|
1169
1181
|
this.obj.minimumSamplingInterval = attrs.MinimumSamplingInterval ? parseInt(attrs.MinimumSamplingInterval, 10) : 0;
|
|
1170
1182
|
this.obj.historizing = false;
|
|
1171
1183
|
this.obj.nodeId = convertToNodeId(attrs.NodeId) || null;
|
|
1184
|
+
this.isDraft = attrs.ReleaseStatus === "Draft";
|
|
1185
|
+
this.isDeprecated = attrs.ReleaseStatus === "Deprecated";
|
|
1172
1186
|
},
|
|
1173
1187
|
finish() {
|
|
1188
|
+
if (this.isDraft || this.isDeprecated) {
|
|
1189
|
+
debugLog("Ignoring Draft/Deprecated UAVariableType =", this.obj.browseName.toString());
|
|
1190
|
+
return;
|
|
1191
|
+
}
|
|
1174
1192
|
try {
|
|
1175
1193
|
_internal_createNode(this.obj);
|
|
1176
1194
|
} /* istanbul ignore next */
|
|
@@ -1206,8 +1224,14 @@ function makeStuff(addressSpace) {
|
|
|
1206
1224
|
this.obj.parentNodeId = attrs.ParentNodeId || null;
|
|
1207
1225
|
this.obj.nodeId = convertToNodeId(attrs.NodeId) || null;
|
|
1208
1226
|
this.obj.methodDeclarationId = attrs.MethodDeclarationId ? _translateNodeId(attrs.MethodDeclarationId) : null;
|
|
1227
|
+
this.isDraft = attrs.ReleaseStatus === "Draft";
|
|
1228
|
+
this.isDeprecated = attrs.ReleaseStatus === "Deprecated";
|
|
1209
1229
|
},
|
|
1210
1230
|
finish() {
|
|
1231
|
+
if (this.isDraft || this.isDeprecated) {
|
|
1232
|
+
debugLog("Ignoring Draft/Deprecated UAMethod =", this.obj.browseName.toString());
|
|
1233
|
+
return;
|
|
1234
|
+
}
|
|
1211
1235
|
_internal_createNode(this.obj);
|
|
1212
1236
|
},
|
|
1213
1237
|
parser: {
|
|
@@ -1351,7 +1375,7 @@ function makeStuff(addressSpace) {
|
|
|
1351
1375
|
finalSteps()
|
|
1352
1376
|
.then(() => callback())
|
|
1353
1377
|
.catch((err1) => {
|
|
1354
|
-
console.log("Error ",
|
|
1378
|
+
console.log("Error ", (0, node_opcua_assert_1.renderError)(err1));
|
|
1355
1379
|
callback(err1);
|
|
1356
1380
|
});
|
|
1357
1381
|
}
|