@likewatt/models 1.57.5 → 1.57.7

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.
@@ -51,7 +51,6 @@ __decorate([
51
51
  type: String,
52
52
  }),
53
53
  (0, mongoose_1.Prop)({ type: String, required: true }),
54
- (0, class_validator_1.IsEmail)(),
55
54
  __metadata("design:type", String)
56
55
  ], Invitation.prototype, "principal", void 0);
57
56
  __decorate([
@@ -677,7 +677,11 @@ __decorate([
677
677
  __metadata("design:type", Boolean)
678
678
  ], ScenarioType.prototype, "isLeads", void 0);
679
679
  exports.ScenarioType = ScenarioType = __decorate([
680
- (0, mongoose_1.Schema)()
680
+ (0, mongoose_1.Schema)({
681
+ timestamps: true,
682
+ toJSON: { virtuals: true, versionKey: false },
683
+ toObject: { virtuals: true, versionKey: false },
684
+ })
681
685
  ], ScenarioType);
682
686
  exports.ScenarioTypeSchema = mongoose_1.SchemaFactory.createForClass(ScenarioType);
683
687
  // Hook pre-save pour générer automatiquement un UUID si _id n'est pas fourni
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@likewatt/models",
3
- "version": "1.57.5",
3
+ "version": "1.57.7",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {