node-opcua-service-subscription 2.71.0 → 2.72.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,27 +1,27 @@
1
- import { Variant } from "node-opcua-variant";
2
- export declare enum DeadbandType {
3
- None = 0,
4
- Absolute = 1,
5
- Percent = 2,
6
- Invalid = 4096
7
- }
8
- export declare type NumberType = number | number[];
9
- export interface PseudoRange {
10
- low: number;
11
- high: number;
12
- }
13
- /**
14
- * @method isOutsideDeadbandNone
15
- * @return true if the element is in deadBand
16
- */
17
- export declare function isOutsideDeadbandNone(variant1: Variant, variant2: Variant): boolean;
18
- /**
19
- * @method isOutsideDeadbandAbsolute
20
- * @return true if the element is in deadBand
21
- */
22
- export declare function isOutsideDeadbandAbsolute(variant1: Variant, variant2: Variant, deadbandValue: number): boolean;
23
- /**
24
- * @method isOutsideDeadband
25
- * @return true if the element is outside deadBand
26
- */
27
- export declare function isOutsideDeadbandPercent(variant1: Variant, variant2: Variant, deadbandValue: number, range: PseudoRange): boolean;
1
+ import { Variant } from "node-opcua-variant";
2
+ export declare enum DeadbandType {
3
+ None = 0,
4
+ Absolute = 1,
5
+ Percent = 2,
6
+ Invalid = 4096
7
+ }
8
+ export declare type NumberType = number | number[];
9
+ export interface PseudoRange {
10
+ low: number;
11
+ high: number;
12
+ }
13
+ /**
14
+ * @method isOutsideDeadbandNone
15
+ * @return true if the element is in deadBand
16
+ */
17
+ export declare function isOutsideDeadbandNone(variant1: Variant, variant2: Variant): boolean;
18
+ /**
19
+ * @method isOutsideDeadbandAbsolute
20
+ * @return true if the element is in deadBand
21
+ */
22
+ export declare function isOutsideDeadbandAbsolute(variant1: Variant, variant2: Variant, deadbandValue: number): boolean;
23
+ /**
24
+ * @method isOutsideDeadband
25
+ * @return true if the element is outside deadBand
26
+ */
27
+ export declare function isOutsideDeadbandPercent(variant1: Variant, variant2: Variant, deadbandValue: number, range: PseudoRange): boolean;
@@ -1,154 +1,154 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isOutsideDeadbandPercent = exports.isOutsideDeadbandAbsolute = exports.isOutsideDeadbandNone = exports.DeadbandType = void 0;
4
- /**
5
- * @module node-opcua-service-subscription
6
- */
7
- const node_opcua_assert_1 = require("node-opcua-assert");
8
- const node_opcua_variant_1 = require("node-opcua-variant");
9
- var DeadbandType;
10
- (function (DeadbandType) {
11
- DeadbandType[DeadbandType["None"] = 0] = "None";
12
- DeadbandType[DeadbandType["Absolute"] = 1] = "Absolute";
13
- DeadbandType[DeadbandType["Percent"] = 2] = "Percent";
14
- DeadbandType[DeadbandType["Invalid"] = 4096] = "Invalid";
15
- })(DeadbandType = exports.DeadbandType || (exports.DeadbandType = {}));
16
- /**
17
- * @returns true if the difference between value1 and value2 is greater than absoluteDeadband
18
- */
19
- function _isOutsideDeadbandScalar(value1, value2, dataType, absoluteDeadband) {
20
- let diff;
21
- if (dataType === node_opcua_variant_1.DataType.UInt64 || dataType === node_opcua_variant_1.DataType.Int64) {
22
- // istanbul ignore next
23
- if (!(value1 instanceof Array && value2 instanceof Array)) {
24
- throw new Error("Invalid");
25
- }
26
- const h1 = value1[0]; // high
27
- const h2 = value2[0];
28
- if (h1 !== h2) {
29
- diff = (h1 - h2) * 4294967295;
30
- if (Math.abs(diff) > absoluteDeadband) {
31
- return true;
32
- }
33
- }
34
- diff = value1[1] - value2[1];
35
- (0, node_opcua_assert_1.assert)(typeof diff === "number" && isFinite(diff));
36
- return Math.abs(diff) > absoluteDeadband;
37
- }
38
- // istanbul ignore next
39
- if (!(typeof value1 === "number" && typeof value2 === "number")) {
40
- throw new Error("Invalid value in _isOutsideDeadbandScalar > expecting number only but got " + typeof value1 + " " + typeof value2);
41
- }
42
- diff = value2 - value1;
43
- (0, node_opcua_assert_1.assert)(typeof diff === "number" && isFinite(diff));
44
- return Math.abs(diff) > absoluteDeadband;
45
- }
46
- function isOutsideDeadbandVariant(v1, v2, absoluteDeadBand) {
47
- (0, node_opcua_assert_1.assert)(isFinite(absoluteDeadBand));
48
- if (v1.arrayType === node_opcua_variant_1.VariantArrayType.Array) {
49
- if (v1.dataType !== v2.dataType) {
50
- return true;
51
- }
52
- if (v1.value.length !== v2.value.length) {
53
- return true;
54
- }
55
- const n = v1.value.length;
56
- let i = 0;
57
- for (i = 0; i < n; i++) {
58
- if (_isOutsideDeadbandScalar(v1.value[i], v2.value[i], v1.dataType, absoluteDeadBand)) {
59
- return true;
60
- }
61
- }
62
- return false;
63
- }
64
- else {
65
- (0, node_opcua_assert_1.assert)(v1.arrayType === node_opcua_variant_1.VariantArrayType.Scalar);
66
- if (v1.dataType !== v2.dataType) {
67
- return true;
68
- }
69
- return _isOutsideDeadbandScalar(v1.value, v2.value, v1.dataType, absoluteDeadBand);
70
- }
71
- }
72
- function isOnEdgeOfRangeScalar(currentValue, newValue, dataType, range) {
73
- if (dataType === node_opcua_variant_1.DataType.UInt64 || dataType === node_opcua_variant_1.DataType.Int64) {
74
- // istanbul ignore next
75
- if (!(currentValue instanceof Array && newValue instanceof Array)) {
76
- throw new Error("Invalid");
77
- }
78
- currentValue = currentValue[1];
79
- newValue = newValue[1];
80
- }
81
- if ( /*currentValue !== range.low && */newValue <= range.low) {
82
- return true;
83
- }
84
- if ( /*currentValue !== range.high && */newValue >= range.high) {
85
- return true;
86
- }
87
- return false;
88
- }
89
- function isOnEdgeOfRange(currentValue, newValue, range) {
90
- if (currentValue.arrayType === node_opcua_variant_1.VariantArrayType.Array) {
91
- const n = currentValue.value.length;
92
- let i = 0;
93
- for (i = 0; i < n; i++) {
94
- if (isOnEdgeOfRangeScalar(currentValue.value[i], newValue.value[i], newValue.dataType, range)) {
95
- return true;
96
- }
97
- }
98
- return false;
99
- }
100
- else {
101
- (0, node_opcua_assert_1.assert)(currentValue.arrayType === node_opcua_variant_1.VariantArrayType.Scalar);
102
- (0, node_opcua_assert_1.assert)(currentValue.dataType === newValue.dataType);
103
- return isOnEdgeOfRangeScalar(currentValue.value, newValue.value, currentValue.dataType, range);
104
- }
105
- }
106
- /**
107
- * @method isOutsideDeadbandNone
108
- * @return true if the element is in deadBand
109
- */
110
- function isOutsideDeadbandNone(variant1, variant2) {
111
- // No Deadband calculation should be applied.
112
- return variant1.value !== variant2.value;
113
- }
114
- exports.isOutsideDeadbandNone = isOutsideDeadbandNone;
115
- /**
116
- * @method isOutsideDeadbandAbsolute
117
- * @return true if the element is in deadBand
118
- */
119
- function isOutsideDeadbandAbsolute(variant1, variant2, deadbandValue) {
120
- // No Deadband calculation should be applied.
121
- return isOutsideDeadbandVariant(variant1, variant2, deadbandValue);
122
- }
123
- exports.isOutsideDeadbandAbsolute = isOutsideDeadbandAbsolute;
124
- /**
125
- * @method isOutsideDeadband
126
- * @return true if the element is outside deadBand
127
- */
128
- function isOutsideDeadbandPercent(variant1, variant2, deadbandValue, range) {
129
- // The range of the deadbandValue is from 0.0 to 100.0 Percent.
130
- (0, node_opcua_assert_1.assert)(deadbandValue >= 0 && deadbandValue <= 100);
131
- if (isOnEdgeOfRange(variant1, variant2, range)) {
132
- return true;
133
- }
134
- // DeadbandType = PercentDeadband
135
- // For this type of deadband the deadbandValue is defined as the percentage of the EURange. That is,
136
- // it applies only to AnalogItems with an EURange Property that defines the typical value range for the
137
- // item. This range shall be multiplied with the deadbandValue and then compared to the actual value change
138
- // to determine the need for a data change notification. The following pseudo code shows how the deadband
139
- // is calculated:
140
- // DataChange if (absolute value of (last cached value - current value) >
141
- // (deadbandValue/100.0) * ((high-low) of EURange)))
142
- //
143
- // Specifying a deadbandValue outside of this range will be rejected and reported with the
144
- // StatusCode BadDeadbandFilterInvalid (see Table 27).
145
- // If the Value of the MonitoredItem is an array, then the deadband calculation logic shall be applied to
146
- // each element of the array. If an element that requires a DataChange is found, then no further
147
- // deadband checking is necessary and the entire array shall be returned.
148
- const valueRange = Math.abs(range.high - range.low);
149
- (0, node_opcua_assert_1.assert)(typeof valueRange === "number");
150
- const value = (deadbandValue / 100) * valueRange;
151
- return isOutsideDeadbandAbsolute(variant1, variant2, value);
152
- }
153
- exports.isOutsideDeadbandPercent = isOutsideDeadbandPercent;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isOutsideDeadbandPercent = exports.isOutsideDeadbandAbsolute = exports.isOutsideDeadbandNone = exports.DeadbandType = void 0;
4
+ /**
5
+ * @module node-opcua-service-subscription
6
+ */
7
+ const node_opcua_assert_1 = require("node-opcua-assert");
8
+ const node_opcua_variant_1 = require("node-opcua-variant");
9
+ var DeadbandType;
10
+ (function (DeadbandType) {
11
+ DeadbandType[DeadbandType["None"] = 0] = "None";
12
+ DeadbandType[DeadbandType["Absolute"] = 1] = "Absolute";
13
+ DeadbandType[DeadbandType["Percent"] = 2] = "Percent";
14
+ DeadbandType[DeadbandType["Invalid"] = 4096] = "Invalid";
15
+ })(DeadbandType = exports.DeadbandType || (exports.DeadbandType = {}));
16
+ /**
17
+ * @returns true if the difference between value1 and value2 is greater than absoluteDeadband
18
+ */
19
+ function _isOutsideDeadbandScalar(value1, value2, dataType, absoluteDeadband) {
20
+ let diff;
21
+ if (dataType === node_opcua_variant_1.DataType.UInt64 || dataType === node_opcua_variant_1.DataType.Int64) {
22
+ // istanbul ignore next
23
+ if (!(value1 instanceof Array && value2 instanceof Array)) {
24
+ throw new Error("Invalid");
25
+ }
26
+ const h1 = value1[0]; // high
27
+ const h2 = value2[0];
28
+ if (h1 !== h2) {
29
+ diff = (h1 - h2) * 4294967295;
30
+ if (Math.abs(diff) > absoluteDeadband) {
31
+ return true;
32
+ }
33
+ }
34
+ diff = value1[1] - value2[1];
35
+ (0, node_opcua_assert_1.assert)(typeof diff === "number" && isFinite(diff));
36
+ return Math.abs(diff) > absoluteDeadband;
37
+ }
38
+ // istanbul ignore next
39
+ if (!(typeof value1 === "number" && typeof value2 === "number")) {
40
+ throw new Error("Invalid value in _isOutsideDeadbandScalar > expecting number only but got " + typeof value1 + " " + typeof value2);
41
+ }
42
+ diff = value2 - value1;
43
+ (0, node_opcua_assert_1.assert)(typeof diff === "number" && isFinite(diff));
44
+ return Math.abs(diff) > absoluteDeadband;
45
+ }
46
+ function isOutsideDeadbandVariant(v1, v2, absoluteDeadBand) {
47
+ (0, node_opcua_assert_1.assert)(isFinite(absoluteDeadBand));
48
+ if (v1.arrayType === node_opcua_variant_1.VariantArrayType.Array) {
49
+ if (v1.dataType !== v2.dataType) {
50
+ return true;
51
+ }
52
+ if (v1.value.length !== v2.value.length) {
53
+ return true;
54
+ }
55
+ const n = v1.value.length;
56
+ let i = 0;
57
+ for (i = 0; i < n; i++) {
58
+ if (_isOutsideDeadbandScalar(v1.value[i], v2.value[i], v1.dataType, absoluteDeadBand)) {
59
+ return true;
60
+ }
61
+ }
62
+ return false;
63
+ }
64
+ else {
65
+ (0, node_opcua_assert_1.assert)(v1.arrayType === node_opcua_variant_1.VariantArrayType.Scalar);
66
+ if (v1.dataType !== v2.dataType) {
67
+ return true;
68
+ }
69
+ return _isOutsideDeadbandScalar(v1.value, v2.value, v1.dataType, absoluteDeadBand);
70
+ }
71
+ }
72
+ function isOnEdgeOfRangeScalar(currentValue, newValue, dataType, range) {
73
+ if (dataType === node_opcua_variant_1.DataType.UInt64 || dataType === node_opcua_variant_1.DataType.Int64) {
74
+ // istanbul ignore next
75
+ if (!(currentValue instanceof Array && newValue instanceof Array)) {
76
+ throw new Error("Invalid");
77
+ }
78
+ currentValue = currentValue[1];
79
+ newValue = newValue[1];
80
+ }
81
+ if ( /*currentValue !== range.low && */newValue <= range.low) {
82
+ return true;
83
+ }
84
+ if ( /*currentValue !== range.high && */newValue >= range.high) {
85
+ return true;
86
+ }
87
+ return false;
88
+ }
89
+ function isOnEdgeOfRange(currentValue, newValue, range) {
90
+ if (currentValue.arrayType === node_opcua_variant_1.VariantArrayType.Array) {
91
+ const n = currentValue.value.length;
92
+ let i = 0;
93
+ for (i = 0; i < n; i++) {
94
+ if (isOnEdgeOfRangeScalar(currentValue.value[i], newValue.value[i], newValue.dataType, range)) {
95
+ return true;
96
+ }
97
+ }
98
+ return false;
99
+ }
100
+ else {
101
+ (0, node_opcua_assert_1.assert)(currentValue.arrayType === node_opcua_variant_1.VariantArrayType.Scalar);
102
+ (0, node_opcua_assert_1.assert)(currentValue.dataType === newValue.dataType);
103
+ return isOnEdgeOfRangeScalar(currentValue.value, newValue.value, currentValue.dataType, range);
104
+ }
105
+ }
106
+ /**
107
+ * @method isOutsideDeadbandNone
108
+ * @return true if the element is in deadBand
109
+ */
110
+ function isOutsideDeadbandNone(variant1, variant2) {
111
+ // No Deadband calculation should be applied.
112
+ return variant1.value !== variant2.value;
113
+ }
114
+ exports.isOutsideDeadbandNone = isOutsideDeadbandNone;
115
+ /**
116
+ * @method isOutsideDeadbandAbsolute
117
+ * @return true if the element is in deadBand
118
+ */
119
+ function isOutsideDeadbandAbsolute(variant1, variant2, deadbandValue) {
120
+ // No Deadband calculation should be applied.
121
+ return isOutsideDeadbandVariant(variant1, variant2, deadbandValue);
122
+ }
123
+ exports.isOutsideDeadbandAbsolute = isOutsideDeadbandAbsolute;
124
+ /**
125
+ * @method isOutsideDeadband
126
+ * @return true if the element is outside deadBand
127
+ */
128
+ function isOutsideDeadbandPercent(variant1, variant2, deadbandValue, range) {
129
+ // The range of the deadbandValue is from 0.0 to 100.0 Percent.
130
+ (0, node_opcua_assert_1.assert)(deadbandValue >= 0 && deadbandValue <= 100);
131
+ if (isOnEdgeOfRange(variant1, variant2, range)) {
132
+ return true;
133
+ }
134
+ // DeadbandType = PercentDeadband
135
+ // For this type of deadband the deadbandValue is defined as the percentage of the EURange. That is,
136
+ // it applies only to AnalogItems with an EURange Property that defines the typical value range for the
137
+ // item. This range shall be multiplied with the deadbandValue and then compared to the actual value change
138
+ // to determine the need for a data change notification. The following pseudo code shows how the deadband
139
+ // is calculated:
140
+ // DataChange if (absolute value of (last cached value - current value) >
141
+ // (deadbandValue/100.0) * ((high-low) of EURange)))
142
+ //
143
+ // Specifying a deadbandValue outside of this range will be rejected and reported with the
144
+ // StatusCode BadDeadbandFilterInvalid (see Table 27).
145
+ // If the Value of the MonitoredItem is an array, then the deadband calculation logic shall be applied to
146
+ // each element of the array. If an element that requires a DataChange is found, then no further
147
+ // deadband checking is necessary and the entire array shall be returned.
148
+ const valueRange = Math.abs(range.high - range.low);
149
+ (0, node_opcua_assert_1.assert)(typeof valueRange === "number");
150
+ const value = (deadbandValue / 100) * valueRange;
151
+ return isOutsideDeadbandAbsolute(variant1, variant2, value);
152
+ }
153
+ exports.isOutsideDeadbandPercent = isOutsideDeadbandPercent;
154
154
  //# sourceMappingURL=deadband_checker.js.map
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- /**
2
- * @module node-opcua-service-subscription
3
- */
4
- export { NotificationData, MonitoringMode, DataChangeTrigger, CreateSubscriptionRequest, CreateSubscriptionResponse, CreateSubscriptionRequestOptions, ModifySubscriptionRequest, ModifySubscriptionResponse, ModifySubscriptionRequestOptions, MonitoringParameters, MonitoringParametersOptions, MonitoredItemCreateRequest, MonitoredItemCreateResult, MonitoredItemCreateRequestOptions, CreateMonitoredItemsRequest, CreateMonitoredItemsResponse, CreateMonitoredItemsRequestOptions, SubscriptionAcknowledgement, PublishRequest, NotificationMessage, DataChangeNotification, StatusChangeNotification, EventNotificationList, PublishResponse, RepublishRequest, RepublishResponse, DeleteMonitoredItemsRequest, DeleteMonitoredItemsResponse, DeleteMonitoredItemsRequestOptions, SetPublishingModeRequest, SetPublishingModeResponse, SetPublishingModeRequestOptions, DeleteSubscriptionsRequest, DeleteSubscriptionsResponse, DeleteSubscriptionsRequestOptions, MonitoredItemNotification, MonitoredItemModifyRequest, MonitoredItemModifyResult, ModifyMonitoredItemsRequest, ModifyMonitoredItemsRequestOptions, ModifyMonitoredItemsResponse, SetMonitoringModeRequest, SetMonitoringModeRequestOptions, SetMonitoringModeResponse, EventFilterResult, ContentFilterResult, ContentFilterElementResult, EventFieldList, DataChangeFilter, AggregateFilter, SetTriggeringRequest, SetTriggeringResponse, SetTriggeringRequestOptions, TransferResult, TransferSubscriptionsRequest, TransferSubscriptionsRequestOptions, TransferSubscriptionsResponse } from "node-opcua-types";
5
- export * from "./deadband_checker";
1
+ /**
2
+ * @module node-opcua-service-subscription
3
+ */
4
+ export { NotificationData, MonitoringMode, DataChangeTrigger, CreateSubscriptionRequest, CreateSubscriptionResponse, CreateSubscriptionRequestOptions, ModifySubscriptionRequest, ModifySubscriptionResponse, ModifySubscriptionRequestOptions, MonitoringParameters, MonitoringParametersOptions, MonitoredItemCreateRequest, MonitoredItemCreateResult, MonitoredItemCreateRequestOptions, CreateMonitoredItemsRequest, CreateMonitoredItemsResponse, CreateMonitoredItemsRequestOptions, SubscriptionAcknowledgement, PublishRequest, NotificationMessage, DataChangeNotification, StatusChangeNotification, EventNotificationList, PublishResponse, RepublishRequest, RepublishResponse, DeleteMonitoredItemsRequest, DeleteMonitoredItemsResponse, DeleteMonitoredItemsRequestOptions, SetPublishingModeRequest, SetPublishingModeResponse, SetPublishingModeRequestOptions, DeleteSubscriptionsRequest, DeleteSubscriptionsResponse, DeleteSubscriptionsRequestOptions, MonitoredItemNotification, MonitoredItemModifyRequest, MonitoredItemModifyResult, ModifyMonitoredItemsRequest, ModifyMonitoredItemsRequestOptions, ModifyMonitoredItemsResponse, SetMonitoringModeRequest, SetMonitoringModeRequestOptions, SetMonitoringModeResponse, EventFilterResult, ContentFilterResult, ContentFilterElementResult, EventFieldList, DataChangeFilter, AggregateFilter, SetTriggeringRequest, SetTriggeringResponse, SetTriggeringRequestOptions, TransferResult, TransferSubscriptionsRequest, TransferSubscriptionsRequestOptions, TransferSubscriptionsResponse } from "node-opcua-types";
5
+ export * from "./deadband_checker";
package/dist/index.js CHANGED
@@ -1,74 +1,74 @@
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
- exports.TransferSubscriptionsResponse = exports.TransferSubscriptionsRequest = exports.TransferResult = exports.SetTriggeringResponse = exports.SetTriggeringRequest = exports.AggregateFilter = exports.DataChangeFilter = exports.EventFieldList = exports.ContentFilterElementResult = exports.ContentFilterResult = exports.EventFilterResult = exports.SetMonitoringModeResponse = exports.SetMonitoringModeRequest = exports.ModifyMonitoredItemsResponse = exports.ModifyMonitoredItemsRequest = exports.MonitoredItemModifyResult = exports.MonitoredItemModifyRequest = exports.MonitoredItemNotification = exports.DeleteSubscriptionsResponse = exports.DeleteSubscriptionsRequest = exports.SetPublishingModeResponse = exports.SetPublishingModeRequest = exports.DeleteMonitoredItemsResponse = exports.DeleteMonitoredItemsRequest = exports.RepublishResponse = exports.RepublishRequest = exports.PublishResponse = exports.EventNotificationList = exports.StatusChangeNotification = exports.DataChangeNotification = exports.NotificationMessage = exports.PublishRequest = exports.SubscriptionAcknowledgement = exports.CreateMonitoredItemsResponse = exports.CreateMonitoredItemsRequest = exports.MonitoredItemCreateResult = exports.MonitoredItemCreateRequest = exports.MonitoringParameters = exports.ModifySubscriptionResponse = exports.ModifySubscriptionRequest = exports.CreateSubscriptionResponse = exports.CreateSubscriptionRequest = exports.DataChangeTrigger = exports.MonitoringMode = exports.NotificationData = void 0;
18
- /**
19
- * @module node-opcua-service-subscription
20
- */
21
- var node_opcua_types_1 = require("node-opcua-types");
22
- Object.defineProperty(exports, "NotificationData", { enumerable: true, get: function () { return node_opcua_types_1.NotificationData; } });
23
- Object.defineProperty(exports, "MonitoringMode", { enumerable: true, get: function () { return node_opcua_types_1.MonitoringMode; } });
24
- Object.defineProperty(exports, "DataChangeTrigger", { enumerable: true, get: function () { return node_opcua_types_1.DataChangeTrigger; } });
25
- Object.defineProperty(exports, "CreateSubscriptionRequest", { enumerable: true, get: function () { return node_opcua_types_1.CreateSubscriptionRequest; } });
26
- Object.defineProperty(exports, "CreateSubscriptionResponse", { enumerable: true, get: function () { return node_opcua_types_1.CreateSubscriptionResponse; } });
27
- Object.defineProperty(exports, "ModifySubscriptionRequest", { enumerable: true, get: function () { return node_opcua_types_1.ModifySubscriptionRequest; } });
28
- Object.defineProperty(exports, "ModifySubscriptionResponse", { enumerable: true, get: function () { return node_opcua_types_1.ModifySubscriptionResponse; } });
29
- Object.defineProperty(exports, "MonitoringParameters", { enumerable: true, get: function () { return node_opcua_types_1.MonitoringParameters; } });
30
- Object.defineProperty(exports, "MonitoredItemCreateRequest", { enumerable: true, get: function () { return node_opcua_types_1.MonitoredItemCreateRequest; } });
31
- Object.defineProperty(exports, "MonitoredItemCreateResult", { enumerable: true, get: function () { return node_opcua_types_1.MonitoredItemCreateResult; } });
32
- Object.defineProperty(exports, "CreateMonitoredItemsRequest", { enumerable: true, get: function () { return node_opcua_types_1.CreateMonitoredItemsRequest; } });
33
- Object.defineProperty(exports, "CreateMonitoredItemsResponse", { enumerable: true, get: function () { return node_opcua_types_1.CreateMonitoredItemsResponse; } });
34
- Object.defineProperty(exports, "SubscriptionAcknowledgement", { enumerable: true, get: function () { return node_opcua_types_1.SubscriptionAcknowledgement; } });
35
- Object.defineProperty(exports, "PublishRequest", { enumerable: true, get: function () { return node_opcua_types_1.PublishRequest; } });
36
- Object.defineProperty(exports, "NotificationMessage", { enumerable: true, get: function () { return node_opcua_types_1.NotificationMessage; } });
37
- Object.defineProperty(exports, "DataChangeNotification", { enumerable: true, get: function () { return node_opcua_types_1.DataChangeNotification; } });
38
- Object.defineProperty(exports, "StatusChangeNotification", { enumerable: true, get: function () { return node_opcua_types_1.StatusChangeNotification; } });
39
- Object.defineProperty(exports, "EventNotificationList", { enumerable: true, get: function () { return node_opcua_types_1.EventNotificationList; } });
40
- Object.defineProperty(exports, "PublishResponse", { enumerable: true, get: function () { return node_opcua_types_1.PublishResponse; } });
41
- Object.defineProperty(exports, "RepublishRequest", { enumerable: true, get: function () { return node_opcua_types_1.RepublishRequest; } });
42
- Object.defineProperty(exports, "RepublishResponse", { enumerable: true, get: function () { return node_opcua_types_1.RepublishResponse; } });
43
- Object.defineProperty(exports, "DeleteMonitoredItemsRequest", { enumerable: true, get: function () { return node_opcua_types_1.DeleteMonitoredItemsRequest; } });
44
- Object.defineProperty(exports, "DeleteMonitoredItemsResponse", { enumerable: true, get: function () { return node_opcua_types_1.DeleteMonitoredItemsResponse; } });
45
- Object.defineProperty(exports, "SetPublishingModeRequest", { enumerable: true, get: function () { return node_opcua_types_1.SetPublishingModeRequest; } });
46
- Object.defineProperty(exports, "SetPublishingModeResponse", { enumerable: true, get: function () { return node_opcua_types_1.SetPublishingModeResponse; } });
47
- Object.defineProperty(exports, "DeleteSubscriptionsRequest", { enumerable: true, get: function () { return node_opcua_types_1.DeleteSubscriptionsRequest; } });
48
- Object.defineProperty(exports, "DeleteSubscriptionsResponse", { enumerable: true, get: function () { return node_opcua_types_1.DeleteSubscriptionsResponse; } });
49
- Object.defineProperty(exports, "MonitoredItemNotification", { enumerable: true, get: function () { return node_opcua_types_1.MonitoredItemNotification; } });
50
- Object.defineProperty(exports, "MonitoredItemModifyRequest", { enumerable: true, get: function () { return node_opcua_types_1.MonitoredItemModifyRequest; } });
51
- Object.defineProperty(exports, "MonitoredItemModifyResult", { enumerable: true, get: function () { return node_opcua_types_1.MonitoredItemModifyResult; } });
52
- Object.defineProperty(exports, "ModifyMonitoredItemsRequest", { enumerable: true, get: function () { return node_opcua_types_1.ModifyMonitoredItemsRequest; } });
53
- Object.defineProperty(exports, "ModifyMonitoredItemsResponse", { enumerable: true, get: function () { return node_opcua_types_1.ModifyMonitoredItemsResponse; } });
54
- Object.defineProperty(exports, "SetMonitoringModeRequest", { enumerable: true, get: function () { return node_opcua_types_1.SetMonitoringModeRequest; } });
55
- Object.defineProperty(exports, "SetMonitoringModeResponse", { enumerable: true, get: function () { return node_opcua_types_1.SetMonitoringModeResponse; } });
56
- Object.defineProperty(exports, "EventFilterResult", { enumerable: true, get: function () { return node_opcua_types_1.EventFilterResult; } });
57
- Object.defineProperty(exports, "ContentFilterResult", { enumerable: true, get: function () { return node_opcua_types_1.ContentFilterResult; } });
58
- Object.defineProperty(exports, "ContentFilterElementResult", { enumerable: true, get: function () { return node_opcua_types_1.ContentFilterElementResult; } });
59
- Object.defineProperty(exports, "EventFieldList", { enumerable: true, get: function () { return node_opcua_types_1.EventFieldList; } });
60
- Object.defineProperty(exports, "DataChangeFilter", { enumerable: true, get: function () { return node_opcua_types_1.DataChangeFilter; } });
61
- Object.defineProperty(exports, "AggregateFilter", { enumerable: true, get: function () { return node_opcua_types_1.AggregateFilter; } });
62
- Object.defineProperty(exports, "SetTriggeringRequest", { enumerable: true, get: function () { return node_opcua_types_1.SetTriggeringRequest; } });
63
- Object.defineProperty(exports, "SetTriggeringResponse", { enumerable: true, get: function () { return node_opcua_types_1.SetTriggeringResponse; } });
64
- Object.defineProperty(exports, "TransferResult", { enumerable: true, get: function () { return node_opcua_types_1.TransferResult; } });
65
- Object.defineProperty(exports, "TransferSubscriptionsRequest", { enumerable: true, get: function () { return node_opcua_types_1.TransferSubscriptionsRequest; } });
66
- Object.defineProperty(exports, "TransferSubscriptionsResponse", { enumerable: true, get: function () { return node_opcua_types_1.TransferSubscriptionsResponse; } });
67
- __exportStar(require("./deadband_checker"), exports);
68
- const node_opcua_assert_1 = require("node-opcua-assert");
69
- const node_opcua_types_2 = require("node-opcua-types");
70
- (0, node_opcua_assert_1.assert)(node_opcua_types_2.PublishResponse.schema.fields[1].name === "subscriptionId");
71
- node_opcua_types_2.PublishResponse.schema.fields[1].defaultValue = 0xFFFFFFFF;
72
- (0, node_opcua_assert_1.assert)(node_opcua_types_2.MonitoringParameters.schema.fields[0].name === "clientHandle");
73
- node_opcua_types_2.MonitoringParameters.schema.fields[0].defaultValue = 0xFFFFFFFF;
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
+ exports.TransferSubscriptionsResponse = exports.TransferSubscriptionsRequest = exports.TransferResult = exports.SetTriggeringResponse = exports.SetTriggeringRequest = exports.AggregateFilter = exports.DataChangeFilter = exports.EventFieldList = exports.ContentFilterElementResult = exports.ContentFilterResult = exports.EventFilterResult = exports.SetMonitoringModeResponse = exports.SetMonitoringModeRequest = exports.ModifyMonitoredItemsResponse = exports.ModifyMonitoredItemsRequest = exports.MonitoredItemModifyResult = exports.MonitoredItemModifyRequest = exports.MonitoredItemNotification = exports.DeleteSubscriptionsResponse = exports.DeleteSubscriptionsRequest = exports.SetPublishingModeResponse = exports.SetPublishingModeRequest = exports.DeleteMonitoredItemsResponse = exports.DeleteMonitoredItemsRequest = exports.RepublishResponse = exports.RepublishRequest = exports.PublishResponse = exports.EventNotificationList = exports.StatusChangeNotification = exports.DataChangeNotification = exports.NotificationMessage = exports.PublishRequest = exports.SubscriptionAcknowledgement = exports.CreateMonitoredItemsResponse = exports.CreateMonitoredItemsRequest = exports.MonitoredItemCreateResult = exports.MonitoredItemCreateRequest = exports.MonitoringParameters = exports.ModifySubscriptionResponse = exports.ModifySubscriptionRequest = exports.CreateSubscriptionResponse = exports.CreateSubscriptionRequest = exports.DataChangeTrigger = exports.MonitoringMode = exports.NotificationData = void 0;
18
+ /**
19
+ * @module node-opcua-service-subscription
20
+ */
21
+ var node_opcua_types_1 = require("node-opcua-types");
22
+ Object.defineProperty(exports, "NotificationData", { enumerable: true, get: function () { return node_opcua_types_1.NotificationData; } });
23
+ Object.defineProperty(exports, "MonitoringMode", { enumerable: true, get: function () { return node_opcua_types_1.MonitoringMode; } });
24
+ Object.defineProperty(exports, "DataChangeTrigger", { enumerable: true, get: function () { return node_opcua_types_1.DataChangeTrigger; } });
25
+ Object.defineProperty(exports, "CreateSubscriptionRequest", { enumerable: true, get: function () { return node_opcua_types_1.CreateSubscriptionRequest; } });
26
+ Object.defineProperty(exports, "CreateSubscriptionResponse", { enumerable: true, get: function () { return node_opcua_types_1.CreateSubscriptionResponse; } });
27
+ Object.defineProperty(exports, "ModifySubscriptionRequest", { enumerable: true, get: function () { return node_opcua_types_1.ModifySubscriptionRequest; } });
28
+ Object.defineProperty(exports, "ModifySubscriptionResponse", { enumerable: true, get: function () { return node_opcua_types_1.ModifySubscriptionResponse; } });
29
+ Object.defineProperty(exports, "MonitoringParameters", { enumerable: true, get: function () { return node_opcua_types_1.MonitoringParameters; } });
30
+ Object.defineProperty(exports, "MonitoredItemCreateRequest", { enumerable: true, get: function () { return node_opcua_types_1.MonitoredItemCreateRequest; } });
31
+ Object.defineProperty(exports, "MonitoredItemCreateResult", { enumerable: true, get: function () { return node_opcua_types_1.MonitoredItemCreateResult; } });
32
+ Object.defineProperty(exports, "CreateMonitoredItemsRequest", { enumerable: true, get: function () { return node_opcua_types_1.CreateMonitoredItemsRequest; } });
33
+ Object.defineProperty(exports, "CreateMonitoredItemsResponse", { enumerable: true, get: function () { return node_opcua_types_1.CreateMonitoredItemsResponse; } });
34
+ Object.defineProperty(exports, "SubscriptionAcknowledgement", { enumerable: true, get: function () { return node_opcua_types_1.SubscriptionAcknowledgement; } });
35
+ Object.defineProperty(exports, "PublishRequest", { enumerable: true, get: function () { return node_opcua_types_1.PublishRequest; } });
36
+ Object.defineProperty(exports, "NotificationMessage", { enumerable: true, get: function () { return node_opcua_types_1.NotificationMessage; } });
37
+ Object.defineProperty(exports, "DataChangeNotification", { enumerable: true, get: function () { return node_opcua_types_1.DataChangeNotification; } });
38
+ Object.defineProperty(exports, "StatusChangeNotification", { enumerable: true, get: function () { return node_opcua_types_1.StatusChangeNotification; } });
39
+ Object.defineProperty(exports, "EventNotificationList", { enumerable: true, get: function () { return node_opcua_types_1.EventNotificationList; } });
40
+ Object.defineProperty(exports, "PublishResponse", { enumerable: true, get: function () { return node_opcua_types_1.PublishResponse; } });
41
+ Object.defineProperty(exports, "RepublishRequest", { enumerable: true, get: function () { return node_opcua_types_1.RepublishRequest; } });
42
+ Object.defineProperty(exports, "RepublishResponse", { enumerable: true, get: function () { return node_opcua_types_1.RepublishResponse; } });
43
+ Object.defineProperty(exports, "DeleteMonitoredItemsRequest", { enumerable: true, get: function () { return node_opcua_types_1.DeleteMonitoredItemsRequest; } });
44
+ Object.defineProperty(exports, "DeleteMonitoredItemsResponse", { enumerable: true, get: function () { return node_opcua_types_1.DeleteMonitoredItemsResponse; } });
45
+ Object.defineProperty(exports, "SetPublishingModeRequest", { enumerable: true, get: function () { return node_opcua_types_1.SetPublishingModeRequest; } });
46
+ Object.defineProperty(exports, "SetPublishingModeResponse", { enumerable: true, get: function () { return node_opcua_types_1.SetPublishingModeResponse; } });
47
+ Object.defineProperty(exports, "DeleteSubscriptionsRequest", { enumerable: true, get: function () { return node_opcua_types_1.DeleteSubscriptionsRequest; } });
48
+ Object.defineProperty(exports, "DeleteSubscriptionsResponse", { enumerable: true, get: function () { return node_opcua_types_1.DeleteSubscriptionsResponse; } });
49
+ Object.defineProperty(exports, "MonitoredItemNotification", { enumerable: true, get: function () { return node_opcua_types_1.MonitoredItemNotification; } });
50
+ Object.defineProperty(exports, "MonitoredItemModifyRequest", { enumerable: true, get: function () { return node_opcua_types_1.MonitoredItemModifyRequest; } });
51
+ Object.defineProperty(exports, "MonitoredItemModifyResult", { enumerable: true, get: function () { return node_opcua_types_1.MonitoredItemModifyResult; } });
52
+ Object.defineProperty(exports, "ModifyMonitoredItemsRequest", { enumerable: true, get: function () { return node_opcua_types_1.ModifyMonitoredItemsRequest; } });
53
+ Object.defineProperty(exports, "ModifyMonitoredItemsResponse", { enumerable: true, get: function () { return node_opcua_types_1.ModifyMonitoredItemsResponse; } });
54
+ Object.defineProperty(exports, "SetMonitoringModeRequest", { enumerable: true, get: function () { return node_opcua_types_1.SetMonitoringModeRequest; } });
55
+ Object.defineProperty(exports, "SetMonitoringModeResponse", { enumerable: true, get: function () { return node_opcua_types_1.SetMonitoringModeResponse; } });
56
+ Object.defineProperty(exports, "EventFilterResult", { enumerable: true, get: function () { return node_opcua_types_1.EventFilterResult; } });
57
+ Object.defineProperty(exports, "ContentFilterResult", { enumerable: true, get: function () { return node_opcua_types_1.ContentFilterResult; } });
58
+ Object.defineProperty(exports, "ContentFilterElementResult", { enumerable: true, get: function () { return node_opcua_types_1.ContentFilterElementResult; } });
59
+ Object.defineProperty(exports, "EventFieldList", { enumerable: true, get: function () { return node_opcua_types_1.EventFieldList; } });
60
+ Object.defineProperty(exports, "DataChangeFilter", { enumerable: true, get: function () { return node_opcua_types_1.DataChangeFilter; } });
61
+ Object.defineProperty(exports, "AggregateFilter", { enumerable: true, get: function () { return node_opcua_types_1.AggregateFilter; } });
62
+ Object.defineProperty(exports, "SetTriggeringRequest", { enumerable: true, get: function () { return node_opcua_types_1.SetTriggeringRequest; } });
63
+ Object.defineProperty(exports, "SetTriggeringResponse", { enumerable: true, get: function () { return node_opcua_types_1.SetTriggeringResponse; } });
64
+ Object.defineProperty(exports, "TransferResult", { enumerable: true, get: function () { return node_opcua_types_1.TransferResult; } });
65
+ Object.defineProperty(exports, "TransferSubscriptionsRequest", { enumerable: true, get: function () { return node_opcua_types_1.TransferSubscriptionsRequest; } });
66
+ Object.defineProperty(exports, "TransferSubscriptionsResponse", { enumerable: true, get: function () { return node_opcua_types_1.TransferSubscriptionsResponse; } });
67
+ __exportStar(require("./deadband_checker"), exports);
68
+ const node_opcua_assert_1 = require("node-opcua-assert");
69
+ const node_opcua_types_2 = require("node-opcua-types");
70
+ (0, node_opcua_assert_1.assert)(node_opcua_types_2.PublishResponse.schema.fields[1].name === "subscriptionId");
71
+ node_opcua_types_2.PublishResponse.schema.fields[1].defaultValue = 0xFFFFFFFF;
72
+ (0, node_opcua_assert_1.assert)(node_opcua_types_2.MonitoringParameters.schema.fields[0].name === "clientHandle");
73
+ node_opcua_types_2.MonitoringParameters.schema.fields[0].defaultValue = 0xFFFFFFFF;
74
74
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-opcua-service-subscription",
3
- "version": "2.71.0",
3
+ "version": "2.72.2",
4
4
  "description": "pure nodejs OPCUA SDK - module -service-subscription",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -12,27 +12,27 @@
12
12
  },
13
13
  "dependencies": {
14
14
  "node-opcua-assert": "2.66.0",
15
- "node-opcua-basic-types": "2.71.0",
15
+ "node-opcua-basic-types": "2.72.1",
16
16
  "node-opcua-binary-stream": "2.71.0",
17
- "node-opcua-data-value": "2.71.0",
18
- "node-opcua-extension-object": "2.71.0",
19
- "node-opcua-factory": "2.71.0",
17
+ "node-opcua-data-value": "2.72.2",
18
+ "node-opcua-extension-object": "2.72.1",
19
+ "node-opcua-factory": "2.72.1",
20
20
  "node-opcua-nodeid": "2.71.0",
21
- "node-opcua-service-filter": "2.71.0",
22
- "node-opcua-service-read": "2.71.0",
23
- "node-opcua-service-secure-channel": "2.71.0",
24
- "node-opcua-types": "2.71.0",
25
- "node-opcua-variant": "2.71.0"
21
+ "node-opcua-service-filter": "2.72.2",
22
+ "node-opcua-service-read": "2.72.2",
23
+ "node-opcua-service-secure-channel": "2.72.2",
24
+ "node-opcua-types": "2.72.2",
25
+ "node-opcua-variant": "2.72.2"
26
26
  },
27
27
  "devDependencies": {
28
28
  "node-opcua-buffer-utils": "2.71.0",
29
- "node-opcua-data-model": "2.71.0",
29
+ "node-opcua-data-model": "2.72.1",
30
30
  "node-opcua-debug": "2.71.0",
31
- "node-opcua-numeric-range": "2.71.0",
32
- "node-opcua-packet-analyzer": "2.71.0",
33
- "node-opcua-secure-channel": "2.71.0",
34
- "node-opcua-service-history": "2.71.0",
35
- "node-opcua-service-translate-browse-path": "2.71.0",
31
+ "node-opcua-numeric-range": "2.72.2",
32
+ "node-opcua-packet-analyzer": "2.72.1",
33
+ "node-opcua-secure-channel": "2.72.2",
34
+ "node-opcua-service-history": "2.72.2",
35
+ "node-opcua-service-translate-browse-path": "2.72.2",
36
36
  "node-opcua-status-code": "2.71.0",
37
37
  "should": "^13.2.3"
38
38
  },
@@ -51,5 +51,5 @@
51
51
  "internet of things"
52
52
  ],
53
53
  "homepage": "http://node-opcua.github.io/",
54
- "gitHead": "10f7cc1e1cd30dfef75adad9cb709a78401fabf3"
54
+ "gitHead": "07dcdd8e8c7f2b55544c6e23023093e35674829c"
55
55
  }