node-opcua-service-filter 2.76.0 → 2.76.2

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.
@@ -1,9 +1,9 @@
1
- import { SimpleAttributeOperand } from "node-opcua-types";
2
- import { Variant } from "node-opcua-variant";
3
- import { FilterContext } from "./filter_context";
4
- /**
5
- *
6
- * extract a eventField from a event node, matching the given selectClause
7
- */
8
- export declare function extractEventField(context: FilterContext, operand: SimpleAttributeOperand): Variant;
9
- export declare function extractEventFieldsBase(context: FilterContext, selectClauses: SimpleAttributeOperand[]): Variant[];
1
+ import { SimpleAttributeOperand } from "node-opcua-types";
2
+ import { Variant } from "node-opcua-variant";
3
+ import { FilterContext } from "./filter_context";
4
+ /**
5
+ *
6
+ * extract a eventField from a event node, matching the given selectClause
7
+ */
8
+ export declare function extractEventField(context: FilterContext, operand: SimpleAttributeOperand): Variant;
9
+ export declare function extractEventFieldsBase(context: FilterContext, selectClauses: SimpleAttributeOperand[]): Variant[];
@@ -1,53 +1,53 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.extractEventFieldsBase = exports.extractEventField = void 0;
4
- const node_opcua_assert_1 = require("node-opcua-assert");
5
- const node_opcua_data_model_1 = require("node-opcua-data-model");
6
- const node_opcua_debug_1 = require("node-opcua-debug");
7
- const node_opcua_nodeid_1 = require("node-opcua-nodeid");
8
- const node_opcua_types_1 = require("node-opcua-types");
9
- const node_opcua_variant_1 = require("node-opcua-variant");
10
- const resolve_operand_1 = require("./resolve_operand");
11
- const warningLog = (0, node_opcua_debug_1.make_warningLog)("FILTER");
12
- const conditionTypeNodeId = (0, node_opcua_nodeid_1.resolveNodeId)("ConditionType");
13
- /**
14
- *
15
- * extract a eventField from a event node, matching the given selectClause
16
- */
17
- function extractEventField(context, operand) {
18
- (0, node_opcua_assert_1.assert)(operand instanceof node_opcua_types_1.SimpleAttributeOperand);
19
- operand.browsePath = operand.browsePath || [];
20
- if (operand.browsePath.length === 0 && operand.attributeId === node_opcua_data_model_1.AttributeIds.NodeId) {
21
- // "ns=0;i=2782" => ConditionType
22
- // "ns=0;i=2041" => BaseEventType
23
- if (!(0, node_opcua_nodeid_1.sameNodeId)(operand.typeDefinitionId, conditionTypeNodeId)) {
24
- // not a ConditionType
25
- // but could be on of its derived type. for instance ns=0;i=2881 => AcknowledgeableConditionType
26
- if (!context.isSubtypeOf(operand.typeDefinitionId, conditionTypeNodeId)) {
27
- warningLog(" ", operand.typeDefinitionId.toString());
28
- warningLog("this case is not handled yet : selectClause.typeDefinitionId = " + operand.typeDefinitionId.toString());
29
- warningLog(operand.toString());
30
- return new node_opcua_variant_1.Variant({ dataType: node_opcua_variant_1.DataType.NodeId, value: context.eventSource });
31
- }
32
- }
33
- const eventSourceTypeDefinition = context.getTypeDefinition(context.eventSource);
34
- if (!eventSourceTypeDefinition) {
35
- // eventSource is a EventType class
36
- return new node_opcua_variant_1.Variant();
37
- }
38
- if (!context.isSubtypeOf(eventSourceTypeDefinition, conditionTypeNodeId)) {
39
- return new node_opcua_variant_1.Variant();
40
- }
41
- // Yeh : our EventType is a Condition Type !
42
- return new node_opcua_variant_1.Variant({ dataType: node_opcua_variant_1.DataType.NodeId, value: context.eventSource });
43
- }
44
- return (0, resolve_operand_1.resolveOperand)(context, operand);
45
- }
46
- exports.extractEventField = extractEventField;
47
- function extractEventFieldsBase(context, selectClauses) {
48
- (0, node_opcua_assert_1.assert)(Array.isArray(selectClauses));
49
- (0, node_opcua_assert_1.assert)(selectClauses.length === 0 || selectClauses[0] instanceof node_opcua_types_1.SimpleAttributeOperand);
50
- return selectClauses.map(extractEventField.bind(null, context));
51
- }
52
- exports.extractEventFieldsBase = extractEventFieldsBase;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.extractEventFieldsBase = exports.extractEventField = void 0;
4
+ const node_opcua_assert_1 = require("node-opcua-assert");
5
+ const node_opcua_data_model_1 = require("node-opcua-data-model");
6
+ const node_opcua_debug_1 = require("node-opcua-debug");
7
+ const node_opcua_nodeid_1 = require("node-opcua-nodeid");
8
+ const node_opcua_types_1 = require("node-opcua-types");
9
+ const node_opcua_variant_1 = require("node-opcua-variant");
10
+ const resolve_operand_1 = require("./resolve_operand");
11
+ const warningLog = (0, node_opcua_debug_1.make_warningLog)("FILTER");
12
+ const conditionTypeNodeId = (0, node_opcua_nodeid_1.resolveNodeId)("ConditionType");
13
+ /**
14
+ *
15
+ * extract a eventField from a event node, matching the given selectClause
16
+ */
17
+ function extractEventField(context, operand) {
18
+ (0, node_opcua_assert_1.assert)(operand instanceof node_opcua_types_1.SimpleAttributeOperand);
19
+ operand.browsePath = operand.browsePath || [];
20
+ if (operand.browsePath.length === 0 && operand.attributeId === node_opcua_data_model_1.AttributeIds.NodeId) {
21
+ // "ns=0;i=2782" => ConditionType
22
+ // "ns=0;i=2041" => BaseEventType
23
+ if (!(0, node_opcua_nodeid_1.sameNodeId)(operand.typeDefinitionId, conditionTypeNodeId)) {
24
+ // not a ConditionType
25
+ // but could be on of its derived type. for instance ns=0;i=2881 => AcknowledgeableConditionType
26
+ if (!context.isSubtypeOf(operand.typeDefinitionId, conditionTypeNodeId)) {
27
+ warningLog(" ", operand.typeDefinitionId.toString());
28
+ warningLog("this case is not handled yet : selectClause.typeDefinitionId = " + operand.typeDefinitionId.toString());
29
+ warningLog(operand.toString());
30
+ return new node_opcua_variant_1.Variant({ dataType: node_opcua_variant_1.DataType.NodeId, value: context.eventSource });
31
+ }
32
+ }
33
+ const eventSourceTypeDefinition = context.getTypeDefinition(context.eventSource);
34
+ if (!eventSourceTypeDefinition) {
35
+ // eventSource is a EventType class
36
+ return new node_opcua_variant_1.Variant();
37
+ }
38
+ if (!context.isSubtypeOf(eventSourceTypeDefinition, conditionTypeNodeId)) {
39
+ return new node_opcua_variant_1.Variant();
40
+ }
41
+ // Yeh : our EventType is a Condition Type !
42
+ return new node_opcua_variant_1.Variant({ dataType: node_opcua_variant_1.DataType.NodeId, value: context.eventSource });
43
+ }
44
+ return (0, resolve_operand_1.resolveOperand)(context, operand);
45
+ }
46
+ exports.extractEventField = extractEventField;
47
+ function extractEventFieldsBase(context, selectClauses) {
48
+ (0, node_opcua_assert_1.assert)(Array.isArray(selectClauses));
49
+ (0, node_opcua_assert_1.assert)(selectClauses.length === 0 || selectClauses[0] instanceof node_opcua_types_1.SimpleAttributeOperand);
50
+ return selectClauses.map(extractEventField.bind(null, context));
51
+ }
52
+ exports.extractEventFieldsBase = extractEventFieldsBase;
53
53
  //# sourceMappingURL=extract_event_field.js.map
@@ -1,11 +1,11 @@
1
- import { NodeId, NodeIdLike } from "node-opcua-nodeid";
2
- import { BrowsePath, NodeClass } from "node-opcua-types";
3
- import { Variant } from "node-opcua-variant";
4
- export interface FilterContext {
5
- readonly eventSource: NodeId;
6
- isSubtypeOf(nodeId: NodeId, baseType: NodeId): boolean;
7
- getTypeDefinition(nodeId: NodeId): NodeId | null;
8
- readNodeValue(nodeId: NodeIdLike): Variant;
9
- getNodeClass(nodeId: NodeId): NodeClass;
10
- browsePath(browsePath: BrowsePath): NodeId | null;
11
- }
1
+ import { NodeId, NodeIdLike } from "node-opcua-nodeid";
2
+ import { BrowsePath, NodeClass } from "node-opcua-types";
3
+ import { Variant } from "node-opcua-variant";
4
+ export interface FilterContext {
5
+ readonly eventSource: NodeId;
6
+ isSubtypeOf(nodeId: NodeId, baseType: NodeId): boolean;
7
+ getTypeDefinition(nodeId: NodeId): NodeId | null;
8
+ readNodeValue(nodeId: NodeIdLike): Variant;
9
+ getNodeClass(nodeId: NodeId): NodeClass;
10
+ browsePath(browsePath: BrowsePath): NodeId | null;
11
+ }
@@ -1,3 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  //# sourceMappingURL=filter_context.js.map
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,13 +1,13 @@
1
- /**
2
- * @module node-opcua-service-filter
3
- */
4
- export * from "./check_event_clause";
5
- export * from "./check_where_clause";
6
- export * from "./extract_event_field";
7
- export * from "./filter_context";
8
- export * from "./imports";
9
- export * from "./make_content_filter";
10
- export * from "./on_address_space/extract_event_fields";
11
- export * from "./resolve_operand";
12
- export * from "./tools_event_filter";
13
- export * from "./on_address_space/filter_context_on_address_space";
1
+ /**
2
+ * @module node-opcua-service-filter
3
+ */
4
+ export * from "./check_event_clause";
5
+ export * from "./check_where_clause";
6
+ export * from "./extract_event_field";
7
+ export * from "./filter_context";
8
+ export * from "./imports";
9
+ export * from "./make_content_filter";
10
+ export * from "./on_address_space/extract_event_fields";
11
+ export * from "./resolve_operand";
12
+ export * from "./tools_event_filter";
13
+ export * from "./on_address_space/filter_context_on_address_space";
package/dist/index.js CHANGED
@@ -1,62 +1,62 @@
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("./check_event_clause"), exports);
21
- __exportStar(require("./check_where_clause"), exports);
22
- __exportStar(require("./extract_event_field"), exports);
23
- __exportStar(require("./filter_context"), exports);
24
- __exportStar(require("./imports"), exports);
25
- __exportStar(require("./make_content_filter"), exports);
26
- __exportStar(require("./on_address_space/extract_event_fields"), exports);
27
- __exportStar(require("./resolve_operand"), exports);
28
- __exportStar(require("./tools_event_filter"), exports);
29
- __exportStar(require("./on_address_space/filter_context_on_address_space"), exports);
30
- // The SimpleAttributeOperand is a simplified form of the AttributeOperand and all of the rules that
31
- // apply to the AttributeOperand also apply to the SimpleAttributeOperand. The examples provided in
32
- // B.1 only use AttributeOperand, however, the AttributeOperand can be replaced by a
33
- // SimpleAttributeOperand whenever all ReferenceTypes in the RelativePath are subtypes of
34
- // HierarchicalReferences and the targets are Object or Variable Nodes and an Alias is not required
35
- // typeDefinitionId
36
- // This parameter restricts the operand to instances of the TypeDefinitionNode or
37
- // one of its subtypes.
38
- // { name: "typeDefinitionId", fieldType:"NodeId",documentation:"NodeId of a TypeDefinitionNode."},
39
- // browsePath
40
- // A relative path to a Node.
41
- // This parameter specifies a relative path using a list of BrowseNames instead of
42
- // the RelativePath structure used in the AttributeOperand. The list of
43
- // BrowseNames is equivalent to a RelativePath that specifies forward references
44
- // which are subtypes of the HierarchicalReferences ReferenceType.
45
- // All Nodes followed by the browsePath shall be of the NodeClass Object or
46
- // Variable.
47
- // If this list is empty the Node is the instance of the TypeDefinition.
48
- // { name: "browsePath", isArray:true, fieldType:"QualifiedName"},
49
- // Id of the Attribute. The IntegerId is defined in 7.13.
50
- // The Value Attribute shall be supported by all Servers. The support of other
51
- // Attributes depends on requirements set in Profiles or other parts of this
52
- // specification.
53
- // { name: "attributeId", fieldType:"IntegerId"},
54
- // This parameter is used to identify a single element of an array, or a single range
55
- // of indexes for an array. The first element is identified by index 0 (zero).
56
- // This parameter is ignored if the selected Node is not a Variable or the Value of a
57
- // Variable is not an array.
58
- // The parameter is null if not specified.
59
- // All values in the array are used if this parameter is not specified.
60
- // The NumericRange type is defined in 7.21.
61
- // { 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("./check_event_clause"), exports);
21
+ __exportStar(require("./check_where_clause"), exports);
22
+ __exportStar(require("./extract_event_field"), exports);
23
+ __exportStar(require("./filter_context"), exports);
24
+ __exportStar(require("./imports"), exports);
25
+ __exportStar(require("./make_content_filter"), exports);
26
+ __exportStar(require("./on_address_space/extract_event_fields"), exports);
27
+ __exportStar(require("./resolve_operand"), exports);
28
+ __exportStar(require("./tools_event_filter"), exports);
29
+ __exportStar(require("./on_address_space/filter_context_on_address_space"), exports);
30
+ // The SimpleAttributeOperand is a simplified form of the AttributeOperand and all of the rules that
31
+ // apply to the AttributeOperand also apply to the SimpleAttributeOperand. The examples provided in
32
+ // B.1 only use AttributeOperand, however, the AttributeOperand can be replaced by a
33
+ // SimpleAttributeOperand whenever all ReferenceTypes in the RelativePath are subtypes of
34
+ // HierarchicalReferences and the targets are Object or Variable Nodes and an Alias is not required
35
+ // typeDefinitionId
36
+ // This parameter restricts the operand to instances of the TypeDefinitionNode or
37
+ // one of its subtypes.
38
+ // { name: "typeDefinitionId", fieldType:"NodeId",documentation:"NodeId of a TypeDefinitionNode."},
39
+ // browsePath
40
+ // A relative path to a Node.
41
+ // This parameter specifies a relative path using a list of BrowseNames instead of
42
+ // the RelativePath structure used in the AttributeOperand. The list of
43
+ // BrowseNames is equivalent to a RelativePath that specifies forward references
44
+ // which are subtypes of the HierarchicalReferences ReferenceType.
45
+ // All Nodes followed by the browsePath shall be of the NodeClass Object or
46
+ // Variable.
47
+ // If this list is empty the Node is the instance of the TypeDefinition.
48
+ // { name: "browsePath", isArray:true, fieldType:"QualifiedName"},
49
+ // Id of the Attribute. The IntegerId is defined in 7.13.
50
+ // The Value Attribute shall be supported by all Servers. The support of other
51
+ // Attributes depends on requirements set in Profiles or other parts of this
52
+ // specification.
53
+ // { name: "attributeId", fieldType:"IntegerId"},
54
+ // This parameter is used to identify a single element of an array, or a single range
55
+ // of indexes for an array. The first element is identified by index 0 (zero).
56
+ // This parameter is ignored if the selected Node is not a Variable or the Value of a
57
+ // Variable is not an array.
58
+ // The parameter is null if not specified.
59
+ // All values in the array are used if this parameter is not specified.
60
+ // The NumericRange type is defined in 7.21.
61
+ // { name: "indexRange", fieldType:"NumericRange"}
62
62
  //# sourceMappingURL=index.js.map
@@ -1,22 +1,22 @@
1
- /**
2
- * @module node-opcua-service-filter
3
- */
4
- import { DataType } from "node-opcua-basic-types";
5
- import { AttributeIds } from "node-opcua-data-model";
6
- import { NodeIdLike } from "node-opcua-nodeid";
7
- import { AttributeOperand, ContentFilter, ContentFilterElement, ContentFilterElementOptions, LiteralOperand, SimpleAttributeOperand } from "./imports";
8
- export declare function ofType(nodeId: NodeIdLike): ContentFilterElement;
9
- export declare function l(dataType: DataType, value: any): LiteralOperand;
10
- export declare function n(n: NodeIdLike): LiteralOperand;
11
- export declare function s(attributeId: AttributeIds, path: string): SimpleAttributeOperand;
12
- declare type A = LiteralOperand | SimpleAttributeOperand | AttributeOperand | ContentFilterElement;
13
- export declare function or(a: A, b: A): ContentFilterElement;
14
- export declare function and(a: A, b: A): ContentFilterElement;
15
- export declare function lessThan(a: A, b: A): ContentFilterElement;
16
- export declare function LessThanOrEqual(a: A, b: A): ContentFilterElement;
17
- export declare function greaterThanOrEqual(a: A, b: A): ContentFilterElement;
18
- export declare function greaterThan(a: A, b: A): ContentFilterElement;
19
- export declare function inList(a: A, l: A[]): ContentFilterElement;
20
- export declare function makeContentFilterElements(o: ContentFilterElement): ContentFilterElement[];
21
- export declare function makeContentFilter(o: ContentFilterElementOptions): ContentFilter;
22
- export {};
1
+ /**
2
+ * @module node-opcua-service-filter
3
+ */
4
+ import { DataType } from "node-opcua-basic-types";
5
+ import { AttributeIds } from "node-opcua-data-model";
6
+ import { NodeIdLike } from "node-opcua-nodeid";
7
+ import { AttributeOperand, ContentFilter, ContentFilterElement, ContentFilterElementOptions, LiteralOperand, SimpleAttributeOperand } from "./imports";
8
+ export declare function ofType(nodeId: NodeIdLike): ContentFilterElement;
9
+ export declare function l(dataType: DataType, value: any): LiteralOperand;
10
+ export declare function n(n: NodeIdLike): LiteralOperand;
11
+ export declare function s(attributeId: AttributeIds, path: string): SimpleAttributeOperand;
12
+ declare type A = LiteralOperand | SimpleAttributeOperand | AttributeOperand | ContentFilterElement;
13
+ export declare function or(a: A, b: A): ContentFilterElement;
14
+ export declare function and(a: A, b: A): ContentFilterElement;
15
+ export declare function lessThan(a: A, b: A): ContentFilterElement;
16
+ export declare function LessThanOrEqual(a: A, b: A): ContentFilterElement;
17
+ export declare function greaterThanOrEqual(a: A, b: A): ContentFilterElement;
18
+ export declare function greaterThan(a: A, b: A): ContentFilterElement;
19
+ export declare function inList(a: A, l: A[]): ContentFilterElement;
20
+ export declare function makeContentFilterElements(o: ContentFilterElement): ContentFilterElement[];
21
+ export declare function makeContentFilter(o: ContentFilterElementOptions): ContentFilter;
22
+ export {};