node-opcua-client 2.71.0 → 2.72.2
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.d.ts +45 -43
- package/dist/alarms_and_conditions/client_alarm.js +101 -84
- package/dist/alarms_and_conditions/client_alarm.js.map +1 -1
- package/dist/alarms_and_conditions/client_alarm_list.d.ts +25 -21
- package/dist/alarms_and_conditions/client_alarm_list.js +97 -97
- package/dist/alarms_and_conditions/client_alarm_list.js.map +1 -1
- package/dist/alarms_and_conditions/client_alarm_tools.d.ts +4 -4
- package/dist/alarms_and_conditions/client_alarm_tools.js +152 -139
- package/dist/alarms_and_conditions/client_alarm_tools.js.map +1 -1
- package/dist/alarms_and_conditions/client_alarm_tools_acknowledge_all_conditions.d.ts +18 -18
- package/dist/alarms_and_conditions/client_alarm_tools_acknowledge_all_conditions.js +190 -190
- package/dist/alarms_and_conditions/client_alarm_tools_dump_event.d.ts +9 -9
- package/dist/alarms_and_conditions/client_alarm_tools_dump_event.js +73 -73
- package/dist/alarms_and_conditions/client_alarm_tools_extractConditionFields.d.ts +8 -8
- package/dist/alarms_and_conditions/client_alarm_tools_extractConditionFields.js +120 -120
- package/dist/alarms_and_conditions/client_tools.d.ts +7 -7
- package/dist/alarms_and_conditions/client_tools.js +180 -180
- package/dist/alarms_and_conditions/client_tools.js.map +1 -1
- package/dist/client_base.d.ts +294 -290
- package/dist/client_base.js +13 -13
- package/dist/client_base.js.map +1 -1
- package/dist/client_monitored_item.d.ts +21 -21
- package/dist/client_monitored_item.js +11 -11
- package/dist/client_monitored_item_base.d.ts +39 -39
- package/dist/client_monitored_item_base.js +2 -2
- package/dist/client_monitored_item_group.d.ts +18 -18
- package/dist/client_monitored_item_group.js +13 -13
- package/dist/client_monitored_item_toolbox.d.ts +15 -15
- package/dist/client_monitored_item_toolbox.js +117 -117
- package/dist/client_session.d.ts +484 -484
- package/dist/client_session.js +10 -10
- package/dist/client_session_keepalive_manager.d.ts +34 -34
- package/dist/client_session_keepalive_manager.js +150 -150
- package/dist/client_subscription.d.ts +241 -241
- package/dist/client_subscription.js +14 -14
- package/dist/client_utils.d.ts +22 -22
- package/dist/client_utils.js +88 -88
- package/dist/common.d.ts +17 -17
- package/dist/common.js +5 -5
- package/dist/index.d.ts +55 -55
- package/dist/index.js +93 -93
- package/dist/opcua_client.d.ts +132 -132
- package/dist/opcua_client.js +33 -33
- package/dist/opcua_client.js.map +1 -1
- package/dist/private/client_base_impl.d.ts +169 -169
- package/dist/private/client_base_impl.js +1324 -1316
- package/dist/private/client_base_impl.js.map +1 -1
- package/dist/private/client_monitored_item_base_impl.d.ts +3 -3
- package/dist/private/client_monitored_item_base_impl.js +4 -4
- package/dist/private/client_monitored_item_group_impl.d.ts +53 -53
- package/dist/private/client_monitored_item_group_impl.js +159 -159
- package/dist/private/client_monitored_item_impl.d.ts +93 -93
- package/dist/private/client_monitored_item_impl.js +304 -304
- package/dist/private/client_publish_engine.d.ts +62 -62
- package/dist/private/client_publish_engine.js +408 -408
- package/dist/private/client_session_impl.d.ts +621 -621
- package/dist/private/client_session_impl.js +1301 -1301
- package/dist/private/client_subscription_impl.d.ts +93 -93
- package/dist/private/client_subscription_impl.js +743 -734
- package/dist/private/client_subscription_impl.js.map +1 -1
- package/dist/private/i_private_client.d.ts +18 -18
- package/dist/private/i_private_client.js +2 -2
- package/dist/private/opcua_client_impl.d.ts +169 -169
- package/dist/private/opcua_client_impl.js +978 -978
- package/dist/reconnection.d.ts +9 -9
- package/dist/reconnection.js +362 -362
- package/dist/tools/findservers.d.ts +20 -20
- package/dist/tools/findservers.js +61 -61
- package/dist/tools/read_history_server_capabilities.d.ts +6 -6
- package/dist/tools/read_history_server_capabilities.js +99 -99
- package/dist/verify.d.ts +5 -5
- package/dist/verify.js +134 -134
- package/package.json +30 -30
- package/source/alarms_and_conditions/client_alarm.ts +21 -1
- package/source/alarms_and_conditions/client_alarm_list.ts +6 -2
- package/source/alarms_and_conditions/client_alarm_tools.ts +32 -15
- package/source/alarms_and_conditions/client_tools.ts +4 -4
- package/source/client_base.ts +6 -3
- package/source/opcua_client.ts +0 -2
- package/source/private/client_base_impl.ts +22 -13
- package/source/private/client_subscription_impl.ts +8 -0
package/dist/opcua_client.d.ts
CHANGED
|
@@ -1,132 +1,132 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module node-opcua-client
|
|
3
|
-
*/
|
|
4
|
-
import { ByteString } from "node-opcua-basic-types";
|
|
5
|
-
import { Certificate, PrivateKeyPEM } from "node-opcua-crypto";
|
|
6
|
-
import { ConnectionStrategyOptions, SecurityPolicy } from "node-opcua-secure-channel";
|
|
7
|
-
import { ApplicationDescription, EndpointDescription, UserTokenType } from "node-opcua-service-endpoints";
|
|
8
|
-
import { MessageSecurityMode } from "node-opcua-service-secure-channel";
|
|
9
|
-
import { X509IdentityTokenOptions } from "node-opcua-types";
|
|
10
|
-
import { ErrorCallback } from "node-opcua-status-code";
|
|
11
|
-
import { FindServersRequestLike, GetEndpointsOptions, OPCUAClientBase, OPCUAClientBaseOptions } from "./client_base";
|
|
12
|
-
import { ClientSession, ResponseCallback } from "./client_session";
|
|
13
|
-
import { ClientSubscription, ClientSubscriptionOptions } from "./client_subscription";
|
|
14
|
-
export interface UserIdentityInfoUserName {
|
|
15
|
-
type: UserTokenType.UserName;
|
|
16
|
-
userName: string;
|
|
17
|
-
password: string;
|
|
18
|
-
}
|
|
19
|
-
export interface UserIdentityInfoX509 extends X509IdentityTokenOptions {
|
|
20
|
-
type: UserTokenType.Certificate;
|
|
21
|
-
certificateData: ByteString;
|
|
22
|
-
privateKey: PrivateKeyPEM;
|
|
23
|
-
}
|
|
24
|
-
export interface AnonymousIdentity {
|
|
25
|
-
type: UserTokenType.Anonymous;
|
|
26
|
-
}
|
|
27
|
-
export declare type UserIdentityInfo = AnonymousIdentity | UserIdentityInfoX509 | UserIdentityInfoUserName;
|
|
28
|
-
export interface OPCUAClientOptions extends OPCUAClientBaseOptions {
|
|
29
|
-
/**
|
|
30
|
-
* the requested session timeout in CreateSession (ms)
|
|
31
|
-
*
|
|
32
|
-
* Note:
|
|
33
|
-
* - make sure that this value is large enough, especially larger than the
|
|
34
|
-
* time between two transactions to the server.
|
|
35
|
-
*
|
|
36
|
-
* - If your client establishes a subscription with the server, make sure that
|
|
37
|
-
* (maxKeepAliveCount * publishingInterval) calculated with negotiated values
|
|
38
|
-
* from the server stay by large below the session time out, as you make
|
|
39
|
-
* encountered unexpected behavior.
|
|
40
|
-
*
|
|
41
|
-
* @default 60000 - default value is 60 secondes
|
|
42
|
-
*/
|
|
43
|
-
requestedSessionTimeout?: number;
|
|
44
|
-
/**
|
|
45
|
-
* @deprecated(use endpointMustExist instead)
|
|
46
|
-
*/
|
|
47
|
-
endpoint_must_exist?: boolean;
|
|
48
|
-
/**
|
|
49
|
-
* set to false if the client should accept server endpoint mismatch
|
|
50
|
-
* @default true
|
|
51
|
-
*/
|
|
52
|
-
endpointMustExist?: boolean;
|
|
53
|
-
connectionStrategy?: ConnectionStrategyOptions;
|
|
54
|
-
/** the server certificate. */
|
|
55
|
-
serverCertificate?: Certificate;
|
|
56
|
-
/***
|
|
57
|
-
* default secure token lifetime in ms
|
|
58
|
-
*/
|
|
59
|
-
defaultSecureTokenLifetime?: number;
|
|
60
|
-
/**
|
|
61
|
-
* the security mode
|
|
62
|
-
* @default MessageSecurityMode.None
|
|
63
|
-
*/
|
|
64
|
-
securityMode?: MessageSecurityMode | string;
|
|
65
|
-
/**
|
|
66
|
-
* the security policy
|
|
67
|
-
* @default SecurityPolicy.None
|
|
68
|
-
*/
|
|
69
|
-
securityPolicy?: SecurityPolicy | string;
|
|
70
|
-
/**
|
|
71
|
-
* @default false
|
|
72
|
-
*/
|
|
73
|
-
keepSessionAlive?: boolean;
|
|
74
|
-
/**
|
|
75
|
-
* client certificate pem file.
|
|
76
|
-
* @default "certificates/client_self-signed_cert_2048.pem"
|
|
77
|
-
*/
|
|
78
|
-
certificateFile?: string;
|
|
79
|
-
/**
|
|
80
|
-
* client private key pem file.
|
|
81
|
-
* @default "certificates/client_key_2048.pem"
|
|
82
|
-
*/
|
|
83
|
-
privateKeyFile?: string;
|
|
84
|
-
/**
|
|
85
|
-
* a client name string that will be used to generate session names.
|
|
86
|
-
*/
|
|
87
|
-
clientName?: string;
|
|
88
|
-
}
|
|
89
|
-
export interface OPCUAClient extends OPCUAClientBase {
|
|
90
|
-
connect(endpointUrl: string): Promise<void>;
|
|
91
|
-
connect(endpointUrl: string, callback: ErrorCallback): void;
|
|
92
|
-
disconnect(): Promise<void>;
|
|
93
|
-
disconnect(callback: ErrorCallback): void;
|
|
94
|
-
getEndpoints(options?: GetEndpointsOptions): Promise<EndpointDescription[]>;
|
|
95
|
-
getEndpoints(options: GetEndpointsOptions, callback: ResponseCallback<EndpointDescription[]>): void;
|
|
96
|
-
getEndpoints(callback: ResponseCallback<EndpointDescription[]>): void;
|
|
97
|
-
findServers(options?: FindServersRequestLike): Promise<ApplicationDescription[]>;
|
|
98
|
-
findServers(options: FindServersRequestLike, callback: ResponseCallback<ApplicationDescription[]>): void;
|
|
99
|
-
findServers(callback: ResponseCallback<ApplicationDescription[]>): void;
|
|
100
|
-
createSession(userIdentityInfo?: UserIdentityInfo): Promise<ClientSession>;
|
|
101
|
-
createSession(userIdentityInfo: UserIdentityInfo, callback: (err: Error | null, session?: ClientSession) => void): void;
|
|
102
|
-
createSession(callback: (err: Error | null, session?: ClientSession) => void): void;
|
|
103
|
-
createSession2(userIdentityInfo?: UserIdentityInfo): Promise<ClientSession>;
|
|
104
|
-
createSession2(userIdentityInfo: UserIdentityInfo, callback: (err: Error | null, session?: ClientSession) => void): void;
|
|
105
|
-
createSession2(callback: (err: Error | null, session?: ClientSession) => void): void;
|
|
106
|
-
changeSessionIdentity(session: ClientSession, userIdentityInfo: UserIdentityInfo): Promise<void>;
|
|
107
|
-
changeSessionIdentity(session: ClientSession, userIdentityInfo: UserIdentityInfo, callback: (err?: Error) => void): void;
|
|
108
|
-
closeSession(session: ClientSession, deleteSubscriptions: boolean): Promise<void>;
|
|
109
|
-
closeSession(session: ClientSession, deleteSubscriptions: boolean, callback: (err?: Error) => void): void;
|
|
110
|
-
reactivateSession(session: ClientSession): Promise<void>;
|
|
111
|
-
reactivateSession(session: ClientSession, callback: (err?: Error) => void): void;
|
|
112
|
-
createDefaultCertificate(): Promise<void>;
|
|
113
|
-
}
|
|
114
|
-
export interface EndpointWithUserIdentity {
|
|
115
|
-
endpointUrl: string;
|
|
116
|
-
userIdentity: UserIdentityInfo;
|
|
117
|
-
}
|
|
118
|
-
export declare type WithSessionFunc = (session: ClientSession) => Promise<void>;
|
|
119
|
-
export declare type WithSessionFuncP<T> = (session: ClientSession) => Promise<T>;
|
|
120
|
-
export declare type WithSubscriptionFunc = (session: ClientSession, subscription: ClientSubscription) => Promise<void>;
|
|
121
|
-
export declare type WithSubscriptionFuncP<T> = (session: ClientSession, subscription: ClientSubscription) => Promise<T>;
|
|
122
|
-
export interface OPCUAClient {
|
|
123
|
-
withSessionAsync<T>(endpointUrl: string | EndpointWithUserIdentity, inner_func: WithSessionFuncP<T>): Promise<T>;
|
|
124
|
-
withSession(endpointUrl: string | EndpointWithUserIdentity, inner_func: (session: ClientSession, done: (err?: Error) => void) => void, callback: (err?: Error) => void): void;
|
|
125
|
-
withSubscriptionAsync<T>(endpointUrl: string | EndpointWithUserIdentity, parameters: ClientSubscriptionOptions, inner_func: WithSubscriptionFuncP<T>): Promise<T>;
|
|
126
|
-
}
|
|
127
|
-
export declare class OPCUAClient {
|
|
128
|
-
static create(options: OPCUAClientOptions): OPCUAClient;
|
|
129
|
-
static createSession(endpointUrl: string, userIdentity?: UserIdentityInfo, clientOptions?: OPCUAClientOptions): Promise<ClientSession>;
|
|
130
|
-
static set minimumRevisedSessionTimeout(minimumRevisedSessionTimeout: number);
|
|
131
|
-
static get minimumRevisedSessionTimeout(): number;
|
|
132
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @module node-opcua-client
|
|
3
|
+
*/
|
|
4
|
+
import { ByteString } from "node-opcua-basic-types";
|
|
5
|
+
import { Certificate, PrivateKeyPEM } from "node-opcua-crypto";
|
|
6
|
+
import { ConnectionStrategyOptions, SecurityPolicy } from "node-opcua-secure-channel";
|
|
7
|
+
import { ApplicationDescription, EndpointDescription, UserTokenType } from "node-opcua-service-endpoints";
|
|
8
|
+
import { MessageSecurityMode } from "node-opcua-service-secure-channel";
|
|
9
|
+
import { X509IdentityTokenOptions } from "node-opcua-types";
|
|
10
|
+
import { ErrorCallback } from "node-opcua-status-code";
|
|
11
|
+
import { FindServersRequestLike, GetEndpointsOptions, OPCUAClientBase, OPCUAClientBaseOptions } from "./client_base";
|
|
12
|
+
import { ClientSession, ResponseCallback } from "./client_session";
|
|
13
|
+
import { ClientSubscription, ClientSubscriptionOptions } from "./client_subscription";
|
|
14
|
+
export interface UserIdentityInfoUserName {
|
|
15
|
+
type: UserTokenType.UserName;
|
|
16
|
+
userName: string;
|
|
17
|
+
password: string;
|
|
18
|
+
}
|
|
19
|
+
export interface UserIdentityInfoX509 extends X509IdentityTokenOptions {
|
|
20
|
+
type: UserTokenType.Certificate;
|
|
21
|
+
certificateData: ByteString;
|
|
22
|
+
privateKey: PrivateKeyPEM;
|
|
23
|
+
}
|
|
24
|
+
export interface AnonymousIdentity {
|
|
25
|
+
type: UserTokenType.Anonymous;
|
|
26
|
+
}
|
|
27
|
+
export declare type UserIdentityInfo = AnonymousIdentity | UserIdentityInfoX509 | UserIdentityInfoUserName;
|
|
28
|
+
export interface OPCUAClientOptions extends OPCUAClientBaseOptions {
|
|
29
|
+
/**
|
|
30
|
+
* the requested session timeout in CreateSession (ms)
|
|
31
|
+
*
|
|
32
|
+
* Note:
|
|
33
|
+
* - make sure that this value is large enough, especially larger than the
|
|
34
|
+
* time between two transactions to the server.
|
|
35
|
+
*
|
|
36
|
+
* - If your client establishes a subscription with the server, make sure that
|
|
37
|
+
* (maxKeepAliveCount * publishingInterval) calculated with negotiated values
|
|
38
|
+
* from the server stay by large below the session time out, as you make
|
|
39
|
+
* encountered unexpected behavior.
|
|
40
|
+
*
|
|
41
|
+
* @default 60000 - default value is 60 secondes
|
|
42
|
+
*/
|
|
43
|
+
requestedSessionTimeout?: number;
|
|
44
|
+
/**
|
|
45
|
+
* @deprecated(use endpointMustExist instead)
|
|
46
|
+
*/
|
|
47
|
+
endpoint_must_exist?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* set to false if the client should accept server endpoint mismatch
|
|
50
|
+
* @default true
|
|
51
|
+
*/
|
|
52
|
+
endpointMustExist?: boolean;
|
|
53
|
+
connectionStrategy?: ConnectionStrategyOptions;
|
|
54
|
+
/** the server certificate. */
|
|
55
|
+
serverCertificate?: Certificate;
|
|
56
|
+
/***
|
|
57
|
+
* default secure token lifetime in ms
|
|
58
|
+
*/
|
|
59
|
+
defaultSecureTokenLifetime?: number;
|
|
60
|
+
/**
|
|
61
|
+
* the security mode
|
|
62
|
+
* @default MessageSecurityMode.None
|
|
63
|
+
*/
|
|
64
|
+
securityMode?: MessageSecurityMode | string;
|
|
65
|
+
/**
|
|
66
|
+
* the security policy
|
|
67
|
+
* @default SecurityPolicy.None
|
|
68
|
+
*/
|
|
69
|
+
securityPolicy?: SecurityPolicy | string;
|
|
70
|
+
/**
|
|
71
|
+
* @default false
|
|
72
|
+
*/
|
|
73
|
+
keepSessionAlive?: boolean;
|
|
74
|
+
/**
|
|
75
|
+
* client certificate pem file.
|
|
76
|
+
* @default "certificates/client_self-signed_cert_2048.pem"
|
|
77
|
+
*/
|
|
78
|
+
certificateFile?: string;
|
|
79
|
+
/**
|
|
80
|
+
* client private key pem file.
|
|
81
|
+
* @default "certificates/client_key_2048.pem"
|
|
82
|
+
*/
|
|
83
|
+
privateKeyFile?: string;
|
|
84
|
+
/**
|
|
85
|
+
* a client name string that will be used to generate session names.
|
|
86
|
+
*/
|
|
87
|
+
clientName?: string;
|
|
88
|
+
}
|
|
89
|
+
export interface OPCUAClient extends OPCUAClientBase {
|
|
90
|
+
connect(endpointUrl: string): Promise<void>;
|
|
91
|
+
connect(endpointUrl: string, callback: ErrorCallback): void;
|
|
92
|
+
disconnect(): Promise<void>;
|
|
93
|
+
disconnect(callback: ErrorCallback): void;
|
|
94
|
+
getEndpoints(options?: GetEndpointsOptions): Promise<EndpointDescription[]>;
|
|
95
|
+
getEndpoints(options: GetEndpointsOptions, callback: ResponseCallback<EndpointDescription[]>): void;
|
|
96
|
+
getEndpoints(callback: ResponseCallback<EndpointDescription[]>): void;
|
|
97
|
+
findServers(options?: FindServersRequestLike): Promise<ApplicationDescription[]>;
|
|
98
|
+
findServers(options: FindServersRequestLike, callback: ResponseCallback<ApplicationDescription[]>): void;
|
|
99
|
+
findServers(callback: ResponseCallback<ApplicationDescription[]>): void;
|
|
100
|
+
createSession(userIdentityInfo?: UserIdentityInfo): Promise<ClientSession>;
|
|
101
|
+
createSession(userIdentityInfo: UserIdentityInfo, callback: (err: Error | null, session?: ClientSession) => void): void;
|
|
102
|
+
createSession(callback: (err: Error | null, session?: ClientSession) => void): void;
|
|
103
|
+
createSession2(userIdentityInfo?: UserIdentityInfo): Promise<ClientSession>;
|
|
104
|
+
createSession2(userIdentityInfo: UserIdentityInfo, callback: (err: Error | null, session?: ClientSession) => void): void;
|
|
105
|
+
createSession2(callback: (err: Error | null, session?: ClientSession) => void): void;
|
|
106
|
+
changeSessionIdentity(session: ClientSession, userIdentityInfo: UserIdentityInfo): Promise<void>;
|
|
107
|
+
changeSessionIdentity(session: ClientSession, userIdentityInfo: UserIdentityInfo, callback: (err?: Error) => void): void;
|
|
108
|
+
closeSession(session: ClientSession, deleteSubscriptions: boolean): Promise<void>;
|
|
109
|
+
closeSession(session: ClientSession, deleteSubscriptions: boolean, callback: (err?: Error) => void): void;
|
|
110
|
+
reactivateSession(session: ClientSession): Promise<void>;
|
|
111
|
+
reactivateSession(session: ClientSession, callback: (err?: Error) => void): void;
|
|
112
|
+
createDefaultCertificate(): Promise<void>;
|
|
113
|
+
}
|
|
114
|
+
export interface EndpointWithUserIdentity {
|
|
115
|
+
endpointUrl: string;
|
|
116
|
+
userIdentity: UserIdentityInfo;
|
|
117
|
+
}
|
|
118
|
+
export declare type WithSessionFunc = (session: ClientSession) => Promise<void>;
|
|
119
|
+
export declare type WithSessionFuncP<T> = (session: ClientSession) => Promise<T>;
|
|
120
|
+
export declare type WithSubscriptionFunc = (session: ClientSession, subscription: ClientSubscription) => Promise<void>;
|
|
121
|
+
export declare type WithSubscriptionFuncP<T> = (session: ClientSession, subscription: ClientSubscription) => Promise<T>;
|
|
122
|
+
export interface OPCUAClient {
|
|
123
|
+
withSessionAsync<T>(endpointUrl: string | EndpointWithUserIdentity, inner_func: WithSessionFuncP<T>): Promise<T>;
|
|
124
|
+
withSession(endpointUrl: string | EndpointWithUserIdentity, inner_func: (session: ClientSession, done: (err?: Error) => void) => void, callback: (err?: Error) => void): void;
|
|
125
|
+
withSubscriptionAsync<T>(endpointUrl: string | EndpointWithUserIdentity, parameters: ClientSubscriptionOptions, inner_func: WithSubscriptionFuncP<T>): Promise<T>;
|
|
126
|
+
}
|
|
127
|
+
export declare class OPCUAClient {
|
|
128
|
+
static create(options: OPCUAClientOptions): OPCUAClient;
|
|
129
|
+
static createSession(endpointUrl: string, userIdentity?: UserIdentityInfo, clientOptions?: OPCUAClientOptions): Promise<ClientSession>;
|
|
130
|
+
static set minimumRevisedSessionTimeout(minimumRevisedSessionTimeout: number);
|
|
131
|
+
static get minimumRevisedSessionTimeout(): number;
|
|
132
|
+
}
|
package/dist/opcua_client.js
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* @module node-opcua-client
|
|
4
|
-
*/
|
|
5
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
6
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
7
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
8
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
9
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
10
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
11
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
12
|
-
});
|
|
13
|
-
};
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.OPCUAClient = void 0;
|
|
16
|
-
const opcua_client_impl_1 = require("./private/opcua_client_impl");
|
|
17
|
-
class OPCUAClient {
|
|
18
|
-
static create(options) {
|
|
19
|
-
return new opcua_client_impl_1.OPCUAClientImpl(options);
|
|
20
|
-
}
|
|
21
|
-
static createSession(endpointUrl, userIdentity, clientOptions) {
|
|
22
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
-
return opcua_client_impl_1.OPCUAClientImpl.createSession(endpointUrl, userIdentity, clientOptions);
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
static set minimumRevisedSessionTimeout(minimumRevisedSessionTimeout) {
|
|
27
|
-
opcua_client_impl_1.OPCUAClientImpl.minimumRevisedSessionTimeout = minimumRevisedSessionTimeout;
|
|
28
|
-
}
|
|
29
|
-
static get minimumRevisedSessionTimeout() {
|
|
30
|
-
return opcua_client_impl_1.OPCUAClientImpl.minimumRevisedSessionTimeout;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
exports.OPCUAClient = OPCUAClient;
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @module node-opcua-client
|
|
4
|
+
*/
|
|
5
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
6
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
7
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
8
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
9
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
10
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
11
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
12
|
+
});
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.OPCUAClient = void 0;
|
|
16
|
+
const opcua_client_impl_1 = require("./private/opcua_client_impl");
|
|
17
|
+
class OPCUAClient {
|
|
18
|
+
static create(options) {
|
|
19
|
+
return new opcua_client_impl_1.OPCUAClientImpl(options);
|
|
20
|
+
}
|
|
21
|
+
static createSession(endpointUrl, userIdentity, clientOptions) {
|
|
22
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
+
return opcua_client_impl_1.OPCUAClientImpl.createSession(endpointUrl, userIdentity, clientOptions);
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
static set minimumRevisedSessionTimeout(minimumRevisedSessionTimeout) {
|
|
27
|
+
opcua_client_impl_1.OPCUAClientImpl.minimumRevisedSessionTimeout = minimumRevisedSessionTimeout;
|
|
28
|
+
}
|
|
29
|
+
static get minimumRevisedSessionTimeout() {
|
|
30
|
+
return opcua_client_impl_1.OPCUAClientImpl.minimumRevisedSessionTimeout;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
exports.OPCUAClient = OPCUAClient;
|
|
34
34
|
//# sourceMappingURL=opcua_client.js.map
|
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;;;;;;;;;;;;AAaH,mEAA8D;
|
|
1
|
+
{"version":3,"file":"opcua_client.js","sourceRoot":"","sources":["../source/opcua_client.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;AAaH,mEAA8D;AAoK9D,MAAa,WAAW;IACb,MAAM,CAAC,MAAM,CAAC,OAA2B;QAC5C,OAAO,IAAI,mCAAe,CAAC,OAAO,CAAC,CAAC;IACxC,CAAC;IACM,MAAM,CAAO,aAAa,CAC7B,WAAmB,EACnB,YAA+B,EAC/B,aAAkC;;YAElC,OAAO,mCAAe,CAAC,aAAa,CAAC,WAAW,EAAE,YAAY,EAAE,aAAa,CAAC,CAAC;QACnF,CAAC;KAAA;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"}
|