node-opcua-data-model 2.55.0 → 2.56.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.
- package/dist/_make_flag.d.ts +1 -1
- package/dist/_make_flag.js.map +1 -1
- package/dist/access_level.js.map +1 -1
- package/dist/access_level_ex.js +2 -2
- package/dist/access_level_ex.js.map +1 -1
- package/dist/access_restrictions.js.map +1 -1
- package/dist/attributeIds.js.map +1 -1
- package/dist/data_encoding.d.ts +1 -1
- package/dist/data_encoding.js +2 -2
- package/dist/data_encoding.js.map +1 -1
- package/dist/diagnostic_info.d.ts +2 -2
- package/dist/diagnostic_info.js.map +1 -1
- package/dist/localized_text.d.ts +3 -3
- package/dist/localized_text.js.map +1 -1
- package/dist/node_class_mask.js.map +1 -1
- package/dist/nodeclass.js.map +1 -1
- package/dist/permission_flag.js.map +1 -1
- package/dist/qualified_name.js +2 -2
- package/dist/qualified_name.js.map +1 -1
- package/dist/result_mask.js.map +1 -1
- package/dist/write_mask.js +1 -1
- package/dist/write_mask.js.map +1 -1
- package/package.json +9 -7
- package/source/BrowseDirection.ts +41 -41
- package/source/_make_flag.ts +2 -3
- package/source/access_level.ts +18 -13
- package/source/access_level_ex.ts +22 -25
- package/source/access_restrictions.ts +1 -3
- package/source/attributeIds.ts +1 -5
- package/source/data_encoding.ts +23 -23
- package/source/diagnostic_info.ts +362 -361
- package/source/localized_text.ts +189 -188
- package/source/node_class_mask.ts +47 -47
- package/source/nodeclass.ts +23 -23
- package/source/permission_flag.ts +8 -8
- package/source/qualified_name.ts +3 -3
- package/source/result_mask.ts +35 -35
- package/source/write_mask.ts +37 -37
package/source/result_mask.ts
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module node-opcua-data-model
|
|
3
|
-
*/
|
|
4
|
-
// tslint:disable:no-bitwise
|
|
5
|
-
// Specifies the fields in the ReferenceDescription structure that should be
|
|
6
|
-
// returned. The fields are assigned the following bits:
|
|
7
|
-
import { Enum } from "node-opcua-enum";
|
|
8
|
-
import { registerEnumeration } from "node-opcua-factory";
|
|
9
|
-
|
|
10
|
-
export enum ResultMask {
|
|
11
|
-
ReferenceType=
|
|
12
|
-
IsForward=
|
|
13
|
-
NodeClass=
|
|
14
|
-
BrowseName=
|
|
15
|
-
DisplayName=
|
|
16
|
-
TypeDefinition= 0x20
|
|
17
|
-
}
|
|
18
|
-
export const schemaResultMask = {
|
|
19
|
-
name: "ResultMask",
|
|
20
|
-
|
|
21
|
-
enumValues: ResultMask
|
|
22
|
-
};
|
|
23
|
-
export const _enumerationResultMask: Enum = registerEnumeration(schemaResultMask);
|
|
24
|
-
|
|
25
|
-
// The ReferenceDescription type is defined in 7.24.
|
|
26
|
-
// @example
|
|
27
|
-
// makeNodeClassMask("Method | Object").should.eql(5);
|
|
28
|
-
export function makeResultMask(str: string): ResultMask {
|
|
29
|
-
const flags = str.split(" | ");
|
|
30
|
-
let r = 0;
|
|
31
|
-
for (const flag of flags) {
|
|
32
|
-
r |= (ResultMask as any)[flag];
|
|
33
|
-
}
|
|
34
|
-
return r as ResultMask;
|
|
35
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @module node-opcua-data-model
|
|
3
|
+
*/
|
|
4
|
+
// tslint:disable:no-bitwise
|
|
5
|
+
// Specifies the fields in the ReferenceDescription structure that should be
|
|
6
|
+
// returned. The fields are assigned the following bits:
|
|
7
|
+
import { Enum } from "node-opcua-enum";
|
|
8
|
+
import { registerEnumeration } from "node-opcua-factory";
|
|
9
|
+
|
|
10
|
+
export enum ResultMask {
|
|
11
|
+
ReferenceType = 0x01,
|
|
12
|
+
IsForward = 0x02,
|
|
13
|
+
NodeClass = 0x04,
|
|
14
|
+
BrowseName = 0x08,
|
|
15
|
+
DisplayName = 0x10,
|
|
16
|
+
TypeDefinition = 0x20
|
|
17
|
+
}
|
|
18
|
+
export const schemaResultMask = {
|
|
19
|
+
name: "ResultMask",
|
|
20
|
+
|
|
21
|
+
enumValues: ResultMask
|
|
22
|
+
};
|
|
23
|
+
export const _enumerationResultMask: Enum = registerEnumeration(schemaResultMask);
|
|
24
|
+
|
|
25
|
+
// The ReferenceDescription type is defined in 7.24.
|
|
26
|
+
// @example
|
|
27
|
+
// makeNodeClassMask("Method | Object").should.eql(5);
|
|
28
|
+
export function makeResultMask(str: string): ResultMask {
|
|
29
|
+
const flags = str.split(" | ");
|
|
30
|
+
let r = 0;
|
|
31
|
+
for (const flag of flags) {
|
|
32
|
+
r |= (ResultMask as any)[flag];
|
|
33
|
+
}
|
|
34
|
+
return r as ResultMask;
|
|
35
|
+
}
|
package/source/write_mask.ts
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module node-opcua-data-model
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
// tslint:disable:no-bitwise
|
|
6
|
-
export enum WriteMask {
|
|
7
|
-
AccessLevel =
|
|
8
|
-
ArrayDimensions =
|
|
9
|
-
BrowseName =
|
|
10
|
-
ContainsNoLoops =
|
|
11
|
-
DataType =
|
|
12
|
-
Description =
|
|
13
|
-
DisplayName =
|
|
14
|
-
EventNotifier =
|
|
15
|
-
Executable =
|
|
16
|
-
Historizing =
|
|
17
|
-
InverseName =
|
|
18
|
-
IsAbstract =
|
|
19
|
-
MinimumSamplingInterval =
|
|
20
|
-
NodeClass =
|
|
21
|
-
NodeId =
|
|
22
|
-
Symmetric =
|
|
23
|
-
UserAccessLevel =
|
|
24
|
-
UserExecutable =
|
|
25
|
-
UserWriteMask =
|
|
26
|
-
ValueRank =
|
|
27
|
-
WriteMask =
|
|
28
|
-
ValueForVariableType =
|
|
29
|
-
DataTypeDefinition =
|
|
30
|
-
RolePermissions =
|
|
31
|
-
AccessRestrictions =
|
|
32
|
-
AccessLevelEx =
|
|
33
|
-
// It does not apply for
|
|
34
|
-
// Variables since this is handled by the AccessLevel and UserAccessLevel
|
|
35
|
-
// Attributes for the Variable. For Variables this bit shall be set to 0.
|
|
36
|
-
// Reserved 22:31 Reserved for future use. Shall always be zero.
|
|
37
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @module node-opcua-data-model
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
// tslint:disable:no-bitwise
|
|
6
|
+
export enum WriteMask {
|
|
7
|
+
AccessLevel = 1 << 0, // Indicates if the AccessLevel Attribute is writable.
|
|
8
|
+
ArrayDimensions = 1 << 1, // Indicates if the ArrayDimensions Attribute is writable.
|
|
9
|
+
BrowseName = 1 << 2, // Indicates if the BrowseName Attribute is writable.
|
|
10
|
+
ContainsNoLoops = 1 << 3, // Indicates if the ContainsNoLoops Attribute is writable.
|
|
11
|
+
DataType = 1 << 4, // Indicates if the DataType Attribute is writable.
|
|
12
|
+
Description = 1 << 5, // Indicates if the Description Attribute is writable.
|
|
13
|
+
DisplayName = 1 << 6, // Indicates if the DisplayName Attribute is writable.
|
|
14
|
+
EventNotifier = 1 << 7, // Indicates if the EventNotifier Attribute is writable.
|
|
15
|
+
Executable = 1 << 8, // Indicates if the Executable Attribute is writable.
|
|
16
|
+
Historizing = 1 << 9, // Indicates if the Historizing Attribute is writable.
|
|
17
|
+
InverseName = 1 << 10, // Indicates if the InverseName Attribute is writable.
|
|
18
|
+
IsAbstract = 1 << 11, // Indicates if the IsAbstract Attribute is writable.
|
|
19
|
+
MinimumSamplingInterval = 1 << 12, // Indicates if the MinimumSamplingInterval Attribute is writable.
|
|
20
|
+
NodeClass = 1 << 13, // Indicates if the NodeClass Attribute is writable.
|
|
21
|
+
NodeId = 1 << 14, // Indicates if the NodeId Attribute is writable.
|
|
22
|
+
Symmetric = 1 << 15, // Indicates if the Symmetric Attribute is writable.
|
|
23
|
+
UserAccessLevel = 1 << 16, // Indicates if the UserAccessLevel Attribute is writable.
|
|
24
|
+
UserExecutable = 1 << 17, // Indicates if the UserExecutable Attribute is writable.
|
|
25
|
+
UserWriteMask = 1 << 18, // Indicates if the UserWriteMask Attribute is writable.
|
|
26
|
+
ValueRank = 1 << 19, // Indicates if the ValueRank Attribute is writable.
|
|
27
|
+
WriteMask = 1 << 20, // Indicates if the WriteMask Attribute is writable.
|
|
28
|
+
ValueForVariableType = 1 << 21, // Indicates if the Value Attribute is writable for a VariableType.
|
|
29
|
+
DataTypeDefinition = 1 << 22, /// Indicates if the DataTypeDefinition Attribute is writable.
|
|
30
|
+
RolePermissions = 1 << 23, // Indicates if the RolePermissions Attribute is writable.
|
|
31
|
+
AccessRestrictions = 1 << 24, // Indicates if the AccessRestrictions Attribute is writable.
|
|
32
|
+
AccessLevelEx = 1 << 25 // Indicates if the AccessLevelEx Attribute is writable.
|
|
33
|
+
// It does not apply for
|
|
34
|
+
// Variables since this is handled by the AccessLevel and UserAccessLevel
|
|
35
|
+
// Attributes for the Variable. For Variables this bit shall be set to 0.
|
|
36
|
+
// Reserved 22:31 Reserved for future use. Shall always be zero.
|
|
37
|
+
}
|