raain-model 0.3.1 → 1.10.25
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/README.md +7 -10
- package/RELEASE.md +10 -10
- package/cartesian/CartesianMeasureValue.d.ts +41 -0
- package/cartesian/CartesianMeasureValue.js +106 -0
- package/cartesian/CartesianMeasureValue.js.map +1 -0
- package/cartesian/CartesianValue.d.ts +9 -0
- package/cartesian/CartesianValue.js +12 -0
- package/cartesian/CartesianValue.js.map +1 -0
- package/cartesian/ICartesianMeasureValue.d.ts +29 -0
- package/cartesian/ICartesianMeasureValue.js +3 -0
- package/cartesian/ICartesianMeasureValue.js.map +1 -0
- package/cartesian/LatLng.d.ts +12 -0
- package/cartesian/LatLng.js +31 -0
- package/cartesian/LatLng.js.map +1 -0
- package/cartesian/RadarCartesianMeasureValue.d.ts +15 -0
- package/cartesian/RadarCartesianMeasureValue.js +22 -0
- package/cartesian/RadarCartesianMeasureValue.js.map +1 -0
- package/cartesian/RainCartesianMeasureValue.d.ts +17 -0
- package/cartesian/RainCartesianMeasureValue.js +25 -0
- package/cartesian/RainCartesianMeasureValue.js.map +1 -0
- package/gauge/GaugeMeasure.d.ts +20 -0
- package/gauge/GaugeMeasure.js +24 -0
- package/gauge/GaugeMeasure.js.map +1 -0
- package/gauge/GaugeNode.d.ts +24 -0
- package/gauge/GaugeNode.js +31 -0
- package/gauge/GaugeNode.js.map +1 -0
- package/gauge/GaugeNodeMap.d.ts +22 -0
- package/gauge/GaugeNodeMap.js +42 -0
- package/gauge/GaugeNodeMap.js.map +1 -0
- package/index.d.ts +39 -20
- package/index.js +53 -23
- package/index.js.map +1 -1
- package/organization/EventNode.d.ts +22 -0
- package/organization/EventNode.js +30 -0
- package/organization/EventNode.js.map +1 -0
- package/{IVersion.js.map → organization/IVersion.js.map} +1 -1
- package/{Link.d.ts → organization/Link.d.ts} +4 -5
- package/organization/Link.js +34 -0
- package/organization/Link.js.map +1 -0
- package/organization/Measure.d.ts +20 -0
- package/organization/Measure.js +35 -0
- package/organization/Measure.js.map +1 -0
- package/organization/PeopleNode.d.ts +18 -0
- package/organization/PeopleNode.js +26 -0
- package/organization/PeopleNode.js.map +1 -0
- package/{RaainNode.d.ts → organization/RaainNode.d.ts} +12 -7
- package/organization/RaainNode.js +95 -0
- package/organization/RaainNode.js.map +1 -0
- package/organization/TeamNode.d.ts +22 -0
- package/organization/TeamNode.js +32 -0
- package/organization/TeamNode.js.map +1 -0
- package/package.json +13 -10
- package/polar/AbstractPolarMeasureValue.d.ts +29 -0
- package/polar/AbstractPolarMeasureValue.js +92 -0
- package/polar/AbstractPolarMeasureValue.js.map +1 -0
- package/polar/GaugePolarMeasureValue.d.ts +11 -0
- package/polar/GaugePolarMeasureValue.js +14 -0
- package/polar/GaugePolarMeasureValue.js.map +1 -0
- package/polar/IPolarMeasureValue.d.ts +19 -0
- package/{IMeasureValue.js → polar/IPolarMeasureValue.js} +1 -1
- package/polar/IPolarMeasureValue.js.map +1 -0
- package/polar/MeasureValuePolarContainer.d.ts +11 -0
- package/polar/MeasureValuePolarContainer.js +22 -0
- package/polar/MeasureValuePolarContainer.js.map +1 -0
- package/polar/PolarMeasureValue.d.ts +26 -0
- package/polar/PolarMeasureValue.js +100 -0
- package/polar/PolarMeasureValue.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 +15 -0
- package/polar/RadarPolarMeasureValue.js +34 -0
- package/polar/RadarPolarMeasureValue.js.map +1 -0
- package/polar/RainPolarMeasureValue.d.ts +18 -0
- package/polar/RainPolarMeasureValue.js +42 -0
- package/polar/RainPolarMeasureValue.js.map +1 -0
- package/quality/QualityPoint.d.ts +35 -0
- package/quality/QualityPoint.js +63 -0
- package/quality/QualityPoint.js.map +1 -0
- package/quality/SpeedMatrix.d.ts +79 -0
- package/quality/SpeedMatrix.js +251 -0
- package/quality/SpeedMatrix.js.map +1 -0
- package/quality/SpeedMatrixContainer.d.ts +76 -0
- package/quality/SpeedMatrixContainer.js +310 -0
- 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 +11 -0
- package/quality/history/CartesianRainHistory.js +12 -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/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 +24 -0
- package/quality/tools/QualityTools.js +182 -0
- package/quality/tools/QualityTools.js.map +1 -0
- package/radar/RadarMeasure.d.ts +17 -0
- package/radar/RadarMeasure.js +18 -0
- package/radar/RadarMeasure.js.map +1 -0
- package/radar/RadarNode.d.ts +24 -0
- package/radar/RadarNode.js +31 -0
- package/radar/RadarNode.js.map +1 -0
- package/radar/RadarNodeMap.d.ts +28 -0
- package/radar/RadarNodeMap.js +46 -0
- package/radar/RadarNodeMap.js.map +1 -0
- package/rain/RainComputation.d.ts +34 -0
- package/rain/RainComputation.js +55 -0
- package/rain/RainComputation.js.map +1 -0
- package/{RainComputationNode.d.ts → rain/RainComputationAbstract.d.ts} +19 -20
- package/rain/RainComputationAbstract.js +102 -0
- package/rain/RainComputationAbstract.js.map +1 -0
- package/rain/RainComputationMap.d.ts +32 -0
- package/rain/RainComputationMap.js +45 -0
- package/rain/RainComputationMap.js.map +1 -0
- package/rain/RainComputationQuality.d.ts +37 -0
- package/rain/RainComputationQuality.js +103 -0
- package/rain/RainComputationQuality.js.map +1 -0
- package/rain/RainMeasure.d.ts +18 -0
- package/rain/RainMeasure.js +19 -0
- package/rain/RainMeasure.js.map +1 -0
- package/rain/RainNode.d.ts +38 -0
- package/rain/RainNode.js +127 -0
- package/rain/RainNode.js.map +1 -0
- package/EventNode.d.ts +0 -10
- package/EventNode.js +0 -17
- package/EventNode.js.map +0 -1
- package/GaugeMeasure.d.ts +0 -7
- package/GaugeMeasure.js +0 -31
- package/GaugeMeasure.js.map +0 -1
- package/GaugeMeasureValue.d.ts +0 -16
- package/GaugeMeasureValue.js +0 -66
- package/GaugeMeasureValue.js.map +0 -1
- package/GaugeNode.d.ts +0 -19
- package/GaugeNode.js +0 -48
- package/GaugeNode.js.map +0 -1
- package/GaugeNodeMap.d.ts +0 -22
- package/GaugeNodeMap.js +0 -61
- package/GaugeNodeMap.js.map +0 -1
- package/IMeasureValue.d.ts +0 -12
- package/IMeasureValue.js.map +0 -1
- package/Link.js +0 -36
- package/Link.js.map +0 -1
- package/Measure.d.ts +0 -9
- package/Measure.js +0 -43
- package/Measure.js.map +0 -1
- package/MeasureValuePolarContainer.d.ts +0 -7
- package/MeasureValuePolarContainer.js +0 -28
- package/MeasureValuePolarContainer.js.map +0 -1
- package/PeopleNode.d.ts +0 -7
- package/PeopleNode.js +0 -14
- package/PeopleNode.js.map +0 -1
- package/PolarValue.d.ts +0 -6
- package/PolarValue.js +0 -12
- package/PolarValue.js.map +0 -1
- package/RaainNode.js +0 -103
- package/RaainNode.js.map +0 -1
- package/RadarMeasure.d.ts +0 -7
- package/RadarMeasure.js +0 -31
- package/RadarMeasure.js.map +0 -1
- package/RadarMeasureValue.d.ts +0 -19
- package/RadarMeasureValue.js +0 -75
- package/RadarMeasureValue.js.map +0 -1
- package/RadarNode.d.ts +0 -14
- package/RadarNode.js +0 -49
- package/RadarNode.js.map +0 -1
- package/RadarNodeMap.d.ts +0 -11
- package/RadarNodeMap.js +0 -56
- package/RadarNodeMap.js.map +0 -1
- package/RainComputationMap.d.ts +0 -11
- package/RainComputationMap.js +0 -59
- package/RainComputationMap.js.map +0 -1
- package/RainComputationNode.js +0 -148
- package/RainComputationNode.js.map +0 -1
- package/RainMeasure.d.ts +0 -5
- package/RainMeasure.js +0 -29
- package/RainMeasure.js.map +0 -1
- package/RainMeasureValue.d.ts +0 -21
- package/RainMeasureValue.js +0 -74
- package/RainMeasureValue.js.map +0 -1
- package/RainNode.d.ts +0 -21
- package/RainNode.js +0 -107
- package/RainNode.js.map +0 -1
- package/tools/PolarValues.d.ts +0 -16
- package/tools/PolarValues.js +0 -99
- package/tools/PolarValues.js.map +0 -1
- /package/{IVersion.d.ts → organization/IVersion.d.ts} +0 -0
- /package/{IVersion.js → organization/IVersion.js} +0 -0
package/index.d.ts
CHANGED
|
@@ -1,20 +1,39 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './
|
|
3
|
-
export * from './
|
|
4
|
-
export * from './
|
|
5
|
-
export * from './
|
|
6
|
-
export * from './
|
|
7
|
-
export * from './
|
|
8
|
-
export * from './
|
|
9
|
-
export * from './
|
|
10
|
-
export * from './
|
|
11
|
-
export * from './
|
|
12
|
-
export * from './
|
|
13
|
-
export * from './
|
|
14
|
-
export * from './
|
|
15
|
-
export * from './
|
|
16
|
-
export * from './
|
|
17
|
-
export * from './
|
|
18
|
-
export * from './
|
|
19
|
-
export * from './GaugeNodeMap';
|
|
20
|
-
export * from './
|
|
1
|
+
export * from './organization/Measure';
|
|
2
|
+
export * from './organization/EventNode';
|
|
3
|
+
export * from './organization/PeopleNode';
|
|
4
|
+
export * from './organization/Link';
|
|
5
|
+
export * from './organization/RaainNode';
|
|
6
|
+
export * from './organization/TeamNode';
|
|
7
|
+
export * from './quality/QualityPoint';
|
|
8
|
+
export * from './quality/SpeedMatrix';
|
|
9
|
+
export * from './quality/SpeedMatrixContainer';
|
|
10
|
+
export * from './quality/history/CartesianGaugeHistory';
|
|
11
|
+
export * from './quality/history/CartesianRainHistory';
|
|
12
|
+
export * from './quality/history/PositionHistory';
|
|
13
|
+
export * from './quality/tools/QualityTools';
|
|
14
|
+
export * from './cartesian/LatLng';
|
|
15
|
+
export * from './quality/position/Position';
|
|
16
|
+
export * from './quality/position/PositionValue';
|
|
17
|
+
export * from './gauge/GaugeNode';
|
|
18
|
+
export * from './gauge/GaugeMeasure';
|
|
19
|
+
export * from './gauge/GaugeNodeMap';
|
|
20
|
+
export * from './radar/RadarMeasure';
|
|
21
|
+
export * from './radar/RadarNodeMap';
|
|
22
|
+
export * from './radar/RadarNode';
|
|
23
|
+
export * from './rain/RainMeasure';
|
|
24
|
+
export * from './rain/RainNode';
|
|
25
|
+
export * from './rain/RainComputationQuality';
|
|
26
|
+
export * from './rain/RainComputation';
|
|
27
|
+
export * from './rain/RainComputationMap';
|
|
28
|
+
export * from './polar/GaugePolarMeasureValue';
|
|
29
|
+
export * from './polar/MeasureValuePolarContainer';
|
|
30
|
+
export * from './polar/PolarMeasureValue';
|
|
31
|
+
export * from './polar/PolarValue';
|
|
32
|
+
export * from './polar/RadarPolarMeasureValue';
|
|
33
|
+
export * from './polar/RainPolarMeasureValue';
|
|
34
|
+
export * from './polar/IPolarMeasureValue';
|
|
35
|
+
export * from './cartesian/CartesianValue';
|
|
36
|
+
export * from './cartesian/CartesianMeasureValue';
|
|
37
|
+
export * from './cartesian/RadarCartesianMeasureValue';
|
|
38
|
+
export * from './cartesian/RainCartesianMeasureValue';
|
|
39
|
+
export * from './cartesian/ICartesianMeasureValue';
|
package/index.js
CHANGED
|
@@ -1,26 +1,56 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
function
|
|
3
|
-
|
|
4
|
-
|
|
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
|
+
};
|
|
5
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
17
|
+
__exportStar(require("./organization/Measure"), exports);
|
|
18
|
+
__exportStar(require("./organization/EventNode"), exports);
|
|
19
|
+
__exportStar(require("./organization/PeopleNode"), exports);
|
|
20
|
+
__exportStar(require("./organization/Link"), exports);
|
|
21
|
+
__exportStar(require("./organization/RaainNode"), exports);
|
|
22
|
+
__exportStar(require("./organization/TeamNode"), exports);
|
|
23
|
+
__exportStar(require("./quality/QualityPoint"), exports);
|
|
24
|
+
__exportStar(require("./quality/SpeedMatrix"), exports);
|
|
25
|
+
__exportStar(require("./quality/SpeedMatrixContainer"), exports);
|
|
26
|
+
__exportStar(require("./quality/history/CartesianGaugeHistory"), exports);
|
|
27
|
+
__exportStar(require("./quality/history/CartesianRainHistory"), exports);
|
|
28
|
+
__exportStar(require("./quality/history/PositionHistory"), exports);
|
|
29
|
+
__exportStar(require("./quality/tools/QualityTools"), exports);
|
|
30
|
+
__exportStar(require("./cartesian/LatLng"), exports);
|
|
31
|
+
__exportStar(require("./quality/position/Position"), exports);
|
|
32
|
+
__exportStar(require("./quality/position/PositionValue"), exports);
|
|
33
|
+
__exportStar(require("./gauge/GaugeNode"), exports);
|
|
34
|
+
__exportStar(require("./gauge/GaugeMeasure"), exports);
|
|
35
|
+
__exportStar(require("./gauge/GaugeNodeMap"), exports);
|
|
36
|
+
__exportStar(require("./radar/RadarMeasure"), exports);
|
|
37
|
+
__exportStar(require("./radar/RadarNodeMap"), exports);
|
|
38
|
+
__exportStar(require("./radar/RadarNode"), exports);
|
|
39
|
+
__exportStar(require("./rain/RainMeasure"), exports);
|
|
40
|
+
__exportStar(require("./rain/RainNode"), exports);
|
|
41
|
+
__exportStar(require("./rain/RainComputationQuality"), exports);
|
|
42
|
+
__exportStar(require("./rain/RainComputation"), exports);
|
|
43
|
+
__exportStar(require("./rain/RainComputationMap"), exports);
|
|
44
|
+
__exportStar(require("./polar/GaugePolarMeasureValue"), exports);
|
|
45
|
+
__exportStar(require("./polar/MeasureValuePolarContainer"), exports);
|
|
46
|
+
__exportStar(require("./polar/PolarMeasureValue"), exports);
|
|
47
|
+
__exportStar(require("./polar/PolarValue"), exports);
|
|
48
|
+
__exportStar(require("./polar/RadarPolarMeasureValue"), exports);
|
|
49
|
+
__exportStar(require("./polar/RainPolarMeasureValue"), exports);
|
|
50
|
+
__exportStar(require("./polar/IPolarMeasureValue"), exports);
|
|
51
|
+
__exportStar(require("./cartesian/CartesianValue"), exports);
|
|
52
|
+
__exportStar(require("./cartesian/CartesianMeasureValue"), exports);
|
|
53
|
+
__exportStar(require("./cartesian/RadarCartesianMeasureValue"), exports);
|
|
54
|
+
__exportStar(require("./cartesian/RainCartesianMeasureValue"), exports);
|
|
55
|
+
__exportStar(require("./cartesian/ICartesianMeasureValue"), exports);
|
|
26
56
|
//# sourceMappingURL=index.js.map
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAuC;AACvC,2DAAyC;AACzC,4DAA0C;AAC1C,sDAAoC;AACpC,2DAAyC;AACzC,0DAAwC;AAExC,yDAAuC;AACvC,wDAAsC;AACtC,iEAA+C;AAC/C,0EAAwD;AACxD,yEAAuD;AACvD,oEAAkD;AAClD,+DAA6C;AAC7C,qDAAmC;AACnC,8DAA4C;AAC5C,mEAAiD;AAEjD,oDAAkC;AAClC,uDAAqC;AACrC,uDAAqC;AAErC,uDAAqC;AACrC,uDAAqC;AACrC,oDAAkC;AAElC,qDAAmC;AACnC,kDAAgC;AAChC,gEAA8C;AAC9C,yDAAuC;AACvC,4DAA0C;AAE1C,iEAA+C;AAC/C,qEAAmD;AACnD,4DAA0C;AAC1C,qDAAmC;AACnC,iEAA+C;AAC/C,gEAA8C;AAC9C,6DAA2C;AAE3C,6DAA2C;AAC3C,oEAAkD;AAClD,yEAAuD;AACvD,wEAAsD;AACtD,qEAAmD"}
|
|
@@ -0,0 +1,22 @@
|
|
|
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(): JSON;
|
|
22
|
+
}
|
|
@@ -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;SACnB,CAAC;IACb,CAAC;CACJ;AAvCD,8BAuCC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IVersion.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"IVersion.js","sourceRoot":"","sources":["../../src/organization/IVersion.ts"],"names":[],"mappings":""}
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hateoas Links :
|
|
3
3
|
* [ {
|
|
4
|
-
* rel: string, // "self" or api types ("rain", "gauge", "radar")
|
|
4
|
+
* rel: string, // "self" or api types ("rain", "gauge", "radar", "radar-measure", "rain-computation"...)
|
|
5
5
|
* href: string // like "https://.../rains/2"
|
|
6
6
|
* },...]
|
|
7
7
|
*/
|
|
8
8
|
export declare class Link {
|
|
9
9
|
rel: string;
|
|
10
10
|
href: string;
|
|
11
|
-
constructor(rel: string,
|
|
12
|
-
href: string);
|
|
13
|
-
getId(): string;
|
|
14
|
-
getLinkType(): string;
|
|
11
|
+
constructor(rel: string, href: string);
|
|
15
12
|
static isCloneable(object: any): boolean;
|
|
16
13
|
static clone(object: any): Link;
|
|
14
|
+
getId(): string;
|
|
15
|
+
getLinkType(): string;
|
|
17
16
|
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Link = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Hateoas Links :
|
|
6
|
+
* [ {
|
|
7
|
+
* rel: string, // "self" or api types ("rain", "gauge", "radar", "radar-measure", "rain-computation"...)
|
|
8
|
+
* href: string // like "https://.../rains/2"
|
|
9
|
+
* },...]
|
|
10
|
+
*/
|
|
11
|
+
class Link {
|
|
12
|
+
constructor(rel, href) {
|
|
13
|
+
this.rel = rel;
|
|
14
|
+
this.href = href;
|
|
15
|
+
}
|
|
16
|
+
static isCloneable(object) {
|
|
17
|
+
return object && object.rel && object.href;
|
|
18
|
+
}
|
|
19
|
+
static clone(object) {
|
|
20
|
+
return new Link(object.rel, object.href);
|
|
21
|
+
}
|
|
22
|
+
getId() {
|
|
23
|
+
const urls = this.href.split('/');
|
|
24
|
+
// can be enforced : verify rel in -2 urls ?...
|
|
25
|
+
return urls[urls.length - 1];
|
|
26
|
+
}
|
|
27
|
+
getLinkType() {
|
|
28
|
+
const urls = this.href.split('/');
|
|
29
|
+
// can be enforced : verify rel in -2 urls ?...
|
|
30
|
+
return urls[0];
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
exports.Link = Link;
|
|
34
|
+
//# sourceMappingURL=Link.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Link.js","sourceRoot":"","sources":["../../src/organization/Link.ts"],"names":[],"mappings":";;;AAAA;;;;;;GAMG;AACH,MAAa,IAAI;IACb,YACW,GAAW,EACX,IAAY;QADZ,QAAG,GAAH,GAAG,CAAQ;QACX,SAAI,GAAJ,IAAI,CAAQ;IAEvB,CAAC;IAEM,MAAM,CAAC,WAAW,CAAC,MAAW;QACjC,OAAO,MAAM,IAAI,MAAM,CAAC,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC;IAC/C,CAAC;IAEM,MAAM,CAAC,KAAK,CAAC,MAAW;QAC3B,OAAO,IAAI,IAAI,CAAC,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC;IAC7C,CAAC;IAEM,KAAK;QACR,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAClC,+CAA+C;QAC/C,OAAO,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IACjC,CAAC;IAEM,WAAW;QACd,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAClC,+CAA+C;QAC/C,OAAO,IAAI,CAAC,CAAC,CAAC,CAAC;IACnB,CAAC;CACJ;AA1BD,oBA0BC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { IPolarMeasureValue } from '../polar/IPolarMeasureValue';
|
|
2
|
+
import { RaainNode } from './RaainNode';
|
|
3
|
+
import { ICartesianMeasureValue } from '../cartesian/ICartesianMeasureValue';
|
|
4
|
+
export declare class Measure extends RaainNode {
|
|
5
|
+
date: Date;
|
|
6
|
+
values: IPolarMeasureValue[] | ICartesianMeasureValue[] | Measure[] | number[];
|
|
7
|
+
validity: number;
|
|
8
|
+
private configurationAsJSON;
|
|
9
|
+
constructor(json: {
|
|
10
|
+
id: string;
|
|
11
|
+
values: IPolarMeasureValue[] | ICartesianMeasureValue[] | Measure[] | number[];
|
|
12
|
+
date?: Date;
|
|
13
|
+
validity?: number;
|
|
14
|
+
configurationAsJSON?: string | any;
|
|
15
|
+
});
|
|
16
|
+
setConfiguration(configuration: string | any): void;
|
|
17
|
+
toJSON(options?: {
|
|
18
|
+
removeValues?: boolean;
|
|
19
|
+
}): JSON;
|
|
20
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Measure = void 0;
|
|
4
|
+
const RaainNode_1 = require("./RaainNode");
|
|
5
|
+
class Measure extends RaainNode_1.RaainNode {
|
|
6
|
+
constructor(json) {
|
|
7
|
+
super(json);
|
|
8
|
+
this.values = json.values ? json.values : [];
|
|
9
|
+
this.date = json.date ? new Date(json.date) : undefined;
|
|
10
|
+
this.validity = json.validity >= 0 ? json.validity : -1;
|
|
11
|
+
this.setConfiguration(json.configurationAsJSON);
|
|
12
|
+
}
|
|
13
|
+
setConfiguration(configuration) {
|
|
14
|
+
let conf = configuration;
|
|
15
|
+
try {
|
|
16
|
+
conf = JSON.parse(configuration);
|
|
17
|
+
}
|
|
18
|
+
catch (ignored) {
|
|
19
|
+
}
|
|
20
|
+
this.configurationAsJSON = JSON.stringify(conf);
|
|
21
|
+
}
|
|
22
|
+
toJSON(options = {}) {
|
|
23
|
+
var _a;
|
|
24
|
+
const json = super.toJSON();
|
|
25
|
+
json['date'] = (_a = this.date) === null || _a === void 0 ? void 0 : _a.toISOString();
|
|
26
|
+
json['validity'] = this.validity;
|
|
27
|
+
json['configurationAsJSON'] = this.configurationAsJSON;
|
|
28
|
+
if (!(options === null || options === void 0 ? void 0 : options.removeValues)) {
|
|
29
|
+
json['values'] = this.values;
|
|
30
|
+
}
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
exports.Measure = Measure;
|
|
35
|
+
//# sourceMappingURL=Measure.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Measure.js","sourceRoot":"","sources":["../../src/organization/Measure.ts"],"names":[],"mappings":";;;AACA,2CAAsC;AAGtC,MAAa,OAAQ,SAAQ,qBAAS;IAQlC,YAAY,IAMC;QAET,KAAK,CAAC,IAAI,CAAC,CAAC;QACZ,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC;QAC7C,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;QACxD,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACxD,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC;IACpD,CAAC;IAEM,gBAAgB,CAAC,aAA2B;QAC/C,IAAI,IAAI,GAAG,aAAa,CAAC;QACzB,IAAI;YACA,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC;SACpC;QAAC,OAAO,OAAO,EAAE;SACjB;QAED,IAAI,CAAC,mBAAmB,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;IACpD,CAAC;IAEM,MAAM,CAAC,UAAsC,EAAE;;QAClD,MAAM,IAAI,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC;QAC5B,IAAI,CAAC,MAAM,CAAC,GAAG,MAAA,IAAI,CAAC,IAAI,0CAAE,WAAW,EAAE,CAAC;QACxC,IAAI,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC;QACjC,IAAI,CAAC,qBAAqB,CAAC,GAAG,IAAI,CAAC,mBAAmB,CAAC;QAEvD,IAAI,CAAC,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,YAAY,CAAA,EAAE;YACxB,IAAI,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;SAChC;QACD,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ;AA5CD,0BA4CC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* api/teams/:id => contacts
|
|
3
|
+
*/
|
|
4
|
+
export declare class PeopleNode {
|
|
5
|
+
id: string;
|
|
6
|
+
role: string;
|
|
7
|
+
email: string;
|
|
8
|
+
name: string;
|
|
9
|
+
comments: string;
|
|
10
|
+
constructor(json: {
|
|
11
|
+
id: string;
|
|
12
|
+
role: string;
|
|
13
|
+
email: string;
|
|
14
|
+
name: string;
|
|
15
|
+
comments: string;
|
|
16
|
+
});
|
|
17
|
+
toJSON(): JSON;
|
|
18
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PeopleNode = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* api/teams/:id => contacts
|
|
6
|
+
*/
|
|
7
|
+
class PeopleNode {
|
|
8
|
+
constructor(json) {
|
|
9
|
+
this.id = json.id;
|
|
10
|
+
this.role = json.role;
|
|
11
|
+
this.email = json.email;
|
|
12
|
+
this.name = json.name;
|
|
13
|
+
this.comments = json.comments;
|
|
14
|
+
}
|
|
15
|
+
toJSON() {
|
|
16
|
+
return {
|
|
17
|
+
id: this.id,
|
|
18
|
+
role: this.role,
|
|
19
|
+
email: this.email,
|
|
20
|
+
name: this.name,
|
|
21
|
+
comments: this.comments,
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
exports.PeopleNode = PeopleNode;
|
|
26
|
+
//# sourceMappingURL=PeopleNode.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PeopleNode.js","sourceRoot":"","sources":["../../src/organization/PeopleNode.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,MAAa,UAAU;IAQnB,YAAY,IAMC;QAET,IAAI,CAAC,EAAE,GAAG,IAAI,CAAC,EAAE,CAAC;QAClB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;QACtB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;QACxB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;QACtB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;IAClC,CAAC;IAEM,MAAM;QACT,OAAO;YACH,EAAE,EAAE,IAAI,CAAC,EAAE;YACX,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,QAAQ,EAAE,IAAI,CAAC,QAAQ;SACnB,CAAC;IACb,CAAC;CACJ;AAhCD,gCAgCC"}
|
|
@@ -1,18 +1,23 @@
|
|
|
1
|
-
import { Link } from
|
|
2
|
-
import { IVersion } from
|
|
1
|
+
import { Link } from './Link';
|
|
2
|
+
import { IVersion } from './IVersion';
|
|
3
3
|
export declare class RaainNode implements IVersion {
|
|
4
4
|
readonly id: string;
|
|
5
|
+
readonly version: string;
|
|
5
6
|
private links;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
constructor(json: {
|
|
8
|
+
id: string;
|
|
9
|
+
links?: Link[] | RaainNode[];
|
|
10
|
+
version?: string;
|
|
11
|
+
});
|
|
12
|
+
private static _getPurifiedLinks;
|
|
13
|
+
toJSON(): JSON;
|
|
9
14
|
getId(): string;
|
|
10
15
|
setLinks(linksToSet: Link[] | RaainNode[]): void;
|
|
11
16
|
addLinks(linksToAdd: Link[] | RaainNode[]): void;
|
|
12
|
-
private static _getPurifiedLinks;
|
|
13
17
|
getLink(linkType: string, index?: number): Link;
|
|
14
18
|
getLinkId(linkType: string, index?: number): string;
|
|
15
19
|
getLinksCount(linkType?: string): number;
|
|
16
|
-
|
|
20
|
+
getLinks(): Link[];
|
|
17
21
|
getVersion(): string;
|
|
22
|
+
protected getLinkType(): string;
|
|
18
23
|
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RaainNode = void 0;
|
|
4
|
+
const Link_1 = require("./Link");
|
|
5
|
+
class RaainNode {
|
|
6
|
+
constructor(json) {
|
|
7
|
+
if (!(json === null || json === void 0 ? void 0 : json.id)) {
|
|
8
|
+
throw new Error('RaainNode needs a valid Object or ID');
|
|
9
|
+
}
|
|
10
|
+
this.id = json.id;
|
|
11
|
+
this.setLinks(json.links ? json.links : []);
|
|
12
|
+
this.version = json.version ? json.version : undefined;
|
|
13
|
+
}
|
|
14
|
+
static _getPurifiedLinks(linksToPurify) {
|
|
15
|
+
if (!linksToPurify || linksToPurify.length === 0) {
|
|
16
|
+
return [];
|
|
17
|
+
}
|
|
18
|
+
const linksPurified = linksToPurify.map(l => {
|
|
19
|
+
if (l instanceof Link_1.Link || Link_1.Link.isCloneable(l)) {
|
|
20
|
+
return Link_1.Link.clone(l);
|
|
21
|
+
}
|
|
22
|
+
else if (l && l.getLinkType && l.id) {
|
|
23
|
+
return new Link_1.Link(l.getLinkType(), '../' + l.getLinkType() + 's/' + l.id);
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
function uniqBy(a, key) {
|
|
27
|
+
const seen = {};
|
|
28
|
+
return a.filter((item) => {
|
|
29
|
+
if (!item) {
|
|
30
|
+
return false;
|
|
31
|
+
}
|
|
32
|
+
const k = key(item);
|
|
33
|
+
return seen.hasOwnProperty(k) ? false : (seen[k] = true);
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
return uniqBy(linksPurified, JSON.stringify);
|
|
37
|
+
}
|
|
38
|
+
toJSON() {
|
|
39
|
+
return {
|
|
40
|
+
id: this.id,
|
|
41
|
+
links: this.links,
|
|
42
|
+
version: this.version,
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
getId() {
|
|
46
|
+
return this.id.toString();
|
|
47
|
+
}
|
|
48
|
+
setLinks(linksToSet) {
|
|
49
|
+
this.links = RaainNode._getPurifiedLinks(linksToSet);
|
|
50
|
+
}
|
|
51
|
+
addLinks(linksToAdd) {
|
|
52
|
+
if (!this.links) {
|
|
53
|
+
this.links = [];
|
|
54
|
+
}
|
|
55
|
+
const concatLinks = this.links.concat(linksToAdd);
|
|
56
|
+
this.links = RaainNode._getPurifiedLinks(concatLinks);
|
|
57
|
+
}
|
|
58
|
+
getLink(linkType, index) {
|
|
59
|
+
if (!this.links || !linkType) {
|
|
60
|
+
return null;
|
|
61
|
+
}
|
|
62
|
+
index = !index ? 0 : index;
|
|
63
|
+
const linksFound = this.links.filter(l => l && l.rel && linkType === l.rel);
|
|
64
|
+
if (linksFound.length <= index) {
|
|
65
|
+
return null;
|
|
66
|
+
}
|
|
67
|
+
return linksFound[index];
|
|
68
|
+
}
|
|
69
|
+
getLinkId(linkType, index) {
|
|
70
|
+
index = !index ? 0 : index;
|
|
71
|
+
const link = this.getLink(linkType, index);
|
|
72
|
+
if (link) {
|
|
73
|
+
return link.getId();
|
|
74
|
+
}
|
|
75
|
+
return null;
|
|
76
|
+
}
|
|
77
|
+
getLinksCount(linkType) {
|
|
78
|
+
if (!linkType) {
|
|
79
|
+
return this.links.length;
|
|
80
|
+
}
|
|
81
|
+
const linksFound = this.links.filter(l => (l === null || l === void 0 ? void 0 : l.rel) === linkType);
|
|
82
|
+
return linksFound.length;
|
|
83
|
+
}
|
|
84
|
+
getLinks() {
|
|
85
|
+
return this.links.map(l => Link_1.Link.clone(l));
|
|
86
|
+
}
|
|
87
|
+
getVersion() {
|
|
88
|
+
return this.version;
|
|
89
|
+
}
|
|
90
|
+
getLinkType() {
|
|
91
|
+
throw new Error('to implement');
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
exports.RaainNode = RaainNode;
|
|
95
|
+
//# sourceMappingURL=RaainNode.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RaainNode.js","sourceRoot":"","sources":["../../src/organization/RaainNode.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { PeopleNode } from './PeopleNode';
|
|
2
|
+
import { RaainNode } from './RaainNode';
|
|
3
|
+
/**
|
|
4
|
+
* api/teams?name=customerTeam
|
|
5
|
+
*/
|
|
6
|
+
export declare class TeamNode extends RaainNode {
|
|
7
|
+
static TYPE: string;
|
|
8
|
+
id: any | string;
|
|
9
|
+
name: string;
|
|
10
|
+
description: string;
|
|
11
|
+
contracts: string[];
|
|
12
|
+
contacts: PeopleNode[];
|
|
13
|
+
constructor(json: {
|
|
14
|
+
id: any | string;
|
|
15
|
+
name?: string;
|
|
16
|
+
description?: string;
|
|
17
|
+
contracts?: string[];
|
|
18
|
+
contacts?: PeopleNode[];
|
|
19
|
+
});
|
|
20
|
+
toJSON(): JSON;
|
|
21
|
+
protected getLinkType(): string;
|
|
22
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TeamNode = void 0;
|
|
4
|
+
const RaainNode_1 = require("./RaainNode");
|
|
5
|
+
/**
|
|
6
|
+
* api/teams?name=customerTeam
|
|
7
|
+
*/
|
|
8
|
+
class TeamNode extends RaainNode_1.RaainNode {
|
|
9
|
+
constructor(json) {
|
|
10
|
+
super(json);
|
|
11
|
+
this.id = json.id;
|
|
12
|
+
this.name = json.name;
|
|
13
|
+
this.description = json.description;
|
|
14
|
+
this.contracts = json.contracts;
|
|
15
|
+
this.contacts = json.contacts;
|
|
16
|
+
}
|
|
17
|
+
toJSON() {
|
|
18
|
+
return {
|
|
19
|
+
id: this.id,
|
|
20
|
+
name: this.name,
|
|
21
|
+
description: this.description,
|
|
22
|
+
contracts: this.contracts,
|
|
23
|
+
contacts: this.contacts,
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
getLinkType() {
|
|
27
|
+
return TeamNode.TYPE;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
TeamNode.TYPE = 'team';
|
|
31
|
+
exports.TeamNode = TeamNode;
|
|
32
|
+
//# sourceMappingURL=TeamNode.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TeamNode.js","sourceRoot":"","sources":["../../src/organization/TeamNode.ts"],"names":[],"mappings":";;;AACA,2CAAsC;AAEtC;;GAEG;AACH,MAAa,QAAS,SAAQ,qBAAS;IAUnC,YAAY,IAMX;QACG,KAAK,CAAC,IAAI,CAAC,CAAC;QAEZ,IAAI,CAAC,EAAE,GAAG,IAAI,CAAC,EAAE,CAAC;QAClB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;QACtB,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC;QACpC,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC;QAChC,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;IAClC,CAAC;IAEM,MAAM;QACT,OAAO;YACH,EAAE,EAAE,IAAI,CAAC,EAAE;YACX,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,SAAS,EAAE,IAAI,CAAC,SAAS;YACzB,QAAQ,EAAE,IAAI,CAAC,QAAQ;SACnB,CAAC;IACb,CAAC;IAES,WAAW;QACjB,OAAO,QAAQ,CAAC,IAAI,CAAC;IACzB,CAAC;;AApCa,aAAI,GAAG,MAAM,CAAC;AAFnB,4BAAQ"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "raain-model",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1.10.25",
|
|
4
4
|
"author": "contact@raain.io",
|
|
5
5
|
"homepage": "https://github.com/raainio/raain-model",
|
|
6
6
|
"description": "raain.io api model",
|
|
@@ -15,17 +15,20 @@
|
|
|
15
15
|
"dependencies": {},
|
|
16
16
|
"devDependencies": {
|
|
17
17
|
"assert": "^2.0.0",
|
|
18
|
-
"chai": "^4.
|
|
18
|
+
"@types/chai": "^4.3.10",
|
|
19
|
+
"@types/mocha": "^10.0.1",
|
|
20
|
+
"@types/node": "^20.8.8",
|
|
21
|
+
"chai": "^4.3.10",
|
|
19
22
|
"chai-as-promised": "^7.1.1",
|
|
20
|
-
"chai-spies": "^1.
|
|
21
|
-
"mocha": "^
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
23
|
+
"chai-spies": "^1.1.0",
|
|
24
|
+
"mocha": "^10.2.0",
|
|
25
|
+
"mocha-typescript": "^1.1.17",
|
|
26
|
+
"ts-node": "^8.10.2",
|
|
27
|
+
"tslint": "^6.1.3",
|
|
28
|
+
"typescript": "^5.0.4"
|
|
25
29
|
},
|
|
26
30
|
"scripts": {
|
|
27
|
-
"build": "rm -rf dist/ && npx tsc && cp package.json dist/ && cp *.md dist/",
|
|
28
|
-
"test": "
|
|
29
|
-
"test-example": "ts-node examples/creation.example.ts"
|
|
31
|
+
"build": "rm -rf dist/ && npm version patch --no-git-tag-version && npx tsc && cp package.json dist/ && cp *.md dist/",
|
|
32
|
+
"test": "mocha --require ts-node/register 'specs/**/**.spec.ts'"
|
|
30
33
|
}
|
|
31
34
|
}
|