raain-model 2.6.10 → 2.6.11

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.
Files changed (210) hide show
  1. package/README.md +2 -12
  2. package/RELEASE_PROCESS.md +11 -6
  3. package/cartesian/CartesianMeasureValue.d.ts +40 -0
  4. package/{src/cartesian/CartesianMeasureValue.ts → cartesian/CartesianMeasureValue.js} +41 -73
  5. package/cartesian/CartesianMeasureValue.js.map +1 -0
  6. package/cartesian/CartesianTools.d.ts +32 -0
  7. package/{src/cartesian/CartesianTools.ts → cartesian/CartesianTools.js} +69 -130
  8. package/cartesian/CartesianTools.js.map +1 -0
  9. package/cartesian/CartesianValue.d.ts +14 -0
  10. package/cartesian/CartesianValue.js +17 -0
  11. package/cartesian/CartesianValue.js.map +1 -0
  12. package/cartesian/EarthMap.d.ts +5 -0
  13. package/cartesian/EarthMap.js +3 -0
  14. package/cartesian/EarthMap.js.map +1 -0
  15. package/cartesian/ICartesianMeasureValue.d.ts +23 -0
  16. package/cartesian/ICartesianMeasureValue.js +3 -0
  17. package/cartesian/ICartesianMeasureValue.js.map +1 -0
  18. package/cartesian/LatLng.d.ts +16 -0
  19. package/cartesian/LatLng.js +34 -0
  20. package/cartesian/LatLng.js.map +1 -0
  21. package/cartesian/RadarCartesianMeasureValue.d.ts +17 -0
  22. package/cartesian/RadarCartesianMeasureValue.js +22 -0
  23. package/cartesian/RadarCartesianMeasureValue.js.map +1 -0
  24. package/cartesian/RainCartesianMeasureValue.d.ts +17 -0
  25. package/cartesian/RainCartesianMeasureValue.js +23 -0
  26. package/cartesian/RainCartesianMeasureValue.js.map +1 -0
  27. package/cartesian/index.js +25 -0
  28. package/cartesian/index.js.map +1 -0
  29. package/gauge/GaugeMeasure.d.ts +20 -0
  30. package/gauge/GaugeMeasure.js +30 -0
  31. package/gauge/GaugeMeasure.js.map +1 -0
  32. package/gauge/GaugeNode.d.ts +85 -0
  33. package/{src/gauge/GaugeNode.ts → gauge/GaugeNode.js} +20 -48
  34. package/gauge/GaugeNode.js.map +1 -0
  35. package/gauge/GaugeNodeMap.d.ts +24 -0
  36. package/gauge/GaugeNodeMap.js +40 -0
  37. package/gauge/GaugeNodeMap.js.map +1 -0
  38. package/gauge/index.js +20 -0
  39. package/gauge/index.js.map +1 -0
  40. package/index.js +24 -0
  41. package/index.js.map +1 -0
  42. package/organization/EventNode.d.ts +22 -0
  43. package/organization/EventNode.js +30 -0
  44. package/organization/EventNode.js.map +1 -0
  45. package/organization/IVersion.js +3 -0
  46. package/organization/IVersion.js.map +1 -0
  47. package/organization/Link.d.ts +16 -0
  48. package/{src/organization/Link.ts → organization/Link.js} +15 -15
  49. package/organization/Link.js.map +1 -0
  50. package/organization/Measure.d.ts +22 -0
  51. package/organization/Measure.js +45 -0
  52. package/organization/Measure.js.map +1 -0
  53. package/organization/PeopleNode.d.ts +18 -0
  54. package/{src/organization/PeopleNode.ts → organization/PeopleNode.js} +10 -20
  55. package/organization/PeopleNode.js.map +1 -0
  56. package/organization/RaainNode.d.ts +91 -0
  57. package/{src/organization/RaainNode.ts → organization/RaainNode.js} +38 -63
  58. package/organization/RaainNode.js.map +1 -0
  59. package/organization/TeamNode.d.ts +63 -0
  60. package/{src/organization/TeamNode.ts → organization/TeamNode.js} +13 -36
  61. package/organization/TeamNode.js.map +1 -0
  62. package/organization/index.js +24 -0
  63. package/organization/index.js.map +1 -0
  64. package/package.json +1 -1
  65. package/polar/AbstractPolarMeasureValue.d.ts +29 -0
  66. package/{src/polar/AbstractPolarMeasureValue.ts → polar/AbstractPolarMeasureValue.js} +32 -58
  67. package/polar/AbstractPolarMeasureValue.js.map +1 -0
  68. package/polar/IPolarMeasureValue.d.ts +19 -0
  69. package/polar/IPolarMeasureValue.js +3 -0
  70. package/polar/IPolarMeasureValue.js.map +1 -0
  71. package/polar/MeasureValuePolarContainer.d.ts +19 -0
  72. package/{src/polar/MeasureValuePolarContainer.ts → polar/MeasureValuePolarContainer.js} +13 -29
  73. package/polar/MeasureValuePolarContainer.js.map +1 -0
  74. package/polar/PolarFilter.d.ts +16 -0
  75. package/polar/PolarFilter.js +45 -0
  76. package/polar/PolarFilter.js.map +1 -0
  77. package/polar/PolarMeasureValue.d.ts +51 -0
  78. package/{src/polar/PolarMeasureValue.ts → polar/PolarMeasureValue.js} +62 -125
  79. package/polar/PolarMeasureValue.js.map +1 -0
  80. package/polar/PolarMeasureValueMap.d.ts +45 -0
  81. package/{src/polar/PolarMeasureValueMap.ts → polar/PolarMeasureValueMap.js} +88 -165
  82. package/polar/PolarMeasureValueMap.js.map +1 -0
  83. package/polar/PolarValue.d.ts +10 -0
  84. package/polar/PolarValue.js +12 -0
  85. package/polar/PolarValue.js.map +1 -0
  86. package/polar/RadarPolarMeasureValue.d.ts +27 -0
  87. package/{src/polar/RadarPolarMeasureValue.ts → polar/RadarPolarMeasureValue.js} +21 -34
  88. package/polar/RadarPolarMeasureValue.js.map +1 -0
  89. package/polar/RainPolarMeasureValue.d.ts +20 -0
  90. package/polar/RainPolarMeasureValue.js +42 -0
  91. package/polar/RainPolarMeasureValue.js.map +1 -0
  92. package/polar/index.js +25 -0
  93. package/polar/index.js.map +1 -0
  94. package/quality/QualityPoint.d.ts +37 -0
  95. package/{src/quality/QualityPoint.ts → quality/QualityPoint.js} +33 -56
  96. package/quality/QualityPoint.js.map +1 -0
  97. package/quality/SpeedMatrix.d.ts +83 -0
  98. package/{src/quality/SpeedMatrix.ts → quality/SpeedMatrix.js} +76 -117
  99. package/quality/SpeedMatrix.js.map +1 -0
  100. package/quality/SpeedMatrixContainer.d.ts +102 -0
  101. package/{src/quality/SpeedMatrixContainer.ts → quality/SpeedMatrixContainer.js} +103 -210
  102. package/quality/SpeedMatrixContainer.js.map +1 -0
  103. package/quality/history/CartesianGaugeHistory.d.ts +15 -0
  104. package/quality/history/CartesianGaugeHistory.js +14 -0
  105. package/quality/history/CartesianGaugeHistory.js.map +1 -0
  106. package/quality/history/CartesianRainHistory.d.ts +9 -0
  107. package/quality/history/CartesianRainHistory.js +11 -0
  108. package/quality/history/CartesianRainHistory.js.map +1 -0
  109. package/quality/history/PositionHistory.d.ts +20 -0
  110. package/quality/history/PositionHistory.js +17 -0
  111. package/quality/history/PositionHistory.js.map +1 -0
  112. package/{src/quality/index.ts → quality/index.d.ts} +0 -3
  113. package/quality/index.js +26 -0
  114. package/quality/index.js.map +1 -0
  115. package/quality/position/Position.d.ts +22 -0
  116. package/quality/position/Position.js +50 -0
  117. package/quality/position/Position.js.map +1 -0
  118. package/quality/position/PositionValue.d.ts +9 -0
  119. package/quality/position/PositionValue.js +12 -0
  120. package/quality/position/PositionValue.js.map +1 -0
  121. package/quality/tools/QualityTools.d.ts +9 -0
  122. package/{src/quality/tools/QualityTools.ts → quality/tools/QualityTools.js} +17 -18
  123. package/quality/tools/QualityTools.js.map +1 -0
  124. package/radar/RadarMeasure.d.ts +19 -0
  125. package/radar/RadarMeasure.js +30 -0
  126. package/radar/RadarMeasure.js.map +1 -0
  127. package/radar/RadarNode.d.ts +30 -0
  128. package/{src/radar/RadarNode.ts → radar/RadarNode.js} +19 -41
  129. package/radar/RadarNode.js.map +1 -0
  130. package/radar/RadarNodeMap.d.ts +26 -0
  131. package/radar/RadarNodeMap.js +44 -0
  132. package/radar/RadarNodeMap.js.map +1 -0
  133. package/radar/index.js +20 -0
  134. package/radar/index.js.map +1 -0
  135. package/rain/MergeStrategy.d.ts +13 -0
  136. package/rain/MergeStrategy.js +11 -0
  137. package/rain/MergeStrategy.js.map +1 -0
  138. package/rain/RainComputation.d.ts +42 -0
  139. package/rain/RainComputation.js +65 -0
  140. package/rain/RainComputation.js.map +1 -0
  141. package/rain/RainComputationAbstract.d.ts +73 -0
  142. package/{src/rain/RainComputationAbstract.ts → rain/RainComputationAbstract.js} +69 -135
  143. package/rain/RainComputationAbstract.js.map +1 -0
  144. package/rain/RainComputationMap.d.ts +97 -0
  145. package/{src/rain/RainComputationMap.ts → rain/RainComputationMap.js} +22 -55
  146. package/rain/RainComputationMap.js.map +1 -0
  147. package/rain/RainComputationQuality.d.ts +40 -0
  148. package/{src/rain/RainComputationQuality.ts → rain/RainComputationQuality.js} +42 -80
  149. package/rain/RainComputationQuality.js.map +1 -0
  150. package/rain/RainMeasure.d.ts +17 -0
  151. package/rain/RainMeasure.js +18 -0
  152. package/rain/RainMeasure.js.map +1 -0
  153. package/rain/RainNode.d.ts +46 -0
  154. package/{src/rain/RainNode.ts → rain/RainNode.js} +72 -117
  155. package/rain/RainNode.js.map +1 -0
  156. package/rain/index.js +23 -0
  157. package/rain/index.js.map +1 -0
  158. package/.cursorignore +0 -10
  159. package/.github/workflows/ci.yml +0 -29
  160. package/LICENSE +0 -21
  161. package/RELEASE.md +0 -19
  162. package/specs/REQUIREMENTS.md +0 -42
  163. package/specs/TECHNICAL.md +0 -57
  164. package/specs/cartesian/Cartesian.spec.ts +0 -82
  165. package/specs/cartesian/CartesianTools.spec.ts +0 -121
  166. package/specs/gauge/Gauge.spec.ts +0 -39
  167. package/specs/organization/Organization.spec.ts +0 -38
  168. package/specs/polar/Polar.spec.ts +0 -267
  169. package/specs/quality/Position.spec.ts +0 -18
  170. package/specs/quality/QualityPointEdgeCases.spec.ts +0 -215
  171. package/specs/quality/QualityTools.spec.ts +0 -67
  172. package/specs/quality/SpeedMatrix.spec.ts +0 -214
  173. package/specs/radar/Radar.spec.ts +0 -129
  174. package/specs/rain/Rain.spec.ts +0 -334
  175. package/specs/tsconfig.json +0 -12
  176. package/src/cartesian/CartesianValue.ts +0 -26
  177. package/src/cartesian/EarthMap.ts +0 -5
  178. package/src/cartesian/ICartesianMeasureValue.ts +0 -22
  179. package/src/cartesian/LatLng.ts +0 -43
  180. package/src/cartesian/RadarCartesianMeasureValue.ts +0 -32
  181. package/src/cartesian/RainCartesianMeasureValue.ts +0 -32
  182. package/src/gauge/GaugeMeasure.ts +0 -42
  183. package/src/gauge/GaugeNodeMap.ts +0 -55
  184. package/src/organization/EventNode.ts +0 -43
  185. package/src/organization/Measure.ts +0 -61
  186. package/src/polar/IPolarMeasureValue.ts +0 -21
  187. package/src/polar/PolarFilter.ts +0 -46
  188. package/src/polar/PolarValue.ts +0 -16
  189. package/src/polar/RainPolarMeasureValue.ts +0 -57
  190. package/src/quality/history/CartesianGaugeHistory.ts +0 -23
  191. package/src/quality/history/CartesianRainHistory.ts +0 -15
  192. package/src/quality/history/PositionHistory.ts +0 -31
  193. package/src/quality/position/Position.ts +0 -59
  194. package/src/quality/position/PositionValue.ts +0 -15
  195. package/src/radar/RadarMeasure.ts +0 -41
  196. package/src/radar/RadarNodeMap.ts +0 -61
  197. package/src/rain/MergeStrategy.ts +0 -15
  198. package/src/rain/RainComputation.ts +0 -96
  199. package/src/rain/RainMeasure.ts +0 -25
  200. package/tsconfig.json +0 -17
  201. package/tslint.json +0 -79
  202. package/typedoc.json +0 -31
  203. /package/{src/cartesian/index.ts → cartesian/index.d.ts} +0 -0
  204. /package/{src/gauge/index.ts → gauge/index.d.ts} +0 -0
  205. /package/{src/index.ts → index.d.ts} +0 -0
  206. /package/{src/organization/IVersion.ts → organization/IVersion.d.ts} +0 -0
  207. /package/{src/organization/index.ts → organization/index.d.ts} +0 -0
  208. /package/{src/polar/index.ts → polar/index.d.ts} +0 -0
  209. /package/{src/radar/index.ts → radar/index.d.ts} +0 -0
  210. /package/{src/rain/index.ts → rain/index.d.ts} +0 -0
@@ -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,20 @@
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?: any): any;
19
+ protected getLinkType(): string;
20
+ }
@@ -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,OAAa;QACvB,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,85 @@
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(): any;
79
+ /**
80
+ * Returns the link type for gauge nodes.
81
+ *
82
+ * @returns The string 'gauge'
83
+ */
84
+ protected getLinkType(): string;
85
+ }
@@ -1,5 +1,7 @@
1
- import {Link, RaainNode, TeamNode} from '../organization';
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
- export class GaugeNode extends RaainNode {
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,61 @@ 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
- public setConfiguration(configuration: string | any) {
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
- public getConfiguration(): any {
69
+ getConfiguration() {
102
70
  try {
103
71
  return JSON.parse(this.configurationAsJSON);
104
- } catch (e) {
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
- public toJSON(): any {
82
+ toJSON() {
83
+ var _a;
115
84
  const json = super.toJSON();
116
85
  json['name'] = this.name;
117
86
  json['description'] = this.description;
118
87
  json['latitude'] = this.latitude;
119
88
  json['longitude'] = this.longitude;
120
- json['team'] = this.team?.id || this.team;
89
+ json['team'] = ((_a = this.team) === null || _a === void 0 ? void 0 : _a.id) || this.team;
121
90
  json['configurationAsJSON'] = this.configurationAsJSON;
122
91
  return json;
123
92
  }
124
-
125
93
  /**
126
94
  * Returns the link type for gauge nodes.
127
95
  *
128
96
  * @returns The string 'gauge'
129
97
  */
130
- protected getLinkType(): string {
98
+ getLinkType() {
131
99
  return GaugeNode.TYPE;
132
100
  }
133
101
  }
102
+ exports.GaugeNode = GaugeNode;
103
+ /** Type identifier for gauge nodes */
104
+ GaugeNode.TYPE = 'gauge';
105
+ //# 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;QAC5B,IAAI,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC;QACzB,IAAI,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,WAAW,CAAC;QACvC,IAAI,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC;QACjC,IAAI,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC;QACnC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAA,MAAA,IAAI,CAAC,IAAI,0CAAE,EAAE,KAAI,IAAI,CAAC,IAAI,CAAC;QAC1C,IAAI,CAAC,qBAAqB,CAAC,GAAG,IAAI,CAAC,mBAAmB,CAAC;QACvD,OAAO,IAAI,CAAC;IAChB,CAAC;IAED;;;;OAIG;IACO,WAAW;QACjB,OAAO,SAAS,CAAC,IAAI,CAAC;IAC1B,CAAC;;AA9GL,8BA+GC;AA7GG,sCAAsC;AACxB,cAAI,GAAG,OAAO,CAAC"}
@@ -0,0 +1,24 @@
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(): any;
22
+ setMapData(mapData: GaugeMeasure[] | string): void;
23
+ getMapData(): GaugeMeasure[];
24
+ }
@@ -0,0 +1,40 @@
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
+ json.map = this.map;
16
+ return json;
17
+ }
18
+ setMapData(mapData) {
19
+ if (!mapData) {
20
+ return;
21
+ }
22
+ let map = mapData;
23
+ try {
24
+ if (typeof (mapData) !== 'string') {
25
+ map = JSON.stringify(mapData);
26
+ }
27
+ }
28
+ catch (e) {
29
+ }
30
+ this.map = map.toString();
31
+ }
32
+ getMapData() {
33
+ if (!this.map) {
34
+ return [];
35
+ }
36
+ return JSON.parse(this.map);
37
+ }
38
+ }
39
+ exports.GaugeNodeMap = GaugeNodeMap;
40
+ //# 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,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC;QACpB,OAAO,IAAI,CAAC;IAChB,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;AA/CD,oCA+CC"}
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,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(): any;
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,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=IVersion.js.map
@@ -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
+ }
@@ -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,34 +8,31 @@
5
8
  * href: string // like "https://../rains/2"
6
9
  * },...]
7
10
  */
8
- export class Link {
9
- constructor(
10
- public rel: string,
11
- public href: string
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
- return object?.rel && object?.href;
16
+ static isCloneable(object) {
17
+ return (object === null || object === void 0 ? void 0 : object.rel) && (object === null || object === void 0 ? void 0 : object.href);
17
18
  }
18
-
19
- public static clone(object: any): Link | null {
20
- if (!object?.rel || !object?.href) {
19
+ static clone(object) {
20
+ if (!(object === null || object === void 0 ? void 0 : object.rel) || !(object === null || object === void 0 ? void 0 : object.href)) {
21
21
  return null;
22
22
  }
23
23
  return new Link(object.rel, object.href);
24
24
  }
25
-
26
- public getId(): string {
25
+ getId() {
27
26
  const urls = this.href.split('/');
28
27
  // can be enforced : verify rel in -2 urls ?...
29
28
  return urls[urls.length - 1];
30
29
  }
31
-
32
- public getLinkType(): string {
30
+ getLinkType() {
33
31
  // const urls = this.href.split('/');
34
32
  // can be enforced : verify rel in -2 urls ?...
35
33
  // return urls[1].substring(0, urls[1].length - 1);
36
34
  return this.rel;
37
35
  }
38
36
  }
37
+ exports.Link = Link;
38
+ //# 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,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,GAAG,MAAI,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,IAAI,CAAA,CAAC;IACvC,CAAC;IAEM,MAAM,CAAC,KAAK,CAAC,MAAW;QAC3B,IAAI,CAAC,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,GAAG,CAAA,IAAI,CAAC,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,IAAI,CAAA,EAAE,CAAC;YAChC,OAAO,IAAI,CAAC;QAChB,CAAC;QACD,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,qCAAqC;QACrC,+CAA+C;QAC/C,mDAAmD;QACnD,OAAO,IAAI,CAAC,GAAG,CAAC;IACpB,CAAC;CACJ;AA9BD,oBA8BC"}
@@ -0,0 +1,22 @@
1
+ import { IPolarMeasureValue } from '../polar';
2
+ import { RaainNode } from './RaainNode';
3
+ import { ICartesianMeasureValue } from '../cartesian';
4
+ export declare class Measure extends RaainNode {
5
+ date: Date;
6
+ values: IPolarMeasureValue[] | ICartesianMeasureValue[] | number[];
7
+ validity: number;
8
+ private configurationAsJSON;
9
+ constructor(json: {
10
+ id: string;
11
+ values: IPolarMeasureValue[] | ICartesianMeasureValue[] | number[];
12
+ date?: Date;
13
+ validity?: number;
14
+ configurationAsJSON?: string;
15
+ version?: string;
16
+ });
17
+ setConfiguration(configuration: string | any): void;
18
+ toJSON(options?: {
19
+ removeValues?: boolean;
20
+ }): any;
21
+ getConfiguration(): any;
22
+ }
@@ -0,0 +1,45 @@
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
+ if (conf) {
21
+ this.configurationAsJSON = JSON.stringify(conf);
22
+ }
23
+ }
24
+ toJSON(options = {}) {
25
+ var _a;
26
+ const json = super.toJSON();
27
+ json['date'] = (_a = this.date) === null || _a === void 0 ? void 0 : _a.toISOString();
28
+ json['validity'] = this.validity;
29
+ json['configurationAsJSON'] = this.configurationAsJSON;
30
+ if (!(options === null || options === void 0 ? void 0 : options.removeValues)) {
31
+ json['values'] = this.values;
32
+ }
33
+ return json;
34
+ }
35
+ getConfiguration() {
36
+ try {
37
+ return JSON.parse(this.configurationAsJSON);
38
+ }
39
+ catch (e) {
40
+ }
41
+ return null;
42
+ }
43
+ }
44
+ exports.Measure = Measure;
45
+ //# 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;IASlC,YAAY,IAOC;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,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;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,CAAC;YACzB,IAAI,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;QACjC,CAAC;QACD,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,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;CACJ;AAxDD,0BAwDC"}