@likewatt/models 1.0.82 → 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;
@@ -59,6 +60,7 @@ export declare class User {
59
60
  maxUsers?: number;
60
61
  trackerOkd: boolean;
61
62
  isSignUpEmailSent: boolean;
63
+ readOnly: boolean;
62
64
  isAdminEmailSent: boolean;
63
65
  automaticRenew: boolean;
64
66
  optimNumber?: number;
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',
@@ -358,6 +368,15 @@ __decorate([
358
368
  (0, class_validator_1.IsBoolean)(),
359
369
  __metadata("design:type", Boolean)
360
370
  ], User.prototype, "isSignUpEmailSent", void 0);
371
+ __decorate([
372
+ (0, swagger_1.ApiProperty)({
373
+ description: 'Lecture seule (interdit de modifier les éléments)',
374
+ example: false,
375
+ }),
376
+ (0, mongoose_2.Prop)({ type: Boolean, default: false }),
377
+ (0, class_validator_1.IsBoolean)(),
378
+ __metadata("design:type", Boolean)
379
+ ], User.prototype, "readOnly", void 0);
361
380
  __decorate([
362
381
  (0, swagger_1.ApiProperty)({
363
382
  description: 'E-mail admin envoyé',
@@ -20,12 +20,14 @@ 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;
26
27
  licenseId?: string;
27
28
  allowedNumberOfSites?: number;
28
29
  maxUsers?: number;
30
+ readonly: boolean;
29
31
  trackerOkd: boolean;
30
32
  isSignUpEmailSent: boolean;
31
33
  isAdminEmailSent: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@likewatt/models",
3
- "version": "1.0.82",
3
+ "version": "1.0.84",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {