node-opcua-service-subscription 2.97.0 → 2.98.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/deadband_checker.d.ts +27 -27
- package/dist/deadband_checker.js +156 -156
- package/dist/index.d.ts +5 -5
- package/dist/index.js +73 -73
- package/package.json +17 -13
|
@@ -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 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, deadbandValuePercent: 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 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, deadbandValuePercent: number, range: PseudoRange): boolean;
|
package/dist/deadband_checker.js
CHANGED
|
@@ -1,157 +1,157 @@
|
|
|
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 || v1.arrayType === node_opcua_variant_1.VariantArrayType.Matrix) {
|
|
49
|
-
// If the Value of the MonitoredItem is an array, then the deadband calculation logic shall be applied to
|
|
50
|
-
// each element of the array. If an element that requires a DataChange is found, then no further
|
|
51
|
-
// deadband checking is necessary and the entire array shall be returned.
|
|
52
|
-
if (v1.dataType !== v2.dataType) {
|
|
53
|
-
return true;
|
|
54
|
-
}
|
|
55
|
-
if (v1.value.length !== v2.value.length) {
|
|
56
|
-
return true;
|
|
57
|
-
}
|
|
58
|
-
const n = v1.value.length;
|
|
59
|
-
let i = 0;
|
|
60
|
-
for (i = 0; i < n; i++) {
|
|
61
|
-
if (_isOutsideDeadbandScalar(v1.value[i], v2.value[i], v1.dataType, absoluteDeadBand)) {
|
|
62
|
-
return true;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
return false;
|
|
66
|
-
}
|
|
67
|
-
else {
|
|
68
|
-
(0, node_opcua_assert_1.assert)(v1.arrayType === node_opcua_variant_1.VariantArrayType.Scalar);
|
|
69
|
-
if (v1.dataType !== v2.dataType) {
|
|
70
|
-
return true;
|
|
71
|
-
}
|
|
72
|
-
return _isOutsideDeadbandScalar(v1.value, v2.value, v1.dataType, absoluteDeadBand);
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
// function isOnEdgeOfRangeScalar(
|
|
76
|
-
// currentValue: NumberType,
|
|
77
|
-
// newValue: NumberType,
|
|
78
|
-
// dataType: DataType,
|
|
79
|
-
// range: PseudoRange,
|
|
80
|
-
// deadbandValue: number
|
|
81
|
-
// ): boolean {
|
|
82
|
-
// if (dataType === DataType.UInt64 || dataType === DataType.Int64) {
|
|
83
|
-
// // istanbul ignore next
|
|
84
|
-
// if (!(currentValue instanceof Array && newValue instanceof Array)) {
|
|
85
|
-
// throw new Error("Invalid");
|
|
86
|
-
// }
|
|
87
|
-
// currentValue = currentValue[1];
|
|
88
|
-
// newValue = newValue[1];
|
|
89
|
-
// }
|
|
90
|
-
// if (Array.isArray(newValue)) throw new Error("internal error");
|
|
91
|
-
// if (/*currentValue !== range.low && */ Math.abs(newValue - range.low) < deadbandValue) {
|
|
92
|
-
// return true;
|
|
93
|
-
// }
|
|
94
|
-
// if (/*currentValue !== range.high && */ Math.abs(newValue - range.high) < deadbandValue) {
|
|
95
|
-
// return true;
|
|
96
|
-
// }
|
|
97
|
-
// return false;
|
|
98
|
-
// }
|
|
99
|
-
// function isOnEdgeOfRange(currentValue: Variant, newValue: Variant, range: PseudoRange, deadbandValue: number): boolean {
|
|
100
|
-
// if (currentValue.arrayType === VariantArrayType.Array) {
|
|
101
|
-
// const n = currentValue.value.length;
|
|
102
|
-
// let i = 0;
|
|
103
|
-
// for (i = 0; i < n; i++) {
|
|
104
|
-
// if (isOnEdgeOfRangeScalar(currentValue.value[i], newValue.value[i], newValue.dataType, range, deadbandValue)) {
|
|
105
|
-
// return true;
|
|
106
|
-
// }
|
|
107
|
-
// }
|
|
108
|
-
// return false;
|
|
109
|
-
// } else {
|
|
110
|
-
// assert(currentValue.arrayType === VariantArrayType.Scalar);
|
|
111
|
-
// assert(currentValue.dataType === newValue.dataType);
|
|
112
|
-
// return isOnEdgeOfRangeScalar(currentValue.value, newValue.value, currentValue.dataType, range, deadbandValue);
|
|
113
|
-
// }
|
|
114
|
-
// }
|
|
115
|
-
/**
|
|
116
|
-
* @method isOutsideDeadbandNone
|
|
117
|
-
* @return true if the element is in deadBand
|
|
118
|
-
*/
|
|
119
|
-
function isOutsideDeadbandNone(variant1, variant2) {
|
|
120
|
-
// No Deadband calculation should be applied.
|
|
121
|
-
return variant1.value !== variant2.value;
|
|
122
|
-
}
|
|
123
|
-
exports.isOutsideDeadbandNone = isOutsideDeadbandNone;
|
|
124
|
-
/**
|
|
125
|
-
* @method isOutsideDeadbandAbsolute
|
|
126
|
-
* @return true if the element is in deadBand
|
|
127
|
-
*/
|
|
128
|
-
function isOutsideDeadbandAbsolute(variant1, variant2, deadbandValue) {
|
|
129
|
-
// No Deadband calculation should be applied.
|
|
130
|
-
return isOutsideDeadbandVariant(variant1, variant2, deadbandValue);
|
|
131
|
-
}
|
|
132
|
-
exports.isOutsideDeadbandAbsolute = isOutsideDeadbandAbsolute;
|
|
133
|
-
/**
|
|
134
|
-
* @method isOutsideDeadband
|
|
135
|
-
* @return true if the element is outside deadBand
|
|
136
|
-
*/
|
|
137
|
-
function isOutsideDeadbandPercent(variant1, variant2, deadbandValuePercent, range) {
|
|
138
|
-
// DeadbandType = PercentDeadband
|
|
139
|
-
// For this type of deadband the deadbandValue is defined as the percentage of the EURange. That is,
|
|
140
|
-
// it applies only to AnalogItems with an EURange Property that defines the typical value range for the
|
|
141
|
-
// item. This range shall be multiplied with the deadbandValue and then compared to the actual value change
|
|
142
|
-
// to determine the need for a data change notification. The following pseudo code shows how the deadband
|
|
143
|
-
// is calculated:
|
|
144
|
-
// DataChange if (absolute value of (last cached value - current value) >
|
|
145
|
-
// (deadbandValue/100.0) * ((high-low) of EURange)))
|
|
146
|
-
//
|
|
147
|
-
// The range of the deadbandValue is from 0.0 to 100.0 Percent.
|
|
148
|
-
(0, node_opcua_assert_1.assert)(deadbandValuePercent >= 0 && deadbandValuePercent <= 100);
|
|
149
|
-
const valueRange = Math.abs(range.high - range.low);
|
|
150
|
-
const deadBandValueAbsolute = (deadbandValuePercent / 100.0) * valueRange;
|
|
151
|
-
// if (isOnEdgeOfRange(variant1, variant2, range, deadBandValueAbsolute)) {
|
|
152
|
-
// return true;
|
|
153
|
-
// }
|
|
154
|
-
return isOutsideDeadbandAbsolute(variant1, variant2, deadBandValueAbsolute);
|
|
155
|
-
}
|
|
156
|
-
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 || v1.arrayType === node_opcua_variant_1.VariantArrayType.Matrix) {
|
|
49
|
+
// If the Value of the MonitoredItem is an array, then the deadband calculation logic shall be applied to
|
|
50
|
+
// each element of the array. If an element that requires a DataChange is found, then no further
|
|
51
|
+
// deadband checking is necessary and the entire array shall be returned.
|
|
52
|
+
if (v1.dataType !== v2.dataType) {
|
|
53
|
+
return true;
|
|
54
|
+
}
|
|
55
|
+
if (v1.value.length !== v2.value.length) {
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
const n = v1.value.length;
|
|
59
|
+
let i = 0;
|
|
60
|
+
for (i = 0; i < n; i++) {
|
|
61
|
+
if (_isOutsideDeadbandScalar(v1.value[i], v2.value[i], v1.dataType, absoluteDeadBand)) {
|
|
62
|
+
return true;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
return false;
|
|
66
|
+
}
|
|
67
|
+
else {
|
|
68
|
+
(0, node_opcua_assert_1.assert)(v1.arrayType === node_opcua_variant_1.VariantArrayType.Scalar);
|
|
69
|
+
if (v1.dataType !== v2.dataType) {
|
|
70
|
+
return true;
|
|
71
|
+
}
|
|
72
|
+
return _isOutsideDeadbandScalar(v1.value, v2.value, v1.dataType, absoluteDeadBand);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
// function isOnEdgeOfRangeScalar(
|
|
76
|
+
// currentValue: NumberType,
|
|
77
|
+
// newValue: NumberType,
|
|
78
|
+
// dataType: DataType,
|
|
79
|
+
// range: PseudoRange,
|
|
80
|
+
// deadbandValue: number
|
|
81
|
+
// ): boolean {
|
|
82
|
+
// if (dataType === DataType.UInt64 || dataType === DataType.Int64) {
|
|
83
|
+
// // istanbul ignore next
|
|
84
|
+
// if (!(currentValue instanceof Array && newValue instanceof Array)) {
|
|
85
|
+
// throw new Error("Invalid");
|
|
86
|
+
// }
|
|
87
|
+
// currentValue = currentValue[1];
|
|
88
|
+
// newValue = newValue[1];
|
|
89
|
+
// }
|
|
90
|
+
// if (Array.isArray(newValue)) throw new Error("internal error");
|
|
91
|
+
// if (/*currentValue !== range.low && */ Math.abs(newValue - range.low) < deadbandValue) {
|
|
92
|
+
// return true;
|
|
93
|
+
// }
|
|
94
|
+
// if (/*currentValue !== range.high && */ Math.abs(newValue - range.high) < deadbandValue) {
|
|
95
|
+
// return true;
|
|
96
|
+
// }
|
|
97
|
+
// return false;
|
|
98
|
+
// }
|
|
99
|
+
// function isOnEdgeOfRange(currentValue: Variant, newValue: Variant, range: PseudoRange, deadbandValue: number): boolean {
|
|
100
|
+
// if (currentValue.arrayType === VariantArrayType.Array) {
|
|
101
|
+
// const n = currentValue.value.length;
|
|
102
|
+
// let i = 0;
|
|
103
|
+
// for (i = 0; i < n; i++) {
|
|
104
|
+
// if (isOnEdgeOfRangeScalar(currentValue.value[i], newValue.value[i], newValue.dataType, range, deadbandValue)) {
|
|
105
|
+
// return true;
|
|
106
|
+
// }
|
|
107
|
+
// }
|
|
108
|
+
// return false;
|
|
109
|
+
// } else {
|
|
110
|
+
// assert(currentValue.arrayType === VariantArrayType.Scalar);
|
|
111
|
+
// assert(currentValue.dataType === newValue.dataType);
|
|
112
|
+
// return isOnEdgeOfRangeScalar(currentValue.value, newValue.value, currentValue.dataType, range, deadbandValue);
|
|
113
|
+
// }
|
|
114
|
+
// }
|
|
115
|
+
/**
|
|
116
|
+
* @method isOutsideDeadbandNone
|
|
117
|
+
* @return true if the element is in deadBand
|
|
118
|
+
*/
|
|
119
|
+
function isOutsideDeadbandNone(variant1, variant2) {
|
|
120
|
+
// No Deadband calculation should be applied.
|
|
121
|
+
return variant1.value !== variant2.value;
|
|
122
|
+
}
|
|
123
|
+
exports.isOutsideDeadbandNone = isOutsideDeadbandNone;
|
|
124
|
+
/**
|
|
125
|
+
* @method isOutsideDeadbandAbsolute
|
|
126
|
+
* @return true if the element is in deadBand
|
|
127
|
+
*/
|
|
128
|
+
function isOutsideDeadbandAbsolute(variant1, variant2, deadbandValue) {
|
|
129
|
+
// No Deadband calculation should be applied.
|
|
130
|
+
return isOutsideDeadbandVariant(variant1, variant2, deadbandValue);
|
|
131
|
+
}
|
|
132
|
+
exports.isOutsideDeadbandAbsolute = isOutsideDeadbandAbsolute;
|
|
133
|
+
/**
|
|
134
|
+
* @method isOutsideDeadband
|
|
135
|
+
* @return true if the element is outside deadBand
|
|
136
|
+
*/
|
|
137
|
+
function isOutsideDeadbandPercent(variant1, variant2, deadbandValuePercent, range) {
|
|
138
|
+
// DeadbandType = PercentDeadband
|
|
139
|
+
// For this type of deadband the deadbandValue is defined as the percentage of the EURange. That is,
|
|
140
|
+
// it applies only to AnalogItems with an EURange Property that defines the typical value range for the
|
|
141
|
+
// item. This range shall be multiplied with the deadbandValue and then compared to the actual value change
|
|
142
|
+
// to determine the need for a data change notification. The following pseudo code shows how the deadband
|
|
143
|
+
// is calculated:
|
|
144
|
+
// DataChange if (absolute value of (last cached value - current value) >
|
|
145
|
+
// (deadbandValue/100.0) * ((high-low) of EURange)))
|
|
146
|
+
//
|
|
147
|
+
// The range of the deadbandValue is from 0.0 to 100.0 Percent.
|
|
148
|
+
(0, node_opcua_assert_1.assert)(deadbandValuePercent >= 0 && deadbandValuePercent <= 100);
|
|
149
|
+
const valueRange = Math.abs(range.high - range.low);
|
|
150
|
+
const deadBandValueAbsolute = (deadbandValuePercent / 100.0) * valueRange;
|
|
151
|
+
// if (isOnEdgeOfRange(variant1, variant2, range, deadBandValueAbsolute)) {
|
|
152
|
+
// return true;
|
|
153
|
+
// }
|
|
154
|
+
return isOutsideDeadbandAbsolute(variant1, variant2, deadBandValueAbsolute);
|
|
155
|
+
}
|
|
156
|
+
exports.isOutsideDeadbandPercent = isOutsideDeadbandPercent;
|
|
157
157
|
//# 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,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-opcua-service-subscription",
|
|
3
|
-
"version": "2.
|
|
4
|
-
"description": "pure nodejs OPCUA SDK - module
|
|
3
|
+
"version": "2.98.1",
|
|
4
|
+
"description": "pure nodejs OPCUA SDK - module service-subscription",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
7
7
|
"scripts": {
|
|
@@ -11,18 +11,18 @@
|
|
|
11
11
|
"deprected_generate": "node ./generate"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"node-opcua-assert": "2.
|
|
15
|
-
"node-opcua-types": "2.
|
|
16
|
-
"node-opcua-variant": "2.
|
|
14
|
+
"node-opcua-assert": "2.98.1",
|
|
15
|
+
"node-opcua-types": "2.98.1",
|
|
16
|
+
"node-opcua-variant": "2.98.1"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"node-opcua-buffer-utils": "2.
|
|
20
|
-
"node-opcua-debug": "2.
|
|
21
|
-
"node-opcua-nodeid": "2.
|
|
22
|
-
"node-opcua-packet-analyzer": "2.
|
|
23
|
-
"node-opcua-secure-channel": "2.
|
|
24
|
-
"node-opcua-service-read": "2.
|
|
25
|
-
"node-opcua-status-code": "2.
|
|
19
|
+
"node-opcua-buffer-utils": "2.98.1",
|
|
20
|
+
"node-opcua-debug": "2.98.1",
|
|
21
|
+
"node-opcua-nodeid": "2.98.1",
|
|
22
|
+
"node-opcua-packet-analyzer": "2.98.1",
|
|
23
|
+
"node-opcua-secure-channel": "2.98.1",
|
|
24
|
+
"node-opcua-service-read": "2.98.1",
|
|
25
|
+
"node-opcua-status-code": "2.98.1",
|
|
26
26
|
"should": "^13.2.3"
|
|
27
27
|
},
|
|
28
28
|
"author": "Etienne Rossignon",
|
|
@@ -40,5 +40,9 @@
|
|
|
40
40
|
"internet of things"
|
|
41
41
|
],
|
|
42
42
|
"homepage": "http://node-opcua.github.io/",
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "07dcdd8e8c7f2b55544c6e23023093e35674829c",
|
|
44
|
+
"files": [
|
|
45
|
+
"dist",
|
|
46
|
+
"source"
|
|
47
|
+
]
|
|
44
48
|
}
|