@likewatt/models 1.0.82 → 1.0.83

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.
@@ -59,6 +59,7 @@ export declare class User {
59
59
  maxUsers?: number;
60
60
  trackerOkd: boolean;
61
61
  isSignUpEmailSent: boolean;
62
+ readOnly: boolean;
62
63
  isAdminEmailSent: boolean;
63
64
  automaticRenew: boolean;
64
65
  optimNumber?: number;
package/dist/core/User.js CHANGED
@@ -358,6 +358,15 @@ __decorate([
358
358
  (0, class_validator_1.IsBoolean)(),
359
359
  __metadata("design:type", Boolean)
360
360
  ], User.prototype, "isSignUpEmailSent", void 0);
361
+ __decorate([
362
+ (0, swagger_1.ApiProperty)({
363
+ description: 'Lecture seule (interdit de modifier les éléments)',
364
+ example: false,
365
+ }),
366
+ (0, mongoose_2.Prop)({ type: Boolean, default: false }),
367
+ (0, class_validator_1.IsBoolean)(),
368
+ __metadata("design:type", Boolean)
369
+ ], User.prototype, "readOnly", void 0);
361
370
  __decorate([
362
371
  (0, swagger_1.ApiProperty)({
363
372
  description: 'E-mail admin envoyé',
@@ -26,6 +26,7 @@ export interface User {
26
26
  licenseId?: string;
27
27
  allowedNumberOfSites?: number;
28
28
  maxUsers?: number;
29
+ readonly: boolean;
29
30
  trackerOkd: boolean;
30
31
  isSignUpEmailSent: boolean;
31
32
  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.83",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {