@likewatt/models 1.149.1 → 1.150.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.
@@ -2,12 +2,13 @@ import { Document } from 'mongoose';
2
2
  /**
3
3
  * Signal anti-fraude posé sur un consentement (voir `ConsentAntiFraudService`,
4
4
  * gateway). Un consentement peut en cumuler plusieurs. Seuls les contrôles
5
- * NON bloquants produisent un flag (N1-b désactivé, N2 doublon) : les blocages
6
- * durs (N0 jetable, N1-a adresse identique, N1-b activé) empêchent la création,
7
- * donc n'écrivent rien.
5
+ * NON bloquants produisent un flag (N1-b désactivé, N2 doublon, N3
6
+ * auto-consentement probable) : les blocages durs (N0 jetable, N1-a adresse du
7
+ * client ou d'un membre, N1-b activé) empêchent la création, donc n'écrivent
8
+ * rien.
8
9
  */
9
10
  export declare class ConsentFraudFlag {
10
- level: 'N1' | 'N2';
11
+ level: 'N1' | 'N2' | 'N3';
11
12
  code: string;
12
13
  reason?: string;
13
14
  detail?: Record<string, unknown>;
@@ -17,17 +17,21 @@ const uuid_1 = require("uuid");
17
17
  /**
18
18
  * Signal anti-fraude posé sur un consentement (voir `ConsentAntiFraudService`,
19
19
  * gateway). Un consentement peut en cumuler plusieurs. Seuls les contrôles
20
- * NON bloquants produisent un flag (N1-b désactivé, N2 doublon) : les blocages
21
- * durs (N0 jetable, N1-a adresse identique, N1-b activé) empêchent la création,
22
- * donc n'écrivent rien.
20
+ * NON bloquants produisent un flag (N1-b désactivé, N2 doublon, N3
21
+ * auto-consentement probable) : les blocages durs (N0 jetable, N1-a adresse du
22
+ * client ou d'un membre, N1-b activé) empêchent la création, donc n'écrivent
23
+ * rien.
23
24
  */
24
25
  let ConsentFraudFlag = class ConsentFraudFlag {
25
26
  };
26
27
  exports.ConsentFraudFlag = ConsentFraudFlag;
27
28
  __decorate([
28
- (0, swagger_1.ApiProperty)({ description: 'Niveau anti-fraude', enum: ['N1', 'N2'] }),
29
- (0, mongoose_1.Prop)({ type: String, enum: ['N1', 'N2'], required: true }),
30
- (0, class_validator_1.IsIn)(['N1', 'N2']),
29
+ (0, swagger_1.ApiProperty)({
30
+ description: 'Niveau anti-fraude',
31
+ enum: ['N1', 'N2', 'N3'],
32
+ }),
33
+ (0, mongoose_1.Prop)({ type: String, enum: ['N1', 'N2', 'N3'], required: true }),
34
+ (0, class_validator_1.IsIn)(['N1', 'N2', 'N3']),
31
35
  __metadata("design:type", String)
32
36
  ], ConsentFraudFlag.prototype, "level", void 0);
33
37
  __decorate([
@@ -48,7 +52,7 @@ __decorate([
48
52
  ], ConsentFraudFlag.prototype, "reason", void 0);
49
53
  __decorate([
50
54
  (0, swagger_1.ApiPropertyOptional)({
51
- description: 'Contexte structuré (ex. consentements en conflit pour N2)',
55
+ description: 'Contexte structuré (ex. consentements en conflit pour N2, mot ou id du membre en cause pour N3)',
52
56
  }),
53
57
  (0, mongoose_1.Prop)({ type: Object, required: false }),
54
58
  (0, class_validator_1.IsOptional)(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@likewatt/models",
3
- "version": "1.149.1",
3
+ "version": "1.150.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {