@utiliread/primitives 1.0.0-112 → 1.0.0-113
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/cjs/registers/device-samples.js +25 -0
- package/dist/cjs/registers/device-samples.js.map +1 -0
- package/dist/cjs/registers/index.js +1 -3
- package/dist/cjs/registers/index.js.map +1 -1
- package/dist/esm/registers/device-samples.d.ts +14 -0
- package/dist/esm/registers/device-samples.js +22 -0
- package/dist/esm/registers/device-samples.js.map +1 -0
- package/dist/esm/registers/index.d.ts +1 -3
- package/dist/esm/registers/index.js +1 -3
- package/dist/esm/registers/index.js.map +1 -1
- package/package.json +1 -1
- package/src/registers/{device-samples-on-last-unmount.ts → device-samples.ts} +18 -2
- package/src/registers/index.ts +1 -3
- package/src/registers/device-samples-on-last-mount.ts +0 -21
- package/src/registers/legacy-device-samples.ts +0 -21
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.deviceSamplesOnLastUnmount = exports.deviceSamplesOnLastMount = exports.legacyDeviceSamples = void 0;
|
|
4
|
+
exports.legacyDeviceSamples = {
|
|
5
|
+
id: "legacyDeviceSamples",
|
|
6
|
+
measure: "none",
|
|
7
|
+
aggregate: "instant",
|
|
8
|
+
units: ["json"],
|
|
9
|
+
immediate: true,
|
|
10
|
+
};
|
|
11
|
+
exports.deviceSamplesOnLastMount = {
|
|
12
|
+
id: "deviceSamplesOnLastMount",
|
|
13
|
+
measure: "none",
|
|
14
|
+
aggregate: "instant",
|
|
15
|
+
units: ["json"],
|
|
16
|
+
immediate: true,
|
|
17
|
+
};
|
|
18
|
+
exports.deviceSamplesOnLastUnmount = {
|
|
19
|
+
id: "deviceSamplesOnLastUnmount",
|
|
20
|
+
measure: "none",
|
|
21
|
+
aggregate: "instant",
|
|
22
|
+
units: ["json"],
|
|
23
|
+
immediate: true,
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=device-samples.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"device-samples.js","sourceRoot":"","sources":["../../../src/registers/device-samples.ts"],"names":[],"mappings":";;;AAIa,QAAA,mBAAmB,GAAuB;IACnD,EAAE,EAAE,qBAAqB;IACzB,OAAO,EAAE,MAAM;IACf,SAAS,EAAE,SAAS;IACpB,KAAK,EAAE,CAAC,MAAM,CAAC;IACf,SAAS,EAAE,IAAI;CAClB,CAAC;AAEW,QAAA,wBAAwB,GAAuB;IACxD,EAAE,EAAE,0BAA0B;IAC9B,OAAO,EAAE,MAAM;IACf,SAAS,EAAE,SAAS;IACpB,KAAK,EAAE,CAAC,MAAM,CAAC;IACf,SAAS,EAAE,IAAI;CAClB,CAAC;AAEW,QAAA,0BAA0B,GAAuB;IAC1D,EAAE,EAAE,4BAA4B;IAChC,OAAO,EAAE,MAAM;IACf,SAAS,EAAE,SAAS;IACpB,KAAK,EAAE,CAAC,MAAM,CAAC;IACf,SAAS,EAAE,IAAI;CAClB,CAAC"}
|
|
@@ -30,8 +30,6 @@ __exportStar(require("./device-date"), exports);
|
|
|
30
30
|
__exportStar(require("./device-nominal-diameter"), exports);
|
|
31
31
|
__exportStar(require("./device-permanent-volume-flow"), exports);
|
|
32
32
|
__exportStar(require("./device-registers"), exports);
|
|
33
|
-
__exportStar(require("./device-samples-on-last-mount"), exports);
|
|
34
|
-
__exportStar(require("./device-samples-on-last-unmount"), exports);
|
|
35
33
|
__exportStar(require("./device-software-version"), exports);
|
|
36
34
|
__exportStar(require("./device-time"), exports);
|
|
37
35
|
__exportStar(require("./device"), exports);
|
|
@@ -52,7 +50,7 @@ __exportStar(require("./kamstrup-module-type"), exports);
|
|
|
52
50
|
__exportStar(require("./kamstrup-multical-infocode"), exports);
|
|
53
51
|
__exportStar(require("./landis-gyr-infocode"), exports);
|
|
54
52
|
__exportStar(require("./landis-gyr-mbus-status"), exports);
|
|
55
|
-
__exportStar(require("./
|
|
53
|
+
__exportStar(require("./device-samples"), exports);
|
|
56
54
|
__exportStar(require("./mass-flow-inlet"), exports);
|
|
57
55
|
__exportStar(require("./mass-flow-outlet"), exports);
|
|
58
56
|
__exportStar(require("./mass-flow"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/registers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,wDAAsC;AACtC,6CAA2B;AAC3B,yDAAuC;AACvC,0DAAwC;AACxC,mDAAiC;AACjC,4CAA0B;AAC1B,8DAA4C;AAC5C,4DAA0C;AAC1C,2DAAyC;AACzC,2DAAyC;AACzC,qDAAmC;AACnC,gDAA8B;AAC9B,4DAA0C;AAC1C,iEAA+C;AAC/C,qDAAmC;AACnC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/registers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,wDAAsC;AACtC,6CAA2B;AAC3B,yDAAuC;AACvC,0DAAwC;AACxC,mDAAiC;AACjC,4CAA0B;AAC1B,8DAA4C;AAC5C,4DAA0C;AAC1C,2DAAyC;AACzC,2DAAyC;AACzC,qDAAmC;AACnC,gDAA8B;AAC9B,4DAA0C;AAC1C,iEAA+C;AAC/C,qDAAmC;AACnC,4DAA0C;AAC1C,gDAA8B;AAC9B,2CAAyB;AACzB,mDAAiC;AACjC,sDAAoC;AACpC,iDAA+B;AAC/B,kDAAgC;AAChC,yDAAuC;AACvC,yDAAuC;AACvC,2DAAyC;AACzC,4DAA0C;AAC1C,qDAAmC;AACnC,sDAAoC;AACpC,uDAAqC;AACrC,gDAA8B;AAC9B,6CAA2B;AAC3B,yDAAuC;AACvC,+DAA6C;AAC7C,wDAAsC;AACtC,2DAAyC;AACzC,mDAAiC;AACjC,oDAAkC;AAClC,qDAAmC;AACnC,8CAA4B;AAC5B,+CAA6B;AAC7B,gDAA8B;AAC9B,yCAAuB;AACvB,iEAA+C;AAC/C,yCAAuB;AACvB,mDAAiC;AACjC,0CAAwB;AACxB,gDAA8B;AAC9B,iDAA+B;AAC/B,0CAAwB;AACxB,mDAAiC;AACjC,oDAAkC;AAClC,6CAA2B;AAC3B,yDAAuC;AACvC,oDAAkC;AAClC,sDAAoC;AACpC,2DAAyC;AACzC,wEAAsD;AACtD,mEAAiD;AACjD,qFAAmE;AACnE,sDAAoC;AACpC,yCAAuB;AACvB,sDAAoC;AACpC,uDAAqC;AACrC,gDAA8B;AAC9B,iDAA+B;AAC/B,kDAAgC;AAChC,yDAAuC;AACvC,yDAAuC;AACvC,2CAAyB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { RegisterDefinition } from "../register-definition";
|
|
2
|
+
import { RegisterId } from "../register-id";
|
|
3
|
+
import { UnitId } from "../unit-id";
|
|
4
|
+
export declare const legacyDeviceSamples: RegisterDefinition;
|
|
5
|
+
export declare const deviceSamplesOnLastMount: RegisterDefinition;
|
|
6
|
+
export declare const deviceSamplesOnLastUnmount: RegisterDefinition;
|
|
7
|
+
export type DeviceSamples = DeviceSample[];
|
|
8
|
+
export interface DeviceSample {
|
|
9
|
+
register: RegisterId;
|
|
10
|
+
instantOrPeriodEnd: string;
|
|
11
|
+
value: number;
|
|
12
|
+
precision: number;
|
|
13
|
+
unit: UnitId;
|
|
14
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export const legacyDeviceSamples = {
|
|
2
|
+
id: "legacyDeviceSamples",
|
|
3
|
+
measure: "none",
|
|
4
|
+
aggregate: "instant",
|
|
5
|
+
units: ["json"],
|
|
6
|
+
immediate: true,
|
|
7
|
+
};
|
|
8
|
+
export const deviceSamplesOnLastMount = {
|
|
9
|
+
id: "deviceSamplesOnLastMount",
|
|
10
|
+
measure: "none",
|
|
11
|
+
aggregate: "instant",
|
|
12
|
+
units: ["json"],
|
|
13
|
+
immediate: true,
|
|
14
|
+
};
|
|
15
|
+
export const deviceSamplesOnLastUnmount = {
|
|
16
|
+
id: "deviceSamplesOnLastUnmount",
|
|
17
|
+
measure: "none",
|
|
18
|
+
aggregate: "instant",
|
|
19
|
+
units: ["json"],
|
|
20
|
+
immediate: true,
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=device-samples.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"device-samples.js","sourceRoot":"","sources":["../../../src/registers/device-samples.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,MAAM,mBAAmB,GAAuB;IACnD,EAAE,EAAE,qBAAqB;IACzB,OAAO,EAAE,MAAM;IACf,SAAS,EAAE,SAAS;IACpB,KAAK,EAAE,CAAC,MAAM,CAAC;IACf,SAAS,EAAE,IAAI;CAClB,CAAC;AAEF,MAAM,CAAC,MAAM,wBAAwB,GAAuB;IACxD,EAAE,EAAE,0BAA0B;IAC9B,OAAO,EAAE,MAAM;IACf,SAAS,EAAE,SAAS;IACpB,KAAK,EAAE,CAAC,MAAM,CAAC;IACf,SAAS,EAAE,IAAI;CAClB,CAAC;AAEF,MAAM,CAAC,MAAM,0BAA0B,GAAuB;IAC1D,EAAE,EAAE,4BAA4B;IAChC,OAAO,EAAE,MAAM;IACf,SAAS,EAAE,SAAS;IACpB,KAAK,EAAE,CAAC,MAAM,CAAC;IACf,SAAS,EAAE,IAAI;CAClB,CAAC"}
|
|
@@ -14,8 +14,6 @@ export * from "./device-date";
|
|
|
14
14
|
export * from "./device-nominal-diameter";
|
|
15
15
|
export * from "./device-permanent-volume-flow";
|
|
16
16
|
export * from "./device-registers";
|
|
17
|
-
export * from "./device-samples-on-last-mount";
|
|
18
|
-
export * from "./device-samples-on-last-unmount";
|
|
19
17
|
export * from "./device-software-version";
|
|
20
18
|
export * from "./device-time";
|
|
21
19
|
export * from "./device";
|
|
@@ -36,7 +34,7 @@ export * from "./kamstrup-module-type";
|
|
|
36
34
|
export * from "./kamstrup-multical-infocode";
|
|
37
35
|
export * from "./landis-gyr-infocode";
|
|
38
36
|
export * from "./landis-gyr-mbus-status";
|
|
39
|
-
export * from "./
|
|
37
|
+
export * from "./device-samples";
|
|
40
38
|
export * from "./mass-flow-inlet";
|
|
41
39
|
export * from "./mass-flow-outlet";
|
|
42
40
|
export * from "./mass-flow";
|
|
@@ -14,8 +14,6 @@ export * from "./device-date";
|
|
|
14
14
|
export * from "./device-nominal-diameter";
|
|
15
15
|
export * from "./device-permanent-volume-flow";
|
|
16
16
|
export * from "./device-registers";
|
|
17
|
-
export * from "./device-samples-on-last-mount";
|
|
18
|
-
export * from "./device-samples-on-last-unmount";
|
|
19
17
|
export * from "./device-software-version";
|
|
20
18
|
export * from "./device-time";
|
|
21
19
|
export * from "./device";
|
|
@@ -36,7 +34,7 @@ export * from "./kamstrup-module-type";
|
|
|
36
34
|
export * from "./kamstrup-multical-infocode";
|
|
37
35
|
export * from "./landis-gyr-infocode";
|
|
38
36
|
export * from "./landis-gyr-mbus-status";
|
|
39
|
-
export * from "./
|
|
37
|
+
export * from "./device-samples";
|
|
40
38
|
export * from "./mass-flow-inlet";
|
|
41
39
|
export * from "./mass-flow-outlet";
|
|
42
40
|
export * from "./mass-flow";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/registers/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,YAAY,CAAC;AAC3B,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,oB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;AACvB,cAAc,gCAAgC,CAAC;AAC/C,cAAc,QAAQ,CAAC;AACvB,cAAc,kBAAkB,CAAC;AACjC,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC;AACxB,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,YAAY,CAAC;AAC3B,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,uCAAuC,CAAC;AACtD,cAAc,kCAAkC,CAAC;AACjD,cAAc,oDAAoD,CAAC;AACnE,cAAc,qBAAqB,CAAC;AACpC,cAAc,QAAQ,CAAC;AACvB,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,UAAU,CAAC"}
|
package/package.json
CHANGED
|
@@ -2,6 +2,22 @@ import { RegisterDefinition } from "../register-definition";
|
|
|
2
2
|
import { RegisterId } from "../register-id";
|
|
3
3
|
import { UnitId } from "../unit-id";
|
|
4
4
|
|
|
5
|
+
export const legacyDeviceSamples: RegisterDefinition = {
|
|
6
|
+
id: "legacyDeviceSamples",
|
|
7
|
+
measure: "none",
|
|
8
|
+
aggregate: "instant",
|
|
9
|
+
units: ["json"],
|
|
10
|
+
immediate: true,
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const deviceSamplesOnLastMount: RegisterDefinition = {
|
|
14
|
+
id: "deviceSamplesOnLastMount",
|
|
15
|
+
measure: "none",
|
|
16
|
+
aggregate: "instant",
|
|
17
|
+
units: ["json"],
|
|
18
|
+
immediate: true,
|
|
19
|
+
};
|
|
20
|
+
|
|
5
21
|
export const deviceSamplesOnLastUnmount: RegisterDefinition = {
|
|
6
22
|
id: "deviceSamplesOnLastUnmount",
|
|
7
23
|
measure: "none",
|
|
@@ -10,9 +26,9 @@ export const deviceSamplesOnLastUnmount: RegisterDefinition = {
|
|
|
10
26
|
immediate: true,
|
|
11
27
|
};
|
|
12
28
|
|
|
13
|
-
export type
|
|
29
|
+
export type DeviceSamples = DeviceSample[];
|
|
14
30
|
|
|
15
|
-
export interface
|
|
31
|
+
export interface DeviceSample {
|
|
16
32
|
register: RegisterId;
|
|
17
33
|
instantOrPeriodEnd: string;
|
|
18
34
|
value: number;
|
package/src/registers/index.ts
CHANGED
|
@@ -14,8 +14,6 @@ export * from "./device-date";
|
|
|
14
14
|
export * from "./device-nominal-diameter";
|
|
15
15
|
export * from "./device-permanent-volume-flow";
|
|
16
16
|
export * from "./device-registers";
|
|
17
|
-
export * from "./device-samples-on-last-mount";
|
|
18
|
-
export * from "./device-samples-on-last-unmount";
|
|
19
17
|
export * from "./device-software-version";
|
|
20
18
|
export * from "./device-time";
|
|
21
19
|
export * from "./device";
|
|
@@ -36,7 +34,7 @@ export * from "./kamstrup-module-type";
|
|
|
36
34
|
export * from "./kamstrup-multical-infocode";
|
|
37
35
|
export * from "./landis-gyr-infocode";
|
|
38
36
|
export * from "./landis-gyr-mbus-status";
|
|
39
|
-
export * from "./
|
|
37
|
+
export * from "./device-samples";
|
|
40
38
|
export * from "./mass-flow-inlet";
|
|
41
39
|
export * from "./mass-flow-outlet";
|
|
42
40
|
export * from "./mass-flow";
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { RegisterDefinition } from "../register-definition";
|
|
2
|
-
import { RegisterId } from "../register-id";
|
|
3
|
-
import { UnitId } from "../unit-id";
|
|
4
|
-
|
|
5
|
-
export const deviceSamplesOnLastMount: RegisterDefinition = {
|
|
6
|
-
id: "deviceSamplesOnLastMount",
|
|
7
|
-
measure: "none",
|
|
8
|
-
aggregate: "instant",
|
|
9
|
-
units: ["json"],
|
|
10
|
-
immediate: true,
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
export type DeviceSamplesOnMount = DeviceSampleOnMount[];
|
|
14
|
-
|
|
15
|
-
export interface DeviceSampleOnMount {
|
|
16
|
-
register: RegisterId;
|
|
17
|
-
instantOrPeriodEnd: string;
|
|
18
|
-
value: number;
|
|
19
|
-
precision: number;
|
|
20
|
-
unit: UnitId;
|
|
21
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { RegisterDefinition } from "../register-definition";
|
|
2
|
-
import { RegisterId } from "../register-id";
|
|
3
|
-
import { UnitId } from "../unit-id";
|
|
4
|
-
|
|
5
|
-
export const legacyDeviceSamples: RegisterDefinition = {
|
|
6
|
-
id: "legacyDeviceSamples",
|
|
7
|
-
measure: "none",
|
|
8
|
-
aggregate: "instant",
|
|
9
|
-
units: ["json"],
|
|
10
|
-
immediate: true,
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
export type LegacyDeviceSamples = LegacyDeviceSample[];
|
|
14
|
-
|
|
15
|
-
export interface LegacyDeviceSample {
|
|
16
|
-
register: RegisterId;
|
|
17
|
-
instantOrPeriodEnd: string;
|
|
18
|
-
value: number;
|
|
19
|
-
precision: number;
|
|
20
|
-
unit: UnitId;
|
|
21
|
-
}
|