@likewatt/models 1.16.3 → 1.17.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.
@@ -67,6 +67,7 @@ export declare const WebhookParamsSchema: import("mongoose").Schema<WebhookParam
67
67
  */
68
68
  export declare class User {
69
69
  _id: string;
70
+ leadTenantId?: string;
70
71
  email: string;
71
72
  password: string;
72
73
  firstname: string;
package/dist/core/User.js CHANGED
@@ -153,6 +153,16 @@ __decorate([
153
153
  (0, mongoose_1.Prop)({ type: String }),
154
154
  __metadata("design:type", String)
155
155
  ], User.prototype, "_id", void 0);
156
+ __decorate([
157
+ (0, swagger_1.ApiProperty)({
158
+ description: 'Référence vers le LeadTenant associé',
159
+ example: 'uuid-of-leadtenant',
160
+ }),
161
+ (0, mongoose_1.Prop)({ type: String, required: false, ref: 'LeadTenant' }),
162
+ (0, class_validator_1.IsOptional)(),
163
+ (0, class_validator_1.IsString)(),
164
+ __metadata("design:type", String)
165
+ ], User.prototype, "leadTenantId", void 0);
156
166
  __decorate([
157
167
  (0, swagger_1.ApiProperty)({
158
168
  description: 'Adresse e-mail de l’utilisateur',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@likewatt/models",
3
- "version": "1.16.3",
3
+ "version": "1.17.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {