@likewatt/models 1.1.18 → 1.1.20

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.
@@ -8,7 +8,6 @@ import { Document, Types } from 'mongoose';
8
8
  */
9
9
  export declare class Consent {
10
10
  _id: Types.ObjectId;
11
- _createdAt: Date;
12
11
  companyName: string;
13
12
  contractConsent: boolean;
14
13
  courbeConsent: boolean;
@@ -33,15 +33,6 @@ __decorate([
33
33
  }),
34
34
  __metadata("design:type", mongoose_1.Types.ObjectId)
35
35
  ], Consent.prototype, "_id", void 0);
36
- __decorate([
37
- (0, swagger_1.ApiProperty)({
38
- description: 'Date de début de la licence',
39
- example: '2023-01-01T00:00:00Z',
40
- }),
41
- (0, mongoose_2.Prop)({ type: Date, required: true }),
42
- (0, class_validator_1.IsDate)(),
43
- __metadata("design:type", Date)
44
- ], Consent.prototype, "_createdAt", void 0);
45
36
  __decorate([
46
37
  (0, swagger_1.ApiProperty)({
47
38
  description: 'Nom de l’entreprise',
@@ -69,6 +69,7 @@ export declare class Site {
69
69
  dataIsHybridFrom: string;
70
70
  dataSourceHistory: DataSourceHistory[];
71
71
  dataSource: string;
72
+ selectedDataSource: string;
72
73
  disabled: boolean;
73
74
  enedisBuffer: string;
74
75
  enedisData: boolean;
package/dist/core/Site.js CHANGED
@@ -385,6 +385,12 @@ __decorate([
385
385
  (0, class_validator_1.IsString)(),
386
386
  __metadata("design:type", String)
387
387
  ], Site.prototype, "dataSource", void 0);
388
+ __decorate([
389
+ (0, swagger_1.ApiProperty)(),
390
+ (0, mongoose_1.Prop)({ required: true }),
391
+ (0, class_validator_1.IsString)(),
392
+ __metadata("design:type", String)
393
+ ], Site.prototype, "selectedDataSource", void 0);
388
394
  __decorate([
389
395
  (0, swagger_1.ApiProperty)(),
390
396
  (0, mongoose_1.Prop)({ required: false }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@likewatt/models",
3
- "version": "1.1.18",
3
+ "version": "1.1.20",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {