@fiado/type-kit 3.1.30 → 3.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (204) hide show
  1. package/bin/benefitCenter/dtos/BannerActionRequest.d.ts +7 -0
  2. package/bin/benefitCenter/dtos/BannerActionRequest.js +36 -0
  3. package/bin/benefitCenter/dtos/BannerContentRequest.d.ts +6 -0
  4. package/bin/benefitCenter/dtos/BannerContentRequest.js +28 -0
  5. package/bin/benefitCenter/dtos/BannerCreateRequest.d.ts +14 -0
  6. package/bin/benefitCenter/dtos/BannerCreateRequest.js +64 -0
  7. package/bin/benefitCenter/dtos/BannerTranslationRequest.d.ts +7 -0
  8. package/bin/benefitCenter/dtos/BannerTranslationRequest.js +41 -0
  9. package/bin/benefitCenter/dtos/BannerTranslationsRequest.d.ts +5 -0
  10. package/bin/benefitCenter/dtos/BannerTranslationsRequest.js +30 -0
  11. package/bin/benefitCenter/dtos/BannerUpdateRequest.d.ts +13 -0
  12. package/bin/benefitCenter/dtos/BannerUpdateRequest.js +63 -0
  13. package/bin/benefitCenter/dtos/BenefitCreateRequest.d.ts +20 -0
  14. package/bin/benefitCenter/dtos/BenefitCreateRequest.js +73 -0
  15. package/bin/benefitCenter/dtos/BenefitModuleConfigRequest.d.ts +4 -0
  16. package/bin/benefitCenter/dtos/BenefitModuleConfigRequest.js +25 -0
  17. package/bin/benefitCenter/dtos/BenefitModuleEntryRequest.d.ts +4 -0
  18. package/bin/benefitCenter/dtos/BenefitModuleEntryRequest.js +26 -0
  19. package/bin/benefitCenter/dtos/BenefitUpdateRequest.d.ts +14 -0
  20. package/bin/benefitCenter/dtos/BenefitUpdateRequest.js +67 -0
  21. package/bin/benefitCenter/dtos/PublicVerifyReferenceRequest.d.ts +16 -0
  22. package/bin/benefitCenter/dtos/PublicVerifyReferenceRequest.js +50 -0
  23. package/bin/benefitCenter/index.d.ts +11 -0
  24. package/bin/benefitCenter/index.js +12 -0
  25. package/bin/credit/dtos/BannerStateResponse.d.ts +19 -4
  26. package/bin/credit/dtos/BannerStateResponse.js +7 -1
  27. package/bin/credit/dtos/CreditOfferOptionItem.d.ts +6 -0
  28. package/bin/credit/dtos/EligibilityResponse.d.ts +2 -2
  29. package/bin/creditBackoffice/dtos/BackofficeApplicationDetail.d.ts +36 -0
  30. package/bin/creditBackoffice/dtos/BackofficeApplicationDetail.js +14 -0
  31. package/bin/creditBackoffice/dtos/BackofficeApplicationsListItem.d.ts +11 -0
  32. package/bin/creditBackoffice/dtos/BackofficeApplicationsListItem.js +6 -0
  33. package/bin/creditBackoffice/dtos/BackofficeCreditDetail.d.ts +80 -0
  34. package/bin/creditBackoffice/dtos/BackofficeCreditDetail.js +21 -0
  35. package/bin/creditBackoffice/dtos/BackofficeCreditsListItem.d.ts +14 -0
  36. package/bin/creditBackoffice/dtos/BackofficeCreditsListItem.js +6 -0
  37. package/bin/creditBackoffice/dtos/BackofficeIncomeSourceItem.d.ts +13 -0
  38. package/bin/creditBackoffice/dtos/BackofficeIncomeSourceItem.js +6 -0
  39. package/bin/creditBackoffice/dtos/BackofficeOfferDetail.d.ts +35 -0
  40. package/bin/creditBackoffice/dtos/BackofficeOfferDetail.js +14 -0
  41. package/bin/creditBackoffice/dtos/BackofficeOffersListItem.d.ts +16 -0
  42. package/bin/creditBackoffice/dtos/BackofficeOffersListItem.js +6 -0
  43. package/bin/creditBackoffice/dtos/BackofficePagination.d.ts +6 -0
  44. package/bin/creditBackoffice/dtos/BackofficePagination.js +6 -0
  45. package/bin/creditBackoffice/dtos/BackofficePipeline.d.ts +11 -0
  46. package/bin/creditBackoffice/dtos/BackofficePipeline.js +6 -0
  47. package/bin/creditBackoffice/dtos/BackofficePipelineByLevel.d.ts +6 -0
  48. package/bin/creditBackoffice/dtos/BackofficePipelineByLevel.js +6 -0
  49. package/bin/creditBackoffice/dtos/BackofficeProfileDetail.d.ts +68 -0
  50. package/bin/creditBackoffice/dtos/BackofficeProfileDetail.js +13 -0
  51. package/bin/creditBackoffice/dtos/BackofficeProfilesListItem.d.ts +17 -0
  52. package/bin/creditBackoffice/dtos/BackofficeProfilesListItem.js +6 -0
  53. package/bin/creditBackoffice/dtos/BackofficeProfilesListResponse.d.ts +6 -0
  54. package/bin/creditBackoffice/dtos/BackofficeProfilesListResponse.js +6 -0
  55. package/bin/creditBackoffice/dtos/BackofficeProfilesSummary.d.ts +19 -0
  56. package/bin/creditBackoffice/dtos/BackofficeProfilesSummary.js +6 -0
  57. package/bin/creditBackoffice/dtos/ConfigSnapshotListItem.d.ts +10 -0
  58. package/bin/creditBackoffice/dtos/ConfigSnapshotListItem.js +9 -0
  59. package/bin/creditBackoffice/dtos/SimulateImpactRequest.d.ts +9 -0
  60. package/bin/creditBackoffice/dtos/SimulateImpactRequest.js +34 -0
  61. package/bin/creditBackoffice/dtos/SimulateImpactResult.d.ts +46 -0
  62. package/bin/creditBackoffice/dtos/SimulateImpactResult.js +18 -0
  63. package/bin/creditBackoffice/dtos/SimulateInterestRequest.d.ts +8 -0
  64. package/bin/creditBackoffice/dtos/SimulateInterestRequest.js +30 -0
  65. package/bin/creditBackoffice/dtos/SimulateInterestResult.d.ts +10 -0
  66. package/bin/creditBackoffice/dtos/SimulateInterestResult.js +9 -0
  67. package/bin/creditBackoffice/dtos/UpdateConfigRequest.d.ts +10 -0
  68. package/bin/creditBackoffice/dtos/UpdateConfigRequest.js +40 -0
  69. package/bin/creditBackoffice/enums/ConfigType.d.ts +17 -0
  70. package/bin/creditBackoffice/enums/ConfigType.js +21 -0
  71. package/bin/creditBackoffice/index.d.ts +21 -0
  72. package/bin/creditBackoffice/index.js +39 -0
  73. package/bin/creditDashboard/dtos/CohortQualityItem.d.ts +8 -0
  74. package/bin/creditDashboard/dtos/CohortQualityItem.js +6 -0
  75. package/bin/creditDashboard/dtos/DashboardSummary.d.ts +8 -0
  76. package/bin/creditDashboard/dtos/DashboardSummary.js +6 -0
  77. package/bin/creditDashboard/dtos/NurturingFunnelItem.d.ts +5 -0
  78. package/bin/creditDashboard/dtos/NurturingFunnelItem.js +6 -0
  79. package/bin/creditDashboard/dtos/OriginationCompositionResult.d.ts +13 -0
  80. package/bin/creditDashboard/dtos/OriginationCompositionResult.js +6 -0
  81. package/bin/creditDashboard/dtos/OriginationEfficiencyResult.d.ts +8 -0
  82. package/bin/creditDashboard/dtos/OriginationEfficiencyResult.js +6 -0
  83. package/bin/creditDashboard/dtos/OriginationMonthlyItem.d.ts +6 -0
  84. package/bin/creditDashboard/dtos/OriginationMonthlyItem.js +6 -0
  85. package/bin/creditDashboard/dtos/OriginationSummaryResult.d.ts +6 -0
  86. package/bin/creditDashboard/dtos/OriginationSummaryResult.js +6 -0
  87. package/bin/creditDashboard/dtos/OriginationWeeklyItem.d.ts +7 -0
  88. package/bin/creditDashboard/dtos/OriginationWeeklyItem.js +6 -0
  89. package/bin/creditDashboard/dtos/PipelineLevelRow.d.ts +26 -0
  90. package/bin/creditDashboard/dtos/PipelineLevelRow.js +6 -0
  91. package/bin/creditDashboard/dtos/PipelineWeek.d.ts +6 -0
  92. package/bin/creditDashboard/dtos/PipelineWeek.js +6 -0
  93. package/bin/creditDashboard/dtos/PortfolioActiveItem.d.ts +12 -0
  94. package/bin/creditDashboard/dtos/PortfolioActiveItem.js +6 -0
  95. package/bin/creditDashboard/dtos/PortfolioBalance.d.ts +5 -0
  96. package/bin/creditDashboard/dtos/PortfolioBalance.js +6 -0
  97. package/bin/creditDashboard/dtos/PortfolioBalanceMonthlyItem.d.ts +5 -0
  98. package/bin/creditDashboard/dtos/PortfolioBalanceMonthlyItem.js +6 -0
  99. package/bin/creditDashboard/dtos/PortfolioByLevelItem.d.ts +7 -0
  100. package/bin/creditDashboard/dtos/PortfolioByLevelItem.js +6 -0
  101. package/bin/creditDashboard/dtos/PortfolioResolutionItem.d.ts +8 -0
  102. package/bin/creditDashboard/dtos/PortfolioResolutionItem.js +6 -0
  103. package/bin/creditDashboard/dtos/PortfolioUpcomingWeek.d.ts +7 -0
  104. package/bin/creditDashboard/dtos/PortfolioUpcomingWeek.js +6 -0
  105. package/bin/creditDashboard/index.d.ts +16 -0
  106. package/bin/creditDashboard/index.js +32 -0
  107. package/bin/creditEngine/dtos/AdvancedPaymentRequest.d.ts +8 -0
  108. package/bin/creditEngine/dtos/AdvancedPaymentRequest.js +30 -0
  109. package/bin/creditEngine/dtos/AnticipatedPaymentRequest.d.ts +8 -0
  110. package/bin/creditEngine/dtos/AnticipatedPaymentRequest.js +30 -0
  111. package/bin/creditEngine/dtos/CreditDetailResponse.d.ts +25 -11
  112. package/bin/creditEngine/dtos/CreditOriginationRequest.d.ts +4 -1
  113. package/bin/creditEngine/dtos/CreditOriginationRequest.js +11 -0
  114. package/bin/creditEngine/dtos/CreditRequestResult.d.ts +9 -0
  115. package/bin/creditEngine/dtos/CreditRequestResult.js +9 -0
  116. package/bin/creditEngine/dtos/CreditSignatureResult.d.ts +8 -0
  117. package/bin/creditEngine/dtos/CreditSignatureResult.js +9 -0
  118. package/bin/creditEngine/dtos/EarlyPaymentResult.d.ts +9 -0
  119. package/bin/creditEngine/dtos/EarlyPaymentResult.js +9 -0
  120. package/bin/creditEngine/dtos/OfferResult.d.ts +15 -0
  121. package/bin/creditEngine/dtos/OfferResult.js +12 -0
  122. package/bin/creditEngine/dtos/PaymentScheduleItemResponse.d.ts +7 -6
  123. package/bin/creditEngine/dtos/SettlementPaymentRequest.d.ts +7 -0
  124. package/bin/creditEngine/dtos/SettlementPaymentRequest.js +25 -0
  125. package/bin/creditEngine/dtos/SettlementQuote.d.ts +14 -0
  126. package/bin/creditEngine/dtos/SettlementQuote.js +9 -0
  127. package/bin/creditEngine/index.d.ts +8 -0
  128. package/bin/creditEngine/index.js +8 -0
  129. package/bin/customerFile/dtos/CustomerFileSearchRequest.d.ts +5 -0
  130. package/bin/customerFile/dtos/CustomerFileSearchRequest.js +32 -0
  131. package/bin/customerFile/index.d.ts +1 -0
  132. package/bin/customerFile/index.js +17 -0
  133. package/bin/index.d.ts +3 -0
  134. package/bin/index.js +4 -1
  135. package/package.json +1 -1
  136. package/src/benefitCenter/dtos/BannerActionRequest.ts +14 -0
  137. package/src/benefitCenter/dtos/BannerContentRequest.ts +13 -0
  138. package/src/benefitCenter/dtos/BannerCreateRequest.ts +46 -0
  139. package/src/benefitCenter/dtos/BannerTranslationRequest.ts +9 -0
  140. package/src/benefitCenter/dtos/BannerTranslationsRequest.ts +15 -0
  141. package/src/benefitCenter/dtos/BannerUpdateRequest.ts +35 -0
  142. package/src/benefitCenter/dtos/BenefitCreateRequest.ts +59 -0
  143. package/src/benefitCenter/dtos/BenefitModuleConfigRequest.ts +11 -0
  144. package/src/benefitCenter/dtos/BenefitModuleEntryRequest.ts +11 -0
  145. package/src/benefitCenter/dtos/BenefitUpdateRequest.ts +34 -0
  146. package/src/benefitCenter/dtos/PublicVerifyReferenceRequest.ts +33 -0
  147. package/src/benefitCenter/index.ts +12 -0
  148. package/src/credit/dtos/BannerStateResponse.ts +20 -1
  149. package/src/credit/dtos/CreditOfferOptionItem.ts +6 -0
  150. package/src/credit/dtos/EligibilityResponse.ts +2 -2
  151. package/src/creditBackoffice/dtos/BackofficeApplicationDetail.ts +33 -0
  152. package/src/creditBackoffice/dtos/BackofficeApplicationsListItem.ts +11 -0
  153. package/src/creditBackoffice/dtos/BackofficeCreditDetail.ts +78 -0
  154. package/src/creditBackoffice/dtos/BackofficeCreditsListItem.ts +14 -0
  155. package/src/creditBackoffice/dtos/BackofficeIncomeSourceItem.ts +13 -0
  156. package/src/creditBackoffice/dtos/BackofficeOfferDetail.ts +29 -0
  157. package/src/creditBackoffice/dtos/BackofficeOffersListItem.ts +13 -0
  158. package/src/creditBackoffice/dtos/BackofficePagination.ts +6 -0
  159. package/src/creditBackoffice/dtos/BackofficePipeline.ts +9 -0
  160. package/src/creditBackoffice/dtos/BackofficePipelineByLevel.ts +6 -0
  161. package/src/creditBackoffice/dtos/BackofficeProfileDetail.ts +79 -0
  162. package/src/creditBackoffice/dtos/BackofficeProfilesListItem.ts +17 -0
  163. package/src/creditBackoffice/dtos/BackofficeProfilesListResponse.ts +7 -0
  164. package/src/creditBackoffice/dtos/BackofficeProfilesSummary.ts +12 -0
  165. package/src/creditBackoffice/dtos/ConfigSnapshotListItem.ts +10 -0
  166. package/src/creditBackoffice/dtos/SimulateImpactRequest.ts +18 -0
  167. package/src/creditBackoffice/dtos/SimulateImpactResult.ts +41 -0
  168. package/src/creditBackoffice/dtos/SimulateInterestRequest.ts +15 -0
  169. package/src/creditBackoffice/dtos/SimulateInterestResult.ts +11 -0
  170. package/src/creditBackoffice/dtos/UpdateConfigRequest.ts +23 -0
  171. package/src/creditBackoffice/enums/ConfigType.ts +17 -0
  172. package/src/creditBackoffice/index.ts +24 -0
  173. package/src/creditDashboard/dtos/CohortQualityItem.ts +8 -0
  174. package/src/creditDashboard/dtos/DashboardSummary.ts +8 -0
  175. package/src/creditDashboard/dtos/NurturingFunnelItem.ts +5 -0
  176. package/src/creditDashboard/dtos/OriginationCompositionResult.ts +5 -0
  177. package/src/creditDashboard/dtos/OriginationEfficiencyResult.ts +8 -0
  178. package/src/creditDashboard/dtos/OriginationMonthlyItem.ts +6 -0
  179. package/src/creditDashboard/dtos/OriginationSummaryResult.ts +6 -0
  180. package/src/creditDashboard/dtos/OriginationWeeklyItem.ts +7 -0
  181. package/src/creditDashboard/dtos/PipelineLevelRow.ts +10 -0
  182. package/src/creditDashboard/dtos/PipelineWeek.ts +7 -0
  183. package/src/creditDashboard/dtos/PortfolioActiveItem.ts +12 -0
  184. package/src/creditDashboard/dtos/PortfolioBalance.ts +5 -0
  185. package/src/creditDashboard/dtos/PortfolioBalanceMonthlyItem.ts +5 -0
  186. package/src/creditDashboard/dtos/PortfolioByLevelItem.ts +7 -0
  187. package/src/creditDashboard/dtos/PortfolioResolutionItem.ts +8 -0
  188. package/src/creditDashboard/dtos/PortfolioUpcomingWeek.ts +7 -0
  189. package/src/creditDashboard/index.ts +16 -0
  190. package/src/creditEngine/dtos/AdvancedPaymentRequest.ts +15 -0
  191. package/src/creditEngine/dtos/AnticipatedPaymentRequest.ts +15 -0
  192. package/src/creditEngine/dtos/CreditDetailResponse.ts +25 -11
  193. package/src/creditEngine/dtos/CreditOriginationRequest.ts +12 -2
  194. package/src/creditEngine/dtos/CreditRequestResult.ts +9 -0
  195. package/src/creditEngine/dtos/CreditSignatureResult.ts +8 -0
  196. package/src/creditEngine/dtos/EarlyPaymentResult.ts +9 -0
  197. package/src/creditEngine/dtos/OfferResult.ts +16 -0
  198. package/src/creditEngine/dtos/PaymentScheduleItemResponse.ts +7 -6
  199. package/src/creditEngine/dtos/SettlementPaymentRequest.ts +11 -0
  200. package/src/creditEngine/dtos/SettlementQuote.ts +14 -0
  201. package/src/creditEngine/index.ts +8 -0
  202. package/src/customerFile/dtos/CustomerFileSearchRequest.ts +16 -0
  203. package/src/customerFile/index.ts +1 -0
  204. package/src/index.ts +3 -0
@@ -22,3 +22,14 @@ export * from "./dtos/BannerItem";
22
22
  export * from "./dtos/BenefitReferenceVerificationRequest";
23
23
  export * from "./dtos/ConnectorCatalogItem";
24
24
  export * from "./dtos/ConnectorCatalogResponse";
25
+ export * from "./dtos/BenefitModuleEntryRequest";
26
+ export * from "./dtos/BenefitModuleConfigRequest";
27
+ export * from "./dtos/BenefitCreateRequest";
28
+ export * from "./dtos/BenefitUpdateRequest";
29
+ export * from "./dtos/BannerTranslationRequest";
30
+ export * from "./dtos/BannerTranslationsRequest";
31
+ export * from "./dtos/BannerContentRequest";
32
+ export * from "./dtos/BannerActionRequest";
33
+ export * from "./dtos/BannerCreateRequest";
34
+ export * from "./dtos/BannerUpdateRequest";
35
+ export * from "./dtos/PublicVerifyReferenceRequest";
@@ -40,3 +40,15 @@ __exportStar(require("./dtos/BannerItem"), exports);
40
40
  __exportStar(require("./dtos/BenefitReferenceVerificationRequest"), exports);
41
41
  __exportStar(require("./dtos/ConnectorCatalogItem"), exports);
42
42
  __exportStar(require("./dtos/ConnectorCatalogResponse"), exports);
43
+ //Admin + public request DTOs (v3.2.1)
44
+ __exportStar(require("./dtos/BenefitModuleEntryRequest"), exports);
45
+ __exportStar(require("./dtos/BenefitModuleConfigRequest"), exports);
46
+ __exportStar(require("./dtos/BenefitCreateRequest"), exports);
47
+ __exportStar(require("./dtos/BenefitUpdateRequest"), exports);
48
+ __exportStar(require("./dtos/BannerTranslationRequest"), exports);
49
+ __exportStar(require("./dtos/BannerTranslationsRequest"), exports);
50
+ __exportStar(require("./dtos/BannerContentRequest"), exports);
51
+ __exportStar(require("./dtos/BannerActionRequest"), exports);
52
+ __exportStar(require("./dtos/BannerCreateRequest"), exports);
53
+ __exportStar(require("./dtos/BannerUpdateRequest"), exports);
54
+ __exportStar(require("./dtos/PublicVerifyReferenceRequest"), exports);
@@ -1,3 +1,10 @@
1
+ /**
2
+ * CTA asociado al banner state (boton y accion a ejecutar).
3
+ */
4
+ export declare class BannerCta {
5
+ text: string;
6
+ action: string;
7
+ }
1
8
  /**
2
9
  * Respuesta del endpoint GET /credit/{partnerId}/banner-state/{directoryId}
3
10
  */
@@ -8,10 +15,18 @@ export declare class BannerStateResponse {
8
15
  title: string;
9
16
  subtitle: string;
10
17
  progress_pct: number | null;
11
- cta: {
12
- text: string;
13
- action: string;
14
- } | null;
18
+ cta: BannerCta | null;
15
19
  credit_level: string | null;
16
20
  max_credit_amount_mxn: number | null;
21
+ /** Presente cuando el banner refleja un credito activo/delinquent/defaulted. */
22
+ credit_id?: string | null;
23
+ /** Pago del proximo cupon pendiente. */
24
+ next_payment_amount_mxn?: number | null;
25
+ next_payment_date?: string | null;
26
+ next_coupon_number?: number | null;
27
+ /** Montos de cupones vencidos (solo DELINQUENT). */
28
+ overdue_amount_mxn?: number | null;
29
+ overdue_count?: number | null;
30
+ /** Saldo insoluto del credito activo. */
31
+ outstanding_balance_mxn?: number | null;
17
32
  }
@@ -1,6 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BannerStateResponse = void 0;
3
+ exports.BannerStateResponse = exports.BannerCta = void 0;
4
+ /**
5
+ * CTA asociado al banner state (boton y accion a ejecutar).
6
+ */
7
+ class BannerCta {
8
+ }
9
+ exports.BannerCta = BannerCta;
4
10
  /**
5
11
  * Respuesta del endpoint GET /credit/{partnerId}/banner-state/{directoryId}
6
12
  */
@@ -9,4 +9,10 @@ export declare class CreditOfferOptionItem {
9
9
  total_interest_mxn: number;
10
10
  savings_vs_longest: number;
11
11
  is_recommended: boolean;
12
+ /** IVA (16%) sobre intereses del cupon. */
13
+ total_iva_mxn?: number;
14
+ /** Costo Anual Total (tasa efectiva anual de la operacion). */
15
+ cat?: number;
16
+ /** Fecha del primer pago (ISO, 7 dias desde la originacion). */
17
+ first_payment_date?: string;
12
18
  }
@@ -2,8 +2,8 @@
2
2
  * Respuesta del endpoint GET /credit/{partnerId}/eligibility/{directoryId}
3
3
  */
4
4
  export declare class EligibilityResponse {
5
- partner_id: string;
6
- directory_id: string;
5
+ partner_id?: string;
6
+ directory_id?: string;
7
7
  is_eligible: boolean;
8
8
  credit_level: string | null;
9
9
  max_credit_amount_mxn: number | null;
@@ -0,0 +1,36 @@
1
+ /**
2
+ * Row de aplicación de crédito (schema espejo de `CreditApplications_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 BackofficeCreditApplicationRow {
7
+ pk: string;
8
+ sk: string;
9
+ application_id?: string;
10
+ directory_id?: string;
11
+ partner_id?: string;
12
+ offer_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
+ first_payment_date?: string;
20
+ contract_view_url?: string;
21
+ expires_at?: string;
22
+ signed_at?: string;
23
+ created_at?: string;
24
+ updated_at?: string;
25
+ /** Runtime fields set by managers but not declared in the Dynamoose schema. */
26
+ credit_level?: string;
27
+ config_version?: number;
28
+ }
29
+ export declare class BackofficeApplicationDetail {
30
+ application: BackofficeCreditApplicationRow;
31
+ user: {
32
+ directory_id: string;
33
+ phone_number: string;
34
+ people_id: string;
35
+ };
36
+ }
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BackofficeApplicationDetail = exports.BackofficeCreditApplicationRow = void 0;
4
+ /**
5
+ * Row de aplicación de crédito (schema espejo de `CreditApplications_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 BackofficeCreditApplicationRow {
10
+ }
11
+ exports.BackofficeCreditApplicationRow = BackofficeCreditApplicationRow;
12
+ class BackofficeApplicationDetail {
13
+ }
14
+ exports.BackofficeApplicationDetail = BackofficeApplicationDetail;
@@ -0,0 +1,11 @@
1
+ export declare class BackofficeApplicationsListItem {
2
+ application_id: string;
3
+ directory_id: string;
4
+ partner_id: string;
5
+ phone_number: string;
6
+ amount_mxn: number;
7
+ term_weeks: number;
8
+ status: string;
9
+ signed_at: string;
10
+ created_at: string;
11
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BackofficeApplicationsListItem = void 0;
4
+ class BackofficeApplicationsListItem {
5
+ }
6
+ exports.BackofficeApplicationsListItem = BackofficeApplicationsListItem;
@@ -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,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BackofficeCreditsListItem = void 0;
4
+ class BackofficeCreditsListItem {
5
+ }
6
+ exports.BackofficeCreditsListItem = BackofficeCreditsListItem;
@@ -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,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BackofficeIncomeSourceItem = void 0;
4
+ class BackofficeIncomeSourceItem {
5
+ }
6
+ exports.BackofficeIncomeSourceItem = BackofficeIncomeSourceItem;
@@ -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,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BackofficeOffersListItem = void 0;
4
+ class BackofficeOffersListItem {
5
+ }
6
+ exports.BackofficeOffersListItem = BackofficeOffersListItem;
@@ -0,0 +1,6 @@
1
+ export declare class BackofficePagination {
2
+ page: number;
3
+ page_size: number;
4
+ total_items: number;
5
+ total_pages: number;
6
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BackofficePagination = void 0;
4
+ class BackofficePagination {
5
+ }
6
+ exports.BackofficePagination = BackofficePagination;
@@ -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,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BackofficePipeline = void 0;
4
+ class BackofficePipeline {
5
+ }
6
+ exports.BackofficePipeline = BackofficePipeline;
@@ -0,0 +1,6 @@
1
+ export declare class BackofficePipelineByLevel {
2
+ level: string;
3
+ count: number;
4
+ total_potential_mxn: number;
5
+ avg_potential_mxn: number;
6
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BackofficePipelineByLevel = void 0;
4
+ class BackofficePipelineByLevel {
5
+ }
6
+ exports.BackofficePipelineByLevel = BackofficePipelineByLevel;
@@ -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
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BackofficeProfilesListItem = void 0;
4
+ class BackofficeProfilesListItem {
5
+ }
6
+ exports.BackofficeProfilesListItem = BackofficeProfilesListItem;
@@ -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,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BackofficeProfilesListResponse = void 0;
4
+ class BackofficeProfilesListResponse {
5
+ }
6
+ exports.BackofficeProfilesListResponse = BackofficeProfilesListResponse;
@@ -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,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BackofficeProfilesSummary = void 0;
4
+ class BackofficeProfilesSummary {
5
+ }
6
+ exports.BackofficeProfilesSummary = BackofficeProfilesSummary;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Item de lista de snapshots de configuración.
3
+ */
4
+ export declare class ConfigSnapshotListItem {
5
+ version?: number;
6
+ created_at?: string;
7
+ created_by?: string;
8
+ description?: string;
9
+ config_type_changed?: string;
10
+ }
@@ -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
+ }