@likewatt/models 1.2.8 → 1.2.10

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.
@@ -3,8 +3,6 @@ import { SiteType } from './internal/enums';
3
3
  export type CollectiveSiteDocument = CollectiveSite & Document;
4
4
  export declare class CollectiveSite {
5
5
  readonly _id: string;
6
- _createdAt: string;
7
- _lastModified: string;
8
6
  addressGeocode: number[];
9
7
  type: SiteType;
10
8
  description?: string;
@@ -28,18 +28,6 @@ __decorate([
28
28
  (0, mongoose_1.Prop)({ type: String }),
29
29
  __metadata("design:type", String)
30
30
  ], CollectiveSite.prototype, "_id", void 0);
31
- __decorate([
32
- (0, swagger_1.ApiProperty)(),
33
- (0, mongoose_1.Prop)({ required: true }),
34
- (0, class_validator_1.IsString)(),
35
- __metadata("design:type", String)
36
- ], CollectiveSite.prototype, "_createdAt", void 0);
37
- __decorate([
38
- (0, swagger_1.ApiProperty)(),
39
- (0, mongoose_1.Prop)({ required: true }),
40
- (0, class_validator_1.IsString)(),
41
- __metadata("design:type", String)
42
- ], CollectiveSite.prototype, "_lastModified", void 0);
43
31
  __decorate([
44
32
  (0, swagger_1.ApiProperty)(),
45
33
  (0, mongoose_1.Prop)({ type: [Number], required: true }),
@@ -49,9 +49,6 @@ export declare class Site {
49
49
  customerInfos?: CustomerInfos;
50
50
  TCSPE?: number;
51
51
  TURPE_VERSION?: number;
52
- _createdAt?: Date | string;
53
- _lastModified?: Date | string;
54
- _lastUpdated?: Date | string;
55
52
  _step3?: boolean;
56
53
  _step3At?: Date | string;
57
54
  analysisYear?: number;
package/dist/core/Site.js CHANGED
@@ -273,27 +273,6 @@ __decorate([
273
273
  (0, class_validator_1.IsNumber)(),
274
274
  __metadata("design:type", Number)
275
275
  ], Site.prototype, "TURPE_VERSION", void 0);
276
- __decorate([
277
- (0, swagger_1.ApiPropertyOptional)(),
278
- (0, mongoose_1.Prop)({ type: Date, required: false }),
279
- (0, class_validator_1.IsOptional)(),
280
- (0, class_validator_1.IsDate)(),
281
- __metadata("design:type", Object)
282
- ], Site.prototype, "_createdAt", void 0);
283
- __decorate([
284
- (0, swagger_1.ApiPropertyOptional)(),
285
- (0, mongoose_1.Prop)({ type: Date, required: false }),
286
- (0, class_validator_1.IsOptional)(),
287
- (0, class_validator_1.IsDate)(),
288
- __metadata("design:type", Object)
289
- ], Site.prototype, "_lastModified", void 0);
290
- __decorate([
291
- (0, swagger_1.ApiPropertyOptional)(),
292
- (0, mongoose_1.Prop)({ type: String, required: false }),
293
- (0, class_validator_1.IsOptional)(),
294
- (0, class_validator_1.IsString)(),
295
- __metadata("design:type", Object)
296
- ], Site.prototype, "_lastUpdated", void 0);
297
276
  __decorate([
298
277
  (0, swagger_1.ApiPropertyOptional)(),
299
278
  (0, mongoose_1.Prop)({ required: false }),
@@ -113,7 +113,6 @@ export declare class User {
113
113
  rights: Rights;
114
114
  webhook?: WebhookParams;
115
115
  tokenData?: tokenData;
116
- _createdAt?: string;
117
116
  _lastConnected?: string;
118
117
  }
119
118
  export type UserDocument = User & Document;
package/dist/core/User.js CHANGED
@@ -600,17 +600,6 @@ __decorate([
600
600
  (0, class_validator_1.IsOptional)(),
601
601
  __metadata("design:type", tokenData)
602
602
  ], User.prototype, "tokenData", void 0);
603
- __decorate([
604
- (0, swagger_1.ApiProperty)({
605
- description: 'Date interne de création (legacy)',
606
- example: '30-04-2024',
607
- type: String,
608
- }),
609
- (0, mongoose_1.Prop)({ type: String, required: false }),
610
- (0, class_validator_1.IsOptional)(),
611
- (0, class_validator_1.IsString)(),
612
- __metadata("design:type", String)
613
- ], User.prototype, "_createdAt", void 0);
614
603
  __decorate([
615
604
  (0, swagger_1.ApiProperty)({
616
605
  description: 'Date de dernière connexion (legacy)',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@likewatt/models",
3
- "version": "1.2.8",
3
+ "version": "1.2.10",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {