@likewatt/models 1.115.0 → 1.116.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 +9 -0
- package/dist/core/Site.js +7 -0
- package/package.json +1 -1
package/dist/core/Site.d.ts
CHANGED
|
@@ -100,6 +100,15 @@ export declare class Site {
|
|
|
100
100
|
customerConsentFirstName?: string;
|
|
101
101
|
customerConsentLastName?: string;
|
|
102
102
|
dataIsHybridFrom?: string;
|
|
103
|
+
/**
|
|
104
|
+
* Nature de la donnée de consommation (soutirage) réellement produite par
|
|
105
|
+
* la dernière extraction réussie. `selectedDataSource`/`dataSource`
|
|
106
|
+
* restent à 'ENEDIS' : cette clé ne dit pas d'où vient la donnée, mais
|
|
107
|
+
* comment elle a été obtenue. Pilote le type de requête rejoué au
|
|
108
|
+
* rafraîchissement (cf. docs/enedis-index-refresh-spec.md côté api-v2).
|
|
109
|
+
* `undefined` sur les sites antérieurs = traité comme 'COURBE'.
|
|
110
|
+
*/
|
|
111
|
+
extractionType?: 'COURBE' | 'INDEX' | 'HYBRIDE';
|
|
103
112
|
dataSourceHistory: DataSourceHistory[];
|
|
104
113
|
dataSource?: string;
|
|
105
114
|
selectedDataSource?: string;
|
package/dist/core/Site.js
CHANGED
|
@@ -471,6 +471,13 @@ __decorate([
|
|
|
471
471
|
(0, class_validator_1.IsString)(),
|
|
472
472
|
__metadata("design:type", String)
|
|
473
473
|
], Site.prototype, "dataIsHybridFrom", void 0);
|
|
474
|
+
__decorate([
|
|
475
|
+
(0, swagger_1.ApiPropertyOptional)({ enum: ['COURBE', 'INDEX', 'HYBRIDE'] }),
|
|
476
|
+
(0, mongoose_1.Prop)({ required: false }),
|
|
477
|
+
(0, class_validator_1.IsOptional)(),
|
|
478
|
+
(0, class_validator_1.IsIn)(['COURBE', 'INDEX', 'HYBRIDE']),
|
|
479
|
+
__metadata("design:type", String)
|
|
480
|
+
], Site.prototype, "extractionType", void 0);
|
|
474
481
|
__decorate([
|
|
475
482
|
(0, swagger_1.ApiPropertyOptional)({ type: [data_source_history_1.DataSourceHistory] }),
|
|
476
483
|
(0, mongoose_1.Prop)({ type: [data_source_history_1.DataSourceHistorySchema], required: false, default: [] }),
|