node-opcua-data-model 2.57.0 → 2.62.5
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.
|
@@ -23,6 +23,8 @@ export declare enum AccessLevelExFlag {
|
|
|
23
23
|
NonatomicWrite = 256,
|
|
24
24
|
WriteFullArrayOnly = 512,
|
|
25
25
|
NoSubDataTypes = 1024,
|
|
26
|
+
NonVolatile = 2048,
|
|
27
|
+
Constant = 4096,
|
|
26
28
|
None = 2048
|
|
27
29
|
}
|
|
28
30
|
export declare function makeAccessLevelExFlag(str: string | number | null): AccessLevelExFlag;
|
package/dist/access_level_ex.js
CHANGED
|
@@ -30,6 +30,9 @@ var AccessLevelExFlag;
|
|
|
30
30
|
AccessLevelExFlag[AccessLevelExFlag["NonatomicWrite"] = 256] = "NonatomicWrite";
|
|
31
31
|
AccessLevelExFlag[AccessLevelExFlag["WriteFullArrayOnly"] = 512] = "WriteFullArrayOnly";
|
|
32
32
|
AccessLevelExFlag[AccessLevelExFlag["NoSubDataTypes"] = 1024] = "NoSubDataTypes";
|
|
33
|
+
// new in 1.5.1
|
|
34
|
+
AccessLevelExFlag[AccessLevelExFlag["NonVolatile"] = 2048] = "NonVolatile";
|
|
35
|
+
AccessLevelExFlag[AccessLevelExFlag["Constant"] = 4096] = "Constant";
|
|
33
36
|
// Reserved for future use. Shall always be zero.
|
|
34
37
|
AccessLevelExFlag[AccessLevelExFlag["None"] = 2048] = "None";
|
|
35
38
|
})(AccessLevelExFlag = exports.AccessLevelExFlag || (exports.AccessLevelExFlag = {}));
|
|
@@ -57,6 +60,12 @@ function accessLevelExFlagToString(accessLevelFlag) {
|
|
|
57
60
|
if (accessLevelFlag & AccessLevelExFlag.NoSubDataTypes) {
|
|
58
61
|
retVal.push("NoSubDataTypes");
|
|
59
62
|
}
|
|
63
|
+
if (accessLevelFlag & AccessLevelExFlag.NonVolatile) {
|
|
64
|
+
retVal.push("NonVolatile");
|
|
65
|
+
}
|
|
66
|
+
if (accessLevelFlag & AccessLevelExFlag.Constant) {
|
|
67
|
+
retVal.push("Constant");
|
|
68
|
+
}
|
|
60
69
|
if (retVal.length === 0) {
|
|
61
70
|
retVal.push("None");
|
|
62
71
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"access_level_ex.js","sourceRoot":"","sources":["../source/access_level_ex.ts"],"names":[],"mappings":";;;AACA,2DAAuD;AACvD,iDAA0D;AAC1D,6CAA0C;AAC1C;;;;;;;;;;;GAWG;AACH,IAAY,
|
|
1
|
+
{"version":3,"file":"access_level_ex.js","sourceRoot":"","sources":["../source/access_level_ex.ts"],"names":[],"mappings":";;;AACA,2DAAuD;AACvD,iDAA0D;AAC1D,6CAA0C;AAC1C;;;;;;;;;;;GAWG;AACH,IAAY,iBAoBX;AApBD,WAAY,iBAAiB;IACzB,uEAAkB,CAAA;IAClB,yEAAmB,CAAA;IACnB,uEAAkB,CAAA;IAClB,yEAAmB,CAAA;IACnB,8EAAqB,CAAA;IACrB,wEAAkB,CAAA;IAClB,8EAAqB,CAAA;IACrB,iBAAiB;IAEjB,6EAAoB,CAAA;IACpB,+EAAsB,CAAA;IACtB,uFAA0B,CAAA;IAC1B,gFAAsB,CAAA;IACtB,eAAe;IACf,0EAAmB,CAAA;IACnB,oEAAiB,CAAA;IAEjB,iDAAiD;IACjD,4DAAY,CAAA;AAChB,CAAC,EApBW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAoB5B;AAED,WAAW;AACX,2EAA2E;AAC3E,SAAgB,qBAAqB,CAAC,GAA2B;IAC7D,OAAO,IAAA,uBAAU,EAAC,GAAG,EAAE,iBAAiB,CAAC,IAAI,EAAE,iBAAiB,CAAsB,CAAC;AAC3F,CAAC;AAFD,sDAEC;AAED,SAAgB,mBAAmB;IAC/B,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,KAAK,CAAC,CAAC;AAC5C,CAAC;AAFD,kDAEC;AAED,SA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zB,OAAO,EAAE,QAAQ;IAEjB,YAAY,EAAE,iBAAiB,CAAC,WAAW,GAAG,iBAAiB,CAAC,YAAY;IAE5E,MAAM,EAAE,qBAAqB;IAC7B,MAAM,EAAE,uBAAuB;IAC/B,MAAM,EAAE,uBAAuB;IAC/B,MAAM,EAAE,mBAAmB;CAC9B,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-opcua-data-model",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.62.5",
|
|
4
4
|
"description": "pure nodejs OPCUA SDK - module -data-model",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "tsc -b",
|
|
@@ -14,18 +14,18 @@
|
|
|
14
14
|
"types": "./dist/index.d.ts",
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"node-opcua-assert": "2.55.0",
|
|
17
|
-
"node-opcua-basic-types": "2.
|
|
18
|
-
"node-opcua-binary-stream": "2.
|
|
19
|
-
"node-opcua-enum": "2.
|
|
20
|
-
"node-opcua-factory": "2.
|
|
21
|
-
"node-opcua-nodeid": "2.
|
|
22
|
-
"node-opcua-status-code": "2.
|
|
23
|
-
"node-opcua-utils": "2.
|
|
17
|
+
"node-opcua-basic-types": "2.62.5",
|
|
18
|
+
"node-opcua-binary-stream": "2.62.5",
|
|
19
|
+
"node-opcua-enum": "2.62.5",
|
|
20
|
+
"node-opcua-factory": "2.62.5",
|
|
21
|
+
"node-opcua-nodeid": "2.62.5",
|
|
22
|
+
"node-opcua-status-code": "2.62.5",
|
|
23
|
+
"node-opcua-utils": "2.62.5"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"node-opcua-packet-analyzer": "2.
|
|
26
|
+
"node-opcua-packet-analyzer": "2.62.5",
|
|
27
27
|
"should": "^13.2.3",
|
|
28
|
-
"source-map-support": "^0.5.
|
|
28
|
+
"source-map-support": "^0.5.21"
|
|
29
29
|
},
|
|
30
30
|
"author": "Etienne Rossignon",
|
|
31
31
|
"license": "MIT",
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"internet of things"
|
|
43
43
|
],
|
|
44
44
|
"homepage": "http://node-opcua.github.io/",
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "cb95f55c77e94127d0f9f2ab00a7e78c27b57633"
|
|
46
46
|
}
|
|
@@ -27,7 +27,11 @@ export enum AccessLevelExFlag {
|
|
|
27
27
|
NonatomicRead = 0x80, // bit 8 Indicates non-atomicity for Read access (0 means that atomicity is assured).
|
|
28
28
|
NonatomicWrite = 0x100, // bit 9 Indicates non-atomicity for Write access (0 means that atomicity is assured).
|
|
29
29
|
WriteFullArrayOnly = 0x200, // bit 10 Indicates if Write of IndexRange is supported.(0 means Write of IndexRange is supported)
|
|
30
|
-
NoSubDataTypes = 0x400, // bit 11
|
|
30
|
+
NoSubDataTypes = 0x400, // bit 11 Indicates if the Variable doesn’t allow its DataType to be subtyped (0 means the Variable accepts the defined DataType and subtypes of that DataType)
|
|
31
|
+
// new in 1.5.1
|
|
32
|
+
NonVolatile = 0x800, // bit 12 Indicates if the Variable is non-volatile (0 means it is volatile or not known to be, 1 means non-volatile
|
|
33
|
+
Constant = 0x1000, // bit 13 Indicates if the Value of the Variable can be considered constant (0 means the Value is not constant, 1 means the Value is constant)
|
|
34
|
+
|
|
31
35
|
// Reserved for future use. Shall always be zero.
|
|
32
36
|
None = 0x800
|
|
33
37
|
}
|
|
@@ -57,6 +61,12 @@ export function accessLevelExFlagToString(accessLevelFlag: AccessLevelExFlag): s
|
|
|
57
61
|
if (accessLevelFlag & AccessLevelExFlag.NoSubDataTypes) {
|
|
58
62
|
retVal.push("NoSubDataTypes");
|
|
59
63
|
}
|
|
64
|
+
if (accessLevelFlag & AccessLevelExFlag.NonVolatile) {
|
|
65
|
+
retVal.push("NonVolatile");
|
|
66
|
+
}
|
|
67
|
+
if (accessLevelFlag & AccessLevelExFlag.Constant) {
|
|
68
|
+
retVal.push("Constant");
|
|
69
|
+
}
|
|
60
70
|
|
|
61
71
|
if (retVal.length === 0) {
|
|
62
72
|
retVal.push("None");
|