@likewatt/models 1.108.3 → 1.110.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/CollectiveSite.d.ts +1 -0
- package/dist/core/CollectiveSite.js +11 -0
- package/dist/core/License.d.ts +1 -0
- package/dist/core/License.js +10 -0
- package/dist/core/Site.d.ts +1 -0
- package/dist/core/Site.js +11 -0
- package/dist/core/User.d.ts +1 -0
- package/dist/core/User.js +10 -0
- package/dist/core/enums/FileType.d.ts +2 -1
- package/dist/core/enums/FileType.js +1 -0
- package/dist/core/enums/InvoicePricingPeriod.d.ts +22 -0
- package/dist/core/enums/InvoicePricingPeriod.js +27 -0
- package/dist/core/internal/aurora-result.d.ts +44 -0
- package/dist/core/internal/aurora-result.js +98 -0
- package/dist/core/internal/invoiceOcrResult.d.ts +16 -0
- package/dist/core/internal/invoiceOcrResult.js +26 -0
- package/dist/core/internal/pv-params.d.ts +9 -0
- package/dist/core/internal/pv-params.js +13 -0
- package/dist/core/internal/pv2-paramsSchema.d.ts +5 -0
- package/dist/core/internal/pv2-paramsSchema.js +13 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/package.json +1 -1
|
@@ -33,6 +33,7 @@ export declare class CollectiveSite {
|
|
|
33
33
|
hasAnalysis: boolean;
|
|
34
34
|
buildingData?: BuildingData | null;
|
|
35
35
|
buildingDataStatus?: BuildingDataStatus | null;
|
|
36
|
+
auroraProjectId?: string | null;
|
|
36
37
|
demoTemplateSourceId?: string;
|
|
37
38
|
createdAt?: Date | string;
|
|
38
39
|
updatedAt?: Date | string;
|
|
@@ -219,6 +219,17 @@ __decorate([
|
|
|
219
219
|
(0, class_validator_1.IsEnum)(BuildingDataStatus_1.BuildingDataStatus),
|
|
220
220
|
__metadata("design:type", Object)
|
|
221
221
|
], CollectiveSite.prototype, "buildingDataStatus", void 0);
|
|
222
|
+
__decorate([
|
|
223
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
224
|
+
description: 'Identifiant du project Aurora Solar associé au site collectif (1:1, clé = adresse).',
|
|
225
|
+
type: String,
|
|
226
|
+
nullable: true,
|
|
227
|
+
}),
|
|
228
|
+
(0, mongoose_1.Prop)({ type: String, default: null }),
|
|
229
|
+
(0, class_validator_1.IsOptional)(),
|
|
230
|
+
(0, class_validator_1.IsString)(),
|
|
231
|
+
__metadata("design:type", Object)
|
|
232
|
+
], CollectiveSite.prototype, "auroraProjectId", void 0);
|
|
222
233
|
__decorate([
|
|
223
234
|
(0, swagger_1.ApiPropertyOptional)(),
|
|
224
235
|
(0, class_validator_1.IsOptional)(),
|
package/dist/core/License.d.ts
CHANGED
package/dist/core/License.js
CHANGED
|
@@ -102,6 +102,16 @@ __decorate([
|
|
|
102
102
|
(0, class_validator_1.IsBoolean)(),
|
|
103
103
|
__metadata("design:type", Boolean)
|
|
104
104
|
], License.prototype, "trackerOkd", void 0);
|
|
105
|
+
__decorate([
|
|
106
|
+
(0, swagger_1.ApiProperty)({
|
|
107
|
+
description: 'Accès au calepinage photovoltaïque Aurora Solar (entitlement)',
|
|
108
|
+
example: false,
|
|
109
|
+
}),
|
|
110
|
+
(0, mongoose_1.Prop)({ type: Boolean, default: false }),
|
|
111
|
+
(0, class_validator_1.IsOptional)(),
|
|
112
|
+
(0, class_validator_1.IsBoolean)(),
|
|
113
|
+
__metadata("design:type", Boolean)
|
|
114
|
+
], License.prototype, "auroraEnabled", void 0);
|
|
105
115
|
__decorate([
|
|
106
116
|
(0, swagger_1.ApiProperty)({
|
|
107
117
|
description: 'Type de l’utilisateur',
|
package/dist/core/Site.d.ts
CHANGED
|
@@ -135,6 +135,7 @@ export declare class Site {
|
|
|
135
135
|
hasContractData: boolean;
|
|
136
136
|
scenarioOption?: string;
|
|
137
137
|
invoiceData?: InvoiceOcrResult;
|
|
138
|
+
auroraProjectId?: string | null;
|
|
138
139
|
demoTemplateSourceId?: string;
|
|
139
140
|
createdAt?: Date | string;
|
|
140
141
|
updatedAt?: Date | string;
|
package/dist/core/Site.js
CHANGED
|
@@ -713,6 +713,17 @@ __decorate([
|
|
|
713
713
|
(0, class_transformer_1.Type)(() => invoiceOcrResult_1.InvoiceOcrResult),
|
|
714
714
|
__metadata("design:type", invoiceOcrResult_1.InvoiceOcrResult)
|
|
715
715
|
], Site.prototype, "invoiceData", void 0);
|
|
716
|
+
__decorate([
|
|
717
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
718
|
+
description: 'Identifiant du project Aurora Solar associé au site (1:1, clé = adresse). Créé paresseusement à la première ouverture Aurora, puis réutilisé.',
|
|
719
|
+
type: String,
|
|
720
|
+
nullable: true,
|
|
721
|
+
}),
|
|
722
|
+
(0, mongoose_1.Prop)({ type: String, default: null }),
|
|
723
|
+
(0, class_validator_1.IsOptional)(),
|
|
724
|
+
(0, class_validator_1.IsString)(),
|
|
725
|
+
__metadata("design:type", Object)
|
|
726
|
+
], Site.prototype, "auroraProjectId", void 0);
|
|
716
727
|
__decorate([
|
|
717
728
|
(0, swagger_1.ApiPropertyOptional)(),
|
|
718
729
|
(0, class_validator_1.IsOptional)(),
|
package/dist/core/User.d.ts
CHANGED
package/dist/core/User.js
CHANGED
|
@@ -566,6 +566,16 @@ __decorate([
|
|
|
566
566
|
(0, class_validator_1.IsBoolean)(),
|
|
567
567
|
__metadata("design:type", Boolean)
|
|
568
568
|
], User.prototype, "trackerOkd", void 0);
|
|
569
|
+
__decorate([
|
|
570
|
+
(0, swagger_1.ApiProperty)({
|
|
571
|
+
description: 'Accès au calepinage photovoltaïque Aurora Solar (miroir de License.auroraEnabled)',
|
|
572
|
+
example: false,
|
|
573
|
+
}),
|
|
574
|
+
(0, mongoose_1.Prop)({ type: Boolean, default: false }),
|
|
575
|
+
(0, class_validator_1.IsOptional)(),
|
|
576
|
+
(0, class_validator_1.IsBoolean)(),
|
|
577
|
+
__metadata("design:type", Boolean)
|
|
578
|
+
], User.prototype, "auroraEnabled", void 0);
|
|
569
579
|
__decorate([
|
|
570
580
|
(0, swagger_1.ApiProperty)({
|
|
571
581
|
description: 'E-mail de création envoyé',
|
|
@@ -56,7 +56,8 @@ export declare enum FileType {
|
|
|
56
56
|
METADATA = "metadata.json",
|
|
57
57
|
OVERLAY = "overlay.png",
|
|
58
58
|
METADATA_BUILDING = "metadataBuilding.json",
|
|
59
|
-
OVERLAY_BUILDING = "overlayBuilding.png"
|
|
59
|
+
OVERLAY_BUILDING = "overlayBuilding.png",
|
|
60
|
+
AURORA_LAYOUT = "auroraLayout.png"
|
|
60
61
|
}
|
|
61
62
|
export declare enum FileName_Extra {
|
|
62
63
|
LOG = "optiwize.log`"
|
|
@@ -61,6 +61,7 @@ var FileType;
|
|
|
61
61
|
FileType["OVERLAY"] = "overlay.png";
|
|
62
62
|
FileType["METADATA_BUILDING"] = "metadataBuilding.json";
|
|
63
63
|
FileType["OVERLAY_BUILDING"] = "overlayBuilding.png";
|
|
64
|
+
FileType["AURORA_LAYOUT"] = "auroraLayout.png";
|
|
64
65
|
})(FileType || (exports.FileType = FileType = {}));
|
|
65
66
|
var FileName_Extra;
|
|
66
67
|
(function (FileName_Extra) {
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Postes tarifaires de fourniture extraits d'une facture par l'OCR Koncile.
|
|
3
|
+
*
|
|
4
|
+
* Liste fermée : les templates Koncile renomment systématiquement les synonymes
|
|
5
|
+
* rencontrés sur les factures (HPE, « HP Hiver », Pointe…) vers l'un de ces
|
|
6
|
+
* libellés. Les suffixes marquent la saison — HS = haute saison (hiver),
|
|
7
|
+
* BS = basse saison (été).
|
|
8
|
+
*/
|
|
9
|
+
export declare enum InvoicePricingPeriod {
|
|
10
|
+
BASE = "BASE",
|
|
11
|
+
HP = "HP",
|
|
12
|
+
HC = "HC",
|
|
13
|
+
HPHS = "HPHS",
|
|
14
|
+
HCHS = "HCHS",
|
|
15
|
+
HPBS = "HPBS",
|
|
16
|
+
HCBS = "HCBS"
|
|
17
|
+
}
|
|
18
|
+
/** Saison tarifaire d'une facture saisonnière. */
|
|
19
|
+
export declare enum InvoiceSeason {
|
|
20
|
+
HIGH = "HIGH",
|
|
21
|
+
LOW = "LOW"
|
|
22
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InvoiceSeason = exports.InvoicePricingPeriod = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Postes tarifaires de fourniture extraits d'une facture par l'OCR Koncile.
|
|
6
|
+
*
|
|
7
|
+
* Liste fermée : les templates Koncile renomment systématiquement les synonymes
|
|
8
|
+
* rencontrés sur les factures (HPE, « HP Hiver », Pointe…) vers l'un de ces
|
|
9
|
+
* libellés. Les suffixes marquent la saison — HS = haute saison (hiver),
|
|
10
|
+
* BS = basse saison (été).
|
|
11
|
+
*/
|
|
12
|
+
var InvoicePricingPeriod;
|
|
13
|
+
(function (InvoicePricingPeriod) {
|
|
14
|
+
InvoicePricingPeriod["BASE"] = "BASE";
|
|
15
|
+
InvoicePricingPeriod["HP"] = "HP";
|
|
16
|
+
InvoicePricingPeriod["HC"] = "HC";
|
|
17
|
+
InvoicePricingPeriod["HPHS"] = "HPHS";
|
|
18
|
+
InvoicePricingPeriod["HCHS"] = "HCHS";
|
|
19
|
+
InvoicePricingPeriod["HPBS"] = "HPBS";
|
|
20
|
+
InvoicePricingPeriod["HCBS"] = "HCBS";
|
|
21
|
+
})(InvoicePricingPeriod || (exports.InvoicePricingPeriod = InvoicePricingPeriod = {}));
|
|
22
|
+
/** Saison tarifaire d'une facture saisonnière. */
|
|
23
|
+
var InvoiceSeason;
|
|
24
|
+
(function (InvoiceSeason) {
|
|
25
|
+
InvoiceSeason["HIGH"] = "HIGH";
|
|
26
|
+
InvoiceSeason["LOW"] = "LOW";
|
|
27
|
+
})(InvoiceSeason || (exports.InvoiceSeason = InvoiceSeason = {}));
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Snapshot figé du résultat d'un calepinage Aurora, embarqué dans PVParams
|
|
3
|
+
* (scénario-scoped). Il sert à ré-afficher le calepinage appliqué sans
|
|
4
|
+
* ré-interroger Aurora (D11 : snapshot embarqué dans PVParams, image stockée
|
|
5
|
+
* côté micro Files, CSV horaire stocké côté front comme fichier PV_POWERS).
|
|
6
|
+
*
|
|
7
|
+
* Les tableaux (azimuth/tilt/rowSpacing/share) sont alignés par index : une
|
|
8
|
+
* entrée par array Aurora = un pvRow Optiwize (D8).
|
|
9
|
+
*/
|
|
10
|
+
export declare class AuroraResult {
|
|
11
|
+
/** Puissance PV crête totale (kWc) — mappée sur peakPower. */
|
|
12
|
+
pvPowerKwc: number;
|
|
13
|
+
/** Nombre total de panneaux (affichage récap uniquement). */
|
|
14
|
+
panelCount: number;
|
|
15
|
+
/** Modèle de panneau (affichage récap uniquement). */
|
|
16
|
+
panelModel?: string | null;
|
|
17
|
+
/** Orientation / azimut (°) — une valeur par array/pvRow. */
|
|
18
|
+
azimuth: number[];
|
|
19
|
+
/** Inclinaison / tilt (°) — une valeur par array/pvRow. */
|
|
20
|
+
tilt: number[];
|
|
21
|
+
/** Interdistance / espacement entre rangées (m), si disponible. */
|
|
22
|
+
rowSpacing?: number | null;
|
|
23
|
+
/** Productible annuel total (kWh). */
|
|
24
|
+
annualProductionKwh: number;
|
|
25
|
+
/** Taux de dégradation annuel (best-effort). */
|
|
26
|
+
degradationRate?: number | null;
|
|
27
|
+
/** Rendement onduleur (best-effort). */
|
|
28
|
+
inverterEfficiency?: number | null;
|
|
29
|
+
/** URL Likewatt stable de l'image de calepinage (Files micro). */
|
|
30
|
+
layoutImageUrl?: string | null;
|
|
31
|
+
/** Origine de la donnée — toujours 'aurora'. */
|
|
32
|
+
source: string;
|
|
33
|
+
/** Date de simulation (ISO), posée côté serveur. */
|
|
34
|
+
simulatedAt: string;
|
|
35
|
+
}
|
|
36
|
+
export declare const AuroraResultSchema: import("mongoose").Schema<AuroraResult, import("mongoose").Model<AuroraResult, any, any, any, import("mongoose").Document<unknown, any, AuroraResult, any, {}> & AuroraResult & {
|
|
37
|
+
_id: import("mongoose").Types.ObjectId;
|
|
38
|
+
} & {
|
|
39
|
+
__v: number;
|
|
40
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, AuroraResult, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<AuroraResult>, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").FlatRecord<AuroraResult> & {
|
|
41
|
+
_id: import("mongoose").Types.ObjectId;
|
|
42
|
+
} & {
|
|
43
|
+
__v: number;
|
|
44
|
+
}>;
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.AuroraResultSchema = exports.AuroraResult = void 0;
|
|
13
|
+
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
/**
|
|
16
|
+
* Snapshot figé du résultat d'un calepinage Aurora, embarqué dans PVParams
|
|
17
|
+
* (scénario-scoped). Il sert à ré-afficher le calepinage appliqué sans
|
|
18
|
+
* ré-interroger Aurora (D11 : snapshot embarqué dans PVParams, image stockée
|
|
19
|
+
* côté micro Files, CSV horaire stocké côté front comme fichier PV_POWERS).
|
|
20
|
+
*
|
|
21
|
+
* Les tableaux (azimuth/tilt/rowSpacing/share) sont alignés par index : une
|
|
22
|
+
* entrée par array Aurora = un pvRow Optiwize (D8).
|
|
23
|
+
*/
|
|
24
|
+
let AuroraResult = class AuroraResult {
|
|
25
|
+
};
|
|
26
|
+
exports.AuroraResult = AuroraResult;
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, mongoose_1.Prop)({ type: Number, required: true }),
|
|
29
|
+
(0, class_validator_1.IsNumber)(),
|
|
30
|
+
__metadata("design:type", Number)
|
|
31
|
+
], AuroraResult.prototype, "pvPowerKwc", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, mongoose_1.Prop)({ type: Number, required: true }),
|
|
34
|
+
(0, class_validator_1.IsNumber)(),
|
|
35
|
+
__metadata("design:type", Number)
|
|
36
|
+
], AuroraResult.prototype, "panelCount", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, mongoose_1.Prop)({ type: String, default: null }),
|
|
39
|
+
(0, class_validator_1.IsOptional)(),
|
|
40
|
+
(0, class_validator_1.IsString)(),
|
|
41
|
+
__metadata("design:type", Object)
|
|
42
|
+
], AuroraResult.prototype, "panelModel", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, mongoose_1.Prop)({ type: [Number], default: [] }),
|
|
45
|
+
(0, class_validator_1.IsArray)(),
|
|
46
|
+
(0, class_validator_1.IsNumber)({}, { each: true }),
|
|
47
|
+
__metadata("design:type", Array)
|
|
48
|
+
], AuroraResult.prototype, "azimuth", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, mongoose_1.Prop)({ type: [Number], default: [] }),
|
|
51
|
+
(0, class_validator_1.IsArray)(),
|
|
52
|
+
(0, class_validator_1.IsNumber)({}, { each: true }),
|
|
53
|
+
__metadata("design:type", Array)
|
|
54
|
+
], AuroraResult.prototype, "tilt", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, mongoose_1.Prop)({ type: Number, default: null }),
|
|
57
|
+
(0, class_validator_1.IsOptional)(),
|
|
58
|
+
(0, class_validator_1.IsNumber)(),
|
|
59
|
+
__metadata("design:type", Object)
|
|
60
|
+
], AuroraResult.prototype, "rowSpacing", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, mongoose_1.Prop)({ type: Number, required: true }),
|
|
63
|
+
(0, class_validator_1.IsNumber)(),
|
|
64
|
+
__metadata("design:type", Number)
|
|
65
|
+
], AuroraResult.prototype, "annualProductionKwh", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, mongoose_1.Prop)({ type: Number, default: null }),
|
|
68
|
+
(0, class_validator_1.IsOptional)(),
|
|
69
|
+
(0, class_validator_1.IsNumber)(),
|
|
70
|
+
__metadata("design:type", Object)
|
|
71
|
+
], AuroraResult.prototype, "degradationRate", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, mongoose_1.Prop)({ type: Number, default: null }),
|
|
74
|
+
(0, class_validator_1.IsOptional)(),
|
|
75
|
+
(0, class_validator_1.IsNumber)(),
|
|
76
|
+
__metadata("design:type", Object)
|
|
77
|
+
], AuroraResult.prototype, "inverterEfficiency", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, mongoose_1.Prop)({ type: String, default: null }),
|
|
80
|
+
(0, class_validator_1.IsOptional)(),
|
|
81
|
+
(0, class_validator_1.IsString)(),
|
|
82
|
+
__metadata("design:type", Object)
|
|
83
|
+
], AuroraResult.prototype, "layoutImageUrl", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
(0, mongoose_1.Prop)({ type: String, default: 'aurora' }),
|
|
86
|
+
(0, class_validator_1.IsOptional)(),
|
|
87
|
+
(0, class_validator_1.IsString)(),
|
|
88
|
+
__metadata("design:type", String)
|
|
89
|
+
], AuroraResult.prototype, "source", void 0);
|
|
90
|
+
__decorate([
|
|
91
|
+
(0, mongoose_1.Prop)({ type: String, required: true }),
|
|
92
|
+
(0, class_validator_1.IsString)(),
|
|
93
|
+
__metadata("design:type", String)
|
|
94
|
+
], AuroraResult.prototype, "simulatedAt", void 0);
|
|
95
|
+
exports.AuroraResult = AuroraResult = __decorate([
|
|
96
|
+
(0, mongoose_1.Schema)({ _id: false })
|
|
97
|
+
], AuroraResult);
|
|
98
|
+
exports.AuroraResultSchema = mongoose_1.SchemaFactory.createForClass(AuroraResult);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { InvoiceRatesOption } from '../enums/InvoiceRatesOption';
|
|
2
|
+
import { InvoicePricingPeriod, InvoiceSeason } from '../enums/InvoicePricingPeriod';
|
|
2
3
|
import { EnergyPrice } from './energy-price.model';
|
|
3
4
|
import { EnergyPriceTempo } from './energy-price-tempo.model';
|
|
4
5
|
export declare class InvoiceOcrResult {
|
|
@@ -9,6 +10,21 @@ export declare class InvoiceOcrResult {
|
|
|
9
10
|
energyPricesTempo?: EnergyPriceTempo[];
|
|
10
11
|
energyPricesWe?: EnergyPrice[];
|
|
11
12
|
subscriptionRates?: number;
|
|
13
|
+
/**
|
|
14
|
+
* Postes tarifaires effectivement lus sur la facture. Persisté : le front
|
|
15
|
+
* s'en sert, à la réouverture de la modale, pour savoir si une seconde
|
|
16
|
+
* facture (celle de l'autre saison) reste attendue.
|
|
17
|
+
*/
|
|
18
|
+
pricingPeriods?: InvoicePricingPeriod[];
|
|
19
|
+
/** Vrai lorsque la facture porte au moins un poste saisonnier. */
|
|
20
|
+
seasonal?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Saison absente d'une facture saisonnière. Seul cas où l'import d'une
|
|
23
|
+
* seconde facture est autorisé.
|
|
24
|
+
*/
|
|
25
|
+
missingSeason?: InvoiceSeason;
|
|
26
|
+
/** Vrai lorsque tous les postes de la structure tarifaire sont couverts. */
|
|
27
|
+
complete?: boolean;
|
|
12
28
|
}
|
|
13
29
|
export declare const InvoiceOcrResultSchema: import("mongoose").Schema<InvoiceOcrResult, import("mongoose").Model<InvoiceOcrResult, any, any, any, import("mongoose").Document<unknown, any, InvoiceOcrResult, any, {}> & InvoiceOcrResult & {
|
|
14
30
|
_id: import("mongoose").Types.ObjectId;
|
|
@@ -14,6 +14,7 @@ const mongoose_1 = require("@nestjs/mongoose");
|
|
|
14
14
|
const class_validator_1 = require("class-validator");
|
|
15
15
|
const class_transformer_1 = require("class-transformer");
|
|
16
16
|
const InvoiceRatesOption_1 = require("../enums/InvoiceRatesOption");
|
|
17
|
+
const InvoicePricingPeriod_1 = require("../enums/InvoicePricingPeriod");
|
|
17
18
|
const energy_price_model_1 = require("./energy-price.model");
|
|
18
19
|
const energy_price_tempo_model_1 = require("./energy-price-tempo.model");
|
|
19
20
|
let InvoiceOcrResult = class InvoiceOcrResult {
|
|
@@ -67,6 +68,31 @@ __decorate([
|
|
|
67
68
|
(0, class_validator_1.IsOptional)(),
|
|
68
69
|
__metadata("design:type", Number)
|
|
69
70
|
], InvoiceOcrResult.prototype, "subscriptionRates", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, mongoose_1.Prop)({ type: [String], enum: InvoicePricingPeriod_1.InvoicePricingPeriod, required: false }),
|
|
73
|
+
(0, class_validator_1.IsArray)(),
|
|
74
|
+
(0, class_validator_1.IsEnum)(InvoicePricingPeriod_1.InvoicePricingPeriod, { each: true }),
|
|
75
|
+
(0, class_validator_1.IsOptional)(),
|
|
76
|
+
__metadata("design:type", Array)
|
|
77
|
+
], InvoiceOcrResult.prototype, "pricingPeriods", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, mongoose_1.Prop)({ required: false }),
|
|
80
|
+
(0, class_validator_1.IsBoolean)(),
|
|
81
|
+
(0, class_validator_1.IsOptional)(),
|
|
82
|
+
__metadata("design:type", Boolean)
|
|
83
|
+
], InvoiceOcrResult.prototype, "seasonal", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
(0, mongoose_1.Prop)({ type: String, enum: InvoicePricingPeriod_1.InvoiceSeason, required: false }),
|
|
86
|
+
(0, class_validator_1.IsEnum)(InvoicePricingPeriod_1.InvoiceSeason),
|
|
87
|
+
(0, class_validator_1.IsOptional)(),
|
|
88
|
+
__metadata("design:type", String)
|
|
89
|
+
], InvoiceOcrResult.prototype, "missingSeason", void 0);
|
|
90
|
+
__decorate([
|
|
91
|
+
(0, mongoose_1.Prop)({ required: false }),
|
|
92
|
+
(0, class_validator_1.IsBoolean)(),
|
|
93
|
+
(0, class_validator_1.IsOptional)(),
|
|
94
|
+
__metadata("design:type", Boolean)
|
|
95
|
+
], InvoiceOcrResult.prototype, "complete", void 0);
|
|
70
96
|
exports.InvoiceOcrResult = InvoiceOcrResult = __decorate([
|
|
71
97
|
(0, mongoose_1.Schema)({ _id: false })
|
|
72
98
|
], InvoiceOcrResult);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Tracker } from './tracker';
|
|
2
2
|
import { UseCase } from './enums';
|
|
3
|
+
import { AuroraResult } from './aurora-result';
|
|
3
4
|
export declare class PVParams {
|
|
4
5
|
tracker: Tracker;
|
|
5
6
|
pvCapexTableA: number[];
|
|
@@ -37,4 +38,12 @@ export declare class PVParams {
|
|
|
37
38
|
pvAoBonus: number;
|
|
38
39
|
pvInvertorPowerRate: number;
|
|
39
40
|
pvDepreciationDuration: number;
|
|
41
|
+
/**
|
|
42
|
+
* Identifiant du design Aurora associé à cette instance PV (1:1, D2).
|
|
43
|
+
* Créé paresseusement, persisté, réutilisé. Effacé à la duplication de
|
|
44
|
+
* scénario (D4) afin qu'une réouverture d'Aurora crée un nouveau design.
|
|
45
|
+
*/
|
|
46
|
+
auroraDesignId?: string | null;
|
|
47
|
+
/** Snapshot figé du calepinage Aurora appliqué (D11). */
|
|
48
|
+
auroraResult?: AuroraResult | null;
|
|
40
49
|
}
|
|
@@ -14,6 +14,7 @@ const mongoose_1 = require("@nestjs/mongoose");
|
|
|
14
14
|
const class_validator_1 = require("class-validator");
|
|
15
15
|
const tracker_1 = require("./tracker");
|
|
16
16
|
const enums_1 = require("./enums");
|
|
17
|
+
const aurora_result_1 = require("./aurora-result");
|
|
17
18
|
let PVParams = class PVParams {
|
|
18
19
|
};
|
|
19
20
|
exports.PVParams = PVParams;
|
|
@@ -198,6 +199,18 @@ __decorate([
|
|
|
198
199
|
(0, class_validator_1.IsNumber)(),
|
|
199
200
|
__metadata("design:type", Number)
|
|
200
201
|
], PVParams.prototype, "pvDepreciationDuration", void 0);
|
|
202
|
+
__decorate([
|
|
203
|
+
(0, mongoose_1.Prop)({ type: String, default: null }),
|
|
204
|
+
(0, class_validator_1.IsOptional)(),
|
|
205
|
+
(0, class_validator_1.IsString)(),
|
|
206
|
+
__metadata("design:type", Object)
|
|
207
|
+
], PVParams.prototype, "auroraDesignId", void 0);
|
|
208
|
+
__decorate([
|
|
209
|
+
(0, mongoose_1.Prop)({ type: aurora_result_1.AuroraResultSchema, default: null }),
|
|
210
|
+
(0, class_validator_1.IsOptional)(),
|
|
211
|
+
(0, class_validator_1.ValidateNested)(),
|
|
212
|
+
__metadata("design:type", Object)
|
|
213
|
+
], PVParams.prototype, "auroraResult", void 0);
|
|
201
214
|
exports.PVParams = PVParams = __decorate([
|
|
202
215
|
(0, mongoose_1.Schema)({ _id: false })
|
|
203
216
|
], PVParams);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Tracker } from './tracker';
|
|
2
2
|
import { UseCase } from './enums';
|
|
3
|
+
import { AuroraResult } from './aurora-result';
|
|
3
4
|
export declare class PV2Params {
|
|
4
5
|
tracker: Tracker;
|
|
5
6
|
pv2CapexTableA: number[];
|
|
@@ -37,6 +38,10 @@ export declare class PV2Params {
|
|
|
37
38
|
pv2PurchasePrice: number[];
|
|
38
39
|
pv2LeasingLifespan: number;
|
|
39
40
|
pv2DepreciationDuration: number;
|
|
41
|
+
/** Identifiant du design Aurora associé à l'instance PV2 (1:1, D2). */
|
|
42
|
+
auroraDesignId?: string | null;
|
|
43
|
+
/** Snapshot figé du calepinage Aurora appliqué (D11). */
|
|
44
|
+
auroraResult?: AuroraResult | null;
|
|
40
45
|
}
|
|
41
46
|
export declare const PV2ParamsSchema: import("mongoose").Schema<PV2Params, import("mongoose").Model<PV2Params, any, any, any, import("mongoose").Document<unknown, any, PV2Params, any, {}> & PV2Params & {
|
|
42
47
|
_id: import("mongoose").Types.ObjectId;
|
|
@@ -14,6 +14,7 @@ const mongoose_1 = require("@nestjs/mongoose");
|
|
|
14
14
|
const class_validator_1 = require("class-validator");
|
|
15
15
|
const tracker_1 = require("./tracker");
|
|
16
16
|
const enums_1 = require("./enums");
|
|
17
|
+
const aurora_result_1 = require("./aurora-result");
|
|
17
18
|
let PV2Params = class PV2Params {
|
|
18
19
|
};
|
|
19
20
|
exports.PV2Params = PV2Params;
|
|
@@ -198,6 +199,18 @@ __decorate([
|
|
|
198
199
|
(0, class_validator_1.IsNumber)(),
|
|
199
200
|
__metadata("design:type", Number)
|
|
200
201
|
], PV2Params.prototype, "pv2DepreciationDuration", void 0);
|
|
202
|
+
__decorate([
|
|
203
|
+
(0, mongoose_1.Prop)({ type: String, default: null }),
|
|
204
|
+
(0, class_validator_1.IsOptional)(),
|
|
205
|
+
(0, class_validator_1.IsString)(),
|
|
206
|
+
__metadata("design:type", Object)
|
|
207
|
+
], PV2Params.prototype, "auroraDesignId", void 0);
|
|
208
|
+
__decorate([
|
|
209
|
+
(0, mongoose_1.Prop)({ type: aurora_result_1.AuroraResultSchema, default: null }),
|
|
210
|
+
(0, class_validator_1.IsOptional)(),
|
|
211
|
+
(0, class_validator_1.ValidateNested)(),
|
|
212
|
+
__metadata("design:type", Object)
|
|
213
|
+
], PV2Params.prototype, "auroraResult", void 0);
|
|
201
214
|
exports.PV2Params = PV2Params = __decorate([
|
|
202
215
|
(0, mongoose_1.Schema)({ _id: false })
|
|
203
216
|
], PV2Params);
|
package/dist/index.d.ts
CHANGED
|
@@ -40,6 +40,7 @@ export * from './core/enums/ImageryQuality';
|
|
|
40
40
|
export * from './core/enums/RetryHint';
|
|
41
41
|
export * from './core/enums/BannerSeverity';
|
|
42
42
|
export * from './core/enums/InvoiceRatesOption';
|
|
43
|
+
export * from './core/enums/InvoicePricingPeriod';
|
|
43
44
|
export * from './core/internal/microservice-error';
|
|
44
45
|
export * from './core/internal/battery-params';
|
|
45
46
|
export * from './core/internal/bounding-box';
|
|
@@ -87,6 +88,7 @@ export * from './core/internal/rates';
|
|
|
87
88
|
export * from './core/internal/folder.model';
|
|
88
89
|
export * from './core/internal/leads-form';
|
|
89
90
|
export * from './core/internal/aurora-solar';
|
|
91
|
+
export * from './core/internal/aurora-result';
|
|
90
92
|
export * from './core/internal/koncile';
|
|
91
93
|
export * from './core/webhookTypes/webhook-leads-output.dto';
|
|
92
94
|
export * from './core/webhookTypes/webhook-optimend-output.dto';
|
package/dist/index.js
CHANGED
|
@@ -66,6 +66,7 @@ __exportStar(require("./core/enums/ImageryQuality"), exports);
|
|
|
66
66
|
__exportStar(require("./core/enums/RetryHint"), exports);
|
|
67
67
|
__exportStar(require("./core/enums/BannerSeverity"), exports);
|
|
68
68
|
__exportStar(require("./core/enums/InvoiceRatesOption"), exports);
|
|
69
|
+
__exportStar(require("./core/enums/InvoicePricingPeriod"), exports);
|
|
69
70
|
// Error types
|
|
70
71
|
__exportStar(require("./core/internal/microservice-error"), exports);
|
|
71
72
|
// Sub-models
|
|
@@ -115,6 +116,7 @@ __exportStar(require("./core/internal/rates"), exports);
|
|
|
115
116
|
__exportStar(require("./core/internal/folder.model"), exports);
|
|
116
117
|
__exportStar(require("./core/internal/leads-form"), exports);
|
|
117
118
|
__exportStar(require("./core/internal/aurora-solar"), exports);
|
|
119
|
+
__exportStar(require("./core/internal/aurora-result"), exports);
|
|
118
120
|
// Koncile OCR
|
|
119
121
|
__exportStar(require("./core/internal/koncile"), exports);
|
|
120
122
|
// Webhook types
|