@likewatt/models 1.58.1 → 1.59.0
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/dist/core/Site.d.ts +3 -0
- package/dist/core/Site.js +15 -0
- package/dist/core/enums/RetryHint.d.ts +5 -0
- package/dist/core/enums/RetryHint.js +9 -0
- package/dist/core/internal/microservice-error.d.ts +8 -0
- package/dist/core/internal/microservice-error.js +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +3 -0
- package/package.json +1 -1
package/dist/core/Site.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ import { RestOfTheYearTarifs } from './internal/rest-of-the-years-tarif';
|
|
|
9
9
|
import { DataSourceHistory } from './internal/data-source-history';
|
|
10
10
|
import { EnergyPriceTempo } from './internal/energy-price-tempo.model';
|
|
11
11
|
import { BuildingDataStatus } from './enums/BuildingDataStatus';
|
|
12
|
+
import { RetryHint } from './enums/RetryHint';
|
|
12
13
|
import { Comments } from './internal/comments';
|
|
13
14
|
import { Rates } from './internal/rates';
|
|
14
15
|
export declare class Site {
|
|
@@ -40,6 +41,8 @@ export declare class Site {
|
|
|
40
41
|
startDate?: Date | string;
|
|
41
42
|
endDate?: Date | string;
|
|
42
43
|
automaticUpdateError?: string | null;
|
|
44
|
+
automaticUpdateErrorHint?: RetryHint | null;
|
|
45
|
+
automaticUpdateRetryAt?: Date | null;
|
|
43
46
|
scenario?: string;
|
|
44
47
|
user?: string;
|
|
45
48
|
profile?: Profiles;
|
package/dist/core/Site.js
CHANGED
|
@@ -24,6 +24,7 @@ const rest_of_the_years_tarif_1 = require("./internal/rest-of-the-years-tarif");
|
|
|
24
24
|
const data_source_history_1 = require("./internal/data-source-history");
|
|
25
25
|
const energy_price_tempo_model_1 = require("./internal/energy-price-tempo.model");
|
|
26
26
|
const BuildingDataStatus_1 = require("./enums/BuildingDataStatus");
|
|
27
|
+
const RetryHint_1 = require("./enums/RetryHint");
|
|
27
28
|
const comments_1 = require("./internal/comments");
|
|
28
29
|
const rates_1 = require("./internal/rates");
|
|
29
30
|
let Site = class Site {
|
|
@@ -217,6 +218,20 @@ __decorate([
|
|
|
217
218
|
(0, class_validator_1.IsString)(),
|
|
218
219
|
__metadata("design:type", Object)
|
|
219
220
|
], Site.prototype, "automaticUpdateError", void 0);
|
|
221
|
+
__decorate([
|
|
222
|
+
(0, swagger_1.ApiPropertyOptional)({ enum: RetryHint_1.RetryHint }),
|
|
223
|
+
(0, mongoose_1.Prop)({ type: String, enum: RetryHint_1.RetryHint, required: false }),
|
|
224
|
+
(0, class_validator_1.IsOptional)(),
|
|
225
|
+
(0, class_validator_1.IsEnum)(RetryHint_1.RetryHint),
|
|
226
|
+
__metadata("design:type", Object)
|
|
227
|
+
], Site.prototype, "automaticUpdateErrorHint", void 0);
|
|
228
|
+
__decorate([
|
|
229
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
230
|
+
(0, mongoose_1.Prop)({ type: Date, required: false }),
|
|
231
|
+
(0, class_validator_1.IsOptional)(),
|
|
232
|
+
(0, class_validator_1.IsDate)(),
|
|
233
|
+
__metadata("design:type", Object)
|
|
234
|
+
], Site.prototype, "automaticUpdateRetryAt", void 0);
|
|
220
235
|
__decorate([
|
|
221
236
|
(0, swagger_1.ApiPropertyOptional)(),
|
|
222
237
|
(0, mongoose_1.Prop)({ type: String, ref: 'Scenario' }),
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RetryHint = void 0;
|
|
4
|
+
var RetryHint;
|
|
5
|
+
(function (RetryHint) {
|
|
6
|
+
RetryHint["RETRY_SHORT"] = "retry_short";
|
|
7
|
+
RetryHint["RETRY_LONG"] = "retry_long";
|
|
8
|
+
RetryHint["UNRECOVERABLE"] = "unrecoverable";
|
|
9
|
+
})(RetryHint || (exports.RetryHint = RetryHint = {}));
|
package/dist/index.d.ts
CHANGED
|
@@ -31,6 +31,8 @@ export * from './core/internal/enums';
|
|
|
31
31
|
export * from './core/enums/BuildingDataStatus';
|
|
32
32
|
export * from './core/enums/FileType';
|
|
33
33
|
export * from './core/enums/ImageryQuality';
|
|
34
|
+
export * from './core/enums/RetryHint';
|
|
35
|
+
export * from './core/internal/microservice-error';
|
|
34
36
|
export * from './core/internal/battery-params';
|
|
35
37
|
export * from './core/internal/bounding-box';
|
|
36
38
|
export * from './core/internal/building-data';
|
package/dist/index.js
CHANGED
|
@@ -54,6 +54,9 @@ __exportStar(require("./core/internal/enums"), exports);
|
|
|
54
54
|
__exportStar(require("./core/enums/BuildingDataStatus"), exports);
|
|
55
55
|
__exportStar(require("./core/enums/FileType"), exports);
|
|
56
56
|
__exportStar(require("./core/enums/ImageryQuality"), exports);
|
|
57
|
+
__exportStar(require("./core/enums/RetryHint"), exports);
|
|
58
|
+
// Error types
|
|
59
|
+
__exportStar(require("./core/internal/microservice-error"), exports);
|
|
57
60
|
// Sub-models
|
|
58
61
|
__exportStar(require("./core/internal/battery-params"), exports);
|
|
59
62
|
__exportStar(require("./core/internal/bounding-box"), exports);
|