@likewatt/models 1.101.0 → 1.102.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.
@@ -111,6 +111,7 @@ export declare class User {
111
111
  demo: boolean;
112
112
  emailVerified: boolean;
113
113
  principal: boolean;
114
+ publicApi: boolean;
114
115
  principalUser?: string;
115
116
  workspaceId?: string;
116
117
  type?: string;
package/dist/core/User.js CHANGED
@@ -428,6 +428,16 @@ __decorate([
428
428
  (0, class_validator_1.IsBoolean)(),
429
429
  __metadata("design:type", Boolean)
430
430
  ], User.prototype, "principal", void 0);
431
+ __decorate([
432
+ (0, swagger_1.ApiProperty)({
433
+ description: 'Accès à l’API Likewatt publique (gestion et usage des clés API)',
434
+ example: false,
435
+ }),
436
+ (0, mongoose_1.Prop)({ type: Boolean, default: false }),
437
+ (0, class_validator_1.IsOptional)(),
438
+ (0, class_validator_1.IsBoolean)(),
439
+ __metadata("design:type", Boolean)
440
+ ], User.prototype, "publicApi", void 0);
431
441
  __decorate([
432
442
  (0, swagger_1.ApiProperty)({
433
443
  description: 'Identifiant de l’utilisateur principal (si compte secondaire)',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@likewatt/models",
3
- "version": "1.101.0",
3
+ "version": "1.102.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {