@likewatt/models 1.118.0 → 1.120.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 +7 -0
- package/dist/core/enums/InvoiceNetwork.d.ts +18 -0
- package/dist/core/enums/InvoiceNetwork.js +22 -0
- package/dist/core/enums/InvoicePricingPeriod.d.ts +4 -3
- package/dist/core/enums/InvoicePricingPeriod.js +4 -3
- package/dist/core/internal/invoiceOcrResult.d.ts +21 -0
- package/dist/core/internal/invoiceOcrResult.js +13 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/package.json +1 -1
|
@@ -202,6 +202,13 @@ __decorate([
|
|
|
202
202
|
(0, class_validator_1.IsBoolean)(),
|
|
203
203
|
__metadata("design:type", Boolean)
|
|
204
204
|
], CollectiveSite.prototype, "hasAnalysis", void 0);
|
|
205
|
+
__decorate([
|
|
206
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
207
|
+
(0, mongoose_1.Prop)({ required: false }),
|
|
208
|
+
(0, class_validator_1.IsOptional)(),
|
|
209
|
+
(0, class_validator_1.IsNumber)(),
|
|
210
|
+
__metadata("design:type", Number)
|
|
211
|
+
], CollectiveSite.prototype, "analysisYear", void 0);
|
|
205
212
|
__decorate([
|
|
206
213
|
(0, swagger_1.ApiPropertyOptional)({ type: building_data_1.BuildingData }),
|
|
207
214
|
(0, mongoose_1.Prop)({ type: building_data_1.BuildingData, required: false }),
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Réseau de distribution auquel se rattache une facture analysée par l'OCR
|
|
3
|
+
* Koncile. Chaque réseau a son propre template Koncile (les factures n'ont ni la
|
|
4
|
+
* même mise en page, ni le même identifiant de point de livraison), et le champ
|
|
5
|
+
* détermine où atterrit l'identifiant extrait : `enedisNumber` (PRM à 14
|
|
6
|
+
* chiffres) ou `strasbourgNumber` (RTPL `12345_A1_1234567`).
|
|
7
|
+
*
|
|
8
|
+
* Le réseau est TOUJOURS choisi par l'appelant (onglet du front), jamais deviné
|
|
9
|
+
* du contenu de la facture : un essai en cascade de templates coûterait un token
|
|
10
|
+
* Koncile facturé par tentative.
|
|
11
|
+
*
|
|
12
|
+
* Absent sur une facture analysée avant l'ouverture du réseau Strasbourg : à lire
|
|
13
|
+
* comme `ENEDIS` (tout l'historique l'est).
|
|
14
|
+
*/
|
|
15
|
+
export declare enum InvoiceNetwork {
|
|
16
|
+
ENEDIS = "ENEDIS",
|
|
17
|
+
STRASBOURG = "STRASBOURG"
|
|
18
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InvoiceNetwork = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Réseau de distribution auquel se rattache une facture analysée par l'OCR
|
|
6
|
+
* Koncile. Chaque réseau a son propre template Koncile (les factures n'ont ni la
|
|
7
|
+
* même mise en page, ni le même identifiant de point de livraison), et le champ
|
|
8
|
+
* détermine où atterrit l'identifiant extrait : `enedisNumber` (PRM à 14
|
|
9
|
+
* chiffres) ou `strasbourgNumber` (RTPL `12345_A1_1234567`).
|
|
10
|
+
*
|
|
11
|
+
* Le réseau est TOUJOURS choisi par l'appelant (onglet du front), jamais deviné
|
|
12
|
+
* du contenu de la facture : un essai en cascade de templates coûterait un token
|
|
13
|
+
* Koncile facturé par tentative.
|
|
14
|
+
*
|
|
15
|
+
* Absent sur une facture analysée avant l'ouverture du réseau Strasbourg : à lire
|
|
16
|
+
* comme `ENEDIS` (tout l'historique l'est).
|
|
17
|
+
*/
|
|
18
|
+
var InvoiceNetwork;
|
|
19
|
+
(function (InvoiceNetwork) {
|
|
20
|
+
InvoiceNetwork["ENEDIS"] = "ENEDIS";
|
|
21
|
+
InvoiceNetwork["STRASBOURG"] = "STRASBOURG";
|
|
22
|
+
})(InvoiceNetwork || (exports.InvoiceNetwork = InvoiceNetwork = {}));
|
|
@@ -2,14 +2,15 @@
|
|
|
2
2
|
* Postes tarifaires de fourniture extraits d'une facture par l'OCR Koncile.
|
|
3
3
|
*
|
|
4
4
|
* Liste fermée : les templates Koncile renomment systématiquement les synonymes
|
|
5
|
-
* rencontrés sur les factures (HPE, « HP Hiver
|
|
6
|
-
*
|
|
7
|
-
*
|
|
5
|
+
* rencontrés sur les factures (HPE, « HP Hiver »…) vers l'un de ces libellés.
|
|
6
|
+
* Les suffixes marquent la saison — HS = haute saison (hiver), BS = basse
|
|
7
|
+
* saison (été).
|
|
8
8
|
*/
|
|
9
9
|
export declare enum InvoicePricingPeriod {
|
|
10
10
|
BASE = "BASE",
|
|
11
11
|
HP = "HP",
|
|
12
12
|
HC = "HC",
|
|
13
|
+
P = "P",
|
|
13
14
|
HPHS = "HPHS",
|
|
14
15
|
HCHS = "HCHS",
|
|
15
16
|
HPBS = "HPBS",
|
|
@@ -5,15 +5,16 @@ exports.InvoiceSeason = exports.InvoicePricingPeriod = void 0;
|
|
|
5
5
|
* Postes tarifaires de fourniture extraits d'une facture par l'OCR Koncile.
|
|
6
6
|
*
|
|
7
7
|
* Liste fermée : les templates Koncile renomment systématiquement les synonymes
|
|
8
|
-
* rencontrés sur les factures (HPE, « HP Hiver
|
|
9
|
-
*
|
|
10
|
-
*
|
|
8
|
+
* rencontrés sur les factures (HPE, « HP Hiver »…) vers l'un de ces libellés.
|
|
9
|
+
* Les suffixes marquent la saison — HS = haute saison (hiver), BS = basse
|
|
10
|
+
* saison (été).
|
|
11
11
|
*/
|
|
12
12
|
var InvoicePricingPeriod;
|
|
13
13
|
(function (InvoicePricingPeriod) {
|
|
14
14
|
InvoicePricingPeriod["BASE"] = "BASE";
|
|
15
15
|
InvoicePricingPeriod["HP"] = "HP";
|
|
16
16
|
InvoicePricingPeriod["HC"] = "HC";
|
|
17
|
+
InvoicePricingPeriod["P"] = "P";
|
|
17
18
|
InvoicePricingPeriod["HPHS"] = "HPHS";
|
|
18
19
|
InvoicePricingPeriod["HCHS"] = "HCHS";
|
|
19
20
|
InvoicePricingPeriod["HPBS"] = "HPBS";
|
|
@@ -1,10 +1,31 @@
|
|
|
1
1
|
import { InvoiceRatesOption } from '../enums/InvoiceRatesOption';
|
|
2
|
+
import { InvoiceNetwork } from '../enums/InvoiceNetwork';
|
|
2
3
|
import { InvoicePricingPeriod, InvoiceSeason } from '../enums/InvoicePricingPeriod';
|
|
3
4
|
import { EnergyPrice } from './energy-price.model';
|
|
4
5
|
import { EnergyPriceTempo } from './energy-price-tempo.model';
|
|
5
6
|
export declare class InvoiceOcrResult {
|
|
6
7
|
documentId?: number;
|
|
8
|
+
/** PRM Enedis (14 chiffres) lu sur la facture, si le réseau est ENEDIS. */
|
|
7
9
|
enedisNumber?: string;
|
|
10
|
+
/**
|
|
11
|
+
* RTPL Strasbourg (`12345_A1_1234567`) lu sur la facture, si le réseau est
|
|
12
|
+
* STRASBOURG. Champ distinct d'`enedisNumber` — et non un champ générique —
|
|
13
|
+
* pour calquer le couple déjà porté par `Site` : les deux ne sont jamais
|
|
14
|
+
* renseignés ensemble, un site n'étant raccordé qu'à un seul réseau.
|
|
15
|
+
*/
|
|
16
|
+
strasbourgNumber?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Réseau du template Koncile qui a produit ce résultat.
|
|
19
|
+
*
|
|
20
|
+
* Indispensable et non déductible : une facture Strasbourg peut ne porter
|
|
21
|
+
* aucun RTPL exploitable tout en fournissant des prix qu'on persiste, auquel
|
|
22
|
+
* cas les deux champs identifiants sont vides. Sert aussi à refuser la fusion
|
|
23
|
+
* d'un couple saisonnier inter-réseau et à savoir, à la réhydratation du
|
|
24
|
+
* formulaire, quel onglet la facture engage.
|
|
25
|
+
*
|
|
26
|
+
* Absent sur l'historique : à lire comme `ENEDIS`.
|
|
27
|
+
*/
|
|
28
|
+
network?: InvoiceNetwork;
|
|
8
29
|
ratesOption?: InvoiceRatesOption;
|
|
9
30
|
energyPrices?: EnergyPrice[];
|
|
10
31
|
energyPricesTempo?: EnergyPriceTempo[];
|
|
@@ -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 InvoiceNetwork_1 = require("../enums/InvoiceNetwork");
|
|
17
18
|
const InvoicePricingPeriod_1 = require("../enums/InvoicePricingPeriod");
|
|
18
19
|
const energy_price_model_1 = require("./energy-price.model");
|
|
19
20
|
const energy_price_tempo_model_1 = require("./energy-price-tempo.model");
|
|
@@ -32,6 +33,18 @@ __decorate([
|
|
|
32
33
|
(0, class_validator_1.IsOptional)(),
|
|
33
34
|
__metadata("design:type", String)
|
|
34
35
|
], InvoiceOcrResult.prototype, "enedisNumber", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, mongoose_1.Prop)({ required: false }),
|
|
38
|
+
(0, class_validator_1.IsString)(),
|
|
39
|
+
(0, class_validator_1.IsOptional)(),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], InvoiceOcrResult.prototype, "strasbourgNumber", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, mongoose_1.Prop)({ type: String, enum: InvoiceNetwork_1.InvoiceNetwork, required: false }),
|
|
44
|
+
(0, class_validator_1.IsEnum)(InvoiceNetwork_1.InvoiceNetwork),
|
|
45
|
+
(0, class_validator_1.IsOptional)(),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], InvoiceOcrResult.prototype, "network", void 0);
|
|
35
48
|
__decorate([
|
|
36
49
|
(0, mongoose_1.Prop)({ type: String, enum: InvoiceRatesOption_1.InvoiceRatesOption, required: false }),
|
|
37
50
|
(0, class_validator_1.IsEnum)(InvoiceRatesOption_1.InvoiceRatesOption),
|
package/dist/index.d.ts
CHANGED
|
@@ -43,6 +43,7 @@ export * from './core/enums/RetryHint';
|
|
|
43
43
|
export * from './core/enums/BannerSeverity';
|
|
44
44
|
export * from './core/enums/InvoiceRatesOption';
|
|
45
45
|
export * from './core/enums/InvoicePricingPeriod';
|
|
46
|
+
export * from './core/enums/InvoiceNetwork';
|
|
46
47
|
export * from './core/internal/microservice-error';
|
|
47
48
|
export * from './core/internal/battery-params';
|
|
48
49
|
export * from './core/internal/bounding-box';
|
package/dist/index.js
CHANGED
|
@@ -69,6 +69,7 @@ __exportStar(require("./core/enums/RetryHint"), exports);
|
|
|
69
69
|
__exportStar(require("./core/enums/BannerSeverity"), exports);
|
|
70
70
|
__exportStar(require("./core/enums/InvoiceRatesOption"), exports);
|
|
71
71
|
__exportStar(require("./core/enums/InvoicePricingPeriod"), exports);
|
|
72
|
+
__exportStar(require("./core/enums/InvoiceNetwork"), exports);
|
|
72
73
|
// Error types
|
|
73
74
|
__exportStar(require("./core/internal/microservice-error"), exports);
|
|
74
75
|
// Sub-models
|