@likewatt/models 1.15.2 → 1.16.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.
@@ -19,6 +19,7 @@ export declare const LeadThemeConfigSchema: import("mongoose").Schema<LeadThemeC
19
19
  }>;
20
20
  export declare class LeadTenant {
21
21
  _id: string;
22
+ tenantId: string;
22
23
  subdomain: string;
23
24
  domain: string;
24
25
  defaultScenarioIds: string[];
@@ -64,6 +64,14 @@ __decorate([
64
64
  }),
65
65
  __metadata("design:type", String)
66
66
  ], LeadTenant.prototype, "_id", void 0);
67
+ __decorate([
68
+ (0, mongoose_1.Prop)({
69
+ type: String,
70
+ required: true,
71
+ default: () => (0, uuid_1.v4)(),
72
+ }),
73
+ __metadata("design:type", String)
74
+ ], LeadTenant.prototype, "tenantId", void 0);
67
75
  __decorate([
68
76
  (0, mongoose_1.Prop)({
69
77
  type: String,
@@ -7,6 +7,7 @@ export declare class PVParams {
7
7
  pvOpex: number[];
8
8
  pvSub: number[];
9
9
  pvCapexTot: number;
10
+ iskWh: boolean;
10
11
  pvOpexTot: number;
11
12
  pvSubTot: number;
12
13
  pvSubDuration: number;
@@ -47,6 +47,11 @@ __decorate([
47
47
  (0, class_validator_1.IsNumber)(),
48
48
  __metadata("design:type", Number)
49
49
  ], PVParams.prototype, "pvCapexTot", void 0);
50
+ __decorate([
51
+ (0, mongoose_1.Prop)({ required: true }),
52
+ (0, class_validator_1.IsBoolean)(),
53
+ __metadata("design:type", Boolean)
54
+ ], PVParams.prototype, "iskWh", void 0);
50
55
  __decorate([
51
56
  (0, mongoose_1.Prop)({ required: true }),
52
57
  (0, class_validator_1.IsNumber)(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@likewatt/models",
3
- "version": "1.15.2",
3
+ "version": "1.16.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {