node-opcua-service-filter 2.71.0 → 2.72.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/imports.d.ts +4 -4
- package/dist/imports.js +18 -18
- package/dist/index.d.ts +5 -5
- package/dist/index.js +53 -53
- package/dist/tools_event_filter.d.ts +32 -32
- package/dist/tools_event_filter.js +157 -157
- package/dist/tools_event_filter.js.map +1 -1
- package/package.json +5 -5
- package/source/tools_event_filter.ts +1 -2
package/dist/imports.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module node-opcua-service-filter
|
|
3
|
-
*/
|
|
4
|
-
export { FilterOperator, AttributeOperand, ElementOperand, FilterOperand, LiteralOperand, SimpleAttributeOperand, MonitoringFilter, ContentFilterElement, ContentFilter, EventFilter, DataChangeFilter, AttributeOperandOptions, ElementOperandOptions, FilterOperandOptions, LiteralOperandOptions, SimpleAttributeOperandOptions, MonitoringFilterOptions, ContentFilterElementOptions, ContentFilterOptions, EventFilterOptions } from "node-opcua-types";
|
|
1
|
+
/**
|
|
2
|
+
* @module node-opcua-service-filter
|
|
3
|
+
*/
|
|
4
|
+
export { FilterOperator, AttributeOperand, ElementOperand, FilterOperand, LiteralOperand, SimpleAttributeOperand, MonitoringFilter, ContentFilterElement, ContentFilter, EventFilter, DataChangeFilter, AttributeOperandOptions, ElementOperandOptions, FilterOperandOptions, LiteralOperandOptions, SimpleAttributeOperandOptions, MonitoringFilterOptions, ContentFilterElementOptions, ContentFilterOptions, EventFilterOptions } from "node-opcua-types";
|
package/dist/imports.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DataChangeFilter = exports.EventFilter = exports.ContentFilter = exports.ContentFilterElement = exports.MonitoringFilter = exports.SimpleAttributeOperand = exports.LiteralOperand = exports.FilterOperand = exports.ElementOperand = exports.AttributeOperand = exports.FilterOperator = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* @module node-opcua-service-filter
|
|
6
|
-
*/
|
|
7
|
-
var node_opcua_types_1 = require("node-opcua-types");
|
|
8
|
-
Object.defineProperty(exports, "FilterOperator", { enumerable: true, get: function () { return node_opcua_types_1.FilterOperator; } });
|
|
9
|
-
Object.defineProperty(exports, "AttributeOperand", { enumerable: true, get: function () { return node_opcua_types_1.AttributeOperand; } });
|
|
10
|
-
Object.defineProperty(exports, "ElementOperand", { enumerable: true, get: function () { return node_opcua_types_1.ElementOperand; } });
|
|
11
|
-
Object.defineProperty(exports, "FilterOperand", { enumerable: true, get: function () { return node_opcua_types_1.FilterOperand; } });
|
|
12
|
-
Object.defineProperty(exports, "LiteralOperand", { enumerable: true, get: function () { return node_opcua_types_1.LiteralOperand; } });
|
|
13
|
-
Object.defineProperty(exports, "SimpleAttributeOperand", { enumerable: true, get: function () { return node_opcua_types_1.SimpleAttributeOperand; } });
|
|
14
|
-
Object.defineProperty(exports, "MonitoringFilter", { enumerable: true, get: function () { return node_opcua_types_1.MonitoringFilter; } });
|
|
15
|
-
Object.defineProperty(exports, "ContentFilterElement", { enumerable: true, get: function () { return node_opcua_types_1.ContentFilterElement; } });
|
|
16
|
-
Object.defineProperty(exports, "ContentFilter", { enumerable: true, get: function () { return node_opcua_types_1.ContentFilter; } });
|
|
17
|
-
Object.defineProperty(exports, "EventFilter", { enumerable: true, get: function () { return node_opcua_types_1.EventFilter; } });
|
|
18
|
-
Object.defineProperty(exports, "DataChangeFilter", { enumerable: true, get: function () { return node_opcua_types_1.DataChangeFilter; } });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DataChangeFilter = exports.EventFilter = exports.ContentFilter = exports.ContentFilterElement = exports.MonitoringFilter = exports.SimpleAttributeOperand = exports.LiteralOperand = exports.FilterOperand = exports.ElementOperand = exports.AttributeOperand = exports.FilterOperator = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* @module node-opcua-service-filter
|
|
6
|
+
*/
|
|
7
|
+
var node_opcua_types_1 = require("node-opcua-types");
|
|
8
|
+
Object.defineProperty(exports, "FilterOperator", { enumerable: true, get: function () { return node_opcua_types_1.FilterOperator; } });
|
|
9
|
+
Object.defineProperty(exports, "AttributeOperand", { enumerable: true, get: function () { return node_opcua_types_1.AttributeOperand; } });
|
|
10
|
+
Object.defineProperty(exports, "ElementOperand", { enumerable: true, get: function () { return node_opcua_types_1.ElementOperand; } });
|
|
11
|
+
Object.defineProperty(exports, "FilterOperand", { enumerable: true, get: function () { return node_opcua_types_1.FilterOperand; } });
|
|
12
|
+
Object.defineProperty(exports, "LiteralOperand", { enumerable: true, get: function () { return node_opcua_types_1.LiteralOperand; } });
|
|
13
|
+
Object.defineProperty(exports, "SimpleAttributeOperand", { enumerable: true, get: function () { return node_opcua_types_1.SimpleAttributeOperand; } });
|
|
14
|
+
Object.defineProperty(exports, "MonitoringFilter", { enumerable: true, get: function () { return node_opcua_types_1.MonitoringFilter; } });
|
|
15
|
+
Object.defineProperty(exports, "ContentFilterElement", { enumerable: true, get: function () { return node_opcua_types_1.ContentFilterElement; } });
|
|
16
|
+
Object.defineProperty(exports, "ContentFilter", { enumerable: true, get: function () { return node_opcua_types_1.ContentFilter; } });
|
|
17
|
+
Object.defineProperty(exports, "EventFilter", { enumerable: true, get: function () { return node_opcua_types_1.EventFilter; } });
|
|
18
|
+
Object.defineProperty(exports, "DataChangeFilter", { enumerable: true, get: function () { return node_opcua_types_1.DataChangeFilter; } });
|
|
19
19
|
//# sourceMappingURL=imports.js.map
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module node-opcua-service-filter
|
|
3
|
-
*/
|
|
4
|
-
export * from "./imports";
|
|
5
|
-
export * from "./tools_event_filter";
|
|
1
|
+
/**
|
|
2
|
+
* @module node-opcua-service-filter
|
|
3
|
+
*/
|
|
4
|
+
export * from "./imports";
|
|
5
|
+
export * from "./tools_event_filter";
|
package/dist/index.js
CHANGED
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
/**
|
|
18
|
-
* @module node-opcua-service-filter
|
|
19
|
-
*/
|
|
20
|
-
__exportStar(require("./imports"), exports);
|
|
21
|
-
__exportStar(require("./tools_event_filter"), exports);
|
|
22
|
-
// The SimpleAttributeOperand is a simplified form of the AttributeOperand and all of the rules that
|
|
23
|
-
// apply to the AttributeOperand also apply to the SimpleAttributeOperand. The examples provided in
|
|
24
|
-
// B.1 only use AttributeOperand, however, the AttributeOperand can be replaced by a
|
|
25
|
-
// SimpleAttributeOperand whenever all ReferenceTypes in the RelativePath are subtypes of
|
|
26
|
-
// HierarchicalReferences and the targets are Object or Variable Nodes and an Alias is not required
|
|
27
|
-
// typeDefinitionId
|
|
28
|
-
// This parameter restricts the operand to instances of the TypeDefinitionNode or
|
|
29
|
-
// one of its subtypes.
|
|
30
|
-
// { name: "typeDefinitionId", fieldType:"NodeId",documentation:"NodeId of a TypeDefinitionNode."},
|
|
31
|
-
// browsePath
|
|
32
|
-
// A relative path to a Node.
|
|
33
|
-
// This parameter specifies a relative path using a list of BrowseNames instead of
|
|
34
|
-
// the RelativePath structure used in the AttributeOperand. The list of
|
|
35
|
-
// BrowseNames is equivalent to a RelativePath that specifies forward references
|
|
36
|
-
// which are subtypes of the HierarchicalReferences ReferenceType.
|
|
37
|
-
// All Nodes followed by the browsePath shall be of the NodeClass Object or
|
|
38
|
-
// Variable.
|
|
39
|
-
// If this list is empty the Node is the instance of the TypeDefinition.
|
|
40
|
-
// { name: "browsePath", isArray:true, fieldType:"QualifiedName"},
|
|
41
|
-
// Id of the Attribute. The IntegerId is defined in 7.13.
|
|
42
|
-
// The Value Attribute shall be supported by all Servers. The support of other
|
|
43
|
-
// Attributes depends on requirements set in Profiles or other parts of this
|
|
44
|
-
// specification.
|
|
45
|
-
// { name: "attributeId", fieldType:"IntegerId"},
|
|
46
|
-
// This parameter is used to identify a single element of an array, or a single range
|
|
47
|
-
// of indexes for an array. The first element is identified by index 0 (zero).
|
|
48
|
-
// This parameter is ignored if the selected Node is not a Variable or the Value of a
|
|
49
|
-
// Variable is not an array.
|
|
50
|
-
// The parameter is null if not specified.
|
|
51
|
-
// All values in the array are used if this parameter is not specified.
|
|
52
|
-
// The NumericRange type is defined in 7.21.
|
|
53
|
-
// { name: "indexRange", fieldType:"NumericRange"}
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
/**
|
|
18
|
+
* @module node-opcua-service-filter
|
|
19
|
+
*/
|
|
20
|
+
__exportStar(require("./imports"), exports);
|
|
21
|
+
__exportStar(require("./tools_event_filter"), exports);
|
|
22
|
+
// The SimpleAttributeOperand is a simplified form of the AttributeOperand and all of the rules that
|
|
23
|
+
// apply to the AttributeOperand also apply to the SimpleAttributeOperand. The examples provided in
|
|
24
|
+
// B.1 only use AttributeOperand, however, the AttributeOperand can be replaced by a
|
|
25
|
+
// SimpleAttributeOperand whenever all ReferenceTypes in the RelativePath are subtypes of
|
|
26
|
+
// HierarchicalReferences and the targets are Object or Variable Nodes and an Alias is not required
|
|
27
|
+
// typeDefinitionId
|
|
28
|
+
// This parameter restricts the operand to instances of the TypeDefinitionNode or
|
|
29
|
+
// one of its subtypes.
|
|
30
|
+
// { name: "typeDefinitionId", fieldType:"NodeId",documentation:"NodeId of a TypeDefinitionNode."},
|
|
31
|
+
// browsePath
|
|
32
|
+
// A relative path to a Node.
|
|
33
|
+
// This parameter specifies a relative path using a list of BrowseNames instead of
|
|
34
|
+
// the RelativePath structure used in the AttributeOperand. The list of
|
|
35
|
+
// BrowseNames is equivalent to a RelativePath that specifies forward references
|
|
36
|
+
// which are subtypes of the HierarchicalReferences ReferenceType.
|
|
37
|
+
// All Nodes followed by the browsePath shall be of the NodeClass Object or
|
|
38
|
+
// Variable.
|
|
39
|
+
// If this list is empty the Node is the instance of the TypeDefinition.
|
|
40
|
+
// { name: "browsePath", isArray:true, fieldType:"QualifiedName"},
|
|
41
|
+
// Id of the Attribute. The IntegerId is defined in 7.13.
|
|
42
|
+
// The Value Attribute shall be supported by all Servers. The support of other
|
|
43
|
+
// Attributes depends on requirements set in Profiles or other parts of this
|
|
44
|
+
// specification.
|
|
45
|
+
// { name: "attributeId", fieldType:"IntegerId"},
|
|
46
|
+
// This parameter is used to identify a single element of an array, or a single range
|
|
47
|
+
// of indexes for an array. The first element is identified by index 0 (zero).
|
|
48
|
+
// This parameter is ignored if the selected Node is not a Variable or the Value of a
|
|
49
|
+
// Variable is not an array.
|
|
50
|
+
// The parameter is null if not specified.
|
|
51
|
+
// All values in the array are used if this parameter is not specified.
|
|
52
|
+
// The NumericRange type is defined in 7.21.
|
|
53
|
+
// { name: "indexRange", fieldType:"NumericRange"}
|
|
54
54
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module node-opcua-service-filter
|
|
3
|
-
*/
|
|
4
|
-
import { NodeId } from "node-opcua-nodeid";
|
|
5
|
-
import { EventFilter, SimpleAttributeOperand } from "./imports";
|
|
6
|
-
/**
|
|
7
|
-
* helper to construct event filters:
|
|
8
|
-
* construct a simple event filter
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* @example
|
|
12
|
-
*
|
|
13
|
-
* constructEventFilter(["SourceName","Message","ReceiveTime"]);
|
|
14
|
-
*
|
|
15
|
-
* constructEventFilter(["SourceName",{namespaceIndex:2 , "MyData"}]);
|
|
16
|
-
* constructEventFilter(["SourceName","2:MyData" ]);
|
|
17
|
-
*
|
|
18
|
-
* constructEventFilter(["SourceName" ,["EnabledState","EffectiveDisplayName"] ]);
|
|
19
|
-
* constructEventFilter(["SourceName" ,"EnabledState.EffectiveDisplayName" ]);
|
|
20
|
-
*
|
|
21
|
-
*/
|
|
22
|
-
export declare function constructEventFilter(arrayOfNames: string[] | string, conditionTypes?: NodeId[] | NodeId): EventFilter;
|
|
23
|
-
/**
|
|
24
|
-
* @class SimpleAttributeOperand
|
|
25
|
-
* @method toShortString
|
|
26
|
-
* @return {String}
|
|
27
|
-
*
|
|
28
|
-
* @example:
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*/
|
|
32
|
-
export declare function simpleAttributeOperandToShortString(self: SimpleAttributeOperand, addressSpace: any): string;
|
|
1
|
+
/**
|
|
2
|
+
* @module node-opcua-service-filter
|
|
3
|
+
*/
|
|
4
|
+
import { NodeId } from "node-opcua-nodeid";
|
|
5
|
+
import { EventFilter, SimpleAttributeOperand } from "./imports";
|
|
6
|
+
/**
|
|
7
|
+
* helper to construct event filters:
|
|
8
|
+
* construct a simple event filter
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
*
|
|
13
|
+
* constructEventFilter(["SourceName","Message","ReceiveTime"]);
|
|
14
|
+
*
|
|
15
|
+
* constructEventFilter(["SourceName",{namespaceIndex:2 , "MyData"}]);
|
|
16
|
+
* constructEventFilter(["SourceName","2:MyData" ]);
|
|
17
|
+
*
|
|
18
|
+
* constructEventFilter(["SourceName" ,["EnabledState","EffectiveDisplayName"] ]);
|
|
19
|
+
* constructEventFilter(["SourceName" ,"EnabledState.EffectiveDisplayName" ]);
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
export declare function constructEventFilter(arrayOfNames: string[] | string, conditionTypes?: NodeId[] | NodeId): EventFilter;
|
|
23
|
+
/**
|
|
24
|
+
* @class SimpleAttributeOperand
|
|
25
|
+
* @method toShortString
|
|
26
|
+
* @return {String}
|
|
27
|
+
*
|
|
28
|
+
* @example:
|
|
29
|
+
*
|
|
30
|
+
*
|
|
31
|
+
*/
|
|
32
|
+
export declare function simpleAttributeOperandToShortString(self: SimpleAttributeOperand, addressSpace: any): string;
|
|
@@ -1,158 +1,158 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* @module node-opcua-service-filter
|
|
4
|
-
*/
|
|
5
|
-
// tslint:disable:object-literal-shorthand
|
|
6
|
-
// tslint:disable:only-arrow-functions
|
|
7
|
-
// tslint:disable:max-line-length
|
|
8
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.simpleAttributeOperandToShortString = exports.constructEventFilter = void 0;
|
|
10
|
-
const node_opcua_constants_1 = require("node-opcua-constants");
|
|
11
|
-
const node_opcua_data_model_1 = require("node-opcua-data-model");
|
|
12
|
-
const node_opcua_debug_1 = require("node-opcua-debug");
|
|
13
|
-
const node_opcua_nodeid_1 = require("node-opcua-nodeid");
|
|
14
|
-
const imports_1 = require("./imports");
|
|
15
|
-
const debugLog = (0, node_opcua_debug_1.make_debugLog)(__filename);
|
|
16
|
-
const doDebug = (0, node_opcua_debug_1.checkDebugFlag)(__filename);
|
|
17
|
-
/**
|
|
18
|
-
* helper to construct event filters:
|
|
19
|
-
* construct a simple event filter
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
* @example
|
|
23
|
-
*
|
|
24
|
-
* constructEventFilter(["SourceName","Message","ReceiveTime"]);
|
|
25
|
-
*
|
|
26
|
-
* constructEventFilter(["SourceName",{namespaceIndex:2 , "MyData"}]);
|
|
27
|
-
* constructEventFilter(["SourceName","2:MyData" ]);
|
|
28
|
-
*
|
|
29
|
-
* constructEventFilter(["SourceName" ,["EnabledState","EffectiveDisplayName"] ]);
|
|
30
|
-
* constructEventFilter(["SourceName" ,"EnabledState.EffectiveDisplayName" ]);
|
|
31
|
-
*
|
|
32
|
-
*/
|
|
33
|
-
function constructEventFilter(arrayOfNames, conditionTypes) {
|
|
34
|
-
if (!Array.isArray(arrayOfNames)) {
|
|
35
|
-
return constructEventFilter([arrayOfNames], conditionTypes);
|
|
36
|
-
}
|
|
37
|
-
if (conditionTypes && !Array.isArray(conditionTypes)) {
|
|
38
|
-
return constructEventFilter(arrayOfNames, [conditionTypes]);
|
|
39
|
-
}
|
|
40
|
-
// istanbul ignore next
|
|
41
|
-
if (!(arrayOfNames instanceof Array)) {
|
|
42
|
-
throw new Error("internal error");
|
|
43
|
-
}
|
|
44
|
-
// replace "string" element in the form A.B.C into [ "A","B","C"]
|
|
45
|
-
const arrayOfNames2 = arrayOfNames.map((path) => {
|
|
46
|
-
if (typeof path !== "string") {
|
|
47
|
-
return path;
|
|
48
|
-
}
|
|
49
|
-
return path.split(".");
|
|
50
|
-
});
|
|
51
|
-
const arrayOfNames3 = arrayOfNames2.map((path) => {
|
|
52
|
-
if (Array.isArray(path)) {
|
|
53
|
-
return path.map(node_opcua_data_model_1.stringToQualifiedName);
|
|
54
|
-
}
|
|
55
|
-
return path;
|
|
56
|
-
});
|
|
57
|
-
// replace "string" elements in arrayOfName with QualifiedName in namespace 0
|
|
58
|
-
const arrayOfNames4 = arrayOfNames3.map((s) => {
|
|
59
|
-
return typeof s === "string" ? (0, node_opcua_data_model_1.stringToQualifiedName)(s) : s;
|
|
60
|
-
});
|
|
61
|
-
// construct browse paths array
|
|
62
|
-
const browsePaths = arrayOfNames4.map((s) => {
|
|
63
|
-
return Array.isArray(s) ? s : [s];
|
|
64
|
-
});
|
|
65
|
-
// Part 4 page 127:
|
|
66
|
-
// In some cases the same BrowsePath will apply to multiple EventTypes. If the Client specifies the BaseEventType
|
|
67
|
-
// in the SimpleAttributeOperand then the Server shall evaluate the BrowsePath without considering the Type.
|
|
68
|
-
// [..]
|
|
69
|
-
// The SimpleAttributeOperand structure allows the Client to specify any Attribute, however, the Server is only
|
|
70
|
-
// required to support the Value Attribute for Variable Nodes and the NodeId Attribute for Object Nodes.
|
|
71
|
-
// That said, profiles defined in Part 7 may make support for additional Attributes mandatory.
|
|
72
|
-
let selectClauses = browsePaths.map((browsePath) => {
|
|
73
|
-
return new imports_1.SimpleAttributeOperand({
|
|
74
|
-
attributeId: node_opcua_data_model_1.AttributeIds.Value,
|
|
75
|
-
browsePath,
|
|
76
|
-
indexRange: undefined,
|
|
77
|
-
typeDefinitionId: (0, node_opcua_nodeid_1.makeNodeId)(node_opcua_constants_1.ObjectTypeIds.BaseEventType) // i=2041
|
|
78
|
-
});
|
|
79
|
-
});
|
|
80
|
-
if (conditionTypes && conditionTypes instanceof Array) {
|
|
81
|
-
const extraSelectClauses = conditionTypes.map((nodeId) => {
|
|
82
|
-
return new imports_1.SimpleAttributeOperand({
|
|
83
|
-
attributeId: node_opcua_data_model_1.AttributeIds.NodeId,
|
|
84
|
-
browsePath: undefined,
|
|
85
|
-
indexRange: undefined,
|
|
86
|
-
typeDefinitionId: nodeId // conditionType for instance
|
|
87
|
-
});
|
|
88
|
-
});
|
|
89
|
-
selectClauses = selectClauses.concat(extraSelectClauses);
|
|
90
|
-
}
|
|
91
|
-
const filter = new imports_1.EventFilter({
|
|
92
|
-
selectClauses
|
|
93
|
-
whereClause: {
|
|
94
|
-
// ContentFilter
|
|
95
|
-
elements: [
|
|
96
|
-
// ContentFilterElement
|
|
97
|
-
// {
|
|
98
|
-
// filterOperator: FilterOperator.IsNull,
|
|
99
|
-
// filterOperands: [ //
|
|
100
|
-
// new ElementOperand({
|
|
101
|
-
// index: 123
|
|
102
|
-
// }),
|
|
103
|
-
// new AttributeOperand({
|
|
104
|
-
// nodeId: "i=10",
|
|
105
|
-
// alias: "someText",
|
|
106
|
-
// browsePath: { //RelativePath
|
|
107
|
-
//
|
|
108
|
-
// },
|
|
109
|
-
// attributeId: AttributeIds.Value
|
|
110
|
-
// })
|
|
111
|
-
// ]
|
|
112
|
-
// }
|
|
113
|
-
]
|
|
114
|
-
}
|
|
115
|
-
});
|
|
116
|
-
return filter;
|
|
117
|
-
}
|
|
118
|
-
exports.constructEventFilter = constructEventFilter;
|
|
119
|
-
/**
|
|
120
|
-
* @class SimpleAttributeOperand
|
|
121
|
-
* @method toPath
|
|
122
|
-
* @return {String}
|
|
123
|
-
*
|
|
124
|
-
* @example:
|
|
125
|
-
*
|
|
126
|
-
*
|
|
127
|
-
*/
|
|
128
|
-
function simpleAttributeOperandToPath(self) {
|
|
129
|
-
if (!self.browsePath) {
|
|
130
|
-
return "";
|
|
131
|
-
}
|
|
132
|
-
return self.browsePath
|
|
133
|
-
.map((a) => {
|
|
134
|
-
return a.name;
|
|
135
|
-
})
|
|
136
|
-
.join("/");
|
|
137
|
-
}
|
|
138
|
-
/**
|
|
139
|
-
* @class SimpleAttributeOperand
|
|
140
|
-
* @method toShortString
|
|
141
|
-
* @return {String}
|
|
142
|
-
*
|
|
143
|
-
* @example:
|
|
144
|
-
*
|
|
145
|
-
*
|
|
146
|
-
*/
|
|
147
|
-
function simpleAttributeOperandToShortString(self, addressSpace // Address Space
|
|
148
|
-
) {
|
|
149
|
-
let str = "";
|
|
150
|
-
if (addressSpace) {
|
|
151
|
-
const n = addressSpace.findNode(self.typeDefinitionId);
|
|
152
|
-
str += n.BrowseName.toString();
|
|
153
|
-
}
|
|
154
|
-
str += "[" + self.typeDefinitionId.toString() + "]" + simpleAttributeOperandToPath(self);
|
|
155
|
-
return str;
|
|
156
|
-
}
|
|
157
|
-
exports.simpleAttributeOperandToShortString = simpleAttributeOperandToShortString;
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @module node-opcua-service-filter
|
|
4
|
+
*/
|
|
5
|
+
// tslint:disable:object-literal-shorthand
|
|
6
|
+
// tslint:disable:only-arrow-functions
|
|
7
|
+
// tslint:disable:max-line-length
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.simpleAttributeOperandToShortString = exports.constructEventFilter = void 0;
|
|
10
|
+
const node_opcua_constants_1 = require("node-opcua-constants");
|
|
11
|
+
const node_opcua_data_model_1 = require("node-opcua-data-model");
|
|
12
|
+
const node_opcua_debug_1 = require("node-opcua-debug");
|
|
13
|
+
const node_opcua_nodeid_1 = require("node-opcua-nodeid");
|
|
14
|
+
const imports_1 = require("./imports");
|
|
15
|
+
const debugLog = (0, node_opcua_debug_1.make_debugLog)(__filename);
|
|
16
|
+
const doDebug = (0, node_opcua_debug_1.checkDebugFlag)(__filename);
|
|
17
|
+
/**
|
|
18
|
+
* helper to construct event filters:
|
|
19
|
+
* construct a simple event filter
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
*
|
|
24
|
+
* constructEventFilter(["SourceName","Message","ReceiveTime"]);
|
|
25
|
+
*
|
|
26
|
+
* constructEventFilter(["SourceName",{namespaceIndex:2 , "MyData"}]);
|
|
27
|
+
* constructEventFilter(["SourceName","2:MyData" ]);
|
|
28
|
+
*
|
|
29
|
+
* constructEventFilter(["SourceName" ,["EnabledState","EffectiveDisplayName"] ]);
|
|
30
|
+
* constructEventFilter(["SourceName" ,"EnabledState.EffectiveDisplayName" ]);
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
function constructEventFilter(arrayOfNames, conditionTypes) {
|
|
34
|
+
if (!Array.isArray(arrayOfNames)) {
|
|
35
|
+
return constructEventFilter([arrayOfNames], conditionTypes);
|
|
36
|
+
}
|
|
37
|
+
if (conditionTypes && !Array.isArray(conditionTypes)) {
|
|
38
|
+
return constructEventFilter(arrayOfNames, [conditionTypes]);
|
|
39
|
+
}
|
|
40
|
+
// istanbul ignore next
|
|
41
|
+
if (!(arrayOfNames instanceof Array)) {
|
|
42
|
+
throw new Error("internal error");
|
|
43
|
+
}
|
|
44
|
+
// replace "string" element in the form A.B.C into [ "A","B","C"]
|
|
45
|
+
const arrayOfNames2 = arrayOfNames.map((path) => {
|
|
46
|
+
if (typeof path !== "string") {
|
|
47
|
+
return path;
|
|
48
|
+
}
|
|
49
|
+
return path.split(".");
|
|
50
|
+
});
|
|
51
|
+
const arrayOfNames3 = arrayOfNames2.map((path) => {
|
|
52
|
+
if (Array.isArray(path)) {
|
|
53
|
+
return path.map(node_opcua_data_model_1.stringToQualifiedName);
|
|
54
|
+
}
|
|
55
|
+
return path;
|
|
56
|
+
});
|
|
57
|
+
// replace "string" elements in arrayOfName with QualifiedName in namespace 0
|
|
58
|
+
const arrayOfNames4 = arrayOfNames3.map((s) => {
|
|
59
|
+
return typeof s === "string" ? (0, node_opcua_data_model_1.stringToQualifiedName)(s) : s;
|
|
60
|
+
});
|
|
61
|
+
// construct browse paths array
|
|
62
|
+
const browsePaths = arrayOfNames4.map((s) => {
|
|
63
|
+
return Array.isArray(s) ? s : [s];
|
|
64
|
+
});
|
|
65
|
+
// Part 4 page 127:
|
|
66
|
+
// In some cases the same BrowsePath will apply to multiple EventTypes. If the Client specifies the BaseEventType
|
|
67
|
+
// in the SimpleAttributeOperand then the Server shall evaluate the BrowsePath without considering the Type.
|
|
68
|
+
// [..]
|
|
69
|
+
// The SimpleAttributeOperand structure allows the Client to specify any Attribute, however, the Server is only
|
|
70
|
+
// required to support the Value Attribute for Variable Nodes and the NodeId Attribute for Object Nodes.
|
|
71
|
+
// That said, profiles defined in Part 7 may make support for additional Attributes mandatory.
|
|
72
|
+
let selectClauses = browsePaths.map((browsePath) => {
|
|
73
|
+
return new imports_1.SimpleAttributeOperand({
|
|
74
|
+
attributeId: node_opcua_data_model_1.AttributeIds.Value,
|
|
75
|
+
browsePath,
|
|
76
|
+
indexRange: undefined,
|
|
77
|
+
typeDefinitionId: (0, node_opcua_nodeid_1.makeNodeId)(node_opcua_constants_1.ObjectTypeIds.BaseEventType) // i=2041
|
|
78
|
+
});
|
|
79
|
+
});
|
|
80
|
+
if (conditionTypes && conditionTypes instanceof Array) {
|
|
81
|
+
const extraSelectClauses = conditionTypes.map((nodeId) => {
|
|
82
|
+
return new imports_1.SimpleAttributeOperand({
|
|
83
|
+
attributeId: node_opcua_data_model_1.AttributeIds.NodeId,
|
|
84
|
+
browsePath: undefined,
|
|
85
|
+
indexRange: undefined,
|
|
86
|
+
typeDefinitionId: nodeId // conditionType for instance
|
|
87
|
+
});
|
|
88
|
+
});
|
|
89
|
+
selectClauses = selectClauses.concat(extraSelectClauses);
|
|
90
|
+
}
|
|
91
|
+
const filter = new imports_1.EventFilter({
|
|
92
|
+
selectClauses,
|
|
93
|
+
whereClause: {
|
|
94
|
+
// ContentFilter
|
|
95
|
+
elements: [
|
|
96
|
+
// ContentFilterElement
|
|
97
|
+
// {
|
|
98
|
+
// filterOperator: FilterOperator.IsNull,
|
|
99
|
+
// filterOperands: [ //
|
|
100
|
+
// new ElementOperand({
|
|
101
|
+
// index: 123
|
|
102
|
+
// }),
|
|
103
|
+
// new AttributeOperand({
|
|
104
|
+
// nodeId: "i=10",
|
|
105
|
+
// alias: "someText",
|
|
106
|
+
// browsePath: { //RelativePath
|
|
107
|
+
//
|
|
108
|
+
// },
|
|
109
|
+
// attributeId: AttributeIds.Value
|
|
110
|
+
// })
|
|
111
|
+
// ]
|
|
112
|
+
// }
|
|
113
|
+
]
|
|
114
|
+
}
|
|
115
|
+
});
|
|
116
|
+
return filter;
|
|
117
|
+
}
|
|
118
|
+
exports.constructEventFilter = constructEventFilter;
|
|
119
|
+
/**
|
|
120
|
+
* @class SimpleAttributeOperand
|
|
121
|
+
* @method toPath
|
|
122
|
+
* @return {String}
|
|
123
|
+
*
|
|
124
|
+
* @example:
|
|
125
|
+
*
|
|
126
|
+
*
|
|
127
|
+
*/
|
|
128
|
+
function simpleAttributeOperandToPath(self) {
|
|
129
|
+
if (!self.browsePath) {
|
|
130
|
+
return "";
|
|
131
|
+
}
|
|
132
|
+
return self.browsePath
|
|
133
|
+
.map((a) => {
|
|
134
|
+
return a.name;
|
|
135
|
+
})
|
|
136
|
+
.join("/");
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* @class SimpleAttributeOperand
|
|
140
|
+
* @method toShortString
|
|
141
|
+
* @return {String}
|
|
142
|
+
*
|
|
143
|
+
* @example:
|
|
144
|
+
*
|
|
145
|
+
*
|
|
146
|
+
*/
|
|
147
|
+
function simpleAttributeOperandToShortString(self, addressSpace // Address Space
|
|
148
|
+
) {
|
|
149
|
+
let str = "";
|
|
150
|
+
if (addressSpace) {
|
|
151
|
+
const n = addressSpace.findNode(self.typeDefinitionId);
|
|
152
|
+
str += n.BrowseName.toString();
|
|
153
|
+
}
|
|
154
|
+
str += "[" + self.typeDefinitionId.toString() + "]" + simpleAttributeOperandToPath(self);
|
|
155
|
+
return str;
|
|
156
|
+
}
|
|
157
|
+
exports.simpleAttributeOperandToShortString = simpleAttributeOperandToShortString;
|
|
158
158
|
//# sourceMappingURL=tools_event_filter.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools_event_filter.js","sourceRoot":"","sources":["../source/tools_event_filter.ts"],"names":[],"mappings":";AAAA;;GAEG;AACH,0CAA0C;AAC1C,sCAAsC;AACtC,iCAAiC;;;AAGjC,+DAAqD;AACrD,iEAA4E;AAC5E,uDAAiE;AACjE,yDAAkF;AAGlF,uCAAgE;AAEhE,MAAM,QAAQ,GAAG,IAAA,gCAAa,EAAC,UAAU,CAAC,CAAC;AAC3C,MAAM,OAAO,GAAG,IAAA,iCAAc,EAAC,UAAU,CAAC,CAAC;AAE3C;;;;;;;;;;;;;;;GAeG;AACH,SAAgB,oBAAoB,CAAC,YAA+B,EAAE,cAAkC;IACpG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE;QAC9B,OAAO,oBAAoB,CAAC,CAAC,YAAY,CAAC,EAAE,cAAc,CAAC,CAAC;KAC/D;IACD,IAAI,cAAc,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,cAAc,CAAC,EAAE;QAClD,OAAO,oBAAoB,CAAC,YAAY,EAAE,CAAC,cAAc,CAAC,CAAC,CAAC;KAC/D;IACD,uBAAuB;IACvB,IAAI,CAAC,CAAC,YAAY,YAAY,KAAK,CAAC,EAAE;QAClC,MAAM,IAAI,KAAK,CAAC,gBAAgB,CAAC,CAAC;KACrC;IACD,iEAAiE;IACjE,MAAM,aAAa,GAAG,YAAY,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;QAC5C,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE;YAC1B,OAAO,IAAI,CAAC;SACf;QACD,OAAO,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAC3B,CAAC,CAAC,CAAC;IAEH,MAAM,aAAa,GAAG,aAAa,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE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,CAAC,IAAI,CAAC,gBAAgB,CAAE,CAAC;QACxD,GAAG,IAAI,CAAC,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC;KAClC;IACD,GAAG,IAAI,GAAG,GAAG,IAAI,CAAC,gBAAgB,CAAC,QAAQ,EAAE,GAAG,GAAG,GAAG,4BAA4B,CAAC,IAAI,CAAC,CAAC;IACzF,OAAO,GAAG,CAAC;AACf,CAAC;AAXD,kFAWC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-opcua-service-filter",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.72.0",
|
|
4
4
|
"description": "pure nodejs OPCUA SDK - module -service-filter",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -19,13 +19,13 @@
|
|
|
19
19
|
"node-opcua-factory": "2.71.0",
|
|
20
20
|
"node-opcua-nodeid": "2.71.0",
|
|
21
21
|
"node-opcua-numeric-range": "2.71.0",
|
|
22
|
-
"node-opcua-service-translate-browse-path": "2.
|
|
22
|
+
"node-opcua-service-translate-browse-path": "2.72.0",
|
|
23
23
|
"node-opcua-status-code": "2.71.0",
|
|
24
|
-
"node-opcua-types": "2.
|
|
24
|
+
"node-opcua-types": "2.72.0",
|
|
25
25
|
"node-opcua-variant": "2.71.0"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"node-opcua-service-secure-channel": "2.
|
|
28
|
+
"node-opcua-service-secure-channel": "2.72.0",
|
|
29
29
|
"should": "^13.2.3"
|
|
30
30
|
},
|
|
31
31
|
"author": "Etienne Rossignon",
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"internet of things"
|
|
44
44
|
],
|
|
45
45
|
"homepage": "http://node-opcua.github.io/",
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "3c5f00e20bf5bef91a1ca3663af149b903760e5c"
|
|
47
47
|
}
|