node-opcua-data-model 2.54.0 → 2.60.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 (45) hide show
  1. package/.mocharc.yml +10 -10
  2. package/LICENSE +20 -20
  3. package/dist/_make_flag.d.ts +1 -1
  4. package/dist/_make_flag.js.map +1 -1
  5. package/dist/access_level.js.map +1 -1
  6. package/dist/access_level_ex.d.ts +2 -0
  7. package/dist/access_level_ex.js +5 -2
  8. package/dist/access_level_ex.js.map +1 -1
  9. package/dist/access_restrictions.js.map +1 -1
  10. package/dist/attributeIds.js.map +1 -1
  11. package/dist/data_encoding.d.ts +1 -1
  12. package/dist/data_encoding.js +2 -2
  13. package/dist/data_encoding.js.map +1 -1
  14. package/dist/diagnostic_info.d.ts +2 -2
  15. package/dist/diagnostic_info.js.map +1 -1
  16. package/dist/localized_text.d.ts +3 -3
  17. package/dist/localized_text.js.map +1 -1
  18. package/dist/node_class_mask.js.map +1 -1
  19. package/dist/nodeclass.js.map +1 -1
  20. package/dist/permission_flag.js.map +1 -1
  21. package/dist/qualified_name.js +2 -2
  22. package/dist/qualified_name.js.map +1 -1
  23. package/dist/result_mask.js.map +1 -1
  24. package/dist/write_mask.js +1 -1
  25. package/dist/write_mask.js.map +1 -1
  26. package/package.json +14 -12
  27. package/source/BrowseDirection.ts +41 -41
  28. package/source/_make_flag.ts +2 -3
  29. package/source/access_level.ts +18 -13
  30. package/source/access_level_ex.ts +26 -25
  31. package/source/access_restrictions.ts +1 -3
  32. package/source/attributeIds.ts +1 -5
  33. package/source/data_encoding.ts +23 -23
  34. package/source/diagnostic_info.ts +362 -361
  35. package/source/localized_text.ts +189 -188
  36. package/source/node_class_mask.ts +47 -47
  37. package/source/nodeclass.ts +23 -23
  38. package/source/permission_flag.ts +8 -8
  39. package/source/qualified_name.ts +3 -3
  40. package/source/result_mask.ts +35 -35
  41. package/source/time_zone.ts +18 -18
  42. package/source/write_mask.ts +37 -37
  43. package/.nyc_output/13d15b6c-23cf-479c-919f-4cd69586f383.json +0 -1
  44. package/.nyc_output/processinfo/13d15b6c-23cf-479c-919f-4cd69586f383.json +0 -1
  45. package/.nyc_output/processinfo/index.json +0 -1
@@ -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,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;
@@ -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
+ }