@likewatt/models 1.0.32 → 1.0.34
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/ScenarioDefaultValue.d.ts +0 -19
- package/dist/core/ScenarioDefaultValue.js +1 -24
- package/dist/core/internal/enums.d.ts +15 -0
- package/dist/core/internal/enums.js +19 -1
- package/dist/core/internal/financing-type.d.ts +1 -1
- package/dist/core/internal/financing-type.js +1 -1
- package/dist/core/internal/pv-params.d.ts +1 -1
- package/dist/core/internal/pv-params.js +4 -4
- package/dist/core/internal/pv2-paramsSchema.d.ts +1 -1
- package/dist/core/internal/pv2-paramsSchema.js +4 -4
- package/dist/core/internal/tracker.d.ts +1 -1
- package/dist/core/internal/tracker.js +4 -4
- package/dist/index.d.ts +26 -0
- package/dist/index.js +26 -0
- package/package.json +1 -1
|
@@ -19,25 +19,6 @@ import { StationParams } from './internal/station-params';
|
|
|
19
19
|
import { ThermalStorageParams } from './internal/thermal-storage-params';
|
|
20
20
|
import { OptimizationParams } from './internal/optimization-params';
|
|
21
21
|
import { FinancingType } from './internal/financing-type';
|
|
22
|
-
export declare enum FinancingTypeEnum {
|
|
23
|
-
INVESTMENT = "Investissement",
|
|
24
|
-
LEASING = "Location",
|
|
25
|
-
PPA = "PPA"
|
|
26
|
-
}
|
|
27
|
-
export declare enum TrackerType {
|
|
28
|
-
OFF = "OFF",
|
|
29
|
-
SINGLE_AXIS = "SINGLE_AXIS",
|
|
30
|
-
DUAL_AXIS = "DUAL_AXIS"
|
|
31
|
-
}
|
|
32
|
-
export declare enum UseCase {
|
|
33
|
-
AOVS = "AOVS",
|
|
34
|
-
AUTOCONSOMMATION = "AUTOCONSOMMATION",
|
|
35
|
-
VENTE_TOTALE = "VENTE_TOTALE"
|
|
36
|
-
}
|
|
37
|
-
export declare enum ConsumptionReference {
|
|
38
|
-
REFERENCE = "REFERENCE",
|
|
39
|
-
CUSTOM = "CUSTOM"
|
|
40
|
-
}
|
|
41
22
|
export declare class ScenarioDefaultValue {
|
|
42
23
|
defaultPPATarif: DefaultPPATarif;
|
|
43
24
|
VERSION: number;
|
|
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.ScenarioDefaultValueSchema = exports.ScenarioDefaultValue =
|
|
12
|
+
exports.ScenarioDefaultValueSchema = exports.ScenarioDefaultValue = void 0;
|
|
13
13
|
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
14
|
const swagger_1 = require("@nestjs/swagger");
|
|
15
15
|
const class_validator_1 = require("class-validator");
|
|
@@ -33,29 +33,6 @@ const thermal_storage_params_1 = require("./internal/thermal-storage-params");
|
|
|
33
33
|
const optimization_params_1 = require("./internal/optimization-params");
|
|
34
34
|
const financing_type_1 = require("./internal/financing-type");
|
|
35
35
|
// Enums
|
|
36
|
-
var FinancingTypeEnum;
|
|
37
|
-
(function (FinancingTypeEnum) {
|
|
38
|
-
FinancingTypeEnum["INVESTMENT"] = "Investissement";
|
|
39
|
-
FinancingTypeEnum["LEASING"] = "Location";
|
|
40
|
-
FinancingTypeEnum["PPA"] = "PPA";
|
|
41
|
-
})(FinancingTypeEnum || (exports.FinancingTypeEnum = FinancingTypeEnum = {}));
|
|
42
|
-
var TrackerType;
|
|
43
|
-
(function (TrackerType) {
|
|
44
|
-
TrackerType["OFF"] = "OFF";
|
|
45
|
-
TrackerType["SINGLE_AXIS"] = "SINGLE_AXIS";
|
|
46
|
-
TrackerType["DUAL_AXIS"] = "DUAL_AXIS";
|
|
47
|
-
})(TrackerType || (exports.TrackerType = TrackerType = {}));
|
|
48
|
-
var UseCase;
|
|
49
|
-
(function (UseCase) {
|
|
50
|
-
UseCase["AOVS"] = "AOVS";
|
|
51
|
-
UseCase["AUTOCONSOMMATION"] = "AUTOCONSOMMATION";
|
|
52
|
-
UseCase["VENTE_TOTALE"] = "VENTE_TOTALE";
|
|
53
|
-
})(UseCase || (exports.UseCase = UseCase = {}));
|
|
54
|
-
var ConsumptionReference;
|
|
55
|
-
(function (ConsumptionReference) {
|
|
56
|
-
ConsumptionReference["REFERENCE"] = "REFERENCE";
|
|
57
|
-
ConsumptionReference["CUSTOM"] = "CUSTOM";
|
|
58
|
-
})(ConsumptionReference || (exports.ConsumptionReference = ConsumptionReference = {}));
|
|
59
36
|
let ScenarioDefaultValue = class ScenarioDefaultValue {
|
|
60
37
|
};
|
|
61
38
|
exports.ScenarioDefaultValue = ScenarioDefaultValue;
|
|
@@ -13,3 +13,18 @@ export declare enum Profiles {
|
|
|
13
13
|
ENT_HTA = "ENT_HTA",
|
|
14
14
|
BBR = "BBR"
|
|
15
15
|
}
|
|
16
|
+
export declare enum FinancingTypeEnum {
|
|
17
|
+
INVESTMENT = "Investissement",
|
|
18
|
+
LEASING = "Location",
|
|
19
|
+
PPA = "PPA"
|
|
20
|
+
}
|
|
21
|
+
export declare enum TrackerType {
|
|
22
|
+
OFF = "OFF",
|
|
23
|
+
SINGLE_AXIS = "SINGLE_AXIS",
|
|
24
|
+
DUAL_AXIS = "DUAL_AXIS"
|
|
25
|
+
}
|
|
26
|
+
export declare enum UseCase {
|
|
27
|
+
AOVS = "AOVS",
|
|
28
|
+
AUTOCONSOMMATION = "AUTOCONSOMMATION",
|
|
29
|
+
VENTE_TOTALE = "VENTE_TOTALE"
|
|
30
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Profiles = exports.SiteType = void 0;
|
|
3
|
+
exports.UseCase = exports.TrackerType = exports.FinancingTypeEnum = exports.Profiles = exports.SiteType = void 0;
|
|
4
4
|
var SiteType;
|
|
5
5
|
(function (SiteType) {
|
|
6
6
|
SiteType["CONSUMER"] = "CONSUMER";
|
|
@@ -18,3 +18,21 @@ var Profiles;
|
|
|
18
18
|
Profiles["ENT_HTA"] = "ENT_HTA";
|
|
19
19
|
Profiles["BBR"] = "BBR";
|
|
20
20
|
})(Profiles || (exports.Profiles = Profiles = {}));
|
|
21
|
+
var FinancingTypeEnum;
|
|
22
|
+
(function (FinancingTypeEnum) {
|
|
23
|
+
FinancingTypeEnum["INVESTMENT"] = "Investissement";
|
|
24
|
+
FinancingTypeEnum["LEASING"] = "Location";
|
|
25
|
+
FinancingTypeEnum["PPA"] = "PPA";
|
|
26
|
+
})(FinancingTypeEnum || (exports.FinancingTypeEnum = FinancingTypeEnum = {}));
|
|
27
|
+
var TrackerType;
|
|
28
|
+
(function (TrackerType) {
|
|
29
|
+
TrackerType["OFF"] = "OFF";
|
|
30
|
+
TrackerType["SINGLE_AXIS"] = "SINGLE_AXIS";
|
|
31
|
+
TrackerType["DUAL_AXIS"] = "DUAL_AXIS";
|
|
32
|
+
})(TrackerType || (exports.TrackerType = TrackerType = {}));
|
|
33
|
+
var UseCase;
|
|
34
|
+
(function (UseCase) {
|
|
35
|
+
UseCase["AOVS"] = "AOVS";
|
|
36
|
+
UseCase["AUTOCONSOMMATION"] = "AUTOCONSOMMATION";
|
|
37
|
+
UseCase["VENTE_TOTALE"] = "VENTE_TOTALE";
|
|
38
|
+
})(UseCase || (exports.UseCase = UseCase = {}));
|
|
@@ -13,7 +13,7 @@ exports.FinancingTypeSchema = exports.FinancingType = void 0;
|
|
|
13
13
|
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
14
|
const swagger_1 = require("@nestjs/swagger");
|
|
15
15
|
const class_validator_1 = require("class-validator");
|
|
16
|
-
const
|
|
16
|
+
const enums_1 = require("./enums");
|
|
17
17
|
let FinancingType = class FinancingType {
|
|
18
18
|
};
|
|
19
19
|
exports.FinancingType = FinancingType;
|
|
@@ -13,8 +13,8 @@ exports.PVParams = void 0;
|
|
|
13
13
|
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
14
|
const swagger_1 = require("@nestjs/swagger");
|
|
15
15
|
const class_validator_1 = require("class-validator");
|
|
16
|
-
const ScenarioDefaultValue_1 = require("../ScenarioDefaultValue");
|
|
17
16
|
const tracker_1 = require("./tracker");
|
|
17
|
+
const enums_1 = require("./enums");
|
|
18
18
|
let PVParams = class PVParams {
|
|
19
19
|
};
|
|
20
20
|
exports.PVParams = PVParams;
|
|
@@ -79,9 +79,9 @@ __decorate([
|
|
|
79
79
|
__metadata("design:type", Array)
|
|
80
80
|
], PVParams.prototype, "pvPurchasePrice", void 0);
|
|
81
81
|
__decorate([
|
|
82
|
-
(0, swagger_1.ApiProperty)({ enum:
|
|
83
|
-
(0, mongoose_1.Prop)({ type: String, enum:
|
|
84
|
-
(0, class_validator_1.IsEnum)(
|
|
82
|
+
(0, swagger_1.ApiProperty)({ enum: enums_1.UseCase }),
|
|
83
|
+
(0, mongoose_1.Prop)({ type: String, enum: enums_1.UseCase, required: true }),
|
|
84
|
+
(0, class_validator_1.IsEnum)(enums_1.UseCase),
|
|
85
85
|
__metadata("design:type", String)
|
|
86
86
|
], PVParams.prototype, "useCase", void 0);
|
|
87
87
|
__decorate([
|
|
@@ -13,8 +13,8 @@ exports.PV2ParamsSchema = exports.PV2Params = void 0;
|
|
|
13
13
|
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
14
|
const swagger_1 = require("@nestjs/swagger");
|
|
15
15
|
const class_validator_1 = require("class-validator");
|
|
16
|
-
const ScenarioDefaultValue_1 = require("../ScenarioDefaultValue");
|
|
17
16
|
const tracker_1 = require("./tracker");
|
|
17
|
+
const enums_1 = require("./enums");
|
|
18
18
|
let PV2Params = class PV2Params {
|
|
19
19
|
};
|
|
20
20
|
exports.PV2Params = PV2Params;
|
|
@@ -61,9 +61,9 @@ __decorate([
|
|
|
61
61
|
__metadata("design:type", Number)
|
|
62
62
|
], PV2Params.prototype, "pv2SubTot", void 0);
|
|
63
63
|
__decorate([
|
|
64
|
-
(0, swagger_1.ApiProperty)({ enum:
|
|
65
|
-
(0, mongoose_1.Prop)({ type: String, enum:
|
|
66
|
-
(0, class_validator_1.IsEnum)(
|
|
64
|
+
(0, swagger_1.ApiProperty)({ enum: enums_1.UseCase }),
|
|
65
|
+
(0, mongoose_1.Prop)({ type: String, enum: enums_1.UseCase, required: true }),
|
|
66
|
+
(0, class_validator_1.IsEnum)(enums_1.UseCase),
|
|
67
67
|
__metadata("design:type", String)
|
|
68
68
|
], PV2Params.prototype, "useCase2", void 0);
|
|
69
69
|
__decorate([
|
|
@@ -13,7 +13,7 @@ exports.TrackerSchema = exports.Tracker = void 0;
|
|
|
13
13
|
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
14
|
const swagger_1 = require("@nestjs/swagger");
|
|
15
15
|
const class_validator_1 = require("class-validator");
|
|
16
|
-
const
|
|
16
|
+
const enums_1 = require("./enums");
|
|
17
17
|
let Tracker = class Tracker {
|
|
18
18
|
};
|
|
19
19
|
exports.Tracker = Tracker;
|
|
@@ -51,9 +51,9 @@ __decorate([
|
|
|
51
51
|
__metadata("design:type", Object)
|
|
52
52
|
], Tracker.prototype, "share", void 0);
|
|
53
53
|
__decorate([
|
|
54
|
-
(0, swagger_1.ApiProperty)({ enum:
|
|
55
|
-
(0, mongoose_1.Prop)({ type: String, enum:
|
|
56
|
-
(0, class_validator_1.IsEnum)(
|
|
54
|
+
(0, swagger_1.ApiProperty)({ enum: enums_1.TrackerType }),
|
|
55
|
+
(0, mongoose_1.Prop)({ type: String, enum: enums_1.TrackerType, required: true }),
|
|
56
|
+
(0, class_validator_1.IsEnum)(enums_1.TrackerType),
|
|
57
57
|
__metadata("design:type", String)
|
|
58
58
|
], Tracker.prototype, "trackerType", void 0);
|
|
59
59
|
exports.Tracker = Tracker = __decorate([
|
package/dist/index.d.ts
CHANGED
|
@@ -11,14 +11,40 @@ export * from './core/TypeORM/UsersFilters';
|
|
|
11
11
|
export * from './core/TypeORM/Optimization';
|
|
12
12
|
export * from './core/TypeORM/WebhookOutput';
|
|
13
13
|
export * from './core/internal/enums';
|
|
14
|
+
export * from './core/internal/battery-params';
|
|
14
15
|
export * from './core/internal/bounding-box';
|
|
15
16
|
export * from './core/internal/building-data';
|
|
16
17
|
export * from './core/internal/building-stats';
|
|
17
18
|
export * from './core/internal/consumption-indexes';
|
|
19
|
+
export * from './core/internal/conversion-params';
|
|
18
20
|
export * from './core/internal/customer-infos.model';
|
|
19
21
|
export * from './core/internal/data-source-history';
|
|
22
|
+
export * from './core/internal/default-ppa-tarif';
|
|
23
|
+
export * from './core/internal/ecs-params';
|
|
24
|
+
export * from './core/internal/electrolyse-params';
|
|
25
|
+
export * from './core/internal/energy-inflation-rate';
|
|
20
26
|
export * from './core/internal/energy-price.model';
|
|
21
27
|
export * from './core/internal/energy-price-tempo.model';
|
|
28
|
+
export * from './core/internal/financing-type';
|
|
29
|
+
export * from './core/internal/folder.model';
|
|
30
|
+
export * from './core/internal/fuel-cell-params';
|
|
31
|
+
export * from './core/internal/generator-params';
|
|
32
|
+
export * from './core/internal/grid-params';
|
|
33
|
+
export * from './core/internal/h2-storage-params';
|
|
34
|
+
export * from './core/internal/imagery-date';
|
|
35
|
+
export * from './core/internal/power-cost-config';
|
|
36
|
+
export * from './core/internal/pv-params';
|
|
37
|
+
export * from './core/internal/pv2-paramsSchema';
|
|
38
|
+
export * from './core/internal/rate-of-growth-params';
|
|
39
|
+
export * from './core/internal/rest-of-the-years-tarif';
|
|
40
|
+
export * from './core/internal/scenario-params';
|
|
41
|
+
export * from './core/internal/solar-potential';
|
|
42
|
+
export * from './core/internal/station-params';
|
|
43
|
+
export * from './core/internal/thermal-storage-params';
|
|
44
|
+
export * from './core/internal/vs-params';
|
|
45
|
+
export * from './core/internal/wind-turbine-params';
|
|
46
|
+
export * from './core/internal/tracker';
|
|
47
|
+
export * from './core/internal/optimization-params';
|
|
22
48
|
export * from './core/internal/imagery-date';
|
|
23
49
|
export * from './core/internal/off-peak-hour.model';
|
|
24
50
|
export * from './core/internal/peak-hour.model';
|
package/dist/index.js
CHANGED
|
@@ -31,14 +31,40 @@ __exportStar(require("./core/TypeORM/WebhookOutput"), exports);
|
|
|
31
31
|
// Enums
|
|
32
32
|
__exportStar(require("./core/internal/enums"), exports);
|
|
33
33
|
// Sub-models
|
|
34
|
+
__exportStar(require("./core/internal/battery-params"), exports);
|
|
34
35
|
__exportStar(require("./core/internal/bounding-box"), exports);
|
|
35
36
|
__exportStar(require("./core/internal/building-data"), exports);
|
|
36
37
|
__exportStar(require("./core/internal/building-stats"), exports);
|
|
37
38
|
__exportStar(require("./core/internal/consumption-indexes"), exports);
|
|
39
|
+
__exportStar(require("./core/internal/conversion-params"), exports);
|
|
38
40
|
__exportStar(require("./core/internal/customer-infos.model"), exports);
|
|
39
41
|
__exportStar(require("./core/internal/data-source-history"), exports);
|
|
42
|
+
__exportStar(require("./core/internal/default-ppa-tarif"), exports);
|
|
43
|
+
__exportStar(require("./core/internal/ecs-params"), exports);
|
|
44
|
+
__exportStar(require("./core/internal/electrolyse-params"), exports);
|
|
45
|
+
__exportStar(require("./core/internal/energy-inflation-rate"), exports);
|
|
40
46
|
__exportStar(require("./core/internal/energy-price.model"), exports);
|
|
41
47
|
__exportStar(require("./core/internal/energy-price-tempo.model"), exports);
|
|
48
|
+
__exportStar(require("./core/internal/financing-type"), exports);
|
|
49
|
+
__exportStar(require("./core/internal/folder.model"), exports);
|
|
50
|
+
__exportStar(require("./core/internal/fuel-cell-params"), exports);
|
|
51
|
+
__exportStar(require("./core/internal/generator-params"), exports);
|
|
52
|
+
__exportStar(require("./core/internal/grid-params"), exports);
|
|
53
|
+
__exportStar(require("./core/internal/h2-storage-params"), exports);
|
|
54
|
+
__exportStar(require("./core/internal/imagery-date"), exports);
|
|
55
|
+
__exportStar(require("./core/internal/power-cost-config"), exports);
|
|
56
|
+
__exportStar(require("./core/internal/pv-params"), exports);
|
|
57
|
+
__exportStar(require("./core/internal/pv2-paramsSchema"), exports);
|
|
58
|
+
__exportStar(require("./core/internal/rate-of-growth-params"), exports);
|
|
59
|
+
__exportStar(require("./core/internal/rest-of-the-years-tarif"), exports);
|
|
60
|
+
__exportStar(require("./core/internal/scenario-params"), exports);
|
|
61
|
+
__exportStar(require("./core/internal/solar-potential"), exports);
|
|
62
|
+
__exportStar(require("./core/internal/station-params"), exports);
|
|
63
|
+
__exportStar(require("./core/internal/thermal-storage-params"), exports);
|
|
64
|
+
__exportStar(require("./core/internal/vs-params"), exports);
|
|
65
|
+
__exportStar(require("./core/internal/wind-turbine-params"), exports);
|
|
66
|
+
__exportStar(require("./core/internal/tracker"), exports);
|
|
67
|
+
__exportStar(require("./core/internal/optimization-params"), exports);
|
|
42
68
|
__exportStar(require("./core/internal/imagery-date"), exports);
|
|
43
69
|
__exportStar(require("./core/internal/off-peak-hour.model"), exports);
|
|
44
70
|
__exportStar(require("./core/internal/peak-hour.model"), exports);
|