@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,36 @@
|
|
|
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.BannerActionRequest = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const BannerActionTypeEnum_1 = require("../enums/BannerActionTypeEnum");
|
|
15
|
+
class BannerActionRequest {
|
|
16
|
+
}
|
|
17
|
+
exports.BannerActionRequest = BannerActionRequest;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsEnum)(BannerActionTypeEnum_1.BannerActionTypeEnum),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], BannerActionRequest.prototype, "type", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsOptional)(),
|
|
24
|
+
(0, class_validator_1.IsString)(),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], BannerActionRequest.prototype, "target", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_validator_1.IsOptional)(),
|
|
29
|
+
(0, class_validator_1.IsString)(),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], BannerActionRequest.prototype, "benefitId", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_validator_1.IsOptional)(),
|
|
34
|
+
(0, class_validator_1.IsObject)(),
|
|
35
|
+
__metadata("design:type", Object)
|
|
36
|
+
], BannerActionRequest.prototype, "metadata", void 0);
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { BannerContentTypeEnum } from "../enums/BannerContentTypeEnum";
|
|
2
|
+
import { BannerTranslationsRequest } from "./BannerTranslationsRequest";
|
|
3
|
+
export declare class BannerContentRequest {
|
|
4
|
+
type: BannerContentTypeEnum;
|
|
5
|
+
translations: BannerTranslationsRequest;
|
|
6
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
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.BannerContentRequest = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
const BannerContentTypeEnum_1 = require("../enums/BannerContentTypeEnum");
|
|
16
|
+
const BannerTranslationsRequest_1 = require("./BannerTranslationsRequest");
|
|
17
|
+
class BannerContentRequest {
|
|
18
|
+
}
|
|
19
|
+
exports.BannerContentRequest = BannerContentRequest;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_validator_1.IsEnum)(BannerContentTypeEnum_1.BannerContentTypeEnum),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], BannerContentRequest.prototype, "type", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.ValidateNested)(),
|
|
26
|
+
(0, class_transformer_1.Type)(() => BannerTranslationsRequest_1.BannerTranslationsRequest),
|
|
27
|
+
__metadata("design:type", BannerTranslationsRequest_1.BannerTranslationsRequest)
|
|
28
|
+
], BannerContentRequest.prototype, "translations", void 0);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BannerStatusEnum } from "../enums/BannerStatusEnum";
|
|
2
|
+
import { BannerContentRequest } from "./BannerContentRequest";
|
|
3
|
+
import { BannerActionRequest } from "./BannerActionRequest";
|
|
4
|
+
export declare class BannerCreateRequest {
|
|
5
|
+
id?: string;
|
|
6
|
+
name: string;
|
|
7
|
+
status: BannerStatusEnum;
|
|
8
|
+
sortOrder: number;
|
|
9
|
+
startDate?: number;
|
|
10
|
+
endDate?: number;
|
|
11
|
+
content: BannerContentRequest;
|
|
12
|
+
action?: BannerActionRequest;
|
|
13
|
+
rulesVisibility: Record<string, unknown>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
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.BannerCreateRequest = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
const BannerStatusEnum_1 = require("../enums/BannerStatusEnum");
|
|
16
|
+
const BannerContentRequest_1 = require("./BannerContentRequest");
|
|
17
|
+
const BannerActionRequest_1 = require("./BannerActionRequest");
|
|
18
|
+
class BannerCreateRequest {
|
|
19
|
+
}
|
|
20
|
+
exports.BannerCreateRequest = BannerCreateRequest;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsOptional)(),
|
|
23
|
+
(0, class_validator_1.IsString)(),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], BannerCreateRequest.prototype, "id", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
28
|
+
(0, class_validator_1.IsString)(),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], BannerCreateRequest.prototype, "name", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, class_validator_1.IsEnum)(BannerStatusEnum_1.BannerStatusEnum),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], BannerCreateRequest.prototype, "status", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, class_validator_1.IsInt)(),
|
|
37
|
+
(0, class_validator_1.Min)(0),
|
|
38
|
+
__metadata("design:type", Number)
|
|
39
|
+
], BannerCreateRequest.prototype, "sortOrder", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, class_validator_1.IsOptional)(),
|
|
42
|
+
(0, class_validator_1.IsInt)(),
|
|
43
|
+
__metadata("design:type", Number)
|
|
44
|
+
], BannerCreateRequest.prototype, "startDate", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, class_validator_1.IsOptional)(),
|
|
47
|
+
(0, class_validator_1.IsInt)(),
|
|
48
|
+
__metadata("design:type", Number)
|
|
49
|
+
], BannerCreateRequest.prototype, "endDate", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, class_validator_1.ValidateNested)(),
|
|
52
|
+
(0, class_transformer_1.Type)(() => BannerContentRequest_1.BannerContentRequest),
|
|
53
|
+
__metadata("design:type", BannerContentRequest_1.BannerContentRequest)
|
|
54
|
+
], BannerCreateRequest.prototype, "content", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, class_validator_1.IsOptional)(),
|
|
57
|
+
(0, class_validator_1.ValidateNested)(),
|
|
58
|
+
(0, class_transformer_1.Type)(() => BannerActionRequest_1.BannerActionRequest),
|
|
59
|
+
__metadata("design:type", BannerActionRequest_1.BannerActionRequest)
|
|
60
|
+
], BannerCreateRequest.prototype, "action", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, class_validator_1.IsObject)(),
|
|
63
|
+
__metadata("design:type", Object)
|
|
64
|
+
], BannerCreateRequest.prototype, "rulesVisibility", void 0);
|
|
@@ -0,0 +1,41 @@
|
|
|
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.BannerTranslationRequest = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class BannerTranslationRequest {
|
|
15
|
+
}
|
|
16
|
+
exports.BannerTranslationRequest = BannerTranslationRequest;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsOptional)(),
|
|
19
|
+
(0, class_validator_1.IsString)(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], BannerTranslationRequest.prototype, "imageUrl", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsOptional)(),
|
|
24
|
+
(0, class_validator_1.IsString)(),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], BannerTranslationRequest.prototype, "html", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_validator_1.IsOptional)(),
|
|
29
|
+
(0, class_validator_1.IsString)(),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], BannerTranslationRequest.prototype, "title", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_validator_1.IsOptional)(),
|
|
34
|
+
(0, class_validator_1.IsString)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], BannerTranslationRequest.prototype, "subtitle", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_validator_1.IsOptional)(),
|
|
39
|
+
(0, class_validator_1.IsString)(),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], BannerTranslationRequest.prototype, "backgroundColor", 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.BannerTranslationsRequest = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
const BannerTranslationRequest_1 = require("./BannerTranslationRequest");
|
|
16
|
+
class BannerTranslationsRequest {
|
|
17
|
+
}
|
|
18
|
+
exports.BannerTranslationsRequest = BannerTranslationsRequest;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, class_validator_1.IsOptional)(),
|
|
21
|
+
(0, class_validator_1.ValidateNested)(),
|
|
22
|
+
(0, class_transformer_1.Type)(() => BannerTranslationRequest_1.BannerTranslationRequest),
|
|
23
|
+
__metadata("design:type", BannerTranslationRequest_1.BannerTranslationRequest)
|
|
24
|
+
], BannerTranslationsRequest.prototype, "es", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsOptional)(),
|
|
27
|
+
(0, class_validator_1.ValidateNested)(),
|
|
28
|
+
(0, class_transformer_1.Type)(() => BannerTranslationRequest_1.BannerTranslationRequest),
|
|
29
|
+
__metadata("design:type", BannerTranslationRequest_1.BannerTranslationRequest)
|
|
30
|
+
], BannerTranslationsRequest.prototype, "en", void 0);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { BannerStatusEnum } from "../enums/BannerStatusEnum";
|
|
2
|
+
import { BannerContentRequest } from "./BannerContentRequest";
|
|
3
|
+
import { BannerActionRequest } from "./BannerActionRequest";
|
|
4
|
+
export declare class BannerUpdateRequest {
|
|
5
|
+
name?: string;
|
|
6
|
+
status?: BannerStatusEnum;
|
|
7
|
+
sortOrder?: number;
|
|
8
|
+
startDate?: number;
|
|
9
|
+
endDate?: number;
|
|
10
|
+
content?: BannerContentRequest;
|
|
11
|
+
action?: BannerActionRequest;
|
|
12
|
+
rulesVisibility?: Record<string, unknown>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
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.BannerUpdateRequest = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
const BannerStatusEnum_1 = require("../enums/BannerStatusEnum");
|
|
16
|
+
const BannerContentRequest_1 = require("./BannerContentRequest");
|
|
17
|
+
const BannerActionRequest_1 = require("./BannerActionRequest");
|
|
18
|
+
class BannerUpdateRequest {
|
|
19
|
+
}
|
|
20
|
+
exports.BannerUpdateRequest = BannerUpdateRequest;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsOptional)(),
|
|
23
|
+
(0, class_validator_1.IsString)(),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], BannerUpdateRequest.prototype, "name", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_validator_1.IsOptional)(),
|
|
28
|
+
(0, class_validator_1.IsEnum)(BannerStatusEnum_1.BannerStatusEnum),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], BannerUpdateRequest.prototype, "status", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, class_validator_1.IsOptional)(),
|
|
33
|
+
(0, class_validator_1.IsInt)(),
|
|
34
|
+
(0, class_validator_1.Min)(0),
|
|
35
|
+
__metadata("design:type", Number)
|
|
36
|
+
], BannerUpdateRequest.prototype, "sortOrder", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_validator_1.IsOptional)(),
|
|
39
|
+
(0, class_validator_1.IsInt)(),
|
|
40
|
+
__metadata("design:type", Number)
|
|
41
|
+
], BannerUpdateRequest.prototype, "startDate", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, class_validator_1.IsOptional)(),
|
|
44
|
+
(0, class_validator_1.IsInt)(),
|
|
45
|
+
__metadata("design:type", Number)
|
|
46
|
+
], BannerUpdateRequest.prototype, "endDate", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, class_validator_1.IsOptional)(),
|
|
49
|
+
(0, class_validator_1.ValidateNested)(),
|
|
50
|
+
(0, class_transformer_1.Type)(() => BannerContentRequest_1.BannerContentRequest),
|
|
51
|
+
__metadata("design:type", BannerContentRequest_1.BannerContentRequest)
|
|
52
|
+
], BannerUpdateRequest.prototype, "content", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, class_validator_1.IsOptional)(),
|
|
55
|
+
(0, class_validator_1.ValidateNested)(),
|
|
56
|
+
(0, class_transformer_1.Type)(() => BannerActionRequest_1.BannerActionRequest),
|
|
57
|
+
__metadata("design:type", BannerActionRequest_1.BannerActionRequest)
|
|
58
|
+
], BannerUpdateRequest.prototype, "action", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, class_validator_1.IsOptional)(),
|
|
61
|
+
(0, class_validator_1.IsObject)(),
|
|
62
|
+
__metadata("design:type", Object)
|
|
63
|
+
], BannerUpdateRequest.prototype, "rulesVisibility", void 0);
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { BenefitFlowEnum } from "../enums/BenefitFlowEnum";
|
|
2
|
+
import { BenefitModuleConfigRequest } from "./BenefitModuleConfigRequest";
|
|
3
|
+
/** Mirror enum-like de BenefitCatalogStatus en el type-kit (para validación). */
|
|
4
|
+
export declare enum BenefitCatalogStatusEnum {
|
|
5
|
+
ACTIVE = "ACTIVE",
|
|
6
|
+
INACTIVE = "INACTIVE",
|
|
7
|
+
COMING_SOON = "COMING_SOON"
|
|
8
|
+
}
|
|
9
|
+
export declare class BenefitCreateRequest {
|
|
10
|
+
id?: string;
|
|
11
|
+
name: string;
|
|
12
|
+
description?: string;
|
|
13
|
+
status: BenefitCatalogStatusEnum;
|
|
14
|
+
sortOrder: number;
|
|
15
|
+
icon?: string;
|
|
16
|
+
flow: BenefitFlowEnum;
|
|
17
|
+
translationKey?: string;
|
|
18
|
+
moduleConfig: BenefitModuleConfigRequest;
|
|
19
|
+
rulesVisibility: Record<string, unknown>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
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.BenefitCreateRequest = exports.BenefitCatalogStatusEnum = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
const BenefitFlowEnum_1 = require("../enums/BenefitFlowEnum");
|
|
16
|
+
const BenefitModuleConfigRequest_1 = require("./BenefitModuleConfigRequest");
|
|
17
|
+
/** Mirror enum-like de BenefitCatalogStatus en el type-kit (para validación). */
|
|
18
|
+
var BenefitCatalogStatusEnum;
|
|
19
|
+
(function (BenefitCatalogStatusEnum) {
|
|
20
|
+
BenefitCatalogStatusEnum["ACTIVE"] = "ACTIVE";
|
|
21
|
+
BenefitCatalogStatusEnum["INACTIVE"] = "INACTIVE";
|
|
22
|
+
BenefitCatalogStatusEnum["COMING_SOON"] = "COMING_SOON";
|
|
23
|
+
})(BenefitCatalogStatusEnum || (exports.BenefitCatalogStatusEnum = BenefitCatalogStatusEnum = {}));
|
|
24
|
+
class BenefitCreateRequest {
|
|
25
|
+
}
|
|
26
|
+
exports.BenefitCreateRequest = BenefitCreateRequest;
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_validator_1.IsOptional)(),
|
|
29
|
+
(0, class_validator_1.IsString)(),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], BenefitCreateRequest.prototype, "id", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
34
|
+
(0, class_validator_1.IsString)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], BenefitCreateRequest.prototype, "name", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_validator_1.IsOptional)(),
|
|
39
|
+
(0, class_validator_1.IsString)(),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], BenefitCreateRequest.prototype, "description", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, class_validator_1.IsEnum)(BenefitCatalogStatusEnum),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], BenefitCreateRequest.prototype, "status", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, class_validator_1.IsInt)(),
|
|
48
|
+
(0, class_validator_1.Min)(0),
|
|
49
|
+
__metadata("design:type", Number)
|
|
50
|
+
], BenefitCreateRequest.prototype, "sortOrder", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, class_validator_1.IsOptional)(),
|
|
53
|
+
(0, class_validator_1.IsString)(),
|
|
54
|
+
__metadata("design:type", String)
|
|
55
|
+
], BenefitCreateRequest.prototype, "icon", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, class_validator_1.IsEnum)(BenefitFlowEnum_1.BenefitFlowEnum),
|
|
58
|
+
__metadata("design:type", String)
|
|
59
|
+
], BenefitCreateRequest.prototype, "flow", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, class_validator_1.IsOptional)(),
|
|
62
|
+
(0, class_validator_1.IsString)(),
|
|
63
|
+
__metadata("design:type", String)
|
|
64
|
+
], BenefitCreateRequest.prototype, "translationKey", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, class_validator_1.ValidateNested)(),
|
|
67
|
+
(0, class_transformer_1.Type)(() => BenefitModuleConfigRequest_1.BenefitModuleConfigRequest),
|
|
68
|
+
__metadata("design:type", BenefitModuleConfigRequest_1.BenefitModuleConfigRequest)
|
|
69
|
+
], BenefitCreateRequest.prototype, "moduleConfig", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, class_validator_1.IsObject)(),
|
|
72
|
+
__metadata("design:type", Object)
|
|
73
|
+
], BenefitCreateRequest.prototype, "rulesVisibility", void 0);
|
|
@@ -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.BenefitModuleConfigRequest = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
const BenefitModuleEntryRequest_1 = require("./BenefitModuleEntryRequest");
|
|
16
|
+
class BenefitModuleConfigRequest {
|
|
17
|
+
}
|
|
18
|
+
exports.BenefitModuleConfigRequest = BenefitModuleConfigRequest;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, class_validator_1.IsArray)(),
|
|
21
|
+
(0, class_validator_1.ArrayMinSize)(1),
|
|
22
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
23
|
+
(0, class_transformer_1.Type)(() => BenefitModuleEntryRequest_1.BenefitModuleEntryRequest),
|
|
24
|
+
__metadata("design:type", Array)
|
|
25
|
+
], BenefitModuleConfigRequest.prototype, "modules", void 0);
|
|
@@ -0,0 +1,26 @@
|
|
|
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.BenefitModuleEntryRequest = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class BenefitModuleEntryRequest {
|
|
15
|
+
}
|
|
16
|
+
exports.BenefitModuleEntryRequest = BenefitModuleEntryRequest;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
19
|
+
(0, class_validator_1.IsString)(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], BenefitModuleEntryRequest.prototype, "moduleEnvVar", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
24
|
+
(0, class_validator_1.IsString)(),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], BenefitModuleEntryRequest.prototype, "moduleName", void 0);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BenefitFlowEnum } from "../enums/BenefitFlowEnum";
|
|
2
|
+
import { BenefitCatalogStatusEnum } from "./BenefitCreateRequest";
|
|
3
|
+
import { BenefitModuleConfigRequest } from "./BenefitModuleConfigRequest";
|
|
4
|
+
export declare class BenefitUpdateRequest {
|
|
5
|
+
name?: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
status?: BenefitCatalogStatusEnum;
|
|
8
|
+
sortOrder?: number;
|
|
9
|
+
icon?: string;
|
|
10
|
+
flow?: BenefitFlowEnum;
|
|
11
|
+
translationKey?: string;
|
|
12
|
+
moduleConfig?: BenefitModuleConfigRequest;
|
|
13
|
+
rulesVisibility?: Record<string, unknown>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
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.BenefitUpdateRequest = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
const BenefitFlowEnum_1 = require("../enums/BenefitFlowEnum");
|
|
16
|
+
const BenefitCreateRequest_1 = require("./BenefitCreateRequest");
|
|
17
|
+
const BenefitModuleConfigRequest_1 = require("./BenefitModuleConfigRequest");
|
|
18
|
+
class BenefitUpdateRequest {
|
|
19
|
+
}
|
|
20
|
+
exports.BenefitUpdateRequest = BenefitUpdateRequest;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsOptional)(),
|
|
23
|
+
(0, class_validator_1.IsString)(),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], BenefitUpdateRequest.prototype, "name", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_validator_1.IsOptional)(),
|
|
28
|
+
(0, class_validator_1.IsString)(),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], BenefitUpdateRequest.prototype, "description", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, class_validator_1.IsOptional)(),
|
|
33
|
+
(0, class_validator_1.IsEnum)(BenefitCreateRequest_1.BenefitCatalogStatusEnum),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], BenefitUpdateRequest.prototype, "status", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, class_validator_1.IsOptional)(),
|
|
38
|
+
(0, class_validator_1.IsInt)(),
|
|
39
|
+
(0, class_validator_1.Min)(0),
|
|
40
|
+
__metadata("design:type", Number)
|
|
41
|
+
], BenefitUpdateRequest.prototype, "sortOrder", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, class_validator_1.IsOptional)(),
|
|
44
|
+
(0, class_validator_1.IsString)(),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], BenefitUpdateRequest.prototype, "icon", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, class_validator_1.IsOptional)(),
|
|
49
|
+
(0, class_validator_1.IsEnum)(BenefitFlowEnum_1.BenefitFlowEnum),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], BenefitUpdateRequest.prototype, "flow", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, class_validator_1.IsOptional)(),
|
|
54
|
+
(0, class_validator_1.IsString)(),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], BenefitUpdateRequest.prototype, "translationKey", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, class_validator_1.IsOptional)(),
|
|
59
|
+
(0, class_validator_1.ValidateNested)(),
|
|
60
|
+
(0, class_transformer_1.Type)(() => BenefitModuleConfigRequest_1.BenefitModuleConfigRequest),
|
|
61
|
+
__metadata("design:type", BenefitModuleConfigRequest_1.BenefitModuleConfigRequest)
|
|
62
|
+
], BenefitUpdateRequest.prototype, "moduleConfig", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, class_validator_1.IsOptional)(),
|
|
65
|
+
(0, class_validator_1.IsObject)(),
|
|
66
|
+
__metadata("design:type", Object)
|
|
67
|
+
], BenefitUpdateRequest.prototype, "rulesVisibility", void 0);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Request del endpoint público POST /benefits/{benefitId}/verificateReference del
|
|
3
|
+
* `benefits-marketplace-business`. Combina:
|
|
4
|
+
* - Los campos de `BenefitReferenceVerificationRequest` (serviceId/productId/reference)
|
|
5
|
+
* - Un `leafId` adicional para que el lambda del Centro sepa a qué módulo rutear
|
|
6
|
+
* la verificación sin tener que buscar por anchor.
|
|
7
|
+
*
|
|
8
|
+
* Se expone separado de `BenefitReferenceVerificationRequest` porque éste último
|
|
9
|
+
* es el contrato DIRECTO al conector (no conoce de leafIds).
|
|
10
|
+
*/
|
|
11
|
+
export declare class PublicVerifyReferenceRequest {
|
|
12
|
+
leafId: string;
|
|
13
|
+
serviceId: string;
|
|
14
|
+
productId: string;
|
|
15
|
+
reference: string;
|
|
16
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
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.PublicVerifyReferenceRequest = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
/**
|
|
15
|
+
* Request del endpoint público POST /benefits/{benefitId}/verificateReference del
|
|
16
|
+
* `benefits-marketplace-business`. Combina:
|
|
17
|
+
* - Los campos de `BenefitReferenceVerificationRequest` (serviceId/productId/reference)
|
|
18
|
+
* - Un `leafId` adicional para que el lambda del Centro sepa a qué módulo rutear
|
|
19
|
+
* la verificación sin tener que buscar por anchor.
|
|
20
|
+
*
|
|
21
|
+
* Se expone separado de `BenefitReferenceVerificationRequest` porque éste último
|
|
22
|
+
* es el contrato DIRECTO al conector (no conoce de leafIds).
|
|
23
|
+
*/
|
|
24
|
+
class PublicVerifyReferenceRequest {
|
|
25
|
+
}
|
|
26
|
+
exports.PublicVerifyReferenceRequest = PublicVerifyReferenceRequest;
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
29
|
+
(0, class_validator_1.IsString)(),
|
|
30
|
+
(0, class_validator_1.Length)(1, 100),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], PublicVerifyReferenceRequest.prototype, "leafId", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
35
|
+
(0, class_validator_1.IsString)(),
|
|
36
|
+
(0, class_validator_1.Length)(1, 50),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], PublicVerifyReferenceRequest.prototype, "serviceId", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
41
|
+
(0, class_validator_1.IsString)(),
|
|
42
|
+
(0, class_validator_1.Length)(1, 50),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], PublicVerifyReferenceRequest.prototype, "productId", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
47
|
+
(0, class_validator_1.IsString)(),
|
|
48
|
+
(0, class_validator_1.Length)(1, 100),
|
|
49
|
+
__metadata("design:type", String)
|
|
50
|
+
], PublicVerifyReferenceRequest.prototype, "reference", void 0);
|