raain-model 3.1.13 → 3.1.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -7,6 +7,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [3.1.14] - 2025-12-14
11
+
12
+ ### Added
13
+
14
+ - `RaainApiRainsFindOneTimeframeCumulativeRequest.windowInMinutes` optional query parameter
15
+ - `RainComputationCumulative.toJSON()` now includes `windowInMinutes` in output
16
+
17
+ ## [3.1.13] - 2025-12-11
18
+
10
19
  ### Added
11
20
 
12
21
  - RaainApiRainsCumulativeCumulativesComparesRequest and RaainApiRainsCumulativeCumulativesComparesResponse
@@ -94,7 +103,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
94
103
 
95
104
  ### Changed
96
105
 
97
- - CartesianMeasureValue.setCartesianValues with mergeStrategy; breaking change => 3.1.x
106
+ - CartesianMeasureValue.setCartesianValues with mergeStrategy; **breaking** change 3.1.x
98
107
 
99
108
  ## [3.0.37] - 2025-10-27
100
109
 
@@ -564,7 +573,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
564
573
  - Initial release
565
574
  - First extracts from RAAIN services
566
575
 
567
- [Unreleased]: https://github.com/raainio/raain-model/compare/v3.1.11...HEAD
576
+ [Unreleased]: https://github.com/raainio/raain-model/compare/v3.1.14...HEAD
577
+
578
+ [3.1.14]: https://github.com/raainio/raain-model/compare/v3.1.13...v3.1.14
579
+
580
+ [3.1.13]: https://github.com/raainio/raain-model/compare/v3.1.12...v3.1.13
581
+
582
+ [3.1.12]: https://github.com/raainio/raain-model/compare/v3.1.11...v3.1.12
568
583
 
569
584
  [3.1.11]: https://github.com/raainio/raain-model/compare/v3.1.10...v3.1.11
570
585
 
@@ -5,4 +5,5 @@ export interface RaainApiRainsFindOneTimeframeCumulativeRequest {
5
5
  provider: string;
6
6
  timeStepInMinutes: string;
7
7
  forced?: string;
8
+ windowInMinutes?: string;
8
9
  }
package/bpInfo.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.bpInfo = void 0;
4
- exports.bpInfo = { version: 'v3.1.13' };
4
+ exports.bpInfo = { version: 'v3.1.14' };
5
5
  //# sourceMappingURL=bpInfo.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "raain-model",
3
- "version": "3.1.13",
3
+ "version": "3.1.14",
4
4
  "author": "contact@radartorain.com",
5
5
  "homepage": "https://github.com/raainio/raain-model",
6
6
  "description": "radartorain.com api model",
@@ -1,7 +1,6 @@
1
- import { Link, RaainNode } from '../organization';
1
+ import { Link, RaainNode, RaainNodeType } from '../organization';
2
2
  import { RainCartesianMeasureValue } from '../cartesian';
3
3
  import { RainComputationAbstract } from './RainComputationAbstract';
4
- import { RaainNodeType } from '../organization/RaainNodeType';
5
4
  /**
6
5
  * @external
7
6
  * - API: /rains/:rainId/cumulatives/:rainComputationCumulativeId
@@ -41,6 +40,7 @@ export declare class RainComputationCumulative extends RainComputationAbstract {
41
40
  }): {
42
41
  provider: string;
43
42
  timeStepInMinutes: number;
43
+ windowInMinutes: number;
44
44
  cumulative: {
45
45
  version: string;
46
46
  cartesianValues: string | import("../cartesian").CartesianValue[];
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.RainComputationCumulative = void 0;
4
+ const organization_1 = require("../organization");
4
5
  const cartesian_1 = require("../cartesian");
5
6
  const RainComputationAbstract_1 = require("./RainComputationAbstract");
6
- const RaainNodeType_1 = require("../organization/RaainNodeType");
7
7
  /**
8
8
  * @external
9
9
  * - API: /rains/:rainId/cumulatives/:rainComputationCumulativeId
@@ -35,6 +35,7 @@ class RainComputationCumulative extends RainComputationAbstract_1.RainComputatio
35
35
  ...json,
36
36
  provider: this.provider,
37
37
  timeStepInMinutes: this.timeStepInMinutes,
38
+ windowInMinutes: this.windowInMinutes,
38
39
  cumulative: (_a = this._cumulative) === null || _a === void 0 ? void 0 : _a.toJSON(options),
39
40
  };
40
41
  }
@@ -43,5 +44,5 @@ class RainComputationCumulative extends RainComputationAbstract_1.RainComputatio
43
44
  }
44
45
  }
45
46
  exports.RainComputationCumulative = RainComputationCumulative;
46
- RainComputationCumulative.TYPE = RaainNodeType_1.RaainNodeType.RainComputationCumulative;
47
+ RainComputationCumulative.TYPE = organization_1.RaainNodeType.RainComputationCumulative;
47
48
  //# sourceMappingURL=RainComputationCumulative.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"RainComputationCumulative.js","sourceRoot":"","sources":["../../src/rain/RainComputationCumulative.ts"],"names":[],"mappings":";;;AACA,4CAAuD;AACvD,uEAAkE;AAClE,iEAA4D;AAE5D;;;;GAIG;AACH,MAAa,yBAA0B,SAAQ,iDAAuB;IAOlE,YAAY,IAqBX;QACG,KAAK,CAAC,IAAI,CAAC,CAAC;QACZ,IAAI,CAAC,iBAAiB,GAAG,IAAI,CAAC,iBAAiB,CAAC;QAChD,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;QAC9B,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC;QAClC,IAAI,CAAC,eAAe;YAChB,OAAO,IAAI,CAAC,eAAe,KAAK,WAAW;gBACvC,CAAC,CAAC,IAAI,CAAC,eAAe;gBACtB,CAAC,CAAC,IAAI,CAAC,iBAAiB,CAAC;IACrC,CAAC;IAID,IAAW,UAAU;QACjB,OAAO,IAAI,CAAC,WAAW,CAAC;IAC5B,CAAC;IAED,IAAW,UAAU,CAAC,UAAiD;QACnE,IAAI,UAAU,EAAE,CAAC;YACb,IAAI,CAAC,WAAW,GAAG,IAAI,qCAAyB,CAAC,UAAiB,CAAC,CAAC;QACxE,CAAC;IACL,CAAC;IAEM,MAAM,CAAC,OAAO,GAAG,EAAC,SAAS,EAAE,KAAK,EAAC;;QACtC,MAAM,IAAI,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC;QAC5B,OAAO;YACH,GAAG,IAAI;YACP,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,iBAAiB,EAAE,IAAI,CAAC,iBAAiB;YACzC,UAAU,EAAE,MAAA,IAAI,CAAC,WAAW,0CAAE,MAAM,CAAC,OAAO,CAAC;SAChD,CAAC;IACN,CAAC;IAES,WAAW;QACjB,OAAO,yBAAyB,CAAC,IAAI,CAAC;IAC1C,CAAC;;AA/DL,8DAgEC;AA/DiB,8BAAI,GAAG,6BAAa,CAAC,yBAAyB,CAAC"}
1
+ {"version":3,"file":"RainComputationCumulative.js","sourceRoot":"","sources":["../../src/rain/RainComputationCumulative.ts"],"names":[],"mappings":";;;AAAA,kDAA+D;AAC/D,4CAAuD;AACvD,uEAAkE;AAElE;;;;GAIG;AACH,MAAa,yBAA0B,SAAQ,iDAAuB;IAOlE,YAAY,IAqBX;QACG,KAAK,CAAC,IAAI,CAAC,CAAC;QACZ,IAAI,CAAC,iBAAiB,GAAG,IAAI,CAAC,iBAAiB,CAAC;QAChD,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;QAC9B,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC;QAClC,IAAI,CAAC,eAAe;YAChB,OAAO,IAAI,CAAC,eAAe,KAAK,WAAW;gBACvC,CAAC,CAAC,IAAI,CAAC,eAAe;gBACtB,CAAC,CAAC,IAAI,CAAC,iBAAiB,CAAC;IACrC,CAAC;IAID,IAAW,UAAU;QACjB,OAAO,IAAI,CAAC,WAAW,CAAC;IAC5B,CAAC;IAED,IAAW,UAAU,CAAC,UAAiD;QACnE,IAAI,UAAU,EAAE,CAAC;YACb,IAAI,CAAC,WAAW,GAAG,IAAI,qCAAyB,CAAC,UAAiB,CAAC,CAAC;QACxE,CAAC;IACL,CAAC;IAEM,MAAM,CAAC,OAAO,GAAG,EAAC,SAAS,EAAE,KAAK,EAAC;;QACtC,MAAM,IAAI,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC;QAC5B,OAAO;YACH,GAAG,IAAI;YACP,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,iBAAiB,EAAE,IAAI,CAAC,iBAAiB;YACzC,eAAe,EAAE,IAAI,CAAC,eAAe;YACrC,UAAU,EAAE,MAAA,IAAI,CAAC,WAAW,0CAAE,MAAM,CAAC,OAAO,CAAC;SAChD,CAAC;IACN,CAAC;IAES,WAAW;QACjB,OAAO,yBAAyB,CAAC,IAAI,CAAC;IAC1C,CAAC;;AAhEL,8DAiEC;AAhEiB,8BAAI,GAAG,4BAAa,CAAC,yBAAyB,CAAC"}