@fiado/type-kit 3.26.0 → 3.27.1
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/bin/account/dtos/BankAccountP2pTransferRequest.d.ts +1 -0
- package/bin/account/dtos/ExecuteP2pOperationRequest.d.ts +1 -0
- package/bin/card/validations/CardUpdateKeyConstraint.js +2 -2
- package/bin/card/validations/IsPhoneNumberConstraint.js +2 -2
- package/bin/index.js +7 -17
- package/bin/riskProfile/dtos/private/AppendAlertNoteRequest.d.ts +16 -0
- package/bin/riskProfile/dtos/private/AppendAlertNoteRequest.js +45 -0
- package/bin/riskProfile/dtos/private/AppendAlertNoteResponse.d.ts +10 -0
- package/bin/riskProfile/dtos/private/AppendAlertNoteResponse.js +36 -0
- package/bin/riskProfile/dtos/private/CreateBlockedListAlertRequest.d.ts +19 -0
- package/bin/riskProfile/dtos/private/CreateBlockedListAlertRequest.js +64 -0
- package/bin/riskProfile/dtos/private/CreateBlockedListAlertResponse.d.ts +8 -0
- package/bin/riskProfile/dtos/private/CreateBlockedListAlertResponse.js +31 -0
- package/bin/riskProfile/dtos/private/DictaminateAlertRequest.d.ts +17 -0
- package/bin/riskProfile/dtos/private/DictaminateAlertRequest.js +46 -0
- package/bin/riskProfile/dtos/private/DictaminateAlertResponse.d.ts +14 -0
- package/bin/riskProfile/dtos/private/DictaminateAlertResponse.js +46 -0
- package/bin/riskProfile/dtos/private/MarkAlertReportedRequest.d.ts +18 -0
- package/bin/riskProfile/dtos/private/MarkAlertReportedRequest.js +52 -0
- package/bin/riskProfile/dtos/private/MarkAlertReportedResponse.d.ts +9 -0
- package/bin/riskProfile/dtos/private/MarkAlertReportedResponse.js +35 -0
- package/bin/riskProfile/dtos/private/SetCustomAlarmRequest.d.ts +17 -0
- package/bin/riskProfile/dtos/private/SetCustomAlarmRequest.js +52 -0
- package/bin/riskProfile/dtos/private/SetCustomAlarmResponse.d.ts +13 -0
- package/bin/riskProfile/dtos/private/SetCustomAlarmResponse.js +48 -0
- package/bin/riskProfile/dtos/private/SetDeclaredIncomeRequest.d.ts +14 -0
- package/bin/riskProfile/dtos/private/SetDeclaredIncomeRequest.js +44 -0
- package/bin/riskProfile/dtos/private/SetDeclaredIncomeResponse.d.ts +20 -0
- package/bin/riskProfile/dtos/private/SetDeclaredIncomeResponse.js +49 -0
- package/bin/riskProfile/dtos/private/SetManualRiskLevelRequest.d.ts +24 -0
- package/bin/riskProfile/dtos/private/SetManualRiskLevelRequest.js +55 -0
- package/bin/riskProfile/dtos/private/SetManualRiskLevelResponse.d.ts +20 -0
- package/bin/riskProfile/dtos/private/SetManualRiskLevelResponse.js +54 -0
- package/bin/riskProfile/enums/CustomAlarmName.d.ts +9 -0
- package/bin/riskProfile/enums/CustomAlarmName.js +13 -0
- package/bin/riskProfile/enums/DictamenStatus.d.ts +9 -0
- package/bin/riskProfile/enums/DictamenStatus.js +13 -0
- package/bin/riskProfile/enums/NotesMode.d.ts +9 -0
- package/bin/riskProfile/enums/NotesMode.js +13 -0
- package/bin/riskProfile/index.d.ts +17 -0
- package/bin/riskProfile/index.js +19 -0
- package/package.json +3 -2
- package/src/account/dtos/BankAccountP2pTransferRequest.ts +1 -0
- package/src/account/dtos/ExecuteP2pOperationRequest.ts +1 -0
- package/src/riskProfile/dtos/private/AppendAlertNoteRequest.ts +29 -0
- package/src/riskProfile/dtos/private/AppendAlertNoteResponse.ts +12 -0
- package/src/riskProfile/dtos/private/CreateBlockedListAlertRequest.ts +22 -0
- package/src/riskProfile/dtos/private/CreateBlockedListAlertResponse.ts +10 -0
- package/src/riskProfile/dtos/private/DictaminateAlertRequest.ts +30 -0
- package/src/riskProfile/dtos/private/DictaminateAlertResponse.ts +16 -0
- package/src/riskProfile/dtos/private/MarkAlertReportedRequest.ts +21 -0
- package/src/riskProfile/dtos/private/MarkAlertReportedResponse.ts +11 -0
- package/src/riskProfile/dtos/private/SetCustomAlarmRequest.ts +31 -0
- package/src/riskProfile/dtos/private/SetCustomAlarmResponse.ts +15 -0
- package/src/riskProfile/dtos/private/SetDeclaredIncomeRequest.ts +26 -0
- package/src/riskProfile/dtos/private/SetDeclaredIncomeResponse.ts +22 -0
- package/src/riskProfile/dtos/private/SetManualRiskLevelRequest.ts +37 -0
- package/src/riskProfile/dtos/private/SetManualRiskLevelResponse.ts +22 -0
- package/src/riskProfile/enums/CustomAlarmName.ts +9 -0
- package/src/riskProfile/enums/DictamenStatus.ts +9 -0
- package/src/riskProfile/enums/NotesMode.ts +9 -0
- package/src/riskProfile/index.ts +21 -0
|
@@ -6,8 +6,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
7
|
};
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.CardUpdateKeyConstraint = exports.IsReasonRequiredForCancelledStatusConstraint = void 0;
|
|
10
|
-
exports.IsValueValid = IsValueValid;
|
|
9
|
+
exports.IsValueValid = exports.CardUpdateKeyConstraint = exports.IsReasonRequiredForCancelledStatusConstraint = void 0;
|
|
11
10
|
const class_validator_1 = require("class-validator");
|
|
12
11
|
const Status_1 = require("../enums/Status");
|
|
13
12
|
const UpdateKey_1 = require("../enums/UpdateKey");
|
|
@@ -71,3 +70,4 @@ function IsValueValid(validationOptions) {
|
|
|
71
70
|
});
|
|
72
71
|
};
|
|
73
72
|
}
|
|
73
|
+
exports.IsValueValid = IsValueValid;
|
|
@@ -6,8 +6,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
7
|
};
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.IsPhoneNumberConstraint = void 0;
|
|
10
|
-
exports.IsPhoneNumberFiado = IsPhoneNumberFiado;
|
|
9
|
+
exports.IsPhoneNumberFiado = exports.IsPhoneNumberConstraint = void 0;
|
|
11
10
|
const class_validator_1 = require("class-validator");
|
|
12
11
|
const regex_1 = require("../../helpers/constans/regex");
|
|
13
12
|
let IsPhoneNumberConstraint = class IsPhoneNumberConstraint {
|
|
@@ -37,3 +36,4 @@ function IsPhoneNumberFiado(validationOptions) {
|
|
|
37
36
|
});
|
|
38
37
|
};
|
|
39
38
|
}
|
|
39
|
+
exports.IsPhoneNumberFiado = IsPhoneNumberFiado;
|
package/bin/index.js
CHANGED
|
@@ -15,23 +15,13 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) ||
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
35
25
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
36
26
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
27
|
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { NotesMode } from "../../enums/NotesMode";
|
|
2
|
+
/**
|
|
3
|
+
* Solicitud para agregar nota a una alerta sin dictaminar.
|
|
4
|
+
*
|
|
5
|
+
* Permite al OC agregar contexto a una alerta en estado NEW o PENDING sin cerrarla.
|
|
6
|
+
* El modo `APPEND` concatena al final; `REPLACE` sobrescribe.
|
|
7
|
+
*
|
|
8
|
+
* Reglas de negocio:
|
|
9
|
+
* - `notes` mínimo 10 caracteres.
|
|
10
|
+
* - El append no es atómico ante escritura concurrente — el último gana.
|
|
11
|
+
*/
|
|
12
|
+
export declare class AppendAlertNoteRequest {
|
|
13
|
+
notes: string;
|
|
14
|
+
mode: NotesMode;
|
|
15
|
+
email: string;
|
|
16
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.AppendAlertNoteRequest = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const NotesMode_1 = require("../../enums/NotesMode");
|
|
16
|
+
/**
|
|
17
|
+
* Solicitud para agregar nota a una alerta sin dictaminar.
|
|
18
|
+
*
|
|
19
|
+
* Permite al OC agregar contexto a una alerta en estado NEW o PENDING sin cerrarla.
|
|
20
|
+
* El modo `APPEND` concatena al final; `REPLACE` sobrescribe.
|
|
21
|
+
*
|
|
22
|
+
* Reglas de negocio:
|
|
23
|
+
* - `notes` mínimo 10 caracteres.
|
|
24
|
+
* - El append no es atómico ante escritura concurrente — el último gana.
|
|
25
|
+
*/
|
|
26
|
+
class AppendAlertNoteRequest {
|
|
27
|
+
}
|
|
28
|
+
exports.AppendAlertNoteRequest = AppendAlertNoteRequest;
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_transformer_1.Expose)(),
|
|
31
|
+
(0, class_validator_1.IsString)(),
|
|
32
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
33
|
+
(0, class_validator_1.MinLength)(10, { message: 'notes debe tener al menos 10 caracteres' }),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], AppendAlertNoteRequest.prototype, "notes", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, class_transformer_1.Expose)(),
|
|
38
|
+
(0, class_validator_1.IsEnum)(NotesMode_1.NotesMode),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], AppendAlertNoteRequest.prototype, "mode", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, class_transformer_1.Expose)(),
|
|
43
|
+
(0, class_validator_1.IsEmail)({}, { message: 'email debe ser un correo válido' }),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], AppendAlertNoteRequest.prototype, "email", void 0);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Respuesta de agregar nota a una alerta.
|
|
3
|
+
* `notesUpdated` indica si efectivamente hubo cambio (false si el texto resultante fue idéntico).
|
|
4
|
+
*/
|
|
5
|
+
export declare class AppendAlertNoteResponse {
|
|
6
|
+
alertId: string;
|
|
7
|
+
notesUpdated: boolean;
|
|
8
|
+
observationId?: string;
|
|
9
|
+
snapshotKey: string;
|
|
10
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.AppendAlertNoteResponse = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
/**
|
|
15
|
+
* Respuesta de agregar nota a una alerta.
|
|
16
|
+
* `notesUpdated` indica si efectivamente hubo cambio (false si el texto resultante fue idéntico).
|
|
17
|
+
*/
|
|
18
|
+
class AppendAlertNoteResponse {
|
|
19
|
+
}
|
|
20
|
+
exports.AppendAlertNoteResponse = AppendAlertNoteResponse;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_transformer_1.Expose)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], AppendAlertNoteResponse.prototype, "alertId", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_transformer_1.Expose)(),
|
|
27
|
+
__metadata("design:type", Boolean)
|
|
28
|
+
], AppendAlertNoteResponse.prototype, "notesUpdated", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_transformer_1.Expose)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], AppendAlertNoteResponse.prototype, "observationId", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_transformer_1.Expose)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], AppendAlertNoteResponse.prototype, "snapshotKey", void 0);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Solicitud para crear una alerta BLOCKED_LIST manualmente.
|
|
3
|
+
*
|
|
4
|
+
* Se invoca cuando el caller ha identificado un match contra la lista LPB.
|
|
5
|
+
* El BO no consulta `blacklist-business` ni la lista negra interna de Fiado;
|
|
6
|
+
* confía en el caller y solo registra la alerta.
|
|
7
|
+
*
|
|
8
|
+
* Reglas de negocio:
|
|
9
|
+
* - Si ya existe alerta BLOCKED_LIST abierta (NEW/PENDING) para el mismo directoryId, devuelve 409.
|
|
10
|
+
* - `reason` mínimo 10 caracteres (descripción del match LPB).
|
|
11
|
+
*/
|
|
12
|
+
export declare class CreateBlockedListAlertRequest {
|
|
13
|
+
directoryId: string;
|
|
14
|
+
peopleId: string;
|
|
15
|
+
indexName: string;
|
|
16
|
+
phoneNumber: string;
|
|
17
|
+
email: string;
|
|
18
|
+
reason: string;
|
|
19
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.CreateBlockedListAlertRequest = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
/**
|
|
16
|
+
* Solicitud para crear una alerta BLOCKED_LIST manualmente.
|
|
17
|
+
*
|
|
18
|
+
* Se invoca cuando el caller ha identificado un match contra la lista LPB.
|
|
19
|
+
* El BO no consulta `blacklist-business` ni la lista negra interna de Fiado;
|
|
20
|
+
* confía en el caller y solo registra la alerta.
|
|
21
|
+
*
|
|
22
|
+
* Reglas de negocio:
|
|
23
|
+
* - Si ya existe alerta BLOCKED_LIST abierta (NEW/PENDING) para el mismo directoryId, devuelve 409.
|
|
24
|
+
* - `reason` mínimo 10 caracteres (descripción del match LPB).
|
|
25
|
+
*/
|
|
26
|
+
class CreateBlockedListAlertRequest {
|
|
27
|
+
}
|
|
28
|
+
exports.CreateBlockedListAlertRequest = CreateBlockedListAlertRequest;
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_transformer_1.Expose)(),
|
|
31
|
+
(0, class_validator_1.IsString)(),
|
|
32
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], CreateBlockedListAlertRequest.prototype, "directoryId", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, class_transformer_1.Expose)(),
|
|
37
|
+
(0, class_validator_1.IsString)(),
|
|
38
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], CreateBlockedListAlertRequest.prototype, "peopleId", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, class_transformer_1.Expose)(),
|
|
43
|
+
(0, class_validator_1.IsString)(),
|
|
44
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], CreateBlockedListAlertRequest.prototype, "indexName", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, class_transformer_1.Expose)(),
|
|
49
|
+
(0, class_validator_1.IsString)(),
|
|
50
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], CreateBlockedListAlertRequest.prototype, "phoneNumber", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, class_transformer_1.Expose)(),
|
|
55
|
+
(0, class_validator_1.IsEmail)({}, { message: 'email debe ser un correo válido' }),
|
|
56
|
+
__metadata("design:type", String)
|
|
57
|
+
], CreateBlockedListAlertRequest.prototype, "email", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, class_transformer_1.Expose)(),
|
|
60
|
+
(0, class_validator_1.IsString)(),
|
|
61
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
62
|
+
(0, class_validator_1.MinLength)(10, { message: 'reason debe tener al menos 10 caracteres' }),
|
|
63
|
+
__metadata("design:type", String)
|
|
64
|
+
], CreateBlockedListAlertRequest.prototype, "reason", void 0);
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.CreateBlockedListAlertResponse = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
/**
|
|
15
|
+
* Respuesta de creación de alerta BLOCKED_LIST.
|
|
16
|
+
*/
|
|
17
|
+
class CreateBlockedListAlertResponse {
|
|
18
|
+
}
|
|
19
|
+
exports.CreateBlockedListAlertResponse = CreateBlockedListAlertResponse;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_transformer_1.Expose)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], CreateBlockedListAlertResponse.prototype, "alertId", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_transformer_1.Expose)(),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], CreateBlockedListAlertResponse.prototype, "observationId", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_transformer_1.Expose)(),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], CreateBlockedListAlertResponse.prototype, "snapshotKey", void 0);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { DictamenStatus } from "../../enums/DictamenStatus";
|
|
2
|
+
/**
|
|
3
|
+
* Solicitud para dictaminar una alerta de PLD.
|
|
4
|
+
*
|
|
5
|
+
* Cierra una alerta en estado NEW o PENDING transicionándola a uno de los estados terminales.
|
|
6
|
+
* Genera audit trail completo (Observation + snapshot S3) y queda inmutable.
|
|
7
|
+
*
|
|
8
|
+
* Reglas de negocio:
|
|
9
|
+
* - `newStatus` debe ser uno de los estados de cierre permitidos.
|
|
10
|
+
* - `newNotes` queda como justificación regulatoria del dictamen (mínimo 10 caracteres).
|
|
11
|
+
* - `email` es el correo del Oficial de Cumplimiento que ejecuta la operación.
|
|
12
|
+
*/
|
|
13
|
+
export declare class DictaminateAlertRequest {
|
|
14
|
+
newStatus: DictamenStatus;
|
|
15
|
+
newNotes: string;
|
|
16
|
+
email: string;
|
|
17
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.DictaminateAlertRequest = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const DictamenStatus_1 = require("../../enums/DictamenStatus");
|
|
16
|
+
/**
|
|
17
|
+
* Solicitud para dictaminar una alerta de PLD.
|
|
18
|
+
*
|
|
19
|
+
* Cierra una alerta en estado NEW o PENDING transicionándola a uno de los estados terminales.
|
|
20
|
+
* Genera audit trail completo (Observation + snapshot S3) y queda inmutable.
|
|
21
|
+
*
|
|
22
|
+
* Reglas de negocio:
|
|
23
|
+
* - `newStatus` debe ser uno de los estados de cierre permitidos.
|
|
24
|
+
* - `newNotes` queda como justificación regulatoria del dictamen (mínimo 10 caracteres).
|
|
25
|
+
* - `email` es el correo del Oficial de Cumplimiento que ejecuta la operación.
|
|
26
|
+
*/
|
|
27
|
+
class DictaminateAlertRequest {
|
|
28
|
+
}
|
|
29
|
+
exports.DictaminateAlertRequest = DictaminateAlertRequest;
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_transformer_1.Expose)(),
|
|
32
|
+
(0, class_validator_1.IsEnum)(DictamenStatus_1.DictamenStatus),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], DictaminateAlertRequest.prototype, "newStatus", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, class_transformer_1.Expose)(),
|
|
37
|
+
(0, class_validator_1.IsString)(),
|
|
38
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
39
|
+
(0, class_validator_1.MinLength)(10, { message: 'newNotes debe tener al menos 10 caracteres' }),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], DictaminateAlertRequest.prototype, "newNotes", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, class_transformer_1.Expose)(),
|
|
44
|
+
(0, class_validator_1.IsEmail)({}, { message: 'email debe ser un correo válido' }),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], DictaminateAlertRequest.prototype, "email", void 0);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Respuesta de la operación de dictamen de alerta.
|
|
3
|
+
*
|
|
4
|
+
* Incluye el hash SHA-256 del snapshot inmutable guardado en S3.
|
|
5
|
+
* El `snapshotKey` puede usarse para recuperar el snapshot completo desde el bucket de audit.
|
|
6
|
+
*/
|
|
7
|
+
export declare class DictaminateAlertResponse {
|
|
8
|
+
alertId: string;
|
|
9
|
+
previousStatus: string;
|
|
10
|
+
newStatus: string;
|
|
11
|
+
snapshotKey: string;
|
|
12
|
+
snapshotHash: string;
|
|
13
|
+
observationId?: string;
|
|
14
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.DictaminateAlertResponse = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
/**
|
|
15
|
+
* Respuesta de la operación de dictamen de alerta.
|
|
16
|
+
*
|
|
17
|
+
* Incluye el hash SHA-256 del snapshot inmutable guardado en S3.
|
|
18
|
+
* El `snapshotKey` puede usarse para recuperar el snapshot completo desde el bucket de audit.
|
|
19
|
+
*/
|
|
20
|
+
class DictaminateAlertResponse {
|
|
21
|
+
}
|
|
22
|
+
exports.DictaminateAlertResponse = DictaminateAlertResponse;
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_transformer_1.Expose)(),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], DictaminateAlertResponse.prototype, "alertId", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_transformer_1.Expose)(),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], DictaminateAlertResponse.prototype, "previousStatus", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, class_transformer_1.Expose)(),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], DictaminateAlertResponse.prototype, "newStatus", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, class_transformer_1.Expose)(),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], DictaminateAlertResponse.prototype, "snapshotKey", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, class_transformer_1.Expose)(),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], DictaminateAlertResponse.prototype, "snapshotHash", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, class_transformer_1.Expose)(),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], DictaminateAlertResponse.prototype, "observationId", void 0);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Solicitud para marcar una alerta como reportada a SITI (ROI enviado).
|
|
3
|
+
*
|
|
4
|
+
* Se invoca después de que el OC envíe el reporte regulatorio; este endpoint
|
|
5
|
+
* NO envía el reporte a SITI, solo registra el acuse y datos de trazabilidad.
|
|
6
|
+
*
|
|
7
|
+
* Precondiciones:
|
|
8
|
+
* - Alerta debe estar en estado CLOSE_RULED.
|
|
9
|
+
* - Alerta no debe haber sido reportada previamente (`reported === 0`).
|
|
10
|
+
*
|
|
11
|
+
* Si no cumple precondiciones → 409 ALERT_NOT_ELIGIBLE.
|
|
12
|
+
*/
|
|
13
|
+
export declare class MarkAlertReportedRequest {
|
|
14
|
+
reportSupTechId: string;
|
|
15
|
+
reportName: string;
|
|
16
|
+
fileNumber: string;
|
|
17
|
+
email: string;
|
|
18
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.MarkAlertReportedRequest = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
/**
|
|
16
|
+
* Solicitud para marcar una alerta como reportada a SITI (ROI enviado).
|
|
17
|
+
*
|
|
18
|
+
* Se invoca después de que el OC envíe el reporte regulatorio; este endpoint
|
|
19
|
+
* NO envía el reporte a SITI, solo registra el acuse y datos de trazabilidad.
|
|
20
|
+
*
|
|
21
|
+
* Precondiciones:
|
|
22
|
+
* - Alerta debe estar en estado CLOSE_RULED.
|
|
23
|
+
* - Alerta no debe haber sido reportada previamente (`reported === 0`).
|
|
24
|
+
*
|
|
25
|
+
* Si no cumple precondiciones → 409 ALERT_NOT_ELIGIBLE.
|
|
26
|
+
*/
|
|
27
|
+
class MarkAlertReportedRequest {
|
|
28
|
+
}
|
|
29
|
+
exports.MarkAlertReportedRequest = MarkAlertReportedRequest;
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_transformer_1.Expose)(),
|
|
32
|
+
(0, class_validator_1.IsString)(),
|
|
33
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], MarkAlertReportedRequest.prototype, "reportSupTechId", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, class_transformer_1.Expose)(),
|
|
38
|
+
(0, class_validator_1.IsString)(),
|
|
39
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], MarkAlertReportedRequest.prototype, "reportName", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, class_transformer_1.Expose)(),
|
|
44
|
+
(0, class_validator_1.IsString)(),
|
|
45
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], MarkAlertReportedRequest.prototype, "fileNumber", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, class_transformer_1.Expose)(),
|
|
50
|
+
(0, class_validator_1.IsEmail)({}, { message: 'email debe ser un correo válido' }),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], MarkAlertReportedRequest.prototype, "email", void 0);
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.MarkAlertReportedResponse = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
/**
|
|
15
|
+
* Respuesta de marcar alerta como reportada.
|
|
16
|
+
*/
|
|
17
|
+
class MarkAlertReportedResponse {
|
|
18
|
+
}
|
|
19
|
+
exports.MarkAlertReportedResponse = MarkAlertReportedResponse;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_transformer_1.Expose)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], MarkAlertReportedResponse.prototype, "alertId", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_transformer_1.Expose)(),
|
|
26
|
+
__metadata("design:type", Number)
|
|
27
|
+
], MarkAlertReportedResponse.prototype, "reported", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_transformer_1.Expose)(),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], MarkAlertReportedResponse.prototype, "observationId", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_transformer_1.Expose)(),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], MarkAlertReportedResponse.prototype, "snapshotKey", void 0);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { CustomAlarmName } from "../../enums/CustomAlarmName";
|
|
2
|
+
/**
|
|
3
|
+
* Solicitud para cambiar un umbral de alarma custom.
|
|
4
|
+
*
|
|
5
|
+
* Solo afecta alarmas custom (customHighAmount, customMonthlyIncrease).
|
|
6
|
+
* Las 3 alarmas base no se recalculan al modificar custom.
|
|
7
|
+
*
|
|
8
|
+
* Si `newValue` es `null`, se interpreta como "quitar override" (limpiar la custom).
|
|
9
|
+
*
|
|
10
|
+
* Idempotencia: si previousValue === newValue, devuelve 200 con noop=true.
|
|
11
|
+
*/
|
|
12
|
+
export declare class SetCustomAlarmRequest {
|
|
13
|
+
alarmName: CustomAlarmName;
|
|
14
|
+
newValue: number | null;
|
|
15
|
+
email: string;
|
|
16
|
+
notes: string;
|
|
17
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.SetCustomAlarmRequest = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const CustomAlarmName_1 = require("../../enums/CustomAlarmName");
|
|
16
|
+
/**
|
|
17
|
+
* Solicitud para cambiar un umbral de alarma custom.
|
|
18
|
+
*
|
|
19
|
+
* Solo afecta alarmas custom (customHighAmount, customMonthlyIncrease).
|
|
20
|
+
* Las 3 alarmas base no se recalculan al modificar custom.
|
|
21
|
+
*
|
|
22
|
+
* Si `newValue` es `null`, se interpreta como "quitar override" (limpiar la custom).
|
|
23
|
+
*
|
|
24
|
+
* Idempotencia: si previousValue === newValue, devuelve 200 con noop=true.
|
|
25
|
+
*/
|
|
26
|
+
class SetCustomAlarmRequest {
|
|
27
|
+
}
|
|
28
|
+
exports.SetCustomAlarmRequest = SetCustomAlarmRequest;
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_transformer_1.Expose)(),
|
|
31
|
+
(0, class_validator_1.IsEnum)(CustomAlarmName_1.CustomAlarmName),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], SetCustomAlarmRequest.prototype, "alarmName", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, class_transformer_1.Expose)(),
|
|
36
|
+
(0, class_validator_1.ValidateIf)(o => o.newValue !== null),
|
|
37
|
+
(0, class_validator_1.IsNumber)({}, { message: 'newValue debe ser un número o null' }),
|
|
38
|
+
(0, class_validator_1.Min)(0, { message: 'newValue debe ser ≥ 0' }),
|
|
39
|
+
__metadata("design:type", Number)
|
|
40
|
+
], SetCustomAlarmRequest.prototype, "newValue", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, class_transformer_1.Expose)(),
|
|
43
|
+
(0, class_validator_1.IsEmail)({}, { message: 'email debe ser un correo válido' }),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], SetCustomAlarmRequest.prototype, "email", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, class_transformer_1.Expose)(),
|
|
48
|
+
(0, class_validator_1.IsString)(),
|
|
49
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
50
|
+
(0, class_validator_1.MinLength)(10, { message: 'notes debe tener al menos 10 caracteres' }),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], SetCustomAlarmRequest.prototype, "notes", void 0);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { CustomAlarmName } from "../../enums/CustomAlarmName";
|
|
2
|
+
/**
|
|
3
|
+
* Respuesta de actualización de alarma custom.
|
|
4
|
+
*/
|
|
5
|
+
export declare class SetCustomAlarmResponse {
|
|
6
|
+
directoryId: string;
|
|
7
|
+
noop?: boolean;
|
|
8
|
+
alarmName?: CustomAlarmName;
|
|
9
|
+
previousValue?: number | null;
|
|
10
|
+
newValue?: number | null;
|
|
11
|
+
observationId?: string;
|
|
12
|
+
snapshotKey?: string;
|
|
13
|
+
}
|