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.
Files changed (38) hide show
  1. package/dist/_make_flag.d.ts +1 -1
  2. package/dist/_make_flag.js.map +1 -1
  3. package/dist/access_level.js.map +1 -1
  4. package/dist/access_level_ex.js +2 -2
  5. package/dist/access_level_ex.js.map +1 -1
  6. package/dist/access_restrictions.js.map +1 -1
  7. package/dist/attributeIds.js.map +1 -1
  8. package/dist/data_encoding.d.ts +1 -1
  9. package/dist/data_encoding.js +2 -2
  10. package/dist/data_encoding.js.map +1 -1
  11. package/dist/diagnostic_info.d.ts +2 -2
  12. package/dist/diagnostic_info.js.map +1 -1
  13. package/dist/localized_text.d.ts +3 -3
  14. package/dist/localized_text.js.map +1 -1
  15. package/dist/node_class_mask.js.map +1 -1
  16. package/dist/nodeclass.js.map +1 -1
  17. package/dist/permission_flag.js.map +1 -1
  18. package/dist/qualified_name.js +2 -2
  19. package/dist/qualified_name.js.map +1 -1
  20. package/dist/result_mask.js.map +1 -1
  21. package/dist/write_mask.js +1 -1
  22. package/dist/write_mask.js.map +1 -1
  23. package/package.json +9 -7
  24. package/source/BrowseDirection.ts +41 -41
  25. package/source/_make_flag.ts +2 -3
  26. package/source/access_level.ts +18 -13
  27. package/source/access_level_ex.ts +22 -25
  28. package/source/access_restrictions.ts +1 -3
  29. package/source/attributeIds.ts +1 -5
  30. package/source/data_encoding.ts +23 -23
  31. package/source/diagnostic_info.ts +362 -361
  32. package/source/localized_text.ts +189 -188
  33. package/source/node_class_mask.ts +47 -47
  34. package/source/nodeclass.ts +23 -23
  35. package/source/permission_flag.ts +8 -8
  36. package/source/qualified_name.ts +3 -3
  37. package/source/result_mask.ts +35 -35
  38. package/source/write_mask.ts +37 -37
@@ -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= 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
- }
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
+ }
@@ -1,37 +1,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
- }
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
+ }