node-opcua-address-space 2.167.0 → 2.168.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/src/alarms_and_conditions/ua_alarm_condition_impl.d.ts +8 -8
- package/dist/src/alarms_and_conditions/ua_alarm_condition_impl.js +19 -19
- package/dist/src/alarms_and_conditions/ua_alarm_condition_impl.js.map +1 -1
- package/dist/src/alarms_and_conditions/ua_certificate_expiration_alarm_impl.d.ts +11 -13
- package/dist/src/alarms_and_conditions/ua_certificate_expiration_alarm_impl.js +21 -13
- package/dist/src/alarms_and_conditions/ua_certificate_expiration_alarm_impl.js.map +1 -1
- package/dist/src/base_node_impl.js +15 -15
- package/dist/src/base_node_impl.js.map +1 -1
- package/dist/src/namespace_impl.d.ts +38 -31
- package/dist/src/namespace_impl.js +161 -161
- package/dist/src/namespace_impl.js.map +1 -1
- package/dist/src/namespace_private.d.ts +12 -4
- package/dist/src/namespace_private.js +1 -4
- package/dist/src/namespace_private.js.map +1 -1
- package/dist/tsconfig_base.tsbuildinfo +1 -1
- package/package.json +34 -36
- package/src/alarms_and_conditions/ua_alarm_condition_impl.ts +26 -28
- package/src/alarms_and_conditions/ua_certificate_expiration_alarm_impl.ts +33 -27
- package/src/base_node_impl.ts +14 -14
- package/src/namespace_impl.ts +216 -201
- package/src/namespace_private.ts +15 -9
package/src/namespace_private.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module node-opcua-address-space.Private
|
|
3
3
|
*/
|
|
4
|
-
import {
|
|
5
|
-
import { NodeId } from "node-opcua-nodeid";
|
|
6
|
-
import {
|
|
4
|
+
import type {
|
|
7
5
|
AddReferenceOpts,
|
|
8
6
|
BaseNode,
|
|
9
7
|
ConstructNodeIdOptions,
|
|
10
8
|
CreateNodeOptions,
|
|
11
|
-
ModellingRuleType,
|
|
12
9
|
INamespace,
|
|
10
|
+
ModellingRuleType,
|
|
11
|
+
RequiredModel,
|
|
13
12
|
UADataType,
|
|
14
|
-
RequiredModel
|
|
15
13
|
} from "node-opcua-address-space-base";
|
|
14
|
+
import { assert } from "node-opcua-assert";
|
|
15
|
+
import type { NodeId } from "node-opcua-nodeid";
|
|
16
16
|
|
|
17
|
-
import { AddressSpacePrivate } from "./address_space_private";
|
|
17
|
+
import type { AddressSpacePrivate } from "./address_space_private";
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
export interface NamespacePrivate extends INamespace {
|
|
@@ -40,10 +40,16 @@ export interface NamespacePrivate extends INamespace {
|
|
|
40
40
|
|
|
41
41
|
registerSymbolicNames: boolean;
|
|
42
42
|
|
|
43
|
+
_aliasCount(): number;
|
|
44
|
+
_objectTypeCount(): number;
|
|
45
|
+
_variableTypeCount(): number;
|
|
46
|
+
_dataTypeCount(): number;
|
|
47
|
+
_referenceTypeCount(): number;
|
|
48
|
+
|
|
43
49
|
|
|
44
50
|
}
|
|
45
51
|
|
|
46
|
-
export declare const NamespacePrivate: new (options:
|
|
52
|
+
export declare const NamespacePrivate: new (options: unknown) => NamespacePrivate;
|
|
47
53
|
|
|
48
54
|
function isValidModellingRule(ruleName: string) {
|
|
49
55
|
return (
|
|
@@ -62,12 +68,12 @@ function isValidModellingRule(ruleName: string) {
|
|
|
62
68
|
* @private
|
|
63
69
|
*/
|
|
64
70
|
export function UANamespace_process_modelling_rule(
|
|
65
|
-
references: AddReferenceOpts[],
|
|
71
|
+
references: AddReferenceOpts[],
|
|
66
72
|
modellingRule?: ModellingRuleType
|
|
67
73
|
): void {
|
|
68
74
|
if (modellingRule) {
|
|
69
75
|
assert(isValidModellingRule(modellingRule), "expecting a valid modelling rule");
|
|
70
|
-
const modellingRuleName =
|
|
76
|
+
const modellingRuleName = `ModellingRule_${modellingRule}`;
|
|
71
77
|
// assert(this.findNode(modellingRuleName),"Modelling rule must exist");
|
|
72
78
|
references.push({
|
|
73
79
|
nodeId: modellingRuleName,
|