@likewatt/models 1.10.0 → 1.10.3
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.
- package/dist/core/CollectiveSite.d.ts +1 -0
- package/dist/core/CollectiveSite.js +6 -0
- package/dist/core/Site.d.ts +2 -0
- package/dist/core/Site.js +12 -0
- package/dist/core/User.d.ts +2 -0
- package/dist/core/User.js +12 -0
- package/package.json +1 -1
|
@@ -26,6 +26,7 @@ export declare class CollectiveSite {
|
|
|
26
26
|
isVisible: boolean;
|
|
27
27
|
timezone: number;
|
|
28
28
|
sites: string[];
|
|
29
|
+
hasAnalysis: boolean;
|
|
29
30
|
}
|
|
30
31
|
export declare const CollectiveSiteSchema: import("mongoose").Schema<CollectiveSite, import("mongoose").Model<CollectiveSite, any, any, any, Document<unknown, any, CollectiveSite, any, {}> & CollectiveSite & Required<{
|
|
31
32
|
_id: string;
|
|
@@ -171,6 +171,12 @@ __decorate([
|
|
|
171
171
|
(0, class_validator_1.IsArray)(),
|
|
172
172
|
__metadata("design:type", Array)
|
|
173
173
|
], CollectiveSite.prototype, "sites", void 0);
|
|
174
|
+
__decorate([
|
|
175
|
+
(0, swagger_1.ApiProperty)(),
|
|
176
|
+
(0, mongoose_1.Prop)({ required: true, default: false }),
|
|
177
|
+
(0, class_validator_1.IsBoolean)(),
|
|
178
|
+
__metadata("design:type", Boolean)
|
|
179
|
+
], CollectiveSite.prototype, "hasAnalysis", void 0);
|
|
174
180
|
exports.CollectiveSite = CollectiveSite = __decorate([
|
|
175
181
|
(0, mongoose_1.Schema)({
|
|
176
182
|
id: false,
|
package/dist/core/Site.d.ts
CHANGED
|
@@ -94,6 +94,8 @@ export declare class Site {
|
|
|
94
94
|
timezone: number;
|
|
95
95
|
TMYstatus?: number;
|
|
96
96
|
comments?: Comments;
|
|
97
|
+
hasConsoData: boolean;
|
|
98
|
+
hasAnalysis: boolean;
|
|
97
99
|
}
|
|
98
100
|
export type SiteDocument = Site & Document;
|
|
99
101
|
export declare const SiteSchema: import("mongoose").Schema<Site, import("mongoose").Model<Site, any, any, any, Document<unknown, any, Site, any, {}> & Site & Required<{
|
package/dist/core/Site.js
CHANGED
|
@@ -547,6 +547,18 @@ __decorate([
|
|
|
547
547
|
(0, class_validator_1.IsArray)(),
|
|
548
548
|
__metadata("design:type", comments_1.Comments)
|
|
549
549
|
], Site.prototype, "comments", void 0);
|
|
550
|
+
__decorate([
|
|
551
|
+
(0, swagger_1.ApiProperty)(),
|
|
552
|
+
(0, mongoose_1.Prop)({ required: true, default: false }),
|
|
553
|
+
(0, class_validator_1.IsBoolean)(),
|
|
554
|
+
__metadata("design:type", Boolean)
|
|
555
|
+
], Site.prototype, "hasConsoData", void 0);
|
|
556
|
+
__decorate([
|
|
557
|
+
(0, swagger_1.ApiProperty)(),
|
|
558
|
+
(0, mongoose_1.Prop)({ required: true, default: false }),
|
|
559
|
+
(0, class_validator_1.IsBoolean)(),
|
|
560
|
+
__metadata("design:type", Boolean)
|
|
561
|
+
], Site.prototype, "hasAnalysis", void 0);
|
|
550
562
|
exports.Site = Site = __decorate([
|
|
551
563
|
(0, mongoose_1.Schema)({
|
|
552
564
|
id: false,
|
package/dist/core/User.d.ts
CHANGED
|
@@ -116,6 +116,8 @@ export declare class User {
|
|
|
116
116
|
webhook?: WebhookParams;
|
|
117
117
|
tokenData?: tokenData;
|
|
118
118
|
_lastConnected?: string;
|
|
119
|
+
startDate?: Date;
|
|
120
|
+
endDate?: Date;
|
|
119
121
|
}
|
|
120
122
|
export type UserDocument = User & Document;
|
|
121
123
|
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
|
@@ -618,6 +618,18 @@ __decorate([
|
|
|
618
618
|
(0, class_validator_1.IsString)(),
|
|
619
619
|
__metadata("design:type", String)
|
|
620
620
|
], User.prototype, "_lastConnected", void 0);
|
|
621
|
+
__decorate([
|
|
622
|
+
(0, swagger_1.ApiProperty)(),
|
|
623
|
+
(0, mongoose_1.Prop)({ type: Date, required: false }),
|
|
624
|
+
(0, class_validator_1.IsDate)(),
|
|
625
|
+
__metadata("design:type", Date)
|
|
626
|
+
], User.prototype, "startDate", void 0);
|
|
627
|
+
__decorate([
|
|
628
|
+
(0, swagger_1.ApiProperty)(),
|
|
629
|
+
(0, mongoose_1.Prop)({ type: Date, required: false }),
|
|
630
|
+
(0, class_validator_1.IsDate)(),
|
|
631
|
+
__metadata("design:type", Date)
|
|
632
|
+
], User.prototype, "endDate", void 0);
|
|
621
633
|
exports.User = User = __decorate([
|
|
622
634
|
(0, mongoose_1.Schema)({
|
|
623
635
|
id: false,
|