@fiado/type-kit 3.0.6 → 3.0.8
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/card/validations/CardUpdateKeyConstraint.js +2 -2
- package/bin/card/validations/IsPhoneNumberConstraint.js +2 -2
- package/bin/credit/dtos/BannerStateResponse.d.ts +17 -0
- package/bin/credit/dtos/BannerStateResponse.js +9 -0
- package/bin/credit/dtos/CreditOfferConfigureRequest.d.ts +5 -4
- package/bin/credit/dtos/CreditOfferConfigureRequest.js +8 -16
- package/bin/credit/dtos/CreditOfferConfigureResponse.d.ts +11 -22
- package/bin/credit/dtos/CreditOfferConfigureResponse.js +4 -4
- package/bin/credit/dtos/CreditOfferOptionItem.d.ts +12 -0
- package/bin/credit/dtos/CreditOfferOptionItem.js +9 -0
- package/bin/credit/dtos/EligibilityResponse.d.ts +13 -0
- package/bin/credit/dtos/EligibilityResponse.js +9 -0
- package/bin/credit/dtos/FinancialProfileResponse.d.ts +33 -0
- package/bin/credit/dtos/FinancialProfileResponse.js +9 -0
- package/bin/credit/enums/BannerStateEnum.d.ts +15 -0
- package/bin/credit/enums/BannerStateEnum.js +19 -0
- package/bin/credit/enums/CreditLevelEnum.d.ts +15 -0
- package/bin/credit/enums/CreditLevelEnum.js +19 -0
- package/bin/credit/enums/CreditOfferStatusEnum.d.ts +17 -0
- package/bin/credit/enums/CreditOfferStatusEnum.js +21 -0
- package/bin/credit/enums/IncomeClassificationEnum.d.ts +15 -0
- package/bin/credit/enums/IncomeClassificationEnum.js +19 -0
- package/bin/credit/enums/IncomeFrequencyEnum.d.ts +17 -0
- package/bin/credit/enums/IncomeFrequencyEnum.js +21 -0
- package/bin/credit/index.d.ts +12 -37
- package/bin/credit/index.js +15 -40
- package/bin/credit/interfaces/IIncomeDetectionMessage.d.ts +9 -0
- package/bin/credit/interfaces/IIncomeDetectionMessage.js +2 -0
- package/bin/credit/interfaces/IOfferGenerationMessage.d.ts +8 -0
- package/bin/credit/interfaces/IOfferGenerationMessage.js +2 -0
- package/bin/credit/interfaces/IScoringMessage.d.ts +8 -0
- package/bin/credit/interfaces/IScoringMessage.js +2 -0
- package/bin/index.d.ts +1 -1
- package/bin/index.js +19 -9
- package/package.json +1 -1
- package/src/credit/dtos/BannerStateResponse.ts +14 -0
- package/src/credit/dtos/CreditOfferConfigureRequest.ts +8 -15
- package/src/credit/dtos/CreditOfferConfigureResponse.ts +11 -23
- package/src/credit/dtos/CreditOfferOptionItem.ts +12 -0
- package/src/credit/dtos/EligibilityResponse.ts +13 -0
- package/src/credit/dtos/FinancialProfileResponse.ts +39 -0
- package/src/credit/enums/BannerStateEnum.ts +15 -0
- package/src/credit/enums/CreditLevelEnum.ts +15 -0
- package/src/credit/enums/CreditOfferStatusEnum.ts +17 -0
- package/src/credit/enums/IncomeClassificationEnum.ts +15 -0
- package/src/credit/enums/IncomeFrequencyEnum.ts +17 -0
- package/src/credit/index.ts +16 -41
- package/src/credit/interfaces/IIncomeDetectionMessage.ts +9 -0
- package/src/credit/interfaces/IOfferGenerationMessage.ts +8 -0
- package/src/credit/interfaces/IScoringMessage.ts +8 -0
- package/src/index.ts +1 -1
- package/bin/bankAccount/dtos/ExternalAccountType.d.ts +0 -4
- package/bin/bankAccount/dtos/ExternalAccountType.js +0 -6
- package/bin/centralPayments/dtos/CentralPaymentsDocumentImages.d.ts +0 -6
- package/bin/centralPayments/dtos/CentralPaymentsDocumentImages.js +0 -6
- package/bin/centralPayments/dtos/CentralPaymentsDocumentUploadRequest.d.ts +0 -6
- package/bin/centralPayments/dtos/CentralPaymentsDocumentUploadRequest.js +0 -6
- package/bin/directorySetting/dtos/DirectorySettingCreateResponse.d.ts +0 -0
- package/bin/directorySetting/dtos/DirectorySettingCreateResponse.js +0 -0
- package/bin/pricelist/dtos/GetPriceListDirectoriesResponse.d.ts +0 -28
- package/bin/pricelist/dtos/GetPriceListDirectoriesResponse.js +0 -6
- package/bin/services/dtos/GetMembershipListAppResponse.d.ts +0 -4
- package/bin/services/dtos/GetMembershipListAppResponse.js +0 -6
- package/bin/services/dtos/GetServiceMembershipListAResponse.d.ts +0 -4
- package/bin/services/dtos/GetServiceMembershipListAResponse.js +0 -6
- package/bin/services/enums/ServiceProviderEnum.d.ts +0 -5
- package/bin/services/enums/ServiceProviderEnum.js +0 -9
- package/src/credit/dtos/CreditBannerStateResponse.ts +0 -11
- package/src/credit/dtos/CreditDetailResponse.ts +0 -24
- package/src/credit/dtos/CreditEligibilityResponse.ts +0 -10
- package/src/credit/dtos/CreditMovementResponse.ts +0 -22
- package/src/credit/dtos/CreditRequestCreate.ts +0 -12
- package/src/credit/dtos/CreditRequestResponse.ts +0 -8
- package/src/credit/dtos/CreditScheduleResponse.ts +0 -19
- package/src/credit/dtos/CreditStatementResponse.ts +0 -12
- package/src/credit/dtos/EarlyPaymentRequest.ts +0 -21
- package/src/credit/dtos/EarlyPaymentResponse.ts +0 -12
- package/src/credit/dtos/internal/CreditBalanceRequest.ts +0 -8
- package/src/credit/dtos/internal/CreditBalanceResponse.ts +0 -10
- package/src/credit/dtos/internal/CreditCollectionRequest.ts +0 -39
- package/src/credit/dtos/internal/CreditCollectionResponse.ts +0 -12
- package/src/credit/dtos/internal/CreditDisbursementRequest.ts +0 -26
- package/src/credit/dtos/internal/CreditDisbursementResponse.ts +0 -8
- package/src/credit/dtos/internal/CreditProfileRequest.ts +0 -10
- package/src/credit/dtos/internal/CreditProfileResponse.ts +0 -14
- package/src/credit/dtos/internal/CreditQueueMessage.ts +0 -20
- package/src/credit/dtos/internal/CreditReversalRequest.ts +0 -16
- package/src/credit/dtos/internal/CreditReversalResponse.ts +0 -7
- package/src/credit/dtos/internal/CreditTransferLoancoRequest.ts +0 -28
- package/src/credit/dtos/internal/CreditTransferLoancoResponse.ts +0 -9
- package/src/credit/dtos/internal/DocumentGenerateRequest.ts +0 -34
- package/src/credit/dtos/internal/DocumentGenerateResponse.ts +0 -12
- package/src/credit/dtos/internal/DocumentSignRequest.ts +0 -8
- package/src/credit/dtos/internal/LienApplyRequest.ts +0 -28
- package/src/credit/dtos/internal/LienStatusResponse.ts +0 -9
- package/src/credit/enums/CollectionFrequencyEnum.ts +0 -5
- package/src/credit/enums/CreditOperationEnum.ts +0 -11
- package/src/credit/enums/CreditStatusEnum.ts +0 -12
- package/src/credit/enums/DelinquencyLevelEnum.ts +0 -9
- package/src/credit/enums/DocumentTypeEnum.ts +0 -8
- package/src/credit/enums/OfferStatusEnum.ts +0 -8
- package/src/credit/enums/PaymentTypeEnum.ts +0 -9
- package/src/credit/enums/ReconciliationStatusEnum.ts +0 -6
- package/src/credit/enums/TransferStatusEnum.ts +0 -8
|
@@ -6,7 +6,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
7
|
};
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.
|
|
9
|
+
exports.CardUpdateKeyConstraint = exports.IsReasonRequiredForCancelledStatusConstraint = void 0;
|
|
10
|
+
exports.IsValueValid = IsValueValid;
|
|
10
11
|
const class_validator_1 = require("class-validator");
|
|
11
12
|
const Status_1 = require("../enums/Status");
|
|
12
13
|
const UpdateKey_1 = require("../enums/UpdateKey");
|
|
@@ -70,4 +71,3 @@ function IsValueValid(validationOptions) {
|
|
|
70
71
|
});
|
|
71
72
|
};
|
|
72
73
|
}
|
|
73
|
-
exports.IsValueValid = IsValueValid;
|
|
@@ -6,7 +6,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
7
|
};
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.
|
|
9
|
+
exports.IsPhoneNumberConstraint = void 0;
|
|
10
|
+
exports.IsPhoneNumberFiado = IsPhoneNumberFiado;
|
|
10
11
|
const class_validator_1 = require("class-validator");
|
|
11
12
|
const regex_1 = require("../../helpers/constans/regex");
|
|
12
13
|
let IsPhoneNumberConstraint = class IsPhoneNumberConstraint {
|
|
@@ -36,4 +37,3 @@ function IsPhoneNumberFiado(validationOptions) {
|
|
|
36
37
|
});
|
|
37
38
|
};
|
|
38
39
|
}
|
|
39
|
-
exports.IsPhoneNumberFiado = IsPhoneNumberFiado;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Respuesta del endpoint GET /credit/{partnerId}/banner-state/{directoryId}
|
|
3
|
+
*/
|
|
4
|
+
export declare class BannerStateResponse {
|
|
5
|
+
partner_id: string;
|
|
6
|
+
directory_id: string;
|
|
7
|
+
banner_state: string;
|
|
8
|
+
title: string;
|
|
9
|
+
subtitle: string;
|
|
10
|
+
progress_pct: number | null;
|
|
11
|
+
cta: {
|
|
12
|
+
text: string;
|
|
13
|
+
action: string;
|
|
14
|
+
} | null;
|
|
15
|
+
credit_level: string | null;
|
|
16
|
+
max_credit_amount_mxn: number | null;
|
|
17
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BannerStateResponse = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Respuesta del endpoint GET /credit/{partnerId}/banner-state/{directoryId}
|
|
6
|
+
*/
|
|
7
|
+
class BannerStateResponse {
|
|
8
|
+
}
|
|
9
|
+
exports.BannerStateResponse = BannerStateResponse;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Request del endpoint POST /credit/{partnerId}/offer/configure
|
|
3
|
+
*/
|
|
2
4
|
export declare class CreditOfferConfigureRequest {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
frequency: CollectionFrequencyEnum;
|
|
5
|
+
directoryId: string;
|
|
6
|
+
amount_mxn?: number;
|
|
6
7
|
}
|
|
@@ -11,26 +11,18 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.CreditOfferConfigureRequest = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
|
-
|
|
14
|
+
/**
|
|
15
|
+
* Request del endpoint POST /credit/{partnerId}/offer/configure
|
|
16
|
+
*/
|
|
15
17
|
class CreditOfferConfigureRequest {
|
|
16
18
|
}
|
|
17
19
|
exports.CreditOfferConfigureRequest = CreditOfferConfigureRequest;
|
|
18
20
|
__decorate([
|
|
19
|
-
(0, class_validator_1.
|
|
20
|
-
(
|
|
21
|
-
|
|
22
|
-
(0, class_validator_1.Max)(50000),
|
|
23
|
-
__metadata("design:type", Number)
|
|
24
|
-
], CreditOfferConfigureRequest.prototype, "amount", void 0);
|
|
21
|
+
(0, class_validator_1.IsString)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], CreditOfferConfigureRequest.prototype, "directoryId", void 0);
|
|
25
24
|
__decorate([
|
|
26
25
|
(0, class_validator_1.IsNumber)(),
|
|
27
|
-
(0, class_validator_1.
|
|
28
|
-
(0, class_validator_1.Min)(4),
|
|
29
|
-
(0, class_validator_1.Max)(52),
|
|
26
|
+
(0, class_validator_1.IsOptional)(),
|
|
30
27
|
__metadata("design:type", Number)
|
|
31
|
-
], CreditOfferConfigureRequest.prototype, "
|
|
32
|
-
__decorate([
|
|
33
|
-
(0, class_validator_1.IsEnum)(CollectionFrequencyEnum_1.CollectionFrequencyEnum),
|
|
34
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
35
|
-
__metadata("design:type", String)
|
|
36
|
-
], CreditOfferConfigureRequest.prototype, "frequency", void 0);
|
|
28
|
+
], CreditOfferConfigureRequest.prototype, "amount_mxn", void 0);
|
|
@@ -1,24 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
principal: number;
|
|
6
|
-
interest: number;
|
|
7
|
-
iva: number;
|
|
8
|
-
payment: number;
|
|
9
|
-
balance: number;
|
|
10
|
-
}
|
|
1
|
+
import { CreditOfferOptionItem } from "./CreditOfferOptionItem";
|
|
2
|
+
/**
|
|
3
|
+
* Respuesta del endpoint POST /credit/{partnerId}/offer/configure
|
|
4
|
+
*/
|
|
11
5
|
export declare class CreditOfferConfigureResponse {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
totalIva: number;
|
|
20
|
-
totalPayment: number;
|
|
21
|
-
cat: number;
|
|
22
|
-
amortizationTable: AmortizationRow[];
|
|
23
|
-
expiresAt: string;
|
|
6
|
+
partner_id: string;
|
|
7
|
+
offer_id: string;
|
|
8
|
+
credit_level: string;
|
|
9
|
+
max_amount_mxn: number;
|
|
10
|
+
selected_amount_mxn: number;
|
|
11
|
+
expires_at: string;
|
|
12
|
+
options: CreditOfferOptionItem[];
|
|
24
13
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CreditOfferConfigureResponse =
|
|
4
|
-
|
|
5
|
-
}
|
|
6
|
-
|
|
3
|
+
exports.CreditOfferConfigureResponse = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Respuesta del endpoint POST /credit/{partnerId}/offer/configure
|
|
6
|
+
*/
|
|
7
7
|
class CreditOfferConfigureResponse {
|
|
8
8
|
}
|
|
9
9
|
exports.CreditOfferConfigureResponse = CreditOfferConfigureResponse;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Opcion de plazo dentro de una oferta de credito
|
|
3
|
+
*/
|
|
4
|
+
export declare class CreditOfferOptionItem {
|
|
5
|
+
term_weeks: number;
|
|
6
|
+
annual_rate: number;
|
|
7
|
+
weekly_payment_mxn: number;
|
|
8
|
+
total_to_pay_mxn: number;
|
|
9
|
+
total_interest_mxn: number;
|
|
10
|
+
savings_vs_longest: number;
|
|
11
|
+
is_recommended: boolean;
|
|
12
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreditOfferOptionItem = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Opcion de plazo dentro de una oferta de credito
|
|
6
|
+
*/
|
|
7
|
+
class CreditOfferOptionItem {
|
|
8
|
+
}
|
|
9
|
+
exports.CreditOfferOptionItem = CreditOfferOptionItem;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Respuesta del endpoint GET /credit/{partnerId}/eligibility/{directoryId}
|
|
3
|
+
*/
|
|
4
|
+
export declare class EligibilityResponse {
|
|
5
|
+
partner_id: string;
|
|
6
|
+
directory_id: string;
|
|
7
|
+
is_eligible: boolean;
|
|
8
|
+
credit_level: string | null;
|
|
9
|
+
max_credit_amount_mxn: number | null;
|
|
10
|
+
available_terms: number[];
|
|
11
|
+
score_total: number | null;
|
|
12
|
+
ineligibility_reason: string | null;
|
|
13
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EligibilityResponse = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Respuesta del endpoint GET /credit/{partnerId}/eligibility/{directoryId}
|
|
6
|
+
*/
|
|
7
|
+
class EligibilityResponse {
|
|
8
|
+
}
|
|
9
|
+
exports.EligibilityResponse = EligibilityResponse;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Respuesta del endpoint GET /credit/profile/{directoryId} (private/inter-service)
|
|
3
|
+
*/
|
|
4
|
+
export declare class FinancialProfileResponse {
|
|
5
|
+
directory_id: string;
|
|
6
|
+
partner_id: string;
|
|
7
|
+
total_income_sources: number;
|
|
8
|
+
primary_sources: number;
|
|
9
|
+
secondary_sources: number;
|
|
10
|
+
has_regular_income: string;
|
|
11
|
+
total_income_90d_usd: number;
|
|
12
|
+
monthly_income_usd: number;
|
|
13
|
+
monthly_income_mxn: number;
|
|
14
|
+
dominant_frequency: string;
|
|
15
|
+
total_expenses_90d_usd: number;
|
|
16
|
+
monthly_expenses_usd: number;
|
|
17
|
+
expense_income_ratio: number;
|
|
18
|
+
score_income_stability: number;
|
|
19
|
+
score_payment_capacity: number;
|
|
20
|
+
score_mexico_transfers: number;
|
|
21
|
+
score_seniority: number;
|
|
22
|
+
score_income_level: number;
|
|
23
|
+
score_total: number;
|
|
24
|
+
credit_level: string | null;
|
|
25
|
+
max_credit_amount_mxn: number | null;
|
|
26
|
+
is_eligible: string;
|
|
27
|
+
ineligibility_reason: string | null;
|
|
28
|
+
next_level: string | null;
|
|
29
|
+
score_to_next_level: number | null;
|
|
30
|
+
progress_pct: number | null;
|
|
31
|
+
recommendations: any[];
|
|
32
|
+
last_updated: string;
|
|
33
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FinancialProfileResponse = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Respuesta del endpoint GET /credit/profile/{directoryId} (private/inter-service)
|
|
6
|
+
*/
|
|
7
|
+
class FinancialProfileResponse {
|
|
8
|
+
}
|
|
9
|
+
exports.FinancialProfileResponse = FinancialProfileResponse;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Estados del banner de nurturing de credito
|
|
3
|
+
* @enum {string}
|
|
4
|
+
*
|
|
5
|
+
* @property {string} NO_PAYROLL - Sin deposito directo
|
|
6
|
+
* @property {string} IN_PROGRESS - Perfil en analisis
|
|
7
|
+
* @property {string} ELIGIBLE - Elegible para credito
|
|
8
|
+
* @property {string} HAS_ACTIVE_CREDIT - Ya tiene credito activo
|
|
9
|
+
*/
|
|
10
|
+
export declare enum BannerStateEnum {
|
|
11
|
+
NO_PAYROLL = "NO_PAYROLL",
|
|
12
|
+
IN_PROGRESS = "IN_PROGRESS",
|
|
13
|
+
ELIGIBLE = "ELIGIBLE",
|
|
14
|
+
HAS_ACTIVE_CREDIT = "HAS_ACTIVE_CREDIT"
|
|
15
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BannerStateEnum = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Estados del banner de nurturing de credito
|
|
6
|
+
* @enum {string}
|
|
7
|
+
*
|
|
8
|
+
* @property {string} NO_PAYROLL - Sin deposito directo
|
|
9
|
+
* @property {string} IN_PROGRESS - Perfil en analisis
|
|
10
|
+
* @property {string} ELIGIBLE - Elegible para credito
|
|
11
|
+
* @property {string} HAS_ACTIVE_CREDIT - Ya tiene credito activo
|
|
12
|
+
*/
|
|
13
|
+
var BannerStateEnum;
|
|
14
|
+
(function (BannerStateEnum) {
|
|
15
|
+
BannerStateEnum["NO_PAYROLL"] = "NO_PAYROLL";
|
|
16
|
+
BannerStateEnum["IN_PROGRESS"] = "IN_PROGRESS";
|
|
17
|
+
BannerStateEnum["ELIGIBLE"] = "ELIGIBLE";
|
|
18
|
+
BannerStateEnum["HAS_ACTIVE_CREDIT"] = "HAS_ACTIVE_CREDIT";
|
|
19
|
+
})(BannerStateEnum || (exports.BannerStateEnum = BannerStateEnum = {}));
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Niveles crediticios del modulo de credito
|
|
3
|
+
* @enum {string}
|
|
4
|
+
*
|
|
5
|
+
* @property {string} BRONZE - Nivel inicial
|
|
6
|
+
* @property {string} SILVER - Nivel intermedio bajo
|
|
7
|
+
* @property {string} GOLD - Nivel intermedio alto
|
|
8
|
+
* @property {string} PLATINUM - Nivel maximo
|
|
9
|
+
*/
|
|
10
|
+
export declare enum CreditLevelEnum {
|
|
11
|
+
BRONZE = "BRONZE",
|
|
12
|
+
SILVER = "SILVER",
|
|
13
|
+
GOLD = "GOLD",
|
|
14
|
+
PLATINUM = "PLATINUM"
|
|
15
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreditLevelEnum = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Niveles crediticios del modulo de credito
|
|
6
|
+
* @enum {string}
|
|
7
|
+
*
|
|
8
|
+
* @property {string} BRONZE - Nivel inicial
|
|
9
|
+
* @property {string} SILVER - Nivel intermedio bajo
|
|
10
|
+
* @property {string} GOLD - Nivel intermedio alto
|
|
11
|
+
* @property {string} PLATINUM - Nivel maximo
|
|
12
|
+
*/
|
|
13
|
+
var CreditLevelEnum;
|
|
14
|
+
(function (CreditLevelEnum) {
|
|
15
|
+
CreditLevelEnum["BRONZE"] = "BRONZE";
|
|
16
|
+
CreditLevelEnum["SILVER"] = "SILVER";
|
|
17
|
+
CreditLevelEnum["GOLD"] = "GOLD";
|
|
18
|
+
CreditLevelEnum["PLATINUM"] = "PLATINUM";
|
|
19
|
+
})(CreditLevelEnum || (exports.CreditLevelEnum = CreditLevelEnum = {}));
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Estados de una oferta de credito
|
|
3
|
+
* @enum {string}
|
|
4
|
+
*
|
|
5
|
+
* @property {string} VIEWING - Oferta activa siendo visualizada
|
|
6
|
+
* @property {string} ACCEPTED - Oferta aceptada por el cliente
|
|
7
|
+
* @property {string} ABANDONED - Oferta abandonada
|
|
8
|
+
* @property {string} EXPIRED - Oferta expirada
|
|
9
|
+
* @property {string} CONVERTED - Oferta convertida en credito activo
|
|
10
|
+
*/
|
|
11
|
+
export declare enum CreditOfferStatusEnum {
|
|
12
|
+
VIEWING = "VIEWING",
|
|
13
|
+
ACCEPTED = "ACCEPTED",
|
|
14
|
+
ABANDONED = "ABANDONED",
|
|
15
|
+
EXPIRED = "EXPIRED",
|
|
16
|
+
CONVERTED = "CONVERTED"
|
|
17
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreditOfferStatusEnum = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Estados de una oferta de credito
|
|
6
|
+
* @enum {string}
|
|
7
|
+
*
|
|
8
|
+
* @property {string} VIEWING - Oferta activa siendo visualizada
|
|
9
|
+
* @property {string} ACCEPTED - Oferta aceptada por el cliente
|
|
10
|
+
* @property {string} ABANDONED - Oferta abandonada
|
|
11
|
+
* @property {string} EXPIRED - Oferta expirada
|
|
12
|
+
* @property {string} CONVERTED - Oferta convertida en credito activo
|
|
13
|
+
*/
|
|
14
|
+
var CreditOfferStatusEnum;
|
|
15
|
+
(function (CreditOfferStatusEnum) {
|
|
16
|
+
CreditOfferStatusEnum["VIEWING"] = "VIEWING";
|
|
17
|
+
CreditOfferStatusEnum["ACCEPTED"] = "ACCEPTED";
|
|
18
|
+
CreditOfferStatusEnum["ABANDONED"] = "ABANDONED";
|
|
19
|
+
CreditOfferStatusEnum["EXPIRED"] = "EXPIRED";
|
|
20
|
+
CreditOfferStatusEnum["CONVERTED"] = "CONVERTED";
|
|
21
|
+
})(CreditOfferStatusEnum || (exports.CreditOfferStatusEnum = CreditOfferStatusEnum = {}));
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Clasificacion de fuentes de ingreso detectadas
|
|
3
|
+
* @enum {string}
|
|
4
|
+
*
|
|
5
|
+
* @property {string} PRIMARY - Fuente principal de ingreso
|
|
6
|
+
* @property {string} SECONDARY - Fuente secundaria de ingreso
|
|
7
|
+
* @property {string} SPORADIC - Ingreso esporadico
|
|
8
|
+
* @property {string} UNIDENTIFIED - Fuente no identificada
|
|
9
|
+
*/
|
|
10
|
+
export declare enum IncomeClassificationEnum {
|
|
11
|
+
PRIMARY = "PRIMARY",
|
|
12
|
+
SECONDARY = "SECONDARY",
|
|
13
|
+
SPORADIC = "SPORADIC",
|
|
14
|
+
UNIDENTIFIED = "UNIDENTIFIED"
|
|
15
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IncomeClassificationEnum = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Clasificacion de fuentes de ingreso detectadas
|
|
6
|
+
* @enum {string}
|
|
7
|
+
*
|
|
8
|
+
* @property {string} PRIMARY - Fuente principal de ingreso
|
|
9
|
+
* @property {string} SECONDARY - Fuente secundaria de ingreso
|
|
10
|
+
* @property {string} SPORADIC - Ingreso esporadico
|
|
11
|
+
* @property {string} UNIDENTIFIED - Fuente no identificada
|
|
12
|
+
*/
|
|
13
|
+
var IncomeClassificationEnum;
|
|
14
|
+
(function (IncomeClassificationEnum) {
|
|
15
|
+
IncomeClassificationEnum["PRIMARY"] = "PRIMARY";
|
|
16
|
+
IncomeClassificationEnum["SECONDARY"] = "SECONDARY";
|
|
17
|
+
IncomeClassificationEnum["SPORADIC"] = "SPORADIC";
|
|
18
|
+
IncomeClassificationEnum["UNIDENTIFIED"] = "UNIDENTIFIED";
|
|
19
|
+
})(IncomeClassificationEnum || (exports.IncomeClassificationEnum = IncomeClassificationEnum = {}));
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Frecuencias detectadas de depositos de ingreso
|
|
3
|
+
* @enum {string}
|
|
4
|
+
*
|
|
5
|
+
* @property {string} DAILY - Diario (0-4 dias entre depositos)
|
|
6
|
+
* @property {string} WEEKLY - Semanal (5-11 dias)
|
|
7
|
+
* @property {string} BIWEEKLY - Quincenal (12-24 dias)
|
|
8
|
+
* @property {string} MONTHLY - Mensual (25-35 dias)
|
|
9
|
+
* @property {string} IRREGULAR - Irregular (36+ dias)
|
|
10
|
+
*/
|
|
11
|
+
export declare enum IncomeFrequencyEnum {
|
|
12
|
+
DAILY = "DAILY",
|
|
13
|
+
WEEKLY = "WEEKLY",
|
|
14
|
+
BIWEEKLY = "BIWEEKLY",
|
|
15
|
+
MONTHLY = "MONTHLY",
|
|
16
|
+
IRREGULAR = "IRREGULAR"
|
|
17
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IncomeFrequencyEnum = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Frecuencias detectadas de depositos de ingreso
|
|
6
|
+
* @enum {string}
|
|
7
|
+
*
|
|
8
|
+
* @property {string} DAILY - Diario (0-4 dias entre depositos)
|
|
9
|
+
* @property {string} WEEKLY - Semanal (5-11 dias)
|
|
10
|
+
* @property {string} BIWEEKLY - Quincenal (12-24 dias)
|
|
11
|
+
* @property {string} MONTHLY - Mensual (25-35 dias)
|
|
12
|
+
* @property {string} IRREGULAR - Irregular (36+ dias)
|
|
13
|
+
*/
|
|
14
|
+
var IncomeFrequencyEnum;
|
|
15
|
+
(function (IncomeFrequencyEnum) {
|
|
16
|
+
IncomeFrequencyEnum["DAILY"] = "DAILY";
|
|
17
|
+
IncomeFrequencyEnum["WEEKLY"] = "WEEKLY";
|
|
18
|
+
IncomeFrequencyEnum["BIWEEKLY"] = "BIWEEKLY";
|
|
19
|
+
IncomeFrequencyEnum["MONTHLY"] = "MONTHLY";
|
|
20
|
+
IncomeFrequencyEnum["IRREGULAR"] = "IRREGULAR";
|
|
21
|
+
})(IncomeFrequencyEnum || (exports.IncomeFrequencyEnum = IncomeFrequencyEnum = {}));
|
package/bin/credit/index.d.ts
CHANGED
|
@@ -1,39 +1,14 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './
|
|
1
|
+
export * from './enums/CreditLevelEnum';
|
|
2
|
+
export * from './enums/BannerStateEnum';
|
|
3
|
+
export * from './enums/IncomeFrequencyEnum';
|
|
4
|
+
export * from './enums/IncomeClassificationEnum';
|
|
5
|
+
export * from './enums/CreditOfferStatusEnum';
|
|
6
|
+
export * from './dtos/BannerStateResponse';
|
|
7
|
+
export * from './dtos/EligibilityResponse';
|
|
3
8
|
export * from './dtos/CreditOfferConfigureRequest';
|
|
4
9
|
export * from './dtos/CreditOfferConfigureResponse';
|
|
5
|
-
export * from './dtos/
|
|
6
|
-
export * from './dtos/
|
|
7
|
-
export * from './
|
|
8
|
-
export * from './
|
|
9
|
-
export * from './
|
|
10
|
-
export * from './dtos/CreditStatementResponse';
|
|
11
|
-
export * from './dtos/EarlyPaymentRequest';
|
|
12
|
-
export * from './dtos/EarlyPaymentResponse';
|
|
13
|
-
export * from './dtos/internal/CreditProfileRequest';
|
|
14
|
-
export * from './dtos/internal/CreditProfileResponse';
|
|
15
|
-
export * from './dtos/internal/CreditDisbursementRequest';
|
|
16
|
-
export * from './dtos/internal/CreditDisbursementResponse';
|
|
17
|
-
export * from './dtos/internal/CreditCollectionRequest';
|
|
18
|
-
export * from './dtos/internal/CreditCollectionResponse';
|
|
19
|
-
export * from './dtos/internal/CreditTransferLoancoRequest';
|
|
20
|
-
export * from './dtos/internal/CreditTransferLoancoResponse';
|
|
21
|
-
export * from './dtos/internal/CreditReversalRequest';
|
|
22
|
-
export * from './dtos/internal/CreditReversalResponse';
|
|
23
|
-
export * from './dtos/internal/CreditBalanceRequest';
|
|
24
|
-
export * from './dtos/internal/CreditBalanceResponse';
|
|
25
|
-
export * from './dtos/internal/LienStatusResponse';
|
|
26
|
-
export * from './dtos/internal/LienApplyRequest';
|
|
27
|
-
export * from './dtos/internal/CreditQueueMessage';
|
|
28
|
-
export * from './dtos/internal/DocumentGenerateRequest';
|
|
29
|
-
export * from './dtos/internal/DocumentGenerateResponse';
|
|
30
|
-
export * from './dtos/internal/DocumentSignRequest';
|
|
31
|
-
export * from './enums/CreditStatusEnum';
|
|
32
|
-
export * from './enums/DelinquencyLevelEnum';
|
|
33
|
-
export * from './enums/PaymentTypeEnum';
|
|
34
|
-
export * from './enums/CollectionFrequencyEnum';
|
|
35
|
-
export * from './enums/CreditOperationEnum';
|
|
36
|
-
export * from './enums/OfferStatusEnum';
|
|
37
|
-
export * from './enums/TransferStatusEnum';
|
|
38
|
-
export * from './enums/ReconciliationStatusEnum';
|
|
39
|
-
export * from './enums/DocumentTypeEnum';
|
|
10
|
+
export * from './dtos/CreditOfferOptionItem';
|
|
11
|
+
export * from './dtos/FinancialProfileResponse';
|
|
12
|
+
export * from './interfaces/IIncomeDetectionMessage';
|
|
13
|
+
export * from './interfaces/IScoringMessage';
|
|
14
|
+
export * from './interfaces/IOfferGenerationMessage';
|
package/bin/credit/index.js
CHANGED
|
@@ -14,45 +14,20 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
//
|
|
18
|
-
__exportStar(require("./
|
|
19
|
-
__exportStar(require("./
|
|
17
|
+
// Enums
|
|
18
|
+
__exportStar(require("./enums/CreditLevelEnum"), exports);
|
|
19
|
+
__exportStar(require("./enums/BannerStateEnum"), exports);
|
|
20
|
+
__exportStar(require("./enums/IncomeFrequencyEnum"), exports);
|
|
21
|
+
__exportStar(require("./enums/IncomeClassificationEnum"), exports);
|
|
22
|
+
__exportStar(require("./enums/CreditOfferStatusEnum"), exports);
|
|
23
|
+
// DTOs
|
|
24
|
+
__exportStar(require("./dtos/BannerStateResponse"), exports);
|
|
25
|
+
__exportStar(require("./dtos/EligibilityResponse"), exports);
|
|
20
26
|
__exportStar(require("./dtos/CreditOfferConfigureRequest"), exports);
|
|
21
27
|
__exportStar(require("./dtos/CreditOfferConfigureResponse"), exports);
|
|
22
|
-
__exportStar(require("./dtos/
|
|
23
|
-
__exportStar(require("./dtos/
|
|
24
|
-
|
|
25
|
-
__exportStar(require("./
|
|
26
|
-
__exportStar(require("./
|
|
27
|
-
__exportStar(require("./
|
|
28
|
-
__exportStar(require("./dtos/EarlyPaymentRequest"), exports);
|
|
29
|
-
__exportStar(require("./dtos/EarlyPaymentResponse"), exports);
|
|
30
|
-
//dtos/internal
|
|
31
|
-
__exportStar(require("./dtos/internal/CreditProfileRequest"), exports);
|
|
32
|
-
__exportStar(require("./dtos/internal/CreditProfileResponse"), exports);
|
|
33
|
-
__exportStar(require("./dtos/internal/CreditDisbursementRequest"), exports);
|
|
34
|
-
__exportStar(require("./dtos/internal/CreditDisbursementResponse"), exports);
|
|
35
|
-
__exportStar(require("./dtos/internal/CreditCollectionRequest"), exports);
|
|
36
|
-
__exportStar(require("./dtos/internal/CreditCollectionResponse"), exports);
|
|
37
|
-
__exportStar(require("./dtos/internal/CreditTransferLoancoRequest"), exports);
|
|
38
|
-
__exportStar(require("./dtos/internal/CreditTransferLoancoResponse"), exports);
|
|
39
|
-
__exportStar(require("./dtos/internal/CreditReversalRequest"), exports);
|
|
40
|
-
__exportStar(require("./dtos/internal/CreditReversalResponse"), exports);
|
|
41
|
-
__exportStar(require("./dtos/internal/CreditBalanceRequest"), exports);
|
|
42
|
-
__exportStar(require("./dtos/internal/CreditBalanceResponse"), exports);
|
|
43
|
-
__exportStar(require("./dtos/internal/LienStatusResponse"), exports);
|
|
44
|
-
__exportStar(require("./dtos/internal/LienApplyRequest"), exports);
|
|
45
|
-
__exportStar(require("./dtos/internal/CreditQueueMessage"), exports);
|
|
46
|
-
__exportStar(require("./dtos/internal/DocumentGenerateRequest"), exports);
|
|
47
|
-
__exportStar(require("./dtos/internal/DocumentGenerateResponse"), exports);
|
|
48
|
-
__exportStar(require("./dtos/internal/DocumentSignRequest"), exports);
|
|
49
|
-
//enums
|
|
50
|
-
__exportStar(require("./enums/CreditStatusEnum"), exports);
|
|
51
|
-
__exportStar(require("./enums/DelinquencyLevelEnum"), exports);
|
|
52
|
-
__exportStar(require("./enums/PaymentTypeEnum"), exports);
|
|
53
|
-
__exportStar(require("./enums/CollectionFrequencyEnum"), exports);
|
|
54
|
-
__exportStar(require("./enums/CreditOperationEnum"), exports);
|
|
55
|
-
__exportStar(require("./enums/OfferStatusEnum"), exports);
|
|
56
|
-
__exportStar(require("./enums/TransferStatusEnum"), exports);
|
|
57
|
-
__exportStar(require("./enums/ReconciliationStatusEnum"), exports);
|
|
58
|
-
__exportStar(require("./enums/DocumentTypeEnum"), exports);
|
|
28
|
+
__exportStar(require("./dtos/CreditOfferOptionItem"), exports);
|
|
29
|
+
__exportStar(require("./dtos/FinancialProfileResponse"), exports);
|
|
30
|
+
// Interfaces (SQS Messages)
|
|
31
|
+
__exportStar(require("./interfaces/IIncomeDetectionMessage"), exports);
|
|
32
|
+
__exportStar(require("./interfaces/IScoringMessage"), exports);
|
|
33
|
+
__exportStar(require("./interfaces/IOfferGenerationMessage"), exports);
|
package/bin/index.d.ts
CHANGED
|
@@ -55,6 +55,6 @@ export * as PayrollBusiness from './payroll-business';
|
|
|
55
55
|
export * as Event from './event';
|
|
56
56
|
export * as NotificationWS from './notificationWS';
|
|
57
57
|
export * as ZendeskMessaging from './zendeskMessaging';
|
|
58
|
-
export * as Credit from './credit';
|
|
59
58
|
export * as ReferralBusiness from './referral-business';
|
|
60
59
|
export * as ComissionBusiness from './comission-business';
|
|
60
|
+
export * as Credit from './credit';
|