@likewatt/models 1.144.1 → 1.144.2

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.
@@ -23,7 +23,7 @@ export declare class Rights {
23
23
  deleteSites: boolean;
24
24
  viewLeads: boolean;
25
25
  editScenarioTypes: boolean;
26
- useAurora: boolean;
26
+ useAurora?: boolean;
27
27
  }
28
28
  export declare const RightsSchema: import("mongoose").Schema<Rights, import("mongoose").Model<Rights, any, any, any, Document<unknown, any, Rights, any, {}> & Rights & {
29
29
  _id: import("mongoose").Types.ObjectId;
package/dist/core/User.js CHANGED
@@ -85,11 +85,12 @@ __decorate([
85
85
  __metadata("design:type", Boolean)
86
86
  ], Rights.prototype, "editScenarioTypes", void 0);
87
87
  __decorate([
88
- (0, swagger_1.ApiProperty)({
89
- description: "Indique si l'utilisateur peut utiliser le calepinage Aurora (crédits du titulaire)",
88
+ (0, swagger_1.ApiPropertyOptional)({
89
+ description: "Droit d'un membre au calepinage Aurora. Absent = pas encore choisi par le titulaire : autorisé pendant l'essai gratuit, refusé après. Sans valeur par défaut : un défaut false serait lu (et écrit à la création) comme un décochage.",
90
90
  example: true,
91
91
  }),
92
- (0, mongoose_1.Prop)({ type: Boolean, required: true, default: false }),
92
+ (0, mongoose_1.Prop)({ type: Boolean, required: false }),
93
+ (0, class_validator_1.IsOptional)(),
93
94
  (0, class_validator_1.IsBoolean)(),
94
95
  __metadata("design:type", Boolean)
95
96
  ], Rights.prototype, "useAurora", void 0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@likewatt/models",
3
- "version": "1.144.1",
3
+ "version": "1.144.2",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {