node-opcua-address-space 2.132.0 → 2.134.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/helpers/argument_list.d.ts +1 -6
- package/dist/source/helpers/argument_list.js +1 -6
- package/dist/source/helpers/argument_list.js.map +1 -1
- package/dist/source/helpers/dump_tools.d.ts +0 -4
- package/dist/source/helpers/dump_tools.js +0 -4
- package/dist/source/helpers/dump_tools.js.map +1 -1
- package/dist/source/interfaces/alarms_and_conditions/condition_snapshot.d.ts +4 -53
- package/dist/source/interfaces/alarms_and_conditions/ua_certificate_expiration_alarm_ex.d.ts +1 -1
- package/dist/source/interfaces/state_machine/ua_shelved_state_machine_ex.d.ts +1 -1
- package/dist/source/loader/load_nodeset2.js +0 -3
- package/dist/source/loader/load_nodeset2.js.map +1 -1
- package/dist/source/session_context.d.ts +0 -4
- package/dist/source/session_context.js +2 -6
- package/dist/source/session_context.js.map +1 -1
- package/dist/src/address_space.d.ts +0 -27
- package/dist/src/address_space.js +0 -29
- package/dist/src/address_space.js.map +1 -1
- package/dist/src/alarms_and_conditions/condition.js +13 -12
- package/dist/src/alarms_and_conditions/condition.js.map +1 -1
- package/dist/src/alarms_and_conditions/condition_info_impl.d.ts +2 -10
- package/dist/src/alarms_and_conditions/condition_info_impl.js +2 -10
- package/dist/src/alarms_and_conditions/condition_info_impl.js.map +1 -1
- package/dist/src/alarms_and_conditions/condition_snapshot_impl.d.ts +132 -77
- package/dist/src/alarms_and_conditions/condition_snapshot_impl.js +120 -123
- package/dist/src/alarms_and_conditions/condition_snapshot_impl.js.map +1 -1
- package/dist/src/alarms_and_conditions/ua_acknowledgeable_condition_impl.d.ts +1 -10
- package/dist/src/alarms_and_conditions/ua_acknowledgeable_condition_impl.js +1 -10
- package/dist/src/alarms_and_conditions/ua_acknowledgeable_condition_impl.js.map +1 -1
- package/dist/src/alarms_and_conditions/ua_alarm_condition_impl.d.ts +3 -15
- package/dist/src/alarms_and_conditions/ua_alarm_condition_impl.js +3 -15
- package/dist/src/alarms_and_conditions/ua_alarm_condition_impl.js.map +1 -1
- package/dist/src/alarms_and_conditions/ua_base_event_impl.d.ts +1 -7
- package/dist/src/alarms_and_conditions/ua_base_event_impl.js +1 -7
- package/dist/src/alarms_and_conditions/ua_base_event_impl.js.map +1 -1
- package/dist/src/alarms_and_conditions/ua_certificate_expiration_alarm_impl.d.ts +1 -1
- package/dist/src/alarms_and_conditions/ua_certificate_expiration_alarm_impl.js +3 -3
- 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 +0 -28
- package/dist/src/alarms_and_conditions/ua_condition_impl.js +0 -31
- package/dist/src/alarms_and_conditions/ua_condition_impl.js.map +1 -1
- package/dist/src/alarms_and_conditions/ua_exclusive_limit_alarm_impl.d.ts +0 -1
- package/dist/src/alarms_and_conditions/ua_exclusive_limit_alarm_impl.js +0 -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.d.ts +0 -28
- package/dist/src/alarms_and_conditions/ua_limit_alarm_impl.js +0 -28
- package/dist/src/alarms_and_conditions/ua_limit_alarm_impl.js.map +1 -1
- package/dist/src/alarms_and_conditions/ua_off_normal_alarm_impl.d.ts +0 -3
- package/dist/src/alarms_and_conditions/ua_off_normal_alarm_impl.js +0 -3
- package/dist/src/alarms_and_conditions/ua_off_normal_alarm_impl.js.map +1 -1
- package/dist/src/base_node_impl.d.ts +2 -6
- package/dist/src/base_node_impl.js +3 -7
- package/dist/src/base_node_impl.js.map +1 -1
- package/dist/src/base_node_private.d.ts +1 -1
- package/dist/src/base_node_private.js +1 -1
- package/dist/src/event_data.d.ts +0 -3
- package/dist/src/event_data.js +0 -3
- package/dist/src/event_data.js.map +1 -1
- package/dist/src/extension_object_array_node.d.ts +1 -1
- package/dist/src/extension_object_array_node.js +1 -1
- package/dist/src/historical_access/address_space_historical_data_node.d.ts +0 -5
- package/dist/src/historical_access/address_space_historical_data_node.js +0 -5
- package/dist/src/historical_access/address_space_historical_data_node.js.map +1 -1
- package/dist/src/namespace_impl.d.ts +21 -28
- package/dist/src/namespace_impl.js +22 -29
- package/dist/src/namespace_impl.js.map +1 -1
- package/dist/src/reference_impl.d.ts +1 -1
- package/dist/src/reference_impl.js +1 -1
- package/dist/src/state_machine/finite_state_machine.d.ts +0 -5
- package/dist/src/state_machine/finite_state_machine.js +0 -8
- package/dist/src/state_machine/finite_state_machine.js.map +1 -1
- package/dist/src/state_machine/ua_shelving_state_machine_ex.d.ts +1 -1
- package/dist/src/state_machine/ua_shelving_state_machine_ex.js +7 -7
- 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 +0 -8
- package/dist/src/state_machine/ua_two_state_variable.js +0 -8
- package/dist/src/state_machine/ua_two_state_variable.js.map +1 -1
- package/dist/src/ua_object_type_impl.d.ts +1 -1
- package/dist/src/ua_object_type_impl.js +1 -1
- package/dist/src/ua_variable_impl.d.ts +4 -4
- package/dist/src/ua_variable_impl.js +3 -3
- package/dist/src/ua_variable_impl_ext_obj.js +0 -2
- package/dist/src/ua_variable_impl_ext_obj.js.map +1 -1
- package/dist/src/ua_variable_type_impl.js +1 -1
- package/dist/tsconfig_common.tsbuildinfo +1 -1
- package/distHelpers/assertHasMatchingReference.d.ts +1 -1
- package/distHelpers/assertHasMatchingReference.js +1 -1
- package/distHelpers/dump_statemachine.d.ts +1 -0
- package/distHelpers/dump_statemachine.js +1 -0
- package/distHelpers/dump_statemachine.js.map +1 -1
- package/distNodeJS/generate_address_space.js +3 -3
- package/distNodeJS/generate_address_space.js.map +1 -1
- package/package.json +36 -36
- package/source/helpers/argument_list.ts +1 -6
- package/source/helpers/dump_tools.ts +0 -4
- package/source/interfaces/alarms_and_conditions/condition_snapshot.ts +4 -53
- package/source/interfaces/alarms_and_conditions/ua_certificate_expiration_alarm_ex.ts +1 -1
- package/source/interfaces/state_machine/ua_shelved_state_machine_ex.ts +1 -1
- package/source/loader/load_nodeset2.ts +0 -3
- package/source/session_context.ts +3 -7
- package/source_nodejs/generate_address_space.ts +1 -1
- package/src/address_space.ts +0 -29
- package/src/alarms_and_conditions/condition.ts +13 -12
- package/src/alarms_and_conditions/condition_info_impl.ts +2 -10
- package/src/alarms_and_conditions/condition_snapshot_impl.ts +122 -125
- package/src/alarms_and_conditions/ua_acknowledgeable_condition_impl.ts +1 -10
- package/src/alarms_and_conditions/ua_alarm_condition_impl.ts +3 -15
- package/src/alarms_and_conditions/ua_base_event_impl.ts +1 -7
- package/src/alarms_and_conditions/ua_certificate_expiration_alarm_impl.ts +1 -1
- package/src/alarms_and_conditions/ua_condition_impl.ts +0 -31
- package/src/alarms_and_conditions/ua_exclusive_limit_alarm_impl.ts +0 -1
- package/src/alarms_and_conditions/ua_limit_alarm_impl.ts +0 -28
- package/src/alarms_and_conditions/ua_off_normal_alarm_impl.ts +0 -3
- package/src/base_node_impl.ts +3 -7
- package/src/base_node_private.ts +1 -1
- package/src/event_data.ts +2 -3
- package/src/extension_object_array_node.ts +1 -1
- package/src/historical_access/address_space_historical_data_node.ts +0 -5
- package/src/namespace_impl.ts +22 -29
- package/src/reference_impl.ts +1 -1
- package/src/state_machine/finite_state_machine.ts +0 -8
- package/src/state_machine/ua_shelving_state_machine_ex.ts +8 -8
- package/src/state_machine/ua_two_state_variable.ts +0 -8
- package/src/ua_object_type_impl.ts +1 -1
- package/src/ua_variable_impl.ts +4 -4
- package/src/ua_variable_impl_ext_obj.ts +0 -2
- package/src/ua_variable_type_impl.ts +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
// * @param stateMachineType
|
|
21
21
|
// */
|
|
22
22
|
// import { BaseNode, UAState, UAStateMachineEx, UATransition, UAObject, UATransitionEx } from "..";
|
|
23
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23
24
|
// export function dumpStateMachineToPlantUML(stateMachineType: UAStateMachineEx): void {
|
|
24
25
|
// function w(str: string) {
|
|
25
26
|
// console.log(str);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dump_statemachine.js","sourceRoot":"","sources":["../test_helpers/dump_statemachine.ts"],"names":[],"mappings":";AAAA,MAAM;AACN,sCAAsC;AACtC,MAAM;AACN,+BAA+B;AAC/B,KAAK;AACL,kBAAkB;AAClB,iDAAiD;AACjD,OAAO;AACP,kBAAkB;AAClB,8BAA8B;AAC9B,yBAAyB;AACzB,uBAAuB;AACvB,OAAO;AACP,6BAA6B;AAC7B,2BAA2B;AAC3B,kCAAkC;AAClC,kCAAkC;AAClC,OAAO;AACP,6BAA6B;AAC7B,MAAM;AACN,oGAAoG
|
|
1
|
+
{"version":3,"file":"dump_statemachine.js","sourceRoot":"","sources":["../test_helpers/dump_statemachine.ts"],"names":[],"mappings":";AAAA,MAAM;AACN,sCAAsC;AACtC,MAAM;AACN,+BAA+B;AAC/B,KAAK;AACL,kBAAkB;AAClB,iDAAiD;AACjD,OAAO;AACP,kBAAkB;AAClB,8BAA8B;AAC9B,yBAAyB;AACzB,uBAAuB;AACvB,OAAO;AACP,6BAA6B;AAC7B,2BAA2B;AAC3B,kCAAkC;AAClC,kCAAkC;AAClC,OAAO;AACP,6BAA6B;AAC7B,MAAM;AACN,oGAAoG;;AAEpG,yFAAyF;AACzF,gCAAgC;AAChC,4BAA4B;AAC5B,QAAQ;AAER,oCAAoC;AACpC,gDAAgD;AAChD,QAAQ;AAER,oCAAoC;AACpC,oDAAoD;AACpD,QAAQ;AAER,8EAA8E;AAC9E,8BAA8B;AAE9B,2CAA2C;AAC3C,6DAA6D;AAC7D,8FAA8F;AAC9F,eAAe;AACf,4BAA4B;AAC5B,QAAQ;AAER,yCAAyC;AACzC,oCAAoC;AACpC,wCAAwC;AACxC,iDAAiD;AACjD,8DAA8D;AAC9D,uBAAuB;AACvB,QAAQ;AAER,iGAAiG;AAEjG,2EAA2E;AAC3E,gHAAgH;AAChH,SAAS;AAET,oBAAoB;AACpB,IAAI;AAEJ,KAAK;AACL,aAAa;AAEb,mBAAmB;AAEnB,sBAAsB;AAEtB,wBAAwB;AAExB,qDAAqD;AAErD,uDAAuD;AAEvD,qDAAqD;AAErD,0DAA0D;AAE1D,uDAAuD;AAEvD,0DAA0D;AAE1D,WAAW;AAEX,MAAM;AAEN,KAAK;AACL,kCAAkC;AAClC,eAAe;AACf,cAAc;AACd,qDAAqD;AACrD,0BAA0B;AAC1B,qCAAqC;AACrC,qCAAqC;AACrC,uCAAuC;AACvC,qCAAqC;AACrC,qCAAqC;AACrC,oCAAoC;AACpC,oCAAoC;AACpC,oCAAoC;AACpC,oCAAoC;AACpC,oCAAoC;AACpC,oCAAoC;AACpC,oCAAoC;AACpC,oCAAoC;AACpC,oCAAoC;AACpC,KAAK;AACL,MAAM;AACN,8CAA8C;AAC9C,4BAA4B;AAC5B,yCAAyC;AACzC,YAAY;AACZ,gCAAgC;AAChC,4BAA4B;AAC5B,QAAQ;AAER,oCAAoC;AACpC,gDAAgD;AAChD,QAAQ;AAER,oCAAoC;AACpC,oDAAoD;AACpD,QAAQ;AAER,yCAAyC;AACzC,+DAA+D;AAC/D,QAAQ;AAER,2CAA2C;AAC3C,8BAA8B;AAE9B,2CAA2C;AAC3C,8CAA8C;AAC9C,oEAAoE;AACpE,QAAQ;AACR,oCAAoC;AACpC,sFAAsF;AAEtF,2DAA2D;AAC3D,aAAa;AACb,sBAAsB;AACtB,iDAAiD;AACjD,4BAA4B;AAC5B,+CAA+C;AAC/C,0BAA0B;AAC1B,sEAAsE;AACtE,kCAAkC;AAClC,kCAAkC;AAClC,yBAAyB;AACzB,YAAY;AACZ,SAAS;AAET,cAAc;AACd,IAAI"}
|
|
@@ -5,7 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.readNodeSet2XmlFile = readNodeSet2XmlFile;
|
|
7
7
|
exports.generateAddressSpace = generateAddressSpace;
|
|
8
|
-
const
|
|
8
|
+
const node_fs_1 = __importDefault(require("node:fs"));
|
|
9
9
|
const node_opcua_debug_1 = require("node-opcua-debug");
|
|
10
10
|
const __1 = require("..");
|
|
11
11
|
const doDebug = (0, node_opcua_debug_1.checkDebugFlag)(__filename);
|
|
@@ -13,13 +13,13 @@ const debugLog = (0, node_opcua_debug_1.make_debugLog)(__filename);
|
|
|
13
13
|
const errorLog = (0, node_opcua_debug_1.make_errorLog)(__filename);
|
|
14
14
|
async function readNodeSet2XmlFile(xmlFile) {
|
|
15
15
|
// istanbul ignore next
|
|
16
|
-
if (!
|
|
16
|
+
if (!node_fs_1.default.existsSync(xmlFile)) {
|
|
17
17
|
const msg = "[NODE-OPCUA-E02] generateAddressSpace : cannot find nodeset2 xml file at " + xmlFile;
|
|
18
18
|
errorLog(msg);
|
|
19
19
|
throw new Error(msg);
|
|
20
20
|
}
|
|
21
21
|
debugLog(" parsing ", xmlFile);
|
|
22
|
-
const xmlData = await
|
|
22
|
+
const xmlData = await node_fs_1.default.promises.readFile(xmlFile, "utf-8");
|
|
23
23
|
return xmlData;
|
|
24
24
|
}
|
|
25
25
|
async function generateAddressSpace(addressSpace, xmlFiles, options) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate_address_space.js","sourceRoot":"","sources":["../source_nodejs/generate_address_space.ts"],"names":[],"mappings":";;;;;AAYA,kDAUC;AAED,oDAOC;AA/BD,
|
|
1
|
+
{"version":3,"file":"generate_address_space.js","sourceRoot":"","sources":["../source_nodejs/generate_address_space.ts"],"names":[],"mappings":";;;;;AAYA,kDAUC;AAED,oDAOC;AA/BD,sDAAyB;AAEzB,uDAAgF;AAGhF,0BAA6C;AAG7C,MAAM,OAAO,GAAG,IAAA,iCAAc,EAAC,UAAU,CAAC,CAAC;AAC3C,MAAM,QAAQ,GAAG,IAAA,gCAAa,EAAC,UAAU,CAAC,CAAC;AAC3C,MAAM,QAAQ,GAAG,IAAA,gCAAa,EAAC,UAAU,CAAC,CAAC;AAEpC,KAAK,UAAU,mBAAmB,CAAC,OAAe;IACrD,uBAAuB;IACvB,IAAI,CAAC,iBAAE,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,CAAC;QAC1B,MAAM,GAAG,GAAG,2EAA2E,GAAG,OAAO,CAAC;QAClG,QAAQ,CAAC,GAAG,CAAC,CAAC;QACd,MAAM,IAAI,KAAK,CAAC,GAAG,CAAC,CAAC;IACzB,CAAC;IACD,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;IAC/B,MAAM,OAAO,GAAG,MAAM,iBAAE,CAAC,QAAQ,CAAC,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAC7D,OAAO,OAAO,CAAC;AACnB,CAAC;AAEM,KAAK,UAAU,oBAAoB,CACtC,YAA2B,EAC3B,QAA2B,EAC3B,OAA8B;IAG9B,MAAM,IAAA,2BAAuB,EAAC,YAAY,EAAE,QAAQ,EAAE,mBAAmB,EAAE,OAAO,IAAI,EAAE,CAAC,CAAC;AAC9F,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-opcua-address-space",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.134.0",
|
|
4
4
|
"description": "pure nodejs OPCUA SDK - module address-space",
|
|
5
5
|
"main": "./dist/src/index_current.js",
|
|
6
6
|
"types": "./dist/source/index.d.ts",
|
|
@@ -16,54 +16,54 @@
|
|
|
16
16
|
"c": "mocha --version"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@types/lodash": "4.17.
|
|
19
|
+
"@types/lodash": "4.17.13",
|
|
20
20
|
"@types/semver": "^7.5.8",
|
|
21
21
|
"async": "^3.2.6",
|
|
22
22
|
"chalk": "4.1.2",
|
|
23
23
|
"dequeue": "^1.0.5",
|
|
24
24
|
"lodash": "4.17.21",
|
|
25
|
-
"node-opcua-address-space-base": "2.
|
|
25
|
+
"node-opcua-address-space-base": "2.134.0",
|
|
26
26
|
"node-opcua-assert": "2.120.0",
|
|
27
|
-
"node-opcua-basic-types": "2.
|
|
28
|
-
"node-opcua-binary-stream": "2.
|
|
29
|
-
"node-opcua-client-dynamic-extension-object": "2.
|
|
27
|
+
"node-opcua-basic-types": "2.134.0",
|
|
28
|
+
"node-opcua-binary-stream": "2.133.0",
|
|
29
|
+
"node-opcua-client-dynamic-extension-object": "2.134.0",
|
|
30
30
|
"node-opcua-constants": "2.125.0",
|
|
31
|
-
"node-opcua-crypto": "4.
|
|
32
|
-
"node-opcua-data-access": "2.
|
|
33
|
-
"node-opcua-data-model": "2.
|
|
34
|
-
"node-opcua-data-value": "2.
|
|
35
|
-
"node-opcua-date-time": "2.
|
|
36
|
-
"node-opcua-debug": "2.
|
|
37
|
-
"node-opcua-enum": "2.
|
|
38
|
-
"node-opcua-extension-object": "2.
|
|
39
|
-
"node-opcua-factory": "2.
|
|
40
|
-
"node-opcua-nodeid": "2.
|
|
41
|
-
"node-opcua-nodeset-ua": "2.
|
|
42
|
-
"node-opcua-numeric-range": "2.
|
|
43
|
-
"node-opcua-object-registry": "2.
|
|
44
|
-
"node-opcua-pseudo-session": "2.
|
|
45
|
-
"node-opcua-service-browse": "2.
|
|
46
|
-
"node-opcua-service-call": "2.
|
|
47
|
-
"node-opcua-service-history": "2.
|
|
48
|
-
"node-opcua-service-translate-browse-path": "2.
|
|
49
|
-
"node-opcua-service-write": "2.
|
|
50
|
-
"node-opcua-status-code": "2.
|
|
51
|
-
"node-opcua-types": "2.
|
|
52
|
-
"node-opcua-utils": "2.
|
|
53
|
-
"node-opcua-variant": "2.
|
|
54
|
-
"node-opcua-xml2json": "2.
|
|
31
|
+
"node-opcua-crypto": "4.12.0",
|
|
32
|
+
"node-opcua-data-access": "2.134.0",
|
|
33
|
+
"node-opcua-data-model": "2.134.0",
|
|
34
|
+
"node-opcua-data-value": "2.134.0",
|
|
35
|
+
"node-opcua-date-time": "2.134.0",
|
|
36
|
+
"node-opcua-debug": "2.133.0",
|
|
37
|
+
"node-opcua-enum": "2.133.0",
|
|
38
|
+
"node-opcua-extension-object": "2.134.0",
|
|
39
|
+
"node-opcua-factory": "2.134.0",
|
|
40
|
+
"node-opcua-nodeid": "2.133.0",
|
|
41
|
+
"node-opcua-nodeset-ua": "2.134.0",
|
|
42
|
+
"node-opcua-numeric-range": "2.134.0",
|
|
43
|
+
"node-opcua-object-registry": "2.133.0",
|
|
44
|
+
"node-opcua-pseudo-session": "2.134.0",
|
|
45
|
+
"node-opcua-service-browse": "2.134.0",
|
|
46
|
+
"node-opcua-service-call": "2.134.0",
|
|
47
|
+
"node-opcua-service-history": "2.134.0",
|
|
48
|
+
"node-opcua-service-translate-browse-path": "2.134.0",
|
|
49
|
+
"node-opcua-service-write": "2.134.0",
|
|
50
|
+
"node-opcua-status-code": "2.133.0",
|
|
51
|
+
"node-opcua-types": "2.134.0",
|
|
52
|
+
"node-opcua-utils": "2.133.0",
|
|
53
|
+
"node-opcua-variant": "2.134.0",
|
|
54
|
+
"node-opcua-xml2json": "2.133.0",
|
|
55
55
|
"semver": "^7.6.3",
|
|
56
56
|
"set-prototype-of": "^1.0.0",
|
|
57
57
|
"thenify": "^3.3.1",
|
|
58
58
|
"xml-writer": "^1.7.0"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
|
-
"node-opcua-benchmarker": "2.
|
|
62
|
-
"node-opcua-leak-detector": "2.
|
|
61
|
+
"node-opcua-benchmarker": "2.133.0",
|
|
62
|
+
"node-opcua-leak-detector": "2.133.0",
|
|
63
63
|
"node-opcua-nodesets": "2.121.0",
|
|
64
|
-
"node-opcua-packet-analyzer": "2.
|
|
65
|
-
"node-opcua-service-filter": "2.
|
|
66
|
-
"node-opcua-test-fixtures": "2.
|
|
64
|
+
"node-opcua-packet-analyzer": "2.134.0",
|
|
65
|
+
"node-opcua-service-filter": "2.134.0",
|
|
66
|
+
"node-opcua-test-fixtures": "2.134.0",
|
|
67
67
|
"source-map-support": "^0.5.21"
|
|
68
68
|
},
|
|
69
69
|
"author": "Etienne Rossignon",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"internet of things"
|
|
82
82
|
],
|
|
83
83
|
"homepage": "http://node-opcua.github.io/",
|
|
84
|
-
"gitHead": "
|
|
84
|
+
"gitHead": "ccb34926a3c195f6a7e66fca58a2f101858e78be",
|
|
85
85
|
"files": [
|
|
86
86
|
"dist",
|
|
87
87
|
"distHelpers",
|
|
@@ -229,12 +229,7 @@ export function isArgumentValid(addressSpace: IAddressSpace, argDefinition: Argu
|
|
|
229
229
|
}
|
|
230
230
|
|
|
231
231
|
/**
|
|
232
|
-
|
|
233
|
-
* @param addressSpace
|
|
234
|
-
* @param methodInputArguments
|
|
235
|
-
* @param inputArguments
|
|
236
|
-
* @return statusCode,inputArgumentResults
|
|
237
|
-
*/
|
|
232
|
+
*/
|
|
238
233
|
export function verifyArguments_ArgumentList(
|
|
239
234
|
addressSpace: IAddressSpace,
|
|
240
235
|
methodInputArguments: Argument[],
|
|
@@ -66,10 +66,6 @@ export function dumpBrowseDescription(node: BaseNode, _browseDescription: Browse
|
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
/**
|
|
69
|
-
* @method dumpReferences
|
|
70
|
-
* @param addressSpace {IAddressSpace}
|
|
71
|
-
* @param references {Array<Reference>|null}
|
|
72
|
-
* @static
|
|
73
69
|
*/
|
|
74
70
|
export function dumpReferences(addressSpace: IAddressSpace, references: UAReference[]): void {
|
|
75
71
|
assert(addressSpace);
|
|
@@ -30,52 +30,32 @@ export interface ConditionSnapshot extends EventEmitter {
|
|
|
30
30
|
branchId: NodeId | null;
|
|
31
31
|
|
|
32
32
|
/**
|
|
33
|
-
* @method getBrandId
|
|
34
|
-
* @return {NodeId}
|
|
35
33
|
*/
|
|
36
34
|
getBranchId(): NodeId;
|
|
37
35
|
/**
|
|
38
|
-
* @method getEventId
|
|
39
|
-
* @return {ByteString}
|
|
40
36
|
*/
|
|
41
37
|
getEventId(): Buffer;
|
|
42
38
|
/**
|
|
43
|
-
* @method getRetain
|
|
44
|
-
* @return {Boolean}
|
|
45
39
|
*/
|
|
46
40
|
getRetain(): boolean;
|
|
47
41
|
/**
|
|
48
|
-
*
|
|
49
|
-
* @method setRetain
|
|
50
|
-
* @param retainFlag {Boolean}
|
|
51
42
|
*/
|
|
52
43
|
setRetain(retainFlag: boolean): void;
|
|
53
44
|
|
|
54
45
|
/**
|
|
55
|
-
* @method renewEventId
|
|
56
|
-
*
|
|
57
46
|
*/
|
|
58
47
|
renewEventId(): void;
|
|
59
48
|
|
|
60
49
|
/**
|
|
61
|
-
* @method getEnabledState
|
|
62
|
-
* @return {Boolean}
|
|
63
50
|
*/
|
|
64
51
|
getEnabledState(): boolean;
|
|
65
52
|
/**
|
|
66
|
-
* @method setEnabledState
|
|
67
|
-
* @param value {Boolean}
|
|
68
|
-
* @return void
|
|
69
53
|
*/
|
|
70
54
|
setEnabledState(value: boolean, options?: ISetStateOptions): void;
|
|
71
55
|
/**
|
|
72
|
-
* @method getEnabledStateAsString
|
|
73
|
-
* @return {String}
|
|
74
56
|
*/
|
|
75
57
|
getEnabledStateAsString(): string;
|
|
76
58
|
/**
|
|
77
|
-
* @method getComment
|
|
78
|
-
* @return {LocalizedText}
|
|
79
59
|
*/
|
|
80
60
|
getComment(): LocalizedText;
|
|
81
61
|
|
|
@@ -88,20 +68,14 @@ export interface ConditionSnapshot extends EventEmitter {
|
|
|
88
68
|
* a Method provides as an option the ability to set a Comment, then the value of this Variable is
|
|
89
69
|
* reset to null if an optional comment is not provided.
|
|
90
70
|
*
|
|
91
|
-
* @method setComment
|
|
92
|
-
* @param txtMessage {LocalizedText}
|
|
93
71
|
*/
|
|
94
72
|
setComment(txtMessage: LocalizedTextLike, options?: IConditionVariableTypeSetterOptions): void;
|
|
95
73
|
/**
|
|
96
74
|
*
|
|
97
|
-
* @method setMessage
|
|
98
|
-
* @param txtMessage {LocalizedText}
|
|
99
75
|
*/
|
|
100
76
|
setMessage(txtMessage: LocalizedTextLike | LocalizedText): void;
|
|
101
77
|
|
|
102
78
|
/**
|
|
103
|
-
* @method setClientUserId
|
|
104
|
-
* @param userIdentity {String}
|
|
105
79
|
*/
|
|
106
80
|
setClientUserId(userIdentity: string): void;
|
|
107
81
|
/*
|
|
@@ -131,13 +105,10 @@ export interface ConditionSnapshot extends EventEmitter {
|
|
|
131
105
|
|
|
132
106
|
/**
|
|
133
107
|
* set the condition quality
|
|
134
|
-
* @method setQuality
|
|
135
|
-
* @param quality {StatusCode}
|
|
136
108
|
*/
|
|
137
109
|
setQuality(quality: StatusCode, options?: IConditionVariableTypeSetterOptions): void;
|
|
138
110
|
/**
|
|
139
|
-
*
|
|
140
|
-
* @return {StatusCode}
|
|
111
|
+
*
|
|
141
112
|
*/
|
|
142
113
|
getQuality(): StatusCode;
|
|
143
114
|
/*
|
|
@@ -170,15 +141,9 @@ export interface ConditionSnapshot extends EventEmitter {
|
|
|
170
141
|
* of 667 to 1 000, Events of medium urgency into the OPC severity range of 334 to 666 and
|
|
171
142
|
* Events of low urgency into OPC severities of 1 to 333.
|
|
172
143
|
*/
|
|
173
|
-
/**
|
|
174
|
-
* @method setSeverity
|
|
175
|
-
* @param severity {UInt16}
|
|
176
|
-
*/
|
|
177
144
|
setSeverity(severity: UInt16, options?: IConditionVariableTypeSetterOptions): void;
|
|
178
145
|
|
|
179
146
|
/**
|
|
180
|
-
* @method getSeverity
|
|
181
|
-
* @return {UInt16}
|
|
182
147
|
*/
|
|
183
148
|
getSeverity(): UInt16;
|
|
184
149
|
|
|
@@ -189,14 +154,8 @@ export interface ConditionSnapshot extends EventEmitter {
|
|
|
189
154
|
* supplied via the Severity Property which is inherited from the BaseEventType.
|
|
190
155
|
*
|
|
191
156
|
*/
|
|
192
|
-
/**
|
|
193
|
-
* @method setLastSeverity
|
|
194
|
-
* @param severity {UInt16}
|
|
195
|
-
*/
|
|
196
157
|
setLastSeverity(severity: UInt16, options?: IConditionVariableTypeSetterOptions): void;
|
|
197
158
|
/**
|
|
198
|
-
* @method getLastSeverity
|
|
199
|
-
* @return {UInt16}
|
|
200
159
|
*/
|
|
201
160
|
getLastSeverity(): UInt16;
|
|
202
161
|
|
|
@@ -216,8 +175,6 @@ export interface ConditionSnapshot extends EventEmitter {
|
|
|
216
175
|
* The ReceiveTime shall always be returned as value and the Server is not allowed to return a
|
|
217
176
|
* StatusCode for the ReceiveTime indicating an error.
|
|
218
177
|
*
|
|
219
|
-
* @method setReceiveTime
|
|
220
|
-
* @param time {Date} : UTCTime
|
|
221
178
|
*/
|
|
222
179
|
setReceiveTime(time: UtcTime): void;
|
|
223
180
|
/**
|
|
@@ -226,33 +183,27 @@ export interface ConditionSnapshot extends EventEmitter {
|
|
|
226
183
|
* possible. It often comes from the underlying system or device. Once set, intermediate OPC UA
|
|
227
184
|
* Servers shall not alter the value.
|
|
228
185
|
*
|
|
229
|
-
* @method setTime
|
|
230
|
-
* @param time {Date}
|
|
231
186
|
*/
|
|
232
187
|
setTime(time: Date): void;
|
|
233
188
|
/**
|
|
234
189
|
* LocalTime is a structure containing the Offset and the DaylightSavingInOffset flag. The Offset
|
|
235
190
|
* specifies the time difference (in minutes) between the Time Property and the time at the location
|
|
236
191
|
* in which the event was issued. If DaylightSavingInOffset is TRUE, then Standard/Daylight
|
|
237
|
-
* savings time (DST) at the originating location is in effect and Offset includes the DST
|
|
192
|
+
* savings time (DST) at the originating location is in effect and Offset includes the DST correction.
|
|
238
193
|
* If FALSE then the Offset does not include DST correction and DST may or may not have been
|
|
239
194
|
* in effect.
|
|
240
|
-
* @method setLocalTime
|
|
241
|
-
* @param localTime {TimeZone}
|
|
242
195
|
*/
|
|
243
196
|
setLocalTime(localTime: TimeZoneDataType): void;
|
|
244
197
|
|
|
245
198
|
// read only !
|
|
246
199
|
getSourceName(): LocalizedText;
|
|
247
200
|
/**
|
|
248
|
-
*
|
|
249
|
-
* return {NodeId}
|
|
201
|
+
*
|
|
250
202
|
*/
|
|
251
203
|
getSourceNode(): NodeId;
|
|
252
204
|
|
|
253
205
|
/**
|
|
254
|
-
*
|
|
255
|
-
* return {NodeId}
|
|
206
|
+
*
|
|
256
207
|
*/
|
|
257
208
|
getEventType(): NodeId;
|
|
258
209
|
getMessage(): LocalizedText;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DateTime } from "node-opcua-basic-types";
|
|
2
|
-
import { Certificate } from "node-opcua-crypto";
|
|
2
|
+
import { Certificate } from "node-opcua-crypto/web";
|
|
3
3
|
import { UACertificateExpirationAlarm_Base } from "node-opcua-nodeset-ua";
|
|
4
4
|
import { UATwoStateVariableEx } from "../../ua_two_state_variable_ex";
|
|
5
5
|
import { UAAcknowledgeableConditionEx, UAAcknowledgeableConditionHelper } from "./ua_acknowledgeable_condition_ex";
|
|
@@ -338,9 +338,6 @@ function makeNodeSetParserEngine(addressSpace: IAddressSpace, options: NodeSetLo
|
|
|
338
338
|
/**
|
|
339
339
|
* convert a nodeId
|
|
340
340
|
*
|
|
341
|
-
* @method convertToNodeId
|
|
342
|
-
* @param nodeId {String|null}
|
|
343
|
-
* @return {NodeId}
|
|
344
341
|
*
|
|
345
342
|
* @example
|
|
346
343
|
* convertToNodeId("String") => resolve alias
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import { assert } from "node-opcua-assert";
|
|
6
|
-
import { CertificateInternals, exploreCertificate } from "node-opcua-crypto";
|
|
6
|
+
import { CertificateInternals, exploreCertificate } from "node-opcua-crypto/web";
|
|
7
7
|
import { AccessRestrictionsFlag, allPermissions, AttributeIds, PermissionFlag } from "node-opcua-data-model";
|
|
8
8
|
import { PreciseClock } from "node-opcua-date-time";
|
|
9
9
|
import { NodeId, NodeIdLike, resolveNodeId, sameNodeId } from "node-opcua-nodeid";
|
|
@@ -21,9 +21,9 @@ import { NamespacePrivate } from "../src/namespace_private";
|
|
|
21
21
|
|
|
22
22
|
export { RolePermissionType, RolePermissionTypeOptions, PermissionType } from "node-opcua-types";
|
|
23
23
|
|
|
24
|
-
type
|
|
24
|
+
type AnyUserIdentityToken = UserNameIdentityToken | AnonymousIdentityToken | X509IdentityToken;
|
|
25
25
|
|
|
26
|
-
function getUserName(userIdentityToken:
|
|
26
|
+
function getUserName(userIdentityToken: AnyUserIdentityToken): string {
|
|
27
27
|
if (userIdentityToken instanceof AnonymousIdentityToken) {
|
|
28
28
|
return "anonymous";
|
|
29
29
|
}
|
|
@@ -320,10 +320,6 @@ export class SessionContext implements ISessionContext {
|
|
|
320
320
|
return false;
|
|
321
321
|
}
|
|
322
322
|
/**
|
|
323
|
-
* @method checkPermission
|
|
324
|
-
* @param node
|
|
325
|
-
* @param requestedPermission
|
|
326
|
-
* @return {Boolean} returns true of the current user is granted the requested Permission
|
|
327
323
|
*/
|
|
328
324
|
public checkPermission(node: BaseNode, requestedPermission: PermissionType): boolean {
|
|
329
325
|
const permissions = this.getPermissions(node);
|
package/src/address_space.ts
CHANGED
|
@@ -124,9 +124,6 @@ function _extract_namespace_and_browse_name_as_string(
|
|
|
124
124
|
|
|
125
125
|
/**
|
|
126
126
|
* returns true if str matches a nodeID, e.g i=123 or ns=...
|
|
127
|
-
* @method isNodeIdString
|
|
128
|
-
* @param str
|
|
129
|
-
* @type {boolean}
|
|
130
127
|
*/
|
|
131
128
|
function isNodeIdString(str: unknown): boolean {
|
|
132
129
|
if (typeof str !== "string") {
|
|
@@ -200,9 +197,6 @@ export class AddressSpace implements AddressSpacePrivate {
|
|
|
200
197
|
}
|
|
201
198
|
|
|
202
199
|
/***
|
|
203
|
-
* @method getNamespace
|
|
204
|
-
* @param {string|number} namespace index or namespace uri.
|
|
205
|
-
* @return {NameSpace} the namespace
|
|
206
200
|
*/
|
|
207
201
|
public getNamespace(namespaceIndexOrName: string | number): NamespacePrivate {
|
|
208
202
|
if (typeof namespaceIndexOrName === "number") {
|
|
@@ -218,7 +212,6 @@ export class AddressSpace implements AddressSpacePrivate {
|
|
|
218
212
|
}
|
|
219
213
|
|
|
220
214
|
/***
|
|
221
|
-
* @method getDefaultNamespace
|
|
222
215
|
* @return the default namespace (standard OPCUA namespace)
|
|
223
216
|
*/
|
|
224
217
|
public getDefaultNamespace(): NamespacePrivate {
|
|
@@ -226,7 +219,6 @@ export class AddressSpace implements AddressSpacePrivate {
|
|
|
226
219
|
}
|
|
227
220
|
|
|
228
221
|
/***
|
|
229
|
-
* @method getOwnNamespace
|
|
230
222
|
*
|
|
231
223
|
* objects instances managed by the server will be created in this namespace.
|
|
232
224
|
*
|
|
@@ -241,8 +233,6 @@ export class AddressSpace implements AddressSpacePrivate {
|
|
|
241
233
|
}
|
|
242
234
|
|
|
243
235
|
/**
|
|
244
|
-
* @method getNamespaceIndex
|
|
245
|
-
* @param namespaceUri
|
|
246
236
|
* @return the namespace index of a namespace given by its namespace uri
|
|
247
237
|
*
|
|
248
238
|
*/
|
|
@@ -252,7 +242,6 @@ export class AddressSpace implements AddressSpacePrivate {
|
|
|
252
242
|
}
|
|
253
243
|
|
|
254
244
|
/**
|
|
255
|
-
* @method registerNamespace
|
|
256
245
|
*
|
|
257
246
|
* register a new namespace,
|
|
258
247
|
* it is OK to call registerNamespace even if namespace has already been registered;
|
|
@@ -281,7 +270,6 @@ export class AddressSpace implements AddressSpacePrivate {
|
|
|
281
270
|
}
|
|
282
271
|
|
|
283
272
|
/***
|
|
284
|
-
* @method getNamespaceArray
|
|
285
273
|
* @return {Namespace[]} the namespace array
|
|
286
274
|
*/
|
|
287
275
|
public getNamespaceArray(): NamespacePrivate[] {
|
|
@@ -290,7 +278,6 @@ export class AddressSpace implements AddressSpacePrivate {
|
|
|
290
278
|
|
|
291
279
|
/**
|
|
292
280
|
*
|
|
293
|
-
* @method addAlias
|
|
294
281
|
* @param alias {String} the alias name
|
|
295
282
|
* @param nodeId {NodeId}
|
|
296
283
|
* @internal
|
|
@@ -303,7 +290,6 @@ export class AddressSpace implements AddressSpacePrivate {
|
|
|
303
290
|
|
|
304
291
|
/**
|
|
305
292
|
* find an node by node Id
|
|
306
|
-
* @method findNode
|
|
307
293
|
* @param nodeId a nodeId or a string coerce-able to nodeID, representing the object to find.
|
|
308
294
|
* @return {BaseNode|null}
|
|
309
295
|
*/
|
|
@@ -351,7 +337,6 @@ export class AddressSpace implements AddressSpacePrivate {
|
|
|
351
337
|
|
|
352
338
|
/**
|
|
353
339
|
*
|
|
354
|
-
* @method findObjectType
|
|
355
340
|
* @param objectType {String|NodeId|QualifiedName}
|
|
356
341
|
* @param [namespaceIndex=0 {Number}] an optional namespace index
|
|
357
342
|
* @return {UAObjectType|null}
|
|
@@ -386,7 +371,6 @@ export class AddressSpace implements AddressSpacePrivate {
|
|
|
386
371
|
}
|
|
387
372
|
|
|
388
373
|
/**
|
|
389
|
-
* @method findVariableType
|
|
390
374
|
* @param variableType {String|NodeId}
|
|
391
375
|
* @param [namespaceIndex=0 {Number}] an optional namespace index
|
|
392
376
|
* @return {UAObjectType|null}
|
|
@@ -414,7 +398,6 @@ export class AddressSpace implements AddressSpacePrivate {
|
|
|
414
398
|
|
|
415
399
|
/**
|
|
416
400
|
* Find the DataType node from a NodeId or a browseName
|
|
417
|
-
* @method findDataType
|
|
418
401
|
* @param dataType {String|NodeId}
|
|
419
402
|
* @param [namespaceIndex=0 {Number}] an optional namespace index
|
|
420
403
|
* @return {DataType|null}
|
|
@@ -457,7 +440,6 @@ export class AddressSpace implements AddressSpacePrivate {
|
|
|
457
440
|
}
|
|
458
441
|
|
|
459
442
|
/**
|
|
460
|
-
* @method findCorrespondingBasicDataType
|
|
461
443
|
*
|
|
462
444
|
* @example
|
|
463
445
|
*
|
|
@@ -521,7 +503,6 @@ export class AddressSpace implements AddressSpacePrivate {
|
|
|
521
503
|
|
|
522
504
|
/**
|
|
523
505
|
* find a ReferenceType by its inverse name.
|
|
524
|
-
* @method findReferenceTypeFromInverseName
|
|
525
506
|
* @param inverseName the inverse name of the ReferenceType to find
|
|
526
507
|
* @deprecated
|
|
527
508
|
*/
|
|
@@ -530,7 +511,6 @@ export class AddressSpace implements AddressSpacePrivate {
|
|
|
530
511
|
}
|
|
531
512
|
|
|
532
513
|
/**
|
|
533
|
-
* @method findReferenceType
|
|
534
514
|
* @param refType {String|NodeId}
|
|
535
515
|
* @param [namespaceIndex=0 {Number}] an optional namespace index
|
|
536
516
|
* @return {ReferenceType|null}
|
|
@@ -577,7 +557,6 @@ export class AddressSpace implements AddressSpacePrivate {
|
|
|
577
557
|
/**
|
|
578
558
|
* returns the inverse name of the referenceType.
|
|
579
559
|
*
|
|
580
|
-
* @method inverseReferenceType
|
|
581
560
|
* @param referenceType {String} : the reference type name
|
|
582
561
|
* @return {String} the name of the inverse reference type.
|
|
583
562
|
*
|
|
@@ -604,7 +583,6 @@ export class AddressSpace implements AddressSpacePrivate {
|
|
|
604
583
|
|
|
605
584
|
/**
|
|
606
585
|
* find an EventType node in the address space
|
|
607
|
-
* @method findEventType
|
|
608
586
|
* @param eventTypeId {String|NodeId|UAObjectType} the eventType to find
|
|
609
587
|
* @param namespaceIndex the namespace index of the event to find
|
|
610
588
|
* @return {UAObjectType|null} the EventType found or null.
|
|
@@ -650,7 +628,6 @@ export class AddressSpace implements AddressSpacePrivate {
|
|
|
650
628
|
|
|
651
629
|
/**
|
|
652
630
|
* EventId is generated by the Server to uniquely identify a particular Event Notification.
|
|
653
|
-
* @method generateEventId
|
|
654
631
|
* @return {Variant} dataType: "ByteString"
|
|
655
632
|
*/
|
|
656
633
|
public generateEventId(): VariantT<Buffer, DataType.ByteString> {
|
|
@@ -679,7 +656,6 @@ export class AddressSpace implements AddressSpacePrivate {
|
|
|
679
656
|
|
|
680
657
|
/*=
|
|
681
658
|
* construct a simple javascript object with all the default properties of the event
|
|
682
|
-
* @method constructEventData
|
|
683
659
|
*
|
|
684
660
|
* @return result.$eventDataSource {BaseNode} the event type node
|
|
685
661
|
* @return result.eventId {NodeId} the
|
|
@@ -892,7 +868,6 @@ export class AddressSpace implements AddressSpacePrivate {
|
|
|
892
868
|
/**
|
|
893
869
|
* browse some path.
|
|
894
870
|
*
|
|
895
|
-
* @method browsePath
|
|
896
871
|
* @param {BrowsePath} browsePath
|
|
897
872
|
* @return {BrowsePathResult}
|
|
898
873
|
*
|
|
@@ -1068,7 +1043,6 @@ export class AddressSpace implements AddressSpacePrivate {
|
|
|
1068
1043
|
|
|
1069
1044
|
/**
|
|
1070
1045
|
* cleanup all resources maintained by this addressSpace.
|
|
1071
|
-
* @method dispose
|
|
1072
1046
|
*/
|
|
1073
1047
|
public dispose(): void {
|
|
1074
1048
|
this._namespaceArray.map((namespace: NamespacePrivate) => namespace.dispose());
|
|
@@ -1081,7 +1055,6 @@ export class AddressSpace implements AddressSpacePrivate {
|
|
|
1081
1055
|
|
|
1082
1056
|
/**
|
|
1083
1057
|
* register a function that will be called when the server will perform its shut down.
|
|
1084
|
-
* @method registerShutdownTask
|
|
1085
1058
|
*/
|
|
1086
1059
|
public registerShutdownTask(task: ShutdownTask): void {
|
|
1087
1060
|
this._shutdownTask = this._shutdownTask || [];
|
|
@@ -1182,7 +1155,6 @@ export class AddressSpace implements AddressSpacePrivate {
|
|
|
1182
1155
|
* walk up the hierarchy of objects until a view is found
|
|
1183
1156
|
* objects may belong to multiples views.
|
|
1184
1157
|
* Note: this method doesn't return the main view => Server object.
|
|
1185
|
-
* @method extractRootViews
|
|
1186
1158
|
* @param node {BaseNode}
|
|
1187
1159
|
* @return {BaseNode[]}
|
|
1188
1160
|
*/
|
|
@@ -1548,7 +1520,6 @@ function _find_by_node_id<T extends BaseNode>(addressSpace: AddressSpace, nodeId
|
|
|
1548
1520
|
|
|
1549
1521
|
/**
|
|
1550
1522
|
* return true if nodeId is a UAFolder
|
|
1551
|
-
* @method _isFolder
|
|
1552
1523
|
* @param addressSpace
|
|
1553
1524
|
* @param folder
|
|
1554
1525
|
* @return {Boolean}
|