node-opcua-address-space 2.71.0 → 2.72.2

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 (408) hide show
  1. package/dist/source/address_space_ts.d.ts +118 -118
  2. package/dist/source/address_space_ts.js +17 -17
  3. package/dist/source/continuation_points/continuation_point_manager.d.ts +32 -32
  4. package/dist/source/continuation_points/continuation_point_manager.js +195 -195
  5. package/dist/source/helpers/adjust_browse_direction.d.ts +5 -5
  6. package/dist/source/helpers/adjust_browse_direction.js +11 -11
  7. package/dist/source/helpers/argument_list.d.ts +34 -34
  8. package/dist/source/helpers/argument_list.js +285 -285
  9. package/dist/source/helpers/call_helpers.d.ts +6 -6
  10. package/dist/source/helpers/call_helpers.js +70 -70
  11. package/dist/source/helpers/check_event_clause.d.ts +17 -17
  12. package/dist/source/helpers/check_event_clause.js +52 -52
  13. package/dist/source/helpers/coerce_enum_value.d.ts +6 -6
  14. package/dist/source/helpers/coerce_enum_value.js +33 -33
  15. package/dist/source/helpers/dump_tools.d.ts +14 -14
  16. package/dist/source/helpers/dump_tools.js +78 -78
  17. package/dist/source/helpers/ensure_secure_access.d.ts +9 -9
  18. package/dist/source/helpers/ensure_secure_access.js +76 -76
  19. package/dist/source/helpers/make_optionals_map.d.ts +21 -21
  20. package/dist/source/helpers/make_optionals_map.js +29 -29
  21. package/dist/source/helpers/multiform_func.d.ts +11 -11
  22. package/dist/source/helpers/multiform_func.js +73 -73
  23. package/dist/source/helpers/resolve_opaque_on_address_space.d.ts +3 -3
  24. package/dist/source/helpers/resolve_opaque_on_address_space.js +36 -36
  25. package/dist/source/index.d.ts +40 -40
  26. package/dist/source/index.js +66 -66
  27. package/dist/source/interfaces/alarms_and_conditions/condition_info_i.d.ts +12 -12
  28. package/dist/source/interfaces/alarms_and_conditions/condition_info_i.js +2 -2
  29. package/dist/source/interfaces/data_access/ua_multistate_discrete_ex.d.ts +21 -21
  30. package/dist/source/interfaces/data_access/ua_multistate_discrete_ex.js +2 -2
  31. package/dist/source/interfaces/data_access/ua_multistate_value_discrete_ex.d.ts +24 -24
  32. package/dist/source/interfaces/data_access/ua_multistate_value_discrete_ex.js +2 -2
  33. package/dist/source/interfaces/data_access/ua_two_state_discrete_ex.d.ts +12 -12
  34. package/dist/source/interfaces/data_access/ua_two_state_discrete_ex.js +2 -2
  35. package/dist/source/interfaces/data_access/ua_y_array_item_ex.d.ts +8 -8
  36. package/dist/source/interfaces/data_access/ua_y_array_item_ex.js +2 -2
  37. package/dist/source/interfaces/state_machine/ua_exclusive_limit_state_machine_type_ex.d.ts +12 -12
  38. package/dist/source/interfaces/state_machine/ua_exclusive_limit_state_machine_type_ex.js +2 -2
  39. package/dist/source/interfaces/state_machine/ua_finite_state_machine_type.d.ts +49 -49
  40. package/dist/source/interfaces/state_machine/ua_finite_state_machine_type.js +2 -2
  41. package/dist/source/interfaces/state_machine/ua_program_state_machine_type.d.ts +11 -11
  42. package/dist/source/interfaces/state_machine/ua_program_state_machine_type.js +2 -2
  43. package/dist/source/interfaces/state_machine/ua_state_machine_type.d.ts +222 -222
  44. package/dist/source/interfaces/state_machine/ua_state_machine_type.js +2 -2
  45. package/dist/source/interfaces/state_machine/ua_transition_ex.d.ts +6 -6
  46. package/dist/source/interfaces/state_machine/ua_transition_ex.js +2 -2
  47. package/dist/source/interfaces/ua_subscription_diagnostics_variable_ex.d.ts +8 -8
  48. package/dist/source/interfaces/ua_subscription_diagnostics_variable_ex.js +2 -2
  49. package/dist/source/loader/decode_xml_extension_object.d.ts +6 -6
  50. package/dist/source/loader/decode_xml_extension_object.js +71 -71
  51. package/dist/source/loader/ensure_datatype_extracted.d.ts +5 -5
  52. package/dist/source/loader/ensure_datatype_extracted.js +45 -45
  53. package/dist/source/loader/generateAddressSpaceRaw.d.ts +10 -10
  54. package/dist/source/loader/generateAddressSpaceRaw.js +45 -45
  55. package/dist/source/loader/load_nodeset2.d.ts +16 -16
  56. package/dist/source/loader/load_nodeset2.js +1468 -1464
  57. package/dist/source/loader/load_nodeset2.js.map +1 -1
  58. package/dist/source/loader/make_semver_compatible.d.ts +6 -0
  59. package/dist/source/loader/make_semver_compatible.js +26 -0
  60. package/dist/source/loader/make_semver_compatible.js.map +1 -0
  61. package/dist/source/loader/make_xml_extension_object_parser.d.ts +28 -28
  62. package/dist/source/loader/make_xml_extension_object_parser.js +325 -315
  63. package/dist/source/loader/make_xml_extension_object_parser.js.map +1 -1
  64. package/dist/source/loader/namespace_post_step.d.ts +6 -6
  65. package/dist/source/loader/namespace_post_step.js +47 -47
  66. package/dist/source/loader/register_node_promoter.d.ts +3 -3
  67. package/dist/source/loader/register_node_promoter.js +9 -9
  68. package/dist/source/namespace.d.ts +6 -6
  69. package/dist/source/namespace.js +2 -2
  70. package/dist/source/namespace_alarm_and_condition.d.ts +24 -24
  71. package/dist/source/namespace_alarm_and_condition.js +2 -2
  72. package/dist/source/namespace_data_access.d.ts +42 -42
  73. package/dist/source/namespace_data_access.js +2 -2
  74. package/dist/source/namespace_machine_state.d.ts +7 -7
  75. package/dist/source/namespace_machine_state.js +2 -2
  76. package/dist/source/pseudo_session.d.ts +55 -55
  77. package/dist/source/pseudo_session.js +203 -203
  78. package/dist/source/session_context.d.ts +111 -111
  79. package/dist/source/session_context.js +265 -265
  80. package/dist/source/set_namespace_meta_data.d.ts +2 -2
  81. package/dist/source/set_namespace_meta_data.js +59 -59
  82. package/dist/source/ua_root_folder.d.ts +9 -9
  83. package/dist/source/ua_root_folder.js +2 -2
  84. package/dist/source/ua_two_state_variable_ex.d.ts +23 -23
  85. package/dist/source/ua_two_state_variable_ex.js +2 -2
  86. package/dist/source/xml_writer.d.ts +9 -9
  87. package/dist/source/xml_writer.js +2 -2
  88. package/dist/src/address_space.d.ts +392 -392
  89. package/dist/src/address_space.js +1387 -1387
  90. package/dist/src/address_space_change_event_tools.d.ts +6 -6
  91. package/dist/src/address_space_change_event_tools.js +149 -149
  92. package/dist/src/address_space_private.d.ts +43 -43
  93. package/dist/src/address_space_private.js +2 -2
  94. package/dist/src/alarms_and_conditions/check_where_clause.d.ts +4 -4
  95. package/dist/src/alarms_and_conditions/check_where_clause.js +109 -109
  96. package/dist/src/alarms_and_conditions/condition.d.ts +5 -5
  97. package/dist/src/alarms_and_conditions/condition.js +80 -80
  98. package/dist/src/alarms_and_conditions/condition_info.d.ts +27 -27
  99. package/dist/src/alarms_and_conditions/condition_info.js +54 -54
  100. package/dist/src/alarms_and_conditions/condition_snapshot.d.ts +233 -233
  101. package/dist/src/alarms_and_conditions/condition_snapshot.js +666 -666
  102. package/dist/src/alarms_and_conditions/deviation_alarm_helper.d.ts +21 -21
  103. package/dist/src/alarms_and_conditions/deviation_alarm_helper.js +46 -46
  104. package/dist/src/alarms_and_conditions/extract_event_fields.d.ts +10 -10
  105. package/dist/src/alarms_and_conditions/extract_event_fields.js +89 -89
  106. package/dist/src/alarms_and_conditions/index.d.ts +18 -18
  107. package/dist/src/alarms_and_conditions/index.js +34 -34
  108. package/dist/src/alarms_and_conditions/ua_acknowledgeable_condition_impl.d.ts +64 -62
  109. package/dist/src/alarms_and_conditions/ua_acknowledgeable_condition_impl.js +244 -244
  110. package/dist/src/alarms_and_conditions/ua_acknowledgeable_condition_impl.js.map +1 -1
  111. package/dist/src/alarms_and_conditions/ua_alarm_condition_impl.d.ts +124 -118
  112. package/dist/src/alarms_and_conditions/ua_alarm_condition_impl.js +416 -416
  113. package/dist/src/alarms_and_conditions/ua_alarm_condition_impl.js.map +1 -1
  114. package/dist/src/alarms_and_conditions/ua_base_event_impl.d.ts +29 -29
  115. package/dist/src/alarms_and_conditions/ua_base_event_impl.js +38 -38
  116. package/dist/src/alarms_and_conditions/ua_certificate_expiration_alarm_impl.d.ts +36 -21
  117. package/dist/src/alarms_and_conditions/ua_certificate_expiration_alarm_impl.js +115 -25
  118. package/dist/src/alarms_and_conditions/ua_certificate_expiration_alarm_impl.js.map +1 -1
  119. package/dist/src/alarms_and_conditions/ua_condition_impl.d.ts +187 -182
  120. package/dist/src/alarms_and_conditions/ua_condition_impl.js +1024 -1022
  121. package/dist/src/alarms_and_conditions/ua_condition_impl.js.map +1 -1
  122. package/dist/src/alarms_and_conditions/ua_discrete_alarm_impl.d.ts +18 -17
  123. package/dist/src/alarms_and_conditions/ua_discrete_alarm_impl.js +57 -57
  124. package/dist/src/alarms_and_conditions/ua_discrete_alarm_impl.js.map +1 -1
  125. package/dist/src/alarms_and_conditions/ua_exclusive_deviation_alarm_impl.d.ts +30 -27
  126. package/dist/src/alarms_and_conditions/ua_exclusive_deviation_alarm_impl.js +56 -56
  127. package/dist/src/alarms_and_conditions/ua_exclusive_deviation_alarm_impl.js.map +1 -1
  128. package/dist/src/alarms_and_conditions/ua_exclusive_level_alarm_impl.d.ts +11 -9
  129. package/dist/src/alarms_and_conditions/ua_exclusive_level_alarm_impl.js +11 -11
  130. package/dist/src/alarms_and_conditions/ua_exclusive_level_alarm_impl.js.map +1 -1
  131. package/dist/src/alarms_and_conditions/ua_exclusive_limit_alarm_impl.d.ts +40 -38
  132. package/dist/src/alarms_and_conditions/ua_exclusive_limit_alarm_impl.js +86 -86
  133. package/dist/src/alarms_and_conditions/ua_exclusive_limit_alarm_impl.js.map +1 -1
  134. package/dist/src/alarms_and_conditions/ua_exclusive_rate_of_change_alarm_impl.d.ts +10 -10
  135. package/dist/src/alarms_and_conditions/ua_exclusive_rate_of_change_alarm_impl.js +7 -7
  136. package/dist/src/alarms_and_conditions/ua_limit_alarm_impl.d.ts +105 -97
  137. package/dist/src/alarms_and_conditions/ua_limit_alarm_impl.js +250 -250
  138. package/dist/src/alarms_and_conditions/ua_limit_alarm_impl.js.map +1 -1
  139. package/dist/src/alarms_and_conditions/ua_non_exclusive_deviation_alarm_impl.d.ts +29 -28
  140. package/dist/src/alarms_and_conditions/ua_non_exclusive_deviation_alarm_impl.js +50 -50
  141. package/dist/src/alarms_and_conditions/ua_non_exclusive_deviation_alarm_impl.js.map +1 -1
  142. package/dist/src/alarms_and_conditions/ua_non_exclusive_limit_alarm_impl.d.ts +26 -25
  143. package/dist/src/alarms_and_conditions/ua_non_exclusive_limit_alarm_impl.js +162 -162
  144. package/dist/src/alarms_and_conditions/ua_non_exclusive_limit_alarm_impl.js.map +1 -1
  145. package/dist/src/alarms_and_conditions/ua_off_normal_alarm_impl.d.ts +48 -39
  146. package/dist/src/alarms_and_conditions/ua_off_normal_alarm_impl.js +161 -135
  147. package/dist/src/alarms_and_conditions/ua_off_normal_alarm_impl.js.map +1 -1
  148. package/dist/src/alarms_and_conditions/ua_system_off_normal_alarm_impl.d.ts +17 -16
  149. package/dist/src/alarms_and_conditions/ua_system_off_normal_alarm_impl.js +17 -17
  150. package/dist/src/alarms_and_conditions/ua_system_off_normal_alarm_impl.js.map +1 -1
  151. package/dist/src/apply_condition_refresh.d.ts +6 -6
  152. package/dist/src/apply_condition_refresh.js +27 -27
  153. package/dist/src/base_node_impl.d.ts +281 -281
  154. package/dist/src/base_node_impl.js +1395 -1395
  155. package/dist/src/base_node_private.d.ts +61 -61
  156. package/dist/src/base_node_private.js +705 -705
  157. package/dist/src/data_access/add_dataItem_stuff.d.ts +11 -11
  158. package/dist/src/data_access/add_dataItem_stuff.js +61 -61
  159. package/dist/src/data_access/check_variant_compatibility_ua_analog_item.d.ts +1 -1
  160. package/dist/src/data_access/check_variant_compatibility_ua_analog_item.js +34 -34
  161. package/dist/src/data_access/ua_multistate_discrete_impl.d.ts +32 -32
  162. package/dist/src/data_access/ua_multistate_discrete_impl.js +130 -130
  163. package/dist/src/data_access/ua_multistate_value_discrete.d.ts +51 -51
  164. package/dist/src/data_access/ua_multistate_value_discrete.js +249 -249
  165. package/dist/src/data_access/ua_two_state_discrete.d.ts +25 -25
  166. package/dist/src/data_access/ua_two_state_discrete.js +153 -153
  167. package/dist/src/event_data.d.ts +29 -29
  168. package/dist/src/event_data.js +95 -95
  169. package/dist/src/extension_object_array_node.d.ts +61 -61
  170. package/dist/src/extension_object_array_node.js +276 -276
  171. package/dist/src/historical_access/address_space_historical_data_node.d.ts +26 -26
  172. package/dist/src/historical_access/address_space_historical_data_node.js +630 -630
  173. package/dist/src/index_current.d.ts +45 -45
  174. package/dist/src/index_current.js +77 -77
  175. package/dist/src/namespace_impl.d.ts +457 -457
  176. package/dist/src/namespace_impl.js +1733 -1733
  177. package/dist/src/namespace_private.d.ts +21 -21
  178. package/dist/src/namespace_private.js +32 -32
  179. package/dist/src/nodeid_manager.d.ts +36 -36
  180. package/dist/src/nodeid_manager.js +197 -197
  181. package/dist/src/nodeset_tools/adjust_namespace_array.d.ts +2 -2
  182. package/dist/src/nodeset_tools/adjust_namespace_array.js +13 -13
  183. package/dist/src/nodeset_tools/construct_namespace_dependency.d.ts +2 -2
  184. package/dist/src/nodeset_tools/construct_namespace_dependency.js +83 -83
  185. package/dist/src/nodeset_tools/nodeset_to_xml.d.ts +2 -2
  186. package/dist/src/nodeset_tools/nodeset_to_xml.js +1143 -1143
  187. package/dist/src/nodeset_tools/typedictionary_to_xml.d.ts +2 -2
  188. package/dist/src/nodeset_tools/typedictionary_to_xml.js +154 -154
  189. package/dist/src/reference_impl.d.ts +43 -43
  190. package/dist/src/reference_impl.js +139 -139
  191. package/dist/src/role_permissions.d.ts +2 -2
  192. package/dist/src/role_permissions.js +10 -10
  193. package/dist/src/state_machine/finite_state_machine.d.ts +67 -67
  194. package/dist/src/state_machine/finite_state_machine.js +353 -353
  195. package/dist/src/state_machine/ua_shelving_state_machine_ex.d.ts +34 -34
  196. package/dist/src/state_machine/ua_shelving_state_machine_ex.js +250 -250
  197. package/dist/src/state_machine/ua_two_state_variable.d.ts +61 -61
  198. package/dist/src/state_machine/ua_two_state_variable.js +331 -331
  199. package/dist/src/tool_isSupertypeOf.d.ts +17 -17
  200. package/dist/src/tool_isSupertypeOf.js +108 -108
  201. package/dist/src/ua_condition_type.d.ts +8 -8
  202. package/dist/src/ua_condition_type.js +2 -2
  203. package/dist/src/ua_data_type_impl.d.ts +93 -93
  204. package/dist/src/ua_data_type_impl.js +368 -368
  205. package/dist/src/ua_method_impl.d.ts +41 -41
  206. package/dist/src/ua_method_impl.js +208 -208
  207. package/dist/src/ua_object_impl.d.ts +35 -33
  208. package/dist/src/ua_object_impl.js +162 -156
  209. package/dist/src/ua_object_impl.js.map +1 -1
  210. package/dist/src/ua_object_type_impl.d.ts +48 -48
  211. package/dist/src/ua_object_type_impl.js +124 -124
  212. package/dist/src/ua_reference_type_impl.d.ts +43 -43
  213. package/dist/src/ua_reference_type_impl.js +139 -139
  214. package/dist/src/ua_variable_impl.d.ts +351 -351
  215. package/dist/src/ua_variable_impl.js +1604 -1604
  216. package/dist/src/ua_variable_impl_ext_obj.d.ts +17 -17
  217. package/dist/src/ua_variable_impl_ext_obj.js +437 -437
  218. package/dist/src/ua_variable_type_impl.d.ts +62 -62
  219. package/dist/src/ua_variable_type_impl.js +570 -570
  220. package/dist/src/ua_view_impl.d.ts +19 -15
  221. package/dist/src/ua_view_impl.js +43 -36
  222. package/dist/src/ua_view_impl.js.map +1 -1
  223. package/distHelpers/add_event_generator_object.d.ts +3 -3
  224. package/distHelpers/add_event_generator_object.js +65 -65
  225. package/distHelpers/alarms_and_conditions_demo.d.ts +10 -10
  226. package/distHelpers/alarms_and_conditions_demo.js +114 -114
  227. package/distHelpers/assertHasMatchingReference.d.ts +19 -19
  228. package/distHelpers/assertHasMatchingReference.js +40 -40
  229. package/distHelpers/boiler_system.d.ts +113 -113
  230. package/distHelpers/boiler_system.js +395 -395
  231. package/distHelpers/create_minimalist_address_space_nodeset.d.ts +5 -5
  232. package/distHelpers/create_minimalist_address_space_nodeset.js +171 -171
  233. package/distHelpers/date_utils.d.ts +3 -3
  234. package/distHelpers/date_utils.js +9 -9
  235. package/distHelpers/dump_statemachine.js +127 -127
  236. package/distHelpers/get_address_space_fixture.d.ts +1 -1
  237. package/distHelpers/get_address_space_fixture.js +30 -30
  238. package/distHelpers/get_mini_address_space.d.ts +7 -7
  239. package/distHelpers/get_mini_address_space.js +36 -36
  240. package/distHelpers/index.d.ts +12 -12
  241. package/distHelpers/index.js +28 -28
  242. package/distHelpers/mock_session.d.ts +14 -14
  243. package/distHelpers/mock_session.js +25 -25
  244. package/distNodeJS/generate_address_space.d.ts +4 -4
  245. package/distNodeJS/generate_address_space.js +41 -41
  246. package/distNodeJS/index.d.ts +1 -1
  247. package/distNodeJS/index.js +17 -17
  248. package/package.json +23 -23
  249. package/source/loader/load_nodeset2.ts +21 -17
  250. package/source/loader/make_semver_compatible.ts +23 -0
  251. package/source/loader/make_xml_extension_object_parser.ts +16 -6
  252. package/src/alarms_and_conditions/ua_acknowledgeable_condition_impl.ts +13 -6
  253. package/src/alarms_and_conditions/ua_alarm_condition_impl.ts +15 -10
  254. package/src/alarms_and_conditions/ua_certificate_expiration_alarm_impl.ts +126 -10
  255. package/src/alarms_and_conditions/ua_condition_impl.ts +26 -13
  256. package/src/alarms_and_conditions/ua_discrete_alarm_impl.ts +10 -4
  257. package/src/alarms_and_conditions/ua_exclusive_deviation_alarm_impl.ts +7 -6
  258. package/src/alarms_and_conditions/ua_exclusive_level_alarm_impl.ts +5 -3
  259. package/src/alarms_and_conditions/ua_exclusive_limit_alarm_impl.ts +7 -6
  260. package/src/alarms_and_conditions/ua_exclusive_rate_of_change_alarm_impl.ts +1 -1
  261. package/src/alarms_and_conditions/ua_limit_alarm_impl.ts +23 -13
  262. package/src/alarms_and_conditions/ua_non_exclusive_deviation_alarm_impl.ts +6 -7
  263. package/src/alarms_and_conditions/ua_non_exclusive_limit_alarm_impl.ts +6 -7
  264. package/src/alarms_and_conditions/ua_off_normal_alarm_impl.ts +62 -30
  265. package/src/alarms_and_conditions/ua_system_off_normal_alarm_impl.ts +5 -5
  266. package/src/ua_object_impl.ts +11 -3
  267. package/src/ua_view_impl.ts +6 -4
  268. package/test_helpers/test_fixtures/dataType_issue.xml +9 -9
  269. package/test_helpers/test_fixtures/nodeset_with_guid.xml +1442 -0
  270. package/test_helpers/test_fixtures/nodeset_with_int64_values.xml +31 -0
  271. package/dist/source/interfaces/alarms_and_conditions/ua_condition_base_i.d.ts +0 -23
  272. package/dist/source/interfaces/alarms_and_conditions/ua_condition_base_i.js +0 -3
  273. package/dist/source/interfaces/alarms_and_conditions/ua_condition_base_i.js.map +0 -1
  274. package/dist/source/interfaces/data_access/ua_discrete_item.d.ts +0 -6
  275. package/dist/source/interfaces/data_access/ua_discrete_item.js +0 -3
  276. package/dist/source/interfaces/data_access/ua_discrete_item.js.map +0 -1
  277. package/dist/source/interfaces/data_access/ua_multistate_discrete.d.ts +0 -25
  278. package/dist/source/interfaces/data_access/ua_multistate_discrete.js +0 -3
  279. package/dist/source/interfaces/data_access/ua_multistate_discrete.js.map +0 -1
  280. package/dist/source/interfaces/data_access/ua_multistate_value_discrete.d.ts +0 -27
  281. package/dist/source/interfaces/data_access/ua_multistate_value_discrete.js +0 -3
  282. package/dist/source/interfaces/data_access/ua_multistate_value_discrete.js.map +0 -1
  283. package/dist/source/interfaces/data_access/ua_two_state_discrete.d.ts +0 -17
  284. package/dist/source/interfaces/data_access/ua_two_state_discrete.js +0 -3
  285. package/dist/source/interfaces/data_access/ua_two_state_discrete.js.map +0 -1
  286. package/dist/source/interfaces/data_access/ua_y_array_item.d.ts +0 -19
  287. package/dist/source/interfaces/data_access/ua_y_array_item.js +0 -3
  288. package/dist/source/interfaces/data_access/ua_y_array_item.js.map +0 -1
  289. package/dist/source/interfaces/state_machine/exclusive_limit_state_machine.d.ts +0 -11
  290. package/dist/source/interfaces/state_machine/exclusive_limit_state_machine.js +0 -3
  291. package/dist/source/interfaces/state_machine/exclusive_limit_state_machine.js.map +0 -1
  292. package/dist/source/interfaces/state_machine/finite_state_machine.d.ts +0 -70
  293. package/dist/source/interfaces/state_machine/finite_state_machine.js +0 -3
  294. package/dist/source/interfaces/state_machine/finite_state_machine.js.map +0 -1
  295. package/dist/source/interfaces/state_machine/program_finite_state_machine.d.ts +0 -74
  296. package/dist/source/interfaces/state_machine/program_finite_state_machine.js +0 -3
  297. package/dist/source/interfaces/state_machine/program_finite_state_machine.js.map +0 -1
  298. package/dist/source/interfaces/state_machine/state_machine.d.ts +0 -342
  299. package/dist/source/interfaces/state_machine/state_machine.js +0 -3
  300. package/dist/source/interfaces/state_machine/state_machine.js.map +0 -1
  301. package/dist/source/interfaces/state_machine/ua_finite_state_variable.d.ts +0 -18
  302. package/dist/source/interfaces/state_machine/ua_finite_state_variable.js +0 -3
  303. package/dist/source/interfaces/state_machine/ua_finite_state_variable.js.map +0 -1
  304. package/dist/source/interfaces/state_machine/ua_state_variable.d.ts +0 -29
  305. package/dist/source/interfaces/state_machine/ua_state_variable.js +0 -3
  306. package/dist/source/interfaces/state_machine/ua_state_variable.js.map +0 -1
  307. package/dist/source/interfaces/state_machine/ua_two_state_variable.d.ts +0 -26
  308. package/dist/source/interfaces/state_machine/ua_two_state_variable.js +0 -3
  309. package/dist/source/interfaces/state_machine/ua_two_state_variable.js.map +0 -1
  310. package/dist/source/interfaces/subscription_diagnostics_variable.d.ts +0 -41
  311. package/dist/source/interfaces/subscription_diagnostics_variable.js +0 -3
  312. package/dist/source/interfaces/subscription_diagnostics_variable.js.map +0 -1
  313. package/dist/src/alarms_and_conditions/base_event_type.d.ts +0 -26
  314. package/dist/src/alarms_and_conditions/base_event_type.js +0 -41
  315. package/dist/src/alarms_and_conditions/base_event_type.js.map +0 -1
  316. package/dist/src/alarms_and_conditions/shelving_state_machine.d.ts +0 -22
  317. package/dist/src/alarms_and_conditions/shelving_state_machine.js +0 -241
  318. package/dist/src/alarms_and_conditions/shelving_state_machine.js.map +0 -1
  319. package/dist/src/alarms_and_conditions/trip_alarm.d.ts +0 -16
  320. package/dist/src/alarms_and_conditions/trip_alarm.js +0 -21
  321. package/dist/src/alarms_and_conditions/trip_alarm.js.map +0 -1
  322. package/dist/src/alarms_and_conditions/ua_acknowledgeable_condition_base.d.ts +0 -54
  323. package/dist/src/alarms_and_conditions/ua_acknowledgeable_condition_base.js +0 -255
  324. package/dist/src/alarms_and_conditions/ua_acknowledgeable_condition_base.js.map +0 -1
  325. package/dist/src/alarms_and_conditions/ua_alarm_condition_base.d.ts +0 -138
  326. package/dist/src/alarms_and_conditions/ua_alarm_condition_base.js +0 -460
  327. package/dist/src/alarms_and_conditions/ua_alarm_condition_base.js.map +0 -1
  328. package/dist/src/alarms_and_conditions/ua_certificate_expiration_alarm.d.ts +0 -35
  329. package/dist/src/alarms_and_conditions/ua_certificate_expiration_alarm.js +0 -32
  330. package/dist/src/alarms_and_conditions/ua_certificate_expiration_alarm.js.map +0 -1
  331. package/dist/src/alarms_and_conditions/ua_condition_base.d.ts +0 -191
  332. package/dist/src/alarms_and_conditions/ua_condition_base.js +0 -1029
  333. package/dist/src/alarms_and_conditions/ua_condition_base.js.map +0 -1
  334. package/dist/src/alarms_and_conditions/ua_discrete_alarm.d.ts +0 -11
  335. package/dist/src/alarms_and_conditions/ua_discrete_alarm.js +0 -58
  336. package/dist/src/alarms_and_conditions/ua_discrete_alarm.js.map +0 -1
  337. package/dist/src/alarms_and_conditions/ua_exclusive_deviation_alarm.d.ts +0 -24
  338. package/dist/src/alarms_and_conditions/ua_exclusive_deviation_alarm.js +0 -59
  339. package/dist/src/alarms_and_conditions/ua_exclusive_deviation_alarm.js.map +0 -1
  340. package/dist/src/alarms_and_conditions/ua_exclusive_level_alarm.d.ts +0 -14
  341. package/dist/src/alarms_and_conditions/ua_exclusive_level_alarm.js +0 -17
  342. package/dist/src/alarms_and_conditions/ua_exclusive_level_alarm.js.map +0 -1
  343. package/dist/src/alarms_and_conditions/ua_exclusive_limit_alarm.d.ts +0 -22
  344. package/dist/src/alarms_and_conditions/ua_exclusive_limit_alarm.js +0 -87
  345. package/dist/src/alarms_and_conditions/ua_exclusive_limit_alarm.js.map +0 -1
  346. package/dist/src/alarms_and_conditions/ua_exclusive_rate_of_change_alarm.d.ts +0 -6
  347. package/dist/src/alarms_and_conditions/ua_exclusive_rate_of_change_alarm.js +0 -11
  348. package/dist/src/alarms_and_conditions/ua_exclusive_rate_of_change_alarm.js.map +0 -1
  349. package/dist/src/alarms_and_conditions/ua_limit_alarm.d.ts +0 -76
  350. package/dist/src/alarms_and_conditions/ua_limit_alarm.js +0 -237
  351. package/dist/src/alarms_and_conditions/ua_limit_alarm.js.map +0 -1
  352. package/dist/src/alarms_and_conditions/ua_non_exclusive_deviation_alarm.d.ts +0 -27
  353. package/dist/src/alarms_and_conditions/ua_non_exclusive_deviation_alarm.js +0 -62
  354. package/dist/src/alarms_and_conditions/ua_non_exclusive_deviation_alarm.js.map +0 -1
  355. package/dist/src/alarms_and_conditions/ua_non_exclusive_limit_alarm.d.ts +0 -49
  356. package/dist/src/alarms_and_conditions/ua_non_exclusive_limit_alarm.js +0 -176
  357. package/dist/src/alarms_and_conditions/ua_non_exclusive_limit_alarm.js.map +0 -1
  358. package/dist/src/alarms_and_conditions/ua_off_normal_alarm.d.ts +0 -47
  359. package/dist/src/alarms_and_conditions/ua_off_normal_alarm.js +0 -151
  360. package/dist/src/alarms_and_conditions/ua_off_normal_alarm.js.map +0 -1
  361. package/dist/src/alarms_and_conditions/ua_system_off_normal_alarm.d.ts +0 -16
  362. package/dist/src/alarms_and_conditions/ua_system_off_normal_alarm.js +0 -18
  363. package/dist/src/alarms_and_conditions/ua_system_off_normal_alarm.js.map +0 -1
  364. package/dist/src/base_node.d.ts +0 -270
  365. package/dist/src/base_node.js +0 -1299
  366. package/dist/src/base_node.js.map +0 -1
  367. package/dist/src/data_access/ua_analog_item.d.ts +0 -13
  368. package/dist/src/data_access/ua_analog_item.js +0 -37
  369. package/dist/src/data_access/ua_analog_item.js.map +0 -1
  370. package/dist/src/data_access/ua_data_item.d.ts +0 -16
  371. package/dist/src/data_access/ua_data_item.js +0 -66
  372. package/dist/src/data_access/ua_data_item.js.map +0 -1
  373. package/dist/src/data_access/ua_multistate_discrete.d.ts +0 -24
  374. package/dist/src/data_access/ua_multistate_discrete.js +0 -132
  375. package/dist/src/data_access/ua_multistate_discrete.js.map +0 -1
  376. package/dist/src/namespace.d.ts +0 -472
  377. package/dist/src/namespace.js +0 -1759
  378. package/dist/src/namespace.js.map +0 -1
  379. package/dist/src/reference.d.ts +0 -43
  380. package/dist/src/reference.js +0 -138
  381. package/dist/src/reference.js.map +0 -1
  382. package/dist/src/session_context.d.ts +0 -4
  383. package/dist/src/session_context.js +0 -9
  384. package/dist/src/session_context.js.map +0 -1
  385. package/dist/src/ua_data_type.d.ts +0 -81
  386. package/dist/src/ua_data_type.js +0 -259
  387. package/dist/src/ua_data_type.js.map +0 -1
  388. package/dist/src/ua_method.d.ts +0 -33
  389. package/dist/src/ua_method.js +0 -194
  390. package/dist/src/ua_method.js.map +0 -1
  391. package/dist/src/ua_object.d.ts +0 -27
  392. package/dist/src/ua_object.js +0 -153
  393. package/dist/src/ua_object.js.map +0 -1
  394. package/dist/src/ua_object_type.d.ts +0 -49
  395. package/dist/src/ua_object_type.js +0 -123
  396. package/dist/src/ua_object_type.js.map +0 -1
  397. package/dist/src/ua_reference_type.d.ts +0 -31
  398. package/dist/src/ua_reference_type.js +0 -108
  399. package/dist/src/ua_reference_type.js.map +0 -1
  400. package/dist/src/ua_variable.d.ts +0 -346
  401. package/dist/src/ua_variable.js +0 -1651
  402. package/dist/src/ua_variable.js.map +0 -1
  403. package/dist/src/ua_variable_type.d.ts +0 -57
  404. package/dist/src/ua_variable_type.js +0 -530
  405. package/dist/src/ua_variable_type.js.map +0 -1
  406. package/dist/src/ua_view.d.ts +0 -16
  407. package/dist/src/ua_view.js +0 -41
  408. package/dist/src/ua_view.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"ua_data_type.js","sourceRoot":"","sources":["../../src/ua_data_type.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,+BAA+B;AAE/B,yDAA2C;AAC3C,iEAAkD;AAClD,iEAAqD;AACrD,iEAAiE;AAEjE,yDAA2D;AAC3D,uEAAwD;AACxD,mEAAqD;AACrD,uDAO0B;AAE1B,2DAA8C;AAE9C,sCAAuF;AACvF,2CAAuC;AACvC,2DAAuH;AACv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C,YAAY,EAAE;QACnB,OAAO,CAAC,GAAG,CACP,OAAO,CAAC,OAAO;YACX,KAAK,CAAC,MAAM,CAAC,kCAAkC,CAAC;YAChD,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CACzE,CAAC;KACL;IACD,aAAa;IACb,gDAA4B,CAAC,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAEjD,2BAA2B,CAAC,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;AACpD,CAAC;AA3BD,8CA2BC"}
@@ -1,33 +0,0 @@
1
- import { AttributeIds } from "node-opcua-data-model";
2
- import { NodeClass } from "node-opcua-data-model";
3
- import { DataValue } from "node-opcua-data-value";
4
- import { NodeId } from "node-opcua-nodeid";
5
- import { Argument } from "node-opcua-service-call";
6
- import { CallMethodResultOptions } from "node-opcua-types";
7
- import { VariantLike } from "node-opcua-variant";
8
- import { MethodFunctor, MethodFunctorCallback, UAMethod as UAMethodPublic, UAObject as UAObjectPublic, UAObjectType, Permissions } from "../source";
9
- import { SessionContext } from "../source";
10
- import { BaseNode } from "./base_node";
11
- export declare class UAMethod extends BaseNode implements UAMethodPublic {
12
- static checkValidArgument(args: any): boolean;
13
- readonly nodeClass = NodeClass.Method;
14
- get typeDefinitionObj(): UAObjectType;
15
- get parent(): UAObjectPublic | null;
16
- value?: any;
17
- methodDeclarationId: NodeId;
18
- _getExecutableFlag?: (this: UAMethod, context: SessionContext) => boolean;
19
- _permissions: Permissions | null;
20
- _asyncExecutionFunction?: MethodFunctor;
21
- constructor(options: any);
22
- getExecutableFlag(context: SessionContext): boolean;
23
- isBound(): boolean;
24
- readAttribute(context: SessionContext, attributeId: AttributeIds): DataValue;
25
- getInputArguments(): Argument[];
26
- getOutputArguments(): Argument[];
27
- setPermissions(permissions: Permissions): void;
28
- bindMethod(async_func: MethodFunctor): void;
29
- execute(inputArguments: null | VariantLike[], context: SessionContext): Promise<CallMethodResultOptions>;
30
- execute(inputArguments: null | VariantLike[], context: SessionContext, callback: MethodFunctorCallback): void;
31
- clone(options: any, optionalFilter?: any, extraInfo?: any): UAMethodPublic;
32
- private _getArguments;
33
- }
@@ -1,194 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UAMethod = void 0;
4
- /**
5
- * @module node-opcua-address-space
6
- */
7
- // tslint:disable:no-console
8
- const chalk = require("chalk");
9
- const node_opcua_assert_1 = require("node-opcua-assert");
10
- const node_opcua_data_model_1 = require("node-opcua-data-model");
11
- const node_opcua_data_model_2 = require("node-opcua-data-model");
12
- const node_opcua_data_value_1 = require("node-opcua-data-value");
13
- const node_opcua_status_code_1 = require("node-opcua-status-code");
14
- const node_opcua_variant_1 = require("node-opcua-variant");
15
- const node_opcua_variant_2 = require("node-opcua-variant");
16
- const base_node_1 = require("./base_node");
17
- const base_node_private_1 = require("./base_node_private");
18
- const namespace_1 = require("./namespace");
19
- function default_check_valid_argument(arg) {
20
- return arg.constructor.name === "Argument";
21
- }
22
- class UAMethod extends base_node_1.BaseNode {
23
- constructor(options) {
24
- super(options);
25
- this.nodeClass = node_opcua_data_model_2.NodeClass.Method;
26
- this.value = options.value;
27
- this.methodDeclarationId = options.methodDeclarationId;
28
- this._permissions = null;
29
- if (options.permissions) {
30
- this.setPermissions(options.permissions);
31
- }
32
- }
33
- static checkValidArgument(args) {
34
- return default_check_valid_argument(args);
35
- }
36
- get typeDefinitionObj() {
37
- return super.typeDefinitionObj;
38
- }
39
- get parent() {
40
- return super.parent;
41
- }
42
- getExecutableFlag(context) {
43
- if (typeof this._asyncExecutionFunction !== "function") {
44
- return false;
45
- }
46
- if (this._getExecutableFlag) {
47
- return this._getExecutableFlag(context);
48
- }
49
- return true;
50
- }
51
- isBound() {
52
- return !!this._asyncExecutionFunction;
53
- }
54
- readAttribute(context, attributeId) {
55
- const options = {};
56
- switch (attributeId) {
57
- case node_opcua_data_model_1.AttributeIds.Executable:
58
- options.value = { dataType: node_opcua_variant_2.DataType.Boolean, value: this.getExecutableFlag(context) };
59
- options.statusCode = node_opcua_status_code_1.StatusCodes.Good;
60
- break;
61
- case node_opcua_data_model_1.AttributeIds.UserExecutable:
62
- options.value = { dataType: node_opcua_variant_2.DataType.Boolean, value: this.getExecutableFlag(context) };
63
- options.statusCode = node_opcua_status_code_1.StatusCodes.Good;
64
- break;
65
- default:
66
- return base_node_1.BaseNode.prototype.readAttribute.call(this, context, attributeId);
67
- }
68
- return new node_opcua_data_value_1.DataValue(options);
69
- }
70
- getInputArguments() {
71
- return this._getArguments("InputArguments");
72
- }
73
- getOutputArguments() {
74
- return this._getArguments("OutputArguments");
75
- }
76
- setPermissions(permissions) {
77
- this._permissions = permissions;
78
- }
79
- bindMethod(async_func) {
80
- node_opcua_assert_1.assert(typeof async_func === "function");
81
- this._asyncExecutionFunction = async_func;
82
- }
83
- execute(inputArguments, context, callback) {
84
- if (!callback) {
85
- throw new Error("execute need to be promisified");
86
- }
87
- node_opcua_assert_1.assert(inputArguments === null || Array.isArray(inputArguments));
88
- inputArguments = inputArguments || [];
89
- inputArguments = inputArguments.map(node_opcua_variant_1.Variant.coerce);
90
- node_opcua_assert_1.assert(inputArguments.length === 0 || inputArguments[0] instanceof node_opcua_variant_1.Variant);
91
- node_opcua_assert_1.assert(context !== null && typeof context === "object");
92
- node_opcua_assert_1.assert(typeof callback === "function");
93
- // a context object must be provided
94
- if (!context.object) {
95
- context.object = this.parent;
96
- }
97
- node_opcua_assert_1.assert(context.object instanceof base_node_1.BaseNode);
98
- if (context.object.nodeClass !== node_opcua_data_model_2.NodeClass.Object && context.object.nodeClass !== node_opcua_data_model_2.NodeClass.ObjectType) {
99
- console.log("Method " +
100
- this.nodeId.toString() +
101
- " " +
102
- this.browseName.toString() +
103
- " called for a node that is not a Object/ObjectType but " +
104
- node_opcua_data_model_2.NodeClass[context.object.nodeClass]);
105
- return callback(null, { statusCode: node_opcua_status_code_1.StatusCodes.BadNodeIdInvalid });
106
- }
107
- if (!this._asyncExecutionFunction) {
108
- console.log("Method " + this.nodeId.toString() + " " + this.browseName.toString() + " has not been bound");
109
- return callback(null, { statusCode: node_opcua_status_code_1.StatusCodes.BadInternalError });
110
- }
111
- if (!this.getExecutableFlag(context)) {
112
- console.log("Method " + this.nodeId.toString() + " " + this.browseName.toString() + " is not executable");
113
- // todo : find the correct Status code to return here
114
- return callback(null, { statusCode: node_opcua_status_code_1.StatusCodes.BadMethodInvalid });
115
- }
116
- if (this._permissions && context.checkPermission) {
117
- if (!context.checkPermission(this, "Execute")) {
118
- return callback(null, { statusCode: node_opcua_status_code_1.StatusCodes.BadUserAccessDenied });
119
- }
120
- }
121
- // verify that input arguments are correct
122
- // todo :
123
- const inputArgumentDiagnosticInfos = [];
124
- try {
125
- this._asyncExecutionFunction.call(this, inputArguments, context, (err, callMethodResult) => {
126
- var _a;
127
- if (err) {
128
- console.log(err.message);
129
- console.log(err);
130
- }
131
- callMethodResult = callMethodResult || {};
132
- callMethodResult.statusCode = callMethodResult.statusCode || node_opcua_status_code_1.StatusCodes.Good;
133
- callMethodResult.outputArguments = callMethodResult.outputArguments || [];
134
- callMethodResult.inputArgumentResults =
135
- ((_a = callMethodResult.inputArgumentResults) === null || _a === void 0 ? void 0 : _a.length) === (inputArguments === null || inputArguments === void 0 ? void 0 : inputArguments.length)
136
- ? callMethodResult.inputArgumentResults
137
- : inputArguments === null || inputArguments === void 0 ? void 0 : inputArguments.map(() => node_opcua_status_code_1.StatusCodes.Good);
138
- callMethodResult.inputArgumentDiagnosticInfos = inputArgumentDiagnosticInfos;
139
- // verify that output arguments are correct according to schema
140
- // Todo : ...
141
- // const outputArgsDef = this.getOutputArguments();
142
- // xx assert(outputArgsDef.length === callMethodResponse.outputArguments.length,
143
- // xx "_asyncExecutionFunction did not provide the expected number of output arguments");
144
- // to be continued ...
145
- callback(err, callMethodResult);
146
- });
147
- }
148
- catch (err) {
149
- // tslint:disable:no-console
150
- console.log(chalk.red("ERR in method handler"), err.message);
151
- console.error(err.stack);
152
- const callMethodResponse = { statusCode: node_opcua_status_code_1.StatusCodes.BadInternalError };
153
- callback(err, callMethodResponse);
154
- }
155
- }
156
- clone(options, optionalFilter, extraInfo) {
157
- node_opcua_assert_1.assert(!options.componentOf || options.componentOf, "trying to create an orphan method ?");
158
- options = options || {};
159
- options = Object.assign(Object.assign({}, options), { methodDeclarationId: this.nodeId });
160
- options.references = options.references || [];
161
- const addressSpace = this.addressSpace;
162
- namespace_1._handle_hierarchy_parent(addressSpace, options.references, options);
163
- const clonedMethod = base_node_private_1._clone.call(this, UAMethod, options, optionalFilter, extraInfo);
164
- clonedMethod._asyncExecutionFunction = this._asyncExecutionFunction;
165
- clonedMethod._getExecutableFlag = this._getExecutableFlag;
166
- if (options.componentOf) {
167
- const m = options.componentOf.getMethodByName(clonedMethod.browseName.name);
168
- node_opcua_assert_1.assert(m);
169
- }
170
- return clonedMethod;
171
- }
172
- _getArguments(name) {
173
- node_opcua_assert_1.assert(name === "InputArguments" || name === "OutputArguments");
174
- const argsVariable = this.getPropertyByName(name);
175
- if (!argsVariable) {
176
- return [];
177
- }
178
- node_opcua_assert_1.assert(argsVariable.nodeClass === node_opcua_data_model_2.NodeClass.Variable);
179
- const args = argsVariable.readValue().value.value;
180
- if (!args) {
181
- return [];
182
- }
183
- // a list of extension object
184
- node_opcua_assert_1.assert(Array.isArray(args));
185
- node_opcua_assert_1.assert(args.length === 0 || UAMethod.checkValidArgument(args[0]));
186
- return args;
187
- }
188
- }
189
- exports.UAMethod = UAMethod;
190
- // tslint:disable:no-var-requires
191
- // tslint:disable:max-line-length
192
- const thenify = require("thenify");
193
- UAMethod.prototype.execute = thenify.withCallback(UAMethod.prototype.execute);
194
- //# sourceMappingURL=ua_method.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ua_method.js","sourceRoot":"","sources":["../../src/ua_method.ts"],"names":[],"mappings":";;;AAAA;;GAE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0BAAM,CAAC,IAAI,CAAC,MAAM,KAAK,CAAC,IAAI,QAAQ,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAClE,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ;AAnND,4BAmNC;AAED,iCAAiC;AACjC,iCAAiC;AACjC,MAAM,OAAO,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;AACnC,QAAQ,CAAC,SAAS,CAAC,OAAO,GAAG,OAAO,CAAC,YAAY,CAAC,QAAQ,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC"}
@@ -1,27 +0,0 @@
1
- import { NodeClass } from "node-opcua-data-model";
2
- import { AttributeIds } from "node-opcua-data-model";
3
- import { DataValue } from "node-opcua-data-value";
4
- import { EventTypeLike, RaiseEventData, SessionContext, UAMethod as UAMethodPublic, UAObject as UAObjectPublic, UAObjectType as UAObjectTypePublic } from "../source";
5
- import { BaseNode } from "./base_node";
6
- export declare class UAObject extends BaseNode implements UAObjectPublic {
7
- readonly nodeClass = NodeClass.Object;
8
- readonly eventNotifier: number;
9
- readonly symbolicName: string;
10
- get typeDefinitionObj(): UAObjectTypePublic;
11
- constructor(options: any);
12
- readAttribute(context: SessionContext, attributeId: AttributeIds): DataValue;
13
- clone(options: any, optionalFilter?: any, extraInfo?: any): UAObject;
14
- /**
15
- * returns true if the object has some opcua methods
16
- */
17
- get hasMethods(): boolean;
18
- getMethodByName(methodName: string): UAMethodPublic | null;
19
- getMethods(): UAMethodPublic[];
20
- /**
21
- * Raise a transient Event
22
- */
23
- raiseEvent(eventType: EventTypeLike | BaseNode, data: RaiseEventData): void;
24
- _bubble_up_event(eventData: any): void;
25
- _conditionRefresh(_cache?: any): void;
26
- toString(): string;
27
- }
@@ -1,153 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UAObject = void 0;
4
- /**
5
- * @module node-opcua-address-space
6
- */
7
- const chalk = require("chalk");
8
- const node_opcua_assert_1 = require("node-opcua-assert");
9
- const node_opcua_basic_types_1 = require("node-opcua-basic-types");
10
- const node_opcua_data_model_1 = require("node-opcua-data-model");
11
- const node_opcua_data_model_2 = require("node-opcua-data-model");
12
- const node_opcua_data_value_1 = require("node-opcua-data-value");
13
- const node_opcua_date_time_1 = require("node-opcua-date-time");
14
- const node_opcua_nodeid_1 = require("node-opcua-nodeid");
15
- const node_opcua_status_code_1 = require("node-opcua-status-code");
16
- const node_opcua_variant_1 = require("node-opcua-variant");
17
- const base_node_1 = require("./base_node");
18
- const base_node_private_1 = require("./base_node_private");
19
- class UAObject extends base_node_1.BaseNode {
20
- constructor(options) {
21
- super(options);
22
- this.nodeClass = node_opcua_data_model_1.NodeClass.Object;
23
- this.eventNotifier = options.eventNotifier || 0;
24
- node_opcua_assert_1.assert(typeof this.eventNotifier === "number" && node_opcua_basic_types_1.isValidByte(this.eventNotifier));
25
- this.symbolicName = options.symbolicName || null;
26
- }
27
- get typeDefinitionObj() {
28
- return super.typeDefinitionObj;
29
- }
30
- readAttribute(context, attributeId) {
31
- const now = node_opcua_date_time_1.getCurrentClock();
32
- const options = {};
33
- switch (attributeId) {
34
- case node_opcua_data_model_2.AttributeIds.EventNotifier:
35
- node_opcua_assert_1.assert(node_opcua_basic_types_1.isValidByte(this.eventNotifier));
36
- options.value = { dataType: node_opcua_variant_1.DataType.Byte, value: this.eventNotifier };
37
- options.serverTimestamp = now.timestamp;
38
- options.serverPicoseconds = now.picoseconds;
39
- options.statusCode = node_opcua_status_code_1.StatusCodes.Good;
40
- break;
41
- default:
42
- return base_node_1.BaseNode.prototype.readAttribute.call(this, context, attributeId);
43
- }
44
- return new node_opcua_data_value_1.DataValue(options);
45
- }
46
- clone(options, optionalFilter, extraInfo) {
47
- options = options || {};
48
- options = Object.assign(Object.assign({}, options), { eventNotifier: this.eventNotifier, symbolicName: this.symbolicName });
49
- const cloneObject = base_node_private_1._clone.call(this, UAObject, options, optionalFilter, extraInfo);
50
- // xx newObject.propagate_back_references();
51
- // xx newObject.install_extra_properties();
52
- return cloneObject;
53
- }
54
- /**
55
- * returns true if the object has some opcua methods
56
- */
57
- get hasMethods() {
58
- return this.getMethods().length > 0;
59
- }
60
- getMethodByName(methodName) {
61
- return super.getMethodByName(methodName);
62
- }
63
- getMethods() {
64
- return super.getMethods();
65
- }
66
- /**
67
- * Raise a transient Event
68
- */
69
- raiseEvent(eventType, data) {
70
- const addressSpace = this.addressSpace;
71
- if (typeof eventType === "string") {
72
- const eventTypeFound = addressSpace.findEventType(eventType);
73
- if (!eventTypeFound) {
74
- throw new Error("raiseEvent: eventType cannot find event Type " + eventType.toString());
75
- }
76
- eventType = eventTypeFound;
77
- if (!eventType || eventType.nodeClass !== node_opcua_data_model_1.NodeClass.ObjectType) {
78
- throw new Error("eventType must exist and be an UAObjectType" + eventType.toString());
79
- }
80
- }
81
- else if (eventType instanceof node_opcua_nodeid_1.NodeId) {
82
- const eventTypeFound = addressSpace.findNode(eventType);
83
- if (!eventTypeFound) {
84
- throw new Error("raiseEvent: eventType cannot find event Type " + eventType.toString());
85
- }
86
- eventType = eventTypeFound;
87
- if (!eventType || eventType.nodeClass !== node_opcua_data_model_1.NodeClass.ObjectType) {
88
- throw new Error("eventType must exist and be an UAObjectType" + eventType.toString());
89
- }
90
- }
91
- eventType = eventType;
92
- let eventTypeNode = eventType;
93
- // istanbul ignore next
94
- if (!eventTypeNode) {
95
- throw new Error("UAObject#raiseEventType : Cannot find event type :" + eventType.toString());
96
- }
97
- // coerce EventType
98
- eventTypeNode = addressSpace.findEventType(eventType);
99
- const baseEventType = addressSpace.findEventType("BaseEventType");
100
- node_opcua_assert_1.assert(eventTypeNode.isSupertypeOf(baseEventType));
101
- data.$eventDataSource = eventTypeNode;
102
- data.sourceNode = data.sourceNode || { dataType: node_opcua_variant_1.DataType.NodeId, value: this.nodeId };
103
- const eventData1 = addressSpace.constructEventData(eventTypeNode, data);
104
- this._bubble_up_event(eventData1);
105
- }
106
- _bubble_up_event(eventData) {
107
- const addressSpace = this.addressSpace;
108
- const queue = [];
109
- // walk up the hasNotify / hasEventSource chain
110
- const m = {};
111
- // all events are notified to the server object
112
- // emit on server object
113
- const server = addressSpace.findNode("Server");
114
- if (server) {
115
- node_opcua_assert_1.assert(server.eventNotifier > 0x00, "Server must be an event notifier");
116
- server.emit("event", eventData);
117
- m[server.nodeId.toString()] = server;
118
- }
119
- else {
120
- // tslint:disable:no-console
121
- console.warn(chalk.yellow("Warning. ") +
122
- chalk.cyan("UAObject#raiseEvent") +
123
- chalk.red(" cannot find Server object on addressSpace"));
124
- }
125
- addinqueue(this);
126
- function addinqueue(obj) {
127
- const key = obj.nodeId.toString();
128
- if (!m[key]) {
129
- m[key] = obj;
130
- queue.push(obj);
131
- }
132
- }
133
- while (queue.length) {
134
- const obj = queue.pop();
135
- // emit on object
136
- obj.emit("event", eventData);
137
- const elements1 = obj.findReferencesAsObject("HasNotifier", false);
138
- elements1.forEach(addinqueue);
139
- const elements2 = obj.findReferencesAsObject("HasEventSource", false);
140
- elements2.forEach(addinqueue);
141
- }
142
- }
143
- _conditionRefresh(_cache) {
144
- base_node_private_1.apply_condition_refresh.call(this, _cache);
145
- }
146
- toString() {
147
- const options = new base_node_private_1.ToStringBuilder();
148
- base_node_private_1.UAObject_toString.call(this, options);
149
- return options.toString();
150
- }
151
- }
152
- exports.UAObject = UAObject;
153
- //# sourceMappingURL=ua_object.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ua_object.js","sourceRoot":"","sources":["../../src/ua_object.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,+BAA+B;AAE/B,yDAA2C;AAC3C,mEAAqD;AACrD,iEAAkD;AAClD,iEAAqD;AACrD,iEAAiE;AACjE,+DAAuD;AACvD,yDAA2C;AAC3C,mEAAqD;AACrD,2DAA8C;AAU9C,2CAAuC;AACvC,2DAA0G;AAE1G,MAAa,QAAS,SAAQ,oBAAQ;IASlC,YAAY,OAAY;QACpB,KAAK,CAAC,OAAO,CAAC,CA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QACjC,2CAAuB,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;IAC/C,CAAC;IAEM,QAAQ;QACX,MAAM,OAAO,GAAG,IAAI,mCAAe,EAAE,CAAC;QACtC,qCAAiB,CAAC,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QACtC,OAAO,OAAO,CAAC,QAAQ,EAAE,CAAC;IAC9B,CAAC;CACJ;AApKD,4BAoKC"}
@@ -1,49 +0,0 @@
1
- import { NodeClass } from "node-opcua-data-model";
2
- import { AttributeIds } from "node-opcua-data-model";
3
- import { DataValue } from "node-opcua-data-value";
4
- import { NodeId } from "node-opcua-nodeid";
5
- import { InstantiateObjectOptions, UAObject as UAObjectPublic, UAObjectType as UAObjectTypePublic } from "../source";
6
- import { BaseNode } from "./base_node";
7
- import { SessionContext } from "./session_context";
8
- import * as tools from "./tool_isSupertypeOf";
9
- export declare class UAObjectType extends BaseNode implements UAObjectTypePublic {
10
- readonly nodeClass = NodeClass.ObjectType;
11
- readonly isAbstract: boolean;
12
- /**
13
- * returns true if the object has some opcua methods
14
- */
15
- get hasMethods(): boolean;
16
- get subtypeOf(): NodeId | null;
17
- get subtypeOfObj(): UAObjectTypePublic | null;
18
- isSupertypeOf: tools.IsSupertypeOfFunc<UAObjectTypePublic>;
19
- constructor(options: any);
20
- readAttribute(context: SessionContext, attributeId: AttributeIds): DataValue;
21
- /**
22
- * instantiate an object of this UAObjectType
23
- * The instantiation takes care of object type inheritance when constructing inner properties and components.
24
- * @method instantiate
25
- * @param options
26
- * @param options.browseName
27
- * @param [options.description]
28
- * @param [options.organizedBy] the parent Folder holding this object
29
- * @param [options.componentOf] the parent Object holding this object
30
- * @param [options.notifierOf]
31
- * @param [options.eventSourceOf]
32
- * @param [options.optionals = [] name of the optional child to create
33
- * @param [options.modellingRule]
34
- * @param [options.encodingOf]
35
- *
36
- *
37
- * Note : HasComponent usage scope
38
- *
39
- * Source | Destination
40
- * -------------------+---------------------------
41
- * Object | Object, Variable,Method
42
- * ObjectType |
43
- * -------------------+---------------------------
44
- * DataVariable | Variable
45
- * DataVariableType |
46
- */
47
- instantiate(options: InstantiateObjectOptions): UAObjectPublic;
48
- toString(): string;
49
- }
@@ -1,123 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UAObjectType = void 0;
4
- /**
5
- * @module node-opcua-address-space
6
- */
7
- const node_opcua_assert_1 = require("node-opcua-assert");
8
- const node_opcua_data_model_1 = require("node-opcua-data-model");
9
- const node_opcua_data_model_2 = require("node-opcua-data-model");
10
- const node_opcua_data_value_1 = require("node-opcua-data-value");
11
- const node_opcua_status_code_1 = require("node-opcua-status-code");
12
- const utils = require("node-opcua-utils");
13
- const node_opcua_variant_1 = require("node-opcua-variant");
14
- const base_node_1 = require("./base_node");
15
- const base_node_private_1 = require("./base_node_private");
16
- const session_context_1 = require("./session_context");
17
- const tool_isSupertypeOf_1 = require("./tool_isSupertypeOf");
18
- const tools = require("./tool_isSupertypeOf");
19
- const ua_variable_type_1 = require("./ua_variable_type");
20
- class UAObjectType extends base_node_1.BaseNode {
21
- constructor(options) {
22
- super(options);
23
- this.nodeClass = node_opcua_data_model_1.NodeClass.ObjectType;
24
- this.isSupertypeOf = tools.construct_isSupertypeOf(UAObjectType);
25
- this.isAbstract = utils.isNullOrUndefined(options.isAbstract) ? false : options.isAbstract;
26
- }
27
- /**
28
- * returns true if the object has some opcua methods
29
- */
30
- get hasMethods() {
31
- return this.getMethods().length > 0;
32
- }
33
- get subtypeOf() {
34
- return tool_isSupertypeOf_1.get_subtypeOf.call(this);
35
- }
36
- get subtypeOfObj() {
37
- return tool_isSupertypeOf_1.get_subtypeOfObj.call(this);
38
- }
39
- readAttribute(context, attributeId) {
40
- node_opcua_assert_1.assert(context instanceof session_context_1.SessionContext);
41
- const options = {};
42
- switch (attributeId) {
43
- case node_opcua_data_model_2.AttributeIds.IsAbstract:
44
- options.value = {
45
- dataType: node_opcua_variant_1.DataType.Boolean,
46
- value: !!this.isAbstract
47
- };
48
- options.statusCode = node_opcua_status_code_1.StatusCodes.Good;
49
- break;
50
- default:
51
- return base_node_1.BaseNode.prototype.readAttribute.call(this, context, attributeId);
52
- }
53
- return new node_opcua_data_value_1.DataValue(options);
54
- }
55
- /**
56
- * instantiate an object of this UAObjectType
57
- * The instantiation takes care of object type inheritance when constructing inner properties and components.
58
- * @method instantiate
59
- * @param options
60
- * @param options.browseName
61
- * @param [options.description]
62
- * @param [options.organizedBy] the parent Folder holding this object
63
- * @param [options.componentOf] the parent Object holding this object
64
- * @param [options.notifierOf]
65
- * @param [options.eventSourceOf]
66
- * @param [options.optionals = [] name of the optional child to create
67
- * @param [options.modellingRule]
68
- * @param [options.encodingOf]
69
- *
70
- *
71
- * Note : HasComponent usage scope
72
- *
73
- * Source | Destination
74
- * -------------------+---------------------------
75
- * Object | Object, Variable,Method
76
- * ObjectType |
77
- * -------------------+---------------------------
78
- * DataVariable | Variable
79
- * DataVariableType |
80
- */
81
- instantiate(options) {
82
- const addressSpace = this.addressSpace;
83
- node_opcua_assert_1.assert(!this.isAbstract, "cannot instantiate abstract UAObjectType");
84
- node_opcua_assert_1.assert(options, "missing option object");
85
- node_opcua_assert_1.assert(typeof options.browseName === "string" || (options.browseName !== null && typeof options.browseName === "object"), "expecting a browse name");
86
- node_opcua_assert_1.assert(!options.hasOwnProperty("propertyOf"), "an Object shall not be a PropertyOf an other object");
87
- node_opcua_assert_1.assert(!options.hasOwnProperty("optional"), "do you mean optionals ?");
88
- ua_variable_type_1.assertUnusedChildBrowseName(addressSpace, options);
89
- const baseObjectType = addressSpace.findObjectType("BaseObjectType");
90
- node_opcua_assert_1.assert(baseObjectType, "BaseObjectType must be defined in the address space");
91
- const references = [];
92
- const opts = {
93
- browseName: options.browseName,
94
- componentOf: options.componentOf,
95
- description: options.description || this.description,
96
- encodingOf: options.encodingOf,
97
- eventSourceOf: options.eventSourceOf,
98
- notifierOf: options.notifierOf,
99
- organizedBy: options.organizedBy,
100
- references,
101
- typeDefinition: this.nodeId,
102
- nodeId: options.nodeId,
103
- eventNotifier: options.eventNotifier === undefined ? 0 : options.eventNotifier,
104
- modellingRule: options.modellingRule
105
- };
106
- const namespace = this.addressSpace.getOwnNamespace();
107
- const instance = namespace.addObject(opts);
108
- ua_variable_type_1.initialize_properties_and_components(instance, baseObjectType, this, options.optionals);
109
- node_opcua_assert_1.assert(instance.typeDefinition.toString() === this.nodeId.toString());
110
- instance.install_extra_properties();
111
- if (this._postInstantiateFunc) {
112
- this._postInstantiateFunc(instance, this, options);
113
- }
114
- return instance;
115
- }
116
- toString() {
117
- const options = new base_node_private_1.ToStringBuilder();
118
- base_node_private_1.UAObjectType_toString.call(this, options);
119
- return options.toString();
120
- }
121
- }
122
- exports.UAObjectType = UAObjectType;
123
- //# sourceMappingURL=ua_object_type.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ua_object_type.js","sourceRoot":"","sources":["../../src/ua_object_type.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,yDAA2C;AAC3C,iEAAkD;AAClD,iEAAqD;AACrD,iEAAiE;AAEjE,mEAAqD;AACrD,0CAA0C;AAC1C,2DAA8C;AAO9C,2CAAuC;AACvC,2DAA6E;AAE7E,uDAAmD;AACnD,6DAAuE;AACvE,8CAA8C;AAC9C,yDAAuG;AAGvG,MAAa,YAAa,SAAQ,oBAAQ;IAiBtC,YAAY,OAAY;QACpB,KAAK,CAAC,OAAO,CAAC,CAAC;QAjBH,cAAS,GAAG,iCAAS,CAAC,UAAU,CAAC;QAc1C,kBAAa,GAAG,KAAK,CAAC,uBAAuB,CAAqB,YAAY,CAAC,CAAC;QAInF,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC,iBAAiB,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC;IAC/F,CAAC;IAjBD;;OAEG;IACH,IAAW,UAAU;QACjB,OAAO,IAAI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