node-opcua-client 2.74.0 → 2.76.1

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 (77) hide show
  1. package/dist/alarms_and_conditions/client_alarm.d.ts +49 -45
  2. package/dist/alarms_and_conditions/client_alarm.js +109 -101
  3. package/dist/alarms_and_conditions/client_alarm.js.map +1 -1
  4. package/dist/alarms_and_conditions/client_alarm_list.d.ts +25 -25
  5. package/dist/alarms_and_conditions/client_alarm_list.js +97 -97
  6. package/dist/alarms_and_conditions/client_alarm_list.js.map +1 -1
  7. package/dist/alarms_and_conditions/client_alarm_tools.d.ts +4 -4
  8. package/dist/alarms_and_conditions/client_alarm_tools.js +156 -152
  9. package/dist/alarms_and_conditions/client_alarm_tools.js.map +1 -1
  10. package/dist/alarms_and_conditions/client_alarm_tools_acknowledge_all_conditions.d.ts +18 -18
  11. package/dist/alarms_and_conditions/client_alarm_tools_acknowledge_all_conditions.js +192 -190
  12. package/dist/alarms_and_conditions/client_alarm_tools_acknowledge_all_conditions.js.map +1 -1
  13. package/dist/alarms_and_conditions/client_alarm_tools_dump_event.d.ts +9 -9
  14. package/dist/alarms_and_conditions/client_alarm_tools_dump_event.js +73 -73
  15. package/dist/alarms_and_conditions/client_alarm_tools_extractConditionFields.d.ts +3 -8
  16. package/dist/alarms_and_conditions/client_alarm_tools_extractConditionFields.js +118 -120
  17. package/dist/alarms_and_conditions/client_alarm_tools_extractConditionFields.js.map +1 -1
  18. package/dist/alarms_and_conditions/client_tools.d.ts +7 -7
  19. package/dist/alarms_and_conditions/client_tools.js +180 -180
  20. package/dist/client_base.d.ts +277 -277
  21. package/dist/client_base.js +14 -14
  22. package/dist/client_monitored_item.d.ts +21 -21
  23. package/dist/client_monitored_item.js +11 -11
  24. package/dist/client_monitored_item_base.d.ts +39 -39
  25. package/dist/client_monitored_item_base.js +2 -2
  26. package/dist/client_monitored_item_group.d.ts +18 -18
  27. package/dist/client_monitored_item_group.js +13 -13
  28. package/dist/client_monitored_item_toolbox.d.ts +15 -15
  29. package/dist/client_monitored_item_toolbox.js +117 -117
  30. package/dist/client_session.d.ts +484 -484
  31. package/dist/client_session.js +10 -10
  32. package/dist/client_session_keepalive_manager.d.ts +34 -34
  33. package/dist/client_session_keepalive_manager.js +150 -150
  34. package/dist/client_subscription.d.ts +241 -241
  35. package/dist/client_subscription.js +14 -14
  36. package/dist/client_utils.d.ts +22 -22
  37. package/dist/client_utils.js +88 -88
  38. package/dist/common.d.ts +17 -17
  39. package/dist/common.js +5 -5
  40. package/dist/index.d.ts +55 -55
  41. package/dist/index.js +93 -93
  42. package/dist/opcua_client.d.ts +132 -132
  43. package/dist/opcua_client.js +33 -33
  44. package/dist/private/client_base_impl.d.ts +157 -157
  45. package/dist/private/client_base_impl.js +1337 -1337
  46. package/dist/private/client_monitored_item_base_impl.d.ts +3 -3
  47. package/dist/private/client_monitored_item_base_impl.js +4 -4
  48. package/dist/private/client_monitored_item_group_impl.d.ts +53 -53
  49. package/dist/private/client_monitored_item_group_impl.js +159 -159
  50. package/dist/private/client_monitored_item_impl.d.ts +93 -93
  51. package/dist/private/client_monitored_item_impl.js +305 -304
  52. package/dist/private/client_monitored_item_impl.js.map +1 -1
  53. package/dist/private/client_publish_engine.d.ts +62 -62
  54. package/dist/private/client_publish_engine.js +408 -408
  55. package/dist/private/client_session_impl.d.ts +621 -621
  56. package/dist/private/client_session_impl.js +1302 -1302
  57. package/dist/private/client_subscription_impl.d.ts +93 -93
  58. package/dist/private/client_subscription_impl.js +748 -748
  59. package/dist/private/i_private_client.d.ts +18 -18
  60. package/dist/private/i_private_client.js +2 -2
  61. package/dist/private/opcua_client_impl.d.ts +169 -169
  62. package/dist/private/opcua_client_impl.js +981 -981
  63. package/dist/reconnection.d.ts +9 -9
  64. package/dist/reconnection.js +408 -408
  65. package/dist/tools/findservers.d.ts +20 -20
  66. package/dist/tools/findservers.js +61 -61
  67. package/dist/tools/read_history_server_capabilities.d.ts +6 -6
  68. package/dist/tools/read_history_server_capabilities.js +99 -99
  69. package/dist/verify.d.ts +5 -5
  70. package/dist/verify.js +134 -134
  71. package/package.json +46 -46
  72. package/source/alarms_and_conditions/client_alarm.ts +28 -17
  73. package/source/alarms_and_conditions/client_alarm_list.ts +1 -0
  74. package/source/alarms_and_conditions/client_alarm_tools.ts +33 -23
  75. package/source/alarms_and_conditions/client_alarm_tools_acknowledge_all_conditions.ts +10 -4
  76. package/source/alarms_and_conditions/client_alarm_tools_extractConditionFields.ts +11 -11
  77. package/source/private/client_monitored_item_impl.ts +4 -3
@@ -1,121 +1,119 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.extractConditionFields = void 0;
13
- const node_opcua_data_model_1 = require("node-opcua-data-model");
14
- const node_opcua_nodeid_1 = require("node-opcua-nodeid");
15
- /**
16
- *
17
- * @param session
18
- * @param conditionNodeId
19
- */
20
- function extractConditionFields(session, conditionNodeId) {
21
- return __awaiter(this, void 0, void 0, function* () {
22
- // conditionNodeId could be a Object of type ConditionType
23
- // or it could be directly a ObhectType which is a subType of ConditionType
24
- const _duplicateMap = {};
25
- const fields1 = [];
26
- function addField(name) {
27
- if (!_duplicateMap[name]) {
28
- fields1.push(name);
29
- _duplicateMap[name] = name;
30
- }
31
- }
32
- const stack = [];
33
- function deferObjectOrVariableInvestigation(objectId, browseName) {
34
- stack.push({
35
- browseName,
36
- nodeId: objectId
37
- });
38
- }
39
- function _investigateObjectOrVariable() {
40
- return __awaiter(this, void 0, void 0, function* () {
41
- if (stack.length === 0) {
42
- return;
43
- }
44
- const extracted = stack.splice(0);
45
- const nodesToBrowse = extracted.map((e) => {
46
- const b = {
47
- browseDirection: node_opcua_data_model_1.BrowseDirection.Forward,
48
- includeSubtypes: true,
49
- // tslint:disable-next-line: no-bitwise
50
- nodeClassMask: node_opcua_data_model_1.NodeClassMask.Object | node_opcua_data_model_1.NodeClassMask.Variable,
51
- nodeId: e.nodeId,
52
- referenceTypeId: "HasChild",
53
- resultMask: 63
54
- };
55
- return b;
56
- });
57
- const results = yield session.browse(nodesToBrowse);
58
- let i = 0;
59
- for (const result of results) {
60
- const name = extracted[i].browseName.toString();
61
- i++;
62
- if (!result.references) {
63
- continue;
64
- }
65
- for (const ref of result.references) {
66
- const n = name + "." + ref.browseName.toString();
67
- addField(n);
68
- deferObjectOrVariableInvestigation(ref.nodeId, n);
69
- }
70
- }
71
- yield _investigateObjectOrVariable();
72
- });
73
- }
74
- // tslint:disable-next-line: no-shadowed-variable
75
- function _investigateLevel(conditionNodeId) {
76
- return __awaiter(this, void 0, void 0, function* () {
77
- const nodeToBrowse1 = {
78
- browseDirection: node_opcua_data_model_1.BrowseDirection.Inverse,
79
- includeSubtypes: true,
80
- nodeClassMask: node_opcua_data_model_1.NodeClassMask.ObjectType,
81
- nodeId: conditionNodeId,
82
- referenceTypeId: (0, node_opcua_nodeid_1.resolveNodeId)("HasSubtype"),
83
- resultMask: 63
84
- };
85
- const nodeToBrowse2 = {
86
- browseDirection: node_opcua_data_model_1.BrowseDirection.Forward,
87
- includeSubtypes: true,
88
- // tslint:disable-next-line: no-bitwise
89
- nodeClassMask: node_opcua_data_model_1.NodeClassMask.Object | node_opcua_data_model_1.NodeClassMask.Variable,
90
- nodeId: conditionNodeId,
91
- referenceTypeId: (0, node_opcua_nodeid_1.resolveNodeId)("HasChild"),
92
- resultMask: 63
93
- };
94
- const nodesToBrowse = [nodeToBrowse1, nodeToBrowse2];
95
- const browseResults = yield session.browse(nodesToBrowse);
96
- // console.log(browseResults[0].toString());
97
- // console.log(browseResults[1].toString());
98
- if (browseResults[1] && browseResults[1].references) {
99
- for (const ref of browseResults[1].references) {
100
- addField(ref.browseName.toString());
101
- deferObjectOrVariableInvestigation(ref.nodeId, ref.browseName.toString());
102
- }
103
- }
104
- if (browseResults[0] && browseResults[0].references) {
105
- const promises = [];
106
- for (const reference of browseResults[0].references) {
107
- promises.push(_investigateLevel(reference.nodeId));
108
- }
109
- yield Promise.all(promises);
110
- }
111
- yield _investigateObjectOrVariable();
112
- });
113
- }
114
- yield _investigateLevel(conditionNodeId);
115
- // add this field which will always be added
116
- addField("ConditionId");
117
- return fields1;
118
- });
119
- }
120
- exports.extractConditionFields = extractConditionFields;
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.extractConditionFields = void 0;
13
+ const node_opcua_data_model_1 = require("node-opcua-data-model");
14
+ const node_opcua_nodeid_1 = require("node-opcua-nodeid");
15
+ const node_opcua_types_1 = require("node-opcua-types");
16
+ function extractConditionFields(session, conditionNodeId) {
17
+ return __awaiter(this, void 0, void 0, function* () {
18
+ // conditionNodeId could be a Object of type ConditionType
19
+ // or it could be directly a ObjectType which is a subType of ConditionType
20
+ const _duplicateMap = {};
21
+ const fields1 = [];
22
+ function addField(name) {
23
+ if (!_duplicateMap[name]) {
24
+ fields1.push(name);
25
+ _duplicateMap[name] = name;
26
+ }
27
+ }
28
+ const stack = [];
29
+ function deferObjectOrVariableInvestigation(objectId, browseName) {
30
+ stack.push({
31
+ browseName,
32
+ nodeId: objectId
33
+ });
34
+ }
35
+ function _investigateObjectOrVariable() {
36
+ return __awaiter(this, void 0, void 0, function* () {
37
+ if (stack.length === 0) {
38
+ return;
39
+ }
40
+ const extracted = stack.splice(0);
41
+ const nodesToBrowse = extracted.map((e) => {
42
+ const b = {
43
+ browseDirection: node_opcua_data_model_1.BrowseDirection.Forward,
44
+ includeSubtypes: true,
45
+ // tslint:disable-next-line: no-bitwise
46
+ nodeClassMask: node_opcua_data_model_1.NodeClassMask.Object | node_opcua_data_model_1.NodeClassMask.Variable,
47
+ nodeId: e.nodeId,
48
+ referenceTypeId: "HasChild",
49
+ resultMask: 63
50
+ };
51
+ return b;
52
+ });
53
+ const results = yield session.browse(nodesToBrowse);
54
+ let i = 0;
55
+ for (const result of results) {
56
+ const name = extracted[i].browseName.toString();
57
+ i++;
58
+ if (!result.references) {
59
+ continue;
60
+ }
61
+ for (const ref of result.references) {
62
+ const n = name + "." + ref.browseName.toString();
63
+ if (ref.nodeClass === node_opcua_types_1.NodeClass.Variable) {
64
+ addField(n);
65
+ }
66
+ deferObjectOrVariableInvestigation(ref.nodeId, n);
67
+ }
68
+ }
69
+ yield _investigateObjectOrVariable();
70
+ });
71
+ }
72
+ // tslint:disable-next-line: no-shadowed-variable
73
+ function _investigateLevel(conditionNodeId) {
74
+ return __awaiter(this, void 0, void 0, function* () {
75
+ const nodeToBrowse1 = {
76
+ browseDirection: node_opcua_data_model_1.BrowseDirection.Inverse,
77
+ includeSubtypes: true,
78
+ nodeClassMask: node_opcua_data_model_1.NodeClassMask.ObjectType,
79
+ nodeId: conditionNodeId,
80
+ referenceTypeId: (0, node_opcua_nodeid_1.resolveNodeId)("HasSubtype"),
81
+ resultMask: 63
82
+ };
83
+ const nodeToBrowse2 = {
84
+ browseDirection: node_opcua_data_model_1.BrowseDirection.Forward,
85
+ includeSubtypes: true,
86
+ // tslint:disable-next-line: no-bitwise
87
+ nodeClassMask: node_opcua_data_model_1.NodeClassMask.Object | node_opcua_data_model_1.NodeClassMask.Variable,
88
+ nodeId: conditionNodeId,
89
+ referenceTypeId: (0, node_opcua_nodeid_1.resolveNodeId)("HasChild"),
90
+ resultMask: 63
91
+ };
92
+ const nodesToBrowse = [nodeToBrowse1, nodeToBrowse2];
93
+ const browseResults = yield session.browse(nodesToBrowse);
94
+ if (browseResults[1] && browseResults[1].references) {
95
+ for (const ref of browseResults[1].references) {
96
+ if (ref.nodeClass === node_opcua_types_1.NodeClass.Variable) {
97
+ addField(ref.browseName.toString());
98
+ }
99
+ deferObjectOrVariableInvestigation(ref.nodeId, ref.browseName.toString());
100
+ }
101
+ }
102
+ if (browseResults[0] && browseResults[0].references) {
103
+ const promises = [];
104
+ for (const reference of browseResults[0].references) {
105
+ promises.push(_investigateLevel(reference.nodeId));
106
+ }
107
+ yield Promise.all(promises);
108
+ }
109
+ yield _investigateObjectOrVariable();
110
+ });
111
+ }
112
+ yield _investigateLevel(conditionNodeId);
113
+ // add this field which will always be added
114
+ addField("ConditionId");
115
+ return fields1;
116
+ });
117
+ }
118
+ exports.extractConditionFields = extractConditionFields;
121
119
  //# sourceMappingURL=client_alarm_tools_extractConditionFields.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"client_alarm_tools_extractConditionFields.js","sourceRoot":"","sources":["../../source/alarms_and_conditions/client_alarm_tools_extractConditionFields.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iEAAsF;AACtF,yDAAsE;AAItE;;;;GAIG;AACH,SAAsB,sBAAsB,CAAC,OAAsB,EAAE,eAA2B;;QAC5F,0DAA0D;QAC1D,4EAA4E;QAE5E,MAAM,aAAa,GAAQ,EAAE,CAAC;QAC9B,MAAM,OAAO,GAAa,EAAE,CAAC;QAE7B,SAAS,QAAQ,CAAC,IAAY;YAC1B,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,EAAE;gBACtB,OAA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BACpC,kCAAkC,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC,CAAC;qBAC7E;iBACJ;gBACD,IAAI,aAAa,CAAC,CAAC,CAAC,IAAI,aAAa,CAAC,CAAC,CAAC,CAAC,UAAU,EAAE;oBACjD,MAAM,QAAQ,GAAG,EAAE,CAAC;oBACpB,KAAK,MAAM,SAAS,IAAI,aAAa,CAAC,CAAC,CAAC,CAAC,UAAU,EAAE;wBACjD,QAAQ,CAAC,IAAI,CAAC,iBAAiB,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC;qBACtD;oBACD,MAAM,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;iBAC/B;gBAED,MAAM,4BAA4B,EAAE,CAAC;YACzC,CAAC;SAAA;QACD,MAAM,iBAAiB,CAAC,eAAe,CAAC,CAAC;QAEzC,4CAA4C;QAC5C,QAAQ,CAAC,aAAa,CAAC,CAAC;QACxB,OAAO,OAAO,CAAC;IACnB,CAAC;CAAA;AA5GD,wDA4GC"}
1
+ {"version":3,"file":"client_alarm_tools_extractConditionFields.js","sourceRoot":"","sources":["../../source/alarms_and_conditions/client_alarm_tools_extractConditionFields.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iEAAsF;AACtF,yDAAsE;AAGtE,uDAA6C;AAE7C,SAAsB,sBAAsB,CAAC,OAAsB,EAAE,eAA2B;;QAC5F,0DAA0D;QAC1D,2EAA2E;QAE3E,MAAM,aAAa,GAAQ,EAAE,CAAC;QAC9B,MAAM,OAAO,GAAa,EAAE,CAAC;QAE7B,SAAS,QAAQ,CAAC,IAAY;YAC1B,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,EAAE;gBACtB,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;gBACnB,aAAa,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;aAC9B;QACL,CAAC;QAKD,MAAM,KAAK,GAAU,EAAE,CAAC;QACx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AE,GAAG,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC,CAAC;qBAC7E;iBACJ;gBACD,IAAI,aAAa,CAAC,CAAC,CAAC,IAAI,aAAa,CAAC,CAAC,CAAC,CAAC,UAAU,EAAE;oBACjD,MAAM,QAAQ,GAAG,EAAE,CAAC;oBACpB,KAAK,MAAM,SAAS,IAAI,aAAa,CAAC,CAAC,CAAC,CAAC,UAAU,EAAE;wBACjD,QAAQ,CAAC,IAAI,CAAC,iBAAiB,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC;qBACtD;oBACD,MAAM,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;iBAC/B;gBAED,MAAM,4BAA4B,EAAE,CAAC;YACzC,CAAC;SAAA;QACD,MAAM,iBAAiB,CAAC,eAAe,CAAC,CAAC;QAEzC,4CAA4C;QAC5C,QAAQ,CAAC,aAAa,CAAC,CAAC;QAExB,OAAO,OAAO,CAAC;IACnB,CAAC;CAAA;AAhHD,wDAgHC"}
@@ -1,7 +1,7 @@
1
- /**
2
- * @module node-opcua-client
3
- */
4
- import { ErrorCallback } from "node-opcua-status-code";
5
- import { ClientSubscription } from "../client_subscription";
6
- export declare function callConditionRefresh(subscription: ClientSubscription): Promise<void>;
7
- export declare function callConditionRefresh(subscription: ClientSubscription, callback: ErrorCallback): void;
1
+ /**
2
+ * @module node-opcua-client
3
+ */
4
+ import { ErrorCallback } from "node-opcua-status-code";
5
+ import { ClientSubscription } from "../client_subscription";
6
+ export declare function callConditionRefresh(subscription: ClientSubscription): Promise<void>;
7
+ export declare function callConditionRefresh(subscription: ClientSubscription, callback: ErrorCallback): void;
@@ -1,181 +1,181 @@
1
- "use strict";
2
- /**
3
- * @module node-opcua-client
4
- */
5
- // tslint:disable:no-empty
6
- // tslint:disable: only-arrow-functions
7
- Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.callConditionRefresh = void 0;
9
- const async = require("async");
10
- const node_opcua_assert_1 = require("node-opcua-assert");
11
- const node_opcua_data_model_1 = require("node-opcua-data-model");
12
- const node_opcua_debug_1 = require("node-opcua-debug");
13
- const node_opcua_nodeid_1 = require("node-opcua-nodeid");
14
- const node_opcua_service_call_1 = require("node-opcua-service-call");
15
- const node_opcua_service_translate_browse_path_1 = require("node-opcua-service-translate-browse-path");
16
- const node_opcua_status_code_1 = require("node-opcua-status-code");
17
- const node_opcua_variant_1 = require("node-opcua-variant");
18
- const client_session_impl_1 = require("../private/client_session_impl");
19
- const debugLog = (0, node_opcua_debug_1.make_debugLog)("A&E");
20
- const doDebug = (0, node_opcua_debug_1.checkDebugFlag)("A&E");
21
- const warningLog = (0, node_opcua_debug_1.make_warningLog)("A&E");
22
- function callConditionRefresh(subscription, callback) {
23
- const subscriptionI = subscription;
24
- const theSession = subscriptionI.publishEngine.session;
25
- const subscriptionId = subscription.subscriptionId;
26
- (0, node_opcua_assert_1.assert)(isFinite(subscriptionId), "May be subscription is not yet initialized");
27
- (0, node_opcua_assert_1.assert)(typeof callback === "function");
28
- const conditionTypeNodeId = (0, node_opcua_nodeid_1.resolveNodeId)("ConditionType");
29
- let conditionRefreshId = (0, node_opcua_nodeid_1.resolveNodeId)("ConditionType_ConditionRefresh");
30
- async.series([
31
- // find conditionRefreshId
32
- (innerCallback) => {
33
- const browsePath = (0, node_opcua_service_translate_browse_path_1.makeBrowsePath)(conditionTypeNodeId, ".ConditionRefresh");
34
- theSession.translateBrowsePath(browsePath, (err, result) => {
35
- if (!err) {
36
- result = result;
37
- // istanbul ignore else
38
- if (result.targets && result.targets.length > 0) {
39
- conditionRefreshId = result.targets[0].targetId;
40
- }
41
- else {
42
- // cannot find conditionRefreshId
43
- debugLog("cannot find conditionRefreshId", result.toString());
44
- err = new Error(" cannot find conditionRefreshId");
45
- }
46
- }
47
- innerCallback(err ? err : undefined);
48
- });
49
- },
50
- (innerCallback) => {
51
- const methodToCall = {
52
- inputArguments: [new node_opcua_variant_1.Variant({ dataType: node_opcua_variant_1.DataType.UInt32, value: subscriptionId })],
53
- methodId: conditionRefreshId,
54
- objectId: conditionTypeNodeId
55
- };
56
- doDebug && debugLog("Calling method ", new node_opcua_service_call_1.CallMethodRequest(methodToCall).toString());
57
- theSession.call(methodToCall, (err, result) => {
58
- if (err) {
59
- return innerCallback(err);
60
- }
61
- result = result;
62
- // istanbul ignore next
63
- if (result.statusCode !== node_opcua_status_code_1.StatusCodes.Good) {
64
- warningLog(new node_opcua_service_call_1.CallMethodRequest(methodToCall).toString());
65
- return innerCallback(new Error("Error " + result.statusCode.toString()));
66
- }
67
- innerCallback();
68
- });
69
- }
70
- ], (err) => {
71
- callback(err || undefined);
72
- });
73
- }
74
- exports.callConditionRefresh = callConditionRefresh;
75
- client_session_impl_1.ClientSessionImpl.prototype.disableCondition = () => {
76
- /** */
77
- };
78
- client_session_impl_1.ClientSessionImpl.prototype.enableCondition = () => {
79
- /** */
80
- };
81
- client_session_impl_1.ClientSessionImpl.prototype.addCommentCondition = function (conditionId, eventId, comment, callback) {
82
- this._callMethodCondition("AddComment", conditionId, eventId, comment, callback);
83
- };
84
- client_session_impl_1.ClientSessionImpl.prototype.findMethodId = function (nodeId, methodName, callback) {
85
- const browsePath = (0, node_opcua_service_translate_browse_path_1.makeBrowsePath)(nodeId, "/" + methodName);
86
- let methodId;
87
- this.translateBrowsePath(browsePath, (err, result) => {
88
- if (err) {
89
- return callback(err);
90
- }
91
- /* istanbul ignore next */
92
- if (!result) {
93
- return callback(new Error("Internal Error"));
94
- }
95
- result.targets = result.targets || [];
96
- // istanbul ignore else
97
- if (result.targets.length > 0) {
98
- methodId = result.targets[0].targetId;
99
- return callback(null, methodId);
100
- }
101
- else {
102
- // cannot find objectWithMethodNodeId
103
- debugLog("cannot find " + methodName + " Method", result.toString());
104
- err = new Error(" cannot find " + methodName + " Method");
105
- }
106
- callback(err);
107
- });
108
- };
109
- /**
110
- *
111
- * @param methodName
112
- * @param conditionId
113
- * @param eventId
114
- * @param comment
115
- * @param callback
116
- * @private
117
- */
118
- client_session_impl_1.ClientSessionImpl.prototype._callMethodCondition = function (methodName, conditionId, eventId, comment, callback) {
119
- conditionId = (0, node_opcua_nodeid_1.coerceNodeId)(conditionId);
120
- (0, node_opcua_assert_1.assert)(conditionId instanceof node_opcua_nodeid_1.NodeId);
121
- (0, node_opcua_assert_1.assert)(eventId instanceof Buffer);
122
- (0, node_opcua_assert_1.assert)(typeof comment === "string" || comment instanceof node_opcua_data_model_1.LocalizedText);
123
- comment = node_opcua_data_model_1.LocalizedText.coerce(comment) || new node_opcua_data_model_1.LocalizedText();
124
- let methodId;
125
- let statusCode;
126
- async.series([
127
- (innerCallback) => {
128
- this.findMethodId(conditionId, methodName, (err, _methodId) => {
129
- if (err) {
130
- return innerCallback(err);
131
- }
132
- if (_methodId) {
133
- methodId = _methodId;
134
- }
135
- innerCallback();
136
- });
137
- },
138
- (innerCallback) => {
139
- const methodToCalls = [];
140
- methodToCalls.push(new node_opcua_service_call_1.CallMethodRequest({
141
- inputArguments: [
142
- /* eventId */ new node_opcua_variant_1.Variant({ dataType: "ByteString", value: eventId }),
143
- /* comment */ new node_opcua_variant_1.Variant({ dataType: "LocalizedText", value: comment })
144
- ],
145
- methodId,
146
- objectId: conditionId
147
- }));
148
- this.call(methodToCalls, (err, results) => {
149
- if (err) {
150
- return innerCallback(err);
151
- }
152
- statusCode = results[0].statusCode;
153
- innerCallback();
154
- });
155
- }
156
- ], (err) => {
157
- if (err) {
158
- return callback(err);
159
- }
160
- callback(null, statusCode);
161
- });
162
- };
163
- client_session_impl_1.ClientSessionImpl.prototype.confirmCondition = function (conditionId, eventId, comment, callback) {
164
- // ns=0;i=9113 AcknowledgeableConditionType#Confirm
165
- // note that confirm method is Optionals on condition
166
- this._callMethodCondition("Confirm", conditionId, eventId, comment, callback);
167
- };
168
- client_session_impl_1.ClientSessionImpl.prototype.acknowledgeCondition = function (conditionId, eventId, comment, callback) {
169
- // ns=0;i=9111 AcknowledgeableConditionType#Acknowledge
170
- this._callMethodCondition("Acknowledge", conditionId, eventId, comment, callback);
171
- };
172
- // tslint:disable:no-var-requires
173
- // tslint:disable:max-line-length
174
- const thenify = require("thenify");
175
- const opts = { multiArgs: false };
176
- client_session_impl_1.ClientSessionImpl.prototype.addCommentCondition = thenify.withCallback(client_session_impl_1.ClientSessionImpl.prototype.addCommentCondition, opts);
177
- client_session_impl_1.ClientSessionImpl.prototype.findMethodId = thenify.withCallback(client_session_impl_1.ClientSessionImpl.prototype.findMethodId, opts);
178
- client_session_impl_1.ClientSessionImpl.prototype.confirmCondition = thenify.withCallback(client_session_impl_1.ClientSessionImpl.prototype.confirmCondition, opts);
179
- client_session_impl_1.ClientSessionImpl.prototype.acknowledgeCondition = thenify.withCallback(client_session_impl_1.ClientSessionImpl.prototype.acknowledgeCondition, opts);
180
- module.exports.callConditionRefresh = thenify.withCallback(module.exports.callConditionRefresh, opts);
1
+ "use strict";
2
+ /**
3
+ * @module node-opcua-client
4
+ */
5
+ // tslint:disable:no-empty
6
+ // tslint:disable: only-arrow-functions
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.callConditionRefresh = void 0;
9
+ const async = require("async");
10
+ const node_opcua_assert_1 = require("node-opcua-assert");
11
+ const node_opcua_data_model_1 = require("node-opcua-data-model");
12
+ const node_opcua_debug_1 = require("node-opcua-debug");
13
+ const node_opcua_nodeid_1 = require("node-opcua-nodeid");
14
+ const node_opcua_service_call_1 = require("node-opcua-service-call");
15
+ const node_opcua_service_translate_browse_path_1 = require("node-opcua-service-translate-browse-path");
16
+ const node_opcua_status_code_1 = require("node-opcua-status-code");
17
+ const node_opcua_variant_1 = require("node-opcua-variant");
18
+ const client_session_impl_1 = require("../private/client_session_impl");
19
+ const debugLog = (0, node_opcua_debug_1.make_debugLog)("A&E");
20
+ const doDebug = (0, node_opcua_debug_1.checkDebugFlag)("A&E");
21
+ const warningLog = (0, node_opcua_debug_1.make_warningLog)("A&E");
22
+ function callConditionRefresh(subscription, callback) {
23
+ const subscriptionI = subscription;
24
+ const theSession = subscriptionI.publishEngine.session;
25
+ const subscriptionId = subscription.subscriptionId;
26
+ (0, node_opcua_assert_1.assert)(isFinite(subscriptionId), "May be subscription is not yet initialized");
27
+ (0, node_opcua_assert_1.assert)(typeof callback === "function");
28
+ const conditionTypeNodeId = (0, node_opcua_nodeid_1.resolveNodeId)("ConditionType");
29
+ let conditionRefreshId = (0, node_opcua_nodeid_1.resolveNodeId)("ConditionType_ConditionRefresh");
30
+ async.series([
31
+ // find conditionRefreshId
32
+ (innerCallback) => {
33
+ const browsePath = (0, node_opcua_service_translate_browse_path_1.makeBrowsePath)(conditionTypeNodeId, ".ConditionRefresh");
34
+ theSession.translateBrowsePath(browsePath, (err, result) => {
35
+ if (!err) {
36
+ result = result;
37
+ // istanbul ignore else
38
+ if (result.targets && result.targets.length > 0) {
39
+ conditionRefreshId = result.targets[0].targetId;
40
+ }
41
+ else {
42
+ // cannot find conditionRefreshId
43
+ debugLog("cannot find conditionRefreshId", result.toString());
44
+ err = new Error(" cannot find conditionRefreshId");
45
+ }
46
+ }
47
+ innerCallback(err ? err : undefined);
48
+ });
49
+ },
50
+ (innerCallback) => {
51
+ const methodToCall = {
52
+ inputArguments: [new node_opcua_variant_1.Variant({ dataType: node_opcua_variant_1.DataType.UInt32, value: subscriptionId })],
53
+ methodId: conditionRefreshId,
54
+ objectId: conditionTypeNodeId
55
+ };
56
+ doDebug && debugLog("Calling method ", new node_opcua_service_call_1.CallMethodRequest(methodToCall).toString());
57
+ theSession.call(methodToCall, (err, result) => {
58
+ if (err) {
59
+ return innerCallback(err);
60
+ }
61
+ result = result;
62
+ // istanbul ignore next
63
+ if (result.statusCode !== node_opcua_status_code_1.StatusCodes.Good) {
64
+ warningLog(new node_opcua_service_call_1.CallMethodRequest(methodToCall).toString());
65
+ return innerCallback(new Error("Error " + result.statusCode.toString()));
66
+ }
67
+ innerCallback();
68
+ });
69
+ }
70
+ ], (err) => {
71
+ callback(err || undefined);
72
+ });
73
+ }
74
+ exports.callConditionRefresh = callConditionRefresh;
75
+ client_session_impl_1.ClientSessionImpl.prototype.disableCondition = () => {
76
+ /** */
77
+ };
78
+ client_session_impl_1.ClientSessionImpl.prototype.enableCondition = () => {
79
+ /** */
80
+ };
81
+ client_session_impl_1.ClientSessionImpl.prototype.addCommentCondition = function (conditionId, eventId, comment, callback) {
82
+ this._callMethodCondition("AddComment", conditionId, eventId, comment, callback);
83
+ };
84
+ client_session_impl_1.ClientSessionImpl.prototype.findMethodId = function (nodeId, methodName, callback) {
85
+ const browsePath = (0, node_opcua_service_translate_browse_path_1.makeBrowsePath)(nodeId, "/" + methodName);
86
+ let methodId;
87
+ this.translateBrowsePath(browsePath, (err, result) => {
88
+ if (err) {
89
+ return callback(err);
90
+ }
91
+ /* istanbul ignore next */
92
+ if (!result) {
93
+ return callback(new Error("Internal Error"));
94
+ }
95
+ result.targets = result.targets || [];
96
+ // istanbul ignore else
97
+ if (result.targets.length > 0) {
98
+ methodId = result.targets[0].targetId;
99
+ return callback(null, methodId);
100
+ }
101
+ else {
102
+ // cannot find objectWithMethodNodeId
103
+ debugLog("cannot find " + methodName + " Method", result.toString());
104
+ err = new Error(" cannot find " + methodName + " Method");
105
+ }
106
+ callback(err);
107
+ });
108
+ };
109
+ /**
110
+ *
111
+ * @param methodName
112
+ * @param conditionId
113
+ * @param eventId
114
+ * @param comment
115
+ * @param callback
116
+ * @private
117
+ */
118
+ client_session_impl_1.ClientSessionImpl.prototype._callMethodCondition = function (methodName, conditionId, eventId, comment, callback) {
119
+ conditionId = (0, node_opcua_nodeid_1.coerceNodeId)(conditionId);
120
+ (0, node_opcua_assert_1.assert)(conditionId instanceof node_opcua_nodeid_1.NodeId);
121
+ (0, node_opcua_assert_1.assert)(eventId instanceof Buffer);
122
+ (0, node_opcua_assert_1.assert)(typeof comment === "string" || comment instanceof node_opcua_data_model_1.LocalizedText);
123
+ comment = node_opcua_data_model_1.LocalizedText.coerce(comment) || new node_opcua_data_model_1.LocalizedText();
124
+ let methodId;
125
+ let statusCode;
126
+ async.series([
127
+ (innerCallback) => {
128
+ this.findMethodId(conditionId, methodName, (err, _methodId) => {
129
+ if (err) {
130
+ return innerCallback(err);
131
+ }
132
+ if (_methodId) {
133
+ methodId = _methodId;
134
+ }
135
+ innerCallback();
136
+ });
137
+ },
138
+ (innerCallback) => {
139
+ const methodToCalls = [];
140
+ methodToCalls.push(new node_opcua_service_call_1.CallMethodRequest({
141
+ inputArguments: [
142
+ /* eventId */ new node_opcua_variant_1.Variant({ dataType: "ByteString", value: eventId }),
143
+ /* comment */ new node_opcua_variant_1.Variant({ dataType: "LocalizedText", value: comment })
144
+ ],
145
+ methodId,
146
+ objectId: conditionId
147
+ }));
148
+ this.call(methodToCalls, (err, results) => {
149
+ if (err) {
150
+ return innerCallback(err);
151
+ }
152
+ statusCode = results[0].statusCode;
153
+ innerCallback();
154
+ });
155
+ }
156
+ ], (err) => {
157
+ if (err) {
158
+ return callback(err);
159
+ }
160
+ callback(null, statusCode);
161
+ });
162
+ };
163
+ client_session_impl_1.ClientSessionImpl.prototype.confirmCondition = function (conditionId, eventId, comment, callback) {
164
+ // ns=0;i=9113 AcknowledgeableConditionType#Confirm
165
+ // note that confirm method is Optionals on condition
166
+ this._callMethodCondition("Confirm", conditionId, eventId, comment, callback);
167
+ };
168
+ client_session_impl_1.ClientSessionImpl.prototype.acknowledgeCondition = function (conditionId, eventId, comment, callback) {
169
+ // ns=0;i=9111 AcknowledgeableConditionType#Acknowledge
170
+ this._callMethodCondition("Acknowledge", conditionId, eventId, comment, callback);
171
+ };
172
+ // tslint:disable:no-var-requires
173
+ // tslint:disable:max-line-length
174
+ const thenify = require("thenify");
175
+ const opts = { multiArgs: false };
176
+ client_session_impl_1.ClientSessionImpl.prototype.addCommentCondition = thenify.withCallback(client_session_impl_1.ClientSessionImpl.prototype.addCommentCondition, opts);
177
+ client_session_impl_1.ClientSessionImpl.prototype.findMethodId = thenify.withCallback(client_session_impl_1.ClientSessionImpl.prototype.findMethodId, opts);
178
+ client_session_impl_1.ClientSessionImpl.prototype.confirmCondition = thenify.withCallback(client_session_impl_1.ClientSessionImpl.prototype.confirmCondition, opts);
179
+ client_session_impl_1.ClientSessionImpl.prototype.acknowledgeCondition = thenify.withCallback(client_session_impl_1.ClientSessionImpl.prototype.acknowledgeCondition, opts);
180
+ module.exports.callConditionRefresh = thenify.withCallback(module.exports.callConditionRefresh, opts);
181
181
  //# sourceMappingURL=client_tools.js.map