@likewatt/models 1.16.3 → 1.17.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.
@@ -19,7 +19,7 @@ export declare const LeadThemeConfigSchema: import("mongoose").Schema<LeadThemeC
19
19
  }>;
20
20
  export declare class LeadTenant {
21
21
  _id: string;
22
- tenantId: string;
22
+ userId: string;
23
23
  subdomain: string;
24
24
  domain: string;
25
25
  theme?: LeadThemeConfig;
@@ -67,7 +67,7 @@ __decorate([
67
67
  __decorate([
68
68
  (0, mongoose_1.Prop)({ required: true, type: String, ref: 'User' }),
69
69
  __metadata("design:type", String)
70
- ], LeadTenant.prototype, "tenantId", void 0);
70
+ ], LeadTenant.prototype, "userId", void 0);
71
71
  __decorate([
72
72
  (0, mongoose_1.Prop)({
73
73
  type: String,
@@ -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.1",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {