node-opcua-address-space 2.117.0 → 2.119.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/source/continuation_points/continuation_point_manager.js.map +1 -1
- package/dist/source/helpers/adjust_browse_direction.js.map +1 -1
- package/dist/source/helpers/argument_list.js.map +1 -1
- package/dist/source/helpers/call_helpers.js.map +1 -1
- package/dist/source/helpers/coerce_enum_value.js +1 -1
- package/dist/source/helpers/coerce_enum_value.js.map +1 -1
- package/dist/source/helpers/dump_tools.js.map +1 -1
- package/dist/source/helpers/ensure_secure_access.js.map +1 -1
- package/dist/source/helpers/make_optionals_map.js.map +1 -1
- package/dist/source/helpers/multiform_func.js.map +1 -1
- package/dist/source/helpers/resolve_opaque_on_address_space.js.map +1 -1
- package/dist/source/index.d.ts +1 -0
- package/dist/source/index.js +5 -2
- package/dist/source/index.js.map +1 -1
- package/dist/source/interfaces/alarms_and_conditions/condition_info_i.d.ts +2 -0
- package/dist/source/interfaces/alarms_and_conditions/condition_snapshot.d.ts +14 -6
- package/dist/source/interfaces/alarms_and_conditions/ua_condition_ex.d.ts +3 -2
- package/dist/source/interfaces/data_access/ua_multistate_discrete_ex.d.ts +26 -3
- package/dist/source/interfaces/data_access/ua_multistate_value_discrete_ex.d.ts +2 -1
- package/dist/source/interfaces/data_access/ua_two_state_discrete_ex.d.ts +2 -1
- package/dist/source/interfaces/i_condition_variable_type_setter_options.d.ts +3 -0
- package/dist/source/interfaces/i_condition_variable_type_setter_options.js +3 -0
- package/dist/source/interfaces/i_condition_variable_type_setter_options.js.map +1 -0
- package/dist/source/interfaces/i_set_state_options.d.ts +4 -0
- package/dist/source/interfaces/i_set_state_options.js +3 -0
- package/dist/source/interfaces/i_set_state_options.js.map +1 -0
- package/dist/source/loader/decode_xml_extension_object.js.map +1 -1
- package/dist/source/loader/ensure_datatype_extracted.js.map +1 -1
- package/dist/source/loader/generateAddressSpaceRaw.js.map +1 -1
- package/dist/source/loader/load_nodeset2.js.map +1 -1
- package/dist/source/loader/make_semver_compatible.js.map +1 -1
- package/dist/source/loader/make_xml_extension_object_parser.js.map +1 -1
- package/dist/source/loader/namespace_post_step.js.map +1 -1
- package/dist/source/pseudo_session.js +12 -26
- package/dist/source/pseudo_session.js.map +1 -1
- package/dist/source/session_context.js.map +1 -1
- package/dist/source/set_namespace_meta_data.js.map +1 -1
- package/dist/source/ua_two_state_variable_ex.d.ts +2 -1
- package/dist/src/_instantiate_helpers.js.map +1 -1
- package/dist/src/_mandatory_child_or_requested_optional_filter.js.map +1 -1
- package/dist/src/address_space.js +4 -27
- package/dist/src/address_space.js.map +1 -1
- package/dist/src/address_space_change_event_tools.js.map +1 -1
- package/dist/src/alarms_and_conditions/condition.d.ts +2 -1
- package/dist/src/alarms_and_conditions/condition.js +2 -2
- package/dist/src/alarms_and_conditions/condition.js.map +1 -1
- package/dist/src/alarms_and_conditions/condition_info_impl.js.map +1 -1
- package/dist/src/alarms_and_conditions/condition_snapshot_impl.d.ts +20 -11
- package/dist/src/alarms_and_conditions/condition_snapshot_impl.js +72 -33
- package/dist/src/alarms_and_conditions/condition_snapshot_impl.js.map +1 -1
- package/dist/src/alarms_and_conditions/deviation_alarm_helper.js.map +1 -1
- package/dist/src/alarms_and_conditions/ua_acknowledgeable_condition_impl.js.map +1 -1
- package/dist/src/alarms_and_conditions/ua_alarm_condition_impl.js +1 -1
- package/dist/src/alarms_and_conditions/ua_alarm_condition_impl.js.map +1 -1
- package/dist/src/alarms_and_conditions/ua_certificate_expiration_alarm_impl.js.map +1 -1
- package/dist/src/alarms_and_conditions/ua_condition_impl.d.ts +3 -2
- package/dist/src/alarms_and_conditions/ua_condition_impl.js +13 -26
- package/dist/src/alarms_and_conditions/ua_condition_impl.js.map +1 -1
- package/dist/src/alarms_and_conditions/ua_discrete_alarm_impl.js.map +1 -1
- package/dist/src/alarms_and_conditions/ua_exclusive_deviation_alarm_impl.js.map +1 -1
- package/dist/src/alarms_and_conditions/ua_exclusive_limit_alarm_impl.js.map +1 -1
- package/dist/src/alarms_and_conditions/ua_limit_alarm_impl.js.map +1 -1
- package/dist/src/alarms_and_conditions/ua_non_exclusive_deviation_alarm_impl.js.map +1 -1
- package/dist/src/alarms_and_conditions/ua_non_exclusive_limit_alarm_impl.js.map +1 -1
- package/dist/src/alarms_and_conditions/ua_off_normal_alarm_impl.js +2 -25
- package/dist/src/alarms_and_conditions/ua_off_normal_alarm_impl.js.map +1 -1
- package/dist/src/apply_condition_refresh.js.map +1 -1
- package/dist/src/base_node_impl.js +3 -26
- package/dist/src/base_node_impl.js.map +1 -1
- package/dist/src/base_node_private.js.map +1 -1
- package/dist/src/check_value_rank_compatibility.js.map +1 -1
- package/dist/src/data_access/add_dataItem_stuff.js.map +1 -1
- package/dist/src/data_access/adjust_datavalue_status_code.js.map +1 -1
- package/dist/src/data_access/ua_multistate_discrete_impl.d.ts +3 -2
- package/dist/src/data_access/ua_multistate_discrete_impl.js +4 -4
- package/dist/src/data_access/ua_multistate_discrete_impl.js.map +1 -1
- package/dist/src/data_access/ua_multistate_value_discrete_impl.d.ts +8 -5
- package/dist/src/data_access/ua_multistate_value_discrete_impl.js +91 -50
- package/dist/src/data_access/ua_multistate_value_discrete_impl.js.map +1 -1
- package/dist/src/data_access/ua_two_state_discrete_impl.d.ts +2 -1
- package/dist/src/data_access/ua_two_state_discrete_impl.js +3 -3
- package/dist/src/data_access/ua_two_state_discrete_impl.js.map +1 -1
- package/dist/src/event_data.js.map +1 -1
- package/dist/src/extension_object_array_node.js.map +1 -1
- package/dist/src/get_basic_datatype.d.ts +4 -1
- package/dist/src/get_basic_datatype.js +12 -7
- package/dist/src/get_basic_datatype.js.map +1 -1
- package/dist/src/historical_access/address_space_historical_data_node.js.map +1 -1
- package/dist/src/idx_iterator.js.map +1 -1
- package/dist/src/namespace_impl.js +3 -26
- package/dist/src/namespace_impl.js.map +1 -1
- package/dist/src/namespace_private.js.map +1 -1
- package/dist/src/nodeid_manager.js.map +1 -1
- package/dist/src/nodeset_tools/adjust_namespace_array.js.map +1 -1
- package/dist/src/nodeset_tools/construct_namespace_dependency.js.map +1 -1
- package/dist/src/nodeset_tools/dump_to_bsd.js.map +1 -1
- package/dist/src/nodeset_tools/nodeset_to_xml.js +3 -26
- package/dist/src/nodeset_tools/nodeset_to_xml.js.map +1 -1
- package/dist/src/reference_impl.js +2 -25
- package/dist/src/reference_impl.js.map +1 -1
- package/dist/src/state_machine/finite_state_machine.js +2 -2
- package/dist/src/state_machine/finite_state_machine.js.map +1 -1
- package/dist/src/state_machine/ua_shelving_state_machine_ex.js +1 -1
- package/dist/src/state_machine/ua_shelving_state_machine_ex.js.map +1 -1
- package/dist/src/state_machine/ua_two_state_variable.d.ts +2 -1
- package/dist/src/state_machine/ua_two_state_variable.js +10 -8
- package/dist/src/state_machine/ua_two_state_variable.js.map +1 -1
- package/dist/src/tool_isSubtypeOf.js.map +1 -1
- package/dist/src/ua_data_type_impl.d.ts +2 -3
- package/dist/src/ua_data_type_impl.js +6 -29
- package/dist/src/ua_data_type_impl.js.map +1 -1
- package/dist/src/ua_method_impl.js.map +1 -1
- package/dist/src/ua_object_impl.js.map +1 -1
- package/dist/src/ua_object_type_impl.d.ts +2 -3
- package/dist/src/ua_object_type_impl.js +4 -28
- package/dist/src/ua_object_type_impl.js.map +1 -1
- package/dist/src/ua_reference_type_impl.d.ts +2 -3
- package/dist/src/ua_reference_type_impl.js +6 -29
- package/dist/src/ua_reference_type_impl.js.map +1 -1
- package/dist/src/ua_variable_impl.js +3 -26
- package/dist/src/ua_variable_impl.js.map +1 -1
- package/dist/src/ua_variable_impl_ext_obj.js.map +1 -1
- package/dist/src/ua_variable_type_impl.d.ts +2 -3
- package/dist/src/ua_variable_type_impl.js +5 -28
- package/dist/src/ua_variable_type_impl.js.map +1 -1
- package/dist/src/ua_view_impl.js.map +1 -1
- package/dist/src/validate_data_type_correctness.js.map +1 -1
- package/dist/tsconfig_common.tsbuildinfo +1 -1
- package/distHelpers/alarms_and_conditions_demo.js +2 -2
- package/distHelpers/alarms_and_conditions_demo.js.map +1 -1
- package/distHelpers/assertHasMatchingReference.js.map +1 -1
- package/distHelpers/boiler_system.js.map +1 -1
- package/distHelpers/create_minimalist_address_space_nodeset.js.map +1 -1
- package/distHelpers/get_address_space_fixture.js +16 -36
- package/distHelpers/get_address_space_fixture.js.map +1 -1
- package/distHelpers/get_mini_address_space.js.map +1 -1
- package/distNodeJS/generate_address_space.js +5 -25
- package/distNodeJS/generate_address_space.js.map +1 -1
- package/package.json +33 -33
- package/source/helpers/coerce_enum_value.ts +2 -2
- package/source/index.ts +2 -0
- package/source/interfaces/alarms_and_conditions/condition_info_i.ts +4 -0
- package/source/interfaces/alarms_and_conditions/condition_snapshot.ts +13 -8
- package/source/interfaces/alarms_and_conditions/ua_condition_ex.ts +4 -2
- package/source/interfaces/data_access/ua_multistate_discrete_ex.ts +39 -3
- package/source/interfaces/data_access/ua_multistate_value_discrete_ex.ts +2 -1
- package/source/interfaces/data_access/ua_two_state_discrete_ex.ts +2 -1
- package/source/interfaces/i_condition_variable_type_setter_options.ts +5 -0
- package/source/interfaces/i_set_state_options.ts +4 -0
- package/source/pseudo_session.ts +8 -2
- package/source/ua_two_state_variable_ex.ts +2 -1
- package/source_nodejs/generate_address_space.ts +1 -1
- package/src/address_space.ts +2 -2
- package/src/alarms_and_conditions/condition.ts +4 -2
- package/src/alarms_and_conditions/condition_snapshot_impl.ts +75 -38
- package/src/alarms_and_conditions/ua_condition_impl.ts +14 -27
- package/src/alarms_and_conditions/ua_off_normal_alarm_impl.ts +2 -4
- package/src/base_node_impl.ts +2 -2
- package/src/data_access/ua_multistate_discrete_impl.ts +5 -3
- package/src/data_access/ua_multistate_value_discrete_impl.ts +109 -55
- package/src/data_access/ua_two_state_discrete_impl.ts +5 -3
- package/src/get_basic_datatype.ts +16 -7
- package/src/namespace_impl.ts +5 -7
- package/src/nodeset_tools/nodeset_to_xml.ts +3 -4
- package/src/reference_impl.ts +2 -2
- package/src/state_machine/ua_two_state_variable.ts +14 -8
- package/src/ua_data_type_impl.ts +14 -15
- package/src/ua_object_type_impl.ts +6 -6
- package/src/ua_reference_type_impl.ts +4 -4
- package/src/ua_variable_impl.ts +4 -6
- package/src/ua_variable_type_impl.ts +3 -3
|
@@ -14,7 +14,7 @@ import { DataType } from "node-opcua-variant";
|
|
|
14
14
|
|
|
15
15
|
import { SessionContext, UAReferenceType as UAReferenceTypePublic } from "../source";
|
|
16
16
|
import { BaseNodeImpl, InternalBaseNodeOptions } from "./base_node_impl";
|
|
17
|
-
import
|
|
17
|
+
import { construct_isSubtypeOf, construct_slow_isSubtypeOf } from "./tool_isSubtypeOf";
|
|
18
18
|
import { get_subtypeOf, get_subtypeOfObj } from "./tool_isSubtypeOf";
|
|
19
19
|
import { ReferenceImpl } from "./reference_impl";
|
|
20
20
|
import { BaseNode_getCache } from "./base_node_private";
|
|
@@ -98,15 +98,15 @@ export class UAReferenceTypeImpl extends BaseNodeImpl implements UAReferenceType
|
|
|
98
98
|
/**
|
|
99
99
|
* returns true if self is a super type of baseType
|
|
100
100
|
*/
|
|
101
|
-
public isSubtypeOf =
|
|
101
|
+
public isSubtypeOf = construct_isSubtypeOf<UAReferenceType>(UAReferenceTypeImpl);
|
|
102
102
|
|
|
103
103
|
/** @deprecated - use `isSubtypeOf` instead*/
|
|
104
|
-
public isSupertypeOf =
|
|
104
|
+
public isSupertypeOf = construct_isSubtypeOf<UAReferenceType>(UAReferenceTypeImpl);
|
|
105
105
|
|
|
106
106
|
/**
|
|
107
107
|
* @private
|
|
108
108
|
*/
|
|
109
|
-
public _slow_isSubtypeOf =
|
|
109
|
+
public _slow_isSubtypeOf = construct_slow_isSubtypeOf<UAReferenceType>(UAReferenceTypeImpl);
|
|
110
110
|
|
|
111
111
|
constructor(options: UAReferenceTypeOptions) {
|
|
112
112
|
super(options);
|
package/src/ua_variable_impl.ts
CHANGED
|
@@ -46,7 +46,7 @@ import {
|
|
|
46
46
|
ReadRawModifiedDetails,
|
|
47
47
|
WriteValueOptions
|
|
48
48
|
} from "node-opcua-types";
|
|
49
|
-
import
|
|
49
|
+
import { isNullOrUndefined } from "node-opcua-utils";
|
|
50
50
|
import {
|
|
51
51
|
Variant,
|
|
52
52
|
VariantLike,
|
|
@@ -58,7 +58,6 @@ import {
|
|
|
58
58
|
} from "node-opcua-variant";
|
|
59
59
|
import { StatusCodeCallback } from "node-opcua-status-code";
|
|
60
60
|
import {
|
|
61
|
-
IAddressSpace,
|
|
62
61
|
BindVariableOptions,
|
|
63
62
|
IVariableHistorian,
|
|
64
63
|
TimestampGetFunc,
|
|
@@ -94,7 +93,7 @@ import {
|
|
|
94
93
|
} from "./ua_variable_impl_ext_obj";
|
|
95
94
|
import { adjustDataValueStatusCode } from "./data_access/adjust_datavalue_status_code";
|
|
96
95
|
import { _getBasicDataType } from "./get_basic_datatype";
|
|
97
|
-
import { validateDataTypeCorrectness} from "./validate_data_type_correctness";
|
|
96
|
+
import { validateDataTypeCorrectness } from "./validate_data_type_correctness";
|
|
98
97
|
|
|
99
98
|
const debugLog = make_debugLog(__filename);
|
|
100
99
|
const warningLog = make_warningLog(__filename);
|
|
@@ -102,7 +101,7 @@ const doDebug = checkDebugFlag(__filename);
|
|
|
102
101
|
const errorLog = make_errorLog(__filename);
|
|
103
102
|
|
|
104
103
|
export function adjust_accessLevel(accessLevel: string | number | null): AccessLevelFlag {
|
|
105
|
-
accessLevel =
|
|
104
|
+
accessLevel = isNullOrUndefined(accessLevel) ? "CurrentRead | CurrentWrite" : accessLevel;
|
|
106
105
|
accessLevel = makeAccessLevelFlag(accessLevel);
|
|
107
106
|
assert(isFinite(accessLevel));
|
|
108
107
|
return accessLevel;
|
|
@@ -150,7 +149,6 @@ function is_Variant_or_StatusCode(v: any): boolean {
|
|
|
150
149
|
return is_Variant(v) || is_StatusCode(v);
|
|
151
150
|
}
|
|
152
151
|
|
|
153
|
-
|
|
154
152
|
function default_func(this: UAVariable, dataValue1: DataValue, callback1: CallbackT<StatusCode>) {
|
|
155
153
|
return _default_writable_timestamped_set_func.call(this, dataValue1, callback1);
|
|
156
154
|
}
|
|
@@ -237,7 +235,7 @@ export class UAVariableImpl extends BaseNodeImpl implements UAVariable {
|
|
|
237
235
|
get typeDefinitionObj(): UAVariableType {
|
|
238
236
|
// istanbul ignore next
|
|
239
237
|
if (super.typeDefinitionObj && super.typeDefinitionObj.nodeClass !== NodeClass.VariableType) {
|
|
240
|
-
// this could happen in faulty external nodeset and has been seen once
|
|
238
|
+
// this could happen in faulty external nodeset and has been seen once
|
|
241
239
|
// in an nano server
|
|
242
240
|
warningLog(super.typeDefinitionObj.toString());
|
|
243
241
|
return this.addressSpace.findVariableType("BaseVariableType")!;
|
|
@@ -31,7 +31,7 @@ import { initialize_properties_and_components } from "./_instantiate_helpers";
|
|
|
31
31
|
import { AddressSpacePrivate } from "./address_space_private";
|
|
32
32
|
import { BaseNodeImpl, InternalBaseNodeOptions } from "./base_node_impl";
|
|
33
33
|
import { _clone_hierarchical_references, ToStringBuilder, UAVariableType_toString } from "./base_node_private";
|
|
34
|
-
import
|
|
34
|
+
import { construct_isSubtypeOf } from "./tool_isSubtypeOf";
|
|
35
35
|
import { get_subtypeOfObj } from "./tool_isSubtypeOf";
|
|
36
36
|
import { get_subtypeOf } from "./tool_isSubtypeOf";
|
|
37
37
|
import { checkValueRankCompatibility } from "./check_value_rank_compatibility";
|
|
@@ -112,10 +112,10 @@ export class UAVariableTypeImpl extends BaseNodeImpl implements UAVariableType {
|
|
|
112
112
|
return get_subtypeOfObj.call(this) as UAVariableType;
|
|
113
113
|
}
|
|
114
114
|
|
|
115
|
-
public isSubtypeOf =
|
|
115
|
+
public isSubtypeOf = construct_isSubtypeOf<UAVariableType>(UAVariableTypeImpl);
|
|
116
116
|
|
|
117
117
|
/** @deprecated - use isSubtypeOf instead */
|
|
118
|
-
public isSupertypeOf = deprecate(
|
|
118
|
+
public isSupertypeOf = deprecate(construct_isSubtypeOf<UAVariableType>(UAVariableTypeImpl));
|
|
119
119
|
|
|
120
120
|
public readonly isAbstract: boolean;
|
|
121
121
|
public dataType: NodeId;
|