@likewatt/models 1.0.100 → 1.0.101

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.
@@ -113,6 +113,7 @@ export declare class User {
113
113
  rights: Rights;
114
114
  webhook?: WebhookParams;
115
115
  tokenData?: tokenData;
116
+ isEmailConfirmed: boolean;
116
117
  _createdAt?: string;
117
118
  _lastConnected?: string;
118
119
  }
package/dist/core/User.js CHANGED
@@ -74,7 +74,7 @@ let tokenData = class tokenData {
74
74
  exports.tokenData = tokenData;
75
75
  __decorate([
76
76
  (0, swagger_1.ApiProperty)({
77
- description: "Token de réinitialisation du mot de passe",
77
+ description: 'Token de réinitialisation du mot de passe',
78
78
  example: true,
79
79
  }),
80
80
  (0, mongoose_2.Prop)({ type: String, required: true }),
@@ -599,6 +599,15 @@ __decorate([
599
599
  (0, class_validator_1.IsOptional)(),
600
600
  __metadata("design:type", tokenData)
601
601
  ], User.prototype, "tokenData", void 0);
602
+ __decorate([
603
+ (0, swagger_1.ApiProperty)({
604
+ description: 'Indique si l’adresse e-mail de l’utilisateur a été confirmée',
605
+ example: false,
606
+ }),
607
+ (0, mongoose_2.Prop)({ type: Boolean, default: false }),
608
+ (0, class_validator_1.IsBoolean)(),
609
+ __metadata("design:type", Boolean)
610
+ ], User.prototype, "isEmailConfirmed", void 0);
602
611
  __decorate([
603
612
  (0, swagger_1.ApiProperty)({
604
613
  description: 'Date interne de création (legacy)',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@likewatt/models",
3
- "version": "1.0.100",
3
+ "version": "1.0.101",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {