@fiado/type-kit 3.1.30 → 3.2.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/cognitoConnector/dtos/SignUpBackofficeRequest.d.ts +13 -0
- package/bin/cognitoConnector/dtos/SignUpBackofficeRequest.js +71 -0
- package/bin/comission-business/dtos/GenerateReportRequest.d.ts +10 -0
- package/bin/comission-business/dtos/GenerateReportRequest.js +2 -0
- package/bin/comission-business/dtos/GenerateReportResponse.d.ts +6 -0
- package/bin/comission-business/dtos/GenerateReportResponse.js +2 -0
- package/bin/comission-business/enums/PaymentStatusEnum.d.ts +5 -0
- package/bin/comission-business/enums/PaymentStatusEnum.js +9 -0
- package/bin/credit/dtos/BannerStateResponse.d.ts +19 -4
- package/bin/credit/dtos/BannerStateResponse.js +7 -1
- package/bin/credit/dtos/CreditBannerStateResponse.d.ts +10 -0
- package/bin/credit/dtos/CreditBannerStateResponse.js +6 -0
- package/bin/credit/dtos/CreditDetailResponse.d.ts +23 -0
- package/bin/credit/dtos/CreditDetailResponse.js +6 -0
- package/bin/credit/dtos/CreditEligibilityResponse.d.ts +9 -0
- package/bin/credit/dtos/CreditEligibilityResponse.js +6 -0
- package/bin/credit/dtos/CreditMovementResponse.d.ts +20 -0
- package/bin/credit/dtos/CreditMovementResponse.js +9 -0
- package/bin/credit/dtos/CreditOfferOptionItem.d.ts +6 -0
- package/bin/credit/dtos/CreditRequestCreate.d.ts +4 -0
- package/bin/credit/dtos/CreditRequestCreate.js +26 -0
- package/bin/credit/dtos/CreditRequestResponse.d.ts +7 -0
- package/bin/credit/dtos/CreditRequestResponse.js +6 -0
- package/bin/credit/dtos/CreditScheduleResponse.d.ts +18 -0
- package/bin/credit/dtos/CreditScheduleResponse.js +9 -0
- package/bin/credit/dtos/CreditStatementResponse.d.ts +11 -0
- package/bin/credit/dtos/CreditStatementResponse.js +9 -0
- package/bin/credit/dtos/EarlyPaymentRequest.d.ts +7 -0
- package/bin/credit/dtos/EarlyPaymentRequest.js +37 -0
- package/bin/credit/dtos/EarlyPaymentResponse.d.ts +11 -0
- package/bin/credit/dtos/EarlyPaymentResponse.js +6 -0
- package/bin/credit/dtos/EligibilityResponse.d.ts +2 -2
- package/bin/credit/dtos/internal/CreditBalanceRequest.d.ts +3 -0
- package/bin/credit/dtos/internal/CreditBalanceRequest.js +21 -0
- package/bin/credit/dtos/internal/CreditCollectionRequest.d.ts +11 -0
- package/bin/credit/dtos/internal/CreditCollectionRequest.js +59 -0
- package/bin/credit/dtos/internal/CreditCollectionResponse.d.ts +12 -0
- package/bin/credit/dtos/internal/CreditCollectionResponse.js +6 -0
- package/bin/credit/dtos/internal/CreditDisbursementRequest.d.ts +7 -0
- package/bin/credit/dtos/internal/CreditDisbursementRequest.js +43 -0
- package/bin/credit/dtos/internal/CreditDisbursementResponse.d.ts +8 -0
- package/bin/credit/dtos/internal/CreditDisbursementResponse.js +6 -0
- package/bin/credit/dtos/internal/CreditProfileRequest.d.ts +3 -0
- package/bin/credit/dtos/internal/CreditProfileRequest.js +23 -0
- package/bin/credit/dtos/internal/CreditReversalRequest.d.ts +5 -0
- package/bin/credit/dtos/internal/CreditReversalRequest.js +31 -0
- package/bin/credit/dtos/internal/CreditReversalResponse.d.ts +7 -0
- package/bin/credit/dtos/internal/CreditReversalResponse.js +6 -0
- package/bin/credit/dtos/internal/CreditTransferLoancoRequest.d.ts +8 -0
- package/bin/credit/dtos/internal/CreditTransferLoancoRequest.js +46 -0
- package/bin/credit/dtos/internal/CreditTransferLoancoResponse.d.ts +8 -0
- package/bin/credit/dtos/internal/CreditTransferLoancoResponse.js +6 -0
- package/bin/credit/dtos/internal/DocumentSignRequest.d.ts +3 -0
- package/bin/credit/dtos/internal/DocumentSignRequest.js +21 -0
- package/bin/credit/dtos/internal/LienApplyRequest.d.ts +7 -0
- package/bin/credit/dtos/internal/LienApplyRequest.js +45 -0
- package/bin/credit/enums/CollectionFrequencyEnum.d.ts +5 -0
- package/bin/credit/enums/CollectionFrequencyEnum.js +9 -0
- package/bin/credit/enums/CreditOperationEnum.d.ts +11 -0
- package/bin/credit/enums/CreditOperationEnum.js +15 -0
- package/bin/credit/enums/CreditStatusEnum.d.ts +12 -0
- package/bin/credit/enums/CreditStatusEnum.js +16 -0
- package/bin/credit/enums/DelinquencyLevelEnum.d.ts +9 -0
- package/bin/credit/enums/DelinquencyLevelEnum.js +13 -0
- package/bin/credit/enums/DocumentTypeEnum.d.ts +8 -0
- package/bin/credit/enums/DocumentTypeEnum.js +12 -0
- package/bin/credit/enums/OfferStatusEnum.d.ts +8 -0
- package/bin/credit/enums/OfferStatusEnum.js +12 -0
- package/bin/credit/enums/PaymentTypeEnum.d.ts +9 -0
- package/bin/credit/enums/PaymentTypeEnum.js +13 -0
- package/bin/credit/enums/ReconciliationStatusEnum.d.ts +6 -0
- package/bin/credit/enums/ReconciliationStatusEnum.js +10 -0
- package/bin/credit/enums/TransferStatusEnum.d.ts +8 -0
- package/bin/credit/enums/TransferStatusEnum.js +12 -0
- package/bin/creditBackoffice/dtos/BackofficeApplicationDetail.d.ts +36 -0
- package/bin/creditBackoffice/dtos/BackofficeApplicationDetail.js +14 -0
- package/bin/creditBackoffice/dtos/BackofficeApplicationsListItem.d.ts +11 -0
- package/bin/creditBackoffice/dtos/BackofficeApplicationsListItem.js +6 -0
- package/bin/creditBackoffice/dtos/BackofficeCreditDetail.d.ts +80 -0
- package/bin/creditBackoffice/dtos/BackofficeCreditDetail.js +21 -0
- package/bin/creditBackoffice/dtos/BackofficeCreditsListItem.d.ts +14 -0
- package/bin/creditBackoffice/dtos/BackofficeCreditsListItem.js +6 -0
- package/bin/creditBackoffice/dtos/BackofficeIncomeSourceItem.d.ts +13 -0
- package/bin/creditBackoffice/dtos/BackofficeIncomeSourceItem.js +6 -0
- package/bin/creditBackoffice/dtos/BackofficeOfferDetail.d.ts +35 -0
- package/bin/creditBackoffice/dtos/BackofficeOfferDetail.js +14 -0
- package/bin/creditBackoffice/dtos/BackofficeOffersListItem.d.ts +16 -0
- package/bin/creditBackoffice/dtos/BackofficeOffersListItem.js +6 -0
- package/bin/creditBackoffice/dtos/BackofficePagination.d.ts +6 -0
- package/bin/creditBackoffice/dtos/BackofficePagination.js +6 -0
- package/bin/creditBackoffice/dtos/BackofficePipeline.d.ts +11 -0
- package/bin/creditBackoffice/dtos/BackofficePipeline.js +6 -0
- package/bin/creditBackoffice/dtos/BackofficePipelineByLevel.d.ts +6 -0
- package/bin/creditBackoffice/dtos/BackofficePipelineByLevel.js +6 -0
- package/bin/creditBackoffice/dtos/BackofficeProfileDetail.d.ts +68 -0
- package/bin/creditBackoffice/dtos/BackofficeProfileDetail.js +13 -0
- package/bin/creditBackoffice/dtos/BackofficeProfilesListItem.d.ts +17 -0
- package/bin/creditBackoffice/dtos/BackofficeProfilesListItem.js +6 -0
- package/bin/creditBackoffice/dtos/BackofficeProfilesListResponse.d.ts +6 -0
- package/bin/creditBackoffice/dtos/BackofficeProfilesListResponse.js +6 -0
- package/bin/creditBackoffice/dtos/BackofficeProfilesSummary.d.ts +19 -0
- package/bin/creditBackoffice/dtos/BackofficeProfilesSummary.js +6 -0
- package/bin/creditBackoffice/dtos/ConfigSnapshotListItem.d.ts +10 -0
- package/bin/creditBackoffice/dtos/ConfigSnapshotListItem.js +9 -0
- package/bin/creditBackoffice/dtos/SimulateImpactRequest.d.ts +9 -0
- package/bin/creditBackoffice/dtos/SimulateImpactRequest.js +34 -0
- package/bin/creditBackoffice/dtos/SimulateImpactResult.d.ts +46 -0
- package/bin/creditBackoffice/dtos/SimulateImpactResult.js +18 -0
- package/bin/creditBackoffice/dtos/SimulateInterestRequest.d.ts +8 -0
- package/bin/creditBackoffice/dtos/SimulateInterestRequest.js +30 -0
- package/bin/creditBackoffice/dtos/SimulateInterestResult.d.ts +10 -0
- package/bin/creditBackoffice/dtos/SimulateInterestResult.js +9 -0
- package/bin/creditBackoffice/dtos/UpdateConfigRequest.d.ts +10 -0
- package/bin/creditBackoffice/dtos/UpdateConfigRequest.js +40 -0
- package/bin/creditBackoffice/enums/ConfigType.d.ts +17 -0
- package/bin/creditBackoffice/enums/ConfigType.js +21 -0
- package/bin/creditBackoffice/index.d.ts +21 -0
- package/bin/creditBackoffice/index.js +39 -0
- package/bin/creditDashboard/dtos/CohortQualityItem.d.ts +8 -0
- package/bin/creditDashboard/dtos/CohortQualityItem.js +6 -0
- package/bin/creditDashboard/dtos/DashboardSummary.d.ts +8 -0
- package/bin/creditDashboard/dtos/DashboardSummary.js +6 -0
- package/bin/creditDashboard/dtos/NurturingFunnelItem.d.ts +5 -0
- package/bin/creditDashboard/dtos/NurturingFunnelItem.js +6 -0
- package/bin/creditDashboard/dtos/OriginationCompositionResult.d.ts +13 -0
- package/bin/creditDashboard/dtos/OriginationCompositionResult.js +6 -0
- package/bin/creditDashboard/dtos/OriginationEfficiencyResult.d.ts +8 -0
- package/bin/creditDashboard/dtos/OriginationEfficiencyResult.js +6 -0
- package/bin/creditDashboard/dtos/OriginationMonthlyItem.d.ts +6 -0
- package/bin/creditDashboard/dtos/OriginationMonthlyItem.js +6 -0
- package/bin/creditDashboard/dtos/OriginationSummaryResult.d.ts +6 -0
- package/bin/creditDashboard/dtos/OriginationSummaryResult.js +6 -0
- package/bin/creditDashboard/dtos/OriginationWeeklyItem.d.ts +7 -0
- package/bin/creditDashboard/dtos/OriginationWeeklyItem.js +6 -0
- package/bin/creditDashboard/dtos/PipelineLevelRow.d.ts +26 -0
- package/bin/creditDashboard/dtos/PipelineLevelRow.js +6 -0
- package/bin/creditDashboard/dtos/PipelineWeek.d.ts +6 -0
- package/bin/creditDashboard/dtos/PipelineWeek.js +6 -0
- package/bin/creditDashboard/dtos/PortfolioActiveItem.d.ts +12 -0
- package/bin/creditDashboard/dtos/PortfolioActiveItem.js +6 -0
- package/bin/creditDashboard/dtos/PortfolioBalance.d.ts +5 -0
- package/bin/creditDashboard/dtos/PortfolioBalance.js +6 -0
- package/bin/creditDashboard/dtos/PortfolioBalanceMonthlyItem.d.ts +5 -0
- package/bin/creditDashboard/dtos/PortfolioBalanceMonthlyItem.js +6 -0
- package/bin/creditDashboard/dtos/PortfolioByLevelItem.d.ts +7 -0
- package/bin/creditDashboard/dtos/PortfolioByLevelItem.js +6 -0
- package/bin/creditDashboard/dtos/PortfolioResolutionItem.d.ts +8 -0
- package/bin/creditDashboard/dtos/PortfolioResolutionItem.js +6 -0
- package/bin/creditDashboard/dtos/PortfolioUpcomingWeek.d.ts +7 -0
- package/bin/creditDashboard/dtos/PortfolioUpcomingWeek.js +6 -0
- package/bin/creditDashboard/index.d.ts +16 -0
- package/bin/creditDashboard/index.js +32 -0
- package/bin/creditEngine/dtos/AdvancedPaymentRequest.d.ts +8 -0
- package/bin/creditEngine/dtos/AdvancedPaymentRequest.js +30 -0
- package/bin/creditEngine/dtos/AnticipatedPaymentRequest.d.ts +8 -0
- package/bin/creditEngine/dtos/AnticipatedPaymentRequest.js +30 -0
- package/bin/creditEngine/dtos/CreditDetailResponse.d.ts +25 -11
- package/bin/creditEngine/dtos/CreditOriginationRequest.d.ts +4 -1
- package/bin/creditEngine/dtos/CreditOriginationRequest.js +11 -0
- package/bin/creditEngine/dtos/CreditRequestResult.d.ts +9 -0
- package/bin/creditEngine/dtos/CreditRequestResult.js +9 -0
- package/bin/creditEngine/dtos/CreditSignatureResult.d.ts +8 -0
- package/bin/creditEngine/dtos/CreditSignatureResult.js +9 -0
- package/bin/creditEngine/dtos/EarlyPaymentResult.d.ts +9 -0
- package/bin/creditEngine/dtos/EarlyPaymentResult.js +9 -0
- package/bin/creditEngine/dtos/OfferResult.d.ts +15 -0
- package/bin/creditEngine/dtos/OfferResult.js +12 -0
- package/bin/creditEngine/dtos/PaymentScheduleItemResponse.d.ts +7 -6
- package/bin/creditEngine/dtos/SettlementPaymentRequest.d.ts +7 -0
- package/bin/creditEngine/dtos/SettlementPaymentRequest.js +25 -0
- package/bin/creditEngine/dtos/SettlementQuote.d.ts +14 -0
- package/bin/creditEngine/dtos/SettlementQuote.js +9 -0
- package/bin/creditEngine/index.d.ts +8 -0
- package/bin/creditEngine/index.js +8 -0
- package/bin/customerFile/dtos/CustomerFileSearchRequest.d.ts +5 -0
- package/bin/customerFile/dtos/CustomerFileSearchRequest.js +32 -0
- package/bin/customerFile/index.d.ts +1 -0
- package/bin/customerFile/index.js +17 -0
- package/bin/index.d.ts +3 -0
- package/bin/index.js +4 -1
- package/package.json +1 -1
- package/src/credit/dtos/BannerStateResponse.ts +20 -1
- package/src/credit/dtos/CreditOfferOptionItem.ts +6 -0
- package/src/credit/dtos/EligibilityResponse.ts +2 -2
- package/src/creditBackoffice/dtos/BackofficeApplicationDetail.ts +33 -0
- package/src/creditBackoffice/dtos/BackofficeApplicationsListItem.ts +11 -0
- package/src/creditBackoffice/dtos/BackofficeCreditDetail.ts +78 -0
- package/src/creditBackoffice/dtos/BackofficeCreditsListItem.ts +14 -0
- package/src/creditBackoffice/dtos/BackofficeIncomeSourceItem.ts +13 -0
- package/src/creditBackoffice/dtos/BackofficeOfferDetail.ts +29 -0
- package/src/creditBackoffice/dtos/BackofficeOffersListItem.ts +13 -0
- package/src/creditBackoffice/dtos/BackofficePagination.ts +6 -0
- package/src/creditBackoffice/dtos/BackofficePipeline.ts +9 -0
- package/src/creditBackoffice/dtos/BackofficePipelineByLevel.ts +6 -0
- package/src/creditBackoffice/dtos/BackofficeProfileDetail.ts +79 -0
- package/src/creditBackoffice/dtos/BackofficeProfilesListItem.ts +17 -0
- package/src/creditBackoffice/dtos/BackofficeProfilesListResponse.ts +7 -0
- package/src/creditBackoffice/dtos/BackofficeProfilesSummary.ts +12 -0
- package/src/creditBackoffice/dtos/ConfigSnapshotListItem.ts +10 -0
- package/src/creditBackoffice/dtos/SimulateImpactRequest.ts +18 -0
- package/src/creditBackoffice/dtos/SimulateImpactResult.ts +41 -0
- package/src/creditBackoffice/dtos/SimulateInterestRequest.ts +15 -0
- package/src/creditBackoffice/dtos/SimulateInterestResult.ts +11 -0
- package/src/creditBackoffice/dtos/UpdateConfigRequest.ts +23 -0
- package/src/creditBackoffice/enums/ConfigType.ts +17 -0
- package/src/creditBackoffice/index.ts +24 -0
- package/src/creditDashboard/dtos/CohortQualityItem.ts +8 -0
- package/src/creditDashboard/dtos/DashboardSummary.ts +8 -0
- package/src/creditDashboard/dtos/NurturingFunnelItem.ts +5 -0
- package/src/creditDashboard/dtos/OriginationCompositionResult.ts +5 -0
- package/src/creditDashboard/dtos/OriginationEfficiencyResult.ts +8 -0
- package/src/creditDashboard/dtos/OriginationMonthlyItem.ts +6 -0
- package/src/creditDashboard/dtos/OriginationSummaryResult.ts +6 -0
- package/src/creditDashboard/dtos/OriginationWeeklyItem.ts +7 -0
- package/src/creditDashboard/dtos/PipelineLevelRow.ts +10 -0
- package/src/creditDashboard/dtos/PipelineWeek.ts +7 -0
- package/src/creditDashboard/dtos/PortfolioActiveItem.ts +12 -0
- package/src/creditDashboard/dtos/PortfolioBalance.ts +5 -0
- package/src/creditDashboard/dtos/PortfolioBalanceMonthlyItem.ts +5 -0
- package/src/creditDashboard/dtos/PortfolioByLevelItem.ts +7 -0
- package/src/creditDashboard/dtos/PortfolioResolutionItem.ts +8 -0
- package/src/creditDashboard/dtos/PortfolioUpcomingWeek.ts +7 -0
- package/src/creditDashboard/index.ts +16 -0
- package/src/creditEngine/dtos/AdvancedPaymentRequest.ts +15 -0
- package/src/creditEngine/dtos/AnticipatedPaymentRequest.ts +15 -0
- package/src/creditEngine/dtos/CreditDetailResponse.ts +25 -11
- package/src/creditEngine/dtos/CreditOriginationRequest.ts +12 -2
- package/src/creditEngine/dtos/CreditRequestResult.ts +9 -0
- package/src/creditEngine/dtos/CreditSignatureResult.ts +8 -0
- package/src/creditEngine/dtos/EarlyPaymentResult.ts +9 -0
- package/src/creditEngine/dtos/OfferResult.ts +16 -0
- package/src/creditEngine/dtos/PaymentScheduleItemResponse.ts +7 -6
- package/src/creditEngine/dtos/SettlementPaymentRequest.ts +11 -0
- package/src/creditEngine/dtos/SettlementQuote.ts +14 -0
- package/src/creditEngine/index.ts +8 -0
- package/src/customerFile/dtos/CustomerFileSearchRequest.ts +16 -0
- package/src/customerFile/index.ts +1 -0
- package/src/index.ts +3 -0
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Row de crédito (schema espejo de `Credits_GT`).
|
|
3
|
+
* Inline aquí porque los DTOs son contratos públicos y no deben depender de
|
|
4
|
+
* tipos de infra en el repo de cada lambda.
|
|
5
|
+
*/
|
|
6
|
+
export declare class BackofficeCreditRow {
|
|
7
|
+
pk: string;
|
|
8
|
+
sk: string;
|
|
9
|
+
credit_id: string;
|
|
10
|
+
application_id?: string;
|
|
11
|
+
directory_id?: string;
|
|
12
|
+
partner_id?: string;
|
|
13
|
+
status?: string;
|
|
14
|
+
amount_mxn?: number;
|
|
15
|
+
term_weeks?: number;
|
|
16
|
+
annual_rate?: number;
|
|
17
|
+
weekly_payment_mxn?: number;
|
|
18
|
+
cat?: number;
|
|
19
|
+
total_interest_mxn?: number;
|
|
20
|
+
total_payable_mxn?: number;
|
|
21
|
+
total_iva_mxn?: number;
|
|
22
|
+
iva_rate?: number;
|
|
23
|
+
fiado_rate_points?: number;
|
|
24
|
+
loanco_rate_points?: number;
|
|
25
|
+
fiado_interest_mxn?: number;
|
|
26
|
+
loanco_interest_mxn?: number;
|
|
27
|
+
credit_level?: string;
|
|
28
|
+
disbursed_at?: string;
|
|
29
|
+
first_payment_date?: string;
|
|
30
|
+
total_collected_mxn?: number;
|
|
31
|
+
outstanding_balance_mxn?: number;
|
|
32
|
+
last_payment_date?: string;
|
|
33
|
+
created_at?: string;
|
|
34
|
+
updated_at?: string;
|
|
35
|
+
/** Runtime fields set by managers but not declared in the Dynamoose schema. */
|
|
36
|
+
config_version?: number;
|
|
37
|
+
signed_at?: string;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Row del calendario de pagos (schema espejo de `CreditPaymentSchedule_GT`).
|
|
41
|
+
* Inline aquí porque los DTOs son contratos públicos.
|
|
42
|
+
*/
|
|
43
|
+
export declare class BackofficeCreditPaymentScheduleRow {
|
|
44
|
+
pk: string;
|
|
45
|
+
sk: string;
|
|
46
|
+
credit_id?: string;
|
|
47
|
+
coupon_number: number;
|
|
48
|
+
due_date?: string;
|
|
49
|
+
principal_mxn?: number;
|
|
50
|
+
interest_mxn?: number;
|
|
51
|
+
iva_mxn?: number;
|
|
52
|
+
total_mxn?: number;
|
|
53
|
+
fiado_interest_mxn?: number;
|
|
54
|
+
loanco_interest_mxn?: number;
|
|
55
|
+
remaining_balance_mxn?: number;
|
|
56
|
+
status?: string;
|
|
57
|
+
paid_amount_mxn?: number;
|
|
58
|
+
principal_collected_mxn?: number;
|
|
59
|
+
interest_collected_mxn?: number;
|
|
60
|
+
iva_collected_mxn?: number;
|
|
61
|
+
fiado_interest_collected_mxn?: number;
|
|
62
|
+
loanco_interest_collected_mxn?: number;
|
|
63
|
+
anticipated_reduction_mxn?: number;
|
|
64
|
+
collection_attempts?: number;
|
|
65
|
+
last_collection_date?: string;
|
|
66
|
+
paid_at?: string;
|
|
67
|
+
created_at?: string;
|
|
68
|
+
updated_at?: string;
|
|
69
|
+
/** Runtime field used during settlement. */
|
|
70
|
+
settlement_adjustment_mxn?: number;
|
|
71
|
+
}
|
|
72
|
+
export declare class BackofficeCreditDetail {
|
|
73
|
+
credit: BackofficeCreditRow;
|
|
74
|
+
user: {
|
|
75
|
+
directory_id: string;
|
|
76
|
+
phone_number: string;
|
|
77
|
+
people_id: string;
|
|
78
|
+
};
|
|
79
|
+
schedule: BackofficeCreditPaymentScheduleRow[];
|
|
80
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BackofficeCreditDetail = exports.BackofficeCreditPaymentScheduleRow = exports.BackofficeCreditRow = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Row de crédito (schema espejo de `Credits_GT`).
|
|
6
|
+
* Inline aquí porque los DTOs son contratos públicos y no deben depender de
|
|
7
|
+
* tipos de infra en el repo de cada lambda.
|
|
8
|
+
*/
|
|
9
|
+
class BackofficeCreditRow {
|
|
10
|
+
}
|
|
11
|
+
exports.BackofficeCreditRow = BackofficeCreditRow;
|
|
12
|
+
/**
|
|
13
|
+
* Row del calendario de pagos (schema espejo de `CreditPaymentSchedule_GT`).
|
|
14
|
+
* Inline aquí porque los DTOs son contratos públicos.
|
|
15
|
+
*/
|
|
16
|
+
class BackofficeCreditPaymentScheduleRow {
|
|
17
|
+
}
|
|
18
|
+
exports.BackofficeCreditPaymentScheduleRow = BackofficeCreditPaymentScheduleRow;
|
|
19
|
+
class BackofficeCreditDetail {
|
|
20
|
+
}
|
|
21
|
+
exports.BackofficeCreditDetail = BackofficeCreditDetail;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare class BackofficeCreditsListItem {
|
|
2
|
+
credit_id: string;
|
|
3
|
+
directory_id: string;
|
|
4
|
+
partner_id: string;
|
|
5
|
+
phone_number: string;
|
|
6
|
+
amount_mxn: number;
|
|
7
|
+
term_weeks: number;
|
|
8
|
+
annual_rate: number;
|
|
9
|
+
weekly_payment_mxn: number;
|
|
10
|
+
status: string;
|
|
11
|
+
credit_level: string;
|
|
12
|
+
disbursed_at: string;
|
|
13
|
+
created_at: string;
|
|
14
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare class BackofficeIncomeSourceItem {
|
|
2
|
+
normalized_memo: string;
|
|
3
|
+
classification: string;
|
|
4
|
+
detected_frequency: string;
|
|
5
|
+
total_deposits_90d: number;
|
|
6
|
+
total_amount_90d_usd: number;
|
|
7
|
+
average_amount_usd: number;
|
|
8
|
+
reliable_amount_usd: number;
|
|
9
|
+
income_share_pct: number;
|
|
10
|
+
avg_days_between_deposits: number;
|
|
11
|
+
first_detection: string;
|
|
12
|
+
last_detection: string;
|
|
13
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Row de oferta de crédito (schema espejo de `CreditOffers_GT`).
|
|
3
|
+
* Inline aquí porque los DTOs son contratos públicos y no deben depender de
|
|
4
|
+
* tipos de infra en el repo de cada lambda.
|
|
5
|
+
*/
|
|
6
|
+
export declare class BackofficeCreditOfferRow {
|
|
7
|
+
pk: string;
|
|
8
|
+
sk: string;
|
|
9
|
+
offer_id?: string;
|
|
10
|
+
directory_id?: string;
|
|
11
|
+
partner_id?: string;
|
|
12
|
+
status?: string;
|
|
13
|
+
credit_level?: string;
|
|
14
|
+
max_amount_mxn?: number;
|
|
15
|
+
selected_amount_mxn?: number;
|
|
16
|
+
offer_expires_at?: string;
|
|
17
|
+
options?: Record<string, unknown>[];
|
|
18
|
+
created_at?: string;
|
|
19
|
+
updated_at?: string;
|
|
20
|
+
/** Runtime fields set by managers but not declared in the Dynamoose schema. */
|
|
21
|
+
min_amount_mxn?: number;
|
|
22
|
+
available_rates?: {
|
|
23
|
+
term_weeks: number;
|
|
24
|
+
annual_rate: number;
|
|
25
|
+
}[];
|
|
26
|
+
config_version?: number;
|
|
27
|
+
}
|
|
28
|
+
export declare class BackofficeOfferDetail {
|
|
29
|
+
offer: BackofficeCreditOfferRow;
|
|
30
|
+
user: {
|
|
31
|
+
directory_id: string;
|
|
32
|
+
phone_number: string;
|
|
33
|
+
people_id: string;
|
|
34
|
+
};
|
|
35
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BackofficeOfferDetail = exports.BackofficeCreditOfferRow = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Row de oferta de crédito (schema espejo de `CreditOffers_GT`).
|
|
6
|
+
* Inline aquí porque los DTOs son contratos públicos y no deben depender de
|
|
7
|
+
* tipos de infra en el repo de cada lambda.
|
|
8
|
+
*/
|
|
9
|
+
class BackofficeCreditOfferRow {
|
|
10
|
+
}
|
|
11
|
+
exports.BackofficeCreditOfferRow = BackofficeCreditOfferRow;
|
|
12
|
+
class BackofficeOfferDetail {
|
|
13
|
+
}
|
|
14
|
+
exports.BackofficeOfferDetail = BackofficeOfferDetail;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare class BackofficeOffersListItem {
|
|
2
|
+
offer_id: string;
|
|
3
|
+
directory_id: string;
|
|
4
|
+
partner_id: string;
|
|
5
|
+
phone_number: string;
|
|
6
|
+
credit_level: string;
|
|
7
|
+
max_amount_mxn: number;
|
|
8
|
+
min_amount_mxn: number;
|
|
9
|
+
available_rates: {
|
|
10
|
+
term_weeks: number;
|
|
11
|
+
annual_rate: number;
|
|
12
|
+
}[];
|
|
13
|
+
status: string;
|
|
14
|
+
offer_expires_at: string;
|
|
15
|
+
created_at: string;
|
|
16
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BackofficePipelineByLevel } from "./BackofficePipelineByLevel";
|
|
2
|
+
export declare class BackofficePipeline {
|
|
3
|
+
eligible_count: number;
|
|
4
|
+
total_potential_mxn: number;
|
|
5
|
+
avg_potential_mxn: number;
|
|
6
|
+
by_level: BackofficePipelineByLevel[];
|
|
7
|
+
by_banner_state: {
|
|
8
|
+
state: string;
|
|
9
|
+
count: number;
|
|
10
|
+
}[];
|
|
11
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Detalle de perfil enriquecido con información de directorio.
|
|
3
|
+
*
|
|
4
|
+
* Nota: en el lambda este tipo es una intersección de `CreditFinancialProfileRow` con
|
|
5
|
+
* `{ people_id, phone_number }`. Aquí se inlinea todo el shape del profile para no
|
|
6
|
+
* depender de tipos de infra.
|
|
7
|
+
*/
|
|
8
|
+
export declare class BackofficeProfileDetail {
|
|
9
|
+
pk?: string;
|
|
10
|
+
sk?: string;
|
|
11
|
+
directory_id?: string;
|
|
12
|
+
partner_id?: string;
|
|
13
|
+
calculation_date?: string;
|
|
14
|
+
total_income_sources?: number;
|
|
15
|
+
primary_sources?: number;
|
|
16
|
+
secondary_sources?: number;
|
|
17
|
+
has_regular_income?: string;
|
|
18
|
+
total_income_90d_usd?: number;
|
|
19
|
+
monthly_income_usd?: number;
|
|
20
|
+
primary_income_usd?: number;
|
|
21
|
+
secondary_income_usd?: number;
|
|
22
|
+
dominant_frequency?: string;
|
|
23
|
+
days_since_last_deposit?: number;
|
|
24
|
+
primary_amount_variation_pct?: number;
|
|
25
|
+
total_expenses_90d_usd?: number;
|
|
26
|
+
monthly_expenses_usd?: number;
|
|
27
|
+
expense_income_ratio?: number;
|
|
28
|
+
sends_to_mexico_wallet?: string;
|
|
29
|
+
total_wallet_loads_90d_usd?: number;
|
|
30
|
+
monthly_wallet_loads_usd?: number;
|
|
31
|
+
wallet_load_count_90d?: number;
|
|
32
|
+
avg_wallet_load_usd?: number;
|
|
33
|
+
wallet_load_income_ratio?: number;
|
|
34
|
+
days_since_last_wallet_load?: number;
|
|
35
|
+
wallet_load_frequency?: string;
|
|
36
|
+
current_balance_usd?: number;
|
|
37
|
+
average_balance_90d_usd?: number;
|
|
38
|
+
balance_income_ratio?: number;
|
|
39
|
+
registration_date?: string;
|
|
40
|
+
months_in_platform?: number;
|
|
41
|
+
exchange_rate_usd_mxn?: number;
|
|
42
|
+
monthly_income_mxn?: number;
|
|
43
|
+
score_income_stability?: number;
|
|
44
|
+
score_payment_capacity?: number;
|
|
45
|
+
score_mexico_transfers?: number;
|
|
46
|
+
score_seniority?: number;
|
|
47
|
+
score_income_level?: number;
|
|
48
|
+
score_total?: number;
|
|
49
|
+
credit_level?: string;
|
|
50
|
+
max_credit_amount_mxn?: number;
|
|
51
|
+
has_active_credit?: string;
|
|
52
|
+
is_eligible?: string;
|
|
53
|
+
ineligibility_reason?: string;
|
|
54
|
+
score_to_next_level?: number;
|
|
55
|
+
next_level?: string;
|
|
56
|
+
next_level_max_credit_mxn?: number;
|
|
57
|
+
progress_pct?: number;
|
|
58
|
+
recommendation_1?: string;
|
|
59
|
+
recommendation_1_points?: number;
|
|
60
|
+
recommendation_2?: string;
|
|
61
|
+
recommendation_2_points?: number;
|
|
62
|
+
last_level_change_date?: string;
|
|
63
|
+
level_change_direction?: string;
|
|
64
|
+
created_at?: string;
|
|
65
|
+
updated_at?: string;
|
|
66
|
+
people_id: string | null;
|
|
67
|
+
phone_number: string | null;
|
|
68
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BackofficeProfileDetail = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Detalle de perfil enriquecido con información de directorio.
|
|
6
|
+
*
|
|
7
|
+
* Nota: en el lambda este tipo es una intersección de `CreditFinancialProfileRow` con
|
|
8
|
+
* `{ people_id, phone_number }`. Aquí se inlinea todo el shape del profile para no
|
|
9
|
+
* depender de tipos de infra.
|
|
10
|
+
*/
|
|
11
|
+
class BackofficeProfileDetail {
|
|
12
|
+
}
|
|
13
|
+
exports.BackofficeProfileDetail = BackofficeProfileDetail;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare class BackofficeProfilesListItem {
|
|
2
|
+
directory_id: string;
|
|
3
|
+
partner_id: string;
|
|
4
|
+
phone_number: string;
|
|
5
|
+
credit_level: string;
|
|
6
|
+
score_total: number;
|
|
7
|
+
is_eligible: string;
|
|
8
|
+
ineligibility_reason: string | null;
|
|
9
|
+
max_credit_amount_mxn: number;
|
|
10
|
+
monthly_income_mxn: number;
|
|
11
|
+
has_regular_income: string;
|
|
12
|
+
dominant_frequency: string;
|
|
13
|
+
total_income_sources: number;
|
|
14
|
+
days_since_last_deposit: number;
|
|
15
|
+
calculation_date: string;
|
|
16
|
+
banner_state: string;
|
|
17
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { BackofficeProfilesListItem } from "./BackofficeProfilesListItem";
|
|
2
|
+
import { BackofficePagination } from "./BackofficePagination";
|
|
3
|
+
export declare class BackofficeProfilesListResponse {
|
|
4
|
+
items: BackofficeProfilesListItem[];
|
|
5
|
+
pagination: BackofficePagination;
|
|
6
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { BackofficePipeline } from "./BackofficePipeline";
|
|
2
|
+
export declare class BackofficeProfilesSummary {
|
|
3
|
+
total_profiles: number;
|
|
4
|
+
eligible_count: number;
|
|
5
|
+
ineligible_count: number;
|
|
6
|
+
by_level: {
|
|
7
|
+
level: string;
|
|
8
|
+
count: number;
|
|
9
|
+
eligible: number;
|
|
10
|
+
ineligible: number;
|
|
11
|
+
}[];
|
|
12
|
+
score_distribution: {
|
|
13
|
+
range: string;
|
|
14
|
+
count: number;
|
|
15
|
+
}[];
|
|
16
|
+
avg_score: number;
|
|
17
|
+
avg_max_credit_mxn: number;
|
|
18
|
+
pipeline: BackofficePipeline;
|
|
19
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ConfigSnapshotListItem = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Item de lista de snapshots de configuración.
|
|
6
|
+
*/
|
|
7
|
+
class ConfigSnapshotListItem {
|
|
8
|
+
}
|
|
9
|
+
exports.ConfigSnapshotListItem = ConfigSnapshotListItem;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Request para simular el impacto de un cambio de configuración contra el universo de clientes.
|
|
3
|
+
* Endpoint: POST /backoffice/config/simulate-impact
|
|
4
|
+
*/
|
|
5
|
+
export declare class SimulateImpactRequest {
|
|
6
|
+
partnerId: string;
|
|
7
|
+
configType: string;
|
|
8
|
+
proposedConfig: Array<Record<string, unknown>>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
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.SimulateImpactRequest = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
/**
|
|
15
|
+
* Request para simular el impacto de un cambio de configuración contra el universo de clientes.
|
|
16
|
+
* Endpoint: POST /backoffice/config/simulate-impact
|
|
17
|
+
*/
|
|
18
|
+
class SimulateImpactRequest {
|
|
19
|
+
}
|
|
20
|
+
exports.SimulateImpactRequest = SimulateImpactRequest;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsString)(),
|
|
23
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], SimulateImpactRequest.prototype, "partnerId", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_validator_1.IsString)(),
|
|
28
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], SimulateImpactRequest.prototype, "configType", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, class_validator_1.IsArray)(),
|
|
33
|
+
__metadata("design:type", Array)
|
|
34
|
+
], SimulateImpactRequest.prototype, "proposedConfig", void 0);
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Resultado de simulación de impacto de un cambio de configuración.
|
|
3
|
+
*/
|
|
4
|
+
export declare class SimulateImpactStateSnapshot {
|
|
5
|
+
total_profiles: number;
|
|
6
|
+
eligible_count: number;
|
|
7
|
+
eligible_pct: number;
|
|
8
|
+
by_level: Record<string, number>;
|
|
9
|
+
potential_portfolio_mxn: number;
|
|
10
|
+
avg_score: number;
|
|
11
|
+
avg_ticket_mxn: number;
|
|
12
|
+
}
|
|
13
|
+
export declare class SimulateImpactMigration {
|
|
14
|
+
directory_id?: string;
|
|
15
|
+
score_before: number;
|
|
16
|
+
score_after: number;
|
|
17
|
+
level_before: string;
|
|
18
|
+
level_after: string;
|
|
19
|
+
eligible_before: boolean;
|
|
20
|
+
eligible_after: boolean;
|
|
21
|
+
}
|
|
22
|
+
export declare class SimulateImpactResult {
|
|
23
|
+
before: SimulateImpactStateSnapshot;
|
|
24
|
+
after: SimulateImpactStateSnapshot;
|
|
25
|
+
delta: {
|
|
26
|
+
eligible_count: number;
|
|
27
|
+
eligible_pct: number;
|
|
28
|
+
potential_portfolio_mxn: number;
|
|
29
|
+
avg_score: number;
|
|
30
|
+
level_migrations: {
|
|
31
|
+
upgrades: number;
|
|
32
|
+
downgrades: number;
|
|
33
|
+
unchanged: number;
|
|
34
|
+
};
|
|
35
|
+
eligibility_changes: {
|
|
36
|
+
became_eligible: number;
|
|
37
|
+
lost_eligibility: number;
|
|
38
|
+
unchanged: number;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
migrations: SimulateImpactMigration[];
|
|
42
|
+
}
|
|
43
|
+
export declare class SimulateImpactError {
|
|
44
|
+
error: string;
|
|
45
|
+
total_profiles: number;
|
|
46
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SimulateImpactError = exports.SimulateImpactResult = exports.SimulateImpactMigration = exports.SimulateImpactStateSnapshot = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Resultado de simulación de impacto de un cambio de configuración.
|
|
6
|
+
*/
|
|
7
|
+
class SimulateImpactStateSnapshot {
|
|
8
|
+
}
|
|
9
|
+
exports.SimulateImpactStateSnapshot = SimulateImpactStateSnapshot;
|
|
10
|
+
class SimulateImpactMigration {
|
|
11
|
+
}
|
|
12
|
+
exports.SimulateImpactMigration = SimulateImpactMigration;
|
|
13
|
+
class SimulateImpactResult {
|
|
14
|
+
}
|
|
15
|
+
exports.SimulateImpactResult = SimulateImpactResult;
|
|
16
|
+
class SimulateImpactError {
|
|
17
|
+
}
|
|
18
|
+
exports.SimulateImpactError = SimulateImpactError;
|
|
@@ -0,0 +1,30 @@
|
|
|
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.SimulateInterestRequest = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
/**
|
|
15
|
+
* Request para simular el cálculo de intereses con la configuración actual.
|
|
16
|
+
* Endpoint: POST /backoffice/config/simulate
|
|
17
|
+
*/
|
|
18
|
+
class SimulateInterestRequest {
|
|
19
|
+
}
|
|
20
|
+
exports.SimulateInterestRequest = SimulateInterestRequest;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsString)(),
|
|
23
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], SimulateInterestRequest.prototype, "partnerId", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_validator_1.IsNumber)(),
|
|
28
|
+
(0, class_validator_1.Min)(1),
|
|
29
|
+
__metadata("design:type", Number)
|
|
30
|
+
], SimulateInterestRequest.prototype, "amount_mxn", void 0);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CreditOfferOptionItem } from "../../credit/dtos/CreditOfferOptionItem";
|
|
2
|
+
/**
|
|
3
|
+
* Resultado de simulación de interés para un monto dado.
|
|
4
|
+
*/
|
|
5
|
+
export declare class SimulateInterestResult {
|
|
6
|
+
amount_mxn: number;
|
|
7
|
+
partner_id: string;
|
|
8
|
+
simulated_at: string;
|
|
9
|
+
options: CreditOfferOptionItem[];
|
|
10
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SimulateInterestResult = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Resultado de simulación de interés para un monto dado.
|
|
6
|
+
*/
|
|
7
|
+
class SimulateInterestResult {
|
|
8
|
+
}
|
|
9
|
+
exports.SimulateInterestResult = SimulateInterestResult;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Request para actualizar una configuración de política de crédito.
|
|
3
|
+
* Endpoint: PUT /backoffice/config/{configType}
|
|
4
|
+
*/
|
|
5
|
+
export declare class UpdateConfigRequest {
|
|
6
|
+
partnerId: string;
|
|
7
|
+
items: Array<Record<string, unknown>>;
|
|
8
|
+
updatedBy?: string;
|
|
9
|
+
description?: string;
|
|
10
|
+
}
|