node-opcua-client 2.166.0 → 2.168.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/alarms_and_conditions/client_alarm_tools.d.ts +1 -1
- package/dist/alarms_and_conditions/client_alarm_tools.js +2 -2
- package/dist/alarms_and_conditions/client_alarm_tools.js.map +1 -1
- package/dist/alarms_and_conditions/client_tools.d.ts +3 -0
- package/dist/alarms_and_conditions/client_tools.js +2 -2
- package/dist/alarms_and_conditions/client_tools.js.map +1 -1
- package/dist/client_base.d.ts +47 -40
- package/dist/client_base.js +5 -6
- package/dist/client_base.js.map +1 -1
- package/dist/client_monitored_item.d.ts +7 -7
- package/dist/client_monitored_item.js.map +1 -1
- package/dist/client_monitored_item_base.d.ts +12 -13
- package/dist/client_monitored_item_group.d.ts +5 -5
- package/dist/client_monitored_item_toolbox.d.ts +6 -7
- package/dist/client_monitored_item_toolbox.js.map +1 -1
- package/dist/client_session.d.ts +19 -23
- package/dist/client_session.js.map +1 -1
- package/dist/client_session_keepalive_manager.d.ts +1 -1
- package/dist/client_session_keepalive_manager.js +6 -6
- package/dist/client_session_keepalive_manager.js.map +1 -1
- package/dist/client_subscription.d.ts +11 -12
- package/dist/client_subscription.js.map +1 -1
- package/dist/client_utils.d.ts +3 -3
- package/dist/client_utils.js.map +1 -1
- package/dist/common.d.ts +12 -12
- package/dist/index.d.ts +26 -27
- package/dist/index.js +65 -66
- package/dist/index.js.map +1 -1
- package/dist/opcua_client.d.ts +17 -19
- package/dist/opcua_client.js.map +1 -1
- package/dist/private/client_base_impl.d.ts +19 -18
- package/dist/private/client_base_impl.js +220 -192
- package/dist/private/client_base_impl.js.map +1 -1
- package/dist/private/client_monitored_item_group_impl.d.ts +4 -5
- package/dist/private/client_monitored_item_group_impl.js +1 -1
- package/dist/private/client_monitored_item_group_impl.js.map +1 -1
- package/dist/private/client_monitored_item_impl.d.ts +9 -10
- package/dist/private/client_monitored_item_impl.js.map +1 -1
- package/dist/private/client_publish_engine.d.ts +3 -3
- package/dist/private/client_publish_engine.js +6 -7
- package/dist/private/client_publish_engine.js.map +1 -1
- package/dist/private/client_session_impl.d.ts +24 -25
- package/dist/private/client_session_impl.js +14 -10
- package/dist/private/client_session_impl.js.map +1 -1
- package/dist/private/client_subscription_impl.d.ts +10 -11
- package/dist/private/client_subscription_impl.js +12 -11
- package/dist/private/client_subscription_impl.js.map +1 -1
- package/dist/private/i_private_client.d.ts +7 -7
- package/dist/private/opcua_client_impl.d.ts +12 -9
- package/dist/private/opcua_client_impl.js +58 -48
- package/dist/private/opcua_client_impl.js.map +1 -1
- package/dist/private/performance.js.map +1 -1
- package/dist/private/reconnection/client_publish_engine_reconnection.d.ts +1 -1
- package/dist/private/reconnection/client_publish_engine_reconnection.js +54 -43
- package/dist/private/reconnection/client_publish_engine_reconnection.js.map +1 -1
- package/dist/private/reconnection/client_reconnection.d.ts +1 -1
- package/dist/private/reconnection/client_subscription_reconnection.d.ts +1 -1
- package/dist/private/reconnection/client_subscription_reconnection.js +2 -2
- package/dist/private/reconnection/client_subscription_reconnection.js.map +1 -1
- package/dist/private/reconnection/reconnection.d.ts +4 -4
- package/dist/private/reconnection/reconnection.js +200 -281
- package/dist/private/reconnection/reconnection.js.map +1 -1
- package/dist/tools/findservers.d.ts +7 -2
- package/dist/tools/findservers.js +41 -53
- package/dist/tools/findservers.js.map +1 -1
- package/dist/tools/read_history_server_capabilities.d.ts +1 -1
- package/dist/tools/read_history_server_capabilities.js +9 -8
- package/dist/tools/read_history_server_capabilities.js.map +1 -1
- package/dist/user_identity_info.d.ts +1 -1
- package/dist/verify.js.map +1 -1
- package/package.json +45 -45
- package/source/alarms_and_conditions/client_alarm_tools.ts +14 -8
- package/source/alarms_and_conditions/client_tools.ts +7 -6
- package/source/client_base.ts +93 -79
- package/source/client_monitored_item.ts +7 -8
- package/source/client_monitored_item_base.ts +12 -14
- package/source/client_monitored_item_group.ts +5 -5
- package/source/client_monitored_item_toolbox.ts +13 -14
- package/source/client_session.ts +37 -40
- package/source/client_session_keepalive_manager.ts +7 -10
- package/source/client_subscription.ts +11 -12
- package/source/client_utils.ts +6 -6
- package/source/common.ts +12 -12
- package/source/index.ts +44 -40
- package/source/opcua_client.ts +24 -23
- package/source/private/client_base_impl.ts +329 -290
- package/source/private/client_monitored_item_group_impl.ts +10 -14
- package/source/private/client_monitored_item_impl.ts +17 -17
- package/source/private/client_publish_engine.ts +11 -12
- package/source/private/client_session_impl.ts +85 -82
- package/source/private/client_subscription_impl.ts +42 -41
- package/source/private/i_private_client.ts +8 -8
- package/source/private/opcua_client_impl.ts +118 -97
- package/source/private/performance.ts +2 -3
- package/source/private/reconnection/client_publish_engine_reconnection.ts +76 -68
- package/source/private/reconnection/client_reconnection.ts +1 -1
- package/source/private/reconnection/client_subscription_reconnection.ts +16 -13
- package/source/private/reconnection/reconnection.ts +307 -301
- package/source/tools/findservers.ts +43 -62
- package/source/tools/read_history_server_capabilities.ts +20 -22
- package/source/user_identity_info.ts +5 -5
- package/source/verify.ts +25 -25
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ClientAlarmList } from "node-opcua-alarm-condition";
|
|
2
|
-
import { ClientSession } from "../client_session";
|
|
2
|
+
import type { ClientSession } from "../client_session";
|
|
3
3
|
export declare function uninstallAlarmMonitoring(session: ClientSession): Promise<void>;
|
|
4
4
|
export declare function installAlarmMonitoring(session: ClientSession): Promise<ClientAlarmList>;
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.uninstallAlarmMonitoring = uninstallAlarmMonitoring;
|
|
4
4
|
exports.installAlarmMonitoring = installAlarmMonitoring;
|
|
5
|
+
const node_opcua_alarm_condition_1 = require("node-opcua-alarm-condition");
|
|
5
6
|
const node_opcua_data_model_1 = require("node-opcua-data-model");
|
|
7
|
+
const node_opcua_debug_1 = require("node-opcua-debug");
|
|
6
8
|
const node_opcua_nodeid_1 = require("node-opcua-nodeid");
|
|
7
9
|
const node_opcua_service_filter_1 = require("node-opcua-service-filter");
|
|
8
10
|
const node_opcua_service_read_1 = require("node-opcua-service-read");
|
|
9
11
|
const node_opcua_variant_1 = require("node-opcua-variant");
|
|
10
|
-
const node_opcua_debug_1 = require("node-opcua-debug");
|
|
11
|
-
const node_opcua_alarm_condition_1 = require("node-opcua-alarm-condition");
|
|
12
12
|
const doDebug = (0, node_opcua_debug_1.checkDebugFlag)("A&E");
|
|
13
13
|
const debugLog = (0, node_opcua_debug_1.make_debugLog)("A&E");
|
|
14
14
|
const warningLog = (0, node_opcua_debug_1.make_warningLog)("A&E");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client_alarm_tools.js","sourceRoot":"","sources":["../../source/alarms_and_conditions/client_alarm_tools.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"client_alarm_tools.js","sourceRoot":"","sources":["../../source/alarms_and_conditions/client_alarm_tools.ts"],"names":[],"mappings":";;AAmCA,4DAaC;AAeD,wDA8GC;AA7KD,2EAMoC;AACpC,iEAAqD;AACrD,uDAAkF;AAClF,yDAAkD;AAClD,yEAAyE;AACzE,qEAAsF;AAEtF,2DAA4D;AAM5D,MAAM,OAAO,GAAG,IAAA,iCAAc,EAAC,KAAK,CAAC,CAAC;AACtC,MAAM,QAAQ,GAAG,IAAA,gCAAa,EAAC,KAAK,CAAC,CAAC;AACtC,MAAM,UAAU,GAAG,IAAA,kCAAe,EAAC,KAAK,CAAC,CAAC;AAE1C,SAAS,CAAC,CAAC,IAAY,EAAE,CAA0C;IAC/D,IAAI,CAAC,IAAI,CAAC,CAAC,QAAQ,KAAK,MAAM,EAAE,CAAC;QAC7B,OAAO,SAAS,CAAC;IACrB,CAAC;IACD,OAAO,CAAC,CAAC;AACb,CAAC;AAMD,iIAAiI;AAC1H,KAAK,UAAU,wBAAwB,CAAC,OAAsB;IACjE,MAAM,YAAY,GAAG,OAA4B,CAAC;IAClD,IAAI,CAAC,YAA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AC;IACD,YAAY,CAAC,0BAA0B,GAAG,mBAAmB,CAAC;IAE9D,UAAU,CAAC,GAAG,EAAE,CAAC,UAAU,EAAE,EAAE,EAAE,CAAC,CAAC;IACnC,MAAM,GAAG,KAAK,CAAC;IAEf,uBAAuB;IACvB,OAAO,eAAe,CAAC;AAC3B,CAAC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
2
|
/**
|
|
4
3
|
* @module node-opcua-client
|
|
5
4
|
*/
|
|
6
|
-
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
6
|
const node_opcua_alarm_condition_1 = require("node-opcua-alarm-condition");
|
|
8
7
|
const node_opcua_pseudo_session_1 = require("node-opcua-pseudo-session");
|
|
8
|
+
const util_1 = require("util");
|
|
9
9
|
const client_session_impl_1 = require("../private/client_session_impl");
|
|
10
10
|
client_session_impl_1.ClientSessionImpl.prototype.disableCondition = () => {
|
|
11
11
|
/** */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client_tools.js","sourceRoot":"","sources":["../../source/alarms_and_conditions/client_tools.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"client_tools.js","sourceRoot":"","sources":["../../source/alarms_and_conditions/client_tools.ts"],"names":[],"mappings":";AAAA;;GAEG;;AAEH,2EAAyG;AAGzG,yEAAgF;AAEhF,+BAAmC;AAEnC,wEAAmE;AAEnE,uCAAiB,CAAC,SAAS,CAAC,gBAAgB,GAAG,GAAG,EAAE;IAChD,MAAM;AACV,CAAC,CAAC;AAEF,uCAAiB,CAAC,SAAS,CAAC,eAAe,GAAG,GAAG,EAAE;IAC/C,MAAM;AACV,CAAC,CAAC;AAEF,uCAAiB,CAAC,SAAS,CAAC,mBAAmB,GAAG,UAC9C,WAAuB,EACvB,OAAe,EACf,OAA0B,EAC1B,QAA8B;IAE9B,IAAA,kBAAW,EAAC,gDAAmB,CAA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K,EAAE,CAAC;AAClC,uCAAiB,CAAC,SAAS,CAAC,mBAAmB,GAAG,IAAA,yBAAY,EAAC,uCAAiB,CAAC,SAAS,CAAC,mBAAmB,EAAE,IAAI,CAAC,CAAC;AACtH,uCAAiB,CAAC,SAAS,CAAC,YAAY,GAAG,IAAA,yBAAY,EAAC,uCAAiB,CAAC,SAAS,CAAC,YAAY,EAAE,IAAI,CAAC,CAAC;AACxG,uCAAiB,CAAC,SAAS,CAAC,gBAAgB,GAAG,IAAA,yBAAY,EAAC,uCAAiB,CAAC,SAAS,CAAC,gBAAgB,EAAE,IAAI,CAAC,CAAC;AAChH,uCAAiB,CAAC,SAAS,CAAC,oBAAoB,GAAG,IAAA,yBAAY,EAAC,uCAAiB,CAAC,SAAS,CAAC,oBAAoB,EAAE,IAAI,CAAC,CAAC"}
|
package/dist/client_base.d.ts
CHANGED
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module node-opcua-client
|
|
3
3
|
*/
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { Certificate } from "node-opcua-crypto/web";
|
|
4
|
+
import type { LocaleId } from "node-opcua-basic-types";
|
|
5
|
+
import type { OPCUACertificateManager } from "node-opcua-certificate-manager";
|
|
6
|
+
import type { OPCUASecureObject } from "node-opcua-common";
|
|
7
|
+
import type { Certificate } from "node-opcua-crypto/web";
|
|
9
8
|
import { ObjectRegistry } from "node-opcua-object-registry";
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import { Request, Response } from "./common";
|
|
9
|
+
import type { ResponseCallback } from "node-opcua-pseudo-session";
|
|
10
|
+
import type { ClientSecureChannelLayer, ConnectionStrategy, ConnectionStrategyOptions, SecurityPolicy } from "node-opcua-secure-channel";
|
|
11
|
+
import type { FindServersOnNetworkRequestOptions, FindServersRequestOptions, ServerOnNetwork } from "node-opcua-service-discovery";
|
|
12
|
+
import type { ApplicationDescription, EndpointDescription } from "node-opcua-service-endpoints";
|
|
13
|
+
import type { ChannelSecurityToken, MessageSecurityMode } from "node-opcua-service-secure-channel";
|
|
14
|
+
import type { ErrorCallback } from "node-opcua-status-code";
|
|
15
|
+
import type { Request, Response } from "./common";
|
|
17
16
|
export type FindServersRequestLike = FindServersRequestOptions;
|
|
18
17
|
export type FindServersOnNetworkRequestLike = FindServersOnNetworkRequestOptions;
|
|
19
18
|
export type CreateSecureChannelCallbackFunc = (err: Error | null, secureChannel?: ClientSecureChannelLayer) => void;
|
|
@@ -60,9 +59,9 @@ export interface OPCUAClientBaseOptions {
|
|
|
60
59
|
*/
|
|
61
60
|
keepPendingSessionsOnDisconnect?: boolean;
|
|
62
61
|
/**
|
|
63
|
-
* the server certificate.
|
|
62
|
+
* the server certificate or certificate chain.
|
|
64
63
|
*/
|
|
65
|
-
serverCertificate?: Certificate;
|
|
64
|
+
serverCertificate?: Certificate | Certificate[];
|
|
66
65
|
/**
|
|
67
66
|
* default secure token lifetime in ms
|
|
68
67
|
*/
|
|
@@ -173,7 +172,7 @@ export interface GetEndpointsOptions {
|
|
|
173
172
|
localeIds?: LocaleId[];
|
|
174
173
|
profileUris?: string[];
|
|
175
174
|
}
|
|
176
|
-
export interface OPCUAClientBase extends OPCUASecureObject {
|
|
175
|
+
export interface OPCUAClientBase<Events extends OPCUAClientBaseEvents = OPCUAClientBaseEvents> extends OPCUASecureObject<Events> {
|
|
177
176
|
/**
|
|
178
177
|
* certificate Manager
|
|
179
178
|
*/
|
|
@@ -204,19 +203,19 @@ export interface OPCUAClientBase extends OPCUASecureObject {
|
|
|
204
203
|
findServersOnNetwork(callback: ResponseCallback<ServerOnNetwork[]>): void;
|
|
205
204
|
findServersOnNetwork(options: FindServersOnNetworkRequestLike, callback: ResponseCallback<ServerOnNetwork[]>): void;
|
|
206
205
|
}
|
|
207
|
-
export interface
|
|
206
|
+
export interface OPCUAClientBaseEvents {
|
|
208
207
|
/**
|
|
209
208
|
* this Event is raised when the initial connection has succeeded
|
|
210
209
|
*/
|
|
211
|
-
|
|
210
|
+
connected: [];
|
|
212
211
|
/**
|
|
213
212
|
* this Event is raised when the initial connection has failed
|
|
214
213
|
*/
|
|
215
|
-
|
|
214
|
+
connection_failed: [err: Error];
|
|
216
215
|
/**
|
|
217
216
|
* this Event is raised when a failing connection is about to be tried again
|
|
218
217
|
*/
|
|
219
|
-
|
|
218
|
+
backoff: [count: number, delay: number];
|
|
220
219
|
/**
|
|
221
220
|
* this event is raised when the client has encountered a connection failure and
|
|
222
221
|
* and is going to reconnection mode.
|
|
@@ -227,64 +226,72 @@ export interface OPCUAClientBase extends EventEmitter {
|
|
|
227
226
|
* You can intercept start_reconnection event to pause your interaction with the remote
|
|
228
227
|
* OPCUA server.
|
|
229
228
|
*/
|
|
230
|
-
|
|
229
|
+
start_reconnection: [err?: Error];
|
|
231
230
|
/**
|
|
232
231
|
* this event is raised when the client has failed one attempt to reconnect to the server
|
|
233
232
|
* This event will be raised if the socket has successfully being created to the server but
|
|
234
233
|
* if something went wrong during the reconnection process.
|
|
235
234
|
*/
|
|
236
|
-
|
|
235
|
+
reconnection_attempt_has_failed: [err: Error, message: string];
|
|
237
236
|
/**
|
|
238
237
|
* this event is raised after the client has successfully managed to re-establish the connection with
|
|
239
238
|
* the remote OPCUA Server.
|
|
240
239
|
* You can intercept after_reconnection event to resume your interaction with the remote
|
|
241
240
|
* OPCUA server.
|
|
242
241
|
*/
|
|
243
|
-
|
|
242
|
+
after_reconnection: [err?: Error | null];
|
|
244
243
|
/**
|
|
245
244
|
* the event is raised when the connection has been aborted by the remote OPCUA Server
|
|
246
245
|
*/
|
|
247
|
-
|
|
246
|
+
abort: [];
|
|
247
|
+
reconnection_canceled: [];
|
|
248
|
+
startingDelayBeforeReconnection: [duration: number];
|
|
249
|
+
reconnecting: [];
|
|
250
|
+
repairConnectionStarted: [];
|
|
251
|
+
keepalive: [];
|
|
248
252
|
/**
|
|
249
253
|
* this event is raised when the connection is closed
|
|
250
254
|
*/
|
|
251
|
-
|
|
255
|
+
close: [err?: Error | null];
|
|
252
256
|
/**
|
|
253
257
|
* this event is raised when the client is sending a message chunk to the server
|
|
254
258
|
* (advanced use only)
|
|
255
259
|
*/
|
|
256
|
-
|
|
260
|
+
send_chunk: [chunk: Buffer];
|
|
257
261
|
/**
|
|
258
262
|
* this event is raised when the client has received a new message chunk from the servers
|
|
259
263
|
* (advanced use only)
|
|
260
264
|
*/
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
265
|
+
receive_chunk: [chunk: Buffer];
|
|
266
|
+
send_request: [request: Request];
|
|
267
|
+
receive_response: [response: Response];
|
|
264
268
|
/**
|
|
265
269
|
* this event is raised when the current security token has reached 75% of its lifetime and is therefore
|
|
266
270
|
* about to expired.
|
|
267
271
|
*/
|
|
268
|
-
|
|
272
|
+
lifetime_75: [token: ChannelSecurityToken];
|
|
269
273
|
/**
|
|
270
274
|
* this event is raised after the (about ) security token as been renewed
|
|
271
275
|
* and renegotiated with the server.to expire
|
|
272
276
|
*/
|
|
273
|
-
|
|
277
|
+
security_token_renewed: [channel: ClientSecureChannelLayer, token: ChannelSecurityToken];
|
|
278
|
+
/**
|
|
279
|
+
* this event is raised when the secure channel has been created
|
|
280
|
+
*/
|
|
281
|
+
secure_channel_created: [secureChannel: ClientSecureChannelLayer];
|
|
274
282
|
/**
|
|
275
283
|
* this event is raised when the connection has been broken
|
|
276
284
|
*/
|
|
277
|
-
|
|
285
|
+
connection_lost: [];
|
|
278
286
|
/**
|
|
279
287
|
* this event is raised when a broken connection with the remote Server has been reestablished
|
|
280
288
|
*/
|
|
281
|
-
|
|
289
|
+
connection_reestablished: [];
|
|
282
290
|
/**
|
|
283
291
|
* This event is raised when a request sent to the remote OPCUA server has reach it's timeout value without
|
|
284
292
|
* a Response from the server.
|
|
285
293
|
*/
|
|
286
|
-
|
|
287
|
-
on(eventName: string | symbol, listener: (...args: any[]) => void): this;
|
|
294
|
+
timed_out_request: [request: Request];
|
|
288
295
|
}
|
|
289
296
|
export interface OPCUAClientBase {
|
|
290
297
|
readonly endpoint?: EndpointDescription;
|
|
@@ -296,7 +303,7 @@ export interface OPCUAClientBase {
|
|
|
296
303
|
readonly bytesWritten: number;
|
|
297
304
|
readonly securityMode: MessageSecurityMode;
|
|
298
305
|
readonly securityPolicy: SecurityPolicy;
|
|
299
|
-
readonly serverCertificate?: Certificate;
|
|
306
|
+
readonly serverCertificate?: Certificate | Certificate[];
|
|
300
307
|
readonly clientName: string;
|
|
301
308
|
readonly protocolVersion: 0;
|
|
302
309
|
readonly defaultSecureTokenLifetime: number;
|
|
@@ -306,8 +313,8 @@ export interface OPCUAClientBase {
|
|
|
306
313
|
readonly endpointUrl: string;
|
|
307
314
|
readonly applicationName: string;
|
|
308
315
|
}
|
|
309
|
-
export declare
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
}
|
|
316
|
+
export declare const OPCUAClientBase: {
|
|
317
|
+
registry: ObjectRegistry;
|
|
318
|
+
retryDelay: number;
|
|
319
|
+
create(options: OPCUAClientBaseOptions): OPCUAClientBase;
|
|
320
|
+
};
|
package/dist/client_base.js
CHANGED
|
@@ -2,14 +2,13 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.OPCUAClientBase = void 0;
|
|
4
4
|
const node_opcua_object_registry_1 = require("node-opcua-object-registry");
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
exports.OPCUAClientBase = {
|
|
6
|
+
registry: new node_opcua_object_registry_1.ObjectRegistry(),
|
|
7
|
+
retryDelay: 1000 * 5,
|
|
8
|
+
create(options) {
|
|
9
9
|
/* c8 ignore next*/
|
|
10
10
|
options;
|
|
11
11
|
throw new Error("Not Implemented");
|
|
12
12
|
}
|
|
13
|
-
}
|
|
14
|
-
exports.OPCUAClientBase = OPCUAClientBase;
|
|
13
|
+
};
|
|
15
14
|
//# sourceMappingURL=client_base.js.map
|
package/dist/client_base.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client_base.js","sourceRoot":"","sources":["../source/client_base.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"client_base.js","sourceRoot":"","sources":["../source/client_base.ts"],"names":[],"mappings":";;;AAQA,2EAA4D;AA0X/C,QAAA,eAAe,GAAG;IAC3B,QAAQ,EAAE,IAAI,2CAAc,EAAE;IAC9B,UAAU,EAAE,IAAI,GAAG,CAAC;IAEpB,MAAM,CAAC,OAA+B;QAClC,mBAAmB;QACnB,OAAO,CAAC;QACR,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACvC,CAAC;CACJ,CAAC"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module node-opcua-client
|
|
3
3
|
*/
|
|
4
|
-
import { EventEmitter } from "events";
|
|
5
|
-
import { DataValue, TimestampsToReturn } from "node-opcua-data-value";
|
|
6
|
-
import { ReadValueIdOptions } from "node-opcua-service-read";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { ClientMonitoredItemBase, ClientMonitoredItemOrGroupAction } from "./client_monitored_item_base";
|
|
10
|
-
import { ClientSubscription } from "./client_subscription";
|
|
4
|
+
import type { EventEmitter } from "events";
|
|
5
|
+
import { type DataValue, TimestampsToReturn } from "node-opcua-data-value";
|
|
6
|
+
import type { ReadValueIdOptions } from "node-opcua-service-read";
|
|
7
|
+
import { type MonitoringParametersOptions } from "node-opcua-types";
|
|
8
|
+
import type { Variant } from "node-opcua-variant";
|
|
9
|
+
import type { ClientMonitoredItemBase, ClientMonitoredItemOrGroupAction } from "./client_monitored_item_base";
|
|
10
|
+
import type { ClientSubscription } from "./client_subscription";
|
|
11
11
|
export interface ClientMonitoredItem extends ClientMonitoredItemBase, ClientMonitoredItemOrGroupAction, EventEmitter {
|
|
12
12
|
on(event: "changed", eventHandler: (dataValue: DataValue) => void): this;
|
|
13
13
|
on(event: "changed", eventHandler: (values: Variant[]) => void): this;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client_monitored_item.js","sourceRoot":"","sources":["../source/client_monitored_item.ts"],"names":[],"mappings":";;;AAKA,
|
|
1
|
+
{"version":3,"file":"client_monitored_item.js","sourceRoot":"","sources":["../source/client_monitored_item.ts"],"names":[],"mappings":";;;AAKA,iEAA2E;AAmB3E,MAAa,mBAAmB;IACrB,MAAM,CAAC,MAAM,CAChB,YAAgC,EAChC,aAAiC,EACjC,oBAAiD,EACjD,qBAAyC,0CAAkB,CAAC,OAAO;QAEnE,mBAAmB;QACnB,MAAM,IAAI,KAAK,CAAC,eAAe,CAAC,CAAC;IACrC,CAAC;CACJ;AAVD,kDAUC"}
|
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module node-opcua-client
|
|
3
3
|
*/
|
|
4
|
-
import { EventEmitter } from "events";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import { ClientSubscription } from "./client_subscription";
|
|
4
|
+
import type { EventEmitter } from "events";
|
|
5
|
+
import { type AttributeIds } from "node-opcua-basic-types";
|
|
6
|
+
import type { QualifiedNameLike } from "node-opcua-data-model";
|
|
7
|
+
import type { DataValue } from "node-opcua-data-value";
|
|
8
|
+
import type { ExtensionObject } from "node-opcua-extension-object";
|
|
9
|
+
import type { NodeId } from "node-opcua-nodeid";
|
|
10
|
+
import type { NumericRange } from "node-opcua-numeric-range";
|
|
11
|
+
import type { TimestampsToReturn } from "node-opcua-service-read";
|
|
12
|
+
import type { MonitoredItemCreateResult, MonitoringMode, MonitoringParameters, MonitoringParametersOptions } from "node-opcua-service-subscription";
|
|
13
|
+
import type { Callback, ErrorCallback, StatusCode } from "node-opcua-status-code";
|
|
14
|
+
import type { Variant } from "node-opcua-variant";
|
|
15
|
+
import type { ClientSubscription } from "./client_subscription";
|
|
17
16
|
export interface ClientMonitoredItemOrGroupAction {
|
|
18
17
|
modify(parameters: MonitoringParametersOptions, timestampsToReturn?: TimestampsToReturn): Promise<StatusCode>;
|
|
19
18
|
modify(parameters: MonitoringParametersOptions, callback: Callback<StatusCode>): void;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module node-opcua-client
|
|
3
3
|
*/
|
|
4
|
-
import { EventEmitter } from "events";
|
|
5
|
-
import { DataValue, TimestampsToReturn } from "node-opcua-data-value";
|
|
6
|
-
import { MonitoringParametersOptions } from "node-opcua-types";
|
|
7
|
-
import { ClientMonitoredItemBase, ClientMonitoredItemOrGroupAction } from "./client_monitored_item_base";
|
|
8
|
-
import { ClientSubscription } from "./client_subscription";
|
|
4
|
+
import type { EventEmitter } from "events";
|
|
5
|
+
import type { DataValue, TimestampsToReturn } from "node-opcua-data-value";
|
|
6
|
+
import type { MonitoringParametersOptions } from "node-opcua-types";
|
|
7
|
+
import type { ClientMonitoredItemBase, ClientMonitoredItemOrGroupAction } from "./client_monitored_item_base";
|
|
8
|
+
import type { ClientSubscription } from "./client_subscription";
|
|
9
9
|
export interface ClientMonitoredItemGroup extends EventEmitter, ClientMonitoredItemOrGroupAction {
|
|
10
10
|
on(event: "changed", eventHandler: (monitoredItem: ClientMonitoredItemBase, dataValue: DataValue, index: number) => void): this;
|
|
11
11
|
on(event: "err", eventHandler: (message: string) => void): this;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { TimestampsToReturn } from "node-opcua-data-value";
|
|
2
|
-
import { MonitoredItemModifyResult, MonitoringMode } from "node-opcua-service-subscription";
|
|
3
|
-
import { StatusCode } from "node-opcua-status-code";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { ClientSubscription } from "./client_subscription";
|
|
1
|
+
import type { TimestampsToReturn } from "node-opcua-data-value";
|
|
2
|
+
import { type MonitoredItemModifyResult, type MonitoringMode } from "node-opcua-service-subscription";
|
|
3
|
+
import { type Callback, type ErrorCallback, type StatusCode } from "node-opcua-status-code";
|
|
4
|
+
import type { MonitoringParametersOptions } from "node-opcua-types";
|
|
5
|
+
import type { ClientMonitoredItemBase } from "./client_monitored_item_base";
|
|
6
|
+
import type { ClientSubscription } from "./client_subscription";
|
|
8
7
|
export interface ClientMonitoredItemBaseEx extends ClientMonitoredItemBase {
|
|
9
8
|
internalSetMonitoringMode(monitoringMode: MonitoringMode): void;
|
|
10
9
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client_monitored_item_toolbox.js","sourceRoot":"","sources":["../source/client_monitored_item_toolbox.ts"],"names":[],"mappings":";;;;;;AAAA;;GAEG;AACH,kDAA0B;AAE1B,yDAA2C;AAE3C,uDAAiE;AACjE,qFASyC;
|
|
1
|
+
{"version":3,"file":"client_monitored_item_toolbox.js","sourceRoot":"","sources":["../source/client_monitored_item_toolbox.ts"],"names":[],"mappings":";;;;;;AAAA;;GAEG;AACH,kDAA0B;AAE1B,yDAA2C;AAE3C,uDAAiE;AACjE,qFASyC;AAUzC,MAAM,QAAQ,GAAG,IAAA,gCAAa,EAAC,UAAU,CAAC,CAAC;AAC3C,MAAM,OAAO,GAAG,IAAA,iCAAc,EAAC,UAAU,CAAC,CAAC;AAK3C;;GAEG;AACH,MAAa,0BAA0B;IAC5B,MAAM,CAAC,gBAAgB,CAC1B,YAAgC,EAChC,kBAAsC,EACtC,cAAyC,EACzC,IAAmB;QAEnB,IAAA,0BAAM,EAAC,OAAO,IAAI,KAAK,UAAU,CAAC,CAAC;QAEnC,8DAA8D;QAC9D,IAAI,CAAC,YAAY,CAAC,UAAU,EAAE,CAAC;YAC3B,MAAM,IAAI,GAAG,IAAI,KAAK,CAAC,sBAAsB,C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ACD,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC;QACrC,CAAC,CAAC,CAAC;IACP,CAAC;IAEM,MAAM,CAAC,0BAA0B,CACpC,YAAgC,EAChC,cAA2C,EAC3C,cAA8B,EAC9B,QAAgC;QAEhC,MAAM,gBAAgB,GAAG,cAAc,CAAC,GAAG,CAAC,CAAC,aAAa,EAAE,EAAE,CAAC,aAAa,CAAC,eAAe,CAAC,CAAC;QAE9F,MAAM,wBAAwB,GAAiC;YAC3D,gBAAgB;YAChB,cAAc;YACd,cAAc,EAAE,YAAY,CAAC,cAAc;SAC9C,CAAC;QAEF,MAAM,OAAO,GAAG,YAAY,CAAC,OAA4B,CAAC;QAC1D,IAAA,0BAAM,EAAC,OAAO,EAAE,yDAAyD,CAAC,CAAC;QAE3E,OAAO,CAAC,iBAAiB,CAAC,wBAAwB,EAAE,CAAC,GAAiB,EAAE,QAAoC,EAAE,EAAE;YAC5G,IAAI,GAAG,EAAE,CAAC;gBACN,OAAO,QAAQ,CAAC,GAAG,CAAC,CAAC;YACzB,CAAC;YACD,cAAc,CAAC,OAAO,CAAC,CAAC,aAAa,EAAE,EAAE;gBACrC,aAAa,CAAC,yBAAyB,CAAC,cAAc,CAAC,CAAC;YAC5D,CAAC,CAAC,CAAC;YACH,QAAQ,GAAG,QAAS,CAAC;YACrB,QAAQ,CAAC,OAAO,GAAG,QAAQ,CAAC,OAAO,IAAI,EAAE,CAAC;YAC1C,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC;QACrC,CAAC,CAAC,CAAC;IACP,CAAC;CACJ;AA1JD,gEA0JC"}
|
package/dist/client_session.d.ts
CHANGED
|
@@ -1,32 +1,28 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module node-opcua-client
|
|
3
3
|
*/
|
|
4
|
-
import { EventEmitter } from "events";
|
|
5
|
-
import { DateTime, UInt8 } from "node-opcua-basic-types";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import { Callback } from "node-opcua-status-code";
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import { ArgumentDefinition, MethodId } from "node-opcua-pseudo-session";
|
|
23
|
-
import { AggregateFunction } from "node-opcua-constants";
|
|
24
|
-
import { AggregateConfigurationOptions, HistoryReadRequest, HistoryReadResponse, HistoryReadValueIdOptions, ReadValueIdOptions } from "node-opcua-types";
|
|
25
|
-
import { ExtraDataTypeManager } from "node-opcua-client-dynamic-extension-object";
|
|
4
|
+
import type { EventEmitter } from "events";
|
|
5
|
+
import type { DateTime, UInt8 } from "node-opcua-basic-types";
|
|
6
|
+
import type { ExtraDataTypeManager } from "node-opcua-client-dynamic-extension-object";
|
|
7
|
+
import type { ServerState } from "node-opcua-common";
|
|
8
|
+
import type { AggregateFunction } from "node-opcua-constants";
|
|
9
|
+
import type { Certificate } from "node-opcua-crypto/web";
|
|
10
|
+
import type { LocalizedTextLike } from "node-opcua-data-model";
|
|
11
|
+
import type { DataValue, TimestampsToReturn } from "node-opcua-data-value";
|
|
12
|
+
import type { ExtensionObject } from "node-opcua-extension-object";
|
|
13
|
+
import type { NodeId, NodeIdLike } from "node-opcua-nodeid";
|
|
14
|
+
import { type ArgumentDefinition, type IBasicSession, type IBasicSessionBrowse, type IBasicSessionBrowseNext, type IBasicSessionCall, type IBasicSessionChangeUser, type IBasicSessionRead, type IBasicSessionTranslateBrowsePath, type IBasicSessionWrite, type MethodId, type ResponseCallback } from "node-opcua-pseudo-session";
|
|
15
|
+
import type { EndpointDescription } from "node-opcua-service-endpoints";
|
|
16
|
+
import type { HistoryReadResult } from "node-opcua-service-history";
|
|
17
|
+
import type { QueryFirstRequestOptions, QueryFirstResponse } from "node-opcua-service-query";
|
|
18
|
+
import type { CreateMonitoredItemsRequestOptions, CreateMonitoredItemsResponse, CreateSubscriptionRequestOptions, CreateSubscriptionResponse, DeleteMonitoredItemsRequestOptions, DeleteMonitoredItemsResponse, DeleteSubscriptionsRequestOptions, DeleteSubscriptionsResponse, ModifyMonitoredItemsRequestOptions, ModifyMonitoredItemsResponse, ModifySubscriptionRequestOptions, ModifySubscriptionResponse, PublishRequest, PublishResponse, RepublishRequest, RepublishResponse, SetMonitoringModeRequestOptions, SetMonitoringModeResponse, SetTriggeringRequestOptions, SetTriggeringResponse, TransferSubscriptionsRequestOptions, TransferSubscriptionsResponse } from "node-opcua-service-subscription";
|
|
19
|
+
import type { Callback, ErrorCallback, StatusCode } from "node-opcua-status-code";
|
|
20
|
+
import { type AggregateConfigurationOptions, type HistoryReadRequest, type HistoryReadResponse, type HistoryReadValueIdOptions, type ReadValueIdOptions } from "node-opcua-types";
|
|
21
|
+
import type { DataType, Variant } from "node-opcua-variant";
|
|
26
22
|
export { ExtraDataTypeManager } from "node-opcua-client-dynamic-extension-object";
|
|
27
23
|
export { ExtensionObject } from "node-opcua-extension-object";
|
|
28
24
|
export { ArgumentDefinition, CallMethodRequestLike, MethodId } from "node-opcua-pseudo-session";
|
|
29
|
-
import { ClientSubscription } from "./client_subscription";
|
|
25
|
+
import type { ClientSubscription } from "./client_subscription";
|
|
30
26
|
export interface MonitoredItemData {
|
|
31
27
|
clientHandles: Uint32Array;
|
|
32
28
|
serverHandles: Uint32Array;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client_session.js","sourceRoot":"","sources":["../source/client_session.ts"],"names":[],"mappings":";AAAA;;GAEG;;;
|
|
1
|
+
{"version":3,"file":"client_session.js","sourceRoot":"","sources":["../source/client_session.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAkEH,yGAAkF;AAAzE,kJAAA,oBAAoB,OAAA;AAE7B,2EAA8D;AAArD,8HAAA,eAAe,OAAA"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { EventEmitter } from "events";
|
|
5
5
|
import { ServerState } from "node-opcua-common";
|
|
6
|
-
import { ClientSessionImpl } from "./private/client_session_impl";
|
|
6
|
+
import type { ClientSessionImpl } from "./private/client_session_impl";
|
|
7
7
|
export interface ClientSessionKeepAliveManagerEvents {
|
|
8
8
|
on(event: "keepalive", eventHandler: (lastKnownServerState: ServerState, count: number) => void): this;
|
|
9
9
|
on(event: "failure", eventHandler: () => void): this;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @module node-opcua-client
|
|
4
|
+
*/
|
|
2
5
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
6
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
7
|
};
|
|
5
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
9
|
exports.ClientSessionKeepAliveManager = void 0;
|
|
7
|
-
/**
|
|
8
|
-
* @module node-opcua-client
|
|
9
|
-
*/
|
|
10
|
-
const events_1 = require("events");
|
|
11
10
|
const chalk_1 = __importDefault(require("chalk"));
|
|
11
|
+
const events_1 = require("events");
|
|
12
12
|
const node_opcua_assert_1 = require("node-opcua-assert");
|
|
13
|
+
const node_opcua_basic_types_1 = require("node-opcua-basic-types");
|
|
13
14
|
const node_opcua_common_1 = require("node-opcua-common");
|
|
14
15
|
const node_opcua_constants_1 = require("node-opcua-constants");
|
|
15
|
-
const node_opcua_basic_types_1 = require("node-opcua-basic-types");
|
|
16
16
|
const node_opcua_debug_1 = require("node-opcua-debug");
|
|
17
17
|
const node_opcua_nodeid_1 = require("node-opcua-nodeid");
|
|
18
18
|
const node_opcua_secure_channel_1 = require("node-opcua-secure-channel");
|
|
@@ -128,7 +128,7 @@ class ClientSessionKeepAliveManager extends events_1.EventEmitter {
|
|
|
128
128
|
* the keep alive read Variable value transaction
|
|
129
129
|
*/
|
|
130
130
|
this.emit("failure");
|
|
131
|
-
// also simulate a connection by closing the channel abruptly from our end ...
|
|
131
|
+
// also simulate a connection by closing the channel abruptly from our end ...
|
|
132
132
|
warningLog("Keep alive has failed, considering a network outage is in place, forcing a reconnection");
|
|
133
133
|
terminateConnection(session._client);
|
|
134
134
|
resolve(0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client_session_keepalive_manager.js","sourceRoot":"","sources":["../source/client_session_keepalive_manager.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"client_session_keepalive_manager.js","sourceRoot":"","sources":["../source/client_session_keepalive_manager.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;AAEH,kDAA0B;AAC1B,mCAAsC;AACtC,yDAA2C;AAC3C,mEAAsD;AACtD,yDAAgD;AAChD,+DAAmD;AAEnD,uDAAkF;AAClF,yDAAiD;AACjD,yEAAqE;AAIrE,MAAM,uBAAuB,GAAG,IAAA,gCAAY,EAAC,kCAAW,CAAC,yBAAyB,CAAC,CAAC;AAEpF,MAAM,QAAQ,GAAG,IAAA,gCAAa,EAAC,UAAU,CAAC,CAAC;AAC3C,MAAM,OAAO,GAAG,IAAA,iCAAc,EAAC,UAAU,CAAC,CAAC;AAC3C,MAAM,UAAU,GAAG,IAAA,kCAAe,EAAC,UAAU,CAAC,CAAC;AAO/C,MAAa,6BAA8B,SAAQ,qBAAY;IAC1C,OAAO,CAAoB;IACpC,OAAO,CAAkB;IACzB,WAAW,CAAS;IACpB,cAAc,CAAe;IAC7B,qBAAqB,GAAG,KAAK,CAAC;IAC/B,KAAK,GAAG,CAAC,CAAC;IACV,aAAa,CAAS;IAE7B,YAAY,OAA0B;QAClC,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,SAAS,CAAC;QACzB,IAAI,CAAC,WAAW,GAAG,CAAC,CAAC;QACrB,IAAI,CAAC,aAAa,GAAG,CAAC,CAAC;QACvB,IA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";
|
|
6
|
-
import { DiagnosticInfo } from "node-opcua-data-model";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { MonitoringMode, MonitoringParametersOptions, NotificationMessage, SetTriggeringResponse } from "node-opcua-service-subscription";
|
|
10
|
-
import { Callback, StatusCode } from "node-opcua-status-code";
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import { ClientSession, MonitoredItemData, SubscriptionId } from "./client_session";
|
|
4
|
+
import type { EventEmitter } from "events";
|
|
5
|
+
import type { Byte, Double, UInt32 } from "node-opcua-basic-types";
|
|
6
|
+
import type { DiagnosticInfo } from "node-opcua-data-model";
|
|
7
|
+
import type { IBasicSubscription } from "node-opcua-pseudo-session";
|
|
8
|
+
import type { ReadValueIdOptions, TimestampsToReturn } from "node-opcua-service-read";
|
|
9
|
+
import type { MonitoringMode, MonitoringParametersOptions, NotificationMessage, SetTriggeringResponse } from "node-opcua-service-subscription";
|
|
10
|
+
import type { Callback, ErrorCallback, StatusCode } from "node-opcua-status-code";
|
|
11
|
+
import type { ClientMonitoredItem } from "./client_monitored_item";
|
|
12
|
+
import type { ClientMonitoredItemBase } from "./client_monitored_item_base";
|
|
13
|
+
import type { ClientMonitoredItemGroup } from "./client_monitored_item_group";
|
|
14
|
+
import type { ClientSession, MonitoredItemData, SubscriptionId } from "./client_session";
|
|
16
15
|
export interface ClientSubscriptionOptions {
|
|
17
16
|
requestedPublishingInterval?: number;
|
|
18
17
|
requestedLifetimeCount?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client_subscription.js","sourceRoot":"","sources":["../source/client_subscription.ts"],"names":[],"mappings":";AAAA;;GAEG;;;
|
|
1
|
+
{"version":3,"file":"client_subscription.js","sourceRoot":"","sources":["../source/client_subscription.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AA0SH,MAAa,kBAAkB;IACpB,MAAM,CAAC,MAAM,CAAC,aAA4B,EAAE,OAAkC;QACjF,mBAAmB;QACnB,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACvC,CAAC;IACM,MAAM,CAAC,iBAAiB,GAAG,KAAK,CAAC;;AAL5C,gDAMC"}
|
package/dist/client_utils.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module node-opcua-client
|
|
3
3
|
*/
|
|
4
|
-
import { NodeIdLike } from "node-opcua-nodeid";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
4
|
+
import { type NodeIdLike } from "node-opcua-nodeid";
|
|
5
|
+
import type { IBasicSessionReadAsyncMultiple, IBasicSessionTranslateBrowsePathAsyncMultiple } from "node-opcua-pseudo-session";
|
|
6
|
+
import type { Variant } from "node-opcua-variant";
|
|
7
7
|
interface AnalogDataItemSnapshot {
|
|
8
8
|
engineeringUnits: Variant | null;
|
|
9
9
|
engineeringUnitsRange: Variant | null;
|