raain-model 1.11.4 → 1.11.6
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/cartesian/CartesianMeasureValue.d.ts +41 -0
- package/{src/cartesian/CartesianMeasureValue.ts → cartesian/CartesianMeasureValue.js} +34 -64
- 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/{src/index.ts → index.d.ts} +0 -6
- package/index.js +56 -0
- package/index.js.map +1 -0
- package/organization/EventNode.d.ts +22 -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} +13 -13
- 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/organization/RaainNode.d.ts +23 -0
- package/{src/organization/RaainNode.ts → organization/RaainNode.js} +29 -53
- 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 +1 -1
- package/polar/AbstractPolarMeasureValue.d.ts +29 -0
- package/{src/polar/AbstractPolarMeasureValue.ts → polar/AbstractPolarMeasureValue.js} +29 -53
- 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/polar/IPolarMeasureValue.js +3 -0
- 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/{src/polar/PolarMeasureValue.ts → polar/PolarMeasureValue.js} +27 -46
- 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/{src/quality/QualityPoint.ts → quality/QualityPoint.js} +23 -48
- package/quality/QualityPoint.js.map +1 -0
- package/quality/SpeedMatrix.d.ts +83 -0
- package/{src/quality/SpeedMatrix.ts → quality/SpeedMatrix.js} +78 -116
- package/quality/SpeedMatrix.js.map +1 -0
- package/quality/SpeedMatrixContainer.d.ts +80 -0
- package/{src/quality/SpeedMatrixContainer.ts → quality/SpeedMatrixContainer.js} +76 -141
- 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/{src/quality/tools/QualityTools.ts → quality/tools/QualityTools.js} +49 -82
- 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/rain/RainComputationAbstract.d.ts +41 -0
- 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/{src/rain/RainComputationQuality.ts → rain/RainComputationQuality.js} +20 -56
- 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/{src/rain/RainNode.ts → rain/RainNode.js} +48 -76
- package/rain/RainNode.js.map +1 -0
- package/.travis.deploy.sh +0 -41
- package/.travis.yml +0 -22
- package/specs/cartesian/Cartesian.spec.ts +0 -56
- package/specs/gauge/Gauge.spec.ts +0 -19
- package/specs/organization/Organization.spec.ts +0 -32
- package/specs/polar/Polar.spec.ts +0 -25
- package/specs/quality/Position.spec.ts +0 -18
- package/specs/quality/QualityTools.spec.ts +0 -120
- package/specs/quality/SpeedMatrix.spec.ts +0 -125
- package/specs/radar/Radar.spec.ts +0 -18
- package/specs/rain/Rain.spec.ts +0 -71
- package/specs/tsconfig.json +0 -12
- package/src/cartesian/CartesianValue.ts +0 -17
- package/src/cartesian/ICartesianMeasureValue.ts +0 -27
- package/src/cartesian/LatLng.ts +0 -39
- package/src/cartesian/RadarCartesianMeasureValue.ts +0 -29
- package/src/cartesian/RainCartesianMeasureValue.ts +0 -33
- package/src/gauge/GaugeMeasure.ts +0 -36
- package/src/gauge/GaugeNode.ts +0 -46
- package/src/gauge/GaugeNodeMap.ts +0 -55
- package/src/organization/EventNode.ts +0 -44
- package/src/organization/Measure.ts +0 -49
- package/src/organization/PeopleNode.ts +0 -36
- package/src/organization/TeamNode.ts +0 -46
- package/src/polar/GaugePolarMeasureValue.ts +0 -15
- package/src/polar/IPolarMeasureValue.ts +0 -21
- package/src/polar/MeasureValuePolarContainer.ts +0 -28
- package/src/polar/PolarValue.ts +0 -16
- package/src/polar/RadarPolarMeasureValue.ts +0 -43
- package/src/polar/RainPolarMeasureValue.ts +0 -57
- package/src/quality/history/CartesianGaugeHistory.ts +0 -23
- package/src/quality/history/CartesianRainHistory.ts +0 -18
- package/src/quality/history/PositionHistory.ts +0 -31
- package/src/quality/position/Position.ts +0 -60
- package/src/quality/position/PositionValue.ts +0 -15
- package/src/radar/RadarMeasure.ts +0 -27
- package/src/radar/RadarNode.ts +0 -46
- package/src/radar/RadarNodeMap.ts +0 -65
- package/src/rain/RainComputation.ts +0 -82
- package/src/rain/RainComputationAbstract.ts +0 -137
- package/src/rain/RainComputationMap.ts +0 -68
- package/src/rain/RainMeasure.ts +0 -27
- package/tsconfig.json +0 -17
- package/tslint.json +0 -79
- /package/{src/organization/IVersion.ts → organization/IVersion.d.ts} +0 -0
package/index.js
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
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("./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);
|
|
56
|
+
//# 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,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"}
|
|
@@ -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;
|
|
14
|
+
getId(): string;
|
|
15
|
+
getLinkType(): string;
|
|
16
|
+
}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Link = void 0;
|
|
1
4
|
/**
|
|
2
5
|
* Hateoas Links :
|
|
3
6
|
* [ {
|
|
@@ -5,30 +8,27 @@
|
|
|
5
8
|
* href: string // like "https://.../rains/2"
|
|
6
9
|
* },...]
|
|
7
10
|
*/
|
|
8
|
-
|
|
9
|
-
constructor(
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
) {
|
|
11
|
+
class Link {
|
|
12
|
+
constructor(rel, href) {
|
|
13
|
+
this.rel = rel;
|
|
14
|
+
this.href = href;
|
|
13
15
|
}
|
|
14
|
-
|
|
15
|
-
public static isCloneable(object: any): boolean {
|
|
16
|
+
static isCloneable(object) {
|
|
16
17
|
return object && object.rel && object.href;
|
|
17
18
|
}
|
|
18
|
-
|
|
19
|
-
public static clone(object: any): Link {
|
|
19
|
+
static clone(object) {
|
|
20
20
|
return new Link(object.rel, object.href);
|
|
21
21
|
}
|
|
22
|
-
|
|
23
|
-
public getId(): string {
|
|
22
|
+
getId() {
|
|
24
23
|
const urls = this.href.split('/');
|
|
25
24
|
// can be enforced : verify rel in -2 urls ?...
|
|
26
25
|
return urls[urls.length - 1];
|
|
27
26
|
}
|
|
28
|
-
|
|
29
|
-
public getLinkType(): string {
|
|
27
|
+
getLinkType() {
|
|
30
28
|
const urls = this.href.split('/');
|
|
31
29
|
// can be enforced : verify rel in -2 urls ?...
|
|
32
30
|
return urls[0];
|
|
33
31
|
}
|
|
34
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,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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"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Link } from './Link';
|
|
2
|
+
import { IVersion } from './IVersion';
|
|
3
|
+
export declare class RaainNode implements IVersion {
|
|
4
|
+
readonly id: string;
|
|
5
|
+
readonly version: string;
|
|
6
|
+
private links;
|
|
7
|
+
constructor(json: {
|
|
8
|
+
id: string;
|
|
9
|
+
links?: Link[] | RaainNode[];
|
|
10
|
+
version?: string;
|
|
11
|
+
});
|
|
12
|
+
private static _getPurifiedLinks;
|
|
13
|
+
toJSON(): JSON;
|
|
14
|
+
getId(): string;
|
|
15
|
+
setLinks(linksToSet: Link[] | RaainNode[]): void;
|
|
16
|
+
addLinks(linksToAdd: Link[] | RaainNode[]): void;
|
|
17
|
+
getLink(linkType: string, index?: number): Link;
|
|
18
|
+
getLinkId(linkType: string, index?: number): string;
|
|
19
|
+
getLinksCount(linkType?: string): number;
|
|
20
|
+
getLinks(): Link[];
|
|
21
|
+
getVersion(): string;
|
|
22
|
+
protected getLinkType(): string;
|
|
23
|
+
}
|
|
@@ -1,80 +1,61 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
private links: Link[];
|
|
9
|
-
|
|
10
|
-
constructor(json: {
|
|
11
|
-
id: string,
|
|
12
|
-
links?: Link[] | RaainNode[],
|
|
13
|
-
version?: string
|
|
14
|
-
}) {
|
|
15
|
-
|
|
16
|
-
if (!json?.id) {
|
|
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)) {
|
|
17
8
|
throw new Error('RaainNode needs a valid Object or ID');
|
|
18
9
|
}
|
|
19
|
-
|
|
20
10
|
this.id = json.id;
|
|
21
11
|
this.setLinks(json.links ? json.links : []);
|
|
22
12
|
this.version = json.version ? json.version : undefined;
|
|
23
13
|
}
|
|
24
|
-
|
|
25
|
-
private static _getPurifiedLinks(linksToPurify: any[]): Link[] {
|
|
14
|
+
static _getPurifiedLinks(linksToPurify) {
|
|
26
15
|
if (!linksToPurify || linksToPurify.length === 0) {
|
|
27
16
|
return [];
|
|
28
17
|
}
|
|
29
|
-
|
|
30
18
|
const linksPurified = linksToPurify.map(l => {
|
|
31
|
-
if (l instanceof Link || Link.isCloneable(l)) {
|
|
32
|
-
return Link.clone(l);
|
|
33
|
-
}
|
|
34
|
-
|
|
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);
|
|
35
24
|
}
|
|
36
25
|
});
|
|
37
|
-
|
|
38
26
|
function uniqBy(a, key) {
|
|
39
27
|
const seen = {};
|
|
40
28
|
return a.filter((item) => {
|
|
41
29
|
if (!item) {
|
|
42
30
|
return false;
|
|
43
31
|
}
|
|
44
|
-
|
|
45
32
|
const k = key(item);
|
|
46
33
|
return seen.hasOwnProperty(k) ? false : (seen[k] = true);
|
|
47
34
|
});
|
|
48
35
|
}
|
|
49
|
-
|
|
50
36
|
return uniqBy(linksPurified, JSON.stringify);
|
|
51
37
|
}
|
|
52
|
-
|
|
53
|
-
public toJSON(): JSON {
|
|
38
|
+
toJSON() {
|
|
54
39
|
return {
|
|
55
40
|
id: this.id,
|
|
56
41
|
links: this.links,
|
|
57
42
|
version: this.version,
|
|
58
|
-
}
|
|
43
|
+
};
|
|
59
44
|
}
|
|
60
|
-
|
|
61
|
-
public getId(): string {
|
|
45
|
+
getId() {
|
|
62
46
|
return this.id.toString();
|
|
63
47
|
}
|
|
64
|
-
|
|
65
|
-
public setLinks(linksToSet: Link[] | RaainNode[]) {
|
|
48
|
+
setLinks(linksToSet) {
|
|
66
49
|
this.links = RaainNode._getPurifiedLinks(linksToSet);
|
|
67
50
|
}
|
|
68
|
-
|
|
69
|
-
public addLinks(linksToAdd: Link[] | RaainNode[]) {
|
|
51
|
+
addLinks(linksToAdd) {
|
|
70
52
|
if (!this.links) {
|
|
71
53
|
this.links = [];
|
|
72
54
|
}
|
|
73
|
-
const concatLinks = this.links.concat(
|
|
55
|
+
const concatLinks = this.links.concat(linksToAdd);
|
|
74
56
|
this.links = RaainNode._getPurifiedLinks(concatLinks);
|
|
75
57
|
}
|
|
76
|
-
|
|
77
|
-
public getLink(linkType: string, index?: number): Link {
|
|
58
|
+
getLink(linkType, index) {
|
|
78
59
|
if (!this.links || !linkType) {
|
|
79
60
|
return null;
|
|
80
61
|
}
|
|
@@ -85,8 +66,7 @@ export class RaainNode implements IVersion {
|
|
|
85
66
|
}
|
|
86
67
|
return linksFound[index];
|
|
87
68
|
}
|
|
88
|
-
|
|
89
|
-
public getLinkId(linkType: string, index?: number): string {
|
|
69
|
+
getLinkId(linkType, index) {
|
|
90
70
|
index = !index ? 0 : index;
|
|
91
71
|
const link = this.getLink(linkType, index);
|
|
92
72
|
if (link) {
|
|
@@ -94,26 +74,22 @@ export class RaainNode implements IVersion {
|
|
|
94
74
|
}
|
|
95
75
|
return null;
|
|
96
76
|
}
|
|
97
|
-
|
|
98
|
-
public getLinksCount(linkType?: string): number {
|
|
77
|
+
getLinksCount(linkType) {
|
|
99
78
|
if (!linkType) {
|
|
100
79
|
return this.links.length;
|
|
101
80
|
}
|
|
102
|
-
|
|
103
|
-
const linksFound = this.links.filter(l => l?.rel === linkType);
|
|
81
|
+
const linksFound = this.links.filter(l => (l === null || l === void 0 ? void 0 : l.rel) === linkType);
|
|
104
82
|
return linksFound.length;
|
|
105
83
|
}
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
return this.links.map(l => Link.clone(l));
|
|
84
|
+
getLinks() {
|
|
85
|
+
return this.links.map(l => Link_1.Link.clone(l));
|
|
109
86
|
}
|
|
110
|
-
|
|
111
|
-
public getVersion() {
|
|
87
|
+
getVersion() {
|
|
112
88
|
return this.version;
|
|
113
89
|
}
|
|
114
|
-
|
|
115
|
-
protected getLinkType(): string {
|
|
90
|
+
getLinkType() {
|
|
116
91
|
throw new Error('to implement');
|
|
117
92
|
}
|
|
118
|
-
|
|
119
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":";;;AAAA,iCAA4B;AAG5B,MAAa,SAAS;IAMlB,YAAY,IAIX;QAEG,IAAI,CAAC,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,EAAE,CAAA,EAAE;YACX,MAAM,IAAI,KAAK,CAAC,sCAAsC,CAAC,CAAC;SAC3D;QAED,IAAI,CAAC,EAAE,GAAG,IAAI,CAAC,EAAE,CAAC;QAClB,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;QAC5C,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;IAC3D,CAAC;IAEO,M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E;YACN,OAAO,IAAI,CAAC,KAAK,EAAE,CAAC;SACvB;QACD,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,aAAa,CAAC,QAAiB;QAClC,IAAI,CAAC,QAAQ,EAAE;YACX,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC;SAC5B;QAED,MAAM,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAA,CAAC,aAAD,CAAC,uBAAD,CAAC,CAAE,GAAG,MAAK,QAAQ,CAAC,CAAC;QAC/D,OAAO,UAAU,CAAC,MAAM,CAAC;IAC7B,CAAC;IAEM,QAAQ;QACX,OAAO,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,WAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;IAC9C,CAAC;IAEM,UAAU;QACb,OAAO,IAAI,CAAC,OAAO,CAAC;IACxB,CAAC;IAES,WAAW;QACjB,MAAM,IAAI,KAAK,CAAC,cAAc,CAAC,CAAC;IACpC,CAAC;CAEJ;AAnHD,8BAmHC"}
|
|
@@ -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
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { MeasureValuePolarContainer } from './MeasureValuePolarContainer';
|
|
2
|
+
import { IPolarMeasureValue } from './IPolarMeasureValue';
|
|
3
|
+
import { PolarMeasureValue } from './PolarMeasureValue';
|
|
4
|
+
import { PolarValue } from './PolarValue';
|
|
5
|
+
export declare class AbstractPolarMeasureValue implements IPolarMeasureValue {
|
|
6
|
+
protected polars: PolarMeasureValue;
|
|
7
|
+
constructor(json: {
|
|
8
|
+
polars: AbstractPolarMeasureValue | PolarMeasureValue | string;
|
|
9
|
+
});
|
|
10
|
+
getPolarsStringified(): string;
|
|
11
|
+
getPolars(): MeasureValuePolarContainer[];
|
|
12
|
+
setPolarsAsString(s: string): void;
|
|
13
|
+
setPolarsAsContainer(s: MeasureValuePolarContainer[]): void;
|
|
14
|
+
getPolarValue(json: {
|
|
15
|
+
azimuthIndex: number;
|
|
16
|
+
edgeIndex: number;
|
|
17
|
+
strict?: boolean;
|
|
18
|
+
}): PolarValue;
|
|
19
|
+
setPolarValue(json: {
|
|
20
|
+
azimuthIndex: number;
|
|
21
|
+
edgeIndex: number;
|
|
22
|
+
value: number;
|
|
23
|
+
}): void;
|
|
24
|
+
getAzimuthsCount(): number;
|
|
25
|
+
getPolarEdgesCount(): number;
|
|
26
|
+
getDistance(): number;
|
|
27
|
+
toJSON(stringify?: boolean): JSON;
|
|
28
|
+
toJSONWithPolarStringified(): JSON;
|
|
29
|
+
}
|