@likewatt/models 1.31.0 → 1.32.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.
@@ -120,6 +120,7 @@ export declare class User {
120
120
  startDate?: Date;
121
121
  endDate?: Date;
122
122
  stripeCustomerId?: string;
123
+ standAlone?: boolean;
123
124
  }
124
125
  export type UserDocument = User & Document;
125
126
  export declare const UserSchema: import("mongoose").Schema<User, import("mongoose").Model<User, any, any, any, Document<unknown, any, User, any, {}> & User & Required<{
package/dist/core/User.js CHANGED
@@ -651,6 +651,12 @@ __decorate([
651
651
  (0, class_validator_1.IsString)(),
652
652
  __metadata("design:type", String)
653
653
  ], User.prototype, "stripeCustomerId", void 0);
654
+ __decorate([
655
+ (0, swagger_1.ApiProperty)(),
656
+ (0, mongoose_1.Prop)({ type: Boolean, required: false }),
657
+ (0, class_validator_1.IsBoolean)(),
658
+ __metadata("design:type", Boolean)
659
+ ], User.prototype, "standAlone", void 0);
654
660
  exports.User = User = __decorate([
655
661
  (0, mongoose_1.Schema)({
656
662
  id: false,
@@ -1,7 +1,7 @@
1
1
  export declare class BuildingStats {
2
- areaMeter: number;
2
+ areaMeters2: number;
3
3
  groundAreaMeters2: number;
4
- sunshineQuanties: number[];
4
+ sunshineQuantiles: number[];
5
5
  }
6
6
  export declare const BuildingStatsSchema: import("mongoose").Schema<BuildingStats, import("mongoose").Model<BuildingStats, any, any, any, import("mongoose").Document<unknown, any, BuildingStats, any, {}> & BuildingStats & {
7
7
  _id: import("mongoose").Types.ObjectId;
@@ -17,7 +17,7 @@ exports.BuildingStats = BuildingStats;
17
17
  __decorate([
18
18
  (0, mongoose_1.Prop)(),
19
19
  __metadata("design:type", Number)
20
- ], BuildingStats.prototype, "areaMeter", void 0);
20
+ ], BuildingStats.prototype, "areaMeters2", void 0);
21
21
  __decorate([
22
22
  (0, mongoose_1.Prop)(),
23
23
  __metadata("design:type", Number)
@@ -25,7 +25,7 @@ __decorate([
25
25
  __decorate([
26
26
  (0, mongoose_1.Prop)([Number]),
27
27
  __metadata("design:type", Array)
28
- ], BuildingStats.prototype, "sunshineQuanties", void 0);
28
+ ], BuildingStats.prototype, "sunshineQuantiles", void 0);
29
29
  exports.BuildingStats = BuildingStats = __decorate([
30
30
  (0, mongoose_1.Schema)({ _id: false })
31
31
  ], BuildingStats);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@likewatt/models",
3
- "version": "1.31.0",
3
+ "version": "1.32.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {