@likewatt/models 1.105.0 → 1.106.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.
@@ -29,8 +29,6 @@ export declare class Consent {
29
29
  isValidateConsent?: boolean;
30
30
  dateConsentCheck?: Date;
31
31
  pdlNotCovered?: boolean;
32
- identityMismatch?: boolean;
33
- forged?: boolean;
34
32
  flagReason?: string;
35
33
  }
36
34
  export type ConsentDocument = Consent & Document;
@@ -231,24 +231,6 @@ __decorate([
231
231
  (0, class_validator_1.IsBoolean)(),
232
232
  __metadata("design:type", Boolean)
233
233
  ], Consent.prototype, "pdlNotCovered", void 0);
234
- __decorate([
235
- (0, swagger_1.ApiPropertyOptional)({
236
- description: 'Signal : même PDL déjà consenti dans le groupe avec une identité différente',
237
- }),
238
- (0, mongoose_1.Prop)({ type: Boolean, default: false }),
239
- (0, class_validator_1.IsOptional)(),
240
- (0, class_validator_1.IsBoolean)(),
241
- __metadata("design:type", Boolean)
242
- ], Consent.prototype, "identityMismatch", void 0);
243
- __decorate([
244
- (0, swagger_1.ApiPropertyOptional)({
245
- description: 'Signal : document suspecté falsifié (réservé v2)',
246
- }),
247
- (0, mongoose_1.Prop)({ type: Boolean, default: false }),
248
- (0, class_validator_1.IsOptional)(),
249
- (0, class_validator_1.IsBoolean)(),
250
- __metadata("design:type", Boolean)
251
- ], Consent.prototype, "forged", void 0);
252
234
  __decorate([
253
235
  (0, swagger_1.ApiPropertyOptional)({ description: 'Motif lisible du flag (suivi admin)' }),
254
236
  (0, mongoose_1.Prop)({ type: String, required: false }),
@@ -22,6 +22,7 @@ export declare class Rights {
22
22
  deleteSite: boolean;
23
23
  deleteSites: boolean;
24
24
  viewLeads: boolean;
25
+ editScenarioTypes: boolean;
25
26
  }
26
27
  export declare const RightsSchema: import("mongoose").Schema<Rights, import("mongoose").Model<Rights, any, any, any, Document<unknown, any, Rights, any, {}> & Rights & {
27
28
  _id: import("mongoose").Types.ObjectId;
package/dist/core/User.js CHANGED
@@ -75,6 +75,15 @@ __decorate([
75
75
  (0, class_validator_1.IsBoolean)(),
76
76
  __metadata("design:type", Boolean)
77
77
  ], Rights.prototype, "viewLeads", void 0);
78
+ __decorate([
79
+ (0, swagger_1.ApiProperty)({
80
+ description: "Indique si l'utilisateur peut modifier, créer et supprimer les scénarios types (sinon il peut seulement les appliquer)",
81
+ example: true,
82
+ }),
83
+ (0, mongoose_1.Prop)({ type: Boolean, required: true, default: true }),
84
+ (0, class_validator_1.IsBoolean)(),
85
+ __metadata("design:type", Boolean)
86
+ ], Rights.prototype, "editScenarioTypes", void 0);
78
87
  exports.Rights = Rights = __decorate([
79
88
  (0, mongoose_1.Schema)({ _id: false })
80
89
  ], Rights);
@@ -688,7 +697,12 @@ __decorate([
688
697
  (0, mongoose_1.Prop)({
689
698
  type: exports.RightsSchema,
690
699
  _id: false,
691
- default: { deleteSite: false, deleteSites: false, viewLeads: false },
700
+ default: {
701
+ deleteSite: false,
702
+ deleteSites: false,
703
+ viewLeads: false,
704
+ editScenarioTypes: true,
705
+ },
692
706
  }),
693
707
  __metadata("design:type", Rights)
694
708
  ], User.prototype, "rights", void 0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@likewatt/models",
3
- "version": "1.105.0",
3
+ "version": "1.106.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {