node-opcua-data-access 2.98.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/EUInformation.d.ts +74 -0
- package/dist/EUInformation.js +161 -0
- package/dist/EUInformation.js.map +1 -0
- package/dist/Range.d.ts +4 -0
- package/dist/Range.js +9 -0
- package/dist/Range.js.map +1 -0
- package/dist/imports.d.ts +5 -0
- package/dist/imports.js +24 -0
- package/dist/imports.js.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +26 -0
- package/dist/index.js.map +1 -0
- package/package.json +10 -6
- package/fragment.yml +0 -32
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module node-opcua-data-access
|
|
3
|
+
*/
|
|
4
|
+
export { EUInformation } from "node-opcua-types";
|
|
5
|
+
import { EUInformation } from "node-opcua-types";
|
|
6
|
+
export declare function commonCodeToUInt(code: string): number;
|
|
7
|
+
export declare function makeEUInformation(symbol: string, shortName: string, longName: string): EUInformation;
|
|
8
|
+
export interface StandardUnits {
|
|
9
|
+
ampere: EUInformation;
|
|
10
|
+
bar: EUInformation;
|
|
11
|
+
becquerel: EUInformation;
|
|
12
|
+
byte: EUInformation;
|
|
13
|
+
centimetre: EUInformation;
|
|
14
|
+
cubic_centimetre: EUInformation;
|
|
15
|
+
cubic_centimetre_per_second: EUInformation;
|
|
16
|
+
cubic_metre: EUInformation;
|
|
17
|
+
cubic_metre_per_hour: EUInformation;
|
|
18
|
+
cubic_meter_per_minute: EUInformation;
|
|
19
|
+
curie: EUInformation;
|
|
20
|
+
curie_per_kilogram: EUInformation;
|
|
21
|
+
degree: EUInformation;
|
|
22
|
+
degree_celsius: EUInformation;
|
|
23
|
+
degree_fahrenheit: EUInformation;
|
|
24
|
+
dots_per_inch: EUInformation;
|
|
25
|
+
electron_volt: EUInformation;
|
|
26
|
+
farad: EUInformation;
|
|
27
|
+
gigabecquerel: EUInformation;
|
|
28
|
+
gigabyte: EUInformation;
|
|
29
|
+
gram: EUInformation;
|
|
30
|
+
hectopascal: EUInformation;
|
|
31
|
+
hertz: EUInformation;
|
|
32
|
+
joule: EUInformation;
|
|
33
|
+
kelvin: EUInformation;
|
|
34
|
+
kilo_electron_volt: EUInformation;
|
|
35
|
+
kilobecquerel: EUInformation;
|
|
36
|
+
kilobyte: EUInformation;
|
|
37
|
+
kilohertz: EUInformation;
|
|
38
|
+
kilogram: EUInformation;
|
|
39
|
+
kilogram_force: EUInformation;
|
|
40
|
+
kilogram_per_second: EUInformation;
|
|
41
|
+
kilogram_per_squared_centimeter: EUInformation;
|
|
42
|
+
kilometre_per_hour: EUInformation;
|
|
43
|
+
kilopascal: EUInformation;
|
|
44
|
+
kilowatt: EUInformation;
|
|
45
|
+
mega_electron_volt: EUInformation;
|
|
46
|
+
megabyte: EUInformation;
|
|
47
|
+
megahertz: EUInformation;
|
|
48
|
+
megapascal: EUInformation;
|
|
49
|
+
megawatt: EUInformation;
|
|
50
|
+
megawatt_per_minute: EUInformation;
|
|
51
|
+
metre: EUInformation;
|
|
52
|
+
metre_per_second: EUInformation;
|
|
53
|
+
metre_per_second_squared: EUInformation;
|
|
54
|
+
microsecond: EUInformation;
|
|
55
|
+
mile_per_hour: EUInformation;
|
|
56
|
+
millibar: EUInformation;
|
|
57
|
+
millimetre: EUInformation;
|
|
58
|
+
millipascal: EUInformation;
|
|
59
|
+
millisecond: EUInformation;
|
|
60
|
+
minute: EUInformation;
|
|
61
|
+
minute_angle: EUInformation;
|
|
62
|
+
newton: EUInformation;
|
|
63
|
+
pascal: EUInformation;
|
|
64
|
+
part_per_million: EUInformation;
|
|
65
|
+
percent: EUInformation;
|
|
66
|
+
pixel: EUInformation;
|
|
67
|
+
revolutions_per_minute: EUInformation;
|
|
68
|
+
revolutions_per_second: EUInformation;
|
|
69
|
+
second: EUInformation;
|
|
70
|
+
terabyte: EUInformation;
|
|
71
|
+
volt: EUInformation;
|
|
72
|
+
watt: EUInformation;
|
|
73
|
+
}
|
|
74
|
+
export declare const standardUnits: StandardUnits;
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.standardUnits = exports.makeEUInformation = exports.commonCodeToUInt = exports.EUInformation = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* @module node-opcua-data-access
|
|
6
|
+
*/
|
|
7
|
+
var node_opcua_types_1 = require("node-opcua-types");
|
|
8
|
+
Object.defineProperty(exports, "EUInformation", { enumerable: true, get: function () { return node_opcua_types_1.EUInformation; } });
|
|
9
|
+
/*jslint bitwise: true */
|
|
10
|
+
// tslint:disable:no-bitwise
|
|
11
|
+
// EngineeringUnit
|
|
12
|
+
// Units of measurement for AnalogItems that represent continuously- variable physical quantities ( e.g.,
|
|
13
|
+
// length, mass , time, temperature )
|
|
14
|
+
// NOTE This standard defines Properties to inform about the unit used for the DataI tem value and
|
|
15
|
+
// about the highest and lowest value likely to be obtained in normal operation
|
|
16
|
+
const node_opcua_types_2 = require("node-opcua-types");
|
|
17
|
+
const defaultUri = "http://www.opcfoundation.org/UA/units/un/cefact";
|
|
18
|
+
const schemaEUInformation = node_opcua_types_2.EUInformation.schema;
|
|
19
|
+
schemaEUInformation.fields[0].defaultValue = defaultUri;
|
|
20
|
+
schemaEUInformation.fields[0].documentation =
|
|
21
|
+
"Identifies the organization (company, standards organization) that defines the EUInformation.";
|
|
22
|
+
schemaEUInformation.fields[1].documentation = "Identifier for programmatic evaluation. −1 is used if a unitId is not available.";
|
|
23
|
+
schemaEUInformation.fields[2].documentation = "The displayName of the engineering ( for instance 'm/s' )";
|
|
24
|
+
schemaEUInformation.fields[3].documentation = "Contains the full name of the engineering unit such as ”hour” or ”meter per second";
|
|
25
|
+
// The displayName of the engineering unit is typically the abbreviation of the
|
|
26
|
+
// engineering unit, for example ”h” for hour or ”m/s” for meter per second." +
|
|
27
|
+
// "description LocalizedText Contains the full name of the engineering unit such as ”hour” or ”meter
|
|
28
|
+
// http://www.unece.org/fileadmin/DAM/cefact/recommendations/rec20/rec20_rev3_Annex2e.pdf
|
|
29
|
+
// To facilitate interoperability, OPC UA specifies how to apply the widely accepted "Codes for Units of Measurement
|
|
30
|
+
// (Recommendation N°. 20)” published by the "United Nations Centre for Trade
|
|
31
|
+
// Facilitation and Electronic Business” (see UN/CEFACT). It uses and is based on the International System of Units
|
|
32
|
+
// (SI Units) but in addition provides a fixed code that can be used for automated evaluation. This recommendation
|
|
33
|
+
// has been accepted by many industries on a global basis.
|
|
34
|
+
//
|
|
35
|
+
// Following is a small excerpt of the published Annex with Code Lists:
|
|
36
|
+
// Excerpt from Recommendation N°. 20, Annex 1
|
|
37
|
+
// Common Code Name Conversion Factor Symbol
|
|
38
|
+
// C81 radian rad
|
|
39
|
+
// C25 milliradian 1E-3 rad mrad
|
|
40
|
+
// MMT millimetre 1E−3 m mm
|
|
41
|
+
// HMT hectometre 1E2 m hm
|
|
42
|
+
// KTM kilometre 1E3 m km
|
|
43
|
+
// KMQ kilogram per cubic metre kg/m3 kg/m3
|
|
44
|
+
// FAH degree Fahrenheit 5/9 x K °F
|
|
45
|
+
// J23 degree Fahrenheit per hour 1,543 210 x 10− 4 K/s °F/h
|
|
46
|
+
// SEC second [unit of time]
|
|
47
|
+
// C26 millisecond 1E-3 S
|
|
48
|
+
// B98 microsecond 1E-6 S
|
|
49
|
+
// Specific columns of this table shall be used to create the EUInformation structure as defined by the following rules:
|
|
50
|
+
//
|
|
51
|
+
// The Common Code is represented as an alphanumeric variable length of 3 characters. It shall be used for the
|
|
52
|
+
// EUInformation.unitId. The following pseudo code specifies the algorithm
|
|
53
|
+
// to convert the Common Code into an Int32 as needed for EUInformation.unitId:
|
|
54
|
+
function commonCodeToUInt(code) {
|
|
55
|
+
// CEL =>
|
|
56
|
+
let unitId = 0;
|
|
57
|
+
let c;
|
|
58
|
+
const m = Math.min(4, code.length);
|
|
59
|
+
for (let i = 0; i < m; i++) {
|
|
60
|
+
c = code.charCodeAt(i);
|
|
61
|
+
/* istanbul ignore if*/
|
|
62
|
+
if (c === 0) {
|
|
63
|
+
return unitId;
|
|
64
|
+
}
|
|
65
|
+
unitId *= 256;
|
|
66
|
+
unitId |= c;
|
|
67
|
+
}
|
|
68
|
+
return unitId;
|
|
69
|
+
}
|
|
70
|
+
exports.commonCodeToUInt = commonCodeToUInt;
|
|
71
|
+
function makeEUInformation(symbol, shortName, longName) {
|
|
72
|
+
return new node_opcua_types_2.EUInformation({
|
|
73
|
+
description: { text: longName },
|
|
74
|
+
displayName: { text: shortName },
|
|
75
|
+
unitId: commonCodeToUInt(symbol)
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
exports.makeEUInformation = makeEUInformation;
|
|
79
|
+
// https://unece.org/sites/default/files/2021-06/rec20_Rev17e-2021.xlsx
|
|
80
|
+
exports.standardUnits = {
|
|
81
|
+
// pressure
|
|
82
|
+
bar: makeEUInformation("BAR", "bar", "bar [unit of pressure] = 1E5 Pa"),
|
|
83
|
+
hectopascal: makeEUInformation("A97", "hPa", "hectopascal [unit of pressure] = 1E2 Pa"),
|
|
84
|
+
millibar: makeEUInformation("MBR", "mbar", "millibar [unit of pressure] = 1E2 Pa"),
|
|
85
|
+
pascal: makeEUInformation("PAL", "Pa", "pascal [unit of pressure]"),
|
|
86
|
+
kilogram_per_squared_centimeter: makeEUInformation("D5", "kg/cm²", "kilogram per square centimetre"),
|
|
87
|
+
megapascal: makeEUInformation("MPA", "MPa", "1 megapascal = 10⁶ pascal [unit of pressure]"),
|
|
88
|
+
// time/duration
|
|
89
|
+
microsecond: makeEUInformation("B98", "μs", "microsecond =1E-6 second"),
|
|
90
|
+
millisecond: makeEUInformation("C26", "ms", "millisecond =1E-3 second"),
|
|
91
|
+
second: makeEUInformation("SEC", "s", "second"),
|
|
92
|
+
// distance
|
|
93
|
+
centimetre: makeEUInformation("CMT", "cm", "centimetre = 1E-2 m"),
|
|
94
|
+
metre: makeEUInformation("MTR", "m", "metre"),
|
|
95
|
+
millimetre: makeEUInformation("MMT", "mm", "millimetre = 1E-3 metre"),
|
|
96
|
+
// volume
|
|
97
|
+
cubic_centimetre: makeEUInformation("CMQ", "cm³", "Cubic centimetre = 1E-6 m³"),
|
|
98
|
+
cubic_metre: makeEUInformation("MTQ", "m³", "Cubic metre"),
|
|
99
|
+
// temperature
|
|
100
|
+
degree_celsius: makeEUInformation("CEL", "°C", "degree Celsius"),
|
|
101
|
+
degree_fahrenheit: makeEUInformation("FAH", "°F", "degree Fahrenheit 9/5(°C) + 32°"),
|
|
102
|
+
kelvin: makeEUInformation("KEL", "K", "degree Kelvin"),
|
|
103
|
+
// weight
|
|
104
|
+
gram: makeEUInformation("GRM", "g", "gramme 1E-3 kg"),
|
|
105
|
+
kilogram: makeEUInformation("KGM", "kg", "A unit of mass equal to one thousand grams"),
|
|
106
|
+
// speed
|
|
107
|
+
metre_per_second: makeEUInformation("MTS", "m/s", "meter per second"),
|
|
108
|
+
mile_per_hour: makeEUInformation("HM", "mile/h", "mile per hour = 2 0,447 04 m/s"),
|
|
109
|
+
kilometre_per_hour: makeEUInformation("KMH", "km/h", "kilometre per hour = 0,277 778 m/s"),
|
|
110
|
+
// acceleration
|
|
111
|
+
metre_per_second_squared: makeEUInformation("MSK", "m/s²", "meter per second square"),
|
|
112
|
+
// frequency
|
|
113
|
+
kilohertz: makeEUInformation("KHZ", "kHz", "kilo hertz = 1E3 Hertz"),
|
|
114
|
+
hertz: makeEUInformation("HTZ", "Hz", "Hertz"),
|
|
115
|
+
megahertz: makeEUInformation("MHZ", "MHz", "megahertz"),
|
|
116
|
+
revolutions_per_minute: makeEUInformation("RPM", "r/min", "revolutions per minute 1,047198 rad/(60 x s)"),
|
|
117
|
+
revolutions_per_second: makeEUInformation("RPS", "r/s", "revolutions per minute 1,047198 rad/s"),
|
|
118
|
+
// force
|
|
119
|
+
newton: makeEUInformation("NEW", "N", "Newton (kg x m)/s² "),
|
|
120
|
+
kilogram_force: makeEUInformation("B37", "kgf", "kilogram-force 1 kgf = 9.80665 N"),
|
|
121
|
+
// power
|
|
122
|
+
kilowatt: makeEUInformation("KWT", "kW", "kilowatt 1kW = 10³ W"),
|
|
123
|
+
megawatt: makeEUInformation("MAW", "MW", "Mega Watt"),
|
|
124
|
+
watt: makeEUInformation("WTT", "W", "Watt"),
|
|
125
|
+
// rate of flow
|
|
126
|
+
cubic_centimetre_per_second: makeEUInformation("2J", "cm³/s", "Cubic centimetre per second"),
|
|
127
|
+
cubic_metre_per_hour: makeEUInformation("MQH", "m³/h", "Cubic metre per hours = 2,777 78 x 10⁻⁴ m³/s"),
|
|
128
|
+
cubic_meter_per_minute: makeEUInformation("G53", "m³/min", "m³/min cubic metre per minute"),
|
|
129
|
+
// angle
|
|
130
|
+
degree: makeEUInformation("DD", "°", "degree [unit of angle]"),
|
|
131
|
+
//
|
|
132
|
+
ampere: makeEUInformation("AMP", "A", "ampere"),
|
|
133
|
+
becquerel: makeEUInformation("BQL", "Bq", "becquerel = 27,027E-12 Ci"),
|
|
134
|
+
curie: makeEUInformation("CUR", "Ci", "Curie = 3,7E-10 Bq"),
|
|
135
|
+
curie_per_kilogram: makeEUInformation("A42", "Ci/kg", "Curie per kilogram = 3,7E-10 Bq/kg"),
|
|
136
|
+
dots_per_inch: makeEUInformation("E39", "dpi", "dot per inch"),
|
|
137
|
+
electron_volt: makeEUInformation("A53", "eV", "electron volt"),
|
|
138
|
+
farad: makeEUInformation("FAR", "F", "Farad = kg⁻¹ x m⁻² x s⁴ x A²"),
|
|
139
|
+
gigabecquerel: makeEUInformation("GBQ", "GBq", "Giga becquerel = 1E9 Bq"),
|
|
140
|
+
joule: makeEUInformation("JOU", "J", "Joule"),
|
|
141
|
+
kilo_electron_volt: makeEUInformation("B29", "keV", "kilo electron volt"),
|
|
142
|
+
kilogram_per_second: makeEUInformation("KGS", "kg/s", "kilogram per second"),
|
|
143
|
+
kilopascal: makeEUInformation("KPA", "kPa", "1 kilopascal = 10³ Pa"),
|
|
144
|
+
millipascal: makeEUInformation("74", "mPa", "1 millipascal = 10⁻³ Pa"),
|
|
145
|
+
kilobecquerel: makeEUInformation("2Q", "kBq", "kilo becquerel = 1E3 Bq"),
|
|
146
|
+
mega_electron_volt: makeEUInformation("B71", "MeV", "mega electron volt"),
|
|
147
|
+
megawatt_per_minute: makeEUInformation("Q35", "MW/min", "A unit of power defining the total amount of bulk energy transferred or consumer per minute."),
|
|
148
|
+
percent: makeEUInformation("P1", "%", "Percent, a unit of proportion equal to 0.01. "),
|
|
149
|
+
pixel: makeEUInformation("E37", "", "pixel: unit of count defining the number of pixels (pixel: picture element)"),
|
|
150
|
+
volt: makeEUInformation("VLT", "V", "Volt"),
|
|
151
|
+
byte: makeEUInformation("AD", "byte", "byte = A unit of information equal to 8 bits."),
|
|
152
|
+
kilobyte: makeEUInformation("2P", "kbyte", "kilobyte = A unit of information equal to 10³ (1000) bytes."),
|
|
153
|
+
megabyte: makeEUInformation("4L", "Mbyte", "megabyte = A unit of information equal to 10⁶ (1000000) bytes."),
|
|
154
|
+
gigabyte: makeEUInformation("E34", "Gbyte", "gigabyte = A unit of information equal to 10⁹ bytes."),
|
|
155
|
+
terabyte: makeEUInformation("E35", "Tbyte", "terabyte = A unit of information equal to 10¹² bytes."),
|
|
156
|
+
minute: makeEUInformation("MIN", "min", " minute (unit of time) 1min = 60 s"),
|
|
157
|
+
minute_angle: makeEUInformation("D61", "'", "minute [unit of angle]"),
|
|
158
|
+
part_per_million: makeEUInformation("59", "ppm", "A unit of proportion equal to 10⁻⁶.")
|
|
159
|
+
// to be continued
|
|
160
|
+
};
|
|
161
|
+
//# sourceMappingURL=EUInformation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EUInformation.js","sourceRoot":"","sources":["../source/EUInformation.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,qDAAiD;AAAxC,iHAAA,aAAa,OAAA;AACtB,yBAAyB;AACzB,4BAA4B;AAE5B,kBAAkB;A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B,CAAC,IAAI,EAAE,OAAO,EAAE,gEAAgE,CAAC;IAC5G,QAAQ,EAAE,iBAAiB,CAAC,KAAK,EAAE,OAAO,EAAE,sDAAsD,CAAC;IACnG,QAAQ,EAAE,iBAAiB,CAAC,KAAK,EAAE,OAAO,EAAE,uDAAuD,CAAC;IACpG,MAAM,EAAE,iBAAiB,CAAC,KAAK,EAAE,KAAK,EAAE,oCAAoC,CAAC;IAC7E,YAAY,EAAE,iBAAiB,CAAC,KAAK,EAAE,GAAG,EAAE,wBAAwB,CAAC;IACrE,gBAAgB,EAAE,iBAAiB,CAAC,IAAI,EAAE,KAAK,EAAE,qCAAqC,CAAC;IACvF,kBAAkB;CACrB,CAAC"}
|
package/dist/Range.d.ts
ADDED
package/dist/Range.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Range = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* @module node-opcua-data-access
|
|
6
|
+
*/
|
|
7
|
+
var node_opcua_types_1 = require("node-opcua-types");
|
|
8
|
+
Object.defineProperty(exports, "Range", { enumerable: true, get: function () { return node_opcua_types_1.Range; } });
|
|
9
|
+
//# sourceMappingURL=Range.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Range.js","sourceRoot":"","sources":["../source/Range.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,qDAAyC;AAAhC,yGAAA,KAAK,OAAA"}
|
package/dist/imports.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
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.LocalizedText = void 0;
|
|
18
|
+
/**
|
|
19
|
+
* @module node-opcua-data-access
|
|
20
|
+
*/
|
|
21
|
+
var node_opcua_data_model_1 = require("node-opcua-data-model");
|
|
22
|
+
Object.defineProperty(exports, "LocalizedText", { enumerable: true, get: function () { return node_opcua_data_model_1.LocalizedText; } });
|
|
23
|
+
__exportStar(require("./Range"), exports);
|
|
24
|
+
//# sourceMappingURL=imports.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"imports.js","sourceRoot":"","sources":["../source/imports.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,+DAAsD;AAA7C,sHAAA,aAAa,OAAA;AACtB,0CAAwB"}
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
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.AxisScaleEnumeration = exports.AxisInformation = void 0;
|
|
18
|
+
/**
|
|
19
|
+
* @module node-opcua-data-access
|
|
20
|
+
*/
|
|
21
|
+
__exportStar(require("./Range"), exports);
|
|
22
|
+
__exportStar(require("./EUInformation"), exports);
|
|
23
|
+
var node_opcua_types_1 = require("node-opcua-types");
|
|
24
|
+
Object.defineProperty(exports, "AxisInformation", { enumerable: true, get: function () { return node_opcua_types_1.AxisInformation; } });
|
|
25
|
+
Object.defineProperty(exports, "AxisScaleEnumeration", { enumerable: true, get: function () { return node_opcua_types_1.AxisScaleEnumeration; } });
|
|
26
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../source/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,0CAAwB;AACxB,kDAAgC;AAChC,qDAAyE;AAAhE,mHAAA,eAAe,OAAA;AAAE,wHAAA,oBAAoB,OAAA"}
|
package/package.json
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"name": "node-opcua-data-access",
|
|
3
3
|
"main": "./dist/index.js",
|
|
4
4
|
"types": "./dist/index.d.ts",
|
|
5
|
-
"version": "2.98.
|
|
6
|
-
"description": "pure nodejs OPCUA SDK - module
|
|
5
|
+
"version": "2.98.1",
|
|
6
|
+
"description": "pure nodejs OPCUA SDK - module data-access",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"build": "tsc -b",
|
|
9
9
|
"test": "mocha",
|
|
@@ -12,11 +12,11 @@
|
|
|
12
12
|
"format": "prettier --write source test"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"node-opcua-data-model": "2.98.
|
|
16
|
-
"node-opcua-types": "2.98.
|
|
15
|
+
"node-opcua-data-model": "2.98.1",
|
|
16
|
+
"node-opcua-types": "2.98.1"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"node-opcua-assert": "2.
|
|
19
|
+
"node-opcua-assert": "2.98.1",
|
|
20
20
|
"should": "^13.2.3"
|
|
21
21
|
},
|
|
22
22
|
"author": "Etienne Rossignon",
|
|
@@ -34,5 +34,9 @@
|
|
|
34
34
|
"internet of things"
|
|
35
35
|
],
|
|
36
36
|
"homepage": "http://node-opcua.github.io/",
|
|
37
|
-
"gitHead": "07dcdd8e8c7f2b55544c6e23023093e35674829c"
|
|
37
|
+
"gitHead": "07dcdd8e8c7f2b55544c6e23023093e35674829c",
|
|
38
|
+
"files": [
|
|
39
|
+
"dist",
|
|
40
|
+
"source"
|
|
41
|
+
]
|
|
38
42
|
}
|
package/fragment.yml
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
AxisInformation:
|
|
2
|
-
engineeringUnits: >
|
|
3
|
-
EngineeringUnit Holds the information about the engineering units for a given axis.
|
|
4
|
-
euRange: >
|
|
5
|
-
Range Limits of the range of the axis
|
|
6
|
-
title: >
|
|
7
|
-
LocalizedText User readable axis title, useful when the units are %, the Title may be “Particle size distribution"
|
|
8
|
-
axisScaleType: >
|
|
9
|
-
AxisScaleEnumeration LINEAR, LOG, LN, defined by AxisSteps
|
|
10
|
-
axisSteps: >
|
|
11
|
-
Double[] Specific value of each axis steps, may be set to “Null” if not used
|
|
12
|
-
|
|
13
|
-
EngineeringUnit:
|
|
14
|
-
document: >
|
|
15
|
-
Units of measurement for AnalogItems that represent continuously- variable physical quantities ( e.g.,
|
|
16
|
-
length, mass , time, temperature )
|
|
17
|
-
NOTE This standard defines Properties to inform about the unit used for the DataItem
|
|
18
|
-
value and about the highest and lowest value likely to be obtained in normal operation
|
|
19
|
-
|
|
20
|
-
fields:
|
|
21
|
-
namespaceUri: >
|
|
22
|
-
Identifies the organization (company, standards organization) that defines the EUInformation.
|
|
23
|
-
|
|
24
|
-
unitId: >
|
|
25
|
-
Identifier for programmatic evaluation. −1 is used if a unitId is not available.
|
|
26
|
-
The displayName of the engineering unit is typically the abbreviation of the
|
|
27
|
-
engineering unit, for example ”h” for hour or ”m/s” for meter per second." +
|
|
28
|
-
description: >
|
|
29
|
-
Contains the full name of the engineering unit such as ”hour” or ”meter per second"
|
|
30
|
-
displayName: >
|
|
31
|
-
The displayName of the engineering ( for instance 'm/s' )"
|
|
32
|
-
|