@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.
- package/bin/benefitCenter/dtos/BannerActionRequest.d.ts +7 -0
- package/bin/benefitCenter/dtos/BannerActionRequest.js +36 -0
- package/bin/benefitCenter/dtos/BannerContentRequest.d.ts +6 -0
- package/bin/benefitCenter/dtos/BannerContentRequest.js +28 -0
- package/bin/benefitCenter/dtos/BannerCreateRequest.d.ts +14 -0
- package/bin/benefitCenter/dtos/BannerCreateRequest.js +64 -0
- package/bin/benefitCenter/dtos/BannerTranslationRequest.d.ts +7 -0
- package/bin/benefitCenter/dtos/BannerTranslationRequest.js +41 -0
- package/bin/benefitCenter/dtos/BannerTranslationsRequest.d.ts +5 -0
- package/bin/benefitCenter/dtos/BannerTranslationsRequest.js +30 -0
- package/bin/benefitCenter/dtos/BannerUpdateRequest.d.ts +13 -0
- package/bin/benefitCenter/dtos/BannerUpdateRequest.js +63 -0
- package/bin/benefitCenter/dtos/BenefitCreateRequest.d.ts +20 -0
- package/bin/benefitCenter/dtos/BenefitCreateRequest.js +73 -0
- package/bin/benefitCenter/dtos/BenefitModuleConfigRequest.d.ts +4 -0
- package/bin/benefitCenter/dtos/BenefitModuleConfigRequest.js +25 -0
- package/bin/benefitCenter/dtos/BenefitModuleEntryRequest.d.ts +4 -0
- package/bin/benefitCenter/dtos/BenefitModuleEntryRequest.js +26 -0
- package/bin/benefitCenter/dtos/BenefitUpdateRequest.d.ts +14 -0
- package/bin/benefitCenter/dtos/BenefitUpdateRequest.js +67 -0
- package/bin/benefitCenter/dtos/PublicVerifyReferenceRequest.d.ts +16 -0
- package/bin/benefitCenter/dtos/PublicVerifyReferenceRequest.js +50 -0
- package/bin/benefitCenter/index.d.ts +11 -0
- package/bin/benefitCenter/index.js +12 -0
- package/bin/credit/dtos/BannerStateResponse.d.ts +19 -4
- package/bin/credit/dtos/BannerStateResponse.js +7 -1
- package/bin/credit/dtos/CreditOfferOptionItem.d.ts +6 -0
- package/bin/credit/dtos/EligibilityResponse.d.ts +2 -2
- 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/benefitCenter/dtos/BannerActionRequest.ts +14 -0
- package/src/benefitCenter/dtos/BannerContentRequest.ts +13 -0
- package/src/benefitCenter/dtos/BannerCreateRequest.ts +46 -0
- package/src/benefitCenter/dtos/BannerTranslationRequest.ts +9 -0
- package/src/benefitCenter/dtos/BannerTranslationsRequest.ts +15 -0
- package/src/benefitCenter/dtos/BannerUpdateRequest.ts +35 -0
- package/src/benefitCenter/dtos/BenefitCreateRequest.ts +59 -0
- package/src/benefitCenter/dtos/BenefitModuleConfigRequest.ts +11 -0
- package/src/benefitCenter/dtos/BenefitModuleEntryRequest.ts +11 -0
- package/src/benefitCenter/dtos/BenefitUpdateRequest.ts +34 -0
- package/src/benefitCenter/dtos/PublicVerifyReferenceRequest.ts +33 -0
- package/src/benefitCenter/index.ts +12 -0
- 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,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./dtos/CohortQualityItem"), exports);
|
|
18
|
+
__exportStar(require("./dtos/DashboardSummary"), exports);
|
|
19
|
+
__exportStar(require("./dtos/NurturingFunnelItem"), exports);
|
|
20
|
+
__exportStar(require("./dtos/OriginationCompositionResult"), exports);
|
|
21
|
+
__exportStar(require("./dtos/OriginationEfficiencyResult"), exports);
|
|
22
|
+
__exportStar(require("./dtos/OriginationMonthlyItem"), exports);
|
|
23
|
+
__exportStar(require("./dtos/OriginationSummaryResult"), exports);
|
|
24
|
+
__exportStar(require("./dtos/OriginationWeeklyItem"), exports);
|
|
25
|
+
__exportStar(require("./dtos/PipelineLevelRow"), exports);
|
|
26
|
+
__exportStar(require("./dtos/PipelineWeek"), exports);
|
|
27
|
+
__exportStar(require("./dtos/PortfolioActiveItem"), exports);
|
|
28
|
+
__exportStar(require("./dtos/PortfolioBalance"), exports);
|
|
29
|
+
__exportStar(require("./dtos/PortfolioBalanceMonthlyItem"), exports);
|
|
30
|
+
__exportStar(require("./dtos/PortfolioByLevelItem"), exports);
|
|
31
|
+
__exportStar(require("./dtos/PortfolioResolutionItem"), exports);
|
|
32
|
+
__exportStar(require("./dtos/PortfolioUpcomingWeek"), exports);
|
|
@@ -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.AdvancedPaymentRequest = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
/**
|
|
15
|
+
* Request para pago adelantado: paga cupones futuros por adelantado en cascada.
|
|
16
|
+
* Endpoint: POST /{partnerId}/early-payment/advanced
|
|
17
|
+
*/
|
|
18
|
+
class AdvancedPaymentRequest {
|
|
19
|
+
}
|
|
20
|
+
exports.AdvancedPaymentRequest = AdvancedPaymentRequest;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsString)(),
|
|
23
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], AdvancedPaymentRequest.prototype, "credit_id", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_validator_1.IsNumber)(),
|
|
28
|
+
(0, class_validator_1.Min)(1),
|
|
29
|
+
__metadata("design:type", Number)
|
|
30
|
+
], AdvancedPaymentRequest.prototype, "amount_mxn", void 0);
|
|
@@ -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.AnticipatedPaymentRequest = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
/**
|
|
15
|
+
* Request para pago anticipado: abono a capital en cascada sobre cupones pendientes.
|
|
16
|
+
* Endpoint: POST /{partnerId}/early-payment/anticipated
|
|
17
|
+
*/
|
|
18
|
+
class AnticipatedPaymentRequest {
|
|
19
|
+
}
|
|
20
|
+
exports.AnticipatedPaymentRequest = AnticipatedPaymentRequest;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsString)(),
|
|
23
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], AnticipatedPaymentRequest.prototype, "credit_id", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_validator_1.IsNumber)(),
|
|
28
|
+
(0, class_validator_1.Min)(1),
|
|
29
|
+
__metadata("design:type", Number)
|
|
30
|
+
], AnticipatedPaymentRequest.prototype, "amount_mxn", void 0);
|
|
@@ -3,15 +3,29 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export declare class CreditDetailResponse {
|
|
5
5
|
creditId: string;
|
|
6
|
-
applicationId
|
|
7
|
-
directoryId
|
|
8
|
-
amountMxn
|
|
9
|
-
termWeeks
|
|
10
|
-
annualRate
|
|
11
|
-
weeklyPaymentMxn
|
|
12
|
-
status
|
|
13
|
-
nextPaymentDate
|
|
14
|
-
paidCoupons
|
|
15
|
-
totalCoupons
|
|
16
|
-
remainingBalanceMxn
|
|
6
|
+
applicationId?: string;
|
|
7
|
+
directoryId?: string;
|
|
8
|
+
amountMxn?: number;
|
|
9
|
+
termWeeks?: number;
|
|
10
|
+
annualRate?: number;
|
|
11
|
+
weeklyPaymentMxn?: number;
|
|
12
|
+
status?: string;
|
|
13
|
+
nextPaymentDate?: string;
|
|
14
|
+
paidCoupons?: number;
|
|
15
|
+
totalCoupons?: number;
|
|
16
|
+
remainingBalanceMxn?: number;
|
|
17
|
+
cat?: number | null;
|
|
18
|
+
totalInterestMxn?: number;
|
|
19
|
+
totalIvaMxn?: number;
|
|
20
|
+
totalPayableMxn?: number;
|
|
21
|
+
creditLevel?: string | null;
|
|
22
|
+
partnerId?: string;
|
|
23
|
+
disbursedAt?: string | null;
|
|
24
|
+
firstPaymentDate?: string | null;
|
|
25
|
+
lastPaymentDate?: string | null;
|
|
26
|
+
nextPaymentAmountMxn?: number | null;
|
|
27
|
+
nextCouponNumber?: number | null;
|
|
28
|
+
totalPaidMxn?: number;
|
|
29
|
+
overdueCount?: number;
|
|
30
|
+
overdueAmountMxn?: number;
|
|
17
31
|
}
|
|
@@ -4,5 +4,8 @@
|
|
|
4
4
|
export declare class CreditOriginationRequest {
|
|
5
5
|
directoryId: string;
|
|
6
6
|
offerId: string;
|
|
7
|
-
|
|
7
|
+
amountMxn: number;
|
|
8
|
+
termWeeks: number;
|
|
9
|
+
/** @deprecated Use `termWeeks` instead. Kept for backward compatibility. */
|
|
10
|
+
selectedTermWeeks?: number;
|
|
8
11
|
}
|
|
@@ -31,4 +31,15 @@ __decorate([
|
|
|
31
31
|
(0, class_validator_1.IsNumber)(),
|
|
32
32
|
(0, class_validator_1.Min)(1),
|
|
33
33
|
__metadata("design:type", Number)
|
|
34
|
+
], CreditOriginationRequest.prototype, "amountMxn", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, class_validator_1.IsInt)(),
|
|
37
|
+
(0, class_validator_1.Min)(1),
|
|
38
|
+
__metadata("design:type", Number)
|
|
39
|
+
], CreditOriginationRequest.prototype, "termWeeks", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, class_validator_1.IsOptional)(),
|
|
42
|
+
(0, class_validator_1.IsNumber)(),
|
|
43
|
+
(0, class_validator_1.Min)(1),
|
|
44
|
+
__metadata("design:type", Number)
|
|
34
45
|
], CreditOriginationRequest.prototype, "selectedTermWeeks", void 0);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreditRequestResult = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Resultado de requestCredit: solicitud de crédito creada con contrato pendiente de firma.
|
|
6
|
+
*/
|
|
7
|
+
class CreditRequestResult {
|
|
8
|
+
}
|
|
9
|
+
exports.CreditRequestResult = CreditRequestResult;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreditSignatureResult = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Resultado de signContract: contrato firmado (DISBURSED) o rechazado (CANCELLED).
|
|
6
|
+
*/
|
|
7
|
+
class CreditSignatureResult {
|
|
8
|
+
}
|
|
9
|
+
exports.CreditSignatureResult = CreditSignatureResult;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EarlyPaymentResult = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Resultado de una operación de pago anticipado / adelantado / liquidación.
|
|
6
|
+
*/
|
|
7
|
+
class EarlyPaymentResult {
|
|
8
|
+
}
|
|
9
|
+
exports.EarlyPaymentResult = EarlyPaymentResult;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Respuesta del endpoint de generación de oferta: lista de tasas disponibles para el usuario.
|
|
3
|
+
*/
|
|
4
|
+
export declare class OfferRate {
|
|
5
|
+
term_weeks: number;
|
|
6
|
+
annual_rate: number;
|
|
7
|
+
}
|
|
8
|
+
export declare class OfferResult {
|
|
9
|
+
offer_id: string;
|
|
10
|
+
credit_level: string;
|
|
11
|
+
max_amount_mxn: number;
|
|
12
|
+
min_amount_mxn: number;
|
|
13
|
+
available_rates: OfferRate[];
|
|
14
|
+
expires_at: string;
|
|
15
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OfferResult = exports.OfferRate = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Respuesta del endpoint de generación de oferta: lista de tasas disponibles para el usuario.
|
|
6
|
+
*/
|
|
7
|
+
class OfferRate {
|
|
8
|
+
}
|
|
9
|
+
exports.OfferRate = OfferRate;
|
|
10
|
+
class OfferResult {
|
|
11
|
+
}
|
|
12
|
+
exports.OfferResult = OfferResult;
|
|
@@ -3,11 +3,12 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export declare class PaymentScheduleItemResponse {
|
|
5
5
|
couponNumber: number;
|
|
6
|
-
dueDate
|
|
7
|
-
principalMxn
|
|
8
|
-
interestMxn
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
dueDate?: string;
|
|
7
|
+
principalMxn?: number;
|
|
8
|
+
interestMxn?: number;
|
|
9
|
+
ivaMxn?: number;
|
|
10
|
+
totalMxn?: number;
|
|
11
|
+
status?: string;
|
|
11
12
|
paidAmountMxn: number;
|
|
12
|
-
remainingBalanceMxn
|
|
13
|
+
remainingBalanceMxn?: number;
|
|
13
14
|
}
|
|
@@ -0,0 +1,25 @@
|
|
|
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.SettlementPaymentRequest = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
/**
|
|
15
|
+
* Request para liquidación total del crédito.
|
|
16
|
+
* Endpoint: POST /{partnerId}/early-payment/settlement
|
|
17
|
+
*/
|
|
18
|
+
class SettlementPaymentRequest {
|
|
19
|
+
}
|
|
20
|
+
exports.SettlementPaymentRequest = SettlementPaymentRequest;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsString)(),
|
|
23
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], SettlementPaymentRequest.prototype, "credit_id", void 0);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cotización para liquidación anticipada de un crédito.
|
|
3
|
+
*/
|
|
4
|
+
export declare class SettlementQuote {
|
|
5
|
+
credit_id: string;
|
|
6
|
+
outstanding_principal_mxn: number;
|
|
7
|
+
accrued_interest_mxn: number;
|
|
8
|
+
accrued_iva_mxn: number;
|
|
9
|
+
total_settlement_mxn: number;
|
|
10
|
+
interest_saved_mxn: number;
|
|
11
|
+
available_balance_mxn: number;
|
|
12
|
+
has_sufficient_funds: boolean;
|
|
13
|
+
quote_date: string;
|
|
14
|
+
}
|
|
@@ -8,3 +8,11 @@ export * from './dtos/CreditSignatureRequest';
|
|
|
8
8
|
export * from './dtos/CreditDetailResponse';
|
|
9
9
|
export * from './dtos/PaymentScheduleItemResponse';
|
|
10
10
|
export * from './dtos/DisbursementRequest';
|
|
11
|
+
export * from './dtos/AdvancedPaymentRequest';
|
|
12
|
+
export * from './dtos/AnticipatedPaymentRequest';
|
|
13
|
+
export * from './dtos/SettlementPaymentRequest';
|
|
14
|
+
export * from './dtos/CreditRequestResult';
|
|
15
|
+
export * from './dtos/CreditSignatureResult';
|
|
16
|
+
export * from './dtos/EarlyPaymentResult';
|
|
17
|
+
export * from './dtos/OfferResult';
|
|
18
|
+
export * from './dtos/SettlementQuote';
|
|
@@ -24,3 +24,11 @@ __exportStar(require("./dtos/CreditSignatureRequest"), exports);
|
|
|
24
24
|
__exportStar(require("./dtos/CreditDetailResponse"), exports);
|
|
25
25
|
__exportStar(require("./dtos/PaymentScheduleItemResponse"), exports);
|
|
26
26
|
__exportStar(require("./dtos/DisbursementRequest"), exports);
|
|
27
|
+
__exportStar(require("./dtos/AdvancedPaymentRequest"), exports);
|
|
28
|
+
__exportStar(require("./dtos/AnticipatedPaymentRequest"), exports);
|
|
29
|
+
__exportStar(require("./dtos/SettlementPaymentRequest"), exports);
|
|
30
|
+
__exportStar(require("./dtos/CreditRequestResult"), exports);
|
|
31
|
+
__exportStar(require("./dtos/CreditSignatureResult"), exports);
|
|
32
|
+
__exportStar(require("./dtos/EarlyPaymentResult"), exports);
|
|
33
|
+
__exportStar(require("./dtos/OfferResult"), exports);
|
|
34
|
+
__exportStar(require("./dtos/SettlementQuote"), exports);
|
|
@@ -0,0 +1,32 @@
|
|
|
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.CustomerFileSearchRequest = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class CustomerFileSearchRequest {
|
|
15
|
+
}
|
|
16
|
+
exports.CustomerFileSearchRequest = CustomerFileSearchRequest;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsString)(),
|
|
19
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
20
|
+
(0, class_validator_1.MaxLength)(100),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], CustomerFileSearchRequest.prototype, "q", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_validator_1.IsString)(),
|
|
25
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], CustomerFileSearchRequest.prototype, "partnerId", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_validator_1.IsOptional)(),
|
|
30
|
+
(0, class_validator_1.IsString)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], CustomerFileSearchRequest.prototype, "nextToken", void 0);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dtos/CustomerFileSearchRequest';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./dtos/CustomerFileSearchRequest"), exports);
|
package/bin/index.d.ts
CHANGED
|
@@ -60,6 +60,9 @@ export * as ReferralBusiness from './referral-business';
|
|
|
60
60
|
export * as ComissionBusiness from './comission-business';
|
|
61
61
|
export * as Credit from './credit';
|
|
62
62
|
export * as CreditEngine from './creditEngine';
|
|
63
|
+
export * as CreditDashboard from './creditDashboard';
|
|
64
|
+
export * as CreditBackoffice from './creditBackoffice';
|
|
65
|
+
export * as CustomerFile from './customerFile';
|
|
63
66
|
export * as PlatformErrorEvents from './platformErrorEvents';
|
|
64
67
|
export * as TeamsConnector from './teamsConnector';
|
|
65
68
|
export * as Funnel from './funnel';
|
package/bin/index.js
CHANGED
|
@@ -34,7 +34,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
exports.Pricelist = exports.Company = exports.Services = exports.AccountIssuanceBusiness = exports.AppSelectionData = exports.Device = exports.Observations = exports.IssuanceBusiness = exports.Blacklist = exports.CentralPayments = exports.Helpdesk = exports.FiadoApiResponse = exports.Auth = exports.LegalDocumentsBusiness = exports.Role = exports.STPAccount = exports.RiskProfile = exports.FraudPreventionEngine = exports.BBVARst = exports.Stp = exports.BenefitCenter = exports.BankAccount = exports.P2pContact = exports.CreditContract = exports.Contract = exports.ProductCatalog = exports.ContactInfo = exports.Transaction = exports.TransactionProcessor = exports.GenericMessage = exports.EventBridgeMessage = exports.SessionActivity = exports.NotificationMessages = exports.ServicePayment = exports.Header = exports.Identity = exports.Group = exports.File = exports.ExchangeRate = exports.Directory = exports.Currency = exports.Country = exports.Card = exports.Authentication = exports.App = exports.Address = exports.Beneficiary = exports.Activity = exports.Account = exports.Crypto = void 0;
|
|
37
|
-
exports.Sentry = exports.AiEngine = exports.Funnel = exports.TeamsConnector = exports.PlatformErrorEvents = exports.CreditEngine = exports.Credit = exports.ComissionBusiness = exports.ReferralBusiness = exports.ZendeskMessaging = exports.NotificationWS = exports.Event = exports.PayrollBusiness = exports.Cnbv = exports.DirectorySetting = exports.InvoiceCollector = exports.Collector = void 0;
|
|
37
|
+
exports.Sentry = exports.AiEngine = exports.Funnel = exports.TeamsConnector = exports.PlatformErrorEvents = exports.CustomerFile = exports.CreditBackoffice = exports.CreditDashboard = exports.CreditEngine = exports.Credit = exports.ComissionBusiness = exports.ReferralBusiness = exports.ZendeskMessaging = exports.NotificationWS = exports.Event = exports.PayrollBusiness = exports.Cnbv = exports.DirectorySetting = exports.InvoiceCollector = exports.Collector = void 0;
|
|
38
38
|
exports.Crypto = __importStar(require("./crypto"));
|
|
39
39
|
exports.Account = __importStar(require("./account"));
|
|
40
40
|
exports.Activity = __importStar(require("./activity"));
|
|
@@ -97,6 +97,9 @@ exports.ReferralBusiness = __importStar(require("./referral-business"));
|
|
|
97
97
|
exports.ComissionBusiness = __importStar(require("./comission-business"));
|
|
98
98
|
exports.Credit = __importStar(require("./credit"));
|
|
99
99
|
exports.CreditEngine = __importStar(require("./creditEngine"));
|
|
100
|
+
exports.CreditDashboard = __importStar(require("./creditDashboard"));
|
|
101
|
+
exports.CreditBackoffice = __importStar(require("./creditBackoffice"));
|
|
102
|
+
exports.CustomerFile = __importStar(require("./customerFile"));
|
|
100
103
|
exports.PlatformErrorEvents = __importStar(require("./platformErrorEvents"));
|
|
101
104
|
exports.TeamsConnector = __importStar(require("./teamsConnector"));
|
|
102
105
|
exports.Funnel = __importStar(require("./funnel"));
|
package/package.json
CHANGED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IsEnum, IsObject, IsOptional, IsString } from "class-validator";
|
|
2
|
+
import { BannerActionTypeEnum } from "../enums/BannerActionTypeEnum";
|
|
3
|
+
|
|
4
|
+
export class BannerActionRequest {
|
|
5
|
+
@IsEnum(BannerActionTypeEnum)
|
|
6
|
+
type!: BannerActionTypeEnum;
|
|
7
|
+
|
|
8
|
+
@IsOptional() @IsString() target?: string;
|
|
9
|
+
@IsOptional() @IsString() benefitId?: string;
|
|
10
|
+
|
|
11
|
+
@IsOptional()
|
|
12
|
+
@IsObject()
|
|
13
|
+
metadata?: Record<string, unknown>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IsEnum, ValidateNested } from "class-validator";
|
|
2
|
+
import { Type } from "class-transformer";
|
|
3
|
+
import { BannerContentTypeEnum } from "../enums/BannerContentTypeEnum";
|
|
4
|
+
import { BannerTranslationsRequest } from "./BannerTranslationsRequest";
|
|
5
|
+
|
|
6
|
+
export class BannerContentRequest {
|
|
7
|
+
@IsEnum(BannerContentTypeEnum)
|
|
8
|
+
type!: BannerContentTypeEnum;
|
|
9
|
+
|
|
10
|
+
@ValidateNested()
|
|
11
|
+
@Type(() => BannerTranslationsRequest)
|
|
12
|
+
translations!: BannerTranslationsRequest;
|
|
13
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import {
|
|
2
|
+
IsEnum,
|
|
3
|
+
IsInt,
|
|
4
|
+
IsNotEmpty,
|
|
5
|
+
IsObject,
|
|
6
|
+
IsOptional,
|
|
7
|
+
IsString,
|
|
8
|
+
Min,
|
|
9
|
+
ValidateNested,
|
|
10
|
+
} from "class-validator";
|
|
11
|
+
import { Type } from "class-transformer";
|
|
12
|
+
import { BannerStatusEnum } from "../enums/BannerStatusEnum";
|
|
13
|
+
import { BannerContentRequest } from "./BannerContentRequest";
|
|
14
|
+
import { BannerActionRequest } from "./BannerActionRequest";
|
|
15
|
+
|
|
16
|
+
export class BannerCreateRequest {
|
|
17
|
+
@IsOptional()
|
|
18
|
+
@IsString()
|
|
19
|
+
id?: string;
|
|
20
|
+
|
|
21
|
+
@IsNotEmpty()
|
|
22
|
+
@IsString()
|
|
23
|
+
name!: string;
|
|
24
|
+
|
|
25
|
+
@IsEnum(BannerStatusEnum)
|
|
26
|
+
status!: BannerStatusEnum;
|
|
27
|
+
|
|
28
|
+
@IsInt()
|
|
29
|
+
@Min(0)
|
|
30
|
+
sortOrder!: number;
|
|
31
|
+
|
|
32
|
+
@IsOptional() @IsInt() startDate?: number;
|
|
33
|
+
@IsOptional() @IsInt() endDate?: number;
|
|
34
|
+
|
|
35
|
+
@ValidateNested()
|
|
36
|
+
@Type(() => BannerContentRequest)
|
|
37
|
+
content!: BannerContentRequest;
|
|
38
|
+
|
|
39
|
+
@IsOptional()
|
|
40
|
+
@ValidateNested()
|
|
41
|
+
@Type(() => BannerActionRequest)
|
|
42
|
+
action?: BannerActionRequest;
|
|
43
|
+
|
|
44
|
+
@IsObject()
|
|
45
|
+
rulesVisibility!: Record<string, unknown>;
|
|
46
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IsOptional, IsString } from "class-validator";
|
|
2
|
+
|
|
3
|
+
export class BannerTranslationRequest {
|
|
4
|
+
@IsOptional() @IsString() imageUrl?: string;
|
|
5
|
+
@IsOptional() @IsString() html?: string;
|
|
6
|
+
@IsOptional() @IsString() title?: string;
|
|
7
|
+
@IsOptional() @IsString() subtitle?: string;
|
|
8
|
+
@IsOptional() @IsString() backgroundColor?: string;
|
|
9
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IsOptional, ValidateNested } from "class-validator";
|
|
2
|
+
import { Type } from "class-transformer";
|
|
3
|
+
import { BannerTranslationRequest } from "./BannerTranslationRequest";
|
|
4
|
+
|
|
5
|
+
export class BannerTranslationsRequest {
|
|
6
|
+
@IsOptional()
|
|
7
|
+
@ValidateNested()
|
|
8
|
+
@Type(() => BannerTranslationRequest)
|
|
9
|
+
es?: BannerTranslationRequest;
|
|
10
|
+
|
|
11
|
+
@IsOptional()
|
|
12
|
+
@ValidateNested()
|
|
13
|
+
@Type(() => BannerTranslationRequest)
|
|
14
|
+
en?: BannerTranslationRequest;
|
|
15
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import {
|
|
2
|
+
IsEnum,
|
|
3
|
+
IsInt,
|
|
4
|
+
IsObject,
|
|
5
|
+
IsOptional,
|
|
6
|
+
IsString,
|
|
7
|
+
Min,
|
|
8
|
+
ValidateNested,
|
|
9
|
+
} from "class-validator";
|
|
10
|
+
import { Type } from "class-transformer";
|
|
11
|
+
import { BannerStatusEnum } from "../enums/BannerStatusEnum";
|
|
12
|
+
import { BannerContentRequest } from "./BannerContentRequest";
|
|
13
|
+
import { BannerActionRequest } from "./BannerActionRequest";
|
|
14
|
+
|
|
15
|
+
export class BannerUpdateRequest {
|
|
16
|
+
@IsOptional() @IsString() name?: string;
|
|
17
|
+
@IsOptional() @IsEnum(BannerStatusEnum) status?: BannerStatusEnum;
|
|
18
|
+
@IsOptional() @IsInt() @Min(0) sortOrder?: number;
|
|
19
|
+
@IsOptional() @IsInt() startDate?: number;
|
|
20
|
+
@IsOptional() @IsInt() endDate?: number;
|
|
21
|
+
|
|
22
|
+
@IsOptional()
|
|
23
|
+
@ValidateNested()
|
|
24
|
+
@Type(() => BannerContentRequest)
|
|
25
|
+
content?: BannerContentRequest;
|
|
26
|
+
|
|
27
|
+
@IsOptional()
|
|
28
|
+
@ValidateNested()
|
|
29
|
+
@Type(() => BannerActionRequest)
|
|
30
|
+
action?: BannerActionRequest;
|
|
31
|
+
|
|
32
|
+
@IsOptional()
|
|
33
|
+
@IsObject()
|
|
34
|
+
rulesVisibility?: Record<string, unknown>;
|
|
35
|
+
}
|