node-opcua-data-model 2.63.1 → 2.64.1
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/BrowseDirection.d.ts +18 -18
- package/dist/BrowseDirection.js +36 -36
- package/dist/_make_flag.d.ts +1 -1
- package/dist/_make_flag.js +25 -25
- package/dist/access_level.d.ts +24 -24
- package/dist/access_level.js +86 -86
- package/dist/access_level_ex.d.ts +34 -34
- package/dist/access_level_ex.js +92 -92
- package/dist/access_restrictions.d.ts +9 -9
- package/dist/access_restrictions.js +36 -36
- package/dist/attributeIds.d.ts +1 -1
- package/dist/attributeIds.js +7 -7
- package/dist/data_encoding.d.ts +6 -6
- package/dist/data_encoding.js +21 -21
- package/dist/diagnostic_info.d.ts +69 -47
- package/dist/diagnostic_info.js +327 -284
- package/dist/diagnostic_info.js.map +1 -1
- package/dist/index.d.ts +17 -17
- package/dist/index.js +29 -29
- package/dist/localized_text.d.ts +24 -24
- package/dist/localized_text.js +151 -151
- package/dist/node_class_mask.d.ts +14 -14
- package/dist/node_class_mask.js +44 -44
- package/dist/nodeclass.d.ts +16 -16
- package/dist/nodeclass.js +25 -25
- package/dist/permission_flag.d.ts +112 -112
- package/dist/permission_flag.js +162 -162
- package/dist/qualified_name.d.ts +45 -45
- package/dist/qualified_name.js +136 -136
- package/dist/result_mask.d.ts +18 -18
- package/dist/result_mask.js +30 -30
- package/dist/time_zone.d.ts +3 -3
- package/dist/time_zone.js +18 -18
- package/dist/write_mask.d.ts +31 -31
- package/dist/write_mask.js +40 -40
- package/package.json +11 -11
- package/source/diagnostic_info.ts +50 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-opcua-data-model",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.64.1",
|
|
4
4
|
"description": "pure nodejs OPCUA SDK - module -data-model",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "tsc -b",
|
|
@@ -13,17 +13,17 @@
|
|
|
13
13
|
"main": "./dist/index.js",
|
|
14
14
|
"types": "./dist/index.d.ts",
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"node-opcua-assert": "2.
|
|
17
|
-
"node-opcua-basic-types": "2.
|
|
18
|
-
"node-opcua-binary-stream": "2.
|
|
19
|
-
"node-opcua-enum": "2.
|
|
20
|
-
"node-opcua-factory": "2.
|
|
21
|
-
"node-opcua-nodeid": "2.
|
|
22
|
-
"node-opcua-status-code": "2.
|
|
23
|
-
"node-opcua-utils": "2.
|
|
16
|
+
"node-opcua-assert": "2.64.1",
|
|
17
|
+
"node-opcua-basic-types": "2.64.1",
|
|
18
|
+
"node-opcua-binary-stream": "2.64.1",
|
|
19
|
+
"node-opcua-enum": "2.64.1",
|
|
20
|
+
"node-opcua-factory": "2.64.1",
|
|
21
|
+
"node-opcua-nodeid": "2.64.1",
|
|
22
|
+
"node-opcua-status-code": "2.64.1",
|
|
23
|
+
"node-opcua-utils": "2.64.1"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"node-opcua-packet-analyzer": "2.
|
|
26
|
+
"node-opcua-packet-analyzer": "2.64.1",
|
|
27
27
|
"should": "^13.2.3",
|
|
28
28
|
"source-map-support": "^0.5.21"
|
|
29
29
|
},
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"internet of things"
|
|
43
43
|
],
|
|
44
44
|
"homepage": "http://node-opcua.github.io/",
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "b65b8738603cd475d7d99a2b20b0ae9d32b4110c"
|
|
46
46
|
}
|
|
@@ -140,6 +140,19 @@ export class DiagnosticInfo extends BaseUAObject {
|
|
|
140
140
|
public decodeDebug(stream: BinaryStream, options: DecodeDebugOptions): void {
|
|
141
141
|
decodeDebug_DiagnosticInfo(this, stream, options);
|
|
142
142
|
}
|
|
143
|
+
|
|
144
|
+
public static filterForResponse(diagnostic: DiagnosticInfo, requestedDiagnostics: number, diagnosticInfoMask: DiagnosticInfo_Mask): DiagnosticInfo {
|
|
145
|
+
const options: DiagnosticInfoOptions = {
|
|
146
|
+
symbolicId: (requestedDiagnostics & diagnosticInfoMask.SymbolicId) ? diagnostic.symbolicId: undefined,
|
|
147
|
+
localizedText: (requestedDiagnostics & diagnosticInfoMask.LocalizedText) ? diagnostic.localizedText: undefined,
|
|
148
|
+
additionalInfo: (requestedDiagnostics & diagnosticInfoMask.AdditionalInfo) ? diagnostic.additionalInfo: undefined,
|
|
149
|
+
innerStatusCode: (requestedDiagnostics & diagnosticInfoMask.InnerStatusCode) ? diagnostic.innerStatusCode: undefined,
|
|
150
|
+
innerDiagnosticInfo: (requestedDiagnostics & diagnosticInfoMask.InnerDiagnostics) ? diagnostic.innerDiagnosticInfo : (
|
|
151
|
+
diagnostic.innerDiagnosticInfo ? DiagnosticInfo.filterForResponse(diagnostic.innerDiagnosticInfo, requestedDiagnostics, diagnosticInfoMask) : undefined
|
|
152
|
+
),
|
|
153
|
+
}
|
|
154
|
+
return new DiagnosticInfo(options);
|
|
155
|
+
}
|
|
143
156
|
}
|
|
144
157
|
|
|
145
158
|
DiagnosticInfo.prototype.schema = DiagnosticInfo.schema;
|
|
@@ -155,6 +168,43 @@ export interface DiagnosticInfoOptions {
|
|
|
155
168
|
innerDiagnosticInfo?: DiagnosticInfo;
|
|
156
169
|
}
|
|
157
170
|
|
|
171
|
+
export enum DiagnosticInfo_ServiceLevelMask {
|
|
172
|
+
None = 0x00,
|
|
173
|
+
SymbolicId = 0x01,
|
|
174
|
+
LocalizedText = 0x02,
|
|
175
|
+
AdditionalInfo = 0x04,
|
|
176
|
+
InnerStatusCode = 0x08,
|
|
177
|
+
InnerDiagnostics = 0x10
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
export enum DiagnosticInfo_OperationLevelMask {
|
|
181
|
+
SymbolicId = 0x020,
|
|
182
|
+
LocalizedText = 0x040,
|
|
183
|
+
AdditionalInfo = 0x080,
|
|
184
|
+
InnerStatusCode = 0x0100,
|
|
185
|
+
InnerDiagnostics = 0x0200
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
type DiagnosticInfo_Mask = typeof DiagnosticInfo_ServiceLevelMask | typeof DiagnosticInfo_OperationLevelMask;
|
|
189
|
+
|
|
190
|
+
export const RESPONSE_DIAGNOSTICS_MASK_ALL = 0x3FF;
|
|
191
|
+
|
|
192
|
+
export function filterDiagnosticInfoLevel(returnDiagnostics: number, diagnostic: DiagnosticInfo | null, diagnosticInfoMask: DiagnosticInfo_Mask): DiagnosticInfo | null {
|
|
193
|
+
if (!diagnostic) {
|
|
194
|
+
return null;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
return DiagnosticInfo.filterForResponse(diagnostic, returnDiagnostics, diagnosticInfoMask);
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
export function filterDiagnosticOperationLevel(returnDiagnostics: number, diagnostic: DiagnosticInfo | null): DiagnosticInfo | null {
|
|
201
|
+
return filterDiagnosticInfoLevel(returnDiagnostics, diagnostic, DiagnosticInfo_OperationLevelMask);
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
export function filterDiagnosticServiceLevel(returnDiagnostics: number, diagnostic: DiagnosticInfo | null): DiagnosticInfo | null {
|
|
205
|
+
return filterDiagnosticInfoLevel(returnDiagnostics, diagnostic, DiagnosticInfo_ServiceLevelMask);
|
|
206
|
+
}
|
|
207
|
+
|
|
158
208
|
export enum DiagnosticInfo_EncodingByte {
|
|
159
209
|
SymbolicId = 0x01,
|
|
160
210
|
NamespaceURI = 0x02,
|