@fiado/type-kit 3.24.0 → 3.26.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/bin/remittance/dtos/RemittanceAddBeneficiaryRequest.d.ts +27 -0
- package/bin/remittance/dtos/RemittanceAddBeneficiaryRequest.js +110 -0
- package/bin/remittance/dtos/RemittanceBeneficiary.d.ts +20 -3
- package/bin/remittance/dtos/RemittanceBeneficiary.js +0 -5
- package/bin/remittance/dtos/RemittanceListBeneficiariesResponse.d.ts +6 -0
- package/bin/remittance/dtos/RemittanceListBeneficiariesResponse.js +6 -0
- package/bin/remittance/dtos/RemittanceQuoteRequest.d.ts +17 -0
- package/bin/{credit/dtos/internal/CreditTransferLoancoRequest.js → remittance/dtos/RemittanceQuoteRequest.js} +24 -19
- package/bin/remittance/dtos/RemittanceQuoteResponse.d.ts +11 -0
- package/bin/remittance/dtos/RemittanceQuoteResponse.js +6 -0
- package/bin/remittance/dtos/RemittanceSendPreviewRequest.d.ts +9 -0
- package/bin/{credit/dtos/EarlyPaymentRequest.js → remittance/dtos/RemittanceSendPreviewRequest.js} +14 -17
- package/bin/remittance/dtos/RemittanceSendPreviewResponse.d.ts +18 -0
- package/bin/remittance/dtos/RemittanceSendPreviewResponse.js +6 -0
- package/bin/remittance/dtos/RemittanceUpdateBeneficiaryRequest.d.ts +11 -0
- package/bin/remittance/dtos/RemittanceUpdateBeneficiaryRequest.js +40 -0
- package/bin/remittance/dtos/index.d.ts +7 -0
- package/bin/remittance/dtos/index.js +7 -0
- package/bin/riskProfile/index.d.ts +0 -17
- package/bin/riskProfile/index.js +0 -19
- package/package.json +2 -3
- package/src/remittance/dtos/RemittanceAddBeneficiaryRequest.ts +81 -0
- package/src/remittance/dtos/RemittanceBeneficiary.ts +23 -3
- package/src/remittance/dtos/RemittanceListBeneficiariesResponse.ts +7 -0
- package/src/remittance/dtos/RemittanceQuoteRequest.ts +33 -0
- package/src/remittance/dtos/RemittanceQuoteResponse.ts +11 -0
- package/src/remittance/dtos/RemittanceSendPreviewRequest.ts +18 -0
- package/src/remittance/dtos/RemittanceSendPreviewResponse.ts +19 -0
- package/src/remittance/dtos/RemittanceUpdateBeneficiaryRequest.ts +24 -0
- package/src/remittance/dtos/index.ts +7 -0
- package/src/riskProfile/index.ts +0 -21
- package/bin/benefitCenter/dtos/BackofficeLeafOverrideUpsertRequest.d.ts +0 -22
- package/bin/benefitCenter/dtos/BackofficeLeafOverrideUpsertRequest.js +0 -91
- package/bin/benefitCenter/dtos/FieldOverrideRequest.d.ts +0 -19
- package/bin/benefitCenter/dtos/FieldOverrideRequest.js +0 -80
- package/bin/benefitCenter/dtos/InputSchemaOverrideRequest.d.ts +0 -9
- package/bin/benefitCenter/dtos/InputSchemaOverrideRequest.js +0 -29
- package/bin/benefitCenter/enums/LeafOverrideStatusEnum.d.ts +0 -10
- package/bin/benefitCenter/enums/LeafOverrideStatusEnum.js +0 -14
- package/bin/cognitoConnector/dtos/SignUpBackofficeRequest.d.ts +0 -13
- package/bin/cognitoConnector/dtos/SignUpBackofficeRequest.js +0 -71
- package/bin/comission-business/dtos/GenerateReportRequest.d.ts +0 -10
- package/bin/comission-business/dtos/GenerateReportRequest.js +0 -2
- package/bin/comission-business/dtos/GenerateReportResponse.d.ts +0 -6
- package/bin/comission-business/dtos/GenerateReportResponse.js +0 -2
- package/bin/comission-business/enums/PaymentStatusEnum.d.ts +0 -5
- package/bin/comission-business/enums/PaymentStatusEnum.js +0 -9
- package/bin/credit/dtos/CreditBannerStateResponse.d.ts +0 -10
- package/bin/credit/dtos/CreditBannerStateResponse.js +0 -6
- package/bin/credit/dtos/CreditDetailResponse.d.ts +0 -23
- package/bin/credit/dtos/CreditDetailResponse.js +0 -6
- package/bin/credit/dtos/CreditEligibilityResponse.d.ts +0 -9
- package/bin/credit/dtos/CreditEligibilityResponse.js +0 -6
- package/bin/credit/dtos/CreditMovementResponse.d.ts +0 -20
- package/bin/credit/dtos/CreditMovementResponse.js +0 -9
- package/bin/credit/dtos/CreditRequestCreate.d.ts +0 -4
- package/bin/credit/dtos/CreditRequestCreate.js +0 -26
- package/bin/credit/dtos/CreditRequestResponse.d.ts +0 -7
- package/bin/credit/dtos/CreditRequestResponse.js +0 -6
- package/bin/credit/dtos/CreditScheduleResponse.d.ts +0 -18
- package/bin/credit/dtos/CreditScheduleResponse.js +0 -9
- package/bin/credit/dtos/CreditStatementResponse.d.ts +0 -11
- package/bin/credit/dtos/CreditStatementResponse.js +0 -9
- package/bin/credit/dtos/EarlyPaymentRequest.d.ts +0 -7
- package/bin/credit/dtos/EarlyPaymentResponse.d.ts +0 -11
- package/bin/credit/dtos/EarlyPaymentResponse.js +0 -6
- package/bin/credit/dtos/internal/CreditBalanceRequest.d.ts +0 -3
- package/bin/credit/dtos/internal/CreditBalanceRequest.js +0 -21
- package/bin/credit/dtos/internal/CreditCollectionRequest.d.ts +0 -11
- package/bin/credit/dtos/internal/CreditCollectionRequest.js +0 -59
- package/bin/credit/dtos/internal/CreditCollectionResponse.d.ts +0 -12
- package/bin/credit/dtos/internal/CreditCollectionResponse.js +0 -6
- package/bin/credit/dtos/internal/CreditDisbursementRequest.d.ts +0 -7
- package/bin/credit/dtos/internal/CreditDisbursementRequest.js +0 -43
- package/bin/credit/dtos/internal/CreditDisbursementResponse.d.ts +0 -8
- package/bin/credit/dtos/internal/CreditDisbursementResponse.js +0 -6
- package/bin/credit/dtos/internal/CreditProfileRequest.d.ts +0 -3
- package/bin/credit/dtos/internal/CreditProfileRequest.js +0 -23
- package/bin/credit/dtos/internal/CreditReversalRequest.d.ts +0 -5
- package/bin/credit/dtos/internal/CreditReversalRequest.js +0 -31
- package/bin/credit/dtos/internal/CreditReversalResponse.d.ts +0 -7
- package/bin/credit/dtos/internal/CreditReversalResponse.js +0 -6
- package/bin/credit/dtos/internal/CreditTransferLoancoRequest.d.ts +0 -8
- package/bin/credit/dtos/internal/CreditTransferLoancoResponse.d.ts +0 -8
- package/bin/credit/dtos/internal/CreditTransferLoancoResponse.js +0 -6
- package/bin/credit/dtos/internal/DocumentSignRequest.d.ts +0 -3
- package/bin/credit/dtos/internal/DocumentSignRequest.js +0 -21
- package/bin/credit/dtos/internal/LienApplyRequest.d.ts +0 -7
- package/bin/credit/dtos/internal/LienApplyRequest.js +0 -45
- package/bin/credit/enums/CollectionFrequencyEnum.d.ts +0 -5
- package/bin/credit/enums/CollectionFrequencyEnum.js +0 -9
- package/bin/credit/enums/CreditOperationEnum.d.ts +0 -11
- package/bin/credit/enums/CreditOperationEnum.js +0 -15
- package/bin/credit/enums/CreditStatusEnum.d.ts +0 -12
- package/bin/credit/enums/CreditStatusEnum.js +0 -16
- package/bin/credit/enums/DelinquencyLevelEnum.d.ts +0 -9
- package/bin/credit/enums/DelinquencyLevelEnum.js +0 -13
- package/bin/credit/enums/DocumentTypeEnum.d.ts +0 -8
- package/bin/credit/enums/DocumentTypeEnum.js +0 -12
- package/bin/credit/enums/OfferStatusEnum.d.ts +0 -8
- package/bin/credit/enums/OfferStatusEnum.js +0 -12
- package/bin/credit/enums/PaymentTypeEnum.d.ts +0 -9
- package/bin/credit/enums/PaymentTypeEnum.js +0 -13
- package/bin/credit/enums/ReconciliationStatusEnum.d.ts +0 -6
- package/bin/credit/enums/ReconciliationStatusEnum.js +0 -10
- package/bin/credit/enums/TransferStatusEnum.d.ts +0 -8
- package/bin/credit/enums/TransferStatusEnum.js +0 -12
- package/bin/riskProfile/dtos/private/AppendAlertNoteRequest.d.ts +0 -16
- package/bin/riskProfile/dtos/private/AppendAlertNoteRequest.js +0 -45
- package/bin/riskProfile/dtos/private/AppendAlertNoteResponse.d.ts +0 -10
- package/bin/riskProfile/dtos/private/AppendAlertNoteResponse.js +0 -36
- package/bin/riskProfile/dtos/private/CreateBlockedListAlertRequest.d.ts +0 -19
- package/bin/riskProfile/dtos/private/CreateBlockedListAlertRequest.js +0 -64
- package/bin/riskProfile/dtos/private/CreateBlockedListAlertResponse.d.ts +0 -8
- package/bin/riskProfile/dtos/private/CreateBlockedListAlertResponse.js +0 -31
- package/bin/riskProfile/dtos/private/DictaminateAlertRequest.d.ts +0 -17
- package/bin/riskProfile/dtos/private/DictaminateAlertRequest.js +0 -46
- package/bin/riskProfile/dtos/private/DictaminateAlertResponse.d.ts +0 -14
- package/bin/riskProfile/dtos/private/DictaminateAlertResponse.js +0 -46
- package/bin/riskProfile/dtos/private/MarkAlertReportedRequest.d.ts +0 -18
- package/bin/riskProfile/dtos/private/MarkAlertReportedRequest.js +0 -52
- package/bin/riskProfile/dtos/private/MarkAlertReportedResponse.d.ts +0 -9
- package/bin/riskProfile/dtos/private/MarkAlertReportedResponse.js +0 -35
- package/bin/riskProfile/dtos/private/SetCustomAlarmRequest.d.ts +0 -17
- package/bin/riskProfile/dtos/private/SetCustomAlarmRequest.js +0 -52
- package/bin/riskProfile/dtos/private/SetCustomAlarmResponse.d.ts +0 -13
- package/bin/riskProfile/dtos/private/SetCustomAlarmResponse.js +0 -48
- package/bin/riskProfile/dtos/private/SetDeclaredIncomeRequest.d.ts +0 -14
- package/bin/riskProfile/dtos/private/SetDeclaredIncomeRequest.js +0 -44
- package/bin/riskProfile/dtos/private/SetDeclaredIncomeResponse.d.ts +0 -20
- package/bin/riskProfile/dtos/private/SetDeclaredIncomeResponse.js +0 -49
- package/bin/riskProfile/dtos/private/SetManualRiskLevelRequest.d.ts +0 -24
- package/bin/riskProfile/dtos/private/SetManualRiskLevelRequest.js +0 -55
- package/bin/riskProfile/dtos/private/SetManualRiskLevelResponse.d.ts +0 -20
- package/bin/riskProfile/dtos/private/SetManualRiskLevelResponse.js +0 -54
- package/bin/riskProfile/enums/CustomAlarmName.d.ts +0 -9
- package/bin/riskProfile/enums/CustomAlarmName.js +0 -13
- package/bin/riskProfile/enums/DictamenStatus.d.ts +0 -9
- package/bin/riskProfile/enums/DictamenStatus.js +0 -13
- package/bin/riskProfile/enums/NotesMode.d.ts +0 -9
- package/bin/riskProfile/enums/NotesMode.js +0 -13
- package/src/riskProfile/dtos/private/AppendAlertNoteRequest.ts +0 -29
- package/src/riskProfile/dtos/private/AppendAlertNoteResponse.ts +0 -12
- package/src/riskProfile/dtos/private/CreateBlockedListAlertRequest.ts +0 -22
- package/src/riskProfile/dtos/private/CreateBlockedListAlertResponse.ts +0 -10
- package/src/riskProfile/dtos/private/DictaminateAlertRequest.ts +0 -30
- package/src/riskProfile/dtos/private/DictaminateAlertResponse.ts +0 -16
- package/src/riskProfile/dtos/private/MarkAlertReportedRequest.ts +0 -21
- package/src/riskProfile/dtos/private/MarkAlertReportedResponse.ts +0 -11
- package/src/riskProfile/dtos/private/SetCustomAlarmRequest.ts +0 -31
- package/src/riskProfile/dtos/private/SetCustomAlarmResponse.ts +0 -15
- package/src/riskProfile/dtos/private/SetDeclaredIncomeRequest.ts +0 -26
- package/src/riskProfile/dtos/private/SetDeclaredIncomeResponse.ts +0 -22
- package/src/riskProfile/dtos/private/SetManualRiskLevelRequest.ts +0 -37
- package/src/riskProfile/dtos/private/SetManualRiskLevelResponse.ts +0 -22
- package/src/riskProfile/enums/CustomAlarmName.ts +0 -9
- package/src/riskProfile/enums/DictamenStatus.ts +0 -9
- package/src/riskProfile/enums/NotesMode.ts +0 -9
|
@@ -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
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { Expose } from "class-transformer";
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Respuesta del cambio de manualRiskLevel.
|
|
5
|
-
*
|
|
6
|
-
* Si fue noop (mismo valor previo), `noop: true` y el resto de campos no aplican.
|
|
7
|
-
* En caso de éxito real, incluye las alarmas recalculadas y el id de alerta auto-creada si subió el nivel.
|
|
8
|
-
*/
|
|
9
|
-
export class SetManualRiskLevelResponse {
|
|
10
|
-
@Expose() directoryId!: string;
|
|
11
|
-
@Expose() noop?: boolean;
|
|
12
|
-
@Expose() previousLevel?: number;
|
|
13
|
-
@Expose() newLevel?: number;
|
|
14
|
-
@Expose() alarmasRecalculadas?: {
|
|
15
|
-
highAmount: number;
|
|
16
|
-
monthlyIncrease: number;
|
|
17
|
-
monthlyLimit: number;
|
|
18
|
-
};
|
|
19
|
-
@Expose() alertaCreada?: string;
|
|
20
|
-
@Expose() observationId?: string;
|
|
21
|
-
@Expose() snapshotKey?: string;
|
|
22
|
-
}
|
|
@@ -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 enum CustomAlarmName {
|
|
7
|
-
CUSTOM_HIGH_AMOUNT = 'customHighAmount',
|
|
8
|
-
CUSTOM_MONTHLY_INCREASE = 'customMonthlyIncrease',
|
|
9
|
-
}
|
|
@@ -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 enum DictamenStatus {
|
|
6
|
-
CLOSE_JUSTIFIED = 'CLOSE_JUSTIFIED',
|
|
7
|
-
CLOSE_RULED = 'CLOSE_RULED',
|
|
8
|
-
CLOSED = 'CLOSED',
|
|
9
|
-
}
|
|
@@ -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 enum NotesMode {
|
|
7
|
-
REPLACE = 'replace',
|
|
8
|
-
APPEND = 'append',
|
|
9
|
-
}
|