@likewatt/models 1.25.0 → 1.26.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.
@@ -55,7 +55,7 @@ export declare class Site {
55
55
  analysisYear?: number;
56
56
  buildingData?: BuildingData | null;
57
57
  buildingDataStatus?: BuildingDataStatus | null;
58
- autoCO2: boolean;
58
+ autoC02: boolean;
59
59
  co2rate?: number | null;
60
60
  connectingPower: number;
61
61
  consentFileUrl?: string;
package/dist/core/Site.js CHANGED
@@ -308,7 +308,7 @@ __decorate([
308
308
  (0, mongoose_1.Prop)({ type: Boolean, required: true, default: false }),
309
309
  (0, class_validator_1.IsBoolean)(),
310
310
  __metadata("design:type", Boolean)
311
- ], Site.prototype, "autoCO2", void 0);
311
+ ], Site.prototype, "autoC02", void 0);
312
312
  __decorate([
313
313
  (0, swagger_1.ApiProperty)(),
314
314
  (0, mongoose_1.Prop)({ type: Number, required: false }),
@@ -1,5 +1,5 @@
1
1
  export declare class CustomerInfos {
2
- code: string;
2
+ code?: string;
3
3
  email: string;
4
4
  firstname: string;
5
5
  lastname: string;
@@ -16,7 +16,7 @@ let CustomerInfos = class CustomerInfos {
16
16
  };
17
17
  exports.CustomerInfos = CustomerInfos;
18
18
  __decorate([
19
- (0, mongoose_1.Prop)({ required: true }),
19
+ (0, mongoose_1.Prop)({ required: false }),
20
20
  (0, class_validator_1.IsString)(),
21
21
  __metadata("design:type", String)
22
22
  ], CustomerInfos.prototype, "code", void 0);
@@ -3,7 +3,7 @@ export declare class LeadsForm {
3
3
  lastname: string;
4
4
  email: string;
5
5
  phone: string;
6
- company?: string;
6
+ company: string;
7
7
  address: string;
8
8
  addressCity: string;
9
9
  addressZipCode: string;
@@ -11,6 +11,7 @@ export declare class LeadsForm {
11
11
  addressDepartementNum: number;
12
12
  addressGeocode: number[];
13
13
  scenarioOption?: string;
14
+ code?: string;
14
15
  }
15
16
  export declare const LeadsFormSchema: import("mongoose").Schema<LeadsForm, import("mongoose").Model<LeadsForm, any, any, any, import("mongoose").Document<unknown, any, LeadsForm, any, {}> & LeadsForm & {
16
17
  _id: import("mongoose").Types.ObjectId;
@@ -42,7 +42,7 @@ __decorate([
42
42
  ], LeadsForm.prototype, "phone", void 0);
43
43
  __decorate([
44
44
  (0, swagger_1.ApiPropertyOptional)(),
45
- (0, mongoose_1.Prop)({ required: false }),
45
+ (0, mongoose_1.Prop)({ required: true }),
46
46
  (0, class_validator_1.IsOptional)(),
47
47
  (0, class_validator_1.IsString)(),
48
48
  __metadata("design:type", String)
@@ -90,6 +90,13 @@ __decorate([
90
90
  (0, class_validator_1.IsString)(),
91
91
  __metadata("design:type", String)
92
92
  ], LeadsForm.prototype, "scenarioOption", void 0);
93
+ __decorate([
94
+ (0, swagger_1.ApiPropertyOptional)(),
95
+ (0, mongoose_1.Prop)({ type: String, required: false }),
96
+ (0, class_validator_1.IsOptional)(),
97
+ (0, class_validator_1.IsString)(),
98
+ __metadata("design:type", String)
99
+ ], LeadsForm.prototype, "code", void 0);
93
100
  exports.LeadsForm = LeadsForm = __decorate([
94
101
  (0, mongoose_1.Schema)({
95
102
  timestamps: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@likewatt/models",
3
- "version": "1.25.0",
3
+ "version": "1.26.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {