node-opcua-address-space 2.55.0 → 2.58.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.
Files changed (329) hide show
  1. package/LICENSE +20 -20
  2. package/dist/source/address_space_ts.js.map +1 -1
  3. package/dist/source/continuation_points/continuation_point_manager.d.ts +27 -16
  4. package/dist/source/continuation_points/continuation_point_manager.js +141 -48
  5. package/dist/source/continuation_points/continuation_point_manager.js.map +1 -1
  6. package/dist/source/helpers/adjust_browse_direction.js.map +1 -1
  7. package/dist/source/helpers/call_helpers.js.map +1 -1
  8. package/dist/source/helpers/check_event_clause.js.map +1 -1
  9. package/dist/source/helpers/coerce_enum_value.js.map +1 -1
  10. package/dist/source/helpers/ensure_secure_access.js +0 -13
  11. package/dist/source/helpers/ensure_secure_access.js.map +1 -1
  12. package/dist/source/helpers/resolve_opaque_on_address_space.js.map +1 -1
  13. package/dist/source/loader/load_nodeset2.js +29 -3
  14. package/dist/source/loader/load_nodeset2.js.map +1 -1
  15. package/dist/source/loader/namespace_post_step.js.map +1 -1
  16. package/dist/source/loader/register_node_promoter.js.map +1 -1
  17. package/dist/source/namespace_machine_state.d.ts +1 -1
  18. package/dist/source/pseudo_session.js +23 -24
  19. package/dist/source/pseudo_session.js.map +1 -1
  20. package/dist/source/session_context.js +2 -2
  21. package/dist/source/session_context.js.map +1 -1
  22. package/dist/source/set_namespace_meta_data.js.map +1 -1
  23. package/dist/src/address_space.d.ts +7 -8
  24. package/dist/src/address_space.js +2 -2
  25. package/dist/src/address_space.js.map +1 -1
  26. package/dist/src/address_space_private.d.ts +4 -5
  27. package/dist/src/alarms_and_conditions/check_where_clause.js +1 -1
  28. package/dist/src/alarms_and_conditions/check_where_clause.js.map +1 -1
  29. package/dist/src/alarms_and_conditions/condition.js.map +1 -1
  30. package/dist/src/alarms_and_conditions/extract_event_fields.js.map +1 -1
  31. package/dist/src/alarms_and_conditions/ua_acknowledgeable_condition_impl.js +2 -1
  32. package/dist/src/alarms_and_conditions/ua_acknowledgeable_condition_impl.js.map +1 -1
  33. package/dist/src/alarms_and_conditions/ua_base_event_impl.js.map +1 -1
  34. package/dist/src/alarms_and_conditions/ua_condition_impl.js.map +1 -1
  35. package/dist/src/alarms_and_conditions/ua_discrete_alarm_impl.js.map +1 -1
  36. package/dist/src/alarms_and_conditions/ua_exclusive_level_alarm_impl.js.map +1 -1
  37. package/dist/src/alarms_and_conditions/ua_limit_alarm_impl.js.map +1 -1
  38. package/dist/src/alarms_and_conditions/ua_non_exclusive_limit_alarm_impl.js.map +1 -1
  39. package/dist/src/alarms_and_conditions/ua_off_normal_alarm_impl.js.map +1 -1
  40. package/dist/src/alarms_and_conditions/ua_system_off_normal_alarm_impl.js.map +1 -1
  41. package/dist/src/base_node_impl.js.map +1 -1
  42. package/dist/src/data_access/add_dataItem_stuff.js.map +1 -1
  43. package/dist/src/data_access/check_variant_compatibility_ua_analog_item.js.map +1 -1
  44. package/dist/src/data_access/ua_multistate_discrete_impl.js.map +1 -1
  45. package/dist/src/event_data.js.map +1 -1
  46. package/dist/src/extension_object_array_node.js.map +1 -1
  47. package/dist/src/historical_access/address_space_historical_data_node.js +28 -59
  48. package/dist/src/historical_access/address_space_historical_data_node.js.map +1 -1
  49. package/dist/src/namespace_impl.d.ts +2 -2
  50. package/dist/src/namespace_impl.js +6 -6
  51. package/dist/src/namespace_impl.js.map +1 -1
  52. package/dist/src/nodeid_manager.js +1 -4
  53. package/dist/src/nodeid_manager.js.map +1 -1
  54. package/dist/src/nodeset_tools/nodeset_to_xml.js +1 -1
  55. package/dist/src/nodeset_tools/nodeset_to_xml.js.map +1 -1
  56. package/dist/src/nodeset_tools/typedictionary_to_xml.d.ts +1 -1
  57. package/dist/src/nodeset_tools/typedictionary_to_xml.js +3 -2
  58. package/dist/src/nodeset_tools/typedictionary_to_xml.js.map +1 -1
  59. package/dist/src/reference_impl.js +3 -1
  60. package/dist/src/reference_impl.js.map +1 -1
  61. package/dist/src/state_machine/finite_state_machine.js.map +1 -1
  62. package/dist/src/state_machine/ua_shelving_state_machine_ex.js.map +1 -1
  63. package/dist/src/state_machine/ua_two_state_variable.js.map +1 -1
  64. package/dist/src/tool_isSupertypeOf.js.map +1 -1
  65. package/dist/src/ua_method_impl.d.ts +3 -2
  66. package/dist/src/ua_method_impl.js +5 -0
  67. package/dist/src/ua_method_impl.js.map +1 -1
  68. package/dist/src/ua_object_impl.d.ts +10 -6
  69. package/dist/src/ua_object_impl.js +1 -1
  70. package/dist/src/ua_object_impl.js.map +1 -1
  71. package/dist/src/ua_object_type_impl.js.map +1 -1
  72. package/dist/src/ua_reference_type_impl.js +3 -1
  73. package/dist/src/ua_reference_type_impl.js.map +1 -1
  74. package/dist/src/ua_variable_impl.d.ts +8 -7
  75. package/dist/src/ua_variable_impl.js +6 -10
  76. package/dist/src/ua_variable_impl.js.map +1 -1
  77. package/dist/src/ua_variable_type_impl.js.map +1 -1
  78. package/dist/src/ua_view_impl.js.map +1 -1
  79. package/distHelpers/add_event_generator_object.js.map +1 -1
  80. package/distHelpers/alarms_and_conditions_demo.js.map +1 -1
  81. package/distHelpers/boiler_system.d.ts +1 -1
  82. package/distHelpers/boiler_system.js +1 -2
  83. package/distHelpers/boiler_system.js.map +1 -1
  84. package/distHelpers/create_minimalist_address_space_nodeset.js +1 -0
  85. package/distHelpers/create_minimalist_address_space_nodeset.js.map +1 -1
  86. package/distHelpers/date_utils.d.ts +3 -0
  87. package/distHelpers/date_utils.js +10 -0
  88. package/distHelpers/date_utils.js.map +1 -0
  89. package/distHelpers/get_mini_address_space.js.map +1 -1
  90. package/distHelpers/index.d.ts +2 -0
  91. package/distHelpers/index.js +2 -0
  92. package/distHelpers/index.js.map +1 -1
  93. package/distHelpers/mock_session.d.ts +14 -0
  94. package/distHelpers/mock_session.js +26 -0
  95. package/distHelpers/mock_session.js.map +1 -0
  96. package/generate.js +1 -1
  97. package/nodeJS.d.ts +1 -1
  98. package/package.json +32 -32
  99. package/source/address_space_ts.ts +0 -3
  100. package/source/continuation_points/continuation_point_manager.ts +178 -64
  101. package/source/helpers/adjust_browse_direction.ts +3 -3
  102. package/source/helpers/argument_list.ts +1 -1
  103. package/source/helpers/call_helpers.ts +0 -1
  104. package/source/helpers/check_event_clause.ts +2 -9
  105. package/source/helpers/coerce_enum_value.ts +3 -3
  106. package/source/helpers/ensure_secure_access.ts +1 -13
  107. package/source/helpers/resolve_opaque_on_address_space.ts +4 -1
  108. package/source/interfaces/alarms_and_conditions/condition_info_i.ts +13 -13
  109. package/source/interfaces/data_access/ua_multistate_value_discrete_ex.ts +0 -1
  110. package/source/interfaces/data_access/ua_y_array_item_ex.ts +4 -2
  111. package/source/interfaces/state_machine/ua_exclusive_limit_state_machine_type_ex.ts +5 -1
  112. package/source/interfaces/state_machine/ua_state_machine_type.ts +2 -2
  113. package/source/loader/load_nodeset2.ts +39 -3
  114. package/source/loader/namespace_post_step.ts +1 -2
  115. package/source/loader/register_node_promoter.ts +4 -1
  116. package/source/namespace.ts +4 -6
  117. package/source/namespace_machine_state.ts +1 -2
  118. package/source/pseudo_session.ts +37 -29
  119. package/source/session_context.ts +2 -9
  120. package/source/set_namespace_meta_data.ts +21 -15
  121. package/source/xml_writer.ts +0 -1
  122. package/source_nodejs/index.ts +1 -1
  123. package/src/address_space.ts +17 -16
  124. package/src/address_space_private.ts +7 -12
  125. package/src/alarms_and_conditions/check_where_clause.ts +21 -22
  126. package/src/alarms_and_conditions/condition.ts +0 -1
  127. package/src/alarms_and_conditions/extract_event_fields.ts +0 -1
  128. package/src/alarms_and_conditions/ua_acknowledgeable_condition_impl.ts +14 -10
  129. package/src/alarms_and_conditions/ua_base_event_impl.ts +11 -15
  130. package/src/alarms_and_conditions/ua_condition_impl.ts +35 -40
  131. package/src/alarms_and_conditions/ua_discrete_alarm_impl.ts +39 -33
  132. package/src/alarms_and_conditions/ua_exclusive_deviation_alarm_impl.ts +2 -2
  133. package/src/alarms_and_conditions/ua_exclusive_level_alarm_impl.ts +4 -5
  134. package/src/alarms_and_conditions/ua_limit_alarm_impl.ts +16 -16
  135. package/src/alarms_and_conditions/ua_non_exclusive_limit_alarm_impl.ts +8 -8
  136. package/src/alarms_and_conditions/ua_off_normal_alarm_impl.ts +9 -10
  137. package/src/alarms_and_conditions/ua_system_off_normal_alarm_impl.ts +2 -4
  138. package/src/apply_condition_refresh.ts +2 -2
  139. package/src/base_node_impl.ts +2 -2
  140. package/src/data_access/add_dataItem_stuff.ts +4 -4
  141. package/src/data_access/check_variant_compatibility_ua_analog_item.ts +12 -15
  142. package/src/data_access/ua_multistate_discrete_impl.ts +6 -3
  143. package/src/data_access/ua_multistate_value_discrete.ts +1 -1
  144. package/src/event_data.ts +1 -7
  145. package/src/extension_object_array_node.ts +4 -10
  146. package/src/historical_access/address_space_historical_data_node.ts +39 -63
  147. package/src/namespace_impl.ts +5 -5
  148. package/src/namespace_private.ts +1 -1
  149. package/src/nodeid_manager.ts +2 -5
  150. package/src/nodeset_tools/nodeset_to_xml.ts +5 -5
  151. package/src/nodeset_tools/typedictionary_to_xml.ts +7 -5
  152. package/src/reference_impl.ts +4 -2
  153. package/src/state_machine/finite_state_machine.ts +426 -428
  154. package/src/state_machine/ua_shelving_state_machine_ex.ts +19 -9
  155. package/src/state_machine/ua_two_state_variable.ts +5 -7
  156. package/src/tool_isSupertypeOf.ts +2 -6
  157. package/src/ua_condition_type.ts +0 -1
  158. package/src/ua_method_impl.ts +25 -9
  159. package/src/ua_object_impl.ts +13 -8
  160. package/src/ua_object_type_impl.ts +7 -4
  161. package/src/ua_reference_type_impl.ts +6 -12
  162. package/src/ua_variable_impl.ts +11 -15
  163. package/src/ua_variable_type_impl.ts +2 -2
  164. package/src/ua_view_impl.ts +3 -6
  165. package/testHelpers.d.ts +1 -1
  166. package/test_helpers/add_event_generator_object.ts +6 -5
  167. package/test_helpers/alarms_and_conditions_demo.ts +9 -8
  168. package/test_helpers/assertHasMatchingReference.ts +43 -43
  169. package/test_helpers/boiler_system.ts +610 -618
  170. package/test_helpers/create_minimalist_address_space_nodeset.ts +13 -13
  171. package/test_helpers/date_utils.ts +5 -0
  172. package/test_helpers/dump_statemachine.ts +2 -2
  173. package/test_helpers/get_address_space_fixture.ts +30 -30
  174. package/test_helpers/get_mini_address_space.ts +42 -42
  175. package/test_helpers/index.ts +13 -11
  176. package/test_helpers/mock_session.ts +34 -0
  177. package/test_helpers/test_fixtures/dataType_in_separateNamespace.xml +150 -150
  178. package/test_helpers/test_fixtures/dataType_in_separateNamespace_basic.xml +57 -57
  179. package/test_helpers/test_fixtures/dataType_in_separateNamespace_mix.xml +135 -135
  180. package/test_helpers/test_fixtures/dataType_withEnumeration.xml +82 -82
  181. package/test_helpers/test_fixtures/dataType_with_isOptionSet.xml +194 -194
  182. package/test_helpers/test_fixtures/dataType_with_union.xml +1 -1
  183. package/test_helpers/test_fixtures/fixture_empty_nodeset2.xml +106 -106
  184. package/test_helpers/test_fixtures/fixture_simple_statemachine_nodeset2.xml +1303 -1303
  185. package/test_helpers/test_fixtures/fixuture_nodeset_objects_with_some_methods.xml +362 -362
  186. package/test_helpers/test_fixtures/issue_846.xml +3172 -3172
  187. package/test_helpers/test_fixtures/issue_899_variable_with_nodeid_value.xml +32 -32
  188. package/test_helpers/test_fixtures/mini.nodeset.withVariousVariables.xml +194 -194
  189. package/test_helpers/test_fixtures/minimalist_nodeset_with_models.xml +8 -8
  190. package/test_helpers/test_fixtures/minimalist_nodeset_with_models_more_complex.xml +16 -16
  191. package/test_helpers/test_fixtures/nodeset_with_analog_items.xml +45 -45
  192. package/dist/source/interfaces/alarms_and_conditions/ua_condition_base_i.d.ts +0 -23
  193. package/dist/source/interfaces/alarms_and_conditions/ua_condition_base_i.js +0 -3
  194. package/dist/source/interfaces/alarms_and_conditions/ua_condition_base_i.js.map +0 -1
  195. package/dist/source/interfaces/data_access/ua_discrete_item.d.ts +0 -6
  196. package/dist/source/interfaces/data_access/ua_discrete_item.js +0 -3
  197. package/dist/source/interfaces/data_access/ua_discrete_item.js.map +0 -1
  198. package/dist/source/interfaces/data_access/ua_multistate_discrete.d.ts +0 -25
  199. package/dist/source/interfaces/data_access/ua_multistate_discrete.js +0 -3
  200. package/dist/source/interfaces/data_access/ua_multistate_discrete.js.map +0 -1
  201. package/dist/source/interfaces/data_access/ua_multistate_value_discrete.d.ts +0 -27
  202. package/dist/source/interfaces/data_access/ua_multistate_value_discrete.js +0 -3
  203. package/dist/source/interfaces/data_access/ua_multistate_value_discrete.js.map +0 -1
  204. package/dist/source/interfaces/data_access/ua_two_state_discrete.d.ts +0 -17
  205. package/dist/source/interfaces/data_access/ua_two_state_discrete.js +0 -3
  206. package/dist/source/interfaces/data_access/ua_two_state_discrete.js.map +0 -1
  207. package/dist/source/interfaces/data_access/ua_y_array_item.d.ts +0 -19
  208. package/dist/source/interfaces/data_access/ua_y_array_item.js +0 -3
  209. package/dist/source/interfaces/data_access/ua_y_array_item.js.map +0 -1
  210. package/dist/source/interfaces/state_machine/exclusive_limit_state_machine.d.ts +0 -11
  211. package/dist/source/interfaces/state_machine/exclusive_limit_state_machine.js +0 -3
  212. package/dist/source/interfaces/state_machine/exclusive_limit_state_machine.js.map +0 -1
  213. package/dist/source/interfaces/state_machine/finite_state_machine.d.ts +0 -70
  214. package/dist/source/interfaces/state_machine/finite_state_machine.js +0 -3
  215. package/dist/source/interfaces/state_machine/finite_state_machine.js.map +0 -1
  216. package/dist/source/interfaces/state_machine/program_finite_state_machine.d.ts +0 -74
  217. package/dist/source/interfaces/state_machine/program_finite_state_machine.js +0 -3
  218. package/dist/source/interfaces/state_machine/program_finite_state_machine.js.map +0 -1
  219. package/dist/source/interfaces/state_machine/state_machine.d.ts +0 -342
  220. package/dist/source/interfaces/state_machine/state_machine.js +0 -3
  221. package/dist/source/interfaces/state_machine/state_machine.js.map +0 -1
  222. package/dist/source/interfaces/state_machine/ua_finite_state_variable.d.ts +0 -18
  223. package/dist/source/interfaces/state_machine/ua_finite_state_variable.js +0 -3
  224. package/dist/source/interfaces/state_machine/ua_finite_state_variable.js.map +0 -1
  225. package/dist/source/interfaces/state_machine/ua_state_variable.d.ts +0 -29
  226. package/dist/source/interfaces/state_machine/ua_state_variable.js +0 -3
  227. package/dist/source/interfaces/state_machine/ua_state_variable.js.map +0 -1
  228. package/dist/source/interfaces/state_machine/ua_two_state_variable.d.ts +0 -26
  229. package/dist/source/interfaces/state_machine/ua_two_state_variable.js +0 -3
  230. package/dist/source/interfaces/state_machine/ua_two_state_variable.js.map +0 -1
  231. package/dist/source/interfaces/subscription_diagnostics_variable.d.ts +0 -41
  232. package/dist/source/interfaces/subscription_diagnostics_variable.js +0 -3
  233. package/dist/source/interfaces/subscription_diagnostics_variable.js.map +0 -1
  234. package/dist/src/alarms_and_conditions/base_event_type.d.ts +0 -26
  235. package/dist/src/alarms_and_conditions/base_event_type.js +0 -41
  236. package/dist/src/alarms_and_conditions/base_event_type.js.map +0 -1
  237. package/dist/src/alarms_and_conditions/shelving_state_machine.d.ts +0 -22
  238. package/dist/src/alarms_and_conditions/shelving_state_machine.js +0 -241
  239. package/dist/src/alarms_and_conditions/shelving_state_machine.js.map +0 -1
  240. package/dist/src/alarms_and_conditions/trip_alarm.d.ts +0 -16
  241. package/dist/src/alarms_and_conditions/trip_alarm.js +0 -21
  242. package/dist/src/alarms_and_conditions/trip_alarm.js.map +0 -1
  243. package/dist/src/alarms_and_conditions/ua_acknowledgeable_condition_base.d.ts +0 -54
  244. package/dist/src/alarms_and_conditions/ua_acknowledgeable_condition_base.js +0 -255
  245. package/dist/src/alarms_and_conditions/ua_acknowledgeable_condition_base.js.map +0 -1
  246. package/dist/src/alarms_and_conditions/ua_alarm_condition_base.d.ts +0 -138
  247. package/dist/src/alarms_and_conditions/ua_alarm_condition_base.js +0 -460
  248. package/dist/src/alarms_and_conditions/ua_alarm_condition_base.js.map +0 -1
  249. package/dist/src/alarms_and_conditions/ua_certificate_expiration_alarm.d.ts +0 -35
  250. package/dist/src/alarms_and_conditions/ua_certificate_expiration_alarm.js +0 -32
  251. package/dist/src/alarms_and_conditions/ua_certificate_expiration_alarm.js.map +0 -1
  252. package/dist/src/alarms_and_conditions/ua_condition_base.d.ts +0 -191
  253. package/dist/src/alarms_and_conditions/ua_condition_base.js +0 -1029
  254. package/dist/src/alarms_and_conditions/ua_condition_base.js.map +0 -1
  255. package/dist/src/alarms_and_conditions/ua_discrete_alarm.d.ts +0 -11
  256. package/dist/src/alarms_and_conditions/ua_discrete_alarm.js +0 -58
  257. package/dist/src/alarms_and_conditions/ua_discrete_alarm.js.map +0 -1
  258. package/dist/src/alarms_and_conditions/ua_exclusive_deviation_alarm.d.ts +0 -24
  259. package/dist/src/alarms_and_conditions/ua_exclusive_deviation_alarm.js +0 -59
  260. package/dist/src/alarms_and_conditions/ua_exclusive_deviation_alarm.js.map +0 -1
  261. package/dist/src/alarms_and_conditions/ua_exclusive_level_alarm.d.ts +0 -14
  262. package/dist/src/alarms_and_conditions/ua_exclusive_level_alarm.js +0 -17
  263. package/dist/src/alarms_and_conditions/ua_exclusive_level_alarm.js.map +0 -1
  264. package/dist/src/alarms_and_conditions/ua_exclusive_limit_alarm.d.ts +0 -22
  265. package/dist/src/alarms_and_conditions/ua_exclusive_limit_alarm.js +0 -87
  266. package/dist/src/alarms_and_conditions/ua_exclusive_limit_alarm.js.map +0 -1
  267. package/dist/src/alarms_and_conditions/ua_exclusive_rate_of_change_alarm.d.ts +0 -6
  268. package/dist/src/alarms_and_conditions/ua_exclusive_rate_of_change_alarm.js +0 -11
  269. package/dist/src/alarms_and_conditions/ua_exclusive_rate_of_change_alarm.js.map +0 -1
  270. package/dist/src/alarms_and_conditions/ua_limit_alarm.d.ts +0 -76
  271. package/dist/src/alarms_and_conditions/ua_limit_alarm.js +0 -237
  272. package/dist/src/alarms_and_conditions/ua_limit_alarm.js.map +0 -1
  273. package/dist/src/alarms_and_conditions/ua_non_exclusive_deviation_alarm.d.ts +0 -27
  274. package/dist/src/alarms_and_conditions/ua_non_exclusive_deviation_alarm.js +0 -62
  275. package/dist/src/alarms_and_conditions/ua_non_exclusive_deviation_alarm.js.map +0 -1
  276. package/dist/src/alarms_and_conditions/ua_non_exclusive_limit_alarm.d.ts +0 -49
  277. package/dist/src/alarms_and_conditions/ua_non_exclusive_limit_alarm.js +0 -176
  278. package/dist/src/alarms_and_conditions/ua_non_exclusive_limit_alarm.js.map +0 -1
  279. package/dist/src/alarms_and_conditions/ua_off_normal_alarm.d.ts +0 -47
  280. package/dist/src/alarms_and_conditions/ua_off_normal_alarm.js +0 -151
  281. package/dist/src/alarms_and_conditions/ua_off_normal_alarm.js.map +0 -1
  282. package/dist/src/alarms_and_conditions/ua_system_off_normal_alarm.d.ts +0 -16
  283. package/dist/src/alarms_and_conditions/ua_system_off_normal_alarm.js +0 -18
  284. package/dist/src/alarms_and_conditions/ua_system_off_normal_alarm.js.map +0 -1
  285. package/dist/src/base_node.d.ts +0 -289
  286. package/dist/src/base_node.js +0 -1345
  287. package/dist/src/base_node.js.map +0 -1
  288. package/dist/src/data_access/ua_analog_item.d.ts +0 -13
  289. package/dist/src/data_access/ua_analog_item.js +0 -37
  290. package/dist/src/data_access/ua_analog_item.js.map +0 -1
  291. package/dist/src/data_access/ua_data_item.d.ts +0 -16
  292. package/dist/src/data_access/ua_data_item.js +0 -66
  293. package/dist/src/data_access/ua_data_item.js.map +0 -1
  294. package/dist/src/data_access/ua_multistate_discrete.d.ts +0 -24
  295. package/dist/src/data_access/ua_multistate_discrete.js +0 -132
  296. package/dist/src/data_access/ua_multistate_discrete.js.map +0 -1
  297. package/dist/src/namespace.d.ts +0 -472
  298. package/dist/src/namespace.js +0 -1751
  299. package/dist/src/namespace.js.map +0 -1
  300. package/dist/src/reference.d.ts +0 -43
  301. package/dist/src/reference.js +0 -138
  302. package/dist/src/reference.js.map +0 -1
  303. package/dist/src/session_context.d.ts +0 -4
  304. package/dist/src/session_context.js +0 -9
  305. package/dist/src/session_context.js.map +0 -1
  306. package/dist/src/ua_data_type.d.ts +0 -83
  307. package/dist/src/ua_data_type.js +0 -289
  308. package/dist/src/ua_data_type.js.map +0 -1
  309. package/dist/src/ua_method.d.ts +0 -41
  310. package/dist/src/ua_method.js +0 -202
  311. package/dist/src/ua_method.js.map +0 -1
  312. package/dist/src/ua_object.d.ts +0 -28
  313. package/dist/src/ua_object.js +0 -153
  314. package/dist/src/ua_object.js.map +0 -1
  315. package/dist/src/ua_object_type.d.ts +0 -49
  316. package/dist/src/ua_object_type.js +0 -123
  317. package/dist/src/ua_object_type.js.map +0 -1
  318. package/dist/src/ua_reference_type.d.ts +0 -42
  319. package/dist/src/ua_reference_type.js +0 -138
  320. package/dist/src/ua_reference_type.js.map +0 -1
  321. package/dist/src/ua_variable.d.ts +0 -339
  322. package/dist/src/ua_variable.js +0 -1706
  323. package/dist/src/ua_variable.js.map +0 -1
  324. package/dist/src/ua_variable_type.d.ts +0 -57
  325. package/dist/src/ua_variable_type.js +0 -530
  326. package/dist/src/ua_variable_type.js.map +0 -1
  327. package/dist/src/ua_view.d.ts +0 -16
  328. package/dist/src/ua_view.js +0 -42
  329. package/dist/src/ua_view.js.map +0 -1
@@ -1,339 +0,0 @@
1
- import { QualifiedNameLike, NodeClass, AccessLevelFlag, AttributeIds } from "node-opcua-data-model";
2
- import { DataValue } from "node-opcua-data-value";
3
- import { PreciseClock } from "node-opcua-date-time";
4
- import { ExtensionObject } from "node-opcua-extension-object";
5
- import { NodeId } from "node-opcua-nodeid";
6
- import { NumericRange } from "node-opcua-numeric-range";
7
- import { WriteValue, WriteValueOptions } from "node-opcua-service-write";
8
- import { StatusCode, CallbackT } from "node-opcua-status-code";
9
- import { HistoryReadResult, ReadAtTimeDetails, ReadEventDetails, ReadProcessedDetails, ReadRawModifiedDetails } from "node-opcua-types";
10
- import { Variant, VariantLike, DataType } from "node-opcua-variant";
11
- import { BindVariableOptions, ContinuationPoint, DataValueCallback, HistoricalDataConfiguration, IVariableHistorian, UAVariable as UAVariablePublic, UAVariableType } from "../source";
12
- import { BaseNode, InternalBaseNodeOptions } from "./base_node";
13
- import { SessionContext } from "./session_context";
14
- import { EnumerationInfo, IEnumItem, UADataType } from "./ua_data_type";
15
- export declare function adjust_accessLevel(accessLevel: string | number | null): AccessLevelFlag;
16
- export declare function adjust_userAccessLevel(userAccessLevel: string | number | null | undefined, accessLevel: string | number | null): AccessLevelFlag | undefined;
17
- interface UAVariableOptions extends InternalBaseNodeOptions {
18
- value?: any;
19
- dataType: NodeId | string;
20
- valueRank?: number;
21
- arrayDimensions?: null | number[];
22
- accessLevel?: any;
23
- userAccessLevel?: any;
24
- minimumSamplingInterval?: number;
25
- historizing?: number;
26
- }
27
- export declare function verifyRankAndDimensions(options: {
28
- valueRank?: number;
29
- arrayDimensions?: number[] | null;
30
- }): void;
31
- declare type TimestampGetFunction1 = () => DataValue | Promise<DataValue>;
32
- declare type TimestampGetFunction2 = (callback: (err: Error | null, dataValue?: DataValue) => void) => void;
33
- declare type TimestampGetFunction = TimestampGetFunction1 | TimestampGetFunction2;
34
- declare type TimestampSetFunction1 = (this: UAVariable, dataValue: DataValue, indexRange: NumericRange) => void | Promise<void>;
35
- declare type TimestampSetFunction2 = (this: UAVariable, dataValue: DataValue, indexRange: NumericRange, callback: (err: Error | null, StatusCode: StatusCode) => void) => void;
36
- declare type TimestampSetFunction = TimestampSetFunction1 | TimestampSetFunction2;
37
- /**
38
- * A OPCUA Variable Node
39
- *
40
- * @class UAVariable
41
- * @constructor
42
- * @extends BaseNode
43
- * The AccessLevel Attribute is used to indicate how the Value of a Variable can be accessed (read/write) and if it
44
- * contains current and/or historic data. The AccessLevel does not take any user access rights into account,
45
- * i.e. although the Variable is writable this may be restricted to a certain user / user group.
46
- * The AccessLevel is an 8-bit unsigned integer with the structure defined in the following table:
47
- *
48
- * Field Bit Description
49
- * CurrentRead 0 Indicates if the current value is readable
50
- * (0 means not readable, 1 means readable).
51
- * CurrentWrite 1 Indicates if the current value is writable
52
- * (0 means not writable, 1 means writable).
53
- * HistoryRead 2 Indicates if the history of the value is readable
54
- * (0 means not readable, 1 means readable).
55
- * HistoryWrite 3 Indicates if the history of the value is writable (0 means not writable, 1 means writable).
56
- * SemanticChange 4 Indicates if the Variable used as Property generates SemanticChangeEvents (see 9.31).
57
- * Reserved 5:7 Reserved for future use. Shall always be zero.
58
- *
59
- * The first two bits also indicate if a current value of this Variable is available and the second two bits
60
- * indicates if the history of the Variable is available via the OPC UA server.
61
- *
62
- */
63
- export declare class UAVariable extends BaseNode implements UAVariablePublic {
64
- readonly nodeClass = NodeClass.Variable;
65
- dataType: NodeId;
66
- $historicalDataConfiguration?: HistoricalDataConfiguration;
67
- varHistorian?: IVariableHistorian;
68
- /**
69
- * @internal
70
- */
71
- _dataValue: DataValue;
72
- accessLevel: number;
73
- userAccessLevel?: number;
74
- valueRank: number;
75
- minimumSamplingInterval: number;
76
- historizing: boolean;
77
- semantic_version: number;
78
- arrayDimensions: null | number[];
79
- $extensionObject?: any;
80
- _timestamped_get_func?: TimestampGetFunction | null;
81
- _timestamped_set_func?: TimestampSetFunction | null;
82
- _get_func: any;
83
- _set_func: any;
84
- refreshFunc?: (callback: DataValueCallback) => void;
85
- __waiting_callbacks?: any[];
86
- get typeDefinitionObj(): UAVariableType;
87
- constructor(options: UAVariableOptions);
88
- private checkPermissionAndAccessLevelPrivate;
89
- isReadable(context: SessionContext): boolean;
90
- isUserReadable(context: SessionContext): boolean;
91
- isWritable(context: SessionContext): boolean;
92
- isUserWritable(context: SessionContext): boolean;
93
- /**
94
- *
95
- *
96
- * from OPC.UA.Spec 1.02 part 4
97
- * 5.10.2.4 StatusCodes
98
- * Table 51 defines values for the operation level statusCode contained in the DataValue structure of
99
- * each values element. Common StatusCodes are defined in Table 166.
100
- *
101
- * Table 51 Read Operation Level Result Codes
102
- *
103
- * Symbolic Id Description
104
- *
105
- * BadNodeIdInvalid The syntax of the node id is not valid.
106
- * BadNodeIdUnknown The node id refers to a node that does not exist in the server address space.
107
- * BadAttributeIdInvalid BadAttributeIdInvalid The attribute is not supported for the specified node.
108
- * BadIndexRangeInvalid The syntax of the index range parameter is invalid.
109
- * BadIndexRangeNoData No data exists within the range of indexes specified.
110
- * BadDataEncodingInvalid The data encoding is invalid.
111
- * This result is used if no dataEncoding can be applied because an Attribute other
112
- * than Value was requested or the DataType of the Value Attribute is not a subtype
113
- * of the Structure DataType.
114
- * BadDataEncodingUnsupported The server does not support the requested data encoding for the node.
115
- * This result is used if a dataEncoding can be applied but the passed data encoding
116
- * is not known to the Server.
117
- * BadNotReadable The access level does not allow reading or subscribing to the Node.
118
- * BadUserAccessDenied User does not have permission to perform the requested operation. (table 165)
119
- */
120
- readValue(context?: SessionContext | null, indexRange?: NumericRange, dataEncoding?: string): DataValue;
121
- isEnumeration(): boolean;
122
- isExtensionObject(): boolean;
123
- _getEnumerationInfo(): EnumerationInfo;
124
- asyncRefresh(...args: any[]): any;
125
- readEnumValue(): IEnumItem;
126
- writeEnumValue(value: string | number): void;
127
- readAttribute(context: SessionContext | null, attributeId: AttributeIds, indexRange?: NumericRange, dataEncoding?: string): DataValue;
128
- adjustVariant(variant: Variant): Variant;
129
- /**
130
- * setValueFromSource is used to let the device sets the variable values
131
- * this method also records the current time as sourceTimestamp and serverTimestamp.
132
- * the method broadcasts an "value_changed" event
133
- * @method setValueFromSource
134
- * @param variant {Variant}
135
- * @param [statusCode {StatusCode} = StatusCodes.Good]
136
- * @param [sourceTimestamp= Now]
137
- */
138
- setValueFromSource(variant: VariantLike, statusCode?: StatusCode, sourceTimestamp?: Date): void;
139
- writeValue(context: SessionContext, dataValue: DataValue, ...args: any[]): any;
140
- writeAttribute(context: SessionContext | null, writeValueOptions: WriteValueOptions | WriteValue, callback?: (err: Error | null, statusCode?: StatusCode) => void): any;
141
- /**
142
- * @method checkVariantCompatibility
143
- * note:
144
- * this method is overridden in address-space-data-access
145
- * @return {StatusCode}
146
- */
147
- checkVariantCompatibility(value: Variant): StatusCode;
148
- /**
149
- * @method touchValue
150
- * touch the source timestamp of a Variable and cascade up the change
151
- * to the parent variable if any.
152
- *
153
- * @param [optionalNow=null] {Object}
154
- * @param optionalNow.timestamp {Date}
155
- * @param optionalNow.picoseconds {Number}
156
- */
157
- touchValue(optionalNow?: PreciseClock): void;
158
- /**
159
- * bind a variable with a get and set functions.
160
- *
161
- * @method bindVariable
162
- * @param options
163
- * @param [options.dataType=null] the nodeId of the dataType
164
- * @param [options.accessLevel] AccessLevelFlagItem
165
- * @param [options.userAccessLevel] AccessLevelFlagItem
166
- * @param [options.set] the variable setter function
167
- * @param [options.get] the variable getter function. the function must return a Variant or a status code
168
- * @param [options.timestamped_get] the getter function. this function must return a object with the following
169
- * @param [options.historyRead]
170
- *
171
- * properties:
172
- * - value: a Variant or a status code
173
- * - sourceTimestamp
174
- * - sourcePicoseconds
175
- * @param [options.timestamped_set]
176
- * @param [options.refreshFunc] the variable asynchronous getter function.
177
- * @param [overwrite {Boolean} = false] set overwrite to true to overwrite existing binding
178
- * @return void
179
- *
180
- *
181
- * ### Providing read access to the underlying value
182
- *
183
- * #### Variation 1
184
- *
185
- * In this variation, the user provides a function that returns a Variant with the current value.
186
- *
187
- * The sourceTimestamp will be set automatically.
188
- *
189
- * The get function is called synchronously.
190
- *
191
- * @example
192
- *
193
- *
194
- * ```javascript
195
- * ...
196
- * var options = {
197
- * get : () => {
198
- * return new Variant({...});
199
- * },
200
- * set : function(variant) {
201
- * // store the variant somewhere
202
- * return StatusCodes.Good;
203
- * }
204
- * };
205
- * ...
206
- * engine.bindVariable(nodeId,options):
207
- * ...
208
- * ```
209
- *
210
- *
211
- * #### Variation 2:
212
- *
213
- * This variation can be used when the user wants to specify a specific '''sourceTimestamp''' associated
214
- * with the current value of the UAVariable.
215
- *
216
- * The provided ```timestamped_get``` function should return an object with three properties:
217
- * * value: containing the variant value or a error StatusCode,
218
- * * sourceTimestamp
219
- * * sourcePicoseconds
220
- *
221
- * ```javascript
222
- * ...
223
- * var myDataValue = new DataValue({
224
- * value: {dataType: DataType.Double , value: 10.0},
225
- * sourceTimestamp : new Date(),
226
- * sourcePicoseconds: 0
227
- * });
228
- * ...
229
- * var options = {
230
- * timestamped_get : () => { return myDataValue; }
231
- * };
232
- * ...
233
- * engine.bindVariable(nodeId,options):
234
- * ...
235
- * // record a new value
236
- * myDataValue.value.value = 5.0;
237
- * myDataValue.sourceTimestamp = new Date();
238
- * ...
239
- * ```
240
- *
241
- *
242
- * #### Variation 3:
243
- *
244
- * This variation can be used when the value associated with the variables requires a asynchronous function call to be
245
- * extracted. In this case, the user should provide an async method ```refreshFunc```.
246
- *
247
- *
248
- * The ```refreshFunc``` shall do whatever is necessary to fetch the most up to date version of the variable value, and
249
- * call the ```callback``` function when the data is ready.
250
- *
251
- *
252
- * The ```callback``` function follow the standard callback function signature:
253
- * * the first argument shall be **null** or **Error**, depending of the outcome of the fetch operation,
254
- * * the second argument shall be a DataValue with the new UAVariable Value, a StatusCode, and time stamps.
255
- *
256
- *
257
- * Optionally, it is possible to pass a sourceTimestamp and a sourcePicoseconds value as a third and fourth arguments
258
- * of the callback. When sourceTimestamp and sourcePicoseconds are missing, the system will set their default value
259
- * to the current time..
260
- *
261
- *
262
- * ```javascript
263
- * ...
264
- * var options = {
265
- * refreshFunc : function(callback) {
266
- * ... do_some_async_stuff_to_get_the_new_variable_value
267
- * var dataValue = new DataValue({
268
- * value: new Variant({...}),
269
- * statusCode: StatusCodes.Good,
270
- * sourceTimestamp: new Date()
271
- * });
272
- * callback(null,dataValue);
273
- * }
274
- * };
275
- * ...
276
- * variable.bindVariable(nodeId,options):
277
- * ...
278
- * ```
279
- *
280
- * ### Providing write access to the underlying value
281
- *
282
- * #### Variation1 - provide a simple synchronous set function
283
- *
284
- *
285
- * #### Notes
286
- * to do : explain return StatusCodes.GoodCompletesAsynchronously;
287
- *
288
- */
289
- bindVariable(options?: BindVariableOptions | VariantLike, overwrite?: boolean): void;
290
- /**
291
- * @method readValueAsync
292
- */
293
- readValueAsync(context: SessionContext | null, callback: CallbackT<DataValue>): void;
294
- readValueAsync(context: SessionContext | null): Promise<DataValue>;
295
- getWriteMask(): number;
296
- getUserWriteMask(): number;
297
- clone(options?: any, optionalFilter?: any, extraInfo?: any): UAVariable;
298
- getDataTypeNode(): UADataType;
299
- get dataTypeObj(): UADataType;
300
- checkExtensionObjectIsCorrect(extObj: ExtensionObject | ExtensionObject[] | null): boolean;
301
- /**
302
- * @method bindExtensionObject
303
- * @return {ExtensionObject}
304
- */
305
- bindExtensionObject(optionalExtensionObject?: ExtensionObject): ExtensionObject | null;
306
- updateExtensionObjectPartial(partialExtensionObject: any): any;
307
- incrementExtensionObjectPartial(path: any): void;
308
- constructExtensionObjectFromComponents(): any;
309
- toString(): string;
310
- historyRead(context: SessionContext, historyReadDetails: ReadRawModifiedDetails | ReadEventDetails | ReadProcessedDetails | ReadAtTimeDetails, indexRange: NumericRange | null, dataEncoding: QualifiedNameLike | null, continuationPoint?: ContinuationPoint | null, callback?: CallbackT<HistoryReadResult>): any;
311
- _historyReadRaw(context: SessionContext, historyReadRawModifiedDetails: ReadRawModifiedDetails, indexRange: NumericRange | null, dataEncoding: QualifiedNameLike | null, continuationPoint: ContinuationPoint | null, callback: CallbackT<HistoryReadResult>): void;
312
- _historyReadRawModify(context: SessionContext, historyReadRawModifiedDetails: ReadRawModifiedDetails, indexRange: NumericRange | null, dataEncoding: QualifiedNameLike | null, continuationPoint?: ContinuationPoint | null, callback?: CallbackT<HistoryReadResult>): any;
313
- _historyRead(context: SessionContext, historyReadDetails: ReadRawModifiedDetails | ReadEventDetails | ReadProcessedDetails | ReadAtTimeDetails, indexRange: NumericRange | null, dataEncoding: QualifiedNameLike | null, continuationPoint: ContinuationPoint | null, callback: CallbackT<HistoryReadResult>): any;
314
- _historyPush(newDataValue: DataValue): any;
315
- _historyReadRawAsync(historyReadRawModifiedDetails: ReadRawModifiedDetails, maxNumberToExtract: number, isReversed: boolean, reverseDataValue: boolean, callback: CallbackT<DataValue[]>): any;
316
- _historyReadModify(context: SessionContext, historyReadRawModifiedDetails: any, indexRange: NumericRange | null, dataEncoding: QualifiedNameLike | null, continuationPoint: ContinuationPoint | null, callback: CallbackT<HistoryReadResult>): any;
317
- _update_startOfOnlineArchive(newDate: Date): void;
318
- _update_startOfArchive(newDate: Date): void;
319
- _validate_DataType(variantDataType: DataType): boolean;
320
- _internal_set_dataValue(dataValue: DataValue, indexRange?: NumericRange | null): void;
321
- _conditionRefresh(_cache?: any): void;
322
- handle_semantic_changed(): void;
323
- private _readDataType;
324
- private _readValueRank;
325
- private _readArrayDimensions;
326
- private _readAccessLevel;
327
- private _readAccessLevelEx;
328
- private _readUserAccessLevel;
329
- private _readMinimumSamplingInterval;
330
- private _readHistorizing;
331
- }
332
- export interface UAVariable {
333
- $$variableType?: any;
334
- $$dataType?: any;
335
- $$getElementBrowseName: any;
336
- $$extensionObjectArray: any;
337
- $$indexPropertyName: any;
338
- }
339
- export {};