@likewatt/models 1.143.0 → 1.144.1
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 +13 -0
- package/dist/core/Site.d.ts +1 -0
- package/dist/core/Site.js +12 -0
- package/dist/core/User.d.ts +0 -1
- package/dist/core/User.js +0 -10
- package/package.json +1 -1
|
@@ -14,6 +14,7 @@ const mongoose_1 = require("@nestjs/mongoose");
|
|
|
14
14
|
const swagger_1 = require("@nestjs/swagger");
|
|
15
15
|
const uuid_1 = require("uuid");
|
|
16
16
|
const class_validator_1 = require("class-validator");
|
|
17
|
+
const class_transformer_1 = require("class-transformer");
|
|
17
18
|
const enums_1 = require("./internal/enums");
|
|
18
19
|
const building_data_1 = require("./internal/building-data");
|
|
19
20
|
const BuildingDataStatus_1 = require("./enums/BuildingDataStatus");
|
|
@@ -253,6 +254,16 @@ __decorate([
|
|
|
253
254
|
(0, class_validator_1.IsBoolean)(),
|
|
254
255
|
__metadata("design:type", Boolean)
|
|
255
256
|
], CollectiveSite.prototype, "consentUploadEnabled", void 0);
|
|
257
|
+
__decorate([
|
|
258
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
259
|
+
description: 'Date de suppression (passage au compte support) ; absente ou null = projet actif. Posée et effacée par la gateway.',
|
|
260
|
+
}),
|
|
261
|
+
(0, mongoose_1.Prop)({ type: Date, required: false, default: undefined }),
|
|
262
|
+
(0, class_validator_1.IsOptional)(),
|
|
263
|
+
(0, class_validator_1.IsDate)(),
|
|
264
|
+
(0, class_transformer_1.Type)(() => Date),
|
|
265
|
+
__metadata("design:type", Object)
|
|
266
|
+
], CollectiveSite.prototype, "deletedAt", void 0);
|
|
256
267
|
__decorate([
|
|
257
268
|
(0, swagger_1.ApiPropertyOptional)(),
|
|
258
269
|
(0, class_validator_1.IsOptional)(),
|
|
@@ -272,6 +283,8 @@ exports.CollectiveSite = CollectiveSite = __decorate([
|
|
|
272
283
|
})
|
|
273
284
|
], CollectiveSite);
|
|
274
285
|
exports.CollectiveSiteSchema = mongoose_1.SchemaFactory.createForClass(CollectiveSite);
|
|
286
|
+
// Index de la purge des consentements (projets supprimés depuis plus de 5 ans)
|
|
287
|
+
exports.CollectiveSiteSchema.index({ deletedAt: 1 });
|
|
275
288
|
// Hook pre-save pour générer automatiquement un UUID si _id n'est pas fourni
|
|
276
289
|
exports.CollectiveSiteSchema.pre('save', function (next) {
|
|
277
290
|
if (!this._id) {
|
package/dist/core/Site.d.ts
CHANGED
package/dist/core/Site.js
CHANGED
|
@@ -765,6 +765,16 @@ __decorate([
|
|
|
765
765
|
(0, mongoose_1.Prop)({ required: false }),
|
|
766
766
|
__metadata("design:type", String)
|
|
767
767
|
], Site.prototype, "demoTemplateSourceId", void 0);
|
|
768
|
+
__decorate([
|
|
769
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
770
|
+
description: 'Date de suppression (passage au compte support) ; absente ou null = projet actif. Posée et effacée par la gateway.',
|
|
771
|
+
}),
|
|
772
|
+
(0, mongoose_1.Prop)({ type: Date, required: false, default: undefined }),
|
|
773
|
+
(0, class_validator_1.IsOptional)(),
|
|
774
|
+
(0, class_validator_1.IsDate)(),
|
|
775
|
+
(0, class_transformer_1.Type)(() => Date),
|
|
776
|
+
__metadata("design:type", Object)
|
|
777
|
+
], Site.prototype, "deletedAt", void 0);
|
|
768
778
|
__decorate([
|
|
769
779
|
(0, swagger_1.ApiPropertyOptional)(),
|
|
770
780
|
(0, class_validator_1.IsOptional)(),
|
|
@@ -784,6 +794,8 @@ exports.Site = Site = __decorate([
|
|
|
784
794
|
})
|
|
785
795
|
], Site);
|
|
786
796
|
exports.SiteSchema = mongoose_1.SchemaFactory.createForClass(Site);
|
|
797
|
+
// Index de la purge des consentements (projets supprimés depuis plus de 5 ans)
|
|
798
|
+
exports.SiteSchema.index({ deletedAt: 1 });
|
|
787
799
|
// Hook pre-save pour générer automatiquement un UUID si _id n'est pas fourni
|
|
788
800
|
exports.SiteSchema.pre('save', function (next) {
|
|
789
801
|
if (!this._id) {
|
package/dist/core/User.d.ts
CHANGED
package/dist/core/User.js
CHANGED
|
@@ -605,16 +605,6 @@ __decorate([
|
|
|
605
605
|
(0, class_validator_1.IsBoolean)(),
|
|
606
606
|
__metadata("design:type", Boolean)
|
|
607
607
|
], User.prototype, "auroraEnabled", void 0);
|
|
608
|
-
__decorate([
|
|
609
|
-
(0, swagger_1.ApiPropertyOptional)({
|
|
610
|
-
description: 'Compte pilote de l’essai gratuit Aurora : avant l’ouverture à tous (AURORA_SELF_ACTIVATION côté gateway), seuls les titulaires pilotes voient Aurora et peuvent activer leur compte.',
|
|
611
|
-
example: false,
|
|
612
|
-
}),
|
|
613
|
-
(0, mongoose_1.Prop)({ type: Boolean, default: false }),
|
|
614
|
-
(0, class_validator_1.IsOptional)(),
|
|
615
|
-
(0, class_validator_1.IsBoolean)(),
|
|
616
|
-
__metadata("design:type", Boolean)
|
|
617
|
-
], User.prototype, "auroraPilot", void 0);
|
|
618
608
|
__decorate([
|
|
619
609
|
(0, swagger_1.ApiPropertyOptional)({
|
|
620
610
|
description: 'Module Aurora coupé par un admin Likewatt (switch « Module activé » sur OFF) : le titulaire et ses membres ne voient plus rien d’Aurora, et l’activation au clic ne peut pas le rétablir.',
|