node-opcua-data-model 2.56.0 → 2.62.4

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/.mocharc.yml CHANGED
@@ -1,10 +1,10 @@
1
- require:
2
- - ../../node_modules/source-map-support/register
3
- - ../../node_modules/ts-node/register
4
- - ../../node_modules/should
5
- timeout: 30000
6
- extension:
7
- - ts
8
- - js
9
- bail: true
10
- parallel: false
1
+ require:
2
+ - ../../node_modules/source-map-support/register
3
+ - ../../node_modules/ts-node/register
4
+ - ../../node_modules/should
5
+ timeout: 30000
6
+ extension:
7
+ - ts
8
+ - js
9
+ bail: true
10
+ parallel: false
package/LICENSE CHANGED
@@ -1,20 +1,20 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2014-2021 Etienne Rossignon
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy of
6
- this software and associated documentation files (the "Software"), to deal in
7
- the Software without restriction, including without limitation the rights to
8
- use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9
- the Software, and to permit persons to whom the Software is furnished to do so,
10
- subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17
- FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18
- COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19
- IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20
- CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2014-2021 Etienne Rossignon
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
6
+ this software and associated documentation files (the "Software"), to deal in
7
+ the Software without restriction, including without limitation the rights to
8
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9
+ the Software, and to permit persons to whom the Software is furnished to do so,
10
+ subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -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;
@@ -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,iBAgBX;AAhBD,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,iDAAiD;IACjD,4DAAY,CAAA;AAChB,CAAC,EAhBW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAgB5B;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,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1
  {
2
2
  "name": "node-opcua-data-model",
3
- "version": "2.56.0",
3
+ "version": "2.62.4",
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.56.0",
17
+ "node-opcua-basic-types": "2.62.4",
18
18
  "node-opcua-binary-stream": "2.55.0",
19
19
  "node-opcua-enum": "2.55.0",
20
- "node-opcua-factory": "2.56.0",
21
- "node-opcua-nodeid": "2.55.0",
20
+ "node-opcua-factory": "2.62.4",
21
+ "node-opcua-nodeid": "2.62.4",
22
22
  "node-opcua-status-code": "2.56.0",
23
- "node-opcua-utils": "2.56.0"
23
+ "node-opcua-utils": "2.60.0"
24
24
  },
25
25
  "devDependencies": {
26
- "node-opcua-packet-analyzer": "2.56.0",
26
+ "node-opcua-packet-analyzer": "2.62.4",
27
27
  "should": "^13.2.3",
28
- "source-map-support": "^0.5.20"
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": "9f6eac1c658c0d182fbe03cf58f799af468615eb"
45
+ "gitHead": "b4cb2b2e4ce2b141614dbcb02a3e385c747ac1a1"
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");
@@ -1,18 +1,18 @@
1
- /**
2
- * @module node-opcua-data-model
3
- */
4
- // tslint:disable:no-bitwise
5
-
6
- /*
7
- * This Structured DataType defines the local time that may or may not take daylight saving time
8
- * into account. Its elements are described in Table 24.
9
- * Table 24 – TimeZoneDataType Definition
10
- * Name Type Description
11
- * TimeZoneDataType structure
12
- * offset Int16 The offset in minutes from UtcTime
13
- * daylightSavingInOffset Boolean If TRUE, then daylight saving time (DST) is in effect and offset
14
- * includes the DST correction. If FALSE then the offset does not
15
- * include the DST correction and DST may or may not have
16
- * been in effect.
17
- */
18
- // todo : repair exports.TimeZoneDataType = require("./_generated_/_tuto").TimeZoneDataType;
1
+ /**
2
+ * @module node-opcua-data-model
3
+ */
4
+ // tslint:disable:no-bitwise
5
+
6
+ /*
7
+ * This Structured DataType defines the local time that may or may not take daylight saving time
8
+ * into account. Its elements are described in Table 24.
9
+ * Table 24 – TimeZoneDataType Definition
10
+ * Name Type Description
11
+ * TimeZoneDataType structure
12
+ * offset Int16 The offset in minutes from UtcTime
13
+ * daylightSavingInOffset Boolean If TRUE, then daylight saving time (DST) is in effect and offset
14
+ * includes the DST correction. If FALSE then the offset does not
15
+ * include the DST correction and DST may or may not have
16
+ * been in effect.
17
+ */
18
+ // todo : repair exports.TimeZoneDataType = require("./_generated_/_tuto").TimeZoneDataType;