@likewatt/models 1.0.83 → 1.0.84

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.
@@ -49,6 +49,7 @@ export declare class User {
49
49
  demo: boolean;
50
50
  emailVerified: boolean;
51
51
  principal: boolean;
52
+ principalUser?: string;
52
53
  type?: string;
53
54
  domain?: string;
54
55
  license?: string;
package/dist/core/User.js CHANGED
@@ -260,6 +260,16 @@ __decorate([
260
260
  (0, class_validator_1.IsBoolean)(),
261
261
  __metadata("design:type", Boolean)
262
262
  ], User.prototype, "principal", void 0);
263
+ __decorate([
264
+ (0, swagger_1.ApiProperty)({
265
+ description: 'Identifiant de l’utilisateur principal (si compte secondaire)',
266
+ example: '2M61PGSm7lRpqXeaDacbAYOLTYG3',
267
+ }),
268
+ (0, mongoose_2.Prop)({ type: String, required: false }),
269
+ (0, class_validator_1.IsOptional)(),
270
+ (0, class_validator_1.IsString)(),
271
+ __metadata("design:type", String)
272
+ ], User.prototype, "principalUser", void 0);
263
273
  __decorate([
264
274
  (0, swagger_1.ApiProperty)({
265
275
  description: 'Type de l’utilisateur',
@@ -20,6 +20,7 @@ export interface User {
20
20
  demo: boolean;
21
21
  emailVerified: boolean;
22
22
  principal: boolean;
23
+ principalUser?: string;
23
24
  type?: string;
24
25
  domain?: string;
25
26
  license?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@likewatt/models",
3
- "version": "1.0.83",
3
+ "version": "1.0.84",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {