@likewatt/models 1.0.46 → 1.0.48

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.
@@ -7,14 +7,14 @@ export declare class CollectiveSite {
7
7
  _lastModified: string;
8
8
  addressGeocode: number[];
9
9
  type: SiteType;
10
- description: string;
10
+ description?: string | undefined;
11
11
  address: string;
12
12
  initialOwner: string;
13
13
  name: string;
14
14
  isC_AND_I: boolean;
15
15
  currency: string;
16
- autoCO2: boolean;
17
- co2rate: number;
16
+ autoCO2?: boolean | null;
17
+ co2rate?: number | null;
18
18
  folder?: string;
19
19
  TCSPE: number;
20
20
  TURPE_VERSION: number;
@@ -53,9 +53,10 @@ __decorate([
53
53
  ], CollectiveSite.prototype, "type", void 0);
54
54
  __decorate([
55
55
  (0, swagger_1.ApiProperty)(),
56
- (0, mongoose_1.Prop)({ required: true }),
56
+ (0, mongoose_1.Prop)({ required: false }),
57
+ (0, class_validator_1.IsOptional)(),
57
58
  (0, class_validator_1.IsString)(),
58
- __metadata("design:type", String)
59
+ __metadata("design:type", Object)
59
60
  ], CollectiveSite.prototype, "description", void 0);
60
61
  __decorate([
61
62
  (0, swagger_1.ApiProperty)(),
@@ -89,15 +90,17 @@ __decorate([
89
90
  ], CollectiveSite.prototype, "currency", void 0);
90
91
  __decorate([
91
92
  (0, swagger_1.ApiProperty)(),
92
- (0, mongoose_1.Prop)({ required: true }),
93
+ (0, mongoose_1.Prop)({ required: false, default: null }),
94
+ (0, class_validator_1.IsOptional)(),
93
95
  (0, class_validator_1.IsBoolean)(),
94
- __metadata("design:type", Boolean)
96
+ __metadata("design:type", Object)
95
97
  ], CollectiveSite.prototype, "autoCO2", void 0);
96
98
  __decorate([
97
99
  (0, swagger_1.ApiProperty)(),
98
- (0, mongoose_1.Prop)({ required: true }),
100
+ (0, mongoose_1.Prop)({ required: false, default: null }),
101
+ (0, class_validator_1.IsOptional)(),
99
102
  (0, class_validator_1.IsNumber)(),
100
- __metadata("design:type", Number)
103
+ __metadata("design:type", Object)
101
104
  ], CollectiveSite.prototype, "co2rate", void 0);
102
105
  __decorate([
103
106
  (0, swagger_1.ApiPropertyOptional)(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@likewatt/models",
3
- "version": "1.0.46",
3
+ "version": "1.0.48",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {