node-opcua-address-space 2.70.3 → 2.71.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/dist/source/address_space_ts.d.ts +118 -118
- package/dist/source/address_space_ts.js +17 -17
- package/dist/source/continuation_points/continuation_point_manager.d.ts +32 -32
- package/dist/source/continuation_points/continuation_point_manager.js +195 -195
- package/dist/source/helpers/adjust_browse_direction.d.ts +5 -5
- package/dist/source/helpers/adjust_browse_direction.js +11 -11
- package/dist/source/helpers/argument_list.d.ts +34 -34
- package/dist/source/helpers/argument_list.js +285 -285
- package/dist/source/helpers/call_helpers.d.ts +6 -6
- package/dist/source/helpers/call_helpers.js +70 -70
- package/dist/source/helpers/check_event_clause.d.ts +17 -17
- package/dist/source/helpers/check_event_clause.js +52 -52
- package/dist/source/helpers/coerce_enum_value.d.ts +6 -6
- package/dist/source/helpers/coerce_enum_value.js +33 -33
- package/dist/source/helpers/dump_tools.d.ts +14 -14
- package/dist/source/helpers/dump_tools.js +78 -78
- package/dist/source/helpers/ensure_secure_access.d.ts +9 -9
- package/dist/source/helpers/ensure_secure_access.js +76 -76
- package/dist/source/helpers/make_optionals_map.d.ts +21 -21
- package/dist/source/helpers/make_optionals_map.js +29 -29
- package/dist/source/helpers/multiform_func.d.ts +11 -11
- package/dist/source/helpers/multiform_func.js +73 -73
- package/dist/source/helpers/resolve_opaque_on_address_space.d.ts +3 -3
- package/dist/source/helpers/resolve_opaque_on_address_space.js +36 -36
- package/dist/source/index.d.ts +40 -40
- package/dist/source/index.js +66 -66
- package/dist/source/interfaces/alarms_and_conditions/condition_info_i.d.ts +12 -12
- package/dist/source/interfaces/alarms_and_conditions/condition_info_i.js +2 -2
- package/dist/source/interfaces/alarms_and_conditions/ua_condition_base_i.d.ts +23 -0
- package/dist/source/interfaces/alarms_and_conditions/ua_condition_base_i.js +3 -0
- package/dist/source/interfaces/alarms_and_conditions/ua_condition_base_i.js.map +1 -0
- package/dist/source/interfaces/data_access/ua_discrete_item.d.ts +6 -0
- package/dist/source/interfaces/data_access/ua_discrete_item.js +3 -0
- package/dist/source/interfaces/data_access/ua_discrete_item.js.map +1 -0
- package/dist/source/interfaces/data_access/ua_multistate_discrete.d.ts +25 -0
- package/dist/source/interfaces/data_access/ua_multistate_discrete.js +3 -0
- package/dist/source/interfaces/data_access/ua_multistate_discrete.js.map +1 -0
- package/dist/source/interfaces/data_access/ua_multistate_discrete_ex.d.ts +21 -21
- package/dist/source/interfaces/data_access/ua_multistate_discrete_ex.js +2 -2
- package/dist/source/interfaces/data_access/ua_multistate_value_discrete.d.ts +27 -0
- package/dist/source/interfaces/data_access/ua_multistate_value_discrete.js +3 -0
- package/dist/source/interfaces/data_access/ua_multistate_value_discrete.js.map +1 -0
- package/dist/source/interfaces/data_access/ua_multistate_value_discrete_ex.d.ts +24 -24
- package/dist/source/interfaces/data_access/ua_multistate_value_discrete_ex.js +2 -2
- package/dist/source/interfaces/data_access/ua_two_state_discrete.d.ts +17 -0
- package/dist/source/interfaces/data_access/ua_two_state_discrete.js +3 -0
- package/dist/source/interfaces/data_access/ua_two_state_discrete.js.map +1 -0
- package/dist/source/interfaces/data_access/ua_two_state_discrete_ex.d.ts +12 -12
- package/dist/source/interfaces/data_access/ua_two_state_discrete_ex.js +2 -2
- package/dist/source/interfaces/data_access/ua_y_array_item.d.ts +19 -0
- package/dist/source/interfaces/data_access/ua_y_array_item.js +3 -0
- package/dist/source/interfaces/data_access/ua_y_array_item.js.map +1 -0
- package/dist/source/interfaces/data_access/ua_y_array_item_ex.d.ts +8 -8
- package/dist/source/interfaces/data_access/ua_y_array_item_ex.js +2 -2
- package/dist/source/interfaces/state_machine/exclusive_limit_state_machine.d.ts +11 -0
- package/dist/source/interfaces/state_machine/exclusive_limit_state_machine.js +3 -0
- package/dist/source/interfaces/state_machine/exclusive_limit_state_machine.js.map +1 -0
- package/dist/source/interfaces/state_machine/finite_state_machine.d.ts +70 -0
- package/dist/source/interfaces/state_machine/finite_state_machine.js +3 -0
- package/dist/source/interfaces/state_machine/finite_state_machine.js.map +1 -0
- package/dist/source/interfaces/state_machine/program_finite_state_machine.d.ts +74 -0
- package/dist/source/interfaces/state_machine/program_finite_state_machine.js +3 -0
- package/dist/source/interfaces/state_machine/program_finite_state_machine.js.map +1 -0
- package/dist/source/interfaces/state_machine/state_machine.d.ts +342 -0
- package/dist/source/interfaces/state_machine/state_machine.js +3 -0
- package/dist/source/interfaces/state_machine/state_machine.js.map +1 -0
- package/dist/source/interfaces/state_machine/ua_exclusive_limit_state_machine_type_ex.d.ts +12 -12
- package/dist/source/interfaces/state_machine/ua_exclusive_limit_state_machine_type_ex.js +2 -2
- package/dist/source/interfaces/state_machine/ua_finite_state_machine_type.d.ts +49 -49
- package/dist/source/interfaces/state_machine/ua_finite_state_machine_type.js +2 -2
- package/dist/source/interfaces/state_machine/ua_finite_state_variable.d.ts +18 -0
- package/dist/source/interfaces/state_machine/ua_finite_state_variable.js +3 -0
- package/dist/source/interfaces/state_machine/ua_finite_state_variable.js.map +1 -0
- package/dist/source/interfaces/state_machine/ua_program_state_machine_type.d.ts +11 -11
- package/dist/source/interfaces/state_machine/ua_program_state_machine_type.js +2 -2
- package/dist/source/interfaces/state_machine/ua_state_machine_type.d.ts +222 -222
- package/dist/source/interfaces/state_machine/ua_state_machine_type.js +2 -2
- package/dist/source/interfaces/state_machine/ua_state_variable.d.ts +29 -0
- package/dist/source/interfaces/state_machine/ua_state_variable.js +3 -0
- package/dist/source/interfaces/state_machine/ua_state_variable.js.map +1 -0
- package/dist/source/interfaces/state_machine/ua_transition_ex.d.ts +6 -6
- package/dist/source/interfaces/state_machine/ua_transition_ex.js +2 -2
- package/dist/source/interfaces/state_machine/ua_two_state_variable.d.ts +26 -0
- package/dist/source/interfaces/state_machine/ua_two_state_variable.js +3 -0
- package/dist/source/interfaces/state_machine/ua_two_state_variable.js.map +1 -0
- package/dist/source/interfaces/subscription_diagnostics_variable.d.ts +41 -0
- package/dist/source/interfaces/subscription_diagnostics_variable.js +3 -0
- package/dist/source/interfaces/subscription_diagnostics_variable.js.map +1 -0
- package/dist/source/interfaces/ua_subscription_diagnostics_variable_ex.d.ts +8 -8
- package/dist/source/interfaces/ua_subscription_diagnostics_variable_ex.js +2 -2
- package/dist/source/loader/decode_xml_extension_object.d.ts +6 -6
- package/dist/source/loader/decode_xml_extension_object.js +71 -71
- package/dist/source/loader/ensure_datatype_extracted.d.ts +5 -5
- package/dist/source/loader/ensure_datatype_extracted.js +45 -45
- package/dist/source/loader/generateAddressSpaceRaw.d.ts +10 -10
- package/dist/source/loader/generateAddressSpaceRaw.js +45 -45
- package/dist/source/loader/load_nodeset2.d.ts +16 -16
- package/dist/source/loader/load_nodeset2.js +1464 -1464
- package/dist/source/loader/make_xml_extension_object_parser.d.ts +28 -28
- package/dist/source/loader/make_xml_extension_object_parser.js +315 -315
- package/dist/source/loader/namespace_post_step.d.ts +6 -6
- package/dist/source/loader/namespace_post_step.js +47 -47
- package/dist/source/loader/register_node_promoter.d.ts +3 -3
- package/dist/source/loader/register_node_promoter.js +9 -9
- package/dist/source/namespace.d.ts +6 -6
- package/dist/source/namespace.js +2 -2
- package/dist/source/namespace_alarm_and_condition.d.ts +24 -24
- package/dist/source/namespace_alarm_and_condition.js +2 -2
- package/dist/source/namespace_data_access.d.ts +42 -42
- package/dist/source/namespace_data_access.js +2 -2
- package/dist/source/namespace_machine_state.d.ts +7 -7
- package/dist/source/namespace_machine_state.js +2 -2
- package/dist/source/pseudo_session.d.ts +55 -55
- package/dist/source/pseudo_session.js +203 -203
- package/dist/source/session_context.d.ts +111 -111
- package/dist/source/session_context.js +265 -265
- package/dist/source/set_namespace_meta_data.d.ts +2 -2
- package/dist/source/set_namespace_meta_data.js +59 -59
- package/dist/source/ua_root_folder.d.ts +9 -9
- package/dist/source/ua_root_folder.js +2 -2
- package/dist/source/ua_two_state_variable_ex.d.ts +23 -23
- package/dist/source/ua_two_state_variable_ex.js +2 -2
- package/dist/source/xml_writer.d.ts +9 -9
- package/dist/source/xml_writer.js +2 -2
- package/dist/src/address_space.d.ts +392 -392
- package/dist/src/address_space.js +1387 -1387
- package/dist/src/address_space_change_event_tools.d.ts +6 -6
- package/dist/src/address_space_change_event_tools.js +149 -149
- package/dist/src/address_space_private.d.ts +43 -43
- package/dist/src/address_space_private.js +2 -2
- package/dist/src/alarms_and_conditions/base_event_type.d.ts +26 -0
- package/dist/src/alarms_and_conditions/base_event_type.js +41 -0
- package/dist/src/alarms_and_conditions/base_event_type.js.map +1 -0
- package/dist/src/alarms_and_conditions/check_where_clause.d.ts +4 -4
- package/dist/src/alarms_and_conditions/check_where_clause.js +109 -109
- package/dist/src/alarms_and_conditions/condition.d.ts +5 -5
- package/dist/src/alarms_and_conditions/condition.js +80 -80
- package/dist/src/alarms_and_conditions/condition_info.d.ts +27 -27
- package/dist/src/alarms_and_conditions/condition_info.js +54 -54
- package/dist/src/alarms_and_conditions/condition_snapshot.d.ts +233 -233
- package/dist/src/alarms_and_conditions/condition_snapshot.js +666 -666
- package/dist/src/alarms_and_conditions/deviation_alarm_helper.d.ts +21 -21
- package/dist/src/alarms_and_conditions/deviation_alarm_helper.js +46 -46
- package/dist/src/alarms_and_conditions/extract_event_fields.d.ts +10 -10
- package/dist/src/alarms_and_conditions/extract_event_fields.js +89 -89
- package/dist/src/alarms_and_conditions/index.d.ts +18 -18
- package/dist/src/alarms_and_conditions/index.js +34 -34
- package/dist/src/alarms_and_conditions/shelving_state_machine.d.ts +22 -0
- package/dist/src/alarms_and_conditions/shelving_state_machine.js +241 -0
- package/dist/src/alarms_and_conditions/shelving_state_machine.js.map +1 -0
- package/dist/src/alarms_and_conditions/trip_alarm.d.ts +16 -0
- package/dist/src/alarms_and_conditions/trip_alarm.js +21 -0
- package/dist/src/alarms_and_conditions/trip_alarm.js.map +1 -0
- package/dist/src/alarms_and_conditions/ua_acknowledgeable_condition_base.d.ts +54 -0
- package/dist/src/alarms_and_conditions/ua_acknowledgeable_condition_base.js +255 -0
- package/dist/src/alarms_and_conditions/ua_acknowledgeable_condition_base.js.map +1 -0
- package/dist/src/alarms_and_conditions/ua_acknowledgeable_condition_impl.d.ts +62 -62
- package/dist/src/alarms_and_conditions/ua_acknowledgeable_condition_impl.js +244 -244
- package/dist/src/alarms_and_conditions/ua_alarm_condition_base.d.ts +138 -0
- package/dist/src/alarms_and_conditions/ua_alarm_condition_base.js +460 -0
- package/dist/src/alarms_and_conditions/ua_alarm_condition_base.js.map +1 -0
- package/dist/src/alarms_and_conditions/ua_alarm_condition_impl.d.ts +118 -118
- package/dist/src/alarms_and_conditions/ua_alarm_condition_impl.js +416 -416
- package/dist/src/alarms_and_conditions/ua_base_event_impl.d.ts +29 -29
- package/dist/src/alarms_and_conditions/ua_base_event_impl.js +38 -38
- package/dist/src/alarms_and_conditions/ua_certificate_expiration_alarm.d.ts +35 -0
- package/dist/src/alarms_and_conditions/ua_certificate_expiration_alarm.js +32 -0
- package/dist/src/alarms_and_conditions/ua_certificate_expiration_alarm.js.map +1 -0
- package/dist/src/alarms_and_conditions/ua_certificate_expiration_alarm_impl.d.ts +21 -21
- package/dist/src/alarms_and_conditions/ua_certificate_expiration_alarm_impl.js +25 -25
- package/dist/src/alarms_and_conditions/ua_condition_base.d.ts +191 -0
- package/dist/src/alarms_and_conditions/ua_condition_base.js +1029 -0
- package/dist/src/alarms_and_conditions/ua_condition_base.js.map +1 -0
- package/dist/src/alarms_and_conditions/ua_condition_impl.d.ts +182 -182
- package/dist/src/alarms_and_conditions/ua_condition_impl.js +1022 -1022
- package/dist/src/alarms_and_conditions/ua_discrete_alarm.d.ts +11 -0
- package/dist/src/alarms_and_conditions/ua_discrete_alarm.js +58 -0
- package/dist/src/alarms_and_conditions/ua_discrete_alarm.js.map +1 -0
- package/dist/src/alarms_and_conditions/ua_discrete_alarm_impl.d.ts +17 -17
- package/dist/src/alarms_and_conditions/ua_discrete_alarm_impl.js +57 -57
- package/dist/src/alarms_and_conditions/ua_exclusive_deviation_alarm.d.ts +24 -0
- package/dist/src/alarms_and_conditions/ua_exclusive_deviation_alarm.js +59 -0
- package/dist/src/alarms_and_conditions/ua_exclusive_deviation_alarm.js.map +1 -0
- package/dist/src/alarms_and_conditions/ua_exclusive_deviation_alarm_impl.d.ts +27 -27
- package/dist/src/alarms_and_conditions/ua_exclusive_deviation_alarm_impl.js +56 -56
- package/dist/src/alarms_and_conditions/ua_exclusive_level_alarm.d.ts +14 -0
- package/dist/src/alarms_and_conditions/ua_exclusive_level_alarm.js +17 -0
- package/dist/src/alarms_and_conditions/ua_exclusive_level_alarm.js.map +1 -0
- package/dist/src/alarms_and_conditions/ua_exclusive_level_alarm_impl.d.ts +9 -9
- package/dist/src/alarms_and_conditions/ua_exclusive_level_alarm_impl.js +11 -11
- package/dist/src/alarms_and_conditions/ua_exclusive_limit_alarm.d.ts +22 -0
- package/dist/src/alarms_and_conditions/ua_exclusive_limit_alarm.js +87 -0
- package/dist/src/alarms_and_conditions/ua_exclusive_limit_alarm.js.map +1 -0
- package/dist/src/alarms_and_conditions/ua_exclusive_limit_alarm_impl.d.ts +38 -38
- package/dist/src/alarms_and_conditions/ua_exclusive_limit_alarm_impl.js +86 -86
- package/dist/src/alarms_and_conditions/ua_exclusive_rate_of_change_alarm.d.ts +6 -0
- package/dist/src/alarms_and_conditions/ua_exclusive_rate_of_change_alarm.js +11 -0
- package/dist/src/alarms_and_conditions/ua_exclusive_rate_of_change_alarm.js.map +1 -0
- package/dist/src/alarms_and_conditions/ua_exclusive_rate_of_change_alarm_impl.d.ts +10 -10
- package/dist/src/alarms_and_conditions/ua_exclusive_rate_of_change_alarm_impl.js +7 -7
- package/dist/src/alarms_and_conditions/ua_limit_alarm.d.ts +76 -0
- package/dist/src/alarms_and_conditions/ua_limit_alarm.js +237 -0
- package/dist/src/alarms_and_conditions/ua_limit_alarm.js.map +1 -0
- package/dist/src/alarms_and_conditions/ua_limit_alarm_impl.d.ts +97 -97
- package/dist/src/alarms_and_conditions/ua_limit_alarm_impl.js +250 -250
- package/dist/src/alarms_and_conditions/ua_non_exclusive_deviation_alarm.d.ts +27 -0
- package/dist/src/alarms_and_conditions/ua_non_exclusive_deviation_alarm.js +62 -0
- package/dist/src/alarms_and_conditions/ua_non_exclusive_deviation_alarm.js.map +1 -0
- package/dist/src/alarms_and_conditions/ua_non_exclusive_deviation_alarm_impl.d.ts +28 -28
- package/dist/src/alarms_and_conditions/ua_non_exclusive_deviation_alarm_impl.js +50 -50
- package/dist/src/alarms_and_conditions/ua_non_exclusive_limit_alarm.d.ts +49 -0
- package/dist/src/alarms_and_conditions/ua_non_exclusive_limit_alarm.js +176 -0
- package/dist/src/alarms_and_conditions/ua_non_exclusive_limit_alarm.js.map +1 -0
- package/dist/src/alarms_and_conditions/ua_non_exclusive_limit_alarm_impl.d.ts +25 -25
- package/dist/src/alarms_and_conditions/ua_non_exclusive_limit_alarm_impl.js +162 -162
- package/dist/src/alarms_and_conditions/ua_off_normal_alarm.d.ts +47 -0
- package/dist/src/alarms_and_conditions/ua_off_normal_alarm.js +151 -0
- package/dist/src/alarms_and_conditions/ua_off_normal_alarm.js.map +1 -0
- package/dist/src/alarms_and_conditions/ua_off_normal_alarm_impl.d.ts +39 -39
- package/dist/src/alarms_and_conditions/ua_off_normal_alarm_impl.js +135 -135
- package/dist/src/alarms_and_conditions/ua_system_off_normal_alarm.d.ts +16 -0
- package/dist/src/alarms_and_conditions/ua_system_off_normal_alarm.js +18 -0
- package/dist/src/alarms_and_conditions/ua_system_off_normal_alarm.js.map +1 -0
- package/dist/src/alarms_and_conditions/ua_system_off_normal_alarm_impl.d.ts +16 -16
- package/dist/src/alarms_and_conditions/ua_system_off_normal_alarm_impl.js +17 -17
- package/dist/src/apply_condition_refresh.d.ts +6 -6
- package/dist/src/apply_condition_refresh.js +27 -27
- package/dist/src/base_node.d.ts +270 -0
- package/dist/src/base_node.js +1299 -0
- package/dist/src/base_node.js.map +1 -0
- package/dist/src/base_node_impl.d.ts +281 -281
- package/dist/src/base_node_impl.js +1395 -1395
- package/dist/src/base_node_private.d.ts +61 -61
- package/dist/src/base_node_private.js +705 -705
- package/dist/src/data_access/add_dataItem_stuff.d.ts +11 -11
- package/dist/src/data_access/add_dataItem_stuff.js +61 -61
- package/dist/src/data_access/check_variant_compatibility_ua_analog_item.d.ts +1 -1
- package/dist/src/data_access/check_variant_compatibility_ua_analog_item.js +34 -34
- package/dist/src/data_access/ua_analog_item.d.ts +13 -0
- package/dist/src/data_access/ua_analog_item.js +37 -0
- package/dist/src/data_access/ua_analog_item.js.map +1 -0
- package/dist/src/data_access/ua_data_item.d.ts +16 -0
- package/dist/src/data_access/ua_data_item.js +66 -0
- package/dist/src/data_access/ua_data_item.js.map +1 -0
- package/dist/src/data_access/ua_multistate_discrete.d.ts +24 -0
- package/dist/src/data_access/ua_multistate_discrete.js +132 -0
- package/dist/src/data_access/ua_multistate_discrete.js.map +1 -0
- package/dist/src/data_access/ua_multistate_discrete_impl.d.ts +32 -32
- package/dist/src/data_access/ua_multistate_discrete_impl.js +130 -130
- package/dist/src/data_access/ua_multistate_value_discrete.d.ts +51 -51
- package/dist/src/data_access/ua_multistate_value_discrete.js +249 -249
- package/dist/src/data_access/ua_two_state_discrete.d.ts +25 -25
- package/dist/src/data_access/ua_two_state_discrete.js +153 -153
- package/dist/src/event_data.d.ts +29 -29
- package/dist/src/event_data.js +95 -95
- package/dist/src/extension_object_array_node.d.ts +61 -61
- package/dist/src/extension_object_array_node.js +276 -276
- package/dist/src/historical_access/address_space_historical_data_node.d.ts +26 -26
- package/dist/src/historical_access/address_space_historical_data_node.js +630 -630
- package/dist/src/index_current.d.ts +45 -45
- package/dist/src/index_current.js +77 -77
- package/dist/src/namespace.d.ts +472 -0
- package/dist/src/namespace.js +1759 -0
- package/dist/src/namespace.js.map +1 -0
- package/dist/src/namespace_impl.d.ts +457 -457
- package/dist/src/namespace_impl.js +1733 -1733
- package/dist/src/namespace_private.d.ts +21 -21
- package/dist/src/namespace_private.js +32 -32
- package/dist/src/nodeid_manager.d.ts +36 -36
- package/dist/src/nodeid_manager.js +197 -197
- package/dist/src/nodeset_tools/adjust_namespace_array.d.ts +2 -2
- package/dist/src/nodeset_tools/adjust_namespace_array.js +13 -13
- package/dist/src/nodeset_tools/construct_namespace_dependency.d.ts +2 -2
- package/dist/src/nodeset_tools/construct_namespace_dependency.js +83 -83
- package/dist/src/nodeset_tools/nodeset_to_xml.d.ts +2 -2
- package/dist/src/nodeset_tools/nodeset_to_xml.js +1143 -1143
- package/dist/src/nodeset_tools/typedictionary_to_xml.d.ts +2 -2
- package/dist/src/nodeset_tools/typedictionary_to_xml.js +154 -154
- package/dist/src/reference.d.ts +43 -0
- package/dist/src/reference.js +138 -0
- package/dist/src/reference.js.map +1 -0
- package/dist/src/reference_impl.d.ts +43 -43
- package/dist/src/reference_impl.js +139 -139
- package/dist/src/role_permissions.d.ts +2 -2
- package/dist/src/role_permissions.js +10 -10
- package/dist/src/session_context.d.ts +4 -0
- package/dist/src/session_context.js +9 -0
- package/dist/src/session_context.js.map +1 -0
- package/dist/src/state_machine/finite_state_machine.d.ts +67 -67
- package/dist/src/state_machine/finite_state_machine.js +353 -353
- package/dist/src/state_machine/ua_shelving_state_machine_ex.d.ts +34 -34
- package/dist/src/state_machine/ua_shelving_state_machine_ex.js +250 -250
- package/dist/src/state_machine/ua_two_state_variable.d.ts +61 -61
- package/dist/src/state_machine/ua_two_state_variable.js +331 -331
- package/dist/src/tool_isSupertypeOf.d.ts +17 -17
- package/dist/src/tool_isSupertypeOf.js +108 -108
- package/dist/src/ua_condition_type.d.ts +8 -8
- package/dist/src/ua_condition_type.js +2 -2
- package/dist/src/ua_data_type.d.ts +81 -0
- package/dist/src/ua_data_type.js +259 -0
- package/dist/src/ua_data_type.js.map +1 -0
- package/dist/src/ua_data_type_impl.d.ts +93 -93
- package/dist/src/ua_data_type_impl.js +368 -368
- package/dist/src/ua_method.d.ts +33 -0
- package/dist/src/ua_method.js +194 -0
- package/dist/src/ua_method.js.map +1 -0
- package/dist/src/ua_method_impl.d.ts +41 -41
- package/dist/src/ua_method_impl.js +208 -208
- package/dist/src/ua_object.d.ts +27 -0
- package/dist/src/ua_object.js +153 -0
- package/dist/src/ua_object.js.map +1 -0
- package/dist/src/ua_object_impl.d.ts +33 -33
- package/dist/src/ua_object_impl.js +156 -156
- package/dist/src/ua_object_type.d.ts +49 -0
- package/dist/src/ua_object_type.js +123 -0
- package/dist/src/ua_object_type.js.map +1 -0
- package/dist/src/ua_object_type_impl.d.ts +48 -48
- package/dist/src/ua_object_type_impl.js +124 -124
- package/dist/src/ua_reference_type.d.ts +31 -0
- package/dist/src/ua_reference_type.js +108 -0
- package/dist/src/ua_reference_type.js.map +1 -0
- package/dist/src/ua_reference_type_impl.d.ts +43 -43
- package/dist/src/ua_reference_type_impl.js +139 -139
- package/dist/src/ua_variable.d.ts +346 -0
- package/dist/src/ua_variable.js +1651 -0
- package/dist/src/ua_variable.js.map +1 -0
- package/dist/src/ua_variable_impl.d.ts +351 -351
- package/dist/src/ua_variable_impl.js +1604 -1604
- package/dist/src/ua_variable_impl_ext_obj.d.ts +17 -17
- package/dist/src/ua_variable_impl_ext_obj.js +437 -437
- package/dist/src/ua_variable_type.d.ts +57 -0
- package/dist/src/ua_variable_type.js +530 -0
- package/dist/src/ua_variable_type.js.map +1 -0
- package/dist/src/ua_variable_type_impl.d.ts +62 -62
- package/dist/src/ua_variable_type_impl.js +570 -564
- package/dist/src/ua_variable_type_impl.js.map +1 -1
- package/dist/src/ua_view.d.ts +16 -0
- package/dist/src/ua_view.js +41 -0
- package/dist/src/ua_view.js.map +1 -0
- package/dist/src/ua_view_impl.d.ts +15 -15
- package/dist/src/ua_view_impl.js +36 -36
- package/distHelpers/add_event_generator_object.d.ts +3 -3
- package/distHelpers/add_event_generator_object.js +65 -65
- package/distHelpers/alarms_and_conditions_demo.d.ts +10 -10
- package/distHelpers/alarms_and_conditions_demo.js +114 -114
- package/distHelpers/assertHasMatchingReference.d.ts +19 -19
- package/distHelpers/assertHasMatchingReference.js +40 -40
- package/distHelpers/boiler_system.d.ts +113 -113
- package/distHelpers/boiler_system.js +395 -395
- package/distHelpers/create_minimalist_address_space_nodeset.d.ts +5 -5
- package/distHelpers/create_minimalist_address_space_nodeset.js +171 -171
- package/distHelpers/date_utils.d.ts +3 -3
- package/distHelpers/date_utils.js +9 -9
- package/distHelpers/dump_statemachine.js +127 -127
- package/distHelpers/get_address_space_fixture.d.ts +1 -1
- package/distHelpers/get_address_space_fixture.js +30 -30
- package/distHelpers/get_mini_address_space.d.ts +7 -7
- package/distHelpers/get_mini_address_space.js +36 -36
- package/distHelpers/index.d.ts +12 -12
- package/distHelpers/index.js +28 -28
- package/distHelpers/mock_session.d.ts +14 -14
- package/distHelpers/mock_session.js +25 -25
- package/distNodeJS/generate_address_space.d.ts +4 -4
- package/distNodeJS/generate_address_space.js +41 -41
- package/distNodeJS/index.d.ts +1 -1
- package/distNodeJS/index.js +17 -17
- package/package.json +38 -38
- package/src/ua_variable_type_impl.ts +11 -4
- package/test_helpers/test_fixtures/eurange_issue.xml +73 -0
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.promoteObjectsAndVariables = exports.promoteObjectAndVariablesInNamespace = exports.g_promotableObject = void 0;
|
|
13
|
-
const node_opcua_data_model_1 = require("node-opcua-data-model");
|
|
14
|
-
const node_opcua_debug_1 = require("node-opcua-debug");
|
|
15
|
-
const debugLog = (0, node_opcua_debug_1.make_debugLog)(__filename);
|
|
16
|
-
const doDebug = (0, node_opcua_debug_1.checkDebugFlag)(__filename);
|
|
17
|
-
exports.g_promotableObject = {};
|
|
18
|
-
function promoteObjectAndVariablesInNamespace(namespace) {
|
|
19
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
20
|
-
const namespaceP = namespace;
|
|
21
|
-
for (const a of namespaceP.nodeIterator()) {
|
|
22
|
-
if (a.nodeClass === node_opcua_data_model_1.NodeClass.Object || a.nodeClass === node_opcua_data_model_1.NodeClass.Variable) {
|
|
23
|
-
const aa = a;
|
|
24
|
-
if (aa.typeDefinition) {
|
|
25
|
-
const promoter = exports.g_promotableObject[aa.typeDefinition.toString()];
|
|
26
|
-
if (promoter) {
|
|
27
|
-
const before = a.constructor.name;
|
|
28
|
-
promoter(a);
|
|
29
|
-
const after = a.constructor.name;
|
|
30
|
-
if (doDebug) {
|
|
31
|
-
debugLog(`promoting ${a.browseName.toString()} from ${before} to ${after}`);
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
exports.promoteObjectAndVariablesInNamespace = promoteObjectAndVariablesInNamespace;
|
|
40
|
-
function promoteObjectsAndVariables(addressSpace) {
|
|
41
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
42
|
-
for (const namespace of addressSpace.getNamespaceArray()) {
|
|
43
|
-
promoteObjectAndVariablesInNamespace(namespace);
|
|
44
|
-
}
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
exports.promoteObjectsAndVariables = promoteObjectsAndVariables;
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.promoteObjectsAndVariables = exports.promoteObjectAndVariablesInNamespace = exports.g_promotableObject = void 0;
|
|
13
|
+
const node_opcua_data_model_1 = require("node-opcua-data-model");
|
|
14
|
+
const node_opcua_debug_1 = require("node-opcua-debug");
|
|
15
|
+
const debugLog = (0, node_opcua_debug_1.make_debugLog)(__filename);
|
|
16
|
+
const doDebug = (0, node_opcua_debug_1.checkDebugFlag)(__filename);
|
|
17
|
+
exports.g_promotableObject = {};
|
|
18
|
+
function promoteObjectAndVariablesInNamespace(namespace) {
|
|
19
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
20
|
+
const namespaceP = namespace;
|
|
21
|
+
for (const a of namespaceP.nodeIterator()) {
|
|
22
|
+
if (a.nodeClass === node_opcua_data_model_1.NodeClass.Object || a.nodeClass === node_opcua_data_model_1.NodeClass.Variable) {
|
|
23
|
+
const aa = a;
|
|
24
|
+
if (aa.typeDefinition) {
|
|
25
|
+
const promoter = exports.g_promotableObject[aa.typeDefinition.toString()];
|
|
26
|
+
if (promoter) {
|
|
27
|
+
const before = a.constructor.name;
|
|
28
|
+
promoter(a);
|
|
29
|
+
const after = a.constructor.name;
|
|
30
|
+
if (doDebug) {
|
|
31
|
+
debugLog(`promoting ${a.browseName.toString()} from ${before} to ${after}`);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
exports.promoteObjectAndVariablesInNamespace = promoteObjectAndVariablesInNamespace;
|
|
40
|
+
function promoteObjectsAndVariables(addressSpace) {
|
|
41
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
42
|
+
for (const namespace of addressSpace.getNamespaceArray()) {
|
|
43
|
+
promoteObjectAndVariablesInNamespace(namespace);
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
exports.promoteObjectsAndVariables = promoteObjectsAndVariables;
|
|
48
48
|
//# sourceMappingURL=namespace_post_step.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { NodeIdLike } from "node-opcua-nodeid";
|
|
2
|
-
import { UAObject, UAVariable } from "node-opcua-address-space-base";
|
|
3
|
-
export declare function registerNodePromoter(nodeId: NodeIdLike, promoter: ((node: UAVariable) => void) | ((node: UAObject) => void)): void;
|
|
1
|
+
import { NodeIdLike } from "node-opcua-nodeid";
|
|
2
|
+
import { UAObject, UAVariable } from "node-opcua-address-space-base";
|
|
3
|
+
export declare function registerNodePromoter(nodeId: NodeIdLike, promoter: ((node: UAVariable) => void) | ((node: UAObject) => void)): void;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.registerNodePromoter = void 0;
|
|
4
|
-
const node_opcua_nodeid_1 = require("node-opcua-nodeid");
|
|
5
|
-
const namespace_post_step_1 = require("./namespace_post_step");
|
|
6
|
-
function registerNodePromoter(nodeId, promoter) {
|
|
7
|
-
namespace_post_step_1.g_promotableObject[(0, node_opcua_nodeid_1.resolveNodeId)(nodeId).toString()] = promoter;
|
|
8
|
-
}
|
|
9
|
-
exports.registerNodePromoter = registerNodePromoter;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.registerNodePromoter = void 0;
|
|
4
|
+
const node_opcua_nodeid_1 = require("node-opcua-nodeid");
|
|
5
|
+
const namespace_post_step_1 = require("./namespace_post_step");
|
|
6
|
+
function registerNodePromoter(nodeId, promoter) {
|
|
7
|
+
namespace_post_step_1.g_promotableObject[(0, node_opcua_nodeid_1.resolveNodeId)(nodeId).toString()] = promoter;
|
|
8
|
+
}
|
|
9
|
+
exports.registerNodePromoter = registerNodePromoter;
|
|
10
10
|
//# sourceMappingURL=register_node_promoter.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { INamespace } from "node-opcua-address-space-base";
|
|
2
|
-
import { INamespaceAlarmAndCondition } from "./namespace_alarm_and_condition";
|
|
3
|
-
import { INamespaceDataAccess } from "./namespace_data_access";
|
|
4
|
-
import { INamespaceMachineState } from "./namespace_machine_state";
|
|
5
|
-
export interface Namespace extends INamespace, INamespaceAlarmAndCondition, INamespaceDataAccess, INamespaceMachineState {
|
|
6
|
-
}
|
|
1
|
+
import { INamespace } from "node-opcua-address-space-base";
|
|
2
|
+
import { INamespaceAlarmAndCondition } from "./namespace_alarm_and_condition";
|
|
3
|
+
import { INamespaceDataAccess } from "./namespace_data_access";
|
|
4
|
+
import { INamespaceMachineState } from "./namespace_machine_state";
|
|
5
|
+
export interface Namespace extends INamespace, INamespaceAlarmAndCondition, INamespaceDataAccess, INamespaceMachineState {
|
|
6
|
+
}
|
package/dist/source/namespace.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
//# sourceMappingURL=namespace.js.map
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { UAEventType } from "node-opcua-address-space-base";
|
|
2
|
-
import { NodeId } from "node-opcua-nodeid";
|
|
3
|
-
import { UAAcknowledgeableConditionEx } from "../src/alarms_and_conditions/ua_acknowledgeable_condition_impl";
|
|
4
|
-
import { UAAlarmConditionEx } from "../src/alarms_and_conditions/ua_alarm_condition_impl";
|
|
5
|
-
import { UAConditionEx } from "../src/alarms_and_conditions/ua_condition_impl";
|
|
6
|
-
import { UADiscreteAlarmEx } from "../src/alarms_and_conditions/ua_discrete_alarm_impl";
|
|
7
|
-
import { UAExclusiveDeviationAlarmEx } from "../src/alarms_and_conditions/ua_exclusive_deviation_alarm_impl";
|
|
8
|
-
import { UAExclusiveLimitAlarmEx } from "../src/alarms_and_conditions/ua_exclusive_limit_alarm_impl";
|
|
9
|
-
import { UALimitAlarmEx } from "../src/alarms_and_conditions/ua_limit_alarm_impl";
|
|
10
|
-
import { UANonExclusiveDeviationAlarmEx } from "../src/alarms_and_conditions/ua_non_exclusive_deviation_alarm_impl";
|
|
11
|
-
import { UANonExclusiveLimitAlarmEx } from "../src/alarms_and_conditions/ua_non_exclusive_limit_alarm_impl";
|
|
12
|
-
import { UAOffNormalAlarmEx } from "../src/alarms_and_conditions/ua_off_normal_alarm_impl";
|
|
13
|
-
export interface INamespaceAlarmAndCondition {
|
|
14
|
-
instantiateCondition(conditionTypeId: UAEventType | NodeId | string, options: any, data?: any): UAConditionEx;
|
|
15
|
-
instantiateAcknowledgeableCondition(conditionTypeId: UAEventType | NodeId | string, options: any, data?: any): UAAcknowledgeableConditionEx;
|
|
16
|
-
instantiateAlarmCondition(alarmConditionTypeId: UAEventType | NodeId | string, options: any, data?: any): UAAlarmConditionEx;
|
|
17
|
-
instantiateLimitAlarm(limitAlarmTypeId: UAEventType | NodeId | string, options: any, data?: any): UALimitAlarmEx;
|
|
18
|
-
instantiateExclusiveLimitAlarm(exclusiveLimitAlarmTypeId: UAEventType | NodeId | string, options: any, data?: any): UAExclusiveLimitAlarmEx;
|
|
19
|
-
instantiateExclusiveDeviationAlarm(options: any, data?: any): UAExclusiveDeviationAlarmEx;
|
|
20
|
-
instantiateNonExclusiveLimitAlarm(nonExclusiveLimitAlarmTypeId: UAEventType | NodeId | string, options: any, data?: any): UANonExclusiveLimitAlarmEx;
|
|
21
|
-
instantiateNonExclusiveDeviationAlarm(options: any, data?: any): UANonExclusiveDeviationAlarmEx;
|
|
22
|
-
instantiateDiscreteAlarm(discreteAlarmType: UAEventType | NodeId | string, options: any, data?: any): UADiscreteAlarmEx;
|
|
23
|
-
instantiateOffNormalAlarm(options: any, data?: any): UAOffNormalAlarmEx;
|
|
24
|
-
}
|
|
1
|
+
import { UAEventType } from "node-opcua-address-space-base";
|
|
2
|
+
import { NodeId } from "node-opcua-nodeid";
|
|
3
|
+
import { UAAcknowledgeableConditionEx } from "../src/alarms_and_conditions/ua_acknowledgeable_condition_impl";
|
|
4
|
+
import { UAAlarmConditionEx } from "../src/alarms_and_conditions/ua_alarm_condition_impl";
|
|
5
|
+
import { UAConditionEx } from "../src/alarms_and_conditions/ua_condition_impl";
|
|
6
|
+
import { UADiscreteAlarmEx } from "../src/alarms_and_conditions/ua_discrete_alarm_impl";
|
|
7
|
+
import { UAExclusiveDeviationAlarmEx } from "../src/alarms_and_conditions/ua_exclusive_deviation_alarm_impl";
|
|
8
|
+
import { UAExclusiveLimitAlarmEx } from "../src/alarms_and_conditions/ua_exclusive_limit_alarm_impl";
|
|
9
|
+
import { UALimitAlarmEx } from "../src/alarms_and_conditions/ua_limit_alarm_impl";
|
|
10
|
+
import { UANonExclusiveDeviationAlarmEx } from "../src/alarms_and_conditions/ua_non_exclusive_deviation_alarm_impl";
|
|
11
|
+
import { UANonExclusiveLimitAlarmEx } from "../src/alarms_and_conditions/ua_non_exclusive_limit_alarm_impl";
|
|
12
|
+
import { UAOffNormalAlarmEx } from "../src/alarms_and_conditions/ua_off_normal_alarm_impl";
|
|
13
|
+
export interface INamespaceAlarmAndCondition {
|
|
14
|
+
instantiateCondition(conditionTypeId: UAEventType | NodeId | string, options: any, data?: any): UAConditionEx;
|
|
15
|
+
instantiateAcknowledgeableCondition(conditionTypeId: UAEventType | NodeId | string, options: any, data?: any): UAAcknowledgeableConditionEx;
|
|
16
|
+
instantiateAlarmCondition(alarmConditionTypeId: UAEventType | NodeId | string, options: any, data?: any): UAAlarmConditionEx;
|
|
17
|
+
instantiateLimitAlarm(limitAlarmTypeId: UAEventType | NodeId | string, options: any, data?: any): UALimitAlarmEx;
|
|
18
|
+
instantiateExclusiveLimitAlarm(exclusiveLimitAlarmTypeId: UAEventType | NodeId | string, options: any, data?: any): UAExclusiveLimitAlarmEx;
|
|
19
|
+
instantiateExclusiveDeviationAlarm(options: any, data?: any): UAExclusiveDeviationAlarmEx;
|
|
20
|
+
instantiateNonExclusiveLimitAlarm(nonExclusiveLimitAlarmTypeId: UAEventType | NodeId | string, options: any, data?: any): UANonExclusiveLimitAlarmEx;
|
|
21
|
+
instantiateNonExclusiveDeviationAlarm(options: any, data?: any): UANonExclusiveDeviationAlarmEx;
|
|
22
|
+
instantiateDiscreteAlarm(discreteAlarmType: UAEventType | NodeId | string, options: any, data?: any): UADiscreteAlarmEx;
|
|
23
|
+
instantiateOffNormalAlarm(options: any, data?: any): UAOffNormalAlarmEx;
|
|
24
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
//# sourceMappingURL=namespace_alarm_and_condition.js.map
|
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
import { AddVariableOptionsWithoutValue, AddYArrayItemOptions, BindVariableOptions } from "node-opcua-address-space-base";
|
|
2
|
-
import { NodeIdLike } from "node-opcua-nodeid";
|
|
3
|
-
import { UAAnalogItem, UADataItem } from "node-opcua-nodeset-ua";
|
|
4
|
-
import { EUInformation, EUInformationOptions } from "node-opcua-types";
|
|
5
|
-
import { DataType, VariantArrayType } from "node-opcua-variant";
|
|
6
|
-
import { UAMultiStateDiscreteEx } from "./interfaces/data_access/ua_multistate_discrete_ex";
|
|
7
|
-
import { UAMultiStateValueDiscreteEx } from "./interfaces/data_access/ua_multistate_value_discrete_ex";
|
|
8
|
-
import { UATwoStateDiscreteEx } from "./interfaces/data_access/ua_two_state_discrete_ex";
|
|
9
|
-
import { AddMultiStateDiscreteOptions, AddMultiStateValueDiscreteOptions, AddTwoStateDiscreteOptions, AddTwoStateVariableOptions } from "./address_space_ts";
|
|
10
|
-
import { UATwoStateVariableEx } from "./ua_two_state_variable_ex";
|
|
11
|
-
import { UAYArrayItemEx } from "./interfaces/data_access/ua_y_array_item_ex";
|
|
12
|
-
export interface AddDataItemOptions extends AddVariableOptionsWithoutValue {
|
|
13
|
-
arrayType?: VariantArrayType;
|
|
14
|
-
value?: BindVariableOptions;
|
|
15
|
-
/** @example "(tempA -25) + tempB" */
|
|
16
|
-
definition?: string;
|
|
17
|
-
/** @example 0.5 */
|
|
18
|
-
valuePrecision?: number;
|
|
19
|
-
}
|
|
20
|
-
export interface AddAnalogDataItemOptions extends AddDataItemOptions {
|
|
21
|
-
value?: BindVariableOptions;
|
|
22
|
-
engineeringUnitsRange?: {
|
|
23
|
-
low: number;
|
|
24
|
-
high: number;
|
|
25
|
-
};
|
|
26
|
-
instrumentRange?: {
|
|
27
|
-
low: number;
|
|
28
|
-
high: number;
|
|
29
|
-
};
|
|
30
|
-
engineeringUnits?: EUInformationOptions | EUInformation;
|
|
31
|
-
minimumSamplingInterval?: number;
|
|
32
|
-
dataType?: string | NodeIdLike;
|
|
33
|
-
}
|
|
34
|
-
export interface INamespaceDataAccess {
|
|
35
|
-
addDataItem<T, DT extends DataType>(options: AddDataItemOptions): UADataItem<T, DT>;
|
|
36
|
-
addAnalogDataItem<T, DT extends DataType>(options: AddAnalogDataItemOptions): UAAnalogItem<T, DT>;
|
|
37
|
-
addYArrayItem<DT extends DataType.Double | DataType.Float>(options: AddYArrayItemOptions): UAYArrayItemEx<DT>;
|
|
38
|
-
addTwoStateVariable(options: AddTwoStateVariableOptions): UATwoStateVariableEx;
|
|
39
|
-
addTwoStateDiscrete(options: AddTwoStateDiscreteOptions): UATwoStateDiscreteEx;
|
|
40
|
-
addMultiStateDiscrete<T, DT extends DataType>(options: AddMultiStateDiscreteOptions): UAMultiStateDiscreteEx<T, DT>;
|
|
41
|
-
addMultiStateValueDiscrete<T, DT extends DataType>(options: AddMultiStateValueDiscreteOptions): UAMultiStateValueDiscreteEx<T, DT>;
|
|
42
|
-
}
|
|
1
|
+
import { AddVariableOptionsWithoutValue, AddYArrayItemOptions, BindVariableOptions } from "node-opcua-address-space-base";
|
|
2
|
+
import { NodeIdLike } from "node-opcua-nodeid";
|
|
3
|
+
import { UAAnalogItem, UADataItem } from "node-opcua-nodeset-ua";
|
|
4
|
+
import { EUInformation, EUInformationOptions } from "node-opcua-types";
|
|
5
|
+
import { DataType, VariantArrayType } from "node-opcua-variant";
|
|
6
|
+
import { UAMultiStateDiscreteEx } from "./interfaces/data_access/ua_multistate_discrete_ex";
|
|
7
|
+
import { UAMultiStateValueDiscreteEx } from "./interfaces/data_access/ua_multistate_value_discrete_ex";
|
|
8
|
+
import { UATwoStateDiscreteEx } from "./interfaces/data_access/ua_two_state_discrete_ex";
|
|
9
|
+
import { AddMultiStateDiscreteOptions, AddMultiStateValueDiscreteOptions, AddTwoStateDiscreteOptions, AddTwoStateVariableOptions } from "./address_space_ts";
|
|
10
|
+
import { UATwoStateVariableEx } from "./ua_two_state_variable_ex";
|
|
11
|
+
import { UAYArrayItemEx } from "./interfaces/data_access/ua_y_array_item_ex";
|
|
12
|
+
export interface AddDataItemOptions extends AddVariableOptionsWithoutValue {
|
|
13
|
+
arrayType?: VariantArrayType;
|
|
14
|
+
value?: BindVariableOptions;
|
|
15
|
+
/** @example "(tempA -25) + tempB" */
|
|
16
|
+
definition?: string;
|
|
17
|
+
/** @example 0.5 */
|
|
18
|
+
valuePrecision?: number;
|
|
19
|
+
}
|
|
20
|
+
export interface AddAnalogDataItemOptions extends AddDataItemOptions {
|
|
21
|
+
value?: BindVariableOptions;
|
|
22
|
+
engineeringUnitsRange?: {
|
|
23
|
+
low: number;
|
|
24
|
+
high: number;
|
|
25
|
+
};
|
|
26
|
+
instrumentRange?: {
|
|
27
|
+
low: number;
|
|
28
|
+
high: number;
|
|
29
|
+
};
|
|
30
|
+
engineeringUnits?: EUInformationOptions | EUInformation;
|
|
31
|
+
minimumSamplingInterval?: number;
|
|
32
|
+
dataType?: string | NodeIdLike;
|
|
33
|
+
}
|
|
34
|
+
export interface INamespaceDataAccess {
|
|
35
|
+
addDataItem<T, DT extends DataType>(options: AddDataItemOptions): UADataItem<T, DT>;
|
|
36
|
+
addAnalogDataItem<T, DT extends DataType>(options: AddAnalogDataItemOptions): UAAnalogItem<T, DT>;
|
|
37
|
+
addYArrayItem<DT extends DataType.Double | DataType.Float>(options: AddYArrayItemOptions): UAYArrayItemEx<DT>;
|
|
38
|
+
addTwoStateVariable(options: AddTwoStateVariableOptions): UATwoStateVariableEx;
|
|
39
|
+
addTwoStateDiscrete(options: AddTwoStateDiscreteOptions): UATwoStateDiscreteEx;
|
|
40
|
+
addMultiStateDiscrete<T, DT extends DataType>(options: AddMultiStateDiscreteOptions): UAMultiStateDiscreteEx<T, DT>;
|
|
41
|
+
addMultiStateValueDiscrete<T, DT extends DataType>(options: AddMultiStateValueDiscreteOptions): UAMultiStateValueDiscreteEx<T, DT>;
|
|
42
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
//# sourceMappingURL=namespace_data_access.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { UAObject, UAObjectType } from "node-opcua-address-space-base";
|
|
2
|
-
import { UAState } from "node-opcua-nodeset-ua";
|
|
3
|
-
import { UATransitionEx } from "./interfaces/state_machine/ua_transition_ex";
|
|
4
|
-
export interface INamespaceMachineState {
|
|
5
|
-
addState(component: UAObject | UAObjectType, stateName: string, stateNumber: number, isInitialState?: boolean): UAState;
|
|
6
|
-
addTransition(component: UAObject | UAObjectType, fromState: string, toState: string, transitionNumber: number): UATransitionEx;
|
|
7
|
-
}
|
|
1
|
+
import { UAObject, UAObjectType } from "node-opcua-address-space-base";
|
|
2
|
+
import { UAState } from "node-opcua-nodeset-ua";
|
|
3
|
+
import { UATransitionEx } from "./interfaces/state_machine/ua_transition_ex";
|
|
4
|
+
export interface INamespaceMachineState {
|
|
5
|
+
addState(component: UAObject | UAObjectType, stateName: string, stateNumber: number, isInitialState?: boolean): UAState;
|
|
6
|
+
addTransition(component: UAObject | UAObjectType, fromState: string, toState: string, transitionNumber: number): UATransitionEx;
|
|
7
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
//# sourceMappingURL=namespace_machine_state.js.map
|
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
import { DataValue } from "node-opcua-data-value";
|
|
3
|
-
import { NodeId } from "node-opcua-nodeid";
|
|
4
|
-
import { ArgumentDefinition, BrowseDescriptionLike, CallMethodRequestLike, IBasicSession, MethodId, ResponseCallback } from "node-opcua-pseudo-session";
|
|
5
|
-
import { BrowseResult } from "node-opcua-service-browse";
|
|
6
|
-
import { CallMethodResult } from "node-opcua-service-call";
|
|
7
|
-
import { BrowsePath, BrowsePathResult } from "node-opcua-service-translate-browse-path";
|
|
8
|
-
import { StatusCode } from "node-opcua-status-code";
|
|
9
|
-
import { WriteValueOptions, ReadValueIdOptions } from "node-opcua-types";
|
|
10
|
-
import { IAddressSpace, ISessionContext } from "node-opcua-address-space-base";
|
|
11
|
-
/**
|
|
12
|
-
* Pseudo session is an helper object that exposes the same async methods
|
|
13
|
-
* than the ClientSession. It can be used on a server address space.
|
|
14
|
-
*
|
|
15
|
-
* Code reused !
|
|
16
|
-
* The primary benefit of this object is that its makes advanced OPCUA
|
|
17
|
-
* operations that uses browse, translate, read, write etc similar
|
|
18
|
-
* whether we work inside a server or through a client session.
|
|
19
|
-
*
|
|
20
|
-
*/
|
|
21
|
-
export declare class PseudoSession implements IBasicSession {
|
|
22
|
-
requestedMaxReferencesPerNode: number;
|
|
23
|
-
private _sessionId;
|
|
24
|
-
private readonly addressSpace;
|
|
25
|
-
private readonly continuationPointManager;
|
|
26
|
-
private readonly context;
|
|
27
|
-
constructor(addressSpace: IAddressSpace, context?: ISessionContext);
|
|
28
|
-
getSessionId(): NodeId;
|
|
29
|
-
browse(nodeToBrowse: BrowseDescriptionLike, callback: ResponseCallback<BrowseResult>): void;
|
|
30
|
-
browse(nodesToBrowse: BrowseDescriptionLike[], callback: ResponseCallback<BrowseResult[]>): void;
|
|
31
|
-
browse(nodeToBrowse: BrowseDescriptionLike): Promise<BrowseResult>;
|
|
32
|
-
browse(nodesToBrowse: BrowseDescriptionLike[]): Promise<BrowseResult[]>;
|
|
33
|
-
read(nodeToRead: ReadValueIdOptions, callback: ResponseCallback<DataValue>): void;
|
|
34
|
-
read(nodesToRead: ReadValueIdOptions[], callback: ResponseCallback<DataValue[]>): void;
|
|
35
|
-
read(nodeToRead: ReadValueIdOptions): Promise<DataValue>;
|
|
36
|
-
read(nodesToRead: ReadValueIdOptions[]): Promise<DataValue[]>;
|
|
37
|
-
browseNext(continuationPoint: Buffer, releaseContinuationPoints: boolean, callback: ResponseCallback<BrowseResult>): void;
|
|
38
|
-
browseNext(continuationPoints: Buffer[], releaseContinuationPoints: boolean, callback: ResponseCallback<BrowseResult[]>): void;
|
|
39
|
-
browseNext(continuationPoint: Buffer, releaseContinuationPoints: boolean): Promise<BrowseResult>;
|
|
40
|
-
browseNext(continuationPoints: Buffer[], releaseContinuationPoints: boolean): Promise<BrowseResult[]>;
|
|
41
|
-
call(methodToCall: CallMethodRequestLike, callback: ResponseCallback<CallMethodResult>): void;
|
|
42
|
-
call(methodsToCall: CallMethodRequestLike[], callback: ResponseCallback<CallMethodResult[]>): void;
|
|
43
|
-
call(methodToCall: CallMethodRequestLike): Promise<CallMethodResult>;
|
|
44
|
-
call(methodsToCall: CallMethodRequestLike[]): Promise<CallMethodResult[]>;
|
|
45
|
-
getArgumentDefinition(methodId: MethodId): Promise<ArgumentDefinition>;
|
|
46
|
-
getArgumentDefinition(methodId: MethodId, callback: ResponseCallback<ArgumentDefinition>): void;
|
|
47
|
-
translateBrowsePath(browsePaths: BrowsePath[], callback: ResponseCallback<BrowsePathResult[]>): void;
|
|
48
|
-
translateBrowsePath(browsePath: BrowsePath, callback: ResponseCallback<BrowsePathResult>): void;
|
|
49
|
-
translateBrowsePath(browsePath: BrowsePath): Promise<BrowsePathResult>;
|
|
50
|
-
translateBrowsePath(browsePaths: BrowsePath[]): Promise<BrowsePathResult[]>;
|
|
51
|
-
write(nodeToWrite: WriteValueOptions, callback: ResponseCallback<StatusCode>): void;
|
|
52
|
-
write(nodesToWrite: WriteValueOptions[], callback: ResponseCallback<StatusCode[]>): void;
|
|
53
|
-
write(nodeToWrite: WriteValueOptions): Promise<StatusCode>;
|
|
54
|
-
write(nodesToWrite: WriteValueOptions[]): Promise<StatusCode[]>;
|
|
55
|
-
}
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { DataValue } from "node-opcua-data-value";
|
|
3
|
+
import { NodeId } from "node-opcua-nodeid";
|
|
4
|
+
import { ArgumentDefinition, BrowseDescriptionLike, CallMethodRequestLike, IBasicSession, MethodId, ResponseCallback } from "node-opcua-pseudo-session";
|
|
5
|
+
import { BrowseResult } from "node-opcua-service-browse";
|
|
6
|
+
import { CallMethodResult } from "node-opcua-service-call";
|
|
7
|
+
import { BrowsePath, BrowsePathResult } from "node-opcua-service-translate-browse-path";
|
|
8
|
+
import { StatusCode } from "node-opcua-status-code";
|
|
9
|
+
import { WriteValueOptions, ReadValueIdOptions } from "node-opcua-types";
|
|
10
|
+
import { IAddressSpace, ISessionContext } from "node-opcua-address-space-base";
|
|
11
|
+
/**
|
|
12
|
+
* Pseudo session is an helper object that exposes the same async methods
|
|
13
|
+
* than the ClientSession. It can be used on a server address space.
|
|
14
|
+
*
|
|
15
|
+
* Code reused !
|
|
16
|
+
* The primary benefit of this object is that its makes advanced OPCUA
|
|
17
|
+
* operations that uses browse, translate, read, write etc similar
|
|
18
|
+
* whether we work inside a server or through a client session.
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
export declare class PseudoSession implements IBasicSession {
|
|
22
|
+
requestedMaxReferencesPerNode: number;
|
|
23
|
+
private _sessionId;
|
|
24
|
+
private readonly addressSpace;
|
|
25
|
+
private readonly continuationPointManager;
|
|
26
|
+
private readonly context;
|
|
27
|
+
constructor(addressSpace: IAddressSpace, context?: ISessionContext);
|
|
28
|
+
getSessionId(): NodeId;
|
|
29
|
+
browse(nodeToBrowse: BrowseDescriptionLike, callback: ResponseCallback<BrowseResult>): void;
|
|
30
|
+
browse(nodesToBrowse: BrowseDescriptionLike[], callback: ResponseCallback<BrowseResult[]>): void;
|
|
31
|
+
browse(nodeToBrowse: BrowseDescriptionLike): Promise<BrowseResult>;
|
|
32
|
+
browse(nodesToBrowse: BrowseDescriptionLike[]): Promise<BrowseResult[]>;
|
|
33
|
+
read(nodeToRead: ReadValueIdOptions, callback: ResponseCallback<DataValue>): void;
|
|
34
|
+
read(nodesToRead: ReadValueIdOptions[], callback: ResponseCallback<DataValue[]>): void;
|
|
35
|
+
read(nodeToRead: ReadValueIdOptions): Promise<DataValue>;
|
|
36
|
+
read(nodesToRead: ReadValueIdOptions[]): Promise<DataValue[]>;
|
|
37
|
+
browseNext(continuationPoint: Buffer, releaseContinuationPoints: boolean, callback: ResponseCallback<BrowseResult>): void;
|
|
38
|
+
browseNext(continuationPoints: Buffer[], releaseContinuationPoints: boolean, callback: ResponseCallback<BrowseResult[]>): void;
|
|
39
|
+
browseNext(continuationPoint: Buffer, releaseContinuationPoints: boolean): Promise<BrowseResult>;
|
|
40
|
+
browseNext(continuationPoints: Buffer[], releaseContinuationPoints: boolean): Promise<BrowseResult[]>;
|
|
41
|
+
call(methodToCall: CallMethodRequestLike, callback: ResponseCallback<CallMethodResult>): void;
|
|
42
|
+
call(methodsToCall: CallMethodRequestLike[], callback: ResponseCallback<CallMethodResult[]>): void;
|
|
43
|
+
call(methodToCall: CallMethodRequestLike): Promise<CallMethodResult>;
|
|
44
|
+
call(methodsToCall: CallMethodRequestLike[]): Promise<CallMethodResult[]>;
|
|
45
|
+
getArgumentDefinition(methodId: MethodId): Promise<ArgumentDefinition>;
|
|
46
|
+
getArgumentDefinition(methodId: MethodId, callback: ResponseCallback<ArgumentDefinition>): void;
|
|
47
|
+
translateBrowsePath(browsePaths: BrowsePath[], callback: ResponseCallback<BrowsePathResult[]>): void;
|
|
48
|
+
translateBrowsePath(browsePath: BrowsePath, callback: ResponseCallback<BrowsePathResult>): void;
|
|
49
|
+
translateBrowsePath(browsePath: BrowsePath): Promise<BrowsePathResult>;
|
|
50
|
+
translateBrowsePath(browsePaths: BrowsePath[]): Promise<BrowsePathResult[]>;
|
|
51
|
+
write(nodeToWrite: WriteValueOptions, callback: ResponseCallback<StatusCode>): void;
|
|
52
|
+
write(nodesToWrite: WriteValueOptions[], callback: ResponseCallback<StatusCode[]>): void;
|
|
53
|
+
write(nodeToWrite: WriteValueOptions): Promise<StatusCode>;
|
|
54
|
+
write(nodesToWrite: WriteValueOptions[]): Promise<StatusCode[]>;
|
|
55
|
+
}
|