node-opcua-data-model 2.95.0 → 2.98.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/package.json +9 -9
- package/dist/BrowseDirection.d.ts +0 -18
- package/dist/BrowseDirection.js +0 -37
- package/dist/BrowseDirection.js.map +0 -1
- package/dist/_make_flag.d.ts +0 -1
- package/dist/_make_flag.js +0 -26
- package/dist/_make_flag.js.map +0 -1
- package/dist/access_level.d.ts +0 -24
- package/dist/access_level.js +0 -86
- package/dist/access_level.js.map +0 -1
- package/dist/access_level_ex.d.ts +0 -34
- package/dist/access_level_ex.js +0 -83
- package/dist/access_level_ex.js.map +0 -1
- package/dist/access_restrictions.d.ts +0 -9
- package/dist/access_restrictions.js +0 -37
- package/dist/access_restrictions.js.map +0 -1
- package/dist/attributeIds.d.ts +0 -1
- package/dist/attributeIds.js +0 -8
- package/dist/attributeIds.js.map +0 -1
- package/dist/data_encoding.d.ts +0 -6
- package/dist/data_encoding.js +0 -22
- package/dist/data_encoding.js.map +0 -1
- package/dist/diagnostic_info.d.ts +0 -69
- package/dist/diagnostic_info.js +0 -329
- package/dist/diagnostic_info.js.map +0 -1
- package/dist/index.d.ts +0 -17
- package/dist/index.js +0 -34
- package/dist/index.js.map +0 -1
- package/dist/localized_text.d.ts +0 -24
- package/dist/localized_text.js +0 -152
- package/dist/localized_text.js.map +0 -1
- package/dist/node_class_mask.d.ts +0 -14
- package/dist/node_class_mask.js +0 -45
- package/dist/node_class_mask.js.map +0 -1
- package/dist/nodeclass.d.ts +0 -16
- package/dist/nodeclass.js +0 -26
- package/dist/nodeclass.js.map +0 -1
- package/dist/permission_flag.d.ts +0 -112
- package/dist/permission_flag.js +0 -163
- package/dist/permission_flag.js.map +0 -1
- package/dist/qualified_name.d.ts +0 -45
- package/dist/qualified_name.js +0 -137
- package/dist/qualified_name.js.map +0 -1
- package/dist/result_mask.d.ts +0 -18
- package/dist/result_mask.js +0 -31
- package/dist/result_mask.js.map +0 -1
- package/dist/time_zone.d.ts +0 -3
- package/dist/time_zone.js +0 -19
- package/dist/time_zone.js.map +0 -1
- package/dist/write_mask.d.ts +0 -31
- package/dist/write_mask.js +0 -41
- package/dist/write_mask.js.map +0 -1
package/dist/nodeclass.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export declare enum NodeClass {
|
|
2
|
-
Unspecified = 0,
|
|
3
|
-
Object = 1,
|
|
4
|
-
Variable = 2,
|
|
5
|
-
Method = 4,
|
|
6
|
-
ObjectType = 8,
|
|
7
|
-
VariableType = 16,
|
|
8
|
-
ReferenceType = 32,
|
|
9
|
-
DataType = 64,
|
|
10
|
-
View = 128
|
|
11
|
-
}
|
|
12
|
-
export declare const schemaEnumNodeClass: {
|
|
13
|
-
name: string;
|
|
14
|
-
documentation: string;
|
|
15
|
-
enumValues: typeof NodeClass;
|
|
16
|
-
};
|
package/dist/nodeclass.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.schemaEnumNodeClass = exports.NodeClass = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* @module node-opcua-data-model
|
|
6
|
-
*/
|
|
7
|
-
const node_opcua_factory_1 = require("node-opcua-factory");
|
|
8
|
-
var NodeClass;
|
|
9
|
-
(function (NodeClass) {
|
|
10
|
-
NodeClass[NodeClass["Unspecified"] = 0] = "Unspecified";
|
|
11
|
-
NodeClass[NodeClass["Object"] = 1] = "Object";
|
|
12
|
-
NodeClass[NodeClass["Variable"] = 2] = "Variable";
|
|
13
|
-
NodeClass[NodeClass["Method"] = 4] = "Method";
|
|
14
|
-
NodeClass[NodeClass["ObjectType"] = 8] = "ObjectType";
|
|
15
|
-
NodeClass[NodeClass["VariableType"] = 16] = "VariableType";
|
|
16
|
-
NodeClass[NodeClass["ReferenceType"] = 32] = "ReferenceType";
|
|
17
|
-
NodeClass[NodeClass["DataType"] = 64] = "DataType";
|
|
18
|
-
NodeClass[NodeClass["View"] = 128] = "View"; // The node is a view.
|
|
19
|
-
})(NodeClass = exports.NodeClass || (exports.NodeClass = {}));
|
|
20
|
-
exports.schemaEnumNodeClass = {
|
|
21
|
-
name: "NodeClass",
|
|
22
|
-
documentation: "A mask specifying the class of the node.",
|
|
23
|
-
enumValues: NodeClass
|
|
24
|
-
};
|
|
25
|
-
(0, node_opcua_factory_1.registerEnumeration)(exports.schemaEnumNodeClass);
|
|
26
|
-
//# sourceMappingURL=nodeclass.js.map
|
package/dist/nodeclass.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"nodeclass.js","sourceRoot":"","sources":["../source/nodeclass.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,2DAAyD;AAEzD,IAAY,SAUX;AAVD,WAAY,SAAS;IACjB,uDAAe,CAAA;IACf,6CAAU,CAAA;IACV,iDAAY,CAAA;IACZ,6CAAU,CAAA;IACV,qDAAc,CAAA;IACd,0DAAiB,CAAA;IACjB,4DAAkB,CAAA;IAClB,kDAAa,CAAA;IACb,2CAAU,CAAA,CAAC,sBAAsB;AACrC,CAAC,EAVW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAUpB;AACY,QAAA,mBAAmB,GAAG;IAC/B,IAAI,EAAE,WAAW;IAEjB,aAAa,EAAE,0CAA0C;IACzD,UAAU,EAAE,SAAS;CACxB,CAAC;AACF,IAAA,wCAAmB,EAAC,2BAAmB,CAAC,CAAC"}
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* https://reference.opcfoundation.org/v104/Core/docs/Part3/8.55/
|
|
3
|
-
*/
|
|
4
|
-
export declare enum PermissionFlag {
|
|
5
|
-
None = 0,
|
|
6
|
-
/**
|
|
7
|
-
* The Client is allowed to see the references to and from the Node.
|
|
8
|
-
* This implies that the Client is able to Read to Attributes other than the Value or the RolePermissions Attribute.
|
|
9
|
-
* This Permission is valid for all NodeClasses.
|
|
10
|
-
*/
|
|
11
|
-
Browse = 1,
|
|
12
|
-
/**
|
|
13
|
-
* The Client is allowed to read the RolePermissions Attribute.
|
|
14
|
-
* This Permission is valid for all NodeClasses.
|
|
15
|
-
*/
|
|
16
|
-
ReadRolePermissions = 2,
|
|
17
|
-
/**
|
|
18
|
-
* The Client is allowed to write to Attributes other than the Value,
|
|
19
|
-
* Historizing or RolePermissions Attribute if the WriteMask indicates that
|
|
20
|
-
* the Attribute is writeable.
|
|
21
|
-
* This bit affects the value of a UserWriteMask Attribute.
|
|
22
|
-
* This Permission is valid for all NodeClasses.
|
|
23
|
-
*/
|
|
24
|
-
WriteAttribute = 4,
|
|
25
|
-
/**
|
|
26
|
-
* The Client is allowed to write to the RolePermissions Attribute if the WriteMask
|
|
27
|
-
* indicates that the Attribute is writeable.
|
|
28
|
-
* This bit affects the value of the UserWriteMask Attribute.
|
|
29
|
-
* This Permission is valid for all NodeClasses.
|
|
30
|
-
*/
|
|
31
|
-
WriteRolePermissions = 8,
|
|
32
|
-
/**
|
|
33
|
-
* The Client is allowed to write to the Historizing Attributes if the WriteMask indicates that the Attribute is writeable.
|
|
34
|
-
* This bit affects the value of the UserWriteMask Attribute.
|
|
35
|
-
* This Permission is only valid for Variables.
|
|
36
|
-
*/
|
|
37
|
-
WriteHistorizing = 16,
|
|
38
|
-
/**
|
|
39
|
-
* The Client is allowed to read the Value Attribute.
|
|
40
|
-
* This bit affects the CurrentRead bit of the UserAccessLevel Attribute.
|
|
41
|
-
* This Permission is only valid for Variables.
|
|
42
|
-
*/
|
|
43
|
-
Read = 32,
|
|
44
|
-
/**
|
|
45
|
-
* The Client is allowed to write the Value Attribute.
|
|
46
|
-
* This bit affects the CurrentWrite bit of the UserAccessLevel Attribute.
|
|
47
|
-
* This Permission is only valid for Variables.
|
|
48
|
-
*/
|
|
49
|
-
Write = 64,
|
|
50
|
-
/**
|
|
51
|
-
* The Client is allowed to read the history associated with a Node.
|
|
52
|
-
* This bit affects the HistoryRead bit of the UserAccessLevel Attribute.
|
|
53
|
-
* This Permission is only valid for Variables, Objects or Views.
|
|
54
|
-
*/
|
|
55
|
-
ReadHistory = 128,
|
|
56
|
-
/**
|
|
57
|
-
* The Client is allowed to insert the history associated with a Node.
|
|
58
|
-
* This bit affects the HistoryWrite bit of the UserAccessLevel Attribute.
|
|
59
|
-
* This Permission is only valid for Variables, Objects or Views.
|
|
60
|
-
*/
|
|
61
|
-
InsertHistory = 256,
|
|
62
|
-
/**
|
|
63
|
-
* The Client is allowed to modify the history associated with a Node.
|
|
64
|
-
* This bit affects the HistoryWrite bit of the UserAccessLevel Attribute.
|
|
65
|
-
* This Permission is only valid for Variables, Objects or Views.
|
|
66
|
-
*/
|
|
67
|
-
ModifyHistory = 512,
|
|
68
|
-
/**
|
|
69
|
-
* The Client is allowed to delete the history associated with a Node.
|
|
70
|
-
* This bit affects the HistoryWrite bit of the UserAccessLevel Attribute.
|
|
71
|
-
* This Permission is only valid for Variables, Objects or Views.
|
|
72
|
-
*/
|
|
73
|
-
DeleteHistory = 1024,
|
|
74
|
-
/**
|
|
75
|
-
* A Client only receives an Event if this bit is set on the Node identified
|
|
76
|
-
* by the EventTypeId field and on the Node identified by the SourceNode field.
|
|
77
|
-
* This Permission is only valid for EventType Nodes or SourceNodes.
|
|
78
|
-
*/
|
|
79
|
-
ReceiveEvents = 2048,
|
|
80
|
-
/**
|
|
81
|
-
* The Client is allowed to call the Method if this bit is set on the Object or
|
|
82
|
-
* ObjectType Node passed in the Call request and the Method Instance associated
|
|
83
|
-
* with that Object or ObjectType.
|
|
84
|
-
* This bit affects the UserExecutable Attribute when set on Method Node.
|
|
85
|
-
* This Permission is only valid for Objects, ObjectType or Methods.
|
|
86
|
-
*/
|
|
87
|
-
Call = 4096,
|
|
88
|
-
/**
|
|
89
|
-
* The Client is allowed to add references to the Node.
|
|
90
|
-
* This Permission is valid for all NodeClasses.
|
|
91
|
-
*/
|
|
92
|
-
AddReference = 8192,
|
|
93
|
-
/**
|
|
94
|
-
* The Client is allowed to remove references from the Node.
|
|
95
|
-
* This Permission is valid for all NodeClasses.
|
|
96
|
-
*/
|
|
97
|
-
RemoveReference = 16384,
|
|
98
|
-
/**
|
|
99
|
-
* The Client is allowed to delete the Node.
|
|
100
|
-
* This Permission is valid for all NodeClasses.
|
|
101
|
-
*/
|
|
102
|
-
DeleteNode = 32768,
|
|
103
|
-
/**
|
|
104
|
-
* The Client is allowed to add Nodes to the Namespace.
|
|
105
|
-
* This Permission is only used in the DefaultRolePermissions and
|
|
106
|
-
* DefaultUserRolePermissions Properties of a NamespaceMetadata Object
|
|
107
|
-
*/
|
|
108
|
-
AddNode = 65536
|
|
109
|
-
}
|
|
110
|
-
export declare const allPermissions: number;
|
|
111
|
-
export declare function makePermissionFlag(str: string | number | null): number;
|
|
112
|
-
export declare function permissionFlagToString(permissionFlag: PermissionFlag): string;
|
package/dist/permission_flag.js
DELETED
|
@@ -1,163 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.permissionFlagToString = exports.makePermissionFlag = exports.allPermissions = exports.PermissionFlag = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* @module node-opcua-data-model
|
|
6
|
-
*/
|
|
7
|
-
const _make_flag_1 = require("./_make_flag");
|
|
8
|
-
/**
|
|
9
|
-
* https://reference.opcfoundation.org/v104/Core/docs/Part3/8.55/
|
|
10
|
-
*/
|
|
11
|
-
// same as PermissionType in node-opcua-types
|
|
12
|
-
var PermissionFlag;
|
|
13
|
-
(function (PermissionFlag) {
|
|
14
|
-
PermissionFlag[PermissionFlag["None"] = 0] = "None";
|
|
15
|
-
/**
|
|
16
|
-
* The Client is allowed to see the references to and from the Node.
|
|
17
|
-
* This implies that the Client is able to Read to Attributes other than the Value or the RolePermissions Attribute.
|
|
18
|
-
* This Permission is valid for all NodeClasses.
|
|
19
|
-
*/
|
|
20
|
-
PermissionFlag[PermissionFlag["Browse"] = 1] = "Browse";
|
|
21
|
-
/**
|
|
22
|
-
* The Client is allowed to read the RolePermissions Attribute.
|
|
23
|
-
* This Permission is valid for all NodeClasses.
|
|
24
|
-
*/
|
|
25
|
-
PermissionFlag[PermissionFlag["ReadRolePermissions"] = 2] = "ReadRolePermissions";
|
|
26
|
-
/**
|
|
27
|
-
* The Client is allowed to write to Attributes other than the Value,
|
|
28
|
-
* Historizing or RolePermissions Attribute if the WriteMask indicates that
|
|
29
|
-
* the Attribute is writeable.
|
|
30
|
-
* This bit affects the value of a UserWriteMask Attribute.
|
|
31
|
-
* This Permission is valid for all NodeClasses.
|
|
32
|
-
*/
|
|
33
|
-
PermissionFlag[PermissionFlag["WriteAttribute"] = 4] = "WriteAttribute";
|
|
34
|
-
/**
|
|
35
|
-
* The Client is allowed to write to the RolePermissions Attribute if the WriteMask
|
|
36
|
-
* indicates that the Attribute is writeable.
|
|
37
|
-
* This bit affects the value of the UserWriteMask Attribute.
|
|
38
|
-
* This Permission is valid for all NodeClasses.
|
|
39
|
-
*/
|
|
40
|
-
PermissionFlag[PermissionFlag["WriteRolePermissions"] = 8] = "WriteRolePermissions";
|
|
41
|
-
/**
|
|
42
|
-
* The Client is allowed to write to the Historizing Attributes if the WriteMask indicates that the Attribute is writeable.
|
|
43
|
-
* This bit affects the value of the UserWriteMask Attribute.
|
|
44
|
-
* This Permission is only valid for Variables.
|
|
45
|
-
*/
|
|
46
|
-
PermissionFlag[PermissionFlag["WriteHistorizing"] = 16] = "WriteHistorizing";
|
|
47
|
-
/**
|
|
48
|
-
* The Client is allowed to read the Value Attribute.
|
|
49
|
-
* This bit affects the CurrentRead bit of the UserAccessLevel Attribute.
|
|
50
|
-
* This Permission is only valid for Variables.
|
|
51
|
-
*/
|
|
52
|
-
PermissionFlag[PermissionFlag["Read"] = 32] = "Read";
|
|
53
|
-
/**
|
|
54
|
-
* The Client is allowed to write the Value Attribute.
|
|
55
|
-
* This bit affects the CurrentWrite bit of the UserAccessLevel Attribute.
|
|
56
|
-
* This Permission is only valid for Variables.
|
|
57
|
-
*/
|
|
58
|
-
PermissionFlag[PermissionFlag["Write"] = 64] = "Write";
|
|
59
|
-
/**
|
|
60
|
-
* The Client is allowed to read the history associated with a Node.
|
|
61
|
-
* This bit affects the HistoryRead bit of the UserAccessLevel Attribute.
|
|
62
|
-
* This Permission is only valid for Variables, Objects or Views.
|
|
63
|
-
*/
|
|
64
|
-
PermissionFlag[PermissionFlag["ReadHistory"] = 128] = "ReadHistory";
|
|
65
|
-
/**
|
|
66
|
-
* The Client is allowed to insert the history associated with a Node.
|
|
67
|
-
* This bit affects the HistoryWrite bit of the UserAccessLevel Attribute.
|
|
68
|
-
* This Permission is only valid for Variables, Objects or Views.
|
|
69
|
-
*/
|
|
70
|
-
PermissionFlag[PermissionFlag["InsertHistory"] = 256] = "InsertHistory";
|
|
71
|
-
/**
|
|
72
|
-
* The Client is allowed to modify the history associated with a Node.
|
|
73
|
-
* This bit affects the HistoryWrite bit of the UserAccessLevel Attribute.
|
|
74
|
-
* This Permission is only valid for Variables, Objects or Views.
|
|
75
|
-
*/
|
|
76
|
-
PermissionFlag[PermissionFlag["ModifyHistory"] = 512] = "ModifyHistory";
|
|
77
|
-
/**
|
|
78
|
-
* The Client is allowed to delete the history associated with a Node.
|
|
79
|
-
* This bit affects the HistoryWrite bit of the UserAccessLevel Attribute.
|
|
80
|
-
* This Permission is only valid for Variables, Objects or Views.
|
|
81
|
-
*/
|
|
82
|
-
PermissionFlag[PermissionFlag["DeleteHistory"] = 1024] = "DeleteHistory";
|
|
83
|
-
/**
|
|
84
|
-
* A Client only receives an Event if this bit is set on the Node identified
|
|
85
|
-
* by the EventTypeId field and on the Node identified by the SourceNode field.
|
|
86
|
-
* This Permission is only valid for EventType Nodes or SourceNodes.
|
|
87
|
-
*/
|
|
88
|
-
PermissionFlag[PermissionFlag["ReceiveEvents"] = 2048] = "ReceiveEvents";
|
|
89
|
-
/**
|
|
90
|
-
* The Client is allowed to call the Method if this bit is set on the Object or
|
|
91
|
-
* ObjectType Node passed in the Call request and the Method Instance associated
|
|
92
|
-
* with that Object or ObjectType.
|
|
93
|
-
* This bit affects the UserExecutable Attribute when set on Method Node.
|
|
94
|
-
* This Permission is only valid for Objects, ObjectType or Methods.
|
|
95
|
-
*/
|
|
96
|
-
PermissionFlag[PermissionFlag["Call"] = 4096] = "Call";
|
|
97
|
-
/**
|
|
98
|
-
* The Client is allowed to add references to the Node.
|
|
99
|
-
* This Permission is valid for all NodeClasses.
|
|
100
|
-
*/
|
|
101
|
-
PermissionFlag[PermissionFlag["AddReference"] = 8192] = "AddReference";
|
|
102
|
-
/**
|
|
103
|
-
* The Client is allowed to remove references from the Node.
|
|
104
|
-
* This Permission is valid for all NodeClasses.
|
|
105
|
-
*/
|
|
106
|
-
PermissionFlag[PermissionFlag["RemoveReference"] = 16384] = "RemoveReference";
|
|
107
|
-
/**
|
|
108
|
-
* The Client is allowed to delete the Node.
|
|
109
|
-
* This Permission is valid for all NodeClasses.
|
|
110
|
-
*/
|
|
111
|
-
PermissionFlag[PermissionFlag["DeleteNode"] = 32768] = "DeleteNode";
|
|
112
|
-
/**
|
|
113
|
-
* The Client is allowed to add Nodes to the Namespace.
|
|
114
|
-
* This Permission is only used in the DefaultRolePermissions and
|
|
115
|
-
* DefaultUserRolePermissions Properties of a NamespaceMetadata Object
|
|
116
|
-
*/
|
|
117
|
-
PermissionFlag[PermissionFlag["AddNode"] = 65536] = "AddNode";
|
|
118
|
-
})(PermissionFlag = exports.PermissionFlag || (exports.PermissionFlag = {}));
|
|
119
|
-
exports.allPermissions = PermissionFlag.Browse |
|
|
120
|
-
PermissionFlag.Browse |
|
|
121
|
-
PermissionFlag.ReadRolePermissions |
|
|
122
|
-
PermissionFlag.WriteAttribute |
|
|
123
|
-
PermissionFlag.WriteRolePermissions |
|
|
124
|
-
PermissionFlag.WriteHistorizing |
|
|
125
|
-
PermissionFlag.Read |
|
|
126
|
-
PermissionFlag.Write |
|
|
127
|
-
PermissionFlag.ReadHistory |
|
|
128
|
-
PermissionFlag.InsertHistory |
|
|
129
|
-
PermissionFlag.ModifyHistory |
|
|
130
|
-
PermissionFlag.DeleteHistory |
|
|
131
|
-
PermissionFlag.ReceiveEvents |
|
|
132
|
-
PermissionFlag.Call |
|
|
133
|
-
PermissionFlag.AddReference |
|
|
134
|
-
PermissionFlag.RemoveReference |
|
|
135
|
-
PermissionFlag.DeleteNode |
|
|
136
|
-
PermissionFlag.AddNode;
|
|
137
|
-
// @example
|
|
138
|
-
// makePermissionFlag("ReceiveEvents | RemoveReference");
|
|
139
|
-
function makePermissionFlag(str) {
|
|
140
|
-
if (str === "All") {
|
|
141
|
-
return exports.allPermissions;
|
|
142
|
-
}
|
|
143
|
-
return (0, _make_flag_1._make_flag)(str, PermissionFlag.None, PermissionFlag);
|
|
144
|
-
}
|
|
145
|
-
exports.makePermissionFlag = makePermissionFlag;
|
|
146
|
-
function permissionFlagToString(permissionFlag) {
|
|
147
|
-
const retVal = [];
|
|
148
|
-
for (const [key, value] of Object.entries(PermissionFlag)) {
|
|
149
|
-
const numKey = parseInt(key, 10);
|
|
150
|
-
if (numKey.toString() !== key || numKey === 0) {
|
|
151
|
-
continue;
|
|
152
|
-
}
|
|
153
|
-
if ((permissionFlag & numKey) === numKey) {
|
|
154
|
-
retVal.push(value);
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
if (retVal.length === 0) {
|
|
158
|
-
retVal.push("None");
|
|
159
|
-
}
|
|
160
|
-
return retVal.join(" | ");
|
|
161
|
-
}
|
|
162
|
-
exports.permissionFlagToString = permissionFlagToString;
|
|
163
|
-
//# sourceMappingURL=permission_flag.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"permission_flag.js","sourceRoot":"","sources":["../source/permission_flag.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,6CAA0C;AAE1C;;GAEG;AAEH,6CAA6C;AAC7C,IAAY,cA2GX;AA3GD,WAAY,cAAc;IACtB,mDAAQ,CAAA;I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Ac,CAAC;KACzB;IACD,OAAO,IAAA,uBAAU,EAAC,GAAG,EAAE,cAAc,CAAC,IAAI,EAAE,cAAc,CAAmB,CAAC;AAClF,CAAC;AALD,gDAKC;AAED,SAAgB,sBAAsB,CAAC,cAA8B;IACjE,MAAM,MAAM,GAAG,EAAE,CAAC;IAClB,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,cAAc,CAAC,EAAE;QACvD,MAAM,MAAM,GAAG,QAAQ,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;QACjC,IAAI,MAAM,CAAC,QAAQ,EAAE,KAAK,GAAG,IAAI,MAAM,KAAK,CAAC,EAAE;YAC3C,SAAS;SACZ;QACD,IAAI,CAAC,cAAc,GAAG,MAAM,CAAC,KAAK,MAAM,EAAE;YACtC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;SACtB;KACJ;IACD,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE;QACrB,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;KACvB;IACD,OAAO,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AAC9B,CAAC;AAfD,wDAeC"}
|
package/dist/qualified_name.d.ts
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { BaseUAObject, IStructuredTypeSchema } from "node-opcua-factory";
|
|
2
|
-
import { BinaryStream, OutputBinaryStream } from "node-opcua-binary-stream";
|
|
3
|
-
import { ExpandedNodeId } from "node-opcua-nodeid";
|
|
4
|
-
import { UAString, UInt16 } from "node-opcua-basic-types";
|
|
5
|
-
export declare const schemaQualifiedName: IStructuredTypeSchema;
|
|
6
|
-
export interface QualifiedNameOptions {
|
|
7
|
-
namespaceIndex?: UInt16;
|
|
8
|
-
name?: UAString;
|
|
9
|
-
}
|
|
10
|
-
export declare class QualifiedName extends BaseUAObject {
|
|
11
|
-
static schema: IStructuredTypeSchema;
|
|
12
|
-
static possibleFields: string[];
|
|
13
|
-
static encodingDefaultBinary: ExpandedNodeId;
|
|
14
|
-
static encodingDefaultXml: ExpandedNodeId;
|
|
15
|
-
namespaceIndex: UInt16;
|
|
16
|
-
name: UAString;
|
|
17
|
-
constructor(options?: QualifiedNameOptions | null | string);
|
|
18
|
-
/**
|
|
19
|
-
* encode the object into a binary stream
|
|
20
|
-
*/
|
|
21
|
-
encode(stream: OutputBinaryStream): void;
|
|
22
|
-
/**
|
|
23
|
-
* decode the object from a binary stream
|
|
24
|
-
*/
|
|
25
|
-
decode(stream: BinaryStream): void;
|
|
26
|
-
toString(): string;
|
|
27
|
-
isEmpty(): boolean;
|
|
28
|
-
}
|
|
29
|
-
export type QualifiedNameLike = QualifiedNameOptions | string;
|
|
30
|
-
/**
|
|
31
|
-
* @method stringToQualifiedName
|
|
32
|
-
* @param value {String}
|
|
33
|
-
* @return {{namespaceIndex: Number, name: String}}
|
|
34
|
-
*
|
|
35
|
-
* @example
|
|
36
|
-
*
|
|
37
|
-
* stringToQualifiedName("Hello") => {namespaceIndex: 0, name: "Hello"}
|
|
38
|
-
* stringToQualifiedName("3:Hello") => {namespaceIndex: 3, name: "Hello"}
|
|
39
|
-
*/
|
|
40
|
-
export declare function stringToQualifiedName(value: string): QualifiedName;
|
|
41
|
-
export declare function coerceQualifiedName(value: null): null;
|
|
42
|
-
export declare function coerceQualifiedName(value: QualifiedNameLike): QualifiedName;
|
|
43
|
-
export declare function coerceQualifiedName(value: string): QualifiedName;
|
|
44
|
-
export declare function encodeQualifiedName(value: QualifiedName, stream: OutputBinaryStream): void;
|
|
45
|
-
export declare function decodeQualifiedName(stream: BinaryStream, value?: QualifiedName): QualifiedName;
|
package/dist/qualified_name.js
DELETED
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.decodeQualifiedName = exports.encodeQualifiedName = exports.coerceQualifiedName = exports.stringToQualifiedName = exports.QualifiedName = exports.schemaQualifiedName = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* @module node-opcua-data-model
|
|
6
|
-
*/
|
|
7
|
-
const node_opcua_assert_1 = require("node-opcua-assert");
|
|
8
|
-
const node_opcua_factory_1 = require("node-opcua-factory");
|
|
9
|
-
const node_opcua_nodeid_1 = require("node-opcua-nodeid");
|
|
10
|
-
const node_opcua_basic_types_1 = require("node-opcua-basic-types");
|
|
11
|
-
exports.schemaQualifiedName = (0, node_opcua_factory_1.buildStructuredType)({
|
|
12
|
-
baseType: "BaseUAObject",
|
|
13
|
-
name: "QualifiedName",
|
|
14
|
-
fields: [
|
|
15
|
-
{
|
|
16
|
-
name: "namespaceIndex",
|
|
17
|
-
fieldType: "UInt16"
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
name: "name",
|
|
21
|
-
fieldType: "String",
|
|
22
|
-
defaultValue: null
|
|
23
|
-
}
|
|
24
|
-
]
|
|
25
|
-
});
|
|
26
|
-
exports.schemaQualifiedName.coerce = coerceQualifiedName;
|
|
27
|
-
class QualifiedName extends node_opcua_factory_1.BaseUAObject {
|
|
28
|
-
constructor(options) {
|
|
29
|
-
super();
|
|
30
|
-
// for de-serialization
|
|
31
|
-
if (options === null || options === undefined) {
|
|
32
|
-
this.namespaceIndex = 0;
|
|
33
|
-
this.name = null;
|
|
34
|
-
return;
|
|
35
|
-
}
|
|
36
|
-
if (typeof options === "string") {
|
|
37
|
-
options = { name: options };
|
|
38
|
-
}
|
|
39
|
-
/* istanbul ignore next */
|
|
40
|
-
if (node_opcua_factory_1.parameters.debugSchemaHelper) {
|
|
41
|
-
const schema = QualifiedName.schema;
|
|
42
|
-
(0, node_opcua_factory_1.check_options_correctness_against_schema)(this, schema, options);
|
|
43
|
-
}
|
|
44
|
-
this.namespaceIndex = options.namespaceIndex || 0;
|
|
45
|
-
this.name = options.name || null;
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* encode the object into a binary stream
|
|
49
|
-
*/
|
|
50
|
-
encode(stream) {
|
|
51
|
-
super.encode(stream);
|
|
52
|
-
(0, node_opcua_basic_types_1.encodeUInt16)(this.namespaceIndex, stream);
|
|
53
|
-
(0, node_opcua_basic_types_1.encodeUAString)(this.name, stream);
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* decode the object from a binary stream
|
|
57
|
-
*/
|
|
58
|
-
decode(stream) {
|
|
59
|
-
super.decode(stream);
|
|
60
|
-
this.namespaceIndex = (0, node_opcua_basic_types_1.decodeUInt16)(stream);
|
|
61
|
-
this.name = (0, node_opcua_basic_types_1.decodeUAString)(stream);
|
|
62
|
-
}
|
|
63
|
-
toString() {
|
|
64
|
-
if (this.namespaceIndex) {
|
|
65
|
-
return this.namespaceIndex + ":" + this.name;
|
|
66
|
-
}
|
|
67
|
-
return this.name || "<null>";
|
|
68
|
-
}
|
|
69
|
-
isEmpty() {
|
|
70
|
-
return !this.name || this.name.length === 0;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
exports.QualifiedName = QualifiedName;
|
|
74
|
-
QualifiedName.schema = exports.schemaQualifiedName;
|
|
75
|
-
QualifiedName.possibleFields = ["namespaceIndex", "name"];
|
|
76
|
-
QualifiedName.encodingDefaultBinary = (0, node_opcua_nodeid_1.makeExpandedNodeId)(0, 0);
|
|
77
|
-
QualifiedName.encodingDefaultXml = (0, node_opcua_nodeid_1.makeExpandedNodeId)(0, 0);
|
|
78
|
-
QualifiedName.prototype.schema = QualifiedName.schema;
|
|
79
|
-
// xx QualifiedName.prototype.isEmpty = function (): boolean {
|
|
80
|
-
// xx return !this.name || this.name.length === 0;
|
|
81
|
-
// xx}
|
|
82
|
-
function isInteger(value) {
|
|
83
|
-
return typeof value === "number" && isFinite(value) && Math.floor(value) === value;
|
|
84
|
-
}
|
|
85
|
-
/**
|
|
86
|
-
* @method stringToQualifiedName
|
|
87
|
-
* @param value {String}
|
|
88
|
-
* @return {{namespaceIndex: Number, name: String}}
|
|
89
|
-
*
|
|
90
|
-
* @example
|
|
91
|
-
*
|
|
92
|
-
* stringToQualifiedName("Hello") => {namespaceIndex: 0, name: "Hello"}
|
|
93
|
-
* stringToQualifiedName("3:Hello") => {namespaceIndex: 3, name: "Hello"}
|
|
94
|
-
*/
|
|
95
|
-
function stringToQualifiedName(value) {
|
|
96
|
-
const splitArray = value.split(":");
|
|
97
|
-
let namespaceIndex = 0;
|
|
98
|
-
if (!isNaN(parseFloat(splitArray[0])) &&
|
|
99
|
-
isFinite(parseInt(splitArray[0], 10)) &&
|
|
100
|
-
isInteger(parseFloat(splitArray[0])) &&
|
|
101
|
-
splitArray.length > 1) {
|
|
102
|
-
namespaceIndex = parseInt(splitArray[0], 10);
|
|
103
|
-
splitArray.shift();
|
|
104
|
-
value = splitArray.join(":");
|
|
105
|
-
}
|
|
106
|
-
return new QualifiedName({ namespaceIndex, name: value });
|
|
107
|
-
}
|
|
108
|
-
exports.stringToQualifiedName = stringToQualifiedName;
|
|
109
|
-
function coerceQualifiedName(value) {
|
|
110
|
-
if (!value) {
|
|
111
|
-
return null;
|
|
112
|
-
}
|
|
113
|
-
else if (value instanceof QualifiedName) {
|
|
114
|
-
return value;
|
|
115
|
-
}
|
|
116
|
-
else if (typeof value === "string") {
|
|
117
|
-
return stringToQualifiedName(value);
|
|
118
|
-
}
|
|
119
|
-
else {
|
|
120
|
-
(0, node_opcua_assert_1.assert)(Object.prototype.hasOwnProperty.call(value, "namespaceIndex"));
|
|
121
|
-
(0, node_opcua_assert_1.assert)(Object.prototype.hasOwnProperty.call(value, "name"));
|
|
122
|
-
return new QualifiedName(value);
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
exports.coerceQualifiedName = coerceQualifiedName;
|
|
126
|
-
(0, node_opcua_factory_1.registerSpecialVariantEncoder)(QualifiedName);
|
|
127
|
-
function encodeQualifiedName(value, stream) {
|
|
128
|
-
value.encode(stream);
|
|
129
|
-
}
|
|
130
|
-
exports.encodeQualifiedName = encodeQualifiedName;
|
|
131
|
-
function decodeQualifiedName(stream, value) {
|
|
132
|
-
value = value || new QualifiedName(null);
|
|
133
|
-
value.decode(stream);
|
|
134
|
-
return value;
|
|
135
|
-
}
|
|
136
|
-
exports.decodeQualifiedName = decodeQualifiedName;
|
|
137
|
-
//# sourceMappingURL=qualified_name.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"qualified_name.js","sourceRoot":"","sources":["../source/qualified_name.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,yDAA2C;AAC3C,2DAQ4B;AAG5B,yDAAuE;AAEvE,mEAA6H;AAEhH,QAAA,mBAAmB,GAAG,IAAA,wCAAmB,EAAC;IACnD,QAAQ,EAAE,cAAc;IACxB,IAAI,EAAE,eAAe;IAErB,MAAM,EAAE;QACJ;YACI,IAAI,EAAE,gBAAgB;YAEtB,SAAS,EAAE,QAAQ;SACtB;QACD;YACI,IAAI,EAAE,MAAM;YAEZ,SAAS,EAAE,QAAQ;YAEnB,YAAY,EAAE,IAAI;SACrB;KACJ;CACJ,CAAC,CAAC;AACH,2BAAmB,CAAC,MAAM,GAAG,mBAAmB,CAAC;AAOjD,MAAa,aAAc,SAAQ,iCAAY;IAU3C,YAAY,OAA8C;QACtD,KAAK,EAAE,CAAC;QACR,uBAAuB;QACvB,IAAI,OAAO,KAAK,IAAI,IAAI,OAAO,KAAK,SAAS,EAAE;YAC3C,IAAI,CAAC,cAAc,GAAG,CAAC,CAAC;YACxB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;YACjB,OAAO;SACV;QACD,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE;YAC7B,OAAO,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;SAC/B;QACD,0BAA0B;QAC1B,IAAI,+BAAU,CAAC,iBAAiB,EAAE;YAC9B,MAAM,MAAM,GAAG,aAAa,CAAC,MAAM,CAAC;YACpC,IAAA,6DAAwC,EAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;SACnE;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CAAC,cAAc,CAAC,IAAI,CAAC,KAAK,EAAE,gBAAgB,CAAC,CAAC,CAAC;QACtE,IAAA,0BAAM,EAAC,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC;QAC5D,OAAO,IAAI,aAAa,CAAC,KAAK,CAAC,CAAC;KACnC;AACL,CAAC;AAZD,kDAYC;AAED,IAAA,kDAA6B,EAAC,aAAa,CAAC,CAAC;AAE7C,SAAgB,mBAAmB,CAAC,KAAoB,EAAE,MAA0B;IAChF,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;AACzB,CAAC;AAFD,kDAEC;AAED,SAAgB,mBAAmB,CAAC,MAAoB,EAAE,KAAqB;IAC3E,KAAK,GAAG,KAAK,IAAI,IAAI,aAAa,CAAC,IAAI,CAAC,CAAC;IACzC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACrB,OAAO,KAAK,CAAC;AACjB,CAAC;AAJD,kDAIC"}
|
package/dist/result_mask.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module node-opcua-data-model
|
|
3
|
-
*/
|
|
4
|
-
import { Enum } from "node-opcua-enum";
|
|
5
|
-
export declare enum ResultMask {
|
|
6
|
-
ReferenceType = 1,
|
|
7
|
-
IsForward = 2,
|
|
8
|
-
NodeClass = 4,
|
|
9
|
-
BrowseName = 8,
|
|
10
|
-
DisplayName = 16,
|
|
11
|
-
TypeDefinition = 32
|
|
12
|
-
}
|
|
13
|
-
export declare const schemaResultMask: {
|
|
14
|
-
name: string;
|
|
15
|
-
enumValues: typeof ResultMask;
|
|
16
|
-
};
|
|
17
|
-
export declare const _enumerationResultMask: Enum;
|
|
18
|
-
export declare function makeResultMask(str: string): ResultMask;
|
package/dist/result_mask.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.makeResultMask = exports._enumerationResultMask = exports.schemaResultMask = exports.ResultMask = void 0;
|
|
4
|
-
const node_opcua_factory_1 = require("node-opcua-factory");
|
|
5
|
-
var ResultMask;
|
|
6
|
-
(function (ResultMask) {
|
|
7
|
-
ResultMask[ResultMask["ReferenceType"] = 1] = "ReferenceType";
|
|
8
|
-
ResultMask[ResultMask["IsForward"] = 2] = "IsForward";
|
|
9
|
-
ResultMask[ResultMask["NodeClass"] = 4] = "NodeClass";
|
|
10
|
-
ResultMask[ResultMask["BrowseName"] = 8] = "BrowseName";
|
|
11
|
-
ResultMask[ResultMask["DisplayName"] = 16] = "DisplayName";
|
|
12
|
-
ResultMask[ResultMask["TypeDefinition"] = 32] = "TypeDefinition";
|
|
13
|
-
})(ResultMask = exports.ResultMask || (exports.ResultMask = {}));
|
|
14
|
-
exports.schemaResultMask = {
|
|
15
|
-
name: "ResultMask",
|
|
16
|
-
enumValues: ResultMask
|
|
17
|
-
};
|
|
18
|
-
exports._enumerationResultMask = (0, node_opcua_factory_1.registerEnumeration)(exports.schemaResultMask);
|
|
19
|
-
// The ReferenceDescription type is defined in 7.24.
|
|
20
|
-
// @example
|
|
21
|
-
// makeNodeClassMask("Method | Object").should.eql(5);
|
|
22
|
-
function makeResultMask(str) {
|
|
23
|
-
const flags = str.split(" | ");
|
|
24
|
-
let r = 0;
|
|
25
|
-
for (const flag of flags) {
|
|
26
|
-
r |= ResultMask[flag];
|
|
27
|
-
}
|
|
28
|
-
return r;
|
|
29
|
-
}
|
|
30
|
-
exports.makeResultMask = makeResultMask;
|
|
31
|
-
//# sourceMappingURL=result_mask.js.map
|
package/dist/result_mask.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"result_mask.js","sourceRoot":"","sources":["../source/result_mask.ts"],"names":[],"mappings":";;;AAOA,2DAAyD;AAEzD,IAAY,UAOX;AAPD,WAAY,UAAU;IAClB,6DAAoB,CAAA;IACpB,qDAAgB,CAAA;IAChB,qDAAgB,CAAA;IAChB,uDAAiB,CAAA;IACjB,0DAAkB,CAAA;IAClB,gEAAqB,CAAA;AACzB,CAAC,EAPW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAOrB;AACY,QAAA,gBAAgB,GAAG;IAC5B,IAAI,EAAE,YAAY;IAElB,UAAU,EAAE,UAAU;CACzB,CAAC;AACW,QAAA,sBAAsB,GAAS,IAAA,wCAAmB,EAAC,wBAAgB,CAAC,CAAC;AAElF,oDAAoD;AACpD,WAAW;AACX,2DAA2D;AAC3D,SAAgB,cAAc,CAAC,GAAW;IACtC,MAAM,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IAC/B,IAAI,CAAC,GAAG,CAAC,CAAC;IACV,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE;QACtB,CAAC,IAAK,UAAkB,CAAC,IAAI,CAAC,CAAC;KAClC;IACD,OAAO,CAAe,CAAC;AAC3B,CAAC;AAPD,wCAOC"}
|
package/dist/time_zone.d.ts
DELETED
package/dist/time_zone.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* @module node-opcua-data-model
|
|
4
|
-
*/
|
|
5
|
-
// tslint:disable:no-bitwise
|
|
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;
|
|
19
|
-
//# sourceMappingURL=time_zone.js.map
|
package/dist/time_zone.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"time_zone.js","sourceRoot":"","sources":["../source/time_zone.ts"],"names":[],"mappings":";AAAA;;GAEG;AACH,4BAA4B;AAE5B;;;;;;;;;;;GAWG;AACH,4FAA4F"}
|
package/dist/write_mask.d.ts
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module node-opcua-data-model
|
|
3
|
-
*/
|
|
4
|
-
export declare enum WriteMask {
|
|
5
|
-
AccessLevel = 1,
|
|
6
|
-
ArrayDimensions = 2,
|
|
7
|
-
BrowseName = 4,
|
|
8
|
-
ContainsNoLoops = 8,
|
|
9
|
-
DataType = 16,
|
|
10
|
-
Description = 32,
|
|
11
|
-
DisplayName = 64,
|
|
12
|
-
EventNotifier = 128,
|
|
13
|
-
Executable = 256,
|
|
14
|
-
Historizing = 512,
|
|
15
|
-
InverseName = 1024,
|
|
16
|
-
IsAbstract = 2048,
|
|
17
|
-
MinimumSamplingInterval = 4096,
|
|
18
|
-
NodeClass = 8192,
|
|
19
|
-
NodeId = 16384,
|
|
20
|
-
Symmetric = 32768,
|
|
21
|
-
UserAccessLevel = 65536,
|
|
22
|
-
UserExecutable = 131072,
|
|
23
|
-
UserWriteMask = 262144,
|
|
24
|
-
ValueRank = 524288,
|
|
25
|
-
WriteMask = 1048576,
|
|
26
|
-
ValueForVariableType = 2097152,
|
|
27
|
-
DataTypeDefinition = 4194304,
|
|
28
|
-
RolePermissions = 8388608,
|
|
29
|
-
AccessRestrictions = 16777216,
|
|
30
|
-
AccessLevelEx = 33554432
|
|
31
|
-
}
|