@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.
- package/dist/core/Consent.d.ts +5 -4
- package/dist/core/Consent.js +11 -7
- package/package.json +1 -1
package/dist/core/Consent.d.ts
CHANGED
|
@@ -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
|
|
6
|
-
* durs (N0 jetable, N1-a adresse
|
|
7
|
-
* donc n'écrivent
|
|
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>;
|
package/dist/core/Consent.js
CHANGED
|
@@ -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
|
|
21
|
-
* durs (N0 jetable, N1-a adresse
|
|
22
|
-
* donc n'écrivent
|
|
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)({
|
|
29
|
-
|
|
30
|
-
|
|
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)(),
|