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
package/dist/client_utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client_utils.js","sourceRoot":"","sources":["../source/client_utils.ts"],"names":[],"mappings":";AAAA;;GAEG;;AAyCH,4CAmDC;AA1FD,iEAAqD;AAErD,
|
|
1
|
+
{"version":3,"file":"client_utils.js","sourceRoot":"","sources":["../source/client_utils.ts"],"names":[],"mappings":";AAAA;;GAEG;;AAyCH,4CAmDC;AA1FD,iEAAqD;AAErD,yDAAmE;AAGnE,uGAA6F;AAG7F,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;AAUD;;GAEG;AACI,KAAK,UAAU,gBAAgB,CAClC,OAAuF,EACvF,MAAkB;IAElB,MAAM,WAAW,GAAG;QAChB,yBAAyB,CAAC,MAAM,EAAE,kBAAkB,CAAC;QACrD,yBAAyB,CAAC,MAAM,EAAE,SAAS,CAAC;QAC5C,yBAAyB,CAAC,MAAM,EAAE,iBAAiB,CAAC;QACpD,yBAAyB,CAAC,MAAM,EAAE,gBAAgB,CAAC;QACnD,yBAAyB,CAAC,MAAM,EAAE,YAAY,CAAC;KAClD,CAAC;IAEF,MAAM,cAAc,GAA2B;QAC3C,UAAU,EAAE,IAAI;QAChB,gBAAgB,EAAE,IAAI;QACtB,qBAAqB,EAAE,IAAI;QAC3B,eAAe,EAAE,IAAI;QACrB,cAAc,EAAE,IAAI;KACvB,CAAC;IAEF,MAAM,iBAAiB,GAAG,MAAM,OAAO,CAAC,mBAAmB,CAAC,WAAW,CAAC,CAAC;IAEzE,MAAM,OAAO,GAAwC,EAAE,CAAC;IACxD,MAAM,WAAW,GAAyB,EAAE,CAAC;IAE7C,SAAS,eAAe,CAAC,gBAAkC,EAAE,YAAoB;QAC7E,IAAI,gBAAgB,CAAC,UAAU,CAAC,MAAM,EAAE,EAAE,CAAC;YACvC,gBAAgB,CAAC,OAAO,GAAG,gBAAgB,CAAC,OAAO,IAAI,EAAE,CAAC;YAC1D,WAAW,CAAC,IAAI,CAAC;gBACb,WAAW,EAAE,oCAAY,CAAC,KAAK;gBAC/B,MAAM,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,QAAQ;aAC/C,CAAC,CAAC;YACH,OAAO,CAAC,IAAI,CACR,CAAC,UAAqB,EAAE,EAAE,CACtB,CAAE,cAAqD,CAAC,YAAY,CAAC,GAAG,UAAU,CAAC,KAAK,CAAC,KAAK,CAAC,CACtG,CAAC;QACN,CAAC;IACL,CAAC;IAED,eAAe,CAAC,iBAAiB,CAAC,CAAC,CAAC,EAAE,kBAAkB,CAAC,CAAC;IAC1D,eAAe,CAAC,iBAAiB,CAAC,CAAC,CAAC,EAAE,uBAAuB,CAAC,CAAC;IAC/D,eAAe,CAAC,iBAAiB,CAAC,CAAC,CAAC,EAAE,iBAAiB,CAAC,CAAC;IACzD,eAAe,CAAC,iBAAiB,CAAC,CAAC,CAAC,EAAE,gBAAgB,CAAC,CAAC;IACxD,eAAe,CAAC,iBAAiB,CAAC,CAAC,CAAC,EAAE,YAAY,CAAC,CAAC;IAEpD,MAAM,UAAU,GAAG,MAAM,OAAO,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;IAEnD,UAAU,CAAC,OAAO,CAAC,CAAC,MAAiB,EAAE,KAAa,EAAE,EAAE;QACpD,OAAO,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;IACtC,CAAC,CAAC,CAAC;IACH,OAAO,cAAc,CAAC;AAC1B,CAAC"}
|
package/dist/common.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module node-opcua-client
|
|
3
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";
|
|
4
|
+
import type { BrowseNextRequest, BrowseNextResponse, BrowseRequest, BrowseResponse } from "node-opcua-service-browse";
|
|
5
|
+
import type { CallRequest, CallResponse } from "node-opcua-service-call";
|
|
6
|
+
import type { FindServersOnNetworkRequest, FindServersOnNetworkResponse, FindServersRequest, FindServersResponse } from "node-opcua-service-discovery";
|
|
7
|
+
import type { GetEndpointsRequest, GetEndpointsResponse } from "node-opcua-service-endpoints";
|
|
8
|
+
import type { HistoryReadRequest, HistoryReadResponse } from "node-opcua-service-history";
|
|
9
|
+
import type { QueryFirstRequest, QueryFirstResponse, QueryNextRequest, QueryNextResponse } from "node-opcua-service-query";
|
|
10
|
+
import type { ReadRequest, ReadResponse } from "node-opcua-service-read";
|
|
11
|
+
import type { RegisterNodesRequest, RegisterNodesResponse, UnregisterNodesRequest, UnregisterNodesResponse } from "node-opcua-service-register-node";
|
|
12
|
+
import type { ActivateSessionRequest, ActivateSessionResponse, CloseSessionRequest, CloseSessionResponse, CreateSessionRequest, CreateSessionResponse } from "node-opcua-service-session";
|
|
13
|
+
import type { 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 type { TranslateBrowsePathsToNodeIdsRequest, TranslateBrowsePathsToNodeIdsResponse } from "node-opcua-service-translate-browse-path";
|
|
15
|
+
import type { WriteRequest, WriteResponse } from "node-opcua-service-write";
|
|
16
16
|
export 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
17
|
export 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/index.d.ts
CHANGED
|
@@ -20,45 +20,46 @@
|
|
|
20
20
|
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
21
21
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
22
22
|
*/
|
|
23
|
+
export * from "node-opcua-alarm-condition";
|
|
24
|
+
export { assert } from "node-opcua-assert";
|
|
25
|
+
export { ServerState, ServiceCounterDataType } from "node-opcua-common";
|
|
26
|
+
export { ClientSecureChannelLayer, ConnectionStrategyOptions, SecurityPolicy } from "node-opcua-secure-channel";
|
|
27
|
+
export * from "node-opcua-utils";
|
|
28
|
+
export * from "./alarms_and_conditions/client_alarm_tools";
|
|
29
|
+
export * from "./alarms_and_conditions/client_tools";
|
|
30
|
+
export * from "./alarms_and_conditions/client_tools";
|
|
23
31
|
export * from "./client_base";
|
|
24
|
-
export * from "./opcua_client";
|
|
25
|
-
export * from "./client_session";
|
|
26
|
-
export * from "./client_subscription";
|
|
27
|
-
export * from "./client_monitored_item_base";
|
|
28
32
|
export * from "./client_monitored_item";
|
|
33
|
+
export * from "./client_monitored_item_base";
|
|
29
34
|
export * from "./client_monitored_item_group";
|
|
30
|
-
export * from "./
|
|
35
|
+
export * from "./client_session";
|
|
36
|
+
export * from "./client_subscription";
|
|
37
|
+
export * from "./client_utils";
|
|
38
|
+
export * from "./opcua_client";
|
|
39
|
+
export { ClientSidePublishEngine } from "./private/client_publish_engine";
|
|
31
40
|
export * from "./tools/findservers";
|
|
32
41
|
export * from "./tools/read_history_server_capabilities";
|
|
33
|
-
export * from "./client_utils";
|
|
34
|
-
export * from "./verify";
|
|
35
42
|
export * from "./user_identity_info";
|
|
36
|
-
export * from "./
|
|
37
|
-
export * from "./alarms_and_conditions/client_tools";
|
|
38
|
-
export * from "node-opcua-alarm-condition";
|
|
39
|
-
export { assert } from "node-opcua-assert";
|
|
40
|
-
export * from "node-opcua-utils";
|
|
41
|
-
export { ClientSidePublishEngine } from "./private/client_publish_engine";
|
|
42
|
-
export { ServerState, ServiceCounterDataType } from "node-opcua-common";
|
|
43
|
-
export { SecurityPolicy, ClientSecureChannelLayer, ConnectionStrategyOptions } from "node-opcua-secure-channel";
|
|
43
|
+
export * from "./verify";
|
|
44
44
|
import * as utils1 from "node-opcua-utils";
|
|
45
45
|
export declare const utils: typeof utils1;
|
|
46
46
|
import * as crypto_util1 from "node-opcua-crypto/web";
|
|
47
47
|
export declare const crypto_utils: typeof crypto_util1;
|
|
48
|
-
export
|
|
49
|
-
export {
|
|
50
|
-
export { StatusCode, StatusCodes, ErrorCallback } from "node-opcua-status-code";
|
|
51
|
-
export * from "node-opcua-variant";
|
|
52
|
-
export * from "node-opcua-data-value";
|
|
53
|
-
export * from "node-opcua-data-model";
|
|
48
|
+
export * from "node-opcua-client-dynamic-extension-object";
|
|
49
|
+
export { makeApplicationUrn } from "node-opcua-common";
|
|
54
50
|
export * from "node-opcua-constants";
|
|
51
|
+
export * from "node-opcua-data-model";
|
|
52
|
+
export * from "node-opcua-data-value";
|
|
53
|
+
export { checkDebugFlag, hexDump, LogLevel, make_debugLog, make_warningLog, setDebugLogger, setErrorLogger, setLogLevel, setWarningLogger } from "node-opcua-debug";
|
|
54
|
+
export { coerceExpandedNodeId, coerceNodeId, ExpandedNodeId, makeExpandedNodeId, makeNodeId, NodeId, NodeIdLike, resolveNodeId, sameNodeId } from "node-opcua-nodeid";
|
|
55
|
+
export * from "node-opcua-pseudo-session";
|
|
55
56
|
export * from "node-opcua-secure-channel";
|
|
56
|
-
export { makeApplicationUrn } from "node-opcua-common";
|
|
57
|
-
export * from "node-opcua-service-endpoints";
|
|
58
57
|
export * from "node-opcua-service-browse";
|
|
59
58
|
export * from "node-opcua-service-call";
|
|
60
59
|
export * from "node-opcua-service-discovery";
|
|
61
60
|
export * from "node-opcua-service-endpoints";
|
|
61
|
+
export * from "node-opcua-service-endpoints";
|
|
62
|
+
export * from "node-opcua-service-filter";
|
|
62
63
|
export * from "node-opcua-service-history";
|
|
63
64
|
export * from "node-opcua-service-query";
|
|
64
65
|
export * from "node-opcua-service-read";
|
|
@@ -67,8 +68,6 @@ export * from "node-opcua-service-session";
|
|
|
67
68
|
export * from "node-opcua-service-subscription";
|
|
68
69
|
export * from "node-opcua-service-translate-browse-path";
|
|
69
70
|
export * from "node-opcua-service-write";
|
|
70
|
-
export
|
|
71
|
-
export * from "node-opcua-pseudo-session";
|
|
72
|
-
export * from "node-opcua-client-dynamic-extension-object";
|
|
71
|
+
export { ErrorCallback, StatusCode, StatusCodes } from "node-opcua-status-code";
|
|
73
72
|
export { DataTypeDefinition } from "node-opcua-types";
|
|
74
|
-
export
|
|
73
|
+
export * from "node-opcua-variant";
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,26 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
/*!
|
|
3
|
+
* The MIT License (MIT)
|
|
4
|
+
* Copyright (c) 2022-2025 Sterfive SAS - 833264583 RCS ORLEANS - France (https://www.sterfive.com)
|
|
5
|
+
* Copyright (c) 2014-2022 Etienne Rossignon
|
|
6
|
+
*
|
|
7
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
8
|
+
* this software and associated documentation files (the "Software"), to deal in
|
|
9
|
+
* the Software without restriction, including without limitation the rights to
|
|
10
|
+
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
11
|
+
* the Software, and to permit persons to whom the Software is furnished to do so,
|
|
12
|
+
* subject to the following conditions:
|
|
13
|
+
*
|
|
14
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
15
|
+
* copies or substantial portions of the Software.
|
|
16
|
+
*
|
|
17
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
18
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
19
|
+
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
20
|
+
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
21
|
+
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
22
|
+
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
23
|
+
*/
|
|
2
24
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
25
|
if (k2 === undefined) k2 = k;
|
|
4
26
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -36,92 +58,72 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
58
|
};
|
|
37
59
|
})();
|
|
38
60
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.
|
|
40
|
-
/*!
|
|
41
|
-
* The MIT License (MIT)
|
|
42
|
-
* Copyright (c) 2022-2025 Sterfive SAS - 833264583 RCS ORLEANS - France (https://www.sterfive.com)
|
|
43
|
-
* Copyright (c) 2014-2022 Etienne Rossignon
|
|
44
|
-
*
|
|
45
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
46
|
-
* this software and associated documentation files (the "Software"), to deal in
|
|
47
|
-
* the Software without restriction, including without limitation the rights to
|
|
48
|
-
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
49
|
-
* the Software, and to permit persons to whom the Software is furnished to do so,
|
|
50
|
-
* subject to the following conditions:
|
|
51
|
-
*
|
|
52
|
-
* The above copyright notice and this permission notice shall be included in all
|
|
53
|
-
* copies or substantial portions of the Software.
|
|
54
|
-
*
|
|
55
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
56
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
57
|
-
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
58
|
-
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
59
|
-
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
60
|
-
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
61
|
-
*/
|
|
62
|
-
__exportStar(require("./client_base"), exports);
|
|
63
|
-
__exportStar(require("./opcua_client"), exports);
|
|
64
|
-
__exportStar(require("./client_session"), exports);
|
|
65
|
-
__exportStar(require("./client_subscription"), exports);
|
|
66
|
-
__exportStar(require("./client_monitored_item_base"), exports);
|
|
67
|
-
__exportStar(require("./client_monitored_item"), exports);
|
|
68
|
-
__exportStar(require("./client_monitored_item_group"), exports);
|
|
69
|
-
__exportStar(require("./alarms_and_conditions/client_tools"), exports);
|
|
70
|
-
__exportStar(require("./tools/findservers"), exports);
|
|
71
|
-
__exportStar(require("./tools/read_history_server_capabilities"), exports);
|
|
72
|
-
__exportStar(require("./client_utils"), exports);
|
|
73
|
-
__exportStar(require("./verify"), exports);
|
|
74
|
-
__exportStar(require("./user_identity_info"), exports);
|
|
75
|
-
__exportStar(require("./alarms_and_conditions/client_alarm_tools"), exports);
|
|
76
|
-
__exportStar(require("./alarms_and_conditions/client_tools"), exports);
|
|
61
|
+
exports.DataTypeDefinition = exports.StatusCodes = exports.StatusCode = exports.sameNodeId = exports.resolveNodeId = exports.NodeId = exports.makeNodeId = exports.makeExpandedNodeId = exports.ExpandedNodeId = exports.coerceNodeId = exports.coerceExpandedNodeId = exports.setWarningLogger = exports.setLogLevel = exports.setErrorLogger = exports.setDebugLogger = exports.make_warningLog = exports.make_debugLog = exports.LogLevel = exports.hexDump = exports.checkDebugFlag = exports.makeApplicationUrn = exports.crypto_utils = exports.utils = exports.ClientSidePublishEngine = exports.SecurityPolicy = exports.ClientSecureChannelLayer = exports.ServiceCounterDataType = exports.ServerState = exports.assert = void 0;
|
|
77
62
|
__exportStar(require("node-opcua-alarm-condition"), exports);
|
|
78
63
|
var node_opcua_assert_1 = require("node-opcua-assert");
|
|
79
64
|
Object.defineProperty(exports, "assert", { enumerable: true, get: function () { return node_opcua_assert_1.assert; } });
|
|
80
|
-
__exportStar(require("node-opcua-utils"), exports);
|
|
81
|
-
var client_publish_engine_1 = require("./private/client_publish_engine");
|
|
82
|
-
Object.defineProperty(exports, "ClientSidePublishEngine", { enumerable: true, get: function () { return client_publish_engine_1.ClientSidePublishEngine; } });
|
|
83
65
|
var node_opcua_common_1 = require("node-opcua-common");
|
|
84
66
|
Object.defineProperty(exports, "ServerState", { enumerable: true, get: function () { return node_opcua_common_1.ServerState; } });
|
|
85
67
|
Object.defineProperty(exports, "ServiceCounterDataType", { enumerable: true, get: function () { return node_opcua_common_1.ServiceCounterDataType; } });
|
|
86
68
|
var node_opcua_secure_channel_1 = require("node-opcua-secure-channel");
|
|
87
|
-
Object.defineProperty(exports, "SecurityPolicy", { enumerable: true, get: function () { return node_opcua_secure_channel_1.SecurityPolicy; } });
|
|
88
69
|
Object.defineProperty(exports, "ClientSecureChannelLayer", { enumerable: true, get: function () { return node_opcua_secure_channel_1.ClientSecureChannelLayer; } });
|
|
70
|
+
Object.defineProperty(exports, "SecurityPolicy", { enumerable: true, get: function () { return node_opcua_secure_channel_1.SecurityPolicy; } });
|
|
71
|
+
__exportStar(require("node-opcua-utils"), exports);
|
|
72
|
+
__exportStar(require("./alarms_and_conditions/client_alarm_tools"), exports);
|
|
73
|
+
__exportStar(require("./alarms_and_conditions/client_tools"), exports);
|
|
74
|
+
__exportStar(require("./alarms_and_conditions/client_tools"), exports);
|
|
75
|
+
__exportStar(require("./client_base"), exports);
|
|
76
|
+
__exportStar(require("./client_monitored_item"), exports);
|
|
77
|
+
__exportStar(require("./client_monitored_item_base"), exports);
|
|
78
|
+
__exportStar(require("./client_monitored_item_group"), exports);
|
|
79
|
+
__exportStar(require("./client_session"), exports);
|
|
80
|
+
__exportStar(require("./client_subscription"), exports);
|
|
81
|
+
__exportStar(require("./client_utils"), exports);
|
|
82
|
+
__exportStar(require("./opcua_client"), exports);
|
|
83
|
+
var client_publish_engine_1 = require("./private/client_publish_engine");
|
|
84
|
+
Object.defineProperty(exports, "ClientSidePublishEngine", { enumerable: true, get: function () { return client_publish_engine_1.ClientSidePublishEngine; } });
|
|
85
|
+
__exportStar(require("./tools/findservers"), exports);
|
|
86
|
+
__exportStar(require("./tools/read_history_server_capabilities"), exports);
|
|
87
|
+
__exportStar(require("./user_identity_info"), exports);
|
|
88
|
+
__exportStar(require("./verify"), exports);
|
|
89
89
|
const utils1 = __importStar(require("node-opcua-utils"));
|
|
90
90
|
exports.utils = utils1;
|
|
91
91
|
const crypto_util1 = __importStar(require("node-opcua-crypto/web"));
|
|
92
92
|
exports.crypto_utils = crypto_util1;
|
|
93
|
+
__exportStar(require("node-opcua-client-dynamic-extension-object"), exports);
|
|
94
|
+
var node_opcua_common_2 = require("node-opcua-common");
|
|
95
|
+
Object.defineProperty(exports, "makeApplicationUrn", { enumerable: true, get: function () { return node_opcua_common_2.makeApplicationUrn; } });
|
|
96
|
+
__exportStar(require("node-opcua-constants"), exports);
|
|
97
|
+
__exportStar(require("node-opcua-data-model"), exports);
|
|
98
|
+
__exportStar(require("node-opcua-data-value"), exports);
|
|
93
99
|
var node_opcua_debug_1 = require("node-opcua-debug");
|
|
100
|
+
Object.defineProperty(exports, "checkDebugFlag", { enumerable: true, get: function () { return node_opcua_debug_1.checkDebugFlag; } });
|
|
94
101
|
Object.defineProperty(exports, "hexDump", { enumerable: true, get: function () { return node_opcua_debug_1.hexDump; } });
|
|
95
102
|
Object.defineProperty(exports, "LogLevel", { enumerable: true, get: function () { return node_opcua_debug_1.LogLevel; } });
|
|
96
|
-
Object.defineProperty(exports, "
|
|
103
|
+
Object.defineProperty(exports, "make_debugLog", { enumerable: true, get: function () { return node_opcua_debug_1.make_debugLog; } });
|
|
104
|
+
Object.defineProperty(exports, "make_warningLog", { enumerable: true, get: function () { return node_opcua_debug_1.make_warningLog; } });
|
|
97
105
|
Object.defineProperty(exports, "setDebugLogger", { enumerable: true, get: function () { return node_opcua_debug_1.setDebugLogger; } });
|
|
98
|
-
Object.defineProperty(exports, "setWarningLogger", { enumerable: true, get: function () { return node_opcua_debug_1.setWarningLogger; } });
|
|
99
106
|
Object.defineProperty(exports, "setErrorLogger", { enumerable: true, get: function () { return node_opcua_debug_1.setErrorLogger; } });
|
|
107
|
+
Object.defineProperty(exports, "setLogLevel", { enumerable: true, get: function () { return node_opcua_debug_1.setLogLevel; } });
|
|
108
|
+
Object.defineProperty(exports, "setWarningLogger", { enumerable: true, get: function () { return node_opcua_debug_1.setWarningLogger; } });
|
|
100
109
|
///
|
|
101
110
|
var node_opcua_nodeid_1 = require("node-opcua-nodeid");
|
|
102
|
-
Object.defineProperty(exports, "
|
|
103
|
-
Object.defineProperty(exports, "resolveNodeId", { enumerable: true, get: function () { return node_opcua_nodeid_1.resolveNodeId; } });
|
|
104
|
-
Object.defineProperty(exports, "makeNodeId", { enumerable: true, get: function () { return node_opcua_nodeid_1.makeNodeId; } });
|
|
111
|
+
Object.defineProperty(exports, "coerceExpandedNodeId", { enumerable: true, get: function () { return node_opcua_nodeid_1.coerceExpandedNodeId; } });
|
|
105
112
|
Object.defineProperty(exports, "coerceNodeId", { enumerable: true, get: function () { return node_opcua_nodeid_1.coerceNodeId; } });
|
|
106
|
-
Object.defineProperty(exports, "sameNodeId", { enumerable: true, get: function () { return node_opcua_nodeid_1.sameNodeId; } });
|
|
107
113
|
Object.defineProperty(exports, "ExpandedNodeId", { enumerable: true, get: function () { return node_opcua_nodeid_1.ExpandedNodeId; } });
|
|
108
114
|
Object.defineProperty(exports, "makeExpandedNodeId", { enumerable: true, get: function () { return node_opcua_nodeid_1.makeExpandedNodeId; } });
|
|
109
|
-
Object.defineProperty(exports, "
|
|
110
|
-
|
|
111
|
-
Object.defineProperty(exports, "
|
|
112
|
-
Object.defineProperty(exports, "
|
|
113
|
-
__exportStar(require("node-opcua-
|
|
114
|
-
__exportStar(require("node-opcua-data-value"), exports);
|
|
115
|
-
__exportStar(require("node-opcua-data-model"), exports);
|
|
116
|
-
__exportStar(require("node-opcua-constants"), exports);
|
|
115
|
+
Object.defineProperty(exports, "makeNodeId", { enumerable: true, get: function () { return node_opcua_nodeid_1.makeNodeId; } });
|
|
116
|
+
Object.defineProperty(exports, "NodeId", { enumerable: true, get: function () { return node_opcua_nodeid_1.NodeId; } });
|
|
117
|
+
Object.defineProperty(exports, "resolveNodeId", { enumerable: true, get: function () { return node_opcua_nodeid_1.resolveNodeId; } });
|
|
118
|
+
Object.defineProperty(exports, "sameNodeId", { enumerable: true, get: function () { return node_opcua_nodeid_1.sameNodeId; } });
|
|
119
|
+
__exportStar(require("node-opcua-pseudo-session"), exports);
|
|
117
120
|
__exportStar(require("node-opcua-secure-channel"), exports);
|
|
118
|
-
var node_opcua_common_2 = require("node-opcua-common");
|
|
119
|
-
Object.defineProperty(exports, "makeApplicationUrn", { enumerable: true, get: function () { return node_opcua_common_2.makeApplicationUrn; } });
|
|
120
|
-
__exportStar(require("node-opcua-service-endpoints"), exports);
|
|
121
121
|
__exportStar(require("node-opcua-service-browse"), exports);
|
|
122
122
|
__exportStar(require("node-opcua-service-call"), exports);
|
|
123
123
|
__exportStar(require("node-opcua-service-discovery"), exports);
|
|
124
124
|
__exportStar(require("node-opcua-service-endpoints"), exports);
|
|
125
|
+
__exportStar(require("node-opcua-service-endpoints"), exports);
|
|
126
|
+
__exportStar(require("node-opcua-service-filter"), exports);
|
|
125
127
|
__exportStar(require("node-opcua-service-history"), exports);
|
|
126
128
|
__exportStar(require("node-opcua-service-query"), exports);
|
|
127
129
|
__exportStar(require("node-opcua-service-read"), exports);
|
|
@@ -130,13 +132,10 @@ __exportStar(require("node-opcua-service-session"), exports);
|
|
|
130
132
|
__exportStar(require("node-opcua-service-subscription"), exports);
|
|
131
133
|
__exportStar(require("node-opcua-service-translate-browse-path"), exports);
|
|
132
134
|
__exportStar(require("node-opcua-service-write"), exports);
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
135
|
+
var node_opcua_status_code_1 = require("node-opcua-status-code");
|
|
136
|
+
Object.defineProperty(exports, "StatusCode", { enumerable: true, get: function () { return node_opcua_status_code_1.StatusCode; } });
|
|
137
|
+
Object.defineProperty(exports, "StatusCodes", { enumerable: true, get: function () { return node_opcua_status_code_1.StatusCodes; } });
|
|
136
138
|
var node_opcua_types_1 = require("node-opcua-types");
|
|
137
139
|
Object.defineProperty(exports, "DataTypeDefinition", { enumerable: true, get: function () { return node_opcua_types_1.DataTypeDefinition; } });
|
|
138
|
-
|
|
139
|
-
Object.defineProperty(exports, "checkDebugFlag", { enumerable: true, get: function () { return node_opcua_debug_2.checkDebugFlag; } });
|
|
140
|
-
Object.defineProperty(exports, "make_debugLog", { enumerable: true, get: function () { return node_opcua_debug_2.make_debugLog; } });
|
|
141
|
-
Object.defineProperty(exports, "make_warningLog", { enumerable: true, get: function () { return node_opcua_debug_2.make_warningLog; } });
|
|
140
|
+
__exportStar(require("node-opcua-variant"), exports);
|
|
142
141
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../source/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../source/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,6DAA2C;AAC3C,uDAA2C;AAAlC,2GAAA,MAAM,OAAA;AACf,uDAAwE;AAA/D,gHAAA,WAAW,OAAA;AAAE,2HAAA,sBAAsB,OAAA;AAC5C,uEAAgH;AAAvG,qIAAA,wBAAwB,OAAA;AAA6B,2HAAA,cAAc,OAAA;AAC5E,mDAAiC;AACjC,6EAA2D;AAC3D,uEAAqD;AACrD,uEAAqD;AACrD,gDAA8B;AAC9B,0DAAwC;AACxC,+DAA6C;AAC7C,gEAA8C;AAC9C,mDAAiC;AACjC,wDAAsC;AACtC,iDAA+B;AAC/B,iDAA+B;AAC/B,yEAA0E;AAAjE,gIAAA,uBAAuB,OAAA;AAChC,sDAAoC;AACpC,2EAAyD;AACzD,uDAAqC;AACrC,2CAAyB;AAEzB,yDAA2C;AAC9B,QAAA,KAAK,GAAG,MAAM,CAAC;AAE5B,oEAAsD;AACzC,QAAA,YAAY,GAAG,YAAY,CAAC;AAEzC,6EAA2D;AAC3D,uDAAuD;AAA9C,uHAAA,kBAAkB,OAAA;AAC3B,uDAAqC;AACrC,wDAAsC;AACtC,wDAAsC;AACtC,qDAU0B;AATtB,kHAAA,cAAc,OAAA;AACd,2GAAA,OAAO,OAAA;AACP,4GAAA,QAAQ,OAAA;AACR,iHAAA,aAAa,OAAA;AACb,mHAAA,eAAe,OAAA;AACf,kHAAA,cAAc,OAAA;AACd,kHAAA,cAAc,OAAA;AACd,+GAAA,WAAW,OAAA;AACX,oHAAA,gBAAgB,OAAA;AAEpB,GAAG;AACH,uDAU2B;AATvB,yHAAA,oBAAoB,OAAA;AACpB,iHAAA,YAAY,OAAA;AACZ,mHAAA,cAAc,OAAA;AACd,uHAAA,kBAAkB,OAAA;AAClB,+GAAA,UAAU,OAAA;AACV,2GAAA,MAAM,OAAA;AAEN,kHAAA,aAAa,OAAA;AACb,+GAAA,UAAU,OAAA;AAEd,4DAA0C;AAC1C,4DAA0C;AAC1C,4DAA0C;AAC1C,0DAAwC;AACxC,+DAA6C;AAC7C,+DAA6C;AAC7C,+DAA6C;AAC7C,4DAA0C;AAC1C,6DAA2C;AAC3C,2DAAyC;AACzC,0DAAwC;AACxC,oEAAkD;AAClD,6DAA2C;AAC3C,kEAAgD;AAChD,2EAAyD;AACzD,2DAAyC;AACzC,iEAAgF;AAAxD,oHAAA,UAAU,OAAA;AAAE,qHAAA,WAAW,OAAA;AAC/C,qDAAsD;AAA7C,sHAAA,kBAAkB,OAAA;AAC3B,qDAAmC"}
|
package/dist/opcua_client.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module node-opcua-client
|
|
3
3
|
*/
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
4
|
+
import type { DataTypeExtractStrategy } from "node-opcua-client-dynamic-extension-object";
|
|
5
|
+
import type { ResponseCallback } from "node-opcua-pseudo-session";
|
|
6
|
+
import type { ApplicationDescription, EndpointDescription } from "node-opcua-service-endpoints";
|
|
7
|
+
import type { CallbackT, ErrorCallback, StatusCode } from "node-opcua-status-code";
|
|
8
|
+
import type { FindServersRequestLike, GetEndpointsOptions, OPCUAClientBase, OPCUAClientBaseEvents, OPCUAClientBaseOptions } from "./client_base";
|
|
9
|
+
import type { ClientSession } from "./client_session";
|
|
10
|
+
import type { ClientSubscription, ClientSubscriptionOptions } from "./client_subscription";
|
|
11
|
+
import type { UserIdentityInfo } from "./user_identity_info";
|
|
12
12
|
export interface OPCUAClientOptions extends OPCUAClientBaseOptions {
|
|
13
13
|
/**
|
|
14
14
|
* the requested session timeout in CreateSession (ms)
|
|
@@ -40,7 +40,15 @@ export interface OPCUAClientOptions extends OPCUAClientBaseOptions {
|
|
|
40
40
|
*/
|
|
41
41
|
dataTypeExtractStrategy?: DataTypeExtractStrategy;
|
|
42
42
|
}
|
|
43
|
-
export interface
|
|
43
|
+
export interface EndpointWithUserIdentity {
|
|
44
|
+
endpointUrl: string;
|
|
45
|
+
userIdentity: UserIdentityInfo;
|
|
46
|
+
}
|
|
47
|
+
export type WithSessionFunc = (session: ClientSession) => Promise<void>;
|
|
48
|
+
export type WithSessionFuncP<T> = (session: ClientSession) => Promise<T>;
|
|
49
|
+
export type WithSubscriptionFunc = (session: ClientSession, subscription: ClientSubscription) => Promise<void>;
|
|
50
|
+
export type WithSubscriptionFuncP<T> = (session: ClientSession, subscription: ClientSubscription) => Promise<T>;
|
|
51
|
+
export interface OPCUAClient<Events extends OPCUAClientBaseEvents = OPCUAClientBaseEvents> extends OPCUAClientBase<Events> {
|
|
44
52
|
connect(endpointUrl: string): Promise<void>;
|
|
45
53
|
connect(endpointUrl: string, callback: ErrorCallback): void;
|
|
46
54
|
disconnect(): Promise<void>;
|
|
@@ -65,16 +73,6 @@ export interface OPCUAClient extends OPCUAClientBase {
|
|
|
65
73
|
reactivateSession(session: ClientSession): Promise<void>;
|
|
66
74
|
reactivateSession(session: ClientSession, callback: (err?: Error) => void): void;
|
|
67
75
|
createDefaultCertificate(): Promise<void>;
|
|
68
|
-
}
|
|
69
|
-
export interface EndpointWithUserIdentity {
|
|
70
|
-
endpointUrl: string;
|
|
71
|
-
userIdentity: UserIdentityInfo;
|
|
72
|
-
}
|
|
73
|
-
export type WithSessionFunc = (session: ClientSession) => Promise<void>;
|
|
74
|
-
export type WithSessionFuncP<T> = (session: ClientSession) => Promise<T>;
|
|
75
|
-
export type WithSubscriptionFunc = (session: ClientSession, subscription: ClientSubscription) => Promise<void>;
|
|
76
|
-
export type WithSubscriptionFuncP<T> = (session: ClientSession, subscription: ClientSubscription) => Promise<T>;
|
|
77
|
-
export interface OPCUAClient {
|
|
78
76
|
/**
|
|
79
77
|
*
|
|
80
78
|
* @param endpointUrl
|
package/dist/opcua_client.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"opcua_client.js","sourceRoot":"","sources":["../source/opcua_client.ts"],"names":[],"mappings":";AAAA;;GAEG;;;
|
|
1
|
+
{"version":3,"file":"opcua_client.js","sourceRoot":"","sources":["../source/opcua_client.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAeH,mEAA8D;AAgH9D,MAAa,WAAW;IACb,MAAM,CAAC,MAAM,CAAC,OAA2B;QAC5C,OAAO,IAAI,mCAAe,CAAC,OAAO,CAA2B,CAAC;IAClE,CAAC;IACM,MAAM,CAAC,KAAK,CAAC,aAAa,CAC7B,WAAmB,EACnB,YAA+B,EAC/B,aAAkC;QAElC,OAAO,mCAAe,CAAC,aAAa,CAAC,WAAW,EAAE,YAAY,EAAE,aAAa,CAAC,CAAC;IACnF,CAAC;IACM,MAAM,KAAK,4BAA4B,CAAC,4BAAoC;QAC/E,mCAAe,CAAC,4BAA4B,GAAG,4BAA4B,CAAC;IAChF,CAAC;IACM,MAAM,KAAK,4BAA4B;QAC1C,OAAO,mCAAe,CAAC,4BAA4B,CAAC;IACxD,CAAC;CACJ;AAjBD,kCAiBC"}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
+
import { type OPCUACertificateManager } from "node-opcua-certificate-manager";
|
|
1
2
|
import { OPCUASecureObject } from "node-opcua-common";
|
|
2
|
-
import { Certificate } from "node-opcua-crypto/web";
|
|
3
|
-
import { IBasicTransportSettings, ResponseCallback } from "node-opcua-pseudo-session";
|
|
4
|
-
import { ClientSecureChannelLayer, ConnectionStrategy, ConnectionStrategyOptions, SecurityPolicy } from "node-opcua-secure-channel";
|
|
5
|
-
import { ServerOnNetwork } from "node-opcua-service-discovery";
|
|
6
|
-
import { ApplicationDescription, EndpointDescription } from "node-opcua-service-endpoints";
|
|
3
|
+
import { type Certificate } from "node-opcua-crypto/web";
|
|
4
|
+
import type { IBasicTransportSettings, ResponseCallback } from "node-opcua-pseudo-session";
|
|
5
|
+
import { ClientSecureChannelLayer, type ConnectionStrategy, type ConnectionStrategyOptions, type SecurityPolicy } from "node-opcua-secure-channel";
|
|
6
|
+
import { type ServerOnNetwork } from "node-opcua-service-discovery";
|
|
7
|
+
import { type ApplicationDescription, type EndpointDescription } from "node-opcua-service-endpoints";
|
|
7
8
|
import { MessageSecurityMode } from "node-opcua-service-secure-channel";
|
|
8
|
-
import { ErrorCallback } from "node-opcua-status-code";
|
|
9
|
-
import {
|
|
10
|
-
import { Request, Response } from "../common";
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import { IClientBase } from "./i_private_client";
|
|
9
|
+
import { type ErrorCallback } from "node-opcua-status-code";
|
|
10
|
+
import { type CreateSecureChannelCallbackFunc, type FindServersOnNetworkRequestLike, type FindServersRequestLike, type GetEndpointsOptions, OPCUAClientBase, type OPCUAClientBaseEvents, type OPCUAClientBaseOptions } from "../client_base";
|
|
11
|
+
import type { Request, Response } from "../common";
|
|
12
|
+
import type { UserIdentityInfo } from "../user_identity_info";
|
|
13
|
+
import type { ClientSessionImpl } from "./client_session_impl";
|
|
14
|
+
import type { IClientBase } from "./i_private_client";
|
|
15
15
|
type InternalClientState = "uninitialized" | "disconnected" | "connecting" | "connected" | "panic" | "reconnecting" | "reconnecting_newchannel_connected" | "disconnecting";
|
|
16
16
|
/**
|
|
17
17
|
* @internal
|
|
18
18
|
*/
|
|
19
|
-
export declare class ClientBaseImpl extends OPCUASecureObject implements OPCUAClientBase
|
|
19
|
+
export declare class ClientBaseImpl<Events extends OPCUAClientBaseEvents = OPCUAClientBaseEvents> extends OPCUASecureObject<Events> implements OPCUAClientBase<Events>, IClientBase {
|
|
20
20
|
#private;
|
|
21
21
|
/**
|
|
22
22
|
* total number of requests that been canceled due to timeout
|
|
@@ -48,7 +48,7 @@ export declare class ClientBaseImpl extends OPCUASecureObject implements OPCUACl
|
|
|
48
48
|
get bytesWritten(): number;
|
|
49
49
|
securityMode: MessageSecurityMode;
|
|
50
50
|
securityPolicy: SecurityPolicy;
|
|
51
|
-
serverCertificate?: Certificate;
|
|
51
|
+
serverCertificate?: Certificate | Certificate[];
|
|
52
52
|
clientName: string;
|
|
53
53
|
protocolVersion: 0;
|
|
54
54
|
defaultSecureTokenLifetime: number;
|
|
@@ -81,7 +81,7 @@ export declare class ClientBaseImpl extends OPCUASecureObject implements OPCUACl
|
|
|
81
81
|
clientCertificateManager: OPCUACertificateManager;
|
|
82
82
|
isUnusable(): boolean;
|
|
83
83
|
protected _setInternalState(internalState: InternalClientState): void;
|
|
84
|
-
emit(eventName:
|
|
84
|
+
emit<K>(eventName: K, ...others: unknown[]): boolean;
|
|
85
85
|
constructor(options?: OPCUAClientBaseOptions);
|
|
86
86
|
private _cancel_reconnection;
|
|
87
87
|
_recreate_secure_channel(callback: ErrorCallback): void;
|
|
@@ -134,7 +134,8 @@ export declare class ClientBaseImpl extends OPCUASecureObject implements OPCUACl
|
|
|
134
134
|
findServersOnNetwork(options: FindServersOnNetworkRequestLike, callback: ResponseCallback<ServerOnNetwork[]>): void;
|
|
135
135
|
_removeSession(session: ClientSessionImpl): void;
|
|
136
136
|
private _closeSession;
|
|
137
|
-
closeSession(
|
|
137
|
+
closeSession(session: ClientSessionImpl, deleteSubscriptions: boolean): Promise<void>;
|
|
138
|
+
closeSession(session: ClientSessionImpl, deleteSubscriptions: boolean, callback: ErrorCallback): void;
|
|
138
139
|
disconnect(): Promise<void>;
|
|
139
140
|
disconnect(callback: ErrorCallback): void;
|
|
140
141
|
_on_connection_reestablished(callback: ErrorCallback): void;
|
|
@@ -163,7 +164,7 @@ export declare class ClientBaseImpl extends OPCUASecureObject implements OPCUACl
|
|
|
163
164
|
* @internal
|
|
164
165
|
* @private
|
|
165
166
|
*/
|
|
166
|
-
__createSession_step2(
|
|
167
|
-
_activateSession(
|
|
167
|
+
__createSession_step2(_session: ClientSessionImpl, _callback: (err: Error | null, session?: ClientSessionImpl) => void): void;
|
|
168
|
+
_activateSession(_session: ClientSessionImpl, _userIdentity: UserIdentityInfo, _callback: (err: Error | null, session?: ClientSessionImpl) => void): void;
|
|
168
169
|
}
|
|
169
170
|
export {};
|