opcua-webapi-ts 1.0.21 → 1.0.23
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/cjs/client/UaWebClient.d.ts +10 -11
- package/dist/cjs/client/UaWebClient.js +154 -174
- package/dist/cjs/client/utils/UaDataTypeDictionary.js +15 -27
- package/dist/cjs/client/utils/UaNodeReader.d.ts +1 -1
- package/dist/cjs/client/utils/UaNodeReader.js +95 -145
- package/dist/cjs/client/utils/UaObjectTypeDictionary.js +8 -15
- package/dist/cjs/client/utils/UaReferenceTypeDictionary.js +8 -15
- package/dist/cjs/common/index.d.ts +1 -1
- package/dist/cjs/common/index.js +1 -1
- package/dist/cjs/common/payload/UaBrowseDescription.d.ts +20 -0
- package/dist/cjs/common/payload/UaBrowseDescription.js +58 -0
- package/dist/cjs/common/payload/UaBrowseResult.d.ts +16 -0
- package/dist/cjs/common/payload/UaBrowseResult.js +52 -0
- package/dist/cjs/common/payload/UaCallMethodRequest.d.ts +14 -0
- package/dist/cjs/common/payload/UaCallMethodRequest.js +48 -0
- package/dist/cjs/common/payload/UaCallMethodResult.d.ts +14 -0
- package/dist/cjs/common/payload/UaCallMethodResult.js +59 -0
- package/dist/cjs/common/payload/UaHistoryReadResult.d.ts +14 -0
- package/dist/cjs/common/payload/UaHistoryReadResult.js +38 -0
- package/dist/cjs/common/payload/UaHistoryReadValueId.d.ts +14 -0
- package/dist/cjs/common/payload/UaHistoryReadValueId.js +39 -0
- package/dist/cjs/common/payload/UaPayloadMapper.d.ts +15 -0
- package/dist/cjs/common/payload/UaPayloadMapper.js +444 -0
- package/dist/cjs/common/payload/UaReadValueId.d.ts +14 -0
- package/dist/cjs/common/payload/UaReadValueId.js +39 -0
- package/dist/cjs/common/payload/UaReferenceDescription.d.ts +22 -0
- package/dist/cjs/common/payload/UaReferenceDescription.js +61 -0
- package/dist/cjs/common/payload/UaWriteValue.d.ts +16 -0
- package/dist/cjs/common/payload/UaWriteValue.js +49 -0
- package/dist/cjs/common/payload/index.d.ts +10 -0
- package/dist/cjs/common/payload/index.js +26 -0
- package/dist/cjs/common/structure/UaArgument.js +3 -3
- package/dist/cjs/common/structure/UaContentFilterElement.js +3 -3
- package/dist/cjs/common/structure/UaEUInformation.js +5 -5
- package/dist/cjs/common/structure/UaEnumValueType.js +5 -5
- package/dist/cjs/common/structure/UaHistoryData.js +3 -3
- package/dist/cjs/common/structure/UaHistoryEvent.js +3 -3
- package/dist/cjs/common/structure/UaLiteralOperand.js +3 -3
- package/dist/cjs/common/types/UaAccessLevel.d.ts +10 -0
- package/dist/cjs/common/types/UaAccessLevel.js +14 -0
- package/dist/cjs/common/types/UaExpandedNodeId.d.ts +1 -0
- package/dist/cjs/common/types/UaExpandedNodeId.js +11 -0
- package/dist/cjs/common/types/UaWriteMask.d.ts +28 -0
- package/dist/cjs/common/types/UaWriteMask.js +32 -0
- package/dist/cjs/common/types/index.d.ts +2 -1
- package/dist/cjs/common/types/index.js +2 -1
- package/dist/client/UaWebClient.d.ts +10 -11
- package/dist/client/UaWebClient.js +154 -174
- package/dist/client/utils/UaDataTypeDictionary.js +15 -27
- package/dist/client/utils/UaNodeReader.d.ts +1 -1
- package/dist/client/utils/UaNodeReader.js +95 -145
- package/dist/client/utils/UaObjectTypeDictionary.js +8 -15
- package/dist/client/utils/UaReferenceTypeDictionary.js +8 -15
- package/dist/common/index.d.ts +1 -1
- package/dist/common/index.js +1 -1
- package/dist/common/payload/UaBrowseDescription.d.ts +20 -0
- package/dist/common/payload/UaBrowseDescription.js +58 -0
- package/dist/common/payload/UaBrowseResult.d.ts +16 -0
- package/dist/common/payload/UaBrowseResult.js +52 -0
- package/dist/common/payload/UaCallMethodRequest.d.ts +14 -0
- package/dist/common/payload/UaCallMethodRequest.js +48 -0
- package/dist/common/payload/UaCallMethodResult.d.ts +14 -0
- package/dist/common/payload/UaCallMethodResult.js +59 -0
- package/dist/common/payload/UaHistoryReadResult.d.ts +14 -0
- package/dist/common/payload/UaHistoryReadResult.js +38 -0
- package/dist/common/payload/UaHistoryReadValueId.d.ts +14 -0
- package/dist/common/payload/UaHistoryReadValueId.js +39 -0
- package/dist/common/payload/UaPayloadMapper.d.ts +15 -0
- package/dist/common/payload/UaPayloadMapper.js +444 -0
- package/dist/common/payload/UaReadValueId.d.ts +14 -0
- package/dist/common/payload/UaReadValueId.js +39 -0
- package/dist/common/payload/UaReferenceDescription.d.ts +22 -0
- package/dist/common/payload/UaReferenceDescription.js +61 -0
- package/dist/common/payload/UaWriteValue.d.ts +16 -0
- package/dist/common/payload/UaWriteValue.js +49 -0
- package/dist/common/payload/index.d.ts +10 -0
- package/dist/common/payload/index.js +26 -0
- package/dist/common/structure/UaArgument.js +3 -3
- package/dist/common/structure/UaContentFilterElement.js +3 -3
- package/dist/common/structure/UaEUInformation.js +5 -5
- package/dist/common/structure/UaEnumValueType.js +5 -5
- package/dist/common/structure/UaHistoryData.js +3 -3
- package/dist/common/structure/UaHistoryEvent.js +3 -3
- package/dist/common/structure/UaLiteralOperand.js +3 -3
- package/dist/common/types/UaAccessLevel.d.ts +10 -0
- package/dist/common/types/UaAccessLevel.js +14 -0
- package/dist/common/types/UaExpandedNodeId.d.ts +1 -0
- package/dist/common/types/UaExpandedNodeId.js +11 -0
- package/dist/common/types/UaWriteMask.d.ts +28 -0
- package/dist/common/types/UaWriteMask.js +32 -0
- package/dist/common/types/index.d.ts +2 -1
- package/dist/common/types/index.js +2 -1
- package/package.json +1 -1
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./UaPayloadMapper"), exports);
|
|
18
|
+
__exportStar(require("./UaWriteValue"), exports);
|
|
19
|
+
__exportStar(require("./UaReadValueId"), exports);
|
|
20
|
+
__exportStar(require("./UaBrowseDescription"), exports);
|
|
21
|
+
__exportStar(require("./UaReferenceDescription"), exports);
|
|
22
|
+
__exportStar(require("./UaBrowseResult"), exports);
|
|
23
|
+
__exportStar(require("./UaHistoryReadValueId"), exports);
|
|
24
|
+
__exportStar(require("./UaHistoryReadResult"), exports);
|
|
25
|
+
__exportStar(require("./UaCallMethodRequest"), exports);
|
|
26
|
+
__exportStar(require("./UaCallMethodResult"), exports);
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.UaArgument = void 0;
|
|
4
4
|
const opcua_webapi_1 = require("opcua-webapi");
|
|
5
5
|
const types_1 = require("../types");
|
|
6
|
-
const
|
|
6
|
+
const payload_1 = require("../payload");
|
|
7
7
|
const nodes_1 = require("../nodes");
|
|
8
8
|
class UaArgument {
|
|
9
9
|
constructor(name, dataType, valueRank, description) {
|
|
@@ -29,7 +29,7 @@ class UaArgument {
|
|
|
29
29
|
Name: this._name,
|
|
30
30
|
DataType: this._dataType.toString(),
|
|
31
31
|
ValueRank: this._valueRank,
|
|
32
|
-
Description: (this._description) ?
|
|
32
|
+
Description: (this._description) ? payload_1.UaPayloadMapper.localizedTextToWebApi(this._description) : undefined
|
|
33
33
|
};
|
|
34
34
|
return argument;
|
|
35
35
|
}
|
|
@@ -37,7 +37,7 @@ class UaArgument {
|
|
|
37
37
|
let name = (typeof argument.Name === "string") ? argument.Name : null;
|
|
38
38
|
let dataTypeId = (0, types_1.parseUaNodeIdOrNull)(argument.DataType);
|
|
39
39
|
let valueRank = (typeof argument.ValueRank === "number") ? argument.ValueRank : -1;
|
|
40
|
-
let description = (argument.Description) ?
|
|
40
|
+
let description = (argument.Description) ? payload_1.UaPayloadMapper.localizedTextFromWebApi(argument.Description) : null;
|
|
41
41
|
if (null == dataTypeId || null == name)
|
|
42
42
|
return null;
|
|
43
43
|
return new UaArgument(name, dataTypeId, valueRank, description);
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.UaContentFilterElement = void 0;
|
|
4
4
|
const types_1 = require("../types");
|
|
5
5
|
const nodes_1 = require("../nodes");
|
|
6
|
-
const
|
|
6
|
+
const payload_1 = require("../payload");
|
|
7
7
|
class UaContentFilterElement {
|
|
8
8
|
constructor(operands, operator) {
|
|
9
9
|
this._operands = operands;
|
|
@@ -18,7 +18,7 @@ class UaContentFilterElement {
|
|
|
18
18
|
toStruct() {
|
|
19
19
|
let filterOperands = [];
|
|
20
20
|
for (let item of this._operands) {
|
|
21
|
-
filterOperands.push(
|
|
21
|
+
filterOperands.push(payload_1.UaPayloadMapper.extensionObjectToWebApi(item));
|
|
22
22
|
}
|
|
23
23
|
let element = {
|
|
24
24
|
FilterOperands: filterOperands,
|
|
@@ -31,7 +31,7 @@ class UaContentFilterElement {
|
|
|
31
31
|
return null;
|
|
32
32
|
let operands = [];
|
|
33
33
|
for (let item of element.FilterOperands) {
|
|
34
|
-
let operand =
|
|
34
|
+
let operand = payload_1.UaPayloadMapper.extensionObjectFromWebApi(item);
|
|
35
35
|
if (null == operand)
|
|
36
36
|
return null;
|
|
37
37
|
operands.push(operand);
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.UaEUInformation = void 0;
|
|
4
4
|
const opcua_webapi_1 = require("opcua-webapi");
|
|
5
5
|
const types_1 = require("../types");
|
|
6
|
-
const
|
|
6
|
+
const payload_1 = require("../payload");
|
|
7
7
|
const nodes_1 = require("../nodes");
|
|
8
8
|
class UaEUInformation {
|
|
9
9
|
constructor(unitId, displayName, description, namespaceUri) {
|
|
@@ -27,16 +27,16 @@ class UaEUInformation {
|
|
|
27
27
|
toStruct() {
|
|
28
28
|
let euInformation = {
|
|
29
29
|
UnitId: this._unitId,
|
|
30
|
-
DisplayName:
|
|
31
|
-
Description: (this._description) ?
|
|
30
|
+
DisplayName: payload_1.UaPayloadMapper.localizedTextToWebApi(this._displayName),
|
|
31
|
+
Description: (this._description) ? payload_1.UaPayloadMapper.localizedTextToWebApi(this._description) : undefined,
|
|
32
32
|
NamespaceUri: (this._namespaceUri) ? this._namespaceUri : undefined
|
|
33
33
|
};
|
|
34
34
|
return euInformation;
|
|
35
35
|
}
|
|
36
36
|
static fromStruct(euInformation) {
|
|
37
37
|
let unitId = (typeof euInformation.UnitId === "number") ? euInformation.UnitId : null;
|
|
38
|
-
let displayName =
|
|
39
|
-
let description = (euInformation.Description) ?
|
|
38
|
+
let displayName = payload_1.UaPayloadMapper.localizedTextFromWebApi(euInformation.DisplayName);
|
|
39
|
+
let description = (euInformation.Description) ? payload_1.UaPayloadMapper.localizedTextFromWebApi(euInformation.Description) : null;
|
|
40
40
|
let namespaceUri = (typeof euInformation.NamespaceUri === "string") ? euInformation.NamespaceUri : null;
|
|
41
41
|
if (null == unitId || null == displayName)
|
|
42
42
|
return null;
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.UaEnumValueType = void 0;
|
|
4
4
|
const opcua_webapi_1 = require("opcua-webapi");
|
|
5
5
|
const types_1 = require("../types");
|
|
6
|
-
const
|
|
6
|
+
const payload_1 = require("../payload");
|
|
7
7
|
const nodes_1 = require("../nodes");
|
|
8
8
|
class UaEnumValueType {
|
|
9
9
|
constructor(value, displayName, description) {
|
|
@@ -23,15 +23,15 @@ class UaEnumValueType {
|
|
|
23
23
|
toStruct() {
|
|
24
24
|
let enumValue = {
|
|
25
25
|
Value: this._value,
|
|
26
|
-
DisplayName:
|
|
27
|
-
Description:
|
|
26
|
+
DisplayName: payload_1.UaPayloadMapper.localizedTextToWebApi(this._displayName),
|
|
27
|
+
Description: payload_1.UaPayloadMapper.localizedTextToWebApi(this._description)
|
|
28
28
|
};
|
|
29
29
|
return enumValue;
|
|
30
30
|
}
|
|
31
31
|
static fromStruct(enumValueType) {
|
|
32
32
|
let value = (typeof enumValueType.Value === "number") ? enumValueType.Value : null;
|
|
33
|
-
let displayName =
|
|
34
|
-
let description =
|
|
33
|
+
let displayName = payload_1.UaPayloadMapper.localizedTextFromWebApi(enumValueType.DisplayName);
|
|
34
|
+
let description = payload_1.UaPayloadMapper.localizedTextFromWebApi(enumValueType.Description);
|
|
35
35
|
return new UaEnumValueType(value, displayName, description);
|
|
36
36
|
}
|
|
37
37
|
toExtensionObject() {
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.UaHistoryData = void 0;
|
|
4
4
|
const opcua_webapi_1 = require("opcua-webapi");
|
|
5
5
|
const types_1 = require("../types");
|
|
6
|
-
const
|
|
6
|
+
const payload_1 = require("../payload");
|
|
7
7
|
const nodes_1 = require("../nodes");
|
|
8
8
|
class UaHistoryData {
|
|
9
9
|
constructor(dataValues) {
|
|
@@ -15,7 +15,7 @@ class UaHistoryData {
|
|
|
15
15
|
toStruct() {
|
|
16
16
|
let dataValues = [];
|
|
17
17
|
for (let item of this._dataValues) {
|
|
18
|
-
dataValues.push(
|
|
18
|
+
dataValues.push(payload_1.UaPayloadMapper.dataValueToWebApi(item));
|
|
19
19
|
}
|
|
20
20
|
let historyData = { DataValues: dataValues };
|
|
21
21
|
return historyData;
|
|
@@ -24,7 +24,7 @@ class UaHistoryData {
|
|
|
24
24
|
let dataValues = [];
|
|
25
25
|
if (historyData.DataValues) {
|
|
26
26
|
for (let item of historyData.DataValues) {
|
|
27
|
-
dataValues.push(
|
|
27
|
+
dataValues.push(payload_1.UaPayloadMapper.dataValueFromWebApi(item));
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
return new UaHistoryData(dataValues);
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.UaHistoryEvent = void 0;
|
|
4
4
|
const opcua_webapi_1 = require("opcua-webapi");
|
|
5
5
|
const types_1 = require("../types");
|
|
6
|
-
const
|
|
6
|
+
const payload_1 = require("../payload");
|
|
7
7
|
const nodes_1 = require("../nodes");
|
|
8
8
|
class UaHistoryEvent {
|
|
9
9
|
constructor(events) {
|
|
@@ -17,7 +17,7 @@ class UaHistoryEvent {
|
|
|
17
17
|
for (let item of this._events) {
|
|
18
18
|
let eventFields = [];
|
|
19
19
|
for (let item2 of item.eventFields) {
|
|
20
|
-
eventFields.push(
|
|
20
|
+
eventFields.push(payload_1.UaPayloadMapper.variantToWebApi(item2));
|
|
21
21
|
}
|
|
22
22
|
let fieldList = { EventFields: eventFields };
|
|
23
23
|
events.push(fieldList);
|
|
@@ -34,7 +34,7 @@ class UaHistoryEvent {
|
|
|
34
34
|
continue;
|
|
35
35
|
let eventFields = [];
|
|
36
36
|
for (let item2 of item.EventFields) {
|
|
37
|
-
eventFields.push(
|
|
37
|
+
eventFields.push(payload_1.UaPayloadMapper.variantFromWebApi(item2));
|
|
38
38
|
}
|
|
39
39
|
events.push(new types_1.UaHistoryEventFieldList(eventFields));
|
|
40
40
|
}
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.UaLiteralOperand = void 0;
|
|
4
4
|
const opcua_webapi_1 = require("opcua-webapi");
|
|
5
5
|
const types_1 = require("../types");
|
|
6
|
-
const
|
|
6
|
+
const payload_1 = require("../payload");
|
|
7
7
|
const nodes_1 = require("../nodes");
|
|
8
8
|
class UaLiteralOperand {
|
|
9
9
|
constructor(value) {
|
|
@@ -14,7 +14,7 @@ class UaLiteralOperand {
|
|
|
14
14
|
}
|
|
15
15
|
toStruct() {
|
|
16
16
|
let operand = {
|
|
17
|
-
Value:
|
|
17
|
+
Value: payload_1.UaPayloadMapper.variantToWebApi(this._value)
|
|
18
18
|
};
|
|
19
19
|
return operand;
|
|
20
20
|
}
|
|
@@ -22,7 +22,7 @@ class UaLiteralOperand {
|
|
|
22
22
|
if (null == operand.Value)
|
|
23
23
|
return null;
|
|
24
24
|
try {
|
|
25
|
-
let value =
|
|
25
|
+
let value = payload_1.UaPayloadMapper.variantFromWebApi(operand.Value);
|
|
26
26
|
return new UaLiteralOperand(value);
|
|
27
27
|
}
|
|
28
28
|
catch (e) {
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UaAccessLevel = void 0;
|
|
4
|
+
var UaAccessLevel;
|
|
5
|
+
(function (UaAccessLevel) {
|
|
6
|
+
UaAccessLevel[UaAccessLevel["None"] = 0] = "None";
|
|
7
|
+
UaAccessLevel[UaAccessLevel["CurrentRead"] = 1] = "CurrentRead";
|
|
8
|
+
UaAccessLevel[UaAccessLevel["CurrentWrite"] = 2] = "CurrentWrite";
|
|
9
|
+
UaAccessLevel[UaAccessLevel["HistoryRead"] = 4] = "HistoryRead";
|
|
10
|
+
UaAccessLevel[UaAccessLevel["HistoryWrite"] = 8] = "HistoryWrite";
|
|
11
|
+
UaAccessLevel[UaAccessLevel["SemanticChange"] = 16] = "SemanticChange";
|
|
12
|
+
UaAccessLevel[UaAccessLevel["StatusWrite"] = 32] = "StatusWrite";
|
|
13
|
+
UaAccessLevel[UaAccessLevel["TimestampWrite"] = 64] = "TimestampWrite";
|
|
14
|
+
})(UaAccessLevel || (exports.UaAccessLevel = UaAccessLevel = {}));
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.UaExpandedNodeId = void 0;
|
|
4
4
|
exports.parseUaExpandedNodeId = parseUaExpandedNodeId;
|
|
5
|
+
exports.parseUaExpandedNodeIdOrNull = parseUaExpandedNodeIdOrNull;
|
|
5
6
|
/**
|
|
6
7
|
* @module node-opcua-nodeid
|
|
7
8
|
*/
|
|
@@ -49,3 +50,13 @@ function parseUaExpandedNodeId(value) {
|
|
|
49
50
|
let nodeId = (0, _1.parseUaNodeId)(value);
|
|
50
51
|
return new UaExpandedNodeId(nodeId, null, 0);
|
|
51
52
|
}
|
|
53
|
+
function parseUaExpandedNodeIdOrNull(value) {
|
|
54
|
+
if (!value)
|
|
55
|
+
return null;
|
|
56
|
+
try {
|
|
57
|
+
return parseUaExpandedNodeId(value);
|
|
58
|
+
}
|
|
59
|
+
catch (e) {
|
|
60
|
+
return null;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export declare enum UaWriteMask {
|
|
2
|
+
AccessLevel = 1,
|
|
3
|
+
ArrayDimensions = 2,
|
|
4
|
+
BrowseName = 4,
|
|
5
|
+
ContainsNoLoops = 8,
|
|
6
|
+
DataType = 16,
|
|
7
|
+
Description = 32,
|
|
8
|
+
DisplayName = 64,
|
|
9
|
+
EventNotifier = 128,
|
|
10
|
+
Executable = 256,
|
|
11
|
+
Historizing = 512,
|
|
12
|
+
InverseName = 1024,
|
|
13
|
+
IsAbstract = 2048,
|
|
14
|
+
MinimumSamplingInterval = 4096,
|
|
15
|
+
NodeClass = 8192,
|
|
16
|
+
NodeId = 16384,
|
|
17
|
+
Symmetric = 32768,
|
|
18
|
+
UserAccessLevel = 65536,
|
|
19
|
+
UserExecutable = 131072,
|
|
20
|
+
UserWriteMask = 262144,
|
|
21
|
+
ValueRank = 524288,
|
|
22
|
+
WriteMask = 1048576,
|
|
23
|
+
ValueForVariableType = 2097152,
|
|
24
|
+
DataTypeDefinition = 4194304,
|
|
25
|
+
RolePermissions = 8388608,
|
|
26
|
+
AccessRestrictions = 16777216,
|
|
27
|
+
AccessLevelEx = 33554432
|
|
28
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UaWriteMask = void 0;
|
|
4
|
+
var UaWriteMask;
|
|
5
|
+
(function (UaWriteMask) {
|
|
6
|
+
UaWriteMask[UaWriteMask["AccessLevel"] = 1] = "AccessLevel";
|
|
7
|
+
UaWriteMask[UaWriteMask["ArrayDimensions"] = 2] = "ArrayDimensions";
|
|
8
|
+
UaWriteMask[UaWriteMask["BrowseName"] = 4] = "BrowseName";
|
|
9
|
+
UaWriteMask[UaWriteMask["ContainsNoLoops"] = 8] = "ContainsNoLoops";
|
|
10
|
+
UaWriteMask[UaWriteMask["DataType"] = 16] = "DataType";
|
|
11
|
+
UaWriteMask[UaWriteMask["Description"] = 32] = "Description";
|
|
12
|
+
UaWriteMask[UaWriteMask["DisplayName"] = 64] = "DisplayName";
|
|
13
|
+
UaWriteMask[UaWriteMask["EventNotifier"] = 128] = "EventNotifier";
|
|
14
|
+
UaWriteMask[UaWriteMask["Executable"] = 256] = "Executable";
|
|
15
|
+
UaWriteMask[UaWriteMask["Historizing"] = 512] = "Historizing";
|
|
16
|
+
UaWriteMask[UaWriteMask["InverseName"] = 1024] = "InverseName";
|
|
17
|
+
UaWriteMask[UaWriteMask["IsAbstract"] = 2048] = "IsAbstract";
|
|
18
|
+
UaWriteMask[UaWriteMask["MinimumSamplingInterval"] = 4096] = "MinimumSamplingInterval";
|
|
19
|
+
UaWriteMask[UaWriteMask["NodeClass"] = 8192] = "NodeClass";
|
|
20
|
+
UaWriteMask[UaWriteMask["NodeId"] = 16384] = "NodeId";
|
|
21
|
+
UaWriteMask[UaWriteMask["Symmetric"] = 32768] = "Symmetric";
|
|
22
|
+
UaWriteMask[UaWriteMask["UserAccessLevel"] = 65536] = "UserAccessLevel";
|
|
23
|
+
UaWriteMask[UaWriteMask["UserExecutable"] = 131072] = "UserExecutable";
|
|
24
|
+
UaWriteMask[UaWriteMask["UserWriteMask"] = 262144] = "UserWriteMask";
|
|
25
|
+
UaWriteMask[UaWriteMask["ValueRank"] = 524288] = "ValueRank";
|
|
26
|
+
UaWriteMask[UaWriteMask["WriteMask"] = 1048576] = "WriteMask";
|
|
27
|
+
UaWriteMask[UaWriteMask["ValueForVariableType"] = 2097152] = "ValueForVariableType";
|
|
28
|
+
UaWriteMask[UaWriteMask["DataTypeDefinition"] = 4194304] = "DataTypeDefinition";
|
|
29
|
+
UaWriteMask[UaWriteMask["RolePermissions"] = 8388608] = "RolePermissions";
|
|
30
|
+
UaWriteMask[UaWriteMask["AccessRestrictions"] = 16777216] = "AccessRestrictions";
|
|
31
|
+
UaWriteMask[UaWriteMask["AccessLevelEx"] = 33554432] = "AccessLevelEx";
|
|
32
|
+
})(UaWriteMask || (exports.UaWriteMask = UaWriteMask = {}));
|
|
@@ -12,6 +12,7 @@ export * from "./UaNodeId";
|
|
|
12
12
|
export * from "./UaQuery";
|
|
13
13
|
export * from "./UaQueryFilter";
|
|
14
14
|
export * from "./UaRequestPatameters";
|
|
15
|
-
export * from "./UaServiceTypes";
|
|
16
15
|
export * from "./UaStatusCode";
|
|
17
16
|
export * from "./UaVariant";
|
|
17
|
+
export * from "./UaAccessLevel";
|
|
18
|
+
export * from "./UaWriteMask";
|
|
@@ -28,6 +28,7 @@ __exportStar(require("./UaNodeId"), exports);
|
|
|
28
28
|
__exportStar(require("./UaQuery"), exports);
|
|
29
29
|
__exportStar(require("./UaQueryFilter"), exports);
|
|
30
30
|
__exportStar(require("./UaRequestPatameters"), exports);
|
|
31
|
-
__exportStar(require("./UaServiceTypes"), exports);
|
|
32
31
|
__exportStar(require("./UaStatusCode"), exports);
|
|
33
32
|
__exportStar(require("./UaVariant"), exports);
|
|
33
|
+
__exportStar(require("./UaAccessLevel"), exports);
|
|
34
|
+
__exportStar(require("./UaWriteMask"), exports);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { DefaultApi, ViewDescription,
|
|
2
|
-
import { UaBrowseResult, UaNodeAttributes, UaVariableAttributes, UaNodeId, UaDataValue, UaVariant, UaStatusCode,
|
|
1
|
+
import { DefaultApi, ViewDescription, ApplicationDescription, BrowseDirection, EndpointDescription } from "opcua-webapi";
|
|
2
|
+
import { UaBrowseResult, UaNodeAttributes, UaVariableAttributes, UaNodeId, UaDataValue, UaVariant, UaStatusCode, UaExtensionObject, UaHistoryDataResult, UaQuery, UaObjectAttributes, UaMethodArguments, UaApplicationDescriptor, UaBrowseDescription, UaReadValueId, UaWriteValue, UaHistoryReadValueId, UaHistoryReadResult } from "../common";
|
|
3
3
|
import { UaClientConfiguration, UaClientParameters } from "..";
|
|
4
|
-
import { UaHistoryEventResult } from "../common";
|
|
4
|
+
import { UaHistoryEventResult, UaCallMethodRequest, UaCallMethodResult } from "../common";
|
|
5
5
|
export declare class UaWebClient {
|
|
6
6
|
private api;
|
|
7
7
|
private clientConfig;
|
|
@@ -15,7 +15,7 @@ export declare class UaWebClient {
|
|
|
15
15
|
browseReference(nodeId: UaNodeId, nodeClass?: number, direction?: BrowseDirection, referenceTypeId?: UaNodeId, maxReferences?: number): Promise<UaBrowseResult>;
|
|
16
16
|
browseNextByCP(continuationPoint: string): Promise<UaBrowseResult>;
|
|
17
17
|
readValues(nodeIds: Array<UaNodeId>, timestampsToReturn?: number): Promise<Array<UaDataValue>>;
|
|
18
|
-
|
|
18
|
+
writeValue(nodeId: UaNodeId, value: UaVariant): Promise<void>;
|
|
19
19
|
readNodeAttributes(nodeId: UaNodeId, returnDescription?: boolean): Promise<UaNodeAttributes>;
|
|
20
20
|
readVariableAttributes(nodeIds: Array<UaNodeId>): Promise<Array<UaVariableAttributes>>;
|
|
21
21
|
readMethodArguments(nodeId: UaNodeId): Promise<UaMethodArguments>;
|
|
@@ -25,13 +25,12 @@ export declare class UaWebClient {
|
|
|
25
25
|
historyReadRawData(nodeId: UaNodeId, startTime: Date, endTime: Date, numValuesPerNode?: number | null, continuationPoint?: string | null, returnBounds?: boolean | null, isReadModified?: boolean | null, timestampsToReturn?: number | null, releaseContinuationPoints?: boolean | null): Promise<UaHistoryDataResult>;
|
|
26
26
|
historyReadAtTime(nodeId: UaNodeId, requiredTimes: Array<Date>, useSimpleBounds?: boolean | null, continuationPoint?: string | null, timestampsToReturn?: number | null, releaseContinuationPoints?: boolean | null): Promise<UaHistoryDataResult>;
|
|
27
27
|
historyReadEvent(nodeId: UaNodeId, startTime: Date, endTime: Date, select: Array<string>, where?: UaQuery | null, numValuesPerNode?: number | null, continuationPoint?: string | null, releaseContinuationPoints?: boolean | null): Promise<UaHistoryEventResult>;
|
|
28
|
-
browse(nodesToBrowse: Array<
|
|
29
|
-
browseNext(continuationPoints: Array<string>, releaseContinuationPoints: boolean, additionalParameters?: UaClientParameters): Promise<Array<
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
historyRead(nodesToRead: Array<HistoryReadValueId>, historyReadDetails: ExtensionObject, timestampsToReturn?: number, releaseContinuationPoints?: boolean, additionalParameters?: UaClientParameters): Promise<Array<HistoryReadResult>>;
|
|
28
|
+
browse(nodesToBrowse: Array<UaBrowseDescription>, maxReferencesPerNode?: number, view?: ViewDescription, additionalParameters?: UaClientParameters): Promise<Array<UaBrowseResult>>;
|
|
29
|
+
browseNext(continuationPoints: Array<string>, releaseContinuationPoints: boolean, additionalParameters?: UaClientParameters): Promise<Array<UaBrowseResult>>;
|
|
30
|
+
read(nodesToRead: Array<UaReadValueId>, timestampsToReturn?: number, maxAge?: number, additionalParameters?: UaClientParameters): Promise<Array<UaDataValue>>;
|
|
31
|
+
write(nodesToWrite: Array<UaWriteValue>, additionalParameters?: UaClientParameters): Promise<Array<UaStatusCode>>;
|
|
32
|
+
call(methodsToCall: Array<UaCallMethodRequest>, additionalParameters?: UaClientParameters): Promise<Array<UaCallMethodResult>>;
|
|
33
|
+
historyRead(nodesToRead: Array<UaHistoryReadValueId>, historyReadDetails: UaExtensionObject, timestampsToReturn?: number, releaseContinuationPoints?: boolean, additionalParameters?: UaClientParameters): Promise<Array<UaHistoryReadResult>>;
|
|
35
34
|
findServer(endpointUrl: string, serverUris: Array<string>, localeIds?: Array<string>, additionalParameters?: UaClientParameters): Promise<Array<ApplicationDescription>>;
|
|
36
35
|
getEndpoints(endpointUrl?: string, localeIds?: Array<string>, profileUris?: Array<string>, additionalParameters?: UaClientParameters): Promise<Array<EndpointDescription>>;
|
|
37
36
|
private requestHeader;
|