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.
Files changed (102) hide show
  1. package/dist/alarms_and_conditions/client_alarm_tools.d.ts +1 -1
  2. package/dist/alarms_and_conditions/client_alarm_tools.js +2 -2
  3. package/dist/alarms_and_conditions/client_alarm_tools.js.map +1 -1
  4. package/dist/alarms_and_conditions/client_tools.d.ts +3 -0
  5. package/dist/alarms_and_conditions/client_tools.js +2 -2
  6. package/dist/alarms_and_conditions/client_tools.js.map +1 -1
  7. package/dist/client_base.d.ts +47 -40
  8. package/dist/client_base.js +5 -6
  9. package/dist/client_base.js.map +1 -1
  10. package/dist/client_monitored_item.d.ts +7 -7
  11. package/dist/client_monitored_item.js.map +1 -1
  12. package/dist/client_monitored_item_base.d.ts +12 -13
  13. package/dist/client_monitored_item_group.d.ts +5 -5
  14. package/dist/client_monitored_item_toolbox.d.ts +6 -7
  15. package/dist/client_monitored_item_toolbox.js.map +1 -1
  16. package/dist/client_session.d.ts +19 -23
  17. package/dist/client_session.js.map +1 -1
  18. package/dist/client_session_keepalive_manager.d.ts +1 -1
  19. package/dist/client_session_keepalive_manager.js +6 -6
  20. package/dist/client_session_keepalive_manager.js.map +1 -1
  21. package/dist/client_subscription.d.ts +11 -12
  22. package/dist/client_subscription.js.map +1 -1
  23. package/dist/client_utils.d.ts +3 -3
  24. package/dist/client_utils.js.map +1 -1
  25. package/dist/common.d.ts +12 -12
  26. package/dist/index.d.ts +26 -27
  27. package/dist/index.js +65 -66
  28. package/dist/index.js.map +1 -1
  29. package/dist/opcua_client.d.ts +17 -19
  30. package/dist/opcua_client.js.map +1 -1
  31. package/dist/private/client_base_impl.d.ts +19 -18
  32. package/dist/private/client_base_impl.js +220 -192
  33. package/dist/private/client_base_impl.js.map +1 -1
  34. package/dist/private/client_monitored_item_group_impl.d.ts +4 -5
  35. package/dist/private/client_monitored_item_group_impl.js +1 -1
  36. package/dist/private/client_monitored_item_group_impl.js.map +1 -1
  37. package/dist/private/client_monitored_item_impl.d.ts +9 -10
  38. package/dist/private/client_monitored_item_impl.js.map +1 -1
  39. package/dist/private/client_publish_engine.d.ts +3 -3
  40. package/dist/private/client_publish_engine.js +6 -7
  41. package/dist/private/client_publish_engine.js.map +1 -1
  42. package/dist/private/client_session_impl.d.ts +24 -25
  43. package/dist/private/client_session_impl.js +14 -10
  44. package/dist/private/client_session_impl.js.map +1 -1
  45. package/dist/private/client_subscription_impl.d.ts +10 -11
  46. package/dist/private/client_subscription_impl.js +12 -11
  47. package/dist/private/client_subscription_impl.js.map +1 -1
  48. package/dist/private/i_private_client.d.ts +7 -7
  49. package/dist/private/opcua_client_impl.d.ts +12 -9
  50. package/dist/private/opcua_client_impl.js +58 -48
  51. package/dist/private/opcua_client_impl.js.map +1 -1
  52. package/dist/private/performance.js.map +1 -1
  53. package/dist/private/reconnection/client_publish_engine_reconnection.d.ts +1 -1
  54. package/dist/private/reconnection/client_publish_engine_reconnection.js +54 -43
  55. package/dist/private/reconnection/client_publish_engine_reconnection.js.map +1 -1
  56. package/dist/private/reconnection/client_reconnection.d.ts +1 -1
  57. package/dist/private/reconnection/client_subscription_reconnection.d.ts +1 -1
  58. package/dist/private/reconnection/client_subscription_reconnection.js +2 -2
  59. package/dist/private/reconnection/client_subscription_reconnection.js.map +1 -1
  60. package/dist/private/reconnection/reconnection.d.ts +4 -4
  61. package/dist/private/reconnection/reconnection.js +200 -281
  62. package/dist/private/reconnection/reconnection.js.map +1 -1
  63. package/dist/tools/findservers.d.ts +7 -2
  64. package/dist/tools/findservers.js +41 -53
  65. package/dist/tools/findservers.js.map +1 -1
  66. package/dist/tools/read_history_server_capabilities.d.ts +1 -1
  67. package/dist/tools/read_history_server_capabilities.js +9 -8
  68. package/dist/tools/read_history_server_capabilities.js.map +1 -1
  69. package/dist/user_identity_info.d.ts +1 -1
  70. package/dist/verify.js.map +1 -1
  71. package/package.json +45 -45
  72. package/source/alarms_and_conditions/client_alarm_tools.ts +14 -8
  73. package/source/alarms_and_conditions/client_tools.ts +7 -6
  74. package/source/client_base.ts +93 -79
  75. package/source/client_monitored_item.ts +7 -8
  76. package/source/client_monitored_item_base.ts +12 -14
  77. package/source/client_monitored_item_group.ts +5 -5
  78. package/source/client_monitored_item_toolbox.ts +13 -14
  79. package/source/client_session.ts +37 -40
  80. package/source/client_session_keepalive_manager.ts +7 -10
  81. package/source/client_subscription.ts +11 -12
  82. package/source/client_utils.ts +6 -6
  83. package/source/common.ts +12 -12
  84. package/source/index.ts +44 -40
  85. package/source/opcua_client.ts +24 -23
  86. package/source/private/client_base_impl.ts +329 -290
  87. package/source/private/client_monitored_item_group_impl.ts +10 -14
  88. package/source/private/client_monitored_item_impl.ts +17 -17
  89. package/source/private/client_publish_engine.ts +11 -12
  90. package/source/private/client_session_impl.ts +85 -82
  91. package/source/private/client_subscription_impl.ts +42 -41
  92. package/source/private/i_private_client.ts +8 -8
  93. package/source/private/opcua_client_impl.ts +118 -97
  94. package/source/private/performance.ts +2 -3
  95. package/source/private/reconnection/client_publish_engine_reconnection.ts +76 -68
  96. package/source/private/reconnection/client_reconnection.ts +1 -1
  97. package/source/private/reconnection/client_subscription_reconnection.ts +16 -13
  98. package/source/private/reconnection/reconnection.ts +307 -301
  99. package/source/tools/findservers.ts +43 -62
  100. package/source/tools/read_history_server_capabilities.ts +20 -22
  101. package/source/user_identity_info.ts +5 -5
  102. package/source/verify.ts +25 -25
@@ -1 +1 @@
1
- {"version":3,"file":"client_utils.js","sourceRoot":"","sources":["../source/client_utils.ts"],"names":[],"mappings":";AAAA;;GAEG;;AAyCH,4CAmDC;AA1FD,iEAAqD;AAErD,yDAA8D;AAE9D,uGAAwF;AAIxF,MAAM,gBAAgB,GAAG,IAAA,iCAAa,EAAC,aAAa,CAAC,CAAC;AAEtD,sBAAsB;AAEtB,SAAS,yBAAyB,CAAC,MAAkB,EAAE,YAAoB;IACvE,OAAO,IAAI,qDAAU,CAAC;QAClB,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AC;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 "./alarms_and_conditions/client_tools";
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 "./alarms_and_conditions/client_alarm_tools";
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 { hexDump, LogLevel, setLogLevel, setDebugLogger, setWarningLogger, setErrorLogger } from "node-opcua-debug";
49
- export { NodeId, resolveNodeId, makeNodeId, coerceNodeId, sameNodeId, ExpandedNodeId, makeExpandedNodeId, NodeIdLike, coerceExpandedNodeId } from "node-opcua-nodeid";
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 * from "node-opcua-service-filter";
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 { checkDebugFlag, make_debugLog, make_warningLog } from "node-opcua-debug";
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.make_warningLog = exports.make_debugLog = exports.checkDebugFlag = exports.DataTypeDefinition = exports.makeApplicationUrn = exports.StatusCodes = exports.StatusCode = exports.coerceExpandedNodeId = exports.makeExpandedNodeId = exports.ExpandedNodeId = exports.sameNodeId = exports.coerceNodeId = exports.makeNodeId = exports.resolveNodeId = exports.NodeId = exports.setErrorLogger = exports.setWarningLogger = exports.setDebugLogger = exports.setLogLevel = exports.LogLevel = exports.hexDump = exports.crypto_utils = exports.utils = exports.ClientSecureChannelLayer = exports.SecurityPolicy = exports.ServiceCounterDataType = exports.ServerState = exports.ClientSidePublishEngine = exports.assert = void 0;
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, "setLogLevel", { enumerable: true, get: function () { return node_opcua_debug_1.setLogLevel; } });
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, "NodeId", { enumerable: true, get: function () { return node_opcua_nodeid_1.NodeId; } });
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, "coerceExpandedNodeId", { enumerable: true, get: function () { return node_opcua_nodeid_1.coerceExpandedNodeId; } });
110
- var node_opcua_status_code_1 = require("node-opcua-status-code");
111
- Object.defineProperty(exports, "StatusCode", { enumerable: true, get: function () { return node_opcua_status_code_1.StatusCode; } });
112
- Object.defineProperty(exports, "StatusCodes", { enumerable: true, get: function () { return node_opcua_status_code_1.StatusCodes; } });
113
- __exportStar(require("node-opcua-variant"), exports);
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
- __exportStar(require("node-opcua-service-filter"), exports);
134
- __exportStar(require("node-opcua-pseudo-session"), exports);
135
- __exportStar(require("node-opcua-client-dynamic-extension-object"), exports);
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
- var node_opcua_debug_2 = require("node-opcua-debug");
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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,gDAA8B;AAC9B,iDAA+B;AAC/B,mDAAiC;AACjC,wDAAsC;AACtC,+DAA6C;AAC7C,0DAAwC;AACxC,gEAA8C;AAC9C,uEAAqD;AACrD,sDAAoC;AACpC,2EAAyD;AACzD,iDAA+B;AAC/B,2CAAyB;AACzB,uDAAqC;AACrC,6EAA2D;AAC3D,uEAAqD;AACrD,6DAA2C;AAE3C,uDAA2C;AAAlC,2GAAA,MAAM,OAAA;AACf,mDAAiC;AAEjC,yEAA0E;AAAjE,gIAAA,uBAAuB,OAAA;AAEhC,uDAAwE;AAA/D,gHAAA,WAAW,OAAA;AAAE,2HAAA,sBAAsB,OAAA;AAE5C,uEAAgH;AAAvG,2HAAA,cAAc,OAAA;AAAE,qIAAA,wBAAwB,OAAA;AAEjD,yDAA2C;AAC9B,QAAA,KAAK,GAAG,MAAM,CAAC;AAE5B,oEAAsD;AACzC,QAAA,YAAY,GAAG,YAAY,CAAC;AAEzC,qDAAoH;AAA3G,2GAAA,OAAO,OAAA;AAAE,4GAAA,QAAQ,OAAA;AAAE,+GAAA,WAAW,OAAA;AAAE,kHAAA,cAAc,OAAA;AAAE,oHAAA,gBAAgB,OAAA;AAAE,kHAAA,cAAc,OAAA;AAEzF,GAAG;AACH,uDAU2B;AATvB,2GAAA,MAAM,OAAA;AACN,kHAAA,aAAa,OAAA;AACb,+GAAA,UAAU,OAAA;AACV,iHAAA,YAAY,OAAA;AACZ,+GAAA,UAAU,OAAA;AACV,mHAAA,cAAc,OAAA;AACd,uHAAA,kBAAkB,OAAA;AAElB,yHAAA,oBAAoB,OAAA;AAExB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C;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"}
@@ -1,14 +1,14 @@
1
1
  /**
2
2
  * @module node-opcua-client
3
3
  */
4
- import { ApplicationDescription, EndpointDescription } from "node-opcua-service-endpoints";
5
- import { CallbackT, ErrorCallback, StatusCode } from "node-opcua-status-code";
6
- import { ResponseCallback } from "node-opcua-pseudo-session";
7
- import { FindServersRequestLike, GetEndpointsOptions, OPCUAClientBase, OPCUAClientBaseOptions } from "./client_base";
8
- import { ClientSession } from "./client_session";
9
- import { ClientSubscription, ClientSubscriptionOptions } from "./client_subscription";
10
- import { UserIdentityInfo } from "./user_identity_info";
11
- import { DataTypeExtractStrategy } from "node-opcua-client-dynamic-extension-object";
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 OPCUAClient extends OPCUAClientBase {
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
@@ -1 +1 @@
1
- {"version":3,"file":"opcua_client.js","sourceRoot":"","sources":["../source/opcua_client.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AASH,mEAA8D;AAqH9D,MAAa,WAAW;IACb,MAAM,CAAC,MAAM,CAAC,OAA2B;QAC5C,OAAO,IAAI,mCAAe,CAAC,OAAO,CAAC,CAAC;IACxC,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
+ {"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 { OPCUACertificateManager } from "node-opcua-certificate-manager";
10
- import { Request, Response } from "../common";
11
- import { CreateSecureChannelCallbackFunc, FindServersOnNetworkRequestLike, FindServersRequestLike, GetEndpointsOptions, OPCUAClientBase, OPCUAClientBaseOptions } from "../client_base";
12
- import { UserIdentityInfo } from "../user_identity_info";
13
- import { ClientSessionImpl } from "./client_session_impl";
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, IClientBase {
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: string | symbol, ...others: any[]): boolean;
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(...args: any[]): any;
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(session: ClientSessionImpl, callback: (err: Error | null, session?: ClientSessionImpl) => void): void;
167
- _activateSession(session: ClientSessionImpl, userIdentity: UserIdentityInfo, callback: (err: Error | null, session?: ClientSessionImpl) => void): void;
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 {};