node-opcua-client 2.96.0 → 2.98.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (104) hide show
  1. package/package.json +41 -41
  2. package/source/alarms_and_conditions/client_alarm_tools_dump_event.ts +1 -1
  3. package/dist/alarms_and_conditions/client_alarm.d.ts +0 -49
  4. package/dist/alarms_and_conditions/client_alarm.js +0 -110
  5. package/dist/alarms_and_conditions/client_alarm.js.map +0 -1
  6. package/dist/alarms_and_conditions/client_alarm_list.d.ts +0 -25
  7. package/dist/alarms_and_conditions/client_alarm_list.js +0 -98
  8. package/dist/alarms_and_conditions/client_alarm_list.js.map +0 -1
  9. package/dist/alarms_and_conditions/client_alarm_tools.d.ts +0 -4
  10. package/dist/alarms_and_conditions/client_alarm_tools.js +0 -157
  11. package/dist/alarms_and_conditions/client_alarm_tools.js.map +0 -1
  12. package/dist/alarms_and_conditions/client_alarm_tools_acknowledge_all_conditions.d.ts +0 -18
  13. package/dist/alarms_and_conditions/client_alarm_tools_acknowledge_all_conditions.js +0 -193
  14. package/dist/alarms_and_conditions/client_alarm_tools_acknowledge_all_conditions.js.map +0 -1
  15. package/dist/alarms_and_conditions/client_alarm_tools_dump_event.d.ts +0 -9
  16. package/dist/alarms_and_conditions/client_alarm_tools_dump_event.js +0 -73
  17. package/dist/alarms_and_conditions/client_alarm_tools_dump_event.js.map +0 -1
  18. package/dist/alarms_and_conditions/client_alarm_tools_extractConditionFields.d.ts +0 -3
  19. package/dist/alarms_and_conditions/client_alarm_tools_extractConditionFields.js +0 -119
  20. package/dist/alarms_and_conditions/client_alarm_tools_extractConditionFields.js.map +0 -1
  21. package/dist/alarms_and_conditions/client_tools.d.ts +0 -7
  22. package/dist/alarms_and_conditions/client_tools.js +0 -180
  23. package/dist/alarms_and_conditions/client_tools.js.map +0 -1
  24. package/dist/client_base.d.ts +0 -277
  25. package/dist/client_base.js +0 -15
  26. package/dist/client_base.js.map +0 -1
  27. package/dist/client_monitored_item.d.ts +0 -21
  28. package/dist/client_monitored_item.js +0 -12
  29. package/dist/client_monitored_item.js.map +0 -1
  30. package/dist/client_monitored_item_base.d.ts +0 -39
  31. package/dist/client_monitored_item_base.js +0 -3
  32. package/dist/client_monitored_item_base.js.map +0 -1
  33. package/dist/client_monitored_item_group.d.ts +0 -21
  34. package/dist/client_monitored_item_group.js +0 -14
  35. package/dist/client_monitored_item_group.js.map +0 -1
  36. package/dist/client_monitored_item_toolbox.d.ts +0 -15
  37. package/dist/client_monitored_item_toolbox.js +0 -117
  38. package/dist/client_monitored_item_toolbox.js.map +0 -1
  39. package/dist/client_session.d.ts +0 -529
  40. package/dist/client_session.js +0 -11
  41. package/dist/client_session.js.map +0 -1
  42. package/dist/client_session_keepalive_manager.d.ts +0 -34
  43. package/dist/client_session_keepalive_manager.js +0 -150
  44. package/dist/client_session_keepalive_manager.js.map +0 -1
  45. package/dist/client_subscription.d.ts +0 -241
  46. package/dist/client_subscription.js +0 -15
  47. package/dist/client_subscription.js.map +0 -1
  48. package/dist/client_utils.d.ts +0 -22
  49. package/dist/client_utils.js +0 -88
  50. package/dist/client_utils.js.map +0 -1
  51. package/dist/common.d.ts +0 -17
  52. package/dist/common.js +0 -6
  53. package/dist/common.js.map +0 -1
  54. package/dist/index.d.ts +0 -56
  55. package/dist/index.js +0 -95
  56. package/dist/index.js.map +0 -1
  57. package/dist/opcua_client.d.ts +0 -118
  58. package/dist/opcua_client.js +0 -34
  59. package/dist/opcua_client.js.map +0 -1
  60. package/dist/private/client_base_impl.d.ts +0 -160
  61. package/dist/private/client_base_impl.js +0 -1349
  62. package/dist/private/client_base_impl.js.map +0 -1
  63. package/dist/private/client_monitored_item_base_impl.d.ts +0 -3
  64. package/dist/private/client_monitored_item_base_impl.js +0 -5
  65. package/dist/private/client_monitored_item_base_impl.js.map +0 -1
  66. package/dist/private/client_monitored_item_group_impl.d.ts +0 -53
  67. package/dist/private/client_monitored_item_group_impl.js +0 -162
  68. package/dist/private/client_monitored_item_group_impl.js.map +0 -1
  69. package/dist/private/client_monitored_item_impl.d.ts +0 -93
  70. package/dist/private/client_monitored_item_impl.js +0 -305
  71. package/dist/private/client_monitored_item_impl.js.map +0 -1
  72. package/dist/private/client_publish_engine.d.ts +0 -62
  73. package/dist/private/client_publish_engine.js +0 -409
  74. package/dist/private/client_publish_engine.js.map +0 -1
  75. package/dist/private/client_session_impl.d.ts +0 -631
  76. package/dist/private/client_session_impl.js +0 -1349
  77. package/dist/private/client_session_impl.js.map +0 -1
  78. package/dist/private/client_subscription_impl.d.ts +0 -93
  79. package/dist/private/client_subscription_impl.js +0 -780
  80. package/dist/private/client_subscription_impl.js.map +0 -1
  81. package/dist/private/i_private_client.d.ts +0 -21
  82. package/dist/private/i_private_client.js +0 -3
  83. package/dist/private/i_private_client.js.map +0 -1
  84. package/dist/private/opcua_client_impl.d.ts +0 -166
  85. package/dist/private/opcua_client_impl.js +0 -1001
  86. package/dist/private/opcua_client_impl.js.map +0 -1
  87. package/dist/private/performance.d.ts +0 -1
  88. package/dist/private/performance.js +0 -19
  89. package/dist/private/performance.js.map +0 -1
  90. package/dist/reconnection.d.ts +0 -9
  91. package/dist/reconnection.js +0 -382
  92. package/dist/reconnection.js.map +0 -1
  93. package/dist/tools/findservers.d.ts +0 -20
  94. package/dist/tools/findservers.js +0 -62
  95. package/dist/tools/findservers.js.map +0 -1
  96. package/dist/tools/read_history_server_capabilities.d.ts +0 -6
  97. package/dist/tools/read_history_server_capabilities.js +0 -99
  98. package/dist/tools/read_history_server_capabilities.js.map +0 -1
  99. package/dist/user_identity_info.d.ts +0 -1
  100. package/dist/user_identity_info.js +0 -3
  101. package/dist/user_identity_info.js.map +0 -1
  102. package/dist/verify.d.ts +0 -5
  103. package/dist/verify.js +0 -135
  104. package/dist/verify.js.map +0 -1
@@ -1,150 +0,0 @@
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.ClientSessionKeepAliveManager = void 0;
13
- /**
14
- * @module node-opcua-client
15
- */
16
- const events_1 = require("events");
17
- const chalk = require("chalk");
18
- const node_opcua_assert_1 = require("node-opcua-assert");
19
- const node_opcua_common_1 = require("node-opcua-common");
20
- const node_opcua_constants_1 = require("node-opcua-constants");
21
- const node_opcua_debug_1 = require("node-opcua-debug");
22
- const node_opcua_nodeid_1 = require("node-opcua-nodeid");
23
- const serverStatusStateNodeId = (0, node_opcua_nodeid_1.coerceNodeId)(node_opcua_constants_1.VariableIds.Server_ServerStatus_State);
24
- const debugLog = (0, node_opcua_debug_1.make_debugLog)(__filename);
25
- const doDebug = (0, node_opcua_debug_1.checkDebugFlag)(__filename);
26
- const warningLog = (0, node_opcua_debug_1.make_warningLog)(__filename);
27
- class ClientSessionKeepAliveManager extends events_1.EventEmitter {
28
- constructor(session) {
29
- super();
30
- this.transactionInProgress = false;
31
- this.count = 0;
32
- this.session = session;
33
- this.timerId = undefined;
34
- this.pingTimeout = 0;
35
- this.checkInterval = 0;
36
- this.count = 0;
37
- }
38
- start() {
39
- (0, node_opcua_assert_1.assert)(!this.timerId);
40
- /* istanbul ignore next*/
41
- if (this.session.timeout < 600) {
42
- warningLog(`[NODE-OPCUA-W13] ClientSessionKeepAliveManager detected that the session timeout (${this.session.timeout} ms) is really too small: please adjust it to a greater value ( at least 1000))`);
43
- }
44
- /* istanbul ignore next*/
45
- if (this.session.timeout < 100) {
46
- throw new Error(`ClientSessionKeepAliveManager detected that the session timeout (${this.session.timeout} ms) is really too small: please adjust it to a greater value ( at least 1000))`);
47
- }
48
- this.pingTimeout = Math.min(this.session.timeout / 3, 20000);
49
- this.checkInterval = Math.max(50, Math.min((this.session.timeout * 2) / 3, 20000));
50
- // make sure first one is almost immediate
51
- this.timerId = setTimeout(() => this.ping_server(), this.pingTimeout);
52
- }
53
- stop() {
54
- if (this.timerId) {
55
- debugLog("ClientSessionKeepAliveManager#stop");
56
- clearTimeout(this.timerId);
57
- this.timerId = undefined;
58
- }
59
- else {
60
- debugLog("warning ClientSessionKeepAliveManager#stop ignore (already stopped)");
61
- }
62
- }
63
- ping_server() {
64
- this._ping_server().then((delta) => {
65
- if (!this.session || this.session.hasBeenClosed()) {
66
- return; // stop here
67
- }
68
- if (this.timerId) {
69
- const timeout = Math.max(1, this.checkInterval - delta);
70
- this.timerId = setTimeout(() => this.ping_server(), timeout);
71
- }
72
- });
73
- }
74
- /**
75
- * @method ping_server
76
- * @internal
77
- * when a session is opened on a server, the client shall send request on a regular basis otherwise the server
78
- * session object might time out.
79
- * start_ping make sure that ping_server is called on a regular basis to prevent session to timeout.
80
- *
81
- * @param callback
82
- */
83
- _ping_server() {
84
- return __awaiter(this, void 0, void 0, function* () {
85
- const session = this.session;
86
- if (!session || session.isReconnecting) {
87
- debugLog("ClientSessionKeepAliveManager#ping_server => no session available");
88
- return 0;
89
- }
90
- if (!this.timerId) {
91
- return 0; // keep-alive has been canceled ....
92
- }
93
- const now = Date.now();
94
- const timeSinceLastServerContact = now - session.lastResponseReceivedTime.getTime();
95
- if (timeSinceLastServerContact < this.pingTimeout) {
96
- debugLog("ClientSessionKeepAliveManager#ping_server skipped because last communication with server was not that long ago ping timeout=", Math.round(this.pingTimeout), "timeSinceLastServerContact = ", timeSinceLastServerContact);
97
- // no need to send a ping yet
98
- // console.log("Skipping ",timeSinceLastServerContact,this.session.timeout);
99
- return timeSinceLastServerContact - this.pingTimeout;
100
- }
101
- if (session.isReconnecting) {
102
- debugLog("ClientSessionKeepAliveManager#ping_server skipped because client is reconnecting");
103
- return 0;
104
- }
105
- if (session.hasBeenClosed()) {
106
- debugLog("ClientSessionKeepAliveManager#ping_server skipped because client is reconnecting");
107
- return 0;
108
- }
109
- debugLog("ClientSessionKeepAliveManager#ping_server timeSinceLastServerContact=", timeSinceLastServerContact, "timeout", this.session.timeout);
110
- if (this.transactionInProgress) {
111
- // readVariable already taking place ! Ignore
112
- return 0;
113
- }
114
- this.transactionInProgress = true;
115
- // Server_ServerStatus_State
116
- return new Promise((resolve) => {
117
- session.readVariableValue(serverStatusStateNodeId, (err, dataValue) => {
118
- this.transactionInProgress = false;
119
- if (err || !dataValue || !dataValue.value) {
120
- if (err) {
121
- warningLog(chalk.cyan(" warning : ClientSessionKeepAliveManager#ping_server "), chalk.yellow(err.message));
122
- }
123
- /**
124
- * @event failure
125
- * raised when the server is not responding or is responding with en error to
126
- * the keep alive read Variable value transaction
127
- */
128
- this.emit("failure");
129
- resolve(0);
130
- return;
131
- }
132
- if (dataValue.statusCode.isGood()) {
133
- const newState = dataValue.value.value;
134
- // istanbul ignore next
135
- if (newState !== this.lastKnownState && this.lastKnownState) {
136
- warningLog("ClientSessionKeepAliveManager#Server state has changed = ", node_opcua_common_1.ServerState[newState], " was ", node_opcua_common_1.ServerState[this.lastKnownState]);
137
- }
138
- this.lastKnownState = newState;
139
- this.count++; // increase successful counter
140
- }
141
- debugLog("emit keepalive");
142
- this.emit("keepalive", this.lastKnownState, this.count);
143
- resolve(0);
144
- });
145
- });
146
- });
147
- }
148
- }
149
- exports.ClientSessionKeepAliveManager = ClientSessionKeepAliveManager;
150
- //# sourceMappingURL=client_session_keepalive_manager.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"client_session_keepalive_manager.js","sourceRoot":"","sources":["../source/client_session_keepalive_manager.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;GAEG;AACH,mCAAsC;AACtC,+BAA+B;AAC/B,yDAA2C;AAC3C,yDAAgD;AAChD,+DAAmD;AAEnD,uDAAkF;AAClF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4BACL,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC,uDAAuD,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC;yBAC9G;wBACD;;;;2BAIG;wBACH,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;wBACrB,OAAO,CAAC,CAAC,CAAC,CAAC;wBACX,OAAO;qBACV;oBAED,IAAI,SAAS,CAAC,UAAU,CAAC,MAAM,EAAE,EAAE;wBAC/B,MAAM,QAAQ,GAAG,SAAS,CAAC,KAAK,CAAC,KAAoB,CAAC;wBACtD,uBAAuB;wBACvB,IAAI,QAAQ,KAAK,IAAI,CAAC,cAAc,IAAI,IAAI,CAAC,cAAc,EAAE;4BACzD,UAAU,CACN,2DAA2D,EAC3D,+BAAW,CAAC,QAAQ,CAAC,EACrB,OAAO,EACP,+BAAW,CAAC,IAAI,CAAC,cAAc,CAAC,CACnC,CAAC;yBACL;wBACD,IAAI,CAAC,cAAc,GAAG,QAAQ,CAAC;wBAC/B,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC,8BAA8B;qBAC/C;oBACD,QAAQ,CAAC,gBAAgB,CAAC,CAAC;oBAC3B,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,cAAc,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;oBACxD,OAAO,CAAC,CAAC,CAAC,CAAC;gBACf,CAAC,CAAC,CAAC;YACP,CAAC,CAAC,CAAC;QACP,CAAC;KAAA;CACJ;AA3JD,sEA2JC"}
@@ -1,241 +0,0 @@
1
- /**
2
- * @module node-opcua-client
3
- */
4
- /// <reference types="node" />
5
- import { EventEmitter } from "events";
6
- import { Byte, Double, UInt32 } from "node-opcua-basic-types";
7
- import { DiagnosticInfo } from "node-opcua-data-model";
8
- import { ReadValueIdOptions, TimestampsToReturn } from "node-opcua-service-read";
9
- import { MonitoringMode, MonitoringParametersOptions, NotificationMessage, SetTriggeringResponse } from "node-opcua-service-subscription";
10
- import { Callback, StatusCode } from "node-opcua-status-code";
11
- import { ErrorCallback } from "node-opcua-status-code";
12
- import { ClientMonitoredItem } from "./client_monitored_item";
13
- import { ClientMonitoredItemBase } from "./client_monitored_item_base";
14
- import { ClientMonitoredItemGroup } from "./client_monitored_item_group";
15
- import { ClientSession, MonitoredItemData, SubscriptionId } from "./client_session";
16
- export interface ClientSubscriptionOptions {
17
- requestedPublishingInterval?: number;
18
- requestedLifetimeCount?: number;
19
- requestedMaxKeepAliveCount?: number;
20
- maxNotificationsPerPublish?: number;
21
- publishingEnabled?: boolean;
22
- priority?: number;
23
- }
24
- export declare type ClientHandle = number;
25
- export interface ClientMonitoredItemBaseMap {
26
- [key: string]: ClientMonitoredItemBase;
27
- }
28
- export interface ModifySubscriptionOptions {
29
- requestedPublishingInterval?: Double;
30
- requestedLifetimeCount?: UInt32;
31
- requestedMaxKeepAliveCount?: UInt32;
32
- maxNotificationsPerPublish?: UInt32;
33
- priority?: Byte;
34
- }
35
- export interface ModifySubscriptionResult {
36
- revisedPublishingInterval: Double;
37
- revisedLifetimeCount: UInt32;
38
- revisedMaxKeepAliveCount: UInt32;
39
- }
40
- export interface ClientSubscription extends EventEmitter {
41
- subscriptionId: SubscriptionId;
42
- publishingInterval: number;
43
- lifetimeCount: number;
44
- maxKeepAliveCount: number;
45
- maxNotificationsPerPublish: number;
46
- publishingEnabled: boolean;
47
- priority: number;
48
- monitoredItems: ClientMonitoredItemBaseMap;
49
- timeoutHint: number;
50
- /**
51
- * return the session associated with the subscription.
52
- * (may throw if the session is not valid)
53
- */
54
- session: ClientSession;
55
- /**
56
- * return true if the subscription is attached to a valid session
57
- */
58
- hasSession: boolean;
59
- /**
60
- * true is the subscription is fully active
61
- */
62
- isActive: boolean;
63
- /**
64
- * add a monitor item to the subscription
65
- *
66
- * @method monitor
67
- *
68
- * Monitoring a simple Value Change
69
- * ---------------------------------
70
- *
71
- * @example:
72
- *
73
- * clientSubscription.monitor(
74
- * // itemToMonitor:
75
- * {
76
- * nodeId: "ns=0;i=2258",
77
- * attributeId: AttributeIds.Value,
78
- * indexRange: null,
79
- * dataEncoding: { namespaceIndex: 0, name: null }
80
- * },
81
- * // requestedParameters:
82
- * {
83
- * samplingInterval: 3000,
84
- * filter: null,
85
- * queueSize: 1,
86
- * discardOldest: true
87
- * },
88
- * TimestampsToReturn.Neither
89
- * );
90
- *
91
- * Monitoring a Value Change With a DataChange Filter
92
- * ---------------------------------------------------
93
- *
94
- * options.trigger {DataChangeTrigger} {Status|StatusValue|StatusValueTimestamp}
95
- * options.deadbandType {DeadbandType} {None|Absolute|Percent}
96
- * options.deadbandValue {Double}
97
- *
98
- * @example:
99
- *
100
- * clientSubscription.monitor(
101
- * // itemToMonitor:
102
- * {
103
- * nodeId: "ns=0;i=2258",
104
- * attributeId: AttributeIds.Value,
105
- * },
106
- * // requestedParameters:
107
- * {
108
- * samplingInterval: 3000,
109
- * filter: new DataChangeFilter({
110
- * trigger: DataChangeTrigger.StatusValue,
111
- * deadbandType: DeadbandType.Absolute,
112
- * deadbandValue: 0.1
113
- * }),
114
- * queueSize: 1,
115
- * discardOldest: true
116
- * },
117
- * TimestampsToReturn.Neither
118
- * );
119
- *
120
- *
121
- * Monitoring an Event
122
- * -------------------
123
- *
124
- * If the monitor attributeId is EventNotifier then the filter must be specified
125
- *
126
- * @example:
127
- *
128
- * var filter = new EventFilter({
129
- * selectClauses: [
130
- * { browsePath: [ {name: 'ActiveState' }, {name: 'id'} ]},
131
- * { browsePath: [ {name: 'ConditionName'} ]}
132
- * ],
133
- * whereClause: []
134
- * });
135
- *
136
- * clientSubscription.monitor(
137
- * // itemToMonitor:
138
- * {
139
- * nodeId: "ns=0;i=2258",
140
- * attributeId: AttributeIds.EventNotifier,
141
- * indexRange: null,
142
- * dataEncoding: { namespaceIndex: 0, name: null }
143
- * },
144
- * // requestedParameters:
145
- * {
146
- * samplingInterval: 3000,
147
- *
148
- * filter: filter,
149
- *
150
- * queueSize: 1,
151
- * discardOldest: true
152
- * },
153
- * TimestampsToReturn.Neither
154
- * );
155
- *
156
- *
157
- *
158
- *
159
- *
160
- *
161
- */
162
- monitor(itemToMonitor: ReadValueIdOptions, requestedParameters: MonitoringParametersOptions, timestampsToReturn: TimestampsToReturn, monitoringMode?: MonitoringMode): Promise<ClientMonitoredItem>;
163
- monitor(itemToMonitor: ReadValueIdOptions, requestedParameters: MonitoringParametersOptions, timestampsToReturn: TimestampsToReturn, monitoringMode: MonitoringMode, callback: Callback<ClientMonitoredItem>): void;
164
- /**
165
- * @method monitorItems
166
- * @param itemsToMonitor
167
- * @param requestedParameters
168
- * @param timestampsToReturn
169
- * @return a ClientMonitoredItemGroup
170
- * @async
171
- */
172
- monitorItems(itemsToMonitor: ReadValueIdOptions[], requestedParameters: MonitoringParametersOptions, timestampsToReturn: TimestampsToReturn): Promise<ClientMonitoredItemGroup>;
173
- /**
174
- * @method monitorItems
175
- * @param itemsToMonitor
176
- * @param requestedParameters
177
- * @param timestampsToReturn
178
- * @param done
179
- * @async
180
- */
181
- monitorItems(itemsToMonitor: ReadValueIdOptions[], requestedParameters: MonitoringParametersOptions, timestampsToReturn: TimestampsToReturn, callback: Callback<ClientMonitoredItemGroup>): void;
182
- getMonitoredItems(): Promise<MonitoredItemData>;
183
- getMonitoredItems(callback: (err: Error | null, result?: MonitoredItemData) => void): void;
184
- modify(options: ModifySubscriptionOptions, callback: Callback<ModifySubscriptionResult>): void;
185
- modify(options: ModifySubscriptionOptions): Promise<ModifySubscriptionResult>;
186
- setTriggering(triggeringItem: ClientMonitoredItemBase, linksToAdd: ClientMonitoredItemBase[] | null, linksToRemove: ClientMonitoredItemBase[] | null, callback: Callback<SetTriggeringResponse>): void;
187
- setTriggering(triggeringItem: ClientMonitoredItemBase, linksToAdd: ClientMonitoredItemBase[] | null, linksToRemove: ClientMonitoredItemBase[] | null): Promise<SetTriggeringResponse>;
188
- terminate(): Promise<void>;
189
- terminate(callback: ErrorCallback): void;
190
- }
191
- export declare interface ClientSubscription {
192
- once(event: string | symbol, listener: (...args: any[]) => void): this;
193
- on(event: string | symbol, listener: (...args: any[]) => void): this;
194
- /**
195
- * notify the observers that the subscription has now started
196
- * @event started
197
- */
198
- on(event: "started", eventHandler: (subscriptionId: number) => void): this;
199
- /**
200
- * notify the observers tha the client subscription has terminated
201
- * @event terminated
202
- */
203
- on(event: "terminated", eventHandler: () => void): this;
204
- /**
205
- * notify the observers that a new monitored item has been added to the subscription.
206
- * @event item_added
207
- */
208
- on(event: "item_added", eventHandler: (monitoredItem: ClientMonitoredItem) => void): this;
209
- /**
210
- * notify the observers that a keep alive Publish Response has been received from the server.
211
- * @event keepalive
212
- */
213
- on(event: "keepalive", eventHandler: () => void): this;
214
- /**
215
- * notify the observers that an error has occurred
216
- * @event internal_error
217
- * @param event
218
- * @param eventHandler
219
- */
220
- on(event: "internal_error", eventHandler: (err: Error) => void): this;
221
- on(event: "raw_notification", eventHandler: (notificationMessage: NotificationMessage) => void): this;
222
- /**
223
- * notify the observers that some notifications has been received from the server in a PublishResponse
224
- * each modified monitored Item
225
- * @event received_notifications
226
- */
227
- on(event: "received_notifications", eventHandler: (notificationMessage: NotificationMessage) => void): this;
228
- /**
229
- * notify the observers that the server has send a status changed notification (such as BadTimeout )
230
- * @event status_changed
231
- */
232
- on(event: "status_changed", eventHandler: (status: StatusCode, diagnosticInfo: DiagnosticInfo) => void): this;
233
- on(event: "error", eventHandler: (err: Error) => void): this;
234
- }
235
- export declare interface ClientSubscription {
236
- _createMonitoredItem(itemToMonitor: ReadValueIdOptions, monitoringParameters: MonitoringParametersOptions, timestampsToReturn: TimestampsToReturn): ClientMonitoredItem;
237
- }
238
- export declare class ClientSubscription {
239
- static create(clientSession: ClientSession, options: ClientSubscriptionOptions): ClientSubscription;
240
- static ignoreNextWarning: boolean;
241
- }
@@ -1,15 +0,0 @@
1
- "use strict";
2
- /**
3
- * @module node-opcua-client
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.ClientSubscription = void 0;
7
- class ClientSubscription {
8
- static create(clientSession, options) {
9
- /* istanbul ignore next*/
10
- throw new Error("Not Implemented");
11
- }
12
- }
13
- exports.ClientSubscription = ClientSubscription;
14
- ClientSubscription.ignoreNextWarning = false;
15
- //# sourceMappingURL=client_subscription.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"client_subscription.js","sourceRoot":"","sources":["../source/client_subscription.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAgTH,MAAa,kBAAkB;IACpB,MAAM,CAAC,MAAM,CAAC,aAA4B,EAAE,OAAkC;QACjF,yBAAyB;QACzB,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACvC,CAAC;;AAJL,gDAMC;AADiB,oCAAiB,GAAG,KAAK,CAAC"}
@@ -1,22 +0,0 @@
1
- /**
2
- * @module node-opcua-client
3
- */
4
- import { NodeIdLike } from "node-opcua-nodeid";
5
- import { Variant } from "node-opcua-variant";
6
- import { ClientSession, ResponseCallback } from "./client_session";
7
- interface AnalogDataItemSnapshot {
8
- engineeringUnits: Variant | null;
9
- engineeringUnitsRange: Variant | null;
10
- instrumentRange: Variant | null;
11
- valuePrecision: Variant | null;
12
- definition: Variant | null;
13
- }
14
- /**
15
- * @method readUAAnalogItem
16
- * @param session
17
- * @param nodeId
18
- * @param callback
19
- */
20
- export declare function readUAAnalogItem(session: ClientSession, nodeId: NodeIdLike): Promise<AnalogDataItemSnapshot>;
21
- export declare function readUAAnalogItem(session: ClientSession, nodeId: NodeIdLike, callback: ResponseCallback<AnalogDataItemSnapshot>): void;
22
- export {};
@@ -1,88 +0,0 @@
1
- "use strict";
2
- /**
3
- * @module node-opcua-client
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.readUAAnalogItem = void 0;
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_nodeid_1 = require("node-opcua-nodeid");
10
- const node_opcua_service_translate_browse_path_1 = require("node-opcua-service-translate-browse-path");
11
- const hasPropertyRefId = (0, node_opcua_nodeid_1.resolveNodeId)("HasProperty");
12
- /* NodeId ns=0;i=46*/
13
- function browsePathPropertyRequest(nodeId, propertyName) {
14
- return new node_opcua_service_translate_browse_path_1.BrowsePath({
15
- relativePath: /* RelativePath */ {
16
- elements: /* RelativePathElement */ [
17
- {
18
- includeSubtypes: false,
19
- isInverse: false,
20
- referenceTypeId: hasPropertyRefId,
21
- targetName: { namespaceIndex: 0, name: propertyName }
22
- }
23
- ]
24
- },
25
- startingNode: /* NodeId */ nodeId
26
- });
27
- }
28
- function readUAAnalogItem(session, nodeId, ...args) {
29
- const callback = args[0];
30
- (0, node_opcua_assert_1.assert)(typeof callback === "function");
31
- const browsePath = [
32
- browsePathPropertyRequest(nodeId, "EngineeringUnits"),
33
- browsePathPropertyRequest(nodeId, "EURange"),
34
- browsePathPropertyRequest(nodeId, "InstrumentRange"),
35
- browsePathPropertyRequest(nodeId, "ValuePrecision"),
36
- browsePathPropertyRequest(nodeId, "Definition")
37
- ];
38
- const analogItemData = {
39
- definition: null,
40
- engineeringUnits: null,
41
- engineeringUnitsRange: null,
42
- instrumentRange: null,
43
- valuePrecision: null
44
- };
45
- session.translateBrowsePath(browsePath, (err, browsePathResults) => {
46
- if (err) {
47
- return callback(err);
48
- }
49
- browsePathResults = browsePathResults || [];
50
- const actions = [];
51
- const nodesToRead = [];
52
- function processProperty(browsePathResult, propertyName) {
53
- if (browsePathResult.statusCode.isGood()) {
54
- browsePathResult.targets = browsePathResult.targets || [];
55
- nodesToRead.push({
56
- attributeId: node_opcua_data_model_1.AttributeIds.Value,
57
- nodeId: browsePathResult.targets[0].targetId
58
- });
59
- actions.push((readResult) => (analogItemData[propertyName] = readResult.value.value));
60
- }
61
- }
62
- processProperty(browsePathResults[0], "engineeringUnits");
63
- processProperty(browsePathResults[1], "engineeringUnitsRange");
64
- processProperty(browsePathResults[2], "instrumentRange");
65
- processProperty(browsePathResults[3], "valuePrecision");
66
- processProperty(browsePathResults[4], "definition");
67
- session.read(nodesToRead, (err1, dataValues) => {
68
- if (err1) {
69
- return callback(err1);
70
- }
71
- /* istanbul ignore next */
72
- if (!dataValues) {
73
- return callback(new Error("Internal Error"));
74
- }
75
- dataValues.forEach((result, index) => {
76
- actions[index].call(null, result);
77
- });
78
- callback(err1, analogItemData);
79
- });
80
- });
81
- }
82
- exports.readUAAnalogItem = readUAAnalogItem;
83
- // tslint:disable:no-var-requires
84
- // tslint:disable:max-line-length
85
- const thenify = require("thenify");
86
- const opts = { multiArgs: false };
87
- module.exports.readUAAnalogItem = thenify.withCallback(module.exports.readUAAnalogItem, opts);
88
- //# sourceMappingURL=client_utils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"client_utils.js","sourceRoot":"","sources":["../source/client_utils.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,yDAA2C;AAC3C,iEAAqD;AAErD,yDAA8D;AAE9D,uGAAwF;AAMxF,MAAM,gBAAgB,GAAG,IAAA,iCAAa,EAAC,aAAa,CAAC,CAAC;AAEtD,sBAAsB;AAEtB,SAAS,yBAAyB,CAAC,MAAkB,EAAE,YAAoB;IACvE,OAAO,IAAI,qDAAU,CAAC;QAClB,YAAY,EAAE,oBAAoB,CAAC;YAC/B,QAAQ,EAAE,yBAAyB,CAAC;gBAChC;oBACI,eAAe,EAAE,KAAK;oBACtB,SAAS,EAAE,KAAK;oBAChB,eAAe,EAAE,gBAAgB;oBACjC,UAAU,EAAE,EAAE,cAAc,EAAE,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE;iBACxD;aACJ;SACJ;QACD,YAAY,EAAE,aAAa,CAAC,MAAM;KACrC,CAAC,CAAC;AACP,CAAC;AAsBD,SAAgB,gBAAgB,CAAC,OAAsB,EAAE,MAAkB,EAAE,GAAG,IAAsB;IAClG,MAAM,QAAQ,GAAG,IAAI,CAAC,CAAC,CAA6C,CAAC;IACrE,IAAA,0BAAM,EAAC,OAAO,QAAQ,KAAK,UAAU,CAAC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module node-opcua-client
3
- */
4
- import { BrowseNextRequest, BrowseNextResponse, BrowseRequest, BrowseResponse } from "node-opcua-service-browse";
5
- import { CallRequest, CallResponse } from "node-opcua-service-call";
6
- import { FindServersOnNetworkRequest, FindServersOnNetworkResponse, FindServersRequest, FindServersResponse } from "node-opcua-service-discovery";
7
- import { GetEndpointsRequest, GetEndpointsResponse } from "node-opcua-service-endpoints";
8
- import { HistoryReadRequest, HistoryReadResponse } from "node-opcua-service-history";
9
- import { QueryFirstRequest, QueryFirstResponse, QueryNextRequest, QueryNextResponse } from "node-opcua-service-query";
10
- import { ReadRequest, ReadResponse } from "node-opcua-service-read";
11
- import { RegisterNodesRequest, RegisterNodesResponse, UnregisterNodesRequest, UnregisterNodesResponse } from "node-opcua-service-register-node";
12
- import { ActivateSessionRequest, ActivateSessionResponse, CloseSessionRequest, CloseSessionResponse, CreateSessionRequest, CreateSessionResponse } from "node-opcua-service-session";
13
- import { CreateMonitoredItemsRequest, CreateMonitoredItemsResponse, CreateSubscriptionRequest, CreateSubscriptionResponse, DeleteMonitoredItemsRequest, DeleteMonitoredItemsResponse, DeleteSubscriptionsRequest, DeleteSubscriptionsResponse, ModifyMonitoredItemsRequest, ModifyMonitoredItemsResponse, ModifySubscriptionRequest, ModifySubscriptionResponse, PublishRequest, PublishResponse, RepublishRequest, RepublishResponse, SetMonitoringModeRequest, SetMonitoringModeResponse, SetPublishingModeRequest, SetPublishingModeResponse, TransferSubscriptionsRequest, TransferSubscriptionsResponse } from "node-opcua-service-subscription";
14
- import { TranslateBrowsePathsToNodeIdsRequest, TranslateBrowsePathsToNodeIdsResponse } from "node-opcua-service-translate-browse-path";
15
- import { WriteRequest, WriteResponse } from "node-opcua-service-write";
16
- export declare type Request = CreateSessionRequest | ActivateSessionRequest | CloseSessionRequest | GetEndpointsRequest | ReadRequest | BrowseRequest | BrowseNextRequest | WriteRequest | CallRequest | TranslateBrowsePathsToNodeIdsRequest | CreateSubscriptionRequest | DeleteSubscriptionsRequest | TransferSubscriptionsRequest | CreateMonitoredItemsRequest | ModifyMonitoredItemsRequest | ModifySubscriptionRequest | SetMonitoringModeRequest | PublishRequest | RepublishRequest | DeleteMonitoredItemsRequest | SetPublishingModeRequest | FindServersOnNetworkRequest | FindServersRequest | HistoryReadRequest | RegisterNodesRequest | UnregisterNodesRequest | QueryFirstRequest | QueryNextRequest;
17
- export declare type Response = CreateSessionResponse | ActivateSessionResponse | CloseSessionResponse | GetEndpointsResponse | ReadResponse | BrowseResponse | BrowseNextResponse | WriteResponse | CallResponse | TranslateBrowsePathsToNodeIdsResponse | CreateSubscriptionResponse | DeleteSubscriptionsResponse | TransferSubscriptionsResponse | CreateMonitoredItemsResponse | ModifyMonitoredItemsResponse | ModifySubscriptionResponse | SetMonitoringModeResponse | PublishResponse | RepublishResponse | DeleteMonitoredItemsResponse | SetPublishingModeResponse | FindServersOnNetworkResponse | FindServersResponse | HistoryReadResponse | RegisterNodesResponse | UnregisterNodesResponse | QueryFirstResponse | QueryNextResponse;
package/dist/common.js DELETED
@@ -1,6 +0,0 @@
1
- "use strict";
2
- /**
3
- * @module node-opcua-client
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- //# sourceMappingURL=common.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"common.js","sourceRoot":"","sources":["../source/common.ts"],"names":[],"mappings":";AAAA;;GAEG"}
package/dist/index.d.ts DELETED
@@ -1,56 +0,0 @@
1
- /**
2
- * @module node-opcua-client
3
- */
4
- export * from "./client_base";
5
- export * from "./opcua_client";
6
- export * from "./client_session";
7
- export * from "./client_subscription";
8
- export * from "./client_monitored_item_base";
9
- export * from "./client_monitored_item";
10
- export * from "./client_monitored_item_group";
11
- export * from "./alarms_and_conditions/client_tools";
12
- export * from "./alarms_and_conditions/client_alarm";
13
- export * from "./alarms_and_conditions/client_alarm_list";
14
- export * from "./alarms_and_conditions/client_alarm_tools";
15
- export * from "./alarms_and_conditions/client_alarm_tools_extractConditionFields";
16
- export * from "./alarms_and_conditions/client_alarm_tools_dump_event";
17
- export * from "./alarms_and_conditions/client_alarm_tools_acknowledge_all_conditions";
18
- export * from "./tools/findservers";
19
- export * from "./tools/read_history_server_capabilities";
20
- export * from "./client_utils";
21
- export * from "./verify";
22
- export * from "./user_identity_info";
23
- export { assert } from "node-opcua-assert";
24
- export * from "node-opcua-utils";
25
- export { ClientSidePublishEngine } from "./private/client_publish_engine";
26
- export { ServerState, ServiceCounterDataType } from "node-opcua-common";
27
- export { SecurityPolicy, ClientSecureChannelLayer, ConnectionStrategyOptions } from "node-opcua-secure-channel";
28
- import * as utils1 from "node-opcua-utils";
29
- export declare const utils: typeof utils1;
30
- import * as crypto_util1 from "node-opcua-crypto";
31
- export declare const crypto_utils: typeof crypto_util1;
32
- export { hexDump } from "node-opcua-debug";
33
- export { NodeId, resolveNodeId, makeNodeId, coerceNodeId, sameNodeId, ExpandedNodeId, makeExpandedNodeId, coerceExpandedNodeId } from "node-opcua-nodeid";
34
- export { StatusCode, StatusCodes } from "node-opcua-status-code";
35
- export * from "node-opcua-variant";
36
- export * from "node-opcua-data-value";
37
- export * from "node-opcua-data-model";
38
- export * from "node-opcua-constants";
39
- export * from "node-opcua-secure-channel";
40
- export { makeApplicationUrn } from "node-opcua-common";
41
- export * from "node-opcua-service-endpoints";
42
- export * from "node-opcua-service-browse";
43
- export * from "node-opcua-service-call";
44
- export * from "node-opcua-service-discovery";
45
- export * from "node-opcua-service-endpoints";
46
- export * from "node-opcua-service-history";
47
- export * from "node-opcua-service-query";
48
- export * from "node-opcua-service-read";
49
- export * from "node-opcua-service-secure-channel";
50
- export * from "node-opcua-service-session";
51
- export * from "node-opcua-service-subscription";
52
- export * from "node-opcua-service-translate-browse-path";
53
- export * from "node-opcua-service-write";
54
- export * from "node-opcua-service-filter";
55
- export { IBasicSession, browseAll, readNamespaceArray } from "node-opcua-pseudo-session";
56
- export * from "node-opcua-client-dynamic-extension-object";