raain-model 3.1.6 → 3.1.9
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 +33 -1
- package/README.md +100 -29
- package/api/common/BuildQueryString.d.ts +1 -0
- package/api/common/BuildQueryString.js +17 -0
- package/api/common/BuildQueryString.js.map +1 -0
- package/api/common/Pagination.d.ts +11 -10
- package/api/common/index.d.ts +1 -0
- package/api/common/index.js +1 -0
- package/api/common/index.js.map +1 -1
- package/api/gauges/RaainApiGaugesFindAllMineRequest.d.ts +4 -2
- package/api/gauges/RaainApiGaugesFindAllMineResponse.d.ts +2 -6
- package/api/gauges/RaainApiGaugesFindOneResponse.d.ts +2 -0
- package/api/gauges/RaainApiGaugesFindOneResponse.js +3 -0
- package/api/gauges/RaainApiGaugesFindOneResponse.js.map +1 -0
- package/api/index.d.ts +18 -0
- package/api/index.js +18 -0
- package/api/index.js.map +1 -1
- package/api/notifications/RaainApiNotificationsAddResponse.d.ts +2 -0
- package/api/notifications/RaainApiNotificationsAddResponse.js +3 -0
- package/api/notifications/RaainApiNotificationsAddResponse.js.map +1 -0
- package/api/notifications/RaainApiNotificationsFindAllMineResponse.d.ts +5 -0
- package/api/notifications/RaainApiNotificationsFindAllMineResponse.js +3 -0
- package/api/notifications/RaainApiNotificationsFindAllMineResponse.js.map +1 -0
- package/api/notifications/RaainApiNotificationsFindOneResponse.d.ts +2 -0
- package/api/notifications/RaainApiNotificationsFindOneResponse.js +3 -0
- package/api/notifications/RaainApiNotificationsFindOneResponse.js.map +1 -0
- package/api/radars/RaainApiRadarsFindAllMineRequest.d.ts +1 -1
- package/api/radars/RaainApiRadarsFindAllMineResponse.d.ts +3 -7
- package/api/radars/RaainApiRadarsFindOneResponse.d.ts +2 -0
- package/api/radars/RaainApiRadarsFindOneResponse.js +3 -0
- package/api/radars/RaainApiRadarsFindOneResponse.js.map +1 -0
- package/api/radars/RaainApiRadarsUpsertMeasureRequestBody.d.ts +3 -1
- package/api/rains/RaainApiRainsCumulativeCartesianMapRequest.d.ts +3 -0
- package/api/rains/RaainApiRainsCumulativeCartesianMapRequest.js +3 -0
- package/api/rains/RaainApiRainsCumulativeCartesianMapRequest.js.map +1 -0
- package/api/rains/RaainApiRainsCumulativeCartesianMapResponse.d.ts +4 -0
- package/api/rains/RaainApiRainsCumulativeCartesianMapResponse.js +3 -0
- package/api/rains/RaainApiRainsCumulativeCartesianMapResponse.js.map +1 -0
- package/api/rains/RaainApiRainsCumulativeComparesRequest.d.ts +3 -0
- package/api/rains/RaainApiRainsCumulativeComparesRequest.js +3 -0
- package/api/rains/RaainApiRainsCumulativeComparesRequest.js.map +1 -0
- package/api/rains/RaainApiRainsCumulativeComparesResponse.d.ts +4 -0
- package/api/rains/RaainApiRainsCumulativeComparesResponse.js +3 -0
- package/api/rains/RaainApiRainsCumulativeComparesResponse.js.map +1 -0
- package/api/rains/RaainApiRainsCumulativeCumulativeResponse.d.ts +4 -0
- package/api/rains/RaainApiRainsCumulativeCumulativeResponse.js +3 -0
- package/api/rains/RaainApiRainsCumulativeCumulativeResponse.js.map +1 -0
- package/api/rains/RaainApiRainsCumulativesFindOneResponse.d.ts +2 -0
- package/api/rains/RaainApiRainsCumulativesFindOneResponse.js +3 -0
- package/api/rains/RaainApiRainsCumulativesFindOneResponse.js.map +1 -0
- package/api/rains/RaainApiRainsFindAllMineRequest.d.ts +4 -4
- package/api/rains/RaainApiRainsFindAllMineResponse.d.ts +3 -7
- package/api/rains/RaainApiRainsFindOneTimeframeCumulativeRequest.d.ts +1 -0
- package/api/rains/RaainApiRainsFindOneTimeframeCumulativeResponse.d.ts +1 -1
- package/api/rains/RaainApiRainsGetCountsResponse.d.ts +17 -0
- package/api/rains/RaainApiRainsGetCountsResponse.js +3 -0
- package/api/rains/RaainApiRainsGetCountsResponse.js.map +1 -0
- package/api/rains/RaainApiRainsIndicatorsRequest.d.ts +3 -0
- package/api/rains/RaainApiRainsIndicatorsRequest.js +3 -0
- package/api/rains/RaainApiRainsIndicatorsRequest.js.map +1 -0
- package/api/rains/RaainApiRainsIndicatorsResponse.d.ts +15 -0
- package/api/rains/RaainApiRainsIndicatorsResponse.js +3 -0
- package/api/rains/RaainApiRainsIndicatorsResponse.js.map +1 -0
- package/api/rains/RaainApiRainsProgressResponse.d.ts +3 -0
- package/api/rains/RaainApiRainsProgressResponse.js +3 -0
- package/api/rains/RaainApiRainsProgressResponse.js.map +1 -0
- package/api/rains/RaainApiRainsProvidersResponse.d.ts +4 -0
- package/api/rains/RaainApiRainsProvidersResponse.js +3 -0
- package/api/rains/RaainApiRainsProvidersResponse.js.map +1 -0
- package/api/teams/RaainApiTeamsFindAllMineRequest.d.ts +1 -1
- package/api/teams/RaainApiTeamsFindAllMineResponse.d.ts +5 -0
- package/api/teams/RaainApiTeamsFindAllMineResponse.js +3 -0
- package/api/teams/RaainApiTeamsFindAllMineResponse.js.map +1 -0
- package/api/teams/RaainApiTeamsFindOneResponse.d.ts +2 -0
- package/api/teams/RaainApiTeamsFindOneResponse.js +3 -0
- package/api/teams/RaainApiTeamsFindOneResponse.js.map +1 -0
- package/bpInfo.js +1 -1
- package/gauge/GaugeMeasure.d.ts +1 -1
- package/organization/EventNode.d.ts +2 -2
- package/organization/EventNode.js +2 -2
- package/organization/EventNode.js.map +1 -1
- package/organization/Measure.d.ts +1 -1
- package/organization/RaainNode.d.ts +0 -5
- package/organization/RaainNode.js +0 -5
- package/organization/RaainNode.js.map +1 -1
- package/package.json +1 -1
- package/polar/PolarMeasureValueMap.js +1 -1
- package/polar/PolarMeasureValueMap.js.map +1 -1
- package/quality/QualityIndicatorMethod.d.ts +24 -0
- package/quality/QualityIndicatorMethod.js +33 -0
- package/quality/QualityIndicatorMethod.js.map +1 -0
- package/quality/QualityPoint.d.ts +2 -2
- package/quality/QualityPoint.js +7 -4
- package/quality/QualityPoint.js.map +1 -1
- package/quality/SpeedMatrix.d.ts +34 -4
- package/quality/SpeedMatrix.js +212 -10
- package/quality/SpeedMatrix.js.map +1 -1
- package/quality/SpeedMatrixContainer.d.ts +16 -8
- package/quality/SpeedMatrixContainer.js +30 -84
- package/quality/SpeedMatrixContainer.js.map +1 -1
- package/quality/history/CartesianGaugeHistory.d.ts +1 -1
- package/quality/history/CartesianRainHistory.d.ts +1 -1
- package/quality/history/CartesianRainHistory.js.map +1 -1
- package/quality/history/PositionHistory.d.ts +1 -1
- package/quality/index.d.ts +1 -0
- package/quality/index.js +1 -0
- package/quality/index.js.map +1 -1
- package/radar/RadarMeasure.d.ts +1 -1
- package/radar/RadarNodeMap.d.ts +1 -1
- package/rain/RainComputation.d.ts +4 -4
- package/rain/RainComputationAbstract.d.ts +4 -4
- package/rain/RainComputationAbstract.js +3 -2
- package/rain/RainComputationAbstract.js.map +1 -1
- package/rain/RainComputationCumulative.d.ts +3 -3
- package/rain/RainComputationMap.d.ts +4 -4
- package/rain/RainComputationQuality.d.ts +4 -4
- package/rain/RainMeasure.d.ts +1 -1
- package/rain/RainSpeed.d.ts +19 -4
- package/rain/RainSpeed.js +22 -7
- package/rain/RainSpeed.js.map +1 -1
- package/rain/RainSpeedMap.d.ts +18 -2
- package/rain/RainSpeedMap.js +7 -0
- package/rain/RainSpeedMap.js.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,7 +7,39 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
### Changed
|
|
11
|
+
|
|
12
|
+
- **BREAKING:** `QualityIndicator` interface updated:
|
|
13
|
+
- Replaced `version` field with `computingVersion` and `qualityVersion` (parsed from `C<version>-Q<version>` format)
|
|
14
|
+
- Added `lastUpdatedAt` field (ISO date string - max createdAt of records in period)
|
|
15
|
+
- Results are now sorted by `lastUpdatedAt` descending (most recent first)
|
|
16
|
+
|
|
17
|
+
## [3.1.8] - 2025-12-05
|
|
18
|
+
|
|
19
|
+
### Changed
|
|
20
|
+
|
|
21
|
+
- Updated API contracts
|
|
22
|
+
|
|
23
|
+
## [3.1.7] - 2025-12-03
|
|
24
|
+
|
|
25
|
+
### Added
|
|
26
|
+
|
|
27
|
+
- `BuildQueryString` utility function for API query parameter serialization
|
|
28
|
+
- `RainSpeedMap.toJSON()` method for proper serialization
|
|
29
|
+
|
|
30
|
+
### Changed
|
|
31
|
+
|
|
32
|
+
- Improved JSON serialization with ISO date strings in `RainSpeed`, `RainSpeedMap`, and `RainComputationAbstract`
|
|
33
|
+
- Constructor flexibility: date fields now accept `Date | string` across multiple classes (`QualityPoint`, `RainSpeed`,
|
|
34
|
+
`RainSpeedMap`, `EventNode`, `RainComputationAbstract`)
|
|
35
|
+
- `RainSpeed` now accepts plain `{lat, lng}` objects in addition to `LatLng` instances for latLngs
|
|
36
|
+
- `RainSpeedMap` constructor accepts serialized `RainSpeed` JSON output
|
|
37
|
+
|
|
38
|
+
### Fixed
|
|
39
|
+
|
|
40
|
+
- `QualityPoint.getTimeDeltaInMinutes()` now handles undefined dates gracefully
|
|
41
|
+
|
|
42
|
+
## [3.1.6] - 2025-12-02
|
|
11
43
|
|
|
12
44
|
### Added
|
|
13
45
|
|
package/README.md
CHANGED
|
@@ -87,43 +87,42 @@ and [API swagger](https://api.sandbox.radartorain.com/v3/docs).
|
|
|
87
87
|
The following table lists which REST API endpoints return or accept which model classes in this library:
|
|
88
88
|
|
|
89
89
|
<!-- MODEL_MAPPING_TABLE_START -->
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
| `/radars`
|
|
94
|
-
| `/radars/:radarId`
|
|
95
|
-
| `/radars/:radarId/measures`
|
|
96
|
-
| `/
|
|
97
|
-
| `/gauges`
|
|
98
|
-
| `/gauges/:gaugeId`
|
|
99
|
-
| `/gauges/:gaugeId
|
|
100
|
-
| `/
|
|
101
|
-
| `/rains`
|
|
102
|
-
| `/rains/:rainId`
|
|
103
|
-
| `/rains/:rainId/cumulatives/:rainComputationCumulativeId`
|
|
104
|
-
| `/rains/:rainId/cumulatives/:rainComputationCumulativeId
|
|
105
|
-
| `/rains/:rainId/cumulatives/:rainComputationCumulativeId/
|
|
106
|
-
| `/
|
|
107
|
-
| `/notifications`
|
|
108
|
-
| `/
|
|
109
|
-
| `/teams`
|
|
110
|
-
| `/teams/:teamId` | `TeamNode` | Get a team by ID |
|
|
111
|
-
|
|
90
|
+
| API endpoint (pattern) | Exposes model class | Notes |
|
|
91
|
+
|------------------------|---------------------|-------|
|
|
92
|
+
| `/radars` | `RadarNode[]` | Search for radars |
|
|
93
|
+
| `/radars/:radarId` | `RadarNode` | Get a radar by ID |
|
|
94
|
+
| `/radars/:radarId/measures` | `RadarMeasure[]` | Get radar measures |
|
|
95
|
+
| `/radars/:radarId/measures/:radarMeasureId` | `RadarMeasure` | Get a radar measure by ID |
|
|
96
|
+
| `/gauges` | `GaugeNode[]` | Search for gauges |
|
|
97
|
+
| `/gauges/:gaugeId` | `GaugeNode` | Get a gauge by ID |
|
|
98
|
+
| `/gauges/:gaugeId?format=cartesian-map` | `GaugeNodeMap` | Get a gauge by ID (format=cartesian-map) |
|
|
99
|
+
| `/gauges/:gaugeId/measures` | `GaugeMeasure[]` | Get gauge measures |
|
|
100
|
+
| `/rains` | `RainNode[]` | Search for rain zones |
|
|
101
|
+
| `/rains/:rainId` | `RainNode` | Get a rain zone by ID |
|
|
102
|
+
| `/rains/:rainId/cumulatives/:rainComputationCumulativeId` | `RainComputationCumulative` | Get a cumulative computation |
|
|
103
|
+
| `/rains/:rainId/cumulatives/:rainComputationCumulativeId?format=cartesian-map` | `RainComputationMap` | Get a cumulative computation (format=cartesian-map) |
|
|
104
|
+
| `/rains/:rainId/cumulatives/:rainComputationCumulativeId/compares` | `RainComputationQuality[]` | Get cumulative quality metrics |
|
|
105
|
+
| `/rains/:rainId/cumulatives/:rainComputationCumulativeId/cumulative/:cumulativeHours` | `RainComputationCumulative` | Get cumulative computation data |
|
|
106
|
+
| `/notifications` | `EventNode[]` | Get all notifications |
|
|
107
|
+
| `/notifications/:notificationId` | `EventNode` | Get a notification by ID |
|
|
108
|
+
| `/teams` | `TeamNode[]` | Search for teams |
|
|
109
|
+
| `/teams/:teamId` | `TeamNode` | Get a team by ID |
|
|
112
110
|
<!-- MODEL_MAPPING_TABLE_END -->
|
|
113
111
|
|
|
114
112
|
**Note**: All endpoints are prefixed with the API version (e.g., `/v3/...`).
|
|
115
113
|
|
|
116
114
|
### API Contracts (`api/`)
|
|
117
115
|
|
|
118
|
-
The `api/` directory provides TypeScript interfaces for API request and response contracts, enabling type-safe API
|
|
116
|
+
The `api/` directory provides TypeScript interfaces for API request and response contracts, enabling type-safe API
|
|
117
|
+
integration.
|
|
119
118
|
|
|
120
119
|
**Contract Types:**
|
|
121
120
|
|
|
122
|
-
| Suffix
|
|
123
|
-
|
|
124
|
-
| `*Request`
|
|
125
|
-
| `*RequestBody`
|
|
126
|
-
| `*Response`
|
|
121
|
+
| Suffix | Purpose | Example |
|
|
122
|
+
|----------------|-------------------------|------------------------------------------|
|
|
123
|
+
| `*Request` | Query parameters (GET) | `RaainApiGaugesFindMeasuresRequest` |
|
|
124
|
+
| `*RequestBody` | Request body (POST/PUT) | `RaainApiGaugesUpsertMeasureRequestBody` |
|
|
125
|
+
| `*Response` | Response body | `RaainApiGaugesFindMeasuresResponse` |
|
|
127
126
|
|
|
128
127
|
**Common Types:**
|
|
129
128
|
|
|
@@ -193,9 +192,81 @@ const gauges: PaginatedResponse<GaugeNode> = await fetch('/v3/gauges').then(r =>
|
|
|
193
192
|
**Quality & Analysis**
|
|
194
193
|
|
|
195
194
|
- `RainComputationQuality`: Quality metrics comparing radar vs gauge
|
|
196
|
-
- `SpeedMatrix`: Quality assessment matrix
|
|
195
|
+
- `SpeedMatrix`: Quality assessment matrix with multiple indicator methods
|
|
196
|
+
- `QualityIndicatorMethod`: Enum for quality calculation strategies
|
|
197
197
|
- `RainSpeed` / `RainSpeedMap`: Rain speed tracking and storage
|
|
198
198
|
|
|
199
|
+
#### Quality Indicator Methods
|
|
200
|
+
|
|
201
|
+
The `SpeedMatrixContainer.getQuality()` method supports multiple methods to assess radar prediction quality against
|
|
202
|
+
gauge measurements:
|
|
203
|
+
|
|
204
|
+
```typescript
|
|
205
|
+
import {QualityIndicatorMethod, SpeedMatrixContainer} from 'raain-model';
|
|
206
|
+
|
|
207
|
+
const container = new SpeedMatrixContainer({matrices: [...]});
|
|
208
|
+
|
|
209
|
+
// Default (NASH_SUTCLIFFE) - returns raw value (0 to 1)
|
|
210
|
+
const nse = container.getQuality();
|
|
211
|
+
|
|
212
|
+
// Use specific method - returns raw value
|
|
213
|
+
const delta = container.getQuality('m1', {
|
|
214
|
+
method: QualityIndicatorMethod.DELTA
|
|
215
|
+
});
|
|
216
|
+
|
|
217
|
+
// With normalize=true - returns 0-100 scale (0=bad, 100=best)
|
|
218
|
+
const normalizedDelta = container.getQuality('m1', {
|
|
219
|
+
method: QualityIndicatorMethod.DELTA,
|
|
220
|
+
normalize: true
|
|
221
|
+
});
|
|
222
|
+
|
|
223
|
+
// With custom threshold for SUCCESS_RATE
|
|
224
|
+
const success = container.getQuality('m1', {
|
|
225
|
+
method: QualityIndicatorMethod.SUCCESS_RATE,
|
|
226
|
+
successThreshold: 0.9 // 90% match required
|
|
227
|
+
});
|
|
228
|
+
|
|
229
|
+
// With custom normalization options
|
|
230
|
+
const customNormalized = container.getQuality('m1', {
|
|
231
|
+
method: QualityIndicatorMethod.RMSE,
|
|
232
|
+
normalize: true,
|
|
233
|
+
normalizationOptions: {rmseMaxRef: 20} // 20 mm/h as max reference
|
|
234
|
+
});
|
|
235
|
+
```
|
|
236
|
+
|
|
237
|
+
**Nash-Sutcliffe Efficiency (NSE)** is particularly useful for hydrology:
|
|
238
|
+
|
|
239
|
+
- **NSE = 1**: Perfect prediction
|
|
240
|
+
- **NSE > 0.7**: Good model
|
|
241
|
+
- **NSE = 0**: Model equals using the mean value
|
|
242
|
+
- **NSE < 0**: Model is worse than just predicting the mean
|
|
243
|
+
|
|
244
|
+
All methods:
|
|
245
|
+
|
|
246
|
+
| Method | Range | Perfect | Description |
|
|
247
|
+
|------------------|----------|---------|-------------------------------------------------|
|
|
248
|
+
| `NASH_SUTCLIFFE` | -∞ → 1 | 1 | Hydrology standard (default) |
|
|
249
|
+
| `DELTA` | 0 → ∞ | 0 | Average absolute difference |
|
|
250
|
+
| `RATIO` | 0 → 1 | 1 | Average of min/max ratio between values |
|
|
251
|
+
| `SUCCESS_RATE` | 0 → 100 | 100 | Percentage of points meeting threshold |
|
|
252
|
+
| `RMSE` | 0 → ∞ | 0 | Root Mean Square Error (penalizes large errors) |
|
|
253
|
+
| `MAPE` | 0 → 100+ | 0 | Mean Absolute Percentage Error |
|
|
254
|
+
|
|
255
|
+
**Normalizing Quality Indicators (0 = bad, 100 = best)**
|
|
256
|
+
|
|
257
|
+
All quality methods can be normalized to a unified 0-100 scale for easier comparison.
|
|
258
|
+
|
|
259
|
+
| Method | Normalization Formula | Default Reference |
|
|
260
|
+
|------------------|------------------------------|-------------------|
|
|
261
|
+
| `SUCCESS_RATE` | value (already 0-100) | - |
|
|
262
|
+
| `RATIO` | value × 100 | - |
|
|
263
|
+
| `NASH_SUTCLIFFE` | clamp(value, 0, 1) × 100 | min clamp: 0 |
|
|
264
|
+
| `DELTA` | 100 - (value / maxRef) × 100 | maxRef: 10 mm/h |
|
|
265
|
+
| `RMSE` | 100 - (value / maxRef) × 100 | maxRef: 10 mm/h |
|
|
266
|
+
| `MAPE` | 100 - (value / maxRef) × 100 | maxRef: 100% |
|
|
267
|
+
|
|
268
|
+
Default reference values are available via `QUALITY_NORMALIZATION_DEFAULTS`.
|
|
269
|
+
|
|
199
270
|
#### 🌍 Coordinate Systems Explained
|
|
200
271
|
|
|
201
272
|
The library supports two coordinate systems for different use cases:
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function BuildQueryString<T extends object | void>(params: T): string;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BuildQueryString = void 0;
|
|
4
|
+
function BuildQueryString(params) {
|
|
5
|
+
if (!params || typeof params !== 'object') {
|
|
6
|
+
return '';
|
|
7
|
+
}
|
|
8
|
+
const queryParams = new URLSearchParams();
|
|
9
|
+
for (const [key, value] of Object.entries(params)) {
|
|
10
|
+
if (value !== undefined && value !== null) {
|
|
11
|
+
queryParams.append(key, String(value));
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
return queryParams.toString();
|
|
15
|
+
}
|
|
16
|
+
exports.BuildQueryString = BuildQueryString;
|
|
17
|
+
//# sourceMappingURL=BuildQueryString.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BuildQueryString.js","sourceRoot":"","sources":["../../../src/api/common/BuildQueryString.ts"],"names":[],"mappings":";;;AAAA,SAAgB,gBAAgB,CAA0B,MAAS;IAC/D,IAAI,CAAC,MAAM,IAAI,OAAO,MAAM,KAAK,QAAQ,EAAE,CAAC;QACxC,OAAO,EAAE,CAAC;IACd,CAAC;IAED,MAAM,WAAW,GAAG,IAAI,eAAe,EAAE,CAAC;IAE1C,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;QAChD,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;YACxC,WAAW,CAAC,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;QAC3C,CAAC;IACL,CAAC;IAED,OAAO,WAAW,CAAC,QAAQ,EAAE,CAAC;AAClC,CAAC;AAdD,4CAcC"}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
export interface PaginationRequest {
|
|
2
|
-
page
|
|
3
|
-
limit
|
|
2
|
+
page?: number;
|
|
3
|
+
limit?: number;
|
|
4
4
|
}
|
|
5
|
-
export interface
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
5
|
+
export interface PaginationResponse {
|
|
6
|
+
pagination: {
|
|
7
|
+
page: number;
|
|
8
|
+
limit: number;
|
|
9
|
+
total: number;
|
|
10
|
+
totalPages: number;
|
|
11
|
+
hasNext: boolean;
|
|
12
|
+
hasPrev: boolean;
|
|
13
|
+
};
|
|
13
14
|
}
|
package/api/common/index.d.ts
CHANGED
package/api/common/index.js
CHANGED
|
@@ -16,4 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./Pagination"), exports);
|
|
18
18
|
__exportStar(require("./ErrorResponse"), exports);
|
|
19
|
+
__exportStar(require("./BuildQueryString"), exports);
|
|
19
20
|
//# sourceMappingURL=index.js.map
|
package/api/common/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/common/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,kDAAgC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/common/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,kDAAgC;AAChC,qDAAmC"}
|
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PaginationResponse } from '../common';
|
|
2
2
|
import { GaugeNode } from '../../gauge';
|
|
3
|
-
export interface RaainApiGaugesFindAllMineResponse extends
|
|
3
|
+
export interface RaainApiGaugesFindAllMineResponse extends PaginationResponse {
|
|
4
4
|
gauges: ReturnType<GaugeNode['toJSON']>[];
|
|
5
|
-
total: number;
|
|
6
|
-
totalPages: number;
|
|
7
|
-
hasNext: boolean;
|
|
8
|
-
hasPrev: boolean;
|
|
9
5
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RaainApiGaugesFindOneResponse.js","sourceRoot":"","sources":["../../../src/api/gauges/RaainApiGaugesFindOneResponse.ts"],"names":[],"mappings":""}
|
package/api/index.d.ts
CHANGED
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
export * from './common';
|
|
2
2
|
export * from './teams/RaainApiTeamsFindAllMineRequest';
|
|
3
|
+
export * from './teams/RaainApiTeamsFindAllMineResponse';
|
|
4
|
+
export * from './teams/RaainApiTeamsFindOneResponse';
|
|
3
5
|
export * from './teams/RaainApiTeamsUpdateRequestBody';
|
|
4
6
|
export * from './radars/RaainApiRadarsFindAllMineRequest';
|
|
5
7
|
export * from './radars/RaainApiRadarsFindAllMineResponse';
|
|
8
|
+
export * from './radars/RaainApiRadarsFindOneResponse';
|
|
6
9
|
export * from './radars/RaainApiRadarsFindMeasuresRequest';
|
|
7
10
|
export * from './radars/RaainApiRadarsFindMeasuresResponse';
|
|
8
11
|
export * from './radars/RaainApiRadarsUpdateRequestBody';
|
|
9
12
|
export * from './radars/RaainApiRadarsUpsertMeasureRequestBody';
|
|
10
13
|
export * from './gauges/RaainApiGaugesFindOneRequest';
|
|
14
|
+
export * from './gauges/RaainApiGaugesFindOneResponse';
|
|
11
15
|
export * from './gauges/RaainApiGaugesFindAllMineRequest';
|
|
12
16
|
export * from './gauges/RaainApiGaugesFindAllMineResponse';
|
|
13
17
|
export * from './gauges/RaainApiGaugesFindMeasuresRequest';
|
|
@@ -17,7 +21,21 @@ export * from './rains/RaainApiRainsFindOneResponse';
|
|
|
17
21
|
export * from './rains/RaainApiRainsFindOneTimeframeCumulativeRequest';
|
|
18
22
|
export * from './rains/RaainApiRainsFindOneTimeframeCumulativeResponse';
|
|
19
23
|
export * from './rains/RaainApiRainsGetCountsRequest';
|
|
24
|
+
export * from './rains/RaainApiRainsGetCountsResponse';
|
|
20
25
|
export * from './rains/RaainApiRainsFindAllMineRequest';
|
|
21
26
|
export * from './rains/RaainApiRainsFindAllMineResponse';
|
|
27
|
+
export * from './rains/RaainApiRainsCumulativesFindOneResponse';
|
|
28
|
+
export * from './rains/RaainApiRainsCumulativeCartesianMapRequest';
|
|
29
|
+
export * from './rains/RaainApiRainsCumulativeCartesianMapResponse';
|
|
30
|
+
export * from './rains/RaainApiRainsCumulativeCumulativeResponse';
|
|
31
|
+
export * from './rains/RaainApiRainsCumulativeComparesRequest';
|
|
32
|
+
export * from './rains/RaainApiRainsCumulativeComparesResponse';
|
|
33
|
+
export * from './rains/RaainApiRainsProgressResponse';
|
|
34
|
+
export * from './rains/RaainApiRainsProvidersResponse';
|
|
35
|
+
export * from './rains/RaainApiRainsIndicatorsRequest';
|
|
36
|
+
export * from './rains/RaainApiRainsIndicatorsResponse';
|
|
22
37
|
export * from './notifications/RaainApiNotificationsAddRequestBody';
|
|
38
|
+
export * from './notifications/RaainApiNotificationsAddResponse';
|
|
23
39
|
export * from './notifications/RaainApiNotificationsFindAllMineRequest';
|
|
40
|
+
export * from './notifications/RaainApiNotificationsFindAllMineResponse';
|
|
41
|
+
export * from './notifications/RaainApiNotificationsFindOneResponse';
|
package/api/index.js
CHANGED
|
@@ -19,16 +19,20 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
19
19
|
__exportStar(require("./common"), exports);
|
|
20
20
|
// Teams
|
|
21
21
|
__exportStar(require("./teams/RaainApiTeamsFindAllMineRequest"), exports);
|
|
22
|
+
__exportStar(require("./teams/RaainApiTeamsFindAllMineResponse"), exports);
|
|
23
|
+
__exportStar(require("./teams/RaainApiTeamsFindOneResponse"), exports);
|
|
22
24
|
__exportStar(require("./teams/RaainApiTeamsUpdateRequestBody"), exports);
|
|
23
25
|
// Radars
|
|
24
26
|
__exportStar(require("./radars/RaainApiRadarsFindAllMineRequest"), exports);
|
|
25
27
|
__exportStar(require("./radars/RaainApiRadarsFindAllMineResponse"), exports);
|
|
28
|
+
__exportStar(require("./radars/RaainApiRadarsFindOneResponse"), exports);
|
|
26
29
|
__exportStar(require("./radars/RaainApiRadarsFindMeasuresRequest"), exports);
|
|
27
30
|
__exportStar(require("./radars/RaainApiRadarsFindMeasuresResponse"), exports);
|
|
28
31
|
__exportStar(require("./radars/RaainApiRadarsUpdateRequestBody"), exports);
|
|
29
32
|
__exportStar(require("./radars/RaainApiRadarsUpsertMeasureRequestBody"), exports);
|
|
30
33
|
// Gauges
|
|
31
34
|
__exportStar(require("./gauges/RaainApiGaugesFindOneRequest"), exports);
|
|
35
|
+
__exportStar(require("./gauges/RaainApiGaugesFindOneResponse"), exports);
|
|
32
36
|
__exportStar(require("./gauges/RaainApiGaugesFindAllMineRequest"), exports);
|
|
33
37
|
__exportStar(require("./gauges/RaainApiGaugesFindAllMineResponse"), exports);
|
|
34
38
|
__exportStar(require("./gauges/RaainApiGaugesFindMeasuresRequest"), exports);
|
|
@@ -39,9 +43,23 @@ __exportStar(require("./rains/RaainApiRainsFindOneResponse"), exports);
|
|
|
39
43
|
__exportStar(require("./rains/RaainApiRainsFindOneTimeframeCumulativeRequest"), exports);
|
|
40
44
|
__exportStar(require("./rains/RaainApiRainsFindOneTimeframeCumulativeResponse"), exports);
|
|
41
45
|
__exportStar(require("./rains/RaainApiRainsGetCountsRequest"), exports);
|
|
46
|
+
__exportStar(require("./rains/RaainApiRainsGetCountsResponse"), exports);
|
|
42
47
|
__exportStar(require("./rains/RaainApiRainsFindAllMineRequest"), exports);
|
|
43
48
|
__exportStar(require("./rains/RaainApiRainsFindAllMineResponse"), exports);
|
|
49
|
+
__exportStar(require("./rains/RaainApiRainsCumulativesFindOneResponse"), exports);
|
|
50
|
+
__exportStar(require("./rains/RaainApiRainsCumulativeCartesianMapRequest"), exports);
|
|
51
|
+
__exportStar(require("./rains/RaainApiRainsCumulativeCartesianMapResponse"), exports);
|
|
52
|
+
__exportStar(require("./rains/RaainApiRainsCumulativeCumulativeResponse"), exports);
|
|
53
|
+
__exportStar(require("./rains/RaainApiRainsCumulativeComparesRequest"), exports);
|
|
54
|
+
__exportStar(require("./rains/RaainApiRainsCumulativeComparesResponse"), exports);
|
|
55
|
+
__exportStar(require("./rains/RaainApiRainsProgressResponse"), exports);
|
|
56
|
+
__exportStar(require("./rains/RaainApiRainsProvidersResponse"), exports);
|
|
57
|
+
__exportStar(require("./rains/RaainApiRainsIndicatorsRequest"), exports);
|
|
58
|
+
__exportStar(require("./rains/RaainApiRainsIndicatorsResponse"), exports);
|
|
44
59
|
// Notifications
|
|
45
60
|
__exportStar(require("./notifications/RaainApiNotificationsAddRequestBody"), exports);
|
|
61
|
+
__exportStar(require("./notifications/RaainApiNotificationsAddResponse"), exports);
|
|
46
62
|
__exportStar(require("./notifications/RaainApiNotificationsFindAllMineRequest"), exports);
|
|
63
|
+
__exportStar(require("./notifications/RaainApiNotificationsFindAllMineResponse"), exports);
|
|
64
|
+
__exportStar(require("./notifications/RaainApiNotificationsFindOneResponse"), exports);
|
|
47
65
|
//# sourceMappingURL=index.js.map
|
package/api/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":";AAAA,+BAA+B;;;;;;;;;;;;;;;;AAE/B,SAAS;AAET,2CAAyB;AAEzB,QAAQ;AACR,0EAAwD;AACxD,yEAAuD;AAEvD,SAAS;AACT,4EAA0D;AAC1D,6EAA2D;AAC3D,6EAA2D;AAC3D,8EAA4D;AAC5D,2EAAyD;AACzD,kFAAgE;AAEhE,SAAS;AACT,wEAAsD;AACtD,4EAA0D;AAC1D,6EAA2D;AAC3D,6EAA2D;AAC3D,8EAA4D;AAC5D,kFAAgE;AAEhE,QAAQ;AACR,uEAAqD;AACrD,yFAAuE;AACvE,0FAAwE;AACxE,wEAAsD;AACtD,0EAAwD;AACxD,2EAAyD;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":";AAAA,+BAA+B;;;;;;;;;;;;;;;;AAE/B,SAAS;AAET,2CAAyB;AAEzB,QAAQ;AACR,0EAAwD;AACxD,2EAAyD;AACzD,uEAAqD;AACrD,yEAAuD;AAEvD,SAAS;AACT,4EAA0D;AAC1D,6EAA2D;AAC3D,yEAAuD;AACvD,6EAA2D;AAC3D,8EAA4D;AAC5D,2EAAyD;AACzD,kFAAgE;AAEhE,SAAS;AACT,wEAAsD;AACtD,yEAAuD;AACvD,4EAA0D;AAC1D,6EAA2D;AAC3D,6EAA2D;AAC3D,8EAA4D;AAC5D,kFAAgE;AAEhE,QAAQ;AACR,uEAAqD;AACrD,yFAAuE;AACvE,0FAAwE;AACxE,wEAAsD;AACtD,yEAAuD;AACvD,0EAAwD;AACxD,2EAAyD;AACzD,kFAAgE;AAChE,qFAAmE;AACnE,sFAAoE;AACpE,oFAAkE;AAClE,iFAA+D;AAC/D,kFAAgE;AAChE,wEAAsD;AACtD,yEAAuD;AACvD,yEAAuD;AACvD,0EAAwD;AAExD,gBAAgB;AAChB,sFAAoE;AACpE,mFAAiE;AACjE,0FAAwE;AACxE,2FAAyE;AACzE,uFAAqE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RaainApiNotificationsAddResponse.js","sourceRoot":"","sources":["../../../src/api/notifications/RaainApiNotificationsAddResponse.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RaainApiNotificationsFindAllMineResponse.js","sourceRoot":"","sources":["../../../src/api/notifications/RaainApiNotificationsFindAllMineResponse.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RaainApiNotificationsFindOneResponse.js","sourceRoot":"","sources":["../../../src/api/notifications/RaainApiNotificationsFindOneResponse.ts"],"names":[],"mappings":""}
|
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { RadarNode } from '../../radar
|
|
3
|
-
export interface RaainApiRadarsFindAllMineResponse extends
|
|
1
|
+
import { PaginationResponse } from '../common';
|
|
2
|
+
import { RadarNode } from '../../radar';
|
|
3
|
+
export interface RaainApiRadarsFindAllMineResponse extends PaginationResponse {
|
|
4
4
|
radars: ReturnType<RadarNode['toJSON']>[];
|
|
5
|
-
total: number;
|
|
6
|
-
totalPages: number;
|
|
7
|
-
hasNext: boolean;
|
|
8
|
-
hasPrev: boolean;
|
|
9
5
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RaainApiRadarsFindOneResponse.js","sourceRoot":"","sources":["../../../src/api/radars/RaainApiRadarsFindOneResponse.ts"],"names":[],"mappings":""}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import { RadarPolarMeasureValue } from '../../polar';
|
|
2
|
+
import { RadarCartesianMeasureValue } from '../../cartesian';
|
|
1
3
|
export interface RaainApiRadarsUpsertMeasureRequestBody {
|
|
2
4
|
date: string;
|
|
3
|
-
values:
|
|
5
|
+
values: ReturnType<RadarPolarMeasureValue['toJSON']>[] | ReturnType<RadarCartesianMeasureValue['toJSON']>[] | number[];
|
|
4
6
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RaainApiRainsCumulativeCartesianMapRequest.js","sourceRoot":"","sources":["../../../src/api/rains/RaainApiRainsCumulativeCartesianMapRequest.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RaainApiRainsCumulativeCartesianMapResponse.js","sourceRoot":"","sources":["../../../src/api/rains/RaainApiRainsCumulativeCartesianMapResponse.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RaainApiRainsCumulativeComparesRequest.js","sourceRoot":"","sources":["../../../src/api/rains/RaainApiRainsCumulativeComparesRequest.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RaainApiRainsCumulativeComparesResponse.js","sourceRoot":"","sources":["../../../src/api/rains/RaainApiRainsCumulativeComparesResponse.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RaainApiRainsCumulativeCumulativeResponse.js","sourceRoot":"","sources":["../../../src/api/rains/RaainApiRainsCumulativeCumulativeResponse.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RaainApiRainsCumulativesFindOneResponse.js","sourceRoot":"","sources":["../../../src/api/rains/RaainApiRainsCumulativesFindOneResponse.ts"],"names":[],"mappings":""}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PaginationRequest } from '../common';
|
|
2
2
|
export interface RaainApiRainsFindAllMineRequest extends PaginationRequest {
|
|
3
|
-
name
|
|
4
|
-
date
|
|
5
|
-
latLng1
|
|
6
|
-
latLng2
|
|
3
|
+
name?: string;
|
|
4
|
+
date?: string;
|
|
5
|
+
latLng1?: string;
|
|
6
|
+
latLng2?: string;
|
|
7
7
|
}
|
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { RainNode } from '../../rain
|
|
3
|
-
export interface RaainApiRainsFindAllMineResponse extends
|
|
1
|
+
import { PaginationResponse } from '../common';
|
|
2
|
+
import { RainNode } from '../../rain';
|
|
3
|
+
export interface RaainApiRainsFindAllMineResponse extends PaginationResponse {
|
|
4
4
|
rains: ReturnType<RainNode['toJSON']>[];
|
|
5
|
-
total: number;
|
|
6
|
-
totalPages: number;
|
|
7
|
-
hasNext: boolean;
|
|
8
|
-
hasPrev: boolean;
|
|
9
5
|
}
|