raain-model 2.6.10 → 3.0.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/CHANGELOG.md +94 -7
- package/README.md +14 -13
- package/RELEASE_PROCESS.md +91 -4
- package/cartesian/CartesianMeasureValue.d.ts +46 -0
- package/{src/cartesian/CartesianMeasureValue.ts → cartesian/CartesianMeasureValue.js} +41 -73
- package/cartesian/CartesianMeasureValue.js.map +1 -0
- package/cartesian/CartesianTools.d.ts +32 -0
- package/{src/cartesian/CartesianTools.ts → cartesian/CartesianTools.js} +69 -130
- package/cartesian/CartesianTools.js.map +1 -0
- package/cartesian/CartesianValue.d.ts +14 -0
- package/cartesian/CartesianValue.js +17 -0
- package/cartesian/CartesianValue.js.map +1 -0
- package/cartesian/EarthMap.d.ts +5 -0
- package/cartesian/EarthMap.js +3 -0
- package/cartesian/EarthMap.js.map +1 -0
- package/cartesian/ICartesianMeasureValue.d.ts +23 -0
- package/cartesian/ICartesianMeasureValue.js +3 -0
- package/cartesian/ICartesianMeasureValue.js.map +1 -0
- package/cartesian/LatLng.d.ts +16 -0
- package/cartesian/LatLng.js +34 -0
- package/cartesian/LatLng.js.map +1 -0
- package/cartesian/RadarCartesianMeasureValue.d.ts +27 -0
- package/cartesian/RadarCartesianMeasureValue.js +24 -0
- package/cartesian/RadarCartesianMeasureValue.js.map +1 -0
- package/cartesian/RainCartesianMeasureValue.d.ts +25 -0
- package/cartesian/RainCartesianMeasureValue.js +25 -0
- package/cartesian/RainCartesianMeasureValue.js.map +1 -0
- package/cartesian/index.js +25 -0
- package/cartesian/index.js.map +1 -0
- package/gauge/GaugeMeasure.d.ts +30 -0
- package/gauge/GaugeMeasure.js +30 -0
- package/gauge/GaugeMeasure.js.map +1 -0
- package/gauge/GaugeNode.d.ts +95 -0
- package/{src/gauge/GaugeNode.ts → gauge/GaugeNode.js} +28 -54
- package/gauge/GaugeNode.js.map +1 -0
- package/gauge/GaugeNodeMap.d.ts +35 -0
- package/gauge/GaugeNodeMap.js +42 -0
- package/gauge/GaugeNodeMap.js.map +1 -0
- package/gauge/index.js +20 -0
- package/gauge/index.js.map +1 -0
- package/index.js +24 -0
- package/index.js.map +1 -0
- package/organization/EventNode.d.ts +30 -0
- package/organization/EventNode.js +30 -0
- package/organization/EventNode.js.map +1 -0
- package/organization/IVersion.js +3 -0
- package/organization/IVersion.js.map +1 -0
- package/organization/Link.d.ts +16 -0
- package/{src/organization/Link.ts → organization/Link.js} +15 -15
- package/organization/Link.js.map +1 -0
- package/organization/Measure.d.ts +30 -0
- package/organization/Measure.js +51 -0
- package/organization/Measure.js.map +1 -0
- package/organization/PeopleNode.d.ts +23 -0
- package/{src/organization/PeopleNode.ts → organization/PeopleNode.js} +10 -20
- package/organization/PeopleNode.js.map +1 -0
- package/organization/RaainNode.d.ts +95 -0
- package/{src/organization/RaainNode.ts → organization/RaainNode.js} +38 -63
- package/organization/RaainNode.js.map +1 -0
- package/organization/TeamNode.d.ts +51 -0
- package/organization/TeamNode.js +52 -0
- package/organization/TeamNode.js.map +1 -0
- package/organization/index.js +24 -0
- package/organization/index.js.map +1 -0
- package/package.json +4 -2
- package/polar/AbstractPolarMeasureValue.d.ts +31 -0
- package/{src/polar/AbstractPolarMeasureValue.ts → polar/AbstractPolarMeasureValue.js} +34 -62
- package/polar/AbstractPolarMeasureValue.js.map +1 -0
- package/polar/IPolarMeasureValue.d.ts +19 -0
- package/polar/IPolarMeasureValue.js +3 -0
- package/polar/IPolarMeasureValue.js.map +1 -0
- package/polar/MeasureValuePolarContainer.d.ts +24 -0
- package/{src/polar/MeasureValuePolarContainer.ts → polar/MeasureValuePolarContainer.js} +13 -29
- package/polar/MeasureValuePolarContainer.js.map +1 -0
- package/polar/PolarFilter.d.ts +16 -0
- package/polar/PolarFilter.js +45 -0
- package/polar/PolarFilter.js.map +1 -0
- package/polar/PolarMeasureValue.d.ts +51 -0
- package/{src/polar/PolarMeasureValue.ts → polar/PolarMeasureValue.js} +62 -125
- package/polar/PolarMeasureValue.js.map +1 -0
- package/polar/PolarMeasureValueMap.d.ts +45 -0
- package/{src/polar/PolarMeasureValueMap.ts → polar/PolarMeasureValueMap.js} +88 -165
- package/polar/PolarMeasureValueMap.js.map +1 -0
- package/polar/PolarValue.d.ts +10 -0
- package/polar/PolarValue.js +12 -0
- package/polar/PolarValue.js.map +1 -0
- package/polar/RadarPolarMeasureValue.d.ts +33 -0
- package/{src/polar/RadarPolarMeasureValue.ts → polar/RadarPolarMeasureValue.js} +31 -39
- package/polar/RadarPolarMeasureValue.js.map +1 -0
- package/polar/RainPolarMeasureValue.d.ts +24 -0
- package/polar/RainPolarMeasureValue.js +46 -0
- package/polar/RainPolarMeasureValue.js.map +1 -0
- package/polar/index.js +25 -0
- package/polar/index.js.map +1 -0
- package/quality/QualityPoint.d.ts +37 -0
- package/{src/quality/QualityPoint.ts → quality/QualityPoint.js} +33 -56
- package/quality/QualityPoint.js.map +1 -0
- package/quality/SpeedMatrix.d.ts +83 -0
- package/{src/quality/SpeedMatrix.ts → quality/SpeedMatrix.js} +76 -117
- package/quality/SpeedMatrix.js.map +1 -0
- package/quality/SpeedMatrixContainer.d.ts +102 -0
- package/{src/quality/SpeedMatrixContainer.ts → quality/SpeedMatrixContainer.js} +103 -210
- package/quality/SpeedMatrixContainer.js.map +1 -0
- package/quality/history/CartesianGaugeHistory.d.ts +15 -0
- package/quality/history/CartesianGaugeHistory.js +14 -0
- package/quality/history/CartesianGaugeHistory.js.map +1 -0
- package/quality/history/CartesianRainHistory.d.ts +9 -0
- package/quality/history/CartesianRainHistory.js +11 -0
- package/quality/history/CartesianRainHistory.js.map +1 -0
- package/quality/history/PositionHistory.d.ts +20 -0
- package/quality/history/PositionHistory.js +17 -0
- package/quality/history/PositionHistory.js.map +1 -0
- package/{src/quality/index.ts → quality/index.d.ts} +0 -3
- package/quality/index.js +26 -0
- package/quality/index.js.map +1 -0
- package/quality/position/Position.d.ts +22 -0
- package/quality/position/Position.js +50 -0
- package/quality/position/Position.js.map +1 -0
- package/quality/position/PositionValue.d.ts +9 -0
- package/quality/position/PositionValue.js +12 -0
- package/quality/position/PositionValue.js.map +1 -0
- package/quality/tools/QualityTools.d.ts +9 -0
- package/{src/quality/tools/QualityTools.ts → quality/tools/QualityTools.js} +17 -18
- package/quality/tools/QualityTools.js.map +1 -0
- package/radar/RadarMeasure.d.ts +38 -0
- package/radar/RadarMeasure.js +33 -0
- package/radar/RadarMeasure.js.map +1 -0
- package/radar/RadarNode.d.ts +41 -0
- package/radar/RadarNode.js +58 -0
- package/radar/RadarNode.js.map +1 -0
- package/radar/RadarNodeMap.d.ts +51 -0
- package/radar/RadarNodeMap.js +50 -0
- package/radar/RadarNodeMap.js.map +1 -0
- package/radar/index.js +20 -0
- package/radar/index.js.map +1 -0
- package/rain/MergeStrategy.d.ts +13 -0
- package/rain/MergeStrategy.js +11 -0
- package/rain/MergeStrategy.js.map +1 -0
- package/rain/RainComputation.d.ts +59 -0
- package/rain/RainComputation.js +68 -0
- package/rain/RainComputation.js.map +1 -0
- package/rain/RainComputationAbstract.d.ts +89 -0
- package/rain/RainComputationAbstract.js +207 -0
- package/rain/RainComputationAbstract.js.map +1 -0
- package/rain/RainComputationMap.d.ts +113 -0
- package/{src/rain/RainComputationMap.ts → rain/RainComputationMap.js} +26 -60
- package/rain/RainComputationMap.js.map +1 -0
- package/rain/RainComputationQuality.d.ts +58 -0
- package/{src/rain/RainComputationQuality.ts → rain/RainComputationQuality.js} +52 -89
- package/rain/RainComputationQuality.js.map +1 -0
- package/rain/RainMeasure.d.ts +17 -0
- package/rain/RainMeasure.js +18 -0
- package/rain/RainMeasure.js.map +1 -0
- package/rain/RainNode.d.ts +60 -0
- package/rain/RainNode.js +198 -0
- package/rain/RainNode.js.map +1 -0
- package/{src/rain/index.ts → rain/index.d.ts} +1 -0
- package/rain/index.js +24 -0
- package/rain/index.js.map +1 -0
- package/.cursorignore +0 -10
- package/.github/workflows/ci.yml +0 -29
- package/LICENSE +0 -21
- package/RELEASE.md +0 -19
- package/specs/REQUIREMENTS.md +0 -42
- package/specs/TECHNICAL.md +0 -57
- package/specs/cartesian/Cartesian.spec.ts +0 -82
- package/specs/cartesian/CartesianTools.spec.ts +0 -121
- package/specs/gauge/Gauge.spec.ts +0 -39
- package/specs/organization/Organization.spec.ts +0 -38
- package/specs/polar/Polar.spec.ts +0 -267
- package/specs/quality/Position.spec.ts +0 -18
- package/specs/quality/QualityPointEdgeCases.spec.ts +0 -215
- package/specs/quality/QualityTools.spec.ts +0 -67
- package/specs/quality/SpeedMatrix.spec.ts +0 -214
- package/specs/radar/Radar.spec.ts +0 -129
- package/specs/rain/Rain.spec.ts +0 -334
- package/specs/tsconfig.json +0 -12
- package/src/cartesian/CartesianValue.ts +0 -26
- package/src/cartesian/EarthMap.ts +0 -5
- package/src/cartesian/ICartesianMeasureValue.ts +0 -22
- package/src/cartesian/LatLng.ts +0 -43
- package/src/cartesian/RadarCartesianMeasureValue.ts +0 -32
- package/src/cartesian/RainCartesianMeasureValue.ts +0 -32
- package/src/gauge/GaugeMeasure.ts +0 -42
- package/src/gauge/GaugeNodeMap.ts +0 -55
- package/src/organization/EventNode.ts +0 -43
- package/src/organization/Measure.ts +0 -61
- package/src/organization/TeamNode.ts +0 -91
- package/src/polar/IPolarMeasureValue.ts +0 -21
- package/src/polar/PolarFilter.ts +0 -46
- package/src/polar/PolarValue.ts +0 -16
- package/src/polar/RainPolarMeasureValue.ts +0 -57
- package/src/quality/history/CartesianGaugeHistory.ts +0 -23
- package/src/quality/history/CartesianRainHistory.ts +0 -15
- package/src/quality/history/PositionHistory.ts +0 -31
- package/src/quality/position/Position.ts +0 -59
- package/src/quality/position/PositionValue.ts +0 -15
- package/src/radar/RadarMeasure.ts +0 -41
- package/src/radar/RadarNode.ts +0 -78
- package/src/radar/RadarNodeMap.ts +0 -61
- package/src/rain/MergeStrategy.ts +0 -15
- package/src/rain/RainComputation.ts +0 -96
- package/src/rain/RainComputationAbstract.ts +0 -262
- package/src/rain/RainMeasure.ts +0 -25
- package/src/rain/RainNode.ts +0 -235
- package/tsconfig.json +0 -17
- package/tslint.json +0 -79
- package/typedoc.json +0 -31
- /package/{src/cartesian/index.ts → cartesian/index.d.ts} +0 -0
- /package/{src/gauge/index.ts → gauge/index.d.ts} +0 -0
- /package/{src/index.ts → index.d.ts} +0 -0
- /package/{src/organization/IVersion.ts → organization/IVersion.d.ts} +0 -0
- /package/{src/organization/index.ts → organization/index.d.ts} +0 -0
- /package/{src/polar/index.ts → polar/index.d.ts} +0 -0
- /package/{src/radar/index.ts → radar/index.d.ts} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RadarCartesianMeasureValue.js","sourceRoot":"","sources":["../../src/cartesian/RadarCartesianMeasureValue.ts"],"names":[],"mappings":";;;AACA,mEAA8D;AAG9D,MAAa,0BAA2B,SAAQ,6CAAqB;IAKjE,YAAY,IAKX;QAEG,KAAK,CAAC,IAAI,CAAC,CAAC;QACZ,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;QACxB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;IAC1B,CAAC;IAED,MAAM,CAAC,OAAO,GAAG,EAAC,SAAS,EAAE,KAAK,EAAC;QAC/B,MAAM,IAAI,GAAG,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QACnC,OAAO;YACH,GAAG,IAAI;YACP,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,IAAI,EAAE,IAAI,CAAC,IAAI;SAClB,CAAC;IACN,CAAC;IAED,oCAAoC;QAChC,OAAO,IAAI,CAAC,MAAM,CAAC,EAAC,SAAS,EAAE,IAAI,EAAC,CAAC,CAAC;IAC1C,CAAC;CACJ;AA7BD,gEA6BC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { IVersion } from '../organization';
|
|
2
|
+
import { CartesianValue } from './CartesianValue';
|
|
3
|
+
import { CartesianMeasureValue } from './CartesianMeasureValue';
|
|
4
|
+
import { LatLng } from './LatLng';
|
|
5
|
+
export declare class RainCartesianMeasureValue extends CartesianMeasureValue implements IVersion {
|
|
6
|
+
private readonly version;
|
|
7
|
+
constructor(json: {
|
|
8
|
+
cartesianValues: string | CartesianValue[];
|
|
9
|
+
limitPoints: [LatLng, LatLng];
|
|
10
|
+
version: string;
|
|
11
|
+
});
|
|
12
|
+
getVersion(): string;
|
|
13
|
+
toJSON(options?: {
|
|
14
|
+
stringify: boolean;
|
|
15
|
+
}): {
|
|
16
|
+
version: string;
|
|
17
|
+
cartesianValues: string | CartesianValue[];
|
|
18
|
+
limitPoints: [LatLng, LatLng];
|
|
19
|
+
};
|
|
20
|
+
toJSONWithCartesianValuesStringified(): {
|
|
21
|
+
version: string;
|
|
22
|
+
cartesianValues: string | CartesianValue[];
|
|
23
|
+
limitPoints: [LatLng, LatLng];
|
|
24
|
+
};
|
|
25
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RainCartesianMeasureValue = void 0;
|
|
4
|
+
const CartesianMeasureValue_1 = require("./CartesianMeasureValue");
|
|
5
|
+
class RainCartesianMeasureValue extends CartesianMeasureValue_1.CartesianMeasureValue {
|
|
6
|
+
constructor(json) {
|
|
7
|
+
super(json);
|
|
8
|
+
this.version = json.version;
|
|
9
|
+
}
|
|
10
|
+
getVersion() {
|
|
11
|
+
return this.version;
|
|
12
|
+
}
|
|
13
|
+
toJSON(options = { stringify: false }) {
|
|
14
|
+
const json = super.toJSON(options);
|
|
15
|
+
return {
|
|
16
|
+
...json,
|
|
17
|
+
version: this.getVersion()
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
toJSONWithCartesianValuesStringified() {
|
|
21
|
+
return this.toJSON({ stringify: true });
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.RainCartesianMeasureValue = RainCartesianMeasureValue;
|
|
25
|
+
//# sourceMappingURL=RainCartesianMeasureValue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RainCartesianMeasureValue.js","sourceRoot":"","sources":["../../src/cartesian/RainCartesianMeasureValue.ts"],"names":[],"mappings":";;;AAEA,mEAA8D;AAG9D,MAAa,yBAA0B,SAAQ,6CAAqB;IAIhE,YAAY,IAIX;QACG,KAAK,CAAC,IAAI,CAAC,CAAC;QACZ,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;IAChC,CAAC;IAED,UAAU;QACN,OAAO,IAAI,CAAC,OAAO,CAAC;IACxB,CAAC;IAED,MAAM,CAAC,OAAO,GAAG,EAAC,SAAS,EAAE,KAAK,EAAC;QAC/B,MAAM,IAAI,GAAG,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QACnC,OAAO;YACH,GAAG,IAAI;YACP,OAAO,EAAE,IAAI,CAAC,UAAU,EAAE;SAC7B,CAAC;IACN,CAAC;IAED,oCAAoC;QAChC,OAAO,IAAI,CAAC,MAAM,CAAC,EAAC,SAAS,EAAE,IAAI,EAAC,CAAC,CAAC;IAC1C,CAAC;CACJ;AA5BD,8DA4BC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
__exportStar(require("./LatLng"), exports);
|
|
18
|
+
__exportStar(require("./CartesianValue"), exports);
|
|
19
|
+
__exportStar(require("./CartesianTools"), exports);
|
|
20
|
+
__exportStar(require("./CartesianMeasureValue"), exports);
|
|
21
|
+
__exportStar(require("./RadarCartesianMeasureValue"), exports);
|
|
22
|
+
__exportStar(require("./RainCartesianMeasureValue"), exports);
|
|
23
|
+
__exportStar(require("./ICartesianMeasureValue"), exports);
|
|
24
|
+
__exportStar(require("./EarthMap"), exports);
|
|
25
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/cartesian/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,mDAAiC;AACjC,mDAAiC;AACjC,0DAAwC;AACxC,+DAA6C;AAC7C,8DAA4C;AAC5C,2DAAyC;AACzC,6CAA2B"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Measure } from '../organization';
|
|
2
|
+
import { IPolarMeasureValue } from '../polar';
|
|
3
|
+
import { ICartesianMeasureValue } from '../cartesian';
|
|
4
|
+
/**
|
|
5
|
+
* api/gauges/:id/measures/:id
|
|
6
|
+
*/
|
|
7
|
+
export declare class GaugeMeasure extends Measure {
|
|
8
|
+
static TYPE: string;
|
|
9
|
+
gauge: string;
|
|
10
|
+
constructor(json: {
|
|
11
|
+
id: string;
|
|
12
|
+
values: IPolarMeasureValue[] | ICartesianMeasureValue[] | number[];
|
|
13
|
+
date?: Date;
|
|
14
|
+
validity?: number;
|
|
15
|
+
configurationAsJSON?: string;
|
|
16
|
+
gauge?: string;
|
|
17
|
+
});
|
|
18
|
+
toJSON(options?: {
|
|
19
|
+
removeValues?: boolean;
|
|
20
|
+
}): {
|
|
21
|
+
date: Date;
|
|
22
|
+
validity: number;
|
|
23
|
+
configurationAsJSON: string;
|
|
24
|
+
values: number[] | IPolarMeasureValue[] | ICartesianMeasureValue[];
|
|
25
|
+
id: string;
|
|
26
|
+
links: import("../organization").Link[];
|
|
27
|
+
version?: string;
|
|
28
|
+
};
|
|
29
|
+
protected getLinkType(): string;
|
|
30
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GaugeMeasure = void 0;
|
|
4
|
+
const organization_1 = require("../organization");
|
|
5
|
+
const GaugeNode_1 = require("./GaugeNode");
|
|
6
|
+
/**
|
|
7
|
+
* api/gauges/:id/measures/:id
|
|
8
|
+
*/
|
|
9
|
+
class GaugeMeasure extends organization_1.Measure {
|
|
10
|
+
constructor(json) {
|
|
11
|
+
super(json);
|
|
12
|
+
if (json.gauge) {
|
|
13
|
+
this.addLinks([new GaugeNode_1.GaugeNode({ id: json.gauge, latitude: NaN, longitude: NaN, team: null, name: null })]);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
toJSON(options) {
|
|
17
|
+
const json = super.toJSON(options);
|
|
18
|
+
const gaugeLink = this.getLink(GaugeNode_1.GaugeNode.TYPE);
|
|
19
|
+
if (gaugeLink) {
|
|
20
|
+
json['gauge'] = gaugeLink.getId();
|
|
21
|
+
}
|
|
22
|
+
return json;
|
|
23
|
+
}
|
|
24
|
+
getLinkType() {
|
|
25
|
+
return GaugeMeasure.TYPE;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
exports.GaugeMeasure = GaugeMeasure;
|
|
29
|
+
GaugeMeasure.TYPE = 'gauge-measure';
|
|
30
|
+
//# sourceMappingURL=GaugeMeasure.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GaugeMeasure.js","sourceRoot":"","sources":["../../src/gauge/GaugeMeasure.ts"],"names":[],"mappings":";;;AAAA,kDAAwC;AAGxC,2CAAsC;AAEtC;;GAEG;AACH,MAAa,YAAa,SAAQ,sBAAO;IAMrC,YAAY,IAOC;QAET,KAAK,CAAC,IAAI,CAAC,CAAC;QACZ,IAAI,IAAI,CAAC,KAAK,EAAE,CAAC;YACb,IAAI,CAAC,QAAQ,CAAC,CAAC,IAAI,qBAAS,CAAC,EAAC,EAAE,EAAE,IAAI,CAAC,KAAK,EAAE,QAAQ,EAAE,GAAG,EAAE,SAAS,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAC,CAAC,CAAC,CAAC,CAAC;QAC5G,CAAC;IACL,CAAC;IAEM,MAAM,CAAC,OAAoC;QAC9C,MAAM,IAAI,GAAG,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QACnC,MAAM,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,qBAAS,CAAC,IAAI,CAAC,CAAC;QAC/C,IAAI,SAAS,EAAE,CAAC;YACZ,IAAI,CAAC,OAAO,CAAC,GAAG,SAAS,CAAC,KAAK,EAAE,CAAC;QACtC,CAAC;QACD,OAAO,IAAI,CAAC;IAChB,CAAC;IAES,WAAW;QACjB,OAAO,YAAY,CAAC,IAAI,CAAC;IAC7B,CAAC;;AAhCL,oCAiCC;AA/BiB,iBAAI,GAAG,eAAe,CAAC"}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { Link, RaainNode, TeamNode } from '../organization';
|
|
2
|
+
/**
|
|
3
|
+
* Represents a rain gauge station in the RAAIN system.
|
|
4
|
+
* This class manages gauge data collection and configuration.
|
|
5
|
+
*
|
|
6
|
+
* @remarks
|
|
7
|
+
* Used in the API endpoint: api/gauges/:id
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```typescript
|
|
11
|
+
* const gaugeNode = new GaugeNode({
|
|
12
|
+
* id: 'gauge1',
|
|
13
|
+
* latitude: 48.8566,
|
|
14
|
+
* longitude: 2.3522,
|
|
15
|
+
* name: 'Paris Gauge',
|
|
16
|
+
* team: teamNode,
|
|
17
|
+
* description: 'Main rain gauge station'
|
|
18
|
+
* });
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
export declare class GaugeNode extends RaainNode {
|
|
22
|
+
/** Type identifier for gauge nodes */
|
|
23
|
+
static TYPE: string;
|
|
24
|
+
/** Name of the gauge station */
|
|
25
|
+
name: string;
|
|
26
|
+
/** Description of the gauge station */
|
|
27
|
+
description: string;
|
|
28
|
+
/** Latitude of the gauge station */
|
|
29
|
+
latitude: number;
|
|
30
|
+
/** Longitude of the gauge station */
|
|
31
|
+
longitude: number;
|
|
32
|
+
/** Associated team */
|
|
33
|
+
team: TeamNode;
|
|
34
|
+
/** Internal configuration storage */
|
|
35
|
+
private configurationAsJSON;
|
|
36
|
+
/**
|
|
37
|
+
* Creates a new GaugeNode instance.
|
|
38
|
+
*
|
|
39
|
+
* @param json - Configuration object
|
|
40
|
+
* @param json.id - Unique identifier
|
|
41
|
+
* @param json.latitude - Latitude of the gauge station
|
|
42
|
+
* @param json.longitude - Longitude of the gauge station
|
|
43
|
+
* @param json.name - Name of the gauge station
|
|
44
|
+
* @param json.team - Associated team
|
|
45
|
+
* @param json.description - Optional description
|
|
46
|
+
* @param json.links - Optional array of links
|
|
47
|
+
* @param json.version - Optional version string
|
|
48
|
+
* @param json.configurationAsJSON - Optional configuration object
|
|
49
|
+
*/
|
|
50
|
+
constructor(json: {
|
|
51
|
+
id: string;
|
|
52
|
+
latitude: number;
|
|
53
|
+
longitude: number;
|
|
54
|
+
name: string;
|
|
55
|
+
team: TeamNode;
|
|
56
|
+
description?: string;
|
|
57
|
+
links?: Link[] | RaainNode[];
|
|
58
|
+
version?: string;
|
|
59
|
+
configurationAsJSON?: any;
|
|
60
|
+
});
|
|
61
|
+
/**
|
|
62
|
+
* Sets the configuration for the gauge node.
|
|
63
|
+
*
|
|
64
|
+
* @param configuration - Configuration object or JSON string
|
|
65
|
+
*/
|
|
66
|
+
setConfiguration(configuration: string | any): void;
|
|
67
|
+
/**
|
|
68
|
+
* Gets the configuration of the gauge node.
|
|
69
|
+
*
|
|
70
|
+
* @returns The configuration object or null if not set
|
|
71
|
+
*/
|
|
72
|
+
getConfiguration(): any;
|
|
73
|
+
/**
|
|
74
|
+
* Converts the gauge node to a JSON object.
|
|
75
|
+
*
|
|
76
|
+
* @returns A JSON object containing the gauge node's data
|
|
77
|
+
*/
|
|
78
|
+
toJSON(): {
|
|
79
|
+
name: string;
|
|
80
|
+
description: string;
|
|
81
|
+
latitude: number;
|
|
82
|
+
longitude: number;
|
|
83
|
+
team: string | TeamNode;
|
|
84
|
+
configurationAsJSON: string;
|
|
85
|
+
id: string;
|
|
86
|
+
links: Link[];
|
|
87
|
+
version?: string;
|
|
88
|
+
};
|
|
89
|
+
/**
|
|
90
|
+
* Returns the link type for gauge nodes.
|
|
91
|
+
*
|
|
92
|
+
* @returns The string 'gauge'
|
|
93
|
+
*/
|
|
94
|
+
protected getLinkType(): string;
|
|
95
|
+
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GaugeNode = void 0;
|
|
4
|
+
const organization_1 = require("../organization");
|
|
3
5
|
/**
|
|
4
6
|
* Represents a rain gauge station in the RAAIN system.
|
|
5
7
|
* This class manages gauge data collection and configuration.
|
|
@@ -19,29 +21,7 @@ import {Link, RaainNode, TeamNode} from '../organization';
|
|
|
19
21
|
* });
|
|
20
22
|
* ```
|
|
21
23
|
*/
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
/** Type identifier for gauge nodes */
|
|
25
|
-
public static TYPE = 'gauge';
|
|
26
|
-
|
|
27
|
-
/** Name of the gauge station */
|
|
28
|
-
public name: string;
|
|
29
|
-
|
|
30
|
-
/** Description of the gauge station */
|
|
31
|
-
public description: string;
|
|
32
|
-
|
|
33
|
-
/** Latitude of the gauge station */
|
|
34
|
-
public latitude: number;
|
|
35
|
-
|
|
36
|
-
/** Longitude of the gauge station */
|
|
37
|
-
public longitude: number;
|
|
38
|
-
|
|
39
|
-
/** Associated team */
|
|
40
|
-
public team: TeamNode;
|
|
41
|
-
|
|
42
|
-
/** Internal configuration storage */
|
|
43
|
-
private configurationAsJSON: string;
|
|
44
|
-
|
|
24
|
+
class GaugeNode extends organization_1.RaainNode {
|
|
45
25
|
/**
|
|
46
26
|
* Creates a new GaugeNode instance.
|
|
47
27
|
*
|
|
@@ -56,17 +36,7 @@ export class GaugeNode extends RaainNode {
|
|
|
56
36
|
* @param json.version - Optional version string
|
|
57
37
|
* @param json.configurationAsJSON - Optional configuration object
|
|
58
38
|
*/
|
|
59
|
-
constructor(json
|
|
60
|
-
id: string,
|
|
61
|
-
latitude: number,
|
|
62
|
-
longitude: number,
|
|
63
|
-
name: string,
|
|
64
|
-
team: TeamNode,
|
|
65
|
-
description?: string,
|
|
66
|
-
links?: Link[] | RaainNode[],
|
|
67
|
-
version?: string,
|
|
68
|
-
configurationAsJSON?: any,
|
|
69
|
-
}) {
|
|
39
|
+
constructor(json) {
|
|
70
40
|
super(json);
|
|
71
41
|
this.latitude = json.latitude;
|
|
72
42
|
this.longitude = json.longitude;
|
|
@@ -75,59 +45,63 @@ export class GaugeNode extends RaainNode {
|
|
|
75
45
|
this.team = json.team;
|
|
76
46
|
this.setConfiguration(json.configurationAsJSON);
|
|
77
47
|
}
|
|
78
|
-
|
|
79
48
|
/**
|
|
80
49
|
* Sets the configuration for the gauge node.
|
|
81
50
|
*
|
|
82
51
|
* @param configuration - Configuration object or JSON string
|
|
83
52
|
*/
|
|
84
|
-
|
|
53
|
+
setConfiguration(configuration) {
|
|
85
54
|
let conf = configuration;
|
|
86
55
|
try {
|
|
87
56
|
conf = JSON.parse(configuration);
|
|
88
|
-
} catch (ignored) {
|
|
89
57
|
}
|
|
90
|
-
|
|
58
|
+
catch (ignored) {
|
|
59
|
+
}
|
|
91
60
|
if (conf) {
|
|
92
61
|
this.configurationAsJSON = JSON.stringify(conf);
|
|
93
62
|
}
|
|
94
63
|
}
|
|
95
|
-
|
|
96
64
|
/**
|
|
97
65
|
* Gets the configuration of the gauge node.
|
|
98
66
|
*
|
|
99
67
|
* @returns The configuration object or null if not set
|
|
100
68
|
*/
|
|
101
|
-
|
|
69
|
+
getConfiguration() {
|
|
102
70
|
try {
|
|
103
71
|
return JSON.parse(this.configurationAsJSON);
|
|
104
|
-
}
|
|
72
|
+
}
|
|
73
|
+
catch (e) {
|
|
105
74
|
}
|
|
106
75
|
return null;
|
|
107
76
|
}
|
|
108
|
-
|
|
109
77
|
/**
|
|
110
78
|
* Converts the gauge node to a JSON object.
|
|
111
79
|
*
|
|
112
80
|
* @returns A JSON object containing the gauge node's data
|
|
113
81
|
*/
|
|
114
|
-
|
|
82
|
+
toJSON() {
|
|
83
|
+
var _a;
|
|
115
84
|
const json = super.toJSON();
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
85
|
+
return {
|
|
86
|
+
...json,
|
|
87
|
+
name: this.name,
|
|
88
|
+
description: this.description,
|
|
89
|
+
latitude: this.latitude,
|
|
90
|
+
longitude: this.longitude,
|
|
91
|
+
team: ((_a = this.team) === null || _a === void 0 ? void 0 : _a.id) || this.team,
|
|
92
|
+
configurationAsJSON: this.configurationAsJSON
|
|
93
|
+
};
|
|
123
94
|
}
|
|
124
|
-
|
|
125
95
|
/**
|
|
126
96
|
* Returns the link type for gauge nodes.
|
|
127
97
|
*
|
|
128
98
|
* @returns The string 'gauge'
|
|
129
99
|
*/
|
|
130
|
-
|
|
100
|
+
getLinkType() {
|
|
131
101
|
return GaugeNode.TYPE;
|
|
132
102
|
}
|
|
133
103
|
}
|
|
104
|
+
exports.GaugeNode = GaugeNode;
|
|
105
|
+
/** Type identifier for gauge nodes */
|
|
106
|
+
GaugeNode.TYPE = 'gauge';
|
|
107
|
+
//# sourceMappingURL=GaugeNode.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GaugeNode.js","sourceRoot":"","sources":["../../src/gauge/GaugeNode.ts"],"names":[],"mappings":";;;AAAA,kDAA0D;AAE1D;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAa,SAAU,SAAQ,wBAAS;IAuBpC;;;;;;;;;;;;;OAaG;IACH,YAAY,IAUX;QACG,KAAK,CAAC,IAAI,CAAC,CAAC;QACZ,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;QAC9B,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC;QAChC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;QACtB,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC;QACpC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;QACtB,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC;IACpD,CAAC;IAED;;;;OAIG;IACI,gBAAgB,CAAC,aAA2B;QAC/C,IAAI,IAAI,GAAG,aAAa,CAAC;QACzB,IAAI,CAAC;YACD,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC;QACrC,CAAC;QAAC,OAAO,OAAO,EAAE,CAAC;QACnB,CAAC;QAED,IAAI,IAAI,EAAE,CAAC;YACP,IAAI,CAAC,mBAAmB,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;QACpD,CAAC;IACL,CAAC;IAED;;;;OAIG;IACI,gBAAgB;QACnB,IAAI,CAAC;YACD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC;QAChD,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC;QACb,CAAC;QACD,OAAO,IAAI,CAAC;IAChB,CAAC;IAED;;;;OAIG;IACI,MAAM;;QACT,MAAM,IAAI,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC;QAE5B,OAAO;YACH,GAAG,IAAI;YACP,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,SAAS,EAAE,IAAI,CAAC,SAAS;YACzB,IAAI,EAAE,CAAA,MAAA,IAAI,CAAC,IAAI,0CAAE,EAAE,KAAI,IAAI,CAAC,IAAI;YAChC,mBAAmB,EAAE,IAAI,CAAC,mBAAmB;SAChD,CAAC;IACN,CAAC;IAED;;;;OAIG;IACO,WAAW;QACjB,OAAO,SAAS,CAAC,IAAI,CAAC;IAC1B,CAAC;;AAjHL,8BAkHC;AAhHG,sCAAsC;AACxB,cAAI,GAAG,OAAO,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Link, RaainNode, TeamNode } from '../organization';
|
|
2
|
+
import { GaugeNode } from './GaugeNode';
|
|
3
|
+
import { GaugeMeasure } from './GaugeMeasure';
|
|
4
|
+
/**
|
|
5
|
+
* api/gauges/:id?format=map&begin=...
|
|
6
|
+
*/
|
|
7
|
+
export declare class GaugeNodeMap extends GaugeNode {
|
|
8
|
+
private map;
|
|
9
|
+
constructor(json: {
|
|
10
|
+
id: string;
|
|
11
|
+
latitude: number;
|
|
12
|
+
longitude: number;
|
|
13
|
+
name: string;
|
|
14
|
+
description: string;
|
|
15
|
+
team: TeamNode;
|
|
16
|
+
configurationAsJSON?: any;
|
|
17
|
+
map?: string;
|
|
18
|
+
links?: Link[] | RaainNode[];
|
|
19
|
+
version?: string;
|
|
20
|
+
});
|
|
21
|
+
toJSON(): {
|
|
22
|
+
map: string;
|
|
23
|
+
name: string;
|
|
24
|
+
description: string;
|
|
25
|
+
latitude: number;
|
|
26
|
+
longitude: number;
|
|
27
|
+
team: string | TeamNode;
|
|
28
|
+
configurationAsJSON: string;
|
|
29
|
+
id: string;
|
|
30
|
+
links: Link[];
|
|
31
|
+
version?: string;
|
|
32
|
+
};
|
|
33
|
+
setMapData(mapData: GaugeMeasure[] | string): void;
|
|
34
|
+
getMapData(): GaugeMeasure[];
|
|
35
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GaugeNodeMap = void 0;
|
|
4
|
+
const GaugeNode_1 = require("./GaugeNode");
|
|
5
|
+
/**
|
|
6
|
+
* api/gauges/:id?format=map&begin=...
|
|
7
|
+
*/
|
|
8
|
+
class GaugeNodeMap extends GaugeNode_1.GaugeNode {
|
|
9
|
+
constructor(json) {
|
|
10
|
+
super(json);
|
|
11
|
+
this.setMapData(json.map);
|
|
12
|
+
}
|
|
13
|
+
toJSON() {
|
|
14
|
+
const json = super.toJSON();
|
|
15
|
+
return {
|
|
16
|
+
...json,
|
|
17
|
+
map: this.map
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
setMapData(mapData) {
|
|
21
|
+
if (!mapData) {
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
let map = mapData;
|
|
25
|
+
try {
|
|
26
|
+
if (typeof (mapData) !== 'string') {
|
|
27
|
+
map = JSON.stringify(mapData);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
catch (e) {
|
|
31
|
+
}
|
|
32
|
+
this.map = map.toString();
|
|
33
|
+
}
|
|
34
|
+
getMapData() {
|
|
35
|
+
if (!this.map) {
|
|
36
|
+
return [];
|
|
37
|
+
}
|
|
38
|
+
return JSON.parse(this.map);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
exports.GaugeNodeMap = GaugeNodeMap;
|
|
42
|
+
//# sourceMappingURL=GaugeNodeMap.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GaugeNodeMap.js","sourceRoot":"","sources":["../../src/gauge/GaugeNodeMap.ts"],"names":[],"mappings":";;;AACA,2CAAsC;AAGtC;;GAEG;AACH,MAAa,YAAa,SAAQ,qBAAS;IAIvC,YAAY,IAWX;QACG,KAAK,CAAC,IAAI,CAAC,CAAC;QACZ,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAC9B,CAAC;IAEM,MAAM;QACT,MAAM,IAAI,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC;QAC5B,OAAO;YACH,GAAG,IAAI;YACP,GAAG,EAAE,IAAI,CAAC,GAAG;SAChB,CAAC;IACN,CAAC;IAEM,UAAU,CAAC,OAAgC;QAC9C,IAAI,CAAC,OAAO,EAAE,CAAC;YACX,OAAO;QACX,CAAC;QAED,IAAI,GAAG,GAAG,OAAO,CAAC;QAClB,IAAI,CAAC;YACD,IAAI,OAAO,CAAC,OAAO,CAAC,KAAK,QAAQ,EAAE,CAAC;gBAChC,GAAG,GAAG,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;YAClC,CAAC;QACL,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC;QACb,CAAC;QACD,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC,QAAQ,EAAE,CAAC;IAC9B,CAAC;IAEM,UAAU;QACb,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC;YACZ,OAAO,EAAE,CAAC;QACd,CAAC;QACD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAChC,CAAC;CACJ;AAjDD,oCAiDC"}
|
package/gauge/index.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
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
|
+
__exportStar(require("./GaugeNode"), exports);
|
|
18
|
+
__exportStar(require("./GaugeMeasure"), exports);
|
|
19
|
+
__exportStar(require("./GaugeNodeMap"), exports);
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/gauge/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,iDAA+B;AAC/B,iDAA+B"}
|
package/index.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
|
+
__exportStar(require("./cartesian"), exports);
|
|
18
|
+
__exportStar(require("./gauge"), exports);
|
|
19
|
+
__exportStar(require("./organization"), exports);
|
|
20
|
+
__exportStar(require("./polar"), exports);
|
|
21
|
+
__exportStar(require("./quality"), exports);
|
|
22
|
+
__exportStar(require("./radar"), exports);
|
|
23
|
+
__exportStar(require("./rain"), exports);
|
|
24
|
+
//# sourceMappingURL=index.js.map
|
package/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,0CAAwB;AACxB,iDAA+B;AAC/B,0CAAwB;AACxB,4CAA0B;AAC1B,0CAAwB;AACxB,yCAAuB"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* api/notifications/:id
|
|
3
|
+
*/
|
|
4
|
+
export declare class EventNode {
|
|
5
|
+
id: string;
|
|
6
|
+
title: string;
|
|
7
|
+
status: number;
|
|
8
|
+
red: boolean;
|
|
9
|
+
description: string;
|
|
10
|
+
created: Date;
|
|
11
|
+
modified: Date;
|
|
12
|
+
constructor(json: {
|
|
13
|
+
id: string;
|
|
14
|
+
title: string;
|
|
15
|
+
status: number;
|
|
16
|
+
red: boolean;
|
|
17
|
+
description: string;
|
|
18
|
+
created: Date;
|
|
19
|
+
modified: Date;
|
|
20
|
+
});
|
|
21
|
+
toJSON(): {
|
|
22
|
+
id: string;
|
|
23
|
+
title: string;
|
|
24
|
+
status: number;
|
|
25
|
+
red: boolean;
|
|
26
|
+
description: string;
|
|
27
|
+
created: Date;
|
|
28
|
+
modified: Date;
|
|
29
|
+
};
|
|
30
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EventNode = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* api/notifications/:id
|
|
6
|
+
*/
|
|
7
|
+
class EventNode {
|
|
8
|
+
constructor(json) {
|
|
9
|
+
this.id = json.id;
|
|
10
|
+
this.title = json.title;
|
|
11
|
+
this.status = json.status;
|
|
12
|
+
this.red = json.red;
|
|
13
|
+
this.description = json.description;
|
|
14
|
+
this.created = json.created;
|
|
15
|
+
this.modified = json.modified;
|
|
16
|
+
}
|
|
17
|
+
toJSON() {
|
|
18
|
+
return {
|
|
19
|
+
id: this.id,
|
|
20
|
+
title: this.title,
|
|
21
|
+
status: this.status,
|
|
22
|
+
red: this.red,
|
|
23
|
+
description: this.description,
|
|
24
|
+
created: this.created,
|
|
25
|
+
modified: this.modified,
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
exports.EventNode = EventNode;
|
|
30
|
+
//# sourceMappingURL=EventNode.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EventNode.js","sourceRoot":"","sources":["../../src/organization/EventNode.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,MAAa,SAAS;IASlB,YAAY,IAQC;QAET,IAAI,CAAC,EAAE,GAAG,IAAI,CAAC,EAAE,CAAC;QAClB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;QACxB,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;QAC1B,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC;QACpB,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC;QACpC,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;QAC5B,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;IAClC,CAAC;IAEM,MAAM;QACT,OAAO;YACH,EAAE,EAAE,IAAI,CAAC,EAAE;YACX,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,GAAG,EAAE,IAAI,CAAC,GAAG;YACb,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,QAAQ,EAAE,IAAI,CAAC,QAAQ;SAC1B,CAAC;IACN,CAAC;CACJ;AAvCD,8BAuCC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IVersion.js","sourceRoot":"","sources":["../../src/organization/IVersion.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Hateoas Links :
|
|
3
|
+
* [ {
|
|
4
|
+
* rel: string, // "self" or api types ("rain", "gauge", "radar", "radar-measure", "rain-computation"...)
|
|
5
|
+
* href: string // like "https://../rains/2"
|
|
6
|
+
* },...]
|
|
7
|
+
*/
|
|
8
|
+
export declare class Link {
|
|
9
|
+
rel: string;
|
|
10
|
+
href: string;
|
|
11
|
+
constructor(rel: string, href: string);
|
|
12
|
+
static isCloneable(object: any): boolean;
|
|
13
|
+
static clone(object: any): Link | null;
|
|
14
|
+
getId(): string;
|
|
15
|
+
getLinkType(): string;
|
|
16
|
+
}
|