@fiado/type-kit 3.24.0 → 3.25.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.
Files changed (148) hide show
  1. package/bin/remittance/dtos/RemittanceAddBeneficiaryRequest.d.ts +27 -0
  2. package/bin/remittance/dtos/RemittanceAddBeneficiaryRequest.js +110 -0
  3. package/bin/remittance/dtos/RemittanceBeneficiary.d.ts +20 -3
  4. package/bin/remittance/dtos/RemittanceBeneficiary.js +0 -5
  5. package/bin/remittance/dtos/RemittanceListBeneficiariesResponse.d.ts +6 -0
  6. package/bin/remittance/dtos/RemittanceListBeneficiariesResponse.js +6 -0
  7. package/bin/remittance/dtos/RemittanceUpdateBeneficiaryRequest.d.ts +11 -0
  8. package/bin/remittance/dtos/RemittanceUpdateBeneficiaryRequest.js +40 -0
  9. package/bin/remittance/dtos/index.d.ts +3 -0
  10. package/bin/remittance/dtos/index.js +3 -0
  11. package/bin/riskProfile/index.d.ts +0 -17
  12. package/bin/riskProfile/index.js +0 -19
  13. package/package.json +2 -3
  14. package/src/remittance/dtos/RemittanceAddBeneficiaryRequest.ts +81 -0
  15. package/src/remittance/dtos/RemittanceBeneficiary.ts +23 -3
  16. package/src/remittance/dtos/RemittanceListBeneficiariesResponse.ts +7 -0
  17. package/src/remittance/dtos/RemittanceUpdateBeneficiaryRequest.ts +24 -0
  18. package/src/remittance/dtos/index.ts +3 -0
  19. package/src/riskProfile/index.ts +0 -21
  20. package/bin/benefitCenter/dtos/BackofficeLeafOverrideUpsertRequest.d.ts +0 -22
  21. package/bin/benefitCenter/dtos/BackofficeLeafOverrideUpsertRequest.js +0 -91
  22. package/bin/benefitCenter/dtos/FieldOverrideRequest.d.ts +0 -19
  23. package/bin/benefitCenter/dtos/FieldOverrideRequest.js +0 -80
  24. package/bin/benefitCenter/dtos/InputSchemaOverrideRequest.d.ts +0 -9
  25. package/bin/benefitCenter/dtos/InputSchemaOverrideRequest.js +0 -29
  26. package/bin/benefitCenter/enums/LeafOverrideStatusEnum.d.ts +0 -10
  27. package/bin/benefitCenter/enums/LeafOverrideStatusEnum.js +0 -14
  28. package/bin/cognitoConnector/dtos/SignUpBackofficeRequest.d.ts +0 -13
  29. package/bin/cognitoConnector/dtos/SignUpBackofficeRequest.js +0 -71
  30. package/bin/comission-business/dtos/GenerateReportRequest.d.ts +0 -10
  31. package/bin/comission-business/dtos/GenerateReportRequest.js +0 -2
  32. package/bin/comission-business/dtos/GenerateReportResponse.d.ts +0 -6
  33. package/bin/comission-business/dtos/GenerateReportResponse.js +0 -2
  34. package/bin/comission-business/enums/PaymentStatusEnum.d.ts +0 -5
  35. package/bin/comission-business/enums/PaymentStatusEnum.js +0 -9
  36. package/bin/credit/dtos/CreditBannerStateResponse.d.ts +0 -10
  37. package/bin/credit/dtos/CreditBannerStateResponse.js +0 -6
  38. package/bin/credit/dtos/CreditDetailResponse.d.ts +0 -23
  39. package/bin/credit/dtos/CreditDetailResponse.js +0 -6
  40. package/bin/credit/dtos/CreditEligibilityResponse.d.ts +0 -9
  41. package/bin/credit/dtos/CreditEligibilityResponse.js +0 -6
  42. package/bin/credit/dtos/CreditMovementResponse.d.ts +0 -20
  43. package/bin/credit/dtos/CreditMovementResponse.js +0 -9
  44. package/bin/credit/dtos/CreditRequestCreate.d.ts +0 -4
  45. package/bin/credit/dtos/CreditRequestCreate.js +0 -26
  46. package/bin/credit/dtos/CreditRequestResponse.d.ts +0 -7
  47. package/bin/credit/dtos/CreditRequestResponse.js +0 -6
  48. package/bin/credit/dtos/CreditScheduleResponse.d.ts +0 -18
  49. package/bin/credit/dtos/CreditScheduleResponse.js +0 -9
  50. package/bin/credit/dtos/CreditStatementResponse.d.ts +0 -11
  51. package/bin/credit/dtos/CreditStatementResponse.js +0 -9
  52. package/bin/credit/dtos/EarlyPaymentRequest.d.ts +0 -7
  53. package/bin/credit/dtos/EarlyPaymentRequest.js +0 -37
  54. package/bin/credit/dtos/EarlyPaymentResponse.d.ts +0 -11
  55. package/bin/credit/dtos/EarlyPaymentResponse.js +0 -6
  56. package/bin/credit/dtos/internal/CreditBalanceRequest.d.ts +0 -3
  57. package/bin/credit/dtos/internal/CreditBalanceRequest.js +0 -21
  58. package/bin/credit/dtos/internal/CreditCollectionRequest.d.ts +0 -11
  59. package/bin/credit/dtos/internal/CreditCollectionRequest.js +0 -59
  60. package/bin/credit/dtos/internal/CreditCollectionResponse.d.ts +0 -12
  61. package/bin/credit/dtos/internal/CreditCollectionResponse.js +0 -6
  62. package/bin/credit/dtos/internal/CreditDisbursementRequest.d.ts +0 -7
  63. package/bin/credit/dtos/internal/CreditDisbursementRequest.js +0 -43
  64. package/bin/credit/dtos/internal/CreditDisbursementResponse.d.ts +0 -8
  65. package/bin/credit/dtos/internal/CreditDisbursementResponse.js +0 -6
  66. package/bin/credit/dtos/internal/CreditProfileRequest.d.ts +0 -3
  67. package/bin/credit/dtos/internal/CreditProfileRequest.js +0 -23
  68. package/bin/credit/dtos/internal/CreditReversalRequest.d.ts +0 -5
  69. package/bin/credit/dtos/internal/CreditReversalRequest.js +0 -31
  70. package/bin/credit/dtos/internal/CreditReversalResponse.d.ts +0 -7
  71. package/bin/credit/dtos/internal/CreditReversalResponse.js +0 -6
  72. package/bin/credit/dtos/internal/CreditTransferLoancoRequest.d.ts +0 -8
  73. package/bin/credit/dtos/internal/CreditTransferLoancoRequest.js +0 -46
  74. package/bin/credit/dtos/internal/CreditTransferLoancoResponse.d.ts +0 -8
  75. package/bin/credit/dtos/internal/CreditTransferLoancoResponse.js +0 -6
  76. package/bin/credit/dtos/internal/DocumentSignRequest.d.ts +0 -3
  77. package/bin/credit/dtos/internal/DocumentSignRequest.js +0 -21
  78. package/bin/credit/dtos/internal/LienApplyRequest.d.ts +0 -7
  79. package/bin/credit/dtos/internal/LienApplyRequest.js +0 -45
  80. package/bin/credit/enums/CollectionFrequencyEnum.d.ts +0 -5
  81. package/bin/credit/enums/CollectionFrequencyEnum.js +0 -9
  82. package/bin/credit/enums/CreditOperationEnum.d.ts +0 -11
  83. package/bin/credit/enums/CreditOperationEnum.js +0 -15
  84. package/bin/credit/enums/CreditStatusEnum.d.ts +0 -12
  85. package/bin/credit/enums/CreditStatusEnum.js +0 -16
  86. package/bin/credit/enums/DelinquencyLevelEnum.d.ts +0 -9
  87. package/bin/credit/enums/DelinquencyLevelEnum.js +0 -13
  88. package/bin/credit/enums/DocumentTypeEnum.d.ts +0 -8
  89. package/bin/credit/enums/DocumentTypeEnum.js +0 -12
  90. package/bin/credit/enums/OfferStatusEnum.d.ts +0 -8
  91. package/bin/credit/enums/OfferStatusEnum.js +0 -12
  92. package/bin/credit/enums/PaymentTypeEnum.d.ts +0 -9
  93. package/bin/credit/enums/PaymentTypeEnum.js +0 -13
  94. package/bin/credit/enums/ReconciliationStatusEnum.d.ts +0 -6
  95. package/bin/credit/enums/ReconciliationStatusEnum.js +0 -10
  96. package/bin/credit/enums/TransferStatusEnum.d.ts +0 -8
  97. package/bin/credit/enums/TransferStatusEnum.js +0 -12
  98. package/bin/riskProfile/dtos/private/AppendAlertNoteRequest.d.ts +0 -16
  99. package/bin/riskProfile/dtos/private/AppendAlertNoteRequest.js +0 -45
  100. package/bin/riskProfile/dtos/private/AppendAlertNoteResponse.d.ts +0 -10
  101. package/bin/riskProfile/dtos/private/AppendAlertNoteResponse.js +0 -36
  102. package/bin/riskProfile/dtos/private/CreateBlockedListAlertRequest.d.ts +0 -19
  103. package/bin/riskProfile/dtos/private/CreateBlockedListAlertRequest.js +0 -64
  104. package/bin/riskProfile/dtos/private/CreateBlockedListAlertResponse.d.ts +0 -8
  105. package/bin/riskProfile/dtos/private/CreateBlockedListAlertResponse.js +0 -31
  106. package/bin/riskProfile/dtos/private/DictaminateAlertRequest.d.ts +0 -17
  107. package/bin/riskProfile/dtos/private/DictaminateAlertRequest.js +0 -46
  108. package/bin/riskProfile/dtos/private/DictaminateAlertResponse.d.ts +0 -14
  109. package/bin/riskProfile/dtos/private/DictaminateAlertResponse.js +0 -46
  110. package/bin/riskProfile/dtos/private/MarkAlertReportedRequest.d.ts +0 -18
  111. package/bin/riskProfile/dtos/private/MarkAlertReportedRequest.js +0 -52
  112. package/bin/riskProfile/dtos/private/MarkAlertReportedResponse.d.ts +0 -9
  113. package/bin/riskProfile/dtos/private/MarkAlertReportedResponse.js +0 -35
  114. package/bin/riskProfile/dtos/private/SetCustomAlarmRequest.d.ts +0 -17
  115. package/bin/riskProfile/dtos/private/SetCustomAlarmRequest.js +0 -52
  116. package/bin/riskProfile/dtos/private/SetCustomAlarmResponse.d.ts +0 -13
  117. package/bin/riskProfile/dtos/private/SetCustomAlarmResponse.js +0 -48
  118. package/bin/riskProfile/dtos/private/SetDeclaredIncomeRequest.d.ts +0 -14
  119. package/bin/riskProfile/dtos/private/SetDeclaredIncomeRequest.js +0 -44
  120. package/bin/riskProfile/dtos/private/SetDeclaredIncomeResponse.d.ts +0 -20
  121. package/bin/riskProfile/dtos/private/SetDeclaredIncomeResponse.js +0 -49
  122. package/bin/riskProfile/dtos/private/SetManualRiskLevelRequest.d.ts +0 -24
  123. package/bin/riskProfile/dtos/private/SetManualRiskLevelRequest.js +0 -55
  124. package/bin/riskProfile/dtos/private/SetManualRiskLevelResponse.d.ts +0 -20
  125. package/bin/riskProfile/dtos/private/SetManualRiskLevelResponse.js +0 -54
  126. package/bin/riskProfile/enums/CustomAlarmName.d.ts +0 -9
  127. package/bin/riskProfile/enums/CustomAlarmName.js +0 -13
  128. package/bin/riskProfile/enums/DictamenStatus.d.ts +0 -9
  129. package/bin/riskProfile/enums/DictamenStatus.js +0 -13
  130. package/bin/riskProfile/enums/NotesMode.d.ts +0 -9
  131. package/bin/riskProfile/enums/NotesMode.js +0 -13
  132. package/src/riskProfile/dtos/private/AppendAlertNoteRequest.ts +0 -29
  133. package/src/riskProfile/dtos/private/AppendAlertNoteResponse.ts +0 -12
  134. package/src/riskProfile/dtos/private/CreateBlockedListAlertRequest.ts +0 -22
  135. package/src/riskProfile/dtos/private/CreateBlockedListAlertResponse.ts +0 -10
  136. package/src/riskProfile/dtos/private/DictaminateAlertRequest.ts +0 -30
  137. package/src/riskProfile/dtos/private/DictaminateAlertResponse.ts +0 -16
  138. package/src/riskProfile/dtos/private/MarkAlertReportedRequest.ts +0 -21
  139. package/src/riskProfile/dtos/private/MarkAlertReportedResponse.ts +0 -11
  140. package/src/riskProfile/dtos/private/SetCustomAlarmRequest.ts +0 -31
  141. package/src/riskProfile/dtos/private/SetCustomAlarmResponse.ts +0 -15
  142. package/src/riskProfile/dtos/private/SetDeclaredIncomeRequest.ts +0 -26
  143. package/src/riskProfile/dtos/private/SetDeclaredIncomeResponse.ts +0 -22
  144. package/src/riskProfile/dtos/private/SetManualRiskLevelRequest.ts +0 -37
  145. package/src/riskProfile/dtos/private/SetManualRiskLevelResponse.ts +0 -22
  146. package/src/riskProfile/enums/CustomAlarmName.ts +0 -9
  147. package/src/riskProfile/enums/DictamenStatus.ts +0 -9
  148. package/src/riskProfile/enums/NotesMode.ts +0 -9
@@ -1,44 +0,0 @@
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.SetDeclaredIncomeRequest = void 0;
13
- const class_transformer_1 = require("class-transformer");
14
- const class_validator_1 = require("class-validator");
15
- /**
16
- * Solicitud para cambiar `declaredMonthlyIncome` del perfil.
17
- *
18
- * Side effects (atómicos):
19
- * - Recalcula las 5 alarmas base (highAmount, monthlyIncrease, monthlyLimit y derivadas).
20
- * - Las alarmas custom NO se recalculan.
21
- *
22
- * Idempotencia: si previousIncome === newValue, devuelve 200 con noop=true.
23
- */
24
- class SetDeclaredIncomeRequest {
25
- }
26
- exports.SetDeclaredIncomeRequest = SetDeclaredIncomeRequest;
27
- __decorate([
28
- (0, class_transformer_1.Expose)(),
29
- (0, class_validator_1.IsInt)({ message: 'newValue debe ser entero (centavos MXN)' }),
30
- (0, class_validator_1.Min)(0, { message: 'newValue debe ser ≥ 0' }),
31
- __metadata("design:type", Number)
32
- ], SetDeclaredIncomeRequest.prototype, "newValue", void 0);
33
- __decorate([
34
- (0, class_transformer_1.Expose)(),
35
- (0, class_validator_1.IsEmail)({}, { message: 'email debe ser un correo válido' }),
36
- __metadata("design:type", String)
37
- ], SetDeclaredIncomeRequest.prototype, "email", void 0);
38
- __decorate([
39
- (0, class_transformer_1.Expose)(),
40
- (0, class_validator_1.IsString)(),
41
- (0, class_validator_1.IsNotEmpty)(),
42
- (0, class_validator_1.MinLength)(10, { message: 'notes debe tener al menos 10 caracteres' }),
43
- __metadata("design:type", String)
44
- ], SetDeclaredIncomeRequest.prototype, "notes", void 0);
@@ -1,20 +0,0 @@
1
- /**
2
- * Respuesta de actualización de declaredMonthlyIncome.
3
- *
4
- * `alarmas` incluye las 5 alarmas recalculadas más los valores custom (que no cambian).
5
- */
6
- export declare class SetDeclaredIncomeResponse {
7
- directoryId: string;
8
- noop?: boolean;
9
- previousIncome?: number;
10
- newIncome?: number;
11
- alarmas?: {
12
- highAmount: number;
13
- monthlyIncrease: number;
14
- monthlyLimit: number;
15
- customHighAmount: number | null;
16
- customMonthlyIncrease: number | null;
17
- };
18
- observationId?: string;
19
- snapshotKey?: string;
20
- }
@@ -1,49 +0,0 @@
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.SetDeclaredIncomeResponse = void 0;
13
- const class_transformer_1 = require("class-transformer");
14
- /**
15
- * Respuesta de actualización de declaredMonthlyIncome.
16
- *
17
- * `alarmas` incluye las 5 alarmas recalculadas más los valores custom (que no cambian).
18
- */
19
- class SetDeclaredIncomeResponse {
20
- }
21
- exports.SetDeclaredIncomeResponse = SetDeclaredIncomeResponse;
22
- __decorate([
23
- (0, class_transformer_1.Expose)(),
24
- __metadata("design:type", String)
25
- ], SetDeclaredIncomeResponse.prototype, "directoryId", void 0);
26
- __decorate([
27
- (0, class_transformer_1.Expose)(),
28
- __metadata("design:type", Boolean)
29
- ], SetDeclaredIncomeResponse.prototype, "noop", void 0);
30
- __decorate([
31
- (0, class_transformer_1.Expose)(),
32
- __metadata("design:type", Number)
33
- ], SetDeclaredIncomeResponse.prototype, "previousIncome", void 0);
34
- __decorate([
35
- (0, class_transformer_1.Expose)(),
36
- __metadata("design:type", Number)
37
- ], SetDeclaredIncomeResponse.prototype, "newIncome", void 0);
38
- __decorate([
39
- (0, class_transformer_1.Expose)(),
40
- __metadata("design:type", Object)
41
- ], SetDeclaredIncomeResponse.prototype, "alarmas", void 0);
42
- __decorate([
43
- (0, class_transformer_1.Expose)(),
44
- __metadata("design:type", String)
45
- ], SetDeclaredIncomeResponse.prototype, "observationId", void 0);
46
- __decorate([
47
- (0, class_transformer_1.Expose)(),
48
- __metadata("design:type", String)
49
- ], SetDeclaredIncomeResponse.prototype, "snapshotKey", void 0);
@@ -1,24 +0,0 @@
1
- /**
2
- * Solicitud para cambiar el manualRiskLevel del perfil de riesgo.
3
- *
4
- * Aplica override manual del nivel de riesgo calculado automáticamente.
5
- *
6
- * Side effects (atómicos respecto al cambio principal):
7
- * - Recalcula las 3 alarmas base (highAmount, monthlyIncrease, monthlyLimit) usando
8
- * `effectiveLevel = newLevel > 0 ? newLevel : profile.riskLevel`.
9
- * - Si `newLevel > previousLevel AND newLevel > 0`: crea alerta MANUAL_RISK_INCREASE
10
- * con AlarmType.UNUSUAL.
11
- *
12
- * Mapeo de `newLevel`:
13
- * - 0 = sin override (usa el riskLevel calculado)
14
- * - 1 = Bajo
15
- * - 2 = Medio
16
- * - 3 = Alto
17
- *
18
- * Idempotencia: si `previousLevel === newLevel`, devuelve 200 con noop=true.
19
- */
20
- export declare class SetManualRiskLevelRequest {
21
- newLevel: number;
22
- email: string;
23
- notes: string;
24
- }
@@ -1,55 +0,0 @@
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.SetManualRiskLevelRequest = void 0;
13
- const class_transformer_1 = require("class-transformer");
14
- const class_validator_1 = require("class-validator");
15
- /**
16
- * Solicitud para cambiar el manualRiskLevel del perfil de riesgo.
17
- *
18
- * Aplica override manual del nivel de riesgo calculado automáticamente.
19
- *
20
- * Side effects (atómicos respecto al cambio principal):
21
- * - Recalcula las 3 alarmas base (highAmount, monthlyIncrease, monthlyLimit) usando
22
- * `effectiveLevel = newLevel > 0 ? newLevel : profile.riskLevel`.
23
- * - Si `newLevel > previousLevel AND newLevel > 0`: crea alerta MANUAL_RISK_INCREASE
24
- * con AlarmType.UNUSUAL.
25
- *
26
- * Mapeo de `newLevel`:
27
- * - 0 = sin override (usa el riskLevel calculado)
28
- * - 1 = Bajo
29
- * - 2 = Medio
30
- * - 3 = Alto
31
- *
32
- * Idempotencia: si `previousLevel === newLevel`, devuelve 200 con noop=true.
33
- */
34
- class SetManualRiskLevelRequest {
35
- }
36
- exports.SetManualRiskLevelRequest = SetManualRiskLevelRequest;
37
- __decorate([
38
- (0, class_transformer_1.Expose)(),
39
- (0, class_validator_1.IsInt)(),
40
- (0, class_validator_1.Min)(0, { message: 'newLevel debe ser 0, 1, 2 o 3' }),
41
- (0, class_validator_1.Max)(3, { message: 'newLevel debe ser 0, 1, 2 o 3' }),
42
- __metadata("design:type", Number)
43
- ], SetManualRiskLevelRequest.prototype, "newLevel", void 0);
44
- __decorate([
45
- (0, class_transformer_1.Expose)(),
46
- (0, class_validator_1.IsEmail)({}, { message: 'email debe ser un correo válido' }),
47
- __metadata("design:type", String)
48
- ], SetManualRiskLevelRequest.prototype, "email", void 0);
49
- __decorate([
50
- (0, class_transformer_1.Expose)(),
51
- (0, class_validator_1.IsString)(),
52
- (0, class_validator_1.IsNotEmpty)(),
53
- (0, class_validator_1.MinLength)(10, { message: 'notes debe tener al menos 10 caracteres' }),
54
- __metadata("design:type", String)
55
- ], SetManualRiskLevelRequest.prototype, "notes", void 0);
@@ -1,20 +0,0 @@
1
- /**
2
- * Respuesta del cambio de manualRiskLevel.
3
- *
4
- * Si fue noop (mismo valor previo), `noop: true` y el resto de campos no aplican.
5
- * En caso de éxito real, incluye las alarmas recalculadas y el id de alerta auto-creada si subió el nivel.
6
- */
7
- export declare class SetManualRiskLevelResponse {
8
- directoryId: string;
9
- noop?: boolean;
10
- previousLevel?: number;
11
- newLevel?: number;
12
- alarmasRecalculadas?: {
13
- highAmount: number;
14
- monthlyIncrease: number;
15
- monthlyLimit: number;
16
- };
17
- alertaCreada?: string;
18
- observationId?: string;
19
- snapshotKey?: string;
20
- }
@@ -1,54 +0,0 @@
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.SetManualRiskLevelResponse = void 0;
13
- const class_transformer_1 = require("class-transformer");
14
- /**
15
- * Respuesta del cambio de manualRiskLevel.
16
- *
17
- * Si fue noop (mismo valor previo), `noop: true` y el resto de campos no aplican.
18
- * En caso de éxito real, incluye las alarmas recalculadas y el id de alerta auto-creada si subió el nivel.
19
- */
20
- class SetManualRiskLevelResponse {
21
- }
22
- exports.SetManualRiskLevelResponse = SetManualRiskLevelResponse;
23
- __decorate([
24
- (0, class_transformer_1.Expose)(),
25
- __metadata("design:type", String)
26
- ], SetManualRiskLevelResponse.prototype, "directoryId", void 0);
27
- __decorate([
28
- (0, class_transformer_1.Expose)(),
29
- __metadata("design:type", Boolean)
30
- ], SetManualRiskLevelResponse.prototype, "noop", void 0);
31
- __decorate([
32
- (0, class_transformer_1.Expose)(),
33
- __metadata("design:type", Number)
34
- ], SetManualRiskLevelResponse.prototype, "previousLevel", void 0);
35
- __decorate([
36
- (0, class_transformer_1.Expose)(),
37
- __metadata("design:type", Number)
38
- ], SetManualRiskLevelResponse.prototype, "newLevel", void 0);
39
- __decorate([
40
- (0, class_transformer_1.Expose)(),
41
- __metadata("design:type", Object)
42
- ], SetManualRiskLevelResponse.prototype, "alarmasRecalculadas", void 0);
43
- __decorate([
44
- (0, class_transformer_1.Expose)(),
45
- __metadata("design:type", String)
46
- ], SetManualRiskLevelResponse.prototype, "alertaCreada", void 0);
47
- __decorate([
48
- (0, class_transformer_1.Expose)(),
49
- __metadata("design:type", String)
50
- ], SetManualRiskLevelResponse.prototype, "observationId", void 0);
51
- __decorate([
52
- (0, class_transformer_1.Expose)(),
53
- __metadata("design:type", String)
54
- ], SetManualRiskLevelResponse.prototype, "snapshotKey", void 0);
@@ -1,9 +0,0 @@
1
- /**
2
- * Nombres válidos de alarmas custom configurables manualmente por el OC.
3
- * Solo estas dos alarmas aceptan override de umbral; las 3 alarmas base
4
- * (highAmount, monthlyIncrease, monthlyLimit) se recalculan automáticamente.
5
- */
6
- export declare enum CustomAlarmName {
7
- CUSTOM_HIGH_AMOUNT = "customHighAmount",
8
- CUSTOM_MONTHLY_INCREASE = "customMonthlyIncrease"
9
- }
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CustomAlarmName = void 0;
4
- /**
5
- * Nombres válidos de alarmas custom configurables manualmente por el OC.
6
- * Solo estas dos alarmas aceptan override de umbral; las 3 alarmas base
7
- * (highAmount, monthlyIncrease, monthlyLimit) se recalculan automáticamente.
8
- */
9
- var CustomAlarmName;
10
- (function (CustomAlarmName) {
11
- CustomAlarmName["CUSTOM_HIGH_AMOUNT"] = "customHighAmount";
12
- CustomAlarmName["CUSTOM_MONTHLY_INCREASE"] = "customMonthlyIncrease";
13
- })(CustomAlarmName || (exports.CustomAlarmName = CustomAlarmName = {}));
@@ -1,9 +0,0 @@
1
- /**
2
- * Estados terminales válidos al dictaminar una alerta.
3
- * Una alerta solo puede transicionar a estos estados desde NEW o PENDING.
4
- */
5
- export declare enum DictamenStatus {
6
- CLOSE_JUSTIFIED = "CLOSE_JUSTIFIED",
7
- CLOSE_RULED = "CLOSE_RULED",
8
- CLOSED = "CLOSED"
9
- }
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DictamenStatus = void 0;
4
- /**
5
- * Estados terminales válidos al dictaminar una alerta.
6
- * Una alerta solo puede transicionar a estos estados desde NEW o PENDING.
7
- */
8
- var DictamenStatus;
9
- (function (DictamenStatus) {
10
- DictamenStatus["CLOSE_JUSTIFIED"] = "CLOSE_JUSTIFIED";
11
- DictamenStatus["CLOSE_RULED"] = "CLOSE_RULED";
12
- DictamenStatus["CLOSED"] = "CLOSED";
13
- })(DictamenStatus || (exports.DictamenStatus = DictamenStatus = {}));
@@ -1,9 +0,0 @@
1
- /**
2
- * Modo de modificación de notas al agregar texto a una alerta sin dictaminar.
3
- * - REPLACE: sobrescribe el contenido de notes.
4
- * - APPEND: concatena al final con un salto de línea.
5
- */
6
- export declare enum NotesMode {
7
- REPLACE = "replace",
8
- APPEND = "append"
9
- }
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.NotesMode = void 0;
4
- /**
5
- * Modo de modificación de notas al agregar texto a una alerta sin dictaminar.
6
- * - REPLACE: sobrescribe el contenido de notes.
7
- * - APPEND: concatena al final con un salto de línea.
8
- */
9
- var NotesMode;
10
- (function (NotesMode) {
11
- NotesMode["REPLACE"] = "replace";
12
- NotesMode["APPEND"] = "append";
13
- })(NotesMode || (exports.NotesMode = NotesMode = {}));
@@ -1,29 +0,0 @@
1
- import { Expose } from "class-transformer";
2
- import { IsEmail, IsEnum, IsNotEmpty, IsString, MinLength } from "class-validator";
3
- import { NotesMode } from "../../enums/NotesMode";
4
-
5
- /**
6
- * Solicitud para agregar nota a una alerta sin dictaminar.
7
- *
8
- * Permite al OC agregar contexto a una alerta en estado NEW o PENDING sin cerrarla.
9
- * El modo `APPEND` concatena al final; `REPLACE` sobrescribe.
10
- *
11
- * Reglas de negocio:
12
- * - `notes` mínimo 10 caracteres.
13
- * - El append no es atómico ante escritura concurrente — el último gana.
14
- */
15
- export class AppendAlertNoteRequest {
16
- @Expose()
17
- @IsString()
18
- @IsNotEmpty()
19
- @MinLength(10, { message: 'notes debe tener al menos 10 caracteres' })
20
- notes!: string;
21
-
22
- @Expose()
23
- @IsEnum(NotesMode)
24
- mode!: NotesMode;
25
-
26
- @Expose()
27
- @IsEmail({}, { message: 'email debe ser un correo válido' })
28
- email!: string;
29
- }
@@ -1,12 +0,0 @@
1
- import { Expose } from "class-transformer";
2
-
3
- /**
4
- * Respuesta de agregar nota a una alerta.
5
- * `notesUpdated` indica si efectivamente hubo cambio (false si el texto resultante fue idéntico).
6
- */
7
- export class AppendAlertNoteResponse {
8
- @Expose() alertId!: string;
9
- @Expose() notesUpdated!: boolean;
10
- @Expose() observationId?: string;
11
- @Expose() snapshotKey!: string;
12
- }
@@ -1,22 +0,0 @@
1
- import { Expose } from "class-transformer";
2
- import { IsEmail, IsNotEmpty, IsString, MinLength } from "class-validator";
3
-
4
- /**
5
- * Solicitud para crear una alerta BLOCKED_LIST manualmente.
6
- *
7
- * Se invoca cuando el caller ha identificado un match contra la lista LPB.
8
- * El BO no consulta `blacklist-business` ni la lista negra interna de Fiado;
9
- * confía en el caller y solo registra la alerta.
10
- *
11
- * Reglas de negocio:
12
- * - Si ya existe alerta BLOCKED_LIST abierta (NEW/PENDING) para el mismo directoryId, devuelve 409.
13
- * - `reason` mínimo 10 caracteres (descripción del match LPB).
14
- */
15
- export class CreateBlockedListAlertRequest {
16
- @Expose() @IsString() @IsNotEmpty() directoryId!: string;
17
- @Expose() @IsString() @IsNotEmpty() peopleId!: string;
18
- @Expose() @IsString() @IsNotEmpty() indexName!: string;
19
- @Expose() @IsString() @IsNotEmpty() phoneNumber!: string;
20
- @Expose() @IsEmail({}, { message: 'email debe ser un correo válido' }) email!: string;
21
- @Expose() @IsString() @IsNotEmpty() @MinLength(10, { message: 'reason debe tener al menos 10 caracteres' }) reason!: string;
22
- }
@@ -1,10 +0,0 @@
1
- import { Expose } from "class-transformer";
2
-
3
- /**
4
- * Respuesta de creación de alerta BLOCKED_LIST.
5
- */
6
- export class CreateBlockedListAlertResponse {
7
- @Expose() alertId!: string;
8
- @Expose() observationId?: string;
9
- @Expose() snapshotKey!: string;
10
- }
@@ -1,30 +0,0 @@
1
- import { Expose } from "class-transformer";
2
- import { IsEmail, IsEnum, IsNotEmpty, IsString, MinLength } from "class-validator";
3
- import { DictamenStatus } from "../../enums/DictamenStatus";
4
-
5
- /**
6
- * Solicitud para dictaminar una alerta de PLD.
7
- *
8
- * Cierra una alerta en estado NEW o PENDING transicionándola a uno de los estados terminales.
9
- * Genera audit trail completo (Observation + snapshot S3) y queda inmutable.
10
- *
11
- * Reglas de negocio:
12
- * - `newStatus` debe ser uno de los estados de cierre permitidos.
13
- * - `newNotes` queda como justificación regulatoria del dictamen (mínimo 10 caracteres).
14
- * - `email` es el correo del Oficial de Cumplimiento que ejecuta la operación.
15
- */
16
- export class DictaminateAlertRequest {
17
- @Expose()
18
- @IsEnum(DictamenStatus)
19
- newStatus!: DictamenStatus;
20
-
21
- @Expose()
22
- @IsString()
23
- @IsNotEmpty()
24
- @MinLength(10, { message: 'newNotes debe tener al menos 10 caracteres' })
25
- newNotes!: string;
26
-
27
- @Expose()
28
- @IsEmail({}, { message: 'email debe ser un correo válido' })
29
- email!: string;
30
- }
@@ -1,16 +0,0 @@
1
- import { Expose } from "class-transformer";
2
-
3
- /**
4
- * Respuesta de la operación de dictamen de alerta.
5
- *
6
- * Incluye el hash SHA-256 del snapshot inmutable guardado en S3.
7
- * El `snapshotKey` puede usarse para recuperar el snapshot completo desde el bucket de audit.
8
- */
9
- export class DictaminateAlertResponse {
10
- @Expose() alertId!: string;
11
- @Expose() previousStatus!: string;
12
- @Expose() newStatus!: string;
13
- @Expose() snapshotKey!: string;
14
- @Expose() snapshotHash!: string;
15
- @Expose() observationId?: string;
16
- }
@@ -1,21 +0,0 @@
1
- import { Expose } from "class-transformer";
2
- import { IsEmail, IsNotEmpty, IsString } from "class-validator";
3
-
4
- /**
5
- * Solicitud para marcar una alerta como reportada a SITI (ROI enviado).
6
- *
7
- * Se invoca después de que el OC envíe el reporte regulatorio; este endpoint
8
- * NO envía el reporte a SITI, solo registra el acuse y datos de trazabilidad.
9
- *
10
- * Precondiciones:
11
- * - Alerta debe estar en estado CLOSE_RULED.
12
- * - Alerta no debe haber sido reportada previamente (`reported === 0`).
13
- *
14
- * Si no cumple precondiciones → 409 ALERT_NOT_ELIGIBLE.
15
- */
16
- export class MarkAlertReportedRequest {
17
- @Expose() @IsString() @IsNotEmpty() reportSupTechId!: string;
18
- @Expose() @IsString() @IsNotEmpty() reportName!: string;
19
- @Expose() @IsString() @IsNotEmpty() fileNumber!: string;
20
- @Expose() @IsEmail({}, { message: 'email debe ser un correo válido' }) email!: string;
21
- }
@@ -1,11 +0,0 @@
1
- import { Expose } from "class-transformer";
2
-
3
- /**
4
- * Respuesta de marcar alerta como reportada.
5
- */
6
- export class MarkAlertReportedResponse {
7
- @Expose() alertId!: string;
8
- @Expose() reported!: 1 | 0;
9
- @Expose() observationId?: string;
10
- @Expose() snapshotKey!: string;
11
- }
@@ -1,31 +0,0 @@
1
- import { Expose } from "class-transformer";
2
- import { IsEmail, IsEnum, IsNotEmpty, IsNumber, IsString, Min, MinLength, ValidateIf } from "class-validator";
3
- import { CustomAlarmName } from "../../enums/CustomAlarmName";
4
-
5
- /**
6
- * Solicitud para cambiar un umbral de alarma custom.
7
- *
8
- * Solo afecta alarmas custom (customHighAmount, customMonthlyIncrease).
9
- * Las 3 alarmas base no se recalculan al modificar custom.
10
- *
11
- * Si `newValue` es `null`, se interpreta como "quitar override" (limpiar la custom).
12
- *
13
- * Idempotencia: si previousValue === newValue, devuelve 200 con noop=true.
14
- */
15
- export class SetCustomAlarmRequest {
16
- @Expose() @IsEnum(CustomAlarmName) alarmName!: CustomAlarmName;
17
-
18
- @Expose()
19
- @ValidateIf(o => o.newValue !== null)
20
- @IsNumber({}, { message: 'newValue debe ser un número o null' })
21
- @Min(0, { message: 'newValue debe ser ≥ 0' })
22
- newValue!: number | null;
23
-
24
- @Expose() @IsEmail({}, { message: 'email debe ser un correo válido' }) email!: string;
25
-
26
- @Expose()
27
- @IsString()
28
- @IsNotEmpty()
29
- @MinLength(10, { message: 'notes debe tener al menos 10 caracteres' })
30
- notes!: string;
31
- }
@@ -1,15 +0,0 @@
1
- import { Expose } from "class-transformer";
2
- import { CustomAlarmName } from "../../enums/CustomAlarmName";
3
-
4
- /**
5
- * Respuesta de actualización de alarma custom.
6
- */
7
- export class SetCustomAlarmResponse {
8
- @Expose() directoryId!: string;
9
- @Expose() noop?: boolean;
10
- @Expose() alarmName?: CustomAlarmName;
11
- @Expose() previousValue?: number | null;
12
- @Expose() newValue?: number | null;
13
- @Expose() observationId?: string;
14
- @Expose() snapshotKey?: string;
15
- }
@@ -1,26 +0,0 @@
1
- import { Expose } from "class-transformer";
2
- import { IsEmail, IsInt, IsNotEmpty, IsString, Min, MinLength } from "class-validator";
3
-
4
- /**
5
- * Solicitud para cambiar `declaredMonthlyIncome` del perfil.
6
- *
7
- * Side effects (atómicos):
8
- * - Recalcula las 5 alarmas base (highAmount, monthlyIncrease, monthlyLimit y derivadas).
9
- * - Las alarmas custom NO se recalculan.
10
- *
11
- * Idempotencia: si previousIncome === newValue, devuelve 200 con noop=true.
12
- */
13
- export class SetDeclaredIncomeRequest {
14
- @Expose()
15
- @IsInt({ message: 'newValue debe ser entero (centavos MXN)' })
16
- @Min(0, { message: 'newValue debe ser ≥ 0' })
17
- newValue!: number;
18
-
19
- @Expose() @IsEmail({}, { message: 'email debe ser un correo válido' }) email!: string;
20
-
21
- @Expose()
22
- @IsString()
23
- @IsNotEmpty()
24
- @MinLength(10, { message: 'notes debe tener al menos 10 caracteres' })
25
- notes!: string;
26
- }
@@ -1,22 +0,0 @@
1
- import { Expose } from "class-transformer";
2
-
3
- /**
4
- * Respuesta de actualización de declaredMonthlyIncome.
5
- *
6
- * `alarmas` incluye las 5 alarmas recalculadas más los valores custom (que no cambian).
7
- */
8
- export class SetDeclaredIncomeResponse {
9
- @Expose() directoryId!: string;
10
- @Expose() noop?: boolean;
11
- @Expose() previousIncome?: number;
12
- @Expose() newIncome?: number;
13
- @Expose() alarmas?: {
14
- highAmount: number;
15
- monthlyIncrease: number;
16
- monthlyLimit: number;
17
- customHighAmount: number | null;
18
- customMonthlyIncrease: number | null;
19
- };
20
- @Expose() observationId?: string;
21
- @Expose() snapshotKey?: string;
22
- }
@@ -1,37 +0,0 @@
1
- import { Expose } from "class-transformer";
2
- import { IsEmail, IsInt, IsNotEmpty, IsString, Max, Min, MinLength } from "class-validator";
3
-
4
- /**
5
- * Solicitud para cambiar el manualRiskLevel del perfil de riesgo.
6
- *
7
- * Aplica override manual del nivel de riesgo calculado automáticamente.
8
- *
9
- * Side effects (atómicos respecto al cambio principal):
10
- * - Recalcula las 3 alarmas base (highAmount, monthlyIncrease, monthlyLimit) usando
11
- * `effectiveLevel = newLevel > 0 ? newLevel : profile.riskLevel`.
12
- * - Si `newLevel > previousLevel AND newLevel > 0`: crea alerta MANUAL_RISK_INCREASE
13
- * con AlarmType.UNUSUAL.
14
- *
15
- * Mapeo de `newLevel`:
16
- * - 0 = sin override (usa el riskLevel calculado)
17
- * - 1 = Bajo
18
- * - 2 = Medio
19
- * - 3 = Alto
20
- *
21
- * Idempotencia: si `previousLevel === newLevel`, devuelve 200 con noop=true.
22
- */
23
- export class SetManualRiskLevelRequest {
24
- @Expose()
25
- @IsInt()
26
- @Min(0, { message: 'newLevel debe ser 0, 1, 2 o 3' })
27
- @Max(3, { message: 'newLevel debe ser 0, 1, 2 o 3' })
28
- newLevel!: number;
29
-
30
- @Expose() @IsEmail({}, { message: 'email debe ser un correo válido' }) email!: string;
31
-
32
- @Expose()
33
- @IsString()
34
- @IsNotEmpty()
35
- @MinLength(10, { message: 'notes debe tener al menos 10 caracteres' })
36
- notes!: string;
37
- }